randmarcomps 1.155.0 → 1.157.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.
@@ -281,79 +281,79 @@ const createLucideIcon = (e, t) => {
281
281
  * This source code is licensed under the ISC license.
282
282
  * See the LICENSE file in the root directory of this source tree.
283
283
  */
284
- const __iconNode$G = [
284
+ const __iconNode$H = [
285
285
  ["path", { d: "M12 8V4H8", key: "hb8ula" }],
286
286
  ["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
287
287
  ["path", { d: "M2 14h2", key: "vft8re" }],
288
288
  ["path", { d: "M20 14h2", key: "4cs60a" }],
289
289
  ["path", { d: "M15 13v2", key: "1xurst" }],
290
290
  ["path", { d: "M9 13v2", key: "rq6x2g" }]
291
- ], Bot = createLucideIcon("Bot", __iconNode$G);
291
+ ], Bot = createLucideIcon("Bot", __iconNode$H);
292
292
  /**
293
293
  * @license lucide-react v0.479.0 - ISC
294
294
  *
295
295
  * This source code is licensed under the ISC license.
296
296
  * See the LICENSE file in the root directory of this source tree.
297
297
  */
298
- const __iconNode$F = [
298
+ const __iconNode$G = [
299
299
  ["path", { d: "M8 2v4", key: "1cmpym" }],
300
300
  ["path", { d: "M16 2v4", key: "4m81vk" }],
301
301
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
302
302
  ["path", { d: "M3 10h18", key: "8toen8" }]
303
- ], Calendar = createLucideIcon("Calendar", __iconNode$F);
303
+ ], Calendar = createLucideIcon("Calendar", __iconNode$G);
304
304
  /**
305
305
  * @license lucide-react v0.479.0 - ISC
306
306
  *
307
307
  * This source code is licensed under the ISC license.
308
308
  * See the LICENSE file in the root directory of this source tree.
309
309
  */
310
- const __iconNode$E = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Check = createLucideIcon("Check", __iconNode$E);
310
+ const __iconNode$F = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Check = createLucideIcon("Check", __iconNode$F);
311
311
  /**
312
312
  * @license lucide-react v0.479.0 - ISC
313
313
  *
314
314
  * This source code is licensed under the ISC license.
315
315
  * See the LICENSE file in the root directory of this source tree.
316
316
  */
317
- const __iconNode$D = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ChevronDown = createLucideIcon("ChevronDown", __iconNode$D);
317
+ const __iconNode$E = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ChevronDown = createLucideIcon("ChevronDown", __iconNode$E);
318
318
  /**
319
319
  * @license lucide-react v0.479.0 - ISC
320
320
  *
321
321
  * This source code is licensed under the ISC license.
322
322
  * See the LICENSE file in the root directory of this source tree.
323
323
  */
324
- const __iconNode$C = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ChevronLeft = createLucideIcon("ChevronLeft", __iconNode$C);
324
+ const __iconNode$D = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ChevronLeft = createLucideIcon("ChevronLeft", __iconNode$D);
325
325
  /**
326
326
  * @license lucide-react v0.479.0 - ISC
327
327
  *
328
328
  * This source code is licensed under the ISC license.
329
329
  * See the LICENSE file in the root directory of this source tree.
330
330
  */
331
- const __iconNode$B = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ChevronRight = createLucideIcon("ChevronRight", __iconNode$B);
331
+ const __iconNode$C = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ChevronRight = createLucideIcon("ChevronRight", __iconNode$C);
332
332
  /**
333
333
  * @license lucide-react v0.479.0 - ISC
334
334
  *
335
335
  * This source code is licensed under the ISC license.
336
336
  * See the LICENSE file in the root directory of this source tree.
337
337
  */
338
- const __iconNode$A = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], ChevronUp = createLucideIcon("ChevronUp", __iconNode$A);
338
+ const __iconNode$B = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], ChevronUp = createLucideIcon("ChevronUp", __iconNode$B);
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$z = [
345
+ const __iconNode$A = [
346
346
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
347
347
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
348
348
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
349
- ], CircleAlert = createLucideIcon("CircleAlert", __iconNode$z);
349
+ ], CircleAlert = createLucideIcon("CircleAlert", __iconNode$A);
350
350
  /**
351
351
  * @license lucide-react v0.479.0 - ISC
352
352
  *
353
353
  * This source code is licensed under the ISC license.
354
354
  * See the LICENSE file in the root directory of this source tree.
355
355
  */
356
- const __iconNode$y = [
356
+ const __iconNode$z = [
357
357
  ["path", { d: "M10.1 2.182a10 10 0 0 1 3.8 0", key: "5ilxe3" }],
358
358
  ["path", { d: "M13.9 21.818a10 10 0 0 1-3.8 0", key: "11zvb9" }],
359
359
  ["path", { d: "M17.609 3.721a10 10 0 0 1 2.69 2.7", key: "1iw5b2" }],
@@ -362,73 +362,73 @@ const __iconNode$y = [
362
362
  ["path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8", key: "qkgqxc" }],
363
363
  ["path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69", key: "1mcia2" }],
364
364
  ["path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7", key: "1fvljs" }]
365
- ], CircleDashed = createLucideIcon("CircleDashed", __iconNode$y);
365
+ ], CircleDashed = createLucideIcon("CircleDashed", __iconNode$z);
366
366
  /**
367
367
  * @license lucide-react v0.479.0 - ISC
368
368
  *
369
369
  * This source code is licensed under the ISC license.
370
370
  * See the LICENSE file in the root directory of this source tree.
371
371
  */
372
- const __iconNode$x = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Circle = createLucideIcon("Circle", __iconNode$x);
372
+ const __iconNode$y = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Circle = createLucideIcon("Circle", __iconNode$y);
373
373
  /**
374
374
  * @license lucide-react v0.479.0 - ISC
375
375
  *
376
376
  * This source code is licensed under the ISC license.
377
377
  * See the LICENSE file in the root directory of this source tree.
378
378
  */
379
- const __iconNode$w = [
379
+ const __iconNode$x = [
380
380
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
381
381
  ["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" }]
382
- ], Copy = createLucideIcon("Copy", __iconNode$w);
382
+ ], Copy = createLucideIcon("Copy", __iconNode$x);
383
383
  /**
384
384
  * @license lucide-react v0.479.0 - ISC
385
385
  *
386
386
  * This source code is licensed under the ISC license.
387
387
  * See the LICENSE file in the root directory of this source tree.
388
388
  */
389
- const __iconNode$v = [
389
+ const __iconNode$w = [
390
390
  ["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
391
391
  ["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
392
- ], CreditCard = createLucideIcon("CreditCard", __iconNode$v);
392
+ ], CreditCard = createLucideIcon("CreditCard", __iconNode$w);
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$u = [
399
+ const __iconNode$v = [
400
400
  ["line", { x1: "12", x2: "12", y1: "2", y2: "22", key: "7eqyqh" }],
401
401
  ["path", { d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6", key: "1b0p4s" }]
402
- ], DollarSign = createLucideIcon("DollarSign", __iconNode$u);
402
+ ], DollarSign = createLucideIcon("DollarSign", __iconNode$v);
403
403
  /**
404
404
  * @license lucide-react v0.479.0 - ISC
405
405
  *
406
406
  * This source code is licensed under the ISC license.
407
407
  * See the LICENSE file in the root directory of this source tree.
408
408
  */
409
- const __iconNode$t = [
409
+ const __iconNode$u = [
410
410
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
411
411
  ["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
412
412
  ["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
413
- ], Download = createLucideIcon("Download", __iconNode$t);
413
+ ], Download = createLucideIcon("Download", __iconNode$u);
414
414
  /**
415
415
  * @license lucide-react v0.479.0 - ISC
416
416
  *
417
417
  * This source code is licensed under the ISC license.
418
418
  * See the LICENSE file in the root directory of this source tree.
419
419
  */
420
- const __iconNode$s = [
420
+ const __iconNode$t = [
421
421
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
422
422
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
423
423
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
424
- ], ExternalLink = createLucideIcon("ExternalLink", __iconNode$s);
424
+ ], ExternalLink = createLucideIcon("ExternalLink", __iconNode$t);
425
425
  /**
426
426
  * @license lucide-react v0.479.0 - ISC
427
427
  *
428
428
  * This source code is licensed under the ISC license.
429
429
  * See the LICENSE file in the root directory of this source tree.
430
430
  */
431
- const __iconNode$r = [
431
+ const __iconNode$s = [
432
432
  [
433
433
  "path",
434
434
  {
@@ -437,25 +437,25 @@ const __iconNode$r = [
437
437
  }
438
438
  ],
439
439
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
440
- ], Eye = createLucideIcon("Eye", __iconNode$r);
440
+ ], Eye = createLucideIcon("Eye", __iconNode$s);
441
441
  /**
442
442
  * @license lucide-react v0.479.0 - ISC
443
443
  *
444
444
  * This source code is licensed under the ISC license.
445
445
  * See the LICENSE file in the root directory of this source tree.
446
446
  */
447
- const __iconNode$q = [
447
+ const __iconNode$r = [
448
448
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
449
449
  ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
450
450
  ["path", { d: "M2 12h20", key: "9i4pu4" }]
451
- ], Globe = createLucideIcon("Globe", __iconNode$q);
451
+ ], Globe = createLucideIcon("Globe", __iconNode$r);
452
452
  /**
453
453
  * @license lucide-react v0.479.0 - ISC
454
454
  *
455
455
  * This source code is licensed under the ISC license.
456
456
  * See the LICENSE file in the root directory of this source tree.
457
457
  */
458
- const __iconNode$p = [
458
+ const __iconNode$q = [
459
459
  ["path", { d: "m11 17 2 2a1 1 0 1 0 3-3", key: "efffak" }],
460
460
  [
461
461
  "path",
@@ -467,7 +467,19 @@ const __iconNode$p = [
467
467
  ["path", { d: "m21 3 1 11h-2", key: "1tisrp" }],
468
468
  ["path", { d: "M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3", key: "1uvwmv" }],
469
469
  ["path", { d: "M3 4h8", key: "1ep09j" }]
470
- ], Handshake = createLucideIcon("Handshake", __iconNode$p);
470
+ ], Handshake = createLucideIcon("Handshake", __iconNode$q);
471
+ /**
472
+ * @license lucide-react v0.479.0 - ISC
473
+ *
474
+ * This source code is licensed under the ISC license.
475
+ * See the LICENSE file in the root directory of this source tree.
476
+ */
477
+ const __iconNode$p = [
478
+ ["path", { d: "M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5", key: "1p9q5i" }],
479
+ ["path", { d: "M14 6a6 6 0 0 1 6 6v3", key: "1hnv84" }],
480
+ ["path", { d: "M4 15v-3a6 6 0 0 1 6-6", key: "9ciidu" }],
481
+ ["rect", { x: "2", y: "15", width: "20", height: "4", rx: "1", key: "g3x8cw" }]
482
+ ], HardHat = createLucideIcon("HardHat", __iconNode$p);
471
483
  /**
472
484
  * @license lucide-react v0.479.0 - ISC
473
485
  *
@@ -43150,9 +43162,9 @@ const emptySplitApi = createApi({
43150
43162
  query: (t) => ({
43151
43163
  url: `/V4/Partner/${t.applicationId}/Account/Feedback`,
43152
43164
  method: "POST",
43153
- body: t.body,
43154
43165
  params: {
43155
- emailAddress: t.emailAddress
43166
+ emailAddress: t.emailAddress,
43167
+ comment: t.comment
43156
43168
  }
43157
43169
  })
43158
43170
  }),
@@ -43768,7 +43780,10 @@ const emptySplitApi = createApi({
43768
43780
  }),
43769
43781
  getV4ResellerByRouteResellerIdManufacturerAndManufacturerId: e.query({
43770
43782
  query: (t) => ({
43771
- url: `/V4/Reseller/${t.routeResellerId}/Manufacturer/${t.manufacturerId}`
43783
+ url: `/V4/Reseller/${t.routeResellerId}/Manufacturer/${t.manufacturerId}`,
43784
+ params: {
43785
+ withSpecification: t.withSpecification
43786
+ }
43772
43787
  })
43773
43788
  }),
43774
43789
  postV4ResellerByRouteResellerIdManufacturerAndManufacturerIdShopify: e.mutation({
@@ -43811,6 +43826,14 @@ const emptySplitApi = createApi({
43811
43826
  }
43812
43827
  })
43813
43828
  }),
43829
+ getV4PartnerByApplicationIdManufacturers: e.query({
43830
+ query: (t) => ({
43831
+ url: `/V4/Partner/${t.applicationId}/Manufacturers`,
43832
+ params: {
43833
+ withSpecification: t.withSpecification
43834
+ }
43835
+ })
43836
+ }),
43814
43837
  getV4AgencyByRouteAgencyIdManufacturers: e.query({
43815
43838
  query: (t) => ({
43816
43839
  url: `/V4/Agency/${t.routeAgencyId}/Manufacturers`,
@@ -44188,6 +44211,14 @@ const emptySplitApi = createApi({
44188
44211
  url: `/V4/Reseller/${t.routeResellerId}/Orders/Shipments`
44189
44212
  })
44190
44213
  }),
44214
+ getV4PartnerByApplicationIdPartnerAndPartnerId: e.query({
44215
+ query: (t) => ({
44216
+ url: `/V4/Partner/${t.applicationId}/Partner/${t.partnerId}`,
44217
+ params: {
44218
+ withSpecification: t.withSpecification
44219
+ }
44220
+ })
44221
+ }),
44191
44222
  putV4AgencyByRouteAgencyIdPartnerAndNewUserEmailAddress: e.mutation({
44192
44223
  query: (t) => ({
44193
44224
  url: `/V4/Agency/${t.routeAgencyId}/Partner/${t.newUserEmailAddress}`,
@@ -52506,6 +52537,22 @@ function getActiveChatObject(e, t) {
52506
52537
  function isAssistantChat(e) {
52507
52538
  return (e == null ? void 0 : e[0]) == ASSISTANT_ID || (e == null ? void 0 : e[1]) == ASSISTANT_ID;
52508
52539
  }
52540
+ function QualificationBadge({ qualification: e }) {
52541
+ return !e.QualificationId || e.QualificationId === "Suspended" ? null : e.QualificationId === "Do Not Sell" ? /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
52542
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(Badge, { variant: "destructive", children: [
52543
+ /* @__PURE__ */ jsx(X, { className: "h-3 w-3 mr-1" }),
52544
+ "Do Not Sell"
52545
+ ] }) }),
52546
+ /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Qualification" }) })
52547
+ ] }) }) : /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
52548
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(Badge, { variant: "success", children: [
52549
+ /* @__PURE__ */ jsx(Check, { className: "h-3 w-3 mr-1" }),
52550
+ e.QualificationId,
52551
+ e.DefaultOpportunityNumber && ` | ${e.DefaultOpportunityNumber}`
52552
+ ] }) }),
52553
+ /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Qualification" }) })
52554
+ ] }) });
52555
+ }
52509
52556
  function ManufacturerCard({
52510
52557
  manufacturer: e,
52511
52558
  link: t,
@@ -52513,7 +52560,7 @@ function ManufacturerCard({
52513
52560
  actions: o,
52514
52561
  loading: l = !1
52515
52562
  }) {
52516
- var b;
52563
+ var b, _, S;
52517
52564
  if (l || !e)
52518
52565
  return /* @__PURE__ */ jsxs(Card, { children: [
52519
52566
  /* @__PURE__ */ jsx(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
@@ -52551,12 +52598,12 @@ function ManufacturerCard({
52551
52598
  /* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-40" })
52552
52599
  ] })
52553
52600
  ] });
52554
- const u = e.ManufacturerId || "N/A", d = e.PublicName || "N/A", f = [e.City, e.Province, e.Country].filter(Boolean), p = f.length > 0 ? f.join(", ") : "", m = ((b = e.Tags) == null ? void 0 : b.split(",").map((_) => _.trim()).filter(Boolean)) || [], g = (_) => _ === void 0 ? "n/a" : new Intl.NumberFormat("en-CA", {
52601
+ const u = e.ManufacturerId || "N/A", d = e.PublicName || "N/A", f = [e.City, e.Province, e.Country].filter(Boolean), p = f.length > 0 ? f.join(", ") : "", m = ((b = e.Tags) == null ? void 0 : b.split(",").map((T) => T.trim()).filter(Boolean)) || [], g = (T) => T === void 0 ? "n/a" : new Intl.NumberFormat("en-CA", {
52555
52602
  style: "currency",
52556
52603
  currency: "CAD",
52557
52604
  minimumFractionDigits: 0,
52558
52605
  maximumFractionDigits: 0
52559
- }).format(_);
52606
+ }).format(T);
52560
52607
  return /* @__PURE__ */ jsxs(Card, { className: "manufacturer-theme", children: [
52561
52608
  /* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: [
52562
52609
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
@@ -52583,9 +52630,18 @@ function ManufacturerCard({
52583
52630
  ] }),
52584
52631
  /* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
52585
52632
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 space-y-2", children: [
52586
- (!!e.OpenToWork || m.length > 0) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
52587
- !!e.OpenToWork && /* @__PURE__ */ jsx(Badge, { variant: "success", children: "Open To Work" }),
52588
- m.map((_, S) => /* @__PURE__ */ jsx(Badge, { variant: "outline", children: _ }, S))
52633
+ (!!((_ = e.Qualification) != null && _.QualificationId) && ((S = e.Qualification) == null ? void 0 : S.QualificationId) !== "Suspended" || !!e.OpenToWork || m.length > 0) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
52634
+ /* @__PURE__ */ jsx(
52635
+ QualificationBadge,
52636
+ {
52637
+ qualification: e.Qualification ?? {}
52638
+ }
52639
+ ),
52640
+ !!e.OpenToWork && /* @__PURE__ */ jsxs(Badge, { variant: "success", children: [
52641
+ /* @__PURE__ */ jsx(HardHat, { className: "h-3 w-3 mr-1" }),
52642
+ "Open To Work"
52643
+ ] }),
52644
+ m.map((T, E) => /* @__PURE__ */ jsx(Badge, { variant: "outline", children: T }, E))
52589
52645
  ] }),
52590
52646
  /* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
52591
52647
  e.Phone && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
@@ -52630,12 +52686,13 @@ function ResellerCard({
52630
52686
  actions: n,
52631
52687
  loading: o = !1
52632
52688
  }) {
52633
- const l = (m) => m === void 0 ? "n/a" : new Intl.NumberFormat("en-CA", {
52689
+ var m, g;
52690
+ const l = (b) => b === void 0 ? "n/a" : new Intl.NumberFormat("en-CA", {
52634
52691
  style: "currency",
52635
52692
  currency: "CAD",
52636
52693
  minimumFractionDigits: 0,
52637
52694
  maximumFractionDigits: 0
52638
- }).format(m);
52695
+ }).format(b);
52639
52696
  if (o || !e)
52640
52697
  return /* @__PURE__ */ jsxs(Card, { children: [
52641
52698
  /* @__PURE__ */ jsx(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
@@ -52647,20 +52704,27 @@ function ResellerCard({
52647
52704
  /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-48" })
52648
52705
  ] })
52649
52706
  ] }) }),
52650
- /* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsx("div", { className: "flex", children: /* @__PURE__ */ jsx("div", { className: "flex flex-col flex-1 space-y-2", children: /* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
52651
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
52652
- /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
52653
- /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" })
52654
- ] }),
52655
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
52656
- /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
52657
- /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-40" })
52707
+ /* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsx("div", { className: "flex", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 space-y-2", children: [
52708
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
52709
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16 rounded-full" }),
52710
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20 rounded-full" }),
52711
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-14 rounded-full" })
52658
52712
  ] }),
52659
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
52660
- /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
52661
- /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-36" })
52713
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
52714
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
52715
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
52716
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" })
52717
+ ] }),
52718
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
52719
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
52720
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-40" })
52721
+ ] }),
52722
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
52723
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
52724
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-36" })
52725
+ ] })
52662
52726
  ] })
52663
- ] }) }) }) }),
52727
+ ] }) }) }),
52664
52728
  /* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between pt-2 gap-2", children: [
52665
52729
  /* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-24" }),
52666
52730
  /* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-40" })
@@ -52692,24 +52756,32 @@ function ResellerCard({
52692
52756
  !!e.OnHold && e.OnHold !== 0 && /* @__PURE__ */ jsx(Badge, { variant: "warning", children: "On Hold" })
52693
52757
  ] }),
52694
52758
  /* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
52695
- /* @__PURE__ */ jsx("div", { className: "flex flex-col flex-1 space-y-2", children: /* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
52696
- e.Phone && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
52697
- /* @__PURE__ */ jsx(Phone, { className: "h-4 w-4" }),
52698
- /* @__PURE__ */ jsx("span", { children: e.Phone })
52699
- ] }),
52700
- e.PublicEmail && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
52701
- /* @__PURE__ */ jsx(Mail, { className: "h-4 w-4" }),
52702
- /* @__PURE__ */ jsx("span", { children: e.PublicEmail })
52703
- ] }),
52704
- e.Website && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
52705
- /* @__PURE__ */ jsx(Globe, { className: "h-4 w-4" }),
52706
- /* @__PURE__ */ jsx("span", { children: e.Website })
52707
- ] }),
52708
- e.CurrencyCode && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
52709
- /* @__PURE__ */ jsx(DollarSign, { className: "h-4 w-4" }),
52710
- /* @__PURE__ */ jsx("span", { children: e.CurrencyCode })
52759
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 space-y-2", children: [
52760
+ !!((m = e.Qualification) != null && m.QualificationId) && ((g = e.Qualification) == null ? void 0 : g.QualificationId) !== "Suspended" && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: /* @__PURE__ */ jsx(
52761
+ QualificationBadge,
52762
+ {
52763
+ qualification: e.Qualification ?? {}
52764
+ }
52765
+ ) }),
52766
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
52767
+ e.Phone && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
52768
+ /* @__PURE__ */ jsx(Phone, { className: "h-4 w-4" }),
52769
+ /* @__PURE__ */ jsx("span", { children: e.Phone })
52770
+ ] }),
52771
+ e.PublicEmail && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
52772
+ /* @__PURE__ */ jsx(Mail, { className: "h-4 w-4" }),
52773
+ /* @__PURE__ */ jsx("span", { children: e.PublicEmail })
52774
+ ] }),
52775
+ e.Website && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
52776
+ /* @__PURE__ */ jsx(Globe, { className: "h-4 w-4" }),
52777
+ /* @__PURE__ */ jsx("span", { children: e.Website })
52778
+ ] }),
52779
+ e.CurrencyCode && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
52780
+ /* @__PURE__ */ jsx(DollarSign, { className: "h-4 w-4" }),
52781
+ /* @__PURE__ */ jsx("span", { children: e.CurrencyCode })
52782
+ ] })
52711
52783
  ] })
52712
- ] }) }),
52784
+ ] }),
52713
52785
  (e == null ? void 0 : e.SalesData) && /* @__PURE__ */ jsxs("div", { className: "border-l pl-2 ml-2 flex flex-col text-sm", children: [
52714
52786
  /* @__PURE__ */ jsx("strong", { className: "", children: "YTD" }),
52715
52787
  /* @__PURE__ */ jsx("p", { children: l(e == null ? void 0 : e.SalesData.SalesYearToDay) }),
@@ -58864,7 +58936,7 @@ Dt = new WeakMap(), je = new WeakMap(), Ft = new WeakMap(), qt = new WeakMap(),
58864
58936
  });
58865
58937
  var source_default = JsxParser;
58866
58938
  const GetJSXFromAI = async (e, t, n, o = 3) => {
58867
- const l = "In addition to basic html tags, You have access to these beautiful Handmade Components: Button.", u = "Here is the data to display to the user (If a Handmade Component is a perfect fit for the data, use it. Otherwise, use regular html tags):", d = "Only output a single JSX code snippet. Start with <> and end with </>. All other code will be ignored, so make sure to place all CSS styles inline. Use CSS flex layouts when there is a lot of stuff to display.", f = JSON.stringify(n), p = [t, l, d, u, f, d].join(`\r
58939
+ const l = "In addition to basic html tags, You have access to these beautiful Handmade Components: Button.", u = "Here is the data to display to the user (If a Handmade Component is a perfect fit for the data, use it. Otherwise, use regular html tags) (You have access to this data object in React via the data variable):", d = "Only output a single JSX code snippet. Start with <> and end with </>. All other code will be ignored, so make sure to place all CSS styles inline. Use CSS flex layouts when there is a lot of stuff to display.", f = JSON.stringify(n), p = [t, l, d, u, f, d].join(`\r
58868
58940
  `), b = await new GoogleGenAI({ apiKey: e }).chats.create({
58869
58941
  model: "gemini-2.0-flash-lite"
58870
58942
  }).sendMessage({ message: p }), _ = trimJSXString(b.text ?? "");
@@ -58875,24 +58947,24 @@ function trimJSXString(e) {
58875
58947
  return t === -1 || n === -1 ? "" : e.slice(t, e.indexOf(">", n) + 1);
58876
58948
  }
58877
58949
  function AiGeneratedContent(e) {
58878
- const { appID: t } = useParams(), [n, o] = useState(""), { apiKey: l } = useApiKey();
58950
+ const [t, n] = useState(""), { apiKey: o } = useApiKey();
58879
58951
  return useEffect(() => {
58880
- if (!l || !e.prompt || !e.data) return;
58881
- o("");
58882
- let u = !1;
58883
- return GetJSXFromAI(l, e.prompt, e.data).then((d) => {
58884
- u || o(d);
58952
+ if (!o || !e.prompt || !e.data) return;
58953
+ n("");
58954
+ let l = !1;
58955
+ return GetJSXFromAI(o, e.prompt, e.data).then((u) => {
58956
+ l || n(u);
58885
58957
  }), () => {
58886
- u = !0;
58958
+ l = !0;
58887
58959
  };
58888
- }, [e.prompt, e.data, o, l]), n ? /* @__PURE__ */ jsx(
58960
+ }, [e.prompt, e.data, n, o]), t ? /* @__PURE__ */ jsx(
58889
58961
  source_default,
58890
58962
  {
58891
58963
  bindings: {
58892
- appID: t
58964
+ data: e.data
58893
58965
  },
58894
58966
  components: { Button },
58895
- jsx: n
58967
+ jsx: t
58896
58968
  }
58897
58969
  ) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Skeleton, { className: "h-32 w-32", children: /* @__PURE__ */ jsx(Bot, { className: "m-auto align-middle h-full" }) }) });
58898
58970
  }