@plumile/ui 0.1.117 → 0.1.120

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.
Files changed (41) hide show
  1. package/README.md +2 -0
  2. package/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js +2 -1
  3. package/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js.map +1 -1
  4. package/lib/esm/atomic/molecules/markdown/components/MarkdownDelete.css.js +0 -1
  5. package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnoteReference.css.js +1 -0
  6. package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js +90 -94
  7. package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js.map +1 -1
  8. package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js +2 -2
  9. package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js.map +1 -1
  10. package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js +159 -62
  11. package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js.map +1 -1
  12. package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js +2 -2
  13. package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js.map +1 -1
  14. package/lib/esm/i18n/locales/en/ui.js +12 -6
  15. package/lib/esm/i18n/locales/en/ui.js.map +1 -1
  16. package/lib/esm/i18n/locales/fr/ui.js +12 -6
  17. package/lib/esm/i18n/locales/fr/ui.js.map +1 -1
  18. package/lib/esm/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +46 -0
  19. package/lib/esm/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js.map +1 -0
  20. package/lib/esm/node_modules/@dnd-kit/core/dist/core.esm.js +1966 -0
  21. package/lib/esm/node_modules/@dnd-kit/core/dist/core.esm.js.map +1 -0
  22. package/lib/esm/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +348 -0
  23. package/lib/esm/node_modules/@dnd-kit/sortable/dist/sortable.esm.js.map +1 -0
  24. package/lib/esm/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +157 -0
  25. package/lib/esm/node_modules/@dnd-kit/utilities/dist/utilities.esm.js.map +1 -0
  26. package/lib/esm/style.css +1 -1
  27. package/lib/types/admin/organisms/admin_sidebar/AdminSidebar.d.ts +2 -1
  28. package/lib/types/admin/organisms/admin_sidebar/AdminSidebar.d.ts.map +1 -1
  29. package/lib/types/backoffice/molecules/sidebar_nav_item/SidebarNavItem.d.ts +4 -7
  30. package/lib/types/backoffice/molecules/sidebar_nav_item/SidebarNavItem.d.ts.map +1 -1
  31. package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts +1 -0
  32. package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts.map +1 -1
  33. package/lib/types/backoffice/molecules/sidebar_nav_section/SidebarNavSection.d.ts +6 -1
  34. package/lib/types/backoffice/molecules/sidebar_nav_section/SidebarNavSection.d.ts.map +1 -1
  35. package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts +6 -0
  36. package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts.map +1 -1
  37. package/lib/types/i18n/resources.d.ts +8 -0
  38. package/lib/types/i18n/resources.d.ts.map +1 -1
  39. package/package.json +5 -2
  40. package/src/i18n/locales/en/ui.json +4 -0
  41. package/src/i18n/locales/fr/ui.json +4 -0
@@ -0,0 +1,348 @@
1
+ import { CSS as e, isKeyboardEvent as t, subtract as n, useCombinedRefs as r, useIsomorphicLayoutEffect as i, useUniqueId as a } from "../../utilities/dist/utilities.esm.js";
2
+ import { KeyboardCode as o, closestCorners as s, getClientRect as c, getFirstCollision as l, getScrollableAncestors as u, useDndContext as d, useDraggable as f, useDroppable as p } from "../../core/dist/core.esm.js";
3
+ import m, { useContext as h, useEffect as g, useMemo as _, useRef as v, useState as y } from "react";
4
+ //#region ../../node_modules/@dnd-kit/sortable/dist/sortable.esm.js
5
+ function b(e, t, n) {
6
+ let r = e.slice();
7
+ return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
8
+ }
9
+ function x(e, t) {
10
+ return e.reduce((e, n, r) => {
11
+ let i = t.get(n);
12
+ return i && (e[r] = i), e;
13
+ }, Array(e.length));
14
+ }
15
+ function S(e) {
16
+ return e !== null && e >= 0;
17
+ }
18
+ function C(e, t) {
19
+ if (e === t) return !0;
20
+ if (e.length !== t.length) return !1;
21
+ for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
22
+ return !0;
23
+ }
24
+ function w(e) {
25
+ return typeof e == "boolean" ? {
26
+ draggable: e,
27
+ droppable: e
28
+ } : e;
29
+ }
30
+ var T = (e) => {
31
+ let { rects: t, activeIndex: n, overIndex: r, index: i } = e, a = b(t, r, n), o = t[i], s = a[i];
32
+ return !s || !o ? null : {
33
+ x: s.left - o.left,
34
+ y: s.top - o.top,
35
+ scaleX: s.width / o.width,
36
+ scaleY: s.height / o.height
37
+ };
38
+ }, E = {
39
+ scaleX: 1,
40
+ scaleY: 1
41
+ }, D = (e) => {
42
+ let { activeIndex: t, activeNodeRect: n, index: r, rects: i, overIndex: a } = e, o = i[t] ?? n;
43
+ if (!o) return null;
44
+ if (r === t) {
45
+ let e = i[a];
46
+ return e ? {
47
+ x: 0,
48
+ y: t < a ? e.top + e.height - (o.top + o.height) : e.top - o.top,
49
+ ...E
50
+ } : null;
51
+ }
52
+ let s = O(i, r, t);
53
+ return r > t && r <= a ? {
54
+ x: 0,
55
+ y: -o.height - s,
56
+ ...E
57
+ } : r < t && r >= a ? {
58
+ x: 0,
59
+ y: o.height + s,
60
+ ...E
61
+ } : {
62
+ x: 0,
63
+ y: 0,
64
+ ...E
65
+ };
66
+ };
67
+ function O(e, t, n) {
68
+ let r = e[t], i = e[t - 1], a = e[t + 1];
69
+ return r ? n < t ? i ? r.top - (i.top + i.height) : a ? a.top - (r.top + r.height) : 0 : a ? a.top - (r.top + r.height) : i ? r.top - (i.top + i.height) : 0 : 0;
70
+ }
71
+ var k = "Sortable", A = /* @__PURE__ */ m.createContext({
72
+ activeIndex: -1,
73
+ containerId: k,
74
+ disableTransforms: !1,
75
+ items: [],
76
+ overIndex: -1,
77
+ useDragOverlay: !1,
78
+ sortedRects: [],
79
+ strategy: T,
80
+ disabled: {
81
+ draggable: !1,
82
+ droppable: !1
83
+ }
84
+ });
85
+ function j(e) {
86
+ let { children: t, id: n, items: r, strategy: o = T, disabled: s = !1 } = e, { active: c, dragOverlay: l, droppableRects: u, over: f, measureDroppableContainers: p } = d(), h = a(k, n), y = l.rect !== null, b = _(() => r.map((e) => typeof e == "object" && "id" in e ? e.id : e), [r]), S = c != null, E = c ? b.indexOf(c.id) : -1, D = f ? b.indexOf(f.id) : -1, O = v(b), j = !C(b, O.current), M = D !== -1 && E === -1 || j, N = w(s);
87
+ i(() => {
88
+ j && S && p(b);
89
+ }, [
90
+ j,
91
+ b,
92
+ S,
93
+ p
94
+ ]), g(() => {
95
+ O.current = b;
96
+ }, [b]);
97
+ let P = _(() => ({
98
+ activeIndex: E,
99
+ containerId: h,
100
+ disabled: N,
101
+ disableTransforms: M,
102
+ items: b,
103
+ overIndex: D,
104
+ useDragOverlay: y,
105
+ sortedRects: x(b, u),
106
+ strategy: o
107
+ }), [
108
+ E,
109
+ h,
110
+ N.draggable,
111
+ N.droppable,
112
+ M,
113
+ b,
114
+ D,
115
+ u,
116
+ y,
117
+ o
118
+ ]);
119
+ return m.createElement(A.Provider, { value: P }, t);
120
+ }
121
+ var M = (e) => {
122
+ let { id: t, items: n, activeIndex: r, overIndex: i } = e;
123
+ return b(n, r, i).indexOf(t);
124
+ }, N = (e) => {
125
+ let { containerId: t, isSorting: n, wasDragging: r, index: i, items: a, newIndex: o, previousItems: s, previousContainerId: c, transition: l } = e;
126
+ return !l || !r || s !== a && i === o ? !1 : n ? !0 : o !== i && t === c;
127
+ }, P = {
128
+ duration: 200,
129
+ easing: "ease"
130
+ }, F = "transform", I = /* @__PURE__ */ e.Transition.toString({
131
+ property: F,
132
+ duration: 0,
133
+ easing: "linear"
134
+ }), ee = { roleDescription: "sortable" };
135
+ function te(e) {
136
+ let { disabled: t, index: n, node: r, rect: a } = e, [o, s] = y(null), l = v(n);
137
+ return i(() => {
138
+ if (!t && n !== l.current && r.current) {
139
+ let e = a.current;
140
+ if (e) {
141
+ let t = c(r.current, { ignoreTransform: !0 }), n = {
142
+ x: e.left - t.left,
143
+ y: e.top - t.top,
144
+ scaleX: e.width / t.width,
145
+ scaleY: e.height / t.height
146
+ };
147
+ (n.x || n.y) && s(n);
148
+ }
149
+ }
150
+ n !== l.current && (l.current = n);
151
+ }, [
152
+ t,
153
+ n,
154
+ r,
155
+ a
156
+ ]), g(() => {
157
+ o && s(null);
158
+ }, [o]), o;
159
+ }
160
+ function L(n) {
161
+ let { animateLayoutChanges: i = N, attributes: a, disabled: o, data: s, getNewIndex: c = M, id: l, strategy: u, resizeObserverConfig: d, transition: m = P } = n, { items: y, containerId: b, activeIndex: x, disabled: C, disableTransforms: w, sortedRects: T, overIndex: E, useDragOverlay: D, strategy: O } = h(A), k = ne(o, C), j = y.indexOf(l), L = _(() => ({
162
+ sortable: {
163
+ containerId: b,
164
+ index: j,
165
+ items: y
166
+ },
167
+ ...s
168
+ }), [
169
+ b,
170
+ s,
171
+ j,
172
+ y
173
+ ]), R = _(() => y.slice(y.indexOf(l)), [y, l]), { rect: z, node: B, isOver: V, setNodeRef: H } = p({
174
+ id: l,
175
+ data: L,
176
+ disabled: k.droppable,
177
+ resizeObserverConfig: {
178
+ updateMeasurementsFor: R,
179
+ ...d
180
+ }
181
+ }), { active: U, activatorEvent: re, activeNodeRect: ie, attributes: ae, setNodeRef: W, listeners: oe, isDragging: G, over: se, setActivatorNodeRef: ce, transform: le } = f({
182
+ id: l,
183
+ data: L,
184
+ attributes: {
185
+ ...ee,
186
+ ...a
187
+ },
188
+ disabled: k.draggable
189
+ }), ue = r(H, W), K = !!U, q = K && !w && S(x) && S(E), J = !D && G, de = q ? (J && q ? le : null) ?? (u ?? O)({
190
+ rects: T,
191
+ activeNodeRect: ie,
192
+ activeIndex: x,
193
+ overIndex: E,
194
+ index: j
195
+ }) : null, Y = S(x) && S(E) ? c({
196
+ id: l,
197
+ items: y,
198
+ activeIndex: x,
199
+ overIndex: E
200
+ }) : j, X = U?.id, Z = v({
201
+ activeId: X,
202
+ items: y,
203
+ newIndex: Y,
204
+ containerId: b
205
+ }), fe = y !== Z.current.items, Q = i({
206
+ active: U,
207
+ containerId: b,
208
+ isDragging: G,
209
+ isSorting: K,
210
+ id: l,
211
+ index: j,
212
+ items: y,
213
+ newIndex: Z.current.newIndex,
214
+ previousItems: Z.current.items,
215
+ previousContainerId: Z.current.containerId,
216
+ transition: m,
217
+ wasDragging: Z.current.activeId != null
218
+ }), $ = te({
219
+ disabled: !Q,
220
+ index: j,
221
+ node: B,
222
+ rect: z
223
+ });
224
+ return g(() => {
225
+ K && Z.current.newIndex !== Y && (Z.current.newIndex = Y), b !== Z.current.containerId && (Z.current.containerId = b), y !== Z.current.items && (Z.current.items = y);
226
+ }, [
227
+ K,
228
+ Y,
229
+ b,
230
+ y
231
+ ]), g(() => {
232
+ if (X === Z.current.activeId) return;
233
+ if (X != null && Z.current.activeId == null) {
234
+ Z.current.activeId = X;
235
+ return;
236
+ }
237
+ let e = setTimeout(() => {
238
+ Z.current.activeId = X;
239
+ }, 50);
240
+ return () => clearTimeout(e);
241
+ }, [X]), {
242
+ active: U,
243
+ activeIndex: x,
244
+ attributes: ae,
245
+ data: L,
246
+ rect: z,
247
+ index: j,
248
+ newIndex: Y,
249
+ items: y,
250
+ isOver: V,
251
+ isSorting: K,
252
+ isDragging: G,
253
+ listeners: oe,
254
+ node: B,
255
+ overIndex: E,
256
+ over: se,
257
+ setNodeRef: ue,
258
+ setActivatorNodeRef: ce,
259
+ setDroppableNodeRef: H,
260
+ setDraggableNodeRef: W,
261
+ transform: $ ?? de,
262
+ transition: pe()
263
+ };
264
+ function pe() {
265
+ if ($ || fe && Z.current.newIndex === j) return I;
266
+ if (!(J && !t(re) || !m) && (K || Q)) return e.Transition.toString({
267
+ ...m,
268
+ property: F
269
+ });
270
+ }
271
+ }
272
+ function ne(e, t) {
273
+ return typeof e == "boolean" ? {
274
+ draggable: e,
275
+ droppable: !1
276
+ } : {
277
+ draggable: e?.draggable ?? t.draggable,
278
+ droppable: e?.droppable ?? t.droppable
279
+ };
280
+ }
281
+ function R(e) {
282
+ if (!e) return !1;
283
+ let t = e.data.current;
284
+ return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
285
+ }
286
+ var z = [
287
+ o.Down,
288
+ o.Right,
289
+ o.Up,
290
+ o.Left
291
+ ], B = (e, t) => {
292
+ let { context: { active: r, collisionRect: i, droppableRects: a, droppableContainers: c, over: d, scrollableAncestors: f } } = t;
293
+ if (z.includes(e.code)) {
294
+ if (e.preventDefault(), !r || !i) return;
295
+ let t = [];
296
+ c.getEnabled().forEach((n) => {
297
+ if (!n || n != null && n.disabled) return;
298
+ let r = a.get(n.id);
299
+ if (r) switch (e.code) {
300
+ case o.Down:
301
+ i.top < r.top && t.push(n);
302
+ break;
303
+ case o.Up:
304
+ i.top > r.top && t.push(n);
305
+ break;
306
+ case o.Left:
307
+ i.left > r.left && t.push(n);
308
+ break;
309
+ case o.Right:
310
+ i.left < r.left && t.push(n);
311
+ break;
312
+ }
313
+ });
314
+ let p = s({
315
+ active: r,
316
+ collisionRect: i,
317
+ droppableRects: a,
318
+ droppableContainers: t,
319
+ pointerCoordinates: null
320
+ }), m = l(p, "id");
321
+ if (m === d?.id && p.length > 1 && (m = p[1].id), m != null) {
322
+ let e = c.get(r.id), t = c.get(m), o = t ? a.get(t.id) : null, s = t?.node.current;
323
+ if (s && o && e && t) {
324
+ let r = u(s).some((e, t) => f[t] !== e), a = V(e, t), c = H(e, t), l = r || !a ? {
325
+ x: 0,
326
+ y: 0
327
+ } : {
328
+ x: c ? i.width - o.width : 0,
329
+ y: c ? i.height - o.height : 0
330
+ }, d = {
331
+ x: o.left,
332
+ y: o.top
333
+ };
334
+ return l.x && l.y ? d : n(d, l);
335
+ }
336
+ }
337
+ }
338
+ };
339
+ function V(e, t) {
340
+ return !R(e) || !R(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
341
+ }
342
+ function H(e, t) {
343
+ return !R(e) || !R(t) || !V(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
344
+ }
345
+ //#endregion
346
+ export { j as SortableContext, B as sortableKeyboardCoordinates, L as useSortable, D as verticalListSortingStrategy };
347
+
348
+ //# sourceMappingURL=sortable.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortable.esm.js","names":[],"sources":["../../../../../../../../node_modules/@dnd-kit/sortable/dist/sortable.esm.js"],"sourcesContent":["import React, { useMemo, useRef, useEffect, useState, useContext } from 'react';\nimport { useDndContext, getClientRect, useDroppable, useDraggable, closestCorners, getFirstCollision, getScrollableAncestors, KeyboardCode } from '@dnd-kit/core';\nimport { useUniqueId, useIsomorphicLayoutEffect, CSS, useCombinedRefs, isKeyboardEvent, subtract } from '@dnd-kit/utilities';\n\n/**\r\n * Move an array item to a different position. Returns a new array with the item moved to the new position.\r\n */\nfunction arrayMove(array, from, to) {\n const newArray = array.slice();\n newArray.splice(to < 0 ? newArray.length + to : to, 0, newArray.splice(from, 1)[0]);\n return newArray;\n}\n\n/**\r\n * Swap an array item to a different position. Returns a new array with the item swapped to the new position.\r\n */\nfunction arraySwap(array, from, to) {\n const newArray = array.slice();\n newArray[from] = array[to];\n newArray[to] = array[from];\n return newArray;\n}\n\nfunction getSortedRects(items, rects) {\n return items.reduce((accumulator, id, index) => {\n const rect = rects.get(id);\n\n if (rect) {\n accumulator[index] = rect;\n }\n\n return accumulator;\n }, Array(items.length));\n}\n\nfunction isValidIndex(index) {\n return index !== null && index >= 0;\n}\n\nfunction itemsEqual(a, b) {\n if (a === b) {\n return true;\n }\n\n if (a.length !== b.length) {\n return false;\n }\n\n for (let i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction normalizeDisabled(disabled) {\n if (typeof disabled === 'boolean') {\n return {\n draggable: disabled,\n droppable: disabled\n };\n }\n\n return disabled;\n}\n\n// To-do: We should be calculating scale transformation\nconst defaultScale = {\n scaleX: 1,\n scaleY: 1\n};\nconst horizontalListSortingStrategy = _ref => {\n var _rects$activeIndex;\n\n let {\n rects,\n activeNodeRect: fallbackActiveRect,\n activeIndex,\n overIndex,\n index\n } = _ref;\n const activeNodeRect = (_rects$activeIndex = rects[activeIndex]) != null ? _rects$activeIndex : fallbackActiveRect;\n\n if (!activeNodeRect) {\n return null;\n }\n\n const itemGap = getItemGap(rects, index, activeIndex);\n\n if (index === activeIndex) {\n const newIndexRect = rects[overIndex];\n\n if (!newIndexRect) {\n return null;\n }\n\n return {\n x: activeIndex < overIndex ? newIndexRect.left + newIndexRect.width - (activeNodeRect.left + activeNodeRect.width) : newIndexRect.left - activeNodeRect.left,\n y: 0,\n ...defaultScale\n };\n }\n\n if (index > activeIndex && index <= overIndex) {\n return {\n x: -activeNodeRect.width - itemGap,\n y: 0,\n ...defaultScale\n };\n }\n\n if (index < activeIndex && index >= overIndex) {\n return {\n x: activeNodeRect.width + itemGap,\n y: 0,\n ...defaultScale\n };\n }\n\n return {\n x: 0,\n y: 0,\n ...defaultScale\n };\n};\n\nfunction getItemGap(rects, index, activeIndex) {\n const currentRect = rects[index];\n const previousRect = rects[index - 1];\n const nextRect = rects[index + 1];\n\n if (!currentRect || !previousRect && !nextRect) {\n return 0;\n }\n\n if (activeIndex < index) {\n return previousRect ? currentRect.left - (previousRect.left + previousRect.width) : nextRect.left - (currentRect.left + currentRect.width);\n }\n\n return nextRect ? nextRect.left - (currentRect.left + currentRect.width) : currentRect.left - (previousRect.left + previousRect.width);\n}\n\nconst rectSortingStrategy = _ref => {\n let {\n rects,\n activeIndex,\n overIndex,\n index\n } = _ref;\n const newRects = arrayMove(rects, overIndex, activeIndex);\n const oldRect = rects[index];\n const newRect = newRects[index];\n\n if (!newRect || !oldRect) {\n return null;\n }\n\n return {\n x: newRect.left - oldRect.left,\n y: newRect.top - oldRect.top,\n scaleX: newRect.width / oldRect.width,\n scaleY: newRect.height / oldRect.height\n };\n};\n\nconst rectSwappingStrategy = _ref => {\n let {\n activeIndex,\n index,\n rects,\n overIndex\n } = _ref;\n let oldRect;\n let newRect;\n\n if (index === activeIndex) {\n oldRect = rects[index];\n newRect = rects[overIndex];\n }\n\n if (index === overIndex) {\n oldRect = rects[index];\n newRect = rects[activeIndex];\n }\n\n if (!newRect || !oldRect) {\n return null;\n }\n\n return {\n x: newRect.left - oldRect.left,\n y: newRect.top - oldRect.top,\n scaleX: newRect.width / oldRect.width,\n scaleY: newRect.height / oldRect.height\n };\n};\n\n// To-do: We should be calculating scale transformation\nconst defaultScale$1 = {\n scaleX: 1,\n scaleY: 1\n};\nconst verticalListSortingStrategy = _ref => {\n var _rects$activeIndex;\n\n let {\n activeIndex,\n activeNodeRect: fallbackActiveRect,\n index,\n rects,\n overIndex\n } = _ref;\n const activeNodeRect = (_rects$activeIndex = rects[activeIndex]) != null ? _rects$activeIndex : fallbackActiveRect;\n\n if (!activeNodeRect) {\n return null;\n }\n\n if (index === activeIndex) {\n const overIndexRect = rects[overIndex];\n\n if (!overIndexRect) {\n return null;\n }\n\n return {\n x: 0,\n y: activeIndex < overIndex ? overIndexRect.top + overIndexRect.height - (activeNodeRect.top + activeNodeRect.height) : overIndexRect.top - activeNodeRect.top,\n ...defaultScale$1\n };\n }\n\n const itemGap = getItemGap$1(rects, index, activeIndex);\n\n if (index > activeIndex && index <= overIndex) {\n return {\n x: 0,\n y: -activeNodeRect.height - itemGap,\n ...defaultScale$1\n };\n }\n\n if (index < activeIndex && index >= overIndex) {\n return {\n x: 0,\n y: activeNodeRect.height + itemGap,\n ...defaultScale$1\n };\n }\n\n return {\n x: 0,\n y: 0,\n ...defaultScale$1\n };\n};\n\nfunction getItemGap$1(clientRects, index, activeIndex) {\n const currentRect = clientRects[index];\n const previousRect = clientRects[index - 1];\n const nextRect = clientRects[index + 1];\n\n if (!currentRect) {\n return 0;\n }\n\n if (activeIndex < index) {\n return previousRect ? currentRect.top - (previousRect.top + previousRect.height) : nextRect ? nextRect.top - (currentRect.top + currentRect.height) : 0;\n }\n\n return nextRect ? nextRect.top - (currentRect.top + currentRect.height) : previousRect ? currentRect.top - (previousRect.top + previousRect.height) : 0;\n}\n\nconst ID_PREFIX = 'Sortable';\nconst Context = /*#__PURE__*/React.createContext({\n activeIndex: -1,\n containerId: ID_PREFIX,\n disableTransforms: false,\n items: [],\n overIndex: -1,\n useDragOverlay: false,\n sortedRects: [],\n strategy: rectSortingStrategy,\n disabled: {\n draggable: false,\n droppable: false\n }\n});\nfunction SortableContext(_ref) {\n let {\n children,\n id,\n items: userDefinedItems,\n strategy = rectSortingStrategy,\n disabled: disabledProp = false\n } = _ref;\n const {\n active,\n dragOverlay,\n droppableRects,\n over,\n measureDroppableContainers\n } = useDndContext();\n const containerId = useUniqueId(ID_PREFIX, id);\n const useDragOverlay = Boolean(dragOverlay.rect !== null);\n const items = useMemo(() => userDefinedItems.map(item => typeof item === 'object' && 'id' in item ? item.id : item), [userDefinedItems]);\n const isDragging = active != null;\n const activeIndex = active ? items.indexOf(active.id) : -1;\n const overIndex = over ? items.indexOf(over.id) : -1;\n const previousItemsRef = useRef(items);\n const itemsHaveChanged = !itemsEqual(items, previousItemsRef.current);\n const disableTransforms = overIndex !== -1 && activeIndex === -1 || itemsHaveChanged;\n const disabled = normalizeDisabled(disabledProp);\n useIsomorphicLayoutEffect(() => {\n if (itemsHaveChanged && isDragging) {\n measureDroppableContainers(items);\n }\n }, [itemsHaveChanged, items, isDragging, measureDroppableContainers]);\n useEffect(() => {\n previousItemsRef.current = items;\n }, [items]);\n const contextValue = useMemo(() => ({\n activeIndex,\n containerId,\n disabled,\n disableTransforms,\n items,\n overIndex,\n useDragOverlay,\n sortedRects: getSortedRects(items, droppableRects),\n strategy\n }), // eslint-disable-next-line react-hooks/exhaustive-deps\n [activeIndex, containerId, disabled.draggable, disabled.droppable, disableTransforms, items, overIndex, droppableRects, useDragOverlay, strategy]);\n return React.createElement(Context.Provider, {\n value: contextValue\n }, children);\n}\n\nconst defaultNewIndexGetter = _ref => {\n let {\n id,\n items,\n activeIndex,\n overIndex\n } = _ref;\n return arrayMove(items, activeIndex, overIndex).indexOf(id);\n};\nconst defaultAnimateLayoutChanges = _ref2 => {\n let {\n containerId,\n isSorting,\n wasDragging,\n index,\n items,\n newIndex,\n previousItems,\n previousContainerId,\n transition\n } = _ref2;\n\n if (!transition || !wasDragging) {\n return false;\n }\n\n if (previousItems !== items && index === newIndex) {\n return false;\n }\n\n if (isSorting) {\n return true;\n }\n\n return newIndex !== index && containerId === previousContainerId;\n};\nconst defaultTransition = {\n duration: 200,\n easing: 'ease'\n};\nconst transitionProperty = 'transform';\nconst disabledTransition = /*#__PURE__*/CSS.Transition.toString({\n property: transitionProperty,\n duration: 0,\n easing: 'linear'\n});\nconst defaultAttributes = {\n roleDescription: 'sortable'\n};\n\n/*\r\n * When the index of an item changes while sorting,\r\n * we need to temporarily disable the transforms\r\n */\n\nfunction useDerivedTransform(_ref) {\n let {\n disabled,\n index,\n node,\n rect\n } = _ref;\n const [derivedTransform, setDerivedtransform] = useState(null);\n const previousIndex = useRef(index);\n useIsomorphicLayoutEffect(() => {\n if (!disabled && index !== previousIndex.current && node.current) {\n const initial = rect.current;\n\n if (initial) {\n const current = getClientRect(node.current, {\n ignoreTransform: true\n });\n const delta = {\n x: initial.left - current.left,\n y: initial.top - current.top,\n scaleX: initial.width / current.width,\n scaleY: initial.height / current.height\n };\n\n if (delta.x || delta.y) {\n setDerivedtransform(delta);\n }\n }\n }\n\n if (index !== previousIndex.current) {\n previousIndex.current = index;\n }\n }, [disabled, index, node, rect]);\n useEffect(() => {\n if (derivedTransform) {\n setDerivedtransform(null);\n }\n }, [derivedTransform]);\n return derivedTransform;\n}\n\nfunction useSortable(_ref) {\n let {\n animateLayoutChanges = defaultAnimateLayoutChanges,\n attributes: userDefinedAttributes,\n disabled: localDisabled,\n data: customData,\n getNewIndex = defaultNewIndexGetter,\n id,\n strategy: localStrategy,\n resizeObserverConfig,\n transition = defaultTransition\n } = _ref;\n const {\n items,\n containerId,\n activeIndex,\n disabled: globalDisabled,\n disableTransforms,\n sortedRects,\n overIndex,\n useDragOverlay,\n strategy: globalStrategy\n } = useContext(Context);\n const disabled = normalizeLocalDisabled(localDisabled, globalDisabled);\n const index = items.indexOf(id);\n const data = useMemo(() => ({\n sortable: {\n containerId,\n index,\n items\n },\n ...customData\n }), [containerId, customData, index, items]);\n const itemsAfterCurrentSortable = useMemo(() => items.slice(items.indexOf(id)), [items, id]);\n const {\n rect,\n node,\n isOver,\n setNodeRef: setDroppableNodeRef\n } = useDroppable({\n id,\n data,\n disabled: disabled.droppable,\n resizeObserverConfig: {\n updateMeasurementsFor: itemsAfterCurrentSortable,\n ...resizeObserverConfig\n }\n });\n const {\n active,\n activatorEvent,\n activeNodeRect,\n attributes,\n setNodeRef: setDraggableNodeRef,\n listeners,\n isDragging,\n over,\n setActivatorNodeRef,\n transform\n } = useDraggable({\n id,\n data,\n attributes: { ...defaultAttributes,\n ...userDefinedAttributes\n },\n disabled: disabled.draggable\n });\n const setNodeRef = useCombinedRefs(setDroppableNodeRef, setDraggableNodeRef);\n const isSorting = Boolean(active);\n const displaceItem = isSorting && !disableTransforms && isValidIndex(activeIndex) && isValidIndex(overIndex);\n const shouldDisplaceDragSource = !useDragOverlay && isDragging;\n const dragSourceDisplacement = shouldDisplaceDragSource && displaceItem ? transform : null;\n const strategy = localStrategy != null ? localStrategy : globalStrategy;\n const finalTransform = displaceItem ? dragSourceDisplacement != null ? dragSourceDisplacement : strategy({\n rects: sortedRects,\n activeNodeRect,\n activeIndex,\n overIndex,\n index\n }) : null;\n const newIndex = isValidIndex(activeIndex) && isValidIndex(overIndex) ? getNewIndex({\n id,\n items,\n activeIndex,\n overIndex\n }) : index;\n const activeId = active == null ? void 0 : active.id;\n const previous = useRef({\n activeId,\n items,\n newIndex,\n containerId\n });\n const itemsHaveChanged = items !== previous.current.items;\n const shouldAnimateLayoutChanges = animateLayoutChanges({\n active,\n containerId,\n isDragging,\n isSorting,\n id,\n index,\n items,\n newIndex: previous.current.newIndex,\n previousItems: previous.current.items,\n previousContainerId: previous.current.containerId,\n transition,\n wasDragging: previous.current.activeId != null\n });\n const derivedTransform = useDerivedTransform({\n disabled: !shouldAnimateLayoutChanges,\n index,\n node,\n rect\n });\n useEffect(() => {\n if (isSorting && previous.current.newIndex !== newIndex) {\n previous.current.newIndex = newIndex;\n }\n\n if (containerId !== previous.current.containerId) {\n previous.current.containerId = containerId;\n }\n\n if (items !== previous.current.items) {\n previous.current.items = items;\n }\n }, [isSorting, newIndex, containerId, items]);\n useEffect(() => {\n if (activeId === previous.current.activeId) {\n return;\n }\n\n if (activeId != null && previous.current.activeId == null) {\n previous.current.activeId = activeId;\n return;\n }\n\n const timeoutId = setTimeout(() => {\n previous.current.activeId = activeId;\n }, 50);\n return () => clearTimeout(timeoutId);\n }, [activeId]);\n return {\n active,\n activeIndex,\n attributes,\n data,\n rect,\n index,\n newIndex,\n items,\n isOver,\n isSorting,\n isDragging,\n listeners,\n node,\n overIndex,\n over,\n setNodeRef,\n setActivatorNodeRef,\n setDroppableNodeRef,\n setDraggableNodeRef,\n transform: derivedTransform != null ? derivedTransform : finalTransform,\n transition: getTransition()\n };\n\n function getTransition() {\n if ( // Temporarily disable transitions for a single frame to set up derived transforms\n derivedTransform || // Or to prevent items jumping to back to their \"new\" position when items change\n itemsHaveChanged && previous.current.newIndex === index) {\n return disabledTransition;\n }\n\n if (shouldDisplaceDragSource && !isKeyboardEvent(activatorEvent) || !transition) {\n return undefined;\n }\n\n if (isSorting || shouldAnimateLayoutChanges) {\n return CSS.Transition.toString({ ...transition,\n property: transitionProperty\n });\n }\n\n return undefined;\n }\n}\n\nfunction normalizeLocalDisabled(localDisabled, globalDisabled) {\n var _localDisabled$dragga, _localDisabled$droppa;\n\n if (typeof localDisabled === 'boolean') {\n return {\n draggable: localDisabled,\n // Backwards compatibility\n droppable: false\n };\n }\n\n return {\n draggable: (_localDisabled$dragga = localDisabled == null ? void 0 : localDisabled.draggable) != null ? _localDisabled$dragga : globalDisabled.draggable,\n droppable: (_localDisabled$droppa = localDisabled == null ? void 0 : localDisabled.droppable) != null ? _localDisabled$droppa : globalDisabled.droppable\n };\n}\n\nfunction hasSortableData(entry) {\n if (!entry) {\n return false;\n }\n\n const data = entry.data.current;\n\n if (data && 'sortable' in data && typeof data.sortable === 'object' && 'containerId' in data.sortable && 'items' in data.sortable && 'index' in data.sortable) {\n return true;\n }\n\n return false;\n}\n\nconst directions = [KeyboardCode.Down, KeyboardCode.Right, KeyboardCode.Up, KeyboardCode.Left];\nconst sortableKeyboardCoordinates = (event, _ref) => {\n let {\n context: {\n active,\n collisionRect,\n droppableRects,\n droppableContainers,\n over,\n scrollableAncestors\n }\n } = _ref;\n\n if (directions.includes(event.code)) {\n event.preventDefault();\n\n if (!active || !collisionRect) {\n return;\n }\n\n const filteredContainers = [];\n droppableContainers.getEnabled().forEach(entry => {\n if (!entry || entry != null && entry.disabled) {\n return;\n }\n\n const rect = droppableRects.get(entry.id);\n\n if (!rect) {\n return;\n }\n\n switch (event.code) {\n case KeyboardCode.Down:\n if (collisionRect.top < rect.top) {\n filteredContainers.push(entry);\n }\n\n break;\n\n case KeyboardCode.Up:\n if (collisionRect.top > rect.top) {\n filteredContainers.push(entry);\n }\n\n break;\n\n case KeyboardCode.Left:\n if (collisionRect.left > rect.left) {\n filteredContainers.push(entry);\n }\n\n break;\n\n case KeyboardCode.Right:\n if (collisionRect.left < rect.left) {\n filteredContainers.push(entry);\n }\n\n break;\n }\n });\n const collisions = closestCorners({\n active,\n collisionRect: collisionRect,\n droppableRects,\n droppableContainers: filteredContainers,\n pointerCoordinates: null\n });\n let closestId = getFirstCollision(collisions, 'id');\n\n if (closestId === (over == null ? void 0 : over.id) && collisions.length > 1) {\n closestId = collisions[1].id;\n }\n\n if (closestId != null) {\n const activeDroppable = droppableContainers.get(active.id);\n const newDroppable = droppableContainers.get(closestId);\n const newRect = newDroppable ? droppableRects.get(newDroppable.id) : null;\n const newNode = newDroppable == null ? void 0 : newDroppable.node.current;\n\n if (newNode && newRect && activeDroppable && newDroppable) {\n const newScrollAncestors = getScrollableAncestors(newNode);\n const hasDifferentScrollAncestors = newScrollAncestors.some((element, index) => scrollableAncestors[index] !== element);\n const hasSameContainer = isSameContainer(activeDroppable, newDroppable);\n const isAfterActive = isAfter(activeDroppable, newDroppable);\n const offset = hasDifferentScrollAncestors || !hasSameContainer ? {\n x: 0,\n y: 0\n } : {\n x: isAfterActive ? collisionRect.width - newRect.width : 0,\n y: isAfterActive ? collisionRect.height - newRect.height : 0\n };\n const rectCoordinates = {\n x: newRect.left,\n y: newRect.top\n };\n const newCoordinates = offset.x && offset.y ? rectCoordinates : subtract(rectCoordinates, offset);\n return newCoordinates;\n }\n }\n }\n\n return undefined;\n};\n\nfunction isSameContainer(a, b) {\n if (!hasSortableData(a) || !hasSortableData(b)) {\n return false;\n }\n\n return a.data.current.sortable.containerId === b.data.current.sortable.containerId;\n}\n\nfunction isAfter(a, b) {\n if (!hasSortableData(a) || !hasSortableData(b)) {\n return false;\n }\n\n if (!isSameContainer(a, b)) {\n return false;\n }\n\n return a.data.current.sortable.index < b.data.current.sortable.index;\n}\n\nexport { SortableContext, arrayMove, arraySwap, defaultAnimateLayoutChanges, defaultNewIndexGetter, hasSortableData, horizontalListSortingStrategy, rectSortingStrategy, rectSwappingStrategy, sortableKeyboardCoordinates, useSortable, verticalListSortingStrategy };\n//# sourceMappingURL=sortable.esm.js.map\n"],"x_google_ignoreList":[0],"mappings":";;;;AAOA,SAAS,EAAU,GAAO,GAAM,GAAI;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rC,KAGF,EAAE,KAAK,QAAQ,SAAS,gBAAgB,EAAE,KAAK,QAAQ,SAAS;;AAGzE,SAAS,EAAQ,GAAG,GAAG;CASrB,OARI,CAAC,EAAgB,EAAE,IAAI,CAAC,EAAgB,EAAE,IAI1C,CAAC,EAAgB,GAAG,EAAE,GACjB,KAGF,EAAE,KAAK,QAAQ,SAAS,QAAQ,EAAE,KAAK,QAAQ,SAAS"}
@@ -0,0 +1,157 @@
1
+ import { useCallback as e, useEffect as t, useLayoutEffect as n, useMemo as r, useRef as i } from "react";
2
+ //#region ../../node_modules/@dnd-kit/utilities/dist/utilities.esm.js
3
+ function a() {
4
+ var e = [...arguments];
5
+ return r(() => (t) => {
6
+ e.forEach((e) => e(t));
7
+ }, e);
8
+ }
9
+ var o = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
10
+ function s(e) {
11
+ let t = Object.prototype.toString.call(e);
12
+ return t === "[object Window]" || t === "[object global]";
13
+ }
14
+ function c(e) {
15
+ return "nodeType" in e;
16
+ }
17
+ function l(e) {
18
+ return e ? s(e) ? e : c(e) ? e.ownerDocument?.defaultView ?? window : window : window;
19
+ }
20
+ function u(e) {
21
+ let { Document: t } = l(e);
22
+ return e instanceof t;
23
+ }
24
+ function d(e) {
25
+ return s(e) ? !1 : e instanceof l(e).HTMLElement;
26
+ }
27
+ function f(e) {
28
+ return e instanceof l(e).SVGElement;
29
+ }
30
+ function p(e) {
31
+ return e ? s(e) ? e.document : c(e) ? u(e) ? e : d(e) || f(e) ? e.ownerDocument : document : document : document;
32
+ }
33
+ var m = o ? n : t;
34
+ function h(t) {
35
+ let n = i(t);
36
+ return m(() => {
37
+ n.current = t;
38
+ }), e(function() {
39
+ var e = [...arguments];
40
+ return n.current == null ? void 0 : n.current(...e);
41
+ }, []);
42
+ }
43
+ function g() {
44
+ let t = i(null);
45
+ return [e((e, n) => {
46
+ t.current = setInterval(e, n);
47
+ }, []), e(() => {
48
+ t.current !== null && (clearInterval(t.current), t.current = null);
49
+ }, [])];
50
+ }
51
+ function _(e, t) {
52
+ t === void 0 && (t = [e]);
53
+ let n = i(e);
54
+ return m(() => {
55
+ n.current !== e && (n.current = e);
56
+ }, t), n;
57
+ }
58
+ function v(e, t) {
59
+ let n = i();
60
+ return r(() => {
61
+ let t = e(n.current);
62
+ return n.current = t, t;
63
+ }, [...t]);
64
+ }
65
+ function y(t) {
66
+ let n = h(t), r = i(null);
67
+ return [r, e((e) => {
68
+ e !== r.current && n?.(e, r.current), r.current = e;
69
+ }, [])];
70
+ }
71
+ function b(e) {
72
+ let n = i();
73
+ return t(() => {
74
+ n.current = e;
75
+ }, [e]), n.current;
76
+ }
77
+ var x = {};
78
+ function S(e, t) {
79
+ return r(() => {
80
+ if (t) return t;
81
+ let n = x[e] == null ? 0 : x[e] + 1;
82
+ return x[e] = n, e + "-" + n;
83
+ }, [e, t]);
84
+ }
85
+ function C(e) {
86
+ return function(t) {
87
+ return [...arguments].slice(1).reduce((t, n) => {
88
+ let r = Object.entries(n);
89
+ for (let [n, i] of r) {
90
+ let r = t[n];
91
+ r != null && (t[n] = r + e * i);
92
+ }
93
+ return t;
94
+ }, { ...t });
95
+ };
96
+ }
97
+ var w = /* @__PURE__ */ C(1), T = /* @__PURE__ */ C(-1);
98
+ function E(e) {
99
+ return "clientX" in e && "clientY" in e;
100
+ }
101
+ function D(e) {
102
+ if (!e) return !1;
103
+ let { KeyboardEvent: t } = l(e.target);
104
+ return t && e instanceof t;
105
+ }
106
+ function O(e) {
107
+ if (!e) return !1;
108
+ let { TouchEvent: t } = l(e.target);
109
+ return t && e instanceof t;
110
+ }
111
+ function k(e) {
112
+ if (O(e)) {
113
+ if (e.touches && e.touches.length) {
114
+ let { clientX: t, clientY: n } = e.touches[0];
115
+ return {
116
+ x: t,
117
+ y: n
118
+ };
119
+ } else if (e.changedTouches && e.changedTouches.length) {
120
+ let { clientX: t, clientY: n } = e.changedTouches[0];
121
+ return {
122
+ x: t,
123
+ y: n
124
+ };
125
+ }
126
+ }
127
+ return E(e) ? {
128
+ x: e.clientX,
129
+ y: e.clientY
130
+ } : null;
131
+ }
132
+ var A = /* @__PURE__ */ Object.freeze({
133
+ Translate: { toString(e) {
134
+ if (!e) return;
135
+ let { x: t, y: n } = e;
136
+ return "translate3d(" + (t ? Math.round(t) : 0) + "px, " + (n ? Math.round(n) : 0) + "px, 0)";
137
+ } },
138
+ Scale: { toString(e) {
139
+ if (!e) return;
140
+ let { scaleX: t, scaleY: n } = e;
141
+ return "scaleX(" + t + ") scaleY(" + n + ")";
142
+ } },
143
+ Transform: { toString(e) {
144
+ if (e) return [A.Translate.toString(e), A.Scale.toString(e)].join(" ");
145
+ } },
146
+ Transition: { toString(e) {
147
+ let { property: t, duration: n, easing: r } = e;
148
+ return t + " " + n + "ms " + r;
149
+ } }
150
+ }), j = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
151
+ function M(e) {
152
+ return e.matches(j) ? e : e.querySelector(j);
153
+ }
154
+ //#endregion
155
+ export { A as CSS, w as add, o as canUseDOM, M as findFirstFocusableNode, k as getEventCoordinates, p as getOwnerDocument, l as getWindow, u as isDocument, d as isHTMLElement, D as isKeyboardEvent, c as isNode, f as isSVGElement, s as isWindow, T as subtract, a as useCombinedRefs, h as useEvent, g as useInterval, m as useIsomorphicLayoutEffect, _ as useLatestValue, v as useLazyMemo, y as useNodeRef, b as usePrevious, S as useUniqueId };
156
+
157
+ //# sourceMappingURL=utilities.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.esm.js","names":[],"sources":["../../../../../../../../node_modules/@dnd-kit/utilities/dist/utilities.esm.js"],"sourcesContent":["import { useMemo, useLayoutEffect, useEffect, useRef, useCallback } from 'react';\n\nfunction useCombinedRefs() {\n for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {\n refs[_key] = arguments[_key];\n }\n\n return useMemo(() => node => {\n refs.forEach(ref => ref(node));\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n refs);\n}\n\n// https://github.com/facebook/react/blob/master/packages/shared/ExecutionEnvironment.js\nconst canUseDOM = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined';\n\nfunction isWindow(element) {\n const elementString = Object.prototype.toString.call(element);\n return elementString === '[object Window]' || // In Electron context the Window object serializes to [object global]\n elementString === '[object global]';\n}\n\nfunction isNode(node) {\n return 'nodeType' in node;\n}\n\nfunction getWindow(target) {\n var _target$ownerDocument, _target$ownerDocument2;\n\n if (!target) {\n return window;\n }\n\n if (isWindow(target)) {\n return target;\n }\n\n if (!isNode(target)) {\n return window;\n }\n\n return (_target$ownerDocument = (_target$ownerDocument2 = target.ownerDocument) == null ? void 0 : _target$ownerDocument2.defaultView) != null ? _target$ownerDocument : window;\n}\n\nfunction isDocument(node) {\n const {\n Document\n } = getWindow(node);\n return node instanceof Document;\n}\n\nfunction isHTMLElement(node) {\n if (isWindow(node)) {\n return false;\n }\n\n return node instanceof getWindow(node).HTMLElement;\n}\n\nfunction isSVGElement(node) {\n return node instanceof getWindow(node).SVGElement;\n}\n\nfunction getOwnerDocument(target) {\n if (!target) {\n return document;\n }\n\n if (isWindow(target)) {\n return target.document;\n }\n\n if (!isNode(target)) {\n return document;\n }\n\n if (isDocument(target)) {\n return target;\n }\n\n if (isHTMLElement(target) || isSVGElement(target)) {\n return target.ownerDocument;\n }\n\n return document;\n}\n\n/**\r\n * A hook that resolves to useEffect on the server and useLayoutEffect on the client\r\n * @param callback {function} Callback function that is invoked when the dependencies of the hook change\r\n */\n\nconst useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;\n\nfunction useEvent(handler) {\n const handlerRef = useRef(handler);\n useIsomorphicLayoutEffect(() => {\n handlerRef.current = handler;\n });\n return useCallback(function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return handlerRef.current == null ? void 0 : handlerRef.current(...args);\n }, []);\n}\n\nfunction useInterval() {\n const intervalRef = useRef(null);\n const set = useCallback((listener, duration) => {\n intervalRef.current = setInterval(listener, duration);\n }, []);\n const clear = useCallback(() => {\n if (intervalRef.current !== null) {\n clearInterval(intervalRef.current);\n intervalRef.current = null;\n }\n }, []);\n return [set, clear];\n}\n\nfunction useLatestValue(value, dependencies) {\n if (dependencies === void 0) {\n dependencies = [value];\n }\n\n const valueRef = useRef(value);\n useIsomorphicLayoutEffect(() => {\n if (valueRef.current !== value) {\n valueRef.current = value;\n }\n }, dependencies);\n return valueRef;\n}\n\nfunction useLazyMemo(callback, dependencies) {\n const valueRef = useRef();\n return useMemo(() => {\n const newValue = callback(valueRef.current);\n valueRef.current = newValue;\n return newValue;\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [...dependencies]);\n}\n\nfunction useNodeRef(onChange) {\n const onChangeHandler = useEvent(onChange);\n const node = useRef(null);\n const setNodeRef = useCallback(element => {\n if (element !== node.current) {\n onChangeHandler == null ? void 0 : onChangeHandler(element, node.current);\n }\n\n node.current = element;\n }, //eslint-disable-next-line\n []);\n return [node, setNodeRef];\n}\n\nfunction usePrevious(value) {\n const ref = useRef();\n useEffect(() => {\n ref.current = value;\n }, [value]);\n return ref.current;\n}\n\nlet ids = {};\nfunction useUniqueId(prefix, value) {\n return useMemo(() => {\n if (value) {\n return value;\n }\n\n const id = ids[prefix] == null ? 0 : ids[prefix] + 1;\n ids[prefix] = id;\n return prefix + \"-\" + id;\n }, [prefix, value]);\n}\n\nfunction createAdjustmentFn(modifier) {\n return function (object) {\n for (var _len = arguments.length, adjustments = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n adjustments[_key - 1] = arguments[_key];\n }\n\n return adjustments.reduce((accumulator, adjustment) => {\n const entries = Object.entries(adjustment);\n\n for (const [key, valueAdjustment] of entries) {\n const value = accumulator[key];\n\n if (value != null) {\n accumulator[key] = value + modifier * valueAdjustment;\n }\n }\n\n return accumulator;\n }, { ...object\n });\n };\n}\n\nconst add = /*#__PURE__*/createAdjustmentFn(1);\nconst subtract = /*#__PURE__*/createAdjustmentFn(-1);\n\nfunction hasViewportRelativeCoordinates(event) {\n return 'clientX' in event && 'clientY' in event;\n}\n\nfunction isKeyboardEvent(event) {\n if (!event) {\n return false;\n }\n\n const {\n KeyboardEvent\n } = getWindow(event.target);\n return KeyboardEvent && event instanceof KeyboardEvent;\n}\n\nfunction isTouchEvent(event) {\n if (!event) {\n return false;\n }\n\n const {\n TouchEvent\n } = getWindow(event.target);\n return TouchEvent && event instanceof TouchEvent;\n}\n\n/**\r\n * Returns the normalized x and y coordinates for mouse and touch events.\r\n */\n\nfunction getEventCoordinates(event) {\n if (isTouchEvent(event)) {\n if (event.touches && event.touches.length) {\n const {\n clientX: x,\n clientY: y\n } = event.touches[0];\n return {\n x,\n y\n };\n } else if (event.changedTouches && event.changedTouches.length) {\n const {\n clientX: x,\n clientY: y\n } = event.changedTouches[0];\n return {\n x,\n y\n };\n }\n }\n\n if (hasViewportRelativeCoordinates(event)) {\n return {\n x: event.clientX,\n y: event.clientY\n };\n }\n\n return null;\n}\n\nconst CSS = /*#__PURE__*/Object.freeze({\n Translate: {\n toString(transform) {\n if (!transform) {\n return;\n }\n\n const {\n x,\n y\n } = transform;\n return \"translate3d(\" + (x ? Math.round(x) : 0) + \"px, \" + (y ? Math.round(y) : 0) + \"px, 0)\";\n }\n\n },\n Scale: {\n toString(transform) {\n if (!transform) {\n return;\n }\n\n const {\n scaleX,\n scaleY\n } = transform;\n return \"scaleX(\" + scaleX + \") scaleY(\" + scaleY + \")\";\n }\n\n },\n Transform: {\n toString(transform) {\n if (!transform) {\n return;\n }\n\n return [CSS.Translate.toString(transform), CSS.Scale.toString(transform)].join(' ');\n }\n\n },\n Transition: {\n toString(_ref) {\n let {\n property,\n duration,\n easing\n } = _ref;\n return property + \" \" + duration + \"ms \" + easing;\n }\n\n }\n});\n\nconst SELECTOR = 'a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]';\nfunction findFirstFocusableNode(element) {\n if (element.matches(SELECTOR)) {\n return element;\n }\n\n return element.querySelector(SELECTOR);\n}\n\nexport { CSS, add, canUseDOM, findFirstFocusableNode, getEventCoordinates, getOwnerDocument, getWindow, hasViewportRelativeCoordinates, isDocument, isHTMLElement, isKeyboardEvent, isNode, isSVGElement, isTouchEvent, isWindow, subtract, useCombinedRefs, useEvent, useInterval, useIsomorphicLayoutEffect, useLatestValue, useLazyMemo, useNodeRef, usePrevious, useUniqueId };\n//# sourceMappingURL=utilities.esm.js.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAS,IAAkB;CACpB,IAA6B,QACnB;CAGf,OAAO,SAAc,MAAQ;EAC3B,EAAK,SAAQ,MAAO,EAAI,EAAK,CAAC;IAEhC,EAAK;;AAIP,IAAM,IAAY,OAAO,SAAW,OAAsB,OAAO,aAAa,UAAsB,OAAO,SAAS,kBAAkB;AAEtI,SAAS,EAAS,GAAS;CACzB,IAAM,IAAgB,OAAO,UAAU,SAAS,KAAK,EAAQ;CAC7D,OAAO,MAAkB,qBACzB,MAAkB;;AAGpB,SAAS,EAAO,GAAM;CACpB,OAAO,cAAc;;AAGvB,SAAS,EAAU,GAAQ;CAezB,OAZK,IAID,EAAS,EAAO,GACX,IAGJ,EAAO,EAAO,GAIuC,EAAO,eAAyD,eAA+C,SAHhK,SARA;;AAcX,SAAS,EAAW,GAAM;CACxB,IAAM,EACJ,gBACE,EAAU,EAAK;CACnB,OAAO,aAAgB;;AAGzB,SAAS,EAAc,GAAM;CAK3B,OAJI,EAAS,EAAK,GACT,KAGF,aAAgB,EAAU,EAAK,CAAC;;AAGzC,SAAS,EAAa,GAAM;CAC1B,OAAO,aAAgB,EAAU,EAAK,CAAC;;AAGzC,SAAS,EAAiB,GAAQ;CAqBhC,OApBK,IAID,EAAS,EAAO,GACX,EAAO,WAGX,EAAO,EAAO,GAIf,EAAW,EAAO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