@squirrel-cloud/ui-vue 0.2.0 → 0.2.2
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/README.md +0 -70
- package/dist/components/card/SqCard.d.ts +22 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/components/popover/SqPopover.d.ts +1 -1
- package/dist/components/progress/SqProgress.d.ts +7 -0
- package/dist/props/card/SqCard.d.ts +13 -0
- package/dist/props/index.d.ts +3 -1
- package/dist/props/popover/SqPopover.d.ts +1 -2
- package/dist/props/progress/SqProgress.d.ts +26 -0
- package/dist/squirrel-cloud-ui-vue.js +545 -488
- package/dist/squirrel-cloud-ui-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
2
|
-
const
|
|
1
|
+
import { createElementBlock as _, openBlock as C, createElementVNode as J, defineComponent as z, computed as w, normalizeClass as M, createVNode as Xt, unref as H, withCtx as ft, createBlock as Q, createCommentVNode as st, renderSlot as T, resolveDynamicComponent as xt, useSlots as Ut, toDisplayString as le, mergeModels as bt, useModel as Yt, useTemplateRef as St, withDirectives as Kt, vModelText as ce, ref as nt, shallowRef as ae, watch as yt, getCurrentScope as ue, onScopeDispose as fe, shallowReadonly as Y, onBeforeUnmount as de, Fragment as pe, withModifiers as qt, Teleport as me, Transition as he, normalizeStyle as At, vShow as ge } from "vue";
|
|
2
|
+
const ve = (t, e) => {
|
|
3
3
|
const n = t.__vccOpts || t;
|
|
4
|
-
for (const [o,
|
|
5
|
-
n[o] =
|
|
4
|
+
for (const [o, s] of e)
|
|
5
|
+
n[o] = s;
|
|
6
6
|
return n;
|
|
7
|
-
},
|
|
7
|
+
}, ye = {}, we = {
|
|
8
8
|
class: "sq-icon is-loading",
|
|
9
9
|
"data-icon": "loading"
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
return C(),
|
|
13
|
-
|
|
11
|
+
function xe(t, e) {
|
|
12
|
+
return C(), _("span", we, e[0] || (e[0] = [
|
|
13
|
+
J("svg", {
|
|
14
14
|
viewBox: "0 0 48 48",
|
|
15
15
|
version: "1.1",
|
|
16
16
|
xmlns: "http://www.w3.org/2000/svg"
|
|
17
17
|
}, [
|
|
18
|
-
|
|
18
|
+
J("circle", {
|
|
19
19
|
cx: "24",
|
|
20
20
|
cy: "24",
|
|
21
21
|
r: "20"
|
|
@@ -23,7 +23,7 @@ function ye(t, e) {
|
|
|
23
23
|
], -1)
|
|
24
24
|
]));
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const be = /* @__PURE__ */ ve(ye, [["render", xe]]), Se = ["disabled"], On = /* @__PURE__ */ z({
|
|
27
27
|
__name: "SqButton",
|
|
28
28
|
props: {
|
|
29
29
|
type: {},
|
|
@@ -35,32 +35,60 @@ const xe = /* @__PURE__ */ ge(ve, [["render", ye]]), be = ["disabled"], Sn = /*
|
|
|
35
35
|
size: { default: "md" }
|
|
36
36
|
},
|
|
37
37
|
setup(t) {
|
|
38
|
-
const e = t, n =
|
|
39
|
-
const
|
|
40
|
-
return e.size !== "md" &&
|
|
41
|
-
}), o =
|
|
42
|
-
return (
|
|
43
|
-
class:
|
|
44
|
-
disabled:
|
|
38
|
+
const e = t, n = w(() => {
|
|
39
|
+
const i = [];
|
|
40
|
+
return e.size !== "md" && i.push(`sq-button--${e.size}`), e.type && i.push(`is-${e.type}`), e.round && i.push("is-round"), e.text && i.push("is-text"), i;
|
|
41
|
+
}), o = w(() => e.loading ? be : e.icon), s = w(() => e.loading || e.disabled);
|
|
42
|
+
return (i, r) => (C(), _("button", {
|
|
43
|
+
class: M(["sq-button", n.value]),
|
|
44
|
+
disabled: s.value
|
|
45
45
|
}, [
|
|
46
|
-
Xt(
|
|
46
|
+
Xt(H(kt), {
|
|
47
47
|
size: e.size
|
|
48
48
|
}, {
|
|
49
|
-
default:
|
|
50
|
-
o.value ? (C(),
|
|
51
|
-
|
|
49
|
+
default: ft(() => [
|
|
50
|
+
o.value ? (C(), Q(xt(o.value), { key: 0 })) : st("", !0),
|
|
51
|
+
T(i.$slots, "default")
|
|
52
52
|
]),
|
|
53
53
|
_: 3
|
|
54
54
|
}, 8, ["size"])
|
|
55
|
-
], 10,
|
|
55
|
+
], 10, Se));
|
|
56
|
+
}
|
|
57
|
+
}), Re = { class: "sq-card" }, Ce = {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: "sq-card-header"
|
|
60
|
+
}, Le = ["textContent"], Ae = {
|
|
61
|
+
key: 1,
|
|
62
|
+
class: "sq-card-footer"
|
|
63
|
+
}, _n = /* @__PURE__ */ z({
|
|
64
|
+
__name: "SqCard",
|
|
65
|
+
props: {
|
|
66
|
+
title: {},
|
|
67
|
+
decorative: { type: Boolean, default: !1 }
|
|
68
|
+
},
|
|
69
|
+
setup(t) {
|
|
70
|
+
const e = Ut(), n = t;
|
|
71
|
+
return (o, s) => (C(), _("div", Re, [
|
|
72
|
+
n.title || H(e).title ? (C(), _("div", Ce, [
|
|
73
|
+
J("h2", {
|
|
74
|
+
class: M({ "has-decorative": n.decorative }),
|
|
75
|
+
textContent: le(n.title)
|
|
76
|
+
}, null, 10, Le),
|
|
77
|
+
T(o.$slots, "title")
|
|
78
|
+
])) : st("", !0),
|
|
79
|
+
T(o.$slots, "default"),
|
|
80
|
+
H(e).footer ? (C(), _("div", Ae, [
|
|
81
|
+
T(o.$slots, "footer")
|
|
82
|
+
])) : st("", !0)
|
|
83
|
+
]));
|
|
56
84
|
}
|
|
57
|
-
}),
|
|
85
|
+
}), Oe = {
|
|
58
86
|
key: 0,
|
|
59
87
|
class: "sq-input-prefix"
|
|
60
|
-
},
|
|
88
|
+
}, _e = ["disabled", "readonly"], Te = {
|
|
61
89
|
key: 1,
|
|
62
90
|
class: "sq-input-suffix"
|
|
63
|
-
},
|
|
91
|
+
}, Tn = /* @__PURE__ */ z({
|
|
64
92
|
__name: "SqInput",
|
|
65
93
|
props: /* @__PURE__ */ bt({
|
|
66
94
|
status: {},
|
|
@@ -77,13 +105,13 @@ const xe = /* @__PURE__ */ ge(ve, [["render", ye]]), be = ["disabled"], Sn = /*
|
|
|
77
105
|
}),
|
|
78
106
|
emits: /* @__PURE__ */ bt(["focus", "blur", "input", "change"], ["update:value"]),
|
|
79
107
|
setup(t, { expose: e, emit: n }) {
|
|
80
|
-
const o =
|
|
108
|
+
const o = Ut(), s = n, i = t, r = Yt(t, "value"), l = St("inputRef"), a = w(() => {
|
|
81
109
|
const p = [];
|
|
82
|
-
return
|
|
83
|
-
}), c =
|
|
84
|
-
const p =
|
|
85
|
-
return o.suffix || p ||
|
|
86
|
-
}), f =
|
|
110
|
+
return i.size !== "md" && p.push(`sq-input--${i.size}`), i.status && p.push(`is-${i.status}`), i.round && p.push("is-round"), i.disabled && p.push("is-disabled"), p;
|
|
111
|
+
}), c = w(() => o.prefix || i.prefixIcon), u = w(() => {
|
|
112
|
+
const p = i.showStatusIcon && i.status;
|
|
113
|
+
return o.suffix || p || i.suffixIcon;
|
|
114
|
+
}), f = w(() => i.suffixIcon);
|
|
87
115
|
function m() {
|
|
88
116
|
var p;
|
|
89
117
|
(p = l.value) == null || p.focus();
|
|
@@ -92,104 +120,104 @@ const xe = /* @__PURE__ */ ge(ve, [["render", ye]]), be = ["disabled"], Sn = /*
|
|
|
92
120
|
var p;
|
|
93
121
|
(p = l.value) == null || p.blur();
|
|
94
122
|
}
|
|
95
|
-
return e({ focus: m, blur: d }), (p, h) => (C(),
|
|
96
|
-
class:
|
|
123
|
+
return e({ focus: m, blur: d }), (p, h) => (C(), _("section", {
|
|
124
|
+
class: M(["sq-input", a.value])
|
|
97
125
|
}, [
|
|
98
|
-
c.value ? (C(),
|
|
99
|
-
|
|
100
|
-
(C(),
|
|
126
|
+
c.value ? (C(), _("span", Oe, [
|
|
127
|
+
T(p.$slots, "prefix", {}, () => [
|
|
128
|
+
(C(), Q(xt(i.prefixIcon)))
|
|
101
129
|
])
|
|
102
|
-
])) :
|
|
103
|
-
|
|
130
|
+
])) : st("", !0),
|
|
131
|
+
Kt(J("input", {
|
|
104
132
|
"onUpdate:modelValue": h[0] || (h[0] = (g) => r.value = g),
|
|
105
133
|
class: "sq-input-inner",
|
|
106
|
-
disabled:
|
|
107
|
-
readonly:
|
|
134
|
+
disabled: i.disabled,
|
|
135
|
+
readonly: i.readonly,
|
|
108
136
|
ref_key: "inputRef",
|
|
109
137
|
ref: l,
|
|
110
|
-
onFocus: h[1] || (h[1] = (g) =>
|
|
111
|
-
onBlur: h[2] || (h[2] = (g) =>
|
|
112
|
-
onInput: h[3] || (h[3] = (g) =>
|
|
113
|
-
onChange: h[4] || (h[4] = (g) =>
|
|
114
|
-
}, null, 40,
|
|
115
|
-
[
|
|
138
|
+
onFocus: h[1] || (h[1] = (g) => s("focus", g)),
|
|
139
|
+
onBlur: h[2] || (h[2] = (g) => s("blur", g)),
|
|
140
|
+
onInput: h[3] || (h[3] = (g) => s("input", g)),
|
|
141
|
+
onChange: h[4] || (h[4] = (g) => s("change", g))
|
|
142
|
+
}, null, 40, _e), [
|
|
143
|
+
[ce, r.value]
|
|
116
144
|
]),
|
|
117
|
-
u.value ? (C(),
|
|
118
|
-
|
|
119
|
-
(C(),
|
|
145
|
+
u.value ? (C(), _("span", Te, [
|
|
146
|
+
T(p.$slots, "suffix", {}, () => [
|
|
147
|
+
(C(), Q(xt(f.value)))
|
|
120
148
|
])
|
|
121
|
-
])) :
|
|
149
|
+
])) : st("", !0)
|
|
122
150
|
], 2));
|
|
123
151
|
}
|
|
124
|
-
}), Rt = Math.min,
|
|
152
|
+
}), Rt = Math.min, K = Math.max, ct = Math.round, lt = Math.floor, k = (t) => ({
|
|
125
153
|
x: t,
|
|
126
154
|
y: t
|
|
127
|
-
}),
|
|
155
|
+
}), Ee = {
|
|
128
156
|
left: "right",
|
|
129
157
|
right: "left",
|
|
130
158
|
bottom: "top",
|
|
131
159
|
top: "bottom"
|
|
132
|
-
},
|
|
160
|
+
}, $e = {
|
|
133
161
|
start: "end",
|
|
134
162
|
end: "start"
|
|
135
163
|
};
|
|
136
|
-
function
|
|
164
|
+
function Ot(t, e) {
|
|
137
165
|
return typeof t == "function" ? t(e) : t;
|
|
138
166
|
}
|
|
139
|
-
function
|
|
167
|
+
function Z(t) {
|
|
140
168
|
return t.split("-")[0];
|
|
141
169
|
}
|
|
142
|
-
function
|
|
170
|
+
function dt(t) {
|
|
143
171
|
return t.split("-")[1];
|
|
144
172
|
}
|
|
145
|
-
function
|
|
173
|
+
function ke(t) {
|
|
146
174
|
return t === "x" ? "y" : "x";
|
|
147
175
|
}
|
|
148
|
-
function
|
|
176
|
+
function Gt(t) {
|
|
149
177
|
return t === "y" ? "height" : "width";
|
|
150
178
|
}
|
|
151
|
-
const
|
|
152
|
-
function
|
|
153
|
-
return
|
|
179
|
+
const Be = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
180
|
+
function W(t) {
|
|
181
|
+
return Be.has(Z(t)) ? "y" : "x";
|
|
154
182
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
183
|
+
function Jt(t) {
|
|
184
|
+
return ke(W(t));
|
|
157
185
|
}
|
|
158
|
-
function
|
|
186
|
+
function Pe(t, e, n) {
|
|
159
187
|
n === void 0 && (n = !1);
|
|
160
|
-
const o =
|
|
161
|
-
let r =
|
|
162
|
-
return e.reference[
|
|
188
|
+
const o = dt(t), s = Jt(t), i = Gt(s);
|
|
189
|
+
let r = s === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
190
|
+
return e.reference[i] > e.floating[i] && (r = at(r)), [r, at(r)];
|
|
163
191
|
}
|
|
164
|
-
function
|
|
165
|
-
const e =
|
|
192
|
+
function De(t) {
|
|
193
|
+
const e = at(t);
|
|
166
194
|
return [Ct(t), e, Ct(e)];
|
|
167
195
|
}
|
|
168
196
|
function Ct(t) {
|
|
169
|
-
return t.replace(/start|end/g, (e) =>
|
|
197
|
+
return t.replace(/start|end/g, (e) => $e[e]);
|
|
170
198
|
}
|
|
171
|
-
const zt = ["left", "right"], Mt = ["right", "left"],
|
|
172
|
-
function
|
|
199
|
+
const zt = ["left", "right"], Mt = ["right", "left"], qe = ["top", "bottom"], ze = ["bottom", "top"];
|
|
200
|
+
function Me(t, e, n) {
|
|
173
201
|
switch (t) {
|
|
174
202
|
case "top":
|
|
175
203
|
case "bottom":
|
|
176
204
|
return n ? e ? Mt : zt : e ? zt : Mt;
|
|
177
205
|
case "left":
|
|
178
206
|
case "right":
|
|
179
|
-
return e ?
|
|
207
|
+
return e ? qe : ze;
|
|
180
208
|
default:
|
|
181
209
|
return [];
|
|
182
210
|
}
|
|
183
211
|
}
|
|
184
|
-
function
|
|
185
|
-
const
|
|
186
|
-
let
|
|
187
|
-
return
|
|
212
|
+
function Ve(t, e, n, o) {
|
|
213
|
+
const s = dt(t);
|
|
214
|
+
let i = Me(Z(t), n === "start", o);
|
|
215
|
+
return s && (i = i.map((r) => r + "-" + s), e && (i = i.concat(i.map(Ct)))), i;
|
|
188
216
|
}
|
|
189
|
-
function
|
|
190
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
217
|
+
function at(t) {
|
|
218
|
+
return t.replace(/left|right|bottom|top/g, (e) => Ee[e]);
|
|
191
219
|
}
|
|
192
|
-
function
|
|
220
|
+
function Fe(t) {
|
|
193
221
|
return {
|
|
194
222
|
top: 0,
|
|
195
223
|
right: 0,
|
|
@@ -198,28 +226,28 @@ function $e(t) {
|
|
|
198
226
|
...t
|
|
199
227
|
};
|
|
200
228
|
}
|
|
201
|
-
function
|
|
202
|
-
return typeof t != "number" ?
|
|
229
|
+
function Ne(t) {
|
|
230
|
+
return typeof t != "number" ? Fe(t) : {
|
|
203
231
|
top: t,
|
|
204
232
|
right: t,
|
|
205
233
|
bottom: t,
|
|
206
234
|
left: t
|
|
207
235
|
};
|
|
208
236
|
}
|
|
209
|
-
function
|
|
237
|
+
function ut(t) {
|
|
210
238
|
const {
|
|
211
239
|
x: e,
|
|
212
240
|
y: n,
|
|
213
241
|
width: o,
|
|
214
|
-
height:
|
|
242
|
+
height: s
|
|
215
243
|
} = t;
|
|
216
244
|
return {
|
|
217
245
|
width: o,
|
|
218
|
-
height:
|
|
246
|
+
height: s,
|
|
219
247
|
top: n,
|
|
220
248
|
left: e,
|
|
221
249
|
right: e + o,
|
|
222
|
-
bottom: n +
|
|
250
|
+
bottom: n + s,
|
|
223
251
|
x: e,
|
|
224
252
|
y: n
|
|
225
253
|
};
|
|
@@ -227,15 +255,15 @@ function at(t) {
|
|
|
227
255
|
function Vt(t, e, n) {
|
|
228
256
|
let {
|
|
229
257
|
reference: o,
|
|
230
|
-
floating:
|
|
258
|
+
floating: s
|
|
231
259
|
} = t;
|
|
232
|
-
const
|
|
260
|
+
const i = W(e), r = Jt(e), l = Gt(r), a = Z(e), c = i === "y", u = o.x + o.width / 2 - s.width / 2, f = o.y + o.height / 2 - s.height / 2, m = o[l] / 2 - s[l] / 2;
|
|
233
261
|
let d;
|
|
234
262
|
switch (a) {
|
|
235
263
|
case "top":
|
|
236
264
|
d = {
|
|
237
265
|
x: u,
|
|
238
|
-
y: o.y -
|
|
266
|
+
y: o.y - s.height
|
|
239
267
|
};
|
|
240
268
|
break;
|
|
241
269
|
case "bottom":
|
|
@@ -252,7 +280,7 @@ function Vt(t, e, n) {
|
|
|
252
280
|
break;
|
|
253
281
|
case "left":
|
|
254
282
|
d = {
|
|
255
|
-
x: o.x -
|
|
283
|
+
x: o.x - s.width,
|
|
256
284
|
y: f
|
|
257
285
|
};
|
|
258
286
|
break;
|
|
@@ -262,7 +290,7 @@ function Vt(t, e, n) {
|
|
|
262
290
|
y: o.y
|
|
263
291
|
};
|
|
264
292
|
}
|
|
265
|
-
switch (
|
|
293
|
+
switch (dt(e)) {
|
|
266
294
|
case "start":
|
|
267
295
|
d[r] -= m * (n && c ? -1 : 1);
|
|
268
296
|
break;
|
|
@@ -272,17 +300,17 @@ function Vt(t, e, n) {
|
|
|
272
300
|
}
|
|
273
301
|
return d;
|
|
274
302
|
}
|
|
275
|
-
const
|
|
303
|
+
const Ie = async (t, e, n) => {
|
|
276
304
|
const {
|
|
277
305
|
placement: o = "bottom",
|
|
278
|
-
strategy:
|
|
279
|
-
middleware:
|
|
306
|
+
strategy: s = "absolute",
|
|
307
|
+
middleware: i = [],
|
|
280
308
|
platform: r
|
|
281
|
-
} = n, l =
|
|
309
|
+
} = n, l = i.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
282
310
|
let c = await r.getElementRects({
|
|
283
311
|
reference: t,
|
|
284
312
|
floating: e,
|
|
285
|
-
strategy:
|
|
313
|
+
strategy: s
|
|
286
314
|
}), {
|
|
287
315
|
x: u,
|
|
288
316
|
y: f
|
|
@@ -292,8 +320,8 @@ const Me = async (t, e, n) => {
|
|
|
292
320
|
name: g,
|
|
293
321
|
fn: v
|
|
294
322
|
} = l[h], {
|
|
295
|
-
x:
|
|
296
|
-
y:
|
|
323
|
+
x: y,
|
|
324
|
+
y: b,
|
|
297
325
|
data: R,
|
|
298
326
|
reset: S
|
|
299
327
|
} = await v({
|
|
@@ -301,7 +329,7 @@ const Me = async (t, e, n) => {
|
|
|
301
329
|
y: f,
|
|
302
330
|
initialPlacement: o,
|
|
303
331
|
placement: m,
|
|
304
|
-
strategy:
|
|
332
|
+
strategy: s,
|
|
305
333
|
middlewareData: d,
|
|
306
334
|
rects: c,
|
|
307
335
|
platform: r,
|
|
@@ -310,7 +338,7 @@ const Me = async (t, e, n) => {
|
|
|
310
338
|
floating: e
|
|
311
339
|
}
|
|
312
340
|
});
|
|
313
|
-
u =
|
|
341
|
+
u = y ?? u, f = b ?? f, d = {
|
|
314
342
|
...d,
|
|
315
343
|
[g]: {
|
|
316
344
|
...d[g],
|
|
@@ -319,7 +347,7 @@ const Me = async (t, e, n) => {
|
|
|
319
347
|
}, S && p <= 50 && (p++, typeof S == "object" && (S.placement && (m = S.placement), S.rects && (c = S.rects === !0 ? await r.getElementRects({
|
|
320
348
|
reference: t,
|
|
321
349
|
floating: e,
|
|
322
|
-
strategy:
|
|
350
|
+
strategy: s
|
|
323
351
|
}) : S.rects), {
|
|
324
352
|
x: u,
|
|
325
353
|
y: f
|
|
@@ -329,17 +357,17 @@ const Me = async (t, e, n) => {
|
|
|
329
357
|
x: u,
|
|
330
358
|
y: f,
|
|
331
359
|
placement: m,
|
|
332
|
-
strategy:
|
|
360
|
+
strategy: s,
|
|
333
361
|
middlewareData: d
|
|
334
362
|
};
|
|
335
363
|
};
|
|
336
|
-
async function
|
|
364
|
+
async function We(t, e) {
|
|
337
365
|
var n;
|
|
338
366
|
e === void 0 && (e = {});
|
|
339
367
|
const {
|
|
340
368
|
x: o,
|
|
341
|
-
y:
|
|
342
|
-
platform:
|
|
369
|
+
y: s,
|
|
370
|
+
platform: i,
|
|
343
371
|
rects: r,
|
|
344
372
|
elements: l,
|
|
345
373
|
strategy: a
|
|
@@ -349,28 +377,28 @@ async function Ve(t, e) {
|
|
|
349
377
|
elementContext: f = "floating",
|
|
350
378
|
altBoundary: m = !1,
|
|
351
379
|
padding: d = 0
|
|
352
|
-
} =
|
|
353
|
-
element: (n = await (
|
|
380
|
+
} = Ot(e, t), p = Ne(d), g = l[m ? f === "floating" ? "reference" : "floating" : f], v = ut(await i.getClippingRect({
|
|
381
|
+
element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
|
|
354
382
|
boundary: c,
|
|
355
383
|
rootBoundary: u,
|
|
356
384
|
strategy: a
|
|
357
|
-
})),
|
|
385
|
+
})), y = f === "floating" ? {
|
|
358
386
|
x: o,
|
|
359
|
-
y:
|
|
387
|
+
y: s,
|
|
360
388
|
width: r.floating.width,
|
|
361
389
|
height: r.floating.height
|
|
362
|
-
} : r.reference,
|
|
390
|
+
} : r.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), R = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
|
|
363
391
|
x: 1,
|
|
364
392
|
y: 1
|
|
365
393
|
} : {
|
|
366
394
|
x: 1,
|
|
367
395
|
y: 1
|
|
368
|
-
}, S =
|
|
396
|
+
}, S = ut(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
369
397
|
elements: l,
|
|
370
|
-
rect:
|
|
371
|
-
offsetParent:
|
|
398
|
+
rect: y,
|
|
399
|
+
offsetParent: b,
|
|
372
400
|
strategy: a
|
|
373
|
-
}) :
|
|
401
|
+
}) : y);
|
|
374
402
|
return {
|
|
375
403
|
top: (v.top - S.top + p.top) / R.y,
|
|
376
404
|
bottom: (S.bottom - v.bottom + p.bottom) / R.y,
|
|
@@ -378,15 +406,15 @@ async function Ve(t, e) {
|
|
|
378
406
|
right: (S.right - v.right + p.right) / R.x
|
|
379
407
|
};
|
|
380
408
|
}
|
|
381
|
-
const
|
|
409
|
+
const He = function(t) {
|
|
382
410
|
return t === void 0 && (t = {}), {
|
|
383
411
|
name: "flip",
|
|
384
412
|
options: t,
|
|
385
413
|
async fn(e) {
|
|
386
414
|
var n, o;
|
|
387
415
|
const {
|
|
388
|
-
placement:
|
|
389
|
-
middlewareData:
|
|
416
|
+
placement: s,
|
|
417
|
+
middlewareData: i,
|
|
390
418
|
rects: r,
|
|
391
419
|
initialPlacement: l,
|
|
392
420
|
platform: a,
|
|
@@ -399,73 +427,73 @@ const Fe = function(t) {
|
|
|
399
427
|
fallbackAxisSideDirection: p = "none",
|
|
400
428
|
flipAlignment: h = !0,
|
|
401
429
|
...g
|
|
402
|
-
} =
|
|
403
|
-
if ((n =
|
|
430
|
+
} = Ot(t, e);
|
|
431
|
+
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
404
432
|
return {};
|
|
405
|
-
const v =
|
|
406
|
-
!m &&
|
|
407
|
-
const
|
|
408
|
-
let
|
|
409
|
-
if (u &&
|
|
410
|
-
const
|
|
411
|
-
|
|
433
|
+
const v = Z(s), y = W(l), b = Z(l) === l, R = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = m || (b || !h ? [at(l)] : De(l)), V = p !== "none";
|
|
434
|
+
!m && V && S.push(...Ve(l, h, p, R));
|
|
435
|
+
const x = [l, ...S], A = await We(e, g), F = [];
|
|
436
|
+
let U = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
437
|
+
if (u && F.push(A[v]), f) {
|
|
438
|
+
const N = Pe(s, r, R);
|
|
439
|
+
F.push(A[N[0]], A[N[1]]);
|
|
412
440
|
}
|
|
413
|
-
if (
|
|
414
|
-
placement:
|
|
415
|
-
overflows:
|
|
416
|
-
}], !
|
|
417
|
-
var
|
|
418
|
-
const
|
|
419
|
-
if (
|
|
441
|
+
if (U = [...U, {
|
|
442
|
+
placement: s,
|
|
443
|
+
overflows: F
|
|
444
|
+
}], !F.every((N) => N <= 0)) {
|
|
445
|
+
var Bt, Pt;
|
|
446
|
+
const N = (((Bt = i.flip) == null ? void 0 : Bt.index) || 0) + 1, vt = x[N];
|
|
447
|
+
if (vt && (!(f === "alignment" ? y !== W(vt) : !1) || // We leave the current main axis only if every placement on that axis
|
|
420
448
|
// overflows the main axis.
|
|
421
|
-
|
|
449
|
+
U.every((O) => W(O.placement) === y ? O.overflows[0] > 0 : !0)))
|
|
422
450
|
return {
|
|
423
451
|
data: {
|
|
424
|
-
index:
|
|
425
|
-
overflows:
|
|
452
|
+
index: N,
|
|
453
|
+
overflows: U
|
|
426
454
|
},
|
|
427
455
|
reset: {
|
|
428
|
-
placement:
|
|
456
|
+
placement: vt
|
|
429
457
|
}
|
|
430
458
|
};
|
|
431
|
-
let
|
|
432
|
-
if (!
|
|
459
|
+
let et = (Pt = U.filter((I) => I.overflows[0] <= 0).sort((I, O) => I.overflows[1] - O.overflows[1])[0]) == null ? void 0 : Pt.placement;
|
|
460
|
+
if (!et)
|
|
433
461
|
switch (d) {
|
|
434
462
|
case "bestFit": {
|
|
435
463
|
var Dt;
|
|
436
|
-
const
|
|
437
|
-
if (
|
|
438
|
-
const
|
|
439
|
-
return
|
|
464
|
+
const I = (Dt = U.filter((O) => {
|
|
465
|
+
if (V) {
|
|
466
|
+
const D = W(O.placement);
|
|
467
|
+
return D === y || // Create a bias to the `y` side axis due to horizontal
|
|
440
468
|
// reading directions favoring greater width.
|
|
441
|
-
|
|
469
|
+
D === "y";
|
|
442
470
|
}
|
|
443
471
|
return !0;
|
|
444
|
-
}).map((O) => [O.placement, O.overflows.filter((
|
|
445
|
-
|
|
472
|
+
}).map((O) => [O.placement, O.overflows.filter((D) => D > 0).reduce((D, re) => D + re, 0)]).sort((O, D) => O[1] - D[1])[0]) == null ? void 0 : Dt[0];
|
|
473
|
+
I && (et = I);
|
|
446
474
|
break;
|
|
447
475
|
}
|
|
448
476
|
case "initialPlacement":
|
|
449
|
-
|
|
477
|
+
et = l;
|
|
450
478
|
break;
|
|
451
479
|
}
|
|
452
|
-
if (
|
|
480
|
+
if (s !== et)
|
|
453
481
|
return {
|
|
454
482
|
reset: {
|
|
455
|
-
placement:
|
|
483
|
+
placement: et
|
|
456
484
|
}
|
|
457
485
|
};
|
|
458
486
|
}
|
|
459
487
|
return {};
|
|
460
488
|
}
|
|
461
489
|
};
|
|
462
|
-
},
|
|
463
|
-
async function
|
|
490
|
+
}, je = /* @__PURE__ */ new Set(["left", "top"]);
|
|
491
|
+
async function Xe(t, e) {
|
|
464
492
|
const {
|
|
465
493
|
placement: n,
|
|
466
494
|
platform: o,
|
|
467
|
-
elements:
|
|
468
|
-
} = t,
|
|
495
|
+
elements: s
|
|
496
|
+
} = t, i = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), r = Z(n), l = dt(n), a = W(n) === "y", c = je.has(r) ? -1 : 1, u = i && a ? -1 : 1, f = Ot(e, t);
|
|
469
497
|
let {
|
|
470
498
|
mainAxis: m,
|
|
471
499
|
crossAxis: d,
|
|
@@ -487,21 +515,21 @@ async function Ne(t, e) {
|
|
|
487
515
|
y: d * u
|
|
488
516
|
};
|
|
489
517
|
}
|
|
490
|
-
const
|
|
518
|
+
const Ue = function(t) {
|
|
491
519
|
return t === void 0 && (t = 0), {
|
|
492
520
|
name: "offset",
|
|
493
521
|
options: t,
|
|
494
522
|
async fn(e) {
|
|
495
523
|
var n, o;
|
|
496
524
|
const {
|
|
497
|
-
x:
|
|
498
|
-
y:
|
|
525
|
+
x: s,
|
|
526
|
+
y: i,
|
|
499
527
|
placement: r,
|
|
500
528
|
middlewareData: l
|
|
501
|
-
} = e, a = await
|
|
529
|
+
} = e, a = await Xe(e, t);
|
|
502
530
|
return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
503
|
-
x:
|
|
504
|
-
y:
|
|
531
|
+
x: s + a.x,
|
|
532
|
+
y: i + a.y,
|
|
505
533
|
data: {
|
|
506
534
|
...a,
|
|
507
535
|
placement: r
|
|
@@ -510,49 +538,49 @@ const Ie = function(t) {
|
|
|
510
538
|
}
|
|
511
539
|
};
|
|
512
540
|
};
|
|
513
|
-
function
|
|
541
|
+
function pt() {
|
|
514
542
|
return typeof window < "u";
|
|
515
543
|
}
|
|
516
|
-
function
|
|
517
|
-
return
|
|
544
|
+
function X(t) {
|
|
545
|
+
return _t(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
518
546
|
}
|
|
519
|
-
function
|
|
547
|
+
function L(t) {
|
|
520
548
|
var e;
|
|
521
549
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
522
550
|
}
|
|
523
|
-
function
|
|
551
|
+
function P(t) {
|
|
524
552
|
var e;
|
|
525
|
-
return (e = (
|
|
553
|
+
return (e = (_t(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
526
554
|
}
|
|
527
|
-
function
|
|
528
|
-
return
|
|
555
|
+
function _t(t) {
|
|
556
|
+
return pt() ? t instanceof Node || t instanceof L(t).Node : !1;
|
|
529
557
|
}
|
|
530
|
-
function
|
|
531
|
-
return
|
|
558
|
+
function E(t) {
|
|
559
|
+
return pt() ? t instanceof Element || t instanceof L(t).Element : !1;
|
|
532
560
|
}
|
|
533
561
|
function B(t) {
|
|
534
|
-
return
|
|
562
|
+
return pt() ? t instanceof HTMLElement || t instanceof L(t).HTMLElement : !1;
|
|
535
563
|
}
|
|
536
564
|
function Ft(t) {
|
|
537
|
-
return !
|
|
565
|
+
return !pt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof L(t).ShadowRoot;
|
|
538
566
|
}
|
|
539
|
-
const
|
|
540
|
-
function
|
|
567
|
+
const Ye = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
568
|
+
function rt(t) {
|
|
541
569
|
const {
|
|
542
570
|
overflow: e,
|
|
543
571
|
overflowX: n,
|
|
544
572
|
overflowY: o,
|
|
545
|
-
display:
|
|
546
|
-
} =
|
|
547
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !
|
|
573
|
+
display: s
|
|
574
|
+
} = $(t);
|
|
575
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Ye.has(s);
|
|
548
576
|
}
|
|
549
|
-
const
|
|
550
|
-
function
|
|
551
|
-
return
|
|
577
|
+
const Ke = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
578
|
+
function Ge(t) {
|
|
579
|
+
return Ke.has(X(t));
|
|
552
580
|
}
|
|
553
|
-
const
|
|
554
|
-
function
|
|
555
|
-
return
|
|
581
|
+
const Je = [":popover-open", ":modal"];
|
|
582
|
+
function mt(t) {
|
|
583
|
+
return Je.some((e) => {
|
|
556
584
|
try {
|
|
557
585
|
return t.matches(e);
|
|
558
586
|
} catch {
|
|
@@ -560,34 +588,34 @@ function pt(t) {
|
|
|
560
588
|
}
|
|
561
589
|
});
|
|
562
590
|
}
|
|
563
|
-
const
|
|
591
|
+
const Qe = ["transform", "translate", "scale", "rotate", "perspective"], Ze = ["transform", "translate", "scale", "rotate", "perspective", "filter"], tn = ["paint", "layout", "strict", "content"];
|
|
564
592
|
function Tt(t) {
|
|
565
|
-
const e = Et(), n =
|
|
566
|
-
return
|
|
593
|
+
const e = Et(), n = E(t) ? $(t) : t;
|
|
594
|
+
return Qe.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Ze.some((o) => (n.willChange || "").includes(o)) || tn.some((o) => (n.contain || "").includes(o));
|
|
567
595
|
}
|
|
568
|
-
function
|
|
569
|
-
let e =
|
|
570
|
-
for (; B(e) && !
|
|
596
|
+
function en(t) {
|
|
597
|
+
let e = q(t);
|
|
598
|
+
for (; B(e) && !tt(e); ) {
|
|
571
599
|
if (Tt(e))
|
|
572
600
|
return e;
|
|
573
|
-
if (
|
|
601
|
+
if (mt(e))
|
|
574
602
|
return null;
|
|
575
|
-
e =
|
|
603
|
+
e = q(e);
|
|
576
604
|
}
|
|
577
605
|
return null;
|
|
578
606
|
}
|
|
579
607
|
function Et() {
|
|
580
608
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
581
609
|
}
|
|
582
|
-
const
|
|
583
|
-
function
|
|
584
|
-
return
|
|
610
|
+
const nn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
611
|
+
function tt(t) {
|
|
612
|
+
return nn.has(X(t));
|
|
585
613
|
}
|
|
586
|
-
function
|
|
587
|
-
return
|
|
614
|
+
function $(t) {
|
|
615
|
+
return L(t).getComputedStyle(t);
|
|
588
616
|
}
|
|
589
|
-
function
|
|
590
|
-
return
|
|
617
|
+
function ht(t) {
|
|
618
|
+
return E(t) ? {
|
|
591
619
|
scrollLeft: t.scrollLeft,
|
|
592
620
|
scrollTop: t.scrollTop
|
|
593
621
|
} : {
|
|
@@ -595,127 +623,127 @@ function mt(t) {
|
|
|
595
623
|
scrollTop: t.scrollY
|
|
596
624
|
};
|
|
597
625
|
}
|
|
598
|
-
function
|
|
599
|
-
if (
|
|
626
|
+
function q(t) {
|
|
627
|
+
if (X(t) === "html")
|
|
600
628
|
return t;
|
|
601
629
|
const e = (
|
|
602
630
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
603
631
|
t.assignedSlot || // DOM Element detected.
|
|
604
632
|
t.parentNode || // ShadowRoot detected.
|
|
605
633
|
Ft(t) && t.host || // Fallback.
|
|
606
|
-
|
|
634
|
+
P(t)
|
|
607
635
|
);
|
|
608
636
|
return Ft(e) ? e.host : e;
|
|
609
637
|
}
|
|
610
|
-
function
|
|
611
|
-
const e =
|
|
612
|
-
return
|
|
638
|
+
function Qt(t) {
|
|
639
|
+
const e = q(t);
|
|
640
|
+
return tt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : B(e) && rt(e) ? e : Qt(e);
|
|
613
641
|
}
|
|
614
|
-
function
|
|
642
|
+
function it(t, e, n) {
|
|
615
643
|
var o;
|
|
616
644
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
617
|
-
const
|
|
618
|
-
if (
|
|
619
|
-
const l =
|
|
620
|
-
return e.concat(r, r.visualViewport || [],
|
|
645
|
+
const s = Qt(t), i = s === ((o = t.ownerDocument) == null ? void 0 : o.body), r = L(s);
|
|
646
|
+
if (i) {
|
|
647
|
+
const l = Lt(r);
|
|
648
|
+
return e.concat(r, r.visualViewport || [], rt(s) ? s : [], l && n ? it(l) : []);
|
|
621
649
|
}
|
|
622
|
-
return e.concat(
|
|
650
|
+
return e.concat(s, it(s, [], n));
|
|
623
651
|
}
|
|
624
|
-
function
|
|
652
|
+
function Lt(t) {
|
|
625
653
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
626
654
|
}
|
|
627
|
-
function
|
|
628
|
-
const e =
|
|
655
|
+
function Zt(t) {
|
|
656
|
+
const e = $(t);
|
|
629
657
|
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
630
|
-
const
|
|
631
|
-
return l && (n =
|
|
658
|
+
const s = B(t), i = s ? t.offsetWidth : n, r = s ? t.offsetHeight : o, l = ct(n) !== i || ct(o) !== r;
|
|
659
|
+
return l && (n = i, o = r), {
|
|
632
660
|
width: n,
|
|
633
661
|
height: o,
|
|
634
662
|
$: l
|
|
635
663
|
};
|
|
636
664
|
}
|
|
637
|
-
function
|
|
638
|
-
return
|
|
665
|
+
function $t(t) {
|
|
666
|
+
return E(t) ? t : t.contextElement;
|
|
639
667
|
}
|
|
640
|
-
function
|
|
641
|
-
const e =
|
|
668
|
+
function G(t) {
|
|
669
|
+
const e = $t(t);
|
|
642
670
|
if (!B(e))
|
|
643
671
|
return k(1);
|
|
644
672
|
const n = e.getBoundingClientRect(), {
|
|
645
673
|
width: o,
|
|
646
|
-
height:
|
|
647
|
-
$:
|
|
648
|
-
} =
|
|
649
|
-
let r = (
|
|
674
|
+
height: s,
|
|
675
|
+
$: i
|
|
676
|
+
} = Zt(e);
|
|
677
|
+
let r = (i ? ct(n.width) : n.width) / o, l = (i ? ct(n.height) : n.height) / s;
|
|
650
678
|
return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
651
679
|
x: r,
|
|
652
680
|
y: l
|
|
653
681
|
};
|
|
654
682
|
}
|
|
655
|
-
const
|
|
656
|
-
function
|
|
657
|
-
const e =
|
|
658
|
-
return !Et() || !e.visualViewport ?
|
|
683
|
+
const on = /* @__PURE__ */ k(0);
|
|
684
|
+
function te(t) {
|
|
685
|
+
const e = L(t);
|
|
686
|
+
return !Et() || !e.visualViewport ? on : {
|
|
659
687
|
x: e.visualViewport.offsetLeft,
|
|
660
688
|
y: e.visualViewport.offsetTop
|
|
661
689
|
};
|
|
662
690
|
}
|
|
663
|
-
function
|
|
664
|
-
return e === void 0 && (e = !1), !n || e && n !==
|
|
691
|
+
function sn(t, e, n) {
|
|
692
|
+
return e === void 0 && (e = !1), !n || e && n !== L(t) ? !1 : e;
|
|
665
693
|
}
|
|
666
|
-
function
|
|
694
|
+
function j(t, e, n, o) {
|
|
667
695
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
668
|
-
const
|
|
696
|
+
const s = t.getBoundingClientRect(), i = $t(t);
|
|
669
697
|
let r = k(1);
|
|
670
|
-
e && (o ?
|
|
671
|
-
const l =
|
|
672
|
-
let a = (
|
|
673
|
-
if (
|
|
674
|
-
const m =
|
|
675
|
-
let p = m, h =
|
|
698
|
+
e && (o ? E(o) && (r = G(o)) : r = G(t));
|
|
699
|
+
const l = sn(i, n, o) ? te(i) : k(0);
|
|
700
|
+
let a = (s.left + l.x) / r.x, c = (s.top + l.y) / r.y, u = s.width / r.x, f = s.height / r.y;
|
|
701
|
+
if (i) {
|
|
702
|
+
const m = L(i), d = o && E(o) ? L(o) : o;
|
|
703
|
+
let p = m, h = Lt(p);
|
|
676
704
|
for (; h && o && d !== p; ) {
|
|
677
|
-
const g =
|
|
678
|
-
a *= g.x, c *= g.y, u *= g.x, f *= g.y, a +=
|
|
705
|
+
const g = G(h), v = h.getBoundingClientRect(), y = $(h), b = v.left + (h.clientLeft + parseFloat(y.paddingLeft)) * g.x, R = v.top + (h.clientTop + parseFloat(y.paddingTop)) * g.y;
|
|
706
|
+
a *= g.x, c *= g.y, u *= g.x, f *= g.y, a += b, c += R, p = L(h), h = Lt(p);
|
|
679
707
|
}
|
|
680
708
|
}
|
|
681
|
-
return
|
|
709
|
+
return ut({
|
|
682
710
|
width: u,
|
|
683
711
|
height: f,
|
|
684
712
|
x: a,
|
|
685
713
|
y: c
|
|
686
714
|
});
|
|
687
715
|
}
|
|
688
|
-
function
|
|
689
|
-
const n =
|
|
690
|
-
return e ? e.left + n :
|
|
716
|
+
function gt(t, e) {
|
|
717
|
+
const n = ht(t).scrollLeft;
|
|
718
|
+
return e ? e.left + n : j(P(t)).left + n;
|
|
691
719
|
}
|
|
692
|
-
function
|
|
693
|
-
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft -
|
|
720
|
+
function ee(t, e) {
|
|
721
|
+
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - gt(t, n), s = n.top + e.scrollTop;
|
|
694
722
|
return {
|
|
695
723
|
x: o,
|
|
696
|
-
y:
|
|
724
|
+
y: s
|
|
697
725
|
};
|
|
698
726
|
}
|
|
699
|
-
function
|
|
727
|
+
function rn(t) {
|
|
700
728
|
let {
|
|
701
729
|
elements: e,
|
|
702
730
|
rect: n,
|
|
703
731
|
offsetParent: o,
|
|
704
|
-
strategy:
|
|
732
|
+
strategy: s
|
|
705
733
|
} = t;
|
|
706
|
-
const
|
|
707
|
-
if (o === r || l &&
|
|
734
|
+
const i = s === "fixed", r = P(o), l = e ? mt(e.floating) : !1;
|
|
735
|
+
if (o === r || l && i)
|
|
708
736
|
return n;
|
|
709
737
|
let a = {
|
|
710
738
|
scrollLeft: 0,
|
|
711
739
|
scrollTop: 0
|
|
712
740
|
}, c = k(1);
|
|
713
741
|
const u = k(0), f = B(o);
|
|
714
|
-
if ((f || !f && !
|
|
715
|
-
const d =
|
|
716
|
-
c =
|
|
742
|
+
if ((f || !f && !i) && ((X(o) !== "body" || rt(r)) && (a = ht(o)), B(o))) {
|
|
743
|
+
const d = j(o);
|
|
744
|
+
c = G(o), u.x = d.x + o.clientLeft, u.y = d.y + o.clientTop;
|
|
717
745
|
}
|
|
718
|
-
const m = r && !f && !
|
|
746
|
+
const m = r && !f && !i ? ee(r, a) : k(0);
|
|
719
747
|
return {
|
|
720
748
|
width: n.width * c.x,
|
|
721
749
|
height: n.height * c.y,
|
|
@@ -723,44 +751,44 @@ function tn(t) {
|
|
|
723
751
|
y: n.y * c.y - a.scrollTop * c.y + u.y + m.y
|
|
724
752
|
};
|
|
725
753
|
}
|
|
726
|
-
function
|
|
754
|
+
function ln(t) {
|
|
727
755
|
return Array.from(t.getClientRects());
|
|
728
756
|
}
|
|
729
|
-
function
|
|
730
|
-
const e =
|
|
731
|
-
let r = -n.scrollLeft +
|
|
757
|
+
function cn(t) {
|
|
758
|
+
const e = P(t), n = ht(t), o = t.ownerDocument.body, s = K(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = K(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
759
|
+
let r = -n.scrollLeft + gt(t);
|
|
732
760
|
const l = -n.scrollTop;
|
|
733
|
-
return
|
|
734
|
-
width:
|
|
735
|
-
height:
|
|
761
|
+
return $(o).direction === "rtl" && (r += K(e.clientWidth, o.clientWidth) - s), {
|
|
762
|
+
width: s,
|
|
763
|
+
height: i,
|
|
736
764
|
x: r,
|
|
737
765
|
y: l
|
|
738
766
|
};
|
|
739
767
|
}
|
|
740
|
-
const
|
|
741
|
-
function
|
|
742
|
-
const n =
|
|
743
|
-
let
|
|
744
|
-
if (
|
|
745
|
-
|
|
768
|
+
const Nt = 25;
|
|
769
|
+
function an(t, e) {
|
|
770
|
+
const n = L(t), o = P(t), s = n.visualViewport;
|
|
771
|
+
let i = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
|
|
772
|
+
if (s) {
|
|
773
|
+
i = s.width, r = s.height;
|
|
746
774
|
const u = Et();
|
|
747
|
-
(!u || u && e === "fixed") && (l =
|
|
775
|
+
(!u || u && e === "fixed") && (l = s.offsetLeft, a = s.offsetTop);
|
|
748
776
|
}
|
|
749
|
-
const c =
|
|
777
|
+
const c = gt(o);
|
|
750
778
|
if (c <= 0) {
|
|
751
779
|
const u = o.ownerDocument, f = u.body, m = getComputedStyle(f), d = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, p = Math.abs(o.clientWidth - f.clientWidth - d);
|
|
752
|
-
p <=
|
|
753
|
-
} else c <=
|
|
780
|
+
p <= Nt && (i -= p);
|
|
781
|
+
} else c <= Nt && (i += c);
|
|
754
782
|
return {
|
|
755
|
-
width:
|
|
783
|
+
width: i,
|
|
756
784
|
height: r,
|
|
757
785
|
x: l,
|
|
758
786
|
y: a
|
|
759
787
|
};
|
|
760
788
|
}
|
|
761
|
-
const
|
|
762
|
-
function
|
|
763
|
-
const n =
|
|
789
|
+
const un = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
790
|
+
function fn(t, e) {
|
|
791
|
+
const n = j(t, !0, e === "fixed"), o = n.top + t.clientTop, s = n.left + t.clientLeft, i = B(t) ? G(t) : k(1), r = t.clientWidth * i.x, l = t.clientHeight * i.y, a = s * i.x, c = o * i.y;
|
|
764
792
|
return {
|
|
765
793
|
width: r,
|
|
766
794
|
height: l,
|
|
@@ -768,53 +796,53 @@ function rn(t, e) {
|
|
|
768
796
|
y: c
|
|
769
797
|
};
|
|
770
798
|
}
|
|
771
|
-
function
|
|
799
|
+
function It(t, e, n) {
|
|
772
800
|
let o;
|
|
773
801
|
if (e === "viewport")
|
|
774
|
-
o =
|
|
802
|
+
o = an(t, n);
|
|
775
803
|
else if (e === "document")
|
|
776
|
-
o =
|
|
777
|
-
else if (
|
|
778
|
-
o =
|
|
804
|
+
o = cn(P(t));
|
|
805
|
+
else if (E(e))
|
|
806
|
+
o = fn(e, n);
|
|
779
807
|
else {
|
|
780
|
-
const
|
|
808
|
+
const s = te(t);
|
|
781
809
|
o = {
|
|
782
|
-
x: e.x -
|
|
783
|
-
y: e.y -
|
|
810
|
+
x: e.x - s.x,
|
|
811
|
+
y: e.y - s.y,
|
|
784
812
|
width: e.width,
|
|
785
813
|
height: e.height
|
|
786
814
|
};
|
|
787
815
|
}
|
|
788
|
-
return
|
|
816
|
+
return ut(o);
|
|
789
817
|
}
|
|
790
|
-
function
|
|
791
|
-
const n =
|
|
792
|
-
return n === e || !
|
|
818
|
+
function ne(t, e) {
|
|
819
|
+
const n = q(t);
|
|
820
|
+
return n === e || !E(n) || tt(n) ? !1 : $(n).position === "fixed" || ne(n, e);
|
|
793
821
|
}
|
|
794
|
-
function
|
|
822
|
+
function dn(t, e) {
|
|
795
823
|
const n = e.get(t);
|
|
796
824
|
if (n)
|
|
797
825
|
return n;
|
|
798
|
-
let o =
|
|
799
|
-
const
|
|
800
|
-
let r =
|
|
801
|
-
for (;
|
|
802
|
-
const l =
|
|
803
|
-
!a && l.position === "fixed" && (
|
|
826
|
+
let o = it(t, [], !1).filter((l) => E(l) && X(l) !== "body"), s = null;
|
|
827
|
+
const i = $(t).position === "fixed";
|
|
828
|
+
let r = i ? q(t) : t;
|
|
829
|
+
for (; E(r) && !tt(r); ) {
|
|
830
|
+
const l = $(r), a = Tt(r);
|
|
831
|
+
!a && l.position === "fixed" && (s = null), (i ? !a && !s : !a && l.position === "static" && !!s && un.has(s.position) || rt(r) && !a && ne(t, r)) ? o = o.filter((u) => u !== r) : s = l, r = q(r);
|
|
804
832
|
}
|
|
805
833
|
return e.set(t, o), o;
|
|
806
834
|
}
|
|
807
|
-
function
|
|
835
|
+
function pn(t) {
|
|
808
836
|
let {
|
|
809
837
|
element: e,
|
|
810
838
|
boundary: n,
|
|
811
839
|
rootBoundary: o,
|
|
812
|
-
strategy:
|
|
840
|
+
strategy: s
|
|
813
841
|
} = t;
|
|
814
|
-
const r = [...n === "clippingAncestors" ?
|
|
815
|
-
const f =
|
|
816
|
-
return c.top =
|
|
817
|
-
},
|
|
842
|
+
const r = [...n === "clippingAncestors" ? mt(e) ? [] : dn(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, u) => {
|
|
843
|
+
const f = It(e, u, s);
|
|
844
|
+
return c.top = K(f.top, c.top), c.right = Rt(f.right, c.right), c.bottom = Rt(f.bottom, c.bottom), c.left = K(f.left, c.left), c;
|
|
845
|
+
}, It(e, l, s));
|
|
818
846
|
return {
|
|
819
847
|
width: a.right - a.left,
|
|
820
848
|
height: a.bottom - a.top,
|
|
@@ -822,33 +850,33 @@ function cn(t) {
|
|
|
822
850
|
y: a.top
|
|
823
851
|
};
|
|
824
852
|
}
|
|
825
|
-
function
|
|
853
|
+
function mn(t) {
|
|
826
854
|
const {
|
|
827
855
|
width: e,
|
|
828
856
|
height: n
|
|
829
|
-
} =
|
|
857
|
+
} = Zt(t);
|
|
830
858
|
return {
|
|
831
859
|
width: e,
|
|
832
860
|
height: n
|
|
833
861
|
};
|
|
834
862
|
}
|
|
835
|
-
function
|
|
836
|
-
const o = B(e),
|
|
863
|
+
function hn(t, e, n) {
|
|
864
|
+
const o = B(e), s = P(e), i = n === "fixed", r = j(t, !0, i, e);
|
|
837
865
|
let l = {
|
|
838
866
|
scrollLeft: 0,
|
|
839
867
|
scrollTop: 0
|
|
840
868
|
};
|
|
841
869
|
const a = k(0);
|
|
842
870
|
function c() {
|
|
843
|
-
a.x =
|
|
871
|
+
a.x = gt(s);
|
|
844
872
|
}
|
|
845
|
-
if (o || !o && !
|
|
846
|
-
if ((
|
|
847
|
-
const d =
|
|
873
|
+
if (o || !o && !i)
|
|
874
|
+
if ((X(e) !== "body" || rt(s)) && (l = ht(e)), o) {
|
|
875
|
+
const d = j(e, !0, i, e);
|
|
848
876
|
a.x = d.x + e.clientLeft, a.y = d.y + e.clientTop;
|
|
849
|
-
} else
|
|
850
|
-
|
|
851
|
-
const u =
|
|
877
|
+
} else s && c();
|
|
878
|
+
i && !o && s && c();
|
|
879
|
+
const u = s && !o && !i ? ee(s, l) : k(0), f = r.left + l.scrollLeft - a.x - u.x, m = r.top + l.scrollTop - a.y - u.y;
|
|
852
880
|
return {
|
|
853
881
|
x: f,
|
|
854
882
|
y: m,
|
|
@@ -857,38 +885,38 @@ function un(t, e, n) {
|
|
|
857
885
|
};
|
|
858
886
|
}
|
|
859
887
|
function wt(t) {
|
|
860
|
-
return
|
|
888
|
+
return $(t).position === "static";
|
|
861
889
|
}
|
|
862
|
-
function
|
|
863
|
-
if (!B(t) ||
|
|
890
|
+
function Wt(t, e) {
|
|
891
|
+
if (!B(t) || $(t).position === "fixed")
|
|
864
892
|
return null;
|
|
865
893
|
if (e)
|
|
866
894
|
return e(t);
|
|
867
895
|
let n = t.offsetParent;
|
|
868
|
-
return
|
|
896
|
+
return P(t) === n && (n = n.ownerDocument.body), n;
|
|
869
897
|
}
|
|
870
|
-
function
|
|
871
|
-
const n =
|
|
872
|
-
if (
|
|
898
|
+
function oe(t, e) {
|
|
899
|
+
const n = L(t);
|
|
900
|
+
if (mt(t))
|
|
873
901
|
return n;
|
|
874
902
|
if (!B(t)) {
|
|
875
|
-
let
|
|
876
|
-
for (;
|
|
877
|
-
if (
|
|
878
|
-
return
|
|
879
|
-
|
|
903
|
+
let s = q(t);
|
|
904
|
+
for (; s && !tt(s); ) {
|
|
905
|
+
if (E(s) && !wt(s))
|
|
906
|
+
return s;
|
|
907
|
+
s = q(s);
|
|
880
908
|
}
|
|
881
909
|
return n;
|
|
882
910
|
}
|
|
883
|
-
let o =
|
|
884
|
-
for (; o &&
|
|
885
|
-
o =
|
|
886
|
-
return o &&
|
|
911
|
+
let o = Wt(t, e);
|
|
912
|
+
for (; o && Ge(o) && wt(o); )
|
|
913
|
+
o = Wt(o, e);
|
|
914
|
+
return o && tt(o) && wt(o) && !Tt(o) ? n : o || en(t) || n;
|
|
887
915
|
}
|
|
888
|
-
const
|
|
889
|
-
const e = this.getOffsetParent ||
|
|
916
|
+
const gn = async function(t) {
|
|
917
|
+
const e = this.getOffsetParent || oe, n = this.getDimensions, o = await n(t.floating);
|
|
890
918
|
return {
|
|
891
|
-
reference:
|
|
919
|
+
reference: hn(t.reference, await e(t.floating), t.strategy),
|
|
892
920
|
floating: {
|
|
893
921
|
x: 0,
|
|
894
922
|
y: 0,
|
|
@@ -897,33 +925,33 @@ const fn = async function(t) {
|
|
|
897
925
|
}
|
|
898
926
|
};
|
|
899
927
|
};
|
|
900
|
-
function
|
|
901
|
-
return
|
|
902
|
-
}
|
|
903
|
-
const
|
|
904
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
905
|
-
getDocumentElement:
|
|
906
|
-
getClippingRect:
|
|
907
|
-
getOffsetParent:
|
|
908
|
-
getElementRects:
|
|
909
|
-
getClientRects:
|
|
910
|
-
getDimensions:
|
|
911
|
-
getScale:
|
|
912
|
-
isElement:
|
|
913
|
-
isRTL:
|
|
928
|
+
function vn(t) {
|
|
929
|
+
return $(t).direction === "rtl";
|
|
930
|
+
}
|
|
931
|
+
const yn = {
|
|
932
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: rn,
|
|
933
|
+
getDocumentElement: P,
|
|
934
|
+
getClippingRect: pn,
|
|
935
|
+
getOffsetParent: oe,
|
|
936
|
+
getElementRects: gn,
|
|
937
|
+
getClientRects: ln,
|
|
938
|
+
getDimensions: mn,
|
|
939
|
+
getScale: G,
|
|
940
|
+
isElement: E,
|
|
941
|
+
isRTL: vn
|
|
914
942
|
};
|
|
915
|
-
function
|
|
943
|
+
function se(t, e) {
|
|
916
944
|
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
917
945
|
}
|
|
918
|
-
function
|
|
946
|
+
function wn(t, e) {
|
|
919
947
|
let n = null, o;
|
|
920
|
-
const
|
|
921
|
-
function
|
|
948
|
+
const s = P(t);
|
|
949
|
+
function i() {
|
|
922
950
|
var l;
|
|
923
951
|
clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
|
|
924
952
|
}
|
|
925
953
|
function r(l, a) {
|
|
926
|
-
l === void 0 && (l = !1), a === void 0 && (a = 1),
|
|
954
|
+
l === void 0 && (l = !1), a === void 0 && (a = 1), i();
|
|
927
955
|
const c = t.getBoundingClientRect(), {
|
|
928
956
|
left: u,
|
|
929
957
|
top: f,
|
|
@@ -932,186 +960,186 @@ function mn(t, e) {
|
|
|
932
960
|
} = c;
|
|
933
961
|
if (l || e(), !m || !d)
|
|
934
962
|
return;
|
|
935
|
-
const p =
|
|
963
|
+
const p = lt(f), h = lt(s.clientWidth - (u + m)), g = lt(s.clientHeight - (f + d)), v = lt(u), b = {
|
|
936
964
|
rootMargin: -p + "px " + -h + "px " + -g + "px " + -v + "px",
|
|
937
|
-
threshold:
|
|
965
|
+
threshold: K(0, Rt(1, a)) || 1
|
|
938
966
|
};
|
|
939
967
|
let R = !0;
|
|
940
|
-
function S(
|
|
941
|
-
const
|
|
942
|
-
if (
|
|
968
|
+
function S(V) {
|
|
969
|
+
const x = V[0].intersectionRatio;
|
|
970
|
+
if (x !== a) {
|
|
943
971
|
if (!R)
|
|
944
972
|
return r();
|
|
945
|
-
|
|
973
|
+
x ? r(!1, x) : o = setTimeout(() => {
|
|
946
974
|
r(!1, 1e-7);
|
|
947
975
|
}, 1e3);
|
|
948
976
|
}
|
|
949
|
-
|
|
977
|
+
x === 1 && !se(c, t.getBoundingClientRect()) && r(), R = !1;
|
|
950
978
|
}
|
|
951
979
|
try {
|
|
952
980
|
n = new IntersectionObserver(S, {
|
|
953
|
-
...
|
|
981
|
+
...b,
|
|
954
982
|
// Handle <iframe>s
|
|
955
|
-
root:
|
|
983
|
+
root: s.ownerDocument
|
|
956
984
|
});
|
|
957
985
|
} catch {
|
|
958
|
-
n = new IntersectionObserver(S,
|
|
986
|
+
n = new IntersectionObserver(S, b);
|
|
959
987
|
}
|
|
960
988
|
n.observe(t);
|
|
961
989
|
}
|
|
962
|
-
return r(!0),
|
|
990
|
+
return r(!0), i;
|
|
963
991
|
}
|
|
964
|
-
function
|
|
992
|
+
function xn(t, e, n, o) {
|
|
965
993
|
o === void 0 && (o = {});
|
|
966
994
|
const {
|
|
967
|
-
ancestorScroll:
|
|
968
|
-
ancestorResize:
|
|
995
|
+
ancestorScroll: s = !0,
|
|
996
|
+
ancestorResize: i = !0,
|
|
969
997
|
elementResize: r = typeof ResizeObserver == "function",
|
|
970
998
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
971
999
|
animationFrame: a = !1
|
|
972
|
-
} = o, c =
|
|
1000
|
+
} = o, c = $t(t), u = s || i ? [...c ? it(c) : [], ...it(e)] : [];
|
|
973
1001
|
u.forEach((v) => {
|
|
974
|
-
|
|
1002
|
+
s && v.addEventListener("scroll", n, {
|
|
975
1003
|
passive: !0
|
|
976
|
-
}),
|
|
1004
|
+
}), i && v.addEventListener("resize", n);
|
|
977
1005
|
});
|
|
978
|
-
const f = c && l ?
|
|
1006
|
+
const f = c && l ? wn(c, n) : null;
|
|
979
1007
|
let m = -1, d = null;
|
|
980
1008
|
r && (d = new ResizeObserver((v) => {
|
|
981
|
-
let [
|
|
982
|
-
|
|
983
|
-
var
|
|
984
|
-
(
|
|
1009
|
+
let [y] = v;
|
|
1010
|
+
y && y.target === c && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
1011
|
+
var b;
|
|
1012
|
+
(b = d) == null || b.observe(e);
|
|
985
1013
|
})), n();
|
|
986
1014
|
}), c && !a && d.observe(c), d.observe(e));
|
|
987
|
-
let p, h = a ?
|
|
1015
|
+
let p, h = a ? j(t) : null;
|
|
988
1016
|
a && g();
|
|
989
1017
|
function g() {
|
|
990
|
-
const v =
|
|
991
|
-
h && !
|
|
1018
|
+
const v = j(t);
|
|
1019
|
+
h && !se(h, v) && n(), h = v, p = requestAnimationFrame(g);
|
|
992
1020
|
}
|
|
993
1021
|
return n(), () => {
|
|
994
1022
|
var v;
|
|
995
|
-
u.forEach((
|
|
996
|
-
|
|
1023
|
+
u.forEach((y) => {
|
|
1024
|
+
s && y.removeEventListener("scroll", n), i && y.removeEventListener("resize", n);
|
|
997
1025
|
}), f == null || f(), (v = d) == null || v.disconnect(), d = null, a && cancelAnimationFrame(p);
|
|
998
1026
|
};
|
|
999
1027
|
}
|
|
1000
|
-
const
|
|
1001
|
-
const o = /* @__PURE__ */ new Map(),
|
|
1002
|
-
platform:
|
|
1028
|
+
const bn = Ue, Sn = He, Rn = (t, e, n) => {
|
|
1029
|
+
const o = /* @__PURE__ */ new Map(), s = {
|
|
1030
|
+
platform: yn,
|
|
1003
1031
|
...n
|
|
1004
|
-
},
|
|
1005
|
-
...
|
|
1032
|
+
}, i = {
|
|
1033
|
+
...s.platform,
|
|
1006
1034
|
_c: o
|
|
1007
1035
|
};
|
|
1008
|
-
return
|
|
1009
|
-
...
|
|
1010
|
-
platform:
|
|
1036
|
+
return Ie(t, e, {
|
|
1037
|
+
...s,
|
|
1038
|
+
platform: i
|
|
1011
1039
|
});
|
|
1012
1040
|
};
|
|
1013
|
-
function
|
|
1041
|
+
function Cn(t) {
|
|
1014
1042
|
return t != null && typeof t == "object" && "$el" in t;
|
|
1015
1043
|
}
|
|
1016
|
-
function
|
|
1017
|
-
if (
|
|
1044
|
+
function Ht(t) {
|
|
1045
|
+
if (Cn(t)) {
|
|
1018
1046
|
const e = t.$el;
|
|
1019
|
-
return
|
|
1047
|
+
return _t(e) && X(e) === "#comment" ? null : e;
|
|
1020
1048
|
}
|
|
1021
1049
|
return t;
|
|
1022
1050
|
}
|
|
1023
|
-
function
|
|
1024
|
-
return typeof t == "function" ? t() :
|
|
1051
|
+
function ot(t) {
|
|
1052
|
+
return typeof t == "function" ? t() : H(t);
|
|
1025
1053
|
}
|
|
1026
1054
|
function ie(t) {
|
|
1027
1055
|
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1028
1056
|
}
|
|
1029
|
-
function
|
|
1057
|
+
function jt(t, e) {
|
|
1030
1058
|
const n = ie(t);
|
|
1031
1059
|
return Math.round(e * n) / n;
|
|
1032
1060
|
}
|
|
1033
|
-
function
|
|
1061
|
+
function Ln(t, e, n) {
|
|
1034
1062
|
n === void 0 && (n = {});
|
|
1035
|
-
const o = n.whileElementsMounted,
|
|
1036
|
-
var
|
|
1037
|
-
return (
|
|
1038
|
-
}),
|
|
1039
|
-
var
|
|
1040
|
-
return (
|
|
1041
|
-
}), l =
|
|
1042
|
-
var
|
|
1043
|
-
return (
|
|
1044
|
-
}), a =
|
|
1045
|
-
var
|
|
1046
|
-
return (
|
|
1047
|
-
}), c =
|
|
1048
|
-
const
|
|
1063
|
+
const o = n.whileElementsMounted, s = w(() => {
|
|
1064
|
+
var x;
|
|
1065
|
+
return (x = ot(n.open)) != null ? x : !0;
|
|
1066
|
+
}), i = w(() => ot(n.middleware)), r = w(() => {
|
|
1067
|
+
var x;
|
|
1068
|
+
return (x = ot(n.placement)) != null ? x : "bottom";
|
|
1069
|
+
}), l = w(() => {
|
|
1070
|
+
var x;
|
|
1071
|
+
return (x = ot(n.strategy)) != null ? x : "absolute";
|
|
1072
|
+
}), a = w(() => {
|
|
1073
|
+
var x;
|
|
1074
|
+
return (x = ot(n.transform)) != null ? x : !0;
|
|
1075
|
+
}), c = w(() => Ht(t.value)), u = w(() => Ht(e.value)), f = nt(0), m = nt(0), d = nt(l.value), p = nt(r.value), h = ae({}), g = nt(!1), v = w(() => {
|
|
1076
|
+
const x = {
|
|
1049
1077
|
position: d.value,
|
|
1050
1078
|
left: "0",
|
|
1051
1079
|
top: "0"
|
|
1052
1080
|
};
|
|
1053
1081
|
if (!u.value)
|
|
1054
|
-
return
|
|
1055
|
-
const
|
|
1082
|
+
return x;
|
|
1083
|
+
const A = jt(u.value, f.value), F = jt(u.value, m.value);
|
|
1056
1084
|
return a.value ? {
|
|
1057
|
-
...
|
|
1058
|
-
transform: "translate(" +
|
|
1085
|
+
...x,
|
|
1086
|
+
transform: "translate(" + A + "px, " + F + "px)",
|
|
1059
1087
|
...ie(u.value) >= 1.5 && {
|
|
1060
1088
|
willChange: "transform"
|
|
1061
1089
|
}
|
|
1062
1090
|
} : {
|
|
1063
1091
|
position: d.value,
|
|
1064
|
-
left:
|
|
1065
|
-
top:
|
|
1092
|
+
left: A + "px",
|
|
1093
|
+
top: F + "px"
|
|
1066
1094
|
};
|
|
1067
1095
|
});
|
|
1068
|
-
let
|
|
1069
|
-
function
|
|
1096
|
+
let y;
|
|
1097
|
+
function b() {
|
|
1070
1098
|
if (c.value == null || u.value == null)
|
|
1071
1099
|
return;
|
|
1072
|
-
const
|
|
1073
|
-
|
|
1074
|
-
middleware:
|
|
1100
|
+
const x = s.value;
|
|
1101
|
+
Rn(c.value, u.value, {
|
|
1102
|
+
middleware: i.value,
|
|
1075
1103
|
placement: r.value,
|
|
1076
1104
|
strategy: l.value
|
|
1077
|
-
}).then((
|
|
1078
|
-
f.value =
|
|
1105
|
+
}).then((A) => {
|
|
1106
|
+
f.value = A.x, m.value = A.y, d.value = A.strategy, p.value = A.placement, h.value = A.middlewareData, g.value = x !== !1;
|
|
1079
1107
|
});
|
|
1080
1108
|
}
|
|
1081
1109
|
function R() {
|
|
1082
|
-
typeof
|
|
1110
|
+
typeof y == "function" && (y(), y = void 0);
|
|
1083
1111
|
}
|
|
1084
1112
|
function S() {
|
|
1085
1113
|
if (R(), o === void 0) {
|
|
1086
|
-
|
|
1114
|
+
b();
|
|
1087
1115
|
return;
|
|
1088
1116
|
}
|
|
1089
1117
|
if (c.value != null && u.value != null) {
|
|
1090
|
-
|
|
1118
|
+
y = o(c.value, u.value, b);
|
|
1091
1119
|
return;
|
|
1092
1120
|
}
|
|
1093
1121
|
}
|
|
1094
|
-
function
|
|
1095
|
-
|
|
1122
|
+
function V() {
|
|
1123
|
+
s.value || (g.value = !1);
|
|
1096
1124
|
}
|
|
1097
|
-
return
|
|
1125
|
+
return yt([i, r, l, s], b, {
|
|
1098
1126
|
flush: "sync"
|
|
1099
|
-
}),
|
|
1127
|
+
}), yt([c, u], S, {
|
|
1100
1128
|
flush: "sync"
|
|
1101
|
-
}),
|
|
1129
|
+
}), yt(s, V, {
|
|
1102
1130
|
flush: "sync"
|
|
1103
|
-
}),
|
|
1104
|
-
x:
|
|
1105
|
-
y:
|
|
1106
|
-
strategy:
|
|
1107
|
-
placement:
|
|
1108
|
-
middlewareData:
|
|
1109
|
-
isPositioned:
|
|
1131
|
+
}), ue() && fe(R), {
|
|
1132
|
+
x: Y(f),
|
|
1133
|
+
y: Y(m),
|
|
1134
|
+
strategy: Y(d),
|
|
1135
|
+
placement: Y(p),
|
|
1136
|
+
middlewareData: Y(h),
|
|
1137
|
+
isPositioned: Y(g),
|
|
1110
1138
|
floatingStyles: v,
|
|
1111
|
-
update:
|
|
1139
|
+
update: b
|
|
1112
1140
|
};
|
|
1113
1141
|
}
|
|
1114
|
-
const
|
|
1142
|
+
const En = /* @__PURE__ */ z({
|
|
1115
1143
|
__name: "SqPopover",
|
|
1116
1144
|
props: /* @__PURE__ */ bt({
|
|
1117
1145
|
placement: { default: "top" },
|
|
@@ -1129,12 +1157,13 @@ const Cn = /* @__PURE__ */ J({
|
|
|
1129
1157
|
emits: ["update:visible"],
|
|
1130
1158
|
setup(t) {
|
|
1131
1159
|
let e;
|
|
1132
|
-
const n = t, o = St("triggerRef"),
|
|
1160
|
+
const n = t, o = St("triggerRef"), s = St("popverRef"), i = Yt(t, "visible"), { floatingStyles: r } = Ln(o, s, {
|
|
1133
1161
|
placement: n.placement,
|
|
1134
|
-
whileElementsMounted:
|
|
1135
|
-
|
|
1162
|
+
whileElementsMounted: xn,
|
|
1163
|
+
transform: !1,
|
|
1164
|
+
middleware: [bn(n.offset), Sn()]
|
|
1136
1165
|
});
|
|
1137
|
-
|
|
1166
|
+
de(() => {
|
|
1138
1167
|
m(), document.removeEventListener("click", f);
|
|
1139
1168
|
});
|
|
1140
1169
|
function l() {
|
|
@@ -1148,45 +1177,45 @@ const Cn = /* @__PURE__ */ J({
|
|
|
1148
1177
|
}, n.hideAfter));
|
|
1149
1178
|
}
|
|
1150
1179
|
function c() {
|
|
1151
|
-
n.trigger === "click" && (
|
|
1180
|
+
n.trigger === "click" && (i.value ? f() : n.disabled || u());
|
|
1152
1181
|
}
|
|
1153
1182
|
function u() {
|
|
1154
|
-
|
|
1183
|
+
i.value = !0, document.addEventListener("click", f);
|
|
1155
1184
|
}
|
|
1156
1185
|
function f() {
|
|
1157
|
-
|
|
1186
|
+
i.value = !1, document.removeEventListener("click", f);
|
|
1158
1187
|
}
|
|
1159
1188
|
function m() {
|
|
1160
1189
|
e && (clearTimeout(e), e = void 0);
|
|
1161
1190
|
}
|
|
1162
|
-
return (d, p) => (C(),
|
|
1163
|
-
|
|
1191
|
+
return (d, p) => (C(), _(pe, null, [
|
|
1192
|
+
J("span", {
|
|
1164
1193
|
class: "sq-popover-trigger",
|
|
1165
1194
|
ref_key: "triggerRef",
|
|
1166
1195
|
ref: o,
|
|
1167
1196
|
onMouseenter: l,
|
|
1168
1197
|
onMouseleave: a,
|
|
1169
|
-
onClick:
|
|
1198
|
+
onClick: qt(c, ["stop"])
|
|
1170
1199
|
}, [
|
|
1171
|
-
|
|
1200
|
+
T(d.$slots, "reference")
|
|
1172
1201
|
], 544),
|
|
1173
|
-
(C(),
|
|
1202
|
+
(C(), Q(me, {
|
|
1174
1203
|
to: "body",
|
|
1175
1204
|
disabled: !n.teleported
|
|
1176
1205
|
}, [
|
|
1177
|
-
Xt(
|
|
1178
|
-
default:
|
|
1179
|
-
|
|
1180
|
-
class:
|
|
1206
|
+
Xt(he, { name: "sq-fade" }, {
|
|
1207
|
+
default: ft(() => [
|
|
1208
|
+
Kt(J("div", {
|
|
1209
|
+
class: M(["sq-popover", d.popoverClass]),
|
|
1181
1210
|
ref_key: "popverRef",
|
|
1182
|
-
ref:
|
|
1183
|
-
style:
|
|
1184
|
-
onClick: p[0] || (p[0] =
|
|
1211
|
+
ref: s,
|
|
1212
|
+
style: At(H(r)),
|
|
1213
|
+
onClick: p[0] || (p[0] = qt(() => {
|
|
1185
1214
|
}, ["stop"]))
|
|
1186
1215
|
}, [
|
|
1187
|
-
|
|
1216
|
+
T(d.$slots, "default")
|
|
1188
1217
|
], 6), [
|
|
1189
|
-
[
|
|
1218
|
+
[ge, i.value]
|
|
1190
1219
|
])
|
|
1191
1220
|
]),
|
|
1192
1221
|
_: 3
|
|
@@ -1194,7 +1223,33 @@ const Cn = /* @__PURE__ */ J({
|
|
|
1194
1223
|
], 8, ["disabled"]))
|
|
1195
1224
|
], 64));
|
|
1196
1225
|
}
|
|
1197
|
-
}),
|
|
1226
|
+
}), $n = /* @__PURE__ */ z({
|
|
1227
|
+
__name: "SqProgress",
|
|
1228
|
+
props: {
|
|
1229
|
+
value: {},
|
|
1230
|
+
min: { default: 0 },
|
|
1231
|
+
max: { default: 100 },
|
|
1232
|
+
color: {},
|
|
1233
|
+
type: { default: "primary" }
|
|
1234
|
+
},
|
|
1235
|
+
setup(t) {
|
|
1236
|
+
const e = t, n = w(() => e.color ? [] : [`is-${e.type}`]), o = w(() => {
|
|
1237
|
+
const i = e.max - e.min;
|
|
1238
|
+
return (e.value - e.min) * 100 / i;
|
|
1239
|
+
}), s = w(() => {
|
|
1240
|
+
const i = {};
|
|
1241
|
+
if (i["--progress-value"] = `${o.value}%`, e.color) {
|
|
1242
|
+
const l = typeof e.color == "string" ? e.color : e.color(o.value);
|
|
1243
|
+
i["--progress-color"] = l;
|
|
1244
|
+
}
|
|
1245
|
+
return i;
|
|
1246
|
+
});
|
|
1247
|
+
return (i, r) => (C(), _("div", {
|
|
1248
|
+
class: M(["sq-progress", n.value]),
|
|
1249
|
+
style: At(s.value)
|
|
1250
|
+
}, null, 6));
|
|
1251
|
+
}
|
|
1252
|
+
}), kn = /* @__PURE__ */ z({
|
|
1198
1253
|
__name: "SqTag",
|
|
1199
1254
|
props: {
|
|
1200
1255
|
type: {},
|
|
@@ -1203,21 +1258,21 @@ const Cn = /* @__PURE__ */ J({
|
|
|
1203
1258
|
size: { default: "md" }
|
|
1204
1259
|
},
|
|
1205
1260
|
setup(t) {
|
|
1206
|
-
const e = t, n =
|
|
1207
|
-
const
|
|
1208
|
-
return e.size !== "md" &&
|
|
1209
|
-
}), o =
|
|
1210
|
-
return (
|
|
1211
|
-
class:
|
|
1261
|
+
const e = t, n = w(() => {
|
|
1262
|
+
const s = [];
|
|
1263
|
+
return e.size !== "md" && s.push(`sq-tag--${e.size}`), e.theme !== "materialize" && e.type && s.push(`is-${e.theme}`), e.type && s.push(`is-${e.type}`), e.round && s.push("is-round"), s;
|
|
1264
|
+
}), o = w(() => e.size === "lg" ? "md" : "sm");
|
|
1265
|
+
return (s, i) => (C(), Q(H(kt), {
|
|
1266
|
+
class: M(["sq-tag", n.value]),
|
|
1212
1267
|
size: o.value
|
|
1213
1268
|
}, {
|
|
1214
|
-
default:
|
|
1215
|
-
|
|
1269
|
+
default: ft(() => [
|
|
1270
|
+
T(s.$slots, "default")
|
|
1216
1271
|
]),
|
|
1217
1272
|
_: 3
|
|
1218
1273
|
}, 8, ["class", "size"]));
|
|
1219
1274
|
}
|
|
1220
|
-
}),
|
|
1275
|
+
}), Bn = /* @__PURE__ */ z({
|
|
1221
1276
|
__name: "SqCheckTag",
|
|
1222
1277
|
props: {
|
|
1223
1278
|
checked: { type: Boolean, default: !1 },
|
|
@@ -1227,22 +1282,22 @@ const Cn = /* @__PURE__ */ J({
|
|
|
1227
1282
|
},
|
|
1228
1283
|
emits: ["change"],
|
|
1229
1284
|
setup(t, { emit: e }) {
|
|
1230
|
-
const n = e, o = t,
|
|
1285
|
+
const n = e, o = t, s = w(() => {
|
|
1231
1286
|
const r = [];
|
|
1232
1287
|
return o.size !== "md" && r.push(`sq-tag--${o.size}`), o.type && r.push(`is-${o.type}`), o.round && r.push("is-round"), o.checked && r.push("is-checked"), r;
|
|
1233
|
-
}),
|
|
1234
|
-
return (r, l) => (C(),
|
|
1235
|
-
class:
|
|
1236
|
-
size:
|
|
1288
|
+
}), i = w(() => o.size === "lg" ? "md" : "sm");
|
|
1289
|
+
return (r, l) => (C(), Q(H(kt), {
|
|
1290
|
+
class: M(["sq-check-tag", s.value]),
|
|
1291
|
+
size: i.value,
|
|
1237
1292
|
onClick: l[0] || (l[0] = (a) => n("change", !o.checked))
|
|
1238
1293
|
}, {
|
|
1239
|
-
default:
|
|
1240
|
-
|
|
1294
|
+
default: ft(() => [
|
|
1295
|
+
T(r.$slots, "default")
|
|
1241
1296
|
]),
|
|
1242
1297
|
_: 3
|
|
1243
1298
|
}, 8, ["class", "size"]));
|
|
1244
1299
|
}
|
|
1245
|
-
}),
|
|
1300
|
+
}), kt = /* @__PURE__ */ z({
|
|
1246
1301
|
__name: "SqText",
|
|
1247
1302
|
props: {
|
|
1248
1303
|
rowNum: { default: 1 },
|
|
@@ -1250,25 +1305,27 @@ const Cn = /* @__PURE__ */ J({
|
|
|
1250
1305
|
size: { default: "md" }
|
|
1251
1306
|
},
|
|
1252
1307
|
setup(t) {
|
|
1253
|
-
const e = t, n =
|
|
1254
|
-
const
|
|
1255
|
-
return e.size !== "md" &&
|
|
1256
|
-
}), o =
|
|
1308
|
+
const e = t, n = w(() => {
|
|
1309
|
+
const s = [];
|
|
1310
|
+
return e.size !== "md" && s.push(`s-text--${e.size}`), e.ellipsis && s.push(e.rowNum > 1 ? "multi-line" : "single-line"), s;
|
|
1311
|
+
}), o = w(
|
|
1257
1312
|
() => e.ellipsis ? `--row-num: ${e.rowNum}` : ""
|
|
1258
1313
|
);
|
|
1259
|
-
return (
|
|
1260
|
-
class:
|
|
1261
|
-
style:
|
|
1314
|
+
return (s, i) => (C(), _("span", {
|
|
1315
|
+
class: M(["sq-text", n.value]),
|
|
1316
|
+
style: At(o.value)
|
|
1262
1317
|
}, [
|
|
1263
|
-
|
|
1318
|
+
T(s.$slots, "default")
|
|
1264
1319
|
], 6));
|
|
1265
1320
|
}
|
|
1266
1321
|
});
|
|
1267
1322
|
export {
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1323
|
+
On as SqButton,
|
|
1324
|
+
_n as SqCard,
|
|
1325
|
+
Bn as SqCheckTag,
|
|
1326
|
+
Tn as SqInput,
|
|
1327
|
+
En as SqPopover,
|
|
1328
|
+
$n as SqProgress,
|
|
1329
|
+
kn as SqTag,
|
|
1330
|
+
kt as SqText
|
|
1274
1331
|
};
|