@choosemycompany/ui 0.20.2 → 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 +14 -2
- package/dist/index.js +601 -604
- 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,10 +1387,10 @@ 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
1396
|
max: {},
|
|
@@ -1399,50 +1401,49 @@ const sn = {
|
|
|
1399
1401
|
}),
|
|
1400
1402
|
emits: /* @__PURE__ */ K(["update:modelValue"], ["update:modelValue"]),
|
|
1401
1403
|
setup(e, { emit: n }) {
|
|
1402
|
-
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(() => ({
|
|
1403
1405
|
input: !0,
|
|
1404
1406
|
[`input--${t.size}`]: !0,
|
|
1405
1407
|
"input--required": t.required,
|
|
1406
1408
|
"input--disabled": t.disabled,
|
|
1407
|
-
"input--error":
|
|
1409
|
+
"input--error": t.invalid,
|
|
1408
1410
|
"input--outlined": t.variant === le.outlined,
|
|
1409
1411
|
"input--underline": t.variant === le.underline,
|
|
1410
1412
|
"input--filled": t.variant === le.filled,
|
|
1411
|
-
"input--with-right-slot":
|
|
1412
|
-
"input--with-left-slot":
|
|
1413
|
+
"input--with-right-slot": i.value,
|
|
1414
|
+
"input--with-left-slot": s.value
|
|
1413
1415
|
}));
|
|
1414
|
-
return (
|
|
1415
|
-
class: F(
|
|
1416
|
+
return (u, c) => (L(), h("div", {
|
|
1417
|
+
class: F(a.value)
|
|
1416
1418
|
}, [
|
|
1417
1419
|
t.label ? (L(), h("label", {
|
|
1418
1420
|
key: 0,
|
|
1419
1421
|
for: t.id,
|
|
1420
1422
|
class: "input__label"
|
|
1421
|
-
}, V(t.label), 9,
|
|
1422
|
-
t.description ? (L(), h("div",
|
|
1423
|
-
P("div",
|
|
1424
|
-
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),
|
|
1425
1427
|
Se(P("input", {
|
|
1426
|
-
"onUpdate:modelValue":
|
|
1428
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => r.value = f),
|
|
1427
1429
|
id: t.id,
|
|
1428
1430
|
type: t.type,
|
|
1429
1431
|
placeholder: t.placeholder,
|
|
1430
1432
|
required: t.required,
|
|
1431
1433
|
disabled: t.disabled,
|
|
1432
|
-
"aria-invalid":
|
|
1433
|
-
min: t.type ===
|
|
1434
|
-
max: t.type ===
|
|
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,
|
|
1435
1437
|
step: t.step,
|
|
1436
|
-
onBlur:
|
|
1437
|
-
}, null, 40,
|
|
1438
|
+
onBlur: c[1] || (c[1] = (f) => o("update:modelValue", r.value))
|
|
1439
|
+
}, null, 40, In), [
|
|
1438
1440
|
[e0, r.value]
|
|
1439
1441
|
]),
|
|
1440
|
-
T(
|
|
1441
|
-
])
|
|
1442
|
-
l.value ? (L(), h("div", In, V(t.errorMessage), 1)) : z("", !0)
|
|
1442
|
+
T(u.$slots, "right", {}, void 0, !0)
|
|
1443
|
+
])
|
|
1443
1444
|
], 2));
|
|
1444
1445
|
}
|
|
1445
|
-
}),
|
|
1446
|
+
}), Dt = /* @__PURE__ */ $(Fn, [["__scopeId", "data-v-e6086c2f"]]), Pn = { key: 1 }, zn = /* @__PURE__ */ I({
|
|
1446
1447
|
__name: "HighlightText",
|
|
1447
1448
|
props: {
|
|
1448
1449
|
text: {},
|
|
@@ -1483,10 +1484,10 @@ const sn = {
|
|
|
1483
1484
|
key: 0,
|
|
1484
1485
|
class: "autocomplete__list",
|
|
1485
1486
|
role: "listbox"
|
|
1486
|
-
}, En = { key: 1 }, Zn = ["onClick"],
|
|
1487
|
+
}, En = { key: 1 }, Zn = ["onClick"], On = {
|
|
1487
1488
|
key: 2,
|
|
1488
1489
|
class: "no-results"
|
|
1489
|
-
},
|
|
1490
|
+
}, An = /* @__PURE__ */ I({
|
|
1490
1491
|
name: "CmcAutocomplete",
|
|
1491
1492
|
__name: "CmcAutocomplete",
|
|
1492
1493
|
props: /* @__PURE__ */ K({
|
|
@@ -1506,7 +1507,7 @@ const sn = {
|
|
|
1506
1507
|
}),
|
|
1507
1508
|
emits: /* @__PURE__ */ K(["update:modelValue", "update:search", "search"], ["update:modelValue", "update:search"]),
|
|
1508
1509
|
setup(e, { emit: n }) {
|
|
1509
|
-
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(() => {
|
|
1510
1511
|
if (!l.value) return t.items;
|
|
1511
1512
|
const M = l.value.toLowerCase();
|
|
1512
1513
|
return t.items.filter((b) => b.label.toLowerCase().includes(M));
|
|
@@ -1517,7 +1518,7 @@ const sn = {
|
|
|
1517
1518
|
function d() {
|
|
1518
1519
|
s.value = !s.value;
|
|
1519
1520
|
}
|
|
1520
|
-
function
|
|
1521
|
+
function g(M) {
|
|
1521
1522
|
M.key === "Escape" && (s.value = !1);
|
|
1522
1523
|
}
|
|
1523
1524
|
function p(M) {
|
|
@@ -1548,25 +1549,25 @@ const sn = {
|
|
|
1548
1549
|
We(
|
|
1549
1550
|
() => l.value,
|
|
1550
1551
|
(M) => y(M)
|
|
1551
|
-
),
|
|
1552
|
+
), xt(() => {
|
|
1552
1553
|
window.addEventListener("click", p);
|
|
1553
|
-
}),
|
|
1554
|
+
}), _t(() => {
|
|
1554
1555
|
window.removeEventListener("click", p), C();
|
|
1555
1556
|
});
|
|
1556
|
-
const
|
|
1557
|
+
const _ = x(() => ({
|
|
1557
1558
|
autocomplete: !0,
|
|
1558
1559
|
"autocomplete--open": s.value
|
|
1559
|
-
})), R =
|
|
1560
|
+
})), R = x(() => ({
|
|
1560
1561
|
autocomplete__icon_chevron: !0,
|
|
1561
1562
|
"autocomplete__icon_chevron--open": s.value
|
|
1562
1563
|
}));
|
|
1563
1564
|
return (M, b) => (L(), h("div", {
|
|
1564
1565
|
ref_key: "autocompleteRef",
|
|
1565
1566
|
ref: a,
|
|
1566
|
-
class: F(
|
|
1567
|
-
onKeydown:
|
|
1567
|
+
class: F(_.value),
|
|
1568
|
+
onKeydown: g
|
|
1568
1569
|
}, [
|
|
1569
|
-
|
|
1570
|
+
O(Dt, {
|
|
1570
1571
|
id: u.value,
|
|
1571
1572
|
modelValue: l.value,
|
|
1572
1573
|
"onUpdate:modelValue": b[0] || (b[0] = (S) => l.value = S),
|
|
@@ -1578,8 +1579,8 @@ const sn = {
|
|
|
1578
1579
|
variant: "outlined",
|
|
1579
1580
|
onFocus: b[1] || (b[1] = (S) => s.value = !0)
|
|
1580
1581
|
}, {
|
|
1581
|
-
right:
|
|
1582
|
-
|
|
1582
|
+
right: _e(() => [
|
|
1583
|
+
O(X, {
|
|
1583
1584
|
class: F(R.value),
|
|
1584
1585
|
"aria-hidden": "true",
|
|
1585
1586
|
color: "light",
|
|
@@ -1597,21 +1598,21 @@ const sn = {
|
|
|
1597
1598
|
color: "light",
|
|
1598
1599
|
name: "loading"
|
|
1599
1600
|
})) : z("", !0),
|
|
1600
|
-
|
|
1601
|
-
(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", {
|
|
1602
1603
|
key: S.value || k,
|
|
1603
1604
|
onClick: (B) => f(S)
|
|
1604
1605
|
}, [
|
|
1605
|
-
|
|
1606
|
+
O(Vn, {
|
|
1606
1607
|
"search-term": l.value,
|
|
1607
1608
|
text: S.label
|
|
1608
1609
|
}, null, 8, ["search-term", "text"])
|
|
1609
1610
|
], 8, Zn))), 128))
|
|
1610
|
-
])) : 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)
|
|
1611
1612
|
])) : z("", !0)
|
|
1612
1613
|
], 34));
|
|
1613
1614
|
}
|
|
1614
|
-
}),
|
|
1615
|
+
}), Cr = /* @__PURE__ */ $(An, [["__scopeId", "data-v-89f397a9"]]), Dn = { class: "badge-text" }, Tn = /* @__PURE__ */ I({
|
|
1615
1616
|
name: "CmcBadgePill",
|
|
1616
1617
|
__name: "CmcBadgePill",
|
|
1617
1618
|
props: {
|
|
@@ -1620,7 +1621,7 @@ const sn = {
|
|
|
1620
1621
|
variant: { default: "default" }
|
|
1621
1622
|
},
|
|
1622
1623
|
setup(e) {
|
|
1623
|
-
const n = e, t =
|
|
1624
|
+
const n = e, t = x(() => ({
|
|
1624
1625
|
"badge-pill": !0,
|
|
1625
1626
|
[`badge-pill--${n.status}`]: !0,
|
|
1626
1627
|
[`badge-pill--${n.variant}`]: !0
|
|
@@ -1628,10 +1629,10 @@ const sn = {
|
|
|
1628
1629
|
return (o, r) => (L(), h("div", {
|
|
1629
1630
|
class: F(t.value)
|
|
1630
1631
|
}, [
|
|
1631
|
-
P("span",
|
|
1632
|
+
P("span", Dn, V(e.label), 1)
|
|
1632
1633
|
], 2));
|
|
1633
1634
|
}
|
|
1634
|
-
}),
|
|
1635
|
+
}), Lr = /* @__PURE__ */ $(Tn, [["__scopeId", "data-v-2eabf0ca"]]), Tt = {
|
|
1635
1636
|
medium: "medium"
|
|
1636
1637
|
}, Gn = /* @__PURE__ */ I({
|
|
1637
1638
|
name: "CmcButtonGroup",
|
|
@@ -1640,7 +1641,7 @@ const sn = {
|
|
|
1640
1641
|
gap: { default: Tt.medium }
|
|
1641
1642
|
},
|
|
1642
1643
|
setup(e) {
|
|
1643
|
-
const n = e, t =
|
|
1644
|
+
const n = e, t = x(() => ({
|
|
1644
1645
|
"button-group": !0,
|
|
1645
1646
|
[`button-group-gap--${n.gap}`]: !0
|
|
1646
1647
|
}));
|
|
@@ -1946,7 +1947,7 @@ const sn = {
|
|
|
1946
1947
|
gold: "gold",
|
|
1947
1948
|
platinum: "platinum",
|
|
1948
1949
|
unranked: "unranked"
|
|
1949
|
-
}, 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({
|
|
1950
1951
|
name: "CmcCertificate",
|
|
1951
1952
|
__name: "CmcCertificate",
|
|
1952
1953
|
props: {
|
|
@@ -1987,7 +1988,7 @@ const sn = {
|
|
|
1987
1988
|
[U.shareholders]: Wn,
|
|
1988
1989
|
[U.students]: qn,
|
|
1989
1990
|
[U.suppliers]: Xn
|
|
1990
|
-
}, r =
|
|
1991
|
+
}, r = x(() => o[n.primaryType]), l = x(() => {
|
|
1991
1992
|
let i = Bn;
|
|
1992
1993
|
if (n.primaryType === U.employees && n.rank !== oe.unranked) {
|
|
1993
1994
|
i = i.replace(/separator-2"/g, 'separator-2" style="opacity:0"').replace(
|
|
@@ -2040,7 +2041,7 @@ const n1 = /* @__PURE__ */ $(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
|
|
|
2040
2041
|
}),
|
|
2041
2042
|
emits: ["update:modelValue"],
|
|
2042
2043
|
setup(e) {
|
|
2043
|
-
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(() => ({
|
|
2044
2045
|
checkbox: !0,
|
|
2045
2046
|
"checkbox--disabled": n.disabled,
|
|
2046
2047
|
"checkbox--required": n.required
|
|
@@ -2064,7 +2065,7 @@ const n1 = /* @__PURE__ */ $(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
|
|
|
2064
2065
|
})) : z("", !0)
|
|
2065
2066
|
], 2));
|
|
2066
2067
|
}
|
|
2067
|
-
}),
|
|
2068
|
+
}), yr = /* @__PURE__ */ $(r1, [["__scopeId", "data-v-b4e66a74"]]), Y = {
|
|
2068
2069
|
h1: "h1",
|
|
2069
2070
|
h2: "h2",
|
|
2070
2071
|
h3: "h3",
|
|
@@ -2079,41 +2080,41 @@ const n1 = /* @__PURE__ */ $(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
|
|
|
2079
2080
|
margin: { type: Boolean, default: !0 }
|
|
2080
2081
|
},
|
|
2081
2082
|
setup(e) {
|
|
2082
|
-
const n = e, t =
|
|
2083
|
+
const n = e, t = x(() => ({
|
|
2083
2084
|
heading: !0,
|
|
2084
2085
|
[`heading-${n.level}`]: !0,
|
|
2085
2086
|
"heading--no-margin": !n.margin
|
|
2086
2087
|
}));
|
|
2087
2088
|
return (o, r) => (L(), h(Z, null, [
|
|
2088
|
-
|
|
2089
|
+
D(Y).h1 === n.level ? (L(), h("h1", {
|
|
2089
2090
|
key: 0,
|
|
2090
2091
|
class: F(t.value),
|
|
2091
2092
|
style: re({ color: n.color })
|
|
2092
2093
|
}, [
|
|
2093
2094
|
T(o.$slots, "default", {}, void 0, !0)
|
|
2094
2095
|
], 6)) : z("", !0),
|
|
2095
|
-
|
|
2096
|
+
D(Y).h2 === n.level ? (L(), h("h2", {
|
|
2096
2097
|
key: 1,
|
|
2097
2098
|
class: F(t.value),
|
|
2098
2099
|
style: re({ color: n.color })
|
|
2099
2100
|
}, [
|
|
2100
2101
|
T(o.$slots, "default", {}, void 0, !0)
|
|
2101
2102
|
], 6)) : z("", !0),
|
|
2102
|
-
|
|
2103
|
+
D(Y).h3 === n.level ? (L(), h("h3", {
|
|
2103
2104
|
key: 2,
|
|
2104
2105
|
class: F(t.value),
|
|
2105
2106
|
style: re({ color: n.color })
|
|
2106
2107
|
}, [
|
|
2107
2108
|
T(o.$slots, "default", {}, void 0, !0)
|
|
2108
2109
|
], 6)) : z("", !0),
|
|
2109
|
-
|
|
2110
|
+
D(Y).h4 === n.level ? (L(), h("h4", {
|
|
2110
2111
|
key: 3,
|
|
2111
2112
|
class: F(t.value),
|
|
2112
2113
|
style: re({ color: n.color })
|
|
2113
2114
|
}, [
|
|
2114
2115
|
T(o.$slots, "default", {}, void 0, !0)
|
|
2115
2116
|
], 6)) : z("", !0),
|
|
2116
|
-
|
|
2117
|
+
D(Y).h5 === n.level ? (L(), h("h5", {
|
|
2117
2118
|
key: 4,
|
|
2118
2119
|
class: F(t.value),
|
|
2119
2120
|
style: re({ color: n.color })
|
|
@@ -2126,7 +2127,7 @@ const n1 = /* @__PURE__ */ $(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
|
|
|
2126
2127
|
name: "CmcLoading",
|
|
2127
2128
|
__name: "CmcLoading",
|
|
2128
2129
|
setup(e) {
|
|
2129
|
-
const n =
|
|
2130
|
+
const n = x(() => s1 + "img/loader-cmc.gif"), t = x(() => ({
|
|
2130
2131
|
loading: !0
|
|
2131
2132
|
}));
|
|
2132
2133
|
return (o, r) => (L(), h("img", {
|
|
@@ -2135,7 +2136,7 @@ const n1 = /* @__PURE__ */ $(Jn, [["render", t1]]), o1 = ["id", "disabled", "req
|
|
|
2135
2136
|
src: n.value
|
|
2136
2137
|
}, null, 10, a1));
|
|
2137
2138
|
}
|
|
2138
|
-
}),
|
|
2139
|
+
}), vr = /* @__PURE__ */ $(u1, [["__scopeId", "data-v-0c671cb3"]]), c1 = {}, g1 = {
|
|
2139
2140
|
viewBox: "0 0 4498 1782",
|
|
2140
2141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2141
2142
|
preserveAspectRatio: "xMidYMid meet"
|
|
@@ -2163,16 +2164,16 @@ function v1(e, n) {
|
|
|
2163
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)
|
|
2164
2165
|
])]);
|
|
2165
2166
|
}
|
|
2166
|
-
const
|
|
2167
|
+
const w1 = /* @__PURE__ */ $(h1, [["render", v1]]), x1 = {}, _1 = {
|
|
2167
2168
|
viewBox: "0 0 4498 1782",
|
|
2168
2169
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2169
2170
|
};
|
|
2170
2171
|
function S1(e, n) {
|
|
2171
|
-
return L(), h("svg",
|
|
2172
|
+
return L(), h("svg", _1, [...n[0] || (n[0] = [
|
|
2172
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)
|
|
2173
2174
|
])]);
|
|
2174
2175
|
}
|
|
2175
|
-
const M1 = /* @__PURE__ */ $(
|
|
2176
|
+
const M1 = /* @__PURE__ */ $(x1, [["render", S1]]), R1 = {
|
|
2176
2177
|
color: "color"
|
|
2177
2178
|
}, b1 = {
|
|
2178
2179
|
fr_FR: "fr_FR"
|
|
@@ -2181,7 +2182,7 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2181
2182
|
}, I1 = {
|
|
2182
2183
|
fr_FR_color: f1,
|
|
2183
2184
|
fr_FR_white: L1,
|
|
2184
|
-
en_US_color:
|
|
2185
|
+
en_US_color: w1,
|
|
2185
2186
|
en_US_white: M1
|
|
2186
2187
|
}, F1 = ["href"], P1 = /* @__PURE__ */ I({
|
|
2187
2188
|
name: "CmcLogo",
|
|
@@ -2194,10 +2195,10 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2194
2195
|
},
|
|
2195
2196
|
emits: ["click"],
|
|
2196
2197
|
setup(e, { emit: n }) {
|
|
2197
|
-
const t = e, o = n, r =
|
|
2198
|
+
const t = e, o = n, r = x(() => ({
|
|
2198
2199
|
"cmc-logo": !0,
|
|
2199
2200
|
[`cmc-logo--${t.size}`]: !0
|
|
2200
|
-
})), l =
|
|
2201
|
+
})), l = x(() => `${t.language}_${t.variant}`), i = x(() => I1[l.value]), s = () => {
|
|
2201
2202
|
o("click");
|
|
2202
2203
|
};
|
|
2203
2204
|
return (a, u) => (L(), h("a", {
|
|
@@ -2211,7 +2212,7 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2211
2212
|
}), wr = /* @__PURE__ */ $(P1, [["__scopeId", "data-v-cc384ddd"]]), z1 = { class: "pagination" }, V1 = ["disabled"], k1 = ["onClick"], E1 = {
|
|
2212
2213
|
key: 1,
|
|
2213
2214
|
class: "pagination__ellipsis"
|
|
2214
|
-
}, Z1 = ["disabled"],
|
|
2215
|
+
}, Z1 = ["disabled"], O1 = 2, A1 = /* @__PURE__ */ I({
|
|
2215
2216
|
name: "CmcPagination",
|
|
2216
2217
|
__name: "CmcPagination",
|
|
2217
2218
|
props: {
|
|
@@ -2230,29 +2231,29 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2230
2231
|
return Math.max(1, Math.min(t.currentPage, r()));
|
|
2231
2232
|
}
|
|
2232
2233
|
function i() {
|
|
2233
|
-
return t.visibleRange ??
|
|
2234
|
+
return t.visibleRange ?? O1;
|
|
2234
2235
|
}
|
|
2235
|
-
const s =
|
|
2236
|
-
const d = r(),
|
|
2236
|
+
const s = x(() => {
|
|
2237
|
+
const d = r(), g = l(), p = i();
|
|
2237
2238
|
if (d <= 1) return [1];
|
|
2238
2239
|
const m = [];
|
|
2239
2240
|
if (m.push(1), d === 1) return m;
|
|
2240
|
-
let C = Math.max(2,
|
|
2241
|
+
let C = Math.max(2, g - p), y = Math.min(d - 1, g + p);
|
|
2241
2242
|
C > 2 && m.push("...");
|
|
2242
|
-
for (let
|
|
2243
|
-
|
|
2243
|
+
for (let _ = C; _ <= y; _++)
|
|
2244
|
+
_ !== 1 && _ !== d && m.push(_);
|
|
2244
2245
|
return y < d - 1 && m.push("..."), d > 1 && m.push(d), m;
|
|
2245
|
-
}), a =
|
|
2246
|
+
}), a = x(() => t.currentPage > 1), u = x(() => t.currentPage < r()), c = () => {
|
|
2246
2247
|
a.value && o("update:currentPage", t.currentPage - 1);
|
|
2247
2248
|
}, f = () => {
|
|
2248
2249
|
u.value && o("update:currentPage", t.currentPage + 1);
|
|
2249
2250
|
};
|
|
2250
|
-
return (d,
|
|
2251
|
+
return (d, g) => (L(), h("nav", z1, [
|
|
2251
2252
|
P("button", {
|
|
2252
2253
|
class: F(["pagination__page-button", { "is-invisible": !a.value }]),
|
|
2253
2254
|
disabled: !a.value,
|
|
2254
2255
|
"aria-label": "Page précédente",
|
|
2255
|
-
onClick:
|
|
2256
|
+
onClick: c
|
|
2256
2257
|
}, " ‹ ", 10, V1),
|
|
2257
2258
|
(L(!0), h(Z, null, H(s.value, (p, m) => (L(), h(Z, { key: m }, [
|
|
2258
2259
|
typeof p == "number" ? (L(), h("button", {
|
|
@@ -2269,11 +2270,11 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2269
2270
|
}, " › ", 10, Z1)
|
|
2270
2271
|
]));
|
|
2271
2272
|
}
|
|
2272
|
-
}),
|
|
2273
|
+
}), D1 = /* @__PURE__ */ $(A1, [["__scopeId", "data-v-8be37a19"]]), T1 = /* @__PURE__ */ I({
|
|
2273
2274
|
name: "CmcSearch",
|
|
2274
2275
|
__name: "CmcSearch",
|
|
2275
2276
|
props: /* @__PURE__ */ K({
|
|
2276
|
-
size: { default:
|
|
2277
|
+
size: { default: At.medium },
|
|
2277
2278
|
variant: { default: le.underline },
|
|
2278
2279
|
label: {},
|
|
2279
2280
|
placeholder: { default: "Rechercher..." }
|
|
@@ -2283,16 +2284,16 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2283
2284
|
}),
|
|
2284
2285
|
emits: ["update:modelValue"],
|
|
2285
2286
|
setup(e) {
|
|
2286
|
-
const n = e, t = te(e, "modelValue"), o =
|
|
2287
|
+
const n = e, t = te(e, "modelValue"), o = x(() => [
|
|
2287
2288
|
"search-bar",
|
|
2288
2289
|
`search-bar--${n.size}`,
|
|
2289
2290
|
n.variant ? `search-bar--${n.variant}` : null
|
|
2290
|
-
]), r = Me(), l =
|
|
2291
|
+
]), r = Me(), l = x(() => `cmc-search-${r}`);
|
|
2291
2292
|
return (i, s) => (L(), h("div", {
|
|
2292
2293
|
class: F(o.value),
|
|
2293
2294
|
role: "search"
|
|
2294
2295
|
}, [
|
|
2295
|
-
|
|
2296
|
+
O(Dt, {
|
|
2296
2297
|
class: "search-bar__input",
|
|
2297
2298
|
type: "search",
|
|
2298
2299
|
modelValue: t.value,
|
|
@@ -2303,8 +2304,8 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2303
2304
|
size: e.size,
|
|
2304
2305
|
variant: e.variant
|
|
2305
2306
|
}, {
|
|
2306
|
-
left:
|
|
2307
|
-
|
|
2307
|
+
left: _e(() => [
|
|
2308
|
+
O(X, {
|
|
2308
2309
|
"aria-hidden": "true",
|
|
2309
2310
|
class: "search-bar__icon",
|
|
2310
2311
|
color: "light",
|
|
@@ -2322,10 +2323,7 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2322
2323
|
key: 0,
|
|
2323
2324
|
value: "",
|
|
2324
2325
|
disabled: ""
|
|
2325
|
-
}, q1 = ["value", "disabled"], j1 = {
|
|
2326
|
-
key: 2,
|
|
2327
|
-
class: "select__error-wrapper"
|
|
2328
|
-
}, K1 = /* @__PURE__ */ I({
|
|
2326
|
+
}, q1 = ["value", "disabled"], j1 = /* @__PURE__ */ I({
|
|
2329
2327
|
name: "CmcSelect",
|
|
2330
2328
|
__name: "CmcSelect",
|
|
2331
2329
|
props: /* @__PURE__ */ K({
|
|
@@ -2335,7 +2333,7 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2335
2333
|
placeholder: {},
|
|
2336
2334
|
required: { type: Boolean, default: !1 },
|
|
2337
2335
|
disabled: { type: Boolean, default: !1 },
|
|
2338
|
-
|
|
2336
|
+
invalid: { type: Boolean, default: !1 },
|
|
2339
2337
|
variant: { default: pe.outlined },
|
|
2340
2338
|
description: {},
|
|
2341
2339
|
width: {}
|
|
@@ -2345,19 +2343,19 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2345
2343
|
}),
|
|
2346
2344
|
emits: ["update:modelValue"],
|
|
2347
2345
|
setup(e) {
|
|
2348
|
-
const n = e, t = te(e, "modelValue"), o =
|
|
2346
|
+
const n = e, t = te(e, "modelValue"), o = x(() => ({
|
|
2349
2347
|
select: !0,
|
|
2350
2348
|
"select--disabled": n.disabled,
|
|
2351
|
-
"select--error":
|
|
2349
|
+
"select--error": n.invalid,
|
|
2352
2350
|
"select--outlined": n.variant === pe.outlined,
|
|
2353
2351
|
"select--underline": n.variant === pe.underline,
|
|
2354
2352
|
"select--filled": n.variant === pe.filled
|
|
2355
|
-
})),
|
|
2353
|
+
})), r = x(() => ({
|
|
2356
2354
|
width: n.width ? `${n.width}px` : "100%"
|
|
2357
2355
|
}));
|
|
2358
|
-
return (
|
|
2359
|
-
class: F(
|
|
2360
|
-
style: re(
|
|
2356
|
+
return (l, i) => (L(), h("div", {
|
|
2357
|
+
class: F(o.value),
|
|
2358
|
+
style: re(r.value)
|
|
2361
2359
|
}, [
|
|
2362
2360
|
e.label ? (L(), h("label", {
|
|
2363
2361
|
key: 0,
|
|
@@ -2367,44 +2365,43 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2367
2365
|
n.description ? (L(), h("div", H1, V(n.description), 1)) : z("", !0),
|
|
2368
2366
|
P("div", B1, [
|
|
2369
2367
|
Se(P("select", {
|
|
2370
|
-
"onUpdate:modelValue":
|
|
2368
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
2371
2369
|
id: e.id,
|
|
2372
2370
|
required: e.required,
|
|
2373
2371
|
disabled: e.disabled,
|
|
2374
|
-
"aria-invalid":
|
|
2372
|
+
"aria-invalid": e.invalid
|
|
2375
2373
|
}, [
|
|
2376
2374
|
e.placeholder ? (L(), h("option", U1, V(e.placeholder), 1)) : z("", !0),
|
|
2377
|
-
(L(!0), h(Z, null, H(e.options, (
|
|
2378
|
-
key:
|
|
2379
|
-
value:
|
|
2380
|
-
disabled:
|
|
2381
|
-
}, 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))
|
|
2382
2380
|
], 8, N1), [
|
|
2383
2381
|
[n0, t.value]
|
|
2384
2382
|
]),
|
|
2385
|
-
|
|
2383
|
+
O(X, {
|
|
2386
2384
|
"aria-hidden": "true",
|
|
2387
2385
|
class: "select__icon_chevron",
|
|
2388
2386
|
color: "light",
|
|
2389
2387
|
name: "chevronDown"
|
|
2390
2388
|
})
|
|
2391
|
-
])
|
|
2392
|
-
o.value ? (L(), h("div", j1, V(e.errorMessage), 1)) : z("", !0)
|
|
2389
|
+
])
|
|
2393
2390
|
], 6));
|
|
2394
2391
|
}
|
|
2395
|
-
}),
|
|
2392
|
+
}), _r = /* @__PURE__ */ $(j1, [["__scopeId", "data-v-9ffe6aa3"]]), K1 = {
|
|
2396
2393
|
success: "success",
|
|
2397
2394
|
danger: "danger",
|
|
2398
2395
|
warning: "warning"
|
|
2399
|
-
},
|
|
2396
|
+
}, X1 = { class: "status__label" }, Q1 = /* @__PURE__ */ I({
|
|
2400
2397
|
name: "CmcStatus",
|
|
2401
2398
|
__name: "CmcStatus",
|
|
2402
2399
|
props: {
|
|
2403
2400
|
text: {},
|
|
2404
|
-
status: { default:
|
|
2401
|
+
status: { default: K1.success }
|
|
2405
2402
|
},
|
|
2406
2403
|
setup(e) {
|
|
2407
|
-
const n = e, t =
|
|
2404
|
+
const n = e, t = x(() => ({
|
|
2408
2405
|
status: !0,
|
|
2409
2406
|
[`status--${n.status}`]: !0
|
|
2410
2407
|
}));
|
|
@@ -2412,10 +2409,10 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2412
2409
|
class: F(t.value)
|
|
2413
2410
|
}, [
|
|
2414
2411
|
r[0] || (r[0] = P("span", { class: "status__dot" }, null, -1)),
|
|
2415
|
-
P("span",
|
|
2412
|
+
P("span", X1, V(n.text), 1)
|
|
2416
2413
|
], 2));
|
|
2417
2414
|
}
|
|
2418
|
-
}),
|
|
2415
|
+
}), Sr = /* @__PURE__ */ $(Q1, [["__scopeId", "data-v-9ebfdda4"]]);
|
|
2419
2416
|
/**
|
|
2420
2417
|
* table-core
|
|
2421
2418
|
*
|
|
@@ -2429,7 +2426,7 @@ const M1 = /* @__PURE__ */ $(w1, [["render", S1]]), R1 = {
|
|
|
2429
2426
|
function j(e, n) {
|
|
2430
2427
|
return typeof e == "function" ? e(n) : e;
|
|
2431
2428
|
}
|
|
2432
|
-
function
|
|
2429
|
+
function A(e, n) {
|
|
2433
2430
|
return (t) => {
|
|
2434
2431
|
n.setState((o) => ({
|
|
2435
2432
|
...o,
|
|
@@ -2440,10 +2437,10 @@ function D(e, n) {
|
|
|
2440
2437
|
function Ie(e) {
|
|
2441
2438
|
return e instanceof Function;
|
|
2442
2439
|
}
|
|
2443
|
-
function
|
|
2440
|
+
function W1(e) {
|
|
2444
2441
|
return Array.isArray(e) && e.every((n) => typeof n == "number");
|
|
2445
2442
|
}
|
|
2446
|
-
function
|
|
2443
|
+
function Y1(e, n) {
|
|
2447
2444
|
const t = [], o = (r) => {
|
|
2448
2445
|
r.forEach((l) => {
|
|
2449
2446
|
t.push(l);
|
|
@@ -2459,17 +2456,17 @@ function v(e, n, t) {
|
|
|
2459
2456
|
let i;
|
|
2460
2457
|
t.key && t.debug && (i = Date.now());
|
|
2461
2458
|
const s = e(l);
|
|
2462
|
-
if (!(s.length !== o.length || s.some((
|
|
2459
|
+
if (!(s.length !== o.length || s.some((c, f) => o[f] !== c)))
|
|
2463
2460
|
return r;
|
|
2464
2461
|
o = s;
|
|
2465
2462
|
let u;
|
|
2466
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()) {
|
|
2467
|
-
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) => {
|
|
2468
2465
|
for (p = String(p); p.length < m; )
|
|
2469
2466
|
p = " " + p;
|
|
2470
2467
|
return p;
|
|
2471
2468
|
};
|
|
2472
|
-
console.info(`%c⏱ ${
|
|
2469
|
+
console.info(`%c⏱ ${g(f, 5)} /${g(c, 5)} ms`, `
|
|
2473
2470
|
font-size: .6rem;
|
|
2474
2471
|
font-weight: bold;
|
|
2475
2472
|
color: hsl(${Math.max(0, Math.min(120 - 120 * d, 120))}deg 100% 31%);`, t?.key);
|
|
@@ -2477,7 +2474,7 @@ function v(e, n, t) {
|
|
|
2477
2474
|
return r;
|
|
2478
2475
|
};
|
|
2479
2476
|
}
|
|
2480
|
-
function
|
|
2477
|
+
function w(e, n, t, o) {
|
|
2481
2478
|
return {
|
|
2482
2479
|
debug: () => {
|
|
2483
2480
|
var r;
|
|
@@ -2487,7 +2484,7 @@ function _(e, n, t, o) {
|
|
|
2487
2484
|
onChange: o
|
|
2488
2485
|
};
|
|
2489
2486
|
}
|
|
2490
|
-
function
|
|
2487
|
+
function J1(e, n, t, o) {
|
|
2491
2488
|
const r = () => {
|
|
2492
2489
|
var i;
|
|
2493
2490
|
return (i = l.getValue()) != null ? i : e.options.renderFallbackValue;
|
|
@@ -2504,47 +2501,47 @@ function eo(e, n, t, o) {
|
|
|
2504
2501
|
cell: u,
|
|
2505
2502
|
getValue: u.getValue,
|
|
2506
2503
|
renderValue: u.renderValue
|
|
2507
|
-
}),
|
|
2504
|
+
}), w(e.options, "debugCells", "cell.getContext"))
|
|
2508
2505
|
};
|
|
2509
2506
|
return e._features.forEach((i) => {
|
|
2510
2507
|
i.createCell == null || i.createCell(l, t, n, e);
|
|
2511
2508
|
}, {}), l;
|
|
2512
2509
|
}
|
|
2513
|
-
function
|
|
2510
|
+
function eo(e, n, t, o) {
|
|
2514
2511
|
var r, l;
|
|
2515
2512
|
const s = {
|
|
2516
2513
|
...e._getDefaultColumnDef(),
|
|
2517
2514
|
...n
|
|
2518
2515
|
}, a = s.accessorKey;
|
|
2519
|
-
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,
|
|
2520
|
-
if (s.accessorFn ?
|
|
2521
|
-
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;
|
|
2522
2519
|
for (const m of a.split(".")) {
|
|
2523
2520
|
var p;
|
|
2524
|
-
|
|
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.`);
|
|
2525
2522
|
}
|
|
2526
|
-
return
|
|
2527
|
-
} :
|
|
2523
|
+
return g;
|
|
2524
|
+
} : c = (d) => d[s.accessorKey]), !u)
|
|
2528
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();
|
|
2529
2526
|
let f = {
|
|
2530
2527
|
id: `${String(u)}`,
|
|
2531
|
-
accessorFn:
|
|
2528
|
+
accessorFn: c,
|
|
2532
2529
|
parent: o,
|
|
2533
2530
|
depth: t,
|
|
2534
2531
|
columnDef: s,
|
|
2535
2532
|
columns: [],
|
|
2536
2533
|
getFlatColumns: v(() => [!0], () => {
|
|
2537
2534
|
var d;
|
|
2538
|
-
return [f, ...(d = f.columns) == null ? void 0 : d.flatMap((
|
|
2539
|
-
},
|
|
2535
|
+
return [f, ...(d = f.columns) == null ? void 0 : d.flatMap((g) => g.getFlatColumns())];
|
|
2536
|
+
}, w(e.options, "debugColumns", "column.getFlatColumns")),
|
|
2540
2537
|
getLeafColumns: v(() => [e._getOrderColumnsFn()], (d) => {
|
|
2541
|
-
var
|
|
2542
|
-
if ((
|
|
2538
|
+
var g;
|
|
2539
|
+
if ((g = f.columns) != null && g.length) {
|
|
2543
2540
|
let p = f.columns.flatMap((m) => m.getLeafColumns());
|
|
2544
2541
|
return d(p);
|
|
2545
2542
|
}
|
|
2546
2543
|
return [f];
|
|
2547
|
-
},
|
|
2544
|
+
}, w(e.options, "debugColumns", "column.getLeafColumns"))
|
|
2548
2545
|
};
|
|
2549
2546
|
for (const d of e._features)
|
|
2550
2547
|
d.createColumn == null || d.createColumn(f, e);
|
|
@@ -2580,74 +2577,74 @@ function ht(e, n, t) {
|
|
|
2580
2577
|
i.createHeader == null || i.createHeader(l, e);
|
|
2581
2578
|
}), l;
|
|
2582
2579
|
}
|
|
2583
|
-
const
|
|
2580
|
+
const to = {
|
|
2584
2581
|
createTable: (e) => {
|
|
2585
2582
|
e.getHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => {
|
|
2586
2583
|
var l, i;
|
|
2587
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)));
|
|
2588
2585
|
return me(n, [...s, ...u, ...a], e);
|
|
2589
|
-
},
|
|
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) => {
|
|
2590
2587
|
var r;
|
|
2591
2588
|
const l = (r = o?.map((i) => t.find((s) => s.id === i)).filter(Boolean)) != null ? r : [];
|
|
2592
2589
|
return me(n, l, e, "left");
|
|
2593
|
-
},
|
|
2590
|
+
}, w(e.options, E, "getLeftHeaderGroups")), e.getRightHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, o) => {
|
|
2594
2591
|
var r;
|
|
2595
2592
|
const l = (r = o?.map((i) => t.find((s) => s.id === i)).filter(Boolean)) != null ? r : [];
|
|
2596
2593
|
return me(n, l, e, "right");
|
|
2597
|
-
},
|
|
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) => {
|
|
2598
2595
|
var o;
|
|
2599
2596
|
return !((o = t.subHeaders) != null && o.length);
|
|
2600
|
-
}),
|
|
2597
|
+
}), w(e.options, E, "getCenterLeafHeaders")), e.getLeftLeafHeaders = v(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
|
|
2601
2598
|
var o;
|
|
2602
2599
|
return !((o = t.subHeaders) != null && o.length);
|
|
2603
|
-
}),
|
|
2600
|
+
}), w(e.options, E, "getLeftLeafHeaders")), e.getRightLeafHeaders = v(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
|
|
2604
2601
|
var o;
|
|
2605
2602
|
return !((o = t.subHeaders) != null && o.length);
|
|
2606
|
-
}),
|
|
2603
|
+
}), w(e.options, E, "getRightLeafHeaders")), e.getLeafHeaders = v(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, o) => {
|
|
2607
2604
|
var r, l, i, s, a, u;
|
|
2608
|
-
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((
|
|
2609
|
-
},
|
|
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"));
|
|
2610
2607
|
}
|
|
2611
2608
|
};
|
|
2612
2609
|
function me(e, n, t, o) {
|
|
2613
2610
|
var r, l;
|
|
2614
2611
|
let i = 0;
|
|
2615
|
-
const s = function(d,
|
|
2616
|
-
|
|
2612
|
+
const s = function(d, g) {
|
|
2613
|
+
g === void 0 && (g = 1), i = Math.max(i, g), d.filter((p) => p.getIsVisible()).forEach((p) => {
|
|
2617
2614
|
var m;
|
|
2618
|
-
(m = p.columns) != null && m.length && s(p.columns,
|
|
2615
|
+
(m = p.columns) != null && m.length && s(p.columns, g + 1);
|
|
2619
2616
|
}, 0);
|
|
2620
2617
|
};
|
|
2621
2618
|
s(e);
|
|
2622
2619
|
let a = [];
|
|
2623
|
-
const u = (d,
|
|
2620
|
+
const u = (d, g) => {
|
|
2624
2621
|
const p = {
|
|
2625
|
-
depth:
|
|
2626
|
-
id: [o, `${
|
|
2622
|
+
depth: g,
|
|
2623
|
+
id: [o, `${g}`].filter(Boolean).join("_"),
|
|
2627
2624
|
headers: []
|
|
2628
2625
|
}, m = [];
|
|
2629
2626
|
d.forEach((C) => {
|
|
2630
|
-
const y = [...m].reverse()[0],
|
|
2627
|
+
const y = [...m].reverse()[0], _ = C.column.depth === p.depth;
|
|
2631
2628
|
let R, M = !1;
|
|
2632
|
-
if (
|
|
2629
|
+
if (_ && C.column.parent ? R = C.column.parent : (R = C.column, M = !0), y && y?.column === R)
|
|
2633
2630
|
y.subHeaders.push(C);
|
|
2634
2631
|
else {
|
|
2635
2632
|
const b = ht(t, R, {
|
|
2636
|
-
id: [o,
|
|
2633
|
+
id: [o, g, R.id, C?.id].filter(Boolean).join("_"),
|
|
2637
2634
|
isPlaceholder: M,
|
|
2638
2635
|
placeholderId: M ? `${m.filter((S) => S.column === R).length}` : void 0,
|
|
2639
|
-
depth:
|
|
2636
|
+
depth: g,
|
|
2640
2637
|
index: m.length
|
|
2641
2638
|
});
|
|
2642
2639
|
b.subHeaders.push(C), m.push(b);
|
|
2643
2640
|
}
|
|
2644
2641
|
p.headers.push(C), C.headerGroup = p;
|
|
2645
|
-
}), a.push(p),
|
|
2646
|
-
},
|
|
2642
|
+
}), a.push(p), g > 0 && u(m, g - 1);
|
|
2643
|
+
}, c = n.map((d, g) => ht(t, d, {
|
|
2647
2644
|
depth: i,
|
|
2648
|
-
index:
|
|
2645
|
+
index: g
|
|
2649
2646
|
}));
|
|
2650
|
-
u(
|
|
2647
|
+
u(c, i - 1), a.reverse();
|
|
2651
2648
|
const f = (d) => d.filter((p) => p.column.getIsVisible()).map((p) => {
|
|
2652
2649
|
let m = 0, C = 0, y = [0];
|
|
2653
2650
|
p.subHeaders && p.subHeaders.length ? (y = [], f(p.subHeaders).forEach((R) => {
|
|
@@ -2657,15 +2654,15 @@ function me(e, n, t, o) {
|
|
|
2657
2654
|
} = R;
|
|
2658
2655
|
m += M, y.push(b);
|
|
2659
2656
|
})) : m = 1;
|
|
2660
|
-
const
|
|
2661
|
-
return C = C +
|
|
2657
|
+
const _ = Math.min(...y);
|
|
2658
|
+
return C = C + _, p.colSpan = m, p.rowSpan = C, {
|
|
2662
2659
|
colSpan: m,
|
|
2663
2660
|
rowSpan: C
|
|
2664
2661
|
};
|
|
2665
2662
|
});
|
|
2666
2663
|
return f((r = (l = a[0]) == null ? void 0 : l.headers) != null ? r : []), a;
|
|
2667
2664
|
}
|
|
2668
|
-
const
|
|
2665
|
+
const no = (e, n, t, o, r, l, i) => {
|
|
2669
2666
|
let s = {
|
|
2670
2667
|
id: n,
|
|
2671
2668
|
index: o,
|
|
@@ -2693,26 +2690,26 @@ const oo = (e, n, t, o, r, l, i) => {
|
|
|
2693
2690
|
return (u = s.getValue(a)) != null ? u : e.options.renderFallbackValue;
|
|
2694
2691
|
},
|
|
2695
2692
|
subRows: [],
|
|
2696
|
-
getLeafRows: () =>
|
|
2693
|
+
getLeafRows: () => Y1(s.subRows, (a) => a.subRows),
|
|
2697
2694
|
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
|
2698
2695
|
getParentRows: () => {
|
|
2699
2696
|
let a = [], u = s;
|
|
2700
2697
|
for (; ; ) {
|
|
2701
|
-
const
|
|
2702
|
-
if (!
|
|
2703
|
-
a.push(
|
|
2698
|
+
const c = u.getParentRow();
|
|
2699
|
+
if (!c) break;
|
|
2700
|
+
a.push(c), u = c;
|
|
2704
2701
|
}
|
|
2705
2702
|
return a.reverse();
|
|
2706
2703
|
},
|
|
2707
|
-
getAllCells: v(() => [e.getAllLeafColumns()], (a) => a.map((u) =>
|
|
2708
|
-
_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"))
|
|
2709
2706
|
};
|
|
2710
2707
|
for (let a = 0; a < e._features.length; a++) {
|
|
2711
2708
|
const u = e._features[a];
|
|
2712
2709
|
u == null || u.createRow == null || u.createRow(s, e);
|
|
2713
2710
|
}
|
|
2714
2711
|
return s;
|
|
2715
|
-
},
|
|
2712
|
+
}, oo = {
|
|
2716
2713
|
createColumn: (e, n) => {
|
|
2717
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 = () => {
|
|
2718
2715
|
if (e._getFacetedMinMaxValues)
|
|
@@ -2782,7 +2779,7 @@ const q = {
|
|
|
2782
2779
|
function G(e) {
|
|
2783
2780
|
return e == null || e === "";
|
|
2784
2781
|
}
|
|
2785
|
-
const
|
|
2782
|
+
const ro = {
|
|
2786
2783
|
getDefaultColumnDef: () => ({
|
|
2787
2784
|
filterFn: "auto"
|
|
2788
2785
|
}),
|
|
@@ -2791,7 +2788,7 @@ const lo = {
|
|
|
2791
2788
|
...e
|
|
2792
2789
|
}),
|
|
2793
2790
|
getDefaultOptions: (e) => ({
|
|
2794
|
-
onColumnFiltersChange:
|
|
2791
|
+
onColumnFiltersChange: A("columnFilters", e),
|
|
2795
2792
|
filterFromLeafRows: !1,
|
|
2796
2793
|
maxLeafRowFilterDepth: 100
|
|
2797
2794
|
}),
|
|
@@ -2816,10 +2813,10 @@ const lo = {
|
|
|
2816
2813
|
return (t = (o = n.getState().columnFilters) == null ? void 0 : o.findIndex((r) => r.id === e.id)) != null ? t : -1;
|
|
2817
2814
|
}, e.setFilterValue = (t) => {
|
|
2818
2815
|
n.setColumnFilters((o) => {
|
|
2819
|
-
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);
|
|
2820
2817
|
if (yt(r, i, e)) {
|
|
2821
2818
|
var s;
|
|
2822
|
-
return (s = o?.filter((
|
|
2819
|
+
return (s = o?.filter((c) => c.id !== e.id)) != null ? s : [];
|
|
2823
2820
|
}
|
|
2824
2821
|
const a = {
|
|
2825
2822
|
id: e.id,
|
|
@@ -2827,7 +2824,7 @@ const lo = {
|
|
|
2827
2824
|
};
|
|
2828
2825
|
if (l) {
|
|
2829
2826
|
var u;
|
|
2830
|
-
return (u = o?.map((
|
|
2827
|
+
return (u = o?.map((c) => c.id === e.id ? a : c)) != null ? u : [];
|
|
2831
2828
|
}
|
|
2832
2829
|
return o != null && o.length ? [...o, a] : [a];
|
|
2833
2830
|
});
|
|
@@ -2860,54 +2857,54 @@ const lo = {
|
|
|
2860
2857
|
function yt(e, n, t) {
|
|
2861
2858
|
return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
|
|
2862
2859
|
}
|
|
2863
|
-
const
|
|
2860
|
+
const lo = (e, n, t) => t.reduce((o, r) => {
|
|
2864
2861
|
const l = r.getValue(e);
|
|
2865
2862
|
return o + (typeof l == "number" ? l : 0);
|
|
2866
|
-
}, 0),
|
|
2863
|
+
}, 0), io = (e, n, t) => {
|
|
2867
2864
|
let o;
|
|
2868
2865
|
return t.forEach((r) => {
|
|
2869
2866
|
const l = r.getValue(e);
|
|
2870
2867
|
l != null && (o > l || o === void 0 && l >= l) && (o = l);
|
|
2871
2868
|
}), o;
|
|
2872
|
-
},
|
|
2869
|
+
}, so = (e, n, t) => {
|
|
2873
2870
|
let o;
|
|
2874
2871
|
return t.forEach((r) => {
|
|
2875
2872
|
const l = r.getValue(e);
|
|
2876
2873
|
l != null && (o < l || o === void 0 && l >= l) && (o = l);
|
|
2877
2874
|
}), o;
|
|
2878
|
-
},
|
|
2875
|
+
}, ao = (e, n, t) => {
|
|
2879
2876
|
let o, r;
|
|
2880
2877
|
return t.forEach((l) => {
|
|
2881
2878
|
const i = l.getValue(e);
|
|
2882
2879
|
i != null && (o === void 0 ? i >= i && (o = r = i) : (o > i && (o = i), r < i && (r = i)));
|
|
2883
2880
|
}), [o, r];
|
|
2884
|
-
},
|
|
2881
|
+
}, uo = (e, n) => {
|
|
2885
2882
|
let t = 0, o = 0;
|
|
2886
2883
|
if (n.forEach((r) => {
|
|
2887
2884
|
let l = r.getValue(e);
|
|
2888
2885
|
l != null && (l = +l) >= l && (++t, o += l);
|
|
2889
2886
|
}), t) return o / t;
|
|
2890
|
-
},
|
|
2887
|
+
}, co = (e, n) => {
|
|
2891
2888
|
if (!n.length)
|
|
2892
2889
|
return;
|
|
2893
2890
|
const t = n.map((l) => l.getValue(e));
|
|
2894
|
-
if (!
|
|
2891
|
+
if (!W1(t))
|
|
2895
2892
|
return;
|
|
2896
2893
|
if (t.length === 1)
|
|
2897
2894
|
return t[0];
|
|
2898
2895
|
const o = Math.floor(t.length / 2), r = t.sort((l, i) => l - i);
|
|
2899
2896
|
return t.length % 2 !== 0 ? r[o] : (r[o - 1] + r[o]) / 2;
|
|
2900
|
-
},
|
|
2901
|
-
sum:
|
|
2902
|
-
min:
|
|
2903
|
-
max:
|
|
2904
|
-
extent:
|
|
2905
|
-
mean:
|
|
2906
|
-
median:
|
|
2907
|
-
unique:
|
|
2908
|
-
uniqueCount:
|
|
2909
|
-
count:
|
|
2910
|
-
},
|
|
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 = {
|
|
2911
2908
|
getDefaultColumnDef: () => ({
|
|
2912
2909
|
aggregatedCell: (e) => {
|
|
2913
2910
|
var n, t;
|
|
@@ -2920,7 +2917,7 @@ const io = (e, n, t) => t.reduce((o, r) => {
|
|
|
2920
2917
|
...e
|
|
2921
2918
|
}),
|
|
2922
2919
|
getDefaultOptions: (e) => ({
|
|
2923
|
-
onGroupingChange:
|
|
2920
|
+
onGroupingChange: A("grouping", e),
|
|
2924
2921
|
groupedColumnMode: "reorder"
|
|
2925
2922
|
}),
|
|
2926
2923
|
createColumn: (e, n) => {
|
|
@@ -2974,22 +2971,22 @@ const io = (e, n, t) => t.reduce((o, r) => {
|
|
|
2974
2971
|
};
|
|
2975
2972
|
}
|
|
2976
2973
|
};
|
|
2977
|
-
function
|
|
2974
|
+
function Co(e, n, t) {
|
|
2978
2975
|
if (!(n != null && n.length) || !t)
|
|
2979
2976
|
return e;
|
|
2980
2977
|
const o = e.filter((l) => !n.includes(l.id));
|
|
2981
2978
|
return t === "remove" ? o : [...n.map((l) => e.find((i) => i.id === l)).filter(Boolean), ...o];
|
|
2982
2979
|
}
|
|
2983
|
-
const
|
|
2980
|
+
const Lo = {
|
|
2984
2981
|
getInitialState: (e) => ({
|
|
2985
2982
|
columnOrder: [],
|
|
2986
2983
|
...e
|
|
2987
2984
|
}),
|
|
2988
2985
|
getDefaultOptions: (e) => ({
|
|
2989
|
-
onColumnOrderChange:
|
|
2986
|
+
onColumnOrderChange: A("columnOrder", e)
|
|
2990
2987
|
}),
|
|
2991
2988
|
createColumn: (e, n) => {
|
|
2992
|
-
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) => {
|
|
2993
2990
|
var o;
|
|
2994
2991
|
return ((o = ge(n, t)[0]) == null ? void 0 : o.id) === e.id;
|
|
2995
2992
|
}, e.getIsLastColumn = (t) => {
|
|
@@ -3009,24 +3006,24 @@ const ho = {
|
|
|
3009
3006
|
else {
|
|
3010
3007
|
const i = [...n], s = [...r];
|
|
3011
3008
|
for (; s.length && i.length; ) {
|
|
3012
|
-
const a = i.shift(), u = s.findIndex((
|
|
3009
|
+
const a = i.shift(), u = s.findIndex((c) => c.id === a);
|
|
3013
3010
|
u > -1 && l.push(s.splice(u, 1)[0]);
|
|
3014
3011
|
}
|
|
3015
3012
|
l = [...l, ...s];
|
|
3016
3013
|
}
|
|
3017
|
-
return
|
|
3018
|
-
},
|
|
3014
|
+
return Co(l, t, o);
|
|
3015
|
+
}, w(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
3019
3016
|
}
|
|
3020
3017
|
}, ke = () => ({
|
|
3021
3018
|
left: [],
|
|
3022
3019
|
right: []
|
|
3023
|
-
}),
|
|
3020
|
+
}), ho = {
|
|
3024
3021
|
getInitialState: (e) => ({
|
|
3025
3022
|
columnPinning: ke(),
|
|
3026
3023
|
...e
|
|
3027
3024
|
}),
|
|
3028
3025
|
getDefaultOptions: (e) => ({
|
|
3029
|
-
onColumnPinningChange:
|
|
3026
|
+
onColumnPinningChange: A("columnPinning", e)
|
|
3030
3027
|
}),
|
|
3031
3028
|
createColumn: (e, n) => {
|
|
3032
3029
|
e.pin = (t) => {
|
|
@@ -3041,10 +3038,10 @@ const ho = {
|
|
|
3041
3038
|
};
|
|
3042
3039
|
}
|
|
3043
3040
|
if (t === "left") {
|
|
3044
|
-
var u,
|
|
3041
|
+
var u, c;
|
|
3045
3042
|
return {
|
|
3046
3043
|
left: [...((u = r?.left) != null ? u : []).filter((f) => !(o != null && o.includes(f))), ...o],
|
|
3047
|
-
right: ((
|
|
3044
|
+
right: ((c = r?.right) != null ? c : []).filter((f) => !(o != null && o.includes(f)))
|
|
3048
3045
|
};
|
|
3049
3046
|
}
|
|
3050
3047
|
return {
|
|
@@ -3071,13 +3068,13 @@ const ho = {
|
|
|
3071
3068
|
e.getCenterVisibleCells = v(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, o, r) => {
|
|
3072
3069
|
const l = [...o ?? [], ...r ?? []];
|
|
3073
3070
|
return t.filter((i) => !l.includes(i.column.id));
|
|
3074
|
-
},
|
|
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) => ({
|
|
3075
3072
|
...l,
|
|
3076
3073
|
position: "left"
|
|
3077
|
-
})),
|
|
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) => ({
|
|
3078
3075
|
...l,
|
|
3079
3076
|
position: "right"
|
|
3080
|
-
})),
|
|
3077
|
+
})), w(n.options, "debugRows", "getRightVisibleCells"));
|
|
3081
3078
|
},
|
|
3082
3079
|
createTable: (e) => {
|
|
3083
3080
|
e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
|
|
@@ -3091,13 +3088,13 @@ const ho = {
|
|
|
3091
3088
|
return !!((r = o.left) != null && r.length || (l = o.right) != null && l.length);
|
|
3092
3089
|
}
|
|
3093
3090
|
return !!((t = o[n]) != null && t.length);
|
|
3094
|
-
}, 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) => {
|
|
3095
3092
|
const r = [...t ?? [], ...o ?? []];
|
|
3096
3093
|
return n.filter((l) => !r.includes(l.id));
|
|
3097
|
-
},
|
|
3094
|
+
}, w(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
3098
3095
|
}
|
|
3099
3096
|
};
|
|
3100
|
-
function
|
|
3097
|
+
function yo(e) {
|
|
3101
3098
|
return e || (typeof document < "u" ? document : null);
|
|
3102
3099
|
}
|
|
3103
3100
|
const Ce = {
|
|
@@ -3111,7 +3108,7 @@ const Ce = {
|
|
|
3111
3108
|
deltaPercentage: null,
|
|
3112
3109
|
isResizingColumn: !1,
|
|
3113
3110
|
columnSizingStart: []
|
|
3114
|
-
}),
|
|
3111
|
+
}), vo = {
|
|
3115
3112
|
getDefaultColumnDef: () => Ce,
|
|
3116
3113
|
getInitialState: (e) => ({
|
|
3117
3114
|
columnSizing: {},
|
|
@@ -3121,15 +3118,15 @@ const Ce = {
|
|
|
3121
3118
|
getDefaultOptions: (e) => ({
|
|
3122
3119
|
columnResizeMode: "onEnd",
|
|
3123
3120
|
columnResizeDirection: "ltr",
|
|
3124
|
-
onColumnSizingChange:
|
|
3125
|
-
onColumnSizingInfoChange:
|
|
3121
|
+
onColumnSizingChange: A("columnSizing", e),
|
|
3122
|
+
onColumnSizingInfoChange: A("columnSizingInfo", e)
|
|
3126
3123
|
}),
|
|
3127
3124
|
createColumn: (e, n) => {
|
|
3128
3125
|
e.getSize = () => {
|
|
3129
3126
|
var t, o, r;
|
|
3130
3127
|
const l = n.getState().columnSizing[e.id];
|
|
3131
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);
|
|
3132
|
-
}, 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 = () => {
|
|
3133
3130
|
n.setColumnSizing((t) => {
|
|
3134
3131
|
let {
|
|
3135
3132
|
[e.id]: o,
|
|
@@ -3165,10 +3162,10 @@ const Ce = {
|
|
|
3165
3162
|
return (l) => {
|
|
3166
3163
|
if (!o || !r || (l.persist == null || l.persist(), Ze(l) && l.touches && l.touches.length > 1))
|
|
3167
3164
|
return;
|
|
3168
|
-
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 = {},
|
|
3169
|
-
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) => {
|
|
3170
3167
|
var M, b;
|
|
3171
|
-
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);
|
|
3172
3169
|
return R.columnSizingStart.forEach((ne) => {
|
|
3173
3170
|
let [N, rt] = ne;
|
|
3174
3171
|
u[N] = Math.round(Math.max(rt + rt * B, 0) * 100) / 100;
|
|
@@ -3181,9 +3178,9 @@ const Ce = {
|
|
|
3181
3178
|
...R,
|
|
3182
3179
|
...u
|
|
3183
3180
|
})));
|
|
3184
|
-
}, f = (y) =>
|
|
3185
|
-
|
|
3186
|
-
...
|
|
3181
|
+
}, f = (y) => c("move", y), d = (y) => {
|
|
3182
|
+
c("end", y), n.setColumnSizingInfo((_) => ({
|
|
3183
|
+
..._,
|
|
3187
3184
|
isResizingColumn: !1,
|
|
3188
3185
|
startOffset: null,
|
|
3189
3186
|
startSize: null,
|
|
@@ -3191,21 +3188,21 @@ const Ce = {
|
|
|
3191
3188
|
deltaPercentage: null,
|
|
3192
3189
|
columnSizingStart: []
|
|
3193
3190
|
}));
|
|
3194
|
-
},
|
|
3191
|
+
}, g = yo(t), p = {
|
|
3195
3192
|
moveHandler: (y) => f(y.clientX),
|
|
3196
3193
|
upHandler: (y) => {
|
|
3197
|
-
|
|
3194
|
+
g?.removeEventListener("mousemove", p.moveHandler), g?.removeEventListener("mouseup", p.upHandler), d(y.clientX);
|
|
3198
3195
|
}
|
|
3199
3196
|
}, m = {
|
|
3200
3197
|
moveHandler: (y) => (y.cancelable && (y.preventDefault(), y.stopPropagation()), f(y.touches[0].clientX), !1),
|
|
3201
3198
|
upHandler: (y) => {
|
|
3202
|
-
var
|
|
3203
|
-
|
|
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);
|
|
3204
3201
|
}
|
|
3205
3202
|
}, C = wo() ? {
|
|
3206
3203
|
passive: !1
|
|
3207
3204
|
} : !1;
|
|
3208
|
-
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) => ({
|
|
3209
3206
|
...y,
|
|
3210
3207
|
startOffset: a,
|
|
3211
3208
|
startSize: i,
|
|
@@ -3265,7 +3262,7 @@ const xo = {
|
|
|
3265
3262
|
...e
|
|
3266
3263
|
}),
|
|
3267
3264
|
getDefaultOptions: (e) => ({
|
|
3268
|
-
onColumnVisibilityChange:
|
|
3265
|
+
onColumnVisibilityChange: A("columnVisibility", e)
|
|
3269
3266
|
}),
|
|
3270
3267
|
createColumn: (e, n) => {
|
|
3271
3268
|
e.toggleVisibility = (t) => {
|
|
@@ -3285,10 +3282,10 @@ const xo = {
|
|
|
3285
3282
|
};
|
|
3286
3283
|
},
|
|
3287
3284
|
createRow: (e, n) => {
|
|
3288
|
-
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"));
|
|
3289
3286
|
},
|
|
3290
3287
|
createTable: (e) => {
|
|
3291
|
-
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));
|
|
3292
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) => {
|
|
3293
3290
|
var o;
|
|
3294
3291
|
e.setColumnVisibility(t ? {} : (o = e.initialState.columnVisibility) != null ? o : {});
|
|
@@ -3307,20 +3304,20 @@ const xo = {
|
|
|
3307
3304
|
function ge(e, n) {
|
|
3308
3305
|
return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
3309
3306
|
}
|
|
3310
|
-
const
|
|
3307
|
+
const _o = {
|
|
3311
3308
|
createTable: (e) => {
|
|
3312
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 = () => {
|
|
3313
3310
|
if (e._getGlobalFacetedMinMaxValues)
|
|
3314
3311
|
return e._getGlobalFacetedMinMaxValues();
|
|
3315
3312
|
};
|
|
3316
3313
|
}
|
|
3317
|
-
},
|
|
3314
|
+
}, So = {
|
|
3318
3315
|
getInitialState: (e) => ({
|
|
3319
3316
|
globalFilter: void 0,
|
|
3320
3317
|
...e
|
|
3321
3318
|
}),
|
|
3322
3319
|
getDefaultOptions: (e) => ({
|
|
3323
|
-
onGlobalFilterChange:
|
|
3320
|
+
onGlobalFilterChange: A("globalFilter", e),
|
|
3324
3321
|
globalFilterFn: "auto",
|
|
3325
3322
|
getColumnCanGlobalFilter: (n) => {
|
|
3326
3323
|
var t;
|
|
@@ -3347,13 +3344,13 @@ const So = {
|
|
|
3347
3344
|
e.setGlobalFilter(n ? void 0 : e.initialState.globalFilter);
|
|
3348
3345
|
};
|
|
3349
3346
|
}
|
|
3350
|
-
},
|
|
3347
|
+
}, Mo = {
|
|
3351
3348
|
getInitialState: (e) => ({
|
|
3352
3349
|
expanded: {},
|
|
3353
3350
|
...e
|
|
3354
3351
|
}),
|
|
3355
3352
|
getDefaultOptions: (e) => ({
|
|
3356
|
-
onExpandedChange:
|
|
3353
|
+
onExpandedChange: A("expanded", e),
|
|
3357
3354
|
paginateExpandedRows: !0
|
|
3358
3355
|
}),
|
|
3359
3356
|
createTable: (e) => {
|
|
@@ -3434,19 +3431,19 @@ const So = {
|
|
|
3434
3431
|
};
|
|
3435
3432
|
};
|
|
3436
3433
|
}
|
|
3437
|
-
}, qe = 0, je = 10,
|
|
3434
|
+
}, qe = 0, je = 10, Oe = () => ({
|
|
3438
3435
|
pageIndex: qe,
|
|
3439
3436
|
pageSize: je
|
|
3440
|
-
}),
|
|
3437
|
+
}), Ro = {
|
|
3441
3438
|
getInitialState: (e) => ({
|
|
3442
3439
|
...e,
|
|
3443
3440
|
pagination: {
|
|
3444
|
-
...
|
|
3441
|
+
...Oe(),
|
|
3445
3442
|
...e?.pagination
|
|
3446
3443
|
}
|
|
3447
3444
|
}),
|
|
3448
3445
|
getDefaultOptions: (e) => ({
|
|
3449
|
-
onPaginationChange:
|
|
3446
|
+
onPaginationChange: A("pagination", e)
|
|
3450
3447
|
}),
|
|
3451
3448
|
createTable: (e) => {
|
|
3452
3449
|
let n = !1, t = !1;
|
|
@@ -3469,7 +3466,7 @@ const So = {
|
|
|
3469
3466
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
|
|
3470
3467
|
}, e.resetPagination = (o) => {
|
|
3471
3468
|
var r;
|
|
3472
|
-
e.setPagination(o ?
|
|
3469
|
+
e.setPagination(o ? Oe() : (r = e.initialState.pagination) != null ? r : Oe());
|
|
3473
3470
|
}, e.setPageIndex = (o) => {
|
|
3474
3471
|
e.setPagination((r) => {
|
|
3475
3472
|
let l = j(o, r.pageIndex);
|
|
@@ -3504,7 +3501,7 @@ const So = {
|
|
|
3504
3501
|
}), e.getPageOptions = v(() => [e.getPageCount()], (o) => {
|
|
3505
3502
|
let r = [];
|
|
3506
3503
|
return o && o > 0 && (r = [...new Array(o)].fill(null).map((l, i) => i)), r;
|
|
3507
|
-
},
|
|
3504
|
+
}, w(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
3508
3505
|
const {
|
|
3509
3506
|
pageIndex: o
|
|
3510
3507
|
} = e.getState().pagination, r = e.getPageCount();
|
|
@@ -3517,16 +3514,16 @@ const So = {
|
|
|
3517
3514
|
return (o = e.options.rowCount) != null ? o : e.getPrePaginationRowModel().rows.length;
|
|
3518
3515
|
};
|
|
3519
3516
|
}
|
|
3520
|
-
},
|
|
3517
|
+
}, Ae = () => ({
|
|
3521
3518
|
top: [],
|
|
3522
3519
|
bottom: []
|
|
3523
|
-
}),
|
|
3520
|
+
}), bo = {
|
|
3524
3521
|
getInitialState: (e) => ({
|
|
3525
|
-
rowPinning:
|
|
3522
|
+
rowPinning: Ae(),
|
|
3526
3523
|
...e
|
|
3527
3524
|
}),
|
|
3528
3525
|
getDefaultOptions: (e) => ({
|
|
3529
|
-
onRowPinningChange:
|
|
3526
|
+
onRowPinningChange: A("rowPinning", e)
|
|
3530
3527
|
}),
|
|
3531
3528
|
createRow: (e, n) => {
|
|
3532
3529
|
e.pin = (t, o, r) => {
|
|
@@ -3542,7 +3539,7 @@ const So = {
|
|
|
3542
3539
|
return u;
|
|
3543
3540
|
}) : [], s = /* @__PURE__ */ new Set([...i, e.id, ...l]);
|
|
3544
3541
|
n.setRowPinning((a) => {
|
|
3545
|
-
var u,
|
|
3542
|
+
var u, c;
|
|
3546
3543
|
if (t === "bottom") {
|
|
3547
3544
|
var f, d;
|
|
3548
3545
|
return {
|
|
@@ -3551,15 +3548,15 @@ const So = {
|
|
|
3551
3548
|
};
|
|
3552
3549
|
}
|
|
3553
3550
|
if (t === "top") {
|
|
3554
|
-
var
|
|
3551
|
+
var g, p;
|
|
3555
3552
|
return {
|
|
3556
|
-
top: [...((
|
|
3553
|
+
top: [...((g = a?.top) != null ? g : []).filter((m) => !(s != null && s.has(m))), ...Array.from(s)],
|
|
3557
3554
|
bottom: ((p = a?.bottom) != null ? p : []).filter((m) => !(s != null && s.has(m)))
|
|
3558
3555
|
};
|
|
3559
3556
|
}
|
|
3560
3557
|
return {
|
|
3561
3558
|
top: ((u = a?.top) != null ? u : []).filter((m) => !(s != null && s.has(m))),
|
|
3562
|
-
bottom: ((
|
|
3559
|
+
bottom: ((c = a?.bottom) != null ? c : []).filter((m) => !(s != null && s.has(m)))
|
|
3563
3560
|
};
|
|
3564
3561
|
});
|
|
3565
3562
|
}, e.getCanPin = () => {
|
|
@@ -3591,7 +3588,7 @@ const So = {
|
|
|
3591
3588
|
createTable: (e) => {
|
|
3592
3589
|
e.setRowPinning = (n) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(n), e.resetRowPinning = (n) => {
|
|
3593
3590
|
var t, o;
|
|
3594
|
-
return e.setRowPinning(n ?
|
|
3591
|
+
return e.setRowPinning(n ? Ae() : (t = (o = e.initialState) == null ? void 0 : o.rowPinning) != null ? t : Ae());
|
|
3595
3592
|
}, e.getIsSomeRowsPinned = (n) => {
|
|
3596
3593
|
var t;
|
|
3597
3594
|
const o = e.getState().rowPinning;
|
|
@@ -3616,18 +3613,18 @@ const So = {
|
|
|
3616
3613
|
...i,
|
|
3617
3614
|
position: o
|
|
3618
3615
|
}));
|
|
3619
|
-
}, 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) => {
|
|
3620
3617
|
const r = /* @__PURE__ */ new Set([...t ?? [], ...o ?? []]);
|
|
3621
3618
|
return n.filter((l) => !r.has(l.id));
|
|
3622
|
-
},
|
|
3619
|
+
}, w(e.options, "debugRows", "getCenterRows"));
|
|
3623
3620
|
}
|
|
3624
|
-
},
|
|
3621
|
+
}, $o = {
|
|
3625
3622
|
getInitialState: (e) => ({
|
|
3626
3623
|
rowSelection: {},
|
|
3627
3624
|
...e
|
|
3628
3625
|
}),
|
|
3629
3626
|
getDefaultOptions: (e) => ({
|
|
3630
|
-
onRowSelectionChange:
|
|
3627
|
+
onRowSelectionChange: A("rowSelection", e),
|
|
3631
3628
|
enableRowSelection: !0,
|
|
3632
3629
|
enableMultiRowSelection: !0,
|
|
3633
3630
|
enableSubRowSelection: !0
|
|
@@ -3658,19 +3655,19 @@ const So = {
|
|
|
3658
3655
|
return e.getRowModel().rows.forEach((l) => {
|
|
3659
3656
|
Ke(r, l.id, o, !0, e);
|
|
3660
3657
|
}), r;
|
|
3661
|
-
}), 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) : {
|
|
3662
3659
|
rows: [],
|
|
3663
3660
|
flatRows: [],
|
|
3664
3661
|
rowsById: {}
|
|
3665
|
-
},
|
|
3662
|
+
}, w(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = v(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? De(e, t) : {
|
|
3666
3663
|
rows: [],
|
|
3667
3664
|
flatRows: [],
|
|
3668
3665
|
rowsById: {}
|
|
3669
|
-
},
|
|
3666
|
+
}, w(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = v(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? De(e, t) : {
|
|
3670
3667
|
rows: [],
|
|
3671
3668
|
flatRows: [],
|
|
3672
3669
|
rowsById: {}
|
|
3673
|
-
},
|
|
3670
|
+
}, w(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
3674
3671
|
const n = e.getFilteredRowModel().flatRows, {
|
|
3675
3672
|
rowSelection: t
|
|
3676
3673
|
} = e.getState();
|
|
@@ -3744,15 +3741,15 @@ const So = {
|
|
|
3744
3741
|
const i = r.getRow(n, !0);
|
|
3745
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));
|
|
3746
3743
|
};
|
|
3747
|
-
function
|
|
3744
|
+
function De(e, n) {
|
|
3748
3745
|
const t = e.getState().rowSelection, o = [], r = {}, l = function(i, s) {
|
|
3749
3746
|
return i.map((a) => {
|
|
3750
3747
|
var u;
|
|
3751
|
-
const
|
|
3752
|
-
if (
|
|
3748
|
+
const c = nt(a, t);
|
|
3749
|
+
if (c && (o.push(a), r[a.id] = a), (u = a.subRows) != null && u.length && (a = {
|
|
3753
3750
|
...a,
|
|
3754
3751
|
subRows: l(a.subRows)
|
|
3755
|
-
}),
|
|
3752
|
+
}), c)
|
|
3756
3753
|
return a;
|
|
3757
3754
|
}).filter(Boolean);
|
|
3758
3755
|
};
|
|
@@ -3777,10 +3774,10 @@ function Xe(e, n, t) {
|
|
|
3777
3774
|
}
|
|
3778
3775
|
}), r ? "all" : l ? "some" : !1;
|
|
3779
3776
|
}
|
|
3780
|
-
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) => {
|
|
3781
3778
|
const o = e.getValue(t), r = n.getValue(t);
|
|
3782
3779
|
return o > r ? 1 : o < r ? -1 : 0;
|
|
3783
|
-
},
|
|
3780
|
+
}, ko = (e, n, t) => ot(e.getValue(t), n.getValue(t));
|
|
3784
3781
|
function ot(e, n) {
|
|
3785
3782
|
return e === n ? 0 : e > n ? 1 : -1;
|
|
3786
3783
|
}
|
|
@@ -3808,13 +3805,13 @@ function Xt(e, n) {
|
|
|
3808
3805
|
return t.length - o.length;
|
|
3809
3806
|
}
|
|
3810
3807
|
const ue = {
|
|
3811
|
-
alphanumeric:
|
|
3812
|
-
alphanumericCaseSensitive:
|
|
3813
|
-
text:
|
|
3814
|
-
textCaseSensitive:
|
|
3815
|
-
datetime:
|
|
3816
|
-
basic:
|
|
3817
|
-
},
|
|
3808
|
+
alphanumeric: Io,
|
|
3809
|
+
alphanumericCaseSensitive: Fo,
|
|
3810
|
+
text: Po,
|
|
3811
|
+
textCaseSensitive: zo,
|
|
3812
|
+
datetime: Vo,
|
|
3813
|
+
basic: ko
|
|
3814
|
+
}, Eo = {
|
|
3818
3815
|
getInitialState: (e) => ({
|
|
3819
3816
|
sorting: [],
|
|
3820
3817
|
...e
|
|
@@ -3824,7 +3821,7 @@ const ue = {
|
|
|
3824
3821
|
sortUndefined: 1
|
|
3825
3822
|
}),
|
|
3826
3823
|
getDefaultOptions: (e) => ({
|
|
3827
|
-
onSortingChange:
|
|
3824
|
+
onSortingChange: A("sorting", e),
|
|
3828
3825
|
isMultiSortEvent: (n) => n.shiftKey
|
|
3829
3826
|
}),
|
|
3830
3827
|
createColumn: (e, n) => {
|
|
@@ -3850,18 +3847,18 @@ const ue = {
|
|
|
3850
3847
|
}, e.toggleSorting = (t, o) => {
|
|
3851
3848
|
const r = e.getNextSortingOrder(), l = typeof t < "u" && t !== null;
|
|
3852
3849
|
n.setSorting((i) => {
|
|
3853
|
-
const s = i?.find((
|
|
3854
|
-
let u = [],
|
|
3855
|
-
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") {
|
|
3856
3853
|
var d;
|
|
3857
3854
|
u = [...i, {
|
|
3858
3855
|
id: e.id,
|
|
3859
3856
|
desc: f
|
|
3860
3857
|
}], u.splice(0, u.length - ((d = n.options.maxMultiSortColCount) != null ? d : Number.MAX_SAFE_INTEGER));
|
|
3861
|
-
} else
|
|
3862
|
-
...
|
|
3858
|
+
} else c === "toggle" ? u = i.map((g) => g.id === e.id ? {
|
|
3859
|
+
...g,
|
|
3863
3860
|
desc: f
|
|
3864
|
-
} :
|
|
3861
|
+
} : g) : c === "remove" ? u = i.filter((g) => g.id !== e.id) : u = [{
|
|
3865
3862
|
id: e.id,
|
|
3866
3863
|
desc: f
|
|
3867
3864
|
}];
|
|
@@ -3903,34 +3900,34 @@ const ue = {
|
|
|
3903
3900
|
e.setSorting(n ? [] : (t = (o = e.initialState) == null ? void 0 : o.sorting) != null ? t : []);
|
|
3904
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());
|
|
3905
3902
|
}
|
|
3906
|
-
},
|
|
3907
|
-
|
|
3903
|
+
}, Zo = [
|
|
3904
|
+
to,
|
|
3908
3905
|
xo,
|
|
3906
|
+
Lo,
|
|
3909
3907
|
ho,
|
|
3910
|
-
|
|
3908
|
+
oo,
|
|
3911
3909
|
ro,
|
|
3912
|
-
|
|
3913
|
-
So,
|
|
3910
|
+
_o,
|
|
3914
3911
|
//depends on ColumnFaceting
|
|
3915
|
-
|
|
3912
|
+
So,
|
|
3916
3913
|
//depends on ColumnFiltering
|
|
3917
|
-
|
|
3918
|
-
|
|
3914
|
+
Eo,
|
|
3915
|
+
mo,
|
|
3919
3916
|
//depends on RowSorting
|
|
3917
|
+
Mo,
|
|
3920
3918
|
Ro,
|
|
3921
3919
|
bo,
|
|
3922
3920
|
$o,
|
|
3923
|
-
|
|
3924
|
-
_o
|
|
3921
|
+
vo
|
|
3925
3922
|
];
|
|
3926
|
-
function
|
|
3923
|
+
function Oo(e) {
|
|
3927
3924
|
var n, t;
|
|
3928
3925
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
3929
|
-
const o = [...
|
|
3926
|
+
const o = [...Zo, ...(n = e._features) != null ? n : []];
|
|
3930
3927
|
let r = {
|
|
3931
3928
|
_features: o
|
|
3932
3929
|
};
|
|
3933
|
-
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) : {
|
|
3934
3931
|
...l,
|
|
3935
3932
|
...d
|
|
3936
3933
|
};
|
|
@@ -3939,11 +3936,11 @@ function Do(e) {
|
|
|
3939
3936
|
...(t = e.initialState) != null ? t : {}
|
|
3940
3937
|
};
|
|
3941
3938
|
r._features.forEach((d) => {
|
|
3942
|
-
var
|
|
3943
|
-
a = (
|
|
3939
|
+
var g;
|
|
3940
|
+
a = (g = d.getInitialState == null ? void 0 : d.getInitialState(a)) != null ? g : a;
|
|
3944
3941
|
});
|
|
3945
3942
|
const u = [];
|
|
3946
|
-
let
|
|
3943
|
+
let c = !1;
|
|
3947
3944
|
const f = {
|
|
3948
3945
|
_features: o,
|
|
3949
3946
|
options: {
|
|
@@ -3952,43 +3949,43 @@ function Do(e) {
|
|
|
3952
3949
|
},
|
|
3953
3950
|
initialState: a,
|
|
3954
3951
|
_queue: (d) => {
|
|
3955
|
-
u.push(d),
|
|
3952
|
+
u.push(d), c || (c = !0, Promise.resolve().then(() => {
|
|
3956
3953
|
for (; u.length; )
|
|
3957
3954
|
u.shift()();
|
|
3958
|
-
|
|
3959
|
-
}).catch((
|
|
3960
|
-
throw
|
|
3955
|
+
c = !1;
|
|
3956
|
+
}).catch((g) => setTimeout(() => {
|
|
3957
|
+
throw g;
|
|
3961
3958
|
})));
|
|
3962
3959
|
},
|
|
3963
3960
|
reset: () => {
|
|
3964
3961
|
r.setState(r.initialState);
|
|
3965
3962
|
},
|
|
3966
3963
|
setOptions: (d) => {
|
|
3967
|
-
const
|
|
3968
|
-
r.options = i(
|
|
3964
|
+
const g = j(d, r.options);
|
|
3965
|
+
r.options = i(g);
|
|
3969
3966
|
},
|
|
3970
3967
|
getState: () => r.options.state,
|
|
3971
3968
|
setState: (d) => {
|
|
3972
3969
|
r.options.onStateChange == null || r.options.onStateChange(d);
|
|
3973
3970
|
},
|
|
3974
|
-
_getRowId: (d,
|
|
3971
|
+
_getRowId: (d, g, p) => {
|
|
3975
3972
|
var m;
|
|
3976
|
-
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}`;
|
|
3977
3974
|
},
|
|
3978
3975
|
getCoreRowModel: () => (r._getCoreRowModel || (r._getCoreRowModel = r.options.getCoreRowModel(r)), r._getCoreRowModel()),
|
|
3979
3976
|
// The final calls start at the bottom of the model,
|
|
3980
3977
|
// expanded rows, which then work their way up
|
|
3981
3978
|
getRowModel: () => r.getPaginationRowModel(),
|
|
3982
3979
|
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
3983
|
-
getRow: (d,
|
|
3984
|
-
let p = (
|
|
3980
|
+
getRow: (d, g) => {
|
|
3981
|
+
let p = (g ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[d];
|
|
3985
3982
|
if (!p && (p = r.getCoreRowModel().rowsById[d], !p))
|
|
3986
3983
|
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${d}`) : new Error();
|
|
3987
3984
|
return p;
|
|
3988
3985
|
},
|
|
3989
3986
|
_getDefaultColumnDef: v(() => [r.options.defaultColumn], (d) => {
|
|
3990
|
-
var
|
|
3991
|
-
return d = (
|
|
3987
|
+
var g;
|
|
3988
|
+
return d = (g = d) != null ? g : {}, {
|
|
3992
3989
|
header: (p) => {
|
|
3993
3990
|
const m = p.header.column.columnDef;
|
|
3994
3991
|
return m.accessorKey ? m.accessorKey : m.accessorFn ? m.id : null;
|
|
@@ -4001,36 +3998,36 @@ function Do(e) {
|
|
|
4001
3998
|
...r._features.reduce((p, m) => Object.assign(p, m.getDefaultColumnDef == null ? void 0 : m.getDefaultColumnDef()), {}),
|
|
4002
3999
|
...d
|
|
4003
4000
|
};
|
|
4004
|
-
},
|
|
4001
|
+
}, w(e, "debugColumns", "_getDefaultColumnDef")),
|
|
4005
4002
|
_getColumnDefs: () => r.options.columns,
|
|
4006
4003
|
getAllColumns: v(() => [r._getColumnDefs()], (d) => {
|
|
4007
|
-
const
|
|
4004
|
+
const g = function(p, m, C) {
|
|
4008
4005
|
return C === void 0 && (C = 0), p.map((y) => {
|
|
4009
|
-
const
|
|
4010
|
-
return
|
|
4006
|
+
const _ = eo(r, y, C, m), R = y;
|
|
4007
|
+
return _.columns = R.columns ? g(R.columns, _, C + 1) : [], _;
|
|
4011
4008
|
});
|
|
4012
4009
|
};
|
|
4013
|
-
return
|
|
4014
|
-
},
|
|
4015
|
-
getAllFlatColumns: v(() => [r.getAllColumns()], (d) => d.flatMap((
|
|
4016
|
-
_getAllFlatColumnsById: v(() => [r.getAllFlatColumns()], (d) => d.reduce((
|
|
4017
|
-
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) => {
|
|
4018
4015
|
let p = d.flatMap((m) => m.getLeafColumns());
|
|
4019
|
-
return
|
|
4020
|
-
},
|
|
4016
|
+
return g(p);
|
|
4017
|
+
}, w(e, "debugColumns", "getAllLeafColumns")),
|
|
4021
4018
|
getColumn: (d) => {
|
|
4022
|
-
const
|
|
4023
|
-
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;
|
|
4024
4021
|
}
|
|
4025
4022
|
};
|
|
4026
4023
|
Object.assign(r, f);
|
|
4027
4024
|
for (let d = 0; d < r._features.length; d++) {
|
|
4028
|
-
const
|
|
4029
|
-
|
|
4025
|
+
const g = r._features[d];
|
|
4026
|
+
g == null || g.createTable == null || g.createTable(r);
|
|
4030
4027
|
}
|
|
4031
4028
|
return r;
|
|
4032
4029
|
}
|
|
4033
|
-
function
|
|
4030
|
+
function Ao() {
|
|
4034
4031
|
return (e) => v(() => [e.options.data], (n) => {
|
|
4035
4032
|
const t = {
|
|
4036
4033
|
rows: [],
|
|
@@ -4040,18 +4037,18 @@ function Oo() {
|
|
|
4040
4037
|
l === void 0 && (l = 0);
|
|
4041
4038
|
const s = [];
|
|
4042
4039
|
for (let u = 0; u < r.length; u++) {
|
|
4043
|
-
const
|
|
4044
|
-
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) {
|
|
4045
4042
|
var a;
|
|
4046
|
-
|
|
4043
|
+
c.originalSubRows = e.options.getSubRows(r[u], u), (a = c.originalSubRows) != null && a.length && (c.subRows = o(c.originalSubRows, l + 1, c));
|
|
4047
4044
|
}
|
|
4048
4045
|
}
|
|
4049
4046
|
return s;
|
|
4050
4047
|
};
|
|
4051
4048
|
return t.rows = o(n), t;
|
|
4052
|
-
},
|
|
4049
|
+
}, w(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
4053
4050
|
}
|
|
4054
|
-
function
|
|
4051
|
+
function Do() {
|
|
4055
4052
|
return (e) => v(() => [e.getState().sorting, e.getPreSortedRowModel()], (n, t) => {
|
|
4056
4053
|
if (!t.rows.length || !(n != null && n.length))
|
|
4057
4054
|
return t;
|
|
@@ -4068,29 +4065,29 @@ function To() {
|
|
|
4068
4065
|
});
|
|
4069
4066
|
});
|
|
4070
4067
|
const s = (a) => {
|
|
4071
|
-
const u = a.map((
|
|
4072
|
-
...
|
|
4068
|
+
const u = a.map((c) => ({
|
|
4069
|
+
...c
|
|
4073
4070
|
}));
|
|
4074
|
-
return u.sort((
|
|
4075
|
-
for (let
|
|
4071
|
+
return u.sort((c, f) => {
|
|
4072
|
+
for (let g = 0; g < l.length; g += 1) {
|
|
4076
4073
|
var d;
|
|
4077
|
-
const p = l[
|
|
4078
|
-
let
|
|
4074
|
+
const p = l[g], m = i[p.id], C = m.sortUndefined, y = (d = p?.desc) != null ? d : !1;
|
|
4075
|
+
let _ = 0;
|
|
4079
4076
|
if (C) {
|
|
4080
|
-
const R =
|
|
4077
|
+
const R = c.getValue(p.id), M = f.getValue(p.id), b = R === void 0, S = M === void 0;
|
|
4081
4078
|
if (b || S) {
|
|
4082
4079
|
if (C === "first") return b ? -1 : 1;
|
|
4083
4080
|
if (C === "last") return b ? 1 : -1;
|
|
4084
|
-
|
|
4081
|
+
_ = b && S ? 0 : b ? C : -C;
|
|
4085
4082
|
}
|
|
4086
4083
|
}
|
|
4087
|
-
if (
|
|
4088
|
-
return y && (
|
|
4084
|
+
if (_ === 0 && (_ = m.sortingFn(c, f, p.id)), _ !== 0)
|
|
4085
|
+
return y && (_ *= -1), m.invertSorting && (_ *= -1), _;
|
|
4089
4086
|
}
|
|
4090
|
-
return
|
|
4091
|
-
}), u.forEach((
|
|
4087
|
+
return c.index - f.index;
|
|
4088
|
+
}), u.forEach((c) => {
|
|
4092
4089
|
var f;
|
|
4093
|
-
r.push(
|
|
4090
|
+
r.push(c), (f = c.subRows) != null && f.length && (c.subRows = s(c.subRows));
|
|
4094
4091
|
}), u;
|
|
4095
4092
|
};
|
|
4096
4093
|
return {
|
|
@@ -4098,7 +4095,7 @@ function To() {
|
|
|
4098
4095
|
flatRows: r,
|
|
4099
4096
|
rowsById: t.rowsById
|
|
4100
4097
|
};
|
|
4101
|
-
},
|
|
4098
|
+
}, w(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
4102
4099
|
}
|
|
4103
4100
|
/**
|
|
4104
4101
|
* vue-table
|
|
@@ -4113,9 +4110,9 @@ function To() {
|
|
|
4113
4110
|
function he() {
|
|
4114
4111
|
return !0;
|
|
4115
4112
|
}
|
|
4116
|
-
const
|
|
4113
|
+
const To = Symbol("merge-proxy"), Go = {
|
|
4117
4114
|
get(e, n, t) {
|
|
4118
|
-
return n ===
|
|
4115
|
+
return n === To ? t : e.get(n);
|
|
4119
4116
|
},
|
|
4120
4117
|
has(e, n) {
|
|
4121
4118
|
return e.has(n);
|
|
@@ -4160,7 +4157,7 @@ function ce() {
|
|
|
4160
4157
|
for (let r = 0; r < n.length; r++) o.push(...Object.keys(Te(n[r])));
|
|
4161
4158
|
return [...Array.from(new Set(o))];
|
|
4162
4159
|
}
|
|
4163
|
-
},
|
|
4160
|
+
}, Go);
|
|
4164
4161
|
}
|
|
4165
4162
|
const Qt = I({
|
|
4166
4163
|
props: ["render", "props"],
|
|
@@ -4168,10 +4165,10 @@ const Qt = I({
|
|
|
4168
4165
|
});
|
|
4169
4166
|
function vt(e) {
|
|
4170
4167
|
return ce(e, {
|
|
4171
|
-
data:
|
|
4168
|
+
data: D(e.data)
|
|
4172
4169
|
});
|
|
4173
4170
|
}
|
|
4174
|
-
function
|
|
4171
|
+
function Ho(e) {
|
|
4175
4172
|
const n = o0(e.data), t = ce({
|
|
4176
4173
|
state: {},
|
|
4177
4174
|
// Dummy state
|
|
@@ -4185,9 +4182,9 @@ function Bo(e) {
|
|
|
4185
4182
|
...i
|
|
4186
4183
|
} : ce(l, i);
|
|
4187
4184
|
}
|
|
4188
|
-
}, n ? vt(e) : e), o =
|
|
4185
|
+
}, n ? vt(e) : e), o = Oo(t);
|
|
4189
4186
|
if (n) {
|
|
4190
|
-
const l =
|
|
4187
|
+
const l = wt(e.data);
|
|
4191
4188
|
We(l, () => {
|
|
4192
4189
|
o.setState((i) => ({
|
|
4193
4190
|
...i,
|
|
@@ -4218,7 +4215,7 @@ function Bo(e) {
|
|
|
4218
4215
|
});
|
|
4219
4216
|
}), o;
|
|
4220
4217
|
}
|
|
4221
|
-
const
|
|
4218
|
+
const Bo = ["aria-sort"], No = /* @__PURE__ */ I({
|
|
4222
4219
|
__name: "CmcTableHeader",
|
|
4223
4220
|
props: {
|
|
4224
4221
|
headerGroups: {}
|
|
@@ -4237,16 +4234,16 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4237
4234
|
"aria-sort": n(l),
|
|
4238
4235
|
scope: "col"
|
|
4239
4236
|
}, [
|
|
4240
|
-
l.isPlaceholder ? z("", !0) : (L(), W(
|
|
4237
|
+
l.isPlaceholder ? z("", !0) : (L(), W(D(Qt), {
|
|
4241
4238
|
key: 0,
|
|
4242
4239
|
props: l.getContext(),
|
|
4243
4240
|
render: l.column.columnDef.header
|
|
4244
4241
|
}, null, 8, ["props", "render"]))
|
|
4245
|
-
], 8,
|
|
4242
|
+
], 8, Bo))), 128))
|
|
4246
4243
|
]))), 128))
|
|
4247
4244
|
]));
|
|
4248
4245
|
}
|
|
4249
|
-
}),
|
|
4246
|
+
}), Uo = /* @__PURE__ */ $(No, [["__scopeId", "data-v-9eba66c8"]]), qo = { key: 0 }, jo = { key: 1 }, Ko = ["colspan"], Xo = /* @__PURE__ */ I({
|
|
4250
4247
|
__name: "CmcTableBody",
|
|
4251
4248
|
props: {
|
|
4252
4249
|
rows: {},
|
|
@@ -4254,20 +4251,20 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4254
4251
|
leafColCount: {}
|
|
4255
4252
|
},
|
|
4256
4253
|
setup(e) {
|
|
4257
|
-
return (n, t) => e.rows.length ? (L(), h("tbody",
|
|
4254
|
+
return (n, t) => e.rows.length ? (L(), h("tbody", qo, [
|
|
4258
4255
|
(L(!0), h(Z, null, H(e.rows, (o) => (L(), h("tr", {
|
|
4259
4256
|
key: o.id
|
|
4260
4257
|
}, [
|
|
4261
4258
|
(L(!0), h(Z, null, H(o.getVisibleCells(), (r) => (L(), h("td", {
|
|
4262
4259
|
key: r.id
|
|
4263
4260
|
}, [
|
|
4264
|
-
|
|
4261
|
+
O(D(Qt), {
|
|
4265
4262
|
props: r.getContext(),
|
|
4266
4263
|
render: r.column.columnDef.cell
|
|
4267
4264
|
}, null, 8, ["props", "render"])
|
|
4268
4265
|
]))), 128))
|
|
4269
4266
|
]))), 128))
|
|
4270
|
-
])) : (L(), h("tbody",
|
|
4267
|
+
])) : (L(), h("tbody", jo, [
|
|
4271
4268
|
P("tr", null, [
|
|
4272
4269
|
P("td", {
|
|
4273
4270
|
colspan: e.leafColCount,
|
|
@@ -4276,11 +4273,11 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4276
4273
|
T(n.$slots, "empty", {}, () => [
|
|
4277
4274
|
St(V(e.emptyText), 1)
|
|
4278
4275
|
], !0)
|
|
4279
|
-
], 8,
|
|
4276
|
+
], 8, Ko)
|
|
4280
4277
|
])
|
|
4281
4278
|
]));
|
|
4282
4279
|
}
|
|
4283
|
-
}),
|
|
4280
|
+
}), Qo = /* @__PURE__ */ $(Xo, [["__scopeId", "data-v-f962b8ac"]]), Wo = /* @__PURE__ */ I({
|
|
4284
4281
|
__name: "CmcTable",
|
|
4285
4282
|
props: {
|
|
4286
4283
|
rows: { default: () => [] },
|
|
@@ -4288,22 +4285,22 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4288
4285
|
emptyText: { default: "Pas de données" }
|
|
4289
4286
|
},
|
|
4290
4287
|
setup(e) {
|
|
4291
|
-
const n = e, t = (d) => ({ column:
|
|
4288
|
+
const n = e, t = (d) => ({ column: g }) => J(
|
|
4292
4289
|
"button",
|
|
4293
4290
|
{
|
|
4294
4291
|
type: "button",
|
|
4295
|
-
onClick:
|
|
4292
|
+
onClick: g.getToggleSortingHandler(),
|
|
4296
4293
|
class: "table__sort-btn"
|
|
4297
4294
|
},
|
|
4298
|
-
`${d} ${
|
|
4295
|
+
`${d} ${g.getIsSorted() ? g.getIsSorted() === "asc" ? "↑" : "↓" : ""}`
|
|
4299
4296
|
), o = (d) => J("button", { onClick: d.onClick, class: "table__button" }, [
|
|
4300
4297
|
J(X, { name: d.icon })
|
|
4301
4298
|
]), r = (d) => d.map(
|
|
4302
|
-
(
|
|
4299
|
+
(g) => (g.type === "date" && (g.cellRenderer = ({ getValue: p }) => new Date(p()).toLocaleDateString("fr-FR", {
|
|
4303
4300
|
year: "numeric",
|
|
4304
4301
|
month: "long",
|
|
4305
4302
|
day: "numeric"
|
|
4306
|
-
})),
|
|
4303
|
+
})), g.type === "buttons" && (g.cellRenderer = ({ getValue: p }) => {
|
|
4307
4304
|
const C = p().map((y) => o(y));
|
|
4308
4305
|
return J(
|
|
4309
4306
|
Hn,
|
|
@@ -4311,33 +4308,33 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4311
4308
|
() => C
|
|
4312
4309
|
);
|
|
4313
4310
|
}), {
|
|
4314
|
-
accessorKey:
|
|
4315
|
-
header:
|
|
4316
|
-
...
|
|
4311
|
+
accessorKey: g.key,
|
|
4312
|
+
header: g.sortable ? t(g.label) : g.label,
|
|
4313
|
+
...g.cellRenderer ? { cell: g.cellRenderer } : {}
|
|
4317
4314
|
})
|
|
4318
|
-
), l = (d) => d.map((
|
|
4315
|
+
), l = (d) => d.map((g) => ({ ...g })), i = x(() => l(n.rows)), s = x(
|
|
4319
4316
|
() => r(n.columns)
|
|
4320
|
-
), a =
|
|
4317
|
+
), a = Ho({
|
|
4321
4318
|
get data() {
|
|
4322
4319
|
return i.value;
|
|
4323
4320
|
},
|
|
4324
4321
|
columns: s.value,
|
|
4325
|
-
getCoreRowModel:
|
|
4326
|
-
getSortedRowModel:
|
|
4327
|
-
}), u =
|
|
4328
|
-
return (d,
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
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,
|
|
4332
4329
|
emptyText: e.emptyText,
|
|
4333
4330
|
leafColCount: f.value
|
|
4334
4331
|
}, null, 8, ["rows", "emptyText", "leafColCount"])
|
|
4335
4332
|
]));
|
|
4336
4333
|
}
|
|
4337
|
-
}),
|
|
4334
|
+
}), Yo = /* @__PURE__ */ $(Wo, [["__scopeId", "data-v-0de0582e"]]), Jo = { class: "table__pagination" }, er = 10, tr = /* @__PURE__ */ I({
|
|
4338
4335
|
__name: "CmcTablePagination",
|
|
4339
4336
|
props: {
|
|
4340
|
-
itemsPerPage: { default:
|
|
4337
|
+
itemsPerPage: { default: er },
|
|
4341
4338
|
currentPage: { default: 1 },
|
|
4342
4339
|
rows: { default: () => [] },
|
|
4343
4340
|
columns: { default: () => [] },
|
|
@@ -4348,18 +4345,18 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4348
4345
|
setup(e, { emit: n }) {
|
|
4349
4346
|
const t = e, o = n, r = (i) => {
|
|
4350
4347
|
o("update:currentPage", i);
|
|
4351
|
-
}, l =
|
|
4348
|
+
}, l = x(() => {
|
|
4352
4349
|
const i = (t.currentPage - 1) * t.itemsPerPage;
|
|
4353
4350
|
return t.rows.slice(i, i + t.itemsPerPage);
|
|
4354
4351
|
});
|
|
4355
|
-
return (i, s) => (L(), h("div",
|
|
4356
|
-
|
|
4352
|
+
return (i, s) => (L(), h("div", Jo, [
|
|
4353
|
+
O(Yo, {
|
|
4357
4354
|
columns: e.columns,
|
|
4358
4355
|
"empty-text": e.emptyText,
|
|
4359
4356
|
rows: l.value,
|
|
4360
4357
|
class: "table__pagination--table"
|
|
4361
4358
|
}, null, 8, ["columns", "empty-text", "rows"]),
|
|
4362
|
-
|
|
4359
|
+
O(D1, {
|
|
4363
4360
|
currentPage: e.currentPage,
|
|
4364
4361
|
itemsPerPage: e.itemsPerPage,
|
|
4365
4362
|
totalItems: e.totalItems ?? e.rows.length,
|
|
@@ -4367,15 +4364,15 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4367
4364
|
}, null, 8, ["currentPage", "itemsPerPage", "totalItems"])
|
|
4368
4365
|
]));
|
|
4369
4366
|
}
|
|
4370
|
-
}),
|
|
4367
|
+
}), Mr = /* @__PURE__ */ $(tr, [["__scopeId", "data-v-a2a0b05e"]]), Rr = /* @__PURE__ */ I({
|
|
4371
4368
|
name: "CmcTitle",
|
|
4372
4369
|
__name: "CmcTitle",
|
|
4373
4370
|
setup(e) {
|
|
4374
4371
|
return (n, t) => (L(), h(Z, null, [
|
|
4375
|
-
|
|
4376
|
-
level:
|
|
4372
|
+
O(i1, {
|
|
4373
|
+
level: D(Y).h1
|
|
4377
4374
|
}, {
|
|
4378
|
-
default:
|
|
4375
|
+
default: _e(() => [
|
|
4379
4376
|
T(n.$slots, "default")
|
|
4380
4377
|
]),
|
|
4381
4378
|
_: 3
|
|
@@ -4383,23 +4380,23 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4383
4380
|
t[0] || (t[0] = P("hr", { class: "title__separator" }, null, -1))
|
|
4384
4381
|
], 64));
|
|
4385
4382
|
}
|
|
4386
|
-
}),
|
|
4383
|
+
}), nr = {
|
|
4387
4384
|
medium: "medium"
|
|
4388
|
-
},
|
|
4385
|
+
}, or = ["id", "disabled", "required"], rr = ["for"], lr = /* @__PURE__ */ I({
|
|
4389
4386
|
name: "CmcToggle",
|
|
4390
4387
|
__name: "CmcToggle",
|
|
4391
4388
|
props: /* @__PURE__ */ K({
|
|
4392
4389
|
id: {},
|
|
4393
4390
|
disabled: { type: Boolean, default: !1 },
|
|
4394
4391
|
required: { type: Boolean, default: !1 },
|
|
4395
|
-
size: { default:
|
|
4392
|
+
size: { default: nr.medium }
|
|
4396
4393
|
}, {
|
|
4397
4394
|
modelValue: { type: Boolean, default: !1 },
|
|
4398
4395
|
modelModifiers: {}
|
|
4399
4396
|
}),
|
|
4400
4397
|
emits: ["update:modelValue"],
|
|
4401
4398
|
setup(e) {
|
|
4402
|
-
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(() => ({
|
|
4403
4400
|
toggle: !0,
|
|
4404
4401
|
[`toggle--${n.size}`]: !0,
|
|
4405
4402
|
"toggle--disabled": n.disabled,
|
|
@@ -4416,7 +4413,7 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4416
4413
|
required: n.required,
|
|
4417
4414
|
class: "toggle__input",
|
|
4418
4415
|
type: "checkbox"
|
|
4419
|
-
}, null, 8,
|
|
4416
|
+
}, null, 8, or), [
|
|
4420
4417
|
[Mt, t.value]
|
|
4421
4418
|
]),
|
|
4422
4419
|
P("label", {
|
|
@@ -4424,16 +4421,16 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4424
4421
|
class: "toggle__switch"
|
|
4425
4422
|
}, [...i[1] || (i[1] = [
|
|
4426
4423
|
P("span", { class: "toggle__slider" }, null, -1)
|
|
4427
|
-
])], 8,
|
|
4424
|
+
])], 8, rr)
|
|
4428
4425
|
], 2));
|
|
4429
4426
|
}
|
|
4430
|
-
}),
|
|
4427
|
+
}), br = /* @__PURE__ */ $(lr, [["__scopeId", "data-v-37a7880f"]]), ir = ["aria-current", "aria-label", "onClick", "onKeydown"], sr = {
|
|
4431
4428
|
key: 1,
|
|
4432
4429
|
class: "wizard__number"
|
|
4433
|
-
},
|
|
4430
|
+
}, ar = { class: "wizard__label" }, ur = ["tabindex", "onClick", "onKeydown"], cr = {
|
|
4434
4431
|
key: 0,
|
|
4435
4432
|
class: "wizard__separator"
|
|
4436
|
-
},
|
|
4433
|
+
}, gr = /* @__PURE__ */ I({
|
|
4437
4434
|
name: "CmcWizard",
|
|
4438
4435
|
__name: "CmcWizard",
|
|
4439
4436
|
props: {
|
|
@@ -4443,28 +4440,28 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4443
4440
|
},
|
|
4444
4441
|
emits: ["update:current"],
|
|
4445
4442
|
setup(e, { emit: n }) {
|
|
4446
|
-
const t = e, o =
|
|
4443
|
+
const t = e, o = x(() => t.steps.length - 1), r = n;
|
|
4447
4444
|
function l(f) {
|
|
4448
4445
|
t.clickable && r("update:current", f);
|
|
4449
4446
|
}
|
|
4450
4447
|
const i = (f) => ({
|
|
4451
4448
|
"wizard__step--completed": a(f),
|
|
4452
4449
|
"wizard__step--current": u(f),
|
|
4453
|
-
"wizard__step--upcoming":
|
|
4450
|
+
"wizard__step--upcoming": c(f)
|
|
4454
4451
|
}), s = (f) => ({
|
|
4455
4452
|
"wizard__label-text--completed": a(f),
|
|
4456
4453
|
"wizard__label-text--current": u(f),
|
|
4457
|
-
"wizard__label-text--upcoming":
|
|
4458
|
-
}), 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);
|
|
4459
4456
|
return (f, d) => (L(), h("div", {
|
|
4460
4457
|
class: F(["wizard", { "wizard--clickable": e.clickable }]),
|
|
4461
4458
|
role: "list"
|
|
4462
4459
|
}, [
|
|
4463
|
-
(L(!0), h(Z, null, H(e.steps, (
|
|
4460
|
+
(L(!0), h(Z, null, H(e.steps, (g, p) => (L(), h(Z, { key: p }, [
|
|
4464
4461
|
P("div", {
|
|
4465
4462
|
class: F(["wizard__step", i(p)]),
|
|
4466
4463
|
"aria-current": u(p) ? "step" : void 0,
|
|
4467
|
-
"aria-label": `step-${p + 1} : ${
|
|
4464
|
+
"aria-label": `step-${p + 1} : ${g.label}`,
|
|
4468
4465
|
onClick: (m) => l(p),
|
|
4469
4466
|
onKeydown: [
|
|
4470
4467
|
fe((m) => l(p), ["enter"]),
|
|
@@ -4475,9 +4472,9 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4475
4472
|
key: 0,
|
|
4476
4473
|
color: "secondary",
|
|
4477
4474
|
name: "check"
|
|
4478
|
-
})) : (L(), h("span",
|
|
4479
|
-
], 42,
|
|
4480
|
-
P("div",
|
|
4475
|
+
})) : (L(), h("span", sr, V(p + 1), 1))
|
|
4476
|
+
], 42, ir),
|
|
4477
|
+
P("div", ar, [
|
|
4481
4478
|
P("span", {
|
|
4482
4479
|
class: F(["wizard__label-text", s(p)]),
|
|
4483
4480
|
tabindex: e.clickable ? 0 : -1,
|
|
@@ -4486,47 +4483,47 @@ const No = ["aria-sort"], Uo = /* @__PURE__ */ I({
|
|
|
4486
4483
|
fe((m) => l(p), ["enter"]),
|
|
4487
4484
|
fe(Ge((m) => l(p), ["prevent"]), ["space"])
|
|
4488
4485
|
]
|
|
4489
|
-
}, V(
|
|
4486
|
+
}, V(g.label), 43, ur)
|
|
4490
4487
|
]),
|
|
4491
|
-
o.value !== p ? (L(), h("hr",
|
|
4488
|
+
o.value !== p ? (L(), h("hr", cr)) : z("", !0)
|
|
4492
4489
|
], 64))), 128))
|
|
4493
4490
|
], 2));
|
|
4494
4491
|
}
|
|
4495
|
-
}),
|
|
4492
|
+
}), $r = /* @__PURE__ */ $(gr, [["__scopeId", "data-v-f6bee53d"]]);
|
|
4496
4493
|
export {
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4494
|
+
pr as CmcAlert,
|
|
4495
|
+
Cr as CmcAutocomplete,
|
|
4496
|
+
Lr as CmcBadgePill,
|
|
4497
|
+
mr as CmcBreadcrumb,
|
|
4498
|
+
pn as CmcButton,
|
|
4502
4499
|
Hn as CmcButtonGroup,
|
|
4503
|
-
|
|
4504
|
-
|
|
4500
|
+
hr as CmcCertificate,
|
|
4501
|
+
yr as CmcCheckbox,
|
|
4505
4502
|
i1 as CmcHeading,
|
|
4506
4503
|
X as CmcIcon,
|
|
4507
|
-
|
|
4508
|
-
|
|
4504
|
+
Dt as CmcInput,
|
|
4505
|
+
vr as CmcLoading,
|
|
4509
4506
|
wr as CmcLogo,
|
|
4510
|
-
|
|
4507
|
+
D1 as CmcPagination,
|
|
4511
4508
|
xr as CmcSearch,
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
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,
|
|
4519
4516
|
l0 as buttonKindOptions,
|
|
4520
4517
|
s0 as buttonSizeOptions,
|
|
4521
4518
|
i0 as buttonVariantOptions,
|
|
4522
4519
|
Y as headingLevelOptions,
|
|
4523
|
-
|
|
4520
|
+
fr as iconColorOptions,
|
|
4524
4521
|
lt as iconNameOptions,
|
|
4525
|
-
|
|
4522
|
+
At as inputSizeOptions,
|
|
4526
4523
|
ze as inputTypeOptions,
|
|
4527
4524
|
le as inputVariantOptions,
|
|
4528
4525
|
U as primaryTypeOptions,
|
|
4529
4526
|
oe as rankOptions,
|
|
4530
4527
|
pe as selectVariantOptions,
|
|
4531
|
-
|
|
4528
|
+
K1 as statusOptions
|
|
4532
4529
|
};
|