@opens/widget-ui 0.0.0-stage → 1.0.1

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