randmarcomps 1.543.0 → 1.544.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.js +364 -280
- package/dist/randmarcomps.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -259,21 +259,21 @@ const createLucideIcon = (e, t) => {
|
|
|
259
259
|
);
|
|
260
260
|
return n.displayName = toPascalCase(e), n;
|
|
261
261
|
};
|
|
262
|
-
const __iconNode$
|
|
262
|
+
const __iconNode$1q = [
|
|
263
263
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
264
264
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
265
|
-
], ArrowDown = createLucideIcon("arrow-down", __iconNode$
|
|
266
|
-
const __iconNode$
|
|
265
|
+
], ArrowDown = createLucideIcon("arrow-down", __iconNode$1q);
|
|
266
|
+
const __iconNode$1p = [
|
|
267
267
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
268
268
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
269
269
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
270
270
|
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
271
|
-
], ArrowUpDown = createLucideIcon("arrow-up-down", __iconNode$
|
|
272
|
-
const __iconNode$
|
|
271
|
+
], ArrowUpDown = createLucideIcon("arrow-up-down", __iconNode$1p);
|
|
272
|
+
const __iconNode$1o = [
|
|
273
273
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
274
274
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
275
|
-
], ArrowUp = createLucideIcon("arrow-up", __iconNode$
|
|
276
|
-
const __iconNode$
|
|
275
|
+
], ArrowUp = createLucideIcon("arrow-up", __iconNode$1o);
|
|
276
|
+
const __iconNode$1n = [
|
|
277
277
|
[
|
|
278
278
|
"path",
|
|
279
279
|
{
|
|
@@ -282,19 +282,19 @@ const __iconNode$1m = [
|
|
|
282
282
|
}
|
|
283
283
|
],
|
|
284
284
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
285
|
-
], BadgeCheck = createLucideIcon("badge-check", __iconNode$
|
|
286
|
-
const __iconNode$
|
|
285
|
+
], BadgeCheck = createLucideIcon("badge-check", __iconNode$1n);
|
|
286
|
+
const __iconNode$1m = [
|
|
287
287
|
["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }],
|
|
288
288
|
["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }],
|
|
289
289
|
["path", { d: "M6 12h.01M18 12h.01", key: "113zkx" }]
|
|
290
|
-
], Banknote = createLucideIcon("banknote", __iconNode$
|
|
291
|
-
const __iconNode$
|
|
290
|
+
], Banknote = createLucideIcon("banknote", __iconNode$1m);
|
|
291
|
+
const __iconNode$1l = [
|
|
292
292
|
[
|
|
293
293
|
"path",
|
|
294
294
|
{ d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8", key: "mg9rjx" }
|
|
295
295
|
]
|
|
296
|
-
], Bold$1 = createLucideIcon("bold", __iconNode$
|
|
297
|
-
const __iconNode$
|
|
296
|
+
], Bold$1 = createLucideIcon("bold", __iconNode$1l);
|
|
297
|
+
const __iconNode$1k = [
|
|
298
298
|
["path", { d: "M12 7v14", key: "1akyts" }],
|
|
299
299
|
[
|
|
300
300
|
"path",
|
|
@@ -303,16 +303,16 @@ const __iconNode$1j = [
|
|
|
303
303
|
key: "ruj8y"
|
|
304
304
|
}
|
|
305
305
|
]
|
|
306
|
-
], BookOpen = createLucideIcon("book-open", __iconNode$
|
|
307
|
-
const __iconNode$
|
|
306
|
+
], BookOpen = createLucideIcon("book-open", __iconNode$1k);
|
|
307
|
+
const __iconNode$1j = [
|
|
308
308
|
["path", { d: "M12 8V4H8", key: "hb8ula" }],
|
|
309
309
|
["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
|
|
310
310
|
["path", { d: "M2 14h2", key: "vft8re" }],
|
|
311
311
|
["path", { d: "M20 14h2", key: "4cs60a" }],
|
|
312
312
|
["path", { d: "M15 13v2", key: "1xurst" }],
|
|
313
313
|
["path", { d: "M9 13v2", key: "rq6x2g" }]
|
|
314
|
-
], Bot = createLucideIcon("bot", __iconNode$
|
|
315
|
-
const __iconNode$
|
|
314
|
+
], Bot = createLucideIcon("bot", __iconNode$1j);
|
|
315
|
+
const __iconNode$1i = [
|
|
316
316
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
317
317
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
318
318
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
@@ -323,8 +323,8 @@ const __iconNode$1h = [
|
|
|
323
323
|
["path", { d: "M8 18h.01", key: "lrp35t" }],
|
|
324
324
|
["path", { d: "M12 18h.01", key: "mhygvu" }],
|
|
325
325
|
["path", { d: "M16 18h.01", key: "kzsmim" }]
|
|
326
|
-
], CalendarDays = createLucideIcon("calendar-days", __iconNode$
|
|
327
|
-
const __iconNode$
|
|
326
|
+
], CalendarDays = createLucideIcon("calendar-days", __iconNode$1i);
|
|
327
|
+
const __iconNode$1h = [
|
|
328
328
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
329
329
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
330
330
|
["path", { d: "M3 10h18", key: "8toen8" }],
|
|
@@ -333,53 +333,53 @@ const __iconNode$1g = [
|
|
|
333
333
|
["path", { d: "M13 18H7", key: "bb0bb7" }],
|
|
334
334
|
["path", { d: "M7 14h.01", key: "1qa3f1" }],
|
|
335
335
|
["path", { d: "M17 18h.01", key: "1bdyru" }]
|
|
336
|
-
], CalendarRange = createLucideIcon("calendar-range", __iconNode$
|
|
337
|
-
const __iconNode$
|
|
336
|
+
], CalendarRange = createLucideIcon("calendar-range", __iconNode$1h);
|
|
337
|
+
const __iconNode$1g = [
|
|
338
338
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
339
339
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
340
340
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
341
341
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
342
|
-
], Calendar$1 = createLucideIcon("calendar", __iconNode$
|
|
343
|
-
const __iconNode$
|
|
342
|
+
], Calendar$1 = createLucideIcon("calendar", __iconNode$1g);
|
|
343
|
+
const __iconNode$1f = [
|
|
344
344
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
345
345
|
["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
|
|
346
|
-
], ChartLine = createLucideIcon("chart-line", __iconNode$
|
|
347
|
-
const __iconNode$
|
|
346
|
+
], ChartLine = createLucideIcon("chart-line", __iconNode$1f);
|
|
347
|
+
const __iconNode$1e = [
|
|
348
348
|
["path", { d: "M5 21v-6", key: "1hz6c0" }],
|
|
349
349
|
["path", { d: "M12 21V9", key: "uvy0l4" }],
|
|
350
350
|
["path", { d: "M19 21V3", key: "11j9sm" }]
|
|
351
|
-
], ChartNoAxesColumnIncreasing = createLucideIcon("chart-no-axes-column-increasing", __iconNode$
|
|
352
|
-
const __iconNode$
|
|
351
|
+
], ChartNoAxesColumnIncreasing = createLucideIcon("chart-no-axes-column-increasing", __iconNode$1e);
|
|
352
|
+
const __iconNode$1d = [
|
|
353
353
|
["path", { d: "M18 6 7 17l-5-5", key: "116fxf" }],
|
|
354
354
|
["path", { d: "m22 10-7.5 7.5L13 16", key: "ke71qq" }]
|
|
355
|
-
], CheckCheck = createLucideIcon("check-check", __iconNode$
|
|
356
|
-
const __iconNode$
|
|
357
|
-
const __iconNode$
|
|
358
|
-
const __iconNode$
|
|
359
|
-
const __iconNode$
|
|
360
|
-
const __iconNode$
|
|
361
|
-
const __iconNode$
|
|
355
|
+
], CheckCheck = createLucideIcon("check-check", __iconNode$1d);
|
|
356
|
+
const __iconNode$1c = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Check = createLucideIcon("check", __iconNode$1c);
|
|
357
|
+
const __iconNode$1b = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ChevronDown = createLucideIcon("chevron-down", __iconNode$1b);
|
|
358
|
+
const __iconNode$1a = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ChevronLeft = createLucideIcon("chevron-left", __iconNode$1a);
|
|
359
|
+
const __iconNode$19 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ChevronRight = createLucideIcon("chevron-right", __iconNode$19);
|
|
360
|
+
const __iconNode$18 = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], ChevronUp = createLucideIcon("chevron-up", __iconNode$18);
|
|
361
|
+
const __iconNode$17 = [
|
|
362
362
|
["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
|
|
363
363
|
["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
|
|
364
|
-
], ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$
|
|
365
|
-
const __iconNode$
|
|
364
|
+
], ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$17);
|
|
365
|
+
const __iconNode$16 = [
|
|
366
366
|
["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
|
|
367
367
|
["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
|
|
368
|
-
], ChevronsRight = createLucideIcon("chevrons-right", __iconNode$
|
|
369
|
-
const __iconNode$
|
|
368
|
+
], ChevronsRight = createLucideIcon("chevrons-right", __iconNode$16);
|
|
369
|
+
const __iconNode$15 = [
|
|
370
370
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
371
371
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
372
|
-
], ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$
|
|
373
|
-
const __iconNode$
|
|
372
|
+
], ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$15);
|
|
373
|
+
const __iconNode$14 = [
|
|
374
374
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
375
375
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
376
376
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
377
|
-
], CircleAlert = createLucideIcon("circle-alert", __iconNode$
|
|
378
|
-
const __iconNode$
|
|
377
|
+
], CircleAlert = createLucideIcon("circle-alert", __iconNode$14);
|
|
378
|
+
const __iconNode$13 = [
|
|
379
379
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
380
380
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
381
|
-
], CircleCheck = createLucideIcon("circle-check", __iconNode$
|
|
382
|
-
const __iconNode$
|
|
381
|
+
], CircleCheck = createLucideIcon("circle-check", __iconNode$13);
|
|
382
|
+
const __iconNode$12 = [
|
|
383
383
|
["path", { d: "M10.1 2.182a10 10 0 0 1 3.8 0", key: "5ilxe3" }],
|
|
384
384
|
["path", { d: "M13.9 21.818a10 10 0 0 1-3.8 0", key: "11zvb9" }],
|
|
385
385
|
["path", { d: "M17.609 3.721a10 10 0 0 1 2.69 2.7", key: "1iw5b2" }],
|
|
@@ -388,9 +388,9 @@ const __iconNode$11 = [
|
|
|
388
388
|
["path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8", key: "qkgqxc" }],
|
|
389
389
|
["path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69", key: "1mcia2" }],
|
|
390
390
|
["path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7", key: "1fvljs" }]
|
|
391
|
-
], CircleDashed = createLucideIcon("circle-dashed", __iconNode$
|
|
392
|
-
const __iconNode$
|
|
393
|
-
const __iconNode
|
|
391
|
+
], CircleDashed = createLucideIcon("circle-dashed", __iconNode$12);
|
|
392
|
+
const __iconNode$11 = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Circle = createLucideIcon("circle", __iconNode$11);
|
|
393
|
+
const __iconNode$10 = [
|
|
394
394
|
["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
|
|
395
395
|
[
|
|
396
396
|
"path",
|
|
@@ -403,39 +403,39 @@ const __iconNode$$ = [
|
|
|
403
403
|
["path", { d: "M12 16h4", key: "n85exb" }],
|
|
404
404
|
["path", { d: "M8 11h.01", key: "1dfujw" }],
|
|
405
405
|
["path", { d: "M8 16h.01", key: "18s6g9" }]
|
|
406
|
-
], ClipboardList = createLucideIcon("clipboard-list", __iconNode
|
|
407
|
-
const __iconNode
|
|
406
|
+
], ClipboardList = createLucideIcon("clipboard-list", __iconNode$10);
|
|
407
|
+
const __iconNode$$ = [
|
|
408
408
|
["path", { d: "m18 16 4-4-4-4", key: "1inbqp" }],
|
|
409
409
|
["path", { d: "m6 8-4 4 4 4", key: "15zrgr" }],
|
|
410
410
|
["path", { d: "m14.5 4-5 16", key: "e7oirm" }]
|
|
411
|
-
], CodeXml = createLucideIcon("code-xml", __iconNode
|
|
412
|
-
const __iconNode$
|
|
411
|
+
], CodeXml = createLucideIcon("code-xml", __iconNode$$);
|
|
412
|
+
const __iconNode$_ = [
|
|
413
413
|
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
414
414
|
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
415
|
-
], Code$1 = createLucideIcon("code", __iconNode$
|
|
416
|
-
const __iconNode$
|
|
415
|
+
], Code$1 = createLucideIcon("code", __iconNode$_);
|
|
416
|
+
const __iconNode$Z = [
|
|
417
417
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
418
418
|
["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" }]
|
|
419
|
-
], Copy = createLucideIcon("copy", __iconNode$
|
|
420
|
-
const __iconNode$
|
|
419
|
+
], Copy = createLucideIcon("copy", __iconNode$Z);
|
|
420
|
+
const __iconNode$Y = [
|
|
421
421
|
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
422
422
|
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
423
|
-
], CreditCard = createLucideIcon("credit-card", __iconNode$
|
|
424
|
-
const __iconNode$
|
|
423
|
+
], CreditCard = createLucideIcon("credit-card", __iconNode$Y);
|
|
424
|
+
const __iconNode$X = [
|
|
425
425
|
["line", { x1: "12", x2: "12", y1: "2", y2: "22", key: "7eqyqh" }],
|
|
426
426
|
["path", { d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6", key: "1b0p4s" }]
|
|
427
|
-
], DollarSign = createLucideIcon("dollar-sign", __iconNode$
|
|
428
|
-
const __iconNode$
|
|
427
|
+
], DollarSign = createLucideIcon("dollar-sign", __iconNode$X);
|
|
428
|
+
const __iconNode$W = [
|
|
429
429
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
430
430
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
431
431
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
432
|
-
], Download = createLucideIcon("download", __iconNode$
|
|
433
|
-
const __iconNode$
|
|
432
|
+
], Download = createLucideIcon("download", __iconNode$W);
|
|
433
|
+
const __iconNode$V = [
|
|
434
434
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
435
435
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
436
436
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
437
|
-
], ExternalLink = createLucideIcon("external-link", __iconNode$
|
|
438
|
-
const __iconNode$
|
|
437
|
+
], ExternalLink = createLucideIcon("external-link", __iconNode$V);
|
|
438
|
+
const __iconNode$U = [
|
|
439
439
|
[
|
|
440
440
|
"path",
|
|
441
441
|
{
|
|
@@ -444,8 +444,8 @@ const __iconNode$T = [
|
|
|
444
444
|
}
|
|
445
445
|
],
|
|
446
446
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
447
|
-
], Eye = createLucideIcon("eye", __iconNode$
|
|
448
|
-
const __iconNode$
|
|
447
|
+
], Eye = createLucideIcon("eye", __iconNode$U);
|
|
448
|
+
const __iconNode$T = [
|
|
449
449
|
[
|
|
450
450
|
"path",
|
|
451
451
|
{
|
|
@@ -457,8 +457,8 @@ const __iconNode$S = [
|
|
|
457
457
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
458
458
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
459
459
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
460
|
-
], FileText = createLucideIcon("file-text", __iconNode$
|
|
461
|
-
const __iconNode$
|
|
460
|
+
], FileText = createLucideIcon("file-text", __iconNode$T);
|
|
461
|
+
const __iconNode$S = [
|
|
462
462
|
[
|
|
463
463
|
"path",
|
|
464
464
|
{
|
|
@@ -467,8 +467,8 @@ const __iconNode$R = [
|
|
|
467
467
|
}
|
|
468
468
|
],
|
|
469
469
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }]
|
|
470
|
-
], File$1 = createLucideIcon("file", __iconNode$
|
|
471
|
-
const __iconNode$
|
|
470
|
+
], File$1 = createLucideIcon("file", __iconNode$S);
|
|
471
|
+
const __iconNode$R = [
|
|
472
472
|
[
|
|
473
473
|
"path",
|
|
474
474
|
{
|
|
@@ -476,13 +476,13 @@ const __iconNode$Q = [
|
|
|
476
476
|
key: "sc7q7i"
|
|
477
477
|
}
|
|
478
478
|
]
|
|
479
|
-
], Funnel = createLucideIcon("funnel", __iconNode$
|
|
480
|
-
const __iconNode$
|
|
479
|
+
], Funnel = createLucideIcon("funnel", __iconNode$R);
|
|
480
|
+
const __iconNode$Q = [
|
|
481
481
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
482
482
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
483
483
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
484
|
-
], Globe = createLucideIcon("globe", __iconNode$
|
|
485
|
-
const __iconNode$
|
|
484
|
+
], Globe = createLucideIcon("globe", __iconNode$Q);
|
|
485
|
+
const __iconNode$P = [
|
|
486
486
|
["path", { d: "m11 17 2 2a1 1 0 1 0 3-3", key: "efffak" }],
|
|
487
487
|
[
|
|
488
488
|
"path",
|
|
@@ -494,14 +494,14 @@ const __iconNode$O = [
|
|
|
494
494
|
["path", { d: "m21 3 1 11h-2", key: "1tisrp" }],
|
|
495
495
|
["path", { d: "M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3", key: "1uvwmv" }],
|
|
496
496
|
["path", { d: "M3 4h8", key: "1ep09j" }]
|
|
497
|
-
], Handshake = createLucideIcon("handshake", __iconNode$
|
|
498
|
-
const __iconNode$
|
|
497
|
+
], Handshake = createLucideIcon("handshake", __iconNode$P);
|
|
498
|
+
const __iconNode$O = [
|
|
499
499
|
["path", { d: "M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5", key: "1p9q5i" }],
|
|
500
500
|
["path", { d: "M14 6a6 6 0 0 1 6 6v3", key: "1hnv84" }],
|
|
501
501
|
["path", { d: "M4 15v-3a6 6 0 0 1 6-6", key: "9ciidu" }],
|
|
502
502
|
["rect", { x: "2", y: "15", width: "20", height: "4", rx: "1", key: "g3x8cw" }]
|
|
503
|
-
], HardHat = createLucideIcon("hard-hat", __iconNode$
|
|
504
|
-
const __iconNode$
|
|
503
|
+
], HardHat = createLucideIcon("hard-hat", __iconNode$O);
|
|
504
|
+
const __iconNode$N = [
|
|
505
505
|
["line", { x1: "2", x2: "22", y1: "2", y2: "22", key: "a6p6uj" }],
|
|
506
506
|
["path", { d: "M10.41 10.41a2 2 0 1 1-2.83-2.83", key: "1bzlo9" }],
|
|
507
507
|
["line", { x1: "13.5", x2: "6", y1: "13.5", y2: "21", key: "1q0aeu" }],
|
|
@@ -514,49 +514,49 @@ const __iconNode$M = [
|
|
|
514
514
|
}
|
|
515
515
|
],
|
|
516
516
|
["path", { d: "M21 15V5a2 2 0 0 0-2-2H9", key: "43el77" }]
|
|
517
|
-
], ImageOff = createLucideIcon("image-off", __iconNode$
|
|
518
|
-
const __iconNode$
|
|
517
|
+
], ImageOff = createLucideIcon("image-off", __iconNode$N);
|
|
518
|
+
const __iconNode$M = [
|
|
519
519
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
520
520
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
521
521
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
522
|
-
], Info = createLucideIcon("info", __iconNode$
|
|
523
|
-
const __iconNode$
|
|
522
|
+
], Info = createLucideIcon("info", __iconNode$M);
|
|
523
|
+
const __iconNode$L = [
|
|
524
524
|
["line", { x1: "19", x2: "10", y1: "4", y2: "4", key: "15jd3p" }],
|
|
525
525
|
["line", { x1: "14", x2: "5", y1: "20", y2: "20", key: "bu0au3" }],
|
|
526
526
|
["line", { x1: "15", x2: "9", y1: "4", y2: "20", key: "uljnxc" }]
|
|
527
|
-
], Italic$1 = createLucideIcon("italic", __iconNode$
|
|
528
|
-
const __iconNode$
|
|
527
|
+
], Italic$1 = createLucideIcon("italic", __iconNode$L);
|
|
528
|
+
const __iconNode$K = [
|
|
529
529
|
["path", { d: "M11 5h10", key: "1cz7ny" }],
|
|
530
530
|
["path", { d: "M11 12h10", key: "1438ji" }],
|
|
531
531
|
["path", { d: "M11 19h10", key: "11t30w" }],
|
|
532
532
|
["path", { d: "M4 4h1v5", key: "10yrso" }],
|
|
533
533
|
["path", { d: "M4 9h2", key: "r1h2o0" }],
|
|
534
534
|
["path", { d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02", key: "xtkcd5" }]
|
|
535
|
-
], ListOrdered = createLucideIcon("list-ordered", __iconNode$
|
|
536
|
-
const __iconNode$
|
|
535
|
+
], ListOrdered = createLucideIcon("list-ordered", __iconNode$K);
|
|
536
|
+
const __iconNode$J = [
|
|
537
537
|
["path", { d: "M3 5h.01", key: "18ugdj" }],
|
|
538
538
|
["path", { d: "M3 12h.01", key: "nlz23k" }],
|
|
539
539
|
["path", { d: "M3 19h.01", key: "noohij" }],
|
|
540
540
|
["path", { d: "M8 5h13", key: "1pao27" }],
|
|
541
541
|
["path", { d: "M8 12h13", key: "1za7za" }],
|
|
542
542
|
["path", { d: "M8 19h13", key: "m83p4d" }]
|
|
543
|
-
], List$1 = createLucideIcon("list", __iconNode$
|
|
544
|
-
const __iconNode$
|
|
545
|
-
const __iconNode$
|
|
543
|
+
], List$1 = createLucideIcon("list", __iconNode$J);
|
|
544
|
+
const __iconNode$I = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], LoaderCircle = createLucideIcon("loader-circle", __iconNode$I);
|
|
545
|
+
const __iconNode$H = [
|
|
546
546
|
["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
|
|
547
547
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
548
548
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
|
|
549
|
-
], LogOut = createLucideIcon("log-out", __iconNode$
|
|
550
|
-
const __iconNode$
|
|
549
|
+
], LogOut = createLucideIcon("log-out", __iconNode$H);
|
|
550
|
+
const __iconNode$G = [
|
|
551
551
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
552
552
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
553
|
-
], Mail = createLucideIcon("mail", __iconNode$
|
|
554
|
-
const __iconNode$
|
|
553
|
+
], Mail = createLucideIcon("mail", __iconNode$G);
|
|
554
|
+
const __iconNode$F = [
|
|
555
555
|
["path", { d: "M4 5h16", key: "1tepv9" }],
|
|
556
556
|
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
557
557
|
["path", { d: "M4 19h16", key: "1djgab" }]
|
|
558
|
-
], Menu$1 = createLucideIcon("menu", __iconNode$
|
|
559
|
-
const __iconNode$
|
|
558
|
+
], Menu$1 = createLucideIcon("menu", __iconNode$F);
|
|
559
|
+
const __iconNode$E = [
|
|
560
560
|
[
|
|
561
561
|
"path",
|
|
562
562
|
{
|
|
@@ -566,8 +566,8 @@ const __iconNode$D = [
|
|
|
566
566
|
],
|
|
567
567
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
568
568
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
569
|
-
], MessageCircleX = createLucideIcon("message-circle-x", __iconNode$
|
|
570
|
-
const __iconNode$
|
|
569
|
+
], MessageCircleX = createLucideIcon("message-circle-x", __iconNode$E);
|
|
570
|
+
const __iconNode$D = [
|
|
571
571
|
[
|
|
572
572
|
"path",
|
|
573
573
|
{
|
|
@@ -577,8 +577,8 @@ const __iconNode$C = [
|
|
|
577
577
|
],
|
|
578
578
|
["path", { d: "M20 15v-2a2 2 0 0 0-4 0v2", key: "vl8a78" }],
|
|
579
579
|
["rect", { x: "14", y: "15", width: "8", height: "5", rx: "1", key: "37aafw" }]
|
|
580
|
-
], MessageSquareLock = createLucideIcon("message-square-lock", __iconNode$
|
|
581
|
-
const __iconNode$
|
|
580
|
+
], MessageSquareLock = createLucideIcon("message-square-lock", __iconNode$D);
|
|
581
|
+
const __iconNode$C = [
|
|
582
582
|
[
|
|
583
583
|
"path",
|
|
584
584
|
{
|
|
@@ -588,8 +588,8 @@ const __iconNode$B = [
|
|
|
588
588
|
],
|
|
589
589
|
["path", { d: "M16 3h6v6", key: "1bx56c" }],
|
|
590
590
|
["path", { d: "m16 9 6-6", key: "m4dnic" }]
|
|
591
|
-
], MessageSquareShare = createLucideIcon("message-square-share", __iconNode$
|
|
592
|
-
const __iconNode$
|
|
591
|
+
], MessageSquareShare = createLucideIcon("message-square-share", __iconNode$C);
|
|
592
|
+
const __iconNode$B = [
|
|
593
593
|
[
|
|
594
594
|
"path",
|
|
595
595
|
{
|
|
@@ -597,9 +597,9 @@ const __iconNode$A = [
|
|
|
597
597
|
key: "18887p"
|
|
598
598
|
}
|
|
599
599
|
]
|
|
600
|
-
], MessageSquare = createLucideIcon("message-square", __iconNode$
|
|
601
|
-
const __iconNode$
|
|
602
|
-
const __iconNode$
|
|
600
|
+
], MessageSquare = createLucideIcon("message-square", __iconNode$B);
|
|
601
|
+
const __iconNode$A = [["path", { d: "M5 12h14", key: "1ays0h" }]], Minus = createLucideIcon("minus", __iconNode$A);
|
|
602
|
+
const __iconNode$z = [
|
|
603
603
|
["path", { d: "M14 4.1 12 6", key: "ita8i4" }],
|
|
604
604
|
["path", { d: "m5.1 8-2.9-.8", key: "1go3kf" }],
|
|
605
605
|
["path", { d: "m6 12-1.9 2", key: "mnht97" }],
|
|
@@ -611,8 +611,8 @@ const __iconNode$y = [
|
|
|
611
611
|
key: "s0h3yz"
|
|
612
612
|
}
|
|
613
613
|
]
|
|
614
|
-
], MousePointerClick = createLucideIcon("mouse-pointer-click", __iconNode$
|
|
615
|
-
const __iconNode$
|
|
614
|
+
], MousePointerClick = createLucideIcon("mouse-pointer-click", __iconNode$z);
|
|
615
|
+
const __iconNode$y = [
|
|
616
616
|
["path", { d: "M12 3v6", key: "1holv5" }],
|
|
617
617
|
[
|
|
618
618
|
"path",
|
|
@@ -622,8 +622,8 @@ const __iconNode$x = [
|
|
|
622
622
|
}
|
|
623
623
|
],
|
|
624
624
|
["path", { d: "M3.054 9.013h17.893", key: "grwhos" }]
|
|
625
|
-
], Package2 = createLucideIcon("package-2", __iconNode$
|
|
626
|
-
const __iconNode$
|
|
625
|
+
], Package2 = createLucideIcon("package-2", __iconNode$y);
|
|
626
|
+
const __iconNode$x = [
|
|
627
627
|
[
|
|
628
628
|
"path",
|
|
629
629
|
{
|
|
@@ -634,12 +634,12 @@ const __iconNode$w = [
|
|
|
634
634
|
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
635
635
|
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
636
636
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
637
|
-
], Package = createLucideIcon("package", __iconNode$
|
|
638
|
-
const __iconNode$
|
|
637
|
+
], Package = createLucideIcon("package", __iconNode$x);
|
|
638
|
+
const __iconNode$w = [
|
|
639
639
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
640
640
|
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
641
|
-
], PanelLeft = createLucideIcon("panel-left", __iconNode$
|
|
642
|
-
const __iconNode$
|
|
641
|
+
], PanelLeft = createLucideIcon("panel-left", __iconNode$w);
|
|
642
|
+
const __iconNode$v = [
|
|
643
643
|
[
|
|
644
644
|
"path",
|
|
645
645
|
{
|
|
@@ -647,8 +647,8 @@ const __iconNode$u = [
|
|
|
647
647
|
key: "1miecu"
|
|
648
648
|
}
|
|
649
649
|
]
|
|
650
|
-
], Paperclip = createLucideIcon("paperclip", __iconNode$
|
|
651
|
-
const __iconNode$
|
|
650
|
+
], Paperclip = createLucideIcon("paperclip", __iconNode$v);
|
|
651
|
+
const __iconNode$u = [
|
|
652
652
|
[
|
|
653
653
|
"path",
|
|
654
654
|
{
|
|
@@ -657,8 +657,8 @@ const __iconNode$t = [
|
|
|
657
657
|
}
|
|
658
658
|
],
|
|
659
659
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
660
|
-
], Pencil = createLucideIcon("pencil", __iconNode$
|
|
661
|
-
const __iconNode$
|
|
660
|
+
], Pencil = createLucideIcon("pencil", __iconNode$u);
|
|
661
|
+
const __iconNode$t = [
|
|
662
662
|
[
|
|
663
663
|
"path",
|
|
664
664
|
{
|
|
@@ -666,8 +666,8 @@ const __iconNode$s = [
|
|
|
666
666
|
key: "9njp5v"
|
|
667
667
|
}
|
|
668
668
|
]
|
|
669
|
-
], Phone = createLucideIcon("phone", __iconNode$
|
|
670
|
-
const __iconNode$
|
|
669
|
+
], Phone = createLucideIcon("phone", __iconNode$t);
|
|
670
|
+
const __iconNode$s = [
|
|
671
671
|
[
|
|
672
672
|
"path",
|
|
673
673
|
{
|
|
@@ -675,7 +675,11 @@ const __iconNode$r = [
|
|
|
675
675
|
key: "10ikf1"
|
|
676
676
|
}
|
|
677
677
|
]
|
|
678
|
-
], Play = createLucideIcon("play", __iconNode$
|
|
678
|
+
], Play = createLucideIcon("play", __iconNode$s);
|
|
679
|
+
const __iconNode$r = [
|
|
680
|
+
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
681
|
+
["path", { d: "M12 5v14", key: "s699le" }]
|
|
682
|
+
], Plus = createLucideIcon("plus", __iconNode$r);
|
|
679
683
|
const __iconNode$q = [
|
|
680
684
|
[
|
|
681
685
|
"path",
|
|
@@ -53130,7 +53134,7 @@ const ScrollBar = React.forwardRef(({ className: e, orientation: t = "vertical",
|
|
|
53130
53134
|
));
|
|
53131
53135
|
ScrollBar.displayName = ScrollAreaScrollbar.displayName;
|
|
53132
53136
|
function ChatList({ appID: e, chats: t, activeChat: n, onSelectChat: a }) {
|
|
53133
|
-
return /* @__PURE__ */ jsx("div", { className: "space-y-1", children: t.slice().sort((s, o) => (s.pending ? -10 : 0) + ((o.lastMessageTime ?? "") > (s.lastMessageTime ?? "") ? 1 : -1)).map((s) => {
|
|
53137
|
+
return /* @__PURE__ */ jsx("div", { className: "space-y-1.5", children: t.slice().sort((s, o) => (s.pending ? -10 : 0) + ((o.lastMessageTime ?? "") > (s.lastMessageTime ?? "") ? 1 : -1)).map((s) => {
|
|
53134
53138
|
const o = /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(PartnerLogo, { id: s.partner1 === e ? s.partner2 : s.partner1, width: 72, height: 72 }) });
|
|
53135
53139
|
return display(s, n, a, o);
|
|
53136
53140
|
}) });
|
|
@@ -53158,18 +53162,19 @@ function display(e, t, n, a) {
|
|
|
53158
53162
|
"button",
|
|
53159
53163
|
{
|
|
53160
53164
|
className: cn(
|
|
53161
|
-
"w-full flex items-center
|
|
53162
|
-
|
|
53163
|
-
e.
|
|
53165
|
+
"relative w-full flex items-center gap-3 rounded-xl px-3 py-2.5 text-left transition-colors",
|
|
53166
|
+
"hover:bg-primary/5",
|
|
53167
|
+
sameChat(t, [e.partner1, e.partner2]) && "bg-primary/10 before:content-[''] before:absolute before:left-1 before:top-2 before:bottom-2 before:w-1 before:rounded-full before:bg-primary",
|
|
53168
|
+
e.pending ? "bg-primary/5" : ""
|
|
53164
53169
|
),
|
|
53165
53170
|
onClick: () => n([e.partner1, e.partner2]),
|
|
53166
53171
|
children: [
|
|
53167
|
-
/* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-
|
|
53168
|
-
/* @__PURE__ */ jsxs("div", { className: "
|
|
53172
|
+
/* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-lg", children: e.pending ? /* @__PURE__ */ jsx(MessageSquareLock, { className: "h-4 w-4 text-primary" }) : /* @__PURE__ */ jsx(Fragment$1, { children: a }) }),
|
|
53173
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 overflow-hidden", children: [
|
|
53169
53174
|
/* @__PURE__ */ jsx("div", { className: "font-medium text-sm truncate", children: e.name }),
|
|
53170
|
-
/* @__PURE__ */ jsx("div", { className: "text-xs
|
|
53175
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground truncate text-ellipsis", children: formatLastMessageTime(e.lastMessageTime) })
|
|
53171
53176
|
] }),
|
|
53172
|
-
e.unread > 0 && /* @__PURE__ */ jsx("div", { className: "ml-auto
|
|
53177
|
+
e.unread > 0 && /* @__PURE__ */ jsx("div", { className: "ml-auto min-w-5 px-1 bg-destructive text-destructive-foreground text-[11px] rounded-full h-5 flex items-center justify-center", children: e.unread })
|
|
53173
53178
|
]
|
|
53174
53179
|
},
|
|
53175
53180
|
e.partner1 + " and " + e.partner2
|
|
@@ -53353,9 +53358,9 @@ function ChatLeftSidebar({
|
|
|
53353
53358
|
at({ title: "Success", description: "Role updated successfully" });
|
|
53354
53359
|
});
|
|
53355
53360
|
};
|
|
53356
|
-
return /* @__PURE__ */ jsxs("div", { className: "w-[
|
|
53357
|
-
/* @__PURE__ */ jsxs("div", { className: "
|
|
53358
|
-
/* @__PURE__ */ jsx("span", { children: "Communications" }),
|
|
53361
|
+
return /* @__PURE__ */ jsxs("div", { className: "w-[300px] shrink-0 px-4 py-4 flex flex-col border-r border-border/60 bg-background", children: [
|
|
53362
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 px-2 pb-3", children: [
|
|
53363
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold tracking-tight", children: "Communications" }),
|
|
53359
53364
|
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
53360
53365
|
/* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
53361
53366
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
|
|
@@ -53389,13 +53394,13 @@ function ChatLeftSidebar({
|
|
|
53389
53394
|
] })
|
|
53390
53395
|
] }) })
|
|
53391
53396
|
] }),
|
|
53392
|
-
t.length > 1 && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("div", { className: "
|
|
53397
|
+
t.length > 1 && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("div", { className: "px-2 pb-3", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
53393
53398
|
/* @__PURE__ */ jsx(Search, { className: "absolute left-2 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground" }),
|
|
53394
53399
|
/* @__PURE__ */ jsx(
|
|
53395
53400
|
Input,
|
|
53396
53401
|
{
|
|
53397
53402
|
placeholder: "Search chats...",
|
|
53398
|
-
className: "pl-8
|
|
53403
|
+
className: "h-10 pl-8 rounded-xl bg-muted/40 border-transparent shadow-none focus-visible:ring-1 focus-visible:ring-primary/30",
|
|
53399
53404
|
value: R,
|
|
53400
53405
|
onChange: (mt) => V(mt.target.value)
|
|
53401
53406
|
}
|
|
@@ -53404,7 +53409,7 @@ function ChatLeftSidebar({
|
|
|
53404
53409
|
/* @__PURE__ */ jsx("div", { className: "mt-1 mb-1", children: t.findIndex((mt) => mt.partner1 === "2" || mt.partner2 === "2") < 0 ? /* @__PURE__ */ jsx(
|
|
53405
53410
|
Button$1,
|
|
53406
53411
|
{
|
|
53407
|
-
className: "w-full",
|
|
53412
|
+
className: "w-full rounded-xl",
|
|
53408
53413
|
ref: n,
|
|
53409
53414
|
disabled: a,
|
|
53410
53415
|
onClick: l,
|
|
@@ -53416,21 +53421,46 @@ function ChatLeftSidebar({
|
|
|
53416
53421
|
"b1"
|
|
53417
53422
|
) : null }),
|
|
53418
53423
|
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: t.length > 0 && /* @__PURE__ */ jsx(ChatList, { appID: e, chats: nt, activeChat: A, onSelectChat: g }) }),
|
|
53419
|
-
/* @__PURE__ */ jsx(Separator$1, { className: "mt-
|
|
53420
|
-
/* @__PURE__ */ jsxs("div", { className: "
|
|
53421
|
-
/* @__PURE__ */
|
|
53422
|
-
|
|
53423
|
-
|
|
53424
|
-
|
|
53425
|
-
|
|
53426
|
-
|
|
53427
|
-
|
|
53428
|
-
|
|
53429
|
-
|
|
53430
|
-
|
|
53431
|
-
|
|
53432
|
-
|
|
53433
|
-
|
|
53424
|
+
/* @__PURE__ */ jsx(Separator$1, { className: "mt-4" }),
|
|
53425
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-3 space-y-3", children: [
|
|
53426
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
53427
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-semibold tracking-wide text-muted-foreground uppercase", children: "Name" }),
|
|
53428
|
+
/* @__PURE__ */ jsx(
|
|
53429
|
+
Input,
|
|
53430
|
+
{
|
|
53431
|
+
value: Ve ?? "",
|
|
53432
|
+
onChange: (mt) => Ye(mt.target.value),
|
|
53433
|
+
onBlur: Ct,
|
|
53434
|
+
className: "mt-1 h-8 border-0 bg-transparent px-0 text-sm font-medium shadow-none focus-visible:ring-0"
|
|
53435
|
+
}
|
|
53436
|
+
)
|
|
53437
|
+
] }),
|
|
53438
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
53439
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-semibold tracking-wide text-muted-foreground uppercase", children: "Role" }),
|
|
53440
|
+
/* @__PURE__ */ jsx(
|
|
53441
|
+
Input,
|
|
53442
|
+
{
|
|
53443
|
+
value: rt ?? "",
|
|
53444
|
+
onChange: (mt) => et(mt.target.value),
|
|
53445
|
+
onBlur: ft,
|
|
53446
|
+
className: "mt-1 h-8 border-0 bg-transparent px-0 text-sm font-medium shadow-none focus-visible:ring-0"
|
|
53447
|
+
}
|
|
53448
|
+
)
|
|
53449
|
+
] }),
|
|
53450
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3 pt-1", children: [
|
|
53451
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
53452
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-semibold tracking-wide text-muted-foreground uppercase", children: "Email notifications" }),
|
|
53453
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Conversation updates" })
|
|
53454
|
+
] }),
|
|
53455
|
+
/* @__PURE__ */ jsx(
|
|
53456
|
+
Switch,
|
|
53457
|
+
{
|
|
53458
|
+
disabled: ct || !ot,
|
|
53459
|
+
onCheckedChange: It,
|
|
53460
|
+
checked: ot?.Notifications?.find((mt) => mt.NotificationType === "PartnerChatNotifications") !== void 0
|
|
53461
|
+
}
|
|
53462
|
+
)
|
|
53463
|
+
] })
|
|
53434
53464
|
] })
|
|
53435
53465
|
] });
|
|
53436
53466
|
}
|
|
@@ -56581,15 +56611,15 @@ function formatTimestamp(e) {
|
|
|
56581
56611
|
return isToday(t) ? t.toLocaleTimeString([], { hour: "numeric", minute: "2-digit", hour12: !0 }) : isYesterday(t) ? `Yesterday, ${t.toLocaleTimeString([], { hour: "numeric", minute: "2-digit", hour12: !0 })}` : `${t.toLocaleDateString([], { month: "short", day: "numeric" })} ${t.toLocaleTimeString([], { hour: "numeric", minute: "2-digit", hour12: !0 })}`;
|
|
56582
56612
|
}
|
|
56583
56613
|
function SkeletonMessage({ botStatus: e }) {
|
|
56584
|
-
return /* @__PURE__ */ jsx("div", { className: "
|
|
56585
|
-
/* @__PURE__ */
|
|
56614
|
+
return /* @__PURE__ */ jsx("div", { className: "relative w-full rounded-lg border-l-2 border-primary/40 pr-6 pl-5 py-3", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground", children: [
|
|
56615
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
56586
56616
|
/* @__PURE__ */ jsx("div", { className: "h-2 w-2 rounded-full bg-primary animate-pulse" }),
|
|
56587
56617
|
/* @__PURE__ */ jsx("div", { className: "h-2 w-2 rounded-full bg-primary animate-pulse delay-150" }),
|
|
56588
|
-
/* @__PURE__ */ jsx("div", { className: "h-2 w-2 rounded-full bg-primary animate-pulse delay-300" })
|
|
56589
|
-
|
|
56590
|
-
|
|
56591
|
-
/* @__PURE__ */ jsx("span", { className: "
|
|
56592
|
-
] }) })
|
|
56618
|
+
/* @__PURE__ */ jsx("div", { className: "h-2 w-2 rounded-full bg-primary animate-pulse delay-300" })
|
|
56619
|
+
] }),
|
|
56620
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-foreground/80", children: e }),
|
|
56621
|
+
/* @__PURE__ */ jsx("span", { className: "ml-auto whitespace-nowrap", children: (/* @__PURE__ */ new Date()).toLocaleTimeString([], { hour: "numeric", minute: "2-digit", hour12: !0 }) })
|
|
56622
|
+
] }) });
|
|
56593
56623
|
}
|
|
56594
56624
|
const ChatMessageRow = memo$1(function e({
|
|
56595
56625
|
message: t,
|
|
@@ -56612,100 +56642,124 @@ const ChatMessageRow = memo$1(function e({
|
|
|
56612
56642
|
const lt = typeof ct?.mimeType == "string" ? ct.mimeType.trim() : "", st = typeof ct?.base64Data == "string" ? ct.base64Data.replace(/\s+/g, "") : "";
|
|
56613
56643
|
return !lt.startsWith("image/") || st.length === 0 ? null : `data:${lt};base64,${st}`;
|
|
56614
56644
|
}).filter((ct) => !!ct), [t.images]);
|
|
56615
|
-
return /* @__PURE__ */ jsx(
|
|
56616
|
-
|
|
56617
|
-
|
|
56618
|
-
|
|
56619
|
-
"
|
|
56620
|
-
|
|
56621
|
-
|
|
56622
|
-
|
|
56623
|
-
|
|
56624
|
-
|
|
56625
|
-
|
|
56626
|
-
|
|
56627
|
-
|
|
56628
|
-
|
|
56629
|
-
|
|
56645
|
+
return /* @__PURE__ */ jsx(
|
|
56646
|
+
"div",
|
|
56647
|
+
{
|
|
56648
|
+
className: cn(
|
|
56649
|
+
"group w-full rounded-lg border-l-2 pr-6 pl-5 py-3 transition-colors",
|
|
56650
|
+
"hover:bg-primary/5",
|
|
56651
|
+
n ? "border-primary" : "border-transparent"
|
|
56652
|
+
),
|
|
56653
|
+
children: /* @__PURE__ */ jsxs("div", { className: cn("flex gap-3", f && "w-full"), children: [
|
|
56654
|
+
/* @__PURE__ */ jsxs("div", { className: cn("min-w-0 flex-1", f && "w-full"), children: [
|
|
56655
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-2", children: [
|
|
56656
|
+
!a && t.senderName?.trim() ? /* @__PURE__ */ jsx("p", { className: cn("text-sm font-semibold", n ? "text-primary" : "text-foreground"), children: t.senderName }) : /* @__PURE__ */ jsx("span", { className: "sr-only", children: t.senderName }),
|
|
56657
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: formatTimestamp(t.timestamp) })
|
|
56658
|
+
] }),
|
|
56659
|
+
/* @__PURE__ */ jsxs(
|
|
56660
|
+
"div",
|
|
56661
|
+
{
|
|
56662
|
+
className: cn(
|
|
56663
|
+
"mt-1 break-words text-[15px] leading-relaxed text-foreground",
|
|
56664
|
+
"[&_p]:my-2 [&_p]:leading-relaxed first:[&_p]:mt-0 last:[&_p]:mb-0",
|
|
56665
|
+
"[&_li]:ml-6 [&_li]:list-disc [&_h1]:text-base [&_h1]:font-semibold [&_h1]:mt-4 [&_h2]:text-base [&_h2]:font-semibold [&_h2]:mt-4 [&_h3]:text-sm [&_h3]:font-semibold [&_h3]:mt-3",
|
|
56666
|
+
f && "mt-2"
|
|
56667
|
+
),
|
|
56668
|
+
children: [
|
|
56669
|
+
f ? /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border/60 bg-background p-3", children: [
|
|
56670
|
+
/* @__PURE__ */ jsx(
|
|
56671
|
+
Textarea,
|
|
56672
|
+
{
|
|
56673
|
+
className: "w-full min-h-14 max-h-[30em] resize-none field-sizing-content bg-background p-2 text-sm text-foreground border-0 shadow-none focus-visible:ring-0",
|
|
56674
|
+
value: g,
|
|
56675
|
+
onChange: (ot) => A(ot.target.value)
|
|
56676
|
+
}
|
|
56677
|
+
),
|
|
56678
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-3 flex justify-end gap-2", children: [
|
|
56679
|
+
/* @__PURE__ */ jsxs(Button$1, { size: "sm", variant: "outline", onClick: V, children: [
|
|
56680
|
+
/* @__PURE__ */ jsx(X$2, { className: "h-4 w-4" }),
|
|
56681
|
+
" Cancel"
|
|
56682
|
+
] }),
|
|
56683
|
+
/* @__PURE__ */ jsxs(Button$1, { size: "sm", onClick: Ve, children: [
|
|
56684
|
+
/* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }),
|
|
56685
|
+
" Save"
|
|
56686
|
+
] })
|
|
56687
|
+
] })
|
|
56688
|
+
] }) : nt && /* @__PURE__ */ jsx("div", { dangerouslySetInnerHTML: { __html: et } }),
|
|
56689
|
+
at.length > 0 && /* @__PURE__ */ jsx("div", { className: "mt-3 space-y-3", children: at.map((ot, ct) => /* @__PURE__ */ jsx(
|
|
56690
|
+
"a",
|
|
56691
|
+
{
|
|
56692
|
+
href: ot,
|
|
56693
|
+
target: "_blank",
|
|
56694
|
+
rel: "noopener noreferrer",
|
|
56695
|
+
className: "block",
|
|
56696
|
+
children: /* @__PURE__ */ jsx(
|
|
56697
|
+
"img",
|
|
56698
|
+
{
|
|
56699
|
+
src: ot,
|
|
56700
|
+
alt: `${t.senderName || (n ? "User" : "Assistant")} image ${ct + 1}`,
|
|
56701
|
+
className: "max-w-full h-auto rounded-xl border border-border/60 bg-background",
|
|
56702
|
+
loading: "lazy"
|
|
56703
|
+
}
|
|
56704
|
+
)
|
|
56705
|
+
},
|
|
56706
|
+
`${t.id}-img-${ct}`
|
|
56707
|
+
)) })
|
|
56708
|
+
]
|
|
56709
|
+
}
|
|
56710
|
+
)
|
|
56711
|
+
] }),
|
|
56712
|
+
/* @__PURE__ */ jsxs(
|
|
56713
|
+
"div",
|
|
56714
|
+
{
|
|
56715
|
+
className: cn(
|
|
56716
|
+
"flex items-start gap-1 pt-0.5",
|
|
56717
|
+
l || s || o ? "opacity-0 group-hover:opacity-100" : "opacity-0",
|
|
56718
|
+
"transition-opacity",
|
|
56719
|
+
f && "opacity-100"
|
|
56720
|
+
),
|
|
56721
|
+
children: [
|
|
56722
|
+
l && !f && /* @__PURE__ */ jsx(
|
|
56723
|
+
Button$1,
|
|
56630
56724
|
{
|
|
56631
|
-
|
|
56632
|
-
|
|
56633
|
-
|
|
56725
|
+
size: "icon",
|
|
56726
|
+
variant: "ghost",
|
|
56727
|
+
className: "h-7 w-7",
|
|
56728
|
+
onClick: rt,
|
|
56729
|
+
"aria-label": c ? "Copied message" : "Copy message",
|
|
56730
|
+
children: c ? /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(Copy, { className: "h-4 w-4" })
|
|
56634
56731
|
}
|
|
56635
56732
|
),
|
|
56636
|
-
/* @__PURE__ */ jsxs(
|
|
56637
|
-
/* @__PURE__ */
|
|
56638
|
-
|
|
56639
|
-
|
|
56640
|
-
|
|
56641
|
-
|
|
56642
|
-
|
|
56643
|
-
|
|
56644
|
-
|
|
56645
|
-
|
|
56646
|
-
|
|
56647
|
-
|
|
56648
|
-
|
|
56649
|
-
|
|
56650
|
-
href: ot,
|
|
56651
|
-
target: "_blank",
|
|
56652
|
-
rel: "noopener noreferrer",
|
|
56653
|
-
className: "block",
|
|
56654
|
-
children: /* @__PURE__ */ jsx(
|
|
56655
|
-
"img",
|
|
56733
|
+
(s || o) && !f && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
56734
|
+
s && /* @__PURE__ */ jsx(
|
|
56735
|
+
Button$1,
|
|
56736
|
+
{
|
|
56737
|
+
size: "icon",
|
|
56738
|
+
variant: "ghost",
|
|
56739
|
+
className: "h-7 w-7",
|
|
56740
|
+
onClick: R,
|
|
56741
|
+
"aria-label": "Edit message",
|
|
56742
|
+
children: /* @__PURE__ */ jsx(Pencil, { className: "h-4 w-4" })
|
|
56743
|
+
}
|
|
56744
|
+
),
|
|
56745
|
+
o && /* @__PURE__ */ jsx(
|
|
56746
|
+
Button$1,
|
|
56656
56747
|
{
|
|
56657
|
-
|
|
56658
|
-
|
|
56659
|
-
className: "
|
|
56660
|
-
|
|
56748
|
+
size: "icon",
|
|
56749
|
+
variant: "ghost",
|
|
56750
|
+
className: "h-7 w-7",
|
|
56751
|
+
onClick: Ye,
|
|
56752
|
+
"aria-label": "Retry message",
|
|
56753
|
+
children: /* @__PURE__ */ jsx(RotateCcw, { className: "h-4 w-4" })
|
|
56661
56754
|
}
|
|
56662
56755
|
)
|
|
56663
|
-
}
|
|
56664
|
-
|
|
56665
|
-
)) })
|
|
56666
|
-
]
|
|
56667
|
-
}
|
|
56668
|
-
),
|
|
56669
|
-
/* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-1", n && "flex-row-reverse"), children: [
|
|
56670
|
-
l && !f && /* @__PURE__ */ jsx(
|
|
56671
|
-
Button$1,
|
|
56672
|
-
{
|
|
56673
|
-
size: "icon",
|
|
56674
|
-
variant: "ghost",
|
|
56675
|
-
className: "h-6 w-6",
|
|
56676
|
-
onClick: rt,
|
|
56677
|
-
"aria-label": c ? "Copied message" : "Copy message",
|
|
56678
|
-
children: c ? /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(Copy, { className: "h-4 w-4" })
|
|
56756
|
+
] })
|
|
56757
|
+
]
|
|
56679
56758
|
}
|
|
56680
|
-
)
|
|
56681
|
-
(s || o) && !f && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-1", children: [
|
|
56682
|
-
s && /* @__PURE__ */ jsx(
|
|
56683
|
-
Button$1,
|
|
56684
|
-
{
|
|
56685
|
-
size: "icon",
|
|
56686
|
-
variant: "ghost",
|
|
56687
|
-
className: "h-6 w-6",
|
|
56688
|
-
onClick: R,
|
|
56689
|
-
"aria-label": "Edit message",
|
|
56690
|
-
children: /* @__PURE__ */ jsx(Pencil, { className: "h-4 w-4" })
|
|
56691
|
-
}
|
|
56692
|
-
),
|
|
56693
|
-
o && /* @__PURE__ */ jsx(
|
|
56694
|
-
Button$1,
|
|
56695
|
-
{
|
|
56696
|
-
size: "icon",
|
|
56697
|
-
variant: "ghost",
|
|
56698
|
-
className: "h-6 w-6",
|
|
56699
|
-
onClick: Ye,
|
|
56700
|
-
"aria-label": "Retry message",
|
|
56701
|
-
children: /* @__PURE__ */ jsx(RotateCcw, { className: "h-4 w-4" })
|
|
56702
|
-
}
|
|
56703
|
-
)
|
|
56704
|
-
] }),
|
|
56705
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: formatTimestamp(t.timestamp) })
|
|
56759
|
+
)
|
|
56706
56760
|
] })
|
|
56707
|
-
|
|
56708
|
-
|
|
56761
|
+
}
|
|
56762
|
+
);
|
|
56709
56763
|
}, (e, t) => e.isCurrentUser === t.isCurrentUser && e.hideSenderName === t.hideSenderName && e.canEdit === t.canEdit && e.canRetry === t.canRetry && e.canCopy === t.canCopy && e.isCopied === t.isCopied && e.isEditing === t.isEditing && e.editValue === t.editValue && e.message.id === t.message.id && e.message.senderName === t.message.senderName && e.message.content === t.message.content && e.message.images === t.message.images && e.message.timestamp === t.message.timestamp && e.message.fromPartnerID === t.message.fromPartnerID && e.message.toPartnerID === t.message.toPartnerID), ChatMessages = memo$1(function e({
|
|
56710
56764
|
messages: t,
|
|
56711
56765
|
appID: n,
|
|
@@ -56737,7 +56791,7 @@ const ChatMessageRow = memo$1(function e({
|
|
|
56737
56791
|
}
|
|
56738
56792
|
return ot;
|
|
56739
56793
|
}, [t]);
|
|
56740
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
56794
|
+
return /* @__PURE__ */ jsxs("div", { className: "py-3", children: [
|
|
56741
56795
|
t.map((ot) => {
|
|
56742
56796
|
const ct = ot.fromPartnerID === n, lt = !!(l && s && ct && A && V && R), st = !!(l && s && ct && Ve), ut = !!(s && !ct && (ot.content ?? "").trim().length > 0), pt = c === ot.id;
|
|
56743
56797
|
return /* @__PURE__ */ jsx(
|
|
@@ -56783,14 +56837,14 @@ function ChatMainArea({
|
|
|
56783
56837
|
isPostBizDevConvoLoading: f,
|
|
56784
56838
|
acceptChat: g
|
|
56785
56839
|
}) {
|
|
56786
|
-
return /* @__PURE__ */ jsx("div", { className: "flex-5 flex flex-col", children: e ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
56787
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center
|
|
56788
|
-
/* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-
|
|
56789
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
56840
|
+
return /* @__PURE__ */ jsx("div", { className: "flex-5 flex flex-col min-w-0 bg-background", children: e ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
56841
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 px-6 py-4 border-b border-border/60", children: [
|
|
56842
|
+
/* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-lg", children: /* @__PURE__ */ jsx(PartnerLogo, { id: e[0] === n ? e[1] : e[0], width: 72, height: 72 }) }),
|
|
56843
|
+
/* @__PURE__ */ jsx("div", { className: "min-w-0", children: /* @__PURE__ */ jsx("div", { className: "truncate text-sm font-semibold", children: t?.name }) })
|
|
56790
56844
|
] }),
|
|
56791
|
-
t?.pending && t.partner1 == n ? /* @__PURE__ */ jsx("p", { className: "mt-
|
|
56792
|
-
/* @__PURE__ */ jsxs(ScrollArea, { className: "flex-1
|
|
56793
|
-
/* @__PURE__ */ jsx("div", { className: t?.messages === null ? "
|
|
56845
|
+
t?.pending && t.partner1 == n ? /* @__PURE__ */ jsx("p", { className: "mx-auto mt-12 max-w-md px-6 text-center text-sm text-muted-foreground", children: "This conversation is awaiting approval by the other party — please check back later." }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
56846
|
+
/* @__PURE__ */ jsxs(ScrollArea, { className: "flex-1 bg-background", children: [
|
|
56847
|
+
/* @__PURE__ */ jsx("div", { className: t?.messages === null ? "opacity-0" : "", children: /* @__PURE__ */ jsx(
|
|
56794
56848
|
ChatMessages,
|
|
56795
56849
|
{
|
|
56796
56850
|
messages: t?.messages ?? [],
|
|
@@ -56801,7 +56855,7 @@ function ChatMainArea({
|
|
|
56801
56855
|
) }),
|
|
56802
56856
|
/* @__PURE__ */ jsx("div", { ref: a })
|
|
56803
56857
|
] }),
|
|
56804
|
-
/* @__PURE__ */ jsxs("div", { className: "
|
|
56858
|
+
/* @__PURE__ */ jsxs("div", { className: "px-6 py-4 border-t border-border/60 flex items-end gap-3", children: [
|
|
56805
56859
|
t?.pending && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
56806
56860
|
/* @__PURE__ */ jsxs(Button$1, { disabled: f, onClick: () => g(), children: [
|
|
56807
56861
|
/* @__PURE__ */ jsx(Handshake, {}),
|
|
@@ -56822,7 +56876,7 @@ function ChatMainArea({
|
|
|
56822
56876
|
onKeyDown: (A) => {
|
|
56823
56877
|
A.key !== "Enter" || A.shiftKey || (A.preventDefault(), c());
|
|
56824
56878
|
},
|
|
56825
|
-
className: t?.pending ? "collapse" : "flex-1 resize-none field-sizing-content max-h-[30em]",
|
|
56879
|
+
className: t?.pending ? "collapse" : "flex-1 resize-none field-sizing-content max-h-[30em] rounded-xl border border-border/60 bg-muted/20 focus-visible:ring-1 focus-visible:ring-primary/30",
|
|
56826
56880
|
disabled: t?.pending
|
|
56827
56881
|
}
|
|
56828
56882
|
),
|
|
@@ -56831,7 +56885,7 @@ function ChatMainArea({
|
|
|
56831
56885
|
{
|
|
56832
56886
|
size: "icon",
|
|
56833
56887
|
variant: "default",
|
|
56834
|
-
className: t?.pending ? "collapse" : "
|
|
56888
|
+
className: t?.pending ? "collapse" : "h-10 w-10 rounded-xl",
|
|
56835
56889
|
disabled: t?.pending,
|
|
56836
56890
|
onClick: c,
|
|
56837
56891
|
children: /* @__PURE__ */ jsx(Send, { className: "h-6 w-6" })
|
|
@@ -56852,22 +56906,39 @@ function ChatRightSidebar({
|
|
|
56852
56906
|
analyzePartnership: s
|
|
56853
56907
|
}) {
|
|
56854
56908
|
const o = e ? [e.partner1, e.partner2] : void 0;
|
|
56855
|
-
return /* @__PURE__ */ jsx("
|
|
56856
|
-
/* @__PURE__ */
|
|
56857
|
-
|
|
56858
|
-
|
|
56859
|
-
|
|
56860
|
-
|
|
56861
|
-
|
|
56862
|
-
|
|
56863
|
-
|
|
56864
|
-
|
|
56865
|
-
|
|
56866
|
-
|
|
56867
|
-
|
|
56868
|
-
|
|
56869
|
-
|
|
56870
|
-
|
|
56909
|
+
return /* @__PURE__ */ jsx("aside", { className: "w-[340px] shrink-0 border-l border-border/60 bg-background", children: /* @__PURE__ */ jsxs("div", { className: "h-full flex flex-col gap-7 px-5 py-4", children: [
|
|
56910
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
56911
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-semibold tracking-wide text-muted-foreground uppercase", children: "Actions" }),
|
|
56912
|
+
/* @__PURE__ */ jsx(
|
|
56913
|
+
Link$1,
|
|
56914
|
+
{
|
|
56915
|
+
className: "block",
|
|
56916
|
+
inert: o === void 0,
|
|
56917
|
+
to: `/${t}/Partner/${o?.[0] === t ? o[1] : o?.[0]}`,
|
|
56918
|
+
children: /* @__PURE__ */ jsxs(Button$1, { variant: "ghost", className: "w-full justify-start px-2", disabled: o === void 0, children: [
|
|
56919
|
+
/* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
56920
|
+
"View Partner"
|
|
56921
|
+
] })
|
|
56922
|
+
}
|
|
56923
|
+
),
|
|
56924
|
+
/* @__PURE__ */ jsxs(
|
|
56925
|
+
Button$1,
|
|
56926
|
+
{
|
|
56927
|
+
variant: "ghost",
|
|
56928
|
+
className: "w-full justify-start px-2",
|
|
56929
|
+
disabled: (e?.messages ?? []).length < 1,
|
|
56930
|
+
onClick: () => n(e.messages),
|
|
56931
|
+
children: [
|
|
56932
|
+
/* @__PURE__ */ jsx(Bot, { className: "h-4 w-4" }),
|
|
56933
|
+
"Export to Randmar Assistant"
|
|
56934
|
+
]
|
|
56935
|
+
}
|
|
56936
|
+
),
|
|
56937
|
+
/* @__PURE__ */ jsx(Button$1, { className: "w-full", disabled: o === void 0 || a, onClick: s, children: a ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
56938
|
+
/* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
56939
|
+
"Analyzing..."
|
|
56940
|
+
] }) : "Analyze Partnership" })
|
|
56941
|
+
] }),
|
|
56871
56942
|
/* @__PURE__ */ jsx(PartnerActions, { userId: t, partnerId: o?.[0] === t ? o[1] : o?.[0] || "", isAdmin: !1 }),
|
|
56872
56943
|
/* @__PURE__ */ jsx(PeopleSection, { appID: t, activeChatObj: e }),
|
|
56873
56944
|
/* @__PURE__ */ jsx(LinkSection, { appID: t, activeChatObj: e })
|
|
@@ -56878,14 +56949,14 @@ const PeopleSection = ({ appID: e, activeChatObj: t }) => {
|
|
|
56878
56949
|
routeApplicationId: e,
|
|
56879
56950
|
conversationId: n
|
|
56880
56951
|
}, { skip: a }), g = s ?? [];
|
|
56881
|
-
return /* @__PURE__ */ jsxs(
|
|
56882
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
56883
|
-
a ? /* @__PURE__ */ jsx("p", { className: "
|
|
56952
|
+
return /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
56953
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-semibold tracking-wide text-muted-foreground uppercase", children: "People" }),
|
|
56954
|
+
a ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Select a chat to see participants." }) : o || f ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Loading people..." }) : l ? /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
56884
56955
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-destructive", children: "Could not load people." }),
|
|
56885
|
-
/* @__PURE__ */ jsx(Button$1, { variant: "
|
|
56886
|
-
] }) : g.length === 0 ? /* @__PURE__ */ jsx("p", { className: "
|
|
56956
|
+
/* @__PURE__ */ jsx(Button$1, { variant: "ghost", size: "sm", onClick: () => c(), children: "Retry" })
|
|
56957
|
+
] }) : g.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "No participants found." }) : /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-1", children: g.map((A, R) => {
|
|
56887
56958
|
const V = A.ApplicationId ?? `${A.Name ?? "person"}-${R}`, Ve = A.LastAuthentication ? new Date(A.LastAuthentication).toLocaleString() : void 0;
|
|
56888
|
-
return /* @__PURE__ */ jsxs("li", { className: "rounded
|
|
56959
|
+
return /* @__PURE__ */ jsxs("li", { className: "rounded-lg px-2 py-2 text-sm hover:bg-primary/5", children: [
|
|
56889
56960
|
/* @__PURE__ */ jsx("p", { className: "font-medium leading-tight", children: A.Name ?? "Unknown person" }),
|
|
56890
56961
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: A.Role ?? "Role unavailable" }),
|
|
56891
56962
|
Ve ? /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
|
|
@@ -56900,17 +56971,30 @@ const PeopleSection = ({ appID: e, activeChatObj: t }) => {
|
|
|
56900
56971
|
routeApplicationId: e,
|
|
56901
56972
|
conversationId: s ?? -1
|
|
56902
56973
|
}, { skip: o }), [f] = usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdLinkMutation(), [g] = useDeleteV4PartnerByRouteApplicationIdBusinessDevelopmentConversationLinkAndLinkIdMutation();
|
|
56903
|
-
return /* @__PURE__ */ jsxs(
|
|
56904
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
56974
|
+
return /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
56975
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-semibold tracking-wide text-muted-foreground uppercase", children: "Links" }),
|
|
56905
56976
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
56906
|
-
c ? /* @__PURE__ */ jsx("p", { children: "Loading links..." }) : l?.length === 0 ? /* @__PURE__ */ jsx("p", { children: "No links attached." }) : null,
|
|
56907
|
-
l?.map((A) => /* @__PURE__ */ jsxs("div", { className: "flex items-
|
|
56908
|
-
/* @__PURE__ */ jsx("a", { href: A.URL, target: "_blank", rel: "noopener noreferrer", className: "text-
|
|
56909
|
-
/* @__PURE__ */ jsx(
|
|
56977
|
+
c ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Loading links..." }) : l?.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "No links attached." }) : null,
|
|
56978
|
+
l?.map((A) => /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2 rounded-lg px-2 py-2 hover:bg-primary/5", children: [
|
|
56979
|
+
/* @__PURE__ */ jsx("a", { href: A.URL, target: "_blank", rel: "noopener noreferrer", className: "text-primary hover:underline underline-offset-4 break-all", children: A.Title }),
|
|
56980
|
+
/* @__PURE__ */ jsx(
|
|
56981
|
+
Button$1,
|
|
56982
|
+
{
|
|
56983
|
+
variant: "ghost",
|
|
56984
|
+
size: "icon",
|
|
56985
|
+
className: "h-8 w-8 text-muted-foreground hover:text-destructive",
|
|
56986
|
+
onClick: () => g({ routeApplicationId: e, linkId: A.LinkId }),
|
|
56987
|
+
"aria-label": "Delete link",
|
|
56988
|
+
children: /* @__PURE__ */ jsx(Trash2, { className: "h-4 w-4" })
|
|
56989
|
+
}
|
|
56990
|
+
)
|
|
56910
56991
|
] }, A.LinkId))
|
|
56911
56992
|
] }),
|
|
56912
56993
|
/* @__PURE__ */ jsxs(Dialog, { open: n, onOpenChange: a, children: [
|
|
56913
|
-
/* @__PURE__ */ jsx(DialogTrigger$1, { asChild: !0, children: /* @__PURE__ */
|
|
56994
|
+
/* @__PURE__ */ jsx(DialogTrigger$1, { asChild: !0, children: /* @__PURE__ */ jsxs(Button$1, { variant: "link", className: "h-auto p-0 justify-start", disabled: o, children: [
|
|
56995
|
+
/* @__PURE__ */ jsx(Plus, { className: "h-4 w-4" }),
|
|
56996
|
+
"Add link"
|
|
56997
|
+
] }) }),
|
|
56914
56998
|
/* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
56915
56999
|
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
56916
57000
|
/* @__PURE__ */ jsx(DialogTitle$1, { children: "Add Link" }),
|