@validol4ik/uikit 0.2.3 → 0.2.5

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