@apia/components 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +13 -4
- package/dist/index.js +1918 -992
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { jsx, Fragment
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { Box as Box$1, Input, getVariant, makeStyledComponent, Button, Flex, spacing, Spinner, IconButton as IconButton$2, Image, useBreakpointIndex, Close, responsive, Heading as Heading$1, useThemeUI, injectStyles, Select, focusOutline, Label, Progress, Grid } from '@apia/theme';
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
import React__default, {
|
|
4
|
+
import React__default, { useRef, useCallback, useState, useEffect, createContext, useContext, useMemo, forwardRef, useTransition, useDeferredValue, Children, memo, isValidElement, cloneElement, createElement, lazy } from 'react';
|
|
5
|
+
import { ApiaApi, makeApiaUrl } from '@apia/api';
|
|
6
|
+
import { useMount, useLatest, arrayOrArray, findScrollContainer, getSpecificParent, getLabel, useUpdateEffect, debugDispatcher, useCombinedRefs, focus, focusSelector, getFocusSelector, screenLocker, customEvents, isChild, getDateFormat, persistentStorage, disableChildrenFocus, enableChildrenFocus, EventEmitter, useDebouncedCallback, getIndex, addBoundary, noNaN, usePrevious, useUnmount, usePropsSelector, PropsStore } from '@apia/util';
|
|
7
|
+
import { Box, Heading, Input as Input$1 } from 'theme-ui';
|
|
8
|
+
import { IconButton as IconButton$1, ApiaUtil as ApiaUtil$1 } from '@apia/components';
|
|
9
|
+
import { Icon as Icon$1, icons, isIconName } from '@apia/icons';
|
|
4
10
|
import { shallowEqual } from '@apia/store';
|
|
5
|
-
import { Box, getVariant, Button, Flex, spacing, Spinner, IconButton as IconButton$1, Image, Input, useBreakpointIndex, Close, responsive, Heading, useThemeUI, injectStyles, Select, focusOutline, makeStyledComponent, Label, Progress, Grid } from '@apia/theme';
|
|
6
|
-
import { findScrollContainer, getSpecificParent, getLabel, useUpdateEffect, debugDispatcher, useCombinedRefs, focus, focusSelector, getFocusSelector, screenLocker, customEvents, isChild, getDateFormat, persistentStorage, disableChildrenFocus, enableChildrenFocus, EventEmitter, useDebouncedCallback, getIndex, addBoundary, noNaN, usePrevious, useMount, useUnmount, useLatest, usePropsSelector, PropsStore } from '@apia/util';
|
|
7
|
-
import { icons, Icon as Icon$1, isIconName } from '@apia/icons';
|
|
8
11
|
import { uniqueId as uniqueId$1, isFunction as isFunction$1, clone } from 'lodash-es';
|
|
9
12
|
import dayjs from 'dayjs';
|
|
10
13
|
import { isFunction, uniqueId as uniqueId$2 } from 'lodash';
|
|
@@ -16,11 +19,908 @@ import { BarLoader } from 'react-spinners';
|
|
|
16
19
|
import AnimateHeight from 'react-animate-height';
|
|
17
20
|
import { useUpdateEffect as useUpdateEffect$1 } from 'ahooks';
|
|
18
21
|
import { createFAsomeStore } from '@apia/dom-store';
|
|
19
|
-
import { IconButton as IconButton$2 } from '@apia/components';
|
|
20
22
|
import { defaultNotifier, NotificationsList } from '@apia/notifications';
|
|
21
23
|
import { ControlledMenu, MenuDivider, SubMenu, MenuItem, useMenuState } from '@szhsin/react-menu';
|
|
22
24
|
import { shallowEqual as shallowEqual$1 } from 'react-redux';
|
|
23
25
|
|
|
26
|
+
var __async$5 = (__this, __arguments, generator) => {
|
|
27
|
+
return new Promise((resolve, reject) => {
|
|
28
|
+
var fulfilled = (value) => {
|
|
29
|
+
try {
|
|
30
|
+
step(generator.next(value));
|
|
31
|
+
} catch (e) {
|
|
32
|
+
reject(e);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
var rejected = (value) => {
|
|
36
|
+
try {
|
|
37
|
+
step(generator.throw(value));
|
|
38
|
+
} catch (e) {
|
|
39
|
+
reject(e);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
43
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
const useGetChatData = () => {
|
|
47
|
+
const data = useRef(null);
|
|
48
|
+
const cbs = useRef([]);
|
|
49
|
+
const useData = useCallback(() => {
|
|
50
|
+
const [state, setState] = useState(data.current);
|
|
51
|
+
useMount(() => {
|
|
52
|
+
setState(data.current);
|
|
53
|
+
const cb = () => {
|
|
54
|
+
setState(data.current);
|
|
55
|
+
};
|
|
56
|
+
cbs.current.push(cb);
|
|
57
|
+
return () => {
|
|
58
|
+
cbs.current = cbs.current.filter((search) => search !== cb);
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
return state;
|
|
62
|
+
}, []);
|
|
63
|
+
const setData = useCallback((newData) => {
|
|
64
|
+
data.current = newData;
|
|
65
|
+
cbs.current.forEach((current) => current(data.current));
|
|
66
|
+
}, []);
|
|
67
|
+
const setDataRef = useLatest(setData);
|
|
68
|
+
const fetchData = useCallback(() => __async$5(void 0, null, function* () {
|
|
69
|
+
try {
|
|
70
|
+
const newData = yield ApiaApi.post(
|
|
71
|
+
makeApiaUrl({
|
|
72
|
+
ajaxUrl: "apia/server.chat",
|
|
73
|
+
action: "callback",
|
|
74
|
+
tabId: window.TAB_ID
|
|
75
|
+
}),
|
|
76
|
+
{ postDataTreatement: "stringify" }
|
|
77
|
+
);
|
|
78
|
+
if (!(newData == null ? void 0 : newData.data))
|
|
79
|
+
return;
|
|
80
|
+
setDataRef.current({
|
|
81
|
+
status: newData.data.status,
|
|
82
|
+
users: arrayOrArray(newData.data.users.user),
|
|
83
|
+
groups: arrayOrArray(newData.data.groups.group),
|
|
84
|
+
conversations: arrayOrArray(newData.data.conversations.conversation)
|
|
85
|
+
});
|
|
86
|
+
} catch (error) {
|
|
87
|
+
}
|
|
88
|
+
}), [setDataRef]);
|
|
89
|
+
useMount(() => {
|
|
90
|
+
const interval = setInterval(() => __async$5(void 0, null, function* () {
|
|
91
|
+
yield fetchData();
|
|
92
|
+
}), 1e3);
|
|
93
|
+
return () => {
|
|
94
|
+
clearInterval(interval);
|
|
95
|
+
};
|
|
96
|
+
});
|
|
97
|
+
return { fetchData, useData };
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
var __async$4 = (__this, __arguments, generator) => {
|
|
101
|
+
return new Promise((resolve, reject) => {
|
|
102
|
+
var fulfilled = (value) => {
|
|
103
|
+
try {
|
|
104
|
+
step(generator.next(value));
|
|
105
|
+
} catch (e) {
|
|
106
|
+
reject(e);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
var rejected = (value) => {
|
|
110
|
+
try {
|
|
111
|
+
step(generator.throw(value));
|
|
112
|
+
} catch (e) {
|
|
113
|
+
reject(e);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
117
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
const chatRequestHandlers = {
|
|
121
|
+
closeChat: (conversationId) => __async$4(void 0, null, function* () {
|
|
122
|
+
const newData = yield ApiaApi.post(
|
|
123
|
+
makeApiaUrl({
|
|
124
|
+
ajaxUrl: "apia/server.chat",
|
|
125
|
+
action: "quitConversation",
|
|
126
|
+
tabId: window.TAB_ID,
|
|
127
|
+
conversationId
|
|
128
|
+
}),
|
|
129
|
+
{ postDataTreatement: "stringify" }
|
|
130
|
+
);
|
|
131
|
+
return newData;
|
|
132
|
+
}),
|
|
133
|
+
sendMessage: (conversationId, message) => __async$4(void 0, null, function* () {
|
|
134
|
+
const newData = yield ApiaApi.post(
|
|
135
|
+
makeApiaUrl({
|
|
136
|
+
ajaxUrl: "apia/server.chat",
|
|
137
|
+
action: "sendMessage",
|
|
138
|
+
tabId: window.TAB_ID,
|
|
139
|
+
conversationId,
|
|
140
|
+
message
|
|
141
|
+
}),
|
|
142
|
+
{ postDataTreatement: "stringify" }
|
|
143
|
+
);
|
|
144
|
+
return newData;
|
|
145
|
+
}),
|
|
146
|
+
openConversation: (userId, title) => __async$4(void 0, null, function* () {
|
|
147
|
+
const newData = yield ApiaApi.post(
|
|
148
|
+
makeApiaUrl({
|
|
149
|
+
ajaxUrl: "apia/server.chat",
|
|
150
|
+
action: "startConversation",
|
|
151
|
+
tabId: window.TAB_ID,
|
|
152
|
+
title,
|
|
153
|
+
userId
|
|
154
|
+
}),
|
|
155
|
+
{ postDataTreatement: "stringify" }
|
|
156
|
+
);
|
|
157
|
+
return newData;
|
|
158
|
+
})
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
var __async$3 = (__this, __arguments, generator) => {
|
|
162
|
+
return new Promise((resolve, reject) => {
|
|
163
|
+
var fulfilled = (value) => {
|
|
164
|
+
try {
|
|
165
|
+
step(generator.next(value));
|
|
166
|
+
} catch (e) {
|
|
167
|
+
reject(e);
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
var rejected = (value) => {
|
|
171
|
+
try {
|
|
172
|
+
step(generator.throw(value));
|
|
173
|
+
} catch (e) {
|
|
174
|
+
reject(e);
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
178
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
const ChatRoomHeader = ({
|
|
182
|
+
conversation,
|
|
183
|
+
setShow
|
|
184
|
+
}) => {
|
|
185
|
+
const { fetchData } = useChatContext();
|
|
186
|
+
return /* @__PURE__ */ jsxs(Box, { className: "chatRoom__header", onClick: () => setShow((prev) => !prev), children: [
|
|
187
|
+
/* @__PURE__ */ jsx(Heading, { as: "h6", children: conversation == null ? void 0 : conversation.title }),
|
|
188
|
+
/* @__PURE__ */ jsx(Box, { className: "chatRoom__header__rightButtons", children: /* @__PURE__ */ jsx(
|
|
189
|
+
IconButton$1,
|
|
190
|
+
{
|
|
191
|
+
className: "closeButton",
|
|
192
|
+
variant: "icon-outline-danger",
|
|
193
|
+
onClick: (e) => __async$3(void 0, null, function* () {
|
|
194
|
+
e.stopPropagation();
|
|
195
|
+
e.preventDefault();
|
|
196
|
+
if (!(conversation == null ? void 0 : conversation.id))
|
|
197
|
+
return;
|
|
198
|
+
yield chatRequestHandlers.closeChat(conversation.id);
|
|
199
|
+
fetchData();
|
|
200
|
+
}),
|
|
201
|
+
icon: "CloseThin",
|
|
202
|
+
size: "Md"
|
|
203
|
+
}
|
|
204
|
+
) })
|
|
205
|
+
] });
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
var __async$2 = (__this, __arguments, generator) => {
|
|
209
|
+
return new Promise((resolve, reject) => {
|
|
210
|
+
var fulfilled = (value) => {
|
|
211
|
+
try {
|
|
212
|
+
step(generator.next(value));
|
|
213
|
+
} catch (e) {
|
|
214
|
+
reject(e);
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
var rejected = (value) => {
|
|
218
|
+
try {
|
|
219
|
+
step(generator.throw(value));
|
|
220
|
+
} catch (e) {
|
|
221
|
+
reject(e);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
225
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
226
|
+
});
|
|
227
|
+
};
|
|
228
|
+
const useChatRoomState = (conversation, messagesRef) => {
|
|
229
|
+
const { context } = useChatContext();
|
|
230
|
+
const [showChat, setShowChat] = useState(true);
|
|
231
|
+
const [message, setMessage] = useState("");
|
|
232
|
+
const [messageHistory, setMessageHistory] = useState([]);
|
|
233
|
+
const localMessagesRef = messagesRef;
|
|
234
|
+
const scrollToBottom = useCallback(() => {
|
|
235
|
+
if (localMessagesRef == null ? void 0 : localMessagesRef.current) {
|
|
236
|
+
localMessagesRef.current.scrollTop = localMessagesRef.current.scrollHeight;
|
|
237
|
+
}
|
|
238
|
+
}, [localMessagesRef]);
|
|
239
|
+
useMount(() => {
|
|
240
|
+
var _a;
|
|
241
|
+
const messageInput = document.querySelector(
|
|
242
|
+
`#id_${(_a = conversation == null ? void 0 : conversation.id) != null ? _a : ""}`
|
|
243
|
+
);
|
|
244
|
+
if (messageInput) {
|
|
245
|
+
messageInput == null ? void 0 : messageInput.focus();
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
useEffect(() => {
|
|
249
|
+
if (!(conversation == null ? void 0 : conversation.messages))
|
|
250
|
+
return;
|
|
251
|
+
setMessageHistory((prev) => {
|
|
252
|
+
var _a;
|
|
253
|
+
return [
|
|
254
|
+
...prev,
|
|
255
|
+
...arrayOrArray((_a = conversation == null ? void 0 : conversation.messages) == null ? void 0 : _a.message).filter((current) => {
|
|
256
|
+
return !current.fromMe;
|
|
257
|
+
})
|
|
258
|
+
];
|
|
259
|
+
});
|
|
260
|
+
}, [conversation, conversation == null ? void 0 : conversation.messages, scrollToBottom]);
|
|
261
|
+
const chatData = context.useData();
|
|
262
|
+
const sendMessageHandler = (e) => __async$2(void 0, null, function* () {
|
|
263
|
+
var _a;
|
|
264
|
+
if (e.code === "Enter" && ((_a = e == null ? void 0 : e.currentTarget) == null ? void 0 : _a.value.trim())) {
|
|
265
|
+
setMessageHistory((prev) => {
|
|
266
|
+
var _a2, _b;
|
|
267
|
+
return [
|
|
268
|
+
...prev,
|
|
269
|
+
{
|
|
270
|
+
content: message,
|
|
271
|
+
fromMe: true,
|
|
272
|
+
extraId: (_b = (_a2 = chatData == null ? void 0 : chatData.status) == null ? void 0 : _a2.id) != null ? _b : "1",
|
|
273
|
+
from: window.CURRENT_USER_LOGIN,
|
|
274
|
+
type: "text"
|
|
275
|
+
}
|
|
276
|
+
];
|
|
277
|
+
});
|
|
278
|
+
if (!(conversation == null ? void 0 : conversation.id))
|
|
279
|
+
return;
|
|
280
|
+
yield chatRequestHandlers.sendMessage(conversation.id, message);
|
|
281
|
+
scrollToBottom();
|
|
282
|
+
setMessage("");
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
let initialized = false;
|
|
286
|
+
let from = "";
|
|
287
|
+
let showFrom = true;
|
|
288
|
+
const chatContent = messageHistory == null ? void 0 : messageHistory.map((current, idx) => {
|
|
289
|
+
if (!initialized) {
|
|
290
|
+
from = current.from;
|
|
291
|
+
showFrom = true;
|
|
292
|
+
initialized = true;
|
|
293
|
+
} else {
|
|
294
|
+
if (from !== current.from) {
|
|
295
|
+
from = current.from;
|
|
296
|
+
showFrom = true;
|
|
297
|
+
} else {
|
|
298
|
+
showFrom = false;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
return current.content ? /* @__PURE__ */ jsxs(
|
|
302
|
+
Box,
|
|
303
|
+
{
|
|
304
|
+
className: current.fromMe ? "from__me" : "from__notMe",
|
|
305
|
+
children: [
|
|
306
|
+
/* @__PURE__ */ jsx(Box, { as: "span", className: "userContact", children: showFrom && current.from }),
|
|
307
|
+
/* @__PURE__ */ jsx(Box, { as: "span", className: "message", children: current.content })
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
Math.random() + idx
|
|
311
|
+
) : null;
|
|
312
|
+
});
|
|
313
|
+
return {
|
|
314
|
+
chatContent,
|
|
315
|
+
showChat,
|
|
316
|
+
message,
|
|
317
|
+
setShowChat,
|
|
318
|
+
setMessage,
|
|
319
|
+
sendMessageHandler
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
const ChatRoom = ({
|
|
324
|
+
position,
|
|
325
|
+
conversation
|
|
326
|
+
}) => {
|
|
327
|
+
var _a;
|
|
328
|
+
const messagesRef = useRef(null);
|
|
329
|
+
const {
|
|
330
|
+
showChat,
|
|
331
|
+
chatContent,
|
|
332
|
+
message,
|
|
333
|
+
setMessage,
|
|
334
|
+
setShowChat,
|
|
335
|
+
sendMessageHandler
|
|
336
|
+
} = useChatRoomState(conversation, messagesRef);
|
|
337
|
+
return /* @__PURE__ */ jsxs(Box$1, { className: "chatRoom", sx: { right: position }, children: [
|
|
338
|
+
/* @__PURE__ */ jsx(ChatRoomHeader, { conversation, setShow: setShowChat }),
|
|
339
|
+
/* @__PURE__ */ jsxs(Box$1, { className: `chatRoom__content ${showChat ? "show" : ""}`, children: [
|
|
340
|
+
/* @__PURE__ */ jsx(Box$1, { className: "chatRoom__messages", ref: messagesRef, children: chatContent }),
|
|
341
|
+
/* @__PURE__ */ jsx(
|
|
342
|
+
Input,
|
|
343
|
+
{
|
|
344
|
+
id: `id_${(_a = conversation == null ? void 0 : conversation.id) != null ? _a : ""}`,
|
|
345
|
+
className: "messageInput",
|
|
346
|
+
type: "text",
|
|
347
|
+
value: message,
|
|
348
|
+
placeholder: "Escribe un mensaje",
|
|
349
|
+
onChange: (e) => setMessage(e.currentTarget.value),
|
|
350
|
+
onKeyDown: (e) => sendMessageHandler(e)
|
|
351
|
+
}
|
|
352
|
+
)
|
|
353
|
+
] })
|
|
354
|
+
] });
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
var __defProp$W = Object.defineProperty;
|
|
358
|
+
var __defProps$L = Object.defineProperties;
|
|
359
|
+
var __getOwnPropDescs$L = Object.getOwnPropertyDescriptors;
|
|
360
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
361
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
362
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
363
|
+
var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
364
|
+
var __spreadValues$W = (a, b) => {
|
|
365
|
+
for (var prop in b || (b = {}))
|
|
366
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
367
|
+
__defNormalProp$W(a, prop, b[prop]);
|
|
368
|
+
if (__getOwnPropSymbols$X)
|
|
369
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
370
|
+
if (__propIsEnum$X.call(b, prop))
|
|
371
|
+
__defNormalProp$W(a, prop, b[prop]);
|
|
372
|
+
}
|
|
373
|
+
return a;
|
|
374
|
+
};
|
|
375
|
+
var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
|
|
376
|
+
const ChatRoomList = () => {
|
|
377
|
+
var _a, _b;
|
|
378
|
+
const { useData } = useChatContext();
|
|
379
|
+
return /* @__PURE__ */ jsx(
|
|
380
|
+
Box,
|
|
381
|
+
__spreadProps$L(__spreadValues$W({
|
|
382
|
+
className: "chatRoom__list"
|
|
383
|
+
}, getVariant("layout.common.components.apiaChat.chatRoom")), {
|
|
384
|
+
children: (_b = (_a = useData()) == null ? void 0 : _a.conversations) == null ? void 0 : _b.map((current, idx) => {
|
|
385
|
+
if (!current)
|
|
386
|
+
return;
|
|
387
|
+
return /* @__PURE__ */ jsx(
|
|
388
|
+
ChatRoom,
|
|
389
|
+
{
|
|
390
|
+
position: 320 * (idx + 1),
|
|
391
|
+
conversation: current
|
|
392
|
+
},
|
|
393
|
+
current == null ? void 0 : current.id
|
|
394
|
+
);
|
|
395
|
+
})
|
|
396
|
+
})
|
|
397
|
+
);
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
var __async$1 = (__this, __arguments, generator) => {
|
|
401
|
+
return new Promise((resolve, reject) => {
|
|
402
|
+
var fulfilled = (value) => {
|
|
403
|
+
try {
|
|
404
|
+
step(generator.next(value));
|
|
405
|
+
} catch (e) {
|
|
406
|
+
reject(e);
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
var rejected = (value) => {
|
|
410
|
+
try {
|
|
411
|
+
step(generator.throw(value));
|
|
412
|
+
} catch (e) {
|
|
413
|
+
reject(e);
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
417
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
418
|
+
});
|
|
419
|
+
};
|
|
420
|
+
const ChatUsersList = ({ users }) => {
|
|
421
|
+
const [showUsers, setShowUsers] = useState(true);
|
|
422
|
+
const { fetchData } = useChatContext();
|
|
423
|
+
return /* @__PURE__ */ jsxs(Box, { className: "chatManager__users", children: [
|
|
424
|
+
/* @__PURE__ */ jsxs(
|
|
425
|
+
Heading,
|
|
426
|
+
{
|
|
427
|
+
className: "chatManager__title",
|
|
428
|
+
as: "h6",
|
|
429
|
+
onClick: () => setShowUsers((prev) => !prev),
|
|
430
|
+
children: [
|
|
431
|
+
/* @__PURE__ */ jsx(Icon$1, { name: showUsers ? "ArrowDownThin" : "ArrowRightThin", title: "" }),
|
|
432
|
+
"Usuarios"
|
|
433
|
+
]
|
|
434
|
+
}
|
|
435
|
+
),
|
|
436
|
+
/* @__PURE__ */ jsx(
|
|
437
|
+
Box,
|
|
438
|
+
{
|
|
439
|
+
as: "ul",
|
|
440
|
+
className: `chatManager__users__list ${showUsers ? "show" : ""}`,
|
|
441
|
+
children: users == null ? void 0 : users.map((current) => {
|
|
442
|
+
return current && /* @__PURE__ */ jsx(
|
|
443
|
+
Box,
|
|
444
|
+
{
|
|
445
|
+
as: "li",
|
|
446
|
+
className: "chatManager__list__item",
|
|
447
|
+
onClick: () => __async$1(void 0, null, function* () {
|
|
448
|
+
var _a;
|
|
449
|
+
const res = yield chatRequestHandlers.openConversation(
|
|
450
|
+
current.id,
|
|
451
|
+
current.name
|
|
452
|
+
);
|
|
453
|
+
if (!((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.status))
|
|
454
|
+
return;
|
|
455
|
+
fetchData();
|
|
456
|
+
}),
|
|
457
|
+
children: current == null ? void 0 : current.name
|
|
458
|
+
},
|
|
459
|
+
current == null ? void 0 : current.id
|
|
460
|
+
);
|
|
461
|
+
})
|
|
462
|
+
}
|
|
463
|
+
)
|
|
464
|
+
] });
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
const ChatGroupsList = ({ groups }) => {
|
|
468
|
+
const [showGroups, setShowGroups] = useState(true);
|
|
469
|
+
return /* @__PURE__ */ jsxs(Box, { className: "chatManager__groups", children: [
|
|
470
|
+
/* @__PURE__ */ jsxs(
|
|
471
|
+
Heading,
|
|
472
|
+
{
|
|
473
|
+
as: "h6",
|
|
474
|
+
className: "chatManager__title",
|
|
475
|
+
onClick: () => setShowGroups((prev) => !prev),
|
|
476
|
+
children: [
|
|
477
|
+
/* @__PURE__ */ jsx(Icon$1, { name: showGroups ? "ArrowDownThin" : "ArrowRightThin", title: "" }),
|
|
478
|
+
"Grupos"
|
|
479
|
+
]
|
|
480
|
+
}
|
|
481
|
+
),
|
|
482
|
+
/* @__PURE__ */ jsx(
|
|
483
|
+
Box,
|
|
484
|
+
{
|
|
485
|
+
as: "ul",
|
|
486
|
+
className: `chatManager__groups__list ${showGroups ? "show" : ""}`,
|
|
487
|
+
children: groups == null ? void 0 : groups.map((current) => {
|
|
488
|
+
return /* @__PURE__ */ jsx(Box, { as: "li", className: "chatManager__list__item", children: current == null ? void 0 : current.name }, current.id);
|
|
489
|
+
})
|
|
490
|
+
}
|
|
491
|
+
)
|
|
492
|
+
] });
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
const ChatSearchBar = ({
|
|
496
|
+
show,
|
|
497
|
+
setSearchValue
|
|
498
|
+
}) => {
|
|
499
|
+
return /* @__PURE__ */ jsx(Box, { className: `chatManager__searchBar ${show ? "show" : ""}`, children: /* @__PURE__ */ jsx(
|
|
500
|
+
Input$1,
|
|
501
|
+
{
|
|
502
|
+
placeholder: `${show ? "Buscar" : ""}`,
|
|
503
|
+
onChange: (e) => setSearchValue(e.target.value)
|
|
504
|
+
}
|
|
505
|
+
) });
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
const ChatManagerHeader = ({
|
|
509
|
+
showSearchBar,
|
|
510
|
+
showManager,
|
|
511
|
+
setShowManager,
|
|
512
|
+
setShowSearchBar
|
|
513
|
+
}) => {
|
|
514
|
+
return /* @__PURE__ */ jsxs(
|
|
515
|
+
Box,
|
|
516
|
+
{
|
|
517
|
+
className: "chatManager__header",
|
|
518
|
+
onClick: () => {
|
|
519
|
+
setShowManager((prev) => !prev);
|
|
520
|
+
setShowSearchBar(false);
|
|
521
|
+
},
|
|
522
|
+
children: [
|
|
523
|
+
/* @__PURE__ */ jsx(Heading, { as: "h6", children: "Chat" }),
|
|
524
|
+
/* @__PURE__ */ jsxs(Box, { className: "chatManager__header__rightButtons", children: [
|
|
525
|
+
/* @__PURE__ */ jsx(
|
|
526
|
+
IconButton$1,
|
|
527
|
+
{
|
|
528
|
+
onClick: (e) => {
|
|
529
|
+
e.stopPropagation();
|
|
530
|
+
e.preventDefault();
|
|
531
|
+
setShowSearchBar((prev) => !prev);
|
|
532
|
+
const searchBar = document.querySelector(
|
|
533
|
+
".chatManager__searchBar input"
|
|
534
|
+
);
|
|
535
|
+
if (searchBar && !showSearchBar) {
|
|
536
|
+
searchBar == null ? void 0 : searchBar.focus();
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
icon: "Search",
|
|
540
|
+
size: "Md"
|
|
541
|
+
}
|
|
542
|
+
),
|
|
543
|
+
/* @__PURE__ */ jsx(
|
|
544
|
+
IconButton$1,
|
|
545
|
+
{
|
|
546
|
+
onClick: (e) => {
|
|
547
|
+
e.stopPropagation();
|
|
548
|
+
e.preventDefault();
|
|
549
|
+
new ApiaUtil$1().menu.open({
|
|
550
|
+
menuProps: {
|
|
551
|
+
anchorRef: {
|
|
552
|
+
current: e.target.closest(
|
|
553
|
+
".ellipsis"
|
|
554
|
+
)
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
items: [
|
|
558
|
+
{
|
|
559
|
+
children: /* @__PURE__ */ jsx(Fragment, { children: showManager ? "Minimizar" : "Maximizar" }),
|
|
560
|
+
onClick: () => setShowManager((prev) => !prev),
|
|
561
|
+
key: "1"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
children: /* @__PURE__ */ jsx(Fragment, { children: "Cerrar" }),
|
|
565
|
+
onClick: () => console.log("hola"),
|
|
566
|
+
key: "2"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
children: /* @__PURE__ */ jsx(Fragment, { children: "Desconectar" }),
|
|
570
|
+
onClick: () => console.log("hola"),
|
|
571
|
+
key: "3"
|
|
572
|
+
}
|
|
573
|
+
]
|
|
574
|
+
});
|
|
575
|
+
},
|
|
576
|
+
icon: "Ellipsis",
|
|
577
|
+
size: "Md",
|
|
578
|
+
className: "ellipsis"
|
|
579
|
+
}
|
|
580
|
+
)
|
|
581
|
+
] })
|
|
582
|
+
]
|
|
583
|
+
}
|
|
584
|
+
);
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
const useSearchContacts = (initialUsers, initialGroups) => {
|
|
588
|
+
const [filteredUsers, setFilteredUsers] = useState(initialUsers);
|
|
589
|
+
const [filteredGroups, setFilteredGroups] = useState(initialGroups);
|
|
590
|
+
const [searchValue, setSearchValue] = useState("");
|
|
591
|
+
useEffect(() => {
|
|
592
|
+
if (searchValue.trim() === "") {
|
|
593
|
+
setFilteredUsers(initialUsers);
|
|
594
|
+
setFilteredGroups(initialGroups);
|
|
595
|
+
} else {
|
|
596
|
+
const filtered1 = initialUsers == null ? void 0 : initialUsers.filter(
|
|
597
|
+
(item) => item.name.toLowerCase().includes(searchValue.toLowerCase())
|
|
598
|
+
);
|
|
599
|
+
const filtered2 = initialGroups == null ? void 0 : initialGroups.filter(
|
|
600
|
+
(item) => item.name.toLowerCase().includes(searchValue.toLowerCase())
|
|
601
|
+
);
|
|
602
|
+
setFilteredUsers(filtered1);
|
|
603
|
+
setFilteredGroups(filtered2);
|
|
604
|
+
}
|
|
605
|
+
}, [searchValue, initialUsers, initialGroups]);
|
|
606
|
+
return {
|
|
607
|
+
filteredUsers,
|
|
608
|
+
filteredGroups,
|
|
609
|
+
setSearchValue
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
var __defProp$V = Object.defineProperty;
|
|
614
|
+
var __defProps$K = Object.defineProperties;
|
|
615
|
+
var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
|
|
616
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
617
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
618
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
619
|
+
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
620
|
+
var __spreadValues$V = (a, b) => {
|
|
621
|
+
for (var prop in b || (b = {}))
|
|
622
|
+
if (__hasOwnProp$W.call(b, prop))
|
|
623
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
624
|
+
if (__getOwnPropSymbols$W)
|
|
625
|
+
for (var prop of __getOwnPropSymbols$W(b)) {
|
|
626
|
+
if (__propIsEnum$W.call(b, prop))
|
|
627
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
628
|
+
}
|
|
629
|
+
return a;
|
|
630
|
+
};
|
|
631
|
+
var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
|
|
632
|
+
const ChatManager = () => {
|
|
633
|
+
const {
|
|
634
|
+
context: { useData }
|
|
635
|
+
} = useChatContext();
|
|
636
|
+
const [showManager, setShowManager] = useState(true);
|
|
637
|
+
const [showSearchBar, setShowSearchBar] = useState(false);
|
|
638
|
+
const chatData = useData();
|
|
639
|
+
const { filteredGroups, filteredUsers, setSearchValue } = useSearchContacts(
|
|
640
|
+
chatData == null ? void 0 : chatData.users,
|
|
641
|
+
chatData == null ? void 0 : chatData.groups
|
|
642
|
+
);
|
|
643
|
+
return /* @__PURE__ */ jsxs(
|
|
644
|
+
Box,
|
|
645
|
+
__spreadProps$K(__spreadValues$V({
|
|
646
|
+
className: `chatManager__container `
|
|
647
|
+
}, getVariant("layout.common.components.apiaChat.chatManager")), {
|
|
648
|
+
children: [
|
|
649
|
+
/* @__PURE__ */ jsx(
|
|
650
|
+
ChatManagerHeader,
|
|
651
|
+
{
|
|
652
|
+
showManager,
|
|
653
|
+
showSearchBar,
|
|
654
|
+
setShowManager,
|
|
655
|
+
setShowSearchBar
|
|
656
|
+
}
|
|
657
|
+
),
|
|
658
|
+
/* @__PURE__ */ jsx(ChatSearchBar, { show: showSearchBar, setSearchValue }),
|
|
659
|
+
/* @__PURE__ */ jsxs(Box, { className: `chatManager__content ${showManager ? "show" : ""}`, children: [
|
|
660
|
+
/* @__PURE__ */ jsx(ChatUsersList, { users: filteredUsers }),
|
|
661
|
+
/* @__PURE__ */ jsx(ChatGroupsList, { groups: filteredGroups }),
|
|
662
|
+
/* @__PURE__ */ jsx(Box, { className: "chatManager__requests" })
|
|
663
|
+
] })
|
|
664
|
+
]
|
|
665
|
+
})
|
|
666
|
+
);
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
const ChatContext = createContext(null);
|
|
670
|
+
function useChatContext() {
|
|
671
|
+
const context = useContext(ChatContext);
|
|
672
|
+
if (!context)
|
|
673
|
+
throw new Error("There is no Chat Context");
|
|
674
|
+
return {
|
|
675
|
+
context,
|
|
676
|
+
useData: context.useData,
|
|
677
|
+
fetchData: context.fetchData
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
const ChatWrapper = () => {
|
|
681
|
+
const { useData, fetchData } = useGetChatData();
|
|
682
|
+
return /* @__PURE__ */ jsxs(ChatContext.Provider, { value: { useData, fetchData }, children: [
|
|
683
|
+
/* @__PURE__ */ jsx(ChatManager, {}),
|
|
684
|
+
/* @__PURE__ */ jsx(ChatRoomList, {})
|
|
685
|
+
] });
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
const chatRoom = (theme) => {
|
|
689
|
+
return {
|
|
690
|
+
position: "absolute",
|
|
691
|
+
bottom: "0px",
|
|
692
|
+
display: "flex",
|
|
693
|
+
flexDirection: "row-reverse",
|
|
694
|
+
gap: "15px",
|
|
695
|
+
alignItems: "end",
|
|
696
|
+
".chatRoom": {
|
|
697
|
+
width: "310px",
|
|
698
|
+
background: "palette.background.paper",
|
|
699
|
+
boxShadow: "rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px",
|
|
700
|
+
bottom: "-0px",
|
|
701
|
+
transition: "bottom 0.2s ease",
|
|
702
|
+
borderTopLeftRadius: "8px",
|
|
703
|
+
borderTopRightRadius: "8px",
|
|
704
|
+
position: "fixed",
|
|
705
|
+
zIndex: "menu",
|
|
706
|
+
"&.show": {
|
|
707
|
+
bottom: "0px"
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
".chatRoom__header": {
|
|
711
|
+
height: "38px",
|
|
712
|
+
borderTopLeftRadius: "8px",
|
|
713
|
+
borderTopRightRadius: "8px",
|
|
714
|
+
display: "flex",
|
|
715
|
+
flexDirection: "row",
|
|
716
|
+
justifyContent: "space-between",
|
|
717
|
+
background: "aliceblue",
|
|
718
|
+
alignItems: "center",
|
|
719
|
+
border: "1px solid",
|
|
720
|
+
borderColor: "palette.gray.750",
|
|
721
|
+
h6: {
|
|
722
|
+
borderTopLeftRadius: "6px",
|
|
723
|
+
borderTopRightRadius: "6px",
|
|
724
|
+
pl: "10px"
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
".chatRoom__header__rightButtons": {
|
|
728
|
+
".closeButton": {
|
|
729
|
+
background: "none",
|
|
730
|
+
border: "none",
|
|
731
|
+
height: "38px",
|
|
732
|
+
width: "38px",
|
|
733
|
+
borderTopRightRadius: "6px",
|
|
734
|
+
":hover, :focus": {
|
|
735
|
+
background: "palette.error.dark"
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
".chatRoom__content": {
|
|
740
|
+
height: "0px",
|
|
741
|
+
transition: "height 0.2s ease",
|
|
742
|
+
display: "flex",
|
|
743
|
+
flexDirection: "column",
|
|
744
|
+
justifyContent: "space-between",
|
|
745
|
+
border: "1px solid",
|
|
746
|
+
borderColor: "palette.gray.750",
|
|
747
|
+
borderTop: "none",
|
|
748
|
+
"&.show": { height: "330px" }
|
|
749
|
+
},
|
|
750
|
+
".chatRoom__messages": {
|
|
751
|
+
display: "flex",
|
|
752
|
+
flexDirection: "column",
|
|
753
|
+
p: "10px",
|
|
754
|
+
gap: "10px",
|
|
755
|
+
overflow: "auto",
|
|
756
|
+
".from__me": {
|
|
757
|
+
alignSelf: "end",
|
|
758
|
+
//cambiar
|
|
759
|
+
width: "50%",
|
|
760
|
+
borderRadius: "8px",
|
|
761
|
+
display: "flex",
|
|
762
|
+
flexDirection: "column",
|
|
763
|
+
".message": {
|
|
764
|
+
background: "#1c6f97",
|
|
765
|
+
color: "palette.text.secondary",
|
|
766
|
+
borderRadius: "8px",
|
|
767
|
+
p: "10px"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
".from__notMe": {
|
|
771
|
+
alignSelf: "start",
|
|
772
|
+
//cambiar
|
|
773
|
+
width: "50%",
|
|
774
|
+
color: "palette.text.primary",
|
|
775
|
+
borderRadius: "8px",
|
|
776
|
+
display: "flex",
|
|
777
|
+
flexDirection: "column",
|
|
778
|
+
".userContact": {
|
|
779
|
+
fontSize: "13px",
|
|
780
|
+
pl: "7px"
|
|
781
|
+
},
|
|
782
|
+
".message": {
|
|
783
|
+
background: "aliceblue",
|
|
784
|
+
color: "palette.text.primary",
|
|
785
|
+
borderRadius: "8px",
|
|
786
|
+
p: "10px"
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
input: {
|
|
791
|
+
border: "1px solid",
|
|
792
|
+
borderColor: "palette.border.ghost"
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
const chatManager = (theme) => {
|
|
798
|
+
return {
|
|
799
|
+
display: "flex",
|
|
800
|
+
flexDirection: "column",
|
|
801
|
+
width: "292px",
|
|
802
|
+
position: "fixed",
|
|
803
|
+
bottom: "0px",
|
|
804
|
+
right: "16px",
|
|
805
|
+
boxShadow: "rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px",
|
|
806
|
+
background: "palette.background.paper",
|
|
807
|
+
maxHeight: "438px",
|
|
808
|
+
zIndex: "menu",
|
|
809
|
+
".chatManager__header": {
|
|
810
|
+
background: "palette.primary.main",
|
|
811
|
+
borderTopLeftRadius: "6px",
|
|
812
|
+
borderTopRightRadius: "6px",
|
|
813
|
+
display: "flex",
|
|
814
|
+
flexDirection: "row",
|
|
815
|
+
justifyContent: "space-between",
|
|
816
|
+
height: "38px",
|
|
817
|
+
alignItems: "center",
|
|
818
|
+
h6: {
|
|
819
|
+
pl: "10px",
|
|
820
|
+
color: "palette.text.secondary"
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
".chatManager__header__rightButtons": {
|
|
824
|
+
display: "flex",
|
|
825
|
+
flexDirection: "row",
|
|
826
|
+
itemAlign: "center",
|
|
827
|
+
height: "100%",
|
|
828
|
+
button: {
|
|
829
|
+
background: "none",
|
|
830
|
+
width: "38px",
|
|
831
|
+
height: "38px",
|
|
832
|
+
":hover": {
|
|
833
|
+
background: theme.palette.lightenColor(theme.palette.primary.main, 5)
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
".ellipsis": {
|
|
837
|
+
borderTopRightRadius: "6px",
|
|
838
|
+
svg: {
|
|
839
|
+
width: "25px",
|
|
840
|
+
height: "25px",
|
|
841
|
+
maxHeight: "25px",
|
|
842
|
+
maxWidth: "25px"
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
".chatManager__searchBar": {
|
|
847
|
+
height: "0px",
|
|
848
|
+
transition: "height 0.2s ease",
|
|
849
|
+
"&.show": {
|
|
850
|
+
height: "35px"
|
|
851
|
+
},
|
|
852
|
+
input: {
|
|
853
|
+
height: "35px",
|
|
854
|
+
border: "none",
|
|
855
|
+
borderBottom: "1px solid",
|
|
856
|
+
borderColor: "palette.border.ghost"
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
".chatManager__title": {
|
|
860
|
+
py: "10px",
|
|
861
|
+
pl: "10px",
|
|
862
|
+
border: "1px solid",
|
|
863
|
+
borderColor: "palette.gray.850",
|
|
864
|
+
//todo cambiar
|
|
865
|
+
background: "aliceblue",
|
|
866
|
+
display: "flex",
|
|
867
|
+
alignItems: "center"
|
|
868
|
+
},
|
|
869
|
+
".chatManager__content": {
|
|
870
|
+
display: "flex",
|
|
871
|
+
flexDirection: "column",
|
|
872
|
+
overflow: "auto",
|
|
873
|
+
height: "0px",
|
|
874
|
+
transition: "height 0.2s ease",
|
|
875
|
+
"&.show": {
|
|
876
|
+
height: "400px"
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
".chatManager__users": {
|
|
880
|
+
display: "flex",
|
|
881
|
+
flexDirection: "column",
|
|
882
|
+
".chatManager__users__list": {
|
|
883
|
+
display: "none",
|
|
884
|
+
flexDirection: "column",
|
|
885
|
+
"&.show": {
|
|
886
|
+
display: "flex"
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
".chatManager__groups": {
|
|
891
|
+
display: "flex",
|
|
892
|
+
flexDirection: "column",
|
|
893
|
+
".chatManager__groups__list": {
|
|
894
|
+
display: "none",
|
|
895
|
+
flexDirection: "column",
|
|
896
|
+
"&.show": {
|
|
897
|
+
display: "flex"
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
".chatManager__list__item": {
|
|
902
|
+
p: "5px 10px",
|
|
903
|
+
borderBottom: "1px solid",
|
|
904
|
+
borderColor: "palette.border.ghost",
|
|
905
|
+
":hover": {
|
|
906
|
+
background: "palette.gray.900"
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
const styles$5 = {
|
|
913
|
+
chatManager,
|
|
914
|
+
chatRoom
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
const ApiaChat = makeStyledComponent(
|
|
918
|
+
"ApiaChat",
|
|
919
|
+
"layout.common.components.apiaChat",
|
|
920
|
+
styles$5,
|
|
921
|
+
() => /* @__PURE__ */ jsx(ChatWrapper, {})
|
|
922
|
+
);
|
|
923
|
+
|
|
24
924
|
const AccordionContext = createContext(null);
|
|
25
925
|
const AccordionItemContext = createContext(null);
|
|
26
926
|
const useAccordionContext = () => {
|
|
@@ -135,25 +1035,25 @@ class AccordionHandler {
|
|
|
135
1035
|
}
|
|
136
1036
|
}
|
|
137
1037
|
|
|
138
|
-
var __defProp$
|
|
139
|
-
var __defProps$
|
|
140
|
-
var __getOwnPropDescs$
|
|
141
|
-
var __getOwnPropSymbols$
|
|
142
|
-
var __hasOwnProp$
|
|
143
|
-
var __propIsEnum$
|
|
144
|
-
var __defNormalProp$
|
|
145
|
-
var __spreadValues$
|
|
1038
|
+
var __defProp$U = Object.defineProperty;
|
|
1039
|
+
var __defProps$J = Object.defineProperties;
|
|
1040
|
+
var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
|
|
1041
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
1042
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
1043
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
1044
|
+
var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1045
|
+
var __spreadValues$U = (a, b) => {
|
|
146
1046
|
for (var prop in b || (b = {}))
|
|
147
|
-
if (__hasOwnProp$
|
|
148
|
-
__defNormalProp$
|
|
149
|
-
if (__getOwnPropSymbols$
|
|
150
|
-
for (var prop of __getOwnPropSymbols$
|
|
151
|
-
if (__propIsEnum$
|
|
152
|
-
__defNormalProp$
|
|
1047
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
1048
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
1049
|
+
if (__getOwnPropSymbols$V)
|
|
1050
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
1051
|
+
if (__propIsEnum$V.call(b, prop))
|
|
1052
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
153
1053
|
}
|
|
154
1054
|
return a;
|
|
155
1055
|
};
|
|
156
|
-
var __spreadProps$
|
|
1056
|
+
var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
|
|
157
1057
|
const KeyHandler$1 = (props) => {
|
|
158
1058
|
const [ref, setRef] = useState(null);
|
|
159
1059
|
const handler = useAccordionContext();
|
|
@@ -216,32 +1116,32 @@ const KeyHandler$1 = (props) => {
|
|
|
216
1116
|
}, [handler, ref]);
|
|
217
1117
|
const variant = handler.hooks.usePropsSelector((current) => current.variant);
|
|
218
1118
|
return /* @__PURE__ */ jsx(
|
|
219
|
-
Box,
|
|
220
|
-
__spreadValues$
|
|
1119
|
+
Box$1,
|
|
1120
|
+
__spreadValues$U(__spreadProps$J(__spreadValues$U({}, props), {
|
|
221
1121
|
ref: setRef
|
|
222
1122
|
}), variant ? getVariant(variant) : void 0)
|
|
223
1123
|
);
|
|
224
1124
|
};
|
|
225
1125
|
|
|
226
|
-
var __defProp$
|
|
227
|
-
var __defProps$
|
|
228
|
-
var __getOwnPropDescs$
|
|
229
|
-
var __getOwnPropSymbols$
|
|
230
|
-
var __hasOwnProp$
|
|
231
|
-
var __propIsEnum$
|
|
232
|
-
var __defNormalProp$
|
|
233
|
-
var __spreadValues$
|
|
1126
|
+
var __defProp$T = Object.defineProperty;
|
|
1127
|
+
var __defProps$I = Object.defineProperties;
|
|
1128
|
+
var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
|
|
1129
|
+
var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
|
|
1130
|
+
var __hasOwnProp$U = Object.prototype.hasOwnProperty;
|
|
1131
|
+
var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
|
|
1132
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1133
|
+
var __spreadValues$T = (a, b) => {
|
|
234
1134
|
for (var prop in b || (b = {}))
|
|
235
|
-
if (__hasOwnProp$
|
|
236
|
-
__defNormalProp$
|
|
237
|
-
if (__getOwnPropSymbols$
|
|
238
|
-
for (var prop of __getOwnPropSymbols$
|
|
239
|
-
if (__propIsEnum$
|
|
240
|
-
__defNormalProp$
|
|
1135
|
+
if (__hasOwnProp$U.call(b, prop))
|
|
1136
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
1137
|
+
if (__getOwnPropSymbols$U)
|
|
1138
|
+
for (var prop of __getOwnPropSymbols$U(b)) {
|
|
1139
|
+
if (__propIsEnum$U.call(b, prop))
|
|
1140
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
241
1141
|
}
|
|
242
1142
|
return a;
|
|
243
1143
|
};
|
|
244
|
-
var __spreadProps$
|
|
1144
|
+
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
245
1145
|
function makeRowKey(rowIndex) {
|
|
246
1146
|
return `row_${typeof rowIndex === "number" ? rowIndex : rowIndex.rowIndex}`;
|
|
247
1147
|
}
|
|
@@ -279,7 +1179,7 @@ function getDistinctors(storeId) {
|
|
|
279
1179
|
focused: state.focusedRow === distinctions.rowIndex
|
|
280
1180
|
}
|
|
281
1181
|
},
|
|
282
|
-
etc: __spreadProps$
|
|
1182
|
+
etc: __spreadProps$I(__spreadValues$T({}, state.allowSelection ? {
|
|
283
1183
|
"aria-selected": state.selectedRows.includes(
|
|
284
1184
|
distinctions.rowIndex
|
|
285
1185
|
)
|
|
@@ -345,7 +1245,7 @@ const keysMakers$1 = {
|
|
|
345
1245
|
};
|
|
346
1246
|
function getInitialState$1(initialState) {
|
|
347
1247
|
var _a, _b, _c;
|
|
348
|
-
return __spreadProps$
|
|
1248
|
+
return __spreadProps$I(__spreadValues$T(__spreadValues$T({}, defaultState), initialState), {
|
|
349
1249
|
searchFunction: (_a = initialState.searchFunction) != null ? _a : (label, searchString) => !!label.match(new RegExp(searchString)),
|
|
350
1250
|
startsWithFunction: (_b = initialState.startsWithFunction) != null ? _b : (label, searchString) => {
|
|
351
1251
|
return label.startsWith(searchString);
|
|
@@ -409,33 +1309,33 @@ const AccordionItemButton = ({ children }) => {
|
|
|
409
1309
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
410
1310
|
};
|
|
411
1311
|
|
|
412
|
-
var __defProp$
|
|
413
|
-
var __defProps$
|
|
414
|
-
var __getOwnPropDescs$
|
|
415
|
-
var __getOwnPropSymbols$
|
|
416
|
-
var __hasOwnProp$
|
|
417
|
-
var __propIsEnum$
|
|
418
|
-
var __defNormalProp$
|
|
419
|
-
var __spreadValues$
|
|
1312
|
+
var __defProp$S = Object.defineProperty;
|
|
1313
|
+
var __defProps$H = Object.defineProperties;
|
|
1314
|
+
var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
|
|
1315
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
1316
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
1317
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
1318
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1319
|
+
var __spreadValues$S = (a, b) => {
|
|
420
1320
|
for (var prop in b || (b = {}))
|
|
421
|
-
if (__hasOwnProp$
|
|
422
|
-
__defNormalProp$
|
|
423
|
-
if (__getOwnPropSymbols$
|
|
424
|
-
for (var prop of __getOwnPropSymbols$
|
|
425
|
-
if (__propIsEnum$
|
|
426
|
-
__defNormalProp$
|
|
1321
|
+
if (__hasOwnProp$T.call(b, prop))
|
|
1322
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
1323
|
+
if (__getOwnPropSymbols$T)
|
|
1324
|
+
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
1325
|
+
if (__propIsEnum$T.call(b, prop))
|
|
1326
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
427
1327
|
}
|
|
428
1328
|
return a;
|
|
429
1329
|
};
|
|
430
|
-
var __spreadProps$
|
|
1330
|
+
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
431
1331
|
var __objRest$g = (source, exclude) => {
|
|
432
1332
|
var target = {};
|
|
433
1333
|
for (var prop in source)
|
|
434
|
-
if (__hasOwnProp$
|
|
1334
|
+
if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
435
1335
|
target[prop] = source[prop];
|
|
436
|
-
if (source != null && __getOwnPropSymbols$
|
|
437
|
-
for (var prop of __getOwnPropSymbols$
|
|
438
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1336
|
+
if (source != null && __getOwnPropSymbols$T)
|
|
1337
|
+
for (var prop of __getOwnPropSymbols$T(source)) {
|
|
1338
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
|
|
439
1339
|
target[prop] = source[prop];
|
|
440
1340
|
}
|
|
441
1341
|
return target;
|
|
@@ -469,7 +1369,7 @@ const BaseButton = (_a) => {
|
|
|
469
1369
|
]);
|
|
470
1370
|
return /* @__PURE__ */ jsx(
|
|
471
1371
|
Button,
|
|
472
|
-
__spreadProps$
|
|
1372
|
+
__spreadProps$H(__spreadValues$S(__spreadProps$H(__spreadValues$S({
|
|
473
1373
|
id,
|
|
474
1374
|
name,
|
|
475
1375
|
onClick
|
|
@@ -482,7 +1382,7 @@ const BaseButton = (_a) => {
|
|
|
482
1382
|
Flex,
|
|
483
1383
|
{
|
|
484
1384
|
as: "span",
|
|
485
|
-
sx: __spreadValues$
|
|
1385
|
+
sx: __spreadValues$S({
|
|
486
1386
|
color: "inherit",
|
|
487
1387
|
width: "100%",
|
|
488
1388
|
flexDirection: "row",
|
|
@@ -504,33 +1404,33 @@ const BaseButton = (_a) => {
|
|
|
504
1404
|
);
|
|
505
1405
|
};
|
|
506
1406
|
|
|
507
|
-
var __defProp$
|
|
508
|
-
var __defProps$
|
|
509
|
-
var __getOwnPropDescs$
|
|
510
|
-
var __getOwnPropSymbols$
|
|
511
|
-
var __hasOwnProp$
|
|
512
|
-
var __propIsEnum$
|
|
513
|
-
var __defNormalProp$
|
|
514
|
-
var __spreadValues$
|
|
1407
|
+
var __defProp$R = Object.defineProperty;
|
|
1408
|
+
var __defProps$G = Object.defineProperties;
|
|
1409
|
+
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
1410
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
1411
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
1412
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
1413
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1414
|
+
var __spreadValues$R = (a, b) => {
|
|
515
1415
|
for (var prop in b || (b = {}))
|
|
516
|
-
if (__hasOwnProp$
|
|
517
|
-
__defNormalProp$
|
|
518
|
-
if (__getOwnPropSymbols$
|
|
519
|
-
for (var prop of __getOwnPropSymbols$
|
|
520
|
-
if (__propIsEnum$
|
|
521
|
-
__defNormalProp$
|
|
1416
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
1417
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
1418
|
+
if (__getOwnPropSymbols$S)
|
|
1419
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
1420
|
+
if (__propIsEnum$S.call(b, prop))
|
|
1421
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
522
1422
|
}
|
|
523
1423
|
return a;
|
|
524
1424
|
};
|
|
525
|
-
var __spreadProps$
|
|
1425
|
+
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
526
1426
|
var __objRest$f = (source, exclude) => {
|
|
527
1427
|
var target = {};
|
|
528
1428
|
for (var prop in source)
|
|
529
|
-
if (__hasOwnProp$
|
|
1429
|
+
if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
530
1430
|
target[prop] = source[prop];
|
|
531
|
-
if (source != null && __getOwnPropSymbols$
|
|
532
|
-
for (var prop of __getOwnPropSymbols$
|
|
533
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1431
|
+
if (source != null && __getOwnPropSymbols$S)
|
|
1432
|
+
for (var prop of __getOwnPropSymbols$S(source)) {
|
|
1433
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop))
|
|
534
1434
|
target[prop] = source[prop];
|
|
535
1435
|
}
|
|
536
1436
|
return target;
|
|
@@ -594,8 +1494,8 @@ const IconButton = React.forwardRef(
|
|
|
594
1494
|
return typeof icon === "string" ? icons[icon] : icon;
|
|
595
1495
|
}, [icon]);
|
|
596
1496
|
return /* @__PURE__ */ jsx(
|
|
597
|
-
IconButton$
|
|
598
|
-
__spreadProps$
|
|
1497
|
+
IconButton$2,
|
|
1498
|
+
__spreadProps$G(__spreadValues$R(__spreadProps$G(__spreadValues$R({
|
|
599
1499
|
id,
|
|
600
1500
|
ref,
|
|
601
1501
|
onClick: React.useCallback(
|
|
@@ -624,33 +1524,33 @@ const IconButton = React.forwardRef(
|
|
|
624
1524
|
);
|
|
625
1525
|
IconButton.displayName = "IconButton";
|
|
626
1526
|
|
|
627
|
-
var __defProp$
|
|
628
|
-
var __defProps$
|
|
629
|
-
var __getOwnPropDescs$
|
|
630
|
-
var __getOwnPropSymbols$
|
|
631
|
-
var __hasOwnProp$
|
|
632
|
-
var __propIsEnum$
|
|
633
|
-
var __defNormalProp$
|
|
634
|
-
var __spreadValues$
|
|
1527
|
+
var __defProp$Q = Object.defineProperty;
|
|
1528
|
+
var __defProps$F = Object.defineProperties;
|
|
1529
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
1530
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
1531
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
1532
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
1533
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1534
|
+
var __spreadValues$Q = (a, b) => {
|
|
635
1535
|
for (var prop in b || (b = {}))
|
|
636
|
-
if (__hasOwnProp$
|
|
637
|
-
__defNormalProp$
|
|
638
|
-
if (__getOwnPropSymbols$
|
|
639
|
-
for (var prop of __getOwnPropSymbols$
|
|
640
|
-
if (__propIsEnum$
|
|
641
|
-
__defNormalProp$
|
|
1536
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
1537
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
1538
|
+
if (__getOwnPropSymbols$R)
|
|
1539
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
1540
|
+
if (__propIsEnum$R.call(b, prop))
|
|
1541
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
642
1542
|
}
|
|
643
1543
|
return a;
|
|
644
1544
|
};
|
|
645
|
-
var __spreadProps$
|
|
1545
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
646
1546
|
var __objRest$e = (source, exclude) => {
|
|
647
1547
|
var target = {};
|
|
648
1548
|
for (var prop in source)
|
|
649
|
-
if (__hasOwnProp$
|
|
1549
|
+
if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
650
1550
|
target[prop] = source[prop];
|
|
651
|
-
if (source != null && __getOwnPropSymbols$
|
|
652
|
-
for (var prop of __getOwnPropSymbols$
|
|
653
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1551
|
+
if (source != null && __getOwnPropSymbols$R)
|
|
1552
|
+
for (var prop of __getOwnPropSymbols$R(source)) {
|
|
1553
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
|
|
654
1554
|
target[prop] = source[prop];
|
|
655
1555
|
}
|
|
656
1556
|
return target;
|
|
@@ -736,7 +1636,7 @@ const SimpleButton = React.forwardRef(
|
|
|
736
1636
|
const Icon = React.useMemo(() => icon, [icon]);
|
|
737
1637
|
return /* @__PURE__ */ jsxs(
|
|
738
1638
|
Button,
|
|
739
|
-
__spreadProps$
|
|
1639
|
+
__spreadProps$F(__spreadValues$Q(__spreadValues$Q({
|
|
740
1640
|
ref,
|
|
741
1641
|
id,
|
|
742
1642
|
name,
|
|
@@ -747,12 +1647,12 @@ const SimpleButton = React.forwardRef(
|
|
|
747
1647
|
disabled: isLoading != null ? isLoading : disabled,
|
|
748
1648
|
className
|
|
749
1649
|
}, getVariant(`${variant}${size !== "md" && size ? `-${size}` : ""}`)), buttonProps), {
|
|
750
|
-
sx: __spreadValues$
|
|
1650
|
+
sx: __spreadValues$Q(__spreadValues$Q({}, simpleButton), buttonSx),
|
|
751
1651
|
children: [
|
|
752
1652
|
Icon && iconPosition === "left" && /* @__PURE__ */ jsx(Icon, { title: "", size: iconSize, color: iconColor }),
|
|
753
|
-
/* @__PURE__ */ jsx(Box, { as: "span", className: "button__content", sx: spanSx, children: children != null ? children : title }),
|
|
1653
|
+
/* @__PURE__ */ jsx(Box$1, { as: "span", className: "button__content", sx: spanSx, children: children != null ? children : title }),
|
|
754
1654
|
Icon && iconPosition === "right" && /* @__PURE__ */ jsx(Icon, { title: "", size: iconSize, color: iconColor }),
|
|
755
|
-
isLoading && /* @__PURE__ */ jsx(Box, { className: "spinner", sx: loadingSx, children: /* @__PURE__ */ jsx(Spinner, { size: spinnerSize, color: "inherit" }) })
|
|
1655
|
+
isLoading && /* @__PURE__ */ jsx(Box$1, { className: "spinner", sx: loadingSx, children: /* @__PURE__ */ jsx(Spinner, { size: spinnerSize, color: "inherit" }) })
|
|
756
1656
|
]
|
|
757
1657
|
})
|
|
758
1658
|
);
|
|
@@ -795,25 +1695,25 @@ function useOtherTagButton(props) {
|
|
|
795
1695
|
};
|
|
796
1696
|
}
|
|
797
1697
|
|
|
798
|
-
var __defProp$
|
|
799
|
-
var __defProps$
|
|
800
|
-
var __getOwnPropDescs$
|
|
801
|
-
var __getOwnPropSymbols$
|
|
802
|
-
var __hasOwnProp$
|
|
803
|
-
var __propIsEnum$
|
|
804
|
-
var __defNormalProp$
|
|
805
|
-
var __spreadValues$
|
|
1698
|
+
var __defProp$P = Object.defineProperty;
|
|
1699
|
+
var __defProps$E = Object.defineProperties;
|
|
1700
|
+
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
1701
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
1702
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
1703
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
1704
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1705
|
+
var __spreadValues$P = (a, b) => {
|
|
806
1706
|
for (var prop in b || (b = {}))
|
|
807
|
-
if (__hasOwnProp$
|
|
808
|
-
__defNormalProp$
|
|
809
|
-
if (__getOwnPropSymbols$
|
|
810
|
-
for (var prop of __getOwnPropSymbols$
|
|
811
|
-
if (__propIsEnum$
|
|
812
|
-
__defNormalProp$
|
|
1707
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
1708
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
1709
|
+
if (__getOwnPropSymbols$Q)
|
|
1710
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
1711
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
1712
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
813
1713
|
}
|
|
814
1714
|
return a;
|
|
815
1715
|
};
|
|
816
|
-
var __spreadProps$
|
|
1716
|
+
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
817
1717
|
const Captcha = ({
|
|
818
1718
|
name,
|
|
819
1719
|
imageUrl,
|
|
@@ -827,7 +1727,7 @@ const Captcha = ({
|
|
|
827
1727
|
};
|
|
828
1728
|
return /* @__PURE__ */ jsxs(
|
|
829
1729
|
Flex,
|
|
830
|
-
__spreadProps$
|
|
1730
|
+
__spreadProps$E(__spreadValues$P({
|
|
831
1731
|
sx: {
|
|
832
1732
|
flexDirection: "column"
|
|
833
1733
|
},
|
|
@@ -872,33 +1772,33 @@ const Captcha = ({
|
|
|
872
1772
|
);
|
|
873
1773
|
};
|
|
874
1774
|
|
|
875
|
-
var __defProp$
|
|
876
|
-
var __defProps$
|
|
877
|
-
var __getOwnPropDescs$
|
|
878
|
-
var __getOwnPropSymbols$
|
|
879
|
-
var __hasOwnProp$
|
|
880
|
-
var __propIsEnum$
|
|
881
|
-
var __defNormalProp$
|
|
882
|
-
var __spreadValues$
|
|
1775
|
+
var __defProp$O = Object.defineProperty;
|
|
1776
|
+
var __defProps$D = Object.defineProperties;
|
|
1777
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
1778
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
1779
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
1780
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
1781
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1782
|
+
var __spreadValues$O = (a, b) => {
|
|
883
1783
|
for (var prop in b || (b = {}))
|
|
884
|
-
if (__hasOwnProp$
|
|
885
|
-
__defNormalProp$
|
|
886
|
-
if (__getOwnPropSymbols$
|
|
887
|
-
for (var prop of __getOwnPropSymbols$
|
|
888
|
-
if (__propIsEnum$
|
|
889
|
-
__defNormalProp$
|
|
1784
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
1785
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
1786
|
+
if (__getOwnPropSymbols$P)
|
|
1787
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
1788
|
+
if (__propIsEnum$P.call(b, prop))
|
|
1789
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
890
1790
|
}
|
|
891
1791
|
return a;
|
|
892
1792
|
};
|
|
893
|
-
var __spreadProps$
|
|
1793
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
894
1794
|
var __objRest$d = (source, exclude) => {
|
|
895
1795
|
var target = {};
|
|
896
1796
|
for (var prop in source)
|
|
897
|
-
if (__hasOwnProp$
|
|
1797
|
+
if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
898
1798
|
target[prop] = source[prop];
|
|
899
|
-
if (source != null && __getOwnPropSymbols$
|
|
900
|
-
for (var prop of __getOwnPropSymbols$
|
|
901
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1799
|
+
if (source != null && __getOwnPropSymbols$P)
|
|
1800
|
+
for (var prop of __getOwnPropSymbols$P(source)) {
|
|
1801
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
|
|
902
1802
|
target[prop] = source[prop];
|
|
903
1803
|
}
|
|
904
1804
|
return target;
|
|
@@ -960,7 +1860,7 @@ const Checkbox$1 = forwardRef(
|
|
|
960
1860
|
// eslint-disable-next-line react/forbid-elements
|
|
961
1861
|
/* @__PURE__ */ jsx(
|
|
962
1862
|
"input",
|
|
963
|
-
__spreadValues$
|
|
1863
|
+
__spreadValues$O({
|
|
964
1864
|
type: "checkbox",
|
|
965
1865
|
onClick: props.onClick,
|
|
966
1866
|
"aria-checked": isChecked,
|
|
@@ -982,7 +1882,7 @@ const Checkbox$1 = forwardRef(
|
|
|
982
1882
|
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
983
1883
|
/* @__PURE__ */ jsx(
|
|
984
1884
|
Button,
|
|
985
|
-
__spreadProps$
|
|
1885
|
+
__spreadProps$D(__spreadValues$O(__spreadProps$D(__spreadValues$O({}, props), {
|
|
986
1886
|
onClick: (ev) => {
|
|
987
1887
|
var _a3;
|
|
988
1888
|
if (readOnly) {
|
|
@@ -1221,33 +2121,33 @@ function useBodyScrollLock(isLocked) {
|
|
|
1221
2121
|
}, [isLocked]);
|
|
1222
2122
|
}
|
|
1223
2123
|
|
|
1224
|
-
var __defProp$
|
|
1225
|
-
var __defProps$
|
|
1226
|
-
var __getOwnPropDescs$
|
|
1227
|
-
var __getOwnPropSymbols$
|
|
1228
|
-
var __hasOwnProp$
|
|
1229
|
-
var __propIsEnum$
|
|
1230
|
-
var __defNormalProp$
|
|
1231
|
-
var __spreadValues$
|
|
2124
|
+
var __defProp$N = Object.defineProperty;
|
|
2125
|
+
var __defProps$C = Object.defineProperties;
|
|
2126
|
+
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
2127
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
2128
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
2129
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
2130
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2131
|
+
var __spreadValues$N = (a, b) => {
|
|
1232
2132
|
for (var prop in b || (b = {}))
|
|
1233
|
-
if (__hasOwnProp$
|
|
1234
|
-
__defNormalProp$
|
|
1235
|
-
if (__getOwnPropSymbols$
|
|
1236
|
-
for (var prop of __getOwnPropSymbols$
|
|
1237
|
-
if (__propIsEnum$
|
|
1238
|
-
__defNormalProp$
|
|
2133
|
+
if (__hasOwnProp$O.call(b, prop))
|
|
2134
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
2135
|
+
if (__getOwnPropSymbols$O)
|
|
2136
|
+
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
2137
|
+
if (__propIsEnum$O.call(b, prop))
|
|
2138
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
1239
2139
|
}
|
|
1240
2140
|
return a;
|
|
1241
2141
|
};
|
|
1242
|
-
var __spreadProps$
|
|
2142
|
+
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
1243
2143
|
var __objRest$c = (source, exclude) => {
|
|
1244
2144
|
var target = {};
|
|
1245
2145
|
for (var prop in source)
|
|
1246
|
-
if (__hasOwnProp$
|
|
2146
|
+
if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1247
2147
|
target[prop] = source[prop];
|
|
1248
|
-
if (source != null && __getOwnPropSymbols$
|
|
1249
|
-
for (var prop of __getOwnPropSymbols$
|
|
1250
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2148
|
+
if (source != null && __getOwnPropSymbols$O)
|
|
2149
|
+
for (var prop of __getOwnPropSymbols$O(source)) {
|
|
2150
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
|
|
1251
2151
|
target[prop] = source[prop];
|
|
1252
2152
|
}
|
|
1253
2153
|
return target;
|
|
@@ -1288,8 +2188,8 @@ const Overlay = React.forwardRef(
|
|
|
1288
2188
|
nodeRef: innerRef,
|
|
1289
2189
|
unmountOnExit: true,
|
|
1290
2190
|
children: /* @__PURE__ */ jsx(
|
|
1291
|
-
Box,
|
|
1292
|
-
__spreadProps$
|
|
2191
|
+
Box$1,
|
|
2192
|
+
__spreadProps$C(__spreadValues$N(__spreadProps$C(__spreadValues$N({
|
|
1293
2193
|
className: `${className} overlay`,
|
|
1294
2194
|
ref: assignRefs
|
|
1295
2195
|
}, props), {
|
|
@@ -1333,7 +2233,7 @@ const DialogHeader = ({
|
|
|
1333
2233
|
}) => {
|
|
1334
2234
|
const breakpointIndex = useBreakpointIndex();
|
|
1335
2235
|
const Title = /* @__PURE__ */ jsx(
|
|
1336
|
-
Heading,
|
|
2236
|
+
Heading$1,
|
|
1337
2237
|
{
|
|
1338
2238
|
as: "h3",
|
|
1339
2239
|
sx: {
|
|
@@ -1365,7 +2265,7 @@ const DialogHeader = ({
|
|
|
1365
2265
|
[close, hideCloseButton]
|
|
1366
2266
|
);
|
|
1367
2267
|
const NavBarElement = NavBar && /* @__PURE__ */ jsx(
|
|
1368
|
-
Box,
|
|
2268
|
+
Box$1,
|
|
1369
2269
|
{
|
|
1370
2270
|
sx: {
|
|
1371
2271
|
display: "flex",
|
|
@@ -1381,7 +2281,7 @@ const DialogHeader = ({
|
|
|
1381
2281
|
}
|
|
1382
2282
|
);
|
|
1383
2283
|
return breakpointIndex > 3 ? /* @__PURE__ */ jsxs(
|
|
1384
|
-
Box,
|
|
2284
|
+
Box$1,
|
|
1385
2285
|
{
|
|
1386
2286
|
className,
|
|
1387
2287
|
sx: {
|
|
@@ -1401,7 +2301,7 @@ const DialogHeader = ({
|
|
|
1401
2301
|
]
|
|
1402
2302
|
}
|
|
1403
2303
|
) : /* @__PURE__ */ jsxs(
|
|
1404
|
-
Box,
|
|
2304
|
+
Box$1,
|
|
1405
2305
|
{
|
|
1406
2306
|
className,
|
|
1407
2307
|
sx: {
|
|
@@ -1415,7 +2315,7 @@ const DialogHeader = ({
|
|
|
1415
2315
|
},
|
|
1416
2316
|
children: [
|
|
1417
2317
|
/* @__PURE__ */ jsxs(
|
|
1418
|
-
Box,
|
|
2318
|
+
Box$1,
|
|
1419
2319
|
{
|
|
1420
2320
|
sx: {
|
|
1421
2321
|
display: "flex",
|
|
@@ -1433,25 +2333,25 @@ const DialogHeader = ({
|
|
|
1433
2333
|
);
|
|
1434
2334
|
};
|
|
1435
2335
|
|
|
1436
|
-
var __defProp$
|
|
1437
|
-
var __defProps$
|
|
1438
|
-
var __getOwnPropDescs$
|
|
1439
|
-
var __getOwnPropSymbols$
|
|
1440
|
-
var __hasOwnProp$
|
|
1441
|
-
var __propIsEnum$
|
|
1442
|
-
var __defNormalProp$
|
|
1443
|
-
var __spreadValues$
|
|
2336
|
+
var __defProp$M = Object.defineProperty;
|
|
2337
|
+
var __defProps$B = Object.defineProperties;
|
|
2338
|
+
var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
|
|
2339
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
2340
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
2341
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
2342
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2343
|
+
var __spreadValues$M = (a, b) => {
|
|
1444
2344
|
for (var prop in b || (b = {}))
|
|
1445
|
-
if (__hasOwnProp$
|
|
1446
|
-
__defNormalProp$
|
|
1447
|
-
if (__getOwnPropSymbols$
|
|
1448
|
-
for (var prop of __getOwnPropSymbols$
|
|
1449
|
-
if (__propIsEnum$
|
|
1450
|
-
__defNormalProp$
|
|
2345
|
+
if (__hasOwnProp$N.call(b, prop))
|
|
2346
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
2347
|
+
if (__getOwnPropSymbols$N)
|
|
2348
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
2349
|
+
if (__propIsEnum$N.call(b, prop))
|
|
2350
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
1451
2351
|
}
|
|
1452
2352
|
return a;
|
|
1453
2353
|
};
|
|
1454
|
-
var __spreadProps$
|
|
2354
|
+
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
1455
2355
|
const Modal = forwardRef(
|
|
1456
2356
|
({
|
|
1457
2357
|
animationDuration = 150,
|
|
@@ -1539,7 +2439,7 @@ const Modal = forwardRef(
|
|
|
1539
2439
|
getFocusSelector(":not(.modal__closeButton)")
|
|
1540
2440
|
);
|
|
1541
2441
|
},
|
|
1542
|
-
__spreadProps$
|
|
2442
|
+
__spreadProps$B(__spreadValues$M({}, initialFocusConfiguration), { focusEvenWhenScreenLocked: true })
|
|
1543
2443
|
);
|
|
1544
2444
|
}
|
|
1545
2445
|
}
|
|
@@ -1586,13 +2486,13 @@ const Modal = forwardRef(
|
|
|
1586
2486
|
unmountOnExit: true,
|
|
1587
2487
|
nodeRef,
|
|
1588
2488
|
children: /* @__PURE__ */ jsx(
|
|
1589
|
-
Box,
|
|
1590
|
-
__spreadProps$
|
|
2489
|
+
Box$1,
|
|
2490
|
+
__spreadProps$B(__spreadValues$M({
|
|
1591
2491
|
ref: nodeRef,
|
|
1592
2492
|
className: "modal__variantWrapper"
|
|
1593
2493
|
}, variant ? getVariant(variant) : {}), {
|
|
1594
2494
|
children: /* @__PURE__ */ jsxs(
|
|
1595
|
-
Box,
|
|
2495
|
+
Box$1,
|
|
1596
2496
|
{
|
|
1597
2497
|
id,
|
|
1598
2498
|
role: "dialog",
|
|
@@ -1603,7 +2503,7 @@ const Modal = forwardRef(
|
|
|
1603
2503
|
className: "modal__main",
|
|
1604
2504
|
"data-scroll-lock-scrollable": true,
|
|
1605
2505
|
sx: React__default.useMemo(() => {
|
|
1606
|
-
return __spreadValues$
|
|
2506
|
+
return __spreadValues$M({
|
|
1607
2507
|
variant: `layout.common.modals.${size}`
|
|
1608
2508
|
}, maxWidth !== void 0 ? { maxWidth } : {});
|
|
1609
2509
|
}, [maxWidth, size]),
|
|
@@ -1621,7 +2521,7 @@ const Modal = forwardRef(
|
|
|
1621
2521
|
}
|
|
1622
2522
|
),
|
|
1623
2523
|
/* @__PURE__ */ jsx(
|
|
1624
|
-
Box,
|
|
2524
|
+
Box$1,
|
|
1625
2525
|
{
|
|
1626
2526
|
className: "modal__content",
|
|
1627
2527
|
id: typeof children === "string" ? `${innerId}_Description` : void 0,
|
|
@@ -1643,33 +2543,33 @@ const Modal = forwardRef(
|
|
|
1643
2543
|
);
|
|
1644
2544
|
Modal.displayName = "Modal";
|
|
1645
2545
|
|
|
1646
|
-
var __defProp$
|
|
1647
|
-
var __defProps$
|
|
1648
|
-
var __getOwnPropDescs$
|
|
1649
|
-
var __getOwnPropSymbols$
|
|
1650
|
-
var __hasOwnProp$
|
|
1651
|
-
var __propIsEnum$
|
|
1652
|
-
var __defNormalProp$
|
|
1653
|
-
var __spreadValues$
|
|
2546
|
+
var __defProp$L = Object.defineProperty;
|
|
2547
|
+
var __defProps$A = Object.defineProperties;
|
|
2548
|
+
var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
|
|
2549
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
2550
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
2551
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
2552
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2553
|
+
var __spreadValues$L = (a, b) => {
|
|
1654
2554
|
for (var prop in b || (b = {}))
|
|
1655
|
-
if (__hasOwnProp$
|
|
1656
|
-
__defNormalProp$
|
|
1657
|
-
if (__getOwnPropSymbols$
|
|
1658
|
-
for (var prop of __getOwnPropSymbols$
|
|
1659
|
-
if (__propIsEnum$
|
|
1660
|
-
__defNormalProp$
|
|
2555
|
+
if (__hasOwnProp$M.call(b, prop))
|
|
2556
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
2557
|
+
if (__getOwnPropSymbols$M)
|
|
2558
|
+
for (var prop of __getOwnPropSymbols$M(b)) {
|
|
2559
|
+
if (__propIsEnum$M.call(b, prop))
|
|
2560
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
1661
2561
|
}
|
|
1662
2562
|
return a;
|
|
1663
2563
|
};
|
|
1664
|
-
var __spreadProps$
|
|
2564
|
+
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
1665
2565
|
var __objRest$b = (source, exclude) => {
|
|
1666
2566
|
var target = {};
|
|
1667
2567
|
for (var prop in source)
|
|
1668
|
-
if (__hasOwnProp$
|
|
2568
|
+
if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1669
2569
|
target[prop] = source[prop];
|
|
1670
|
-
if (source != null && __getOwnPropSymbols$
|
|
1671
|
-
for (var prop of __getOwnPropSymbols$
|
|
1672
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2570
|
+
if (source != null && __getOwnPropSymbols$M)
|
|
2571
|
+
for (var prop of __getOwnPropSymbols$M(source)) {
|
|
2572
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
|
|
1673
2573
|
target[prop] = source[prop];
|
|
1674
2574
|
}
|
|
1675
2575
|
return target;
|
|
@@ -1679,7 +2579,7 @@ const CalendarModal = React__default.forwardRef(
|
|
|
1679
2579
|
var _b = _a, { handleClickDay, onCancel, calValue, locale, size } = _b, props = __objRest$b(_b, ["handleClickDay", "onCancel", "calValue", "locale", "size"]);
|
|
1680
2580
|
return /* @__PURE__ */ jsx(
|
|
1681
2581
|
Modal,
|
|
1682
|
-
__spreadProps$
|
|
2582
|
+
__spreadProps$A(__spreadValues$L({
|
|
1683
2583
|
noHeader: true,
|
|
1684
2584
|
size: size != null ? size : "cal",
|
|
1685
2585
|
shouldCloseOnEsc: true,
|
|
@@ -1709,25 +2609,25 @@ const CalendarModal = React__default.forwardRef(
|
|
|
1709
2609
|
);
|
|
1710
2610
|
CalendarModal.displayName = "CalendarModal";
|
|
1711
2611
|
|
|
1712
|
-
var __defProp$
|
|
1713
|
-
var __defProps$
|
|
1714
|
-
var __getOwnPropDescs$
|
|
1715
|
-
var __getOwnPropSymbols$
|
|
1716
|
-
var __hasOwnProp$
|
|
1717
|
-
var __propIsEnum$
|
|
1718
|
-
var __defNormalProp$
|
|
1719
|
-
var __spreadValues$
|
|
2612
|
+
var __defProp$K = Object.defineProperty;
|
|
2613
|
+
var __defProps$z = Object.defineProperties;
|
|
2614
|
+
var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
|
|
2615
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
2616
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
2617
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
2618
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2619
|
+
var __spreadValues$K = (a, b) => {
|
|
1720
2620
|
for (var prop in b || (b = {}))
|
|
1721
|
-
if (__hasOwnProp$
|
|
1722
|
-
__defNormalProp$
|
|
1723
|
-
if (__getOwnPropSymbols$
|
|
1724
|
-
for (var prop of __getOwnPropSymbols$
|
|
1725
|
-
if (__propIsEnum$
|
|
1726
|
-
__defNormalProp$
|
|
2621
|
+
if (__hasOwnProp$L.call(b, prop))
|
|
2622
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
2623
|
+
if (__getOwnPropSymbols$L)
|
|
2624
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
|
2625
|
+
if (__propIsEnum$L.call(b, prop))
|
|
2626
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
1727
2627
|
}
|
|
1728
2628
|
return a;
|
|
1729
2629
|
};
|
|
1730
|
-
var __spreadProps$
|
|
2630
|
+
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
1731
2631
|
function useModal(configuration) {
|
|
1732
2632
|
var _a, _b, _c;
|
|
1733
2633
|
const [isLoading, setIsLoading] = React__default.useState(false);
|
|
@@ -1738,7 +2638,7 @@ function useModal(configuration) {
|
|
|
1738
2638
|
Portal,
|
|
1739
2639
|
hide: hidePortal,
|
|
1740
2640
|
show: showPortal
|
|
1741
|
-
} = usePortal(__spreadProps$
|
|
2641
|
+
} = usePortal(__spreadProps$z(__spreadValues$K({}, configuration == null ? void 0 : configuration.portalArgs), {
|
|
1742
2642
|
containerId: "AppModals",
|
|
1743
2643
|
autoRemoveContainer: false,
|
|
1744
2644
|
escToHide: false,
|
|
@@ -1795,32 +2695,32 @@ function useModal(configuration) {
|
|
|
1795
2695
|
};
|
|
1796
2696
|
}
|
|
1797
2697
|
|
|
1798
|
-
var __defProp$
|
|
1799
|
-
var __defProps$
|
|
1800
|
-
var __getOwnPropDescs$
|
|
1801
|
-
var __getOwnPropSymbols$
|
|
1802
|
-
var __hasOwnProp$
|
|
1803
|
-
var __propIsEnum$
|
|
1804
|
-
var __defNormalProp$
|
|
1805
|
-
var __spreadValues$
|
|
2698
|
+
var __defProp$J = Object.defineProperty;
|
|
2699
|
+
var __defProps$y = Object.defineProperties;
|
|
2700
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
2701
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
2702
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
2703
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
2704
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2705
|
+
var __spreadValues$J = (a, b) => {
|
|
1806
2706
|
for (var prop in b || (b = {}))
|
|
1807
|
-
if (__hasOwnProp$
|
|
1808
|
-
__defNormalProp$
|
|
1809
|
-
if (__getOwnPropSymbols$
|
|
1810
|
-
for (var prop of __getOwnPropSymbols$
|
|
1811
|
-
if (__propIsEnum$
|
|
1812
|
-
__defNormalProp$
|
|
2707
|
+
if (__hasOwnProp$K.call(b, prop))
|
|
2708
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
2709
|
+
if (__getOwnPropSymbols$K)
|
|
2710
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
|
2711
|
+
if (__propIsEnum$K.call(b, prop))
|
|
2712
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
1813
2713
|
}
|
|
1814
2714
|
return a;
|
|
1815
2715
|
};
|
|
1816
|
-
var __spreadProps$
|
|
2716
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
1817
2717
|
const DialogButtonBar = ({
|
|
1818
2718
|
children,
|
|
1819
2719
|
className
|
|
1820
2720
|
}) => {
|
|
1821
2721
|
return /* @__PURE__ */ jsx(
|
|
1822
|
-
Box,
|
|
1823
|
-
__spreadProps$
|
|
2722
|
+
Box$1,
|
|
2723
|
+
__spreadProps$y(__spreadValues$J({
|
|
1824
2724
|
className: `${className != null ? className : ""} buttonsBar`
|
|
1825
2725
|
}, getVariant("layout.common.modals.buttonsBar")), {
|
|
1826
2726
|
children
|
|
@@ -1828,25 +2728,25 @@ const DialogButtonBar = ({
|
|
|
1828
2728
|
);
|
|
1829
2729
|
};
|
|
1830
2730
|
|
|
1831
|
-
var __defProp$
|
|
1832
|
-
var __defProps$
|
|
1833
|
-
var __getOwnPropDescs$
|
|
1834
|
-
var __getOwnPropSymbols$
|
|
1835
|
-
var __hasOwnProp$
|
|
1836
|
-
var __propIsEnum$
|
|
1837
|
-
var __defNormalProp$
|
|
1838
|
-
var __spreadValues$
|
|
2731
|
+
var __defProp$I = Object.defineProperty;
|
|
2732
|
+
var __defProps$x = Object.defineProperties;
|
|
2733
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
2734
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
2735
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
2736
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
2737
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2738
|
+
var __spreadValues$I = (a, b) => {
|
|
1839
2739
|
for (var prop in b || (b = {}))
|
|
1840
|
-
if (__hasOwnProp$
|
|
1841
|
-
__defNormalProp$
|
|
1842
|
-
if (__getOwnPropSymbols$
|
|
1843
|
-
for (var prop of __getOwnPropSymbols$
|
|
1844
|
-
if (__propIsEnum$
|
|
1845
|
-
__defNormalProp$
|
|
2740
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
2741
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
2742
|
+
if (__getOwnPropSymbols$J)
|
|
2743
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
2744
|
+
if (__propIsEnum$J.call(b, prop))
|
|
2745
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
1846
2746
|
}
|
|
1847
2747
|
return a;
|
|
1848
2748
|
};
|
|
1849
|
-
var __spreadProps$
|
|
2749
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
1850
2750
|
const Confirm = ({
|
|
1851
2751
|
children,
|
|
1852
2752
|
additionalButtons,
|
|
@@ -1866,14 +2766,14 @@ const Confirm = ({
|
|
|
1866
2766
|
}) => {
|
|
1867
2767
|
const { descriptionId } = useModalContext();
|
|
1868
2768
|
return /* @__PURE__ */ jsxs(
|
|
1869
|
-
Box,
|
|
1870
|
-
__spreadProps$
|
|
2769
|
+
Box$1,
|
|
2770
|
+
__spreadProps$x(__spreadValues$I({}, getVariant(variant != null ? variant : "layout.common.modals.confirm")), {
|
|
1871
2771
|
className: `${className != null ? className : ""} confirm`,
|
|
1872
2772
|
children: [
|
|
1873
|
-
/* @__PURE__ */ jsx(Box, { ref: contentRef, className: "confirm__content", id: descriptionId, children }),
|
|
2773
|
+
/* @__PURE__ */ jsx(Box$1, { ref: contentRef, className: "confirm__content", id: descriptionId, children }),
|
|
1874
2774
|
/* @__PURE__ */ jsxs(DialogButtonBar, { className: "confirm__buttonBar", children: [
|
|
1875
2775
|
/* @__PURE__ */ jsx(
|
|
1876
|
-
Box,
|
|
2776
|
+
Box$1,
|
|
1877
2777
|
{
|
|
1878
2778
|
className: "confirm__customButtons",
|
|
1879
2779
|
onClick: useCallback(
|
|
@@ -1886,9 +2786,9 @@ const Confirm = ({
|
|
|
1886
2786
|
children: additionalButtons
|
|
1887
2787
|
}
|
|
1888
2788
|
),
|
|
1889
|
-
/* @__PURE__ */ jsxs(Box, { className: "confirm__defaultButtons", children: [
|
|
2789
|
+
/* @__PURE__ */ jsxs(Box$1, { className: "confirm__defaultButtons", children: [
|
|
1890
2790
|
/* @__PURE__ */ jsx(
|
|
1891
|
-
Box,
|
|
2791
|
+
Box$1,
|
|
1892
2792
|
{
|
|
1893
2793
|
className: "confirm__customButtonsOnRight",
|
|
1894
2794
|
onClick: useCallback(
|
|
@@ -1916,7 +2816,7 @@ const Confirm = ({
|
|
|
1916
2816
|
),
|
|
1917
2817
|
onCancel && !hideCancelButton && /* @__PURE__ */ jsx(
|
|
1918
2818
|
SimpleButton,
|
|
1919
|
-
__spreadProps$
|
|
2819
|
+
__spreadProps$x(__spreadValues$I({
|
|
1920
2820
|
onClick: onCancel,
|
|
1921
2821
|
title: cancelText
|
|
1922
2822
|
}, getVariant("secondary")), {
|
|
@@ -1935,13 +2835,13 @@ const Confirm = ({
|
|
|
1935
2835
|
const LinearLoader = () => {
|
|
1936
2836
|
const theme = useThemeUI();
|
|
1937
2837
|
return /* @__PURE__ */ jsx(
|
|
1938
|
-
Box,
|
|
2838
|
+
Box$1,
|
|
1939
2839
|
{
|
|
1940
2840
|
sx: {
|
|
1941
2841
|
"*": { height: "6.5px !important" }
|
|
1942
2842
|
},
|
|
1943
2843
|
children: /* @__PURE__ */ jsx(
|
|
1944
|
-
Box,
|
|
2844
|
+
Box$1,
|
|
1945
2845
|
{
|
|
1946
2846
|
sx: {
|
|
1947
2847
|
zIndex: "tooltip",
|
|
@@ -1958,25 +2858,25 @@ const LinearLoader = () => {
|
|
|
1958
2858
|
);
|
|
1959
2859
|
};
|
|
1960
2860
|
|
|
1961
|
-
var __defProp$
|
|
1962
|
-
var __defProps$
|
|
1963
|
-
var __getOwnPropDescs$
|
|
1964
|
-
var __getOwnPropSymbols$
|
|
1965
|
-
var __hasOwnProp$
|
|
1966
|
-
var __propIsEnum$
|
|
1967
|
-
var __defNormalProp$
|
|
1968
|
-
var __spreadValues$
|
|
2861
|
+
var __defProp$H = Object.defineProperty;
|
|
2862
|
+
var __defProps$w = Object.defineProperties;
|
|
2863
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
2864
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
2865
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
2866
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
2867
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2868
|
+
var __spreadValues$H = (a, b) => {
|
|
1969
2869
|
for (var prop in b || (b = {}))
|
|
1970
|
-
if (__hasOwnProp$
|
|
1971
|
-
__defNormalProp$
|
|
1972
|
-
if (__getOwnPropSymbols$
|
|
1973
|
-
for (var prop of __getOwnPropSymbols$
|
|
1974
|
-
if (__propIsEnum$
|
|
1975
|
-
__defNormalProp$
|
|
2870
|
+
if (__hasOwnProp$I.call(b, prop))
|
|
2871
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
2872
|
+
if (__getOwnPropSymbols$I)
|
|
2873
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
2874
|
+
if (__propIsEnum$I.call(b, prop))
|
|
2875
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
1976
2876
|
}
|
|
1977
2877
|
return a;
|
|
1978
2878
|
};
|
|
1979
|
-
var __spreadProps$
|
|
2879
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
1980
2880
|
const ScreenLock = () => {
|
|
1981
2881
|
const ref = React__default.useRef(null);
|
|
1982
2882
|
const [hasReleasedFirstTime, setHasReleasedFirstTime] = useState(false);
|
|
@@ -1989,11 +2889,11 @@ const ScreenLock = () => {
|
|
|
1989
2889
|
React__default.useEffect(() => {
|
|
1990
2890
|
const suscriptions = [
|
|
1991
2891
|
screenLocker.on("lockStateChange", (ev) => {
|
|
1992
|
-
setLocks((current) => __spreadProps$
|
|
2892
|
+
setLocks((current) => __spreadProps$w(__spreadValues$H({}, current), { [ev.lockName]: ev.isLocked }));
|
|
1993
2893
|
setHasReleasedFirstTime(ev.hasReleasedFirstTime);
|
|
1994
2894
|
}),
|
|
1995
2895
|
screenLocker.on("forcedStateChange", (ev) => {
|
|
1996
|
-
setLocks((current) => __spreadProps$
|
|
2896
|
+
setLocks((current) => __spreadProps$w(__spreadValues$H({}, current), { forced: ev.isForced }));
|
|
1997
2897
|
setHasReleasedFirstTime(ev.hasReleasedFirstTime);
|
|
1998
2898
|
})
|
|
1999
2899
|
];
|
|
@@ -2010,7 +2910,7 @@ const ScreenLock = () => {
|
|
|
2010
2910
|
}, [locks.linear, hasReleasedFirstTime]);
|
|
2011
2911
|
if (!locks.linear && !locks.common && !locks.white && !locks.forced)
|
|
2012
2912
|
return null;
|
|
2013
|
-
return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(
|
|
2913
|
+
return /* @__PURE__ */ jsx(Box$1, { children: /* @__PURE__ */ jsxs(
|
|
2014
2914
|
Overlay,
|
|
2015
2915
|
{
|
|
2016
2916
|
isOpen: true,
|
|
@@ -2023,7 +2923,7 @@ const ScreenLock = () => {
|
|
|
2023
2923
|
transitionDuration: hasReleasedFirstTime ? void 0 : 0,
|
|
2024
2924
|
children: [
|
|
2025
2925
|
locks.linear ? /* @__PURE__ */ jsx(LinearLoader, {}) : /* @__PURE__ */ jsx(Spinner, { ref, sx: { "*": { color: "primary" } } }),
|
|
2026
|
-
/* @__PURE__ */ jsx(Box, { tabIndex: 0, title: window.WAIT_A_SECOND })
|
|
2926
|
+
/* @__PURE__ */ jsx(Box$1, { tabIndex: 0, title: window.WAIT_A_SECOND })
|
|
2027
2927
|
]
|
|
2028
2928
|
}
|
|
2029
2929
|
) });
|
|
@@ -2039,7 +2939,7 @@ const FieldErrorMessage = ({ children, name }) => {
|
|
|
2039
2939
|
}, [children, ref]);
|
|
2040
2940
|
if (children) {
|
|
2041
2941
|
return /* @__PURE__ */ jsx(
|
|
2042
|
-
Box,
|
|
2942
|
+
Box$1,
|
|
2043
2943
|
{
|
|
2044
2944
|
ref: setRef,
|
|
2045
2945
|
role: "alert",
|
|
@@ -2056,33 +2956,33 @@ const FieldErrorMessage = ({ children, name }) => {
|
|
|
2056
2956
|
return null;
|
|
2057
2957
|
};
|
|
2058
2958
|
|
|
2059
|
-
var __defProp$
|
|
2060
|
-
var __defProps$
|
|
2061
|
-
var __getOwnPropDescs$
|
|
2062
|
-
var __getOwnPropSymbols$
|
|
2063
|
-
var __hasOwnProp$
|
|
2064
|
-
var __propIsEnum$
|
|
2065
|
-
var __defNormalProp$
|
|
2066
|
-
var __spreadValues$
|
|
2959
|
+
var __defProp$G = Object.defineProperty;
|
|
2960
|
+
var __defProps$v = Object.defineProperties;
|
|
2961
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
2962
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
2963
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
2964
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
2965
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2966
|
+
var __spreadValues$G = (a, b) => {
|
|
2067
2967
|
for (var prop in b || (b = {}))
|
|
2068
|
-
if (__hasOwnProp$
|
|
2069
|
-
__defNormalProp$
|
|
2070
|
-
if (__getOwnPropSymbols$
|
|
2071
|
-
for (var prop of __getOwnPropSymbols$
|
|
2072
|
-
if (__propIsEnum$
|
|
2073
|
-
__defNormalProp$
|
|
2968
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
2969
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
2970
|
+
if (__getOwnPropSymbols$H)
|
|
2971
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
2972
|
+
if (__propIsEnum$H.call(b, prop))
|
|
2973
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
2074
2974
|
}
|
|
2075
2975
|
return a;
|
|
2076
2976
|
};
|
|
2077
|
-
var __spreadProps$
|
|
2977
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
2078
2978
|
var __objRest$a = (source, exclude) => {
|
|
2079
2979
|
var target = {};
|
|
2080
2980
|
for (var prop in source)
|
|
2081
|
-
if (__hasOwnProp$
|
|
2981
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2082
2982
|
target[prop] = source[prop];
|
|
2083
|
-
if (source != null && __getOwnPropSymbols$
|
|
2084
|
-
for (var prop of __getOwnPropSymbols$
|
|
2085
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2983
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
2984
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
2985
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
2086
2986
|
target[prop] = source[prop];
|
|
2087
2987
|
}
|
|
2088
2988
|
return target;
|
|
@@ -2138,26 +3038,26 @@ const IconInput = (_a) => {
|
|
|
2138
3038
|
[onBlur]
|
|
2139
3039
|
);
|
|
2140
3040
|
return /* @__PURE__ */ jsxs(
|
|
2141
|
-
Box,
|
|
2142
|
-
__spreadProps$
|
|
3041
|
+
Box$1,
|
|
3042
|
+
__spreadProps$v(__spreadValues$G({}, getVariant("forms.iconInput")), {
|
|
2143
3043
|
className: `${className != null ? className : ""} iconInput`,
|
|
2144
3044
|
ref: parentRef,
|
|
2145
3045
|
onBlur: handleBlur,
|
|
2146
3046
|
children: [
|
|
2147
3047
|
/* @__PURE__ */ jsx(
|
|
2148
3048
|
Input,
|
|
2149
|
-
__spreadValues$
|
|
3049
|
+
__spreadValues$G(__spreadValues$G({
|
|
2150
3050
|
disabled: isLoading != null ? isLoading : disabled,
|
|
2151
3051
|
ref: assignInputRef,
|
|
2152
3052
|
readOnly,
|
|
2153
|
-
sx: __spreadValues$
|
|
3053
|
+
sx: __spreadValues$G({ variant: "forms.input" }, inputSx),
|
|
2154
3054
|
"data-variant": "forms.input"
|
|
2155
3055
|
}, rest), actualInputProps)
|
|
2156
3056
|
),
|
|
2157
3057
|
additionalButtonsPosition === "before" && additionalButtons,
|
|
2158
3058
|
!hideButton && /* @__PURE__ */ jsx(
|
|
2159
3059
|
IconButton,
|
|
2160
|
-
__spreadValues$
|
|
3060
|
+
__spreadValues$G({
|
|
2161
3061
|
onClick,
|
|
2162
3062
|
icon,
|
|
2163
3063
|
disabled: readOnly != null ? readOnly : disabled,
|
|
@@ -2186,33 +3086,33 @@ const getFieldTouchedStyles = (isTouched) => {
|
|
|
2186
3086
|
};
|
|
2187
3087
|
};
|
|
2188
3088
|
|
|
2189
|
-
var __defProp$
|
|
2190
|
-
var __defProps$
|
|
2191
|
-
var __getOwnPropDescs$
|
|
2192
|
-
var __getOwnPropSymbols$
|
|
2193
|
-
var __hasOwnProp$
|
|
2194
|
-
var __propIsEnum$
|
|
2195
|
-
var __defNormalProp$
|
|
2196
|
-
var __spreadValues$
|
|
3089
|
+
var __defProp$F = Object.defineProperty;
|
|
3090
|
+
var __defProps$u = Object.defineProperties;
|
|
3091
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
3092
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
3093
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
3094
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
3095
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3096
|
+
var __spreadValues$F = (a, b) => {
|
|
2197
3097
|
for (var prop in b || (b = {}))
|
|
2198
|
-
if (__hasOwnProp$
|
|
2199
|
-
__defNormalProp$
|
|
2200
|
-
if (__getOwnPropSymbols$
|
|
2201
|
-
for (var prop of __getOwnPropSymbols$
|
|
2202
|
-
if (__propIsEnum$
|
|
2203
|
-
__defNormalProp$
|
|
3098
|
+
if (__hasOwnProp$G.call(b, prop))
|
|
3099
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
3100
|
+
if (__getOwnPropSymbols$G)
|
|
3101
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
|
3102
|
+
if (__propIsEnum$G.call(b, prop))
|
|
3103
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
2204
3104
|
}
|
|
2205
3105
|
return a;
|
|
2206
3106
|
};
|
|
2207
|
-
var __spreadProps$
|
|
3107
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
2208
3108
|
var __objRest$9 = (source, exclude) => {
|
|
2209
3109
|
var target = {};
|
|
2210
3110
|
for (var prop in source)
|
|
2211
|
-
if (__hasOwnProp$
|
|
3111
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2212
3112
|
target[prop] = source[prop];
|
|
2213
|
-
if (source != null && __getOwnPropSymbols$
|
|
2214
|
-
for (var prop of __getOwnPropSymbols$
|
|
2215
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3113
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
3114
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
3115
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
2216
3116
|
target[prop] = source[prop];
|
|
2217
3117
|
}
|
|
2218
3118
|
return target;
|
|
@@ -2360,7 +3260,7 @@ const DateInput = React__default.forwardRef(
|
|
|
2360
3260
|
[id, onBlur]
|
|
2361
3261
|
);
|
|
2362
3262
|
const inputProps = React__default.useMemo(
|
|
2363
|
-
() => __spreadProps$
|
|
3263
|
+
() => __spreadProps$u(__spreadValues$F({}, props), {
|
|
2364
3264
|
className: "dateInput",
|
|
2365
3265
|
value: renderLabel ? renderLabel(inputValue) : inputValue,
|
|
2366
3266
|
ref,
|
|
@@ -2392,7 +3292,7 @@ const DateInput = React__default.forwardRef(
|
|
|
2392
3292
|
const buttonProps = React__default.useMemo(
|
|
2393
3293
|
() => {
|
|
2394
3294
|
var _a3;
|
|
2395
|
-
return __spreadValues$
|
|
3295
|
+
return __spreadValues$F({
|
|
2396
3296
|
disabled: (_a3 = props.disabled) != null ? _a3 : props.readOnly,
|
|
2397
3297
|
"aria-label": window.LBL_PICK_DATE
|
|
2398
3298
|
}, outerButtonProps);
|
|
@@ -2420,7 +3320,7 @@ const DateInput = React__default.forwardRef(
|
|
|
2420
3320
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2421
3321
|
/* @__PURE__ */ jsx(
|
|
2422
3322
|
CalendarModal,
|
|
2423
|
-
__spreadProps$
|
|
3323
|
+
__spreadProps$u(__spreadValues$F({}, modalProps), {
|
|
2424
3324
|
calValue,
|
|
2425
3325
|
locale: DEFAULT_LOCALE,
|
|
2426
3326
|
handleClickDay: selectDate,
|
|
@@ -2429,8 +3329,8 @@ const DateInput = React__default.forwardRef(
|
|
|
2429
3329
|
})
|
|
2430
3330
|
),
|
|
2431
3331
|
/* @__PURE__ */ jsxs(
|
|
2432
|
-
Box,
|
|
2433
|
-
__spreadProps$
|
|
3332
|
+
Box$1,
|
|
3333
|
+
__spreadProps$u(__spreadValues$F({}, getVariant("forms.dateInput")), {
|
|
2434
3334
|
className: `${className != null ? className : ""} dateInput`,
|
|
2435
3335
|
id: `DateInput${id}`,
|
|
2436
3336
|
ref: boxRef,
|
|
@@ -2463,33 +3363,33 @@ const DateInput = React__default.forwardRef(
|
|
|
2463
3363
|
);
|
|
2464
3364
|
DateInput.displayName = "DateInput";
|
|
2465
3365
|
|
|
2466
|
-
var __defProp$
|
|
2467
|
-
var __defProps$
|
|
2468
|
-
var __getOwnPropDescs$
|
|
2469
|
-
var __getOwnPropSymbols$
|
|
2470
|
-
var __hasOwnProp$
|
|
2471
|
-
var __propIsEnum$
|
|
2472
|
-
var __defNormalProp$
|
|
2473
|
-
var __spreadValues$
|
|
3366
|
+
var __defProp$E = Object.defineProperty;
|
|
3367
|
+
var __defProps$t = Object.defineProperties;
|
|
3368
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
3369
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
3370
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
3371
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
3372
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3373
|
+
var __spreadValues$E = (a, b) => {
|
|
2474
3374
|
for (var prop in b || (b = {}))
|
|
2475
|
-
if (__hasOwnProp$
|
|
2476
|
-
__defNormalProp$
|
|
2477
|
-
if (__getOwnPropSymbols$
|
|
2478
|
-
for (var prop of __getOwnPropSymbols$
|
|
2479
|
-
if (__propIsEnum$
|
|
2480
|
-
__defNormalProp$
|
|
3375
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
3376
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
3377
|
+
if (__getOwnPropSymbols$F)
|
|
3378
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
3379
|
+
if (__propIsEnum$F.call(b, prop))
|
|
3380
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
2481
3381
|
}
|
|
2482
3382
|
return a;
|
|
2483
3383
|
};
|
|
2484
|
-
var __spreadProps$
|
|
3384
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
2485
3385
|
var __objRest$8 = (source, exclude) => {
|
|
2486
3386
|
var target = {};
|
|
2487
3387
|
for (var prop in source)
|
|
2488
|
-
if (__hasOwnProp$
|
|
3388
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2489
3389
|
target[prop] = source[prop];
|
|
2490
|
-
if (source != null && __getOwnPropSymbols$
|
|
2491
|
-
for (var prop of __getOwnPropSymbols$
|
|
2492
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3390
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
3391
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
3392
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
2493
3393
|
target[prop] = source[prop];
|
|
2494
3394
|
}
|
|
2495
3395
|
return target;
|
|
@@ -2609,7 +3509,7 @@ const NumberInput = React__default.forwardRef(
|
|
|
2609
3509
|
}, [value]);
|
|
2610
3510
|
return /* @__PURE__ */ jsx(
|
|
2611
3511
|
Input,
|
|
2612
|
-
__spreadProps$
|
|
3512
|
+
__spreadProps$t(__spreadValues$E({}, props), {
|
|
2613
3513
|
onFocus: React__default.useCallback(
|
|
2614
3514
|
(ev) => {
|
|
2615
3515
|
var _a2;
|
|
@@ -2649,33 +3549,33 @@ const RequiredMark = ({
|
|
|
2649
3549
|
return isRequired && !isReadonly && !isFormReadonly ? /* @__PURE__ */ jsx("abbr", { className: "requiredMark", title: getLabel("msgReqField").text, children: "*" }) : null;
|
|
2650
3550
|
};
|
|
2651
3551
|
|
|
2652
|
-
var __defProp$
|
|
2653
|
-
var __defProps$
|
|
2654
|
-
var __getOwnPropDescs$
|
|
2655
|
-
var __getOwnPropSymbols$
|
|
2656
|
-
var __hasOwnProp$
|
|
2657
|
-
var __propIsEnum$
|
|
2658
|
-
var __defNormalProp$
|
|
2659
|
-
var __spreadValues$
|
|
3552
|
+
var __defProp$D = Object.defineProperty;
|
|
3553
|
+
var __defProps$s = Object.defineProperties;
|
|
3554
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
3555
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
3556
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
3557
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
3558
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3559
|
+
var __spreadValues$D = (a, b) => {
|
|
2660
3560
|
for (var prop in b || (b = {}))
|
|
2661
|
-
if (__hasOwnProp$
|
|
2662
|
-
__defNormalProp$
|
|
2663
|
-
if (__getOwnPropSymbols$
|
|
2664
|
-
for (var prop of __getOwnPropSymbols$
|
|
2665
|
-
if (__propIsEnum$
|
|
2666
|
-
__defNormalProp$
|
|
3561
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
3562
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
3563
|
+
if (__getOwnPropSymbols$E)
|
|
3564
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
3565
|
+
if (__propIsEnum$E.call(b, prop))
|
|
3566
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
2667
3567
|
}
|
|
2668
3568
|
return a;
|
|
2669
3569
|
};
|
|
2670
|
-
var __spreadProps$
|
|
3570
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
2671
3571
|
var __objRest$7 = (source, exclude) => {
|
|
2672
3572
|
var target = {};
|
|
2673
3573
|
for (var prop in source)
|
|
2674
|
-
if (__hasOwnProp$
|
|
3574
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2675
3575
|
target[prop] = source[prop];
|
|
2676
|
-
if (source != null && __getOwnPropSymbols$
|
|
2677
|
-
for (var prop of __getOwnPropSymbols$
|
|
2678
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3576
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
3577
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
3578
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
2679
3579
|
target[prop] = source[prop];
|
|
2680
3580
|
}
|
|
2681
3581
|
return target;
|
|
@@ -2711,8 +3611,8 @@ const FieldLabel = forwardRef(
|
|
|
2711
3611
|
]);
|
|
2712
3612
|
var _a2, _b2;
|
|
2713
3613
|
return /* @__PURE__ */ jsxs(
|
|
2714
|
-
Box,
|
|
2715
|
-
__spreadProps$
|
|
3614
|
+
Box$1,
|
|
3615
|
+
__spreadProps$s(__spreadValues$D(__spreadProps$s(__spreadValues$D({
|
|
2716
3616
|
as: as != null ? as : "label"
|
|
2717
3617
|
}, props), {
|
|
2718
3618
|
className: `fieldLabel ${(_a2 = props.className) != null ? _a2 : ""}`
|
|
@@ -2720,7 +3620,7 @@ const FieldLabel = forwardRef(
|
|
|
2720
3620
|
"aria-label": (_b2 = props["aria-label"]) != null ? _b2 : label,
|
|
2721
3621
|
ref,
|
|
2722
3622
|
children: [
|
|
2723
|
-
/* @__PURE__ */ jsxs(Box, { className: "fieldLabel__label", children: [
|
|
3623
|
+
/* @__PURE__ */ jsxs(Box$1, { className: "fieldLabel__label", children: [
|
|
2724
3624
|
requiredMarkPosition === "before" && /* @__PURE__ */ jsx(
|
|
2725
3625
|
RequiredMark,
|
|
2726
3626
|
{
|
|
@@ -2740,8 +3640,8 @@ const FieldLabel = forwardRef(
|
|
|
2740
3640
|
),
|
|
2741
3641
|
!avoidSemicolon && ":"
|
|
2742
3642
|
] }),
|
|
2743
|
-
/* @__PURE__ */ jsx(Box, { children }),
|
|
2744
|
-
error && /* @__PURE__ */ jsx(Box, { className: "fieldLabel__error", children: error })
|
|
3643
|
+
/* @__PURE__ */ jsx(Box$1, { children }),
|
|
3644
|
+
error && /* @__PURE__ */ jsx(Box$1, { className: "fieldLabel__error", children: error })
|
|
2745
3645
|
]
|
|
2746
3646
|
})
|
|
2747
3647
|
);
|
|
@@ -2751,7 +3651,7 @@ FieldLabel.displayName = "FieldLabel";
|
|
|
2751
3651
|
|
|
2752
3652
|
const Checkbox = (props) => {
|
|
2753
3653
|
return /* @__PURE__ */ jsx(
|
|
2754
|
-
Box,
|
|
3654
|
+
Box$1,
|
|
2755
3655
|
{
|
|
2756
3656
|
className: "accordion__item__button__check",
|
|
2757
3657
|
onClick: (ev) => {
|
|
@@ -2859,7 +3759,7 @@ const AutoEllipsis = ({
|
|
|
2859
3759
|
const cloneBounding = clone.current.getBoundingClientRect();
|
|
2860
3760
|
const difX = Math.abs(cloneBounding.width - bound.width);
|
|
2861
3761
|
const difY = Math.abs(cloneBounding.height - bound.height);
|
|
2862
|
-
if (difX < 50 && difY <
|
|
3762
|
+
if (difX < 50 && difY < 10) {
|
|
2863
3763
|
clone.current.remove();
|
|
2864
3764
|
}
|
|
2865
3765
|
}
|
|
@@ -2888,7 +3788,7 @@ const AutoEllipsis = ({
|
|
|
2888
3788
|
};
|
|
2889
3789
|
}, []);
|
|
2890
3790
|
return /* @__PURE__ */ jsx(
|
|
2891
|
-
Box,
|
|
3791
|
+
Box$1,
|
|
2892
3792
|
{
|
|
2893
3793
|
ref,
|
|
2894
3794
|
sx: {
|
|
@@ -2902,25 +3802,25 @@ const AutoEllipsis = ({
|
|
|
2902
3802
|
);
|
|
2903
3803
|
};
|
|
2904
3804
|
|
|
2905
|
-
var __defProp$
|
|
2906
|
-
var __defProps$
|
|
2907
|
-
var __getOwnPropDescs$
|
|
2908
|
-
var __getOwnPropSymbols$
|
|
2909
|
-
var __hasOwnProp$
|
|
2910
|
-
var __propIsEnum$
|
|
2911
|
-
var __defNormalProp$
|
|
2912
|
-
var __spreadValues$
|
|
3805
|
+
var __defProp$C = Object.defineProperty;
|
|
3806
|
+
var __defProps$r = Object.defineProperties;
|
|
3807
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
3808
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
3809
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
3810
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
3811
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3812
|
+
var __spreadValues$C = (a, b) => {
|
|
2913
3813
|
for (var prop in b || (b = {}))
|
|
2914
|
-
if (__hasOwnProp$
|
|
2915
|
-
__defNormalProp$
|
|
2916
|
-
if (__getOwnPropSymbols$
|
|
2917
|
-
for (var prop of __getOwnPropSymbols$
|
|
2918
|
-
if (__propIsEnum$
|
|
2919
|
-
__defNormalProp$
|
|
3814
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
3815
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
3816
|
+
if (__getOwnPropSymbols$D)
|
|
3817
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
3818
|
+
if (__propIsEnum$D.call(b, prop))
|
|
3819
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
2920
3820
|
}
|
|
2921
3821
|
return a;
|
|
2922
3822
|
};
|
|
2923
|
-
var __spreadProps$
|
|
3823
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
2924
3824
|
function calcBreakPoint(currentWidth, breakPoints) {
|
|
2925
3825
|
let currentIndex = 0;
|
|
2926
3826
|
while (currentIndex < breakPoints.length && currentWidth > breakPoints[currentIndex])
|
|
@@ -2992,9 +3892,9 @@ const makeResponsiveComponent = ({
|
|
|
2992
3892
|
}, [innerBreakpoints]);
|
|
2993
3893
|
const deferBreakPoint = useDeferredValue(breakPoint);
|
|
2994
3894
|
const deferContainerWidth = useDeferredValue(containerWidth);
|
|
2995
|
-
return /* @__PURE__ */ jsx(Box, { ref, children: hasRendered ? /* @__PURE__ */ jsx(
|
|
3895
|
+
return /* @__PURE__ */ jsx(Box$1, { ref, children: hasRendered ? /* @__PURE__ */ jsx(
|
|
2996
3896
|
Component,
|
|
2997
|
-
__spreadProps$
|
|
3897
|
+
__spreadProps$r(__spreadValues$C({}, props), {
|
|
2998
3898
|
breakPoint: deferBreakPoint,
|
|
2999
3899
|
breakPointWidth: breakPoints[deferBreakPoint],
|
|
3000
3900
|
containerWidth: deferContainerWidth
|
|
@@ -3005,25 +3905,25 @@ const makeResponsiveComponent = ({
|
|
|
3005
3905
|
);
|
|
3006
3906
|
};
|
|
3007
3907
|
|
|
3008
|
-
var __defProp$
|
|
3009
|
-
var __defProps$
|
|
3010
|
-
var __getOwnPropDescs$
|
|
3011
|
-
var __getOwnPropSymbols$
|
|
3012
|
-
var __hasOwnProp$
|
|
3013
|
-
var __propIsEnum$
|
|
3014
|
-
var __defNormalProp$
|
|
3015
|
-
var __spreadValues$
|
|
3908
|
+
var __defProp$B = Object.defineProperty;
|
|
3909
|
+
var __defProps$q = Object.defineProperties;
|
|
3910
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
3911
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
3912
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
3913
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
3914
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3915
|
+
var __spreadValues$B = (a, b) => {
|
|
3016
3916
|
for (var prop in b || (b = {}))
|
|
3017
|
-
if (__hasOwnProp$
|
|
3018
|
-
__defNormalProp$
|
|
3019
|
-
if (__getOwnPropSymbols$
|
|
3020
|
-
for (var prop of __getOwnPropSymbols$
|
|
3021
|
-
if (__propIsEnum$
|
|
3022
|
-
__defNormalProp$
|
|
3917
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
3918
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
3919
|
+
if (__getOwnPropSymbols$C)
|
|
3920
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
3921
|
+
if (__propIsEnum$C.call(b, prop))
|
|
3922
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
3023
3923
|
}
|
|
3024
3924
|
return a;
|
|
3025
3925
|
};
|
|
3026
|
-
var __spreadProps$
|
|
3926
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
3027
3927
|
const DefaultAccordionItemButton = (props) => {
|
|
3028
3928
|
var _a, _b, _c, _d, _e, _f;
|
|
3029
3929
|
const handler = useAccordionContext();
|
|
@@ -3056,7 +3956,7 @@ const DefaultAccordionItemButton = (props) => {
|
|
|
3056
3956
|
);
|
|
3057
3957
|
return /* @__PURE__ */ jsxs(
|
|
3058
3958
|
SimpleButton,
|
|
3059
|
-
__spreadProps$
|
|
3959
|
+
__spreadProps$q(__spreadValues$B({}, props.domButtonProps), {
|
|
3060
3960
|
className: `accordion__item__button ${(_a = props.className) != null ? _a : ""} ${(_c = (_b = props.domButtonProps) == null ? void 0 : _b.className) != null ? _c : ""}`,
|
|
3061
3961
|
onClick: handleClick,
|
|
3062
3962
|
onKeyDown: handleKeyDown,
|
|
@@ -3066,7 +3966,7 @@ const DefaultAccordionItemButton = (props) => {
|
|
|
3066
3966
|
"aria-label": props.ariaLabel,
|
|
3067
3967
|
tabIndex: props.tabIndex,
|
|
3068
3968
|
children: [
|
|
3069
|
-
/* @__PURE__ */ jsxs(Box, { className: "accordion__item__button__leftGroup", children: [
|
|
3969
|
+
/* @__PURE__ */ jsxs(Box$1, { className: "accordion__item__button__leftGroup", children: [
|
|
3070
3970
|
props.checked !== void 0 && /* @__PURE__ */ jsx(
|
|
3071
3971
|
Checkbox,
|
|
3072
3972
|
{
|
|
@@ -3075,9 +3975,9 @@ const DefaultAccordionItemButton = (props) => {
|
|
|
3075
3975
|
onChange: setIsChecked
|
|
3076
3976
|
}
|
|
3077
3977
|
),
|
|
3078
|
-
/* @__PURE__ */ jsx(Box, { as: "h3", className: "accordion__item__button__label", children: /* @__PURE__ */ jsx(AutoEllipsis, { overrideStyles: () => ({ textAlign: "left" }), children: (_e = (_d = props.label) != null ? _d : props.title) != null ? _e : props.ariaLabel }) })
|
|
3978
|
+
/* @__PURE__ */ jsx(Box$1, { as: "h3", className: "accordion__item__button__label", children: /* @__PURE__ */ jsx(AutoEllipsis, { overrideStyles: () => ({ textAlign: "left" }), children: (_e = (_d = props.label) != null ? _d : props.title) != null ? _e : props.ariaLabel }) })
|
|
3079
3979
|
] }),
|
|
3080
|
-
/* @__PURE__ */ jsxs(Box, { className: "accordion__item__button__rightGroup", children: [
|
|
3980
|
+
/* @__PURE__ */ jsxs(Box$1, { className: "accordion__item__button__rightGroup", children: [
|
|
3081
3981
|
props.rightButtons,
|
|
3082
3982
|
/* @__PURE__ */ jsx(
|
|
3083
3983
|
Icon$1,
|
|
@@ -3093,19 +3993,19 @@ const DefaultAccordionItemButton = (props) => {
|
|
|
3093
3993
|
);
|
|
3094
3994
|
};
|
|
3095
3995
|
|
|
3096
|
-
var __defProp$
|
|
3097
|
-
var __getOwnPropSymbols$
|
|
3098
|
-
var __hasOwnProp$
|
|
3099
|
-
var __propIsEnum$
|
|
3100
|
-
var __defNormalProp$
|
|
3101
|
-
var __spreadValues$
|
|
3996
|
+
var __defProp$A = Object.defineProperty;
|
|
3997
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
3998
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
3999
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
4000
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4001
|
+
var __spreadValues$A = (a, b) => {
|
|
3102
4002
|
for (var prop in b || (b = {}))
|
|
3103
|
-
if (__hasOwnProp$
|
|
3104
|
-
__defNormalProp$
|
|
3105
|
-
if (__getOwnPropSymbols$
|
|
3106
|
-
for (var prop of __getOwnPropSymbols$
|
|
3107
|
-
if (__propIsEnum$
|
|
3108
|
-
__defNormalProp$
|
|
4003
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
4004
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
4005
|
+
if (__getOwnPropSymbols$B)
|
|
4006
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
4007
|
+
if (__propIsEnum$B.call(b, prop))
|
|
4008
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
3109
4009
|
}
|
|
3110
4010
|
return a;
|
|
3111
4011
|
};
|
|
@@ -3125,7 +4025,7 @@ const AccordionItemContent = ({
|
|
|
3125
4025
|
return true;
|
|
3126
4026
|
});
|
|
3127
4027
|
if (button === null && buttonProps)
|
|
3128
|
-
button = /* @__PURE__ */ jsx(DefaultAccordionItemButton, __spreadValues$
|
|
4028
|
+
button = /* @__PURE__ */ jsx(DefaultAccordionItemButton, __spreadValues$A({}, buttonProps));
|
|
3129
4029
|
const handler = useAccordionContext();
|
|
3130
4030
|
const isExpanded = handler.hooks.useItemStateSelector(
|
|
3131
4031
|
(current) => current.isExpanded
|
|
@@ -3134,7 +4034,7 @@ const AccordionItemContent = ({
|
|
|
3134
4034
|
(current) => current.animationDuration
|
|
3135
4035
|
);
|
|
3136
4036
|
const id = handler.hooks.useItemId();
|
|
3137
|
-
return /* @__PURE__ */ jsxs(Box, { className: "accordion__item", "data-id": id, children: [
|
|
4037
|
+
return /* @__PURE__ */ jsxs(Box$1, { className: "accordion__item", "data-id": id, children: [
|
|
3138
4038
|
button,
|
|
3139
4039
|
/* @__PURE__ */ jsx(
|
|
3140
4040
|
AnimateHeight,
|
|
@@ -3149,33 +4049,33 @@ const AccordionItemContent = ({
|
|
|
3149
4049
|
] });
|
|
3150
4050
|
};
|
|
3151
4051
|
|
|
3152
|
-
var __defProp$
|
|
3153
|
-
var __defProps$
|
|
3154
|
-
var __getOwnPropDescs$
|
|
3155
|
-
var __getOwnPropSymbols$
|
|
3156
|
-
var __hasOwnProp$
|
|
3157
|
-
var __propIsEnum$
|
|
3158
|
-
var __defNormalProp$
|
|
3159
|
-
var __spreadValues$
|
|
4052
|
+
var __defProp$z = Object.defineProperty;
|
|
4053
|
+
var __defProps$p = Object.defineProperties;
|
|
4054
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
4055
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
4056
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
4057
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
4058
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4059
|
+
var __spreadValues$z = (a, b) => {
|
|
3160
4060
|
for (var prop in b || (b = {}))
|
|
3161
|
-
if (__hasOwnProp$
|
|
3162
|
-
__defNormalProp$
|
|
3163
|
-
if (__getOwnPropSymbols$
|
|
3164
|
-
for (var prop of __getOwnPropSymbols$
|
|
3165
|
-
if (__propIsEnum$
|
|
3166
|
-
__defNormalProp$
|
|
4061
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
4062
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
4063
|
+
if (__getOwnPropSymbols$A)
|
|
4064
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
4065
|
+
if (__propIsEnum$A.call(b, prop))
|
|
4066
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
3167
4067
|
}
|
|
3168
4068
|
return a;
|
|
3169
4069
|
};
|
|
3170
|
-
var __spreadProps$
|
|
4070
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
3171
4071
|
var __objRest$6 = (source, exclude) => {
|
|
3172
4072
|
var target = {};
|
|
3173
4073
|
for (var prop in source)
|
|
3174
|
-
if (__hasOwnProp$
|
|
4074
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3175
4075
|
target[prop] = source[prop];
|
|
3176
|
-
if (source != null && __getOwnPropSymbols$
|
|
3177
|
-
for (var prop of __getOwnPropSymbols$
|
|
3178
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4076
|
+
if (source != null && __getOwnPropSymbols$A)
|
|
4077
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
|
4078
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
|
3179
4079
|
target[prop] = source[prop];
|
|
3180
4080
|
}
|
|
3181
4081
|
return target;
|
|
@@ -3195,7 +4095,7 @@ const AccordionItem = (_a) => {
|
|
|
3195
4095
|
hasRegistered.current = true;
|
|
3196
4096
|
context.registerItem(id, { isChecked: false, isExpanded: false });
|
|
3197
4097
|
}
|
|
3198
|
-
return /* @__PURE__ */ jsx(Provider, { children: /* @__PURE__ */ jsx(AccordionItemContent, __spreadProps$
|
|
4098
|
+
return /* @__PURE__ */ jsx(Provider, { children: /* @__PURE__ */ jsx(AccordionItemContent, __spreadProps$p(__spreadValues$z({ id }, props), { children })) });
|
|
3199
4099
|
};
|
|
3200
4100
|
|
|
3201
4101
|
const NoMemoApiaDateFilter = ({ filter, onChange, onBlur, onPressEnter }, ref) => {
|
|
@@ -3247,25 +4147,25 @@ const NoMemoApiaDateFilter = ({ filter, onChange, onBlur, onPressEnter }, ref) =
|
|
|
3247
4147
|
};
|
|
3248
4148
|
const ApiaDateFilter = React.forwardRef(NoMemoApiaDateFilter);
|
|
3249
4149
|
|
|
3250
|
-
var __defProp$
|
|
3251
|
-
var __defProps$
|
|
3252
|
-
var __getOwnPropDescs$
|
|
3253
|
-
var __getOwnPropSymbols$
|
|
3254
|
-
var __hasOwnProp$
|
|
3255
|
-
var __propIsEnum$
|
|
3256
|
-
var __defNormalProp$
|
|
3257
|
-
var __spreadValues$
|
|
4150
|
+
var __defProp$y = Object.defineProperty;
|
|
4151
|
+
var __defProps$o = Object.defineProperties;
|
|
4152
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
4153
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
4154
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
4155
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
4156
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4157
|
+
var __spreadValues$y = (a, b) => {
|
|
3258
4158
|
for (var prop in b || (b = {}))
|
|
3259
|
-
if (__hasOwnProp$
|
|
3260
|
-
__defNormalProp$
|
|
3261
|
-
if (__getOwnPropSymbols$
|
|
3262
|
-
for (var prop of __getOwnPropSymbols$
|
|
3263
|
-
if (__propIsEnum$
|
|
3264
|
-
__defNormalProp$
|
|
4159
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
4160
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
4161
|
+
if (__getOwnPropSymbols$z)
|
|
4162
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
4163
|
+
if (__propIsEnum$z.call(b, prop))
|
|
4164
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
3265
4165
|
}
|
|
3266
4166
|
return a;
|
|
3267
4167
|
};
|
|
3268
|
-
var __spreadProps$
|
|
4168
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
3269
4169
|
const NoMemoApiaFilter = ({ filter, onChange, onBlur, onPressEnter }, ref) => {
|
|
3270
4170
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
3271
4171
|
const [value, setValue] = React.useState(
|
|
@@ -3316,7 +4216,7 @@ const NoMemoApiaFilter = ({ filter, onChange, onBlur, onPressEnter }, ref) => {
|
|
|
3316
4216
|
if (filter.type === "apiaNumber") {
|
|
3317
4217
|
return /* @__PURE__ */ jsx(
|
|
3318
4218
|
NumberInput,
|
|
3319
|
-
__spreadProps$
|
|
4219
|
+
__spreadProps$o(__spreadValues$y({
|
|
3320
4220
|
"aria-readonly": filter.readonly,
|
|
3321
4221
|
readOnly: filter.readonly,
|
|
3322
4222
|
value,
|
|
@@ -3359,7 +4259,7 @@ const NoMemoApiaFilter = ({ filter, onChange, onBlur, onPressEnter }, ref) => {
|
|
|
3359
4259
|
}
|
|
3360
4260
|
) : /* @__PURE__ */ jsx(
|
|
3361
4261
|
Input,
|
|
3362
|
-
__spreadProps$
|
|
4262
|
+
__spreadProps$o(__spreadValues$y({
|
|
3363
4263
|
"aria-readonly": filter.readonly,
|
|
3364
4264
|
readOnly: filter.readonly,
|
|
3365
4265
|
value,
|
|
@@ -3390,25 +4290,25 @@ const ApiaFilter = React.memo(React.forwardRef(NoMemoApiaFilter));
|
|
|
3390
4290
|
|
|
3391
4291
|
const styles$4 = {};
|
|
3392
4292
|
|
|
3393
|
-
var __defProp$
|
|
3394
|
-
var __defProps$
|
|
3395
|
-
var __getOwnPropDescs$
|
|
3396
|
-
var __getOwnPropSymbols$
|
|
3397
|
-
var __hasOwnProp$
|
|
3398
|
-
var __propIsEnum$
|
|
3399
|
-
var __defNormalProp$
|
|
3400
|
-
var __spreadValues$
|
|
4293
|
+
var __defProp$x = Object.defineProperty;
|
|
4294
|
+
var __defProps$n = Object.defineProperties;
|
|
4295
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
4296
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
4297
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
4298
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
4299
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4300
|
+
var __spreadValues$x = (a, b) => {
|
|
3401
4301
|
for (var prop in b || (b = {}))
|
|
3402
|
-
if (__hasOwnProp$
|
|
3403
|
-
__defNormalProp$
|
|
3404
|
-
if (__getOwnPropSymbols$
|
|
3405
|
-
for (var prop of __getOwnPropSymbols$
|
|
3406
|
-
if (__propIsEnum$
|
|
3407
|
-
__defNormalProp$
|
|
4302
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
4303
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
4304
|
+
if (__getOwnPropSymbols$y)
|
|
4305
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
4306
|
+
if (__propIsEnum$y.call(b, prop))
|
|
4307
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
3408
4308
|
}
|
|
3409
4309
|
return a;
|
|
3410
4310
|
};
|
|
3411
|
-
var __spreadProps$
|
|
4311
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
3412
4312
|
injectStyles("layout.common.components.collapsiblePanel", styles$4);
|
|
3413
4313
|
const CollapsiblePanel = React__default.forwardRef(
|
|
3414
4314
|
({
|
|
@@ -3484,8 +4384,8 @@ const CollapsiblePanel = React__default.forwardRef(
|
|
|
3484
4384
|
};
|
|
3485
4385
|
}, [id, isCollapsed, onClose, onOpen, ref]);
|
|
3486
4386
|
return /* @__PURE__ */ jsxs(
|
|
3487
|
-
Box,
|
|
3488
|
-
__spreadProps$
|
|
4387
|
+
Box$1,
|
|
4388
|
+
__spreadProps$n(__spreadValues$x({
|
|
3489
4389
|
className: `collapsiblePanel ${className != null ? className : ""}`
|
|
3490
4390
|
}, getVariant("layout.common.components.collapsiblePanel")), {
|
|
3491
4391
|
ref: (el) => {
|
|
@@ -3494,10 +4394,10 @@ const CollapsiblePanel = React__default.forwardRef(
|
|
|
3494
4394
|
setRef(el);
|
|
3495
4395
|
},
|
|
3496
4396
|
children: [
|
|
3497
|
-
/* @__PURE__ */ jsxs(Box, { className: "collapsiblePanel__label", children: [
|
|
4397
|
+
/* @__PURE__ */ jsxs(Box$1, { className: "collapsiblePanel__label", children: [
|
|
3498
4398
|
/* @__PURE__ */ jsxs(
|
|
3499
4399
|
Button,
|
|
3500
|
-
__spreadProps$
|
|
4400
|
+
__spreadProps$n(__spreadValues$x({}, getVariant("inherit")), {
|
|
3501
4401
|
"aria-expanded": !isCollapsed,
|
|
3502
4402
|
onClick: (ev) => callOnOpen(true, ev),
|
|
3503
4403
|
type: "button",
|
|
@@ -3529,33 +4429,33 @@ const CollapsiblePanel = React__default.forwardRef(
|
|
|
3529
4429
|
);
|
|
3530
4430
|
CollapsiblePanel.displayName = "CollapsiblePanel";
|
|
3531
4431
|
|
|
3532
|
-
var __defProp$
|
|
3533
|
-
var __defProps$
|
|
3534
|
-
var __getOwnPropDescs$
|
|
3535
|
-
var __getOwnPropSymbols$
|
|
3536
|
-
var __hasOwnProp$
|
|
3537
|
-
var __propIsEnum$
|
|
3538
|
-
var __defNormalProp$
|
|
3539
|
-
var __spreadValues$
|
|
3540
|
-
for (var prop in b || (b = {}))
|
|
3541
|
-
if (__hasOwnProp$
|
|
3542
|
-
__defNormalProp$
|
|
3543
|
-
if (__getOwnPropSymbols$
|
|
3544
|
-
for (var prop of __getOwnPropSymbols$
|
|
3545
|
-
if (__propIsEnum$
|
|
3546
|
-
__defNormalProp$
|
|
4432
|
+
var __defProp$w = Object.defineProperty;
|
|
4433
|
+
var __defProps$m = Object.defineProperties;
|
|
4434
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
4435
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
4436
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
4437
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
4438
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4439
|
+
var __spreadValues$w = (a, b) => {
|
|
4440
|
+
for (var prop in b || (b = {}))
|
|
4441
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
4442
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
4443
|
+
if (__getOwnPropSymbols$x)
|
|
4444
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
4445
|
+
if (__propIsEnum$x.call(b, prop))
|
|
4446
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
3547
4447
|
}
|
|
3548
4448
|
return a;
|
|
3549
4449
|
};
|
|
3550
|
-
var __spreadProps$
|
|
4450
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
3551
4451
|
var __objRest$5 = (source, exclude) => {
|
|
3552
4452
|
var target = {};
|
|
3553
4453
|
for (var prop in source)
|
|
3554
|
-
if (__hasOwnProp$
|
|
4454
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3555
4455
|
target[prop] = source[prop];
|
|
3556
|
-
if (source != null && __getOwnPropSymbols$
|
|
3557
|
-
for (var prop of __getOwnPropSymbols$
|
|
3558
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4456
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
4457
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
4458
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
3559
4459
|
target[prop] = source[prop];
|
|
3560
4460
|
}
|
|
3561
4461
|
return target;
|
|
@@ -3567,7 +4467,7 @@ const AlertModal = ({ children, onClose, title }) => {
|
|
|
3567
4467
|
}), { hide } = _a, modalProps = __objRest$5(_a, ["hide"]);
|
|
3568
4468
|
return /* @__PURE__ */ jsx(
|
|
3569
4469
|
Modal,
|
|
3570
|
-
__spreadProps$
|
|
4470
|
+
__spreadProps$m(__spreadValues$w({}, modalProps), {
|
|
3571
4471
|
sx: useMemo(
|
|
3572
4472
|
() => ({
|
|
3573
4473
|
".modal__content .confirm__content": {
|
|
@@ -3593,33 +4493,33 @@ const AlertModal = ({ children, onClose, title }) => {
|
|
|
3593
4493
|
);
|
|
3594
4494
|
};
|
|
3595
4495
|
|
|
3596
|
-
var __defProp$
|
|
3597
|
-
var __defProps$
|
|
3598
|
-
var __getOwnPropDescs$
|
|
3599
|
-
var __getOwnPropSymbols$
|
|
3600
|
-
var __hasOwnProp$
|
|
3601
|
-
var __propIsEnum$
|
|
3602
|
-
var __defNormalProp$
|
|
3603
|
-
var __spreadValues$
|
|
4496
|
+
var __defProp$v = Object.defineProperty;
|
|
4497
|
+
var __defProps$l = Object.defineProperties;
|
|
4498
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
4499
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
4500
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
4501
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
4502
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4503
|
+
var __spreadValues$v = (a, b) => {
|
|
3604
4504
|
for (var prop in b || (b = {}))
|
|
3605
|
-
if (__hasOwnProp$
|
|
3606
|
-
__defNormalProp$
|
|
3607
|
-
if (__getOwnPropSymbols$
|
|
3608
|
-
for (var prop of __getOwnPropSymbols$
|
|
3609
|
-
if (__propIsEnum$
|
|
3610
|
-
__defNormalProp$
|
|
4505
|
+
if (__hasOwnProp$w.call(b, prop))
|
|
4506
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
4507
|
+
if (__getOwnPropSymbols$w)
|
|
4508
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
4509
|
+
if (__propIsEnum$w.call(b, prop))
|
|
4510
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
3611
4511
|
}
|
|
3612
4512
|
return a;
|
|
3613
4513
|
};
|
|
3614
|
-
var __spreadProps$
|
|
4514
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
3615
4515
|
var __objRest$4 = (source, exclude) => {
|
|
3616
4516
|
var target = {};
|
|
3617
4517
|
for (var prop in source)
|
|
3618
|
-
if (__hasOwnProp$
|
|
4518
|
+
if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3619
4519
|
target[prop] = source[prop];
|
|
3620
|
-
if (source != null && __getOwnPropSymbols$
|
|
3621
|
-
for (var prop of __getOwnPropSymbols$
|
|
3622
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4520
|
+
if (source != null && __getOwnPropSymbols$w)
|
|
4521
|
+
for (var prop of __getOwnPropSymbols$w(source)) {
|
|
4522
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
|
|
3623
4523
|
target[prop] = source[prop];
|
|
3624
4524
|
}
|
|
3625
4525
|
return target;
|
|
@@ -3653,46 +4553,46 @@ const ConfirmModal = (_a) => {
|
|
|
3653
4553
|
}, [hide]);
|
|
3654
4554
|
return /* @__PURE__ */ jsx(
|
|
3655
4555
|
Modal,
|
|
3656
|
-
__spreadProps$
|
|
4556
|
+
__spreadProps$l(__spreadValues$v({}, modalProps), {
|
|
3657
4557
|
initialFocusGetter: useCallback(
|
|
3658
4558
|
(current) => current.querySelector(".confirm__confirmButton"),
|
|
3659
4559
|
[]
|
|
3660
4560
|
),
|
|
3661
4561
|
title,
|
|
3662
|
-
children: /* @__PURE__ */ jsx(Confirm, __spreadProps$
|
|
4562
|
+
children: /* @__PURE__ */ jsx(Confirm, __spreadProps$l(__spreadValues$v({}, props), { onCancel: handleCancel, onConfirm: handleConfirm }))
|
|
3663
4563
|
})
|
|
3664
4564
|
);
|
|
3665
4565
|
};
|
|
3666
4566
|
|
|
3667
4567
|
const ListboxContext = createContext({});
|
|
3668
4568
|
|
|
3669
|
-
var __defProp$
|
|
3670
|
-
var __defProps$
|
|
3671
|
-
var __getOwnPropDescs$
|
|
3672
|
-
var __getOwnPropSymbols$
|
|
3673
|
-
var __hasOwnProp$
|
|
3674
|
-
var __propIsEnum$
|
|
3675
|
-
var __defNormalProp$
|
|
3676
|
-
var __spreadValues$
|
|
4569
|
+
var __defProp$u = Object.defineProperty;
|
|
4570
|
+
var __defProps$k = Object.defineProperties;
|
|
4571
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
4572
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
4573
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
4574
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
4575
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4576
|
+
var __spreadValues$u = (a, b) => {
|
|
3677
4577
|
for (var prop in b || (b = {}))
|
|
3678
|
-
if (__hasOwnProp$
|
|
3679
|
-
__defNormalProp$
|
|
3680
|
-
if (__getOwnPropSymbols$
|
|
3681
|
-
for (var prop of __getOwnPropSymbols$
|
|
3682
|
-
if (__propIsEnum$
|
|
3683
|
-
__defNormalProp$
|
|
4578
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
4579
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
4580
|
+
if (__getOwnPropSymbols$v)
|
|
4581
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
4582
|
+
if (__propIsEnum$v.call(b, prop))
|
|
4583
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
3684
4584
|
}
|
|
3685
4585
|
return a;
|
|
3686
4586
|
};
|
|
3687
|
-
var __spreadProps$
|
|
4587
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
3688
4588
|
var __objRest$3 = (source, exclude) => {
|
|
3689
4589
|
var target = {};
|
|
3690
4590
|
for (var prop in source)
|
|
3691
|
-
if (__hasOwnProp$
|
|
4591
|
+
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3692
4592
|
target[prop] = source[prop];
|
|
3693
|
-
if (source != null && __getOwnPropSymbols$
|
|
3694
|
-
for (var prop of __getOwnPropSymbols$
|
|
3695
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4593
|
+
if (source != null && __getOwnPropSymbols$v)
|
|
4594
|
+
for (var prop of __getOwnPropSymbols$v(source)) {
|
|
4595
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
|
|
3696
4596
|
target[prop] = source[prop];
|
|
3697
4597
|
}
|
|
3698
4598
|
return target;
|
|
@@ -3714,14 +4614,14 @@ const ListboxItem = memo(
|
|
|
3714
4614
|
((_a2 = domProps.className) == null ? void 0 : _a2.includes("separator")) && /* @__PURE__ */ jsx("li", { className: "separator" }),
|
|
3715
4615
|
/* @__PURE__ */ jsx(
|
|
3716
4616
|
"li",
|
|
3717
|
-
__spreadProps$
|
|
4617
|
+
__spreadProps$k(__spreadValues$u({}, domProps), {
|
|
3718
4618
|
className: `${(_c = (_b2 = domProps.className) == null ? void 0 : _b2.split(" ").filter((current) => current !== "separator").join(" ")) != null ? _c : ""} listbox__row`,
|
|
3719
4619
|
ref,
|
|
3720
4620
|
role: "option",
|
|
3721
4621
|
onDoubleClick: useCallback(
|
|
3722
4622
|
(ev) => {
|
|
3723
4623
|
ev.preventDefault();
|
|
3724
|
-
onDoubleClickNode == null ? void 0 : onDoubleClickNode(__spreadProps$
|
|
4624
|
+
onDoubleClickNode == null ? void 0 : onDoubleClickNode(__spreadProps$k(__spreadValues$u({}, ev), {
|
|
3725
4625
|
target: ev.target.closest(
|
|
3726
4626
|
'[role="option"]'
|
|
3727
4627
|
)
|
|
@@ -3731,7 +4631,7 @@ const ListboxItem = memo(
|
|
|
3731
4631
|
),
|
|
3732
4632
|
onMouseDown: useCallback(
|
|
3733
4633
|
(ev) => {
|
|
3734
|
-
onClickNode == null ? void 0 : onClickNode(__spreadProps$
|
|
4634
|
+
onClickNode == null ? void 0 : onClickNode(__spreadProps$k(__spreadValues$u({}, ev), {
|
|
3735
4635
|
target: ev.target.closest(
|
|
3736
4636
|
'[role="option"]'
|
|
3737
4637
|
)
|
|
@@ -3821,25 +4721,25 @@ shout_fn = function({ clear } = { clear: true }) {
|
|
|
3821
4721
|
}
|
|
3822
4722
|
};
|
|
3823
4723
|
|
|
3824
|
-
var __defProp$
|
|
3825
|
-
var __defProps$
|
|
3826
|
-
var __getOwnPropDescs$
|
|
3827
|
-
var __getOwnPropSymbols$
|
|
3828
|
-
var __hasOwnProp$
|
|
3829
|
-
var __propIsEnum$
|
|
3830
|
-
var __defNormalProp$
|
|
3831
|
-
var __spreadValues$
|
|
4724
|
+
var __defProp$t = Object.defineProperty;
|
|
4725
|
+
var __defProps$j = Object.defineProperties;
|
|
4726
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
4727
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
4728
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
4729
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
4730
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4731
|
+
var __spreadValues$t = (a, b) => {
|
|
3832
4732
|
for (var prop in b || (b = {}))
|
|
3833
|
-
if (__hasOwnProp$
|
|
3834
|
-
__defNormalProp$
|
|
3835
|
-
if (__getOwnPropSymbols$
|
|
3836
|
-
for (var prop of __getOwnPropSymbols$
|
|
3837
|
-
if (__propIsEnum$
|
|
3838
|
-
__defNormalProp$
|
|
4733
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
4734
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
4735
|
+
if (__getOwnPropSymbols$u)
|
|
4736
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
4737
|
+
if (__propIsEnum$u.call(b, prop))
|
|
4738
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
3839
4739
|
}
|
|
3840
4740
|
return a;
|
|
3841
4741
|
};
|
|
3842
|
-
var __spreadProps$
|
|
4742
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
3843
4743
|
const ListboxKeyhandler = ({ children, className }) => {
|
|
3844
4744
|
const {
|
|
3845
4745
|
listboxActions,
|
|
@@ -3882,8 +4782,8 @@ const ListboxKeyhandler = ({ children, className }) => {
|
|
|
3882
4782
|
[getState, id, onConfirmSelection]
|
|
3883
4783
|
);
|
|
3884
4784
|
return /* @__PURE__ */ jsx(
|
|
3885
|
-
Box,
|
|
3886
|
-
__spreadProps$
|
|
4785
|
+
Box$1,
|
|
4786
|
+
__spreadProps$j(__spreadValues$t({}, getVariant(variant)), {
|
|
3887
4787
|
className,
|
|
3888
4788
|
id,
|
|
3889
4789
|
onKeyDown: useCallback(
|
|
@@ -3895,9 +4795,9 @@ const ListboxKeyhandler = ({ children, className }) => {
|
|
|
3895
4795
|
"There is no cell on keydown event, it must be an error."
|
|
3896
4796
|
);
|
|
3897
4797
|
const state = getState();
|
|
3898
|
-
onPressKeyOnNode == null ? void 0 : onPressKeyOnNode(__spreadProps$
|
|
4798
|
+
onPressKeyOnNode == null ? void 0 : onPressKeyOnNode(__spreadProps$j(__spreadValues$t({}, ev), { target: cell, currentTarget: cell }));
|
|
3899
4799
|
if (ev.code === "Enter") {
|
|
3900
|
-
onPressEnterOnNode == null ? void 0 : onPressEnterOnNode(__spreadProps$
|
|
4800
|
+
onPressEnterOnNode == null ? void 0 : onPressEnterOnNode(__spreadProps$j(__spreadValues$t({}, ev), { target: cell, currentTarget: cell }));
|
|
3901
4801
|
}
|
|
3902
4802
|
if (ev.isDefaultPrevented() || ev.isPropagationStopped())
|
|
3903
4803
|
return;
|
|
@@ -3986,33 +4886,33 @@ const ListboxKeyhandler = ({ children, className }) => {
|
|
|
3986
4886
|
);
|
|
3987
4887
|
};
|
|
3988
4888
|
|
|
3989
|
-
var __defProp$
|
|
3990
|
-
var __defProps$
|
|
3991
|
-
var __getOwnPropDescs$
|
|
3992
|
-
var __getOwnPropSymbols$
|
|
3993
|
-
var __hasOwnProp$
|
|
3994
|
-
var __propIsEnum$
|
|
3995
|
-
var __defNormalProp$
|
|
3996
|
-
var __spreadValues$
|
|
4889
|
+
var __defProp$s = Object.defineProperty;
|
|
4890
|
+
var __defProps$i = Object.defineProperties;
|
|
4891
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
4892
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
4893
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
4894
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
4895
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4896
|
+
var __spreadValues$s = (a, b) => {
|
|
3997
4897
|
for (var prop in b || (b = {}))
|
|
3998
|
-
if (__hasOwnProp$
|
|
3999
|
-
__defNormalProp$
|
|
4000
|
-
if (__getOwnPropSymbols$
|
|
4001
|
-
for (var prop of __getOwnPropSymbols$
|
|
4002
|
-
if (__propIsEnum$
|
|
4003
|
-
__defNormalProp$
|
|
4898
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
4899
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
4900
|
+
if (__getOwnPropSymbols$t)
|
|
4901
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
4902
|
+
if (__propIsEnum$t.call(b, prop))
|
|
4903
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
4004
4904
|
}
|
|
4005
4905
|
return a;
|
|
4006
4906
|
};
|
|
4007
|
-
var __spreadProps$
|
|
4907
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
4008
4908
|
var __objRest$2 = (source, exclude) => {
|
|
4009
4909
|
var target = {};
|
|
4010
4910
|
for (var prop in source)
|
|
4011
|
-
if (__hasOwnProp$
|
|
4911
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4012
4912
|
target[prop] = source[prop];
|
|
4013
|
-
if (source != null && __getOwnPropSymbols$
|
|
4014
|
-
for (var prop of __getOwnPropSymbols$
|
|
4015
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4913
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
4914
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
4915
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
4016
4916
|
target[prop] = source[prop];
|
|
4017
4917
|
}
|
|
4018
4918
|
return target;
|
|
@@ -4046,8 +4946,8 @@ const Combobox = (_a) => {
|
|
|
4046
4946
|
}
|
|
4047
4947
|
),
|
|
4048
4948
|
/* @__PURE__ */ jsx(
|
|
4049
|
-
Box,
|
|
4050
|
-
__spreadProps$
|
|
4949
|
+
Box$1,
|
|
4950
|
+
__spreadProps$i(__spreadValues$s({
|
|
4051
4951
|
as: "ul",
|
|
4052
4952
|
id: `${id}__list__container`,
|
|
4053
4953
|
role: "listbox",
|
|
@@ -4064,25 +4964,25 @@ const Combobox = (_a) => {
|
|
|
4064
4964
|
] });
|
|
4065
4965
|
};
|
|
4066
4966
|
|
|
4067
|
-
var __defProp$
|
|
4068
|
-
var __defProps$
|
|
4069
|
-
var __getOwnPropDescs$
|
|
4070
|
-
var __getOwnPropSymbols$
|
|
4071
|
-
var __hasOwnProp$
|
|
4072
|
-
var __propIsEnum$
|
|
4073
|
-
var __defNormalProp$
|
|
4074
|
-
var __spreadValues$
|
|
4967
|
+
var __defProp$r = Object.defineProperty;
|
|
4968
|
+
var __defProps$h = Object.defineProperties;
|
|
4969
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
4970
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
4971
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
4972
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
4973
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4974
|
+
var __spreadValues$r = (a, b) => {
|
|
4075
4975
|
for (var prop in b || (b = {}))
|
|
4076
|
-
if (__hasOwnProp$
|
|
4077
|
-
__defNormalProp$
|
|
4078
|
-
if (__getOwnPropSymbols$
|
|
4079
|
-
for (var prop of __getOwnPropSymbols$
|
|
4080
|
-
if (__propIsEnum$
|
|
4081
|
-
__defNormalProp$
|
|
4976
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
4977
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
4978
|
+
if (__getOwnPropSymbols$s)
|
|
4979
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
4980
|
+
if (__propIsEnum$s.call(b, prop))
|
|
4981
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
4082
4982
|
}
|
|
4083
4983
|
return a;
|
|
4084
4984
|
};
|
|
4085
|
-
var __spreadProps$
|
|
4985
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
4086
4986
|
const styles$3 = {
|
|
4087
4987
|
"&:focus-within": {
|
|
4088
4988
|
".listbox__list": {
|
|
@@ -4114,7 +5014,7 @@ const styles$3 = {
|
|
|
4114
5014
|
whiteSpace: "nowrap",
|
|
4115
5015
|
textOverflow: "ellipsis",
|
|
4116
5016
|
"&:hover": (theme) => {
|
|
4117
|
-
return __spreadProps$
|
|
5017
|
+
return __spreadProps$h(__spreadValues$r({}, theme.palette.getOneState(
|
|
4118
5018
|
{ backgroundColor: "palette.background.paper" },
|
|
4119
5019
|
"hover"
|
|
4120
5020
|
)), {
|
|
@@ -4124,17 +5024,17 @@ const styles$3 = {
|
|
|
4124
5024
|
}
|
|
4125
5025
|
};
|
|
4126
5026
|
|
|
4127
|
-
var __getOwnPropSymbols$
|
|
4128
|
-
var __hasOwnProp$
|
|
4129
|
-
var __propIsEnum$
|
|
5027
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
5028
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
5029
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
4130
5030
|
var __objRest$1 = (source, exclude) => {
|
|
4131
5031
|
var target = {};
|
|
4132
5032
|
for (var prop in source)
|
|
4133
|
-
if (__hasOwnProp$
|
|
5033
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4134
5034
|
target[prop] = source[prop];
|
|
4135
|
-
if (source != null && __getOwnPropSymbols$
|
|
4136
|
-
for (var prop of __getOwnPropSymbols$
|
|
4137
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5035
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
5036
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
5037
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
4138
5038
|
target[prop] = source[prop];
|
|
4139
5039
|
}
|
|
4140
5040
|
return target;
|
|
@@ -4600,25 +5500,25 @@ function useListboxContextValue(props) {
|
|
|
4600
5500
|
return useMemo(() => props, [...Object.values(props)]);
|
|
4601
5501
|
}
|
|
4602
5502
|
|
|
4603
|
-
var __defProp$
|
|
4604
|
-
var __defProps$
|
|
4605
|
-
var __getOwnPropDescs$
|
|
4606
|
-
var __getOwnPropSymbols$
|
|
4607
|
-
var __hasOwnProp$
|
|
4608
|
-
var __propIsEnum$
|
|
4609
|
-
var __defNormalProp$
|
|
4610
|
-
var __spreadValues$
|
|
5503
|
+
var __defProp$q = Object.defineProperty;
|
|
5504
|
+
var __defProps$g = Object.defineProperties;
|
|
5505
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
5506
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
5507
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
5508
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
5509
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5510
|
+
var __spreadValues$q = (a, b) => {
|
|
4611
5511
|
for (var prop in b || (b = {}))
|
|
4612
|
-
if (__hasOwnProp$
|
|
4613
|
-
__defNormalProp$
|
|
4614
|
-
if (__getOwnPropSymbols$
|
|
4615
|
-
for (var prop of __getOwnPropSymbols$
|
|
4616
|
-
if (__propIsEnum$
|
|
4617
|
-
__defNormalProp$
|
|
5512
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
5513
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
5514
|
+
if (__getOwnPropSymbols$q)
|
|
5515
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
5516
|
+
if (__propIsEnum$q.call(b, prop))
|
|
5517
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
4618
5518
|
}
|
|
4619
5519
|
return a;
|
|
4620
5520
|
};
|
|
4621
|
-
var __spreadProps$
|
|
5521
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
4622
5522
|
const NoMemoListbox = makeStyledComponent(
|
|
4623
5523
|
"Listbox",
|
|
4624
5524
|
"layout.components.listbox",
|
|
@@ -4650,12 +5550,12 @@ const NoMemoListbox = makeStyledComponent(
|
|
|
4650
5550
|
});
|
|
4651
5551
|
return /* @__PURE__ */ jsx(ListboxContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
4652
5552
|
ListboxKeyhandler,
|
|
4653
|
-
__spreadProps$
|
|
5553
|
+
__spreadProps$g(__spreadValues$q({
|
|
4654
5554
|
className: `listbox ${props.showSearchbox ? "withSearchbox" : ""} ${(_a = props.className) != null ? _a : ""}`
|
|
4655
5555
|
}, props.ulProps), {
|
|
4656
|
-
children: props.showSearchbox ? /* @__PURE__ */ jsx(Combobox, __spreadProps$
|
|
4657
|
-
Box,
|
|
4658
|
-
__spreadProps$
|
|
5556
|
+
children: props.showSearchbox ? /* @__PURE__ */ jsx(Combobox, __spreadProps$g(__spreadValues$q({}, props.ulProps), { children: indexedChildren })) : /* @__PURE__ */ jsx(
|
|
5557
|
+
Box$1,
|
|
5558
|
+
__spreadProps$g(__spreadValues$q({
|
|
4659
5559
|
ref,
|
|
4660
5560
|
as: "ul",
|
|
4661
5561
|
role: "listbox",
|
|
@@ -4674,25 +5574,25 @@ const NoMemoListbox = makeStyledComponent(
|
|
|
4674
5574
|
);
|
|
4675
5575
|
const Listbox = memo(NoMemoListbox);
|
|
4676
5576
|
|
|
4677
|
-
var __defProp$
|
|
4678
|
-
var __defProps$
|
|
4679
|
-
var __getOwnPropDescs$
|
|
4680
|
-
var __getOwnPropSymbols$
|
|
4681
|
-
var __hasOwnProp$
|
|
4682
|
-
var __propIsEnum$
|
|
4683
|
-
var __defNormalProp$
|
|
4684
|
-
var __spreadValues$
|
|
5577
|
+
var __defProp$p = Object.defineProperty;
|
|
5578
|
+
var __defProps$f = Object.defineProperties;
|
|
5579
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
5580
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
5581
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
5582
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
5583
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5584
|
+
var __spreadValues$p = (a, b) => {
|
|
4685
5585
|
for (var prop in b || (b = {}))
|
|
4686
|
-
if (__hasOwnProp$
|
|
4687
|
-
__defNormalProp$
|
|
4688
|
-
if (__getOwnPropSymbols$
|
|
4689
|
-
for (var prop of __getOwnPropSymbols$
|
|
4690
|
-
if (__propIsEnum$
|
|
4691
|
-
__defNormalProp$
|
|
5586
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
5587
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
5588
|
+
if (__getOwnPropSymbols$p)
|
|
5589
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
5590
|
+
if (__propIsEnum$p.call(b, prop))
|
|
5591
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
4692
5592
|
}
|
|
4693
5593
|
return a;
|
|
4694
5594
|
};
|
|
4695
|
-
var __spreadProps$
|
|
5595
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
4696
5596
|
const ProgressBar = ({
|
|
4697
5597
|
id,
|
|
4698
5598
|
progress = 0,
|
|
@@ -4712,7 +5612,7 @@ const ProgressBar = ({
|
|
|
4712
5612
|
),
|
|
4713
5613
|
/* @__PURE__ */ jsx(
|
|
4714
5614
|
Progress,
|
|
4715
|
-
__spreadProps$
|
|
5615
|
+
__spreadProps$f(__spreadValues$p({
|
|
4716
5616
|
id,
|
|
4717
5617
|
max: 100,
|
|
4718
5618
|
value: progress
|
|
@@ -4726,25 +5626,25 @@ const ProgressBar = ({
|
|
|
4726
5626
|
] });
|
|
4727
5627
|
};
|
|
4728
5628
|
|
|
4729
|
-
var __defProp$
|
|
4730
|
-
var __defProps$
|
|
4731
|
-
var __getOwnPropDescs$
|
|
4732
|
-
var __getOwnPropSymbols$
|
|
4733
|
-
var __hasOwnProp$
|
|
4734
|
-
var __propIsEnum$
|
|
4735
|
-
var __defNormalProp$
|
|
4736
|
-
var __spreadValues$
|
|
5629
|
+
var __defProp$o = Object.defineProperty;
|
|
5630
|
+
var __defProps$e = Object.defineProperties;
|
|
5631
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
5632
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
5633
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
5634
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
5635
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5636
|
+
var __spreadValues$o = (a, b) => {
|
|
4737
5637
|
for (var prop in b || (b = {}))
|
|
4738
|
-
if (__hasOwnProp$
|
|
4739
|
-
__defNormalProp$
|
|
4740
|
-
if (__getOwnPropSymbols$
|
|
4741
|
-
for (var prop of __getOwnPropSymbols$
|
|
4742
|
-
if (__propIsEnum$
|
|
4743
|
-
__defNormalProp$
|
|
5638
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
5639
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
5640
|
+
if (__getOwnPropSymbols$o)
|
|
5641
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
5642
|
+
if (__propIsEnum$o.call(b, prop))
|
|
5643
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
4744
5644
|
}
|
|
4745
5645
|
return a;
|
|
4746
5646
|
};
|
|
4747
|
-
var __spreadProps$
|
|
5647
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
4748
5648
|
const styles$2 = {
|
|
4749
5649
|
height: "iconmd",
|
|
4750
5650
|
width: "iconmd",
|
|
@@ -4757,7 +5657,7 @@ const LoaderSpinner = makeStyledComponent(
|
|
|
4757
5657
|
({ className }) => {
|
|
4758
5658
|
return /* @__PURE__ */ jsx(
|
|
4759
5659
|
Spinner,
|
|
4760
|
-
__spreadProps$
|
|
5660
|
+
__spreadProps$e(__spreadValues$o({}, getVariant("layout.common.components.loaderSpinner")), {
|
|
4761
5661
|
className
|
|
4762
5662
|
})
|
|
4763
5663
|
);
|
|
@@ -4944,23 +5844,23 @@ const operations = {
|
|
|
4944
5844
|
recalculateIndexByResize
|
|
4945
5845
|
};
|
|
4946
5846
|
|
|
4947
|
-
var __defProp$
|
|
4948
|
-
var __getOwnPropSymbols$
|
|
4949
|
-
var __hasOwnProp$
|
|
4950
|
-
var __propIsEnum$
|
|
4951
|
-
var __defNormalProp$
|
|
4952
|
-
var __spreadValues$
|
|
5847
|
+
var __defProp$n = Object.defineProperty;
|
|
5848
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
5849
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
5850
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
5851
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5852
|
+
var __spreadValues$n = (a, b) => {
|
|
4953
5853
|
for (var prop in b || (b = {}))
|
|
4954
|
-
if (__hasOwnProp$
|
|
4955
|
-
__defNormalProp$
|
|
4956
|
-
if (__getOwnPropSymbols$
|
|
4957
|
-
for (var prop of __getOwnPropSymbols$
|
|
4958
|
-
if (__propIsEnum$
|
|
4959
|
-
__defNormalProp$
|
|
5854
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
5855
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
5856
|
+
if (__getOwnPropSymbols$n)
|
|
5857
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
5858
|
+
if (__propIsEnum$n.call(b, prop))
|
|
5859
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
4960
5860
|
}
|
|
4961
5861
|
return a;
|
|
4962
5862
|
};
|
|
4963
|
-
const getInitialState = (props) => __spreadValues$
|
|
5863
|
+
const getInitialState = (props) => __spreadValues$n({
|
|
4964
5864
|
focusedColumn: 1,
|
|
4965
5865
|
focusedRow: 1,
|
|
4966
5866
|
focusedId: 0
|
|
@@ -5012,19 +5912,19 @@ const useStore = ({
|
|
|
5012
5912
|
];
|
|
5013
5913
|
};
|
|
5014
5914
|
|
|
5015
|
-
var __defProp$
|
|
5016
|
-
var __getOwnPropSymbols$
|
|
5017
|
-
var __hasOwnProp$
|
|
5018
|
-
var __propIsEnum$
|
|
5019
|
-
var __defNormalProp$
|
|
5020
|
-
var __spreadValues$
|
|
5915
|
+
var __defProp$m = Object.defineProperty;
|
|
5916
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
5917
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
5918
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
5919
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5920
|
+
var __spreadValues$m = (a, b) => {
|
|
5021
5921
|
for (var prop in b || (b = {}))
|
|
5022
|
-
if (__hasOwnProp$
|
|
5023
|
-
__defNormalProp$
|
|
5024
|
-
if (__getOwnPropSymbols$
|
|
5025
|
-
for (var prop of __getOwnPropSymbols$
|
|
5026
|
-
if (__propIsEnum$
|
|
5027
|
-
__defNormalProp$
|
|
5922
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
5923
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
5924
|
+
if (__getOwnPropSymbols$m)
|
|
5925
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
5926
|
+
if (__propIsEnum$m.call(b, prop))
|
|
5927
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
5028
5928
|
}
|
|
5029
5929
|
return a;
|
|
5030
5930
|
};
|
|
@@ -5037,28 +5937,28 @@ const OpenModal = (props) => {
|
|
|
5037
5937
|
if (previousOpenProp.current !== props.isOpen && !props.isOpen) {
|
|
5038
5938
|
modalProps.hide();
|
|
5039
5939
|
}
|
|
5040
|
-
return /* @__PURE__ */ jsx(Modal, __spreadValues$
|
|
5940
|
+
return /* @__PURE__ */ jsx(Modal, __spreadValues$m(__spreadValues$m({}, props), modalProps));
|
|
5041
5941
|
};
|
|
5042
5942
|
|
|
5043
|
-
var __defProp$
|
|
5044
|
-
var __defProps$
|
|
5045
|
-
var __getOwnPropDescs$
|
|
5046
|
-
var __getOwnPropSymbols$
|
|
5047
|
-
var __hasOwnProp$
|
|
5048
|
-
var __propIsEnum$
|
|
5049
|
-
var __defNormalProp$
|
|
5050
|
-
var __spreadValues$
|
|
5943
|
+
var __defProp$l = Object.defineProperty;
|
|
5944
|
+
var __defProps$d = Object.defineProperties;
|
|
5945
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
5946
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
5947
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
5948
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
5949
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5950
|
+
var __spreadValues$l = (a, b) => {
|
|
5051
5951
|
for (var prop in b || (b = {}))
|
|
5052
|
-
if (__hasOwnProp$
|
|
5053
|
-
__defNormalProp$
|
|
5054
|
-
if (__getOwnPropSymbols$
|
|
5055
|
-
for (var prop of __getOwnPropSymbols$
|
|
5056
|
-
if (__propIsEnum$
|
|
5057
|
-
__defNormalProp$
|
|
5952
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
5953
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
5954
|
+
if (__getOwnPropSymbols$l)
|
|
5955
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
5956
|
+
if (__propIsEnum$l.call(b, prop))
|
|
5957
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
5058
5958
|
}
|
|
5059
5959
|
return a;
|
|
5060
5960
|
};
|
|
5061
|
-
var __spreadProps$
|
|
5961
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
5062
5962
|
var __accessCheck$6 = (obj, member, msg) => {
|
|
5063
5963
|
if (!member.has(obj))
|
|
5064
5964
|
throw TypeError("Cannot " + msg);
|
|
@@ -5107,7 +6007,7 @@ class ApiaUtilModals extends EventEmitter {
|
|
|
5107
6007
|
const u1 = this.on("open", (ev) => {
|
|
5108
6008
|
setModals((current) => [
|
|
5109
6009
|
...current,
|
|
5110
|
-
__spreadProps$
|
|
6010
|
+
__spreadProps$d(__spreadValues$l({}, ev), {
|
|
5111
6011
|
isOpen: true,
|
|
5112
6012
|
onExited: () => {
|
|
5113
6013
|
var _a;
|
|
@@ -5121,13 +6021,13 @@ class ApiaUtilModals extends EventEmitter {
|
|
|
5121
6021
|
});
|
|
5122
6022
|
const u2 = this.on("closeAll", () => {
|
|
5123
6023
|
setModals(
|
|
5124
|
-
(current) => current.map((modal) => __spreadProps$
|
|
6024
|
+
(current) => current.map((modal) => __spreadProps$d(__spreadValues$l({}, modal), { isOpen: false }))
|
|
5125
6025
|
);
|
|
5126
6026
|
});
|
|
5127
6027
|
const u3 = this.on("close", (modalId) => {
|
|
5128
6028
|
setModals(
|
|
5129
6029
|
(current) => current.map(
|
|
5130
|
-
(modal) => modal.id === modalId ? __spreadProps$
|
|
6030
|
+
(modal) => modal.id === modalId ? __spreadProps$d(__spreadValues$l({}, modal), { isOpen: false }) : modal
|
|
5131
6031
|
)
|
|
5132
6032
|
);
|
|
5133
6033
|
});
|
|
@@ -5141,7 +6041,7 @@ class ApiaUtilModals extends EventEmitter {
|
|
|
5141
6041
|
});
|
|
5142
6042
|
this.Component = () => {
|
|
5143
6043
|
const modals = __privateGet$5(this, _useModalsList).call(this);
|
|
5144
|
-
return /* @__PURE__ */ jsx(Fragment, { children: modals.map((current) => /* @__PURE__ */ jsx(OpenModal, __spreadValues$
|
|
6044
|
+
return /* @__PURE__ */ jsx(Fragment, { children: modals.map((current) => /* @__PURE__ */ jsx(OpenModal, __spreadValues$l({}, current), current.id)) });
|
|
5145
6045
|
};
|
|
5146
6046
|
document.addEventListener("openModal", (event) => {
|
|
5147
6047
|
const cevent = event;
|
|
@@ -5151,32 +6051,32 @@ class ApiaUtilModals extends EventEmitter {
|
|
|
5151
6051
|
open(props) {
|
|
5152
6052
|
var _a;
|
|
5153
6053
|
const id = (_a = props.id) != null ? _a : `modal_${__privateWrapper$2(this, _maxId$1)._++}`;
|
|
5154
|
-
this.emit("open", __spreadProps$
|
|
6054
|
+
this.emit("open", __spreadProps$d(__spreadValues$l({}, props), { id }));
|
|
5155
6055
|
return new ApiaUtilModalHandler(id, this);
|
|
5156
6056
|
}
|
|
5157
6057
|
}
|
|
5158
6058
|
_maxId$1 = new WeakMap();
|
|
5159
6059
|
_useModalsList = new WeakMap();
|
|
5160
6060
|
|
|
5161
|
-
var __defProp$
|
|
5162
|
-
var __defProps$
|
|
5163
|
-
var __getOwnPropDescs$
|
|
5164
|
-
var __getOwnPropSymbols$
|
|
5165
|
-
var __hasOwnProp$
|
|
5166
|
-
var __propIsEnum$
|
|
5167
|
-
var __defNormalProp$
|
|
5168
|
-
var __spreadValues$
|
|
6061
|
+
var __defProp$k = Object.defineProperty;
|
|
6062
|
+
var __defProps$c = Object.defineProperties;
|
|
6063
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
6064
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
6065
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
6066
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
6067
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6068
|
+
var __spreadValues$k = (a, b) => {
|
|
5169
6069
|
for (var prop in b || (b = {}))
|
|
5170
|
-
if (__hasOwnProp$
|
|
5171
|
-
__defNormalProp$
|
|
5172
|
-
if (__getOwnPropSymbols$
|
|
5173
|
-
for (var prop of __getOwnPropSymbols$
|
|
5174
|
-
if (__propIsEnum$
|
|
5175
|
-
__defNormalProp$
|
|
6070
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
6071
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
6072
|
+
if (__getOwnPropSymbols$k)
|
|
6073
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
6074
|
+
if (__propIsEnum$k.call(b, prop))
|
|
6075
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
5176
6076
|
}
|
|
5177
6077
|
return a;
|
|
5178
6078
|
};
|
|
5179
|
-
var __spreadProps$
|
|
6079
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
5180
6080
|
class ApiaUtilNotifications {
|
|
5181
6081
|
constructor() {
|
|
5182
6082
|
this.close = (id) => {
|
|
@@ -5187,7 +6087,7 @@ class ApiaUtilNotifications {
|
|
|
5187
6087
|
};
|
|
5188
6088
|
this.notify = (notification) => {
|
|
5189
6089
|
var _a;
|
|
5190
|
-
defaultNotifier.notify(__spreadProps$
|
|
6090
|
+
defaultNotifier.notify(__spreadProps$c(__spreadValues$k({}, notification), {
|
|
5191
6091
|
type: (_a = notification.type) != null ? _a : "warning"
|
|
5192
6092
|
}));
|
|
5193
6093
|
};
|
|
@@ -5284,25 +6184,25 @@ class ApiaUtilTabsController {
|
|
|
5284
6184
|
}
|
|
5285
6185
|
}
|
|
5286
6186
|
|
|
5287
|
-
var __defProp$
|
|
5288
|
-
var __defProps$
|
|
5289
|
-
var __getOwnPropDescs$
|
|
5290
|
-
var __getOwnPropSymbols$
|
|
5291
|
-
var __hasOwnProp$
|
|
5292
|
-
var __propIsEnum$
|
|
5293
|
-
var __defNormalProp$
|
|
5294
|
-
var __spreadValues$
|
|
6187
|
+
var __defProp$j = Object.defineProperty;
|
|
6188
|
+
var __defProps$b = Object.defineProperties;
|
|
6189
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
6190
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
6191
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
6192
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
6193
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6194
|
+
var __spreadValues$j = (a, b) => {
|
|
5295
6195
|
for (var prop in b || (b = {}))
|
|
5296
|
-
if (__hasOwnProp$
|
|
5297
|
-
__defNormalProp$
|
|
5298
|
-
if (__getOwnPropSymbols$
|
|
5299
|
-
for (var prop of __getOwnPropSymbols$
|
|
5300
|
-
if (__propIsEnum$
|
|
5301
|
-
__defNormalProp$
|
|
6196
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
6197
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
6198
|
+
if (__getOwnPropSymbols$j)
|
|
6199
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
6200
|
+
if (__propIsEnum$j.call(b, prop))
|
|
6201
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
5302
6202
|
}
|
|
5303
6203
|
return a;
|
|
5304
6204
|
};
|
|
5305
|
-
var __spreadProps$
|
|
6205
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
5306
6206
|
var __accessCheck$5 = (obj, member, msg) => {
|
|
5307
6207
|
if (!member.has(obj))
|
|
5308
6208
|
throw TypeError("Cannot " + msg);
|
|
@@ -5361,10 +6261,10 @@ class ApiaUtilDialogs extends EventEmitter {
|
|
|
5361
6261
|
[]
|
|
5362
6262
|
);
|
|
5363
6263
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5364
|
-
alertsDialogs.map((current) => /* @__PURE__ */ createElement(AlertModal, __spreadProps$
|
|
6264
|
+
alertsDialogs.map((current) => /* @__PURE__ */ createElement(AlertModal, __spreadProps$b(__spreadValues$j({}, current), { key: current.id }))),
|
|
5365
6265
|
confirmDialogs.map((current) => /* @__PURE__ */ createElement(
|
|
5366
6266
|
ConfirmModal,
|
|
5367
|
-
__spreadProps$
|
|
6267
|
+
__spreadProps$b(__spreadValues$j({}, current), {
|
|
5368
6268
|
key: current.id,
|
|
5369
6269
|
onCancel: () => {
|
|
5370
6270
|
var _a;
|
|
@@ -5383,7 +6283,7 @@ class ApiaUtilDialogs extends EventEmitter {
|
|
|
5383
6283
|
}
|
|
5384
6284
|
alert(props) {
|
|
5385
6285
|
return new Promise((resolve) => {
|
|
5386
|
-
this.emit("alert", __spreadProps$
|
|
6286
|
+
this.emit("alert", __spreadProps$b(__spreadValues$j({}, props), {
|
|
5387
6287
|
onClose: () => resolve(),
|
|
5388
6288
|
id: `confirm${__privateWrapper$1(this, _maxIdAlert)._++}`
|
|
5389
6289
|
}));
|
|
@@ -5391,7 +6291,7 @@ class ApiaUtilDialogs extends EventEmitter {
|
|
|
5391
6291
|
}
|
|
5392
6292
|
confirm(props) {
|
|
5393
6293
|
return new Promise((resolve) => {
|
|
5394
|
-
this.emit("confirm", __spreadProps$
|
|
6294
|
+
this.emit("confirm", __spreadProps$b(__spreadValues$j({}, props), {
|
|
5395
6295
|
id: `confirm${__privateWrapper$1(this, _maxIdConfirm)._++}`,
|
|
5396
6296
|
onCancel: () => resolve(false),
|
|
5397
6297
|
onConfirm: () => resolve(true)
|
|
@@ -5476,25 +6376,25 @@ class ApiaUtilTooltip {
|
|
|
5476
6376
|
}
|
|
5477
6377
|
}
|
|
5478
6378
|
|
|
5479
|
-
var __defProp$
|
|
5480
|
-
var __defProps$
|
|
5481
|
-
var __getOwnPropDescs$
|
|
5482
|
-
var __getOwnPropSymbols$
|
|
5483
|
-
var __hasOwnProp$
|
|
5484
|
-
var __propIsEnum$
|
|
5485
|
-
var __defNormalProp$
|
|
5486
|
-
var __spreadValues$
|
|
6379
|
+
var __defProp$i = Object.defineProperty;
|
|
6380
|
+
var __defProps$a = Object.defineProperties;
|
|
6381
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
6382
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
6383
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
6384
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
6385
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6386
|
+
var __spreadValues$i = (a, b) => {
|
|
5487
6387
|
for (var prop in b || (b = {}))
|
|
5488
|
-
if (__hasOwnProp$
|
|
5489
|
-
__defNormalProp$
|
|
5490
|
-
if (__getOwnPropSymbols$
|
|
5491
|
-
for (var prop of __getOwnPropSymbols$
|
|
5492
|
-
if (__propIsEnum$
|
|
5493
|
-
__defNormalProp$
|
|
6388
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
6389
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
6390
|
+
if (__getOwnPropSymbols$i)
|
|
6391
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
6392
|
+
if (__propIsEnum$i.call(b, prop))
|
|
6393
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
5494
6394
|
}
|
|
5495
6395
|
return a;
|
|
5496
6396
|
};
|
|
5497
|
-
var __spreadProps$
|
|
6397
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
5498
6398
|
var __accessCheck$4 = (obj, member, msg) => {
|
|
5499
6399
|
if (!member.has(obj))
|
|
5500
6400
|
throw TypeError("Cannot " + msg);
|
|
@@ -5531,7 +6431,7 @@ class AutomaticTooltip {
|
|
|
5531
6431
|
__privateSet$2(this, _tooltipTimeout, setTimeout(() => {
|
|
5532
6432
|
var _a2;
|
|
5533
6433
|
if ((_a2 = __privateGet$3(this, _tooltip)) == null ? void 0 : _a2.children)
|
|
5534
|
-
new ApiaUtil().tooltips.open(__spreadProps$
|
|
6434
|
+
new ApiaUtil().tooltips.open(__spreadProps$a(__spreadValues$i({
|
|
5535
6435
|
closeOnMouseLeaveTooltip: true,
|
|
5536
6436
|
closeOnEscape: true,
|
|
5537
6437
|
closeOnScrollOut: true
|
|
@@ -5842,25 +6742,25 @@ function useHandlers({
|
|
|
5842
6742
|
};
|
|
5843
6743
|
}
|
|
5844
6744
|
|
|
5845
|
-
var __defProp$
|
|
5846
|
-
var __defProps$
|
|
5847
|
-
var __getOwnPropDescs$
|
|
5848
|
-
var __getOwnPropSymbols$
|
|
5849
|
-
var __hasOwnProp$
|
|
5850
|
-
var __propIsEnum$
|
|
5851
|
-
var __defNormalProp$
|
|
5852
|
-
var __spreadValues$
|
|
6745
|
+
var __defProp$h = Object.defineProperty;
|
|
6746
|
+
var __defProps$9 = Object.defineProperties;
|
|
6747
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
6748
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
6749
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
6750
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
6751
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6752
|
+
var __spreadValues$h = (a, b) => {
|
|
5853
6753
|
for (var prop in b || (b = {}))
|
|
5854
|
-
if (__hasOwnProp$
|
|
5855
|
-
__defNormalProp$
|
|
5856
|
-
if (__getOwnPropSymbols$
|
|
5857
|
-
for (var prop of __getOwnPropSymbols$
|
|
5858
|
-
if (__propIsEnum$
|
|
5859
|
-
__defNormalProp$
|
|
6754
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
6755
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
6756
|
+
if (__getOwnPropSymbols$h)
|
|
6757
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
6758
|
+
if (__propIsEnum$h.call(b, prop))
|
|
6759
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
5860
6760
|
}
|
|
5861
6761
|
return a;
|
|
5862
6762
|
};
|
|
5863
|
-
var __spreadProps$
|
|
6763
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
5864
6764
|
const Tooltip = ({
|
|
5865
6765
|
anchorPoint,
|
|
5866
6766
|
attachToElement,
|
|
@@ -5891,7 +6791,7 @@ const Tooltip = ({
|
|
|
5891
6791
|
preferredOrientationY,
|
|
5892
6792
|
preferredSize
|
|
5893
6793
|
});
|
|
5894
|
-
const sx = __spreadValues$
|
|
6794
|
+
const sx = __spreadValues$h({
|
|
5895
6795
|
position: "fixed"
|
|
5896
6796
|
}, calculatedPosition);
|
|
5897
6797
|
const { handleOnClick } = useHandlers({
|
|
@@ -5905,8 +6805,8 @@ const Tooltip = ({
|
|
|
5905
6805
|
onClose
|
|
5906
6806
|
});
|
|
5907
6807
|
return /* @__PURE__ */ jsx(
|
|
5908
|
-
Box,
|
|
5909
|
-
__spreadProps$
|
|
6808
|
+
Box$1,
|
|
6809
|
+
__spreadProps$9(__spreadValues$h({
|
|
5910
6810
|
className: `tooltip__wrapper ${className != null ? className : ""}`
|
|
5911
6811
|
}, getVariant(variant)), {
|
|
5912
6812
|
sx,
|
|
@@ -5916,25 +6816,25 @@ const Tooltip = ({
|
|
|
5916
6816
|
);
|
|
5917
6817
|
};
|
|
5918
6818
|
|
|
5919
|
-
var __defProp$
|
|
5920
|
-
var __defProps$
|
|
5921
|
-
var __getOwnPropDescs$
|
|
5922
|
-
var __getOwnPropSymbols$
|
|
5923
|
-
var __hasOwnProp$
|
|
5924
|
-
var __propIsEnum$
|
|
5925
|
-
var __defNormalProp$
|
|
5926
|
-
var __spreadValues$
|
|
6819
|
+
var __defProp$g = Object.defineProperty;
|
|
6820
|
+
var __defProps$8 = Object.defineProperties;
|
|
6821
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
6822
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
6823
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
6824
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
6825
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6826
|
+
var __spreadValues$g = (a, b) => {
|
|
5927
6827
|
for (var prop in b || (b = {}))
|
|
5928
|
-
if (__hasOwnProp$
|
|
5929
|
-
__defNormalProp$
|
|
5930
|
-
if (__getOwnPropSymbols$
|
|
5931
|
-
for (var prop of __getOwnPropSymbols$
|
|
5932
|
-
if (__propIsEnum$
|
|
5933
|
-
__defNormalProp$
|
|
6828
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
6829
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
6830
|
+
if (__getOwnPropSymbols$g)
|
|
6831
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
6832
|
+
if (__propIsEnum$g.call(b, prop))
|
|
6833
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
5934
6834
|
}
|
|
5935
6835
|
return a;
|
|
5936
6836
|
};
|
|
5937
|
-
var __spreadProps$
|
|
6837
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
5938
6838
|
var __accessCheck$3 = (obj, member, msg) => {
|
|
5939
6839
|
if (!member.has(obj))
|
|
5940
6840
|
throw TypeError("Cannot " + msg);
|
|
@@ -6001,7 +6901,7 @@ class ApiaUtilTooltips extends EventEmitter {
|
|
|
6001
6901
|
});
|
|
6002
6902
|
return /* @__PURE__ */ jsx(Fragment, { children: tooltips.map((current) => /* @__PURE__ */ createElement(
|
|
6003
6903
|
Tooltip,
|
|
6004
|
-
__spreadProps$
|
|
6904
|
+
__spreadProps$8(__spreadValues$g({}, current.props), {
|
|
6005
6905
|
onClose: current.close.bind(current),
|
|
6006
6906
|
key: current.id
|
|
6007
6907
|
})
|
|
@@ -6019,25 +6919,25 @@ class ApiaUtilTooltips extends EventEmitter {
|
|
|
6019
6919
|
}
|
|
6020
6920
|
_shoutChangedList = new WeakMap();
|
|
6021
6921
|
|
|
6022
|
-
var __defProp$
|
|
6023
|
-
var __defProps$
|
|
6024
|
-
var __getOwnPropDescs$
|
|
6025
|
-
var __getOwnPropSymbols$
|
|
6026
|
-
var __hasOwnProp$
|
|
6027
|
-
var __propIsEnum$
|
|
6028
|
-
var __defNormalProp$
|
|
6029
|
-
var __spreadValues$
|
|
6922
|
+
var __defProp$f = Object.defineProperty;
|
|
6923
|
+
var __defProps$7 = Object.defineProperties;
|
|
6924
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
6925
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
6926
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
6927
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
6928
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6929
|
+
var __spreadValues$f = (a, b) => {
|
|
6030
6930
|
for (var prop in b || (b = {}))
|
|
6031
|
-
if (__hasOwnProp$
|
|
6032
|
-
__defNormalProp$
|
|
6033
|
-
if (__getOwnPropSymbols$
|
|
6034
|
-
for (var prop of __getOwnPropSymbols$
|
|
6035
|
-
if (__propIsEnum$
|
|
6036
|
-
__defNormalProp$
|
|
6931
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
6932
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
6933
|
+
if (__getOwnPropSymbols$f)
|
|
6934
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
6935
|
+
if (__propIsEnum$f.call(b, prop))
|
|
6936
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
6037
6937
|
}
|
|
6038
6938
|
return a;
|
|
6039
6939
|
};
|
|
6040
|
-
var __spreadProps$
|
|
6940
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
6041
6941
|
var __accessCheck$2 = (obj, member, msg) => {
|
|
6042
6942
|
if (!member.has(obj))
|
|
6043
6943
|
throw TypeError("Cannot " + msg);
|
|
@@ -6103,14 +7003,14 @@ class ApiaUtilMenu extends EventEmitter {
|
|
|
6103
7003
|
if (isSubmenu(current)) {
|
|
6104
7004
|
return /* @__PURE__ */ jsx(SubMenu, { label: current.label, children: __privateGet$1(this, _RenderMenu).call(this, current) }, `submenu${__privateWrapper(this, _maxId)._++}`);
|
|
6105
7005
|
}
|
|
6106
|
-
return /* @__PURE__ */ createElement(MenuItem, __spreadProps$
|
|
7006
|
+
return /* @__PURE__ */ createElement(MenuItem, __spreadProps$7(__spreadValues$f({}, current), { key: current.key }));
|
|
6107
7007
|
}) });
|
|
6108
7008
|
});
|
|
6109
7009
|
this.Component = () => {
|
|
6110
7010
|
const [isOpen, close] = __privateGet$1(this, _hooks).useIsOpen();
|
|
6111
7011
|
return /* @__PURE__ */ jsx(
|
|
6112
7012
|
ControlledMenu,
|
|
6113
|
-
__spreadProps$
|
|
7013
|
+
__spreadProps$7(__spreadValues$f({}, __privateGet$1(this, _menuProps)), {
|
|
6114
7014
|
state: isOpen ? "open" : "closed",
|
|
6115
7015
|
onClose: close,
|
|
6116
7016
|
children: __privateGet$1(this, _RenderMenu).call(this, { label: "", items: __privateGet$1(this, _items) })
|
|
@@ -6229,7 +7129,7 @@ const KeyHandler = ({
|
|
|
6229
7129
|
[onIconGetDetails, storeId]
|
|
6230
7130
|
);
|
|
6231
7131
|
return /* @__PURE__ */ jsx(
|
|
6232
|
-
Box,
|
|
7132
|
+
Box$1,
|
|
6233
7133
|
{
|
|
6234
7134
|
className: "iconsList__keyHandler",
|
|
6235
7135
|
tabIndex: 0,
|
|
@@ -6329,19 +7229,19 @@ const KeyHandler = ({
|
|
|
6329
7229
|
);
|
|
6330
7230
|
};
|
|
6331
7231
|
|
|
6332
|
-
var __defProp$
|
|
6333
|
-
var __getOwnPropSymbols$
|
|
6334
|
-
var __hasOwnProp$
|
|
6335
|
-
var __propIsEnum$
|
|
6336
|
-
var __defNormalProp$
|
|
6337
|
-
var __spreadValues$
|
|
7232
|
+
var __defProp$e = Object.defineProperty;
|
|
7233
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
7234
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
7235
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
7236
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7237
|
+
var __spreadValues$e = (a, b) => {
|
|
6338
7238
|
for (var prop in b || (b = {}))
|
|
6339
|
-
if (__hasOwnProp$
|
|
6340
|
-
__defNormalProp$
|
|
6341
|
-
if (__getOwnPropSymbols$
|
|
6342
|
-
for (var prop of __getOwnPropSymbols$
|
|
6343
|
-
if (__propIsEnum$
|
|
6344
|
-
__defNormalProp$
|
|
7239
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
7240
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
7241
|
+
if (__getOwnPropSymbols$e)
|
|
7242
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
7243
|
+
if (__propIsEnum$e.call(b, prop))
|
|
7244
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
6345
7245
|
}
|
|
6346
7246
|
return a;
|
|
6347
7247
|
};
|
|
@@ -6364,7 +7264,7 @@ const styles$1 = {
|
|
|
6364
7264
|
flexDirection: "column",
|
|
6365
7265
|
gap: 3,
|
|
6366
7266
|
"&:hover": (theme) => {
|
|
6367
|
-
return __spreadValues$
|
|
7267
|
+
return __spreadValues$e({}, theme.palette.getOneState(
|
|
6368
7268
|
{ backgroundColor: "palette.background.paper" },
|
|
6369
7269
|
"hover"
|
|
6370
7270
|
));
|
|
@@ -6381,7 +7281,7 @@ const styles$1 = {
|
|
|
6381
7281
|
},
|
|
6382
7282
|
".iconsList__keyHandler:focus": {
|
|
6383
7283
|
outline: "none",
|
|
6384
|
-
".focused .iconsList__icon__wrapper": __spreadValues$
|
|
7284
|
+
".focused .iconsList__icon__wrapper": __spreadValues$e({}, focusOutline)
|
|
6385
7285
|
}
|
|
6386
7286
|
};
|
|
6387
7287
|
|
|
@@ -6437,19 +7337,19 @@ function useIconRendererContext() {
|
|
|
6437
7337
|
return context;
|
|
6438
7338
|
}
|
|
6439
7339
|
|
|
6440
|
-
var __defProp$
|
|
6441
|
-
var __getOwnPropSymbols$
|
|
6442
|
-
var __hasOwnProp$
|
|
6443
|
-
var __propIsEnum$
|
|
6444
|
-
var __defNormalProp$
|
|
6445
|
-
var __spreadValues$
|
|
7340
|
+
var __defProp$d = Object.defineProperty;
|
|
7341
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
7342
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
7343
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
7344
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7345
|
+
var __spreadValues$d = (a, b) => {
|
|
6446
7346
|
for (var prop in b || (b = {}))
|
|
6447
|
-
if (__hasOwnProp$
|
|
6448
|
-
__defNormalProp$
|
|
6449
|
-
if (__getOwnPropSymbols$
|
|
6450
|
-
for (var prop of __getOwnPropSymbols$
|
|
6451
|
-
if (__propIsEnum$
|
|
6452
|
-
__defNormalProp$
|
|
7347
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
7348
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
7349
|
+
if (__getOwnPropSymbols$d)
|
|
7350
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
7351
|
+
if (__propIsEnum$d.call(b, prop))
|
|
7352
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
6453
7353
|
}
|
|
6454
7354
|
return a;
|
|
6455
7355
|
};
|
|
@@ -6462,7 +7362,7 @@ const Icon = (props) => {
|
|
|
6462
7362
|
});
|
|
6463
7363
|
const Renderer = useIconRendererContext();
|
|
6464
7364
|
return /* @__PURE__ */ jsx(
|
|
6465
|
-
Box,
|
|
7365
|
+
Box$1,
|
|
6466
7366
|
{
|
|
6467
7367
|
ref,
|
|
6468
7368
|
role: "gridcell",
|
|
@@ -6483,24 +7383,24 @@ const Icon = (props) => {
|
|
|
6483
7383
|
[props.width]
|
|
6484
7384
|
),
|
|
6485
7385
|
"aria-colindex": props.colIndex,
|
|
6486
|
-
children: /* @__PURE__ */ jsx(Renderer, __spreadValues$
|
|
7386
|
+
children: /* @__PURE__ */ jsx(Renderer, __spreadValues$d({}, props))
|
|
6487
7387
|
}
|
|
6488
7388
|
);
|
|
6489
7389
|
};
|
|
6490
7390
|
|
|
6491
|
-
var __defProp$
|
|
6492
|
-
var __getOwnPropSymbols$
|
|
6493
|
-
var __hasOwnProp$
|
|
6494
|
-
var __propIsEnum$
|
|
6495
|
-
var __defNormalProp$
|
|
6496
|
-
var __spreadValues$
|
|
7391
|
+
var __defProp$c = Object.defineProperty;
|
|
7392
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
7393
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
7394
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
7395
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7396
|
+
var __spreadValues$c = (a, b) => {
|
|
6497
7397
|
for (var prop in b || (b = {}))
|
|
6498
|
-
if (__hasOwnProp$
|
|
6499
|
-
__defNormalProp$
|
|
6500
|
-
if (__getOwnPropSymbols$
|
|
6501
|
-
for (var prop of __getOwnPropSymbols$
|
|
6502
|
-
if (__propIsEnum$
|
|
6503
|
-
__defNormalProp$
|
|
7398
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
7399
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
7400
|
+
if (__getOwnPropSymbols$c)
|
|
7401
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
7402
|
+
if (__propIsEnum$c.call(b, prop))
|
|
7403
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
6504
7404
|
}
|
|
6505
7405
|
return a;
|
|
6506
7406
|
};
|
|
@@ -6510,9 +7410,9 @@ const IconWrapper = ({
|
|
|
6510
7410
|
rowIndex,
|
|
6511
7411
|
colIndex
|
|
6512
7412
|
}) => {
|
|
6513
|
-
return icon === justToFillTheRow ? /* @__PURE__ */ jsx(Box, { sx: { width: `${iconWidth}px` }, className: "fill__the__row" }) : /* @__PURE__ */ jsx(
|
|
7413
|
+
return icon === justToFillTheRow ? /* @__PURE__ */ jsx(Box$1, { sx: { width: `${iconWidth}px` }, className: "fill__the__row" }) : /* @__PURE__ */ jsx(
|
|
6514
7414
|
Icon,
|
|
6515
|
-
__spreadValues$
|
|
7415
|
+
__spreadValues$c({
|
|
6516
7416
|
rowIndex,
|
|
6517
7417
|
colIndex,
|
|
6518
7418
|
width: iconWidth
|
|
@@ -6525,8 +7425,8 @@ const DefaultIconRendererNoMemo = (props) => {
|
|
|
6525
7425
|
console.error({ props });
|
|
6526
7426
|
throw new Error("The icon has no imageUrl nor icon defined");
|
|
6527
7427
|
}
|
|
6528
|
-
return /* @__PURE__ */ jsxs(Box, { title: props.label, className: "iconsList__icon__wrapper", children: [
|
|
6529
|
-
/* @__PURE__ */ jsxs(Box, { className: "iconsList__icon__image__wrapper", children: [
|
|
7428
|
+
return /* @__PURE__ */ jsxs(Box$1, { title: props.label, className: "iconsList__icon__wrapper", children: [
|
|
7429
|
+
/* @__PURE__ */ jsxs(Box$1, { className: "iconsList__icon__image__wrapper", children: [
|
|
6530
7430
|
props.imageUrl && /* @__PURE__ */ jsx(
|
|
6531
7431
|
Image,
|
|
6532
7432
|
{
|
|
@@ -6538,7 +7438,7 @@ const DefaultIconRendererNoMemo = (props) => {
|
|
|
6538
7438
|
),
|
|
6539
7439
|
props.icon && /* @__PURE__ */ jsx(Icon$1, { icon: props.icon, title: props.ariaLabel })
|
|
6540
7440
|
] }),
|
|
6541
|
-
/* @__PURE__ */ jsx(Box, { className: "iconsList__icon__label", children: props.label })
|
|
7441
|
+
/* @__PURE__ */ jsx(Box$1, { className: "iconsList__icon__label", children: props.label })
|
|
6542
7442
|
] });
|
|
6543
7443
|
};
|
|
6544
7444
|
const DefaultIconRenderer = memo(DefaultIconRendererNoMemo);
|
|
@@ -6590,7 +7490,7 @@ const IconsListNonForwarded = (props, ref) => {
|
|
|
6590
7490
|
onIconGetDetails: propsRef.current.onIconGetDetails,
|
|
6591
7491
|
onIconKeyDown: propsRef.current.onIconKeyDown,
|
|
6592
7492
|
storeId,
|
|
6593
|
-
children: /* @__PURE__ */ jsx(Box, { ref: gridRef, children: Array(rows).fill(1).map((_, i) => {
|
|
7493
|
+
children: /* @__PURE__ */ jsx(Box$1, { ref: gridRef, children: Array(rows).fill(1).map((_, i) => {
|
|
6594
7494
|
const icons = getRowIcons({
|
|
6595
7495
|
breakPoint,
|
|
6596
7496
|
i,
|
|
@@ -6671,86 +7571,97 @@ function importComponent(path) {
|
|
|
6671
7571
|
});
|
|
6672
7572
|
}
|
|
6673
7573
|
|
|
6674
|
-
var __defProp$
|
|
6675
|
-
var __getOwnPropSymbols$
|
|
6676
|
-
var __hasOwnProp$
|
|
6677
|
-
var __propIsEnum$
|
|
6678
|
-
var __defNormalProp$
|
|
6679
|
-
var __spreadValues$
|
|
7574
|
+
var __defProp$b = Object.defineProperty;
|
|
7575
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
7576
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
7577
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
7578
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7579
|
+
var __spreadValues$b = (a, b) => {
|
|
6680
7580
|
for (var prop in b || (b = {}))
|
|
6681
|
-
if (__hasOwnProp$
|
|
6682
|
-
__defNormalProp$
|
|
6683
|
-
if (__getOwnPropSymbols$
|
|
6684
|
-
for (var prop of __getOwnPropSymbols$
|
|
6685
|
-
if (__propIsEnum$
|
|
6686
|
-
__defNormalProp$
|
|
7581
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
7582
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
7583
|
+
if (__getOwnPropSymbols$b)
|
|
7584
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
7585
|
+
if (__propIsEnum$b.call(b, prop))
|
|
7586
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
6687
7587
|
}
|
|
6688
7588
|
return a;
|
|
6689
7589
|
};
|
|
6690
7590
|
const styles = {
|
|
7591
|
+
alignItems: "center",
|
|
6691
7592
|
backgroundColor: "palette.background.default",
|
|
6692
|
-
"
|
|
7593
|
+
display: "flex",
|
|
7594
|
+
gap: "2px",
|
|
7595
|
+
py: "4px",
|
|
7596
|
+
px: "8px",
|
|
7597
|
+
"& > *": {
|
|
7598
|
+
alignItems: "center",
|
|
7599
|
+
borderRadius: "4px",
|
|
6693
7600
|
display: "flex",
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
"
|
|
6697
|
-
|
|
6698
|
-
|
|
7601
|
+
flexShrink: 0,
|
|
7602
|
+
justifyContent: "center",
|
|
7603
|
+
outline: "none !important",
|
|
7604
|
+
p: 0
|
|
7605
|
+
},
|
|
7606
|
+
".toolbar__button": {
|
|
7607
|
+
border: "none",
|
|
7608
|
+
borderRadius: "4px",
|
|
7609
|
+
height: "32px",
|
|
7610
|
+
width: "32px",
|
|
7611
|
+
background: "transparent",
|
|
7612
|
+
svg: {
|
|
7613
|
+
path: {
|
|
7614
|
+
fill: "palette.text.primary"
|
|
6699
7615
|
}
|
|
6700
7616
|
},
|
|
6701
|
-
"
|
|
6702
|
-
p: 0,
|
|
6703
|
-
display: "flex",
|
|
6704
|
-
alignItems: "center",
|
|
6705
|
-
justifyContent: "center"
|
|
6706
|
-
},
|
|
6707
|
-
".iconButton": {
|
|
6708
|
-
borderRadius: "4px",
|
|
6709
|
-
height: "32px",
|
|
6710
|
-
width: "32px",
|
|
6711
|
-
background: "transparent",
|
|
7617
|
+
"&:disabled": {
|
|
6712
7618
|
svg: {
|
|
6713
7619
|
path: {
|
|
6714
|
-
fill: "palette.
|
|
6715
|
-
}
|
|
6716
|
-
},
|
|
6717
|
-
"&:disabled": {
|
|
6718
|
-
svg: {
|
|
6719
|
-
path: {
|
|
6720
|
-
fill: "palette.border.section"
|
|
6721
|
-
}
|
|
7620
|
+
fill: "palette.border.section"
|
|
6722
7621
|
}
|
|
6723
7622
|
}
|
|
6724
|
-
},
|
|
6725
|
-
".separator": {
|
|
6726
|
-
borderLeft: "1px solid",
|
|
6727
|
-
borderRight: "1px solid",
|
|
6728
|
-
borderColor: "palette.gray.750",
|
|
6729
|
-
height: "60%",
|
|
6730
|
-
width: "3px"
|
|
6731
|
-
},
|
|
6732
|
-
".toggled": (theme) => {
|
|
6733
|
-
return __spreadValues$9({}, theme.palette.getOneState(
|
|
6734
|
-
{ backgroundColor: theme.palette.background.default },
|
|
6735
|
-
"selected"
|
|
6736
|
-
));
|
|
6737
7623
|
}
|
|
7624
|
+
},
|
|
7625
|
+
".fieldLabel": {
|
|
7626
|
+
display: "flex",
|
|
7627
|
+
flexDirection: "row",
|
|
7628
|
+
gap: 3,
|
|
7629
|
+
alignItems: "center",
|
|
7630
|
+
justifyContent: "center"
|
|
7631
|
+
},
|
|
7632
|
+
".toolbar__input": {
|
|
7633
|
+
borderRadius: "4px",
|
|
7634
|
+
p: 3,
|
|
7635
|
+
width: "80px"
|
|
7636
|
+
},
|
|
7637
|
+
".toolbar__separator": {
|
|
7638
|
+
borderLeft: "1px solid",
|
|
7639
|
+
borderRight: "1px solid",
|
|
7640
|
+
borderColor: "palette.gray.750",
|
|
7641
|
+
height: "60%",
|
|
7642
|
+
width: "3px"
|
|
7643
|
+
},
|
|
7644
|
+
".toggled": (theme) => {
|
|
7645
|
+
return __spreadValues$b({}, theme.palette.getOneState(
|
|
7646
|
+
{ backgroundColor: theme.palette.background.default },
|
|
7647
|
+
"selected"
|
|
7648
|
+
));
|
|
6738
7649
|
}
|
|
6739
7650
|
};
|
|
6740
7651
|
|
|
6741
|
-
var __defProp$
|
|
6742
|
-
var __getOwnPropSymbols$
|
|
6743
|
-
var __hasOwnProp$
|
|
6744
|
-
var __propIsEnum$
|
|
6745
|
-
var __defNormalProp$
|
|
6746
|
-
var __spreadValues$
|
|
7652
|
+
var __defProp$a = Object.defineProperty;
|
|
7653
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
7654
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
7655
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
7656
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7657
|
+
var __spreadValues$a = (a, b) => {
|
|
6747
7658
|
for (var prop in b || (b = {}))
|
|
6748
|
-
if (__hasOwnProp$
|
|
6749
|
-
__defNormalProp$
|
|
6750
|
-
if (__getOwnPropSymbols$
|
|
6751
|
-
for (var prop of __getOwnPropSymbols$
|
|
6752
|
-
if (__propIsEnum$
|
|
6753
|
-
__defNormalProp$
|
|
7659
|
+
if (__hasOwnProp$a.call(b, prop))
|
|
7660
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
7661
|
+
if (__getOwnPropSymbols$a)
|
|
7662
|
+
for (var prop of __getOwnPropSymbols$a(b)) {
|
|
7663
|
+
if (__propIsEnum$a.call(b, prop))
|
|
7664
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
6754
7665
|
}
|
|
6755
7666
|
return a;
|
|
6756
7667
|
};
|
|
@@ -6766,7 +7677,7 @@ class ToolbarController extends EventEmitter {
|
|
|
6766
7677
|
this.itemsState[id] = initialState;
|
|
6767
7678
|
this.on("updateItemState", (evId) => {
|
|
6768
7679
|
if (evId === id) {
|
|
6769
|
-
setState(__spreadValues$
|
|
7680
|
+
setState(__spreadValues$a({}, this.itemsState[id]));
|
|
6770
7681
|
}
|
|
6771
7682
|
});
|
|
6772
7683
|
}, []);
|
|
@@ -6774,7 +7685,7 @@ class ToolbarController extends EventEmitter {
|
|
|
6774
7685
|
}
|
|
6775
7686
|
};
|
|
6776
7687
|
this.setItemState = (id, newState) => {
|
|
6777
|
-
this.itemsState[id] = __spreadValues$
|
|
7688
|
+
this.itemsState[id] = __spreadValues$a(__spreadValues$a({}, this.itemsState[id]), newState);
|
|
6778
7689
|
this.emit("updateItemState", id);
|
|
6779
7690
|
};
|
|
6780
7691
|
this.Context = ({ children }) => {
|
|
@@ -6792,19 +7703,42 @@ const useToolbarControllerContext = () => {
|
|
|
6792
7703
|
return context;
|
|
6793
7704
|
};
|
|
6794
7705
|
|
|
6795
|
-
var __defProp$
|
|
6796
|
-
var __getOwnPropSymbols$
|
|
6797
|
-
var __hasOwnProp$
|
|
6798
|
-
var __propIsEnum$
|
|
6799
|
-
var __defNormalProp$
|
|
6800
|
-
var __spreadValues$
|
|
7706
|
+
var __defProp$9 = Object.defineProperty;
|
|
7707
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
7708
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
7709
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
7710
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7711
|
+
var __spreadValues$9 = (a, b) => {
|
|
6801
7712
|
for (var prop in b || (b = {}))
|
|
6802
|
-
if (__hasOwnProp$
|
|
6803
|
-
__defNormalProp$
|
|
6804
|
-
if (__getOwnPropSymbols$
|
|
6805
|
-
for (var prop of __getOwnPropSymbols$
|
|
6806
|
-
if (__propIsEnum$
|
|
6807
|
-
__defNormalProp$
|
|
7713
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
7714
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
7715
|
+
if (__getOwnPropSymbols$9)
|
|
7716
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
7717
|
+
if (__propIsEnum$9.call(b, prop))
|
|
7718
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
7719
|
+
}
|
|
7720
|
+
return a;
|
|
7721
|
+
};
|
|
7722
|
+
const ToolbarInput = ({ tool }) => {
|
|
7723
|
+
const input = /* @__PURE__ */ jsx(Input, __spreadValues$9({ className: "toolbar__input" }, tool.inputProps));
|
|
7724
|
+
if (tool.label)
|
|
7725
|
+
return /* @__PURE__ */ jsx(FieldLabel, { label: tool.label, children: input });
|
|
7726
|
+
return input;
|
|
7727
|
+
};
|
|
7728
|
+
|
|
7729
|
+
var __defProp$8 = Object.defineProperty;
|
|
7730
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
7731
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
7732
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
7733
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7734
|
+
var __spreadValues$8 = (a, b) => {
|
|
7735
|
+
for (var prop in b || (b = {}))
|
|
7736
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
7737
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
7738
|
+
if (__getOwnPropSymbols$8)
|
|
7739
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
7740
|
+
if (__propIsEnum$8.call(b, prop))
|
|
7741
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
6808
7742
|
}
|
|
6809
7743
|
return a;
|
|
6810
7744
|
};
|
|
@@ -6868,21 +7802,22 @@ const ToolbarItemButton = ({
|
|
|
6868
7802
|
setInnerIsToggled(!!context.itemsState[id].toggled);
|
|
6869
7803
|
}
|
|
6870
7804
|
} else
|
|
6871
|
-
context.itemsState[id] = __spreadValues$
|
|
7805
|
+
context.itemsState[id] = __spreadValues$8({
|
|
6872
7806
|
disabled: isDisabled,
|
|
6873
7807
|
toggled: innerIsToggled
|
|
6874
7808
|
}, context.itemsState[id]);
|
|
6875
7809
|
});
|
|
6876
7810
|
return /* @__PURE__ */ jsx(
|
|
6877
|
-
IconButton$
|
|
7811
|
+
IconButton$1,
|
|
6878
7812
|
{
|
|
6879
|
-
className: `
|
|
7813
|
+
className: `toolbar__button ${innerIsToggled ? "toggled" : ""}`,
|
|
6880
7814
|
size: iconSize != null ? iconSize : "Md",
|
|
6881
7815
|
icon,
|
|
6882
7816
|
onClick: handleClick,
|
|
6883
7817
|
"data-id": id,
|
|
6884
7818
|
title,
|
|
6885
|
-
disabled: isDisabled
|
|
7819
|
+
disabled: isDisabled,
|
|
7820
|
+
variant: "icon-outline"
|
|
6886
7821
|
}
|
|
6887
7822
|
);
|
|
6888
7823
|
};
|
|
@@ -6890,8 +7825,39 @@ const ToolbarItemButton = ({
|
|
|
6890
7825
|
function isSeparator(params) {
|
|
6891
7826
|
return !!params.separator;
|
|
6892
7827
|
}
|
|
7828
|
+
function isInput(params) {
|
|
7829
|
+
return params.type === "input";
|
|
7830
|
+
}
|
|
7831
|
+
|
|
7832
|
+
var __defProp$7 = Object.defineProperty;
|
|
7833
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
7834
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
7835
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
7836
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7837
|
+
var __spreadValues$7 = (a, b) => {
|
|
7838
|
+
for (var prop in b || (b = {}))
|
|
7839
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
7840
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
7841
|
+
if (__getOwnPropSymbols$7)
|
|
7842
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
7843
|
+
if (__propIsEnum$7.call(b, prop))
|
|
7844
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
7845
|
+
}
|
|
7846
|
+
return a;
|
|
7847
|
+
};
|
|
7848
|
+
const ToolbarItem = (props) => {
|
|
7849
|
+
if (isInput(props)) {
|
|
7850
|
+
return /* @__PURE__ */ jsx(ToolbarInput, { tool: props });
|
|
7851
|
+
}
|
|
7852
|
+
if (isSeparator(props)) {
|
|
7853
|
+
return /* @__PURE__ */ jsx(Box$1, { className: "toolbar__separator", children: "\xA0" });
|
|
7854
|
+
}
|
|
7855
|
+
return /* @__PURE__ */ jsx(ToolbarItemButton, __spreadValues$7({}, props));
|
|
7856
|
+
};
|
|
6893
7857
|
|
|
6894
7858
|
var __defProp$6 = Object.defineProperty;
|
|
7859
|
+
var __defProps$6 = Object.defineProperties;
|
|
7860
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
6895
7861
|
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
6896
7862
|
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
6897
7863
|
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
@@ -6907,59 +7873,19 @@ var __spreadValues$6 = (a, b) => {
|
|
|
6907
7873
|
}
|
|
6908
7874
|
return a;
|
|
6909
7875
|
};
|
|
6910
|
-
|
|
6911
|
-
if (isSeparator(props)) {
|
|
6912
|
-
return /* @__PURE__ */ jsx(Box, { className: "separator", children: "\xA0" });
|
|
6913
|
-
}
|
|
6914
|
-
return /* @__PURE__ */ jsx(ToolbarItemButton, __spreadValues$6({}, props));
|
|
6915
|
-
};
|
|
6916
|
-
|
|
7876
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
6917
7877
|
const Toolbar = makeStyledComponent(
|
|
6918
7878
|
"toolbar",
|
|
6919
7879
|
"layout.components.toolbar",
|
|
6920
7880
|
styles,
|
|
6921
7881
|
({ children, getController }) => {
|
|
6922
7882
|
const controller = useMemo(() => new ToolbarController(), []);
|
|
6923
|
-
let separator = 0;
|
|
6924
7883
|
useMount(() => {
|
|
6925
7884
|
getController == null ? void 0 : getController(controller);
|
|
6926
7885
|
});
|
|
6927
|
-
return /* @__PURE__ */ jsx(controller.Context, { children: /* @__PURE__ */ jsx(
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
className: "toolbar",
|
|
6931
|
-
onPressKeyOnNode: (ev) => {
|
|
6932
|
-
if (ev.code === "Enter" || ev.code === "Space") {
|
|
6933
|
-
const target = ev.target;
|
|
6934
|
-
const item = target.querySelector(".toolbarItem");
|
|
6935
|
-
const id = item.dataset.id;
|
|
6936
|
-
if (!id) {
|
|
6937
|
-
console.error("Error event", ev);
|
|
6938
|
-
throw new Error(
|
|
6939
|
-
"Cannot find target in toolbar press enter event."
|
|
6940
|
-
);
|
|
6941
|
-
}
|
|
6942
|
-
controller.emit("pressEnter", id);
|
|
6943
|
-
}
|
|
6944
|
-
},
|
|
6945
|
-
children: Children.toArray(children).map((current) => {
|
|
6946
|
-
const props = current == null ? void 0 : current.props;
|
|
6947
|
-
if (!props)
|
|
6948
|
-
throw new Error("Toolbar items must be of ToolbarItem type.");
|
|
6949
|
-
const { id, title } = props;
|
|
6950
|
-
return /* @__PURE__ */ jsx(
|
|
6951
|
-
ListboxItem,
|
|
6952
|
-
{
|
|
6953
|
-
label: title,
|
|
6954
|
-
"data-separator": id ? void 0 : "true",
|
|
6955
|
-
children: current
|
|
6956
|
-
},
|
|
6957
|
-
id != null ? id : `separator${separator++}`
|
|
6958
|
-
);
|
|
6959
|
-
})
|
|
6960
|
-
}
|
|
6961
|
-
) });
|
|
6962
|
-
}
|
|
7886
|
+
return /* @__PURE__ */ jsx(controller.Context, { children: /* @__PURE__ */ jsx(Box$1, __spreadProps$6(__spreadValues$6({ className: "toolbar" }, getVariant("layout.components.toolbar")), { children })) });
|
|
7887
|
+
},
|
|
7888
|
+
true
|
|
6963
7889
|
);
|
|
6964
7890
|
|
|
6965
7891
|
const TabsContext = React__default.createContext(
|
|
@@ -7277,7 +8203,7 @@ const TabsList = ({
|
|
|
7277
8203
|
const [isOpen, setIsOpen] = React__default.useState(false);
|
|
7278
8204
|
const [targetId, setTargetId] = React__default.useState("");
|
|
7279
8205
|
return /* @__PURE__ */ jsxs(
|
|
7280
|
-
Box,
|
|
8206
|
+
Box$1,
|
|
7281
8207
|
__spreadProps$3(__spreadValues$3({
|
|
7282
8208
|
id: `tabsList-${id}`,
|
|
7283
8209
|
className: "tabsList__wrapper",
|
|
@@ -7291,7 +8217,7 @@ const TabsList = ({
|
|
|
7291
8217
|
)) ;
|
|
7292
8218
|
}, []),
|
|
7293
8219
|
children: [
|
|
7294
|
-
/* @__PURE__ */ jsx(Box, { className: "tabsList__fixedTabs", children: fixedTabs.map((current) => /* @__PURE__ */ jsx(Item, { tabId: current.id }, current.id)) }),
|
|
8220
|
+
/* @__PURE__ */ jsx(Box$1, { className: "tabsList__fixedTabs", children: fixedTabs.map((current) => /* @__PURE__ */ jsx(Item, { tabId: current.id }, current.id)) }),
|
|
7295
8221
|
/* @__PURE__ */ jsx(
|
|
7296
8222
|
ContextMenu,
|
|
7297
8223
|
{
|
|
@@ -7302,7 +8228,7 @@ const TabsList = ({
|
|
|
7302
8228
|
}
|
|
7303
8229
|
),
|
|
7304
8230
|
/* @__PURE__ */ jsx(
|
|
7305
|
-
Box,
|
|
8231
|
+
Box$1,
|
|
7306
8232
|
{
|
|
7307
8233
|
className: `noScrollbar tabs__list ${orientation === "vertical" ? "vertical" : ""}`,
|
|
7308
8234
|
onContextMenu: React__default.useCallback((e) => {
|
|
@@ -7732,14 +8658,14 @@ const TabsContent = (props) => {
|
|
|
7732
8658
|
}
|
|
7733
8659
|
});
|
|
7734
8660
|
return /* @__PURE__ */ jsx(
|
|
7735
|
-
Box,
|
|
8661
|
+
Box$1,
|
|
7736
8662
|
__spreadProps$1(__spreadValues$1(__spreadValues$1({
|
|
7737
8663
|
className: "tabs__content__wrapper"
|
|
7738
8664
|
}, getVariant("layout.common.tabs.primary.content")), props), {
|
|
7739
8665
|
children: tabs == null ? void 0 : tabs.map((current) => {
|
|
7740
8666
|
const Render = current.content;
|
|
7741
8667
|
return /* @__PURE__ */ jsxs(
|
|
7742
|
-
Box,
|
|
8668
|
+
Box$1,
|
|
7743
8669
|
{
|
|
7744
8670
|
"aria-hidden": !current.isOpen,
|
|
7745
8671
|
"aria-labelledby": `tab-${id}-${current.id}`,
|
|
@@ -7749,7 +8675,7 @@ const TabsContent = (props) => {
|
|
|
7749
8675
|
role: "tabpanel",
|
|
7750
8676
|
children: [
|
|
7751
8677
|
/* @__PURE__ */ jsx(Render, { tab: current }),
|
|
7752
|
-
current.isLoading && /* @__PURE__ */ jsx(Box, { className: "tabs__content__spinner__wrapper", children: /* @__PURE__ */ jsx(Spinner, {}) })
|
|
8678
|
+
current.isLoading && /* @__PURE__ */ jsx(Box$1, { className: "tabs__content__spinner__wrapper", children: /* @__PURE__ */ jsx(Spinner, {}) })
|
|
7753
8679
|
]
|
|
7754
8680
|
},
|
|
7755
8681
|
current.id
|
|
@@ -7850,7 +8776,7 @@ const NonForwardedTabs = (_a, ref) => {
|
|
|
7850
8776
|
[handler, id, isMultiple, onOpenTab, orientation]
|
|
7851
8777
|
),
|
|
7852
8778
|
children: /* @__PURE__ */ jsx(
|
|
7853
|
-
Box,
|
|
8779
|
+
Box$1,
|
|
7854
8780
|
__spreadProps(__spreadValues({}, props), {
|
|
7855
8781
|
onKeyDown: React__default.useCallback(
|
|
7856
8782
|
(ev) => {
|
|
@@ -7869,4 +8795,4 @@ const Tabs = React__default.forwardRef(
|
|
|
7869
8795
|
NonForwardedTabs
|
|
7870
8796
|
);
|
|
7871
8797
|
|
|
7872
|
-
export { Accordion, AccordionContext, AccordionItem, AccordionItemButton, AccordionItemContent, AccordionItemContext, AlertModal, ApiaFilter, ApiaUtil, ApiaUtilModalHandler, ApiaUtilTooltip, AutoEllipsis, BaseButton, CalendarModal, Captcha, Checkbox$1 as Checkbox, CollapsiblePanel, Confirm, ConfirmModal, DateInput, DefaultIconRenderer, DefaultTabsLabelRenderer, DialogButtonBar, FieldErrorMessage, FieldLabel, IconButton, IconInput, IconsList, LinearLoader, Listbox, ListboxItem, LoaderSpinner, Modal, NumberInput, Overlay, ProgressBar, RequiredMark, ScreenLock, SimpleButton, Tabs, TabsContent, TabsController, TabsList, Toolbar, ToolbarController, ToolbarItem, WaiTypeAhead, getFieldErrorStyles, getFieldTouchedStyles, importComponent, makeResponsiveComponent, parseNumberInputValueToNumber, parseNumberValueToNumberInput, useAccordionContext, useModal, useModalContext, useOtherTagButton };
|
|
8798
|
+
export { Accordion, AccordionContext, AccordionItem, AccordionItemButton, AccordionItemContent, AccordionItemContext, AlertModal, ApiaChat, ApiaFilter, ApiaUtil, ApiaUtilModalHandler, ApiaUtilTooltip, AutoEllipsis, BaseButton, CalendarModal, Captcha, Checkbox$1 as Checkbox, CollapsiblePanel, Confirm, ConfirmModal, DateInput, DefaultIconRenderer, DefaultTabsLabelRenderer, DialogButtonBar, FieldErrorMessage, FieldLabel, IconButton, IconInput, IconsList, LinearLoader, Listbox, ListboxItem, LoaderSpinner, Modal, NumberInput, Overlay, ProgressBar, RequiredMark, ScreenLock, SimpleButton, Tabs, TabsContent, TabsController, TabsList, Toolbar, ToolbarController, ToolbarItem, WaiTypeAhead, getFieldErrorStyles, getFieldTouchedStyles, importComponent, makeResponsiveComponent, parseNumberInputValueToNumber, parseNumberValueToNumberInput, useAccordionContext, useModal, useModalContext, useOtherTagButton };
|