@konnectio/core 4.4.9 → 4.5.0

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