randmarcomps 1.115.0 → 1.117.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 +9 -1
- package/dist/randmarcomps.js +261 -148
- package/dist/randmarcomps.umd.cjs +48 -38
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -277,72 +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$D = [
|
|
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$D);
|
|
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$C = [
|
|
295
295
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
296
296
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
297
297
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
298
298
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
299
|
-
], Calendar = createLucideIcon("Calendar", __iconNode$
|
|
299
|
+
], Calendar = createLucideIcon("Calendar", __iconNode$C);
|
|
300
300
|
/**
|
|
301
301
|
* @license lucide-react v0.479.0 - ISC
|
|
302
302
|
*
|
|
303
303
|
* This source code is licensed under the ISC license.
|
|
304
304
|
* See the LICENSE file in the root directory of this source tree.
|
|
305
305
|
*/
|
|
306
|
-
const __iconNode$
|
|
306
|
+
const __iconNode$B = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Check = createLucideIcon("Check", __iconNode$B);
|
|
307
307
|
/**
|
|
308
308
|
* @license lucide-react v0.479.0 - ISC
|
|
309
309
|
*
|
|
310
310
|
* This source code is licensed under the ISC license.
|
|
311
311
|
* See the LICENSE file in the root directory of this source tree.
|
|
312
312
|
*/
|
|
313
|
-
const __iconNode$
|
|
313
|
+
const __iconNode$A = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ChevronDown = createLucideIcon("ChevronDown", __iconNode$A);
|
|
314
314
|
/**
|
|
315
315
|
* @license lucide-react v0.479.0 - ISC
|
|
316
316
|
*
|
|
317
317
|
* This source code is licensed under the ISC license.
|
|
318
318
|
* See the LICENSE file in the root directory of this source tree.
|
|
319
319
|
*/
|
|
320
|
-
const __iconNode$
|
|
320
|
+
const __iconNode$z = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ChevronRight = createLucideIcon("ChevronRight", __iconNode$z);
|
|
321
321
|
/**
|
|
322
322
|
* @license lucide-react v0.479.0 - ISC
|
|
323
323
|
*
|
|
324
324
|
* This source code is licensed under the ISC license.
|
|
325
325
|
* See the LICENSE file in the root directory of this source tree.
|
|
326
326
|
*/
|
|
327
|
-
const __iconNode$
|
|
327
|
+
const __iconNode$y = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], ChevronUp = createLucideIcon("ChevronUp", __iconNode$y);
|
|
328
328
|
/**
|
|
329
329
|
* @license lucide-react v0.479.0 - ISC
|
|
330
330
|
*
|
|
331
331
|
* This source code is licensed under the ISC license.
|
|
332
332
|
* See the LICENSE file in the root directory of this source tree.
|
|
333
333
|
*/
|
|
334
|
-
const __iconNode$
|
|
334
|
+
const __iconNode$x = [
|
|
335
335
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
336
336
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
337
337
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
338
|
-
], CircleAlert = createLucideIcon("CircleAlert", __iconNode$
|
|
338
|
+
], CircleAlert = createLucideIcon("CircleAlert", __iconNode$x);
|
|
339
339
|
/**
|
|
340
340
|
* @license lucide-react v0.479.0 - ISC
|
|
341
341
|
*
|
|
342
342
|
* This source code is licensed under the ISC license.
|
|
343
343
|
* See the LICENSE file in the root directory of this source tree.
|
|
344
344
|
*/
|
|
345
|
-
const __iconNode$
|
|
345
|
+
const __iconNode$w = [
|
|
346
346
|
["path", { d: "M10.1 2.182a10 10 0 0 1 3.8 0", key: "5ilxe3" }],
|
|
347
347
|
["path", { d: "M13.9 21.818a10 10 0 0 1-3.8 0", key: "11zvb9" }],
|
|
348
348
|
["path", { d: "M17.609 3.721a10 10 0 0 1 2.69 2.7", key: "1iw5b2" }],
|
|
@@ -351,63 +351,74 @@ const __iconNode$u = [
|
|
|
351
351
|
["path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8", key: "qkgqxc" }],
|
|
352
352
|
["path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69", key: "1mcia2" }],
|
|
353
353
|
["path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7", key: "1fvljs" }]
|
|
354
|
-
], CircleDashed = createLucideIcon("CircleDashed", __iconNode$
|
|
354
|
+
], CircleDashed = createLucideIcon("CircleDashed", __iconNode$w);
|
|
355
355
|
/**
|
|
356
356
|
* @license lucide-react v0.479.0 - ISC
|
|
357
357
|
*
|
|
358
358
|
* This source code is licensed under the ISC license.
|
|
359
359
|
* See the LICENSE file in the root directory of this source tree.
|
|
360
360
|
*/
|
|
361
|
-
const __iconNode$
|
|
361
|
+
const __iconNode$v = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Circle = createLucideIcon("Circle", __iconNode$v);
|
|
362
362
|
/**
|
|
363
363
|
* @license lucide-react v0.479.0 - ISC
|
|
364
364
|
*
|
|
365
365
|
* This source code is licensed under the ISC license.
|
|
366
366
|
* See the LICENSE file in the root directory of this source tree.
|
|
367
367
|
*/
|
|
368
|
-
const __iconNode$
|
|
368
|
+
const __iconNode$u = [
|
|
369
369
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
370
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" }]
|
|
371
|
-
], Copy = createLucideIcon("Copy", __iconNode$
|
|
371
|
+
], Copy = createLucideIcon("Copy", __iconNode$u);
|
|
372
372
|
/**
|
|
373
373
|
* @license lucide-react v0.479.0 - ISC
|
|
374
374
|
*
|
|
375
375
|
* This source code is licensed under the ISC license.
|
|
376
376
|
* See the LICENSE file in the root directory of this source tree.
|
|
377
377
|
*/
|
|
378
|
-
const __iconNode$
|
|
378
|
+
const __iconNode$t = [
|
|
379
379
|
["line", { x1: "12", x2: "12", y1: "2", y2: "22", key: "7eqyqh" }],
|
|
380
380
|
["path", { d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6", key: "1b0p4s" }]
|
|
381
|
-
], DollarSign = createLucideIcon("DollarSign", __iconNode$
|
|
381
|
+
], DollarSign = createLucideIcon("DollarSign", __iconNode$t);
|
|
382
382
|
/**
|
|
383
383
|
* @license lucide-react v0.479.0 - ISC
|
|
384
384
|
*
|
|
385
385
|
* This source code is licensed under the ISC license.
|
|
386
386
|
* See the LICENSE file in the root directory of this source tree.
|
|
387
387
|
*/
|
|
388
|
-
const __iconNode$
|
|
388
|
+
const __iconNode$s = [
|
|
389
389
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
390
390
|
["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
|
|
391
391
|
["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
|
|
392
|
-
], Download = createLucideIcon("Download", __iconNode$
|
|
392
|
+
], Download = createLucideIcon("Download", __iconNode$s);
|
|
393
393
|
/**
|
|
394
394
|
* @license lucide-react v0.479.0 - ISC
|
|
395
395
|
*
|
|
396
396
|
* This source code is licensed under the ISC license.
|
|
397
397
|
* See the LICENSE file in the root directory of this source tree.
|
|
398
398
|
*/
|
|
399
|
-
const __iconNode$
|
|
399
|
+
const __iconNode$r = [
|
|
400
400
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
401
401
|
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
|
402
402
|
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
403
|
-
], EllipsisVertical = createLucideIcon("EllipsisVertical", __iconNode$
|
|
403
|
+
], EllipsisVertical = createLucideIcon("EllipsisVertical", __iconNode$r);
|
|
404
404
|
/**
|
|
405
405
|
* @license lucide-react v0.479.0 - ISC
|
|
406
406
|
*
|
|
407
407
|
* This source code is licensed under the ISC license.
|
|
408
408
|
* See the LICENSE file in the root directory of this source tree.
|
|
409
409
|
*/
|
|
410
|
-
const __iconNode$
|
|
410
|
+
const __iconNode$q = [
|
|
411
|
+
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
412
|
+
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
413
|
+
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
414
|
+
], ExternalLink = createLucideIcon("ExternalLink", __iconNode$q);
|
|
415
|
+
/**
|
|
416
|
+
* @license lucide-react v0.479.0 - ISC
|
|
417
|
+
*
|
|
418
|
+
* This source code is licensed under the ISC license.
|
|
419
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
420
|
+
*/
|
|
421
|
+
const __iconNode$p = [
|
|
411
422
|
[
|
|
412
423
|
"path",
|
|
413
424
|
{
|
|
@@ -416,25 +427,25 @@ const __iconNode$o = [
|
|
|
416
427
|
}
|
|
417
428
|
],
|
|
418
429
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
419
|
-
], Eye = createLucideIcon("Eye", __iconNode$
|
|
430
|
+
], Eye = createLucideIcon("Eye", __iconNode$p);
|
|
420
431
|
/**
|
|
421
432
|
* @license lucide-react v0.479.0 - ISC
|
|
422
433
|
*
|
|
423
434
|
* This source code is licensed under the ISC license.
|
|
424
435
|
* See the LICENSE file in the root directory of this source tree.
|
|
425
436
|
*/
|
|
426
|
-
const __iconNode$
|
|
437
|
+
const __iconNode$o = [
|
|
427
438
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
428
439
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
429
440
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
430
|
-
], Globe = createLucideIcon("Globe", __iconNode$
|
|
441
|
+
], Globe = createLucideIcon("Globe", __iconNode$o);
|
|
431
442
|
/**
|
|
432
443
|
* @license lucide-react v0.479.0 - ISC
|
|
433
444
|
*
|
|
434
445
|
* This source code is licensed under the ISC license.
|
|
435
446
|
* See the LICENSE file in the root directory of this source tree.
|
|
436
447
|
*/
|
|
437
|
-
const __iconNode$
|
|
448
|
+
const __iconNode$n = [
|
|
438
449
|
["path", { d: "m11 17 2 2a1 1 0 1 0 3-3", key: "efffak" }],
|
|
439
450
|
[
|
|
440
451
|
"path",
|
|
@@ -446,71 +457,71 @@ const __iconNode$m = [
|
|
|
446
457
|
["path", { d: "m21 3 1 11h-2", key: "1tisrp" }],
|
|
447
458
|
["path", { d: "M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3", key: "1uvwmv" }],
|
|
448
459
|
["path", { d: "M3 4h8", key: "1ep09j" }]
|
|
449
|
-
], Handshake = createLucideIcon("Handshake", __iconNode$
|
|
460
|
+
], Handshake = createLucideIcon("Handshake", __iconNode$n);
|
|
450
461
|
/**
|
|
451
462
|
* @license lucide-react v0.479.0 - ISC
|
|
452
463
|
*
|
|
453
464
|
* This source code is licensed under the ISC license.
|
|
454
465
|
* See the LICENSE file in the root directory of this source tree.
|
|
455
466
|
*/
|
|
456
|
-
const __iconNode$
|
|
467
|
+
const __iconNode$m = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], LoaderCircle = createLucideIcon("LoaderCircle", __iconNode$m);
|
|
457
468
|
/**
|
|
458
469
|
* @license lucide-react v0.479.0 - ISC
|
|
459
470
|
*
|
|
460
471
|
* This source code is licensed under the ISC license.
|
|
461
472
|
* See the LICENSE file in the root directory of this source tree.
|
|
462
473
|
*/
|
|
463
|
-
const __iconNode$
|
|
474
|
+
const __iconNode$l = [
|
|
464
475
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }],
|
|
465
476
|
["polyline", { points: "16 17 21 12 16 7", key: "1gabdz" }],
|
|
466
477
|
["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }]
|
|
467
|
-
], LogOut = createLucideIcon("LogOut", __iconNode$
|
|
478
|
+
], LogOut = createLucideIcon("LogOut", __iconNode$l);
|
|
468
479
|
/**
|
|
469
480
|
* @license lucide-react v0.479.0 - ISC
|
|
470
481
|
*
|
|
471
482
|
* This source code is licensed under the ISC license.
|
|
472
483
|
* See the LICENSE file in the root directory of this source tree.
|
|
473
484
|
*/
|
|
474
|
-
const __iconNode$
|
|
485
|
+
const __iconNode$k = [
|
|
475
486
|
["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
|
|
476
487
|
["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }]
|
|
477
|
-
], Mail = createLucideIcon("Mail", __iconNode$
|
|
488
|
+
], Mail = createLucideIcon("Mail", __iconNode$k);
|
|
478
489
|
/**
|
|
479
490
|
* @license lucide-react v0.479.0 - ISC
|
|
480
491
|
*
|
|
481
492
|
* This source code is licensed under the ISC license.
|
|
482
493
|
* See the LICENSE file in the root directory of this source tree.
|
|
483
494
|
*/
|
|
484
|
-
const __iconNode$
|
|
495
|
+
const __iconNode$j = [
|
|
485
496
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
486
497
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
487
498
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
488
|
-
], Menu$1 = createLucideIcon("Menu", __iconNode$
|
|
499
|
+
], Menu$1 = createLucideIcon("Menu", __iconNode$j);
|
|
489
500
|
/**
|
|
490
501
|
* @license lucide-react v0.479.0 - ISC
|
|
491
502
|
*
|
|
492
503
|
* This source code is licensed under the ISC license.
|
|
493
504
|
* See the LICENSE file in the root directory of this source tree.
|
|
494
505
|
*/
|
|
495
|
-
const __iconNode$
|
|
506
|
+
const __iconNode$i = [
|
|
496
507
|
["path", { d: "M19 15v-2a2 2 0 1 0-4 0v2", key: "h3d1vz" }],
|
|
497
508
|
["path", { d: "M9 17H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3.5", key: "xsnnhn" }],
|
|
498
509
|
["rect", { x: "13", y: "15", width: "8", height: "5", rx: "1", key: "1ccwuk" }]
|
|
499
|
-
], MessageSquareLock = createLucideIcon("MessageSquareLock", __iconNode$
|
|
510
|
+
], MessageSquareLock = createLucideIcon("MessageSquareLock", __iconNode$i);
|
|
500
511
|
/**
|
|
501
512
|
* @license lucide-react v0.479.0 - ISC
|
|
502
513
|
*
|
|
503
514
|
* This source code is licensed under the ISC license.
|
|
504
515
|
* See the LICENSE file in the root directory of this source tree.
|
|
505
516
|
*/
|
|
506
|
-
const __iconNode$
|
|
517
|
+
const __iconNode$h = [["path", { d: "M5 12h14", key: "1ays0h" }]], Minus = createLucideIcon("Minus", __iconNode$h);
|
|
507
518
|
/**
|
|
508
519
|
* @license lucide-react v0.479.0 - ISC
|
|
509
520
|
*
|
|
510
521
|
* This source code is licensed under the ISC license.
|
|
511
522
|
* See the LICENSE file in the root directory of this source tree.
|
|
512
523
|
*/
|
|
513
|
-
const __iconNode$
|
|
524
|
+
const __iconNode$g = [
|
|
514
525
|
[
|
|
515
526
|
"path",
|
|
516
527
|
{
|
|
@@ -521,24 +532,24 @@ const __iconNode$f = [
|
|
|
521
532
|
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
522
533
|
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
523
534
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
524
|
-
], Package = createLucideIcon("Package", __iconNode$
|
|
535
|
+
], Package = createLucideIcon("Package", __iconNode$g);
|
|
525
536
|
/**
|
|
526
537
|
* @license lucide-react v0.479.0 - ISC
|
|
527
538
|
*
|
|
528
539
|
* This source code is licensed under the ISC license.
|
|
529
540
|
* See the LICENSE file in the root directory of this source tree.
|
|
530
541
|
*/
|
|
531
|
-
const __iconNode$
|
|
542
|
+
const __iconNode$f = [
|
|
532
543
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
533
544
|
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
534
|
-
], PanelLeft = createLucideIcon("PanelLeft", __iconNode$
|
|
545
|
+
], PanelLeft = createLucideIcon("PanelLeft", __iconNode$f);
|
|
535
546
|
/**
|
|
536
547
|
* @license lucide-react v0.479.0 - ISC
|
|
537
548
|
*
|
|
538
549
|
* This source code is licensed under the ISC license.
|
|
539
550
|
* See the LICENSE file in the root directory of this source tree.
|
|
540
551
|
*/
|
|
541
|
-
const __iconNode$
|
|
552
|
+
const __iconNode$e = [
|
|
542
553
|
[
|
|
543
554
|
"path",
|
|
544
555
|
{
|
|
@@ -546,21 +557,21 @@ const __iconNode$d = [
|
|
|
546
557
|
key: "foiqr5"
|
|
547
558
|
}
|
|
548
559
|
]
|
|
549
|
-
], Phone = createLucideIcon("Phone", __iconNode$
|
|
560
|
+
], Phone = createLucideIcon("Phone", __iconNode$e);
|
|
550
561
|
/**
|
|
551
562
|
* @license lucide-react v0.479.0 - ISC
|
|
552
563
|
*
|
|
553
564
|
* This source code is licensed under the ISC license.
|
|
554
565
|
* See the LICENSE file in the root directory of this source tree.
|
|
555
566
|
*/
|
|
556
|
-
const __iconNode$
|
|
567
|
+
const __iconNode$d = [["polygon", { points: "6 3 20 12 6 21 6 3", key: "1oa8hb" }]], Play = createLucideIcon("Play", __iconNode$d);
|
|
557
568
|
/**
|
|
558
569
|
* @license lucide-react v0.479.0 - ISC
|
|
559
570
|
*
|
|
560
571
|
* This source code is licensed under the ISC license.
|
|
561
572
|
* See the LICENSE file in the root directory of this source tree.
|
|
562
573
|
*/
|
|
563
|
-
const __iconNode$
|
|
574
|
+
const __iconNode$c = [
|
|
564
575
|
["rect", { width: "5", height: "5", x: "3", y: "3", rx: "1", key: "1tu5fj" }],
|
|
565
576
|
["rect", { width: "5", height: "5", x: "16", y: "3", rx: "1", key: "1v8r4q" }],
|
|
566
577
|
["rect", { width: "5", height: "5", x: "3", y: "16", rx: "1", key: "1x03jg" }],
|
|
@@ -573,48 +584,48 @@ const __iconNode$b = [
|
|
|
573
584
|
["path", { d: "M16 12h1", key: "1slzba" }],
|
|
574
585
|
["path", { d: "M21 12v.01", key: "1lwtk9" }],
|
|
575
586
|
["path", { d: "M12 21v-1", key: "1880an" }]
|
|
576
|
-
], QrCode = createLucideIcon("QrCode", __iconNode$
|
|
587
|
+
], QrCode = createLucideIcon("QrCode", __iconNode$c);
|
|
577
588
|
/**
|
|
578
589
|
* @license lucide-react v0.479.0 - ISC
|
|
579
590
|
*
|
|
580
591
|
* This source code is licensed under the ISC license.
|
|
581
592
|
* See the LICENSE file in the root directory of this source tree.
|
|
582
593
|
*/
|
|
583
|
-
const __iconNode$
|
|
594
|
+
const __iconNode$b = [
|
|
584
595
|
["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
596
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
586
597
|
["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
598
|
["path", { d: "M16 16h5v5", key: "ccwih5" }]
|
|
588
|
-
], RefreshCcw = createLucideIcon("RefreshCcw", __iconNode$
|
|
599
|
+
], RefreshCcw = createLucideIcon("RefreshCcw", __iconNode$b);
|
|
589
600
|
/**
|
|
590
601
|
* @license lucide-react v0.479.0 - ISC
|
|
591
602
|
*
|
|
592
603
|
* This source code is licensed under the ISC license.
|
|
593
604
|
* See the LICENSE file in the root directory of this source tree.
|
|
594
605
|
*/
|
|
595
|
-
const __iconNode$
|
|
606
|
+
const __iconNode$a = [
|
|
596
607
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
597
608
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
598
609
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
599
610
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
600
|
-
], RefreshCw = createLucideIcon("RefreshCw", __iconNode$
|
|
611
|
+
], RefreshCw = createLucideIcon("RefreshCw", __iconNode$a);
|
|
601
612
|
/**
|
|
602
613
|
* @license lucide-react v0.479.0 - ISC
|
|
603
614
|
*
|
|
604
615
|
* This source code is licensed under the ISC license.
|
|
605
616
|
* See the LICENSE file in the root directory of this source tree.
|
|
606
617
|
*/
|
|
607
|
-
const __iconNode$
|
|
618
|
+
const __iconNode$9 = [
|
|
608
619
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
609
620
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
610
|
-
], Search = createLucideIcon("Search", __iconNode$
|
|
621
|
+
], Search = createLucideIcon("Search", __iconNode$9);
|
|
611
622
|
/**
|
|
612
623
|
* @license lucide-react v0.479.0 - ISC
|
|
613
624
|
*
|
|
614
625
|
* This source code is licensed under the ISC license.
|
|
615
626
|
* See the LICENSE file in the root directory of this source tree.
|
|
616
627
|
*/
|
|
617
|
-
const __iconNode$
|
|
628
|
+
const __iconNode$8 = [
|
|
618
629
|
[
|
|
619
630
|
"path",
|
|
620
631
|
{
|
|
@@ -623,14 +634,14 @@ const __iconNode$7 = [
|
|
|
623
634
|
}
|
|
624
635
|
],
|
|
625
636
|
["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
|
|
626
|
-
], Send = createLucideIcon("Send", __iconNode$
|
|
637
|
+
], Send = createLucideIcon("Send", __iconNode$8);
|
|
627
638
|
/**
|
|
628
639
|
* @license lucide-react v0.479.0 - ISC
|
|
629
640
|
*
|
|
630
641
|
* This source code is licensed under the ISC license.
|
|
631
642
|
* See the LICENSE file in the root directory of this source tree.
|
|
632
643
|
*/
|
|
633
|
-
const __iconNode$
|
|
644
|
+
const __iconNode$7 = [
|
|
634
645
|
[
|
|
635
646
|
"path",
|
|
636
647
|
{
|
|
@@ -639,14 +650,14 @@ const __iconNode$6 = [
|
|
|
639
650
|
}
|
|
640
651
|
],
|
|
641
652
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
642
|
-
], ShieldCheck = createLucideIcon("ShieldCheck", __iconNode$
|
|
653
|
+
], ShieldCheck = createLucideIcon("ShieldCheck", __iconNode$7);
|
|
643
654
|
/**
|
|
644
655
|
* @license lucide-react v0.479.0 - ISC
|
|
645
656
|
*
|
|
646
657
|
* This source code is licensed under the ISC license.
|
|
647
658
|
* See the LICENSE file in the root directory of this source tree.
|
|
648
659
|
*/
|
|
649
|
-
const __iconNode$
|
|
660
|
+
const __iconNode$6 = [
|
|
650
661
|
["circle", { cx: "8", cy: "21", r: "1", key: "jimo8o" }],
|
|
651
662
|
["circle", { cx: "19", cy: "21", r: "1", key: "13723u" }],
|
|
652
663
|
[
|
|
@@ -656,14 +667,14 @@ const __iconNode$5 = [
|
|
|
656
667
|
key: "9zh506"
|
|
657
668
|
}
|
|
658
669
|
]
|
|
659
|
-
], ShoppingCart = createLucideIcon("ShoppingCart", __iconNode$
|
|
670
|
+
], ShoppingCart = createLucideIcon("ShoppingCart", __iconNode$6);
|
|
660
671
|
/**
|
|
661
672
|
* @license lucide-react v0.479.0 - ISC
|
|
662
673
|
*
|
|
663
674
|
* This source code is licensed under the ISC license.
|
|
664
675
|
* See the LICENSE file in the root directory of this source tree.
|
|
665
676
|
*/
|
|
666
|
-
const __iconNode$
|
|
677
|
+
const __iconNode$5 = [
|
|
667
678
|
["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" }],
|
|
668
679
|
["path", { d: "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8", key: "1b2hhj" }],
|
|
669
680
|
["path", { d: "M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4", key: "2ebpfo" }],
|
|
@@ -675,14 +686,14 @@ const __iconNode$4 = [
|
|
|
675
686
|
key: "6c3vgh"
|
|
676
687
|
}
|
|
677
688
|
]
|
|
678
|
-
], Store = createLucideIcon("Store", __iconNode$
|
|
689
|
+
], Store = createLucideIcon("Store", __iconNode$5);
|
|
679
690
|
/**
|
|
680
691
|
* @license lucide-react v0.479.0 - ISC
|
|
681
692
|
*
|
|
682
693
|
* This source code is licensed under the ISC license.
|
|
683
694
|
* See the LICENSE file in the root directory of this source tree.
|
|
684
695
|
*/
|
|
685
|
-
const __iconNode$
|
|
696
|
+
const __iconNode$4 = [
|
|
686
697
|
[
|
|
687
698
|
"path",
|
|
688
699
|
{
|
|
@@ -692,14 +703,14 @@ const __iconNode$3 = [
|
|
|
692
703
|
],
|
|
693
704
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
694
705
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
695
|
-
], TriangleAlert = createLucideIcon("TriangleAlert", __iconNode$
|
|
706
|
+
], TriangleAlert = createLucideIcon("TriangleAlert", __iconNode$4);
|
|
696
707
|
/**
|
|
697
708
|
* @license lucide-react v0.479.0 - ISC
|
|
698
709
|
*
|
|
699
710
|
* This source code is licensed under the ISC license.
|
|
700
711
|
* See the LICENSE file in the root directory of this source tree.
|
|
701
712
|
*/
|
|
702
|
-
const __iconNode$
|
|
713
|
+
const __iconNode$3 = [
|
|
703
714
|
["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
715
|
["path", { d: "M15 18H9", key: "1lyqi6" }],
|
|
705
716
|
[
|
|
@@ -711,7 +722,23 @@ const __iconNode$2 = [
|
|
|
711
722
|
],
|
|
712
723
|
["circle", { cx: "17", cy: "18", r: "2", key: "332jqn" }],
|
|
713
724
|
["circle", { cx: "7", cy: "18", r: "2", key: "19iecd" }]
|
|
714
|
-
], Truck = createLucideIcon("Truck", __iconNode$
|
|
725
|
+
], Truck = createLucideIcon("Truck", __iconNode$3);
|
|
726
|
+
/**
|
|
727
|
+
* @license lucide-react v0.479.0 - ISC
|
|
728
|
+
*
|
|
729
|
+
* This source code is licensed under the ISC license.
|
|
730
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
731
|
+
*/
|
|
732
|
+
const __iconNode$2 = [
|
|
733
|
+
[
|
|
734
|
+
"path",
|
|
735
|
+
{
|
|
736
|
+
d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
|
|
737
|
+
key: "ftymec"
|
|
738
|
+
}
|
|
739
|
+
],
|
|
740
|
+
["rect", { x: "2", y: "6", width: "14", height: "12", rx: "2", key: "158x01" }]
|
|
741
|
+
], Video = createLucideIcon("Video", __iconNode$2);
|
|
715
742
|
/**
|
|
716
743
|
* @license lucide-react v0.479.0 - ISC
|
|
717
744
|
*
|
|
@@ -48100,84 +48127,77 @@ const CardFooter = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__
|
|
|
48100
48127
|
}
|
|
48101
48128
|
));
|
|
48102
48129
|
CardFooter.displayName = "CardFooter";
|
|
48103
|
-
function PartnerCard({
|
|
48104
|
-
|
|
48105
|
-
action: t,
|
|
48106
|
-
loading: n = !1
|
|
48107
|
-
}) {
|
|
48108
|
-
const [i, o] = useState(null), [l, u] = useState(!1), [d, f] = useState(!1), [p, m] = useState(!1), [g, b] = useState(!0), [_, R] = useState(null), E = useMemo(() => e != null && e.ApplicationId ? {
|
|
48130
|
+
function PartnerCard({ account: e, action: t, loading: n = !1 }) {
|
|
48131
|
+
const [i, o] = useState(null), [l, u] = useState(!1), [d, f] = useState(!1), [p, m] = useState(!1), [g, b] = useState(!0), [_, R] = useState(null), [E, S] = useState(!1), C = useMemo(() => e != null && e.ApplicationId ? {
|
|
48109
48132
|
videoUrl: `https://api.randmar.io/V4/Partner/${e.ApplicationId}/Account/Video`,
|
|
48110
48133
|
videoExistsUrl: `https://api.randmar.io/V4/Partner/${e.ApplicationId}/Account/Video/Exists`,
|
|
48111
48134
|
logoUrl: `https://api.randmar.io/V4/Partner/${e.ApplicationId}/Account/Logo?width=64&height=64`,
|
|
48112
48135
|
logoExistsUrl: `https://api.randmar.io/V4/Partner/${e.ApplicationId}/Account/Logo/Exists`
|
|
48113
|
-
} : null, [e == null ? void 0 : e.ApplicationId]),
|
|
48136
|
+
} : null, [e == null ? void 0 : e.ApplicationId]), A = !!(e != null && e.VoiceName || e != null && e.VoiceStyle || e != null && e.SceneName);
|
|
48114
48137
|
useEffect(() => {
|
|
48115
|
-
if (!
|
|
48116
|
-
let
|
|
48138
|
+
if (!C || n) return;
|
|
48139
|
+
let M = !0;
|
|
48117
48140
|
R(null);
|
|
48118
|
-
const
|
|
48141
|
+
const T = async () => {
|
|
48119
48142
|
try {
|
|
48120
|
-
const
|
|
48121
|
-
if (
|
|
48122
|
-
const
|
|
48123
|
-
return
|
|
48143
|
+
const j = await fetch(C.logoExistsUrl);
|
|
48144
|
+
if (j.ok) {
|
|
48145
|
+
const L = (await j.text()).toLowerCase() === "true";
|
|
48146
|
+
return M && f(L), L;
|
|
48124
48147
|
}
|
|
48125
48148
|
return !1;
|
|
48126
|
-
} catch (
|
|
48127
|
-
return console.error("Failed to check if logo exists:",
|
|
48149
|
+
} catch (j) {
|
|
48150
|
+
return console.error("Failed to check if logo exists:", j), M && f(!1), !1;
|
|
48128
48151
|
}
|
|
48129
|
-
},
|
|
48130
|
-
|
|
48152
|
+
}, O = async () => {
|
|
48153
|
+
M && u(!0);
|
|
48131
48154
|
try {
|
|
48132
|
-
const
|
|
48133
|
-
if (
|
|
48134
|
-
const
|
|
48135
|
-
|
|
48155
|
+
const j = await fetch(C.logoUrl);
|
|
48156
|
+
if (j.ok) {
|
|
48157
|
+
const B = await j.blob();
|
|
48158
|
+
M && (i && URL.revokeObjectURL(i), o(URL.createObjectURL(B)));
|
|
48136
48159
|
} else
|
|
48137
|
-
throw new Error(`Failed to load logo: ${
|
|
48138
|
-
} catch (
|
|
48139
|
-
console.error("Failed to load logo:",
|
|
48160
|
+
throw new Error(`Failed to load logo: ${j.status}`);
|
|
48161
|
+
} catch (j) {
|
|
48162
|
+
console.error("Failed to load logo:", j), M && R("Failed to load partner logo");
|
|
48140
48163
|
} finally {
|
|
48141
|
-
|
|
48164
|
+
M && u(!1);
|
|
48142
48165
|
}
|
|
48143
|
-
},
|
|
48166
|
+
}, N = async () => {
|
|
48144
48167
|
try {
|
|
48145
|
-
const
|
|
48146
|
-
if (
|
|
48147
|
-
const
|
|
48148
|
-
|
|
48168
|
+
const j = await fetch(C.videoExistsUrl);
|
|
48169
|
+
if (j.ok) {
|
|
48170
|
+
const B = await j.text();
|
|
48171
|
+
M && m(B.toLowerCase() === "true");
|
|
48149
48172
|
} else
|
|
48150
|
-
throw new Error(`Failed to check video: ${
|
|
48151
|
-
} catch (
|
|
48152
|
-
console.error("Failed to check if video exists:",
|
|
48173
|
+
throw new Error(`Failed to check video: ${j.status}`);
|
|
48174
|
+
} catch (j) {
|
|
48175
|
+
console.error("Failed to check if video exists:", j), M && m(!1);
|
|
48153
48176
|
}
|
|
48154
48177
|
};
|
|
48155
48178
|
return (async () => {
|
|
48156
|
-
await
|
|
48179
|
+
await T() && O(), N();
|
|
48157
48180
|
})(), () => {
|
|
48158
|
-
|
|
48181
|
+
M = !1, i && URL.revokeObjectURL(i);
|
|
48159
48182
|
};
|
|
48160
|
-
}, [
|
|
48161
|
-
const
|
|
48183
|
+
}, [C, n]);
|
|
48184
|
+
const I = () => {
|
|
48162
48185
|
b(!1);
|
|
48163
48186
|
};
|
|
48164
|
-
return n || !e ? /* @__PURE__ */
|
|
48165
|
-
/* @__PURE__ */ jsxs(
|
|
48166
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
48187
|
+
return n || !e ? /* @__PURE__ */ jsxs(Card, { children: [
|
|
48188
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "p-6", children: [
|
|
48189
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center mb-4", children: [
|
|
48167
48190
|
/* @__PURE__ */ jsx("div", { className: "h-10 flex items-center justify-center mr-4", children: /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-10 rounded-md" }) }),
|
|
48168
48191
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-40" })
|
|
48169
48192
|
] }),
|
|
48170
|
-
/* @__PURE__ */
|
|
48171
|
-
] }),
|
|
48172
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col md:flex-row gap-6", children: [
|
|
48173
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1 flex flex-col order-1 md:order-1", children: [
|
|
48193
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
48174
48194
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
48175
48195
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full" }),
|
|
48176
48196
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full" }),
|
|
48177
48197
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-3/4" }),
|
|
48178
48198
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-5/6" })
|
|
48179
48199
|
] }),
|
|
48180
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
48200
|
+
/* @__PURE__ */ jsx("div", { className: "p-3 bg-slate-50 rounded-md", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-2", children: [
|
|
48181
48201
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
48182
48202
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-20 mb-1" }),
|
|
48183
48203
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" })
|
|
@@ -48191,12 +48211,15 @@ function PartnerCard({
|
|
|
48191
48211
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" })
|
|
48192
48212
|
] })
|
|
48193
48213
|
] }) })
|
|
48194
|
-
] })
|
|
48195
|
-
|
|
48214
|
+
] })
|
|
48215
|
+
] }),
|
|
48216
|
+
/* @__PURE__ */ jsxs(CardFooter, { className: "px-6 py-4 flex justify-between", children: [
|
|
48217
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-32" }),
|
|
48218
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-48" })
|
|
48196
48219
|
] })
|
|
48197
|
-
] })
|
|
48198
|
-
/* @__PURE__ */ jsxs(
|
|
48199
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
48220
|
+
] }) : /* @__PURE__ */ jsxs(Card, { children: [
|
|
48221
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "p-6", children: [
|
|
48222
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center mb-4", children: [
|
|
48200
48223
|
d && /* @__PURE__ */ jsx("div", { className: "h-10 flex items-center justify-center mr-4", children: l ? /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-10 rounded-md" }) : i && /* @__PURE__ */ jsx(
|
|
48201
48224
|
"img",
|
|
48202
48225
|
{
|
|
@@ -48207,13 +48230,10 @@ function PartnerCard({
|
|
|
48207
48230
|
) }),
|
|
48208
48231
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-xl", children: e.PublicName })
|
|
48209
48232
|
] }),
|
|
48210
|
-
|
|
48211
|
-
|
|
48212
|
-
_ && /* @__PURE__ */ jsx("div", { className: "text-red-500 mb-4 text-sm", role: "alert", children: _ }),
|
|
48213
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col md:flex-row gap-6", children: [
|
|
48214
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1 flex flex-col order-1 md:order-1", children: [
|
|
48233
|
+
_ && /* @__PURE__ */ jsx("div", { className: "text-red-500 mb-4 text-sm", role: "alert", children: _ }),
|
|
48234
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
48215
48235
|
/* @__PURE__ */ jsx("div", { className: "prose prose-sm max-w-none", dangerouslySetInnerHTML: { __html: e.About ?? "" } }),
|
|
48216
|
-
|
|
48236
|
+
A && /* @__PURE__ */ jsx("div", { className: "p-3 bg-slate-50 rounded-md", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-2", children: [
|
|
48217
48237
|
e.VoiceName && /* @__PURE__ */ jsxs("div", { children: [
|
|
48218
48238
|
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Voice Name" }),
|
|
48219
48239
|
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.VoiceName })
|
|
@@ -48227,29 +48247,48 @@ function PartnerCard({
|
|
|
48227
48247
|
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.SceneName })
|
|
48228
48248
|
] })
|
|
48229
48249
|
] }) })
|
|
48230
|
-
] })
|
|
48231
|
-
|
|
48232
|
-
|
|
48233
|
-
|
|
48234
|
-
|
|
48235
|
-
{
|
|
48236
|
-
|
|
48237
|
-
|
|
48238
|
-
|
|
48239
|
-
|
|
48240
|
-
|
|
48241
|
-
|
|
48242
|
-
|
|
48243
|
-
|
|
48244
|
-
|
|
48245
|
-
|
|
48246
|
-
|
|
48247
|
-
|
|
48248
|
-
|
|
48249
|
-
|
|
48250
|
-
|
|
48250
|
+
] })
|
|
48251
|
+
] }),
|
|
48252
|
+
/* @__PURE__ */ jsxs(CardFooter, { className: "px-6 py-4 flex justify-between", children: [
|
|
48253
|
+
p && C ? /* @__PURE__ */ jsxs(Dialog, { open: E, onOpenChange: S, children: [
|
|
48254
|
+
/* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", className: "flex items-center gap-2", children: [
|
|
48255
|
+
/* @__PURE__ */ jsx(Video, { className: "h-4 w-4" }),
|
|
48256
|
+
/* @__PURE__ */ jsx("span", { children: "Watch Video" })
|
|
48257
|
+
] }) }),
|
|
48258
|
+
/* @__PURE__ */ jsxs(DialogContent, { className: "sm:max-w-[425px]", children: [
|
|
48259
|
+
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsxs(DialogTitle, { children: [
|
|
48260
|
+
e.PublicName,
|
|
48261
|
+
" Video"
|
|
48262
|
+
] }) }),
|
|
48263
|
+
/* @__PURE__ */ jsxs("div", { className: "w-full h-[320px] rounded-md overflow-hidden", children: [
|
|
48264
|
+
g && /* @__PURE__ */ jsx(Skeleton, { className: "w-full h-full" }),
|
|
48265
|
+
/* @__PURE__ */ jsx(
|
|
48266
|
+
"video",
|
|
48267
|
+
{
|
|
48268
|
+
src: C.videoUrl,
|
|
48269
|
+
controls: !0,
|
|
48270
|
+
preload: "auto",
|
|
48271
|
+
playsInline: !0,
|
|
48272
|
+
autoPlay: !0,
|
|
48273
|
+
"aria-label": `Video for ${e.PublicName}`,
|
|
48274
|
+
className: `w-full h-full object-contain ${g ? "invisible" : "visible"}`,
|
|
48275
|
+
style: {
|
|
48276
|
+
objectPosition: "center",
|
|
48277
|
+
imageRendering: "auto"
|
|
48278
|
+
},
|
|
48279
|
+
onLoadedData: I,
|
|
48280
|
+
onError: () => b(!1)
|
|
48281
|
+
}
|
|
48282
|
+
)
|
|
48283
|
+
] })
|
|
48284
|
+
] })
|
|
48285
|
+
] }) : /* @__PURE__ */ jsx("div", {}),
|
|
48286
|
+
t || /* @__PURE__ */ jsxs(Button, { className: "flex items-center gap-2", children: [
|
|
48287
|
+
/* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
48288
|
+
"Go to Partner Dashboard"
|
|
48289
|
+
] })
|
|
48251
48290
|
] })
|
|
48252
|
-
] })
|
|
48291
|
+
] });
|
|
48253
48292
|
}
|
|
48254
48293
|
const Topbar = forwardRef(
|
|
48255
48294
|
({ onSignOut: e, handleValidSearch: t, rightMenu: n, searchPlaceholder: i }, o) => {
|
|
@@ -49118,8 +49157,8 @@ function ManufacturerCard({
|
|
|
49118
49157
|
(n || t) && /* @__PURE__ */ jsxs(CardFooter, { className: `flex pt-2 gap-2 ${n ? "justify-between" : "justify-end"}`, children: [
|
|
49119
49158
|
n && n,
|
|
49120
49159
|
t && /* @__PURE__ */ jsx(Button, { className: "flex items-center gap-1", asChild: !0, children: /* @__PURE__ */ jsxs(Link, { to: t, target: "_blank", children: [
|
|
49121
|
-
"
|
|
49122
|
-
|
|
49160
|
+
/* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
49161
|
+
"Go to Manufacturer"
|
|
49123
49162
|
] }) })
|
|
49124
49163
|
] })
|
|
49125
49164
|
] });
|
|
@@ -49206,8 +49245,8 @@ function ResellerCard({
|
|
|
49206
49245
|
(n || t) && /* @__PURE__ */ jsxs(CardFooter, { className: `flex pt-2 gap-2 ${n ? "justify-between" : "justify-end"}`, children: [
|
|
49207
49246
|
n && n,
|
|
49208
49247
|
t && /* @__PURE__ */ jsx(Button, { className: "flex items-center gap-1", asChild: !0, children: /* @__PURE__ */ jsxs(Link, { to: t, target: "_blank", children: [
|
|
49209
|
-
"
|
|
49210
|
-
|
|
49248
|
+
/* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
49249
|
+
"Go to Reseller"
|
|
49211
49250
|
] }) })
|
|
49212
49251
|
] })
|
|
49213
49252
|
] });
|
|
@@ -50264,7 +50303,7 @@ function ManufacturerReorderingCard({
|
|
|
50264
50303
|
}, m = (b) => b === void 0 || b < 0 || b > 6 ? "Monday" : DAYS_OF_WEEK[b], g = (b) => DAYS_OF_WEEK.indexOf(b);
|
|
50265
50304
|
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
50266
50305
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
50267
|
-
n ? /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-32" }) : /* @__PURE__ */ jsx(CardTitle, { children: "Reordering" }),
|
|
50306
|
+
n ? /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-32" }) : /* @__PURE__ */ jsx(CardTitle, { className: "text-lg font-bold", children: "Reordering" }),
|
|
50268
50307
|
n ? /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full mt-2" }) : /* @__PURE__ */ jsx(CardDescription, { className: "text-sm", children: "Adjust your reordering settings to control lead times, stocking weeks, minimum orders, and reorder dates, enhancing efficiency in restocking processes." })
|
|
50269
50308
|
] }),
|
|
50270
50309
|
/* @__PURE__ */ jsx(CardContent, { className: "space-y-6", children: n ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -50548,6 +50587,79 @@ function SalesOverviewCard({ salesData: e, loading: t = !1 }) {
|
|
|
50548
50587
|
] }, l)) }) })
|
|
50549
50588
|
] });
|
|
50550
50589
|
}
|
|
50590
|
+
function ResellerQualificationsCard({ qualifications: e = [], loading: t = !1 }) {
|
|
50591
|
+
return t ? /* @__PURE__ */ jsxs(Card, { children: [
|
|
50592
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Qualifications" }) }),
|
|
50593
|
+
/* @__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: [
|
|
50594
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-24 rounded-md mb-2" }),
|
|
50595
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16 rounded-full" })
|
|
50596
|
+
] }, i)) }) })
|
|
50597
|
+
] }) : /* @__PURE__ */ jsxs(Card, { children: [
|
|
50598
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Qualifications" }) }),
|
|
50599
|
+
/* @__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(
|
|
50600
|
+
ManufacturerLogo,
|
|
50601
|
+
{
|
|
50602
|
+
manufacturerId: n.ManufacturerId,
|
|
50603
|
+
opportunityNumber: n.DefaultOpportunityNumber
|
|
50604
|
+
},
|
|
50605
|
+
`${n.ManufacturerId}-${i}`
|
|
50606
|
+
)) }) })
|
|
50607
|
+
] });
|
|
50608
|
+
}
|
|
50609
|
+
function ManufacturerLogo({ manufacturerId: e, opportunityNumber: t }) {
|
|
50610
|
+
const [n, i] = useState(null), [o, l] = useState(!0), [u, d] = useState(!1), [f, p] = useState(null), m = useMemo(() => e ? {
|
|
50611
|
+
logoUrl: `https://api.randmar.io/V4/Partner/${e}/Account/Logo?width=96&height=48`,
|
|
50612
|
+
logoExistsUrl: `https://api.randmar.io/V4/Partner/${e}/Account/Logo/Exists`
|
|
50613
|
+
} : null, [e]);
|
|
50614
|
+
return useEffect(() => {
|
|
50615
|
+
if (!m) return;
|
|
50616
|
+
let g = !0;
|
|
50617
|
+
p(null);
|
|
50618
|
+
const b = async () => {
|
|
50619
|
+
try {
|
|
50620
|
+
const E = await fetch(m.logoExistsUrl);
|
|
50621
|
+
if (E.ok) {
|
|
50622
|
+
const C = (await E.text()).toLowerCase() === "true";
|
|
50623
|
+
return g && d(C), C;
|
|
50624
|
+
}
|
|
50625
|
+
return !1;
|
|
50626
|
+
} catch (E) {
|
|
50627
|
+
return console.error("Failed to check if logo exists:", E), g && d(!1), !1;
|
|
50628
|
+
}
|
|
50629
|
+
}, _ = async () => {
|
|
50630
|
+
g && l(!0);
|
|
50631
|
+
try {
|
|
50632
|
+
const E = await fetch(m.logoUrl);
|
|
50633
|
+
if (E.ok) {
|
|
50634
|
+
const S = await E.blob();
|
|
50635
|
+
g && (n && URL.revokeObjectURL(n), i(URL.createObjectURL(S)));
|
|
50636
|
+
} else
|
|
50637
|
+
throw new Error(`Failed to load logo: ${E.status}`);
|
|
50638
|
+
} catch (E) {
|
|
50639
|
+
console.error("Failed to load logo:", E), g && p("Failed to load manufacturer logo");
|
|
50640
|
+
} finally {
|
|
50641
|
+
g && l(!1);
|
|
50642
|
+
}
|
|
50643
|
+
};
|
|
50644
|
+
return (async () => {
|
|
50645
|
+
await b() ? _() : l(!1);
|
|
50646
|
+
})(), () => {
|
|
50647
|
+
g = !1, n && URL.revokeObjectURL(n);
|
|
50648
|
+
};
|
|
50649
|
+
}, [m]), /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
50650
|
+
/* @__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(
|
|
50651
|
+
"img",
|
|
50652
|
+
{
|
|
50653
|
+
src: n,
|
|
50654
|
+
alt: "Manufacturer logo",
|
|
50655
|
+
className: "max-h-12 max-w-24 object-contain",
|
|
50656
|
+
onError: () => p("Failed to load logo")
|
|
50657
|
+
}
|
|
50658
|
+
) : /* @__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" }) }),
|
|
50659
|
+
t && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs", children: t }),
|
|
50660
|
+
f && /* @__PURE__ */ jsx("div", { className: "text-red-500 text-xs mt-1", role: "alert", children: f })
|
|
50661
|
+
] });
|
|
50662
|
+
}
|
|
50551
50663
|
export {
|
|
50552
50664
|
ActiveOrdersCard,
|
|
50553
50665
|
AreaChart,
|
|
@@ -50606,6 +50718,7 @@ export {
|
|
|
50606
50718
|
ProductImage,
|
|
50607
50719
|
ProductInventoryGrid,
|
|
50608
50720
|
ResellerCard,
|
|
50721
|
+
ResellerQualificationsCard,
|
|
50609
50722
|
SalesOverviewCard,
|
|
50610
50723
|
ScrollArea,
|
|
50611
50724
|
ScrollBar,
|