@choosemycompany/ui 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +44 -5
- package/dist/index.js +244 -219
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import './assets/index.css';const
|
|
1
|
+
import { defineComponent as j, computed as E, createElementBlock as I, openBlock as x, normalizeClass as k, renderSlot as C, Fragment as ye, createCommentVNode as _, unref as S, createVNode as je, createElementVNode as W, withCtx as Fe, ref as Q, shallowRef as _e, onMounted as Ee, watch as $e, onUnmounted as Ae, h as oe, nextTick as Le, createBlock as Me } from "vue";
|
|
2
|
+
import './assets/index.css';const Ne = {
|
|
3
3
|
primary: "primary",
|
|
4
4
|
secondary: "secondary"
|
|
5
|
-
},
|
|
5
|
+
}, ze = {
|
|
6
6
|
default: "default",
|
|
7
7
|
danger: "danger"
|
|
8
|
-
},
|
|
8
|
+
}, De = {
|
|
9
9
|
small: "small",
|
|
10
10
|
medium: "medium"
|
|
11
|
-
},
|
|
11
|
+
}, Re = ["disabled"], Kt = /* @__PURE__ */ j({
|
|
12
12
|
name: "CmcButton",
|
|
13
13
|
__name: "CmcButton",
|
|
14
14
|
props: {
|
|
15
|
-
kind: { default:
|
|
16
|
-
variant: { default:
|
|
17
|
-
size: { default:
|
|
15
|
+
kind: { default: Ne.primary },
|
|
16
|
+
variant: { default: ze.default },
|
|
17
|
+
size: { default: De.medium },
|
|
18
18
|
disabled: { type: Boolean, default: !1 },
|
|
19
19
|
loading: { type: Boolean, default: !1 }
|
|
20
20
|
},
|
|
21
21
|
emits: ["click"],
|
|
22
22
|
setup(e, { emit: n }) {
|
|
23
|
-
const t = e, s = n, o =
|
|
23
|
+
const t = e, s = n, o = E(() => ({
|
|
24
24
|
button: !0,
|
|
25
25
|
[`button--${t.variant}`]: !0,
|
|
26
26
|
[`button--${t.kind}`]: !0,
|
|
@@ -29,109 +29,109 @@ import './assets/index.css';const ze = {
|
|
|
29
29
|
})), i = () => {
|
|
30
30
|
t.disabled || s("click", 1);
|
|
31
31
|
};
|
|
32
|
-
return (r, c) => (
|
|
32
|
+
return (r, c) => (x(), I("button", {
|
|
33
33
|
type: "button",
|
|
34
|
-
class:
|
|
34
|
+
class: k(o.value),
|
|
35
35
|
onClick: i,
|
|
36
36
|
disabled: t.disabled
|
|
37
37
|
}, [
|
|
38
|
-
|
|
39
|
-
], 10,
|
|
38
|
+
C(r.$slots, "default")
|
|
39
|
+
], 10, Re));
|
|
40
40
|
}
|
|
41
|
-
}),
|
|
41
|
+
}), P = {
|
|
42
42
|
h1: "h1",
|
|
43
43
|
h2: "h2",
|
|
44
44
|
h3: "h3",
|
|
45
45
|
h4: "h4",
|
|
46
46
|
h5: "h5",
|
|
47
47
|
h6: "h6"
|
|
48
|
-
},
|
|
48
|
+
}, Be = /* @__PURE__ */ j({
|
|
49
49
|
name: "CmcHeading",
|
|
50
50
|
__name: "CmcHeading",
|
|
51
51
|
props: {
|
|
52
52
|
level: {}
|
|
53
53
|
},
|
|
54
54
|
setup(e) {
|
|
55
|
-
const n = e, t =
|
|
55
|
+
const n = e, t = E(() => ({
|
|
56
56
|
heading: !0,
|
|
57
57
|
[`heading-${n.level}`]: !0
|
|
58
58
|
}));
|
|
59
|
-
return (s, o) => (
|
|
60
|
-
S(
|
|
59
|
+
return (s, o) => (x(), I(ye, null, [
|
|
60
|
+
S(P).h1 === n.level ? (x(), I("h1", {
|
|
61
61
|
key: 0,
|
|
62
|
-
class:
|
|
62
|
+
class: k(t.value)
|
|
63
63
|
}, [
|
|
64
|
-
|
|
65
|
-
], 2)) :
|
|
66
|
-
S(
|
|
64
|
+
C(s.$slots, "default")
|
|
65
|
+
], 2)) : _("", !0),
|
|
66
|
+
S(P).h2 === n.level ? (x(), I("h2", {
|
|
67
67
|
key: 1,
|
|
68
|
-
class:
|
|
68
|
+
class: k(t.value)
|
|
69
69
|
}, [
|
|
70
|
-
|
|
71
|
-
], 2)) :
|
|
72
|
-
S(
|
|
70
|
+
C(s.$slots, "default")
|
|
71
|
+
], 2)) : _("", !0),
|
|
72
|
+
S(P).h3 === n.level ? (x(), I("h3", {
|
|
73
73
|
key: 2,
|
|
74
|
-
class:
|
|
74
|
+
class: k(t.value)
|
|
75
75
|
}, [
|
|
76
|
-
|
|
77
|
-
], 2)) :
|
|
78
|
-
S(
|
|
76
|
+
C(s.$slots, "default")
|
|
77
|
+
], 2)) : _("", !0),
|
|
78
|
+
S(P).h4 === n.level ? (x(), I("h4", {
|
|
79
79
|
key: 3,
|
|
80
|
-
class:
|
|
80
|
+
class: k(t.value)
|
|
81
81
|
}, [
|
|
82
|
-
|
|
83
|
-
], 2)) :
|
|
84
|
-
S(
|
|
82
|
+
C(s.$slots, "default")
|
|
83
|
+
], 2)) : _("", !0),
|
|
84
|
+
S(P).h5 === n.level ? (x(), I("h5", {
|
|
85
85
|
key: 4,
|
|
86
|
-
class:
|
|
86
|
+
class: k(t.value)
|
|
87
87
|
}, [
|
|
88
|
-
|
|
89
|
-
], 2)) :
|
|
90
|
-
S(
|
|
88
|
+
C(s.$slots, "default")
|
|
89
|
+
], 2)) : _("", !0),
|
|
90
|
+
S(P).h6 === n.level ? (x(), I("h6", {
|
|
91
91
|
key: 5,
|
|
92
|
-
class:
|
|
92
|
+
class: k(t.value)
|
|
93
93
|
}, [
|
|
94
|
-
|
|
95
|
-
], 2)) :
|
|
94
|
+
C(s.$slots, "default")
|
|
95
|
+
], 2)) : _("", !0)
|
|
96
96
|
], 64));
|
|
97
97
|
}
|
|
98
|
-
}),
|
|
98
|
+
}), Wt = /* @__PURE__ */ j({
|
|
99
99
|
name: "CmcTitle",
|
|
100
100
|
__name: "CmcTitle",
|
|
101
101
|
setup(e) {
|
|
102
|
-
return (n, t) => (
|
|
103
|
-
|
|
104
|
-
level: S(
|
|
102
|
+
return (n, t) => (x(), I(ye, null, [
|
|
103
|
+
je(Be, {
|
|
104
|
+
level: S(P).h1
|
|
105
105
|
}, {
|
|
106
|
-
default:
|
|
107
|
-
|
|
106
|
+
default: Fe(() => [
|
|
107
|
+
C(n.$slots, "default")
|
|
108
108
|
]),
|
|
109
109
|
_: 3
|
|
110
110
|
}, 8, ["level"]),
|
|
111
111
|
t[0] || (t[0] = W("hr", null, null, -1))
|
|
112
112
|
], 64));
|
|
113
113
|
}
|
|
114
|
-
}),
|
|
114
|
+
}), He = {
|
|
115
115
|
success: "success",
|
|
116
116
|
danger: "danger",
|
|
117
117
|
warning: "warning"
|
|
118
|
-
},
|
|
118
|
+
}, Ve = { class: "status__label" }, Jt = /* @__PURE__ */ j({
|
|
119
119
|
name: "CmcStatus",
|
|
120
120
|
__name: "CmcStatus",
|
|
121
121
|
props: {
|
|
122
|
-
status: { default:
|
|
122
|
+
status: { default: He.success }
|
|
123
123
|
},
|
|
124
124
|
setup(e) {
|
|
125
|
-
const n = e, t =
|
|
125
|
+
const n = e, t = E(() => ({
|
|
126
126
|
status: !0,
|
|
127
127
|
[`status--${n.status}`]: !0
|
|
128
128
|
}));
|
|
129
|
-
return (s, o) => (
|
|
130
|
-
class:
|
|
129
|
+
return (s, o) => (x(), I("div", {
|
|
130
|
+
class: k(t.value)
|
|
131
131
|
}, [
|
|
132
132
|
o[0] || (o[0] = W("span", { class: "status__dot" }, null, -1)),
|
|
133
|
-
W("span",
|
|
134
|
-
|
|
133
|
+
W("span", Ve, [
|
|
134
|
+
C(s.$slots, "default")
|
|
135
135
|
])
|
|
136
136
|
], 2));
|
|
137
137
|
}
|
|
@@ -184,27 +184,27 @@ import './assets/index.css';const ze = {
|
|
|
184
184
|
rotate: 0,
|
|
185
185
|
vFlip: !1,
|
|
186
186
|
hFlip: !1
|
|
187
|
-
}),
|
|
187
|
+
}), G = Object.freeze({
|
|
188
188
|
...ve,
|
|
189
189
|
...H
|
|
190
190
|
}), J = Object.freeze({
|
|
191
|
-
...
|
|
191
|
+
...G,
|
|
192
192
|
body: "",
|
|
193
193
|
hidden: !1
|
|
194
194
|
});
|
|
195
|
-
function
|
|
195
|
+
function Ge(e, n) {
|
|
196
196
|
const t = {};
|
|
197
197
|
!e.hFlip != !n.hFlip && (t.hFlip = !0), !e.vFlip != !n.vFlip && (t.vFlip = !0);
|
|
198
198
|
const s = ((e.rotate || 0) + (n.rotate || 0)) % 4;
|
|
199
199
|
return s && (t.rotate = s), t;
|
|
200
200
|
}
|
|
201
201
|
function se(e, n) {
|
|
202
|
-
const t =
|
|
202
|
+
const t = Ge(e, n);
|
|
203
203
|
for (const s in J)
|
|
204
204
|
s in H ? s in e && !(s in t) && (t[s] = H[s]) : s in n ? t[s] = n[s] : s in e && (t[s] = e[s]);
|
|
205
205
|
return t;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function qe(e, n) {
|
|
208
208
|
const t = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
209
209
|
function i(r) {
|
|
210
210
|
if (t[r])
|
|
@@ -218,7 +218,7 @@ function Ue(e, n) {
|
|
|
218
218
|
}
|
|
219
219
|
return Object.keys(t).concat(Object.keys(s)).forEach(i), o;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Qe(e, n, t) {
|
|
222
222
|
const s = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
223
223
|
let i = {};
|
|
224
224
|
function r(c) {
|
|
@@ -236,20 +236,20 @@ function xe(e, n) {
|
|
|
236
236
|
e.not_found instanceof Array && e.not_found.forEach((o) => {
|
|
237
237
|
n(o, null), t.push(o);
|
|
238
238
|
});
|
|
239
|
-
const s =
|
|
239
|
+
const s = qe(e);
|
|
240
240
|
for (const o in s) {
|
|
241
241
|
const i = s[o];
|
|
242
|
-
i && (n(o,
|
|
242
|
+
i && (n(o, Qe(e, o, i)), t.push(o));
|
|
243
243
|
}
|
|
244
244
|
return t;
|
|
245
245
|
}
|
|
246
|
-
const
|
|
246
|
+
const Ue = {
|
|
247
247
|
provider: "",
|
|
248
248
|
aliases: {},
|
|
249
249
|
not_found: {},
|
|
250
250
|
...ve
|
|
251
251
|
};
|
|
252
|
-
function
|
|
252
|
+
function U(e, n) {
|
|
253
253
|
for (const t in n)
|
|
254
254
|
if (t in e && typeof e[t] != typeof n[t])
|
|
255
255
|
return !1;
|
|
@@ -259,7 +259,7 @@ function we(e) {
|
|
|
259
259
|
if (typeof e != "object" || e === null)
|
|
260
260
|
return null;
|
|
261
261
|
const n = e;
|
|
262
|
-
if (typeof n.prefix != "string" || !e.icons || typeof e.icons != "object" || !
|
|
262
|
+
if (typeof n.prefix != "string" || !e.icons || typeof e.icons != "object" || !U(e, Ue))
|
|
263
263
|
return null;
|
|
264
264
|
const t = n.icons;
|
|
265
265
|
for (const o in t) {
|
|
@@ -268,7 +268,7 @@ function we(e) {
|
|
|
268
268
|
// Name cannot be empty
|
|
269
269
|
!o || // Must have body
|
|
270
270
|
typeof i.body != "string" || // Check other props
|
|
271
|
-
!
|
|
271
|
+
!U(
|
|
272
272
|
i,
|
|
273
273
|
J
|
|
274
274
|
)
|
|
@@ -282,7 +282,7 @@ function we(e) {
|
|
|
282
282
|
// Name cannot be empty
|
|
283
283
|
!o || // Parent must be set and point to existing icon
|
|
284
284
|
typeof r != "string" || !t[r] && !s[r] || // Check other props
|
|
285
|
-
!
|
|
285
|
+
!U(
|
|
286
286
|
i,
|
|
287
287
|
J
|
|
288
288
|
)
|
|
@@ -292,7 +292,7 @@ function we(e) {
|
|
|
292
292
|
return n;
|
|
293
293
|
}
|
|
294
294
|
const ie = /* @__PURE__ */ Object.create(null);
|
|
295
|
-
function
|
|
295
|
+
function Ke(e, n) {
|
|
296
296
|
return {
|
|
297
297
|
provider: e,
|
|
298
298
|
prefix: n,
|
|
@@ -300,16 +300,16 @@ function We(e, n) {
|
|
|
300
300
|
missing: /* @__PURE__ */ new Set()
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function $(e, n) {
|
|
304
304
|
const t = ie[e] || (ie[e] = /* @__PURE__ */ Object.create(null));
|
|
305
|
-
return t[n] || (t[n] =
|
|
305
|
+
return t[n] || (t[n] = Ke(e, n));
|
|
306
306
|
}
|
|
307
307
|
function Ie(e, n) {
|
|
308
308
|
return we(n) ? xe(n, (t, s) => {
|
|
309
309
|
s ? e.icons[t] = s : e.missing.add(t);
|
|
310
310
|
}) : [];
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function We(e, n, t) {
|
|
313
313
|
try {
|
|
314
314
|
if (typeof t.body == "string")
|
|
315
315
|
return e.icons[n] = { ...t }, !0;
|
|
@@ -321,27 +321,27 @@ let N = !1;
|
|
|
321
321
|
function ke(e) {
|
|
322
322
|
return typeof e == "boolean" && (N = e), N;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Je(e) {
|
|
325
325
|
const n = typeof e == "string" ? V(e, !0, N) : e;
|
|
326
326
|
if (n) {
|
|
327
|
-
const t =
|
|
327
|
+
const t = $(n.provider, n.prefix), s = n.name;
|
|
328
328
|
return t.icons[s] || (t.missing.has(s) ? null : void 0);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Xe(e, n) {
|
|
332
332
|
const t = V(e, !0, N);
|
|
333
333
|
if (!t)
|
|
334
334
|
return !1;
|
|
335
|
-
const s =
|
|
336
|
-
return n ?
|
|
335
|
+
const s = $(t.provider, t.prefix);
|
|
336
|
+
return n ? We(s, t.name, n) : (s.missing.add(t.name), !0);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function Ye(e, n) {
|
|
339
339
|
if (typeof e != "object")
|
|
340
340
|
return !1;
|
|
341
341
|
if (typeof n != "string" && (n = e.provider || ""), N && !n && !e.prefix) {
|
|
342
342
|
let o = !1;
|
|
343
343
|
return we(e) && (e.prefix = "", xe(e, (i, r) => {
|
|
344
|
-
|
|
344
|
+
Xe(i, r) && (o = !0);
|
|
345
345
|
})), o;
|
|
346
346
|
}
|
|
347
347
|
const t = e.prefix;
|
|
@@ -350,7 +350,7 @@ function Ze(e, n) {
|
|
|
350
350
|
name: "a"
|
|
351
351
|
}))
|
|
352
352
|
return !1;
|
|
353
|
-
const s =
|
|
353
|
+
const s = $(n, t);
|
|
354
354
|
return !!Ie(s, e);
|
|
355
355
|
}
|
|
356
356
|
const Ce = Object.freeze({
|
|
@@ -361,7 +361,7 @@ const Ce = Object.freeze({
|
|
|
361
361
|
...Ce,
|
|
362
362
|
// Transformations
|
|
363
363
|
...H
|
|
364
|
-
}),
|
|
364
|
+
}), Ze = /(-?[0-9.]*[0-9]+[0-9.]*)/g, et = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
365
365
|
function re(e, n, t) {
|
|
366
366
|
if (n === 1)
|
|
367
367
|
return e;
|
|
@@ -369,11 +369,11 @@ function re(e, n, t) {
|
|
|
369
369
|
return Math.ceil(e * n * t) / t;
|
|
370
370
|
if (typeof e != "string")
|
|
371
371
|
return e;
|
|
372
|
-
const s = e.split(
|
|
372
|
+
const s = e.split(Ze);
|
|
373
373
|
if (s === null || !s.length)
|
|
374
374
|
return e;
|
|
375
375
|
const o = [];
|
|
376
|
-
let i = s.shift(), r =
|
|
376
|
+
let i = s.shift(), r = et.test(i);
|
|
377
377
|
for (; ; ) {
|
|
378
378
|
if (r) {
|
|
379
379
|
const c = parseFloat(i);
|
|
@@ -385,7 +385,7 @@ function re(e, n, t) {
|
|
|
385
385
|
r = !r;
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function tt(e, n = "defs") {
|
|
389
389
|
let t = "";
|
|
390
390
|
const s = e.indexOf("<" + n);
|
|
391
391
|
for (; s >= 0; ) {
|
|
@@ -402,17 +402,17 @@ function nt(e, n = "defs") {
|
|
|
402
402
|
content: e
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function nt(e, n) {
|
|
406
406
|
return e ? "<defs>" + e + "</defs>" + n : n;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
409
|
-
const s =
|
|
410
|
-
return
|
|
408
|
+
function ot(e, n, t) {
|
|
409
|
+
const s = tt(e);
|
|
410
|
+
return nt(s.defs, n + s.content + t);
|
|
411
411
|
}
|
|
412
|
-
const
|
|
413
|
-
function
|
|
412
|
+
const st = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
413
|
+
function it(e, n) {
|
|
414
414
|
const t = {
|
|
415
|
-
...
|
|
415
|
+
...G,
|
|
416
416
|
...e
|
|
417
417
|
}, s = {
|
|
418
418
|
...Se,
|
|
@@ -426,14 +426,14 @@ function rt(e, n) {
|
|
|
426
426
|
let i = t.body;
|
|
427
427
|
[t, s].forEach((g) => {
|
|
428
428
|
const f = [], F = g.hFlip, T = g.vFlip;
|
|
429
|
-
let
|
|
430
|
-
F ? T ?
|
|
429
|
+
let w = g.rotate;
|
|
430
|
+
F ? T ? w += 2 : (f.push(
|
|
431
431
|
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
432
432
|
), f.push("scale(-1 1)"), o.top = o.left = 0) : T && (f.push(
|
|
433
433
|
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
434
434
|
), f.push("scale(1 -1)"), o.top = o.left = 0);
|
|
435
435
|
let b;
|
|
436
|
-
switch (
|
|
436
|
+
switch (w < 0 && (w -= Math.floor(w / 4) * 4), w = w % 4, w) {
|
|
437
437
|
case 1:
|
|
438
438
|
b = o.height / 2 + o.top, f.unshift(
|
|
439
439
|
"rotate(90 " + b.toString() + " " + b.toString() + ")"
|
|
@@ -450,7 +450,7 @@ function rt(e, n) {
|
|
|
450
450
|
);
|
|
451
451
|
break;
|
|
452
452
|
}
|
|
453
|
-
|
|
453
|
+
w % 2 === 1 && (o.left !== o.top && (b = o.left, o.left = o.top, o.top = b), o.width !== o.height && (b = o.width, o.width = o.height, o.height = b)), f.length && (i = ot(
|
|
454
454
|
i,
|
|
455
455
|
'<g transform="' + f.join(" ") + '">',
|
|
456
456
|
"</g>"
|
|
@@ -460,7 +460,7 @@ function rt(e, n) {
|
|
|
460
460
|
let a, d;
|
|
461
461
|
r === null ? (d = c === null ? "1em" : c === "auto" ? l : c, a = re(d, u / l)) : (a = r === "auto" ? u : r, d = c === null ? re(a, l / u) : c === "auto" ? l : c);
|
|
462
462
|
const p = {}, m = (g, f) => {
|
|
463
|
-
|
|
463
|
+
st(f) || (p[g] = f.toString());
|
|
464
464
|
};
|
|
465
465
|
m("width", a), m("height", d);
|
|
466
466
|
const y = [o.left, o.top, u, l];
|
|
@@ -470,18 +470,18 @@ function rt(e, n) {
|
|
|
470
470
|
body: i
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
|
-
const
|
|
474
|
-
let
|
|
475
|
-
function
|
|
473
|
+
const rt = /\sid="(\S+)"/g, ct = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
474
|
+
let lt = 0;
|
|
475
|
+
function ut(e, n = ct) {
|
|
476
476
|
const t = [];
|
|
477
477
|
let s;
|
|
478
|
-
for (; s =
|
|
478
|
+
for (; s = rt.exec(e); )
|
|
479
479
|
t.push(s[1]);
|
|
480
480
|
if (!t.length)
|
|
481
481
|
return e;
|
|
482
482
|
const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
483
483
|
return t.forEach((i) => {
|
|
484
|
-
const r = typeof n == "function" ? n(i) : n + (
|
|
484
|
+
const r = typeof n == "function" ? n(i) : n + (lt++).toString(), c = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
485
485
|
e = e.replace(
|
|
486
486
|
// Allowed characters before id: [#;"]
|
|
487
487
|
// Allowed characters after id: [)"], .[a-z]
|
|
@@ -491,7 +491,7 @@ function at(e, n = lt) {
|
|
|
491
491
|
}), e = e.replace(new RegExp(o, "g"), ""), e;
|
|
492
492
|
}
|
|
493
493
|
const X = /* @__PURE__ */ Object.create(null);
|
|
494
|
-
function
|
|
494
|
+
function at(e, n) {
|
|
495
495
|
X[e] = n;
|
|
496
496
|
}
|
|
497
497
|
function Y(e) {
|
|
@@ -531,14 +531,14 @@ for (; L.length > 0; )
|
|
|
531
531
|
te[""] = ee({
|
|
532
532
|
resources: ["https://api.iconify.design"].concat(R)
|
|
533
533
|
});
|
|
534
|
-
function
|
|
534
|
+
function ft(e, n) {
|
|
535
535
|
const t = ee(n);
|
|
536
536
|
return t === null ? !1 : (te[e] = t, !0);
|
|
537
537
|
}
|
|
538
538
|
function ne(e) {
|
|
539
539
|
return te[e];
|
|
540
540
|
}
|
|
541
|
-
const
|
|
541
|
+
const dt = () => {
|
|
542
542
|
let e;
|
|
543
543
|
try {
|
|
544
544
|
if (e = fetch, typeof e == "function")
|
|
@@ -546,8 +546,8 @@ const pt = () => {
|
|
|
546
546
|
} catch {
|
|
547
547
|
}
|
|
548
548
|
};
|
|
549
|
-
let ce =
|
|
550
|
-
function
|
|
549
|
+
let ce = dt();
|
|
550
|
+
function pt(e, n) {
|
|
551
551
|
const t = ne(e);
|
|
552
552
|
if (!t)
|
|
553
553
|
return 0;
|
|
@@ -564,11 +564,11 @@ function ht(e, n) {
|
|
|
564
564
|
}
|
|
565
565
|
return s;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function ht(e) {
|
|
568
568
|
return e === 404;
|
|
569
569
|
}
|
|
570
|
-
const
|
|
571
|
-
const s = [], o =
|
|
570
|
+
const mt = (e, n, t) => {
|
|
571
|
+
const s = [], o = pt(e, n), i = "icons";
|
|
572
572
|
let r = {
|
|
573
573
|
type: i,
|
|
574
574
|
provider: e,
|
|
@@ -584,7 +584,7 @@ const gt = (e, n, t) => {
|
|
|
584
584
|
}, c = u.length), r.icons.push(u);
|
|
585
585
|
}), s.push(r), s;
|
|
586
586
|
};
|
|
587
|
-
function
|
|
587
|
+
function gt(e) {
|
|
588
588
|
if (typeof e == "string") {
|
|
589
589
|
const n = ne(e);
|
|
590
590
|
if (n)
|
|
@@ -592,12 +592,12 @@ function yt(e) {
|
|
|
592
592
|
}
|
|
593
593
|
return "/";
|
|
594
594
|
}
|
|
595
|
-
const
|
|
595
|
+
const yt = (e, n, t) => {
|
|
596
596
|
if (!ce) {
|
|
597
597
|
t("abort", 424);
|
|
598
598
|
return;
|
|
599
599
|
}
|
|
600
|
-
let s =
|
|
600
|
+
let s = gt(n.provider);
|
|
601
601
|
switch (n.type) {
|
|
602
602
|
case "icons": {
|
|
603
603
|
const i = n.prefix, c = n.icons.join(","), u = new URLSearchParams({
|
|
@@ -620,7 +620,7 @@ const bt = (e, n, t) => {
|
|
|
620
620
|
const r = i.status;
|
|
621
621
|
if (r !== 200) {
|
|
622
622
|
setTimeout(() => {
|
|
623
|
-
t(
|
|
623
|
+
t(ht(r) ? "abort" : "next", r);
|
|
624
624
|
});
|
|
625
625
|
return;
|
|
626
626
|
}
|
|
@@ -638,11 +638,11 @@ const bt = (e, n, t) => {
|
|
|
638
638
|
}).catch(() => {
|
|
639
639
|
t("next", o);
|
|
640
640
|
});
|
|
641
|
-
},
|
|
642
|
-
prepare:
|
|
643
|
-
send:
|
|
641
|
+
}, bt = {
|
|
642
|
+
prepare: mt,
|
|
643
|
+
send: yt
|
|
644
644
|
};
|
|
645
|
-
function
|
|
645
|
+
function vt(e) {
|
|
646
646
|
const n = {
|
|
647
647
|
loaded: [],
|
|
648
648
|
missing: [],
|
|
@@ -658,7 +658,7 @@ function xt(e) {
|
|
|
658
658
|
if (s.name === o.name && s.prefix === o.prefix && s.provider === o.provider)
|
|
659
659
|
return;
|
|
660
660
|
s = o;
|
|
661
|
-
const i = o.provider, r = o.prefix, c = o.name, u = t[i] || (t[i] = /* @__PURE__ */ Object.create(null)), l = u[r] || (u[r] =
|
|
661
|
+
const i = o.provider, r = o.prefix, c = o.name, u = t[i] || (t[i] = /* @__PURE__ */ Object.create(null)), l = u[r] || (u[r] = $(i, r));
|
|
662
662
|
let a;
|
|
663
663
|
c in l.icons ? a = n.loaded : r === "" || l.missing.has(c) ? a = n.missing : a = n.pending;
|
|
664
664
|
const d = {
|
|
@@ -675,7 +675,7 @@ function Te(e, n) {
|
|
|
675
675
|
s && (t.loaderCallbacks = s.filter((o) => o.id !== n));
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function xt(e) {
|
|
679
679
|
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
680
680
|
e.pendingCallbacksFlag = !1;
|
|
681
681
|
const n = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
@@ -713,9 +713,9 @@ function wt(e) {
|
|
|
713
713
|
});
|
|
714
714
|
}));
|
|
715
715
|
}
|
|
716
|
-
let
|
|
717
|
-
function
|
|
718
|
-
const s =
|
|
716
|
+
let wt = 0;
|
|
717
|
+
function It(e, n, t) {
|
|
718
|
+
const s = wt++, o = Te.bind(null, t, s);
|
|
719
719
|
if (!n.pending.length)
|
|
720
720
|
return o;
|
|
721
721
|
const i = {
|
|
@@ -728,14 +728,14 @@ function kt(e, n, t) {
|
|
|
728
728
|
(r.loaderCallbacks || (r.loaderCallbacks = [])).push(i);
|
|
729
729
|
}), o;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function kt(e, n = !0, t = !1) {
|
|
732
732
|
const s = [];
|
|
733
733
|
return e.forEach((o) => {
|
|
734
734
|
const i = typeof o == "string" ? V(o, n, t) : o;
|
|
735
735
|
i && s.push(i);
|
|
736
736
|
}), s;
|
|
737
737
|
}
|
|
738
|
-
var
|
|
738
|
+
var Ct = {
|
|
739
739
|
resources: [],
|
|
740
740
|
index: 0,
|
|
741
741
|
timeout: 2e3,
|
|
@@ -743,7 +743,7 @@ var St = {
|
|
|
743
743
|
random: !1,
|
|
744
744
|
dataAfterTimeout: !1
|
|
745
745
|
};
|
|
746
|
-
function
|
|
746
|
+
function St(e, n, t, s) {
|
|
747
747
|
const o = e.resources.length, i = e.random ? Math.floor(Math.random() * o) : e.index;
|
|
748
748
|
let r;
|
|
749
749
|
if (e.random) {
|
|
@@ -785,14 +785,14 @@ function Tt(e, n, t, s) {
|
|
|
785
785
|
h(void 0, a);
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function w() {
|
|
789
789
|
p.forEach((h) => {
|
|
790
790
|
h.status === "pending" && (h.status = "aborted");
|
|
791
791
|
}), p = [];
|
|
792
792
|
}
|
|
793
793
|
function b(h, v, A) {
|
|
794
794
|
const z = v !== "success";
|
|
795
|
-
switch (p = p.filter((
|
|
795
|
+
switch (p = p.filter((O) => O !== h), u) {
|
|
796
796
|
case "pending":
|
|
797
797
|
break;
|
|
798
798
|
case "failed":
|
|
@@ -807,18 +807,18 @@ function Tt(e, n, t, s) {
|
|
|
807
807
|
return;
|
|
808
808
|
}
|
|
809
809
|
if (z) {
|
|
810
|
-
a = A, p.length || (r.length ?
|
|
810
|
+
a = A, p.length || (r.length ? q() : T());
|
|
811
811
|
return;
|
|
812
812
|
}
|
|
813
|
-
if (y(),
|
|
814
|
-
const
|
|
815
|
-
|
|
813
|
+
if (y(), w(), !e.random) {
|
|
814
|
+
const O = e.resources.indexOf(h.resource);
|
|
815
|
+
O !== -1 && O !== e.index && (e.index = O);
|
|
816
816
|
}
|
|
817
|
-
u = "completed", m.forEach((
|
|
818
|
-
|
|
817
|
+
u = "completed", m.forEach((O) => {
|
|
818
|
+
O(A);
|
|
819
819
|
});
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function q() {
|
|
822
822
|
if (u !== "pending")
|
|
823
823
|
return;
|
|
824
824
|
y();
|
|
@@ -826,7 +826,7 @@ function Tt(e, n, t, s) {
|
|
|
826
826
|
if (h === void 0) {
|
|
827
827
|
if (p.length) {
|
|
828
828
|
d = setTimeout(() => {
|
|
829
|
-
y(), u === "pending" && (
|
|
829
|
+
y(), u === "pending" && (w(), T());
|
|
830
830
|
}, e.timeout);
|
|
831
831
|
return;
|
|
832
832
|
}
|
|
@@ -840,13 +840,13 @@ function Tt(e, n, t, s) {
|
|
|
840
840
|
b(v, A, z);
|
|
841
841
|
}
|
|
842
842
|
};
|
|
843
|
-
p.push(v), l++, d = setTimeout(
|
|
843
|
+
p.push(v), l++, d = setTimeout(q, e.rotate), t(h, n, v.callback);
|
|
844
844
|
}
|
|
845
|
-
return setTimeout(
|
|
845
|
+
return setTimeout(q), F;
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function Oe(e) {
|
|
848
848
|
const n = {
|
|
849
|
-
...
|
|
849
|
+
...Ct,
|
|
850
850
|
...e
|
|
851
851
|
};
|
|
852
852
|
let t = [];
|
|
@@ -854,7 +854,7 @@ function Pe(e) {
|
|
|
854
854
|
t = t.filter((c) => c().status === "pending");
|
|
855
855
|
}
|
|
856
856
|
function o(c, u, l) {
|
|
857
|
-
const a =
|
|
857
|
+
const a = St(
|
|
858
858
|
n,
|
|
859
859
|
c,
|
|
860
860
|
u,
|
|
@@ -880,12 +880,12 @@ function Pe(e) {
|
|
|
880
880
|
function le() {
|
|
881
881
|
}
|
|
882
882
|
const K = /* @__PURE__ */ Object.create(null);
|
|
883
|
-
function
|
|
883
|
+
function Tt(e) {
|
|
884
884
|
if (!K[e]) {
|
|
885
885
|
const n = ne(e);
|
|
886
886
|
if (!n)
|
|
887
887
|
return;
|
|
888
|
-
const t =
|
|
888
|
+
const t = Oe(n), s = {
|
|
889
889
|
config: n,
|
|
890
890
|
redundancy: t
|
|
891
891
|
};
|
|
@@ -893,19 +893,19 @@ function Pt(e) {
|
|
|
893
893
|
}
|
|
894
894
|
return K[e];
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Ot(e, n, t) {
|
|
897
897
|
let s, o;
|
|
898
898
|
if (typeof e == "string") {
|
|
899
899
|
const i = Y(e);
|
|
900
900
|
if (!i)
|
|
901
901
|
return t(void 0, 424), le;
|
|
902
902
|
o = i.send;
|
|
903
|
-
const r =
|
|
903
|
+
const r = Tt(e);
|
|
904
904
|
r && (s = r.redundancy);
|
|
905
905
|
} else {
|
|
906
906
|
const i = ee(e);
|
|
907
907
|
if (i) {
|
|
908
|
-
s =
|
|
908
|
+
s = Oe(i);
|
|
909
909
|
const r = e.resources ? e.resources[0] : "", c = Y(r);
|
|
910
910
|
c && (o = c.send);
|
|
911
911
|
}
|
|
@@ -914,12 +914,12 @@ function jt(e, n, t) {
|
|
|
914
914
|
}
|
|
915
915
|
function ue() {
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function Pt(e) {
|
|
918
918
|
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
919
|
-
e.iconsLoaderFlag = !1,
|
|
919
|
+
e.iconsLoaderFlag = !1, xt(e);
|
|
920
920
|
}));
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function jt(e) {
|
|
923
923
|
const n = [], t = [];
|
|
924
924
|
return e.forEach((s) => {
|
|
925
925
|
(s.match(be) ? n : t).push(s);
|
|
@@ -928,7 +928,7 @@ function Ot(e) {
|
|
|
928
928
|
invalid: t
|
|
929
929
|
};
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function M(e, n, t) {
|
|
932
932
|
function s() {
|
|
933
933
|
const o = e.pendingIcons;
|
|
934
934
|
n.forEach((i) => {
|
|
@@ -944,7 +944,7 @@ function $(e, n, t) {
|
|
|
944
944
|
} catch (o) {
|
|
945
945
|
console.error(o);
|
|
946
946
|
}
|
|
947
|
-
s(),
|
|
947
|
+
s(), Pt(e);
|
|
948
948
|
}
|
|
949
949
|
function ae(e, n) {
|
|
950
950
|
e instanceof Promise ? e.then((t) => {
|
|
@@ -953,7 +953,7 @@ function ae(e, n) {
|
|
|
953
953
|
n(null);
|
|
954
954
|
}) : n(e);
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function Ft(e, n) {
|
|
957
957
|
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(n).sort() : e.iconsToLoad = n, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
958
958
|
e.iconsQueueFlag = !1;
|
|
959
959
|
const { provider: t, prefix: s } = e, o = e.iconsToLoad;
|
|
@@ -964,7 +964,7 @@ function Et(e, n) {
|
|
|
964
964
|
ae(
|
|
965
965
|
e.loadIcons(o, s, t),
|
|
966
966
|
(a) => {
|
|
967
|
-
|
|
967
|
+
M(e, o, a);
|
|
968
968
|
}
|
|
969
969
|
);
|
|
970
970
|
return;
|
|
@@ -979,28 +979,28 @@ function Et(e, n) {
|
|
|
979
979
|
[a]: p
|
|
980
980
|
}
|
|
981
981
|
} : null;
|
|
982
|
-
|
|
982
|
+
M(e, [a], m);
|
|
983
983
|
});
|
|
984
984
|
});
|
|
985
985
|
return;
|
|
986
986
|
}
|
|
987
|
-
const { valid: r, invalid: c } =
|
|
988
|
-
if (c.length &&
|
|
987
|
+
const { valid: r, invalid: c } = jt(o);
|
|
988
|
+
if (c.length && M(e, c, null), !r.length)
|
|
989
989
|
return;
|
|
990
990
|
const u = s.match(be) ? Y(t) : null;
|
|
991
991
|
if (!u) {
|
|
992
|
-
|
|
992
|
+
M(e, r, null);
|
|
993
993
|
return;
|
|
994
994
|
}
|
|
995
995
|
u.prepare(t, s, r).forEach((a) => {
|
|
996
|
-
|
|
997
|
-
|
|
996
|
+
Ot(t, a, (d) => {
|
|
997
|
+
M(e, a.icons, d);
|
|
998
998
|
});
|
|
999
999
|
});
|
|
1000
1000
|
}));
|
|
1001
1001
|
}
|
|
1002
1002
|
const _t = (e, n) => {
|
|
1003
|
-
const t =
|
|
1003
|
+
const t = kt(e, !0, ke()), s = vt(t);
|
|
1004
1004
|
if (!s.pending.length) {
|
|
1005
1005
|
let u = !0;
|
|
1006
1006
|
return n && setTimeout(() => {
|
|
@@ -1020,18 +1020,18 @@ const _t = (e, n) => {
|
|
|
1020
1020
|
const { provider: l, prefix: a } = u;
|
|
1021
1021
|
if (a === c && l === r)
|
|
1022
1022
|
return;
|
|
1023
|
-
r = l, c = a, i.push(
|
|
1023
|
+
r = l, c = a, i.push($(l, a));
|
|
1024
1024
|
const d = o[l] || (o[l] = /* @__PURE__ */ Object.create(null));
|
|
1025
1025
|
d[a] || (d[a] = []);
|
|
1026
1026
|
}), s.pending.forEach((u) => {
|
|
1027
|
-
const { provider: l, prefix: a, name: d } = u, p =
|
|
1027
|
+
const { provider: l, prefix: a, name: d } = u, p = $(l, a), m = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
|
|
1028
1028
|
m.has(d) || (m.add(d), o[l][a].push(d));
|
|
1029
1029
|
}), i.forEach((u) => {
|
|
1030
1030
|
const l = o[u.provider][u.prefix];
|
|
1031
|
-
l.length &&
|
|
1032
|
-
}), n ?
|
|
1031
|
+
l.length && Ft(u, l);
|
|
1032
|
+
}), n ? It(n, s, i) : ue;
|
|
1033
1033
|
};
|
|
1034
|
-
function
|
|
1034
|
+
function Et(e, n) {
|
|
1035
1035
|
const t = {
|
|
1036
1036
|
...e
|
|
1037
1037
|
};
|
|
@@ -1041,9 +1041,9 @@ function At(e, n) {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
return t;
|
|
1043
1043
|
}
|
|
1044
|
-
const
|
|
1045
|
-
function
|
|
1046
|
-
n.split(
|
|
1044
|
+
const $t = /[\s,]+/;
|
|
1045
|
+
function At(e, n) {
|
|
1046
|
+
n.split($t).forEach((t) => {
|
|
1047
1047
|
switch (t.trim()) {
|
|
1048
1048
|
case "horizontal":
|
|
1049
1049
|
e.hFlip = !0;
|
|
@@ -1054,7 +1054,7 @@ function $t(e, n) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
});
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function Lt(e, n = 0) {
|
|
1058
1058
|
const t = e.replace(/^-?[0-9.]*/, "");
|
|
1059
1059
|
function s(o) {
|
|
1060
1060
|
for (; o < 0; )
|
|
@@ -1080,34 +1080,34 @@ function Mt(e, n = 0) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
return n;
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function Mt(e, n) {
|
|
1084
1084
|
let t = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
1085
1085
|
for (const s in n)
|
|
1086
1086
|
t += " " + s + '="' + n[s] + '"';
|
|
1087
1087
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + t + ">" + e + "</svg>";
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function Nt(e) {
|
|
1090
1090
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return "data:image/svg+xml," +
|
|
1092
|
+
function zt(e) {
|
|
1093
|
+
return "data:image/svg+xml," + Nt(e);
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return 'url("' +
|
|
1095
|
+
function Dt(e) {
|
|
1096
|
+
return 'url("' + zt(e) + '")';
|
|
1097
1097
|
}
|
|
1098
1098
|
const fe = {
|
|
1099
1099
|
...Se,
|
|
1100
1100
|
inline: !1
|
|
1101
|
-
},
|
|
1101
|
+
}, Rt = {
|
|
1102
1102
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1103
1103
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1104
1104
|
"aria-hidden": !0,
|
|
1105
1105
|
role: "img"
|
|
1106
|
-
},
|
|
1106
|
+
}, Bt = {
|
|
1107
1107
|
display: "inline-block"
|
|
1108
1108
|
}, Z = {
|
|
1109
1109
|
backgroundColor: "currentColor"
|
|
1110
|
-
},
|
|
1110
|
+
}, Pe = {
|
|
1111
1111
|
backgroundColor: "transparent"
|
|
1112
1112
|
}, de = {
|
|
1113
1113
|
Image: "var(--svg)",
|
|
@@ -1116,7 +1116,7 @@ const fe = {
|
|
|
1116
1116
|
}, pe = {
|
|
1117
1117
|
webkitMask: Z,
|
|
1118
1118
|
mask: Z,
|
|
1119
|
-
background:
|
|
1119
|
+
background: Pe
|
|
1120
1120
|
};
|
|
1121
1121
|
for (const e in pe) {
|
|
1122
1122
|
const n = pe[e];
|
|
@@ -1132,7 +1132,7 @@ function he(e) {
|
|
|
1132
1132
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1133
1133
|
}
|
|
1134
1134
|
const me = (e, n) => {
|
|
1135
|
-
const t =
|
|
1135
|
+
const t = Et(fe, n), s = { ...Rt }, o = n.mode || "svg", i = {}, r = n.style, c = typeof r == "object" && !(r instanceof Array) ? r : {};
|
|
1136
1136
|
for (let g in n) {
|
|
1137
1137
|
const f = n[g];
|
|
1138
1138
|
if (f !== void 0)
|
|
@@ -1152,7 +1152,7 @@ const me = (e, n) => {
|
|
|
1152
1152
|
break;
|
|
1153
1153
|
// Flip as string: 'horizontal,vertical'
|
|
1154
1154
|
case "flip":
|
|
1155
|
-
typeof f == "string" &&
|
|
1155
|
+
typeof f == "string" && At(t, f);
|
|
1156
1156
|
break;
|
|
1157
1157
|
// Color: override style
|
|
1158
1158
|
case "color":
|
|
@@ -1160,7 +1160,7 @@ const me = (e, n) => {
|
|
|
1160
1160
|
break;
|
|
1161
1161
|
// Rotation as string
|
|
1162
1162
|
case "rotate":
|
|
1163
|
-
typeof f == "string" ? t[g] =
|
|
1163
|
+
typeof f == "string" ? t[g] = Lt(f) : typeof f == "number" && (t[g] = f);
|
|
1164
1164
|
break;
|
|
1165
1165
|
// Remove aria-hidden
|
|
1166
1166
|
case "ariaHidden":
|
|
@@ -1173,32 +1173,32 @@ const me = (e, n) => {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
|
-
const u =
|
|
1176
|
+
const u = it(e, t), l = u.attributes;
|
|
1177
1177
|
if (t.inline && (i.verticalAlign = "-0.125em"), o === "svg") {
|
|
1178
1178
|
s.style = {
|
|
1179
1179
|
...i,
|
|
1180
1180
|
...c
|
|
1181
1181
|
}, Object.assign(s, l);
|
|
1182
1182
|
let g = 0, f = n.id;
|
|
1183
|
-
return typeof f == "string" && (f = f.replace(/-/g, "_")), s.innerHTML =
|
|
1183
|
+
return typeof f == "string" && (f = f.replace(/-/g, "_")), s.innerHTML = ut(u.body, f ? () => f + "ID" + g++ : "iconifyVue"), oe("svg", s);
|
|
1184
1184
|
}
|
|
1185
|
-
const { body: a, width: d, height: p } = e, m = o === "mask" || (o === "bg" ? !1 : a.indexOf("currentColor") !== -1), y =
|
|
1185
|
+
const { body: a, width: d, height: p } = e, m = o === "mask" || (o === "bg" ? !1 : a.indexOf("currentColor") !== -1), y = Mt(a, {
|
|
1186
1186
|
...l,
|
|
1187
1187
|
width: d + "",
|
|
1188
1188
|
height: p + ""
|
|
1189
1189
|
});
|
|
1190
1190
|
return s.style = {
|
|
1191
1191
|
...i,
|
|
1192
|
-
"--svg":
|
|
1192
|
+
"--svg": Dt(y),
|
|
1193
1193
|
width: he(l.width),
|
|
1194
1194
|
height: he(l.height),
|
|
1195
|
-
...
|
|
1196
|
-
...m ? Z :
|
|
1195
|
+
...Bt,
|
|
1196
|
+
...m ? Z : Pe,
|
|
1197
1197
|
...c
|
|
1198
1198
|
}, oe("span", s);
|
|
1199
1199
|
};
|
|
1200
1200
|
ke(!0);
|
|
1201
|
-
|
|
1201
|
+
at("", bt);
|
|
1202
1202
|
if (typeof document < "u" && typeof window < "u") {
|
|
1203
1203
|
const e = window;
|
|
1204
1204
|
if (e.IconifyPreload !== void 0) {
|
|
@@ -1208,7 +1208,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1208
1208
|
// Check if item is an object and not null/array
|
|
1209
1209
|
(typeof s != "object" || s === null || s instanceof Array || // Check for 'icons' and 'prefix'
|
|
1210
1210
|
typeof s.icons != "object" || typeof s.prefix != "string" || // Add icon set
|
|
1211
|
-
!
|
|
1211
|
+
!Ye(s)) && console.error(t);
|
|
1212
1212
|
} catch {
|
|
1213
1213
|
console.error(t);
|
|
1214
1214
|
}
|
|
@@ -1223,22 +1223,22 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1223
1223
|
const o = n[t];
|
|
1224
1224
|
if (typeof o != "object" || !o || o.resources === void 0)
|
|
1225
1225
|
continue;
|
|
1226
|
-
|
|
1226
|
+
ft(t, o) || console.error(s);
|
|
1227
1227
|
} catch {
|
|
1228
1228
|
console.error(s);
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
|
-
const
|
|
1234
|
-
...
|
|
1233
|
+
const Ht = {
|
|
1234
|
+
...G,
|
|
1235
1235
|
body: ""
|
|
1236
|
-
},
|
|
1237
|
-
const t =
|
|
1236
|
+
}, Vt = j((e, { emit: n }) => {
|
|
1237
|
+
const t = Q(null);
|
|
1238
1238
|
function s() {
|
|
1239
1239
|
t.value && (t.value.abort?.(), t.value = null);
|
|
1240
1240
|
}
|
|
1241
|
-
const o =
|
|
1241
|
+
const o = Q(!!e.ssr), i = Q(""), r = _e(null);
|
|
1242
1242
|
function c() {
|
|
1243
1243
|
const l = e.icon;
|
|
1244
1244
|
if (typeof l == "object" && l !== null && typeof l.body == "string")
|
|
@@ -1248,7 +1248,7 @@ const Vt = {
|
|
|
1248
1248
|
let a;
|
|
1249
1249
|
if (typeof l != "string" || (a = V(l, !1, !0)) === null)
|
|
1250
1250
|
return null;
|
|
1251
|
-
let d =
|
|
1251
|
+
let d = Je(a);
|
|
1252
1252
|
if (!d) {
|
|
1253
1253
|
const y = t.value;
|
|
1254
1254
|
return (!y || y.name !== l) && (d === null ? t.value = {
|
|
@@ -1258,7 +1258,7 @@ const Vt = {
|
|
|
1258
1258
|
abort: _t([a], u)
|
|
1259
1259
|
}), null;
|
|
1260
1260
|
}
|
|
1261
|
-
s(), i.value !== l && (i.value = l,
|
|
1261
|
+
s(), i.value !== l && (i.value = l, Le(() => {
|
|
1262
1262
|
n("load", l);
|
|
1263
1263
|
}));
|
|
1264
1264
|
const p = e.customise;
|
|
@@ -1274,18 +1274,18 @@ const Vt = {
|
|
|
1274
1274
|
const l = c();
|
|
1275
1275
|
l ? l.data !== r.value?.data && (r.value = l) : r.value = null;
|
|
1276
1276
|
}
|
|
1277
|
-
return o.value ? u() :
|
|
1277
|
+
return o.value ? u() : Ee(() => {
|
|
1278
1278
|
o.value = !0, u();
|
|
1279
|
-
}),
|
|
1279
|
+
}), $e(() => e.icon, u), Ae(s), () => {
|
|
1280
1280
|
const l = r.value;
|
|
1281
1281
|
if (!l)
|
|
1282
|
-
return me(
|
|
1282
|
+
return me(Ht, e);
|
|
1283
1283
|
let a = e;
|
|
1284
1284
|
return l.classes && (a = {
|
|
1285
1285
|
...e,
|
|
1286
1286
|
class: l.classes.join(" ")
|
|
1287
1287
|
}), me({
|
|
1288
|
-
...
|
|
1288
|
+
...G,
|
|
1289
1289
|
...l.data
|
|
1290
1290
|
}, a);
|
|
1291
1291
|
};
|
|
@@ -1325,37 +1325,62 @@ const Vt = {
|
|
|
1325
1325
|
plus: "ic:baseline-plus",
|
|
1326
1326
|
mail: "ci:mail-open",
|
|
1327
1327
|
"chevron-down": "mi:chevron-down"
|
|
1328
|
-
},
|
|
1328
|
+
}, Gt = {
|
|
1329
1329
|
m: 20,
|
|
1330
1330
|
l: 24
|
|
1331
|
-
},
|
|
1331
|
+
}, qt = {
|
|
1332
|
+
primary: "primary",
|
|
1333
|
+
secondary: "secondary"
|
|
1334
|
+
}, Xt = /* @__PURE__ */ j({
|
|
1332
1335
|
name: "CmcIcon",
|
|
1333
1336
|
__name: "CmcIcon",
|
|
1334
1337
|
props: {
|
|
1335
1338
|
name: { default: ge.profile },
|
|
1336
|
-
size: { default: "l" }
|
|
1339
|
+
size: { default: "l" },
|
|
1340
|
+
color: { default: qt.primary }
|
|
1337
1341
|
},
|
|
1338
1342
|
setup(e) {
|
|
1339
|
-
const n = e, t =
|
|
1340
|
-
return (o, i) => (
|
|
1341
|
-
class: "cmc-icon",
|
|
1343
|
+
const n = e, t = E(() => ge[n.name]), s = E(() => Gt[n.size]);
|
|
1344
|
+
return (o, i) => (x(), Me(S(Vt), {
|
|
1345
|
+
class: k(["cmc-icon", `cmc-icon--${n.color}`]),
|
|
1342
1346
|
icon: t.value,
|
|
1343
1347
|
width: s.value,
|
|
1344
1348
|
height: s.value
|
|
1345
|
-
},
|
|
1349
|
+
}, null, 8, ["class", "icon", "width", "height"]));
|
|
1350
|
+
}
|
|
1351
|
+
}), Qt = {
|
|
1352
|
+
medium: "medium"
|
|
1353
|
+
}, Yt = /* @__PURE__ */ j({
|
|
1354
|
+
name: "CmcButtonGroup",
|
|
1355
|
+
__name: "CmcButtonGroup",
|
|
1356
|
+
props: {
|
|
1357
|
+
gap: { default: Qt.medium }
|
|
1358
|
+
},
|
|
1359
|
+
setup(e) {
|
|
1360
|
+
const n = e, t = E(() => ({
|
|
1361
|
+
"button-group": !0,
|
|
1362
|
+
[`button-group-gap--${n.gap}`]: !0
|
|
1363
|
+
}));
|
|
1364
|
+
return (s, o) => (x(), I("div", {
|
|
1365
|
+
class: k(t.value)
|
|
1366
|
+
}, [
|
|
1367
|
+
C(s.$slots, "default")
|
|
1368
|
+
], 2));
|
|
1346
1369
|
}
|
|
1347
1370
|
});
|
|
1348
1371
|
export {
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
De as
|
|
1357
|
-
|
|
1372
|
+
Kt as CmcButton,
|
|
1373
|
+
Yt as CmcButtonGroup,
|
|
1374
|
+
Be as CmcHeading,
|
|
1375
|
+
Xt as CmcIcon,
|
|
1376
|
+
Jt as CmcStatus,
|
|
1377
|
+
Wt as CmcTitle,
|
|
1378
|
+
Ne as buttonKindOptions,
|
|
1379
|
+
De as buttonSizeOptions,
|
|
1380
|
+
ze as buttonVariantOptions,
|
|
1381
|
+
P as headingLevelOptions,
|
|
1382
|
+
qt as iconColorOptions,
|
|
1383
|
+
Gt as iconSizeOptions,
|
|
1358
1384
|
ge as iconsMap,
|
|
1359
|
-
|
|
1360
|
-
Ve as statusOptions
|
|
1385
|
+
He as statusOptions
|
|
1361
1386
|
};
|