@choosemycompany/ui 0.20.1 → 0.21.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 +15 -2
- package/dist/index.js +604 -605
- package/dist/index.umd.js +6 -6
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, ref as ee, shallowRef as
|
|
1
|
+
import { defineComponent as I, ref as ee, shallowRef as wt, onMounted as xt, watch as We, onUnmounted as _t, h as J, nextTick as Wt, computed as x, createBlock as W, openBlock as L, unref as D, normalizeClass as F, createElementBlock as h, createElementVNode as P, renderSlot as T, createCommentVNode as z, toDisplayString as V, createVNode as O, mergeProps as Yt, withCtx as _e, createTextVNode as St, Fragment as Z, renderList as H, mergeModels as K, useModel as te, useSlots as Jt, withDirectives as Se, vModelDynamic as e0, useId as Me, vModelCheckbox as Mt, normalizeStyle as re, createStaticVNode as Re, withModifiers as Ge, resolveDynamicComponent as t0, vModelSelect as n0, isRef as o0, watchEffect as r0, withKeys as fe } from "vue";
|
|
2
2
|
import './assets/index.css';const l0 = {
|
|
3
3
|
primary: "primary",
|
|
4
4
|
secondary: "secondary"
|
|
@@ -8,6 +8,8 @@ import './assets/index.css';const l0 = {
|
|
|
8
8
|
}, s0 = {
|
|
9
9
|
small: "small",
|
|
10
10
|
medium: "medium"
|
|
11
|
+
}, a0 = {
|
|
12
|
+
button: "button"
|
|
11
13
|
}, Rt = "loading", lt = {
|
|
12
14
|
arrow: "clarity:arrow-line",
|
|
13
15
|
burgerMenu: "material-symbols-light:menu",
|
|
@@ -18,6 +20,7 @@ import './assets/index.css';const l0 = {
|
|
|
18
20
|
chevronRight: "mi:chevron-right",
|
|
19
21
|
cog: "mdi:cog",
|
|
20
22
|
cross: "weui:close-filled",
|
|
23
|
+
crossOutline: "weui:close2-filled",
|
|
21
24
|
delete: "qlementine-icons:trash-16",
|
|
22
25
|
download: "material-symbols:download",
|
|
23
26
|
check: "ic:baseline-check",
|
|
@@ -36,9 +39,10 @@ import './assets/index.css';const l0 = {
|
|
|
36
39
|
star: "iconamoon:star-thin",
|
|
37
40
|
target: "qlementine-icons:target-16",
|
|
38
41
|
trophy: "material-symbols:trophy"
|
|
39
|
-
},
|
|
42
|
+
}, fr = {
|
|
40
43
|
primary: "primary",
|
|
41
44
|
secondary: "secondary",
|
|
45
|
+
danger: "danger",
|
|
42
46
|
light: "light"
|
|
43
47
|
}, bt = /^[a-z0-9]+(-[a-z0-9]+)*$/, be = (e, n, t, o = "") => {
|
|
44
48
|
const r = e.split(":");
|
|
@@ -85,31 +89,31 @@ import './assets/index.css';const l0 = {
|
|
|
85
89
|
width: 16,
|
|
86
90
|
height: 16
|
|
87
91
|
}
|
|
88
|
-
),
|
|
92
|
+
), xe = Object.freeze({
|
|
89
93
|
rotate: 0,
|
|
90
94
|
vFlip: !1,
|
|
91
95
|
hFlip: !1
|
|
92
96
|
}), $e = Object.freeze({
|
|
93
97
|
...$t,
|
|
94
|
-
...
|
|
98
|
+
...xe
|
|
95
99
|
}), He = Object.freeze({
|
|
96
100
|
...$e,
|
|
97
101
|
body: "",
|
|
98
102
|
hidden: !1
|
|
99
103
|
});
|
|
100
|
-
function
|
|
104
|
+
function u0(e, n) {
|
|
101
105
|
const t = {};
|
|
102
106
|
!e.hFlip != !n.hFlip && (t.hFlip = !0), !e.vFlip != !n.vFlip && (t.vFlip = !0);
|
|
103
107
|
const o = ((e.rotate || 0) + (n.rotate || 0)) % 4;
|
|
104
108
|
return o && (t.rotate = o), t;
|
|
105
109
|
}
|
|
106
110
|
function it(e, n) {
|
|
107
|
-
const t =
|
|
111
|
+
const t = u0(e, n);
|
|
108
112
|
for (const o in He)
|
|
109
|
-
o in
|
|
113
|
+
o in xe ? o in e && !(o in t) && (t[o] = xe[o]) : o in n ? t[o] = n[o] : o in e && (t[o] = e[o]);
|
|
110
114
|
return t;
|
|
111
115
|
}
|
|
112
|
-
function
|
|
116
|
+
function c0(e, n) {
|
|
113
117
|
const t = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
|
|
114
118
|
function l(i) {
|
|
115
119
|
if (t[i])
|
|
@@ -123,7 +127,7 @@ function u0(e, n) {
|
|
|
123
127
|
}
|
|
124
128
|
return Object.keys(t).concat(Object.keys(o)).forEach(l), r;
|
|
125
129
|
}
|
|
126
|
-
function
|
|
130
|
+
function g0(e, n, t) {
|
|
127
131
|
const o = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
128
132
|
let l = {};
|
|
129
133
|
function i(s) {
|
|
@@ -141,14 +145,14 @@ function It(e, n) {
|
|
|
141
145
|
e.not_found instanceof Array && e.not_found.forEach((r) => {
|
|
142
146
|
n(r, null), t.push(r);
|
|
143
147
|
});
|
|
144
|
-
const o =
|
|
148
|
+
const o = c0(e);
|
|
145
149
|
for (const r in o) {
|
|
146
150
|
const l = o[r];
|
|
147
|
-
l && (n(r,
|
|
151
|
+
l && (n(r, g0(e, r, l)), t.push(r));
|
|
148
152
|
}
|
|
149
153
|
return t;
|
|
150
154
|
}
|
|
151
|
-
const
|
|
155
|
+
const d0 = {
|
|
152
156
|
provider: "",
|
|
153
157
|
aliases: {},
|
|
154
158
|
not_found: {},
|
|
@@ -164,7 +168,7 @@ function Ft(e) {
|
|
|
164
168
|
if (typeof e != "object" || e === null)
|
|
165
169
|
return null;
|
|
166
170
|
const n = e;
|
|
167
|
-
if (typeof n.prefix != "string" || !e.icons || typeof e.icons != "object" || !Fe(e,
|
|
171
|
+
if (typeof n.prefix != "string" || !e.icons || typeof e.icons != "object" || !Fe(e, d0))
|
|
168
172
|
return null;
|
|
169
173
|
const t = n.icons;
|
|
170
174
|
for (const r in t) {
|
|
@@ -197,7 +201,7 @@ function Ft(e) {
|
|
|
197
201
|
return n;
|
|
198
202
|
}
|
|
199
203
|
const st = /* @__PURE__ */ Object.create(null);
|
|
200
|
-
function
|
|
204
|
+
function f0(e, n) {
|
|
201
205
|
return {
|
|
202
206
|
provider: e,
|
|
203
207
|
prefix: n,
|
|
@@ -207,14 +211,14 @@ function d0(e, n) {
|
|
|
207
211
|
}
|
|
208
212
|
function ie(e, n) {
|
|
209
213
|
const t = st[e] || (st[e] = /* @__PURE__ */ Object.create(null));
|
|
210
|
-
return t[n] || (t[n] =
|
|
214
|
+
return t[n] || (t[n] = f0(e, n));
|
|
211
215
|
}
|
|
212
216
|
function Pt(e, n) {
|
|
213
217
|
return Ft(n) ? It(n, (t, o) => {
|
|
214
218
|
o ? e.icons[t] = o : e.missing.add(t);
|
|
215
219
|
}) : [];
|
|
216
220
|
}
|
|
217
|
-
function
|
|
221
|
+
function p0(e, n, t) {
|
|
218
222
|
try {
|
|
219
223
|
if (typeof t.body == "string")
|
|
220
224
|
return e.icons[n] = { ...t }, !0;
|
|
@@ -226,27 +230,27 @@ let de = !1;
|
|
|
226
230
|
function zt(e) {
|
|
227
231
|
return typeof e == "boolean" && (de = e), de;
|
|
228
232
|
}
|
|
229
|
-
function
|
|
233
|
+
function m0(e) {
|
|
230
234
|
const n = typeof e == "string" ? be(e, !0, de) : e;
|
|
231
235
|
if (n) {
|
|
232
236
|
const t = ie(n.provider, n.prefix), o = n.name;
|
|
233
237
|
return t.icons[o] || (t.missing.has(o) ? null : void 0);
|
|
234
238
|
}
|
|
235
239
|
}
|
|
236
|
-
function
|
|
240
|
+
function C0(e, n) {
|
|
237
241
|
const t = be(e, !0, de);
|
|
238
242
|
if (!t)
|
|
239
243
|
return !1;
|
|
240
244
|
const o = ie(t.provider, t.prefix);
|
|
241
|
-
return n ?
|
|
245
|
+
return n ? p0(o, t.name, n) : (o.missing.add(t.name), !0);
|
|
242
246
|
}
|
|
243
|
-
function
|
|
247
|
+
function L0(e, n) {
|
|
244
248
|
if (typeof e != "object")
|
|
245
249
|
return !1;
|
|
246
250
|
if (typeof n != "string" && (n = e.provider || ""), de && !n && !e.prefix) {
|
|
247
251
|
let r = !1;
|
|
248
252
|
return Ft(e) && (e.prefix = "", It(e, (l, i) => {
|
|
249
|
-
|
|
253
|
+
C0(l, i) && (r = !0);
|
|
250
254
|
})), r;
|
|
251
255
|
}
|
|
252
256
|
const t = e.prefix;
|
|
@@ -265,8 +269,8 @@ const Vt = Object.freeze({
|
|
|
265
269
|
// Dimensions
|
|
266
270
|
...Vt,
|
|
267
271
|
// Transformations
|
|
268
|
-
...
|
|
269
|
-
}),
|
|
272
|
+
...xe
|
|
273
|
+
}), h0 = /(-?[0-9.]*[0-9]+[0-9.]*)/g, y0 = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
270
274
|
function at(e, n, t) {
|
|
271
275
|
if (n === 1)
|
|
272
276
|
return e;
|
|
@@ -274,11 +278,11 @@ function at(e, n, t) {
|
|
|
274
278
|
return Math.ceil(e * n * t) / t;
|
|
275
279
|
if (typeof e != "string")
|
|
276
280
|
return e;
|
|
277
|
-
const o = e.split(
|
|
281
|
+
const o = e.split(h0);
|
|
278
282
|
if (o === null || !o.length)
|
|
279
283
|
return e;
|
|
280
284
|
const r = [];
|
|
281
|
-
let l = o.shift(), i =
|
|
285
|
+
let l = o.shift(), i = y0.test(l);
|
|
282
286
|
for (; ; ) {
|
|
283
287
|
if (i) {
|
|
284
288
|
const s = parseFloat(l);
|
|
@@ -290,7 +294,7 @@ function at(e, n, t) {
|
|
|
290
294
|
i = !i;
|
|
291
295
|
}
|
|
292
296
|
}
|
|
293
|
-
function
|
|
297
|
+
function v0(e, n = "defs") {
|
|
294
298
|
let t = "";
|
|
295
299
|
const o = e.indexOf("<" + n);
|
|
296
300
|
for (; o >= 0; ) {
|
|
@@ -307,15 +311,15 @@ function y0(e, n = "defs") {
|
|
|
307
311
|
content: e
|
|
308
312
|
};
|
|
309
313
|
}
|
|
310
|
-
function
|
|
314
|
+
function w0(e, n) {
|
|
311
315
|
return e ? "<defs>" + e + "</defs>" + n : n;
|
|
312
316
|
}
|
|
313
|
-
function
|
|
314
|
-
const o =
|
|
315
|
-
return
|
|
317
|
+
function x0(e, n, t) {
|
|
318
|
+
const o = v0(e);
|
|
319
|
+
return w0(o.defs, n + o.content + t);
|
|
316
320
|
}
|
|
317
|
-
const
|
|
318
|
-
function
|
|
321
|
+
const _0 = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
322
|
+
function S0(e, n) {
|
|
319
323
|
const t = {
|
|
320
324
|
...$e,
|
|
321
325
|
...e
|
|
@@ -330,11 +334,11 @@ function x0(e, n) {
|
|
|
330
334
|
};
|
|
331
335
|
let l = t.body;
|
|
332
336
|
[t, o].forEach((m) => {
|
|
333
|
-
const C = [], y = m.hFlip,
|
|
337
|
+
const C = [], y = m.hFlip, _ = m.vFlip;
|
|
334
338
|
let R = m.rotate;
|
|
335
|
-
y ?
|
|
339
|
+
y ? _ ? R += 2 : (C.push(
|
|
336
340
|
"translate(" + (r.width + r.left).toString() + " " + (0 - r.top).toString() + ")"
|
|
337
|
-
), C.push("scale(-1 1)"), r.top = r.left = 0) :
|
|
341
|
+
), C.push("scale(-1 1)"), r.top = r.left = 0) : _ && (C.push(
|
|
338
342
|
"translate(" + (0 - r.left).toString() + " " + (r.height + r.top).toString() + ")"
|
|
339
343
|
), C.push("scale(1 -1)"), r.top = r.left = 0);
|
|
340
344
|
let M;
|
|
@@ -355,19 +359,19 @@ function x0(e, n) {
|
|
|
355
359
|
);
|
|
356
360
|
break;
|
|
357
361
|
}
|
|
358
|
-
R % 2 === 1 && (r.left !== r.top && (M = r.left, r.left = r.top, r.top = M), r.width !== r.height && (M = r.width, r.width = r.height, r.height = M)), C.length && (l =
|
|
362
|
+
R % 2 === 1 && (r.left !== r.top && (M = r.left, r.left = r.top, r.top = M), r.width !== r.height && (M = r.width, r.width = r.height, r.height = M)), C.length && (l = x0(
|
|
359
363
|
l,
|
|
360
364
|
'<g transform="' + C.join(" ") + '">',
|
|
361
365
|
"</g>"
|
|
362
366
|
));
|
|
363
367
|
});
|
|
364
368
|
const i = o.width, s = o.height, a = r.width, u = r.height;
|
|
365
|
-
let
|
|
366
|
-
i === null ? (f = s === null ? "1em" : s === "auto" ? u : s,
|
|
367
|
-
const d = {},
|
|
368
|
-
|
|
369
|
+
let c, f;
|
|
370
|
+
i === null ? (f = s === null ? "1em" : s === "auto" ? u : s, c = at(f, a / u)) : (c = i === "auto" ? a : i, f = s === null ? at(c, u / a) : s === "auto" ? u : s);
|
|
371
|
+
const d = {}, g = (m, C) => {
|
|
372
|
+
_0(C) || (d[m] = C.toString());
|
|
369
373
|
};
|
|
370
|
-
|
|
374
|
+
g("width", c), g("height", f);
|
|
371
375
|
const p = [r.left, r.top, a, u];
|
|
372
376
|
return d.viewBox = p.join(" "), {
|
|
373
377
|
attributes: d,
|
|
@@ -375,18 +379,18 @@ function x0(e, n) {
|
|
|
375
379
|
body: l
|
|
376
380
|
};
|
|
377
381
|
}
|
|
378
|
-
const
|
|
379
|
-
let
|
|
380
|
-
function
|
|
382
|
+
const M0 = /\sid="(\S+)"/g, R0 = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
383
|
+
let b0 = 0;
|
|
384
|
+
function $0(e, n = R0) {
|
|
381
385
|
const t = [];
|
|
382
386
|
let o;
|
|
383
|
-
for (; o =
|
|
387
|
+
for (; o = M0.exec(e); )
|
|
384
388
|
t.push(o[1]);
|
|
385
389
|
if (!t.length)
|
|
386
390
|
return e;
|
|
387
391
|
const r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
388
392
|
return t.forEach((l) => {
|
|
389
|
-
const i = typeof n == "function" ? n(l) : n + (
|
|
393
|
+
const i = typeof n == "function" ? n(l) : n + (b0++).toString(), s = l.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
390
394
|
e = e.replace(
|
|
391
395
|
// Allowed characters before id: [#;"]
|
|
392
396
|
// Allowed characters after id: [)"], .[a-z]
|
|
@@ -396,7 +400,7 @@ function b0(e, n = M0) {
|
|
|
396
400
|
}), e = e.replace(new RegExp(r, "g"), ""), e;
|
|
397
401
|
}
|
|
398
402
|
const Be = /* @__PURE__ */ Object.create(null);
|
|
399
|
-
function
|
|
403
|
+
function I0(e, n) {
|
|
400
404
|
Be[e] = n;
|
|
401
405
|
}
|
|
402
406
|
function Ne(e) {
|
|
@@ -436,14 +440,14 @@ for (; se.length > 0; )
|
|
|
436
440
|
Je[""] = Ye({
|
|
437
441
|
resources: ["https://api.iconify.design"].concat(ve)
|
|
438
442
|
});
|
|
439
|
-
function
|
|
443
|
+
function F0(e, n) {
|
|
440
444
|
const t = Ye(n);
|
|
441
445
|
return t === null ? !1 : (Je[e] = t, !0);
|
|
442
446
|
}
|
|
443
447
|
function et(e) {
|
|
444
448
|
return Je[e];
|
|
445
449
|
}
|
|
446
|
-
const
|
|
450
|
+
const P0 = () => {
|
|
447
451
|
let e;
|
|
448
452
|
try {
|
|
449
453
|
if (e = fetch, typeof e == "function")
|
|
@@ -451,8 +455,8 @@ const F0 = () => {
|
|
|
451
455
|
} catch {
|
|
452
456
|
}
|
|
453
457
|
};
|
|
454
|
-
let ut =
|
|
455
|
-
function
|
|
458
|
+
let ut = P0();
|
|
459
|
+
function z0(e, n) {
|
|
456
460
|
const t = et(e);
|
|
457
461
|
if (!t)
|
|
458
462
|
return 0;
|
|
@@ -469,11 +473,11 @@ function P0(e, n) {
|
|
|
469
473
|
}
|
|
470
474
|
return o;
|
|
471
475
|
}
|
|
472
|
-
function
|
|
476
|
+
function V0(e) {
|
|
473
477
|
return e === 404;
|
|
474
478
|
}
|
|
475
|
-
const
|
|
476
|
-
const o = [], r =
|
|
479
|
+
const k0 = (e, n, t) => {
|
|
480
|
+
const o = [], r = z0(e, n), l = "icons";
|
|
477
481
|
let i = {
|
|
478
482
|
type: l,
|
|
479
483
|
provider: e,
|
|
@@ -489,7 +493,7 @@ const V0 = (e, n, t) => {
|
|
|
489
493
|
}, s = a.length), i.icons.push(a);
|
|
490
494
|
}), o.push(i), o;
|
|
491
495
|
};
|
|
492
|
-
function
|
|
496
|
+
function E0(e) {
|
|
493
497
|
if (typeof e == "string") {
|
|
494
498
|
const n = et(e);
|
|
495
499
|
if (n)
|
|
@@ -497,12 +501,12 @@ function k0(e) {
|
|
|
497
501
|
}
|
|
498
502
|
return "/";
|
|
499
503
|
}
|
|
500
|
-
const
|
|
504
|
+
const Z0 = (e, n, t) => {
|
|
501
505
|
if (!ut) {
|
|
502
506
|
t("abort", 424);
|
|
503
507
|
return;
|
|
504
508
|
}
|
|
505
|
-
let o =
|
|
509
|
+
let o = E0(n.provider);
|
|
506
510
|
switch (n.type) {
|
|
507
511
|
case "icons": {
|
|
508
512
|
const l = n.prefix, s = n.icons.join(","), a = new URLSearchParams({
|
|
@@ -525,7 +529,7 @@ const E0 = (e, n, t) => {
|
|
|
525
529
|
const i = l.status;
|
|
526
530
|
if (i !== 200) {
|
|
527
531
|
setTimeout(() => {
|
|
528
|
-
t(
|
|
532
|
+
t(V0(i) ? "abort" : "next", i);
|
|
529
533
|
});
|
|
530
534
|
return;
|
|
531
535
|
}
|
|
@@ -543,9 +547,9 @@ const E0 = (e, n, t) => {
|
|
|
543
547
|
}).catch(() => {
|
|
544
548
|
t("next", r);
|
|
545
549
|
});
|
|
546
|
-
},
|
|
547
|
-
prepare:
|
|
548
|
-
send:
|
|
550
|
+
}, O0 = {
|
|
551
|
+
prepare: k0,
|
|
552
|
+
send: Z0
|
|
549
553
|
};
|
|
550
554
|
function A0(e) {
|
|
551
555
|
const n = {
|
|
@@ -564,14 +568,14 @@ function A0(e) {
|
|
|
564
568
|
return;
|
|
565
569
|
o = r;
|
|
566
570
|
const l = r.provider, i = r.prefix, s = r.name, a = t[l] || (t[l] = /* @__PURE__ */ Object.create(null)), u = a[i] || (a[i] = ie(l, i));
|
|
567
|
-
let
|
|
568
|
-
s in u.icons ?
|
|
571
|
+
let c;
|
|
572
|
+
s in u.icons ? c = n.loaded : i === "" || u.missing.has(s) ? c = n.missing : c = n.pending;
|
|
569
573
|
const f = {
|
|
570
574
|
provider: l,
|
|
571
575
|
prefix: i,
|
|
572
576
|
name: s
|
|
573
577
|
};
|
|
574
|
-
|
|
578
|
+
c.push(f);
|
|
575
579
|
}), n;
|
|
576
580
|
}
|
|
577
581
|
function Et(e, n) {
|
|
@@ -618,9 +622,9 @@ function D0(e) {
|
|
|
618
622
|
});
|
|
619
623
|
}));
|
|
620
624
|
}
|
|
621
|
-
let
|
|
622
|
-
function
|
|
623
|
-
const o =
|
|
625
|
+
let T0 = 0;
|
|
626
|
+
function G0(e, n, t) {
|
|
627
|
+
const o = T0++, r = Et.bind(null, t, o);
|
|
624
628
|
if (!n.pending.length)
|
|
625
629
|
return r;
|
|
626
630
|
const l = {
|
|
@@ -633,14 +637,14 @@ function T0(e, n, t) {
|
|
|
633
637
|
(i.loaderCallbacks || (i.loaderCallbacks = [])).push(l);
|
|
634
638
|
}), r;
|
|
635
639
|
}
|
|
636
|
-
function
|
|
640
|
+
function H0(e, n = !0, t = !1) {
|
|
637
641
|
const o = [];
|
|
638
642
|
return e.forEach((r) => {
|
|
639
643
|
const l = typeof r == "string" ? be(r, n, t) : r;
|
|
640
644
|
l && o.push(l);
|
|
641
645
|
}), o;
|
|
642
646
|
}
|
|
643
|
-
var
|
|
647
|
+
var B0 = {
|
|
644
648
|
resources: [],
|
|
645
649
|
index: 0,
|
|
646
650
|
timeout: 2e3,
|
|
@@ -648,7 +652,7 @@ var H0 = {
|
|
|
648
652
|
random: !1,
|
|
649
653
|
dataAfterTimeout: !1
|
|
650
654
|
};
|
|
651
|
-
function
|
|
655
|
+
function N0(e, n, t, o) {
|
|
652
656
|
const r = e.resources.length, l = e.random ? Math.floor(Math.random() * r) : e.index;
|
|
653
657
|
let i;
|
|
654
658
|
if (e.random) {
|
|
@@ -661,8 +665,8 @@ function B0(e, n, t, o) {
|
|
|
661
665
|
} else
|
|
662
666
|
i = e.resources.slice(l).concat(e.resources.slice(0, l));
|
|
663
667
|
const s = Date.now();
|
|
664
|
-
let a = "pending", u = 0,
|
|
665
|
-
typeof o == "function" &&
|
|
668
|
+
let a = "pending", u = 0, c, f = null, d = [], g = [];
|
|
669
|
+
typeof o == "function" && g.push(o);
|
|
666
670
|
function p() {
|
|
667
671
|
f && (clearTimeout(f), f = null);
|
|
668
672
|
}
|
|
@@ -672,7 +676,7 @@ function B0(e, n, t, o) {
|
|
|
672
676
|
}), d = [];
|
|
673
677
|
}
|
|
674
678
|
function C(S, k) {
|
|
675
|
-
k && (
|
|
679
|
+
k && (g = []), typeof S == "function" && g.push(S);
|
|
676
680
|
}
|
|
677
681
|
function y() {
|
|
678
682
|
return {
|
|
@@ -685,9 +689,9 @@ function B0(e, n, t, o) {
|
|
|
685
689
|
abort: m
|
|
686
690
|
};
|
|
687
691
|
}
|
|
688
|
-
function
|
|
689
|
-
a = "failed",
|
|
690
|
-
S(void 0,
|
|
692
|
+
function _() {
|
|
693
|
+
a = "failed", g.forEach((S) => {
|
|
694
|
+
S(void 0, c);
|
|
691
695
|
});
|
|
692
696
|
}
|
|
693
697
|
function R() {
|
|
@@ -708,18 +712,18 @@ function B0(e, n, t, o) {
|
|
|
708
712
|
return;
|
|
709
713
|
}
|
|
710
714
|
if (k === "abort") {
|
|
711
|
-
|
|
715
|
+
c = B, _();
|
|
712
716
|
return;
|
|
713
717
|
}
|
|
714
718
|
if (ne) {
|
|
715
|
-
|
|
719
|
+
c = B, d.length || (i.length ? b() : _());
|
|
716
720
|
return;
|
|
717
721
|
}
|
|
718
722
|
if (p(), R(), !e.random) {
|
|
719
723
|
const N = e.resources.indexOf(S.resource);
|
|
720
724
|
N !== -1 && N !== e.index && (e.index = N);
|
|
721
725
|
}
|
|
722
|
-
a = "completed",
|
|
726
|
+
a = "completed", g.forEach((N) => {
|
|
723
727
|
N(B);
|
|
724
728
|
});
|
|
725
729
|
}
|
|
@@ -731,11 +735,11 @@ function B0(e, n, t, o) {
|
|
|
731
735
|
if (S === void 0) {
|
|
732
736
|
if (d.length) {
|
|
733
737
|
f = setTimeout(() => {
|
|
734
|
-
p(), a === "pending" && (R(),
|
|
738
|
+
p(), a === "pending" && (R(), _());
|
|
735
739
|
}, e.timeout);
|
|
736
740
|
return;
|
|
737
741
|
}
|
|
738
|
-
|
|
742
|
+
_();
|
|
739
743
|
return;
|
|
740
744
|
}
|
|
741
745
|
const k = {
|
|
@@ -751,7 +755,7 @@ function B0(e, n, t, o) {
|
|
|
751
755
|
}
|
|
752
756
|
function Zt(e) {
|
|
753
757
|
const n = {
|
|
754
|
-
...
|
|
758
|
+
...B0,
|
|
755
759
|
...e
|
|
756
760
|
};
|
|
757
761
|
let t = [];
|
|
@@ -759,7 +763,7 @@ function Zt(e) {
|
|
|
759
763
|
t = t.filter((s) => s().status === "pending");
|
|
760
764
|
}
|
|
761
765
|
function r(s, a, u) {
|
|
762
|
-
const
|
|
766
|
+
const c = N0(
|
|
763
767
|
n,
|
|
764
768
|
s,
|
|
765
769
|
a,
|
|
@@ -767,7 +771,7 @@ function Zt(e) {
|
|
|
767
771
|
o(), u && u(f, d);
|
|
768
772
|
}
|
|
769
773
|
);
|
|
770
|
-
return t.push(
|
|
774
|
+
return t.push(c), c;
|
|
771
775
|
}
|
|
772
776
|
function l(s) {
|
|
773
777
|
return t.find((a) => s(a)) || null;
|
|
@@ -785,7 +789,7 @@ function Zt(e) {
|
|
|
785
789
|
function ct() {
|
|
786
790
|
}
|
|
787
791
|
const Pe = /* @__PURE__ */ Object.create(null);
|
|
788
|
-
function
|
|
792
|
+
function U0(e) {
|
|
789
793
|
if (!Pe[e]) {
|
|
790
794
|
const n = et(e);
|
|
791
795
|
if (!n)
|
|
@@ -798,14 +802,14 @@ function N0(e) {
|
|
|
798
802
|
}
|
|
799
803
|
return Pe[e];
|
|
800
804
|
}
|
|
801
|
-
function
|
|
805
|
+
function q0(e, n, t) {
|
|
802
806
|
let o, r;
|
|
803
807
|
if (typeof e == "string") {
|
|
804
808
|
const l = Ne(e);
|
|
805
809
|
if (!l)
|
|
806
810
|
return t(void 0, 424), ct;
|
|
807
811
|
r = l.send;
|
|
808
|
-
const i =
|
|
812
|
+
const i = U0(e);
|
|
809
813
|
i && (o = i.redundancy);
|
|
810
814
|
} else {
|
|
811
815
|
const l = Ye(e);
|
|
@@ -819,12 +823,12 @@ function U0(e, n, t) {
|
|
|
819
823
|
}
|
|
820
824
|
function gt() {
|
|
821
825
|
}
|
|
822
|
-
function
|
|
826
|
+
function j0(e) {
|
|
823
827
|
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
824
828
|
e.iconsLoaderFlag = !1, D0(e);
|
|
825
829
|
}));
|
|
826
830
|
}
|
|
827
|
-
function
|
|
831
|
+
function K0(e) {
|
|
828
832
|
const n = [], t = [];
|
|
829
833
|
return e.forEach((o) => {
|
|
830
834
|
(o.match(bt) ? n : t).push(o);
|
|
@@ -849,7 +853,7 @@ function ae(e, n, t) {
|
|
|
849
853
|
} catch (r) {
|
|
850
854
|
console.error(r);
|
|
851
855
|
}
|
|
852
|
-
o(),
|
|
856
|
+
o(), j0(e);
|
|
853
857
|
}
|
|
854
858
|
function dt(e, n) {
|
|
855
859
|
e instanceof Promise ? e.then((t) => {
|
|
@@ -858,7 +862,7 @@ function dt(e, n) {
|
|
|
858
862
|
n(null);
|
|
859
863
|
}) : n(e);
|
|
860
864
|
}
|
|
861
|
-
function
|
|
865
|
+
function X0(e, n) {
|
|
862
866
|
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(n).sort() : e.iconsToLoad = n, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
863
867
|
e.iconsQueueFlag = !1;
|
|
864
868
|
const { provider: t, prefix: o } = e, r = e.iconsToLoad;
|
|
@@ -868,28 +872,28 @@ function K0(e, n) {
|
|
|
868
872
|
if (e.loadIcons && (r.length > 1 || !l)) {
|
|
869
873
|
dt(
|
|
870
874
|
e.loadIcons(r, o, t),
|
|
871
|
-
(
|
|
872
|
-
ae(e, r,
|
|
875
|
+
(c) => {
|
|
876
|
+
ae(e, r, c);
|
|
873
877
|
}
|
|
874
878
|
);
|
|
875
879
|
return;
|
|
876
880
|
}
|
|
877
881
|
if (l) {
|
|
878
|
-
r.forEach((
|
|
879
|
-
const f = l(
|
|
882
|
+
r.forEach((c) => {
|
|
883
|
+
const f = l(c, o, t);
|
|
880
884
|
dt(f, (d) => {
|
|
881
|
-
const
|
|
885
|
+
const g = d ? {
|
|
882
886
|
prefix: o,
|
|
883
887
|
icons: {
|
|
884
|
-
[
|
|
888
|
+
[c]: d
|
|
885
889
|
}
|
|
886
890
|
} : null;
|
|
887
|
-
ae(e, [
|
|
891
|
+
ae(e, [c], g);
|
|
888
892
|
});
|
|
889
893
|
});
|
|
890
894
|
return;
|
|
891
895
|
}
|
|
892
|
-
const { valid: i, invalid: s } =
|
|
896
|
+
const { valid: i, invalid: s } = K0(r);
|
|
893
897
|
if (s.length && ae(e, s, null), !i.length)
|
|
894
898
|
return;
|
|
895
899
|
const a = o.match(bt) ? Ne(t) : null;
|
|
@@ -897,15 +901,15 @@ function K0(e, n) {
|
|
|
897
901
|
ae(e, i, null);
|
|
898
902
|
return;
|
|
899
903
|
}
|
|
900
|
-
a.prepare(t, o, i).forEach((
|
|
901
|
-
|
|
902
|
-
ae(e,
|
|
904
|
+
a.prepare(t, o, i).forEach((c) => {
|
|
905
|
+
q0(t, c, (f) => {
|
|
906
|
+
ae(e, c.icons, f);
|
|
903
907
|
});
|
|
904
908
|
});
|
|
905
909
|
}));
|
|
906
910
|
}
|
|
907
|
-
const
|
|
908
|
-
const t =
|
|
911
|
+
const Q0 = (e, n) => {
|
|
912
|
+
const t = H0(e, !0, zt()), o = A0(t);
|
|
909
913
|
if (!o.pending.length) {
|
|
910
914
|
let a = !0;
|
|
911
915
|
return n && setTimeout(() => {
|
|
@@ -922,21 +926,21 @@ const X0 = (e, n) => {
|
|
|
922
926
|
const r = /* @__PURE__ */ Object.create(null), l = [];
|
|
923
927
|
let i, s;
|
|
924
928
|
return o.pending.forEach((a) => {
|
|
925
|
-
const { provider: u, prefix:
|
|
926
|
-
if (
|
|
929
|
+
const { provider: u, prefix: c } = a;
|
|
930
|
+
if (c === s && u === i)
|
|
927
931
|
return;
|
|
928
|
-
i = u, s =
|
|
932
|
+
i = u, s = c, l.push(ie(u, c));
|
|
929
933
|
const f = r[u] || (r[u] = /* @__PURE__ */ Object.create(null));
|
|
930
|
-
f[
|
|
934
|
+
f[c] || (f[c] = []);
|
|
931
935
|
}), o.pending.forEach((a) => {
|
|
932
|
-
const { provider: u, prefix:
|
|
933
|
-
|
|
936
|
+
const { provider: u, prefix: c, name: f } = a, d = ie(u, c), g = d.pendingIcons || (d.pendingIcons = /* @__PURE__ */ new Set());
|
|
937
|
+
g.has(f) || (g.add(f), r[u][c].push(f));
|
|
934
938
|
}), l.forEach((a) => {
|
|
935
939
|
const u = r[a.provider][a.prefix];
|
|
936
|
-
u.length &&
|
|
937
|
-
}), n ?
|
|
940
|
+
u.length && X0(a, u);
|
|
941
|
+
}), n ? G0(n, o, l) : gt;
|
|
938
942
|
};
|
|
939
|
-
function
|
|
943
|
+
function W0(e, n) {
|
|
940
944
|
const t = {
|
|
941
945
|
...e
|
|
942
946
|
};
|
|
@@ -946,9 +950,9 @@ function Q0(e, n) {
|
|
|
946
950
|
}
|
|
947
951
|
return t;
|
|
948
952
|
}
|
|
949
|
-
const
|
|
950
|
-
function
|
|
951
|
-
n.split(
|
|
953
|
+
const Y0 = /[\s,]+/;
|
|
954
|
+
function J0(e, n) {
|
|
955
|
+
n.split(Y0).forEach((t) => {
|
|
952
956
|
switch (t.trim()) {
|
|
953
957
|
case "horizontal":
|
|
954
958
|
e.hFlip = !0;
|
|
@@ -959,7 +963,7 @@ function Y0(e, n) {
|
|
|
959
963
|
}
|
|
960
964
|
});
|
|
961
965
|
}
|
|
962
|
-
function
|
|
966
|
+
function en(e, n = 0) {
|
|
963
967
|
const t = e.replace(/^-?[0-9.]*/, "");
|
|
964
968
|
function o(r) {
|
|
965
969
|
for (; r < 0; )
|
|
@@ -985,34 +989,34 @@ function J0(e, n = 0) {
|
|
|
985
989
|
}
|
|
986
990
|
return n;
|
|
987
991
|
}
|
|
988
|
-
function
|
|
992
|
+
function tn(e, n) {
|
|
989
993
|
let t = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
990
994
|
for (const o in n)
|
|
991
995
|
t += " " + o + '="' + n[o] + '"';
|
|
992
996
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + t + ">" + e + "</svg>";
|
|
993
997
|
}
|
|
994
|
-
function tn(e) {
|
|
995
|
-
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
996
|
-
}
|
|
997
998
|
function nn(e) {
|
|
998
|
-
return "
|
|
999
|
+
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
999
1000
|
}
|
|
1000
1001
|
function on(e) {
|
|
1001
|
-
return
|
|
1002
|
+
return "data:image/svg+xml," + nn(e);
|
|
1003
|
+
}
|
|
1004
|
+
function rn(e) {
|
|
1005
|
+
return 'url("' + on(e) + '")';
|
|
1002
1006
|
}
|
|
1003
1007
|
const ft = {
|
|
1004
1008
|
...kt,
|
|
1005
1009
|
inline: !1
|
|
1006
|
-
},
|
|
1010
|
+
}, ln = {
|
|
1007
1011
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1008
1012
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1009
1013
|
"aria-hidden": !0,
|
|
1010
1014
|
role: "img"
|
|
1011
|
-
},
|
|
1015
|
+
}, sn = {
|
|
1012
1016
|
display: "inline-block"
|
|
1013
1017
|
}, Ue = {
|
|
1014
1018
|
backgroundColor: "currentColor"
|
|
1015
|
-
},
|
|
1019
|
+
}, Ot = {
|
|
1016
1020
|
backgroundColor: "transparent"
|
|
1017
1021
|
}, pt = {
|
|
1018
1022
|
Image: "var(--svg)",
|
|
@@ -1021,23 +1025,23 @@ const ft = {
|
|
|
1021
1025
|
}, mt = {
|
|
1022
1026
|
webkitMask: Ue,
|
|
1023
1027
|
mask: Ue,
|
|
1024
|
-
background:
|
|
1028
|
+
background: Ot
|
|
1025
1029
|
};
|
|
1026
1030
|
for (const e in mt) {
|
|
1027
1031
|
const n = mt[e];
|
|
1028
1032
|
for (const t in pt)
|
|
1029
1033
|
n[e + t] = pt[t];
|
|
1030
1034
|
}
|
|
1031
|
-
const
|
|
1035
|
+
const we = {};
|
|
1032
1036
|
["horizontal", "vertical"].forEach((e) => {
|
|
1033
1037
|
const n = e.slice(0, 1) + "Flip";
|
|
1034
|
-
|
|
1038
|
+
we[e + "-flip"] = n, we[e.slice(0, 1) + "-flip"] = n, we[e + "Flip"] = n;
|
|
1035
1039
|
});
|
|
1036
1040
|
function Ct(e) {
|
|
1037
1041
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1038
1042
|
}
|
|
1039
1043
|
const Lt = (e, n) => {
|
|
1040
|
-
const t =
|
|
1044
|
+
const t = W0(ft, n), o = { ...ln }, r = n.mode || "svg", l = {}, i = n.style, s = typeof i == "object" && !(i instanceof Array) ? i : {};
|
|
1041
1045
|
for (let m in n) {
|
|
1042
1046
|
const C = n[m];
|
|
1043
1047
|
if (C !== void 0)
|
|
@@ -1057,7 +1061,7 @@ const Lt = (e, n) => {
|
|
|
1057
1061
|
break;
|
|
1058
1062
|
// Flip as string: 'horizontal,vertical'
|
|
1059
1063
|
case "flip":
|
|
1060
|
-
typeof C == "string" &&
|
|
1064
|
+
typeof C == "string" && J0(t, C);
|
|
1061
1065
|
break;
|
|
1062
1066
|
// Color: override style
|
|
1063
1067
|
case "color":
|
|
@@ -1065,7 +1069,7 @@ const Lt = (e, n) => {
|
|
|
1065
1069
|
break;
|
|
1066
1070
|
// Rotation as string
|
|
1067
1071
|
case "rotate":
|
|
1068
|
-
typeof C == "string" ? t[m] =
|
|
1072
|
+
typeof C == "string" ? t[m] = en(C) : typeof C == "number" && (t[m] = C);
|
|
1069
1073
|
break;
|
|
1070
1074
|
// Remove aria-hidden
|
|
1071
1075
|
case "ariaHidden":
|
|
@@ -1073,37 +1077,37 @@ const Lt = (e, n) => {
|
|
|
1073
1077
|
C !== !0 && C !== "true" && delete o["aria-hidden"];
|
|
1074
1078
|
break;
|
|
1075
1079
|
default: {
|
|
1076
|
-
const y =
|
|
1080
|
+
const y = we[m];
|
|
1077
1081
|
y ? (C === !0 || C === "true" || C === 1) && (t[y] = !0) : ft[m] === void 0 && (o[m] = C);
|
|
1078
1082
|
}
|
|
1079
1083
|
}
|
|
1080
1084
|
}
|
|
1081
|
-
const a =
|
|
1085
|
+
const a = S0(e, t), u = a.attributes;
|
|
1082
1086
|
if (t.inline && (l.verticalAlign = "-0.125em"), r === "svg") {
|
|
1083
1087
|
o.style = {
|
|
1084
1088
|
...l,
|
|
1085
1089
|
...s
|
|
1086
1090
|
}, Object.assign(o, u);
|
|
1087
1091
|
let m = 0, C = n.id;
|
|
1088
|
-
return typeof C == "string" && (C = C.replace(/-/g, "_")), o.innerHTML =
|
|
1092
|
+
return typeof C == "string" && (C = C.replace(/-/g, "_")), o.innerHTML = $0(a.body, C ? () => C + "ID" + m++ : "iconifyVue"), J("svg", o);
|
|
1089
1093
|
}
|
|
1090
|
-
const { body:
|
|
1094
|
+
const { body: c, width: f, height: d } = e, g = r === "mask" || (r === "bg" ? !1 : c.indexOf("currentColor") !== -1), p = tn(c, {
|
|
1091
1095
|
...u,
|
|
1092
1096
|
width: f + "",
|
|
1093
1097
|
height: d + ""
|
|
1094
1098
|
});
|
|
1095
1099
|
return o.style = {
|
|
1096
1100
|
...l,
|
|
1097
|
-
"--svg":
|
|
1101
|
+
"--svg": rn(p),
|
|
1098
1102
|
width: Ct(u.width),
|
|
1099
1103
|
height: Ct(u.height),
|
|
1100
|
-
...
|
|
1101
|
-
...
|
|
1104
|
+
...sn,
|
|
1105
|
+
...g ? Ue : Ot,
|
|
1102
1106
|
...s
|
|
1103
1107
|
}, J("span", o);
|
|
1104
1108
|
};
|
|
1105
1109
|
zt(!0);
|
|
1106
|
-
|
|
1110
|
+
I0("", O0);
|
|
1107
1111
|
if (typeof document < "u" && typeof window < "u") {
|
|
1108
1112
|
const e = window;
|
|
1109
1113
|
if (e.IconifyPreload !== void 0) {
|
|
@@ -1113,7 +1117,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1113
1117
|
// Check if item is an object and not null/array
|
|
1114
1118
|
(typeof o != "object" || o === null || o instanceof Array || // Check for 'icons' and 'prefix'
|
|
1115
1119
|
typeof o.icons != "object" || typeof o.prefix != "string" || // Add icon set
|
|
1116
|
-
!
|
|
1120
|
+
!L0(o)) && console.error(t);
|
|
1117
1121
|
} catch {
|
|
1118
1122
|
console.error(t);
|
|
1119
1123
|
}
|
|
@@ -1128,39 +1132,39 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1128
1132
|
const r = n[t];
|
|
1129
1133
|
if (typeof r != "object" || !r || r.resources === void 0)
|
|
1130
1134
|
continue;
|
|
1131
|
-
|
|
1135
|
+
F0(t, r) || console.error(o);
|
|
1132
1136
|
} catch {
|
|
1133
1137
|
console.error(o);
|
|
1134
1138
|
}
|
|
1135
1139
|
}
|
|
1136
1140
|
}
|
|
1137
1141
|
}
|
|
1138
|
-
const
|
|
1142
|
+
const an = {
|
|
1139
1143
|
...$e,
|
|
1140
1144
|
body: ""
|
|
1141
|
-
},
|
|
1145
|
+
}, un = I((e, { emit: n }) => {
|
|
1142
1146
|
const t = ee(null);
|
|
1143
1147
|
function o() {
|
|
1144
1148
|
t.value && (t.value.abort?.(), t.value = null);
|
|
1145
1149
|
}
|
|
1146
|
-
const r = ee(!!e.ssr), l = ee(""), i =
|
|
1150
|
+
const r = ee(!!e.ssr), l = ee(""), i = wt(null);
|
|
1147
1151
|
function s() {
|
|
1148
1152
|
const u = e.icon;
|
|
1149
1153
|
if (typeof u == "object" && u !== null && typeof u.body == "string")
|
|
1150
1154
|
return l.value = "", {
|
|
1151
1155
|
data: u
|
|
1152
1156
|
};
|
|
1153
|
-
let
|
|
1154
|
-
if (typeof u != "string" || (
|
|
1157
|
+
let c;
|
|
1158
|
+
if (typeof u != "string" || (c = be(u, !1, !0)) === null)
|
|
1155
1159
|
return null;
|
|
1156
|
-
let f =
|
|
1160
|
+
let f = m0(c);
|
|
1157
1161
|
if (!f) {
|
|
1158
1162
|
const p = t.value;
|
|
1159
1163
|
return (!p || p.name !== u) && (f === null ? t.value = {
|
|
1160
1164
|
name: u
|
|
1161
1165
|
} : t.value = {
|
|
1162
1166
|
name: u,
|
|
1163
|
-
abort:
|
|
1167
|
+
abort: Q0([c], a)
|
|
1164
1168
|
}), null;
|
|
1165
1169
|
}
|
|
1166
1170
|
o(), l.value !== u && (l.value = u, Wt(() => {
|
|
@@ -1169,30 +1173,30 @@ const sn = {
|
|
|
1169
1173
|
const d = e.customise;
|
|
1170
1174
|
if (d) {
|
|
1171
1175
|
f = Object.assign({}, f);
|
|
1172
|
-
const p = d(f.body,
|
|
1176
|
+
const p = d(f.body, c.name, c.prefix, c.provider);
|
|
1173
1177
|
typeof p == "string" && (f.body = p);
|
|
1174
1178
|
}
|
|
1175
|
-
const
|
|
1176
|
-
return
|
|
1179
|
+
const g = ["iconify"];
|
|
1180
|
+
return c.prefix !== "" && g.push("iconify--" + c.prefix), c.provider !== "" && g.push("iconify--" + c.provider), { data: f, classes: g };
|
|
1177
1181
|
}
|
|
1178
1182
|
function a() {
|
|
1179
1183
|
const u = s();
|
|
1180
1184
|
u ? u.data !== i.value?.data && (i.value = u) : i.value = null;
|
|
1181
1185
|
}
|
|
1182
|
-
return r.value ? a() :
|
|
1186
|
+
return r.value ? a() : xt(() => {
|
|
1183
1187
|
r.value = !0, a();
|
|
1184
|
-
}), We(() => e.icon, a),
|
|
1188
|
+
}), We(() => e.icon, a), _t(o), () => {
|
|
1185
1189
|
const u = i.value;
|
|
1186
1190
|
if (!u)
|
|
1187
|
-
return Lt(
|
|
1188
|
-
let
|
|
1189
|
-
return u.classes && (
|
|
1191
|
+
return Lt(an, e);
|
|
1192
|
+
let c = e;
|
|
1193
|
+
return u.classes && (c = {
|
|
1190
1194
|
...e,
|
|
1191
1195
|
class: u.classes.join(" ")
|
|
1192
1196
|
}), Lt({
|
|
1193
1197
|
...$e,
|
|
1194
1198
|
...u.data
|
|
1195
|
-
},
|
|
1199
|
+
}, c);
|
|
1196
1200
|
};
|
|
1197
1201
|
}, {
|
|
1198
1202
|
props: [
|
|
@@ -1220,7 +1224,7 @@ const sn = {
|
|
|
1220
1224
|
"title"
|
|
1221
1225
|
],
|
|
1222
1226
|
emits: ["load"]
|
|
1223
|
-
}),
|
|
1227
|
+
}), cn = /* @__PURE__ */ I({
|
|
1224
1228
|
name: "CmcIcon",
|
|
1225
1229
|
__name: "CmcIcon",
|
|
1226
1230
|
props: {
|
|
@@ -1228,13 +1232,13 @@ const sn = {
|
|
|
1228
1232
|
color: {}
|
|
1229
1233
|
},
|
|
1230
1234
|
setup(e) {
|
|
1231
|
-
const n = e, t =
|
|
1235
|
+
const n = e, t = x(() => ({
|
|
1232
1236
|
"cmc-icon": !0,
|
|
1233
1237
|
[`cmc-icon--${n.color}`]: n.color
|
|
1234
|
-
})), o =
|
|
1238
|
+
})), o = x(
|
|
1235
1239
|
() => lt[n.name]
|
|
1236
1240
|
);
|
|
1237
|
-
return (r, l) => (L(), W(
|
|
1241
|
+
return (r, l) => (L(), W(D(un), {
|
|
1238
1242
|
class: F(t.value),
|
|
1239
1243
|
icon: o.value
|
|
1240
1244
|
}, null, 8, ["class", "icon"]));
|
|
@@ -1244,20 +1248,21 @@ const sn = {
|
|
|
1244
1248
|
for (const [o, r] of n)
|
|
1245
1249
|
t[o] = r;
|
|
1246
1250
|
return t;
|
|
1247
|
-
}, X = /* @__PURE__ */ $(
|
|
1251
|
+
}, X = /* @__PURE__ */ $(cn, [["__scopeId", "data-v-88444d6f"]]), gn = ["type", "disabled"], dn = { class: "button__icon" }, fn = /* @__PURE__ */ I({
|
|
1248
1252
|
name: "CmcButton",
|
|
1249
1253
|
__name: "CmcButton",
|
|
1250
1254
|
props: {
|
|
1251
1255
|
kind: { default: l0.primary },
|
|
1252
1256
|
variant: { default: i0.default },
|
|
1253
1257
|
size: { default: s0.medium },
|
|
1258
|
+
type: { default: a0.button },
|
|
1254
1259
|
icon: {},
|
|
1255
1260
|
disabled: { type: Boolean, default: !1 },
|
|
1256
1261
|
loading: { type: Boolean, default: !1 }
|
|
1257
1262
|
},
|
|
1258
1263
|
emits: ["click"],
|
|
1259
1264
|
setup(e, { emit: n }) {
|
|
1260
|
-
const t = e, o = n, r =
|
|
1265
|
+
const t = e, o = n, r = x(() => ({
|
|
1261
1266
|
button: !0,
|
|
1262
1267
|
[`button--${t.variant}`]: !0,
|
|
1263
1268
|
[`button--${t.kind}`]: !0,
|
|
@@ -1267,24 +1272,24 @@ const sn = {
|
|
|
1267
1272
|
t.disabled || o("click");
|
|
1268
1273
|
};
|
|
1269
1274
|
return (s, a) => (L(), h("button", {
|
|
1270
|
-
type:
|
|
1275
|
+
type: t.type,
|
|
1271
1276
|
class: F(r.value),
|
|
1272
1277
|
onClick: i,
|
|
1273
1278
|
disabled: t.disabled
|
|
1274
1279
|
}, [
|
|
1275
|
-
P("span",
|
|
1280
|
+
P("span", dn, [
|
|
1276
1281
|
t.icon || t.loading ? (L(), W(X, {
|
|
1277
1282
|
key: 0,
|
|
1278
1283
|
name: l()
|
|
1279
1284
|
}, null, 8, ["name"])) : z("", !0)
|
|
1280
1285
|
]),
|
|
1281
1286
|
T(s.$slots, "default", {}, void 0, !0)
|
|
1282
|
-
], 10,
|
|
1287
|
+
], 10, gn));
|
|
1283
1288
|
}
|
|
1284
|
-
}),
|
|
1289
|
+
}), pn = /* @__PURE__ */ $(fn, [["__scopeId", "data-v-7df43df9"]]), mn = { class: "alert-content" }, Cn = { class: "alert-text" }, Ln = { class: "title" }, hn = { class: "message" }, yn = {
|
|
1285
1290
|
key: 0,
|
|
1286
1291
|
class: "alert-button"
|
|
1287
|
-
},
|
|
1292
|
+
}, vn = /* @__PURE__ */ I({
|
|
1288
1293
|
name: "CmcAlert",
|
|
1289
1294
|
__name: "CmcAlert",
|
|
1290
1295
|
props: {
|
|
@@ -1295,23 +1300,23 @@ const sn = {
|
|
|
1295
1300
|
},
|
|
1296
1301
|
emits: ["click"],
|
|
1297
1302
|
setup(e, { emit: n }) {
|
|
1298
|
-
const t = e, o = n, r =
|
|
1303
|
+
const t = e, o = n, r = x(() => ({
|
|
1299
1304
|
"alert-box": !0,
|
|
1300
1305
|
[`alert-box--${t.status}`]: !0
|
|
1301
1306
|
}));
|
|
1302
1307
|
return (l, i) => (L(), h("div", {
|
|
1303
1308
|
class: F(r.value)
|
|
1304
1309
|
}, [
|
|
1305
|
-
P("div",
|
|
1306
|
-
P("div",
|
|
1307
|
-
P("div",
|
|
1308
|
-
P("div",
|
|
1310
|
+
P("div", mn, [
|
|
1311
|
+
P("div", Cn, [
|
|
1312
|
+
P("div", Ln, V(e.title), 1),
|
|
1313
|
+
P("div", hn, V(e.message), 1)
|
|
1309
1314
|
]),
|
|
1310
|
-
e.button ? (L(), h("div",
|
|
1311
|
-
|
|
1315
|
+
e.button ? (L(), h("div", yn, [
|
|
1316
|
+
O(pn, Yt(e.button, {
|
|
1312
1317
|
onClick: i[0] || (i[0] = (s) => o("click"))
|
|
1313
1318
|
}), {
|
|
1314
|
-
default:
|
|
1319
|
+
default: _e(() => [
|
|
1315
1320
|
St(V(e.button.text), 1)
|
|
1316
1321
|
]),
|
|
1317
1322
|
_: 1
|
|
@@ -1320,7 +1325,7 @@ const sn = {
|
|
|
1320
1325
|
])
|
|
1321
1326
|
], 2));
|
|
1322
1327
|
}
|
|
1323
|
-
}),
|
|
1328
|
+
}), pr = /* @__PURE__ */ $(vn, [["__scopeId", "data-v-a0456582"]]), wn = { class: "breadcrumb-item" }, xn = /* @__PURE__ */ I({
|
|
1324
1329
|
__name: "BreadcrumbItem",
|
|
1325
1330
|
props: {
|
|
1326
1331
|
item: {}
|
|
@@ -1330,7 +1335,7 @@ const sn = {
|
|
|
1330
1335
|
function t(o) {
|
|
1331
1336
|
o.preventDefault(), n.item.callback?.();
|
|
1332
1337
|
}
|
|
1333
|
-
return (o, r) => (L(), h("div",
|
|
1338
|
+
return (o, r) => (L(), h("div", wn, [
|
|
1334
1339
|
P("a", {
|
|
1335
1340
|
href: "#",
|
|
1336
1341
|
class: "breadcrumb-item__link",
|
|
@@ -1338,27 +1343,27 @@ const sn = {
|
|
|
1338
1343
|
}, V(e.item.label), 1)
|
|
1339
1344
|
]));
|
|
1340
1345
|
}
|
|
1341
|
-
}),
|
|
1346
|
+
}), _n = /* @__PURE__ */ $(xn, [["__scopeId", "data-v-4496ccd5"]]), Sn = {
|
|
1342
1347
|
class: "breadcrumb",
|
|
1343
1348
|
"aria-label": "breadcrumb"
|
|
1344
|
-
},
|
|
1349
|
+
}, Mn = /* @__PURE__ */ I({
|
|
1345
1350
|
name: "CmcBreadcrumb",
|
|
1346
1351
|
__name: "CmcBreadcrumb",
|
|
1347
1352
|
props: {
|
|
1348
1353
|
items: {}
|
|
1349
1354
|
},
|
|
1350
1355
|
setup(e) {
|
|
1351
|
-
return (n, t) => (L(), h("nav",
|
|
1356
|
+
return (n, t) => (L(), h("nav", Sn, [
|
|
1352
1357
|
(L(!0), h(Z, null, H(e.items, (o, r) => (L(), h(Z, { key: r }, [
|
|
1353
1358
|
r !== 0 ? (L(), W(X, {
|
|
1354
1359
|
key: 0,
|
|
1355
1360
|
name: "chevronRight"
|
|
1356
1361
|
})) : z("", !0),
|
|
1357
|
-
|
|
1362
|
+
O(_n, { item: o }, null, 8, ["item"])
|
|
1358
1363
|
], 64))), 128))
|
|
1359
1364
|
]));
|
|
1360
1365
|
}
|
|
1361
|
-
}),
|
|
1366
|
+
}), mr = /* @__PURE__ */ $(Mn, [["__scopeId", "data-v-ed9c938e"]]), At = {
|
|
1362
1367
|
small: "small",
|
|
1363
1368
|
medium: "medium"
|
|
1364
1369
|
}, ze = {
|
|
@@ -1370,13 +1375,10 @@ const sn = {
|
|
|
1370
1375
|
outlined: "outlined",
|
|
1371
1376
|
filled: "filled",
|
|
1372
1377
|
underline: "underline"
|
|
1373
|
-
},
|
|
1378
|
+
}, Rn = ["for"], bn = {
|
|
1374
1379
|
key: 1,
|
|
1375
1380
|
class: "input__description"
|
|
1376
|
-
},
|
|
1377
|
-
key: 2,
|
|
1378
|
-
class: "input__error-message"
|
|
1379
|
-
}, Fn = /* @__PURE__ */ I({
|
|
1381
|
+
}, $n = { class: "input__wrapper" }, In = ["id", "type", "placeholder", "required", "disabled", "aria-invalid", "min", "max", "step"], Fn = /* @__PURE__ */ I({
|
|
1380
1382
|
name: "CmcInput",
|
|
1381
1383
|
__name: "CmcInput",
|
|
1382
1384
|
props: /* @__PURE__ */ K({
|
|
@@ -1385,62 +1387,63 @@ const sn = {
|
|
|
1385
1387
|
placeholder: {},
|
|
1386
1388
|
required: { type: Boolean, default: !1 },
|
|
1387
1389
|
disabled: { type: Boolean, default: !1 },
|
|
1388
|
-
|
|
1390
|
+
invalid: { type: Boolean, default: !1 },
|
|
1389
1391
|
type: { default: ze.text },
|
|
1390
1392
|
variant: { default: le.outlined },
|
|
1391
|
-
size: { default:
|
|
1393
|
+
size: { default: At.medium },
|
|
1392
1394
|
description: {},
|
|
1393
1395
|
min: {},
|
|
1394
|
-
max: {}
|
|
1396
|
+
max: {},
|
|
1397
|
+
step: {}
|
|
1395
1398
|
}, {
|
|
1396
1399
|
modelValue: { default: "" },
|
|
1397
1400
|
modelModifiers: {}
|
|
1398
1401
|
}),
|
|
1399
1402
|
emits: /* @__PURE__ */ K(["update:modelValue"], ["update:modelValue"]),
|
|
1400
1403
|
setup(e, { emit: n }) {
|
|
1401
|
-
const t = e, o = n, r = te(e, "modelValue"), l =
|
|
1404
|
+
const t = e, o = n, r = te(e, "modelValue"), l = Jt(), i = x(() => !!l.right), s = x(() => !!l.left), a = x(() => ({
|
|
1402
1405
|
input: !0,
|
|
1403
1406
|
[`input--${t.size}`]: !0,
|
|
1404
1407
|
"input--required": t.required,
|
|
1405
1408
|
"input--disabled": t.disabled,
|
|
1406
|
-
"input--error":
|
|
1409
|
+
"input--error": t.invalid,
|
|
1407
1410
|
"input--outlined": t.variant === le.outlined,
|
|
1408
1411
|
"input--underline": t.variant === le.underline,
|
|
1409
1412
|
"input--filled": t.variant === le.filled,
|
|
1410
|
-
"input--with-right-slot":
|
|
1411
|
-
"input--with-left-slot":
|
|
1413
|
+
"input--with-right-slot": i.value,
|
|
1414
|
+
"input--with-left-slot": s.value
|
|
1412
1415
|
}));
|
|
1413
|
-
return (
|
|
1414
|
-
class: F(
|
|
1416
|
+
return (u, c) => (L(), h("div", {
|
|
1417
|
+
class: F(a.value)
|
|
1415
1418
|
}, [
|
|
1416
1419
|
t.label ? (L(), h("label", {
|
|
1417
1420
|
key: 0,
|
|
1418
1421
|
for: t.id,
|
|
1419
1422
|
class: "input__label"
|
|
1420
|
-
}, V(t.label), 9,
|
|
1421
|
-
t.description ? (L(), h("div",
|
|
1422
|
-
P("div",
|
|
1423
|
-
T(
|
|
1423
|
+
}, V(t.label), 9, Rn)) : z("", !0),
|
|
1424
|
+
t.description ? (L(), h("div", bn, V(t.description), 1)) : z("", !0),
|
|
1425
|
+
P("div", $n, [
|
|
1426
|
+
T(u.$slots, "left", {}, void 0, !0),
|
|
1424
1427
|
Se(P("input", {
|
|
1425
|
-
"onUpdate:modelValue":
|
|
1428
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => r.value = f),
|
|
1426
1429
|
id: t.id,
|
|
1427
1430
|
type: t.type,
|
|
1428
1431
|
placeholder: t.placeholder,
|
|
1429
1432
|
required: t.required,
|
|
1430
1433
|
disabled: t.disabled,
|
|
1431
|
-
"aria-invalid":
|
|
1432
|
-
min: t.type ===
|
|
1433
|
-
max: t.type ===
|
|
1434
|
-
|
|
1435
|
-
|
|
1434
|
+
"aria-invalid": e.invalid,
|
|
1435
|
+
min: t.type === D(ze).number ? t.min : void 0,
|
|
1436
|
+
max: t.type === D(ze).number ? t.max : void 0,
|
|
1437
|
+
step: t.step,
|
|
1438
|
+
onBlur: c[1] || (c[1] = (f) => o("update:modelValue", r.value))
|
|
1439
|
+
}, null, 40, In), [
|
|
1436
1440
|
[e0, r.value]
|
|
1437
1441
|
]),
|
|
1438
|
-
T(
|
|
1439
|
-
])
|
|
1440
|
-
l.value ? (L(), h("div", In, V(t.errorMessage), 1)) : z("", !0)
|
|
1442
|
+
T(u.$slots, "right", {}, void 0, !0)
|
|
1443
|
+
])
|
|
1441
1444
|
], 2));
|
|
1442
1445
|
}
|
|
1443
|
-
}),
|
|
1446
|
+
}), Dt = /* @__PURE__ */ $(Fn, [["__scopeId", "data-v-e6086c2f"]]), Pn = { key: 1 }, zn = /* @__PURE__ */ I({
|
|
1444
1447
|
__name: "HighlightText",
|
|
1445
1448
|
props: {
|
|
1446
1449
|
text: {},
|
|
@@ -1481,10 +1484,10 @@ const sn = {
|
|
|
1481
1484
|
key: 0,
|
|
1482
1485
|
class: "autocomplete__list",
|
|
1483
1486
|
role: "listbox"
|
|
1484
|
-
}, En = { key: 1 }, Zn = ["onClick"],
|
|
1487
|
+
}, En = { key: 1 }, Zn = ["onClick"], On = {
|
|
1485
1488
|
key: 2,
|
|
1486
1489
|
class: "no-results"
|
|
1487
|
-
},
|
|
1490
|
+
}, An = /* @__PURE__ */ I({
|
|
1488
1491
|
name: "CmcAutocomplete",
|
|
1489
1492
|
__name: "CmcAutocomplete",
|
|
1490
1493
|
props: /* @__PURE__ */ K({
|
|
@@ -1504,7 +1507,7 @@ const sn = {
|
|
|
1504
1507
|
}),
|
|
1505
1508
|
emits: /* @__PURE__ */ K(["update:modelValue", "update:search", "search"], ["update:modelValue", "update:search"]),
|
|
1506
1509
|
setup(e, { emit: n }) {
|
|
1507
|
-
const t = e, o = n, r = te(e, "modelValue"), l = te(e, "search"), i = ee(t.label || ""), s = ee(!1), a = ee(null), u =
|
|
1510
|
+
const t = e, o = n, r = te(e, "modelValue"), l = te(e, "search"), i = ee(t.label || ""), s = ee(!1), a = ee(null), u = x(() => `cmc-autocomplete-${Me()}`), c = x(() => {
|
|
1508
1511
|
if (!l.value) return t.items;
|
|
1509
1512
|
const M = l.value.toLowerCase();
|
|
1510
1513
|
return t.items.filter((b) => b.label.toLowerCase().includes(M));
|
|
@@ -1515,7 +1518,7 @@ const sn = {
|
|
|
1515
1518
|
function d() {
|
|
1516
1519
|
s.value = !s.value;
|
|
1517
1520
|
}
|
|
1518
|
-
function
|
|
1521
|
+
function g(M) {
|
|
1519
1522
|
M.key === "Escape" && (s.value = !1);
|
|
1520
1523
|
}
|
|
1521
1524
|
function p(M) {
|
|
@@ -1546,25 +1549,25 @@ const sn = {
|
|
|
1546
1549
|
We(
|
|
1547
1550
|
() => l.value,
|
|
1548
1551
|
(M) => y(M)
|
|
1549
|
-
),
|
|
1552
|
+
), xt(() => {
|
|
1550
1553
|
window.addEventListener("click", p);
|
|
1551
|
-
}),
|
|
1554
|
+
}), _t(() => {
|
|
1552
1555
|
window.removeEventListener("click", p), C();
|
|
1553
1556
|
});
|
|
1554
|
-
const
|
|
1557
|
+
const _ = x(() => ({
|
|
1555
1558
|
autocomplete: !0,
|
|
1556
1559
|
"autocomplete--open": s.value
|
|
1557
|
-
})), R =
|
|
1560
|
+
})), R = x(() => ({
|
|
1558
1561
|
autocomplete__icon_chevron: !0,
|
|
1559
1562
|
"autocomplete__icon_chevron--open": s.value
|
|
1560
1563
|
}));
|
|
1561
1564
|
return (M, b) => (L(), h("div", {
|
|
1562
1565
|
ref_key: "autocompleteRef",
|
|
1563
1566
|
ref: a,
|
|
1564
|
-
class: F(
|
|
1565
|
-
onKeydown:
|
|
1567
|
+
class: F(_.value),
|
|
1568
|
+
onKeydown: g
|
|
1566
1569
|
}, [
|
|
1567
|
-
|
|
1570
|
+
O(Dt, {
|
|
1568
1571
|
id: u.value,
|
|
1569
1572
|
modelValue: l.value,
|
|
1570
1573
|
"onUpdate:modelValue": b[0] || (b[0] = (S) => l.value = S),
|
|
@@ -1576,8 +1579,8 @@ const sn = {
|
|
|
1576
1579
|
variant: "outlined",
|
|
1577
1580
|
onFocus: b[1] || (b[1] = (S) => s.value = !0)
|
|
1578
1581
|
}, {
|
|
1579
|
-
right:
|
|
1580
|
-
|
|
1582
|
+
right: _e(() => [
|
|
1583
|
+
O(X, {
|
|
1581
1584
|
class: F(R.value),
|
|
1582
1585
|
"aria-hidden": "true",
|
|
1583
1586
|
color: "light",
|
|
@@ -1595,21 +1598,21 @@ const sn = {
|
|
|
1595
1598
|
color: "light",
|
|
1596
1599
|
name: "loading"
|
|
1597
1600
|
})) : z("", !0),
|
|
1598
|
-
|
|
1599
|
-
(L(!0), h(Z, null, H(
|
|
1601
|
+
c.value.length > 0 ? (L(), h("ul", En, [
|
|
1602
|
+
(L(!0), h(Z, null, H(c.value, (S, k) => (L(), h("li", {
|
|
1600
1603
|
key: S.value || k,
|
|
1601
1604
|
onClick: (B) => f(S)
|
|
1602
1605
|
}, [
|
|
1603
|
-
|
|
1606
|
+
O(Vn, {
|
|
1604
1607
|
"search-term": l.value,
|
|
1605
1608
|
text: S.label
|
|
1606
1609
|
}, null, 8, ["search-term", "text"])
|
|
1607
1610
|
], 8, Zn))), 128))
|
|
1608
|
-
])) : s.value && !
|
|
1611
|
+
])) : s.value && !c.value.length && !t.loading && l.value.length >= t.minChars ? (L(), h("div", On, V(t.emptyValue), 1)) : z("", !0)
|
|
1609
1612
|
])) : z("", !0)
|
|
1610
1613
|
], 34));
|
|
1611
1614
|
}
|
|
1612
|
-
}),
|
|
1615
|
+
}), Cr = /* @__PURE__ */ $(An, [["__scopeId", "data-v-89f397a9"]]), Dn = { class: "badge-text" }, Tn = /* @__PURE__ */ I({
|
|
1613
1616
|
name: "CmcBadgePill",
|
|
1614
1617
|
__name: "CmcBadgePill",
|
|
1615
1618
|
props: {
|
|
@@ -1618,7 +1621,7 @@ const sn = {
|
|
|
1618
1621
|
variant: { default: "default" }
|
|
1619
1622
|
},
|
|
1620
1623
|
setup(e) {
|
|
1621
|
-
const n = e, t =
|
|
1624
|
+
const n = e, t = x(() => ({
|
|
1622
1625
|
"badge-pill": !0,
|
|
1623
1626
|
[`badge-pill--${n.status}`]: !0,
|
|
1624
1627
|
[`badge-pill--${n.variant}`]: !0
|
|
@@ -1626,10 +1629,10 @@ const sn = {
|
|
|
1626
1629
|
return (o, r) => (L(), h("div", {
|
|
1627
1630
|
class: F(t.value)
|
|
1628
1631
|
}, [
|
|
1629
|
-
P("span",
|
|
1632
|
+
P("span", Dn, V(e.label), 1)
|
|
1630
1633
|
], 2));
|
|
1631
1634
|
}
|
|
1632
|
-
}),
|
|
1635
|
+
}), Lr = /* @__PURE__ */ $(Tn, [["__scopeId", "data-v-2eabf0ca"]]), Tt = {
|
|
1633
1636
|
medium: "medium"
|
|
1634
1637
|
}, Gn = /* @__PURE__ */ I({
|
|
1635
1638
|
name: "CmcButtonGroup",
|
|
@@ -1638,7 +1641,7 @@ const sn = {
|
|
|
1638
1641
|
gap: { default: Tt.medium }
|
|
1639
1642
|
},
|
|
1640
1643
|
setup(e) {
|
|
1641
|
-
const n = e, t =
|
|
1644
|
+
const n = e, t = x(() => ({
|
|
1642
1645
|
"button-group": !0,
|
|
1643
1646
|
[`button-group-gap--${n.gap}`]: !0
|
|
1644
1647
|
}));
|
|
@@ -1944,7 +1947,7 @@ const sn = {
|
|
|
1944
1947
|
gold: "gold",
|
|
1945
1948
|
platinum: "platinum",
|
|
1946
1949
|
unranked: "unranked"
|
|
1947
|
-
}, Nn = "#111118", Un = "#0302F5", qn = "#E6007E", jn = "#FC435C", Kn = "#19BAA3", Xn = "#009FE3", Qn = "#739099", Wn = "#82368C", Yn = ["innerHTML"],
|
|
1950
|
+
}, Nn = "#111118", Un = "#0302F5", qn = "#E6007E", jn = "#FC435C", Kn = "#19BAA3", Xn = "#009FE3", Qn = "#739099", Wn = "#82368C", Yn = ["innerHTML"], hr = /* @__PURE__ */ I({
|
|
1948
1951
|
name: "CmcCertificate",
|
|
1949
1952
|
__name: "CmcCertificate",
|
|
1950
1953
|
props: {
|
|
@@ -1985,7 +1988,7 @@ const sn = {
|
|
|
1985
1988
|
[U.shareholders]: Wn,
|
|
1986
1989
|
[U.students]: qn,
|
|
1987
1990
|
[U.suppliers]: Xn
|
|
1988
|
-
}, r =
|
|
1991
|
+
}, r = x(() => o[n.primaryType]), l = x(() => {
|
|
1989
1992
|
let i = Bn;
|
|
1990
1993
|
if (n.primaryType === U.employees && n.rank !== oe.unranked) {
|
|
1991
1994
|
i = i.replace(/separator-2"/g, 'separator-2" style="opacity:0"').replace(
|
|
@@ -2038,7 +2041,7 @@ const n1 = /* @__PURE__ */ $(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
|
|
|
2038
2041
|
}),
|
|
2039
2042
|
emits: ["update:modelValue"],
|
|
2040
2043
|
setup(e) {
|
|
2041
|
-
const n = e, t = te(e, "modelValue"), o =
|
|
2044
|
+
const n = e, t = te(e, "modelValue"), o = x(() => n.id || `cmc-checkbox-${Me()}`), r = x(() => ({
|
|
2042
2045
|
checkbox: !0,
|
|
2043
2046
|
"checkbox--disabled": n.disabled,
|
|
2044
2047
|
"checkbox--required": n.required
|
|
@@ -2062,7 +2065,7 @@ const n1 = /* @__PURE__ */ $(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
|
|
|
2062
2065
|
})) : z("", !0)
|
|
2063
2066
|
], 2));
|
|
2064
2067
|
}
|
|
2065
|
-
}),
|
|
2068
|
+
}), yr = /* @__PURE__ */ $(r1, [["__scopeId", "data-v-b4e66a74"]]), Y = {
|
|
2066
2069
|
h1: "h1",
|
|
2067
2070
|
h2: "h2",
|
|
2068
2071
|
h3: "h3",
|
|
@@ -2077,41 +2080,41 @@ const n1 = /* @__PURE__ */ $(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
|
|
|
2077
2080
|
margin: { type: Boolean, default: !0 }
|
|
2078
2081
|
},
|
|
2079
2082
|
setup(e) {
|
|
2080
|
-
const n = e, t =
|
|
2083
|
+
const n = e, t = x(() => ({
|
|
2081
2084
|
heading: !0,
|
|
2082
2085
|
[`heading-${n.level}`]: !0,
|
|
2083
2086
|
"heading--no-margin": !n.margin
|
|
2084
2087
|
}));
|
|
2085
2088
|
return (o, r) => (L(), h(Z, null, [
|
|
2086
|
-
|
|
2089
|
+
D(Y).h1 === n.level ? (L(), h("h1", {
|
|
2087
2090
|
key: 0,
|
|
2088
2091
|
class: F(t.value),
|
|
2089
2092
|
style: re({ color: n.color })
|
|
2090
2093
|
}, [
|
|
2091
2094
|
T(o.$slots, "default", {}, void 0, !0)
|
|
2092
2095
|
], 6)) : z("", !0),
|
|
2093
|
-
|
|
2096
|
+
D(Y).h2 === n.level ? (L(), h("h2", {
|
|
2094
2097
|
key: 1,
|
|
2095
2098
|
class: F(t.value),
|
|
2096
2099
|
style: re({ color: n.color })
|
|
2097
2100
|
}, [
|
|
2098
2101
|
T(o.$slots, "default", {}, void 0, !0)
|
|
2099
2102
|
], 6)) : z("", !0),
|
|
2100
|
-
|
|
2103
|
+
D(Y).h3 === n.level ? (L(), h("h3", {
|
|
2101
2104
|
key: 2,
|
|
2102
2105
|
class: F(t.value),
|
|
2103
2106
|
style: re({ color: n.color })
|
|
2104
2107
|
}, [
|
|
2105
2108
|
T(o.$slots, "default", {}, void 0, !0)
|
|
2106
2109
|
], 6)) : z("", !0),
|
|
2107
|
-
|
|
2110
|
+
D(Y).h4 === n.level ? (L(), h("h4", {
|
|
2108
2111
|
key: 3,
|
|
2109
2112
|
class: F(t.value),
|
|
2110
2113
|
style: re({ color: n.color })
|
|
2111
2114
|
}, [
|
|
2112
2115
|
T(o.$slots, "default", {}, void 0, !0)
|
|
2113
2116
|
], 6)) : z("", !0),
|
|
2114
|
-
|
|
2117
|
+
D(Y).h5 === n.level ? (L(), h("h5", {
|
|
2115
2118
|
key: 4,
|
|
2116
2119
|
class: F(t.value),
|
|
2117
2120
|
style: re({ color: n.color })
|
|
@@ -2124,7 +2127,7 @@ const n1 = /* @__PURE__ */ $(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
|
|
|
2124
2127
|
name: "CmcLoading",
|
|
2125
2128
|
__name: "CmcLoading",
|
|
2126
2129
|
setup(e) {
|
|
2127
|
-
const n =
|
|
2130
|
+
const n = x(() => s1 + "img/loader-cmc.gif"), t = x(() => ({
|
|
2128
2131
|
loading: !0
|
|
2129
2132
|
}));
|
|
2130
2133
|
return (o, r) => (L(), h("img", {
|
|
@@ -2133,7 +2136,7 @@ const n1 = /* @__PURE__ */ $(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
|
|
|
2133
2136
|
src: n.value
|
|
2134
2137
|
}, null, 10, a1));
|
|
2135
2138
|
}
|
|
2136
|
-
}),
|
|
2139
|
+
}), vr = /* @__PURE__ */ $(u1, [["__scopeId", "data-v-0c671cb3"]]), c1 = {}, g1 = {
|
|
2137
2140
|
viewBox: "0 0 4498 1782",
|
|
2138
2141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2139
2142
|
preserveAspectRatio: "xMidYMid meet"
|
|
@@ -2161,16 +2164,16 @@ function v1(e, n) {
|
|
|
2161
2164
|
Re('<g transform="matrix(1,0,0,1,-10119.3,0)"><g transform="matrix(4.16667,0,0,4.16667,10119.3,0)"><g transform="matrix(1,0,0,1,216.883,115.634)"><path d="M0,-0.001C0,31.768 24.932,55.725 57.995,55.725C73.171,55.725 84.443,51.041 91.421,46.922L91.421,29.636C81.798,36.681 69.485,40.82 57.862,40.82C34.363,40.82 17.307,23.652 17.307,-0.001C17.307,-23.654 34.363,-40.821 57.862,-40.821C69.363,-40.821 81.928,-36.549 91.421,-29.53L91.421,-46.805C86.471,-49.812 74.631,-55.726 58.13,-55.726C25.534,-55.726 0,-31.248 0,-0.001" fill="#0302f5"></path></g><g transform="matrix(1,0,0,1,308.304,145.164)"><path d="M0,-59.06C-9.494,-66.079 -22.058,-70.351 -33.559,-70.351C-57.059,-70.351 -74.114,-53.183 -74.114,-29.531C-74.114,-5.877 -57.059,11.29 -33.559,11.29C-21.937,11.29 -9.624,7.152 0,0.106L0,17.392C-6.978,21.512 -18.25,26.195 -33.427,26.195C-66.489,26.195 -91.421,2.238 -91.421,-29.531C-91.421,-60.778 -65.888,-85.255 -33.292,-85.255C-16.79,-85.255 -4.951,-79.341 0,-76.334L0,-59.06Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,345.149,169.156)"><path d="M0,-106.911L-16.642,-106.911L-16.642,0L0,0L0,-26.409L52.796,-42.308L52.796,0L69.303,0L69.303,-106.911L52.796,-106.911L52.796,-56.93L0,-41.495L0,-106.911Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,397.946,119.175)"><path d="M0,-6.949L0,-56.93L16.507,-56.93L16.507,49.981L0,49.981L0,7.674L-52.796,23.572L-52.796,49.981L-69.438,49.981L-69.438,-56.93L-52.796,-56.93L-52.796,8.486L0,-6.949Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,728.634,123.899)"><path d="M0,-16.662C-13.136,-20.759 -22.446,-24.502 -22.446,-35.372C-22.446,-43.831 -15.656,-49.086 -4.726,-49.086C4.876,-49.086 15.658,-46.076 25.894,-40.57L25.894,-57.956C15.725,-62.015 5.698,-63.99 -4.726,-63.99C-28.739,-63.99 -39.488,-49.55 -39.488,-35.239C-39.488,-14.715 -24.246,-7.194 -9.336,-2.544C4.32,1.881 13.26,5.6 13.26,16.573C13.26,26.2 5.938,32.422 -5.394,32.422C-18.874,32.422 -30.578,26.616 -39.62,21.012L-39.62,38.202C-27.942,44.341 -16.693,47.328 -5.261,47.328C11.979,47.328 30.302,36.502 30.302,16.439C30.302,-5.041 14.661,-11.909 0,-16.662" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,723.374,59.9083)"><path d="M0,111.318C-11.433,111.318 -22.681,108.332 -34.36,102.192L-34.36,85.002C-25.317,90.607 -13.613,96.412 -0.133,96.412C11.199,96.412 18.521,90.191 18.521,80.563C18.521,69.59 9.58,65.872 -4.075,61.446C-18.985,56.796 -34.227,49.275 -34.227,28.751C-34.227,14.441 -23.478,0 0.535,0C10.959,0 20.986,1.975 31.155,6.034L31.155,23.42C20.919,17.915 10.137,14.905 0.535,14.905C-10.395,14.905 -17.185,20.16 -17.185,28.619C-17.185,39.488 -7.875,43.231 5.261,47.328C19.922,52.081 35.562,58.949 35.562,80.43C35.562,100.492 17.24,111.318 0,111.318" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,831.834,171.494)"><path d="M0,-111.585C-31.096,-111.585 -56.394,-86.586 -56.394,-55.859C-56.394,-25.059 -31.096,0 0,0C24.682,0 46.609,-16.122 53.874,-39.395L37.511,-43.796C32.796,-26.446 17.914,-14.905 0,-14.905C-22.282,-14.905 -39.085,-32.512 -39.085,-55.859C-39.085,-79.131 -22.282,-96.68 0,-96.68C11.119,-96.68 21.245,-92.305 28.513,-84.361L29.571,-83.205L0.886,-57.158L-12.148,-70.192L-22.082,-60.259L0.418,-37.755L48.731,-81.63C49.214,-82.067 49.333,-82.777 49.021,-83.355L48.894,-83.591C38.726,-100.912 20.048,-111.585 0,-111.585" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,489.715,74.8138)"><path d="M0,81.774C-22.282,81.774 -39.085,64.167 -39.085,40.82C-39.085,17.548 -22.282,-0.001 0,-0.001C22.281,-0.001 39.083,17.548 39.083,40.82C39.083,64.167 22.281,81.774 0,81.774M0,-14.905C-31.095,-14.905 -56.393,10.093 -56.393,40.82C-56.393,71.62 -31.095,96.679 0,96.679C31.095,96.679 56.393,71.62 56.393,40.82C56.393,10.093 31.095,-14.905 0,-14.905" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,617.892,74.8138)"><path d="M0,81.774C-22.281,81.774 -39.082,64.167 -39.082,40.82C-39.082,17.548 -22.281,-0.001 0,-0.001C22.282,-0.001 39.085,17.548 39.085,40.82C39.085,64.167 22.282,81.774 0,81.774M0,-14.905C-31.094,-14.905 -56.392,10.093 -56.392,40.82C-56.392,71.62 -31.094,96.679 0,96.679C31.096,96.679 56.394,71.62 56.394,40.82C56.394,10.093 31.096,-14.905 0,-14.905" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,142.995,191.8)"><path d="M0,110.256L0.762,110.256L33.091,47.34L42.624,108.297L60.919,108.297L42.89,0L40.347,0L0.836,76.508L-38.804,0L-41.353,0L-59.768,108.297L-41.473,108.297L-31.803,47.321L0,110.256Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,570.119,192.126)"><path d="M0,110.256L0.762,110.256L33.091,47.34L42.624,108.297L60.919,108.297L42.89,0L40.347,0L0.836,76.508L-38.804,0L-41.353,0L-59.768,108.297L-41.473,108.297L-31.803,47.321L0,110.256Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,238.604,194.02)"><path d="M0,106.077L17.539,106.077L17.539,59.077L56.583,0L35.834,0L9.3,42.72L-17.897,0L-38.915,0L0,59.078L0,106.077Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,347.409,302.317)"><path d="M0,-110.517C-32.305,-110.517 -57.61,-86.245 -57.61,-55.259C-57.61,-23.756 -32.899,0 -0.131,0C15.155,0 26.443,-4.807 33.32,-8.938L33.32,-27.81C23.872,-20.456 11.442,-16.102 -0.262,-16.102C-22.799,-16.102 -39.156,-32.57 -39.156,-55.259C-39.156,-77.947 -22.799,-94.415 -0.262,-94.415C11.329,-94.415 24.04,-89.915 33.32,-82.594L33.32,-101.457C28.651,-104.355 16.747,-110.517 0,-110.517" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,664.209,248.494)"><path d="M0,-2.872L14.596,-2.872C28.699,-2.872 35.489,-10.969 35.489,-20.502C35.489,-30.165 28.829,-38.001 14.596,-38.001L0,-38.001L0,-2.872ZM-18.966,52.366L-18.966,-55.238L14.596,-55.238C40.19,-55.238 55.078,-39.698 55.078,-20.502C55.078,-1.305 39.929,14.365 14.596,14.365L0,14.365L0,52.366L-18.966,52.366Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,736.632,216.323)"><path d="M0,59.512L39.211,48.05L22.757,12.584L0,59.512ZM54.49,84.537L46.655,63.276L-7.109,79.045L-8.976,84.537L-30.392,84.537L21.191,-25.025L24.455,-25.025L76.038,84.537L54.49,84.537Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,821.145,193.648)"><path d="M0,107.212L0,-2.22L2.482,-2.22L72.998,68.297C72.868,58.503 72.738,49.623 72.738,39.045L72.738,-0.392L91.412,-0.392L91.412,109.432L88.8,109.432L18.544,38.915C18.674,48.84 18.936,58.373 18.936,68.297L18.936,107.212L0,107.212Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,960.6,193.452)"><path d="M0,107.604L0,60.071L-39.567,0L-16.715,0L10.055,42.049L36.172,0L58.765,0L19.066,60.071L19.066,107.604L0,107.604Z" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,449.772,205.927)"><path d="M0,81.774C-22.282,81.774 -39.085,64.167 -39.085,40.82C-39.085,17.548 -22.282,-0.001 0,-0.001C22.281,-0.001 39.083,17.548 39.083,40.82C39.083,64.167 22.281,81.774 0,81.774M0,-14.905C-31.095,-14.905 -56.393,10.093 -56.393,40.82C-56.393,71.62 -31.095,96.679 0,96.679C31.095,96.679 56.393,71.62 56.393,40.82C56.393,10.093 31.095,-14.905 0,-14.905" style="fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,340.229,367.858)"><path d="M0,-33.375C3.099,-31.079 5.282,-27.915 6.552,-23.883L2.408,-23.883C1.362,-26.72 -0.374,-28.979 -2.8,-30.659C-5.228,-32.339 -8.232,-33.18 -11.816,-33.18C-14.542,-33.18 -17.016,-32.507 -19.236,-31.163C-21.458,-29.819 -23.203,-27.896 -24.473,-25.396C-25.742,-22.894 -26.376,-19.981 -26.376,-16.659C-26.376,-13.336 -25.742,-10.434 -24.473,-7.951C-23.203,-5.468 -21.458,-3.556 -19.236,-2.211C-17.016,-0.867 -14.542,-0.195 -11.816,-0.195C-8.232,-0.195 -5.228,-1.035 -2.8,-2.715C-0.374,-4.396 1.362,-6.653 2.408,-9.491L6.552,-9.491C5.282,-5.459 3.099,-2.295 0,0.001C-3.1,2.297 -7.02,3.444 -11.76,3.444C-15.382,3.444 -18.611,2.586 -21.448,0.869C-24.286,-0.848 -26.488,-3.228 -28.057,-6.271C-29.624,-9.313 -30.408,-12.776 -30.408,-16.659C-30.408,-20.579 -29.624,-24.069 -28.057,-27.131C-26.488,-30.192 -24.286,-32.572 -21.448,-34.271C-18.611,-35.97 -15.382,-36.819 -11.76,-36.819C-7.02,-36.819 -3.1,-35.671 0,-33.375" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,357.925,367.719)"><path d="M0,-33.096L0,-18.2L15.4,-18.2L15.4,-15.119L0,-15.119L0,-0.056L17.08,-0.056L17.08,3.192L-3.976,3.192L-3.976,-36.288L17.08,-36.288L17.08,-33.096L0,-33.096Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,385.812,350.862)"><path d="M0,0.617L7.84,0.617C14.187,0.617 17.359,-2.127 17.359,-7.615C17.359,-13.215 14.187,-16.016 7.84,-16.016L0,-16.016L0,0.617ZM17.191,20.049L6.384,3.585L0,3.585L0,20.049L-3.977,20.049L-3.977,-19.432L8.12,-19.432C12.563,-19.432 15.876,-18.386 18.06,-16.295C20.244,-14.204 21.336,-11.386 21.336,-7.839C21.336,-4.554 20.412,-1.94 18.563,0.001C16.716,1.942 14.036,3.099 10.527,3.472L21.672,20.049L17.191,20.049Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,436.827,370.91)"><path d="M0,-39.48L0,-36.288L-11.256,-36.288L-11.256,0L-15.176,0L-15.176,-36.288L-26.376,-36.288L-26.376,-39.48L0,-39.48Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(-1,0,0,1,888.157,274.792)"><rect x="442.09" y="56.639" width="3.977" height="39.48" style="fill:rgb(3, 2, 245);"></rect></g><g transform="matrix(1,0,0,1,476.026,370.91)"><path d="M0,-39.48L0,-36.288L-17.472,-36.288L-17.472,-21.223L-2.353,-21.223L-2.353,-18.143L-17.472,-18.143L-17.472,0L-21.448,0L-21.448,-39.48L0,-39.48Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(-1,0,0,1,968.683,274.792)"><rect x="482.353" y="56.639" width="3.977" height="39.48" style="fill:rgb(3, 2, 245);"></rect></g><g transform="matrix(1,0,0,1,498.817,367.719)"><path d="M0,-33.096L0,-18.2L15.399,-18.2L15.399,-15.119L0,-15.119L0,-0.056L17.079,-0.056L17.079,3.192L-3.977,3.192L-3.977,-36.288L17.079,-36.288L17.079,-33.096L0,-33.096Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,547.089,339.242)"><path d="M0,23.857C2.912,21.001 4.368,17.016 4.368,11.901C4.368,6.786 2.912,2.8 0,-0.055C-2.912,-2.912 -7.149,-4.339 -12.712,-4.339L-20.384,-4.339L-20.384,28.14L-12.712,28.14C-7.149,28.14 -2.912,26.712 0,23.857M5.936,22.457C4.33,25.424 1.969,27.702 -1.148,29.289C-4.266,30.876 -8.027,31.669 -12.433,31.669L-24.36,31.669L-24.36,-7.812L-12.433,-7.812C-5.787,-7.812 -0.663,-6.066 2.939,-2.576C6.542,0.916 8.344,5.741 8.344,11.901C8.344,15.97 7.541,19.489 5.936,22.457" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,581.136,350.862)"><path d="M0,0.617L7.84,0.617C14.186,0.617 17.359,-2.127 17.359,-7.615C17.359,-13.215 14.186,-16.016 7.84,-16.016L0,-16.016L0,0.617ZM17.191,20.049L6.384,3.585L0,3.585L0,20.049L-3.977,20.049L-3.977,-19.432L8.119,-19.432C12.562,-19.432 15.876,-18.386 18.06,-16.295C20.243,-14.204 21.336,-11.386 21.336,-7.839C21.336,-4.554 20.411,-1.94 18.563,0.001C16.716,1.942 14.036,3.099 10.527,3.472L21.672,20.049L17.191,20.049Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,612.999,367.719)"><path d="M0,-33.096L0,-18.2L15.399,-18.2L15.399,-15.119L0,-15.119L0,-0.056L17.079,-0.056L17.079,3.192L-3.977,3.192L-3.977,-36.288L17.079,-36.288L17.079,-33.096L0,-33.096Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,638.254,370.91)"><path d="M0,-39.48L12.712,-4.591L25.536,-39.48L29.849,-39.48L15.177,0L10.305,0L-4.312,-39.48L0,-39.48Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(-1,0,0,1,1351.15,274.792)"><rect x="673.589" y="56.639" width="3.977" height="39.48" style="fill:rgb(3, 2, 245);"></rect></g><g transform="matrix(1,0,0,1,690.053,367.719)"><path d="M0,-33.096L0,-18.2L15.399,-18.2L15.399,-15.119L0,-15.119L0,-0.056L17.079,-0.056L17.079,3.192L-3.977,3.192L-3.977,-36.288L17.079,-36.288L17.079,-33.096L0,-33.096Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,761.173,370.91)"><path d="M0,-39.48L-10.191,0L-14.896,0L-24.752,-33.824L-34.664,0L-39.368,0L-49.56,-39.48L-45.191,-39.48L-36.96,-4.872L-26.992,-39.48L-22.567,-39.48L-12.6,-4.816L-4.312,-39.48L0,-39.48Z" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,790.152,336.331)"><path d="M0,29.624C-0.84,31.211 -2.138,32.499 -3.893,33.488C-5.647,34.478 -7.831,34.972 -10.444,34.972C-12.983,34.972 -15.242,34.506 -17.22,33.572C-19.199,32.64 -20.776,31.36 -21.952,29.736C-23.128,28.112 -23.81,26.292 -23.996,24.276L-19.853,24.276C-19.703,25.434 -19.273,26.592 -18.564,27.748C-17.855,28.905 -16.828,29.867 -15.484,30.632C-14.141,31.397 -12.517,31.78 -10.612,31.78C-8.111,31.78 -6.198,31.108 -4.872,29.764C-3.548,28.42 -2.884,26.722 -2.884,24.668C-2.884,22.914 -3.323,21.485 -4.2,20.384C-5.078,19.283 -6.16,18.434 -7.448,17.836C-8.736,17.239 -10.5,16.586 -12.74,15.876C-15.204,15.092 -17.192,14.336 -18.704,13.608C-20.216,12.88 -21.495,11.808 -22.54,10.388C-23.586,8.97 -24.108,7.084 -24.108,4.732C-24.108,1.746 -23.063,-0.681 -20.973,-2.548C-18.882,-4.414 -16.008,-5.348 -12.349,-5.348C-8.615,-5.348 -5.656,-4.433 -3.473,-2.604C-1.288,-0.774 0.009,1.503 0.42,4.228L-3.78,4.228C-4.116,2.548 -5.004,1.056 -6.44,-0.252C-7.878,-1.559 -9.848,-2.212 -12.349,-2.212C-14.663,-2.212 -16.512,-1.614 -17.893,-0.42C-19.273,0.775 -19.964,2.437 -19.964,4.564C-19.964,6.244 -19.535,7.607 -18.676,8.652C-17.817,9.697 -16.764,10.5 -15.512,11.061C-14.262,11.62 -12.554,12.255 -10.388,12.964C-7.888,13.748 -5.861,14.514 -4.312,15.26C-2.764,16.008 -1.447,17.127 -0.364,18.62C0.718,20.113 1.26,22.092 1.26,24.556C1.26,26.348 0.84,28.038 0,29.624" style="fill:rgb(3, 2, 245);fill-rule:nonzero;"></path></g></g></g>', 1)
|
|
2162
2165
|
])]);
|
|
2163
2166
|
}
|
|
2164
|
-
const
|
|
2167
|
+
const w1 = /* @__PURE__ */ $(h1, [["render", v1]]), x1 = {}, _1 = {
|
|
2165
2168
|
viewBox: "0 0 4498 1782",
|
|
2166
2169
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2167
2170
|
};
|
|
2168
2171
|
function S1(e, n) {
|
|
2169
|
-
return L(), h("svg",
|
|
2172
|
+
return L(), h("svg", _1, [...n[0] || (n[0] = [
|
|
2170
2173
|
Re('<g transform="matrix(1,0,0,1,-5059.64,0)"><g transform="matrix(4.16667,0,0,4.16667,5059.64,0)"><g transform="matrix(1,0,0,1,375.836,362.303)"><path d="M0,-28.881L-7.753,-7.642L7.755,-7.642L0,-28.881ZM8.935,-4.383L-8.933,-4.383L-12.362,4.945L-16.519,4.945L-2.191,-33.826L2.249,-33.826L16.52,4.945L12.362,4.945L8.935,-4.383Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,425.626,367.249)"><path d="M0,-39.278L4.157,-39.278L-10.734,0L-15.228,0L-30.119,-39.278L-25.849,-39.278L-12.981,-4.27L0,-39.278Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,0,267.67)"><rect x="435.689" y="60.301" width="3.933" height="39.278" style="fill:white;"></rect></g><g transform="matrix(1,0,0,1,460.469,327.52)"><path d="M0,40.121C-7.866,40.121 -13.036,35.625 -13.261,29.613L-9.102,29.613C-8.766,32.872 -6.349,36.805 0,36.805C5.451,36.805 8.654,33.602 8.654,29.557C8.654,17.981 -12.923,25.287 -12.923,10.508C-12.923,4.44 -7.923,0 -0.337,0C7.136,0 11.632,4.159 12.305,9.554L8.035,9.554C7.586,6.8 4.945,3.429 -0.506,3.373C-5.113,3.316 -8.933,5.845 -8.933,10.396C-8.933,21.747 12.644,14.779 12.644,29.389C12.644,34.727 8.316,40.121 0,40.121" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,513.519,367.585)"><path d="M0,-40.064C8.766,-40.064 15.284,-35.681 18.094,-28.15L13.485,-28.15C11.295,-33.376 6.686,-36.636 0,-36.636C-8.598,-36.636 -15.171,-30.286 -15.171,-20.004C-15.171,-9.776 -8.598,-3.427 0,-3.427C6.686,-3.427 11.295,-6.686 13.485,-11.799L18.094,-11.799C15.284,-4.383 8.766,0 0,0C-10.901,0 -19.217,-8.203 -19.217,-20.004C-19.217,-31.803 -10.901,-40.064 0,-40.064" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,559.937,363.989)"><path d="M0,-32.816L-16.575,-32.816L-16.575,-18.149L-1.686,-18.149L-1.686,-14.891L-16.575,-14.891L-16.575,-0.001L0,-0.001L0,3.259L-20.508,3.259L-20.508,-36.075L0,-36.075L0,-32.816Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,579.494,363.932)"><path d="M0,-32.646L-7.866,-32.646L-7.866,-16.295L0.056,-16.295C6.462,-16.295 9.328,-19.778 9.328,-24.554C9.328,-29.5 6.631,-32.646 0,-32.646M0,-35.962C9.103,-35.962 13.374,-31.016 13.374,-24.554C13.374,-19.161 10.339,-14.609 3.709,-13.372L13.824,3.316L9.103,3.316L-0.617,-13.092L-7.866,-13.092L-7.866,3.316L-11.799,3.316L-11.799,-35.962L0,-35.962Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,597.873,367.249)"><path d="M0,-39.278L25.791,-39.278L25.791,-36.019L14.891,-36.019L14.891,0L10.956,0L10.956,-36.019L0,-36.019L0,-39.278Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,0,267.67)"><rect x="629.904" y="60.301" width="3.933" height="39.278" style="fill:white;"></rect></g><g transform="matrix(1,0,0,1,642.772,367.249)"><path d="M0,-39.278L21.24,-39.278L21.24,-36.019L3.933,-36.019L3.933,-21.353L18.542,-21.353L18.542,-18.094L3.933,-18.094L3.933,0L0,0L0,-39.278Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,0,267.67)"><rect x="670.478" y="60.301" width="3.933" height="39.278" style="fill:white;"></rect></g><g transform="matrix(1,0,0,1,698.011,367.248)"><path d="M0,-51.357L0,-47.817L-11.519,-41.131L-11.519,-44.165L0,-51.357ZM5.843,-36.074L-10.732,-36.074L-10.732,-21.408L4.159,-21.408L4.159,-18.15L-10.732,-18.15L-10.732,-3.259L5.843,-3.259L5.843,0L-14.665,0L-14.665,-39.334L5.843,-39.334L5.843,-36.074Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,723.524,327.52)"><path d="M0,40.121C-7.866,40.121 -13.036,35.625 -13.261,29.613L-9.102,29.613C-8.766,32.872 -6.349,36.805 0,36.805C5.45,36.805 8.653,33.602 8.653,29.557C8.653,17.981 -12.924,25.287 -12.924,10.508C-12.924,4.44 -7.923,0 -0.337,0C7.136,0 11.632,4.159 12.305,9.554L8.035,9.554C7.586,6.8 4.945,3.429 -0.506,3.373C-5.113,3.316 -8.935,5.845 -8.935,10.396C-8.935,21.747 12.642,14.779 12.642,29.389C12.642,34.727 8.316,40.121 0,40.121" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,213.329,115.634)"><path d="M0,-0.001C0,31.768 24.932,55.725 57.995,55.725C73.171,55.725 84.443,51.041 91.421,46.922L91.421,29.636C81.798,36.681 69.485,40.82 57.862,40.82C34.363,40.82 17.307,23.652 17.307,-0.001C17.307,-23.654 34.363,-40.821 57.862,-40.821C69.363,-40.821 81.928,-36.549 91.421,-29.53L91.421,-46.805C86.471,-49.812 74.631,-55.726 58.13,-55.726C25.534,-55.726 0,-31.248 0,-0.001" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,304.75,145.164)"><path d="M0,-59.06C-9.494,-66.079 -22.058,-70.351 -33.559,-70.351C-57.059,-70.351 -74.114,-53.183 -74.114,-29.531C-74.114,-5.877 -57.059,11.29 -33.559,11.29C-21.937,11.29 -9.624,7.152 0,0.106L0,17.392C-6.978,21.512 -18.25,26.195 -33.427,26.195C-66.489,26.195 -91.421,2.238 -91.421,-29.531C-91.421,-60.778 -65.888,-85.255 -33.292,-85.255C-16.79,-85.255 -4.951,-79.341 0,-76.334L0,-59.06Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,341.595,169.156)"><path d="M0,-106.911L-16.642,-106.911L-16.642,0L0,0L0,-26.409L52.796,-42.308L52.796,0L69.303,0L69.303,-106.911L52.796,-106.911L52.796,-56.93L0,-41.495L0,-106.911Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,394.392,119.175)"><path d="M0,-6.949L0,-56.93L16.507,-56.93L16.507,49.981L0,49.981L0,7.674L-52.796,23.572L-52.796,49.981L-69.438,49.981L-69.438,-56.93L-52.796,-56.93L-52.796,8.486L0,-6.949Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,725.081,123.899)"><path d="M0,-16.662C-13.136,-20.759 -22.446,-24.502 -22.446,-35.372C-22.446,-43.831 -15.656,-49.086 -4.726,-49.086C4.876,-49.086 15.658,-46.076 25.894,-40.57L25.894,-57.956C15.726,-62.015 5.698,-63.99 -4.726,-63.99C-28.739,-63.99 -39.488,-49.55 -39.488,-35.239C-39.488,-14.715 -24.246,-7.194 -9.336,-2.544C4.32,1.881 13.26,5.6 13.26,16.573C13.26,26.2 5.938,32.422 -5.394,32.422C-18.874,32.422 -30.578,26.616 -39.62,21.012L-39.62,38.202C-27.942,44.341 -16.693,47.328 -5.261,47.328C11.979,47.328 30.302,36.502 30.302,16.439C30.302,-5.041 14.661,-11.909 0,-16.662" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,719.82,59.9083)"><path d="M0,111.318C-11.433,111.318 -22.681,108.332 -34.36,102.192L-34.36,85.002C-25.317,90.607 -13.613,96.412 -0.133,96.412C11.199,96.412 18.521,90.191 18.521,80.563C18.521,69.59 9.58,65.872 -4.075,61.446C-18.985,56.796 -34.227,49.275 -34.227,28.751C-34.227,14.441 -23.478,0 0.535,0C10.959,0 20.986,1.975 31.155,6.034L31.155,23.42C20.919,17.915 10.137,14.905 0.535,14.905C-10.395,14.905 -17.185,20.16 -17.185,28.619C-17.185,39.488 -7.875,43.231 5.261,47.328C19.922,52.081 35.562,58.949 35.562,80.43C35.562,100.492 17.24,111.318 0,111.318" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,828.281,171.494)"><path d="M0,-111.585C-31.096,-111.585 -56.394,-86.586 -56.394,-55.859C-56.394,-25.059 -31.096,0 0,0C24.682,0 46.609,-16.122 53.874,-39.395L37.511,-43.796C32.796,-26.446 17.914,-14.905 0,-14.905C-22.282,-14.905 -39.085,-32.512 -39.085,-55.859C-39.085,-79.131 -22.282,-96.68 0,-96.68C11.119,-96.68 21.245,-92.305 28.513,-84.361L29.571,-83.205L0.886,-57.158L-12.148,-70.192L-22.082,-60.259L0.418,-37.755L48.731,-81.63C49.214,-82.067 49.333,-82.777 49.021,-83.355L48.894,-83.591C38.726,-100.912 20.048,-111.585 0,-111.585" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,486.161,74.8138)"><path d="M0,81.774C-22.282,81.774 -39.085,64.167 -39.085,40.82C-39.085,17.548 -22.282,-0.001 0,-0.001C22.281,-0.001 39.083,17.548 39.083,40.82C39.083,64.167 22.281,81.774 0,81.774M0,-14.905C-31.095,-14.905 -56.393,10.093 -56.393,40.82C-56.393,71.62 -31.095,96.679 0,96.679C31.095,96.679 56.393,71.62 56.393,40.82C56.393,10.093 31.095,-14.905 0,-14.905" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,614.338,74.8138)"><path d="M0,81.774C-22.281,81.774 -39.082,64.167 -39.082,40.82C-39.082,17.548 -22.281,-0.001 0,-0.001C22.282,-0.001 39.085,17.548 39.085,40.82C39.085,64.167 22.282,81.774 0,81.774M0,-14.905C-31.094,-14.905 -56.392,10.093 -56.392,40.82C-56.392,71.62 -31.094,96.679 0,96.679C31.096,96.679 56.394,71.62 56.394,40.82C56.394,10.093 31.096,-14.905 0,-14.905" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,139.441,191.8)"><path d="M0,110.256L0.762,110.256L33.091,47.34L42.624,108.297L60.919,108.297L42.89,0L40.347,0L0.836,76.508L-38.804,0L-41.353,0L-59.768,108.297L-41.473,108.297L-31.803,47.321L0,110.256Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,566.565,192.126)"><path d="M0,110.256L0.762,110.256L33.091,47.34L42.624,108.297L60.919,108.297L42.89,0L40.347,0L0.836,76.508L-38.804,0L-41.353,0L-59.768,108.297L-41.473,108.297L-31.803,47.321L0,110.256Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,235.05,194.02)"><path d="M0,106.077L17.539,106.077L17.539,59.077L56.583,0L35.834,0L9.3,42.72L-17.897,0L-38.915,0L0,59.078L0,106.077Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,343.855,302.317)"><path d="M0,-110.517C-32.305,-110.517 -57.61,-86.245 -57.61,-55.259C-57.61,-23.756 -32.899,0 -0.131,0C15.155,0 26.443,-4.807 33.32,-8.938L33.32,-27.81C23.872,-20.456 11.442,-16.102 -0.262,-16.102C-22.799,-16.102 -39.156,-32.57 -39.156,-55.259C-39.156,-77.947 -22.799,-94.415 -0.262,-94.415C11.329,-94.415 24.04,-89.915 33.32,-82.594L33.32,-101.457C28.651,-104.355 16.747,-110.517 0,-110.517" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,660.655,248.494)"><path d="M0,-2.872L14.596,-2.872C28.699,-2.872 35.489,-10.969 35.489,-20.502C35.489,-30.165 28.829,-38.001 14.596,-38.001L0,-38.001L0,-2.872ZM-18.966,52.366L-18.966,-55.238L14.596,-55.238C40.19,-55.238 55.078,-39.698 55.078,-20.502C55.078,-1.305 39.929,14.365 14.596,14.365L0,14.365L0,52.366L-18.966,52.366Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,733.078,216.323)"><path d="M0,59.512L39.211,48.05L22.757,12.584L0,59.512ZM54.49,84.537L46.655,63.276L-7.109,79.045L-8.976,84.537L-30.392,84.537L21.191,-25.025L24.455,-25.025L76.038,84.537L54.49,84.537Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,817.591,193.648)"><path d="M0,107.212L0,-2.22L2.482,-2.22L72.998,68.297C72.868,58.503 72.738,49.623 72.738,39.045L72.738,-0.392L91.412,-0.392L91.412,109.432L88.8,109.432L18.544,38.915C18.674,48.84 18.936,58.373 18.936,68.297L18.936,107.212L0,107.212Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,957.046,193.452)"><path d="M0,107.604L0,60.071L-39.567,0L-16.715,0L10.055,42.049L36.172,0L58.765,0L19.066,60.071L19.066,107.604L0,107.604Z" style="fill:white;fill-rule:nonzero;"></path></g><g transform="matrix(1,0,0,1,446.218,205.927)"><path d="M0,81.774C-22.282,81.774 -39.085,64.167 -39.085,40.82C-39.085,17.548 -22.282,-0.001 0,-0.001C22.281,-0.001 39.083,17.548 39.083,40.82C39.083,64.167 22.281,81.774 0,81.774M0,-14.905C-31.095,-14.905 -56.393,10.093 -56.393,40.82C-56.393,71.62 -31.095,96.679 0,96.679C31.095,96.679 56.393,71.62 56.393,40.82C56.393,10.093 31.095,-14.905 0,-14.905" style="fill:white;fill-rule:nonzero;"></path></g></g></g>', 1)
|
|
2171
2174
|
])]);
|
|
2172
2175
|
}
|
|
2173
|
-
const M1 = /* @__PURE__ */ $(
|
|
2176
|
+
const M1 = /* @__PURE__ */ $(x1, [["render", S1]]), R1 = {
|
|
2174
2177
|
color: "color"
|
|
2175
2178
|
}, b1 = {
|
|
2176
2179
|
fr_FR: "fr_FR"
|
|
@@ -2179,7 +2182,7 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2179
2182
|
}, I1 = {
|
|
2180
2183
|
fr_FR_color: f1,
|
|
2181
2184
|
fr_FR_white: L1,
|
|
2182
|
-
en_US_color:
|
|
2185
|
+
en_US_color: w1,
|
|
2183
2186
|
en_US_white: M1
|
|
2184
2187
|
}, F1 = ["href"], P1 = /* @__PURE__ */ I({
|
|
2185
2188
|
name: "CmcLogo",
|
|
@@ -2192,10 +2195,10 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2192
2195
|
},
|
|
2193
2196
|
emits: ["click"],
|
|
2194
2197
|
setup(e, { emit: n }) {
|
|
2195
|
-
const t = e, o = n, r =
|
|
2198
|
+
const t = e, o = n, r = x(() => ({
|
|
2196
2199
|
"cmc-logo": !0,
|
|
2197
2200
|
[`cmc-logo--${t.size}`]: !0
|
|
2198
|
-
})), l =
|
|
2201
|
+
})), l = x(() => `${t.language}_${t.variant}`), i = x(() => I1[l.value]), s = () => {
|
|
2199
2202
|
o("click");
|
|
2200
2203
|
};
|
|
2201
2204
|
return (a, u) => (L(), h("a", {
|
|
@@ -2209,7 +2212,7 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2209
2212
|
}), wr = /* @__PURE__ */ $(P1, [["__scopeId", "data-v-cc384ddd"]]), z1 = { class: "pagination" }, V1 = ["disabled"], k1 = ["onClick"], E1 = {
|
|
2210
2213
|
key: 1,
|
|
2211
2214
|
class: "pagination__ellipsis"
|
|
2212
|
-
}, Z1 = ["disabled"],
|
|
2215
|
+
}, Z1 = ["disabled"], O1 = 2, A1 = /* @__PURE__ */ I({
|
|
2213
2216
|
name: "CmcPagination",
|
|
2214
2217
|
__name: "CmcPagination",
|
|
2215
2218
|
props: {
|
|
@@ -2228,29 +2231,29 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2228
2231
|
return Math.max(1, Math.min(t.currentPage, r()));
|
|
2229
2232
|
}
|
|
2230
2233
|
function i() {
|
|
2231
|
-
return t.visibleRange ??
|
|
2234
|
+
return t.visibleRange ?? O1;
|
|
2232
2235
|
}
|
|
2233
|
-
const s =
|
|
2234
|
-
const d = r(),
|
|
2236
|
+
const s = x(() => {
|
|
2237
|
+
const d = r(), g = l(), p = i();
|
|
2235
2238
|
if (d <= 1) return [1];
|
|
2236
2239
|
const m = [];
|
|
2237
2240
|
if (m.push(1), d === 1) return m;
|
|
2238
|
-
let C = Math.max(2,
|
|
2241
|
+
let C = Math.max(2, g - p), y = Math.min(d - 1, g + p);
|
|
2239
2242
|
C > 2 && m.push("...");
|
|
2240
|
-
for (let
|
|
2241
|
-
|
|
2243
|
+
for (let _ = C; _ <= y; _++)
|
|
2244
|
+
_ !== 1 && _ !== d && m.push(_);
|
|
2242
2245
|
return y < d - 1 && m.push("..."), d > 1 && m.push(d), m;
|
|
2243
|
-
}), a =
|
|
2246
|
+
}), a = x(() => t.currentPage > 1), u = x(() => t.currentPage < r()), c = () => {
|
|
2244
2247
|
a.value && o("update:currentPage", t.currentPage - 1);
|
|
2245
2248
|
}, f = () => {
|
|
2246
2249
|
u.value && o("update:currentPage", t.currentPage + 1);
|
|
2247
2250
|
};
|
|
2248
|
-
return (d,
|
|
2251
|
+
return (d, g) => (L(), h("nav", z1, [
|
|
2249
2252
|
P("button", {
|
|
2250
2253
|
class: F(["pagination__page-button", { "is-invisible": !a.value }]),
|
|
2251
2254
|
disabled: !a.value,
|
|
2252
2255
|
"aria-label": "Page précédente",
|
|
2253
|
-
onClick:
|
|
2256
|
+
onClick: c
|
|
2254
2257
|
}, " ‹ ", 10, V1),
|
|
2255
2258
|
(L(!0), h(Z, null, H(s.value, (p, m) => (L(), h(Z, { key: m }, [
|
|
2256
2259
|
typeof p == "number" ? (L(), h("button", {
|
|
@@ -2267,11 +2270,11 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2267
2270
|
}, " › ", 10, Z1)
|
|
2268
2271
|
]));
|
|
2269
2272
|
}
|
|
2270
|
-
}),
|
|
2273
|
+
}), D1 = /* @__PURE__ */ $(A1, [["__scopeId", "data-v-8be37a19"]]), T1 = /* @__PURE__ */ I({
|
|
2271
2274
|
name: "CmcSearch",
|
|
2272
2275
|
__name: "CmcSearch",
|
|
2273
2276
|
props: /* @__PURE__ */ K({
|
|
2274
|
-
size: { default:
|
|
2277
|
+
size: { default: At.medium },
|
|
2275
2278
|
variant: { default: le.underline },
|
|
2276
2279
|
label: {},
|
|
2277
2280
|
placeholder: { default: "Rechercher..." }
|
|
@@ -2281,16 +2284,16 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2281
2284
|
}),
|
|
2282
2285
|
emits: ["update:modelValue"],
|
|
2283
2286
|
setup(e) {
|
|
2284
|
-
const n = e, t = te(e, "modelValue"), o =
|
|
2287
|
+
const n = e, t = te(e, "modelValue"), o = x(() => [
|
|
2285
2288
|
"search-bar",
|
|
2286
2289
|
`search-bar--${n.size}`,
|
|
2287
2290
|
n.variant ? `search-bar--${n.variant}` : null
|
|
2288
|
-
]), r = Me(), l =
|
|
2291
|
+
]), r = Me(), l = x(() => `cmc-search-${r}`);
|
|
2289
2292
|
return (i, s) => (L(), h("div", {
|
|
2290
2293
|
class: F(o.value),
|
|
2291
2294
|
role: "search"
|
|
2292
2295
|
}, [
|
|
2293
|
-
|
|
2296
|
+
O(Dt, {
|
|
2294
2297
|
class: "search-bar__input",
|
|
2295
2298
|
type: "search",
|
|
2296
2299
|
modelValue: t.value,
|
|
@@ -2301,8 +2304,8 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2301
2304
|
size: e.size,
|
|
2302
2305
|
variant: e.variant
|
|
2303
2306
|
}, {
|
|
2304
|
-
left:
|
|
2305
|
-
|
|
2307
|
+
left: _e(() => [
|
|
2308
|
+
O(X, {
|
|
2306
2309
|
"aria-hidden": "true",
|
|
2307
2310
|
class: "search-bar__icon",
|
|
2308
2311
|
color: "light",
|
|
@@ -2320,10 +2323,7 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2320
2323
|
key: 0,
|
|
2321
2324
|
value: "",
|
|
2322
2325
|
disabled: ""
|
|
2323
|
-
}, q1 = ["value", "disabled"], j1 = {
|
|
2324
|
-
key: 2,
|
|
2325
|
-
class: "select__error-wrapper"
|
|
2326
|
-
}, K1 = /* @__PURE__ */ I({
|
|
2326
|
+
}, q1 = ["value", "disabled"], j1 = /* @__PURE__ */ I({
|
|
2327
2327
|
name: "CmcSelect",
|
|
2328
2328
|
__name: "CmcSelect",
|
|
2329
2329
|
props: /* @__PURE__ */ K({
|
|
@@ -2333,7 +2333,7 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2333
2333
|
placeholder: {},
|
|
2334
2334
|
required: { type: Boolean, default: !1 },
|
|
2335
2335
|
disabled: { type: Boolean, default: !1 },
|
|
2336
|
-
|
|
2336
|
+
invalid: { type: Boolean, default: !1 },
|
|
2337
2337
|
variant: { default: pe.outlined },
|
|
2338
2338
|
description: {},
|
|
2339
2339
|
width: {}
|
|
@@ -2343,19 +2343,19 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2343
2343
|
}),
|
|
2344
2344
|
emits: ["update:modelValue"],
|
|
2345
2345
|
setup(e) {
|
|
2346
|
-
const n = e, t = te(e, "modelValue"), o =
|
|
2346
|
+
const n = e, t = te(e, "modelValue"), o = x(() => ({
|
|
2347
2347
|
select: !0,
|
|
2348
2348
|
"select--disabled": n.disabled,
|
|
2349
|
-
"select--error":
|
|
2349
|
+
"select--error": n.invalid,
|
|
2350
2350
|
"select--outlined": n.variant === pe.outlined,
|
|
2351
2351
|
"select--underline": n.variant === pe.underline,
|
|
2352
2352
|
"select--filled": n.variant === pe.filled
|
|
2353
|
-
})),
|
|
2353
|
+
})), r = x(() => ({
|
|
2354
2354
|
width: n.width ? `${n.width}px` : "100%"
|
|
2355
2355
|
}));
|
|
2356
|
-
return (
|
|
2357
|
-
class: F(
|
|
2358
|
-
style: re(
|
|
2356
|
+
return (l, i) => (L(), h("div", {
|
|
2357
|
+
class: F(o.value),
|
|
2358
|
+
style: re(r.value)
|
|
2359
2359
|
}, [
|
|
2360
2360
|
e.label ? (L(), h("label", {
|
|
2361
2361
|
key: 0,
|
|
@@ -2365,44 +2365,43 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2365
2365
|
n.description ? (L(), h("div", H1, V(n.description), 1)) : z("", !0),
|
|
2366
2366
|
P("div", B1, [
|
|
2367
2367
|
Se(P("select", {
|
|
2368
|
-
"onUpdate:modelValue":
|
|
2368
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
2369
2369
|
id: e.id,
|
|
2370
2370
|
required: e.required,
|
|
2371
2371
|
disabled: e.disabled,
|
|
2372
|
-
"aria-invalid":
|
|
2372
|
+
"aria-invalid": e.invalid
|
|
2373
2373
|
}, [
|
|
2374
2374
|
e.placeholder ? (L(), h("option", U1, V(e.placeholder), 1)) : z("", !0),
|
|
2375
|
-
(L(!0), h(Z, null, H(e.options, (
|
|
2376
|
-
key:
|
|
2377
|
-
value:
|
|
2378
|
-
disabled:
|
|
2379
|
-
}, V(
|
|
2375
|
+
(L(!0), h(Z, null, H(e.options, (s) => (L(), h("option", {
|
|
2376
|
+
key: s.value,
|
|
2377
|
+
value: s.value,
|
|
2378
|
+
disabled: s.disabled
|
|
2379
|
+
}, V(s.label), 9, q1))), 128))
|
|
2380
2380
|
], 8, N1), [
|
|
2381
2381
|
[n0, t.value]
|
|
2382
2382
|
]),
|
|
2383
|
-
|
|
2383
|
+
O(X, {
|
|
2384
2384
|
"aria-hidden": "true",
|
|
2385
2385
|
class: "select__icon_chevron",
|
|
2386
2386
|
color: "light",
|
|
2387
2387
|
name: "chevronDown"
|
|
2388
2388
|
})
|
|
2389
|
-
])
|
|
2390
|
-
o.value ? (L(), h("div", j1, V(e.errorMessage), 1)) : z("", !0)
|
|
2389
|
+
])
|
|
2391
2390
|
], 6));
|
|
2392
2391
|
}
|
|
2393
|
-
}),
|
|
2392
|
+
}), _r = /* @__PURE__ */ $(j1, [["__scopeId", "data-v-9ffe6aa3"]]), K1 = {
|
|
2394
2393
|
success: "success",
|
|
2395
2394
|
danger: "danger",
|
|
2396
2395
|
warning: "warning"
|
|
2397
|
-
},
|
|
2396
|
+
}, X1 = { class: "status__label" }, Q1 = /* @__PURE__ */ I({
|
|
2398
2397
|
name: "CmcStatus",
|
|
2399
2398
|
__name: "CmcStatus",
|
|
2400
2399
|
props: {
|
|
2401
2400
|
text: {},
|
|
2402
|
-
status: { default:
|
|
2401
|
+
status: { default: K1.success }
|
|
2403
2402
|
},
|
|
2404
2403
|
setup(e) {
|
|
2405
|
-
const n = e, t =
|
|
2404
|
+
const n = e, t = x(() => ({
|
|
2406
2405
|
status: !0,
|
|
2407
2406
|
[`status--${n.status}`]: !0
|
|
2408
2407
|
}));
|
|
@@ -2410,10 +2409,10 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2410
2409
|
class: F(t.value)
|
|
2411
2410
|
}, [
|
|
2412
2411
|
r[0] || (r[0] = P("span", { class: "status__dot" }, null, -1)),
|
|
2413
|
-
P("span",
|
|
2412
|
+
P("span", X1, V(n.text), 1)
|
|
2414
2413
|
], 2));
|
|
2415
2414
|
}
|
|
2416
|
-
}),
|
|
2415
|
+
}), Sr = /* @__PURE__ */ $(Q1, [["__scopeId", "data-v-9ebfdda4"]]);
|
|
2417
2416
|
/**
|
|
2418
2417
|
* table-core
|
|
2419
2418
|
*
|
|
@@ -2427,7 +2426,7 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2427
2426
|
function j(e, n) {
|
|
2428
2427
|
return typeof e == "function" ? e(n) : e;
|
|
2429
2428
|
}
|
|
2430
|
-
function
|
|
2429
|
+
function A(e, n) {
|
|
2431
2430
|
return (t) => {
|
|
2432
2431
|
n.setState((o) => ({
|
|
2433
2432
|
...o,
|
|
@@ -2438,10 +2437,10 @@ function D(e, n) {
|
|
|
2438
2437
|
function Ie(e) {
|
|
2439
2438
|
return e instanceof Function;
|
|
2440
2439
|
}
|
|
2441
|
-
function
|
|
2440
|
+
function W1(e) {
|
|
2442
2441
|
return Array.isArray(e) && e.every((n) => typeof n == "number");
|
|
2443
2442
|
}
|
|
2444
|
-
function
|
|
2443
|
+
function Y1(e, n) {
|
|
2445
2444
|
const t = [], o = (r) => {
|
|
2446
2445
|
r.forEach((l) => {
|
|
2447
2446
|
t.push(l);
|
|
@@ -2457,17 +2456,17 @@ function v(e, n, t) {
|
|
|
2457
2456
|
let i;
|
|
2458
2457
|
t.key && t.debug && (i = Date.now());
|
|
2459
2458
|
const s = e(l);
|
|
2460
|
-
if (!(s.length !== o.length || s.some((
|
|
2459
|
+
if (!(s.length !== o.length || s.some((c, f) => o[f] !== c)))
|
|
2461
2460
|
return r;
|
|
2462
2461
|
o = s;
|
|
2463
2462
|
let u;
|
|
2464
2463
|
if (t.key && t.debug && (u = Date.now()), r = n(...s), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
|
|
2465
|
-
const
|
|
2464
|
+
const c = Math.round((Date.now() - i) * 100) / 100, f = Math.round((Date.now() - u) * 100) / 100, d = f / 16, g = (p, m) => {
|
|
2466
2465
|
for (p = String(p); p.length < m; )
|
|
2467
2466
|
p = " " + p;
|
|
2468
2467
|
return p;
|
|
2469
2468
|
};
|
|
2470
|
-
console.info(`%c⏱ ${
|
|
2469
|
+
console.info(`%c⏱ ${g(f, 5)} /${g(c, 5)} ms`, `
|
|
2471
2470
|
font-size: .6rem;
|
|
2472
2471
|
font-weight: bold;
|
|
2473
2472
|
color: hsl(${Math.max(0, Math.min(120 - 120 * d, 120))}deg 100% 31%);`, t?.key);
|
|
@@ -2475,7 +2474,7 @@ function v(e, n, t) {
|
|
|
2475
2474
|
return r;
|
|
2476
2475
|
};
|
|
2477
2476
|
}
|
|
2478
|
-
function
|
|
2477
|
+
function w(e, n, t, o) {
|
|
2479
2478
|
return {
|
|
2480
2479
|
debug: () => {
|
|
2481
2480
|
var r;
|
|
@@ -2485,7 +2484,7 @@ function _(e, n, t, o) {
|
|
|
2485
2484
|
onChange: o
|
|
2486
2485
|
};
|
|
2487
2486
|
}
|
|
2488
|
-
function
|
|
2487
|
+
function J1(e, n, t, o) {
|
|
2489
2488
|
const r = () => {
|
|
2490
2489
|
var i;
|
|
2491
2490
|
return (i = l.getValue()) != null ? i : e.options.renderFallbackValue;
|
|
@@ -2502,47 +2501,47 @@ function eo(e, n, t, o) {
|
|
|
2502
2501
|
cell: u,
|
|
2503
2502
|
getValue: u.getValue,
|
|
2504
2503
|
renderValue: u.renderValue
|
|
2505
|
-
}),
|
|
2504
|
+
}), w(e.options, "debugCells", "cell.getContext"))
|
|
2506
2505
|
};
|
|
2507
2506
|
return e._features.forEach((i) => {
|
|
2508
2507
|
i.createCell == null || i.createCell(l, t, n, e);
|
|
2509
2508
|
}, {}), l;
|
|
2510
2509
|
}
|
|
2511
|
-
function
|
|
2510
|
+
function eo(e, n, t, o) {
|
|
2512
2511
|
var r, l;
|
|
2513
2512
|
const s = {
|
|
2514
2513
|
...e._getDefaultColumnDef(),
|
|
2515
2514
|
...n
|
|
2516
2515
|
}, a = s.accessorKey;
|
|
2517
|
-
let u = (r = (l = s.id) != null ? l : a ? typeof String.prototype.replaceAll == "function" ? a.replaceAll(".", "_") : a.replace(/\./g, "_") : void 0) != null ? r : typeof s.header == "string" ? s.header : void 0,
|
|
2518
|
-
if (s.accessorFn ?
|
|
2519
|
-
let
|
|
2516
|
+
let u = (r = (l = s.id) != null ? l : a ? typeof String.prototype.replaceAll == "function" ? a.replaceAll(".", "_") : a.replace(/\./g, "_") : void 0) != null ? r : typeof s.header == "string" ? s.header : void 0, c;
|
|
2517
|
+
if (s.accessorFn ? c = s.accessorFn : a && (a.includes(".") ? c = (d) => {
|
|
2518
|
+
let g = d;
|
|
2520
2519
|
for (const m of a.split(".")) {
|
|
2521
2520
|
var p;
|
|
2522
|
-
|
|
2521
|
+
g = (p = g) == null ? void 0 : p[m], process.env.NODE_ENV !== "production" && g === void 0 && console.warn(`"${m}" in deeply nested key "${a}" returned undefined.`);
|
|
2523
2522
|
}
|
|
2524
|
-
return
|
|
2525
|
-
} :
|
|
2523
|
+
return g;
|
|
2524
|
+
} : c = (d) => d[s.accessorKey]), !u)
|
|
2526
2525
|
throw process.env.NODE_ENV !== "production" ? new Error(s.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
|
|
2527
2526
|
let f = {
|
|
2528
2527
|
id: `${String(u)}`,
|
|
2529
|
-
accessorFn:
|
|
2528
|
+
accessorFn: c,
|
|
2530
2529
|
parent: o,
|
|
2531
2530
|
depth: t,
|
|
2532
2531
|
columnDef: s,
|
|
2533
2532
|
columns: [],
|
|
2534
2533
|
getFlatColumns: v(() => [!0], () => {
|
|
2535
2534
|
var d;
|
|
2536
|
-
return [f, ...(d = f.columns) == null ? void 0 : d.flatMap((
|
|
2537
|
-
},
|
|
2535
|
+
return [f, ...(d = f.columns) == null ? void 0 : d.flatMap((g) => g.getFlatColumns())];
|
|
2536
|
+
}, w(e.options, "debugColumns", "column.getFlatColumns")),
|
|
2538
2537
|
getLeafColumns: v(() => [e._getOrderColumnsFn()], (d) => {
|
|
2539
|
-
var
|
|
2540
|
-
if ((
|
|
2538
|
+
var g;
|
|
2539
|
+
if ((g = f.columns) != null && g.length) {
|
|
2541
2540
|
let p = f.columns.flatMap((m) => m.getLeafColumns());
|
|
2542
2541
|
return d(p);
|
|
2543
2542
|
}
|
|
2544
2543
|
return [f];
|
|
2545
|
-
},
|
|
2544
|
+
}, w(e.options, "debugColumns", "column.getLeafColumns"))
|
|
2546
2545
|
};
|
|
2547
2546
|
for (const d of e._features)
|
|
2548
2547
|
d.createColumn == null || d.createColumn(f, e);
|
|
@@ -2578,74 +2577,74 @@ function ht(e, n, t) {
|
|
|
2578
2577
|
i.createHeader == null || i.createHeader(l, e);
|
|
2579
2578
|
}), l;
|
|
2580
2579
|
}
|
|
2581
|
-
const
|
|
2580
|
+
const to = {
|
|
2582
2581
|
createTable: (e) => {
|
|
2583
2582
|
e.getHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => {
|
|
2584
2583
|
var l, i;
|
|
2585
2584
|
const s = (l = o?.map((f) => t.find((d) => d.id === f)).filter(Boolean)) != null ? l : [], a = (i = r?.map((f) => t.find((d) => d.id === f)).filter(Boolean)) != null ? i : [], u = t.filter((f) => !(o != null && o.includes(f.id)) && !(r != null && r.includes(f.id)));
|
|
2586
2585
|
return me(n, [...s, ...u, ...a], e);
|
|
2587
|
-
},
|
|
2586
|
+
}, w(e.options, E, "getHeaderGroups")), e.getCenterHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => (t = t.filter((l) => !(o != null && o.includes(l.id)) && !(r != null && r.includes(l.id))), me(n, t, e, "center")), w(e.options, E, "getCenterHeaderGroups")), e.getLeftHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, o) => {
|
|
2588
2587
|
var r;
|
|
2589
2588
|
const l = (r = o?.map((i) => t.find((s) => s.id === i)).filter(Boolean)) != null ? r : [];
|
|
2590
2589
|
return me(n, l, e, "left");
|
|
2591
|
-
},
|
|
2590
|
+
}, w(e.options, E, "getLeftHeaderGroups")), e.getRightHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, o) => {
|
|
2592
2591
|
var r;
|
|
2593
2592
|
const l = (r = o?.map((i) => t.find((s) => s.id === i)).filter(Boolean)) != null ? r : [];
|
|
2594
2593
|
return me(n, l, e, "right");
|
|
2595
|
-
},
|
|
2594
|
+
}, w(e.options, E, "getRightHeaderGroups")), e.getFooterGroups = v(() => [e.getHeaderGroups()], (n) => [...n].reverse(), w(e.options, E, "getFooterGroups")), e.getLeftFooterGroups = v(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), w(e.options, E, "getLeftFooterGroups")), e.getCenterFooterGroups = v(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), w(e.options, E, "getCenterFooterGroups")), e.getRightFooterGroups = v(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), w(e.options, E, "getRightFooterGroups")), e.getFlatHeaders = v(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, E, "getFlatHeaders")), e.getLeftFlatHeaders = v(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, E, "getLeftFlatHeaders")), e.getCenterFlatHeaders = v(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, E, "getCenterFlatHeaders")), e.getRightFlatHeaders = v(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, E, "getRightFlatHeaders")), e.getCenterLeafHeaders = v(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
2596
2595
|
var o;
|
|
2597
2596
|
return !((o = t.subHeaders) != null && o.length);
|
|
2598
|
-
}),
|
|
2597
|
+
}), w(e.options, E, "getCenterLeafHeaders")), e.getLeftLeafHeaders = v(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
|
|
2599
2598
|
var o;
|
|
2600
2599
|
return !((o = t.subHeaders) != null && o.length);
|
|
2601
|
-
}),
|
|
2600
|
+
}), w(e.options, E, "getLeftLeafHeaders")), e.getRightLeafHeaders = v(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
|
|
2602
2601
|
var o;
|
|
2603
2602
|
return !((o = t.subHeaders) != null && o.length);
|
|
2604
|
-
}),
|
|
2603
|
+
}), w(e.options, E, "getRightLeafHeaders")), e.getLeafHeaders = v(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, o) => {
|
|
2605
2604
|
var r, l, i, s, a, u;
|
|
2606
|
-
return [...(r = (l = n[0]) == null ? void 0 : l.headers) != null ? r : [], ...(i = (s = t[0]) == null ? void 0 : s.headers) != null ? i : [], ...(a = (u = o[0]) == null ? void 0 : u.headers) != null ? a : []].map((
|
|
2607
|
-
},
|
|
2605
|
+
return [...(r = (l = n[0]) == null ? void 0 : l.headers) != null ? r : [], ...(i = (s = t[0]) == null ? void 0 : s.headers) != null ? i : [], ...(a = (u = o[0]) == null ? void 0 : u.headers) != null ? a : []].map((c) => c.getLeafHeaders()).flat();
|
|
2606
|
+
}, w(e.options, E, "getLeafHeaders"));
|
|
2608
2607
|
}
|
|
2609
2608
|
};
|
|
2610
2609
|
function me(e, n, t, o) {
|
|
2611
2610
|
var r, l;
|
|
2612
2611
|
let i = 0;
|
|
2613
|
-
const s = function(d,
|
|
2614
|
-
|
|
2612
|
+
const s = function(d, g) {
|
|
2613
|
+
g === void 0 && (g = 1), i = Math.max(i, g), d.filter((p) => p.getIsVisible()).forEach((p) => {
|
|
2615
2614
|
var m;
|
|
2616
|
-
(m = p.columns) != null && m.length && s(p.columns,
|
|
2615
|
+
(m = p.columns) != null && m.length && s(p.columns, g + 1);
|
|
2617
2616
|
}, 0);
|
|
2618
2617
|
};
|
|
2619
2618
|
s(e);
|
|
2620
2619
|
let a = [];
|
|
2621
|
-
const u = (d,
|
|
2620
|
+
const u = (d, g) => {
|
|
2622
2621
|
const p = {
|
|
2623
|
-
depth:
|
|
2624
|
-
id: [o, `${
|
|
2622
|
+
depth: g,
|
|
2623
|
+
id: [o, `${g}`].filter(Boolean).join("_"),
|
|
2625
2624
|
headers: []
|
|
2626
2625
|
}, m = [];
|
|
2627
2626
|
d.forEach((C) => {
|
|
2628
|
-
const y = [...m].reverse()[0],
|
|
2627
|
+
const y = [...m].reverse()[0], _ = C.column.depth === p.depth;
|
|
2629
2628
|
let R, M = !1;
|
|
2630
|
-
if (
|
|
2629
|
+
if (_ && C.column.parent ? R = C.column.parent : (R = C.column, M = !0), y && y?.column === R)
|
|
2631
2630
|
y.subHeaders.push(C);
|
|
2632
2631
|
else {
|
|
2633
2632
|
const b = ht(t, R, {
|
|
2634
|
-
id: [o,
|
|
2633
|
+
id: [o, g, R.id, C?.id].filter(Boolean).join("_"),
|
|
2635
2634
|
isPlaceholder: M,
|
|
2636
2635
|
placeholderId: M ? `${m.filter((S) => S.column === R).length}` : void 0,
|
|
2637
|
-
depth:
|
|
2636
|
+
depth: g,
|
|
2638
2637
|
index: m.length
|
|
2639
2638
|
});
|
|
2640
2639
|
b.subHeaders.push(C), m.push(b);
|
|
2641
2640
|
}
|
|
2642
2641
|
p.headers.push(C), C.headerGroup = p;
|
|
2643
|
-
}), a.push(p),
|
|
2644
|
-
},
|
|
2642
|
+
}), a.push(p), g > 0 && u(m, g - 1);
|
|
2643
|
+
}, c = n.map((d, g) => ht(t, d, {
|
|
2645
2644
|
depth: i,
|
|
2646
|
-
index:
|
|
2645
|
+
index: g
|
|
2647
2646
|
}));
|
|
2648
|
-
u(
|
|
2647
|
+
u(c, i - 1), a.reverse();
|
|
2649
2648
|
const f = (d) => d.filter((p) => p.column.getIsVisible()).map((p) => {
|
|
2650
2649
|
let m = 0, C = 0, y = [0];
|
|
2651
2650
|
p.subHeaders && p.subHeaders.length ? (y = [], f(p.subHeaders).forEach((R) => {
|
|
@@ -2655,15 +2654,15 @@ function me(e, n, t, o) {
|
|
|
2655
2654
|
} = R;
|
|
2656
2655
|
m += M, y.push(b);
|
|
2657
2656
|
})) : m = 1;
|
|
2658
|
-
const
|
|
2659
|
-
return C = C +
|
|
2657
|
+
const _ = Math.min(...y);
|
|
2658
|
+
return C = C + _, p.colSpan = m, p.rowSpan = C, {
|
|
2660
2659
|
colSpan: m,
|
|
2661
2660
|
rowSpan: C
|
|
2662
2661
|
};
|
|
2663
2662
|
});
|
|
2664
2663
|
return f((r = (l = a[0]) == null ? void 0 : l.headers) != null ? r : []), a;
|
|
2665
2664
|
}
|
|
2666
|
-
const
|
|
2665
|
+
const no = (e, n, t, o, r, l, i) => {
|
|
2667
2666
|
let s = {
|
|
2668
2667
|
id: n,
|
|
2669
2668
|
index: o,
|
|
@@ -2691,26 +2690,26 @@ const oo = (e, n, t, o, r, l, i) => {
|
|
|
2691
2690
|
return (u = s.getValue(a)) != null ? u : e.options.renderFallbackValue;
|
|
2692
2691
|
},
|
|
2693
2692
|
subRows: [],
|
|
2694
|
-
getLeafRows: () =>
|
|
2693
|
+
getLeafRows: () => Y1(s.subRows, (a) => a.subRows),
|
|
2695
2694
|
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
|
2696
2695
|
getParentRows: () => {
|
|
2697
2696
|
let a = [], u = s;
|
|
2698
2697
|
for (; ; ) {
|
|
2699
|
-
const
|
|
2700
|
-
if (!
|
|
2701
|
-
a.push(
|
|
2698
|
+
const c = u.getParentRow();
|
|
2699
|
+
if (!c) break;
|
|
2700
|
+
a.push(c), u = c;
|
|
2702
2701
|
}
|
|
2703
2702
|
return a.reverse();
|
|
2704
2703
|
},
|
|
2705
|
-
getAllCells: v(() => [e.getAllLeafColumns()], (a) => a.map((u) =>
|
|
2706
|
-
_getAllCellsByColumnId: v(() => [s.getAllCells()], (a) => a.reduce((u,
|
|
2704
|
+
getAllCells: v(() => [e.getAllLeafColumns()], (a) => a.map((u) => J1(e, s, u, u.id)), w(e.options, "debugRows", "getAllCells")),
|
|
2705
|
+
_getAllCellsByColumnId: v(() => [s.getAllCells()], (a) => a.reduce((u, c) => (u[c.column.id] = c, u), {}), w(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
2707
2706
|
};
|
|
2708
2707
|
for (let a = 0; a < e._features.length; a++) {
|
|
2709
2708
|
const u = e._features[a];
|
|
2710
2709
|
u == null || u.createRow == null || u.createRow(s, e);
|
|
2711
2710
|
}
|
|
2712
2711
|
return s;
|
|
2713
|
-
},
|
|
2712
|
+
}, oo = {
|
|
2714
2713
|
createColumn: (e, n) => {
|
|
2715
2714
|
e._getFacetedRowModel = n.options.getFacetedRowModel && n.options.getFacetedRowModel(n, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : n.getPreFilteredRowModel(), e._getFacetedUniqueValues = n.options.getFacetedUniqueValues && n.options.getFacetedUniqueValues(n, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = n.options.getFacetedMinMaxValues && n.options.getFacetedMinMaxValues(n, e.id), e.getFacetedMinMaxValues = () => {
|
|
2716
2715
|
if (e._getFacetedMinMaxValues)
|
|
@@ -2780,7 +2779,7 @@ const q = {
|
|
|
2780
2779
|
function G(e) {
|
|
2781
2780
|
return e == null || e === "";
|
|
2782
2781
|
}
|
|
2783
|
-
const
|
|
2782
|
+
const ro = {
|
|
2784
2783
|
getDefaultColumnDef: () => ({
|
|
2785
2784
|
filterFn: "auto"
|
|
2786
2785
|
}),
|
|
@@ -2789,7 +2788,7 @@ const lo = {
|
|
|
2789
2788
|
...e
|
|
2790
2789
|
}),
|
|
2791
2790
|
getDefaultOptions: (e) => ({
|
|
2792
|
-
onColumnFiltersChange:
|
|
2791
|
+
onColumnFiltersChange: A("columnFilters", e),
|
|
2793
2792
|
filterFromLeafRows: !1,
|
|
2794
2793
|
maxLeafRowFilterDepth: 100
|
|
2795
2794
|
}),
|
|
@@ -2814,10 +2813,10 @@ const lo = {
|
|
|
2814
2813
|
return (t = (o = n.getState().columnFilters) == null ? void 0 : o.findIndex((r) => r.id === e.id)) != null ? t : -1;
|
|
2815
2814
|
}, e.setFilterValue = (t) => {
|
|
2816
2815
|
n.setColumnFilters((o) => {
|
|
2817
|
-
const r = e.getFilterFn(), l = o?.find((
|
|
2816
|
+
const r = e.getFilterFn(), l = o?.find((c) => c.id === e.id), i = j(t, l ? l.value : void 0);
|
|
2818
2817
|
if (yt(r, i, e)) {
|
|
2819
2818
|
var s;
|
|
2820
|
-
return (s = o?.filter((
|
|
2819
|
+
return (s = o?.filter((c) => c.id !== e.id)) != null ? s : [];
|
|
2821
2820
|
}
|
|
2822
2821
|
const a = {
|
|
2823
2822
|
id: e.id,
|
|
@@ -2825,7 +2824,7 @@ const lo = {
|
|
|
2825
2824
|
};
|
|
2826
2825
|
if (l) {
|
|
2827
2826
|
var u;
|
|
2828
|
-
return (u = o?.map((
|
|
2827
|
+
return (u = o?.map((c) => c.id === e.id ? a : c)) != null ? u : [];
|
|
2829
2828
|
}
|
|
2830
2829
|
return o != null && o.length ? [...o, a] : [a];
|
|
2831
2830
|
});
|
|
@@ -2858,54 +2857,54 @@ const lo = {
|
|
|
2858
2857
|
function yt(e, n, t) {
|
|
2859
2858
|
return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
|
|
2860
2859
|
}
|
|
2861
|
-
const
|
|
2860
|
+
const lo = (e, n, t) => t.reduce((o, r) => {
|
|
2862
2861
|
const l = r.getValue(e);
|
|
2863
2862
|
return o + (typeof l == "number" ? l : 0);
|
|
2864
|
-
}, 0),
|
|
2863
|
+
}, 0), io = (e, n, t) => {
|
|
2865
2864
|
let o;
|
|
2866
2865
|
return t.forEach((r) => {
|
|
2867
2866
|
const l = r.getValue(e);
|
|
2868
2867
|
l != null && (o > l || o === void 0 && l >= l) && (o = l);
|
|
2869
2868
|
}), o;
|
|
2870
|
-
},
|
|
2869
|
+
}, so = (e, n, t) => {
|
|
2871
2870
|
let o;
|
|
2872
2871
|
return t.forEach((r) => {
|
|
2873
2872
|
const l = r.getValue(e);
|
|
2874
2873
|
l != null && (o < l || o === void 0 && l >= l) && (o = l);
|
|
2875
2874
|
}), o;
|
|
2876
|
-
},
|
|
2875
|
+
}, ao = (e, n, t) => {
|
|
2877
2876
|
let o, r;
|
|
2878
2877
|
return t.forEach((l) => {
|
|
2879
2878
|
const i = l.getValue(e);
|
|
2880
2879
|
i != null && (o === void 0 ? i >= i && (o = r = i) : (o > i && (o = i), r < i && (r = i)));
|
|
2881
2880
|
}), [o, r];
|
|
2882
|
-
},
|
|
2881
|
+
}, uo = (e, n) => {
|
|
2883
2882
|
let t = 0, o = 0;
|
|
2884
2883
|
if (n.forEach((r) => {
|
|
2885
2884
|
let l = r.getValue(e);
|
|
2886
2885
|
l != null && (l = +l) >= l && (++t, o += l);
|
|
2887
2886
|
}), t) return o / t;
|
|
2888
|
-
},
|
|
2887
|
+
}, co = (e, n) => {
|
|
2889
2888
|
if (!n.length)
|
|
2890
2889
|
return;
|
|
2891
2890
|
const t = n.map((l) => l.getValue(e));
|
|
2892
|
-
if (!
|
|
2891
|
+
if (!W1(t))
|
|
2893
2892
|
return;
|
|
2894
2893
|
if (t.length === 1)
|
|
2895
2894
|
return t[0];
|
|
2896
2895
|
const o = Math.floor(t.length / 2), r = t.sort((l, i) => l - i);
|
|
2897
2896
|
return t.length % 2 !== 0 ? r[o] : (r[o - 1] + r[o]) / 2;
|
|
2898
|
-
},
|
|
2899
|
-
sum:
|
|
2900
|
-
min:
|
|
2901
|
-
max:
|
|
2902
|
-
extent:
|
|
2903
|
-
mean:
|
|
2904
|
-
median:
|
|
2905
|
-
unique:
|
|
2906
|
-
uniqueCount:
|
|
2907
|
-
count:
|
|
2908
|
-
},
|
|
2897
|
+
}, go = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), fo = (e, n) => new Set(n.map((t) => t.getValue(e))).size, po = (e, n) => n.length, Ve = {
|
|
2898
|
+
sum: lo,
|
|
2899
|
+
min: io,
|
|
2900
|
+
max: so,
|
|
2901
|
+
extent: ao,
|
|
2902
|
+
mean: uo,
|
|
2903
|
+
median: co,
|
|
2904
|
+
unique: go,
|
|
2905
|
+
uniqueCount: fo,
|
|
2906
|
+
count: po
|
|
2907
|
+
}, mo = {
|
|
2909
2908
|
getDefaultColumnDef: () => ({
|
|
2910
2909
|
aggregatedCell: (e) => {
|
|
2911
2910
|
var n, t;
|
|
@@ -2918,7 +2917,7 @@ const io = (e, n, t) => t.reduce((o, r) => {
|
|
|
2918
2917
|
...e
|
|
2919
2918
|
}),
|
|
2920
2919
|
getDefaultOptions: (e) => ({
|
|
2921
|
-
onGroupingChange:
|
|
2920
|
+
onGroupingChange: A("grouping", e),
|
|
2922
2921
|
groupedColumnMode: "reorder"
|
|
2923
2922
|
}),
|
|
2924
2923
|
createColumn: (e, n) => {
|
|
@@ -2972,22 +2971,22 @@ const io = (e, n, t) => t.reduce((o, r) => {
|
|
|
2972
2971
|
};
|
|
2973
2972
|
}
|
|
2974
2973
|
};
|
|
2975
|
-
function
|
|
2974
|
+
function Co(e, n, t) {
|
|
2976
2975
|
if (!(n != null && n.length) || !t)
|
|
2977
2976
|
return e;
|
|
2978
2977
|
const o = e.filter((l) => !n.includes(l.id));
|
|
2979
2978
|
return t === "remove" ? o : [...n.map((l) => e.find((i) => i.id === l)).filter(Boolean), ...o];
|
|
2980
2979
|
}
|
|
2981
|
-
const
|
|
2980
|
+
const Lo = {
|
|
2982
2981
|
getInitialState: (e) => ({
|
|
2983
2982
|
columnOrder: [],
|
|
2984
2983
|
...e
|
|
2985
2984
|
}),
|
|
2986
2985
|
getDefaultOptions: (e) => ({
|
|
2987
|
-
onColumnOrderChange:
|
|
2986
|
+
onColumnOrderChange: A("columnOrder", e)
|
|
2988
2987
|
}),
|
|
2989
2988
|
createColumn: (e, n) => {
|
|
2990
|
-
e.getIndex = v((t) => [ge(n, t)], (t) => t.findIndex((o) => o.id === e.id),
|
|
2989
|
+
e.getIndex = v((t) => [ge(n, t)], (t) => t.findIndex((o) => o.id === e.id), w(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
2991
2990
|
var o;
|
|
2992
2991
|
return ((o = ge(n, t)[0]) == null ? void 0 : o.id) === e.id;
|
|
2993
2992
|
}, e.getIsLastColumn = (t) => {
|
|
@@ -3007,24 +3006,24 @@ const ho = {
|
|
|
3007
3006
|
else {
|
|
3008
3007
|
const i = [...n], s = [...r];
|
|
3009
3008
|
for (; s.length && i.length; ) {
|
|
3010
|
-
const a = i.shift(), u = s.findIndex((
|
|
3009
|
+
const a = i.shift(), u = s.findIndex((c) => c.id === a);
|
|
3011
3010
|
u > -1 && l.push(s.splice(u, 1)[0]);
|
|
3012
3011
|
}
|
|
3013
3012
|
l = [...l, ...s];
|
|
3014
3013
|
}
|
|
3015
|
-
return
|
|
3016
|
-
},
|
|
3014
|
+
return Co(l, t, o);
|
|
3015
|
+
}, w(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
3017
3016
|
}
|
|
3018
3017
|
}, ke = () => ({
|
|
3019
3018
|
left: [],
|
|
3020
3019
|
right: []
|
|
3021
|
-
}),
|
|
3020
|
+
}), ho = {
|
|
3022
3021
|
getInitialState: (e) => ({
|
|
3023
3022
|
columnPinning: ke(),
|
|
3024
3023
|
...e
|
|
3025
3024
|
}),
|
|
3026
3025
|
getDefaultOptions: (e) => ({
|
|
3027
|
-
onColumnPinningChange:
|
|
3026
|
+
onColumnPinningChange: A("columnPinning", e)
|
|
3028
3027
|
}),
|
|
3029
3028
|
createColumn: (e, n) => {
|
|
3030
3029
|
e.pin = (t) => {
|
|
@@ -3039,10 +3038,10 @@ const ho = {
|
|
|
3039
3038
|
};
|
|
3040
3039
|
}
|
|
3041
3040
|
if (t === "left") {
|
|
3042
|
-
var u,
|
|
3041
|
+
var u, c;
|
|
3043
3042
|
return {
|
|
3044
3043
|
left: [...((u = r?.left) != null ? u : []).filter((f) => !(o != null && o.includes(f))), ...o],
|
|
3045
|
-
right: ((
|
|
3044
|
+
right: ((c = r?.right) != null ? c : []).filter((f) => !(o != null && o.includes(f)))
|
|
3046
3045
|
};
|
|
3047
3046
|
}
|
|
3048
3047
|
return {
|
|
@@ -3069,13 +3068,13 @@ const ho = {
|
|
|
3069
3068
|
e.getCenterVisibleCells = v(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, o, r) => {
|
|
3070
3069
|
const l = [...o ?? [], ...r ?? []];
|
|
3071
3070
|
return t.filter((i) => !l.includes(i.column.id));
|
|
3072
|
-
},
|
|
3071
|
+
}, w(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = v(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, o) => (o ?? []).map((l) => t.find((i) => i.column.id === l)).filter(Boolean).map((l) => ({
|
|
3073
3072
|
...l,
|
|
3074
3073
|
position: "left"
|
|
3075
|
-
})),
|
|
3074
|
+
})), w(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = v(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, o) => (o ?? []).map((l) => t.find((i) => i.column.id === l)).filter(Boolean).map((l) => ({
|
|
3076
3075
|
...l,
|
|
3077
3076
|
position: "right"
|
|
3078
|
-
})),
|
|
3077
|
+
})), w(n.options, "debugRows", "getRightVisibleCells"));
|
|
3079
3078
|
},
|
|
3080
3079
|
createTable: (e) => {
|
|
3081
3080
|
e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
|
|
@@ -3089,13 +3088,13 @@ const ho = {
|
|
|
3089
3088
|
return !!((r = o.left) != null && r.length || (l = o.right) != null && l.length);
|
|
3090
3089
|
}
|
|
3091
3090
|
return !!((t = o[n]) != null && t.length);
|
|
3092
|
-
}, e.getLeftLeafColumns = v(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean),
|
|
3091
|
+
}, e.getLeftLeafColumns = v(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), w(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = v(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), w(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = v(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o) => {
|
|
3093
3092
|
const r = [...t ?? [], ...o ?? []];
|
|
3094
3093
|
return n.filter((l) => !r.includes(l.id));
|
|
3095
|
-
},
|
|
3094
|
+
}, w(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
3096
3095
|
}
|
|
3097
3096
|
};
|
|
3098
|
-
function
|
|
3097
|
+
function yo(e) {
|
|
3099
3098
|
return e || (typeof document < "u" ? document : null);
|
|
3100
3099
|
}
|
|
3101
3100
|
const Ce = {
|
|
@@ -3109,7 +3108,7 @@ const Ce = {
|
|
|
3109
3108
|
deltaPercentage: null,
|
|
3110
3109
|
isResizingColumn: !1,
|
|
3111
3110
|
columnSizingStart: []
|
|
3112
|
-
}),
|
|
3111
|
+
}), vo = {
|
|
3113
3112
|
getDefaultColumnDef: () => Ce,
|
|
3114
3113
|
getInitialState: (e) => ({
|
|
3115
3114
|
columnSizing: {},
|
|
@@ -3119,15 +3118,15 @@ const Ce = {
|
|
|
3119
3118
|
getDefaultOptions: (e) => ({
|
|
3120
3119
|
columnResizeMode: "onEnd",
|
|
3121
3120
|
columnResizeDirection: "ltr",
|
|
3122
|
-
onColumnSizingChange:
|
|
3123
|
-
onColumnSizingInfoChange:
|
|
3121
|
+
onColumnSizingChange: A("columnSizing", e),
|
|
3122
|
+
onColumnSizingInfoChange: A("columnSizingInfo", e)
|
|
3124
3123
|
}),
|
|
3125
3124
|
createColumn: (e, n) => {
|
|
3126
3125
|
e.getSize = () => {
|
|
3127
3126
|
var t, o, r;
|
|
3128
3127
|
const l = n.getState().columnSizing[e.id];
|
|
3129
3128
|
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Ce.minSize, (o = l ?? e.columnDef.size) != null ? o : Ce.size), (r = e.columnDef.maxSize) != null ? r : Ce.maxSize);
|
|
3130
|
-
}, e.getStart = v((t) => [t, ge(n, t), n.getState().columnSizing], (t, o) => o.slice(0, e.getIndex(t)).reduce((r, l) => r + l.getSize(), 0),
|
|
3129
|
+
}, e.getStart = v((t) => [t, ge(n, t), n.getState().columnSizing], (t, o) => o.slice(0, e.getIndex(t)).reduce((r, l) => r + l.getSize(), 0), w(n.options, "debugColumns", "getStart")), e.getAfter = v((t) => [t, ge(n, t), n.getState().columnSizing], (t, o) => o.slice(e.getIndex(t) + 1).reduce((r, l) => r + l.getSize(), 0), w(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
3131
3130
|
n.setColumnSizing((t) => {
|
|
3132
3131
|
let {
|
|
3133
3132
|
[e.id]: o,
|
|
@@ -3163,10 +3162,10 @@ const Ce = {
|
|
|
3163
3162
|
return (l) => {
|
|
3164
3163
|
if (!o || !r || (l.persist == null || l.persist(), Ze(l) && l.touches && l.touches.length > 1))
|
|
3165
3164
|
return;
|
|
3166
|
-
const i = e.getSize(), s = e ? e.getLeafHeaders().map((y) => [y.column.id, y.column.getSize()]) : [[o.id, o.getSize()]], a = Ze(l) ? Math.round(l.touches[0].clientX) : l.clientX, u = {},
|
|
3167
|
-
typeof
|
|
3165
|
+
const i = e.getSize(), s = e ? e.getLeafHeaders().map((y) => [y.column.id, y.column.getSize()]) : [[o.id, o.getSize()]], a = Ze(l) ? Math.round(l.touches[0].clientX) : l.clientX, u = {}, c = (y, _) => {
|
|
3166
|
+
typeof _ == "number" && (n.setColumnSizingInfo((R) => {
|
|
3168
3167
|
var M, b;
|
|
3169
|
-
const S = n.options.columnResizeDirection === "rtl" ? -1 : 1, k = (
|
|
3168
|
+
const S = n.options.columnResizeDirection === "rtl" ? -1 : 1, k = (_ - ((M = R?.startOffset) != null ? M : 0)) * S, B = Math.max(k / ((b = R?.startSize) != null ? b : 0), -0.999999);
|
|
3170
3169
|
return R.columnSizingStart.forEach((ne) => {
|
|
3171
3170
|
let [N, rt] = ne;
|
|
3172
3171
|
u[N] = Math.round(Math.max(rt + rt * B, 0) * 100) / 100;
|
|
@@ -3179,9 +3178,9 @@ const Ce = {
|
|
|
3179
3178
|
...R,
|
|
3180
3179
|
...u
|
|
3181
3180
|
})));
|
|
3182
|
-
}, f = (y) =>
|
|
3183
|
-
|
|
3184
|
-
...
|
|
3181
|
+
}, f = (y) => c("move", y), d = (y) => {
|
|
3182
|
+
c("end", y), n.setColumnSizingInfo((_) => ({
|
|
3183
|
+
..._,
|
|
3185
3184
|
isResizingColumn: !1,
|
|
3186
3185
|
startOffset: null,
|
|
3187
3186
|
startSize: null,
|
|
@@ -3189,21 +3188,21 @@ const Ce = {
|
|
|
3189
3188
|
deltaPercentage: null,
|
|
3190
3189
|
columnSizingStart: []
|
|
3191
3190
|
}));
|
|
3192
|
-
},
|
|
3191
|
+
}, g = yo(t), p = {
|
|
3193
3192
|
moveHandler: (y) => f(y.clientX),
|
|
3194
3193
|
upHandler: (y) => {
|
|
3195
|
-
|
|
3194
|
+
g?.removeEventListener("mousemove", p.moveHandler), g?.removeEventListener("mouseup", p.upHandler), d(y.clientX);
|
|
3196
3195
|
}
|
|
3197
3196
|
}, m = {
|
|
3198
3197
|
moveHandler: (y) => (y.cancelable && (y.preventDefault(), y.stopPropagation()), f(y.touches[0].clientX), !1),
|
|
3199
3198
|
upHandler: (y) => {
|
|
3200
|
-
var
|
|
3201
|
-
|
|
3199
|
+
var _;
|
|
3200
|
+
g?.removeEventListener("touchmove", m.moveHandler), g?.removeEventListener("touchend", m.upHandler), y.cancelable && (y.preventDefault(), y.stopPropagation()), d((_ = y.touches[0]) == null ? void 0 : _.clientX);
|
|
3202
3201
|
}
|
|
3203
3202
|
}, C = wo() ? {
|
|
3204
3203
|
passive: !1
|
|
3205
3204
|
} : !1;
|
|
3206
|
-
Ze(l) ? (
|
|
3205
|
+
Ze(l) ? (g?.addEventListener("touchmove", m.moveHandler, C), g?.addEventListener("touchend", m.upHandler, C)) : (g?.addEventListener("mousemove", p.moveHandler, C), g?.addEventListener("mouseup", p.upHandler, C)), n.setColumnSizingInfo((y) => ({
|
|
3207
3206
|
...y,
|
|
3208
3207
|
startOffset: a,
|
|
3209
3208
|
startSize: i,
|
|
@@ -3263,7 +3262,7 @@ const xo = {
|
|
|
3263
3262
|
...e
|
|
3264
3263
|
}),
|
|
3265
3264
|
getDefaultOptions: (e) => ({
|
|
3266
|
-
onColumnVisibilityChange:
|
|
3265
|
+
onColumnVisibilityChange: A("columnVisibility", e)
|
|
3267
3266
|
}),
|
|
3268
3267
|
createColumn: (e, n) => {
|
|
3269
3268
|
e.toggleVisibility = (t) => {
|
|
@@ -3283,10 +3282,10 @@ const xo = {
|
|
|
3283
3282
|
};
|
|
3284
3283
|
},
|
|
3285
3284
|
createRow: (e, n) => {
|
|
3286
|
-
e._getAllVisibleCells = v(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((o) => o.column.getIsVisible()),
|
|
3285
|
+
e._getAllVisibleCells = v(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((o) => o.column.getIsVisible()), w(n.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = v(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, o, r) => [...t, ...o, ...r], w(n.options, "debugRows", "getVisibleCells"));
|
|
3287
3286
|
},
|
|
3288
3287
|
createTable: (e) => {
|
|
3289
|
-
const n = (t, o) => v(() => [o(), o().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((l) => l.getIsVisible == null ? void 0 : l.getIsVisible()),
|
|
3288
|
+
const n = (t, o) => v(() => [o(), o().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((l) => l.getIsVisible == null ? void 0 : l.getIsVisible()), w(e.options, "debugColumns", t));
|
|
3290
3289
|
e.getVisibleFlatColumns = n("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = n("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = n("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = n("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = n("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
|
|
3291
3290
|
var o;
|
|
3292
3291
|
e.setColumnVisibility(t ? {} : (o = e.initialState.columnVisibility) != null ? o : {});
|
|
@@ -3305,20 +3304,20 @@ const xo = {
|
|
|
3305
3304
|
function ge(e, n) {
|
|
3306
3305
|
return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
3307
3306
|
}
|
|
3308
|
-
const
|
|
3307
|
+
const _o = {
|
|
3309
3308
|
createTable: (e) => {
|
|
3310
3309
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
3311
3310
|
if (e._getGlobalFacetedMinMaxValues)
|
|
3312
3311
|
return e._getGlobalFacetedMinMaxValues();
|
|
3313
3312
|
};
|
|
3314
3313
|
}
|
|
3315
|
-
},
|
|
3314
|
+
}, So = {
|
|
3316
3315
|
getInitialState: (e) => ({
|
|
3317
3316
|
globalFilter: void 0,
|
|
3318
3317
|
...e
|
|
3319
3318
|
}),
|
|
3320
3319
|
getDefaultOptions: (e) => ({
|
|
3321
|
-
onGlobalFilterChange:
|
|
3320
|
+
onGlobalFilterChange: A("globalFilter", e),
|
|
3322
3321
|
globalFilterFn: "auto",
|
|
3323
3322
|
getColumnCanGlobalFilter: (n) => {
|
|
3324
3323
|
var t;
|
|
@@ -3345,13 +3344,13 @@ const So = {
|
|
|
3345
3344
|
e.setGlobalFilter(n ? void 0 : e.initialState.globalFilter);
|
|
3346
3345
|
};
|
|
3347
3346
|
}
|
|
3348
|
-
},
|
|
3347
|
+
}, Mo = {
|
|
3349
3348
|
getInitialState: (e) => ({
|
|
3350
3349
|
expanded: {},
|
|
3351
3350
|
...e
|
|
3352
3351
|
}),
|
|
3353
3352
|
getDefaultOptions: (e) => ({
|
|
3354
|
-
onExpandedChange:
|
|
3353
|
+
onExpandedChange: A("expanded", e),
|
|
3355
3354
|
paginateExpandedRows: !0
|
|
3356
3355
|
}),
|
|
3357
3356
|
createTable: (e) => {
|
|
@@ -3432,19 +3431,19 @@ const So = {
|
|
|
3432
3431
|
};
|
|
3433
3432
|
};
|
|
3434
3433
|
}
|
|
3435
|
-
}, qe = 0, je = 10,
|
|
3434
|
+
}, qe = 0, je = 10, Oe = () => ({
|
|
3436
3435
|
pageIndex: qe,
|
|
3437
3436
|
pageSize: je
|
|
3438
|
-
}),
|
|
3437
|
+
}), Ro = {
|
|
3439
3438
|
getInitialState: (e) => ({
|
|
3440
3439
|
...e,
|
|
3441
3440
|
pagination: {
|
|
3442
|
-
...
|
|
3441
|
+
...Oe(),
|
|
3443
3442
|
...e?.pagination
|
|
3444
3443
|
}
|
|
3445
3444
|
}),
|
|
3446
3445
|
getDefaultOptions: (e) => ({
|
|
3447
|
-
onPaginationChange:
|
|
3446
|
+
onPaginationChange: A("pagination", e)
|
|
3448
3447
|
}),
|
|
3449
3448
|
createTable: (e) => {
|
|
3450
3449
|
let n = !1, t = !1;
|
|
@@ -3467,7 +3466,7 @@ const So = {
|
|
|
3467
3466
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
|
|
3468
3467
|
}, e.resetPagination = (o) => {
|
|
3469
3468
|
var r;
|
|
3470
|
-
e.setPagination(o ?
|
|
3469
|
+
e.setPagination(o ? Oe() : (r = e.initialState.pagination) != null ? r : Oe());
|
|
3471
3470
|
}, e.setPageIndex = (o) => {
|
|
3472
3471
|
e.setPagination((r) => {
|
|
3473
3472
|
let l = j(o, r.pageIndex);
|
|
@@ -3502,7 +3501,7 @@ const So = {
|
|
|
3502
3501
|
}), e.getPageOptions = v(() => [e.getPageCount()], (o) => {
|
|
3503
3502
|
let r = [];
|
|
3504
3503
|
return o && o > 0 && (r = [...new Array(o)].fill(null).map((l, i) => i)), r;
|
|
3505
|
-
},
|
|
3504
|
+
}, w(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
3506
3505
|
const {
|
|
3507
3506
|
pageIndex: o
|
|
3508
3507
|
} = e.getState().pagination, r = e.getPageCount();
|
|
@@ -3515,16 +3514,16 @@ const So = {
|
|
|
3515
3514
|
return (o = e.options.rowCount) != null ? o : e.getPrePaginationRowModel().rows.length;
|
|
3516
3515
|
};
|
|
3517
3516
|
}
|
|
3518
|
-
},
|
|
3517
|
+
}, Ae = () => ({
|
|
3519
3518
|
top: [],
|
|
3520
3519
|
bottom: []
|
|
3521
|
-
}),
|
|
3520
|
+
}), bo = {
|
|
3522
3521
|
getInitialState: (e) => ({
|
|
3523
|
-
rowPinning:
|
|
3522
|
+
rowPinning: Ae(),
|
|
3524
3523
|
...e
|
|
3525
3524
|
}),
|
|
3526
3525
|
getDefaultOptions: (e) => ({
|
|
3527
|
-
onRowPinningChange:
|
|
3526
|
+
onRowPinningChange: A("rowPinning", e)
|
|
3528
3527
|
}),
|
|
3529
3528
|
createRow: (e, n) => {
|
|
3530
3529
|
e.pin = (t, o, r) => {
|
|
@@ -3540,7 +3539,7 @@ const So = {
|
|
|
3540
3539
|
return u;
|
|
3541
3540
|
}) : [], s = /* @__PURE__ */ new Set([...i, e.id, ...l]);
|
|
3542
3541
|
n.setRowPinning((a) => {
|
|
3543
|
-
var u,
|
|
3542
|
+
var u, c;
|
|
3544
3543
|
if (t === "bottom") {
|
|
3545
3544
|
var f, d;
|
|
3546
3545
|
return {
|
|
@@ -3549,15 +3548,15 @@ const So = {
|
|
|
3549
3548
|
};
|
|
3550
3549
|
}
|
|
3551
3550
|
if (t === "top") {
|
|
3552
|
-
var
|
|
3551
|
+
var g, p;
|
|
3553
3552
|
return {
|
|
3554
|
-
top: [...((
|
|
3553
|
+
top: [...((g = a?.top) != null ? g : []).filter((m) => !(s != null && s.has(m))), ...Array.from(s)],
|
|
3555
3554
|
bottom: ((p = a?.bottom) != null ? p : []).filter((m) => !(s != null && s.has(m)))
|
|
3556
3555
|
};
|
|
3557
3556
|
}
|
|
3558
3557
|
return {
|
|
3559
3558
|
top: ((u = a?.top) != null ? u : []).filter((m) => !(s != null && s.has(m))),
|
|
3560
|
-
bottom: ((
|
|
3559
|
+
bottom: ((c = a?.bottom) != null ? c : []).filter((m) => !(s != null && s.has(m)))
|
|
3561
3560
|
};
|
|
3562
3561
|
});
|
|
3563
3562
|
}, e.getCanPin = () => {
|
|
@@ -3589,7 +3588,7 @@ const So = {
|
|
|
3589
3588
|
createTable: (e) => {
|
|
3590
3589
|
e.setRowPinning = (n) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(n), e.resetRowPinning = (n) => {
|
|
3591
3590
|
var t, o;
|
|
3592
|
-
return e.setRowPinning(n ?
|
|
3591
|
+
return e.setRowPinning(n ? Ae() : (t = (o = e.initialState) == null ? void 0 : o.rowPinning) != null ? t : Ae());
|
|
3593
3592
|
}, e.getIsSomeRowsPinned = (n) => {
|
|
3594
3593
|
var t;
|
|
3595
3594
|
const o = e.getState().rowPinning;
|
|
@@ -3614,18 +3613,18 @@ const So = {
|
|
|
3614
3613
|
...i,
|
|
3615
3614
|
position: o
|
|
3616
3615
|
}));
|
|
3617
|
-
}, e.getTopRows = v(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"),
|
|
3616
|
+
}, e.getTopRows = v(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"), w(e.options, "debugRows", "getTopRows")), e.getBottomRows = v(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (n, t) => e._getPinnedRows(n, t, "bottom"), w(e.options, "debugRows", "getBottomRows")), e.getCenterRows = v(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, o) => {
|
|
3618
3617
|
const r = /* @__PURE__ */ new Set([...t ?? [], ...o ?? []]);
|
|
3619
3618
|
return n.filter((l) => !r.has(l.id));
|
|
3620
|
-
},
|
|
3619
|
+
}, w(e.options, "debugRows", "getCenterRows"));
|
|
3621
3620
|
}
|
|
3622
|
-
},
|
|
3621
|
+
}, $o = {
|
|
3623
3622
|
getInitialState: (e) => ({
|
|
3624
3623
|
rowSelection: {},
|
|
3625
3624
|
...e
|
|
3626
3625
|
}),
|
|
3627
3626
|
getDefaultOptions: (e) => ({
|
|
3628
|
-
onRowSelectionChange:
|
|
3627
|
+
onRowSelectionChange: A("rowSelection", e),
|
|
3629
3628
|
enableRowSelection: !0,
|
|
3630
3629
|
enableMultiRowSelection: !0,
|
|
3631
3630
|
enableSubRowSelection: !0
|
|
@@ -3656,19 +3655,19 @@ const So = {
|
|
|
3656
3655
|
return e.getRowModel().rows.forEach((l) => {
|
|
3657
3656
|
Ke(r, l.id, o, !0, e);
|
|
3658
3657
|
}), r;
|
|
3659
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = v(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ?
|
|
3658
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = v(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? De(e, t) : {
|
|
3660
3659
|
rows: [],
|
|
3661
3660
|
flatRows: [],
|
|
3662
3661
|
rowsById: {}
|
|
3663
|
-
},
|
|
3662
|
+
}, w(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = v(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? De(e, t) : {
|
|
3664
3663
|
rows: [],
|
|
3665
3664
|
flatRows: [],
|
|
3666
3665
|
rowsById: {}
|
|
3667
|
-
},
|
|
3666
|
+
}, w(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = v(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? De(e, t) : {
|
|
3668
3667
|
rows: [],
|
|
3669
3668
|
flatRows: [],
|
|
3670
3669
|
rowsById: {}
|
|
3671
|
-
},
|
|
3670
|
+
}, w(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
3672
3671
|
const n = e.getFilteredRowModel().flatRows, {
|
|
3673
3672
|
rowSelection: t
|
|
3674
3673
|
} = e.getState();
|
|
@@ -3742,15 +3741,15 @@ const So = {
|
|
|
3742
3741
|
const i = r.getRow(n, !0);
|
|
3743
3742
|
t ? (i.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), i.getCanSelect() && (e[n] = !0)) : delete e[n], o && (l = i.subRows) != null && l.length && i.getCanSelectSubRows() && i.subRows.forEach((s) => Ke(e, s.id, t, o, r));
|
|
3744
3743
|
};
|
|
3745
|
-
function
|
|
3744
|
+
function De(e, n) {
|
|
3746
3745
|
const t = e.getState().rowSelection, o = [], r = {}, l = function(i, s) {
|
|
3747
3746
|
return i.map((a) => {
|
|
3748
3747
|
var u;
|
|
3749
|
-
const
|
|
3750
|
-
if (
|
|
3748
|
+
const c = nt(a, t);
|
|
3749
|
+
if (c && (o.push(a), r[a.id] = a), (u = a.subRows) != null && u.length && (a = {
|
|
3751
3750
|
...a,
|
|
3752
3751
|
subRows: l(a.subRows)
|
|
3753
|
-
}),
|
|
3752
|
+
}), c)
|
|
3754
3753
|
return a;
|
|
3755
3754
|
}).filter(Boolean);
|
|
3756
3755
|
};
|
|
@@ -3775,10 +3774,10 @@ function Xe(e, n, t) {
|
|
|
3775
3774
|
}
|
|
3776
3775
|
}), r ? "all" : l ? "some" : !1;
|
|
3777
3776
|
}
|
|
3778
|
-
const Qe = /([0-9]+)/gm,
|
|
3777
|
+
const Qe = /([0-9]+)/gm, Io = (e, n, t) => Xt(Q(e.getValue(t)).toLowerCase(), Q(n.getValue(t)).toLowerCase()), Fo = (e, n, t) => Xt(Q(e.getValue(t)), Q(n.getValue(t))), Po = (e, n, t) => ot(Q(e.getValue(t)).toLowerCase(), Q(n.getValue(t)).toLowerCase()), zo = (e, n, t) => ot(Q(e.getValue(t)), Q(n.getValue(t))), Vo = (e, n, t) => {
|
|
3779
3778
|
const o = e.getValue(t), r = n.getValue(t);
|
|
3780
3779
|
return o > r ? 1 : o < r ? -1 : 0;
|
|
3781
|
-
},
|
|
3780
|
+
}, ko = (e, n, t) => ot(e.getValue(t), n.getValue(t));
|
|
3782
3781
|
function ot(e, n) {
|
|
3783
3782
|
return e === n ? 0 : e > n ? 1 : -1;
|
|
3784
3783
|
}
|
|
@@ -3806,13 +3805,13 @@ function Xt(e, n) {
|
|
|
3806
3805
|
return t.length - o.length;
|
|
3807
3806
|
}
|
|
3808
3807
|
const ue = {
|
|
3809
|
-
alphanumeric:
|
|
3810
|
-
alphanumericCaseSensitive:
|
|
3811
|
-
text:
|
|
3812
|
-
textCaseSensitive:
|
|
3813
|
-
datetime:
|
|
3814
|
-
basic:
|
|
3815
|
-
},
|
|
3808
|
+
alphanumeric: Io,
|
|
3809
|
+
alphanumericCaseSensitive: Fo,
|
|
3810
|
+
text: Po,
|
|
3811
|
+
textCaseSensitive: zo,
|
|
3812
|
+
datetime: Vo,
|
|
3813
|
+
basic: ko
|
|
3814
|
+
}, Eo = {
|
|
3816
3815
|
getInitialState: (e) => ({
|
|
3817
3816
|
sorting: [],
|
|
3818
3817
|
...e
|
|
@@ -3822,7 +3821,7 @@ const ue = {
|
|
|
3822
3821
|
sortUndefined: 1
|
|
3823
3822
|
}),
|
|
3824
3823
|
getDefaultOptions: (e) => ({
|
|
3825
|
-
onSortingChange:
|
|
3824
|
+
onSortingChange: A("sorting", e),
|
|
3826
3825
|
isMultiSortEvent: (n) => n.shiftKey
|
|
3827
3826
|
}),
|
|
3828
3827
|
createColumn: (e, n) => {
|
|
@@ -3848,18 +3847,18 @@ const ue = {
|
|
|
3848
3847
|
}, e.toggleSorting = (t, o) => {
|
|
3849
3848
|
const r = e.getNextSortingOrder(), l = typeof t < "u" && t !== null;
|
|
3850
3849
|
n.setSorting((i) => {
|
|
3851
|
-
const s = i?.find((
|
|
3852
|
-
let u = [],
|
|
3853
|
-
if (i != null && i.length && e.getCanMultiSort() && o ? s ?
|
|
3850
|
+
const s = i?.find((g) => g.id === e.id), a = i?.findIndex((g) => g.id === e.id);
|
|
3851
|
+
let u = [], c, f = l ? t : r === "desc";
|
|
3852
|
+
if (i != null && i.length && e.getCanMultiSort() && o ? s ? c = "toggle" : c = "add" : i != null && i.length && a !== i.length - 1 ? c = "replace" : s ? c = "toggle" : c = "replace", c === "toggle" && (l || r || (c = "remove")), c === "add") {
|
|
3854
3853
|
var d;
|
|
3855
3854
|
u = [...i, {
|
|
3856
3855
|
id: e.id,
|
|
3857
3856
|
desc: f
|
|
3858
3857
|
}], u.splice(0, u.length - ((d = n.options.maxMultiSortColCount) != null ? d : Number.MAX_SAFE_INTEGER));
|
|
3859
|
-
} else
|
|
3860
|
-
...
|
|
3858
|
+
} else c === "toggle" ? u = i.map((g) => g.id === e.id ? {
|
|
3859
|
+
...g,
|
|
3861
3860
|
desc: f
|
|
3862
|
-
} :
|
|
3861
|
+
} : g) : c === "remove" ? u = i.filter((g) => g.id !== e.id) : u = [{
|
|
3863
3862
|
id: e.id,
|
|
3864
3863
|
desc: f
|
|
3865
3864
|
}];
|
|
@@ -3901,34 +3900,34 @@ const ue = {
|
|
|
3901
3900
|
e.setSorting(n ? [] : (t = (o = e.initialState) == null ? void 0 : o.sorting) != null ? t : []);
|
|
3902
3901
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
3903
3902
|
}
|
|
3904
|
-
},
|
|
3905
|
-
|
|
3903
|
+
}, Zo = [
|
|
3904
|
+
to,
|
|
3906
3905
|
xo,
|
|
3906
|
+
Lo,
|
|
3907
3907
|
ho,
|
|
3908
|
-
|
|
3908
|
+
oo,
|
|
3909
3909
|
ro,
|
|
3910
|
-
|
|
3911
|
-
So,
|
|
3910
|
+
_o,
|
|
3912
3911
|
//depends on ColumnFaceting
|
|
3913
|
-
|
|
3912
|
+
So,
|
|
3914
3913
|
//depends on ColumnFiltering
|
|
3915
|
-
|
|
3916
|
-
|
|
3914
|
+
Eo,
|
|
3915
|
+
mo,
|
|
3917
3916
|
//depends on RowSorting
|
|
3917
|
+
Mo,
|
|
3918
3918
|
Ro,
|
|
3919
3919
|
bo,
|
|
3920
3920
|
$o,
|
|
3921
|
-
|
|
3922
|
-
_o
|
|
3921
|
+
vo
|
|
3923
3922
|
];
|
|
3924
|
-
function
|
|
3923
|
+
function Oo(e) {
|
|
3925
3924
|
var n, t;
|
|
3926
3925
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
3927
|
-
const o = [...
|
|
3926
|
+
const o = [...Zo, ...(n = e._features) != null ? n : []];
|
|
3928
3927
|
let r = {
|
|
3929
3928
|
_features: o
|
|
3930
3929
|
};
|
|
3931
|
-
const l = r._features.reduce((d,
|
|
3930
|
+
const l = r._features.reduce((d, g) => Object.assign(d, g.getDefaultOptions == null ? void 0 : g.getDefaultOptions(r)), {}), i = (d) => r.options.mergeOptions ? r.options.mergeOptions(l, d) : {
|
|
3932
3931
|
...l,
|
|
3933
3932
|
...d
|
|
3934
3933
|
};
|
|
@@ -3937,11 +3936,11 @@ function Do(e) {
|
|
|
3937
3936
|
...(t = e.initialState) != null ? t : {}
|
|
3938
3937
|
};
|
|
3939
3938
|
r._features.forEach((d) => {
|
|
3940
|
-
var
|
|
3941
|
-
a = (
|
|
3939
|
+
var g;
|
|
3940
|
+
a = (g = d.getInitialState == null ? void 0 : d.getInitialState(a)) != null ? g : a;
|
|
3942
3941
|
});
|
|
3943
3942
|
const u = [];
|
|
3944
|
-
let
|
|
3943
|
+
let c = !1;
|
|
3945
3944
|
const f = {
|
|
3946
3945
|
_features: o,
|
|
3947
3946
|
options: {
|
|
@@ -3950,43 +3949,43 @@ function Do(e) {
|
|
|
3950
3949
|
},
|
|
3951
3950
|
initialState: a,
|
|
3952
3951
|
_queue: (d) => {
|
|
3953
|
-
u.push(d),
|
|
3952
|
+
u.push(d), c || (c = !0, Promise.resolve().then(() => {
|
|
3954
3953
|
for (; u.length; )
|
|
3955
3954
|
u.shift()();
|
|
3956
|
-
|
|
3957
|
-
}).catch((
|
|
3958
|
-
throw
|
|
3955
|
+
c = !1;
|
|
3956
|
+
}).catch((g) => setTimeout(() => {
|
|
3957
|
+
throw g;
|
|
3959
3958
|
})));
|
|
3960
3959
|
},
|
|
3961
3960
|
reset: () => {
|
|
3962
3961
|
r.setState(r.initialState);
|
|
3963
3962
|
},
|
|
3964
3963
|
setOptions: (d) => {
|
|
3965
|
-
const
|
|
3966
|
-
r.options = i(
|
|
3964
|
+
const g = j(d, r.options);
|
|
3965
|
+
r.options = i(g);
|
|
3967
3966
|
},
|
|
3968
3967
|
getState: () => r.options.state,
|
|
3969
3968
|
setState: (d) => {
|
|
3970
3969
|
r.options.onStateChange == null || r.options.onStateChange(d);
|
|
3971
3970
|
},
|
|
3972
|
-
_getRowId: (d,
|
|
3971
|
+
_getRowId: (d, g, p) => {
|
|
3973
3972
|
var m;
|
|
3974
|
-
return (m = r.options.getRowId == null ? void 0 : r.options.getRowId(d,
|
|
3973
|
+
return (m = r.options.getRowId == null ? void 0 : r.options.getRowId(d, g, p)) != null ? m : `${p ? [p.id, g].join(".") : g}`;
|
|
3975
3974
|
},
|
|
3976
3975
|
getCoreRowModel: () => (r._getCoreRowModel || (r._getCoreRowModel = r.options.getCoreRowModel(r)), r._getCoreRowModel()),
|
|
3977
3976
|
// The final calls start at the bottom of the model,
|
|
3978
3977
|
// expanded rows, which then work their way up
|
|
3979
3978
|
getRowModel: () => r.getPaginationRowModel(),
|
|
3980
3979
|
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
3981
|
-
getRow: (d,
|
|
3982
|
-
let p = (
|
|
3980
|
+
getRow: (d, g) => {
|
|
3981
|
+
let p = (g ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[d];
|
|
3983
3982
|
if (!p && (p = r.getCoreRowModel().rowsById[d], !p))
|
|
3984
3983
|
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${d}`) : new Error();
|
|
3985
3984
|
return p;
|
|
3986
3985
|
},
|
|
3987
3986
|
_getDefaultColumnDef: v(() => [r.options.defaultColumn], (d) => {
|
|
3988
|
-
var
|
|
3989
|
-
return d = (
|
|
3987
|
+
var g;
|
|
3988
|
+
return d = (g = d) != null ? g : {}, {
|
|
3990
3989
|
header: (p) => {
|
|
3991
3990
|
const m = p.header.column.columnDef;
|
|
3992
3991
|
return m.accessorKey ? m.accessorKey : m.accessorFn ? m.id : null;
|
|
@@ -3999,36 +3998,36 @@ function Do(e) {
|
|
|
3999
3998
|
...r._features.reduce((p, m) => Object.assign(p, m.getDefaultColumnDef == null ? void 0 : m.getDefaultColumnDef()), {}),
|
|
4000
3999
|
...d
|
|
4001
4000
|
};
|
|
4002
|
-
},
|
|
4001
|
+
}, w(e, "debugColumns", "_getDefaultColumnDef")),
|
|
4003
4002
|
_getColumnDefs: () => r.options.columns,
|
|
4004
4003
|
getAllColumns: v(() => [r._getColumnDefs()], (d) => {
|
|
4005
|
-
const
|
|
4004
|
+
const g = function(p, m, C) {
|
|
4006
4005
|
return C === void 0 && (C = 0), p.map((y) => {
|
|
4007
|
-
const
|
|
4008
|
-
return
|
|
4006
|
+
const _ = eo(r, y, C, m), R = y;
|
|
4007
|
+
return _.columns = R.columns ? g(R.columns, _, C + 1) : [], _;
|
|
4009
4008
|
});
|
|
4010
4009
|
};
|
|
4011
|
-
return
|
|
4012
|
-
},
|
|
4013
|
-
getAllFlatColumns: v(() => [r.getAllColumns()], (d) => d.flatMap((
|
|
4014
|
-
_getAllFlatColumnsById: v(() => [r.getAllFlatColumns()], (d) => d.reduce((
|
|
4015
|
-
getAllLeafColumns: v(() => [r.getAllColumns(), r._getOrderColumnsFn()], (d,
|
|
4010
|
+
return g(d);
|
|
4011
|
+
}, w(e, "debugColumns", "getAllColumns")),
|
|
4012
|
+
getAllFlatColumns: v(() => [r.getAllColumns()], (d) => d.flatMap((g) => g.getFlatColumns()), w(e, "debugColumns", "getAllFlatColumns")),
|
|
4013
|
+
_getAllFlatColumnsById: v(() => [r.getAllFlatColumns()], (d) => d.reduce((g, p) => (g[p.id] = p, g), {}), w(e, "debugColumns", "getAllFlatColumnsById")),
|
|
4014
|
+
getAllLeafColumns: v(() => [r.getAllColumns(), r._getOrderColumnsFn()], (d, g) => {
|
|
4016
4015
|
let p = d.flatMap((m) => m.getLeafColumns());
|
|
4017
|
-
return
|
|
4018
|
-
},
|
|
4016
|
+
return g(p);
|
|
4017
|
+
}, w(e, "debugColumns", "getAllLeafColumns")),
|
|
4019
4018
|
getColumn: (d) => {
|
|
4020
|
-
const
|
|
4021
|
-
return process.env.NODE_ENV !== "production" && !
|
|
4019
|
+
const g = r._getAllFlatColumnsById()[d];
|
|
4020
|
+
return process.env.NODE_ENV !== "production" && !g && console.error(`[Table] Column with id '${d}' does not exist.`), g;
|
|
4022
4021
|
}
|
|
4023
4022
|
};
|
|
4024
4023
|
Object.assign(r, f);
|
|
4025
4024
|
for (let d = 0; d < r._features.length; d++) {
|
|
4026
|
-
const
|
|
4027
|
-
|
|
4025
|
+
const g = r._features[d];
|
|
4026
|
+
g == null || g.createTable == null || g.createTable(r);
|
|
4028
4027
|
}
|
|
4029
4028
|
return r;
|
|
4030
4029
|
}
|
|
4031
|
-
function
|
|
4030
|
+
function Ao() {
|
|
4032
4031
|
return (e) => v(() => [e.options.data], (n) => {
|
|
4033
4032
|
const t = {
|
|
4034
4033
|
rows: [],
|
|
@@ -4038,18 +4037,18 @@ function Oo() {
|
|
|
4038
4037
|
l === void 0 && (l = 0);
|
|
4039
4038
|
const s = [];
|
|
4040
4039
|
for (let u = 0; u < r.length; u++) {
|
|
4041
|
-
const
|
|
4042
|
-
if (t.flatRows.push(
|
|
4040
|
+
const c = no(e, e._getRowId(r[u], u, i), r[u], u, l, void 0, i?.id);
|
|
4041
|
+
if (t.flatRows.push(c), t.rowsById[c.id] = c, s.push(c), e.options.getSubRows) {
|
|
4043
4042
|
var a;
|
|
4044
|
-
|
|
4043
|
+
c.originalSubRows = e.options.getSubRows(r[u], u), (a = c.originalSubRows) != null && a.length && (c.subRows = o(c.originalSubRows, l + 1, c));
|
|
4045
4044
|
}
|
|
4046
4045
|
}
|
|
4047
4046
|
return s;
|
|
4048
4047
|
};
|
|
4049
4048
|
return t.rows = o(n), t;
|
|
4050
|
-
},
|
|
4049
|
+
}, w(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
4051
4050
|
}
|
|
4052
|
-
function
|
|
4051
|
+
function Do() {
|
|
4053
4052
|
return (e) => v(() => [e.getState().sorting, e.getPreSortedRowModel()], (n, t) => {
|
|
4054
4053
|
if (!t.rows.length || !(n != null && n.length))
|
|
4055
4054
|
return t;
|
|
@@ -4066,29 +4065,29 @@ function To() {
|
|
|
4066
4065
|
});
|
|
4067
4066
|
});
|
|
4068
4067
|
const s = (a) => {
|
|
4069
|
-
const u = a.map((
|
|
4070
|
-
...
|
|
4068
|
+
const u = a.map((c) => ({
|
|
4069
|
+
...c
|
|
4071
4070
|
}));
|
|
4072
|
-
return u.sort((
|
|
4073
|
-
for (let
|
|
4071
|
+
return u.sort((c, f) => {
|
|
4072
|
+
for (let g = 0; g < l.length; g += 1) {
|
|
4074
4073
|
var d;
|
|
4075
|
-
const p = l[
|
|
4076
|
-
let
|
|
4074
|
+
const p = l[g], m = i[p.id], C = m.sortUndefined, y = (d = p?.desc) != null ? d : !1;
|
|
4075
|
+
let _ = 0;
|
|
4077
4076
|
if (C) {
|
|
4078
|
-
const R =
|
|
4077
|
+
const R = c.getValue(p.id), M = f.getValue(p.id), b = R === void 0, S = M === void 0;
|
|
4079
4078
|
if (b || S) {
|
|
4080
4079
|
if (C === "first") return b ? -1 : 1;
|
|
4081
4080
|
if (C === "last") return b ? 1 : -1;
|
|
4082
|
-
|
|
4081
|
+
_ = b && S ? 0 : b ? C : -C;
|
|
4083
4082
|
}
|
|
4084
4083
|
}
|
|
4085
|
-
if (
|
|
4086
|
-
return y && (
|
|
4084
|
+
if (_ === 0 && (_ = m.sortingFn(c, f, p.id)), _ !== 0)
|
|
4085
|
+
return y && (_ *= -1), m.invertSorting && (_ *= -1), _;
|
|
4087
4086
|
}
|
|
4088
|
-
return
|
|
4089
|
-
}), u.forEach((
|
|
4087
|
+
return c.index - f.index;
|
|
4088
|
+
}), u.forEach((c) => {
|
|
4090
4089
|
var f;
|
|
4091
|
-
r.push(
|
|
4090
|
+
r.push(c), (f = c.subRows) != null && f.length && (c.subRows = s(c.subRows));
|
|
4092
4091
|
}), u;
|
|
4093
4092
|
};
|
|
4094
4093
|
return {
|
|
@@ -4096,7 +4095,7 @@ function To() {
|
|
|
4096
4095
|
flatRows: r,
|
|
4097
4096
|
rowsById: t.rowsById
|
|
4098
4097
|
};
|
|
4099
|
-
},
|
|
4098
|
+
}, w(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
4100
4099
|
}
|
|
4101
4100
|
/**
|
|
4102
4101
|
* vue-table
|
|
@@ -4111,9 +4110,9 @@ function To() {
|
|
|
4111
4110
|
function he() {
|
|
4112
4111
|
return !0;
|
|
4113
4112
|
}
|
|
4114
|
-
const
|
|
4113
|
+
const To = Symbol("merge-proxy"), Go = {
|
|
4115
4114
|
get(e, n, t) {
|
|
4116
|
-
return n ===
|
|
4115
|
+
return n === To ? t : e.get(n);
|
|
4117
4116
|
},
|
|
4118
4117
|
has(e, n) {
|
|
4119
4118
|
return e.has(n);
|
|
@@ -4158,7 +4157,7 @@ function ce() {
|
|
|
4158
4157
|
for (let r = 0; r < n.length; r++) o.push(...Object.keys(Te(n[r])));
|
|
4159
4158
|
return [...Array.from(new Set(o))];
|
|
4160
4159
|
}
|
|
4161
|
-
},
|
|
4160
|
+
}, Go);
|
|
4162
4161
|
}
|
|
4163
4162
|
const Qt = I({
|
|
4164
4163
|
props: ["render", "props"],
|
|
@@ -4166,10 +4165,10 @@ const Qt = I({
|
|
|
4166
4165
|
});
|
|
4167
4166
|
function vt(e) {
|
|
4168
4167
|
return ce(e, {
|
|
4169
|
-
data:
|
|
4168
|
+
data: D(e.data)
|
|
4170
4169
|
});
|
|
4171
4170
|
}
|
|
4172
|
-
function
|
|
4171
|
+
function Ho(e) {
|
|
4173
4172
|
const n = o0(e.data), t = ce({
|
|
4174
4173
|
state: {},
|
|
4175
4174
|
// Dummy state
|
|
@@ -4183,9 +4182,9 @@ function Bo(e) {
|
|
|
4183
4182
|
...i
|
|
4184
4183
|
} : ce(l, i);
|
|
4185
4184
|
}
|
|
4186
|
-
}, n ? vt(e) : e), o =
|
|
4185
|
+
}, n ? vt(e) : e), o = Oo(t);
|
|
4187
4186
|
if (n) {
|
|
4188
|
-
const l =
|
|
4187
|
+
const l = wt(e.data);
|
|
4189
4188
|
We(l, () => {
|
|
4190
4189
|
o.setState((i) => ({
|
|
4191
4190
|
...i,
|
|
@@ -4216,7 +4215,7 @@ function Bo(e) {
|
|
|
4216
4215
|
});
|
|
4217
4216
|
}), o;
|
|
4218
4217
|
}
|
|
4219
|
-
const
|
|
4218
|
+
const Bo = ["aria-sort"], No = /* @__PURE__ */ I({
|
|
4220
4219
|
__name: "CmcTableHeader",
|
|
4221
4220
|
props: {
|
|
4222
4221
|
headerGroups: {}
|
|
@@ -4235,16 +4234,16 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4235
4234
|
"aria-sort": n(l),
|
|
4236
4235
|
scope: "col"
|
|
4237
4236
|
}, [
|
|
4238
|
-
l.isPlaceholder ? z("", !0) : (L(), W(
|
|
4237
|
+
l.isPlaceholder ? z("", !0) : (L(), W(D(Qt), {
|
|
4239
4238
|
key: 0,
|
|
4240
4239
|
props: l.getContext(),
|
|
4241
4240
|
render: l.column.columnDef.header
|
|
4242
4241
|
}, null, 8, ["props", "render"]))
|
|
4243
|
-
], 8,
|
|
4242
|
+
], 8, Bo))), 128))
|
|
4244
4243
|
]))), 128))
|
|
4245
4244
|
]));
|
|
4246
4245
|
}
|
|
4247
|
-
}),
|
|
4246
|
+
}), Uo = /* @__PURE__ */ $(No, [["__scopeId", "data-v-9eba66c8"]]), qo = { key: 0 }, jo = { key: 1 }, Ko = ["colspan"], Xo = /* @__PURE__ */ I({
|
|
4248
4247
|
__name: "CmcTableBody",
|
|
4249
4248
|
props: {
|
|
4250
4249
|
rows: {},
|
|
@@ -4252,20 +4251,20 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4252
4251
|
leafColCount: {}
|
|
4253
4252
|
},
|
|
4254
4253
|
setup(e) {
|
|
4255
|
-
return (n, t) => e.rows.length ? (L(), h("tbody",
|
|
4254
|
+
return (n, t) => e.rows.length ? (L(), h("tbody", qo, [
|
|
4256
4255
|
(L(!0), h(Z, null, H(e.rows, (o) => (L(), h("tr", {
|
|
4257
4256
|
key: o.id
|
|
4258
4257
|
}, [
|
|
4259
4258
|
(L(!0), h(Z, null, H(o.getVisibleCells(), (r) => (L(), h("td", {
|
|
4260
4259
|
key: r.id
|
|
4261
4260
|
}, [
|
|
4262
|
-
|
|
4261
|
+
O(D(Qt), {
|
|
4263
4262
|
props: r.getContext(),
|
|
4264
4263
|
render: r.column.columnDef.cell
|
|
4265
4264
|
}, null, 8, ["props", "render"])
|
|
4266
4265
|
]))), 128))
|
|
4267
4266
|
]))), 128))
|
|
4268
|
-
])) : (L(), h("tbody",
|
|
4267
|
+
])) : (L(), h("tbody", jo, [
|
|
4269
4268
|
P("tr", null, [
|
|
4270
4269
|
P("td", {
|
|
4271
4270
|
colspan: e.leafColCount,
|
|
@@ -4274,11 +4273,11 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4274
4273
|
T(n.$slots, "empty", {}, () => [
|
|
4275
4274
|
St(V(e.emptyText), 1)
|
|
4276
4275
|
], !0)
|
|
4277
|
-
], 8,
|
|
4276
|
+
], 8, Ko)
|
|
4278
4277
|
])
|
|
4279
4278
|
]));
|
|
4280
4279
|
}
|
|
4281
|
-
}),
|
|
4280
|
+
}), Qo = /* @__PURE__ */ $(Xo, [["__scopeId", "data-v-f962b8ac"]]), Wo = /* @__PURE__ */ I({
|
|
4282
4281
|
__name: "CmcTable",
|
|
4283
4282
|
props: {
|
|
4284
4283
|
rows: { default: () => [] },
|
|
@@ -4286,22 +4285,22 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4286
4285
|
emptyText: { default: "Pas de données" }
|
|
4287
4286
|
},
|
|
4288
4287
|
setup(e) {
|
|
4289
|
-
const n = e, t = (d) => ({ column:
|
|
4288
|
+
const n = e, t = (d) => ({ column: g }) => J(
|
|
4290
4289
|
"button",
|
|
4291
4290
|
{
|
|
4292
4291
|
type: "button",
|
|
4293
|
-
onClick:
|
|
4292
|
+
onClick: g.getToggleSortingHandler(),
|
|
4294
4293
|
class: "table__sort-btn"
|
|
4295
4294
|
},
|
|
4296
|
-
`${d} ${
|
|
4295
|
+
`${d} ${g.getIsSorted() ? g.getIsSorted() === "asc" ? "↑" : "↓" : ""}`
|
|
4297
4296
|
), o = (d) => J("button", { onClick: d.onClick, class: "table__button" }, [
|
|
4298
4297
|
J(X, { name: d.icon })
|
|
4299
4298
|
]), r = (d) => d.map(
|
|
4300
|
-
(
|
|
4299
|
+
(g) => (g.type === "date" && (g.cellRenderer = ({ getValue: p }) => new Date(p()).toLocaleDateString("fr-FR", {
|
|
4301
4300
|
year: "numeric",
|
|
4302
4301
|
month: "long",
|
|
4303
4302
|
day: "numeric"
|
|
4304
|
-
})),
|
|
4303
|
+
})), g.type === "buttons" && (g.cellRenderer = ({ getValue: p }) => {
|
|
4305
4304
|
const C = p().map((y) => o(y));
|
|
4306
4305
|
return J(
|
|
4307
4306
|
Hn,
|
|
@@ -4309,33 +4308,33 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4309
4308
|
() => C
|
|
4310
4309
|
);
|
|
4311
4310
|
}), {
|
|
4312
|
-
accessorKey:
|
|
4313
|
-
header:
|
|
4314
|
-
...
|
|
4311
|
+
accessorKey: g.key,
|
|
4312
|
+
header: g.sortable ? t(g.label) : g.label,
|
|
4313
|
+
...g.cellRenderer ? { cell: g.cellRenderer } : {}
|
|
4315
4314
|
})
|
|
4316
|
-
), l = (d) => d.map((
|
|
4315
|
+
), l = (d) => d.map((g) => ({ ...g })), i = x(() => l(n.rows)), s = x(
|
|
4317
4316
|
() => r(n.columns)
|
|
4318
|
-
), a =
|
|
4317
|
+
), a = Ho({
|
|
4319
4318
|
get data() {
|
|
4320
4319
|
return i.value;
|
|
4321
4320
|
},
|
|
4322
4321
|
columns: s.value,
|
|
4323
|
-
getCoreRowModel:
|
|
4324
|
-
getSortedRowModel:
|
|
4325
|
-
}), u =
|
|
4326
|
-
return (d,
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
rows:
|
|
4322
|
+
getCoreRowModel: Ao(),
|
|
4323
|
+
getSortedRowModel: Do()
|
|
4324
|
+
}), u = x(() => a.getHeaderGroups()), c = x(() => a.getRowModel().rows), f = x(() => a.getAllLeafColumns().length);
|
|
4325
|
+
return (d, g) => (L(), h("table", null, [
|
|
4326
|
+
O(Uo, { headerGroups: u.value }, null, 8, ["headerGroups"]),
|
|
4327
|
+
O(Qo, {
|
|
4328
|
+
rows: c.value,
|
|
4330
4329
|
emptyText: e.emptyText,
|
|
4331
4330
|
leafColCount: f.value
|
|
4332
4331
|
}, null, 8, ["rows", "emptyText", "leafColCount"])
|
|
4333
4332
|
]));
|
|
4334
4333
|
}
|
|
4335
|
-
}),
|
|
4334
|
+
}), Yo = /* @__PURE__ */ $(Wo, [["__scopeId", "data-v-0de0582e"]]), Jo = { class: "table__pagination" }, er = 10, tr = /* @__PURE__ */ I({
|
|
4336
4335
|
__name: "CmcTablePagination",
|
|
4337
4336
|
props: {
|
|
4338
|
-
itemsPerPage: { default:
|
|
4337
|
+
itemsPerPage: { default: er },
|
|
4339
4338
|
currentPage: { default: 1 },
|
|
4340
4339
|
rows: { default: () => [] },
|
|
4341
4340
|
columns: { default: () => [] },
|
|
@@ -4346,18 +4345,18 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4346
4345
|
setup(e, { emit: n }) {
|
|
4347
4346
|
const t = e, o = n, r = (i) => {
|
|
4348
4347
|
o("update:currentPage", i);
|
|
4349
|
-
}, l =
|
|
4348
|
+
}, l = x(() => {
|
|
4350
4349
|
const i = (t.currentPage - 1) * t.itemsPerPage;
|
|
4351
4350
|
return t.rows.slice(i, i + t.itemsPerPage);
|
|
4352
4351
|
});
|
|
4353
|
-
return (i, s) => (L(), h("div",
|
|
4354
|
-
|
|
4352
|
+
return (i, s) => (L(), h("div", Jo, [
|
|
4353
|
+
O(Yo, {
|
|
4355
4354
|
columns: e.columns,
|
|
4356
4355
|
"empty-text": e.emptyText,
|
|
4357
4356
|
rows: l.value,
|
|
4358
4357
|
class: "table__pagination--table"
|
|
4359
4358
|
}, null, 8, ["columns", "empty-text", "rows"]),
|
|
4360
|
-
|
|
4359
|
+
O(D1, {
|
|
4361
4360
|
currentPage: e.currentPage,
|
|
4362
4361
|
itemsPerPage: e.itemsPerPage,
|
|
4363
4362
|
totalItems: e.totalItems ?? e.rows.length,
|
|
@@ -4365,15 +4364,15 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4365
4364
|
}, null, 8, ["currentPage", "itemsPerPage", "totalItems"])
|
|
4366
4365
|
]));
|
|
4367
4366
|
}
|
|
4368
|
-
}),
|
|
4367
|
+
}), Mr = /* @__PURE__ */ $(tr, [["__scopeId", "data-v-a2a0b05e"]]), Rr = /* @__PURE__ */ I({
|
|
4369
4368
|
name: "CmcTitle",
|
|
4370
4369
|
__name: "CmcTitle",
|
|
4371
4370
|
setup(e) {
|
|
4372
4371
|
return (n, t) => (L(), h(Z, null, [
|
|
4373
|
-
|
|
4374
|
-
level:
|
|
4372
|
+
O(i1, {
|
|
4373
|
+
level: D(Y).h1
|
|
4375
4374
|
}, {
|
|
4376
|
-
default:
|
|
4375
|
+
default: _e(() => [
|
|
4377
4376
|
T(n.$slots, "default")
|
|
4378
4377
|
]),
|
|
4379
4378
|
_: 3
|
|
@@ -4381,23 +4380,23 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4381
4380
|
t[0] || (t[0] = P("hr", { class: "title__separator" }, null, -1))
|
|
4382
4381
|
], 64));
|
|
4383
4382
|
}
|
|
4384
|
-
}),
|
|
4383
|
+
}), nr = {
|
|
4385
4384
|
medium: "medium"
|
|
4386
|
-
},
|
|
4385
|
+
}, or = ["id", "disabled", "required"], rr = ["for"], lr = /* @__PURE__ */ I({
|
|
4387
4386
|
name: "CmcToggle",
|
|
4388
4387
|
__name: "CmcToggle",
|
|
4389
4388
|
props: /* @__PURE__ */ K({
|
|
4390
4389
|
id: {},
|
|
4391
4390
|
disabled: { type: Boolean, default: !1 },
|
|
4392
4391
|
required: { type: Boolean, default: !1 },
|
|
4393
|
-
size: { default:
|
|
4392
|
+
size: { default: nr.medium }
|
|
4394
4393
|
}, {
|
|
4395
4394
|
modelValue: { type: Boolean, default: !1 },
|
|
4396
4395
|
modelModifiers: {}
|
|
4397
4396
|
}),
|
|
4398
4397
|
emits: ["update:modelValue"],
|
|
4399
4398
|
setup(e) {
|
|
4400
|
-
const n = e, t = te(e, "modelValue"), o =
|
|
4399
|
+
const n = e, t = te(e, "modelValue"), o = x(() => n.id || `cmc-toggle-${Me()}`), r = x(() => ({
|
|
4401
4400
|
toggle: !0,
|
|
4402
4401
|
[`toggle--${n.size}`]: !0,
|
|
4403
4402
|
"toggle--disabled": n.disabled,
|
|
@@ -4414,7 +4413,7 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4414
4413
|
required: n.required,
|
|
4415
4414
|
class: "toggle__input",
|
|
4416
4415
|
type: "checkbox"
|
|
4417
|
-
}, null, 8,
|
|
4416
|
+
}, null, 8, or), [
|
|
4418
4417
|
[Mt, t.value]
|
|
4419
4418
|
]),
|
|
4420
4419
|
P("label", {
|
|
@@ -4422,16 +4421,16 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4422
4421
|
class: "toggle__switch"
|
|
4423
4422
|
}, [...i[1] || (i[1] = [
|
|
4424
4423
|
P("span", { class: "toggle__slider" }, null, -1)
|
|
4425
|
-
])], 8,
|
|
4424
|
+
])], 8, rr)
|
|
4426
4425
|
], 2));
|
|
4427
4426
|
}
|
|
4428
|
-
}),
|
|
4427
|
+
}), br = /* @__PURE__ */ $(lr, [["__scopeId", "data-v-37a7880f"]]), ir = ["aria-current", "aria-label", "onClick", "onKeydown"], sr = {
|
|
4429
4428
|
key: 1,
|
|
4430
4429
|
class: "wizard__number"
|
|
4431
|
-
},
|
|
4430
|
+
}, ar = { class: "wizard__label" }, ur = ["tabindex", "onClick", "onKeydown"], cr = {
|
|
4432
4431
|
key: 0,
|
|
4433
4432
|
class: "wizard__separator"
|
|
4434
|
-
},
|
|
4433
|
+
}, gr = /* @__PURE__ */ I({
|
|
4435
4434
|
name: "CmcWizard",
|
|
4436
4435
|
__name: "CmcWizard",
|
|
4437
4436
|
props: {
|
|
@@ -4441,28 +4440,28 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4441
4440
|
},
|
|
4442
4441
|
emits: ["update:current"],
|
|
4443
4442
|
setup(e, { emit: n }) {
|
|
4444
|
-
const t = e, o =
|
|
4443
|
+
const t = e, o = x(() => t.steps.length - 1), r = n;
|
|
4445
4444
|
function l(f) {
|
|
4446
4445
|
t.clickable && r("update:current", f);
|
|
4447
4446
|
}
|
|
4448
4447
|
const i = (f) => ({
|
|
4449
4448
|
"wizard__step--completed": a(f),
|
|
4450
4449
|
"wizard__step--current": u(f),
|
|
4451
|
-
"wizard__step--upcoming":
|
|
4450
|
+
"wizard__step--upcoming": c(f)
|
|
4452
4451
|
}), s = (f) => ({
|
|
4453
4452
|
"wizard__label-text--completed": a(f),
|
|
4454
4453
|
"wizard__label-text--current": u(f),
|
|
4455
|
-
"wizard__label-text--upcoming":
|
|
4456
|
-
}), a = (f) => f < t.current, u = (f) => f === t.current,
|
|
4454
|
+
"wizard__label-text--upcoming": c(f)
|
|
4455
|
+
}), a = (f) => f < t.current, u = (f) => f === t.current, c = (f) => !a(f) && !u(f);
|
|
4457
4456
|
return (f, d) => (L(), h("div", {
|
|
4458
4457
|
class: F(["wizard", { "wizard--clickable": e.clickable }]),
|
|
4459
4458
|
role: "list"
|
|
4460
4459
|
}, [
|
|
4461
|
-
(L(!0), h(Z, null, H(e.steps, (
|
|
4460
|
+
(L(!0), h(Z, null, H(e.steps, (g, p) => (L(), h(Z, { key: p }, [
|
|
4462
4461
|
P("div", {
|
|
4463
4462
|
class: F(["wizard__step", i(p)]),
|
|
4464
4463
|
"aria-current": u(p) ? "step" : void 0,
|
|
4465
|
-
"aria-label": `step-${p + 1} : ${
|
|
4464
|
+
"aria-label": `step-${p + 1} : ${g.label}`,
|
|
4466
4465
|
onClick: (m) => l(p),
|
|
4467
4466
|
onKeydown: [
|
|
4468
4467
|
fe((m) => l(p), ["enter"]),
|
|
@@ -4473,9 +4472,9 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4473
4472
|
key: 0,
|
|
4474
4473
|
color: "secondary",
|
|
4475
4474
|
name: "check"
|
|
4476
|
-
})) : (L(), h("span",
|
|
4477
|
-
], 42,
|
|
4478
|
-
P("div",
|
|
4475
|
+
})) : (L(), h("span", sr, V(p + 1), 1))
|
|
4476
|
+
], 42, ir),
|
|
4477
|
+
P("div", ar, [
|
|
4479
4478
|
P("span", {
|
|
4480
4479
|
class: F(["wizard__label-text", s(p)]),
|
|
4481
4480
|
tabindex: e.clickable ? 0 : -1,
|
|
@@ -4484,47 +4483,47 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4484
4483
|
fe((m) => l(p), ["enter"]),
|
|
4485
4484
|
fe(Ge((m) => l(p), ["prevent"]), ["space"])
|
|
4486
4485
|
]
|
|
4487
|
-
}, V(
|
|
4486
|
+
}, V(g.label), 43, ur)
|
|
4488
4487
|
]),
|
|
4489
|
-
o.value !== p ? (L(), h("hr",
|
|
4488
|
+
o.value !== p ? (L(), h("hr", cr)) : z("", !0)
|
|
4490
4489
|
], 64))), 128))
|
|
4491
4490
|
], 2));
|
|
4492
4491
|
}
|
|
4493
|
-
}),
|
|
4492
|
+
}), $r = /* @__PURE__ */ $(gr, [["__scopeId", "data-v-f6bee53d"]]);
|
|
4494
4493
|
export {
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4494
|
+
pr as CmcAlert,
|
|
4495
|
+
Cr as CmcAutocomplete,
|
|
4496
|
+
Lr as CmcBadgePill,
|
|
4497
|
+
mr as CmcBreadcrumb,
|
|
4498
|
+
pn as CmcButton,
|
|
4500
4499
|
Hn as CmcButtonGroup,
|
|
4501
|
-
|
|
4502
|
-
|
|
4500
|
+
hr as CmcCertificate,
|
|
4501
|
+
yr as CmcCheckbox,
|
|
4503
4502
|
i1 as CmcHeading,
|
|
4504
4503
|
X as CmcIcon,
|
|
4505
|
-
|
|
4506
|
-
|
|
4504
|
+
Dt as CmcInput,
|
|
4505
|
+
vr as CmcLoading,
|
|
4507
4506
|
wr as CmcLogo,
|
|
4508
|
-
|
|
4507
|
+
D1 as CmcPagination,
|
|
4509
4508
|
xr as CmcSearch,
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4509
|
+
_r as CmcSelect,
|
|
4510
|
+
Sr as CmcStatus,
|
|
4511
|
+
Yo as CmcTable,
|
|
4512
|
+
Mr as CmcTablePagination,
|
|
4513
|
+
Rr as CmcTitle,
|
|
4514
|
+
br as CmcToggle,
|
|
4515
|
+
$r as CmcWizard,
|
|
4517
4516
|
l0 as buttonKindOptions,
|
|
4518
4517
|
s0 as buttonSizeOptions,
|
|
4519
4518
|
i0 as buttonVariantOptions,
|
|
4520
4519
|
Y as headingLevelOptions,
|
|
4521
|
-
|
|
4520
|
+
fr as iconColorOptions,
|
|
4522
4521
|
lt as iconNameOptions,
|
|
4523
|
-
|
|
4522
|
+
At as inputSizeOptions,
|
|
4524
4523
|
ze as inputTypeOptions,
|
|
4525
4524
|
le as inputVariantOptions,
|
|
4526
4525
|
U as primaryTypeOptions,
|
|
4527
4526
|
oe as rankOptions,
|
|
4528
4527
|
pe as selectVariantOptions,
|
|
4529
|
-
|
|
4528
|
+
K1 as statusOptions
|
|
4530
4529
|
};
|