@reni-corp/reni-2c-ui 0.2.29 → 0.3.2-8.2

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 (78) hide show
  1. package/.yarn/patches/floating-vue-npm-2.0.0-b4308359d7.patch +18 -0
  2. package/README.md +0 -1
  3. package/dist/components/elements/Alert.vue.d.ts +2 -2
  4. package/dist/components/elements/Alert.vue.d.ts.map +1 -1
  5. package/dist/components/elements/Button.vue.d.ts +3 -3
  6. package/dist/components/elements/Button.vue.d.ts.map +1 -1
  7. package/dist/components/elements/CheckBox.vue.d.ts +8 -8
  8. package/dist/components/elements/Divider.vue.d.ts +1 -1
  9. package/dist/components/elements/Divider.vue.d.ts.map +1 -1
  10. package/dist/components/elements/Html.vue.d.ts +1 -1
  11. package/dist/components/elements/Html.vue.d.ts.map +1 -1
  12. package/dist/components/elements/Icon.vue.d.ts +1 -1
  13. package/dist/components/elements/Icon.vue.d.ts.map +1 -1
  14. package/dist/components/elements/Label.vue.d.ts +2 -2
  15. package/dist/components/elements/Label.vue.d.ts.map +1 -1
  16. package/dist/components/elements/PasswordField.vue.d.ts +12 -12
  17. package/dist/components/elements/RadioButtonGroup.vue.d.ts +11 -11
  18. package/dist/components/elements/RadioButtonGroup.vue.d.ts.map +1 -1
  19. package/dist/components/elements/SelectBox.vue.d.ts +9 -9
  20. package/dist/components/elements/SelectBox.vue.d.ts.map +1 -1
  21. package/dist/components/elements/SpinButton.vue.d.ts +16 -16
  22. package/dist/components/elements/SpinButton.vue.d.ts.map +1 -1
  23. package/dist/components/elements/Spinner.vue.d.ts +1 -1
  24. package/dist/components/elements/Spinner.vue.d.ts.map +1 -1
  25. package/dist/components/elements/Text.vue.d.ts +2 -2
  26. package/dist/components/elements/Text.vue.d.ts.map +1 -1
  27. package/dist/components/elements/TextField.vue.d.ts +17 -17
  28. package/dist/components/elements/TextField.vue.d.ts.map +1 -1
  29. package/dist/components/elements/ToolChip.vue.d.ts +1 -1
  30. package/dist/components/elements/ToolChip.vue.d.ts.map +1 -1
  31. package/dist/components/features/CategoryBanner.vue.d.ts +2 -2
  32. package/dist/components/features/CategoryBanner.vue.d.ts.map +1 -1
  33. package/dist/components/features/ImageGrid.vue.d.ts +1 -1
  34. package/dist/components/features/ImageGrid.vue.d.ts.map +1 -1
  35. package/dist/components/features/LinkList.vue.d.ts +1 -1
  36. package/dist/components/features/LinkList.vue.d.ts.map +1 -1
  37. package/dist/components/features/Marquee.vue.d.ts +4 -4
  38. package/dist/components/features/Marquee.vue.d.ts.map +1 -1
  39. package/dist/components/features/ProductList.vue.d.ts +16 -3
  40. package/dist/components/features/ProductList.vue.d.ts.map +1 -1
  41. package/dist/components/features/ProductListItem.vue.d.ts +1 -1
  42. package/dist/components/features/ProductListItem.vue.d.ts.map +1 -1
  43. package/dist/components/features/ProductPurchase.vue.d.ts +106 -0
  44. package/dist/components/features/ProductPurchase.vue.d.ts.map +1 -0
  45. package/dist/components/features/SnsLink.vue.d.ts +4 -4
  46. package/dist/components/features/SnsLink.vue.d.ts.map +1 -1
  47. package/dist/components/interactive/Gallery.vue.d.ts +1 -1
  48. package/dist/components/interactive/Gallery.vue.d.ts.map +1 -1
  49. package/dist/components/interactive/Notification.vue.d.ts +1 -1
  50. package/dist/components/interactive/Notification.vue.d.ts.map +1 -1
  51. package/dist/components/interactive/Slider.vue.d.ts.map +1 -1
  52. package/dist/components/layouts/Card.vue.d.ts +4 -4
  53. package/dist/components/layouts/Card.vue.d.ts.map +1 -1
  54. package/dist/components/layouts/Grid.vue.d.ts +1 -1
  55. package/dist/components/layouts/Grid.vue.d.ts.map +1 -1
  56. package/dist/components/layouts/Stack.vue.d.ts +1 -1
  57. package/dist/components/layouts/Stack.vue.d.ts.map +1 -1
  58. package/dist/components/renderless/DataProvider.vue.d.ts.map +1 -1
  59. package/dist/components/renderless/Form.vue.d.ts +28 -0
  60. package/dist/components/renderless/Form.vue.d.ts.map +1 -0
  61. package/dist/constants.d.ts +12 -5
  62. package/dist/constants.d.ts.map +1 -1
  63. package/dist/{index-a725a791.js → index-e06f7763.js} +53 -45
  64. package/dist/index.d.ts +5 -1
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/script.es.js +7891 -6708
  67. package/dist/script.umd.js +21 -21
  68. package/dist/style.css +1 -1
  69. package/dist/utils.d.ts.map +1 -1
  70. package/dist/valueObjects/CurrencyValue.d.ts.map +1 -1
  71. package/package.json +13 -3
  72. package/dist/composables-77be9ea0.js +0 -2833
  73. package/dist/composables.es.js +0 -8
  74. package/dist/constants.es.js +0 -88
  75. package/dist/index.es.js +0 -14987
  76. package/dist/types.es.js +0 -1
  77. package/dist/valueObjects-94fc347b.js +0 -70
  78. package/dist/valueObjects.es.js +0 -5
@@ -1,2833 +0,0 @@
1
- import { pushScopeId as Jt, popScopeId as Qt, defineComponent as ze, nextTick as Ue, openBlock as Y, createBlock as Re, ref as z, createElementBlock as me, normalizeClass as Xe, renderSlot as Te, normalizeProps as Zt, guardReactiveProps as en, withScopeId as tn, resolveComponent as ge, normalizeStyle as Be, withKeys as nn, createElementVNode as oe, Fragment as on, createCommentVNode as nt, mergeProps as St, withCtx as Pe, createVNode as Tt, createApp as sn, h as rn, toDisplayString as ln, unref as an, onMounted as Pt, getCurrentScope as dn, onScopeDispose as cn, isRef as un, getCurrentInstance as Ke, toRef as pn, readonly as hn, customRef as fn, computed as se, reactive as ot, watch as we, watchEffect as mn } from "vue";
2
- const Ie = typeof window < "u", gn = ["top", "right", "bottom", "left"], it = ["start", "end"], st = /* @__PURE__ */ gn.reduce((e, t) => e.concat(t, t + "-" + it[0], t + "-" + it[1]), []), ve = Math.min, ne = Math.max, wn = {
3
- left: "right",
4
- right: "left",
5
- bottom: "top",
6
- top: "bottom"
7
- }, vn = {
8
- start: "end",
9
- end: "start"
10
- };
11
- function Ve(e, t, n) {
12
- return ne(e, ve(t, n));
13
- }
14
- function re(e, t) {
15
- return typeof e == "function" ? e(t) : e;
16
- }
17
- function q(e) {
18
- return e.split("-")[0];
19
- }
20
- function F(e) {
21
- return e.split("-")[1];
22
- }
23
- function At(e) {
24
- return e === "x" ? "y" : "x";
25
- }
26
- function Je(e) {
27
- return e === "y" ? "height" : "width";
28
- }
29
- const yn = /* @__PURE__ */ new Set(["top", "bottom"]);
30
- function G(e) {
31
- return yn.has(q(e)) ? "y" : "x";
32
- }
33
- function Qe(e) {
34
- return At(G(e));
35
- }
36
- function Ct(e, t, n) {
37
- n === void 0 && (n = !1);
38
- const o = F(e), i = Qe(e), s = Je(i);
39
- let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
40
- return t.reference[s] > t.floating[s] && (r = Ce(r)), [r, Ce(r)];
41
- }
42
- function $n(e) {
43
- const t = Ce(e);
44
- return [Ae(e), t, Ae(t)];
45
- }
46
- function Ae(e) {
47
- return e.replace(/start|end/g, (t) => vn[t]);
48
- }
49
- const rt = ["left", "right"], lt = ["right", "left"], bn = ["top", "bottom"], xn = ["bottom", "top"];
50
- function _n(e, t, n) {
51
- switch (e) {
52
- case "top":
53
- case "bottom":
54
- return n ? t ? lt : rt : t ? rt : lt;
55
- case "left":
56
- case "right":
57
- return t ? bn : xn;
58
- default:
59
- return [];
60
- }
61
- }
62
- function Sn(e, t, n, o) {
63
- const i = F(e);
64
- let s = _n(q(e), n === "start", o);
65
- return i && (s = s.map((r) => r + "-" + i), t && (s = s.concat(s.map(Ae)))), s;
66
- }
67
- function Ce(e) {
68
- return e.replace(/left|right|bottom|top/g, (t) => wn[t]);
69
- }
70
- function Tn(e) {
71
- return {
72
- top: 0,
73
- right: 0,
74
- bottom: 0,
75
- left: 0,
76
- ...e
77
- };
78
- }
79
- function Ot(e) {
80
- return typeof e != "number" ? Tn(e) : {
81
- top: e,
82
- right: e,
83
- bottom: e,
84
- left: e
85
- };
86
- }
87
- function ue(e) {
88
- const {
89
- x: t,
90
- y: n,
91
- width: o,
92
- height: i
93
- } = e;
94
- return {
95
- width: o,
96
- height: i,
97
- top: n,
98
- left: t,
99
- right: t + o,
100
- bottom: n + i,
101
- x: t,
102
- y: n
103
- };
104
- }
105
- function at(e, t, n) {
106
- let {
107
- reference: o,
108
- floating: i
109
- } = e;
110
- const s = G(t), r = Qe(t), l = Je(r), c = q(t), d = s === "y", a = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, p = o[l] / 2 - i[l] / 2;
111
- let h;
112
- switch (c) {
113
- case "top":
114
- h = {
115
- x: a,
116
- y: o.y - i.height
117
- };
118
- break;
119
- case "bottom":
120
- h = {
121
- x: a,
122
- y: o.y + o.height
123
- };
124
- break;
125
- case "right":
126
- h = {
127
- x: o.x + o.width,
128
- y: u
129
- };
130
- break;
131
- case "left":
132
- h = {
133
- x: o.x - i.width,
134
- y: u
135
- };
136
- break;
137
- default:
138
- h = {
139
- x: o.x,
140
- y: o.y
141
- };
142
- }
143
- switch (F(t)) {
144
- case "start":
145
- h[r] -= p * (n && d ? -1 : 1);
146
- break;
147
- case "end":
148
- h[r] += p * (n && d ? -1 : 1);
149
- break;
150
- }
151
- return h;
152
- }
153
- const Pn = async (e, t, n) => {
154
- const {
155
- placement: o = "bottom",
156
- strategy: i = "absolute",
157
- middleware: s = [],
158
- platform: r
159
- } = n, l = s.filter(Boolean), c = await (r.isRTL == null ? void 0 : r.isRTL(t));
160
- let d = await r.getElementRects({
161
- reference: e,
162
- floating: t,
163
- strategy: i
164
- }), {
165
- x: a,
166
- y: u
167
- } = at(d, o, c), p = o, h = {}, f = 0;
168
- for (let m = 0; m < l.length; m++) {
169
- const {
170
- name: w,
171
- fn: g
172
- } = l[m], {
173
- x: v,
174
- y: $,
175
- data: T,
176
- reset: x
177
- } = await g({
178
- x: a,
179
- y: u,
180
- initialPlacement: o,
181
- placement: p,
182
- strategy: i,
183
- middlewareData: h,
184
- rects: d,
185
- platform: r,
186
- elements: {
187
- reference: e,
188
- floating: t
189
- }
190
- });
191
- a = v ?? a, u = $ ?? u, h = {
192
- ...h,
193
- [w]: {
194
- ...h[w],
195
- ...T
196
- }
197
- }, x && f <= 50 && (f++, typeof x == "object" && (x.placement && (p = x.placement), x.rects && (d = x.rects === !0 ? await r.getElementRects({
198
- reference: e,
199
- floating: t,
200
- strategy: i
201
- }) : x.rects), {
202
- x: a,
203
- y: u
204
- } = at(d, p, c)), m = -1);
205
- }
206
- return {
207
- x: a,
208
- y: u,
209
- placement: p,
210
- strategy: i,
211
- middlewareData: h
212
- };
213
- };
214
- async function Le(e, t) {
215
- var n;
216
- t === void 0 && (t = {});
217
- const {
218
- x: o,
219
- y: i,
220
- platform: s,
221
- rects: r,
222
- elements: l,
223
- strategy: c
224
- } = e, {
225
- boundary: d = "clippingAncestors",
226
- rootBoundary: a = "viewport",
227
- elementContext: u = "floating",
228
- altBoundary: p = !1,
229
- padding: h = 0
230
- } = re(t, e), f = Ot(h), w = l[p ? u === "floating" ? "reference" : "floating" : u], g = ue(await s.getClippingRect({
231
- element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
232
- boundary: d,
233
- rootBoundary: a,
234
- strategy: c
235
- })), v = u === "floating" ? {
236
- x: o,
237
- y: i,
238
- width: r.floating.width,
239
- height: r.floating.height
240
- } : r.reference, $ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), T = await (s.isElement == null ? void 0 : s.isElement($)) ? await (s.getScale == null ? void 0 : s.getScale($)) || {
241
- x: 1,
242
- y: 1
243
- } : {
244
- x: 1,
245
- y: 1
246
- }, x = ue(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
247
- elements: l,
248
- rect: v,
249
- offsetParent: $,
250
- strategy: c
251
- }) : v);
252
- return {
253
- top: (g.top - x.top + f.top) / T.y,
254
- bottom: (x.bottom - g.bottom + f.bottom) / T.y,
255
- left: (g.left - x.left + f.left) / T.x,
256
- right: (x.right - g.right + f.right) / T.x
257
- };
258
- }
259
- const An = (e) => ({
260
- name: "arrow",
261
- options: e,
262
- async fn(t) {
263
- const {
264
- x: n,
265
- y: o,
266
- placement: i,
267
- rects: s,
268
- platform: r,
269
- elements: l,
270
- middlewareData: c
271
- } = t, {
272
- element: d,
273
- padding: a = 0
274
- } = re(e, t) || {};
275
- if (d == null)
276
- return {};
277
- const u = Ot(a), p = {
278
- x: n,
279
- y: o
280
- }, h = Qe(i), f = Je(h), m = await r.getDimensions(d), w = h === "y", g = w ? "top" : "left", v = w ? "bottom" : "right", $ = w ? "clientHeight" : "clientWidth", T = s.reference[f] + s.reference[h] - p[h] - s.floating[f], x = p[h] - s.reference[h], N = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(d));
281
- let y = N ? N[$] : 0;
282
- (!y || !await (r.isElement == null ? void 0 : r.isElement(N))) && (y = l.floating[$] || s.floating[f]);
283
- const E = T / 2 - x / 2, S = y / 2 - m[f] / 2 - 1, _ = ve(u[g], S), O = ve(u[v], S), A = _, P = y - m[f] - O, C = y / 2 - m[f] / 2 + E, R = Ve(A, C, P), D = !c.arrow && F(i) != null && C !== R && s.reference[f] / 2 - (C < A ? _ : O) - m[f] / 2 < 0, L = D ? C < A ? C - A : C - P : 0;
284
- return {
285
- [h]: p[h] + L,
286
- data: {
287
- [h]: R,
288
- centerOffset: C - R - L,
289
- ...D && {
290
- alignmentOffset: L
291
- }
292
- },
293
- reset: D
294
- };
295
- }
296
- });
297
- function Cn(e, t, n) {
298
- return (e ? [...n.filter((i) => F(i) === e), ...n.filter((i) => F(i) !== e)] : n.filter((i) => q(i) === i)).filter((i) => e ? F(i) === e || (t ? Ae(i) !== i : !1) : !0);
299
- }
300
- const On = function(e) {
301
- return e === void 0 && (e = {}), {
302
- name: "autoPlacement",
303
- options: e,
304
- async fn(t) {
305
- var n, o, i;
306
- const {
307
- rects: s,
308
- middlewareData: r,
309
- placement: l,
310
- platform: c,
311
- elements: d
312
- } = t, {
313
- crossAxis: a = !1,
314
- alignment: u,
315
- allowedPlacements: p = st,
316
- autoAlignment: h = !0,
317
- ...f
318
- } = re(e, t), m = u !== void 0 || p === st ? Cn(u || null, h, p) : p, w = await Le(t, f), g = ((n = r.autoPlacement) == null ? void 0 : n.index) || 0, v = m[g];
319
- if (v == null)
320
- return {};
321
- const $ = Ct(v, s, await (c.isRTL == null ? void 0 : c.isRTL(d.floating)));
322
- if (l !== v)
323
- return {
324
- reset: {
325
- placement: m[0]
326
- }
327
- };
328
- const T = [w[q(v)], w[$[0]], w[$[1]]], x = [...((o = r.autoPlacement) == null ? void 0 : o.overflows) || [], {
329
- placement: v,
330
- overflows: T
331
- }], N = m[g + 1];
332
- if (N)
333
- return {
334
- data: {
335
- index: g + 1,
336
- overflows: x
337
- },
338
- reset: {
339
- placement: N
340
- }
341
- };
342
- const y = x.map((_) => {
343
- const O = F(_.placement);
344
- return [_.placement, O && a ? (
345
- // Check along the mainAxis and main crossAxis side.
346
- _.overflows.slice(0, 2).reduce((A, P) => A + P, 0)
347
- ) : (
348
- // Check only the mainAxis.
349
- _.overflows[0]
350
- ), _.overflows];
351
- }).sort((_, O) => _[1] - O[1]), S = ((i = y.filter((_) => _[2].slice(
352
- 0,
353
- // Aligned placements should not check their opposite crossAxis
354
- // side.
355
- F(_[0]) ? 2 : 3
356
- ).every((O) => O <= 0))[0]) == null ? void 0 : i[0]) || y[0][0];
357
- return S !== l ? {
358
- data: {
359
- index: g + 1,
360
- overflows: x
361
- },
362
- reset: {
363
- placement: S
364
- }
365
- } : {};
366
- }
367
- };
368
- }, Nn = function(e) {
369
- return e === void 0 && (e = {}), {
370
- name: "flip",
371
- options: e,
372
- async fn(t) {
373
- var n, o;
374
- const {
375
- placement: i,
376
- middlewareData: s,
377
- rects: r,
378
- initialPlacement: l,
379
- platform: c,
380
- elements: d
381
- } = t, {
382
- mainAxis: a = !0,
383
- crossAxis: u = !0,
384
- fallbackPlacements: p,
385
- fallbackStrategy: h = "bestFit",
386
- fallbackAxisSideDirection: f = "none",
387
- flipAlignment: m = !0,
388
- ...w
389
- } = re(e, t);
390
- if ((n = s.arrow) != null && n.alignmentOffset)
391
- return {};
392
- const g = q(i), v = G(l), $ = q(l) === l, T = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), x = p || ($ || !m ? [Ce(l)] : $n(l)), N = f !== "none";
393
- !p && N && x.push(...Sn(l, m, f, T));
394
- const y = [l, ...x], E = await Le(t, w), S = [];
395
- let _ = ((o = s.flip) == null ? void 0 : o.overflows) || [];
396
- if (a && S.push(E[g]), u) {
397
- const C = Ct(i, r, T);
398
- S.push(E[C[0]], E[C[1]]);
399
- }
400
- if (_ = [..._, {
401
- placement: i,
402
- overflows: S
403
- }], !S.every((C) => C <= 0)) {
404
- var O, A;
405
- const C = (((O = s.flip) == null ? void 0 : O.index) || 0) + 1, R = y[C];
406
- if (R && (!(u === "alignment" ? v !== G(R) : !1) || // We leave the current main axis only if every placement on that axis
407
- // overflows the main axis.
408
- _.every((B) => G(B.placement) === v ? B.overflows[0] > 0 : !0)))
409
- return {
410
- data: {
411
- index: C,
412
- overflows: _
413
- },
414
- reset: {
415
- placement: R
416
- }
417
- };
418
- let D = (A = _.filter((L) => L.overflows[0] <= 0).sort((L, B) => L.overflows[1] - B.overflows[1])[0]) == null ? void 0 : A.placement;
419
- if (!D)
420
- switch (h) {
421
- case "bestFit": {
422
- var P;
423
- const L = (P = _.filter((B) => {
424
- if (N) {
425
- const U = G(B.placement);
426
- return U === v || // Create a bias to the `y` side axis due to horizontal
427
- // reading directions favoring greater width.
428
- U === "y";
429
- }
430
- return !0;
431
- }).map((B) => [B.placement, B.overflows.filter((U) => U > 0).reduce((U, Kt) => U + Kt, 0)]).sort((B, U) => B[1] - U[1])[0]) == null ? void 0 : P[0];
432
- L && (D = L);
433
- break;
434
- }
435
- case "initialPlacement":
436
- D = l;
437
- break;
438
- }
439
- if (i !== D)
440
- return {
441
- reset: {
442
- placement: D
443
- }
444
- };
445
- }
446
- return {};
447
- }
448
- };
449
- }, En = /* @__PURE__ */ new Set(["left", "top"]);
450
- async function zn(e, t) {
451
- const {
452
- placement: n,
453
- platform: o,
454
- elements: i
455
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = q(n), l = F(n), c = G(n) === "y", d = En.has(r) ? -1 : 1, a = s && c ? -1 : 1, u = re(t, e);
456
- let {
457
- mainAxis: p,
458
- crossAxis: h,
459
- alignmentAxis: f
460
- } = typeof u == "number" ? {
461
- mainAxis: u,
462
- crossAxis: 0,
463
- alignmentAxis: null
464
- } : {
465
- mainAxis: u.mainAxis || 0,
466
- crossAxis: u.crossAxis || 0,
467
- alignmentAxis: u.alignmentAxis
468
- };
469
- return l && typeof f == "number" && (h = l === "end" ? f * -1 : f), c ? {
470
- x: h * a,
471
- y: p * d
472
- } : {
473
- x: p * d,
474
- y: h * a
475
- };
476
- }
477
- const Rn = function(e) {
478
- return e === void 0 && (e = 0), {
479
- name: "offset",
480
- options: e,
481
- async fn(t) {
482
- var n, o;
483
- const {
484
- x: i,
485
- y: s,
486
- placement: r,
487
- middlewareData: l
488
- } = t, c = await zn(t, e);
489
- return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
490
- x: i + c.x,
491
- y: s + c.y,
492
- data: {
493
- ...c,
494
- placement: r
495
- }
496
- };
497
- }
498
- };
499
- }, Ln = function(e) {
500
- return e === void 0 && (e = {}), {
501
- name: "shift",
502
- options: e,
503
- async fn(t) {
504
- const {
505
- x: n,
506
- y: o,
507
- placement: i
508
- } = t, {
509
- mainAxis: s = !0,
510
- crossAxis: r = !1,
511
- limiter: l = {
512
- fn: (w) => {
513
- let {
514
- x: g,
515
- y: v
516
- } = w;
517
- return {
518
- x: g,
519
- y: v
520
- };
521
- }
522
- },
523
- ...c
524
- } = re(e, t), d = {
525
- x: n,
526
- y: o
527
- }, a = await Le(t, c), u = G(q(i)), p = At(u);
528
- let h = d[p], f = d[u];
529
- if (s) {
530
- const w = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", v = h + a[w], $ = h - a[g];
531
- h = Ve(v, h, $);
532
- }
533
- if (r) {
534
- const w = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", v = f + a[w], $ = f - a[g];
535
- f = Ve(v, f, $);
536
- }
537
- const m = l.fn({
538
- ...t,
539
- [p]: h,
540
- [u]: f
541
- });
542
- return {
543
- ...m,
544
- data: {
545
- x: m.x - n,
546
- y: m.y - o,
547
- enabled: {
548
- [p]: s,
549
- [u]: r
550
- }
551
- }
552
- };
553
- }
554
- };
555
- }, Hn = function(e) {
556
- return e === void 0 && (e = {}), {
557
- name: "size",
558
- options: e,
559
- async fn(t) {
560
- var n, o;
561
- const {
562
- placement: i,
563
- rects: s,
564
- platform: r,
565
- elements: l
566
- } = t, {
567
- apply: c = () => {
568
- },
569
- ...d
570
- } = re(e, t), a = await Le(t, d), u = q(i), p = F(i), h = G(i) === "y", {
571
- width: f,
572
- height: m
573
- } = s.floating;
574
- let w, g;
575
- u === "top" || u === "bottom" ? (w = u, g = p === (await (r.isRTL == null ? void 0 : r.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (g = u, w = p === "end" ? "top" : "bottom");
576
- const v = m - a.top - a.bottom, $ = f - a.left - a.right, T = ve(m - a[w], v), x = ve(f - a[g], $), N = !t.middlewareData.shift;
577
- let y = T, E = x;
578
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (E = $), (o = t.middlewareData.shift) != null && o.enabled.y && (y = v), N && !p) {
579
- const _ = ne(a.left, 0), O = ne(a.right, 0), A = ne(a.top, 0), P = ne(a.bottom, 0);
580
- h ? E = f - 2 * (_ !== 0 || O !== 0 ? _ + O : ne(a.left, a.right)) : y = m - 2 * (A !== 0 || P !== 0 ? A + P : ne(a.top, a.bottom));
581
- }
582
- await c({
583
- ...t,
584
- availableWidth: E,
585
- availableHeight: y
586
- });
587
- const S = await r.getDimensions(l.floating);
588
- return f !== S.width || m !== S.height ? {
589
- reset: {
590
- rects: !0
591
- }
592
- } : {};
593
- }
594
- };
595
- };
596
- function k(e) {
597
- var t;
598
- return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
599
- }
600
- function j(e) {
601
- return k(e).getComputedStyle(e);
602
- }
603
- const dt = Math.min, pe = Math.max, Oe = Math.round;
604
- function Nt(e) {
605
- const t = j(e);
606
- let n = parseFloat(t.width), o = parseFloat(t.height);
607
- const i = e.offsetWidth, s = e.offsetHeight, r = Oe(n) !== i || Oe(o) !== s;
608
- return r && (n = i, o = s), { width: n, height: o, fallback: r };
609
- }
610
- function ee(e) {
611
- return zt(e) ? (e.nodeName || "").toLowerCase() : "";
612
- }
613
- let xe;
614
- function Et() {
615
- if (xe)
616
- return xe;
617
- const e = navigator.userAgentData;
618
- return e && Array.isArray(e.brands) ? (xe = e.brands.map((t) => t.brand + "/" + t.version).join(" "), xe) : navigator.userAgent;
619
- }
620
- function V(e) {
621
- return e instanceof k(e).HTMLElement;
622
- }
623
- function Q(e) {
624
- return e instanceof k(e).Element;
625
- }
626
- function zt(e) {
627
- return e instanceof k(e).Node;
628
- }
629
- function ct(e) {
630
- return typeof ShadowRoot > "u" ? !1 : e instanceof k(e).ShadowRoot || e instanceof ShadowRoot;
631
- }
632
- function He(e) {
633
- const { overflow: t, overflowX: n, overflowY: o, display: i } = j(e);
634
- return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
635
- }
636
- function Mn(e) {
637
- return ["table", "td", "th"].includes(ee(e));
638
- }
639
- function qe(e) {
640
- const t = /firefox/i.test(Et()), n = j(e), o = n.backdropFilter || n.WebkitBackdropFilter;
641
- return n.transform !== "none" || n.perspective !== "none" || !!o && o !== "none" || t && n.willChange === "filter" || t && !!n.filter && n.filter !== "none" || ["transform", "perspective"].some((i) => n.willChange.includes(i)) || ["paint", "layout", "strict", "content"].some((i) => {
642
- const s = n.contain;
643
- return s != null && s.includes(i);
644
- });
645
- }
646
- function Rt() {
647
- return !/^((?!chrome|android).)*safari/i.test(Et());
648
- }
649
- function Ze(e) {
650
- return ["html", "body", "#document"].includes(ee(e));
651
- }
652
- function Lt(e) {
653
- return Q(e) ? e : e.contextElement;
654
- }
655
- const Ht = { x: 1, y: 1 };
656
- function de(e) {
657
- const t = Lt(e);
658
- if (!V(t))
659
- return Ht;
660
- const n = t.getBoundingClientRect(), { width: o, height: i, fallback: s } = Nt(t);
661
- let r = (s ? Oe(n.width) : n.width) / o, l = (s ? Oe(n.height) : n.height) / i;
662
- return r && Number.isFinite(r) || (r = 1), l && Number.isFinite(l) || (l = 1), { x: r, y: l };
663
- }
664
- function ye(e, t, n, o) {
665
- var i, s;
666
- t === void 0 && (t = !1), n === void 0 && (n = !1);
667
- const r = e.getBoundingClientRect(), l = Lt(e);
668
- let c = Ht;
669
- t && (o ? Q(o) && (c = de(o)) : c = de(e));
670
- const d = l ? k(l) : window, a = !Rt() && n;
671
- let u = (r.left + (a && ((i = d.visualViewport) == null ? void 0 : i.offsetLeft) || 0)) / c.x, p = (r.top + (a && ((s = d.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / c.y, h = r.width / c.x, f = r.height / c.y;
672
- if (l) {
673
- const m = k(l), w = o && Q(o) ? k(o) : o;
674
- let g = m.frameElement;
675
- for (; g && o && w !== m; ) {
676
- const v = de(g), $ = g.getBoundingClientRect(), T = getComputedStyle(g);
677
- $.x += (g.clientLeft + parseFloat(T.paddingLeft)) * v.x, $.y += (g.clientTop + parseFloat(T.paddingTop)) * v.y, u *= v.x, p *= v.y, h *= v.x, f *= v.y, u += $.x, p += $.y, g = k(g).frameElement;
678
- }
679
- }
680
- return { width: h, height: f, top: p, right: u + h, bottom: p + f, left: u, x: u, y: p };
681
- }
682
- function Z(e) {
683
- return ((zt(e) ? e.ownerDocument : e.document) || window.document).documentElement;
684
- }
685
- function Me(e) {
686
- return Q(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
687
- }
688
- function Mt(e) {
689
- return ye(Z(e)).left + Me(e).scrollLeft;
690
- }
691
- function $e(e) {
692
- if (ee(e) === "html")
693
- return e;
694
- const t = e.assignedSlot || e.parentNode || ct(e) && e.host || Z(e);
695
- return ct(t) ? t.host : t;
696
- }
697
- function Dt(e) {
698
- const t = $e(e);
699
- return Ze(t) ? t.ownerDocument.body : V(t) && He(t) ? t : Dt(t);
700
- }
701
- function Ne(e, t) {
702
- var n;
703
- t === void 0 && (t = []);
704
- const o = Dt(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = k(o);
705
- return i ? t.concat(s, s.visualViewport || [], He(o) ? o : []) : t.concat(o, Ne(o));
706
- }
707
- function ut(e, t, n) {
708
- return t === "viewport" ? ue(function(o, i) {
709
- const s = k(o), r = Z(o), l = s.visualViewport;
710
- let c = r.clientWidth, d = r.clientHeight, a = 0, u = 0;
711
- if (l) {
712
- c = l.width, d = l.height;
713
- const p = Rt();
714
- (p || !p && i === "fixed") && (a = l.offsetLeft, u = l.offsetTop);
715
- }
716
- return { width: c, height: d, x: a, y: u };
717
- }(e, n)) : Q(t) ? ue(function(o, i) {
718
- const s = ye(o, !0, i === "fixed"), r = s.top + o.clientTop, l = s.left + o.clientLeft, c = V(o) ? de(o) : { x: 1, y: 1 };
719
- return { width: o.clientWidth * c.x, height: o.clientHeight * c.y, x: l * c.x, y: r * c.y };
720
- }(t, n)) : ue(function(o) {
721
- const i = Z(o), s = Me(o), r = o.ownerDocument.body, l = pe(i.scrollWidth, i.clientWidth, r.scrollWidth, r.clientWidth), c = pe(i.scrollHeight, i.clientHeight, r.scrollHeight, r.clientHeight);
722
- let d = -s.scrollLeft + Mt(o);
723
- const a = -s.scrollTop;
724
- return j(r).direction === "rtl" && (d += pe(i.clientWidth, r.clientWidth) - l), { width: l, height: c, x: d, y: a };
725
- }(Z(e)));
726
- }
727
- function pt(e) {
728
- return V(e) && j(e).position !== "fixed" ? e.offsetParent : null;
729
- }
730
- function ht(e) {
731
- const t = k(e);
732
- let n = pt(e);
733
- for (; n && Mn(n) && j(n).position === "static"; )
734
- n = pt(n);
735
- return n && (ee(n) === "html" || ee(n) === "body" && j(n).position === "static" && !qe(n)) ? t : n || function(o) {
736
- let i = $e(o);
737
- for (; V(i) && !Ze(i); ) {
738
- if (qe(i))
739
- return i;
740
- i = $e(i);
741
- }
742
- return null;
743
- }(e) || t;
744
- }
745
- function Dn(e, t, n) {
746
- const o = V(t), i = Z(t), s = ye(e, !0, n === "fixed", t);
747
- let r = { scrollLeft: 0, scrollTop: 0 };
748
- const l = { x: 0, y: 0 };
749
- if (o || !o && n !== "fixed")
750
- if ((ee(t) !== "body" || He(i)) && (r = Me(t)), V(t)) {
751
- const c = ye(t, !0);
752
- l.x = c.x + t.clientLeft, l.y = c.y + t.clientTop;
753
- } else
754
- i && (l.x = Mt(i));
755
- return { x: s.left + r.scrollLeft - l.x, y: s.top + r.scrollTop - l.y, width: s.width, height: s.height };
756
- }
757
- const kn = { getClippingRect: function(e) {
758
- let { element: t, boundary: n, rootBoundary: o, strategy: i } = e;
759
- const s = n === "clippingAncestors" ? function(d, a) {
760
- const u = a.get(d);
761
- if (u)
762
- return u;
763
- let p = Ne(d).filter((w) => Q(w) && ee(w) !== "body"), h = null;
764
- const f = j(d).position === "fixed";
765
- let m = f ? $e(d) : d;
766
- for (; Q(m) && !Ze(m); ) {
767
- const w = j(m), g = qe(m);
768
- (f ? g || h : g || w.position !== "static" || !h || !["absolute", "fixed"].includes(h.position)) ? h = w : p = p.filter((v) => v !== m), m = $e(m);
769
- }
770
- return a.set(d, p), p;
771
- }(t, this._c) : [].concat(n), r = [...s, o], l = r[0], c = r.reduce((d, a) => {
772
- const u = ut(t, a, i);
773
- return d.top = pe(u.top, d.top), d.right = dt(u.right, d.right), d.bottom = dt(u.bottom, d.bottom), d.left = pe(u.left, d.left), d;
774
- }, ut(t, l, i));
775
- return { width: c.right - c.left, height: c.bottom - c.top, x: c.left, y: c.top };
776
- }, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
777
- let { rect: t, offsetParent: n, strategy: o } = e;
778
- const i = V(n), s = Z(n);
779
- if (n === s)
780
- return t;
781
- let r = { scrollLeft: 0, scrollTop: 0 }, l = { x: 1, y: 1 };
782
- const c = { x: 0, y: 0 };
783
- if ((i || !i && o !== "fixed") && ((ee(n) !== "body" || He(s)) && (r = Me(n)), V(n))) {
784
- const d = ye(n);
785
- l = de(n), c.x = d.x + n.clientLeft, c.y = d.y + n.clientTop;
786
- }
787
- return { width: t.width * l.x, height: t.height * l.y, x: t.x * l.x - r.scrollLeft * l.x + c.x, y: t.y * l.y - r.scrollTop * l.y + c.y };
788
- }, isElement: Q, getDimensions: function(e) {
789
- return V(e) ? Nt(e) : e.getBoundingClientRect();
790
- }, getOffsetParent: ht, getDocumentElement: Z, getScale: de, async getElementRects(e) {
791
- let { reference: t, floating: n, strategy: o } = e;
792
- const i = this.getOffsetParent || ht, s = this.getDimensions;
793
- return { reference: Dn(t, await i(n), o), floating: { x: 0, y: 0, ...await s(n) } };
794
- }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => j(e).direction === "rtl" }, Bn = (e, t, n) => {
795
- const o = /* @__PURE__ */ new Map(), i = { platform: kn, ...n }, s = { ...i.platform, _c: o };
796
- return Pn(e, t, { ...i, platform: s });
797
- }, ie = {
798
- // Disable popper components
799
- disabled: !1,
800
- // Default position offset along main axis (px)
801
- distance: 5,
802
- // Default position offset along cross axis (px)
803
- skidding: 0,
804
- // Default container where the tooltip will be appended
805
- container: "body",
806
- // Element used to compute position and size boundaries
807
- boundary: void 0,
808
- // Skip delay & CSS transitions when another popper is shown, so that the popper appear to instanly move to the new position.
809
- instantMove: !1,
810
- // Auto destroy tooltip DOM nodes (ms)
811
- disposeTimeout: 0,
812
- // Triggers on the popper itself
813
- popperTriggers: [],
814
- // Positioning strategy
815
- strategy: "absolute",
816
- // Prevent overflow
817
- preventOverflow: !0,
818
- // Flip to the opposite placement if needed
819
- flip: !0,
820
- // Shift on the cross axis to prevent the popper from overflowing
821
- shift: !0,
822
- // Overflow padding (px)
823
- overflowPadding: 0,
824
- // Arrow padding (px)
825
- arrowPadding: 0,
826
- // Compute arrow overflow (useful to hide it)
827
- arrowOverflow: !0,
828
- // Themes
829
- themes: {
830
- tooltip: {
831
- // Default tooltip placement relative to target element
832
- placement: "top",
833
- // Default events that trigger the tooltip
834
- triggers: ["hover", "focus", "touch"],
835
- // Close tooltip on click on tooltip target
836
- hideTriggers: (e) => [...e, "click"],
837
- // Delay (ms)
838
- delay: {
839
- show: 200,
840
- hide: 0
841
- },
842
- // Update popper on content resize
843
- handleResize: !1,
844
- // Enable HTML content in directive
845
- html: !1,
846
- // Displayed when tooltip content is loading
847
- loadingContent: "..."
848
- },
849
- dropdown: {
850
- // Default dropdown placement relative to target element
851
- placement: "bottom",
852
- // Default events that trigger the dropdown
853
- triggers: ["click"],
854
- // Delay (ms)
855
- delay: 0,
856
- // Update popper on content resize
857
- handleResize: !0,
858
- // Hide on clock outside
859
- autoHide: !0
860
- },
861
- menu: {
862
- $extend: "dropdown",
863
- triggers: ["hover", "focus"],
864
- popperTriggers: ["hover", "focus"],
865
- delay: {
866
- show: 0,
867
- hide: 400
868
- }
869
- }
870
- }
871
- };
872
- function Ee(e, t) {
873
- let n = ie.themes[e] || {}, o;
874
- do
875
- o = n[t], typeof o > "u" ? n.$extend ? n = ie.themes[n.$extend] || {} : (n = null, o = ie[t]) : n = null;
876
- while (n);
877
- return o;
878
- }
879
- function In(e) {
880
- const t = [e];
881
- let n = ie.themes[e] || {};
882
- do
883
- n.$extend && !n.$resetCss ? (t.push(n.$extend), n = ie.themes[n.$extend] || {}) : n = null;
884
- while (n);
885
- return t.map((o) => `v-popper--theme-${o}`);
886
- }
887
- function ft(e) {
888
- const t = [e];
889
- let n = ie.themes[e] || {};
890
- do
891
- n.$extend ? (t.push(n.$extend), n = ie.themes[n.$extend] || {}) : n = null;
892
- while (n);
893
- return t;
894
- }
895
- let ce = !1;
896
- if (typeof window < "u") {
897
- ce = !1;
898
- try {
899
- const e = Object.defineProperty({}, "passive", {
900
- get() {
901
- ce = !0;
902
- }
903
- });
904
- window.addEventListener("test", null, e);
905
- } catch {
906
- }
907
- }
908
- let kt = !1;
909
- typeof window < "u" && typeof navigator < "u" && (kt = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
910
- const Bt = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
911
- t,
912
- `${t}-start`,
913
- `${t}-end`
914
- ]), []), mt = {
915
- hover: "mouseenter",
916
- focus: "focus",
917
- click: "click",
918
- touch: "touchstart",
919
- pointer: "pointerdown"
920
- }, gt = {
921
- hover: "mouseleave",
922
- focus: "blur",
923
- click: "click",
924
- touch: "touchend",
925
- pointer: "pointerup"
926
- };
927
- function wt(e, t) {
928
- const n = e.indexOf(t);
929
- n !== -1 && e.splice(n, 1);
930
- }
931
- function Fe() {
932
- return new Promise((e) => requestAnimationFrame(() => {
933
- requestAnimationFrame(e);
934
- }));
935
- }
936
- const M = [];
937
- let te = null;
938
- const vt = {};
939
- function yt(e) {
940
- let t = vt[e];
941
- return t || (t = vt[e] = []), t;
942
- }
943
- let Ge = function() {
944
- };
945
- typeof window < "u" && (Ge = window.Element);
946
- function b(e) {
947
- return function(t) {
948
- return Ee(t.theme, e);
949
- };
950
- }
951
- const We = "__floating-vue__popper", It = () => ze({
952
- name: "VPopper",
953
- provide() {
954
- return {
955
- [We]: {
956
- parentPopper: this
957
- }
958
- };
959
- },
960
- inject: {
961
- [We]: { default: null }
962
- },
963
- props: {
964
- theme: {
965
- type: String,
966
- required: !0
967
- },
968
- targetNodes: {
969
- type: Function,
970
- required: !0
971
- },
972
- referenceNode: {
973
- type: Function,
974
- default: null
975
- },
976
- popperNode: {
977
- type: Function,
978
- required: !0
979
- },
980
- shown: {
981
- type: Boolean,
982
- default: !1
983
- },
984
- showGroup: {
985
- type: String,
986
- default: null
987
- },
988
- // eslint-disable-next-line vue/require-prop-types
989
- ariaId: {
990
- default: null
991
- },
992
- disabled: {
993
- type: Boolean,
994
- default: b("disabled")
995
- },
996
- positioningDisabled: {
997
- type: Boolean,
998
- default: b("positioningDisabled")
999
- },
1000
- placement: {
1001
- type: String,
1002
- default: b("placement"),
1003
- validator: (e) => Bt.includes(e)
1004
- },
1005
- delay: {
1006
- type: [String, Number, Object],
1007
- default: b("delay")
1008
- },
1009
- distance: {
1010
- type: [Number, String],
1011
- default: b("distance")
1012
- },
1013
- skidding: {
1014
- type: [Number, String],
1015
- default: b("skidding")
1016
- },
1017
- triggers: {
1018
- type: Array,
1019
- default: b("triggers")
1020
- },
1021
- showTriggers: {
1022
- type: [Array, Function],
1023
- default: b("showTriggers")
1024
- },
1025
- hideTriggers: {
1026
- type: [Array, Function],
1027
- default: b("hideTriggers")
1028
- },
1029
- popperTriggers: {
1030
- type: Array,
1031
- default: b("popperTriggers")
1032
- },
1033
- popperShowTriggers: {
1034
- type: [Array, Function],
1035
- default: b("popperShowTriggers")
1036
- },
1037
- popperHideTriggers: {
1038
- type: [Array, Function],
1039
- default: b("popperHideTriggers")
1040
- },
1041
- container: {
1042
- type: [String, Object, Ge, Boolean],
1043
- default: b("container")
1044
- },
1045
- boundary: {
1046
- type: [String, Ge],
1047
- default: b("boundary")
1048
- },
1049
- strategy: {
1050
- type: String,
1051
- validator: (e) => ["absolute", "fixed"].includes(e),
1052
- default: b("strategy")
1053
- },
1054
- autoHide: {
1055
- type: [Boolean, Function],
1056
- default: b("autoHide")
1057
- },
1058
- handleResize: {
1059
- type: Boolean,
1060
- default: b("handleResize")
1061
- },
1062
- instantMove: {
1063
- type: Boolean,
1064
- default: b("instantMove")
1065
- },
1066
- eagerMount: {
1067
- type: Boolean,
1068
- default: b("eagerMount")
1069
- },
1070
- popperClass: {
1071
- type: [String, Array, Object],
1072
- default: b("popperClass")
1073
- },
1074
- computeTransformOrigin: {
1075
- type: Boolean,
1076
- default: b("computeTransformOrigin")
1077
- },
1078
- /**
1079
- * @deprecated
1080
- */
1081
- autoMinSize: {
1082
- type: Boolean,
1083
- default: b("autoMinSize")
1084
- },
1085
- autoSize: {
1086
- type: [Boolean, String],
1087
- default: b("autoSize")
1088
- },
1089
- /**
1090
- * @deprecated
1091
- */
1092
- autoMaxSize: {
1093
- type: Boolean,
1094
- default: b("autoMaxSize")
1095
- },
1096
- autoBoundaryMaxSize: {
1097
- type: Boolean,
1098
- default: b("autoBoundaryMaxSize")
1099
- },
1100
- preventOverflow: {
1101
- type: Boolean,
1102
- default: b("preventOverflow")
1103
- },
1104
- overflowPadding: {
1105
- type: [Number, String],
1106
- default: b("overflowPadding")
1107
- },
1108
- arrowPadding: {
1109
- type: [Number, String],
1110
- default: b("arrowPadding")
1111
- },
1112
- arrowOverflow: {
1113
- type: Boolean,
1114
- default: b("arrowOverflow")
1115
- },
1116
- flip: {
1117
- type: Boolean,
1118
- default: b("flip")
1119
- },
1120
- shift: {
1121
- type: Boolean,
1122
- default: b("shift")
1123
- },
1124
- shiftCrossAxis: {
1125
- type: Boolean,
1126
- default: b("shiftCrossAxis")
1127
- },
1128
- noAutoFocus: {
1129
- type: Boolean,
1130
- default: b("noAutoFocus")
1131
- },
1132
- disposeTimeout: {
1133
- type: Number,
1134
- default: b("disposeTimeout")
1135
- }
1136
- },
1137
- emits: {
1138
- show: () => !0,
1139
- hide: () => !0,
1140
- "update:shown": (e) => !0,
1141
- "apply-show": () => !0,
1142
- "apply-hide": () => !0,
1143
- "close-group": () => !0,
1144
- "close-directive": () => !0,
1145
- "auto-hide": () => !0,
1146
- resize: () => !0
1147
- },
1148
- data() {
1149
- return {
1150
- isShown: !1,
1151
- isMounted: !1,
1152
- skipTransition: !1,
1153
- classes: {
1154
- showFrom: !1,
1155
- showTo: !1,
1156
- hideFrom: !1,
1157
- hideTo: !0
1158
- },
1159
- result: {
1160
- x: 0,
1161
- y: 0,
1162
- placement: "",
1163
- strategy: this.strategy,
1164
- arrow: {
1165
- x: 0,
1166
- y: 0,
1167
- centerOffset: 0
1168
- },
1169
- transformOrigin: null
1170
- },
1171
- shownChildren: /* @__PURE__ */ new Set(),
1172
- lastAutoHide: !0
1173
- };
1174
- },
1175
- computed: {
1176
- popperId() {
1177
- return this.ariaId != null ? this.ariaId : this.randomId;
1178
- },
1179
- shouldMountContent() {
1180
- return this.eagerMount || this.isMounted;
1181
- },
1182
- slotData() {
1183
- return {
1184
- popperId: this.popperId,
1185
- isShown: this.isShown,
1186
- shouldMountContent: this.shouldMountContent,
1187
- skipTransition: this.skipTransition,
1188
- autoHide: typeof this.autoHide == "function" ? this.lastAutoHide : this.autoHide,
1189
- show: this.show,
1190
- hide: this.hide,
1191
- handleResize: this.handleResize,
1192
- onResize: this.onResize,
1193
- classes: {
1194
- ...this.classes,
1195
- popperClass: this.popperClass
1196
- },
1197
- result: this.positioningDisabled ? null : this.result,
1198
- attrs: this.$attrs
1199
- };
1200
- },
1201
- parentPopper() {
1202
- var e;
1203
- return (e = this[We]) == null ? void 0 : e.parentPopper;
1204
- },
1205
- hasPopperShowTriggerHover() {
1206
- var e, t;
1207
- return ((e = this.popperTriggers) == null ? void 0 : e.includes("hover")) || ((t = this.popperShowTriggers) == null ? void 0 : t.includes("hover"));
1208
- }
1209
- },
1210
- watch: {
1211
- shown: "$_autoShowHide",
1212
- disabled(e) {
1213
- e ? this.dispose() : this.init();
1214
- },
1215
- async container() {
1216
- this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
1217
- },
1218
- ...[
1219
- "triggers",
1220
- "positioningDisabled"
1221
- ].reduce((e, t) => (e[t] = "$_refreshListeners", e), {}),
1222
- ...[
1223
- "placement",
1224
- "distance",
1225
- "skidding",
1226
- "boundary",
1227
- "strategy",
1228
- "overflowPadding",
1229
- "arrowPadding",
1230
- "preventOverflow",
1231
- "shift",
1232
- "shiftCrossAxis",
1233
- "flip"
1234
- ].reduce((e, t) => (e[t] = "$_computePosition", e), {})
1235
- },
1236
- created() {
1237
- this.$_isDisposed = !0, this.randomId = `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`, this.autoMinSize && console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'), this.autoMaxSize && console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");
1238
- },
1239
- mounted() {
1240
- this.init(), this.$_detachPopperNode();
1241
- },
1242
- activated() {
1243
- this.$_autoShowHide();
1244
- },
1245
- deactivated() {
1246
- this.hide();
1247
- },
1248
- beforeUnmount() {
1249
- this.dispose();
1250
- },
1251
- methods: {
1252
- show({ event: e = null, skipDelay: t = !1, force: n = !1 } = {}) {
1253
- var o, i;
1254
- (o = this.parentPopper) != null && o.lockedChild && this.parentPopper.lockedChild !== this || (this.$_pendingHide = !1, (n || !this.disabled) && (((i = this.parentPopper) == null ? void 0 : i.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
1255
- this.$_showFrameLocked = !1;
1256
- })), this.$emit("update:shown", !0));
1257
- },
1258
- hide({ event: e = null, skipDelay: t = !1 } = {}) {
1259
- var n;
1260
- if (!this.$_hideInProgress) {
1261
- if (this.shownChildren.size > 0) {
1262
- this.$_pendingHide = !0;
1263
- return;
1264
- }
1265
- if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
1266
- this.parentPopper && (this.parentPopper.lockedChild = this, clearTimeout(this.parentPopper.lockedChildTimer), this.parentPopper.lockedChildTimer = setTimeout(() => {
1267
- this.parentPopper.lockedChild === this && (this.parentPopper.lockedChild.hide({ skipDelay: t }), this.parentPopper.lockedChild = null);
1268
- }, 1e3));
1269
- return;
1270
- }
1271
- ((n = this.parentPopper) == null ? void 0 : n.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_pendingHide = !1, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", !1);
1272
- }
1273
- },
1274
- init() {
1275
- var e;
1276
- this.$_isDisposed && (this.$_isDisposed = !1, this.isMounted = !1, this.$_events = [], this.$_preventShow = !1, this.$_referenceNode = ((e = this.referenceNode) == null ? void 0 : e.call(this)) ?? this.$el, this.$_targetNodes = this.targetNodes().filter((t) => t.nodeType === t.ELEMENT_NODE), this.$_popperNode = this.popperNode(), this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner"), this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container"), this.$_swapTargetAttrs("title", "data-original-title"), this.$_detachPopperNode(), this.triggers.length && this.$_addEventListeners(), this.shown && this.show());
1277
- },
1278
- dispose() {
1279
- this.$_isDisposed || (this.$_isDisposed = !0, this.$_removeEventListeners(), this.hide({ skipDelay: !0 }), this.$_detachPopperNode(), this.isMounted = !1, this.isShown = !1, this.$_updateParentShownChildren(!1), this.$_swapTargetAttrs("data-original-title", "title"));
1280
- },
1281
- async onResize() {
1282
- this.isShown && (await this.$_computePosition(), this.$emit("resize"));
1283
- },
1284
- async $_computePosition() {
1285
- if (this.$_isDisposed || this.positioningDisabled)
1286
- return;
1287
- const e = {
1288
- strategy: this.strategy,
1289
- middleware: []
1290
- };
1291
- (this.distance || this.skidding) && e.middleware.push(Rn({
1292
- mainAxis: this.distance,
1293
- crossAxis: this.skidding
1294
- }));
1295
- const t = this.placement.startsWith("auto");
1296
- if (t ? e.middleware.push(On({
1297
- alignment: this.placement.split("-")[1] ?? ""
1298
- })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(Ln({
1299
- padding: this.overflowPadding,
1300
- boundary: this.boundary,
1301
- crossAxis: this.shiftCrossAxis
1302
- })), !t && this.flip && e.middleware.push(Nn({
1303
- padding: this.overflowPadding,
1304
- boundary: this.boundary
1305
- }))), e.middleware.push(An({
1306
- element: this.$_arrowNode,
1307
- padding: this.arrowPadding
1308
- })), this.arrowOverflow && e.middleware.push({
1309
- name: "arrowOverflow",
1310
- fn: ({ placement: o, rects: i, middlewareData: s }) => {
1311
- let r;
1312
- const { centerOffset: l } = s.arrow;
1313
- return o.startsWith("top") || o.startsWith("bottom") ? r = Math.abs(l) > i.reference.width / 2 : r = Math.abs(l) > i.reference.height / 2, {
1314
- data: {
1315
- overflow: r
1316
- }
1317
- };
1318
- }
1319
- }), this.autoMinSize || this.autoSize) {
1320
- const o = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
1321
- e.middleware.push({
1322
- name: "autoSize",
1323
- fn: ({ rects: i, placement: s, middlewareData: r }) => {
1324
- var l;
1325
- if ((l = r.autoSize) != null && l.skip)
1326
- return {};
1327
- let c, d;
1328
- return s.startsWith("top") || s.startsWith("bottom") ? c = i.reference.width : d = i.reference.height, this.$_innerNode.style[o === "min" ? "minWidth" : o === "max" ? "maxWidth" : "width"] = c != null ? `${c}px` : null, this.$_innerNode.style[o === "min" ? "minHeight" : o === "max" ? "maxHeight" : "height"] = d != null ? `${d}px` : null, {
1329
- data: {
1330
- skip: !0
1331
- },
1332
- reset: {
1333
- rects: !0
1334
- }
1335
- };
1336
- }
1337
- });
1338
- }
1339
- (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(Hn({
1340
- boundary: this.boundary,
1341
- padding: this.overflowPadding,
1342
- apply: ({ availableWidth: o, availableHeight: i }) => {
1343
- this.$_innerNode.style.maxWidth = o != null ? `${o}px` : null, this.$_innerNode.style.maxHeight = i != null ? `${i}px` : null;
1344
- }
1345
- })));
1346
- const n = await Bn(this.$_referenceNode, this.$_popperNode, e);
1347
- Object.assign(this.result, {
1348
- x: n.x,
1349
- y: n.y,
1350
- placement: n.placement,
1351
- strategy: n.strategy,
1352
- arrow: {
1353
- ...n.middlewareData.arrow,
1354
- ...n.middlewareData.arrowOverflow
1355
- }
1356
- });
1357
- },
1358
- $_scheduleShow(e = null, t = !1) {
1359
- if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), te && this.instantMove && te.instantMove && te !== this.parentPopper) {
1360
- te.$_applyHide(!0), this.$_applyShow(!0);
1361
- return;
1362
- }
1363
- t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
1364
- },
1365
- $_scheduleHide(e = null, t = !1) {
1366
- if (this.shownChildren.size > 0) {
1367
- this.$_pendingHide = !0;
1368
- return;
1369
- }
1370
- this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (te = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
1371
- },
1372
- $_computeDelay(e) {
1373
- const t = this.delay;
1374
- return parseInt(t && t[e] || t || 0);
1375
- },
1376
- async $_applyShow(e = !1) {
1377
- clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await Fe(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
1378
- ...Ne(this.$_referenceNode),
1379
- ...Ne(this.$_popperNode)
1380
- ], "scroll", () => {
1381
- this.$_computePosition();
1382
- }));
1383
- },
1384
- async $_applyShowEffect() {
1385
- if (this.$_hideInProgress)
1386
- return;
1387
- if (this.computeTransformOrigin) {
1388
- const t = this.$_referenceNode.getBoundingClientRect(), n = this.$_popperNode.querySelector(".v-popper__wrapper"), o = n.parentNode.getBoundingClientRect(), i = t.x + t.width / 2 - (o.left + n.offsetLeft), s = t.y + t.height / 2 - (o.top + n.offsetTop);
1389
- this.result.transformOrigin = `${i}px ${s}px`;
1390
- }
1391
- this.isShown = !0, this.$_applyAttrsToTarget({
1392
- "aria-describedby": this.popperId,
1393
- "data-popper-shown": ""
1394
- });
1395
- const e = this.showGroup;
1396
- if (e) {
1397
- let t;
1398
- for (let n = 0; n < M.length; n++)
1399
- t = M[n], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
1400
- }
1401
- M.push(this), document.body.classList.add("v-popper--some-open");
1402
- for (const t of ft(this.theme))
1403
- yt(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
1404
- this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await Fe(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
1405
- },
1406
- async $_applyHide(e = !1) {
1407
- if (this.shownChildren.size > 0) {
1408
- this.$_pendingHide = !0, this.$_hideInProgress = !1;
1409
- return;
1410
- }
1411
- if (clearTimeout(this.$_scheduleTimer), !this.isShown)
1412
- return;
1413
- this.skipTransition = e, wt(M, this), M.length === 0 && document.body.classList.remove("v-popper--some-open");
1414
- for (const n of ft(this.theme)) {
1415
- const o = yt(n);
1416
- wt(o, this), o.length === 0 && document.body.classList.remove(`v-popper--some-open--${n}`);
1417
- }
1418
- te === this && (te = null), this.isShown = !1, this.$_applyAttrsToTarget({
1419
- "aria-describedby": void 0,
1420
- "data-popper-shown": void 0
1421
- }), clearTimeout(this.$_disposeTimer);
1422
- const t = this.disposeTimeout;
1423
- t !== null && (this.$_disposeTimer = setTimeout(() => {
1424
- this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
1425
- }, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await Fe(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
1426
- },
1427
- $_autoShowHide() {
1428
- this.shown ? this.show() : this.hide();
1429
- },
1430
- $_ensureTeleport() {
1431
- if (this.$_isDisposed)
1432
- return;
1433
- let e = this.container;
1434
- if (typeof e == "string" ? e = window.document.querySelector(e) : e === !1 && (e = this.$_targetNodes[0].parentNode), !e)
1435
- throw new Error("No container for popover: " + this.container);
1436
- e.appendChild(this.$_popperNode), this.isMounted = !0;
1437
- },
1438
- $_addEventListeners() {
1439
- const e = (n) => {
1440
- this.isShown && !this.$_hideInProgress || (n.usedByTooltip = !0, !this.$_preventShow && this.show({ event: n }));
1441
- };
1442
- this.$_registerTriggerListeners(this.$_targetNodes, mt, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], mt, this.popperTriggers, this.popperShowTriggers, e);
1443
- const t = (n) => {
1444
- n.usedByTooltip || this.hide({ event: n });
1445
- };
1446
- this.$_registerTriggerListeners(this.$_targetNodes, gt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], gt, this.popperTriggers, this.popperHideTriggers, t);
1447
- },
1448
- $_registerEventListeners(e, t, n) {
1449
- this.$_events.push({ targetNodes: e, eventType: t, handler: n }), e.forEach((o) => o.addEventListener(t, n, ce ? {
1450
- passive: !0
1451
- } : void 0));
1452
- },
1453
- $_registerTriggerListeners(e, t, n, o, i) {
1454
- let s = n;
1455
- o != null && (s = typeof o == "function" ? o(s) : o), s.forEach((r) => {
1456
- const l = t[r];
1457
- l && this.$_registerEventListeners(e, l, i);
1458
- });
1459
- },
1460
- $_removeEventListeners(e) {
1461
- const t = [];
1462
- this.$_events.forEach((n) => {
1463
- const { targetNodes: o, eventType: i, handler: s } = n;
1464
- !e || e === i ? o.forEach((r) => r.removeEventListener(i, s)) : t.push(n);
1465
- }), this.$_events = t;
1466
- },
1467
- $_refreshListeners() {
1468
- this.$_isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
1469
- },
1470
- $_handleGlobalClose(e, t = !1) {
1471
- this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = !0, setTimeout(() => {
1472
- this.$_preventShow = !1;
1473
- }, 300)));
1474
- },
1475
- $_detachPopperNode() {
1476
- this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
1477
- },
1478
- $_swapTargetAttrs(e, t) {
1479
- for (const n of this.$_targetNodes) {
1480
- const o = n.getAttribute(e);
1481
- o && (n.removeAttribute(e), n.setAttribute(t, o));
1482
- }
1483
- },
1484
- $_applyAttrsToTarget(e) {
1485
- for (const t of this.$_targetNodes)
1486
- for (const n in e) {
1487
- const o = e[n];
1488
- o == null ? t.removeAttribute(n) : t.setAttribute(n, o);
1489
- }
1490
- },
1491
- $_updateParentShownChildren(e) {
1492
- let t = this.parentPopper;
1493
- for (; t; )
1494
- e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.$_pendingHide && t.hide()), t = t.parentPopper;
1495
- },
1496
- $_isAimingPopper() {
1497
- const e = this.$_referenceNode.getBoundingClientRect();
1498
- if (he >= e.left && he <= e.right && fe >= e.top && fe <= e.bottom) {
1499
- const t = this.$_popperNode.getBoundingClientRect(), n = he - X, o = fe - K, i = t.left + t.width / 2 - X + (t.top + t.height / 2) - K + t.width + t.height, s = X + n * i, r = K + o * i;
1500
- return _e(X, K, s, r, t.left, t.top, t.left, t.bottom) || // Left edge
1501
- _e(X, K, s, r, t.left, t.top, t.right, t.top) || // Top edge
1502
- _e(X, K, s, r, t.right, t.top, t.right, t.bottom) || // Right edge
1503
- _e(X, K, s, r, t.left, t.bottom, t.right, t.bottom);
1504
- }
1505
- return !1;
1506
- }
1507
- },
1508
- render() {
1509
- return this.$slots.default(this.slotData);
1510
- }
1511
- });
1512
- typeof document < "u" && typeof window < "u" && (kt ? (document.addEventListener("touchstart", $t, ce ? {
1513
- passive: !0,
1514
- capture: !0
1515
- } : !0), document.addEventListener("touchend", Wn, ce ? {
1516
- passive: !0,
1517
- capture: !0
1518
- } : !0)) : (window.addEventListener("mousedown", $t, !0), window.addEventListener("click", Fn, !0)), window.addEventListener("resize", qn));
1519
- function $t(e) {
1520
- for (let t = 0; t < M.length; t++) {
1521
- const n = M[t];
1522
- try {
1523
- const o = n.popperNode();
1524
- n.$_mouseDownContains = o.contains(e.target);
1525
- } catch {
1526
- }
1527
- }
1528
- }
1529
- function Fn(e) {
1530
- Ft(e);
1531
- }
1532
- function Wn(e) {
1533
- Ft(e, !0);
1534
- }
1535
- function Ft(e, t = !1) {
1536
- const n = {};
1537
- for (let o = M.length - 1; o >= 0; o--) {
1538
- const i = M[o];
1539
- try {
1540
- const s = i.$_containsGlobalTarget = jn(i, e);
1541
- i.$_pendingHide = !1, requestAnimationFrame(() => {
1542
- if (i.$_pendingHide = !1, !n[i.randomId] && bt(i, s, e)) {
1543
- if (i.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && s) {
1544
- let l = i.parentPopper;
1545
- for (; l; )
1546
- n[l.randomId] = !0, l = l.parentPopper;
1547
- return;
1548
- }
1549
- let r = i.parentPopper;
1550
- for (; r && bt(r, r.$_containsGlobalTarget, e); )
1551
- r.$_handleGlobalClose(e, t), r = r.parentPopper;
1552
- }
1553
- });
1554
- } catch {
1555
- }
1556
- }
1557
- }
1558
- function jn(e, t) {
1559
- const n = e.popperNode();
1560
- return e.$_mouseDownContains || n.contains(t.target);
1561
- }
1562
- function bt(e, t, n) {
1563
- return n.closeAllPopover || n.closePopover && t || Vn(e, n) && !t;
1564
- }
1565
- function Vn(e, t) {
1566
- if (typeof e.autoHide == "function") {
1567
- const n = e.autoHide(t);
1568
- return e.lastAutoHide = n, n;
1569
- }
1570
- return e.autoHide;
1571
- }
1572
- function qn(e) {
1573
- for (let t = 0; t < M.length; t++)
1574
- M[t].$_computePosition(e);
1575
- }
1576
- function Gn() {
1577
- for (let e = 0; e < M.length; e++)
1578
- M[e].hide();
1579
- }
1580
- let X = 0, K = 0, he = 0, fe = 0;
1581
- typeof window < "u" && window.addEventListener("mousemove", (e) => {
1582
- X = he, K = fe, he = e.clientX, fe = e.clientY;
1583
- }, ce ? {
1584
- passive: !0
1585
- } : void 0);
1586
- function _e(e, t, n, o, i, s, r, l) {
1587
- const c = ((r - i) * (t - s) - (l - s) * (e - i)) / ((l - s) * (n - e) - (r - i) * (o - t)), d = ((n - e) * (t - s) - (o - t) * (e - i)) / ((l - s) * (n - e) - (r - i) * (o - t));
1588
- return c >= 0 && c <= 1 && d >= 0 && d <= 1;
1589
- }
1590
- const Yn = {
1591
- extends: It()
1592
- }, De = (e, t) => {
1593
- const n = e.__vccOpts || e;
1594
- for (const [o, i] of t)
1595
- n[o] = i;
1596
- return n;
1597
- };
1598
- function Un(e, t, n, o, i, s) {
1599
- return Y(), me("div", {
1600
- ref: "reference",
1601
- class: Xe(["v-popper", {
1602
- "v-popper--shown": e.slotData.isShown
1603
- }])
1604
- }, [
1605
- Te(e.$slots, "default", Zt(en(e.slotData)))
1606
- ], 2);
1607
- }
1608
- const Xn = /* @__PURE__ */ De(Yn, [["render", Un]]);
1609
- function Kn() {
1610
- var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
1611
- if (t > 0)
1612
- return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
1613
- var n = e.indexOf("Trident/");
1614
- if (n > 0) {
1615
- var o = e.indexOf("rv:");
1616
- return parseInt(e.substring(o + 3, e.indexOf(".", o)), 10);
1617
- }
1618
- var i = e.indexOf("Edge/");
1619
- return i > 0 ? parseInt(e.substring(i + 5, e.indexOf(".", i)), 10) : -1;
1620
- }
1621
- let Se;
1622
- function Ye() {
1623
- Ye.init || (Ye.init = !0, Se = Kn() !== -1);
1624
- }
1625
- var ke = {
1626
- name: "ResizeObserver",
1627
- props: {
1628
- emitOnMount: {
1629
- type: Boolean,
1630
- default: !1
1631
- },
1632
- ignoreWidth: {
1633
- type: Boolean,
1634
- default: !1
1635
- },
1636
- ignoreHeight: {
1637
- type: Boolean,
1638
- default: !1
1639
- }
1640
- },
1641
- emits: [
1642
- "notify"
1643
- ],
1644
- mounted() {
1645
- Ye(), Ue(() => {
1646
- this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
1647
- });
1648
- const e = document.createElement("object");
1649
- this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", Se && this.$el.appendChild(e), e.data = "about:blank", Se || this.$el.appendChild(e);
1650
- },
1651
- beforeUnmount() {
1652
- this.removeResizeHandlers();
1653
- },
1654
- methods: {
1655
- compareAndNotify() {
1656
- (!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitSize());
1657
- },
1658
- emitSize() {
1659
- this.$emit("notify", {
1660
- width: this._w,
1661
- height: this._h
1662
- });
1663
- },
1664
- addResizeHandlers() {
1665
- this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
1666
- },
1667
- removeResizeHandlers() {
1668
- this._resizeObject && this._resizeObject.onload && (!Se && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
1669
- }
1670
- }
1671
- };
1672
- const Jn = /* @__PURE__ */ tn("data-v-b329ee4c");
1673
- Jt("data-v-b329ee4c");
1674
- const Qn = {
1675
- class: "resize-observer",
1676
- tabindex: "-1"
1677
- };
1678
- Qt();
1679
- const Zn = /* @__PURE__ */ Jn((e, t, n, o, i, s) => (Y(), Re("div", Qn)));
1680
- ke.render = Zn;
1681
- ke.__scopeId = "data-v-b329ee4c";
1682
- ke.__file = "src/components/ResizeObserver.vue";
1683
- const Wt = (e = "theme") => ({
1684
- computed: {
1685
- themeClass() {
1686
- return In(this[e]);
1687
- }
1688
- }
1689
- }), eo = ze({
1690
- name: "VPopperContent",
1691
- components: {
1692
- ResizeObserver: ke
1693
- },
1694
- mixins: [
1695
- Wt()
1696
- ],
1697
- props: {
1698
- popperId: String,
1699
- theme: String,
1700
- shown: Boolean,
1701
- mounted: Boolean,
1702
- skipTransition: Boolean,
1703
- autoHide: Boolean,
1704
- handleResize: Boolean,
1705
- classes: Object,
1706
- result: Object
1707
- },
1708
- emits: [
1709
- "hide",
1710
- "resize"
1711
- ],
1712
- methods: {
1713
- toPx(e) {
1714
- return e != null && !isNaN(e) ? `${e}px` : null;
1715
- }
1716
- }
1717
- }), to = ["id", "aria-hidden", "tabindex", "data-popper-placement"], no = {
1718
- ref: "inner",
1719
- class: "v-popper__inner"
1720
- }, oo = /* @__PURE__ */ oe("div", { class: "v-popper__arrow-outer" }, null, -1), io = /* @__PURE__ */ oe("div", { class: "v-popper__arrow-inner" }, null, -1), so = [
1721
- oo,
1722
- io
1723
- ];
1724
- function ro(e, t, n, o, i, s) {
1725
- const r = ge("ResizeObserver");
1726
- return Y(), me("div", {
1727
- id: e.popperId,
1728
- ref: "popover",
1729
- class: Xe(["v-popper__popper", [
1730
- e.themeClass,
1731
- e.classes.popperClass,
1732
- {
1733
- "v-popper__popper--shown": e.shown,
1734
- "v-popper__popper--hidden": !e.shown,
1735
- "v-popper__popper--show-from": e.classes.showFrom,
1736
- "v-popper__popper--show-to": e.classes.showTo,
1737
- "v-popper__popper--hide-from": e.classes.hideFrom,
1738
- "v-popper__popper--hide-to": e.classes.hideTo,
1739
- "v-popper__popper--skip-transition": e.skipTransition,
1740
- "v-popper__popper--arrow-overflow": e.result && e.result.arrow.overflow,
1741
- "v-popper__popper--no-positioning": !e.result
1742
- }
1743
- ]]),
1744
- style: Be(e.result ? {
1745
- position: e.result.strategy,
1746
- transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
1747
- } : void 0),
1748
- "aria-hidden": e.shown ? "false" : "true",
1749
- tabindex: e.autoHide ? 0 : void 0,
1750
- "data-popper-placement": e.result ? e.result.placement : void 0,
1751
- onKeyup: t[2] || (t[2] = nn((l) => e.autoHide && e.$emit("hide"), ["esc"]))
1752
- }, [
1753
- oe("div", {
1754
- class: "v-popper__backdrop",
1755
- onClick: t[0] || (t[0] = (l) => e.autoHide && e.$emit("hide"))
1756
- }),
1757
- oe("div", {
1758
- class: "v-popper__wrapper",
1759
- style: Be(e.result ? {
1760
- transformOrigin: e.result.transformOrigin
1761
- } : void 0)
1762
- }, [
1763
- oe("div", no, [
1764
- e.mounted ? (Y(), me(on, { key: 0 }, [
1765
- oe("div", null, [
1766
- Te(e.$slots, "default")
1767
- ]),
1768
- e.handleResize ? (Y(), Re(r, {
1769
- key: 0,
1770
- onNotify: t[1] || (t[1] = (l) => e.$emit("resize", l))
1771
- })) : nt("", !0)
1772
- ], 64)) : nt("", !0)
1773
- ], 512),
1774
- oe("div", {
1775
- ref: "arrow",
1776
- class: "v-popper__arrow-container",
1777
- style: Be(e.result ? {
1778
- left: e.toPx(e.result.arrow.x),
1779
- top: e.toPx(e.result.arrow.y)
1780
- } : void 0)
1781
- }, so, 4)
1782
- ], 4)
1783
- ], 46, to);
1784
- }
1785
- const jt = /* @__PURE__ */ De(eo, [["render", ro]]), Vt = {
1786
- methods: {
1787
- show(...e) {
1788
- return this.$refs.popper.show(...e);
1789
- },
1790
- hide(...e) {
1791
- return this.$refs.popper.hide(...e);
1792
- },
1793
- dispose(...e) {
1794
- return this.$refs.popper.dispose(...e);
1795
- },
1796
- onResize(...e) {
1797
- return this.$refs.popper.onResize(...e);
1798
- }
1799
- }
1800
- }, lo = ze({
1801
- name: "VPopperWrapper",
1802
- components: {
1803
- Popper: Xn,
1804
- PopperContent: jt
1805
- },
1806
- mixins: [
1807
- Vt,
1808
- Wt("finalTheme")
1809
- ],
1810
- props: {
1811
- theme: {
1812
- type: String,
1813
- default: null
1814
- },
1815
- referenceNode: {
1816
- type: Function,
1817
- default: null
1818
- },
1819
- shown: {
1820
- type: Boolean,
1821
- default: !1
1822
- },
1823
- showGroup: {
1824
- type: String,
1825
- default: null
1826
- },
1827
- // eslint-disable-next-line vue/require-prop-types
1828
- ariaId: {
1829
- default: null
1830
- },
1831
- disabled: {
1832
- type: Boolean,
1833
- default: void 0
1834
- },
1835
- positioningDisabled: {
1836
- type: Boolean,
1837
- default: void 0
1838
- },
1839
- placement: {
1840
- type: String,
1841
- default: void 0
1842
- },
1843
- delay: {
1844
- type: [String, Number, Object],
1845
- default: void 0
1846
- },
1847
- distance: {
1848
- type: [Number, String],
1849
- default: void 0
1850
- },
1851
- skidding: {
1852
- type: [Number, String],
1853
- default: void 0
1854
- },
1855
- triggers: {
1856
- type: Array,
1857
- default: void 0
1858
- },
1859
- showTriggers: {
1860
- type: [Array, Function],
1861
- default: void 0
1862
- },
1863
- hideTriggers: {
1864
- type: [Array, Function],
1865
- default: void 0
1866
- },
1867
- popperTriggers: {
1868
- type: Array,
1869
- default: void 0
1870
- },
1871
- popperShowTriggers: {
1872
- type: [Array, Function],
1873
- default: void 0
1874
- },
1875
- popperHideTriggers: {
1876
- type: [Array, Function],
1877
- default: void 0
1878
- },
1879
- container: {
1880
- // type: [String, Object, Element, Boolean],
1881
- default: void 0
1882
- },
1883
- boundary: {
1884
- // type: [String, Element],
1885
- default: void 0
1886
- },
1887
- strategy: {
1888
- type: String,
1889
- default: void 0
1890
- },
1891
- autoHide: {
1892
- type: [Boolean, Function],
1893
- default: void 0
1894
- },
1895
- handleResize: {
1896
- type: Boolean,
1897
- default: void 0
1898
- },
1899
- instantMove: {
1900
- type: Boolean,
1901
- default: void 0
1902
- },
1903
- eagerMount: {
1904
- type: Boolean,
1905
- default: void 0
1906
- },
1907
- popperClass: {
1908
- type: [String, Array, Object],
1909
- default: void 0
1910
- },
1911
- computeTransformOrigin: {
1912
- type: Boolean,
1913
- default: void 0
1914
- },
1915
- /**
1916
- * @deprecated
1917
- */
1918
- autoMinSize: {
1919
- type: Boolean,
1920
- default: void 0
1921
- },
1922
- autoSize: {
1923
- type: [Boolean, String],
1924
- default: void 0
1925
- },
1926
- /**
1927
- * @deprecated
1928
- */
1929
- autoMaxSize: {
1930
- type: Boolean,
1931
- default: void 0
1932
- },
1933
- autoBoundaryMaxSize: {
1934
- type: Boolean,
1935
- default: void 0
1936
- },
1937
- preventOverflow: {
1938
- type: Boolean,
1939
- default: void 0
1940
- },
1941
- overflowPadding: {
1942
- type: [Number, String],
1943
- default: void 0
1944
- },
1945
- arrowPadding: {
1946
- type: [Number, String],
1947
- default: void 0
1948
- },
1949
- arrowOverflow: {
1950
- type: Boolean,
1951
- default: void 0
1952
- },
1953
- flip: {
1954
- type: Boolean,
1955
- default: void 0
1956
- },
1957
- shift: {
1958
- type: Boolean,
1959
- default: void 0
1960
- },
1961
- shiftCrossAxis: {
1962
- type: Boolean,
1963
- default: void 0
1964
- },
1965
- noAutoFocus: {
1966
- type: Boolean,
1967
- default: void 0
1968
- },
1969
- disposeTimeout: {
1970
- type: Number,
1971
- default: void 0
1972
- }
1973
- },
1974
- emits: {
1975
- show: () => !0,
1976
- hide: () => !0,
1977
- "update:shown": (e) => !0,
1978
- "apply-show": () => !0,
1979
- "apply-hide": () => !0,
1980
- "close-group": () => !0,
1981
- "close-directive": () => !0,
1982
- "auto-hide": () => !0,
1983
- resize: () => !0
1984
- },
1985
- computed: {
1986
- finalTheme() {
1987
- return this.theme ?? this.$options.vPopperTheme;
1988
- }
1989
- },
1990
- methods: {
1991
- getTargetNodes() {
1992
- return Array.from(this.$el.children).filter((e) => e !== this.$refs.popperContent.$el);
1993
- }
1994
- }
1995
- });
1996
- function ao(e, t, n, o, i, s) {
1997
- const r = ge("PopperContent"), l = ge("Popper");
1998
- return Y(), Re(l, St({ ref: "popper" }, e.$props, {
1999
- theme: e.finalTheme,
2000
- "target-nodes": e.getTargetNodes,
2001
- "popper-node": () => e.$refs.popperContent.$el,
2002
- class: [
2003
- e.themeClass
2004
- ],
2005
- onShow: t[0] || (t[0] = () => e.$emit("show")),
2006
- onHide: t[1] || (t[1] = () => e.$emit("hide")),
2007
- "onUpdate:shown": t[2] || (t[2] = (c) => e.$emit("update:shown", c)),
2008
- onApplyShow: t[3] || (t[3] = () => e.$emit("apply-show")),
2009
- onApplyHide: t[4] || (t[4] = () => e.$emit("apply-hide")),
2010
- onCloseGroup: t[5] || (t[5] = () => e.$emit("close-group")),
2011
- onCloseDirective: t[6] || (t[6] = () => e.$emit("close-directive")),
2012
- onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
2013
- onResize: t[8] || (t[8] = () => e.$emit("resize"))
2014
- }), {
2015
- default: Pe(({
2016
- popperId: c,
2017
- isShown: d,
2018
- shouldMountContent: a,
2019
- skipTransition: u,
2020
- autoHide: p,
2021
- show: h,
2022
- hide: f,
2023
- handleResize: m,
2024
- onResize: w,
2025
- classes: g,
2026
- result: v
2027
- }) => [
2028
- Te(e.$slots, "default", {
2029
- shown: d,
2030
- show: h,
2031
- hide: f
2032
- }),
2033
- Tt(r, {
2034
- ref: "popperContent",
2035
- "popper-id": c,
2036
- theme: e.finalTheme,
2037
- shown: d,
2038
- mounted: a,
2039
- "skip-transition": u,
2040
- "auto-hide": p,
2041
- "handle-resize": m,
2042
- classes: g,
2043
- result: v,
2044
- onHide: f,
2045
- onResize: w
2046
- }, {
2047
- default: Pe(() => [
2048
- Te(e.$slots, "popper", {
2049
- shown: d,
2050
- hide: f
2051
- })
2052
- ]),
2053
- _: 2
2054
- }, 1032, ["popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
2055
- ]),
2056
- _: 3
2057
- }, 16, ["theme", "target-nodes", "popper-node", "class"]);
2058
- }
2059
- const et = /* @__PURE__ */ De(lo, [["render", ao]]);
2060
- ({
2061
- ...et
2062
- });
2063
- ({
2064
- ...et
2065
- });
2066
- const co = {
2067
- ...et,
2068
- name: "VTooltip",
2069
- vPopperTheme: "tooltip"
2070
- }, uo = ze({
2071
- name: "VTooltipDirective",
2072
- components: {
2073
- Popper: It(),
2074
- PopperContent: jt
2075
- },
2076
- mixins: [
2077
- Vt
2078
- ],
2079
- inheritAttrs: !1,
2080
- props: {
2081
- theme: {
2082
- type: String,
2083
- default: "tooltip"
2084
- },
2085
- html: {
2086
- type: Boolean,
2087
- default: (e) => Ee(e.theme, "html")
2088
- },
2089
- content: {
2090
- type: [String, Number, Function],
2091
- default: null
2092
- },
2093
- loadingContent: {
2094
- type: String,
2095
- default: (e) => Ee(e.theme, "loadingContent")
2096
- },
2097
- targetNodes: {
2098
- type: Function,
2099
- required: !0
2100
- }
2101
- },
2102
- data() {
2103
- return {
2104
- asyncContent: null
2105
- };
2106
- },
2107
- computed: {
2108
- isContentAsync() {
2109
- return typeof this.content == "function";
2110
- },
2111
- loading() {
2112
- return this.isContentAsync && this.asyncContent == null;
2113
- },
2114
- finalContent() {
2115
- return this.isContentAsync ? this.loading ? this.loadingContent : this.asyncContent : this.content;
2116
- }
2117
- },
2118
- watch: {
2119
- content: {
2120
- handler() {
2121
- this.fetchContent(!0);
2122
- },
2123
- immediate: !0
2124
- },
2125
- async finalContent() {
2126
- await this.$nextTick(), this.$refs.popper.onResize();
2127
- }
2128
- },
2129
- created() {
2130
- this.$_fetchId = 0;
2131
- },
2132
- methods: {
2133
- fetchContent(e) {
2134
- if (typeof this.content == "function" && this.$_isShown && (e || !this.$_loading && this.asyncContent == null)) {
2135
- this.asyncContent = null, this.$_loading = !0;
2136
- const t = ++this.$_fetchId, n = this.content(this);
2137
- n.then ? n.then((o) => this.onResult(t, o)) : this.onResult(t, n);
2138
- }
2139
- },
2140
- onResult(e, t) {
2141
- e === this.$_fetchId && (this.$_loading = !1, this.asyncContent = t);
2142
- },
2143
- onShow() {
2144
- this.$_isShown = !0, this.fetchContent();
2145
- },
2146
- onHide() {
2147
- this.$_isShown = !1;
2148
- }
2149
- }
2150
- }), po = ["innerHTML"], ho = ["textContent"];
2151
- function fo(e, t, n, o, i, s) {
2152
- const r = ge("PopperContent"), l = ge("Popper");
2153
- return Y(), Re(l, St({ ref: "popper" }, e.$attrs, {
2154
- theme: e.theme,
2155
- "target-nodes": e.targetNodes,
2156
- "popper-node": () => e.$refs.popperContent.$el,
2157
- onApplyShow: e.onShow,
2158
- onApplyHide: e.onHide
2159
- }), {
2160
- default: Pe(({
2161
- popperId: c,
2162
- isShown: d,
2163
- shouldMountContent: a,
2164
- skipTransition: u,
2165
- autoHide: p,
2166
- hide: h,
2167
- handleResize: f,
2168
- onResize: m,
2169
- classes: w,
2170
- result: g
2171
- }) => [
2172
- Tt(r, {
2173
- ref: "popperContent",
2174
- class: Xe({
2175
- "v-popper--tooltip-loading": e.loading
2176
- }),
2177
- "popper-id": c,
2178
- theme: e.theme,
2179
- shown: d,
2180
- mounted: a,
2181
- "skip-transition": u,
2182
- "auto-hide": p,
2183
- "handle-resize": f,
2184
- classes: w,
2185
- result: g,
2186
- onHide: h,
2187
- onResize: m
2188
- }, {
2189
- default: Pe(() => [
2190
- e.html ? (Y(), me("div", {
2191
- key: 0,
2192
- innerHTML: e.finalContent
2193
- }, null, 8, po)) : (Y(), me("div", {
2194
- key: 1,
2195
- textContent: ln(e.finalContent)
2196
- }, null, 8, ho))
2197
- ]),
2198
- _: 2
2199
- }, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
2200
- ]),
2201
- _: 1
2202
- }, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
2203
- }
2204
- const mo = /* @__PURE__ */ De(uo, [["render", fo]]), qt = "v-popper--has-tooltip";
2205
- function go(e, t) {
2206
- let n = e.placement;
2207
- if (!n && t)
2208
- for (const o of Bt)
2209
- t[o] && (n = o);
2210
- return n || (n = Ee(e.theme || "tooltip", "placement")), n;
2211
- }
2212
- function wo(e, t, n) {
2213
- let o;
2214
- const i = typeof t;
2215
- return i === "string" ? o = { content: t } : t && i === "object" ? o = t : o = { content: !1 }, o.placement = go(o, n), o.targetNodes = () => [e], o.referenceNode = () => e, o;
2216
- }
2217
- let je, be, vo = 0;
2218
- function yo() {
2219
- if (je)
2220
- return;
2221
- be = z([]), je = sn({
2222
- name: "VTooltipDirectiveApp",
2223
- setup() {
2224
- return {
2225
- directives: be
2226
- };
2227
- },
2228
- render() {
2229
- return this.directives.map((t) => rn(mo, {
2230
- ...t.options,
2231
- shown: t.shown || t.options.shown,
2232
- key: t.id
2233
- }));
2234
- },
2235
- devtools: {
2236
- hide: !0
2237
- }
2238
- });
2239
- const e = document.createElement("div");
2240
- document.body.appendChild(e), je.mount(e);
2241
- }
2242
- function $o(e, t, n) {
2243
- yo();
2244
- const o = z(wo(e, t, n)), i = z(!1), s = {
2245
- id: vo++,
2246
- options: o,
2247
- shown: i
2248
- };
2249
- return be.value.push(s), e.classList && e.classList.add(qt), e.$_popper = {
2250
- options: o,
2251
- item: s,
2252
- show() {
2253
- i.value = !0;
2254
- },
2255
- hide() {
2256
- i.value = !1;
2257
- }
2258
- };
2259
- }
2260
- function bo(e) {
2261
- if (e.$_popper) {
2262
- const t = be.value.indexOf(e.$_popper.item);
2263
- t !== -1 && be.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
2264
- }
2265
- e.classList && e.classList.remove(qt);
2266
- }
2267
- const Mo = co;
2268
- function tt(e) {
2269
- return dn() ? (cn(e), !0) : !1;
2270
- }
2271
- function H(e) {
2272
- return typeof e == "function" ? e() : an(e);
2273
- }
2274
- const Gt = typeof window < "u" && typeof document < "u";
2275
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2276
- const xo = (e) => typeof e < "u", _o = Object.prototype.toString, So = (e) => _o.call(e) === "[object Object]", W = () => {
2277
- }, To = /* @__PURE__ */ Po();
2278
- function Po() {
2279
- var e, t;
2280
- return Gt && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
2281
- }
2282
- function Yt(e, t) {
2283
- function n(...o) {
2284
- return new Promise((i, s) => {
2285
- Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(i).catch(s);
2286
- });
2287
- }
2288
- return n;
2289
- }
2290
- function Ao(e, t = {}) {
2291
- let n, o, i = W;
2292
- const s = (l) => {
2293
- clearTimeout(l), i(), i = W;
2294
- };
2295
- return (l) => {
2296
- const c = H(e), d = H(t.maxWait);
2297
- return n && s(n), c <= 0 || d !== void 0 && d <= 0 ? (o && (s(o), o = null), Promise.resolve(l())) : new Promise((a, u) => {
2298
- i = t.rejectOnCancel ? u : a, d && !o && (o = setTimeout(() => {
2299
- n && s(n), o = null, a(l());
2300
- }, d)), n = setTimeout(() => {
2301
- o && s(o), o = null, a(l());
2302
- }, c);
2303
- });
2304
- };
2305
- }
2306
- function Co(...e) {
2307
- let t = 0, n, o = !0, i = W, s, r, l, c, d;
2308
- !un(e[0]) && typeof e[0] == "object" ? { delay: r, trailing: l = !0, leading: c = !0, rejectOnCancel: d = !1 } = e[0] : [r, l = !0, c = !0, d = !1] = e;
2309
- const a = () => {
2310
- n && (clearTimeout(n), n = void 0, i(), i = W);
2311
- };
2312
- return (p) => {
2313
- const h = H(r), f = Date.now() - t, m = () => s = p();
2314
- return a(), h <= 0 ? (t = Date.now(), m()) : (f > h && (c || !o) ? (t = Date.now(), m()) : l && (s = new Promise((w, g) => {
2315
- i = d ? g : w, n = setTimeout(() => {
2316
- t = Date.now(), o = !0, w(m()), a();
2317
- }, Math.max(0, h - f));
2318
- })), !c && !n && (n = setTimeout(() => o = !0, h)), o = !1, s);
2319
- };
2320
- }
2321
- const Do = {
2322
- mounted: "mounted",
2323
- updated: "updated",
2324
- unmounted: "unmounted"
2325
- };
2326
- function Oo(e, t) {
2327
- var n;
2328
- if (typeof e == "number")
2329
- return e + t;
2330
- const o = ((n = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : n[0]) || "", i = e.slice(o.length), s = Number.parseFloat(o) + t;
2331
- return Number.isNaN(s) ? e : s + i;
2332
- }
2333
- function No(e) {
2334
- return e || Ke();
2335
- }
2336
- function ko(...e) {
2337
- if (e.length !== 1)
2338
- return pn(...e);
2339
- const t = e[0];
2340
- return typeof t == "function" ? hn(fn(() => ({ get: t, set: W }))) : z(t);
2341
- }
2342
- function Eo(e, t = 200, n = {}) {
2343
- return Yt(
2344
- Ao(t, n),
2345
- e
2346
- );
2347
- }
2348
- function zo(e, t = 200, n = !1, o = !0, i = !1) {
2349
- return Yt(
2350
- Co(t, n, o, i),
2351
- e
2352
- );
2353
- }
2354
- function Ut(e, t = !0, n) {
2355
- No() ? Pt(e, n) : t ? e() : Ue(e);
2356
- }
2357
- function J(e) {
2358
- var t;
2359
- const n = H(e);
2360
- return (t = n == null ? void 0 : n.$el) != null ? t : n;
2361
- }
2362
- const le = Gt ? window : void 0;
2363
- function I(...e) {
2364
- let t, n, o, i;
2365
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, i] = e, t = le) : [t, n, o, i] = e, !t)
2366
- return W;
2367
- Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
2368
- const s = [], r = () => {
2369
- s.forEach((a) => a()), s.length = 0;
2370
- }, l = (a, u, p, h) => (a.addEventListener(u, p, h), () => a.removeEventListener(u, p, h)), c = we(
2371
- () => [J(t), H(i)],
2372
- ([a, u]) => {
2373
- if (r(), !a)
2374
- return;
2375
- const p = So(u) ? { ...u } : u;
2376
- s.push(
2377
- ...n.flatMap((h) => o.map((f) => l(a, h, f, p)))
2378
- );
2379
- },
2380
- { immediate: !0, flush: "post" }
2381
- ), d = () => {
2382
- c(), r();
2383
- };
2384
- return tt(d), d;
2385
- }
2386
- let xt = !1;
2387
- function Bo(e, t, n = {}) {
2388
- const { window: o = le, ignore: i = [], capture: s = !0, detectIframe: r = !1 } = n;
2389
- if (!o)
2390
- return W;
2391
- To && !xt && (xt = !0, Array.from(o.document.body.children).forEach((p) => p.addEventListener("click", W)), o.document.documentElement.addEventListener("click", W));
2392
- let l = !0;
2393
- const c = (p) => i.some((h) => {
2394
- if (typeof h == "string")
2395
- return Array.from(o.document.querySelectorAll(h)).some((f) => f === p.target || p.composedPath().includes(f));
2396
- {
2397
- const f = J(h);
2398
- return f && (p.target === f || p.composedPath().includes(f));
2399
- }
2400
- }), a = [
2401
- I(o, "click", (p) => {
2402
- const h = J(e);
2403
- if (!(!h || h === p.target || p.composedPath().includes(h))) {
2404
- if (p.detail === 0 && (l = !c(p)), !l) {
2405
- l = !0;
2406
- return;
2407
- }
2408
- t(p);
2409
- }
2410
- }, { passive: !0, capture: s }),
2411
- I(o, "pointerdown", (p) => {
2412
- const h = J(e);
2413
- l = !c(p) && !!(h && !p.composedPath().includes(h));
2414
- }, { passive: !0 }),
2415
- r && I(o, "blur", (p) => {
2416
- setTimeout(() => {
2417
- var h;
2418
- const f = J(e);
2419
- ((h = o.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(f != null && f.contains(o.document.activeElement)) && t(p);
2420
- }, 0);
2421
- })
2422
- ].filter(Boolean);
2423
- return () => a.forEach((p) => p());
2424
- }
2425
- function Ro() {
2426
- const e = z(!1), t = Ke();
2427
- return t && Pt(() => {
2428
- e.value = !0;
2429
- }, t), e;
2430
- }
2431
- function Xt(e) {
2432
- const t = Ro();
2433
- return se(() => (t.value, !!e()));
2434
- }
2435
- function ae(e, t = {}) {
2436
- const { window: n = le } = t, o = Xt(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
2437
- let i;
2438
- const s = z(!1), r = (d) => {
2439
- s.value = d.matches;
2440
- }, l = () => {
2441
- i && ("removeEventListener" in i ? i.removeEventListener("change", r) : i.removeListener(r));
2442
- }, c = mn(() => {
2443
- o.value && (l(), i = n.matchMedia(H(e)), "addEventListener" in i ? i.addEventListener("change", r) : i.addListener(r), s.value = i.matches);
2444
- });
2445
- return tt(() => {
2446
- c(), l(), i = void 0;
2447
- }), s;
2448
- }
2449
- const Io = {
2450
- sm: 640,
2451
- md: 768,
2452
- lg: 1024,
2453
- xl: 1280,
2454
- "2xl": 1536
2455
- };
2456
- function Fo(e, t = {}) {
2457
- function n(a, u) {
2458
- let p = H(e[H(a)]);
2459
- return u != null && (p = Oo(p, u)), typeof p == "number" && (p = `${p}px`), p;
2460
- }
2461
- const { window: o = le, strategy: i = "min-width" } = t;
2462
- function s(a) {
2463
- return o ? o.matchMedia(a).matches : !1;
2464
- }
2465
- const r = (a) => ae(() => `(min-width: ${n(a)})`, t), l = (a) => ae(() => `(max-width: ${n(a)})`, t), c = Object.keys(e).reduce((a, u) => (Object.defineProperty(a, u, {
2466
- get: () => i === "min-width" ? r(u) : l(u),
2467
- enumerable: !0,
2468
- configurable: !0
2469
- }), a), {});
2470
- function d() {
2471
- const a = Object.keys(e).map((u) => [u, r(u)]);
2472
- return se(() => a.filter(([, u]) => u.value).map(([u]) => u));
2473
- }
2474
- return Object.assign(c, {
2475
- greaterOrEqual: r,
2476
- smallerOrEqual: l,
2477
- greater(a) {
2478
- return ae(() => `(min-width: ${n(a, 0.1)})`, t);
2479
- },
2480
- smaller(a) {
2481
- return ae(() => `(max-width: ${n(a, -0.1)})`, t);
2482
- },
2483
- between(a, u) {
2484
- return ae(() => `(min-width: ${n(a)}) and (max-width: ${n(u, -0.1)})`, t);
2485
- },
2486
- isGreater(a) {
2487
- return s(`(min-width: ${n(a, 0.1)})`);
2488
- },
2489
- isGreaterOrEqual(a) {
2490
- return s(`(min-width: ${n(a)})`);
2491
- },
2492
- isSmaller(a) {
2493
- return s(`(max-width: ${n(a, -0.1)})`);
2494
- },
2495
- isSmallerOrEqual(a) {
2496
- return s(`(max-width: ${n(a)})`);
2497
- },
2498
- isInBetween(a, u) {
2499
- return s(`(min-width: ${n(a)}) and (max-width: ${n(u, -0.1)})`);
2500
- },
2501
- current: d,
2502
- active() {
2503
- const a = d();
2504
- return se(() => a.value.length === 0 ? "" : a.value.at(-1));
2505
- }
2506
- });
2507
- }
2508
- function Lo(e) {
2509
- return JSON.parse(JSON.stringify(e));
2510
- }
2511
- function Wo(e, t, n = {}) {
2512
- const { window: o = le, ...i } = n;
2513
- let s;
2514
- const r = Xt(() => o && "ResizeObserver" in o), l = () => {
2515
- s && (s.disconnect(), s = void 0);
2516
- }, c = se(() => Array.isArray(e) ? e.map((u) => J(u)) : [J(e)]), d = we(
2517
- c,
2518
- (u) => {
2519
- if (l(), r.value && o) {
2520
- s = new ResizeObserver(t);
2521
- for (const p of u)
2522
- p && s.observe(p, i);
2523
- }
2524
- },
2525
- { immediate: !0, flush: "post" }
2526
- ), a = () => {
2527
- l(), d();
2528
- };
2529
- return tt(a), {
2530
- isSupported: r,
2531
- stop: a
2532
- };
2533
- }
2534
- const _t = 1;
2535
- function jo(e, t = {}) {
2536
- const {
2537
- throttle: n = 0,
2538
- idle: o = 200,
2539
- onStop: i = W,
2540
- onScroll: s = W,
2541
- offset: r = {
2542
- left: 0,
2543
- right: 0,
2544
- top: 0,
2545
- bottom: 0
2546
- },
2547
- eventListenerOptions: l = {
2548
- capture: !1,
2549
- passive: !0
2550
- },
2551
- behavior: c = "auto",
2552
- window: d = le,
2553
- onError: a = (y) => {
2554
- console.error(y);
2555
- }
2556
- } = t, u = z(0), p = z(0), h = se({
2557
- get() {
2558
- return u.value;
2559
- },
2560
- set(y) {
2561
- m(y, void 0);
2562
- }
2563
- }), f = se({
2564
- get() {
2565
- return p.value;
2566
- },
2567
- set(y) {
2568
- m(void 0, y);
2569
- }
2570
- });
2571
- function m(y, E) {
2572
- var S, _, O, A;
2573
- if (!d)
2574
- return;
2575
- const P = H(e);
2576
- if (!P)
2577
- return;
2578
- (O = P instanceof Document ? d.document.body : P) == null || O.scrollTo({
2579
- top: (S = H(E)) != null ? S : f.value,
2580
- left: (_ = H(y)) != null ? _ : h.value,
2581
- behavior: H(c)
2582
- });
2583
- const C = ((A = P == null ? void 0 : P.document) == null ? void 0 : A.documentElement) || (P == null ? void 0 : P.documentElement) || P;
2584
- h != null && (u.value = C.scrollLeft), f != null && (p.value = C.scrollTop);
2585
- }
2586
- const w = z(!1), g = ot({
2587
- left: !0,
2588
- right: !1,
2589
- top: !0,
2590
- bottom: !1
2591
- }), v = ot({
2592
- left: !1,
2593
- right: !1,
2594
- top: !1,
2595
- bottom: !1
2596
- }), $ = (y) => {
2597
- w.value && (w.value = !1, v.left = !1, v.right = !1, v.top = !1, v.bottom = !1, i(y));
2598
- }, T = Eo($, n + o), x = (y) => {
2599
- var E;
2600
- if (!d)
2601
- return;
2602
- const S = ((E = y == null ? void 0 : y.document) == null ? void 0 : E.documentElement) || (y == null ? void 0 : y.documentElement) || J(y), { display: _, flexDirection: O } = getComputedStyle(S), A = S.scrollLeft;
2603
- v.left = A < u.value, v.right = A > u.value;
2604
- const P = Math.abs(A) <= (r.left || 0), C = Math.abs(A) + S.clientWidth >= S.scrollWidth - (r.right || 0) - _t;
2605
- _ === "flex" && O === "row-reverse" ? (g.left = C, g.right = P) : (g.left = P, g.right = C), u.value = A;
2606
- let R = S.scrollTop;
2607
- y === d.document && !R && (R = d.document.body.scrollTop), v.top = R < p.value, v.bottom = R > p.value;
2608
- const D = Math.abs(R) <= (r.top || 0), L = Math.abs(R) + S.clientHeight >= S.scrollHeight - (r.bottom || 0) - _t;
2609
- _ === "flex" && O === "column-reverse" ? (g.top = L, g.bottom = D) : (g.top = D, g.bottom = L), p.value = R;
2610
- }, N = (y) => {
2611
- var E;
2612
- if (!d)
2613
- return;
2614
- const S = (E = y.target.documentElement) != null ? E : y.target;
2615
- x(S), w.value = !0, T(y), s(y);
2616
- };
2617
- return I(
2618
- e,
2619
- "scroll",
2620
- n ? zo(N, n, !0, !1) : N,
2621
- l
2622
- ), Ut(() => {
2623
- try {
2624
- const y = H(e);
2625
- if (!y)
2626
- return;
2627
- x(y);
2628
- } catch (y) {
2629
- a(y);
2630
- }
2631
- }), I(
2632
- e,
2633
- "scrollend",
2634
- $,
2635
- l
2636
- ), {
2637
- x: h,
2638
- y: f,
2639
- isScrolling: w,
2640
- arrivedState: g,
2641
- directions: v,
2642
- measure() {
2643
- const y = H(e);
2644
- d && y && x(y);
2645
- }
2646
- };
2647
- }
2648
- function Vo(e, t, n, o = {}) {
2649
- var i, s, r;
2650
- const {
2651
- clone: l = !1,
2652
- passive: c = !1,
2653
- eventName: d,
2654
- deep: a = !1,
2655
- defaultValue: u,
2656
- shouldEmit: p
2657
- } = o, h = Ke(), f = n || (h == null ? void 0 : h.emit) || ((i = h == null ? void 0 : h.$emit) == null ? void 0 : i.bind(h)) || ((r = (s = h == null ? void 0 : h.proxy) == null ? void 0 : s.$emit) == null ? void 0 : r.bind(h == null ? void 0 : h.proxy));
2658
- let m = d;
2659
- t || (t = "modelValue"), m = m || `update:${t.toString()}`;
2660
- const w = ($) => l ? typeof l == "function" ? l($) : Lo($) : $, g = () => xo(e[t]) ? w(e[t]) : u, v = ($) => {
2661
- p ? p($) && f(m, $) : f(m, $);
2662
- };
2663
- if (c) {
2664
- const $ = g(), T = z($);
2665
- let x = !1;
2666
- return we(
2667
- () => e[t],
2668
- (N) => {
2669
- x || (x = !0, T.value = w(N), Ue(() => x = !1));
2670
- }
2671
- ), we(
2672
- T,
2673
- (N) => {
2674
- !x && (N !== e[t] || a) && v(N);
2675
- },
2676
- { deep: a }
2677
- ), T;
2678
- } else
2679
- return se({
2680
- get() {
2681
- return g();
2682
- },
2683
- set($) {
2684
- v($);
2685
- }
2686
- });
2687
- }
2688
- function qo(e = {}) {
2689
- const {
2690
- window: t = le,
2691
- initialWidth: n = Number.POSITIVE_INFINITY,
2692
- initialHeight: o = Number.POSITIVE_INFINITY,
2693
- listenOrientation: i = !0,
2694
- includeScrollbar: s = !0
2695
- } = e, r = z(n), l = z(o), c = () => {
2696
- t && (s ? (r.value = t.innerWidth, l.value = t.innerHeight) : (r.value = t.document.documentElement.clientWidth, l.value = t.document.documentElement.clientHeight));
2697
- };
2698
- if (c(), Ut(c), I("resize", c, { passive: !0 }), i) {
2699
- const d = ae("(orientation: portrait)");
2700
- we(d, () => c());
2701
- }
2702
- return { width: r, height: l };
2703
- }
2704
- function Go(e = 5e3) {
2705
- const t = z([]);
2706
- let n = 1;
2707
- return {
2708
- notifications: t,
2709
- addNotification: (s) => {
2710
- const r = { ...s, id: n++ };
2711
- t.value.push(r), setTimeout(() => {
2712
- const l = t.value.indexOf(r);
2713
- l !== -1 && t.value.splice(l, 1);
2714
- }, e);
2715
- },
2716
- removeNotificationById: (s) => {
2717
- const r = t.value.findIndex(
2718
- (l) => l.id === s
2719
- );
2720
- r !== -1 && t.value.splice(r, 1);
2721
- }
2722
- };
2723
- }
2724
- function Yo() {
2725
- const e = z(0);
2726
- return {
2727
- tabIndex: e,
2728
- updateTabIndex: (n) => {
2729
- e.value = n;
2730
- }
2731
- };
2732
- }
2733
- function Uo() {
2734
- const e = (i) => new Promise((s) => setTimeout(s, i)), n = "RN-ui-tool-chip";
2735
- return {
2736
- hideAllPoppers: Gn,
2737
- showPopper: ({
2738
- name: i,
2739
- element: s,
2740
- message: r,
2741
- placement: l = "auto",
2742
- hasDone: c = !0,
2743
- timeout: d = 5e3,
2744
- autoHideOnUserInteraction: a = !0,
2745
- displayOnce: u = !1,
2746
- strategy: p = "absolute"
2747
- }) => {
2748
- const h = $o(
2749
- s,
2750
- {
2751
- triggers: [],
2752
- theme: "tooltip",
2753
- placement: l,
2754
- shiftCrossAxis: !0,
2755
- strategy: p,
2756
- content: `
2757
- <div id="${i}" class="${n}">
2758
- <div class="${n}-content">
2759
- <div><span class="${n}-text RN-text--size-body">${r}</span></div>
2760
- ${c ? `<button class="${n}-done" id="${i}-done">OK</button>` : ""}
2761
- </div>
2762
- </div>
2763
- `,
2764
- html: !0
2765
- },
2766
- null
2767
- ), f = () => {
2768
- const w = `tooltip-shown-${i}`;
2769
- Ie && localStorage.getItem(w) || h.show();
2770
- }, m = async () => {
2771
- if (Ie && u) {
2772
- const w = `tooltip-shown-${i}`;
2773
- localStorage.setItem(w, "true");
2774
- }
2775
- h.hide(), await e(100), bo(s);
2776
- };
2777
- f(), setTimeout(() => {
2778
- Ie && (I(
2779
- document.getElementById(`${i}-done`),
2780
- "click",
2781
- m
2782
- ), a && (I(document, "click", m), I(document, "touchmove", m), I(document, "scroll", m), I(window, "scroll", m)));
2783
- }, 500), d != null && setTimeout(m, d);
2784
- }
2785
- };
2786
- }
2787
- function Xo() {
2788
- const e = z(""), t = z(!1), n = z(""), o = z(() => {
2789
- }), i = ({ _title: l = "", _content: c = "", _confirmHandler: d = () => {
2790
- } }) => {
2791
- e.value = l, n.value = c, o.value = d, t.value = !0;
2792
- }, s = () => {
2793
- t.value = !1, e.value = "", n.value = "", o.value = () => {
2794
- };
2795
- };
2796
- return {
2797
- visible: t,
2798
- title: e,
2799
- content: n,
2800
- confirmHandler: o,
2801
- show: i,
2802
- hide: s,
2803
- confirm: () => {
2804
- o.value(), s();
2805
- }
2806
- };
2807
- }
2808
- export {
2809
- Mo as W,
2810
- Eo as a,
2811
- Io as b,
2812
- zo as c,
2813
- Do as d,
2814
- Ut as e,
2815
- So as f,
2816
- tt as g,
2817
- ko as h,
2818
- Ie as i,
2819
- Gt as j,
2820
- To as k,
2821
- Vo as l,
2822
- jo as m,
2823
- W as n,
2824
- Bo as o,
2825
- qo as p,
2826
- Wo as q,
2827
- Go as r,
2828
- Yo as s,
2829
- H as t,
2830
- Fo as u,
2831
- Uo as v,
2832
- Xo as w
2833
- };