@useinsider/ab-components 0.0.31 → 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.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
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
3
|
button__size_default: At,
|
|
4
4
|
button__size_small: Lt,
|
|
@@ -33,7 +33,7 @@ const At = "_button__size_default_vssfh_1", Lt = "_button__size_small_vssfh_8",
|
|
|
33
33
|
"button__outline-smart": "_button__outline-smart_vssfh_941",
|
|
34
34
|
button__solid: zt,
|
|
35
35
|
fill: Bt
|
|
36
|
-
}, Vt = ["disabled"], Qe = /* @__PURE__ */
|
|
36
|
+
}, Vt = ["disabled"], Qe = /* @__PURE__ */ Y({
|
|
37
37
|
__name: "Button",
|
|
38
38
|
props: {
|
|
39
39
|
variant: {},
|
|
@@ -105,17 +105,17 @@ const At = "_button__size_default_vssfh_1", Lt = "_button__size_small_vssfh_8",
|
|
|
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
|
-
}, Ht = "_menu_1sfnf_1", Nt = "_dropdown_1sfnf_1", Wt = "_dropdown__valueContent_1sfnf_50", jt = "_dropdown__label_1sfnf_61",
|
|
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
109
|
menu: Ht,
|
|
110
110
|
dropdown: Nt,
|
|
111
111
|
dropdown__valueContent: Wt,
|
|
112
112
|
"dropdown__valueContent--open": "_dropdown__valueContent--open_1sfnf_58",
|
|
113
113
|
dropdown__label: jt,
|
|
114
|
-
dropdown__value:
|
|
115
|
-
dropdown__placeholder:
|
|
116
|
-
dropdown__arrowIcon:
|
|
117
|
-
menu__searchContainer:
|
|
118
|
-
menu__searchInputWrap:
|
|
114
|
+
dropdown__value: Gt,
|
|
115
|
+
dropdown__placeholder: Yt,
|
|
116
|
+
dropdown__arrowIcon: Ut,
|
|
117
|
+
menu__searchContainer: Xt,
|
|
118
|
+
menu__searchInputWrap: qt,
|
|
119
119
|
menu__searchInput: Kt,
|
|
120
120
|
"menu__searchInput--error": "_menu__searchInput--error_1sfnf_112",
|
|
121
121
|
menu__errorMessage: Qt,
|
|
@@ -123,7 +123,7 @@ const At = "_button__size_default_vssfh_1", Lt = "_button__size_small_vssfh_8",
|
|
|
123
123
|
menu__itemContainer: Jt,
|
|
124
124
|
menu__item: en,
|
|
125
125
|
"menu__item--active": "_menu__item--active_1sfnf_169"
|
|
126
|
-
}, tn = ["for"], nn = ["placeholder"], on = ["onClick"], er = /* @__PURE__ */
|
|
126
|
+
}, tn = ["for"], nn = ["placeholder"], on = ["onClick"], er = /* @__PURE__ */ Y({
|
|
127
127
|
__name: "DropdownMenu",
|
|
128
128
|
props: {
|
|
129
129
|
id: {},
|
|
@@ -143,10 +143,10 @@ const At = "_button__size_default_vssfh_1", Lt = "_button__size_small_vssfh_8",
|
|
|
143
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: O, offsetWidth: A } = l.value, D = window.innerHeight,
|
|
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
148
|
x: O + window.scrollX,
|
|
149
|
-
y: I ? w + window.scrollY :
|
|
149
|
+
y: I ? w + window.scrollY : X + window.scrollY,
|
|
150
150
|
width: A,
|
|
151
151
|
shouldOpenUp: I,
|
|
152
152
|
height: n.menuHeight
|
|
@@ -296,7 +296,7 @@ const At = "_button__size_default_vssfh_1", Lt = "_button__size_small_vssfh_8",
|
|
|
296
296
|
[f(z)["menu__item--active"]]: a.value && A.value === a.value.value
|
|
297
297
|
}
|
|
298
298
|
]),
|
|
299
|
-
onClick: (
|
|
299
|
+
onClick: (X) => k(A)
|
|
300
300
|
}, P(A.text), 11, on))), 128))
|
|
301
301
|
], 2)
|
|
302
302
|
], 6)), [
|
|
@@ -305,7 +305,7 @@ const At = "_button__size_default_vssfh_1", Lt = "_button__size_small_vssfh_8",
|
|
|
305
305
|
])
|
|
306
306
|
], 64));
|
|
307
307
|
}
|
|
308
|
-
}), rn = ["fill", "height", "width"], sn = ["xlink:href"], ln = /* @__PURE__ */
|
|
308
|
+
}), rn = ["fill", "height", "width"], sn = ["xlink:href"], ln = /* @__PURE__ */ Y({
|
|
309
309
|
__name: "Icon",
|
|
310
310
|
props: {
|
|
311
311
|
name: {},
|
|
@@ -337,7 +337,7 @@ const At = "_button__size_default_vssfh_1", Lt = "_button__size_small_vssfh_8",
|
|
|
337
337
|
container__warning: fn,
|
|
338
338
|
container__alert: dn,
|
|
339
339
|
container__success: _n
|
|
340
|
-
}, tr = /* @__PURE__ */
|
|
340
|
+
}, tr = /* @__PURE__ */ Y({
|
|
341
341
|
__name: "OnPageMessage",
|
|
342
342
|
props: {
|
|
343
343
|
variant: { default: "default" },
|
|
@@ -387,7 +387,7 @@ const At = "_button__size_default_vssfh_1", Lt = "_button__size_small_vssfh_8",
|
|
|
387
387
|
"segmentGroup--vertical": "_segmentGroup--vertical_1663t_207",
|
|
388
388
|
"segmentGroup--horizontal": "_segmentGroup--horizontal_1663t_216",
|
|
389
389
|
fill: bn
|
|
390
|
-
}, yn = ["disabled", "onClick"], nr = /* @__PURE__ */
|
|
390
|
+
}, yn = ["disabled", "onClick"], nr = /* @__PURE__ */ Y({
|
|
391
391
|
__name: "SegmentButton",
|
|
392
392
|
props: {
|
|
393
393
|
color: {},
|
|
@@ -449,7 +449,7 @@ const At = "_button__size_default_vssfh_1", Lt = "_button__size_small_vssfh_8",
|
|
|
449
449
|
wrapper: $n,
|
|
450
450
|
wrapper__bottom: On,
|
|
451
451
|
"wrapper--error": "_wrapper--error_rlffg_105"
|
|
452
|
-
}, Sn = ["for"], Rn = ["id", "maxlength", "name", "placeholder", "value"], En = ["id", "maxlength", "name", "placeholder", "value"], or = /* @__PURE__ */
|
|
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: {},
|
|
@@ -554,7 +554,7 @@ const At = "_button__size_default_vssfh_1", Lt = "_button__size_small_vssfh_8",
|
|
|
554
554
|
wrapper__size_small: Vn,
|
|
555
555
|
wrapper__bottom: Pn,
|
|
556
556
|
"wrapper--error": "_wrapper--error_86wjx_105"
|
|
557
|
-
}, Dn = ["for"], Fn = ["id", "max", "maxlength", "min", "name", "placeholder", "value"], rr = /* @__PURE__ */
|
|
557
|
+
}, Dn = ["for"], Fn = ["id", "max", "maxlength", "min", "name", "placeholder", "value"], rr = /* @__PURE__ */ Y({
|
|
558
558
|
__name: "NumberInput",
|
|
559
559
|
props: {
|
|
560
560
|
id: {},
|
|
@@ -631,13 +631,13 @@ const At = "_button__size_default_vssfh_1", Lt = "_button__size_small_vssfh_8",
|
|
|
631
631
|
], 2);
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
}), Hn = "_wrapper_1hnht_36", Nn = "_wrapper__label_1hnht_43", Wn = "_wrapper__input_1hnht_67", jn = "_wrapper_checked_1hnht_77",
|
|
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
635
|
wrapper: Hn,
|
|
636
636
|
wrapper__label: Nn,
|
|
637
637
|
wrapper__input: Wn,
|
|
638
638
|
wrapper_checked: jn,
|
|
639
|
-
wrapper_disabled:
|
|
640
|
-
},
|
|
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: {},
|
|
@@ -667,22 +667,22 @@ const At = "_button__size_default_vssfh_1", Lt = "_button__size_small_vssfh_8",
|
|
|
667
667
|
disabled: l.disabled,
|
|
668
668
|
name: l.name,
|
|
669
669
|
onClick: s
|
|
670
|
-
}, null, 10,
|
|
670
|
+
}, null, 10, Yn),
|
|
671
671
|
S("label", {
|
|
672
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
|
};
|
|
@@ -721,7 +721,7 @@ function Qn(e) {
|
|
|
721
721
|
return [Fe(e), t, Fe(t)];
|
|
722
722
|
}
|
|
723
723
|
function Fe(e) {
|
|
724
|
-
return e.replace(/start|end/g, (t) =>
|
|
724
|
+
return e.replace(/start|end/g, (t) => qn[t]);
|
|
725
725
|
}
|
|
726
726
|
function Zn(e, t, o) {
|
|
727
727
|
const n = ["left", "right"], s = ["right", "left"], l = ["top", "bottom"], i = ["bottom", "top"];
|
|
@@ -742,7 +742,7 @@ function Jn(e, t, o, n) {
|
|
|
742
742
|
return s && (l = l.map((i) => i + "-" + s), t && (l = l.concat(l.map(Fe)))), l;
|
|
743
743
|
}
|
|
744
744
|
function Re(e) {
|
|
745
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
745
|
+
return e.replace(/left|right|bottom|top/g, (t) => Xn[t]);
|
|
746
746
|
}
|
|
747
747
|
function eo(e) {
|
|
748
748
|
return {
|
|
@@ -957,17 +957,17 @@ const no = (e) => ({
|
|
|
957
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
958
|
let $ = M ? M[T] : 0;
|
|
959
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,
|
|
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
964
|
[d]: ae,
|
|
965
965
|
centerOffset: I - ae - W,
|
|
966
|
-
...
|
|
966
|
+
...q && {
|
|
967
967
|
alignmentOffset: W
|
|
968
968
|
}
|
|
969
969
|
},
|
|
970
|
-
reset:
|
|
970
|
+
reset: q
|
|
971
971
|
};
|
|
972
972
|
}
|
|
973
973
|
}), oo = function(e) {
|
|
@@ -1018,12 +1018,12 @@ const no = (e) => ({
|
|
|
1018
1018
|
placement: ae
|
|
1019
1019
|
}
|
|
1020
1020
|
};
|
|
1021
|
-
let
|
|
1022
|
-
if (!
|
|
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
1023
|
switch (d) {
|
|
1024
1024
|
case "bestFit": {
|
|
1025
|
-
var
|
|
1026
|
-
const W = (
|
|
1025
|
+
var X;
|
|
1026
|
+
const W = (X = O.filter((J) => {
|
|
1027
1027
|
if (M) {
|
|
1028
1028
|
const ee = pe(J.placement);
|
|
1029
1029
|
return ee === k || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -1031,18 +1031,18 @@ const no = (e) => ({
|
|
|
1031
1031
|
ee === "y";
|
|
1032
1032
|
}
|
|
1033
1033
|
return !0;
|
|
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 :
|
|
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
|
}
|
|
@@ -1160,23 +1160,23 @@ function Le() {
|
|
|
1160
1160
|
return typeof window < "u";
|
|
1161
1161
|
}
|
|
1162
1162
|
function ie(e) {
|
|
1163
|
-
return
|
|
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
|
|
1173
|
+
function Ge(e) {
|
|
1174
1174
|
return Le() ? e instanceof Node || e instanceof F(e).Node : !1;
|
|
1175
1175
|
}
|
|
1176
1176
|
function H(e) {
|
|
1177
1177
|
return Le() ? e instanceof Element || e instanceof F(e).Element : !1;
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function G(e) {
|
|
1180
1180
|
return Le() ? e instanceof HTMLElement || e instanceof F(e).HTMLElement : !1;
|
|
1181
1181
|
}
|
|
1182
1182
|
function Je(e) {
|
|
@@ -1203,14 +1203,14 @@ function Ie(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
1210
|
function ao(e) {
|
|
1211
1211
|
let t = oe(e);
|
|
1212
|
-
for (;
|
|
1213
|
-
if (
|
|
1212
|
+
for (; G(t) && !me(t); ) {
|
|
1213
|
+
if (Ye(t))
|
|
1214
1214
|
return t;
|
|
1215
1215
|
if (Ie(t))
|
|
1216
1216
|
return null;
|
|
@@ -1218,7 +1218,7 @@ function ao(e) {
|
|
|
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
1224
|
function me(e) {
|
|
@@ -1244,13 +1244,13 @@ function oe(e) {
|
|
|
1244
1244
|
e.assignedSlot || // DOM Element detected.
|
|
1245
1245
|
e.parentNode || // ShadowRoot detected.
|
|
1246
1246
|
Je(e) && e.host || // Fallback.
|
|
1247
|
-
|
|
1247
|
+
U(e)
|
|
1248
1248
|
);
|
|
1249
1249
|
return Je(t) ? t.host : t;
|
|
1250
1250
|
}
|
|
1251
1251
|
function _t(e) {
|
|
1252
1252
|
const t = oe(e);
|
|
1253
|
-
return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
1253
|
+
return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : G(t) && Ce(t) ? t : _t(t);
|
|
1254
1254
|
}
|
|
1255
1255
|
function ye(e, t, o) {
|
|
1256
1256
|
var n;
|
|
@@ -1268,19 +1268,19 @@ function He(e) {
|
|
|
1268
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 =
|
|
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
1281
|
function de(e) {
|
|
1282
|
-
const t =
|
|
1283
|
-
if (!
|
|
1282
|
+
const t = Xe(e);
|
|
1283
|
+
if (!G(t))
|
|
1284
1284
|
return j(1);
|
|
1285
1285
|
const o = t.getBoundingClientRect(), {
|
|
1286
1286
|
width: n,
|
|
@@ -1296,7 +1296,7 @@ function de(e) {
|
|
|
1296
1296
|
const uo = /* @__PURE__ */ j(0);
|
|
1297
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
|
};
|
|
@@ -1306,7 +1306,7 @@ function co(e, t, o) {
|
|
|
1306
1306
|
}
|
|
1307
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
1311
|
t && (n ? H(n) && (i = de(n)) : i = de(e));
|
|
1312
1312
|
const r = co(l, o, n) ? mt(l) : j(0);
|
|
@@ -1326,15 +1326,15 @@ function le(e, t, o, n) {
|
|
|
1326
1326
|
y: u
|
|
1327
1327
|
});
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function qe(e, t) {
|
|
1330
1330
|
const o = Me(e).scrollLeft;
|
|
1331
|
-
return t ? t.left + o : le(
|
|
1331
|
+
return t ? t.left + o : le(U(e)).left + o;
|
|
1332
1332
|
}
|
|
1333
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,
|
|
@@ -1348,15 +1348,15 @@ function fo(e) {
|
|
|
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 = {
|
|
1355
1355
|
scrollLeft: 0,
|
|
1356
1356
|
scrollTop: 0
|
|
1357
1357
|
}, u = j(1);
|
|
1358
|
-
const c = j(0), _ =
|
|
1359
|
-
if ((_ || !_ && !l) && ((ie(n) !== "body" || Ce(i)) && (a = Me(n)),
|
|
1358
|
+
const c = j(0), _ = G(n);
|
|
1359
|
+
if ((_ || !_ && !l) && ((ie(n) !== "body" || Ce(i)) && (a = Me(n)), G(n))) {
|
|
1360
1360
|
const d = le(n);
|
|
1361
1361
|
u = de(n), c.x = d.x + n.clientLeft, c.y = d.y + n.clientTop;
|
|
1362
1362
|
}
|
|
@@ -1372,8 +1372,8 @@ function _o(e) {
|
|
|
1372
1372
|
return Array.from(e.getClientRects());
|
|
1373
1373
|
}
|
|
1374
1374
|
function po(e) {
|
|
1375
|
-
const t =
|
|
1376
|
-
let i = -o.scrollLeft +
|
|
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
1378
|
return N(n).direction === "rtl" && (i += re(t.clientWidth, n.clientWidth) - s), {
|
|
1379
1379
|
width: s,
|
|
@@ -1383,11 +1383,11 @@ function po(e) {
|
|
|
1383
1383
|
};
|
|
1384
1384
|
}
|
|
1385
1385
|
function mo(e, t) {
|
|
1386
|
-
const o = F(e), n =
|
|
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 {
|
|
@@ -1398,7 +1398,7 @@ function mo(e, t) {
|
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
1400
|
function ho(e, t) {
|
|
1401
|
-
const o = le(e, !0, t === "fixed"), n = o.top + e.clientTop, s = o.left + e.clientLeft, l =
|
|
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,
|
|
@@ -1411,7 +1411,7 @@ function et(e, t, o) {
|
|
|
1411
1411
|
if (t === "viewport")
|
|
1412
1412
|
n = mo(e, o);
|
|
1413
1413
|
else if (t === "document")
|
|
1414
|
-
n = po(
|
|
1414
|
+
n = po(U(e));
|
|
1415
1415
|
else if (H(t))
|
|
1416
1416
|
n = ho(t, o);
|
|
1417
1417
|
else {
|
|
@@ -1437,7 +1437,7 @@ function go(e, t) {
|
|
|
1437
1437
|
const l = N(e).position === "fixed";
|
|
1438
1438
|
let i = l ? oe(e) : e;
|
|
1439
1439
|
for (; H(i) && !me(i); ) {
|
|
1440
|
-
const r = N(i), a =
|
|
1440
|
+
const r = N(i), a = Ye(i);
|
|
1441
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;
|
|
@@ -1471,7 +1471,7 @@ function vo(e) {
|
|
|
1471
1471
|
};
|
|
1472
1472
|
}
|
|
1473
1473
|
function bo(e, t, o) {
|
|
1474
|
-
const n =
|
|
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
|
|
@@ -1481,7 +1481,7 @@ function bo(e, t, o) {
|
|
|
1481
1481
|
if ((ie(t) !== "body" || Ce(s)) && (r = Me(t)), n) {
|
|
1482
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 =
|
|
1484
|
+
} else s && (a.x = qe(s));
|
|
1485
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,
|
|
@@ -1494,18 +1494,18 @@ function Be(e) {
|
|
|
1494
1494
|
return N(e).position === "static";
|
|
1495
1495
|
}
|
|
1496
1496
|
function tt(e, t) {
|
|
1497
|
-
if (!
|
|
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
1504
|
function wt(e, t) {
|
|
1505
1505
|
const o = F(e);
|
|
1506
1506
|
if (Ie(e))
|
|
1507
1507
|
return o;
|
|
1508
|
-
if (!
|
|
1508
|
+
if (!G(e)) {
|
|
1509
1509
|
let s = oe(e);
|
|
1510
1510
|
for (; s && !me(s); ) {
|
|
1511
1511
|
if (H(s) && !Be(s))
|
|
@@ -1517,7 +1517,7 @@ function wt(e, t) {
|
|
|
1517
1517
|
let n = tt(e, t);
|
|
1518
1518
|
for (; n && io(n) && Be(n); )
|
|
1519
1519
|
n = tt(n, t);
|
|
1520
|
-
return n && me(n) && Be(n) && !
|
|
1520
|
+
return n && me(n) && Be(n) && !Ye(n) ? o : n || ao(e) || o;
|
|
1521
1521
|
}
|
|
1522
1522
|
const yo = async function(e) {
|
|
1523
1523
|
const t = this.getOffsetParent || wt, o = this.getDimensions, n = await o(e.floating);
|
|
@@ -1536,7 +1536,7 @@ function xo(e) {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
const ko = {
|
|
1538
1538
|
convertOffsetParentRelativeRectToViewportRelativeRect: fo,
|
|
1539
|
-
getDocumentElement:
|
|
1539
|
+
getDocumentElement: U,
|
|
1540
1540
|
getClippingRect: wo,
|
|
1541
1541
|
getOffsetParent: wt,
|
|
1542
1542
|
getElementRects: yo,
|
|
@@ -1551,7 +1551,7 @@ function vt(e, t) {
|
|
|
1551
1551
|
}
|
|
1552
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;
|
|
@@ -1603,7 +1603,7 @@ function To(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
|
|
@@ -1650,7 +1650,7 @@ function Ao(e) {
|
|
|
1650
1650
|
function Ne(e) {
|
|
1651
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
|
}
|
|
@@ -1787,7 +1787,7 @@ const Bo = "_bubble_1jxs4_1", Vo = "_trigger_1jxs4_43", Po = "_trigger__icon_1jx
|
|
|
1787
1787
|
trigger__icon: Po,
|
|
1788
1788
|
arrow: Do,
|
|
1789
1789
|
bubble__content: Fo
|
|
1790
|
-
}, Ho = ["innerHTML"], No = ["id"], rt = 1e3, lr = /* @__PURE__ */
|
|
1790
|
+
}, Ho = ["innerHTML"], No = ["id"], rt = 1e3, lr = /* @__PURE__ */ Y({
|
|
1791
1791
|
__name: "Tooltip",
|
|
1792
1792
|
props: {
|
|
1793
1793
|
id: {},
|
|
@@ -1892,17 +1892,17 @@ const Bo = "_bubble_1jxs4_1", Vo = "_trigger_1jxs4_43", Po = "_trigger__icon_1jx
|
|
|
1892
1892
|
], 42, No)
|
|
1893
1893
|
], 64));
|
|
1894
1894
|
}
|
|
1895
|
-
}), Wo = "
|
|
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
1896
|
modalWrapper: Wo,
|
|
1897
1897
|
medium: jo,
|
|
1898
|
-
small:
|
|
1899
|
-
section:
|
|
1900
|
-
modal:
|
|
1901
|
-
close:
|
|
1902
|
-
header:
|
|
1898
|
+
small: Go,
|
|
1899
|
+
section: Yo,
|
|
1900
|
+
modal: Uo,
|
|
1901
|
+
close: Xo,
|
|
1902
|
+
header: qo,
|
|
1903
1903
|
footer: Ko,
|
|
1904
1904
|
modalOverlay: Qo
|
|
1905
|
-
}, Zo = /* @__PURE__ */
|
|
1905
|
+
}, Zo = /* @__PURE__ */ Y({
|
|
1906
1906
|
__name: "Modal",
|
|
1907
1907
|
props: {
|
|
1908
1908
|
title: {},
|