@validol4ik/uikit 0.4.2 → 0.4.4

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,4 +1,4 @@
1
- import { computed as u, markRaw as pe, defineComponent as U, h as v, withDirectives as me, getCurrentInstance as ee, unref as G, ref as oe, onBeforeUnmount as Be, Transition as Re, openBlock as B, createBlock as we, normalizeClass as M, withCtx as Pe, createElementBlock as w, createCommentVNode as x, renderSlot as be, Fragment as Me, createTextVNode as Ae, toDisplayString as X, createElementVNode as H, normalizeStyle as Te, defineAsyncComponent as te } from "vue";
1
+ import { computed as u, markRaw as pe, defineComponent as U, h as v, withDirectives as me, getCurrentInstance as ee, unref as G, ref as oe, onBeforeUnmount as Be, Transition as we, openBlock as B, createBlock as Re, normalizeClass as M, withCtx as Pe, createElementBlock as R, createCommentVNode as x, renderSlot as be, Fragment as Me, createTextVNode as Ae, toDisplayString as X, createElementVNode as H, normalizeStyle as Te, defineAsyncComponent as te } from "vue";
2
2
  const he = {
3
3
  PRIMARY: "primary",
4
4
  INFO: "info"
@@ -45,12 +45,12 @@ function N(e, t) {
45
45
  function Bt(e, t) {
46
46
  return e === void 0 ? t : t !== void 0 ? t.concat(e()) : e();
47
47
  }
48
- function Rt(e, t, a, n, o, c) {
48
+ function wt(e, t, a, n, o, c) {
49
49
  t.key = n + o;
50
50
  const l = v(e, t, a);
51
51
  return o === !0 ? me(l, c()) : l;
52
52
  }
53
- const le = "0 0 24 24", ie = (e) => e, W = (e) => `ionicons ${e}`, _e = {
53
+ const le = "0 0 24 24", ie = (e) => e, W = (e) => `ionicons ${e}`, $e = {
54
54
  "mdi-": (e) => `mdi ${e}`,
55
55
  "icon-": ie,
56
56
  // fontawesome equiv
@@ -62,7 +62,7 @@ const le = "0 0 24 24", ie = (e) => e, W = (e) => `ionicons ${e}`, _e = {
62
62
  "iconfont ": ie,
63
63
  "ti-": (e) => `themify-icon ${e}`,
64
64
  "bi-": (e) => `bootstrap-icons ${e}`
65
- }, $e = {
65
+ }, _e = {
66
66
  o_: "-outlined",
67
67
  r_: "-round",
68
68
  s_: "-sharp"
@@ -70,7 +70,7 @@ const le = "0 0 24 24", ie = (e) => e, W = (e) => `ionicons ${e}`, _e = {
70
70
  sym_o_: "-outlined",
71
71
  sym_r_: "-rounded",
72
72
  sym_s_: "-sharp"
73
- }, je = new RegExp("^(" + Object.keys(_e).join("|") + ")"), De = new RegExp("^(" + Object.keys($e).join("|") + ")"), re = new RegExp("^(" + Object.keys(qe).join("|") + ")"), Ie = /^[Mm]\s?[-+]?\.?\d/, Ve = /^img:/, Ke = /^svguse:/, Ne = /^ion-/, Fe = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, se = ne({
73
+ }, je = new RegExp("^(" + Object.keys($e).join("|") + ")"), De = new RegExp("^(" + Object.keys(_e).join("|") + ")"), re = new RegExp("^(" + Object.keys(qe).join("|") + ")"), Ie = /^[Mm]\s?[-+]?\.?\d/, Ve = /^img:/, Ke = /^svguse:/, Ne = /^ion-/, Fe = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, se = ne({
74
74
  name: "QIcon",
75
75
  props: {
76
76
  ...ye,
@@ -126,10 +126,10 @@ const le = "0 0 24 24", ie = (e) => e, W = (e) => `ionicons ${e}`, _e = {
126
126
  viewBox: h
127
127
  };
128
128
  }
129
- let $ = " ";
129
+ let _ = " ";
130
130
  const b = i.match(je);
131
131
  if (b !== null)
132
- l = _e[b[1]](i);
132
+ l = $e[b[1]](i);
133
133
  else if (Fe.test(i) === !0)
134
134
  l = i;
135
135
  else if (Ne.test(i) === !0)
@@ -137,15 +137,15 @@ const le = "0 0 24 24", ie = (e) => e, W = (e) => `ionicons ${e}`, _e = {
137
137
  else if (re.test(i) === !0) {
138
138
  l = "notranslate material-symbols";
139
139
  const d = i.match(re);
140
- d !== null && (i = i.substring(6), l += qe[d[1]]), $ = i;
140
+ d !== null && (i = i.substring(6), l += qe[d[1]]), _ = i;
141
141
  } else {
142
142
  l = "notranslate material-icons";
143
143
  const d = i.match(De);
144
- d !== null && (i = i.substring(2), l += $e[d[1]]), $ = i;
144
+ d !== null && (i = i.substring(2), l += _e[d[1]]), _ = i;
145
145
  }
146
146
  return {
147
147
  cls: l,
148
- content: $
148
+ content: _
149
149
  };
150
150
  });
151
151
  return () => {
@@ -222,7 +222,7 @@ function Ue(e, t) {
222
222
  for (const n in t)
223
223
  a[n] = t[n];
224
224
  }
225
- function wt(e) {
225
+ function Rt(e) {
226
226
  if (e == null)
227
227
  return;
228
228
  if (typeof e == "string")
@@ -324,7 +324,7 @@ function ue(e, t, a, n) {
324
324
  const o = a.modifiers.color;
325
325
  let c = a.modifiers.center;
326
326
  c = c === !0 || n === !0;
327
- const l = document.createElement("span"), i = document.createElement("span"), $ = Ye(e), { left: b, top: d, width: h, height: s } = t.getBoundingClientRect(), y = Math.sqrt(h * h + s * s), m = y / 2, k = `${(h - y) / 2}px`, f = c ? k : `${$.left - b - m}px`, _ = `${(s - y) / 2}px`, O = c ? _ : `${$.top - d - m}px`;
327
+ const l = document.createElement("span"), i = document.createElement("span"), _ = Ye(e), { left: b, top: d, width: h, height: s } = t.getBoundingClientRect(), y = Math.sqrt(h * h + s * s), m = y / 2, k = `${(h - y) / 2}px`, f = c ? k : `${_.left - b - m}px`, $ = `${(s - y) / 2}px`, O = c ? $ : `${_.top - d - m}px`;
328
328
  i.className = "q-ripple__inner", Ue(i, {
329
329
  height: `${y}px`,
330
330
  width: `${y}px`,
@@ -336,7 +336,7 @@ function ue(e, t, a, n) {
336
336
  };
337
337
  a.abort.push(A);
338
338
  let T = setTimeout(() => {
339
- i.classList.add("q-ripple__inner--enter"), i.style.transform = `translate3d(${k},${_},0) scale3d(1,1,1)`, i.style.opacity = 0.2, T = setTimeout(() => {
339
+ i.classList.add("q-ripple__inner--enter"), i.style.transform = `translate3d(${k},${$},0) scale3d(1,1,1)`, i.style.opacity = 0.2, T = setTimeout(() => {
340
340
  i.classList.remove("q-ripple__inner--enter"), i.classList.add("q-ripple__inner--leave"), i.style.opacity = 0, T = setTimeout(() => {
341
341
  l.remove(), a.abort.splice(a.abort.indexOf(A), 1);
342
342
  }, 275);
@@ -482,11 +482,11 @@ const Le = {
482
482
  }
483
483
  };
484
484
  function ut({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
485
- const a = ee(), { props: n, proxy: o, emit: c } = a, l = lt(a), i = u(() => n.disable !== !0 && n.href !== void 0), $ = t === !0 ? u(
485
+ const a = ee(), { props: n, proxy: o, emit: c } = a, l = lt(a), i = u(() => n.disable !== !0 && n.href !== void 0), _ = t === !0 ? u(
486
486
  () => l === !0 && n.disable !== !0 && i.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
487
487
  ) : u(
488
488
  () => l === !0 && i.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
489
- ), b = u(() => $.value === !0 ? O(n.to) : null), d = u(() => b.value !== null), h = u(() => i.value === !0 || d.value === !0), s = u(() => n.type === "a" || h.value === !0 ? "a" : n.tag || e || "div"), y = u(() => i.value === !0 ? {
489
+ ), b = u(() => _.value === !0 ? O(n.to) : null), d = u(() => b.value !== null), h = u(() => i.value === !0 || d.value === !0), s = u(() => n.type === "a" || h.value === !0 ? "a" : n.tag || e || "div"), y = u(() => i.value === !0 ? {
490
490
  href: n.href,
491
491
  target: n.target
492
492
  } : d.value === !0 ? {
@@ -498,10 +498,10 @@ function ut({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
498
498
  const { matched: g } = b.value, { length: q } = g, L = g[q - 1];
499
499
  if (L === void 0)
500
500
  return -1;
501
- const R = o.$route.matched;
502
- if (R.length === 0)
501
+ const w = o.$route.matched;
502
+ if (w.length === 0)
503
503
  return -1;
504
- const P = R.findIndex(
504
+ const P = w.findIndex(
505
505
  fe.bind(null, L)
506
506
  );
507
507
  if (P !== -1)
@@ -509,7 +509,7 @@ function ut({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
509
509
  const F = de(g[q - 2]);
510
510
  return (
511
511
  // we are dealing with nested routes
512
- q > 1 && de(L) === F && R[R.length - 1].path !== F ? R.findIndex(
512
+ q > 1 && de(L) === F && w[w.length - 1].path !== F ? w.findIndex(
513
513
  fe.bind(null, g[q - 2])
514
514
  ) : P
515
515
  );
@@ -517,7 +517,7 @@ function ut({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
517
517
  () => d.value === !0 && m.value !== -1 && it(o.$route.params, b.value.params)
518
518
  ), f = u(
519
519
  () => k.value === !0 && m.value === o.$route.matched.length - 1 && st(o.$route.params, b.value.params)
520
- ), _ = u(() => d.value === !0 ? f.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : k.value === !0 ? ` ${n.activeClass}` : "" : "");
520
+ ), $ = u(() => d.value === !0 ? f.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : k.value === !0 ? ` ${n.activeClass}` : "" : "");
521
521
  function O(g) {
522
522
  try {
523
523
  return o.$router.resolve(g);
@@ -525,7 +525,7 @@ function ut({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
525
525
  }
526
526
  return null;
527
527
  }
528
- function A(g, { returnRouterError: q, to: L = n.to, replace: R = n.replace } = {}) {
528
+ function A(g, { returnRouterError: q, to: L = n.to, replace: w = n.replace } = {}) {
529
529
  if (n.disable === !0)
530
530
  return g.preventDefault(), Promise.resolve(!1);
531
531
  if (
@@ -535,7 +535,7 @@ function ut({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
535
535
  )
536
536
  return Promise.resolve(!1);
537
537
  g.preventDefault();
538
- const P = o.$router[R === !0 ? "replace" : "push"](L);
538
+ const P = o.$router[w === !0 ? "replace" : "push"](L);
539
539
  return q === !0 ? P : P.then(() => {
540
540
  }).catch(() => {
541
541
  });
@@ -555,7 +555,7 @@ function ut({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
555
555
  resolvedLink: b,
556
556
  linkIsActive: k,
557
557
  linkIsExactActive: f,
558
- linkClass: _,
558
+ linkClass: $,
559
559
  linkAttrs: y,
560
560
  getLink: O,
561
561
  navigateToRouterLink: A,
@@ -632,10 +632,10 @@ const gt = {
632
632
  function mt(e) {
633
633
  const t = ke(e, ct), a = ot(e), { hasRouterLink: n, hasLink: o, linkTag: c, linkAttrs: l, navigateOnClick: i } = ut({
634
634
  fallbackTag: "button"
635
- }), $ = u(() => {
635
+ }), _ = u(() => {
636
636
  const f = e.fab === !1 && e.fabMini === !1 ? t.value : {};
637
637
  return e.padding !== void 0 ? Object.assign({}, f, {
638
- padding: e.padding.split(/\s+/).map((_) => _ in ge ? ge[_] + "px" : _).join(" "),
638
+ padding: e.padding.split(/\s+/).map(($) => $ in ge ? ge[$] + "px" : $).join(" "),
639
639
  minWidth: "0",
640
640
  minHeight: "0"
641
641
  }) : f;
@@ -654,14 +654,14 @@ function mt(e) {
654
654
  }), m = u(() => {
655
655
  let f;
656
656
  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}`);
657
- const _ = e.round === !0 ? "round" : `rectangle${b.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
658
- return `q-btn--${s.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" : "");
657
+ const $ = e.round === !0 ? "round" : `rectangle${b.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
658
+ return `q-btn--${s.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" : "");
659
659
  }), k = u(
660
660
  () => a.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
661
661
  );
662
662
  return {
663
663
  classes: m,
664
- style: $,
664
+ style: _,
665
665
  innerClasses: k,
666
666
  attributes: y,
667
667
  hasLink: o,
@@ -687,16 +687,16 @@ const bt = ne({
687
687
  style: c,
688
688
  innerClasses: l,
689
689
  attributes: i,
690
- hasLink: $,
690
+ hasLink: _,
691
691
  linkTag: b,
692
692
  navigateOnClick: d,
693
693
  isActionable: h
694
694
  } = mt(e), s = oe(null), y = oe(null);
695
695
  let m = null, k, f = null;
696
- const _ = u(
696
+ const $ = u(
697
697
  () => e.label !== void 0 && e.label !== null && e.label !== ""
698
698
  ), O = u(() => e.disable === !0 || e.ripple === !1 ? !1 : {
699
- keyCodes: $.value === !0 ? [13, 32] : [13],
699
+ keyCodes: _.value === !0 ? [13, 32] : [13],
700
700
  ...e.ripple === !0 ? {} : e.ripple
701
701
  }), A = u(() => ({ center: e.round })), T = u(() => {
702
702
  const r = Math.max(0, Math.min(100, e.percentage));
@@ -713,7 +713,7 @@ const bt = ne({
713
713
  if (h.value === !0) {
714
714
  const r = {
715
715
  onClick: L,
716
- onKeydown: R,
716
+ onKeydown: w,
717
717
  onMousedown: F
718
718
  };
719
719
  if (n.$q.platform.has.touch === !0) {
@@ -750,7 +750,7 @@ const bt = ne({
750
750
  d(r);
751
751
  }
752
752
  }
753
- function R(r) {
753
+ function w(r) {
754
754
  s.value !== null && (a("keydown", r), Z(r, [13, 32]) === !0 && D !== s.value && (D !== null && V(), r.defaultPrevented !== !0 && (s.value.focus(), D = s.value, s.value.classList.add("q-btn--active"), document.addEventListener("keyup", C, !0), s.value.addEventListener("blur", C, E)), z(r)));
755
755
  }
756
756
  function P(r) {
@@ -791,15 +791,15 @@ const bt = ne({
791
791
  e.icon !== void 0 && r.push(
792
792
  v(se, {
793
793
  name: e.icon,
794
- left: e.stack !== !0 && _.value === !0,
794
+ left: e.stack !== !0 && $.value === !0,
795
795
  role: "img"
796
796
  })
797
- ), _.value === !0 && r.push(
797
+ ), $.value === !0 && r.push(
798
798
  v("span", { class: "block" }, [e.label])
799
799
  ), r = N(t.default, r), e.iconRight !== void 0 && e.round === !1 && r.push(
800
800
  v(se, {
801
801
  name: e.iconRight,
802
- right: e.stack !== !0 && _.value === !0,
802
+ right: e.stack !== !0 && $.value === !0,
803
803
  role: "img"
804
804
  })
805
805
  );
@@ -823,7 +823,7 @@ const bt = ne({
823
823
  class: "q-btn__content text-center col items-center q-anchor--skip " + l.value
824
824
  }, r)
825
825
  ), e.loading !== null && p.push(
826
- v(Re, {
826
+ v(we, {
827
827
  name: "q-transition--fade"
828
828
  }, () => e.loading === !0 ? [
829
829
  v("span", {
@@ -864,7 +864,8 @@ const bt = ne({
864
864
  target: {},
865
865
  submit: { type: Boolean },
866
866
  ariaLabel: {},
867
- label: {}
867
+ label: {},
868
+ download: {}
868
869
  },
869
870
  emits: ["click"],
870
871
  setup(e) {
@@ -884,7 +885,7 @@ const bt = ne({
884
885
  },
885
886
  `app-btn_${t.color}`
886
887
  ]);
887
- return (n, o) => (B(), we(G(bt), {
888
+ return (n, o) => (B(), Re(G(bt), {
888
889
  "no-caps": "",
889
890
  unelevated: "",
890
891
  class: M(a.value),
@@ -896,10 +897,11 @@ const bt = ne({
896
897
  target: n.target,
897
898
  type: n.submit ? "submit" : void 0,
898
899
  "aria-label": n.ariaLabel,
900
+ download: n.download,
899
901
  onClick: o[0] || (o[0] = (c) => n.$emit("click", c))
900
902
  }, {
901
903
  default: Pe(() => [
902
- n.iconLeft || n.iconMiddle ? (B(), w("i", {
904
+ n.iconLeft || n.iconMiddle ? (B(), R("i", {
903
905
  key: 0,
904
906
  class: M([
905
907
  "icon-kl",
@@ -909,10 +911,10 @@ const bt = ne({
909
911
  ])
910
912
  }, null, 2)) : x("", !0),
911
913
  be(n.$slots, "default", {}, void 0, !0),
912
- n.label ? (B(), w(Me, { key: 1 }, [
914
+ n.label ? (B(), R(Me, { key: 1 }, [
913
915
  Ae(X(n.label), 1)
914
916
  ], 64)) : x("", !0),
915
- n.iconRight ? (B(), w("i", {
917
+ n.iconRight ? (B(), R("i", {
916
918
  key: 2,
917
919
  class: M([
918
920
  "icon-kl",
@@ -923,17 +925,17 @@ const bt = ne({
923
925
  }, null, 2)) : x("", !0)
924
926
  ]),
925
927
  _: 3
926
- }, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label"]));
928
+ }, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label", "download"]));
927
929
  }
928
930
  }), ae = (e, t) => {
929
931
  const a = e.__vccOpts || e;
930
932
  for (const [n, o] of t)
931
933
  a[n] = o;
932
934
  return a;
933
- }, jt = /* @__PURE__ */ ae(ht, [["__scopeId", "data-v-0aee6cab"]]), yt = {
935
+ }, jt = /* @__PURE__ */ ae(ht, [["__scopeId", "data-v-99788ad1"]]), yt = {
934
936
  key: 0,
935
937
  class: "app-toggle__label app-toggle__label_left"
936
- }, kt = { class: "app-toggle__container" }, _t = ["checked", "disabled"], $t = { class: "app-toggle__thumb" }, qt = {
938
+ }, kt = { class: "app-toggle__container" }, $t = ["checked", "disabled"], _t = { class: "app-toggle__thumb" }, qt = {
937
939
  key: 1,
938
940
  class: "app-toggle__label"
939
941
  }, Et = /* @__PURE__ */ U({
@@ -967,27 +969,27 @@ const bt = ne({
967
969
  },
968
970
  `app-toggle_${a.color}`
969
971
  ]);
970
- return (l, i) => (B(), w("div", {
972
+ return (l, i) => (B(), R("div", {
971
973
  class: M(c.value)
972
974
  }, [
973
- l.label && l.labelLeft ? (B(), w("span", yt, X(l.label), 1)) : x("", !0),
975
+ l.label && l.labelLeft ? (B(), R("span", yt, X(l.label), 1)) : x("", !0),
974
976
  H("label", kt, [
975
977
  H("input", {
976
978
  type: "checkbox",
977
979
  checked: o.value,
978
- onChange: i[0] || (i[0] = ($) => o.value = !o.value),
980
+ onChange: i[0] || (i[0] = (_) => o.value = !o.value),
979
981
  disabled: l.disabled,
980
982
  class: "app-toggle__input"
981
- }, null, 40, _t),
983
+ }, null, 40, $t),
982
984
  H("span", {
983
985
  class: M(["app-toggle__slider", o.value ? `bg-${l.color}` : ""])
984
986
  }, [
985
- H("span", $t, [
986
- l.icon && !l.modelValue ? (B(), w("i", {
987
+ H("span", _t, [
988
+ l.icon && !l.modelValue ? (B(), R("i", {
987
989
  key: 0,
988
990
  class: M(["icon-kl", `icon-kl-${l.icon}`, "app-toggle__icon"])
989
991
  }, null, 2)) : x("", !0),
990
- l.modelValue && (l.iconActive || l.icon) ? (B(), w("i", {
992
+ l.modelValue && (l.iconActive || l.icon) ? (B(), R("i", {
991
993
  key: 1,
992
994
  class: M([
993
995
  "icon-kl",
@@ -1000,7 +1002,7 @@ const bt = ne({
1000
1002
  ], 2),
1001
1003
  be(l.$slots, "default", {}, void 0, !0)
1002
1004
  ]),
1003
- l.label && !l.labelLeft ? (B(), w("span", qt, X(l.label), 1)) : x("", !0)
1005
+ l.label && !l.labelLeft ? (B(), R("span", qt, X(l.label), 1)) : x("", !0)
1004
1006
  ], 2));
1005
1007
  }
1006
1008
  }), Dt = /* @__PURE__ */ ae(Et, [["__scopeId", "data-v-e0e56123"]]), St = /* @__PURE__ */ U({
@@ -1011,24 +1013,24 @@ const bt = ne({
1011
1013
  color: {}
1012
1014
  },
1013
1015
  setup(e) {
1014
- return (t, a) => (B(), w("i", {
1016
+ return (t, a) => (B(), R("i", {
1015
1017
  class: M(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
1016
1018
  style: Te(t.size ? `font-size: ${t.size}` : void 0)
1017
1019
  }, null, 6));
1018
1020
  }
1019
1021
  }), It = /* @__PURE__ */ ae(St, [["__scopeId", "data-v-941765ee"]]), Vt = te(
1020
- () => import("./AppButtonCopy-DW1Fq5Jm.js")
1022
+ () => import("./AppButtonCopy-DLG5-xX-.js")
1021
1023
  ), Kt = te(
1022
- () => import("./AppSelect-mVnDo7ho.js")
1024
+ () => import("./AppSelect-CkhPRy0H.js")
1023
1025
  ), Nt = te(
1024
- () => import("./DropdownButton-Cs841-SS.js")
1026
+ () => import("./DropdownButton--jD1fS4K.js")
1025
1027
  );
1026
1028
  export {
1027
1029
  jt as A,
1028
1030
  Tt as B,
1029
1031
  he as C,
1030
1032
  xt as D,
1031
- wt as E,
1033
+ Rt as E,
1032
1034
  Ue as F,
1033
1035
  Ye as G,
1034
1036
  It as H,
@@ -1049,7 +1051,7 @@ export {
1049
1051
  Ge as g,
1050
1052
  ze as h,
1051
1053
  Z as i,
1052
- Rt as j,
1054
+ wt as j,
1053
1055
  Bt as k,
1054
1056
  Y as l,
1055
1057
  At as m,
@@ -1 +1 @@
1
- "use strict";const n=require("vue"),Y={PRIMARY:"primary",INFO:"info"},B={SM:"sm",MD:"md",LG:"lg"},$e={[B.SM]:"3px 9px",[B.MD]:"5px 12px",[B.LG]:"9px 20px"},H={xs:18,sm:24,md:32,lg:38,xl:46},G={size:String};function W(e,t=H){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function K(e){return n.markRaw(n.defineComponent(e))}function qe(e){return n.markRaw(e)}function ie(e,t){return e!==void 0&&e()||t}function Le(e,t){if(e!==void 0){const a=e();if(a!=null)return a.slice()}return t}function O(e,t){return e!==void 0?t.concat(e()):t}function Re(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function Pe(e,t,a,o,l,c){t.key=o+l;const r=n.h(e,t,a);return l===!0?n.withDirectives(r,c()):r}const Z="0 0 24 24",J=e=>e,Q=e=>`ionicons ${e}`,ue={"mdi-":e=>`mdi ${e}`,"icon-":J,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Q,"ion-ios":Q,"ion-logo":Q,"iconfont ":J,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},se={o_:"-outlined",r_:"-round",s_:"-sharp"},ce={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},we=new RegExp("^("+Object.keys(ue).join("|")+")"),Ae=new RegExp("^("+Object.keys(se).join("|")+")"),ee=new RegExp("^("+Object.keys(ce).join("|")+")"),Me=/^[Mm]\s?[-+]?\.?\d/,ze=/^img:/,Te=/^svguse:/,Oe=/^ion-/,xe=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,U=K({name:"QIcon",props:{...G,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:a}}=n.getCurrentInstance(),o=W(e),l=n.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),c=n.computed(()=>{let r,i=e.name;if(i==="none"||!i)return{none:!0};if(a.iconMapFn!==null){const d=a.iconMapFn(i);if(d!==void 0)if(d.icon!==void 0){if(i=d.icon,i==="none"||!i)return{none:!0}}else return{cls:d.cls,content:d.content!==void 0?d.content:" "}}if(Me.test(i)===!0){const[d,h=Z]=i.split("|");return{svg:!0,viewBox:h,nodes:d.split("&&").map(s=>{const[b,m,y]=s.split("@@");return n.h("path",{style:m,d:b,transform:y})})}}if(ze.test(i)===!0)return{img:!0,src:i.substring(4)};if(Te.test(i)===!0){const[d,h=Z]=i.split("|");return{svguse:!0,src:d.substring(7),viewBox:h}}let C=" ";const g=i.match(we);if(g!==null)r=ue[g[1]](i);else if(xe.test(i)===!0)r=i;else if(Oe.test(i)===!0)r=`ionicons ion-${a.platform.is.ios===!0?"ios":"md"}${i.substring(3)}`;else if(ee.test(i)===!0){r="notranslate material-symbols";const d=i.match(ee);d!==null&&(i=i.substring(6),r+=ce[d[1]]),C=i}else{r="notranslate material-icons";const d=i.match(Ae);d!==null&&(i=i.substring(2),r+=se[d[1]]),C=i}return{cls:r,content:C}});return()=>{const r={class:l.value,style:o.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?n.h(e.tag,r,ie(t.default)):c.value.img===!0?n.h(e.tag,r,O(t.default,[n.h("img",{src:c.value.src})])):c.value.svg===!0?n.h(e.tag,r,O(t.default,[n.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?n.h(e.tag,r,O(t.default,[n.h("svg",{viewBox:c.value.viewBox},[n.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(r.class+=" "+c.value.cls),n.h(e.tag,r,O(t.default,[c.value.content])))}}}),De={size:{type:[String,Number],default:"1em"},color:String};function Ie(e){return{cSize:n.computed(()=>e.size in H?`${H[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const de=K({name:"QSpinner",props:{...De,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:a}=Ie(e);return()=>n.h("svg",{class:a.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[n.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function fe(e,t){const a=e.style;for(const o in t)a[o]=t[o]}function je(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=n.unref(e);if(t)return t.$el||t}function Ve(e,t){if(e==null||e.contains(t)===!0)return!0;for(let a=e.nextElementSibling;a!==null;a=a.nextElementSibling)if(a.contains(t))return!0;return!1}const I={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(I,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function Ne(){}function pe(e){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]),{top:e.clientY,left:e.clientX}}function Ke(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let a=e.target;for(;a;){if(t.push(a),a.tagName==="HTML")return t.push(document),t.push(window),t;a=a.parentElement}}function X(e){e.stopPropagation()}function ve(e){e.cancelable!==!1&&e.preventDefault()}function w(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function me(e,t,a){const o=`__q_${t}_evt`;e[o]=e[o]!==void 0?e[o].concat(a):a,a.forEach(l=>{l[0].addEventListener(l[1],e[l[2]],I[l[3]])})}function ge(e,t){const a=`__q_${t}_evt`;e[a]!==void 0&&(e[a].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],I[o[3]])}),e[a]=void 0)}function he(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function N(e,t){return he(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Fe(e,t=250){let a=!1,o;return function(){return a===!1&&(a=!0,setTimeout(()=>{a=!1},t),o=e.apply(this,arguments)),o}}function te(e,t,a,o){a.modifiers.stop===!0&&X(e);const l=a.modifiers.color;let c=a.modifiers.center;c=c===!0||o===!0;const r=document.createElement("span"),i=document.createElement("span"),C=pe(e),{left:g,top:d,width:h,height:s}=t.getBoundingClientRect(),b=Math.sqrt(h*h+s*s),m=b/2,y=`${(h-b)/2}px`,f=c?y:`${C.left-g-m}px`,k=`${(s-b)/2}px`,A=c?k:`${C.top-d-m}px`;i.className="q-ripple__inner",fe(i,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${f},${A},0) scale3d(.2,.2,1)`,opacity:0}),r.className=`q-ripple${l?" text-"+l:""}`,r.setAttribute("dir","ltr"),r.appendChild(i),t.appendChild(r);const R=()=>{r.remove(),clearTimeout(P)};a.abort.push(R);let P=setTimeout(()=>{i.classList.add("q-ripple__inner--enter"),i.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,i.style.opacity=.2,P=setTimeout(()=>{i.classList.remove("q-ripple__inner--enter"),i.classList.add("q-ripple__inner--leave"),i.style.opacity=0,P=setTimeout(()=>{r.remove(),a.abort.splice(a.abort.indexOf(R),1)},275)},250)},50)}function ne(e,{modifiers:t,value:a,arg:o}){const l=Object.assign({},e.cfg.ripple,t,a);e.modifiers={early:l.early===!0,stop:l.stop===!0,center:l.center===!0,color:l.color||o,keyCodes:[].concat(l.keyCodes||13)}}const be=qe({name:"ripple",beforeMount(e,t){const a=t.instance.$.appContext.config.globalProperties.$q.config||{};if(a.ripple===!1)return;const o={cfg:a,enabled:t.value!==!1,modifiers:{},abort:[],start(l){o.enabled===!0&&l.qSkipRipple!==!0&&l.type===(o.modifiers.early===!0?"pointerdown":"click")&&te(l,e,o,l.qKeyEvent===!0)},keystart:Fe(l=>{o.enabled===!0&&l.qSkipRipple!==!0&&N(l,o.modifiers.keyCodes)===!0&&l.type===`key${o.modifiers.early===!0?"down":"up"}`&&te(l,e,o,!0)},300)};ne(o,t),e.__qripple=o,me(o,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const a=e.__qripple;a!==void 0&&(a.enabled=t.value!==!1,a.enabled===!0&&Object(t.value)===t.value&&ne(a,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(a=>{a()}),ge(t,"main"),delete e._qripple)}}),ye={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Qe=Object.keys(ye),He={align:{type:String,validator:e=>Qe.includes(e)}};function Ue(e){return n.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${ye[t]}`})}function Ye(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function ke(e){return e.appContext.config.globalProperties.$router!==void 0}function Ge(e){return e.isUnmounted===!0||e.isDeactivated===!0}function oe(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function ae(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function We(e,t){for(const a in t){const o=t[a],l=e[a];if(typeof o=="string"){if(o!==l)return!1}else if(Array.isArray(l)===!1||l.length!==o.length||o.some((c,r)=>c!==l[r]))return!1}return!0}function le(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((a,o)=>a===t[o]):e.length===1&&e[0]===t}function Xe(e,t){return Array.isArray(e)===!0?le(e,t):Array.isArray(t)===!0?le(t,e):e===t}function Ze(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const a in e)if(Xe(e[a],t[a])===!1)return!1;return!0}const Ce={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Je={...Ce,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Be({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const a=n.getCurrentInstance(),{props:o,proxy:l,emit:c}=a,r=ke(a),i=n.computed(()=>o.disable!==!0&&o.href!==void 0),C=t===!0?n.computed(()=>r===!0&&o.disable!==!0&&i.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""):n.computed(()=>r===!0&&i.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""),g=n.computed(()=>C.value===!0?A(o.to):null),d=n.computed(()=>g.value!==null),h=n.computed(()=>i.value===!0||d.value===!0),s=n.computed(()=>o.type==="a"||h.value===!0?"a":o.tag||e||"div"),b=n.computed(()=>i.value===!0?{href:o.href,target:o.target}:d.value===!0?{href:g.value.href,target:o.target}:{}),m=n.computed(()=>{if(d.value===!1)return-1;const{matched:p}=g.value,{length:E}=p,_=p[E-1];if(_===void 0)return-1;const q=l.$route.matched;if(q.length===0)return-1;const L=q.findIndex(ae.bind(null,_));if(L!==-1)return L;const j=oe(p[E-2]);return E>1&&oe(_)===j&&q[q.length-1].path!==j?q.findIndex(ae.bind(null,p[E-2])):L}),y=n.computed(()=>d.value===!0&&m.value!==-1&&We(l.$route.params,g.value.params)),f=n.computed(()=>y.value===!0&&m.value===l.$route.matched.length-1&&Ze(l.$route.params,g.value.params)),k=n.computed(()=>d.value===!0?f.value===!0?` ${o.exactActiveClass} ${o.activeClass}`:o.exact===!0?"":y.value===!0?` ${o.activeClass}`:"":"");function A(p){try{return l.$router.resolve(p)}catch{}return null}function R(p,{returnRouterError:E,to:_=o.to,replace:q=o.replace}={}){if(o.disable===!0)return p.preventDefault(),Promise.resolve(!1);if(p.metaKey||p.altKey||p.ctrlKey||p.shiftKey||p.button!==void 0&&p.button!==0||o.target==="_blank")return Promise.resolve(!1);p.preventDefault();const L=l.$router[q===!0?"replace":"push"](_);return E===!0?L:L.then(()=>{}).catch(()=>{})}function P(p){if(d.value===!0){const E=_=>R(p,_);c("click",p,E),p.defaultPrevented!==!0&&E()}else c("click",p)}return{hasRouterLink:d,hasHrefLink:i,hasLink:h,linkTag:s,resolvedLink:g,linkIsActive:y,linkIsExactActive:f,linkClass:k,linkAttrs:b,getLink:A,navigateToRouterLink:R,navigateOnClick:P}}const re={none:0,xs:4,sm:8,md:16,lg:24,xl:32},et={xs:8,sm:10,md:14,lg:20,xl:24},tt=["button","submit","reset"],nt=/[^\s]\/[^\s]/,ot=["flat","outline","push","unelevated"];function Ee(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}function at(e){const t=Ee(e);return t!==void 0?{[t]:!0}:{}}const Se={...G,...Ce,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...ot.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...He.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},lt={...Se,round:Boolean};function rt(e){const t=W(e,et),a=Ue(e),{hasRouterLink:o,hasLink:l,linkTag:c,linkAttrs:r,navigateOnClick:i}=Be({fallbackTag:"button"}),C=n.computed(()=>{const f=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},f,{padding:e.padding.split(/\s+/).map(k=>k in re?re[k]+"px":k).join(" "),minWidth:"0",minHeight:"0"}):f}),g=n.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),d=n.computed(()=>e.disable!==!0&&e.loading!==!0),h=n.computed(()=>d.value===!0?e.tabindex||0:-1),s=n.computed(()=>Ee(e,"standard")),b=n.computed(()=>{const f={tabindex:h.value};return l.value===!0?Object.assign(f,r.value):tt.includes(e.type)===!0&&(f.type=e.type),c.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),o.value!==!0&&nt.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,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),f}),m=n.computed(()=>{let f;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}`);const k=e.round===!0?"round":`rectangle${g.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${s.value} q-btn--${k}`+(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":"")}),y=n.computed(()=>a.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:m,style:C,innerClasses:y,attributes:b,hasLink:l,linkTag:c,navigateOnClick:i,isActionable:d}}const{passiveCapture:S}=I;let M=null,z=null,T=null;const _e=K({name:"QBtn",props:{...lt,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:a}){const{proxy:o}=n.getCurrentInstance(),{classes:l,style:c,innerClasses:r,attributes:i,hasLink:C,linkTag:g,navigateOnClick:d,isActionable:h}=rt(e),s=n.ref(null),b=n.ref(null);let m=null,y,f=null;const k=n.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),A=n.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:C.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),R=n.computed(()=>({center:e.round})),P=n.computed(()=>{const u=Math.max(0,Math.min(100,e.percentage));return u>0?{transition:"transform 0.6s",transform:`translateX(${u-100}%)`}:{}}),p=n.computed(()=>{if(e.loading===!0)return{onMousedown:D,onTouchstart:D,onClick:D,onKeydown:D,onKeyup:D};if(h.value===!0){const u={onClick:_,onKeydown:q,onMousedown:j};if(o.$q.platform.has.touch===!0){const v=e.onTouchstart!==void 0?"":"Passive";u[`onTouchstart${v}`]=L}return u}return{onClick:w}}),E=n.computed(()=>({ref:s,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:c.value,...i.value,...p.value}));function _(u){if(s.value!==null){if(u!==void 0){if(u.defaultPrevented===!0)return;const v=document.activeElement;if(e.type==="submit"&&v!==document.body&&s.value.contains(v)===!1&&v.contains(s.value)===!1){s.value.focus();const V=()=>{document.removeEventListener("keydown",w,!0),document.removeEventListener("keyup",V,S),s.value!==null&&s.value.removeEventListener("blur",V,S)};document.addEventListener("keydown",w,!0),document.addEventListener("keyup",V,S),s.value.addEventListener("blur",V,S)}}d(u)}}function q(u){s.value!==null&&(a("keydown",u),N(u,[13,32])===!0&&z!==s.value&&(z!==null&&x(),u.defaultPrevented!==!0&&(s.value.focus(),z=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("keyup",$,!0),s.value.addEventListener("blur",$,S)),w(u)))}function L(u){s.value!==null&&(a("touchstart",u),u.defaultPrevented!==!0&&(M!==s.value&&(M!==null&&x(),M=s.value,m=u.target,m.addEventListener("touchcancel",$,S),m.addEventListener("touchend",$,S)),y=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,y=!1},200)))}function j(u){s.value!==null&&(u.qSkipRipple=y===!0,a("mousedown",u),u.defaultPrevented!==!0&&T!==s.value&&(T!==null&&x(),T=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("mouseup",$,S)))}function $(u){if(s.value!==null&&!(u!==void 0&&u.type==="blur"&&document.activeElement===s.value)){if(u!==void 0&&u.type==="keyup"){if(z===s.value&&N(u,[13,32])===!0){const v=new MouseEvent("click",u);v.qKeyEvent=!0,u.defaultPrevented===!0&&ve(v),u.cancelBubble===!0&&X(v),s.value.dispatchEvent(v),w(u),u.qKeyEvent=!0}a("keyup",u)}x()}}function x(u){const v=b.value;u!==!0&&(M===s.value||T===s.value)&&v!==null&&v!==document.activeElement&&(v.setAttribute("tabindex",-1),v.focus()),M===s.value&&(m!==null&&(m.removeEventListener("touchcancel",$,S),m.removeEventListener("touchend",$,S)),M=m=null),T===s.value&&(document.removeEventListener("mouseup",$,S),T=null),z===s.value&&(document.removeEventListener("keyup",$,!0),s.value!==null&&s.value.removeEventListener("blur",$,S),z=null),s.value!==null&&s.value.classList.remove("q-btn--active")}function D(u){w(u),u.qSkipRipple=!0}return n.onBeforeUnmount(()=>{x(!0)}),Object.assign(o,{click:u=>{h.value===!0&&_(u)}}),()=>{let u=[];e.icon!==void 0&&u.push(n.h(U,{name:e.icon,left:e.stack!==!0&&k.value===!0,role:"img"})),k.value===!0&&u.push(n.h("span",{class:"block"},[e.label])),u=O(t.default,u),e.iconRight!==void 0&&e.round===!1&&u.push(n.h(U,{name:e.iconRight,right:e.stack!==!0&&k.value===!0,role:"img"}));const v=[n.h("span",{class:"q-focus-helper",ref:b})];return e.loading===!0&&e.percentage!==void 0&&v.push(n.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[n.h("span",{class:"q-btn__progress-indicator fit block",style:P.value})])),v.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+r.value},u)),e.loading!==null&&v.push(n.h(n.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[n.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[n.h(de)])]:null)),n.withDirectives(n.h(g.value,E.value,v),[[be,A.value,void 0,R.value]])}}}),it=n.defineComponent({__name:"AppButton",props:{size:{default:B.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:Y.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{}},emits:["click"],setup(e){const t=e,a=n.computed(()=>["app-btn",{"app-btn_default":!t.transparent&&!t.flat,"app-btn_trans":t.transparent,"app-btn_flat":t.flat,"app-btn_rounded":t.rounded,"app-btn_sm":t.size===B.SM,"app-btn_md":t.size===B.MD,"app-btn_lg":t.size===B.LG,"app-btn_icon-left":t.iconLeft,"app-btn_icon-right":t.iconRight,"app-btn_icon-middle":t.iconMiddle},`app-btn_${t.color}`]);return(o,l)=>(n.openBlock(),n.createBlock(n.unref(_e),{"no-caps":"",unelevated:"",class:n.normalizeClass(a.value),padding:n.unref($e)[o.size||n.unref(B).MD],loading:o.loading,disable:o.disabled||void 0,to:o.to,href:o.href,target:o.target,type:o.submit?"submit":void 0,"aria-label":o.ariaLabel,onClick:l[0]||(l[0]=c=>o.$emit("click",c))},{default:n.withCtx(()=>[o.iconLeft||o.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",o.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${o.iconLeft||o.iconMiddle}`,o.transparent||o.flat?`text-${o.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),n.renderSlot(o.$slots,"default",{},void 0,!0),o.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(o.label),1)],64)):n.createCommentVNode("",!0),o.iconRight?(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${o.iconRight}`,o.transparent?`text-${o.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disable","to","href","target","type","aria-label"]))}}),F=(e,t)=>{const a=e.__vccOpts||e;for(const[o,l]of t)a[o]=l;return a},ut=F(it,[["__scopeId","data-v-0aee6cab"]]),st={key:0,class:"app-toggle__label app-toggle__label_left"},ct={class:"app-toggle__container"},dt=["checked","disabled"],ft={class:"app-toggle__thumb"},pt={key:1,class:"app-toggle__label"},vt=n.defineComponent({__name:"AppToggle",props:{modelValue:{type:Boolean},size:{default:B.MD},label:{},disabled:{type:Boolean},color:{default:Y.PRIMARY},iconColor:{},icon:{},iconActive:{},labelLeft:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,o=t,l=n.computed({get:()=>a.modelValue,set:r=>{o("update:modelValue",r)}}),c=n.computed(()=>["app-toggle",{"app-toggle_sm":a.size===B.SM,"app-toggle_md":a.size===B.MD,"app-toggle_lg":a.size===B.LG,"app-toggle_active":l.value,"app-toggle_disabled":a.disabled},`app-toggle_${a.color}`]);return(r,i)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(c.value)},[r.label&&r.labelLeft?(n.openBlock(),n.createElementBlock("span",st,n.toDisplayString(r.label),1)):n.createCommentVNode("",!0),n.createElementVNode("label",ct,[n.createElementVNode("input",{type:"checkbox",checked:l.value,onChange:i[0]||(i[0]=C=>l.value=!l.value),disabled:r.disabled,class:"app-toggle__input"},null,40,dt),n.createElementVNode("span",{class:n.normalizeClass(["app-toggle__slider",l.value?`bg-${r.color}`:""])},[n.createElementVNode("span",ft,[r.icon&&!r.modelValue?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",`icon-kl-${r.icon}`,"app-toggle__icon"])},null,2)):n.createCommentVNode("",!0),r.modelValue&&(r.iconActive||r.icon)?(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["icon-kl",`icon-kl-${r.iconActive||r.icon}`,"app-toggle__icon",l.value?`text-${r.iconColor}`:""])},null,2)):n.createCommentVNode("",!0)])],2),n.renderSlot(r.$slots,"default",{},void 0,!0)]),r.label&&!r.labelLeft?(n.openBlock(),n.createElementBlock("span",pt,n.toDisplayString(r.label),1)):n.createCommentVNode("",!0)],2))}}),mt=F(vt,[["__scopeId","data-v-e0e56123"]]),gt=n.defineComponent({__name:"AppIcon",props:{name:{},size:{},color:{}},setup(e){return(t,a)=>(n.openBlock(),n.createElementBlock("i",{class:n.normalizeClass(["icon-kl",`icon-kl-${t.name}`,t.color?`text-${t.color}`:""]),style:n.normalizeStyle(t.size?`font-size: ${t.size}`:void 0)},null,6))}}),ht=F(gt,[["__scopeId","data-v-941765ee"]]),bt=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppButtonCopy-D2Pt4bVc.cjs"))),yt=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppSelect-BCgCNhlR.cjs"))),kt=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DropdownButton-DHziBN9i.cjs")));exports.AppButton=ut;exports.AppButtonCopy=bt;exports.AppIcon=ht;exports.AppSelect=yt;exports.AppToggle=mt;exports.COLORS=Y;exports.DropdownButton=kt;exports.QBtn=_e;exports.QIcon=U;exports.QSpinner=de;exports.Ripple=be;exports.SIZES=B;exports._export_sfc=F;exports.addEvt=me;exports.childHasFocus=Ve;exports.cleanEvt=ge;exports.createComponent=K;exports.css=fe;exports.getBtnDesignAttr=at;exports.getElement=je;exports.getEventPath=Ke;exports.getParentProxy=Ye;exports.hDir=Pe;exports.hMergeSlot=O;exports.hMergeSlotSafely=Re;exports.hSlot=ie;exports.hUniqueSlot=Le;exports.isKeyCode=N;exports.listenOpts=I;exports.nonRoundBtnProps=Se;exports.noop=Ne;exports.position=pe;exports.prevent=ve;exports.shouldIgnoreKey=he;exports.stop=X;exports.stopAndPrevent=w;exports.useRouterLink=Be;exports.useRouterLinkProps=Je;exports.useSize=W;exports.useSizeProps=G;exports.vmHasRouter=ke;exports.vmIsDestroyed=Ge;
1
+ "use strict";const n=require("vue"),Y={PRIMARY:"primary",INFO:"info"},B={SM:"sm",MD:"md",LG:"lg"},$e={[B.SM]:"3px 9px",[B.MD]:"5px 12px",[B.LG]:"9px 20px"},H={xs:18,sm:24,md:32,lg:38,xl:46},G={size:String};function W(e,t=H){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function K(e){return n.markRaw(n.defineComponent(e))}function qe(e){return n.markRaw(e)}function ie(e,t){return e!==void 0&&e()||t}function Le(e,t){if(e!==void 0){const a=e();if(a!=null)return a.slice()}return t}function O(e,t){return e!==void 0?t.concat(e()):t}function Re(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function we(e,t,a,o,l,c){t.key=o+l;const r=n.h(e,t,a);return l===!0?n.withDirectives(r,c()):r}const Z="0 0 24 24",J=e=>e,Q=e=>`ionicons ${e}`,ue={"mdi-":e=>`mdi ${e}`,"icon-":J,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Q,"ion-ios":Q,"ion-logo":Q,"iconfont ":J,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},se={o_:"-outlined",r_:"-round",s_:"-sharp"},ce={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Pe=new RegExp("^("+Object.keys(ue).join("|")+")"),Ae=new RegExp("^("+Object.keys(se).join("|")+")"),ee=new RegExp("^("+Object.keys(ce).join("|")+")"),Me=/^[Mm]\s?[-+]?\.?\d/,ze=/^img:/,Te=/^svguse:/,Oe=/^ion-/,xe=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,U=K({name:"QIcon",props:{...G,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:a}}=n.getCurrentInstance(),o=W(e),l=n.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),c=n.computed(()=>{let r,i=e.name;if(i==="none"||!i)return{none:!0};if(a.iconMapFn!==null){const d=a.iconMapFn(i);if(d!==void 0)if(d.icon!==void 0){if(i=d.icon,i==="none"||!i)return{none:!0}}else return{cls:d.cls,content:d.content!==void 0?d.content:" "}}if(Me.test(i)===!0){const[d,h=Z]=i.split("|");return{svg:!0,viewBox:h,nodes:d.split("&&").map(s=>{const[b,m,y]=s.split("@@");return n.h("path",{style:m,d:b,transform:y})})}}if(ze.test(i)===!0)return{img:!0,src:i.substring(4)};if(Te.test(i)===!0){const[d,h=Z]=i.split("|");return{svguse:!0,src:d.substring(7),viewBox:h}}let C=" ";const g=i.match(Pe);if(g!==null)r=ue[g[1]](i);else if(xe.test(i)===!0)r=i;else if(Oe.test(i)===!0)r=`ionicons ion-${a.platform.is.ios===!0?"ios":"md"}${i.substring(3)}`;else if(ee.test(i)===!0){r="notranslate material-symbols";const d=i.match(ee);d!==null&&(i=i.substring(6),r+=ce[d[1]]),C=i}else{r="notranslate material-icons";const d=i.match(Ae);d!==null&&(i=i.substring(2),r+=se[d[1]]),C=i}return{cls:r,content:C}});return()=>{const r={class:l.value,style:o.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?n.h(e.tag,r,ie(t.default)):c.value.img===!0?n.h(e.tag,r,O(t.default,[n.h("img",{src:c.value.src})])):c.value.svg===!0?n.h(e.tag,r,O(t.default,[n.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?n.h(e.tag,r,O(t.default,[n.h("svg",{viewBox:c.value.viewBox},[n.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(r.class+=" "+c.value.cls),n.h(e.tag,r,O(t.default,[c.value.content])))}}}),De={size:{type:[String,Number],default:"1em"},color:String};function Ie(e){return{cSize:n.computed(()=>e.size in H?`${H[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const de=K({name:"QSpinner",props:{...De,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:a}=Ie(e);return()=>n.h("svg",{class:a.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[n.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function fe(e,t){const a=e.style;for(const o in t)a[o]=t[o]}function je(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=n.unref(e);if(t)return t.$el||t}function Ve(e,t){if(e==null||e.contains(t)===!0)return!0;for(let a=e.nextElementSibling;a!==null;a=a.nextElementSibling)if(a.contains(t))return!0;return!1}const I={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(I,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function Ne(){}function pe(e){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]),{top:e.clientY,left:e.clientX}}function Ke(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let a=e.target;for(;a;){if(t.push(a),a.tagName==="HTML")return t.push(document),t.push(window),t;a=a.parentElement}}function X(e){e.stopPropagation()}function ve(e){e.cancelable!==!1&&e.preventDefault()}function P(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function me(e,t,a){const o=`__q_${t}_evt`;e[o]=e[o]!==void 0?e[o].concat(a):a,a.forEach(l=>{l[0].addEventListener(l[1],e[l[2]],I[l[3]])})}function ge(e,t){const a=`__q_${t}_evt`;e[a]!==void 0&&(e[a].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],I[o[3]])}),e[a]=void 0)}function he(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function N(e,t){return he(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Fe(e,t=250){let a=!1,o;return function(){return a===!1&&(a=!0,setTimeout(()=>{a=!1},t),o=e.apply(this,arguments)),o}}function te(e,t,a,o){a.modifiers.stop===!0&&X(e);const l=a.modifiers.color;let c=a.modifiers.center;c=c===!0||o===!0;const r=document.createElement("span"),i=document.createElement("span"),C=pe(e),{left:g,top:d,width:h,height:s}=t.getBoundingClientRect(),b=Math.sqrt(h*h+s*s),m=b/2,y=`${(h-b)/2}px`,f=c?y:`${C.left-g-m}px`,k=`${(s-b)/2}px`,A=c?k:`${C.top-d-m}px`;i.className="q-ripple__inner",fe(i,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${f},${A},0) scale3d(.2,.2,1)`,opacity:0}),r.className=`q-ripple${l?" text-"+l:""}`,r.setAttribute("dir","ltr"),r.appendChild(i),t.appendChild(r);const R=()=>{r.remove(),clearTimeout(w)};a.abort.push(R);let w=setTimeout(()=>{i.classList.add("q-ripple__inner--enter"),i.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,i.style.opacity=.2,w=setTimeout(()=>{i.classList.remove("q-ripple__inner--enter"),i.classList.add("q-ripple__inner--leave"),i.style.opacity=0,w=setTimeout(()=>{r.remove(),a.abort.splice(a.abort.indexOf(R),1)},275)},250)},50)}function ne(e,{modifiers:t,value:a,arg:o}){const l=Object.assign({},e.cfg.ripple,t,a);e.modifiers={early:l.early===!0,stop:l.stop===!0,center:l.center===!0,color:l.color||o,keyCodes:[].concat(l.keyCodes||13)}}const be=qe({name:"ripple",beforeMount(e,t){const a=t.instance.$.appContext.config.globalProperties.$q.config||{};if(a.ripple===!1)return;const o={cfg:a,enabled:t.value!==!1,modifiers:{},abort:[],start(l){o.enabled===!0&&l.qSkipRipple!==!0&&l.type===(o.modifiers.early===!0?"pointerdown":"click")&&te(l,e,o,l.qKeyEvent===!0)},keystart:Fe(l=>{o.enabled===!0&&l.qSkipRipple!==!0&&N(l,o.modifiers.keyCodes)===!0&&l.type===`key${o.modifiers.early===!0?"down":"up"}`&&te(l,e,o,!0)},300)};ne(o,t),e.__qripple=o,me(o,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const a=e.__qripple;a!==void 0&&(a.enabled=t.value!==!1,a.enabled===!0&&Object(t.value)===t.value&&ne(a,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(a=>{a()}),ge(t,"main"),delete e._qripple)}}),ye={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Qe=Object.keys(ye),He={align:{type:String,validator:e=>Qe.includes(e)}};function Ue(e){return n.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${ye[t]}`})}function Ye(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function ke(e){return e.appContext.config.globalProperties.$router!==void 0}function Ge(e){return e.isUnmounted===!0||e.isDeactivated===!0}function oe(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function ae(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function We(e,t){for(const a in t){const o=t[a],l=e[a];if(typeof o=="string"){if(o!==l)return!1}else if(Array.isArray(l)===!1||l.length!==o.length||o.some((c,r)=>c!==l[r]))return!1}return!0}function le(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((a,o)=>a===t[o]):e.length===1&&e[0]===t}function Xe(e,t){return Array.isArray(e)===!0?le(e,t):Array.isArray(t)===!0?le(t,e):e===t}function Ze(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const a in e)if(Xe(e[a],t[a])===!1)return!1;return!0}const Ce={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Je={...Ce,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Be({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const a=n.getCurrentInstance(),{props:o,proxy:l,emit:c}=a,r=ke(a),i=n.computed(()=>o.disable!==!0&&o.href!==void 0),C=t===!0?n.computed(()=>r===!0&&o.disable!==!0&&i.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""):n.computed(()=>r===!0&&i.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""),g=n.computed(()=>C.value===!0?A(o.to):null),d=n.computed(()=>g.value!==null),h=n.computed(()=>i.value===!0||d.value===!0),s=n.computed(()=>o.type==="a"||h.value===!0?"a":o.tag||e||"div"),b=n.computed(()=>i.value===!0?{href:o.href,target:o.target}:d.value===!0?{href:g.value.href,target:o.target}:{}),m=n.computed(()=>{if(d.value===!1)return-1;const{matched:p}=g.value,{length:E}=p,_=p[E-1];if(_===void 0)return-1;const q=l.$route.matched;if(q.length===0)return-1;const L=q.findIndex(ae.bind(null,_));if(L!==-1)return L;const j=oe(p[E-2]);return E>1&&oe(_)===j&&q[q.length-1].path!==j?q.findIndex(ae.bind(null,p[E-2])):L}),y=n.computed(()=>d.value===!0&&m.value!==-1&&We(l.$route.params,g.value.params)),f=n.computed(()=>y.value===!0&&m.value===l.$route.matched.length-1&&Ze(l.$route.params,g.value.params)),k=n.computed(()=>d.value===!0?f.value===!0?` ${o.exactActiveClass} ${o.activeClass}`:o.exact===!0?"":y.value===!0?` ${o.activeClass}`:"":"");function A(p){try{return l.$router.resolve(p)}catch{}return null}function R(p,{returnRouterError:E,to:_=o.to,replace:q=o.replace}={}){if(o.disable===!0)return p.preventDefault(),Promise.resolve(!1);if(p.metaKey||p.altKey||p.ctrlKey||p.shiftKey||p.button!==void 0&&p.button!==0||o.target==="_blank")return Promise.resolve(!1);p.preventDefault();const L=l.$router[q===!0?"replace":"push"](_);return E===!0?L:L.then(()=>{}).catch(()=>{})}function w(p){if(d.value===!0){const E=_=>R(p,_);c("click",p,E),p.defaultPrevented!==!0&&E()}else c("click",p)}return{hasRouterLink:d,hasHrefLink:i,hasLink:h,linkTag:s,resolvedLink:g,linkIsActive:y,linkIsExactActive:f,linkClass:k,linkAttrs:b,getLink:A,navigateToRouterLink:R,navigateOnClick:w}}const re={none:0,xs:4,sm:8,md:16,lg:24,xl:32},et={xs:8,sm:10,md:14,lg:20,xl:24},tt=["button","submit","reset"],nt=/[^\s]\/[^\s]/,ot=["flat","outline","push","unelevated"];function Ee(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}function at(e){const t=Ee(e);return t!==void 0?{[t]:!0}:{}}const Se={...G,...Ce,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...ot.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...He.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},lt={...Se,round:Boolean};function rt(e){const t=W(e,et),a=Ue(e),{hasRouterLink:o,hasLink:l,linkTag:c,linkAttrs:r,navigateOnClick:i}=Be({fallbackTag:"button"}),C=n.computed(()=>{const f=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},f,{padding:e.padding.split(/\s+/).map(k=>k in re?re[k]+"px":k).join(" "),minWidth:"0",minHeight:"0"}):f}),g=n.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),d=n.computed(()=>e.disable!==!0&&e.loading!==!0),h=n.computed(()=>d.value===!0?e.tabindex||0:-1),s=n.computed(()=>Ee(e,"standard")),b=n.computed(()=>{const f={tabindex:h.value};return l.value===!0?Object.assign(f,r.value):tt.includes(e.type)===!0&&(f.type=e.type),c.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),o.value!==!0&&nt.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,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),f}),m=n.computed(()=>{let f;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}`);const k=e.round===!0?"round":`rectangle${g.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${s.value} q-btn--${k}`+(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":"")}),y=n.computed(()=>a.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:m,style:C,innerClasses:y,attributes:b,hasLink:l,linkTag:c,navigateOnClick:i,isActionable:d}}const{passiveCapture:S}=I;let M=null,z=null,T=null;const _e=K({name:"QBtn",props:{...lt,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:a}){const{proxy:o}=n.getCurrentInstance(),{classes:l,style:c,innerClasses:r,attributes:i,hasLink:C,linkTag:g,navigateOnClick:d,isActionable:h}=rt(e),s=n.ref(null),b=n.ref(null);let m=null,y,f=null;const k=n.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),A=n.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:C.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),R=n.computed(()=>({center:e.round})),w=n.computed(()=>{const u=Math.max(0,Math.min(100,e.percentage));return u>0?{transition:"transform 0.6s",transform:`translateX(${u-100}%)`}:{}}),p=n.computed(()=>{if(e.loading===!0)return{onMousedown:D,onTouchstart:D,onClick:D,onKeydown:D,onKeyup:D};if(h.value===!0){const u={onClick:_,onKeydown:q,onMousedown:j};if(o.$q.platform.has.touch===!0){const v=e.onTouchstart!==void 0?"":"Passive";u[`onTouchstart${v}`]=L}return u}return{onClick:P}}),E=n.computed(()=>({ref:s,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:c.value,...i.value,...p.value}));function _(u){if(s.value!==null){if(u!==void 0){if(u.defaultPrevented===!0)return;const v=document.activeElement;if(e.type==="submit"&&v!==document.body&&s.value.contains(v)===!1&&v.contains(s.value)===!1){s.value.focus();const V=()=>{document.removeEventListener("keydown",P,!0),document.removeEventListener("keyup",V,S),s.value!==null&&s.value.removeEventListener("blur",V,S)};document.addEventListener("keydown",P,!0),document.addEventListener("keyup",V,S),s.value.addEventListener("blur",V,S)}}d(u)}}function q(u){s.value!==null&&(a("keydown",u),N(u,[13,32])===!0&&z!==s.value&&(z!==null&&x(),u.defaultPrevented!==!0&&(s.value.focus(),z=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("keyup",$,!0),s.value.addEventListener("blur",$,S)),P(u)))}function L(u){s.value!==null&&(a("touchstart",u),u.defaultPrevented!==!0&&(M!==s.value&&(M!==null&&x(),M=s.value,m=u.target,m.addEventListener("touchcancel",$,S),m.addEventListener("touchend",$,S)),y=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,y=!1},200)))}function j(u){s.value!==null&&(u.qSkipRipple=y===!0,a("mousedown",u),u.defaultPrevented!==!0&&T!==s.value&&(T!==null&&x(),T=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("mouseup",$,S)))}function $(u){if(s.value!==null&&!(u!==void 0&&u.type==="blur"&&document.activeElement===s.value)){if(u!==void 0&&u.type==="keyup"){if(z===s.value&&N(u,[13,32])===!0){const v=new MouseEvent("click",u);v.qKeyEvent=!0,u.defaultPrevented===!0&&ve(v),u.cancelBubble===!0&&X(v),s.value.dispatchEvent(v),P(u),u.qKeyEvent=!0}a("keyup",u)}x()}}function x(u){const v=b.value;u!==!0&&(M===s.value||T===s.value)&&v!==null&&v!==document.activeElement&&(v.setAttribute("tabindex",-1),v.focus()),M===s.value&&(m!==null&&(m.removeEventListener("touchcancel",$,S),m.removeEventListener("touchend",$,S)),M=m=null),T===s.value&&(document.removeEventListener("mouseup",$,S),T=null),z===s.value&&(document.removeEventListener("keyup",$,!0),s.value!==null&&s.value.removeEventListener("blur",$,S),z=null),s.value!==null&&s.value.classList.remove("q-btn--active")}function D(u){P(u),u.qSkipRipple=!0}return n.onBeforeUnmount(()=>{x(!0)}),Object.assign(o,{click:u=>{h.value===!0&&_(u)}}),()=>{let u=[];e.icon!==void 0&&u.push(n.h(U,{name:e.icon,left:e.stack!==!0&&k.value===!0,role:"img"})),k.value===!0&&u.push(n.h("span",{class:"block"},[e.label])),u=O(t.default,u),e.iconRight!==void 0&&e.round===!1&&u.push(n.h(U,{name:e.iconRight,right:e.stack!==!0&&k.value===!0,role:"img"}));const v=[n.h("span",{class:"q-focus-helper",ref:b})];return e.loading===!0&&e.percentage!==void 0&&v.push(n.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[n.h("span",{class:"q-btn__progress-indicator fit block",style:w.value})])),v.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+r.value},u)),e.loading!==null&&v.push(n.h(n.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[n.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[n.h(de)])]:null)),n.withDirectives(n.h(g.value,E.value,v),[[be,A.value,void 0,R.value]])}}}),it=n.defineComponent({__name:"AppButton",props:{size:{default:B.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:Y.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{},download:{}},emits:["click"],setup(e){const t=e,a=n.computed(()=>["app-btn",{"app-btn_default":!t.transparent&&!t.flat,"app-btn_trans":t.transparent,"app-btn_flat":t.flat,"app-btn_rounded":t.rounded,"app-btn_sm":t.size===B.SM,"app-btn_md":t.size===B.MD,"app-btn_lg":t.size===B.LG,"app-btn_icon-left":t.iconLeft,"app-btn_icon-right":t.iconRight,"app-btn_icon-middle":t.iconMiddle},`app-btn_${t.color}`]);return(o,l)=>(n.openBlock(),n.createBlock(n.unref(_e),{"no-caps":"",unelevated:"",class:n.normalizeClass(a.value),padding:n.unref($e)[o.size||n.unref(B).MD],loading:o.loading,disable:o.disabled||void 0,to:o.to,href:o.href,target:o.target,type:o.submit?"submit":void 0,"aria-label":o.ariaLabel,download:o.download,onClick:l[0]||(l[0]=c=>o.$emit("click",c))},{default:n.withCtx(()=>[o.iconLeft||o.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",o.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${o.iconLeft||o.iconMiddle}`,o.transparent||o.flat?`text-${o.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),n.renderSlot(o.$slots,"default",{},void 0,!0),o.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(o.label),1)],64)):n.createCommentVNode("",!0),o.iconRight?(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${o.iconRight}`,o.transparent?`text-${o.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disable","to","href","target","type","aria-label","download"]))}}),F=(e,t)=>{const a=e.__vccOpts||e;for(const[o,l]of t)a[o]=l;return a},ut=F(it,[["__scopeId","data-v-99788ad1"]]),st={key:0,class:"app-toggle__label app-toggle__label_left"},ct={class:"app-toggle__container"},dt=["checked","disabled"],ft={class:"app-toggle__thumb"},pt={key:1,class:"app-toggle__label"},vt=n.defineComponent({__name:"AppToggle",props:{modelValue:{type:Boolean},size:{default:B.MD},label:{},disabled:{type:Boolean},color:{default:Y.PRIMARY},iconColor:{},icon:{},iconActive:{},labelLeft:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,o=t,l=n.computed({get:()=>a.modelValue,set:r=>{o("update:modelValue",r)}}),c=n.computed(()=>["app-toggle",{"app-toggle_sm":a.size===B.SM,"app-toggle_md":a.size===B.MD,"app-toggle_lg":a.size===B.LG,"app-toggle_active":l.value,"app-toggle_disabled":a.disabled},`app-toggle_${a.color}`]);return(r,i)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(c.value)},[r.label&&r.labelLeft?(n.openBlock(),n.createElementBlock("span",st,n.toDisplayString(r.label),1)):n.createCommentVNode("",!0),n.createElementVNode("label",ct,[n.createElementVNode("input",{type:"checkbox",checked:l.value,onChange:i[0]||(i[0]=C=>l.value=!l.value),disabled:r.disabled,class:"app-toggle__input"},null,40,dt),n.createElementVNode("span",{class:n.normalizeClass(["app-toggle__slider",l.value?`bg-${r.color}`:""])},[n.createElementVNode("span",ft,[r.icon&&!r.modelValue?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",`icon-kl-${r.icon}`,"app-toggle__icon"])},null,2)):n.createCommentVNode("",!0),r.modelValue&&(r.iconActive||r.icon)?(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["icon-kl",`icon-kl-${r.iconActive||r.icon}`,"app-toggle__icon",l.value?`text-${r.iconColor}`:""])},null,2)):n.createCommentVNode("",!0)])],2),n.renderSlot(r.$slots,"default",{},void 0,!0)]),r.label&&!r.labelLeft?(n.openBlock(),n.createElementBlock("span",pt,n.toDisplayString(r.label),1)):n.createCommentVNode("",!0)],2))}}),mt=F(vt,[["__scopeId","data-v-e0e56123"]]),gt=n.defineComponent({__name:"AppIcon",props:{name:{},size:{},color:{}},setup(e){return(t,a)=>(n.openBlock(),n.createElementBlock("i",{class:n.normalizeClass(["icon-kl",`icon-kl-${t.name}`,t.color?`text-${t.color}`:""]),style:n.normalizeStyle(t.size?`font-size: ${t.size}`:void 0)},null,6))}}),ht=F(gt,[["__scopeId","data-v-941765ee"]]),bt=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppButtonCopy-CU8HBr0_.cjs"))),yt=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppSelect-Bagql01O.cjs"))),kt=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DropdownButton-Cdv-2EKq.cjs")));exports.AppButton=ut;exports.AppButtonCopy=bt;exports.AppIcon=ht;exports.AppSelect=yt;exports.AppToggle=mt;exports.COLORS=Y;exports.DropdownButton=kt;exports.QBtn=_e;exports.QIcon=U;exports.QSpinner=de;exports.Ripple=be;exports.SIZES=B;exports._export_sfc=F;exports.addEvt=me;exports.childHasFocus=Ve;exports.cleanEvt=ge;exports.createComponent=K;exports.css=fe;exports.getBtnDesignAttr=at;exports.getElement=je;exports.getEventPath=Ke;exports.getParentProxy=Ye;exports.hDir=we;exports.hMergeSlot=O;exports.hMergeSlotSafely=Re;exports.hSlot=ie;exports.hUniqueSlot=Le;exports.isKeyCode=N;exports.listenOpts=I;exports.nonRoundBtnProps=Se;exports.noop=Ne;exports.position=pe;exports.prevent=ve;exports.shouldIgnoreKey=he;exports.stop=X;exports.stopAndPrevent=P;exports.useRouterLink=Be;exports.useRouterLinkProps=Je;exports.useSize=W;exports.useSizeProps=G;exports.vmHasRouter=ke;exports.vmIsDestroyed=Ge;
package/dist/kl.woff CHANGED
Binary file