@oliasoft-open-source/react-ui-library 10.0.0-beta-50 → 10.0.0-beta-51
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 +858 -848
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
1
|
import e, { Children as t, Fragment as n, cloneElement as r, createContext as i, createElement as a, forwardRef as o, isValidElement as s, memo as c, useCallback as l, useContext as u, useEffect as d, useId as f, useImperativeHandle as p, useLayoutEffect as m, useMemo as h, useReducer as g, useRef as _, useState as v, useTransition as y } from "react";
|
|
2
2
|
import b from "classnames";
|
|
3
3
|
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
4
|
-
import { TbAlertTriangle as w, TbArrowDown as T, TbArrowLeft as E, TbArrowRight as D, TbArrowUp as O, TbArrowsDiagonal as k, TbArrowsMaximize as A, TbArrowsMinimize as j, TbArrowsMove as M, TbArrowsSplit as N, TbAt as P, TbBell as F, TbBold as I, TbBolt as L, TbBook2 as R, TbBuildingSkyscraper as z, TbCamera as B, TbChartBar as
|
|
5
|
-
import { CSSTransition as
|
|
6
|
-
import { CheckboxButton as
|
|
7
|
-
import { FloatingArrow as
|
|
8
|
-
import { clamp as
|
|
9
|
-
import { Header as
|
|
10
|
-
import { ColorArea as
|
|
11
|
-
import { Breadcrumb as
|
|
12
|
-
import { colord as
|
|
13
|
-
import
|
|
14
|
-
import { parseColor as
|
|
15
|
-
import { Dialog as
|
|
16
|
-
import { Heading as
|
|
17
|
-
import { Resizable as
|
|
18
|
-
import { ALT_UNITS as
|
|
19
|
-
import { ListBox as
|
|
20
|
-
import { ListLayout as
|
|
21
|
-
import { SortableContext as
|
|
22
|
-
import { CSS as
|
|
23
|
-
import * as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { Label as
|
|
27
|
-
import { createPortal as
|
|
28
|
-
import { DndContext as
|
|
29
|
-
import { useVirtualizer as
|
|
30
|
-
import
|
|
31
|
-
import { SimplifyAP as
|
|
32
|
-
import { isNil as
|
|
33
|
-
import { Slide as
|
|
34
|
-
import { SwitchButton as
|
|
35
|
-
import { EditorContent as
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import { Markdown as
|
|
39
|
-
import { Mention as
|
|
40
|
-
import
|
|
4
|
+
import { TbAlertTriangle as w, TbArrowDown as T, TbArrowLeft as E, TbArrowRight as D, TbArrowUp as O, TbArrowsDiagonal as k, TbArrowsMaximize as A, TbArrowsMinimize as j, TbArrowsMove as M, TbArrowsSplit as N, TbAt as P, TbBell as F, TbBold as I, TbBolt as L, TbBook2 as R, TbBuildingSkyscraper as z, TbCamera as B, TbChartBar as ee, TbChartLine as te, TbChartPie2 as ne, TbCheck as V, TbChevronDown as re, TbChevronLeft as ie, TbChevronRight as ae, TbChevronUp as oe, TbChevronsLeft as se, TbChevronsRight as ce, TbCircle as le, TbCircleCheck as ue, TbCircleX as de, TbClipboard as fe, TbClock as pe, TbCode as me, TbCopy as he, TbCornerDownRight as ge, TbDeviceFloppy as _e, TbDeviceLaptop as ve, TbDotsVertical as ye, TbDownload as be, TbDroplet as xe, TbExclamationMark as Se, TbExternalLink as Ce, TbEye as we, TbEyeOff as Te, TbFile as Ee, TbFilter as De, TbFilterOff as Oe, TbFocusCentered as ke, TbFolder as Ae, TbFolderSearch as je, TbGauge as Me, TbGitFork as Ne, TbGripVertical as Pe, TbHelp as Fe, TbInfoCircle as Ie, TbItalic as Le, TbKey as Re, TbLayoutColumns as ze, TbLayoutRows as Be, TbLibraryMinus as Ve, TbLibraryPlus as He, TbLink as Ue, TbLinkOff as We, TbList as Ge, TbListNumbers as Ke, TbLoader2 as qe, TbLock as Je, TbLockOpen as Ye, TbMapPin as Xe, TbMessageCircle as Ze, TbMinus as Qe, TbMoon as $e, TbMovie as et, TbNote as tt, TbPencil as nt, TbPlayerPause as rt, TbPlayerPlay as it, TbPlayerSkipBack as at, TbPlayerSkipForward as ot, TbPlayerStop as st, TbPlayerTrackNext as ct, TbPlayerTrackPrev as lt, TbPlus as ut, TbQuestionMark as dt, TbRefresh as ft, TbReload as pt, TbRotate as mt, TbRowInsertBottom as ht, TbRowInsertTop as gt, TbRuler3 as _t, TbScale as vt, TbSearch as yt, TbServer as bt, TbSettings as xt, TbSortAscending as St, TbSortDescending as Ct, TbSquarePlus as wt, TbStar as Tt, TbSun as Et, TbTable as Dt, TbTarget as Ot, TbTrash as kt, TbUpload as At, TbUser as jt, TbUsers as Mt, TbX as Nt } from "react-icons/tb";
|
|
5
|
+
import { CSSTransition as Pt } from "react-transition-group";
|
|
6
|
+
import { CheckboxButton as Ft, CheckboxField as It } from "react-aria-components/Checkbox";
|
|
7
|
+
import { FloatingArrow as Lt, FloatingNode as Rt, FloatingPortal as zt, FloatingTree as Bt, arrow as Vt, autoUpdate as Ht, flip as Ut, offset as Wt, shift as Gt, size as Kt, useClientPoint as qt, useDismiss as Jt, useFloating as Yt, useFloatingNodeId as Xt, useFloatingParentNodeId as Zt, useHover as Qt, useInteractions as $t } from "@floating-ui/react";
|
|
8
|
+
import { clamp as en, cloneDeep as tn, cloneDeepWith as nn, debounce as rn, every as an, get as on, isArray as sn, isBoolean as cn, isEmpty as ln, isEqual as un, isFinite as dn, isFunction as fn, isNil as pn, isNumber as mn, isObject as hn, isPlainObject as gn, isString as _n, keys as vn, noop as yn, sortBy as bn, toLower as xn, toNumber as Sn, upperFirst as Cn, values as wn } from "es-toolkit/compat";
|
|
9
|
+
import { Header as Tn, Menu as En, MenuItem as Dn, MenuTrigger as On, Separator as kn, SubmenuTrigger as An } from "react-aria-components/Menu";
|
|
10
|
+
import { ColorArea as jn, ColorPicker as Mn, ColorSlider as Nn, ColorSwatch as Pn, ColorSwatchPicker as Fn, ColorSwatchPickerItem as In, ColorThumb as Ln, DialogTrigger as Rn, Focusable as zn, OverlayArrow as Bn, Popover as Vn, Pressable as Hn, RouterProvider as Un, SliderTrack as Wn, useLocale as Gn } from "react-aria-components";
|
|
11
|
+
import { Breadcrumb as Kn, Breadcrumbs as qn, Link as Jn } from "react-aria-components/Breadcrumbs";
|
|
12
|
+
import { colord as Yn, extend as Xn } from "colord";
|
|
13
|
+
import Zn from "colord/plugins/lch";
|
|
14
|
+
import { parseColor as Qn } from "react-aria-components/ColorPicker";
|
|
15
|
+
import { Dialog as $n, Modal as er, ModalOverlay as tr } from "react-aria-components/Modal";
|
|
16
|
+
import { Heading as nr } from "react-aria-components/Heading";
|
|
17
|
+
import { Resizable as rr } from "react-resizable";
|
|
18
|
+
import { ALT_UNITS as ir, KNOWN_UNITS as ar, altUnitsList as or, cleanNumStr as sr, convertAndGetValue as cr, convertSamePrecision as lr, getAltUnitsListByQuantity as ur, getUnit as dr, getUnitsForQuantity as fr, getValue as pr, isNumeric as mr, isScientificStringNum as hr, isValidNum as gr, isValueWithUnit as _r, label as vr, roundByMagnitude as yr, roundByMagnitudeToFixed as br, roundCosmetic as xr, roundToFixed as Sr, split as Cr, stripLeadingZeros as wr, toNum as Tr, toString as Er, unitFromQuantity as Dr, validateNumber as Or, withPrettyUnitLabel as kr, withUnit as Ar } from "@oliasoft-open-source/units";
|
|
19
|
+
import { ListBox as jr, ListBoxItem as Mr } from "react-aria-components/ListBox";
|
|
20
|
+
import { ListLayout as Nr, Virtualizer as Pr } from "react-aria-components/Virtualizer";
|
|
21
|
+
import { SortableContext as Fr, useSortable as Ir, verticalListSortingStrategy as Lr } from "@dnd-kit/sortable";
|
|
22
|
+
import { CSS as Rr } from "@dnd-kit/utilities";
|
|
23
|
+
import * as zr from "@radix-ui/react-slider";
|
|
24
|
+
import Br from "memoize-one";
|
|
25
|
+
import Vr from "react-fast-compare";
|
|
26
|
+
import { Label as Hr, RadioButton as Ur, RadioField as Wr, RadioGroup as Gr, RadioGroupStateContext as Kr } from "react-aria-components/RadioGroup";
|
|
27
|
+
import { createPortal as qr } from "react-dom";
|
|
28
|
+
import { DndContext as Jr, DragOverlay as Yr, closestCenter as Xr } from "@dnd-kit/core";
|
|
29
|
+
import { useVirtualizer as Zr } from "@tanstack/react-virtual";
|
|
30
|
+
import Qr from "papaparse";
|
|
31
|
+
import { SimplifyAP as $r } from "simplify-ts";
|
|
32
|
+
import { isNil as ei, maxBy as ti, range as ni, uniq as ri } from "es-toolkit";
|
|
33
|
+
import { Slide as ii, ToastContainer as ai, toast as oi } from "react-toastify";
|
|
34
|
+
import { SwitchButton as si, SwitchField as ci } from "react-aria-components/Switch";
|
|
35
|
+
import { EditorContent as li, useEditor as ui } from "@tiptap/react";
|
|
36
|
+
import di from "@tiptap/starter-kit";
|
|
37
|
+
import fi from "@tiptap/extension-placeholder";
|
|
38
|
+
import { Markdown as pi } from "@tiptap/markdown";
|
|
39
|
+
import { Mention as mi } from "@tiptap/extension-mention";
|
|
40
|
+
import hi from "react-loading-skeleton";
|
|
41
41
|
import "react-loading-skeleton/dist/skeleton.css";
|
|
42
|
-
import { SelectionIndicator as
|
|
43
|
-
import { DndProvider as
|
|
44
|
-
import { MultiBackend as
|
|
45
|
-
import
|
|
46
|
-
import * as
|
|
42
|
+
import { SelectionIndicator as gi, Tab as _i, TabList as vi, Tabs as yi } from "react-aria-components/Tabs";
|
|
43
|
+
import { DndProvider as bi } from "react-dnd";
|
|
44
|
+
import { MultiBackend as xi, Tree as Si, getBackendOptions as Ci } from "@minoru/react-dnd-treeview";
|
|
45
|
+
import wi, { DiffMethod as Ti } from "react-diff-viewer-continued";
|
|
46
|
+
import * as Ei from "@sentry/react";
|
|
47
47
|
//#region src/typings/common-types.ts
|
|
48
|
-
var
|
|
48
|
+
var Di = /* @__PURE__ */ function(e) {
|
|
49
49
|
return e.TEXT = "Text", e.BUTTON = "Button", e.DROP_DOWN_BUTTON = "DropDownButton", e.COMPONENT = "Component", e;
|
|
50
|
-
}({}),
|
|
50
|
+
}({}), H = /* @__PURE__ */ function(e) {
|
|
51
51
|
return e.FIRST = "first", e.MIDDLE = "middle", e.LAST = "last", e;
|
|
52
|
-
}({}), Di = /* @__PURE__ */ function(e) {
|
|
53
|
-
return e.DANGER = "danger", e.RED = "red", e.WHITE = "white", e.SUCCESS = "success", e.GREEN = "green", e.MUTED = "muted", e;
|
|
54
52
|
}({}), Oi = /* @__PURE__ */ function(e) {
|
|
55
|
-
return e.
|
|
53
|
+
return e.DANGER = "danger", e.RED = "red", e.WHITE = "white", e.SUCCESS = "success", e.GREEN = "green", e.MUTED = "muted", e;
|
|
56
54
|
}({}), ki = /* @__PURE__ */ function(e) {
|
|
55
|
+
return e.LEFT = "left", e.RIGHT = "right", e.CENTER = "center", e;
|
|
56
|
+
}({}), Ai = /* @__PURE__ */ function(e) {
|
|
57
57
|
return e.TOP = "top", e.BOTTOM = "bottom", e;
|
|
58
|
-
}({}),
|
|
58
|
+
}({}), U = /* @__PURE__ */ function(e) {
|
|
59
59
|
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;
|
|
60
|
-
}({}), Ai = /* @__PURE__ */ function(e) {
|
|
61
|
-
return e.UPPERCASE = "uppercase", e.LOWERCASE = "lowercase", e.CAPITALIZE = "capitalize", e.NONE = "none", e;
|
|
62
60
|
}({}), ji = /* @__PURE__ */ function(e) {
|
|
63
|
-
return e.
|
|
61
|
+
return e.UPPERCASE = "uppercase", e.LOWERCASE = "lowercase", e.CAPITALIZE = "capitalize", e.NONE = "none", e;
|
|
64
62
|
}({}), Mi = /* @__PURE__ */ function(e) {
|
|
63
|
+
return e.DARK = "dark", e.WHITE = "white", e.LIGHT = "light", e.INHERIT = "inherit", e;
|
|
64
|
+
}({}), Ni = /* @__PURE__ */ function(e) {
|
|
65
65
|
return e.TEXT = "text", e.RADIO = "radio", e.CHECKBOX = "checkbox", e;
|
|
66
|
-
}({}),
|
|
66
|
+
}({}), Pi = {
|
|
67
67
|
chevron: "_chevron_dd6mn_1",
|
|
68
68
|
expanded: "_expanded_dd6mn_9"
|
|
69
|
-
},
|
|
69
|
+
}, W = e.createContext(!1), Fi = {
|
|
70
70
|
wrapper: "_wrapper_18w09_1",
|
|
71
71
|
customSvg: "_customSvg_18w09_8",
|
|
72
72
|
customPng: "_customPng_18w09_14",
|
|
73
73
|
clickable: "_clickable_18w09_19"
|
|
74
|
-
},
|
|
74
|
+
}, Ii = ({ src: e, size: t }) => {
|
|
75
75
|
let n = t == null ? "1em" : t, r = {
|
|
76
76
|
width: n,
|
|
77
77
|
height: n,
|
|
78
78
|
mask: `url("${e}") no-repeat center / contain`
|
|
79
79
|
};
|
|
80
80
|
return /* @__PURE__ */ S("span", {
|
|
81
|
-
className:
|
|
81
|
+
className: Fi.customSvg,
|
|
82
82
|
style: r
|
|
83
83
|
});
|
|
84
|
-
},
|
|
84
|
+
}, Li = "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", Ri = "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", zi = "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", Bi = "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", Vi = "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", Hi = "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", Ui = "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", Wi = ({ icon: e }) => {
|
|
85
85
|
switch (e) {
|
|
86
86
|
case "add":
|
|
87
|
-
case "plus": return /* @__PURE__ */ S(
|
|
88
|
-
case "add above": return /* @__PURE__ */ S(
|
|
89
|
-
case "add below": return /* @__PURE__ */ S(
|
|
87
|
+
case "plus": return /* @__PURE__ */ S(ut, {});
|
|
88
|
+
case "add above": return /* @__PURE__ */ S(gt, {});
|
|
89
|
+
case "add below": return /* @__PURE__ */ S(ht, {});
|
|
90
90
|
case "arrow down":
|
|
91
91
|
case "down": return /* @__PURE__ */ S(T, {});
|
|
92
92
|
case "arrow left":
|
|
@@ -102,142 +102,142 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
102
102
|
case "camera": return /* @__PURE__ */ S(B, {});
|
|
103
103
|
case "close":
|
|
104
104
|
case "clear":
|
|
105
|
-
case "times": return /* @__PURE__ */ S(
|
|
105
|
+
case "times": return /* @__PURE__ */ S(Nt, {});
|
|
106
106
|
case "chart":
|
|
107
|
-
case "chart line": return /* @__PURE__ */ S(
|
|
108
|
-
case "chart bar": return /* @__PURE__ */ S(
|
|
109
|
-
case "chart pie": return /* @__PURE__ */ S(
|
|
110
|
-
case "chat": return /* @__PURE__ */ S(
|
|
107
|
+
case "chart line": return /* @__PURE__ */ S(te, {});
|
|
108
|
+
case "chart bar": return /* @__PURE__ */ S(ee, {});
|
|
109
|
+
case "chart pie": return /* @__PURE__ */ S(ne, {});
|
|
110
|
+
case "chat": return /* @__PURE__ */ S(Ze, {});
|
|
111
111
|
case "check":
|
|
112
|
-
case "checkmark": return /* @__PURE__ */ S(
|
|
113
|
-
case "chevron up": return /* @__PURE__ */ S(
|
|
114
|
-
case "chevron down": return /* @__PURE__ */ S(
|
|
115
|
-
case "chevron left": return /* @__PURE__ */ S(
|
|
116
|
-
case "chevron right": return /* @__PURE__ */ S(
|
|
117
|
-
case "chevron double left": return /* @__PURE__ */ S(
|
|
118
|
-
case "chevron double right": return /* @__PURE__ */ S(
|
|
119
|
-
case "clock": return /* @__PURE__ */ S(
|
|
112
|
+
case "checkmark": return /* @__PURE__ */ S(V, {});
|
|
113
|
+
case "chevron up": return /* @__PURE__ */ S(oe, {});
|
|
114
|
+
case "chevron down": return /* @__PURE__ */ S(re, {});
|
|
115
|
+
case "chevron left": return /* @__PURE__ */ S(ie, {});
|
|
116
|
+
case "chevron right": return /* @__PURE__ */ S(ae, {});
|
|
117
|
+
case "chevron double left": return /* @__PURE__ */ S(se, {});
|
|
118
|
+
case "chevron double right": return /* @__PURE__ */ S(ce, {});
|
|
119
|
+
case "clock": return /* @__PURE__ */ S(pe, {});
|
|
120
120
|
case "clone":
|
|
121
121
|
case "copy":
|
|
122
|
-
case "duplicate": return /* @__PURE__ */ S(
|
|
123
|
-
case "code": return /* @__PURE__ */ S(
|
|
124
|
-
case "collapse": return /* @__PURE__ */ S(
|
|
125
|
-
case "collapse all": return /* @__PURE__ */ S(
|
|
122
|
+
case "duplicate": return /* @__PURE__ */ S(he, {});
|
|
123
|
+
case "code": return /* @__PURE__ */ S(me, {});
|
|
124
|
+
case "collapse": return /* @__PURE__ */ S(Ii, { src: Li });
|
|
125
|
+
case "collapse all": return /* @__PURE__ */ S(Ve, {});
|
|
126
126
|
case "company": return /* @__PURE__ */ S(z, {});
|
|
127
|
-
case "compare": return /* @__PURE__ */ S(
|
|
127
|
+
case "compare": return /* @__PURE__ */ S(vt, {});
|
|
128
128
|
case "delete":
|
|
129
|
-
case "trash": return /* @__PURE__ */ S(
|
|
130
|
-
case "depth": return /* @__PURE__ */ S(
|
|
129
|
+
case "trash": return /* @__PURE__ */ S(kt, {});
|
|
130
|
+
case "depth": return /* @__PURE__ */ S(_t, { style: { transform: "rotate(-90deg)" } });
|
|
131
131
|
case "download":
|
|
132
|
-
case "import": return /* @__PURE__ */ S(
|
|
133
|
-
case "drag": return /* @__PURE__ */ S(
|
|
132
|
+
case "import": return /* @__PURE__ */ S(be, {});
|
|
133
|
+
case "drag": return /* @__PURE__ */ S(Pe, {});
|
|
134
134
|
case "edit":
|
|
135
135
|
case "pencil":
|
|
136
|
-
case "rename": return /* @__PURE__ */ S(
|
|
136
|
+
case "rename": return /* @__PURE__ */ S(nt, {});
|
|
137
137
|
case "electricity": return /* @__PURE__ */ S(L, {});
|
|
138
|
-
case "error": return /* @__PURE__ */ S(
|
|
139
|
-
case "exclamation": return /* @__PURE__ */ S(
|
|
140
|
-
case "expand": return /* @__PURE__ */ S(
|
|
141
|
-
case "expand all": return /* @__PURE__ */ S(
|
|
142
|
-
case "external": return /* @__PURE__ */ S(
|
|
143
|
-
case "fast forward": return /* @__PURE__ */ S(
|
|
144
|
-
case "fast backward": return /* @__PURE__ */ S(
|
|
145
|
-
case "file": return /* @__PURE__ */ S(
|
|
146
|
-
case "filter": return /* @__PURE__ */ S(
|
|
147
|
-
case "focus": return /* @__PURE__ */ S(
|
|
148
|
-
case "folder": return /* @__PURE__ */ S(
|
|
149
|
-
case "folder search": return /* @__PURE__ */ S(
|
|
150
|
-
case "fork": return /* @__PURE__ */ S(
|
|
151
|
-
case "gauge": return /* @__PURE__ */ S(
|
|
152
|
-
case "help": return /* @__PURE__ */ S(
|
|
153
|
-
case "hide": return /* @__PURE__ */ S(
|
|
154
|
-
case "indent": return /* @__PURE__ */ S(
|
|
155
|
-
case "info": return /* @__PURE__ */ S(
|
|
156
|
-
case "italic": return /* @__PURE__ */ S(
|
|
157
|
-
case "key": return /* @__PURE__ */ S(
|
|
158
|
-
case "laptop": return /* @__PURE__ */ S(
|
|
138
|
+
case "error": return /* @__PURE__ */ S(de, {});
|
|
139
|
+
case "exclamation": return /* @__PURE__ */ S(Se, {});
|
|
140
|
+
case "expand": return /* @__PURE__ */ S(wt, {});
|
|
141
|
+
case "expand all": return /* @__PURE__ */ S(He, {});
|
|
142
|
+
case "external": return /* @__PURE__ */ S(Ce, {});
|
|
143
|
+
case "fast forward": return /* @__PURE__ */ S(ct, {});
|
|
144
|
+
case "fast backward": return /* @__PURE__ */ S(lt, {});
|
|
145
|
+
case "file": return /* @__PURE__ */ S(Ee, {});
|
|
146
|
+
case "filter": return /* @__PURE__ */ S(De, {});
|
|
147
|
+
case "focus": return /* @__PURE__ */ S(ke, {});
|
|
148
|
+
case "folder": return /* @__PURE__ */ S(Ae, {});
|
|
149
|
+
case "folder search": return /* @__PURE__ */ S(je, {});
|
|
150
|
+
case "fork": return /* @__PURE__ */ S(Ne, {});
|
|
151
|
+
case "gauge": return /* @__PURE__ */ S(Me, {});
|
|
152
|
+
case "help": return /* @__PURE__ */ S(Fe, {});
|
|
153
|
+
case "hide": return /* @__PURE__ */ S(Te, {});
|
|
154
|
+
case "indent": return /* @__PURE__ */ S(ge, {});
|
|
155
|
+
case "info": return /* @__PURE__ */ S(Ie, {});
|
|
156
|
+
case "italic": return /* @__PURE__ */ S(Le, {});
|
|
157
|
+
case "key": return /* @__PURE__ */ S(Re, {});
|
|
158
|
+
case "laptop": return /* @__PURE__ */ S(ve, {});
|
|
159
159
|
case "layout columns":
|
|
160
|
-
case "columns": return /* @__PURE__ */ S(
|
|
160
|
+
case "columns": return /* @__PURE__ */ S(ze, {});
|
|
161
161
|
case "layout grid":
|
|
162
|
-
case "grid": return /* @__PURE__ */ S(
|
|
162
|
+
case "grid": return /* @__PURE__ */ S(Ii, { src: Ui });
|
|
163
163
|
case "layout rows":
|
|
164
|
-
case "rows": return /* @__PURE__ */ S(
|
|
164
|
+
case "rows": return /* @__PURE__ */ S(Be, {});
|
|
165
165
|
case "layout single":
|
|
166
|
-
case "square": return /* @__PURE__ */ S(
|
|
167
|
-
case "layout 3 split top": return /* @__PURE__ */ S(
|
|
168
|
-
case "layout 3 split bottom": return /* @__PURE__ */ S(
|
|
169
|
-
case "layout 3 split left": return /* @__PURE__ */ S(
|
|
170
|
-
case "layout 3 split right": return /* @__PURE__ */ S(
|
|
171
|
-
case "link": return /* @__PURE__ */ S(
|
|
166
|
+
case "square": return /* @__PURE__ */ S(Ii, { src: Ri });
|
|
167
|
+
case "layout 3 split top": return /* @__PURE__ */ S(Ii, { src: zi });
|
|
168
|
+
case "layout 3 split bottom": return /* @__PURE__ */ S(Ii, { src: Bi });
|
|
169
|
+
case "layout 3 split left": return /* @__PURE__ */ S(Ii, { src: Vi });
|
|
170
|
+
case "layout 3 split right": return /* @__PURE__ */ S(Ii, { src: Hi });
|
|
171
|
+
case "link": return /* @__PURE__ */ S(Ue, {});
|
|
172
172
|
case "list":
|
|
173
173
|
case "legend":
|
|
174
|
-
case "ul": return /* @__PURE__ */ S(
|
|
174
|
+
case "ul": return /* @__PURE__ */ S(Ge, {});
|
|
175
175
|
case "list numbers":
|
|
176
|
-
case "ol": return /* @__PURE__ */ S(
|
|
177
|
-
case "location": return /* @__PURE__ */ S(
|
|
178
|
-
case "lock": return /* @__PURE__ */ S(
|
|
176
|
+
case "ol": return /* @__PURE__ */ S(Ke, {});
|
|
177
|
+
case "location": return /* @__PURE__ */ S(Xe, {});
|
|
178
|
+
case "lock": return /* @__PURE__ */ S(Je, {});
|
|
179
179
|
case "maximize": return /* @__PURE__ */ S(A, {});
|
|
180
|
-
case "menu": return /* @__PURE__ */ S(
|
|
180
|
+
case "menu": return /* @__PURE__ */ S(ye, {});
|
|
181
181
|
case "minimize": return /* @__PURE__ */ S(j, {});
|
|
182
|
-
case "minus": return /* @__PURE__ */ S(
|
|
183
|
-
case "moon": return /* @__PURE__ */ S(
|
|
182
|
+
case "minus": return /* @__PURE__ */ S(Qe, {});
|
|
183
|
+
case "moon": return /* @__PURE__ */ S($e, {});
|
|
184
184
|
case "move": return /* @__PURE__ */ S(M, {});
|
|
185
|
-
case "note": return /* @__PURE__ */ S(
|
|
185
|
+
case "note": return /* @__PURE__ */ S(tt, {});
|
|
186
186
|
case "notification":
|
|
187
187
|
case "bell": return /* @__PURE__ */ S(F, {});
|
|
188
|
-
case "paste": return /* @__PURE__ */ S(
|
|
189
|
-
case "pause": return /* @__PURE__ */ S(
|
|
190
|
-
case "play": return /* @__PURE__ */ S(
|
|
191
|
-
case "question": return /* @__PURE__ */ S(
|
|
188
|
+
case "paste": return /* @__PURE__ */ S(fe, {});
|
|
189
|
+
case "pause": return /* @__PURE__ */ S(rt, {});
|
|
190
|
+
case "play": return /* @__PURE__ */ S(it, {});
|
|
191
|
+
case "question": return /* @__PURE__ */ S(dt, {});
|
|
192
192
|
case "redo":
|
|
193
193
|
case "rotate":
|
|
194
|
-
case "rotate right": return /* @__PURE__ */ S(
|
|
194
|
+
case "rotate right": return /* @__PURE__ */ S(pt, {});
|
|
195
195
|
case "refresh":
|
|
196
|
-
case "sync": return /* @__PURE__ */ S(
|
|
197
|
-
case "save": return /* @__PURE__ */ S(
|
|
196
|
+
case "sync": return /* @__PURE__ */ S(ft, {});
|
|
197
|
+
case "save": return /* @__PURE__ */ S(_e, {});
|
|
198
198
|
case "scale": return /* @__PURE__ */ S(k, {});
|
|
199
|
-
case "search": return /* @__PURE__ */ S(
|
|
200
|
-
case "server": return /* @__PURE__ */ S(
|
|
201
|
-
case "settings": return /* @__PURE__ */ S(
|
|
199
|
+
case "search": return /* @__PURE__ */ S(yt, {});
|
|
200
|
+
case "server": return /* @__PURE__ */ S(bt, {});
|
|
201
|
+
case "settings": return /* @__PURE__ */ S(xt, {});
|
|
202
202
|
case "show":
|
|
203
|
-
case "eye": return /* @__PURE__ */ S(
|
|
203
|
+
case "eye": return /* @__PURE__ */ S(we, {});
|
|
204
204
|
case "sort":
|
|
205
205
|
case "sort descending":
|
|
206
206
|
case "sort down":
|
|
207
|
-
case "sort amount down": return /* @__PURE__ */ S(
|
|
207
|
+
case "sort amount down": return /* @__PURE__ */ S(Ct, {});
|
|
208
208
|
case "sort ascending":
|
|
209
209
|
case "sort up":
|
|
210
|
-
case "sort amount up": return /* @__PURE__ */ S(
|
|
211
|
-
case "spinner": return /* @__PURE__ */ S(
|
|
210
|
+
case "sort amount up": return /* @__PURE__ */ S(St, {});
|
|
211
|
+
case "spinner": return /* @__PURE__ */ S(qe, {});
|
|
212
212
|
case "split": return /* @__PURE__ */ S(N, {});
|
|
213
|
-
case "star": return /* @__PURE__ */ S(
|
|
214
|
-
case "step backward": return /* @__PURE__ */ S(
|
|
215
|
-
case "step forward": return /* @__PURE__ */ S(
|
|
216
|
-
case "stop": return /* @__PURE__ */ S(
|
|
217
|
-
case "success": return /* @__PURE__ */ S(
|
|
218
|
-
case "sun": return /* @__PURE__ */ S(
|
|
219
|
-
case "table": return /* @__PURE__ */ S(
|
|
220
|
-
case "target": return /* @__PURE__ */ S(
|
|
213
|
+
case "star": return /* @__PURE__ */ S(Tt, {});
|
|
214
|
+
case "step backward": return /* @__PURE__ */ S(at, {});
|
|
215
|
+
case "step forward": return /* @__PURE__ */ S(ot, {});
|
|
216
|
+
case "stop": return /* @__PURE__ */ S(st, {});
|
|
217
|
+
case "success": return /* @__PURE__ */ S(ue, {});
|
|
218
|
+
case "sun": return /* @__PURE__ */ S(Et, {});
|
|
219
|
+
case "table": return /* @__PURE__ */ S(Dt, {});
|
|
220
|
+
case "target": return /* @__PURE__ */ S(Ot, {});
|
|
221
221
|
case "undo":
|
|
222
|
-
case "rotate left": return /* @__PURE__ */ S(
|
|
223
|
-
case "unfilter": return /* @__PURE__ */ S(
|
|
224
|
-
case "unlink": return /* @__PURE__ */ S(
|
|
225
|
-
case "unlock": return /* @__PURE__ */ S(
|
|
222
|
+
case "rotate left": return /* @__PURE__ */ S(mt, {});
|
|
223
|
+
case "unfilter": return /* @__PURE__ */ S(Oe, {});
|
|
224
|
+
case "unlink": return /* @__PURE__ */ S(We, {});
|
|
225
|
+
case "unlock": return /* @__PURE__ */ S(Ye, {});
|
|
226
226
|
case "upload":
|
|
227
|
-
case "export": return /* @__PURE__ */ S(
|
|
228
|
-
case "user": return /* @__PURE__ */ S(
|
|
227
|
+
case "export": return /* @__PURE__ */ S(At, {});
|
|
228
|
+
case "user": return /* @__PURE__ */ S(jt, {});
|
|
229
229
|
case "users":
|
|
230
|
-
case "group": return /* @__PURE__ */ S(
|
|
231
|
-
case "video": return /* @__PURE__ */ S(
|
|
230
|
+
case "group": return /* @__PURE__ */ S(Mt, {});
|
|
231
|
+
case "video": return /* @__PURE__ */ S(et, {});
|
|
232
232
|
case "warning":
|
|
233
233
|
case "alert": return /* @__PURE__ */ S(w, {});
|
|
234
234
|
case "water":
|
|
235
|
-
case "droplet": return /* @__PURE__ */ S(
|
|
235
|
+
case "droplet": return /* @__PURE__ */ S(xe, {});
|
|
236
236
|
case "": return null;
|
|
237
|
-
default: return /* @__PURE__ */ S(
|
|
237
|
+
default: return /* @__PURE__ */ S(le, {});
|
|
238
238
|
}
|
|
239
|
-
},
|
|
240
|
-
let o = u(
|
|
239
|
+
}, G = ({ icon: e, onClick: t, clickable: n = !1, color: r, size: i, testId: a }) => {
|
|
240
|
+
let o = u(W), c = {
|
|
241
241
|
color: r,
|
|
242
242
|
fill: r,
|
|
243
243
|
fontSize: i || "inherit",
|
|
@@ -245,23 +245,23 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
245
245
|
height: i || "auto"
|
|
246
246
|
};
|
|
247
247
|
return /* @__PURE__ */ S("div", {
|
|
248
|
-
className: b(
|
|
248
|
+
className: b(Fi.wrapper, (n || t) && !o ? Fi.clickable : ""),
|
|
249
249
|
style: c,
|
|
250
250
|
onClick: (e) => t && !o ? t(e) : void 0,
|
|
251
251
|
"data-testid": a,
|
|
252
|
-
children: s(e) ? e : typeof e == "string" && (e.includes(".svg") || e.includes("image/svg")) ? /* @__PURE__ */ S(
|
|
252
|
+
children: s(e) ? e : typeof e == "string" && (e.includes(".svg") || e.includes("image/svg")) ? /* @__PURE__ */ S(Ii, {
|
|
253
253
|
src: e,
|
|
254
254
|
size: i
|
|
255
255
|
}) : typeof e == "string" && (e.includes(".png") || e.includes("image/png")) ? /* @__PURE__ */ S("img", {
|
|
256
256
|
alt: "icon",
|
|
257
|
-
className:
|
|
257
|
+
className: Fi.customPng,
|
|
258
258
|
src: e
|
|
259
|
-
}) : typeof e == "string" ? /* @__PURE__ */ S(
|
|
259
|
+
}) : typeof e == "string" ? /* @__PURE__ */ S(Wi, { icon: e }) : null
|
|
260
260
|
});
|
|
261
|
-
},
|
|
262
|
-
className: b(
|
|
263
|
-
children: /* @__PURE__ */ S(
|
|
264
|
-
}),
|
|
261
|
+
}, Gi = ({ expanded: e }) => /* @__PURE__ */ S("span", {
|
|
262
|
+
className: b(Pi.chevron, e ? Pi.expanded : ""),
|
|
263
|
+
children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_RIGHT })
|
|
264
|
+
}), Ki = {
|
|
265
265
|
accordion: "_accordion_3yvkt_1",
|
|
266
266
|
accordionHeader: "_accordionHeader_3yvkt_5",
|
|
267
267
|
heading: "_heading_3yvkt_9",
|
|
@@ -272,58 +272,58 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
272
272
|
padding: "_padding_3yvkt_44",
|
|
273
273
|
flush: "_flush_3yvkt_47",
|
|
274
274
|
squareBottom: "_squareBottom_3yvkt_56"
|
|
275
|
-
},
|
|
275
|
+
}, qi = {
|
|
276
276
|
collapse: "_collapse_1m1n2_5",
|
|
277
277
|
enter: "_enter_1m1n2_9",
|
|
278
278
|
enterActive: "_enterActive_1m1n2_12",
|
|
279
279
|
exit: "_exit_1m1n2_15",
|
|
280
280
|
exitActive: "_exitActive_1m1n2_18",
|
|
281
281
|
collapseInner: "_collapseInner_1m1n2_21"
|
|
282
|
-
},
|
|
282
|
+
}, Ji = ({ children: e, expanded: t }) => {
|
|
283
283
|
let n = _(null);
|
|
284
|
-
return /* @__PURE__ */ S(
|
|
284
|
+
return /* @__PURE__ */ S(Pt, {
|
|
285
285
|
nodeRef: n,
|
|
286
286
|
in: t,
|
|
287
287
|
timeout: 100,
|
|
288
288
|
classNames: {
|
|
289
|
-
enter:
|
|
290
|
-
enterActive:
|
|
291
|
-
exit:
|
|
292
|
-
exitActive:
|
|
289
|
+
enter: qi.enter,
|
|
290
|
+
enterActive: qi.enterActive,
|
|
291
|
+
exit: qi.exit,
|
|
292
|
+
exitActive: qi.exitActive
|
|
293
293
|
},
|
|
294
294
|
unmountOnExit: !0,
|
|
295
295
|
children: /* @__PURE__ */ S("div", {
|
|
296
296
|
ref: n,
|
|
297
|
-
className:
|
|
297
|
+
className: qi.collapse,
|
|
298
298
|
children: /* @__PURE__ */ S("div", {
|
|
299
|
-
className:
|
|
299
|
+
className: qi.collapseInner,
|
|
300
300
|
children: /* @__PURE__ */ S("div", { children: t && e })
|
|
301
301
|
})
|
|
302
302
|
})
|
|
303
303
|
});
|
|
304
|
-
},
|
|
304
|
+
}, Yi = ({ heading: e, expanded: t = !1, bordered: n = !1, flush: r = !1, padding: i = !0, children: a, squareBottom: o = !1, onClick: s, testId: c }) => {
|
|
305
305
|
let l = t && !!a;
|
|
306
306
|
return /* @__PURE__ */ C("div", {
|
|
307
|
-
className: b(
|
|
307
|
+
className: b(Ki.accordion, n ? Ki.bordered : "", r ? Ki.flush : "", t ? Ki.expanded : "", o ? Ki.squareBottom : ""),
|
|
308
308
|
children: [/* @__PURE__ */ C("div", {
|
|
309
|
-
className: b(
|
|
309
|
+
className: b(Ki.accordionHeader, s ? Ki.clickable : ""),
|
|
310
310
|
onClick: s,
|
|
311
311
|
"data-testid": c,
|
|
312
|
-
children: [/* @__PURE__ */ S(
|
|
313
|
-
className:
|
|
312
|
+
children: [/* @__PURE__ */ S(Gi, { expanded: t }), /* @__PURE__ */ S("div", {
|
|
313
|
+
className: Ki.heading,
|
|
314
314
|
children: e
|
|
315
315
|
})]
|
|
316
|
-
}), /* @__PURE__ */ S(
|
|
316
|
+
}), /* @__PURE__ */ S(Ji, {
|
|
317
317
|
expanded: l,
|
|
318
318
|
children: /* @__PURE__ */ S("div", {
|
|
319
|
-
className: b(
|
|
319
|
+
className: b(Ki.accordionContent, n && i ? Ki.padding : ""),
|
|
320
320
|
children: a
|
|
321
321
|
})
|
|
322
322
|
})]
|
|
323
323
|
});
|
|
324
|
-
},
|
|
324
|
+
}, Xi = ({ heading: t, bordered: n, flush: r, padding: i, expanded: a = !1, children: o, testId: s }) => {
|
|
325
325
|
let [c, l] = e.useState(a);
|
|
326
|
-
return /* @__PURE__ */ S(
|
|
326
|
+
return /* @__PURE__ */ S(Yi, {
|
|
327
327
|
heading: t,
|
|
328
328
|
bordered: n,
|
|
329
329
|
flush: r,
|
|
@@ -335,7 +335,7 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
335
335
|
testId: s,
|
|
336
336
|
children: o
|
|
337
337
|
});
|
|
338
|
-
},
|
|
338
|
+
}, Zi = ({ heading: e, expanded: t = !1, managed: n = !1, bordered: r = !1, flush: i = !1, padding: a = !0, children: o, onClick: s, squareBottom: c = !1, testId: l }) => S(n ? Xi : Yi, {
|
|
339
339
|
heading: e,
|
|
340
340
|
expanded: t,
|
|
341
341
|
bordered: r,
|
|
@@ -345,7 +345,7 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
345
345
|
onClick: s,
|
|
346
346
|
testId: l,
|
|
347
347
|
children: o
|
|
348
|
-
}),
|
|
348
|
+
}), Qi = {
|
|
349
349
|
inputInTable: "_inputInTable_p3kuj_1",
|
|
350
350
|
inputHover: "_inputHover_p3kuj_13",
|
|
351
351
|
inputFocus: "_inputFocus_p3kuj_18",
|
|
@@ -363,33 +363,33 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
363
363
|
checkmark: "_checkmark_p3kuj_137",
|
|
364
364
|
noMargin: "_noMargin_p3kuj_200",
|
|
365
365
|
isInTable: "_isInTable_p3kuj_206"
|
|
366
|
-
},
|
|
366
|
+
}, $i = ({ children: e }) => Zt() === null ? /* @__PURE__ */ S(Bt, { children: e }) : /* @__PURE__ */ S(x, { children: e }), ea = "layers", ta = "modalContainer", na = "modalLayers", ra = (e) => {
|
|
367
367
|
var t;
|
|
368
368
|
if (!e) return;
|
|
369
|
-
let n = e.closest(`#${
|
|
369
|
+
let n = e.closest(`#${ta}`);
|
|
370
370
|
if (n) return (t = n.querySelector("#modalLayers")) == null ? n : t;
|
|
371
|
-
},
|
|
371
|
+
}, ia = "bottom-start", aa = (e, t) => {
|
|
372
372
|
t((t) => t && t.width === e.width && t.height === e.height && t.x === e.x && t.y === e.y ? t : e);
|
|
373
|
-
},
|
|
374
|
-
|
|
375
|
-
|
|
373
|
+
}, oa = (e = ia) => e === "center" ? "bottom" : e.replace("-center", ""), sa = ({ arrowOffset: e, arrowRef: t, containerOffset: n, fallbackPlacements: r, matchReferenceWidth: i, triggerOffset: a }) => [
|
|
374
|
+
Wt(a),
|
|
375
|
+
Ut({
|
|
376
376
|
fallbackPlacements: r,
|
|
377
377
|
padding: n
|
|
378
378
|
}),
|
|
379
|
-
|
|
380
|
-
|
|
379
|
+
Gt({ padding: n }),
|
|
380
|
+
Kt({
|
|
381
381
|
padding: n,
|
|
382
382
|
apply({ elements: e, rects: t }) {
|
|
383
383
|
i && Object.assign(e.floating.style, { minWidth: `${t.reference.width}px` });
|
|
384
384
|
}
|
|
385
385
|
}),
|
|
386
|
-
|
|
386
|
+
Vt({
|
|
387
387
|
element: t,
|
|
388
388
|
padding: e
|
|
389
389
|
})
|
|
390
|
-
],
|
|
390
|
+
], ca = ({ isOpen: e, arrowOffset: t = 0, clientPoint: n, containerOffset: r = 10, hover: i, matchReferenceWidth: a = !1, placement: o = ia, possiblePlacements: s, triggerOffset: c = 0, updateOnAnimationFrame: u = !1, overflowContainer: d = !0, onOpenChange: f, onOutsideClick: p }) => {
|
|
391
391
|
var m, g, y, b, x, C, w;
|
|
392
|
-
let T = _(null), [E, D] = v(null), O =
|
|
392
|
+
let T = _(null), [E, D] = v(null), O = Xt(), k = oa(o), A = h(() => s == null ? void 0 : s.map(oa), [s]), j = h(() => sa({
|
|
393
393
|
arrowOffset: t,
|
|
394
394
|
arrowRef: T,
|
|
395
395
|
containerOffset: r,
|
|
@@ -402,9 +402,9 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
402
402
|
A,
|
|
403
403
|
a,
|
|
404
404
|
c
|
|
405
|
-
]), M = l((e, t, n) => (
|
|
406
|
-
|
|
407
|
-
}, { animationFrame: u })), [u]), { context: N, refs: P, floatingStyles: F, isPositioned: I, x: L, y: R } =
|
|
405
|
+
]), M = l((e, t, n) => (aa(e.getBoundingClientRect(), D), Ht(e, t, () => {
|
|
406
|
+
aa(e.getBoundingClientRect(), D), n();
|
|
407
|
+
}, { animationFrame: u })), [u]), { context: N, refs: P, floatingStyles: F, isPositioned: I, x: L, y: R } = Yt({
|
|
408
408
|
open: e,
|
|
409
409
|
onOpenChange: (e, t, n) => {
|
|
410
410
|
!e && (n === "outside-press" || n === "escape-key") && (p == null || p()), f == null || f(e);
|
|
@@ -417,17 +417,17 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
417
417
|
middleware: j
|
|
418
418
|
}), z = l((e) => {
|
|
419
419
|
if (P.setReference(e), e) {
|
|
420
|
-
|
|
420
|
+
aa(e.getBoundingClientRect(), D);
|
|
421
421
|
return;
|
|
422
422
|
}
|
|
423
423
|
D(null);
|
|
424
|
-
}, [P.setReference]), B = (m = i == null ? void 0 : i.hideOnScroll) != null && m,
|
|
424
|
+
}, [P.setReference]), B = (m = i == null ? void 0 : i.hideOnScroll) != null && m, ee = Jt(N, {
|
|
425
425
|
enabled: e && (!!p || B),
|
|
426
426
|
ancestorScroll: B,
|
|
427
427
|
escapeKey: !!p,
|
|
428
428
|
outsidePress: !!p,
|
|
429
429
|
outsidePressEvent: "mousedown"
|
|
430
|
-
}),
|
|
430
|
+
}), te = Qt(N, {
|
|
431
431
|
enabled: (g = i == null ? void 0 : i.enabled) != null && g,
|
|
432
432
|
delay: {
|
|
433
433
|
open: (y = i == null ? void 0 : i.delayEnter) == null ? 0 : y,
|
|
@@ -435,16 +435,16 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
435
435
|
},
|
|
436
436
|
mouseOnly: i == null ? void 0 : i.mouseOnly,
|
|
437
437
|
move: !1
|
|
438
|
-
}),
|
|
438
|
+
}), ne = qt(N, {
|
|
439
439
|
enabled: (x = n == null ? void 0 : n.enabled) != null && x,
|
|
440
440
|
axis: n == null ? void 0 : n.axis,
|
|
441
441
|
x: (C = n == null ? void 0 : n.x) == null ? null : C,
|
|
442
442
|
y: (w = n == null ? void 0 : n.y) == null ? null : w
|
|
443
|
-
}), { getReferenceProps:
|
|
444
|
-
V,
|
|
443
|
+
}), { getReferenceProps: V, getFloatingProps: re } = $t([
|
|
445
444
|
ee,
|
|
446
|
-
te
|
|
447
|
-
|
|
445
|
+
te,
|
|
446
|
+
ne
|
|
447
|
+
]), ie = h(() => V({ ref: z }), [V, z]), ae = h(() => re({
|
|
448
448
|
ref: P.setFloating,
|
|
449
449
|
style: {
|
|
450
450
|
...F,
|
|
@@ -452,7 +452,7 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
452
452
|
}
|
|
453
453
|
}), [
|
|
454
454
|
F,
|
|
455
|
-
|
|
455
|
+
re,
|
|
456
456
|
e,
|
|
457
457
|
I,
|
|
458
458
|
P.setFloating,
|
|
@@ -464,31 +464,31 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
464
464
|
context: N,
|
|
465
465
|
ref: T
|
|
466
466
|
}), [N]),
|
|
467
|
-
layerProps:
|
|
467
|
+
layerProps: ae,
|
|
468
468
|
renderLayer: (e) => {
|
|
469
469
|
var t;
|
|
470
470
|
if (typeof document > "u") return null;
|
|
471
|
-
let n = P.reference.current, r =
|
|
472
|
-
return /* @__PURE__ */ S(
|
|
471
|
+
let n = P.reference.current, r = ra(n instanceof Element ? n : (t = n == null ? void 0 : n.contextElement) == null ? null : t);
|
|
472
|
+
return /* @__PURE__ */ S(Rt, {
|
|
473
473
|
id: O,
|
|
474
|
-
children: r ? /* @__PURE__ */ S(
|
|
474
|
+
children: r ? /* @__PURE__ */ S(zt, {
|
|
475
475
|
root: r,
|
|
476
476
|
children: e
|
|
477
|
-
},
|
|
478
|
-
id:
|
|
477
|
+
}, na) : /* @__PURE__ */ S(zt, {
|
|
478
|
+
id: ea,
|
|
479
479
|
children: e
|
|
480
|
-
},
|
|
480
|
+
}, ea)
|
|
481
481
|
});
|
|
482
482
|
},
|
|
483
483
|
triggerBounds: E,
|
|
484
|
-
triggerProps:
|
|
484
|
+
triggerProps: ie
|
|
485
485
|
};
|
|
486
|
-
},
|
|
486
|
+
}, la = {
|
|
487
487
|
tooltip: "_tooltip_o1fhy_1",
|
|
488
488
|
error: "_error_o1fhy_14",
|
|
489
489
|
warning: "_warning_o1fhy_18"
|
|
490
|
-
},
|
|
491
|
-
className: b(
|
|
490
|
+
}, ua = ({ text: e = "", error: t = !1, warning: n = !1, maxWidth: r = "none", fontSize: i = "inherit", padding: a = "var(--padding-xxs) var(--padding-xs)", layerProps: o = { style: { position: "fixed" } }, arrowProps: s }) => /* @__PURE__ */ C("div", {
|
|
491
|
+
className: b(la.tooltip, t ? la.error : n ? la.warning : ""),
|
|
492
492
|
...o,
|
|
493
493
|
children: [/* @__PURE__ */ S("div", {
|
|
494
494
|
style: {
|
|
@@ -497,7 +497,7 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
497
497
|
padding: a
|
|
498
498
|
},
|
|
499
499
|
children: e
|
|
500
|
-
}), (s == null ? void 0 : s.context) && /* @__PURE__ */ S(
|
|
500
|
+
}), (s == null ? void 0 : s.context) && /* @__PURE__ */ S(Lt, {
|
|
501
501
|
context: s.context,
|
|
502
502
|
ref: s.ref,
|
|
503
503
|
width: 12,
|
|
@@ -505,13 +505,13 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
505
505
|
tipRadius: 1,
|
|
506
506
|
fill: "inherit"
|
|
507
507
|
})]
|
|
508
|
-
}),
|
|
508
|
+
}), da = ({ children: e, text: t = "", error: n = !1, placement: r = "top-center", possiblePlacements: i = [
|
|
509
509
|
"top-center",
|
|
510
510
|
"left-center",
|
|
511
511
|
"bottom-center",
|
|
512
512
|
"right-center"
|
|
513
513
|
], enabled: a = !0, warning: o = !1, maxWidth: c = "40em", triggerOffset: l = 12, fontSize: u = "inherit", padding: d = "var(--padding-xxs) var(--padding-xs)", display: f = "inline", flex: p = "none", triggerStyle: m, forceOpen: h = !1, updateOnAnimationFrame: g = !1 }) => {
|
|
514
|
-
let _ = a && (s(t) || typeof t == "string" && t.length > 0 || typeof t == "number"), [y, b] = v(!1), w = _ ? h ? !0 : y : !1, { renderLayer: T, triggerProps: E, layerProps: D, arrowProps: O } =
|
|
514
|
+
let _ = a && (s(t) || typeof t == "string" && t.length > 0 || typeof t == "number"), [y, b] = v(!1), w = _ ? h ? !0 : y : !1, { renderLayer: T, triggerProps: E, layerProps: D, arrowProps: O } = ca({
|
|
515
515
|
isOpen: w,
|
|
516
516
|
hover: {
|
|
517
517
|
enabled: _ && !h,
|
|
@@ -532,7 +532,7 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
532
532
|
var t;
|
|
533
533
|
(t = E.onMouseOver) == null || t.call(E, e), _ && !h && !e.nativeEvent.isTrusted && b(!0);
|
|
534
534
|
};
|
|
535
|
-
return /* @__PURE__ */ C(x, { children: [w && T(/* @__PURE__ */ S(
|
|
535
|
+
return /* @__PURE__ */ C(x, { children: [w && T(/* @__PURE__ */ S(ua, {
|
|
536
536
|
text: t,
|
|
537
537
|
error: n,
|
|
538
538
|
warning: o,
|
|
@@ -552,11 +552,11 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
552
552
|
onMouseOver: A,
|
|
553
553
|
children: e
|
|
554
554
|
})] });
|
|
555
|
-
},
|
|
555
|
+
}, K = (e) => /* @__PURE__ */ S($i, { children: /* @__PURE__ */ S(da, { ...e }) }), fa = {
|
|
556
556
|
helpIcon: "_helpIcon_hd0z2_1",
|
|
557
557
|
active: "_active_hd0z2_9",
|
|
558
558
|
clickable: "_clickable_hd0z2_12"
|
|
559
|
-
}, pa = ({ children: e, text: t, maxWidth: n }) => t ? /* @__PURE__ */ S(
|
|
559
|
+
}, pa = ({ children: e, text: t, maxWidth: n }) => t ? /* @__PURE__ */ S(K, {
|
|
560
560
|
text: t,
|
|
561
561
|
display: "inline-flex",
|
|
562
562
|
maxWidth: n,
|
|
@@ -570,11 +570,11 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
570
570
|
children: /* @__PURE__ */ S(pa, {
|
|
571
571
|
text: e,
|
|
572
572
|
maxWidth: i,
|
|
573
|
-
children: /* @__PURE__ */ S(
|
|
573
|
+
children: /* @__PURE__ */ S(G, { icon: n })
|
|
574
574
|
})
|
|
575
|
-
}), ha = ({ noMargin: e = !1, dataix: t = 0, isInTable: n = !1, tabIndex: r = 0, checked: i = !1, indeterminate: a = !1, name: o, label: s = "", disabled: c = !1, small: l = !1, onChange: d, testId: f, helpText: p, onClickHelp: m, textTransform: h =
|
|
576
|
-
let g = u(
|
|
577
|
-
return /* @__PURE__ */ C(
|
|
575
|
+
}), ha = ({ noMargin: e = !1, dataix: t = 0, isInTable: n = !1, tabIndex: r = 0, checked: i = !1, indeterminate: a = !1, name: o, label: s = "", disabled: c = !1, small: l = !1, onChange: d, testId: f, helpText: p, onClickHelp: m, textTransform: h = ji.CAPITALIZE }) => {
|
|
576
|
+
let g = u(W), _ = p || m;
|
|
577
|
+
return /* @__PURE__ */ C(It, {
|
|
578
578
|
name: o,
|
|
579
579
|
isSelected: i,
|
|
580
580
|
isIndeterminate: a,
|
|
@@ -587,20 +587,20 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
587
587
|
value: e
|
|
588
588
|
} });
|
|
589
589
|
},
|
|
590
|
-
className: b(
|
|
590
|
+
className: b(Qi.checkboxContainer, e && Qi.noMargin, n && Qi.isInTable),
|
|
591
591
|
"data-ix": t,
|
|
592
592
|
"data-testid": f ? `${f}-field` : void 0,
|
|
593
|
-
children: [/* @__PURE__ */ C(
|
|
594
|
-
className: b(
|
|
593
|
+
children: [/* @__PURE__ */ C(Ft, {
|
|
594
|
+
className: b(Qi.checkbox, l && Qi.small, !s && Qi.noLabel),
|
|
595
595
|
"data-testid": f,
|
|
596
596
|
children: [/* @__PURE__ */ S("span", {
|
|
597
|
-
className:
|
|
597
|
+
className: Qi.control,
|
|
598
598
|
children: /* @__PURE__ */ S("span", {
|
|
599
|
-
className:
|
|
600
|
-
children: /* @__PURE__ */ S(
|
|
599
|
+
className: Qi.checkmark,
|
|
600
|
+
children: /* @__PURE__ */ S(G, { icon: U.CHECK })
|
|
601
601
|
})
|
|
602
602
|
}), s && /* @__PURE__ */ S("span", {
|
|
603
|
-
className:
|
|
603
|
+
className: Qi.labelText,
|
|
604
604
|
style: { textTransform: h },
|
|
605
605
|
children: s
|
|
606
606
|
})]
|
|
@@ -646,7 +646,7 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
646
646
|
className: ga.contentWrapper,
|
|
647
647
|
children: o
|
|
648
648
|
})] });
|
|
649
|
-
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
649
|
+
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(Zi, {
|
|
650
650
|
heading: e,
|
|
651
651
|
bordered: !0,
|
|
652
652
|
expanded: s.accordionExpanded,
|
|
@@ -694,25 +694,25 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
694
694
|
});
|
|
695
695
|
}, Ca = /* @__PURE__ */ function(e) {
|
|
696
696
|
return e.SUBMIT = "submit", e.BUTTON = "button", e.RESET = "reset", e;
|
|
697
|
-
}({}), wa = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ S(
|
|
697
|
+
}({}), wa = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ S(K, {
|
|
698
698
|
text: t,
|
|
699
699
|
display: "inline-flex",
|
|
700
700
|
children: e
|
|
701
701
|
}) : /* @__PURE__ */ S(x, { children: e }), q = e.forwardRef(({ active: e = !1, basic: t = !1, colored: n = !1, disabled: r = !1, ignoreDisabledContext: i = !1, groupOrder: a, icon: o = null, rightIcon: s = null, label: c = "", loading: l = !1, name: d, pill: f = !1, round: p = !1, small: m = !1, styles: h = "", width: g = "", title: _ = "", type: v = Ca.BUTTON, onClick: y = () => {}, error: x, warning: w, testId: T, tooltip: E, inverted: D = !1, component: O = "button", url: k, tabIndex: A, ...j }, M) => {
|
|
702
|
-
let N = u(
|
|
702
|
+
let N = u(W), P = (() => {
|
|
703
703
|
if (n) switch (n) {
|
|
704
|
-
case
|
|
705
|
-
case
|
|
706
|
-
case
|
|
707
|
-
case
|
|
708
|
-
case
|
|
704
|
+
case Oi.DANGER:
|
|
705
|
+
case Oi.RED: return ba.red;
|
|
706
|
+
case Oi.SUCCESS:
|
|
707
|
+
case Oi.GREEN: return ba.green;
|
|
708
|
+
case Oi.MUTED: return ba.muted;
|
|
709
709
|
default: return ba.orange;
|
|
710
710
|
}
|
|
711
711
|
return "";
|
|
712
712
|
})(), F = (() => {
|
|
713
713
|
if (a) switch (a) {
|
|
714
|
-
case
|
|
715
|
-
case
|
|
714
|
+
case H.FIRST: return ba.groupOrderFirst;
|
|
715
|
+
case H.LAST: return ba.groupOrderLast;
|
|
716
716
|
default: return ba.groupOrderMiddle;
|
|
717
717
|
}
|
|
718
718
|
return "";
|
|
@@ -737,7 +737,7 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
737
737
|
children: [
|
|
738
738
|
o && /* @__PURE__ */ S("span", {
|
|
739
739
|
className: ba.icon,
|
|
740
|
-
children: /* @__PURE__ */ S(
|
|
740
|
+
children: /* @__PURE__ */ S(G, { icon: o })
|
|
741
741
|
}),
|
|
742
742
|
l && /* @__PURE__ */ S("span", {
|
|
743
743
|
className: ba.icon,
|
|
@@ -751,7 +751,7 @@ var Ei = /* @__PURE__ */ function(e) {
|
|
|
751
751
|
c,
|
|
752
752
|
s && /* @__PURE__ */ S("span", {
|
|
753
753
|
className: ba.rightIcon,
|
|
754
|
-
children: /* @__PURE__ */ S(
|
|
754
|
+
children: /* @__PURE__ */ S(G, { icon: s })
|
|
755
755
|
})
|
|
756
756
|
]
|
|
757
757
|
})
|
|
@@ -782,11 +782,11 @@ var Ta = {
|
|
|
782
782
|
return (t = Ea[e]) == null ? "top" : t;
|
|
783
783
|
}, Oa = () => {
|
|
784
784
|
if (typeof document > "u") return;
|
|
785
|
-
let e = document.getElementById(
|
|
786
|
-
return e || (e = document.createElement("div"), e.id =
|
|
785
|
+
let e = document.getElementById(ea);
|
|
786
|
+
return e || (e = document.createElement("div"), e.id = ea, document.body.appendChild(e)), e;
|
|
787
787
|
}, ka = (e) => {
|
|
788
788
|
if (e) {
|
|
789
|
-
let t =
|
|
789
|
+
let t = ra(e);
|
|
790
790
|
if (t) return t;
|
|
791
791
|
}
|
|
792
792
|
return Oa();
|
|
@@ -801,11 +801,11 @@ var Ta = {
|
|
|
801
801
|
}({}), Ra = ({ children: e, behavior: n, isDisabled: i = !1, testId: a, triggerRef: o, enhanceChild: c, fallbackStyle: l = { display: "inline-flex" }, fallbackProps: u, attachToForwardRef: d = !1, safeComponents: f = [] }) => {
|
|
802
802
|
let p = t.toArray(e).filter(s), m = p.length === 1 ? p[0] : null, h = o;
|
|
803
803
|
if (p.length === 0) return null;
|
|
804
|
-
let g = (e) => n === "press" ? /* @__PURE__ */ S(
|
|
804
|
+
let g = (e) => n === "press" ? /* @__PURE__ */ S(Hn, {
|
|
805
805
|
ref: h,
|
|
806
806
|
isDisabled: i,
|
|
807
807
|
children: e
|
|
808
|
-
}) : /* @__PURE__ */ S(
|
|
808
|
+
}) : /* @__PURE__ */ S(zn, {
|
|
809
809
|
ref: h,
|
|
810
810
|
children: e
|
|
811
811
|
});
|
|
@@ -833,7 +833,7 @@ var Ta = {
|
|
|
833
833
|
}));
|
|
834
834
|
}, za = ({ children: e, placement: t = "bottom-start", portalTriggerRef: n, isNested: r = !1, offset: i = 0, className: a, ...o }) => {
|
|
835
835
|
let s = r ? void 0 : ka(n == null ? void 0 : n.current);
|
|
836
|
-
return /* @__PURE__ */ S(
|
|
836
|
+
return /* @__PURE__ */ S(Vn, {
|
|
837
837
|
className: a,
|
|
838
838
|
placement: Da(t),
|
|
839
839
|
offset: r ? 0 : i,
|
|
@@ -843,7 +843,7 @@ var Ta = {
|
|
|
843
843
|
});
|
|
844
844
|
}, Ba = (e) => {
|
|
845
845
|
let { sections: t } = e;
|
|
846
|
-
return !s(t) && (!Array.isArray(t) || t.every((e) =>
|
|
846
|
+
return !s(t) && (!Array.isArray(t) || t.every((e) => ln(e)));
|
|
847
847
|
}, J = {
|
|
848
848
|
layer: "_layer_14ect_1",
|
|
849
849
|
nested: "_nested_14ect_14",
|
|
@@ -876,11 +876,11 @@ var Ta = {
|
|
|
876
876
|
children: [e, !!n && /* @__PURE__ */ S("span", {
|
|
877
877
|
className: b(J.headingIcon, t ? J.clickable : ""),
|
|
878
878
|
onClick: t,
|
|
879
|
-
children: /* @__PURE__ */ S(
|
|
879
|
+
children: /* @__PURE__ */ S(G, { icon: n })
|
|
880
880
|
})]
|
|
881
|
-
}), Ha = () => /* @__PURE__ */ S(
|
|
881
|
+
}), Ha = () => /* @__PURE__ */ S(kn, { className: J.divider }), Ua = (e) => typeof e == "string" || typeof e == "number" ? String(e) : "", Wa = ({ actions: e, label: t, url: n, onClick: r, description: i, icon: a, selected: o, closeOnOptionClick: s = !0, close: c, disabled: l, inline: u, title: d, upload: f, uploadType: p, onChange: m, testId: h }) => {
|
|
882
882
|
let g = _(null);
|
|
883
|
-
return /* @__PURE__ */ C(
|
|
883
|
+
return /* @__PURE__ */ C(Dn, {
|
|
884
884
|
className: b(J.menuItem, J.option, u && J.inline, o && J.selected),
|
|
885
885
|
textValue: Ua(t),
|
|
886
886
|
href: n,
|
|
@@ -903,7 +903,7 @@ var Ta = {
|
|
|
903
903
|
children: [
|
|
904
904
|
a ? /* @__PURE__ */ S("span", {
|
|
905
905
|
className: J.icon,
|
|
906
|
-
children: /* @__PURE__ */ S(
|
|
906
|
+
children: /* @__PURE__ */ S(G, { icon: a })
|
|
907
907
|
}) : null,
|
|
908
908
|
/* @__PURE__ */ C("div", {
|
|
909
909
|
className: J.optionContent,
|
|
@@ -946,7 +946,7 @@ var Ta = {
|
|
|
946
946
|
className: J.right,
|
|
947
947
|
children: [o && /* @__PURE__ */ S("span", {
|
|
948
948
|
className: J.check,
|
|
949
|
-
children: /* @__PURE__ */ S(
|
|
949
|
+
children: /* @__PURE__ */ S(G, { icon: U.CHECK })
|
|
950
950
|
}), !!(e != null && e.length) && /* @__PURE__ */ S("div", {
|
|
951
951
|
className: J.actions,
|
|
952
952
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -960,11 +960,11 @@ var Ta = {
|
|
|
960
960
|
}({}), Ka = /* @__PURE__ */ function(e) {
|
|
961
961
|
return e.FALSE = "false", e.RIGHT = "right", e.DOWN = "down", e;
|
|
962
962
|
}({}), qa = ({ section: e, closeOnOptionClick: t, close: n }) => {
|
|
963
|
-
let r = u(
|
|
963
|
+
let r = u(W);
|
|
964
964
|
switch (e.type) {
|
|
965
965
|
case Ga.HEADING:
|
|
966
966
|
var i;
|
|
967
|
-
return /* @__PURE__ */ S(
|
|
967
|
+
return /* @__PURE__ */ S(Tn, {
|
|
968
968
|
className: J.heading,
|
|
969
969
|
children: /* @__PURE__ */ S(Va, {
|
|
970
970
|
label: (i = e == null ? void 0 : e.label) == null ? "" : i,
|
|
@@ -1008,17 +1008,17 @@ var Ta = {
|
|
|
1008
1008
|
children: e
|
|
1009
1009
|
}), n && n === Ka.RIGHT ? /* @__PURE__ */ S("span", {
|
|
1010
1010
|
className: J.arrow,
|
|
1011
|
-
children: /* @__PURE__ */ S(
|
|
1011
|
+
children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_RIGHT })
|
|
1012
1012
|
}) : n && n === Ka.DOWN ? /* @__PURE__ */ S("span", {
|
|
1013
1013
|
className: J.arrow,
|
|
1014
|
-
children: /* @__PURE__ */ S(
|
|
1014
|
+
children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_DOWN })
|
|
1015
1015
|
}) : null]
|
|
1016
1016
|
});
|
|
1017
1017
|
}), Ya = (e) => typeof e == "string" || typeof e == "number" ? String(e) : "", Xa = (e, t, { closeOnOptionClick: n, close: r, maxHeight: i, width: a }) => {
|
|
1018
1018
|
if (e.type === Ga.MENU) {
|
|
1019
1019
|
var o, s, c, l, u, d, f, p, m, h, g;
|
|
1020
1020
|
let _ = (o = e.menu) == null ? void 0 : o.sections, v = Array.isArray(_) && _.some((e) => e == null ? void 0 : e.selected), y = Ba((s = e.menu) == null ? {} : s), x = ((c = e.menu) == null ? void 0 : c.placement) || "right-start", w = e.testId;
|
|
1021
|
-
return /* @__PURE__ */ C(
|
|
1021
|
+
return /* @__PURE__ */ C(An, { children: [/* @__PURE__ */ S(Dn, {
|
|
1022
1022
|
className: J.menuItem,
|
|
1023
1023
|
textValue: Ya((l = (u = e.menu) == null ? void 0 : u.label) == null ? e.label : l),
|
|
1024
1024
|
isDisabled: y,
|
|
@@ -1072,7 +1072,7 @@ var Ta = {
|
|
|
1072
1072
|
...e,
|
|
1073
1073
|
closeOnOptionClick: r
|
|
1074
1074
|
}));
|
|
1075
|
-
return /* @__PURE__ */ S(
|
|
1075
|
+
return /* @__PURE__ */ S(En, {
|
|
1076
1076
|
className: b(J.layer, t && J.nested),
|
|
1077
1077
|
style: {
|
|
1078
1078
|
maxWidth: n,
|
|
@@ -1088,7 +1088,7 @@ var Ta = {
|
|
|
1088
1088
|
width: n
|
|
1089
1089
|
}))
|
|
1090
1090
|
});
|
|
1091
|
-
}, Qa = (e, t = !1) => ({ placement: e || (t ? "right-start" : "bottom-start") }), Y = (e) =>
|
|
1091
|
+
}, Qa = (e, t = !1) => ({ placement: e || (t ? "right-start" : "bottom-start") }), Y = (e) => _n(e) || mn(e) || s(e), $a = (e) => Array.isArray(e) ? "array" : typeof e, eo = {
|
|
1092
1092
|
wrapper: "_wrapper_14vly_1",
|
|
1093
1093
|
badge: "_badge_14vly_5",
|
|
1094
1094
|
label: "_label_14vly_11",
|
|
@@ -1113,7 +1113,7 @@ var Ta = {
|
|
|
1113
1113
|
}), e]
|
|
1114
1114
|
});
|
|
1115
1115
|
}, ro = e.forwardRef(({ trigger: e, label: t, colored: n, small: r, width: i, disabled: a, groupOrder: o, loading: s, error: c, warning: l, active: d, tabIndex: f, testId: p, ...m }, h) => {
|
|
1116
|
-
let g = u(
|
|
1116
|
+
let g = u(W), _ = e === Di.DROP_DOWN_BUTTON;
|
|
1117
1117
|
return /* @__PURE__ */ S(q, {
|
|
1118
1118
|
ref: h,
|
|
1119
1119
|
label: /* @__PURE__ */ S("span", {
|
|
@@ -1124,7 +1124,7 @@ var Ta = {
|
|
|
1124
1124
|
small: r,
|
|
1125
1125
|
width: i,
|
|
1126
1126
|
groupOrder: o,
|
|
1127
|
-
rightIcon: _ ?
|
|
1127
|
+
rightIcon: _ ? U.CHEVRON_DOWN : null,
|
|
1128
1128
|
loading: s,
|
|
1129
1129
|
disabled: a || g,
|
|
1130
1130
|
error: c,
|
|
@@ -1163,7 +1163,7 @@ var Ta = {
|
|
|
1163
1163
|
...a,
|
|
1164
1164
|
children: e
|
|
1165
1165
|
});
|
|
1166
|
-
}), oo = ({ tooltip: e, error: t, warning: n, children: r }) => !Y(e) && !Y(t) && !Y(n) ? /* @__PURE__ */ S(x, { children: r }) : /* @__PURE__ */ S(
|
|
1166
|
+
}), oo = ({ tooltip: e, error: t, warning: n, children: r }) => !Y(e) && !Y(t) && !Y(n) ? /* @__PURE__ */ S(x, { children: r }) : /* @__PURE__ */ S(K, {
|
|
1167
1167
|
error: !!t,
|
|
1168
1168
|
warning: !!n,
|
|
1169
1169
|
text: e || t || n,
|
|
@@ -1175,7 +1175,7 @@ var Ta = {
|
|
|
1175
1175
|
small: !r,
|
|
1176
1176
|
children: e
|
|
1177
1177
|
}) : e, co = e.forwardRef(({ active: e, disabled: t, loading: n, width: r, trigger: i, label: a, title: o, colored: s, small: c, isNested: l, component: u, groupOrder: d, isOpen: f, error: p, warning: m, testId: h, selected: g, tabIndex: _, ...v }, y) => {
|
|
1178
|
-
let b = i ===
|
|
1178
|
+
let b = i === Di.BUTTON || i === Di.DROP_DOWN_BUTTON, x = i === Di.COMPONENT;
|
|
1179
1179
|
return b ? /* @__PURE__ */ S(ro, {
|
|
1180
1180
|
ref: y,
|
|
1181
1181
|
trigger: i,
|
|
@@ -1192,7 +1192,7 @@ var Ta = {
|
|
|
1192
1192
|
tabIndex: _,
|
|
1193
1193
|
testId: h,
|
|
1194
1194
|
...v
|
|
1195
|
-
}) : i ===
|
|
1195
|
+
}) : i === Di.TEXT ? /* @__PURE__ */ S(Ja, {
|
|
1196
1196
|
ref: y,
|
|
1197
1197
|
label: a == null ? "" : a,
|
|
1198
1198
|
title: o,
|
|
@@ -1212,23 +1212,23 @@ var Ta = {
|
|
|
1212
1212
|
...v
|
|
1213
1213
|
}) : null;
|
|
1214
1214
|
}), lo = ({ menu: e, width: t, disabled: n = !1, badgeTitle: r, badgeDot: i = !1, loading: a = !1, closeOnOptionClick: o = !0, maxHeight: s, testId: c, open: f, setOpen: p, tooltip: m, error: h, warning: g, tabIndex: y, active: b, groupOrder: x, offset: w = 0 }) => {
|
|
1215
|
-
let T = u(
|
|
1215
|
+
let T = u(W), E = _(null), [D, O] = v(!1), { label: k, title: A, trigger: j, colored: M, small: N, sections: P, component: F, placement: I, showAllButton: L } = e, R = cn(f) && fn(p), z = R ? f : D, B = n || Ba(e) || T, ee = l((e) => {
|
|
1216
1216
|
B && e || (R ? p(e) : O(e));
|
|
1217
1217
|
}, [
|
|
1218
1218
|
R,
|
|
1219
1219
|
B,
|
|
1220
1220
|
p
|
|
1221
|
-
]),
|
|
1222
|
-
|
|
1223
|
-
}, [
|
|
1221
|
+
]), te = l(() => {
|
|
1222
|
+
ee(!1);
|
|
1223
|
+
}, [ee]);
|
|
1224
1224
|
d(() => {
|
|
1225
|
-
B && z &&
|
|
1225
|
+
B && z && te();
|
|
1226
1226
|
}, [
|
|
1227
1227
|
B,
|
|
1228
1228
|
z,
|
|
1229
|
-
|
|
1229
|
+
te
|
|
1230
1230
|
]);
|
|
1231
|
-
let
|
|
1231
|
+
let ne = Qa(I).placement, V = c ? `${c}-layer` : void 0, re = /* @__PURE__ */ S(Ra, {
|
|
1232
1232
|
behavior: La.PRESS,
|
|
1233
1233
|
testId: c,
|
|
1234
1234
|
isDisabled: B,
|
|
@@ -1256,20 +1256,20 @@ var Ta = {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
})
|
|
1258
1258
|
});
|
|
1259
|
-
return /* @__PURE__ */ C(
|
|
1259
|
+
return /* @__PURE__ */ C(On, {
|
|
1260
1260
|
isOpen: z,
|
|
1261
|
-
onOpenChange:
|
|
1261
|
+
onOpenChange: ee,
|
|
1262
1262
|
children: [/* @__PURE__ */ S(oo, {
|
|
1263
1263
|
tooltip: m,
|
|
1264
1264
|
error: h,
|
|
1265
1265
|
warning: g,
|
|
1266
|
-
children: so(
|
|
1266
|
+
children: so(re, {
|
|
1267
1267
|
badgeTitle: r,
|
|
1268
1268
|
badgeDot: i
|
|
1269
1269
|
})
|
|
1270
1270
|
}), /* @__PURE__ */ S(za, {
|
|
1271
1271
|
className: J.menuPopover,
|
|
1272
|
-
placement:
|
|
1272
|
+
placement: ne,
|
|
1273
1273
|
portalTriggerRef: E,
|
|
1274
1274
|
offset: w,
|
|
1275
1275
|
"data-testid": e.testId,
|
|
@@ -1277,26 +1277,26 @@ var Ta = {
|
|
|
1277
1277
|
sections: P,
|
|
1278
1278
|
width: t,
|
|
1279
1279
|
closeOnOptionClick: o,
|
|
1280
|
-
close:
|
|
1280
|
+
close: te,
|
|
1281
1281
|
maxHeight: s,
|
|
1282
1282
|
showAllButton: L,
|
|
1283
|
-
testId:
|
|
1283
|
+
testId: V
|
|
1284
1284
|
})
|
|
1285
1285
|
})]
|
|
1286
1286
|
});
|
|
1287
1287
|
}, uo = (e) => {
|
|
1288
1288
|
let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ S(q, {
|
|
1289
|
-
colored: r ? !0 :
|
|
1289
|
+
colored: r ? !0 : Oi.MUTED,
|
|
1290
1290
|
basic: !r,
|
|
1291
1291
|
round: !0,
|
|
1292
1292
|
small: !0,
|
|
1293
|
-
icon: n ||
|
|
1293
|
+
icon: n || U.MENU,
|
|
1294
1294
|
testId: i,
|
|
1295
1295
|
tooltip: a
|
|
1296
1296
|
});
|
|
1297
1297
|
if (t.length) {
|
|
1298
1298
|
let e = {
|
|
1299
|
-
trigger:
|
|
1299
|
+
trigger: Di.COMPONENT,
|
|
1300
1300
|
component: o,
|
|
1301
1301
|
sections: t.map((e) => {
|
|
1302
1302
|
var t;
|
|
@@ -1308,7 +1308,7 @@ var Ta = {
|
|
|
1308
1308
|
disabled: e.disabled,
|
|
1309
1309
|
menu: e.menu,
|
|
1310
1310
|
onClick: (t) => {
|
|
1311
|
-
t.stopPropagation(), t.preventDefault(),
|
|
1311
|
+
t.stopPropagation(), t.preventDefault(), fn(e.onClick) && e.onClick(t);
|
|
1312
1312
|
}
|
|
1313
1313
|
};
|
|
1314
1314
|
})
|
|
@@ -1317,7 +1317,7 @@ var Ta = {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
return null;
|
|
1319
1319
|
}, fo = (t) => {
|
|
1320
|
-
let n = u(
|
|
1320
|
+
let n = u(W), { actions: r = [], closeLayer: i } = t;
|
|
1321
1321
|
return /* @__PURE__ */ S("div", {
|
|
1322
1322
|
className: b(Ta.actions),
|
|
1323
1323
|
children: r.map((t, r) => {
|
|
@@ -1340,7 +1340,7 @@ var Ta = {
|
|
|
1340
1340
|
name: String(t.label),
|
|
1341
1341
|
icon: t.icon ? t.icon : null,
|
|
1342
1342
|
onClick: (e) => {
|
|
1343
|
-
i && i(), e.stopPropagation(), e.preventDefault(), !(t.disabled || n) &&
|
|
1343
|
+
i && i(), e.stopPropagation(), e.preventDefault(), !(t.disabled || n) && fn(t.onClick) && t.onClick(e);
|
|
1344
1344
|
},
|
|
1345
1345
|
testId: t.testId,
|
|
1346
1346
|
tooltip: t.tooltip
|
|
@@ -1359,8 +1359,8 @@ var Ta = {
|
|
|
1359
1359
|
}, mo = /* @__PURE__ */ function(e) {
|
|
1360
1360
|
return e.LABEL = "label", e.LINK = "link", e.CUSTOM = "custom", e;
|
|
1361
1361
|
}({}), ho = ({ type: e = mo.LABEL, label: t, url: n, onClick: r, active: i, disabled: a, element: o, title: c }) => {
|
|
1362
|
-
let l = u(
|
|
1363
|
-
return /* @__PURE__ */ C(
|
|
1362
|
+
let l = u(W), d = e === mo.LINK && n !== void 0, f = e === mo.CUSTOM && s(o), p = !!(a || l), m = d || !!r || f;
|
|
1363
|
+
return /* @__PURE__ */ C(Jn, {
|
|
1364
1364
|
...d ? { href: n } : {},
|
|
1365
1365
|
isDisabled: p || !!i || !m,
|
|
1366
1366
|
onPress: r,
|
|
@@ -1372,14 +1372,14 @@ var Ta = {
|
|
|
1372
1372
|
}) : null, f ? o : t]
|
|
1373
1373
|
});
|
|
1374
1374
|
}, go = ({ links: e, small: t = !1 }) => {
|
|
1375
|
-
let n = u(
|
|
1376
|
-
return /* @__PURE__ */ S(
|
|
1375
|
+
let n = u(W);
|
|
1376
|
+
return /* @__PURE__ */ S(qn, {
|
|
1377
1377
|
className: b(po.breadcrumb, t && po.small),
|
|
1378
1378
|
isDisabled: n,
|
|
1379
1379
|
"aria-label": "Breadcrumbs",
|
|
1380
1380
|
children: e.map((e, t) => {
|
|
1381
1381
|
let { type: n, label: r, url: i, onClick: a, active: o, disabled: s, element: c, title: l } = e;
|
|
1382
|
-
return /* @__PURE__ */ S(
|
|
1382
|
+
return /* @__PURE__ */ S(Kn, {
|
|
1383
1383
|
id: t,
|
|
1384
1384
|
className: po.item,
|
|
1385
1385
|
children: ({ isCurrent: e }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(ho, {
|
|
@@ -1403,7 +1403,7 @@ var Ta = {
|
|
|
1403
1403
|
label: "_label_iu2wi_1",
|
|
1404
1404
|
buttonGroup: "_buttonGroup_iu2wi_11"
|
|
1405
1405
|
}, vo = (e) => {
|
|
1406
|
-
let { basic: t = !1, items: n = [], header: r = "", onSelected: i = () => {}, small: a = !1, value: o = "", testId: s = void 0, disabled: c } = e, l = u(
|
|
1406
|
+
let { basic: t = !1, items: n = [], header: r = "", onSelected: i = () => {}, small: a = !1, value: o = "", testId: s = void 0, disabled: c } = e, l = u(W), d = (e, t, n, r, a) => {
|
|
1407
1407
|
e.preventDefault(), e.stopPropagation(), !(c || a || l) && i(t, n, r);
|
|
1408
1408
|
}, f = (e, t) => t === "string" ? e : t === "object" ? e.label : t === "array" ? e[1] : null, p = (e, t) => {
|
|
1409
1409
|
var n, r;
|
|
@@ -1418,8 +1418,8 @@ var Ta = {
|
|
|
1418
1418
|
className: _o.buttonGroup,
|
|
1419
1419
|
"data-testid": s,
|
|
1420
1420
|
children: n.map((e, r) => {
|
|
1421
|
-
let i = $a(e), o = r === 0 ?
|
|
1422
|
-
return v ? null : /* @__PURE__ */ S(
|
|
1421
|
+
let i = $a(e), o = r === 0 ? H.FIRST : r === n.length - 1 ? H.LAST : H.MIDDLE, s = f(e, i), l = p(e, i), u = m(e, i, l), v = h(e, i), y = g(e, i), b = _(i, u, l), { error: x, maxTooltipWidth: C, testId: w, tooltip: T, warning: E } = e;
|
|
1422
|
+
return v ? null : /* @__PURE__ */ S(K, {
|
|
1423
1423
|
error: !!x,
|
|
1424
1424
|
warning: !!E,
|
|
1425
1425
|
text: T || x || E,
|
|
@@ -1466,7 +1466,7 @@ var Ta = {
|
|
|
1466
1466
|
fullWidthStyleFix: "_fullWidthStyleFix_eamgh_43",
|
|
1467
1467
|
dismiss: "_dismiss_eamgh_48"
|
|
1468
1468
|
}, So = ({ children: e, content: t, placement: i = "top-center", closeOnOutsideClick: a = !0, fullWidth: o = !1, showCloseButton: c = !1, testId: f, disabled: p = !1, isOpen: m, onToggle: h, toggleOnTriggerClick: g = !0, isNonModal: y = !1, restoreTriggerFocusOnClose: w = !0 }) => {
|
|
1469
|
-
let T = u(
|
|
1469
|
+
let T = u(W), E = _(null), [D, O] = v(!1), k = p || T, A = m !== void 0, j = A ? m : D, M = l((e) => {
|
|
1470
1470
|
k || (A ? h == null || h(e) : O(e));
|
|
1471
1471
|
}, [
|
|
1472
1472
|
A,
|
|
@@ -1510,9 +1510,9 @@ var Ta = {
|
|
|
1510
1510
|
small: !0,
|
|
1511
1511
|
round: !0,
|
|
1512
1512
|
onClick: P,
|
|
1513
|
-
icon:
|
|
1513
|
+
icon: U.CLOSE
|
|
1514
1514
|
})
|
|
1515
|
-
})] }), /* @__PURE__ */ S(
|
|
1515
|
+
})] }), /* @__PURE__ */ S(Bn, { children: /* @__PURE__ */ S("svg", {
|
|
1516
1516
|
width: "12",
|
|
1517
1517
|
height: "12",
|
|
1518
1518
|
viewBox: "0 0 12 12",
|
|
@@ -1521,7 +1521,7 @@ var Ta = {
|
|
|
1521
1521
|
children: /* @__PURE__ */ S("path", { d: "M0 0 L6 6 L12 0" })
|
|
1522
1522
|
}) })]
|
|
1523
1523
|
});
|
|
1524
|
-
return g ? /* @__PURE__ */ C(
|
|
1524
|
+
return g ? /* @__PURE__ */ C(Rn, {
|
|
1525
1525
|
isOpen: j,
|
|
1526
1526
|
onOpenChange: N,
|
|
1527
1527
|
children: [I, L]
|
|
@@ -1555,46 +1555,46 @@ var Ta = {
|
|
|
1555
1555
|
hueSlider: "_hueSlider_1ieww_51"
|
|
1556
1556
|
}, Oo = ({ disabled: e }) => /* @__PURE__ */ C("div", {
|
|
1557
1557
|
className: Do.areaPicker,
|
|
1558
|
-
children: [/* @__PURE__ */ S(
|
|
1558
|
+
children: [/* @__PURE__ */ S(jn, {
|
|
1559
1559
|
className: Do.colorArea,
|
|
1560
1560
|
colorSpace: "hsb",
|
|
1561
1561
|
xChannel: "saturation",
|
|
1562
1562
|
yChannel: "brightness",
|
|
1563
1563
|
isDisabled: e,
|
|
1564
|
-
children: /* @__PURE__ */ S(
|
|
1565
|
-
}), /* @__PURE__ */ S(
|
|
1564
|
+
children: /* @__PURE__ */ S(Ln, { className: Do.colorThumb })
|
|
1565
|
+
}), /* @__PURE__ */ S(Nn, {
|
|
1566
1566
|
className: Do.hueSlider,
|
|
1567
1567
|
colorSpace: "hsb",
|
|
1568
1568
|
channel: "hue",
|
|
1569
1569
|
isDisabled: e,
|
|
1570
|
-
children: /* @__PURE__ */ S(
|
|
1570
|
+
children: /* @__PURE__ */ S(Wn, {
|
|
1571
1571
|
className: Do.hueSliderTrack,
|
|
1572
|
-
children: /* @__PURE__ */ S(
|
|
1572
|
+
children: /* @__PURE__ */ S(Ln, { className: Do.colorThumb })
|
|
1573
1573
|
})
|
|
1574
1574
|
})]
|
|
1575
1575
|
});
|
|
1576
1576
|
//#endregion
|
|
1577
1577
|
//#region src/components/color-input/color-input-utils.ts
|
|
1578
|
-
|
|
1578
|
+
Xn([Zn]);
|
|
1579
1579
|
var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao = (e) => {
|
|
1580
1580
|
try {
|
|
1581
|
-
return
|
|
1581
|
+
return Qn(e);
|
|
1582
1582
|
} catch {
|
|
1583
1583
|
return;
|
|
1584
1584
|
}
|
|
1585
1585
|
}, jo = (e) => {
|
|
1586
|
-
let t =
|
|
1587
|
-
if (t.isValid()) return
|
|
1586
|
+
let t = Yn(e);
|
|
1587
|
+
if (t.isValid()) return Qn(t.toHex());
|
|
1588
1588
|
let n = ko(e);
|
|
1589
1589
|
if (n === e) return;
|
|
1590
|
-
let r =
|
|
1591
|
-
return r.isValid() ?
|
|
1590
|
+
let r = Yn(n);
|
|
1591
|
+
return r.isValid() ? Qn(r.toHex()) : void 0;
|
|
1592
1592
|
}, Mo = (e) => {
|
|
1593
1593
|
var t;
|
|
1594
1594
|
if (e) return (t = Ao(e)) == null ? jo(e) : t;
|
|
1595
1595
|
}, No = (e) => {
|
|
1596
1596
|
var t;
|
|
1597
|
-
return ((t = Mo(e)) == null ?
|
|
1597
|
+
return ((t = Mo(e)) == null ? Qn("#808080") : t).toFormat("hsb");
|
|
1598
1598
|
}, Po = (e) => e.toString("hex"), Fo = (e) => {
|
|
1599
1599
|
let t = e.toFormat("hsb");
|
|
1600
1600
|
return t.getChannelValue("saturation") === 0 || t.getChannelValue("brightness") === 0;
|
|
@@ -1606,7 +1606,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1606
1606
|
if (Io(e, t)) return t.toFormat("hsb");
|
|
1607
1607
|
let n = e.toFormat("hsb"), r = t.toFormat("hsb");
|
|
1608
1608
|
return n.toString("hex") === r.toString("hex") && Fo(n) ? n.withChannelValue("hue", r.getChannelValue("hue")) : n;
|
|
1609
|
-
}, Ro = ({ columns: e, options: t, onSwatchSelect: n, selectedValue: r }) => /* @__PURE__ */ S(
|
|
1609
|
+
}, Ro = ({ columns: e, options: t, onSwatchSelect: n, selectedValue: r }) => /* @__PURE__ */ S(Fn, {
|
|
1610
1610
|
layout: "grid",
|
|
1611
1611
|
className: Do.swatchPicker,
|
|
1612
1612
|
style: e ? {
|
|
@@ -1617,14 +1617,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1617
1617
|
let t = Mo(e.value);
|
|
1618
1618
|
if (!t) return null;
|
|
1619
1619
|
let i = r && Io(t, r);
|
|
1620
|
-
return /* @__PURE__ */ S(
|
|
1620
|
+
return /* @__PURE__ */ S(In, {
|
|
1621
1621
|
color: t,
|
|
1622
1622
|
"aria-label": e.label,
|
|
1623
1623
|
onPress: () => n == null ? void 0 : n(t),
|
|
1624
1624
|
children: /* @__PURE__ */ S(q, {
|
|
1625
1625
|
round: !0,
|
|
1626
1626
|
basic: !0,
|
|
1627
|
-
icon: /* @__PURE__ */ S(
|
|
1627
|
+
icon: /* @__PURE__ */ S(Pn, {
|
|
1628
1628
|
className: Do.swatch,
|
|
1629
1629
|
color: t,
|
|
1630
1630
|
colorName: e.label
|
|
@@ -1635,7 +1635,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1635
1635
|
}, e.value);
|
|
1636
1636
|
})
|
|
1637
1637
|
}), zo = 100, Bo = ({ adjustColorsInDarkMode: e = !1, children: t, columns: n, disabled: r, hideAreaPicker: i = !1, onChange: a, onConfirm: o, options: s = [], testId: c, value: l }) => {
|
|
1638
|
-
let { locale: u } =
|
|
1638
|
+
let { locale: u } = Gn(), [f, p] = v(!1), [m, g] = v(() => No(l)), _ = Mo(l), y = !Io(No(l), m), x = h(() => rn((e) => a == null ? void 0 : a(e), zo), [a]);
|
|
1639
1639
|
d(() => () => x.cancel(), [x]), d(() => {
|
|
1640
1640
|
if (f) return;
|
|
1641
1641
|
let e = No(l);
|
|
@@ -1663,7 +1663,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1663
1663
|
})) == null ? void 0 : e.label;
|
|
1664
1664
|
if (t) return t;
|
|
1665
1665
|
let n = m.getColorName(u).split(" ").pop();
|
|
1666
|
-
return n ?
|
|
1666
|
+
return n ? Cn(n) : void 0;
|
|
1667
1667
|
}, [
|
|
1668
1668
|
s,
|
|
1669
1669
|
m,
|
|
@@ -1675,7 +1675,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1675
1675
|
}) : t;
|
|
1676
1676
|
return /* @__PURE__ */ S("div", {
|
|
1677
1677
|
className: b(Do.colorInput, j),
|
|
1678
|
-
children: /* @__PURE__ */ S(
|
|
1678
|
+
children: /* @__PURE__ */ S(Mn, {
|
|
1679
1679
|
value: m,
|
|
1680
1680
|
onChange: w,
|
|
1681
1681
|
children: /* @__PURE__ */ S(So, {
|
|
@@ -1735,7 +1735,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1735
1735
|
small: s,
|
|
1736
1736
|
active: e,
|
|
1737
1737
|
tooltip: r ? t : void 0,
|
|
1738
|
-
icon: r ? /* @__PURE__ */ S(
|
|
1738
|
+
icon: r ? /* @__PURE__ */ S(Pn, {
|
|
1739
1739
|
className: b(Do.swatch, s && Do.small),
|
|
1740
1740
|
color: r
|
|
1741
1741
|
}) : /* @__PURE__ */ S("span", {
|
|
@@ -1806,11 +1806,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1806
1806
|
children: e
|
|
1807
1807
|
}), Xo = (e) => {
|
|
1808
1808
|
switch (e) {
|
|
1809
|
-
case
|
|
1810
|
-
case
|
|
1809
|
+
case ki.LEFT: return qo.alignLeft;
|
|
1810
|
+
case ki.RIGHT: return qo.alignRight;
|
|
1811
1811
|
default: return "";
|
|
1812
1812
|
}
|
|
1813
|
-
}, Zo = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r =
|
|
1813
|
+
}, Zo = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r = ki.CENTER }) => /* @__PURE__ */ S("div", {
|
|
1814
1814
|
className: `${qo.divider} ${Xo(r)}`,
|
|
1815
1815
|
style: {
|
|
1816
1816
|
marginTop: t,
|
|
@@ -1830,7 +1830,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1830
1830
|
2: "h2"
|
|
1831
1831
|
}, es = o(({ children: e, helpText: t, onClick: n, onClickHelp: r, onIconClick: i, icon: o, libraryIcon: s, marginBottom: c, top: l = !1, testId: u, slot: d, className: f, style: p, ...m }, h) => {
|
|
1832
1832
|
let g = l ? 1 : 2, _ = !!t || !!r;
|
|
1833
|
-
return /* @__PURE__ */ S(
|
|
1833
|
+
return /* @__PURE__ */ S(nr, {
|
|
1834
1834
|
slot: d,
|
|
1835
1835
|
level: g,
|
|
1836
1836
|
render: (d) => {
|
|
@@ -1862,7 +1862,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1862
1862
|
s && /* @__PURE__ */ S(ma, {
|
|
1863
1863
|
text: (v = s == null ? void 0 : s.tooltip) == null ? "" : v,
|
|
1864
1864
|
onClick: s.onClick,
|
|
1865
|
-
icon:
|
|
1865
|
+
icon: U.LIBRARY
|
|
1866
1866
|
})
|
|
1867
1867
|
]
|
|
1868
1868
|
}, "icons"));
|
|
@@ -1877,13 +1877,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1877
1877
|
subheading: "_subheading_64i57_39",
|
|
1878
1878
|
content: "_content_64i57_42",
|
|
1879
1879
|
footer: "_footer_64i57_51"
|
|
1880
|
-
}, ns = (e) =>
|
|
1880
|
+
}, ns = (e) => sn(e) ? e.map((e, t) => /* @__PURE__ */ C(n, { children: [
|
|
1881
1881
|
e,
|
|
1882
1882
|
" ",
|
|
1883
1883
|
/* @__PURE__ */ S("br", {})
|
|
1884
1884
|
] }, t)) : e, rs = ({ dialog: e }) => {
|
|
1885
1885
|
let { heading: t, subheading: n, content: r, contentPadding: i = "var(--padding)", footer: a, scroll: o, width: s, height: c, onClose: l, testId: u } = e, d = t != null && t !== "";
|
|
1886
|
-
return /* @__PURE__ */ C(
|
|
1886
|
+
return /* @__PURE__ */ C($n, {
|
|
1887
1887
|
className: b(ts.dialog, s ? ts.inline : null, o ? ts.scroll : null),
|
|
1888
1888
|
style: {
|
|
1889
1889
|
width: s,
|
|
@@ -1906,7 +1906,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1906
1906
|
}) : null] }), l ? /* @__PURE__ */ S("div", {
|
|
1907
1907
|
className: ts.dismiss,
|
|
1908
1908
|
children: /* @__PURE__ */ S(q, {
|
|
1909
|
-
icon:
|
|
1909
|
+
icon: U.CLOSE,
|
|
1910
1910
|
round: !0,
|
|
1911
1911
|
basic: !0,
|
|
1912
1912
|
small: !0,
|
|
@@ -1964,7 +1964,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1964
1964
|
children: t
|
|
1965
1965
|
}) : /* @__PURE__ */ S(x, { children: t }), os = ({ tabs: e, activeTab: t, open: n, background: r, handleTabClick: i, width: a, testId: o }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("div", {
|
|
1966
1966
|
className: is.tabs,
|
|
1967
|
-
children: e.map((e, a) =>
|
|
1967
|
+
children: e.map((e, a) => pn(e) || ln(e) ? null : /* @__PURE__ */ S("div", {
|
|
1968
1968
|
className: b(is.tab, t === a && n ? is.active : "", e.disabled ? is.disabled : ""),
|
|
1969
1969
|
style: { background: r },
|
|
1970
1970
|
onClick: e.disabled ? void 0 : () => i(a),
|
|
@@ -1975,7 +1975,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1975
1975
|
})
|
|
1976
1976
|
}, a))
|
|
1977
1977
|
}), e.map((e, r) => {
|
|
1978
|
-
if (
|
|
1978
|
+
if (pn(e) || ln(e)) return null;
|
|
1979
1979
|
let i = t === r;
|
|
1980
1980
|
return /* @__PURE__ */ S("div", {
|
|
1981
1981
|
style: {
|
|
@@ -1992,12 +1992,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
1992
1992
|
ref: t,
|
|
1993
1993
|
className: is.resizeHandle,
|
|
1994
1994
|
...r,
|
|
1995
|
-
children: /* @__PURE__ */ S(
|
|
1995
|
+
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
1996
1996
|
});
|
|
1997
|
-
}), cs =
|
|
1997
|
+
}), cs = rr, ls = ({ children: e = null, width: t = 400, right: n = !1, onResize: r, setOpen: i, maxOpenWidth: a }) => {
|
|
1998
1998
|
let [o, s] = v(!1), c = a == null ? window.innerWidth / 2 : a;
|
|
1999
1999
|
return r ? /* @__PURE__ */ S(cs, {
|
|
2000
|
-
width:
|
|
2000
|
+
width: Sn(t),
|
|
2001
2001
|
height: 100,
|
|
2002
2002
|
minConstraints: [35, Infinity],
|
|
2003
2003
|
maxConstraints: [c, Infinity],
|
|
@@ -2016,7 +2016,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2016
2016
|
},
|
|
2017
2017
|
children: e
|
|
2018
2018
|
}) : /* @__PURE__ */ S(x, { children: e });
|
|
2019
|
-
}, us = ({ background: e = "var(--color-background-raised)", fixed: t = !1, open: n = !1, setOpen: r, right: i = !1, width: a = 400, closedWidth: o = 0, shadow: c = !1, top: l = 0, button: u = null, buttonAnimate: d = !0, buttonPosition: f =
|
|
2019
|
+
}, us = ({ background: e = "var(--color-background-raised)", fixed: t = !1, open: n = !1, setOpen: r, right: i = !1, width: a = 400, closedWidth: o = 0, shadow: c = !1, top: l = 0, button: u = null, buttonAnimate: d = !0, buttonPosition: f = Ai.BOTTOM, border: p = !1, children: m = null, tabs: h, defaultTabIndex: g = 0, activeTab: _, setActiveTab: y, testId: x, onResize: w, getActiveTab: T, onClose: E, onOpen: D, maxOpenWidth: O }) => {
|
|
2020
2020
|
let k = u === !0, A = !k && s(u), [j, M] = r ? [n, r] : k || h ? v(n) : [n, () => {}], [N, P] = v(g), F = r ? n : j, I = r || M, L = y === void 0 ? N : _, R = y || P, z = Array.isArray(a) ? a[L || 0] : a, B = F ? z : h ? 35 : o;
|
|
2021
2021
|
return /* @__PURE__ */ S(ls, {
|
|
2022
2022
|
width: B,
|
|
@@ -2065,7 +2065,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2065
2065
|
children: A ? u : /* @__PURE__ */ S(q, {
|
|
2066
2066
|
onClick: I ? () => I(!F) : void 0,
|
|
2067
2067
|
round: !0,
|
|
2068
|
-
icon: i ?
|
|
2068
|
+
icon: i ? U.CHEVRON_RIGHT : U.CHEVRON_LEFT,
|
|
2069
2069
|
testId: x ? `${x}-toggle` : void 0
|
|
2070
2070
|
})
|
|
2071
2071
|
})]
|
|
@@ -2073,7 +2073,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2073
2073
|
});
|
|
2074
2074
|
}, ds = { inputGroup: "_inputGroup_biuoa_1" }, fs = (e) => s(e) && typeof e.type == "string", ps = ({ children: t, small: r = !1, width: i = "100%" }) => {
|
|
2075
2075
|
let a = Array.isArray(t) ? t.filter((e) => s(e)) : [t], o = a.map((t, i) => {
|
|
2076
|
-
let o = fs(t), { groupOrder: s } = o ? { groupOrder: null } : t.props, c = a.length, l = i === 0, u = i === c - 1, d = s || (!c || c === 1 ? null : l ?
|
|
2076
|
+
let o = fs(t), { groupOrder: s } = o ? { groupOrder: null } : t.props, c = a.length, l = i === 0, u = i === c - 1, d = s || (!c || c === 1 ? null : l ? H.FIRST : u ? H.LAST : H.MIDDLE);
|
|
2077
2077
|
return o ? t : t.type === n ? /* @__PURE__ */ S(n, { children: t }, i) : /* @__PURE__ */ S(n, { children: e.cloneElement(t, {
|
|
2078
2078
|
groupOrder: d,
|
|
2079
2079
|
small: r
|
|
@@ -2102,11 +2102,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2102
2102
|
groupOrderMiddle: "_groupOrderMiddle_o2gwb_181",
|
|
2103
2103
|
groupOrderLast: "_groupOrderLast_o2gwb_185",
|
|
2104
2104
|
icon: "_icon_o2gwb_190"
|
|
2105
|
-
}, hs = o(({ error: e = null, tooltip: t = null, isInTable: n, width: r = void 0, small: i = !1, onChange: a =
|
|
2106
|
-
let A = u(
|
|
2105
|
+
}, hs = o(({ error: e = null, tooltip: t = null, isInTable: n, width: r = void 0, small: i = !1, onChange: a = yn, placeholder: o = "", value: s = "", icon: c, onKeyPress: l = () => {}, onFocus: d = () => {}, onBlur: f = () => {}, onPaste: p = () => {}, onKeyDown: m = () => {}, selectOnFocus: h = !0, name: g = void 0, type: _ = "text", tabIndex: v = 0, disabled: y = !1, right: x = !1, warning: w = null, groupOrder: T = null, maxTooltipWidth: E = void 0, testId: D = void 0, size: O = null }, k) => {
|
|
2106
|
+
let A = u(W), j = (() => {
|
|
2107
2107
|
if (T) switch (T) {
|
|
2108
|
-
case
|
|
2109
|
-
case
|
|
2108
|
+
case H.FIRST: return ms.groupOrderFirst;
|
|
2109
|
+
case H.LAST: return ms.groupOrderLast;
|
|
2110
2110
|
default: return ms.groupOrderMiddle;
|
|
2111
2111
|
}
|
|
2112
2112
|
return "";
|
|
@@ -2114,7 +2114,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2114
2114
|
return /* @__PURE__ */ S("div", {
|
|
2115
2115
|
style: { width: M },
|
|
2116
2116
|
className: b(j, ms.wrapper),
|
|
2117
|
-
children: /* @__PURE__ */ C(
|
|
2117
|
+
children: /* @__PURE__ */ C(K, {
|
|
2118
2118
|
error: !!e,
|
|
2119
2119
|
warning: !!w,
|
|
2120
2120
|
text: t || e || w,
|
|
@@ -2123,7 +2123,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2123
2123
|
display: "block",
|
|
2124
2124
|
children: [c && /* @__PURE__ */ S("span", {
|
|
2125
2125
|
className: ms.icon,
|
|
2126
|
-
children: /* @__PURE__ */ S(
|
|
2126
|
+
children: /* @__PURE__ */ S(G, { icon: c })
|
|
2127
2127
|
}), /* @__PURE__ */ S("input", {
|
|
2128
2128
|
ref: k,
|
|
2129
2129
|
type: _ || "text",
|
|
@@ -2174,8 +2174,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2174
2174
|
n = `Selected - ${(r = Object.keys(e)) == null ? void 0 : r.length} files`;
|
|
2175
2175
|
} else n = e == null ? void 0 : e.name;
|
|
2176
2176
|
return n || null;
|
|
2177
|
-
}, bs = ({ label: e = "Select", loading: t = !1, placeholder: n = "No file selected", disabled: r = !1, file: i, accept: a, multi: o, name: s, width: c, onChange: l =
|
|
2178
|
-
let f = u(
|
|
2177
|
+
}, bs = ({ label: e = "Select", loading: t = !1, placeholder: n = "No file selected", disabled: r = !1, file: i, accept: a, multi: o, name: s, width: c, onChange: l = yn, testId: d }) => {
|
|
2178
|
+
let f = u(W), p = _(null), m = ys(i, o);
|
|
2179
2179
|
return /* @__PURE__ */ C("div", {
|
|
2180
2180
|
onClick: () => {
|
|
2181
2181
|
var e;
|
|
@@ -2242,7 +2242,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2242
2242
|
children: e
|
|
2243
2243
|
}), Ts = ({ children: e, visible: t = !1, centered: n = !1, width: r = "100%", onEnter: i, onEscape: a }) => (Ss("Enter", () => {
|
|
2244
2244
|
t && i && i();
|
|
2245
|
-
}, [t, i]), /* @__PURE__ */ S(
|
|
2245
|
+
}, [t, i]), /* @__PURE__ */ S(tr, {
|
|
2246
2246
|
isOpen: t,
|
|
2247
2247
|
className: Cs.overlay,
|
|
2248
2248
|
shouldCloseOnInteractOutside: () => !1,
|
|
@@ -2250,15 +2250,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2250
2250
|
e || a == null || a();
|
|
2251
2251
|
},
|
|
2252
2252
|
children: /* @__PURE__ */ S("div", {
|
|
2253
|
-
id:
|
|
2253
|
+
id: ta,
|
|
2254
2254
|
className: Cs.container,
|
|
2255
|
-
children: /* @__PURE__ */ C(
|
|
2255
|
+
children: /* @__PURE__ */ C(er, {
|
|
2256
2256
|
className: Cs.modal,
|
|
2257
2257
|
children: [/* @__PURE__ */ S(ws, {
|
|
2258
2258
|
width: r,
|
|
2259
2259
|
centered: n,
|
|
2260
2260
|
children: t && e
|
|
2261
|
-
}), /* @__PURE__ */ S("div", { id:
|
|
2261
|
+
}), /* @__PURE__ */ S("div", { id: na })]
|
|
2262
2262
|
})
|
|
2263
2263
|
})
|
|
2264
2264
|
})), Es = {
|
|
@@ -2337,7 +2337,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2337
2337
|
testId: `${h}-file-input`,
|
|
2338
2338
|
accept: "image/*"
|
|
2339
2339
|
}),
|
|
2340
|
-
y && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(xs, {}), /* @__PURE__ */ S(Os, { percentage:
|
|
2340
|
+
y && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(xs, {}), /* @__PURE__ */ S(Os, { percentage: br(100 * w / As, 3) })] })
|
|
2341
2341
|
] }), P = /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(q, {
|
|
2342
2342
|
label: p || "Upload",
|
|
2343
2343
|
colored: !0,
|
|
@@ -2454,8 +2454,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2454
2454
|
return e.TOGGLE_DETAILS = "TOGGLE_DETAILS", e;
|
|
2455
2455
|
}({}), Vs = ({ type: e, onClose: t, isInToast: n, testId: r }) => /* @__PURE__ */ S("div", {
|
|
2456
2456
|
className: b(Rs.dismiss, n ? Rs.absolute : "", e === zs.INFO ? Rs.info : e === zs.SUCCESS ? Rs.success : e === zs.WARNING ? Rs.warning : e === zs.ERROR ? Rs.error : null),
|
|
2457
|
-
children: /* @__PURE__ */ S(
|
|
2458
|
-
icon:
|
|
2457
|
+
children: /* @__PURE__ */ S(G, {
|
|
2458
|
+
icon: U.CLOSE,
|
|
2459
2459
|
onClick: t,
|
|
2460
2460
|
testId: r
|
|
2461
2461
|
})
|
|
@@ -2471,7 +2471,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2471
2471
|
className: b(Rs.legendToggle),
|
|
2472
2472
|
onClick: n,
|
|
2473
2473
|
children: t ? "Hide details" : "Show details"
|
|
2474
|
-
}), /* @__PURE__ */ S(
|
|
2474
|
+
}), /* @__PURE__ */ S(Ji, {
|
|
2475
2475
|
expanded: t,
|
|
2476
2476
|
children: /* @__PURE__ */ S("div", {
|
|
2477
2477
|
className: Rs.detailsText,
|
|
@@ -2479,20 +2479,20 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2479
2479
|
})
|
|
2480
2480
|
})] }), Ws = ({ type: e }) => {
|
|
2481
2481
|
switch (e) {
|
|
2482
|
-
case zs.SUCCESS: return /* @__PURE__ */ S(
|
|
2483
|
-
icon:
|
|
2482
|
+
case zs.SUCCESS: return /* @__PURE__ */ S(G, {
|
|
2483
|
+
icon: U.SUCCESS,
|
|
2484
2484
|
size: 16
|
|
2485
2485
|
});
|
|
2486
|
-
case zs.WARNING: return /* @__PURE__ */ S(
|
|
2487
|
-
icon:
|
|
2486
|
+
case zs.WARNING: return /* @__PURE__ */ S(G, {
|
|
2487
|
+
icon: U.WARNING,
|
|
2488
2488
|
size: 16
|
|
2489
2489
|
});
|
|
2490
|
-
case zs.ERROR: return /* @__PURE__ */ S(
|
|
2491
|
-
icon:
|
|
2490
|
+
case zs.ERROR: return /* @__PURE__ */ S(G, {
|
|
2491
|
+
icon: U.ERROR,
|
|
2492
2492
|
size: 16
|
|
2493
2493
|
});
|
|
2494
|
-
default: return /* @__PURE__ */ S(
|
|
2495
|
-
icon:
|
|
2494
|
+
default: return /* @__PURE__ */ S(G, {
|
|
2495
|
+
icon: U.INFO,
|
|
2496
2496
|
size: 16
|
|
2497
2497
|
});
|
|
2498
2498
|
}
|
|
@@ -2583,8 +2583,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2583
2583
|
groupOrderFirst: "_groupOrderFirst_hq6m3_197",
|
|
2584
2584
|
groupOrderMiddle: "_groupOrderMiddle_hq6m3_198",
|
|
2585
2585
|
groupOrderLast: "_groupOrderLast_hq6m3_202"
|
|
2586
|
-
}, Zs = ({ disabled: e = !1, error: t = null, warning: n = null, tooltip: r = null, options: i, onChange: a =
|
|
2587
|
-
let C = u(
|
|
2586
|
+
}, Zs = ({ disabled: e = !1, error: t = null, warning: n = null, tooltip: r = null, options: i, onChange: a = yn, onFocus: o = yn, onBlur: s = yn, right: c = !1, small: l = !1, tabIndex: d = 0, selectedOption: f, width: p = null, groupOrder: m, testId: h, isInTable: g = !1, clearable: _, placeholder: v, hasNonExistentValue: y, maxTooltipWidth: x }) => {
|
|
2587
|
+
let C = u(W), w = f === null || (f == null ? void 0 : f.value) === null ? "unselected" : f == null ? void 0 : f.value, T = w === "unselected", E = (w === "unselected" || _ ? [/* @__PURE__ */ S("option", {
|
|
2588
2588
|
value: "unselected",
|
|
2589
2589
|
disabled: !_,
|
|
2590
2590
|
hidden: !_,
|
|
@@ -2599,13 +2599,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2599
2599
|
children: e.label
|
|
2600
2600
|
}, t))), D = (() => {
|
|
2601
2601
|
if (m) switch (m) {
|
|
2602
|
-
case
|
|
2603
|
-
case
|
|
2602
|
+
case H.FIRST: return Xs.groupOrderFirst;
|
|
2603
|
+
case H.LAST: return Xs.groupOrderLast;
|
|
2604
2604
|
default: return Xs.groupOrderMiddle;
|
|
2605
2605
|
}
|
|
2606
2606
|
return "";
|
|
2607
2607
|
})();
|
|
2608
|
-
return /* @__PURE__ */ S(
|
|
2608
|
+
return /* @__PURE__ */ S(K, {
|
|
2609
2609
|
error: !!t,
|
|
2610
2610
|
warning: !!n,
|
|
2611
2611
|
text: r || t || n,
|
|
@@ -2646,7 +2646,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2646
2646
|
})();
|
|
2647
2647
|
}, []), e;
|
|
2648
2648
|
}, ec = () => window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, tc = () => {
|
|
2649
|
-
let [e, t] = v(ec()), n =
|
|
2649
|
+
let [e, t] = v(ec()), n = rn(() => t(ec()), 150);
|
|
2650
2650
|
return d(() => (window.addEventListener("resize", n), () => {
|
|
2651
2651
|
window.removeEventListener("resize", n);
|
|
2652
2652
|
}), []), e;
|
|
@@ -2718,11 +2718,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2718
2718
|
}),
|
|
2719
2719
|
/* @__PURE__ */ S("span", {
|
|
2720
2720
|
className: nc.check,
|
|
2721
|
-
children: i ? /* @__PURE__ */ S(
|
|
2721
|
+
children: i ? /* @__PURE__ */ S(G, { icon: U.CHECK }) : null
|
|
2722
2722
|
})
|
|
2723
2723
|
]
|
|
2724
2724
|
}), xc = ({ section: e, selected: t, focused: n, onSelectOption: r, closeLayer: i }) => {
|
|
2725
|
-
let a = u(
|
|
2725
|
+
let a = u(W);
|
|
2726
2726
|
switch (e.type) {
|
|
2727
2727
|
case Ga.HEADING: return /* @__PURE__ */ S(yc, { label: e.label });
|
|
2728
2728
|
case Ga.OPTION:
|
|
@@ -2786,7 +2786,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2786
2786
|
u,
|
|
2787
2787
|
f
|
|
2788
2788
|
]);
|
|
2789
|
-
let y = /* @__PURE__ */ S(
|
|
2789
|
+
let y = /* @__PURE__ */ S(jr, {
|
|
2790
2790
|
ref: l,
|
|
2791
2791
|
"aria-label": "Options",
|
|
2792
2792
|
className: p,
|
|
@@ -2804,7 +2804,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2804
2804
|
children: (e) => {
|
|
2805
2805
|
var t;
|
|
2806
2806
|
let n = e.type === Ga.HEADING;
|
|
2807
|
-
return /* @__PURE__ */ S(
|
|
2807
|
+
return /* @__PURE__ */ S(Mr, {
|
|
2808
2808
|
id: e.id,
|
|
2809
2809
|
textValue: `${String((t = e.label) == null ? "" : t)}${e.details ? String(e.details) : ""}`,
|
|
2810
2810
|
isDisabled: n || e.disabled,
|
|
@@ -2820,8 +2820,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2820
2820
|
});
|
|
2821
2821
|
}
|
|
2822
2822
|
});
|
|
2823
|
-
return m ? /* @__PURE__ */ S(
|
|
2824
|
-
layout:
|
|
2823
|
+
return m ? /* @__PURE__ */ S(Pr, {
|
|
2824
|
+
layout: Nr,
|
|
2825
2825
|
layoutOptions: { rowSize: u },
|
|
2826
2826
|
children: y
|
|
2827
2827
|
}) : y;
|
|
@@ -2876,7 +2876,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2876
2876
|
e.stopPropagation();
|
|
2877
2877
|
},
|
|
2878
2878
|
children: e.label
|
|
2879
|
-
}, t)), s.length > 0 && /* @__PURE__ */ S(
|
|
2879
|
+
}, t)), s.length > 0 && /* @__PURE__ */ S(K, {
|
|
2880
2880
|
text: s.map((e, t) => /* @__PURE__ */ S("div", { children: e.label }, t)),
|
|
2881
2881
|
display: "inline-flex",
|
|
2882
2882
|
children: /* @__PURE__ */ S("span", {
|
|
@@ -2885,7 +2885,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2885
2885
|
})
|
|
2886
2886
|
})]
|
|
2887
2887
|
});
|
|
2888
|
-
}, Oc = ({ selectedOptions: e, searchable: t = !1, searchValue: n, onChange: r =
|
|
2888
|
+
}, Oc = ({ selectedOptions: e, searchable: t = !1, searchValue: n, onChange: r = yn, inputRef: i, error: a, placeholder: o = "Select...", small: s, testId: c }) => {
|
|
2889
2889
|
let l = _(null), u = Array.isArray(e), d = u ? e.length > 0 : !!e, f = n ? n.length + 1 : 1;
|
|
2890
2890
|
return /* @__PURE__ */ C("div", {
|
|
2891
2891
|
className: Ec.triggerInputContainer,
|
|
@@ -2920,8 +2920,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2920
2920
|
var k;
|
|
2921
2921
|
let [A, j] = Qs(), M = Array.isArray(e) ? e.length > 0 && ((k = e[0]) == null ? void 0 : k.value) : e == null ? void 0 : e.value, N = r && M, P = (() => {
|
|
2922
2922
|
if (w) switch (w) {
|
|
2923
|
-
case
|
|
2924
|
-
case
|
|
2923
|
+
case H.FIRST: return Ec.groupOrderFirst;
|
|
2924
|
+
case H.LAST: return Ec.groupOrderLast;
|
|
2925
2925
|
default: return Ec.groupOrderMiddle;
|
|
2926
2926
|
}
|
|
2927
2927
|
return "";
|
|
@@ -2968,14 +2968,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
2968
2968
|
e.stopPropagation(), p && p(e);
|
|
2969
2969
|
},
|
|
2970
2970
|
"data-testid": O && `${O}-clear`,
|
|
2971
|
-
children: /* @__PURE__ */ S(
|
|
2971
|
+
children: /* @__PURE__ */ S(G, { icon: U.CLOSE })
|
|
2972
2972
|
}) : /* @__PURE__ */ S("span", {
|
|
2973
2973
|
className: b(Ec.iconOpen),
|
|
2974
|
-
children: /* @__PURE__ */ S(
|
|
2974
|
+
children: /* @__PURE__ */ S(G, { icon: "chevron down" })
|
|
2975
2975
|
})
|
|
2976
2976
|
})]
|
|
2977
2977
|
})] });
|
|
2978
|
-
return /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(
|
|
2978
|
+
return /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(K, {
|
|
2979
2979
|
error: !!o,
|
|
2980
2980
|
warning: !!s,
|
|
2981
2981
|
text: c || o || s,
|
|
@@ -3082,17 +3082,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3082
3082
|
return e.CLOSE_LAYER = "CLOSE_LAYER", e.OPEN_LAYER = "OPEN_LAYER", e.SET_VISIBLE_OPTIONS = "SET_VISIBLE_OPTIONS", e.CLEAR_SEARCH = "CLEAR_SEARCH", e.RESET_LAYER_FOCUS = "RESET_LAYER_FOCUS", e.FOCUS_LAYER_OPTIONS = "FOCUS_LAYER_OPTIONS", e.BLUR_TRIGGER_INPUTS = "BLUR_TRIGGER_INPUTS", e.FOCUS_TRIGGER_INPUTS = "FOCUS_TRIGGER_INPUTS", e.ON_CHANGE_SEARCH = "ON_CHANGE_SEARCH", e;
|
|
3083
3083
|
}({}), Bc = /* @__PURE__ */ function(e) {
|
|
3084
3084
|
return e.RIGHT = "ArrowRight", e.LEFT = "ArrowLeft", e.UP = "ArrowUp", e.DOWN = "ArrowDown", e.ENTER = "Enter", e.ESC = "Escape", e.TAB = "Tab", e;
|
|
3085
|
-
}({}), Vc = ({ state: e, dispatch: t, options: n, setTriggerFocus: r, disabled: i, disabledContext: a, onCreate: o, onChange: s, selectedOptions: c, width: u, small: f, isFontLoaded: p, placeholder:
|
|
3086
|
-
let
|
|
3085
|
+
}({}), Vc = ({ state: e, dispatch: t, options: n, setTriggerFocus: r, disabled: i, disabledContext: a, onCreate: o, onChange: s, selectedOptions: c, width: u, small: f, isFontLoaded: p, placeholder: h, firstSelectedOptionIndex: g, createAble: y, listRef: b, autoLayerWidth: x, triggerRef: S, layerContentRef: C }) => {
|
|
3086
|
+
let [w, T] = v(0), E = () => {
|
|
3087
3087
|
e.isLayerOpen && t({ type: zc.CLOSE_LAYER }), r();
|
|
3088
|
-
},
|
|
3088
|
+
}, D = () => t({ type: zc.OPEN_LAYER }), O = _(!0);
|
|
3089
3089
|
d(() => {
|
|
3090
|
-
|
|
3090
|
+
O.current ? O.current = !1 : t({
|
|
3091
3091
|
type: zc.SET_VISIBLE_OPTIONS,
|
|
3092
3092
|
options: n
|
|
3093
3093
|
});
|
|
3094
3094
|
}, [n]);
|
|
3095
|
-
let
|
|
3095
|
+
let k = (e, r, l) => {
|
|
3096
3096
|
if (!(i || a)) {
|
|
3097
3097
|
if (l && l(), r) {
|
|
3098
3098
|
if (r.createAble && o) o(r.value);
|
|
@@ -3108,214 +3108,224 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3108
3108
|
options: n
|
|
3109
3109
|
});
|
|
3110
3110
|
}
|
|
3111
|
-
},
|
|
3111
|
+
}, A = l(() => u ? u === "auto" ? _c(n, f, p, h) : u : "100%", [n, p]), j = l((e) => {
|
|
3112
3112
|
var t;
|
|
3113
3113
|
let r = (t = e == null ? void 0 : e.getBoundingClientRect().width) == null ? 0 : t;
|
|
3114
|
-
return
|
|
3114
|
+
return x ? Math.max(_c(n, f, p, h), r) : r;
|
|
3115
3115
|
}, [
|
|
3116
3116
|
n,
|
|
3117
3117
|
p,
|
|
3118
|
-
|
|
3118
|
+
x,
|
|
3119
3119
|
f,
|
|
3120
|
-
|
|
3121
|
-
])
|
|
3120
|
+
h
|
|
3121
|
+
]);
|
|
3122
|
+
m(() => {
|
|
3123
|
+
e.isLayerOpen && T(j(S.current));
|
|
3124
|
+
}, [
|
|
3125
|
+
j,
|
|
3126
|
+
e.isLayerOpen,
|
|
3127
|
+
e.visibleOptions,
|
|
3128
|
+
c,
|
|
3129
|
+
S
|
|
3130
|
+
]);
|
|
3131
|
+
let M = _(E);
|
|
3132
|
+
M.current = E, d(() => {
|
|
3133
|
+
if (!e.isLayerOpen) return;
|
|
3134
|
+
let t = !1, n = window.setTimeout(() => {
|
|
3135
|
+
t = !0;
|
|
3136
|
+
}, 0), r = (e) => {
|
|
3137
|
+
var n, r;
|
|
3138
|
+
if (!t) return;
|
|
3139
|
+
let i = e.target;
|
|
3140
|
+
i && ((n = S.current) != null && n.contains(i) || (r = C.current) != null && r.contains(i) || M.current());
|
|
3141
|
+
};
|
|
3142
|
+
return document.addEventListener("pointerdown", r, !0), () => {
|
|
3143
|
+
window.clearTimeout(n), document.removeEventListener("pointerdown", r, !0);
|
|
3144
|
+
};
|
|
3145
|
+
}, [
|
|
3146
|
+
e.isLayerOpen,
|
|
3147
|
+
S,
|
|
3148
|
+
C
|
|
3149
|
+
]);
|
|
3150
|
+
let N = () => {
|
|
3122
3151
|
if (!(i || a)) {
|
|
3123
3152
|
if (e.isLayerOpen) {
|
|
3124
|
-
|
|
3153
|
+
E();
|
|
3125
3154
|
return;
|
|
3126
3155
|
}
|
|
3127
3156
|
r(), t({
|
|
3128
3157
|
type: zc.RESET_LAYER_FOCUS,
|
|
3129
3158
|
options: n,
|
|
3130
|
-
firstSelectedOptionIndex:
|
|
3131
|
-
}),
|
|
3159
|
+
firstSelectedOptionIndex: g
|
|
3160
|
+
}), D();
|
|
3132
3161
|
}
|
|
3133
|
-
},
|
|
3162
|
+
}, P = _(!0);
|
|
3134
3163
|
d(() => {
|
|
3135
|
-
|
|
3164
|
+
P.current ? P.current = !1 : e.isLayerOpen || t({
|
|
3136
3165
|
type: zc.CLEAR_SEARCH,
|
|
3137
3166
|
options: n
|
|
3138
3167
|
});
|
|
3139
3168
|
}, [e.isLayerOpen]);
|
|
3140
|
-
let
|
|
3169
|
+
let F = (e, t) => {
|
|
3141
3170
|
let n = c instanceof Array ? c.filter((e) => e.value !== t.value) : null;
|
|
3142
3171
|
s && s(e, n);
|
|
3143
|
-
},
|
|
3172
|
+
}, I = (e) => {
|
|
3144
3173
|
let t = c instanceof Array ? [] : { value: null };
|
|
3145
3174
|
s && s(e, t);
|
|
3146
|
-
},
|
|
3147
|
-
e.isLayerOpen ||
|
|
3175
|
+
}, L = (r) => {
|
|
3176
|
+
e.isLayerOpen || D(), t({
|
|
3148
3177
|
type: zc.ON_CHANGE_SEARCH,
|
|
3149
3178
|
options: n,
|
|
3150
3179
|
value: r,
|
|
3151
|
-
createAble:
|
|
3180
|
+
createAble: y
|
|
3152
3181
|
});
|
|
3153
|
-
},
|
|
3182
|
+
}, R = () => {
|
|
3154
3183
|
t({
|
|
3155
3184
|
type: zc.RESET_LAYER_FOCUS,
|
|
3156
3185
|
options: n,
|
|
3157
|
-
firstSelectedOptionIndex:
|
|
3158
|
-
}),
|
|
3159
|
-
},
|
|
3160
|
-
|
|
3161
|
-
},
|
|
3186
|
+
firstSelectedOptionIndex: g
|
|
3187
|
+
}), D(), t({ type: zc.BLUR_TRIGGER_INPUTS });
|
|
3188
|
+
}, z = (e) => {
|
|
3189
|
+
b.current && Number.isInteger(e) && b.current.scrollToRow({ index: e });
|
|
3190
|
+
}, B = (n) => {
|
|
3162
3191
|
let r = Pc(n, e.layerFocus, e.visibleOptions);
|
|
3163
3192
|
t({
|
|
3164
3193
|
type: zc.FOCUS_LAYER_OPTIONS,
|
|
3165
3194
|
nextLayerFocus: r
|
|
3166
|
-
}),
|
|
3167
|
-
},
|
|
3195
|
+
}), z(r.current);
|
|
3196
|
+
}, ee = (e) => {
|
|
3168
3197
|
t({
|
|
3169
3198
|
type: zc.FOCUS_TRIGGER_INPUTS,
|
|
3170
3199
|
ICustomSelectDirection: e,
|
|
3171
3200
|
selectedOptions: c
|
|
3172
3201
|
});
|
|
3173
|
-
},
|
|
3174
|
-
|
|
3175
|
-
},
|
|
3202
|
+
}, te = (e) => I(e), ne = c && c[e.triggerFocus.currentOption], V = (t) => {
|
|
3203
|
+
F(t, c[e.triggerFocus.currentOption]);
|
|
3204
|
+
}, re = (t) => {
|
|
3176
3205
|
var n;
|
|
3177
|
-
let r = Array.isArray(c) ? void 0 :
|
|
3178
|
-
|
|
3179
|
-
},
|
|
3206
|
+
let r = Array.isArray(c) ? void 0 : E;
|
|
3207
|
+
k(t, e == null || (n = e.visibleOptions) == null ? void 0 : n[e.layerFocus.current], r);
|
|
3208
|
+
}, ie = e.triggerFocus.clearAll;
|
|
3180
3209
|
return {
|
|
3181
|
-
getTriggerWidth:
|
|
3210
|
+
getTriggerWidth: A,
|
|
3182
3211
|
onKeyEvent: (n, r) => {
|
|
3183
3212
|
switch (n) {
|
|
3184
3213
|
case Bc.UP:
|
|
3185
|
-
r.preventDefault(),
|
|
3214
|
+
r.preventDefault(), B("up");
|
|
3186
3215
|
break;
|
|
3187
3216
|
case Bc.DOWN:
|
|
3188
|
-
r.preventDefault(), e.isLayerOpen ?
|
|
3217
|
+
r.preventDefault(), e.isLayerOpen ? B("down") : R();
|
|
3189
3218
|
break;
|
|
3190
3219
|
case Bc.LEFT:
|
|
3191
|
-
|
|
3220
|
+
ee("left");
|
|
3192
3221
|
break;
|
|
3193
3222
|
case Bc.RIGHT:
|
|
3194
|
-
|
|
3223
|
+
ee("right");
|
|
3195
3224
|
break;
|
|
3196
3225
|
case Bc.ENTER:
|
|
3197
|
-
e.isLayerOpen && r.preventDefault(),
|
|
3226
|
+
e.isLayerOpen && r.preventDefault(), ie ? te(r) : ne ? V(r) : re(r);
|
|
3198
3227
|
break;
|
|
3199
3228
|
case Bc.ESC:
|
|
3200
|
-
e.isLayerOpen && (r.preventDefault(), r.stopPropagation(),
|
|
3229
|
+
e.isLayerOpen && (r.preventDefault(), r.stopPropagation(), E());
|
|
3201
3230
|
break;
|
|
3202
3231
|
case Bc.TAB: t({ type: zc.CLOSE_LAYER });
|
|
3203
3232
|
}
|
|
3204
3233
|
},
|
|
3205
|
-
clearAllIsFocused:
|
|
3206
|
-
onClickTrigger:
|
|
3207
|
-
onChangeSearch:
|
|
3208
|
-
onClickDeselectOption:
|
|
3209
|
-
onClickClearAll:
|
|
3210
|
-
closeLayer:
|
|
3211
|
-
onSelectOption:
|
|
3212
|
-
|
|
3234
|
+
clearAllIsFocused: ie,
|
|
3235
|
+
onClickTrigger: N,
|
|
3236
|
+
onChangeSearch: L,
|
|
3237
|
+
onClickDeselectOption: F,
|
|
3238
|
+
onClickClearAll: I,
|
|
3239
|
+
closeLayer: E,
|
|
3240
|
+
onSelectOption: k,
|
|
3241
|
+
layerWidth: w,
|
|
3242
|
+
onOpenChange: (e) => {
|
|
3243
|
+
e || E();
|
|
3244
|
+
}
|
|
3213
3245
|
};
|
|
3214
3246
|
}, Hc = (e) => {
|
|
3215
|
-
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: s, onCreate: c = null, placeholder:
|
|
3247
|
+
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: s, onCreate: c = null, placeholder: d = "", small: f = !1, tabIndex: p = 0, onFocus: m = () => {}, onBlur: h = () => {}, searchable: v = !0, clearable: y = !1, maxTooltipWidth: b, closeOnOptionActionClick: x, isInTable: w = !1, groupOrder: T, firstSelectedOptionIndex: E = 0, right: D = !1, testId: O = void 0 } = e, k = u(W), A = c !== null, j = _(null), M = _(null), N = _(null), P = $s(), F = l(() => {
|
|
3216
3248
|
var e;
|
|
3217
|
-
(e =
|
|
3218
|
-
}, []), [
|
|
3249
|
+
(e = M.current) == null || e.focus();
|
|
3250
|
+
}, []), [I, L] = g(Rc, {
|
|
3219
3251
|
options: o,
|
|
3220
|
-
firstSelectedOptionIndex:
|
|
3252
|
+
firstSelectedOptionIndex: E
|
|
3221
3253
|
}, ({ options: e }) => ({
|
|
3222
3254
|
searchValue: "",
|
|
3223
3255
|
visibleOptions: e,
|
|
3224
|
-
layerFocus: Nc(e,
|
|
3256
|
+
layerFocus: Nc(e, E == null ? 0 : E),
|
|
3225
3257
|
triggerFocus: jc,
|
|
3226
3258
|
isLayerOpen: !1
|
|
3227
|
-
})), { getTriggerWidth:
|
|
3259
|
+
})), { getTriggerWidth: R, onKeyEvent: z, clearAllIsFocused: B, onClickTrigger: ee, onChangeSearch: te, onClickDeselectOption: ne, onClickClearAll: V, closeLayer: re, onSelectOption: ie, layerWidth: ae, onOpenChange: oe } = Vc({
|
|
3228
3260
|
...e,
|
|
3229
|
-
state:
|
|
3230
|
-
dispatch:
|
|
3231
|
-
setTriggerFocus:
|
|
3232
|
-
disabledContext:
|
|
3233
|
-
isFontLoaded:
|
|
3234
|
-
createAble:
|
|
3235
|
-
listRef:
|
|
3261
|
+
state: I,
|
|
3262
|
+
dispatch: L,
|
|
3263
|
+
setTriggerFocus: F,
|
|
3264
|
+
disabledContext: k,
|
|
3265
|
+
isFontLoaded: P,
|
|
3266
|
+
createAble: A,
|
|
3267
|
+
listRef: j,
|
|
3268
|
+
triggerRef: M,
|
|
3269
|
+
layerContentRef: N
|
|
3236
3270
|
});
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
}, [
|
|
3240
|
-
le,
|
|
3241
|
-
V.isLayerOpen,
|
|
3242
|
-
V.visibleOptions,
|
|
3243
|
-
s
|
|
3244
|
-
]);
|
|
3245
|
-
let ue = _(se);
|
|
3246
|
-
return ue.current = se, d(() => {
|
|
3247
|
-
if (!V.isLayerOpen) return;
|
|
3248
|
-
let e = !1, t = window.setTimeout(() => {
|
|
3249
|
-
e = !0;
|
|
3250
|
-
}, 0), n = (t) => {
|
|
3251
|
-
var n, r;
|
|
3252
|
-
if (!e) return;
|
|
3253
|
-
let i = t.target;
|
|
3254
|
-
i && ((n = F.current) != null && n.contains(i) || (r = I.current) != null && r.contains(i) || ue.current());
|
|
3255
|
-
};
|
|
3256
|
-
return document.addEventListener("pointerdown", n, !0), () => {
|
|
3257
|
-
window.clearTimeout(t), document.removeEventListener("pointerdown", n, !0);
|
|
3258
|
-
};
|
|
3259
|
-
}, [V.isLayerOpen]), /* @__PURE__ */ C("div", {
|
|
3260
|
-
style: { width: te() },
|
|
3271
|
+
return /* @__PURE__ */ C("div", {
|
|
3272
|
+
style: { width: R() },
|
|
3261
3273
|
onKeyDown: (e) => {
|
|
3262
|
-
Object.values(Bc).includes(e.key) &&
|
|
3274
|
+
Object.values(Bc).includes(e.key) && z(e.key, e);
|
|
3263
3275
|
},
|
|
3264
3276
|
children: [/* @__PURE__ */ S(kc, {
|
|
3265
3277
|
selectedOptions: s,
|
|
3266
|
-
searchValue:
|
|
3267
|
-
isOpen:
|
|
3268
|
-
focusedSelectedOptionIndex: typeof
|
|
3269
|
-
clearAllIsFocused:
|
|
3270
|
-
searchable:
|
|
3271
|
-
triggerRef:
|
|
3278
|
+
searchValue: I.searchValue,
|
|
3279
|
+
isOpen: I.isLayerOpen,
|
|
3280
|
+
focusedSelectedOptionIndex: typeof I.triggerFocus.currentOption == "number" ? I.triggerFocus.currentOption : void 0,
|
|
3281
|
+
clearAllIsFocused: B,
|
|
3282
|
+
searchable: v,
|
|
3283
|
+
triggerRef: M,
|
|
3272
3284
|
error: r,
|
|
3273
3285
|
warning: i,
|
|
3274
3286
|
tooltip: a,
|
|
3275
|
-
small:
|
|
3276
|
-
isInTable:
|
|
3277
|
-
disabled: n ||
|
|
3278
|
-
clearable:
|
|
3279
|
-
tabIndex:
|
|
3280
|
-
onClickTrigger:
|
|
3281
|
-
onChangeSearch:
|
|
3282
|
-
onClickDeselect:
|
|
3283
|
-
onClickClear:
|
|
3284
|
-
onFocus:
|
|
3285
|
-
onBlur:
|
|
3286
|
-
groupOrder:
|
|
3287
|
-
maxTooltipWidth:
|
|
3288
|
-
placeholder:
|
|
3289
|
-
right:
|
|
3290
|
-
testId:
|
|
3287
|
+
small: f,
|
|
3288
|
+
isInTable: w,
|
|
3289
|
+
disabled: n || k,
|
|
3290
|
+
clearable: y,
|
|
3291
|
+
tabIndex: p,
|
|
3292
|
+
onClickTrigger: ee,
|
|
3293
|
+
onChangeSearch: te,
|
|
3294
|
+
onClickDeselect: ne,
|
|
3295
|
+
onClickClear: V,
|
|
3296
|
+
onFocus: m,
|
|
3297
|
+
onBlur: h,
|
|
3298
|
+
groupOrder: T,
|
|
3299
|
+
maxTooltipWidth: b,
|
|
3300
|
+
placeholder: d,
|
|
3301
|
+
right: D,
|
|
3302
|
+
testId: O
|
|
3291
3303
|
}), /* @__PURE__ */ S(za, {
|
|
3292
3304
|
className: nc.layerContainer,
|
|
3293
3305
|
placement: "bottom-start",
|
|
3294
|
-
portalTriggerRef:
|
|
3295
|
-
triggerRef:
|
|
3306
|
+
portalTriggerRef: M,
|
|
3307
|
+
triggerRef: M,
|
|
3296
3308
|
offset: 0,
|
|
3297
|
-
isOpen:
|
|
3298
|
-
onOpenChange:
|
|
3299
|
-
e || se();
|
|
3300
|
-
},
|
|
3309
|
+
isOpen: I.isLayerOpen,
|
|
3310
|
+
onOpenChange: oe,
|
|
3301
3311
|
isNonModal: !0,
|
|
3302
3312
|
disableFocusManagement: !0,
|
|
3303
3313
|
children: /* @__PURE__ */ S("div", {
|
|
3304
|
-
ref:
|
|
3314
|
+
ref: N,
|
|
3305
3315
|
children: /* @__PURE__ */ S(Tc, {
|
|
3306
|
-
listRef:
|
|
3307
|
-
sections:
|
|
3316
|
+
listRef: j,
|
|
3317
|
+
sections: I.visibleOptions,
|
|
3308
3318
|
selectedOptions: s,
|
|
3309
3319
|
onSelectOption: (e, n) => {
|
|
3310
|
-
|
|
3320
|
+
ie(e, n, t ? void 0 : re);
|
|
3311
3321
|
},
|
|
3312
3322
|
closeLayer: () => {
|
|
3313
|
-
|
|
3323
|
+
x && re();
|
|
3314
3324
|
},
|
|
3315
|
-
width:
|
|
3316
|
-
small:
|
|
3317
|
-
focusedOptionIndex: typeof
|
|
3318
|
-
testId:
|
|
3325
|
+
width: ae,
|
|
3326
|
+
small: f,
|
|
3327
|
+
focusedOptionIndex: typeof I.layerFocus.current == "number" ? I.layerFocus.current : void 0,
|
|
3328
|
+
testId: O && `${O}-layer`
|
|
3319
3329
|
})
|
|
3320
3330
|
})
|
|
3321
3331
|
})]
|
|
@@ -3349,7 +3359,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3349
3359
|
hasNonExistentValue: n && c !== void 0 ? Qc(o, c) : !1
|
|
3350
3360
|
};
|
|
3351
3361
|
}, el = (e) => {
|
|
3352
|
-
let { name: t = "", options: n = [], value: r, native: i = !1, onChange: a =
|
|
3362
|
+
let { name: t = "", options: n = [], value: r, native: i = !1, onChange: a = yn, warning: o, error: s, checkNonExistentValues: c = !0, closeOnOptionActionClick: l = !0, testId: u, disabled: d, multi: f, ...p } = e, { multi: m, options: h, selectedOptions: g, firstSelectedOptionIndex: _, hasNonExistentValue: v } = $c(n, r, c), y = !m, b = i && y;
|
|
3353
3363
|
i && !y && console.warn("Native select does not support provided props (see stories)");
|
|
3354
3364
|
let x = "Value no longer available for re-selection", w = v && !d ? o ? /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("div", { children: x }), /* @__PURE__ */ S("div", { children: o })] }) : x : o, T = v && s && !d ? /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("div", { children: x }), /* @__PURE__ */ S("div", { children: s })] }) : s, E = (e, n) => {
|
|
3355
3365
|
let r = !(e instanceof Event), i = m ? n : n.value, o = e.target, s = o instanceof HTMLInputElement;
|
|
@@ -3412,8 +3422,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3412
3422
|
}, ol = ({ children: e, groupOrder: t, small: n = !1 }) => {
|
|
3413
3423
|
let r = (() => {
|
|
3414
3424
|
if (t) switch (t) {
|
|
3415
|
-
case
|
|
3416
|
-
case
|
|
3425
|
+
case H.FIRST: return al.groupOrderFirst;
|
|
3426
|
+
case H.LAST: return al.groupOrderLast;
|
|
3417
3427
|
default: return al.groupOrderMiddle;
|
|
3418
3428
|
}
|
|
3419
3429
|
return "";
|
|
@@ -3451,7 +3461,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3451
3461
|
small: r,
|
|
3452
3462
|
round: !0,
|
|
3453
3463
|
basic: !0,
|
|
3454
|
-
icon:
|
|
3464
|
+
icon: U.CHEVRON_DOUBLE_LEFT,
|
|
3455
3465
|
onClick: () => m("1"),
|
|
3456
3466
|
disabled: c || n === 1
|
|
3457
3467
|
}),
|
|
@@ -3459,7 +3469,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3459
3469
|
small: r,
|
|
3460
3470
|
round: !0,
|
|
3461
3471
|
basic: !0,
|
|
3462
|
-
icon:
|
|
3472
|
+
icon: U.CHEVRON_LEFT,
|
|
3463
3473
|
onClick: () => m(String(Number(n) - 1)),
|
|
3464
3474
|
disabled: c || n === 1
|
|
3465
3475
|
}),
|
|
@@ -3480,7 +3490,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3480
3490
|
small: r,
|
|
3481
3491
|
round: !0,
|
|
3482
3492
|
basic: !0,
|
|
3483
|
-
icon:
|
|
3493
|
+
icon: U.CHEVRON_RIGHT,
|
|
3484
3494
|
onClick: () => m(String(Number(n) + 1)),
|
|
3485
3495
|
disabled: c || n === l
|
|
3486
3496
|
}),
|
|
@@ -3488,7 +3498,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3488
3498
|
small: r,
|
|
3489
3499
|
round: !0,
|
|
3490
3500
|
basic: !0,
|
|
3491
|
-
icon:
|
|
3501
|
+
icon: U.CHEVRON_DOUBLE_RIGHT,
|
|
3492
3502
|
onClick: () => m(String(l)),
|
|
3493
3503
|
disabled: c || n === l,
|
|
3494
3504
|
testId: s == null ? void 0 : s.doubleRightBtn
|
|
@@ -3545,10 +3555,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3545
3555
|
if (!e) return null;
|
|
3546
3556
|
let { bodyAlignment: r, headerAlignment: i, textAlign: a, isHeader: o } = e;
|
|
3547
3557
|
switch (a || (o && i ? i : r)) {
|
|
3548
|
-
case
|
|
3549
|
-
case
|
|
3550
|
-
case
|
|
3551
|
-
default: return n ?
|
|
3558
|
+
case ki.LEFT: return n ? ki.LEFT : t.leftAligned;
|
|
3559
|
+
case ki.RIGHT: return n ? ki.RIGHT : t.rightAligned;
|
|
3560
|
+
case ki.CENTER: return n ? ki.CENTER : t.centerAligned;
|
|
3561
|
+
default: return n ? ki.LEFT : t.leftAligned;
|
|
3552
3562
|
}
|
|
3553
3563
|
}, gl = (e, t = !1, n = 0) => {
|
|
3554
3564
|
if (!e || e.length === 0) return [];
|
|
@@ -3604,15 +3614,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3604
3614
|
disabled: e.disabled,
|
|
3605
3615
|
isInTable: !0,
|
|
3606
3616
|
maxTooltipWidth: e.maxTooltipWidth,
|
|
3607
|
-
right: t ===
|
|
3617
|
+
right: t === ki.RIGHT,
|
|
3608
3618
|
selectOnFocus: e.selectOnFocus,
|
|
3609
3619
|
testId: n,
|
|
3610
3620
|
tabIndex: e.disabled ? -1 : 0,
|
|
3611
3621
|
tooltip: e.tooltip,
|
|
3612
3622
|
type: r
|
|
3613
|
-
}), vl = (e) => e ? typeof e == "string" ? e :
|
|
3623
|
+
}), vl = (e) => e ? typeof e == "string" ? e : sn(e) ? e[0] : e.fieldName : "", yl = ({ name: e, placeholder: t = "", disabled: n = !1, error: r = !1, left: i = !1, small: a = !1, width: o = "100%", value: s = "", onChange: c = () => {}, onFocus: l = () => {}, onBlur: u = () => {}, selectOnFocus: f = !0, tabIndex: p = 0, testId: m, tooltip: h = null, warning: g = !1, validationCallback: y = () => {}, allowEmpty: b = !1, isInTable: x, groupOrder: C, enableCosmeticRounding: w = !0, enableDisplayRounding: T = !1, roundDisplayValue: E, disableInternalErrorValidationMessages: D = !1, disableValidationOnFocus: O = !1 }) => {
|
|
3614
3624
|
let k = (e) => {
|
|
3615
|
-
let n =
|
|
3625
|
+
let n = Or(e), r = t && Wc(e);
|
|
3616
3626
|
return [Infinity, -Infinity].includes(Number(e)) || r ? {
|
|
3617
3627
|
valid: !0,
|
|
3618
3628
|
errors: []
|
|
@@ -3623,12 +3633,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3623
3633
|
} : n;
|
|
3624
3634
|
}, A = (e) => {
|
|
3625
3635
|
var t;
|
|
3626
|
-
let n = !!(e != null && e.endsWith("0")), r = w && e && !n && (t = k(e)) != null && t.valid ?
|
|
3627
|
-
return
|
|
3628
|
-
}, j = _(null), [M, N] = v(A(
|
|
3636
|
+
let n = !!(e != null && e.endsWith("0")), r = w && e && !n && (t = k(e)) != null && t.valid ? xr(e) : e;
|
|
3637
|
+
return Er(r);
|
|
3638
|
+
}, j = _(null), [M, N] = v(A(Er(s))), [P, F] = v(!1), I = vl(e), { valid: L, errors: R } = k(M), z = R && R.length && !D ? R[0] : null;
|
|
3629
3639
|
d(() => {
|
|
3630
|
-
let e = A(
|
|
3631
|
-
|
|
3640
|
+
let e = A(Er(s));
|
|
3641
|
+
Tr(M) !== Tr(e) && N(e);
|
|
3632
3642
|
}, [
|
|
3633
3643
|
s,
|
|
3634
3644
|
w,
|
|
@@ -3642,12 +3652,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3642
3652
|
]);
|
|
3643
3653
|
let B = (e) => {
|
|
3644
3654
|
var n, r;
|
|
3645
|
-
let i = "key" in e ? M : e == null || (n = e.target) == null ? void 0 : n.value, a =
|
|
3655
|
+
let i = "key" in e ? M : e == null || (n = e.target) == null ? void 0 : n.value, a = sr(i.replaceAll(" ", "").replaceAll("|", ""));
|
|
3646
3656
|
N(a), ((r = k(a)) != null && r.valid || t && Wc(i)) && c({
|
|
3647
3657
|
...e,
|
|
3648
3658
|
target: {
|
|
3649
3659
|
...e.target,
|
|
3650
|
-
value:
|
|
3660
|
+
value: wr(Er(a)),
|
|
3651
3661
|
name: I
|
|
3652
3662
|
}
|
|
3653
3663
|
});
|
|
@@ -3656,26 +3666,26 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3656
3666
|
if (j && j != null && j.current && T && P) {
|
|
3657
3667
|
let e = j.current;
|
|
3658
3668
|
e && !f && setTimeout(() => {
|
|
3659
|
-
let { length: t } =
|
|
3669
|
+
let { length: t } = Er(M);
|
|
3660
3670
|
e.setSelectionRange(t, t);
|
|
3661
3671
|
}, 0);
|
|
3662
3672
|
}
|
|
3663
3673
|
}, [P]);
|
|
3664
|
-
let
|
|
3674
|
+
let ee = (e) => {
|
|
3665
3675
|
F(!0), l(e);
|
|
3666
|
-
},
|
|
3676
|
+
}, te = (e) => {
|
|
3667
3677
|
F(!1), u(e);
|
|
3668
|
-
},
|
|
3678
|
+
}, ne = T && !P && L ? E ? Er(E(M)) : ((e) => x ? Sr(e, 2) : yr(e, 4))(s) : M;
|
|
3669
3679
|
return /* @__PURE__ */ S(hs, {
|
|
3670
3680
|
type: "text",
|
|
3671
3681
|
name: I,
|
|
3672
3682
|
testId: m,
|
|
3673
3683
|
disabled: n,
|
|
3674
3684
|
placeholder: t,
|
|
3675
|
-
value:
|
|
3685
|
+
value: ne,
|
|
3676
3686
|
onChange: B,
|
|
3677
|
-
onFocus:
|
|
3678
|
-
onBlur:
|
|
3687
|
+
onFocus: ee,
|
|
3688
|
+
onBlur: te,
|
|
3679
3689
|
onKeyDown: (e) => {
|
|
3680
3690
|
e.key === Bc.ENTER && B(e);
|
|
3681
3691
|
},
|
|
@@ -3707,7 +3717,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3707
3717
|
warning: e.warning,
|
|
3708
3718
|
disabled: e.disabled,
|
|
3709
3719
|
isInTable: !0,
|
|
3710
|
-
left: (r = e.left) == null ? t ===
|
|
3720
|
+
left: (r = e.left) == null ? t === ki.LEFT : r,
|
|
3711
3721
|
selectOnFocus: e.selectOnFocus,
|
|
3712
3722
|
tabIndex: e.disabled ? -1 : 0,
|
|
3713
3723
|
testId: n,
|
|
@@ -3740,7 +3750,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3740
3750
|
width: "100%",
|
|
3741
3751
|
autoLayerWidth: e.autoLayerWidth,
|
|
3742
3752
|
multi: e.multi,
|
|
3743
|
-
right: t ===
|
|
3753
|
+
right: t === ki.RIGHT,
|
|
3744
3754
|
testId: n,
|
|
3745
3755
|
tabIndex: e.disabled ? -1 : 0
|
|
3746
3756
|
}), Sl = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ S("div", {
|
|
@@ -3763,10 +3773,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3763
3773
|
testId: n
|
|
3764
3774
|
}) : null
|
|
3765
3775
|
}), Cl = ({ cell: e, testId: t }) => {
|
|
3766
|
-
let n = u(
|
|
3776
|
+
let n = u(W), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, s = (e) => Y(e);
|
|
3767
3777
|
return /* @__PURE__ */ S("div", {
|
|
3768
3778
|
className: X.inputWrapper,
|
|
3769
|
-
children: /* @__PURE__ */ S(
|
|
3779
|
+
children: /* @__PURE__ */ S(K, {
|
|
3770
3780
|
error: !!r,
|
|
3771
3781
|
warning: !!i,
|
|
3772
3782
|
text: a || r || i,
|
|
@@ -3790,7 +3800,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3790
3800
|
});
|
|
3791
3801
|
}, wl = ({ cell: e, testId: t }) => /* @__PURE__ */ S("div", {
|
|
3792
3802
|
className: e.label ? "" : X.standaloneCheckbox,
|
|
3793
|
-
children: /* @__PURE__ */ S(
|
|
3803
|
+
children: /* @__PURE__ */ S(K, {
|
|
3794
3804
|
text: e.tooltip,
|
|
3795
3805
|
enabled: !!e.tooltip,
|
|
3796
3806
|
children: /* @__PURE__ */ S(ha, {
|
|
@@ -3820,16 +3830,16 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3820
3830
|
markActive: "_markActive_3cdfx_146",
|
|
3821
3831
|
sliderDisabled: "_sliderDisabled_3cdfx_149",
|
|
3822
3832
|
label: "_label_3cdfx_161"
|
|
3823
|
-
}, El = (e, t) =>
|
|
3833
|
+
}, El = (e, t) => bn(sn(e) ? e : [e]).slice(0, t ? 2 : 1), Dl = (e, t) => t ? e : e[0], Ol = Br((e) => e.map(({ label: e, tooltip: t, value: n }) => ({
|
|
3824
3834
|
label: e,
|
|
3825
3835
|
tooltip: t,
|
|
3826
3836
|
value: Number(n)
|
|
3827
|
-
})),
|
|
3837
|
+
})), Vr), kl = ({ name: e, label: t, width: n = "100%", labelWidth: r = "auto", testId: i, value: a, min: o, max: s, step: c = 1, marks: l = [], showArrows: d = !1, showTooltip: f = !1, tooltipFormatter: p = (e) => e, disabled: m = !1, range: g = !1, small: _ = !1, vertical: y = {
|
|
3828
3838
|
enabled: !1,
|
|
3829
3839
|
width: "100px",
|
|
3830
3840
|
height: "400px"
|
|
3831
3841
|
}, onChange: w, onChangeComplete: T }) => {
|
|
3832
|
-
let E = u(
|
|
3842
|
+
let E = u(W), D = m || E, [O, k] = v(null), A = Ol(l), j = h(() => El(a, g), [g, a]), M = (n) => {
|
|
3833
3843
|
let r = Dl(n, g);
|
|
3834
3844
|
return { target: {
|
|
3835
3845
|
name: e == null ? "" : e,
|
|
@@ -3853,7 +3863,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3853
3863
|
F(e);
|
|
3854
3864
|
},
|
|
3855
3865
|
disabled: D || j[0] === o,
|
|
3856
|
-
icon:
|
|
3866
|
+
icon: U.FAST_BACKWARD,
|
|
3857
3867
|
testId: i ? `${i}-min` : void 0
|
|
3858
3868
|
})
|
|
3859
3869
|
}), L = () => /* @__PURE__ */ S("div", {
|
|
@@ -3867,7 +3877,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3867
3877
|
F(e);
|
|
3868
3878
|
},
|
|
3869
3879
|
disabled: D || j[j.length - 1] === s,
|
|
3870
|
-
icon:
|
|
3880
|
+
icon: U.FAST_FORWARD,
|
|
3871
3881
|
testId: i ? `${i}-max` : void 0
|
|
3872
3882
|
})
|
|
3873
3883
|
}), R = (e) => s === o ? "0%" : `${(e - o) / (s - o) * 100}%`, z = (e) => {
|
|
@@ -3875,7 +3885,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3875
3885
|
return y.enabled ? { bottom: t } : { left: t };
|
|
3876
3886
|
}, B = (e) => {
|
|
3877
3887
|
if (i) return g ? `${i}-handle-${e}` : `${i}-handle`;
|
|
3878
|
-
},
|
|
3888
|
+
}, ee = (e) => g ? j[0] <= e && e <= j[1] : j[0] >= e, te = (e) => g ? Math.abs(e - j[0]) <= Math.abs(e - j[1]) ? [en(e, o, j[1]), j[1]] : [j[0], en(e, j[0], s)] : [en(e, o, s)];
|
|
3879
3889
|
return /* @__PURE__ */ C("div", {
|
|
3880
3890
|
className: b(Tl.container, _ ? Tl.small : "", y.enabled ? Tl.vertical : ""),
|
|
3881
3891
|
style: y.enabled ? {
|
|
@@ -3884,7 +3894,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3884
3894
|
} : { width: n },
|
|
3885
3895
|
children: [
|
|
3886
3896
|
d && (y.enabled ? /* @__PURE__ */ S(L, {}) : /* @__PURE__ */ S(I, {})),
|
|
3887
|
-
/* @__PURE__ */ C(
|
|
3897
|
+
/* @__PURE__ */ C(zr.Root, {
|
|
3888
3898
|
className: b(Tl.slider, D && Tl.sliderDisabled, d && Tl.hasArrows),
|
|
3889
3899
|
"data-testid": i,
|
|
3890
3900
|
disabled: D,
|
|
@@ -3899,23 +3909,23 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3899
3909
|
orientation: y.enabled ? "vertical" : "horizontal",
|
|
3900
3910
|
step: c,
|
|
3901
3911
|
value: j,
|
|
3902
|
-
children: [/* @__PURE__ */ C(
|
|
3912
|
+
children: [/* @__PURE__ */ C(zr.Track, {
|
|
3903
3913
|
className: Tl.track,
|
|
3904
|
-
children: [/* @__PURE__ */ S(
|
|
3914
|
+
children: [/* @__PURE__ */ S(zr.Range, { className: Tl.range }), A.length > 0 && /* @__PURE__ */ S("span", {
|
|
3905
3915
|
className: Tl.marks,
|
|
3906
3916
|
children: A.map(({ label: e, tooltip: t, value: n }) => {
|
|
3907
|
-
let r = Number(n), i =
|
|
3917
|
+
let r = Number(n), i = ee(r), a = { [y.enabled ? "bottom" : "left"]: R(r) };
|
|
3908
3918
|
return /* @__PURE__ */ S("button", {
|
|
3909
3919
|
"aria-label": String(e == null ? n : e),
|
|
3910
3920
|
className: b(Tl.mark, i && Tl.markActive),
|
|
3911
3921
|
disabled: D,
|
|
3912
3922
|
onClick: (e) => {
|
|
3913
|
-
e.stopPropagation(), F(
|
|
3923
|
+
e.stopPropagation(), F(te(r));
|
|
3914
3924
|
},
|
|
3915
3925
|
onPointerDown: (e) => e.stopPropagation(),
|
|
3916
3926
|
style: a,
|
|
3917
3927
|
type: "button",
|
|
3918
|
-
children: /* @__PURE__ */ S(
|
|
3928
|
+
children: /* @__PURE__ */ S(K, {
|
|
3919
3929
|
text: /* @__PURE__ */ C(x, { children: [
|
|
3920
3930
|
t,
|
|
3921
3931
|
t ? ": " : "",
|
|
@@ -3928,7 +3938,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3928
3938
|
})]
|
|
3929
3939
|
}), j.map((n, r) => {
|
|
3930
3940
|
var i;
|
|
3931
|
-
return /* @__PURE__ */ S(
|
|
3941
|
+
return /* @__PURE__ */ S(zr.Thumb, {
|
|
3932
3942
|
"aria-label": String((i = t == null ? e : t) == null ? "Slider" : i),
|
|
3933
3943
|
className: Tl.thumb,
|
|
3934
3944
|
"data-testid": B(r),
|
|
@@ -3937,7 +3947,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3937
3947
|
onPointerDown: () => k(r),
|
|
3938
3948
|
onPointerUp: () => k(null),
|
|
3939
3949
|
style: z(n),
|
|
3940
|
-
children: f && O === r && /* @__PURE__ */ S(
|
|
3950
|
+
children: f && O === r && /* @__PURE__ */ S(K, {
|
|
3941
3951
|
display: "block",
|
|
3942
3952
|
text: p(Dl(j, g)),
|
|
3943
3953
|
forceOpen: !0,
|
|
@@ -3978,12 +3988,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3978
3988
|
let { tooltip: t, icon: n } = e;
|
|
3979
3989
|
return /* @__PURE__ */ S("div", {
|
|
3980
3990
|
className: X.iconCellWrapper,
|
|
3981
|
-
children: /* @__PURE__ */ S(
|
|
3991
|
+
children: /* @__PURE__ */ S(K, {
|
|
3982
3992
|
text: t,
|
|
3983
3993
|
enabled: !!t && Y(t),
|
|
3984
3994
|
display: "flex",
|
|
3985
3995
|
placement: "top-center",
|
|
3986
|
-
children: /* @__PURE__ */ S(
|
|
3996
|
+
children: /* @__PURE__ */ S(G, { icon: n })
|
|
3987
3997
|
})
|
|
3988
3998
|
});
|
|
3989
3999
|
}, Ml = ({ cell: e }) => /* @__PURE__ */ S(fo, { actions: e.actions }), Nl = ({ cell: e }) => {
|
|
@@ -4002,7 +4012,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4002
4012
|
children: /* @__PURE__ */ S(ma, {
|
|
4003
4013
|
onClick: t.onClick,
|
|
4004
4014
|
text: t.tooltip,
|
|
4005
|
-
icon:
|
|
4015
|
+
icon: U.LIBRARY
|
|
4006
4016
|
})
|
|
4007
4017
|
}) : null;
|
|
4008
4018
|
}, Fl = ({ cell: e }) => {
|
|
@@ -4011,13 +4021,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4011
4021
|
className: X.sortingCellIcon,
|
|
4012
4022
|
children: [n === "down" ? /* @__PURE__ */ S(Yo, {
|
|
4013
4023
|
link: !0,
|
|
4014
|
-
children: /* @__PURE__ */ S(
|
|
4024
|
+
children: /* @__PURE__ */ S(G, { icon: U.SORT_ASCENDING })
|
|
4015
4025
|
}) : n === "up" ? /* @__PURE__ */ S(Yo, {
|
|
4016
4026
|
link: !0,
|
|
4017
|
-
children: /* @__PURE__ */ S(
|
|
4027
|
+
children: /* @__PURE__ */ S(G, { icon: U.SORT_DESCENDING })
|
|
4018
4028
|
}) : /* @__PURE__ */ S(Yo, {
|
|
4019
4029
|
faint: !0,
|
|
4020
|
-
children: /* @__PURE__ */ S(
|
|
4030
|
+
children: /* @__PURE__ */ S(G, { icon: U.SORT_DESCENDING })
|
|
4021
4031
|
}), r && n ? /* @__PURE__ */ S("sup", { children: r }) : null]
|
|
4022
4032
|
}) : null;
|
|
4023
4033
|
}, Il = ({ cell: e, isHeader: t, testId: n }) => {
|
|
@@ -4035,7 +4045,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4035
4045
|
});
|
|
4036
4046
|
return /* @__PURE__ */ S("div", {
|
|
4037
4047
|
className: X.inputWrapper,
|
|
4038
|
-
children: /* @__PURE__ */ S(
|
|
4048
|
+
children: /* @__PURE__ */ S(K, {
|
|
4039
4049
|
error: !!r,
|
|
4040
4050
|
warning: !!i,
|
|
4041
4051
|
text: a || r || i,
|
|
@@ -4080,14 +4090,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4080
4090
|
control: "_control_abetp_25",
|
|
4081
4091
|
labelText: "_labelText_abetp_151",
|
|
4082
4092
|
isInTable: "_isInTable_abetp_214"
|
|
4083
|
-
}, zl = ({ name: e, label: t, value: n = "", selected: r = !1, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: d, textTransform: f =
|
|
4093
|
+
}, zl = ({ name: e, label: t, value: n = "", selected: r = !1, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: d, textTransform: f = ji.CAPITALIZE }) => {
|
|
4084
4094
|
var p, m;
|
|
4085
|
-
let h = u(
|
|
4095
|
+
let h = u(Kr) != null, g = l || d, _ = (p = n == null ? void 0 : n.toString()) == null ? "" : p, v = /* @__PURE__ */ C(Wr, {
|
|
4086
4096
|
value: _,
|
|
4087
4097
|
isDisabled: i,
|
|
4088
4098
|
className: Rl.radioContainer,
|
|
4089
4099
|
"data-testid": c ? `${c}-field` : void 0,
|
|
4090
|
-
children: [/* @__PURE__ */ C(
|
|
4100
|
+
children: [/* @__PURE__ */ C(Ur, {
|
|
4091
4101
|
className: b(Rl.radio, a && Rl.small, s && Rl.noMargin, !t && Rl.noLabel),
|
|
4092
4102
|
"data-testid": c,
|
|
4093
4103
|
children: [/* @__PURE__ */ S("span", { className: Rl.control }), t && /* @__PURE__ */ S("span", {
|
|
@@ -4100,7 +4110,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4100
4110
|
onClick: d
|
|
4101
4111
|
})]
|
|
4102
4112
|
});
|
|
4103
|
-
return h ? v : /* @__PURE__ */ S(
|
|
4113
|
+
return h ? v : /* @__PURE__ */ S(Gr, {
|
|
4104
4114
|
name: e == null ? void 0 : e.toString(),
|
|
4105
4115
|
"aria-label": String((m = t == null ? e : t) == null ? "Radio" : m),
|
|
4106
4116
|
value: r ? _ : null,
|
|
@@ -4162,7 +4172,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4162
4172
|
}
|
|
4163
4173
|
}, Hl = /* @__PURE__ */ function(e) {
|
|
4164
4174
|
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;
|
|
4165
|
-
}({}), Ul = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r =
|
|
4175
|
+
}({}), Ul = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = ki.LEFT, width: i, testId: a }) => {
|
|
4166
4176
|
var o;
|
|
4167
4177
|
if (!e) return null;
|
|
4168
4178
|
let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = _(null), p = {
|
|
@@ -4173,7 +4183,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4173
4183
|
}, m = hl(p, X), h = hl(p, X, !0), g = e.type === Hl.INPUT || e.type === Hl.NUMBER_INPUT || e.type === Hl.SELECT || e.type === Hl.POPOVER ? X.inputCell : e.type === Hl.SLIDER ? X.sliderCell : e.type === Hl.CHECKBOX || e.type === Hl.RADIO ? X.checkBoxCell : e.type === Hl.ACTIONS ? X.actionsCell : X.staticCell, v = b(X.cell, g, e.hasSort ? X.sortingCell : null, m, e.breakWord ? X.breakWord : ""), y = (o = u == null ? i : u) == null ? void 0 : o, x = e.type === Hl.STATIC || !e.type, C = {
|
|
4174
4184
|
width: y,
|
|
4175
4185
|
minWidth: y,
|
|
4176
|
-
textTransform: t && x ?
|
|
4186
|
+
textTransform: t && x ? ji.CAPITALIZE : void 0,
|
|
4177
4187
|
...s
|
|
4178
4188
|
};
|
|
4179
4189
|
return /* @__PURE__ */ S(t ? "th" : "td", {
|
|
@@ -4184,7 +4194,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4184
4194
|
rowSpan: l,
|
|
4185
4195
|
children: /* @__PURE__ */ S(Vl, {
|
|
4186
4196
|
cell: e,
|
|
4187
|
-
columnAlignment: h == null ?
|
|
4197
|
+
columnAlignment: h == null ? ki.RIGHT : h,
|
|
4188
4198
|
isHeader: t,
|
|
4189
4199
|
testId: a
|
|
4190
4200
|
})
|
|
@@ -4229,7 +4239,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4229
4239
|
actions: e.actions
|
|
4230
4240
|
},
|
|
4231
4241
|
isHeader: n
|
|
4232
|
-
}, r), { attributes: A, listeners: j, setNodeRef: M, transform: N, transition: P, isDragging: F } =
|
|
4242
|
+
}, r), { attributes: A, listeners: j, setNodeRef: M, transform: N, transition: P, isDragging: F } = Ir({
|
|
4233
4243
|
id: t.toString(),
|
|
4234
4244
|
animateLayoutChanges: () => !1
|
|
4235
4245
|
}), I = l((t) => {
|
|
@@ -4239,7 +4249,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4239
4249
|
M,
|
|
4240
4250
|
m
|
|
4241
4251
|
]), L = m ? I : e.noDrag ? null : M, R = {
|
|
4242
|
-
transform: d ? void 0 :
|
|
4252
|
+
transform: d ? void 0 : Rr.Translate.toString(N),
|
|
4243
4253
|
height: f,
|
|
4244
4254
|
transition: P,
|
|
4245
4255
|
opacity: F ? 0 : void 0
|
|
@@ -4281,7 +4291,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4281
4291
|
className: b(pl.dragIcon, d ? pl.dragIconDisabled : ""),
|
|
4282
4292
|
...A,
|
|
4283
4293
|
...j,
|
|
4284
|
-
children: /* @__PURE__ */ S(
|
|
4294
|
+
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
4285
4295
|
})
|
|
4286
4296
|
}) : null,
|
|
4287
4297
|
O,
|
|
@@ -4294,8 +4304,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4294
4304
|
}, `${t}_expanded_content`) : null] });
|
|
4295
4305
|
}, Jl = (e) => {
|
|
4296
4306
|
let { children: t, colSpan: n, columnAlignment: r, columnCount: i, draggable: a, onListReorder: o = () => {}, canListReorder: s = () => !0, rowActions: c, rows: l = [], tbodyRef: u } = e, [d, f] = v(null), [p, m] = v(!1), g = h(() => l.map((e, t) => t.toString()), [l]);
|
|
4297
|
-
return a ? /* @__PURE__ */ C(
|
|
4298
|
-
collisionDetection:
|
|
4307
|
+
return a ? /* @__PURE__ */ C(Jr, {
|
|
4308
|
+
collisionDetection: Xr,
|
|
4299
4309
|
onDragStart: (e) => {
|
|
4300
4310
|
f(e.active.id);
|
|
4301
4311
|
},
|
|
@@ -4319,11 +4329,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4319
4329
|
});
|
|
4320
4330
|
m(a);
|
|
4321
4331
|
},
|
|
4322
|
-
children: [/* @__PURE__ */ S(
|
|
4332
|
+
children: [/* @__PURE__ */ S(Fr, {
|
|
4323
4333
|
items: g,
|
|
4324
|
-
strategy:
|
|
4334
|
+
strategy: Lr,
|
|
4325
4335
|
children: t({ dropDisabled: p })
|
|
4326
|
-
}), !!d &&
|
|
4336
|
+
}), !!d && qr(/* @__PURE__ */ S(Yr, {
|
|
4327
4337
|
dropAnimation: null,
|
|
4328
4338
|
children: /* @__PURE__ */ S("table", {
|
|
4329
4339
|
className: b(Ks.table, Ks.dragOverlay),
|
|
@@ -4352,7 +4362,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4352
4362
|
let r = _(null), i = _(/* @__PURE__ */ new Map()), { estimateRowHeight: a, rowCount: o, rows: s } = e, c = (n = o == null ? s == null ? void 0 : s.length : o) == null ? 0 : n, l = !!a, u = (e) => {
|
|
4353
4363
|
var t, n;
|
|
4354
4364
|
return (t = (n = i.current.get(e)) == null ? a == null ? void 0 : a(e) : n) == null ? Yl : t;
|
|
4355
|
-
}, d =
|
|
4365
|
+
}, d = Zr({
|
|
4356
4366
|
count: c,
|
|
4357
4367
|
getScrollElement: () => r.current,
|
|
4358
4368
|
estimateSize: l ? u : () => Yl,
|
|
@@ -4420,7 +4430,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4420
4430
|
});
|
|
4421
4431
|
}, eu = (e) => {
|
|
4422
4432
|
var t, n, r, i, a;
|
|
4423
|
-
let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: p = [], actions: m, actionsRight: h, columnHeaderAlignments: g, columnAlignment: v, striped: y = !0, testId: x, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = _(null), j =
|
|
4433
|
+
let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: p = [], actions: m, actionsRight: h, columnHeaderAlignments: g, columnAlignment: v, striped: y = !0, testId: x, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = _(null), j = on(e, "table.headers", []), M = ul(p, j), N = fl(p, j), P = M + +!!N, F = !d || (d == null || (t = d.pagination) == null || (t = t.rowsPerPage) == null ? void 0 : t.value) === 0 || Number(d == null || (n = d.pagination) == null ? void 0 : n.selectedPage) >= Number(d == null || (r = d.pagination) == null ? void 0 : r.rowCount) / Number(d == null || (i = d.pagination) == null || (i = i.rowsPerPage) == null ? void 0 : i.value), I = (T == null || (a = T.cells) == null ? void 0 : a.length) && E && F, L = {
|
|
4424
4434
|
cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
|
|
4425
4435
|
...e,
|
|
4426
4436
|
onChange: (e) => {
|
|
@@ -4604,9 +4614,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4604
4614
|
]);
|
|
4605
4615
|
let x = h(() => t.fields.map((e, r) => {
|
|
4606
4616
|
var a, o, s;
|
|
4607
|
-
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) =>
|
|
4617
|
+
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) => xn(e) === tu);
|
|
4608
4618
|
if (!l.length || u) return {};
|
|
4609
|
-
let d = t == null || (a = t.units) == null ? void 0 : a[r], f =
|
|
4619
|
+
let d = t == null || (a = t.units) == null ? void 0 : a[r], f = xn(d), p = l != null && l.some((e) => xn(e) === f) ? d : (o = c == null ? void 0 : c.defaultUnit) == null ? "" : o;
|
|
4610
4620
|
return {
|
|
4611
4621
|
key: i == null || (s = i[r]) == null ? void 0 : s.value,
|
|
4612
4622
|
value: p,
|
|
@@ -4630,7 +4640,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4630
4640
|
e,
|
|
4631
4641
|
i,
|
|
4632
4642
|
n
|
|
4633
|
-
]), C = h(() => x.some((e) => !
|
|
4643
|
+
]), C = h(() => x.some((e) => !ln(e)), [x]), w = h(() => [{
|
|
4634
4644
|
cells: i,
|
|
4635
4645
|
actions: [{}]
|
|
4636
4646
|
}, ...C ? [{ cells: x }] : []], [
|
|
@@ -4955,7 +4965,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4955
4965
|
throw Error(`${n("jsonParseFailed")} ${e.message}`);
|
|
4956
4966
|
}
|
|
4957
4967
|
}, Iu = (e) => e.replace(",", "."), Lu = (e) => e.map((e) => e.map((e) => Iu(e))), Ru = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
|
|
4958
|
-
|
|
4968
|
+
Qr.parse(e, {
|
|
4959
4969
|
...Du,
|
|
4960
4970
|
preview: t,
|
|
4961
4971
|
complete: (e) => {
|
|
@@ -4988,7 +4998,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4988
4998
|
t,
|
|
4989
4999
|
...n
|
|
4990
5000
|
].filter(Boolean);
|
|
4991
|
-
return
|
|
5001
|
+
return Qr.unparse(o, {
|
|
4992
5002
|
quotes: !1,
|
|
4993
5003
|
header: !0,
|
|
4994
5004
|
delimiter: a
|
|
@@ -5012,20 +5022,20 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5012
5022
|
return a;
|
|
5013
5023
|
}, Hu = .001, Uu = 0, Wu = (e, t) => e.every((e) => {
|
|
5014
5024
|
let n = e[t];
|
|
5015
|
-
return n !== void 0 && n.trim() !== "" &&
|
|
5025
|
+
return n !== void 0 && n.trim() !== "" && dn(Tr(n));
|
|
5016
5026
|
}), Gu = (e, t = {}) => {
|
|
5017
5027
|
var n, r;
|
|
5018
5028
|
let { independentColumnIndex: i = Uu, dependentColumnIndexes: a, tolerance: o = Hu } = t;
|
|
5019
5029
|
if (e.length <= 2 || !Wu(e, i)) return e.slice();
|
|
5020
|
-
let s = (n = (r =
|
|
5030
|
+
let s = (n = (r = ti(e, (e) => e.length)) == null ? void 0 : r.length) == null ? 0 : n, c = ri(a == null ? ni(s) : a).filter((t) => t !== i && Wu(e, t));
|
|
5021
5031
|
if (c.length === 0) return e.slice();
|
|
5022
5032
|
let l = /* @__PURE__ */ new Set();
|
|
5023
5033
|
for (let t of c) {
|
|
5024
5034
|
let n = /* @__PURE__ */ new Map(), r = e.map((e, r) => {
|
|
5025
|
-
let a = [
|
|
5035
|
+
let a = [Tr(e[i]), Tr(e[t])];
|
|
5026
5036
|
return n.set(a, r), a;
|
|
5027
5037
|
});
|
|
5028
|
-
for (let e of
|
|
5038
|
+
for (let e of $r(r, o)) {
|
|
5029
5039
|
let t = n.get(e);
|
|
5030
5040
|
t !== void 0 && l.add(t);
|
|
5031
5041
|
}
|
|
@@ -5054,12 +5064,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5054
5064
|
default: return "info";
|
|
5055
5065
|
}
|
|
5056
5066
|
})();
|
|
5057
|
-
return e !== void 0 &&
|
|
5067
|
+
return e !== void 0 && oi.isActive(e) ? oi.update(e, {
|
|
5058
5068
|
render: o,
|
|
5059
5069
|
autoClose: n,
|
|
5060
5070
|
onClose: r,
|
|
5061
5071
|
type: s
|
|
5062
|
-
}) :
|
|
5072
|
+
}) : oi(o, {
|
|
5063
5073
|
toastId: e,
|
|
5064
5074
|
autoClose: n,
|
|
5065
5075
|
onClose: r,
|
|
@@ -5069,11 +5079,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5069
5079
|
pauseOnHover: !0,
|
|
5070
5080
|
draggable: !1,
|
|
5071
5081
|
closeButton: a,
|
|
5072
|
-
transition:
|
|
5082
|
+
transition: ii,
|
|
5073
5083
|
type: s
|
|
5074
5084
|
});
|
|
5075
5085
|
}, qu = (e) => {
|
|
5076
|
-
|
|
5086
|
+
oi.dismiss(e);
|
|
5077
5087
|
}, Ju = (e, t) => {
|
|
5078
5088
|
t(() => {
|
|
5079
5089
|
Ku({ ...e });
|
|
@@ -5094,9 +5104,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5094
5104
|
control: "_control_h6wco_25",
|
|
5095
5105
|
labelText: "_labelText_h6wco_137",
|
|
5096
5106
|
noMargin: "_noMargin_h6wco_201"
|
|
5097
|
-
}, Xu = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: d, textTransform: f =
|
|
5098
|
-
let p = u(
|
|
5099
|
-
return /* @__PURE__ */ C(
|
|
5107
|
+
}, Xu = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: d, textTransform: f = ji.CAPITALIZE }) => {
|
|
5108
|
+
let p = u(W), m = l || d;
|
|
5109
|
+
return /* @__PURE__ */ C(ci, {
|
|
5100
5110
|
name: e,
|
|
5101
5111
|
isSelected: n,
|
|
5102
5112
|
isDisabled: r || p,
|
|
@@ -5110,7 +5120,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5110
5120
|
className: b(Yu.toggleContainer, s && Yu.noMargin),
|
|
5111
5121
|
style: { display: i },
|
|
5112
5122
|
"data-testid": c ? `${c}-field` : void 0,
|
|
5113
|
-
children: [/* @__PURE__ */ C(
|
|
5123
|
+
children: [/* @__PURE__ */ C(si, {
|
|
5114
5124
|
className: b(Yu.toggle, a && Yu.small, !t && Yu.noLabel),
|
|
5115
5125
|
"data-testid": c,
|
|
5116
5126
|
children: [/* @__PURE__ */ S("span", { className: Yu.control }), t && /* @__PURE__ */ S("span", {
|
|
@@ -5184,20 +5194,20 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5184
5194
|
type: "Success",
|
|
5185
5195
|
content: u("pasteSuccessful")
|
|
5186
5196
|
} }, f);
|
|
5187
|
-
}, L = T && T(M), { isValid: R, errors: z } = M, B = z.length,
|
|
5197
|
+
}, L = T && T(M), { isValid: R, errors: z } = M, B = z.length, ee = j === "", te = pu(j), ne = fu(j), V = /* @__PURE__ */ C(x, { children: [
|
|
5188
5198
|
/* @__PURE__ */ C("div", {
|
|
5189
5199
|
className: Ls.headerContainer,
|
|
5190
5200
|
children: [
|
|
5191
|
-
/* @__PURE__ */ S(
|
|
5201
|
+
/* @__PURE__ */ S(K, {
|
|
5192
5202
|
text: u("downsampleTooltip"),
|
|
5193
5203
|
children: /* @__PURE__ */ S(Xu, {
|
|
5194
5204
|
label: u("downsampled"),
|
|
5195
5205
|
checked: D,
|
|
5196
5206
|
onChange: () => N(!D),
|
|
5197
|
-
disabled:
|
|
5207
|
+
disabled: ee || !R
|
|
5198
5208
|
})
|
|
5199
5209
|
}),
|
|
5200
|
-
/* @__PURE__ */ S(
|
|
5210
|
+
/* @__PURE__ */ S(K, {
|
|
5201
5211
|
text: u("deletePastedContent"),
|
|
5202
5212
|
children: /* @__PURE__ */ S(q, {
|
|
5203
5213
|
name: "clearReview",
|
|
@@ -5206,7 +5216,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5206
5216
|
onClick: P
|
|
5207
5217
|
})
|
|
5208
5218
|
}),
|
|
5209
|
-
/* @__PURE__ */ S(
|
|
5219
|
+
/* @__PURE__ */ S(K, {
|
|
5210
5220
|
text: u("openHelp"),
|
|
5211
5221
|
children: /* @__PURE__ */ S(q, {
|
|
5212
5222
|
name: "help",
|
|
@@ -5221,7 +5231,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5221
5231
|
validationRules: o,
|
|
5222
5232
|
t: u
|
|
5223
5233
|
}),
|
|
5224
|
-
|
|
5234
|
+
ee ? /* @__PURE__ */ S("div", {
|
|
5225
5235
|
className: Ls.resultContainer,
|
|
5226
5236
|
children: /* @__PURE__ */ S(du, {
|
|
5227
5237
|
text: null,
|
|
@@ -5263,11 +5273,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5263
5273
|
errors: z,
|
|
5264
5274
|
t: u
|
|
5265
5275
|
}) : null,
|
|
5266
|
-
|
|
5276
|
+
te && /* @__PURE__ */ S(Yo, {
|
|
5267
5277
|
muted: !0,
|
|
5268
5278
|
children: u("commasAsDecimals")
|
|
5269
5279
|
}),
|
|
5270
|
-
|
|
5280
|
+
ne && /* @__PURE__ */ S(Gs, { message: {
|
|
5271
5281
|
visible: !0,
|
|
5272
5282
|
icon: !0,
|
|
5273
5283
|
width: "100%",
|
|
@@ -5302,14 +5312,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5302
5312
|
heading: u("pasteWithReviewRoundBrackets"),
|
|
5303
5313
|
content: /* @__PURE__ */ S("div", {
|
|
5304
5314
|
className: Ls.modalContent,
|
|
5305
|
-
children:
|
|
5315
|
+
children: V
|
|
5306
5316
|
}),
|
|
5307
5317
|
footer: /* @__PURE__ */ C(x, { children: [
|
|
5308
5318
|
/* @__PURE__ */ S(q, {
|
|
5309
5319
|
label: u("okay"),
|
|
5310
5320
|
colored: !0,
|
|
5311
5321
|
onClick: () => f(() => I()),
|
|
5312
|
-
disabled:
|
|
5322
|
+
disabled: ee || !R,
|
|
5313
5323
|
loading: d,
|
|
5314
5324
|
testId: `${p}-paste-with-review-modal-button-okay`
|
|
5315
5325
|
}),
|
|
@@ -5434,7 +5444,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5434
5444
|
...e,
|
|
5435
5445
|
rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
|
|
5436
5446
|
let t = String(e == null ? "" : e);
|
|
5437
|
-
return id.test(t) ?
|
|
5447
|
+
return id.test(t) ? sr(t) : t;
|
|
5438
5448
|
}))
|
|
5439
5449
|
};
|
|
5440
5450
|
}, od = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
|
|
@@ -5595,7 +5605,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5595
5605
|
onClickCopyClipboard: l(async (e) => {
|
|
5596
5606
|
let t = await v();
|
|
5597
5607
|
if (!t) return;
|
|
5598
|
-
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : tu).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = Bu(n, o, a.map((t) => t.map((t) =>
|
|
5608
|
+
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : tu).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = Bu(n, o, a.map((t) => t.map((t) => ei(t) ? "" : s(t.toString(), e))), { delimiter: " " });
|
|
5599
5609
|
try {
|
|
5600
5610
|
await navigator.clipboard.writeText(c), Ju({ message: {
|
|
5601
5611
|
type: "Success",
|
|
@@ -5610,7 +5620,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5610
5620
|
}
|
|
5611
5621
|
}, [v, _]),
|
|
5612
5622
|
onSmartUploadResult: l((e) => {
|
|
5613
|
-
let t =
|
|
5623
|
+
let t = gn(e) && _n(e.errorMessage) ? e.errorMessage : void 0;
|
|
5614
5624
|
if (t) {
|
|
5615
5625
|
Ju({ message: {
|
|
5616
5626
|
type: "Error",
|
|
@@ -5618,7 +5628,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5618
5628
|
} }, i);
|
|
5619
5629
|
return;
|
|
5620
5630
|
}
|
|
5621
|
-
if (!
|
|
5631
|
+
if (!sn(e) || e.length < 2 || !an(e, (e) => gn(e) && an(wn(e), _n))) {
|
|
5622
5632
|
Ju({ message: {
|
|
5623
5633
|
type: "Error",
|
|
5624
5634
|
content: "Smart upload returned unexpected format.",
|
|
@@ -5626,7 +5636,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5626
5636
|
} }, i);
|
|
5627
5637
|
return;
|
|
5628
5638
|
}
|
|
5629
|
-
let [n, ...a] = e, o =
|
|
5639
|
+
let [n, ...a] = e, o = vn(a[0]), s = {
|
|
5630
5640
|
isValid: !0,
|
|
5631
5641
|
fields: o,
|
|
5632
5642
|
units: o.map((e) => {
|
|
@@ -5641,7 +5651,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5641
5651
|
};
|
|
5642
5652
|
i(() => y({ parsedResult: s })), i(() => d(s));
|
|
5643
5653
|
let { onComplete: c } = r == null ? {} : r;
|
|
5644
|
-
|
|
5654
|
+
fn(c) && c(s), b();
|
|
5645
5655
|
}, [
|
|
5646
5656
|
y,
|
|
5647
5657
|
d,
|
|
@@ -5655,8 +5665,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5655
5665
|
var n, r;
|
|
5656
5666
|
let { fields: i, rows: a } = e, o = Bu(i, (n = (r = e.units) == null ? void 0 : r.map((e) => e || "blank")) == null ? [] : n, a, { delimiter: " " }), s = new Blob([o], { type: "text/plain" }), c = document.createElement("a");
|
|
5657
5667
|
c.href = window.URL.createObjectURL(s), c.download = `${t}.csv`, document.body.appendChild(c), c.click(), document.body.removeChild(c);
|
|
5658
|
-
}, cd = (e) =>
|
|
5659
|
-
if (
|
|
5668
|
+
}, cd = (e) => hn(e) && "modalKey" in e, ld = (e, t, n) => nn(e, (e) => {
|
|
5669
|
+
if (sn(e) || !gn(e)) return;
|
|
5660
5670
|
let { modalKey: r } = e == null ? {} : e;
|
|
5661
5671
|
if (cd(e) && typeof e.onClick != "function") {
|
|
5662
5672
|
let i = () => {
|
|
@@ -5691,35 +5701,35 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5691
5701
|
setState: D,
|
|
5692
5702
|
smartUploadConfig: t,
|
|
5693
5703
|
startTransition: z
|
|
5694
|
-
}), { readAndParseInput:
|
|
5704
|
+
}), { readAndParseInput: ee, updateState: te, closeModals: ne, setModalVisibility: V, onFileChange: re, onClickQuickPasteFromClipBoard: ie, onClickCopyClipboard: ae, onSmartUploadResult: oe, deleteAllRows: se } = B == null ? {} : B, ce = m ? [
|
|
5695
5705
|
...b ? [{
|
|
5696
5706
|
type: "Option",
|
|
5697
5707
|
label: I("uploadFile"),
|
|
5698
5708
|
upload: !0,
|
|
5699
5709
|
uploadType: ".csv,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
5700
|
-
onChange:
|
|
5710
|
+
onChange: re,
|
|
5701
5711
|
testId: `${n}-option-upload-file`
|
|
5702
5712
|
}] : [],
|
|
5703
5713
|
...h ? [{
|
|
5704
5714
|
type: "Option",
|
|
5705
5715
|
label: I("quickPasteFromClipboard"),
|
|
5706
|
-
onClick:
|
|
5716
|
+
onClick: ie,
|
|
5707
5717
|
testId: `${n}-option-quick-paste-from-clipboard`
|
|
5708
5718
|
}] : [],
|
|
5709
5719
|
...h ? [{
|
|
5710
5720
|
type: "Option",
|
|
5711
5721
|
label: I("pasteWithReview"),
|
|
5712
|
-
onClick: () =>
|
|
5722
|
+
onClick: () => V("reviewPasteModal", !k),
|
|
5713
5723
|
testId: `${n}-paste-with-review`
|
|
5714
5724
|
}] : [],
|
|
5715
5725
|
...M && j && t ? [{
|
|
5716
5726
|
type: "Option",
|
|
5717
5727
|
label: I("smartUpload_smartUpload"),
|
|
5718
|
-
onClick: () =>
|
|
5728
|
+
onClick: () => V("smartUploadModal", !O),
|
|
5719
5729
|
testId: `${n}-smart-upload`
|
|
5720
5730
|
}] : [],
|
|
5721
|
-
...ud((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E,
|
|
5722
|
-
] : [],
|
|
5731
|
+
...ud((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, V)
|
|
5732
|
+
] : [], le = [
|
|
5723
5733
|
{
|
|
5724
5734
|
type: "Option",
|
|
5725
5735
|
label: I("downloadFile"),
|
|
@@ -5731,7 +5741,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5731
5741
|
...p ? [{
|
|
5732
5742
|
type: "Option",
|
|
5733
5743
|
label: I("copyToClipboard"),
|
|
5734
|
-
onClick: () =>
|
|
5744
|
+
onClick: () => ae("dot")
|
|
5735
5745
|
}] : [{
|
|
5736
5746
|
type: "Menu",
|
|
5737
5747
|
testId: `${n}-menu-copy-to-clipboard`,
|
|
@@ -5741,44 +5751,44 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5741
5751
|
sections: [{
|
|
5742
5752
|
type: "Option",
|
|
5743
5753
|
label: I("copyDecimalDot"),
|
|
5744
|
-
onClick: () =>
|
|
5754
|
+
onClick: () => ae("dot"),
|
|
5745
5755
|
testId: `${n}-option-copy-decimal-dot`
|
|
5746
5756
|
}, {
|
|
5747
5757
|
type: "Option",
|
|
5748
5758
|
label: I("copyDecimalComma"),
|
|
5749
|
-
onClick: () =>
|
|
5759
|
+
onClick: () => ae("comma")
|
|
5750
5760
|
}]
|
|
5751
5761
|
}
|
|
5752
5762
|
}],
|
|
5753
|
-
...ud((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E,
|
|
5754
|
-
],
|
|
5763
|
+
...ud((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, V)
|
|
5764
|
+
], ue = g ? [{
|
|
5755
5765
|
type: "Option",
|
|
5756
5766
|
label: I("deleteAllRows"),
|
|
5757
|
-
onClick: () =>
|
|
5767
|
+
onClick: () => se(),
|
|
5758
5768
|
testId: `${n}-delete-all-rows`
|
|
5759
|
-
}, ...ud((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E,
|
|
5769
|
+
}, ...ud((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, V)] : [], de = _ ? [
|
|
5760
5770
|
{ type: "Divider" },
|
|
5761
5771
|
{
|
|
5762
5772
|
type: "Option",
|
|
5763
5773
|
label: I("help"),
|
|
5764
|
-
onClick: () =>
|
|
5774
|
+
onClick: () => V("helpModal", !A)
|
|
5765
5775
|
},
|
|
5766
|
-
...ud((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E,
|
|
5767
|
-
] : [],
|
|
5768
|
-
...
|
|
5769
|
-
section: [...
|
|
5776
|
+
...ud((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, V)
|
|
5777
|
+
] : [], fe = [
|
|
5778
|
+
...ce.length ? [{
|
|
5779
|
+
section: [...ce, ...de],
|
|
5770
5780
|
name: "import-options",
|
|
5771
5781
|
iconName: "import",
|
|
5772
5782
|
tooltip: I("import")
|
|
5773
5783
|
}] : [],
|
|
5774
|
-
...
|
|
5775
|
-
section:
|
|
5784
|
+
...le.length ? [{
|
|
5785
|
+
section: le,
|
|
5776
5786
|
name: "export-options",
|
|
5777
5787
|
iconName: "export",
|
|
5778
5788
|
tooltip: I("export")
|
|
5779
5789
|
}] : [],
|
|
5780
|
-
...
|
|
5781
|
-
section:
|
|
5790
|
+
...ue.length ? [{
|
|
5791
|
+
section: ue,
|
|
5782
5792
|
name: "delete-options",
|
|
5783
5793
|
iconName: "delete",
|
|
5784
5794
|
tooltip: I("deleteAllRows")
|
|
@@ -5789,7 +5799,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5789
5799
|
small: !0,
|
|
5790
5800
|
dark: !0
|
|
5791
5801
|
}),
|
|
5792
|
-
|
|
5802
|
+
fe.map((e, t) => /* @__PURE__ */ S($u, {
|
|
5793
5803
|
sections: e.section,
|
|
5794
5804
|
iconName: e.iconName,
|
|
5795
5805
|
tooltip: e.tooltip,
|
|
@@ -5798,10 +5808,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5798
5808
|
k && /* @__PURE__ */ S(Zu, {
|
|
5799
5809
|
config: e,
|
|
5800
5810
|
state: E,
|
|
5801
|
-
updateState:
|
|
5802
|
-
setModalVisibility:
|
|
5803
|
-
readAndParseInput:
|
|
5804
|
-
onCloseModal:
|
|
5811
|
+
updateState: te,
|
|
5812
|
+
setModalVisibility: V,
|
|
5813
|
+
readAndParseInput: ee,
|
|
5814
|
+
onCloseModal: ne,
|
|
5805
5815
|
validationRules: u,
|
|
5806
5816
|
onCompleteImport: T,
|
|
5807
5817
|
prevalidationConfig: l,
|
|
@@ -5812,7 +5822,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5812
5822
|
}),
|
|
5813
5823
|
A && /* @__PURE__ */ S(Is, {
|
|
5814
5824
|
visible: A,
|
|
5815
|
-
setModalVisibility:
|
|
5825
|
+
setModalVisibility: V,
|
|
5816
5826
|
validationRules: u,
|
|
5817
5827
|
t: I
|
|
5818
5828
|
}),
|
|
@@ -5820,8 +5830,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5820
5830
|
visible: O,
|
|
5821
5831
|
prompt: M,
|
|
5822
5832
|
onUpload: F,
|
|
5823
|
-
onCloseModal: () =>
|
|
5824
|
-
onComplete:
|
|
5833
|
+
onCloseModal: () => ne({ callback: N }),
|
|
5834
|
+
onComplete: oe,
|
|
5825
5835
|
onError: P,
|
|
5826
5836
|
heading: I("smartUpload_smartUpload"),
|
|
5827
5837
|
dialogText: I("smartUpload_description"),
|
|
@@ -5834,12 +5844,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5834
5844
|
/* @__PURE__ */ S(Qu, {
|
|
5835
5845
|
modals: x,
|
|
5836
5846
|
modalVisibility: E == null ? void 0 : E.modalVisibility,
|
|
5837
|
-
onCloseModal:
|
|
5847
|
+
onCloseModal: ne,
|
|
5838
5848
|
testId: n
|
|
5839
5849
|
})
|
|
5840
5850
|
] });
|
|
5841
|
-
}, pd = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a =
|
|
5842
|
-
let s = u(
|
|
5851
|
+
}, pd = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = yn, ...o }) => {
|
|
5852
|
+
let s = u(W), c = _(null), l = () => {
|
|
5843
5853
|
var e;
|
|
5844
5854
|
i || s || (e = c.current) == null || e.click();
|
|
5845
5855
|
}, d = (e) => {
|
|
@@ -5877,7 +5887,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5877
5887
|
onClick: () => {},
|
|
5878
5888
|
tooltip: "",
|
|
5879
5889
|
testId: void 0
|
|
5880
|
-
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u =
|
|
5890
|
+
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = ji.CAPITALIZE }) => {
|
|
5881
5891
|
var d;
|
|
5882
5892
|
return /* @__PURE__ */ S("div", {
|
|
5883
5893
|
className: b(md.label, c ? md.labelLeft : "", l ? md.small : ""),
|
|
@@ -5896,18 +5906,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5896
5906
|
}),
|
|
5897
5907
|
o && /* @__PURE__ */ S(ma, {
|
|
5898
5908
|
text: o,
|
|
5899
|
-
icon:
|
|
5909
|
+
icon: U.INFO
|
|
5900
5910
|
}),
|
|
5901
5911
|
a && a.visible && a.onClick && /* @__PURE__ */ S(ma, {
|
|
5902
5912
|
onClick: a.onClick,
|
|
5903
|
-
icon: a.active ?
|
|
5913
|
+
icon: a.active ? U.LOCK : U.UNLOCK,
|
|
5904
5914
|
active: a.active,
|
|
5905
5915
|
testId: a.testId
|
|
5906
5916
|
}),
|
|
5907
5917
|
s && /* @__PURE__ */ S(ma, {
|
|
5908
5918
|
text: (d = s == null ? void 0 : s.tooltip) == null ? "" : d,
|
|
5909
5919
|
onClick: s.onClick,
|
|
5910
|
-
icon:
|
|
5920
|
+
icon: U.LIBRARY
|
|
5911
5921
|
})
|
|
5912
5922
|
]
|
|
5913
5923
|
})]
|
|
@@ -5926,7 +5936,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5926
5936
|
onClick: () => {},
|
|
5927
5937
|
tooltip: "",
|
|
5928
5938
|
testId: void 0
|
|
5929
|
-
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f =
|
|
5939
|
+
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = ji.CAPITALIZE }) => /* @__PURE__ */ C("div", {
|
|
5930
5940
|
className: b(gd.field, t ? gd.labelLeft : ""),
|
|
5931
5941
|
"data-testid": d,
|
|
5932
5942
|
children: [(e || t) && /* @__PURE__ */ S(hd, {
|
|
@@ -6007,7 +6017,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6007
6017
|
}, xd = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ S("a", {
|
|
6008
6018
|
className: Z.toggleNarrow,
|
|
6009
6019
|
onClick: t,
|
|
6010
|
-
children: /* @__PURE__ */ S(
|
|
6020
|
+
children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_LEFT })
|
|
6011
6021
|
}) : null, Sd = o(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ C("div", {
|
|
6012
6022
|
ref: a,
|
|
6013
6023
|
className: b(Z.header, i ? Z.stickyHeader : ""),
|
|
@@ -6040,7 +6050,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6040
6050
|
small: e.small
|
|
6041
6051
|
})
|
|
6042
6052
|
}) : null, wd = ({ name: e, icon: t, testId: n }) => {
|
|
6043
|
-
let r = t && /* @__PURE__ */ S(
|
|
6053
|
+
let r = t && /* @__PURE__ */ S(G, {
|
|
6044
6054
|
icon: t.icon,
|
|
6045
6055
|
color: t.color || "#db2828"
|
|
6046
6056
|
});
|
|
@@ -6049,7 +6059,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6049
6059
|
"data-testid": n,
|
|
6050
6060
|
children: [e, t && t.tooltip && t.tooltip.text ? /* @__PURE__ */ S("span", {
|
|
6051
6061
|
className: Z.iconTooltipMargin,
|
|
6052
|
-
children: /* @__PURE__ */ S(
|
|
6062
|
+
children: /* @__PURE__ */ S(K, {
|
|
6053
6063
|
text: t.tooltip.text,
|
|
6054
6064
|
maxWidth: "350px",
|
|
6055
6065
|
children: r
|
|
@@ -6093,7 +6103,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6093
6103
|
let n = (e) => {
|
|
6094
6104
|
e.preventDefault(), e.stopPropagation();
|
|
6095
6105
|
}, r = !!t && !!e.active && !!e.content;
|
|
6096
|
-
return /* @__PURE__ */ S(
|
|
6106
|
+
return /* @__PURE__ */ S(Ji, {
|
|
6097
6107
|
expanded: r,
|
|
6098
6108
|
children: /* @__PURE__ */ S("div", {
|
|
6099
6109
|
className: Z.itemContent,
|
|
@@ -6103,7 +6113,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6103
6113
|
});
|
|
6104
6114
|
}, Od = o(({ item: e, index: t }, n) => {
|
|
6105
6115
|
var r;
|
|
6106
|
-
let i = u(
|
|
6116
|
+
let i = u(W), { actions: a, disabled: o, expanded: s, onClick: c, title: l, name: d, icon: f, testId: p } = e;
|
|
6107
6117
|
return /* @__PURE__ */ S("div", {
|
|
6108
6118
|
ref: (e) => {
|
|
6109
6119
|
n && "current" in n && Array.isArray(n.current) && t !== void 0 && (n.current[t] = e);
|
|
@@ -6119,7 +6129,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6119
6129
|
children: [
|
|
6120
6130
|
typeof s == "boolean" && /* @__PURE__ */ S("div", {
|
|
6121
6131
|
className: b(Z.expandIcon, s && Z.expanded),
|
|
6122
|
-
children: /* @__PURE__ */ S(
|
|
6132
|
+
children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_RIGHT })
|
|
6123
6133
|
}),
|
|
6124
6134
|
/* @__PURE__ */ S(wd, {
|
|
6125
6135
|
name: d,
|
|
@@ -6136,7 +6146,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6136
6146
|
}) })
|
|
6137
6147
|
});
|
|
6138
6148
|
}), kd = o(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
|
|
6139
|
-
let o = u(
|
|
6149
|
+
let o = u(W), s = (e, t, s, c, l, u) => {
|
|
6140
6150
|
let d = t.actions && t.actions.find((e) => {
|
|
6141
6151
|
var t;
|
|
6142
6152
|
return e.label && ((t = String(e.label)) == null ? void 0 : t.toLowerCase()) === "edit";
|
|
@@ -6165,11 +6175,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6165
6175
|
className: Z.drag,
|
|
6166
6176
|
...c,
|
|
6167
6177
|
...l,
|
|
6168
|
-
children: /* @__PURE__ */ S(
|
|
6178
|
+
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
6169
6179
|
}),
|
|
6170
6180
|
t.level && t.level > 0 ? /* @__PURE__ */ S("div", {
|
|
6171
6181
|
className: Z.indentIcon,
|
|
6172
|
-
children: /* @__PURE__ */ S(
|
|
6182
|
+
children: /* @__PURE__ */ S(G, { icon: U.INDENT })
|
|
6173
6183
|
}) : null,
|
|
6174
6184
|
/* @__PURE__ */ S(Cd, { label: t.label }),
|
|
6175
6185
|
/* @__PURE__ */ S(Td, { item: t }),
|
|
@@ -6193,11 +6203,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6193
6203
|
item: e,
|
|
6194
6204
|
index: t
|
|
6195
6205
|
}, t) : i ? ((e, t) => {
|
|
6196
|
-
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: c } =
|
|
6206
|
+
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: c } = Ir({
|
|
6197
6207
|
id: e.toString(),
|
|
6198
6208
|
animateLayoutChanges: () => !1
|
|
6199
6209
|
}), l = {
|
|
6200
|
-
transform:
|
|
6210
|
+
transform: Rr.Translate.toString(a),
|
|
6201
6211
|
transition: o,
|
|
6202
6212
|
opacity: +!c
|
|
6203
6213
|
};
|
|
@@ -6214,15 +6224,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6214
6224
|
to: Number(o)
|
|
6215
6225
|
});
|
|
6216
6226
|
}, c = h(() => n.items.map((e, t) => t.toString()), [n.items]);
|
|
6217
|
-
return t ? /* @__PURE__ */ C(
|
|
6218
|
-
collisionDetection:
|
|
6227
|
+
return t ? /* @__PURE__ */ C(Jr, {
|
|
6228
|
+
collisionDetection: Xr,
|
|
6219
6229
|
onDragStart: o,
|
|
6220
6230
|
onDragEnd: s,
|
|
6221
|
-
children: [/* @__PURE__ */ S(
|
|
6231
|
+
children: [/* @__PURE__ */ S(Fr, {
|
|
6222
6232
|
items: c,
|
|
6223
|
-
strategy:
|
|
6233
|
+
strategy: Lr,
|
|
6224
6234
|
children: e
|
|
6225
|
-
}), !!i &&
|
|
6235
|
+
}), !!i && qr(/* @__PURE__ */ S(Yr, {
|
|
6226
6236
|
dropAnimation: null,
|
|
6227
6237
|
children: /* @__PURE__ */ S("div", {
|
|
6228
6238
|
className: Z.dragOverlay,
|
|
@@ -6235,7 +6245,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6235
6245
|
}), document.body)]
|
|
6236
6246
|
}) : e;
|
|
6237
6247
|
}, jd = ({ items: e, scrollDetails: t, children: n }) => {
|
|
6238
|
-
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: o } = t, s = _(null), c =
|
|
6248
|
+
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: o } = t, s = _(null), c = Zr({
|
|
6239
6249
|
count: e.length,
|
|
6240
6250
|
getScrollElement: () => s.current,
|
|
6241
6251
|
estimateSize: l(() => {
|
|
@@ -6335,8 +6345,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6335
6345
|
content: "_content_477i5_44",
|
|
6336
6346
|
text: "_text_477i5_49",
|
|
6337
6347
|
details: "_details_477i5_53"
|
|
6338
|
-
}, Fd = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s =
|
|
6339
|
-
let l = s ===
|
|
6348
|
+
}, Fd = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = Mi.DARK, testId: c = null }) => {
|
|
6349
|
+
let l = s === Mi.DARK ? Mi.WHITE : Mi.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
|
|
6340
6350
|
return /* @__PURE__ */ S("div", {
|
|
6341
6351
|
className: b(Pd.loader, a ? Pd.cover : "", { [Pd.fullViewPortSize]: i }),
|
|
6342
6352
|
style: {
|
|
@@ -6459,7 +6469,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6459
6469
|
testId: c ? `${c}-menu-layer` : void 0,
|
|
6460
6470
|
small: a,
|
|
6461
6471
|
label: n,
|
|
6462
|
-
trigger:
|
|
6472
|
+
trigger: Di.DROP_DOWN_BUTTON,
|
|
6463
6473
|
sections: /* @__PURE__ */ S(Vd, {
|
|
6464
6474
|
testId: c,
|
|
6465
6475
|
options: r,
|
|
@@ -6488,7 +6498,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6488
6498
|
let n = document.querySelector(`#${e}`), [r, i] = v(!1);
|
|
6489
6499
|
return m(() => {
|
|
6490
6500
|
r || i(!0);
|
|
6491
|
-
}, [e]), n ?
|
|
6501
|
+
}, [e]), n ? qr(t, n) : null;
|
|
6492
6502
|
}, Kd = { printHeader: "_printHeader_o7xxx_1" }, qd = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ S("img", {
|
|
6493
6503
|
src: e,
|
|
6494
6504
|
alt: t,
|
|
@@ -6496,8 +6506,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6496
6506
|
style: { width: n }
|
|
6497
6507
|
}), Jd = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: s = !1, inline: c = !1, testId: l }) => {
|
|
6498
6508
|
var d;
|
|
6499
|
-
let f = u(
|
|
6500
|
-
return /* @__PURE__ */ C(
|
|
6509
|
+
let f = u(W), { simpleInputs: p, options: m, selectedOptions: h } = $c(n, r), g = h == null ? void 0 : p ? h : h.value, _ = a || f;
|
|
6510
|
+
return /* @__PURE__ */ C(Gr, {
|
|
6501
6511
|
name: e,
|
|
6502
6512
|
"aria-label": t ? void 0 : String(e == null ? "Radio group" : e),
|
|
6503
6513
|
value: (d = g == null ? void 0 : g.toString()) == null ? null : d,
|
|
@@ -6516,7 +6526,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6516
6526
|
isDisabled: _,
|
|
6517
6527
|
className: Rl.wrapper,
|
|
6518
6528
|
"data-testid": l,
|
|
6519
|
-
children: [t && /* @__PURE__ */ S(
|
|
6529
|
+
children: [t && /* @__PURE__ */ S(Hr, {
|
|
6520
6530
|
className: Rl.groupLabel,
|
|
6521
6531
|
children: t
|
|
6522
6532
|
}), m.map((e) => {
|
|
@@ -6593,7 +6603,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6593
6603
|
round: !0,
|
|
6594
6604
|
basic: !0,
|
|
6595
6605
|
icon: e.icon,
|
|
6596
|
-
colored:
|
|
6606
|
+
colored: Oi.MUTED,
|
|
6597
6607
|
onClick: e.onClick,
|
|
6598
6608
|
active: e.active,
|
|
6599
6609
|
disabled: t,
|
|
@@ -6614,25 +6624,25 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6614
6624
|
if (!e) return [];
|
|
6615
6625
|
let t = /* @__PURE__ */ new Set();
|
|
6616
6626
|
return e.state.doc.descendants((e) => {
|
|
6617
|
-
e.type.name ===
|
|
6627
|
+
e.type.name === mi.name && typeof e.attrs.id == "string" && t.add(e.attrs.id);
|
|
6618
6628
|
}), [...t];
|
|
6619
|
-
}, of = (e, t) => `[@${ef(e)}](mention:${ef(t)})`, sf = (e, t) =>
|
|
6629
|
+
}, of = (e, t) => `[@${ef(e)}](mention:${ef(t)})`, sf = (e, t) => mi.extend({
|
|
6620
6630
|
renderMarkdown: (e) => {
|
|
6621
6631
|
var t, n;
|
|
6622
6632
|
return of(nf((t = e.attrs) == null ? void 0 : t.label), nf((n = e.attrs) == null ? void 0 : n.id));
|
|
6623
6633
|
},
|
|
6624
|
-
parseMarkdown: (e, t) => t.createNode(
|
|
6634
|
+
parseMarkdown: (e, t) => t.createNode(mi.name, {
|
|
6625
6635
|
id: nf(e.id),
|
|
6626
6636
|
label: nf(e.label)
|
|
6627
6637
|
}),
|
|
6628
6638
|
markdownTokenizer: {
|
|
6629
|
-
name:
|
|
6639
|
+
name: mi.name,
|
|
6630
6640
|
level: "inline",
|
|
6631
6641
|
start: (e) => e.indexOf("[@"),
|
|
6632
6642
|
tokenize: (e) => {
|
|
6633
6643
|
let t = rf(e);
|
|
6634
6644
|
return t && {
|
|
6635
|
-
type:
|
|
6645
|
+
type: mi.name,
|
|
6636
6646
|
...t
|
|
6637
6647
|
};
|
|
6638
6648
|
}
|
|
@@ -6666,7 +6676,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6666
6676
|
mentionOption: "_mentionOption_1xhvx_144",
|
|
6667
6677
|
focused: "_focused_1xhvx_150"
|
|
6668
6678
|
}, lf = o(({ editable: e, getRect: t, items: n, onDismiss: r, onSelect: i }, a) => {
|
|
6669
|
-
let [o, s] = v(0), c = n.length > 0, u = f(), m = l((e) => `${u}-option-${e}`, [u]), { renderLayer: g, layerProps: y, triggerProps: x } =
|
|
6679
|
+
let [o, s] = v(0), c = n.length > 0, u = f(), m = l((e) => `${u}-option-${e}`, [u]), { renderLayer: g, layerProps: y, triggerProps: x } = ca({
|
|
6670
6680
|
isOpen: c,
|
|
6671
6681
|
placement: "bottom-start",
|
|
6672
6682
|
triggerOffset: 2,
|
|
@@ -6749,14 +6759,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6749
6759
|
editable: n.view.dom
|
|
6750
6760
|
}), df = c(o(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i, mentions: a, testId: o }, s) => {
|
|
6751
6761
|
var c, l, f, m;
|
|
6752
|
-
let g = u(
|
|
6762
|
+
let g = u(W), y = r || g, b = !!a, x = _(a), w = _(null), T = _(n == null ? "" : n), [E, D] = v(null);
|
|
6753
6763
|
d(() => {
|
|
6754
6764
|
x.current = a;
|
|
6755
6765
|
}, [a]);
|
|
6756
6766
|
let O = h(() => [
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6767
|
+
di,
|
|
6768
|
+
fi.configure({ placeholder: e }),
|
|
6769
|
+
pi,
|
|
6760
6770
|
sf(() => x.current, () => ({
|
|
6761
6771
|
onStart: (e) => D(uf(e)),
|
|
6762
6772
|
onUpdate: (e) => D(uf(e)),
|
|
@@ -6766,7 +6776,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6766
6776
|
return (t = (n = w.current) == null ? void 0 : n.onKeyDown(e)) != null && t;
|
|
6767
6777
|
}
|
|
6768
6778
|
}))
|
|
6769
|
-
], []), k =
|
|
6779
|
+
], []), k = ui({
|
|
6770
6780
|
extensions: O,
|
|
6771
6781
|
content: T.current,
|
|
6772
6782
|
contentType: "markdown",
|
|
@@ -6798,11 +6808,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6798
6808
|
toolbarComponent: i,
|
|
6799
6809
|
testId: o && `${o}-toolbar`
|
|
6800
6810
|
}),
|
|
6801
|
-
/* @__PURE__ */ S(
|
|
6811
|
+
/* @__PURE__ */ S(li, {
|
|
6802
6812
|
editor: k,
|
|
6803
6813
|
"data-testid": o && `${o}-editor`
|
|
6804
6814
|
}),
|
|
6805
|
-
b && /* @__PURE__ */ S(
|
|
6815
|
+
b && /* @__PURE__ */ S($i, { children: /* @__PURE__ */ S(lf, {
|
|
6806
6816
|
ref: w,
|
|
6807
6817
|
editable: (l = E == null ? void 0 : E.editable) == null ? null : l,
|
|
6808
6818
|
getRect: (f = E == null ? void 0 : E.clientRect) == null ? null : f,
|
|
@@ -6854,7 +6864,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6854
6864
|
experimental: "_experimental_t1w93_159",
|
|
6855
6865
|
active: "_active_t1w93_163",
|
|
6856
6866
|
icon: "_icon_t1w93_167"
|
|
6857
|
-
}, gf = c(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
6867
|
+
}, gf = c(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(K, {
|
|
6858
6868
|
text: t,
|
|
6859
6869
|
enabled: !e,
|
|
6860
6870
|
placement: "right-center",
|
|
@@ -6868,13 +6878,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6868
6878
|
small: !0,
|
|
6869
6879
|
title: r ? "!" : void 0,
|
|
6870
6880
|
margin: 4,
|
|
6871
|
-
children: /* @__PURE__ */ S(
|
|
6881
|
+
children: /* @__PURE__ */ S(G, { icon: n })
|
|
6872
6882
|
})
|
|
6873
6883
|
})
|
|
6874
6884
|
}), /* @__PURE__ */ S("span", {
|
|
6875
6885
|
className: hf.label,
|
|
6876
6886
|
children: t
|
|
6877
|
-
})] }), (e, t) =>
|
|
6887
|
+
})] }), (e, t) => Vr(e, t)), _f = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ S("div", {
|
|
6878
6888
|
className: hf.list,
|
|
6879
6889
|
children: t.map((t, a) => {
|
|
6880
6890
|
let o = `${n}_${a}`;
|
|
@@ -6910,7 +6920,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6910
6920
|
top: r,
|
|
6911
6921
|
background: "var(--color-background-sidebar)",
|
|
6912
6922
|
closedWidth: "var(--size-sidebar)",
|
|
6913
|
-
buttonPosition:
|
|
6923
|
+
buttonPosition: Ai.BOTTOM,
|
|
6914
6924
|
buttonAnimate: !0,
|
|
6915
6925
|
testId: i,
|
|
6916
6926
|
button: c && /* @__PURE__ */ S(q, {
|
|
@@ -6919,7 +6929,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6919
6929
|
},
|
|
6920
6930
|
colored: !0,
|
|
6921
6931
|
round: !0,
|
|
6922
|
-
icon:
|
|
6932
|
+
icon: U.LEFT,
|
|
6923
6933
|
testId: i ? `${i}-toggle` : void 0
|
|
6924
6934
|
}),
|
|
6925
6935
|
children: /* @__PURE__ */ S("div", {
|
|
@@ -6937,10 +6947,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6937
6947
|
})
|
|
6938
6948
|
})
|
|
6939
6949
|
});
|
|
6940
|
-
}, (e, t) =>
|
|
6950
|
+
}, (e, t) => Vr(e, t)), bf = {
|
|
6941
6951
|
skeletonContainer: "_skeletonContainer_mcfxp_9",
|
|
6942
6952
|
skeleton: "_skeleton_mcfxp_9"
|
|
6943
|
-
}, xf = ({ count: e, width: t, height: n }) => /* @__PURE__ */ S(
|
|
6953
|
+
}, xf = ({ count: e, width: t, height: n }) => /* @__PURE__ */ S(hi, {
|
|
6944
6954
|
baseColor: "var(--color-skeleton-base)",
|
|
6945
6955
|
highlightColor: "var(--color-skeleton-highlight)",
|
|
6946
6956
|
containerClassName: bf.skeletonContainer,
|
|
@@ -6972,30 +6982,30 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6972
6982
|
let n = t == null ? void 0 : t[e];
|
|
6973
6983
|
if (!n) {
|
|
6974
6984
|
var r;
|
|
6975
|
-
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r =
|
|
6985
|
+
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Dr(e)) == null ? "" : r;
|
|
6976
6986
|
}
|
|
6977
6987
|
return n;
|
|
6978
6988
|
}, Ef = /* @__PURE__ */ function(e) {
|
|
6979
6989
|
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6980
6990
|
}({}), Df = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), Of = (e) => {
|
|
6981
6991
|
if (!e) return !1;
|
|
6982
|
-
let t =
|
|
6983
|
-
return !
|
|
6992
|
+
let t = dr(e);
|
|
6993
|
+
return !ar.includes(t);
|
|
6984
6994
|
}, kf = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
6985
6995
|
var r;
|
|
6986
|
-
let i =
|
|
6987
|
-
if (!i || i.length === 0 || !((r =
|
|
6988
|
-
let a =
|
|
6996
|
+
let i = ir[t];
|
|
6997
|
+
if (!i || i.length === 0 || !((r = Or(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
6998
|
+
let a = dr(String(e));
|
|
6989
6999
|
return !(a && !i.includes(a));
|
|
6990
7000
|
}, Af = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
6991
7001
|
var o;
|
|
6992
|
-
let s =
|
|
7002
|
+
let s = _r(e) ? pr(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
6993
7003
|
if (i || c) return {
|
|
6994
7004
|
value: s,
|
|
6995
7005
|
error: null
|
|
6996
7006
|
};
|
|
6997
|
-
let l = r || (
|
|
6998
|
-
if (!((o =
|
|
7007
|
+
let l = r || (_r(e) ? dr(e) : Dr(t));
|
|
7008
|
+
if (!((o = Or(s)) != null && o.valid)) return {
|
|
6999
7009
|
value: void 0,
|
|
7000
7010
|
error: "Invalid number format"
|
|
7001
7011
|
};
|
|
@@ -7012,20 +7022,20 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7012
7022
|
error: "Value is invalid for conversion"
|
|
7013
7023
|
};
|
|
7014
7024
|
try {
|
|
7015
|
-
let e =
|
|
7025
|
+
let e = Ar(s, l);
|
|
7016
7026
|
if (kf({
|
|
7017
7027
|
value: e,
|
|
7018
7028
|
toUnit: n,
|
|
7019
7029
|
unitkey: t
|
|
7020
7030
|
})) {
|
|
7021
|
-
let t = a ?
|
|
7031
|
+
let t = a ? lr(e, n) : cr(e, n);
|
|
7022
7032
|
return {
|
|
7023
|
-
value:
|
|
7033
|
+
value: pr(Er(t)),
|
|
7024
7034
|
error: null
|
|
7025
7035
|
};
|
|
7026
7036
|
}
|
|
7027
7037
|
return {
|
|
7028
|
-
value:
|
|
7038
|
+
value: pr(e),
|
|
7029
7039
|
error: null
|
|
7030
7040
|
};
|
|
7031
7041
|
} catch {
|
|
@@ -7035,12 +7045,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7035
7045
|
};
|
|
7036
7046
|
}
|
|
7037
7047
|
}, jf = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
7038
|
-
let a =
|
|
7048
|
+
let a = pr(e), o = Df(a);
|
|
7039
7049
|
return !kf({
|
|
7040
7050
|
value: e,
|
|
7041
7051
|
unitkey: n,
|
|
7042
7052
|
toUnit: t
|
|
7043
|
-
}) || Of(e) || o ? { value: a } :
|
|
7053
|
+
}) || Of(e) || o ? { value: a } : _r(e) ? Af({
|
|
7044
7054
|
value: e,
|
|
7045
7055
|
unitkey: n,
|
|
7046
7056
|
toUnit: t,
|
|
@@ -7048,116 +7058,116 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7048
7058
|
doNotConvertValue: i,
|
|
7049
7059
|
exactPrecision: !0
|
|
7050
7060
|
}) : { value: e };
|
|
7051
|
-
}, Mf = (e) =>
|
|
7052
|
-
let n =
|
|
7061
|
+
}, Mf = (e) => hn(e) && !sn(e) && !fn(e) ? on(e, "fieldName", "") : typeof e == "string" ? e : "", Nf = (e = "") => ar == null ? void 0 : ar.includes(e), Pf = (e, t) => {
|
|
7062
|
+
let n = dr(e || "");
|
|
7053
7063
|
return Nf(t) && Nf(n);
|
|
7054
7064
|
}, Ff = i(null), If = () => u(Ff), Lf = !1, Rf = (e) => {
|
|
7055
7065
|
Lf || (Lf = !0, Ff = e);
|
|
7056
|
-
}, zf = (e) =>
|
|
7066
|
+
}, zf = (e) => hr(e) ? e : yr(e), Bf = {
|
|
7057
7067
|
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
7058
7068
|
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
7059
|
-
}, Vf = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: c, unitkey: l = "", initUnit: u, noConversion: f = !1, onChange: p =
|
|
7069
|
+
}, Vf = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: c, unitkey: l = "", initUnit: u, noConversion: f = !1, onChange: p = yn, onClick: m = yn, onFocus: g = yn, onSwitchUnit: _ = yn, unitTemplate: y, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
|
|
7060
7070
|
name: "",
|
|
7061
7071
|
error: null
|
|
7062
7072
|
}), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: L = !0, groupOrder: R, tooltip: z = null }) => {
|
|
7063
|
-
let B = If(),
|
|
7073
|
+
let B = If(), ee = Cf();
|
|
7064
7074
|
typeof c == "number" && (c = `${c}`);
|
|
7065
|
-
let [
|
|
7075
|
+
let [te = "", ne = ""] = c === void 0 ? [] : Cr(c), V = h(() => Tf(l, y || (B == null ? void 0 : B.unitTemplate)), [
|
|
7066
7076
|
l,
|
|
7067
7077
|
y,
|
|
7068
7078
|
B == null ? void 0 : B.unitTemplate
|
|
7069
|
-
]),
|
|
7079
|
+
]), re = Pf(c, V), ie = u || V || ne, ae = wf(ie), { value: oe } = jf({
|
|
7070
7080
|
value: c,
|
|
7071
|
-
toUnit:
|
|
7081
|
+
toUnit: ie,
|
|
7072
7082
|
unitkey: l,
|
|
7073
|
-
defaultFromUnit:
|
|
7083
|
+
defaultFromUnit: ne,
|
|
7074
7084
|
doNotConvertValue: f
|
|
7075
|
-
}), [
|
|
7076
|
-
value:
|
|
7077
|
-
unit:
|
|
7085
|
+
}), [se, ce] = v(oe === "" ? {
|
|
7086
|
+
value: te,
|
|
7087
|
+
unit: ne
|
|
7078
7088
|
} : {
|
|
7079
|
-
value:
|
|
7080
|
-
unit:
|
|
7081
|
-
}),
|
|
7089
|
+
value: oe,
|
|
7090
|
+
unit: ie
|
|
7091
|
+
}), le = M || (se == null ? void 0 : se.value) === void 0, [ue, de] = v(D ? Ef.PREDEFINED : Ef.CUSTOM), fe = !!(j || n), pe = E && E.find((e) => {
|
|
7082
7092
|
if (!(e != null && e.value)) return;
|
|
7083
7093
|
if (k) return k === e.valueKey;
|
|
7084
|
-
let t =
|
|
7094
|
+
let t = _r(e.value) ? dr(e.value) : "", { value: n = c } = Af({
|
|
7085
7095
|
value: String(c),
|
|
7086
7096
|
unitkey: l,
|
|
7087
7097
|
toUnit: t
|
|
7088
7098
|
});
|
|
7089
|
-
return
|
|
7090
|
-
}),
|
|
7099
|
+
return Ar(n, t) === e.value;
|
|
7100
|
+
}), me = () => {
|
|
7091
7101
|
var e;
|
|
7092
|
-
let t = (e = c) == null ? "" : e, n =
|
|
7102
|
+
let t = (e = c) == null ? "" : e, n = se.unit;
|
|
7093
7103
|
if (!kf({
|
|
7094
7104
|
value: t,
|
|
7095
7105
|
unitkey: l,
|
|
7096
7106
|
toUnit: n
|
|
7097
7107
|
})) {
|
|
7098
|
-
let e =
|
|
7108
|
+
let e = ur(l);
|
|
7099
7109
|
return e == null ? void 0 : e.map((e) => ["", e == null ? void 0 : e.unit]);
|
|
7100
7110
|
}
|
|
7101
7111
|
if (l) try {
|
|
7102
|
-
let e =
|
|
7103
|
-
return
|
|
7112
|
+
let e = or(t, l);
|
|
7113
|
+
return pr(t) === "" ? e.map((e) => ["", e[1]]) : e;
|
|
7104
7114
|
} catch {
|
|
7105
7115
|
return null;
|
|
7106
7116
|
}
|
|
7107
|
-
},
|
|
7108
|
-
let n = Mf(e), r = t.target, { value: i, selectionStart: a } = r, o =
|
|
7117
|
+
}, he = (t) => {
|
|
7118
|
+
let n = Mf(e), r = t.target, { value: i, selectionStart: a } = r, o = Ar(i, (se == null ? void 0 : se.unit) || "");
|
|
7109
7119
|
p({ target: {
|
|
7110
|
-
value: N ?
|
|
7120
|
+
value: N ? Ar(cr(o, ne), ne) : o,
|
|
7111
7121
|
name: n
|
|
7112
7122
|
} });
|
|
7113
|
-
let [s, c] =
|
|
7114
|
-
|
|
7123
|
+
let [s, c] = Cr(o);
|
|
7124
|
+
ce({
|
|
7115
7125
|
value: s,
|
|
7116
7126
|
unit: c
|
|
7117
|
-
}),
|
|
7127
|
+
}), ee(() => {
|
|
7118
7128
|
r.selectionStart = a, r.selectionEnd = a;
|
|
7119
7129
|
});
|
|
7120
|
-
},
|
|
7121
|
-
t ===
|
|
7130
|
+
}, ge = (e, t) => {
|
|
7131
|
+
t === se.unit || isNaN(Number(e)) || (ce({
|
|
7122
7132
|
value: e,
|
|
7123
7133
|
unit: t
|
|
7124
7134
|
}), _ && _(t));
|
|
7125
7135
|
};
|
|
7126
7136
|
d(() => {
|
|
7127
|
-
if (
|
|
7137
|
+
if (ie) {
|
|
7128
7138
|
let e, t = "";
|
|
7129
|
-
if (
|
|
7139
|
+
if (ae !== ie) {
|
|
7130
7140
|
let { value: n } = jf({
|
|
7131
7141
|
value: c,
|
|
7132
|
-
toUnit:
|
|
7142
|
+
toUnit: ie,
|
|
7133
7143
|
unitkey: l,
|
|
7134
|
-
defaultFromUnit:
|
|
7144
|
+
defaultFromUnit: ne,
|
|
7135
7145
|
doNotConvertValue: f
|
|
7136
7146
|
});
|
|
7137
|
-
e = n, t =
|
|
7138
|
-
} else if (
|
|
7147
|
+
e = n, t = ie;
|
|
7148
|
+
} else if (Ar(se.value, se.unit) !== c) {
|
|
7139
7149
|
let { value: n } = jf({
|
|
7140
7150
|
value: c,
|
|
7141
|
-
toUnit:
|
|
7151
|
+
toUnit: se.unit,
|
|
7142
7152
|
unitkey: l,
|
|
7143
|
-
defaultFromUnit:
|
|
7153
|
+
defaultFromUnit: ne,
|
|
7144
7154
|
doNotConvertValue: f
|
|
7145
7155
|
});
|
|
7146
|
-
e = n, t =
|
|
7156
|
+
e = n, t = se.unit;
|
|
7147
7157
|
}
|
|
7148
|
-
e !== void 0 &&
|
|
7158
|
+
e !== void 0 && ce({
|
|
7149
7159
|
value: e,
|
|
7150
7160
|
unit: t
|
|
7151
|
-
}),
|
|
7161
|
+
}), de(E && pe && O ? Ef.PREDEFINED : Ef.CUSTOM);
|
|
7152
7162
|
}
|
|
7153
7163
|
}, [
|
|
7154
|
-
|
|
7164
|
+
ie,
|
|
7155
7165
|
c,
|
|
7156
7166
|
i,
|
|
7157
7167
|
O
|
|
7158
7168
|
]);
|
|
7159
|
-
let
|
|
7160
|
-
let r = t != null && t.value ? t.value : "", [i = "", a = ""] =
|
|
7169
|
+
let _e = me(), ve = vr(se.unit) || se.unit || "", ye = f || !_e || _e && _e.length === 1, be = Mf(e), xe, Se = (t) => {
|
|
7170
|
+
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = _r(r) ? Cr(r) : [r], o = kr(r);
|
|
7161
7171
|
if (kf({
|
|
7162
7172
|
value: r,
|
|
7163
7173
|
unitkey: l,
|
|
@@ -7165,18 +7175,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7165
7175
|
})) {
|
|
7166
7176
|
let { value: e = "" } = jf({
|
|
7167
7177
|
value: r,
|
|
7168
|
-
toUnit:
|
|
7178
|
+
toUnit: V,
|
|
7169
7179
|
unitkey: l,
|
|
7170
7180
|
defaultFromUnit: a,
|
|
7171
7181
|
doNotConvertValue: f
|
|
7172
7182
|
});
|
|
7173
|
-
o =
|
|
7183
|
+
o = kr(Ar(e, V));
|
|
7174
7184
|
}
|
|
7175
7185
|
return {
|
|
7176
7186
|
type: Ga.OPTION,
|
|
7177
7187
|
inline: !0,
|
|
7178
7188
|
onClick: () => {
|
|
7179
|
-
|
|
7189
|
+
Or(i).valid && !n && (de(Ef.PREDEFINED), p({ target: {
|
|
7180
7190
|
value: r,
|
|
7181
7191
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
7182
7192
|
predefinedSelected: !0,
|
|
@@ -7188,29 +7198,29 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7188
7198
|
height: "0"
|
|
7189
7199
|
})] }),
|
|
7190
7200
|
description: o,
|
|
7191
|
-
selected:
|
|
7201
|
+
selected: pe === t && ue === Ef.PREDEFINED
|
|
7192
7202
|
};
|
|
7193
7203
|
};
|
|
7194
|
-
if (
|
|
7204
|
+
if (xe = [{
|
|
7195
7205
|
type: Ga.OPTION,
|
|
7196
7206
|
inline: !0,
|
|
7197
7207
|
onClick: () => {
|
|
7198
|
-
|
|
7199
|
-
value:
|
|
7208
|
+
ue !== Ef.CUSTOM && !n && p({ target: {
|
|
7209
|
+
value: Ar(se.value, se.unit),
|
|
7200
7210
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
7201
7211
|
} });
|
|
7202
7212
|
},
|
|
7203
7213
|
label: "Custom",
|
|
7204
|
-
selected:
|
|
7214
|
+
selected: ue === Ef.CUSTOM
|
|
7205
7215
|
}], E != null && E.length) {
|
|
7206
|
-
let e = E.map(
|
|
7207
|
-
|
|
7216
|
+
let e = E.map(Se);
|
|
7217
|
+
xe = [...xe, ...e];
|
|
7208
7218
|
}
|
|
7209
|
-
let
|
|
7210
|
-
if (
|
|
7211
|
-
let t =
|
|
7219
|
+
let Ce = (e) => {
|
|
7220
|
+
if (_r(e)) {
|
|
7221
|
+
let t = dr(e), { value: n } = jf({
|
|
7212
7222
|
value: e,
|
|
7213
|
-
toUnit:
|
|
7223
|
+
toUnit: se.unit,
|
|
7214
7224
|
unitkey: l,
|
|
7215
7225
|
defaultFromUnit: t,
|
|
7216
7226
|
doNotConvertValue: f
|
|
@@ -7218,9 +7228,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7218
7228
|
return n;
|
|
7219
7229
|
}
|
|
7220
7230
|
return e;
|
|
7221
|
-
},
|
|
7231
|
+
}, we = !E && (!R || R === H.FIRST) ? H.FIRST : H.MIDDLE, Te = !R || R === H.LAST ? H.LAST : H.MIDDLE;
|
|
7222
7232
|
return /* @__PURE__ */ S("div", {
|
|
7223
|
-
className:
|
|
7233
|
+
className: ue === Ef.PREDEFINED ? b(Bf.predefinedMenuActive) : "",
|
|
7224
7234
|
children: /* @__PURE__ */ C(ps, {
|
|
7225
7235
|
small: o,
|
|
7226
7236
|
width: s,
|
|
@@ -7235,65 +7245,65 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7235
7245
|
trigger: "Component",
|
|
7236
7246
|
component: /* @__PURE__ */ S(q, {
|
|
7237
7247
|
groupOrder: "first",
|
|
7238
|
-
active:
|
|
7239
|
-
icon:
|
|
7248
|
+
active: ue === Ef.PREDEFINED,
|
|
7249
|
+
icon: ue === Ef.PREDEFINED ? "link" : "unlink",
|
|
7240
7250
|
small: o
|
|
7241
7251
|
}),
|
|
7242
7252
|
small: o,
|
|
7243
|
-
sections:
|
|
7253
|
+
sections: xe
|
|
7244
7254
|
},
|
|
7245
|
-
tooltip:
|
|
7255
|
+
tooltip: ue === Ef.PREDEFINED ? pe == null ? void 0 : pe.label : ""
|
|
7246
7256
|
}),
|
|
7247
7257
|
/* @__PURE__ */ S("div", {
|
|
7248
7258
|
className: Bf.inputWrapper,
|
|
7249
7259
|
children: /* @__PURE__ */ S(yl, {
|
|
7250
|
-
name:
|
|
7260
|
+
name: be,
|
|
7251
7261
|
testId: w,
|
|
7252
7262
|
disabled: n,
|
|
7253
|
-
placeholder:
|
|
7254
|
-
value:
|
|
7255
|
-
onChange:
|
|
7263
|
+
placeholder: Ce(t),
|
|
7264
|
+
value: se.value,
|
|
7265
|
+
onChange: he,
|
|
7256
7266
|
onFocus: g,
|
|
7257
7267
|
error: i === null ? void 0 : i,
|
|
7258
7268
|
warning: T === null ? void 0 : T,
|
|
7259
7269
|
left: a,
|
|
7260
|
-
allowEmpty:
|
|
7261
|
-
validationCallback: (e, t) => A(
|
|
7270
|
+
allowEmpty: le,
|
|
7271
|
+
validationCallback: (e, t) => A(be, t),
|
|
7262
7272
|
enableCosmeticRounding: P,
|
|
7263
7273
|
enableDisplayRounding: F,
|
|
7264
7274
|
roundDisplayValue: I,
|
|
7265
|
-
groupOrder:
|
|
7266
|
-
disableInternalErrorValidationMessages:
|
|
7275
|
+
groupOrder: we,
|
|
7276
|
+
disableInternalErrorValidationMessages: fe,
|
|
7267
7277
|
small: o,
|
|
7268
7278
|
selectOnFocus: L,
|
|
7269
7279
|
tooltip: z
|
|
7270
|
-
},
|
|
7280
|
+
}, be)
|
|
7271
7281
|
}),
|
|
7272
|
-
|
|
7273
|
-
groupOrder:
|
|
7282
|
+
ve && (ye || !re ? /* @__PURE__ */ S(ol, {
|
|
7283
|
+
groupOrder: Te,
|
|
7274
7284
|
small: o,
|
|
7275
|
-
children:
|
|
7285
|
+
children: ve
|
|
7276
7286
|
}) : /* @__PURE__ */ S(lo, {
|
|
7277
|
-
groupOrder:
|
|
7287
|
+
groupOrder: Te,
|
|
7278
7288
|
maxHeight: 380,
|
|
7279
7289
|
disabled: r,
|
|
7280
7290
|
testId: w && `${w}-menu`,
|
|
7281
7291
|
tabIndex: -1,
|
|
7282
7292
|
menu: {
|
|
7283
|
-
label:
|
|
7293
|
+
label: ve,
|
|
7284
7294
|
trigger: "DropDownButton",
|
|
7285
7295
|
small: o,
|
|
7286
|
-
sections:
|
|
7287
|
-
let r = n || t || "", i =
|
|
7296
|
+
sections: _e.map(([e = "", t = "", n]) => {
|
|
7297
|
+
let r = n || t || "", i = gr(e) ? e : "";
|
|
7288
7298
|
return {
|
|
7289
7299
|
type: "Option",
|
|
7290
7300
|
label: P ? zf(i) : i,
|
|
7291
7301
|
inline: !0,
|
|
7292
7302
|
onClick: (n) => {
|
|
7293
|
-
n.stopPropagation(),
|
|
7303
|
+
n.stopPropagation(), ge(e, t);
|
|
7294
7304
|
},
|
|
7295
7305
|
description: r,
|
|
7296
|
-
selected: r ===
|
|
7306
|
+
selected: r === ve,
|
|
7297
7307
|
testId: `${w}-unit-${r}`
|
|
7298
7308
|
};
|
|
7299
7309
|
})
|
|
@@ -7306,15 +7316,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7306
7316
|
name: e,
|
|
7307
7317
|
value: t
|
|
7308
7318
|
} }), Uf = (e) => `Value cannot be less than ${e}`, Wf = (e) => `Value cannot be greater than ${e}`, Gf = ({ name: e = "", value: t, min: n, max: r, label: i, step: a = .01, onChange: o, onChangeComplete: s, preferredUnit: c = "m", onSwitchUnit: l, enableEditUnitInput: u = !1, disabled: f = !1, showUnitInput: p = !0, showArrows: m = !0, unitkey: h = "length", testId: g, noConversion: _ = !1, small: y = !1, marks: x, minErrorMessage: w = Uf, maxErrorMessage: T = Wf }) => {
|
|
7309
|
-
let E =
|
|
7319
|
+
let E = Ar(t, c), [D, O] = v(E), [k, A] = v(!1), [j, M] = v(c);
|
|
7310
7320
|
d(() => {
|
|
7311
7321
|
k || O(E);
|
|
7312
7322
|
}, [k, E]), d(() => {
|
|
7313
7323
|
M(c);
|
|
7314
7324
|
}, [c]);
|
|
7315
|
-
let [N = "", P = c] =
|
|
7325
|
+
let [N = "", P = c] = Cr(D), F = Tr(N), I = null;
|
|
7316
7326
|
if (N.trim() !== "" && Number.isFinite(F)) try {
|
|
7317
|
-
I = _ ? F :
|
|
7327
|
+
I = _ ? F : cr(F, c, P);
|
|
7318
7328
|
} catch {
|
|
7319
7329
|
I = null;
|
|
7320
7330
|
}
|
|
@@ -7324,20 +7334,20 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7324
7334
|
O(E), A(!1);
|
|
7325
7335
|
}, B = () => {
|
|
7326
7336
|
L || I === null || (o(Hf(e, I)), s == null || s(Hf(e, I)), A(!1));
|
|
7327
|
-
}, V = (e) => {
|
|
7328
|
-
M(e), l == null || l(e);
|
|
7329
7337
|
}, ee = (e) => {
|
|
7338
|
+
M(e), l == null || l(e);
|
|
7339
|
+
}, te = (e) => {
|
|
7330
7340
|
let t = Array.isArray(e) ? e[0] : e;
|
|
7331
|
-
if (_ || j === c) return
|
|
7341
|
+
if (_ || j === c) return kr(yr(Ar(t, j)));
|
|
7332
7342
|
try {
|
|
7333
|
-
let e =
|
|
7334
|
-
return
|
|
7343
|
+
let e = cr(t, j, c);
|
|
7344
|
+
return kr(yr(Ar(e, j)));
|
|
7335
7345
|
} catch {
|
|
7336
|
-
return
|
|
7346
|
+
return kr(yr(E));
|
|
7337
7347
|
}
|
|
7338
|
-
},
|
|
7348
|
+
}, ne = (e) => {
|
|
7339
7349
|
e.key === "Enter" && B(), e.key === "Escape" && z();
|
|
7340
|
-
},
|
|
7350
|
+
}, V = f || k, re = /* @__PURE__ */ C("div", {
|
|
7341
7351
|
className: Sf.actions,
|
|
7342
7352
|
children: [/* @__PURE__ */ S(q, {
|
|
7343
7353
|
icon: "close",
|
|
@@ -7366,7 +7376,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7366
7376
|
p && /* @__PURE__ */ S("div", {
|
|
7367
7377
|
className: b(Sf.input, y && Sf.inputSmall, u && !f && Sf.editable),
|
|
7368
7378
|
children: /* @__PURE__ */ S(So, {
|
|
7369
|
-
content:
|
|
7379
|
+
content: re,
|
|
7370
7380
|
isOpen: k,
|
|
7371
7381
|
isNonModal: !0,
|
|
7372
7382
|
closeOnOutsideClick: !1,
|
|
@@ -7381,7 +7391,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7381
7391
|
className: Sf.inputControl,
|
|
7382
7392
|
"data-testid": g && `${g}-edit-trigger`,
|
|
7383
7393
|
onClick: R,
|
|
7384
|
-
onKeyDown:
|
|
7394
|
+
onKeyDown: ne,
|
|
7385
7395
|
children: /* @__PURE__ */ S(Vf, {
|
|
7386
7396
|
name: e,
|
|
7387
7397
|
value: k ? D : E,
|
|
@@ -7389,7 +7399,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7389
7399
|
initUnit: c,
|
|
7390
7400
|
noConversion: _,
|
|
7391
7401
|
onChange: (e) => O(e.target.value),
|
|
7392
|
-
onSwitchUnit:
|
|
7402
|
+
onSwitchUnit: ee,
|
|
7393
7403
|
onFocus: R,
|
|
7394
7404
|
disabled: f,
|
|
7395
7405
|
error: k ? L : null,
|
|
@@ -7408,9 +7418,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7408
7418
|
onChange: o,
|
|
7409
7419
|
onChangeComplete: s,
|
|
7410
7420
|
showArrows: m,
|
|
7411
|
-
showTooltip: !
|
|
7412
|
-
tooltipFormatter:
|
|
7413
|
-
disabled:
|
|
7421
|
+
showTooltip: !V,
|
|
7422
|
+
tooltipFormatter: te,
|
|
7423
|
+
disabled: V,
|
|
7414
7424
|
small: y,
|
|
7415
7425
|
marks: x,
|
|
7416
7426
|
testId: g && `${g}-slider`
|
|
@@ -7437,8 +7447,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7437
7447
|
left: "_left_vkne2_64",
|
|
7438
7448
|
right: "_right_vkne2_64",
|
|
7439
7449
|
selectionIndicator: "_selectionIndicator_vkne2_67"
|
|
7440
|
-
}, Jf = ({ name: e = void 0, options: t = null, value: n = void 0, onChange: r =
|
|
7441
|
-
let c = u(
|
|
7450
|
+
}, Jf = ({ name: e = void 0, options: t = null, value: n = void 0, onChange: r = yn, padding: i = !1, margin: a = !0, testId: o, linkComponent: s }) => {
|
|
7451
|
+
let c = u(W), { simpleInputs: l, options: d, selectedOptions: f } = $c(t, n), p = pn(f) ? void 0 : l ? f : f.value, m = (e) => {
|
|
7442
7452
|
var t;
|
|
7443
7453
|
return (t = e.component) == null ? s : t;
|
|
7444
7454
|
}, h = (e) => !!(e.to && m(e)), g = (t) => {
|
|
@@ -7458,7 +7468,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7458
7468
|
e.metaKey || e.ctrlKey || e.altKey || e.shiftKey || g(t);
|
|
7459
7469
|
}, y = d.filter((e) => !e.hidden || e.value === p), x = d.some(h), w = (e) => {
|
|
7460
7470
|
let { label: t, url: n, to: r, disabled: i, value: a, right: o, invalid: s, badge: l, testId: u } = e, d = h(e), f = m(e), p = d ? r : n;
|
|
7461
|
-
return /* @__PURE__ */ C(
|
|
7471
|
+
return /* @__PURE__ */ C(_i, {
|
|
7462
7472
|
id: a,
|
|
7463
7473
|
...p ? { href: p } : {},
|
|
7464
7474
|
shouldSelectOnPressUp: !0,
|
|
@@ -7477,21 +7487,21 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7477
7487
|
label: t,
|
|
7478
7488
|
invalid: s,
|
|
7479
7489
|
badge: l
|
|
7480
|
-
}), /* @__PURE__ */ S(
|
|
7490
|
+
}), /* @__PURE__ */ S(gi, { className: qf.selectionIndicator })]
|
|
7481
7491
|
}, a);
|
|
7482
7492
|
};
|
|
7483
7493
|
if (d) {
|
|
7484
|
-
let t = /* @__PURE__ */ S(
|
|
7494
|
+
let t = /* @__PURE__ */ S(yi, {
|
|
7485
7495
|
selectedKey: p,
|
|
7486
7496
|
onSelectionChange: g,
|
|
7487
7497
|
"data-testid": o,
|
|
7488
|
-
children: /* @__PURE__ */ S(
|
|
7498
|
+
children: /* @__PURE__ */ S(vi, {
|
|
7489
7499
|
"aria-label": e == null ? "Tabs" : e,
|
|
7490
7500
|
className: b(qf.tabs, i ? qf.padding : "", a ? qf.margin : ""),
|
|
7491
7501
|
children: y.map(w)
|
|
7492
7502
|
})
|
|
7493
7503
|
});
|
|
7494
|
-
return x ? /* @__PURE__ */ S(
|
|
7504
|
+
return x ? /* @__PURE__ */ S(Un, {
|
|
7495
7505
|
navigate: _,
|
|
7496
7506
|
children: t
|
|
7497
7507
|
}) : t;
|
|
@@ -7519,8 +7529,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7519
7529
|
textarea: "_textarea_qbe2o_81",
|
|
7520
7530
|
small: "_small_qbe2o_120",
|
|
7521
7531
|
monospace: "_monospace_qbe2o_159"
|
|
7522
|
-
}, Zf = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o =
|
|
7523
|
-
let x = u(
|
|
7532
|
+
}, Zf = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = yn, onKeyPress: s = yn, onFocus: c = yn, onBlur: l = yn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: g, monospace: _ = !1, small: v = !1, testId: y }) => {
|
|
7533
|
+
let x = u(W), C = /* @__PURE__ */ S("textarea", {
|
|
7524
7534
|
className: b(Xf.textarea, f ? Xf.error : "", p ? Xf.warning : "", _ ? Xf.monospace : "", v ? Xf.small : ""),
|
|
7525
7535
|
name: e,
|
|
7526
7536
|
value: t,
|
|
@@ -7538,7 +7548,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7538
7548
|
"data-warning": p || null,
|
|
7539
7549
|
"data-testid": y
|
|
7540
7550
|
});
|
|
7541
|
-
return /* @__PURE__ */ S(
|
|
7551
|
+
return /* @__PURE__ */ S(K, {
|
|
7542
7552
|
error: !!f,
|
|
7543
7553
|
warning: !!p,
|
|
7544
7554
|
text: m || f || p,
|
|
@@ -7567,7 +7577,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7567
7577
|
className: Q.alert,
|
|
7568
7578
|
children: e
|
|
7569
7579
|
}), $f = ({ icon: e, url: t, onClick: n }) => {
|
|
7570
|
-
let r = /* @__PURE__ */ S(
|
|
7580
|
+
let r = /* @__PURE__ */ S(G, { icon: e });
|
|
7571
7581
|
return t ? /* @__PURE__ */ S("a", {
|
|
7572
7582
|
href: t,
|
|
7573
7583
|
onClick: n,
|
|
@@ -7610,7 +7620,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7610
7620
|
}, tp = /* @__PURE__ */ function(e) {
|
|
7611
7621
|
return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
|
|
7612
7622
|
}({}), np = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: s = "a" }) => {
|
|
7613
|
-
let c = u(
|
|
7623
|
+
let c = u(W);
|
|
7614
7624
|
return /* @__PURE__ */ C(s, {
|
|
7615
7625
|
className: b(Q.link, i ? Q.active : ""),
|
|
7616
7626
|
href: t || "#",
|
|
@@ -7658,7 +7668,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7658
7668
|
children: /* @__PURE__ */ S(lo, {
|
|
7659
7669
|
maxHeight: "100%",
|
|
7660
7670
|
menu: {
|
|
7661
|
-
trigger:
|
|
7671
|
+
trigger: Di.COMPONENT,
|
|
7662
7672
|
placement: "bottom-start",
|
|
7663
7673
|
component: /* @__PURE__ */ S(np, {
|
|
7664
7674
|
label: e.label,
|
|
@@ -7779,16 +7789,16 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7779
7789
|
className: cp.toggle,
|
|
7780
7790
|
children: /* @__PURE__ */ S(q, {
|
|
7781
7791
|
basic: !0,
|
|
7782
|
-
colored: r ? !0 :
|
|
7792
|
+
colored: r ? !0 : Oi.MUTED,
|
|
7783
7793
|
small: !0,
|
|
7784
7794
|
round: !0,
|
|
7785
|
-
icon: r ? (s == null ? void 0 : s.collapse) ||
|
|
7795
|
+
icon: r ? (s == null ? void 0 : s.collapse) || U.COLLAPSE : (s == null ? void 0 : s.expand) || U.EXPAND,
|
|
7786
7796
|
onClick: x
|
|
7787
7797
|
})
|
|
7788
7798
|
}),
|
|
7789
7799
|
o && /* @__PURE__ */ S("div", {
|
|
7790
7800
|
className: Z.drag,
|
|
7791
|
-
children: /* @__PURE__ */ S(
|
|
7801
|
+
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
7792
7802
|
}),
|
|
7793
7803
|
/* @__PURE__ */ S(Td, { item: u }),
|
|
7794
7804
|
/* @__PURE__ */ C("div", {
|
|
@@ -7866,11 +7876,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7866
7876
|
name: e.name,
|
|
7867
7877
|
actions: e.actions,
|
|
7868
7878
|
stickyHeader: m
|
|
7869
|
-
}), /* @__PURE__ */ S(
|
|
7870
|
-
backend:
|
|
7871
|
-
options:
|
|
7879
|
+
}), /* @__PURE__ */ S(bi, {
|
|
7880
|
+
backend: xi,
|
|
7881
|
+
options: Ci(),
|
|
7872
7882
|
context: window,
|
|
7873
|
-
children: /* @__PURE__ */ S(
|
|
7883
|
+
children: /* @__PURE__ */ S(Si, {
|
|
7874
7884
|
ref: b,
|
|
7875
7885
|
tree: j,
|
|
7876
7886
|
sort: !1,
|
|
@@ -8046,7 +8056,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8046
8056
|
className: fp.drag,
|
|
8047
8057
|
onClick: (e) => e.stopPropagation(),
|
|
8048
8058
|
ref: i,
|
|
8049
|
-
children: /* @__PURE__ */ S(
|
|
8059
|
+
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
8050
8060
|
})
|
|
8051
8061
|
}),
|
|
8052
8062
|
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ S("td", { className: fp.folderCell }, t)),
|
|
@@ -8058,11 +8068,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8058
8068
|
onMouseDown: (e) => e.stopPropagation(),
|
|
8059
8069
|
children: /* @__PURE__ */ S(q, {
|
|
8060
8070
|
basic: !0,
|
|
8061
|
-
colored: c ? !0 :
|
|
8071
|
+
colored: c ? !0 : Oi.MUTED,
|
|
8062
8072
|
disabled: !a,
|
|
8063
8073
|
small: !0,
|
|
8064
8074
|
round: !0,
|
|
8065
|
-
icon: a && c ? (s == null ? void 0 : s.collapse) ||
|
|
8075
|
+
icon: a && c ? (s == null ? void 0 : s.collapse) || U.COLLAPSE : (s == null ? void 0 : s.expand) || U.EXPAND
|
|
8066
8076
|
})
|
|
8067
8077
|
})
|
|
8068
8078
|
}),
|
|
@@ -8216,7 +8226,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8216
8226
|
cells: e.cells.map((e) => {
|
|
8217
8227
|
if ("autoUnit" in e && e.autoUnit && (typeof e.value == "string" || typeof e.value == "number")) {
|
|
8218
8228
|
let { unitKey: o, value: s, formatDisplayValue: c } = e, l = a && "roundDisplayValue" in e ? e.roundDisplayValue : null, u = t[o], d = n[o], f = d && u !== d, { value: p = s } = Af({
|
|
8219
|
-
value:
|
|
8229
|
+
value: Er(s),
|
|
8220
8230
|
unitkey: o,
|
|
8221
8231
|
toUnit: u,
|
|
8222
8232
|
fromUnit: d
|
|
@@ -8262,8 +8272,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8262
8272
|
error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
|
|
8263
8273
|
disabled: c || !u,
|
|
8264
8274
|
searchable: !1,
|
|
8265
|
-
options: (a =
|
|
8266
|
-
label:
|
|
8275
|
+
options: (a = fr(s)) == null ? void 0 : a.map((e) => ({
|
|
8276
|
+
label: vr(e),
|
|
8267
8277
|
value: e
|
|
8268
8278
|
})),
|
|
8269
8279
|
native: e.native,
|
|
@@ -8308,7 +8318,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8308
8318
|
i
|
|
8309
8319
|
]);
|
|
8310
8320
|
return d(() => {
|
|
8311
|
-
|
|
8321
|
+
un(p, m) || Object.keys(p).forEach((e) => {
|
|
8312
8322
|
let t = m == null ? void 0 : m[e], n = p[e];
|
|
8313
8323
|
t !== n && _({
|
|
8314
8324
|
unitKey: e,
|
|
@@ -8343,7 +8353,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8343
8353
|
label: d == null ? void 0 : d.custom,
|
|
8344
8354
|
value: void 0
|
|
8345
8355
|
}] : []
|
|
8346
|
-
], m = a !== void 0 && o !== void 0 && !
|
|
8356
|
+
], m = a !== void 0 && o !== void 0 && !un(a, o);
|
|
8347
8357
|
return /* @__PURE__ */ C("div", {
|
|
8348
8358
|
className: Pp.settingField,
|
|
8349
8359
|
"data-testid": u,
|
|
@@ -8356,8 +8366,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8356
8366
|
gap: "8px",
|
|
8357
8367
|
alignItems: "center",
|
|
8358
8368
|
children: [m && /* @__PURE__ */ S(ma, {
|
|
8359
|
-
text:
|
|
8360
|
-
icon:
|
|
8369
|
+
text: Or(o).valid ? `${d == null ? void 0 : d.companySetting}: ${_r(o) ? kr(o) : o}` : d == null ? void 0 : d.companySettingDifferent,
|
|
8370
|
+
icon: U.INFO
|
|
8361
8371
|
}), /* @__PURE__ */ S(el, {
|
|
8362
8372
|
small: !0,
|
|
8363
8373
|
searchable: !1,
|
|
@@ -8427,11 +8437,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8427
8437
|
muted: !0,
|
|
8428
8438
|
children: a == null ? void 0 : a.changesTooLarge
|
|
8429
8439
|
})
|
|
8430
|
-
}) : /* @__PURE__ */ S(
|
|
8440
|
+
}) : /* @__PURE__ */ S(wi, {
|
|
8431
8441
|
oldValue: e,
|
|
8432
8442
|
newValue: t,
|
|
8433
8443
|
splitView: o === Lp,
|
|
8434
|
-
compareMethod:
|
|
8444
|
+
compareMethod: Ti.WORDS
|
|
8435
8445
|
})
|
|
8436
8446
|
}) });
|
|
8437
8447
|
}, Bp = { backgroundColor: "var(--color-background-error-muted)" }, Vp = { backgroundColor: "var(--color-background-success-muted)" }, Hp = { backgroundColor: "var(--color-background-warning-muted)" }, Up = (e) => typeof e == "object" && e && "value" in e ? e.value : e, Wp = (e) => {
|
|
@@ -8453,7 +8463,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8453
8463
|
cells: e.cells.map((e, n) => {
|
|
8454
8464
|
var r;
|
|
8455
8465
|
let i = (r = t.cells) == null ? void 0 : r[n], a = i == null ? void 0 : i.value;
|
|
8456
|
-
return !i ||
|
|
8466
|
+
return !i || un(e.value, a) ? e : {
|
|
8457
8467
|
...e,
|
|
8458
8468
|
style: {
|
|
8459
8469
|
...e.style,
|
|
@@ -9821,7 +9831,7 @@ var Hm = (e = {}) => Vm({
|
|
|
9821
9831
|
}
|
|
9822
9832
|
return n || "";
|
|
9823
9833
|
}, Km = (e) => {
|
|
9824
|
-
let t = (e) =>
|
|
9834
|
+
let t = (e) => _r(e) ? kr(e) : String(e);
|
|
9825
9835
|
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);
|
|
9826
9836
|
}, qm = (e) => {
|
|
9827
9837
|
switch (e.length) {
|
|
@@ -9855,7 +9865,7 @@ var Hm = (e = {}) => Vm({
|
|
|
9855
9865
|
after: ""
|
|
9856
9866
|
};
|
|
9857
9867
|
}
|
|
9858
|
-
}, Jm = (e) => Array.isArray(e), Ym = (e, t) => t ? Jm(t) ? t.length === 0 ? e : t.reduce((e, t) => Wm.unpatch(
|
|
9868
|
+
}, Jm = (e) => Array.isArray(e), Ym = (e, t) => t ? Jm(t) ? t.length === 0 ? e : t.reduce((e, t) => Wm.unpatch(tn(e), tn(t)), tn(e)) : Wm.unpatch(tn(e), tn(t)) : e, Xm = (e) => e.createdAt || e.date, Zm = (e, t, n) => {
|
|
9859
9869
|
let r = Xm(e);
|
|
9860
9870
|
if (!r) return {
|
|
9861
9871
|
oldJson: "",
|
|
@@ -9866,7 +9876,7 @@ var Hm = (e = {}) => Vm({
|
|
|
9866
9876
|
let t = Xm(e);
|
|
9867
9877
|
return !!(e.diffs && t && t >= r);
|
|
9868
9878
|
}), a = Array.from({ length: i.length + 1 });
|
|
9869
|
-
a[0] =
|
|
9879
|
+
a[0] = tn(n);
|
|
9870
9880
|
let o = "", s = "";
|
|
9871
9881
|
try {
|
|
9872
9882
|
for (let e = 0; e < i.length; e++) {
|
|
@@ -9904,10 +9914,10 @@ var Hm = (e = {}) => Vm({
|
|
|
9904
9914
|
value: s
|
|
9905
9915
|
})) return;
|
|
9906
9916
|
let c = [...r, i];
|
|
9907
|
-
|
|
9917
|
+
sn(s) ? t.push({
|
|
9908
9918
|
deltaFormat: [...s],
|
|
9909
9919
|
path: c
|
|
9910
|
-
}) :
|
|
9920
|
+
}) : hn(s) && Qm(s, t, n, c);
|
|
9911
9921
|
});
|
|
9912
9922
|
}, $m = (e, t = {}) => {
|
|
9913
9923
|
let n = [];
|
|
@@ -9926,7 +9936,7 @@ var Hm = (e = {}) => Vm({
|
|
|
9926
9936
|
}, nh = (e, t = e.length - 1) => {
|
|
9927
9937
|
if (t >= e.length) return "Value";
|
|
9928
9938
|
let n = e[t];
|
|
9929
|
-
return !n ||
|
|
9939
|
+
return !n || mr(n) ? nh(e, t - 1) : eh(n);
|
|
9930
9940
|
}, rh = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
9931
9941
|
let o = th(r), s = th(i), c = a ? ` in ${a}` : "";
|
|
9932
9942
|
switch (t) {
|
|
@@ -10090,7 +10100,7 @@ var Hm = (e = {}) => Vm({
|
|
|
10090
10100
|
padding: !1,
|
|
10091
10101
|
children: r ? /* @__PURE__ */ S(Fd, {
|
|
10092
10102
|
height: "100px",
|
|
10093
|
-
theme:
|
|
10103
|
+
theme: Mi.WHITE,
|
|
10094
10104
|
children: /* @__PURE__ */ S(Sa, { dark: !0 })
|
|
10095
10105
|
}) : /* @__PURE__ */ S(eu, { table: {
|
|
10096
10106
|
headers: T,
|
|
@@ -10174,7 +10184,7 @@ var Hm = (e = {}) => Vm({
|
|
|
10174
10184
|
padding: 0,
|
|
10175
10185
|
children: s
|
|
10176
10186
|
}) : s;
|
|
10177
|
-
}, ph = ({ children: e, options: t }) => /* @__PURE__ */ S(
|
|
10187
|
+
}, ph = ({ children: e, options: t }) => /* @__PURE__ */ S(Ei.ErrorBoundary, {
|
|
10178
10188
|
fallback: /* @__PURE__ */ S(fh, { options: t }),
|
|
10179
10189
|
onError: (e, t) => {
|
|
10180
10190
|
console.error("Error caught by boundary:", e, t);
|
|
@@ -10189,4 +10199,4 @@ var Hm = (e = {}) => Vm({
|
|
|
10189
10199
|
});
|
|
10190
10200
|
};
|
|
10191
10201
|
//#endregion
|
|
10192
|
-
export {
|
|
10202
|
+
export { Zi as Accordion, ya as AccordionWithDefaultToggle, fo as Actions, ki as Align, lh as AuditLog, no as Badge, go as Breadcrumb, mo as BreadcrumbLinkType, q as Button, vo as ButtonGroup, Ai as ButtonPosition, Ca as ButtonType, bo as Card, ha as CheckBox, Gi as Chevron, Ji as Collapse, Oi as Color, Vo as ColorInput, Bo as ColorInputPopover, Ko as Column, rs as Dialog, Yp as DiffTable, zp as DiffViewer, W as DisabledContext, Zo as Divider, us as Drawer, tp as ElementType, du as Empty, ph as ErrorBoundary, _d as Field, pd as FileButton, bs as FileInput, vd as Flex, bd as FormRow, Eo as Grid, H as GroupOrder, es as Heading, ma as HelpIcon, G as Icon, U as IconType, hs as Input, ps as InputGroup, ol as InputGroupAddon, _s as InputReaderMethods, Ni as InputType, hd as Label, Nd as List, Sd as ListHeading, Od as ListSubheading, Fd as Loader, ff as Mention, lo as Menu, Ka as MenuCarat, Ga as MenuType, Gs as Message, zs as MessageType, Ts as Modal, Zs as NativeSelect, yl as NumberInput, Hd as OptionDropdown, Wd as Page, sl as Pagination, sp as PopConfirm, So as Popover, Gd as Portal, qd as PrintHeader, Os as ProgressBar, Jd as RadioButton, df as RichTextInput, mf as Row, el as Select, Fp as SettingField, yf as SideBar, xf as Skeleton, kl as Slider, Ns as SmartUploadModal, xs as Spacer, Sa as Spinner, eu as Table, fd as TableImportExport, Jf as Tabs, Yo as Text, Zf as TextArea, Yf as TextLink, ji as TextTransform, Mi as Theme, ai as Toaster, Xu as Toggle, K as Tooltip, ip as TopBar, dp as Tree, Cp as TreeTable, Di as TriggerType, Vf as UnitInput, Gf as UnitSlider, Np as UnitTable, uh as UsageTracker, qu as dismissToast, Rf as initializeContext, _h as initializeGuiLibrary, vs as readFile, Ku as toast, Qs as useFocus, Ss as useKeyboardEvent, tc as useWindowWidth, hh as withChainableErrorBoundary, mh as withErrorBoundary };
|