@konnectio/core 4.4.9 → 4.5.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 (131) hide show
  1. package/README.md +274 -274
  2. package/dist/ActionField-CCjWElNQ.js +148 -0
  3. package/dist/ActionField-CCjWElNQ.js.br +0 -0
  4. package/dist/ActionField-CCjWElNQ.js.gz +0 -0
  5. package/dist/AvailabilitySkeleton-IQbxzq3Q.js +10129 -0
  6. package/dist/AvailabilitySkeleton-IQbxzq3Q.js.br +0 -0
  7. package/dist/AvailabilitySkeleton-IQbxzq3Q.js.gz +0 -0
  8. package/dist/CheckoutWindow-xnLaHTT5.js +701 -0
  9. package/dist/CheckoutWindow-xnLaHTT5.js.br +0 -0
  10. package/dist/CheckoutWindow-xnLaHTT5.js.gz +0 -0
  11. package/dist/ErrorMessage-6_ULtG_D.js +31 -0
  12. package/dist/ErrorMessage-6_ULtG_D.js.br +0 -0
  13. package/dist/ErrorMessage-6_ULtG_D.js.gz +0 -0
  14. package/dist/EventAvailabilityForm-Dq4WxMuL.js +114 -0
  15. package/dist/EventAvailabilityForm-Dq4WxMuL.js.br +0 -0
  16. package/dist/EventAvailabilityForm-Dq4WxMuL.js.gz +0 -0
  17. package/dist/Field-00JXggoS.js +57 -0
  18. package/dist/Field-00JXggoS.js.br +0 -0
  19. package/dist/Field-00JXggoS.js.gz +0 -0
  20. package/dist/HotelAvailabilityForm-D_mVPzOx.js +317 -0
  21. package/dist/HotelAvailabilityForm-D_mVPzOx.js.br +0 -0
  22. package/dist/HotelAvailabilityForm-D_mVPzOx.js.gz +0 -0
  23. package/dist/SelectField-BYcZ8xUa.js +11161 -0
  24. package/dist/SelectField-BYcZ8xUa.js.br +0 -0
  25. package/dist/SelectField-BYcZ8xUa.js.gz +0 -0
  26. package/dist/TermsOfService-tFJBZdRe.js +17 -0
  27. package/dist/TermsOfService-tFJBZdRe.js.br +0 -0
  28. package/dist/TermsOfService-tFJBZdRe.js.gz +0 -0
  29. package/dist/_-BZTN6PmS.js +22 -0
  30. package/dist/_-BZTN6PmS.js.br +0 -0
  31. package/dist/_-BZTN6PmS.js.gz +5 -0
  32. package/dist/availability.js +99 -129
  33. package/dist/availability.js.br +0 -0
  34. package/dist/availability.js.gz +0 -0
  35. package/dist/cancel-reservation.js +155 -158
  36. package/dist/cancel-reservation.js.br +0 -0
  37. package/dist/cancel-reservation.js.gz +0 -0
  38. package/dist/chunk-BPfpcrXh.js +20 -0
  39. package/dist/chunk-BPfpcrXh.js.br +0 -0
  40. package/dist/chunk-BPfpcrXh.js.gz +2 -0
  41. package/dist/core.css +2 -1
  42. package/dist/core.css.br +0 -0
  43. package/dist/core.css.gz +0 -0
  44. package/dist/deep-link.js +43 -47
  45. package/dist/deep-link.js.br +0 -0
  46. package/dist/deep-link.js.gz +0 -0
  47. package/dist/dist-oox8Oy7m.js +944 -0
  48. package/dist/dist-oox8Oy7m.js.br +0 -0
  49. package/dist/dist-oox8Oy7m.js.gz +0 -0
  50. package/dist/event.js +1069 -1192
  51. package/dist/event.js.br +0 -0
  52. package/dist/event.js.gz +0 -0
  53. package/dist/gift-card-validation.js +114 -161
  54. package/dist/gift-card-validation.js.br +0 -0
  55. package/dist/gift-card-validation.js.gz +0 -0
  56. package/dist/gift-card.js +452 -451
  57. package/dist/gift-card.js.br +0 -0
  58. package/dist/gift-card.js.gz +0 -0
  59. package/dist/giftCard-Dlw7i36H.js +101 -0
  60. package/dist/giftCard-Dlw7i36H.js.br +0 -0
  61. package/dist/giftCard-Dlw7i36H.js.gz +0 -0
  62. package/dist/hotel.js +8169 -10403
  63. package/dist/hotel.js.br +0 -0
  64. package/dist/hotel.js.gz +0 -0
  65. package/dist/masonry.plugin-qpD7rOEC.js +8747 -0
  66. package/dist/masonry.plugin-qpD7rOEC.js.br +0 -0
  67. package/dist/masonry.plugin-qpD7rOEC.js.gz +0 -0
  68. package/dist/mitt-DrOLO7f9.js +9694 -0
  69. package/dist/mitt-DrOLO7f9.js.br +0 -0
  70. package/dist/mitt-DrOLO7f9.js.gz +0 -0
  71. package/dist/polyfill.js +9298 -11610
  72. package/dist/polyfill.js.br +0 -0
  73. package/dist/polyfill.js.gz +0 -0
  74. package/dist/style-CCnDB_V1.js +1709 -0
  75. package/dist/style-CCnDB_V1.js.br +0 -0
  76. package/dist/style-CCnDB_V1.js.gz +0 -0
  77. package/package.json +115 -118
  78. package/dist/ActionField-CjB94ywQ.js +0 -103
  79. package/dist/ActionField-CjB94ywQ.js.br +0 -0
  80. package/dist/ActionField-CjB94ywQ.js.gz +0 -0
  81. package/dist/AvailabilitySkeleton-GcNIEr0O.js +0 -346
  82. package/dist/AvailabilitySkeleton-GcNIEr0O.js.br +0 -0
  83. package/dist/AvailabilitySkeleton-GcNIEr0O.js.gz +0 -0
  84. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_bcdabbb5_lang-r3OqaSe-.js +0 -10311
  85. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_bcdabbb5_lang-r3OqaSe-.js.br +0 -0
  86. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_bcdabbb5_lang-r3OqaSe-.js.gz +0 -0
  87. package/dist/CheckoutWindow-jLe1mUEB.js +0 -668
  88. package/dist/CheckoutWindow-jLe1mUEB.js.br +0 -0
  89. package/dist/CheckoutWindow-jLe1mUEB.js.gz +0 -0
  90. package/dist/ErrorMessage-uA3IcjN_.js +0 -39
  91. package/dist/ErrorMessage-uA3IcjN_.js.br +0 -0
  92. package/dist/ErrorMessage-uA3IcjN_.js.gz +0 -0
  93. package/dist/EventAvailabilityForm-4m-RW0Lx.js +0 -119
  94. package/dist/EventAvailabilityForm-4m-RW0Lx.js.br +0 -0
  95. package/dist/EventAvailabilityForm-4m-RW0Lx.js.gz +0 -0
  96. package/dist/Field-D9fOd9ca.js +0 -44
  97. package/dist/Field-D9fOd9ca.js.br +0 -0
  98. package/dist/Field-D9fOd9ca.js.gz +0 -0
  99. package/dist/Field.vue_vue_type_style_index_0_scoped_c072a208_lang-B1tIG39F.js +0 -21
  100. package/dist/Field.vue_vue_type_style_index_0_scoped_c072a208_lang-B1tIG39F.js.br +0 -5
  101. package/dist/Field.vue_vue_type_style_index_0_scoped_c072a208_lang-B1tIG39F.js.gz +0 -0
  102. package/dist/SelectField.vue_vue_type_style_index_0_lang-DH_el7cy.js +0 -11918
  103. package/dist/SelectField.vue_vue_type_style_index_0_lang-DH_el7cy.js.br +0 -0
  104. package/dist/SelectField.vue_vue_type_style_index_0_lang-DH_el7cy.js.gz +0 -0
  105. package/dist/TermsOfService-CD3_lM8u.js +0 -28
  106. package/dist/TermsOfService-CD3_lM8u.js.br +0 -0
  107. package/dist/TermsOfService-CD3_lM8u.js.gz +0 -0
  108. package/dist/_-DeLqDsjZ.js +0 -5
  109. package/dist/_-DeLqDsjZ.js.br +0 -0
  110. package/dist/_-DeLqDsjZ.js.gz +0 -2
  111. package/dist/_.vue_vue_type_style_index_0_lang-BdANnGTG.js +0 -25
  112. package/dist/_.vue_vue_type_style_index_0_lang-BdANnGTG.js.br +0 -0
  113. package/dist/_.vue_vue_type_style_index_0_lang-BdANnGTG.js.gz +0 -0
  114. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
  115. package/dist/_commonjsHelpers-DaMA6jEr.js.br +0 -0
  116. package/dist/_commonjsHelpers-DaMA6jEr.js.gz +0 -0
  117. package/dist/giftCard-G-zvnJVj.js +0 -109
  118. package/dist/giftCard-G-zvnJVj.js.br +0 -0
  119. package/dist/giftCard-G-zvnJVj.js.gz +0 -0
  120. package/dist/index-BEOLg3OJ.js +0 -639
  121. package/dist/index-BEOLg3OJ.js.br +0 -0
  122. package/dist/index-BEOLg3OJ.js.gz +0 -0
  123. package/dist/masonry.plugin-gbufcPfU.js +0 -10816
  124. package/dist/masonry.plugin-gbufcPfU.js.br +0 -0
  125. package/dist/masonry.plugin-gbufcPfU.js.gz +0 -0
  126. package/dist/mitt-Cj---5fy.js +0 -13346
  127. package/dist/mitt-Cj---5fy.js.br +0 -0
  128. package/dist/mitt-Cj---5fy.js.gz +0 -0
  129. package/dist/style-n4UQjvXd.js +0 -1750
  130. package/dist/style-n4UQjvXd.js.br +0 -0
  131. package/dist/style-n4UQjvXd.js.gz +0 -0
@@ -0,0 +1,1709 @@
1
+ import { At as e, D as t, Dt as n, E as r, H as i, I as a, L as o, M as s, O as c, Ot as l, P as u, Q as d, V as f, X as p, Y as m, bt as h, dt as g, et as _, k as v, kt as y, p as ee, pt as te, tt as b, v as ne, x as re } from "./mitt-DrOLO7f9.js";
2
+ import { a as ie, c as ae, h as oe, i as se, l as ce, o as le, s as ue, u as de } from "./SelectField-BYcZ8xUa.js";
3
+ //#region node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs
4
+ function x(e) {
5
+ return e.ownerDocument?.defaultView || window;
6
+ }
7
+ function S(e) {
8
+ return x(e).getComputedStyle(e);
9
+ }
10
+ var fe = Math.min, C = Math.max, w = Math.round;
11
+ function pe(e) {
12
+ let t = S(e), n = parseFloat(t.width), r = parseFloat(t.height), i = e.offsetWidth, a = e.offsetHeight, o = w(n) !== i || w(r) !== a;
13
+ return o && (n = i, r = a), {
14
+ width: n,
15
+ height: r,
16
+ fallback: o
17
+ };
18
+ }
19
+ function T(e) {
20
+ return he(e) ? (e.nodeName || "").toLowerCase() : "";
21
+ }
22
+ var E;
23
+ function me() {
24
+ if (E) return E;
25
+ let e = navigator.userAgentData;
26
+ return e && Array.isArray(e.brands) ? (E = e.brands.map(((e) => e.brand + "/" + e.version)).join(" "), E) : navigator.userAgent;
27
+ }
28
+ function D(e) {
29
+ return e instanceof x(e).HTMLElement;
30
+ }
31
+ function O(e) {
32
+ return e instanceof x(e).Element;
33
+ }
34
+ function he(e) {
35
+ return e instanceof x(e).Node;
36
+ }
37
+ function ge(e) {
38
+ return typeof ShadowRoot > "u" ? !1 : e instanceof x(e).ShadowRoot || e instanceof ShadowRoot;
39
+ }
40
+ function k(e) {
41
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = S(e);
42
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
43
+ }
44
+ function _e(e) {
45
+ return [
46
+ "table",
47
+ "td",
48
+ "th"
49
+ ].includes(T(e));
50
+ }
51
+ function ve(e) {
52
+ let t = /firefox/i.test(me()), n = S(e), r = n.backdropFilter || n.WebkitBackdropFilter;
53
+ return n.transform !== "none" || n.perspective !== "none" || !!r && r !== "none" || t && n.willChange === "filter" || t && !!n.filter && n.filter !== "none" || ["transform", "perspective"].some(((e) => n.willChange.includes(e))) || [
54
+ "paint",
55
+ "layout",
56
+ "strict",
57
+ "content"
58
+ ].some(((e) => {
59
+ let t = n.contain;
60
+ return t != null && t.includes(e);
61
+ }));
62
+ }
63
+ function ye() {
64
+ return !/^((?!chrome|android).)*safari/i.test(me());
65
+ }
66
+ function be(e) {
67
+ return [
68
+ "html",
69
+ "body",
70
+ "#document"
71
+ ].includes(T(e));
72
+ }
73
+ function xe(e) {
74
+ return O(e) ? e : e.contextElement;
75
+ }
76
+ var Se = {
77
+ x: 1,
78
+ y: 1
79
+ };
80
+ function A(e) {
81
+ let t = xe(e);
82
+ if (!D(t)) return Se;
83
+ let n = t.getBoundingClientRect(), { width: r, height: i, fallback: a } = pe(t), o = (a ? w(n.width) : n.width) / r, s = (a ? w(n.height) : n.height) / i;
84
+ return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
85
+ x: o,
86
+ y: s
87
+ };
88
+ }
89
+ function j(e, t, n, r) {
90
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
91
+ let i = e.getBoundingClientRect(), a = xe(e), o = Se;
92
+ t && (r ? O(r) && (o = A(r)) : o = A(e));
93
+ let s = a ? x(a) : window, c = !ye() && n, l = (i.left + (c && s.visualViewport?.offsetLeft || 0)) / o.x, u = (i.top + (c && s.visualViewport?.offsetTop || 0)) / o.y, d = i.width / o.x, f = i.height / o.y;
94
+ if (a) {
95
+ let e = x(a), t = r && O(r) ? x(r) : r, n = e.frameElement;
96
+ for (; n && r && t !== e;) {
97
+ let e = A(n), t = n.getBoundingClientRect(), r = getComputedStyle(n);
98
+ t.x += (n.clientLeft + parseFloat(r.paddingLeft)) * e.x, t.y += (n.clientTop + parseFloat(r.paddingTop)) * e.y, l *= e.x, u *= e.y, d *= e.x, f *= e.y, l += t.x, u += t.y, n = x(n).frameElement;
99
+ }
100
+ }
101
+ return {
102
+ width: d,
103
+ height: f,
104
+ top: u,
105
+ right: l + d,
106
+ bottom: u + f,
107
+ left: l,
108
+ x: l,
109
+ y: u
110
+ };
111
+ }
112
+ function M(e) {
113
+ return ((he(e) ? e.ownerDocument : e.document) || window.document).documentElement;
114
+ }
115
+ function N(e) {
116
+ return O(e) ? {
117
+ scrollLeft: e.scrollLeft,
118
+ scrollTop: e.scrollTop
119
+ } : {
120
+ scrollLeft: e.pageXOffset,
121
+ scrollTop: e.pageYOffset
122
+ };
123
+ }
124
+ function Ce(e) {
125
+ return j(M(e)).left + N(e).scrollLeft;
126
+ }
127
+ function P(e) {
128
+ if (T(e) === "html") return e;
129
+ let t = e.assignedSlot || e.parentNode || ge(e) && e.host || M(e);
130
+ return ge(t) ? t.host : t;
131
+ }
132
+ function we(e) {
133
+ let t = P(e);
134
+ return be(t) ? t.ownerDocument.body : D(t) && k(t) ? t : we(t);
135
+ }
136
+ function F(e, t) {
137
+ t === void 0 && (t = []);
138
+ let n = we(e), r = n === e.ownerDocument?.body, i = x(n);
139
+ return r ? t.concat(i, i.visualViewport || [], k(n) ? n : []) : t.concat(n, F(n));
140
+ }
141
+ function Te(e, t, n) {
142
+ return t === "viewport" ? oe(function(e, t) {
143
+ let n = x(e), r = M(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
144
+ if (i) {
145
+ a = i.width, o = i.height;
146
+ let e = ye();
147
+ (e || !e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
148
+ }
149
+ return {
150
+ width: a,
151
+ height: o,
152
+ x: s,
153
+ y: c
154
+ };
155
+ }(e, n)) : O(t) ? oe(function(e, t) {
156
+ let n = j(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = D(e) ? A(e) : {
157
+ x: 1,
158
+ y: 1
159
+ };
160
+ return {
161
+ width: e.clientWidth * a.x,
162
+ height: e.clientHeight * a.y,
163
+ x: i * a.x,
164
+ y: r * a.y
165
+ };
166
+ }(t, n)) : oe(function(e) {
167
+ let t = M(e), n = N(e), r = e.ownerDocument.body, i = C(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = C(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Ce(e), s = -n.scrollTop;
168
+ return S(r).direction === "rtl" && (o += C(t.clientWidth, r.clientWidth) - i), {
169
+ width: i,
170
+ height: a,
171
+ x: o,
172
+ y: s
173
+ };
174
+ }(M(e)));
175
+ }
176
+ function Ee(e) {
177
+ return D(e) && S(e).position !== "fixed" ? e.offsetParent : null;
178
+ }
179
+ function De(e) {
180
+ let t = x(e), n = Ee(e);
181
+ for (; n && _e(n) && S(n).position === "static";) n = Ee(n);
182
+ return n && (T(n) === "html" || T(n) === "body" && S(n).position === "static" && !ve(n)) ? t : n || function(e) {
183
+ let t = P(e);
184
+ for (; D(t) && !be(t);) {
185
+ if (ve(t)) return t;
186
+ t = P(t);
187
+ }
188
+ return null;
189
+ }(e) || t;
190
+ }
191
+ function Oe(e, t, n) {
192
+ let r = D(t), i = M(t), a = j(e, !0, n === "fixed", t), o = {
193
+ scrollLeft: 0,
194
+ scrollTop: 0
195
+ }, s = {
196
+ x: 0,
197
+ y: 0
198
+ };
199
+ if (r || !r && n !== "fixed") if ((T(t) !== "body" || k(i)) && (o = N(t)), D(t)) {
200
+ let e = j(t, !0);
201
+ s.x = e.x + t.clientLeft, s.y = e.y + t.clientTop;
202
+ } else i && (s.x = Ce(i));
203
+ return {
204
+ x: a.left + o.scrollLeft - s.x,
205
+ y: a.top + o.scrollTop - s.y,
206
+ width: a.width,
207
+ height: a.height
208
+ };
209
+ }
210
+ var ke = {
211
+ getClippingRect: function(e) {
212
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? function(e, t) {
213
+ let n = t.get(e);
214
+ if (n) return n;
215
+ let r = F(e).filter(((e) => O(e) && T(e) !== "body")), i = null, a = S(e).position === "fixed", o = a ? P(e) : e;
216
+ for (; O(o) && !be(o);) {
217
+ let e = S(o), t = ve(o);
218
+ (a ? t || i : t || e.position !== "static" || !i || !["absolute", "fixed"].includes(i.position)) ? i = e : r = r.filter(((e) => e !== o)), o = P(o);
219
+ }
220
+ return t.set(e, r), r;
221
+ }(t, this._c) : [].concat(n), r], o = a[0], s = a.reduce(((e, n) => {
222
+ let r = Te(t, n, i);
223
+ return e.top = C(r.top, e.top), e.right = fe(r.right, e.right), e.bottom = fe(r.bottom, e.bottom), e.left = C(r.left, e.left), e;
224
+ }), Te(t, o, i));
225
+ return {
226
+ width: s.right - s.left,
227
+ height: s.bottom - s.top,
228
+ x: s.left,
229
+ y: s.top
230
+ };
231
+ },
232
+ convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
233
+ let { rect: t, offsetParent: n, strategy: r } = e, i = D(n), a = M(n);
234
+ if (n === a) return t;
235
+ let o = {
236
+ scrollLeft: 0,
237
+ scrollTop: 0
238
+ }, s = {
239
+ x: 1,
240
+ y: 1
241
+ }, c = {
242
+ x: 0,
243
+ y: 0
244
+ };
245
+ if ((i || !i && r !== "fixed") && ((T(n) !== "body" || k(a)) && (o = N(n)), D(n))) {
246
+ let e = j(n);
247
+ s = A(n), c.x = e.x + n.clientLeft, c.y = e.y + n.clientTop;
248
+ }
249
+ return {
250
+ width: t.width * s.x,
251
+ height: t.height * s.y,
252
+ x: t.x * s.x - o.scrollLeft * s.x + c.x,
253
+ y: t.y * s.y - o.scrollTop * s.y + c.y
254
+ };
255
+ },
256
+ isElement: O,
257
+ getDimensions: function(e) {
258
+ return D(e) ? pe(e) : e.getBoundingClientRect();
259
+ },
260
+ getOffsetParent: De,
261
+ getDocumentElement: M,
262
+ getScale: A,
263
+ async getElementRects(e) {
264
+ let { reference: t, floating: n, strategy: r } = e, i = this.getOffsetParent || De, a = this.getDimensions;
265
+ return {
266
+ reference: Oe(t, await i(n), r),
267
+ floating: {
268
+ x: 0,
269
+ y: 0,
270
+ ...await a(n)
271
+ }
272
+ };
273
+ },
274
+ getClientRects: (e) => Array.from(e.getClientRects()),
275
+ isRTL: (e) => S(e).direction === "rtl"
276
+ }, Ae = (e, t, n) => {
277
+ let r = /* @__PURE__ */ new Map(), i = {
278
+ platform: ke,
279
+ ...n
280
+ }, a = {
281
+ ...i.platform,
282
+ _c: r
283
+ };
284
+ return le(e, t, {
285
+ ...i,
286
+ platform: a
287
+ });
288
+ };
289
+ //#endregion
290
+ //#region node_modules/floating-vue/dist/floating-vue.mjs
291
+ function je(e, t) {
292
+ for (let n in t) Object.prototype.hasOwnProperty.call(t, n) && (typeof t[n] == "object" && e[n] ? je(e[n], t[n]) : e[n] = t[n]);
293
+ }
294
+ var I = {
295
+ disabled: !1,
296
+ distance: 5,
297
+ skidding: 0,
298
+ container: "body",
299
+ boundary: void 0,
300
+ instantMove: !1,
301
+ disposeTimeout: 150,
302
+ popperTriggers: [],
303
+ strategy: "absolute",
304
+ preventOverflow: !0,
305
+ flip: !0,
306
+ shift: !0,
307
+ overflowPadding: 0,
308
+ arrowPadding: 0,
309
+ arrowOverflow: !0,
310
+ autoHideOnMousedown: !1,
311
+ themes: {
312
+ tooltip: {
313
+ placement: "top",
314
+ triggers: [
315
+ "hover",
316
+ "focus",
317
+ "touch"
318
+ ],
319
+ hideTriggers: (e) => [...e, "click"],
320
+ delay: {
321
+ show: 200,
322
+ hide: 0
323
+ },
324
+ handleResize: !1,
325
+ html: !1,
326
+ loadingContent: "..."
327
+ },
328
+ dropdown: {
329
+ placement: "bottom",
330
+ triggers: ["click"],
331
+ delay: 0,
332
+ handleResize: !0,
333
+ autoHide: !0
334
+ },
335
+ menu: {
336
+ $extend: "dropdown",
337
+ triggers: ["hover", "focus"],
338
+ popperTriggers: ["hover"],
339
+ delay: {
340
+ show: 0,
341
+ hide: 400
342
+ }
343
+ }
344
+ }
345
+ };
346
+ function L(e, t) {
347
+ let n = I.themes[e] || {}, r;
348
+ do
349
+ r = n[t], typeof r > "u" ? n.$extend ? n = I.themes[n.$extend] || {} : (n = null, r = I[t]) : n = null;
350
+ while (n);
351
+ return r;
352
+ }
353
+ function Me(e) {
354
+ let t = [e], n = I.themes[e] || {};
355
+ do
356
+ n.$extend && !n.$resetCss ? (t.push(n.$extend), n = I.themes[n.$extend] || {}) : n = null;
357
+ while (n);
358
+ return t.map((e) => `v-popper--theme-${e}`);
359
+ }
360
+ function Ne(e) {
361
+ let t = [e], n = I.themes[e] || {};
362
+ do
363
+ n.$extend ? (t.push(n.$extend), n = I.themes[n.$extend] || {}) : n = null;
364
+ while (n);
365
+ return t;
366
+ }
367
+ var R = !1;
368
+ if (typeof window < "u") {
369
+ R = !1;
370
+ try {
371
+ let e = Object.defineProperty({}, "passive", { get() {
372
+ R = !0;
373
+ } });
374
+ window.addEventListener("test", null, e);
375
+ } catch {}
376
+ }
377
+ var Pe = !1;
378
+ typeof window < "u" && typeof navigator < "u" && (Pe = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
379
+ var Fe = [
380
+ "auto",
381
+ "top",
382
+ "bottom",
383
+ "left",
384
+ "right"
385
+ ].reduce((e, t) => e.concat([
386
+ t,
387
+ `${t}-start`,
388
+ `${t}-end`
389
+ ]), []), Ie = {
390
+ hover: "mouseenter",
391
+ focus: "focus",
392
+ click: "click",
393
+ touch: "touchstart",
394
+ pointer: "pointerdown"
395
+ }, Le = {
396
+ hover: "mouseleave",
397
+ focus: "blur",
398
+ click: "click",
399
+ touch: "touchend",
400
+ pointer: "pointerup"
401
+ };
402
+ function Re(e, t) {
403
+ let n = e.indexOf(t);
404
+ n !== -1 && e.splice(n, 1);
405
+ }
406
+ function z() {
407
+ return new Promise((e) => requestAnimationFrame(() => {
408
+ requestAnimationFrame(e);
409
+ }));
410
+ }
411
+ var B = [], V = null, ze = {};
412
+ function Be(e) {
413
+ let t = ze[e];
414
+ return t ||= ze[e] = [], t;
415
+ }
416
+ var H = function() {};
417
+ typeof window < "u" && (H = window.Element);
418
+ function U(e) {
419
+ return function(t) {
420
+ return L(t.theme, e);
421
+ };
422
+ }
423
+ var Ve = "__floating-vue__popper", He = () => u({
424
+ name: "VPopper",
425
+ provide() {
426
+ return { [Ve]: { parentPopper: this } };
427
+ },
428
+ inject: { [Ve]: { default: null } },
429
+ props: {
430
+ theme: {
431
+ type: String,
432
+ required: !0
433
+ },
434
+ targetNodes: {
435
+ type: Function,
436
+ required: !0
437
+ },
438
+ referenceNode: {
439
+ type: Function,
440
+ default: null
441
+ },
442
+ popperNode: {
443
+ type: Function,
444
+ required: !0
445
+ },
446
+ shown: {
447
+ type: Boolean,
448
+ default: !1
449
+ },
450
+ showGroup: {
451
+ type: String,
452
+ default: null
453
+ },
454
+ ariaId: { default: null },
455
+ disabled: {
456
+ type: Boolean,
457
+ default: U("disabled")
458
+ },
459
+ positioningDisabled: {
460
+ type: Boolean,
461
+ default: U("positioningDisabled")
462
+ },
463
+ placement: {
464
+ type: String,
465
+ default: U("placement"),
466
+ validator: (e) => Fe.includes(e)
467
+ },
468
+ delay: {
469
+ type: [
470
+ String,
471
+ Number,
472
+ Object
473
+ ],
474
+ default: U("delay")
475
+ },
476
+ distance: {
477
+ type: [Number, String],
478
+ default: U("distance")
479
+ },
480
+ skidding: {
481
+ type: [Number, String],
482
+ default: U("skidding")
483
+ },
484
+ triggers: {
485
+ type: Array,
486
+ default: U("triggers")
487
+ },
488
+ showTriggers: {
489
+ type: [Array, Function],
490
+ default: U("showTriggers")
491
+ },
492
+ hideTriggers: {
493
+ type: [Array, Function],
494
+ default: U("hideTriggers")
495
+ },
496
+ popperTriggers: {
497
+ type: Array,
498
+ default: U("popperTriggers")
499
+ },
500
+ popperShowTriggers: {
501
+ type: [Array, Function],
502
+ default: U("popperShowTriggers")
503
+ },
504
+ popperHideTriggers: {
505
+ type: [Array, Function],
506
+ default: U("popperHideTriggers")
507
+ },
508
+ container: {
509
+ type: [
510
+ String,
511
+ Object,
512
+ H,
513
+ Boolean
514
+ ],
515
+ default: U("container")
516
+ },
517
+ boundary: {
518
+ type: [String, H],
519
+ default: U("boundary")
520
+ },
521
+ strategy: {
522
+ type: String,
523
+ validator: (e) => ["absolute", "fixed"].includes(e),
524
+ default: U("strategy")
525
+ },
526
+ autoHide: {
527
+ type: [Boolean, Function],
528
+ default: U("autoHide")
529
+ },
530
+ handleResize: {
531
+ type: Boolean,
532
+ default: U("handleResize")
533
+ },
534
+ instantMove: {
535
+ type: Boolean,
536
+ default: U("instantMove")
537
+ },
538
+ eagerMount: {
539
+ type: Boolean,
540
+ default: U("eagerMount")
541
+ },
542
+ popperClass: {
543
+ type: [
544
+ String,
545
+ Array,
546
+ Object
547
+ ],
548
+ default: U("popperClass")
549
+ },
550
+ computeTransformOrigin: {
551
+ type: Boolean,
552
+ default: U("computeTransformOrigin")
553
+ },
554
+ autoMinSize: {
555
+ type: Boolean,
556
+ default: U("autoMinSize")
557
+ },
558
+ autoSize: {
559
+ type: [Boolean, String],
560
+ default: U("autoSize")
561
+ },
562
+ autoMaxSize: {
563
+ type: Boolean,
564
+ default: U("autoMaxSize")
565
+ },
566
+ autoBoundaryMaxSize: {
567
+ type: Boolean,
568
+ default: U("autoBoundaryMaxSize")
569
+ },
570
+ preventOverflow: {
571
+ type: Boolean,
572
+ default: U("preventOverflow")
573
+ },
574
+ overflowPadding: {
575
+ type: [Number, String],
576
+ default: U("overflowPadding")
577
+ },
578
+ arrowPadding: {
579
+ type: [Number, String],
580
+ default: U("arrowPadding")
581
+ },
582
+ arrowOverflow: {
583
+ type: Boolean,
584
+ default: U("arrowOverflow")
585
+ },
586
+ flip: {
587
+ type: Boolean,
588
+ default: U("flip")
589
+ },
590
+ shift: {
591
+ type: Boolean,
592
+ default: U("shift")
593
+ },
594
+ shiftCrossAxis: {
595
+ type: Boolean,
596
+ default: U("shiftCrossAxis")
597
+ },
598
+ noAutoFocus: {
599
+ type: Boolean,
600
+ default: U("noAutoFocus")
601
+ },
602
+ disposeTimeout: {
603
+ type: Number,
604
+ default: U("disposeTimeout")
605
+ }
606
+ },
607
+ emits: {
608
+ show: () => !0,
609
+ hide: () => !0,
610
+ "update:shown": (e) => !0,
611
+ "apply-show": () => !0,
612
+ "apply-hide": () => !0,
613
+ "close-group": () => !0,
614
+ "close-directive": () => !0,
615
+ "auto-hide": () => !0,
616
+ resize: () => !0
617
+ },
618
+ data() {
619
+ return {
620
+ isShown: !1,
621
+ isMounted: !1,
622
+ skipTransition: !1,
623
+ classes: {
624
+ showFrom: !1,
625
+ showTo: !1,
626
+ hideFrom: !1,
627
+ hideTo: !0
628
+ },
629
+ result: {
630
+ x: 0,
631
+ y: 0,
632
+ placement: "",
633
+ strategy: this.strategy,
634
+ arrow: {
635
+ x: 0,
636
+ y: 0,
637
+ centerOffset: 0
638
+ },
639
+ transformOrigin: null
640
+ },
641
+ randomId: `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`,
642
+ shownChildren: /* @__PURE__ */ new Set(),
643
+ lastAutoHide: !0,
644
+ pendingHide: !1,
645
+ containsGlobalTarget: !1,
646
+ isDisposed: !0,
647
+ mouseDownContains: !1
648
+ };
649
+ },
650
+ computed: {
651
+ popperId() {
652
+ return this.ariaId == null ? this.randomId : this.ariaId;
653
+ },
654
+ shouldMountContent() {
655
+ return this.eagerMount || this.isMounted;
656
+ },
657
+ slotData() {
658
+ return {
659
+ popperId: this.popperId,
660
+ isShown: this.isShown,
661
+ shouldMountContent: this.shouldMountContent,
662
+ skipTransition: this.skipTransition,
663
+ autoHide: typeof this.autoHide == "function" ? this.lastAutoHide : this.autoHide,
664
+ show: this.show,
665
+ hide: this.hide,
666
+ handleResize: this.handleResize,
667
+ onResize: this.onResize,
668
+ classes: {
669
+ ...this.classes,
670
+ popperClass: this.popperClass
671
+ },
672
+ result: this.positioningDisabled ? null : this.result,
673
+ attrs: this.$attrs
674
+ };
675
+ },
676
+ parentPopper() {
677
+ return this[Ve]?.parentPopper;
678
+ },
679
+ hasPopperShowTriggerHover() {
680
+ return this.popperTriggers?.includes("hover") || this.popperShowTriggers?.includes("hover");
681
+ }
682
+ },
683
+ watch: {
684
+ shown: "$_autoShowHide",
685
+ disabled(e) {
686
+ e ? this.dispose() : this.init();
687
+ },
688
+ async container() {
689
+ this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
690
+ },
691
+ triggers: {
692
+ handler: "$_refreshListeners",
693
+ deep: !0
694
+ },
695
+ positioningDisabled: "$_refreshListeners",
696
+ ...[
697
+ "placement",
698
+ "distance",
699
+ "skidding",
700
+ "boundary",
701
+ "strategy",
702
+ "overflowPadding",
703
+ "arrowPadding",
704
+ "preventOverflow",
705
+ "shift",
706
+ "shiftCrossAxis",
707
+ "flip"
708
+ ].reduce((e, t) => (e[t] = "$_computePosition", e), {})
709
+ },
710
+ created() {
711
+ 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.");
712
+ },
713
+ mounted() {
714
+ this.init(), this.$_detachPopperNode();
715
+ },
716
+ activated() {
717
+ this.$_autoShowHide();
718
+ },
719
+ deactivated() {
720
+ this.hide();
721
+ },
722
+ beforeUnmount() {
723
+ this.dispose();
724
+ },
725
+ methods: {
726
+ show({ event: e = null, skipDelay: t = !1, force: n = !1 } = {}) {
727
+ var r;
728
+ (r = this.parentPopper) != null && r.lockedChild && this.parentPopper.lockedChild !== this || (this.pendingHide = !1, (n || !this.disabled) && (this.parentPopper?.lockedChild === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
729
+ this.$_showFrameLocked = !1;
730
+ })), this.$emit("update:shown", !0));
731
+ },
732
+ hide({ event: e = null, skipDelay: t = !1 } = {}) {
733
+ if (!this.$_hideInProgress) {
734
+ if (this.shownChildren.size > 0) {
735
+ this.pendingHide = !0;
736
+ return;
737
+ }
738
+ if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
739
+ this.parentPopper && (this.parentPopper.lockedChild = this, clearTimeout(this.parentPopper.lockedChildTimer), this.parentPopper.lockedChildTimer = setTimeout(() => {
740
+ this.parentPopper.lockedChild === this && (this.parentPopper.lockedChild.hide({ skipDelay: t }), this.parentPopper.lockedChild = null);
741
+ }, 1e3));
742
+ return;
743
+ }
744
+ this.parentPopper?.lockedChild === this && (this.parentPopper.lockedChild = null), this.pendingHide = !1, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", !1);
745
+ }
746
+ },
747
+ init() {
748
+ this.isDisposed && (this.isDisposed = !1, this.isMounted = !1, this.$_events = [], this.$_preventShow = !1, this.$_referenceNode = this.referenceNode?.call(this) ?? this.$el, this.$_targetNodes = this.targetNodes().filter((e) => e.nodeType === e.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());
749
+ },
750
+ dispose() {
751
+ 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"));
752
+ },
753
+ async onResize() {
754
+ this.isShown && (await this.$_computePosition(), this.$emit("resize"));
755
+ },
756
+ async $_computePosition() {
757
+ if (this.isDisposed || this.positioningDisabled) return;
758
+ let e = {
759
+ strategy: this.strategy,
760
+ middleware: []
761
+ };
762
+ (this.distance || this.skidding) && e.middleware.push(ae({
763
+ mainAxis: this.distance,
764
+ crossAxis: this.skidding
765
+ }));
766
+ let t = this.placement.startsWith("auto");
767
+ if (t ? e.middleware.push(ie({ alignment: this.placement.split("-")[1] ?? "" })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(ce({
768
+ padding: this.overflowPadding,
769
+ boundary: this.boundary,
770
+ crossAxis: this.shiftCrossAxis
771
+ })), !t && this.flip && e.middleware.push(ue({
772
+ padding: this.overflowPadding,
773
+ boundary: this.boundary
774
+ }))), e.middleware.push(se({
775
+ element: this.$_arrowNode,
776
+ padding: this.arrowPadding
777
+ })), this.arrowOverflow && e.middleware.push({
778
+ name: "arrowOverflow",
779
+ fn: ({ placement: e, rects: t, middlewareData: n }) => {
780
+ let r, { centerOffset: i } = n.arrow;
781
+ return r = e.startsWith("top") || e.startsWith("bottom") ? Math.abs(i) > t.reference.width / 2 : Math.abs(i) > t.reference.height / 2, { data: { overflow: r } };
782
+ }
783
+ }), this.autoMinSize || this.autoSize) {
784
+ let t = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
785
+ e.middleware.push({
786
+ name: "autoSize",
787
+ fn: ({ rects: e, placement: n, middlewareData: r }) => {
788
+ var i;
789
+ if ((i = r.autoSize) != null && i.skip) return {};
790
+ let a, o;
791
+ return n.startsWith("top") || n.startsWith("bottom") ? a = e.reference.width : o = e.reference.height, this.$_innerNode.style[t === "min" ? "minWidth" : t === "max" ? "maxWidth" : "width"] = a == null ? null : `${a}px`, this.$_innerNode.style[t === "min" ? "minHeight" : t === "max" ? "maxHeight" : "height"] = o == null ? null : `${o}px`, {
792
+ data: { skip: !0 },
793
+ reset: { rects: !0 }
794
+ };
795
+ }
796
+ });
797
+ }
798
+ (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(de({
799
+ boundary: this.boundary,
800
+ padding: this.overflowPadding,
801
+ apply: ({ availableWidth: e, availableHeight: t }) => {
802
+ this.$_innerNode.style.maxWidth = e == null ? null : `${e}px`, this.$_innerNode.style.maxHeight = t == null ? null : `${t}px`;
803
+ }
804
+ })));
805
+ let n = await Ae(this.$_referenceNode, this.$_popperNode, e);
806
+ Object.assign(this.result, {
807
+ x: n.x,
808
+ y: n.y,
809
+ placement: n.placement,
810
+ strategy: n.strategy,
811
+ arrow: {
812
+ ...n.middlewareData.arrow,
813
+ ...n.middlewareData.arrowOverflow
814
+ }
815
+ });
816
+ },
817
+ $_scheduleShow(e, t = !1) {
818
+ if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), V && this.instantMove && V.instantMove && V !== this.parentPopper) {
819
+ V.$_applyHide(!0), this.$_applyShow(!0);
820
+ return;
821
+ }
822
+ t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
823
+ },
824
+ $_scheduleHide(e, t = !1) {
825
+ if (this.shownChildren.size > 0) {
826
+ this.pendingHide = !0;
827
+ return;
828
+ }
829
+ this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (V = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
830
+ },
831
+ $_computeDelay(e) {
832
+ let t = this.delay;
833
+ return parseInt(t && t[e] || t || 0);
834
+ },
835
+ async $_applyShow(e = !1) {
836
+ clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await z(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([...F(this.$_referenceNode), ...F(this.$_popperNode)], "scroll", () => {
837
+ this.$_computePosition();
838
+ }));
839
+ },
840
+ async $_applyShowEffect() {
841
+ if (this.$_hideInProgress) return;
842
+ if (this.computeTransformOrigin) {
843
+ let e = this.$_referenceNode.getBoundingClientRect(), t = this.$_popperNode.querySelector(".v-popper__wrapper"), n = t.parentNode.getBoundingClientRect(), r = e.x + e.width / 2 - (n.left + t.offsetLeft), i = e.y + e.height / 2 - (n.top + t.offsetTop);
844
+ this.result.transformOrigin = `${r}px ${i}px`;
845
+ }
846
+ this.isShown = !0, this.$_applyAttrsToTarget({
847
+ "aria-describedby": this.popperId,
848
+ "data-popper-shown": ""
849
+ });
850
+ let e = this.showGroup;
851
+ if (e) {
852
+ let t;
853
+ for (let n = 0; n < B.length; n++) t = B[n], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
854
+ }
855
+ B.push(this), document.body.classList.add("v-popper--some-open");
856
+ for (let e of Ne(this.theme)) Be(e).push(this), document.body.classList.add(`v-popper--some-open--${e}`);
857
+ this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await z(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
858
+ },
859
+ async $_applyHide(e = !1) {
860
+ if (this.shownChildren.size > 0) {
861
+ this.pendingHide = !0, this.$_hideInProgress = !1;
862
+ return;
863
+ }
864
+ if (clearTimeout(this.$_scheduleTimer), !this.isShown) return;
865
+ this.skipTransition = e, Re(B, this), B.length === 0 && document.body.classList.remove("v-popper--some-open");
866
+ for (let e of Ne(this.theme)) {
867
+ let t = Be(e);
868
+ Re(t, this), t.length === 0 && document.body.classList.remove(`v-popper--some-open--${e}`);
869
+ }
870
+ V === this && (V = null), this.isShown = !1, this.$_applyAttrsToTarget({
871
+ "aria-describedby": void 0,
872
+ "data-popper-shown": void 0
873
+ }), clearTimeout(this.$_disposeTimer);
874
+ let t = this.disposeTimeout;
875
+ t !== null && (this.$_disposeTimer = setTimeout(() => {
876
+ this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
877
+ }, 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 z(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
878
+ },
879
+ $_autoShowHide() {
880
+ this.shown ? this.show() : this.hide();
881
+ },
882
+ $_ensureTeleport() {
883
+ if (this.isDisposed) return;
884
+ let e = this.container;
885
+ if (typeof e == "string" ? e = window.document.querySelector(e) : e === !1 && (e = this.$_targetNodes[0].parentNode), !e) throw Error("No container for popover: " + this.container);
886
+ e.appendChild(this.$_popperNode), this.isMounted = !0;
887
+ },
888
+ $_addEventListeners() {
889
+ let e = (e) => {
890
+ this.isShown && !this.$_hideInProgress || (e.usedByTooltip = !0, !this.$_preventShow && this.show({ event: e }));
891
+ };
892
+ this.$_registerTriggerListeners(this.$_targetNodes, Ie, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], Ie, this.popperTriggers, this.popperShowTriggers, e);
893
+ let t = (e) => {
894
+ e.usedByTooltip || this.hide({ event: e });
895
+ };
896
+ this.$_registerTriggerListeners(this.$_targetNodes, Le, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], Le, this.popperTriggers, this.popperHideTriggers, t);
897
+ },
898
+ $_registerEventListeners(e, t, n) {
899
+ this.$_events.push({
900
+ targetNodes: e,
901
+ eventType: t,
902
+ handler: n
903
+ }), e.forEach((e) => e.addEventListener(t, n, R ? { passive: !0 } : void 0));
904
+ },
905
+ $_registerTriggerListeners(e, t, n, r, i) {
906
+ let a = n;
907
+ r != null && (a = typeof r == "function" ? r(a) : r), a.forEach((n) => {
908
+ let r = t[n];
909
+ r && this.$_registerEventListeners(e, r, i);
910
+ });
911
+ },
912
+ $_removeEventListeners(e) {
913
+ let t = [];
914
+ this.$_events.forEach((n) => {
915
+ let { targetNodes: r, eventType: i, handler: a } = n;
916
+ !e || e === i ? r.forEach((e) => e.removeEventListener(i, a)) : t.push(n);
917
+ }), this.$_events = t;
918
+ },
919
+ $_refreshListeners() {
920
+ this.isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
921
+ },
922
+ $_handleGlobalClose(e, t = !1) {
923
+ this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = !0, setTimeout(() => {
924
+ this.$_preventShow = !1;
925
+ }, 300)));
926
+ },
927
+ $_detachPopperNode() {
928
+ this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
929
+ },
930
+ $_swapTargetAttrs(e, t) {
931
+ for (let n of this.$_targetNodes) {
932
+ let r = n.getAttribute(e);
933
+ r && (n.removeAttribute(e), n.setAttribute(t, r));
934
+ }
935
+ },
936
+ $_applyAttrsToTarget(e) {
937
+ for (let t of this.$_targetNodes) for (let n in e) {
938
+ let r = e[n];
939
+ r == null ? t.removeAttribute(n) : t.setAttribute(n, r);
940
+ }
941
+ },
942
+ $_updateParentShownChildren(e) {
943
+ let t = this.parentPopper;
944
+ for (; t;) e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.pendingHide && t.hide()), t = t.parentPopper;
945
+ },
946
+ $_isAimingPopper() {
947
+ let e = this.$_referenceNode.getBoundingClientRect();
948
+ if (K >= e.left && K <= e.right && q >= e.top && q <= e.bottom) {
949
+ let e = this.$_popperNode.getBoundingClientRect(), t = K - W, n = q - G, r = e.left + e.width / 2 - W + (e.top + e.height / 2) - G + e.width + e.height, i = W + t * r, a = G + n * r;
950
+ return J(W, G, i, a, e.left, e.top, e.left, e.bottom) || J(W, G, i, a, e.left, e.top, e.right, e.top) || J(W, G, i, a, e.right, e.top, e.right, e.bottom) || J(W, G, i, a, e.left, e.bottom, e.right, e.bottom);
951
+ }
952
+ return !1;
953
+ }
954
+ },
955
+ render() {
956
+ return this.$slots.default(this.slotData);
957
+ }
958
+ });
959
+ if (typeof document < "u" && typeof window < "u") {
960
+ if (Pe) {
961
+ let e = R ? {
962
+ passive: !0,
963
+ capture: !0
964
+ } : !0;
965
+ document.addEventListener("touchstart", (e) => Ue(e, !0), e), document.addEventListener("touchend", (e) => We(e, !0), e);
966
+ } else window.addEventListener("mousedown", (e) => Ue(e, !1), !0), window.addEventListener("click", (e) => We(e, !1), !0);
967
+ window.addEventListener("resize", Je);
968
+ }
969
+ function Ue(e, t) {
970
+ if (I.autoHideOnMousedown) Ge(e, t);
971
+ else for (let t = 0; t < B.length; t++) {
972
+ let n = B[t];
973
+ try {
974
+ n.mouseDownContains = n.popperNode().contains(e.target);
975
+ } catch {}
976
+ }
977
+ }
978
+ function We(e, t) {
979
+ I.autoHideOnMousedown || Ge(e, t);
980
+ }
981
+ function Ge(e, t) {
982
+ let n = {};
983
+ for (let r = B.length - 1; r >= 0; r--) {
984
+ let i = B[r];
985
+ try {
986
+ let r = i.containsGlobalTarget = i.mouseDownContains || i.popperNode().contains(e.target);
987
+ i.pendingHide = !1, requestAnimationFrame(() => {
988
+ if (i.pendingHide = !1, !n[i.randomId] && Ke(i, r, e)) {
989
+ if (i.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && r) {
990
+ let e = i.parentPopper;
991
+ for (; e;) n[e.randomId] = !0, e = e.parentPopper;
992
+ return;
993
+ }
994
+ let a = i.parentPopper;
995
+ for (; a && Ke(a, a.containsGlobalTarget, e);) a.$_handleGlobalClose(e, t), a = a.parentPopper;
996
+ }
997
+ });
998
+ } catch {}
999
+ }
1000
+ }
1001
+ function Ke(e, t, n) {
1002
+ return n.closeAllPopover || n.closePopover && t || qe(e, n) && !t;
1003
+ }
1004
+ function qe(e, t) {
1005
+ if (typeof e.autoHide == "function") {
1006
+ let n = e.autoHide(t);
1007
+ return e.lastAutoHide = n, n;
1008
+ }
1009
+ return e.autoHide;
1010
+ }
1011
+ function Je() {
1012
+ for (let e = 0; e < B.length; e++) B[e].$_computePosition();
1013
+ }
1014
+ var W = 0, G = 0, K = 0, q = 0;
1015
+ typeof window < "u" && window.addEventListener("mousemove", (e) => {
1016
+ W = K, G = q, K = e.clientX, q = e.clientY;
1017
+ }, R ? { passive: !0 } : void 0);
1018
+ function J(e, t, n, r, i, a, o, s) {
1019
+ let c = ((o - i) * (t - a) - (s - a) * (e - i)) / ((s - a) * (n - e) - (o - i) * (r - t)), l = ((n - e) * (t - a) - (r - t) * (e - i)) / ((s - a) * (n - e) - (o - i) * (r - t));
1020
+ return c >= 0 && c <= 1 && l >= 0 && l <= 1;
1021
+ }
1022
+ var Ye = { extends: He() }, Y = (e, t) => {
1023
+ let n = e.__vccOpts || e;
1024
+ for (let [e, r] of t) n[e] = r;
1025
+ return n;
1026
+ };
1027
+ function Xe(e, t, r, i, o, s) {
1028
+ return m(), v("div", {
1029
+ ref: "reference",
1030
+ class: n(["v-popper", { "v-popper--shown": e.slotData.isShown }])
1031
+ }, [_(e.$slots, "default", l(a(e.slotData)))], 2);
1032
+ }
1033
+ var Ze = /* @__PURE__ */ Y(Ye, [["render", Xe]]);
1034
+ function Qe() {
1035
+ var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
1036
+ if (t > 0) return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
1037
+ if (e.indexOf("Trident/") > 0) {
1038
+ var n = e.indexOf("rv:");
1039
+ return parseInt(e.substring(n + 3, e.indexOf(".", n)), 10);
1040
+ }
1041
+ var r = e.indexOf("Edge/");
1042
+ return r > 0 ? parseInt(e.substring(r + 5, e.indexOf(".", r)), 10) : -1;
1043
+ }
1044
+ var X;
1045
+ function $e() {
1046
+ $e.init || ($e.init = !0, X = Qe() !== -1);
1047
+ }
1048
+ var Z = {
1049
+ name: "ResizeObserver",
1050
+ props: {
1051
+ emitOnMount: {
1052
+ type: Boolean,
1053
+ default: !1
1054
+ },
1055
+ ignoreWidth: {
1056
+ type: Boolean,
1057
+ default: !1
1058
+ },
1059
+ ignoreHeight: {
1060
+ type: Boolean,
1061
+ default: !1
1062
+ }
1063
+ },
1064
+ emits: ["notify"],
1065
+ mounted() {
1066
+ $e(), i(() => {
1067
+ this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
1068
+ });
1069
+ let e = document.createElement("object");
1070
+ this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", X && this.$el.appendChild(e), e.data = "about:blank", X || this.$el.appendChild(e);
1071
+ },
1072
+ beforeUnmount() {
1073
+ this.removeResizeHandlers();
1074
+ },
1075
+ methods: {
1076
+ compareAndNotify() {
1077
+ (!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());
1078
+ },
1079
+ emitSize() {
1080
+ this.$emit("notify", {
1081
+ width: this._w,
1082
+ height: this._h
1083
+ });
1084
+ },
1085
+ addResizeHandlers() {
1086
+ this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
1087
+ },
1088
+ removeResizeHandlers() {
1089
+ this._resizeObject && this._resizeObject.onload && (!X && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
1090
+ }
1091
+ }
1092
+ }, et = /* @__PURE__ */ te("data-v-b329ee4c");
1093
+ d("data-v-b329ee4c");
1094
+ var tt = {
1095
+ class: "resize-observer",
1096
+ tabindex: "-1"
1097
+ };
1098
+ p(), Z.render = /* @__PURE__ */ et((e, n, r, i, a, o) => (m(), t("div", tt))), Z.__scopeId = "data-v-b329ee4c", Z.__file = "src/components/ResizeObserver.vue";
1099
+ var nt = (e = "theme") => ({ computed: { themeClass() {
1100
+ return Me(this[e]);
1101
+ } } }), rt = u({
1102
+ name: "VPopperContent",
1103
+ components: { ResizeObserver: Z },
1104
+ mixins: [nt()],
1105
+ props: {
1106
+ popperId: String,
1107
+ theme: String,
1108
+ shown: Boolean,
1109
+ mounted: Boolean,
1110
+ skipTransition: Boolean,
1111
+ autoHide: Boolean,
1112
+ handleResize: Boolean,
1113
+ classes: Object,
1114
+ result: Object
1115
+ },
1116
+ emits: ["hide", "resize"],
1117
+ methods: { toPx(e) {
1118
+ return e != null && !isNaN(e) ? `${e}px` : null;
1119
+ } }
1120
+ }), it = [
1121
+ "id",
1122
+ "aria-hidden",
1123
+ "tabindex",
1124
+ "data-popper-placement"
1125
+ ], at = {
1126
+ ref: "inner",
1127
+ class: "v-popper__inner"
1128
+ }, ot = [/* @__PURE__ */ r("div", { class: "v-popper__arrow-outer" }, null, -1), /* @__PURE__ */ r("div", { class: "v-popper__arrow-inner" }, null, -1)];
1129
+ function st(e, i, a, o, s, l) {
1130
+ let u = b("ResizeObserver");
1131
+ return m(), v("div", {
1132
+ id: e.popperId,
1133
+ ref: "popover",
1134
+ class: n(["v-popper__popper", [
1135
+ e.themeClass,
1136
+ e.classes.popperClass,
1137
+ {
1138
+ "v-popper__popper--shown": e.shown,
1139
+ "v-popper__popper--hidden": !e.shown,
1140
+ "v-popper__popper--show-from": e.classes.showFrom,
1141
+ "v-popper__popper--show-to": e.classes.showTo,
1142
+ "v-popper__popper--hide-from": e.classes.hideFrom,
1143
+ "v-popper__popper--hide-to": e.classes.hideTo,
1144
+ "v-popper__popper--skip-transition": e.skipTransition,
1145
+ "v-popper__popper--arrow-overflow": e.result && e.result.arrow.overflow,
1146
+ "v-popper__popper--no-positioning": !e.result
1147
+ }
1148
+ ]]),
1149
+ style: y(e.result ? {
1150
+ position: e.result.strategy,
1151
+ transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
1152
+ } : void 0),
1153
+ "aria-hidden": e.shown ? "false" : "true",
1154
+ tabindex: e.autoHide ? 0 : void 0,
1155
+ "data-popper-placement": e.result ? e.result.placement : void 0,
1156
+ onKeyup: i[2] ||= ne((t) => e.autoHide && e.$emit("hide"), ["esc"])
1157
+ }, [r("div", {
1158
+ class: "v-popper__backdrop",
1159
+ onClick: i[0] ||= (t) => e.autoHide && e.$emit("hide")
1160
+ }), r("div", {
1161
+ class: "v-popper__wrapper",
1162
+ style: y(e.result ? { transformOrigin: e.result.transformOrigin } : void 0)
1163
+ }, [r("div", at, [e.mounted ? (m(), v(re, { key: 0 }, [r("div", null, [_(e.$slots, "default")]), e.handleResize ? (m(), t(u, {
1164
+ key: 0,
1165
+ onNotify: i[1] ||= (t) => e.$emit("resize", t)
1166
+ })) : c("", !0)], 64)) : c("", !0)], 512), r("div", {
1167
+ ref: "arrow",
1168
+ class: "v-popper__arrow-container",
1169
+ style: y(e.result ? {
1170
+ left: e.toPx(e.result.arrow.x),
1171
+ top: e.toPx(e.result.arrow.y)
1172
+ } : void 0)
1173
+ }, ot, 4)], 4)], 46, it);
1174
+ }
1175
+ var ct = /* @__PURE__ */ Y(rt, [["render", st]]), lt = { methods: {
1176
+ show(...e) {
1177
+ return this.$refs.popper.show(...e);
1178
+ },
1179
+ hide(...e) {
1180
+ return this.$refs.popper.hide(...e);
1181
+ },
1182
+ dispose(...e) {
1183
+ return this.$refs.popper.dispose(...e);
1184
+ },
1185
+ onResize(...e) {
1186
+ return this.$refs.popper.onResize(...e);
1187
+ }
1188
+ } }, ut = function() {};
1189
+ typeof window < "u" && (ut = window.Element);
1190
+ var dt = u({
1191
+ name: "VPopperWrapper",
1192
+ components: {
1193
+ Popper: Ze,
1194
+ PopperContent: ct
1195
+ },
1196
+ mixins: [lt, nt("finalTheme")],
1197
+ props: {
1198
+ theme: {
1199
+ type: String,
1200
+ default: null
1201
+ },
1202
+ referenceNode: {
1203
+ type: Function,
1204
+ default: null
1205
+ },
1206
+ shown: {
1207
+ type: Boolean,
1208
+ default: !1
1209
+ },
1210
+ showGroup: {
1211
+ type: String,
1212
+ default: null
1213
+ },
1214
+ ariaId: { default: null },
1215
+ disabled: {
1216
+ type: Boolean,
1217
+ default: void 0
1218
+ },
1219
+ positioningDisabled: {
1220
+ type: Boolean,
1221
+ default: void 0
1222
+ },
1223
+ placement: {
1224
+ type: String,
1225
+ default: void 0
1226
+ },
1227
+ delay: {
1228
+ type: [
1229
+ String,
1230
+ Number,
1231
+ Object
1232
+ ],
1233
+ default: void 0
1234
+ },
1235
+ distance: {
1236
+ type: [Number, String],
1237
+ default: void 0
1238
+ },
1239
+ skidding: {
1240
+ type: [Number, String],
1241
+ default: void 0
1242
+ },
1243
+ triggers: {
1244
+ type: Array,
1245
+ default: void 0
1246
+ },
1247
+ showTriggers: {
1248
+ type: [Array, Function],
1249
+ default: void 0
1250
+ },
1251
+ hideTriggers: {
1252
+ type: [Array, Function],
1253
+ default: void 0
1254
+ },
1255
+ popperTriggers: {
1256
+ type: Array,
1257
+ default: void 0
1258
+ },
1259
+ popperShowTriggers: {
1260
+ type: [Array, Function],
1261
+ default: void 0
1262
+ },
1263
+ popperHideTriggers: {
1264
+ type: [Array, Function],
1265
+ default: void 0
1266
+ },
1267
+ container: {
1268
+ type: [
1269
+ String,
1270
+ Object,
1271
+ ut,
1272
+ Boolean
1273
+ ],
1274
+ default: void 0
1275
+ },
1276
+ boundary: {
1277
+ type: [String, ut],
1278
+ default: void 0
1279
+ },
1280
+ strategy: {
1281
+ type: String,
1282
+ default: void 0
1283
+ },
1284
+ autoHide: {
1285
+ type: [Boolean, Function],
1286
+ default: void 0
1287
+ },
1288
+ handleResize: {
1289
+ type: Boolean,
1290
+ default: void 0
1291
+ },
1292
+ instantMove: {
1293
+ type: Boolean,
1294
+ default: void 0
1295
+ },
1296
+ eagerMount: {
1297
+ type: Boolean,
1298
+ default: void 0
1299
+ },
1300
+ popperClass: {
1301
+ type: [
1302
+ String,
1303
+ Array,
1304
+ Object
1305
+ ],
1306
+ default: void 0
1307
+ },
1308
+ computeTransformOrigin: {
1309
+ type: Boolean,
1310
+ default: void 0
1311
+ },
1312
+ autoMinSize: {
1313
+ type: Boolean,
1314
+ default: void 0
1315
+ },
1316
+ autoSize: {
1317
+ type: [Boolean, String],
1318
+ default: void 0
1319
+ },
1320
+ autoMaxSize: {
1321
+ type: Boolean,
1322
+ default: void 0
1323
+ },
1324
+ autoBoundaryMaxSize: {
1325
+ type: Boolean,
1326
+ default: void 0
1327
+ },
1328
+ preventOverflow: {
1329
+ type: Boolean,
1330
+ default: void 0
1331
+ },
1332
+ overflowPadding: {
1333
+ type: [Number, String],
1334
+ default: void 0
1335
+ },
1336
+ arrowPadding: {
1337
+ type: [Number, String],
1338
+ default: void 0
1339
+ },
1340
+ arrowOverflow: {
1341
+ type: Boolean,
1342
+ default: void 0
1343
+ },
1344
+ flip: {
1345
+ type: Boolean,
1346
+ default: void 0
1347
+ },
1348
+ shift: {
1349
+ type: Boolean,
1350
+ default: void 0
1351
+ },
1352
+ shiftCrossAxis: {
1353
+ type: Boolean,
1354
+ default: void 0
1355
+ },
1356
+ noAutoFocus: {
1357
+ type: Boolean,
1358
+ default: void 0
1359
+ },
1360
+ disposeTimeout: {
1361
+ type: Number,
1362
+ default: void 0
1363
+ }
1364
+ },
1365
+ emits: {
1366
+ show: () => !0,
1367
+ hide: () => !0,
1368
+ "update:shown": (e) => !0,
1369
+ "apply-show": () => !0,
1370
+ "apply-hide": () => !0,
1371
+ "close-group": () => !0,
1372
+ "close-directive": () => !0,
1373
+ "auto-hide": () => !0,
1374
+ resize: () => !0
1375
+ },
1376
+ computed: { finalTheme() {
1377
+ return this.theme ?? this.$options.vPopperTheme;
1378
+ } },
1379
+ methods: { getTargetNodes() {
1380
+ return Array.from(this.$el.children).filter((e) => e !== this.$refs.popperContent.$el);
1381
+ } }
1382
+ });
1383
+ function ft(e, n, r, i, a, o) {
1384
+ let c = b("PopperContent"), l = b("Popper");
1385
+ return m(), t(l, f({ ref: "popper" }, e.$props, {
1386
+ theme: e.finalTheme,
1387
+ "target-nodes": e.getTargetNodes,
1388
+ "popper-node": () => e.$refs.popperContent.$el,
1389
+ class: [e.themeClass],
1390
+ onShow: n[0] ||= () => e.$emit("show"),
1391
+ onHide: n[1] ||= () => e.$emit("hide"),
1392
+ "onUpdate:shown": n[2] ||= (t) => e.$emit("update:shown", t),
1393
+ onApplyShow: n[3] ||= () => e.$emit("apply-show"),
1394
+ onApplyHide: n[4] ||= () => e.$emit("apply-hide"),
1395
+ onCloseGroup: n[5] ||= () => e.$emit("close-group"),
1396
+ onCloseDirective: n[6] ||= () => e.$emit("close-directive"),
1397
+ onAutoHide: n[7] ||= () => e.$emit("auto-hide"),
1398
+ onResize: n[8] ||= () => e.$emit("resize")
1399
+ }), {
1400
+ default: g(({ popperId: t, isShown: n, shouldMountContent: r, skipTransition: i, autoHide: a, show: o, hide: l, handleResize: u, onResize: d, classes: f, result: p }) => [_(e.$slots, "default", {
1401
+ shown: n,
1402
+ show: o,
1403
+ hide: l
1404
+ }), s(c, {
1405
+ ref: "popperContent",
1406
+ "popper-id": t,
1407
+ theme: e.finalTheme,
1408
+ shown: n,
1409
+ mounted: r,
1410
+ "skip-transition": i,
1411
+ "auto-hide": a,
1412
+ "handle-resize": u,
1413
+ classes: f,
1414
+ result: p,
1415
+ onHide: l,
1416
+ onResize: d
1417
+ }, {
1418
+ default: g(() => [_(e.$slots, "popper", {
1419
+ shown: n,
1420
+ hide: l
1421
+ })]),
1422
+ _: 2
1423
+ }, 1032, [
1424
+ "popper-id",
1425
+ "theme",
1426
+ "shown",
1427
+ "mounted",
1428
+ "skip-transition",
1429
+ "auto-hide",
1430
+ "handle-resize",
1431
+ "classes",
1432
+ "result",
1433
+ "onHide",
1434
+ "onResize"
1435
+ ])]),
1436
+ _: 3
1437
+ }, 16, [
1438
+ "theme",
1439
+ "target-nodes",
1440
+ "popper-node",
1441
+ "class"
1442
+ ]);
1443
+ }
1444
+ var pt = /* @__PURE__ */ Y(dt, [["render", ft]]), mt = {
1445
+ ...pt,
1446
+ name: "VDropdown",
1447
+ vPopperTheme: "dropdown"
1448
+ }, ht = {
1449
+ ...pt,
1450
+ name: "VMenu",
1451
+ vPopperTheme: "menu"
1452
+ }, gt = {
1453
+ ...pt,
1454
+ name: "VTooltip",
1455
+ vPopperTheme: "tooltip"
1456
+ }, _t = u({
1457
+ name: "VTooltipDirective",
1458
+ components: {
1459
+ Popper: He(),
1460
+ PopperContent: ct
1461
+ },
1462
+ mixins: [lt],
1463
+ inheritAttrs: !1,
1464
+ props: {
1465
+ theme: {
1466
+ type: String,
1467
+ default: "tooltip"
1468
+ },
1469
+ html: {
1470
+ type: Boolean,
1471
+ default: (e) => L(e.theme, "html")
1472
+ },
1473
+ content: {
1474
+ type: [
1475
+ String,
1476
+ Number,
1477
+ Function
1478
+ ],
1479
+ default: null
1480
+ },
1481
+ loadingContent: {
1482
+ type: String,
1483
+ default: (e) => L(e.theme, "loadingContent")
1484
+ },
1485
+ targetNodes: {
1486
+ type: Function,
1487
+ required: !0
1488
+ }
1489
+ },
1490
+ data() {
1491
+ return { asyncContent: null };
1492
+ },
1493
+ computed: {
1494
+ isContentAsync() {
1495
+ return typeof this.content == "function";
1496
+ },
1497
+ loading() {
1498
+ return this.isContentAsync && this.asyncContent == null;
1499
+ },
1500
+ finalContent() {
1501
+ return this.isContentAsync ? this.loading ? this.loadingContent : this.asyncContent : this.content;
1502
+ }
1503
+ },
1504
+ watch: {
1505
+ content: {
1506
+ handler() {
1507
+ this.fetchContent(!0);
1508
+ },
1509
+ immediate: !0
1510
+ },
1511
+ async finalContent() {
1512
+ await this.$nextTick(), this.$refs.popper.onResize();
1513
+ }
1514
+ },
1515
+ created() {
1516
+ this.$_fetchId = 0;
1517
+ },
1518
+ methods: {
1519
+ fetchContent(e) {
1520
+ if (typeof this.content == "function" && this.$_isShown && (e || !this.$_loading && this.asyncContent == null)) {
1521
+ this.asyncContent = null, this.$_loading = !0;
1522
+ let e = ++this.$_fetchId, t = this.content(this);
1523
+ t.then ? t.then((t) => this.onResult(e, t)) : this.onResult(e, t);
1524
+ }
1525
+ },
1526
+ onResult(e, t) {
1527
+ e === this.$_fetchId && (this.$_loading = !1, this.asyncContent = t);
1528
+ },
1529
+ onShow() {
1530
+ this.$_isShown = !0, this.fetchContent();
1531
+ },
1532
+ onHide() {
1533
+ this.$_isShown = !1;
1534
+ }
1535
+ }
1536
+ }), vt = ["innerHTML"], yt = ["textContent"];
1537
+ function bt(r, i, a, o, c, l) {
1538
+ let u = b("PopperContent"), d = b("Popper");
1539
+ return m(), t(d, f({ ref: "popper" }, r.$attrs, {
1540
+ theme: r.theme,
1541
+ "target-nodes": r.targetNodes,
1542
+ "popper-node": () => r.$refs.popperContent.$el,
1543
+ onApplyShow: r.onShow,
1544
+ onApplyHide: r.onHide
1545
+ }), {
1546
+ default: g(({ popperId: t, isShown: i, shouldMountContent: a, skipTransition: o, autoHide: c, hide: l, handleResize: d, onResize: f, classes: p, result: h }) => [s(u, {
1547
+ ref: "popperContent",
1548
+ class: n({ "v-popper--tooltip-loading": r.loading }),
1549
+ "popper-id": t,
1550
+ theme: r.theme,
1551
+ shown: i,
1552
+ mounted: a,
1553
+ "skip-transition": o,
1554
+ "auto-hide": c,
1555
+ "handle-resize": d,
1556
+ classes: p,
1557
+ result: h,
1558
+ onHide: l,
1559
+ onResize: f
1560
+ }, {
1561
+ default: g(() => [r.html ? (m(), v("div", {
1562
+ key: 0,
1563
+ innerHTML: r.finalContent
1564
+ }, null, 8, vt)) : (m(), v("div", {
1565
+ key: 1,
1566
+ textContent: e(r.finalContent)
1567
+ }, null, 8, yt))]),
1568
+ _: 2
1569
+ }, 1032, [
1570
+ "class",
1571
+ "popper-id",
1572
+ "theme",
1573
+ "shown",
1574
+ "mounted",
1575
+ "skip-transition",
1576
+ "auto-hide",
1577
+ "handle-resize",
1578
+ "classes",
1579
+ "result",
1580
+ "onHide",
1581
+ "onResize"
1582
+ ])]),
1583
+ _: 1
1584
+ }, 16, [
1585
+ "theme",
1586
+ "target-nodes",
1587
+ "popper-node",
1588
+ "onApplyShow",
1589
+ "onApplyHide"
1590
+ ]);
1591
+ }
1592
+ var xt = /* @__PURE__ */ Y(_t, [["render", bt]]), St = "v-popper--has-tooltip";
1593
+ function Ct(e, t) {
1594
+ let n = e.placement;
1595
+ if (!n && t) for (let e of Fe) t[e] && (n = e);
1596
+ return n ||= L(e.theme || "tooltip", "placement"), n;
1597
+ }
1598
+ function wt(e, t, n) {
1599
+ let r, i = typeof t;
1600
+ return r = i === "string" ? { content: t } : t && i === "object" ? t : { content: !1 }, r.placement = Ct(r, n), r.targetNodes = () => [e], r.referenceNode = () => e, r;
1601
+ }
1602
+ var Tt, Q, Et = 0;
1603
+ function Dt() {
1604
+ if (Tt) return;
1605
+ Q = h([]), Tt = ee({
1606
+ name: "VTooltipDirectiveApp",
1607
+ setup() {
1608
+ return { directives: Q };
1609
+ },
1610
+ render() {
1611
+ return this.directives.map((e) => o(xt, {
1612
+ ...e.options,
1613
+ shown: e.shown || e.options.shown,
1614
+ key: e.id
1615
+ }));
1616
+ },
1617
+ devtools: { hide: !0 }
1618
+ });
1619
+ let e = document.createElement("div");
1620
+ document.body.appendChild(e), Tt.mount(e);
1621
+ }
1622
+ function Ot(e, t, n) {
1623
+ Dt();
1624
+ let r = h(wt(e, t, n)), i = h(!1), a = {
1625
+ id: Et++,
1626
+ options: r,
1627
+ shown: i
1628
+ };
1629
+ return Q.value.push(a), e.classList && e.classList.add(St), e.$_popper = {
1630
+ options: r,
1631
+ item: a,
1632
+ show() {
1633
+ i.value = !0;
1634
+ },
1635
+ hide() {
1636
+ i.value = !1;
1637
+ }
1638
+ };
1639
+ }
1640
+ function kt(e) {
1641
+ if (e.$_popper) {
1642
+ let t = Q.value.indexOf(e.$_popper.item);
1643
+ t !== -1 && Q.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
1644
+ }
1645
+ e.classList && e.classList.remove(St);
1646
+ }
1647
+ function At(e, { value: t, modifiers: n }) {
1648
+ let r = wt(e, t, n);
1649
+ if (!r.content || L(r.theme || "tooltip", "disabled")) kt(e);
1650
+ else {
1651
+ let i;
1652
+ e.$_popper ? (i = e.$_popper, i.options.value = r) : i = Ot(e, t, n), typeof t.shown < "u" && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? i.show() : i.hide());
1653
+ }
1654
+ }
1655
+ var jt = {
1656
+ beforeMount: At,
1657
+ updated: At,
1658
+ beforeUnmount(e) {
1659
+ kt(e);
1660
+ }
1661
+ };
1662
+ function Mt(e) {
1663
+ e.addEventListener("mousedown", $), e.addEventListener("click", $), e.addEventListener("touchstart", Pt, R ? { passive: !0 } : !1);
1664
+ }
1665
+ function Nt(e) {
1666
+ e.removeEventListener("mousedown", $), e.removeEventListener("click", $), e.removeEventListener("touchstart", Pt), e.removeEventListener("touchend", Ft), e.removeEventListener("touchcancel", It);
1667
+ }
1668
+ function $(e) {
1669
+ let t = e.currentTarget;
1670
+ e.closePopover = !t.$_vclosepopover_touch, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
1671
+ }
1672
+ function Pt(e) {
1673
+ if (e.changedTouches.length === 1) {
1674
+ let t = e.currentTarget;
1675
+ t.$_vclosepopover_touch = !0, t.$_vclosepopover_touchPoint = e.changedTouches[0], t.addEventListener("touchend", Ft), t.addEventListener("touchcancel", It);
1676
+ }
1677
+ }
1678
+ function Ft(e) {
1679
+ let t = e.currentTarget;
1680
+ if (t.$_vclosepopover_touch = !1, e.changedTouches.length === 1) {
1681
+ let n = e.changedTouches[0], r = t.$_vclosepopover_touchPoint;
1682
+ e.closePopover = Math.abs(n.screenY - r.screenY) < 20 && Math.abs(n.screenX - r.screenX) < 20, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
1683
+ }
1684
+ }
1685
+ function It(e) {
1686
+ let t = e.currentTarget;
1687
+ t.$_vclosepopover_touch = !1;
1688
+ }
1689
+ var Lt = {
1690
+ beforeMount(e, { value: t, modifiers: n }) {
1691
+ e.$_closePopoverModifiers = n, (typeof t > "u" || t) && Mt(e);
1692
+ },
1693
+ updated(e, { value: t, oldValue: n, modifiers: r }) {
1694
+ e.$_closePopoverModifiers = r, t !== n && (typeof t > "u" || t ? Mt(e) : Nt(e));
1695
+ },
1696
+ beforeUnmount(e) {
1697
+ Nt(e);
1698
+ }
1699
+ };
1700
+ function Rt(e, t = {}) {
1701
+ e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, je(I, t), e.directive("tooltip", jt), e.directive("close-popper", Lt), e.component("VTooltip", gt), e.component("VDropdown", mt), e.component("VMenu", ht));
1702
+ }
1703
+ var zt = {
1704
+ version: "5.2.2",
1705
+ install: Rt,
1706
+ options: I
1707
+ };
1708
+ //#endregion
1709
+ export { zt as t };