@telia-ace/widget-conversation 1.1.2-rc.0 → 1.1.2-rc.2

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.
@@ -220,52 +220,52 @@ const Le = ({ className: e }) => {
220
220
  }};
221
221
  }
222
222
  `, Ae = s.div`
223
- width: ${(e) => e.avatarSize || "32px"};
224
- height: ${(e) => e.avatarSize || "32px"};
225
- border-radius: 50%;
226
- background-color: ${(e) => {
223
+ width: ${(e) => e.avatarSize || "32px"};
224
+ height: ${(e) => e.avatarSize || "32px"};
225
+ border-radius: 50%;
226
+ background-color: ${(e) => {
227
227
  var t;
228
228
  return (t = e.theme.colors) == null ? void 0 : t.accent;
229
229
  }};
230
- border: ${(e) => e.theme.border};
231
- grid-area: avatar;
232
- align-self: flex-end;
233
- justify-self: center;
234
- overflow: hidden;
235
- margin-right: 10px;
236
- display: flex;
237
- justify-content: center;
238
- align-items: center;
239
- color: ${(e) => {
230
+ border: ${(e) => e.theme.border};
231
+ grid-area: avatar;
232
+ align-self: flex-end;
233
+ justify-self: center;
234
+ overflow: hidden;
235
+ margin-right: 10px;
236
+ display: flex;
237
+ justify-content: center;
238
+ align-items: center;
239
+ color: ${(e) => {
240
240
  var t;
241
241
  return (t = e.theme.colors) == null ? void 0 : t.text;
242
242
  }};
243
243
 
244
- > img {
245
- height: 100%;
246
- width: 100%;
247
- object-fit: cover;
248
- }
244
+ > img {
245
+ height: 100%;
246
+ width: 100%;
247
+ object-fit: cover;
248
+ }
249
249
 
250
- > svg {
251
- width: 90%;
252
- height: 90%;
253
- padding: 10%;
254
- color: ${(e) => {
250
+ > svg {
251
+ width: 90%;
252
+ height: 90%;
253
+ padding: 10%;
254
+ color: ${(e) => {
255
255
  var t;
256
256
  return (t = e.theme.colors) == null ? void 0 : t.text;
257
257
  }};
258
258
 
259
- line,
260
- path,
261
- circle,
262
- fill {
263
- stroke: ${(e) => {
259
+ line,
260
+ path,
261
+ circle,
262
+ fill {
263
+ stroke: ${(e) => {
264
264
  var t;
265
265
  return (t = e.theme.colors) == null ? void 0 : t.text;
266
266
  }};
267
- }
268
267
  }
268
+ }
269
269
  `, Be = we`
270
270
  0% {
271
271
  opacity: 0;
@@ -277,121 +277,121 @@ const Le = ({ className: e }) => {
277
277
  opacity: 0;
278
278
  }
279
279
  `, Re = s.div`
280
- display: flex;
281
- justify-content: center;
282
- > div {
283
- height: 10px;
284
- width: 10px;
285
- border-radius: 50%;
286
- margin: 5px;
287
- background-color: ${(e) => {
280
+ display: flex;
281
+ justify-content: center;
282
+ > div {
283
+ height: 10px;
284
+ width: 10px;
285
+ border-radius: 50%;
286
+ margin: 5px;
287
+ background-color: ${(e) => {
288
288
  var t;
289
289
  return (t = e.theme.colors) == null ? void 0 : t.text;
290
290
  }};
291
- animation: ${Be} 1s infinite;
292
- }
293
- > div:nth-of-type(2) {
294
- animation-delay: 100ms;
295
- }
296
- > div:nth-of-type(3) {
297
- animation-delay: 200ms;
298
- }
291
+ animation: ${Be} 1s infinite;
292
+ }
293
+ > div:nth-of-type(2) {
294
+ animation-delay: 100ms;
295
+ }
296
+ > div:nth-of-type(3) {
297
+ animation-delay: 200ms;
298
+ }
299
299
  `, U = s.div`
300
- grid-area: content;
301
- max-width: 100%;
302
- overflow: hidden;
300
+ grid-area: content;
301
+ max-width: 100%;
302
+ overflow: hidden;
303
303
  `, Ke = s(Y)`
304
- font-size: ${(e) => {
304
+ font-size: ${(e) => {
305
305
  var t;
306
306
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
307
307
  }};
308
- font-weight: normal;
309
- margin: 0;
308
+ font-weight: normal;
309
+ margin: 0;
310
310
  `, _ = s.div`
311
- display: flex;
312
- ${(e) => e.left && "justify-content: start;"};
313
- ${(e) => e.center && "justify-content: center;"};
314
- ${(e) => e.right && "justify-content: end;"};
311
+ display: flex;
312
+ ${(e) => e.left && "justify-content: start;"};
313
+ ${(e) => e.center && "justify-content: center;"};
314
+ ${(e) => e.right && "justify-content: end;"};
315
315
  `, V = s.div`
316
- ${(e) => {
316
+ ${(e) => {
317
317
  var t;
318
318
  return e.padded && `padding: ${(t = e.theme.sizes) == null ? void 0 : t.medium};`;
319
319
  }}
320
- ${(e) => !e.user && e.stacked && je(e.stacked, e.theme)}
320
+ ${(e) => !e.user && e.stacked && je(e.stacked, e.theme)}
321
321
  ${(e) => e.user && e.stacked && Oe(e.stacked, e.theme)}
322
322
 
323
323
  display: inline-block;
324
- margin-top: ${(e) => {
324
+ margin-top: ${(e) => {
325
325
  var t;
326
326
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
327
327
  }};
328
- && > * {
329
- overflow-wrap: break-word;
330
- word-wrap: break-word;
331
- word-break: break-all;
332
- word-break: break-word;
333
- hyphens: auto;
334
- }
335
- max-width: 100%;
336
- ${(e) => e.fullWidth && "width: 100%;"}
328
+ && > * {
329
+ overflow-wrap: break-word;
330
+ word-wrap: break-word;
331
+ word-break: break-all;
332
+ word-break: break-word;
333
+ hyphens: auto;
334
+ }
335
+ max-width: 100%;
336
+ ${(e) => e.fullWidth && "width: 100%;"}
337
337
  `, je = (e, t) => {
338
338
  var r, a;
339
339
  const o = g`
340
- background-color: ${(r = t.colors) == null ? void 0 : r.accent};
341
- color: ${(a = t.colors) == null ? void 0 : a.text};
342
- ${t.border && `border: ${t.border};`};
343
- `;
340
+ background-color: ${(r = t.colors) == null ? void 0 : r.accent};
341
+ color: ${(a = t.colors) == null ? void 0 : a.text};
342
+ ${t.border && `border: ${t.border};`};
343
+ `;
344
344
  return t.borderRadius ? g`
345
- ${o}
345
+ ${o}
346
346
 
347
- border-top-right-radius: ${t.borderRadius};
348
- border-bottom-right-radius: ${t.borderRadius};
347
+ border-top-right-radius: ${t.borderRadius};
348
+ border-bottom-right-radius: ${t.borderRadius};
349
349
 
350
- ${e === "first" && `
350
+ ${e === "first" && `
351
351
  border-top-left-radius: ${t.borderRadius};
352
352
  `}
353
353
 
354
- ${e === "last" && `
354
+ ${e === "last" && `
355
355
  border-bottom-left-radius: ${t.borderRadius};
356
356
  `}
357
- ` : o;
357
+ ` : o;
358
358
  }, Oe = (e, t) => {
359
359
  var r, a;
360
360
  const o = g`
361
- background-color: ${(r = t.colors) == null ? void 0 : r.primary};
362
- color: ${(a = t.colors) == null ? void 0 : a.accent};
363
- `;
361
+ background-color: ${(r = t.colors) == null ? void 0 : r.primary};
362
+ color: ${(a = t.colors) == null ? void 0 : a.accent};
363
+ `;
364
364
  return t.borderRadius ? g`
365
- ${o}
365
+ ${o}
366
366
 
367
- border-top-left-radius: ${t.borderRadius};
368
- border-bottom-left-radius: ${t.borderRadius};
367
+ border-top-left-radius: ${t.borderRadius};
368
+ border-bottom-left-radius: ${t.borderRadius};
369
369
 
370
- ${e === "first" && `
370
+ ${e === "first" && `
371
371
  border-top-right-radius: ${t.borderRadius};
372
372
  `}
373
373
 
374
- ${e === "last" && `
374
+ ${e === "last" && `
375
375
  border-bottom-right-radius: ${t.borderRadius};
376
376
  `}
377
- ` : o;
377
+ ` : o;
378
378
  }, A = s.div`
379
- margin-bottom: ${(e) => {
379
+ margin-bottom: ${(e) => {
380
380
  var t;
381
381
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
382
382
  }};
383
- &:last-child {
384
- margin-bottom: 0;
385
- }
383
+ &:last-child {
384
+ margin-bottom: 0;
385
+ }
386
386
  `, C = (e) => {
387
387
  var t, o;
388
388
  return g`
389
- margin: ${(t = e.theme.sizes) == null ? void 0 : t.medium} 0;
390
- padding: 0 ${(o = e.theme.sizes) == null ? void 0 : o.medium};
389
+ margin: ${(t = e.theme.sizes) == null ? void 0 : t.medium} 0;
390
+ padding: 0 ${(o = e.theme.sizes) == null ? void 0 : o.medium};
391
391
  `;
392
392
  }, De = s(ze)`
393
- & button.humany-form-component-button {
394
- ${(e) => {
393
+ & button.humany-form-component-button {
394
+ ${(e) => {
395
395
  var t, o, r, a;
396
396
  return ((t = e.theme.colors) == null ? void 0 : t.primary) && ((o = e.theme.colors) == null ? void 0 : o.accent) && pe({
397
397
  active: !1,
@@ -400,82 +400,92 @@ const Le = ({ className: e }) => {
400
400
  theme: e.theme
401
401
  });
402
402
  }};
403
- display: block;
404
- width: 100%;
405
- margin-bottom: ${(e) => {
403
+ display: block;
404
+ width: 100%;
405
+ margin-bottom: ${(e) => {
406
406
  var t;
407
407
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
408
408
  }};
409
- }
410
- & button.humany-form-component-submit {
411
- width: 100%;
412
- margin: 0;
413
- :not(:last-child) {
414
- margin-bottom: ${(e) => {
409
+ }
410
+ & button.humany-form-component-submit {
411
+ width: 100%;
412
+ margin: 0;
413
+ :not(:last-child) {
414
+ margin-bottom: ${(e) => {
415
415
  var t;
416
416
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
417
417
  }};
418
- }
419
418
  }
419
+ }
420
420
  `, We = s(G)`
421
- white-space: pre-wrap;
422
- a {
423
- color: ${(e) => e.theme.colors.link};
424
- &:focus {
425
- ${(e) => {
421
+ white-space: pre-wrap;
422
+ a {
423
+ color: ${(e) => e.theme.colors.link};
424
+ &:focus {
425
+ ${(e) => {
426
426
  var t;
427
427
  return ((t = e.theme.accessibility) == null ? void 0 : t.isTabbing) && f;
428
428
  }};
429
- }
430
429
  }
430
+ }
431
431
  `, Ee = s(re)`
432
- padding: 0;
433
- list-style: none;
434
- margin: 0 -${(e) => {
432
+ padding: 0;
433
+ list-style: none;
434
+ margin: 0 -${(e) => {
435
435
  var t;
436
436
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
437
437
  }};
438
- > li {
439
- margin: ${(e) => {
438
+ > li {
439
+ margin: ${(e) => {
440
440
  var t;
441
441
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
442
442
  }};
443
- }
443
+ }
444
444
  `, Fe = s.button`
445
- ${(e) => K(e)};
446
- display: block;
447
- background-color: ${(e) => {
445
+ ${(e) => K(e)};
446
+ display: block;
447
+ background-color: ${(e) => {
448
448
  var t;
449
449
  return (t = e.theme.colors) == null ? void 0 : t.primary;
450
450
  }};
451
- width: 100%;
452
- color: #fff;
453
- &:focus-visible {
454
- ${f}
455
- background-color: transparent;
456
- }
451
+ width: 100%;
452
+ color: #fff;
453
+ &:focus-visible {
454
+ ${f}
455
+ background-color: transparent;
456
+ }
457
457
  `, Z = Q(
458
- ({ boxed: e, className: t, agentData: o }, r) => /* @__PURE__ */ n(U, { ref: r, children: /* @__PURE__ */ n(_, { left: e, center: !e, children: /* @__PURE__ */ n(V, { padded: !!e, stacked: e ? "first" : void 0, children: /* @__PURE__ */ m(Re, { children: [
459
- /* @__PURE__ */ n("div", {}),
460
- /* @__PURE__ */ n("div", {}),
461
- /* @__PURE__ */ n("div", {})
462
- ] }) }) }) })
458
+ ({ boxed: e, className: t, agentData: o }, r) => /* @__PURE__ */ n(U, { ref: r, children: /* @__PURE__ */ n(_, { left: e, center: !e, children: /* @__PURE__ */ n(
459
+ V,
460
+ {
461
+ padded: !!e,
462
+ stacked: e ? "first" : void 0,
463
+ children: /* @__PURE__ */ m(Re, { children: [
464
+ /* @__PURE__ */ n("div", {}),
465
+ /* @__PURE__ */ n("div", {}),
466
+ /* @__PURE__ */ n("div", {})
467
+ ] })
468
+ }
469
+ ) }) })
463
470
  ), Pe = s.p`
464
- && {
465
- font-size: ${(e) => {
471
+ && {
472
+ font-size: ${(e) => {
466
473
  var t;
467
474
  return (t = e.theme.fonts) == null ? void 0 : t.small;
468
475
  }};
469
- font-weight: 300;
470
- }
471
- margin: 0;
472
- line-height: 1.5em;
473
- grid-area: info;
474
- color: ${(e) => {
476
+ font-weight: 300;
477
+ }
478
+ margin: 0;
479
+ line-height: 1.5em;
480
+ grid-area: info;
481
+ color: ${(e) => {
475
482
  var t;
476
483
  return (t = e.theme.colors) == null ? void 0 : t.text;
477
484
  }};
478
- `, ee = (e) => new Date(e).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }), B = ({ className: e, name: t, timestamp: o }) => {
485
+ `, ee = (e) => new Date(e).toLocaleTimeString([], {
486
+ hour: "2-digit",
487
+ minute: "2-digit"
488
+ }), B = ({ className: e, name: t, timestamp: o }) => {
479
489
  if (!t && !o)
480
490
  return null;
481
491
  let r = "";
@@ -527,7 +537,10 @@ const Le = ({ className: e }) => {
527
537
  Ve,
528
538
  {
529
539
  ref: i,
530
- className: M(e, "humany-conversation-system-message"),
540
+ className: M(
541
+ e,
542
+ "humany-conversation-system-message"
543
+ ),
531
544
  fullWidth: a,
532
545
  children: r ? /* @__PURE__ */ m(qe, { className: "humany-conversation-discrete-message", children: [
533
546
  t,
@@ -539,32 +552,35 @@ const Le = ({ className: e }) => {
539
552
  }
540
553
  )
541
554
  ), Ve = s.div`
542
- ${(e) => e.fullWidth && "width: 100%"};
543
- padding: 0 ${(e) => {
555
+ ${(e) => e.fullWidth && "width: 100%"};
556
+ padding: 0 ${(e) => {
544
557
  var t;
545
558
  return (t = e.theme.sizes) == null ? void 0 : t.large;
546
559
  }};
547
- overflow: auto;
560
+ overflow: auto;
548
561
  `, qe = s.div`
549
- text-align: center;
550
- word-wrap: break-word;
551
- font-size: ${(e) => {
562
+ text-align: center;
563
+ word-wrap: break-word;
564
+ font-size: ${(e) => {
552
565
  var t;
553
566
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
554
567
  }};
555
- color: ${(e) => {
568
+ color: ${(e) => {
556
569
  var t;
557
570
  return (t = e.theme.colors) == null ? void 0 : t.text;
558
571
  }};
559
- > p {
560
- margin: 0;
561
- }
572
+ > p {
573
+ margin: 0;
574
+ }
562
575
  `, Ye = ({ className: e, children: t, timestamp: o }) => {
563
576
  const { userLabel: r = "" } = I();
564
577
  return /* @__PURE__ */ m(
565
578
  Ge,
566
579
  {
567
- className: M(e, "humany-conversation-user-message"),
580
+ className: M(
581
+ e,
582
+ "humany-conversation-user-message"
583
+ ),
568
584
  children: [
569
585
  t,
570
586
  /* @__PURE__ */ n(B, { name: r, timestamp: o })
@@ -572,11 +588,11 @@ const Le = ({ className: e }) => {
572
588
  }
573
589
  );
574
590
  }, Ge = s.div`
575
- margin-left: 10%;
576
- width: 90%;
577
- display: flex;
578
- flex-direction: column;
579
- align-items: flex-end;
591
+ margin-left: 10%;
592
+ width: 90%;
593
+ display: flex;
594
+ flex-direction: column;
595
+ align-items: flex-end;
580
596
  `, X = (e) => Array.isArray(e) ? e : Object.keys(e).map((t) => ({
581
597
  label: e[t],
582
598
  actionKey: t
@@ -694,16 +710,16 @@ const Le = ({ className: e }) => {
694
710
  const o = be(e);
695
711
  return !o || !e ? null : /* @__PURE__ */ n(ke, { fallback: null, children: /* @__PURE__ */ n(o, { ...t }) });
696
712
  }, tt = ({ body: e }) => /* @__PURE__ */ n(nt, { html: e }), nt = s(G)`
697
- ${$e}
698
- color: inherit;
699
- white-space: pre-wrap;
700
- ${C}
701
- a {
702
- color: ${(e) => e.theme.colors.link};
703
- &:focus-visible {
704
- ${f};
705
- }
713
+ ${$e}
714
+ color: inherit;
715
+ white-space: pre-wrap;
716
+ ${C}
717
+ a {
718
+ color: ${(e) => e.theme.colors.link};
719
+ &:focus-visible {
720
+ ${f};
706
721
  }
722
+ }
707
723
  `, rt = ({ header: e, actions: t, dispatch: o }) => /* @__PURE__ */ n(
708
724
  ot,
709
725
  {
@@ -741,92 +757,92 @@ const Le = ({ className: e }) => {
741
757
  }
742
758
  }
743
759
  ), ot = s(j)`
744
- ${O}
760
+ ${O}
745
761
 
746
- > .humany-paragraph {
747
- ${C}
748
- margin-bottom: 0;
762
+ > .humany-paragraph {
763
+ ${C}
764
+ margin-bottom: 0;
749
765
 
750
- h1 {
751
- margin: 0;
752
- }
766
+ h1 {
767
+ margin: 0;
753
768
  }
769
+ }
754
770
 
755
- ${(e) => J(e)(
771
+ ${(e) => J(e)(
756
772
  "h1",
757
773
  g`
758
- white-space: normal;
759
- `
774
+ white-space: normal;
775
+ `
760
776
  )}
761
777
 
762
- > ul {
763
- display: flex;
764
- flex-direction: column;
765
- gap: ${(e) => {
778
+ > ul {
779
+ display: flex;
780
+ flex-direction: column;
781
+ gap: ${(e) => {
766
782
  var t;
767
783
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
768
784
  }};
769
- > li {
770
- margin: 0;
771
- }
785
+ > li {
786
+ margin: 0;
772
787
  }
788
+ }
773
789
 
774
- li {
775
- border-bottom: ${(e) => e.theme.border};
790
+ li {
791
+ border-bottom: ${(e) => e.theme.border};
776
792
 
777
- &:last-of-type {
778
- border-bottom: none;
779
- }
793
+ &:last-of-type {
794
+ border-bottom: none;
780
795
  }
796
+ }
781
797
  `, st = s.div`
782
- display: flex;
783
- gap: ${(e) => {
798
+ display: flex;
799
+ gap: ${(e) => {
784
800
  var t;
785
801
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
786
802
  }};
787
- ${C}
803
+ ${C}
788
804
 
789
- .item-icon {
790
- }
805
+ .item-icon {
806
+ }
791
807
 
792
- .item-body {
793
- display: flex;
794
- flex-direction: column;
795
- align-items: flex-start;
796
- gap: ${(e) => {
808
+ .item-body {
809
+ display: flex;
810
+ flex-direction: column;
811
+ align-items: flex-start;
812
+ gap: ${(e) => {
797
813
  var t;
798
814
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
799
815
  }};
800
816
 
801
- p {
802
- margin: 0;
803
- white-space: normal;
804
- }
817
+ p {
818
+ margin: 0;
819
+ white-space: normal;
805
820
  }
821
+ }
806
822
 
807
- button {
808
- background: transparent;
809
- border: none;
810
- font-family: inherit;
811
- font-size: ${(e) => {
823
+ button {
824
+ background: transparent;
825
+ border: none;
826
+ font-family: inherit;
827
+ font-size: ${(e) => {
812
828
  var t;
813
829
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
814
830
  }};
815
- cursor: pointer;
816
- padding: 0;
817
- margin: 0;
831
+ cursor: pointer;
832
+ padding: 0;
833
+ margin: 0;
818
834
 
819
- &:focus-visible {
820
- ${f}
821
- span {
822
- color: ${(e) => {
835
+ &:focus-visible {
836
+ ${f}
837
+ span {
838
+ color: ${(e) => {
823
839
  var t;
824
840
  return (t = e.theme.colors) == null ? void 0 : t.primary;
825
841
  }};
826
- text-decoration: underline;
827
- }
828
- }
842
+ text-decoration: underline;
843
+ }
829
844
  }
845
+ }
830
846
  `, at = ({ header: e, actions: t, dispatch: o }) => /* @__PURE__ */ n(
831
847
  it,
832
848
  {
@@ -859,67 +875,67 @@ const Le = ({ className: e }) => {
859
875
  ) }, r.actionKey)
860
876
  }
861
877
  ), it = s(j)`
862
- ${O}
863
- ${C}
878
+ ${O}
879
+ ${C}
864
880
 
865
881
  ${(e) => J(e)(
866
882
  "h1",
867
883
  g`
868
- white-space: normal;
869
- `
884
+ white-space: normal;
885
+ `
870
886
  )}
871
887
 
872
888
  > ul {
873
- display: flex;
874
- flex-direction: column;
875
- gap: ${(e) => {
889
+ display: flex;
890
+ flex-direction: column;
891
+ gap: ${(e) => {
876
892
  var t;
877
893
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
878
894
  }};
879
- > li {
880
- margin: 0;
881
- }
895
+ > li {
896
+ margin: 0;
882
897
  }
898
+ }
883
899
  `, lt = s(z)`
884
- display: block;
885
- text-align: left;
886
- font-weight: 300;
887
- color: ${(e) => {
900
+ display: block;
901
+ text-align: left;
902
+ font-weight: 300;
903
+ color: ${(e) => {
888
904
  var t;
889
905
  return (t = e.theme.colors) == null ? void 0 : t.primary;
890
906
  }};
891
- max-width: 100%;
892
- text-overflow: ellipsis;
893
- overflow: hidden;
907
+ max-width: 100%;
908
+ text-overflow: ellipsis;
909
+ overflow: hidden;
894
910
 
895
- ${(e) => {
911
+ ${(e) => {
896
912
  var t, o;
897
913
  return e.help && g`
898
- color: ${(t = e.theme.colors) == null ? void 0 : t.text};
899
- text-decoration: underline;
914
+ color: ${(t = e.theme.colors) == null ? void 0 : t.text};
915
+ text-decoration: underline;
900
916
 
901
- i,
902
- svg {
903
- margin-left: ${(o = e.theme.sizes) == null ? void 0 : o.small};
904
- }
905
- `;
917
+ i,
918
+ svg {
919
+ margin-left: ${(o = e.theme.sizes) == null ? void 0 : o.small};
920
+ }
921
+ `;
906
922
  }}
907
923
 
908
- &:focus-visible {
909
- ${f}
910
- span {
911
- color: ${(e) => {
924
+ &:focus-visible {
925
+ ${f}
926
+ span {
927
+ color: ${(e) => {
912
928
  var t;
913
929
  return (t = e.theme.colors) == null ? void 0 : t.primary;
914
930
  }};
915
- text-decoration: underline;
916
- }
931
+ text-decoration: underline;
917
932
  }
933
+ }
918
934
  `, ct = () => /* @__PURE__ */ n(dt, { className: "humany-conversation-separator" }), dt = s.div`
919
- ${(e) => e.theme.border && `border-bottom: ${e.theme.border};`}
920
- width: 100%;
935
+ ${(e) => e.theme.border && `border-bottom: ${e.theme.border};`}
936
+ width: 100%;
921
937
  `, mt = ({ text: e }) => /* @__PURE__ */ n(ht, { className: "humany-conversation-text", variant: "span", children: e }), ht = s(Y)`
922
- ${C}
938
+ ${C}
923
939
  `, ut = ({
924
940
  header: e = "Video call",
925
941
  acceptLabel: t = "Accept",
@@ -968,59 +984,59 @@ const Le = ({ className: e }) => {
968
984
  }
969
985
  );
970
986
  }, gt = s(j)`
971
- ${(e) => O(e)}
972
- > ul {
973
- display: flex;
974
- flex-wrap: wrap;
975
- gap: ${(e) => {
987
+ ${(e) => O(e)}
988
+ > ul {
989
+ display: flex;
990
+ flex-wrap: wrap;
991
+ gap: ${(e) => {
976
992
  var t;
977
993
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
978
994
  }};
979
- > li {
980
- margin: 0;
981
- }
995
+ > li {
996
+ margin: 0;
982
997
  }
983
- ${(e) => C(e)}
998
+ }
999
+ ${(e) => C(e)}
984
1000
  `, ft = s(z)`
985
- ${K};
1001
+ ${K};
986
1002
 
987
- background-color: ${(e) => e.bgColor};
988
- display: flex;
989
- justify-content: center;
990
- align-items: center;
991
- color: #ffffff;
992
- width: 46px;
993
- height: 46px;
994
- border-radius: 100%;
1003
+ background-color: ${(e) => e.bgColor};
1004
+ display: flex;
1005
+ justify-content: center;
1006
+ align-items: center;
1007
+ color: #ffffff;
1008
+ width: 46px;
1009
+ height: 46px;
1010
+ border-radius: 100%;
995
1011
 
996
- &:focus-visible {
997
- ${f}
998
- background-color: transparent;
1012
+ &:focus-visible {
1013
+ ${f}
1014
+ background-color: transparent;
999
1015
 
1000
- i,
1001
- svg {
1002
- color: ${(e) => {
1016
+ i,
1017
+ svg {
1018
+ color: ${(e) => {
1003
1019
  var t;
1004
1020
  return (t = e.theme.colors) == null ? void 0 : t.primary;
1005
1021
  }};
1006
1022
 
1007
- path {
1008
- stroke: ${(e) => {
1023
+ path {
1024
+ stroke: ${(e) => {
1009
1025
  var t;
1010
1026
  return (t = e.theme.colors) == null ? void 0 : t.primary;
1011
1027
  }};
1012
- }
1013
- }
1028
+ }
1014
1029
  }
1030
+ }
1015
1031
 
1016
- i,
1017
- svg {
1018
- color: #fff;
1032
+ i,
1033
+ svg {
1034
+ color: #fff;
1019
1035
 
1020
- path {
1021
- stroke: #fff;
1022
- }
1036
+ path {
1037
+ stroke: #fff;
1023
1038
  }
1039
+ }
1024
1040
  `, pt = ([e, t]) => ({ type: e, content: t }), yt = ({ items: e, dispatch: t }) => /* @__PURE__ */ n(
1025
1041
  bt,
1026
1042
  {
@@ -1049,11 +1065,11 @@ const Le = ({ className: e }) => {
1049
1065
  }
1050
1066
  }
1051
1067
  ), bt = s(re)`
1052
- ${ve}
1068
+ ${ve}
1053
1069
 
1054
- > li {
1055
- margin: 0;
1056
- }
1070
+ > li {
1071
+ margin: 0;
1072
+ }
1057
1073
  `, $t = Q(
1058
1074
  ({ className: e, timestamp: t, sender: o, type: r, content: a }, i) => {
1059
1075
  const u = ae(
@@ -1076,22 +1092,30 @@ const Le = ({ className: e }) => {
1076
1092
  },
1077
1093
  l
1078
1094
  );
1079
- }) }), p = () => /* @__PURE__ */ n(le, { sender: o, timestamp: t, className: e, children: /* @__PURE__ */ n(U, { className: "humany-message-content-bundle", children: a.map((d, l) => /* @__PURE__ */ n(
1080
- _,
1095
+ }) }), p = () => /* @__PURE__ */ n(
1096
+ le,
1081
1097
  {
1082
- className: "humany-message-container",
1083
- left: !0,
1084
- ref: i,
1085
- children: /* @__PURE__ */ n(
1086
- F,
1098
+ sender: o,
1099
+ timestamp: t,
1100
+ className: e,
1101
+ children: /* @__PURE__ */ n(U, { className: "humany-message-content-bundle", children: a.map((d, l) => /* @__PURE__ */ n(
1102
+ _,
1087
1103
  {
1088
- content: d,
1089
- stacked: u(l)
1090
- }
1091
- )
1092
- },
1093
- d.key
1094
- )) }) }), x = () => /* @__PURE__ */ n(Ye, { timestamp: t, className: e, children: /* @__PURE__ */ n(U, { className: "humany-message-content-bundle", children: a.map((d, l) => /* @__PURE__ */ n(
1104
+ className: "humany-message-container",
1105
+ left: !0,
1106
+ ref: i,
1107
+ children: /* @__PURE__ */ n(
1108
+ F,
1109
+ {
1110
+ content: d,
1111
+ stacked: u(l)
1112
+ }
1113
+ )
1114
+ },
1115
+ d.key
1116
+ )) })
1117
+ }
1118
+ ), x = () => /* @__PURE__ */ n(Ye, { timestamp: t, className: e, children: /* @__PURE__ */ n(U, { className: "humany-message-content-bundle", children: a.map((d, l) => /* @__PURE__ */ n(
1095
1119
  _,
1096
1120
  {
1097
1121
  className: "humany-message-container",
@@ -1119,9 +1143,22 @@ const Le = ({ className: e }) => {
1119
1143
  return null;
1120
1144
  }
1121
1145
  }
1122
- ), F = ({ content: e, isUser: t, isSystem: o, stacked: r }) => {
1146
+ ), F = ({
1147
+ content: e,
1148
+ isUser: t,
1149
+ isSystem: o,
1150
+ stacked: r
1151
+ }) => {
1123
1152
  const a = q(), { title: i, body: u, actions: c, form: p, items: x } = e;
1124
- return x ? /* @__PURE__ */ n(V, { className: "humany-message-content", user: !!t, stacked: r, children: /* @__PURE__ */ n(yt, { items: x, dispatch: a }) }) : /* @__PURE__ */ m(
1153
+ return x ? /* @__PURE__ */ n(
1154
+ V,
1155
+ {
1156
+ className: "humany-message-content",
1157
+ user: !!t,
1158
+ stacked: r,
1159
+ children: /* @__PURE__ */ n(yt, { items: x, dispatch: a })
1160
+ }
1161
+ ) : /* @__PURE__ */ m(
1125
1162
  V,
1126
1163
  {
1127
1164
  className: "humany-message-content",
@@ -1175,7 +1212,20 @@ const Le = ({ className: e }) => {
1175
1212
  messages: r,
1176
1213
  loading: a,
1177
1214
  typingActors: i = []
1178
- } = I(), u = () => i && i.length ? i.map((c, p) => /* @__PURE__ */ n(P, { id: `typing_${c.name}`, children: /* @__PURE__ */ n(le, { timestamp: Date.now(), sender: c, children: /* @__PURE__ */ n(Z, { boxed: !0, ref: e }) }) }, `typing_${c.name}`)) : null;
1215
+ } = I(), u = () => i && i.length ? i.map((c, p) => /* @__PURE__ */ n(
1216
+ P,
1217
+ {
1218
+ id: `typing_${c.name}`,
1219
+ children: /* @__PURE__ */ n(le, { timestamp: Date.now(), sender: c, children: /* @__PURE__ */ n(
1220
+ Z,
1221
+ {
1222
+ boxed: !0,
1223
+ ref: e
1224
+ }
1225
+ ) })
1226
+ },
1227
+ `typing_${c.name}`
1228
+ )) : null;
1179
1229
  return /* @__PURE__ */ m(R, { children: [
1180
1230
  /* @__PURE__ */ m(vt, { tabIndex: 0, scrollableCss: t, ref: o, children: [
1181
1231
  r && r.length ? r.map((c, p) => {
@@ -1196,55 +1246,55 @@ const Le = ({ className: e }) => {
1196
1246
  /* @__PURE__ */ n(Le, {})
1197
1247
  ] });
1198
1248
  }, vt = s.div`
1199
- display: flex;
1200
- flex-direction: column;
1201
- align-items: stretch;
1202
- flex: 0 1 100%;
1203
- padding: 0 ${(e) => {
1249
+ display: flex;
1250
+ flex-direction: column;
1251
+ align-items: stretch;
1252
+ flex: 0 1 100%;
1253
+ padding: 0 ${(e) => {
1204
1254
  var t;
1205
1255
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
1206
1256
  }};
1207
- ${(e) => !!e.scrollableCss && e.scrollableCss};
1208
- &:focus-visible {
1209
- ${(e) => f(e)};
1210
- }
1257
+ ${(e) => !!e.scrollableCss && e.scrollableCss};
1258
+ &:focus-visible {
1259
+ ${(e) => f(e)};
1260
+ }
1211
1261
  `, P = s.div`
1212
- margin: 0;
1213
- margin-bottom: ${(e) => {
1262
+ margin: 0;
1263
+ margin-bottom: ${(e) => {
1214
1264
  var t;
1215
1265
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
1216
1266
  }};
1217
1267
 
1218
- &:first-of-type {
1219
- margin-top: ${(e) => {
1268
+ &:first-of-type {
1269
+ margin-top: ${(e) => {
1220
1270
  var t;
1221
1271
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
1222
1272
  }};
1223
- }
1273
+ }
1224
1274
 
1225
- &:last-of-type {
1226
- padding-bottom: ${(e) => {
1275
+ &:last-of-type {
1276
+ padding-bottom: ${(e) => {
1227
1277
  var t;
1228
1278
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
1229
1279
  }};
1230
- }
1280
+ }
1231
1281
 
1232
- & span,
1233
- p,
1234
- a,
1235
- div {
1236
- font-weight: 300;
1237
- }
1282
+ & span,
1283
+ p,
1284
+ a,
1285
+ div {
1286
+ font-weight: 300;
1287
+ }
1238
1288
 
1239
- & b,
1240
- h1 {
1241
- font-weight: normal;
1242
- }
1243
- ${(e) => J(e)(
1289
+ & b,
1290
+ h1 {
1291
+ font-weight: normal;
1292
+ }
1293
+ ${(e) => J(e)(
1244
1294
  "h1",
1245
1295
  g`
1246
- font-weight: normal;
1247
- `
1296
+ font-weight: normal;
1297
+ `
1248
1298
  )}
1249
1299
  `, xt = ({ dispatch: e }) => {
1250
1300
  const t = Se(null);
@@ -1397,14 +1447,14 @@ const Le = ({ className: e }) => {
1397
1447
  }
1398
1448
  );
1399
1449
  }, Lt = s.div`
1400
- position: absolute;
1401
- right: 0;
1402
- left: 0;
1403
- bottom: 0;
1404
- top: 0;
1405
- overflow: hidden;
1406
- display: flex;
1407
- flex-direction: column;
1450
+ position: absolute;
1451
+ right: 0;
1452
+ left: 0;
1453
+ bottom: 0;
1454
+ top: 0;
1455
+ overflow: hidden;
1456
+ display: flex;
1457
+ flex-direction: column;
1408
1458
  `;
1409
1459
  export {
1410
1460
  Dt as default