@oneclick.dev/cms-core-modules 0.0.61 → 0.0.63

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 (46) hide show
  1. package/dist/{ContentEditor-BAepN3Yd.js → ContentEditor-DKFCmfOs.js} +1 -1
  2. package/dist/{ContentEditor-BPjWW3d1.mjs → ContentEditor-owdOIage.mjs} +1 -1
  3. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DRVxQswt.js +1 -0
  4. package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-BJitmbPE.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-DkgDWC2i.mjs} +130 -125
  5. package/dist/{Overview-DtWvKB3W.mjs → Overview-DiBYtvEX.mjs} +124 -119
  6. package/dist/Overview-qP1guKjx.js +1 -0
  7. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-B7ks5mbf.mjs +2332 -0
  8. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Vxubki_v.js +349 -0
  9. package/dist/{TableView-_2cP-w_7.js → TableView-BqhL_P45.js} +100 -100
  10. package/dist/{TableView-DlhHyuUZ.mjs → TableView-Dbl8qcUy.mjs} +14991 -14728
  11. package/dist/agenda-DFNJ8C1N.mjs +1136 -0
  12. package/dist/agenda-MjkwV63A.js +1 -0
  13. package/dist/floating-ui.dom-CBBY0Ism.js +1 -0
  14. package/dist/floating-ui.dom-xfqXu4GA.mjs +1138 -0
  15. package/dist/{index-DTago6vW-Bhr8E1Y6.js → index-CgfL8UKf-DAN7RkzR.js} +10 -10
  16. package/dist/{index-DTago6vW-CnomHQ_S.mjs → index-CgfL8UKf-DUUg9HDA.mjs} +904 -875
  17. package/dist/index-DBDq-h4j.js +245 -0
  18. package/dist/{index-BDaVYdkD.mjs → index-X0L4AHBR.mjs} +2406 -2394
  19. package/dist/index-YMaY4uuk-BgpTtr73.js +1 -0
  20. package/dist/{index-YMaY4uuk-BshejgNP.mjs → index-YMaY4uuk-C_xV5K9Z.mjs} +13 -14
  21. package/dist/index.cjs.js +1 -1
  22. package/dist/index.mjs +6 -6
  23. package/dist/orders-Bqa3Z3tH.mjs +356 -0
  24. package/dist/orders-D5GJOZXN.js +1 -0
  25. package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +8 -0
  26. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +39 -9
  27. package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +2 -2
  28. package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +8 -0
  29. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +36 -8
  30. package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +46 -9
  31. package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +19 -0
  32. package/dist/src/appointments/pages/edit/orders.vue.d.ts +39 -9
  33. package/package.json +1 -1
  34. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-D50uTpZY.js +0 -1
  35. package/dist/Overview-B_99j5eA.js +0 -1
  36. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CI8YgHdU.js +0 -345
  37. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-P-MWwcVh.mjs +0 -2093
  38. package/dist/agenda-D81m29_4.mjs +0 -1135
  39. package/dist/agenda-uzPPxgsW.js +0 -1
  40. package/dist/floating-ui.dom-C82nbomj.js +0 -1
  41. package/dist/floating-ui.dom-ouSgPqty.mjs +0 -1133
  42. package/dist/index-DfV8-6ON.js +0 -245
  43. package/dist/index-YMaY4uuk-BxVT7IpO.js +0 -1
  44. package/dist/orders-Bh8w0ueq.mjs +0 -346
  45. package/dist/orders-Dt0zMz97.js +0 -1
  46. package/dist/src/appointments/components/edit/EventDialog/ResendConfirmationDialog.vue.d.ts +0 -4
@@ -1,1133 +0,0 @@
1
- const $t = ["top", "right", "bottom", "left"], j = Math.min, C = Math.max, ot = Math.round, nt = Math.floor, W = (t) => ({
2
- x: t,
3
- y: t
4
- }), zt = {
5
- left: "right",
6
- right: "left",
7
- bottom: "top",
8
- top: "bottom"
9
- }, _t = {
10
- start: "end",
11
- end: "start"
12
- };
13
- function ut(t, e, n) {
14
- return C(t, j(e, n));
15
- }
16
- function $(t, e) {
17
- return typeof t == "function" ? t(e) : t;
18
- }
19
- function z(t) {
20
- return t.split("-")[0];
21
- }
22
- function J(t) {
23
- return t.split("-")[1];
24
- }
25
- function ht(t) {
26
- return t === "x" ? "y" : "x";
27
- }
28
- function gt(t) {
29
- return t === "y" ? "height" : "width";
30
- }
31
- const It = /* @__PURE__ */ new Set(["top", "bottom"]);
32
- function k(t) {
33
- return It.has(z(t)) ? "y" : "x";
34
- }
35
- function pt(t) {
36
- return ht(k(t));
37
- }
38
- function Xt(t, e, n) {
39
- n === void 0 && (n = !1);
40
- const o = J(t), i = pt(t), s = gt(i);
41
- let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
42
- return e.reference[s] > e.floating[s] && (r = it(r)), [r, it(r)];
43
- }
44
- function jt(t) {
45
- const e = it(t);
46
- return [dt(t), e, dt(e)];
47
- }
48
- function dt(t) {
49
- return t.replace(/start|end/g, (e) => _t[e]);
50
- }
51
- const vt = ["left", "right"], bt = ["right", "left"], Yt = ["top", "bottom"], qt = ["bottom", "top"];
52
- function Ut(t, e, n) {
53
- switch (t) {
54
- case "top":
55
- case "bottom":
56
- return n ? e ? bt : vt : e ? vt : bt;
57
- case "left":
58
- case "right":
59
- return e ? Yt : qt;
60
- default:
61
- return [];
62
- }
63
- }
64
- function Kt(t, e, n, o) {
65
- const i = J(t);
66
- let s = Ut(z(t), n === "start", o);
67
- return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(dt)))), s;
68
- }
69
- function it(t) {
70
- return t.replace(/left|right|bottom|top/g, (e) => zt[e]);
71
- }
72
- function Gt(t) {
73
- return {
74
- top: 0,
75
- right: 0,
76
- bottom: 0,
77
- left: 0,
78
- ...t
79
- };
80
- }
81
- function Et(t) {
82
- return typeof t != "number" ? Gt(t) : {
83
- top: t,
84
- right: t,
85
- bottom: t,
86
- left: t
87
- };
88
- }
89
- function st(t) {
90
- const {
91
- x: e,
92
- y: n,
93
- width: o,
94
- height: i
95
- } = t;
96
- return {
97
- width: o,
98
- height: i,
99
- top: n,
100
- left: e,
101
- right: e + o,
102
- bottom: n + i,
103
- x: e,
104
- y: n
105
- };
106
- }
107
- function At(t, e, n) {
108
- let {
109
- reference: o,
110
- floating: i
111
- } = t;
112
- const s = k(e), r = pt(e), c = gt(r), a = z(e), l = s === "y", u = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, h = o[c] / 2 - i[c] / 2;
113
- let f;
114
- switch (a) {
115
- case "top":
116
- f = {
117
- x: u,
118
- y: o.y - i.height
119
- };
120
- break;
121
- case "bottom":
122
- f = {
123
- x: u,
124
- y: o.y + o.height
125
- };
126
- break;
127
- case "right":
128
- f = {
129
- x: o.x + o.width,
130
- y: d
131
- };
132
- break;
133
- case "left":
134
- f = {
135
- x: o.x - i.width,
136
- y: d
137
- };
138
- break;
139
- default:
140
- f = {
141
- x: o.x,
142
- y: o.y
143
- };
144
- }
145
- switch (J(e)) {
146
- case "start":
147
- f[r] -= h * (n && l ? -1 : 1);
148
- break;
149
- case "end":
150
- f[r] += h * (n && l ? -1 : 1);
151
- break;
152
- }
153
- return f;
154
- }
155
- const Jt = async (t, e, n) => {
156
- const {
157
- placement: o = "bottom",
158
- strategy: i = "absolute",
159
- middleware: s = [],
160
- platform: r
161
- } = n, c = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
162
- let l = await r.getElementRects({
163
- reference: t,
164
- floating: e,
165
- strategy: i
166
- }), {
167
- x: u,
168
- y: d
169
- } = At(l, o, a), h = o, f = {}, m = 0;
170
- for (let g = 0; g < c.length; g++) {
171
- const {
172
- name: p,
173
- fn: w
174
- } = c[g], {
175
- x,
176
- y,
177
- data: b,
178
- reset: v
179
- } = await w({
180
- x: u,
181
- y: d,
182
- initialPlacement: o,
183
- placement: h,
184
- strategy: i,
185
- middlewareData: f,
186
- rects: l,
187
- platform: r,
188
- elements: {
189
- reference: t,
190
- floating: e
191
- }
192
- });
193
- u = x ?? u, d = y ?? d, f = {
194
- ...f,
195
- [p]: {
196
- ...f[p],
197
- ...b
198
- }
199
- }, v && m <= 50 && (m++, typeof v == "object" && (v.placement && (h = v.placement), v.rects && (l = v.rects === !0 ? await r.getElementRects({
200
- reference: t,
201
- floating: e,
202
- strategy: i
203
- }) : v.rects), {
204
- x: u,
205
- y: d
206
- } = At(l, h, a)), g = -1);
207
- }
208
- return {
209
- x: u,
210
- y: d,
211
- placement: h,
212
- strategy: i,
213
- middlewareData: f
214
- };
215
- };
216
- async function Z(t, e) {
217
- var n;
218
- e === void 0 && (e = {});
219
- const {
220
- x: o,
221
- y: i,
222
- platform: s,
223
- rects: r,
224
- elements: c,
225
- strategy: a
226
- } = t, {
227
- boundary: l = "clippingAncestors",
228
- rootBoundary: u = "viewport",
229
- elementContext: d = "floating",
230
- altBoundary: h = !1,
231
- padding: f = 0
232
- } = $(e, t), m = Et(f), p = c[h ? d === "floating" ? "reference" : "floating" : d], w = st(await s.getClippingRect({
233
- element: (n = await (s.isElement == null ? void 0 : s.isElement(p))) == null || n ? p : p.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
234
- boundary: l,
235
- rootBoundary: u,
236
- strategy: a
237
- })), x = d === "floating" ? {
238
- x: o,
239
- y: i,
240
- width: r.floating.width,
241
- height: r.floating.height
242
- } : r.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), b = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
243
- x: 1,
244
- y: 1
245
- } : {
246
- x: 1,
247
- y: 1
248
- }, v = st(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
249
- elements: c,
250
- rect: x,
251
- offsetParent: y,
252
- strategy: a
253
- }) : x);
254
- return {
255
- top: (w.top - v.top + m.top) / b.y,
256
- bottom: (v.bottom - w.bottom + m.bottom) / b.y,
257
- left: (w.left - v.left + m.left) / b.x,
258
- right: (v.right - w.right + m.right) / b.x
259
- };
260
- }
261
- const Qt = (t) => ({
262
- name: "arrow",
263
- options: t,
264
- async fn(e) {
265
- const {
266
- x: n,
267
- y: o,
268
- placement: i,
269
- rects: s,
270
- platform: r,
271
- elements: c,
272
- middlewareData: a
273
- } = e, {
274
- element: l,
275
- padding: u = 0
276
- } = $(t, e) || {};
277
- if (l == null)
278
- return {};
279
- const d = Et(u), h = {
280
- x: n,
281
- y: o
282
- }, f = pt(i), m = gt(f), g = await r.getDimensions(l), p = f === "y", w = p ? "top" : "left", x = p ? "bottom" : "right", y = p ? "clientHeight" : "clientWidth", b = s.reference[m] + s.reference[f] - h[f] - s.floating[m], v = h[f] - s.reference[f], R = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l));
283
- let A = R ? R[y] : 0;
284
- (!A || !await (r.isElement == null ? void 0 : r.isElement(R))) && (A = c.floating[y] || s.floating[m]);
285
- const N = b / 2 - v / 2, M = A / 2 - g[m] / 2 - 1, L = j(d[w], M), _ = j(d[x], M), F = L, I = A - g[m] - _, O = A / 2 - g[m] / 2 + N, q = ut(F, O, I), V = !a.arrow && J(i) != null && O !== q && s.reference[m] / 2 - (O < F ? L : _) - g[m] / 2 < 0, T = V ? O < F ? O - F : O - I : 0;
286
- return {
287
- [f]: h[f] + T,
288
- data: {
289
- [f]: q,
290
- centerOffset: O - q - T,
291
- ...V && {
292
- alignmentOffset: T
293
- }
294
- },
295
- reset: V
296
- };
297
- }
298
- }), Zt = function(t) {
299
- return t === void 0 && (t = {}), {
300
- name: "flip",
301
- options: t,
302
- async fn(e) {
303
- var n, o;
304
- const {
305
- placement: i,
306
- middlewareData: s,
307
- rects: r,
308
- initialPlacement: c,
309
- platform: a,
310
- elements: l
311
- } = e, {
312
- mainAxis: u = !0,
313
- crossAxis: d = !0,
314
- fallbackPlacements: h,
315
- fallbackStrategy: f = "bestFit",
316
- fallbackAxisSideDirection: m = "none",
317
- flipAlignment: g = !0,
318
- ...p
319
- } = $(t, e);
320
- if ((n = s.arrow) != null && n.alignmentOffset)
321
- return {};
322
- const w = z(i), x = k(c), y = z(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), v = h || (y || !g ? [it(c)] : jt(c)), R = m !== "none";
323
- !h && R && v.push(...Kt(c, g, m, b));
324
- const A = [c, ...v], N = await Z(e, p), M = [];
325
- let L = ((o = s.flip) == null ? void 0 : o.overflows) || [];
326
- if (u && M.push(N[w]), d) {
327
- const O = Xt(i, r, b);
328
- M.push(N[O[0]], N[O[1]]);
329
- }
330
- if (L = [...L, {
331
- placement: i,
332
- overflows: M
333
- }], !M.every((O) => O <= 0)) {
334
- var _, F;
335
- const O = (((_ = s.flip) == null ? void 0 : _.index) || 0) + 1, q = A[O];
336
- if (q && (!(d === "alignment" ? x !== k(q) : !1) || // We leave the current main axis only if every placement on that axis
337
- // overflows the main axis.
338
- L.every((E) => k(E.placement) === x ? E.overflows[0] > 0 : !0)))
339
- return {
340
- data: {
341
- index: O,
342
- overflows: L
343
- },
344
- reset: {
345
- placement: q
346
- }
347
- };
348
- let V = (F = L.filter((T) => T.overflows[0] <= 0).sort((T, E) => T.overflows[1] - E.overflows[1])[0]) == null ? void 0 : F.placement;
349
- if (!V)
350
- switch (f) {
351
- case "bestFit": {
352
- var I;
353
- const T = (I = L.filter((E) => {
354
- if (R) {
355
- const X = k(E.placement);
356
- return X === x || // Create a bias to the `y` side axis due to horizontal
357
- // reading directions favoring greater width.
358
- X === "y";
359
- }
360
- return !0;
361
- }).map((E) => [E.placement, E.overflows.filter((X) => X > 0).reduce((X, Vt) => X + Vt, 0)]).sort((E, X) => E[1] - X[1])[0]) == null ? void 0 : I[0];
362
- T && (V = T);
363
- break;
364
- }
365
- case "initialPlacement":
366
- V = c;
367
- break;
368
- }
369
- if (i !== V)
370
- return {
371
- reset: {
372
- placement: V
373
- }
374
- };
375
- }
376
- return {};
377
- }
378
- };
379
- };
380
- function Ot(t, e) {
381
- return {
382
- top: t.top - e.height,
383
- right: t.right - e.width,
384
- bottom: t.bottom - e.height,
385
- left: t.left - e.width
386
- };
387
- }
388
- function Rt(t) {
389
- return $t.some((e) => t[e] >= 0);
390
- }
391
- const te = function(t) {
392
- return t === void 0 && (t = {}), {
393
- name: "hide",
394
- options: t,
395
- async fn(e) {
396
- const {
397
- rects: n
398
- } = e, {
399
- strategy: o = "referenceHidden",
400
- ...i
401
- } = $(t, e);
402
- switch (o) {
403
- case "referenceHidden": {
404
- const s = await Z(e, {
405
- ...i,
406
- elementContext: "reference"
407
- }), r = Ot(s, n.reference);
408
- return {
409
- data: {
410
- referenceHiddenOffsets: r,
411
- referenceHidden: Rt(r)
412
- }
413
- };
414
- }
415
- case "escaped": {
416
- const s = await Z(e, {
417
- ...i,
418
- altBoundary: !0
419
- }), r = Ot(s, n.floating);
420
- return {
421
- data: {
422
- escapedOffsets: r,
423
- escaped: Rt(r)
424
- }
425
- };
426
- }
427
- default:
428
- return {};
429
- }
430
- }
431
- };
432
- }, Dt = /* @__PURE__ */ new Set(["left", "top"]);
433
- async function ee(t, e) {
434
- const {
435
- placement: n,
436
- platform: o,
437
- elements: i
438
- } = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = z(n), c = J(n), a = k(n) === "y", l = Dt.has(r) ? -1 : 1, u = s && a ? -1 : 1, d = $(e, t);
439
- let {
440
- mainAxis: h,
441
- crossAxis: f,
442
- alignmentAxis: m
443
- } = typeof d == "number" ? {
444
- mainAxis: d,
445
- crossAxis: 0,
446
- alignmentAxis: null
447
- } : {
448
- mainAxis: d.mainAxis || 0,
449
- crossAxis: d.crossAxis || 0,
450
- alignmentAxis: d.alignmentAxis
451
- };
452
- return c && typeof m == "number" && (f = c === "end" ? m * -1 : m), a ? {
453
- x: f * u,
454
- y: h * l
455
- } : {
456
- x: h * l,
457
- y: f * u
458
- };
459
- }
460
- const ne = function(t) {
461
- return t === void 0 && (t = 0), {
462
- name: "offset",
463
- options: t,
464
- async fn(e) {
465
- var n, o;
466
- const {
467
- x: i,
468
- y: s,
469
- placement: r,
470
- middlewareData: c
471
- } = e, a = await ee(e, t);
472
- return r === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
473
- x: i + a.x,
474
- y: s + a.y,
475
- data: {
476
- ...a,
477
- placement: r
478
- }
479
- };
480
- }
481
- };
482
- }, oe = function(t) {
483
- return t === void 0 && (t = {}), {
484
- name: "shift",
485
- options: t,
486
- async fn(e) {
487
- const {
488
- x: n,
489
- y: o,
490
- placement: i
491
- } = e, {
492
- mainAxis: s = !0,
493
- crossAxis: r = !1,
494
- limiter: c = {
495
- fn: (p) => {
496
- let {
497
- x: w,
498
- y: x
499
- } = p;
500
- return {
501
- x: w,
502
- y: x
503
- };
504
- }
505
- },
506
- ...a
507
- } = $(t, e), l = {
508
- x: n,
509
- y: o
510
- }, u = await Z(e, a), d = k(z(i)), h = ht(d);
511
- let f = l[h], m = l[d];
512
- if (s) {
513
- const p = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", x = f + u[p], y = f - u[w];
514
- f = ut(x, f, y);
515
- }
516
- if (r) {
517
- const p = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", x = m + u[p], y = m - u[w];
518
- m = ut(x, m, y);
519
- }
520
- const g = c.fn({
521
- ...e,
522
- [h]: f,
523
- [d]: m
524
- });
525
- return {
526
- ...g,
527
- data: {
528
- x: g.x - n,
529
- y: g.y - o,
530
- enabled: {
531
- [h]: s,
532
- [d]: r
533
- }
534
- }
535
- };
536
- }
537
- };
538
- }, ie = function(t) {
539
- return t === void 0 && (t = {}), {
540
- options: t,
541
- fn(e) {
542
- const {
543
- x: n,
544
- y: o,
545
- placement: i,
546
- rects: s,
547
- middlewareData: r
548
- } = e, {
549
- offset: c = 0,
550
- mainAxis: a = !0,
551
- crossAxis: l = !0
552
- } = $(t, e), u = {
553
- x: n,
554
- y: o
555
- }, d = k(i), h = ht(d);
556
- let f = u[h], m = u[d];
557
- const g = $(c, e), p = typeof g == "number" ? {
558
- mainAxis: g,
559
- crossAxis: 0
560
- } : {
561
- mainAxis: 0,
562
- crossAxis: 0,
563
- ...g
564
- };
565
- if (a) {
566
- const y = h === "y" ? "height" : "width", b = s.reference[h] - s.floating[y] + p.mainAxis, v = s.reference[h] + s.reference[y] - p.mainAxis;
567
- f < b ? f = b : f > v && (f = v);
568
- }
569
- if (l) {
570
- var w, x;
571
- const y = h === "y" ? "width" : "height", b = Dt.has(z(i)), v = s.reference[d] - s.floating[y] + (b && ((w = r.offset) == null ? void 0 : w[d]) || 0) + (b ? 0 : p.crossAxis), R = s.reference[d] + s.reference[y] + (b ? 0 : ((x = r.offset) == null ? void 0 : x[d]) || 0) - (b ? p.crossAxis : 0);
572
- m < v ? m = v : m > R && (m = R);
573
- }
574
- return {
575
- [h]: f,
576
- [d]: m
577
- };
578
- }
579
- };
580
- }, se = function(t) {
581
- return t === void 0 && (t = {}), {
582
- name: "size",
583
- options: t,
584
- async fn(e) {
585
- var n, o;
586
- const {
587
- placement: i,
588
- rects: s,
589
- platform: r,
590
- elements: c
591
- } = e, {
592
- apply: a = () => {
593
- },
594
- ...l
595
- } = $(t, e), u = await Z(e, l), d = z(i), h = J(i), f = k(i) === "y", {
596
- width: m,
597
- height: g
598
- } = s.floating;
599
- let p, w;
600
- d === "top" || d === "bottom" ? (p = d, w = h === (await (r.isRTL == null ? void 0 : r.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (w = d, p = h === "end" ? "top" : "bottom");
601
- const x = g - u.top - u.bottom, y = m - u.left - u.right, b = j(g - u[p], x), v = j(m - u[w], y), R = !e.middlewareData.shift;
602
- let A = b, N = v;
603
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (N = y), (o = e.middlewareData.shift) != null && o.enabled.y && (A = x), R && !h) {
604
- const L = C(u.left, 0), _ = C(u.right, 0), F = C(u.top, 0), I = C(u.bottom, 0);
605
- f ? N = m - 2 * (L !== 0 || _ !== 0 ? L + _ : C(u.left, u.right)) : A = g - 2 * (F !== 0 || I !== 0 ? F + I : C(u.top, u.bottom));
606
- }
607
- await a({
608
- ...e,
609
- availableWidth: N,
610
- availableHeight: A
611
- });
612
- const M = await r.getDimensions(c.floating);
613
- return m !== M.width || g !== M.height ? {
614
- reset: {
615
- rects: !0
616
- }
617
- } : {};
618
- }
619
- };
620
- };
621
- function rt() {
622
- return typeof window < "u";
623
- }
624
- function Q(t) {
625
- return Pt(t) ? (t.nodeName || "").toLowerCase() : "#document";
626
- }
627
- function S(t) {
628
- var e;
629
- return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
630
- }
631
- function H(t) {
632
- var e;
633
- return (e = (Pt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
634
- }
635
- function Pt(t) {
636
- return rt() ? t instanceof Node || t instanceof S(t).Node : !1;
637
- }
638
- function D(t) {
639
- return rt() ? t instanceof Element || t instanceof S(t).Element : !1;
640
- }
641
- function B(t) {
642
- return rt() ? t instanceof HTMLElement || t instanceof S(t).HTMLElement : !1;
643
- }
644
- function Ct(t) {
645
- return !rt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof S(t).ShadowRoot;
646
- }
647
- const re = /* @__PURE__ */ new Set(["inline", "contents"]);
648
- function et(t) {
649
- const {
650
- overflow: e,
651
- overflowX: n,
652
- overflowY: o,
653
- display: i
654
- } = P(t);
655
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !re.has(i);
656
- }
657
- const ce = /* @__PURE__ */ new Set(["table", "td", "th"]);
658
- function le(t) {
659
- return ce.has(Q(t));
660
- }
661
- const fe = [":popover-open", ":modal"];
662
- function ct(t) {
663
- return fe.some((e) => {
664
- try {
665
- return t.matches(e);
666
- } catch {
667
- return !1;
668
- }
669
- });
670
- }
671
- const ae = ["transform", "translate", "scale", "rotate", "perspective"], ue = ["transform", "translate", "scale", "rotate", "perspective", "filter"], de = ["paint", "layout", "strict", "content"];
672
- function wt(t) {
673
- const e = xt(), n = D(t) ? P(t) : t;
674
- return ae.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ue.some((o) => (n.willChange || "").includes(o)) || de.some((o) => (n.contain || "").includes(o));
675
- }
676
- function me(t) {
677
- let e = Y(t);
678
- for (; B(e) && !G(e); ) {
679
- if (wt(e))
680
- return e;
681
- if (ct(e))
682
- return null;
683
- e = Y(e);
684
- }
685
- return null;
686
- }
687
- function xt() {
688
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
689
- }
690
- const he = /* @__PURE__ */ new Set(["html", "body", "#document"]);
691
- function G(t) {
692
- return he.has(Q(t));
693
- }
694
- function P(t) {
695
- return S(t).getComputedStyle(t);
696
- }
697
- function lt(t) {
698
- return D(t) ? {
699
- scrollLeft: t.scrollLeft,
700
- scrollTop: t.scrollTop
701
- } : {
702
- scrollLeft: t.scrollX,
703
- scrollTop: t.scrollY
704
- };
705
- }
706
- function Y(t) {
707
- if (Q(t) === "html")
708
- return t;
709
- const e = (
710
- // Step into the shadow DOM of the parent of a slotted node.
711
- t.assignedSlot || // DOM Element detected.
712
- t.parentNode || // ShadowRoot detected.
713
- Ct(t) && t.host || // Fallback.
714
- H(t)
715
- );
716
- return Ct(e) ? e.host : e;
717
- }
718
- function Mt(t) {
719
- const e = Y(t);
720
- return G(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : B(e) && et(e) ? e : Mt(e);
721
- }
722
- function tt(t, e, n) {
723
- var o;
724
- e === void 0 && (e = []), n === void 0 && (n = !0);
725
- const i = Mt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = S(i);
726
- if (s) {
727
- const c = mt(r);
728
- return e.concat(r, r.visualViewport || [], et(i) ? i : [], c && n ? tt(c) : []);
729
- }
730
- return e.concat(i, tt(i, [], n));
731
- }
732
- function mt(t) {
733
- return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
734
- }
735
- function Ft(t) {
736
- const e = P(t);
737
- let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
738
- const i = B(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, c = ot(n) !== s || ot(o) !== r;
739
- return c && (n = s, o = r), {
740
- width: n,
741
- height: o,
742
- $: c
743
- };
744
- }
745
- function yt(t) {
746
- return D(t) ? t : t.contextElement;
747
- }
748
- function K(t) {
749
- const e = yt(t);
750
- if (!B(e))
751
- return W(1);
752
- const n = e.getBoundingClientRect(), {
753
- width: o,
754
- height: i,
755
- $: s
756
- } = Ft(e);
757
- let r = (s ? ot(n.width) : n.width) / o, c = (s ? ot(n.height) : n.height) / i;
758
- return (!r || !Number.isFinite(r)) && (r = 1), (!c || !Number.isFinite(c)) && (c = 1), {
759
- x: r,
760
- y: c
761
- };
762
- }
763
- const ge = /* @__PURE__ */ W(0);
764
- function kt(t) {
765
- const e = S(t);
766
- return !xt() || !e.visualViewport ? ge : {
767
- x: e.visualViewport.offsetLeft,
768
- y: e.visualViewport.offsetTop
769
- };
770
- }
771
- function pe(t, e, n) {
772
- return e === void 0 && (e = !1), !n || e && n !== S(t) ? !1 : e;
773
- }
774
- function U(t, e, n, o) {
775
- e === void 0 && (e = !1), n === void 0 && (n = !1);
776
- const i = t.getBoundingClientRect(), s = yt(t);
777
- let r = W(1);
778
- e && (o ? D(o) && (r = K(o)) : r = K(t));
779
- const c = pe(s, n, o) ? kt(s) : W(0);
780
- let a = (i.left + c.x) / r.x, l = (i.top + c.y) / r.y, u = i.width / r.x, d = i.height / r.y;
781
- if (s) {
782
- const h = S(s), f = o && D(o) ? S(o) : o;
783
- let m = h, g = mt(m);
784
- for (; g && o && f !== m; ) {
785
- const p = K(g), w = g.getBoundingClientRect(), x = P(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * p.x, b = w.top + (g.clientTop + parseFloat(x.paddingTop)) * p.y;
786
- a *= p.x, l *= p.y, u *= p.x, d *= p.y, a += y, l += b, m = S(g), g = mt(m);
787
- }
788
- }
789
- return st({
790
- width: u,
791
- height: d,
792
- x: a,
793
- y: l
794
- });
795
- }
796
- function ft(t, e) {
797
- const n = lt(t).scrollLeft;
798
- return e ? e.left + n : U(H(t)).left + n;
799
- }
800
- function Wt(t, e) {
801
- const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - ft(t, n), i = n.top + e.scrollTop;
802
- return {
803
- x: o,
804
- y: i
805
- };
806
- }
807
- function we(t) {
808
- let {
809
- elements: e,
810
- rect: n,
811
- offsetParent: o,
812
- strategy: i
813
- } = t;
814
- const s = i === "fixed", r = H(o), c = e ? ct(e.floating) : !1;
815
- if (o === r || c && s)
816
- return n;
817
- let a = {
818
- scrollLeft: 0,
819
- scrollTop: 0
820
- }, l = W(1);
821
- const u = W(0), d = B(o);
822
- if ((d || !d && !s) && ((Q(o) !== "body" || et(r)) && (a = lt(o)), B(o))) {
823
- const f = U(o);
824
- l = K(o), u.x = f.x + o.clientLeft, u.y = f.y + o.clientTop;
825
- }
826
- const h = r && !d && !s ? Wt(r, a) : W(0);
827
- return {
828
- width: n.width * l.x,
829
- height: n.height * l.y,
830
- x: n.x * l.x - a.scrollLeft * l.x + u.x + h.x,
831
- y: n.y * l.y - a.scrollTop * l.y + u.y + h.y
832
- };
833
- }
834
- function xe(t) {
835
- return Array.from(t.getClientRects());
836
- }
837
- function ye(t) {
838
- const e = H(t), n = lt(t), o = t.ownerDocument.body, i = C(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = C(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
839
- let r = -n.scrollLeft + ft(t);
840
- const c = -n.scrollTop;
841
- return P(o).direction === "rtl" && (r += C(e.clientWidth, o.clientWidth) - i), {
842
- width: i,
843
- height: s,
844
- x: r,
845
- y: c
846
- };
847
- }
848
- const St = 25;
849
- function ve(t, e) {
850
- const n = S(t), o = H(t), i = n.visualViewport;
851
- let s = o.clientWidth, r = o.clientHeight, c = 0, a = 0;
852
- if (i) {
853
- s = i.width, r = i.height;
854
- const u = xt();
855
- (!u || u && e === "fixed") && (c = i.offsetLeft, a = i.offsetTop);
856
- }
857
- const l = ft(o);
858
- if (l <= 0) {
859
- const u = o.ownerDocument, d = u.body, h = getComputedStyle(d), f = u.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, m = Math.abs(o.clientWidth - d.clientWidth - f);
860
- m <= St && (s -= m);
861
- } else l <= St && (s += l);
862
- return {
863
- width: s,
864
- height: r,
865
- x: c,
866
- y: a
867
- };
868
- }
869
- const be = /* @__PURE__ */ new Set(["absolute", "fixed"]);
870
- function Ae(t, e) {
871
- const n = U(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = B(t) ? K(t) : W(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, a = i * s.x, l = o * s.y;
872
- return {
873
- width: r,
874
- height: c,
875
- x: a,
876
- y: l
877
- };
878
- }
879
- function Lt(t, e, n) {
880
- let o;
881
- if (e === "viewport")
882
- o = ve(t, n);
883
- else if (e === "document")
884
- o = ye(H(t));
885
- else if (D(e))
886
- o = Ae(e, n);
887
- else {
888
- const i = kt(t);
889
- o = {
890
- x: e.x - i.x,
891
- y: e.y - i.y,
892
- width: e.width,
893
- height: e.height
894
- };
895
- }
896
- return st(o);
897
- }
898
- function Bt(t, e) {
899
- const n = Y(t);
900
- return n === e || !D(n) || G(n) ? !1 : P(n).position === "fixed" || Bt(n, e);
901
- }
902
- function Oe(t, e) {
903
- const n = e.get(t);
904
- if (n)
905
- return n;
906
- let o = tt(t, [], !1).filter((c) => D(c) && Q(c) !== "body"), i = null;
907
- const s = P(t).position === "fixed";
908
- let r = s ? Y(t) : t;
909
- for (; D(r) && !G(r); ) {
910
- const c = P(r), a = wt(r);
911
- !a && c.position === "fixed" && (i = null), (s ? !a && !i : !a && c.position === "static" && !!i && be.has(i.position) || et(r) && !a && Bt(t, r)) ? o = o.filter((u) => u !== r) : i = c, r = Y(r);
912
- }
913
- return e.set(t, o), o;
914
- }
915
- function Re(t) {
916
- let {
917
- element: e,
918
- boundary: n,
919
- rootBoundary: o,
920
- strategy: i
921
- } = t;
922
- const r = [...n === "clippingAncestors" ? ct(e) ? [] : Oe(e, this._c) : [].concat(n), o], c = r[0], a = r.reduce((l, u) => {
923
- const d = Lt(e, u, i);
924
- return l.top = C(d.top, l.top), l.right = j(d.right, l.right), l.bottom = j(d.bottom, l.bottom), l.left = C(d.left, l.left), l;
925
- }, Lt(e, c, i));
926
- return {
927
- width: a.right - a.left,
928
- height: a.bottom - a.top,
929
- x: a.left,
930
- y: a.top
931
- };
932
- }
933
- function Ce(t) {
934
- const {
935
- width: e,
936
- height: n
937
- } = Ft(t);
938
- return {
939
- width: e,
940
- height: n
941
- };
942
- }
943
- function Se(t, e, n) {
944
- const o = B(e), i = H(e), s = n === "fixed", r = U(t, !0, s, e);
945
- let c = {
946
- scrollLeft: 0,
947
- scrollTop: 0
948
- };
949
- const a = W(0);
950
- function l() {
951
- a.x = ft(i);
952
- }
953
- if (o || !o && !s)
954
- if ((Q(e) !== "body" || et(i)) && (c = lt(e)), o) {
955
- const f = U(e, !0, s, e);
956
- a.x = f.x + e.clientLeft, a.y = f.y + e.clientTop;
957
- } else i && l();
958
- s && !o && i && l();
959
- const u = i && !o && !s ? Wt(i, c) : W(0), d = r.left + c.scrollLeft - a.x - u.x, h = r.top + c.scrollTop - a.y - u.y;
960
- return {
961
- x: d,
962
- y: h,
963
- width: r.width,
964
- height: r.height
965
- };
966
- }
967
- function at(t) {
968
- return P(t).position === "static";
969
- }
970
- function Tt(t, e) {
971
- if (!B(t) || P(t).position === "fixed")
972
- return null;
973
- if (e)
974
- return e(t);
975
- let n = t.offsetParent;
976
- return H(t) === n && (n = n.ownerDocument.body), n;
977
- }
978
- function Ht(t, e) {
979
- const n = S(t);
980
- if (ct(t))
981
- return n;
982
- if (!B(t)) {
983
- let i = Y(t);
984
- for (; i && !G(i); ) {
985
- if (D(i) && !at(i))
986
- return i;
987
- i = Y(i);
988
- }
989
- return n;
990
- }
991
- let o = Tt(t, e);
992
- for (; o && le(o) && at(o); )
993
- o = Tt(o, e);
994
- return o && G(o) && at(o) && !wt(o) ? n : o || me(t) || n;
995
- }
996
- const Le = async function(t) {
997
- const e = this.getOffsetParent || Ht, n = this.getDimensions, o = await n(t.floating);
998
- return {
999
- reference: Se(t.reference, await e(t.floating), t.strategy),
1000
- floating: {
1001
- x: 0,
1002
- y: 0,
1003
- width: o.width,
1004
- height: o.height
1005
- }
1006
- };
1007
- };
1008
- function Te(t) {
1009
- return P(t).direction === "rtl";
1010
- }
1011
- const Ee = {
1012
- convertOffsetParentRelativeRectToViewportRelativeRect: we,
1013
- getDocumentElement: H,
1014
- getClippingRect: Re,
1015
- getOffsetParent: Ht,
1016
- getElementRects: Le,
1017
- getClientRects: xe,
1018
- getDimensions: Ce,
1019
- getScale: K,
1020
- isElement: D,
1021
- isRTL: Te
1022
- };
1023
- function Nt(t, e) {
1024
- return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1025
- }
1026
- function De(t, e) {
1027
- let n = null, o;
1028
- const i = H(t);
1029
- function s() {
1030
- var c;
1031
- clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
1032
- }
1033
- function r(c, a) {
1034
- c === void 0 && (c = !1), a === void 0 && (a = 1), s();
1035
- const l = t.getBoundingClientRect(), {
1036
- left: u,
1037
- top: d,
1038
- width: h,
1039
- height: f
1040
- } = l;
1041
- if (c || e(), !h || !f)
1042
- return;
1043
- const m = nt(d), g = nt(i.clientWidth - (u + h)), p = nt(i.clientHeight - (d + f)), w = nt(u), y = {
1044
- rootMargin: -m + "px " + -g + "px " + -p + "px " + -w + "px",
1045
- threshold: C(0, j(1, a)) || 1
1046
- };
1047
- let b = !0;
1048
- function v(R) {
1049
- const A = R[0].intersectionRatio;
1050
- if (A !== a) {
1051
- if (!b)
1052
- return r();
1053
- A ? r(!1, A) : o = setTimeout(() => {
1054
- r(!1, 1e-7);
1055
- }, 1e3);
1056
- }
1057
- A === 1 && !Nt(l, t.getBoundingClientRect()) && r(), b = !1;
1058
- }
1059
- try {
1060
- n = new IntersectionObserver(v, {
1061
- ...y,
1062
- // Handle <iframe>s
1063
- root: i.ownerDocument
1064
- });
1065
- } catch {
1066
- n = new IntersectionObserver(v, y);
1067
- }
1068
- n.observe(t);
1069
- }
1070
- return r(!0), s;
1071
- }
1072
- function Pe(t, e, n, o) {
1073
- o === void 0 && (o = {});
1074
- const {
1075
- ancestorScroll: i = !0,
1076
- ancestorResize: s = !0,
1077
- elementResize: r = typeof ResizeObserver == "function",
1078
- layoutShift: c = typeof IntersectionObserver == "function",
1079
- animationFrame: a = !1
1080
- } = o, l = yt(t), u = i || s ? [...l ? tt(l) : [], ...tt(e)] : [];
1081
- u.forEach((w) => {
1082
- i && w.addEventListener("scroll", n, {
1083
- passive: !0
1084
- }), s && w.addEventListener("resize", n);
1085
- });
1086
- const d = l && c ? De(l, n) : null;
1087
- let h = -1, f = null;
1088
- r && (f = new ResizeObserver((w) => {
1089
- let [x] = w;
1090
- x && x.target === l && f && (f.unobserve(e), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
1091
- var y;
1092
- (y = f) == null || y.observe(e);
1093
- })), n();
1094
- }), l && !a && f.observe(l), f.observe(e));
1095
- let m, g = a ? U(t) : null;
1096
- a && p();
1097
- function p() {
1098
- const w = U(t);
1099
- g && !Nt(g, w) && n(), g = w, m = requestAnimationFrame(p);
1100
- }
1101
- return n(), () => {
1102
- var w;
1103
- u.forEach((x) => {
1104
- i && x.removeEventListener("scroll", n), s && x.removeEventListener("resize", n);
1105
- }), d?.(), (w = f) == null || w.disconnect(), f = null, a && cancelAnimationFrame(m);
1106
- };
1107
- }
1108
- const Me = ne, Fe = oe, ke = Zt, We = se, Be = te, He = Qt, Ne = ie, Ve = (t, e, n) => {
1109
- const o = /* @__PURE__ */ new Map(), i = {
1110
- platform: Ee,
1111
- ...n
1112
- }, s = {
1113
- ...i.platform,
1114
- _c: o
1115
- };
1116
- return Jt(t, e, {
1117
- ...i,
1118
- platform: s
1119
- });
1120
- };
1121
- export {
1122
- He as a,
1123
- Pe as b,
1124
- Ve as c,
1125
- We as d,
1126
- ke as f,
1127
- Q as g,
1128
- Be as h,
1129
- Pt as i,
1130
- Ne as l,
1131
- Me as o,
1132
- Fe as s
1133
- };