@oiij/chrome-tabs 0.0.4 → 0.0.6

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