@validol4ik/uikit 0.2.4 → 0.2.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.
@@ -1,35 +1,37 @@
1
- import { computed as c, markRaw as de, defineComponent as X, getCurrentInstance as G, h as v, ref as J, onBeforeUnmount as $e, Transition as qe, withDirectives as _e, openBlock as V, createBlock as Ee, unref as P, normalizeClass as F, withCtx as xe, createElementBlock as Y, createCommentVNode as ee, renderSlot as Ce, normalizeStyle as Le, defineAsyncComponent as Re } from "vue";
2
- const I = {
1
+ import { computed as u, markRaw as de, defineComponent as W, getCurrentInstance as X, h as v, ref as J, onBeforeUnmount as ke, Transition as $e, withDirectives as qe, openBlock as N, createBlock as Ee, unref as Q, normalizeClass as V, withCtx as _e, createElementBlock as Y, createCommentVNode as ee, renderSlot as Le, normalizeStyle as Ce, defineAsyncComponent as Be } from "vue";
2
+ const S = {
3
3
  SM: "sm",
4
4
  MD: "md",
5
5
  LG: "lg"
6
- };
7
- var fe = /* @__PURE__ */ ((e) => (e.sm = "3px 9px", e.md = "5px 12px", e.lg = "9px 20px", e))(fe || {});
8
- const Se = {
6
+ }, Re = {
7
+ [S.SM]: "3px 9px",
8
+ [S.MD]: "5px 12px",
9
+ [S.LG]: "9px 20px"
10
+ }, Se = {
9
11
  PRIMARY: "primary",
10
12
  INFO: "info"
11
- }, H = {
13
+ }, G = {
12
14
  xs: 18,
13
15
  sm: 24,
14
16
  md: 32,
15
17
  lg: 38,
16
18
  xl: 46
17
- }, ve = {
19
+ }, fe = {
18
20
  size: String
19
21
  };
20
- function me(e, t = H) {
21
- return c(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
22
+ function ve(e, t = G) {
23
+ return u(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
22
24
  }
23
25
  function Z(e) {
24
- return de(X(e));
26
+ return de(W(e));
25
27
  }
26
- function we(e) {
28
+ function xe(e) {
27
29
  return de(e);
28
30
  }
29
- function Be(e, t) {
31
+ function we(e, t) {
30
32
  return e !== void 0 && e() || t;
31
33
  }
32
- function D(e, t) {
34
+ function I(e, t) {
33
35
  return e !== void 0 ? t.concat(e()) : t;
34
36
  }
35
37
  const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
@@ -44,18 +46,18 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
44
46
  "iconfont ": ne,
45
47
  "ti-": (e) => `themify-icon ${e}`,
46
48
  "bi-": (e) => `bootstrap-icons ${e}`
47
- }, pe = {
49
+ }, me = {
48
50
  o_: "-outlined",
49
51
  r_: "-round",
50
52
  s_: "-sharp"
51
- }, be = {
53
+ }, pe = {
52
54
  sym_o_: "-outlined",
53
55
  sym_r_: "-rounded",
54
56
  sym_s_: "-sharp"
55
- }, Pe = new RegExp("^(" + Object.keys(ge).join("|") + ")"), Me = new RegExp("^(" + Object.keys(pe).join("|") + ")"), ae = new RegExp("^(" + Object.keys(be).join("|") + ")"), Te = /^[Mm]\s?[-+]?\.?\d/, Oe = /^img:/, Ae = /^svguse:/, ze = /^ion-/, je = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, re = Z({
57
+ }, Pe = new RegExp("^(" + Object.keys(ge).join("|") + ")"), Me = new RegExp("^(" + Object.keys(me).join("|") + ")"), ae = new RegExp("^(" + Object.keys(pe).join("|") + ")"), Te = /^[Mm]\s?[-+]?\.?\d/, Oe = /^img:/, ze = /^svguse:/, Ae = /^ion-/, je = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, re = Z({
56
58
  name: "QIcon",
57
59
  props: {
58
- ...ve,
60
+ ...fe,
59
61
  tag: {
60
62
  type: String,
61
63
  default: "i"
@@ -66,91 +68,91 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
66
68
  right: Boolean
67
69
  },
68
70
  setup(e, { slots: t }) {
69
- const { proxy: { $q: a } } = G(), n = me(e), o = c(
71
+ const { proxy: { $q: a } } = X(), n = ve(e), i = u(
70
72
  () => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
71
- ), l = c(() => {
72
- let s, r = e.name;
73
- if (r === "none" || !r)
73
+ ), d = u(() => {
74
+ let c, o = e.name;
75
+ if (o === "none" || !o)
74
76
  return { none: !0 };
75
77
  if (a.iconMapFn !== null) {
76
- const d = a.iconMapFn(r);
77
- if (d !== void 0)
78
- if (d.icon !== void 0) {
79
- if (r = d.icon, r === "none" || !r)
78
+ const s = a.iconMapFn(o);
79
+ if (s !== void 0)
80
+ if (s.icon !== void 0) {
81
+ if (o = s.icon, o === "none" || !o)
80
82
  return { none: !0 };
81
83
  } else
82
84
  return {
83
- cls: d.cls,
84
- content: d.content !== void 0 ? d.content : " "
85
+ cls: s.cls,
86
+ content: s.content !== void 0 ? s.content : " "
85
87
  };
86
88
  }
87
- if (Te.test(r) === !0) {
88
- const [d, h = te] = r.split("|");
89
+ if (Te.test(o) === !0) {
90
+ const [s, h = te] = o.split("|");
89
91
  return {
90
92
  svg: !0,
91
93
  viewBox: h,
92
- nodes: d.split("&&").map((u) => {
93
- const [y, p, k] = u.split("@@");
94
+ nodes: s.split("&&").map((l) => {
95
+ const [y, p, k] = l.split("@@");
94
96
  return v("path", { style: p, d: y, transform: k });
95
97
  })
96
98
  };
97
99
  }
98
- if (Oe.test(r) === !0)
100
+ if (Oe.test(o) === !0)
99
101
  return {
100
102
  img: !0,
101
- src: r.substring(4)
103
+ src: o.substring(4)
102
104
  };
103
- if (Ae.test(r) === !0) {
104
- const [d, h = te] = r.split("|");
105
+ if (ze.test(o) === !0) {
106
+ const [s, h = te] = o.split("|");
105
107
  return {
106
108
  svguse: !0,
107
- src: d.substring(7),
109
+ src: s.substring(7),
108
110
  viewBox: h
109
111
  };
110
112
  }
111
113
  let q = " ";
112
- const b = r.match(Pe);
114
+ const b = o.match(Pe);
113
115
  if (b !== null)
114
- s = ge[b[1]](r);
115
- else if (je.test(r) === !0)
116
- s = r;
117
- else if (ze.test(r) === !0)
118
- s = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${r.substring(3)}`;
119
- else if (ae.test(r) === !0) {
120
- s = "notranslate material-symbols";
121
- const d = r.match(ae);
122
- d !== null && (r = r.substring(6), s += be[d[1]]), q = r;
116
+ c = ge[b[1]](o);
117
+ else if (je.test(o) === !0)
118
+ c = o;
119
+ else if (Ae.test(o) === !0)
120
+ c = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${o.substring(3)}`;
121
+ else if (ae.test(o) === !0) {
122
+ c = "notranslate material-symbols";
123
+ const s = o.match(ae);
124
+ s !== null && (o = o.substring(6), c += pe[s[1]]), q = o;
123
125
  } else {
124
- s = "notranslate material-icons";
125
- const d = r.match(Me);
126
- d !== null && (r = r.substring(2), s += pe[d[1]]), q = r;
126
+ c = "notranslate material-icons";
127
+ const s = o.match(Me);
128
+ s !== null && (o = o.substring(2), c += me[s[1]]), q = o;
127
129
  }
128
130
  return {
129
- cls: s,
131
+ cls: c,
130
132
  content: q
131
133
  };
132
134
  });
133
135
  return () => {
134
- const s = {
135
- class: o.value,
136
+ const c = {
137
+ class: i.value,
136
138
  style: n.value,
137
139
  "aria-hidden": "true",
138
140
  role: "presentation"
139
141
  };
140
- return l.value.none === !0 ? v(e.tag, s, Be(t.default)) : l.value.img === !0 ? v(e.tag, s, D(t.default, [
141
- v("img", { src: l.value.src })
142
- ])) : l.value.svg === !0 ? v(e.tag, s, D(t.default, [
142
+ return d.value.none === !0 ? v(e.tag, c, we(t.default)) : d.value.img === !0 ? v(e.tag, c, I(t.default, [
143
+ v("img", { src: d.value.src })
144
+ ])) : d.value.svg === !0 ? v(e.tag, c, I(t.default, [
143
145
  v("svg", {
144
- viewBox: l.value.viewBox || "0 0 24 24"
145
- }, l.value.nodes)
146
- ])) : l.value.svguse === !0 ? v(e.tag, s, D(t.default, [
146
+ viewBox: d.value.viewBox || "0 0 24 24"
147
+ }, d.value.nodes)
148
+ ])) : d.value.svguse === !0 ? v(e.tag, c, I(t.default, [
147
149
  v("svg", {
148
- viewBox: l.value.viewBox
150
+ viewBox: d.value.viewBox
149
151
  }, [
150
- v("use", { "xlink:href": l.value.src })
152
+ v("use", { "xlink:href": d.value.src })
151
153
  ])
152
- ])) : (l.value.cls !== void 0 && (s.class += " " + l.value.cls), v(e.tag, s, D(t.default, [
153
- l.value.content
154
+ ])) : (d.value.cls !== void 0 && (c.class += " " + d.value.cls), v(e.tag, c, I(t.default, [
155
+ d.value.content
154
156
  ])));
155
157
  };
156
158
  }
@@ -163,8 +165,8 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
163
165
  };
164
166
  function De(e) {
165
167
  return {
166
- cSize: c(() => e.size in H ? `${H[e.size]}px` : e.size),
167
- classes: c(
168
+ cSize: u(() => e.size in G ? `${G[e.size]}px` : e.size),
169
+ classes: u(
168
170
  () => "q-spinner" + (e.color ? ` text-${e.color}` : "")
169
171
  )
170
172
  };
@@ -204,7 +206,7 @@ function Ne(e, t) {
204
206
  for (const n in t)
205
207
  a[n] = t[n];
206
208
  }
207
- const Q = {
209
+ const F = {
208
210
  hasPassive: !1,
209
211
  passiveCapture: !0,
210
212
  notPassiveCapture: !0
@@ -212,7 +214,7 @@ const Q = {
212
214
  try {
213
215
  const e = Object.defineProperty({}, "passive", {
214
216
  get() {
215
- Object.assign(Q, {
217
+ Object.assign(F, {
216
218
  hasPassive: !0,
217
219
  passive: { passive: !0 },
218
220
  notPassive: { passive: !1 },
@@ -230,7 +232,7 @@ function Ve(e) {
230
232
  left: e.clientX
231
233
  };
232
234
  }
233
- function he(e) {
235
+ function be(e) {
234
236
  e.stopPropagation();
235
237
  }
236
238
  function Fe(e) {
@@ -241,23 +243,23 @@ function M(e) {
241
243
  }
242
244
  function Qe(e, t, a) {
243
245
  const n = `__q_${t}_evt`;
244
- e[n] = e[n] !== void 0 ? e[n].concat(a) : a, a.forEach((o) => {
245
- o[0].addEventListener(o[1], e[o[2]], Q[o[3]]);
246
+ e[n] = e[n] !== void 0 ? e[n].concat(a) : a, a.forEach((i) => {
247
+ i[0].addEventListener(i[1], e[i[2]], F[i[3]]);
246
248
  });
247
249
  }
248
250
  function Ue(e, t) {
249
251
  const a = `__q_${t}_evt`;
250
252
  e[a] !== void 0 && (e[a].forEach((n) => {
251
- n[0].removeEventListener(n[1], e[n[2]], Q[n[3]]);
253
+ n[0].removeEventListener(n[1], e[n[2]], F[n[3]]);
252
254
  }), e[a] = void 0);
253
255
  }
254
256
  function Ye(e) {
255
257
  return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
256
258
  }
257
- function W(e, t) {
259
+ function H(e, t) {
258
260
  return Ye(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
259
261
  }
260
- function He(e, t = 250) {
262
+ function Ge(e, t = 250) {
261
263
  let a = !1, n;
262
264
  return function() {
263
265
  return a === !1 && (a = !0, setTimeout(() => {
@@ -266,40 +268,40 @@ function He(e, t = 250) {
266
268
  };
267
269
  }
268
270
  function ie(e, t, a, n) {
269
- a.modifiers.stop === !0 && he(e);
270
- const o = a.modifiers.color;
271
- let l = a.modifiers.center;
272
- l = l === !0 || n === !0;
273
- const s = document.createElement("span"), r = document.createElement("span"), q = Ve(e), { left: b, top: d, width: h, height: u } = t.getBoundingClientRect(), y = Math.sqrt(h * h + u * u), p = y / 2, k = `${(h - y) / 2}px`, f = l ? k : `${q.left - b - p}px`, $ = `${(u - y) / 2}px`, B = l ? $ : `${q.top - d - p}px`;
274
- r.className = "q-ripple__inner", Ne(r, {
271
+ a.modifiers.stop === !0 && be(e);
272
+ const i = a.modifiers.color;
273
+ let d = a.modifiers.center;
274
+ d = d === !0 || n === !0;
275
+ const c = document.createElement("span"), o = document.createElement("span"), q = Ve(e), { left: b, top: s, width: h, height: l } = t.getBoundingClientRect(), y = Math.sqrt(h * h + l * l), p = y / 2, k = `${(h - y) / 2}px`, f = d ? k : `${q.left - b - p}px`, $ = `${(l - y) / 2}px`, P = d ? $ : `${q.top - s - p}px`;
276
+ o.className = "q-ripple__inner", Ne(o, {
275
277
  height: `${y}px`,
276
278
  width: `${y}px`,
277
- transform: `translate3d(${f},${B},0) scale3d(.2,.2,1)`,
279
+ transform: `translate3d(${f},${P},0) scale3d(.2,.2,1)`,
278
280
  opacity: 0
279
- }), s.className = `q-ripple${o ? " text-" + o : ""}`, s.setAttribute("dir", "ltr"), s.appendChild(r), t.appendChild(s);
280
- const S = () => {
281
- s.remove(), clearTimeout(w);
281
+ }), c.className = `q-ripple${i ? " text-" + i : ""}`, c.setAttribute("dir", "ltr"), c.appendChild(o), t.appendChild(c);
282
+ const x = () => {
283
+ c.remove(), clearTimeout(w);
282
284
  };
283
- a.abort.push(S);
285
+ a.abort.push(x);
284
286
  let w = setTimeout(() => {
285
- r.classList.add("q-ripple__inner--enter"), r.style.transform = `translate3d(${k},${$},0) scale3d(1,1,1)`, r.style.opacity = 0.2, w = setTimeout(() => {
286
- r.classList.remove("q-ripple__inner--enter"), r.classList.add("q-ripple__inner--leave"), r.style.opacity = 0, w = setTimeout(() => {
287
- s.remove(), a.abort.splice(a.abort.indexOf(S), 1);
287
+ o.classList.add("q-ripple__inner--enter"), o.style.transform = `translate3d(${k},${$},0) scale3d(1,1,1)`, o.style.opacity = 0.2, w = setTimeout(() => {
288
+ o.classList.remove("q-ripple__inner--enter"), o.classList.add("q-ripple__inner--leave"), o.style.opacity = 0, w = setTimeout(() => {
289
+ c.remove(), a.abort.splice(a.abort.indexOf(x), 1);
288
290
  }, 275);
289
291
  }, 250);
290
292
  }, 50);
291
293
  }
292
294
  function oe(e, { modifiers: t, value: a, arg: n }) {
293
- const o = Object.assign({}, e.cfg.ripple, t, a);
295
+ const i = Object.assign({}, e.cfg.ripple, t, a);
294
296
  e.modifiers = {
295
- early: o.early === !0,
296
- stop: o.stop === !0,
297
- center: o.center === !0,
298
- color: o.color || n,
299
- keyCodes: [].concat(o.keyCodes || 13)
297
+ early: i.early === !0,
298
+ stop: i.stop === !0,
299
+ center: i.center === !0,
300
+ color: i.color || n,
301
+ keyCodes: [].concat(i.keyCodes || 13)
300
302
  };
301
303
  }
302
- const We = we(
304
+ const He = xe(
303
305
  {
304
306
  name: "ripple",
305
307
  beforeMount(e, t) {
@@ -311,11 +313,11 @@ const We = we(
311
313
  enabled: t.value !== !1,
312
314
  modifiers: {},
313
315
  abort: [],
314
- start(o) {
315
- n.enabled === !0 && o.qSkipRipple !== !0 && o.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && ie(o, e, n, o.qKeyEvent === !0);
316
+ start(i) {
317
+ n.enabled === !0 && i.qSkipRipple !== !0 && i.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && ie(i, e, n, i.qKeyEvent === !0);
316
318
  },
317
- keystart: He((o) => {
318
- n.enabled === !0 && o.qSkipRipple !== !0 && W(o, n.modifiers.keyCodes) === !0 && o.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && ie(o, e, n, !0);
319
+ keystart: Ge((i) => {
320
+ n.enabled === !0 && i.qSkipRipple !== !0 && H(i, n.modifiers.keyCodes) === !0 && i.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && ie(i, e, n, !0);
319
321
  }, 300)
320
322
  };
321
323
  oe(n, t), e.__qripple = n, Qe(n, "main", [
@@ -338,7 +340,7 @@ const We = we(
338
340
  }), Ue(t, "main"), delete e._qripple);
339
341
  }
340
342
  }
341
- ), ye = {
343
+ ), he = {
342
344
  left: "start",
343
345
  center: "center",
344
346
  right: "end",
@@ -346,16 +348,16 @@ const We = we(
346
348
  around: "around",
347
349
  evenly: "evenly",
348
350
  stretch: "stretch"
349
- }, Xe = Object.keys(ye), Ge = {
351
+ }, We = Object.keys(he), Xe = {
350
352
  align: {
351
353
  type: String,
352
- validator: (e) => Xe.includes(e)
354
+ validator: (e) => We.includes(e)
353
355
  }
354
356
  };
355
357
  function Ze(e) {
356
- return c(() => {
358
+ return u(() => {
357
359
  const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
358
- return `${e.vertical === !0 ? "items" : "justify"}-${ye[t]}`;
360
+ return `${e.vertical === !0 ? "items" : "justify"}-${he[t]}`;
359
361
  });
360
362
  }
361
363
  function Je(e) {
@@ -369,11 +371,11 @@ function ue(e, t) {
369
371
  }
370
372
  function et(e, t) {
371
373
  for (const a in t) {
372
- const n = t[a], o = e[a];
374
+ const n = t[a], i = e[a];
373
375
  if (typeof n == "string") {
374
- if (n !== o)
376
+ if (n !== i)
375
377
  return !1;
376
- } else if (Array.isArray(o) === !1 || o.length !== n.length || n.some((l, s) => l !== o[s]))
378
+ } else if (Array.isArray(i) === !1 || i.length !== n.length || n.some((d, c) => d !== i[c]))
377
379
  return !1;
378
380
  }
379
381
  return !0;
@@ -403,83 +405,83 @@ const at = {
403
405
  disable: Boolean
404
406
  };
405
407
  function rt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
406
- const a = G(), { props: n, proxy: o, emit: l } = a, s = Je(a), r = c(() => n.disable !== !0 && n.href !== void 0), q = t === !0 ? c(
407
- () => s === !0 && n.disable !== !0 && r.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
408
- ) : c(
409
- () => s === !0 && r.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
410
- ), b = c(() => q.value === !0 ? B(n.to) : null), d = c(() => b.value !== null), h = c(() => r.value === !0 || d.value === !0), u = c(() => n.type === "a" || h.value === !0 ? "a" : n.tag || e || "div"), y = c(() => r.value === !0 ? {
408
+ const a = X(), { props: n, proxy: i, emit: d } = a, c = Je(a), o = u(() => n.disable !== !0 && n.href !== void 0), q = t === !0 ? u(
409
+ () => c === !0 && n.disable !== !0 && o.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
410
+ ) : u(
411
+ () => c === !0 && o.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
412
+ ), b = u(() => q.value === !0 ? P(n.to) : null), s = u(() => b.value !== null), h = u(() => o.value === !0 || s.value === !0), l = u(() => n.type === "a" || h.value === !0 ? "a" : n.tag || e || "div"), y = u(() => o.value === !0 ? {
411
413
  href: n.href,
412
414
  target: n.target
413
- } : d.value === !0 ? {
415
+ } : s.value === !0 ? {
414
416
  href: b.value.href,
415
417
  target: n.target
416
- } : {}), p = c(() => {
417
- if (d.value === !1)
418
+ } : {}), p = u(() => {
419
+ if (s.value === !1)
418
420
  return -1;
419
- const { matched: m } = b.value, { length: _ } = m, x = m[_ - 1];
420
- if (x === void 0)
421
+ const { matched: g } = b.value, { length: E } = g, L = g[E - 1];
422
+ if (L === void 0)
421
423
  return -1;
422
- const L = o.$route.matched;
423
- if (L.length === 0)
424
+ const B = i.$route.matched;
425
+ if (B.length === 0)
424
426
  return -1;
425
- const R = L.findIndex(
426
- ue.bind(null, x)
427
+ const R = B.findIndex(
428
+ ue.bind(null, L)
427
429
  );
428
430
  if (R !== -1)
429
431
  return R;
430
- const K = le(m[_ - 2]);
432
+ const D = le(g[E - 2]);
431
433
  return (
432
434
  // we are dealing with nested routes
433
- _ > 1 && le(x) === K && L[L.length - 1].path !== K ? L.findIndex(
434
- ue.bind(null, m[_ - 2])
435
+ E > 1 && le(L) === D && B[B.length - 1].path !== D ? B.findIndex(
436
+ ue.bind(null, g[E - 2])
435
437
  ) : R
436
438
  );
437
- }), k = c(
438
- () => d.value === !0 && p.value !== -1 && et(o.$route.params, b.value.params)
439
- ), f = c(
440
- () => k.value === !0 && p.value === o.$route.matched.length - 1 && nt(o.$route.params, b.value.params)
441
- ), $ = c(() => d.value === !0 ? f.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : k.value === !0 ? ` ${n.activeClass}` : "" : "");
442
- function B(m) {
439
+ }), k = u(
440
+ () => s.value === !0 && p.value !== -1 && et(i.$route.params, b.value.params)
441
+ ), f = u(
442
+ () => k.value === !0 && p.value === i.$route.matched.length - 1 && nt(i.$route.params, b.value.params)
443
+ ), $ = u(() => s.value === !0 ? f.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : k.value === !0 ? ` ${n.activeClass}` : "" : "");
444
+ function P(g) {
443
445
  try {
444
- return o.$router.resolve(m);
446
+ return i.$router.resolve(g);
445
447
  } catch {
446
448
  }
447
449
  return null;
448
450
  }
449
- function S(m, { returnRouterError: _, to: x = n.to, replace: L = n.replace } = {}) {
451
+ function x(g, { returnRouterError: E, to: L = n.to, replace: B = n.replace } = {}) {
450
452
  if (n.disable === !0)
451
- return m.preventDefault(), Promise.resolve(!1);
453
+ return g.preventDefault(), Promise.resolve(!1);
452
454
  if (
453
455
  // don't redirect with control keys;
454
456
  // should match RouterLink from Vue Router
455
- m.metaKey || m.altKey || m.ctrlKey || m.shiftKey || m.button !== void 0 && m.button !== 0 || n.target === "_blank"
457
+ g.metaKey || g.altKey || g.ctrlKey || g.shiftKey || g.button !== void 0 && g.button !== 0 || n.target === "_blank"
456
458
  )
457
459
  return Promise.resolve(!1);
458
- m.preventDefault();
459
- const R = o.$router[L === !0 ? "replace" : "push"](x);
460
- return _ === !0 ? R : R.then(() => {
460
+ g.preventDefault();
461
+ const R = i.$router[B === !0 ? "replace" : "push"](L);
462
+ return E === !0 ? R : R.then(() => {
461
463
  }).catch(() => {
462
464
  });
463
465
  }
464
- function w(m) {
465
- if (d.value === !0) {
466
- const _ = (x) => S(m, x);
467
- l("click", m, _), m.defaultPrevented !== !0 && _();
466
+ function w(g) {
467
+ if (s.value === !0) {
468
+ const E = (L) => x(g, L);
469
+ d("click", g, E), g.defaultPrevented !== !0 && E();
468
470
  } else
469
- l("click", m);
471
+ d("click", g);
470
472
  }
471
473
  return {
472
- hasRouterLink: d,
473
- hasHrefLink: r,
474
+ hasRouterLink: s,
475
+ hasHrefLink: o,
474
476
  hasLink: h,
475
- linkTag: u,
477
+ linkTag: l,
476
478
  resolvedLink: b,
477
479
  linkIsActive: k,
478
480
  linkIsExactActive: f,
479
481
  linkClass: $,
480
482
  linkAttrs: y,
481
- getLink: B,
482
- navigateToRouterLink: S,
483
+ getLink: P,
484
+ navigateToRouterLink: x,
483
485
  navigateOnClick: w
484
486
  };
485
487
  }
@@ -501,7 +503,7 @@ function st(e, t) {
501
503
  return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
502
504
  }
503
505
  const ct = {
504
- ...ve,
506
+ ...fe,
505
507
  ...at,
506
508
  type: {
507
509
  type: String,
@@ -532,7 +534,7 @@ const ct = {
532
534
  default: !0
533
535
  },
534
536
  align: {
535
- ...Ge.align,
537
+ ...Xe.align,
536
538
  default: "center"
537
539
  },
538
540
  stack: Boolean,
@@ -547,33 +549,33 @@ const ct = {
547
549
  round: Boolean
548
550
  };
549
551
  function ft(e) {
550
- const t = me(e, it), a = Ze(e), { hasRouterLink: n, hasLink: o, linkTag: l, linkAttrs: s, navigateOnClick: r } = rt({
552
+ const t = ve(e, it), a = Ze(e), { hasRouterLink: n, hasLink: i, linkTag: d, linkAttrs: c, navigateOnClick: o } = rt({
551
553
  fallbackTag: "button"
552
- }), q = c(() => {
554
+ }), q = u(() => {
553
555
  const f = e.fab === !1 && e.fabMini === !1 ? t.value : {};
554
556
  return e.padding !== void 0 ? Object.assign({}, f, {
555
557
  padding: e.padding.split(/\s+/).map(($) => $ in ce ? ce[$] + "px" : $).join(" "),
556
558
  minWidth: "0",
557
559
  minHeight: "0"
558
560
  }) : f;
559
- }), b = c(
561
+ }), b = u(
560
562
  () => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
561
- ), d = c(
563
+ ), s = u(
562
564
  () => e.disable !== !0 && e.loading !== !0
563
- ), h = c(() => d.value === !0 ? e.tabindex || 0 : -1), u = c(() => st(e, "standard")), y = c(() => {
565
+ ), h = u(() => s.value === !0 ? e.tabindex || 0 : -1), l = u(() => st(e, "standard")), y = u(() => {
564
566
  const f = { tabindex: h.value };
565
- return o.value === !0 ? Object.assign(f, s.value) : ot.includes(e.type) === !0 && (f.type = e.type), l.value === "a" ? (e.disable === !0 ? f["aria-disabled"] = "true" : f.href === void 0 && (f.role = "button"), n.value !== !0 && lt.test(e.type) === !0 && (f.type = e.type)) : e.disable === !0 && (f.disabled = "", f["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(f, {
567
+ return i.value === !0 ? Object.assign(f, c.value) : ot.includes(e.type) === !0 && (f.type = e.type), d.value === "a" ? (e.disable === !0 ? f["aria-disabled"] = "true" : f.href === void 0 && (f.role = "button"), n.value !== !0 && lt.test(e.type) === !0 && (f.type = e.type)) : e.disable === !0 && (f.disabled = "", f["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(f, {
566
568
  role: "progressbar",
567
569
  "aria-valuemin": 0,
568
570
  "aria-valuemax": 100,
569
571
  "aria-valuenow": e.percentage
570
572
  }), f;
571
- }), p = c(() => {
573
+ }), p = u(() => {
572
574
  let f;
573
575
  e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? f = `text-${e.textColor || e.color}` : f = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (f = `text-${e.textColor}`);
574
576
  const $ = e.round === !0 ? "round" : `rectangle${b.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
575
- return `q-btn--${u.value} q-btn--${$}` + (f !== void 0 ? " " + f : "") + (d.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
576
- }), k = c(
577
+ return `q-btn--${l.value} q-btn--${$}` + (f !== void 0 ? " " + f : "") + (s.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
578
+ }), k = u(
577
579
  () => a.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
578
580
  );
579
581
  return {
@@ -581,14 +583,14 @@ function ft(e) {
581
583
  style: q,
582
584
  innerClasses: k,
583
585
  attributes: y,
584
- hasLink: o,
585
- linkTag: l,
586
- navigateOnClick: r,
587
- isActionable: d
586
+ hasLink: i,
587
+ linkTag: d,
588
+ navigateOnClick: o,
589
+ isActionable: s
588
590
  };
589
591
  }
590
- const { passiveCapture: E } = Q;
591
- let T = null, O = null, A = null;
592
+ const { passiveCapture: _ } = F;
593
+ let T = null, O = null, z = null;
592
594
  const vt = Z({
593
595
  name: "QBtn",
594
596
  props: {
@@ -599,26 +601,26 @@ const vt = Z({
599
601
  },
600
602
  emits: ["click", "keydown", "mousedown", "keyup"],
601
603
  setup(e, { slots: t, emit: a }) {
602
- const { proxy: n } = G(), {
603
- classes: o,
604
- style: l,
605
- innerClasses: s,
606
- attributes: r,
604
+ const { proxy: n } = X(), {
605
+ classes: i,
606
+ style: d,
607
+ innerClasses: c,
608
+ attributes: o,
607
609
  hasLink: q,
608
610
  linkTag: b,
609
- navigateOnClick: d,
611
+ navigateOnClick: s,
610
612
  isActionable: h
611
- } = ft(e), u = J(null), y = J(null);
613
+ } = ft(e), l = J(null), y = J(null);
612
614
  let p = null, k, f = null;
613
- const $ = c(
615
+ const $ = u(
614
616
  () => e.label !== void 0 && e.label !== null && e.label !== ""
615
- ), B = c(() => e.disable === !0 || e.ripple === !1 ? !1 : {
617
+ ), P = u(() => e.disable === !0 || e.ripple === !1 ? !1 : {
616
618
  keyCodes: q.value === !0 ? [13, 32] : [13],
617
619
  ...e.ripple === !0 ? {} : e.ripple
618
- }), S = c(() => ({ center: e.round })), w = c(() => {
619
- const i = Math.max(0, Math.min(100, e.percentage));
620
- return i > 0 ? { transition: "transform 0.6s", transform: `translateX(${i - 100}%)` } : {};
621
- }), m = c(() => {
620
+ }), x = u(() => ({ center: e.round })), w = u(() => {
621
+ const r = Math.max(0, Math.min(100, e.percentage));
622
+ return r > 0 ? { transition: "transform 0.6s", transform: `translateX(${r - 100}%)` } : {};
623
+ }), g = u(() => {
622
624
  if (e.loading === !0)
623
625
  return {
624
626
  onMousedown: j,
@@ -628,105 +630,105 @@ const vt = Z({
628
630
  onKeyup: j
629
631
  };
630
632
  if (h.value === !0) {
631
- const i = {
632
- onClick: x,
633
- onKeydown: L,
634
- onMousedown: K
633
+ const r = {
634
+ onClick: L,
635
+ onKeydown: B,
636
+ onMousedown: D
635
637
  };
636
638
  if (n.$q.platform.has.touch === !0) {
637
- const g = e.onTouchstart !== void 0 ? "" : "Passive";
638
- i[`onTouchstart${g}`] = R;
639
+ const m = e.onTouchstart !== void 0 ? "" : "Passive";
640
+ r[`onTouchstart${m}`] = R;
639
641
  }
640
- return i;
642
+ return r;
641
643
  }
642
644
  return {
643
645
  // needed; especially for disabled <a> tags
644
646
  onClick: M
645
647
  };
646
- }), _ = c(() => ({
647
- ref: u,
648
- class: "q-btn q-btn-item non-selectable no-outline " + o.value,
649
- style: l.value,
650
- ...r.value,
651
- ...m.value
648
+ }), E = u(() => ({
649
+ ref: l,
650
+ class: "q-btn q-btn-item non-selectable no-outline " + i.value,
651
+ style: d.value,
652
+ ...o.value,
653
+ ...g.value
652
654
  }));
653
- function x(i) {
654
- if (u.value !== null) {
655
- if (i !== void 0) {
656
- if (i.defaultPrevented === !0)
655
+ function L(r) {
656
+ if (l.value !== null) {
657
+ if (r !== void 0) {
658
+ if (r.defaultPrevented === !0)
657
659
  return;
658
- const g = document.activeElement;
659
- if (e.type === "submit" && g !== document.body && u.value.contains(g) === !1 && g.contains(u.value) === !1) {
660
- u.value.focus();
661
- const N = () => {
662
- document.removeEventListener("keydown", M, !0), document.removeEventListener("keyup", N, E), u.value !== null && u.value.removeEventListener("blur", N, E);
660
+ const m = document.activeElement;
661
+ if (e.type === "submit" && m !== document.body && l.value.contains(m) === !1 && m.contains(l.value) === !1) {
662
+ l.value.focus();
663
+ const K = () => {
664
+ document.removeEventListener("keydown", M, !0), document.removeEventListener("keyup", K, _), l.value !== null && l.value.removeEventListener("blur", K, _);
663
665
  };
664
- document.addEventListener("keydown", M, !0), document.addEventListener("keyup", N, E), u.value.addEventListener("blur", N, E);
666
+ document.addEventListener("keydown", M, !0), document.addEventListener("keyup", K, _), l.value.addEventListener("blur", K, _);
665
667
  }
666
668
  }
667
- d(i);
669
+ s(r);
668
670
  }
669
671
  }
670
- function L(i) {
671
- u.value !== null && (a("keydown", i), W(i, [13, 32]) === !0 && O !== u.value && (O !== null && z(), i.defaultPrevented !== !0 && (u.value.focus(), O = u.value, u.value.classList.add("q-btn--active"), document.addEventListener("keyup", C, !0), u.value.addEventListener("blur", C, E)), M(i)));
672
+ function B(r) {
673
+ l.value !== null && (a("keydown", r), H(r, [13, 32]) === !0 && O !== l.value && (O !== null && A(), r.defaultPrevented !== !0 && (l.value.focus(), O = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("keyup", C, !0), l.value.addEventListener("blur", C, _)), M(r)));
672
674
  }
673
- function R(i) {
674
- u.value !== null && (a("touchstart", i), i.defaultPrevented !== !0 && (T !== u.value && (T !== null && z(), T = u.value, p = i.target, p.addEventListener("touchcancel", C, E), p.addEventListener("touchend", C, E)), k = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
675
+ function R(r) {
676
+ l.value !== null && (a("touchstart", r), r.defaultPrevented !== !0 && (T !== l.value && (T !== null && A(), T = l.value, p = r.target, p.addEventListener("touchcancel", C, _), p.addEventListener("touchend", C, _)), k = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
675
677
  f = null, k = !1;
676
678
  }, 200)));
677
679
  }
678
- function K(i) {
679
- u.value !== null && (i.qSkipRipple = k === !0, a("mousedown", i), i.defaultPrevented !== !0 && A !== u.value && (A !== null && z(), A = u.value, u.value.classList.add("q-btn--active"), document.addEventListener("mouseup", C, E)));
680
+ function D(r) {
681
+ l.value !== null && (r.qSkipRipple = k === !0, a("mousedown", r), r.defaultPrevented !== !0 && z !== l.value && (z !== null && A(), z = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("mouseup", C, _)));
680
682
  }
681
- function C(i) {
682
- if (u.value !== null && !(i !== void 0 && i.type === "blur" && document.activeElement === u.value)) {
683
- if (i !== void 0 && i.type === "keyup") {
684
- if (O === u.value && W(i, [13, 32]) === !0) {
685
- const g = new MouseEvent("click", i);
686
- g.qKeyEvent = !0, i.defaultPrevented === !0 && Fe(g), i.cancelBubble === !0 && he(g), u.value.dispatchEvent(g), M(i), i.qKeyEvent = !0;
683
+ function C(r) {
684
+ if (l.value !== null && !(r !== void 0 && r.type === "blur" && document.activeElement === l.value)) {
685
+ if (r !== void 0 && r.type === "keyup") {
686
+ if (O === l.value && H(r, [13, 32]) === !0) {
687
+ const m = new MouseEvent("click", r);
688
+ m.qKeyEvent = !0, r.defaultPrevented === !0 && Fe(m), r.cancelBubble === !0 && be(m), l.value.dispatchEvent(m), M(r), r.qKeyEvent = !0;
687
689
  }
688
- a("keyup", i);
690
+ a("keyup", r);
689
691
  }
690
- z();
692
+ A();
691
693
  }
692
694
  }
693
- function z(i) {
694
- const g = y.value;
695
- i !== !0 && (T === u.value || A === u.value) && g !== null && g !== document.activeElement && (g.setAttribute("tabindex", -1), g.focus()), T === u.value && (p !== null && (p.removeEventListener("touchcancel", C, E), p.removeEventListener("touchend", C, E)), T = p = null), A === u.value && (document.removeEventListener("mouseup", C, E), A = null), O === u.value && (document.removeEventListener("keyup", C, !0), u.value !== null && u.value.removeEventListener("blur", C, E), O = null), u.value !== null && u.value.classList.remove("q-btn--active");
695
+ function A(r) {
696
+ const m = y.value;
697
+ r !== !0 && (T === l.value || z === l.value) && m !== null && m !== document.activeElement && (m.setAttribute("tabindex", -1), m.focus()), T === l.value && (p !== null && (p.removeEventListener("touchcancel", C, _), p.removeEventListener("touchend", C, _)), T = p = null), z === l.value && (document.removeEventListener("mouseup", C, _), z = null), O === l.value && (document.removeEventListener("keyup", C, !0), l.value !== null && l.value.removeEventListener("blur", C, _), O = null), l.value !== null && l.value.classList.remove("q-btn--active");
696
698
  }
697
- function j(i) {
698
- M(i), i.qSkipRipple = !0;
699
+ function j(r) {
700
+ M(r), r.qSkipRipple = !0;
699
701
  }
700
- return $e(() => {
701
- z(!0);
702
+ return ke(() => {
703
+ A(!0);
702
704
  }), Object.assign(n, {
703
- click: (i) => {
704
- h.value === !0 && x(i);
705
+ click: (r) => {
706
+ h.value === !0 && L(r);
705
707
  }
706
708
  }), () => {
707
- let i = [];
708
- e.icon !== void 0 && i.push(
709
+ let r = [];
710
+ e.icon !== void 0 && r.push(
709
711
  v(re, {
710
712
  name: e.icon,
711
713
  left: e.stack !== !0 && $.value === !0,
712
714
  role: "img"
713
715
  })
714
- ), $.value === !0 && i.push(
716
+ ), $.value === !0 && r.push(
715
717
  v("span", { class: "block" }, [e.label])
716
- ), i = D(t.default, i), e.iconRight !== void 0 && e.round === !1 && i.push(
718
+ ), r = I(t.default, r), e.iconRight !== void 0 && e.round === !1 && r.push(
717
719
  v(re, {
718
720
  name: e.iconRight,
719
721
  right: e.stack !== !0 && $.value === !0,
720
722
  role: "img"
721
723
  })
722
724
  );
723
- const g = [
725
+ const m = [
724
726
  v("span", {
725
727
  class: "q-focus-helper",
726
728
  ref: y
727
729
  })
728
730
  ];
729
- return e.loading === !0 && e.percentage !== void 0 && g.push(
731
+ return e.loading === !0 && e.percentage !== void 0 && m.push(
730
732
  v("span", {
731
733
  class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
732
734
  }, [
@@ -735,12 +737,12 @@ const vt = Z({
735
737
  style: w.value
736
738
  })
737
739
  ])
738
- ), g.push(
740
+ ), m.push(
739
741
  v("span", {
740
- class: "q-btn__content text-center col items-center q-anchor--skip " + s.value
741
- }, i)
742
- ), e.loading !== null && g.push(
743
- v(qe, {
742
+ class: "q-btn__content text-center col items-center q-anchor--skip " + c.value
743
+ }, r)
744
+ ), e.loading !== null && m.push(
745
+ v($e, {
744
746
  name: "q-transition--fade"
745
747
  }, () => e.loading === !0 ? [
746
748
  v("span", {
@@ -748,33 +750,34 @@ const vt = Z({
748
750
  class: "absolute-full flex flex-center"
749
751
  }, t.loading !== void 0 ? t.loading() : [v(Ke)])
750
752
  ] : null)
751
- ), _e(
753
+ ), qe(
752
754
  v(
753
755
  b.value,
754
- _.value,
755
- g
756
+ E.value,
757
+ m
756
758
  ),
757
759
  [[
758
- We,
759
- B.value,
760
+ He,
761
+ P.value,
760
762
  void 0,
761
- S.value
763
+ x.value
762
764
  ]]
763
765
  );
764
766
  };
765
767
  }
766
- }), mt = /* @__PURE__ */ X({
768
+ }), gt = /* @__PURE__ */ W({
767
769
  __name: "index",
768
770
  props: {
769
- size: {},
771
+ size: { default: S.MD },
770
772
  transparent: { type: Boolean },
773
+ flat: { type: Boolean },
771
774
  rounded: { type: Boolean },
772
- color: {},
775
+ color: { default: Se.PRIMARY },
773
776
  iconLeft: {},
774
777
  iconRight: {},
775
778
  iconMiddle: {},
776
779
  disabled: { type: Boolean },
777
- loading: { type: [Boolean, null] },
780
+ loading: { type: Boolean },
778
781
  to: {},
779
782
  href: {},
780
783
  target: {},
@@ -783,65 +786,66 @@ const vt = Z({
783
786
  },
784
787
  emits: ["click"],
785
788
  setup(e) {
786
- const t = e, { size: a = I.MD, color: n = Se.PRIMARY } = t, o = c(() => [
789
+ const t = e, a = u(() => [
787
790
  "app-btn",
788
791
  {
789
- "app-btn_default": !t.transparent,
792
+ "app-btn_default": !t.transparent && !t.flat,
790
793
  "app-btn_trans": t.transparent,
794
+ "app-btn_flat": t.flat,
791
795
  "app-btn_rounded": t.rounded,
792
- "app-btn_sm": a === I.SM,
793
- "app-btn_md": a === I.MD,
794
- "app-btn_lg": a === I.LG,
796
+ "app-btn_sm": t.size === S.SM,
797
+ "app-btn_md": t.size === S.MD,
798
+ "app-btn_lg": t.size === S.LG,
795
799
  "app-btn_icon-left": t.iconLeft,
796
800
  "app-btn_icon-right": t.iconRight,
797
801
  "app-btn_icon-middle": t.iconMiddle
798
802
  },
799
- `app-btn_${n}`
803
+ `app-btn_${t.color}`
800
804
  ]);
801
- return (l, s) => (V(), Ee(P(vt), {
805
+ return (n, i) => (N(), Ee(Q(vt), {
802
806
  "no-caps": "",
803
807
  unelevated: "",
804
- class: F(o.value),
805
- padding: P(fe)[P(a) || P(I).MD],
806
- loading: l.loading,
807
- disabled: l.disabled || void 0,
808
- to: l.to,
809
- href: l.href,
810
- target: l.target,
811
- type: l.submit ? "submit" : void 0,
812
- "aria-label": l.ariaLabel,
813
- onClick: s[0] || (s[0] = (r) => l.$emit("click", r))
808
+ class: V(a.value),
809
+ padding: Q(Re)[n.size || Q(S).MD],
810
+ loading: n.loading,
811
+ disabled: n.disabled || void 0,
812
+ to: n.to,
813
+ href: n.href,
814
+ target: n.target,
815
+ type: n.submit ? "submit" : void 0,
816
+ "aria-label": n.ariaLabel,
817
+ onClick: i[0] || (i[0] = (d) => n.$emit("click", d))
814
818
  }, {
815
- default: xe(() => [
816
- l.iconLeft || l.iconMiddle ? (V(), Y("i", {
819
+ default: _e(() => [
820
+ n.iconLeft || n.iconMiddle ? (N(), Y("i", {
817
821
  key: 0,
818
- class: F([
822
+ class: V([
819
823
  "icon-kl",
820
- l.iconLeft ? "icon-kl_left" : "icon-kl_middle",
821
- `icon-kl-${l.iconLeft || l.iconMiddle}`,
822
- l.transparent ? `text-${P(n)}` : "text-secondary"
824
+ n.iconLeft ? "icon-kl_left" : "icon-kl_middle",
825
+ `icon-kl-${n.iconLeft || n.iconMiddle}`,
826
+ n.transparent ? `text-${n.color}` : "text-secondary"
823
827
  ])
824
828
  }, null, 2)) : ee("", !0),
825
- Ce(l.$slots, "default", {}, void 0, !0),
826
- l.iconRight ? (V(), Y("i", {
829
+ Le(n.$slots, "default", {}, void 0, !0),
830
+ n.iconRight ? (N(), Y("i", {
827
831
  key: 1,
828
- class: F([
832
+ class: V([
829
833
  "icon-kl",
830
834
  "icon-kl_right",
831
- `icon-kl-${l.iconRight}`,
832
- l.transparent ? `text-${P(n)}` : "text-secondary"
835
+ `icon-kl-${n.iconRight}`,
836
+ n.transparent ? `text-${n.color}` : "text-secondary"
833
837
  ])
834
838
  }, null, 2)) : ee("", !0)
835
839
  ]),
836
840
  _: 3
837
841
  }, 8, ["class", "padding", "loading", "disabled", "to", "href", "target", "type", "aria-label"]));
838
842
  }
839
- }), ke = (e, t) => {
843
+ }), ye = (e, t) => {
840
844
  const a = e.__vccOpts || e;
841
- for (const [n, o] of t)
842
- a[n] = o;
845
+ for (const [n, i] of t)
846
+ a[n] = i;
843
847
  return a;
844
- }, bt = /* @__PURE__ */ ke(mt, [["__scopeId", "data-v-42f3b7cf"]]), gt = /* @__PURE__ */ X({
848
+ }, bt = /* @__PURE__ */ ye(gt, [["__scopeId", "data-v-b2e64af1"]]), mt = /* @__PURE__ */ W({
845
849
  __name: "index",
846
850
  props: {
847
851
  name: {},
@@ -849,13 +853,13 @@ const vt = Z({
849
853
  color: {}
850
854
  },
851
855
  setup(e) {
852
- return (t, a) => (V(), Y("i", {
853
- class: F(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
854
- style: Le(t.size ? `font-size: ${t.size}` : void 0)
856
+ return (t, a) => (N(), Y("i", {
857
+ class: V(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
858
+ style: Ce(t.size ? `font-size: ${t.size}` : void 0)
855
859
  }, null, 6));
856
860
  }
857
- }), ht = /* @__PURE__ */ ke(gt, [["__scopeId", "data-v-73419357"]]), yt = Re(
858
- () => import("./index-qLVhfsl_.js")
861
+ }), ht = /* @__PURE__ */ ye(mt, [["__scopeId", "data-v-73419357"]]), yt = Be(
862
+ () => import("./index-Sx6zVgnt.js")
859
863
  );
860
864
  export {
861
865
  bt as A,