@phonghq/go-chat 1.0.46 → 1.0.47

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.
@@ -21,6 +21,8 @@ import SettingSuccess from '../chat/page/setting/SettingSuccess.vue';
21
21
  import NotTenantPhone from '../views/NotTenantPhone.vue';
22
22
  import { phoneNumberFormat } from '../utils/string-helper';
23
23
  import { responsiveObserver, useListenEvent } from '../composable/useListentEvent';
24
+ import PhoneNumpad from './page/home/PhoneNumpad.vue';
25
+ import PageError from '../components/layout/PageError.vue';
24
26
  const routerConfig = [
25
27
  { id: PAGE.HOME, backFunc: null, backTitle: '' },
26
28
  {
@@ -148,6 +150,7 @@ const customerDetailRef = ref(null);
148
150
  const homeComponentRef = ref(null);
149
151
  const chatListRef = ref(null);
150
152
  const drawerVisibleRef = ref(null);
153
+ const phoneNumpadRef = ref();
151
154
  const selectReceiver = async (data) => {
152
155
  if (receiverId.value != data?.receiver_id || responsiveRender.value === 'mobile') {
153
156
  if (currentPage.value != PAGE.HOME) {
@@ -183,6 +186,9 @@ const openSettings = () => {
183
186
  const handleReadMessage = () => {
184
187
  chatListRef.value?.handleReadMessage();
185
188
  };
189
+ const handleOpenPhoneNumpad = () => {
190
+ phoneNumpadRef.value?.openPhoneNumpad();
191
+ };
186
192
  let __VLS_exposed;
187
193
  defineExpose({
188
194
  get unreadCount() {
@@ -302,6 +308,18 @@ else {
302
308
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
303
309
  ...{ class: "grow h-full overflow-hidden flex flex-col" },
304
310
  });
311
+ if (__VLS_ctx.isLib) {
312
+ // @ts-ignore
313
+ [isLib,];
314
+ /** @type {[typeof PageError, ]} */ ;
315
+ // @ts-ignore
316
+ const __VLS_23 = __VLS_asFunctionalComponent(PageError, new PageError({
317
+ ...{ class: "shrink-0" },
318
+ }));
319
+ const __VLS_24 = __VLS_23({
320
+ ...{ class: "shrink-0" },
321
+ }, ...__VLS_functionalComponentArgsRest(__VLS_23));
322
+ }
305
323
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
306
324
  ...{ class: "w-full grow flex overflow-hidden relative" },
307
325
  });
@@ -310,19 +328,19 @@ else {
310
328
  [isLib,];
311
329
  /** @type {[typeof Calling, ]} */ ;
312
330
  // @ts-ignore
313
- const __VLS_23 = __VLS_asFunctionalComponent(Calling, new Calling({
331
+ const __VLS_27 = __VLS_asFunctionalComponent(Calling, new Calling({
314
332
  ...{ 'onUserCalling': {} },
315
333
  ref: "callingRef",
316
334
  responsive: (__VLS_ctx.responsiveRender),
317
335
  }));
318
- const __VLS_24 = __VLS_23({
336
+ const __VLS_28 = __VLS_27({
319
337
  ...{ 'onUserCalling': {} },
320
338
  ref: "callingRef",
321
339
  responsive: (__VLS_ctx.responsiveRender),
322
- }, ...__VLS_functionalComponentArgsRest(__VLS_23));
323
- let __VLS_26;
324
- let __VLS_27;
325
- const __VLS_28 = ({ userCalling: {} },
340
+ }, ...__VLS_functionalComponentArgsRest(__VLS_27));
341
+ let __VLS_30;
342
+ let __VLS_31;
343
+ const __VLS_32 = ({ userCalling: {} },
326
344
  { onUserCalling: (...[$event]) => {
327
345
  if (!!(!__VLS_ctx.isRouterReady))
328
346
  return;
@@ -341,10 +359,10 @@ else {
341
359
  [responsiveRender, emit,];
342
360
  } });
343
361
  /** @type {typeof __VLS_ctx.callingRef} */ ;
344
- var __VLS_29 = {};
362
+ var __VLS_33 = {};
345
363
  // @ts-ignore
346
364
  [callingRef,];
347
- var __VLS_25;
365
+ var __VLS_29;
348
366
  }
349
367
  if (__VLS_ctx.responsiveRender == 'mobile') {
350
368
  // @ts-ignore
@@ -385,8 +403,8 @@ else {
385
403
  });
386
404
  /** @type {[typeof IconArrowLeft, ]} */ ;
387
405
  // @ts-ignore
388
- const __VLS_32 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
389
- const __VLS_33 = __VLS_32({}, ...__VLS_functionalComponentArgsRest(__VLS_32));
406
+ const __VLS_36 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
407
+ const __VLS_37 = __VLS_36({}, ...__VLS_functionalComponentArgsRest(__VLS_36));
390
408
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
391
409
  ...{ class: "ml-3" },
392
410
  });
@@ -447,41 +465,61 @@ else {
447
465
  });
448
466
  /** @type {[typeof IconCloseCircle, ]} */ ;
449
467
  // @ts-ignore
450
- const __VLS_36 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
451
- const __VLS_37 = __VLS_36({}, ...__VLS_functionalComponentArgsRest(__VLS_36));
468
+ const __VLS_40 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
469
+ const __VLS_41 = __VLS_40({}, ...__VLS_functionalComponentArgsRest(__VLS_40));
452
470
  }
453
471
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
454
472
  ...{ class: "grow overflow-hidden" },
455
473
  });
456
474
  /** @type {[typeof ChatList, ]} */ ;
457
475
  // @ts-ignore
458
- const __VLS_40 = __VLS_asFunctionalComponent(ChatList, new ChatList({
476
+ const __VLS_44 = __VLS_asFunctionalComponent(ChatList, new ChatList({
459
477
  ...{ 'onSelectReceiver': {} },
478
+ ...{ 'onOpenPhoneNumpad': {} },
460
479
  ref: "chatListRef",
461
480
  ...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
462
481
  responsive: (__VLS_ctx.responsiveRender),
463
482
  receiverId: (__VLS_ctx.receiverId),
464
483
  }));
465
- const __VLS_41 = __VLS_40({
484
+ const __VLS_45 = __VLS_44({
466
485
  ...{ 'onSelectReceiver': {} },
486
+ ...{ 'onOpenPhoneNumpad': {} },
467
487
  ref: "chatListRef",
468
488
  ...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
469
489
  responsive: (__VLS_ctx.responsiveRender),
470
490
  receiverId: (__VLS_ctx.receiverId),
471
- }, ...__VLS_functionalComponentArgsRest(__VLS_40));
472
- let __VLS_43;
473
- let __VLS_44;
474
- const __VLS_45 = ({ selectReceiver: {} },
491
+ }, ...__VLS_functionalComponentArgsRest(__VLS_44));
492
+ let __VLS_47;
493
+ let __VLS_48;
494
+ const __VLS_49 = ({ selectReceiver: {} },
475
495
  { onSelectReceiver: (__VLS_ctx.selectReceiver) });
496
+ const __VLS_50 = ({ openPhoneNumpad: {} },
497
+ { onOpenPhoneNumpad: (...[$event]) => {
498
+ if (!!(!__VLS_ctx.isRouterReady))
499
+ return;
500
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
501
+ return;
502
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
503
+ return;
504
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
505
+ return;
506
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
507
+ return;
508
+ if (!(__VLS_ctx.responsiveRender == 'mobile'))
509
+ return;
510
+ __VLS_ctx.handleOpenPhoneNumpad();
511
+ // @ts-ignore
512
+ [responsiveRender, receiverId, selectReceiver, handleOpenPhoneNumpad,];
513
+ } });
476
514
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CHAT_LIST) }, null, null);
477
515
  /** @type {typeof __VLS_ctx.chatListRef} */ ;
478
- var __VLS_46 = {};
516
+ var __VLS_51 = {};
479
517
  // @ts-ignore
480
- [currentPage, PAGE, responsiveRender, receiverId, selectReceiver, chatListRef,];
481
- var __VLS_42;
518
+ [currentPage, PAGE, chatListRef,];
519
+ var __VLS_46;
482
520
  /** @type {[typeof HomeComponent, ]} */ ;
483
521
  // @ts-ignore
484
- const __VLS_49 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
522
+ const __VLS_54 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
485
523
  ...{ 'onCall': {} },
486
524
  ...{ 'onBack': {} },
487
525
  ...{ 'onInputFocus': {} },
@@ -491,7 +529,7 @@ else {
491
529
  conversation: (__VLS_ctx.currentConversation),
492
530
  responsive: (__VLS_ctx.responsiveRender),
493
531
  }));
494
- const __VLS_50 = __VLS_49({
532
+ const __VLS_55 = __VLS_54({
495
533
  ...{ 'onCall': {} },
496
534
  ...{ 'onBack': {} },
497
535
  ...{ 'onInputFocus': {} },
@@ -500,12 +538,12 @@ else {
500
538
  ...{ class: "h-full" },
501
539
  conversation: (__VLS_ctx.currentConversation),
502
540
  responsive: (__VLS_ctx.responsiveRender),
503
- }, ...__VLS_functionalComponentArgsRest(__VLS_49));
504
- let __VLS_52;
505
- let __VLS_53;
506
- const __VLS_54 = ({ call: {} },
541
+ }, ...__VLS_functionalComponentArgsRest(__VLS_54));
542
+ let __VLS_57;
543
+ let __VLS_58;
544
+ const __VLS_59 = ({ call: {} },
507
545
  { onCall: (__VLS_ctx.handleCall) });
508
- const __VLS_55 = ({ back: {} },
546
+ const __VLS_60 = ({ back: {} },
509
547
  { onBack: (...[$event]) => {
510
548
  if (!!(!__VLS_ctx.isRouterReady))
511
549
  return;
@@ -523,60 +561,60 @@ else {
523
561
  // @ts-ignore
524
562
  [responsiveRender, currentPageConfig, receiverId, currentConversation, handleCall,];
525
563
  } });
526
- const __VLS_56 = ({ inputFocus: {} },
564
+ const __VLS_61 = ({ inputFocus: {} },
527
565
  { onInputFocus: (__VLS_ctx.handleReadMessage) });
528
566
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME) }, null, null);
529
567
  /** @type {typeof __VLS_ctx.homeComponentRef} */ ;
530
- var __VLS_57 = {};
568
+ var __VLS_62 = {};
531
569
  // @ts-ignore
532
570
  [currentPage, PAGE, handleReadMessage, homeComponentRef,];
533
- var __VLS_51;
571
+ var __VLS_56;
534
572
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
535
573
  // @ts-ignore
536
574
  [currentPage, PAGE,];
537
575
  /** @type {[typeof CustomerDetail, ]} */ ;
538
576
  // @ts-ignore
539
- const __VLS_60 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
577
+ const __VLS_65 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
540
578
  ref: "customerDetailRef",
541
579
  receiverId: (__VLS_ctx.receiverId),
542
580
  ...{ class: "w-full h-full" },
543
581
  responsive: (__VLS_ctx.responsiveRender),
544
582
  }));
545
- const __VLS_61 = __VLS_60({
583
+ const __VLS_66 = __VLS_65({
546
584
  ref: "customerDetailRef",
547
585
  receiverId: (__VLS_ctx.receiverId),
548
586
  ...{ class: "w-full h-full" },
549
587
  responsive: (__VLS_ctx.responsiveRender),
550
- }, ...__VLS_functionalComponentArgsRest(__VLS_60));
588
+ }, ...__VLS_functionalComponentArgsRest(__VLS_65));
551
589
  /** @type {typeof __VLS_ctx.customerDetailRef} */ ;
552
- var __VLS_63 = {};
590
+ var __VLS_68 = {};
553
591
  // @ts-ignore
554
592
  [responsiveRender, receiverId, customerDetailRef,];
555
- var __VLS_62;
593
+ var __VLS_67;
556
594
  }
557
595
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
558
596
  // @ts-ignore
559
597
  [currentPage, PAGE,];
560
598
  /** @type {[typeof CustomerCheckIn, ]} */ ;
561
599
  // @ts-ignore
562
- const __VLS_66 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
600
+ const __VLS_71 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
563
601
  ...{ class: "w-full h-full" },
564
602
  }));
565
- const __VLS_67 = __VLS_66({
603
+ const __VLS_72 = __VLS_71({
566
604
  ...{ class: "w-full h-full" },
567
- }, ...__VLS_functionalComponentArgsRest(__VLS_66));
605
+ }, ...__VLS_functionalComponentArgsRest(__VLS_71));
568
606
  }
569
607
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
570
608
  // @ts-ignore
571
609
  [currentPage, PAGE,];
572
610
  /** @type {[typeof CustomerAppointment, ]} */ ;
573
611
  // @ts-ignore
574
- const __VLS_70 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
612
+ const __VLS_75 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
575
613
  ...{ class: "w-full h-full" },
576
614
  }));
577
- const __VLS_71 = __VLS_70({
615
+ const __VLS_76 = __VLS_75({
578
616
  ...{ class: "w-full h-full" },
579
- }, ...__VLS_functionalComponentArgsRest(__VLS_70));
617
+ }, ...__VLS_functionalComponentArgsRest(__VLS_75));
580
618
  }
581
619
  }
582
620
  else {
@@ -585,7 +623,7 @@ else {
585
623
  });
586
624
  /** @type {[typeof ChatList, ]} */ ;
587
625
  // @ts-ignore
588
- const __VLS_74 = __VLS_asFunctionalComponent(ChatList, new ChatList({
626
+ const __VLS_79 = __VLS_asFunctionalComponent(ChatList, new ChatList({
589
627
  ...{ 'onSelectReceiver': {} },
590
628
  ...{ 'onOpenPhoneNumpad': {} },
591
629
  ref: "chatListRef",
@@ -593,19 +631,19 @@ else {
593
631
  responsive: (__VLS_ctx.responsiveRender),
594
632
  receiverId: (__VLS_ctx.receiverId),
595
633
  }));
596
- const __VLS_75 = __VLS_74({
634
+ const __VLS_80 = __VLS_79({
597
635
  ...{ 'onSelectReceiver': {} },
598
636
  ...{ 'onOpenPhoneNumpad': {} },
599
637
  ref: "chatListRef",
600
638
  ...{ class: "w-[38%] max-w-[500px] min-w-[300px] xl:min-w-[450px] border-r layout-border" },
601
639
  responsive: (__VLS_ctx.responsiveRender),
602
640
  receiverId: (__VLS_ctx.receiverId),
603
- }, ...__VLS_functionalComponentArgsRest(__VLS_74));
604
- let __VLS_77;
605
- let __VLS_78;
606
- const __VLS_79 = ({ selectReceiver: {} },
641
+ }, ...__VLS_functionalComponentArgsRest(__VLS_79));
642
+ let __VLS_82;
643
+ let __VLS_83;
644
+ const __VLS_84 = ({ selectReceiver: {} },
607
645
  { onSelectReceiver: (__VLS_ctx.selectReceiver) });
608
- const __VLS_80 = ({ openPhoneNumpad: {} },
646
+ const __VLS_85 = ({ openPhoneNumpad: {} },
609
647
  { onOpenPhoneNumpad: (...[$event]) => {
610
648
  if (!!(!__VLS_ctx.isRouterReady))
611
649
  return;
@@ -619,15 +657,15 @@ else {
619
657
  return;
620
658
  if (!!(__VLS_ctx.responsiveRender == 'mobile'))
621
659
  return;
622
- __VLS_ctx.emit('openPhoneNumpad');
660
+ __VLS_ctx.handleOpenPhoneNumpad();
623
661
  // @ts-ignore
624
- [responsiveRender, emit, receiverId, selectReceiver,];
662
+ [responsiveRender, receiverId, selectReceiver, handleOpenPhoneNumpad,];
625
663
  } });
626
664
  /** @type {typeof __VLS_ctx.chatListRef} */ ;
627
- var __VLS_81 = {};
665
+ var __VLS_86 = {};
628
666
  // @ts-ignore
629
667
  [chatListRef,];
630
- var __VLS_76;
668
+ var __VLS_81;
631
669
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
632
670
  ...{ class: "bg-white grow flex flex-col h-full overflow-hidden" },
633
671
  });
@@ -661,8 +699,8 @@ else {
661
699
  });
662
700
  /** @type {[typeof IconArrowLeft, ]} */ ;
663
701
  // @ts-ignore
664
- const __VLS_84 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
665
- const __VLS_85 = __VLS_84({}, ...__VLS_functionalComponentArgsRest(__VLS_84));
702
+ const __VLS_89 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
703
+ const __VLS_90 = __VLS_89({}, ...__VLS_functionalComponentArgsRest(__VLS_89));
666
704
  __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
667
705
  ...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
668
706
  });
@@ -675,7 +713,7 @@ else {
675
713
  });
676
714
  /** @type {[typeof HomeComponent, ]} */ ;
677
715
  // @ts-ignore
678
- const __VLS_88 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
716
+ const __VLS_93 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
679
717
  ...{ 'onCall': {} },
680
718
  ...{ 'onInputFocus': {} },
681
719
  ref: "homeComponentRef",
@@ -684,7 +722,7 @@ else {
684
722
  responsive: (__VLS_ctx.responsiveRender),
685
723
  conversation: (__VLS_ctx.currentConversation),
686
724
  }));
687
- const __VLS_89 = __VLS_88({
725
+ const __VLS_94 = __VLS_93({
688
726
  ...{ 'onCall': {} },
689
727
  ...{ 'onInputFocus': {} },
690
728
  ref: "homeComponentRef",
@@ -692,68 +730,90 @@ else {
692
730
  ...{ class: "h-full" },
693
731
  responsive: (__VLS_ctx.responsiveRender),
694
732
  conversation: (__VLS_ctx.currentConversation),
695
- }, ...__VLS_functionalComponentArgsRest(__VLS_88));
696
- let __VLS_91;
697
- let __VLS_92;
698
- const __VLS_93 = ({ call: {} },
733
+ }, ...__VLS_functionalComponentArgsRest(__VLS_93));
734
+ let __VLS_96;
735
+ let __VLS_97;
736
+ const __VLS_98 = ({ call: {} },
699
737
  { onCall: (__VLS_ctx.handleCall) });
700
- const __VLS_94 = ({ inputFocus: {} },
738
+ const __VLS_99 = ({ inputFocus: {} },
701
739
  { onInputFocus: (__VLS_ctx.handleReadMessage) });
702
740
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME && __VLS_ctx.receiverId) }, null, null);
703
741
  /** @type {typeof __VLS_ctx.homeComponentRef} */ ;
704
- var __VLS_95 = {};
742
+ var __VLS_100 = {};
705
743
  // @ts-ignore
706
744
  [currentPage, PAGE, responsiveRender, receiverId, receiverId, currentConversation, handleCall, handleReadMessage, homeComponentRef,];
707
- var __VLS_90;
745
+ var __VLS_95;
708
746
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
709
747
  // @ts-ignore
710
748
  [currentPage, PAGE,];
711
749
  /** @type {[typeof CustomerDetail, ]} */ ;
712
750
  // @ts-ignore
713
- const __VLS_98 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
751
+ const __VLS_103 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
714
752
  ref: "customerDetailRef",
715
753
  receiverId: (__VLS_ctx.receiverId),
716
754
  ...{ class: "h-full" },
717
755
  responsive: (__VLS_ctx.responsiveRender),
718
756
  }));
719
- const __VLS_99 = __VLS_98({
757
+ const __VLS_104 = __VLS_103({
720
758
  ref: "customerDetailRef",
721
759
  receiverId: (__VLS_ctx.receiverId),
722
760
  ...{ class: "h-full" },
723
761
  responsive: (__VLS_ctx.responsiveRender),
724
- }, ...__VLS_functionalComponentArgsRest(__VLS_98));
762
+ }, ...__VLS_functionalComponentArgsRest(__VLS_103));
725
763
  /** @type {typeof __VLS_ctx.customerDetailRef} */ ;
726
- var __VLS_101 = {};
764
+ var __VLS_106 = {};
727
765
  // @ts-ignore
728
766
  [responsiveRender, receiverId, customerDetailRef,];
729
- var __VLS_100;
767
+ var __VLS_105;
730
768
  }
731
769
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
732
770
  // @ts-ignore
733
771
  [currentPage, PAGE,];
734
772
  /** @type {[typeof CustomerCheckIn, ]} */ ;
735
773
  // @ts-ignore
736
- const __VLS_104 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
774
+ const __VLS_109 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
737
775
  ...{ class: "h-full" },
738
776
  }));
739
- const __VLS_105 = __VLS_104({
777
+ const __VLS_110 = __VLS_109({
740
778
  ...{ class: "h-full" },
741
- }, ...__VLS_functionalComponentArgsRest(__VLS_104));
779
+ }, ...__VLS_functionalComponentArgsRest(__VLS_109));
742
780
  }
743
781
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
744
782
  // @ts-ignore
745
783
  [currentPage, PAGE,];
746
784
  /** @type {[typeof CustomerAppointment, ]} */ ;
747
785
  // @ts-ignore
748
- const __VLS_108 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
786
+ const __VLS_113 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
749
787
  ...{ class: "h-full" },
750
788
  }));
751
- const __VLS_109 = __VLS_108({
789
+ const __VLS_114 = __VLS_113({
752
790
  ...{ class: "h-full" },
753
- }, ...__VLS_functionalComponentArgsRest(__VLS_108));
791
+ }, ...__VLS_functionalComponentArgsRest(__VLS_113));
754
792
  }
755
793
  }
756
- var __VLS_112 = {};
794
+ /** @type {[typeof PhoneNumpad, ]} */ ;
795
+ // @ts-ignore
796
+ const __VLS_117 = __VLS_asFunctionalComponent(PhoneNumpad, new PhoneNumpad({
797
+ ...{ 'onCall': {} },
798
+ ref: "phoneNumpadRef",
799
+ ...{ class: "bg-white shrink-0 border-l layout-border" },
800
+ modelValue: "",
801
+ }));
802
+ const __VLS_118 = __VLS_117({
803
+ ...{ 'onCall': {} },
804
+ ref: "phoneNumpadRef",
805
+ ...{ class: "bg-white shrink-0 border-l layout-border" },
806
+ modelValue: "",
807
+ }, ...__VLS_functionalComponentArgsRest(__VLS_117));
808
+ let __VLS_120;
809
+ let __VLS_121;
810
+ const __VLS_122 = ({ call: {} },
811
+ { onCall: (__VLS_ctx.handleCall) });
812
+ /** @type {typeof __VLS_ctx.phoneNumpadRef} */ ;
813
+ var __VLS_123 = {};
814
+ // @ts-ignore
815
+ [handleCall, phoneNumpadRef,];
816
+ var __VLS_119;
757
817
  }
758
818
  /** @type {__VLS_StyleScopedClasses['go-chat-main']} */ ;
759
819
  /** @type {__VLS_StyleScopedClasses['max-w-full']} */ ;
@@ -766,6 +826,7 @@ else {
766
826
  /** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
767
827
  /** @type {__VLS_StyleScopedClasses['flex']} */ ;
768
828
  /** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
829
+ /** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
769
830
  /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
770
831
  /** @type {__VLS_StyleScopedClasses['grow']} */ ;
771
832
  /** @type {__VLS_StyleScopedClasses['flex']} */ ;
@@ -848,13 +909,16 @@ else {
848
909
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
849
910
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
850
911
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
912
+ /** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
913
+ /** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
914
+ /** @type {__VLS_StyleScopedClasses['border-l']} */ ;
915
+ /** @type {__VLS_StyleScopedClasses['layout-border']} */ ;
851
916
  // @ts-ignore
852
- var __VLS_30 = __VLS_29, __VLS_47 = __VLS_46, __VLS_58 = __VLS_57, __VLS_64 = __VLS_63, __VLS_82 = __VLS_81, __VLS_96 = __VLS_95, __VLS_102 = __VLS_101, __VLS_113 = __VLS_112;
853
- const __VLS_base = (await import('vue')).defineComponent({
917
+ var __VLS_34 = __VLS_33, __VLS_52 = __VLS_51, __VLS_63 = __VLS_62, __VLS_69 = __VLS_68, __VLS_87 = __VLS_86, __VLS_101 = __VLS_100, __VLS_107 = __VLS_106, __VLS_124 = __VLS_123;
918
+ const __VLS_export = (await import('vue')).defineComponent({
854
919
  setup: () => (__VLS_exposed),
855
920
  __typeEmits: {},
856
921
  __typeProps: {},
857
922
  props: {},
858
923
  });
859
- const __VLS_export = {};
860
924
  export default {};
@@ -247,22 +247,28 @@ const __VLS_5 = ({ search: {} },
247
247
  // @ts-ignore
248
248
  [responsive, keyword, handleSearch,];
249
249
  var __VLS_2;
250
- __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
251
- ...{ onClick: (...[$event]) => {
252
- __VLS_ctx.emit('openPhoneNumpad');
253
- // @ts-ignore
254
- [emit,];
255
- } },
256
- ...{ class: "shrink-0 h-11 w-11 rounded-full flex-center bg-[#C7DEFF] block xl:hidden" },
257
- });
258
- /** @type {[typeof IconPlus, ]} */ ;
259
- // @ts-ignore
260
- const __VLS_7 = __VLS_asFunctionalComponent(IconPlus, new IconPlus({
261
- ...{ class: "text-[#004AB3]" },
262
- }));
263
- const __VLS_8 = __VLS_7({
264
- ...{ class: "text-[#004AB3]" },
265
- }, ...__VLS_functionalComponentArgsRest(__VLS_7));
250
+ if (__VLS_ctx.responsive != 'window') {
251
+ // @ts-ignore
252
+ [responsive,];
253
+ __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
254
+ ...{ onClick: (...[$event]) => {
255
+ if (!(__VLS_ctx.responsive != 'window'))
256
+ return;
257
+ __VLS_ctx.emit('openPhoneNumpad');
258
+ // @ts-ignore
259
+ [emit,];
260
+ } },
261
+ ...{ class: "shrink-0 h-11 w-11 rounded-full flex-center bg-[#C7DEFF]" },
262
+ });
263
+ /** @type {[typeof IconPlus, ]} */ ;
264
+ // @ts-ignore
265
+ const __VLS_7 = __VLS_asFunctionalComponent(IconPlus, new IconPlus({
266
+ ...{ class: "text-[#004AB3]" },
267
+ }));
268
+ const __VLS_8 = __VLS_7({
269
+ ...{ class: "text-[#004AB3]" },
270
+ }, ...__VLS_functionalComponentArgsRest(__VLS_7));
271
+ }
266
272
  if (__VLS_ctx.dataProfile?.user_type == 'tenant') {
267
273
  // @ts-ignore
268
274
  [dataProfile,];
@@ -339,6 +345,7 @@ for (const [user] of __VLS_getVForSourceType((__VLS_ctx.listConversations))) {
339
345
  const __VLS_27 = __VLS_asFunctionalComponent(Avatar, new Avatar({
340
346
  id: (user.id),
341
347
  ...{ class: "shrink-0" },
348
+ ...{ class: ({ 'animal-icon': user?.id === __VLS_ctx.digibotId }) },
342
349
  src: (user.avatar ?? ''),
343
350
  color: (user.color),
344
351
  name: (user.username ?? ''),
@@ -346,10 +353,13 @@ for (const [user] of __VLS_getVForSourceType((__VLS_ctx.listConversations))) {
346
353
  const __VLS_28 = __VLS_27({
347
354
  id: (user.id),
348
355
  ...{ class: "shrink-0" },
356
+ ...{ class: ({ 'animal-icon': user?.id === __VLS_ctx.digibotId }) },
349
357
  src: (user.avatar ?? ''),
350
358
  color: (user.color),
351
359
  name: (user.username ?? ''),
352
360
  }, ...__VLS_functionalComponentArgsRest(__VLS_27));
361
+ // @ts-ignore
362
+ [digibotId,];
353
363
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
354
364
  ...{ class: "grow ml-3 overflow-hidden" },
355
365
  });
@@ -394,12 +404,16 @@ for (const [user] of __VLS_getVForSourceType((__VLS_ctx.listConversations))) {
394
404
  }) },
395
405
  });
396
406
  (user.last_message ?? 'No messages');
397
- __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
398
- ...{ class: "shrink-0 text-sm text-right text-chat-gray-4 w-[80px] md:w-[130px]" },
399
- });
400
- (__VLS_ctx.getTimeFromNow(user.last_message_time ?? ''));
401
- // @ts-ignore
402
- [getTimeFromNow,];
407
+ if (user.id != __VLS_ctx.digibotId) {
408
+ // @ts-ignore
409
+ [digibotId,];
410
+ __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
411
+ ...{ class: "shrink-0 text-sm text-right text-chat-gray-4 w-[80px] md:w-[130px]" },
412
+ });
413
+ (__VLS_ctx.getTimeFromNow(user.last_message_time ?? ''));
414
+ // @ts-ignore
415
+ [getTimeFromNow,];
416
+ }
403
417
  }
404
418
  var __VLS_20;
405
419
  /** @type {__VLS_StyleScopedClasses['']} */ ;
@@ -422,8 +436,6 @@ var __VLS_20;
422
436
  /** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
423
437
  /** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
424
438
  /** @type {__VLS_StyleScopedClasses['bg-[#C7DEFF]']} */ ;
425
- /** @type {__VLS_StyleScopedClasses['block']} */ ;
426
- /** @type {__VLS_StyleScopedClasses['xl:hidden']} */ ;
427
439
  /** @type {__VLS_StyleScopedClasses['text-[#004AB3]']} */ ;
428
440
  /** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
429
441
  /** @type {__VLS_StyleScopedClasses['px-6']} */ ;
@@ -443,6 +455,7 @@ var __VLS_20;
443
455
  /** @type {__VLS_StyleScopedClasses['py-2']} */ ;
444
456
  /** @type {__VLS_StyleScopedClasses['bg-[#EDF5FF]']} */ ;
445
457
  /** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
458
+ /** @type {__VLS_StyleScopedClasses['animal-icon']} */ ;
446
459
  /** @type {__VLS_StyleScopedClasses['grow']} */ ;
447
460
  /** @type {__VLS_StyleScopedClasses['ml-3']} */ ;
448
461
  /** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;