@oliasoft-open-source/react-ui-library 5.21.3-beta-1 → 5.21.3-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/index.js +675 -675
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,60 +6,60 @@ import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
|
|
|
6
6
|
import { CSSTransition as Mt } from "react-transition-group";
|
|
7
7
|
import Nt from "resize-observer-polyfill";
|
|
8
8
|
import { Arrow as Pt, mergeRefs as Ft, useHover as It, useLayer as Lt, useMousePositionAsTrigger as Rt } from "react-laag";
|
|
9
|
-
import { cloneDeep as zt, cloneDeepWith as Bt, debounce as Vt, every as Ht, get as Ut, isArray as Wt, isBoolean as Gt, isEmpty as Kt, isEqual as qt, isFunction as Jt, isNil as Yt, isNumber as Xt, isObject as Zt, isPlainObject as Qt, isString as $t, keys as en, noop as
|
|
10
|
-
import
|
|
11
|
-
import { Resizable as
|
|
12
|
-
import { createPortal as
|
|
13
|
-
import { ALT_UNITS as
|
|
14
|
-
import { FixedSizeList as
|
|
15
|
-
import { SortableContext as
|
|
16
|
-
import { CSS as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { DndContext as
|
|
21
|
-
import { useVirtualizer as
|
|
22
|
-
import { SimplifyAP as
|
|
23
|
-
import
|
|
24
|
-
import { Slide as
|
|
25
|
-
import { isNil as
|
|
26
|
-
import { EditorContent as
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import { Markdown as
|
|
30
|
-
import
|
|
9
|
+
import { cloneDeep as zt, cloneDeepWith as Bt, debounce as Vt, every as Ht, get as Ut, isArray as Wt, isBoolean as Gt, isEmpty as Kt, isEqual as qt, isFunction as Jt, isNil as Yt, isNumber as Xt, isObject as Zt, isPlainObject as Qt, isString as $t, keys as en, noop as B, set as tn, toLower as nn, toNumber as rn, values as an } from "es-toolkit/compat";
|
|
10
|
+
import on, { css as sn } from "styled-components";
|
|
11
|
+
import { Resizable as cn } from "react-resizable";
|
|
12
|
+
import { createPortal as ln } from "react-dom";
|
|
13
|
+
import { ALT_UNITS as un, KNOWN_UNITS as dn, altUnitsList as fn, cleanNumStr as pn, convertAndGetValue as mn, convertSamePrecision as hn, getAltUnitsListByQuantity as gn, getUnit as _n, getUnitsForQuantity as vn, getValue as yn, isNumeric as bn, isScientificStringNum as xn, isValidNum as Sn, isValueWithUnit as Cn, label as wn, roundByMagnitude as Tn, roundByMagnitudeToFixed as En, roundToFixed as Dn, roundToPrecision as On, split as kn, stripLeadingZeros as An, toNum as jn, toString as Mn, unitFromQuantity as Nn, validateNumber as Pn, withPrettyUnitLabel as Fn, withUnit as In } from "@oliasoft-open-source/units";
|
|
14
|
+
import { FixedSizeList as Ln } from "react-window";
|
|
15
|
+
import { SortableContext as Rn, useSortable as zn, verticalListSortingStrategy as Bn } from "@dnd-kit/sortable";
|
|
16
|
+
import { CSS as Vn } from "@dnd-kit/utilities";
|
|
17
|
+
import Hn from "rc-slider";
|
|
18
|
+
import Un from "memoize-one";
|
|
19
|
+
import Wn from "react-fast-compare";
|
|
20
|
+
import { DndContext as Gn, DragOverlay as Kn, closestCenter as qn } from "@dnd-kit/core";
|
|
21
|
+
import { useVirtualizer as Jn } from "@tanstack/react-virtual";
|
|
22
|
+
import { SimplifyAP as Yn } from "simplify-ts";
|
|
23
|
+
import Xn from "papaparse";
|
|
24
|
+
import { Slide as Zn, ToastContainer as Qn, toast as $n } from "react-toastify";
|
|
25
|
+
import { isNil as er } from "es-toolkit";
|
|
26
|
+
import { EditorContent as tr, useEditor as nr } from "@tiptap/react";
|
|
27
|
+
import rr from "@tiptap/starter-kit";
|
|
28
|
+
import ir from "@tiptap/extension-placeholder";
|
|
29
|
+
import { Markdown as ar } from "@tiptap/markdown";
|
|
30
|
+
import or from "react-loading-skeleton";
|
|
31
31
|
import "react-loading-skeleton/dist/skeleton.css";
|
|
32
|
-
import { DndProvider as
|
|
33
|
-
import { MultiBackend as
|
|
34
|
-
import
|
|
32
|
+
import { DndProvider as sr } from "react-dnd";
|
|
33
|
+
import { MultiBackend as cr, Tree as lr, getBackendOptions as ur } from "@minoru/react-dnd-treeview";
|
|
34
|
+
import dr, { DiffMethod as fr } from "react-diff-viewer-continued";
|
|
35
35
|
//#region src/typings/common-types.ts
|
|
36
|
-
var
|
|
36
|
+
var pr = /* @__PURE__ */ function(e) {
|
|
37
37
|
return e.TEXT = "Text", e.BUTTON = "Button", e.DROP_DOWN_BUTTON = "DropDownButton", e.COMPONENT = "Component", e;
|
|
38
|
-
}({}),
|
|
38
|
+
}({}), V = /* @__PURE__ */ function(e) {
|
|
39
39
|
return e.FIRST = "first", e.MIDDLE = "middle", e.LAST = "last", e;
|
|
40
|
-
}({}),
|
|
40
|
+
}({}), mr = /* @__PURE__ */ function(e) {
|
|
41
41
|
return e.DANGER = "danger", e.RED = "red", e.WHITE = "white", e.SUCCESS = "success", e.GREEN = "green", e.MUTED = "muted", e;
|
|
42
|
-
}({}),
|
|
42
|
+
}({}), hr = /* @__PURE__ */ function(e) {
|
|
43
43
|
return e.LEFT = "left", e.RIGHT = "right", e.CENTER = "center", e;
|
|
44
|
-
}({}),
|
|
44
|
+
}({}), gr = /* @__PURE__ */ function(e) {
|
|
45
45
|
return e.TOP = "top", e.BOTTOM = "bottom", e;
|
|
46
|
-
}({}),
|
|
46
|
+
}({}), H = /* @__PURE__ */ function(e) {
|
|
47
47
|
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;
|
|
48
|
-
}({}),
|
|
48
|
+
}({}), _r = /* @__PURE__ */ function(e) {
|
|
49
49
|
return e.UPPERCASE = "uppercase", e.LOWERCASE = "lowercase", e.CAPITALIZE = "capitalize", e.NONE = "none", e;
|
|
50
|
-
}({}),
|
|
50
|
+
}({}), vr = /* @__PURE__ */ function(e) {
|
|
51
51
|
return e.DARK = "dark", e.WHITE = "white", e.LIGHT = "light", e.INHERIT = "inherit", e;
|
|
52
|
-
}({}),
|
|
52
|
+
}({}), yr = /* @__PURE__ */ function(e) {
|
|
53
53
|
return e.TEXT = "text", e.RADIO = "radio", e.CHECKBOX = "checkbox", e;
|
|
54
|
-
}({}),
|
|
54
|
+
}({}), br = {
|
|
55
55
|
chevron: "_chevron_dd6mn_1",
|
|
56
56
|
expanded: "_expanded_dd6mn_9"
|
|
57
|
-
},
|
|
57
|
+
}, U = e.createContext(!1), xr = {
|
|
58
58
|
wrapper: "_wrapper_18jt2_1",
|
|
59
59
|
customSvg: "_customSvg_18jt2_8",
|
|
60
60
|
customPng: "_customPng_18jt2_11",
|
|
61
61
|
clickable: "_clickable_18jt2_16"
|
|
62
|
-
},
|
|
62
|
+
}, Sr = "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", Cr = "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", wr = "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", Tr = "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", Er = "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", Dr = "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", Or = "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", kr = ({ icon: e }) => {
|
|
63
63
|
switch (e) {
|
|
64
64
|
case "add":
|
|
65
65
|
case "plus": return /* @__PURE__ */ R(ct, {});
|
|
@@ -98,7 +98,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
98
98
|
case "copy":
|
|
99
99
|
case "duplicate": return /* @__PURE__ */ R(pe, {});
|
|
100
100
|
case "code": return /* @__PURE__ */ R(fe, {});
|
|
101
|
-
case "collapse": return /* @__PURE__ */ R(_, { src:
|
|
101
|
+
case "collapse": return /* @__PURE__ */ R(_, { src: Sr });
|
|
102
102
|
case "collapse all": return /* @__PURE__ */ R(ze, {});
|
|
103
103
|
case "company": return /* @__PURE__ */ R(M, {});
|
|
104
104
|
case "compare": return /* @__PURE__ */ R(gt, {});
|
|
@@ -136,15 +136,15 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
136
136
|
case "layout columns":
|
|
137
137
|
case "columns": return /* @__PURE__ */ R(Le, {});
|
|
138
138
|
case "layout grid":
|
|
139
|
-
case "grid": return /* @__PURE__ */ R(_, { src:
|
|
139
|
+
case "grid": return /* @__PURE__ */ R(_, { src: Or });
|
|
140
140
|
case "layout rows":
|
|
141
141
|
case "rows": return /* @__PURE__ */ R(Re, {});
|
|
142
142
|
case "layout single":
|
|
143
|
-
case "square": return /* @__PURE__ */ R(_, { src:
|
|
144
|
-
case "layout 3 split top": return /* @__PURE__ */ R(_, { src:
|
|
145
|
-
case "layout 3 split bottom": return /* @__PURE__ */ R(_, { src:
|
|
146
|
-
case "layout 3 split left": return /* @__PURE__ */ R(_, { src:
|
|
147
|
-
case "layout 3 split right": return /* @__PURE__ */ R(_, { src:
|
|
143
|
+
case "square": return /* @__PURE__ */ R(_, { src: Cr });
|
|
144
|
+
case "layout 3 split top": return /* @__PURE__ */ R(_, { src: wr });
|
|
145
|
+
case "layout 3 split bottom": return /* @__PURE__ */ R(_, { src: Tr });
|
|
146
|
+
case "layout 3 split left": return /* @__PURE__ */ R(_, { src: Er });
|
|
147
|
+
case "layout 3 split right": return /* @__PURE__ */ R(_, { src: Dr });
|
|
148
148
|
case "link": return /* @__PURE__ */ R(Ve, {});
|
|
149
149
|
case "list":
|
|
150
150
|
case "legend":
|
|
@@ -213,8 +213,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
213
213
|
case "": return null;
|
|
214
214
|
default: return /* @__PURE__ */ R(ce, {});
|
|
215
215
|
}
|
|
216
|
-
},
|
|
217
|
-
let c = s(
|
|
216
|
+
}, W = ({ icon: e, onClick: t, clickable: n = !1, color: r, size: a, testId: o }) => {
|
|
217
|
+
let c = s(U), l = {
|
|
218
218
|
color: r,
|
|
219
219
|
fill: r,
|
|
220
220
|
fontSize: a || "inherit",
|
|
@@ -222,26 +222,26 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
222
222
|
height: a || "auto"
|
|
223
223
|
};
|
|
224
224
|
return /* @__PURE__ */ R("div", {
|
|
225
|
-
className: g(
|
|
225
|
+
className: g(xr.wrapper, (n || t) && !c ? xr.clickable : ""),
|
|
226
226
|
style: l,
|
|
227
227
|
onClick: (e) => t && !c ? t(e) : void 0,
|
|
228
228
|
"data-testid": o,
|
|
229
229
|
children: i(e) ? e : typeof e == "string" && (e.includes(".svg") || e.includes("image/svg")) ? /* @__PURE__ */ R(_, {
|
|
230
|
-
className:
|
|
230
|
+
className: xr.customSvg,
|
|
231
231
|
beforeInjection: (e) => {
|
|
232
232
|
a && (e.setAttribute("width", String(a)), e.setAttribute("height", String(a)));
|
|
233
233
|
},
|
|
234
234
|
src: e
|
|
235
235
|
}) : typeof e == "string" && (e.includes(".png") || e.includes("image/png")) ? /* @__PURE__ */ R("img", {
|
|
236
236
|
alt: "icon",
|
|
237
|
-
className:
|
|
237
|
+
className: xr.customPng,
|
|
238
238
|
src: e
|
|
239
|
-
}) : typeof e == "string" ? /* @__PURE__ */ R(
|
|
239
|
+
}) : typeof e == "string" ? /* @__PURE__ */ R(kr, { icon: e }) : null
|
|
240
240
|
});
|
|
241
|
-
},
|
|
242
|
-
className: g(
|
|
243
|
-
children: /* @__PURE__ */ R(
|
|
244
|
-
}),
|
|
241
|
+
}, Ar = ({ expanded: e }) => /* @__PURE__ */ R("span", {
|
|
242
|
+
className: g(br.chevron, e ? br.expanded : ""),
|
|
243
|
+
children: /* @__PURE__ */ R(W, { icon: H.CHEVRON_RIGHT })
|
|
244
|
+
}), jr = {
|
|
245
245
|
accordion: "_accordion_15p8j_1",
|
|
246
246
|
accordionHeader: "_accordionHeader_15p8j_5",
|
|
247
247
|
heading: "_heading_15p8j_9",
|
|
@@ -251,58 +251,58 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
251
251
|
expanded: "_expanded_15p8j_36",
|
|
252
252
|
padding: "_padding_15p8j_44",
|
|
253
253
|
squareBottom: "_squareBottom_15p8j_47"
|
|
254
|
-
},
|
|
254
|
+
}, Mr = {
|
|
255
255
|
collapse: "_collapse_1m1n2_5",
|
|
256
256
|
enter: "_enter_1m1n2_9",
|
|
257
257
|
enterActive: "_enterActive_1m1n2_12",
|
|
258
258
|
exit: "_exit_1m1n2_15",
|
|
259
259
|
exitActive: "_exitActive_1m1n2_18",
|
|
260
260
|
collapseInner: "_collapseInner_1m1n2_21"
|
|
261
|
-
},
|
|
261
|
+
}, Nr = ({ children: e, expanded: t }) => {
|
|
262
262
|
let n = p(null);
|
|
263
263
|
return /* @__PURE__ */ R(Mt, {
|
|
264
264
|
nodeRef: n,
|
|
265
265
|
in: t,
|
|
266
266
|
timeout: 100,
|
|
267
267
|
classNames: {
|
|
268
|
-
enter:
|
|
269
|
-
enterActive:
|
|
270
|
-
exit:
|
|
271
|
-
exitActive:
|
|
268
|
+
enter: Mr.enter,
|
|
269
|
+
enterActive: Mr.enterActive,
|
|
270
|
+
exit: Mr.exit,
|
|
271
|
+
exitActive: Mr.exitActive
|
|
272
272
|
},
|
|
273
273
|
unmountOnExit: !0,
|
|
274
274
|
children: /* @__PURE__ */ R("div", {
|
|
275
275
|
ref: n,
|
|
276
|
-
className:
|
|
276
|
+
className: Mr.collapse,
|
|
277
277
|
children: /* @__PURE__ */ R("div", {
|
|
278
|
-
className:
|
|
278
|
+
className: Mr.collapseInner,
|
|
279
279
|
children: /* @__PURE__ */ R("div", { children: t && e })
|
|
280
280
|
})
|
|
281
281
|
})
|
|
282
282
|
});
|
|
283
|
-
},
|
|
283
|
+
}, Pr = ({ heading: e, expanded: t = !1, bordered: n = !1, padding: r = !0, children: i, squareBottom: a = !1, onClick: o, testId: s }) => {
|
|
284
284
|
let c = t && !!i;
|
|
285
285
|
return /* @__PURE__ */ z("div", {
|
|
286
|
-
className: g(
|
|
286
|
+
className: g(jr.accordion, n ? jr.bordered : "", t ? jr.expanded : "", a ? jr.squareBottom : ""),
|
|
287
287
|
children: [/* @__PURE__ */ z("div", {
|
|
288
|
-
className: g(
|
|
288
|
+
className: g(jr.accordionHeader, o ? jr.clickable : ""),
|
|
289
289
|
onClick: o,
|
|
290
290
|
"data-testid": s,
|
|
291
|
-
children: [/* @__PURE__ */ R(
|
|
292
|
-
className:
|
|
291
|
+
children: [/* @__PURE__ */ R(Ar, { expanded: t }), /* @__PURE__ */ R("div", {
|
|
292
|
+
className: jr.heading,
|
|
293
293
|
children: e
|
|
294
294
|
})]
|
|
295
|
-
}), /* @__PURE__ */ R(
|
|
295
|
+
}), /* @__PURE__ */ R(Nr, {
|
|
296
296
|
expanded: c,
|
|
297
297
|
children: /* @__PURE__ */ R("div", {
|
|
298
|
-
className: g(
|
|
298
|
+
className: g(jr.accordionContent, n && r ? jr.padding : ""),
|
|
299
299
|
children: i
|
|
300
300
|
})
|
|
301
301
|
})]
|
|
302
302
|
});
|
|
303
|
-
},
|
|
303
|
+
}, Fr = ({ heading: t, bordered: n, padding: r, expanded: i = !1, children: a, testId: o }) => {
|
|
304
304
|
let [s, c] = e.useState(i);
|
|
305
|
-
return /* @__PURE__ */ R(
|
|
305
|
+
return /* @__PURE__ */ R(Pr, {
|
|
306
306
|
heading: t,
|
|
307
307
|
bordered: n,
|
|
308
308
|
padding: r,
|
|
@@ -313,7 +313,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
313
313
|
testId: o,
|
|
314
314
|
children: a
|
|
315
315
|
});
|
|
316
|
-
},
|
|
316
|
+
}, Ir = ({ heading: e, expanded: t = !1, managed: n = !1, bordered: r = !1, padding: i = !0, children: a, onClick: o, squareBottom: s = !1, testId: c }) => R(n ? Fr : Pr, {
|
|
317
317
|
heading: e,
|
|
318
318
|
expanded: t,
|
|
319
319
|
bordered: r,
|
|
@@ -322,7 +322,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
322
322
|
onClick: o,
|
|
323
323
|
testId: c,
|
|
324
324
|
children: a
|
|
325
|
-
}),
|
|
325
|
+
}), Lr = {
|
|
326
326
|
checkbox: "_checkbox_oo4mp_1",
|
|
327
327
|
noLabel: "_noLabel_oo4mp_17",
|
|
328
328
|
small: "_small_oo4mp_20",
|
|
@@ -331,18 +331,18 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
331
331
|
noMargin: "_noMargin_oo4mp_96",
|
|
332
332
|
isInTable: "_isInTable_oo4mp_99",
|
|
333
333
|
helpIconEnabled: "_helpIconEnabled_oo4mp_102"
|
|
334
|
-
},
|
|
334
|
+
}, Rr = {
|
|
335
335
|
tooltip: "_tooltip_wli9z_1",
|
|
336
336
|
error: "_error_wli9z_15",
|
|
337
337
|
warning: "_warning_wli9z_19"
|
|
338
|
-
},
|
|
338
|
+
}, zr = ({ 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 = { style: {
|
|
339
339
|
top: "100%",
|
|
340
340
|
bottom: void 0,
|
|
341
341
|
left: "50%",
|
|
342
342
|
right: void 0,
|
|
343
343
|
position: "absolute"
|
|
344
344
|
} } }) => /* @__PURE__ */ z("div", {
|
|
345
|
-
className: g(
|
|
345
|
+
className: g(Rr.tooltip, t ? Rr.error : n ? Rr.warning : ""),
|
|
346
346
|
...o,
|
|
347
347
|
children: [/* @__PURE__ */ R("div", {
|
|
348
348
|
style: {
|
|
@@ -355,7 +355,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
355
355
|
...s,
|
|
356
356
|
size: 6
|
|
357
357
|
})]
|
|
358
|
-
}),
|
|
358
|
+
}), G = ({ children: e, text: t = "", error: n = !1, placement: r = "top-center", possiblePlacements: a = [
|
|
359
359
|
"top-center",
|
|
360
360
|
"left-center",
|
|
361
361
|
"bottom-center",
|
|
@@ -374,7 +374,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
374
374
|
possiblePlacements: a,
|
|
375
375
|
onParentClose: v
|
|
376
376
|
});
|
|
377
|
-
return /* @__PURE__ */ z(L, { children: [y && b(/* @__PURE__ */ R(
|
|
377
|
+
return /* @__PURE__ */ z(L, { children: [y && b(/* @__PURE__ */ R(zr, {
|
|
378
378
|
text: t,
|
|
379
379
|
error: n,
|
|
380
380
|
warning: s,
|
|
@@ -393,32 +393,32 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
393
393
|
onClick: () => v(),
|
|
394
394
|
children: e
|
|
395
395
|
})] });
|
|
396
|
-
},
|
|
396
|
+
}, Br = {
|
|
397
397
|
helpIcon: "_helpIcon_hd0z2_1",
|
|
398
398
|
active: "_active_hd0z2_9",
|
|
399
399
|
clickable: "_clickable_hd0z2_12"
|
|
400
|
-
},
|
|
400
|
+
}, Vr = ({ children: e, text: t, maxWidth: n }) => t ? /* @__PURE__ */ R(G, {
|
|
401
401
|
text: t,
|
|
402
402
|
display: "inline-flex",
|
|
403
403
|
maxWidth: n,
|
|
404
404
|
children: e
|
|
405
|
-
}) : /* @__PURE__ */ R(L, { children: e }),
|
|
406
|
-
className: g(
|
|
405
|
+
}) : /* @__PURE__ */ R(L, { children: e }), Hr = ({ text: e, onClick: t, icon: n = "help", active: r = !1, maxWidth: i = "300px", testId: a }) => /* @__PURE__ */ R("div", {
|
|
406
|
+
className: g(Br.helpIcon, t ? Br.clickable : "", r ? Br.active : ""),
|
|
407
407
|
onClick: (e) => {
|
|
408
408
|
t && (e.stopPropagation(), t());
|
|
409
409
|
},
|
|
410
410
|
"data-testid": a,
|
|
411
|
-
children: /* @__PURE__ */ R(
|
|
411
|
+
children: /* @__PURE__ */ R(Vr, {
|
|
412
412
|
text: e,
|
|
413
413
|
maxWidth: i,
|
|
414
|
-
children: /* @__PURE__ */ R(
|
|
414
|
+
children: /* @__PURE__ */ R(W, { icon: n })
|
|
415
415
|
})
|
|
416
|
-
}),
|
|
417
|
-
let b = s(
|
|
416
|
+
}), Ur = ({ 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, value: h, helpText: _, onClickHelp: v, textTransform: y = _r.CAPITALIZE }) => {
|
|
417
|
+
let b = s(U), x = _ || v, S = u || b, C = p(null);
|
|
418
418
|
return c(() => {
|
|
419
419
|
C.current && (C.current.indeterminate = a);
|
|
420
420
|
}, [a]), /* @__PURE__ */ z("div", {
|
|
421
|
-
className: g(
|
|
421
|
+
className: g(Lr.checkbox, e && Lr.noMargin, n && Lr.isInTable, S && Lr.disabled, d && Lr.small, !l && Lr.noLabel),
|
|
422
422
|
"data-ix": t,
|
|
423
423
|
onClick: (e) => {
|
|
424
424
|
if (!S) {
|
|
@@ -448,65 +448,65 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
448
448
|
htmlFor: o,
|
|
449
449
|
style: { textTransform: y },
|
|
450
450
|
children: [/* @__PURE__ */ R("span", {
|
|
451
|
-
className:
|
|
452
|
-
children: /* @__PURE__ */ R(
|
|
451
|
+
className: Lr.checkmark,
|
|
452
|
+
children: /* @__PURE__ */ R(W, { icon: H.CHECK })
|
|
453
453
|
}), l]
|
|
454
454
|
}),
|
|
455
455
|
x && /* @__PURE__ */ R("div", {
|
|
456
|
-
className:
|
|
456
|
+
className: Lr.helpIconEnabled,
|
|
457
457
|
onClick: v,
|
|
458
|
-
children: /* @__PURE__ */ R(
|
|
458
|
+
children: /* @__PURE__ */ R(Hr, { text: _ })
|
|
459
459
|
})
|
|
460
460
|
]
|
|
461
461
|
});
|
|
462
|
-
},
|
|
462
|
+
}, Wr = {
|
|
463
463
|
bordered: "_bordered_1cgsf_1",
|
|
464
464
|
checkboxWrapper: "_checkboxWrapper_1cgsf_7",
|
|
465
465
|
padding: "_padding_1cgsf_13",
|
|
466
466
|
contentWrapper: "_contentWrapper_1cgsf_16"
|
|
467
|
-
},
|
|
467
|
+
}, Gr = /* @__PURE__ */ function(e) {
|
|
468
468
|
return e.TOGGLE_ACCORDION = "TOGGLE_ACCORDION", e.TOGGLE_ENABLE = "TOGGLE_ENABLE", e;
|
|
469
|
-
}({}),
|
|
469
|
+
}({}), Kr = (e, t) => {
|
|
470
470
|
switch (t.type) {
|
|
471
|
-
case
|
|
471
|
+
case Gr.TOGGLE_ACCORDION: return {
|
|
472
472
|
...e,
|
|
473
473
|
accordionExpanded: !e.accordionExpanded
|
|
474
474
|
};
|
|
475
|
-
case
|
|
475
|
+
case Gr.TOGGLE_ENABLE: return {
|
|
476
476
|
...e,
|
|
477
477
|
defaultEnabled: !e.defaultEnabled,
|
|
478
478
|
accordionExpanded: e.defaultEnabled
|
|
479
479
|
};
|
|
480
480
|
default: return e;
|
|
481
481
|
}
|
|
482
|
-
},
|
|
483
|
-
let [s, c] = f(
|
|
482
|
+
}, qr = ({ heading: e, toggleLabel: t, onClickDefaultToggle: n, expanded: r = !1, defaultEnabled: i = !0, padding: a = !0, children: o }) => {
|
|
483
|
+
let [s, c] = f(Kr, {
|
|
484
484
|
accordionExpanded: r,
|
|
485
485
|
defaultEnabled: i
|
|
486
486
|
}), l = /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", {
|
|
487
|
-
className:
|
|
488
|
-
children: /* @__PURE__ */ R(
|
|
487
|
+
className: Wr.checkboxWrapper,
|
|
488
|
+
children: /* @__PURE__ */ R(Ur, {
|
|
489
489
|
label: t,
|
|
490
490
|
onChange: (e) => {
|
|
491
|
-
c({ type:
|
|
491
|
+
c({ type: Gr.TOGGLE_ENABLE }), n == null || n(e);
|
|
492
492
|
},
|
|
493
493
|
checked: s.defaultEnabled
|
|
494
494
|
})
|
|
495
495
|
}), s.accordionExpanded && /* @__PURE__ */ R("div", {
|
|
496
|
-
className:
|
|
496
|
+
className: Wr.contentWrapper,
|
|
497
497
|
children: o
|
|
498
498
|
})] });
|
|
499
|
-
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(
|
|
499
|
+
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Ir, {
|
|
500
500
|
heading: e,
|
|
501
501
|
bordered: !0,
|
|
502
502
|
expanded: s.accordionExpanded,
|
|
503
503
|
squareBottom: !0,
|
|
504
|
-
onClick: () => c({ type:
|
|
504
|
+
onClick: () => c({ type: Gr.TOGGLE_ACCORDION })
|
|
505
505
|
}), /* @__PURE__ */ R("div", {
|
|
506
|
-
className: g(
|
|
506
|
+
className: g(Wr.bordered, a ? Wr.padding : ""),
|
|
507
507
|
children: l
|
|
508
508
|
})] });
|
|
509
|
-
},
|
|
509
|
+
}, Jr = {
|
|
510
510
|
inputInTable: "_inputInTable_1isig_1",
|
|
511
511
|
inputHover: "_inputHover_1isig_13",
|
|
512
512
|
inputFocus: "_inputFocus_1isig_18",
|
|
@@ -532,45 +532,45 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
532
532
|
groupOrderFirst: "_groupOrderFirst_1isig_344",
|
|
533
533
|
groupOrderMiddle: "_groupOrderMiddle_1isig_345",
|
|
534
534
|
groupOrderLast: "_groupOrderLast_1isig_346"
|
|
535
|
-
},
|
|
535
|
+
}, Yr = { spinner: "_spinner_156m4_1" }, Xr = ({ small: e = !1, colored: t = !1, dark: n = !1, tiny: r = !1 }) => {
|
|
536
536
|
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)";
|
|
537
537
|
return /* @__PURE__ */ R("div", {
|
|
538
|
-
className:
|
|
538
|
+
className: Yr.spinner,
|
|
539
539
|
style: {
|
|
540
540
|
color: i,
|
|
541
541
|
fontSize: a
|
|
542
542
|
}
|
|
543
543
|
});
|
|
544
|
-
},
|
|
544
|
+
}, Zr = /* @__PURE__ */ function(e) {
|
|
545
545
|
return e.SUBMIT = "submit", e.BUTTON = "button", e.RESET = "reset", e;
|
|
546
|
-
}({}),
|
|
546
|
+
}({}), Qr = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ R(G, {
|
|
547
547
|
text: t,
|
|
548
548
|
display: "inline-flex",
|
|
549
549
|
children: e
|
|
550
|
-
}) : /* @__PURE__ */ R(L, { children: e }),
|
|
551
|
-
let k = s(
|
|
550
|
+
}) : /* @__PURE__ */ R(L, { 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 = Zr.BUTTON, onClick: b = () => {}, error: x, warning: S, testId: C, tooltip: w, inverted: T = !1, component: E = "button", url: D, tabIndex: O }) => {
|
|
551
|
+
let k = s(U), A = (() => {
|
|
552
552
|
if (n) switch (n) {
|
|
553
|
-
case
|
|
554
|
-
case
|
|
555
|
-
case
|
|
556
|
-
case
|
|
557
|
-
case
|
|
558
|
-
default: return
|
|
553
|
+
case mr.DANGER:
|
|
554
|
+
case mr.RED: return Jr.red;
|
|
555
|
+
case mr.SUCCESS:
|
|
556
|
+
case mr.GREEN: return Jr.green;
|
|
557
|
+
case mr.MUTED: return Jr.muted;
|
|
558
|
+
default: return Jr.orange;
|
|
559
559
|
}
|
|
560
560
|
return "";
|
|
561
561
|
})(), j = (() => {
|
|
562
562
|
if (a) switch (a) {
|
|
563
|
-
case
|
|
564
|
-
case
|
|
565
|
-
default: return
|
|
563
|
+
case V.FIRST: return Jr.groupOrderFirst;
|
|
564
|
+
case V.LAST: return Jr.groupOrderLast;
|
|
565
|
+
default: return Jr.groupOrderMiddle;
|
|
566
566
|
}
|
|
567
567
|
return "";
|
|
568
568
|
})(), M = r || k && !i;
|
|
569
|
-
return /* @__PURE__ */ R(
|
|
569
|
+
return /* @__PURE__ */ R(Qr, {
|
|
570
570
|
tooltip: w,
|
|
571
571
|
children: /* @__PURE__ */ z(E, {
|
|
572
|
-
type: y ===
|
|
573
|
-
className: g(
|
|
572
|
+
type: y === Zr.SUBMIT ? Zr.SUBMIT : Zr.BUTTON,
|
|
573
|
+
className: g(Jr.button, e ? Jr.active : "", t ? Jr.basic : "", A, M ? Jr.disabled : "", (o || u) && !l ? Jr.iconOnly : "", T ? Jr.inverted : "", j, f ? Jr.pill : "", p ? Jr.round : "", m ? Jr.small : "", h),
|
|
574
574
|
disabled: M,
|
|
575
575
|
name: d == null ? "" : d,
|
|
576
576
|
onClick: b,
|
|
@@ -583,12 +583,12 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
583
583
|
tabIndex: O,
|
|
584
584
|
children: [
|
|
585
585
|
o && /* @__PURE__ */ R("span", {
|
|
586
|
-
className:
|
|
587
|
-
children: /* @__PURE__ */ R(
|
|
586
|
+
className: Jr.icon,
|
|
587
|
+
children: /* @__PURE__ */ R(W, { icon: o })
|
|
588
588
|
}),
|
|
589
589
|
u && /* @__PURE__ */ R("span", {
|
|
590
|
-
className:
|
|
591
|
-
children: /* @__PURE__ */ R(
|
|
590
|
+
className: Jr.icon,
|
|
591
|
+
children: /* @__PURE__ */ R(Xr, {
|
|
592
592
|
small: !m,
|
|
593
593
|
tiny: m,
|
|
594
594
|
dark: !n && !t,
|
|
@@ -597,18 +597,18 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
597
597
|
}),
|
|
598
598
|
l,
|
|
599
599
|
c && /* @__PURE__ */ R("span", {
|
|
600
|
-
className:
|
|
601
|
-
children: /* @__PURE__ */ R(
|
|
600
|
+
className: Jr.rightIcon,
|
|
601
|
+
children: /* @__PURE__ */ R(W, { icon: c })
|
|
602
602
|
})
|
|
603
603
|
]
|
|
604
604
|
})
|
|
605
605
|
});
|
|
606
|
-
},
|
|
606
|
+
}, $r = {
|
|
607
607
|
actions: "_actions_1t7vd_1",
|
|
608
608
|
childComponent: "_childComponent_1t7vd_11",
|
|
609
609
|
actionComponentContainer: "_actionComponentContainer_1t7vd_14",
|
|
610
610
|
active: "_active_1t7vd_36"
|
|
611
|
-
},
|
|
611
|
+
}, q = {
|
|
612
612
|
wrapper: "_wrapper_17ntv_1",
|
|
613
613
|
layer: "_layer_17ntv_5",
|
|
614
614
|
layerContainer: "_layerContainer_17ntv_8",
|
|
@@ -638,16 +638,16 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
638
638
|
component: "_component_17ntv_199",
|
|
639
639
|
right: "_right_17ntv_205",
|
|
640
640
|
actions: "_actions_17ntv_210"
|
|
641
|
-
},
|
|
641
|
+
}, ei = ({ label: e, onClick: t, icon: n, testId: r }) => /* @__PURE__ */ z("div", {
|
|
642
642
|
onClick: (e) => e.stopPropagation(),
|
|
643
|
-
className:
|
|
643
|
+
className: q.heading,
|
|
644
644
|
"data-testid": r,
|
|
645
645
|
children: [e, !!n && /* @__PURE__ */ R("span", {
|
|
646
|
-
className: g(
|
|
646
|
+
className: g(q.headingIcon, t ? q.clickable : ""),
|
|
647
647
|
onClick: t,
|
|
648
|
-
children: /* @__PURE__ */ R(
|
|
648
|
+
children: /* @__PURE__ */ R(W, { icon: n })
|
|
649
649
|
})]
|
|
650
|
-
}),
|
|
650
|
+
}), ti = () => /* @__PURE__ */ R("hr", { className: q.divider }), ni = ({ actions: e, label: t, url: n, onClick: r, description: i, icon: a, selected: o, closeOnOptionClick: s, close: c, disabled: l, inline: u, title: d, upload: f, uploadType: p, onChange: m = B, testId: h, component: _ = "a" }) => {
|
|
651
651
|
let v = (e) => {
|
|
652
652
|
if (e.stopPropagation(), l) {
|
|
653
653
|
e.preventDefault();
|
|
@@ -673,65 +673,65 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
673
673
|
return /* @__PURE__ */ z(_, {
|
|
674
674
|
href: n,
|
|
675
675
|
to: n,
|
|
676
|
-
className: g(
|
|
676
|
+
className: g(q.option, l ? q.disabled : "", u ? q.inline : "", o ? q == null ? void 0 : q.selected : ""),
|
|
677
677
|
onClick: v,
|
|
678
678
|
"data-testid": h,
|
|
679
679
|
children: [
|
|
680
680
|
a ? /* @__PURE__ */ R("span", {
|
|
681
|
-
className:
|
|
682
|
-
children: /* @__PURE__ */ R(
|
|
681
|
+
className: q.icon,
|
|
682
|
+
children: /* @__PURE__ */ R(W, { icon: a })
|
|
683
683
|
}) : null,
|
|
684
684
|
/* @__PURE__ */ z("div", {
|
|
685
|
-
className:
|
|
685
|
+
className: q.optionContent,
|
|
686
686
|
children: [
|
|
687
687
|
f && /* @__PURE__ */ R("input", {
|
|
688
688
|
type: "file",
|
|
689
689
|
accept: p,
|
|
690
|
-
className:
|
|
690
|
+
className: q.fileInput,
|
|
691
691
|
onChange: y
|
|
692
692
|
}),
|
|
693
693
|
/* @__PURE__ */ R("span", {
|
|
694
|
-
className:
|
|
694
|
+
className: q.label,
|
|
695
695
|
title: `${d || t}`,
|
|
696
696
|
children: t
|
|
697
697
|
}),
|
|
698
698
|
/* @__PURE__ */ R("span", {
|
|
699
|
-
className:
|
|
699
|
+
className: q.description,
|
|
700
700
|
children: i
|
|
701
701
|
})
|
|
702
702
|
]
|
|
703
703
|
}),
|
|
704
704
|
/* @__PURE__ */ z("div", {
|
|
705
|
-
className:
|
|
705
|
+
className: q.right,
|
|
706
706
|
children: [o && /* @__PURE__ */ R("span", {
|
|
707
|
-
className:
|
|
708
|
-
children: /* @__PURE__ */ R(
|
|
707
|
+
className: q.check,
|
|
708
|
+
children: /* @__PURE__ */ R(W, { icon: H.CHECK })
|
|
709
709
|
}), !!(e != null && e.length) && /* @__PURE__ */ R("div", {
|
|
710
|
-
className:
|
|
711
|
-
children: /* @__PURE__ */ R(
|
|
710
|
+
className: q.actions,
|
|
711
|
+
children: /* @__PURE__ */ R(Oi, { actions: e })
|
|
712
712
|
})]
|
|
713
713
|
})
|
|
714
714
|
]
|
|
715
715
|
});
|
|
716
|
-
},
|
|
716
|
+
}, ri = /* @__PURE__ */ function(e) {
|
|
717
717
|
return e.HEADING = "Heading", e.DIVIDER = "Divider", e.OPTION = "Option", e.MENU = "Menu", e;
|
|
718
|
-
}({}),
|
|
718
|
+
}({}), ii = /* @__PURE__ */ function(e) {
|
|
719
719
|
return e.FALSE = "false", e.RIGHT = "right", e.DOWN = "down", e;
|
|
720
|
-
}({}),
|
|
721
|
-
let o = s(
|
|
720
|
+
}({}), ai = ({ section: e, closeOnOptionClick: t, close: n, tree: r, path: i, maxHeight: a }) => {
|
|
721
|
+
let o = s(U);
|
|
722
722
|
switch (e.type) {
|
|
723
|
-
case
|
|
723
|
+
case ri.HEADING:
|
|
724
724
|
var c;
|
|
725
|
-
return /* @__PURE__ */ R(
|
|
725
|
+
return /* @__PURE__ */ R(ei, {
|
|
726
726
|
label: (c = e == null ? void 0 : e.label) == null ? "" : c,
|
|
727
727
|
onClick: e.onClick,
|
|
728
728
|
icon: e.icon,
|
|
729
729
|
testId: e.testId
|
|
730
730
|
});
|
|
731
|
-
case
|
|
732
|
-
case
|
|
731
|
+
case ri.DIVIDER: return /* @__PURE__ */ R(ti, {});
|
|
732
|
+
case ri.OPTION:
|
|
733
733
|
var l;
|
|
734
|
-
return /* @__PURE__ */ R(
|
|
734
|
+
return /* @__PURE__ */ R(ni, {
|
|
735
735
|
actions: e == null ? void 0 : e.actions,
|
|
736
736
|
label: (l = e == null ? void 0 : e.label) == null ? "" : l,
|
|
737
737
|
url: e == null ? void 0 : e.url,
|
|
@@ -750,10 +750,10 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
750
750
|
testId: e == null ? void 0 : e.testId,
|
|
751
751
|
component: e == null ? void 0 : e.component
|
|
752
752
|
});
|
|
753
|
-
case
|
|
753
|
+
case ri.MENU:
|
|
754
754
|
var u;
|
|
755
755
|
let s = !!(!(e == null || (u = e.menu) == null || (u = u.sections) == null) && u.find((e) => e == null ? void 0 : e.selected));
|
|
756
|
-
return /* @__PURE__ */ R(
|
|
756
|
+
return /* @__PURE__ */ R(Ti, {
|
|
757
757
|
menu: e.menu,
|
|
758
758
|
selected: s,
|
|
759
759
|
title: e.title,
|
|
@@ -767,7 +767,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
767
767
|
});
|
|
768
768
|
default: return null;
|
|
769
769
|
}
|
|
770
|
-
},
|
|
770
|
+
}, oi = (e) => e.includes("[") ? e.substr(0, e.lastIndexOf("[")) : e, si = (e, t) => `${e}.sections[${t}]`.replace(/^\./, ""), ci = (e) => `${e}.close`.replace(/^\./, ""), li = (e, t) => Ut(e, oi(t), []), ui = (e, t, n) => tn(e, ci(t), n), di = ({ sections: e, isNested: t, width: n, closeOnOptionClick: r, close: a = () => {}, tree: o, path: s, maxHeight: c, showAllButton: l, testId: u }) => {
|
|
771
771
|
var d, f;
|
|
772
772
|
if (i(e)) return /* @__PURE__ */ R(L, { children: e });
|
|
773
773
|
let [p, h] = m(!(l != null && l.visible)), _ = e, v = (d = l == null || (f = l.additionalSections) == null ? void 0 : f.map((e) => ({
|
|
@@ -775,7 +775,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
775
775
|
closeOnOptionClick: r,
|
|
776
776
|
visible: !0
|
|
777
777
|
}))) == null ? [] : d, y = _.length > 4 ? [{
|
|
778
|
-
type:
|
|
778
|
+
type: ri.OPTION,
|
|
779
779
|
label: p ? (l == null ? void 0 : l.showLessTitle) || "Show less" : (l == null ? void 0 : l.showAllTitle) || "Show all",
|
|
780
780
|
onClick: () => h(!p),
|
|
781
781
|
visible: !0,
|
|
@@ -789,42 +789,42 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
789
789
|
closeOnOptionClick: r
|
|
790
790
|
}));
|
|
791
791
|
return /* @__PURE__ */ R("div", {
|
|
792
|
-
className: g(
|
|
792
|
+
className: g(q.layer, t ? q.nested : null),
|
|
793
793
|
style: {
|
|
794
794
|
maxWidth: n,
|
|
795
795
|
maxHeight: c
|
|
796
796
|
},
|
|
797
797
|
"data-testid": u,
|
|
798
|
-
children: /* @__PURE__ */ R("ul", { children: b.map((e, t) => /* @__PURE__ */ R("li", { children: /* @__PURE__ */ R(
|
|
798
|
+
children: /* @__PURE__ */ R("ul", { children: b.map((e, t) => /* @__PURE__ */ R("li", { children: /* @__PURE__ */ R(ai, {
|
|
799
799
|
section: e,
|
|
800
800
|
closeOnOptionClick: e.closeOnOptionClick,
|
|
801
801
|
close: a,
|
|
802
802
|
tree: o,
|
|
803
|
-
path:
|
|
803
|
+
path: si(s, t),
|
|
804
804
|
maxHeight: c
|
|
805
805
|
}) }, t)) })
|
|
806
806
|
});
|
|
807
|
-
},
|
|
807
|
+
}, fi = (e, t = !1) => ({
|
|
808
808
|
auto: !0,
|
|
809
809
|
preferX: "right",
|
|
810
810
|
preferY: "bottom",
|
|
811
811
|
placement: e || (t ? "right-start" : "bottom-start")
|
|
812
|
-
}),
|
|
812
|
+
}), J = (e) => $t(e) || Xt(e) || i(e), pi = (e) => Array.isArray(e) ? "array" : typeof e, mi = {
|
|
813
813
|
wrapper: "_wrapper_14vly_1",
|
|
814
814
|
badge: "_badge_14vly_5",
|
|
815
815
|
label: "_label_14vly_11",
|
|
816
816
|
small: "_small_14vly_23",
|
|
817
817
|
dot: "_dot_14vly_27",
|
|
818
818
|
hasChildren: "_hasChildren_14vly_33"
|
|
819
|
-
},
|
|
819
|
+
}, hi = (e) => {
|
|
820
820
|
let t = e.substring(1), n = parseInt(t, 16), r = n >> 16 & 255, i = n >> 8 & 255, a = n >> 0 & 255;
|
|
821
821
|
return .2126 * r + .7152 * i + .0722 * a < 128;
|
|
822
|
-
},
|
|
823
|
-
let s = !(r === null && i === !1), c = n || (
|
|
822
|
+
}, gi = ({ children: e, color: t = "", textColor: n = "", title: r = null, dot: i = !1, margin: a = null, small: o = !1 }) => {
|
|
823
|
+
let s = !(r === null && i === !1), c = n || (hi(t) ? "#fff" : "rgba(0, 0, 0, 0.6)");
|
|
824
824
|
return /* @__PURE__ */ z("div", {
|
|
825
|
-
className:
|
|
825
|
+
className: mi.wrapper,
|
|
826
826
|
children: [s && /* @__PURE__ */ R("sup", {
|
|
827
|
-
className: g(
|
|
827
|
+
className: g(mi.badge, r === null ? mi.dot : mi.label, o ? mi.small : "", e ? mi.hasChildren : ""),
|
|
828
828
|
style: {
|
|
829
829
|
background: t || void 0,
|
|
830
830
|
margin: a || void 0,
|
|
@@ -833,14 +833,14 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
833
833
|
children: r
|
|
834
834
|
}), e]
|
|
835
835
|
});
|
|
836
|
-
},
|
|
837
|
-
let p = s(
|
|
836
|
+
}, _i = ({ trigger: e, label: t, colored: n, small: r, width: i, disabled: a, groupOrder: o, loading: c, error: l, warning: u, active: d, tabIndex: f }) => {
|
|
837
|
+
let p = s(U), m = e === pr.DROP_DOWN_BUTTON;
|
|
838
838
|
return /* @__PURE__ */ R("div", {
|
|
839
|
-
className: g(
|
|
839
|
+
className: g(q.trigger, a || p ? q.disabled : null),
|
|
840
840
|
style: { width: i },
|
|
841
|
-
children: /* @__PURE__ */ R(
|
|
841
|
+
children: /* @__PURE__ */ R(K, {
|
|
842
842
|
label: /* @__PURE__ */ R("span", {
|
|
843
|
-
className:
|
|
843
|
+
className: q.buttonLabel,
|
|
844
844
|
children: t
|
|
845
845
|
}),
|
|
846
846
|
colored: n,
|
|
@@ -848,7 +848,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
848
848
|
width: i,
|
|
849
849
|
groupOrder: o,
|
|
850
850
|
onClick: () => {},
|
|
851
|
-
rightIcon: m ?
|
|
851
|
+
rightIcon: m ? H.CHEVRON_DOWN : null,
|
|
852
852
|
loading: c,
|
|
853
853
|
disabled: a,
|
|
854
854
|
error: l,
|
|
@@ -857,34 +857,34 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
857
857
|
tabIndex: f
|
|
858
858
|
})
|
|
859
859
|
});
|
|
860
|
-
},
|
|
860
|
+
}, vi = ({ label: e, title: t, carat: n, disabled: r, isOpen: i, selected: a }) => {
|
|
861
861
|
let o;
|
|
862
862
|
return t ? o = t : (typeof e == "string" || typeof e == "number") && (o = String(e)), /* @__PURE__ */ z("div", {
|
|
863
|
-
className: g(
|
|
863
|
+
className: g(q.trigger, r ? q.disabled : null, i ? q.active : null, a ? q == null ? void 0 : q.selected : null),
|
|
864
864
|
children: [/* @__PURE__ */ R("span", {
|
|
865
|
-
className:
|
|
865
|
+
className: q.label,
|
|
866
866
|
title: o,
|
|
867
867
|
children: e
|
|
868
|
-
}), n && n ===
|
|
869
|
-
className:
|
|
870
|
-
children: /* @__PURE__ */ R(
|
|
871
|
-
}) : n && n ===
|
|
872
|
-
className:
|
|
873
|
-
children: /* @__PURE__ */ R(
|
|
868
|
+
}), n && n === ii.RIGHT ? /* @__PURE__ */ R("span", {
|
|
869
|
+
className: q.arrow,
|
|
870
|
+
children: /* @__PURE__ */ R(W, { icon: H.CHEVRON_RIGHT })
|
|
871
|
+
}) : n && n === ii.DOWN ? /* @__PURE__ */ R("span", {
|
|
872
|
+
className: q.arrow,
|
|
873
|
+
children: /* @__PURE__ */ R(W, { icon: H.CHEVRON_DOWN })
|
|
874
874
|
}) : null]
|
|
875
875
|
});
|
|
876
|
-
},
|
|
877
|
-
className: g(
|
|
876
|
+
}, yi = ({ component: e, disabled: t, testId: n }) => /* @__PURE__ */ R("div", {
|
|
877
|
+
className: g(q.component, t ? q.disabled : null),
|
|
878
878
|
"data-testid": n,
|
|
879
879
|
children: e
|
|
880
|
-
}),
|
|
880
|
+
}), bi = ({ tooltip: e, error: t, warning: n, children: r }) => !J(e) && !J(t) && !J(n) ? /* @__PURE__ */ R(L, { children: r }) : /* @__PURE__ */ R(G, {
|
|
881
881
|
error: !!t,
|
|
882
882
|
warning: !!n,
|
|
883
883
|
text: e || t || n,
|
|
884
884
|
display: "inline-flex",
|
|
885
885
|
children: r
|
|
886
|
-
}),
|
|
887
|
-
let E = o ===
|
|
886
|
+
}), xi = 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 }, T) => {
|
|
887
|
+
let E = o === pr.BUTTON || o === pr.DROP_DOWN_BUTTON ? /* @__PURE__ */ R(_i, {
|
|
888
888
|
trigger: o,
|
|
889
889
|
label: s == null ? "" : s,
|
|
890
890
|
colored: u,
|
|
@@ -897,17 +897,17 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
897
897
|
warning: y,
|
|
898
898
|
active: _ || e,
|
|
899
899
|
tabIndex: C
|
|
900
|
-
}) : o ===
|
|
900
|
+
}) : o === pr.TEXT ? /* @__PURE__ */ R(vi, {
|
|
901
901
|
label: s == null ? "" : s,
|
|
902
902
|
title: c,
|
|
903
903
|
disabled: t,
|
|
904
|
-
carat: p ? void 0 : f ?
|
|
904
|
+
carat: p ? void 0 : f ? ii.RIGHT : ii.DOWN,
|
|
905
905
|
isOpen: _,
|
|
906
906
|
selected: S
|
|
907
|
-
}) : o ===
|
|
907
|
+
}) : o === pr.COMPONENT ? /* @__PURE__ */ R(yi, {
|
|
908
908
|
component: m,
|
|
909
909
|
disabled: t
|
|
910
|
-
}) : null, D = !f && (n || r) ? /* @__PURE__ */ R(
|
|
910
|
+
}) : null, D = !f && (n || r) ? /* @__PURE__ */ R(gi, {
|
|
911
911
|
title: n,
|
|
912
912
|
dot: r,
|
|
913
913
|
small: !r,
|
|
@@ -915,7 +915,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
915
915
|
}) : E;
|
|
916
916
|
return /* @__PURE__ */ R("div", {
|
|
917
917
|
ref: T,
|
|
918
|
-
className:
|
|
918
|
+
className: q.wrapper,
|
|
919
919
|
style: a ? { width: a } : { ...g && {
|
|
920
920
|
height: "100%",
|
|
921
921
|
display: "flex"
|
|
@@ -926,21 +926,21 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
926
926
|
"data-error": v || null,
|
|
927
927
|
"data-warning": y || null,
|
|
928
928
|
"data-testid": x,
|
|
929
|
-
children: /* @__PURE__ */ R(
|
|
929
|
+
children: /* @__PURE__ */ R(bi, {
|
|
930
930
|
tooltip: b,
|
|
931
931
|
error: v,
|
|
932
932
|
warning: y,
|
|
933
933
|
children: D
|
|
934
934
|
})
|
|
935
935
|
});
|
|
936
|
-
}),
|
|
936
|
+
}), Si = (e) => {
|
|
937
937
|
let { sections: t } = e;
|
|
938
938
|
return !i(t) && (!Array.isArray(t) || t.every((e) => Kt(e)));
|
|
939
|
-
},
|
|
939
|
+
}, Ci = ({ sections: e, width: t, placement: n, possiblePlacements: r, closeOnOptionClick: i, closeParent: a, tree: o, path: s, overflowContainer: c, maxHeight: l, testId: u }) => {
|
|
940
940
|
let { hasMousePosition: d, resetMousePosition: f, handleMouseEvent: p, trigger: m } = Rt(), h = f, g = d, { layerProps: _, renderLayer: v } = Lt({
|
|
941
941
|
isOpen: g,
|
|
942
942
|
trigger: m,
|
|
943
|
-
...
|
|
943
|
+
...fi(n),
|
|
944
944
|
possiblePlacements: r,
|
|
945
945
|
ResizeObserver: Nt,
|
|
946
946
|
onOutsideClick: h,
|
|
@@ -948,7 +948,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
948
948
|
});
|
|
949
949
|
return [g && v(/* @__PURE__ */ R("div", {
|
|
950
950
|
..._,
|
|
951
|
-
children: /* @__PURE__ */ R(
|
|
951
|
+
children: /* @__PURE__ */ R(di, {
|
|
952
952
|
isNested: !1,
|
|
953
953
|
width: t,
|
|
954
954
|
sections: e,
|
|
@@ -960,8 +960,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
960
960
|
testId: u && `${u}-layer`
|
|
961
961
|
})
|
|
962
962
|
})), p];
|
|
963
|
-
},
|
|
964
|
-
let u = s(
|
|
963
|
+
}, wi = ({ menu: e, width: t, disabled: n = !1, closeOnOptionClick: r = !0, closeParent: i, tree: a, path: o, groupOrder: c, testId: l }) => {
|
|
964
|
+
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] = Ci({
|
|
965
965
|
sections: e.sections,
|
|
966
966
|
width: t,
|
|
967
967
|
placement: _,
|
|
@@ -974,11 +974,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
974
974
|
overflowContainer: !0,
|
|
975
975
|
maxHeight: void 0,
|
|
976
976
|
testId: l
|
|
977
|
-
}), x = n ||
|
|
977
|
+
}), x = n || Si(e) || u;
|
|
978
978
|
return /* @__PURE__ */ z("div", {
|
|
979
979
|
onContextMenu: b,
|
|
980
980
|
"data-testid": l,
|
|
981
|
-
children: [/* @__PURE__ */ R(
|
|
981
|
+
children: [/* @__PURE__ */ R(xi, {
|
|
982
982
|
width: t,
|
|
983
983
|
fullHeight: p,
|
|
984
984
|
isDisabled: x,
|
|
@@ -993,17 +993,17 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
993
993
|
groupOrder: c
|
|
994
994
|
}), y]
|
|
995
995
|
});
|
|
996
|
-
},
|
|
997
|
-
let E = s(
|
|
996
|
+
}, Ti = ({ 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 }) => {
|
|
997
|
+
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: te, possiblePlacements: ne = ["bottom-start", "top-start"] } = e, [re, ie] = Gt(v) && Jt(y) ? [v, y] : m(!1), ae = () => ie(!1), oe = () => ie(!0), { triggerProps: se, layerProps: ce, renderLayer: le } = Lt({
|
|
998
998
|
isOpen: re,
|
|
999
|
-
...
|
|
999
|
+
...fi(ee, o),
|
|
1000
1000
|
possiblePlacements: ne,
|
|
1001
1001
|
ResizeObserver: Nt,
|
|
1002
1002
|
onOutsideClick: ae,
|
|
1003
1003
|
overflowContainer: h,
|
|
1004
1004
|
onParentClose: ae
|
|
1005
|
-
}), I = n ||
|
|
1006
|
-
return
|
|
1005
|
+
}), I = n || Si(e) || E;
|
|
1006
|
+
return ui(u, d, ae), /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(xi, {
|
|
1007
1007
|
ref: se.ref,
|
|
1008
1008
|
isDisabled: I,
|
|
1009
1009
|
badgeTitle: r,
|
|
@@ -1020,7 +1020,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1020
1020
|
ae();
|
|
1021
1021
|
return;
|
|
1022
1022
|
}
|
|
1023
|
-
|
|
1023
|
+
li(u, d).forEach((e) => {
|
|
1024
1024
|
e.close && e.close();
|
|
1025
1025
|
}), oe();
|
|
1026
1026
|
}
|
|
@@ -1043,8 +1043,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1043
1043
|
in: re,
|
|
1044
1044
|
timeout: 100,
|
|
1045
1045
|
classNames: {
|
|
1046
|
-
enter:
|
|
1047
|
-
enterActive:
|
|
1046
|
+
enter: q.enter,
|
|
1047
|
+
enterActive: q.enterActive
|
|
1048
1048
|
},
|
|
1049
1049
|
unmountOnExit: !0,
|
|
1050
1050
|
children: /* @__PURE__ */ R(L, { children: re && le(/* @__PURE__ */ R("div", {
|
|
@@ -1052,10 +1052,10 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1052
1052
|
ref: (e) => {
|
|
1053
1053
|
D.current = e, ce.ref(e);
|
|
1054
1054
|
},
|
|
1055
|
-
className:
|
|
1055
|
+
className: q.layerContainer,
|
|
1056
1056
|
"data-testid": e.testId,
|
|
1057
1057
|
onClick: (e) => e.stopPropagation(),
|
|
1058
|
-
children: /* @__PURE__ */ R(
|
|
1058
|
+
children: /* @__PURE__ */ R(di, {
|
|
1059
1059
|
sections: P,
|
|
1060
1060
|
isNested: o,
|
|
1061
1061
|
width: t,
|
|
@@ -1069,28 +1069,28 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1069
1069
|
})
|
|
1070
1070
|
})) })
|
|
1071
1071
|
})] });
|
|
1072
|
-
},
|
|
1072
|
+
}, Ei = (e) => e.contextMenu ? /* @__PURE__ */ R(wi, {
|
|
1073
1073
|
...e,
|
|
1074
1074
|
tree: {},
|
|
1075
1075
|
path: "",
|
|
1076
1076
|
testId: e.testId
|
|
1077
|
-
}) : /* @__PURE__ */ R(
|
|
1077
|
+
}) : /* @__PURE__ */ R(Ti, {
|
|
1078
1078
|
...e,
|
|
1079
1079
|
tree: {},
|
|
1080
1080
|
path: "",
|
|
1081
1081
|
testId: e.testId
|
|
1082
|
-
}),
|
|
1083
|
-
let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ R(
|
|
1084
|
-
colored: r ? !0 :
|
|
1082
|
+
}), Di = (e) => {
|
|
1083
|
+
let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ R(K, {
|
|
1084
|
+
colored: r ? !0 : mr.MUTED,
|
|
1085
1085
|
basic: !r,
|
|
1086
1086
|
round: !0,
|
|
1087
1087
|
small: !0,
|
|
1088
|
-
icon: n ||
|
|
1088
|
+
icon: n || H.MENU,
|
|
1089
1089
|
testId: i,
|
|
1090
1090
|
tooltip: a
|
|
1091
1091
|
});
|
|
1092
|
-
return t.length ? /* @__PURE__ */ R(
|
|
1093
|
-
trigger:
|
|
1092
|
+
return t.length ? /* @__PURE__ */ R(Ei, { menu: {
|
|
1093
|
+
trigger: pr.COMPONENT,
|
|
1094
1094
|
component: o,
|
|
1095
1095
|
sections: t.map((e) => {
|
|
1096
1096
|
var t;
|
|
@@ -1107,22 +1107,22 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1107
1107
|
};
|
|
1108
1108
|
})
|
|
1109
1109
|
} }) : null;
|
|
1110
|
-
},
|
|
1111
|
-
let n = s(
|
|
1110
|
+
}, Oi = (t) => {
|
|
1111
|
+
let n = s(U), { actions: r = [], closeLayer: i } = t;
|
|
1112
1112
|
return /* @__PURE__ */ R("div", {
|
|
1113
|
-
className: g(
|
|
1113
|
+
className: g($r.actions),
|
|
1114
1114
|
children: r.map((t, r) => {
|
|
1115
1115
|
if (!(t != null && t.hidden || !t || !Object.keys(t).length)) return t.childComponent && e.isValidElement(t.childComponent) ? /* @__PURE__ */ R("div", {
|
|
1116
1116
|
"data-testid": t.testId,
|
|
1117
|
-
className:
|
|
1117
|
+
className: $r.childComponent,
|
|
1118
1118
|
children: t.childComponent
|
|
1119
|
-
}, r) : t.subActions ? /* @__PURE__ */ R(
|
|
1119
|
+
}, r) : t.subActions ? /* @__PURE__ */ R(Di, {
|
|
1120
1120
|
subActions: t.subActions,
|
|
1121
1121
|
primary: t.primary,
|
|
1122
1122
|
subMenuIcon: t.icon,
|
|
1123
1123
|
testId: t.testId,
|
|
1124
1124
|
tooltip: t.tooltip
|
|
1125
|
-
}, r) : /* @__PURE__ */ R(
|
|
1125
|
+
}, r) : /* @__PURE__ */ R(K, {
|
|
1126
1126
|
colored: t.primary ? !0 : "muted",
|
|
1127
1127
|
round: !0,
|
|
1128
1128
|
basic: !t.primary,
|
|
@@ -1138,30 +1138,30 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1138
1138
|
}, r);
|
|
1139
1139
|
})
|
|
1140
1140
|
});
|
|
1141
|
-
},
|
|
1141
|
+
}, ki = {
|
|
1142
1142
|
breadcrumb: "_breadcrumb_2k0cd_1",
|
|
1143
1143
|
small: "_small_2k0cd_4",
|
|
1144
1144
|
labelContainer: "_labelContainer_2k0cd_7",
|
|
1145
1145
|
active: "_active_2k0cd_17",
|
|
1146
1146
|
disabled: "_disabled_2k0cd_22",
|
|
1147
1147
|
separator: "_separator_2k0cd_27"
|
|
1148
|
-
},
|
|
1148
|
+
}, Ai = /* @__PURE__ */ function(e) {
|
|
1149
1149
|
return e.LABEL = "label", e.LINK = "link", e.CUSTOM = "custom", e;
|
|
1150
|
-
}({}),
|
|
1151
|
-
let l = s(
|
|
1150
|
+
}({}), ji = ({ type: e = Ai.LABEL, label: t, url: n, onClick: r, active: a, disabled: o, element: c }) => {
|
|
1151
|
+
let l = s(U), u = e === Ai.LINK && n !== void 0, d = e === Ai.CUSTOM && i(c);
|
|
1152
1152
|
return /* @__PURE__ */ R("span", {
|
|
1153
1153
|
onClick: r,
|
|
1154
|
-
className: g(
|
|
1154
|
+
className: g(ki.labelContainer, a && ki.active, (o || l) && ki.disabled),
|
|
1155
1155
|
children: u ? /* @__PURE__ */ R("a", {
|
|
1156
1156
|
href: n,
|
|
1157
1157
|
children: t
|
|
1158
1158
|
}) : d ? c : t
|
|
1159
1159
|
});
|
|
1160
|
-
},
|
|
1161
|
-
className: g(
|
|
1160
|
+
}, Mi = ({ links: e, small: t = !1 }) => /* @__PURE__ */ R("div", {
|
|
1161
|
+
className: g(ki.breadcrumb, t && ki.small),
|
|
1162
1162
|
children: e.map((t, n) => {
|
|
1163
1163
|
let r = e.length === n + 1, { type: i, label: a, url: o, onClick: s, active: c, disabled: l, element: u } = t;
|
|
1164
|
-
return /* @__PURE__ */ z("span", { children: [/* @__PURE__ */ R(
|
|
1164
|
+
return /* @__PURE__ */ z("span", { children: [/* @__PURE__ */ R(ji, {
|
|
1165
1165
|
type: i,
|
|
1166
1166
|
label: a,
|
|
1167
1167
|
url: o,
|
|
@@ -1170,34 +1170,34 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1170
1170
|
disabled: l,
|
|
1171
1171
|
element: u
|
|
1172
1172
|
}), !r && /* @__PURE__ */ R("span", {
|
|
1173
|
-
className:
|
|
1173
|
+
className: ki.separator,
|
|
1174
1174
|
children: "/"
|
|
1175
1175
|
})] }, n);
|
|
1176
1176
|
})
|
|
1177
|
-
}),
|
|
1177
|
+
}), Ni = {
|
|
1178
1178
|
label: "_label_iu2wi_1",
|
|
1179
1179
|
buttonGroup: "_buttonGroup_iu2wi_11"
|
|
1180
|
-
},
|
|
1181
|
-
let { basic: t = !1, items: n = [], header: r = "", onSelected: i = () => {}, small: a = !1, value: o = "", testId: c = void 0, disabled: l } = e, u = s(
|
|
1180
|
+
}, Pi = (e) => {
|
|
1181
|
+
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) => {
|
|
1182
1182
|
e.preventDefault(), e.stopPropagation(), !(l || a || u) && i(t, n, r);
|
|
1183
1183
|
}, f = (e, t) => t === "string" ? e : t === "object" ? e.label : t === "array" ? e[1] : null, p = (e, t) => {
|
|
1184
1184
|
var n, r;
|
|
1185
1185
|
return t === "string" ? e : t === "object" ? (n = e.value) == null ? "" : n : t === "array" ? (r = e[0]) == null ? "" : r : "";
|
|
1186
1186
|
}, 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, v = () => {
|
|
1187
1187
|
if (r) return /* @__PURE__ */ R("label", {
|
|
1188
|
-
className:
|
|
1188
|
+
className: Ni.label,
|
|
1189
1189
|
children: r
|
|
1190
1190
|
});
|
|
1191
1191
|
}, y = () => n.map((e, r) => {
|
|
1192
|
-
let i =
|
|
1193
|
-
return v ? null : /* @__PURE__ */ R(
|
|
1192
|
+
let i = pi(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;
|
|
1193
|
+
return v ? null : /* @__PURE__ */ R(G, {
|
|
1194
1194
|
error: !!x,
|
|
1195
1195
|
warning: !!T,
|
|
1196
1196
|
text: w || x || T,
|
|
1197
1197
|
maxWidth: S,
|
|
1198
1198
|
display: "block",
|
|
1199
|
-
enabled: w &&
|
|
1200
|
-
children: /* @__PURE__ */ R(
|
|
1199
|
+
enabled: w && J(w) || x && J(x) || T && J(T) || !1,
|
|
1200
|
+
children: /* @__PURE__ */ R(K, {
|
|
1201
1201
|
active: b,
|
|
1202
1202
|
basic: t,
|
|
1203
1203
|
disabled: l || e.disabled,
|
|
@@ -1213,11 +1213,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1213
1213
|
}, r);
|
|
1214
1214
|
});
|
|
1215
1215
|
return /* @__PURE__ */ R("div", { children: /* @__PURE__ */ z("div", { children: [v(), /* @__PURE__ */ R("div", {
|
|
1216
|
-
className:
|
|
1216
|
+
className: Ni.buttonGroup,
|
|
1217
1217
|
"data-testid": c,
|
|
1218
1218
|
children: y()
|
|
1219
1219
|
})] }) });
|
|
1220
|
-
},
|
|
1220
|
+
}, Fi = {
|
|
1221
1221
|
card: "_card_ucdeu_1",
|
|
1222
1222
|
bordered: "_bordered_ucdeu_4",
|
|
1223
1223
|
raised: "_raised_ucdeu_10",
|
|
@@ -1225,24 +1225,24 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1225
1225
|
cardContentBorderTop: "_cardContentBorderTop_ucdeu_19",
|
|
1226
1226
|
padding: "_padding_ucdeu_22",
|
|
1227
1227
|
cardContent: "_cardContent_ucdeu_19"
|
|
1228
|
-
},
|
|
1229
|
-
className: g(
|
|
1228
|
+
}, Ii = ({ bordered: e = !0, heading: t = null, children: n, margin: r = "0", padding: i = !0, raised: a = !1 }) => /* @__PURE__ */ z("div", {
|
|
1229
|
+
className: g(Fi.card, e ? Fi.bordered : "", a ? Fi.raised : ""),
|
|
1230
1230
|
style: { margin: r },
|
|
1231
1231
|
children: [t ? /* @__PURE__ */ R("div", {
|
|
1232
|
-
className: g(
|
|
1232
|
+
className: g(Fi.cardHeader),
|
|
1233
1233
|
children: t
|
|
1234
1234
|
}) : null, /* @__PURE__ */ R("div", {
|
|
1235
|
-
className: g(
|
|
1235
|
+
className: g(Fi.cardContent, t ? Fi.cardContentBorderTop : "", i ? Fi.padding : ""),
|
|
1236
1236
|
children: n
|
|
1237
1237
|
})]
|
|
1238
|
-
}),
|
|
1238
|
+
}), Li = {
|
|
1239
1239
|
toggleBox: "_toggleBox_rwod1_1",
|
|
1240
1240
|
enter: "_enter_rwod1_8",
|
|
1241
1241
|
enterActive: "_enterActive_rwod1_12",
|
|
1242
1242
|
fullWidthStyleFix: "_fullWidthStyleFix_rwod1_17",
|
|
1243
1243
|
dismiss: "_dismiss_rwod1_22"
|
|
1244
|
-
},
|
|
1245
|
-
let _ = s(
|
|
1244
|
+
}, Ri = ({ 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 }) => {
|
|
1245
|
+
let _ = s(U), v = p(null), [y, b] = f === void 0 ? m(!1) : [f, h], x = () => {
|
|
1246
1246
|
!u && !_ && b && b(!1);
|
|
1247
1247
|
}, S = () => {
|
|
1248
1248
|
u || _ || b && b(!y);
|
|
@@ -1269,23 +1269,23 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1269
1269
|
in: y,
|
|
1270
1270
|
timeout: 100,
|
|
1271
1271
|
classNames: {
|
|
1272
|
-
enter:
|
|
1273
|
-
enterActive:
|
|
1272
|
+
enter: Li.enter,
|
|
1273
|
+
enterActive: Li.enterActive
|
|
1274
1274
|
},
|
|
1275
1275
|
unmountOnExit: !0,
|
|
1276
1276
|
children: /* @__PURE__ */ R(L, { children: y && C(/* @__PURE__ */ z("div", {
|
|
1277
|
-
className: a ? g(
|
|
1277
|
+
className: a ? g(Li.toggleBox, Li.fullWidthStyleFix) : g(Li.toggleBox),
|
|
1278
1278
|
...T,
|
|
1279
1279
|
ref: (e) => {
|
|
1280
1280
|
v.current = e, T.ref(e);
|
|
1281
1281
|
},
|
|
1282
1282
|
children: [/* @__PURE__ */ z("div", { children: [e.isValidElement(n) ? e.cloneElement(n, { close: x }) : n, o && /* @__PURE__ */ R("div", {
|
|
1283
|
-
className:
|
|
1284
|
-
children: /* @__PURE__ */ R(
|
|
1283
|
+
className: Li.dismiss,
|
|
1284
|
+
children: /* @__PURE__ */ R(K, {
|
|
1285
1285
|
small: !0,
|
|
1286
1286
|
round: !0,
|
|
1287
1287
|
onClick: x,
|
|
1288
|
-
icon:
|
|
1288
|
+
icon: H.CLOSE
|
|
1289
1289
|
})
|
|
1290
1290
|
})] }), /* @__PURE__ */ R(Pt, {
|
|
1291
1291
|
...w,
|
|
@@ -1296,34 +1296,34 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1296
1296
|
})]
|
|
1297
1297
|
})) })
|
|
1298
1298
|
})] });
|
|
1299
|
-
},
|
|
1299
|
+
}, zi = {
|
|
1300
1300
|
colorInput: "_colorInput_1j7vk_1",
|
|
1301
1301
|
trigger: "_trigger_1j7vk_8",
|
|
1302
1302
|
buttonColor: "_buttonColor_1j7vk_12",
|
|
1303
1303
|
options: "_options_1j7vk_17",
|
|
1304
1304
|
option: "_option_1j7vk_17",
|
|
1305
1305
|
adjustColorsInDarkMode: "_adjustColorsInDarkMode_1j7vk_26"
|
|
1306
|
-
},
|
|
1306
|
+
}, Bi = ({ columns: e = 9, disabled: t, options: n = [], small: r, value: i, onChange: a, adjustColorsInDarkMode: o = !1 }) => {
|
|
1307
1307
|
var s;
|
|
1308
1308
|
let [c, l] = m(!1), u = (s = n.find((e) => e.value === i)) == null ? void 0 : s.label;
|
|
1309
1309
|
return /* @__PURE__ */ R("div", {
|
|
1310
|
-
className: g(
|
|
1311
|
-
children: /* @__PURE__ */ R(
|
|
1310
|
+
className: g(zi.colorInput, o ? zi.adjustColorsInDarkMode : void 0),
|
|
1311
|
+
children: /* @__PURE__ */ R(Ri, {
|
|
1312
1312
|
placement: "bottom-start",
|
|
1313
1313
|
isOpen: c,
|
|
1314
1314
|
onToggle: l,
|
|
1315
1315
|
content: /* @__PURE__ */ R("div", {
|
|
1316
|
-
className: g(
|
|
1316
|
+
className: g(zi.options, o ? zi.adjustColorsInDarkMode : void 0),
|
|
1317
1317
|
style: { gridTemplateColumns: `repeat(${e}, auto)` },
|
|
1318
1318
|
children: n.map((e) => /* @__PURE__ */ R("div", {
|
|
1319
|
-
className:
|
|
1320
|
-
children: /* @__PURE__ */ R(
|
|
1319
|
+
className: zi.option,
|
|
1320
|
+
children: /* @__PURE__ */ R(K, {
|
|
1321
1321
|
basic: !0,
|
|
1322
1322
|
disabled: t,
|
|
1323
1323
|
width: "var(--size)",
|
|
1324
1324
|
tooltip: e.label,
|
|
1325
1325
|
label: /* @__PURE__ */ R("div", {
|
|
1326
|
-
className:
|
|
1326
|
+
className: zi.buttonColor,
|
|
1327
1327
|
style: { backgroundColor: e.value }
|
|
1328
1328
|
}),
|
|
1329
1329
|
onClick: () => {
|
|
@@ -1332,26 +1332,26 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1332
1332
|
}, e.value)
|
|
1333
1333
|
}, e.value))
|
|
1334
1334
|
}),
|
|
1335
|
-
children: /* @__PURE__ */ R(
|
|
1335
|
+
children: /* @__PURE__ */ R(K, {
|
|
1336
1336
|
disabled: t,
|
|
1337
1337
|
small: r,
|
|
1338
1338
|
active: c,
|
|
1339
1339
|
width: r ? "var(--size-sm)" : "var(--size)",
|
|
1340
1340
|
tooltip: u,
|
|
1341
1341
|
label: /* @__PURE__ */ R("div", {
|
|
1342
|
-
className:
|
|
1342
|
+
className: zi.buttonColor,
|
|
1343
1343
|
style: { backgroundColor: i }
|
|
1344
1344
|
})
|
|
1345
1345
|
})
|
|
1346
1346
|
})
|
|
1347
1347
|
});
|
|
1348
|
-
},
|
|
1348
|
+
}, Vi = sn`
|
|
1349
1349
|
scrollbar-width: none;
|
|
1350
1350
|
-ms-overflow-style: none;
|
|
1351
1351
|
&::-webkit-scrollbar {
|
|
1352
1352
|
display: none;
|
|
1353
1353
|
}
|
|
1354
|
-
`,
|
|
1354
|
+
`, Hi = on.div`
|
|
1355
1355
|
position: relative; // for react-laag
|
|
1356
1356
|
display: flex;
|
|
1357
1357
|
flex-direction: column;
|
|
@@ -1364,7 +1364,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1364
1364
|
border-left: ${(e) => e.$borderLeft === !0 ? "1px solid var(--color-border)" : e.$borderLeft};
|
|
1365
1365
|
border-right: ${(e) => e.$borderRight === !0 ? "1px solid var(--color-border)" : e.$borderRight};
|
|
1366
1366
|
padding: ${(e) => e.$spacing ? `0 calc(${e.$spacing} / 2)` : "0"};
|
|
1367
|
-
${(e) => !e.$showScrollbar &&
|
|
1367
|
+
${(e) => !e.$showScrollbar && Vi}
|
|
1368
1368
|
|
|
1369
1369
|
@media (max-width: 992px) {
|
|
1370
1370
|
${(e) => e.$widthTablet && `flex-basis: ${e.$widthTablet};`}
|
|
@@ -1383,9 +1383,9 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1383
1383
|
${(e) => e.$flexbox && "flex-direction: column;"}
|
|
1384
1384
|
padding: ${(e) => e.$padding === !0 ? "var(--padding)" : e.$padding};
|
|
1385
1385
|
}
|
|
1386
|
-
`,
|
|
1386
|
+
`, Ui = ({ 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 }) => {
|
|
1387
1387
|
let m = (e) => typeof e == "string" ? e : typeof e == "number" ? `${e}px` : void 0;
|
|
1388
|
-
return /* @__PURE__ */ R(
|
|
1388
|
+
return /* @__PURE__ */ R(Hi, {
|
|
1389
1389
|
$background: e,
|
|
1390
1390
|
$borderLeft: t,
|
|
1391
1391
|
$borderRight: n,
|
|
@@ -1404,11 +1404,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1404
1404
|
children: r
|
|
1405
1405
|
})
|
|
1406
1406
|
});
|
|
1407
|
-
},
|
|
1407
|
+
}, Wi = {
|
|
1408
1408
|
divider: "_divider_2bfzh_1",
|
|
1409
1409
|
alignLeft: "_alignLeft_2bfzh_12",
|
|
1410
1410
|
alignRight: "_alignRight_2bfzh_15"
|
|
1411
|
-
},
|
|
1411
|
+
}, Gi = {
|
|
1412
1412
|
bold: "_bold_11ofj_1",
|
|
1413
1413
|
center: "_center_11ofj_4",
|
|
1414
1414
|
muted: "_muted_11ofj_7",
|
|
@@ -1418,59 +1418,59 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1418
1418
|
error: "_error_11ofj_19",
|
|
1419
1419
|
small: "_small_11ofj_22",
|
|
1420
1420
|
link: "_link_11ofj_25"
|
|
1421
|
-
},
|
|
1422
|
-
className: g(t &&
|
|
1421
|
+
}, Ki = ({ children: e, bold: t = !1, center: n = !1, error: r = !1, faint: i = !1, link: a = !1, muted: o = !1, onClick: s, small: c = !1, success: l = !1, warning: u = !1 }) => /* @__PURE__ */ R("span", {
|
|
1422
|
+
className: g(t && Gi.bold, n && Gi.center, r && Gi.error, i && Gi.faint, a && Gi.link, o && Gi.muted, s && Gi.clickable, c && Gi.small, l && Gi.success, u && Gi.warning),
|
|
1423
1423
|
onClick: s,
|
|
1424
1424
|
children: e
|
|
1425
|
-
}),
|
|
1425
|
+
}), qi = (e) => {
|
|
1426
1426
|
switch (e) {
|
|
1427
|
-
case
|
|
1428
|
-
case
|
|
1427
|
+
case hr.LEFT: return Wi.alignLeft;
|
|
1428
|
+
case hr.RIGHT: return Wi.alignRight;
|
|
1429
1429
|
default: return "";
|
|
1430
1430
|
}
|
|
1431
|
-
},
|
|
1432
|
-
className: `${
|
|
1431
|
+
}, Ji = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r = hr.CENTER }) => /* @__PURE__ */ R("div", {
|
|
1432
|
+
className: `${Wi.divider} ${qi(r)}`,
|
|
1433
1433
|
style: {
|
|
1434
1434
|
marginTop: t,
|
|
1435
1435
|
marginBottom: t,
|
|
1436
1436
|
"--color": n
|
|
1437
1437
|
},
|
|
1438
|
-
children: typeof e == "string" ? /* @__PURE__ */ R(
|
|
1438
|
+
children: typeof e == "string" ? /* @__PURE__ */ R(Ki, {
|
|
1439
1439
|
muted: !0,
|
|
1440
1440
|
children: e
|
|
1441
1441
|
}) : e
|
|
1442
|
-
}),
|
|
1442
|
+
}), Yi = {
|
|
1443
1443
|
heading: "_heading_yhdiy_1",
|
|
1444
1444
|
top: "_top_yhdiy_10",
|
|
1445
1445
|
icons: "_icons_yhdiy_20"
|
|
1446
|
-
},
|
|
1446
|
+
}, Xi = ({ children: e, helpText: t, onClick: n, onClickHelp: r, onIconClick: i, icon: a, libraryIcon: o, marginBottom: s, top: c = !1, testId: l }) => {
|
|
1447
1447
|
var u;
|
|
1448
1448
|
let d = !!t || !!r;
|
|
1449
1449
|
return /* @__PURE__ */ z("div", {
|
|
1450
|
-
className: g(
|
|
1450
|
+
className: g(Yi.heading, c ? Yi.top : ""),
|
|
1451
1451
|
style: { marginBottom: s },
|
|
1452
1452
|
onClick: n,
|
|
1453
1453
|
"data-testid": l,
|
|
1454
1454
|
children: [e, /* @__PURE__ */ z("div", {
|
|
1455
|
-
className:
|
|
1455
|
+
className: Yi.icons,
|
|
1456
1456
|
children: [
|
|
1457
|
-
a && /* @__PURE__ */ R(
|
|
1457
|
+
a && /* @__PURE__ */ R(Hr, {
|
|
1458
1458
|
onClick: i,
|
|
1459
1459
|
icon: a
|
|
1460
1460
|
}),
|
|
1461
|
-
d && /* @__PURE__ */ R(
|
|
1461
|
+
d && /* @__PURE__ */ R(Hr, {
|
|
1462
1462
|
text: t,
|
|
1463
1463
|
onClick: r
|
|
1464
1464
|
}),
|
|
1465
|
-
o && /* @__PURE__ */ R(
|
|
1465
|
+
o && /* @__PURE__ */ R(Hr, {
|
|
1466
1466
|
text: (u = o == null ? void 0 : o.tooltip) == null ? "" : u,
|
|
1467
1467
|
onClick: o.onClick,
|
|
1468
|
-
icon:
|
|
1468
|
+
icon: H.LIBRARY
|
|
1469
1469
|
})
|
|
1470
1470
|
]
|
|
1471
1471
|
})]
|
|
1472
1472
|
});
|
|
1473
|
-
},
|
|
1473
|
+
}, Zi = {
|
|
1474
1474
|
dialog: "_dialog_xouqi_1",
|
|
1475
1475
|
inline: "_inline_xouqi_18",
|
|
1476
1476
|
scroll: "_scroll_xouqi_21",
|
|
@@ -1479,14 +1479,14 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1479
1479
|
subheading: "_subheading_xouqi_38",
|
|
1480
1480
|
content: "_content_xouqi_41",
|
|
1481
1481
|
footer: "_footer_xouqi_50"
|
|
1482
|
-
},
|
|
1482
|
+
}, Qi = (e) => Wt(e) ? e.map((e, n) => /* @__PURE__ */ z(t, { children: [
|
|
1483
1483
|
e,
|
|
1484
1484
|
" ",
|
|
1485
1485
|
/* @__PURE__ */ R("br", {})
|
|
1486
|
-
] }, n)) : e,
|
|
1486
|
+
] }, n)) : e, $i = ({ dialog: e }) => {
|
|
1487
1487
|
let { heading: t, subheading: n, content: r, contentPadding: i = "var(--padding)", footer: a, scroll: o, width: s, height: c, onClose: l, testId: u } = e;
|
|
1488
1488
|
return /* @__PURE__ */ z("div", {
|
|
1489
|
-
className: g(
|
|
1489
|
+
className: g(Zi.dialog, s ? Zi.inline : null, o ? Zi.scroll : null),
|
|
1490
1490
|
style: {
|
|
1491
1491
|
width: s,
|
|
1492
1492
|
height: c
|
|
@@ -1494,19 +1494,19 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1494
1494
|
"data-testid": u == null ? null : u,
|
|
1495
1495
|
children: [
|
|
1496
1496
|
/* @__PURE__ */ z("div", {
|
|
1497
|
-
className:
|
|
1498
|
-
children: [/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R(
|
|
1497
|
+
className: Zi.header,
|
|
1498
|
+
children: [/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R(Xi, {
|
|
1499
1499
|
testId: u && `${u}-heading`,
|
|
1500
1500
|
top: !0,
|
|
1501
1501
|
marginBottom: 0,
|
|
1502
1502
|
children: t
|
|
1503
1503
|
}), /* @__PURE__ */ R("div", {
|
|
1504
|
-
className:
|
|
1504
|
+
className: Zi.subheading,
|
|
1505
1505
|
children: n
|
|
1506
1506
|
})] }), l ? /* @__PURE__ */ R("div", {
|
|
1507
|
-
className:
|
|
1508
|
-
children: /* @__PURE__ */ R(
|
|
1509
|
-
icon:
|
|
1507
|
+
className: Zi.dismiss,
|
|
1508
|
+
children: /* @__PURE__ */ R(K, {
|
|
1509
|
+
icon: H.CLOSE,
|
|
1510
1510
|
round: !0,
|
|
1511
1511
|
basic: !0,
|
|
1512
1512
|
small: !0,
|
|
@@ -1519,18 +1519,18 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1519
1519
|
}),
|
|
1520
1520
|
/* @__PURE__ */ R("div", {
|
|
1521
1521
|
"data-testid": u && `${u}-content`,
|
|
1522
|
-
className:
|
|
1522
|
+
className: Zi.content,
|
|
1523
1523
|
style: { padding: i },
|
|
1524
|
-
children:
|
|
1524
|
+
children: Qi(r)
|
|
1525
1525
|
}),
|
|
1526
1526
|
a && /* @__PURE__ */ R("div", {
|
|
1527
1527
|
"data-testid": u && `${u}-footer`,
|
|
1528
|
-
className:
|
|
1528
|
+
className: Zi.footer,
|
|
1529
1529
|
children: a
|
|
1530
1530
|
})
|
|
1531
1531
|
]
|
|
1532
1532
|
});
|
|
1533
|
-
},
|
|
1533
|
+
}, ea = {
|
|
1534
1534
|
inputInTable: "_inputInTable_c4h57_1",
|
|
1535
1535
|
inputHover: "_inputHover_c4h57_13",
|
|
1536
1536
|
inputFocus: "_inputFocus_c4h57_18",
|
|
@@ -1556,15 +1556,15 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1556
1556
|
disabled: "_disabled_c4h57_224",
|
|
1557
1557
|
tabsContent: "_tabsContent_c4h57_231",
|
|
1558
1558
|
resizeHandle: "_resizeHandle_c4h57_237"
|
|
1559
|
-
}, ta = ({ badge: e, children: t }) => e ? /* @__PURE__ */ R(
|
|
1559
|
+
}, ta = ({ badge: e, children: t }) => e ? /* @__PURE__ */ R(gi, {
|
|
1560
1560
|
small: !0,
|
|
1561
1561
|
margin: 4,
|
|
1562
1562
|
title: e.toString(),
|
|
1563
1563
|
children: t
|
|
1564
1564
|
}) : /* @__PURE__ */ R(L, { children: t }), na = ({ tabs: e, activeTab: t, open: n, background: r, handleTabClick: i, width: a, testId: o }) => /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", {
|
|
1565
|
-
className:
|
|
1565
|
+
className: ea.tabs,
|
|
1566
1566
|
children: e.map((e, a) => Yt(e) || Kt(e) ? null : /* @__PURE__ */ R("div", {
|
|
1567
|
-
className: g(
|
|
1567
|
+
className: g(ea.tab, t === a && n ? ea.active : "", e.disabled ? ea.disabled : ""),
|
|
1568
1568
|
style: { background: r },
|
|
1569
1569
|
onClick: e.disabled ? void 0 : () => i(a),
|
|
1570
1570
|
"data-testid": o && `${o}-icon-${a}`,
|
|
@@ -1581,7 +1581,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1581
1581
|
width: typeof a == "number" ? `${a}px` : a,
|
|
1582
1582
|
display: i ? "block" : "none"
|
|
1583
1583
|
},
|
|
1584
|
-
className:
|
|
1584
|
+
className: ea.tabsContent,
|
|
1585
1585
|
"data-testid": o && `${o}-content-${r}`,
|
|
1586
1586
|
children: i && n && e.content
|
|
1587
1587
|
}, r);
|
|
@@ -1589,14 +1589,14 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1589
1589
|
let { handleAxis: n, ...r } = e;
|
|
1590
1590
|
return /* @__PURE__ */ R("div", {
|
|
1591
1591
|
ref: t,
|
|
1592
|
-
className:
|
|
1592
|
+
className: ea.resizeHandle,
|
|
1593
1593
|
...r,
|
|
1594
|
-
children: /* @__PURE__ */ R(
|
|
1594
|
+
children: /* @__PURE__ */ R(W, { icon: H.DRAG })
|
|
1595
1595
|
});
|
|
1596
|
-
}), ia =
|
|
1596
|
+
}), ia = cn, aa = ({ children: e = null, width: t = 400, right: n = !1, onResize: r, setOpen: i, maxOpenWidth: a }) => {
|
|
1597
1597
|
let [o, s] = m(!1), c = a == null ? window.innerWidth / 2 : a;
|
|
1598
1598
|
return r ? /* @__PURE__ */ R(ia, {
|
|
1599
|
-
width:
|
|
1599
|
+
width: rn(t),
|
|
1600
1600
|
height: 100,
|
|
1601
1601
|
minConstraints: [35, Infinity],
|
|
1602
1602
|
maxConstraints: [c, Infinity],
|
|
@@ -1606,7 +1606,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1606
1606
|
handle: /* @__PURE__ */ R(ra, {}),
|
|
1607
1607
|
resizeHandles: n ? ["w"] : ["e"],
|
|
1608
1608
|
axis: "x",
|
|
1609
|
-
className: o ?
|
|
1609
|
+
className: o ? ea.isResizing : "",
|
|
1610
1610
|
onResizeStart: () => {
|
|
1611
1611
|
i && i(!0), r && r(t), s(!0);
|
|
1612
1612
|
},
|
|
@@ -1615,7 +1615,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1615
1615
|
},
|
|
1616
1616
|
children: e
|
|
1617
1617
|
}) : /* @__PURE__ */ R(L, { children: e });
|
|
1618
|
-
}, oa = ({ 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 =
|
|
1618
|
+
}, oa = ({ 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 = gr.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 }) => {
|
|
1619
1619
|
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, te = Array.isArray(o) ? o[F || 0] : o, ne = N ? te : _ ? 35 : s;
|
|
1620
1620
|
return /* @__PURE__ */ R(aa, {
|
|
1621
1621
|
width: ne,
|
|
@@ -1624,10 +1624,10 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1624
1624
|
right: a,
|
|
1625
1625
|
maxOpenWidth: E,
|
|
1626
1626
|
children: /* @__PURE__ */ z("div", {
|
|
1627
|
-
className: g(
|
|
1627
|
+
className: g(ea.drawer, c ? ea.shadow : "", t ? ea.fixed : ea.inline, a ? ea.right : ea.left),
|
|
1628
1628
|
style: { top: l },
|
|
1629
1629
|
children: [/* @__PURE__ */ R("div", {
|
|
1630
|
-
className: g(
|
|
1630
|
+
className: g(ea.drawerContent, p && ea.border),
|
|
1631
1631
|
style: {
|
|
1632
1632
|
background: e,
|
|
1633
1633
|
borderColor: typeof p == "string" ? p : void 0,
|
|
@@ -1658,18 +1658,18 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1658
1658
|
children: h
|
|
1659
1659
|
})
|
|
1660
1660
|
}), u && /* @__PURE__ */ R("span", {
|
|
1661
|
-
className: g(
|
|
1662
|
-
children: O ? u : /* @__PURE__ */ R(
|
|
1661
|
+
className: g(ea.toggleButton, k && (D || O && d) ? ea.toggleButtonOpen : "", f === "top" ? ea.top : ea.bottom),
|
|
1662
|
+
children: O ? u : /* @__PURE__ */ R(K, {
|
|
1663
1663
|
onClick: P ? () => P(!N) : void 0,
|
|
1664
1664
|
round: !0,
|
|
1665
|
-
icon: a ?
|
|
1665
|
+
icon: a ? H.CHEVRON_RIGHT : H.CHEVRON_LEFT
|
|
1666
1666
|
})
|
|
1667
1667
|
})]
|
|
1668
1668
|
})
|
|
1669
1669
|
});
|
|
1670
1670
|
}, sa = { inputGroup: "_inputGroup_biuoa_1" }, ca = (e) => i(e) && typeof e.type == "string", la = ({ children: n, small: r = !1, width: a = "100%" }) => {
|
|
1671
1671
|
let o = Array.isArray(n) ? n.filter((e) => i(e)) : [n], s = o.map((n, i) => {
|
|
1672
|
-
let a = ca(n), { groupOrder: s } = a ? { groupOrder: null } : n.props, c = o.length, l = i === 0, u = i === c - 1, d = s || (!c || c === 1 ? null : l ?
|
|
1672
|
+
let a = ca(n), { groupOrder: s } = a ? { groupOrder: null } : n.props, c = o.length, l = i === 0, u = i === c - 1, d = s || (!c || c === 1 ? null : l ? V.FIRST : u ? V.LAST : V.MIDDLE);
|
|
1673
1673
|
return a ? n : /* @__PURE__ */ R(t, { children: e.cloneElement(n, {
|
|
1674
1674
|
groupOrder: d,
|
|
1675
1675
|
small: r
|
|
@@ -1695,11 +1695,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1695
1695
|
groupOrderFirst: "_groupOrderFirst_1285q_173",
|
|
1696
1696
|
groupOrderMiddle: "_groupOrderMiddle_1285q_174",
|
|
1697
1697
|
groupOrderLast: "_groupOrderLast_1285q_175"
|
|
1698
|
-
}, da = r(({ error: e = null, tooltip: t = null, isInTable: n, width: r = void 0, small: i = !1, onChange: a =
|
|
1699
|
-
let D = s(
|
|
1698
|
+
}, da = r(({ error: e = null, tooltip: t = null, isInTable: n, width: r = void 0, small: i = !1, onChange: a = B, placeholder: o = "", value: c = "", onKeyPress: l = () => {}, onFocus: u = () => {}, onBlur: d = () => {}, onPaste: f = () => {}, onKeyDown: p = () => {}, selectOnFocus: m = !0, name: h = void 0, type: _ = "text", tabIndex: v = 0, disabled: y = !1, right: b = !1, warning: x = null, groupOrder: S = null, maxTooltipWidth: C = void 0, testId: w = void 0, size: T = null }, E) => {
|
|
1699
|
+
let D = s(U), O = (() => {
|
|
1700
1700
|
if (S) switch (S) {
|
|
1701
|
-
case
|
|
1702
|
-
case
|
|
1701
|
+
case V.FIRST: return ua.groupOrderFirst;
|
|
1702
|
+
case V.LAST: return ua.groupOrderLast;
|
|
1703
1703
|
default: return ua.groupOrderMiddle;
|
|
1704
1704
|
}
|
|
1705
1705
|
return "";
|
|
@@ -1707,11 +1707,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1707
1707
|
return /* @__PURE__ */ R("div", {
|
|
1708
1708
|
style: { width: k },
|
|
1709
1709
|
className: O,
|
|
1710
|
-
children: /* @__PURE__ */ R(
|
|
1710
|
+
children: /* @__PURE__ */ R(G, {
|
|
1711
1711
|
error: !!e,
|
|
1712
1712
|
warning: !!x,
|
|
1713
1713
|
text: t || e || x,
|
|
1714
|
-
enabled: t &&
|
|
1714
|
+
enabled: t && J(t) || e && J(e) || x && J(x) || !1,
|
|
1715
1715
|
maxWidth: C,
|
|
1716
1716
|
display: "block",
|
|
1717
1717
|
children: /* @__PURE__ */ R("input", {
|
|
@@ -1764,8 +1764,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1764
1764
|
n = `Selected - ${(r = Object.keys(e)) == null ? void 0 : r.length} files`;
|
|
1765
1765
|
} else n = e == null ? void 0 : e.name;
|
|
1766
1766
|
return n || null;
|
|
1767
|
-
}, ga = ({ label: e = "Select", loading: t = !1, placeholder: n = "No file selected", disabled: r = !1, file: i, accept: a, multi: o, name: c, width: l, onChange: u =
|
|
1768
|
-
let f = s(
|
|
1767
|
+
}, ga = ({ label: e = "Select", loading: t = !1, placeholder: n = "No file selected", disabled: r = !1, file: i, accept: a, multi: o, name: c, width: l, onChange: u = B, testId: d }) => {
|
|
1768
|
+
let f = s(U), m = p(null), h = ha(i, o);
|
|
1769
1769
|
return /* @__PURE__ */ z("div", {
|
|
1770
1770
|
onClick: () => {
|
|
1771
1771
|
var e;
|
|
@@ -1776,7 +1776,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1776
1776
|
value: h || "",
|
|
1777
1777
|
placeholder: n,
|
|
1778
1778
|
disabled: !0
|
|
1779
|
-
}), /* @__PURE__ */ R(
|
|
1779
|
+
}), /* @__PURE__ */ R(K, {
|
|
1780
1780
|
label: e,
|
|
1781
1781
|
loading: t,
|
|
1782
1782
|
disabled: t || r || f,
|
|
@@ -1823,7 +1823,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1823
1823
|
let n = document.querySelector(`#${e}`), [r, i] = m(!1);
|
|
1824
1824
|
return u(() => {
|
|
1825
1825
|
r || i(!0);
|
|
1826
|
-
}, [e]), n ?
|
|
1826
|
+
}, [e]), n ? ln(t, n) : null;
|
|
1827
1827
|
}, ba = {
|
|
1828
1828
|
wrapper: "_wrapper_1sv3a_1",
|
|
1829
1829
|
enter: "_enter_1sv3a_15",
|
|
@@ -1951,7 +1951,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1951
1951
|
}, k = () => {
|
|
1952
1952
|
n();
|
|
1953
1953
|
}, A = /* @__PURE__ */ z(L, { children: [
|
|
1954
|
-
/* @__PURE__ */ R(
|
|
1954
|
+
/* @__PURE__ */ R(Ki, { children: u || "Upload file and extract data using a LLM" }),
|
|
1955
1955
|
/* @__PURE__ */ R(_a, {}),
|
|
1956
1956
|
/* @__PURE__ */ R(ga, {
|
|
1957
1957
|
placeholder: f || "No file",
|
|
@@ -1961,14 +1961,14 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1961
1961
|
testId: `${g}-file-input`,
|
|
1962
1962
|
accept: "image/*"
|
|
1963
1963
|
}),
|
|
1964
|
-
y && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(_a, {}), /* @__PURE__ */ R(Ea, { percentage:
|
|
1965
|
-
] }), j = /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(
|
|
1964
|
+
y && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(_a, {}), /* @__PURE__ */ R(Ea, { percentage: En(100 * x / Oa, 3) })] })
|
|
1965
|
+
] }), j = /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(K, {
|
|
1966
1966
|
label: p || "Upload",
|
|
1967
1967
|
colored: !0,
|
|
1968
1968
|
onClick: O,
|
|
1969
1969
|
disabled: !_ || y,
|
|
1970
1970
|
testId: `${g}-button-upload`
|
|
1971
|
-
}), /* @__PURE__ */ R(
|
|
1971
|
+
}), /* @__PURE__ */ R(K, {
|
|
1972
1972
|
label: h || "Cancel",
|
|
1973
1973
|
onClick: k,
|
|
1974
1974
|
testId: `${g}-button-cancel`
|
|
@@ -1976,7 +1976,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
1976
1976
|
return va("Escape", () => k()), /* @__PURE__ */ R(Ca, {
|
|
1977
1977
|
visible: e,
|
|
1978
1978
|
centered: !0,
|
|
1979
|
-
children: /* @__PURE__ */ R(
|
|
1979
|
+
children: /* @__PURE__ */ R($i, { dialog: {
|
|
1980
1980
|
scroll: !0,
|
|
1981
1981
|
heading: l || "Smart Upload",
|
|
1982
1982
|
content: A,
|
|
@@ -2023,13 +2023,13 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2023
2023
|
}, Pa = ({ visible: e, setModalVisibility: t, validationRules: n = [], t: r }) => /* @__PURE__ */ R(Ca, {
|
|
2024
2024
|
visible: e,
|
|
2025
2025
|
centered: !0,
|
|
2026
|
-
children: /* @__PURE__ */ R(
|
|
2026
|
+
children: /* @__PURE__ */ R($i, { dialog: {
|
|
2027
2027
|
heading: r("importingData"),
|
|
2028
2028
|
content: /* @__PURE__ */ R(Na, {
|
|
2029
2029
|
validationRules: n,
|
|
2030
2030
|
t: r
|
|
2031
2031
|
}),
|
|
2032
|
-
footer: /* @__PURE__ */ R(L, { children: /* @__PURE__ */ R(
|
|
2032
|
+
footer: /* @__PURE__ */ R(L, { children: /* @__PURE__ */ R(K, {
|
|
2033
2033
|
label: r("cancel"),
|
|
2034
2034
|
onClick: () => t("helpModal", !1)
|
|
2035
2035
|
}) }),
|
|
@@ -2072,8 +2072,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2072
2072
|
return e.TOGGLE_DETAILS = "TOGGLE_DETAILS", e;
|
|
2073
2073
|
}({}), za = ({ type: e, onClose: t, isInToast: n, testId: r }) => /* @__PURE__ */ R("div", {
|
|
2074
2074
|
className: g(Ia.dismiss, n ? Ia.absolute : "", e === La.INFO ? Ia.info : e === La.SUCCESS ? Ia.success : e === La.WARNING ? Ia.warning : e === La.ERROR ? Ia.error : null),
|
|
2075
|
-
children: /* @__PURE__ */ R(
|
|
2076
|
-
icon:
|
|
2075
|
+
children: /* @__PURE__ */ R(W, {
|
|
2076
|
+
icon: H.CLOSE,
|
|
2077
2077
|
onClick: t,
|
|
2078
2078
|
testId: r
|
|
2079
2079
|
})
|
|
@@ -2089,7 +2089,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2089
2089
|
className: g(Ia.legendToggle),
|
|
2090
2090
|
onClick: n,
|
|
2091
2091
|
children: t ? "Hide details" : "Show details"
|
|
2092
|
-
}), /* @__PURE__ */ R(
|
|
2092
|
+
}), /* @__PURE__ */ R(Nr, {
|
|
2093
2093
|
expanded: t,
|
|
2094
2094
|
children: /* @__PURE__ */ R("div", {
|
|
2095
2095
|
className: Ia.detailsText,
|
|
@@ -2097,20 +2097,20 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2097
2097
|
})
|
|
2098
2098
|
})] }), Ha = ({ type: e }) => {
|
|
2099
2099
|
switch (e) {
|
|
2100
|
-
case La.SUCCESS: return /* @__PURE__ */ R(
|
|
2101
|
-
icon:
|
|
2100
|
+
case La.SUCCESS: return /* @__PURE__ */ R(W, {
|
|
2101
|
+
icon: H.SUCCESS,
|
|
2102
2102
|
size: 16
|
|
2103
2103
|
});
|
|
2104
|
-
case La.WARNING: return /* @__PURE__ */ R(
|
|
2105
|
-
icon:
|
|
2104
|
+
case La.WARNING: return /* @__PURE__ */ R(W, {
|
|
2105
|
+
icon: H.WARNING,
|
|
2106
2106
|
size: 16
|
|
2107
2107
|
});
|
|
2108
|
-
case La.ERROR: return /* @__PURE__ */ R(
|
|
2109
|
-
icon:
|
|
2108
|
+
case La.ERROR: return /* @__PURE__ */ R(W, {
|
|
2109
|
+
icon: H.ERROR,
|
|
2110
2110
|
size: 16
|
|
2111
2111
|
});
|
|
2112
|
-
default: return /* @__PURE__ */ R(
|
|
2113
|
-
icon:
|
|
2112
|
+
default: return /* @__PURE__ */ R(W, {
|
|
2113
|
+
icon: H.INFO,
|
|
2114
2114
|
size: 16
|
|
2115
2115
|
});
|
|
2116
2116
|
}
|
|
@@ -2172,12 +2172,12 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2172
2172
|
if (!i && !a) return null;
|
|
2173
2173
|
let o = () => {
|
|
2174
2174
|
if (!a) return null;
|
|
2175
|
-
let e = /* @__PURE__ */ R(
|
|
2175
|
+
let e = /* @__PURE__ */ R(Oi, { actions: t });
|
|
2176
2176
|
return n ? e : /* @__PURE__ */ R("div", { children: e });
|
|
2177
2177
|
};
|
|
2178
2178
|
return /* @__PURE__ */ z("div", {
|
|
2179
2179
|
className: Ga.title,
|
|
2180
|
-
children: [i ? /* @__PURE__ */ R(
|
|
2180
|
+
children: [i ? /* @__PURE__ */ R(Xi, { children: /* @__PURE__ */ R("span", {
|
|
2181
2181
|
"data-testid": r,
|
|
2182
2182
|
children: e
|
|
2183
2183
|
}) }) : null, o()]
|
|
@@ -2201,8 +2201,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2201
2201
|
groupOrderFirst: "_groupOrderFirst_sl2b5_193",
|
|
2202
2202
|
groupOrderMiddle: "_groupOrderMiddle_sl2b5_194",
|
|
2203
2203
|
groupOrderLast: "_groupOrderLast_sl2b5_198"
|
|
2204
|
-
}, Ya = ({ disabled: e = !1, error: t = null, warning: n = null, tooltip: r = null, options: i, onChange: a =
|
|
2205
|
-
let C = s(
|
|
2204
|
+
}, Ya = ({ disabled: e = !1, error: t = null, warning: n = null, tooltip: r = null, options: i, onChange: a = B, onFocus: o = B, onBlur: c = B, right: l = !1, small: u = !1, tabIndex: d = 0, selectedOption: f, width: p = null, groupOrder: m, testId: h, isInTable: _ = !1, clearable: v, placeholder: y, hasNonExistentValue: b, maxTooltipWidth: x, borderRadius: S }) => {
|
|
2205
|
+
let C = s(U), w = f === null || (f == null ? void 0 : f.value) === null ? "unselected" : f == null ? void 0 : f.value, T = w === "unselected", E = (w === "unselected" || v ? [/* @__PURE__ */ R("option", {
|
|
2206
2206
|
value: "unselected",
|
|
2207
2207
|
disabled: !v,
|
|
2208
2208
|
hidden: !v,
|
|
@@ -2217,17 +2217,17 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2217
2217
|
children: e.label
|
|
2218
2218
|
}, t))), D = (() => {
|
|
2219
2219
|
if (m) switch (m) {
|
|
2220
|
-
case
|
|
2221
|
-
case
|
|
2220
|
+
case V.FIRST: return Ja.groupOrderFirst;
|
|
2221
|
+
case V.LAST: return Ja.groupOrderLast;
|
|
2222
2222
|
default: return Ja.groupOrderMiddle;
|
|
2223
2223
|
}
|
|
2224
2224
|
return "";
|
|
2225
2225
|
})();
|
|
2226
|
-
return /* @__PURE__ */ R(
|
|
2226
|
+
return /* @__PURE__ */ R(G, {
|
|
2227
2227
|
error: !!t,
|
|
2228
2228
|
warning: !!n,
|
|
2229
2229
|
text: r || t || n,
|
|
2230
|
-
enabled: r &&
|
|
2230
|
+
enabled: r && J(r) || t && J(t) || n && J(n) || !1,
|
|
2231
2231
|
maxWidth: x,
|
|
2232
2232
|
children: /* @__PURE__ */ R("select", {
|
|
2233
2233
|
className: g(Ja.select, T ? Ja.unSelected : "", l ? Ja.right : "", u ? Ja.small : "", _ ? Ja.isInTable : "", D),
|
|
@@ -2310,28 +2310,28 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2310
2310
|
}),
|
|
2311
2311
|
e && /* @__PURE__ */ R("div", {
|
|
2312
2312
|
className: g(eo.details),
|
|
2313
|
-
children: /* @__PURE__ */ R(
|
|
2313
|
+
children: /* @__PURE__ */ R(Ki, {
|
|
2314
2314
|
faint: !0,
|
|
2315
2315
|
children: e
|
|
2316
2316
|
})
|
|
2317
2317
|
}),
|
|
2318
2318
|
!!(s != null && s.length) && /* @__PURE__ */ R("div", {
|
|
2319
2319
|
className: g(eo.actions),
|
|
2320
|
-
children: /* @__PURE__ */ R(
|
|
2320
|
+
children: /* @__PURE__ */ R(Oi, {
|
|
2321
2321
|
actions: s,
|
|
2322
2322
|
closeLayer: c
|
|
2323
2323
|
})
|
|
2324
2324
|
}),
|
|
2325
2325
|
/* @__PURE__ */ R("span", {
|
|
2326
2326
|
className: eo.check,
|
|
2327
|
-
children: i ? /* @__PURE__ */ R(
|
|
2327
|
+
children: i ? /* @__PURE__ */ R(W, { icon: H.CHECK }) : null
|
|
2328
2328
|
})
|
|
2329
2329
|
]
|
|
2330
2330
|
}), ro = ({ section: e, selected: t, focused: n, onSelectOption: r, closeLayer: i }) => {
|
|
2331
|
-
let a = s(
|
|
2331
|
+
let a = s(U);
|
|
2332
2332
|
switch (e.type) {
|
|
2333
|
-
case
|
|
2334
|
-
case
|
|
2333
|
+
case ri.HEADING: return /* @__PURE__ */ R(to, { label: e.label });
|
|
2334
|
+
case ri.OPTION:
|
|
2335
2335
|
default: return /* @__PURE__ */ R(no, {
|
|
2336
2336
|
closeLayer: i,
|
|
2337
2337
|
actions: e.actions,
|
|
@@ -2358,7 +2358,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2358
2358
|
}, xo = (e, t, n) => {
|
|
2359
2359
|
let r = vo(!0, n), i = io(e.label, r), a = (t ? ho : mo) * 2 + go * 2 + _o;
|
|
2360
2360
|
return Math.ceil(i + a);
|
|
2361
|
-
}, So =
|
|
2361
|
+
}, So = Ln, Co = ({ listRef: e, isMulti: t, sections: n, selectedOptions: r, onSelectOption: i, focusedOptionIndex: a, width: o, small: s, firstSelectedOptionIndex: l, closeLayer: u, testId: d }) => {
|
|
2362
2362
|
c(() => {
|
|
2363
2363
|
l != null && e.current !== null && typeof e.current.scrollToItem == "function" && e.current.scrollToItem(l, "start");
|
|
2364
2364
|
}, [l, e]);
|
|
@@ -2379,7 +2379,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2379
2379
|
children: /* @__PURE__ */ R(ro, {
|
|
2380
2380
|
closeLayer: u,
|
|
2381
2381
|
section: n[e],
|
|
2382
|
-
selected: t && n[e].type !==
|
|
2382
|
+
selected: t && n[e].type !== ri.HEADING && Array.isArray(r) ? r == null ? void 0 : r.some((t) => {
|
|
2383
2383
|
var r;
|
|
2384
2384
|
return t && (t == null ? void 0 : t.value) === (n == null || (r = n[e]) == null ? void 0 : r.value);
|
|
2385
2385
|
}) : !Array.isArray(r) && (n == null || (s = n[e]) == null ? void 0 : s.value) === (r == null ? void 0 : r.value),
|
|
@@ -2444,7 +2444,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2444
2444
|
e.stopPropagation();
|
|
2445
2445
|
},
|
|
2446
2446
|
children: e.label
|
|
2447
|
-
}, t)), s.length > 0 && /* @__PURE__ */ R(
|
|
2447
|
+
}, t)), s.length > 0 && /* @__PURE__ */ R(G, {
|
|
2448
2448
|
text: s.map((e, t) => /* @__PURE__ */ R("div", { children: e.label }, t)),
|
|
2449
2449
|
display: "inline-flex",
|
|
2450
2450
|
children: /* @__PURE__ */ R("span", {
|
|
@@ -2453,7 +2453,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2453
2453
|
})
|
|
2454
2454
|
})]
|
|
2455
2455
|
});
|
|
2456
|
-
}, To = ({ selectedOptions: e, searchable: t = !1, searchValue: n, onChange: r =
|
|
2456
|
+
}, To = ({ selectedOptions: e, searchable: t = !1, searchValue: n, onChange: r = B, inputRef: i, error: a, placeholder: o = "Select...", small: s, testId: c }) => {
|
|
2457
2457
|
let l = p(null), u = Array.isArray(e), d = u ? e.length > 0 : !!e, f = n ? n.length + 1 : 1;
|
|
2458
2458
|
return /* @__PURE__ */ z("div", {
|
|
2459
2459
|
className: Y.triggerInputContainer,
|
|
@@ -2488,8 +2488,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2488
2488
|
var O;
|
|
2489
2489
|
let [k, A] = Xa(), j = Array.isArray(e) ? e.length > 0 && ((O = e[0]) == null ? void 0 : O.value) : e == null ? void 0 : e.value, M = r && j, N = (() => {
|
|
2490
2490
|
if (C) switch (C) {
|
|
2491
|
-
case
|
|
2492
|
-
case
|
|
2491
|
+
case V.FIRST: return Y.groupOrderFirst;
|
|
2492
|
+
case V.LAST: return Y.groupOrderLast;
|
|
2493
2493
|
default: return Y.groupOrderMiddle;
|
|
2494
2494
|
}
|
|
2495
2495
|
return "";
|
|
@@ -2497,7 +2497,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2497
2497
|
...e,
|
|
2498
2498
|
label: /* @__PURE__ */ z("div", {
|
|
2499
2499
|
className: g(Y.detailedLabel),
|
|
2500
|
-
children: [/* @__PURE__ */ R(
|
|
2500
|
+
children: [/* @__PURE__ */ R(Ki, { children: e.label }), /* @__PURE__ */ R(Ki, {
|
|
2501
2501
|
muted: !0,
|
|
2502
2502
|
children: e.details
|
|
2503
2503
|
})]
|
|
@@ -2534,18 +2534,18 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2534
2534
|
e.stopPropagation(), m && m(e);
|
|
2535
2535
|
},
|
|
2536
2536
|
"data-testid": D && `${D}-clear`,
|
|
2537
|
-
children: /* @__PURE__ */ R(
|
|
2537
|
+
children: /* @__PURE__ */ R(W, { icon: H.CLOSE })
|
|
2538
2538
|
}) : /* @__PURE__ */ R("span", {
|
|
2539
2539
|
className: g(Y.iconOpen),
|
|
2540
|
-
children: /* @__PURE__ */ R(
|
|
2540
|
+
children: /* @__PURE__ */ R(W, { icon: "chevron down" })
|
|
2541
2541
|
})
|
|
2542
2542
|
})]
|
|
2543
2543
|
})] });
|
|
2544
|
-
return /* @__PURE__ */ R(L, { children: /* @__PURE__ */ R(
|
|
2544
|
+
return /* @__PURE__ */ R(L, { children: /* @__PURE__ */ R(G, {
|
|
2545
2545
|
error: !!o,
|
|
2546
2546
|
warning: !!s,
|
|
2547
2547
|
text: c || o || s,
|
|
2548
|
-
enabled: c &&
|
|
2548
|
+
enabled: c && J(c) || o && J(o) || s && J(s) || !1,
|
|
2549
2549
|
maxWidth: w,
|
|
2550
2550
|
children: F
|
|
2551
2551
|
}) });
|
|
@@ -2557,7 +2557,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2557
2557
|
currentOption: !1,
|
|
2558
2558
|
clearAll: !1
|
|
2559
2559
|
}, ko = (e) => e === null ? 0 : e + 1, Ao = (e, t) => {
|
|
2560
|
-
let n = ["none", ...e.map((e, t) => e.type ===
|
|
2560
|
+
let n = ["none", ...e.map((e, t) => e.type === ri.HEADING ? null : t).filter((e) => e !== null)], r = ko(t);
|
|
2561
2561
|
return {
|
|
2562
2562
|
options: n,
|
|
2563
2563
|
currentIndex: r,
|
|
@@ -2774,7 +2774,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2774
2774
|
triggerBounds: A
|
|
2775
2775
|
};
|
|
2776
2776
|
}, Bo = (e) => {
|
|
2777
|
-
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: c, onCreate: l = null, placeholder: u = "", small: d = !1, tabIndex: m = 0, onFocus: h = () => {}, onBlur: g = () => {}, searchable: _ = !0, clearable: v = !1, maxTooltipWidth: y, closeOnOptionActionClick: b, isInTable: x = !1, groupOrder: S, firstSelectedOptionIndex: C = 0, right: w = !1, testId: T = void 0 } = e, E = s(
|
|
2777
|
+
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: c, onCreate: l = null, placeholder: u = "", small: d = !1, tabIndex: m = 0, onFocus: h = () => {}, onBlur: g = () => {}, searchable: _ = !0, clearable: v = !1, maxTooltipWidth: y, closeOnOptionActionClick: b, isInTable: x = !1, groupOrder: S, firstSelectedOptionIndex: C = 0, right: w = !1, testId: T = void 0 } = e, E = s(U), D = l !== null, O = p(null), k = p(null), [A, j] = Xa(), M = Za(), [N, P] = f(Fo, {
|
|
2778
2778
|
options: o,
|
|
2779
2779
|
firstSelectedOptionIndex: C
|
|
2780
2780
|
}, ({ options: e }) => ({
|
|
@@ -2867,13 +2867,13 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2867
2867
|
if (typeof t == "object" && t && t.hasOwnProperty("label") && t.hasOwnProperty("value")) return t;
|
|
2868
2868
|
{
|
|
2869
2869
|
let n = typeof t == "object" && t && t.hasOwnProperty("value") ? t.value : t;
|
|
2870
|
-
return (Array.isArray(e) ? e.filter((e) => e.type !==
|
|
2870
|
+
return (Array.isArray(e) ? e.filter((e) => e.type !== ri.HEADING).find((e) => e.value == n) : void 0) || (Vo(n) ? void 0 : {
|
|
2871
2871
|
value: n,
|
|
2872
2872
|
label: n
|
|
2873
2873
|
});
|
|
2874
2874
|
}
|
|
2875
2875
|
}, Ko = (e, t) => Uo(t) ? t.map((t) => Go(e, t)).filter((e) => e !== void 0) : t === null ? void 0 : Go(e, t), qo = (e) => Array.isArray(e) && e.some((e) => typeof e == "string" || typeof e == "number"), Jo = (e, t) => {
|
|
2876
|
-
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 !==
|
|
2876
|
+
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 !== ri.HEADING).findIndex((e) => typeof e == "string" || typeof e == "number" ? e == r : e.value == r);
|
|
2877
2877
|
return i === -1 ? null : i;
|
|
2878
2878
|
}, Yo = (e, t) => {
|
|
2879
2879
|
let n = Uo(t) ? t : Vo(t) ? [] : [t];
|
|
@@ -2889,7 +2889,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2889
2889
|
hasNonExistentValue: r && l !== void 0 ? Yo(s, l) : !1
|
|
2890
2890
|
};
|
|
2891
2891
|
}, Zo = (e) => {
|
|
2892
|
-
let { name: t = "", options: n = [], value: r, native: i = !1, onChange: a =
|
|
2892
|
+
let { name: t = "", options: n = [], value: r, native: i = !1, onChange: a = B, deprecatedEventHandler: o = !1, autoScroll: s = !0, warning: c, error: l, checkNonExistentValues: u = !0, closeOnOptionActionClick: d = !0, testId: f, disabled: p } = e, { multi: m, simpleInputs: h, options: g, selectedOptions: _, firstSelectedOptionIndex: v, hasNonExistentValue: y } = Xo(n, r, !i && s === !0, u), b = !m, x = i && b;
|
|
2893
2893
|
i && !b && console.warn("Native select does not support provided props (see stories)");
|
|
2894
2894
|
let S = "Value no longer available for re-selection", C = y && !p ? c ? /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("div", { children: S }), /* @__PURE__ */ R("div", { children: c })] }) : S : c, w = y && l && !p ? /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("div", { children: S }), /* @__PURE__ */ R("div", { children: l })] }) : l, T = (e, n) => {
|
|
2895
2895
|
if (o) {
|
|
@@ -2951,8 +2951,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2951
2951
|
}, rs = ({ children: e, groupOrder: t, small: n = !1 }) => {
|
|
2952
2952
|
let r = (() => {
|
|
2953
2953
|
if (t) switch (t) {
|
|
2954
|
-
case
|
|
2955
|
-
case
|
|
2954
|
+
case V.FIRST: return ns.groupOrderFirst;
|
|
2955
|
+
case V.LAST: return ns.groupOrderLast;
|
|
2956
2956
|
default: return ns.groupOrderMiddle;
|
|
2957
2957
|
}
|
|
2958
2958
|
return "";
|
|
@@ -2986,19 +2986,19 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
2986
2986
|
value: a.value
|
|
2987
2987
|
})
|
|
2988
2988
|
}),
|
|
2989
|
-
/* @__PURE__ */ R(
|
|
2989
|
+
/* @__PURE__ */ R(K, {
|
|
2990
2990
|
small: r,
|
|
2991
2991
|
round: !0,
|
|
2992
2992
|
basic: !0,
|
|
2993
|
-
icon:
|
|
2993
|
+
icon: H.CHEVRON_DOUBLE_LEFT,
|
|
2994
2994
|
onClick: () => h("1"),
|
|
2995
2995
|
disabled: l || n === 1
|
|
2996
2996
|
}),
|
|
2997
|
-
/* @__PURE__ */ R(
|
|
2997
|
+
/* @__PURE__ */ R(K, {
|
|
2998
2998
|
small: r,
|
|
2999
2999
|
round: !0,
|
|
3000
3000
|
basic: !0,
|
|
3001
|
-
icon:
|
|
3001
|
+
icon: H.CHEVRON_LEFT,
|
|
3002
3002
|
onClick: () => h(String(Number(n) - 1)),
|
|
3003
3003
|
disabled: l || n === 1
|
|
3004
3004
|
}),
|
|
@@ -3015,19 +3015,19 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3015
3015
|
error: p
|
|
3016
3016
|
}), /* @__PURE__ */ z(rs, { children: ["of ", u] })]
|
|
3017
3017
|
}),
|
|
3018
|
-
/* @__PURE__ */ R(
|
|
3018
|
+
/* @__PURE__ */ R(K, {
|
|
3019
3019
|
small: r,
|
|
3020
3020
|
round: !0,
|
|
3021
3021
|
basic: !0,
|
|
3022
|
-
icon:
|
|
3022
|
+
icon: H.CHEVRON_RIGHT,
|
|
3023
3023
|
onClick: () => h(String(Number(n) + 1)),
|
|
3024
3024
|
disabled: l || n === u
|
|
3025
3025
|
}),
|
|
3026
|
-
/* @__PURE__ */ R(
|
|
3026
|
+
/* @__PURE__ */ R(K, {
|
|
3027
3027
|
small: r,
|
|
3028
3028
|
round: !0,
|
|
3029
3029
|
basic: !0,
|
|
3030
|
-
icon:
|
|
3030
|
+
icon: H.CHEVRON_DOUBLE_RIGHT,
|
|
3031
3031
|
onClick: () => h(String(u)),
|
|
3032
3032
|
disabled: l || n === u,
|
|
3033
3033
|
testId: s == null ? void 0 : s.doubleRightBtn
|
|
@@ -3051,7 +3051,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3051
3051
|
children: /* @__PURE__ */ R("div", { children: n })
|
|
3052
3052
|
}) : null, i || o() ? /* @__PURE__ */ z("div", {
|
|
3053
3053
|
className: qa.section,
|
|
3054
|
-
children: [e && o() ? /* @__PURE__ */ R(is, { pagination: e }) : /* @__PURE__ */ R("div", {}), i && /* @__PURE__ */ R("div", { children: /* @__PURE__ */ R(
|
|
3054
|
+
children: [e && o() ? /* @__PURE__ */ R(is, { pagination: e }) : /* @__PURE__ */ R("div", {}), i && /* @__PURE__ */ R("div", { children: /* @__PURE__ */ R(Oi, { actions: t }) })]
|
|
3055
3055
|
}) : null]
|
|
3056
3056
|
}) : null;
|
|
3057
3057
|
}, os = (e) => {
|
|
@@ -3084,10 +3084,10 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3084
3084
|
if (!e) return null;
|
|
3085
3085
|
let { bodyAlignment: r, headerAlignment: i, isHeader: a } = e;
|
|
3086
3086
|
switch (a && i ? i : r) {
|
|
3087
|
-
case
|
|
3088
|
-
case
|
|
3089
|
-
case
|
|
3090
|
-
default: return n ?
|
|
3087
|
+
case hr.LEFT: return n ? hr.LEFT : t.leftAligned;
|
|
3088
|
+
case hr.RIGHT: return n ? hr.RIGHT : t.rightAligned;
|
|
3089
|
+
case hr.CENTER: return n ? hr.CENTER : t.centerAligned;
|
|
3090
|
+
default: return n ? hr.LEFT : t.leftAligned;
|
|
3091
3091
|
}
|
|
3092
3092
|
}, ps = (e, t = !1, n = 0) => {
|
|
3093
3093
|
if (!e || e.length === 0) return [];
|
|
@@ -3142,15 +3142,15 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3142
3142
|
disabled: e.disabled,
|
|
3143
3143
|
isInTable: !0,
|
|
3144
3144
|
maxTooltipWidth: e.maxTooltipWidth,
|
|
3145
|
-
right: t ===
|
|
3145
|
+
right: t === hr.RIGHT,
|
|
3146
3146
|
selectOnFocus: e.selectOnFocus,
|
|
3147
3147
|
testId: n,
|
|
3148
3148
|
tabIndex: e.disabled ? -1 : 0,
|
|
3149
3149
|
tooltip: e.tooltip,
|
|
3150
3150
|
type: r
|
|
3151
|
-
}), hs = 14, gs = (e) => String(
|
|
3151
|
+
}), hs = 14, gs = (e) => String(Mn(e)), _s = (e) => xn(e) ? e : gs(On(jn(e), hs)), vs = (e) => e ? typeof e == "string" ? e : Wt(e) ? e[0] : e.fieldName : "", ys = ({ 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 }) => {
|
|
3152
3152
|
let O = (e) => {
|
|
3153
|
-
let n =
|
|
3153
|
+
let n = Pn(e), r = t && Vo(e);
|
|
3154
3154
|
return [Infinity, -Infinity].includes(Number(e)) || r ? {
|
|
3155
3155
|
valid: !0,
|
|
3156
3156
|
errors: []
|
|
@@ -3166,7 +3166,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3166
3166
|
}, A = p(null), [j, M] = m(k(gs(s))), [N, P] = m(!1), F = vs(e), { valid: ee, errors: te } = O(j), ne = te && te.length && !E ? te[0] : null;
|
|
3167
3167
|
c(() => {
|
|
3168
3168
|
let e = k(gs(s));
|
|
3169
|
-
|
|
3169
|
+
jn(j) !== jn(e) && M(e);
|
|
3170
3170
|
}, [
|
|
3171
3171
|
s,
|
|
3172
3172
|
C,
|
|
@@ -3180,12 +3180,12 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3180
3180
|
]);
|
|
3181
3181
|
let re = (e) => {
|
|
3182
3182
|
var n, r;
|
|
3183
|
-
let i = "key" in e ? j : e == null || (n = e.target) == null ? void 0 : n.value, a =
|
|
3183
|
+
let i = "key" in e ? j : e == null || (n = e.target) == null ? void 0 : n.value, a = pn(i.replaceAll(" ", "").replaceAll("|", ""));
|
|
3184
3184
|
M(a), ((r = O(a)) != null && r.valid || t && Vo(i)) && l({
|
|
3185
3185
|
...e,
|
|
3186
3186
|
target: {
|
|
3187
3187
|
...e.target,
|
|
3188
|
-
value:
|
|
3188
|
+
value: An(gs(a)),
|
|
3189
3189
|
name: F
|
|
3190
3190
|
}
|
|
3191
3191
|
});
|
|
@@ -3204,7 +3204,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3204
3204
|
testId: g,
|
|
3205
3205
|
disabled: n,
|
|
3206
3206
|
placeholder: t,
|
|
3207
|
-
value: w && !N && ee ? T ? gs(T(j)) : ((e) => x ?
|
|
3207
|
+
value: w && !N && ee ? T ? gs(T(j)) : ((e) => x ? Dn(e, 2) : Tn(e, 4))(s) : j,
|
|
3208
3208
|
onChange: re,
|
|
3209
3209
|
onFocus: (e) => {
|
|
3210
3210
|
P(!0), u(e);
|
|
@@ -3243,7 +3243,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3243
3243
|
warning: e.warning,
|
|
3244
3244
|
disabled: e.disabled,
|
|
3245
3245
|
isInTable: !0,
|
|
3246
|
-
left: (r = e.left) == null ? t ===
|
|
3246
|
+
left: (r = e.left) == null ? t === hr.LEFT : r,
|
|
3247
3247
|
selectOnFocus: e.selectOnFocus,
|
|
3248
3248
|
tabIndex: e.disabled ? -1 : 0,
|
|
3249
3249
|
testId: n,
|
|
@@ -3278,7 +3278,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3278
3278
|
width: "100%",
|
|
3279
3279
|
autoLayerWidth: e.autoLayerWidth,
|
|
3280
3280
|
multi: e.multi,
|
|
3281
|
-
right: t ===
|
|
3281
|
+
right: t === hr.RIGHT,
|
|
3282
3282
|
testId: n,
|
|
3283
3283
|
tabIndex: e.disabled ? -1 : 0
|
|
3284
3284
|
}), Ss = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ R("div", {
|
|
@@ -3301,10 +3301,10 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3301
3301
|
testId: n
|
|
3302
3302
|
}) : null
|
|
3303
3303
|
}), Cs = ({ cell: e, testId: t }) => {
|
|
3304
|
-
let n = s(
|
|
3304
|
+
let n = s(U), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, c = (e) => J(e);
|
|
3305
3305
|
return /* @__PURE__ */ R("div", {
|
|
3306
3306
|
className: X.inputWrapper,
|
|
3307
|
-
children: /* @__PURE__ */ R(
|
|
3307
|
+
children: /* @__PURE__ */ R(G, {
|
|
3308
3308
|
error: !!r,
|
|
3309
3309
|
warning: !!i,
|
|
3310
3310
|
text: a || r || i,
|
|
@@ -3328,7 +3328,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3328
3328
|
});
|
|
3329
3329
|
}, ws = ({ cell: e, testId: t }) => /* @__PURE__ */ R("div", {
|
|
3330
3330
|
className: e.label ? "" : X.standaloneCheckbox,
|
|
3331
|
-
children: /* @__PURE__ */ R(
|
|
3331
|
+
children: /* @__PURE__ */ R(Ur, {
|
|
3332
3332
|
label: e.label,
|
|
3333
3333
|
checked: e.checked,
|
|
3334
3334
|
isInTable: !0,
|
|
@@ -3346,19 +3346,19 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3346
3346
|
button: "_button_1vgw8_18",
|
|
3347
3347
|
label: "_label_1vgw8_21",
|
|
3348
3348
|
dot: "_dot_1vgw8_32"
|
|
3349
|
-
}, Es =
|
|
3349
|
+
}, Es = Un((e) => e.reduce((e, { label: t, tooltip: n, value: r }) => (e[r] = /* @__PURE__ */ R(G, {
|
|
3350
3350
|
text: /* @__PURE__ */ z(L, { children: [
|
|
3351
3351
|
n,
|
|
3352
3352
|
n ? ": " : "",
|
|
3353
3353
|
t == null ? r : t
|
|
3354
3354
|
] }),
|
|
3355
3355
|
children: /* @__PURE__ */ R("div", { className: Ts.dot })
|
|
3356
|
-
}), e), {}),
|
|
3356
|
+
}), e), {}), Wn), Ds = ({ 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: _ = {
|
|
3357
3357
|
enabled: !1,
|
|
3358
3358
|
width: "100px",
|
|
3359
3359
|
height: "400px"
|
|
3360
|
-
}, onChange: v =
|
|
3361
|
-
let y = s(
|
|
3360
|
+
}, onChange: v = B }) => {
|
|
3361
|
+
let y = s(U), b = Es(l), x = (n) => {
|
|
3362
3362
|
let r = typeof t == "string" ? t : String(t);
|
|
3363
3363
|
v({ target: {
|
|
3364
3364
|
name: e == null ? "" : e,
|
|
@@ -3367,23 +3367,23 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3367
3367
|
} });
|
|
3368
3368
|
}, S = () => /* @__PURE__ */ R("div", {
|
|
3369
3369
|
className: Ts.button,
|
|
3370
|
-
children: /* @__PURE__ */ R(
|
|
3370
|
+
children: /* @__PURE__ */ R(K, {
|
|
3371
3371
|
basic: !0,
|
|
3372
3372
|
small: !0,
|
|
3373
3373
|
round: !0,
|
|
3374
3374
|
onClick: () => x(m ? [a, i == null ? void 0 : i[1]] : a),
|
|
3375
3375
|
disabled: p || i === a || y,
|
|
3376
|
-
icon:
|
|
3376
|
+
icon: H.FAST_BACKWARD
|
|
3377
3377
|
})
|
|
3378
3378
|
}), C = () => /* @__PURE__ */ R("div", {
|
|
3379
3379
|
className: Ts.button,
|
|
3380
|
-
children: /* @__PURE__ */ R(
|
|
3380
|
+
children: /* @__PURE__ */ R(K, {
|
|
3381
3381
|
basic: !0,
|
|
3382
3382
|
small: !0,
|
|
3383
3383
|
round: !0,
|
|
3384
3384
|
onClick: () => x(m ? [i == null ? void 0 : i[0], o] : o),
|
|
3385
3385
|
disabled: p || i === o || y,
|
|
3386
|
-
icon:
|
|
3386
|
+
icon: H.FAST_FORWARD
|
|
3387
3387
|
})
|
|
3388
3388
|
});
|
|
3389
3389
|
return /* @__PURE__ */ z("div", {
|
|
@@ -3394,7 +3394,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3394
3394
|
} : { width: n },
|
|
3395
3395
|
children: [
|
|
3396
3396
|
u && (_.enabled ? /* @__PURE__ */ R(C, {}) : /* @__PURE__ */ R(S, {})),
|
|
3397
|
-
/* @__PURE__ */ R(
|
|
3397
|
+
/* @__PURE__ */ R(Hn, {
|
|
3398
3398
|
range: m,
|
|
3399
3399
|
allowCross: !1,
|
|
3400
3400
|
className: g((p || y) && Ts.rcSliderDisabled, u && Ts.hasArrows),
|
|
@@ -3408,7 +3408,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3408
3408
|
vertical: _.enabled,
|
|
3409
3409
|
handleRender: (e, t) => /* @__PURE__ */ z("div", {
|
|
3410
3410
|
style: { position: "relative" },
|
|
3411
|
-
children: [e, d && t.dragging && /* @__PURE__ */ R(
|
|
3411
|
+
children: [e, d && t.dragging && /* @__PURE__ */ R(G, {
|
|
3412
3412
|
display: "block",
|
|
3413
3413
|
text: f(i),
|
|
3414
3414
|
forceOpen: !0,
|
|
@@ -3446,19 +3446,19 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3446
3446
|
let { tooltip: t, icon: n } = e;
|
|
3447
3447
|
return /* @__PURE__ */ R("div", {
|
|
3448
3448
|
className: X.iconCellWrapper,
|
|
3449
|
-
children: /* @__PURE__ */ R(
|
|
3449
|
+
children: /* @__PURE__ */ R(G, {
|
|
3450
3450
|
text: t,
|
|
3451
|
-
enabled: !!t &&
|
|
3451
|
+
enabled: !!t && J(t),
|
|
3452
3452
|
display: "flex",
|
|
3453
3453
|
placement: "top-center",
|
|
3454
|
-
children: /* @__PURE__ */ R(
|
|
3454
|
+
children: /* @__PURE__ */ R(W, { icon: n })
|
|
3455
3455
|
})
|
|
3456
3456
|
});
|
|
3457
|
-
}, As = ({ cell: e }) => /* @__PURE__ */ R(
|
|
3457
|
+
}, As = ({ cell: e }) => /* @__PURE__ */ R(Oi, { actions: e.actions }), js = ({ cell: e }) => {
|
|
3458
3458
|
let { helpIcon: t } = e;
|
|
3459
3459
|
return t ? /* @__PURE__ */ R("div", {
|
|
3460
3460
|
className: X.icon,
|
|
3461
|
-
children: /* @__PURE__ */ R(
|
|
3461
|
+
children: /* @__PURE__ */ R(Hr, {
|
|
3462
3462
|
onClick: t.onClick,
|
|
3463
3463
|
text: t.tooltip
|
|
3464
3464
|
})
|
|
@@ -3467,25 +3467,25 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3467
3467
|
let { libraryIcon: t } = e;
|
|
3468
3468
|
return t ? /* @__PURE__ */ R("div", {
|
|
3469
3469
|
className: X.icon,
|
|
3470
|
-
children: /* @__PURE__ */ R(
|
|
3470
|
+
children: /* @__PURE__ */ R(Hr, {
|
|
3471
3471
|
onClick: t.onClick,
|
|
3472
3472
|
text: t.tooltip,
|
|
3473
|
-
icon:
|
|
3473
|
+
icon: H.LIBRARY
|
|
3474
3474
|
})
|
|
3475
3475
|
}) : null;
|
|
3476
3476
|
}, Ns = ({ cell: e }) => {
|
|
3477
3477
|
let { hasSort: t, sort: n, sortPriority: r } = e;
|
|
3478
3478
|
return t ? /* @__PURE__ */ z("span", {
|
|
3479
3479
|
className: X.sortingCellIcon,
|
|
3480
|
-
children: [n === "down" ? /* @__PURE__ */ R(
|
|
3480
|
+
children: [n === "down" ? /* @__PURE__ */ R(Ki, {
|
|
3481
3481
|
link: !0,
|
|
3482
|
-
children: /* @__PURE__ */ R(
|
|
3483
|
-
}) : n === "up" ? /* @__PURE__ */ R(
|
|
3482
|
+
children: /* @__PURE__ */ R(W, { icon: H.SORT_ASCENDING })
|
|
3483
|
+
}) : n === "up" ? /* @__PURE__ */ R(Ki, {
|
|
3484
3484
|
link: !0,
|
|
3485
|
-
children: /* @__PURE__ */ R(
|
|
3486
|
-
}) : /* @__PURE__ */ R(
|
|
3485
|
+
children: /* @__PURE__ */ R(W, { icon: H.SORT_DESCENDING })
|
|
3486
|
+
}) : /* @__PURE__ */ R(Ki, {
|
|
3487
3487
|
faint: !0,
|
|
3488
|
-
children: /* @__PURE__ */ R(
|
|
3488
|
+
children: /* @__PURE__ */ R(W, { icon: H.SORT_DESCENDING })
|
|
3489
3489
|
}), r && n ? /* @__PURE__ */ R("sup", { children: r }) : null]
|
|
3490
3490
|
}) : null;
|
|
3491
3491
|
}, Ps = ({ cell: e, isHeader: t, testId: n }) => {
|
|
@@ -3503,11 +3503,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3503
3503
|
});
|
|
3504
3504
|
return /* @__PURE__ */ R("div", {
|
|
3505
3505
|
className: X.inputWrapper,
|
|
3506
|
-
children: /* @__PURE__ */ R(
|
|
3506
|
+
children: /* @__PURE__ */ R(G, {
|
|
3507
3507
|
error: !!r,
|
|
3508
3508
|
warning: !!i,
|
|
3509
3509
|
text: a || r || i,
|
|
3510
|
-
enabled: a &&
|
|
3510
|
+
enabled: a && J(a) || r && J(r) || i && J(i) || !1,
|
|
3511
3511
|
maxWidth: o,
|
|
3512
3512
|
display: "block",
|
|
3513
3513
|
children: u
|
|
@@ -3515,7 +3515,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3515
3515
|
});
|
|
3516
3516
|
}, Fs = ({ cell: e, testId: t }) => {
|
|
3517
3517
|
let { content: n, fullWidth: r, closeOnOutsideClick: i, disabled: a } = e;
|
|
3518
|
-
return /* @__PURE__ */ R(
|
|
3518
|
+
return /* @__PURE__ */ R(Ri, {
|
|
3519
3519
|
content: n,
|
|
3520
3520
|
fullWidth: r,
|
|
3521
3521
|
closeOnOutsideClick: i,
|
|
@@ -3539,7 +3539,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3539
3539
|
disabled: "_disabled_1homz_96",
|
|
3540
3540
|
isInTable: "_isInTable_1homz_112",
|
|
3541
3541
|
helpIconEnabled: "_helpIconEnabled_1homz_117"
|
|
3542
|
-
}, Ls = ({ 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 =
|
|
3542
|
+
}, Ls = ({ 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 = _r.CAPITALIZE }) => {
|
|
3543
3543
|
let f = l || u;
|
|
3544
3544
|
return /* @__PURE__ */ z("div", {
|
|
3545
3545
|
className: g(Is.radio, i ? Is.disabled : null, a ? Is.small : null, s ? Is.noMargin : null, t ? null : Is.noLabel),
|
|
@@ -3547,7 +3547,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3547
3547
|
"data-testid": c,
|
|
3548
3548
|
children: [
|
|
3549
3549
|
/* @__PURE__ */ R("input", {
|
|
3550
|
-
type:
|
|
3550
|
+
type: yr.RADIO,
|
|
3551
3551
|
value: n,
|
|
3552
3552
|
checked: r,
|
|
3553
3553
|
onChange: () => {},
|
|
@@ -3562,7 +3562,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3562
3562
|
f && /* @__PURE__ */ R("div", {
|
|
3563
3563
|
className: Is.helpIconEnabled,
|
|
3564
3564
|
onClick: u,
|
|
3565
|
-
children: /* @__PURE__ */ R(
|
|
3565
|
+
children: /* @__PURE__ */ R(Hr, { text: l })
|
|
3566
3566
|
})
|
|
3567
3567
|
]
|
|
3568
3568
|
});
|
|
@@ -3609,7 +3609,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3609
3609
|
}
|
|
3610
3610
|
}, Bs = /* @__PURE__ */ function(e) {
|
|
3611
3611
|
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;
|
|
3612
|
-
}({}), Vs = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r =
|
|
3612
|
+
}({}), Vs = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = hr.LEFT, width: i, testId: a }) => {
|
|
3613
3613
|
var o;
|
|
3614
3614
|
if (!e) return null;
|
|
3615
3615
|
let { style: s, colSpan: c, rowSpan: l, width: u } = e, d = p(null), f = {
|
|
@@ -3619,7 +3619,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3619
3619
|
}, m = fs(f, X), h = fs(f, X, !0), _ = e.type === Bs.INPUT || e.type === Bs.NUMBER_INPUT || e.type === Bs.SELECT || e.type === Bs.POPOVER ? X.inputCell : e.type === Bs.SLIDER ? X.sliderCell : e.type === Bs.CHECKBOX || e.type === Bs.RADIO ? X.checkBoxCell : e.type === Bs.ACTIONS ? X.actionsCell : X.staticCell, v = g(X.cell, _, e.hasSort ? X.sortingCell : null, m, e.breakWord ? X.breakWord : ""), y = (o = u == null ? i : u) == null ? void 0 : o, b = e.type === Bs.STATIC || !e.type, x = {
|
|
3620
3620
|
width: y,
|
|
3621
3621
|
minWidth: y,
|
|
3622
|
-
textTransform: t && b ?
|
|
3622
|
+
textTransform: t && b ? _r.CAPITALIZE : void 0,
|
|
3623
3623
|
...s
|
|
3624
3624
|
};
|
|
3625
3625
|
return /* @__PURE__ */ R(t ? "th" : "td", {
|
|
@@ -3630,7 +3630,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3630
3630
|
rowSpan: l,
|
|
3631
3631
|
children: /* @__PURE__ */ R(zs, {
|
|
3632
3632
|
cell: e,
|
|
3633
|
-
columnAlignment: h == null ?
|
|
3633
|
+
columnAlignment: h == null ? hr.RIGHT : h,
|
|
3634
3634
|
isHeader: t,
|
|
3635
3635
|
testId: a
|
|
3636
3636
|
})
|
|
@@ -3652,11 +3652,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3652
3652
|
actions: e.actions
|
|
3653
3653
|
},
|
|
3654
3654
|
isHeader: n
|
|
3655
|
-
}, r), { attributes: T, listeners: E, setNodeRef: D, transform: O, transition: k, isDragging: A } =
|
|
3655
|
+
}, r), { attributes: T, listeners: E, setNodeRef: D, transform: O, transition: k, isDragging: A } = zn({
|
|
3656
3656
|
id: t.toString(),
|
|
3657
3657
|
animateLayoutChanges: () => !1
|
|
3658
3658
|
}), j = {
|
|
3659
|
-
transform: u ? void 0 :
|
|
3659
|
+
transform: u ? void 0 : Vn.Translate.toString(O),
|
|
3660
3660
|
height: d,
|
|
3661
3661
|
transition: k,
|
|
3662
3662
|
opacity: A ? 0 : void 0
|
|
@@ -3666,7 +3666,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3666
3666
|
className: g(us.dragIcon, u ? us.dragIconDisabled : ""),
|
|
3667
3667
|
...T,
|
|
3668
3668
|
...E,
|
|
3669
|
-
children: /* @__PURE__ */ R(
|
|
3669
|
+
children: /* @__PURE__ */ R(W, { icon: H.DRAG })
|
|
3670
3670
|
})
|
|
3671
3671
|
});
|
|
3672
3672
|
return n ? /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ z("tr", {
|
|
@@ -3709,8 +3709,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3709
3709
|
}, `${t}_expanded_content`) : null] });
|
|
3710
3710
|
}, Us = (e) => {
|
|
3711
3711
|
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]);
|
|
3712
|
-
return a ? /* @__PURE__ */ z(
|
|
3713
|
-
collisionDetection:
|
|
3712
|
+
return a ? /* @__PURE__ */ z(Gn, {
|
|
3713
|
+
collisionDetection: qn,
|
|
3714
3714
|
onDragStart: (e) => {
|
|
3715
3715
|
p(e.active.id);
|
|
3716
3716
|
},
|
|
@@ -3734,11 +3734,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3734
3734
|
to: i
|
|
3735
3735
|
}));
|
|
3736
3736
|
},
|
|
3737
|
-
children: [/* @__PURE__ */ R(
|
|
3737
|
+
children: [/* @__PURE__ */ R(Rn, {
|
|
3738
3738
|
items: v,
|
|
3739
|
-
strategy:
|
|
3739
|
+
strategy: Bn,
|
|
3740
3740
|
children: t({ dropDisabled: h })
|
|
3741
|
-
}), !!f &&
|
|
3741
|
+
}), !!f && ln(/* @__PURE__ */ R(Kn, {
|
|
3742
3742
|
dropAnimation: null,
|
|
3743
3743
|
children: /* @__PURE__ */ R("table", {
|
|
3744
3744
|
className: g(Wa.table, Wa.dragOverlay),
|
|
@@ -3764,7 +3764,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
3764
3764
|
}) : t({});
|
|
3765
3765
|
}, Ws = ({ table: e, children: t }) => {
|
|
3766
3766
|
var n, r, i;
|
|
3767
|
-
let a = p(null), o =
|
|
3767
|
+
let a = p(null), o = Jn({
|
|
3768
3768
|
count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
|
|
3769
3769
|
getScrollElement: () => a.current,
|
|
3770
3770
|
estimateSize: () => 31,
|
|
@@ -4008,9 +4008,9 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4008
4008
|
]);
|
|
4009
4009
|
let x = d(() => t.fields.map((e, r) => {
|
|
4010
4010
|
var a, o, s;
|
|
4011
|
-
let c = y == null ? void 0 : y[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) =>
|
|
4011
|
+
let c = y == null ? void 0 : y[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => nn(e) === Js);
|
|
4012
4012
|
if (!l.length || u) return {};
|
|
4013
|
-
let d = t == null || (a = t.units) == null ? void 0 : a[r], f =
|
|
4013
|
+
let d = t == null || (a = t.units) == null ? void 0 : a[r], f = nn(d), p = l != null && l.some((e) => nn(e) === f) ? d : (o = c == null ? void 0 : c.defaultUnit) == null ? "" : o;
|
|
4014
4014
|
return {
|
|
4015
4015
|
key: i == null || (s = i[r]) == null ? void 0 : s.value,
|
|
4016
4016
|
value: p,
|
|
@@ -4183,7 +4183,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4183
4183
|
}),
|
|
4184
4184
|
n !== "" && /* @__PURE__ */ R("div", {
|
|
4185
4185
|
className: rc.text,
|
|
4186
|
-
children: /* @__PURE__ */ R(
|
|
4186
|
+
children: /* @__PURE__ */ R(Ki, {
|
|
4187
4187
|
faint: !0,
|
|
4188
4188
|
children: n
|
|
4189
4189
|
})
|
|
@@ -4359,7 +4359,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4359
4359
|
throw Error(`${n("jsonParseFailed")} ${e.message}`);
|
|
4360
4360
|
}
|
|
4361
4361
|
}, kc = (e) => e.replace(",", "."), Ac = (e) => e.map((e) => e.map((e) => kc(e))), jc = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
|
|
4362
|
-
|
|
4362
|
+
Xn.parse(e, {
|
|
4363
4363
|
...bc,
|
|
4364
4364
|
preview: t,
|
|
4365
4365
|
complete: (e) => {
|
|
@@ -4392,7 +4392,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4392
4392
|
t,
|
|
4393
4393
|
...n
|
|
4394
4394
|
].filter(Boolean);
|
|
4395
|
-
return
|
|
4395
|
+
return Xn.unparse(o, {
|
|
4396
4396
|
quotes: !1,
|
|
4397
4397
|
header: !0,
|
|
4398
4398
|
delimiter: a
|
|
@@ -4431,18 +4431,18 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4431
4431
|
withDismiss: !1
|
|
4432
4432
|
} }), s = (() => {
|
|
4433
4433
|
switch (t == null ? void 0 : t.type) {
|
|
4434
|
-
case La.SUCCESS: return
|
|
4435
|
-
case La.WARNING: return
|
|
4436
|
-
case La.ERROR: return
|
|
4437
|
-
default: return
|
|
4434
|
+
case La.SUCCESS: return $n.TYPE.SUCCESS;
|
|
4435
|
+
case La.WARNING: return $n.TYPE.WARNING;
|
|
4436
|
+
case La.ERROR: return $n.TYPE.ERROR;
|
|
4437
|
+
default: return $n.TYPE.INFO;
|
|
4438
4438
|
}
|
|
4439
4439
|
})();
|
|
4440
|
-
return e !== void 0 &&
|
|
4440
|
+
return e !== void 0 && $n.isActive(e) ? $n.update(e, {
|
|
4441
4441
|
render: o,
|
|
4442
4442
|
autoClose: n,
|
|
4443
4443
|
onClose: r,
|
|
4444
4444
|
type: s
|
|
4445
|
-
}) :
|
|
4445
|
+
}) : $n(o, {
|
|
4446
4446
|
toastId: e,
|
|
4447
4447
|
autoClose: n,
|
|
4448
4448
|
onClose: r,
|
|
@@ -4452,11 +4452,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4452
4452
|
pauseOnHover: !0,
|
|
4453
4453
|
draggable: !1,
|
|
4454
4454
|
closeButton: a,
|
|
4455
|
-
transition:
|
|
4455
|
+
transition: Zn,
|
|
4456
4456
|
type: s
|
|
4457
4457
|
});
|
|
4458
4458
|
}, Ic = (e) => {
|
|
4459
|
-
|
|
4459
|
+
$n.dismiss(e);
|
|
4460
4460
|
}, Lc = (e, t) => {
|
|
4461
4461
|
t(() => {
|
|
4462
4462
|
Fc({ ...e });
|
|
@@ -4467,8 +4467,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4467
4467
|
disabled: "_disabled_1c9wf_102",
|
|
4468
4468
|
noMargin: "_noMargin_1c9wf_110",
|
|
4469
4469
|
helpIconEnabled: "_helpIconEnabled_1c9wf_113"
|
|
4470
|
-
}, zc = ({ 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 =
|
|
4471
|
-
let p = s(
|
|
4470
|
+
}, zc = ({ 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 = _r.CAPITALIZE }) => {
|
|
4471
|
+
let p = s(U), m = u || d, h = r || p;
|
|
4472
4472
|
return /* @__PURE__ */ z("div", {
|
|
4473
4473
|
className: g(Rc.toggle, h ? Rc.disabled : null, a ? Rc.small : null, c ? Rc.noMargin : null),
|
|
4474
4474
|
style: { display: i },
|
|
@@ -4478,7 +4478,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4478
4478
|
"data-testid": l,
|
|
4479
4479
|
children: [
|
|
4480
4480
|
/* @__PURE__ */ R("input", {
|
|
4481
|
-
type:
|
|
4481
|
+
type: yr.CHECKBOX,
|
|
4482
4482
|
name: e,
|
|
4483
4483
|
value: n == null ? void 0 : n.toString(),
|
|
4484
4484
|
disabled: h,
|
|
@@ -4492,7 +4492,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4492
4492
|
m && /* @__PURE__ */ R("div", {
|
|
4493
4493
|
className: Rc.helpIconEnabled,
|
|
4494
4494
|
onClick: d,
|
|
4495
|
-
children: /* @__PURE__ */ R(
|
|
4495
|
+
children: /* @__PURE__ */ R(Hr, { text: u })
|
|
4496
4496
|
})
|
|
4497
4497
|
]
|
|
4498
4498
|
});
|
|
@@ -4517,7 +4517,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4517
4517
|
let O = o((t) => {
|
|
4518
4518
|
if (t) {
|
|
4519
4519
|
var n, r, i;
|
|
4520
|
-
let t =
|
|
4520
|
+
let t = Yn(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 = {
|
|
4521
4521
|
validationRules: s,
|
|
4522
4522
|
importLimit: (r = e.importLimit) == null ? Ys : r
|
|
4523
4523
|
}, o = Nc(N.fields.slice(0, 2), ((i = N.units) == null ? [] : i).slice(0, 2), t, a);
|
|
@@ -4558,7 +4558,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4558
4558
|
/* @__PURE__ */ z("div", {
|
|
4559
4559
|
className: Fa.headerContainer,
|
|
4560
4560
|
children: [
|
|
4561
|
-
/* @__PURE__ */ R(
|
|
4561
|
+
/* @__PURE__ */ R(G, {
|
|
4562
4562
|
text: u("downsampleTooltip"),
|
|
4563
4563
|
children: /* @__PURE__ */ R(zc, {
|
|
4564
4564
|
label: u("downsampled"),
|
|
@@ -4567,18 +4567,18 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4567
4567
|
disabled: ne || !F
|
|
4568
4568
|
})
|
|
4569
4569
|
}),
|
|
4570
|
-
/* @__PURE__ */ R(
|
|
4570
|
+
/* @__PURE__ */ R(G, {
|
|
4571
4571
|
text: u("deletePastedContent"),
|
|
4572
|
-
children: /* @__PURE__ */ R(
|
|
4572
|
+
children: /* @__PURE__ */ R(K, {
|
|
4573
4573
|
name: "clearReview",
|
|
4574
4574
|
icon: "delete",
|
|
4575
4575
|
small: !0,
|
|
4576
4576
|
onClick: k
|
|
4577
4577
|
})
|
|
4578
4578
|
}),
|
|
4579
|
-
/* @__PURE__ */ R(
|
|
4579
|
+
/* @__PURE__ */ R(G, {
|
|
4580
4580
|
text: u("openHelp"),
|
|
4581
|
-
children: /* @__PURE__ */ R(
|
|
4581
|
+
children: /* @__PURE__ */ R(K, {
|
|
4582
4582
|
name: "help",
|
|
4583
4583
|
icon: "help",
|
|
4584
4584
|
small: !0,
|
|
@@ -4610,7 +4610,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4610
4610
|
")"
|
|
4611
4611
|
]
|
|
4612
4612
|
}),
|
|
4613
|
-
/* @__PURE__ */ R(
|
|
4613
|
+
/* @__PURE__ */ R(K, {
|
|
4614
4614
|
name: "paste",
|
|
4615
4615
|
icon: "paste",
|
|
4616
4616
|
label: u("pasteFromClipboard"),
|
|
@@ -4633,7 +4633,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4633
4633
|
errors: ee,
|
|
4634
4634
|
t: u
|
|
4635
4635
|
}) : null,
|
|
4636
|
-
re && /* @__PURE__ */ R(
|
|
4636
|
+
re && /* @__PURE__ */ R(Ki, {
|
|
4637
4637
|
muted: !0,
|
|
4638
4638
|
children: u("commasAsDecimals")
|
|
4639
4639
|
}),
|
|
@@ -4664,7 +4664,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4664
4664
|
return /* @__PURE__ */ R(Ca, {
|
|
4665
4665
|
visible: g,
|
|
4666
4666
|
centered: !0,
|
|
4667
|
-
children: /* @__PURE__ */ R(
|
|
4667
|
+
children: /* @__PURE__ */ R($i, { dialog: {
|
|
4668
4668
|
width: "60vw",
|
|
4669
4669
|
height: "650px",
|
|
4670
4670
|
scroll: !0,
|
|
@@ -4674,7 +4674,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4674
4674
|
children: ae
|
|
4675
4675
|
}),
|
|
4676
4676
|
footer: /* @__PURE__ */ z(L, { children: [
|
|
4677
|
-
/* @__PURE__ */ R(
|
|
4677
|
+
/* @__PURE__ */ R(K, {
|
|
4678
4678
|
label: u("okay"),
|
|
4679
4679
|
colored: !0,
|
|
4680
4680
|
onClick: () => f(() => j()),
|
|
@@ -4682,11 +4682,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4682
4682
|
loading: d,
|
|
4683
4683
|
testId: `${h}-paste-with-review-modal-button-okay`
|
|
4684
4684
|
}),
|
|
4685
|
-
/* @__PURE__ */ R(
|
|
4685
|
+
/* @__PURE__ */ R(K, {
|
|
4686
4686
|
label: u("cancel"),
|
|
4687
4687
|
onClick: () => i()
|
|
4688
4688
|
}),
|
|
4689
|
-
P && /* @__PURE__ */ R(
|
|
4689
|
+
P && /* @__PURE__ */ R(K, {
|
|
4690
4690
|
label: b,
|
|
4691
4691
|
onClick: x
|
|
4692
4692
|
})
|
|
@@ -4702,10 +4702,10 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4702
4702
|
onClose: () => r({ name: e }),
|
|
4703
4703
|
...o
|
|
4704
4704
|
}) }, e);
|
|
4705
|
-
}) }) : null, Hc = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ R(
|
|
4705
|
+
}) }) : null, Hc = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ R(Ei, {
|
|
4706
4706
|
loading: !0,
|
|
4707
4707
|
menu: {
|
|
4708
|
-
component: /* @__PURE__ */ R(
|
|
4708
|
+
component: /* @__PURE__ */ R(K, {
|
|
4709
4709
|
basic: !0,
|
|
4710
4710
|
icon: t,
|
|
4711
4711
|
colored: "muted",
|
|
@@ -4804,7 +4804,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4804
4804
|
for (let e = 0; e < i.length; e++) {
|
|
4805
4805
|
var r;
|
|
4806
4806
|
let t = String((r = i[e]) == null ? "" : r);
|
|
4807
|
-
a[e] = qc.test(t) ?
|
|
4807
|
+
a[e] = qc.test(t) ? pn(t) : t;
|
|
4808
4808
|
}
|
|
4809
4809
|
n[e] = a;
|
|
4810
4810
|
}
|
|
@@ -4970,7 +4970,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4970
4970
|
onClickCopyClipboard: o(async (e) => {
|
|
4971
4971
|
let t = await v();
|
|
4972
4972
|
if (!t) return;
|
|
4973
|
-
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : Js).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = Nc(n, o, a.map((t) => t.map((t) =>
|
|
4973
|
+
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : Js).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = Nc(n, o, a.map((t) => t.map((t) => er(t) ? "" : s(t.toString(), e))), { delimiter: " " });
|
|
4974
4974
|
try {
|
|
4975
4975
|
await navigator.clipboard.writeText(c), Lc({ message: {
|
|
4976
4976
|
type: "Success",
|
|
@@ -4993,7 +4993,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4993
4993
|
} }, i);
|
|
4994
4994
|
return;
|
|
4995
4995
|
}
|
|
4996
|
-
if (!Wt(e) || e.length < 2 || !Ht(e, (e) => Qt(e) && Ht(
|
|
4996
|
+
if (!Wt(e) || e.length < 2 || !Ht(e, (e) => Qt(e) && Ht(an(e), $t))) {
|
|
4997
4997
|
Lc({ message: {
|
|
4998
4998
|
type: "Error",
|
|
4999
4999
|
content: "Smart upload returned unexpected format.",
|
|
@@ -5162,7 +5162,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5162
5162
|
}] : []
|
|
5163
5163
|
];
|
|
5164
5164
|
return /* @__PURE__ */ z("span", { children: [
|
|
5165
|
-
ee && /* @__PURE__ */ R(
|
|
5165
|
+
ee && /* @__PURE__ */ R(Xr, {
|
|
5166
5166
|
small: !0,
|
|
5167
5167
|
dark: !0
|
|
5168
5168
|
}),
|
|
@@ -5215,8 +5215,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5215
5215
|
testId: n
|
|
5216
5216
|
})
|
|
5217
5217
|
] });
|
|
5218
|
-
}, nl = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a =
|
|
5219
|
-
let c = s(
|
|
5218
|
+
}, nl = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = B, ...o }) => {
|
|
5219
|
+
let c = s(U), l = p(null), u = () => {
|
|
5220
5220
|
var e;
|
|
5221
5221
|
i || c || (e = l.current) == null || e.click();
|
|
5222
5222
|
}, d = (e) => {
|
|
@@ -5231,7 +5231,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5231
5231
|
}
|
|
5232
5232
|
}), l.current && (l.current.value = "");
|
|
5233
5233
|
};
|
|
5234
|
-
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(
|
|
5234
|
+
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(K, {
|
|
5235
5235
|
...o,
|
|
5236
5236
|
onClick: u
|
|
5237
5237
|
}), /* @__PURE__ */ R("input", {
|
|
@@ -5254,7 +5254,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5254
5254
|
onClick: () => {},
|
|
5255
5255
|
tooltip: "",
|
|
5256
5256
|
testId: void 0
|
|
5257
|
-
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u =
|
|
5257
|
+
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = _r.CAPITALIZE }) => {
|
|
5258
5258
|
var d;
|
|
5259
5259
|
return /* @__PURE__ */ R("div", {
|
|
5260
5260
|
className: g(rl.label, c ? rl.labelLeft : "", l ? rl.small : ""),
|
|
@@ -5266,25 +5266,25 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5266
5266
|
children: [e, /* @__PURE__ */ z("div", {
|
|
5267
5267
|
className: rl.icons,
|
|
5268
5268
|
children: [
|
|
5269
|
-
(n || i) && /* @__PURE__ */ R(
|
|
5269
|
+
(n || i) && /* @__PURE__ */ R(Hr, {
|
|
5270
5270
|
text: n,
|
|
5271
5271
|
onClick: i,
|
|
5272
5272
|
maxWidth: r
|
|
5273
5273
|
}),
|
|
5274
|
-
o && /* @__PURE__ */ R(
|
|
5274
|
+
o && /* @__PURE__ */ R(Hr, {
|
|
5275
5275
|
text: o,
|
|
5276
|
-
icon:
|
|
5276
|
+
icon: H.INFO
|
|
5277
5277
|
}),
|
|
5278
|
-
a && a.visible && a.onClick && /* @__PURE__ */ R(
|
|
5278
|
+
a && a.visible && a.onClick && /* @__PURE__ */ R(Hr, {
|
|
5279
5279
|
onClick: a.onClick,
|
|
5280
|
-
icon: a.active ?
|
|
5280
|
+
icon: a.active ? H.LOCK : H.UNLOCK,
|
|
5281
5281
|
active: a.active,
|
|
5282
5282
|
testId: a.testId
|
|
5283
5283
|
}),
|
|
5284
|
-
s && /* @__PURE__ */ R(
|
|
5284
|
+
s && /* @__PURE__ */ R(Hr, {
|
|
5285
5285
|
text: (d = s == null ? void 0 : s.tooltip) == null ? "" : d,
|
|
5286
5286
|
onClick: s.onClick,
|
|
5287
|
-
icon:
|
|
5287
|
+
icon: H.LIBRARY
|
|
5288
5288
|
})
|
|
5289
5289
|
]
|
|
5290
5290
|
})]
|
|
@@ -5303,7 +5303,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5303
5303
|
onClick: () => {},
|
|
5304
5304
|
tooltip: "",
|
|
5305
5305
|
testId: void 0
|
|
5306
|
-
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f =
|
|
5306
|
+
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = _r.CAPITALIZE }) => /* @__PURE__ */ z("div", {
|
|
5307
5307
|
className: g(ul.field, t ? ul.labelLeft : ""),
|
|
5308
5308
|
"data-testid": d,
|
|
5309
5309
|
children: [(e || t) && /* @__PURE__ */ R(il, {
|
|
@@ -5337,7 +5337,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5337
5337
|
}), pl = { formRow: "_formRow_odewu_1" }, ml = ({ children: e }) => /* @__PURE__ */ R("div", {
|
|
5338
5338
|
className: pl.formRow,
|
|
5339
5339
|
children: e
|
|
5340
|
-
}), hl = (e) => typeof e == "boolean" ? e ? "20px" : "0px" : typeof e == "number" ? `${e}px` : e || "initial", gl = (e) => typeof e == "number" ? `${e}px` : e || "initial", _l =
|
|
5340
|
+
}), hl = (e) => typeof e == "boolean" ? e ? "20px" : "0px" : typeof e == "number" ? `${e}px` : e || "initial", gl = (e) => typeof e == "number" ? `${e}px` : e || "initial", _l = on.div`
|
|
5341
5341
|
display: grid;
|
|
5342
5342
|
gap: ${(e) => hl(e.$gap)};
|
|
5343
5343
|
grid-template-rows: ${(e) => gl(e.$rows)};
|
|
@@ -5405,7 +5405,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5405
5405
|
}, yl = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ R("a", {
|
|
5406
5406
|
className: Z.toggleNarrow,
|
|
5407
5407
|
onClick: t,
|
|
5408
|
-
children: /* @__PURE__ */ R(
|
|
5408
|
+
children: /* @__PURE__ */ R(W, { icon: H.CHEVRON_LEFT })
|
|
5409
5409
|
}) : null, bl = r(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ z("div", {
|
|
5410
5410
|
ref: a,
|
|
5411
5411
|
className: g(Z.header, i ? Z.stickyHeader : ""),
|
|
@@ -5416,7 +5416,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5416
5416
|
}),
|
|
5417
5417
|
e && /* @__PURE__ */ R("div", {
|
|
5418
5418
|
className: Z.headerTitle,
|
|
5419
|
-
children: /* @__PURE__ */ R(
|
|
5419
|
+
children: /* @__PURE__ */ R(Xi, {
|
|
5420
5420
|
top: !0,
|
|
5421
5421
|
marginBottom: 0,
|
|
5422
5422
|
children: e
|
|
@@ -5426,19 +5426,19 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5426
5426
|
className: Z.right,
|
|
5427
5427
|
children: /* @__PURE__ */ R("div", {
|
|
5428
5428
|
className: Z.actions,
|
|
5429
|
-
children: /* @__PURE__ */ R(
|
|
5429
|
+
children: /* @__PURE__ */ R(Oi, { actions: t })
|
|
5430
5430
|
})
|
|
5431
5431
|
})
|
|
5432
5432
|
]
|
|
5433
5433
|
})), xl = ({ label: e }) => e ? /* @__PURE__ */ R("span", {
|
|
5434
5434
|
className: Z.label,
|
|
5435
|
-
children: /* @__PURE__ */ R(
|
|
5435
|
+
children: /* @__PURE__ */ R(gi, {
|
|
5436
5436
|
color: e.color,
|
|
5437
5437
|
title: e.value,
|
|
5438
5438
|
small: e.small
|
|
5439
5439
|
})
|
|
5440
5440
|
}) : null, Sl = ({ name: e, icon: t, testId: n }) => {
|
|
5441
|
-
let r = t && /* @__PURE__ */ R(
|
|
5441
|
+
let r = t && /* @__PURE__ */ R(W, {
|
|
5442
5442
|
icon: t.icon,
|
|
5443
5443
|
color: t.color || "#db2828"
|
|
5444
5444
|
});
|
|
@@ -5447,7 +5447,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5447
5447
|
"data-testid": n,
|
|
5448
5448
|
children: [e, t && t.tooltip && t.tooltip.text ? /* @__PURE__ */ R("span", {
|
|
5449
5449
|
className: Z.iconTooltipMargin,
|
|
5450
|
-
children: /* @__PURE__ */ R(
|
|
5450
|
+
children: /* @__PURE__ */ R(G, {
|
|
5451
5451
|
text: t.tooltip.text,
|
|
5452
5452
|
maxWidth: "350px",
|
|
5453
5453
|
children: r
|
|
@@ -5463,7 +5463,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5463
5463
|
icon: n,
|
|
5464
5464
|
testId: o && `${o}-name`
|
|
5465
5465
|
});
|
|
5466
|
-
return a && (s = /* @__PURE__ */ R(
|
|
5466
|
+
return a && (s = /* @__PURE__ */ R(gi, {
|
|
5467
5467
|
small: !0,
|
|
5468
5468
|
margin: "-2px",
|
|
5469
5469
|
title: "!",
|
|
@@ -5484,10 +5484,10 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5484
5484
|
})
|
|
5485
5485
|
]
|
|
5486
5486
|
});
|
|
5487
|
-
}, wl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ R(
|
|
5487
|
+
}, wl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ R(gi, {
|
|
5488
5488
|
color: "rgba(0,0,0,0.25)",
|
|
5489
5489
|
title: e.metaCount
|
|
5490
|
-
}), Tl = ({ item: e, expanding: t }) => /* @__PURE__ */ R(
|
|
5490
|
+
}), Tl = ({ item: e, expanding: t }) => /* @__PURE__ */ R(Nr, {
|
|
5491
5491
|
expanded: !!t && !!e.active && !!e.content,
|
|
5492
5492
|
children: /* @__PURE__ */ R("div", {
|
|
5493
5493
|
className: Z.itemContent,
|
|
@@ -5498,7 +5498,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5498
5498
|
})
|
|
5499
5499
|
}), El = r(({ item: e, index: t }, n) => {
|
|
5500
5500
|
var r;
|
|
5501
|
-
let i = s(
|
|
5501
|
+
let i = s(U), { actions: a, disabled: o, expanded: c, onClick: l, title: u, name: d, icon: f, testId: p } = e;
|
|
5502
5502
|
return /* @__PURE__ */ R("div", {
|
|
5503
5503
|
ref: (e) => {
|
|
5504
5504
|
n && "current" in n && Array.isArray(n.current) && t !== void 0 && (n.current[t] = e);
|
|
@@ -5514,7 +5514,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5514
5514
|
children: [
|
|
5515
5515
|
typeof c == "boolean" && /* @__PURE__ */ R("div", {
|
|
5516
5516
|
className: g(Z.expandIcon, c && Z.expanded),
|
|
5517
|
-
children: /* @__PURE__ */ R(
|
|
5517
|
+
children: /* @__PURE__ */ R(W, { icon: H.CHEVRON_RIGHT })
|
|
5518
5518
|
}),
|
|
5519
5519
|
/* @__PURE__ */ R(Sl, {
|
|
5520
5520
|
name: d,
|
|
@@ -5524,14 +5524,14 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5524
5524
|
className: Z.right,
|
|
5525
5525
|
children: [/* @__PURE__ */ R(wl, { item: e }), !(o || i) && a && /* @__PURE__ */ R("div", {
|
|
5526
5526
|
className: Z.actions,
|
|
5527
|
-
children: /* @__PURE__ */ R(
|
|
5527
|
+
children: /* @__PURE__ */ R(Oi, { actions: (r = e.actions) == null ? [] : r })
|
|
5528
5528
|
})]
|
|
5529
5529
|
})
|
|
5530
5530
|
]
|
|
5531
5531
|
}) })
|
|
5532
5532
|
});
|
|
5533
5533
|
}), Dl = r(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
|
|
5534
|
-
let o = s(
|
|
5534
|
+
let o = s(U), c = (e, t, s, c, l, u) => {
|
|
5535
5535
|
let d = t.actions && t.actions.find((e) => {
|
|
5536
5536
|
var t;
|
|
5537
5537
|
return e.label && ((t = String(e.label)) == null ? void 0 : t.toLowerCase()) === "edit";
|
|
@@ -5560,11 +5560,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5560
5560
|
className: Z.drag,
|
|
5561
5561
|
...c,
|
|
5562
5562
|
...l,
|
|
5563
|
-
children: /* @__PURE__ */ R(
|
|
5563
|
+
children: /* @__PURE__ */ R(W, { icon: H.DRAG })
|
|
5564
5564
|
}),
|
|
5565
5565
|
t.level && t.level > 0 ? /* @__PURE__ */ R("div", {
|
|
5566
5566
|
className: Z.indentIcon,
|
|
5567
|
-
children: /* @__PURE__ */ R(
|
|
5567
|
+
children: /* @__PURE__ */ R(W, { icon: H.INDENT })
|
|
5568
5568
|
}) : null,
|
|
5569
5569
|
/* @__PURE__ */ R(xl, { label: t.label }),
|
|
5570
5570
|
/* @__PURE__ */ R(Cl, { item: t }),
|
|
@@ -5572,7 +5572,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5572
5572
|
className: Z.right,
|
|
5573
5573
|
children: [/* @__PURE__ */ R(wl, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ R("div", {
|
|
5574
5574
|
className: Z.actions,
|
|
5575
|
-
children: /* @__PURE__ */ R(
|
|
5575
|
+
children: /* @__PURE__ */ R(Oi, { actions: t.actions })
|
|
5576
5576
|
})]
|
|
5577
5577
|
})
|
|
5578
5578
|
]
|
|
@@ -5588,12 +5588,12 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5588
5588
|
item: e,
|
|
5589
5589
|
index: t
|
|
5590
5590
|
}, t) : i ? ((e, t) => {
|
|
5591
|
-
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } =
|
|
5591
|
+
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = zn({
|
|
5592
5592
|
id: e.toString(),
|
|
5593
5593
|
animateLayoutChanges: () => !1
|
|
5594
5594
|
});
|
|
5595
5595
|
return c(e, t, {
|
|
5596
|
-
transform:
|
|
5596
|
+
transform: Vn.Translate.toString(a),
|
|
5597
5597
|
transition: o,
|
|
5598
5598
|
opacity: s ? 0 : 1
|
|
5599
5599
|
}, n, r, i);
|
|
@@ -5609,15 +5609,15 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5609
5609
|
to: Number(o)
|
|
5610
5610
|
});
|
|
5611
5611
|
}, c = d(() => n.items.map((e, t) => t.toString()), [n.items]);
|
|
5612
|
-
return t ? /* @__PURE__ */ z(
|
|
5613
|
-
collisionDetection:
|
|
5612
|
+
return t ? /* @__PURE__ */ z(Gn, {
|
|
5613
|
+
collisionDetection: qn,
|
|
5614
5614
|
onDragStart: o,
|
|
5615
5615
|
onDragEnd: s,
|
|
5616
|
-
children: [/* @__PURE__ */ R(
|
|
5616
|
+
children: [/* @__PURE__ */ R(Rn, {
|
|
5617
5617
|
items: c,
|
|
5618
|
-
strategy:
|
|
5618
|
+
strategy: Bn,
|
|
5619
5619
|
children: e
|
|
5620
|
-
}), !!i &&
|
|
5620
|
+
}), !!i && ln(/* @__PURE__ */ R(Kn, {
|
|
5621
5621
|
dropAnimation: null,
|
|
5622
5622
|
children: /* @__PURE__ */ R("div", {
|
|
5623
5623
|
className: Z.dragOverlay,
|
|
@@ -5630,7 +5630,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5630
5630
|
}), document.body)]
|
|
5631
5631
|
}) : e;
|
|
5632
5632
|
}, kl = ({ items: e, scrollDetails: t, children: n }) => {
|
|
5633
|
-
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u =
|
|
5633
|
+
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u = Jn({
|
|
5634
5634
|
count: e.length,
|
|
5635
5635
|
getScrollElement: () => l.current,
|
|
5636
5636
|
estimateSize: o(() => {
|
|
@@ -5727,8 +5727,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5727
5727
|
content: "_content_477i5_44",
|
|
5728
5728
|
text: "_text_477i5_49",
|
|
5729
5729
|
details: "_details_477i5_53"
|
|
5730
|
-
}, Nl = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s =
|
|
5731
|
-
let l = s ===
|
|
5730
|
+
}, Nl = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = vr.DARK, testId: c = null }) => {
|
|
5731
|
+
let l = s === vr.DARK ? vr.WHITE : vr.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
|
|
5732
5732
|
return /* @__PURE__ */ R("div", {
|
|
5733
5733
|
className: g(Ml.loader, a ? Ml.cover : "", { [Ml.fullViewPortSize]: i }),
|
|
5734
5734
|
style: {
|
|
@@ -5770,7 +5770,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5770
5770
|
let { key: n, label: r, selected: i, testId: a } = e == null ? {} : e;
|
|
5771
5771
|
return /* @__PURE__ */ R("div", {
|
|
5772
5772
|
className: Pl.item,
|
|
5773
|
-
children: /* @__PURE__ */ R(
|
|
5773
|
+
children: /* @__PURE__ */ R(Ur, {
|
|
5774
5774
|
label: r,
|
|
5775
5775
|
noMargin: !0,
|
|
5776
5776
|
checked: i,
|
|
@@ -5818,10 +5818,10 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5818
5818
|
children: "Invert"
|
|
5819
5819
|
})
|
|
5820
5820
|
]
|
|
5821
|
-
}), /* @__PURE__ */ R(
|
|
5821
|
+
}), /* @__PURE__ */ R(Ji, { margin: 0 })] }), e.map((n, r) => {
|
|
5822
5822
|
switch (n.type) {
|
|
5823
5823
|
case Ll.HEADING: return /* @__PURE__ */ R(Il, { label: n.label }, r);
|
|
5824
|
-
case Ll.DIVIDER: return /* @__PURE__ */ R(
|
|
5824
|
+
case Ll.DIVIDER: return /* @__PURE__ */ R(Ji, { margin: 0 }, r);
|
|
5825
5825
|
default: return /* @__PURE__ */ R(Fl, {
|
|
5826
5826
|
option: n,
|
|
5827
5827
|
onChange: (r) => {
|
|
@@ -5834,14 +5834,14 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5834
5834
|
}, r);
|
|
5835
5835
|
}
|
|
5836
5836
|
})]
|
|
5837
|
-
}), zl = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ R(
|
|
5837
|
+
}), zl = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ R(Ei, {
|
|
5838
5838
|
testId: c,
|
|
5839
5839
|
disabled: t,
|
|
5840
5840
|
menu: {
|
|
5841
5841
|
testId: c ? `${c}-menu-layer` : void 0,
|
|
5842
5842
|
small: a,
|
|
5843
5843
|
label: n,
|
|
5844
|
-
trigger:
|
|
5844
|
+
trigger: pr.DROP_DOWN_BUTTON,
|
|
5845
5845
|
possiblePlacements: ["top-start", "bottom-start"],
|
|
5846
5846
|
sections: /* @__PURE__ */ R(Rl, {
|
|
5847
5847
|
testId: c,
|
|
@@ -5873,7 +5873,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5873
5873
|
className: Hl.printHeader,
|
|
5874
5874
|
style: { width: n }
|
|
5875
5875
|
}), Wl = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: c = !1, onClick: l = () => {}, inline: u = !1, mainLabel: d = "", radioButtonsData: f, classForContainer: p = "grouped fields" }) => {
|
|
5876
|
-
let m = s(
|
|
5876
|
+
let m = s(U), h = f !== void 0, { simpleInputs: _, options: v, selectedOptions: y } = h ? {
|
|
5877
5877
|
simpleInputs: !1,
|
|
5878
5878
|
options: f,
|
|
5879
5879
|
selectedOptions: void 0
|
|
@@ -5941,12 +5941,12 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5941
5941
|
className: Gl.richTextToolbarContainer,
|
|
5942
5942
|
children: [/* @__PURE__ */ R("div", {
|
|
5943
5943
|
className: Gl.richTextToolbar,
|
|
5944
|
-
children: c.map((e, n) => /* @__PURE__ */ R(
|
|
5944
|
+
children: c.map((e, n) => /* @__PURE__ */ R(K, {
|
|
5945
5945
|
small: !0,
|
|
5946
5946
|
round: !0,
|
|
5947
5947
|
basic: !0,
|
|
5948
5948
|
icon: e.icon,
|
|
5949
|
-
colored:
|
|
5949
|
+
colored: mr.MUTED,
|
|
5950
5950
|
onClick: e.onClick,
|
|
5951
5951
|
active: e.active,
|
|
5952
5952
|
disabled: t
|
|
@@ -5963,11 +5963,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5963
5963
|
hideScrollbars: "_hideScrollbars_gb097_67",
|
|
5964
5964
|
richTextInput: "_richTextInput_gb097_77"
|
|
5965
5965
|
}, Yl = a(r(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
|
|
5966
|
-
let o = s(
|
|
5966
|
+
let o = s(U), u = r || o, d = nr({
|
|
5967
5967
|
extensions: [
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5968
|
+
rr,
|
|
5969
|
+
ir.configure({ placeholder: e }),
|
|
5970
|
+
ar
|
|
5971
5971
|
],
|
|
5972
5972
|
content: n == null ? "" : n,
|
|
5973
5973
|
contentType: "markdown",
|
|
@@ -5994,7 +5994,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5994
5994
|
editor: d,
|
|
5995
5995
|
disabled: u,
|
|
5996
5996
|
toolbarComponent: i
|
|
5997
|
-
}), /* @__PURE__ */ R(
|
|
5997
|
+
}), /* @__PURE__ */ R(tr, { editor: d })]
|
|
5998
5998
|
});
|
|
5999
5999
|
})), Xl = { row: "_row_n16je_1" }, Zl = ({ 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 }) => {
|
|
6000
6000
|
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__ */ R(e.Fragment, { children: e.cloneElement(t, { spacing: f }) }, n));
|
|
@@ -6034,7 +6034,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6034
6034
|
experimental: "_experimental_1oy1z_155",
|
|
6035
6035
|
active: "_active_1oy1z_159",
|
|
6036
6036
|
icon: "_icon_1oy1z_163"
|
|
6037
|
-
}, $l = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(
|
|
6037
|
+
}, $l = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(G, {
|
|
6038
6038
|
text: t,
|
|
6039
6039
|
enabled: !e,
|
|
6040
6040
|
placement: "right-center",
|
|
@@ -6044,17 +6044,17 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6044
6044
|
display: "block",
|
|
6045
6045
|
children: /* @__PURE__ */ R("span", {
|
|
6046
6046
|
className: Ql.icon,
|
|
6047
|
-
children: /* @__PURE__ */ R(
|
|
6047
|
+
children: /* @__PURE__ */ R(gi, {
|
|
6048
6048
|
small: !0,
|
|
6049
6049
|
title: r ? "!" : void 0,
|
|
6050
6050
|
margin: 4,
|
|
6051
|
-
children: /* @__PURE__ */ R(
|
|
6051
|
+
children: /* @__PURE__ */ R(W, { icon: n })
|
|
6052
6052
|
})
|
|
6053
6053
|
})
|
|
6054
6054
|
}), /* @__PURE__ */ R("span", {
|
|
6055
6055
|
className: Ql.label,
|
|
6056
6056
|
children: t
|
|
6057
|
-
})] }), (e, t) =>
|
|
6057
|
+
})] }), (e, t) => Wn(e, t)), eu = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ R("div", {
|
|
6058
6058
|
className: Ql.list,
|
|
6059
6059
|
children: t.map((t, a) => {
|
|
6060
6060
|
let o = `${n}_${a}`;
|
|
@@ -6090,15 +6090,15 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6090
6090
|
top: r,
|
|
6091
6091
|
background: "var(--color-background-sidebar)",
|
|
6092
6092
|
closedWidth: "var(--size-sidebar)",
|
|
6093
|
-
buttonPosition:
|
|
6093
|
+
buttonPosition: gr.BOTTOM,
|
|
6094
6094
|
buttonAnimate: !0,
|
|
6095
|
-
button: s && /* @__PURE__ */ R(
|
|
6095
|
+
button: s && /* @__PURE__ */ R(K, {
|
|
6096
6096
|
onClick: (e) => {
|
|
6097
6097
|
e.shiftKey && n && n(e), a(!i);
|
|
6098
6098
|
},
|
|
6099
6099
|
colored: !0,
|
|
6100
6100
|
round: !0,
|
|
6101
|
-
icon:
|
|
6101
|
+
icon: H.LEFT
|
|
6102
6102
|
}),
|
|
6103
6103
|
children: /* @__PURE__ */ R("div", {
|
|
6104
6104
|
className: g(Ql.sidebar, i ? "" : Ql.collapsed),
|
|
@@ -6115,10 +6115,10 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6115
6115
|
})
|
|
6116
6116
|
})
|
|
6117
6117
|
});
|
|
6118
|
-
}, (e, t) =>
|
|
6118
|
+
}, (e, t) => Wn(e, t)), ru = {
|
|
6119
6119
|
skeletonContainer: "_skeletonContainer_k2td0_9",
|
|
6120
6120
|
skeleton: "_skeleton_k2td0_9"
|
|
6121
|
-
}, iu = ({ count: e, width: t, height: n }) => /* @__PURE__ */ R(
|
|
6121
|
+
}, iu = ({ count: e, width: t, height: n }) => /* @__PURE__ */ R(or, {
|
|
6122
6122
|
baseColor: "var(--color-skeleton-base)",
|
|
6123
6123
|
highlightColor: "var(--color-skeleton-highlight)",
|
|
6124
6124
|
containerClassName: ru.skeletonContainer,
|
|
@@ -6145,13 +6145,13 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6145
6145
|
className: g(au.item, i ? au.active : "", r ? au.disabled : "", n && !i ? au.hidden : "", o ? au.right : au.left),
|
|
6146
6146
|
onClick: a,
|
|
6147
6147
|
"data-testid": l,
|
|
6148
|
-
children: s ? /* @__PURE__ */ R(
|
|
6148
|
+
children: s ? /* @__PURE__ */ R(gi, {
|
|
6149
6149
|
small: !0,
|
|
6150
6150
|
margin: "-4px",
|
|
6151
6151
|
color: u,
|
|
6152
6152
|
title: "!",
|
|
6153
6153
|
children: e
|
|
6154
|
-
}) : c ? /* @__PURE__ */ R(
|
|
6154
|
+
}) : c ? /* @__PURE__ */ R(gi, {
|
|
6155
6155
|
small: !0,
|
|
6156
6156
|
margin: "-4px",
|
|
6157
6157
|
title: c == null ? void 0 : c.toString(),
|
|
@@ -6161,8 +6161,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6161
6161
|
}, su = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ R("div", {
|
|
6162
6162
|
className: g(n ? au.contentPadding : ""),
|
|
6163
6163
|
children: e.map((e, n) => t === n && e)
|
|
6164
|
-
}) : null, cu = ({ name: e = void 0, options: t = null, children: n = null, value: r = void 0, onChange: i =
|
|
6165
|
-
let p = s(
|
|
6164
|
+
}) : null, cu = ({ name: e = void 0, options: t = null, children: n = null, value: r = void 0, onChange: i = B, padding: a = !1, margin: o = !0, contentPadding: c = !0, onChangeTab: l, activeTabIndex: u = void 0, tabs: d = void 0, testId: f }) => {
|
|
6165
|
+
let p = s(U), m = l !== void 0, h = n ? n.map((e, t) => {
|
|
6166
6166
|
var n;
|
|
6167
6167
|
return {
|
|
6168
6168
|
value: t,
|
|
@@ -6213,7 +6213,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6213
6213
|
target: n,
|
|
6214
6214
|
onClick: i,
|
|
6215
6215
|
"data-testid": r,
|
|
6216
|
-
children: /* @__PURE__ */ R(
|
|
6216
|
+
children: /* @__PURE__ */ R(Ki, {
|
|
6217
6217
|
link: !0,
|
|
6218
6218
|
children: e
|
|
6219
6219
|
})
|
|
@@ -6228,8 +6228,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6228
6228
|
textarea: "_textarea_q0tl0_77",
|
|
6229
6229
|
small: "_small_q0tl0_116",
|
|
6230
6230
|
monospace: "_monospace_q0tl0_155"
|
|
6231
|
-
}, du = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o =
|
|
6232
|
-
let x = s(
|
|
6231
|
+
}, du = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = B, onKeyPress: c = B, onFocus: l = B, onBlur: u = B, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: _, monospace: v = !1, small: y = !1, testId: b }) => {
|
|
6232
|
+
let x = s(U), S = /* @__PURE__ */ R("textarea", {
|
|
6233
6233
|
className: g(uu.textarea, f ? uu.error : "", p ? uu.warning : "", v ? uu.monospace : "", y ? uu.small : ""),
|
|
6234
6234
|
name: e,
|
|
6235
6235
|
value: t,
|
|
@@ -6247,11 +6247,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6247
6247
|
"data-warning": p || null,
|
|
6248
6248
|
"data-testid": b
|
|
6249
6249
|
});
|
|
6250
|
-
return /* @__PURE__ */ R(
|
|
6250
|
+
return /* @__PURE__ */ R(G, {
|
|
6251
6251
|
error: !!f,
|
|
6252
6252
|
warning: !!p,
|
|
6253
6253
|
text: m || f || p,
|
|
6254
|
-
enabled: m &&
|
|
6254
|
+
enabled: m && J(m) || f && J(f) || p && J(p) || !1,
|
|
6255
6255
|
maxWidth: h,
|
|
6256
6256
|
children: S
|
|
6257
6257
|
});
|
|
@@ -6276,7 +6276,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6276
6276
|
className: Q.alert,
|
|
6277
6277
|
children: e
|
|
6278
6278
|
}), pu = ({ icon: e, url: t, onClick: n }) => {
|
|
6279
|
-
let r = /* @__PURE__ */ R(
|
|
6279
|
+
let r = /* @__PURE__ */ R(W, { icon: e });
|
|
6280
6280
|
return t ? /* @__PURE__ */ R("a", {
|
|
6281
6281
|
href: t,
|
|
6282
6282
|
onClick: n,
|
|
@@ -6319,7 +6319,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6319
6319
|
}, hu = /* @__PURE__ */ function(e) {
|
|
6320
6320
|
return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
|
|
6321
6321
|
}({}), gu = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: c = "a" }) => {
|
|
6322
|
-
let l = s(
|
|
6322
|
+
let l = s(U);
|
|
6323
6323
|
return /* @__PURE__ */ z(c, {
|
|
6324
6324
|
className: g(Q.link, i ? Q.active : ""),
|
|
6325
6325
|
href: t || "#",
|
|
@@ -6352,7 +6352,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6352
6352
|
});
|
|
6353
6353
|
case hu.BUTTON: return /* @__PURE__ */ R("div", {
|
|
6354
6354
|
className: g(Q.item, Q.button),
|
|
6355
|
-
children: /* @__PURE__ */ R(
|
|
6355
|
+
children: /* @__PURE__ */ R(K, {
|
|
6356
6356
|
label: e.label,
|
|
6357
6357
|
colored: e.colored,
|
|
6358
6358
|
pill: !0,
|
|
@@ -6364,10 +6364,10 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6364
6364
|
});
|
|
6365
6365
|
case hu.MENU: return /* @__PURE__ */ R("div", {
|
|
6366
6366
|
className: g(Q.item, Q.menu),
|
|
6367
|
-
children: /* @__PURE__ */ R(
|
|
6367
|
+
children: /* @__PURE__ */ R(Ei, {
|
|
6368
6368
|
maxHeight: "100%",
|
|
6369
6369
|
menu: {
|
|
6370
|
-
trigger:
|
|
6370
|
+
trigger: pr.COMPONENT,
|
|
6371
6371
|
fullHeightTrigger: !0,
|
|
6372
6372
|
placement: "bottom-start",
|
|
6373
6373
|
component: /* @__PURE__ */ R(gu, {
|
|
@@ -6417,27 +6417,27 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6417
6417
|
className: yu.popConfirm,
|
|
6418
6418
|
children: [e && /* @__PURE__ */ R("div", {
|
|
6419
6419
|
className: yu.content,
|
|
6420
|
-
children: /* @__PURE__ */ R(
|
|
6420
|
+
children: /* @__PURE__ */ R(Ki, {
|
|
6421
6421
|
small: !0,
|
|
6422
6422
|
children: e
|
|
6423
6423
|
})
|
|
6424
6424
|
}), /* @__PURE__ */ z("div", {
|
|
6425
6425
|
className: yu.buttons,
|
|
6426
|
-
children: [/* @__PURE__ */ R(
|
|
6426
|
+
children: [/* @__PURE__ */ R(K, {
|
|
6427
6427
|
small: !0,
|
|
6428
6428
|
colored: !0,
|
|
6429
6429
|
label: t,
|
|
6430
6430
|
onClick: () => n(o),
|
|
6431
6431
|
disabled: r,
|
|
6432
6432
|
testId: `${s}-ok-button`
|
|
6433
|
-
}), /* @__PURE__ */ R(
|
|
6433
|
+
}), /* @__PURE__ */ R(K, {
|
|
6434
6434
|
small: !0,
|
|
6435
6435
|
label: i,
|
|
6436
6436
|
onClick: () => a(o),
|
|
6437
6437
|
testId: `${s}-cancel-button`
|
|
6438
6438
|
})]
|
|
6439
6439
|
})]
|
|
6440
|
-
}), xu = ({ 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__ */ R(
|
|
6440
|
+
}), xu = ({ 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__ */ R(Ri, {
|
|
6441
6441
|
content: /* @__PURE__ */ R(bu, {
|
|
6442
6442
|
title: i,
|
|
6443
6443
|
okText: s,
|
|
@@ -6488,25 +6488,25 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6488
6488
|
children: [
|
|
6489
6489
|
a && /* @__PURE__ */ R("div", {
|
|
6490
6490
|
className: Su.toggle,
|
|
6491
|
-
children: /* @__PURE__ */ R(
|
|
6491
|
+
children: /* @__PURE__ */ R(K, {
|
|
6492
6492
|
basic: !0,
|
|
6493
|
-
colored: r ? !0 :
|
|
6493
|
+
colored: r ? !0 : mr.MUTED,
|
|
6494
6494
|
small: !0,
|
|
6495
6495
|
round: !0,
|
|
6496
|
-
icon: r ? (s == null ? void 0 : s.collapse) ||
|
|
6496
|
+
icon: r ? (s == null ? void 0 : s.collapse) || H.COLLAPSE : (s == null ? void 0 : s.expand) || H.EXPAND,
|
|
6497
6497
|
onClick: x
|
|
6498
6498
|
})
|
|
6499
6499
|
}),
|
|
6500
6500
|
o && /* @__PURE__ */ R("div", {
|
|
6501
6501
|
className: Z.drag,
|
|
6502
|
-
children: /* @__PURE__ */ R(
|
|
6502
|
+
children: /* @__PURE__ */ R(W, { icon: H.DRAG })
|
|
6503
6503
|
}),
|
|
6504
6504
|
/* @__PURE__ */ R(Cl, { item: u }),
|
|
6505
6505
|
/* @__PURE__ */ z("div", {
|
|
6506
6506
|
className: Z.right,
|
|
6507
6507
|
children: [/* @__PURE__ */ R(wl, { item: u }), !f && h.length > 0 && /* @__PURE__ */ R("div", {
|
|
6508
6508
|
className: Z.actions,
|
|
6509
|
-
children: /* @__PURE__ */ R(
|
|
6509
|
+
children: /* @__PURE__ */ R(Oi, { actions: h })
|
|
6510
6510
|
})]
|
|
6511
6511
|
})
|
|
6512
6512
|
]
|
|
@@ -6577,11 +6577,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6577
6577
|
name: e.name,
|
|
6578
6578
|
actions: e.actions,
|
|
6579
6579
|
stickyHeader: h
|
|
6580
|
-
}), /* @__PURE__ */ R(
|
|
6581
|
-
backend:
|
|
6582
|
-
options:
|
|
6580
|
+
}), /* @__PURE__ */ R(sr, {
|
|
6581
|
+
backend: cr,
|
|
6582
|
+
options: ur(),
|
|
6583
6583
|
context: window,
|
|
6584
|
-
children: /* @__PURE__ */ R(
|
|
6584
|
+
children: /* @__PURE__ */ R(lr, {
|
|
6585
6585
|
ref: b,
|
|
6586
6586
|
tree: k,
|
|
6587
6587
|
sort: !1,
|
|
@@ -6664,7 +6664,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6664
6664
|
className: Eu.drag,
|
|
6665
6665
|
onClick: (e) => e.stopPropagation(),
|
|
6666
6666
|
ref: i,
|
|
6667
|
-
children: /* @__PURE__ */ R(
|
|
6667
|
+
children: /* @__PURE__ */ R(W, { icon: H.DRAG })
|
|
6668
6668
|
})
|
|
6669
6669
|
}),
|
|
6670
6670
|
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ R("td", { className: Eu.folderCell }, t)),
|
|
@@ -6674,13 +6674,13 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6674
6674
|
className: Eu.folder,
|
|
6675
6675
|
onClick: () => m(v),
|
|
6676
6676
|
onMouseDown: (e) => e.stopPropagation(),
|
|
6677
|
-
children: /* @__PURE__ */ R(
|
|
6677
|
+
children: /* @__PURE__ */ R(K, {
|
|
6678
6678
|
basic: !0,
|
|
6679
|
-
colored: c ? !0 :
|
|
6679
|
+
colored: c ? !0 : mr.MUTED,
|
|
6680
6680
|
disabled: !a,
|
|
6681
6681
|
small: !0,
|
|
6682
6682
|
round: !0,
|
|
6683
|
-
icon: a && c ? (s == null ? void 0 : s.collapse) ||
|
|
6683
|
+
icon: a && c ? (s == null ? void 0 : s.collapse) || H.COLLAPSE : (s == null ? void 0 : s.expand) || H.EXPAND
|
|
6684
6684
|
})
|
|
6685
6685
|
})
|
|
6686
6686
|
}),
|
|
@@ -6779,30 +6779,30 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6779
6779
|
let n = t == null ? void 0 : t[e];
|
|
6780
6780
|
if (!n) {
|
|
6781
6781
|
var r;
|
|
6782
|
-
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r =
|
|
6782
|
+
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Nn(e)) == null ? "" : r;
|
|
6783
6783
|
}
|
|
6784
6784
|
return n;
|
|
6785
6785
|
}, Nu = /* @__PURE__ */ function(e) {
|
|
6786
6786
|
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6787
6787
|
}({}), Pu = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), Fu = (e) => {
|
|
6788
6788
|
if (!e) return !1;
|
|
6789
|
-
let t =
|
|
6790
|
-
return !
|
|
6789
|
+
let t = _n(e);
|
|
6790
|
+
return !dn.includes(t);
|
|
6791
6791
|
}, Iu = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
6792
6792
|
var r;
|
|
6793
|
-
let i =
|
|
6794
|
-
if (!i || i.length === 0 || !((r =
|
|
6795
|
-
let a =
|
|
6793
|
+
let i = un[t];
|
|
6794
|
+
if (!i || i.length === 0 || !((r = Pn(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
6795
|
+
let a = _n(String(e));
|
|
6796
6796
|
return !(a && !i.includes(a));
|
|
6797
6797
|
}, Lu = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
6798
6798
|
var o;
|
|
6799
|
-
let s =
|
|
6799
|
+
let s = Cn(e) ? yn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
6800
6800
|
if (i || c) return {
|
|
6801
6801
|
value: s,
|
|
6802
6802
|
error: null
|
|
6803
6803
|
};
|
|
6804
|
-
let l = r || (
|
|
6805
|
-
if (!((o =
|
|
6804
|
+
let l = r || (Cn(e) ? _n(e) : Nn(t));
|
|
6805
|
+
if (!((o = Pn(s)) != null && o.valid)) return {
|
|
6806
6806
|
value: void 0,
|
|
6807
6807
|
error: "Invalid number format"
|
|
6808
6808
|
};
|
|
@@ -6819,16 +6819,16 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6819
6819
|
error: "Value is invalid for conversion"
|
|
6820
6820
|
};
|
|
6821
6821
|
try {
|
|
6822
|
-
let e =
|
|
6822
|
+
let e = In(s, l);
|
|
6823
6823
|
return Iu({
|
|
6824
6824
|
value: e,
|
|
6825
6825
|
toUnit: n,
|
|
6826
6826
|
unitkey: t
|
|
6827
6827
|
}) ? {
|
|
6828
|
-
value:
|
|
6828
|
+
value: yn(gs(a ? hn(e, n) : mn(e, n))),
|
|
6829
6829
|
error: null
|
|
6830
6830
|
} : {
|
|
6831
|
-
value:
|
|
6831
|
+
value: yn(e),
|
|
6832
6832
|
error: null
|
|
6833
6833
|
};
|
|
6834
6834
|
} catch {
|
|
@@ -6838,12 +6838,12 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6838
6838
|
};
|
|
6839
6839
|
}
|
|
6840
6840
|
}, Ru = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
6841
|
-
let a =
|
|
6841
|
+
let a = yn(e), o = Pu(a);
|
|
6842
6842
|
return !Iu({
|
|
6843
6843
|
value: e,
|
|
6844
6844
|
unitkey: n,
|
|
6845
6845
|
toUnit: t
|
|
6846
|
-
}) || Fu(e) || o ? { value: a } :
|
|
6846
|
+
}) || Fu(e) || o ? { value: a } : Cn(e) ? Lu({
|
|
6847
6847
|
value: e,
|
|
6848
6848
|
unitkey: n,
|
|
6849
6849
|
toUnit: t,
|
|
@@ -6851,21 +6851,21 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6851
6851
|
doNotConvertValue: i,
|
|
6852
6852
|
exactPrecision: !0
|
|
6853
6853
|
}) : { value: e };
|
|
6854
|
-
}, zu = (e) => Zt(e) && !Wt(e) && !Jt(e) ? Ut(e, "fieldName", "") : typeof e == "string" ? e : "", Bu = (e = "") =>
|
|
6855
|
-
let n =
|
|
6854
|
+
}, zu = (e) => Zt(e) && !Wt(e) && !Jt(e) ? Ut(e, "fieldName", "") : typeof e == "string" ? e : "", Bu = (e = "") => dn == null ? void 0 : dn.includes(e), Vu = (e, t) => {
|
|
6855
|
+
let n = _n(e || "");
|
|
6856
6856
|
return Bu(t) && Bu(n);
|
|
6857
6857
|
}, Hu = n(null), Uu = () => s(Hu), Wu = !1, Gu = (e) => {
|
|
6858
6858
|
Wu || (Wu = !0, Hu = e);
|
|
6859
|
-
}, Ku = (e) =>
|
|
6859
|
+
}, Ku = (e) => xn(e) ? e : Tn(e), qu = {
|
|
6860
6860
|
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
6861
6861
|
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
6862
|
-
}, Ju = ({ 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 =
|
|
6862
|
+
}, Ju = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: l, unitkey: u = "", initUnit: f, noConversion: p = !1, onChange: h = B, onClick: _ = B, onFocus: v = B, onSwitchUnit: y = B, unitTemplate: b, testId: x, warning: S = null, predefinedOptions: C, initialPredefinedOption: w = !1, shouldLinkAutomaticly: T = !0, selectedPredefinedOptionKey: E, validationCallback: D = () => ({
|
|
6863
6863
|
name: "",
|
|
6864
6864
|
error: null
|
|
6865
6865
|
}), 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 }) => {
|
|
6866
6866
|
let te = Uu(), ne = Au();
|
|
6867
6867
|
typeof l == "number" && (l = `${l}`);
|
|
6868
|
-
let [re = "", ie = ""] = l === void 0 ? [] :
|
|
6868
|
+
let [re = "", ie = ""] = l === void 0 ? [] : kn(l), ae = d(() => Mu(u, b || (te == null ? void 0 : te.unitTemplate)), [
|
|
6869
6869
|
u,
|
|
6870
6870
|
b,
|
|
6871
6871
|
te == null ? void 0 : te.unitTemplate
|
|
@@ -6881,16 +6881,16 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6881
6881
|
} : {
|
|
6882
6882
|
value: le,
|
|
6883
6883
|
unit: se
|
|
6884
|
-
}), de = k || (I == null ? void 0 : I.value) === void 0,
|
|
6884
|
+
}), de = k || (I == null ? void 0 : I.value) === void 0, fe = !!(O || n), pe = C && C.find((e) => {
|
|
6885
6885
|
if (!(e != null && e.value)) return;
|
|
6886
6886
|
if (E) return E === e.valueKey;
|
|
6887
|
-
let t =
|
|
6887
|
+
let t = Cn(e.value) ? _n(e.value) : "", { value: n = l } = Lu({
|
|
6888
6888
|
value: String(l),
|
|
6889
6889
|
unitkey: u,
|
|
6890
6890
|
toUnit: t
|
|
6891
6891
|
});
|
|
6892
|
-
return
|
|
6893
|
-
}), ge = () => {
|
|
6892
|
+
return In(n, t) === e.value;
|
|
6893
|
+
}), me = !!(C && T && pe), he = ju(me), [ge, _e] = m(w || T && pe ? Nu.PREDEFINED : Nu.CUSTOM), ve = () => {
|
|
6894
6894
|
var e;
|
|
6895
6895
|
let t = (e = l) == null ? "" : e, n = I.unit;
|
|
6896
6896
|
if (!Iu({
|
|
@@ -6898,28 +6898,28 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6898
6898
|
unitkey: u,
|
|
6899
6899
|
toUnit: n
|
|
6900
6900
|
})) {
|
|
6901
|
-
let e =
|
|
6901
|
+
let e = gn(u);
|
|
6902
6902
|
return e == null ? void 0 : e.map((e) => ["", e == null ? void 0 : e.unit]);
|
|
6903
6903
|
} else if (u) try {
|
|
6904
|
-
let e =
|
|
6905
|
-
return
|
|
6904
|
+
let e = fn(t, u);
|
|
6905
|
+
return yn(t) === "" ? e.map((e) => ["", e[1]]) : e;
|
|
6906
6906
|
} catch {
|
|
6907
6907
|
return null;
|
|
6908
6908
|
}
|
|
6909
|
-
},
|
|
6910
|
-
let n = zu(e), r = t.target, { value: i, selectionStart: a } = r, o =
|
|
6909
|
+
}, ye = (t) => {
|
|
6910
|
+
let n = zu(e), r = t.target, { value: i, selectionStart: a } = r, o = In(i, (I == null ? void 0 : I.unit) || "");
|
|
6911
6911
|
h({ target: {
|
|
6912
|
-
value: A ?
|
|
6912
|
+
value: A ? In(mn(o, ie), ie) : o,
|
|
6913
6913
|
name: n
|
|
6914
6914
|
} });
|
|
6915
|
-
let [s, c] =
|
|
6915
|
+
let [s, c] = kn(o);
|
|
6916
6916
|
ue({
|
|
6917
6917
|
value: s,
|
|
6918
6918
|
unit: c
|
|
6919
6919
|
}), ne(() => {
|
|
6920
6920
|
r.selectionStart = a, r.selectionEnd = a;
|
|
6921
6921
|
});
|
|
6922
|
-
},
|
|
6922
|
+
}, be = (e, t) => {
|
|
6923
6923
|
t === I.unit || isNaN(Number(e)) || (ue({
|
|
6924
6924
|
value: e,
|
|
6925
6925
|
unit: t
|
|
@@ -6937,7 +6937,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6937
6937
|
doNotConvertValue: p
|
|
6938
6938
|
});
|
|
6939
6939
|
e = n, t = se;
|
|
6940
|
-
} else if (
|
|
6940
|
+
} else if (In(I.value, I.unit) !== l) {
|
|
6941
6941
|
let { value: n } = Ru({
|
|
6942
6942
|
value: l,
|
|
6943
6943
|
toUnit: I.unit,
|
|
@@ -6950,16 +6950,16 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6950
6950
|
e !== void 0 && ue({
|
|
6951
6951
|
value: e,
|
|
6952
6952
|
unit: t
|
|
6953
|
-
}),
|
|
6953
|
+
}), me && !he ? _e(Nu.PREDEFINED) : !me && he && _e(Nu.CUSTOM);
|
|
6954
6954
|
}
|
|
6955
6955
|
}, [
|
|
6956
6956
|
se,
|
|
6957
6957
|
l,
|
|
6958
6958
|
i,
|
|
6959
|
-
|
|
6959
|
+
me
|
|
6960
6960
|
]);
|
|
6961
|
-
let
|
|
6962
|
-
let r = t != null && t.value ? t.value : "", [i = "", a = ""] =
|
|
6961
|
+
let xe = ve(), Se = wn(I.unit) || I.unit || "", Ce = p || !xe || xe && xe.length === 1, we = zu(e), Te, Ee = (t) => {
|
|
6962
|
+
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = Cn(r) ? kn(r) : [r], o = Fn(r);
|
|
6963
6963
|
if (Iu({
|
|
6964
6964
|
value: r,
|
|
6965
6965
|
unitkey: u,
|
|
@@ -6972,45 +6972,45 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6972
6972
|
defaultFromUnit: a,
|
|
6973
6973
|
doNotConvertValue: p
|
|
6974
6974
|
});
|
|
6975
|
-
o = In(
|
|
6975
|
+
o = Fn(In(e, ae));
|
|
6976
6976
|
}
|
|
6977
6977
|
return {
|
|
6978
|
-
type:
|
|
6978
|
+
type: ri.OPTION,
|
|
6979
6979
|
inline: !0,
|
|
6980
6980
|
onClick: () => {
|
|
6981
|
-
|
|
6981
|
+
Pn(i).valid && !n && (_e(Nu.PREDEFINED), h({ target: {
|
|
6982
6982
|
value: r,
|
|
6983
6983
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
6984
6984
|
predefinedSelected: !0,
|
|
6985
6985
|
predefinedOption: t
|
|
6986
6986
|
} }));
|
|
6987
6987
|
},
|
|
6988
|
-
label: /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(
|
|
6988
|
+
label: /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Ki, { children: t.label }), /* @__PURE__ */ R(_a, {
|
|
6989
6989
|
width: "20px",
|
|
6990
6990
|
height: "0"
|
|
6991
6991
|
})] }),
|
|
6992
6992
|
description: o,
|
|
6993
|
-
selected:
|
|
6993
|
+
selected: pe === t && ge === Nu.PREDEFINED
|
|
6994
6994
|
};
|
|
6995
6995
|
};
|
|
6996
|
-
if (
|
|
6997
|
-
type:
|
|
6996
|
+
if (Te = [{
|
|
6997
|
+
type: ri.OPTION,
|
|
6998
6998
|
inline: !0,
|
|
6999
6999
|
onClick: () => {
|
|
7000
|
-
|
|
7001
|
-
value:
|
|
7000
|
+
ge !== Nu.CUSTOM && !n && (_e(Nu.CUSTOM), h({ target: {
|
|
7001
|
+
value: In(I.value, I.unit),
|
|
7002
7002
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
7003
7003
|
} }));
|
|
7004
7004
|
},
|
|
7005
7005
|
label: "Custom",
|
|
7006
|
-
selected:
|
|
7006
|
+
selected: ge === Nu.CUSTOM
|
|
7007
7007
|
}], C != null && C.length) {
|
|
7008
|
-
let e = C.map(
|
|
7009
|
-
|
|
7008
|
+
let e = C.map(Ee);
|
|
7009
|
+
Te = [...Te, ...e];
|
|
7010
7010
|
}
|
|
7011
|
-
let
|
|
7012
|
-
if (
|
|
7013
|
-
let t =
|
|
7011
|
+
let De = (e) => {
|
|
7012
|
+
if (Cn(e)) {
|
|
7013
|
+
let t = _n(e), { value: n } = Ru({
|
|
7014
7014
|
value: e,
|
|
7015
7015
|
toUnit: I.unit,
|
|
7016
7016
|
unitkey: u,
|
|
@@ -7020,14 +7020,14 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7020
7020
|
return n;
|
|
7021
7021
|
}
|
|
7022
7022
|
return e;
|
|
7023
|
-
},
|
|
7023
|
+
}, Oe = !C && (!F || F === V.FIRST) ? V.FIRST : V.MIDDLE, ke = !F || F === V.LAST ? V.LAST : V.MIDDLE;
|
|
7024
7024
|
return /* @__PURE__ */ R("div", {
|
|
7025
|
-
className:
|
|
7025
|
+
className: ge === Nu.PREDEFINED ? g(qu.predefinedMenuActive) : "",
|
|
7026
7026
|
children: /* @__PURE__ */ z(la, {
|
|
7027
7027
|
small: o,
|
|
7028
7028
|
width: s,
|
|
7029
7029
|
children: [
|
|
7030
|
-
C && /* @__PURE__ */ R(
|
|
7030
|
+
C && /* @__PURE__ */ R(Ei, {
|
|
7031
7031
|
maxHeight: 380,
|
|
7032
7032
|
groupOrder: "first",
|
|
7033
7033
|
testId: x && `${x}-predefined-menu`,
|
|
@@ -7035,67 +7035,67 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7035
7035
|
menu: {
|
|
7036
7036
|
colored: !0,
|
|
7037
7037
|
trigger: "Component",
|
|
7038
|
-
component: /* @__PURE__ */ R(
|
|
7038
|
+
component: /* @__PURE__ */ R(K, {
|
|
7039
7039
|
groupOrder: "first",
|
|
7040
|
-
active:
|
|
7041
|
-
icon:
|
|
7040
|
+
active: ge === Nu.PREDEFINED,
|
|
7041
|
+
icon: ge === Nu.PREDEFINED ? "link" : "unlink",
|
|
7042
7042
|
small: o
|
|
7043
7043
|
}),
|
|
7044
7044
|
small: o,
|
|
7045
|
-
sections:
|
|
7045
|
+
sections: Te
|
|
7046
7046
|
},
|
|
7047
|
-
tooltip:
|
|
7047
|
+
tooltip: ge === Nu.PREDEFINED ? pe == null ? void 0 : pe.label : ""
|
|
7048
7048
|
}),
|
|
7049
7049
|
/* @__PURE__ */ R("div", {
|
|
7050
7050
|
className: qu.inputWrapper,
|
|
7051
7051
|
children: /* @__PURE__ */ R(ys, {
|
|
7052
|
-
name:
|
|
7052
|
+
name: we,
|
|
7053
7053
|
testId: x,
|
|
7054
7054
|
disabled: n,
|
|
7055
|
-
placeholder:
|
|
7055
|
+
placeholder: De(t),
|
|
7056
7056
|
value: I.value,
|
|
7057
|
-
onChange:
|
|
7057
|
+
onChange: ye,
|
|
7058
7058
|
onFocus: v,
|
|
7059
7059
|
error: i === null ? void 0 : i,
|
|
7060
7060
|
warning: S === null ? void 0 : S,
|
|
7061
7061
|
left: a,
|
|
7062
7062
|
allowEmpty: de,
|
|
7063
|
-
validationCallback: (e, t) => D(
|
|
7063
|
+
validationCallback: (e, t) => D(we, t),
|
|
7064
7064
|
enableCosmeticRounding: j,
|
|
7065
7065
|
enableDisplayRounding: M,
|
|
7066
7066
|
roundDisplayValue: N,
|
|
7067
|
-
groupOrder:
|
|
7068
|
-
disableInternalErrorValidationMessages:
|
|
7067
|
+
groupOrder: Oe,
|
|
7068
|
+
disableInternalErrorValidationMessages: fe,
|
|
7069
7069
|
small: o,
|
|
7070
7070
|
selectOnFocus: P,
|
|
7071
7071
|
tooltip: ee
|
|
7072
|
-
},
|
|
7072
|
+
}, we)
|
|
7073
7073
|
}),
|
|
7074
|
-
|
|
7075
|
-
groupOrder:
|
|
7074
|
+
Se && (Ce || !oe ? /* @__PURE__ */ R(rs, {
|
|
7075
|
+
groupOrder: ke,
|
|
7076
7076
|
small: o,
|
|
7077
|
-
children:
|
|
7078
|
-
}) : /* @__PURE__ */ R(
|
|
7079
|
-
groupOrder:
|
|
7077
|
+
children: Se
|
|
7078
|
+
}) : /* @__PURE__ */ R(Ei, {
|
|
7079
|
+
groupOrder: ke,
|
|
7080
7080
|
maxHeight: 380,
|
|
7081
7081
|
disabled: r,
|
|
7082
7082
|
testId: x && `${x}-menu`,
|
|
7083
7083
|
tabIndex: -1,
|
|
7084
7084
|
menu: {
|
|
7085
|
-
label:
|
|
7085
|
+
label: Se,
|
|
7086
7086
|
trigger: "DropDownButton",
|
|
7087
7087
|
small: o,
|
|
7088
|
-
sections:
|
|
7089
|
-
let r = n || t || "", i =
|
|
7088
|
+
sections: xe.map(([e = "", t = "", n]) => {
|
|
7089
|
+
let r = n || t || "", i = Sn(e) ? e : "";
|
|
7090
7090
|
return {
|
|
7091
7091
|
type: "Option",
|
|
7092
7092
|
label: j ? Ku(i) : i,
|
|
7093
7093
|
inline: !0,
|
|
7094
7094
|
onClick: (n) => {
|
|
7095
|
-
n.stopPropagation(),
|
|
7095
|
+
n.stopPropagation(), be(e, t);
|
|
7096
7096
|
},
|
|
7097
7097
|
description: r,
|
|
7098
|
-
selected: r ===
|
|
7098
|
+
selected: r === Se,
|
|
7099
7099
|
testId: `${x}-unit-${r}`
|
|
7100
7100
|
};
|
|
7101
7101
|
})
|
|
@@ -7211,8 +7211,8 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7211
7211
|
error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
|
|
7212
7212
|
disabled: c || !u,
|
|
7213
7213
|
searchable: !1,
|
|
7214
|
-
options: (a =
|
|
7215
|
-
label:
|
|
7214
|
+
options: (a = vn(s)) == null ? void 0 : a.map((e) => ({
|
|
7215
|
+
label: wn(e),
|
|
7216
7216
|
value: e
|
|
7217
7217
|
})),
|
|
7218
7218
|
native: e.native,
|
|
@@ -7293,7 +7293,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7293
7293
|
label: d == null ? void 0 : d.custom,
|
|
7294
7294
|
value: void 0
|
|
7295
7295
|
}] : []
|
|
7296
|
-
], m = a !== void 0 && o !== void 0 && !qt(a, o), h = () =>
|
|
7296
|
+
], m = a !== void 0 && o !== void 0 && !qt(a, o), h = () => Pn(o).valid ? `${d == null ? void 0 : d.companySetting}: ${Cn(o) ? Fn(o) : o}` : d == null ? void 0 : d.companySettingDifferent;
|
|
7297
7297
|
return /* @__PURE__ */ z("div", {
|
|
7298
7298
|
className: ad.settingField,
|
|
7299
7299
|
"data-testid": u,
|
|
@@ -7305,9 +7305,9 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7305
7305
|
children: /* @__PURE__ */ z(fl, {
|
|
7306
7306
|
gap: "8px",
|
|
7307
7307
|
alignItems: "center",
|
|
7308
|
-
children: [m && /* @__PURE__ */ R(
|
|
7308
|
+
children: [m && /* @__PURE__ */ R(Hr, {
|
|
7309
7309
|
text: h(),
|
|
7310
|
-
icon:
|
|
7310
|
+
icon: H.INFO
|
|
7311
7311
|
}), /* @__PURE__ */ R(Zo, {
|
|
7312
7312
|
small: !0,
|
|
7313
7313
|
searchable: !1,
|
|
@@ -7322,7 +7322,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7322
7322
|
})]
|
|
7323
7323
|
})
|
|
7324
7324
|
})]
|
|
7325
|
-
}), t && /* @__PURE__ */ R(
|
|
7325
|
+
}), t && /* @__PURE__ */ R(Ki, {
|
|
7326
7326
|
muted: !0,
|
|
7327
7327
|
children: f(t)
|
|
7328
7328
|
})]
|
|
@@ -7347,18 +7347,18 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7347
7347
|
let s = ({ target: { value: e } }) => {
|
|
7348
7348
|
a(e);
|
|
7349
7349
|
}, { added: l, removed: u } = sd(e, t), d = l + u > 3500;
|
|
7350
|
-
return /* @__PURE__ */ R(L, { children: /* @__PURE__ */ R(
|
|
7350
|
+
return /* @__PURE__ */ R(L, { children: /* @__PURE__ */ R(Ii, {
|
|
7351
7351
|
bordered: !0,
|
|
7352
7352
|
heading: /* @__PURE__ */ z(fl, {
|
|
7353
7353
|
gap: !0,
|
|
7354
|
-
children: [/* @__PURE__ */ R(
|
|
7354
|
+
children: [/* @__PURE__ */ R(Xi, { children: /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ z(Ki, {
|
|
7355
7355
|
success: !0,
|
|
7356
7356
|
children: [
|
|
7357
7357
|
"+",
|
|
7358
7358
|
l,
|
|
7359
7359
|
" "
|
|
7360
7360
|
]
|
|
7361
|
-
}), /* @__PURE__ */ z(
|
|
7361
|
+
}), /* @__PURE__ */ z(Ki, {
|
|
7362
7362
|
error: !0,
|
|
7363
7363
|
children: ["-", u]
|
|
7364
7364
|
})] }) }), !d && /* @__PURE__ */ R(Wl, {
|
|
@@ -7372,15 +7372,15 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7372
7372
|
padding: !1,
|
|
7373
7373
|
children: d ? /* @__PURE__ */ R("div", {
|
|
7374
7374
|
style: { padding: "5px" },
|
|
7375
|
-
children: /* @__PURE__ */ R(
|
|
7375
|
+
children: /* @__PURE__ */ R(Ki, {
|
|
7376
7376
|
muted: !0,
|
|
7377
7377
|
children: r == null ? void 0 : r.changesTooLarge
|
|
7378
7378
|
})
|
|
7379
|
-
}) : /* @__PURE__ */ R(
|
|
7379
|
+
}) : /* @__PURE__ */ R(dr, {
|
|
7380
7380
|
oldValue: e,
|
|
7381
7381
|
newValue: t,
|
|
7382
7382
|
splitView: i === cd,
|
|
7383
|
-
compareMethod:
|
|
7383
|
+
compareMethod: fr.WORDS
|
|
7384
7384
|
})
|
|
7385
7385
|
}) });
|
|
7386
7386
|
};
|
|
@@ -8733,7 +8733,7 @@ var nf = ((e = {}) => tf({
|
|
|
8733
8733
|
}
|
|
8734
8734
|
return "";
|
|
8735
8735
|
}, cf = (e) => {
|
|
8736
|
-
let t = (e) =>
|
|
8736
|
+
let t = (e) => Cn(e) ? Fn(e) : String(e);
|
|
8737
8737
|
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);
|
|
8738
8738
|
}, lf = (e) => {
|
|
8739
8739
|
switch (e.length) {
|
|
@@ -8804,7 +8804,7 @@ var nf = ((e = {}) => tf({
|
|
|
8804
8804
|
}, hf = (e, t = e.length - 1) => {
|
|
8805
8805
|
if (t >= e.length) return "Value";
|
|
8806
8806
|
let n = e[t];
|
|
8807
|
-
return !n ||
|
|
8807
|
+
return !n || bn(n) ? hf(e, t - 1) : pf(n);
|
|
8808
8808
|
}, gf = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
8809
8809
|
let o = mf(r), s = mf(i), c = a ? ` in ${a}` : "";
|
|
8810
8810
|
switch (t) {
|
|
@@ -8855,7 +8855,7 @@ var nf = ((e = {}) => tf({
|
|
|
8855
8855
|
return /* @__PURE__ */ R(Ca, {
|
|
8856
8856
|
visible: r,
|
|
8857
8857
|
centered: !0,
|
|
8858
|
-
children: /* @__PURE__ */ R(
|
|
8858
|
+
children: /* @__PURE__ */ R($i, { dialog: {
|
|
8859
8859
|
scroll: !0,
|
|
8860
8860
|
heading: "Comparison view",
|
|
8861
8861
|
content: /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(cu, {
|
|
@@ -8871,7 +8871,7 @@ var nf = ((e = {}) => tf({
|
|
|
8871
8871
|
oldJson: u,
|
|
8872
8872
|
newJson: d
|
|
8873
8873
|
})] }),
|
|
8874
|
-
footer: /* @__PURE__ */ R(
|
|
8874
|
+
footer: /* @__PURE__ */ R(K, {
|
|
8875
8875
|
label: "Cancel",
|
|
8876
8876
|
onClick: a
|
|
8877
8877
|
}),
|
|
@@ -8944,11 +8944,11 @@ var nf = ((e = {}) => tf({
|
|
|
8944
8944
|
type: "Static"
|
|
8945
8945
|
}
|
|
8946
8946
|
] }));
|
|
8947
|
-
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(
|
|
8947
|
+
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Ii, {
|
|
8948
8948
|
heading: /* @__PURE__ */ z(fl, {
|
|
8949
8949
|
gap: !0,
|
|
8950
8950
|
wrap: !0,
|
|
8951
|
-
children: [/* @__PURE__ */ R(
|
|
8951
|
+
children: [/* @__PURE__ */ R(Xi, { children: "CHANGES" }), s == null ? void 0 : s.map((e) => {
|
|
8952
8952
|
var t;
|
|
8953
8953
|
return /* @__PURE__ */ R(zc, {
|
|
8954
8954
|
small: (t = e.small) == null ? !0 : t,
|
|
@@ -8962,8 +8962,8 @@ var nf = ((e = {}) => tf({
|
|
|
8962
8962
|
padding: !1,
|
|
8963
8963
|
children: r ? /* @__PURE__ */ R(Nl, {
|
|
8964
8964
|
height: "100px",
|
|
8965
|
-
theme:
|
|
8966
|
-
children: /* @__PURE__ */ R(
|
|
8965
|
+
theme: vr.WHITE,
|
|
8966
|
+
children: /* @__PURE__ */ R(Xr, { dark: !0 })
|
|
8967
8967
|
}) : /* @__PURE__ */ R(qs, { table: {
|
|
8968
8968
|
headers: _,
|
|
8969
8969
|
rows: v,
|
|
@@ -9022,4 +9022,4 @@ var nf = ((e = {}) => tf({
|
|
|
9022
9022
|
});
|
|
9023
9023
|
};
|
|
9024
9024
|
//#endregion
|
|
9025
|
-
export {
|
|
9025
|
+
export { Ir as Accordion, qr as AccordionWithDefaultToggle, Oi as Actions, hr as Align, xf as AuditLog, gi as Badge, Mi as Breadcrumb, Ai as BreadcrumbLinkType, K as Button, Pi as ButtonGroup, gr as ButtonPosition, Zr as ButtonType, Ii as Card, Ur as CheckBox, Ar as Chevron, Nr as Collapse, mr as Color, Bi as ColorInput, Ui as Column, $i as Dialog, ud as DiffViewer, U as DisabledContext, Ji as Divider, oa as Drawer, hu as ElementType, ic as Empty, dl as Field, nl as FileButton, ga as FileInput, fl as Flex, ml as FormRow, vl as Grid, V as GroupOrder, Xi as Heading, Hr as HelpIcon, W as Icon, H as IconType, da as Input, la as InputGroup, rs as InputGroupAddon, pa as InputReaderMethods, yr as InputType, il as Label, jl as List, bl as ListHeading, El as ListSubheading, Nl as Loader, Ei as Menu, ii as MenuCarat, ri as MenuType, Ua as Message, La as MessageType, Ca as Modal, Ya as NativeSelect, ys as NumberInput, zl as OptionDropdown, Vl as Page, is as Pagination, xu as PopConfirm, Ri as Popover, ya as Portal, Ul as PrintHeader, Ea as ProgressBar, Wl as RadioButton, Yl as RichTextInput, Zl as Row, Zo as Select, od as SettingField, nu as SideBar, iu as Skeleton, Ds as Slider, ja as SmartUploadModal, _a as Spacer, Xr as Spinner, qs as Table, tl as TableImportExport, cu as Tabs, Ki as Text, du as TextArea, lu as TextLink, _r as TextTransform, vr as Theme, Qn as Toaster, zc as Toggle, G as Tooltip, vu as TopBar, Tu as Tree, ku as TreeTable, pr as TriggerType, Ju as UnitInput, id as UnitTable, Sf as UsageTracker, Ic as dismissToast, Gu as initializeContext, wf as initializeGuiLibrary, ma as readFile, Fc as toast, Xa as useFocus, va as useKeyboardEvent, $a as useWindowWidth };
|