vlite3 1.4.18 → 1.4.20

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.
@@ -6,7 +6,7 @@ const d = [
6
6
  "var(--color-chart-5)",
7
7
  "var(--color-chart-6)"
8
8
  ];
9
- function x(t) {
9
+ function F(t) {
10
10
  return {
11
11
  primary: "var(--color-primary)",
12
12
  success: "var(--color-success)",
@@ -20,72 +20,76 @@ function x(t) {
20
20
  cyan: "#06b6d4"
21
21
  }[t] ?? t;
22
22
  }
23
- function F(t, a) {
24
- return t[a % t.length];
23
+ function C(t, r) {
24
+ return t[r % t.length];
25
25
  }
26
- function C(t) {
26
+ function k(t) {
27
27
  return Math.abs(t) >= 1e6 ? (t / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : Math.abs(t) >= 1e3 ? (t / 1e3).toFixed(1).replace(/\.0$/, "") + "k" : String(t);
28
28
  }
29
- function k(t, a, o) {
30
- return Math.max(a, Math.min(o, t));
29
+ function M(t, r, a) {
30
+ return Math.max(r, Math.min(a, t));
31
31
  }
32
32
  function w(t) {
33
33
  if (t.length < 2) return "";
34
34
  if (t.length === 2)
35
35
  return `M ${t[0][0]},${t[0][1]} L ${t[1][0]},${t[1][1]}`;
36
- const a = [`M ${t[0][0]},${t[0][1]}`];
37
- for (let o = 0; o < t.length - 1; o++) {
38
- const n = t[Math.max(0, o - 1)], c = t[o], r = t[o + 1], h = t[Math.min(t.length - 1, o + 2)], e = c[0] + (r[0] - n[0]) / 6, s = c[1] + (r[1] - n[1]) / 6, i = r[0] - (h[0] - c[0]) / 6, u = r[1] - (h[1] - c[1]) / 6;
39
- a.push(`C ${e},${s} ${i},${u} ${r[0]},${r[1]}`);
36
+ const r = [`M ${t[0][0]},${t[0][1]}`];
37
+ for (let a = 0; a < t.length - 1; a++) {
38
+ const c = t[Math.max(0, a - 1)], n = t[a], o = t[a + 1], i = t[Math.min(t.length - 1, a + 2)], e = n[0] + (o[0] - c[0]) / 6;
39
+ let s = n[1] + (o[1] - c[1]) / 6;
40
+ const u = o[0] - (i[0] - n[0]) / 6;
41
+ let h = o[1] - (i[1] - n[1]) / 6;
42
+ const $ = Math.min(n[1], o[1]), l = Math.max(n[1], o[1]);
43
+ s = M(s, $, l), h = M(h, $, l), r.push(`C ${e},${s} ${u},${h} ${o[0]},${o[1]}`);
40
44
  }
41
- return a.join(" ");
45
+ return r.join(" ");
42
46
  }
43
47
  function y(t) {
44
- return t.length === 0 ? "" : t.map(([a, o], n) => `${n === 0 ? "M" : "L"} ${a},${o}`).join(" ");
48
+ return t.length === 0 ? "" : t.map(([r, a], c) => `${c === 0 ? "M" : "L"} ${r},${a}`).join(" ");
45
49
  }
46
- function L(t, a, o, n, c, r = 0) {
47
- Math.abs(c - n) >= 360 && (c -= 0.01);
48
- const h = (v) => v * Math.PI / 180, e = h(n), s = h(c), i = c - n > 180 ? 1 : 0, u = t + o * Math.cos(e), $ = a + o * Math.sin(e), l = t + o * Math.cos(s), f = a + o * Math.sin(s);
49
- if (r <= 0)
50
- return `M ${t},${a} L ${u},${$} A ${o},${o} 0 ${i} 1 ${l},${f} Z`;
51
- const M = t + r * Math.cos(s), m = a + r * Math.sin(s), g = t + r * Math.cos(e), p = a + r * Math.sin(e);
50
+ function L(t, r, a, c, n, o = 0) {
51
+ Math.abs(n - c) >= 360 && (n -= 0.01);
52
+ const i = (b) => b * Math.PI / 180, e = i(c), s = i(n), u = n - c > 180 ? 1 : 0, h = t + a * Math.cos(e), $ = r + a * Math.sin(e), l = t + a * Math.cos(s), f = r + a * Math.sin(s);
53
+ if (o <= 0)
54
+ return `M ${t},${r} L ${h},${$} A ${a},${a} 0 ${u} 1 ${l},${f} Z`;
55
+ const m = t + o * Math.cos(s), g = r + o * Math.sin(s), p = t + o * Math.cos(e), v = r + o * Math.sin(e);
52
56
  return [
53
- `M ${u},${$}`,
54
- `A ${o},${o} 0 ${i} 1 ${l},${f}`,
55
- `L ${M},${m}`,
56
- `A ${r},${r} 0 ${i} 0 ${g},${p}`,
57
+ `M ${h},${$}`,
58
+ `A ${a},${a} 0 ${u} 1 ${l},${f}`,
59
+ `L ${m},${g}`,
60
+ `A ${o},${o} 0 ${u} 0 ${p},${v}`,
57
61
  "Z"
58
62
  ].join(" ");
59
63
  }
60
- function P(t, a, o = 5) {
61
- const c = (a - t || 1) / (o - 1), r = Math.pow(10, Math.floor(Math.log10(c))), e = ([1, 2, 2.5, 5, 10].find(($) => $ * r >= c) ?? 10) * r, s = Math.floor(t / e) * e, i = [];
62
- let u = s;
63
- for (; i.push(parseFloat(u.toFixed(10))), !(u >= a); )
64
- u += e;
65
- return i;
64
+ function P(t, r, a = 5) {
65
+ const n = (r - t || 1) / (a - 1), o = Math.pow(10, Math.floor(Math.log10(n))), e = ([1, 2, 2.5, 5, 10].find(($) => $ * o >= n) ?? 10) * o, s = Math.floor(t / e) * e, u = [];
66
+ let h = s;
67
+ for (; u.push(parseFloat(h.toFixed(10))), !(h >= r); )
68
+ h += e;
69
+ return u;
66
70
  }
67
- function b(t) {
71
+ function x(t) {
68
72
  return 1 - Math.pow(1 - t, 3);
69
73
  }
70
- function j(t, a, o) {
71
- let n = null, c;
72
- const r = (h) => {
73
- n === null && (n = h);
74
- const e = h - n, s = b(Math.min(e / t, 1));
75
- a(s), e < t && (c = requestAnimationFrame(r));
74
+ function j(t, r, a) {
75
+ let c = null, n;
76
+ const o = (i) => {
77
+ c === null && (c = i);
78
+ const e = i - c, s = x(Math.min(e / t, 1));
79
+ r(s), e < t && (n = requestAnimationFrame(o));
76
80
  };
77
- return c = requestAnimationFrame(r), () => cancelAnimationFrame(c);
81
+ return n = requestAnimationFrame(o), () => cancelAnimationFrame(n);
78
82
  }
79
83
  export {
80
84
  d as CHART_COLORS,
81
85
  j as animateProgress,
82
86
  L as arcPath,
83
- k as clamp,
84
- b as easeOutCubic,
85
- C as formatNumber,
86
- F as getColor,
87
+ M as clamp,
88
+ x as easeOutCubic,
89
+ k as formatNumber,
90
+ C as getColor,
87
91
  y as linearPath,
88
92
  P as niceYTicks,
89
- x as resolveColor,
93
+ F as resolveColor,
90
94
  w as smoothPath
91
95
  };
@@ -1,5 +1,5 @@
1
- import o from "./ColorIro.vue.js";
2
- /* empty css */
1
+ import o from "./ColorIro.vue2.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -7,8 +7,8 @@ import "../../core/config.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  import E from "../Button.vue.js";
10
- import _ from "./ColorIro.vue.js";
11
- /* empty css */
10
+ import _ from "./ColorIro.vue2.js";
11
+ /* empty css */
12
12
  import { useEyeDropper as I } from "@vueuse/core";
13
13
  const N = { class: "absolute left-2.5 top-1/2 -translate-y-1/2 flex items-center justify-center z-20 pointer-events-none" }, j = {
14
14
  key: 0,
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as te, ref as v, shallowRef as ne, watch as oe, computed as h, onMounted as le, onUnmounted as ae, openBlock as C, createElementBlock as L, normalizeClass as re, toDisplayString as I, createCommentVNode as U, createElementVNode as w, createVNode as q, unref as a, normalizeStyle as ie } from "vue";
2
2
  /* empty css */
3
- import se from "./RichTextToolbar.vue2.js";
4
- /* empty css */
5
- import de from "./RichTextLinkPopover.vue2.js";
6
- /* empty css */
3
+ import se from "./RichTextToolbar.vue.js";
4
+ /* empty css */
5
+ import de from "./RichTextLinkPopover.vue.js";
6
+ /* empty css */
7
7
  import { useRichTextImageUpload as ue } from "./composables/useRichTextImageUpload.js";
8
8
  import { useRichTextLinks as ce } from "./composables/useRichTextLinks.js";
9
9
  const fe = ["aria-labelledby", "aria-describedby"], me = ["id", "for"], ve = { class: "rte-wrapper" }, ye = { class: "rte-body-wrap" }, ge = ["id", "contenteditable", "aria-label", "aria-readonly", "aria-disabled", "aria-invalid"], be = ["id"], Se = /* @__PURE__ */ te({
@@ -1,5 +1,5 @@
1
- import o from "./RichTextLinkPopover.vue2.js";
2
- /* empty css */
1
+ import o from "./RichTextLinkPopover.vue.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -1,5 +1,5 @@
1
- import o from "./RichTextToolbar.vue2.js";
2
- /* empty css */
1
+ import o from "./RichTextToolbar.vue.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -15,14 +15,14 @@ import "v-datepicker-lite";
15
15
  import "v-datepicker-lite/style.css";
16
16
  import "@jaames/iro";
17
17
  import "@vueuse/core";
18
- /* empty css */
18
+ /* empty css */
19
19
  import "iconify-icon-picker";
20
20
  import "iconify-icon-picker/style.css";
21
21
  /* empty css */
22
22
  /* empty css */
23
23
  /* empty css */
24
- /* empty css */
25
- /* empty css */
24
+ /* empty css */
25
+ /* empty css */
26
26
  import "../../core/config.js";
27
27
  /* empty css */
28
28
  /* empty css */
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, computed as w, openBlock as t, createElementBlock as o, normalizeStyle as $, normalizeClass as r, Fragment as k, createElementVNode as l, toDisplayString as c, unref as b, createBlock as n, withCtx as g, createCommentVNode as d } from "vue";
1
+ import { defineComponent as T, computed as w, openBlock as e, createElementBlock as o, normalizeStyle as $, normalizeClass as r, Fragment as k, createElementVNode as l, toDisplayString as c, unref as b, createBlock as i, withCtx as g, createCommentVNode as d } from "vue";
2
2
  import { $t as x } from "../../utils/i18n.js";
3
3
  import { formatCurrency as C, formatNumber as I } from "../../utils/functions.js";
4
4
  import h from "./components/StatTrend.vue.js";
@@ -31,7 +31,7 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
31
31
  props: {
32
32
  item: {},
33
33
  variant: { default: "outline" },
34
- layout: { default: "icon-left" },
34
+ layout: { default: "layout-1" },
35
35
  attached: { type: Boolean, default: !1 },
36
36
  loading: { type: Boolean, default: !1 },
37
37
  titleSize: { default: "" },
@@ -40,38 +40,38 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
40
40
  iconBoxShape: { default: "rounded" },
41
41
  iconBoxStyle: { default: "filled" }
42
42
  },
43
- setup(e) {
44
- const i = e;
43
+ setup(t) {
44
+ const n = t;
45
45
  function s(a) {
46
46
  const u = Number(a.value);
47
47
  return a.isPrice ? C(u, { numberFormat: a.numberFormat || "compact", compactThreshold: a.compactThreshold }) : a.numberFormat ? I(u, { numberFormat: a.numberFormat, compactThreshold: a.compactThreshold }) : a.value;
48
48
  }
49
49
  const y = w(() => {
50
- const a = Number(i.item.value) || 0;
51
- if (!i.item.isPrice && !i.item.numberFormat || (i.item.numberFormat || (i.item.isPrice ? "compact" : "standard")) !== "compact") return !1;
52
- const z = i.item.compactThreshold ?? P?.components?.price?.compactThreshold ?? 1e3;
50
+ const a = Number(n.item.value) || 0;
51
+ if (!n.item.isPrice && !n.item.numberFormat || (n.item.numberFormat || (n.item.isPrice ? "compact" : "standard")) !== "compact") return !1;
52
+ const z = n.item.compactThreshold ?? P?.components?.price?.compactThreshold ?? 1e3;
53
53
  return Math.abs(a) >= z;
54
54
  }), f = w(() => {
55
- const a = Number(i.item.value) || 0;
56
- return i.item.isPrice ? C(a, { numberFormat: "standard" }) : i.item.numberFormat ? I(a, { numberFormat: "standard" }) : String(i.item.value);
55
+ const a = Number(n.item.value) || 0;
56
+ return n.item.isPrice ? C(a, { numberFormat: "standard" }) : n.item.numberFormat ? I(a, { numberFormat: "standard" }) : String(n.item.value);
57
57
  }), F = w(() => {
58
- const a = i.layout === "inline-label-value" ? "flex px-3.5 py-3" : i.layout === "centered-value-title" ? "flex px-1 py-1" : "flex p-3", u = {
59
- "icon-left": "flex-row items-center gap-3 text-left",
60
- "icon-right": "flex-row items-center justify-between gap-3 text-left",
61
- "icon-top": "flex-col items-start gap-1 px-5! pt-2! text-left",
62
- "title-top-icon-bottom-right": "flex-col items-start gap-0 text-left px-5! py-4!",
63
- "centered-value-title": "flex-col items-center justify-center text-center gap-0",
64
- "floating-icon": "flex-col items-start gap-1 text-left relative",
65
- "split-bar": "flex-row items-center gap-3 text-left border-l-4",
66
- "inline-label-value": "flex-row items-center gap-2.5 text-left"
67
- }, z = u[i.layout] || u["icon-left"];
58
+ const a = n.layout === "layout-8" ? "flex px-3.5 py-3" : n.layout === "layout-5" ? "flex px-1 py-1" : "flex p-3", u = {
59
+ "layout-1": "flex-row items-center gap-3 text-left",
60
+ "layout-2": "flex-row items-center justify-between gap-3 text-left",
61
+ "layout-3": "flex-col items-start gap-1 px-5! pt-2! text-left",
62
+ "layout-4": "flex-col items-start gap-0 text-left px-5! py-4!",
63
+ "layout-5": "flex-col items-center justify-center text-center gap-0",
64
+ "layout-6": "flex-col items-start gap-1 text-left relative",
65
+ "layout-7": "flex-row items-center gap-3 text-left border-l-4",
66
+ "layout-8": "flex-row items-center gap-2.5 text-left"
67
+ }, z = u[n.layout] || u["layout-1"];
68
68
  let m = "";
69
- if (i.attached)
70
- i.variant === "transparent" ? m = "border-b border-r border-transparent bg-transparent hover:bg-muted/30 transition-colors" : i.variant === "outline" ? m = "border-b border-r border-border bg-transparent hover:bg-muted/30 transition-colors" : m = "border-b border-r border-border bg-card hover:bg-muted/30 transition-colors";
69
+ if (n.attached)
70
+ n.variant === "transparent" ? m = "border-b border-r border-transparent bg-transparent hover:bg-muted/30 transition-colors" : n.variant === "outline" ? m = "border-b border-r border-border bg-transparent hover:bg-muted/30 transition-colors" : m = "border-b border-r border-border bg-card hover:bg-muted/30 transition-colors";
71
71
  else {
72
- switch (i.variant) {
72
+ switch (n.variant) {
73
73
  case "solid": {
74
- const N = i.item.color || "primary", B = {
74
+ const N = n.item.color || "primary", B = {
75
75
  primary: "bg-primary-light dark:ring-1 dark:ring-inset dark:ring-primary/20",
76
76
  secondary: "bg-secondary dark:ring-1 dark:ring-inset dark:ring-secondary-foreground/20",
77
77
  success: "bg-success-light dark:ring-1 dark:ring-inset dark:ring-success/20",
@@ -96,13 +96,13 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
96
96
  }
97
97
  return [a, z, m].join(" ");
98
98
  }), j = w(() => {
99
- if (i.variant === "solid" && !i.attached) {
100
- const a = i.item.color;
99
+ if (n.variant === "solid" && !n.attached) {
100
+ const a = n.item.color;
101
101
  if (a && !["primary", "secondary", "success", "warning", "danger", "info"].includes(a))
102
102
  return { backgroundColor: `${a}15` };
103
103
  }
104
- if (i.layout === "split-bar") {
105
- const a = i.item.color, u = {
104
+ if (n.layout === "layout-7") {
105
+ const a = n.item.color, u = {
106
106
  primary: "var(--color-primary)",
107
107
  secondary: "var(--color-secondary)",
108
108
  success: "var(--color-success)",
@@ -115,196 +115,196 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
115
115
  }
116
116
  return {};
117
117
  });
118
- return (a, u) => (t(), o("div", {
118
+ return (a, u) => (e(), o("div", {
119
119
  class: r(F.value),
120
120
  style: $(j.value)
121
121
  }, [
122
- e.layout === "title-top-icon-bottom-right" ? (t(), o(k, { key: 0 }, [
122
+ t.layout === "layout-4" ? (e(), o(k, { key: 0 }, [
123
123
  l("h3", {
124
- class: r(e.titleSize || "text-sm font-medium text-muted-foreground truncate w-full")
125
- }, c(e.item.titleI18n ? b(x)(e.item.titleI18n) : e.item.title), 3),
124
+ class: r(t.titleSize || "text-sm font-medium text-muted-foreground truncate w-full")
125
+ }, c(t.item.titleI18n ? b(x)(t.item.titleI18n) : t.item.title), 3),
126
126
  l("div", V, [
127
127
  l("div", null, [
128
- e.loading ? (t(), o("div", M)) : (t(), n(v, {
128
+ t.loading ? (e(), o("div", M)) : (e(), i(v, {
129
129
  key: 1,
130
130
  content: f.value,
131
131
  disabled: !y.value
132
132
  }, {
133
133
  default: g(() => [
134
134
  l("p", {
135
- class: r(e.valueSize || "text-2xl font-bold text-foreground truncate")
136
- }, c(s(e.item)), 3)
135
+ class: r(t.valueSize || "text-2xl font-bold text-foreground truncate")
136
+ }, c(s(t.item)), 3)
137
137
  ]),
138
138
  _: 1
139
139
  }, 8, ["content", "disabled"])),
140
- e.item.trend && !e.loading ? (t(), n(h, {
140
+ t.item.trend && !t.loading ? (e(), i(h, {
141
141
  key: 2,
142
- trend: e.item.trend,
143
- layout: e.layout
142
+ trend: t.item.trend,
143
+ layout: t.layout
144
144
  }, null, 8, ["trend", "layout"])) : d("", !0)
145
145
  ]),
146
- e.item.icon ? (t(), n(S, {
146
+ t.item.icon ? (e(), i(S, {
147
147
  key: 0,
148
- item: e.item,
149
- variant: e.variant,
150
- layout: e.layout,
151
- attached: e.attached,
152
- "icon-box-shape": e.iconBoxShape,
153
- "icon-box-style": e.iconBoxStyle,
154
- "icon-size": e.iconSize
148
+ item: t.item,
149
+ variant: t.variant,
150
+ layout: t.layout,
151
+ attached: t.attached,
152
+ "icon-box-shape": t.iconBoxShape,
153
+ "icon-box-style": t.iconBoxStyle,
154
+ "icon-size": t.iconSize
155
155
  }, null, 8, ["item", "variant", "layout", "attached", "icon-box-shape", "icon-box-style", "icon-size"])) : d("", !0)
156
156
  ])
157
- ], 64)) : e.layout === "centered-value-title" ? (t(), o(k, { key: 1 }, [
158
- e.loading ? (t(), o("div", E)) : (t(), n(v, {
157
+ ], 64)) : t.layout === "layout-5" ? (e(), o(k, { key: 1 }, [
158
+ t.loading ? (e(), o("div", E)) : (e(), i(v, {
159
159
  key: 1,
160
160
  content: f.value,
161
161
  disabled: !y.value
162
162
  }, {
163
163
  default: g(() => [
164
164
  l("p", {
165
- class: r(e.valueSize || "text-3xl font-bold text-foreground")
166
- }, c(s(e.item)), 3)
165
+ class: r(t.valueSize || "text-3xl font-bold text-foreground")
166
+ }, c(s(t.item)), 3)
167
167
  ]),
168
168
  _: 1
169
169
  }, 8, ["content", "disabled"])),
170
170
  l("h3", {
171
- class: r(e.titleSize || "text-sm font-medium text-muted-foreground")
172
- }, c(e.item.titleI18n ? b(x)(e.item.titleI18n) : e.item.title), 3),
173
- e.item.trend && !e.loading ? (t(), n(h, {
171
+ class: r(t.titleSize || "text-sm font-medium text-muted-foreground")
172
+ }, c(t.item.titleI18n ? b(x)(t.item.titleI18n) : t.item.title), 3),
173
+ t.item.trend && !t.loading ? (e(), i(h, {
174
174
  key: 2,
175
- trend: e.item.trend,
176
- layout: e.layout
175
+ trend: t.item.trend,
176
+ layout: t.layout
177
177
  }, null, 8, ["trend", "layout"])) : d("", !0)
178
- ], 64)) : e.layout === "floating-icon" ? (t(), o(k, { key: 2 }, [
179
- e.item.icon ? (t(), n(S, {
178
+ ], 64)) : t.layout === "layout-6" ? (e(), o(k, { key: 2 }, [
179
+ t.item.icon ? (e(), i(S, {
180
180
  key: 0,
181
- item: e.item,
182
- variant: e.variant,
183
- layout: e.layout,
184
- attached: e.attached,
185
- "icon-box-shape": e.iconBoxShape,
186
- "icon-box-style": e.iconBoxStyle,
187
- "icon-size": e.iconSize,
181
+ item: t.item,
182
+ variant: t.variant,
183
+ layout: t.layout,
184
+ attached: t.attached,
185
+ "icon-box-shape": t.iconBoxShape,
186
+ "icon-box-style": t.iconBoxStyle,
187
+ "icon-size": t.iconSize,
188
188
  class: "absolute top-4 right-4"
189
189
  }, null, 8, ["item", "variant", "layout", "attached", "icon-box-shape", "icon-box-style", "icon-size"])) : d("", !0),
190
190
  l("h3", {
191
- class: r(e.titleSize || "text-sm font-medium text-muted-foreground truncate pr-12")
192
- }, c(e.item.titleI18n ? b(x)(e.item.titleI18n) : e.item.title), 3),
193
- e.loading ? (t(), o("div", D)) : (t(), n(v, {
191
+ class: r(t.titleSize || "text-sm font-medium text-muted-foreground truncate pr-12")
192
+ }, c(t.item.titleI18n ? b(x)(t.item.titleI18n) : t.item.title), 3),
193
+ t.loading ? (e(), o("div", D)) : (e(), i(v, {
194
194
  key: 2,
195
195
  content: f.value,
196
196
  disabled: !y.value
197
197
  }, {
198
198
  default: g(() => [
199
199
  l("p", {
200
- class: r(e.valueSize || "text-2xl font-bold text-foreground truncate mt-1")
201
- }, c(s(e.item)), 3)
200
+ class: r(t.valueSize || "text-2xl font-bold text-foreground truncate mt-1")
201
+ }, c(s(t.item)), 3)
202
202
  ]),
203
203
  _: 1
204
204
  }, 8, ["content", "disabled"])),
205
- e.item.trend && !e.loading ? (t(), n(h, {
205
+ t.item.trend && !t.loading ? (e(), i(h, {
206
206
  key: 3,
207
- trend: e.item.trend,
208
- layout: e.layout
207
+ trend: t.item.trend,
208
+ layout: t.layout
209
209
  }, null, 8, ["trend", "layout"])) : d("", !0)
210
- ], 64)) : e.layout === "split-bar" ? (t(), o("div", L, [
210
+ ], 64)) : t.layout === "layout-7" ? (e(), o("div", L, [
211
211
  l("h3", {
212
212
  class: r(
213
- e.titleSize || "text-xs font-semibold uppercase tracking-widest text-muted-foreground truncate"
213
+ t.titleSize || "text-xs font-semibold uppercase tracking-widest text-muted-foreground truncate"
214
214
  )
215
- }, c(e.item.titleI18n ? b(x)(e.item.titleI18n) : e.item.title), 3),
216
- e.loading ? (t(), o("div", q)) : (t(), n(v, {
215
+ }, c(t.item.titleI18n ? b(x)(t.item.titleI18n) : t.item.title), 3),
216
+ t.loading ? (e(), o("div", q)) : (e(), i(v, {
217
217
  key: 1,
218
218
  content: f.value,
219
219
  disabled: !y.value
220
220
  }, {
221
221
  default: g(() => [
222
222
  l("p", {
223
- class: r(e.valueSize || "text-3xl font-black text-foreground truncate mt-0.5")
224
- }, c(s(e.item)), 3)
223
+ class: r(t.valueSize || "text-3xl font-black text-foreground truncate mt-0.5")
224
+ }, c(s(t.item)), 3)
225
225
  ]),
226
226
  _: 1
227
227
  }, 8, ["content", "disabled"])),
228
- e.item.trend && !e.loading ? (t(), n(h, {
228
+ t.item.trend && !t.loading ? (e(), i(h, {
229
229
  key: 2,
230
- trend: e.item.trend,
231
- layout: e.layout
230
+ trend: t.item.trend,
231
+ layout: t.layout
232
232
  }, null, 8, ["trend", "layout"])) : d("", !0)
233
- ])) : e.layout === "inline-label-value" ? (t(), o(k, { key: 4 }, [
234
- e.item.icon ? (t(), n(S, {
233
+ ])) : t.layout === "layout-8" ? (e(), o(k, { key: 4 }, [
234
+ t.item.icon ? (e(), i(S, {
235
235
  key: 0,
236
- item: e.item,
237
- variant: e.variant,
238
- layout: e.layout,
239
- attached: e.attached,
240
- "icon-box-shape": e.iconBoxShape,
241
- "icon-box-style": e.iconBoxStyle,
242
- "icon-size": e.iconSize
236
+ item: t.item,
237
+ variant: t.variant,
238
+ layout: t.layout,
239
+ attached: t.attached,
240
+ "icon-box-shape": t.iconBoxShape,
241
+ "icon-box-style": t.iconBoxStyle,
242
+ "icon-size": t.iconSize
243
243
  }, null, 8, ["item", "variant", "layout", "attached", "icon-box-shape", "icon-box-style", "icon-size"])) : d("", !0),
244
244
  l("span", {
245
- class: r([e.titleSize || "-text-fs-2 font-medium text-muted-foreground truncate", "flex-1 min-w-0"])
246
- }, c(e.item.titleI18n ? b(x)(e.item.titleI18n) : e.item.title), 3),
247
- e.loading ? (t(), o("div", A)) : (t(), n(v, {
245
+ class: r([t.titleSize || "-text-fs-2 font-medium text-muted-foreground truncate", "flex-1 min-w-0"])
246
+ }, c(t.item.titleI18n ? b(x)(t.item.titleI18n) : t.item.title), 3),
247
+ t.loading ? (e(), o("div", A)) : (e(), i(v, {
248
248
  key: 2,
249
249
  content: f.value,
250
250
  disabled: !y.value
251
251
  }, {
252
252
  default: g(() => [
253
253
  l("span", {
254
- class: r(e.valueSize || "-text-fs-1 font-semibold text-foreground tabular-nums shrink-0")
255
- }, c(s(e.item)), 3)
254
+ class: r(t.valueSize || "-text-fs-1 font-semibold text-foreground tabular-nums shrink-0")
255
+ }, c(s(t.item)), 3)
256
256
  ]),
257
257
  _: 1
258
258
  }, 8, ["content", "disabled"])),
259
- e.item.trend && !e.loading ? (t(), n(h, {
259
+ t.item.trend && !t.loading ? (e(), i(h, {
260
260
  key: 3,
261
- trend: e.item.trend,
262
- layout: e.layout
261
+ trend: t.item.trend,
262
+ layout: t.layout
263
263
  }, null, 8, ["trend", "layout"])) : d("", !0)
264
- ], 64)) : (t(), o(k, { key: 5 }, [
265
- e.item.icon && e.layout !== "icon-right" ? (t(), n(S, {
264
+ ], 64)) : (e(), o(k, { key: 5 }, [
265
+ t.item.icon && t.layout !== "layout-2" ? (e(), i(S, {
266
266
  key: 0,
267
- item: e.item,
268
- variant: e.variant,
269
- layout: e.layout,
270
- attached: e.attached,
271
- "icon-box-shape": e.iconBoxShape,
272
- "icon-box-style": e.iconBoxStyle,
273
- "icon-size": e.iconSize
267
+ item: t.item,
268
+ variant: t.variant,
269
+ layout: t.layout,
270
+ attached: t.attached,
271
+ "icon-box-shape": t.iconBoxShape,
272
+ "icon-box-style": t.iconBoxStyle,
273
+ "icon-size": t.iconSize
274
274
  }, null, 8, ["item", "variant", "layout", "attached", "icon-box-shape", "icon-box-style", "icon-size"])) : d("", !0),
275
275
  l("div", G, [
276
276
  l("h3", {
277
- class: r(e.titleSize || "text-sm font-medium text-muted-foreground truncate")
278
- }, c(e.item.titleI18n ? b(x)(e.item.titleI18n) : e.item.title), 3),
277
+ class: r(t.titleSize || "text-sm font-medium text-muted-foreground truncate")
278
+ }, c(t.item.titleI18n ? b(x)(t.item.titleI18n) : t.item.title), 3),
279
279
  l("div", H, [
280
- e.loading ? (t(), o("div", J)) : (t(), n(v, {
280
+ t.loading ? (e(), o("div", J)) : (e(), i(v, {
281
281
  key: 1,
282
282
  content: f.value,
283
283
  disabled: !y.value
284
284
  }, {
285
285
  default: g(() => [
286
286
  l("p", {
287
- class: r(e.valueSize || "text-2xl font-bold text-foreground truncate")
288
- }, c(s(e.item)), 3)
287
+ class: r(t.valueSize || "text-2xl font-bold text-foreground truncate")
288
+ }, c(s(t.item)), 3)
289
289
  ]),
290
290
  _: 1
291
291
  }, 8, ["content", "disabled"]))
292
292
  ]),
293
- e.item.trend && !e.loading ? (t(), n(h, {
293
+ t.item.trend && !t.loading ? (e(), i(h, {
294
294
  key: 0,
295
- trend: e.item.trend,
296
- layout: e.layout
295
+ trend: t.item.trend,
296
+ layout: t.layout
297
297
  }, null, 8, ["trend", "layout"])) : d("", !0)
298
298
  ]),
299
- e.item.icon && e.layout === "icon-right" ? (t(), n(S, {
299
+ t.item.icon && t.layout === "layout-2" ? (e(), i(S, {
300
300
  key: 1,
301
- item: e.item,
302
- variant: e.variant,
303
- layout: e.layout,
304
- attached: e.attached,
305
- "icon-box-shape": e.iconBoxShape,
306
- "icon-box-style": e.iconBoxStyle,
307
- "icon-size": e.iconSize
301
+ item: t.item,
302
+ variant: t.variant,
303
+ layout: t.layout,
304
+ attached: t.attached,
305
+ "icon-box-shape": t.iconBoxShape,
306
+ "icon-box-style": t.iconBoxStyle,
307
+ "icon-size": t.iconSize
308
308
  }, null, 8, ["item", "variant", "layout", "attached", "icon-box-shape", "icon-box-style", "icon-size"])) : d("", !0)
309
309
  ], 64))
310
310
  ], 6));