@useinsider/ab-components 0.0.30 → 0.0.32
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.
- package/dist/ab-components.cjs.js +1 -1
- package/dist/ab-components.cjs.js.map +1 -1
- package/dist/ab-components.css +1 -1
- package/dist/ab-components.es.js +754 -667
- package/dist/ab-components.es.js.map +1 -1
- package/dist/ab-components.iife.js +1 -1
- package/dist/ab-components.iife.js.map +1 -1
- package/dist/ab-components.umd.js +1 -1
- package/dist/ab-components.umd.js.map +1 -1
- package/dist/index.d.ts +38 -0
- package/package.json +1 -1
package/dist/ab-components.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
button__size_default:
|
|
4
|
-
button__size_small:
|
|
5
|
-
button:
|
|
6
|
-
button__label:
|
|
1
|
+
import { defineComponent as Y, computed as B, createElementBlock as C, openBlock as y, normalizeClass as m, unref as f, createBlock as we, createCommentVNode as L, toDisplayString as P, ref as E, reactive as Ke, onMounted as Ae, watch as ne, Fragment as ve, createElementVNode as S, withDirectives as Ve, withModifiers as xt, normalizeStyle as Oe, vModelText as kt, renderList as st, vShow as lt, createVNode as $e, shallowRef as Ct, getCurrentScope as Tt, onScopeDispose as $t, shallowReadonly as ue, onBeforeMount as Ot, nextTick as it, onBeforeUnmount as at, Teleport as St, renderSlot as Pe, Transition as Rt, withCtx as Et } from "vue";
|
|
2
|
+
const At = "_button__size_default_vssfh_1", Lt = "_button__size_small_vssfh_8", It = "_button_vssfh_1", Mt = "_button__label_vssfh_60", zt = "_button__solid_vssfh_72", Bt = "_fill_vssfh_992", ce = {
|
|
3
|
+
button__size_default: At,
|
|
4
|
+
button__size_small: Lt,
|
|
5
|
+
button: It,
|
|
6
|
+
button__label: Mt,
|
|
7
7
|
"button__solid-primary": "_button__solid-primary_vssfh_72",
|
|
8
8
|
"no-hover-effect": "_no-hover-effect_vssfh_79",
|
|
9
9
|
"button--selected": "_button--selected_vssfh_101",
|
|
@@ -31,9 +31,9 @@ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8",
|
|
|
31
31
|
"button__outline-danger": "_button__outline-danger_vssfh_867",
|
|
32
32
|
"button__outline-warning": "_button__outline-warning_vssfh_904",
|
|
33
33
|
"button__outline-smart": "_button__outline-smart_vssfh_941",
|
|
34
|
-
button__solid:
|
|
35
|
-
fill:
|
|
36
|
-
},
|
|
34
|
+
button__solid: zt,
|
|
35
|
+
fill: Bt
|
|
36
|
+
}, Vt = ["disabled"], Qe = /* @__PURE__ */ Y({
|
|
37
37
|
__name: "Button",
|
|
38
38
|
props: {
|
|
39
39
|
variant: {},
|
|
@@ -51,33 +51,33 @@ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8",
|
|
|
51
51
|
setup(e, { emit: t }) {
|
|
52
52
|
const o = e, n = t, s = (i) => {
|
|
53
53
|
o.disabled || n("click", i);
|
|
54
|
-
}, l =
|
|
55
|
-
return (i, r) => (y(),
|
|
56
|
-
class:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
{ [
|
|
54
|
+
}, l = B(() => o.loadingStatus ? "loading-circle" : o.successStatus ? "line-check-natural" : o.leftIconName);
|
|
55
|
+
return (i, r) => (y(), C("button", {
|
|
56
|
+
class: m([
|
|
57
|
+
f(ce).button,
|
|
58
|
+
f(ce)[`button__${i.variant}`],
|
|
59
|
+
f(ce)[`button__${i.variant}-${i.color}`],
|
|
60
|
+
f(ce)[`button__size_${i.size}`],
|
|
61
|
+
{ [f(ce).fill]: i.fill }
|
|
62
62
|
]),
|
|
63
63
|
disabled: o.disabled,
|
|
64
64
|
onClick: s
|
|
65
65
|
}, [
|
|
66
|
-
l.value ? (y(),
|
|
66
|
+
l.value ? (y(), we(f(be), {
|
|
67
67
|
key: 0,
|
|
68
68
|
name: l.value
|
|
69
69
|
}, null, 8, ["name"])) : L("", !0),
|
|
70
|
-
i.label ? (y(),
|
|
70
|
+
i.label ? (y(), C("span", {
|
|
71
71
|
key: 1,
|
|
72
|
-
class:
|
|
72
|
+
class: m(f(ce).button__label)
|
|
73
73
|
}, P(i.label), 3)) : L("", !0),
|
|
74
|
-
i.rightIconName ? (y(),
|
|
74
|
+
i.rightIconName ? (y(), we(f(be), {
|
|
75
75
|
key: 2,
|
|
76
76
|
name: i.rightIconName
|
|
77
77
|
}, null, 8, ["name"])) : L("", !0)
|
|
78
|
-
], 10,
|
|
78
|
+
], 10, Vt));
|
|
79
79
|
}
|
|
80
|
-
}),
|
|
80
|
+
}), Pt = {
|
|
81
81
|
mounted(e, t) {
|
|
82
82
|
e.clickOutsideEvent = (o) => {
|
|
83
83
|
const n = (t.value.exclude || []).filter((l) => l.value).map((l) => l.value);
|
|
@@ -87,43 +87,43 @@ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8",
|
|
|
87
87
|
unmounted(e) {
|
|
88
88
|
e.clickOutsideEvent && document.removeEventListener("click", e.clickOutsideEvent);
|
|
89
89
|
}
|
|
90
|
-
},
|
|
90
|
+
}, Dt = (e, t) => {
|
|
91
91
|
var n;
|
|
92
92
|
let o = 0;
|
|
93
93
|
for (const s of e)
|
|
94
94
|
if (s.toLowerCase() === ((n = t[o]) == null ? void 0 : n.toLowerCase()) && o++, o === t.length)
|
|
95
95
|
return !0;
|
|
96
96
|
return !1;
|
|
97
|
-
},
|
|
97
|
+
}, Ft = (e, t, o) => {
|
|
98
98
|
if (!o.trim())
|
|
99
99
|
return e;
|
|
100
100
|
const n = o.toLowerCase();
|
|
101
101
|
return e.filter((s) => {
|
|
102
102
|
const l = String(s[t]);
|
|
103
|
-
return
|
|
103
|
+
return Dt(l.toLowerCase(), n);
|
|
104
104
|
}).sort((s, l) => {
|
|
105
105
|
const i = String(s[t]).toLowerCase(), r = String(l[t]).toLowerCase();
|
|
106
106
|
return i === n ? -1 : r === n ? 1 : i.startsWith(n) && !r.startsWith(n) ? -1 : !i.startsWith(n) && r.startsWith(n) ? 1 : i.length - r.length;
|
|
107
107
|
});
|
|
108
|
-
},
|
|
109
|
-
menu:
|
|
110
|
-
dropdown:
|
|
111
|
-
dropdown__valueContent:
|
|
108
|
+
}, Ht = "_menu_1sfnf_1", Nt = "_dropdown_1sfnf_1", Wt = "_dropdown__valueContent_1sfnf_50", jt = "_dropdown__label_1sfnf_61", Gt = "_dropdown__value_1sfnf_50", Yt = "_dropdown__placeholder_1sfnf_69", Ut = "_dropdown__arrowIcon_1sfnf_77", Xt = "_menu__searchContainer_1sfnf_92", qt = "_menu__searchInputWrap_1sfnf_96", Kt = "_menu__searchInput_1sfnf_96", Qt = "_menu__errorMessage_1sfnf_115", Zt = "_menu__addButton_1sfnf_122", Jt = "_menu__itemContainer_1sfnf_130", en = "_menu__item_1sfnf_130", z = {
|
|
109
|
+
menu: Ht,
|
|
110
|
+
dropdown: Nt,
|
|
111
|
+
dropdown__valueContent: Wt,
|
|
112
112
|
"dropdown__valueContent--open": "_dropdown__valueContent--open_1sfnf_58",
|
|
113
|
-
dropdown__label:
|
|
114
|
-
dropdown__value:
|
|
115
|
-
dropdown__placeholder:
|
|
116
|
-
dropdown__arrowIcon:
|
|
117
|
-
menu__searchContainer:
|
|
118
|
-
menu__searchInputWrap:
|
|
119
|
-
menu__searchInput:
|
|
113
|
+
dropdown__label: jt,
|
|
114
|
+
dropdown__value: Gt,
|
|
115
|
+
dropdown__placeholder: Yt,
|
|
116
|
+
dropdown__arrowIcon: Ut,
|
|
117
|
+
menu__searchContainer: Xt,
|
|
118
|
+
menu__searchInputWrap: qt,
|
|
119
|
+
menu__searchInput: Kt,
|
|
120
120
|
"menu__searchInput--error": "_menu__searchInput--error_1sfnf_112",
|
|
121
|
-
menu__errorMessage:
|
|
122
|
-
menu__addButton:
|
|
123
|
-
menu__itemContainer:
|
|
124
|
-
menu__item:
|
|
121
|
+
menu__errorMessage: Qt,
|
|
122
|
+
menu__addButton: Zt,
|
|
123
|
+
menu__itemContainer: Jt,
|
|
124
|
+
menu__item: en,
|
|
125
125
|
"menu__item--active": "_menu__item--active_1sfnf_169"
|
|
126
|
-
},
|
|
126
|
+
}, tn = ["for"], nn = ["placeholder"], on = ["onClick"], er = /* @__PURE__ */ Y({
|
|
127
127
|
__name: "DropdownMenu",
|
|
128
128
|
props: {
|
|
129
129
|
id: {},
|
|
@@ -140,172 +140,172 @@ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8",
|
|
|
140
140
|
},
|
|
141
141
|
emits: ["update:modelValue", "add-error", "item-added", "select-item"],
|
|
142
142
|
setup(e, { emit: t }) {
|
|
143
|
-
const o =
|
|
143
|
+
const o = Pt, n = e, s = t, l = E(), i = E(), r = E(!1), a = E(null), u = E(""), c = E(null), _ = E({ x: 0, y: 0, width: 0, shouldOpenUp: !1, height: n.menuHeight }), p = Ke([...n.items]), d = Ke([...n.items]), h = () => {
|
|
144
144
|
if (!l.value)
|
|
145
145
|
return;
|
|
146
|
-
const { offsetTop: w, offsetLeft:
|
|
146
|
+
const { offsetTop: w, offsetLeft: O, offsetWidth: A } = l.value, D = window.innerHeight, X = w + l.value.offsetHeight, I = X + n.menuHeight > D;
|
|
147
147
|
_.value = {
|
|
148
|
-
x:
|
|
149
|
-
y:
|
|
150
|
-
width:
|
|
151
|
-
shouldOpenUp:
|
|
148
|
+
x: O + window.scrollX,
|
|
149
|
+
y: I ? w + window.scrollY : X + window.scrollY,
|
|
150
|
+
width: A,
|
|
151
|
+
shouldOpenUp: I,
|
|
152
152
|
height: n.menuHeight
|
|
153
153
|
};
|
|
154
154
|
}, v = () => {
|
|
155
|
-
|
|
155
|
+
h(), r.value = !r.value;
|
|
156
156
|
}, b = () => {
|
|
157
|
-
c.value = null, u.value = "", p.splice(0, p.length, ...
|
|
157
|
+
c.value = null, u.value = "", p.splice(0, p.length, ...d);
|
|
158
158
|
}, g = () => {
|
|
159
159
|
r.value = !1, b();
|
|
160
160
|
}, k = (w) => {
|
|
161
161
|
a.value = w, s("select-item", w), s("update:modelValue", w.value), g();
|
|
162
|
-
},
|
|
163
|
-
const w = u.value.trim(),
|
|
164
|
-
if (
|
|
165
|
-
c.value =
|
|
162
|
+
}, T = () => {
|
|
163
|
+
const w = u.value.trim(), O = n.validateAddItem(w, d);
|
|
164
|
+
if (O) {
|
|
165
|
+
c.value = O, s("add-error", O);
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
|
-
const
|
|
168
|
+
const A = {
|
|
169
169
|
text: w,
|
|
170
170
|
value: w
|
|
171
171
|
};
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
const w =
|
|
172
|
+
d.push(A), b(), s("item-added", A);
|
|
173
|
+
}, R = () => {
|
|
174
|
+
const w = Ft(d, "text", u.value);
|
|
175
175
|
p.splice(0, p.length, ...w);
|
|
176
176
|
}, x = () => {
|
|
177
177
|
c.value = "";
|
|
178
|
-
},
|
|
178
|
+
}, M = B(() => ({
|
|
179
179
|
top: _.value.shouldOpenUp ? `${_.value.y - 10}px` : `${_.value.y}px`,
|
|
180
180
|
left: `${_.value.x}px`,
|
|
181
181
|
width: `${_.value.width}px`,
|
|
182
182
|
height: `${n.menuHeight}px`
|
|
183
183
|
}));
|
|
184
|
-
|
|
185
|
-
if (
|
|
186
|
-
const w =
|
|
184
|
+
Ae(() => {
|
|
185
|
+
if (h(), n.modelValue) {
|
|
186
|
+
const w = d.find((O) => O.value === n.modelValue);
|
|
187
187
|
w && (a.value = w);
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
|
-
const
|
|
191
|
-
|
|
192
|
-
var
|
|
193
|
-
if (((
|
|
194
|
-
const
|
|
195
|
-
|
|
190
|
+
const $ = B(() => a.value ? a.value.text : "");
|
|
191
|
+
ne(() => n.modelValue, (w) => {
|
|
192
|
+
var O;
|
|
193
|
+
if (((O = a.value) == null ? void 0 : O.value) !== w) {
|
|
194
|
+
const A = d.find((D) => D.value === w);
|
|
195
|
+
A && (a.value = A);
|
|
196
196
|
}
|
|
197
|
-
}),
|
|
197
|
+
}), ne(
|
|
198
198
|
() => n.items,
|
|
199
199
|
(w) => {
|
|
200
|
-
|
|
200
|
+
d.splice(0, d.length, ...w), p.splice(0, p.length, ...w);
|
|
201
201
|
},
|
|
202
202
|
{ deep: !0 }
|
|
203
203
|
);
|
|
204
|
-
const
|
|
205
|
-
return (w,
|
|
206
|
-
|
|
204
|
+
const V = E({ handler: g, exclude: [l, i] });
|
|
205
|
+
return (w, O) => (y(), C(ve, null, [
|
|
206
|
+
S("div", {
|
|
207
207
|
ref_key: "dropdownRef",
|
|
208
208
|
ref: l,
|
|
209
|
-
class:
|
|
209
|
+
class: m(f(z).dropdown)
|
|
210
210
|
}, [
|
|
211
|
-
w.label ? (y(),
|
|
211
|
+
w.label ? (y(), C("label", {
|
|
212
212
|
key: 0,
|
|
213
|
-
class:
|
|
213
|
+
class: m(f(z).dropdown__label),
|
|
214
214
|
for: w.id
|
|
215
|
-
}, P(w.label), 11,
|
|
216
|
-
|
|
217
|
-
class:
|
|
218
|
-
|
|
215
|
+
}, P(w.label), 11, tn)) : L("", !0),
|
|
216
|
+
S("button", {
|
|
217
|
+
class: m([
|
|
218
|
+
f(z).dropdown__valueContent,
|
|
219
219
|
{
|
|
220
|
-
[
|
|
220
|
+
[f(z)["dropdown__valueContent--open"]]: r.value
|
|
221
221
|
}
|
|
222
222
|
]),
|
|
223
223
|
onClick: v
|
|
224
224
|
}, [
|
|
225
|
-
|
|
226
|
-
class:
|
|
227
|
-
}, P(
|
|
228
|
-
w.placeholder &&
|
|
225
|
+
S("span", {
|
|
226
|
+
class: m(f(z).dropdown__value)
|
|
227
|
+
}, P($.value), 3),
|
|
228
|
+
w.placeholder && !$.value ? (y(), C("span", {
|
|
229
229
|
key: 0,
|
|
230
|
-
class:
|
|
230
|
+
class: m(f(z).dropdown__placeholder)
|
|
231
231
|
}, P(w.placeholder), 3)) : L("", !0),
|
|
232
|
-
(y(),
|
|
232
|
+
(y(), C("svg", {
|
|
233
233
|
fill: "none",
|
|
234
234
|
height: "17",
|
|
235
235
|
viewBox: "0 0 16 17",
|
|
236
236
|
width: "16",
|
|
237
237
|
xmlns: "http://www.w3.org/2000/svg",
|
|
238
|
-
class:
|
|
239
|
-
},
|
|
240
|
-
|
|
238
|
+
class: m(f(z).dropdown__arrowIcon)
|
|
239
|
+
}, O[2] || (O[2] = [
|
|
240
|
+
S("path", {
|
|
241
241
|
d: "M8 11.2021L4.5359 6.70215L11.4641 6.70215L8 11.2021Z",
|
|
242
242
|
fill: "#91949F"
|
|
243
243
|
}, null, -1)
|
|
244
244
|
]), 2))
|
|
245
245
|
], 2)
|
|
246
246
|
], 2),
|
|
247
|
-
|
|
247
|
+
Ve((y(), C("div", {
|
|
248
248
|
ref_key: "menuRef",
|
|
249
249
|
ref: i,
|
|
250
|
-
class:
|
|
251
|
-
style:
|
|
252
|
-
onClick:
|
|
250
|
+
class: m(f(z).menu),
|
|
251
|
+
style: Oe(M.value),
|
|
252
|
+
onClick: O[1] || (O[1] = xt(() => {
|
|
253
253
|
}, ["prevent"]))
|
|
254
254
|
}, [
|
|
255
|
-
n.searchable ? (y(),
|
|
255
|
+
n.searchable ? (y(), C("div", {
|
|
256
256
|
key: 0,
|
|
257
|
-
class:
|
|
257
|
+
class: m(f(z).menu__searchContainer)
|
|
258
258
|
}, [
|
|
259
|
-
|
|
260
|
-
class:
|
|
259
|
+
S("div", {
|
|
260
|
+
class: m(f(z).menu__searchInputWrap)
|
|
261
261
|
}, [
|
|
262
|
-
|
|
262
|
+
Ve(S("input", {
|
|
263
263
|
type: "text",
|
|
264
|
-
class:
|
|
265
|
-
|
|
264
|
+
class: m([
|
|
265
|
+
f(z).menu__searchInput,
|
|
266
266
|
{
|
|
267
|
-
[
|
|
267
|
+
[f(z)["menu__searchInput--error"]]: c.value
|
|
268
268
|
}
|
|
269
269
|
]),
|
|
270
270
|
placeholder: w.searchPlaceHolder,
|
|
271
|
-
"onUpdate:modelValue":
|
|
271
|
+
"onUpdate:modelValue": O[0] || (O[0] = (A) => u.value = A),
|
|
272
272
|
onFocus: x,
|
|
273
|
-
onInput:
|
|
274
|
-
}, null, 42,
|
|
275
|
-
[
|
|
273
|
+
onInput: R
|
|
274
|
+
}, null, 42, nn), [
|
|
275
|
+
[kt, u.value]
|
|
276
276
|
]),
|
|
277
|
-
c.value ? (y(),
|
|
277
|
+
c.value ? (y(), C("p", {
|
|
278
278
|
key: 0,
|
|
279
|
-
class:
|
|
279
|
+
class: m(f(z).menu__errorMessage)
|
|
280
280
|
}, P(c.value), 3)) : L("", !0)
|
|
281
281
|
], 2),
|
|
282
|
-
n.addable ? (y(),
|
|
282
|
+
n.addable ? (y(), C("button", {
|
|
283
283
|
key: 0,
|
|
284
|
-
class:
|
|
285
|
-
onClick:
|
|
284
|
+
class: m(f(z).menu__addButton),
|
|
285
|
+
onClick: T
|
|
286
286
|
}, P(w.addButtonText), 3)) : L("", !0)
|
|
287
287
|
], 2)) : L("", !0),
|
|
288
|
-
|
|
289
|
-
class:
|
|
288
|
+
S("ul", {
|
|
289
|
+
class: m(f(z).menu__itemContainer)
|
|
290
290
|
}, [
|
|
291
|
-
(y(!0),
|
|
292
|
-
key: `${
|
|
293
|
-
class:
|
|
294
|
-
|
|
291
|
+
(y(!0), C(ve, null, st(p, (A, D) => (y(), C("li", {
|
|
292
|
+
key: `${A.value}-${D}`,
|
|
293
|
+
class: m([
|
|
294
|
+
f(z).menu__item,
|
|
295
295
|
{
|
|
296
|
-
[
|
|
296
|
+
[f(z)["menu__item--active"]]: a.value && A.value === a.value.value
|
|
297
297
|
}
|
|
298
298
|
]),
|
|
299
|
-
onClick: (
|
|
300
|
-
}, P(
|
|
299
|
+
onClick: (X) => k(A)
|
|
300
|
+
}, P(A.text), 11, on))), 128))
|
|
301
301
|
], 2)
|
|
302
302
|
], 6)), [
|
|
303
|
-
[
|
|
304
|
-
[
|
|
303
|
+
[lt, r.value],
|
|
304
|
+
[f(o), V.value]
|
|
305
305
|
])
|
|
306
306
|
], 64));
|
|
307
307
|
}
|
|
308
|
-
}),
|
|
308
|
+
}), rn = ["fill", "height", "width"], sn = ["xlink:href"], ln = /* @__PURE__ */ Y({
|
|
309
309
|
__name: "Icon",
|
|
310
310
|
props: {
|
|
311
311
|
name: {},
|
|
@@ -313,38 +313,38 @@ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8",
|
|
|
313
313
|
color: {}
|
|
314
314
|
},
|
|
315
315
|
setup(e) {
|
|
316
|
-
const t = e, o =
|
|
317
|
-
return (n, s) => (y(),
|
|
316
|
+
const t = e, o = B(() => typeof t.size == "number" ? `${t.size}px` : t.size);
|
|
317
|
+
return (n, s) => (y(), C("svg", {
|
|
318
318
|
class: "icon",
|
|
319
319
|
fill: n.color || "currentColor",
|
|
320
320
|
height: o.value,
|
|
321
321
|
width: o.value
|
|
322
322
|
}, [
|
|
323
|
-
|
|
323
|
+
S("use", {
|
|
324
324
|
"xlink:href": `#${n.name}`
|
|
325
|
-
}, null, 8,
|
|
326
|
-
], 8,
|
|
325
|
+
}, null, 8, sn)
|
|
326
|
+
], 8, rn));
|
|
327
327
|
}
|
|
328
|
-
}),
|
|
328
|
+
}), ut = (e, t) => {
|
|
329
329
|
const o = e.__vccOpts || e;
|
|
330
330
|
for (const [n, s] of t)
|
|
331
331
|
o[n] = s;
|
|
332
332
|
return o;
|
|
333
|
-
},
|
|
334
|
-
container:
|
|
335
|
-
container__text:
|
|
336
|
-
container__default:
|
|
337
|
-
container__warning:
|
|
338
|
-
container__alert:
|
|
339
|
-
container__success:
|
|
340
|
-
},
|
|
333
|
+
}, be = /* @__PURE__ */ ut(ln, [["__scopeId", "data-v-f04c8857"]]), an = "_container_sgker_1", un = "_container__text_sgker_52", cn = "_container__default_sgker_56", fn = "_container__warning_sgker_64", dn = "_container__alert_sgker_72", _n = "_container__success_sgker_80", ze = {
|
|
334
|
+
container: an,
|
|
335
|
+
container__text: un,
|
|
336
|
+
container__default: cn,
|
|
337
|
+
container__warning: fn,
|
|
338
|
+
container__alert: dn,
|
|
339
|
+
container__success: _n
|
|
340
|
+
}, tr = /* @__PURE__ */ Y({
|
|
341
341
|
__name: "OnPageMessage",
|
|
342
342
|
props: {
|
|
343
343
|
variant: { default: "default" },
|
|
344
344
|
text: {}
|
|
345
345
|
},
|
|
346
346
|
setup(e) {
|
|
347
|
-
const t = e, o =
|
|
347
|
+
const t = e, o = B(() => {
|
|
348
348
|
switch (t.variant) {
|
|
349
349
|
case "alert":
|
|
350
350
|
return "icon-info-box-error";
|
|
@@ -356,38 +356,38 @@ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8",
|
|
|
356
356
|
return "filled-info-circle";
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
|
-
return (n, s) => (y(),
|
|
360
|
-
class:
|
|
361
|
-
|
|
362
|
-
|
|
359
|
+
return (n, s) => (y(), C("div", {
|
|
360
|
+
class: m([
|
|
361
|
+
f(ze).container,
|
|
362
|
+
f(ze)[`container__${n.variant}`]
|
|
363
363
|
])
|
|
364
364
|
}, [
|
|
365
|
-
|
|
365
|
+
$e(be, {
|
|
366
366
|
name: o.value,
|
|
367
367
|
size: 24
|
|
368
368
|
}, null, 8, ["name"]),
|
|
369
|
-
|
|
370
|
-
class:
|
|
369
|
+
S("span", {
|
|
370
|
+
class: m(f(ze).container__text)
|
|
371
371
|
}, P(n.text), 3)
|
|
372
372
|
], 2));
|
|
373
373
|
}
|
|
374
|
-
}),
|
|
375
|
-
button__size_default:
|
|
376
|
-
button__size_small:
|
|
377
|
-
button:
|
|
378
|
-
button__label:
|
|
374
|
+
}), pn = "_button__size_default_1663t_1", mn = "_button__size_small_1663t_8", hn = "_button_1663t_1", gn = "_button__label_1663t_58", wn = "_button__solid_1663t_197", vn = "_segmentGroup_1663t_204", bn = "_fill_1663t_226", K = {
|
|
375
|
+
button__size_default: pn,
|
|
376
|
+
button__size_small: mn,
|
|
377
|
+
button: hn,
|
|
378
|
+
button__label: gn,
|
|
379
379
|
"button--primary": "_button--primary_1663t_75",
|
|
380
380
|
"button--selected": "_button--selected_1663t_85",
|
|
381
381
|
"button--secondary": "_button--secondary_1663t_98",
|
|
382
382
|
"button--danger": "_button--danger_1663t_121",
|
|
383
383
|
"button--warning": "_button--warning_1663t_144",
|
|
384
384
|
"button--smart": "_button--smart_1663t_167",
|
|
385
|
-
button__solid:
|
|
386
|
-
segmentGroup:
|
|
385
|
+
button__solid: wn,
|
|
386
|
+
segmentGroup: vn,
|
|
387
387
|
"segmentGroup--vertical": "_segmentGroup--vertical_1663t_207",
|
|
388
388
|
"segmentGroup--horizontal": "_segmentGroup--horizontal_1663t_216",
|
|
389
|
-
fill:
|
|
390
|
-
},
|
|
389
|
+
fill: bn
|
|
390
|
+
}, yn = ["disabled", "onClick"], nr = /* @__PURE__ */ Y({
|
|
391
391
|
__name: "SegmentButton",
|
|
392
392
|
props: {
|
|
393
393
|
color: {},
|
|
@@ -400,56 +400,56 @@ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8",
|
|
|
400
400
|
},
|
|
401
401
|
emits: ["update:modelValue", "click"],
|
|
402
402
|
setup(e, { emit: t }) {
|
|
403
|
-
const o = e, n = t, s =
|
|
403
|
+
const o = e, n = t, s = E(o.modelValue || ""), l = (r) => {
|
|
404
404
|
o.disabled || r.disabled || (s.value = r.value, n("update:modelValue", r.value), n("click", r.value));
|
|
405
405
|
};
|
|
406
|
-
|
|
406
|
+
ne(() => o.modelValue, (r) => {
|
|
407
407
|
s.value !== r && (s.value = r || "");
|
|
408
408
|
});
|
|
409
|
-
const i =
|
|
410
|
-
return
|
|
409
|
+
const i = E([...o.segments]);
|
|
410
|
+
return ne(() => o.segments, (r) => {
|
|
411
411
|
i.value = [...r], r.some((a) => a.value === s.value) || (s.value = "", n("update:modelValue", ""));
|
|
412
|
-
}, { deep: !0 }), (r, a) => (y(),
|
|
413
|
-
class:
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
{ [
|
|
412
|
+
}, { deep: !0 }), (r, a) => (y(), C("div", {
|
|
413
|
+
class: m([
|
|
414
|
+
f(K).segmentGroup,
|
|
415
|
+
f(K)[`segmentGroup--${r.align}`],
|
|
416
|
+
{ [f(K).fill]: r.fill }
|
|
417
417
|
])
|
|
418
418
|
}, [
|
|
419
|
-
(y(!0),
|
|
419
|
+
(y(!0), C(ve, null, st(i.value, (u, c) => (y(), C("button", {
|
|
420
420
|
key: `${u.value}-${c}`,
|
|
421
|
-
class:
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
421
|
+
class: m([
|
|
422
|
+
f(K).button,
|
|
423
|
+
f(K)[`button--${r.color}`],
|
|
424
|
+
f(K)[`button__size_${r.size}`],
|
|
425
|
+
f(K).fill,
|
|
426
426
|
{
|
|
427
|
-
[
|
|
427
|
+
[f(K)["button--selected"]]: u.value === s.value
|
|
428
428
|
}
|
|
429
429
|
]),
|
|
430
430
|
disabled: u.disabled || o.disabled,
|
|
431
431
|
onClick: (_) => l(u)
|
|
432
432
|
}, [
|
|
433
|
-
u.icon ? (y(),
|
|
433
|
+
u.icon ? (y(), we(f(be), {
|
|
434
434
|
key: 0,
|
|
435
435
|
name: u.icon
|
|
436
436
|
}, null, 8, ["name"])) : L("", !0),
|
|
437
|
-
u.label ? (y(),
|
|
437
|
+
u.label ? (y(), C("span", {
|
|
438
438
|
key: 1,
|
|
439
|
-
class:
|
|
439
|
+
class: m(f(K).button__label)
|
|
440
440
|
}, P(u.label), 3)) : L("", !0)
|
|
441
|
-
], 10,
|
|
441
|
+
], 10, yn))), 128))
|
|
442
442
|
], 2));
|
|
443
443
|
}
|
|
444
|
-
}),
|
|
445
|
-
wrapper__counter:
|
|
446
|
-
wrapper__errorMessage:
|
|
447
|
-
wrapper__label:
|
|
448
|
-
wrapper__field:
|
|
449
|
-
wrapper:
|
|
450
|
-
wrapper__bottom:
|
|
444
|
+
}), xn = "_wrapper__counter_rlffg_1", kn = "_wrapper__errorMessage_rlffg_1", Cn = "_wrapper__label_rlffg_1", Tn = "_wrapper__field_rlffg_1", $n = "_wrapper_rlffg_1", On = "_wrapper__bottom_rlffg_92", Q = {
|
|
445
|
+
wrapper__counter: xn,
|
|
446
|
+
wrapper__errorMessage: kn,
|
|
447
|
+
wrapper__label: Cn,
|
|
448
|
+
wrapper__field: Tn,
|
|
449
|
+
wrapper: $n,
|
|
450
|
+
wrapper__bottom: On,
|
|
451
451
|
"wrapper--error": "_wrapper--error_rlffg_105"
|
|
452
|
-
},
|
|
452
|
+
}, Sn = ["for"], Rn = ["id", "maxlength", "name", "placeholder", "value"], En = ["id", "maxlength", "name", "placeholder", "value"], or = /* @__PURE__ */ Y({
|
|
453
453
|
__name: "TextInput",
|
|
454
454
|
props: {
|
|
455
455
|
id: {},
|
|
@@ -466,7 +466,7 @@ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8",
|
|
|
466
466
|
},
|
|
467
467
|
emits: ["update:modelValue", "input", "change", "paste", "focus", "blur"],
|
|
468
468
|
setup(e, { emit: t }) {
|
|
469
|
-
const o = e, n = t, s =
|
|
469
|
+
const o = e, n = t, s = E(null), l = () => {
|
|
470
470
|
if (o.autoGrow && s.value) {
|
|
471
471
|
s.value.style.height = "";
|
|
472
472
|
const r = Math.min(s.value.scrollHeight, o.maxHeight || s.value.scrollHeight);
|
|
@@ -476,47 +476,47 @@ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8",
|
|
|
476
476
|
const a = r.target;
|
|
477
477
|
n("input", r), n("update:modelValue", a.value), l();
|
|
478
478
|
};
|
|
479
|
-
return
|
|
479
|
+
return Ae(() => {
|
|
480
480
|
l();
|
|
481
481
|
}), (r, a) => {
|
|
482
482
|
var u;
|
|
483
|
-
return y(),
|
|
484
|
-
class:
|
|
483
|
+
return y(), C("div", {
|
|
484
|
+
class: m(f(Q).wrapper)
|
|
485
485
|
}, [
|
|
486
|
-
r.label ? (y(),
|
|
486
|
+
r.label ? (y(), C("label", {
|
|
487
487
|
key: 0,
|
|
488
|
-
class:
|
|
488
|
+
class: m(f(Q).wrapper__label),
|
|
489
489
|
for: r.id
|
|
490
|
-
}, P(r.label), 11,
|
|
491
|
-
r.multiline ? (y(),
|
|
490
|
+
}, P(r.label), 11, Sn)) : L("", !0),
|
|
491
|
+
r.multiline ? (y(), C("textarea", {
|
|
492
492
|
key: 1,
|
|
493
493
|
id: r.id,
|
|
494
494
|
ref_key: "textareaRef",
|
|
495
495
|
ref: s,
|
|
496
|
-
class:
|
|
497
|
-
|
|
496
|
+
class: m([
|
|
497
|
+
f(Q).wrapper__field,
|
|
498
498
|
{
|
|
499
|
-
[
|
|
499
|
+
[f(Q)["wrapper--error"]]: r.error
|
|
500
500
|
}
|
|
501
501
|
]),
|
|
502
502
|
maxlength: r.maxLength,
|
|
503
503
|
name: r.name,
|
|
504
504
|
placeholder: r.placeholder,
|
|
505
|
-
style:
|
|
505
|
+
style: Oe(r.maxHeight ? { maxHeight: `${r.maxHeight}px` } : void 0),
|
|
506
506
|
value: r.modelValue,
|
|
507
507
|
onBlur: a[0] || (a[0] = (c) => n("blur", c)),
|
|
508
508
|
onChange: a[1] || (a[1] = (c) => r.$emit("change", c)),
|
|
509
509
|
onFocus: a[2] || (a[2] = (c) => n("focus", c)),
|
|
510
510
|
onInput: i,
|
|
511
511
|
onPaste: a[3] || (a[3] = (c) => n("paste", c))
|
|
512
|
-
}, null, 46,
|
|
512
|
+
}, null, 46, Rn)) : (y(), C("input", {
|
|
513
513
|
key: 2,
|
|
514
514
|
id: r.id,
|
|
515
515
|
type: "text",
|
|
516
|
-
class:
|
|
517
|
-
|
|
516
|
+
class: m([
|
|
517
|
+
f(Q).wrapper__field,
|
|
518
518
|
{
|
|
519
|
-
[
|
|
519
|
+
[f(Q)["wrapper--error"]]: r.error
|
|
520
520
|
}
|
|
521
521
|
]),
|
|
522
522
|
maxlength: r.maxLength,
|
|
@@ -528,33 +528,33 @@ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8",
|
|
|
528
528
|
onFocus: a[6] || (a[6] = (c) => n("focus", c)),
|
|
529
529
|
onInput: i,
|
|
530
530
|
onPaste: a[7] || (a[7] = (c) => n("paste", c))
|
|
531
|
-
}, null, 42,
|
|
532
|
-
|
|
533
|
-
class:
|
|
531
|
+
}, null, 42, En)),
|
|
532
|
+
S("div", {
|
|
533
|
+
class: m(f(Q).wrapper__bottom)
|
|
534
534
|
}, [
|
|
535
|
-
r.error ? (y(),
|
|
535
|
+
r.error ? (y(), C("div", {
|
|
536
536
|
key: 0,
|
|
537
|
-
class:
|
|
537
|
+
class: m(f(Q).wrapper__errorMessage)
|
|
538
538
|
}, P(r.error), 3)) : L("", !0),
|
|
539
|
-
r.counter ? (y(),
|
|
539
|
+
r.counter ? (y(), C("div", {
|
|
540
540
|
key: 1,
|
|
541
|
-
class:
|
|
541
|
+
class: m(f(Q).wrapper__counter)
|
|
542
542
|
}, P(((u = r.modelValue) == null ? void 0 : u.toString().length) || 0), 3)) : L("", !0)
|
|
543
543
|
], 2)
|
|
544
544
|
], 2);
|
|
545
545
|
};
|
|
546
546
|
}
|
|
547
|
-
}),
|
|
548
|
-
wrapper__counter:
|
|
549
|
-
wrapper__errorMessage:
|
|
550
|
-
wrapper__label:
|
|
551
|
-
wrapper__field:
|
|
552
|
-
wrapper:
|
|
553
|
-
wrapper__size_default:
|
|
554
|
-
wrapper__size_small:
|
|
555
|
-
wrapper__bottom:
|
|
547
|
+
}), An = "_wrapper__counter_86wjx_1", Ln = "_wrapper__errorMessage_86wjx_1", In = "_wrapper__label_86wjx_1", Mn = "_wrapper__field_86wjx_8", zn = "_wrapper_86wjx_1", Bn = "_wrapper__size_default_86wjx_52", Vn = "_wrapper__size_small_86wjx_55", Pn = "_wrapper__bottom_86wjx_92", te = {
|
|
548
|
+
wrapper__counter: An,
|
|
549
|
+
wrapper__errorMessage: Ln,
|
|
550
|
+
wrapper__label: In,
|
|
551
|
+
wrapper__field: Mn,
|
|
552
|
+
wrapper: zn,
|
|
553
|
+
wrapper__size_default: Bn,
|
|
554
|
+
wrapper__size_small: Vn,
|
|
555
|
+
wrapper__bottom: Pn,
|
|
556
556
|
"wrapper--error": "_wrapper--error_86wjx_105"
|
|
557
|
-
},
|
|
557
|
+
}, Dn = ["for"], Fn = ["id", "max", "maxlength", "min", "name", "placeholder", "value"], rr = /* @__PURE__ */ Y({
|
|
558
558
|
__name: "NumberInput",
|
|
559
559
|
props: {
|
|
560
560
|
id: {},
|
|
@@ -586,21 +586,21 @@ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8",
|
|
|
586
586
|
};
|
|
587
587
|
return (r, a) => {
|
|
588
588
|
var u;
|
|
589
|
-
return y(),
|
|
590
|
-
class:
|
|
589
|
+
return y(), C("div", {
|
|
590
|
+
class: m([f(te).wrapper, f(te)[`wrapper__size_${r.size}`]])
|
|
591
591
|
}, [
|
|
592
|
-
r.label ? (y(),
|
|
592
|
+
r.label ? (y(), C("label", {
|
|
593
593
|
key: 0,
|
|
594
|
-
class:
|
|
594
|
+
class: m(f(te).wrapper__label),
|
|
595
595
|
for: r.id
|
|
596
|
-
}, P(r.label), 11,
|
|
597
|
-
|
|
596
|
+
}, P(r.label), 11, Dn)) : L("", !0),
|
|
597
|
+
S("input", {
|
|
598
598
|
id: r.id,
|
|
599
599
|
type: "number",
|
|
600
|
-
class:
|
|
601
|
-
|
|
600
|
+
class: m([
|
|
601
|
+
f(te).wrapper__field,
|
|
602
602
|
{
|
|
603
|
-
[
|
|
603
|
+
[f(te)["wrapper--error"]]: r.error || r.errorStatus
|
|
604
604
|
}
|
|
605
605
|
]),
|
|
606
606
|
max: r.max,
|
|
@@ -614,30 +614,30 @@ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8",
|
|
|
614
614
|
onFocus: a[1] || (a[1] = (c) => n("focus", c)),
|
|
615
615
|
onInput: l,
|
|
616
616
|
onPaste: a[2] || (a[2] = (c) => n("paste", c))
|
|
617
|
-
}, null, 42,
|
|
618
|
-
r.counter || r.error ? (y(),
|
|
617
|
+
}, null, 42, Fn),
|
|
618
|
+
r.counter || r.error ? (y(), C("div", {
|
|
619
619
|
key: 1,
|
|
620
|
-
class:
|
|
620
|
+
class: m(f(te).wrapper__bottom)
|
|
621
621
|
}, [
|
|
622
|
-
r.error ? (y(),
|
|
622
|
+
r.error ? (y(), C("div", {
|
|
623
623
|
key: 0,
|
|
624
|
-
class:
|
|
624
|
+
class: m(f(te).wrapper__errorMessage)
|
|
625
625
|
}, P(r.error), 3)) : L("", !0),
|
|
626
|
-
r.counter ? (y(),
|
|
626
|
+
r.counter ? (y(), C("div", {
|
|
627
627
|
key: 1,
|
|
628
|
-
class:
|
|
628
|
+
class: m(f(te).wrapper__counter)
|
|
629
629
|
}, P(((u = r.modelValue) == null ? void 0 : u.toString().length) || 0), 3)) : L("", !0)
|
|
630
630
|
], 2)) : L("", !0)
|
|
631
631
|
], 2);
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
}),
|
|
635
|
-
wrapper:
|
|
636
|
-
wrapper__label:
|
|
637
|
-
wrapper__input:
|
|
638
|
-
wrapper_checked:
|
|
639
|
-
wrapper_disabled:
|
|
640
|
-
},
|
|
634
|
+
}), Hn = "_wrapper_1hnht_36", Nn = "_wrapper__label_1hnht_43", Wn = "_wrapper__input_1hnht_67", jn = "_wrapper_checked_1hnht_77", Gn = "_wrapper_disabled_1hnht_84", he = {
|
|
635
|
+
wrapper: Hn,
|
|
636
|
+
wrapper__label: Nn,
|
|
637
|
+
wrapper__input: Wn,
|
|
638
|
+
wrapper_checked: jn,
|
|
639
|
+
wrapper_disabled: Gn
|
|
640
|
+
}, Yn = ["id", "checked", "disabled", "name"], Un = ["for"], sr = /* @__PURE__ */ Y({
|
|
641
641
|
__name: "Toggle",
|
|
642
642
|
props: {
|
|
643
643
|
id: {},
|
|
@@ -650,80 +650,80 @@ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8",
|
|
|
650
650
|
const o = e, n = t, s = () => {
|
|
651
651
|
n("click", !o.checked);
|
|
652
652
|
};
|
|
653
|
-
return (l, i) => (y(),
|
|
654
|
-
class:
|
|
655
|
-
|
|
653
|
+
return (l, i) => (y(), C("fieldset", {
|
|
654
|
+
class: m([
|
|
655
|
+
f(he).wrapper,
|
|
656
656
|
{
|
|
657
|
-
[
|
|
658
|
-
[
|
|
657
|
+
[f(he).wrapper_checked]: l.checked,
|
|
658
|
+
[f(he).wrapper_disabled]: l.disabled
|
|
659
659
|
}
|
|
660
660
|
])
|
|
661
661
|
}, [
|
|
662
|
-
|
|
662
|
+
S("input", {
|
|
663
663
|
id: l.id,
|
|
664
664
|
type: "checkbox",
|
|
665
665
|
checked: l.checked,
|
|
666
|
-
class:
|
|
666
|
+
class: m(f(he).wrapper__input),
|
|
667
667
|
disabled: l.disabled,
|
|
668
668
|
name: l.name,
|
|
669
669
|
onClick: s
|
|
670
|
-
}, null, 10,
|
|
671
|
-
|
|
672
|
-
class:
|
|
670
|
+
}, null, 10, Yn),
|
|
671
|
+
S("label", {
|
|
672
|
+
class: m(f(he).wrapper__label),
|
|
673
673
|
for: l.id
|
|
674
|
-
}, null, 10,
|
|
674
|
+
}, null, 10, Un)
|
|
675
675
|
], 2));
|
|
676
676
|
}
|
|
677
|
-
}),
|
|
677
|
+
}), _e = Math.min, re = Math.max, Se = Math.round, Te = Math.floor, j = (e) => ({
|
|
678
678
|
x: e,
|
|
679
679
|
y: e
|
|
680
|
-
}),
|
|
680
|
+
}), Xn = {
|
|
681
681
|
left: "right",
|
|
682
682
|
right: "left",
|
|
683
683
|
bottom: "top",
|
|
684
684
|
top: "bottom"
|
|
685
|
-
},
|
|
685
|
+
}, qn = {
|
|
686
686
|
start: "end",
|
|
687
687
|
end: "start"
|
|
688
688
|
};
|
|
689
|
-
function
|
|
690
|
-
return
|
|
689
|
+
function De(e, t, o) {
|
|
690
|
+
return re(e, _e(t, o));
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function xe(e, t) {
|
|
693
693
|
return typeof e == "function" ? e(t) : e;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function se(e) {
|
|
696
696
|
return e.split("-")[0];
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function ke(e) {
|
|
699
699
|
return e.split("-")[1];
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function ct(e) {
|
|
702
702
|
return e === "x" ? "y" : "x";
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function We(e) {
|
|
705
705
|
return e === "y" ? "height" : "width";
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
return ["top", "bottom"].includes(
|
|
707
|
+
function pe(e) {
|
|
708
|
+
return ["top", "bottom"].includes(se(e)) ? "y" : "x";
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
return
|
|
710
|
+
function je(e) {
|
|
711
|
+
return ct(pe(e));
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function Kn(e, t, o) {
|
|
714
714
|
o === void 0 && (o = !1);
|
|
715
|
-
const n =
|
|
715
|
+
const n = ke(e), s = je(e), l = We(s);
|
|
716
716
|
let i = s === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
717
|
-
return t.reference[l] > t.floating[l] && (i =
|
|
717
|
+
return t.reference[l] > t.floating[l] && (i = Re(i)), [i, Re(i)];
|
|
718
718
|
}
|
|
719
|
-
function
|
|
720
|
-
const t =
|
|
721
|
-
return [
|
|
719
|
+
function Qn(e) {
|
|
720
|
+
const t = Re(e);
|
|
721
|
+
return [Fe(e), t, Fe(t)];
|
|
722
722
|
}
|
|
723
|
-
function
|
|
724
|
-
return e.replace(/start|end/g, (t) =>
|
|
723
|
+
function Fe(e) {
|
|
724
|
+
return e.replace(/start|end/g, (t) => qn[t]);
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function Zn(e, t, o) {
|
|
727
727
|
const n = ["left", "right"], s = ["right", "left"], l = ["top", "bottom"], i = ["bottom", "top"];
|
|
728
728
|
switch (e) {
|
|
729
729
|
case "top":
|
|
@@ -736,15 +736,15 @@ function Xn(e, t, o) {
|
|
|
736
736
|
return [];
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
function
|
|
740
|
-
const s =
|
|
741
|
-
let l =
|
|
742
|
-
return s && (l = l.map((i) => i + "-" + s), t && (l = l.concat(l.map(
|
|
739
|
+
function Jn(e, t, o, n) {
|
|
740
|
+
const s = ke(e);
|
|
741
|
+
let l = Zn(se(e), o === "start", n);
|
|
742
|
+
return s && (l = l.map((i) => i + "-" + s), t && (l = l.concat(l.map(Fe)))), l;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
745
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
744
|
+
function Re(e) {
|
|
745
|
+
return e.replace(/left|right|bottom|top/g, (t) => Xn[t]);
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function eo(e) {
|
|
748
748
|
return {
|
|
749
749
|
top: 0,
|
|
750
750
|
right: 0,
|
|
@@ -753,15 +753,15 @@ function Kn(e) {
|
|
|
753
753
|
...e
|
|
754
754
|
};
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
return typeof e != "number" ?
|
|
756
|
+
function ft(e) {
|
|
757
|
+
return typeof e != "number" ? eo(e) : {
|
|
758
758
|
top: e,
|
|
759
759
|
right: e,
|
|
760
760
|
bottom: e,
|
|
761
761
|
left: e
|
|
762
762
|
};
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function Ee(e) {
|
|
765
765
|
const {
|
|
766
766
|
x: t,
|
|
767
767
|
y: o,
|
|
@@ -779,55 +779,55 @@ function Oe(e) {
|
|
|
779
779
|
y: o
|
|
780
780
|
};
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Ze(e, t, o) {
|
|
783
783
|
let {
|
|
784
784
|
reference: n,
|
|
785
785
|
floating: s
|
|
786
786
|
} = e;
|
|
787
|
-
const l =
|
|
788
|
-
let
|
|
787
|
+
const l = pe(t), i = je(t), r = We(i), a = se(t), u = l === "y", c = n.x + n.width / 2 - s.width / 2, _ = n.y + n.height / 2 - s.height / 2, p = n[r] / 2 - s[r] / 2;
|
|
788
|
+
let d;
|
|
789
789
|
switch (a) {
|
|
790
790
|
case "top":
|
|
791
|
-
|
|
791
|
+
d = {
|
|
792
792
|
x: c,
|
|
793
793
|
y: n.y - s.height
|
|
794
794
|
};
|
|
795
795
|
break;
|
|
796
796
|
case "bottom":
|
|
797
|
-
|
|
797
|
+
d = {
|
|
798
798
|
x: c,
|
|
799
799
|
y: n.y + n.height
|
|
800
800
|
};
|
|
801
801
|
break;
|
|
802
802
|
case "right":
|
|
803
|
-
|
|
803
|
+
d = {
|
|
804
804
|
x: n.x + n.width,
|
|
805
805
|
y: _
|
|
806
806
|
};
|
|
807
807
|
break;
|
|
808
808
|
case "left":
|
|
809
|
-
|
|
809
|
+
d = {
|
|
810
810
|
x: n.x - s.width,
|
|
811
811
|
y: _
|
|
812
812
|
};
|
|
813
813
|
break;
|
|
814
814
|
default:
|
|
815
|
-
|
|
815
|
+
d = {
|
|
816
816
|
x: n.x,
|
|
817
817
|
y: n.y
|
|
818
818
|
};
|
|
819
819
|
}
|
|
820
|
-
switch (
|
|
820
|
+
switch (ke(t)) {
|
|
821
821
|
case "start":
|
|
822
|
-
|
|
822
|
+
d[i] -= p * (o && u ? -1 : 1);
|
|
823
823
|
break;
|
|
824
824
|
case "end":
|
|
825
|
-
|
|
825
|
+
d[i] += p * (o && u ? -1 : 1);
|
|
826
826
|
break;
|
|
827
827
|
}
|
|
828
|
-
return
|
|
828
|
+
return d;
|
|
829
829
|
}
|
|
830
|
-
const
|
|
830
|
+
const to = async (e, t, o) => {
|
|
831
831
|
const {
|
|
832
832
|
placement: n = "bottom",
|
|
833
833
|
strategy: s = "absolute",
|
|
@@ -841,15 +841,15 @@ const Qn = async (e, t, o) => {
|
|
|
841
841
|
}), {
|
|
842
842
|
x: c,
|
|
843
843
|
y: _
|
|
844
|
-
} =
|
|
844
|
+
} = Ze(u, n, a), p = n, d = {}, h = 0;
|
|
845
845
|
for (let v = 0; v < r.length; v++) {
|
|
846
846
|
const {
|
|
847
847
|
name: b,
|
|
848
848
|
fn: g
|
|
849
849
|
} = r[v], {
|
|
850
850
|
x: k,
|
|
851
|
-
y:
|
|
852
|
-
data:
|
|
851
|
+
y: T,
|
|
852
|
+
data: R,
|
|
853
853
|
reset: x
|
|
854
854
|
} = await g({
|
|
855
855
|
x: c,
|
|
@@ -857,7 +857,7 @@ const Qn = async (e, t, o) => {
|
|
|
857
857
|
initialPlacement: n,
|
|
858
858
|
placement: p,
|
|
859
859
|
strategy: s,
|
|
860
|
-
middlewareData:
|
|
860
|
+
middlewareData: d,
|
|
861
861
|
rects: u,
|
|
862
862
|
platform: i,
|
|
863
863
|
elements: {
|
|
@@ -865,30 +865,30 @@ const Qn = async (e, t, o) => {
|
|
|
865
865
|
floating: t
|
|
866
866
|
}
|
|
867
867
|
});
|
|
868
|
-
c = k ?? c, _ =
|
|
869
|
-
...
|
|
868
|
+
c = k ?? c, _ = T ?? _, d = {
|
|
869
|
+
...d,
|
|
870
870
|
[b]: {
|
|
871
|
-
...
|
|
872
|
-
...
|
|
871
|
+
...d[b],
|
|
872
|
+
...R
|
|
873
873
|
}
|
|
874
|
-
}, x &&
|
|
874
|
+
}, x && h <= 50 && (h++, typeof x == "object" && (x.placement && (p = x.placement), x.rects && (u = x.rects === !0 ? await i.getElementRects({
|
|
875
875
|
reference: e,
|
|
876
876
|
floating: t,
|
|
877
877
|
strategy: s
|
|
878
878
|
}) : x.rects), {
|
|
879
879
|
x: c,
|
|
880
880
|
y: _
|
|
881
|
-
} =
|
|
881
|
+
} = Ze(u, p, a)), v = -1);
|
|
882
882
|
}
|
|
883
883
|
return {
|
|
884
884
|
x: c,
|
|
885
885
|
y: _,
|
|
886
886
|
placement: p,
|
|
887
887
|
strategy: s,
|
|
888
|
-
middlewareData:
|
|
888
|
+
middlewareData: d
|
|
889
889
|
};
|
|
890
890
|
};
|
|
891
|
-
async function
|
|
891
|
+
async function dt(e, t) {
|
|
892
892
|
var o;
|
|
893
893
|
t === void 0 && (t = {});
|
|
894
894
|
const {
|
|
@@ -903,8 +903,8 @@ async function st(e, t) {
|
|
|
903
903
|
rootBoundary: c = "viewport",
|
|
904
904
|
elementContext: _ = "floating",
|
|
905
905
|
altBoundary: p = !1,
|
|
906
|
-
padding:
|
|
907
|
-
} =
|
|
906
|
+
padding: d = 0
|
|
907
|
+
} = xe(t, e), h = ft(d), b = r[p ? _ === "floating" ? "reference" : "floating" : _], g = Ee(await l.getClippingRect({
|
|
908
908
|
element: (o = await (l.isElement == null ? void 0 : l.isElement(b))) == null || o ? b : b.contextElement || await (l.getDocumentElement == null ? void 0 : l.getDocumentElement(r.floating)),
|
|
909
909
|
boundary: u,
|
|
910
910
|
rootBoundary: c,
|
|
@@ -914,26 +914,26 @@ async function st(e, t) {
|
|
|
914
914
|
y: s,
|
|
915
915
|
width: i.floating.width,
|
|
916
916
|
height: i.floating.height
|
|
917
|
-
} : i.reference,
|
|
917
|
+
} : i.reference, T = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(r.floating)), R = await (l.isElement == null ? void 0 : l.isElement(T)) ? await (l.getScale == null ? void 0 : l.getScale(T)) || {
|
|
918
918
|
x: 1,
|
|
919
919
|
y: 1
|
|
920
920
|
} : {
|
|
921
921
|
x: 1,
|
|
922
922
|
y: 1
|
|
923
|
-
}, x =
|
|
923
|
+
}, x = Ee(l.convertOffsetParentRelativeRectToViewportRelativeRect ? await l.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
924
924
|
elements: r,
|
|
925
925
|
rect: k,
|
|
926
|
-
offsetParent:
|
|
926
|
+
offsetParent: T,
|
|
927
927
|
strategy: a
|
|
928
928
|
}) : k);
|
|
929
929
|
return {
|
|
930
|
-
top: (g.top - x.top +
|
|
931
|
-
bottom: (x.bottom - g.bottom +
|
|
932
|
-
left: (g.left - x.left +
|
|
933
|
-
right: (x.right - g.right +
|
|
930
|
+
top: (g.top - x.top + h.top) / R.y,
|
|
931
|
+
bottom: (x.bottom - g.bottom + h.bottom) / R.y,
|
|
932
|
+
left: (g.left - x.left + h.left) / R.x,
|
|
933
|
+
right: (x.right - g.right + h.right) / R.x
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
|
-
const
|
|
936
|
+
const no = (e) => ({
|
|
937
937
|
name: "arrow",
|
|
938
938
|
options: e,
|
|
939
939
|
async fn(t) {
|
|
@@ -948,29 +948,29 @@ const Zn = (e) => ({
|
|
|
948
948
|
} = t, {
|
|
949
949
|
element: u,
|
|
950
950
|
padding: c = 0
|
|
951
|
-
} =
|
|
951
|
+
} = xe(e, t) || {};
|
|
952
952
|
if (u == null)
|
|
953
953
|
return {};
|
|
954
|
-
const _ =
|
|
954
|
+
const _ = ft(c), p = {
|
|
955
955
|
x: o,
|
|
956
956
|
y: n
|
|
957
|
-
},
|
|
958
|
-
let
|
|
959
|
-
(
|
|
960
|
-
const
|
|
957
|
+
}, d = je(s), h = We(d), v = await i.getDimensions(u), b = d === "y", g = b ? "top" : "left", k = b ? "bottom" : "right", T = b ? "clientHeight" : "clientWidth", R = l.reference[h] + l.reference[d] - p[d] - l.floating[h], x = p[d] - l.reference[d], M = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
958
|
+
let $ = M ? M[T] : 0;
|
|
959
|
+
(!$ || !await (i.isElement == null ? void 0 : i.isElement(M))) && ($ = r.floating[T] || l.floating[h]);
|
|
960
|
+
const V = R / 2 - x / 2, w = $ / 2 - v[h] / 2 - 1, O = _e(_[g], w), A = _e(_[k], w), D = O, X = $ - v[h] - A, I = $ / 2 - v[h] / 2 + V, ae = De(D, I, X), q = !a.arrow && ke(s) != null && I !== ae && l.reference[h] / 2 - (I < D ? O : A) - v[h] / 2 < 0, W = q ? I < D ? I - D : I - X : 0;
|
|
961
961
|
return {
|
|
962
|
-
[
|
|
962
|
+
[d]: p[d] + W,
|
|
963
963
|
data: {
|
|
964
|
-
[
|
|
965
|
-
centerOffset:
|
|
966
|
-
...
|
|
964
|
+
[d]: ae,
|
|
965
|
+
centerOffset: I - ae - W,
|
|
966
|
+
...q && {
|
|
967
967
|
alignmentOffset: W
|
|
968
968
|
}
|
|
969
969
|
},
|
|
970
|
-
reset:
|
|
970
|
+
reset: q
|
|
971
971
|
};
|
|
972
972
|
}
|
|
973
|
-
}),
|
|
973
|
+
}), oo = function(e) {
|
|
974
974
|
return e === void 0 && (e = {}), {
|
|
975
975
|
name: "flip",
|
|
976
976
|
options: e,
|
|
@@ -987,62 +987,62 @@ const Zn = (e) => ({
|
|
|
987
987
|
mainAxis: c = !0,
|
|
988
988
|
crossAxis: _ = !0,
|
|
989
989
|
fallbackPlacements: p,
|
|
990
|
-
fallbackStrategy:
|
|
991
|
-
fallbackAxisSideDirection:
|
|
990
|
+
fallbackStrategy: d = "bestFit",
|
|
991
|
+
fallbackAxisSideDirection: h = "none",
|
|
992
992
|
flipAlignment: v = !0,
|
|
993
993
|
...b
|
|
994
|
-
} =
|
|
994
|
+
} = xe(e, t);
|
|
995
995
|
if ((o = l.arrow) != null && o.alignmentOffset)
|
|
996
996
|
return {};
|
|
997
|
-
const g =
|
|
998
|
-
!p &&
|
|
999
|
-
const
|
|
1000
|
-
let
|
|
1001
|
-
if (c && w.push(
|
|
1002
|
-
const
|
|
1003
|
-
w.push(
|
|
997
|
+
const g = se(s), k = pe(r), T = se(r) === r, R = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), x = p || (T || !v ? [Re(r)] : Qn(r)), M = h !== "none";
|
|
998
|
+
!p && M && x.push(...Jn(r, v, h, R));
|
|
999
|
+
const $ = [r, ...x], V = await dt(t, b), w = [];
|
|
1000
|
+
let O = ((n = l.flip) == null ? void 0 : n.overflows) || [];
|
|
1001
|
+
if (c && w.push(V[g]), _) {
|
|
1002
|
+
const I = Kn(s, i, R);
|
|
1003
|
+
w.push(V[I[0]], V[I[1]]);
|
|
1004
1004
|
}
|
|
1005
|
-
if (
|
|
1005
|
+
if (O = [...O, {
|
|
1006
1006
|
placement: s,
|
|
1007
1007
|
overflows: w
|
|
1008
|
-
}], !w.every((
|
|
1009
|
-
var
|
|
1010
|
-
const
|
|
1011
|
-
if (
|
|
1008
|
+
}], !w.every((I) => I <= 0)) {
|
|
1009
|
+
var A, D;
|
|
1010
|
+
const I = (((A = l.flip) == null ? void 0 : A.index) || 0) + 1, ae = $[I];
|
|
1011
|
+
if (ae)
|
|
1012
1012
|
return {
|
|
1013
1013
|
data: {
|
|
1014
|
-
index:
|
|
1015
|
-
overflows:
|
|
1014
|
+
index: I,
|
|
1015
|
+
overflows: O
|
|
1016
1016
|
},
|
|
1017
1017
|
reset: {
|
|
1018
|
-
placement:
|
|
1018
|
+
placement: ae
|
|
1019
1019
|
}
|
|
1020
1020
|
};
|
|
1021
|
-
let
|
|
1022
|
-
if (!
|
|
1023
|
-
switch (
|
|
1021
|
+
let q = (D = O.filter((W) => W.overflows[0] <= 0).sort((W, J) => W.overflows[1] - J.overflows[1])[0]) == null ? void 0 : D.placement;
|
|
1022
|
+
if (!q)
|
|
1023
|
+
switch (d) {
|
|
1024
1024
|
case "bestFit": {
|
|
1025
|
-
var
|
|
1026
|
-
const W = (
|
|
1027
|
-
if (
|
|
1028
|
-
const
|
|
1029
|
-
return
|
|
1025
|
+
var X;
|
|
1026
|
+
const W = (X = O.filter((J) => {
|
|
1027
|
+
if (M) {
|
|
1028
|
+
const ee = pe(J.placement);
|
|
1029
|
+
return ee === k || // Create a bias to the `y` side axis due to horizontal
|
|
1030
1030
|
// reading directions favoring greater width.
|
|
1031
|
-
|
|
1031
|
+
ee === "y";
|
|
1032
1032
|
}
|
|
1033
1033
|
return !0;
|
|
1034
|
-
}).map((
|
|
1035
|
-
W && (
|
|
1034
|
+
}).map((J) => [J.placement, J.overflows.filter((ee) => ee > 0).reduce((ee, yt) => ee + yt, 0)]).sort((J, ee) => J[1] - ee[1])[0]) == null ? void 0 : X[0];
|
|
1035
|
+
W && (q = W);
|
|
1036
1036
|
break;
|
|
1037
1037
|
}
|
|
1038
1038
|
case "initialPlacement":
|
|
1039
|
-
|
|
1039
|
+
q = r;
|
|
1040
1040
|
break;
|
|
1041
1041
|
}
|
|
1042
|
-
if (s !==
|
|
1042
|
+
if (s !== q)
|
|
1043
1043
|
return {
|
|
1044
1044
|
reset: {
|
|
1045
|
-
placement:
|
|
1045
|
+
placement: q
|
|
1046
1046
|
}
|
|
1047
1047
|
};
|
|
1048
1048
|
}
|
|
@@ -1050,16 +1050,16 @@ const Zn = (e) => ({
|
|
|
1050
1050
|
}
|
|
1051
1051
|
};
|
|
1052
1052
|
};
|
|
1053
|
-
async function
|
|
1053
|
+
async function ro(e, t) {
|
|
1054
1054
|
const {
|
|
1055
1055
|
placement: o,
|
|
1056
1056
|
platform: n,
|
|
1057
1057
|
elements: s
|
|
1058
|
-
} = e, l = await (n.isRTL == null ? void 0 : n.isRTL(s.floating)), i =
|
|
1058
|
+
} = e, l = await (n.isRTL == null ? void 0 : n.isRTL(s.floating)), i = se(o), r = ke(o), a = pe(o) === "y", u = ["left", "top"].includes(i) ? -1 : 1, c = l && a ? -1 : 1, _ = xe(t, e);
|
|
1059
1059
|
let {
|
|
1060
1060
|
mainAxis: p,
|
|
1061
|
-
crossAxis:
|
|
1062
|
-
alignmentAxis:
|
|
1061
|
+
crossAxis: d,
|
|
1062
|
+
alignmentAxis: h
|
|
1063
1063
|
} = typeof _ == "number" ? {
|
|
1064
1064
|
mainAxis: _,
|
|
1065
1065
|
crossAxis: 0,
|
|
@@ -1069,15 +1069,15 @@ async function eo(e, t) {
|
|
|
1069
1069
|
crossAxis: _.crossAxis || 0,
|
|
1070
1070
|
alignmentAxis: _.alignmentAxis
|
|
1071
1071
|
};
|
|
1072
|
-
return r && typeof
|
|
1073
|
-
x:
|
|
1072
|
+
return r && typeof h == "number" && (d = r === "end" ? h * -1 : h), a ? {
|
|
1073
|
+
x: d * c,
|
|
1074
1074
|
y: p * u
|
|
1075
1075
|
} : {
|
|
1076
1076
|
x: p * u,
|
|
1077
|
-
y:
|
|
1077
|
+
y: d * c
|
|
1078
1078
|
};
|
|
1079
1079
|
}
|
|
1080
|
-
const
|
|
1080
|
+
const so = function(e) {
|
|
1081
1081
|
return e === void 0 && (e = 0), {
|
|
1082
1082
|
name: "offset",
|
|
1083
1083
|
options: e,
|
|
@@ -1088,7 +1088,7 @@ const to = function(e) {
|
|
|
1088
1088
|
y: l,
|
|
1089
1089
|
placement: i,
|
|
1090
1090
|
middlewareData: r
|
|
1091
|
-
} = t, a = await
|
|
1091
|
+
} = t, a = await ro(t, e);
|
|
1092
1092
|
return i === ((o = r.offset) == null ? void 0 : o.placement) && (n = r.arrow) != null && n.alignmentOffset ? {} : {
|
|
1093
1093
|
x: s + a.x,
|
|
1094
1094
|
y: l + a.y,
|
|
@@ -1099,7 +1099,7 @@ const to = function(e) {
|
|
|
1099
1099
|
};
|
|
1100
1100
|
}
|
|
1101
1101
|
};
|
|
1102
|
-
},
|
|
1102
|
+
}, lo = function(e) {
|
|
1103
1103
|
return e === void 0 && (e = {}), {
|
|
1104
1104
|
name: "shift",
|
|
1105
1105
|
options: e,
|
|
@@ -1124,23 +1124,23 @@ const to = function(e) {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
},
|
|
1126
1126
|
...a
|
|
1127
|
-
} =
|
|
1127
|
+
} = xe(e, t), u = {
|
|
1128
1128
|
x: o,
|
|
1129
1129
|
y: n
|
|
1130
|
-
}, c = await
|
|
1131
|
-
let
|
|
1130
|
+
}, c = await dt(t, a), _ = pe(se(s)), p = ct(_);
|
|
1131
|
+
let d = u[p], h = u[_];
|
|
1132
1132
|
if (l) {
|
|
1133
|
-
const b = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", k =
|
|
1134
|
-
|
|
1133
|
+
const b = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", k = d + c[b], T = d - c[g];
|
|
1134
|
+
d = De(k, d, T);
|
|
1135
1135
|
}
|
|
1136
1136
|
if (i) {
|
|
1137
|
-
const b = _ === "y" ? "top" : "left", g = _ === "y" ? "bottom" : "right", k =
|
|
1138
|
-
|
|
1137
|
+
const b = _ === "y" ? "top" : "left", g = _ === "y" ? "bottom" : "right", k = h + c[b], T = h - c[g];
|
|
1138
|
+
h = De(k, h, T);
|
|
1139
1139
|
}
|
|
1140
1140
|
const v = r.fn({
|
|
1141
1141
|
...t,
|
|
1142
|
-
[p]:
|
|
1143
|
-
[_]:
|
|
1142
|
+
[p]: d,
|
|
1143
|
+
[_]: h
|
|
1144
1144
|
});
|
|
1145
1145
|
return {
|
|
1146
1146
|
...v,
|
|
@@ -1156,33 +1156,33 @@ const to = function(e) {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
};
|
|
1158
1158
|
};
|
|
1159
|
-
function
|
|
1159
|
+
function Le() {
|
|
1160
1160
|
return typeof window < "u";
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return
|
|
1162
|
+
function ie(e) {
|
|
1163
|
+
return Ge(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1164
1164
|
}
|
|
1165
1165
|
function F(e) {
|
|
1166
1166
|
var t;
|
|
1167
1167
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function U(e) {
|
|
1170
1170
|
var t;
|
|
1171
|
-
return (t = (
|
|
1171
|
+
return (t = (Ge(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1174
|
-
return
|
|
1173
|
+
function Ge(e) {
|
|
1174
|
+
return Le() ? e instanceof Node || e instanceof F(e).Node : !1;
|
|
1175
1175
|
}
|
|
1176
1176
|
function H(e) {
|
|
1177
|
-
return
|
|
1177
|
+
return Le() ? e instanceof Element || e instanceof F(e).Element : !1;
|
|
1178
1178
|
}
|
|
1179
1179
|
function G(e) {
|
|
1180
|
-
return
|
|
1180
|
+
return Le() ? e instanceof HTMLElement || e instanceof F(e).HTMLElement : !1;
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1183
|
-
return !
|
|
1182
|
+
function Je(e) {
|
|
1183
|
+
return !Le() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof F(e).ShadowRoot;
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function Ce(e) {
|
|
1186
1186
|
const {
|
|
1187
1187
|
overflow: t,
|
|
1188
1188
|
overflowX: o,
|
|
@@ -1191,10 +1191,10 @@ function xe(e) {
|
|
|
1191
1191
|
} = N(e);
|
|
1192
1192
|
return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !["inline", "contents"].includes(s);
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return ["table", "td", "th"].includes(
|
|
1194
|
+
function io(e) {
|
|
1195
|
+
return ["table", "td", "th"].includes(ie(e));
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function Ie(e) {
|
|
1198
1198
|
return [":popover-open", ":modal"].some((t) => {
|
|
1199
1199
|
try {
|
|
1200
1200
|
return e.matches(t);
|
|
@@ -1203,31 +1203,31 @@ function Ae(e) {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
});
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1207
|
-
const t =
|
|
1206
|
+
function Ye(e) {
|
|
1207
|
+
const t = Ue(), o = H(e) ? N(e) : e;
|
|
1208
1208
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1211
|
-
let t =
|
|
1212
|
-
for (; G(t) && !
|
|
1213
|
-
if (
|
|
1210
|
+
function ao(e) {
|
|
1211
|
+
let t = oe(e);
|
|
1212
|
+
for (; G(t) && !me(t); ) {
|
|
1213
|
+
if (Ye(t))
|
|
1214
1214
|
return t;
|
|
1215
|
-
if (
|
|
1215
|
+
if (Ie(t))
|
|
1216
1216
|
return null;
|
|
1217
|
-
t =
|
|
1217
|
+
t = oe(t);
|
|
1218
1218
|
}
|
|
1219
1219
|
return null;
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function Ue() {
|
|
1222
1222
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return ["html", "body", "#document"].includes(
|
|
1224
|
+
function me(e) {
|
|
1225
|
+
return ["html", "body", "#document"].includes(ie(e));
|
|
1226
1226
|
}
|
|
1227
1227
|
function N(e) {
|
|
1228
1228
|
return F(e).getComputedStyle(e);
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function Me(e) {
|
|
1231
1231
|
return H(e) ? {
|
|
1232
1232
|
scrollLeft: e.scrollLeft,
|
|
1233
1233
|
scrollTop: e.scrollTop
|
|
@@ -1236,119 +1236,119 @@ function Ee(e) {
|
|
|
1236
1236
|
scrollTop: e.scrollY
|
|
1237
1237
|
};
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1240
|
-
if (
|
|
1239
|
+
function oe(e) {
|
|
1240
|
+
if (ie(e) === "html")
|
|
1241
1241
|
return e;
|
|
1242
1242
|
const t = (
|
|
1243
1243
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1244
1244
|
e.assignedSlot || // DOM Element detected.
|
|
1245
1245
|
e.parentNode || // ShadowRoot detected.
|
|
1246
|
-
|
|
1247
|
-
|
|
1246
|
+
Je(e) && e.host || // Fallback.
|
|
1247
|
+
U(e)
|
|
1248
1248
|
);
|
|
1249
|
-
return
|
|
1249
|
+
return Je(t) ? t.host : t;
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1252
|
-
const t =
|
|
1253
|
-
return
|
|
1251
|
+
function _t(e) {
|
|
1252
|
+
const t = oe(e);
|
|
1253
|
+
return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : G(t) && Ce(t) ? t : _t(t);
|
|
1254
1254
|
}
|
|
1255
|
-
function
|
|
1255
|
+
function ye(e, t, o) {
|
|
1256
1256
|
var n;
|
|
1257
1257
|
t === void 0 && (t = []), o === void 0 && (o = !0);
|
|
1258
|
-
const s =
|
|
1258
|
+
const s = _t(e), l = s === ((n = e.ownerDocument) == null ? void 0 : n.body), i = F(s);
|
|
1259
1259
|
if (l) {
|
|
1260
|
-
const r =
|
|
1261
|
-
return t.concat(i, i.visualViewport || [],
|
|
1260
|
+
const r = He(i);
|
|
1261
|
+
return t.concat(i, i.visualViewport || [], Ce(s) ? s : [], r && o ? ye(r) : []);
|
|
1262
1262
|
}
|
|
1263
|
-
return t.concat(s,
|
|
1263
|
+
return t.concat(s, ye(s, [], o));
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1265
|
+
function He(e) {
|
|
1266
1266
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function pt(e) {
|
|
1269
1269
|
const t = N(e);
|
|
1270
1270
|
let o = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
1271
|
-
const s = G(e), l = s ? e.offsetWidth : o, i = s ? e.offsetHeight : n, r =
|
|
1271
|
+
const s = G(e), l = s ? e.offsetWidth : o, i = s ? e.offsetHeight : n, r = Se(o) !== l || Se(n) !== i;
|
|
1272
1272
|
return r && (o = l, n = i), {
|
|
1273
1273
|
width: o,
|
|
1274
1274
|
height: n,
|
|
1275
1275
|
$: r
|
|
1276
1276
|
};
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1278
|
+
function Xe(e) {
|
|
1279
1279
|
return H(e) ? e : e.contextElement;
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1282
|
-
const t =
|
|
1281
|
+
function de(e) {
|
|
1282
|
+
const t = Xe(e);
|
|
1283
1283
|
if (!G(t))
|
|
1284
1284
|
return j(1);
|
|
1285
1285
|
const o = t.getBoundingClientRect(), {
|
|
1286
1286
|
width: n,
|
|
1287
1287
|
height: s,
|
|
1288
1288
|
$: l
|
|
1289
|
-
} =
|
|
1290
|
-
let i = (l ?
|
|
1289
|
+
} = pt(t);
|
|
1290
|
+
let i = (l ? Se(o.width) : o.width) / n, r = (l ? Se(o.height) : o.height) / s;
|
|
1291
1291
|
return (!i || !Number.isFinite(i)) && (i = 1), (!r || !Number.isFinite(r)) && (r = 1), {
|
|
1292
1292
|
x: i,
|
|
1293
1293
|
y: r
|
|
1294
1294
|
};
|
|
1295
1295
|
}
|
|
1296
|
-
const
|
|
1297
|
-
function
|
|
1296
|
+
const uo = /* @__PURE__ */ j(0);
|
|
1297
|
+
function mt(e) {
|
|
1298
1298
|
const t = F(e);
|
|
1299
|
-
return !
|
|
1299
|
+
return !Ue() || !t.visualViewport ? uo : {
|
|
1300
1300
|
x: t.visualViewport.offsetLeft,
|
|
1301
1301
|
y: t.visualViewport.offsetTop
|
|
1302
1302
|
};
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function co(e, t, o) {
|
|
1305
1305
|
return t === void 0 && (t = !1), !o || t && o !== F(e) ? !1 : t;
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function le(e, t, o, n) {
|
|
1308
1308
|
t === void 0 && (t = !1), o === void 0 && (o = !1);
|
|
1309
|
-
const s = e.getBoundingClientRect(), l =
|
|
1309
|
+
const s = e.getBoundingClientRect(), l = Xe(e);
|
|
1310
1310
|
let i = j(1);
|
|
1311
|
-
t && (n ? H(n) && (i =
|
|
1312
|
-
const r =
|
|
1311
|
+
t && (n ? H(n) && (i = de(n)) : i = de(e));
|
|
1312
|
+
const r = co(l, o, n) ? mt(l) : j(0);
|
|
1313
1313
|
let a = (s.left + r.x) / i.x, u = (s.top + r.y) / i.y, c = s.width / i.x, _ = s.height / i.y;
|
|
1314
1314
|
if (l) {
|
|
1315
|
-
const p = F(l),
|
|
1316
|
-
let
|
|
1317
|
-
for (; v && n &&
|
|
1318
|
-
const b =
|
|
1319
|
-
a *= b.x, u *= b.y, c *= b.x, _ *= b.y, a +=
|
|
1315
|
+
const p = F(l), d = n && H(n) ? F(n) : n;
|
|
1316
|
+
let h = p, v = He(h);
|
|
1317
|
+
for (; v && n && d !== h; ) {
|
|
1318
|
+
const b = de(v), g = v.getBoundingClientRect(), k = N(v), T = g.left + (v.clientLeft + parseFloat(k.paddingLeft)) * b.x, R = g.top + (v.clientTop + parseFloat(k.paddingTop)) * b.y;
|
|
1319
|
+
a *= b.x, u *= b.y, c *= b.x, _ *= b.y, a += T, u += R, h = F(v), v = He(h);
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
|
-
return
|
|
1322
|
+
return Ee({
|
|
1323
1323
|
width: c,
|
|
1324
1324
|
height: _,
|
|
1325
1325
|
x: a,
|
|
1326
1326
|
y: u
|
|
1327
1327
|
});
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1330
|
-
const o =
|
|
1331
|
-
return t ? t.left + o :
|
|
1329
|
+
function qe(e, t) {
|
|
1330
|
+
const o = Me(e).scrollLeft;
|
|
1331
|
+
return t ? t.left + o : le(U(e)).left + o;
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function ht(e, t, o) {
|
|
1334
1334
|
o === void 0 && (o = !1);
|
|
1335
1335
|
const n = e.getBoundingClientRect(), s = n.left + t.scrollLeft - (o ? 0 : (
|
|
1336
1336
|
// RTL <body> scrollbar.
|
|
1337
|
-
|
|
1337
|
+
qe(e, n)
|
|
1338
1338
|
)), l = n.top + t.scrollTop;
|
|
1339
1339
|
return {
|
|
1340
1340
|
x: s,
|
|
1341
1341
|
y: l
|
|
1342
1342
|
};
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function fo(e) {
|
|
1345
1345
|
let {
|
|
1346
1346
|
elements: t,
|
|
1347
1347
|
rect: o,
|
|
1348
1348
|
offsetParent: n,
|
|
1349
1349
|
strategy: s
|
|
1350
1350
|
} = e;
|
|
1351
|
-
const l = s === "fixed", i =
|
|
1351
|
+
const l = s === "fixed", i = U(n), r = t ? Ie(t.floating) : !1;
|
|
1352
1352
|
if (n === i || r && l)
|
|
1353
1353
|
return o;
|
|
1354
1354
|
let a = {
|
|
@@ -1356,11 +1356,11 @@ function io(e) {
|
|
|
1356
1356
|
scrollTop: 0
|
|
1357
1357
|
}, u = j(1);
|
|
1358
1358
|
const c = j(0), _ = G(n);
|
|
1359
|
-
if ((_ || !_ && !l) && ((
|
|
1360
|
-
const
|
|
1361
|
-
u =
|
|
1359
|
+
if ((_ || !_ && !l) && ((ie(n) !== "body" || Ce(i)) && (a = Me(n)), G(n))) {
|
|
1360
|
+
const d = le(n);
|
|
1361
|
+
u = de(n), c.x = d.x + n.clientLeft, c.y = d.y + n.clientTop;
|
|
1362
1362
|
}
|
|
1363
|
-
const p = i && !_ && !l ?
|
|
1363
|
+
const p = i && !_ && !l ? ht(i, a, !0) : j(0);
|
|
1364
1364
|
return {
|
|
1365
1365
|
width: o.width * u.x,
|
|
1366
1366
|
height: o.height * u.y,
|
|
@@ -1368,26 +1368,26 @@ function io(e) {
|
|
|
1368
1368
|
y: o.y * u.y - a.scrollTop * u.y + c.y + p.y
|
|
1369
1369
|
};
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function _o(e) {
|
|
1372
1372
|
return Array.from(e.getClientRects());
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1375
|
-
const t =
|
|
1376
|
-
let i = -o.scrollLeft +
|
|
1374
|
+
function po(e) {
|
|
1375
|
+
const t = U(e), o = Me(e), n = e.ownerDocument.body, s = re(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), l = re(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
|
1376
|
+
let i = -o.scrollLeft + qe(e);
|
|
1377
1377
|
const r = -o.scrollTop;
|
|
1378
|
-
return N(n).direction === "rtl" && (i +=
|
|
1378
|
+
return N(n).direction === "rtl" && (i += re(t.clientWidth, n.clientWidth) - s), {
|
|
1379
1379
|
width: s,
|
|
1380
1380
|
height: l,
|
|
1381
1381
|
x: i,
|
|
1382
1382
|
y: r
|
|
1383
1383
|
};
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1386
|
-
const o = F(e), n =
|
|
1385
|
+
function mo(e, t) {
|
|
1386
|
+
const o = F(e), n = U(e), s = o.visualViewport;
|
|
1387
1387
|
let l = n.clientWidth, i = n.clientHeight, r = 0, a = 0;
|
|
1388
1388
|
if (s) {
|
|
1389
1389
|
l = s.width, i = s.height;
|
|
1390
|
-
const u =
|
|
1390
|
+
const u = Ue();
|
|
1391
1391
|
(!u || u && t === "fixed") && (r = s.offsetLeft, a = s.offsetTop);
|
|
1392
1392
|
}
|
|
1393
1393
|
return {
|
|
@@ -1397,8 +1397,8 @@ function co(e, t) {
|
|
|
1397
1397
|
y: a
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1401
|
-
const o =
|
|
1400
|
+
function ho(e, t) {
|
|
1401
|
+
const o = le(e, !0, t === "fixed"), n = o.top + e.clientTop, s = o.left + e.clientLeft, l = G(e) ? de(e) : j(1), i = e.clientWidth * l.x, r = e.clientHeight * l.y, a = s * l.x, u = n * l.y;
|
|
1402
1402
|
return {
|
|
1403
1403
|
width: i,
|
|
1404
1404
|
height: r,
|
|
@@ -1406,16 +1406,16 @@ function fo(e, t) {
|
|
|
1406
1406
|
y: u
|
|
1407
1407
|
};
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function et(e, t, o) {
|
|
1410
1410
|
let n;
|
|
1411
1411
|
if (t === "viewport")
|
|
1412
|
-
n =
|
|
1412
|
+
n = mo(e, o);
|
|
1413
1413
|
else if (t === "document")
|
|
1414
|
-
n =
|
|
1414
|
+
n = po(U(e));
|
|
1415
1415
|
else if (H(t))
|
|
1416
|
-
n =
|
|
1416
|
+
n = ho(t, o);
|
|
1417
1417
|
else {
|
|
1418
|
-
const s =
|
|
1418
|
+
const s = mt(e);
|
|
1419
1419
|
n = {
|
|
1420
1420
|
x: t.x - s.x,
|
|
1421
1421
|
y: t.y - s.y,
|
|
@@ -1423,36 +1423,36 @@ function Qe(e, t, o) {
|
|
|
1423
1423
|
height: t.height
|
|
1424
1424
|
};
|
|
1425
1425
|
}
|
|
1426
|
-
return
|
|
1426
|
+
return Ee(n);
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1429
|
-
const o =
|
|
1430
|
-
return o === t || !H(o) ||
|
|
1428
|
+
function gt(e, t) {
|
|
1429
|
+
const o = oe(e);
|
|
1430
|
+
return o === t || !H(o) || me(o) ? !1 : N(o).position === "fixed" || gt(o, t);
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1432
|
+
function go(e, t) {
|
|
1433
1433
|
const o = t.get(e);
|
|
1434
1434
|
if (o)
|
|
1435
1435
|
return o;
|
|
1436
|
-
let n =
|
|
1436
|
+
let n = ye(e, [], !1).filter((r) => H(r) && ie(r) !== "body"), s = null;
|
|
1437
1437
|
const l = N(e).position === "fixed";
|
|
1438
|
-
let i = l ?
|
|
1439
|
-
for (; H(i) && !
|
|
1440
|
-
const r = N(i), a =
|
|
1441
|
-
!a && r.position === "fixed" && (s = null), (l ? !a && !s : !a && r.position === "static" && !!s && ["absolute", "fixed"].includes(s.position) ||
|
|
1438
|
+
let i = l ? oe(e) : e;
|
|
1439
|
+
for (; H(i) && !me(i); ) {
|
|
1440
|
+
const r = N(i), a = Ye(i);
|
|
1441
|
+
!a && r.position === "fixed" && (s = null), (l ? !a && !s : !a && r.position === "static" && !!s && ["absolute", "fixed"].includes(s.position) || Ce(i) && !a && gt(e, i)) ? n = n.filter((c) => c !== i) : s = r, i = oe(i);
|
|
1442
1442
|
}
|
|
1443
1443
|
return t.set(e, n), n;
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function wo(e) {
|
|
1446
1446
|
let {
|
|
1447
1447
|
element: t,
|
|
1448
1448
|
boundary: o,
|
|
1449
1449
|
rootBoundary: n,
|
|
1450
1450
|
strategy: s
|
|
1451
1451
|
} = e;
|
|
1452
|
-
const i = [...o === "clippingAncestors" ?
|
|
1453
|
-
const _ =
|
|
1454
|
-
return u.top =
|
|
1455
|
-
},
|
|
1452
|
+
const i = [...o === "clippingAncestors" ? Ie(t) ? [] : go(t, this._c) : [].concat(o), n], r = i[0], a = i.reduce((u, c) => {
|
|
1453
|
+
const _ = et(t, c, s);
|
|
1454
|
+
return u.top = re(_.top, u.top), u.right = _e(_.right, u.right), u.bottom = _e(_.bottom, u.bottom), u.left = re(_.left, u.left), u;
|
|
1455
|
+
}, et(t, r, s));
|
|
1456
1456
|
return {
|
|
1457
1457
|
width: a.right - a.left,
|
|
1458
1458
|
height: a.bottom - a.top,
|
|
@@ -1460,29 +1460,29 @@ function po(e) {
|
|
|
1460
1460
|
y: a.top
|
|
1461
1461
|
};
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function vo(e) {
|
|
1464
1464
|
const {
|
|
1465
1465
|
width: t,
|
|
1466
1466
|
height: o
|
|
1467
|
-
} =
|
|
1467
|
+
} = pt(e);
|
|
1468
1468
|
return {
|
|
1469
1469
|
width: t,
|
|
1470
1470
|
height: o
|
|
1471
1471
|
};
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1474
|
-
const n = G(t), s =
|
|
1473
|
+
function bo(e, t, o) {
|
|
1474
|
+
const n = G(t), s = U(t), l = o === "fixed", i = le(e, !0, l, t);
|
|
1475
1475
|
let r = {
|
|
1476
1476
|
scrollLeft: 0,
|
|
1477
1477
|
scrollTop: 0
|
|
1478
1478
|
};
|
|
1479
1479
|
const a = j(0);
|
|
1480
1480
|
if (n || !n && !l)
|
|
1481
|
-
if ((
|
|
1482
|
-
const p =
|
|
1481
|
+
if ((ie(t) !== "body" || Ce(s)) && (r = Me(t)), n) {
|
|
1482
|
+
const p = le(t, !0, l, t);
|
|
1483
1483
|
a.x = p.x + t.clientLeft, a.y = p.y + t.clientTop;
|
|
1484
|
-
} else s && (a.x =
|
|
1485
|
-
const u = s && !n && !l ?
|
|
1484
|
+
} else s && (a.x = qe(s));
|
|
1485
|
+
const u = s && !n && !l ? ht(s, r) : j(0), c = i.left + r.scrollLeft - a.x - u.x, _ = i.top + r.scrollTop - a.y - u.y;
|
|
1486
1486
|
return {
|
|
1487
1487
|
x: c,
|
|
1488
1488
|
y: _,
|
|
@@ -1490,39 +1490,39 @@ function ho(e, t, o) {
|
|
|
1490
1490
|
height: i.height
|
|
1491
1491
|
};
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function Be(e) {
|
|
1494
1494
|
return N(e).position === "static";
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function tt(e, t) {
|
|
1497
1497
|
if (!G(e) || N(e).position === "fixed")
|
|
1498
1498
|
return null;
|
|
1499
1499
|
if (t)
|
|
1500
1500
|
return t(e);
|
|
1501
1501
|
let o = e.offsetParent;
|
|
1502
|
-
return
|
|
1502
|
+
return U(e) === o && (o = o.ownerDocument.body), o;
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function wt(e, t) {
|
|
1505
1505
|
const o = F(e);
|
|
1506
|
-
if (
|
|
1506
|
+
if (Ie(e))
|
|
1507
1507
|
return o;
|
|
1508
1508
|
if (!G(e)) {
|
|
1509
|
-
let s =
|
|
1510
|
-
for (; s && !
|
|
1511
|
-
if (H(s) && !
|
|
1509
|
+
let s = oe(e);
|
|
1510
|
+
for (; s && !me(s); ) {
|
|
1511
|
+
if (H(s) && !Be(s))
|
|
1512
1512
|
return s;
|
|
1513
|
-
s =
|
|
1513
|
+
s = oe(s);
|
|
1514
1514
|
}
|
|
1515
1515
|
return o;
|
|
1516
1516
|
}
|
|
1517
|
-
let n =
|
|
1518
|
-
for (; n &&
|
|
1519
|
-
n =
|
|
1520
|
-
return n &&
|
|
1517
|
+
let n = tt(e, t);
|
|
1518
|
+
for (; n && io(n) && Be(n); )
|
|
1519
|
+
n = tt(n, t);
|
|
1520
|
+
return n && me(n) && Be(n) && !Ye(n) ? o : n || ao(e) || o;
|
|
1521
1521
|
}
|
|
1522
|
-
const
|
|
1523
|
-
const t = this.getOffsetParent ||
|
|
1522
|
+
const yo = async function(e) {
|
|
1523
|
+
const t = this.getOffsetParent || wt, o = this.getDimensions, n = await o(e.floating);
|
|
1524
1524
|
return {
|
|
1525
|
-
reference:
|
|
1525
|
+
reference: bo(e.reference, await t(e.floating), e.strategy),
|
|
1526
1526
|
floating: {
|
|
1527
1527
|
x: 0,
|
|
1528
1528
|
y: 0,
|
|
@@ -1531,27 +1531,27 @@ const go = async function(e) {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
};
|
|
1533
1533
|
};
|
|
1534
|
-
function
|
|
1534
|
+
function xo(e) {
|
|
1535
1535
|
return N(e).direction === "rtl";
|
|
1536
1536
|
}
|
|
1537
|
-
const
|
|
1538
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1539
|
-
getDocumentElement:
|
|
1540
|
-
getClippingRect:
|
|
1541
|
-
getOffsetParent:
|
|
1542
|
-
getElementRects:
|
|
1543
|
-
getClientRects:
|
|
1544
|
-
getDimensions:
|
|
1545
|
-
getScale:
|
|
1537
|
+
const ko = {
|
|
1538
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: fo,
|
|
1539
|
+
getDocumentElement: U,
|
|
1540
|
+
getClippingRect: wo,
|
|
1541
|
+
getOffsetParent: wt,
|
|
1542
|
+
getElementRects: yo,
|
|
1543
|
+
getClientRects: _o,
|
|
1544
|
+
getDimensions: vo,
|
|
1545
|
+
getScale: de,
|
|
1546
1546
|
isElement: H,
|
|
1547
|
-
isRTL:
|
|
1547
|
+
isRTL: xo
|
|
1548
1548
|
};
|
|
1549
|
-
function
|
|
1549
|
+
function vt(e, t) {
|
|
1550
1550
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function Co(e, t) {
|
|
1553
1553
|
let o = null, n;
|
|
1554
|
-
const s =
|
|
1554
|
+
const s = U(e);
|
|
1555
1555
|
function l() {
|
|
1556
1556
|
var r;
|
|
1557
1557
|
clearTimeout(n), (r = o) == null || r.disconnect(), o = null;
|
|
@@ -1562,40 +1562,40 @@ function bo(e, t) {
|
|
|
1562
1562
|
left: c,
|
|
1563
1563
|
top: _,
|
|
1564
1564
|
width: p,
|
|
1565
|
-
height:
|
|
1565
|
+
height: d
|
|
1566
1566
|
} = u;
|
|
1567
|
-
if (r || t(), !p || !
|
|
1567
|
+
if (r || t(), !p || !d)
|
|
1568
1568
|
return;
|
|
1569
|
-
const
|
|
1570
|
-
rootMargin: -
|
|
1571
|
-
threshold:
|
|
1569
|
+
const h = Te(_), v = Te(s.clientWidth - (c + p)), b = Te(s.clientHeight - (_ + d)), g = Te(c), T = {
|
|
1570
|
+
rootMargin: -h + "px " + -v + "px " + -b + "px " + -g + "px",
|
|
1571
|
+
threshold: re(0, _e(1, a)) || 1
|
|
1572
1572
|
};
|
|
1573
|
-
let
|
|
1574
|
-
function x(
|
|
1575
|
-
const
|
|
1576
|
-
if (
|
|
1577
|
-
if (!
|
|
1573
|
+
let R = !0;
|
|
1574
|
+
function x(M) {
|
|
1575
|
+
const $ = M[0].intersectionRatio;
|
|
1576
|
+
if ($ !== a) {
|
|
1577
|
+
if (!R)
|
|
1578
1578
|
return i();
|
|
1579
|
-
|
|
1579
|
+
$ ? i(!1, $) : n = setTimeout(() => {
|
|
1580
1580
|
i(!1, 1e-7);
|
|
1581
1581
|
}, 1e3);
|
|
1582
1582
|
}
|
|
1583
|
-
|
|
1583
|
+
$ === 1 && !vt(u, e.getBoundingClientRect()) && i(), R = !1;
|
|
1584
1584
|
}
|
|
1585
1585
|
try {
|
|
1586
1586
|
o = new IntersectionObserver(x, {
|
|
1587
|
-
...
|
|
1587
|
+
...T,
|
|
1588
1588
|
// Handle <iframe>s
|
|
1589
1589
|
root: s.ownerDocument
|
|
1590
1590
|
});
|
|
1591
1591
|
} catch {
|
|
1592
|
-
o = new IntersectionObserver(x,
|
|
1592
|
+
o = new IntersectionObserver(x, T);
|
|
1593
1593
|
}
|
|
1594
1594
|
o.observe(e);
|
|
1595
1595
|
}
|
|
1596
1596
|
return i(!0), l;
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function To(e, t, o, n) {
|
|
1599
1599
|
n === void 0 && (n = {});
|
|
1600
1600
|
const {
|
|
1601
1601
|
ancestorScroll: s = !0,
|
|
@@ -1603,166 +1603,166 @@ function yo(e, t, o, n) {
|
|
|
1603
1603
|
elementResize: i = typeof ResizeObserver == "function",
|
|
1604
1604
|
layoutShift: r = typeof IntersectionObserver == "function",
|
|
1605
1605
|
animationFrame: a = !1
|
|
1606
|
-
} = n, u =
|
|
1606
|
+
} = n, u = Xe(e), c = s || l ? [...u ? ye(u) : [], ...ye(t)] : [];
|
|
1607
1607
|
c.forEach((g) => {
|
|
1608
1608
|
s && g.addEventListener("scroll", o, {
|
|
1609
1609
|
passive: !0
|
|
1610
1610
|
}), l && g.addEventListener("resize", o);
|
|
1611
1611
|
});
|
|
1612
|
-
const _ = u && r ?
|
|
1613
|
-
let p = -1,
|
|
1614
|
-
i && (
|
|
1612
|
+
const _ = u && r ? Co(u, o) : null;
|
|
1613
|
+
let p = -1, d = null;
|
|
1614
|
+
i && (d = new ResizeObserver((g) => {
|
|
1615
1615
|
let [k] = g;
|
|
1616
|
-
k && k.target === u &&
|
|
1617
|
-
var
|
|
1618
|
-
(
|
|
1616
|
+
k && k.target === u && d && (d.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
1617
|
+
var T;
|
|
1618
|
+
(T = d) == null || T.observe(t);
|
|
1619
1619
|
})), o();
|
|
1620
|
-
}), u && !a &&
|
|
1621
|
-
let
|
|
1620
|
+
}), u && !a && d.observe(u), d.observe(t));
|
|
1621
|
+
let h, v = a ? le(e) : null;
|
|
1622
1622
|
a && b();
|
|
1623
1623
|
function b() {
|
|
1624
|
-
const g =
|
|
1625
|
-
v && !
|
|
1624
|
+
const g = le(e);
|
|
1625
|
+
v && !vt(v, g) && o(), v = g, h = requestAnimationFrame(b);
|
|
1626
1626
|
}
|
|
1627
1627
|
return o(), () => {
|
|
1628
1628
|
var g;
|
|
1629
1629
|
c.forEach((k) => {
|
|
1630
1630
|
s && k.removeEventListener("scroll", o), l && k.removeEventListener("resize", o);
|
|
1631
|
-
}), _ == null || _(), (g =
|
|
1631
|
+
}), _ == null || _(), (g = d) == null || g.disconnect(), d = null, a && cancelAnimationFrame(h);
|
|
1632
1632
|
};
|
|
1633
1633
|
}
|
|
1634
|
-
const
|
|
1634
|
+
const $o = so, Oo = lo, So = oo, Ro = no, Eo = (e, t, o) => {
|
|
1635
1635
|
const n = /* @__PURE__ */ new Map(), s = {
|
|
1636
|
-
platform:
|
|
1636
|
+
platform: ko,
|
|
1637
1637
|
...o
|
|
1638
1638
|
}, l = {
|
|
1639
1639
|
...s.platform,
|
|
1640
1640
|
_c: n
|
|
1641
1641
|
};
|
|
1642
|
-
return
|
|
1642
|
+
return to(e, t, {
|
|
1643
1643
|
...s,
|
|
1644
1644
|
platform: l
|
|
1645
1645
|
});
|
|
1646
1646
|
};
|
|
1647
|
-
function
|
|
1647
|
+
function Ao(e) {
|
|
1648
1648
|
return e != null && typeof e == "object" && "$el" in e;
|
|
1649
1649
|
}
|
|
1650
|
-
function
|
|
1651
|
-
if (
|
|
1650
|
+
function Ne(e) {
|
|
1651
|
+
if (Ao(e)) {
|
|
1652
1652
|
const t = e.$el;
|
|
1653
|
-
return
|
|
1653
|
+
return Ge(t) && ie(t) === "#comment" ? null : t;
|
|
1654
1654
|
}
|
|
1655
1655
|
return e;
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1658
|
-
return typeof e == "function" ? e() :
|
|
1657
|
+
function fe(e) {
|
|
1658
|
+
return typeof e == "function" ? e() : f(e);
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1660
|
+
function Lo(e) {
|
|
1661
1661
|
return {
|
|
1662
1662
|
name: "arrow",
|
|
1663
1663
|
options: e,
|
|
1664
1664
|
fn(t) {
|
|
1665
|
-
const o =
|
|
1666
|
-
return o == null ? {} :
|
|
1665
|
+
const o = Ne(fe(e.element));
|
|
1666
|
+
return o == null ? {} : Ro({
|
|
1667
1667
|
element: o,
|
|
1668
1668
|
padding: e.padding
|
|
1669
1669
|
}).fn(t);
|
|
1670
1670
|
}
|
|
1671
1671
|
};
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1673
|
+
function bt(e) {
|
|
1674
1674
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1677
|
-
const o =
|
|
1676
|
+
function nt(e, t) {
|
|
1677
|
+
const o = bt(e);
|
|
1678
1678
|
return Math.round(t * o) / o;
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function Io(e, t, o) {
|
|
1681
1681
|
o === void 0 && (o = {});
|
|
1682
|
-
const n = o.whileElementsMounted, s =
|
|
1683
|
-
var
|
|
1684
|
-
return (
|
|
1685
|
-
}), l =
|
|
1686
|
-
var
|
|
1687
|
-
return (
|
|
1688
|
-
}), r =
|
|
1689
|
-
var
|
|
1690
|
-
return (
|
|
1691
|
-
}), a =
|
|
1692
|
-
var
|
|
1693
|
-
return (
|
|
1694
|
-
}), u =
|
|
1695
|
-
const
|
|
1696
|
-
position:
|
|
1682
|
+
const n = o.whileElementsMounted, s = B(() => {
|
|
1683
|
+
var $;
|
|
1684
|
+
return ($ = fe(o.open)) != null ? $ : !0;
|
|
1685
|
+
}), l = B(() => fe(o.middleware)), i = B(() => {
|
|
1686
|
+
var $;
|
|
1687
|
+
return ($ = fe(o.placement)) != null ? $ : "bottom";
|
|
1688
|
+
}), r = B(() => {
|
|
1689
|
+
var $;
|
|
1690
|
+
return ($ = fe(o.strategy)) != null ? $ : "absolute";
|
|
1691
|
+
}), a = B(() => {
|
|
1692
|
+
var $;
|
|
1693
|
+
return ($ = fe(o.transform)) != null ? $ : !0;
|
|
1694
|
+
}), u = B(() => Ne(e.value)), c = B(() => Ne(t.value)), _ = E(0), p = E(0), d = E(r.value), h = E(i.value), v = Ct({}), b = E(!1), g = B(() => {
|
|
1695
|
+
const $ = {
|
|
1696
|
+
position: d.value,
|
|
1697
1697
|
left: "0",
|
|
1698
1698
|
top: "0"
|
|
1699
1699
|
};
|
|
1700
1700
|
if (!c.value)
|
|
1701
|
-
return
|
|
1702
|
-
const
|
|
1701
|
+
return $;
|
|
1702
|
+
const V = nt(c.value, _.value), w = nt(c.value, p.value);
|
|
1703
1703
|
return a.value ? {
|
|
1704
|
-
|
|
1705
|
-
transform: "translate(" +
|
|
1706
|
-
...
|
|
1704
|
+
...$,
|
|
1705
|
+
transform: "translate(" + V + "px, " + w + "px)",
|
|
1706
|
+
...bt(c.value) >= 1.5 && {
|
|
1707
1707
|
willChange: "transform"
|
|
1708
1708
|
}
|
|
1709
1709
|
} : {
|
|
1710
|
-
position:
|
|
1711
|
-
left:
|
|
1710
|
+
position: d.value,
|
|
1711
|
+
left: V + "px",
|
|
1712
1712
|
top: w + "px"
|
|
1713
1713
|
};
|
|
1714
1714
|
});
|
|
1715
1715
|
let k;
|
|
1716
|
-
function
|
|
1716
|
+
function T() {
|
|
1717
1717
|
if (u.value == null || c.value == null)
|
|
1718
1718
|
return;
|
|
1719
|
-
const
|
|
1720
|
-
|
|
1719
|
+
const $ = s.value;
|
|
1720
|
+
Eo(u.value, c.value, {
|
|
1721
1721
|
middleware: l.value,
|
|
1722
1722
|
placement: i.value,
|
|
1723
1723
|
strategy: r.value
|
|
1724
|
-
}).then((
|
|
1725
|
-
_.value =
|
|
1724
|
+
}).then((V) => {
|
|
1725
|
+
_.value = V.x, p.value = V.y, d.value = V.strategy, h.value = V.placement, v.value = V.middlewareData, b.value = $ !== !1;
|
|
1726
1726
|
});
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function R() {
|
|
1729
1729
|
typeof k == "function" && (k(), k = void 0);
|
|
1730
1730
|
}
|
|
1731
1731
|
function x() {
|
|
1732
|
-
if (
|
|
1733
|
-
|
|
1732
|
+
if (R(), n === void 0) {
|
|
1733
|
+
T();
|
|
1734
1734
|
return;
|
|
1735
1735
|
}
|
|
1736
1736
|
if (u.value != null && c.value != null) {
|
|
1737
|
-
k = n(u.value, c.value,
|
|
1737
|
+
k = n(u.value, c.value, T);
|
|
1738
1738
|
return;
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1741
|
+
function M() {
|
|
1742
1742
|
s.value || (b.value = !1);
|
|
1743
1743
|
}
|
|
1744
|
-
return
|
|
1744
|
+
return ne([l, i, r, s], T, {
|
|
1745
1745
|
flush: "sync"
|
|
1746
|
-
}),
|
|
1746
|
+
}), ne([u, c], x, {
|
|
1747
1747
|
flush: "sync"
|
|
1748
|
-
}),
|
|
1748
|
+
}), ne(s, M, {
|
|
1749
1749
|
flush: "sync"
|
|
1750
|
-
}),
|
|
1751
|
-
x:
|
|
1752
|
-
y:
|
|
1753
|
-
strategy:
|
|
1754
|
-
placement:
|
|
1755
|
-
middlewareData:
|
|
1756
|
-
isPositioned:
|
|
1750
|
+
}), Tt() && $t(R), {
|
|
1751
|
+
x: ue(_),
|
|
1752
|
+
y: ue(p),
|
|
1753
|
+
strategy: ue(d),
|
|
1754
|
+
placement: ue(h),
|
|
1755
|
+
middlewareData: ue(v),
|
|
1756
|
+
isPositioned: ue(b),
|
|
1757
1757
|
floatingStyles: g,
|
|
1758
|
-
update:
|
|
1758
|
+
update: T
|
|
1759
1759
|
};
|
|
1760
1760
|
}
|
|
1761
|
-
let
|
|
1762
|
-
const
|
|
1763
|
-
if (
|
|
1761
|
+
let ot = !1;
|
|
1762
|
+
const Mo = () => {
|
|
1763
|
+
if (ot)
|
|
1764
1764
|
return;
|
|
1765
|
-
|
|
1765
|
+
ot = !0;
|
|
1766
1766
|
let e;
|
|
1767
1767
|
Object.defineProperty(window, "wasTooltipShown", {
|
|
1768
1768
|
get() {
|
|
@@ -1778,16 +1778,16 @@ const Ao = () => {
|
|
|
1778
1778
|
configurable: !0
|
|
1779
1779
|
});
|
|
1780
1780
|
};
|
|
1781
|
-
function
|
|
1781
|
+
function zo(e = "") {
|
|
1782
1782
|
return typeof e == "string" ? e.replace(/<\/style>/gi, "").replace(/<(.*?) on(.*?)=['"](.*?)>/gi, "").replace(/(<meta |<style|<\/*script)(.*?)>/gi, "").replace(/(<([^>]+)>)/ig, "").replace(/<(.*?) (href|src)="j(.*)a(.*)v(.*)a(.*)s(.*)c(.*)r(.*)i(.*)p(.*)t(.*):(.*?)>/gi, "") : e;
|
|
1783
1783
|
}
|
|
1784
|
-
const
|
|
1785
|
-
bubble:
|
|
1786
|
-
trigger:
|
|
1787
|
-
trigger__icon:
|
|
1788
|
-
arrow:
|
|
1789
|
-
bubble__content:
|
|
1790
|
-
},
|
|
1784
|
+
const Bo = "_bubble_1jxs4_1", Vo = "_trigger_1jxs4_43", Po = "_trigger__icon_1jxs4_51", Do = "_arrow_1jxs4_57", Fo = "_bubble__content_1jxs4_79", ge = {
|
|
1785
|
+
bubble: Bo,
|
|
1786
|
+
trigger: Vo,
|
|
1787
|
+
trigger__icon: Po,
|
|
1788
|
+
arrow: Do,
|
|
1789
|
+
bubble__content: Fo
|
|
1790
|
+
}, Ho = ["innerHTML"], No = ["id"], rt = 1e3, lr = /* @__PURE__ */ Y({
|
|
1791
1791
|
__name: "Tooltip",
|
|
1792
1792
|
props: {
|
|
1793
1793
|
id: {},
|
|
@@ -1806,102 +1806,189 @@ const Lo = "_bubble_1jxs4_1", Io = "_trigger_1jxs4_43", Mo = "_trigger__icon_1jx
|
|
|
1806
1806
|
};
|
|
1807
1807
|
let o = null, n = null;
|
|
1808
1808
|
typeof window < "u" && window.wasTooltipShown === void 0 && (window.wasTooltipShown = !1);
|
|
1809
|
-
const s = e, l =
|
|
1810
|
-
placement:
|
|
1809
|
+
const s = e, l = E(null), i = E(null), r = E(null), a = E(!1), u = B(() => s.preventXss ? zo(s.text) : s.text), { floatingStyles: c, update: _, middlewareData: p, placement: d } = Io(i, l, {
|
|
1810
|
+
placement: B(() => s.placement || "bottom"),
|
|
1811
1811
|
strategy: "fixed",
|
|
1812
|
-
whileElementsMounted:
|
|
1812
|
+
whileElementsMounted: To,
|
|
1813
1813
|
middleware: [
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1814
|
+
$o(10),
|
|
1815
|
+
So(),
|
|
1816
|
+
Oo(),
|
|
1817
|
+
Lo({ element: r, padding: 8 })
|
|
1818
1818
|
]
|
|
1819
|
-
}),
|
|
1819
|
+
}), h = () => {
|
|
1820
1820
|
o && clearTimeout(o), n && clearTimeout(n), window.wasTooltipShown ? a.value = !0 : o = setTimeout(() => {
|
|
1821
1821
|
a.value = !0, window.wasTooltipShown = !0;
|
|
1822
|
-
},
|
|
1822
|
+
}, rt);
|
|
1823
1823
|
}, v = () => {
|
|
1824
1824
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
1825
1825
|
a.value = !1, window.wasTooltipShown = !0;
|
|
1826
|
-
},
|
|
1826
|
+
}, rt);
|
|
1827
1827
|
}, b = () => {
|
|
1828
1828
|
n && clearTimeout(n);
|
|
1829
1829
|
}, g = () => {
|
|
1830
|
-
b(),
|
|
1830
|
+
b(), h();
|
|
1831
1831
|
}, k = () => {
|
|
1832
1832
|
v();
|
|
1833
1833
|
};
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
}),
|
|
1834
|
+
ne(() => s.placement, _), Ot(Mo), Ae(() => {
|
|
1835
|
+
it(_), window.addEventListener("resize", _);
|
|
1836
|
+
}), at(() => {
|
|
1837
1837
|
window.removeEventListener("resize", _);
|
|
1838
1838
|
});
|
|
1839
|
-
const
|
|
1840
|
-
const [x] =
|
|
1839
|
+
const T = B(() => {
|
|
1840
|
+
const [x] = d.value.split("-");
|
|
1841
1841
|
return {
|
|
1842
1842
|
[t[x]]: "-4px"
|
|
1843
1843
|
};
|
|
1844
|
-
}),
|
|
1845
|
-
var x,
|
|
1844
|
+
}), R = B(() => {
|
|
1845
|
+
var x, M;
|
|
1846
1846
|
return r.value ? {
|
|
1847
1847
|
left: ((x = p.value.arrow) == null ? void 0 : x.x) != null ? `${p.value.arrow.x}px` : "",
|
|
1848
|
-
top: ((
|
|
1848
|
+
top: ((M = p.value.arrow) == null ? void 0 : M.y) != null ? `${p.value.arrow.y}px` : "",
|
|
1849
1849
|
right: "",
|
|
1850
1850
|
bottom: "",
|
|
1851
|
-
...
|
|
1851
|
+
...T.value
|
|
1852
1852
|
} : {};
|
|
1853
1853
|
});
|
|
1854
|
-
return (x,
|
|
1855
|
-
(y(),
|
|
1856
|
-
x.status || a.value ? (y(),
|
|
1854
|
+
return (x, M) => (y(), C(ve, null, [
|
|
1855
|
+
(y(), we(St, { to: "body" }, [
|
|
1856
|
+
x.status || a.value ? (y(), C("div", {
|
|
1857
1857
|
key: 0,
|
|
1858
1858
|
ref_key: "tooltipRef",
|
|
1859
1859
|
ref: l,
|
|
1860
|
-
class:
|
|
1861
|
-
style:
|
|
1860
|
+
class: m(["qa-tooltip", f(ge).bubble]),
|
|
1861
|
+
style: Oe(f(c)),
|
|
1862
1862
|
onMouseenter: g,
|
|
1863
1863
|
onMouseleave: k
|
|
1864
1864
|
}, [
|
|
1865
|
-
|
|
1866
|
-
class:
|
|
1865
|
+
S("div", {
|
|
1866
|
+
class: m(f(ge).bubble__content)
|
|
1867
1867
|
}, [
|
|
1868
|
-
|
|
1869
|
-
|
|
1868
|
+
S("div", { innerHTML: u.value }, null, 8, Ho),
|
|
1869
|
+
Pe(x.$slots, "contentSlot")
|
|
1870
1870
|
], 2),
|
|
1871
|
-
|
|
1871
|
+
S("div", {
|
|
1872
1872
|
ref_key: "floatingArrowRef",
|
|
1873
1873
|
ref: r,
|
|
1874
|
-
class:
|
|
1875
|
-
style:
|
|
1874
|
+
class: m(f(ge).arrow),
|
|
1875
|
+
style: Oe(R.value)
|
|
1876
1876
|
}, null, 6)
|
|
1877
1877
|
], 38)) : L("", !0)
|
|
1878
1878
|
])),
|
|
1879
|
-
|
|
1879
|
+
S("div", {
|
|
1880
1880
|
id: x.id,
|
|
1881
1881
|
ref_key: "triggerRef",
|
|
1882
1882
|
ref: i,
|
|
1883
|
-
class:
|
|
1883
|
+
class: m(f(ge).trigger),
|
|
1884
1884
|
onMouseenter: g,
|
|
1885
1885
|
onMouseleave: k
|
|
1886
1886
|
}, [
|
|
1887
|
-
x.iconName ? (y(),
|
|
1887
|
+
x.iconName ? (y(), we(f(be), {
|
|
1888
1888
|
key: 0,
|
|
1889
|
-
color:
|
|
1889
|
+
color: f(ge).trigger__icon,
|
|
1890
1890
|
name: x.iconName
|
|
1891
|
-
}, null, 8, ["color", "name"])) :
|
|
1892
|
-
], 42,
|
|
1891
|
+
}, null, 8, ["color", "name"])) : Pe(x.$slots, "default", { key: 1 })
|
|
1892
|
+
], 42, No)
|
|
1893
|
+
], 64));
|
|
1894
|
+
}
|
|
1895
|
+
}), Wo = "_modalWrapper_192bl_36", jo = "_medium_192bl_45", Go = "_small_192bl_52", Yo = "_section_192bl_58", Uo = "_modal_192bl_36", Xo = "_close_192bl_75", qo = "_header_192bl_86", Ko = "_footer_192bl_100", Qo = "_modalOverlay_192bl_110", Z = {
|
|
1896
|
+
modalWrapper: Wo,
|
|
1897
|
+
medium: jo,
|
|
1898
|
+
small: Go,
|
|
1899
|
+
section: Yo,
|
|
1900
|
+
modal: Uo,
|
|
1901
|
+
close: Xo,
|
|
1902
|
+
header: qo,
|
|
1903
|
+
footer: Ko,
|
|
1904
|
+
modalOverlay: Qo
|
|
1905
|
+
}, Zo = /* @__PURE__ */ Y({
|
|
1906
|
+
__name: "Modal",
|
|
1907
|
+
props: {
|
|
1908
|
+
title: {},
|
|
1909
|
+
isOpen: { type: Boolean },
|
|
1910
|
+
size: {},
|
|
1911
|
+
cancelText: {},
|
|
1912
|
+
submitText: {},
|
|
1913
|
+
hasOverlay: { type: Boolean, default: !0 }
|
|
1914
|
+
},
|
|
1915
|
+
emits: ["close", "submit"],
|
|
1916
|
+
setup(e, { emit: t }) {
|
|
1917
|
+
const o = e, n = E(!1), s = t, l = () => {
|
|
1918
|
+
s("close");
|
|
1919
|
+
}, i = () => {
|
|
1920
|
+
s("submit");
|
|
1921
|
+
}, r = (a) => {
|
|
1922
|
+
a.key === "Escape" && s("close");
|
|
1923
|
+
};
|
|
1924
|
+
return Ae(async () => {
|
|
1925
|
+
await it(), n.value = !0, window.addEventListener("keydown", r);
|
|
1926
|
+
}), at(() => {
|
|
1927
|
+
window.removeEventListener("keydown", r);
|
|
1928
|
+
}), (a, u) => (y(), C(ve, null, [
|
|
1929
|
+
a.hasOverlay ? (y(), C("div", {
|
|
1930
|
+
key: 0,
|
|
1931
|
+
class: m(f(Z).modalOverlay),
|
|
1932
|
+
onClick: l
|
|
1933
|
+
}, null, 2)) : L("", !0),
|
|
1934
|
+
$e(Rt, { name: "modal-transition" }, {
|
|
1935
|
+
default: Et(() => [
|
|
1936
|
+
Ve(S("div", {
|
|
1937
|
+
class: m([f(Z).modalWrapper, f(Z)[o.size]])
|
|
1938
|
+
}, [
|
|
1939
|
+
S("div", {
|
|
1940
|
+
class: m([f(Z).modal, f(Z)[o.size]])
|
|
1941
|
+
}, [
|
|
1942
|
+
S("button", {
|
|
1943
|
+
class: m(f(Z).close),
|
|
1944
|
+
onClick: l
|
|
1945
|
+
}, " × ", 2),
|
|
1946
|
+
S("div", {
|
|
1947
|
+
class: m(f(Z).header)
|
|
1948
|
+
}, [
|
|
1949
|
+
S("p", null, P(a.title), 1)
|
|
1950
|
+
], 2),
|
|
1951
|
+
S("div", {
|
|
1952
|
+
class: m(f(Z).section)
|
|
1953
|
+
}, [
|
|
1954
|
+
Pe(a.$slots, "section", {}, void 0, !0)
|
|
1955
|
+
], 2),
|
|
1956
|
+
S("div", {
|
|
1957
|
+
class: m(f(Z).footer)
|
|
1958
|
+
}, [
|
|
1959
|
+
$e(f(Qe), {
|
|
1960
|
+
color: "secondary",
|
|
1961
|
+
variant: "text",
|
|
1962
|
+
label: o.cancelText,
|
|
1963
|
+
onClick: l
|
|
1964
|
+
}, null, 8, ["label"]),
|
|
1965
|
+
$e(f(Qe), {
|
|
1966
|
+
color: "primary",
|
|
1967
|
+
variant: "solid",
|
|
1968
|
+
label: o.submitText,
|
|
1969
|
+
onClick: i
|
|
1970
|
+
}, null, 8, ["label"])
|
|
1971
|
+
], 2)
|
|
1972
|
+
], 2)
|
|
1973
|
+
], 2), [
|
|
1974
|
+
[lt, a.isOpen]
|
|
1975
|
+
])
|
|
1976
|
+
]),
|
|
1977
|
+
_: 3
|
|
1978
|
+
})
|
|
1893
1979
|
], 64));
|
|
1894
1980
|
}
|
|
1895
|
-
});
|
|
1981
|
+
}), ir = /* @__PURE__ */ ut(Zo, [["__scopeId", "data-v-1a9bc65a"]]);
|
|
1896
1982
|
export {
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1983
|
+
Qe as Button,
|
|
1984
|
+
er as DropdownMenu,
|
|
1985
|
+
be as Icon,
|
|
1986
|
+
ir as Modal,
|
|
1987
|
+
rr as NumberInput,
|
|
1988
|
+
tr as OnPageMessage,
|
|
1989
|
+
nr as SegmentButton,
|
|
1990
|
+
or as TextInput,
|
|
1991
|
+
sr as Toggle,
|
|
1992
|
+
lr as Tooltip
|
|
1906
1993
|
};
|
|
1907
1994
|
//# sourceMappingURL=ab-components.es.js.map
|