mgv-backoffice 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/components/EarningsCard.vue.d.ts +15 -0
- package/dist/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{ui-lib.mjs → ui-lib.js} +302 -259
- package/dist/{ui-lib.umd.js → ui-lib.umd.cjs} +1 -1
- package/package.json +10 -3
- package/src/components/EarningsCard.vue +74 -0
- package/src/index.ts +3 -0
- package/src/style.css +1 -0
- package/tailwind.safelist.css +120 -0
- package/tailwind.safelist.js +295 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, openBlock as l, createElementBlock as i, normalizeClass as h, createVNode as m, unref as d, createElementVNode as s, toDisplayString as b, useSlots as F, computed as k, renderSlot as $, createCommentVNode as g, resolveComponent as G, withCtx as R, createTextVNode as C, Fragment as T, renderList as q, createBlock as D, ref as U, watch as Y } from "vue";
|
|
2
2
|
import { InformationCircleIcon as j, ChevronRightIcon as X, ExclamationCircleIcon as z, CheckCircleIcon as K, ExclamationTriangleIcon as V, XMarkIcon as Q, ArrowDownIcon as Z, ArrowUpIcon as J } from "@heroicons/vue/24/outline";
|
|
3
3
|
import { HomeIcon as ee } from "@heroicons/vue/24/solid";
|
|
4
|
-
var
|
|
4
|
+
var S = /* @__PURE__ */ ((e) => (e.WARNING = "WARNING", e.ERROR = "ERROR", e.SUCCESS = "SUCCESS", e.INFROM = "INFROM", e))(S || {}), f = /* @__PURE__ */ ((e) => (e.NONE = "NONE", e.RED = "RED", e.YELLOW = "YELLOW", e.BLACK = "BLACK", e.GRAY = "GRAY", e.GREEN = "GREEN", e.BLUE = "BLUE", e))(f || {});
|
|
5
5
|
function te(e) {
|
|
6
6
|
let t = "red";
|
|
7
7
|
switch (e) {
|
|
8
|
-
case
|
|
8
|
+
case S.ERROR:
|
|
9
9
|
t = "red";
|
|
10
10
|
break;
|
|
11
|
-
case
|
|
11
|
+
case S.SUCCESS:
|
|
12
12
|
t = "green";
|
|
13
13
|
break;
|
|
14
|
-
case
|
|
14
|
+
case S.INFROM:
|
|
15
15
|
t = "gray";
|
|
16
16
|
break;
|
|
17
|
-
case
|
|
17
|
+
case S.WARNING:
|
|
18
18
|
t = "yellow";
|
|
19
19
|
break;
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Ve(e) {
|
|
24
24
|
let t = "red";
|
|
25
25
|
switch (e) {
|
|
26
26
|
case f.GREEN: {
|
|
@@ -46,13 +46,13 @@ function He(e) {
|
|
|
46
46
|
}
|
|
47
47
|
return t;
|
|
48
48
|
}
|
|
49
|
-
const re = { class: "font-medium pl-1" },
|
|
49
|
+
const re = { class: "font-medium pl-1" }, Qe = /* @__PURE__ */ y({
|
|
50
50
|
__name: "BaseAlert",
|
|
51
51
|
props: {
|
|
52
52
|
title: {
|
|
53
53
|
type: String,
|
|
54
54
|
required: !1,
|
|
55
|
-
default:
|
|
55
|
+
default: S.ERROR
|
|
56
56
|
},
|
|
57
57
|
color: {
|
|
58
58
|
type: Object,
|
|
@@ -61,21 +61,21 @@ const re = { class: "font-medium pl-1" }, Fe = /* @__PURE__ */ h({
|
|
|
61
61
|
},
|
|
62
62
|
setup(e) {
|
|
63
63
|
const t = e;
|
|
64
|
-
function
|
|
65
|
-
let
|
|
66
|
-
return "flex items-center p-4 mb-4 text-sm text-" +
|
|
64
|
+
function a() {
|
|
65
|
+
let n = te(t.color);
|
|
66
|
+
return "flex items-center p-4 mb-4 text-sm text-" + n + "-800 border border-" + n + "-300 rounded-lg bg-" + n + "-50 dark:bg-gray-800 dark:text-" + n + "-400 dark:border-" + n + "-800";
|
|
67
67
|
}
|
|
68
|
-
return (
|
|
69
|
-
class:
|
|
68
|
+
return (n, r) => (l(), i("div", {
|
|
69
|
+
class: h(a()),
|
|
70
70
|
role: "alert"
|
|
71
71
|
}, [
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
m(d(j), { class: "w-6 h-6 text-gray-400" }),
|
|
73
|
+
s("div", null, [
|
|
74
|
+
s("span", re, b(e.title), 1)
|
|
75
75
|
])
|
|
76
76
|
], 2));
|
|
77
77
|
}
|
|
78
|
-
}), se = "bg-red-100 text-red-700 border-red-200", M = /* @__PURE__ */
|
|
78
|
+
}), se = "bg-red-100 text-red-700 border-red-200", M = /* @__PURE__ */ y({
|
|
79
79
|
__name: "BaseBadge",
|
|
80
80
|
props: {
|
|
81
81
|
color: {
|
|
@@ -84,28 +84,28 @@ const re = { class: "font-medium pl-1" }, Fe = /* @__PURE__ */ h({
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
setup(e) {
|
|
87
|
-
const t = F(),
|
|
87
|
+
const t = F(), a = k(() => !!t.default), n = e, r = {
|
|
88
88
|
[f.RED]: "bg-red-100 text-red-700 border-red-200",
|
|
89
89
|
[f.GREEN]: "bg-green-100 text-green-700 border-green-200",
|
|
90
90
|
[f.BLUE]: "bg-blue-100 text-blue-700 border-blue-200",
|
|
91
91
|
[f.YELLOW]: "bg-yellow-100 text-yellow-700 border-yellow-200",
|
|
92
92
|
[f.GRAY]: "bg-gray-100 text-gray-700 border-gray-200",
|
|
93
93
|
[f.NONE]: "bg-gray-50 text-gray-600 border-gray-200"
|
|
94
|
-
},
|
|
95
|
-
return (c,
|
|
94
|
+
}, o = k(() => `inline-flex items-center gap-1 font-semibold text-xs leading-none px-3 py-1.5 rounded-full border ${n.color && r[n.color] || se}`);
|
|
95
|
+
return (c, p) => a.value ? (l(), i("span", {
|
|
96
96
|
key: 0,
|
|
97
|
-
class:
|
|
97
|
+
class: h(o.value)
|
|
98
98
|
}, [
|
|
99
99
|
$(c.$slots, "default")
|
|
100
100
|
], 2)) : g("", !0);
|
|
101
101
|
}
|
|
102
|
-
}),
|
|
102
|
+
}), oe = {
|
|
103
103
|
class: "flex px-5 py-3 text-gray-700 border border-gray-200 rounded-lg bg-gray-50 dark:bg-gray-800 dark:border-gray-700",
|
|
104
104
|
"aria-label": "Breadcrumb"
|
|
105
|
-
},
|
|
105
|
+
}, ae = { class: "inline-flex items-center space-x-1 md:space-x-3" }, ne = {
|
|
106
106
|
class: "inline-flex items-center",
|
|
107
107
|
style: { "margin-left": "0" }
|
|
108
|
-
},
|
|
108
|
+
}, Ze = /* @__PURE__ */ y({
|
|
109
109
|
__name: "BaseBreadcrumb",
|
|
110
110
|
props: {
|
|
111
111
|
items: {
|
|
@@ -120,41 +120,41 @@ const re = { class: "font-medium pl-1" }, Fe = /* @__PURE__ */ h({
|
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
setup(e) {
|
|
123
|
-
const t = e,
|
|
123
|
+
const t = e, a = k(() => {
|
|
124
124
|
if (t.items && t.items.length > 0)
|
|
125
125
|
return t.items;
|
|
126
126
|
const r = (t.path ?? (typeof window < "u" ? window.location.pathname : "/")).split("/").filter((c) => c !== "");
|
|
127
|
-
let
|
|
128
|
-
return r.map((c) => (
|
|
127
|
+
let o = "";
|
|
128
|
+
return r.map((c) => (o += "/" + c, { name: Number(c) ? c : (c.charAt(0).toUpperCase() + c.slice(1)).replaceAll("-", " "), url: o }));
|
|
129
129
|
});
|
|
130
|
-
return (
|
|
131
|
-
const
|
|
132
|
-
return l(), i("nav",
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
return (n, r) => {
|
|
131
|
+
const o = G("router-link");
|
|
132
|
+
return l(), i("nav", oe, [
|
|
133
|
+
s("ol", ae, [
|
|
134
|
+
s("li", ne, [
|
|
135
|
+
m(o, {
|
|
136
136
|
to: "/",
|
|
137
137
|
class: "inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600 dark:text-gray-400 dark:hover:text-white"
|
|
138
138
|
}, {
|
|
139
|
-
default:
|
|
140
|
-
|
|
139
|
+
default: R(() => [
|
|
140
|
+
m(d(ee), { class: "h-4 w-4 text-gray-500 mr-2" }),
|
|
141
141
|
r[0] || (r[0] = C(" Home ", -1))
|
|
142
142
|
]),
|
|
143
143
|
_: 1
|
|
144
144
|
})
|
|
145
145
|
]),
|
|
146
|
-
(l(!0), i(T, null, q(
|
|
147
|
-
key:
|
|
146
|
+
(l(!0), i(T, null, q(a.value, (c, p) => (l(), i("li", {
|
|
147
|
+
key: p,
|
|
148
148
|
class: "inline-flex items-center",
|
|
149
149
|
style: { "margin-left": "0" }
|
|
150
150
|
}, [
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
m(d(X), { class: "h-4 w-4 text-gray-500" }),
|
|
152
|
+
m(o, {
|
|
153
153
|
to: c.url,
|
|
154
154
|
class: "ml-1 text-sm font-medium text-gray-700 hover:text-blue-600 md:ml-2 dark:text-gray-400 dark:hover:text-white"
|
|
155
155
|
}, {
|
|
156
|
-
default:
|
|
157
|
-
C(
|
|
156
|
+
default: R(() => [
|
|
157
|
+
C(b(c.name), 1)
|
|
158
158
|
]),
|
|
159
159
|
_: 2
|
|
160
160
|
}, 1032, ["to"])
|
|
@@ -164,8 +164,8 @@ const re = { class: "font-medium pl-1" }, Fe = /* @__PURE__ */ h({
|
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
|
-
var v = /* @__PURE__ */ ((e) => (e.RED = "RED", e.BLUE = "BLUE", e.WHITE = "WHITE", e.DARK = "DARK", e.GREEN = "GREEN", e.YELLOW = "YELLOW", e.PURPLE = "PURPLE", e))(v || {}),
|
|
168
|
-
const le = ["type", "disabled"], ie = { key: 0 }, ce = { key: 1 }, ue = ["type", "disabled"], de = { key: 0 }, ge = { key: 1 }, fe = { key: 2 },
|
|
167
|
+
var v = /* @__PURE__ */ ((e) => (e.RED = "RED", e.BLUE = "BLUE", e.WHITE = "WHITE", e.DARK = "DARK", e.GREEN = "GREEN", e.YELLOW = "YELLOW", e.PURPLE = "PURPLE", e))(v || {}), E = /* @__PURE__ */ ((e) => (e.EXTRA_SMALL = "EXTRA SMALL", e.SMALL = "SMALL", e.BASE = "BASE", e.LARGE = "LARGE", e.EXTRA_LARGE = "EXTRA_LARGE", e))(E || {});
|
|
168
|
+
const le = ["type", "disabled"], ie = { key: 0 }, ce = { key: 1 }, ue = ["type", "disabled"], de = { key: 0 }, ge = { key: 1 }, fe = { key: 2 }, Je = /* @__PURE__ */ y({
|
|
169
169
|
__name: "BaseButton",
|
|
170
170
|
props: {
|
|
171
171
|
description: {
|
|
@@ -217,8 +217,8 @@ const le = ["type", "disabled"], ie = { key: 0 }, ce = { key: 1 }, ue = ["type",
|
|
|
217
217
|
},
|
|
218
218
|
setup(e) {
|
|
219
219
|
const t = e;
|
|
220
|
-
function
|
|
221
|
-
let
|
|
220
|
+
function a() {
|
|
221
|
+
let n = "inline-flex items-center", r;
|
|
222
222
|
switch (t.color) {
|
|
223
223
|
case v.BLUE: {
|
|
224
224
|
r = "focus:outline-none text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300", t.isDisable && (r += " bg-blue-400");
|
|
@@ -249,58 +249,58 @@ const le = ["type", "disabled"], ie = { key: 0 }, ce = { key: 1 }, ue = ["type",
|
|
|
249
249
|
break;
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
let
|
|
252
|
+
let o = "px-5 py-2.5 mr-2 mb-2 text-sm";
|
|
253
253
|
switch (t.size) {
|
|
254
|
-
case
|
|
255
|
-
|
|
254
|
+
case E.EXTRA_SMALL: {
|
|
255
|
+
o = "px-3 py-2 text-xs";
|
|
256
256
|
break;
|
|
257
257
|
}
|
|
258
|
-
case
|
|
259
|
-
|
|
258
|
+
case E.SMALL: {
|
|
259
|
+
o = "px-3 py-2 text-sm";
|
|
260
260
|
break;
|
|
261
261
|
}
|
|
262
|
-
case
|
|
263
|
-
|
|
262
|
+
case E.BASE: {
|
|
263
|
+
o = "px-5 py-2.5 text-sm";
|
|
264
264
|
break;
|
|
265
265
|
}
|
|
266
|
-
case
|
|
267
|
-
|
|
266
|
+
case E.LARGE: {
|
|
267
|
+
o = "px-5 py-3 text-base";
|
|
268
268
|
break;
|
|
269
269
|
}
|
|
270
|
-
case
|
|
271
|
-
|
|
270
|
+
case E.EXTRA_LARGE: {
|
|
271
|
+
o = "px-6 py-3.5 text-base";
|
|
272
272
|
break;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
let c = "rounded-lg";
|
|
276
|
-
return t.isRounded && (c = "rounded-full"), t.isDisable && (r += " cursor-not-allowed"),
|
|
276
|
+
return t.isRounded && (c = "rounded-full"), t.isDisable && (r += " cursor-not-allowed"), n + " " + o + " " + r + " " + "font-medium" + " " + c;
|
|
277
277
|
}
|
|
278
|
-
return (
|
|
279
|
-
const
|
|
280
|
-
return e.to ? (l(), D(
|
|
278
|
+
return (n, r) => {
|
|
279
|
+
const o = G("router-link");
|
|
280
|
+
return e.to ? (l(), D(o, {
|
|
281
281
|
key: 0,
|
|
282
282
|
to: e.to
|
|
283
283
|
}, {
|
|
284
|
-
default:
|
|
285
|
-
|
|
284
|
+
default: R(() => [
|
|
285
|
+
s("button", {
|
|
286
286
|
type: t.type,
|
|
287
|
-
class:
|
|
287
|
+
class: h(a()),
|
|
288
288
|
disabled: e.isDisable
|
|
289
289
|
}, [
|
|
290
|
-
e.iconLeft ? g("", !0) : (l(), i("span", ie,
|
|
291
|
-
$(
|
|
292
|
-
e.iconLeft ? (l(), i("span", ce,
|
|
290
|
+
e.iconLeft ? g("", !0) : (l(), i("span", ie, b(e.description), 1)),
|
|
291
|
+
$(n.$slots, "default"),
|
|
292
|
+
e.iconLeft ? (l(), i("span", ce, b(e.description), 1)) : g("", !0)
|
|
293
293
|
], 10, le)
|
|
294
294
|
]),
|
|
295
295
|
_: 3
|
|
296
296
|
}, 8, ["to"])) : (l(), i("button", {
|
|
297
297
|
key: 1,
|
|
298
298
|
type: t.type,
|
|
299
|
-
class:
|
|
299
|
+
class: h(a()),
|
|
300
300
|
disabled: e.isDisable
|
|
301
301
|
}, [
|
|
302
302
|
e.isLoading ? (l(), i("div", de, [...r[0] || (r[0] = [
|
|
303
|
-
|
|
303
|
+
s("svg", {
|
|
304
304
|
"aria-hidden": "true",
|
|
305
305
|
role: "status",
|
|
306
306
|
class: "inline w-4 h-4 me-3 text-white animate-spin",
|
|
@@ -308,19 +308,19 @@ const le = ["type", "disabled"], ie = { key: 0 }, ce = { key: 1 }, ue = ["type",
|
|
|
308
308
|
fill: "none",
|
|
309
309
|
xmlns: "http://www.w3.org/2000/svg"
|
|
310
310
|
}, [
|
|
311
|
-
|
|
311
|
+
s("path", {
|
|
312
312
|
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
313
313
|
fill: "#E5E7EB"
|
|
314
314
|
}),
|
|
315
|
-
|
|
315
|
+
s("path", {
|
|
316
316
|
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
317
317
|
fill: "currentColor"
|
|
318
318
|
})
|
|
319
319
|
], -1)
|
|
320
320
|
])])) : g("", !0),
|
|
321
|
-
e.iconLeft ? g("", !0) : (l(), i("span", ge,
|
|
322
|
-
$(
|
|
323
|
-
e.iconLeft ? (l(), i("span", fe,
|
|
321
|
+
e.iconLeft ? g("", !0) : (l(), i("span", ge, b(e.description), 1)),
|
|
322
|
+
$(n.$slots, "default"),
|
|
323
|
+
e.iconLeft ? (l(), i("span", fe, b(e.description), 1)) : g("", !0)
|
|
324
324
|
], 10, ue));
|
|
325
325
|
};
|
|
326
326
|
}
|
|
@@ -332,10 +332,10 @@ const be = {
|
|
|
332
332
|
}, pe = {
|
|
333
333
|
key: 1,
|
|
334
334
|
class: "w-48 h-1 mx-auto my-4 bg-gray-100 border-0 rounded md:my-10 dark:bg-gray-700"
|
|
335
|
-
},
|
|
335
|
+
}, me = {
|
|
336
336
|
key: 2,
|
|
337
337
|
class: "w-8 h-8 mx-auto my-8 bg-gray-200 border-0 rounded md:my-12 dark:bg-gray-700"
|
|
338
|
-
},
|
|
338
|
+
}, et = /* @__PURE__ */ y({
|
|
339
339
|
__name: "BaseLine",
|
|
340
340
|
props: {
|
|
341
341
|
mode: {
|
|
@@ -345,15 +345,15 @@ const be = {
|
|
|
345
345
|
}
|
|
346
346
|
},
|
|
347
347
|
setup(e) {
|
|
348
|
-
return (t,
|
|
348
|
+
return (t, a) => (l(), i(T, null, [
|
|
349
349
|
e.mode === d(L).BASE ? (l(), i("hr", be)) : g("", !0),
|
|
350
350
|
e.mode === d(L).BASE_SHORTER ? (l(), i("hr", pe)) : g("", !0),
|
|
351
|
-
e.mode === d(L).SQUARE ? (l(), i("hr",
|
|
351
|
+
e.mode === d(L).SQUARE ? (l(), i("hr", me)) : g("", !0)
|
|
352
352
|
], 64));
|
|
353
353
|
}
|
|
354
354
|
});
|
|
355
355
|
var A = /* @__PURE__ */ ((e) => (e.SMALL = "SMALL", e.MEDIUM = "MEDIUM", e.LARGE = "LARGE", e))(A || {});
|
|
356
|
-
const
|
|
356
|
+
const ye = ["height", "width"], tt = /* @__PURE__ */ y({
|
|
357
357
|
__name: "BaseLogo",
|
|
358
358
|
props: {
|
|
359
359
|
size: {
|
|
@@ -364,49 +364,49 @@ const me = ["height", "width"], Ke = /* @__PURE__ */ h({
|
|
|
364
364
|
},
|
|
365
365
|
setup(e) {
|
|
366
366
|
const t = e;
|
|
367
|
-
function
|
|
368
|
-
let
|
|
367
|
+
function a() {
|
|
368
|
+
let n = "";
|
|
369
369
|
switch (t.size) {
|
|
370
370
|
case A.SMALL: {
|
|
371
|
-
|
|
371
|
+
n = "50px";
|
|
372
372
|
break;
|
|
373
373
|
}
|
|
374
374
|
case A.MEDIUM: {
|
|
375
|
-
|
|
375
|
+
n = "100px";
|
|
376
376
|
break;
|
|
377
377
|
}
|
|
378
378
|
case A.LARGE: {
|
|
379
|
-
|
|
379
|
+
n = "150px";
|
|
380
380
|
break;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
return
|
|
383
|
+
return n;
|
|
384
384
|
}
|
|
385
|
-
return (
|
|
386
|
-
const
|
|
387
|
-
return l(), D(
|
|
385
|
+
return (n, r) => {
|
|
386
|
+
const o = G("router-link");
|
|
387
|
+
return l(), D(o, {
|
|
388
388
|
to: "/",
|
|
389
389
|
class: "flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white"
|
|
390
390
|
}, {
|
|
391
|
-
default:
|
|
391
|
+
default: R(() => [
|
|
392
392
|
(l(), i("svg", {
|
|
393
|
-
height:
|
|
394
|
-
width:
|
|
393
|
+
height: a(),
|
|
394
|
+
width: a(),
|
|
395
395
|
viewBox: "33.6 130.6 499.7 242.9",
|
|
396
396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
397
397
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
398
398
|
}, [...r[0] || (r[0] = [
|
|
399
|
-
|
|
400
|
-
|
|
399
|
+
s("linearGradient", { id: "a" }, [
|
|
400
|
+
s("stop", {
|
|
401
401
|
offset: ".085",
|
|
402
402
|
"stop-color": "#469e43"
|
|
403
403
|
}),
|
|
404
|
-
|
|
404
|
+
s("stop", {
|
|
405
405
|
offset: "1",
|
|
406
406
|
"stop-color": "#132d13"
|
|
407
407
|
})
|
|
408
408
|
], -1),
|
|
409
|
-
|
|
409
|
+
s("linearGradient", {
|
|
410
410
|
id: "b",
|
|
411
411
|
gradientUnits: "userSpaceOnUse",
|
|
412
412
|
x1: "64.863",
|
|
@@ -415,7 +415,7 @@ const me = ["height", "width"], Ke = /* @__PURE__ */ h({
|
|
|
415
415
|
y1: "288.291",
|
|
416
416
|
y2: "369.4"
|
|
417
417
|
}, null, -1),
|
|
418
|
-
|
|
418
|
+
s("linearGradient", {
|
|
419
419
|
id: "c",
|
|
420
420
|
gradientUnits: "userSpaceOnUse",
|
|
421
421
|
x1: "138.367",
|
|
@@ -424,7 +424,7 @@ const me = ["height", "width"], Ke = /* @__PURE__ */ h({
|
|
|
424
424
|
y1: "308.454",
|
|
425
425
|
y2: "370.601"
|
|
426
426
|
}, null, -1),
|
|
427
|
-
|
|
427
|
+
s("linearGradient", {
|
|
428
428
|
id: "d",
|
|
429
429
|
gradientUnits: "userSpaceOnUse",
|
|
430
430
|
x1: "195.475",
|
|
@@ -433,7 +433,7 @@ const me = ["height", "width"], Ke = /* @__PURE__ */ h({
|
|
|
433
433
|
y1: "288.291",
|
|
434
434
|
y2: "369.85"
|
|
435
435
|
}, null, -1),
|
|
436
|
-
|
|
436
|
+
s("linearGradient", {
|
|
437
437
|
id: "e",
|
|
438
438
|
gradientUnits: "userSpaceOnUse",
|
|
439
439
|
x1: "249.634",
|
|
@@ -442,7 +442,7 @@ const me = ["height", "width"], Ke = /* @__PURE__ */ h({
|
|
|
442
442
|
y1: "307.312",
|
|
443
443
|
y2: "369.511"
|
|
444
444
|
}, null, -1),
|
|
445
|
-
|
|
445
|
+
s("linearGradient", {
|
|
446
446
|
id: "f",
|
|
447
447
|
gradientUnits: "userSpaceOnUse",
|
|
448
448
|
x1: "302.884",
|
|
@@ -451,7 +451,7 @@ const me = ["height", "width"], Ke = /* @__PURE__ */ h({
|
|
|
451
451
|
y1: "288.291",
|
|
452
452
|
y2: "367.857"
|
|
453
453
|
}, null, -1),
|
|
454
|
-
|
|
454
|
+
s("linearGradient", {
|
|
455
455
|
id: "g",
|
|
456
456
|
gradientUnits: "userSpaceOnUse",
|
|
457
457
|
x1: "354.118",
|
|
@@ -460,7 +460,7 @@ const me = ["height", "width"], Ke = /* @__PURE__ */ h({
|
|
|
460
460
|
y1: "307.312",
|
|
461
461
|
y2: "369.511"
|
|
462
462
|
}, null, -1),
|
|
463
|
-
|
|
463
|
+
s("linearGradient", {
|
|
464
464
|
id: "h",
|
|
465
465
|
gradientUnits: "userSpaceOnUse",
|
|
466
466
|
x1: "428.02",
|
|
@@ -469,7 +469,7 @@ const me = ["height", "width"], Ke = /* @__PURE__ */ h({
|
|
|
469
469
|
y1: "306.156",
|
|
470
470
|
y2: "367.742"
|
|
471
471
|
}, null, -1),
|
|
472
|
-
|
|
472
|
+
s("linearGradient", {
|
|
473
473
|
id: "i",
|
|
474
474
|
gradientUnits: "userSpaceOnUse",
|
|
475
475
|
x1: "502.066",
|
|
@@ -478,7 +478,7 @@ const me = ["height", "width"], Ke = /* @__PURE__ */ h({
|
|
|
478
478
|
y1: "288.291",
|
|
479
479
|
y2: "369.4"
|
|
480
480
|
}, null, -1),
|
|
481
|
-
|
|
481
|
+
s("linearGradient", {
|
|
482
482
|
id: "j",
|
|
483
483
|
gradientUnits: "userSpaceOnUse",
|
|
484
484
|
x1: "283.264",
|
|
@@ -487,7 +487,7 @@ const me = ["height", "width"], Ke = /* @__PURE__ */ h({
|
|
|
487
487
|
y1: "131.629",
|
|
488
488
|
y2: "232.559"
|
|
489
489
|
}, null, -1),
|
|
490
|
-
|
|
490
|
+
s("linearGradient", {
|
|
491
491
|
id: "k",
|
|
492
492
|
gradientUnits: "userSpaceOnUse",
|
|
493
493
|
x1: "283.46",
|
|
@@ -495,57 +495,57 @@ const me = ["height", "width"], Ke = /* @__PURE__ */ h({
|
|
|
495
495
|
y1: "202.275",
|
|
496
496
|
y2: "183.785"
|
|
497
497
|
}, [
|
|
498
|
-
|
|
498
|
+
s("stop", {
|
|
499
499
|
offset: "0",
|
|
500
500
|
"stop-color": "#969799",
|
|
501
501
|
"stop-opacity": "0"
|
|
502
502
|
}),
|
|
503
|
-
|
|
503
|
+
s("stop", {
|
|
504
504
|
offset: "1",
|
|
505
505
|
"stop-color": "#808183"
|
|
506
506
|
})
|
|
507
507
|
], -1),
|
|
508
|
-
|
|
508
|
+
s("path", {
|
|
509
509
|
d: "m65 307.2c-6.8 0-13.1 2.2-18.2 5.9v-24.8h-13.2v81.1h31.4c17.2 0 31.1-13.9 31.1-31.1s-13.9-31.1-31.1-31.1zm0 49.3h-18.2v-18.2c0-10.1 8.2-18.2 18.2-18.2 10.1 0 18.2 8.2 18.2 18.2.1 10.1-8.1 18.2-18.2 18.2z",
|
|
510
510
|
fill: "url(#b)"
|
|
511
511
|
}, null, -1),
|
|
512
|
-
|
|
512
|
+
s("path", {
|
|
513
513
|
d: "m168.8 343.9h-46.7c1.4 7.1 6.6 12 14.1 12.7 6.4.6 12.9.1 19.9.1v11.9c-15.2 4.9-33.3.5-42.1-10.4-3.8-4.7-17.3-34.7 11.5-47.4 39-11.4 45.3 22.4 43.3 33.1zm-14.2-12.7c-1.7-8.1-8.8-12.9-17.9-12.3-7.6.5-14 5.8-14.5 12.3z",
|
|
514
514
|
fill: "url(#c)"
|
|
515
515
|
}, null, -1),
|
|
516
|
-
|
|
516
|
+
s("path", {
|
|
517
517
|
d: "m195.5 320.2c0 10.5-.2 20 .1 29.6.2 5.8 4.4 8.4 13.2 8.6v10.5c-13.8 3.9-26.2-4.5-26.4-18-.2-18.7-.1-43.9-.1-62.6h14.1l-.3 18.5 12.7-.1v13.4h-13.3z",
|
|
518
518
|
fill: "url(#d)"
|
|
519
519
|
}, null, -1),
|
|
520
|
-
|
|
520
|
+
s("path", {
|
|
521
521
|
d: "m249.6 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",
|
|
522
522
|
fill: "url(#e)"
|
|
523
523
|
}, null, -1),
|
|
524
|
-
|
|
524
|
+
s("path", {
|
|
525
525
|
d: "m296.4 288.3h13v79.6h-13z",
|
|
526
526
|
fill: "url(#f)"
|
|
527
527
|
}, null, -1),
|
|
528
|
-
|
|
528
|
+
s("path", {
|
|
529
529
|
d: "m354.1 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",
|
|
530
530
|
fill: "url(#g)"
|
|
531
531
|
}, null, -1),
|
|
532
|
-
|
|
532
|
+
s("path", {
|
|
533
533
|
d: "m442.2 367.7c0-12.3.2-23.6 0-34.9-.2-3.4-3.6-13.8-14.1-13.4-10.3-.3-14.4 10-14.3 12.7.1 10.2.5 35.1.5 35.1l-13.6.1s-.3-25.7.2-36.2c.6-14.1 12.7-25 27.5-25 14.7 0 26.2 10.4 26.7 24.9.4 10.4.5 36.3.5 36.3z",
|
|
534
534
|
fill: "url(#h)"
|
|
535
535
|
}, null, -1),
|
|
536
|
-
|
|
536
|
+
s("path", {
|
|
537
537
|
d: "m501.9 307.2c6.8 0 13.1 2.2 18.2 5.9v-24.8h13.2v81.1h-31.4c-17.2 0-31.1-13.9-31.1-31.1s13.9-31.1 31.1-31.1zm0 49.3h18.2v-18.2c0-10.1-8.2-18.2-18.2-18.2-10.1 0-18.2 8.2-18.2 18.2 0 10.1 8.1 18.2 18.2 18.2z",
|
|
538
538
|
fill: "url(#i)"
|
|
539
539
|
}, null, -1),
|
|
540
|
-
|
|
540
|
+
s("path", {
|
|
541
541
|
d: "m309.2 180.6h-24v-24c0-12.6 10.2-24.1 22.8-25 14.8-1 27.1 11.3 26.1 26.1-.8 12.7-12.3 22.9-24.9 22.9zm-50.7-48.9c-14.8-1-27.1 11.3-26.1 26.1.8 12.6 12.4 22.8 25 22.8h23.9v-24c0-12.6-10.3-24.1-22.8-24.9zm50.7 51.9h-24v23.9c0 12.6 10.2 24.1 22.8 25 14.8 1 27.1-11.3 26.1-26.1-.8-12.6-12.3-22.8-24.9-22.8zm-52.4 0c-14 0-25.3 11.8-24.4 26 .8 12.2 10.7 22.1 22.9 22.9 14.2.9 26-10.4 26-24.4v-24.5z",
|
|
542
542
|
fill: "url(#j)"
|
|
543
543
|
}, null, -1),
|
|
544
|
-
|
|
544
|
+
s("path", {
|
|
545
545
|
d: "m281.7 183.8h3.6v18.5h-3.6z",
|
|
546
546
|
fill: "url(#k)"
|
|
547
547
|
}, null, -1)
|
|
548
|
-
])], 8,
|
|
548
|
+
])], 8, ye))
|
|
549
549
|
]),
|
|
550
550
|
_: 1
|
|
551
551
|
});
|
|
@@ -556,7 +556,7 @@ var P = /* @__PURE__ */ ((e) => (e.DELETE = "DELETE", e.SUCCESS = "SUCCESS", e))
|
|
|
556
556
|
const he = { class: "dialog relative top-20 mx-auto p-5 border w-96 shadow-lg rounded-md bg-white" }, xe = {
|
|
557
557
|
key: 0,
|
|
558
558
|
class: "p-6 text-center"
|
|
559
|
-
}, ve = { class: "mb-5 text-lg font-normal text-gray-500 dark:text-gray-400" }, ke = { class: "flex justify-center" },
|
|
559
|
+
}, ve = { class: "mb-5 text-lg font-normal text-gray-500 dark:text-gray-400" }, ke = { class: "flex justify-center" }, _e = /* @__PURE__ */ y({
|
|
560
560
|
__name: "BaseModal",
|
|
561
561
|
props: {
|
|
562
562
|
title: {
|
|
@@ -580,26 +580,26 @@ const he = { class: "dialog relative top-20 mx-auto p-5 border w-96 shadow-lg ro
|
|
|
580
580
|
},
|
|
581
581
|
emits: ["closeModal", "confirmModal"],
|
|
582
582
|
setup(e) {
|
|
583
|
-
return (t,
|
|
584
|
-
const
|
|
583
|
+
return (t, a) => {
|
|
584
|
+
const n = G("base-button");
|
|
585
585
|
return l(), i(T, null, [
|
|
586
|
-
|
|
586
|
+
s("div", {
|
|
587
587
|
class: "outside",
|
|
588
|
-
onClick:
|
|
588
|
+
onClick: a[0] || (a[0] = (r) => t.$emit("closeModal"))
|
|
589
589
|
}),
|
|
590
|
-
|
|
590
|
+
s("div", he, [
|
|
591
591
|
e.mode === d(P).DELETE ? (l(), i("div", xe, [
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
592
|
+
m(d(z), { class: "w-12 h-12 text-gray-400 mx-auto mb-4" }),
|
|
593
|
+
s("h3", ve, " Are you sure you want to delete this " + b(e.title) + "? ", 1),
|
|
594
|
+
s("div", ke, [
|
|
595
|
+
m(n, {
|
|
596
596
|
color: d(v).RED,
|
|
597
|
-
onClick:
|
|
597
|
+
onClick: a[1] || (a[1] = (r) => t.$emit("confirmModal")),
|
|
598
598
|
description: "Yes, I'm sure"
|
|
599
599
|
}, null, 8, ["color"]),
|
|
600
|
-
|
|
600
|
+
m(n, {
|
|
601
601
|
color: d(v).WHITE,
|
|
602
|
-
onClick:
|
|
602
|
+
onClick: a[2] || (a[2] = (r) => t.$emit("closeModal")),
|
|
603
603
|
description: "No, cancel"
|
|
604
604
|
}, null, 8, ["color"])
|
|
605
605
|
])
|
|
@@ -609,11 +609,11 @@ const he = { class: "dialog relative top-20 mx-auto p-5 border w-96 shadow-lg ro
|
|
|
609
609
|
};
|
|
610
610
|
}
|
|
611
611
|
}), I = (e, t) => {
|
|
612
|
-
const
|
|
613
|
-
for (const [
|
|
614
|
-
n
|
|
615
|
-
return
|
|
616
|
-
},
|
|
612
|
+
const a = e.__vccOpts || e;
|
|
613
|
+
for (const [n, r] of t)
|
|
614
|
+
a[n] = r;
|
|
615
|
+
return a;
|
|
616
|
+
}, rt = /* @__PURE__ */ I(_e, [["__scopeId", "data-v-492169b3"]]), st = /* @__PURE__ */ y({
|
|
617
617
|
__name: "BaseRow",
|
|
618
618
|
props: {
|
|
619
619
|
bgColor: {
|
|
@@ -624,28 +624,28 @@ const he = { class: "dialog relative top-20 mx-auto p-5 border w-96 shadow-lg ro
|
|
|
624
624
|
},
|
|
625
625
|
setup(e) {
|
|
626
626
|
const t = e;
|
|
627
|
-
function
|
|
627
|
+
function a() {
|
|
628
628
|
return "block p-8 border border-gray-200 rounded-xl shadow-sm dark:bg-gray-800 dark:border-gray-700 " + t.bgColor;
|
|
629
629
|
}
|
|
630
|
-
return (
|
|
631
|
-
class:
|
|
630
|
+
return (n, r) => (l(), i("div", {
|
|
631
|
+
class: h(a())
|
|
632
632
|
}, [
|
|
633
|
-
$(
|
|
633
|
+
$(n.$slots, "default")
|
|
634
634
|
], 2));
|
|
635
635
|
}
|
|
636
|
-
}),
|
|
637
|
-
function
|
|
638
|
-
return l(), i("div",
|
|
636
|
+
}), we = {}, Ee = { class: "w-4 h-4 border-2 border-gray-200 border-t-blue-500 rounded-full animate-spin" };
|
|
637
|
+
function Se(e, t) {
|
|
638
|
+
return l(), i("div", Ee);
|
|
639
639
|
}
|
|
640
|
-
const
|
|
641
|
-
var
|
|
642
|
-
const
|
|
640
|
+
const ot = /* @__PURE__ */ I(we, [["render", Se]]);
|
|
641
|
+
var w = /* @__PURE__ */ ((e) => (e.SUCCESS = "SUCCESS", e.WARNING = "WARNING", e.ERROR = "ERROR", e))(w || {}), O = /* @__PURE__ */ ((e) => (e.TOP_LEFT = "TOP_LEFT", e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e.BOTTOM_RIGHT = "BOTTOM_RIGHT", e))(O || {});
|
|
642
|
+
const Re = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800" }, Ce = { class: "ml-3 text-sm font-normal" }, Le = {
|
|
643
643
|
key: 3,
|
|
644
644
|
type: "button",
|
|
645
645
|
class: "ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700",
|
|
646
646
|
"data-dismiss-target": "#toast-danger",
|
|
647
647
|
"aria-label": "Close"
|
|
648
|
-
},
|
|
648
|
+
}, at = /* @__PURE__ */ y({
|
|
649
649
|
__name: "BaseToast",
|
|
650
650
|
props: {
|
|
651
651
|
mode: {
|
|
@@ -669,22 +669,22 @@ const Se = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
669
669
|
},
|
|
670
670
|
setup(e) {
|
|
671
671
|
const t = e;
|
|
672
|
-
function
|
|
672
|
+
function a() {
|
|
673
673
|
let c = "";
|
|
674
674
|
switch (t.mode) {
|
|
675
|
-
case
|
|
675
|
+
case w.ERROR:
|
|
676
676
|
c = "text-red-500 bg-red-100 dark:bg-red-800 dark:text-red-200";
|
|
677
677
|
break;
|
|
678
|
-
case
|
|
678
|
+
case w.SUCCESS:
|
|
679
679
|
c = "text-green-500 bg-green-100 dark:bg-green-800 dark:text-green-200";
|
|
680
680
|
break;
|
|
681
|
-
case
|
|
681
|
+
case w.WARNING:
|
|
682
682
|
c = "text-orange-500 bg-orange-100 dark:bg-orange-700 dark:text-orange-200";
|
|
683
683
|
break;
|
|
684
684
|
}
|
|
685
685
|
return "inline-flex items-center justify-center flex-shrink-0 w-8 h-8 rounded-lg " + c;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function n() {
|
|
688
688
|
let c = "top-5 right-5";
|
|
689
689
|
switch (t.positioning) {
|
|
690
690
|
case O.BOTTOM_LEFT:
|
|
@@ -703,47 +703,47 @@ const Se = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
703
703
|
return "fixed flex items-center w-full max-w-md p-4 space-x-4 divide-x rounded-lg " + c + " space-x";
|
|
704
704
|
}
|
|
705
705
|
const r = U(!0);
|
|
706
|
-
function
|
|
706
|
+
function o() {
|
|
707
707
|
setTimeout(() => r.value = !1, 1e6);
|
|
708
708
|
}
|
|
709
|
-
return
|
|
709
|
+
return o(), (c, p) => r.value ? (l(), i("div", {
|
|
710
710
|
key: 0,
|
|
711
711
|
id: "toast-top-right",
|
|
712
|
-
class:
|
|
712
|
+
class: h(n()),
|
|
713
713
|
role: "alert"
|
|
714
714
|
}, [
|
|
715
|
-
|
|
716
|
-
e.mode == d(
|
|
715
|
+
s("div", Re, [
|
|
716
|
+
e.mode == d(w).ERROR ? (l(), i("div", {
|
|
717
717
|
key: 0,
|
|
718
|
-
class:
|
|
718
|
+
class: h(a())
|
|
719
719
|
}, [
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
], 2)) : e.mode == d(
|
|
720
|
+
m(d(z), { class: "h-6 w-6 text-red-500" }),
|
|
721
|
+
p[1] || (p[1] = s("span", { class: "sr-only" }, "Error icon", -1))
|
|
722
|
+
], 2)) : e.mode == d(w).SUCCESS ? (l(), i("div", {
|
|
723
723
|
key: 1,
|
|
724
|
-
class:
|
|
724
|
+
class: h(a())
|
|
725
725
|
}, [
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
], 2)) : e.mode == d(
|
|
726
|
+
m(d(K), { class: "h-6 w-6 text-green-500" }),
|
|
727
|
+
p[2] || (p[2] = s("span", { class: "sr-only" }, "Check icon", -1))
|
|
728
|
+
], 2)) : e.mode == d(w).WARNING ? (l(), i("div", {
|
|
729
729
|
key: 2,
|
|
730
|
-
class:
|
|
730
|
+
class: h(a())
|
|
731
731
|
}, [
|
|
732
|
-
|
|
733
|
-
|
|
732
|
+
m(d(V), { class: "h-6 w-6 text-yellow-500" }),
|
|
733
|
+
p[3] || (p[3] = s("span", { class: "sr-only" }, "Warning icon", -1))
|
|
734
734
|
], 2)) : g("", !0),
|
|
735
|
-
|
|
735
|
+
s("div", Ce, b(e.description), 1),
|
|
736
736
|
e.hasCloseIcon ? (l(), i("button", Le, [
|
|
737
|
-
|
|
738
|
-
|
|
737
|
+
p[4] || (p[4] = s("span", { class: "sr-only" }, "Close", -1)),
|
|
738
|
+
m(d(Q), {
|
|
739
739
|
class: "h-6 w-6 text-gray-500 cursor-pointer",
|
|
740
|
-
onClick:
|
|
740
|
+
onClick: p[0] || (p[0] = (u) => r.value = !r.value)
|
|
741
741
|
})
|
|
742
742
|
])) : g("", !0)
|
|
743
743
|
])
|
|
744
744
|
], 2)) : g("", !0);
|
|
745
745
|
}
|
|
746
|
-
}), Ae = { class: "w-13" },
|
|
746
|
+
}), Ae = { class: "w-13" }, nt = /* @__PURE__ */ y({
|
|
747
747
|
__name: "ColoredSquares",
|
|
748
748
|
props: {
|
|
749
749
|
color: {
|
|
@@ -752,7 +752,7 @@ const Se = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
752
752
|
}
|
|
753
753
|
},
|
|
754
754
|
setup(e) {
|
|
755
|
-
const t = e,
|
|
755
|
+
const t = e, a = [
|
|
756
756
|
"bg-slate-300",
|
|
757
757
|
"bg-zinc-300",
|
|
758
758
|
"bg-neutral-300",
|
|
@@ -762,48 +762,90 @@ const Se = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
762
762
|
"bg-yellow-300",
|
|
763
763
|
"bg-purple-300",
|
|
764
764
|
"bg-pink-300"
|
|
765
|
-
],
|
|
765
|
+
], n = k(() => a[Math.floor(Math.random() * a.length)]);
|
|
766
766
|
function r() {
|
|
767
|
-
let
|
|
767
|
+
let o = "gray";
|
|
768
768
|
switch (t.color) {
|
|
769
769
|
case f.GREEN: {
|
|
770
|
-
|
|
770
|
+
o = "green";
|
|
771
771
|
break;
|
|
772
772
|
}
|
|
773
773
|
case f.RED: {
|
|
774
|
-
|
|
774
|
+
o = "red";
|
|
775
775
|
break;
|
|
776
776
|
}
|
|
777
777
|
case f.BLUE: {
|
|
778
|
-
|
|
778
|
+
o = "blue";
|
|
779
779
|
break;
|
|
780
780
|
}
|
|
781
781
|
case f.YELLOW: {
|
|
782
|
-
|
|
782
|
+
o = "yellow";
|
|
783
783
|
break;
|
|
784
784
|
}
|
|
785
785
|
case f.NONE: {
|
|
786
|
-
|
|
786
|
+
o = "";
|
|
787
787
|
break;
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
|
-
return "font-bold bg-" +
|
|
790
|
+
return "font-bold bg-" + o + "-100 text-" + o + "-800 text-xs mr-2 px-2.5 py-0.5 rounded-full";
|
|
791
791
|
}
|
|
792
|
-
return (
|
|
793
|
-
|
|
794
|
-
class:
|
|
792
|
+
return (o, c) => (l(), i("div", Ae, [
|
|
793
|
+
s("div", {
|
|
794
|
+
class: h(["border border-gray-300 relative aspect-square rounded-lg bg-white shadow-sm overflow-hidden flex items-center justify-center text-center", r()])
|
|
795
795
|
}, [
|
|
796
|
-
$(
|
|
797
|
-
|
|
798
|
-
class:
|
|
796
|
+
$(o.$slots, "default"),
|
|
797
|
+
s("div", {
|
|
798
|
+
class: h(["absolute bottom-0 left-0 h-1 w-full", n.value])
|
|
799
799
|
}, null, 2)
|
|
800
800
|
], 2)
|
|
801
801
|
]));
|
|
802
802
|
}
|
|
803
|
-
}), Oe = {
|
|
803
|
+
}), Oe = { class: "relative rounded-xl border-2 border-dashed border-orange-300 bg-white p-6" }, $e = {
|
|
804
|
+
key: 0,
|
|
805
|
+
class: "absolute right-4 top-4 rounded-md bg-orange-100 px-3 py-1 text-xs font-bold tracking-wide text-orange-500"
|
|
806
|
+
}, Te = { class: "flex items-start justify-between" }, Ue = { class: "text-sm font-bold tracking-wide text-gray-800" }, Ge = { class: "mt-1 text-4xl font-bold text-gray-400" }, Ie = { class: "mt-1 text-sm font-medium text-orange-400" }, lt = /* @__PURE__ */ y({
|
|
807
|
+
__name: "EarningsCard",
|
|
808
|
+
props: {
|
|
809
|
+
title: { default: "TOTAL EARNINGS" },
|
|
810
|
+
amount: { default: 0 },
|
|
811
|
+
subtitle: { default: "Lifetime commission" },
|
|
812
|
+
badge: { default: "" },
|
|
813
|
+
currency: { default: "$" }
|
|
814
|
+
},
|
|
815
|
+
setup(e) {
|
|
816
|
+
const t = e, a = k(() => t.currency + t.amount.toLocaleString("en-US", {
|
|
817
|
+
minimumFractionDigits: 2,
|
|
818
|
+
maximumFractionDigits: 2
|
|
819
|
+
}));
|
|
820
|
+
return (n, r) => (l(), i("div", Oe, [
|
|
821
|
+
e.badge ? (l(), i("div", $e, b(e.badge), 1)) : g("", !0),
|
|
822
|
+
s("div", Te, [
|
|
823
|
+
s("div", null, [
|
|
824
|
+
s("p", Ue, b(e.title), 1),
|
|
825
|
+
s("p", Ge, b(a.value), 1),
|
|
826
|
+
s("p", Ie, b(e.subtitle), 1)
|
|
827
|
+
]),
|
|
828
|
+
r[0] || (r[0] = s("div", { class: "mt-6 flex h-12 w-12 items-center justify-center rounded-xl bg-orange-50" }, [
|
|
829
|
+
s("svg", {
|
|
830
|
+
class: "h-6 w-6 text-orange-400",
|
|
831
|
+
viewBox: "0 0 24 24",
|
|
832
|
+
fill: "none",
|
|
833
|
+
stroke: "currentColor",
|
|
834
|
+
"stroke-width": "2.5",
|
|
835
|
+
"stroke-linecap": "round",
|
|
836
|
+
"stroke-linejoin": "round"
|
|
837
|
+
}, [
|
|
838
|
+
s("polyline", { points: "22 7 13.5 15.5 8.5 10.5 2 17" }),
|
|
839
|
+
s("polyline", { points: "16 7 22 7 22 13" })
|
|
840
|
+
])
|
|
841
|
+
], -1))
|
|
842
|
+
])
|
|
843
|
+
]));
|
|
844
|
+
}
|
|
845
|
+
}), Ne = {
|
|
804
846
|
key: 0,
|
|
805
847
|
class: "font-bold text-green-800"
|
|
806
|
-
},
|
|
848
|
+
}, Be = { key: 0 }, Me = { key: 0 }, qe = "font-bold", it = /* @__PURE__ */ y({
|
|
807
849
|
__name: "EuroAmount",
|
|
808
850
|
props: {
|
|
809
851
|
amount: {
|
|
@@ -822,25 +864,25 @@ const Se = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
822
864
|
}
|
|
823
865
|
},
|
|
824
866
|
setup(e) {
|
|
825
|
-
const t = e,
|
|
826
|
-
return (
|
|
827
|
-
|
|
828
|
-
C(
|
|
829
|
-
e.showCurrency ? (l(), i("span",
|
|
867
|
+
const t = e, a = k(() => t.amount !== null && t.amount !== void 0), n = k(() => a.value && t.amount < 0), r = k(() => t.beforeAmount === null || t.beforeAmount === void 0 ? !1 : t.amount < t.beforeAmount), o = k(() => n.value || r.value), c = k(() => !n.value && !r.value && !(t.beforeAmount === null || t.beforeAmount === void 0));
|
|
868
|
+
return (p, u) => (l(), i(T, null, [
|
|
869
|
+
a.value && c.value ? (l(), i("span", Ne, [
|
|
870
|
+
C(b(e.amount) + " ", 1),
|
|
871
|
+
e.showCurrency ? (l(), i("span", Be, "€")) : g("", !0)
|
|
830
872
|
])) : g("", !0),
|
|
831
|
-
|
|
873
|
+
a.value && !c.value ? (l(), i("span", {
|
|
832
874
|
key: 1,
|
|
833
|
-
class:
|
|
875
|
+
class: h([qe, o.value ? "text-red-800" : "text-gray-800"])
|
|
834
876
|
}, [
|
|
835
|
-
C(
|
|
836
|
-
e.showCurrency ? (l(), i("span",
|
|
877
|
+
C(b(e.amount) + " ", 1),
|
|
878
|
+
e.showCurrency ? (l(), i("span", Me, "€")) : g("", !0)
|
|
837
879
|
], 2)) : g("", !0)
|
|
838
880
|
], 64));
|
|
839
881
|
}
|
|
840
|
-
}),
|
|
882
|
+
}), De = ["onClick"], ze = {
|
|
841
883
|
key: 1,
|
|
842
884
|
style: { cursor: "not-allowed" }
|
|
843
|
-
},
|
|
885
|
+
}, Pe = /* @__PURE__ */ y({
|
|
844
886
|
__name: "Pagination",
|
|
845
887
|
props: {
|
|
846
888
|
totalItems: {
|
|
@@ -855,54 +897,54 @@ const Se = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
855
897
|
},
|
|
856
898
|
emits: ["page-changed"],
|
|
857
899
|
setup(e, { emit: t }) {
|
|
858
|
-
const
|
|
859
|
-
function
|
|
860
|
-
if (u !==
|
|
861
|
-
|
|
900
|
+
const a = e, n = U(1), r = U(0), o = U([]), c = t;
|
|
901
|
+
function p(u) {
|
|
902
|
+
if (u !== n.value && u >= 1 && u <= r.value && (n.value = u), r.value > 5) {
|
|
903
|
+
o.value = [], u - 3 > 0 && (o.value.push(1), o.value.push(0));
|
|
862
904
|
for (let x = 2; x >= 1; x--) {
|
|
863
|
-
let
|
|
864
|
-
|
|
905
|
+
let B = u - x;
|
|
906
|
+
B > 0 && o.value.push(B);
|
|
865
907
|
}
|
|
866
|
-
|
|
867
|
-
let
|
|
868
|
-
if (
|
|
908
|
+
o.value.push(n.value);
|
|
909
|
+
let _ = r.value - u, N = _ > 2, H = 2;
|
|
910
|
+
if (N) {
|
|
869
911
|
for (let x = 1; x <= H; x++)
|
|
870
|
-
|
|
871
|
-
|
|
912
|
+
o.value.push(u + x);
|
|
913
|
+
o.value.push(0), o.value.push(r.value);
|
|
872
914
|
} else
|
|
873
|
-
for (let x = 1; x <=
|
|
874
|
-
|
|
915
|
+
for (let x = 1; x <= _; x++)
|
|
916
|
+
o.value.push(u + x);
|
|
875
917
|
}
|
|
876
918
|
c("page-changed", u);
|
|
877
919
|
}
|
|
878
|
-
return Y(() =>
|
|
879
|
-
if (r.value = Math.ceil(
|
|
920
|
+
return Y(() => a.totalItems, () => {
|
|
921
|
+
if (r.value = Math.ceil(a.totalItems / a.itemsPerPage), o.value = [], r.value > 5) {
|
|
880
922
|
for (let u = 1; u < 5; u++)
|
|
881
|
-
|
|
882
|
-
|
|
923
|
+
o.value.push(u);
|
|
924
|
+
o.value.push(0), o.value.push(r.value);
|
|
883
925
|
} else
|
|
884
926
|
for (let u = 1; u <= r.value; u++)
|
|
885
|
-
|
|
927
|
+
o.value.push(u);
|
|
886
928
|
}), (u, W) => (l(), i("div", null, [
|
|
887
|
-
|
|
888
|
-
(l(!0), i(T, null, q(
|
|
889
|
-
|
|
929
|
+
s("ul", null, [
|
|
930
|
+
(l(!0), i(T, null, q(o.value, (_) => (l(), i("li", { key: _ }, [
|
|
931
|
+
_ !== 0 ? (l(), i("a", {
|
|
890
932
|
key: 0,
|
|
891
|
-
onClick: (
|
|
892
|
-
class:
|
|
893
|
-
},
|
|
894
|
-
|
|
933
|
+
onClick: (N) => p(_),
|
|
934
|
+
class: h({ active: _ === n.value })
|
|
935
|
+
}, b(_), 11, De)) : g("", !0),
|
|
936
|
+
_ === 0 ? (l(), i("span", ze, "...")) : g("", !0)
|
|
895
937
|
]))), 128))
|
|
896
938
|
])
|
|
897
939
|
]));
|
|
898
940
|
}
|
|
899
|
-
}),
|
|
941
|
+
}), ct = /* @__PURE__ */ I(Pe, [["__scopeId", "data-v-248e09af"]]), We = { key: 0 }, He = {
|
|
900
942
|
key: 0,
|
|
901
943
|
class: "flex items-center space-x-2"
|
|
902
|
-
},
|
|
944
|
+
}, Fe = {
|
|
903
945
|
key: 1,
|
|
904
946
|
class: "flex items-center space-x-2"
|
|
905
|
-
},
|
|
947
|
+
}, ut = /* @__PURE__ */ y({
|
|
906
948
|
__name: "TrendArrow",
|
|
907
949
|
props: {
|
|
908
950
|
number: {
|
|
@@ -915,58 +957,59 @@ const Se = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
915
957
|
}
|
|
916
958
|
},
|
|
917
959
|
setup(e) {
|
|
918
|
-
const t = e,
|
|
919
|
-
return (
|
|
920
|
-
|
|
921
|
-
|
|
960
|
+
const t = e, a = k(() => t.number !== null && t.number !== void 0 && t.number < 0);
|
|
961
|
+
return (n, r) => e.number ? (l(), i("div", We, [
|
|
962
|
+
a.value ? (l(), i("span", He, [
|
|
963
|
+
m(M, {
|
|
922
964
|
color: d(f).RED
|
|
923
965
|
}, {
|
|
924
|
-
default:
|
|
925
|
-
C(
|
|
966
|
+
default: R(() => [
|
|
967
|
+
C(b(e.number) + b(t.icon), 1)
|
|
926
968
|
]),
|
|
927
969
|
_: 1
|
|
928
970
|
}, 8, ["color"]),
|
|
929
|
-
|
|
930
|
-
])) : (l(), i("span",
|
|
931
|
-
|
|
971
|
+
m(d(Z), { class: "h-5 w-5 text-red-500" })
|
|
972
|
+
])) : (l(), i("span", Fe, [
|
|
973
|
+
m(M, {
|
|
932
974
|
color: d(f).GREEN
|
|
933
975
|
}, {
|
|
934
|
-
default:
|
|
935
|
-
C(
|
|
976
|
+
default: R(() => [
|
|
977
|
+
C(b(e.number) + b(t.icon), 1)
|
|
936
978
|
]),
|
|
937
979
|
_: 1
|
|
938
980
|
}, 8, ["color"]),
|
|
939
|
-
|
|
981
|
+
m(d(J), { class: "h-5 w-5 text-green-500" })
|
|
940
982
|
]))
|
|
941
983
|
])) : g("", !0);
|
|
942
984
|
}
|
|
943
985
|
});
|
|
944
|
-
var
|
|
986
|
+
var Ye = /* @__PURE__ */ ((e) => (e.WIN = "WIN", e.LOSE = "LOSE", e))(Ye || {});
|
|
945
987
|
export {
|
|
946
|
-
|
|
947
|
-
|
|
988
|
+
S as AlertEnum,
|
|
989
|
+
Qe as BaseAlert,
|
|
948
990
|
M as BaseBadge,
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
991
|
+
Ye as BaseBadgeEnum,
|
|
992
|
+
Ze as BaseBreadcrumb,
|
|
993
|
+
Je as BaseButton,
|
|
952
994
|
v as BaseButtonEnum,
|
|
953
|
-
|
|
954
|
-
|
|
995
|
+
E as BaseButtonSizeEnum,
|
|
996
|
+
et as BaseLine,
|
|
955
997
|
A as BaseLoginEnum,
|
|
956
|
-
|
|
957
|
-
|
|
998
|
+
tt as BaseLogo,
|
|
999
|
+
rt as BaseModal,
|
|
958
1000
|
P as BaseModalEnum,
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
1001
|
+
st as BaseRow,
|
|
1002
|
+
ot as BaseSpinner,
|
|
1003
|
+
at as BaseToast,
|
|
1004
|
+
w as BaseToastEnum,
|
|
1005
|
+
nt as ColoredSquares,
|
|
964
1006
|
f as ColorsEnums,
|
|
965
|
-
|
|
1007
|
+
lt as EarningsCard,
|
|
1008
|
+
it as EuroAmount,
|
|
966
1009
|
L as LineEnum,
|
|
967
|
-
|
|
1010
|
+
ct as Pagination,
|
|
968
1011
|
O as PositioningEnum,
|
|
969
|
-
|
|
1012
|
+
ut as TrendArrow,
|
|
970
1013
|
te as getBaseColor,
|
|
971
|
-
|
|
1014
|
+
Ve as getBaseColorOf
|
|
972
1015
|
};
|