randmarcomps 1.114.0 → 1.116.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/randmarcomps.d.ts +24 -0
- package/dist/randmarcomps.js +376 -80
- package/dist/randmarcomps.umd.cjs +57 -32
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -72,13 +72,13 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
72
72
|
K(null), te(null);
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
let he = ne.selectionStart, ge = ne.selectionEnd,
|
|
75
|
+
let he = ne.selectionStart, ge = ne.selectionEnd, we = ne.selectionDirection, ve = ne.maxLength, xe = ne.value, Se = W.current.prev, _e = -1, Ee = -1, Pe;
|
|
76
76
|
if (xe.length !== 0 && he !== null && ge !== null) {
|
|
77
77
|
let Me = he === ge, Oe = he === xe.length && xe.length < ve;
|
|
78
78
|
if (Me && !Oe) {
|
|
79
79
|
let Te = he;
|
|
80
|
-
if (Te === 0) _e = 0,
|
|
81
|
-
else if (Te === ve) _e = Te - 1,
|
|
80
|
+
if (Te === 0) _e = 0, Ee = 1, Pe = "forward";
|
|
81
|
+
else if (Te === ve) _e = Te - 1, Ee = Te, Pe = "backward";
|
|
82
82
|
else if (ve > 1 && xe.length > 1) {
|
|
83
83
|
let Ie = 0;
|
|
84
84
|
if (Se[0] !== null && Se[1] !== null) {
|
|
@@ -86,12 +86,12 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
86
86
|
let $e = Se[0] === Se[1] && Se[0] < ve;
|
|
87
87
|
Pe === "backward" && !$e && (Ie = -1);
|
|
88
88
|
}
|
|
89
|
-
_e = Ie + Te,
|
|
89
|
+
_e = Ie + Te, Ee = Ie + Te + 1;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
_e !== -1 &&
|
|
92
|
+
_e !== -1 && Ee !== -1 && _e !== Ee && V.current.setSelectionRange(_e, Ee, Pe);
|
|
93
93
|
}
|
|
94
|
-
let Re = _e !== -1 ? _e : he, Ce =
|
|
94
|
+
let Re = _e !== -1 ? _e : he, Ce = Ee !== -1 ? Ee : ge, Ae = Pe ?? we;
|
|
95
95
|
K(Re), te(Ce), W.current.prev = [Re, Ce, Ae];
|
|
96
96
|
}
|
|
97
97
|
if (document.addEventListener("selectionchange", pe, { capture: !0 }), pe(), document.activeElement === ne && U(!0), !document.getElementById("input-otp-style")) {
|
|
@@ -141,7 +141,7 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
141
141
|
if (!b && (!z.current.isIOS || !ne.clipboardData || !me)) return;
|
|
142
142
|
let ye = ne.clipboardData.getData("text/plain"), he = b ? b(ye) : ye;
|
|
143
143
|
ne.preventDefault();
|
|
144
|
-
let ge = (de = V.current) == null ? void 0 : de.selectionStart,
|
|
144
|
+
let ge = (de = V.current) == null ? void 0 : de.selectionStart, we = (pe = V.current) == null ? void 0 : pe.selectionEnd, ve = (ge !== we ? j.slice(0, ge) + he + j.slice(we) : j.slice(0, ge) + he + j.slice(ge)).slice(0, l);
|
|
145
145
|
if (ve.length > 0 && F && !F.test(ve)) return;
|
|
146
146
|
me.value = ve, L(ve);
|
|
147
147
|
let xe = Math.min(ve.length, l - 1), Se = ve.length;
|
|
@@ -277,49 +277,72 @@ const createLucideIcon = (e, t) => {
|
|
|
277
277
|
* This source code is licensed under the ISC license.
|
|
278
278
|
* See the LICENSE file in the root directory of this source tree.
|
|
279
279
|
*/
|
|
280
|
-
const __iconNode$
|
|
280
|
+
const __iconNode$B = [
|
|
281
281
|
["path", { d: "M12 8V4H8", key: "hb8ula" }],
|
|
282
282
|
["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
|
|
283
283
|
["path", { d: "M2 14h2", key: "vft8re" }],
|
|
284
284
|
["path", { d: "M20 14h2", key: "4cs60a" }],
|
|
285
285
|
["path", { d: "M15 13v2", key: "1xurst" }],
|
|
286
286
|
["path", { d: "M9 13v2", key: "rq6x2g" }]
|
|
287
|
-
], Bot = createLucideIcon("Bot", __iconNode$
|
|
287
|
+
], Bot = createLucideIcon("Bot", __iconNode$B);
|
|
288
288
|
/**
|
|
289
289
|
* @license lucide-react v0.479.0 - ISC
|
|
290
290
|
*
|
|
291
291
|
* This source code is licensed under the ISC license.
|
|
292
292
|
* See the LICENSE file in the root directory of this source tree.
|
|
293
293
|
*/
|
|
294
|
-
const __iconNode$
|
|
294
|
+
const __iconNode$A = [
|
|
295
|
+
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
296
|
+
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
297
|
+
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
298
|
+
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
299
|
+
], Calendar = createLucideIcon("Calendar", __iconNode$A);
|
|
295
300
|
/**
|
|
296
301
|
* @license lucide-react v0.479.0 - ISC
|
|
297
302
|
*
|
|
298
303
|
* This source code is licensed under the ISC license.
|
|
299
304
|
* See the LICENSE file in the root directory of this source tree.
|
|
300
305
|
*/
|
|
301
|
-
const __iconNode$
|
|
306
|
+
const __iconNode$z = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Check = createLucideIcon("Check", __iconNode$z);
|
|
302
307
|
/**
|
|
303
308
|
* @license lucide-react v0.479.0 - ISC
|
|
304
309
|
*
|
|
305
310
|
* This source code is licensed under the ISC license.
|
|
306
311
|
* See the LICENSE file in the root directory of this source tree.
|
|
307
312
|
*/
|
|
308
|
-
const __iconNode$
|
|
313
|
+
const __iconNode$y = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ChevronDown = createLucideIcon("ChevronDown", __iconNode$y);
|
|
309
314
|
/**
|
|
310
315
|
* @license lucide-react v0.479.0 - ISC
|
|
311
316
|
*
|
|
312
317
|
* This source code is licensed under the ISC license.
|
|
313
318
|
* See the LICENSE file in the root directory of this source tree.
|
|
314
319
|
*/
|
|
315
|
-
const __iconNode$
|
|
320
|
+
const __iconNode$x = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ChevronRight = createLucideIcon("ChevronRight", __iconNode$x);
|
|
316
321
|
/**
|
|
317
322
|
* @license lucide-react v0.479.0 - ISC
|
|
318
323
|
*
|
|
319
324
|
* This source code is licensed under the ISC license.
|
|
320
325
|
* See the LICENSE file in the root directory of this source tree.
|
|
321
326
|
*/
|
|
322
|
-
const __iconNode$
|
|
327
|
+
const __iconNode$w = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], ChevronUp = createLucideIcon("ChevronUp", __iconNode$w);
|
|
328
|
+
/**
|
|
329
|
+
* @license lucide-react v0.479.0 - ISC
|
|
330
|
+
*
|
|
331
|
+
* This source code is licensed under the ISC license.
|
|
332
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
333
|
+
*/
|
|
334
|
+
const __iconNode$v = [
|
|
335
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
336
|
+
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
337
|
+
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
338
|
+
], CircleAlert = createLucideIcon("CircleAlert", __iconNode$v);
|
|
339
|
+
/**
|
|
340
|
+
* @license lucide-react v0.479.0 - ISC
|
|
341
|
+
*
|
|
342
|
+
* This source code is licensed under the ISC license.
|
|
343
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
344
|
+
*/
|
|
345
|
+
const __iconNode$u = [
|
|
323
346
|
["path", { d: "M10.1 2.182a10 10 0 0 1 3.8 0", key: "5ilxe3" }],
|
|
324
347
|
["path", { d: "M13.9 21.818a10 10 0 0 1-3.8 0", key: "11zvb9" }],
|
|
325
348
|
["path", { d: "M17.609 3.721a10 10 0 0 1 2.69 2.7", key: "1iw5b2" }],
|
|
@@ -328,63 +351,63 @@ const __iconNode$r = [
|
|
|
328
351
|
["path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8", key: "qkgqxc" }],
|
|
329
352
|
["path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69", key: "1mcia2" }],
|
|
330
353
|
["path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7", key: "1fvljs" }]
|
|
331
|
-
], CircleDashed = createLucideIcon("CircleDashed", __iconNode$
|
|
354
|
+
], CircleDashed = createLucideIcon("CircleDashed", __iconNode$u);
|
|
332
355
|
/**
|
|
333
356
|
* @license lucide-react v0.479.0 - ISC
|
|
334
357
|
*
|
|
335
358
|
* This source code is licensed under the ISC license.
|
|
336
359
|
* See the LICENSE file in the root directory of this source tree.
|
|
337
360
|
*/
|
|
338
|
-
const __iconNode$
|
|
361
|
+
const __iconNode$t = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Circle = createLucideIcon("Circle", __iconNode$t);
|
|
339
362
|
/**
|
|
340
363
|
* @license lucide-react v0.479.0 - ISC
|
|
341
364
|
*
|
|
342
365
|
* This source code is licensed under the ISC license.
|
|
343
366
|
* See the LICENSE file in the root directory of this source tree.
|
|
344
367
|
*/
|
|
345
|
-
const __iconNode$
|
|
368
|
+
const __iconNode$s = [
|
|
346
369
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
347
370
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
348
|
-
], Copy = createLucideIcon("Copy", __iconNode$
|
|
371
|
+
], Copy = createLucideIcon("Copy", __iconNode$s);
|
|
349
372
|
/**
|
|
350
373
|
* @license lucide-react v0.479.0 - ISC
|
|
351
374
|
*
|
|
352
375
|
* This source code is licensed under the ISC license.
|
|
353
376
|
* See the LICENSE file in the root directory of this source tree.
|
|
354
377
|
*/
|
|
355
|
-
const __iconNode$
|
|
378
|
+
const __iconNode$r = [
|
|
356
379
|
["line", { x1: "12", x2: "12", y1: "2", y2: "22", key: "7eqyqh" }],
|
|
357
380
|
["path", { d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6", key: "1b0p4s" }]
|
|
358
|
-
], DollarSign = createLucideIcon("DollarSign", __iconNode$
|
|
381
|
+
], DollarSign = createLucideIcon("DollarSign", __iconNode$r);
|
|
359
382
|
/**
|
|
360
383
|
* @license lucide-react v0.479.0 - ISC
|
|
361
384
|
*
|
|
362
385
|
* This source code is licensed under the ISC license.
|
|
363
386
|
* See the LICENSE file in the root directory of this source tree.
|
|
364
387
|
*/
|
|
365
|
-
const __iconNode$
|
|
388
|
+
const __iconNode$q = [
|
|
366
389
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
367
390
|
["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
|
|
368
391
|
["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
|
|
369
|
-
], Download = createLucideIcon("Download", __iconNode$
|
|
392
|
+
], Download = createLucideIcon("Download", __iconNode$q);
|
|
370
393
|
/**
|
|
371
394
|
* @license lucide-react v0.479.0 - ISC
|
|
372
395
|
*
|
|
373
396
|
* This source code is licensed under the ISC license.
|
|
374
397
|
* See the LICENSE file in the root directory of this source tree.
|
|
375
398
|
*/
|
|
376
|
-
const __iconNode$
|
|
399
|
+
const __iconNode$p = [
|
|
377
400
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
378
401
|
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
|
379
402
|
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
380
|
-
], EllipsisVertical = createLucideIcon("EllipsisVertical", __iconNode$
|
|
403
|
+
], EllipsisVertical = createLucideIcon("EllipsisVertical", __iconNode$p);
|
|
381
404
|
/**
|
|
382
405
|
* @license lucide-react v0.479.0 - ISC
|
|
383
406
|
*
|
|
384
407
|
* This source code is licensed under the ISC license.
|
|
385
408
|
* See the LICENSE file in the root directory of this source tree.
|
|
386
409
|
*/
|
|
387
|
-
const __iconNode$
|
|
410
|
+
const __iconNode$o = [
|
|
388
411
|
[
|
|
389
412
|
"path",
|
|
390
413
|
{
|
|
@@ -393,25 +416,25 @@ const __iconNode$l = [
|
|
|
393
416
|
}
|
|
394
417
|
],
|
|
395
418
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
396
|
-
], Eye = createLucideIcon("Eye", __iconNode$
|
|
419
|
+
], Eye = createLucideIcon("Eye", __iconNode$o);
|
|
397
420
|
/**
|
|
398
421
|
* @license lucide-react v0.479.0 - ISC
|
|
399
422
|
*
|
|
400
423
|
* This source code is licensed under the ISC license.
|
|
401
424
|
* See the LICENSE file in the root directory of this source tree.
|
|
402
425
|
*/
|
|
403
|
-
const __iconNode$
|
|
426
|
+
const __iconNode$n = [
|
|
404
427
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
405
428
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
406
429
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
407
|
-
], Globe = createLucideIcon("Globe", __iconNode$
|
|
430
|
+
], Globe = createLucideIcon("Globe", __iconNode$n);
|
|
408
431
|
/**
|
|
409
432
|
* @license lucide-react v0.479.0 - ISC
|
|
410
433
|
*
|
|
411
434
|
* This source code is licensed under the ISC license.
|
|
412
435
|
* See the LICENSE file in the root directory of this source tree.
|
|
413
436
|
*/
|
|
414
|
-
const __iconNode$
|
|
437
|
+
const __iconNode$m = [
|
|
415
438
|
["path", { d: "m11 17 2 2a1 1 0 1 0 3-3", key: "efffak" }],
|
|
416
439
|
[
|
|
417
440
|
"path",
|
|
@@ -423,81 +446,99 @@ const __iconNode$j = [
|
|
|
423
446
|
["path", { d: "m21 3 1 11h-2", key: "1tisrp" }],
|
|
424
447
|
["path", { d: "M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3", key: "1uvwmv" }],
|
|
425
448
|
["path", { d: "M3 4h8", key: "1ep09j" }]
|
|
426
|
-
], Handshake = createLucideIcon("Handshake", __iconNode$
|
|
449
|
+
], Handshake = createLucideIcon("Handshake", __iconNode$m);
|
|
427
450
|
/**
|
|
428
451
|
* @license lucide-react v0.479.0 - ISC
|
|
429
452
|
*
|
|
430
453
|
* This source code is licensed under the ISC license.
|
|
431
454
|
* See the LICENSE file in the root directory of this source tree.
|
|
432
455
|
*/
|
|
433
|
-
const __iconNode$
|
|
456
|
+
const __iconNode$l = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], LoaderCircle = createLucideIcon("LoaderCircle", __iconNode$l);
|
|
434
457
|
/**
|
|
435
458
|
* @license lucide-react v0.479.0 - ISC
|
|
436
459
|
*
|
|
437
460
|
* This source code is licensed under the ISC license.
|
|
438
461
|
* See the LICENSE file in the root directory of this source tree.
|
|
439
462
|
*/
|
|
440
|
-
const __iconNode$
|
|
463
|
+
const __iconNode$k = [
|
|
441
464
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }],
|
|
442
465
|
["polyline", { points: "16 17 21 12 16 7", key: "1gabdz" }],
|
|
443
466
|
["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }]
|
|
444
|
-
], LogOut = createLucideIcon("LogOut", __iconNode$
|
|
467
|
+
], LogOut = createLucideIcon("LogOut", __iconNode$k);
|
|
445
468
|
/**
|
|
446
469
|
* @license lucide-react v0.479.0 - ISC
|
|
447
470
|
*
|
|
448
471
|
* This source code is licensed under the ISC license.
|
|
449
472
|
* See the LICENSE file in the root directory of this source tree.
|
|
450
473
|
*/
|
|
451
|
-
const __iconNode$
|
|
474
|
+
const __iconNode$j = [
|
|
452
475
|
["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
|
|
453
476
|
["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }]
|
|
454
|
-
], Mail = createLucideIcon("Mail", __iconNode$
|
|
477
|
+
], Mail = createLucideIcon("Mail", __iconNode$j);
|
|
455
478
|
/**
|
|
456
479
|
* @license lucide-react v0.479.0 - ISC
|
|
457
480
|
*
|
|
458
481
|
* This source code is licensed under the ISC license.
|
|
459
482
|
* See the LICENSE file in the root directory of this source tree.
|
|
460
483
|
*/
|
|
461
|
-
const __iconNode$
|
|
484
|
+
const __iconNode$i = [
|
|
462
485
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
463
486
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
464
487
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
465
|
-
], Menu$1 = createLucideIcon("Menu", __iconNode$
|
|
488
|
+
], Menu$1 = createLucideIcon("Menu", __iconNode$i);
|
|
466
489
|
/**
|
|
467
490
|
* @license lucide-react v0.479.0 - ISC
|
|
468
491
|
*
|
|
469
492
|
* This source code is licensed under the ISC license.
|
|
470
493
|
* See the LICENSE file in the root directory of this source tree.
|
|
471
494
|
*/
|
|
472
|
-
const __iconNode$
|
|
495
|
+
const __iconNode$h = [
|
|
473
496
|
["path", { d: "M19 15v-2a2 2 0 1 0-4 0v2", key: "h3d1vz" }],
|
|
474
497
|
["path", { d: "M9 17H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3.5", key: "xsnnhn" }],
|
|
475
498
|
["rect", { x: "13", y: "15", width: "8", height: "5", rx: "1", key: "1ccwuk" }]
|
|
476
|
-
], MessageSquareLock = createLucideIcon("MessageSquareLock", __iconNode$
|
|
499
|
+
], MessageSquareLock = createLucideIcon("MessageSquareLock", __iconNode$h);
|
|
477
500
|
/**
|
|
478
501
|
* @license lucide-react v0.479.0 - ISC
|
|
479
502
|
*
|
|
480
503
|
* This source code is licensed under the ISC license.
|
|
481
504
|
* See the LICENSE file in the root directory of this source tree.
|
|
482
505
|
*/
|
|
483
|
-
const __iconNode$
|
|
506
|
+
const __iconNode$g = [["path", { d: "M5 12h14", key: "1ays0h" }]], Minus = createLucideIcon("Minus", __iconNode$g);
|
|
484
507
|
/**
|
|
485
508
|
* @license lucide-react v0.479.0 - ISC
|
|
486
509
|
*
|
|
487
510
|
* This source code is licensed under the ISC license.
|
|
488
511
|
* See the LICENSE file in the root directory of this source tree.
|
|
489
512
|
*/
|
|
490
|
-
const __iconNode$
|
|
513
|
+
const __iconNode$f = [
|
|
514
|
+
[
|
|
515
|
+
"path",
|
|
516
|
+
{
|
|
517
|
+
d: "M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",
|
|
518
|
+
key: "1a0edw"
|
|
519
|
+
}
|
|
520
|
+
],
|
|
521
|
+
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
522
|
+
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
523
|
+
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
524
|
+
], Package = createLucideIcon("Package", __iconNode$f);
|
|
525
|
+
/**
|
|
526
|
+
* @license lucide-react v0.479.0 - ISC
|
|
527
|
+
*
|
|
528
|
+
* This source code is licensed under the ISC license.
|
|
529
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
530
|
+
*/
|
|
531
|
+
const __iconNode$e = [
|
|
491
532
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
492
533
|
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
493
|
-
], PanelLeft = createLucideIcon("PanelLeft", __iconNode$
|
|
534
|
+
], PanelLeft = createLucideIcon("PanelLeft", __iconNode$e);
|
|
494
535
|
/**
|
|
495
536
|
* @license lucide-react v0.479.0 - ISC
|
|
496
537
|
*
|
|
497
538
|
* This source code is licensed under the ISC license.
|
|
498
539
|
* See the LICENSE file in the root directory of this source tree.
|
|
499
540
|
*/
|
|
500
|
-
const __iconNode$
|
|
541
|
+
const __iconNode$d = [
|
|
501
542
|
[
|
|
502
543
|
"path",
|
|
503
544
|
{
|
|
@@ -505,21 +546,21 @@ const __iconNode$b = [
|
|
|
505
546
|
key: "foiqr5"
|
|
506
547
|
}
|
|
507
548
|
]
|
|
508
|
-
], Phone = createLucideIcon("Phone", __iconNode$
|
|
549
|
+
], Phone = createLucideIcon("Phone", __iconNode$d);
|
|
509
550
|
/**
|
|
510
551
|
* @license lucide-react v0.479.0 - ISC
|
|
511
552
|
*
|
|
512
553
|
* This source code is licensed under the ISC license.
|
|
513
554
|
* See the LICENSE file in the root directory of this source tree.
|
|
514
555
|
*/
|
|
515
|
-
const __iconNode$
|
|
556
|
+
const __iconNode$c = [["polygon", { points: "6 3 20 12 6 21 6 3", key: "1oa8hb" }]], Play = createLucideIcon("Play", __iconNode$c);
|
|
516
557
|
/**
|
|
517
558
|
* @license lucide-react v0.479.0 - ISC
|
|
518
559
|
*
|
|
519
560
|
* This source code is licensed under the ISC license.
|
|
520
561
|
* See the LICENSE file in the root directory of this source tree.
|
|
521
562
|
*/
|
|
522
|
-
const __iconNode$
|
|
563
|
+
const __iconNode$b = [
|
|
523
564
|
["rect", { width: "5", height: "5", x: "3", y: "3", rx: "1", key: "1tu5fj" }],
|
|
524
565
|
["rect", { width: "5", height: "5", x: "16", y: "3", rx: "1", key: "1v8r4q" }],
|
|
525
566
|
["rect", { width: "5", height: "5", x: "3", y: "16", rx: "1", key: "1x03jg" }],
|
|
@@ -532,36 +573,48 @@ const __iconNode$9 = [
|
|
|
532
573
|
["path", { d: "M16 12h1", key: "1slzba" }],
|
|
533
574
|
["path", { d: "M21 12v.01", key: "1lwtk9" }],
|
|
534
575
|
["path", { d: "M12 21v-1", key: "1880an" }]
|
|
535
|
-
], QrCode = createLucideIcon("QrCode", __iconNode$
|
|
576
|
+
], QrCode = createLucideIcon("QrCode", __iconNode$b);
|
|
536
577
|
/**
|
|
537
578
|
* @license lucide-react v0.479.0 - ISC
|
|
538
579
|
*
|
|
539
580
|
* This source code is licensed under the ISC license.
|
|
540
581
|
* See the LICENSE file in the root directory of this source tree.
|
|
541
582
|
*/
|
|
542
|
-
const __iconNode$
|
|
583
|
+
const __iconNode$a = [
|
|
584
|
+
["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
|
|
585
|
+
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
586
|
+
["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
|
|
587
|
+
["path", { d: "M16 16h5v5", key: "ccwih5" }]
|
|
588
|
+
], RefreshCcw = createLucideIcon("RefreshCcw", __iconNode$a);
|
|
589
|
+
/**
|
|
590
|
+
* @license lucide-react v0.479.0 - ISC
|
|
591
|
+
*
|
|
592
|
+
* This source code is licensed under the ISC license.
|
|
593
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
594
|
+
*/
|
|
595
|
+
const __iconNode$9 = [
|
|
543
596
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
544
597
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
545
598
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
546
599
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
547
|
-
], RefreshCw = createLucideIcon("RefreshCw", __iconNode$
|
|
600
|
+
], RefreshCw = createLucideIcon("RefreshCw", __iconNode$9);
|
|
548
601
|
/**
|
|
549
602
|
* @license lucide-react v0.479.0 - ISC
|
|
550
603
|
*
|
|
551
604
|
* This source code is licensed under the ISC license.
|
|
552
605
|
* See the LICENSE file in the root directory of this source tree.
|
|
553
606
|
*/
|
|
554
|
-
const __iconNode$
|
|
607
|
+
const __iconNode$8 = [
|
|
555
608
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
556
609
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
557
|
-
], Search = createLucideIcon("Search", __iconNode$
|
|
610
|
+
], Search = createLucideIcon("Search", __iconNode$8);
|
|
558
611
|
/**
|
|
559
612
|
* @license lucide-react v0.479.0 - ISC
|
|
560
613
|
*
|
|
561
614
|
* This source code is licensed under the ISC license.
|
|
562
615
|
* See the LICENSE file in the root directory of this source tree.
|
|
563
616
|
*/
|
|
564
|
-
const __iconNode$
|
|
617
|
+
const __iconNode$7 = [
|
|
565
618
|
[
|
|
566
619
|
"path",
|
|
567
620
|
{
|
|
@@ -570,14 +623,14 @@ const __iconNode$6 = [
|
|
|
570
623
|
}
|
|
571
624
|
],
|
|
572
625
|
["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
|
|
573
|
-
], Send = createLucideIcon("Send", __iconNode$
|
|
626
|
+
], Send = createLucideIcon("Send", __iconNode$7);
|
|
574
627
|
/**
|
|
575
628
|
* @license lucide-react v0.479.0 - ISC
|
|
576
629
|
*
|
|
577
630
|
* This source code is licensed under the ISC license.
|
|
578
631
|
* See the LICENSE file in the root directory of this source tree.
|
|
579
632
|
*/
|
|
580
|
-
const __iconNode$
|
|
633
|
+
const __iconNode$6 = [
|
|
581
634
|
[
|
|
582
635
|
"path",
|
|
583
636
|
{
|
|
@@ -586,14 +639,14 @@ const __iconNode$5 = [
|
|
|
586
639
|
}
|
|
587
640
|
],
|
|
588
641
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
589
|
-
], ShieldCheck = createLucideIcon("ShieldCheck", __iconNode$
|
|
642
|
+
], ShieldCheck = createLucideIcon("ShieldCheck", __iconNode$6);
|
|
590
643
|
/**
|
|
591
644
|
* @license lucide-react v0.479.0 - ISC
|
|
592
645
|
*
|
|
593
646
|
* This source code is licensed under the ISC license.
|
|
594
647
|
* See the LICENSE file in the root directory of this source tree.
|
|
595
648
|
*/
|
|
596
|
-
const __iconNode$
|
|
649
|
+
const __iconNode$5 = [
|
|
597
650
|
["circle", { cx: "8", cy: "21", r: "1", key: "jimo8o" }],
|
|
598
651
|
["circle", { cx: "19", cy: "21", r: "1", key: "13723u" }],
|
|
599
652
|
[
|
|
@@ -603,14 +656,14 @@ const __iconNode$4 = [
|
|
|
603
656
|
key: "9zh506"
|
|
604
657
|
}
|
|
605
658
|
]
|
|
606
|
-
], ShoppingCart = createLucideIcon("ShoppingCart", __iconNode$
|
|
659
|
+
], ShoppingCart = createLucideIcon("ShoppingCart", __iconNode$5);
|
|
607
660
|
/**
|
|
608
661
|
* @license lucide-react v0.479.0 - ISC
|
|
609
662
|
*
|
|
610
663
|
* This source code is licensed under the ISC license.
|
|
611
664
|
* See the LICENSE file in the root directory of this source tree.
|
|
612
665
|
*/
|
|
613
|
-
const __iconNode$
|
|
666
|
+
const __iconNode$4 = [
|
|
614
667
|
["path", { d: "m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7", key: "ztvudi" }],
|
|
615
668
|
["path", { d: "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8", key: "1b2hhj" }],
|
|
616
669
|
["path", { d: "M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4", key: "2ebpfo" }],
|
|
@@ -622,14 +675,14 @@ const __iconNode$3 = [
|
|
|
622
675
|
key: "6c3vgh"
|
|
623
676
|
}
|
|
624
677
|
]
|
|
625
|
-
], Store = createLucideIcon("Store", __iconNode$
|
|
678
|
+
], Store = createLucideIcon("Store", __iconNode$4);
|
|
626
679
|
/**
|
|
627
680
|
* @license lucide-react v0.479.0 - ISC
|
|
628
681
|
*
|
|
629
682
|
* This source code is licensed under the ISC license.
|
|
630
683
|
* See the LICENSE file in the root directory of this source tree.
|
|
631
684
|
*/
|
|
632
|
-
const __iconNode$
|
|
685
|
+
const __iconNode$3 = [
|
|
633
686
|
[
|
|
634
687
|
"path",
|
|
635
688
|
{
|
|
@@ -639,7 +692,26 @@ const __iconNode$2 = [
|
|
|
639
692
|
],
|
|
640
693
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
641
694
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
642
|
-
], TriangleAlert = createLucideIcon("TriangleAlert", __iconNode$
|
|
695
|
+
], TriangleAlert = createLucideIcon("TriangleAlert", __iconNode$3);
|
|
696
|
+
/**
|
|
697
|
+
* @license lucide-react v0.479.0 - ISC
|
|
698
|
+
*
|
|
699
|
+
* This source code is licensed under the ISC license.
|
|
700
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
701
|
+
*/
|
|
702
|
+
const __iconNode$2 = [
|
|
703
|
+
["path", { d: "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2", key: "wrbu53" }],
|
|
704
|
+
["path", { d: "M15 18H9", key: "1lyqi6" }],
|
|
705
|
+
[
|
|
706
|
+
"path",
|
|
707
|
+
{
|
|
708
|
+
d: "M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",
|
|
709
|
+
key: "lysw3i"
|
|
710
|
+
}
|
|
711
|
+
],
|
|
712
|
+
["circle", { cx: "17", cy: "18", r: "2", key: "332jqn" }],
|
|
713
|
+
["circle", { cx: "7", cy: "18", r: "2", key: "19iecd" }]
|
|
714
|
+
], Truck = createLucideIcon("Truck", __iconNode$2);
|
|
643
715
|
/**
|
|
644
716
|
* @license lucide-react v0.479.0 - ISC
|
|
645
717
|
*
|
|
@@ -26446,14 +26518,14 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26446
26518
|
graphicalItems: [G],
|
|
26447
26519
|
dataStartIndex: N,
|
|
26448
26520
|
dataEndIndex: D
|
|
26449
|
-
}), K = G.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, G.type.defaultProps), G.props) : G.props, ee = K.dataKey, te = K.maxBarSize, oe = K["".concat(z, "Id")], ce = K["".concat(W, "Id")], ae = {}, le = f.reduce(function(
|
|
26450
|
-
var xe, Se, _e = A["".concat(ve.axisType, "Map")],
|
|
26451
|
-
_e && _e[
|
|
26521
|
+
}), K = G.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, G.type.defaultProps), G.props) : G.props, ee = K.dataKey, te = K.maxBarSize, oe = K["".concat(z, "Id")], ce = K["".concat(W, "Id")], ae = {}, le = f.reduce(function(we, ve) {
|
|
26522
|
+
var xe, Se, _e = A["".concat(ve.axisType, "Map")], Ee = K["".concat(ve.axisType, "Id")];
|
|
26523
|
+
_e && _e[Ee] || ve.axisType === "zAxis" || (process.env.NODE_ENV !== "production" ? invariant(!1, "Specifying a(n) ".concat(ve.axisType, "Id requires a corresponding ").concat(
|
|
26452
26524
|
ve.axisType,
|
|
26453
26525
|
"Id on the targeted graphical component "
|
|
26454
26526
|
).concat((xe = G == null || (Se = G.type) === null || Se === void 0 ? void 0 : Se.displayName) !== null && xe !== void 0 ? xe : "")) : invariant());
|
|
26455
|
-
var Pe = _e[
|
|
26456
|
-
return _objectSpread(_objectSpread({},
|
|
26527
|
+
var Pe = _e[Ee];
|
|
26528
|
+
return _objectSpread(_objectSpread({}, we), {}, _defineProperty(_defineProperty({}, ve.axisType, Pe), "".concat(ve.axisType, "Ticks"), getTicksOfAxis(Pe)));
|
|
26457
26529
|
}, ae), se = le[W], ie = le["".concat(W, "Ticks")], ue = M && M[oe] && M[oe].hasStack && getStackedDataOfItem(G, M[oe].stackGroups), J = getDisplayName(G.type).indexOf("Bar") >= 0, fe = getBandSizeOfAxis(se, ie), ne = [], de = Q && getBarSizeList({
|
|
26458
26530
|
barSize: j,
|
|
26459
26531
|
stackGroups: M,
|
|
@@ -26467,10 +26539,10 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26467
26539
|
bandSize: he !== fe ? he : fe,
|
|
26468
26540
|
sizeList: de[ce],
|
|
26469
26541
|
maxBarSize: ye
|
|
26470
|
-
}), he !== fe && (ne = ne.map(function(
|
|
26471
|
-
return _objectSpread(_objectSpread({},
|
|
26472
|
-
position: _objectSpread(_objectSpread({},
|
|
26473
|
-
offset:
|
|
26542
|
+
}), he !== fe && (ne = ne.map(function(we) {
|
|
26543
|
+
return _objectSpread(_objectSpread({}, we), {}, {
|
|
26544
|
+
position: _objectSpread(_objectSpread({}, we.position), {}, {
|
|
26545
|
+
offset: we.position.offset - he / 2
|
|
26474
26546
|
})
|
|
26475
26547
|
});
|
|
26476
26548
|
}));
|
|
@@ -26865,10 +26937,10 @@ var getTooltipContent = function(t, n, i, o) {
|
|
|
26865
26937
|
} else {
|
|
26866
26938
|
var de, pe = (de = T.getItemByXY(T.state.activeCoordinate)) !== null && de !== void 0 ? de : {
|
|
26867
26939
|
graphicalItem: se
|
|
26868
|
-
}, me = pe.graphicalItem, ye = me.item, he = ye === void 0 ? O : ye, ge = me.childIndex,
|
|
26940
|
+
}, me = pe.graphicalItem, ye = me.item, he = ye === void 0 ? O : ye, ge = me.childIndex, we = _objectSpread(_objectSpread(_objectSpread({}, j.props), le), {}, {
|
|
26869
26941
|
activeIndex: ge
|
|
26870
26942
|
});
|
|
26871
|
-
return [/* @__PURE__ */ cloneElement(he,
|
|
26943
|
+
return [/* @__PURE__ */ cloneElement(he, we), null, null];
|
|
26872
26944
|
}
|
|
26873
26945
|
return U ? [se, null, null] : [se, null];
|
|
26874
26946
|
}), _defineProperty(T, "renderCustomized", function(O, N, D) {
|
|
@@ -28932,8 +29004,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
28932
29004
|
function E(q, G, U, Z, K, ee, te, oe, ce, ae, le, se, ie, ue, J, fe) {
|
|
28933
29005
|
var ne = this.props;
|
|
28934
29006
|
if (q === 1 && G === 0 && U === 0 && Z === 0 && K === 0 && ee === 1 && te === 0 && oe === 0 && ce === 0 && ae === 0 && le === 1 && se === 0) return ne[12] = ne[12] * q + ne[15] * ie, ne[13] = ne[13] * ee + ne[15] * ue, ne[14] = ne[14] * le + ne[15] * J, ne[15] *= fe, this._identityCalculated = !1, this;
|
|
28935
|
-
var de = ne[0], pe = ne[1], me = ne[2], ye = ne[3], he = ne[4], ge = ne[5],
|
|
28936
|
-
return ne[0] = de * q + pe * K + me * ce + ye * ie, ne[1] = de * G + pe * ee + me * ae + ye * ue, ne[2] = de * U + pe * te + me * le + ye * J, ne[3] = de * Z + pe * oe + me * se + ye * fe, ne[4] = he * q + ge * K +
|
|
29007
|
+
var de = ne[0], pe = ne[1], me = ne[2], ye = ne[3], he = ne[4], ge = ne[5], we = ne[6], ve = ne[7], xe = ne[8], Se = ne[9], _e = ne[10], Ee = ne[11], Pe = ne[12], Re = ne[13], Ce = ne[14], Ae = ne[15];
|
|
29008
|
+
return ne[0] = de * q + pe * K + me * ce + ye * ie, ne[1] = de * G + pe * ee + me * ae + ye * ue, ne[2] = de * U + pe * te + me * le + ye * J, ne[3] = de * Z + pe * oe + me * se + ye * fe, ne[4] = he * q + ge * K + we * ce + ve * ie, ne[5] = he * G + ge * ee + we * ae + ve * ue, ne[6] = he * U + ge * te + we * le + ve * J, ne[7] = he * Z + ge * oe + we * se + ve * fe, ne[8] = xe * q + Se * K + _e * ce + Ee * ie, ne[9] = xe * G + Se * ee + _e * ae + Ee * ue, ne[10] = xe * U + Se * te + _e * le + Ee * J, ne[11] = xe * Z + Se * oe + _e * se + Ee * fe, ne[12] = Pe * q + Re * K + Ce * ce + Ae * ie, ne[13] = Pe * G + Re * ee + Ce * ae + Ae * ue, ne[14] = Pe * U + Re * te + Ce * le + Ae * J, ne[15] = Pe * Z + Re * oe + Ce * se + Ae * fe, this._identityCalculated = !1, this;
|
|
28937
29009
|
}
|
|
28938
29010
|
function S(q) {
|
|
28939
29011
|
var G = q.props;
|
|
@@ -30665,15 +30737,15 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30665
30737
|
W = O.length;
|
|
30666
30738
|
var Z, K, ee, te, oe, ce, ae, le, se, ie, ue, J, fe = -1, ne = d, de = b, pe = g, me = -1, ye = "", he = this.defaultPropsArray;
|
|
30667
30739
|
if (e.j === 2 || e.j === 1) {
|
|
30668
|
-
var ge = 0,
|
|
30740
|
+
var ge = 0, we = 0, ve = e.j === 2 ? -0.5 : -1, xe = 0, Se = !0;
|
|
30669
30741
|
for (o = 0; o < l; o += 1) if (L[o].n) {
|
|
30670
|
-
for (ge && (ge +=
|
|
30742
|
+
for (ge && (ge += we); xe < o; ) L[xe].animatorJustifyOffset = ge, xe += 1;
|
|
30671
30743
|
ge = 0, Se = !0;
|
|
30672
30744
|
} else {
|
|
30673
|
-
for (z = 0; z < W; z += 1) (H = O[z].a).t.propType && (Se && e.j === 2 && (
|
|
30745
|
+
for (z = 0; z < W; z += 1) (H = O[z].a).t.propType && (Se && e.j === 2 && (we += H.t.v * ve), (q = O[z].s.getMult(L[o].anIndexes[z], N.a[z].s.totalChars)).length ? ge += H.t.v * q[0] * ve : ge += H.t.v * q * ve);
|
|
30674
30746
|
Se = !1;
|
|
30675
30747
|
}
|
|
30676
|
-
for (ge && (ge +=
|
|
30748
|
+
for (ge && (ge += we); xe < o; ) L[xe].animatorJustifyOffset = ge, xe += 1;
|
|
30677
30749
|
}
|
|
30678
30750
|
for (o = 0; o < l; o += 1) {
|
|
30679
30751
|
if (D.reset(), te = 1, L[o].n) n = 0, i += e.yOffset, i += U ? 1 : 0, d = ne, U = !1, this._hasMaskedPath && (g = pe, _ = (R = E[b = de].points)[g - 1], S = (f = R[g]).partialLength, p = 0), ye = "", ue = "", se = "", J = "", he = this.defaultPropsArray;
|
|
@@ -30709,8 +30781,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30709
30781
|
if (e.strokeWidthAnim && (se = ce < 0 ? 0 : ce), e.strokeColorAnim && (ie = "rgb(" + Math.round(255 * oe[0]) + "," + Math.round(255 * oe[1]) + "," + Math.round(255 * oe[2]) + ")"), e.fillColorAnim && e.fc && (ue = "rgb(" + Math.round(255 * ae[0]) + "," + Math.round(255 * ae[1]) + "," + Math.round(255 * ae[2]) + ")"), this._hasMaskedPath) {
|
|
30710
30782
|
if (D.translate(0, -e.ls), D.translate(0, T[1] * G * 0.01 + i, 0), this._pathData.p.v) {
|
|
30711
30783
|
I = (f.point[1] - _.point[1]) / (f.point[0] - _.point[0]);
|
|
30712
|
-
var
|
|
30713
|
-
f.point[0] < _.point[0] && (
|
|
30784
|
+
var Ee = 180 * Math.atan(I) / Math.PI;
|
|
30785
|
+
f.point[0] < _.point[0] && (Ee += 180), D.rotate(-Ee * Math.PI / 180);
|
|
30714
30786
|
}
|
|
30715
30787
|
D.translate(K, ee, 0), d -= T[0] * L[o].an * 5e-3, L[o + 1] && fe !== L[o + 1].ind && (d += L[o].an / 2, d += 1e-3 * e.tr * e.finalSize);
|
|
30716
30788
|
} else {
|
|
@@ -50328,7 +50400,229 @@ function ManufacturerReorderingCard({
|
|
|
50328
50400
|
] }) })
|
|
50329
50401
|
] });
|
|
50330
50402
|
}
|
|
50403
|
+
function ActiveOrdersCard({ orders: e, loading: t = !1 }) {
|
|
50404
|
+
const n = (l) => new Intl.NumberFormat("en-CA", {
|
|
50405
|
+
style: "currency",
|
|
50406
|
+
currency: "CAD",
|
|
50407
|
+
minimumFractionDigits: 2,
|
|
50408
|
+
maximumFractionDigits: 2
|
|
50409
|
+
}).format(l), i = useMemo(() => {
|
|
50410
|
+
if (!e || e.length === 0)
|
|
50411
|
+
return {
|
|
50412
|
+
all: { orders: 0, amount: 0 },
|
|
50413
|
+
processing: { orders: 0, amount: 0 },
|
|
50414
|
+
shipped: { orders: 0, amount: 0 },
|
|
50415
|
+
delayed: { orders: 0, amount: 0 }
|
|
50416
|
+
};
|
|
50417
|
+
const l = e.filter((C) => C.DocumentType === "Order"), u = e.filter((C) => C.DocumentType === "Shipment"), d = l.filter((C) => C.WarehouseCode !== "3PLE"), f = d.reduce((C, A) => C + (A.Quantity || 0), 0), p = d.reduce((C, A) => C + (A.ExtendedPrice || 0), 0), m = l.filter((C) => C.WarehouseCode === "3PLE"), g = m.reduce((C, A) => C + (A.Quantity || 0), 0), b = m.reduce((C, A) => C + (A.ExtendedPrice || 0), 0), _ = u.length, R = u.reduce((C, A) => C + (A.ExtendedPrice || 0), 0), E = f + g + _, S = p + b + R;
|
|
50418
|
+
return {
|
|
50419
|
+
all: { orders: E, amount: S },
|
|
50420
|
+
processing: { orders: f, amount: p },
|
|
50421
|
+
shipped: { orders: _, amount: R },
|
|
50422
|
+
delayed: { orders: g, amount: b }
|
|
50423
|
+
};
|
|
50424
|
+
}, [e]), o = [
|
|
50425
|
+
{
|
|
50426
|
+
name: "All",
|
|
50427
|
+
icon: Package,
|
|
50428
|
+
color: "bg-blue-500",
|
|
50429
|
+
textColor: "text-blue-600",
|
|
50430
|
+
orders: i.all.orders,
|
|
50431
|
+
amount: i.all.amount
|
|
50432
|
+
},
|
|
50433
|
+
{
|
|
50434
|
+
name: "Processing",
|
|
50435
|
+
icon: RefreshCcw,
|
|
50436
|
+
color: "bg-yellow-500",
|
|
50437
|
+
textColor: "text-yellow-600",
|
|
50438
|
+
orders: i.processing.orders,
|
|
50439
|
+
amount: i.processing.amount
|
|
50440
|
+
},
|
|
50441
|
+
{
|
|
50442
|
+
name: "Shipped",
|
|
50443
|
+
icon: Truck,
|
|
50444
|
+
color: "bg-green-500",
|
|
50445
|
+
textColor: "text-green-600",
|
|
50446
|
+
orders: i.shipped.orders,
|
|
50447
|
+
amount: i.shipped.amount
|
|
50448
|
+
},
|
|
50449
|
+
{
|
|
50450
|
+
name: "Delayed",
|
|
50451
|
+
icon: CircleAlert,
|
|
50452
|
+
color: "bg-red-500",
|
|
50453
|
+
textColor: "text-red-600",
|
|
50454
|
+
orders: i.delayed.orders,
|
|
50455
|
+
amount: i.delayed.amount
|
|
50456
|
+
}
|
|
50457
|
+
];
|
|
50458
|
+
return t ? /* @__PURE__ */ jsxs(Card, { children: [
|
|
50459
|
+
/* @__PURE__ */ jsx(CardHeader, { className: "pb-0", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-lg font-bold", children: "Active Orders" }) }),
|
|
50460
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4 p-4", children: [1, 2, 3, 4].map((l) => /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-md border", children: [
|
|
50461
|
+
/* @__PURE__ */ jsx("div", { className: "bg-slate-200 dark:bg-slate-700 h-[3px]" }),
|
|
50462
|
+
/* @__PURE__ */ jsxs("div", { className: "p-6 border border-t-0", children: [
|
|
50463
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center mb-4", children: [
|
|
50464
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" }),
|
|
50465
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-8 rounded-full" })
|
|
50466
|
+
] }),
|
|
50467
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start", children: [
|
|
50468
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
50469
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-16 mb-2" }),
|
|
50470
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-12" })
|
|
50471
|
+
] }),
|
|
50472
|
+
/* @__PURE__ */ jsxs("div", { className: "text-end", children: [
|
|
50473
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-16 mb-2" }),
|
|
50474
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20" })
|
|
50475
|
+
] })
|
|
50476
|
+
] })
|
|
50477
|
+
] })
|
|
50478
|
+
] }, l)) })
|
|
50479
|
+
] }) : /* @__PURE__ */ jsxs(Card, { children: [
|
|
50480
|
+
/* @__PURE__ */ jsx(CardHeader, { className: "pb-0", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-lg font-bold", children: "Active Orders" }) }),
|
|
50481
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4 p-4", children: o.map((l) => /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-md border", children: [
|
|
50482
|
+
/* @__PURE__ */ jsx("div", { className: `${l.color} bg-opacity-60 h-[3px]` }),
|
|
50483
|
+
/* @__PURE__ */ jsxs("div", { className: "p-6 border border-t-0", children: [
|
|
50484
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center mb-4", children: [
|
|
50485
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-base", children: l.name }),
|
|
50486
|
+
/* @__PURE__ */ jsx("div", { className: `${l.color} bg-opacity-90 p-2 rounded-full`, children: /* @__PURE__ */ jsx(l.icon, { className: "size-4 shrink-0 text-white" }) })
|
|
50487
|
+
] }),
|
|
50488
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start", children: [
|
|
50489
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
50490
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Total Orders" }),
|
|
50491
|
+
/* @__PURE__ */ jsx("p", { className: "text-xl font-bold", children: l.orders })
|
|
50492
|
+
] }),
|
|
50493
|
+
/* @__PURE__ */ jsxs("div", { className: "text-end", children: [
|
|
50494
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Total Amount" }),
|
|
50495
|
+
/* @__PURE__ */ jsx("p", { className: "text-base font-semibold", children: n(l.amount) })
|
|
50496
|
+
] })
|
|
50497
|
+
] })
|
|
50498
|
+
] })
|
|
50499
|
+
] }, l.name)) })
|
|
50500
|
+
] });
|
|
50501
|
+
}
|
|
50502
|
+
function SalesOverviewCard({ salesData: e, loading: t = !1 }) {
|
|
50503
|
+
const n = (o) => new Intl.NumberFormat("en-CA", {
|
|
50504
|
+
style: "currency",
|
|
50505
|
+
currency: "CAD",
|
|
50506
|
+
minimumFractionDigits: 2,
|
|
50507
|
+
maximumFractionDigits: 2
|
|
50508
|
+
}).format(o), i = [
|
|
50509
|
+
{
|
|
50510
|
+
title: "Last 30 days",
|
|
50511
|
+
amount: (e == null ? void 0 : e.SalesLast30Days) || 0,
|
|
50512
|
+
icon: /* @__PURE__ */ jsx(Calendar, { className: "h-5 w-5 text-white" }),
|
|
50513
|
+
color: "bg-blue-500"
|
|
50514
|
+
},
|
|
50515
|
+
{
|
|
50516
|
+
title: "Last 3 months",
|
|
50517
|
+
amount: (e == null ? void 0 : e.SalesLast3Months) || 0,
|
|
50518
|
+
icon: /* @__PURE__ */ jsx(Calendar, { className: "h-5 w-5 text-white" }),
|
|
50519
|
+
color: "bg-amber-500"
|
|
50520
|
+
},
|
|
50521
|
+
{
|
|
50522
|
+
title: "Year to date",
|
|
50523
|
+
amount: (e == null ? void 0 : e.SalesYearToDay) || 0,
|
|
50524
|
+
icon: /* @__PURE__ */ jsx(Calendar, { className: "h-5 w-5 text-white" }),
|
|
50525
|
+
color: "bg-emerald-500"
|
|
50526
|
+
}
|
|
50527
|
+
];
|
|
50528
|
+
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
50529
|
+
/* @__PURE__ */ jsx(CardHeader, { className: "pb-0", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-lg sm:text-xl", children: "Sales Overview" }) }),
|
|
50530
|
+
/* @__PURE__ */ jsx(CardContent, { className: "pt-4 px-3 sm:px-6", children: t || !e ? /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4", children: Array(3).fill(0).map((o, l) => /* @__PURE__ */ jsxs("div", { className: "border rounded-lg p-4", children: [
|
|
50531
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center mb-4", children: [
|
|
50532
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" }),
|
|
50533
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-9 rounded-full" })
|
|
50534
|
+
] }),
|
|
50535
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
50536
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-20 mb-1" }),
|
|
50537
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-28" })
|
|
50538
|
+
] })
|
|
50539
|
+
] }, l)) }) : /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4", children: i.map((o, l) => /* @__PURE__ */ jsxs("div", { className: "border rounded-lg p-4", children: [
|
|
50540
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center mb-4", children: [
|
|
50541
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm sm:text-base font-medium", children: o.title }),
|
|
50542
|
+
/* @__PURE__ */ jsx("div", { className: `p-2 rounded-full ${o.color}`, children: o.icon })
|
|
50543
|
+
] }),
|
|
50544
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
50545
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Total Amount" }),
|
|
50546
|
+
/* @__PURE__ */ jsx("p", { className: "text-base sm:text-lg font-bold", children: n(o.amount) })
|
|
50547
|
+
] })
|
|
50548
|
+
] }, l)) }) })
|
|
50549
|
+
] });
|
|
50550
|
+
}
|
|
50551
|
+
function ResellerQualificationsCard({ qualifications: e = [], loading: t = !1 }) {
|
|
50552
|
+
return t ? /* @__PURE__ */ jsxs(Card, { children: [
|
|
50553
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Qualifications" }) }),
|
|
50554
|
+
/* @__PURE__ */ jsx(CardContent, { className: "p-6", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4 gap-y-8", children: Array.from({ length: 10 }).map((n, i) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
50555
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-24 rounded-md mb-2" }),
|
|
50556
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16 rounded-full" })
|
|
50557
|
+
] }, i)) }) })
|
|
50558
|
+
] }) : /* @__PURE__ */ jsxs(Card, { children: [
|
|
50559
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Qualifications" }) }),
|
|
50560
|
+
/* @__PURE__ */ jsx(CardContent, { className: "p-6", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4 gap-y-8", children: e.map((n, i) => /* @__PURE__ */ jsx(
|
|
50561
|
+
ManufacturerLogo,
|
|
50562
|
+
{
|
|
50563
|
+
manufacturerId: n.ManufacturerId,
|
|
50564
|
+
opportunityNumber: n.DefaultOpportunityNumber
|
|
50565
|
+
},
|
|
50566
|
+
`${n.ManufacturerId}-${i}`
|
|
50567
|
+
)) }) })
|
|
50568
|
+
] });
|
|
50569
|
+
}
|
|
50570
|
+
function ManufacturerLogo({ manufacturerId: e, opportunityNumber: t }) {
|
|
50571
|
+
const [n, i] = useState(null), [o, l] = useState(!0), [u, d] = useState(!1), [f, p] = useState(null), m = useMemo(() => e ? {
|
|
50572
|
+
logoUrl: `https://api.randmar.io/V4/Partner/${e}/Account/Logo?width=96&height=48`,
|
|
50573
|
+
logoExistsUrl: `https://api.randmar.io/V4/Partner/${e}/Account/Logo/Exists`
|
|
50574
|
+
} : null, [e]);
|
|
50575
|
+
return useEffect(() => {
|
|
50576
|
+
if (!m) return;
|
|
50577
|
+
let g = !0;
|
|
50578
|
+
p(null);
|
|
50579
|
+
const b = async () => {
|
|
50580
|
+
try {
|
|
50581
|
+
const E = await fetch(m.logoExistsUrl);
|
|
50582
|
+
if (E.ok) {
|
|
50583
|
+
const C = (await E.text()).toLowerCase() === "true";
|
|
50584
|
+
return g && d(C), C;
|
|
50585
|
+
}
|
|
50586
|
+
return !1;
|
|
50587
|
+
} catch (E) {
|
|
50588
|
+
return console.error("Failed to check if logo exists:", E), g && d(!1), !1;
|
|
50589
|
+
}
|
|
50590
|
+
}, _ = async () => {
|
|
50591
|
+
g && l(!0);
|
|
50592
|
+
try {
|
|
50593
|
+
const E = await fetch(m.logoUrl);
|
|
50594
|
+
if (E.ok) {
|
|
50595
|
+
const S = await E.blob();
|
|
50596
|
+
g && (n && URL.revokeObjectURL(n), i(URL.createObjectURL(S)));
|
|
50597
|
+
} else
|
|
50598
|
+
throw new Error(`Failed to load logo: ${E.status}`);
|
|
50599
|
+
} catch (E) {
|
|
50600
|
+
console.error("Failed to load logo:", E), g && p("Failed to load manufacturer logo");
|
|
50601
|
+
} finally {
|
|
50602
|
+
g && l(!1);
|
|
50603
|
+
}
|
|
50604
|
+
};
|
|
50605
|
+
return (async () => {
|
|
50606
|
+
await b() ? _() : l(!1);
|
|
50607
|
+
})(), () => {
|
|
50608
|
+
g = !1, n && URL.revokeObjectURL(n);
|
|
50609
|
+
};
|
|
50610
|
+
}, [m]), /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
50611
|
+
/* @__PURE__ */ jsx("div", { className: "h-12 flex items-center justify-center mb-2", children: o ? /* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-24 rounded-md" }) : u && n ? /* @__PURE__ */ jsx(
|
|
50612
|
+
"img",
|
|
50613
|
+
{
|
|
50614
|
+
src: n,
|
|
50615
|
+
alt: "Manufacturer logo",
|
|
50616
|
+
className: "max-h-12 max-w-24 object-contain",
|
|
50617
|
+
onError: () => p("Failed to load logo")
|
|
50618
|
+
}
|
|
50619
|
+
) : /* @__PURE__ */ jsx("div", { className: "h-12 w-24 flex items-center justify-center bg-slate-100 rounded-md text-xs text-slate-500", children: e ? e.substring(0, 8) : "No ID" }) }),
|
|
50620
|
+
t && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs", children: t }),
|
|
50621
|
+
f && /* @__PURE__ */ jsx("div", { className: "text-red-500 text-xs mt-1", role: "alert", children: f })
|
|
50622
|
+
] });
|
|
50623
|
+
}
|
|
50331
50624
|
export {
|
|
50625
|
+
ActiveOrdersCard,
|
|
50332
50626
|
AreaChart,
|
|
50333
50627
|
Avatar,
|
|
50334
50628
|
AvatarFallback,
|
|
@@ -50385,6 +50679,8 @@ export {
|
|
|
50385
50679
|
ProductImage,
|
|
50386
50680
|
ProductInventoryGrid,
|
|
50387
50681
|
ResellerCard,
|
|
50682
|
+
ResellerQualificationsCard,
|
|
50683
|
+
SalesOverviewCard,
|
|
50388
50684
|
ScrollArea,
|
|
50389
50685
|
ScrollBar,
|
|
50390
50686
|
Select,
|