@konnectio/core 4.11.2 → 4.11.4

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