@duro-app/ui 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DragDrop/DragDrop.d.ts.map +1 -1
- package/dist/components/DragDrop/DragDrop.stories.d.ts +3 -0
- package/dist/components/DragDrop/DragDrop.stories.d.ts.map +1 -1
- package/dist/index.js +274 -283
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/DragDrop/DragDrop.stories.tsx +29 -8
- package/src/components/DragDrop/DragDrop.tsx +17 -20
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as P, jsx as k, Fragment as J } from "react/jsx-runtime";
|
|
2
2
|
import { c as M, m as S, d as C, b as ko } from "./Table-P-UHkEqJ.js";
|
|
3
3
|
import { M as Nr, T as Or } from "./Table-P-UHkEqJ.js";
|
|
4
4
|
import { useRef as Y, useSyncExternalStore as Pe, useContext as ot, useId as dt, createContext as nt, useEffect as U, useState as _, Children as go, isValidElement as fo, useCallback as Xt, useLayoutEffect as ge, useMemo as mo } from "react";
|
|
@@ -56,7 +56,7 @@ function Xi({
|
|
|
56
56
|
const t = Y(null);
|
|
57
57
|
t.current === null && (t.current = Co());
|
|
58
58
|
const e = t.current, o = Pe(e.subscribe, e.getSnapshot, e.getSnapshot), n = o.length > 0 ? o[o.length - 1] : null;
|
|
59
|
-
return /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ P(Ne.Provider, { value: e, children: [
|
|
60
60
|
s,
|
|
61
61
|
n?.render()
|
|
62
62
|
] });
|
|
@@ -221,7 +221,7 @@ function ze(s) {
|
|
|
221
221
|
let w;
|
|
222
222
|
t[17] !== c || t[18] !== x || t[19] !== r ? (w = c && /* @__PURE__ */ k("button", { "data-element-src": "ActionBar/ActionBar.tsx:60", type: "button", "aria-label": "Clear selection", onClick: r, ...S(C.button, It.closeButton, x && It.closeButtonEmphasized), children: /* @__PURE__ */ k("svg", { width: 10, height: 10, viewBox: "0 0 10 10", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ k("path", { d: "M1 1l8 8M9 1l-8 8", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }) }) }), t[17] = c, t[18] = x, t[19] = r, t[20] = w) : w = t[20];
|
|
223
223
|
let T;
|
|
224
|
-
return t[21] !== u || t[22] !== $ || t[23] !== z || t[24] !== w || t[25] !== m || t[26] !== h ? (T = /* @__PURE__ */
|
|
224
|
+
return t[21] !== u || t[22] !== $ || t[23] !== z || t[24] !== w || t[25] !== m || t[26] !== h ? (T = /* @__PURE__ */ P("div", { "data-element-src": "ActionBar/ActionBar.tsx:42", role: "toolbar", "aria-label": u, ...S(C.div, m), children: [
|
|
225
225
|
h,
|
|
226
226
|
$,
|
|
227
227
|
z,
|
|
@@ -248,160 +248,160 @@ function To(s) {
|
|
|
248
248
|
return null;
|
|
249
249
|
}
|
|
250
250
|
const Ki = To, Io = {
|
|
251
|
-
"x-circle": /* @__PURE__ */
|
|
251
|
+
"x-circle": /* @__PURE__ */ P(J, { children: [
|
|
252
252
|
/* @__PURE__ */ k("circle", { cx: "12", cy: "12", r: "10" }),
|
|
253
253
|
/* @__PURE__ */ k("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
|
|
254
254
|
/* @__PURE__ */ k("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
|
|
255
255
|
] }),
|
|
256
|
-
"check-circle": /* @__PURE__ */
|
|
256
|
+
"check-circle": /* @__PURE__ */ P(J, { children: [
|
|
257
257
|
/* @__PURE__ */ k("circle", { cx: "12", cy: "12", r: "10" }),
|
|
258
258
|
/* @__PURE__ */ k("polyline", { points: "16 10 11 15 8 12" })
|
|
259
259
|
] }),
|
|
260
|
-
"check-done": /* @__PURE__ */
|
|
260
|
+
"check-done": /* @__PURE__ */ P(J, { children: [
|
|
261
261
|
/* @__PURE__ */ k("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
|
|
262
262
|
/* @__PURE__ */ k("polyline", { points: "22 4 12 14.01 9 11.01" })
|
|
263
263
|
] }),
|
|
264
|
-
clock: /* @__PURE__ */
|
|
264
|
+
clock: /* @__PURE__ */ P(J, { children: [
|
|
265
265
|
/* @__PURE__ */ k("circle", { cx: "12", cy: "12", r: "10" }),
|
|
266
266
|
/* @__PURE__ */ k("polyline", { points: "12 6 12 12 16 14" })
|
|
267
267
|
] }),
|
|
268
|
-
forbidden: /* @__PURE__ */
|
|
268
|
+
forbidden: /* @__PURE__ */ P(J, { children: [
|
|
269
269
|
/* @__PURE__ */ k("circle", { cx: "12", cy: "12", r: "10" }),
|
|
270
270
|
/* @__PURE__ */ k("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
|
|
271
271
|
] }),
|
|
272
|
-
"info-circle": /* @__PURE__ */
|
|
272
|
+
"info-circle": /* @__PURE__ */ P(J, { children: [
|
|
273
273
|
/* @__PURE__ */ k("circle", { cx: "12", cy: "12", r: "10" }),
|
|
274
274
|
/* @__PURE__ */ k("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
|
|
275
275
|
/* @__PURE__ */ k("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
|
|
276
276
|
] }),
|
|
277
|
-
"alert-triangle": /* @__PURE__ */
|
|
277
|
+
"alert-triangle": /* @__PURE__ */ P(J, { children: [
|
|
278
278
|
/* @__PURE__ */ k("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
|
|
279
279
|
/* @__PURE__ */ k("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
280
280
|
/* @__PURE__ */ k("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
|
|
281
281
|
] }),
|
|
282
282
|
shield: /* @__PURE__ */ k("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }),
|
|
283
|
-
lock: /* @__PURE__ */
|
|
283
|
+
lock: /* @__PURE__ */ P(J, { children: [
|
|
284
284
|
/* @__PURE__ */ k("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }),
|
|
285
285
|
/* @__PURE__ */ k("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
|
|
286
286
|
] }),
|
|
287
287
|
key: /* @__PURE__ */ k(J, { children: /* @__PURE__ */ k("path", { d: "M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.78 7.78 5.5 5.5 0 0 1 7.78-7.78zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4" }) }),
|
|
288
288
|
// ---- navigation / wayfinding ----
|
|
289
|
-
map: /* @__PURE__ */
|
|
289
|
+
map: /* @__PURE__ */ P(J, { children: [
|
|
290
290
|
/* @__PURE__ */ k("polygon", { points: "1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6" }),
|
|
291
291
|
/* @__PURE__ */ k("line", { x1: "8", y1: "2", x2: "8", y2: "18" }),
|
|
292
292
|
/* @__PURE__ */ k("line", { x1: "16", y1: "6", x2: "16", y2: "22" })
|
|
293
293
|
] }),
|
|
294
|
-
layers: /* @__PURE__ */
|
|
294
|
+
layers: /* @__PURE__ */ P(J, { children: [
|
|
295
295
|
/* @__PURE__ */ k("polygon", { points: "12 2 2 7 12 12 22 7 12 2" }),
|
|
296
296
|
/* @__PURE__ */ k("polyline", { points: "2 17 12 22 22 17" }),
|
|
297
297
|
/* @__PURE__ */ k("polyline", { points: "2 12 12 17 22 12" })
|
|
298
298
|
] }),
|
|
299
299
|
// Two crossing arrows — exchange / interface flows.
|
|
300
|
-
repeat: /* @__PURE__ */
|
|
300
|
+
repeat: /* @__PURE__ */ P(J, { children: [
|
|
301
301
|
/* @__PURE__ */ k("polyline", { points: "17 1 21 5 17 9" }),
|
|
302
302
|
/* @__PURE__ */ k("path", { d: "M3 11V9a4 4 0 0 1 4-4h14" }),
|
|
303
303
|
/* @__PURE__ */ k("polyline", { points: "7 23 3 19 7 15" }),
|
|
304
304
|
/* @__PURE__ */ k("path", { d: "M21 13v2a4 4 0 0 1-4 4H3" })
|
|
305
305
|
] }),
|
|
306
|
-
database: /* @__PURE__ */
|
|
306
|
+
database: /* @__PURE__ */ P(J, { children: [
|
|
307
307
|
/* @__PURE__ */ k("ellipse", { cx: "12", cy: "5", rx: "9", ry: "3" }),
|
|
308
308
|
/* @__PURE__ */ k("path", { d: "M21 12c0 1.66-4 3-9 3s-9-1.34-9-3" }),
|
|
309
309
|
/* @__PURE__ */ k("path", { d: "M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5" })
|
|
310
310
|
] }),
|
|
311
|
-
"shield-check": /* @__PURE__ */
|
|
311
|
+
"shield-check": /* @__PURE__ */ P(J, { children: [
|
|
312
312
|
/* @__PURE__ */ k("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }),
|
|
313
313
|
/* @__PURE__ */ k("polyline", { points: "9 12 11 14 15 10" })
|
|
314
314
|
] }),
|
|
315
315
|
// Milestone path — roadmap / itinerary.
|
|
316
|
-
route: /* @__PURE__ */
|
|
316
|
+
route: /* @__PURE__ */ P(J, { children: [
|
|
317
317
|
/* @__PURE__ */ k("circle", { cx: "6", cy: "19", r: "3" }),
|
|
318
318
|
/* @__PURE__ */ k("path", { d: "M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15" }),
|
|
319
319
|
/* @__PURE__ */ k("circle", { cx: "18", cy: "5", r: "3" })
|
|
320
320
|
] }),
|
|
321
|
-
"git-branch": /* @__PURE__ */
|
|
321
|
+
"git-branch": /* @__PURE__ */ P(J, { children: [
|
|
322
322
|
/* @__PURE__ */ k("line", { x1: "6", y1: "3", x2: "6", y2: "15" }),
|
|
323
323
|
/* @__PURE__ */ k("circle", { cx: "18", cy: "6", r: "3" }),
|
|
324
324
|
/* @__PURE__ */ k("circle", { cx: "6", cy: "18", r: "3" }),
|
|
325
325
|
/* @__PURE__ */ k("path", { d: "M18 9a9 9 0 0 1-9 9" })
|
|
326
326
|
] }),
|
|
327
|
-
menu: /* @__PURE__ */
|
|
327
|
+
menu: /* @__PURE__ */ P(J, { children: [
|
|
328
328
|
/* @__PURE__ */ k("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
|
|
329
329
|
/* @__PURE__ */ k("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
|
|
330
330
|
/* @__PURE__ */ k("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
|
|
331
331
|
] }),
|
|
332
332
|
// ---- infrastructure / inventory ----
|
|
333
333
|
// Two stacked rack units — hosts, nodes, machines.
|
|
334
|
-
server: /* @__PURE__ */
|
|
334
|
+
server: /* @__PURE__ */ P(J, { children: [
|
|
335
335
|
/* @__PURE__ */ k("rect", { x: "2", y: "2", width: "20", height: "8", rx: "2", ry: "2" }),
|
|
336
336
|
/* @__PURE__ */ k("rect", { x: "2", y: "14", width: "20", height: "8", rx: "2", ry: "2" }),
|
|
337
337
|
/* @__PURE__ */ k("line", { x1: "6", y1: "6", x2: "6.01", y2: "6" }),
|
|
338
338
|
/* @__PURE__ */ k("line", { x1: "6", y1: "18", x2: "6.01", y2: "18" })
|
|
339
339
|
] }),
|
|
340
340
|
// Disk enclosure — volumes, persistent storage.
|
|
341
|
-
"hard-drive": /* @__PURE__ */
|
|
341
|
+
"hard-drive": /* @__PURE__ */ P(J, { children: [
|
|
342
342
|
/* @__PURE__ */ k("line", { x1: "22", y1: "12", x2: "2", y2: "12" }),
|
|
343
343
|
/* @__PURE__ */ k("path", { d: "M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" }),
|
|
344
344
|
/* @__PURE__ */ k("line", { x1: "6", y1: "16", x2: "6.01", y2: "16" }),
|
|
345
345
|
/* @__PURE__ */ k("line", { x1: "10", y1: "16", x2: "10.01", y2: "16" })
|
|
346
346
|
] }),
|
|
347
347
|
// Isometric crate — a deployable unit of work.
|
|
348
|
-
box: /* @__PURE__ */
|
|
348
|
+
box: /* @__PURE__ */ P(J, { children: [
|
|
349
349
|
/* @__PURE__ */ k("path", { d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" }),
|
|
350
350
|
/* @__PURE__ */ k("polyline", { points: "3.27 6.96 12 12.01 20.73 6.96" }),
|
|
351
351
|
/* @__PURE__ */ k("line", { x1: "12", y1: "22.08", x2: "12", y2: "12" })
|
|
352
352
|
] }),
|
|
353
353
|
// Picture frame — container images, artefacts.
|
|
354
|
-
image: /* @__PURE__ */
|
|
354
|
+
image: /* @__PURE__ */ P(J, { children: [
|
|
355
355
|
/* @__PURE__ */ k("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }),
|
|
356
356
|
/* @__PURE__ */ k("circle", { cx: "8.5", cy: "8.5", r: "1.5" }),
|
|
357
357
|
/* @__PURE__ */ k("polyline", { points: "21 15 16 10 5 21" })
|
|
358
358
|
] }),
|
|
359
359
|
// Luggage tag — labels, annotations, metadata.
|
|
360
|
-
tag: /* @__PURE__ */
|
|
360
|
+
tag: /* @__PURE__ */ P(J, { children: [
|
|
361
361
|
/* @__PURE__ */ k("path", { d: "M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z" }),
|
|
362
362
|
/* @__PURE__ */ k("line", { x1: "7", y1: "7", x2: "7.01", y2: "7" })
|
|
363
363
|
] }),
|
|
364
364
|
// Share of a whole — quotas, budgets, utilisation.
|
|
365
|
-
"pie-chart": /* @__PURE__ */
|
|
365
|
+
"pie-chart": /* @__PURE__ */ P(J, { children: [
|
|
366
366
|
/* @__PURE__ */ k("path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83" }),
|
|
367
367
|
/* @__PURE__ */ k("path", { d: "M22 12A10 10 0 0 0 12 2v10z" })
|
|
368
368
|
] }),
|
|
369
369
|
// ---- people / access / admin ----
|
|
370
|
-
users: /* @__PURE__ */
|
|
370
|
+
users: /* @__PURE__ */ P(J, { children: [
|
|
371
371
|
/* @__PURE__ */ k("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
|
|
372
372
|
/* @__PURE__ */ k("circle", { cx: "9", cy: "7", r: "4" }),
|
|
373
373
|
/* @__PURE__ */ k("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }),
|
|
374
374
|
/* @__PURE__ */ k("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
|
|
375
375
|
] }),
|
|
376
|
-
"user-plus": /* @__PURE__ */
|
|
376
|
+
"user-plus": /* @__PURE__ */ P(J, { children: [
|
|
377
377
|
/* @__PURE__ */ k("path", { d: "M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
|
|
378
378
|
/* @__PURE__ */ k("circle", { cx: "8.5", cy: "7", r: "4" }),
|
|
379
379
|
/* @__PURE__ */ k("line", { x1: "20", y1: "8", x2: "20", y2: "14" }),
|
|
380
380
|
/* @__PURE__ */ k("line", { x1: "23", y1: "11", x2: "17", y2: "11" })
|
|
381
381
|
] }),
|
|
382
|
-
mail: /* @__PURE__ */
|
|
382
|
+
mail: /* @__PURE__ */ P(J, { children: [
|
|
383
383
|
/* @__PURE__ */ k("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
|
|
384
384
|
/* @__PURE__ */ k("polyline", { points: "22,6 12,13 2,6" })
|
|
385
385
|
] }),
|
|
386
|
-
"file-text": /* @__PURE__ */
|
|
386
|
+
"file-text": /* @__PURE__ */ P(J, { children: [
|
|
387
387
|
/* @__PURE__ */ k("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
388
388
|
/* @__PURE__ */ k("polyline", { points: "14 2 14 8 20 8" }),
|
|
389
389
|
/* @__PURE__ */ k("line", { x1: "16", y1: "13", x2: "8", y2: "13" }),
|
|
390
390
|
/* @__PURE__ */ k("line", { x1: "16", y1: "17", x2: "8", y2: "17" }),
|
|
391
391
|
/* @__PURE__ */ k("polyline", { points: "10 9 9 9 8 9" })
|
|
392
392
|
] }),
|
|
393
|
-
plug: /* @__PURE__ */
|
|
393
|
+
plug: /* @__PURE__ */ P(J, { children: [
|
|
394
394
|
/* @__PURE__ */ k("path", { d: "M12 22v-5" }),
|
|
395
395
|
/* @__PURE__ */ k("path", { d: "M9 8V2" }),
|
|
396
396
|
/* @__PURE__ */ k("path", { d: "M15 8V2" }),
|
|
397
397
|
/* @__PURE__ */ k("path", { d: "M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" })
|
|
398
398
|
] }),
|
|
399
|
-
pin: /* @__PURE__ */
|
|
399
|
+
pin: /* @__PURE__ */ P(J, { children: [
|
|
400
400
|
/* @__PURE__ */ k("line", { x1: "12", y1: "17", x2: "12", y2: "22" }),
|
|
401
401
|
/* @__PURE__ */ k("path", { d: "M9 10.76V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v6.76a2 2 0 0 0 .55 1.38l1.68 1.78A1 1 0 0 1 16.5 16h-9a1 1 0 0 1-.73-1.68l1.68-1.78A2 2 0 0 0 9 10.76z" })
|
|
402
402
|
] }),
|
|
403
403
|
// ---- color mode ----
|
|
404
|
-
sun: /* @__PURE__ */
|
|
404
|
+
sun: /* @__PURE__ */ P(J, { children: [
|
|
405
405
|
/* @__PURE__ */ k("circle", { cx: "12", cy: "12", r: "5" }),
|
|
406
406
|
/* @__PURE__ */ k("line", { x1: "12", y1: "1", x2: "12", y2: "3" }),
|
|
407
407
|
/* @__PURE__ */ k("line", { x1: "12", y1: "21", x2: "12", y2: "23" }),
|
|
@@ -413,13 +413,13 @@ const Ki = To, Io = {
|
|
|
413
413
|
/* @__PURE__ */ k("line", { x1: "18.36", y1: "5.64", x2: "19.78", y2: "4.22" })
|
|
414
414
|
] }),
|
|
415
415
|
moon: /* @__PURE__ */ k("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }),
|
|
416
|
-
monitor: /* @__PURE__ */
|
|
416
|
+
monitor: /* @__PURE__ */ P(J, { children: [
|
|
417
417
|
/* @__PURE__ */ k("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2", ry: "2" }),
|
|
418
418
|
/* @__PURE__ */ k("line", { x1: "8", y1: "21", x2: "16", y2: "21" }),
|
|
419
419
|
/* @__PURE__ */ k("line", { x1: "12", y1: "17", x2: "12", y2: "21" })
|
|
420
420
|
] }),
|
|
421
421
|
// Circle, half solid — high-contrast / mode indicator.
|
|
422
|
-
contrast: /* @__PURE__ */
|
|
422
|
+
contrast: /* @__PURE__ */ P(J, { children: [
|
|
423
423
|
/* @__PURE__ */ k("circle", { cx: "12", cy: "12", r: "10" }),
|
|
424
424
|
/* @__PURE__ */ k("path", { d: "M12 2a10 10 0 0 1 0 20z", fill: "currentColor", stroke: "none" })
|
|
425
425
|
] })
|
|
@@ -435,7 +435,7 @@ const Ki = To, Io = {
|
|
|
435
435
|
// Filled shield with checkmark cutout
|
|
436
436
|
"shield-filled": /* @__PURE__ */ k("path", { fillRule: "evenodd", d: "M12 1L3 5v7c0 6.5 8.5 10.5 9 10.73.5-.23 9-4.23 9-10.73V5l-9-4zm3.707 8.707a1 1 0 0 0-1.414-1.414L11 11.586l-1.293-1.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4z" }),
|
|
437
437
|
// Filled lock body with stroke shackle
|
|
438
|
-
"lock-filled": /* @__PURE__ */
|
|
438
|
+
"lock-filled": /* @__PURE__ */ P(J, { children: [
|
|
439
439
|
/* @__PURE__ */ k("path", { d: "M7 11V7a5 5 0 0 1 10 0v4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
|
|
440
440
|
/* @__PURE__ */ k("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" })
|
|
441
441
|
] })
|
|
@@ -525,7 +525,7 @@ function Yi(s) {
|
|
|
525
525
|
let x;
|
|
526
526
|
t[3] !== i ? (x = [ie.base, i], t[3] = i, t[4] = x) : x = t[4];
|
|
527
527
|
let c;
|
|
528
|
-
t[5] !== n || t[6] !== a ? (c = a ? /* @__PURE__ */
|
|
528
|
+
t[5] !== n || t[6] !== a ? (c = a ? /* @__PURE__ */ P(J, { children: [
|
|
529
529
|
/* @__PURE__ */ k("div", { "data-element-src": "Alert/Alert.tsx:37", ...S(C.div, ie.iconWrap), children: a }),
|
|
530
530
|
/* @__PURE__ */ k("div", { "data-element-src": "Alert/Alert.tsx:38", ...S(C.div, ie.content), children: n })
|
|
531
531
|
] }) : n, t[5] = n, t[6] = a, t[7] = c) : c = t[7];
|
|
@@ -875,7 +875,7 @@ function Ji(s) {
|
|
|
875
875
|
let f;
|
|
876
876
|
t[8] !== r ? (f = /* @__PURE__ */ k("div", { "data-element-src": "Callout/Callout.tsx:49", ...S(C.div, Kt.content), children: r }), t[8] = r, t[9] = f) : f = t[9];
|
|
877
877
|
let g;
|
|
878
|
-
return t[10] !== p || t[11] !== u || t[12] !== f ? (g = /* @__PURE__ */
|
|
878
|
+
return t[10] !== p || t[11] !== u || t[12] !== f ? (g = /* @__PURE__ */ P("div", { "data-element-src": "Callout/Callout.tsx:40", role: "note", ...S(C.div, p), children: [
|
|
879
879
|
u,
|
|
880
880
|
f
|
|
881
881
|
] }), t[10] = p, t[11] = u, t[12] = f, t[13] = g) : g = t[13], g;
|
|
@@ -955,7 +955,7 @@ function Zi(s) {
|
|
|
955
955
|
let p;
|
|
956
956
|
t[3] !== n ? (p = n && /* @__PURE__ */ k("div", { "data-element-src": "Card/Card.tsx:31", ...S(C.div, Zt.header), children: n }), t[3] = n, t[4] = p) : p = t[4];
|
|
957
957
|
let u;
|
|
958
|
-
return t[5] !== l || t[6] !== r || t[7] !== d || t[8] !== p ? (u = /* @__PURE__ */
|
|
958
|
+
return t[5] !== l || t[6] !== r || t[7] !== d || t[8] !== p ? (u = /* @__PURE__ */ P("div", { "data-element-src": "Card/Card.tsx:30", onClick: r, ...S(C.div, d), children: [
|
|
959
959
|
p,
|
|
960
960
|
l
|
|
961
961
|
] }), t[5] = l, t[6] = r, t[7] = d, t[8] = p, t[9] = u) : u = t[9], u;
|
|
@@ -1062,7 +1062,7 @@ function qo(s) {
|
|
|
1062
1062
|
let E;
|
|
1063
1063
|
t[49] !== x ? (E = x && /* @__PURE__ */ k("span", { "data-element-src": "Checkbox/Checkbox.tsx:124", ...S(C.span), children: x }), t[49] = x, t[50] = E) : E = t[50];
|
|
1064
1064
|
let V;
|
|
1065
|
-
return t[51] !== T || t[52] !== G || t[53] !== E || t[54] !== v ? (V = /* @__PURE__ */
|
|
1065
|
+
return t[51] !== T || t[52] !== G || t[53] !== E || t[54] !== v ? (V = /* @__PURE__ */ P("label", { "data-element-src": "Checkbox/Checkbox.tsx:92", ...S(C.label, v), children: [
|
|
1066
1066
|
T,
|
|
1067
1067
|
G,
|
|
1068
1068
|
E
|
|
@@ -1421,8 +1421,8 @@ function Fo(s) {
|
|
|
1421
1421
|
t[14] !== f || t[15] !== x || t[16] !== y || t[17] !== T ? (W = () => {
|
|
1422
1422
|
if (!y && !f || !x)
|
|
1423
1423
|
return;
|
|
1424
|
-
const A = function(
|
|
1425
|
-
|
|
1424
|
+
const A = function(q) {
|
|
1425
|
+
q.key === "Escape" && (q.stopPropagation(), T());
|
|
1426
1426
|
};
|
|
1427
1427
|
return document.addEventListener("keydown", A), () => document.removeEventListener("keydown", A);
|
|
1428
1428
|
}, L = [y, f, x, T], t[14] = f, t[15] = x, t[16] = y, t[17] = T, t[18] = W, t[19] = L) : (W = t[18], L = t[19]), U(W, L);
|
|
@@ -1448,8 +1448,8 @@ function Fo(s) {
|
|
|
1448
1448
|
descriptionId: v,
|
|
1449
1449
|
popupRef: b
|
|
1450
1450
|
}, t[24] = c, t[25] = f, t[26] = v, t[27] = x, t[28] = T, t[29] = z, t[30] = V, t[31] = h, t[32] = F) : F = t[32];
|
|
1451
|
-
let
|
|
1452
|
-
return t[33] !== e || t[34] !== F ? (
|
|
1451
|
+
let N;
|
|
1452
|
+
return t[33] !== e || t[34] !== F ? (N = /* @__PURE__ */ k(Fe.Provider, { value: F, children: e }), t[33] = e, t[34] = F, t[35] = N) : N = t[35], N;
|
|
1453
1453
|
}
|
|
1454
1454
|
function Ho(s) {
|
|
1455
1455
|
const t = M.c(3), {
|
|
@@ -1492,7 +1492,7 @@ function Xo(s) {
|
|
|
1492
1492
|
let I;
|
|
1493
1493
|
t[15] !== e || t[16] !== d || t[17] !== p || t[18] !== T || t[19] !== c ? (I = /* @__PURE__ */ k("div", { "data-element-src": "Dialog/Dialog.tsx:221", ...S(C.div, at.viewport), children: /* @__PURE__ */ k("div", { "data-element-src": "Dialog/Dialog.tsx:222", ref: p, role: "dialog", "aria-modal": !0, "aria-labelledby": c, "aria-describedby": d, ...S(C.div, T), children: e }) }), t[15] = e, t[16] = d, t[17] = p, t[18] = T, t[19] = c, t[20] = I) : I = t[20];
|
|
1494
1494
|
let D;
|
|
1495
|
-
return t[21] !== I || t[22] !== h ? (D = /* @__PURE__ */
|
|
1495
|
+
return t[21] !== I || t[22] !== h ? (D = /* @__PURE__ */ P(J, { children: [
|
|
1496
1496
|
h,
|
|
1497
1497
|
I
|
|
1498
1498
|
] }), t[21] = I, t[22] = h, t[23] = D) : D = t[23], D;
|
|
@@ -1637,17 +1637,17 @@ function ts(s) {
|
|
|
1637
1637
|
onChange: I,
|
|
1638
1638
|
onBlur: D,
|
|
1639
1639
|
ref: j
|
|
1640
|
-
} = s, R = e === void 0 ? "default" : e, W = n === void 0 ? "text" : n, L = Ft(), G = Qo(), E = L?.field, V = l ?? E?.name, F = h ?? (E ? String(E.value ?? "") : void 0),
|
|
1641
|
-
let
|
|
1642
|
-
t[0] !== T || t[1] !== L ? (
|
|
1643
|
-
const H =
|
|
1640
|
+
} = s, R = e === void 0 ? "default" : e, W = n === void 0 ? "text" : n, L = Ft(), G = Qo(), E = L?.field, V = l ?? E?.name, F = h ?? (E ? String(E.value ?? "") : void 0), N = I ?? E?.onChange, A = D ?? E?.onBlur, B = j ?? E?.ref, q = $ ?? L?.disabled, K = L?.invalid ? "error" : R;
|
|
1641
|
+
let O;
|
|
1642
|
+
t[0] !== T || t[1] !== L ? (O = L ? `${L.descriptionId} ${L.invalid ? L.errorId : ""}`.trim() : T, t[0] = T, t[1] = L, t[2] = O) : O = t[2];
|
|
1643
|
+
const H = O;
|
|
1644
1644
|
let X;
|
|
1645
1645
|
t[3] !== w || t[4] !== z || t[5] !== g || t[6] !== m || t[7] !== u || t[8] !== d || t[9] !== p || t[10] !== b || t[11] !== x || t[12] !== f ? (X = {}, b !== void 0 && (X.pattern = b), z && (X.autoFocus = !0), x && (X.readOnly = !0), d !== void 0 && (X.maxLength = d), p !== void 0 && (X.min = p), u !== void 0 && (X.max = u), f !== void 0 && (X.step = f), g !== void 0 && (X.inputMode = g), m !== void 0 && (X.list = m), w !== void 0 && (X["aria-label"] = w), t[3] = w, t[4] = z, t[5] = g, t[6] = m, t[7] = u, t[8] = d, t[9] = p, t[10] = b, t[11] = x, t[12] = f, t[13] = X) : X = t[13];
|
|
1646
|
-
const
|
|
1646
|
+
const tt = r ?? L?.controlId, lt = H || void 0, et = L?.invalid || R === "error" || void 0, it = N, ut = A, yt = B, Mt = re[K], Vt = o === "mono" && re.mono, Z = G?.inGroup && re.inGroup;
|
|
1647
1647
|
let st;
|
|
1648
|
-
t[14] !== Mt || t[15] !== Vt || t[16] !==
|
|
1648
|
+
t[14] !== Mt || t[15] !== Vt || t[16] !== Z ? (st = [re.base, Mt, Vt, Z], t[14] = Mt, t[15] = Vt, t[16] = Z, t[17] = st) : st = t[17];
|
|
1649
1649
|
let xt;
|
|
1650
|
-
return t[18] !== y || t[19] !== v || t[20] !==
|
|
1650
|
+
return t[18] !== y || t[19] !== v || t[20] !== q || t[21] !== V || t[22] !== F || t[23] !== X || t[24] !== c || t[25] !== a || t[26] !== i || t[27] !== st || t[28] !== tt || t[29] !== lt || t[30] !== et || t[31] !== it || t[32] !== ut || t[33] !== yt || t[34] !== W ? (xt = /* @__PURE__ */ k("input", { "data-element-src": "Input/Input.tsx:117", id: tt, type: W, name: V, placeholder: a, required: i, minLength: c, autoComplete: y, value: F, defaultValue: v, disabled: q, "aria-describedby": lt, "aria-invalid": et, onChange: it, onBlur: ut, ref: yt, ...S(C.input, st), ...X, dir: "auto" }), t[18] = y, t[19] = v, t[20] = q, t[21] = V, t[22] = F, t[23] = X, t[24] = c, t[25] = a, t[26] = i, t[27] = st, t[28] = tt, t[29] = lt, t[30] = et, t[31] = it, t[32] = ut, t[33] = yt, t[34] = W, t[35] = xt) : xt = t[35], xt;
|
|
1651
1651
|
}
|
|
1652
1652
|
const Xe = nt(null);
|
|
1653
1653
|
function es() {
|
|
@@ -1812,7 +1812,7 @@ function Ke(s) {
|
|
|
1812
1812
|
let l;
|
|
1813
1813
|
t[5] !== r ? (l = /* @__PURE__ */ k("div", { "data-element-src": "Field/Field.tsx:159", ...S(C.div, Rt.fieldContent), children: r }), t[5] = r, t[6] = l) : l = t[6];
|
|
1814
1814
|
let a;
|
|
1815
|
-
return t[7] !== n || t[8] !== l ? (a = /* @__PURE__ */
|
|
1815
|
+
return t[7] !== n || t[8] !== l ? (a = /* @__PURE__ */ P("div", { "data-element-src": "Field/Field.tsx:157", ...S(C.div, Rt.rootSide), children: [
|
|
1816
1816
|
n,
|
|
1817
1817
|
l
|
|
1818
1818
|
] }), t[7] = n, t[8] = l, t[9] = a) : a = t[9], a;
|
|
@@ -1828,7 +1828,7 @@ function Ye(s) {
|
|
|
1828
1828
|
let c;
|
|
1829
1829
|
t[5] !== o?.required || t[6] !== r ? (c = r === "label" && /* @__PURE__ */ k("span", { "data-element-src": "Field/Field.tsx:183", ...S(C.span, Rt.necessityLabel), children: o?.required ? " (required)" : " (optional)" }), t[5] = o?.required, t[6] = r, t[7] = c) : c = t[7];
|
|
1830
1830
|
let d;
|
|
1831
|
-
return t[8] !== e || t[9] !== l || t[10] !== i || t[11] !== x || t[12] !== c ? (d = /* @__PURE__ */
|
|
1831
|
+
return t[8] !== e || t[9] !== l || t[10] !== i || t[11] !== x || t[12] !== c ? (d = /* @__PURE__ */ P("label", { "data-element-src": "Field/Field.tsx:175", htmlFor: l, ...S(C.label, i), children: [
|
|
1832
1832
|
e,
|
|
1833
1833
|
x,
|
|
1834
1834
|
c
|
|
@@ -1882,12 +1882,12 @@ function er(s) {
|
|
|
1882
1882
|
let z;
|
|
1883
1883
|
t[5] !== n ? (z = /* @__PURE__ */ k(Ut.Header, { children: /* @__PURE__ */ k(Ut.Title, { children: n }) }), t[5] = n, t[6] = z) : z = t[6];
|
|
1884
1884
|
let w;
|
|
1885
|
-
t[7] !== l || t[8] !== a || t[9] !== m ? (w = l ? /* @__PURE__ */
|
|
1885
|
+
t[7] !== l || t[8] !== a || t[9] !== m ? (w = l ? /* @__PURE__ */ P(je.Root, { children: [
|
|
1886
1886
|
a ? /* @__PURE__ */ k(je.Label, { children: a }) : null,
|
|
1887
1887
|
/* @__PURE__ */ k(ts, { font: "mono", value: m, onChange: (G) => b(G.target.value), autoFocus: !0, "aria-label": "confirmation phrase" })
|
|
1888
1888
|
] }) : null, t[7] = l, t[8] = a, t[9] = m, t[10] = w) : w = t[10];
|
|
1889
1889
|
let T;
|
|
1890
|
-
t[11] !== r || t[12] !== w ? (T = /* @__PURE__ */
|
|
1890
|
+
t[11] !== r || t[12] !== w ? (T = /* @__PURE__ */ P(Ut.Body, { children: [
|
|
1891
1891
|
r,
|
|
1892
1892
|
w
|
|
1893
1893
|
] }), t[11] = r, t[12] = w, t[13] = T) : T = t[13];
|
|
@@ -1900,12 +1900,12 @@ function er(s) {
|
|
|
1900
1900
|
satisfied: h
|
|
1901
1901
|
}) : c ? /* @__PURE__ */ k(Te, { variant: "danger", disabled: !h, onClick: c, children: f }) : null, t[19] = f, t[20] = x, t[21] = c, t[22] = h, t[23] = j) : j = t[23];
|
|
1902
1902
|
let R;
|
|
1903
|
-
t[24] !== D || t[25] !== j ? (R = /* @__PURE__ */
|
|
1903
|
+
t[24] !== D || t[25] !== j ? (R = /* @__PURE__ */ P(Ut.Footer, { children: [
|
|
1904
1904
|
D,
|
|
1905
1905
|
j
|
|
1906
1906
|
] }), t[24] = D, t[25] = j, t[26] = R) : R = t[26];
|
|
1907
1907
|
let W;
|
|
1908
|
-
t[27] !== g || t[28] !== R || t[29] !== z || t[30] !== T ? (W = /* @__PURE__ */
|
|
1908
|
+
t[27] !== g || t[28] !== R || t[29] !== z || t[30] !== T ? (W = /* @__PURE__ */ P(Ut.Portal, { size: g, children: [
|
|
1909
1909
|
z,
|
|
1910
1910
|
T,
|
|
1911
1911
|
R
|
|
@@ -1996,12 +1996,12 @@ function as(s) {
|
|
|
1996
1996
|
t[1] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ new Map(), t[1] = a) : a = t[1];
|
|
1997
1997
|
const i = Y(a), x = Y(null), c = Y(null), [d, p] = _(null), [u, f] = _("");
|
|
1998
1998
|
let g;
|
|
1999
|
-
t[2] !== o ? (g = (A, B,
|
|
2000
|
-
const K = i.current.get(B)?.label ?? B,
|
|
1999
|
+
t[2] !== o ? (g = (A, B, q) => {
|
|
2000
|
+
const K = i.current.get(B)?.label ?? B, O = q ? l.current.get(q)?.label ?? q : void 0, H = o ? o({
|
|
2001
2001
|
kind: A,
|
|
2002
2002
|
item: K,
|
|
2003
|
-
zone:
|
|
2004
|
-
}) : A === "pick" ? `Picked up ${K}.` : A === "drop" ? `Dropped ${K} in ${
|
|
2003
|
+
zone: O
|
|
2004
|
+
}) : A === "pick" ? `Picked up ${K}.` : A === "drop" ? `Dropped ${K} in ${O ?? "place"}.` : `Cancelled moving ${K}.`;
|
|
2005
2005
|
f(H);
|
|
2006
2006
|
}, t[2] = o, t[3] = g) : g = t[3];
|
|
2007
2007
|
const m = g;
|
|
@@ -2016,20 +2016,20 @@ function as(s) {
|
|
|
2016
2016
|
}), t[5] = h) : h = t[5];
|
|
2017
2017
|
const v = h;
|
|
2018
2018
|
let $;
|
|
2019
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? ($ = (A, B,
|
|
2019
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? ($ = (A, B, q) => {
|
|
2020
2020
|
const K = i.current.get(A);
|
|
2021
2021
|
if (!K)
|
|
2022
2022
|
return null;
|
|
2023
|
-
const
|
|
2023
|
+
const O = {
|
|
2024
2024
|
id: A,
|
|
2025
2025
|
zone: K.zone,
|
|
2026
2026
|
data: K.data
|
|
2027
2027
|
};
|
|
2028
2028
|
for (const [H, X] of l.current) {
|
|
2029
|
-
const
|
|
2030
|
-
if (B <
|
|
2029
|
+
const tt = X.el.getBoundingClientRect();
|
|
2030
|
+
if (B < tt.left || B > tt.right || q < tt.top || q > tt.bottom)
|
|
2031
2031
|
continue;
|
|
2032
|
-
if (X.accepts && !X.accepts(
|
|
2032
|
+
if (X.accepts && !X.accepts(O))
|
|
2033
2033
|
return null;
|
|
2034
2034
|
const lt = X.orientation === "horizontal";
|
|
2035
2035
|
let et = 0;
|
|
@@ -2037,7 +2037,7 @@ function as(s) {
|
|
|
2037
2037
|
if (it === A || ut.zone !== H)
|
|
2038
2038
|
continue;
|
|
2039
2039
|
const yt = ut.el.getBoundingClientRect(), Mt = lt ? (yt.left + yt.right) / 2 : (yt.top + yt.bottom) / 2;
|
|
2040
|
-
(lt ? B :
|
|
2040
|
+
(lt ? B : q) > Mt && (et = et + 1);
|
|
2041
2041
|
}
|
|
2042
2042
|
return {
|
|
2043
2043
|
zone: H,
|
|
@@ -2050,28 +2050,28 @@ function as(s) {
|
|
|
2050
2050
|
let w;
|
|
2051
2051
|
t[7] !== e || t[8] !== m ? (w = (A) => {
|
|
2052
2052
|
const B = x.current;
|
|
2053
|
-
if (B)
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
B.active && p((P) => {
|
|
2060
|
-
const K = P?.over ?? null, N = i.current.get(B.id);
|
|
2061
|
-
return A && K && N ? (e({
|
|
2062
|
-
item: {
|
|
2063
|
-
id: B.id,
|
|
2064
|
-
zone: N.zone,
|
|
2065
|
-
data: N.data
|
|
2066
|
-
},
|
|
2067
|
-
target: K
|
|
2068
|
-
}), m("drop", B.id, K.zone)) : m("cancel", B.id), null;
|
|
2069
|
-
});
|
|
2053
|
+
if (!B)
|
|
2054
|
+
return;
|
|
2055
|
+
B.holdTimer && clearTimeout(B.holdTimer), c.current !== null && cancelAnimationFrame(c.current), c.current = null, x.current = null;
|
|
2056
|
+
try {
|
|
2057
|
+
B.source.hasPointerCapture(B.pointerId) && B.source.releasePointerCapture(B.pointerId);
|
|
2058
|
+
} catch {
|
|
2070
2059
|
}
|
|
2060
|
+
if (!B.active)
|
|
2061
|
+
return;
|
|
2062
|
+
const q = i.current.get(B.id);
|
|
2063
|
+
p(null), A && q ? (e({
|
|
2064
|
+
item: {
|
|
2065
|
+
id: B.id,
|
|
2066
|
+
zone: q.zone,
|
|
2067
|
+
data: q.data
|
|
2068
|
+
},
|
|
2069
|
+
target: A
|
|
2070
|
+
}), m("drop", B.id, A.zone)) : m("cancel", B.id);
|
|
2071
2071
|
}, t[7] = e, t[8] = m, t[9] = w) : w = t[9];
|
|
2072
2072
|
const T = w;
|
|
2073
2073
|
let I;
|
|
2074
|
-
t[10] !== m ? (I = (A, B,
|
|
2074
|
+
t[10] !== m ? (I = (A, B, q) => {
|
|
2075
2075
|
A.active = !0;
|
|
2076
2076
|
const K = i.current.get(A.id);
|
|
2077
2077
|
p({
|
|
@@ -2080,8 +2080,8 @@ function as(s) {
|
|
|
2080
2080
|
width: A.width,
|
|
2081
2081
|
height: A.height,
|
|
2082
2082
|
x: B - A.offsetX,
|
|
2083
|
-
y:
|
|
2084
|
-
over: z(A.id, B,
|
|
2083
|
+
y: q - A.offsetY,
|
|
2084
|
+
over: z(A.id, B, q)
|
|
2085
2085
|
}), m("pick", A.id);
|
|
2086
2086
|
}, t[10] = m, t[11] = I) : I = t[11];
|
|
2087
2087
|
const D = I;
|
|
@@ -2089,7 +2089,7 @@ function as(s) {
|
|
|
2089
2089
|
t[12] !== D ? (j = (A, B) => {
|
|
2090
2090
|
if (x.current || B.button !== 0)
|
|
2091
2091
|
return;
|
|
2092
|
-
const
|
|
2092
|
+
const q = B.currentTarget, K = q.getBoundingClientRect(), O = {
|
|
2093
2093
|
id: A,
|
|
2094
2094
|
pointerId: B.pointerId,
|
|
2095
2095
|
downAt: B.timeStamp,
|
|
@@ -2099,71 +2099,62 @@ function as(s) {
|
|
|
2099
2099
|
offsetY: B.clientY - K.top,
|
|
2100
2100
|
width: K.width,
|
|
2101
2101
|
height: K.height,
|
|
2102
|
-
source:
|
|
2102
|
+
source: q,
|
|
2103
2103
|
active: !1,
|
|
2104
2104
|
holdTimer: null
|
|
2105
2105
|
};
|
|
2106
|
-
x.current =
|
|
2106
|
+
x.current = O;
|
|
2107
2107
|
try {
|
|
2108
|
-
|
|
2108
|
+
q.setPointerCapture(B.pointerId);
|
|
2109
2109
|
} catch {
|
|
2110
2110
|
}
|
|
2111
|
-
B.pointerType === "touch" && (
|
|
2112
|
-
|
|
2111
|
+
B.pointerType === "touch" && (O.holdTimer = setTimeout(() => {
|
|
2112
|
+
O.holdTimer = null, x.current === O && !O.active && D(O, O.startX, O.startY);
|
|
2113
2113
|
}, We));
|
|
2114
2114
|
}, t[12] = D, t[13] = j) : j = t[13];
|
|
2115
2115
|
const R = j;
|
|
2116
2116
|
let W, L;
|
|
2117
2117
|
t[14] !== D || t[15] !== T ? (W = () => {
|
|
2118
|
-
const A = (
|
|
2118
|
+
const A = (O) => {
|
|
2119
2119
|
const H = x.current;
|
|
2120
|
-
if (!(!H ||
|
|
2120
|
+
if (!(!H || O.pointerId !== H.pointerId)) {
|
|
2121
2121
|
if (!H.active) {
|
|
2122
|
-
const X = Math.hypot(
|
|
2123
|
-
if (
|
|
2124
|
-
if (
|
|
2122
|
+
const X = Math.hypot(O.clientX - H.startX, O.clientY - H.startY);
|
|
2123
|
+
if (O.pointerType === "touch")
|
|
2124
|
+
if (O.timeStamp - H.downAt >= We)
|
|
2125
2125
|
H.holdTimer && clearTimeout(H.holdTimer), H.holdTimer = null, D(H, H.startX, H.startY);
|
|
2126
2126
|
else {
|
|
2127
|
-
X > Me && T(
|
|
2127
|
+
X > Me && T(null);
|
|
2128
2128
|
return;
|
|
2129
2129
|
}
|
|
2130
2130
|
else {
|
|
2131
2131
|
if (X < Me)
|
|
2132
2132
|
return;
|
|
2133
|
-
D(H,
|
|
2133
|
+
D(H, O.clientX, O.clientY);
|
|
2134
2134
|
}
|
|
2135
2135
|
}
|
|
2136
2136
|
c.current === null && (c.current = requestAnimationFrame(() => {
|
|
2137
2137
|
c.current = null;
|
|
2138
|
-
const X =
|
|
2138
|
+
const X = O.clientX, tt = O.clientY;
|
|
2139
2139
|
p((lt) => lt && {
|
|
2140
2140
|
...lt,
|
|
2141
2141
|
x: X - H.offsetX,
|
|
2142
|
-
y:
|
|
2143
|
-
over: z(H.id, X,
|
|
2142
|
+
y: tt - H.offsetY,
|
|
2143
|
+
over: z(H.id, X, tt)
|
|
2144
2144
|
});
|
|
2145
2145
|
}));
|
|
2146
2146
|
}
|
|
2147
|
-
}, B = (
|
|
2147
|
+
}, B = (O) => {
|
|
2148
2148
|
const H = x.current;
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
const X = z(H.id, N.clientX, N.clientY);
|
|
2152
|
-
p((Z) => Z && {
|
|
2153
|
-
...Z,
|
|
2154
|
-
over: X
|
|
2155
|
-
});
|
|
2156
|
-
}
|
|
2157
|
-
T(!0);
|
|
2158
|
-
}
|
|
2159
|
-
}, P = (N) => {
|
|
2149
|
+
!H || O.pointerId !== H.pointerId || T(H.active ? z(H.id, O.clientX, O.clientY) : null);
|
|
2150
|
+
}, q = (O) => {
|
|
2160
2151
|
const H = x.current;
|
|
2161
|
-
!H ||
|
|
2162
|
-
}, K = (
|
|
2163
|
-
|
|
2152
|
+
!H || O.pointerId !== H.pointerId || T(null);
|
|
2153
|
+
}, K = (O) => {
|
|
2154
|
+
O.key === "Escape" && x.current && T(null);
|
|
2164
2155
|
};
|
|
2165
|
-
return document.addEventListener("pointermove", A), document.addEventListener("pointerup", B), document.addEventListener("pointercancel",
|
|
2166
|
-
document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", B), document.removeEventListener("pointercancel",
|
|
2156
|
+
return document.addEventListener("pointermove", A), document.addEventListener("pointerup", B), document.addEventListener("pointercancel", q), document.addEventListener("keydown", K), () => {
|
|
2157
|
+
document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", B), document.removeEventListener("pointercancel", q), document.removeEventListener("keydown", K);
|
|
2167
2158
|
};
|
|
2168
2159
|
}, L = [D, T, z], t[14] = D, t[15] = T, t[16] = W, t[17] = L) : (W = t[16], L = t[17]), U(W, L);
|
|
2169
2160
|
let G;
|
|
@@ -2175,15 +2166,15 @@ function as(s) {
|
|
|
2175
2166
|
}, t[18] = R, t[19] = d, t[20] = G) : G = t[20];
|
|
2176
2167
|
const E = G;
|
|
2177
2168
|
let V;
|
|
2178
|
-
t[21] !== d ? (V = d && /* @__PURE__ */ k("div", { "data-element-src": "DragDrop/DragDrop.tsx:
|
|
2169
|
+
t[21] !== d ? (V = d && /* @__PURE__ */ k("div", { "data-element-src": "DragDrop/DragDrop.tsx:354", "aria-hidden": !0, ...S(C.div, Et.ghost, Et.ghostAt(d.x, d.y, d.width, d.height)), children: d.preview }), t[21] = d, t[22] = V) : V = t[22];
|
|
2179
2170
|
let F;
|
|
2180
|
-
t[23] !== u ? (F = /* @__PURE__ */ k("div", { "data-element-src": "DragDrop/DragDrop.tsx:
|
|
2181
|
-
let
|
|
2182
|
-
return t[25] !== n || t[26] !== V || t[27] !== F || t[28] !== E ? (
|
|
2171
|
+
t[23] !== u ? (F = /* @__PURE__ */ k("div", { "data-element-src": "DragDrop/DragDrop.tsx:361", role: "status", "aria-live": "polite", "aria-atomic": !0, ...S(C.div, Et.liveRegion), children: u }), t[23] = u, t[24] = F) : F = t[24];
|
|
2172
|
+
let N;
|
|
2173
|
+
return t[25] !== n || t[26] !== V || t[27] !== F || t[28] !== E ? (N = /* @__PURE__ */ P(ye.Provider, { value: E, children: [
|
|
2183
2174
|
n,
|
|
2184
2175
|
V,
|
|
2185
2176
|
F
|
|
2186
|
-
] }), t[25] = n, t[26] = V, t[27] = F, t[28] = E, t[29] =
|
|
2177
|
+
] }), t[25] = n, t[26] = V, t[27] = F, t[28] = E, t[29] = N) : N = t[29], N;
|
|
2187
2178
|
}
|
|
2188
2179
|
function cs(s) {
|
|
2189
2180
|
const t = M.c(13), {
|
|
@@ -2211,7 +2202,7 @@ function cs(s) {
|
|
|
2211
2202
|
let b;
|
|
2212
2203
|
t[7] !== g || t[8] !== m ? (b = [Et.zone, g, m], t[7] = g, t[8] = m, t[9] = b) : b = t[9];
|
|
2213
2204
|
let y;
|
|
2214
|
-
return t[10] !== l || t[11] !== b ? (y = /* @__PURE__ */ k("div", { "data-element-src": "DragDrop/DragDrop.tsx:
|
|
2205
|
+
return t[10] !== l || t[11] !== b ? (y = /* @__PURE__ */ k("div", { "data-element-src": "DragDrop/DragDrop.tsx:409", ref: c, ...S(C.div, b), children: l }), t[10] = l, t[11] = b, t[12] = y) : y = t[12], y;
|
|
2215
2206
|
}
|
|
2216
2207
|
function ds(s) {
|
|
2217
2208
|
const t = M.c(24), {
|
|
@@ -2255,7 +2246,7 @@ function ds(s) {
|
|
|
2255
2246
|
let w;
|
|
2256
2247
|
t[17] !== $ || t[18] !== z ? (w = [Et.item, $, z], t[17] = $, t[18] = z, t[19] = w) : w = t[19];
|
|
2257
2248
|
let T;
|
|
2258
|
-
return t[20] !== i || t[21] !== h || t[22] !== w ? (T = /* @__PURE__ */ k("div", { "data-element-src": "DragDrop/DragDrop.tsx:
|
|
2249
|
+
return t[20] !== i || t[21] !== h || t[22] !== w ? (T = /* @__PURE__ */ k("div", { "data-element-src": "DragDrop/DragDrop.tsx:480", ref: u, onPointerDown: h, ...S(C.div, w), children: i }), t[20] = i, t[21] = h, t[22] = w, t[23] = T) : T = t[23], T;
|
|
2259
2250
|
}
|
|
2260
2251
|
function or() {
|
|
2261
2252
|
const s = M.c(3), t = ot(ye), e = t?.drag?.id ?? null, o = t?.drag?.over ?? null;
|
|
@@ -2585,7 +2576,7 @@ const nr = {
|
|
|
2585
2576
|
Body: ms,
|
|
2586
2577
|
Footer: hs,
|
|
2587
2578
|
Close: ys
|
|
2588
|
-
},
|
|
2579
|
+
}, Q = {
|
|
2589
2580
|
backdrop: {
|
|
2590
2581
|
"position-kVAEAm": "position-xixxii4",
|
|
2591
2582
|
"inset-kpwlN0": "inset-x10a8y8t",
|
|
@@ -2951,10 +2942,10 @@ function Cs(s) {
|
|
|
2951
2942
|
t && (t.style.opacity = "");
|
|
2952
2943
|
}
|
|
2953
2944
|
const Re = {
|
|
2954
|
-
instant:
|
|
2955
|
-
fast:
|
|
2956
|
-
base:
|
|
2957
|
-
slow:
|
|
2945
|
+
instant: Q.closeDurationInstant,
|
|
2946
|
+
fast: Q.closeDurationFast,
|
|
2947
|
+
base: Q.closeDurationBase,
|
|
2948
|
+
slow: Q.closeDurationSlow
|
|
2958
2949
|
}, Je = nt(null);
|
|
2959
2950
|
function se() {
|
|
2960
2951
|
const s = ot(Je);
|
|
@@ -2998,23 +2989,23 @@ function zs(s) {
|
|
|
2998
2989
|
t[12] !== y || t[13] !== p || t[14] !== z || t[15] !== R ? (V = () => {
|
|
2999
2990
|
if (!z && !y || !p)
|
|
3000
2991
|
return;
|
|
3001
|
-
const
|
|
2992
|
+
const O = function(X) {
|
|
3002
2993
|
X.key === "Escape" && (X.stopPropagation(), R());
|
|
3003
2994
|
};
|
|
3004
|
-
return document.addEventListener("keydown",
|
|
2995
|
+
return document.addEventListener("keydown", O), () => document.removeEventListener("keydown", O);
|
|
3005
2996
|
}, F = [z, y, p, R], t[12] = y, t[13] = p, t[14] = z, t[15] = R, t[16] = V, t[17] = F) : (V = t[16], F = t[17]), U(V, F);
|
|
3006
|
-
let
|
|
3007
|
-
t[18] !== y || t[19] !== z ? (
|
|
2997
|
+
let N, A;
|
|
2998
|
+
t[18] !== y || t[19] !== z ? (N = () => {
|
|
3008
2999
|
if (z || y) {
|
|
3009
|
-
const
|
|
3000
|
+
const O = document.body.style.overflow;
|
|
3010
3001
|
return document.body.style.overflow = "hidden", () => {
|
|
3011
|
-
document.body.style.overflow =
|
|
3002
|
+
document.body.style.overflow = O;
|
|
3012
3003
|
};
|
|
3013
3004
|
}
|
|
3014
|
-
}, A = [z, y], t[18] = y, t[19] = z, t[20] =
|
|
3005
|
+
}, A = [z, y], t[18] = y, t[19] = z, t[20] = N, t[21] = A) : (N = t[20], A = t[21]), U(N, A);
|
|
3015
3006
|
const B = z || y;
|
|
3016
|
-
let
|
|
3017
|
-
t[22] !== d || t[23] !== f || t[24] !== y || t[25] !== T || t[26] !== p || t[27] !== R || t[28] !== L || t[29] !== D || t[30] !== u || t[31] !== B || t[32] !== w ? (
|
|
3007
|
+
let q;
|
|
3008
|
+
t[22] !== d || t[23] !== f || t[24] !== y || t[25] !== T || t[26] !== p || t[27] !== R || t[28] !== L || t[29] !== D || t[30] !== u || t[31] !== B || t[32] !== w ? (q = {
|
|
3018
3009
|
open: B,
|
|
3019
3010
|
closing: y,
|
|
3020
3011
|
closeDuration: f,
|
|
@@ -3027,9 +3018,9 @@ function zs(s) {
|
|
|
3027
3018
|
titleId: w,
|
|
3028
3019
|
descriptionId: T,
|
|
3029
3020
|
panelRef: $
|
|
3030
|
-
}, t[22] = d, t[23] = f, t[24] = y, t[25] = T, t[26] = p, t[27] = R, t[28] = L, t[29] = D, t[30] = u, t[31] = B, t[32] = w, t[33] =
|
|
3021
|
+
}, t[22] = d, t[23] = f, t[24] = y, t[25] = T, t[26] = p, t[27] = R, t[28] = L, t[29] = D, t[30] = u, t[31] = B, t[32] = w, t[33] = q) : q = t[33];
|
|
3031
3022
|
let K;
|
|
3032
|
-
return t[34] !== e || t[35] !==
|
|
3023
|
+
return t[34] !== e || t[35] !== q ? (K = /* @__PURE__ */ k(Je.Provider, { value: q, children: e }), t[34] = e, t[35] = q, t[36] = K) : K = t[36], K;
|
|
3033
3024
|
}
|
|
3034
3025
|
function Ts(s) {
|
|
3035
3026
|
const t = M.c(3), {
|
|
@@ -3038,20 +3029,20 @@ function Ts(s) {
|
|
|
3038
3029
|
requestOpen: o
|
|
3039
3030
|
} = se();
|
|
3040
3031
|
let n;
|
|
3041
|
-
return t[0] !== e || t[1] !== o ? (n = /* @__PURE__ */ k("div", { "data-element-src": "Drawer/Drawer.tsx:187", onClick: o, ...S(C.div,
|
|
3032
|
+
return t[0] !== e || t[1] !== o ? (n = /* @__PURE__ */ k("div", { "data-element-src": "Drawer/Drawer.tsx:187", onClick: o, ...S(C.div, Q.inlineWrapper), children: e }), t[0] = e, t[1] = o, t[2] = n) : n = t[2], n;
|
|
3042
3033
|
}
|
|
3043
3034
|
const Is = {
|
|
3044
|
-
right:
|
|
3045
|
-
left:
|
|
3046
|
-
bottom:
|
|
3035
|
+
right: Q.slideInRight,
|
|
3036
|
+
left: Q.slideInLeft,
|
|
3037
|
+
bottom: Q.slideInBottom
|
|
3047
3038
|
}, Ds = {
|
|
3048
|
-
right:
|
|
3049
|
-
left:
|
|
3050
|
-
bottom:
|
|
3039
|
+
right: Q.slideOutRight,
|
|
3040
|
+
left: Q.slideOutLeft,
|
|
3041
|
+
bottom: Q.slideOutBottom
|
|
3051
3042
|
}, js = {
|
|
3052
|
-
right:
|
|
3053
|
-
left:
|
|
3054
|
-
bottom:
|
|
3043
|
+
right: Q.viewportRight,
|
|
3044
|
+
left: Q.viewportLeft,
|
|
3045
|
+
bottom: Q.viewportBottom
|
|
3055
3046
|
};
|
|
3056
3047
|
function Ms(s) {
|
|
3057
3048
|
const t = M.c(37), {
|
|
@@ -3083,33 +3074,33 @@ function Ms(s) {
|
|
|
3083
3074
|
panelRef: g
|
|
3084
3075
|
}, t[3] = i, t[4] = g, t[5] = p, t[6] = y, t[7] = h) : h = t[7], ws(h), !r)
|
|
3085
3076
|
return null;
|
|
3086
|
-
const v = i === "left" || i === "right", $ = l &&
|
|
3077
|
+
const v = i === "left" || i === "right", $ = l && Q.backdropClosing, z = l && Re[a], w = !l && Q.backdropOpen;
|
|
3087
3078
|
let T;
|
|
3088
|
-
t[8] !== $ || t[9] !== z || t[10] !== w ? (T = [
|
|
3079
|
+
t[8] !== $ || t[9] !== z || t[10] !== w ? (T = [Q.backdrop, $, z, w], t[8] = $, t[9] = z, t[10] = w, t[11] = T) : T = t[11];
|
|
3089
3080
|
let I;
|
|
3090
3081
|
t[12] !== b || t[13] !== T ? (I = /* @__PURE__ */ k("div", { "data-element-src": "Drawer/Drawer.tsx:255", ...S(C.div, T), "aria-hidden": !0, onClick: b }), t[12] = b, t[13] = T, t[14] = I) : I = t[14];
|
|
3091
3082
|
const D = js[i];
|
|
3092
3083
|
let j;
|
|
3093
|
-
t[15] !== D ? (j = [
|
|
3094
|
-
const R = v &&
|
|
3095
|
-
let
|
|
3096
|
-
t[17] !== R || t[18] !== W || t[19] !== L || t[20] !== G || t[21] !== E || t[22] !== V || t[23] !== F ? (
|
|
3084
|
+
t[15] !== D ? (j = [Q.viewport, D], t[15] = D, t[16] = j) : j = t[16];
|
|
3085
|
+
const R = v && Q.panelHorizontal, W = v && Q[n], L = !v && Q.panelVertical, G = i === "left" && Q.panelLeftBorder, E = l && Ds[i], V = l && Re[a], F = !l && Is[i];
|
|
3086
|
+
let N;
|
|
3087
|
+
t[17] !== R || t[18] !== W || t[19] !== L || t[20] !== G || t[21] !== E || t[22] !== V || t[23] !== F ? (N = [Q.panel, R, W, L, G, E, V, F], t[17] = R, t[18] = W, t[19] = L, t[20] = G, t[21] = E, t[22] = V, t[23] = F, t[24] = N) : N = t[24];
|
|
3097
3088
|
let A;
|
|
3098
|
-
t[25] !== e || t[26] !== f || t[27] !== g || t[28] !==
|
|
3089
|
+
t[25] !== e || t[26] !== f || t[27] !== g || t[28] !== N || t[29] !== u ? (A = /* @__PURE__ */ k("div", { "data-element-src": "Drawer/Drawer.tsx:268", ref: g, role: "dialog", "aria-modal": !0, "aria-labelledby": u, "aria-describedby": f, ...S(C.div, N), children: e }), t[25] = e, t[26] = f, t[27] = g, t[28] = N, t[29] = u, t[30] = A) : A = t[30];
|
|
3099
3090
|
let B;
|
|
3100
3091
|
t[31] !== j || t[32] !== A ? (B = /* @__PURE__ */ k("div", { "data-element-src": "Drawer/Drawer.tsx:267", ...S(C.div, j), "data-drawer-viewport": "", children: A }), t[31] = j, t[32] = A, t[33] = B) : B = t[33];
|
|
3101
|
-
let
|
|
3102
|
-
return t[34] !== B || t[35] !== I ? (
|
|
3092
|
+
let q;
|
|
3093
|
+
return t[34] !== B || t[35] !== I ? (q = /* @__PURE__ */ P(J, { children: [
|
|
3103
3094
|
I,
|
|
3104
3095
|
B
|
|
3105
|
-
] }), t[34] = B, t[35] = I, t[36] =
|
|
3096
|
+
] }), t[34] = B, t[35] = I, t[36] = q) : q = t[36], q;
|
|
3106
3097
|
}
|
|
3107
3098
|
function Ws(s) {
|
|
3108
3099
|
const t = M.c(2), {
|
|
3109
3100
|
children: e
|
|
3110
3101
|
} = s;
|
|
3111
3102
|
let o;
|
|
3112
|
-
return t[0] !== e ? (o = /* @__PURE__ */ k("div", { "data-element-src": "Drawer/Drawer.tsx:295", ...S(C.div,
|
|
3103
|
+
return t[0] !== e ? (o = /* @__PURE__ */ k("div", { "data-element-src": "Drawer/Drawer.tsx:295", ...S(C.div, Q.header), children: e }), t[0] = e, t[1] = o) : o = t[1], o;
|
|
3113
3104
|
}
|
|
3114
3105
|
function Ls(s) {
|
|
3115
3106
|
const t = M.c(3), {
|
|
@@ -3118,7 +3109,7 @@ function Ls(s) {
|
|
|
3118
3109
|
titleId: o
|
|
3119
3110
|
} = se();
|
|
3120
3111
|
let n;
|
|
3121
|
-
return t[0] !== e || t[1] !== o ? (n = /* @__PURE__ */ k("h2", { "data-element-src": "Drawer/Drawer.tsx:303", id: o, ...S(C.h2,
|
|
3112
|
+
return t[0] !== e || t[1] !== o ? (n = /* @__PURE__ */ k("h2", { "data-element-src": "Drawer/Drawer.tsx:303", id: o, ...S(C.h2, Q.title), children: e }), t[0] = e, t[1] = o, t[2] = n) : n = t[2], n;
|
|
3122
3113
|
}
|
|
3123
3114
|
function Rs(s) {
|
|
3124
3115
|
const t = M.c(3), {
|
|
@@ -3127,21 +3118,21 @@ function Rs(s) {
|
|
|
3127
3118
|
descriptionId: o
|
|
3128
3119
|
} = se();
|
|
3129
3120
|
let n;
|
|
3130
|
-
return t[0] !== e || t[1] !== o ? (n = /* @__PURE__ */ k("p", { "data-element-src": "Drawer/Drawer.tsx:314", id: o, ...S(C.p,
|
|
3121
|
+
return t[0] !== e || t[1] !== o ? (n = /* @__PURE__ */ k("p", { "data-element-src": "Drawer/Drawer.tsx:314", id: o, ...S(C.p, Q.description), children: e }), t[0] = e, t[1] = o, t[2] = n) : n = t[2], n;
|
|
3131
3122
|
}
|
|
3132
3123
|
function Gs(s) {
|
|
3133
3124
|
const t = M.c(2), {
|
|
3134
3125
|
children: e
|
|
3135
3126
|
} = s;
|
|
3136
3127
|
let o;
|
|
3137
|
-
return t[0] !== e ? (o = /* @__PURE__ */ k("div", { "data-element-src": "Drawer/Drawer.tsx:323", ...S(C.div,
|
|
3128
|
+
return t[0] !== e ? (o = /* @__PURE__ */ k("div", { "data-element-src": "Drawer/Drawer.tsx:323", ...S(C.div, Q.body), children: e }), t[0] = e, t[1] = o) : o = t[1], o;
|
|
3138
3129
|
}
|
|
3139
3130
|
function Es(s) {
|
|
3140
3131
|
const t = M.c(2), {
|
|
3141
3132
|
children: e
|
|
3142
3133
|
} = s;
|
|
3143
3134
|
let o;
|
|
3144
|
-
return t[0] !== e ? (o = /* @__PURE__ */ k("div", { "data-element-src": "Drawer/Drawer.tsx:329", ...S(C.div,
|
|
3135
|
+
return t[0] !== e ? (o = /* @__PURE__ */ k("div", { "data-element-src": "Drawer/Drawer.tsx:329", ...S(C.div, Q.footer), children: e }), t[0] = e, t[1] = o) : o = t[1], o;
|
|
3145
3136
|
}
|
|
3146
3137
|
function Bs(s) {
|
|
3147
3138
|
const t = M.c(7), {
|
|
@@ -3152,12 +3143,12 @@ function Bs(s) {
|
|
|
3152
3143
|
} = se();
|
|
3153
3144
|
if (e) {
|
|
3154
3145
|
let i;
|
|
3155
|
-
return t[0] !== e || t[1] !== r ? (i = /* @__PURE__ */ k("div", { "data-element-src": "Drawer/Drawer.tsx:344", onClick: r, ...S(C.div,
|
|
3146
|
+
return t[0] !== e || t[1] !== r ? (i = /* @__PURE__ */ k("div", { "data-element-src": "Drawer/Drawer.tsx:344", onClick: r, ...S(C.div, Q.inlineWrapper), children: e }), t[0] = e, t[1] = r, t[2] = i) : i = t[2], i;
|
|
3156
3147
|
}
|
|
3157
3148
|
let l;
|
|
3158
3149
|
t[3] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ k("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ k("path", { d: "M4 4l8 8M12 4l-8 8", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }) }), t[3] = l) : l = t[3];
|
|
3159
3150
|
let a;
|
|
3160
|
-
return t[4] !== n || t[5] !== r ? (a = /* @__PURE__ */ k("button", { "data-element-src": "Drawer/Drawer.tsx:351", onClick: r, "aria-label": n, ...S(C.button,
|
|
3151
|
+
return t[4] !== n || t[5] !== r ? (a = /* @__PURE__ */ k("button", { "data-element-src": "Drawer/Drawer.tsx:351", onClick: r, "aria-label": n, ...S(C.button, Q.closeButton), type: "button", children: l }), t[4] = n, t[5] = r, t[6] = a) : a = t[6], a;
|
|
3161
3152
|
}
|
|
3162
3153
|
const ir = {
|
|
3163
3154
|
Root: zs,
|
|
@@ -3203,7 +3194,7 @@ function rr(s) {
|
|
|
3203
3194
|
let l;
|
|
3204
3195
|
t[2] !== n ? (l = n && /* @__PURE__ */ k("div", { "data-element-src": "EmptyState/EmptyState.tsx:16", ...S(C.div, pe.action), children: n }), t[2] = n, t[3] = l) : l = t[3];
|
|
3205
3196
|
let a;
|
|
3206
|
-
return t[4] !== o || t[5] !== r || t[6] !== l ? (a = /* @__PURE__ */
|
|
3197
|
+
return t[4] !== o || t[5] !== r || t[6] !== l ? (a = /* @__PURE__ */ P("div", { "data-element-src": "EmptyState/EmptyState.tsx:13", ...S(C.div, pe.root), children: [
|
|
3207
3198
|
o,
|
|
3208
3199
|
r,
|
|
3209
3200
|
l
|
|
@@ -3585,34 +3576,34 @@ function cr(s) {
|
|
|
3585
3576
|
const b = Y(m);
|
|
3586
3577
|
let y, h;
|
|
3587
3578
|
t[6] !== g || t[7] !== i ? (y = () => {
|
|
3588
|
-
const
|
|
3589
|
-
for (const B of
|
|
3579
|
+
const N = b.current, A = i ? Object.keys(i) : [];
|
|
3580
|
+
for (const B of N)
|
|
3590
3581
|
A.includes(B) || g.clearErrors(B);
|
|
3591
3582
|
if (i)
|
|
3592
|
-
for (const [B,
|
|
3593
|
-
|
|
3583
|
+
for (const [B, q] of Object.entries(i))
|
|
3584
|
+
q && g.setError(B, {
|
|
3594
3585
|
type: "server",
|
|
3595
|
-
message:
|
|
3586
|
+
message: q
|
|
3596
3587
|
});
|
|
3597
3588
|
b.current = A;
|
|
3598
3589
|
}, h = [i, g], t[6] = g, t[7] = i, t[8] = y, t[9] = h) : (y = t[8], h = t[9]), U(y, h);
|
|
3599
3590
|
const v = Y(null);
|
|
3600
3591
|
let $;
|
|
3601
|
-
t[10] !== g ? ($ = (
|
|
3602
|
-
const A = Object.keys(
|
|
3592
|
+
t[10] !== g ? ($ = (N) => {
|
|
3593
|
+
const A = Object.keys(N)[0];
|
|
3603
3594
|
A && g.setFocus(A);
|
|
3604
3595
|
}, t[10] = g, t[11] = $) : $ = t[11];
|
|
3605
3596
|
const z = $;
|
|
3606
3597
|
let w;
|
|
3607
|
-
t[12] !== g || t[13] !== z || t[14] !== n ? (w = (
|
|
3608
|
-
|
|
3598
|
+
t[12] !== g || t[13] !== z || t[14] !== n ? (w = (N) => {
|
|
3599
|
+
N.preventDefault(), g.handleSubmit(n, z)();
|
|
3609
3600
|
}, t[12] = g, t[13] = z, t[14] = n, t[15] = w) : w = t[15];
|
|
3610
3601
|
const T = w;
|
|
3611
3602
|
let I, D;
|
|
3612
3603
|
t[16] !== T ? (I = () => {
|
|
3613
|
-
const
|
|
3614
|
-
if (
|
|
3615
|
-
return
|
|
3604
|
+
const N = v.current;
|
|
3605
|
+
if (N)
|
|
3606
|
+
return N.addEventListener("submit", T), () => N.removeEventListener("submit", T);
|
|
3616
3607
|
}, D = [T], t[16] = T, t[17] = I, t[18] = D) : (I = t[17], D = t[18]), U(I, D);
|
|
3617
3608
|
let j;
|
|
3618
3609
|
t[19] !== c || t[20] !== d || t[21] !== p ? (j = {
|
|
@@ -4101,7 +4092,7 @@ function cn(s) {
|
|
|
4101
4092
|
let $;
|
|
4102
4093
|
t[21] !== n ? ($ = n && /* @__PURE__ */ k("span", { "data-element-src": "RadioGroup/RadioGroup.tsx:102", ...S(C.span), children: n }), t[21] = n, t[22] = $) : $ = t[22];
|
|
4103
4094
|
let z;
|
|
4104
|
-
return t[23] !== p || t[24] !== v || t[25] !== $ || t[26] !== f || t[27] !== m ? (z = /* @__PURE__ */
|
|
4095
|
+
return t[23] !== p || t[24] !== v || t[25] !== $ || t[26] !== f || t[27] !== m ? (z = /* @__PURE__ */ P("label", { "data-element-src": "RadioGroup/RadioGroup.tsx:87", ...S(C.label, f), onClick: p, children: [
|
|
4105
4096
|
m,
|
|
4106
4097
|
v,
|
|
4107
4098
|
$
|
|
@@ -4333,8 +4324,8 @@ function gn(s) {
|
|
|
4333
4324
|
const E = n.current;
|
|
4334
4325
|
if (!E)
|
|
4335
4326
|
return;
|
|
4336
|
-
const V = (f ? G.clientY : G.clientX) - p.current, F = m / (b - y),
|
|
4337
|
-
f ? E.scrollTop = u.current +
|
|
4327
|
+
const V = (f ? G.clientY : G.clientX) - p.current, F = m / (b - y), N = V * F;
|
|
4328
|
+
f ? E.scrollTop = u.current + N : E.scrollLeft = u.current + N;
|
|
4338
4329
|
}, t[7] = f, t[8] = m, t[9] = y, t[10] = b, t[11] = n, t[12] = I) : I = t[12];
|
|
4339
4330
|
const D = I;
|
|
4340
4331
|
let j;
|
|
@@ -4499,13 +4490,13 @@ function fn(s) {
|
|
|
4499
4490
|
} = s, [i, x] = jt(o, e ?? null, n);
|
|
4500
4491
|
let c;
|
|
4501
4492
|
t[0] !== o || t[1] !== e || t[2] !== a ? (c = () => {
|
|
4502
|
-
const
|
|
4503
|
-
return
|
|
4493
|
+
const Z = o ?? e;
|
|
4494
|
+
return Z ? a?.[Z] ?? "" : "";
|
|
4504
4495
|
}, t[0] = o, t[1] = e, t[2] = a, t[3] = c) : c = t[3];
|
|
4505
4496
|
const [d, p] = _(c), u = r !== void 0 ? r : d;
|
|
4506
4497
|
let f;
|
|
4507
|
-
t[4] !== r || t[5] !== l ? (f = (
|
|
4508
|
-
r === void 0 && p(
|
|
4498
|
+
t[4] !== r || t[5] !== l ? (f = (Z) => {
|
|
4499
|
+
r === void 0 && p(Z), l?.(Z);
|
|
4509
4500
|
}, t[4] = r, t[5] = l, t[6] = f) : f = t[6];
|
|
4510
4501
|
const g = f, [m, b] = _(!1);
|
|
4511
4502
|
let y;
|
|
@@ -4525,10 +4516,10 @@ function fn(s) {
|
|
|
4525
4516
|
let E;
|
|
4526
4517
|
t[12] !== i ? (E = () => {
|
|
4527
4518
|
b(!0);
|
|
4528
|
-
const
|
|
4519
|
+
const Z = j.current, st = W.current;
|
|
4529
4520
|
let xt = null;
|
|
4530
4521
|
for (const kt of st) {
|
|
4531
|
-
const gt =
|
|
4522
|
+
const gt = Z.get(kt);
|
|
4532
4523
|
if (gt && gt.value === i) {
|
|
4533
4524
|
xt = kt;
|
|
4534
4525
|
break;
|
|
@@ -4538,23 +4529,23 @@ function fn(s) {
|
|
|
4538
4529
|
}, t[12] = i, t[13] = E) : E = t[13];
|
|
4539
4530
|
const V = E;
|
|
4540
4531
|
let F;
|
|
4541
|
-
t[14] !== h || t[15] !== g || t[16] !== x ? (F = (
|
|
4542
|
-
x(
|
|
4543
|
-
const st = h[
|
|
4532
|
+
t[14] !== h || t[15] !== g || t[16] !== x ? (F = (Z) => {
|
|
4533
|
+
x(Z);
|
|
4534
|
+
const st = h[Z] ?? Z;
|
|
4544
4535
|
g(st), G(), I.current?.focus();
|
|
4545
4536
|
}, t[14] = h, t[15] = g, t[16] = x, t[17] = F) : F = t[17];
|
|
4546
|
-
const
|
|
4537
|
+
const N = F;
|
|
4547
4538
|
let A;
|
|
4548
|
-
t[18] === Symbol.for("react.memo_cache_sentinel") ? (A = (
|
|
4549
|
-
v((xt) => xt[
|
|
4539
|
+
t[18] === Symbol.for("react.memo_cache_sentinel") ? (A = (Z, st) => {
|
|
4540
|
+
v((xt) => xt[Z] === st ? xt : {
|
|
4550
4541
|
...xt,
|
|
4551
|
-
[
|
|
4542
|
+
[Z]: st
|
|
4552
4543
|
});
|
|
4553
4544
|
}, t[18] = A) : A = t[18];
|
|
4554
4545
|
const B = A;
|
|
4555
|
-
let
|
|
4556
|
-
t[19] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
4557
|
-
j.current.set(
|
|
4546
|
+
let q;
|
|
4547
|
+
t[19] === Symbol.for("react.memo_cache_sentinel") ? (q = (Z, st, xt) => {
|
|
4548
|
+
j.current.set(Z, {
|
|
4558
4549
|
value: st,
|
|
4559
4550
|
element: xt
|
|
4560
4551
|
});
|
|
@@ -4563,23 +4554,23 @@ function fn(s) {
|
|
|
4563
4554
|
const Se = kt.get(bt)?.element, Ce = kt.get(qt)?.element;
|
|
4564
4555
|
return !Se || !Ce ? 0 : Se.compareDocumentPosition(Ce) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
4565
4556
|
}), W.current = gt, () => {
|
|
4566
|
-
j.current.delete(
|
|
4557
|
+
j.current.delete(Z), W.current = W.current.filter((bt) => bt !== Z);
|
|
4567
4558
|
};
|
|
4568
|
-
}, t[19] =
|
|
4569
|
-
const K =
|
|
4570
|
-
let
|
|
4571
|
-
t[20] !== u || t[21] !== h ? (
|
|
4572
|
-
const
|
|
4573
|
-
return
|
|
4559
|
+
}, t[19] = q) : q = t[19];
|
|
4560
|
+
const K = q;
|
|
4561
|
+
let O;
|
|
4562
|
+
t[20] !== u || t[21] !== h ? (O = () => {
|
|
4563
|
+
const Z = u.toLowerCase();
|
|
4564
|
+
return Z ? W.current.filter((st) => {
|
|
4574
4565
|
const xt = j.current.get(st);
|
|
4575
|
-
return xt ? (h[xt.value] ?? xt.value).toLowerCase().includes(
|
|
4566
|
+
return xt ? (h[xt.value] ?? xt.value).toLowerCase().includes(Z) : !1;
|
|
4576
4567
|
}) : W.current;
|
|
4577
|
-
}, t[20] = u, t[21] = h, t[22] =
|
|
4578
|
-
const H =
|
|
4568
|
+
}, t[20] = u, t[21] = h, t[22] = O) : O = t[22];
|
|
4569
|
+
const H = O;
|
|
4579
4570
|
let X;
|
|
4580
|
-
t[23] !== H || t[24] !== u || t[25] !== m || t[26] !==
|
|
4581
|
-
const
|
|
4582
|
-
if (!
|
|
4571
|
+
t[23] !== H || t[24] !== u || t[25] !== m || t[26] !== N ? (X = () => {
|
|
4572
|
+
const Z = T.current;
|
|
4573
|
+
if (!Z || !m)
|
|
4583
4574
|
return;
|
|
4584
4575
|
const st = function(kt) {
|
|
4585
4576
|
const gt = H();
|
|
@@ -4615,9 +4606,9 @@ function fn(s) {
|
|
|
4615
4606
|
kt.preventDefault(), z((bt) => {
|
|
4616
4607
|
if (bt) {
|
|
4617
4608
|
const qt = j.current.get(bt);
|
|
4618
|
-
qt &&
|
|
4609
|
+
qt && N(qt.value);
|
|
4619
4610
|
} else
|
|
4620
|
-
u.trim() ||
|
|
4611
|
+
u.trim() || N("");
|
|
4621
4612
|
return bt;
|
|
4622
4613
|
});
|
|
4623
4614
|
break t;
|
|
@@ -4630,10 +4621,10 @@ function fn(s) {
|
|
|
4630
4621
|
G();
|
|
4631
4622
|
}
|
|
4632
4623
|
};
|
|
4633
|
-
return
|
|
4634
|
-
}, t[23] = H, t[24] = u, t[25] = m, t[26] =
|
|
4635
|
-
let
|
|
4636
|
-
t[28] !== H || t[29] !== m || t[30] !==
|
|
4624
|
+
return Z.addEventListener("keydown", st), () => Z.removeEventListener("keydown", st);
|
|
4625
|
+
}, t[23] = H, t[24] = u, t[25] = m, t[26] = N, t[27] = X) : X = t[27];
|
|
4626
|
+
let tt;
|
|
4627
|
+
t[28] !== H || t[29] !== m || t[30] !== N ? (tt = [m, G, N, H], t[28] = H, t[29] = m, t[30] = N, t[31] = tt) : tt = t[31], U(X, tt);
|
|
4637
4628
|
let lt, et;
|
|
4638
4629
|
t[32] !== $ ? (lt = () => {
|
|
4639
4630
|
if (!$)
|
|
@@ -4653,12 +4644,12 @@ function fn(s) {
|
|
|
4653
4644
|
}
|
|
4654
4645
|
}, ut = [m, i, h, u, g, x], t[35] = u, t[36] = h, t[37] = m, t[38] = g, t[39] = x, t[40] = i, t[41] = it, t[42] = ut) : (it = t[41], ut = t[42]), U(it, ut);
|
|
4655
4646
|
let yt;
|
|
4656
|
-
t[43] !== $ || t[44] !== u || t[45] !== h || t[46] !== w || t[47] !== m || t[48] !== V || t[49] !==
|
|
4647
|
+
t[43] !== $ || t[44] !== u || t[45] !== h || t[46] !== w || t[47] !== m || t[48] !== V || t[49] !== N || t[50] !== g || t[51] !== i ? (yt = {
|
|
4657
4648
|
open: m,
|
|
4658
4649
|
openPopup: V,
|
|
4659
4650
|
close: G,
|
|
4660
4651
|
value: i,
|
|
4661
|
-
setValue:
|
|
4652
|
+
setValue: N,
|
|
4662
4653
|
inputValue: u,
|
|
4663
4654
|
setInputValue: g,
|
|
4664
4655
|
labels: h,
|
|
@@ -4669,7 +4660,7 @@ function fn(s) {
|
|
|
4669
4660
|
registerItem: K,
|
|
4670
4661
|
inputRef: I,
|
|
4671
4662
|
rootRef: T
|
|
4672
|
-
}, t[43] = $, t[44] = u, t[45] = h, t[46] = w, t[47] = m, t[48] = V, t[49] =
|
|
4663
|
+
}, t[43] = $, t[44] = u, t[45] = h, t[46] = w, t[47] = m, t[48] = V, t[49] = N, t[50] = g, t[51] = i, t[52] = yt) : yt = t[52];
|
|
4673
4664
|
const Mt = yt;
|
|
4674
4665
|
let Vt;
|
|
4675
4666
|
return t[53] !== Mt ? (Vt = {
|
|
@@ -4725,7 +4716,7 @@ function $n(s) {
|
|
|
4725
4716
|
let u;
|
|
4726
4717
|
t[6] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ k("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:58", ref: d, "data-portal-mount": !0, ...S(C.div, Ge.portalMount) }), t[6] = u) : u = t[6];
|
|
4727
4718
|
let f;
|
|
4728
|
-
return t[7] !== p || t[8] !== n || t[9] !== x ? (f = /* @__PURE__ */
|
|
4719
|
+
return t[7] !== p || t[8] !== n || t[9] !== x ? (f = /* @__PURE__ */ P("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:56", "data-theme": n, ...S(C.div, x), children: [
|
|
4729
4720
|
p,
|
|
4730
4721
|
u
|
|
4731
4722
|
] }), t[7] = p, t[8] = n, t[9] = x, t[10] = f) : f = t[10], f;
|
|
@@ -4757,7 +4748,7 @@ function wn(s) {
|
|
|
4757
4748
|
let u;
|
|
4758
4749
|
t[7] !== d || t[8] !== e ? (u = e && /* @__PURE__ */ k("input", { "data-element-src": "Combobox/Combobox.tsx:43", type: "hidden", name: e, value: d.value ?? "", dir: "auto", ...S(C.input) }), t[7] = d, t[8] = e, t[9] = u) : u = t[9];
|
|
4759
4750
|
let f;
|
|
4760
|
-
t[10] !== x || t[11] !== p || t[12] !== u ? (f = /* @__PURE__ */
|
|
4751
|
+
t[10] !== x || t[11] !== p || t[12] !== u ? (f = /* @__PURE__ */ P("div", { "data-element-src": "Combobox/Combobox.tsx:42", ref: p, ...S(C.div, Tt.root), children: [
|
|
4761
4752
|
u,
|
|
4762
4753
|
x
|
|
4763
4754
|
] }), t[10] = x, t[11] = p, t[12] = u, t[13] = f) : f = t[13];
|
|
@@ -4801,7 +4792,7 @@ function Sn(s) {
|
|
|
4801
4792
|
let w;
|
|
4802
4793
|
t[12] !== a || t[13] !== n || t[14] !== e || t[15] !== y || t[16] !== h || t[17] !== v || t[18] !== $ || t[19] !== z ? (w = /* @__PURE__ */ k("input", { "data-element-src": "Combobox/Combobox.tsx:63", ref: p, type: "text", role: "combobox", value: a, placeholder: e, "aria-expanded": n, "aria-haspopup": "listbox", "aria-controls": y, "aria-activedescendant": h, "aria-autocomplete": "list", autoComplete: "off", ...S(C.input, Tt.input), onFocus: v, onBlur: $, onChange: z, dir: "auto" }), t[12] = a, t[13] = n, t[14] = e, t[15] = y, t[16] = h, t[17] = v, t[18] = $, t[19] = z, t[20] = w) : w = t[20];
|
|
4803
4794
|
let T;
|
|
4804
|
-
return t[21] !== o || t[22] !== b || t[23] !== w ? (T = /* @__PURE__ */
|
|
4795
|
+
return t[21] !== o || t[22] !== b || t[23] !== w ? (T = /* @__PURE__ */ P("div", { "data-element-src": "Combobox/Combobox.tsx:62", ...S(C.div, b), children: [
|
|
4805
4796
|
w,
|
|
4806
4797
|
o
|
|
4807
4798
|
] }), t[21] = o, t[22] = b, t[23] = w, t[24] = T) : T = t[24], T;
|
|
@@ -5073,84 +5064,84 @@ function jn(s) {
|
|
|
5073
5064
|
const w = z;
|
|
5074
5065
|
let T;
|
|
5075
5066
|
t[5] !== l ? (T = () => {
|
|
5076
|
-
x((
|
|
5077
|
-
if (
|
|
5067
|
+
x((N) => {
|
|
5068
|
+
if (N)
|
|
5078
5069
|
f(null);
|
|
5079
5070
|
else {
|
|
5080
5071
|
const A = h.current, B = $.current;
|
|
5081
|
-
let
|
|
5072
|
+
let q = null;
|
|
5082
5073
|
for (const K of B) {
|
|
5083
|
-
const
|
|
5084
|
-
if (
|
|
5085
|
-
|
|
5074
|
+
const O = A.get(K);
|
|
5075
|
+
if (O && O.value === l) {
|
|
5076
|
+
q = K;
|
|
5086
5077
|
break;
|
|
5087
5078
|
}
|
|
5088
5079
|
}
|
|
5089
|
-
f(
|
|
5080
|
+
f(q ?? (B.length > 0 ? B[0] : null));
|
|
5090
5081
|
}
|
|
5091
|
-
return !
|
|
5082
|
+
return !N;
|
|
5092
5083
|
});
|
|
5093
5084
|
}, t[5] = l, t[6] = T) : T = t[6];
|
|
5094
5085
|
const I = T;
|
|
5095
5086
|
let D;
|
|
5096
|
-
t[7] === Symbol.for("react.memo_cache_sentinel") ? (D = (
|
|
5097
|
-
p((B) => B[
|
|
5087
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (D = (N, A) => {
|
|
5088
|
+
p((B) => B[N] === A ? B : {
|
|
5098
5089
|
...B,
|
|
5099
|
-
[
|
|
5090
|
+
[N]: A
|
|
5100
5091
|
});
|
|
5101
5092
|
}, t[7] = D) : D = t[7];
|
|
5102
5093
|
const j = D;
|
|
5103
5094
|
let R;
|
|
5104
|
-
t[8] === Symbol.for("react.memo_cache_sentinel") ? (R = (
|
|
5105
|
-
h.current.set(
|
|
5095
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (R = (N, A, B) => {
|
|
5096
|
+
h.current.set(N, {
|
|
5106
5097
|
value: A,
|
|
5107
5098
|
element: B
|
|
5108
5099
|
});
|
|
5109
|
-
const
|
|
5110
|
-
return K.sort((
|
|
5111
|
-
const X =
|
|
5112
|
-
return !X || !
|
|
5100
|
+
const q = h.current, K = [...q.keys()];
|
|
5101
|
+
return K.sort((O, H) => {
|
|
5102
|
+
const X = q.get(O)?.element, tt = q.get(H)?.element;
|
|
5103
|
+
return !X || !tt ? 0 : X.compareDocumentPosition(tt) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
5113
5104
|
}), $.current = K, () => {
|
|
5114
|
-
h.current.delete(
|
|
5105
|
+
h.current.delete(N), $.current = $.current.filter((O) => O !== N);
|
|
5115
5106
|
};
|
|
5116
5107
|
}, t[8] = R) : R = t[8];
|
|
5117
5108
|
const W = R;
|
|
5118
5109
|
let L, G;
|
|
5119
5110
|
t[9] !== i || t[10] !== a ? (L = () => {
|
|
5120
|
-
const
|
|
5121
|
-
if (!
|
|
5111
|
+
const N = m.current;
|
|
5112
|
+
if (!N || !i)
|
|
5122
5113
|
return;
|
|
5123
|
-
const A = function(
|
|
5124
|
-
const K = $.current,
|
|
5114
|
+
const A = function(q) {
|
|
5115
|
+
const K = $.current, O = h.current;
|
|
5125
5116
|
if (K.length !== 0)
|
|
5126
|
-
t: switch (
|
|
5117
|
+
t: switch (q.key) {
|
|
5127
5118
|
case "ArrowDown": {
|
|
5128
|
-
|
|
5119
|
+
q.preventDefault(), f((H) => {
|
|
5129
5120
|
const X = H ? K.indexOf(H) : -1;
|
|
5130
5121
|
return K[(X + 1) % K.length];
|
|
5131
5122
|
});
|
|
5132
5123
|
break t;
|
|
5133
5124
|
}
|
|
5134
5125
|
case "ArrowUp": {
|
|
5135
|
-
|
|
5126
|
+
q.preventDefault(), f((H) => {
|
|
5136
5127
|
const X = H ? K.indexOf(H) : 0;
|
|
5137
5128
|
return K[(X - 1 + K.length) % K.length];
|
|
5138
5129
|
});
|
|
5139
5130
|
break t;
|
|
5140
5131
|
}
|
|
5141
5132
|
case "Home": {
|
|
5142
|
-
|
|
5133
|
+
q.preventDefault(), f(K[0]);
|
|
5143
5134
|
break t;
|
|
5144
5135
|
}
|
|
5145
5136
|
case "End": {
|
|
5146
|
-
|
|
5137
|
+
q.preventDefault(), f(K[K.length - 1]);
|
|
5147
5138
|
break t;
|
|
5148
5139
|
}
|
|
5149
5140
|
case "Enter":
|
|
5150
5141
|
case " ": {
|
|
5151
|
-
|
|
5142
|
+
q.preventDefault(), f((H) => {
|
|
5152
5143
|
if (H) {
|
|
5153
|
-
const X =
|
|
5144
|
+
const X = O.get(H);
|
|
5154
5145
|
X && (a(X.value), w());
|
|
5155
5146
|
}
|
|
5156
5147
|
return H;
|
|
@@ -5162,7 +5153,7 @@ function jn(s) {
|
|
|
5162
5153
|
w();
|
|
5163
5154
|
}
|
|
5164
5155
|
};
|
|
5165
|
-
return
|
|
5156
|
+
return N.addEventListener("keydown", A), () => N.removeEventListener("keydown", A);
|
|
5166
5157
|
}, G = [i, w, a], t[9] = i, t[10] = a, t[11] = L, t[12] = G) : (L = t[11], G = t[12]), U(L, G);
|
|
5167
5158
|
let E;
|
|
5168
5159
|
t[13] !== u || t[14] !== d || t[15] !== g || t[16] !== i || t[17] !== a || t[18] !== I || t[19] !== l ? (E = {
|
|
@@ -5209,7 +5200,7 @@ function Mn(s) {
|
|
|
5209
5200
|
let d;
|
|
5210
5201
|
t[5] !== x || t[6] !== e ? (d = e && /* @__PURE__ */ k("input", { "data-element-src": "Select/Select.tsx:26", type: "hidden", name: e, value: x.value ?? "", dir: "auto", ...S(C.input) }), t[5] = x, t[6] = e, t[7] = d) : d = t[7];
|
|
5211
5202
|
let p;
|
|
5212
|
-
t[8] !== a || t[9] !== c || t[10] !== d ? (p = /* @__PURE__ */
|
|
5203
|
+
t[8] !== a || t[9] !== c || t[10] !== d ? (p = /* @__PURE__ */ P("div", { "data-element-src": "Select/Select.tsx:25", ref: c, ...S(C.div, Ct.root), children: [
|
|
5213
5204
|
d,
|
|
5214
5205
|
a
|
|
5215
5206
|
] }), t[8] = a, t[9] = c, t[10] = d, t[11] = p) : p = t[11];
|
|
@@ -5295,7 +5286,7 @@ function Gn(s) {
|
|
|
5295
5286
|
let b;
|
|
5296
5287
|
t[12] !== e || t[13] !== r || t[14] !== u || t[15] !== m ? (b = /* @__PURE__ */ k("div", { "data-element-src": "Select/Select.tsx:147", id: r, role: "listbox", "aria-hidden": u, ...S(C.div, m), children: e }), t[12] = e, t[13] = r, t[14] = u, t[15] = m, t[16] = b) : b = t[16];
|
|
5297
5288
|
let y;
|
|
5298
|
-
t[17] !== p || t[18] !== b ? (y = /* @__PURE__ */
|
|
5289
|
+
t[17] !== p || t[18] !== b ? (y = /* @__PURE__ */ P(J, { children: [
|
|
5299
5290
|
p,
|
|
5300
5291
|
b
|
|
5301
5292
|
] }), t[17] = p, t[18] = b, t[19] = y) : y = t[19];
|
|
@@ -5580,8 +5571,8 @@ function Vn({
|
|
|
5580
5571
|
o && a(n);
|
|
5581
5572
|
}, []);
|
|
5582
5573
|
const u = !i || !c.current ? !1 : !!c.current.querySelector(`[data-nav-value="${i}"]`);
|
|
5583
|
-
return /* @__PURE__ */
|
|
5584
|
-
/* @__PURE__ */
|
|
5574
|
+
return /* @__PURE__ */ P("div", { "data-element-src": "SideNav/SideNav.tsx:153", ref: c, ...S(C.div, ht.group), children: [
|
|
5575
|
+
/* @__PURE__ */ P("button", { "data-element-src": "SideNav/SideNav.tsx:154", type: "button", id: d, onClick: () => l(n), ...S(C.button, ht.groupTrigger, u && ht.groupTriggerActive), "aria-expanded": x, "aria-controls": x ? p : void 0, children: [
|
|
5585
5576
|
/* @__PURE__ */ k("span", { "data-element-src": "SideNav/SideNav.tsx:162", ...S(C.span, ht.chevron, x && ht.chevronOpen), children: /* @__PURE__ */ k("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ k("path", { d: "M9 18l6-6-6-6" }) }) }),
|
|
5586
5577
|
t
|
|
5587
5578
|
] }),
|
|
@@ -5598,7 +5589,7 @@ function qn(s) {
|
|
|
5598
5589
|
let l;
|
|
5599
5590
|
t[3] !== e || t[4] !== n ? (l = /* @__PURE__ */ k("div", { "data-element-src": "SideNav/SideNav.tsx:211", role: "group", "aria-labelledby": n, ...S(C.div, ht.items), children: e }), t[3] = e, t[4] = n, t[5] = l) : l = t[5];
|
|
5600
5591
|
let a;
|
|
5601
|
-
return t[6] !== r || t[7] !== l ? (a = /* @__PURE__ */
|
|
5592
|
+
return t[6] !== r || t[7] !== l ? (a = /* @__PURE__ */ P("div", { "data-element-src": "SideNav/SideNav.tsx:207", ...S(C.div, ht.section), children: [
|
|
5602
5593
|
r,
|
|
5603
5594
|
l
|
|
5604
5595
|
] }), t[6] = r, t[7] = l, t[8] = a) : a = t[8], a;
|
|
@@ -5628,7 +5619,7 @@ function Pn(s) {
|
|
|
5628
5619
|
let y;
|
|
5629
5620
|
t[13] !== o ? (y = /* @__PURE__ */ k("span", { "data-element-src": "SideNav/SideNav.tsx:250", ...S(C.span, ht.itemLabel), children: o }), t[13] = o, t[14] = y) : y = t[14];
|
|
5630
5621
|
let h;
|
|
5631
|
-
return t[15] !== y || t[16] !== d || t[17] !== u || t[18] !== f || t[19] !== m || t[20] !== b || t[21] !== e ? (h = /* @__PURE__ */
|
|
5622
|
+
return t[15] !== y || t[16] !== d || t[17] !== u || t[18] !== f || t[19] !== m || t[20] !== b || t[21] !== e ? (h = /* @__PURE__ */ P("button", { "data-element-src": "SideNav/SideNav.tsx:237", type: "button", "data-nav-value": e, onClick: d, ...S(C.button, u), "aria-current": f, children: [
|
|
5632
5623
|
m,
|
|
5633
5624
|
b,
|
|
5634
5625
|
y
|
|
@@ -5698,7 +5689,7 @@ function yr(s) {
|
|
|
5698
5689
|
let i;
|
|
5699
5690
|
t[2] !== r ? (i = /* @__PURE__ */ k("span", { "data-element-src": "Spinner/Spinner.tsx:21", ...S(C.span, Qt.srOnly), children: r }), t[2] = r, t[3] = i) : i = t[3];
|
|
5700
5691
|
let x;
|
|
5701
|
-
return t[4] !== a || t[5] !== i ? (x = /* @__PURE__ */
|
|
5692
|
+
return t[4] !== a || t[5] !== i ? (x = /* @__PURE__ */ P("div", { "data-element-src": "Spinner/Spinner.tsx:19", role: "status", ...S(C.div, Qt.root), children: [
|
|
5702
5693
|
a,
|
|
5703
5694
|
i
|
|
5704
5695
|
] }), t[4] = a, t[5] = i, t[6] = x) : x = t[6], x;
|
|
@@ -5901,7 +5892,7 @@ function Kn(s) {
|
|
|
5901
5892
|
a.onClick(), o(n);
|
|
5902
5893
|
}, children: a.label }) : null, t[16] = a, t[17] = n, t[18] = o, t[19] = $) : $ = t[19];
|
|
5903
5894
|
let z;
|
|
5904
|
-
t[20] !== v || t[21] !== $ ? (z = /* @__PURE__ */
|
|
5895
|
+
t[20] !== v || t[21] !== $ ? (z = /* @__PURE__ */ P("div", { "data-element-src": "Toast/ToastProvider.tsx:128", ...S(C.div, zt.content), children: [
|
|
5905
5896
|
v,
|
|
5906
5897
|
$
|
|
5907
5898
|
] }), t[20] = v, t[21] = $, t[22] = z) : z = t[22];
|
|
@@ -5912,7 +5903,7 @@ function Kn(s) {
|
|
|
5912
5903
|
let I;
|
|
5913
5904
|
t[27] !== w ? (I = /* @__PURE__ */ k("button", { "data-element-src": "Toast/ToastProvider.tsx:143", type: "button", "aria-label": "Dismiss", ...S(C.button, zt.closeBtn), onClick: w, children: T }), t[27] = w, t[28] = I) : I = t[28];
|
|
5914
5905
|
let D;
|
|
5915
|
-
return t[29] !== h || t[30] !== z || t[31] !== I || t[32] !== d || t[33] !== p || t[34] !== f ? (D = /* @__PURE__ */
|
|
5906
|
+
return t[29] !== h || t[30] !== z || t[31] !== I || t[32] !== d || t[33] !== p || t[34] !== f ? (D = /* @__PURE__ */ P("div", { "data-element-src": "Toast/ToastProvider.tsx:120", role: d, "aria-live": p, ...S(C.div, f), children: [
|
|
5916
5907
|
h,
|
|
5917
5908
|
z,
|
|
5918
5909
|
I
|
|
@@ -5927,7 +5918,7 @@ function vr({
|
|
|
5927
5918
|
toast: (i) => e.add(i),
|
|
5928
5919
|
dismiss: (i) => e.remove(i)
|
|
5929
5920
|
}), [e]), l = Xt((i) => e.remove(i), [e]), a = /* @__PURE__ */ k("div", { "data-element-src": "Toast/ToastProvider.tsx:176", role: "region", "aria-label": "Notifications", ...S(C.div, zt.region), children: o.map((i) => /* @__PURE__ */ k(Kn, { entry: i, onDismiss: l }, i.id)) });
|
|
5930
|
-
return /* @__PURE__ */
|
|
5921
|
+
return /* @__PURE__ */ P(lo.Provider, { value: r, children: [
|
|
5931
5922
|
s,
|
|
5932
5923
|
n ? fe(a, n) : a
|
|
5933
5924
|
] });
|
|
@@ -6103,7 +6094,7 @@ function wr({
|
|
|
6103
6094
|
const y = s !== void 0 ? i.values.indexOf(s) : -1;
|
|
6104
6095
|
b.key === "ArrowLeft" && y > 0 ? i.setFocusedIndex(y - 1) : b.key === "ArrowRight" && (y < i.values.length - 1 ? i.setFocusedIndex(y + 1) : (i.inputRef.current?.focus(), i.setFocusedIndex(-1)));
|
|
6105
6096
|
}
|
|
6106
|
-
}, [d, p, u, c, s, i]), g = x.current?.textContent ? `Remove ${x.current.textContent}` : "Remove", m = /* @__PURE__ */
|
|
6097
|
+
}, [d, p, u, c, s, i]), g = x.current?.textContent ? `Remove ${x.current.textContent}` : "Remove", m = /* @__PURE__ */ P(J, { children: [
|
|
6107
6098
|
/* @__PURE__ */ k("span", { "data-element-src": "Tag/Tag.tsx:99", ref: x, ...c ? {
|
|
6108
6099
|
role: "gridcell"
|
|
6109
6100
|
} : {}, ...S(C.span), children: a }),
|
|
@@ -6238,26 +6229,26 @@ function Jn(s) {
|
|
|
6238
6229
|
gridId: u,
|
|
6239
6230
|
name: a
|
|
6240
6231
|
}, t[14] = j, t[15] = T, t[16] = h, t[17] = b, t[18] = u, t[19] = a, t[20] = r, t[21] = W, t[22] = g, t[23] = E) : E = t[23];
|
|
6241
|
-
const V = E, F = !h && Nt.containerStatic,
|
|
6232
|
+
const V = E, F = !h && Nt.containerStatic, N = I && Nt.containerError, A = T && Nt.containerDisabled;
|
|
6242
6233
|
let B;
|
|
6243
|
-
t[24] !==
|
|
6244
|
-
let
|
|
6245
|
-
t[28] !== f ? (
|
|
6234
|
+
t[24] !== N || t[25] !== A || t[26] !== F ? (B = [Nt.container, F, N, A], t[24] = N, t[25] = A, t[26] = F, t[27] = B) : B = t[27];
|
|
6235
|
+
let q;
|
|
6236
|
+
t[28] !== f ? (q = f ? `${f.descriptionId} ${f.invalid ? f.errorId : ""}`.trim() : void 0, t[28] = f, t[29] = q) : q = t[29];
|
|
6246
6237
|
const K = I || void 0;
|
|
6247
|
-
let
|
|
6248
|
-
t[30] !== x || t[31] !== B || t[32] !==
|
|
6238
|
+
let O;
|
|
6239
|
+
t[30] !== x || t[31] !== B || t[32] !== q || t[33] !== K ? (O = /* @__PURE__ */ k("div", { "data-element-src": "TagGroup/TagGroup.tsx:131", ...S(C.div, B), "aria-describedby": q, "aria-invalid": K, children: x }), t[30] = x, t[31] = B, t[32] = q, t[33] = K, t[34] = O) : O = t[34];
|
|
6249
6240
|
let H;
|
|
6250
6241
|
t[35] !== a || t[36] !== g ? (H = a && g.map((et) => /* @__PURE__ */ k("input", { "data-element-src": "TagGroup/TagGroup.tsx:149", type: "hidden", name: a, value: et, dir: "auto", ...S(C.input) }, et)), t[35] = a, t[36] = g, t[37] = H) : H = t[37];
|
|
6251
6242
|
let X;
|
|
6252
6243
|
t[38] !== $ ? (X = /* @__PURE__ */ k("div", { "data-element-src": "TagGroup/TagGroup.tsx:152", role: "status", "aria-live": "polite", "aria-atomic": !0, ...S(C.div, Nt.liveRegion), children: $ }), t[38] = $, t[39] = X) : X = t[39];
|
|
6253
|
-
let
|
|
6254
|
-
t[40] !== i || t[41] !==
|
|
6255
|
-
|
|
6244
|
+
let tt;
|
|
6245
|
+
t[40] !== i || t[41] !== O || t[42] !== H || t[43] !== X ? (tt = /* @__PURE__ */ P("div", { "data-element-src": "TagGroup/TagGroup.tsx:130", ...S(C.div, Nt.root), "aria-label": i, children: [
|
|
6246
|
+
O,
|
|
6256
6247
|
H,
|
|
6257
6248
|
X
|
|
6258
|
-
] }), t[40] = i, t[41] =
|
|
6249
|
+
] }), t[40] = i, t[41] = O, t[42] = H, t[43] = X, t[44] = tt) : tt = t[44];
|
|
6259
6250
|
let lt;
|
|
6260
|
-
return t[45] !== V || t[46] !==
|
|
6251
|
+
return t[45] !== V || t[46] !== tt ? (lt = /* @__PURE__ */ k($e.Provider, { value: V, children: tt }), t[45] = V, t[46] = tt, t[47] = lt) : lt = t[47], lt;
|
|
6261
6252
|
}
|
|
6262
6253
|
function Zn(s) {
|
|
6263
6254
|
const t = M.c(4), {
|
|
@@ -6623,7 +6614,7 @@ function ni(s) {
|
|
|
6623
6614
|
let y;
|
|
6624
6615
|
t[14] !== c || t[15] !== o ? (y = c && /* @__PURE__ */ k("div", { "data-element-src": "Tabs/Tabs.tsx:168", "aria-hidden": !0, ...S(C.div, ft.indicator, o === "horizontal" ? ft.indicatorHorizontal : ft.indicatorVertical, o === "horizontal" ? ft.indicatorOffsetH(c.offset, c.size) : ft.indicatorOffsetV(c.offset, c.size)) }), t[14] = c, t[15] = o, t[16] = y) : y = t[16];
|
|
6625
6616
|
let h;
|
|
6626
|
-
return t[17] !== e || t[18] !== o || t[19] !== b || t[20] !== y ? (h = /* @__PURE__ */
|
|
6617
|
+
return t[17] !== e || t[18] !== o || t[19] !== b || t[20] !== y ? (h = /* @__PURE__ */ P("div", { "data-element-src": "Tabs/Tabs.tsx:160", ref: x, role: "tablist", "aria-orientation": o, ...S(C.div, b), children: [
|
|
6627
6618
|
e,
|
|
6628
6619
|
y
|
|
6629
6620
|
] }), t[17] = e, t[18] = o, t[19] = b, t[20] = y, t[21] = h) : h = t[21], h;
|
|
@@ -7185,7 +7176,7 @@ function bi(s) {
|
|
|
7185
7176
|
let b;
|
|
7186
7177
|
t[8] !== o || t[9] !== i || t[10] !== l || t[11] !== c ? (b = i && /* @__PURE__ */ k("div", { "data-element-src": "Tooltip/Tooltip.tsx:63", id: c, role: "tooltip", ...S(C.div, ke.popup, ke[l]), children: o }), t[8] = o, t[9] = i, t[10] = l, t[11] = c, t[12] = b) : b = t[12];
|
|
7187
7178
|
let y;
|
|
7188
|
-
t[13] !== e || t[14] !== b ? (y = /* @__PURE__ */
|
|
7179
|
+
t[13] !== e || t[14] !== b ? (y = /* @__PURE__ */ P("div", { "data-element-src": "Tooltip/Tooltip.tsx:60", ...S(C.div, ke.root), children: [
|
|
7189
7180
|
e,
|
|
7190
7181
|
b
|
|
7191
7182
|
] }), t[13] = e, t[14] = b, t[15] = y) : y = t[15];
|
|
@@ -7307,7 +7298,7 @@ function Lr(s) {
|
|
|
7307
7298
|
let I;
|
|
7308
7299
|
t[24] !== i ? (I = i && /* @__PURE__ */ k("span", { "data-element-src": "Switch/Switch.tsx:85", ...S(C.span), children: i }), t[24] = i, t[25] = I) : I = t[25];
|
|
7309
7300
|
let D;
|
|
7310
|
-
return t[26] !== T || t[27] !== I || t[28] !== b || t[29] !== y ? (D = /* @__PURE__ */
|
|
7301
|
+
return t[26] !== T || t[27] !== I || t[28] !== b || t[29] !== y ? (D = /* @__PURE__ */ P("label", { "data-element-src": "Switch/Switch.tsx:50", ...S(C.label, b), children: [
|
|
7311
7302
|
y,
|
|
7312
7303
|
T,
|
|
7313
7304
|
I
|
|
@@ -7895,7 +7886,7 @@ function Ar(s) {
|
|
|
7895
7886
|
let p;
|
|
7896
7887
|
t[6] !== r || t[7] !== d ? (p = /* @__PURE__ */ k("main", { "data-element-src": "PageShell/PageShell.tsx:42", ...S(C.main, d), children: r }), t[6] = r, t[7] = d, t[8] = p) : p = t[8];
|
|
7897
7888
|
let u;
|
|
7898
|
-
return t[9] !== c || t[10] !== p ? (u = /* @__PURE__ */
|
|
7889
|
+
return t[9] !== c || t[10] !== p ? (u = /* @__PURE__ */ P("div", { "data-element-src": "PageShell/PageShell.tsx:36", ...S(C.div, wt.root), children: [
|
|
7899
7890
|
c,
|
|
7900
7891
|
p
|
|
7901
7892
|
] }), t[9] = c, t[10] = p, t[11] = u) : u = t[11], u;
|