@validol4ik/uikit 0.2.3 → 0.2.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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./index-T5AGm1HZ.cjs");function h(o,i,t,r){return Object.defineProperty(o,i,{get:t,set:r,enumerable:!0}),o}const l=a.ref(!1);let u;function x(o,i){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(o)||/(opr)[\/]([\w.]+)/.exec(o)||/(vivaldi)[\/]([\w.]+)/.exec(o)||/(chrome|crios)[\/]([\w.]+)/.exec(o)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(firefox|fxios)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+)/.exec(o)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(o)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:i[0]||""}}function k(o){return/(ipad)/.exec(o)||/(ipod)/.exec(o)||/(windows phone)/.exec(o)||/(iphone)/.exec(o)||/(kindle)/.exec(o)||/(silk)/.exec(o)||/(android)/.exec(o)||/(win)/.exec(o)||/(mac)/.exec(o)||/(linux)/.exec(o)||/(cros)/.exec(o)||/(playbook)/.exec(o)||/(bb)/.exec(o)||/(blackberry)/.exec(o)||[]}const m="ontouchstart"in window||window.navigator.maxTouchPoints>0;function y(o){const i=o.toLowerCase(),t=k(i),r=x(i,t),e={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};r.browser&&(e[r.browser]=!0,e.version=r.version,e.versionNumber=parseInt(r.version,10)),r.platform&&(e[r.platform]=!0);const s=e.android||e.ios||e.bb||e.blackberry||e.ipad||e.iphone||e.ipod||e.kindle||e.playbook||e.silk||e["windows phone"];if(s===!0||i.indexOf("mobile")!==-1?e.mobile=!0:e.desktop=!0,e["windows phone"]&&(e.winphone=!0,delete e["windows phone"]),e.edga||e.edgios||e.edg?(e.edge=!0,r.browser="edge"):e.crios?(e.chrome=!0,r.browser="chrome"):e.fxios&&(e.firefox=!0,r.browser="firefox"),(e.ipod||e.ipad||e.iphone)&&(e.ios=!0),e.vivaldi&&(r.browser="vivaldi",e.vivaldi=!0),(e.chrome||e.opr||e.safari||e.vivaldi||e.mobile===!0&&e.ios!==!0&&s!==!0)&&(e.webkit=!0),e.opr&&(r.browser="opera",e.opera=!0),e.safari&&(e.blackberry||e.bb?(r.browser="blackberry",e.blackberry=!0):e.playbook?(r.browser="playbook",e.playbook=!0):e.android?(r.browser="android",e.android=!0):e.kindle?(r.browser="kindle",e.kindle=!0):e.silk&&(r.browser="silk",e.silk=!0)),e.name=r.browser,e.platform=r.platform,i.indexOf("electron")!==-1)e.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)e.bex=!0;else{if(window.Capacitor!==void 0?(e.capacitor=!0,e.nativeMobile=!0,e.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(e.cordova=!0,e.nativeMobile=!0,e.nativeMobileWrapper="cordova"),l.value===!0&&(u={is:{...e}}),m===!0&&e.mac===!0&&(e.desktop===!0&&e.safari===!0||e.nativeMobile===!0&&e.android!==!0&&e.ios!==!0&&e.ipad!==!0)){delete e.mac,delete e.desktop;const d=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:d,[d]:!0})}e.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete e.desktop,e.mobile=!0)}return e}const b=navigator.userAgent||navigator.vendor||window.opera,g={has:{touch:!1,webStorage:!1},within:{iframe:!1}},c={userAgent:b,is:y(b),has:{touch:m},within:{iframe:window.self!==window.top}},w={install(o){const{$q:i}=o;l.value===!0?(o.onSSRHydrated.push(()=>{Object.assign(i.platform,c),l.value=!1}),i.platform=a.reactive(this)):i.platform=this}};{let o;h(c.has,"webStorage",()=>{if(o!==void 0)return o;try{if(window.localStorage)return o=!0,!0}catch{}return o=!1,!1}),Object.assign(w,c),l.value===!0&&(Object.assign(w,u,g),u=null)}const n=[];function v(o){n[n.length-1](o)}function O(o){c.is.desktop===!0&&(n.push(o),n.length===1&&document.body.addEventListener("focusin",v))}function C(o){const i=n.indexOf(o);i!==-1&&(n.splice(i,1),n.length===0&&document.body.removeEventListener("focusin",v))}function P(o){const i=document.createElement("textarea");i.value=o,i.contentEditable="true",i.style.position="fixed";const t=()=>{};O(t),document.body.appendChild(i),i.focus(),i.select();const r=document.execCommand("copy");return i.remove(),C(t),r}function M(o){return navigator.clipboard!==void 0?navigator.clipboard.writeText(o):new Promise((i,t)=>{const r=P(o);r?i(!0):t(r)})}const f={COPY:"copy_o",COPIED:"copied_o"},S=a.defineComponent({__name:"index",props:{text:{},size:{},transparent:{type:Boolean,default:!0},rounded:{type:Boolean},color:{default:p.COLORS.INFO},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:[Boolean,null]},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{}},setup(o){const i=o,t=a.ref(f.COPY),r=()=>{t.value=f.COPIED,setTimeout(()=>{t.value=f.COPY},2e3)},e=()=>{M(i.text).then(r).catch(s=>{console.log(s)})};return(s,d)=>(a.openBlock(),a.createBlock(a.unref(p.AppButton),a.mergeProps(i,{"icon-middle":t.value,onClick:a.withModifiers(e,["prevent"])}),null,16,["icon-middle"]))}});exports.default=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./index-DQjVfHtn.cjs");function h(o,i,t,r){return Object.defineProperty(o,i,{get:t,set:r,enumerable:!0}),o}const l=a.ref(!1);let u;function x(o,i){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(o)||/(opr)[\/]([\w.]+)/.exec(o)||/(vivaldi)[\/]([\w.]+)/.exec(o)||/(chrome|crios)[\/]([\w.]+)/.exec(o)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(firefox|fxios)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+)/.exec(o)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(o)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:i[0]||""}}function k(o){return/(ipad)/.exec(o)||/(ipod)/.exec(o)||/(windows phone)/.exec(o)||/(iphone)/.exec(o)||/(kindle)/.exec(o)||/(silk)/.exec(o)||/(android)/.exec(o)||/(win)/.exec(o)||/(mac)/.exec(o)||/(linux)/.exec(o)||/(cros)/.exec(o)||/(playbook)/.exec(o)||/(bb)/.exec(o)||/(blackberry)/.exec(o)||[]}const m="ontouchstart"in window||window.navigator.maxTouchPoints>0;function y(o){const i=o.toLowerCase(),t=k(i),r=x(i,t),e={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};r.browser&&(e[r.browser]=!0,e.version=r.version,e.versionNumber=parseInt(r.version,10)),r.platform&&(e[r.platform]=!0);const s=e.android||e.ios||e.bb||e.blackberry||e.ipad||e.iphone||e.ipod||e.kindle||e.playbook||e.silk||e["windows phone"];if(s===!0||i.indexOf("mobile")!==-1?e.mobile=!0:e.desktop=!0,e["windows phone"]&&(e.winphone=!0,delete e["windows phone"]),e.edga||e.edgios||e.edg?(e.edge=!0,r.browser="edge"):e.crios?(e.chrome=!0,r.browser="chrome"):e.fxios&&(e.firefox=!0,r.browser="firefox"),(e.ipod||e.ipad||e.iphone)&&(e.ios=!0),e.vivaldi&&(r.browser="vivaldi",e.vivaldi=!0),(e.chrome||e.opr||e.safari||e.vivaldi||e.mobile===!0&&e.ios!==!0&&s!==!0)&&(e.webkit=!0),e.opr&&(r.browser="opera",e.opera=!0),e.safari&&(e.blackberry||e.bb?(r.browser="blackberry",e.blackberry=!0):e.playbook?(r.browser="playbook",e.playbook=!0):e.android?(r.browser="android",e.android=!0):e.kindle?(r.browser="kindle",e.kindle=!0):e.silk&&(r.browser="silk",e.silk=!0)),e.name=r.browser,e.platform=r.platform,i.indexOf("electron")!==-1)e.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)e.bex=!0;else{if(window.Capacitor!==void 0?(e.capacitor=!0,e.nativeMobile=!0,e.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(e.cordova=!0,e.nativeMobile=!0,e.nativeMobileWrapper="cordova"),l.value===!0&&(u={is:{...e}}),m===!0&&e.mac===!0&&(e.desktop===!0&&e.safari===!0||e.nativeMobile===!0&&e.android!==!0&&e.ios!==!0&&e.ipad!==!0)){delete e.mac,delete e.desktop;const d=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:d,[d]:!0})}e.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete e.desktop,e.mobile=!0)}return e}const b=navigator.userAgent||navigator.vendor||window.opera,g={has:{touch:!1,webStorage:!1},within:{iframe:!1}},c={userAgent:b,is:y(b),has:{touch:m},within:{iframe:window.self!==window.top}},w={install(o){const{$q:i}=o;l.value===!0?(o.onSSRHydrated.push(()=>{Object.assign(i.platform,c),l.value=!1}),i.platform=a.reactive(this)):i.platform=this}};{let o;h(c.has,"webStorage",()=>{if(o!==void 0)return o;try{if(window.localStorage)return o=!0,!0}catch{}return o=!1,!1}),Object.assign(w,c),l.value===!0&&(Object.assign(w,u,g),u=null)}const n=[];function v(o){n[n.length-1](o)}function O(o){c.is.desktop===!0&&(n.push(o),n.length===1&&document.body.addEventListener("focusin",v))}function C(o){const i=n.indexOf(o);i!==-1&&(n.splice(i,1),n.length===0&&document.body.removeEventListener("focusin",v))}function P(o){const i=document.createElement("textarea");i.value=o,i.contentEditable="true",i.style.position="fixed";const t=()=>{};O(t),document.body.appendChild(i),i.focus(),i.select();const r=document.execCommand("copy");return i.remove(),C(t),r}function M(o){return navigator.clipboard!==void 0?navigator.clipboard.writeText(o):new Promise((i,t)=>{const r=P(o);r?i(!0):t(r)})}const f={COPY:"copy_o",COPIED:"copied_o"},S=a.defineComponent({__name:"index",props:{text:{},size:{},transparent:{type:Boolean,default:!0},rounded:{type:Boolean},color:{default:p.COLORS.INFO},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:[Boolean,null]},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{}},setup(o){const i=o,t=a.ref(f.COPY),r=()=>{t.value=f.COPIED,setTimeout(()=>{t.value=f.COPY},2e3)},e=()=>{M(i.text).then(r).catch(s=>{console.log(s)})};return(s,d)=>(a.openBlock(),a.createBlock(a.unref(p.AppButton),a.mergeProps(i,{"icon-middle":t.value,onClick:a.withModifiers(e,["prevent"])}),null,16,["icon-middle"]))}});exports.default=S;
@@ -1,4 +1,4 @@
1
- import { computed as c, markRaw as de, defineComponent as W, getCurrentInstance as X, h as v, ref as J, onBeforeUnmount as $e, Transition as Ee, withDirectives as qe, openBlock as V, createBlock as _e, unref as P, normalizeClass as F, withCtx as Ce, createElementBlock as Y, createCommentVNode as ee, renderSlot as xe, normalizeStyle as Le, defineAsyncComponent as Re } from "vue";
1
+ import { computed as c, markRaw as de, defineComponent as X, getCurrentInstance as G, h as v, ref as J, onBeforeUnmount as $e, Transition as qe, withDirectives as _e, openBlock as V, createBlock as Ee, unref as P, normalizeClass as F, withCtx as xe, createElementBlock as Y, createCommentVNode as ee, renderSlot as Ce, normalizeStyle as Le, defineAsyncComponent as Re } from "vue";
2
2
  const I = {
3
3
  SM: "sm",
4
4
  MD: "md",
@@ -7,11 +7,8 @@ const I = {
7
7
  var fe = /* @__PURE__ */ ((e) => (e.sm = "3px 9px", e.md = "5px 12px", e.lg = "9px 20px", e))(fe || {});
8
8
  const Se = {
9
9
  PRIMARY: "primary",
10
- INFO: "info",
11
- ACCENT: "accent",
12
- NEGATIVE: "negative",
13
- POSITIVE: "positive"
14
- }, G = {
10
+ INFO: "info"
11
+ }, H = {
15
12
  xs: 18,
16
13
  sm: 24,
17
14
  md: 32,
@@ -20,11 +17,11 @@ const Se = {
20
17
  }, ve = {
21
18
  size: String
22
19
  };
23
- function me(e, t = G) {
20
+ function me(e, t = H) {
24
21
  return c(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
25
22
  }
26
23
  function Z(e) {
27
- return de(W(e));
24
+ return de(X(e));
28
25
  }
29
26
  function we(e) {
30
27
  return de(e);
@@ -32,7 +29,7 @@ function we(e) {
32
29
  function Be(e, t) {
33
30
  return e !== void 0 && e() || t;
34
31
  }
35
- function N(e, t) {
32
+ function D(e, t) {
36
33
  return e !== void 0 ? t.concat(e()) : t;
37
34
  }
38
35
  const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
@@ -55,7 +52,7 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
55
52
  sym_o_: "-outlined",
56
53
  sym_r_: "-rounded",
57
54
  sym_s_: "-sharp"
58
- }, Pe = new RegExp("^(" + Object.keys(ge).join("|") + ")"), Te = new RegExp("^(" + Object.keys(pe).join("|") + ")"), ae = new RegExp("^(" + Object.keys(be).join("|") + ")"), Me = /^[Mm]\s?[-+]?\.?\d/, Oe = /^img:/, Ae = /^svguse:/, ze = /^ion-/, je = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, re = Z({
55
+ }, Pe = new RegExp("^(" + Object.keys(ge).join("|") + ")"), Me = new RegExp("^(" + Object.keys(pe).join("|") + ")"), ae = new RegExp("^(" + Object.keys(be).join("|") + ")"), Te = /^[Mm]\s?[-+]?\.?\d/, Oe = /^img:/, Ae = /^svguse:/, ze = /^ion-/, je = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, re = Z({
59
56
  name: "QIcon",
60
57
  props: {
61
58
  ...ve,
@@ -69,7 +66,7 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
69
66
  right: Boolean
70
67
  },
71
68
  setup(e, { slots: t }) {
72
- const { proxy: { $q: a } } = X(), n = me(e), o = c(
69
+ const { proxy: { $q: a } } = G(), n = me(e), o = c(
73
70
  () => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
74
71
  ), l = c(() => {
75
72
  let s, r = e.name;
@@ -87,7 +84,7 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
87
84
  content: d.content !== void 0 ? d.content : " "
88
85
  };
89
86
  }
90
- if (Me.test(r) === !0) {
87
+ if (Te.test(r) === !0) {
91
88
  const [d, h = te] = r.split("|");
92
89
  return {
93
90
  svg: !0,
@@ -111,7 +108,7 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
111
108
  viewBox: h
112
109
  };
113
110
  }
114
- let E = " ";
111
+ let q = " ";
115
112
  const b = r.match(Pe);
116
113
  if (b !== null)
117
114
  s = ge[b[1]](r);
@@ -122,15 +119,15 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
122
119
  else if (ae.test(r) === !0) {
123
120
  s = "notranslate material-symbols";
124
121
  const d = r.match(ae);
125
- d !== null && (r = r.substring(6), s += be[d[1]]), E = r;
122
+ d !== null && (r = r.substring(6), s += be[d[1]]), q = r;
126
123
  } else {
127
124
  s = "notranslate material-icons";
128
- const d = r.match(Te);
129
- d !== null && (r = r.substring(2), s += pe[d[1]]), E = r;
125
+ const d = r.match(Me);
126
+ d !== null && (r = r.substring(2), s += pe[d[1]]), q = r;
130
127
  }
131
128
  return {
132
129
  cls: s,
133
- content: E
130
+ content: q
134
131
  };
135
132
  });
136
133
  return () => {
@@ -140,19 +137,19 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
140
137
  "aria-hidden": "true",
141
138
  role: "presentation"
142
139
  };
143
- return l.value.none === !0 ? v(e.tag, s, Be(t.default)) : l.value.img === !0 ? v(e.tag, s, N(t.default, [
140
+ return l.value.none === !0 ? v(e.tag, s, Be(t.default)) : l.value.img === !0 ? v(e.tag, s, D(t.default, [
144
141
  v("img", { src: l.value.src })
145
- ])) : l.value.svg === !0 ? v(e.tag, s, N(t.default, [
142
+ ])) : l.value.svg === !0 ? v(e.tag, s, D(t.default, [
146
143
  v("svg", {
147
144
  viewBox: l.value.viewBox || "0 0 24 24"
148
145
  }, l.value.nodes)
149
- ])) : l.value.svguse === !0 ? v(e.tag, s, N(t.default, [
146
+ ])) : l.value.svguse === !0 ? v(e.tag, s, D(t.default, [
150
147
  v("svg", {
151
148
  viewBox: l.value.viewBox
152
149
  }, [
153
150
  v("use", { "xlink:href": l.value.src })
154
151
  ])
155
- ])) : (l.value.cls !== void 0 && (s.class += " " + l.value.cls), v(e.tag, s, N(t.default, [
152
+ ])) : (l.value.cls !== void 0 && (s.class += " " + l.value.cls), v(e.tag, s, D(t.default, [
156
153
  l.value.content
157
154
  ])));
158
155
  };
@@ -164,15 +161,15 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
164
161
  },
165
162
  color: String
166
163
  };
167
- function Ne(e) {
164
+ function De(e) {
168
165
  return {
169
- cSize: c(() => e.size in G ? `${G[e.size]}px` : e.size),
166
+ cSize: c(() => e.size in H ? `${H[e.size]}px` : e.size),
170
167
  classes: c(
171
168
  () => "q-spinner" + (e.color ? ` text-${e.color}` : "")
172
169
  )
173
170
  };
174
171
  }
175
- const De = Z({
172
+ const Ke = Z({
176
173
  name: "QSpinner",
177
174
  props: {
178
175
  ...Ie,
@@ -182,7 +179,7 @@ const De = Z({
182
179
  }
183
180
  },
184
181
  setup(e) {
185
- const { cSize: t, classes: a } = Ne(e);
182
+ const { cSize: t, classes: a } = De(e);
186
183
  return () => v("svg", {
187
184
  class: a.value + " q-spinner-mat",
188
185
  width: t.value,
@@ -202,7 +199,7 @@ const De = Z({
202
199
  ]);
203
200
  }
204
201
  });
205
- function Ke(e, t) {
202
+ function Ne(e, t) {
206
203
  const a = e.style;
207
204
  for (const n in t)
208
205
  a[n] = t[n];
@@ -239,7 +236,7 @@ function he(e) {
239
236
  function Fe(e) {
240
237
  e.cancelable !== !1 && e.preventDefault();
241
238
  }
242
- function T(e) {
239
+ function M(e) {
243
240
  e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
244
241
  }
245
242
  function Qe(e, t, a) {
@@ -257,10 +254,10 @@ function Ue(e, t) {
257
254
  function Ye(e) {
258
255
  return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
259
256
  }
260
- function H(e, t) {
257
+ function W(e, t) {
261
258
  return Ye(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
262
259
  }
263
- function Ge(e, t = 250) {
260
+ function He(e, t = 250) {
264
261
  let a = !1, n;
265
262
  return function() {
266
263
  return a === !1 && (a = !0, setTimeout(() => {
@@ -273,8 +270,8 @@ function ie(e, t, a, n) {
273
270
  const o = a.modifiers.color;
274
271
  let l = a.modifiers.center;
275
272
  l = l === !0 || n === !0;
276
- const s = document.createElement("span"), r = document.createElement("span"), E = Ve(e), { left: b, top: d, width: h, height: u } = t.getBoundingClientRect(), y = Math.sqrt(h * h + u * u), p = y / 2, k = `${(h - y) / 2}px`, f = l ? k : `${E.left - b - p}px`, $ = `${(u - y) / 2}px`, B = l ? $ : `${E.top - d - p}px`;
277
- r.className = "q-ripple__inner", Ke(r, {
273
+ const s = document.createElement("span"), r = document.createElement("span"), q = Ve(e), { left: b, top: d, width: h, height: u } = t.getBoundingClientRect(), y = Math.sqrt(h * h + u * u), p = y / 2, k = `${(h - y) / 2}px`, f = l ? k : `${q.left - b - p}px`, $ = `${(u - y) / 2}px`, B = l ? $ : `${q.top - d - p}px`;
274
+ r.className = "q-ripple__inner", Ne(r, {
278
275
  height: `${y}px`,
279
276
  width: `${y}px`,
280
277
  transform: `translate3d(${f},${B},0) scale3d(.2,.2,1)`,
@@ -302,7 +299,7 @@ function oe(e, { modifiers: t, value: a, arg: n }) {
302
299
  keyCodes: [].concat(o.keyCodes || 13)
303
300
  };
304
301
  }
305
- const He = we(
302
+ const We = we(
306
303
  {
307
304
  name: "ripple",
308
305
  beforeMount(e, t) {
@@ -317,8 +314,8 @@ const He = we(
317
314
  start(o) {
318
315
  n.enabled === !0 && o.qSkipRipple !== !0 && o.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && ie(o, e, n, o.qKeyEvent === !0);
319
316
  },
320
- keystart: Ge((o) => {
321
- n.enabled === !0 && o.qSkipRipple !== !0 && H(o, n.modifiers.keyCodes) === !0 && o.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && ie(o, e, n, !0);
317
+ keystart: He((o) => {
318
+ n.enabled === !0 && o.qSkipRipple !== !0 && W(o, n.modifiers.keyCodes) === !0 && o.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && ie(o, e, n, !0);
322
319
  }, 300)
323
320
  };
324
321
  oe(n, t), e.__qripple = n, Qe(n, "main", [
@@ -349,10 +346,10 @@ const He = we(
349
346
  around: "around",
350
347
  evenly: "evenly",
351
348
  stretch: "stretch"
352
- }, We = Object.keys(ye), Xe = {
349
+ }, Xe = Object.keys(ye), Ge = {
353
350
  align: {
354
351
  type: String,
355
- validator: (e) => We.includes(e)
352
+ validator: (e) => Xe.includes(e)
356
353
  }
357
354
  };
358
355
  function Ze(e) {
@@ -406,11 +403,11 @@ const at = {
406
403
  disable: Boolean
407
404
  };
408
405
  function rt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
409
- const a = X(), { props: n, proxy: o, emit: l } = a, s = Je(a), r = c(() => n.disable !== !0 && n.href !== void 0), E = t === !0 ? c(
406
+ const a = G(), { props: n, proxy: o, emit: l } = a, s = Je(a), r = c(() => n.disable !== !0 && n.href !== void 0), q = t === !0 ? c(
410
407
  () => s === !0 && n.disable !== !0 && r.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
411
408
  ) : c(
412
409
  () => s === !0 && r.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
413
- ), b = c(() => E.value === !0 ? B(n.to) : null), d = c(() => b.value !== null), h = c(() => r.value === !0 || d.value === !0), u = c(() => n.type === "a" || h.value === !0 ? "a" : n.tag || e || "div"), y = c(() => r.value === !0 ? {
410
+ ), b = c(() => q.value === !0 ? B(n.to) : null), d = c(() => b.value !== null), h = c(() => r.value === !0 || d.value === !0), u = c(() => n.type === "a" || h.value === !0 ? "a" : n.tag || e || "div"), y = c(() => r.value === !0 ? {
414
411
  href: n.href,
415
412
  target: n.target
416
413
  } : d.value === !0 ? {
@@ -419,22 +416,22 @@ function rt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
419
416
  } : {}), p = c(() => {
420
417
  if (d.value === !1)
421
418
  return -1;
422
- const { matched: m } = b.value, { length: q } = m, C = m[q - 1];
423
- if (C === void 0)
419
+ const { matched: m } = b.value, { length: _ } = m, x = m[_ - 1];
420
+ if (x === void 0)
424
421
  return -1;
425
422
  const L = o.$route.matched;
426
423
  if (L.length === 0)
427
424
  return -1;
428
425
  const R = L.findIndex(
429
- ue.bind(null, C)
426
+ ue.bind(null, x)
430
427
  );
431
428
  if (R !== -1)
432
429
  return R;
433
- const D = le(m[q - 2]);
430
+ const K = le(m[_ - 2]);
434
431
  return (
435
432
  // we are dealing with nested routes
436
- q > 1 && le(C) === D && L[L.length - 1].path !== D ? L.findIndex(
437
- ue.bind(null, m[q - 2])
433
+ _ > 1 && le(x) === K && L[L.length - 1].path !== K ? L.findIndex(
434
+ ue.bind(null, m[_ - 2])
438
435
  ) : R
439
436
  );
440
437
  }), k = c(
@@ -449,7 +446,7 @@ function rt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
449
446
  }
450
447
  return null;
451
448
  }
452
- function S(m, { returnRouterError: q, to: C = n.to, replace: L = n.replace } = {}) {
449
+ function S(m, { returnRouterError: _, to: x = n.to, replace: L = n.replace } = {}) {
453
450
  if (n.disable === !0)
454
451
  return m.preventDefault(), Promise.resolve(!1);
455
452
  if (
@@ -459,15 +456,15 @@ function rt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
459
456
  )
460
457
  return Promise.resolve(!1);
461
458
  m.preventDefault();
462
- const R = o.$router[L === !0 ? "replace" : "push"](C);
463
- return q === !0 ? R : R.then(() => {
459
+ const R = o.$router[L === !0 ? "replace" : "push"](x);
460
+ return _ === !0 ? R : R.then(() => {
464
461
  }).catch(() => {
465
462
  });
466
463
  }
467
464
  function w(m) {
468
465
  if (d.value === !0) {
469
- const q = (C) => S(m, C);
470
- l("click", m, q), m.defaultPrevented !== !0 && q();
466
+ const _ = (x) => S(m, x);
467
+ l("click", m, _), m.defaultPrevented !== !0 && _();
471
468
  } else
472
469
  l("click", m);
473
470
  }
@@ -535,7 +532,7 @@ const ct = {
535
532
  default: !0
536
533
  },
537
534
  align: {
538
- ...Xe.align,
535
+ ...Ge.align,
539
536
  default: "center"
540
537
  },
541
538
  stack: Boolean,
@@ -552,7 +549,7 @@ const ct = {
552
549
  function ft(e) {
553
550
  const t = me(e, it), a = Ze(e), { hasRouterLink: n, hasLink: o, linkTag: l, linkAttrs: s, navigateOnClick: r } = rt({
554
551
  fallbackTag: "button"
555
- }), E = c(() => {
552
+ }), q = c(() => {
556
553
  const f = e.fab === !1 && e.fabMini === !1 ? t.value : {};
557
554
  return e.padding !== void 0 ? Object.assign({}, f, {
558
555
  padding: e.padding.split(/\s+/).map(($) => $ in ce ? ce[$] + "px" : $).join(" "),
@@ -581,7 +578,7 @@ function ft(e) {
581
578
  );
582
579
  return {
583
580
  classes: p,
584
- style: E,
581
+ style: q,
585
582
  innerClasses: k,
586
583
  attributes: y,
587
584
  hasLink: o,
@@ -590,8 +587,8 @@ function ft(e) {
590
587
  isActionable: d
591
588
  };
592
589
  }
593
- const { passiveCapture: _ } = Q;
594
- let M = null, O = null, A = null;
590
+ const { passiveCapture: E } = Q;
591
+ let T = null, O = null, A = null;
595
592
  const vt = Z({
596
593
  name: "QBtn",
597
594
  props: {
@@ -602,12 +599,12 @@ const vt = Z({
602
599
  },
603
600
  emits: ["click", "keydown", "mousedown", "keyup"],
604
601
  setup(e, { slots: t, emit: a }) {
605
- const { proxy: n } = X(), {
602
+ const { proxy: n } = G(), {
606
603
  classes: o,
607
604
  style: l,
608
605
  innerClasses: s,
609
606
  attributes: r,
610
- hasLink: E,
607
+ hasLink: q,
611
608
  linkTag: b,
612
609
  navigateOnClick: d,
613
610
  isActionable: h
@@ -616,7 +613,7 @@ const vt = Z({
616
613
  const $ = c(
617
614
  () => e.label !== void 0 && e.label !== null && e.label !== ""
618
615
  ), B = c(() => e.disable === !0 || e.ripple === !1 ? !1 : {
619
- keyCodes: E.value === !0 ? [13, 32] : [13],
616
+ keyCodes: q.value === !0 ? [13, 32] : [13],
620
617
  ...e.ripple === !0 ? {} : e.ripple
621
618
  }), S = c(() => ({ center: e.round })), w = c(() => {
622
619
  const i = Math.max(0, Math.min(100, e.percentage));
@@ -632,9 +629,9 @@ const vt = Z({
632
629
  };
633
630
  if (h.value === !0) {
634
631
  const i = {
635
- onClick: C,
632
+ onClick: x,
636
633
  onKeydown: L,
637
- onMousedown: D
634
+ onMousedown: K
638
635
  };
639
636
  if (n.$q.platform.has.touch === !0) {
640
637
  const g = e.onTouchstart !== void 0 ? "" : "Passive";
@@ -644,16 +641,16 @@ const vt = Z({
644
641
  }
645
642
  return {
646
643
  // needed; especially for disabled <a> tags
647
- onClick: T
644
+ onClick: M
648
645
  };
649
- }), q = c(() => ({
646
+ }), _ = c(() => ({
650
647
  ref: u,
651
648
  class: "q-btn q-btn-item non-selectable no-outline " + o.value,
652
649
  style: l.value,
653
650
  ...r.value,
654
651
  ...m.value
655
652
  }));
656
- function C(i) {
653
+ function x(i) {
657
654
  if (u.value !== null) {
658
655
  if (i !== void 0) {
659
656
  if (i.defaultPrevented === !0)
@@ -661,32 +658,32 @@ const vt = Z({
661
658
  const g = document.activeElement;
662
659
  if (e.type === "submit" && g !== document.body && u.value.contains(g) === !1 && g.contains(u.value) === !1) {
663
660
  u.value.focus();
664
- const K = () => {
665
- document.removeEventListener("keydown", T, !0), document.removeEventListener("keyup", K, _), u.value !== null && u.value.removeEventListener("blur", K, _);
661
+ const N = () => {
662
+ document.removeEventListener("keydown", M, !0), document.removeEventListener("keyup", N, E), u.value !== null && u.value.removeEventListener("blur", N, E);
666
663
  };
667
- document.addEventListener("keydown", T, !0), document.addEventListener("keyup", K, _), u.value.addEventListener("blur", K, _);
664
+ document.addEventListener("keydown", M, !0), document.addEventListener("keyup", N, E), u.value.addEventListener("blur", N, E);
668
665
  }
669
666
  }
670
667
  d(i);
671
668
  }
672
669
  }
673
670
  function L(i) {
674
- u.value !== null && (a("keydown", i), H(i, [13, 32]) === !0 && O !== u.value && (O !== null && z(), i.defaultPrevented !== !0 && (u.value.focus(), O = u.value, u.value.classList.add("q-btn--active"), document.addEventListener("keyup", x, !0), u.value.addEventListener("blur", x, _)), T(i)));
671
+ u.value !== null && (a("keydown", i), W(i, [13, 32]) === !0 && O !== u.value && (O !== null && z(), i.defaultPrevented !== !0 && (u.value.focus(), O = u.value, u.value.classList.add("q-btn--active"), document.addEventListener("keyup", C, !0), u.value.addEventListener("blur", C, E)), M(i)));
675
672
  }
676
673
  function R(i) {
677
- u.value !== null && (a("touchstart", i), i.defaultPrevented !== !0 && (M !== u.value && (M !== null && z(), M = u.value, p = i.target, p.addEventListener("touchcancel", x, _), p.addEventListener("touchend", x, _)), k = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
674
+ u.value !== null && (a("touchstart", i), i.defaultPrevented !== !0 && (T !== u.value && (T !== null && z(), T = u.value, p = i.target, p.addEventListener("touchcancel", C, E), p.addEventListener("touchend", C, E)), k = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
678
675
  f = null, k = !1;
679
676
  }, 200)));
680
677
  }
681
- function D(i) {
682
- u.value !== null && (i.qSkipRipple = k === !0, a("mousedown", i), i.defaultPrevented !== !0 && A !== u.value && (A !== null && z(), A = u.value, u.value.classList.add("q-btn--active"), document.addEventListener("mouseup", x, _)));
678
+ function K(i) {
679
+ u.value !== null && (i.qSkipRipple = k === !0, a("mousedown", i), i.defaultPrevented !== !0 && A !== u.value && (A !== null && z(), A = u.value, u.value.classList.add("q-btn--active"), document.addEventListener("mouseup", C, E)));
683
680
  }
684
- function x(i) {
681
+ function C(i) {
685
682
  if (u.value !== null && !(i !== void 0 && i.type === "blur" && document.activeElement === u.value)) {
686
683
  if (i !== void 0 && i.type === "keyup") {
687
- if (O === u.value && H(i, [13, 32]) === !0) {
684
+ if (O === u.value && W(i, [13, 32]) === !0) {
688
685
  const g = new MouseEvent("click", i);
689
- g.qKeyEvent = !0, i.defaultPrevented === !0 && Fe(g), i.cancelBubble === !0 && he(g), u.value.dispatchEvent(g), T(i), i.qKeyEvent = !0;
686
+ g.qKeyEvent = !0, i.defaultPrevented === !0 && Fe(g), i.cancelBubble === !0 && he(g), u.value.dispatchEvent(g), M(i), i.qKeyEvent = !0;
690
687
  }
691
688
  a("keyup", i);
692
689
  }
@@ -695,16 +692,16 @@ const vt = Z({
695
692
  }
696
693
  function z(i) {
697
694
  const g = y.value;
698
- i !== !0 && (M === u.value || A === u.value) && g !== null && g !== document.activeElement && (g.setAttribute("tabindex", -1), g.focus()), M === u.value && (p !== null && (p.removeEventListener("touchcancel", x, _), p.removeEventListener("touchend", x, _)), M = p = null), A === u.value && (document.removeEventListener("mouseup", x, _), A = null), O === u.value && (document.removeEventListener("keyup", x, !0), u.value !== null && u.value.removeEventListener("blur", x, _), O = null), u.value !== null && u.value.classList.remove("q-btn--active");
695
+ i !== !0 && (T === u.value || A === u.value) && g !== null && g !== document.activeElement && (g.setAttribute("tabindex", -1), g.focus()), T === u.value && (p !== null && (p.removeEventListener("touchcancel", C, E), p.removeEventListener("touchend", C, E)), T = p = null), A === u.value && (document.removeEventListener("mouseup", C, E), A = null), O === u.value && (document.removeEventListener("keyup", C, !0), u.value !== null && u.value.removeEventListener("blur", C, E), O = null), u.value !== null && u.value.classList.remove("q-btn--active");
699
696
  }
700
697
  function j(i) {
701
- T(i), i.qSkipRipple = !0;
698
+ M(i), i.qSkipRipple = !0;
702
699
  }
703
700
  return $e(() => {
704
701
  z(!0);
705
702
  }), Object.assign(n, {
706
703
  click: (i) => {
707
- h.value === !0 && C(i);
704
+ h.value === !0 && x(i);
708
705
  }
709
706
  }), () => {
710
707
  let i = [];
@@ -716,7 +713,7 @@ const vt = Z({
716
713
  })
717
714
  ), $.value === !0 && i.push(
718
715
  v("span", { class: "block" }, [e.label])
719
- ), i = N(t.default, i), e.iconRight !== void 0 && e.round === !1 && i.push(
716
+ ), i = D(t.default, i), e.iconRight !== void 0 && e.round === !1 && i.push(
720
717
  v(re, {
721
718
  name: e.iconRight,
722
719
  right: e.stack !== !0 && $.value === !0,
@@ -743,22 +740,22 @@ const vt = Z({
743
740
  class: "q-btn__content text-center col items-center q-anchor--skip " + s.value
744
741
  }, i)
745
742
  ), e.loading !== null && g.push(
746
- v(Ee, {
743
+ v(qe, {
747
744
  name: "q-transition--fade"
748
745
  }, () => e.loading === !0 ? [
749
746
  v("span", {
750
747
  key: "loading",
751
748
  class: "absolute-full flex flex-center"
752
- }, t.loading !== void 0 ? t.loading() : [v(De)])
749
+ }, t.loading !== void 0 ? t.loading() : [v(Ke)])
753
750
  ] : null)
754
- ), qe(
751
+ ), _e(
755
752
  v(
756
753
  b.value,
757
- q.value,
754
+ _.value,
758
755
  g
759
756
  ),
760
757
  [[
761
- He,
758
+ We,
762
759
  B.value,
763
760
  void 0,
764
761
  S.value
@@ -766,7 +763,7 @@ const vt = Z({
766
763
  );
767
764
  };
768
765
  }
769
- }), mt = /* @__PURE__ */ W({
766
+ }), mt = /* @__PURE__ */ X({
770
767
  __name: "index",
771
768
  props: {
772
769
  size: {},
@@ -801,7 +798,7 @@ const vt = Z({
801
798
  },
802
799
  `app-btn_${n}`
803
800
  ]);
804
- return (l, s) => (V(), _e(P(vt), {
801
+ return (l, s) => (V(), Ee(P(vt), {
805
802
  "no-caps": "",
806
803
  unelevated: "",
807
804
  class: F(o.value),
@@ -815,7 +812,7 @@ const vt = Z({
815
812
  "aria-label": l.ariaLabel,
816
813
  onClick: s[0] || (s[0] = (r) => l.$emit("click", r))
817
814
  }, {
818
- default: Ce(() => [
815
+ default: xe(() => [
819
816
  l.iconLeft || l.iconMiddle ? (V(), Y("i", {
820
817
  key: 0,
821
818
  class: F([
@@ -825,7 +822,7 @@ const vt = Z({
825
822
  l.transparent ? `text-${P(n)}` : "text-secondary"
826
823
  ])
827
824
  }, null, 2)) : ee("", !0),
828
- xe(l.$slots, "default", {}, void 0, !0),
825
+ Ce(l.$slots, "default", {}, void 0, !0),
829
826
  l.iconRight ? (V(), Y("i", {
830
827
  key: 1,
831
828
  class: F([
@@ -844,7 +841,7 @@ const vt = Z({
844
841
  for (const [n, o] of t)
845
842
  a[n] = o;
846
843
  return a;
847
- }, bt = /* @__PURE__ */ ke(mt, [["__scopeId", "data-v-42f3b7cf"]]), gt = /* @__PURE__ */ W({
844
+ }, bt = /* @__PURE__ */ ke(mt, [["__scopeId", "data-v-42f3b7cf"]]), gt = /* @__PURE__ */ X({
848
845
  __name: "index",
849
846
  props: {
850
847
  name: {},
@@ -858,7 +855,7 @@ const vt = Z({
858
855
  }, null, 6));
859
856
  }
860
857
  }), ht = /* @__PURE__ */ ke(gt, [["__scopeId", "data-v-73419357"]]), yt = Re(
861
- () => import("./index-DEntzJGe.js")
858
+ () => import("./index-qLVhfsl_.js")
862
859
  );
863
860
  export {
864
861
  bt as A,
@@ -0,0 +1 @@
1
+ "use strict";const n=require("vue"),z={SM:"sm",MD:"md",LG:"lg"};var ne=(e=>(e.sm="3px 9px",e.md="5px 12px",e.lg="9px 20px",e))(ne||{});const ae={PRIMARY:"primary",INFO:"info"},V={xs:18,sm:24,md:32,lg:38,xl:46},re={size:String};function oe(e,t=V){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Q(e){return n.markRaw(n.defineComponent(e))}function fe(e){return n.markRaw(e)}function ve(e,t){return e!==void 0&&e()||t}function j(e,t){return e!==void 0?t.concat(e()):t}const U="0 0 24 24",Y=e=>e,N=e=>`ionicons ${e}`,ie={"mdi-":e=>`mdi ${e}`,"icon-":Y,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":N,"ion-ios":N,"ion-logo":N,"iconfont ":Y,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},ue={o_:"-outlined",r_:"-round",s_:"-sharp"},le={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},me=new RegExp("^("+Object.keys(ie).join("|")+")"),pe=new RegExp("^("+Object.keys(ue).join("|")+")"),H=new RegExp("^("+Object.keys(le).join("|")+")"),ge=/^[Mm]\s?[-+]?\.?\d/,he=/^img:/,be=/^svguse:/,ye=/^ion-/,ke=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,W=Q({name:"QIcon",props:{...re,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:r}}=n.getCurrentInstance(),a=oe(e),u=n.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),l=n.computed(()=>{let c,o=e.name;if(o==="none"||!o)return{none:!0};if(r.iconMapFn!==null){const d=r.iconMapFn(o);if(d!==void 0)if(d.icon!==void 0){if(o=d.icon,o==="none"||!o)return{none:!0}}else return{cls:d.cls,content:d.content!==void 0?d.content:" "}}if(ge.test(o)===!0){const[d,h=U]=o.split("|");return{svg:!0,viewBox:h,nodes:d.split("&&").map(s=>{const[b,p,y]=s.split("@@");return n.h("path",{style:p,d:b,transform:y})})}}if(he.test(o)===!0)return{img:!0,src:o.substring(4)};if(be.test(o)===!0){const[d,h=U]=o.split("|");return{svguse:!0,src:d.substring(7),viewBox:h}}let $=" ";const g=o.match(me);if(g!==null)c=ie[g[1]](o);else if(ke.test(o)===!0)c=o;else if(ye.test(o)===!0)c=`ionicons ion-${r.platform.is.ios===!0?"ios":"md"}${o.substring(3)}`;else if(H.test(o)===!0){c="notranslate material-symbols";const d=o.match(H);d!==null&&(o=o.substring(6),c+=le[d[1]]),$=o}else{c="notranslate material-icons";const d=o.match(pe);d!==null&&(o=o.substring(2),c+=ue[d[1]]),$=o}return{cls:c,content:$}});return()=>{const c={class:u.value,style:a.value,"aria-hidden":"true",role:"presentation"};return l.value.none===!0?n.h(e.tag,c,ve(t.default)):l.value.img===!0?n.h(e.tag,c,j(t.default,[n.h("img",{src:l.value.src})])):l.value.svg===!0?n.h(e.tag,c,j(t.default,[n.h("svg",{viewBox:l.value.viewBox||"0 0 24 24"},l.value.nodes)])):l.value.svguse===!0?n.h(e.tag,c,j(t.default,[n.h("svg",{viewBox:l.value.viewBox},[n.h("use",{"xlink:href":l.value.src})])])):(l.value.cls!==void 0&&(c.class+=" "+l.value.cls),n.h(e.tag,c,j(t.default,[l.value.content])))}}}),$e={size:{type:[String,Number],default:"1em"},color:String};function qe(e){return{cSize:n.computed(()=>e.size in V?`${V[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Ce=Q({name:"QSpinner",props:{...$e,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:r}=qe(e);return()=>n.h("svg",{class:r.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 Ee(e,t){const r=e.style;for(const a in t)r[a]=t[a]}const K={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(K,{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 _e(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 se(e){e.stopPropagation()}function Be(e){e.cancelable!==!1&&e.preventDefault()}function w(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Le(e,t,r){const a=`__q_${t}_evt`;e[a]=e[a]!==void 0?e[a].concat(r):r,r.forEach(u=>{u[0].addEventListener(u[1],e[u[2]],K[u[3]])})}function xe(e,t){const r=`__q_${t}_evt`;e[r]!==void 0&&(e[r].forEach(a=>{a[0].removeEventListener(a[1],e[a[2]],K[a[3]])}),e[r]=void 0)}function Re(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function F(e,t){return Re(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Se(e,t=250){let r=!1,a;return function(){return r===!1&&(r=!0,setTimeout(()=>{r=!1},t),a=e.apply(this,arguments)),a}}function X(e,t,r,a){r.modifiers.stop===!0&&se(e);const u=r.modifiers.color;let l=r.modifiers.center;l=l===!0||a===!0;const c=document.createElement("span"),o=document.createElement("span"),$=_e(e),{left:g,top:d,width:h,height:s}=t.getBoundingClientRect(),b=Math.sqrt(h*h+s*s),p=b/2,y=`${(h-b)/2}px`,f=l?y:`${$.left-g-p}px`,k=`${(s-b)/2}px`,S=l?k:`${$.top-d-p}px`;o.className="q-ripple__inner",Ee(o,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${f},${S},0) scale3d(.2,.2,1)`,opacity:0}),c.className=`q-ripple${u?" text-"+u:""}`,c.setAttribute("dir","ltr"),c.appendChild(o),t.appendChild(c);const x=()=>{c.remove(),clearTimeout(R)};r.abort.push(x);let R=setTimeout(()=>{o.classList.add("q-ripple__inner--enter"),o.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,o.style.opacity=.2,R=setTimeout(()=>{o.classList.remove("q-ripple__inner--enter"),o.classList.add("q-ripple__inner--leave"),o.style.opacity=0,R=setTimeout(()=>{c.remove(),r.abort.splice(r.abort.indexOf(x),1)},275)},250)},50)}function G(e,{modifiers:t,value:r,arg:a}){const u=Object.assign({},e.cfg.ripple,t,r);e.modifiers={early:u.early===!0,stop:u.stop===!0,center:u.center===!0,color:u.color||a,keyCodes:[].concat(u.keyCodes||13)}}const we=fe({name:"ripple",beforeMount(e,t){const r=t.instance.$.appContext.config.globalProperties.$q.config||{};if(r.ripple===!1)return;const a={cfg:r,enabled:t.value!==!1,modifiers:{},abort:[],start(u){a.enabled===!0&&u.qSkipRipple!==!0&&u.type===(a.modifiers.early===!0?"pointerdown":"click")&&X(u,e,a,u.qKeyEvent===!0)},keystart:Se(u=>{a.enabled===!0&&u.qSkipRipple!==!0&&F(u,a.modifiers.keyCodes)===!0&&u.type===`key${a.modifiers.early===!0?"down":"up"}`&&X(u,e,a,!0)},300)};G(a,t),e.__qripple=a,Le(a,"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 r=e.__qripple;r!==void 0&&(r.enabled=t.value!==!1,r.enabled===!0&&Object(t.value)===t.value&&G(r,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(r=>{r()}),xe(t,"main"),delete e._qripple)}}),ce={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Pe=Object.keys(ce),Me={align:{type:String,validator:e=>Pe.includes(e)}};function Te(e){return n.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${ce[t]}`})}function Oe(e){return e.appContext.config.globalProperties.$router!==void 0}function Z(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function J(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ae(e,t){for(const r in t){const a=t[r],u=e[r];if(typeof a=="string"){if(a!==u)return!1}else if(Array.isArray(u)===!1||u.length!==a.length||a.some((l,c)=>l!==u[c]))return!1}return!0}function ee(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((r,a)=>r===t[a]):e.length===1&&e[0]===t}function ze(e,t){return Array.isArray(e)===!0?ee(e,t):Array.isArray(t)===!0?ee(t,e):e===t}function je(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(ze(e[r],t[r])===!1)return!1;return!0}const Ie={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean};function De({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const r=n.getCurrentInstance(),{props:a,proxy:u,emit:l}=r,c=Oe(r),o=n.computed(()=>a.disable!==!0&&a.href!==void 0),$=t===!0?n.computed(()=>c===!0&&a.disable!==!0&&o.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):n.computed(()=>c===!0&&o.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),g=n.computed(()=>$.value===!0?S(a.to):null),d=n.computed(()=>g.value!==null),h=n.computed(()=>o.value===!0||d.value===!0),s=n.computed(()=>a.type==="a"||h.value===!0?"a":a.tag||e||"div"),b=n.computed(()=>o.value===!0?{href:a.href,target:a.target}:d.value===!0?{href:g.value.href,target:a.target}:{}),p=n.computed(()=>{if(d.value===!1)return-1;const{matched:v}=g.value,{length:q}=v,E=v[q-1];if(E===void 0)return-1;const B=u.$route.matched;if(B.length===0)return-1;const L=B.findIndex(J.bind(null,E));if(L!==-1)return L;const I=Z(v[q-2]);return q>1&&Z(E)===I&&B[B.length-1].path!==I?B.findIndex(J.bind(null,v[q-2])):L}),y=n.computed(()=>d.value===!0&&p.value!==-1&&Ae(u.$route.params,g.value.params)),f=n.computed(()=>y.value===!0&&p.value===u.$route.matched.length-1&&je(u.$route.params,g.value.params)),k=n.computed(()=>d.value===!0?f.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":y.value===!0?` ${a.activeClass}`:"":"");function S(v){try{return u.$router.resolve(v)}catch{}return null}function x(v,{returnRouterError:q,to:E=a.to,replace:B=a.replace}={}){if(a.disable===!0)return v.preventDefault(),Promise.resolve(!1);if(v.metaKey||v.altKey||v.ctrlKey||v.shiftKey||v.button!==void 0&&v.button!==0||a.target==="_blank")return Promise.resolve(!1);v.preventDefault();const L=u.$router[B===!0?"replace":"push"](E);return q===!0?L:L.then(()=>{}).catch(()=>{})}function R(v){if(d.value===!0){const q=E=>x(v,E);l("click",v,q),v.defaultPrevented!==!0&&q()}else l("click",v)}return{hasRouterLink:d,hasHrefLink:o,hasLink:h,linkTag:s,resolvedLink:g,linkIsActive:y,linkIsExactActive:f,linkClass:k,linkAttrs:b,getLink:S,navigateToRouterLink:x,navigateOnClick:R}}const te={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Ke={xs:8,sm:10,md:14,lg:20,xl:24},Ne=["button","submit","reset"],Ve=/[^\s]\/[^\s]/,Fe=["flat","outline","push","unelevated"];function Qe(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Ue={...re,...Ie,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Fe.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:{...Me.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ye={...Ue,round:Boolean};function He(e){const t=oe(e,Ke),r=Te(e),{hasRouterLink:a,hasLink:u,linkTag:l,linkAttrs:c,navigateOnClick:o}=De({fallbackTag:"button"}),$=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 te?te[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(()=>Qe(e,"standard")),b=n.computed(()=>{const f={tabindex:h.value};return u.value===!0?Object.assign(f,c.value):Ne.includes(e.type)===!0&&(f.type=e.type),l.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),a.value!==!0&&Ve.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}),p=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(()=>r.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:$,innerClasses:y,attributes:b,hasLink:u,linkTag:l,navigateOnClick:o,isActionable:d}}const{passiveCapture:C}=K;let P=null,M=null,T=null;const We=Q({name:"QBtn",props:{...Ye,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:r}){const{proxy:a}=n.getCurrentInstance(),{classes:u,style:l,innerClasses:c,attributes:o,hasLink:$,linkTag:g,navigateOnClick:d,isActionable:h}=He(e),s=n.ref(null),b=n.ref(null);let p=null,y,f=null;const k=n.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),S=n.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:$.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),x=n.computed(()=>({center:e.round})),R=n.computed(()=>{const i=Math.max(0,Math.min(100,e.percentage));return i>0?{transition:"transform 0.6s",transform:`translateX(${i-100}%)`}:{}}),v=n.computed(()=>{if(e.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(h.value===!0){const i={onClick:E,onKeydown:B,onMousedown:I};if(a.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";i[`onTouchstart${m}`]=L}return i}return{onClick:w}}),q=n.computed(()=>({ref:s,class:"q-btn q-btn-item non-selectable no-outline "+u.value,style:l.value,...o.value,...v.value}));function E(i){if(s.value!==null){if(i!==void 0){if(i.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&s.value.contains(m)===!1&&m.contains(s.value)===!1){s.value.focus();const D=()=>{document.removeEventListener("keydown",w,!0),document.removeEventListener("keyup",D,C),s.value!==null&&s.value.removeEventListener("blur",D,C)};document.addEventListener("keydown",w,!0),document.addEventListener("keyup",D,C),s.value.addEventListener("blur",D,C)}}d(i)}}function B(i){s.value!==null&&(r("keydown",i),F(i,[13,32])===!0&&M!==s.value&&(M!==null&&O(),i.defaultPrevented!==!0&&(s.value.focus(),M=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("keyup",_,!0),s.value.addEventListener("blur",_,C)),w(i)))}function L(i){s.value!==null&&(r("touchstart",i),i.defaultPrevented!==!0&&(P!==s.value&&(P!==null&&O(),P=s.value,p=i.target,p.addEventListener("touchcancel",_,C),p.addEventListener("touchend",_,C)),y=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,y=!1},200)))}function I(i){s.value!==null&&(i.qSkipRipple=y===!0,r("mousedown",i),i.defaultPrevented!==!0&&T!==s.value&&(T!==null&&O(),T=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("mouseup",_,C)))}function _(i){if(s.value!==null&&!(i!==void 0&&i.type==="blur"&&document.activeElement===s.value)){if(i!==void 0&&i.type==="keyup"){if(M===s.value&&F(i,[13,32])===!0){const m=new MouseEvent("click",i);m.qKeyEvent=!0,i.defaultPrevented===!0&&Be(m),i.cancelBubble===!0&&se(m),s.value.dispatchEvent(m),w(i),i.qKeyEvent=!0}r("keyup",i)}O()}}function O(i){const m=b.value;i!==!0&&(P===s.value||T===s.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),P===s.value&&(p!==null&&(p.removeEventListener("touchcancel",_,C),p.removeEventListener("touchend",_,C)),P=p=null),T===s.value&&(document.removeEventListener("mouseup",_,C),T=null),M===s.value&&(document.removeEventListener("keyup",_,!0),s.value!==null&&s.value.removeEventListener("blur",_,C),M=null),s.value!==null&&s.value.classList.remove("q-btn--active")}function A(i){w(i),i.qSkipRipple=!0}return n.onBeforeUnmount(()=>{O(!0)}),Object.assign(a,{click:i=>{h.value===!0&&E(i)}}),()=>{let i=[];e.icon!==void 0&&i.push(n.h(W,{name:e.icon,left:e.stack!==!0&&k.value===!0,role:"img"})),k.value===!0&&i.push(n.h("span",{class:"block"},[e.label])),i=j(t.default,i),e.iconRight!==void 0&&e.round===!1&&i.push(n.h(W,{name:e.iconRight,right:e.stack!==!0&&k.value===!0,role:"img"}));const m=[n.h("span",{class:"q-focus-helper",ref:b})];return e.loading===!0&&e.percentage!==void 0&&m.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:R.value})])),m.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+c.value},i)),e.loading!==null&&m.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(Ce)])]:null)),n.withDirectives(n.h(g.value,q.value,m),[[we,S.value,void 0,x.value]])}}}),Xe=n.defineComponent({__name:"index",props:{size:{},transparent:{type:Boolean},rounded:{type:Boolean},color:{},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:[Boolean,null]},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{}},emits:["click"],setup(e){const t=e,{size:r=z.MD,color:a=ae.PRIMARY}=t,u=n.computed(()=>["app-btn",{"app-btn_default":!t.transparent,"app-btn_trans":t.transparent,"app-btn_rounded":t.rounded,"app-btn_sm":r===z.SM,"app-btn_md":r===z.MD,"app-btn_lg":r===z.LG,"app-btn_icon-left":t.iconLeft,"app-btn_icon-right":t.iconRight,"app-btn_icon-middle":t.iconMiddle},`app-btn_${a}`]);return(l,c)=>(n.openBlock(),n.createBlock(n.unref(We),{"no-caps":"",unelevated:"",class:n.normalizeClass(u.value),padding:n.unref(ne)[n.unref(r)||n.unref(z).MD],loading:l.loading,disabled:l.disabled||void 0,to:l.to,href:l.href,target:l.target,type:l.submit?"submit":void 0,"aria-label":l.ariaLabel,onClick:c[0]||(c[0]=o=>l.$emit("click",o))},{default:n.withCtx(()=>[l.iconLeft||l.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",l.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${l.iconLeft||l.iconMiddle}`,l.transparent?`text-${n.unref(a)}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),n.renderSlot(l.$slots,"default",{},void 0,!0),l.iconRight?(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${l.iconRight}`,l.transparent?`text-${n.unref(a)}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disabled","to","href","target","type","aria-label"]))}}),de=(e,t)=>{const r=e.__vccOpts||e;for(const[a,u]of t)r[a]=u;return r},Ge=de(Xe,[["__scopeId","data-v-42f3b7cf"]]),Ze=n.defineComponent({__name:"index",props:{name:{},size:{},color:{}},setup(e){return(t,r)=>(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))}}),Je=de(Ze,[["__scopeId","data-v-73419357"]]),et=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-D7ru9fT7.cjs")));exports.AppButton=Ge;exports.AppButtonCopy=et;exports.COLORS=ae;exports.index=Je;
@@ -1,5 +1,5 @@
1
1
  import { ref as b, reactive as v, defineComponent as h, openBlock as x, createBlock as k, unref as y, mergeProps as g, withModifiers as O } from "vue";
2
- import { C, A as P } from "./index-BS3pXsq7.js";
2
+ import { A as C, C as P } from "./index-D81NIeCb.js";
3
3
  function M(o, i, t, r) {
4
4
  return Object.defineProperty(o, i, {
5
5
  get: t,
@@ -151,7 +151,7 @@ const d = {
151
151
  size: {},
152
152
  transparent: { type: Boolean, default: !0 },
153
153
  rounded: { type: Boolean },
154
- color: { default: C.INFO },
154
+ color: { default: P.INFO },
155
155
  iconLeft: {},
156
156
  iconRight: {},
157
157
  iconMiddle: {},
@@ -173,7 +173,7 @@ const d = {
173
173
  console.log(n);
174
174
  });
175
175
  };
176
- return (n, c) => (x(), k(y(P), g(i, {
176
+ return (n, c) => (x(), k(y(C), g(i, {
177
177
  "icon-middle": t.value,
178
178
  onClick: O(e, ["prevent"])
179
179
  }), null, 16, ["icon-middle"]));
package/dist/uikit.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const t=require("./index-T5AGm1HZ.cjs");exports.AppButton=t.AppButton;exports.AppButtonCopy=t.AppButtonCopy;exports.AppIcon=t.index;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const t=require("./index-DQjVfHtn.cjs");exports.AppButton=t.AppButton;exports.AppButtonCopy=t.AppButtonCopy;exports.AppIcon=t.index;
package/dist/uikit.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { A as a, a as A, i as n } from "./index-BS3pXsq7.js";
2
+ import { A as a, a as A, i as n } from "./index-D81NIeCb.js";
3
3
  export {
4
4
  a as AppButton,
5
5
  A as AppButtonCopy,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@validol4ik/uikit",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "main": "./dist/uikit.cjs",
6
6
  "module": "./dist/uikit.es.js",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@quasar/extras": "^1.16.13",
30
30
  "quasar": "^2.17.2",
31
- "vue": "^3.5.12"
31
+ "vue": "^3.5.13"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@chromatic-com/storybook": "^3.2.2",
@@ -1 +0,0 @@
1
- "use strict";const n=require("vue"),z={SM:"sm",MD:"md",LG:"lg"};var ne=(e=>(e.sm="3px 9px",e.md="5px 12px",e.lg="9px 20px",e))(ne||{});const ae={PRIMARY:"primary",INFO:"info",ACCENT:"accent",NEGATIVE:"negative",POSITIVE:"positive"},V={xs:18,sm:24,md:32,lg:38,xl:46},re={size:String};function oe(e,t=V){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Q(e){return n.markRaw(n.defineComponent(e))}function fe(e){return n.markRaw(e)}function ve(e,t){return e!==void 0&&e()||t}function j(e,t){return e!==void 0?t.concat(e()):t}const U="0 0 24 24",Y=e=>e,K=e=>`ionicons ${e}`,ie={"mdi-":e=>`mdi ${e}`,"icon-":Y,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":K,"ion-ios":K,"ion-logo":K,"iconfont ":Y,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},ue={o_:"-outlined",r_:"-round",s_:"-sharp"},le={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},me=new RegExp("^("+Object.keys(ie).join("|")+")"),pe=new RegExp("^("+Object.keys(ue).join("|")+")"),G=new RegExp("^("+Object.keys(le).join("|")+")"),ge=/^[Mm]\s?[-+]?\.?\d/,he=/^img:/,be=/^svguse:/,ye=/^ion-/,ke=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,H=Q({name:"QIcon",props:{...re,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:r}}=n.getCurrentInstance(),a=oe(e),u=n.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),l=n.computed(()=>{let c,o=e.name;if(o==="none"||!o)return{none:!0};if(r.iconMapFn!==null){const d=r.iconMapFn(o);if(d!==void 0)if(d.icon!==void 0){if(o=d.icon,o==="none"||!o)return{none:!0}}else return{cls:d.cls,content:d.content!==void 0?d.content:" "}}if(ge.test(o)===!0){const[d,h=U]=o.split("|");return{svg:!0,viewBox:h,nodes:d.split("&&").map(s=>{const[b,p,y]=s.split("@@");return n.h("path",{style:p,d:b,transform:y})})}}if(he.test(o)===!0)return{img:!0,src:o.substring(4)};if(be.test(o)===!0){const[d,h=U]=o.split("|");return{svguse:!0,src:d.substring(7),viewBox:h}}let C=" ";const g=o.match(me);if(g!==null)c=ie[g[1]](o);else if(ke.test(o)===!0)c=o;else if(ye.test(o)===!0)c=`ionicons ion-${r.platform.is.ios===!0?"ios":"md"}${o.substring(3)}`;else if(G.test(o)===!0){c="notranslate material-symbols";const d=o.match(G);d!==null&&(o=o.substring(6),c+=le[d[1]]),C=o}else{c="notranslate material-icons";const d=o.match(pe);d!==null&&(o=o.substring(2),c+=ue[d[1]]),C=o}return{cls:c,content:C}});return()=>{const c={class:u.value,style:a.value,"aria-hidden":"true",role:"presentation"};return l.value.none===!0?n.h(e.tag,c,ve(t.default)):l.value.img===!0?n.h(e.tag,c,j(t.default,[n.h("img",{src:l.value.src})])):l.value.svg===!0?n.h(e.tag,c,j(t.default,[n.h("svg",{viewBox:l.value.viewBox||"0 0 24 24"},l.value.nodes)])):l.value.svguse===!0?n.h(e.tag,c,j(t.default,[n.h("svg",{viewBox:l.value.viewBox},[n.h("use",{"xlink:href":l.value.src})])])):(l.value.cls!==void 0&&(c.class+=" "+l.value.cls),n.h(e.tag,c,j(t.default,[l.value.content])))}}}),Ce={size:{type:[String,Number],default:"1em"},color:String};function Ee(e){return{cSize:n.computed(()=>e.size in V?`${V[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const $e=Q({name:"QSpinner",props:{...Ce,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:r}=Ee(e);return()=>n.h("svg",{class:r.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 qe(e,t){const r=e.style;for(const a in t)r[a]=t[a]}const D={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(D,{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 _e(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 se(e){e.stopPropagation()}function Be(e){e.cancelable!==!1&&e.preventDefault()}function w(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Le(e,t,r){const a=`__q_${t}_evt`;e[a]=e[a]!==void 0?e[a].concat(r):r,r.forEach(u=>{u[0].addEventListener(u[1],e[u[2]],D[u[3]])})}function xe(e,t){const r=`__q_${t}_evt`;e[r]!==void 0&&(e[r].forEach(a=>{a[0].removeEventListener(a[1],e[a[2]],D[a[3]])}),e[r]=void 0)}function Re(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function F(e,t){return Re(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Se(e,t=250){let r=!1,a;return function(){return r===!1&&(r=!0,setTimeout(()=>{r=!1},t),a=e.apply(this,arguments)),a}}function W(e,t,r,a){r.modifiers.stop===!0&&se(e);const u=r.modifiers.color;let l=r.modifiers.center;l=l===!0||a===!0;const c=document.createElement("span"),o=document.createElement("span"),C=_e(e),{left:g,top:d,width:h,height:s}=t.getBoundingClientRect(),b=Math.sqrt(h*h+s*s),p=b/2,y=`${(h-b)/2}px`,f=l?y:`${C.left-g-p}px`,k=`${(s-b)/2}px`,S=l?k:`${C.top-d-p}px`;o.className="q-ripple__inner",qe(o,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${f},${S},0) scale3d(.2,.2,1)`,opacity:0}),c.className=`q-ripple${u?" text-"+u:""}`,c.setAttribute("dir","ltr"),c.appendChild(o),t.appendChild(c);const x=()=>{c.remove(),clearTimeout(R)};r.abort.push(x);let R=setTimeout(()=>{o.classList.add("q-ripple__inner--enter"),o.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,o.style.opacity=.2,R=setTimeout(()=>{o.classList.remove("q-ripple__inner--enter"),o.classList.add("q-ripple__inner--leave"),o.style.opacity=0,R=setTimeout(()=>{c.remove(),r.abort.splice(r.abort.indexOf(x),1)},275)},250)},50)}function X(e,{modifiers:t,value:r,arg:a}){const u=Object.assign({},e.cfg.ripple,t,r);e.modifiers={early:u.early===!0,stop:u.stop===!0,center:u.center===!0,color:u.color||a,keyCodes:[].concat(u.keyCodes||13)}}const we=fe({name:"ripple",beforeMount(e,t){const r=t.instance.$.appContext.config.globalProperties.$q.config||{};if(r.ripple===!1)return;const a={cfg:r,enabled:t.value!==!1,modifiers:{},abort:[],start(u){a.enabled===!0&&u.qSkipRipple!==!0&&u.type===(a.modifiers.early===!0?"pointerdown":"click")&&W(u,e,a,u.qKeyEvent===!0)},keystart:Se(u=>{a.enabled===!0&&u.qSkipRipple!==!0&&F(u,a.modifiers.keyCodes)===!0&&u.type===`key${a.modifiers.early===!0?"down":"up"}`&&W(u,e,a,!0)},300)};X(a,t),e.__qripple=a,Le(a,"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 r=e.__qripple;r!==void 0&&(r.enabled=t.value!==!1,r.enabled===!0&&Object(t.value)===t.value&&X(r,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(r=>{r()}),xe(t,"main"),delete e._qripple)}}),ce={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Pe=Object.keys(ce),Te={align:{type:String,validator:e=>Pe.includes(e)}};function Me(e){return n.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${ce[t]}`})}function Oe(e){return e.appContext.config.globalProperties.$router!==void 0}function Z(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function J(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ae(e,t){for(const r in t){const a=t[r],u=e[r];if(typeof a=="string"){if(a!==u)return!1}else if(Array.isArray(u)===!1||u.length!==a.length||a.some((l,c)=>l!==u[c]))return!1}return!0}function ee(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((r,a)=>r===t[a]):e.length===1&&e[0]===t}function ze(e,t){return Array.isArray(e)===!0?ee(e,t):Array.isArray(t)===!0?ee(t,e):e===t}function je(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(ze(e[r],t[r])===!1)return!1;return!0}const Ie={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean};function Ne({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const r=n.getCurrentInstance(),{props:a,proxy:u,emit:l}=r,c=Oe(r),o=n.computed(()=>a.disable!==!0&&a.href!==void 0),C=t===!0?n.computed(()=>c===!0&&a.disable!==!0&&o.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):n.computed(()=>c===!0&&o.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),g=n.computed(()=>C.value===!0?S(a.to):null),d=n.computed(()=>g.value!==null),h=n.computed(()=>o.value===!0||d.value===!0),s=n.computed(()=>a.type==="a"||h.value===!0?"a":a.tag||e||"div"),b=n.computed(()=>o.value===!0?{href:a.href,target:a.target}:d.value===!0?{href:g.value.href,target:a.target}:{}),p=n.computed(()=>{if(d.value===!1)return-1;const{matched:v}=g.value,{length:E}=v,q=v[E-1];if(q===void 0)return-1;const B=u.$route.matched;if(B.length===0)return-1;const L=B.findIndex(J.bind(null,q));if(L!==-1)return L;const I=Z(v[E-2]);return E>1&&Z(q)===I&&B[B.length-1].path!==I?B.findIndex(J.bind(null,v[E-2])):L}),y=n.computed(()=>d.value===!0&&p.value!==-1&&Ae(u.$route.params,g.value.params)),f=n.computed(()=>y.value===!0&&p.value===u.$route.matched.length-1&&je(u.$route.params,g.value.params)),k=n.computed(()=>d.value===!0?f.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":y.value===!0?` ${a.activeClass}`:"":"");function S(v){try{return u.$router.resolve(v)}catch{}return null}function x(v,{returnRouterError:E,to:q=a.to,replace:B=a.replace}={}){if(a.disable===!0)return v.preventDefault(),Promise.resolve(!1);if(v.metaKey||v.altKey||v.ctrlKey||v.shiftKey||v.button!==void 0&&v.button!==0||a.target==="_blank")return Promise.resolve(!1);v.preventDefault();const L=u.$router[B===!0?"replace":"push"](q);return E===!0?L:L.then(()=>{}).catch(()=>{})}function R(v){if(d.value===!0){const E=q=>x(v,q);l("click",v,E),v.defaultPrevented!==!0&&E()}else l("click",v)}return{hasRouterLink:d,hasHrefLink:o,hasLink:h,linkTag:s,resolvedLink:g,linkIsActive:y,linkIsExactActive:f,linkClass:k,linkAttrs:b,getLink:S,navigateToRouterLink:x,navigateOnClick:R}}const te={none:0,xs:4,sm:8,md:16,lg:24,xl:32},De={xs:8,sm:10,md:14,lg:20,xl:24},Ke=["button","submit","reset"],Ve=/[^\s]\/[^\s]/,Fe=["flat","outline","push","unelevated"];function Qe(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Ue={...re,...Ie,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Fe.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:{...Te.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ye={...Ue,round:Boolean};function Ge(e){const t=oe(e,De),r=Me(e),{hasRouterLink:a,hasLink:u,linkTag:l,linkAttrs:c,navigateOnClick:o}=Ne({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 te?te[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(()=>Qe(e,"standard")),b=n.computed(()=>{const f={tabindex:h.value};return u.value===!0?Object.assign(f,c.value):Ke.includes(e.type)===!0&&(f.type=e.type),l.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),a.value!==!0&&Ve.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}),p=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(()=>r.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:C,innerClasses:y,attributes:b,hasLink:u,linkTag:l,navigateOnClick:o,isActionable:d}}const{passiveCapture:$}=D;let P=null,T=null,M=null;const He=Q({name:"QBtn",props:{...Ye,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:r}){const{proxy:a}=n.getCurrentInstance(),{classes:u,style:l,innerClasses:c,attributes:o,hasLink:C,linkTag:g,navigateOnClick:d,isActionable:h}=Ge(e),s=n.ref(null),b=n.ref(null);let p=null,y,f=null;const k=n.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),S=n.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:C.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),x=n.computed(()=>({center:e.round})),R=n.computed(()=>{const i=Math.max(0,Math.min(100,e.percentage));return i>0?{transition:"transform 0.6s",transform:`translateX(${i-100}%)`}:{}}),v=n.computed(()=>{if(e.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(h.value===!0){const i={onClick:q,onKeydown:B,onMousedown:I};if(a.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";i[`onTouchstart${m}`]=L}return i}return{onClick:w}}),E=n.computed(()=>({ref:s,class:"q-btn q-btn-item non-selectable no-outline "+u.value,style:l.value,...o.value,...v.value}));function q(i){if(s.value!==null){if(i!==void 0){if(i.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&s.value.contains(m)===!1&&m.contains(s.value)===!1){s.value.focus();const N=()=>{document.removeEventListener("keydown",w,!0),document.removeEventListener("keyup",N,$),s.value!==null&&s.value.removeEventListener("blur",N,$)};document.addEventListener("keydown",w,!0),document.addEventListener("keyup",N,$),s.value.addEventListener("blur",N,$)}}d(i)}}function B(i){s.value!==null&&(r("keydown",i),F(i,[13,32])===!0&&T!==s.value&&(T!==null&&O(),i.defaultPrevented!==!0&&(s.value.focus(),T=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("keyup",_,!0),s.value.addEventListener("blur",_,$)),w(i)))}function L(i){s.value!==null&&(r("touchstart",i),i.defaultPrevented!==!0&&(P!==s.value&&(P!==null&&O(),P=s.value,p=i.target,p.addEventListener("touchcancel",_,$),p.addEventListener("touchend",_,$)),y=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,y=!1},200)))}function I(i){s.value!==null&&(i.qSkipRipple=y===!0,r("mousedown",i),i.defaultPrevented!==!0&&M!==s.value&&(M!==null&&O(),M=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("mouseup",_,$)))}function _(i){if(s.value!==null&&!(i!==void 0&&i.type==="blur"&&document.activeElement===s.value)){if(i!==void 0&&i.type==="keyup"){if(T===s.value&&F(i,[13,32])===!0){const m=new MouseEvent("click",i);m.qKeyEvent=!0,i.defaultPrevented===!0&&Be(m),i.cancelBubble===!0&&se(m),s.value.dispatchEvent(m),w(i),i.qKeyEvent=!0}r("keyup",i)}O()}}function O(i){const m=b.value;i!==!0&&(P===s.value||M===s.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),P===s.value&&(p!==null&&(p.removeEventListener("touchcancel",_,$),p.removeEventListener("touchend",_,$)),P=p=null),M===s.value&&(document.removeEventListener("mouseup",_,$),M=null),T===s.value&&(document.removeEventListener("keyup",_,!0),s.value!==null&&s.value.removeEventListener("blur",_,$),T=null),s.value!==null&&s.value.classList.remove("q-btn--active")}function A(i){w(i),i.qSkipRipple=!0}return n.onBeforeUnmount(()=>{O(!0)}),Object.assign(a,{click:i=>{h.value===!0&&q(i)}}),()=>{let i=[];e.icon!==void 0&&i.push(n.h(H,{name:e.icon,left:e.stack!==!0&&k.value===!0,role:"img"})),k.value===!0&&i.push(n.h("span",{class:"block"},[e.label])),i=j(t.default,i),e.iconRight!==void 0&&e.round===!1&&i.push(n.h(H,{name:e.iconRight,right:e.stack!==!0&&k.value===!0,role:"img"}));const m=[n.h("span",{class:"q-focus-helper",ref:b})];return e.loading===!0&&e.percentage!==void 0&&m.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:R.value})])),m.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+c.value},i)),e.loading!==null&&m.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($e)])]:null)),n.withDirectives(n.h(g.value,E.value,m),[[we,S.value,void 0,x.value]])}}}),We=n.defineComponent({__name:"index",props:{size:{},transparent:{type:Boolean},rounded:{type:Boolean},color:{},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:[Boolean,null]},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{}},emits:["click"],setup(e){const t=e,{size:r=z.MD,color:a=ae.PRIMARY}=t,u=n.computed(()=>["app-btn",{"app-btn_default":!t.transparent,"app-btn_trans":t.transparent,"app-btn_rounded":t.rounded,"app-btn_sm":r===z.SM,"app-btn_md":r===z.MD,"app-btn_lg":r===z.LG,"app-btn_icon-left":t.iconLeft,"app-btn_icon-right":t.iconRight,"app-btn_icon-middle":t.iconMiddle},`app-btn_${a}`]);return(l,c)=>(n.openBlock(),n.createBlock(n.unref(He),{"no-caps":"",unelevated:"",class:n.normalizeClass(u.value),padding:n.unref(ne)[n.unref(r)||n.unref(z).MD],loading:l.loading,disabled:l.disabled||void 0,to:l.to,href:l.href,target:l.target,type:l.submit?"submit":void 0,"aria-label":l.ariaLabel,onClick:c[0]||(c[0]=o=>l.$emit("click",o))},{default:n.withCtx(()=>[l.iconLeft||l.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",l.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${l.iconLeft||l.iconMiddle}`,l.transparent?`text-${n.unref(a)}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),n.renderSlot(l.$slots,"default",{},void 0,!0),l.iconRight?(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${l.iconRight}`,l.transparent?`text-${n.unref(a)}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disabled","to","href","target","type","aria-label"]))}}),de=(e,t)=>{const r=e.__vccOpts||e;for(const[a,u]of t)r[a]=u;return r},Xe=de(We,[["__scopeId","data-v-42f3b7cf"]]),Ze=n.defineComponent({__name:"index",props:{name:{},size:{},color:{}},setup(e){return(t,r)=>(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))}}),Je=de(Ze,[["__scopeId","data-v-73419357"]]),et=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BR4HAU8T.cjs")));exports.AppButton=Xe;exports.AppButtonCopy=et;exports.COLORS=ae;exports.index=Je;