@validol4ik/uikit 0.1.95 → 0.2.0

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/uikit.es.js CHANGED
@@ -1,63 +1,70 @@
1
- import { computed as u, markRaw as de, defineComponent as W, getCurrentInstance as X, h as v, ref as J, onBeforeUnmount as $e, Transition as qe, withDirectives as Ee, openBlock as N, createBlock as _e, unref as Q, normalizeClass as V, withCtx as Le, createElementBlock as Y, createCommentVNode as ee, renderSlot as xe, normalizeStyle as Re } from "vue";
2
- const j = {
1
+ import { computed as c, markRaw as he, defineComponent as U, getCurrentInstance as oe, h as v, ref as H, onBeforeUnmount as Be, Transition as Oe, withDirectives as Me, openBlock as K, createBlock as ye, unref as V, normalizeClass as Y, withCtx as Te, createElementBlock as J, createCommentVNode as re, renderSlot as ze, reactive as je, mergeProps as Ie, withModifiers as De, normalizeStyle as Ne } from "vue";
2
+ const D = {
3
3
  SM: "sm",
4
4
  MD: "md",
5
5
  LG: "lg"
6
6
  };
7
- var fe = /* @__PURE__ */ ((e) => (e.sm = "3px 9px", e.md = "5px 12px", e.lg = "9px 20px", e))(fe || {});
8
- const Se = {
7
+ var ke = /* @__PURE__ */ ((e) => (e.sm = "3px 9px", e.md = "5px 12px", e.lg = "9px 20px", e))(ke || {});
8
+ const we = {
9
9
  PRIMARY: "primary",
10
10
  INFO: "info",
11
11
  NEGATIVE: "negative",
12
12
  POSITIVE: "positive"
13
- }, G = {
13
+ }, ee = {
14
14
  xs: 18,
15
15
  sm: 24,
16
16
  md: 32,
17
17
  lg: 38,
18
18
  xl: 46
19
- }, ve = {
19
+ }, xe = {
20
20
  size: String
21
21
  };
22
- function ge(e, t = G) {
23
- return u(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
22
+ function _e(e, t = ee) {
23
+ return c(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
24
24
  }
25
- function Z(e) {
26
- return de(W(e));
25
+ function Ke(e, t, i, o) {
26
+ return Object.defineProperty(e, t, {
27
+ get: i,
28
+ set: o,
29
+ enumerable: !0
30
+ }), e;
27
31
  }
28
- function Ce(e) {
29
- return de(e);
32
+ function ie(e) {
33
+ return he(U(e));
30
34
  }
31
- function we(e, t) {
35
+ function Ae(e) {
36
+ return he(e);
37
+ }
38
+ function Fe(e, t) {
32
39
  return e !== void 0 && e() || t;
33
40
  }
34
- function I(e, t) {
41
+ function N(e, t) {
35
42
  return e !== void 0 ? t.concat(e()) : t;
36
43
  }
37
- const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, me = {
44
+ const ae = "0 0 24 24", le = (e) => e, X = (e) => `ionicons ${e}`, Ee = {
38
45
  "mdi-": (e) => `mdi ${e}`,
39
- "icon-": ne,
46
+ "icon-": le,
40
47
  // fontawesome equiv
41
48
  "bt-": (e) => `bt ${e}`,
42
49
  "eva-": (e) => `eva ${e}`,
43
- "ion-md": U,
44
- "ion-ios": U,
45
- "ion-logo": U,
46
- "iconfont ": ne,
50
+ "ion-md": X,
51
+ "ion-ios": X,
52
+ "ion-logo": X,
53
+ "iconfont ": le,
47
54
  "ti-": (e) => `themify-icon ${e}`,
48
55
  "bi-": (e) => `bootstrap-icons ${e}`
49
- }, pe = {
56
+ }, Ce = {
50
57
  o_: "-outlined",
51
58
  r_: "-round",
52
59
  s_: "-sharp"
53
- }, he = {
60
+ }, $e = {
54
61
  sym_o_: "-outlined",
55
62
  sym_r_: "-rounded",
56
63
  sym_s_: "-sharp"
57
- }, Be = new RegExp("^(" + Object.keys(me).join("|") + ")"), Pe = new RegExp("^(" + Object.keys(pe).join("|") + ")"), ae = new RegExp("^(" + Object.keys(he).join("|") + ")"), Te = /^[Mm]\s?[-+]?\.?\d/, Me = /^img:/, Oe = /^svguse:/, ze = /^ion-/, Ae = /^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, re = Z({
64
+ }, Ve = new RegExp("^(" + Object.keys(Ee).join("|") + ")"), Ye = new RegExp("^(" + Object.keys(Ce).join("|") + ")"), se = new RegExp("^(" + Object.keys($e).join("|") + ")"), He = /^[Mm]\s?[-+]?\.?\d/, We = /^img:/, Qe = /^svguse:/, Ue = /^ion-/, Ge = /^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, ue = ie({
58
65
  name: "QIcon",
59
66
  props: {
60
- ...ve,
67
+ ...xe,
61
68
  tag: {
62
69
  type: String,
63
70
  default: "i"
@@ -68,122 +75,122 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, me = {
68
75
  right: Boolean
69
76
  },
70
77
  setup(e, { slots: t }) {
71
- const { proxy: { $q: a } } = X(), n = ge(e), i = u(
78
+ const { proxy: { $q: i } } = oe(), o = _e(e), n = c(
72
79
  () => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
73
- ), d = u(() => {
74
- let c, l = e.name;
75
- if (l === "none" || !l)
80
+ ), s = c(() => {
81
+ let u, a = e.name;
82
+ if (a === "none" || !a)
76
83
  return { none: !0 };
77
- if (a.iconMapFn !== null) {
78
- const s = a.iconMapFn(l);
79
- if (s !== void 0)
80
- if (s.icon !== void 0) {
81
- if (l = s.icon, l === "none" || !l)
84
+ if (i.iconMapFn !== null) {
85
+ const d = i.iconMapFn(a);
86
+ if (d !== void 0)
87
+ if (d.icon !== void 0) {
88
+ if (a = d.icon, a === "none" || !a)
82
89
  return { none: !0 };
83
90
  } else
84
91
  return {
85
- cls: s.cls,
86
- content: s.content !== void 0 ? s.content : " "
92
+ cls: d.cls,
93
+ content: d.content !== void 0 ? d.content : " "
87
94
  };
88
95
  }
89
- if (Te.test(l) === !0) {
90
- const [s, b = te] = l.split("|");
96
+ if (He.test(a) === !0) {
97
+ const [d, h = ae] = a.split("|");
91
98
  return {
92
99
  svg: !0,
93
- viewBox: b,
94
- nodes: s.split("&&").map((o) => {
95
- const [y, p, k] = o.split("@@");
96
- return v("path", { style: p, d: y, transform: k });
100
+ viewBox: h,
101
+ nodes: d.split("&&").map((l) => {
102
+ const [y, b, k] = l.split("@@");
103
+ return v("path", { style: b, d: y, transform: k });
97
104
  })
98
105
  };
99
106
  }
100
- if (Me.test(l) === !0)
107
+ if (We.test(a) === !0)
101
108
  return {
102
109
  img: !0,
103
- src: l.substring(4)
110
+ src: a.substring(4)
104
111
  };
105
- if (Oe.test(l) === !0) {
106
- const [s, b = te] = l.split("|");
112
+ if (Qe.test(a) === !0) {
113
+ const [d, h = ae] = a.split("|");
107
114
  return {
108
115
  svguse: !0,
109
- src: s.substring(7),
110
- viewBox: b
116
+ src: d.substring(7),
117
+ viewBox: h
111
118
  };
112
119
  }
113
- let q = " ";
114
- const h = l.match(Be);
115
- if (h !== null)
116
- c = me[h[1]](l);
117
- else if (Ae.test(l) === !0)
118
- c = l;
119
- else if (ze.test(l) === !0)
120
- c = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${l.substring(3)}`;
121
- else if (ae.test(l) === !0) {
122
- c = "notranslate material-symbols";
123
- const s = l.match(ae);
124
- s !== null && (l = l.substring(6), c += he[s[1]]), q = l;
120
+ let x = " ";
121
+ const g = a.match(Ve);
122
+ if (g !== null)
123
+ u = Ee[g[1]](a);
124
+ else if (Ge.test(a) === !0)
125
+ u = a;
126
+ else if (Ue.test(a) === !0)
127
+ u = `ionicons ion-${i.platform.is.ios === !0 ? "ios" : "md"}${a.substring(3)}`;
128
+ else if (se.test(a) === !0) {
129
+ u = "notranslate material-symbols";
130
+ const d = a.match(se);
131
+ d !== null && (a = a.substring(6), u += $e[d[1]]), x = a;
125
132
  } else {
126
- c = "notranslate material-icons";
127
- const s = l.match(Pe);
128
- s !== null && (l = l.substring(2), c += pe[s[1]]), q = l;
133
+ u = "notranslate material-icons";
134
+ const d = a.match(Ye);
135
+ d !== null && (a = a.substring(2), u += Ce[d[1]]), x = a;
129
136
  }
130
137
  return {
131
- cls: c,
132
- content: q
138
+ cls: u,
139
+ content: x
133
140
  };
134
141
  });
135
142
  return () => {
136
- const c = {
137
- class: i.value,
138
- style: n.value,
143
+ const u = {
144
+ class: n.value,
145
+ style: o.value,
139
146
  "aria-hidden": "true",
140
147
  role: "presentation"
141
148
  };
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, [
149
+ return s.value.none === !0 ? v(e.tag, u, Fe(t.default)) : s.value.img === !0 ? v(e.tag, u, N(t.default, [
150
+ v("img", { src: s.value.src })
151
+ ])) : s.value.svg === !0 ? v(e.tag, u, N(t.default, [
145
152
  v("svg", {
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, [
153
+ viewBox: s.value.viewBox || "0 0 24 24"
154
+ }, s.value.nodes)
155
+ ])) : s.value.svguse === !0 ? v(e.tag, u, N(t.default, [
149
156
  v("svg", {
150
- viewBox: d.value.viewBox
157
+ viewBox: s.value.viewBox
151
158
  }, [
152
- v("use", { "xlink:href": d.value.src })
159
+ v("use", { "xlink:href": s.value.src })
153
160
  ])
154
- ])) : (d.value.cls !== void 0 && (c.class += " " + d.value.cls), v(e.tag, c, I(t.default, [
155
- d.value.content
161
+ ])) : (s.value.cls !== void 0 && (u.class += " " + s.value.cls), v(e.tag, u, N(t.default, [
162
+ s.value.content
156
163
  ])));
157
164
  };
158
165
  }
159
- }), je = {
166
+ }), Xe = {
160
167
  size: {
161
168
  type: [String, Number],
162
169
  default: "1em"
163
170
  },
164
171
  color: String
165
172
  };
166
- function Ie(e) {
173
+ function Ze(e) {
167
174
  return {
168
- cSize: u(() => e.size in G ? `${G[e.size]}px` : e.size),
169
- classes: u(
175
+ cSize: c(() => e.size in ee ? `${ee[e.size]}px` : e.size),
176
+ classes: c(
170
177
  () => "q-spinner" + (e.color ? ` text-${e.color}` : "")
171
178
  )
172
179
  };
173
180
  }
174
- const De = Z({
181
+ const Je = ie({
175
182
  name: "QSpinner",
176
183
  props: {
177
- ...je,
184
+ ...Xe,
178
185
  thickness: {
179
186
  type: Number,
180
187
  default: 5
181
188
  }
182
189
  },
183
190
  setup(e) {
184
- const { cSize: t, classes: a } = Ie(e);
191
+ const { cSize: t, classes: i } = Ze(e);
185
192
  return () => v("svg", {
186
- class: a.value + " q-spinner-mat",
193
+ class: i.value + " q-spinner-mat",
187
194
  width: t.value,
188
195
  height: t.value,
189
196
  viewBox: "25 25 50 50"
@@ -201,12 +208,12 @@ const De = Z({
201
208
  ]);
202
209
  }
203
210
  });
204
- function Ke(e, t) {
205
- const a = e.style;
206
- for (const n in t)
207
- a[n] = t[n];
211
+ function et(e, t) {
212
+ const i = e.style;
213
+ for (const o in t)
214
+ i[o] = t[o];
208
215
  }
209
- const F = {
216
+ const G = {
210
217
  hasPassive: !1,
211
218
  passiveCapture: !0,
212
219
  notPassiveCapture: !0
@@ -214,7 +221,7 @@ const F = {
214
221
  try {
215
222
  const e = Object.defineProperty({}, "passive", {
216
223
  get() {
217
- Object.assign(F, {
224
+ Object.assign(G, {
218
225
  hasPassive: !0,
219
226
  passive: { passive: !0 },
220
227
  notPassive: { passive: !1 },
@@ -226,101 +233,101 @@ try {
226
233
  window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
227
234
  } catch {
228
235
  }
229
- function Ne(e) {
236
+ function tt(e) {
230
237
  return e.touches && e.touches[0] ? e = e.touches[0] : e.changedTouches && e.changedTouches[0] ? e = e.changedTouches[0] : e.targetTouches && e.targetTouches[0] && (e = e.targetTouches[0]), {
231
238
  top: e.clientY,
232
239
  left: e.clientX
233
240
  };
234
241
  }
235
- function be(e) {
242
+ function qe(e) {
236
243
  e.stopPropagation();
237
244
  }
238
- function Ve(e) {
245
+ function nt(e) {
239
246
  e.cancelable !== !1 && e.preventDefault();
240
247
  }
241
- function P(e) {
248
+ function O(e) {
242
249
  e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
243
250
  }
244
- function Fe(e, t, a) {
245
- const n = `__q_${t}_evt`;
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]]);
251
+ function ot(e, t, i) {
252
+ const o = `__q_${t}_evt`;
253
+ e[o] = e[o] !== void 0 ? e[o].concat(i) : i, i.forEach((n) => {
254
+ n[0].addEventListener(n[1], e[n[2]], G[n[3]]);
248
255
  });
249
256
  }
250
- function Qe(e, t) {
251
- const a = `__q_${t}_evt`;
252
- e[a] !== void 0 && (e[a].forEach((n) => {
253
- n[0].removeEventListener(n[1], e[n[2]], F[n[3]]);
254
- }), e[a] = void 0);
257
+ function it(e, t) {
258
+ const i = `__q_${t}_evt`;
259
+ e[i] !== void 0 && (e[i].forEach((o) => {
260
+ o[0].removeEventListener(o[1], e[o[2]], G[o[3]]);
261
+ }), e[i] = void 0);
255
262
  }
256
- function Ue(e) {
263
+ function rt(e) {
257
264
  return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
258
265
  }
259
- function H(e, t) {
260
- return Ue(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
266
+ function te(e, t) {
267
+ return rt(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
261
268
  }
262
- function Ye(e, t = 250) {
263
- let a = !1, n;
269
+ function at(e, t = 250) {
270
+ let i = !1, o;
264
271
  return function() {
265
- return a === !1 && (a = !0, setTimeout(() => {
266
- a = !1;
267
- }, t), n = e.apply(this, arguments)), n;
272
+ return i === !1 && (i = !0, setTimeout(() => {
273
+ i = !1;
274
+ }, t), o = e.apply(this, arguments)), o;
268
275
  };
269
276
  }
270
- function ie(e, t, a, n) {
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"), l = document.createElement("span"), q = Ne(e), { left: h, top: s, width: b, height: o } = t.getBoundingClientRect(), y = Math.sqrt(b * b + o * o), p = y / 2, k = `${(b - y) / 2}px`, f = d ? k : `${q.left - h - p}px`, $ = `${(o - y) / 2}px`, B = d ? $ : `${q.top - s - p}px`;
276
- l.className = "q-ripple__inner", Ke(l, {
277
+ function ce(e, t, i, o) {
278
+ i.modifiers.stop === !0 && qe(e);
279
+ const n = i.modifiers.color;
280
+ let s = i.modifiers.center;
281
+ s = s === !0 || o === !0;
282
+ const u = document.createElement("span"), a = document.createElement("span"), x = tt(e), { left: g, top: d, width: h, height: l } = t.getBoundingClientRect(), y = Math.sqrt(h * h + l * l), b = y / 2, k = `${(h - y) / 2}px`, f = s ? k : `${x.left - g - b}px`, w = `${(l - y) / 2}px`, B = s ? w : `${x.top - d - b}px`;
283
+ a.className = "q-ripple__inner", et(a, {
277
284
  height: `${y}px`,
278
285
  width: `${y}px`,
279
286
  transform: `translate3d(${f},${B},0) scale3d(.2,.2,1)`,
280
287
  opacity: 0
281
- }), c.className = `q-ripple${i ? " text-" + i : ""}`, c.setAttribute("dir", "ltr"), c.appendChild(l), t.appendChild(c);
282
- const C = () => {
283
- c.remove(), clearTimeout(w);
288
+ }), u.className = `q-ripple${n ? " text-" + n : ""}`, u.setAttribute("dir", "ltr"), u.appendChild(a), t.appendChild(u);
289
+ const L = () => {
290
+ u.remove(), clearTimeout(P);
284
291
  };
285
- a.abort.push(C);
286
- let w = setTimeout(() => {
287
- l.classList.add("q-ripple__inner--enter"), l.style.transform = `translate3d(${k},${$},0) scale3d(1,1,1)`, l.style.opacity = 0.2, w = setTimeout(() => {
288
- l.classList.remove("q-ripple__inner--enter"), l.classList.add("q-ripple__inner--leave"), l.style.opacity = 0, w = setTimeout(() => {
289
- c.remove(), a.abort.splice(a.abort.indexOf(C), 1);
292
+ i.abort.push(L);
293
+ let P = setTimeout(() => {
294
+ a.classList.add("q-ripple__inner--enter"), a.style.transform = `translate3d(${k},${w},0) scale3d(1,1,1)`, a.style.opacity = 0.2, P = setTimeout(() => {
295
+ a.classList.remove("q-ripple__inner--enter"), a.classList.add("q-ripple__inner--leave"), a.style.opacity = 0, P = setTimeout(() => {
296
+ u.remove(), i.abort.splice(i.abort.indexOf(L), 1);
290
297
  }, 275);
291
298
  }, 250);
292
299
  }, 50);
293
300
  }
294
- function le(e, { modifiers: t, value: a, arg: n }) {
295
- const i = Object.assign({}, e.cfg.ripple, t, a);
301
+ function de(e, { modifiers: t, value: i, arg: o }) {
302
+ const n = Object.assign({}, e.cfg.ripple, t, i);
296
303
  e.modifiers = {
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)
304
+ early: n.early === !0,
305
+ stop: n.stop === !0,
306
+ center: n.center === !0,
307
+ color: n.color || o,
308
+ keyCodes: [].concat(n.keyCodes || 13)
302
309
  };
303
310
  }
304
- const Ge = Ce(
311
+ const lt = Ae(
305
312
  {
306
313
  name: "ripple",
307
314
  beforeMount(e, t) {
308
- const a = t.instance.$.appContext.config.globalProperties.$q.config || {};
309
- if (a.ripple === !1)
315
+ const i = t.instance.$.appContext.config.globalProperties.$q.config || {};
316
+ if (i.ripple === !1)
310
317
  return;
311
- const n = {
312
- cfg: a,
318
+ const o = {
319
+ cfg: i,
313
320
  enabled: t.value !== !1,
314
321
  modifiers: {},
315
322
  abort: [],
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);
323
+ start(n) {
324
+ o.enabled === !0 && n.qSkipRipple !== !0 && n.type === (o.modifiers.early === !0 ? "pointerdown" : "click") && ce(n, e, o, n.qKeyEvent === !0);
318
325
  },
319
- keystart: Ye((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);
326
+ keystart: at((n) => {
327
+ o.enabled === !0 && n.qSkipRipple !== !0 && te(n, o.modifiers.keyCodes) === !0 && n.type === `key${o.modifiers.early === !0 ? "down" : "up"}` && ce(n, e, o, !0);
321
328
  }, 300)
322
329
  };
323
- le(n, t), e.__qripple = n, Fe(n, "main", [
330
+ de(o, t), e.__qripple = o, ot(o, "main", [
324
331
  [e, "pointerdown", "start", "passive"],
325
332
  [e, "click", "start", "passive"],
326
333
  [e, "keydown", "keystart", "passive"],
@@ -329,18 +336,18 @@ const Ge = Ce(
329
336
  },
330
337
  updated(e, t) {
331
338
  if (t.oldValue !== t.value) {
332
- const a = e.__qripple;
333
- a !== void 0 && (a.enabled = t.value !== !1, a.enabled === !0 && Object(t.value) === t.value && le(a, t));
339
+ const i = e.__qripple;
340
+ i !== void 0 && (i.enabled = t.value !== !1, i.enabled === !0 && Object(t.value) === t.value && de(i, t));
334
341
  }
335
342
  },
336
343
  beforeUnmount(e) {
337
344
  const t = e.__qripple;
338
- t !== void 0 && (t.abort.forEach((a) => {
339
- a();
340
- }), Qe(t, "main"), delete e._qripple);
345
+ t !== void 0 && (t.abort.forEach((i) => {
346
+ i();
347
+ }), it(t, "main"), delete e._qripple);
341
348
  }
342
349
  }
343
- ), ye = {
350
+ ), Se = {
344
351
  left: "start",
345
352
  center: "center",
346
353
  right: "end",
@@ -348,53 +355,53 @@ const Ge = Ce(
348
355
  around: "around",
349
356
  evenly: "evenly",
350
357
  stretch: "stretch"
351
- }, He = Object.keys(ye), We = {
358
+ }, st = Object.keys(Se), ut = {
352
359
  align: {
353
360
  type: String,
354
- validator: (e) => He.includes(e)
361
+ validator: (e) => st.includes(e)
355
362
  }
356
363
  };
357
- function Xe(e) {
358
- return u(() => {
364
+ function ct(e) {
365
+ return c(() => {
359
366
  const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
360
- return `${e.vertical === !0 ? "items" : "justify"}-${ye[t]}`;
367
+ return `${e.vertical === !0 ? "items" : "justify"}-${Se[t]}`;
361
368
  });
362
369
  }
363
- function Ze(e) {
370
+ function dt(e) {
364
371
  return e.appContext.config.globalProperties.$router !== void 0;
365
372
  }
366
- function oe(e) {
373
+ function fe(e) {
367
374
  return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
368
375
  }
369
- function ue(e, t) {
376
+ function ve(e, t) {
370
377
  return (e.aliasOf || e) === (t.aliasOf || t);
371
378
  }
372
- function Je(e, t) {
373
- for (const a in t) {
374
- const n = t[a], i = e[a];
375
- if (typeof n == "string") {
376
- if (n !== i)
379
+ function ft(e, t) {
380
+ for (const i in t) {
381
+ const o = t[i], n = e[i];
382
+ if (typeof o == "string") {
383
+ if (o !== n)
377
384
  return !1;
378
- } else if (Array.isArray(i) === !1 || i.length !== n.length || n.some((d, c) => d !== i[c]))
385
+ } else if (Array.isArray(n) === !1 || n.length !== o.length || o.some((s, u) => s !== n[u]))
379
386
  return !1;
380
387
  }
381
388
  return !0;
382
389
  }
383
- function se(e, t) {
384
- return Array.isArray(t) === !0 ? e.length === t.length && e.every((a, n) => a === t[n]) : e.length === 1 && e[0] === t;
390
+ function me(e, t) {
391
+ return Array.isArray(t) === !0 ? e.length === t.length && e.every((i, o) => i === t[o]) : e.length === 1 && e[0] === t;
385
392
  }
386
- function et(e, t) {
387
- return Array.isArray(e) === !0 ? se(e, t) : Array.isArray(t) === !0 ? se(t, e) : e === t;
393
+ function vt(e, t) {
394
+ return Array.isArray(e) === !0 ? me(e, t) : Array.isArray(t) === !0 ? me(t, e) : e === t;
388
395
  }
389
- function tt(e, t) {
396
+ function mt(e, t) {
390
397
  if (Object.keys(e).length !== Object.keys(t).length)
391
398
  return !1;
392
- for (const a in e)
393
- if (et(e[a], t[a]) === !1)
399
+ for (const i in e)
400
+ if (vt(e[i], t[i]) === !1)
394
401
  return !1;
395
402
  return !0;
396
403
  }
397
- const nt = {
404
+ const pt = {
398
405
  // router-link
399
406
  to: [String, Object],
400
407
  replace: Boolean,
@@ -404,107 +411,107 @@ const nt = {
404
411
  // state
405
412
  disable: Boolean
406
413
  };
407
- function at({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
408
- const a = X(), { props: n, proxy: i, emit: d } = a, c = Ze(a), l = u(() => n.disable !== !0 && n.href !== void 0), q = t === !0 ? u(
409
- () => c === !0 && n.disable !== !0 && l.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
410
- ) : u(
411
- () => c === !0 && l.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
412
- ), h = u(() => q.value === !0 ? B(n.to) : null), s = u(() => h.value !== null), b = u(() => l.value === !0 || s.value === !0), o = u(() => n.type === "a" || b.value === !0 ? "a" : n.tag || e || "div"), y = u(() => l.value === !0 ? {
413
- href: n.href,
414
- target: n.target
415
- } : s.value === !0 ? {
416
- href: h.value.href,
417
- target: n.target
418
- } : {}), p = u(() => {
419
- if (s.value === !1)
414
+ function bt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
415
+ const i = oe(), { props: o, proxy: n, emit: s } = i, u = dt(i), a = c(() => o.disable !== !0 && o.href !== void 0), x = t === !0 ? c(
416
+ () => u === !0 && o.disable !== !0 && a.value !== !0 && o.to !== void 0 && o.to !== null && o.to !== ""
417
+ ) : c(
418
+ () => u === !0 && a.value !== !0 && o.to !== void 0 && o.to !== null && o.to !== ""
419
+ ), g = c(() => x.value === !0 ? B(o.to) : null), d = c(() => g.value !== null), h = c(() => a.value === !0 || d.value === !0), l = c(() => o.type === "a" || h.value === !0 ? "a" : o.tag || e || "div"), y = c(() => a.value === !0 ? {
420
+ href: o.href,
421
+ target: o.target
422
+ } : d.value === !0 ? {
423
+ href: g.value.href,
424
+ target: o.target
425
+ } : {}), b = c(() => {
426
+ if (d.value === !1)
420
427
  return -1;
421
- const { matched: g } = h.value, { length: E } = g, L = g[E - 1];
422
- if (L === void 0)
428
+ const { matched: m } = g.value, { length: _ } = m, C = m[_ - 1];
429
+ if (C === void 0)
423
430
  return -1;
424
- const R = i.$route.matched;
425
- if (R.length === 0)
431
+ const q = n.$route.matched;
432
+ if (q.length === 0)
426
433
  return -1;
427
- const S = R.findIndex(
428
- ue.bind(null, L)
434
+ const S = q.findIndex(
435
+ ve.bind(null, C)
429
436
  );
430
437
  if (S !== -1)
431
438
  return S;
432
- const D = oe(g[E - 2]);
439
+ const A = fe(m[_ - 2]);
433
440
  return (
434
441
  // we are dealing with nested routes
435
- E > 1 && oe(L) === D && R[R.length - 1].path !== D ? R.findIndex(
436
- ue.bind(null, g[E - 2])
442
+ _ > 1 && fe(C) === A && q[q.length - 1].path !== A ? q.findIndex(
443
+ ve.bind(null, m[_ - 2])
437
444
  ) : S
438
445
  );
439
- }), k = u(
440
- () => s.value === !0 && p.value !== -1 && Je(i.$route.params, h.value.params)
441
- ), f = u(
442
- () => k.value === !0 && p.value === i.$route.matched.length - 1 && tt(i.$route.params, h.value.params)
443
- ), $ = u(() => s.value === !0 ? f.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : k.value === !0 ? ` ${n.activeClass}` : "" : "");
444
- function B(g) {
446
+ }), k = c(
447
+ () => d.value === !0 && b.value !== -1 && ft(n.$route.params, g.value.params)
448
+ ), f = c(
449
+ () => k.value === !0 && b.value === n.$route.matched.length - 1 && mt(n.$route.params, g.value.params)
450
+ ), w = c(() => d.value === !0 ? f.value === !0 ? ` ${o.exactActiveClass} ${o.activeClass}` : o.exact === !0 ? "" : k.value === !0 ? ` ${o.activeClass}` : "" : "");
451
+ function B(m) {
445
452
  try {
446
- return i.$router.resolve(g);
453
+ return n.$router.resolve(m);
447
454
  } catch {
448
455
  }
449
456
  return null;
450
457
  }
451
- function C(g, { returnRouterError: E, to: L = n.to, replace: R = n.replace } = {}) {
452
- if (n.disable === !0)
453
- return g.preventDefault(), Promise.resolve(!1);
458
+ function L(m, { returnRouterError: _, to: C = o.to, replace: q = o.replace } = {}) {
459
+ if (o.disable === !0)
460
+ return m.preventDefault(), Promise.resolve(!1);
454
461
  if (
455
462
  // don't redirect with control keys;
456
463
  // should match RouterLink from Vue Router
457
- g.metaKey || g.altKey || g.ctrlKey || g.shiftKey || g.button !== void 0 && g.button !== 0 || n.target === "_blank"
464
+ m.metaKey || m.altKey || m.ctrlKey || m.shiftKey || m.button !== void 0 && m.button !== 0 || o.target === "_blank"
458
465
  )
459
466
  return Promise.resolve(!1);
460
- g.preventDefault();
461
- const S = i.$router[R === !0 ? "replace" : "push"](L);
462
- return E === !0 ? S : S.then(() => {
467
+ m.preventDefault();
468
+ const S = n.$router[q === !0 ? "replace" : "push"](C);
469
+ return _ === !0 ? S : S.then(() => {
463
470
  }).catch(() => {
464
471
  });
465
472
  }
466
- function w(g) {
467
- if (s.value === !0) {
468
- const E = (L) => C(g, L);
469
- d("click", g, E), g.defaultPrevented !== !0 && E();
473
+ function P(m) {
474
+ if (d.value === !0) {
475
+ const _ = (C) => L(m, C);
476
+ s("click", m, _), m.defaultPrevented !== !0 && _();
470
477
  } else
471
- d("click", g);
478
+ s("click", m);
472
479
  }
473
480
  return {
474
- hasRouterLink: s,
475
- hasHrefLink: l,
476
- hasLink: b,
477
- linkTag: o,
478
- resolvedLink: h,
481
+ hasRouterLink: d,
482
+ hasHrefLink: a,
483
+ hasLink: h,
484
+ linkTag: l,
485
+ resolvedLink: g,
479
486
  linkIsActive: k,
480
487
  linkIsExactActive: f,
481
- linkClass: $,
488
+ linkClass: w,
482
489
  linkAttrs: y,
483
490
  getLink: B,
484
- navigateToRouterLink: C,
485
- navigateOnClick: w
491
+ navigateToRouterLink: L,
492
+ navigateOnClick: P
486
493
  };
487
494
  }
488
- const ce = {
495
+ const pe = {
489
496
  none: 0,
490
497
  xs: 4,
491
498
  sm: 8,
492
499
  md: 16,
493
500
  lg: 24,
494
501
  xl: 32
495
- }, rt = {
502
+ }, gt = {
496
503
  xs: 8,
497
504
  sm: 10,
498
505
  md: 14,
499
506
  lg: 20,
500
507
  xl: 24
501
- }, it = ["button", "submit", "reset"], lt = /[^\s]\/[^\s]/, ot = ["flat", "outline", "push", "unelevated"];
502
- function ut(e, t) {
508
+ }, ht = ["button", "submit", "reset"], yt = /[^\s]\/[^\s]/, kt = ["flat", "outline", "push", "unelevated"];
509
+ function wt(e, t) {
503
510
  return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
504
511
  }
505
- const st = {
506
- ...ve,
507
- ...nt,
512
+ const xt = {
513
+ ...xe,
514
+ ...pt,
508
515
  type: {
509
516
  type: String,
510
517
  default: "button"
@@ -512,7 +519,7 @@ const st = {
512
519
  label: [Number, String],
513
520
  icon: String,
514
521
  iconRight: String,
515
- ...ot.reduce(
522
+ ...kt.reduce(
516
523
  (e, t) => (e[t] = Boolean) && e,
517
524
  {}
518
525
  ),
@@ -534,7 +541,7 @@ const st = {
534
541
  default: !0
535
542
  },
536
543
  align: {
537
- ...We.align,
544
+ ...ut.align,
538
545
  default: "center"
539
546
  },
540
547
  stack: Boolean,
@@ -544,236 +551,236 @@ const st = {
544
551
  default: null
545
552
  },
546
553
  disable: Boolean
547
- }, ct = {
548
- ...st,
554
+ }, _t = {
555
+ ...xt,
549
556
  round: Boolean
550
557
  };
551
- function dt(e) {
552
- const t = ge(e, rt), a = Xe(e), { hasRouterLink: n, hasLink: i, linkTag: d, linkAttrs: c, navigateOnClick: l } = at({
558
+ function Et(e) {
559
+ const t = _e(e, gt), i = ct(e), { hasRouterLink: o, hasLink: n, linkTag: s, linkAttrs: u, navigateOnClick: a } = bt({
553
560
  fallbackTag: "button"
554
- }), q = u(() => {
561
+ }), x = c(() => {
555
562
  const f = e.fab === !1 && e.fabMini === !1 ? t.value : {};
556
563
  return e.padding !== void 0 ? Object.assign({}, f, {
557
- padding: e.padding.split(/\s+/).map(($) => $ in ce ? ce[$] + "px" : $).join(" "),
564
+ padding: e.padding.split(/\s+/).map((w) => w in pe ? pe[w] + "px" : w).join(" "),
558
565
  minWidth: "0",
559
566
  minHeight: "0"
560
567
  }) : f;
561
- }), h = u(
568
+ }), g = c(
562
569
  () => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
563
- ), s = u(
570
+ ), d = c(
564
571
  () => e.disable !== !0 && e.loading !== !0
565
- ), b = u(() => s.value === !0 ? e.tabindex || 0 : -1), o = u(() => ut(e, "standard")), y = u(() => {
566
- const f = { tabindex: b.value };
567
- return i.value === !0 ? Object.assign(f, c.value) : it.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, {
572
+ ), h = c(() => d.value === !0 ? e.tabindex || 0 : -1), l = c(() => wt(e, "standard")), y = c(() => {
573
+ const f = { tabindex: h.value };
574
+ return n.value === !0 ? Object.assign(f, u.value) : ht.includes(e.type) === !0 && (f.type = e.type), s.value === "a" ? (e.disable === !0 ? f["aria-disabled"] = "true" : f.href === void 0 && (f.role = "button"), o.value !== !0 && yt.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, {
568
575
  role: "progressbar",
569
576
  "aria-valuemin": 0,
570
577
  "aria-valuemax": 100,
571
578
  "aria-valuenow": e.percentage
572
579
  }), f;
573
- }), p = u(() => {
580
+ }), b = c(() => {
574
581
  let f;
575
582
  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}`);
576
- const $ = e.round === !0 ? "round" : `rectangle${h.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
577
- return `q-btn--${o.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(
579
- () => a.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
583
+ const w = e.round === !0 ? "round" : `rectangle${g.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
584
+ return `q-btn--${l.value} q-btn--${w}` + (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" : "");
585
+ }), k = c(
586
+ () => i.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
580
587
  );
581
588
  return {
582
- classes: p,
583
- style: q,
589
+ classes: b,
590
+ style: x,
584
591
  innerClasses: k,
585
592
  attributes: y,
586
- hasLink: i,
587
- linkTag: d,
588
- navigateOnClick: l,
589
- isActionable: s
593
+ hasLink: n,
594
+ linkTag: s,
595
+ navigateOnClick: a,
596
+ isActionable: d
590
597
  };
591
598
  }
592
- const { passiveCapture: _ } = F;
593
- let T = null, M = null, O = null;
594
- const ft = Z({
599
+ const { passiveCapture: E } = G;
600
+ let M = null, T = null, z = null;
601
+ const Ct = ie({
595
602
  name: "QBtn",
596
603
  props: {
597
- ...ct,
604
+ ..._t,
598
605
  percentage: Number,
599
606
  darkPercentage: Boolean,
600
607
  onTouchstart: [Function, Array]
601
608
  },
602
609
  emits: ["click", "keydown", "mousedown", "keyup"],
603
- setup(e, { slots: t, emit: a }) {
604
- const { proxy: n } = X(), {
605
- classes: i,
606
- style: d,
607
- innerClasses: c,
608
- attributes: l,
609
- hasLink: q,
610
- linkTag: h,
611
- navigateOnClick: s,
612
- isActionable: b
613
- } = dt(e), o = J(null), y = J(null);
614
- let p = null, k, f = null;
615
- const $ = u(
610
+ setup(e, { slots: t, emit: i }) {
611
+ const { proxy: o } = oe(), {
612
+ classes: n,
613
+ style: s,
614
+ innerClasses: u,
615
+ attributes: a,
616
+ hasLink: x,
617
+ linkTag: g,
618
+ navigateOnClick: d,
619
+ isActionable: h
620
+ } = Et(e), l = H(null), y = H(null);
621
+ let b = null, k, f = null;
622
+ const w = c(
616
623
  () => e.label !== void 0 && e.label !== null && e.label !== ""
617
- ), B = u(() => e.disable === !0 || e.ripple === !1 ? !1 : {
618
- keyCodes: q.value === !0 ? [13, 32] : [13],
624
+ ), B = c(() => e.disable === !0 || e.ripple === !1 ? !1 : {
625
+ keyCodes: x.value === !0 ? [13, 32] : [13],
619
626
  ...e.ripple === !0 ? {} : e.ripple
620
- }), C = u(() => ({ center: e.round })), w = u(() => {
627
+ }), L = c(() => ({ center: e.round })), P = c(() => {
621
628
  const r = Math.max(0, Math.min(100, e.percentage));
622
629
  return r > 0 ? { transition: "transform 0.6s", transform: `translateX(${r - 100}%)` } : {};
623
- }), g = u(() => {
630
+ }), m = c(() => {
624
631
  if (e.loading === !0)
625
632
  return {
626
- onMousedown: A,
627
- onTouchstart: A,
628
- onClick: A,
629
- onKeydown: A,
630
- onKeyup: A
633
+ onMousedown: I,
634
+ onTouchstart: I,
635
+ onClick: I,
636
+ onKeydown: I,
637
+ onKeyup: I
631
638
  };
632
- if (b.value === !0) {
639
+ if (h.value === !0) {
633
640
  const r = {
634
- onClick: L,
635
- onKeydown: R,
636
- onMousedown: D
641
+ onClick: C,
642
+ onKeydown: q,
643
+ onMousedown: A
637
644
  };
638
- if (n.$q.platform.has.touch === !0) {
639
- const m = e.onTouchstart !== void 0 ? "" : "Passive";
640
- r[`onTouchstart${m}`] = S;
645
+ if (o.$q.platform.has.touch === !0) {
646
+ const p = e.onTouchstart !== void 0 ? "" : "Passive";
647
+ r[`onTouchstart${p}`] = S;
641
648
  }
642
649
  return r;
643
650
  }
644
651
  return {
645
652
  // needed; especially for disabled <a> tags
646
- onClick: P
653
+ onClick: O
647
654
  };
648
- }), E = u(() => ({
649
- ref: o,
650
- class: "q-btn q-btn-item non-selectable no-outline " + i.value,
651
- style: d.value,
652
- ...l.value,
653
- ...g.value
655
+ }), _ = c(() => ({
656
+ ref: l,
657
+ class: "q-btn q-btn-item non-selectable no-outline " + n.value,
658
+ style: s.value,
659
+ ...a.value,
660
+ ...m.value
654
661
  }));
655
- function L(r) {
656
- if (o.value !== null) {
662
+ function C(r) {
663
+ if (l.value !== null) {
657
664
  if (r !== void 0) {
658
665
  if (r.defaultPrevented === !0)
659
666
  return;
660
- const m = document.activeElement;
661
- if (e.type === "submit" && m !== document.body && o.value.contains(m) === !1 && m.contains(o.value) === !1) {
662
- o.value.focus();
663
- const K = () => {
664
- document.removeEventListener("keydown", P, !0), document.removeEventListener("keyup", K, _), o.value !== null && o.value.removeEventListener("blur", K, _);
667
+ const p = document.activeElement;
668
+ if (e.type === "submit" && p !== document.body && l.value.contains(p) === !1 && p.contains(l.value) === !1) {
669
+ l.value.focus();
670
+ const F = () => {
671
+ document.removeEventListener("keydown", O, !0), document.removeEventListener("keyup", F, E), l.value !== null && l.value.removeEventListener("blur", F, E);
665
672
  };
666
- document.addEventListener("keydown", P, !0), document.addEventListener("keyup", K, _), o.value.addEventListener("blur", K, _);
673
+ document.addEventListener("keydown", O, !0), document.addEventListener("keyup", F, E), l.value.addEventListener("blur", F, E);
667
674
  }
668
675
  }
669
- s(r);
676
+ d(r);
670
677
  }
671
678
  }
672
- function R(r) {
673
- o.value !== null && (a("keydown", r), H(r, [13, 32]) === !0 && M !== o.value && (M !== null && z(), r.defaultPrevented !== !0 && (o.value.focus(), M = o.value, o.value.classList.add("q-btn--active"), document.addEventListener("keyup", x, !0), o.value.addEventListener("blur", x, _)), P(r)));
679
+ function q(r) {
680
+ l.value !== null && (i("keydown", r), te(r, [13, 32]) === !0 && T !== l.value && (T !== null && j(), r.defaultPrevented !== !0 && (l.value.focus(), T = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("keyup", $, !0), l.value.addEventListener("blur", $, E)), O(r)));
674
681
  }
675
682
  function S(r) {
676
- o.value !== null && (a("touchstart", r), r.defaultPrevented !== !0 && (T !== o.value && (T !== null && z(), T = o.value, p = r.target, p.addEventListener("touchcancel", x, _), p.addEventListener("touchend", x, _)), k = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
683
+ l.value !== null && (i("touchstart", r), r.defaultPrevented !== !0 && (M !== l.value && (M !== null && j(), M = l.value, b = r.target, b.addEventListener("touchcancel", $, E), b.addEventListener("touchend", $, E)), k = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
677
684
  f = null, k = !1;
678
685
  }, 200)));
679
686
  }
680
- function D(r) {
681
- o.value !== null && (r.qSkipRipple = k === !0, a("mousedown", r), r.defaultPrevented !== !0 && O !== o.value && (O !== null && z(), O = o.value, o.value.classList.add("q-btn--active"), document.addEventListener("mouseup", x, _)));
687
+ function A(r) {
688
+ l.value !== null && (r.qSkipRipple = k === !0, i("mousedown", r), r.defaultPrevented !== !0 && z !== l.value && (z !== null && j(), z = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("mouseup", $, E)));
682
689
  }
683
- function x(r) {
684
- if (o.value !== null && !(r !== void 0 && r.type === "blur" && document.activeElement === o.value)) {
690
+ function $(r) {
691
+ if (l.value !== null && !(r !== void 0 && r.type === "blur" && document.activeElement === l.value)) {
685
692
  if (r !== void 0 && r.type === "keyup") {
686
- if (M === o.value && H(r, [13, 32]) === !0) {
687
- const m = new MouseEvent("click", r);
688
- m.qKeyEvent = !0, r.defaultPrevented === !0 && Ve(m), r.cancelBubble === !0 && be(m), o.value.dispatchEvent(m), P(r), r.qKeyEvent = !0;
693
+ if (T === l.value && te(r, [13, 32]) === !0) {
694
+ const p = new MouseEvent("click", r);
695
+ p.qKeyEvent = !0, r.defaultPrevented === !0 && nt(p), r.cancelBubble === !0 && qe(p), l.value.dispatchEvent(p), O(r), r.qKeyEvent = !0;
689
696
  }
690
- a("keyup", r);
697
+ i("keyup", r);
691
698
  }
692
- z();
699
+ j();
693
700
  }
694
701
  }
695
- function z(r) {
696
- const m = y.value;
697
- r !== !0 && (T === o.value || O === o.value) && m !== null && m !== document.activeElement && (m.setAttribute("tabindex", -1), m.focus()), T === o.value && (p !== null && (p.removeEventListener("touchcancel", x, _), p.removeEventListener("touchend", x, _)), T = p = null), O === o.value && (document.removeEventListener("mouseup", x, _), O = null), M === o.value && (document.removeEventListener("keyup", x, !0), o.value !== null && o.value.removeEventListener("blur", x, _), M = null), o.value !== null && o.value.classList.remove("q-btn--active");
702
+ function j(r) {
703
+ const p = y.value;
704
+ r !== !0 && (M === l.value || z === l.value) && p !== null && p !== document.activeElement && (p.setAttribute("tabindex", -1), p.focus()), M === l.value && (b !== null && (b.removeEventListener("touchcancel", $, E), b.removeEventListener("touchend", $, E)), M = b = null), z === l.value && (document.removeEventListener("mouseup", $, E), z = null), T === l.value && (document.removeEventListener("keyup", $, !0), l.value !== null && l.value.removeEventListener("blur", $, E), T = null), l.value !== null && l.value.classList.remove("q-btn--active");
698
705
  }
699
- function A(r) {
700
- P(r), r.qSkipRipple = !0;
706
+ function I(r) {
707
+ O(r), r.qSkipRipple = !0;
701
708
  }
702
- return $e(() => {
703
- z(!0);
704
- }), Object.assign(n, {
709
+ return Be(() => {
710
+ j(!0);
711
+ }), Object.assign(o, {
705
712
  click: (r) => {
706
- b.value === !0 && L(r);
713
+ h.value === !0 && C(r);
707
714
  }
708
715
  }), () => {
709
716
  let r = [];
710
717
  e.icon !== void 0 && r.push(
711
- v(re, {
718
+ v(ue, {
712
719
  name: e.icon,
713
- left: e.stack !== !0 && $.value === !0,
720
+ left: e.stack !== !0 && w.value === !0,
714
721
  role: "img",
715
722
  "aria-hidden": "true"
716
723
  })
717
- ), $.value === !0 && r.push(
724
+ ), w.value === !0 && r.push(
718
725
  v("span", { class: "block" }, [e.label])
719
- ), r = I(t.default, r), e.iconRight !== void 0 && e.round === !1 && r.push(
720
- v(re, {
726
+ ), r = N(t.default, r), e.iconRight !== void 0 && e.round === !1 && r.push(
727
+ v(ue, {
721
728
  name: e.iconRight,
722
- right: e.stack !== !0 && $.value === !0,
729
+ right: e.stack !== !0 && w.value === !0,
723
730
  role: "img",
724
731
  "aria-hidden": "true"
725
732
  })
726
733
  );
727
- const m = [
734
+ const p = [
728
735
  v("span", {
729
736
  class: "q-focus-helper",
730
737
  ref: y
731
738
  })
732
739
  ];
733
- return e.loading === !0 && e.percentage !== void 0 && m.push(
740
+ return e.loading === !0 && e.percentage !== void 0 && p.push(
734
741
  v("span", {
735
742
  class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
736
743
  }, [
737
744
  v("span", {
738
745
  class: "q-btn__progress-indicator fit block",
739
- style: w.value
746
+ style: P.value
740
747
  })
741
748
  ])
742
- ), m.push(
749
+ ), p.push(
743
750
  v("span", {
744
- class: "q-btn__content text-center col items-center q-anchor--skip " + c.value
751
+ class: "q-btn__content text-center col items-center q-anchor--skip " + u.value
745
752
  }, r)
746
- ), e.loading !== null && m.push(
747
- v(qe, {
753
+ ), e.loading !== null && p.push(
754
+ v(Oe, {
748
755
  name: "q-transition--fade"
749
756
  }, () => e.loading === !0 ? [
750
757
  v("span", {
751
758
  key: "loading",
752
759
  class: "absolute-full flex flex-center"
753
- }, t.loading !== void 0 ? t.loading() : [v(De)])
760
+ }, t.loading !== void 0 ? t.loading() : [v(Je)])
754
761
  ] : null)
755
- ), Ee(
762
+ ), Me(
756
763
  v(
757
- h.value,
758
- E.value,
759
- m
764
+ g.value,
765
+ _.value,
766
+ p
760
767
  ),
761
768
  [[
762
- Ge,
769
+ lt,
763
770
  B.value,
764
771
  void 0,
765
- C.value
772
+ L.value
766
773
  ]]
767
774
  );
768
775
  };
769
776
  }
770
- }), vt = /* @__PURE__ */ W({
777
+ }), $t = /* @__PURE__ */ U({
771
778
  __name: "index",
772
779
  props: {
773
- size: { default: j.MD },
780
+ size: { default: D.MD },
774
781
  transparent: { type: Boolean },
775
782
  rounded: { type: Boolean },
776
- color: { default: Se.PRIMARY },
783
+ color: { default: we.PRIMARY },
777
784
  iconLeft: {},
778
785
  iconRight: {},
779
786
  iconMiddle: {},
@@ -787,65 +794,204 @@ const ft = Z({
787
794
  },
788
795
  emits: ["click"],
789
796
  setup(e) {
790
- const t = e, a = u(() => [
797
+ const t = e, i = c(() => [
791
798
  "app-btn",
792
799
  {
793
800
  "app-btn_default": !t.transparent,
794
801
  "app-btn_trans": t.transparent,
795
802
  "app-btn_rounded": t.rounded,
796
- "app-btn_sm": t.size === j.SM,
797
- "app-btn_md": t.size === j.MD,
798
- "app-btn_lg": t.size === j.LG,
803
+ "app-btn_sm": t.size === D.SM,
804
+ "app-btn_md": t.size === D.MD,
805
+ "app-btn_lg": t.size === D.LG,
799
806
  "app-btn_icon-left": t.iconLeft,
800
807
  "app-btn_icon-right": t.iconRight,
801
808
  "app-btn_icon-middle": t.iconMiddle
802
809
  },
803
810
  `app-btn_${t.color}`
804
811
  ]);
805
- return (n, i) => (N(), _e(Q(ft), {
812
+ return (o, n) => (K(), ye(V(Ct), {
806
813
  "no-caps": "",
807
814
  unelevated: "",
808
- class: V(a.value),
809
- padding: Q(fe)[t.size || Q(j).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))
815
+ class: Y(i.value),
816
+ padding: V(ke)[t.size || V(D).MD],
817
+ loading: o.loading,
818
+ disabled: o.disabled || void 0,
819
+ to: o.to,
820
+ href: o.href,
821
+ target: o.target,
822
+ type: o.submit ? "submit" : void 0,
823
+ "aria-label": o.ariaLabel,
824
+ onClick: n[0] || (n[0] = (s) => o.$emit("click", s))
818
825
  }, {
819
- default: Le(() => [
820
- n.iconLeft || n.iconMiddle ? (N(), Y("i", {
826
+ default: Te(() => [
827
+ o.iconLeft || o.iconMiddle ? (K(), J("i", {
821
828
  key: 0,
822
- class: V([
829
+ class: Y([
823
830
  "icon-kl",
824
- n.iconLeft ? "icon-kl_left" : "icon-kl_middle",
825
- `icon-kl-${n.iconLeft || n.iconMiddle}`,
826
- n.transparent ? `text-${n.color}` : "text-secondary"
831
+ o.iconLeft ? "icon-kl_left" : "icon-kl_middle",
832
+ `icon-kl-${o.iconLeft || o.iconMiddle}`,
833
+ o.transparent ? `text-${o.color}` : "text-secondary"
827
834
  ])
828
- }, null, 2)) : ee("", !0),
829
- xe(n.$slots, "default", {}, void 0, !0),
830
- n.iconRight ? (N(), Y("i", {
835
+ }, null, 2)) : re("", !0),
836
+ ze(o.$slots, "default", {}, void 0, !0),
837
+ o.iconRight ? (K(), J("i", {
831
838
  key: 1,
832
- class: V([
839
+ class: Y([
833
840
  "icon-kl",
834
841
  "icon-kl_right",
835
- `icon-kl-${n.iconRight}`,
836
- n.transparent ? `text-${n.color}` : "text-secondary"
842
+ `icon-kl-${o.iconRight}`,
843
+ o.transparent ? `text-${o.color}` : "text-secondary"
837
844
  ])
838
- }, null, 2)) : ee("", !0)
845
+ }, null, 2)) : re("", !0)
839
846
  ]),
840
847
  _: 3
841
848
  }, 8, ["class", "padding", "loading", "disabled", "to", "href", "target", "type", "aria-label"]));
842
849
  }
843
- }), ke = (e, t) => {
844
- const a = e.__vccOpts || e;
845
- for (const [n, i] of t)
846
- a[n] = i;
847
- return a;
848
- }, pt = /* @__PURE__ */ ke(vt, [["__scopeId", "data-v-4c2b51f2"]]), gt = /* @__PURE__ */ W({
850
+ }), Le = (e, t) => {
851
+ const i = e.__vccOpts || e;
852
+ for (const [o, n] of t)
853
+ i[o] = n;
854
+ return i;
855
+ }, qt = /* @__PURE__ */ Le($t, [["__scopeId", "data-v-5b3b0602"]]), W = H(
856
+ !1
857
+ );
858
+ let ne;
859
+ function St(e, t) {
860
+ const i = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(e) || /(opr)[\/]([\w.]+)/.exec(e) || /(vivaldi)[\/]([\w.]+)/.exec(e) || /(chrome|crios)[\/]([\w.]+)/.exec(e) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(firefox|fxios)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(e) || [];
861
+ return {
862
+ browser: i[5] || i[3] || i[1] || "",
863
+ version: i[4] || i[2] || "0",
864
+ platform: t[0] || ""
865
+ };
866
+ }
867
+ function Lt(e) {
868
+ return /(ipad)/.exec(e) || /(ipod)/.exec(e) || /(windows phone)/.exec(e) || /(iphone)/.exec(e) || /(kindle)/.exec(e) || /(silk)/.exec(e) || /(android)/.exec(e) || /(win)/.exec(e) || /(mac)/.exec(e) || /(linux)/.exec(e) || /(cros)/.exec(e) || /(playbook)/.exec(e) || /(bb)/.exec(e) || /(blackberry)/.exec(e) || [];
869
+ }
870
+ const Pe = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
871
+ function Pt(e) {
872
+ const t = e.toLowerCase(), i = Lt(t), o = St(t, i), n = {};
873
+ o.browser && (n[o.browser] = !0, n.version = o.version, n.versionNumber = parseInt(o.version, 10)), o.platform && (n[o.platform] = !0);
874
+ const s = n.android || n.ios || n.bb || n.blackberry || n.ipad || n.iphone || n.ipod || n.kindle || n.playbook || n.silk || n["windows phone"];
875
+ if (s === !0 || t.indexOf("mobile") !== -1 ? n.mobile = !0 : n.desktop = !0, n["windows phone"] && (n.winphone = !0, delete n["windows phone"]), n.edga || n.edgios || n.edg ? (n.edge = !0, o.browser = "edge") : n.crios ? (n.chrome = !0, o.browser = "chrome") : n.fxios && (n.firefox = !0, o.browser = "firefox"), (n.ipod || n.ipad || n.iphone) && (n.ios = !0), n.vivaldi && (o.browser = "vivaldi", n.vivaldi = !0), // Chrome, Opera 15+, Vivaldi and Safari are webkit based browsers
876
+ (n.chrome || n.opr || n.safari || n.vivaldi || n.mobile === !0 && n.ios !== !0 && s !== !0) && (n.webkit = !0), n.opr && (o.browser = "opera", n.opera = !0), n.safari && (n.blackberry || n.bb ? (o.browser = "blackberry", n.blackberry = !0) : n.playbook ? (o.browser = "playbook", n.playbook = !0) : n.android ? (o.browser = "android", n.android = !0) : n.kindle ? (o.browser = "kindle", n.kindle = !0) : n.silk && (o.browser = "silk", n.silk = !0)), n.name = o.browser, n.platform = o.platform, t.indexOf("electron") !== -1)
877
+ n.electron = !0;
878
+ else if (document.location.href.indexOf("-extension://") !== -1)
879
+ n.bex = !0;
880
+ else {
881
+ if (window.Capacitor !== void 0 ? (n.capacitor = !0, n.nativeMobile = !0, n.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (n.cordova = !0, n.nativeMobile = !0, n.nativeMobileWrapper = "cordova"), W.value === !0 && (ne = { is: { ...n } }), Pe === !0 && n.mac === !0 && (n.desktop === !0 && n.safari === !0 || n.nativeMobile === !0 && n.android !== !0 && n.ios !== !0 && n.ipad !== !0)) {
882
+ delete n.mac, delete n.desktop;
883
+ const u = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
884
+ Object.assign(n, {
885
+ mobile: !0,
886
+ ios: !0,
887
+ platform: u,
888
+ [u]: !0
889
+ });
890
+ }
891
+ n.mobile !== !0 && window.navigator.userAgentData && window.navigator.userAgentData.mobile && (delete n.desktop, n.mobile = !0);
892
+ }
893
+ return n;
894
+ }
895
+ const be = navigator.userAgent || navigator.vendor || window.opera, Rt = {
896
+ has: {
897
+ touch: !1,
898
+ webStorage: !1
899
+ },
900
+ within: { iframe: !1 }
901
+ }, Q = {
902
+ userAgent: be,
903
+ is: Pt(be),
904
+ has: {
905
+ touch: Pe
906
+ },
907
+ within: {
908
+ iframe: window.self !== window.top
909
+ }
910
+ }, ge = {
911
+ install(e) {
912
+ const { $q: t } = e;
913
+ W.value === !0 ? (e.onSSRHydrated.push(() => {
914
+ Object.assign(t.platform, Q), W.value = !1;
915
+ }), t.platform = je(this)) : t.platform = this;
916
+ }
917
+ };
918
+ {
919
+ let e;
920
+ Ke(Q.has, "webStorage", () => {
921
+ if (e !== void 0)
922
+ return e;
923
+ try {
924
+ if (window.localStorage)
925
+ return e = !0, !0;
926
+ } catch {
927
+ }
928
+ return e = !1, !1;
929
+ }), Object.assign(ge, Q), W.value === !0 && (Object.assign(ge, ne, Rt), ne = null);
930
+ }
931
+ const R = [];
932
+ function Re(e) {
933
+ R[R.length - 1](e);
934
+ }
935
+ function Bt(e) {
936
+ Q.is.desktop === !0 && (R.push(e), R.length === 1 && document.body.addEventListener("focusin", Re));
937
+ }
938
+ function Ot(e) {
939
+ const t = R.indexOf(e);
940
+ t !== -1 && (R.splice(t, 1), R.length === 0 && document.body.removeEventListener("focusin", Re));
941
+ }
942
+ function Mt(e) {
943
+ const t = document.createElement("textarea");
944
+ t.value = e, t.contentEditable = "true", t.style.position = "fixed";
945
+ const i = () => {
946
+ };
947
+ Bt(i), document.body.appendChild(t), t.focus(), t.select();
948
+ const o = document.execCommand("copy");
949
+ return t.remove(), Ot(i), o;
950
+ }
951
+ function Tt(e) {
952
+ return navigator.clipboard !== void 0 ? navigator.clipboard.writeText(e) : new Promise((t, i) => {
953
+ const o = Mt(e);
954
+ o ? t(!0) : i(o);
955
+ });
956
+ }
957
+ const Z = {
958
+ COPY: "copy_o",
959
+ COPIED: "copied_o"
960
+ }, It = /* @__PURE__ */ U({
961
+ __name: "index",
962
+ props: {
963
+ text: {},
964
+ size: {},
965
+ transparent: { type: Boolean, default: !0 },
966
+ rounded: { type: Boolean },
967
+ color: { default: we.INFO },
968
+ iconLeft: {},
969
+ iconRight: {},
970
+ iconMiddle: {},
971
+ disabled: { type: Boolean },
972
+ loading: { type: [Boolean, null] },
973
+ to: {},
974
+ href: {},
975
+ target: {},
976
+ submit: { type: Boolean },
977
+ ariaLabel: {}
978
+ },
979
+ setup(e) {
980
+ const t = e, i = H(Z.COPY), o = () => {
981
+ i.value = Z.COPIED, setTimeout(() => {
982
+ i.value = Z.COPY;
983
+ }, 2e3);
984
+ }, n = () => {
985
+ Tt(t.text).then(o).catch((s) => {
986
+ console.log(s);
987
+ });
988
+ };
989
+ return (s, u) => (K(), ye(V(qt), Ie(t, {
990
+ "icon-middle": i.value,
991
+ onClick: De(n, ["prevent"])
992
+ }), null, 16, ["icon-middle"]));
993
+ }
994
+ }), zt = /* @__PURE__ */ U({
849
995
  __name: "index",
850
996
  props: {
851
997
  name: {},
@@ -853,13 +999,14 @@ const ft = Z({
853
999
  color: {}
854
1000
  },
855
1001
  setup(e) {
856
- return (t, a) => (N(), Y("i", {
857
- class: V(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
858
- style: Re(t.size ? `font-size: ${t.size}` : void 0)
1002
+ return (t, i) => (K(), J("i", {
1003
+ class: Y(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
1004
+ style: Ne(t.size ? `font-size: ${t.size}` : void 0)
859
1005
  }, null, 6));
860
1006
  }
861
- }), ht = /* @__PURE__ */ ke(gt, [["__scopeId", "data-v-73419357"]]);
1007
+ }), Dt = /* @__PURE__ */ Le(zt, [["__scopeId", "data-v-73419357"]]);
862
1008
  export {
863
- pt as AppButton,
864
- ht as AppIcon
1009
+ qt as AppButton,
1010
+ Dt as AppIcon,
1011
+ It as CopyButton
865
1012
  };