@oiij/chrome-tabs 0.0.12 → 0.0.13
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/Tabs.vue.d.ts +2 -2
- package/dist/index.cjs +8 -8
- package/dist/index.js +382 -385
- package/dist/index.umd.cjs +8 -8
- package/package.json +7 -14
package/dist/index.js
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import { inject as Le, onBeforeMount as ze, onMounted as ye, nextTick as $e, watch as P, getCurrentScope as Te, onScopeDispose as
|
|
2
|
-
function
|
|
1
|
+
import { inject as Le, onBeforeMount as ze, onMounted as ye, nextTick as $e, watch as P, getCurrentScope as Te, onScopeDispose as Re, getCurrentInstance as ke, toValue as z, computed as N, shallowRef as Q, unref as y, createElementBlock as A, openBlock as C, createElementVNode as $, createStaticVNode as je, defineComponent as we, h as ie, normalizeClass as w, createCommentVNode as X, normalizeStyle as _, createBlock as ee, resolveDynamicComponent as re, withModifiers as Pe, createVNode as W, useTemplateRef as Fe, renderSlot as ue, TransitionGroup as Oe, withCtx as Ve, Fragment as He, renderList as De, mergeProps as We } from "vue";
|
|
2
|
+
function Ke(e) {
|
|
3
3
|
let t = ".", n = "__", o = "--", i;
|
|
4
4
|
if (e) {
|
|
5
|
-
let
|
|
6
|
-
|
|
5
|
+
let l = e.blockPrefix;
|
|
6
|
+
l && (t = l), l = e.elementPrefix, l && (n = l), l = e.modifierPrefix, l && (o = l);
|
|
7
7
|
}
|
|
8
8
|
const r = {
|
|
9
|
-
install(
|
|
10
|
-
i =
|
|
11
|
-
const h =
|
|
9
|
+
install(l) {
|
|
10
|
+
i = l.c;
|
|
11
|
+
const h = l.context;
|
|
12
12
|
h.bem = {}, h.bem.b = null, h.bem.els = null;
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
|
-
function u(
|
|
16
|
-
let h,
|
|
15
|
+
function u(l) {
|
|
16
|
+
let h, v;
|
|
17
17
|
return {
|
|
18
|
-
before(
|
|
19
|
-
h =
|
|
18
|
+
before(m) {
|
|
19
|
+
h = m.bem.b, v = m.bem.els, m.bem.els = null;
|
|
20
20
|
},
|
|
21
|
-
after(
|
|
22
|
-
|
|
21
|
+
after(m) {
|
|
22
|
+
m.bem.b = h, m.bem.els = v;
|
|
23
23
|
},
|
|
24
|
-
$({ context:
|
|
25
|
-
return
|
|
24
|
+
$({ context: m, props: S }) {
|
|
25
|
+
return l = typeof l == "string" ? l : l({ context: m, props: S }), m.bem.b = l, `${S?.bPrefix || t}${m.bem.b}`;
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
function l
|
|
29
|
+
function s(l) {
|
|
30
30
|
let h;
|
|
31
31
|
return {
|
|
32
|
-
before(
|
|
33
|
-
h =
|
|
32
|
+
before(v) {
|
|
33
|
+
h = v.bem.els;
|
|
34
34
|
},
|
|
35
|
-
after(
|
|
36
|
-
|
|
35
|
+
after(v) {
|
|
36
|
+
v.bem.els = h;
|
|
37
37
|
},
|
|
38
|
-
$({ context:
|
|
39
|
-
return
|
|
38
|
+
$({ context: v, props: m }) {
|
|
39
|
+
return l = typeof l == "string" ? l : l({ context: v, props: m }), v.bem.els = l.split(",").map((S) => S.trim()), v.bem.els.map((S) => `${m?.bPrefix || t}${v.bem.b}${n}${S}`).join(", ");
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function f(l) {
|
|
44
44
|
return {
|
|
45
|
-
$({ context: h, props:
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
function
|
|
49
|
-
return
|
|
45
|
+
$({ context: h, props: v }) {
|
|
46
|
+
l = typeof l == "string" ? l : l({ context: h, props: v });
|
|
47
|
+
const m = l.split(",").map((F) => F.trim());
|
|
48
|
+
function S(F) {
|
|
49
|
+
return m.map((Be) => `&${v?.bPrefix || t}${h.bem.b}${F !== void 0 ? `${n}${F}` : ""}${o}${Be}`).join(", ");
|
|
50
50
|
}
|
|
51
51
|
const G = h.bem.els;
|
|
52
52
|
if (G !== null) {
|
|
53
53
|
if (process.env.NODE_ENV !== "production" && G.length >= 2)
|
|
54
|
-
throw Error(`[css-render/plugin-bem]: m(${
|
|
55
|
-
return
|
|
54
|
+
throw Error(`[css-render/plugin-bem]: m(${l}) is invalid, using modifier inside multiple elements is not allowed`);
|
|
55
|
+
return S(G[0]);
|
|
56
56
|
} else
|
|
57
|
-
return
|
|
57
|
+
return S();
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function d(l) {
|
|
62
62
|
return {
|
|
63
|
-
$({ context: h, props:
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
67
|
-
throw Error(`[css-render/plugin-bem]: notM(${
|
|
68
|
-
return `&:not(${
|
|
63
|
+
$({ context: h, props: v }) {
|
|
64
|
+
l = typeof l == "string" ? l : l({ context: h, props: v });
|
|
65
|
+
const m = h.bem.els;
|
|
66
|
+
if (process.env.NODE_ENV !== "production" && m !== null && m.length >= 2)
|
|
67
|
+
throw Error(`[css-render/plugin-bem]: notM(${l}) is invalid, using modifier inside multiple elements is not allowed`);
|
|
68
|
+
return `&:not(${v?.bPrefix || t}${h.bem.b}${m !== null && m.length > 0 ? `${n}${m[0]}` : ""}${o}${l})`;
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
return Object.assign(r, {
|
|
73
|
-
cB: ((...
|
|
74
|
-
cE: ((...
|
|
75
|
-
cM: ((...
|
|
76
|
-
cNotM: ((...
|
|
73
|
+
cB: ((...l) => i(u(l[0]), l[1], l[2])),
|
|
74
|
+
cE: ((...l) => i(s(l[0]), l[1], l[2])),
|
|
75
|
+
cM: ((...l) => i(f(l[0]), l[1], l[2])),
|
|
76
|
+
cNotM: ((...l) => i(d(l[0]), l[1], l[2]))
|
|
77
77
|
}), r;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function qe(e) {
|
|
80
80
|
let t = 0;
|
|
81
81
|
for (let n = 0; n < e.length; ++n)
|
|
82
82
|
e[n] === "&" && ++t;
|
|
83
83
|
return t;
|
|
84
84
|
}
|
|
85
|
-
const Ce = /\s*,(?![^(]*\))\s*/g,
|
|
86
|
-
function
|
|
85
|
+
const Ce = /\s*,(?![^(]*\))\s*/g, Ge = /\s+/g;
|
|
86
|
+
function Ze(e, t) {
|
|
87
87
|
const n = [];
|
|
88
88
|
return t.split(Ce).forEach((o) => {
|
|
89
|
-
let i =
|
|
89
|
+
let i = qe(o);
|
|
90
90
|
if (i) {
|
|
91
91
|
if (i === 1) {
|
|
92
92
|
e.forEach((u) => {
|
|
@@ -108,16 +108,16 @@ function Ue(e, t) {
|
|
|
108
108
|
];
|
|
109
109
|
for (; i--; ) {
|
|
110
110
|
const u = [];
|
|
111
|
-
r.forEach((
|
|
112
|
-
e.forEach((
|
|
113
|
-
u.push(
|
|
111
|
+
r.forEach((s) => {
|
|
112
|
+
e.forEach((f) => {
|
|
113
|
+
u.push(s.replace("&", f));
|
|
114
114
|
});
|
|
115
115
|
}), r = u;
|
|
116
116
|
}
|
|
117
117
|
r.forEach((u) => n.push(u));
|
|
118
118
|
}), n;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ue(e, t) {
|
|
121
121
|
const n = [];
|
|
122
122
|
return t.split(Ce).forEach((o) => {
|
|
123
123
|
e.forEach((i) => {
|
|
@@ -125,12 +125,12 @@ function Ye(e, t) {
|
|
|
125
125
|
});
|
|
126
126
|
}), n;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Ye(e) {
|
|
129
129
|
let t = [""];
|
|
130
130
|
return e.forEach((n) => {
|
|
131
131
|
n = n && n.trim(), // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
|
|
132
|
-
n && (n.includes("&") ? t =
|
|
133
|
-
}), t.join(", ").replace(
|
|
132
|
+
n && (n.includes("&") ? t = Ze(t, n) : t = Ue(t, n));
|
|
133
|
+
}), t.join(", ").replace(Ge, " ");
|
|
134
134
|
}
|
|
135
135
|
function le(e) {
|
|
136
136
|
if (!e)
|
|
@@ -141,33 +141,33 @@ function le(e) {
|
|
|
141
141
|
function ne(e, t) {
|
|
142
142
|
return (t ?? document.head).querySelector(`style[cssr-id="${e}"]`);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function Je(e) {
|
|
145
145
|
const t = document.createElement("style");
|
|
146
146
|
return t.setAttribute("cssr-id", e), t;
|
|
147
147
|
}
|
|
148
148
|
function O(e) {
|
|
149
149
|
return e ? /^\s*@(s|m)/.test(e) : !1;
|
|
150
150
|
}
|
|
151
|
-
const
|
|
151
|
+
const Qe = /[A-Z]/g;
|
|
152
152
|
function Ie(e) {
|
|
153
|
-
return e.replace(
|
|
153
|
+
return e.replace(Qe, (t) => "-" + t.toLowerCase());
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Xe(e, t = " ") {
|
|
156
156
|
return typeof e == "object" && e !== null ? ` {
|
|
157
157
|
` + Object.entries(e).map((n) => t + ` ${Ie(n[0])}: ${n[1]};`).join(`
|
|
158
158
|
`) + `
|
|
159
159
|
` + t + "}" : `: ${e};`;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function _e(e, t, n) {
|
|
162
162
|
return typeof e == "function" ? e({
|
|
163
163
|
context: t.context,
|
|
164
164
|
props: n
|
|
165
165
|
}) : e;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function ae(e, t, n, o) {
|
|
168
168
|
if (!t)
|
|
169
169
|
return "";
|
|
170
|
-
const i =
|
|
170
|
+
const i = _e(t, n, o);
|
|
171
171
|
if (!i)
|
|
172
172
|
return "";
|
|
173
173
|
if (typeof i == "string")
|
|
@@ -181,15 +181,15 @@ ${i}
|
|
|
181
181
|
const u = e ? [
|
|
182
182
|
e + " {"
|
|
183
183
|
] : [];
|
|
184
|
-
return r.forEach((
|
|
185
|
-
const
|
|
186
|
-
if (
|
|
184
|
+
return r.forEach((s) => {
|
|
185
|
+
const f = i[s];
|
|
186
|
+
if (s === "raw") {
|
|
187
187
|
u.push(`
|
|
188
|
-
` +
|
|
188
|
+
` + f + `
|
|
189
189
|
`);
|
|
190
190
|
return;
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
s = Ie(s), f != null && u.push(` ${s}${Xe(f)}`);
|
|
193
193
|
}), e && u.push("}"), u.join(`
|
|
194
194
|
`);
|
|
195
195
|
}
|
|
@@ -209,39 +209,39 @@ function Ee(e, t, n, o, i) {
|
|
|
209
209
|
if (!r || typeof r == "string")
|
|
210
210
|
O(r) ? u = r : t.push(r);
|
|
211
211
|
else if (typeof r == "function") {
|
|
212
|
-
const
|
|
212
|
+
const d = r({
|
|
213
213
|
context: o.context,
|
|
214
214
|
props: i
|
|
215
215
|
});
|
|
216
|
-
O(
|
|
216
|
+
O(d) ? u = d : t.push(d);
|
|
217
217
|
} else if (r.before && r.before(o.context), !r.$ || typeof r.$ == "string")
|
|
218
218
|
O(r.$) ? u = r.$ : t.push(r.$);
|
|
219
219
|
else if (r.$) {
|
|
220
|
-
const
|
|
220
|
+
const d = r.$({
|
|
221
221
|
context: o.context,
|
|
222
222
|
props: i
|
|
223
223
|
});
|
|
224
|
-
O(
|
|
224
|
+
O(d) ? u = d : t.push(d);
|
|
225
225
|
}
|
|
226
|
-
const
|
|
227
|
-
u ? n.push(`${u} {`) :
|
|
226
|
+
const s = Ye(t), f = ae(s, e.props, o, i);
|
|
227
|
+
u ? n.push(`${u} {`) : f.length && n.push(f), e.children && te(e.children, {
|
|
228
228
|
context: o.context,
|
|
229
229
|
props: i
|
|
230
|
-
}, (
|
|
231
|
-
if (typeof
|
|
232
|
-
const
|
|
233
|
-
n.push(
|
|
230
|
+
}, (d) => {
|
|
231
|
+
if (typeof d == "string") {
|
|
232
|
+
const c = ae(s, { raw: d }, o, i);
|
|
233
|
+
n.push(c);
|
|
234
234
|
} else
|
|
235
|
-
Ee(
|
|
235
|
+
Ee(d, t, n, o, i);
|
|
236
236
|
}), t.pop(), u && n.push("}"), r && r.after && r.after(o.context);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function et(e, t, n) {
|
|
239
239
|
const o = [];
|
|
240
240
|
return Ee(e, [], o, t, n), o.join(`
|
|
241
241
|
|
|
242
242
|
`);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function tt(e) {
|
|
245
245
|
for (var t = 0, n, o = 0, i = e.length; i >= 4; ++o, i -= 4)
|
|
246
246
|
n = e.charCodeAt(o) & 255 | (e.charCodeAt(++o) & 255) << 8 | (e.charCodeAt(++o) & 255) << 16 | (e.charCodeAt(++o) & 255) << 24, n = /* Math.imul(k, m): */
|
|
247
247
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
@@ -261,7 +261,7 @@ function nt(e) {
|
|
|
261
261
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
262
262
|
}
|
|
263
263
|
typeof window < "u" && (window.__cssrContext = {});
|
|
264
|
-
function
|
|
264
|
+
function nt(e, t, n, o) {
|
|
265
265
|
const { els: i } = t;
|
|
266
266
|
if (n === void 0)
|
|
267
267
|
i.forEach(le), t.els = [];
|
|
@@ -270,39 +270,39 @@ function ot(e, t, n, o) {
|
|
|
270
270
|
r && i.includes(r) && (le(r), t.els = i.filter((u) => u !== r));
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function se(e, t) {
|
|
274
274
|
e.push(t);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
let
|
|
278
|
-
if (n === void 0 && (
|
|
279
|
-
|
|
276
|
+
function ot(e, t, n, o, i, r, u, s, f) {
|
|
277
|
+
let d;
|
|
278
|
+
if (n === void 0 && (d = t.render(o), n = tt(d)), f) {
|
|
279
|
+
f.adapter(n, d ?? t.render(o));
|
|
280
280
|
return;
|
|
281
281
|
}
|
|
282
|
-
|
|
283
|
-
const
|
|
284
|
-
if (
|
|
285
|
-
return
|
|
286
|
-
const
|
|
287
|
-
if (
|
|
288
|
-
return
|
|
282
|
+
s === void 0 && (s = document.head);
|
|
283
|
+
const c = ne(n, s);
|
|
284
|
+
if (c !== null && !r)
|
|
285
|
+
return c;
|
|
286
|
+
const a = c ?? Je(n);
|
|
287
|
+
if (d === void 0 && (d = t.render(o)), a.textContent = d, c !== null)
|
|
288
|
+
return c;
|
|
289
289
|
if (u) {
|
|
290
|
-
const
|
|
291
|
-
if (
|
|
292
|
-
return
|
|
290
|
+
const p = s.querySelector(`meta[name="${u}"]`);
|
|
291
|
+
if (p)
|
|
292
|
+
return s.insertBefore(a, p), se(t.els, a), a;
|
|
293
293
|
}
|
|
294
|
-
return i ?
|
|
294
|
+
return i ? s.insertBefore(a, s.querySelector("style, link")) : s.appendChild(a), se(t.els, a), a;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
return
|
|
296
|
+
function it(e) {
|
|
297
|
+
return et(this, this.instance, e);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
const { id: t, ssr: n, props: o, head: i = !1, force: r = !1, anchorMetaName: u, parent:
|
|
301
|
-
return
|
|
299
|
+
function rt(e = {}) {
|
|
300
|
+
const { id: t, ssr: n, props: o, head: i = !1, force: r = !1, anchorMetaName: u, parent: s } = e;
|
|
301
|
+
return ot(this.instance, this, t, o, i, r, u, s, n);
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function ut(e = {}) {
|
|
304
304
|
const { id: t, parent: n } = e;
|
|
305
|
-
|
|
305
|
+
nt(this.instance, this, t, n);
|
|
306
306
|
}
|
|
307
307
|
const V = function(e, t, n, o) {
|
|
308
308
|
return {
|
|
@@ -311,16 +311,16 @@ const V = function(e, t, n, o) {
|
|
|
311
311
|
props: n,
|
|
312
312
|
children: o,
|
|
313
313
|
els: [],
|
|
314
|
-
render:
|
|
315
|
-
mount:
|
|
316
|
-
unmount:
|
|
314
|
+
render: it,
|
|
315
|
+
mount: rt,
|
|
316
|
+
unmount: ut
|
|
317
317
|
};
|
|
318
|
-
},
|
|
318
|
+
}, lt = function(e, t, n, o) {
|
|
319
319
|
return Array.isArray(t) ? V(e, { $: null }, null, t) : Array.isArray(n) ? V(e, t, null, n) : Array.isArray(o) ? V(e, t, n, o) : V(e, t, n, null);
|
|
320
320
|
};
|
|
321
321
|
function at(e = {}) {
|
|
322
322
|
const t = {
|
|
323
|
-
c: ((...n) =>
|
|
323
|
+
c: ((...n) => lt(t, ...n)),
|
|
324
324
|
use: (n, ...o) => n.install(t, ...o),
|
|
325
325
|
find: ne,
|
|
326
326
|
context: {},
|
|
@@ -328,8 +328,8 @@ function at(e = {}) {
|
|
|
328
328
|
};
|
|
329
329
|
return t;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
332
|
-
const { namespace: t = "n", blockPrefix: n = `.${t}-`, elementPrefix: o = "__", modifierPrefix: i = "--" } = e ?? {}, r = at(), u =
|
|
331
|
+
function st(e) {
|
|
332
|
+
const { namespace: t = "n", blockPrefix: n = `.${t}-`, elementPrefix: o = "__", modifierPrefix: i = "--" } = e ?? {}, r = at(), u = Ke({
|
|
333
333
|
blockPrefix: n,
|
|
334
334
|
elementPrefix: o,
|
|
335
335
|
modifierPrefix: i
|
|
@@ -343,29 +343,29 @@ function ct(e) {
|
|
|
343
343
|
plugin: u
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
|
-
const
|
|
347
|
-
function
|
|
346
|
+
const ct = "@css-render/vue3-ssr";
|
|
347
|
+
function dt(e, t) {
|
|
348
348
|
return `<style cssr-id="${e}">
|
|
349
349
|
${t}
|
|
350
350
|
</style>`;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function ft(e, t, n) {
|
|
353
353
|
const { styles: o, ids: i } = n;
|
|
354
|
-
i.has(e) || o !== null && (i.add(e), o.push(
|
|
354
|
+
i.has(e) || o !== null && (i.add(e), o.push(dt(e, t)));
|
|
355
355
|
}
|
|
356
|
-
const
|
|
357
|
-
function
|
|
358
|
-
if (
|
|
356
|
+
const ht = typeof document < "u";
|
|
357
|
+
function mt() {
|
|
358
|
+
if (ht)
|
|
359
359
|
return;
|
|
360
|
-
const e = Le(
|
|
360
|
+
const e = Le(ct, null);
|
|
361
361
|
if (e !== null)
|
|
362
362
|
return {
|
|
363
|
-
adapter: (t, n) =>
|
|
363
|
+
adapter: (t, n) => ft(t, n, e),
|
|
364
364
|
context: e
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
const n =
|
|
367
|
+
function vt(e, t) {
|
|
368
|
+
const n = mt();
|
|
369
369
|
function o() {
|
|
370
370
|
t.mount({
|
|
371
371
|
id: e,
|
|
@@ -377,8 +377,8 @@ function bt(e, t) {
|
|
|
377
377
|
o();
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
return Te() ? (
|
|
380
|
+
function bt(e, t) {
|
|
381
|
+
return Te() ? (Re(e, t), !0) : !1;
|
|
382
382
|
}
|
|
383
383
|
const gt = typeof window < "u" && typeof document < "u";
|
|
384
384
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -398,18 +398,18 @@ function yt(e, t) {
|
|
|
398
398
|
}
|
|
399
399
|
function $t(e, t = {}) {
|
|
400
400
|
let n, o, i = ce;
|
|
401
|
-
const r = (
|
|
402
|
-
clearTimeout(
|
|
401
|
+
const r = (f) => {
|
|
402
|
+
clearTimeout(f), i(), i = ce;
|
|
403
403
|
};
|
|
404
404
|
let u;
|
|
405
|
-
return (
|
|
406
|
-
const
|
|
407
|
-
return n && r(n),
|
|
408
|
-
i = t.rejectOnCancel ?
|
|
409
|
-
n && r(n), o = void 0,
|
|
410
|
-
},
|
|
411
|
-
o && r(o), o = void 0,
|
|
412
|
-
},
|
|
405
|
+
return (f) => {
|
|
406
|
+
const d = z(e), c = z(t.maxWait);
|
|
407
|
+
return n && r(n), d <= 0 || c !== void 0 && c <= 0 ? (o && (r(o), o = void 0), Promise.resolve(f())) : new Promise((a, p) => {
|
|
408
|
+
i = t.rejectOnCancel ? p : a, u = f, c && !o && (o = setTimeout(() => {
|
|
409
|
+
n && r(n), o = void 0, a(u());
|
|
410
|
+
}, c)), n = setTimeout(() => {
|
|
411
|
+
o && r(o), o = void 0, a(f());
|
|
412
|
+
}, d);
|
|
413
413
|
});
|
|
414
414
|
};
|
|
415
415
|
}
|
|
@@ -433,33 +433,31 @@ function It(e, t, n) {
|
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
const oe = gt ? window : void 0;
|
|
436
|
-
function
|
|
436
|
+
function L(e) {
|
|
437
437
|
var t;
|
|
438
|
-
const n =
|
|
438
|
+
const n = z(e);
|
|
439
439
|
return (t = n?.$el) !== null && t !== void 0 ? t : n;
|
|
440
440
|
}
|
|
441
441
|
function Et(...e) {
|
|
442
|
-
const t =
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
var l, d;
|
|
442
|
+
const t = (o, i, r, u) => (o.addEventListener(i, r, u), () => o.removeEventListener(i, r, u)), n = N(() => {
|
|
443
|
+
const o = K(z(e[0])).filter((i) => i != null);
|
|
444
|
+
return o.every((i) => typeof i != "string") ? o : void 0;
|
|
445
|
+
});
|
|
446
|
+
return It(() => {
|
|
447
|
+
var o, i;
|
|
449
448
|
return [
|
|
450
|
-
(
|
|
451
|
-
K(
|
|
452
|
-
K(y(
|
|
453
|
-
|
|
449
|
+
(o = (i = n.value) === null || i === void 0 ? void 0 : i.map((r) => L(r))) !== null && o !== void 0 ? o : [oe].filter((r) => r != null),
|
|
450
|
+
K(z(n.value ? e[1] : e[0])),
|
|
451
|
+
K(y(n.value ? e[2] : e[1])),
|
|
452
|
+
z(n.value ? e[3] : e[2])
|
|
454
453
|
];
|
|
455
|
-
}, ([
|
|
456
|
-
if (
|
|
457
|
-
const
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
};
|
|
462
|
-
return Se(n), u;
|
|
454
|
+
}, ([o, i, r, u], s, f) => {
|
|
455
|
+
if (!o?.length || !i?.length || !r?.length) return;
|
|
456
|
+
const d = xt(u) ? { ...u } : u, c = o.flatMap((a) => i.flatMap((p) => r.map((M) => t(a, p, M, d))));
|
|
457
|
+
f(() => {
|
|
458
|
+
c.forEach((a) => a());
|
|
459
|
+
});
|
|
460
|
+
}, { flush: "post" });
|
|
463
461
|
}
|
|
464
462
|
// @__NO_SIDE_EFFECTS__
|
|
465
463
|
function St() {
|
|
@@ -471,168 +469,168 @@ function St() {
|
|
|
471
469
|
// @__NO_SIDE_EFFECTS__
|
|
472
470
|
function Nt(e) {
|
|
473
471
|
const t = /* @__PURE__ */ St();
|
|
474
|
-
return
|
|
472
|
+
return N(() => (t.value, !!e()));
|
|
475
473
|
}
|
|
476
474
|
function Mt(e, t, n = {}) {
|
|
477
475
|
const { window: o = oe, ...i } = n;
|
|
478
476
|
let r;
|
|
479
|
-
const u = /* @__PURE__ */ Nt(() => o && "ResizeObserver" in o),
|
|
477
|
+
const u = /* @__PURE__ */ Nt(() => o && "ResizeObserver" in o), s = () => {
|
|
480
478
|
r && (r.disconnect(), r = void 0);
|
|
481
|
-
},
|
|
482
|
-
const
|
|
483
|
-
return Array.isArray(
|
|
484
|
-
}), (
|
|
485
|
-
if (
|
|
479
|
+
}, f = P(N(() => {
|
|
480
|
+
const c = z(e);
|
|
481
|
+
return Array.isArray(c) ? c.map((a) => L(a)) : [L(c)];
|
|
482
|
+
}), (c) => {
|
|
483
|
+
if (s(), u.value && o) {
|
|
486
484
|
r = new ResizeObserver(t);
|
|
487
|
-
for (const
|
|
485
|
+
for (const a of c) a && r.observe(a, i);
|
|
488
486
|
}
|
|
489
487
|
}, {
|
|
490
488
|
immediate: !0,
|
|
491
489
|
flush: "post"
|
|
492
|
-
}),
|
|
493
|
-
|
|
490
|
+
}), d = () => {
|
|
491
|
+
s(), f();
|
|
494
492
|
};
|
|
495
|
-
return
|
|
493
|
+
return bt(d), {
|
|
496
494
|
isSupported: u,
|
|
497
|
-
stop:
|
|
495
|
+
stop: d
|
|
498
496
|
};
|
|
499
497
|
}
|
|
500
498
|
function At(e, t = {
|
|
501
499
|
width: 0,
|
|
502
500
|
height: 0
|
|
503
501
|
}, n = {}) {
|
|
504
|
-
const { window: o = oe, box: i = "content-box" } = n, r =
|
|
505
|
-
var
|
|
506
|
-
return (
|
|
507
|
-
}), u = Q(t.width),
|
|
508
|
-
const
|
|
502
|
+
const { window: o = oe, box: i = "content-box" } = n, r = N(() => {
|
|
503
|
+
var a;
|
|
504
|
+
return (a = L(e)) === null || a === void 0 || (a = a.namespaceURI) === null || a === void 0 ? void 0 : a.includes("svg");
|
|
505
|
+
}), u = Q(t.width), s = Q(t.height), { stop: f } = Mt(e, ([a]) => {
|
|
506
|
+
const p = i === "border-box" ? a.borderBoxSize : i === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
|
|
509
507
|
if (o && r.value) {
|
|
510
|
-
const
|
|
511
|
-
if (
|
|
512
|
-
const
|
|
513
|
-
u.value =
|
|
508
|
+
const M = L(e);
|
|
509
|
+
if (M) {
|
|
510
|
+
const l = M.getBoundingClientRect();
|
|
511
|
+
u.value = l.width, s.value = l.height;
|
|
514
512
|
}
|
|
515
|
-
} else if (
|
|
516
|
-
const
|
|
517
|
-
u.value =
|
|
513
|
+
} else if (p) {
|
|
514
|
+
const M = K(p);
|
|
515
|
+
u.value = M.reduce((l, { inlineSize: h }) => l + h, 0), s.value = M.reduce((l, { blockSize: h }) => l + h, 0);
|
|
518
516
|
} else
|
|
519
|
-
u.value =
|
|
517
|
+
u.value = a.contentRect.width, s.value = a.contentRect.height;
|
|
520
518
|
}, n);
|
|
521
519
|
Ct(() => {
|
|
522
|
-
const
|
|
523
|
-
|
|
520
|
+
const a = L(e);
|
|
521
|
+
a && (u.value = "offsetWidth" in a ? a.offsetWidth : t.width, s.value = "offsetHeight" in a ? a.offsetHeight : t.height);
|
|
524
522
|
});
|
|
525
|
-
const
|
|
526
|
-
u.value =
|
|
523
|
+
const d = P(() => L(e), (a) => {
|
|
524
|
+
u.value = a ? t.width : 0, s.value = a ? t.height : 0;
|
|
527
525
|
});
|
|
528
|
-
function
|
|
529
|
-
|
|
526
|
+
function c() {
|
|
527
|
+
f(), d();
|
|
530
528
|
}
|
|
531
529
|
return {
|
|
532
530
|
width: u,
|
|
533
|
-
height:
|
|
534
|
-
stop:
|
|
531
|
+
height: s,
|
|
532
|
+
stop: c
|
|
535
533
|
};
|
|
536
534
|
}
|
|
537
|
-
function
|
|
538
|
-
const { activeClassName:
|
|
539
|
-
async function
|
|
535
|
+
function Bt(e, t) {
|
|
536
|
+
const { activeClassName: n = ".active", enableWheel: o = !0, direction: i = "vertical" } = t ?? {}, { width: r, height: u } = At(e);
|
|
537
|
+
async function s(c) {
|
|
540
538
|
await $e();
|
|
541
|
-
const
|
|
542
|
-
|
|
539
|
+
const a = e.value?.querySelector(n);
|
|
540
|
+
a && a.scrollIntoView({
|
|
543
541
|
behavior: "smooth",
|
|
544
542
|
block: "nearest",
|
|
545
543
|
inline: "nearest",
|
|
546
|
-
...
|
|
544
|
+
...c
|
|
547
545
|
});
|
|
548
546
|
}
|
|
549
|
-
function
|
|
550
|
-
if (!
|
|
551
|
-
|
|
552
|
-
const { deltaY:
|
|
553
|
-
switch (
|
|
547
|
+
function f(c) {
|
|
548
|
+
if (!o) return;
|
|
549
|
+
c.preventDefault();
|
|
550
|
+
const { deltaY: a } = c;
|
|
551
|
+
switch (i) {
|
|
554
552
|
case "vertical":
|
|
555
|
-
|
|
556
|
-
top:
|
|
553
|
+
e.value?.scrollBy({
|
|
554
|
+
top: a > 0 ? u.value : -u.value,
|
|
557
555
|
behavior: "smooth"
|
|
558
556
|
});
|
|
559
557
|
break;
|
|
560
558
|
case "horizontal":
|
|
561
|
-
|
|
562
|
-
left:
|
|
559
|
+
e.value?.scrollBy({
|
|
560
|
+
left: a > 0 ? r.value : -r.value,
|
|
563
561
|
behavior: "smooth"
|
|
564
562
|
});
|
|
565
563
|
break;
|
|
566
564
|
}
|
|
567
565
|
}
|
|
568
|
-
Et(
|
|
569
|
-
const
|
|
566
|
+
Et(e, "wheel", f);
|
|
567
|
+
const d = /* @__PURE__ */ wt(s, 500);
|
|
570
568
|
return P([r, u], () => {
|
|
571
|
-
|
|
569
|
+
d();
|
|
572
570
|
}), {
|
|
573
|
-
|
|
574
|
-
scrollToView:
|
|
571
|
+
templateRef: e,
|
|
572
|
+
scrollToView: s
|
|
575
573
|
};
|
|
576
574
|
}
|
|
577
|
-
var
|
|
575
|
+
var Lt = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, B = function(e) {
|
|
578
576
|
return typeof e == "string" ? e.length > 0 : typeof e == "number";
|
|
579
577
|
}, x = function(e, t, n) {
|
|
580
578
|
return t === void 0 && (t = 0), n === void 0 && (n = Math.pow(10, t)), Math.round(n * e) / n + 0;
|
|
581
|
-
},
|
|
579
|
+
}, E = function(e, t, n) {
|
|
582
580
|
return t === void 0 && (t = 0), n === void 0 && (n = 1), e > n ? n : e > t ? e : t;
|
|
583
|
-
},
|
|
581
|
+
}, Se = function(e) {
|
|
584
582
|
return (e = isFinite(e) ? e % 360 : 0) > 0 ? e : e + 360;
|
|
585
583
|
}, de = function(e) {
|
|
586
|
-
return { r:
|
|
584
|
+
return { r: E(e.r, 0, 255), g: E(e.g, 0, 255), b: E(e.b, 0, 255), a: E(e.a) };
|
|
587
585
|
}, Z = function(e) {
|
|
588
586
|
return { r: x(e.r), g: x(e.g), b: x(e.b), a: x(e.a, 3) };
|
|
589
|
-
},
|
|
587
|
+
}, zt = /^#([0-9a-f]{3,8})$/i, H = function(e) {
|
|
590
588
|
var t = e.toString(16);
|
|
591
589
|
return t.length < 2 ? "0" + t : t;
|
|
590
|
+
}, Ne = function(e) {
|
|
591
|
+
var t = e.r, n = e.g, o = e.b, i = e.a, r = Math.max(t, n, o), u = r - Math.min(t, n, o), s = u ? r === t ? (n - o) / u : r === n ? 2 + (o - t) / u : 4 + (t - n) / u : 0;
|
|
592
|
+
return { h: 60 * (s < 0 ? s + 6 : s), s: r ? u / r * 100 : 0, v: r / 255 * 100, a: i };
|
|
592
593
|
}, Me = function(e) {
|
|
593
|
-
var t = e.r, n = e.g, o = e.b, i = e.a, r = Math.max(t, n, o), u = r - Math.min(t, n, o), l = u ? r === t ? (n - o) / u : r === n ? 2 + (o - t) / u : 4 + (t - n) / u : 0;
|
|
594
|
-
return { h: 60 * (l < 0 ? l + 6 : l), s: r ? u / r * 100 : 0, v: r / 255 * 100, a: i };
|
|
595
|
-
}, Ae = function(e) {
|
|
596
594
|
var t = e.h, n = e.s, o = e.v, i = e.a;
|
|
597
595
|
t = t / 360 * 6, n /= 100, o /= 100;
|
|
598
|
-
var r = Math.floor(t), u = o * (1 - n),
|
|
599
|
-
return { r: 255 * [o,
|
|
596
|
+
var r = Math.floor(t), u = o * (1 - n), s = o * (1 - (t - r) * n), f = o * (1 - (1 - t + r) * n), d = r % 6;
|
|
597
|
+
return { r: 255 * [o, s, u, u, f, o][d], g: 255 * [f, o, o, s, u, u][d], b: 255 * [u, u, f, o, o, s][d], a: i };
|
|
600
598
|
}, fe = function(e) {
|
|
601
|
-
return { h:
|
|
599
|
+
return { h: Se(e.h), s: E(e.s, 0, 100), l: E(e.l, 0, 100), a: E(e.a) };
|
|
602
600
|
}, he = function(e) {
|
|
603
601
|
return { h: x(e.h), s: x(e.s), l: x(e.l), a: x(e.a, 3) };
|
|
604
602
|
}, me = function(e) {
|
|
605
|
-
return
|
|
603
|
+
return Me((n = (t = e).s, { h: t.h, s: (n *= ((o = t.l) < 50 ? o : 100 - o) / 100) > 0 ? 2 * n / (o + n) * 100 : 0, v: o + n, a: t.a }));
|
|
606
604
|
var t, n, o;
|
|
607
605
|
}, j = function(e) {
|
|
608
|
-
return { h: (t =
|
|
606
|
+
return { h: (t = Ne(e)).h, s: (i = (200 - (n = t.s)) * (o = t.v) / 100) > 0 && i < 200 ? n * o / 100 / (i <= 100 ? i : 200 - i) * 100 : 0, l: i / 2, a: t.a };
|
|
609
607
|
var t, n, o, i;
|
|
610
|
-
},
|
|
611
|
-
var t =
|
|
608
|
+
}, Tt = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, Rt = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, jt = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, Pt = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ve = { string: [[function(e) {
|
|
609
|
+
var t = zt.exec(e);
|
|
612
610
|
return t ? (e = t[1]).length <= 4 ? { r: parseInt(e[0] + e[0], 16), g: parseInt(e[1] + e[1], 16), b: parseInt(e[2] + e[2], 16), a: e.length === 4 ? x(parseInt(e[3] + e[3], 16) / 255, 2) : 1 } : e.length === 6 || e.length === 8 ? { r: parseInt(e.substr(0, 2), 16), g: parseInt(e.substr(2, 2), 16), b: parseInt(e.substr(4, 2), 16), a: e.length === 8 ? x(parseInt(e.substr(6, 2), 16) / 255, 2) : 1 } : null : null;
|
|
613
611
|
}, "hex"], [function(e) {
|
|
614
612
|
var t = jt.exec(e) || Pt.exec(e);
|
|
615
613
|
return t ? t[2] !== t[4] || t[4] !== t[6] ? null : de({ r: Number(t[1]) / (t[2] ? 100 / 255 : 1), g: Number(t[3]) / (t[4] ? 100 / 255 : 1), b: Number(t[5]) / (t[6] ? 100 / 255 : 1), a: t[7] === void 0 ? 1 : Number(t[7]) / (t[8] ? 100 : 1) }) : null;
|
|
616
614
|
}, "rgb"], [function(e) {
|
|
617
|
-
var t =
|
|
615
|
+
var t = Tt.exec(e) || Rt.exec(e);
|
|
618
616
|
if (!t) return null;
|
|
619
|
-
var n, o, i = fe({ h: (n = t[1], o = t[2], o === void 0 && (o = "deg"), Number(n) * (
|
|
617
|
+
var n, o, i = fe({ h: (n = t[1], o = t[2], o === void 0 && (o = "deg"), Number(n) * (Lt[o] || 1)), s: Number(t[3]), l: Number(t[4]), a: t[5] === void 0 ? 1 : Number(t[5]) / (t[6] ? 100 : 1) });
|
|
620
618
|
return me(i);
|
|
621
619
|
}, "hsl"]], object: [[function(e) {
|
|
622
620
|
var t = e.r, n = e.g, o = e.b, i = e.a, r = i === void 0 ? 1 : i;
|
|
623
|
-
return
|
|
621
|
+
return B(t) && B(n) && B(o) ? de({ r: Number(t), g: Number(n), b: Number(o), a: Number(r) }) : null;
|
|
624
622
|
}, "rgb"], [function(e) {
|
|
625
623
|
var t = e.h, n = e.s, o = e.l, i = e.a, r = i === void 0 ? 1 : i;
|
|
626
|
-
if (!
|
|
624
|
+
if (!B(t) || !B(n) || !B(o)) return null;
|
|
627
625
|
var u = fe({ h: Number(t), s: Number(n), l: Number(o), a: Number(r) });
|
|
628
626
|
return me(u);
|
|
629
627
|
}, "hsl"], [function(e) {
|
|
630
628
|
var t = e.h, n = e.s, o = e.v, i = e.a, r = i === void 0 ? 1 : i;
|
|
631
|
-
if (!
|
|
632
|
-
var u = (function(
|
|
633
|
-
return { h:
|
|
629
|
+
if (!B(t) || !B(n) || !B(o)) return null;
|
|
630
|
+
var u = (function(s) {
|
|
631
|
+
return { h: Se(s.h), s: E(s.s, 0, 100), v: E(s.v, 0, 100), a: E(s.a) };
|
|
634
632
|
})({ h: Number(t), s: Number(n), v: Number(o), a: Number(r) });
|
|
635
|
-
return
|
|
633
|
+
return Me(u);
|
|
636
634
|
}, "hsv"]] }, be = function(e, t) {
|
|
637
635
|
for (var n = 0; n < t.length; n++) {
|
|
638
636
|
var o = t[n][0](e);
|
|
@@ -643,12 +641,12 @@ var Bt = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, R = function(e) {
|
|
|
643
641
|
return typeof e == "string" ? be(e.trim(), ve.string) : typeof e == "object" && e !== null ? be(e, ve.object) : [null, void 0];
|
|
644
642
|
}, U = function(e, t) {
|
|
645
643
|
var n = j(e);
|
|
646
|
-
return { h: n.h, s:
|
|
644
|
+
return { h: n.h, s: E(n.s + 100 * t, 0, 100), l: n.l, a: n.a };
|
|
647
645
|
}, Y = function(e) {
|
|
648
646
|
return (299 * e.r + 587 * e.g + 114 * e.b) / 1e3 / 255;
|
|
649
647
|
}, ge = function(e, t) {
|
|
650
648
|
var n = j(e);
|
|
651
|
-
return { h: n.h, s: n.s, l:
|
|
649
|
+
return { h: n.h, s: n.s, l: E(n.l + 100 * t, 0, 100), a: n.a };
|
|
652
650
|
}, pe = (function() {
|
|
653
651
|
function e(t) {
|
|
654
652
|
this.parsed = Ft(t)[0], this.rgba = this.parsed || { r: 0, g: 0, b: 0, a: 1 };
|
|
@@ -675,39 +673,39 @@ var Bt = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, R = function(e) {
|
|
|
675
673
|
return t = he(j(this.rgba)), n = t.h, o = t.s, i = t.l, (r = t.a) < 1 ? "hsla(" + n + ", " + o + "%, " + i + "%, " + r + ")" : "hsl(" + n + ", " + o + "%, " + i + "%)";
|
|
676
674
|
var t, n, o, i, r;
|
|
677
675
|
}, e.prototype.toHsv = function() {
|
|
678
|
-
return t =
|
|
676
|
+
return t = Ne(this.rgba), { h: x(t.h), s: x(t.s), v: x(t.v), a: x(t.a, 3) };
|
|
679
677
|
var t;
|
|
680
678
|
}, e.prototype.invert = function() {
|
|
681
|
-
return
|
|
679
|
+
return I({ r: 255 - (t = this.rgba).r, g: 255 - t.g, b: 255 - t.b, a: t.a });
|
|
682
680
|
var t;
|
|
683
681
|
}, e.prototype.saturate = function(t) {
|
|
684
|
-
return t === void 0 && (t = 0.1),
|
|
682
|
+
return t === void 0 && (t = 0.1), I(U(this.rgba, t));
|
|
685
683
|
}, e.prototype.desaturate = function(t) {
|
|
686
|
-
return t === void 0 && (t = 0.1),
|
|
684
|
+
return t === void 0 && (t = 0.1), I(U(this.rgba, -t));
|
|
687
685
|
}, e.prototype.grayscale = function() {
|
|
688
|
-
return
|
|
686
|
+
return I(U(this.rgba, -1));
|
|
689
687
|
}, e.prototype.lighten = function(t) {
|
|
690
|
-
return t === void 0 && (t = 0.1),
|
|
688
|
+
return t === void 0 && (t = 0.1), I(ge(this.rgba, t));
|
|
691
689
|
}, e.prototype.darken = function(t) {
|
|
692
|
-
return t === void 0 && (t = 0.1),
|
|
690
|
+
return t === void 0 && (t = 0.1), I(ge(this.rgba, -t));
|
|
693
691
|
}, e.prototype.rotate = function(t) {
|
|
694
692
|
return t === void 0 && (t = 15), this.hue(this.hue() + t);
|
|
695
693
|
}, e.prototype.alpha = function(t) {
|
|
696
|
-
return typeof t == "number" ?
|
|
694
|
+
return typeof t == "number" ? I({ r: (n = this.rgba).r, g: n.g, b: n.b, a: t }) : x(this.rgba.a, 3);
|
|
697
695
|
var n;
|
|
698
696
|
}, e.prototype.hue = function(t) {
|
|
699
697
|
var n = j(this.rgba);
|
|
700
|
-
return typeof t == "number" ?
|
|
698
|
+
return typeof t == "number" ? I({ h: t, s: n.s, l: n.l, a: n.a }) : x(n.h);
|
|
701
699
|
}, e.prototype.isEqual = function(t) {
|
|
702
|
-
return this.toHex() ===
|
|
700
|
+
return this.toHex() === I(t).toHex();
|
|
703
701
|
}, e;
|
|
704
|
-
})(),
|
|
702
|
+
})(), I = function(e) {
|
|
705
703
|
return e instanceof pe ? e : new pe(e);
|
|
706
704
|
};
|
|
707
|
-
const { cssr: Ot, plugin: Vt, namespace:
|
|
705
|
+
const { cssr: Ot, plugin: Vt, namespace: Ae } = st(), { c: b, cB: D, cE: g, cM: J, cNotM: xe } = { ...Ot, ...Vt }, R = `${Ae}-chrome-tabs`, k = `${Ae}-chrome-tabs-item`, T = "all .2s cubic-bezier(.4, 0, .2, 1)";
|
|
708
706
|
function Ht() {
|
|
709
|
-
return
|
|
710
|
-
|
|
707
|
+
return b([
|
|
708
|
+
D("chrome-tabs", {
|
|
711
709
|
display: "flex",
|
|
712
710
|
width: "100%",
|
|
713
711
|
height: "40px",
|
|
@@ -716,18 +714,18 @@ function Ht() {
|
|
|
716
714
|
backgroundColor: "var(--background-color)",
|
|
717
715
|
color: "var(--background-color-dark)"
|
|
718
716
|
}, [
|
|
719
|
-
|
|
717
|
+
b("div", {
|
|
720
718
|
boxSizing: "border-box"
|
|
721
719
|
}),
|
|
722
|
-
|
|
723
|
-
transition:
|
|
720
|
+
b(".group-move, .group-enter-active, .group-leave-active", {
|
|
721
|
+
transition: T
|
|
724
722
|
}),
|
|
725
|
-
|
|
723
|
+
b(".group-enter-from, .group-leave-to", {
|
|
726
724
|
opacity: 0
|
|
727
725
|
}),
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
726
|
+
b(".group-leave-active", {}),
|
|
727
|
+
g("prefix", {}),
|
|
728
|
+
g("icon", {
|
|
731
729
|
width: "28px",
|
|
732
730
|
height: "28px",
|
|
733
731
|
display: "flex",
|
|
@@ -736,18 +734,18 @@ function Ht() {
|
|
|
736
734
|
padding: "5px",
|
|
737
735
|
borderRadius: "10px",
|
|
738
736
|
backgroundColor: "var(--active-background-color)",
|
|
739
|
-
transition:
|
|
737
|
+
transition: T
|
|
740
738
|
}, [
|
|
741
|
-
|
|
739
|
+
b("svg", {
|
|
742
740
|
width: "100%",
|
|
743
741
|
height: "100%",
|
|
744
742
|
fill: "currentColor"
|
|
745
743
|
}),
|
|
746
|
-
|
|
744
|
+
b("&:hover", {
|
|
747
745
|
backgroundColor: "var(--primary-color)"
|
|
748
746
|
})
|
|
749
747
|
]),
|
|
750
|
-
|
|
748
|
+
g("content", {
|
|
751
749
|
flex: "1",
|
|
752
750
|
height: "100%",
|
|
753
751
|
minWidth: 0,
|
|
@@ -755,26 +753,26 @@ function Ht() {
|
|
|
755
753
|
marginLeft: "-6px",
|
|
756
754
|
padding: "0 10px"
|
|
757
755
|
}),
|
|
758
|
-
|
|
756
|
+
g("scroll", {
|
|
759
757
|
position: "relative",
|
|
760
758
|
display: "flex",
|
|
761
759
|
alignItems: "center",
|
|
762
760
|
height: "100%"
|
|
763
761
|
}, [
|
|
764
|
-
|
|
762
|
+
g("icon", {
|
|
765
763
|
marginLeft: "5px",
|
|
766
764
|
borderRadius: "50%",
|
|
767
765
|
backgroundColor: "transparent",
|
|
768
766
|
flexShrink: 0
|
|
769
767
|
}, [
|
|
770
|
-
|
|
768
|
+
b("&:hover", {
|
|
771
769
|
backgroundColor: "var(--primary-color)"
|
|
772
770
|
})
|
|
773
771
|
])
|
|
774
772
|
]),
|
|
775
|
-
|
|
773
|
+
g("suffix", {})
|
|
776
774
|
]),
|
|
777
|
-
|
|
775
|
+
D("chrome-tabs-item", {
|
|
778
776
|
position: "relative",
|
|
779
777
|
margin: "0 -5px",
|
|
780
778
|
height: "100%",
|
|
@@ -790,24 +788,24 @@ function Ht() {
|
|
|
790
788
|
filter: "grayscale(0.5)"
|
|
791
789
|
}),
|
|
792
790
|
J("active", [
|
|
793
|
-
|
|
791
|
+
g("background", {
|
|
794
792
|
opacity: 1
|
|
795
793
|
})
|
|
796
794
|
]),
|
|
797
795
|
xe("active", [
|
|
798
|
-
|
|
799
|
-
|
|
796
|
+
b("&:hover", {}, [
|
|
797
|
+
g("content", {
|
|
800
798
|
backgroundColor: "var(--primary-color)"
|
|
801
799
|
})
|
|
802
800
|
])
|
|
803
801
|
]),
|
|
804
|
-
|
|
802
|
+
b("&::first-child", {
|
|
805
803
|
marginLeft: "0 !important"
|
|
806
804
|
}),
|
|
807
|
-
|
|
805
|
+
b("&::last-child", {
|
|
808
806
|
marginRight: "0 !important"
|
|
809
807
|
}),
|
|
810
|
-
|
|
808
|
+
g("content", {
|
|
811
809
|
position: "relative",
|
|
812
810
|
zIndex: 1,
|
|
813
811
|
height: "28px",
|
|
@@ -816,19 +814,19 @@ function Ht() {
|
|
|
816
814
|
gap: "5px",
|
|
817
815
|
borderRadius: "10px",
|
|
818
816
|
padding: "0 10px",
|
|
819
|
-
transition:
|
|
817
|
+
transition: T
|
|
820
818
|
}),
|
|
821
|
-
|
|
822
|
-
|
|
819
|
+
g("slot", {}),
|
|
820
|
+
g("icon", {
|
|
823
821
|
lineHeight: 1
|
|
824
822
|
}, [
|
|
825
|
-
|
|
823
|
+
b("svg", {
|
|
826
824
|
width: "1.2em",
|
|
827
825
|
height: "1.2em",
|
|
828
826
|
fill: "currentColor"
|
|
829
827
|
})
|
|
830
828
|
]),
|
|
831
|
-
|
|
829
|
+
g("close", {
|
|
832
830
|
width: "16px",
|
|
833
831
|
height: "16px",
|
|
834
832
|
padding: "2px",
|
|
@@ -836,18 +834,18 @@ function Ht() {
|
|
|
836
834
|
alignItems: "center",
|
|
837
835
|
justifyContent: "center",
|
|
838
836
|
borderRadius: "50%",
|
|
839
|
-
transition:
|
|
837
|
+
transition: T
|
|
840
838
|
}, [
|
|
841
|
-
|
|
839
|
+
b("&:hover", {
|
|
842
840
|
backgroundColor: "rgba(0,0,0,0.1)"
|
|
843
841
|
}),
|
|
844
|
-
|
|
842
|
+
b("svg", {
|
|
845
843
|
width: "100%",
|
|
846
844
|
height: "100%",
|
|
847
845
|
fill: "currentColor"
|
|
848
846
|
})
|
|
849
847
|
]),
|
|
850
|
-
|
|
848
|
+
g("background", {
|
|
851
849
|
position: "absolute",
|
|
852
850
|
opacity: 0,
|
|
853
851
|
left: 0,
|
|
@@ -857,27 +855,27 @@ function Ht() {
|
|
|
857
855
|
width: "100%",
|
|
858
856
|
display: "flex",
|
|
859
857
|
alignItems: "flex-end",
|
|
860
|
-
transition:
|
|
858
|
+
transition: T
|
|
861
859
|
}, [
|
|
862
|
-
|
|
860
|
+
g("block", {
|
|
863
861
|
height: "100%",
|
|
864
862
|
flex: 1,
|
|
865
863
|
minWidth: 0,
|
|
866
864
|
borderRadius: "10px 10px 0 0",
|
|
867
865
|
backgroundColor: "var(--active-background-color)"
|
|
868
866
|
}),
|
|
869
|
-
|
|
867
|
+
b("svg", {
|
|
870
868
|
fill: "var(--active-background-color)"
|
|
871
869
|
})
|
|
872
870
|
]),
|
|
873
|
-
|
|
871
|
+
g("line", {
|
|
874
872
|
position: "absolute",
|
|
875
873
|
bottom: "12px",
|
|
876
874
|
right: "4px",
|
|
877
875
|
height: "16px",
|
|
878
876
|
width: "2px",
|
|
879
877
|
borderRadius: "1px",
|
|
880
|
-
transition:
|
|
878
|
+
transition: T,
|
|
881
879
|
backgroundColor: "var(--primary-color)",
|
|
882
880
|
opacity: 0
|
|
883
881
|
}, [
|
|
@@ -886,32 +884,32 @@ function Ht() {
|
|
|
886
884
|
})
|
|
887
885
|
])
|
|
888
886
|
]),
|
|
889
|
-
|
|
890
|
-
|
|
887
|
+
b(".dark", [
|
|
888
|
+
D("chrome-tabs", {
|
|
891
889
|
backgroundColor: "var(--background-color-dark)",
|
|
892
890
|
color: "var(--background-color)"
|
|
893
891
|
}, [
|
|
894
|
-
|
|
892
|
+
g("icon", {
|
|
895
893
|
backgroundColor: "var(--active-background-color-dark)"
|
|
896
894
|
}, [
|
|
897
|
-
|
|
895
|
+
b("&:hover", {
|
|
898
896
|
backgroundColor: "var(--primary-color-dark)"
|
|
899
897
|
})
|
|
900
898
|
])
|
|
901
899
|
]),
|
|
902
|
-
|
|
900
|
+
D("chrome-tabs-item", {}, [
|
|
903
901
|
xe("active", [
|
|
904
|
-
|
|
905
|
-
|
|
902
|
+
b("&:hover", {}, [
|
|
903
|
+
g("content", {
|
|
906
904
|
backgroundColor: "var(--primary-color-dark)"
|
|
907
905
|
})
|
|
908
906
|
])
|
|
909
907
|
]),
|
|
910
|
-
|
|
911
|
-
|
|
908
|
+
g("background", {}, [
|
|
909
|
+
g("block", {
|
|
912
910
|
backgroundColor: "var(--active-background-color-dark)"
|
|
913
911
|
}),
|
|
914
|
-
|
|
912
|
+
b("svg", {
|
|
915
913
|
fill: "var(--active-background-color-dark)"
|
|
916
914
|
})
|
|
917
915
|
])
|
|
@@ -924,23 +922,23 @@ const q = (e, t) => {
|
|
|
924
922
|
for (const [o, i] of t)
|
|
925
923
|
n[o] = i;
|
|
926
924
|
return n;
|
|
927
|
-
}, Wt = {
|
|
928
|
-
name: "RiAddLine"
|
|
929
925
|
}, Dt = {
|
|
926
|
+
name: "RiAddLine"
|
|
927
|
+
}, Wt = {
|
|
930
928
|
xmlns: "http://www.w3.org/2000/svg",
|
|
931
929
|
width: "1em",
|
|
932
930
|
height: "1em",
|
|
933
931
|
viewBox: "0 0 24 24"
|
|
934
932
|
};
|
|
935
933
|
function Kt(e, t, n, o, i, r) {
|
|
936
|
-
return
|
|
937
|
-
|
|
934
|
+
return C(), A("svg", Wt, [...t[0] || (t[0] = [
|
|
935
|
+
$("path", {
|
|
938
936
|
fill: "#757575",
|
|
939
937
|
d: "M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"
|
|
940
938
|
}, null, -1)
|
|
941
939
|
])]);
|
|
942
940
|
}
|
|
943
|
-
const qt = /* @__PURE__ */ q(
|
|
941
|
+
const qt = /* @__PURE__ */ q(Dt, [["render", Kt]]), Gt = {
|
|
944
942
|
name: "RiArrowDropDownLine"
|
|
945
943
|
}, Zt = {
|
|
946
944
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -949,8 +947,8 @@ const qt = /* @__PURE__ */ q(Wt, [["render", Kt]]), Gt = {
|
|
|
949
947
|
viewBox: "0 0 24 24"
|
|
950
948
|
};
|
|
951
949
|
function Ut(e, t, n, o, i, r) {
|
|
952
|
-
return
|
|
953
|
-
|
|
950
|
+
return C(), A("svg", Zt, [...t[0] || (t[0] = [
|
|
951
|
+
$("path", {
|
|
954
952
|
fill: "#757575",
|
|
955
953
|
d: "m12 15l-4.243-4.242l1.415-1.414L12 12.172l2.828-2.828l1.415 1.414z"
|
|
956
954
|
}, null, -1)
|
|
@@ -965,8 +963,8 @@ const Yt = /* @__PURE__ */ q(Gt, [["render", Ut]]), Jt = {
|
|
|
965
963
|
viewBox: "0 0 24 24"
|
|
966
964
|
};
|
|
967
965
|
function Xt(e, t, n, o, i, r) {
|
|
968
|
-
return
|
|
969
|
-
|
|
966
|
+
return C(), A("svg", Qt, [...t[0] || (t[0] = [
|
|
967
|
+
je('<g fill="none" stroke="#757575" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path stroke-dasharray="16" stroke-dashoffset="16" d="M12 3c4.97 0 9 4.03 9 9"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.3s" values="16;0"></animate><animateTransform attributeName="transform" dur="1.5s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"></animateTransform></path><path stroke-dasharray="64" stroke-dashoffset="64" stroke-opacity=".3" d="M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="1.2s" values="64;0"></animate></path></g>', 1)
|
|
970
968
|
])]);
|
|
971
969
|
}
|
|
972
970
|
const _t = /* @__PURE__ */ q(Jt, [["render", Xt]]), en = {
|
|
@@ -978,8 +976,8 @@ const _t = /* @__PURE__ */ q(Jt, [["render", Xt]]), en = {
|
|
|
978
976
|
viewBox: "0 0 24 24"
|
|
979
977
|
};
|
|
980
978
|
function nn(e, t, n, o, i, r) {
|
|
981
|
-
return
|
|
982
|
-
|
|
979
|
+
return C(), A("svg", tn, [...t[0] || (t[0] = [
|
|
980
|
+
$("path", {
|
|
983
981
|
fill: "#757575",
|
|
984
982
|
d: "m12 10.587l4.95-4.95l1.414 1.414l-4.95 4.95l4.95 4.95l-1.415 1.414l-4.95-4.95l-4.949 4.95l-1.414-1.415l4.95-4.95l-4.95-4.95L7.05 5.638z"
|
|
985
983
|
}, null, -1)
|
|
@@ -1006,70 +1004,70 @@ const on = /* @__PURE__ */ q(en, [["render", nn]]), rn = /* @__PURE__ */ we({
|
|
|
1006
1004
|
},
|
|
1007
1005
|
emits: ["itemClick", "itemContextmenu", "itemClose"],
|
|
1008
1006
|
setup(e, { emit: t }) {
|
|
1009
|
-
const n = t, o =
|
|
1010
|
-
function
|
|
1011
|
-
|
|
1007
|
+
const n = t, o = N(() => e.activeIndex !== e.itemIndex && e.activeIndex - 1 !== e.itemIndex), i = N(() => e.activeIndex === e.itemIndex), r = N(() => typeof e.label == "string" ? ie("span", { class: `${k}__label` }, e.label) : e.label(e.itemKey, e.itemIndex)), u = N(() => e.loadingIcon?.(e.itemKey, e.itemIndex) ?? ie(_t));
|
|
1008
|
+
function s(c) {
|
|
1009
|
+
c.stopPropagation(), n("itemClick", c), e.onClick?.(e.itemKey, e.itemIndex, c);
|
|
1012
1010
|
}
|
|
1013
|
-
function
|
|
1014
|
-
n("itemContextmenu",
|
|
1011
|
+
function f(c) {
|
|
1012
|
+
n("itemContextmenu", c), e.onContextMenu?.(e.itemKey, e.itemIndex, c);
|
|
1015
1013
|
}
|
|
1016
|
-
function c
|
|
1017
|
-
n("itemClose"), e.onClose?.(e.itemKey, e.itemIndex,
|
|
1014
|
+
function d(c) {
|
|
1015
|
+
n("itemClose"), e.onClose?.(e.itemKey, e.itemIndex, c);
|
|
1018
1016
|
}
|
|
1019
|
-
return (
|
|
1020
|
-
class:
|
|
1021
|
-
y(
|
|
1017
|
+
return (c, a) => (C(), A("div", {
|
|
1018
|
+
class: w([
|
|
1019
|
+
y(k),
|
|
1022
1020
|
{
|
|
1023
|
-
[`${y(
|
|
1024
|
-
[`${y(
|
|
1021
|
+
[`${y(k)}--active`]: i.value,
|
|
1022
|
+
[`${y(k)}--disabled`]: typeof e.disabled == "function" ? e.disabled(e.itemKey, e.itemIndex) : e.disabled
|
|
1025
1023
|
}
|
|
1026
1024
|
]),
|
|
1027
|
-
onClick:
|
|
1028
|
-
onContextmenu:
|
|
1025
|
+
onClick: s,
|
|
1026
|
+
onContextmenu: f
|
|
1029
1027
|
}, [
|
|
1030
|
-
|
|
1031
|
-
class:
|
|
1028
|
+
$("div", {
|
|
1029
|
+
class: w([`${y(k)}__content`])
|
|
1032
1030
|
}, [
|
|
1033
|
-
|
|
1034
|
-
class:
|
|
1031
|
+
$("div", {
|
|
1032
|
+
class: w([`${y(k)}__icon`]),
|
|
1035
1033
|
style: _({ fontSize: `${e.iconSize}px` })
|
|
1036
1034
|
}, [
|
|
1037
|
-
(
|
|
1035
|
+
(C(), ee(re(typeof e.loading == "function" ? e.loading(e.itemKey, e.itemIndex) : e.loading ? u.value : e.icon?.(e.itemKey, e.itemIndex) ?? void 0)))
|
|
1038
1036
|
], 6),
|
|
1039
|
-
|
|
1040
|
-
class:
|
|
1037
|
+
$("div", {
|
|
1038
|
+
class: w([`${y(k)}__slot`])
|
|
1041
1039
|
}, [
|
|
1042
|
-
(
|
|
1040
|
+
(C(), ee(re(r.value)))
|
|
1043
1041
|
], 2),
|
|
1044
|
-
(typeof e.closable == "function" ? e.closable(e.itemKey, e.itemIndex) : e.closable) ? (
|
|
1042
|
+
(typeof e.closable == "function" ? e.closable(e.itemKey, e.itemIndex) : e.closable) ? (C(), A("div", {
|
|
1045
1043
|
key: 0,
|
|
1046
|
-
class:
|
|
1047
|
-
onClick:
|
|
1044
|
+
class: w([`${y(k)}__close`]),
|
|
1045
|
+
onClick: Pe(d, ["stop"])
|
|
1048
1046
|
}, [
|
|
1049
|
-
|
|
1047
|
+
W(on)
|
|
1050
1048
|
], 2)) : X("", !0)
|
|
1051
1049
|
], 2),
|
|
1052
|
-
|
|
1053
|
-
class:
|
|
1050
|
+
$("div", {
|
|
1051
|
+
class: w([`${y(k)}__background`])
|
|
1054
1052
|
}, [
|
|
1055
|
-
|
|
1053
|
+
a[0] || (a[0] = $("svg", {
|
|
1056
1054
|
width: "10",
|
|
1057
1055
|
height: "10"
|
|
1058
1056
|
}, [
|
|
1059
|
-
|
|
1057
|
+
$("path", { d: "M 0 10 A 10 10 0 0 0 10 0 L 10 10 Z" })
|
|
1060
1058
|
], -1)),
|
|
1061
|
-
|
|
1062
|
-
class:
|
|
1059
|
+
$("div", {
|
|
1060
|
+
class: w([`${y(k)}__block`])
|
|
1063
1061
|
}, null, 2),
|
|
1064
|
-
|
|
1062
|
+
a[1] || (a[1] = $("svg", {
|
|
1065
1063
|
width: "10",
|
|
1066
1064
|
height: "10"
|
|
1067
1065
|
}, [
|
|
1068
|
-
|
|
1066
|
+
$("path", { d: "M 0 0 A 10 10 0 0 0 10 10 L 0 10 Z" })
|
|
1069
1067
|
], -1))
|
|
1070
1068
|
], 2),
|
|
1071
|
-
|
|
1072
|
-
class:
|
|
1069
|
+
$("div", {
|
|
1070
|
+
class: w([`${y(k)}__line`, o.value ? `${y(k)}__line--show` : ""])
|
|
1073
1071
|
}, null, 2)
|
|
1074
1072
|
], 34));
|
|
1075
1073
|
}
|
|
@@ -1089,85 +1087,84 @@ const on = /* @__PURE__ */ q(en, [["render", nn]]), rn = /* @__PURE__ */ we({
|
|
|
1089
1087
|
emits: ["update:value", "click", "contextmenu", "close", "add"],
|
|
1090
1088
|
setup(e, { emit: t }) {
|
|
1091
1089
|
const n = t;
|
|
1092
|
-
|
|
1093
|
-
const o =
|
|
1090
|
+
vt("n-chrome-tabs", Ht());
|
|
1091
|
+
const o = N(() => e.value ? e.options?.findIndex((c) => c.key === e.value) : 0), { scrollToView: i } = Bt(Fe("scroll-ref"), { activeClassName: `.${k}--active`, direction: "horizontal" });
|
|
1094
1092
|
P(() => e.value, () => {
|
|
1095
|
-
|
|
1093
|
+
i();
|
|
1096
1094
|
}, {
|
|
1097
1095
|
immediate: !0
|
|
1098
1096
|
});
|
|
1099
|
-
const
|
|
1097
|
+
const r = N(() => ({
|
|
1100
1098
|
background: "#F1F1F1",
|
|
1101
1099
|
active: "#fff",
|
|
1102
1100
|
primary: "rgba(0,0,0,.1)",
|
|
1103
1101
|
...e.colors
|
|
1104
|
-
})),
|
|
1105
|
-
background:
|
|
1106
|
-
active:
|
|
1107
|
-
primary:
|
|
1102
|
+
})), u = N(() => ({
|
|
1103
|
+
background: I(r.value.background).darken(0.8).toHex(),
|
|
1104
|
+
active: I(r.value.active).darken(0.8).toHex(),
|
|
1105
|
+
primary: I(r.value.primary).darken(0.3).toHex()
|
|
1108
1106
|
}));
|
|
1109
|
-
function
|
|
1110
|
-
n("update:value",
|
|
1107
|
+
function s(c, a) {
|
|
1108
|
+
n("update:value", c), n("click", c, a);
|
|
1111
1109
|
}
|
|
1112
|
-
function c
|
|
1113
|
-
n("contextmenu",
|
|
1110
|
+
function f(c, a) {
|
|
1111
|
+
n("contextmenu", c, a);
|
|
1114
1112
|
}
|
|
1115
|
-
function
|
|
1116
|
-
n("close",
|
|
1113
|
+
function d(c, a) {
|
|
1114
|
+
n("close", c, a);
|
|
1117
1115
|
}
|
|
1118
|
-
return (
|
|
1119
|
-
class:
|
|
1116
|
+
return (c, a) => (C(), A("div", {
|
|
1117
|
+
class: w([y(R)]),
|
|
1120
1118
|
style: _({
|
|
1121
|
-
"--background-color": `${
|
|
1122
|
-
"--background-color-dark": `${
|
|
1123
|
-
"--active-background-color": `${
|
|
1124
|
-
"--active-background-color-dark": `${
|
|
1125
|
-
"--primary-color": `${
|
|
1126
|
-
"--primary-color-dark": `${
|
|
1119
|
+
"--background-color": `${r.value.background}`,
|
|
1120
|
+
"--background-color-dark": `${u.value.background}`,
|
|
1121
|
+
"--active-background-color": `${r.value.active}`,
|
|
1122
|
+
"--active-background-color-dark": `${u.value.active}`,
|
|
1123
|
+
"--primary-color": `${r.value.primary}`,
|
|
1124
|
+
"--primary-color-dark": `${u.value.primary}`
|
|
1127
1125
|
})
|
|
1128
1126
|
}, [
|
|
1129
|
-
e.dropdown ? (
|
|
1127
|
+
e.dropdown ? (C(), A("div", {
|
|
1130
1128
|
key: 0,
|
|
1131
|
-
class:
|
|
1129
|
+
class: w([`${y(R)}__icon`])
|
|
1132
1130
|
}, [
|
|
1133
|
-
|
|
1131
|
+
W(Yt)
|
|
1134
1132
|
], 2)) : X("", !0),
|
|
1135
|
-
ue(
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
class: C([`${y(T)}__content`, e.contentClass]),
|
|
1133
|
+
ue(c.$slots, "prefix"),
|
|
1134
|
+
$("div", {
|
|
1135
|
+
ref: "scroll-ref",
|
|
1136
|
+
class: w([`${y(R)}__content`, e.contentClass]),
|
|
1140
1137
|
style: _(e.contentStyle)
|
|
1141
1138
|
}, [
|
|
1142
|
-
|
|
1139
|
+
W(Oe, {
|
|
1143
1140
|
name: "group",
|
|
1144
1141
|
tag: "div",
|
|
1145
|
-
class:
|
|
1142
|
+
class: w([`${y(R)}__scroll`])
|
|
1146
1143
|
}, {
|
|
1147
|
-
default:
|
|
1148
|
-
(
|
|
1149
|
-
key:
|
|
1150
|
-
loading: e.loadingValue ===
|
|
1151
|
-
}, { ref_for: !0 },
|
|
1152
|
-
"item-key":
|
|
1153
|
-
"item-index":
|
|
1144
|
+
default: Ve(() => [
|
|
1145
|
+
(C(!0), A(He, null, De(e.options, ({ key: p, ...M }, l) => (C(), ee(rn, We({
|
|
1146
|
+
key: p,
|
|
1147
|
+
loading: e.loadingValue === p
|
|
1148
|
+
}, { ref_for: !0 }, M, {
|
|
1149
|
+
"item-key": p,
|
|
1150
|
+
"item-index": l,
|
|
1154
1151
|
"active-index": o.value,
|
|
1155
1152
|
"icon-size": e.iconSize,
|
|
1156
|
-
onItemClick: (
|
|
1157
|
-
onItemContextmenu: (
|
|
1158
|
-
onItemClose: (
|
|
1153
|
+
onItemClick: (h) => s(p, l),
|
|
1154
|
+
onItemContextmenu: (h) => f(p, l),
|
|
1155
|
+
onItemClose: (h) => d(p, l)
|
|
1159
1156
|
}), null, 16, ["loading", "item-key", "item-index", "active-index", "icon-size", "onItemClick", "onItemContextmenu", "onItemClose"]))), 128))
|
|
1160
1157
|
]),
|
|
1161
1158
|
_: 1
|
|
1162
1159
|
}, 8, ["class"])
|
|
1163
1160
|
], 6),
|
|
1164
|
-
ue(
|
|
1165
|
-
e.addable ? (
|
|
1161
|
+
ue(c.$slots, "suffix"),
|
|
1162
|
+
e.addable ? (C(), A("div", {
|
|
1166
1163
|
key: 1,
|
|
1167
|
-
class:
|
|
1168
|
-
onClick:
|
|
1164
|
+
class: w([`${y(R)}__icon`]),
|
|
1165
|
+
onClick: a[0] || (a[0] = (p) => n("add"))
|
|
1169
1166
|
}, [
|
|
1170
|
-
|
|
1167
|
+
W(qt)
|
|
1171
1168
|
], 2)) : X("", !0)
|
|
1172
1169
|
], 6));
|
|
1173
1170
|
}
|