@phonghq/go-chat 1.0.68 → 1.0.70

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.
@@ -16,6 +16,7 @@ declare const _default: import("vue").DefineComponent<GoChatProps, GoChatInstanc
16
16
  onEndCall?: (() => any) | undefined;
17
17
  "onError:noPhoneTenant"?: (() => any) | undefined;
18
18
  }>, {
19
+ isLib: boolean;
19
20
  response: PAGE_RESPONSIVE;
20
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
22
  export default _default;
@@ -91,7 +91,8 @@ const routerMobileConfig = computed(() => [
91
91
  }
92
92
  ]);
93
93
  const props = withDefaults(defineProps(), {
94
- response: 'tablet'
94
+ response: 'tablet',
95
+ isLib: true
95
96
  });
96
97
  const emit = defineEmits();
97
98
  let initTimer = null;
@@ -103,7 +104,7 @@ const handleExposeInit = (init_data) => {
103
104
  if (init_data?.conversation_id) {
104
105
  chatListRef.value?.initData({
105
106
  conversation_id: data?.conversation_id,
106
- is_unknown: data?.is_unknown || '0'
107
+ is_known: data?.is_known || 1
107
108
  });
108
109
  }
109
110
  else
@@ -215,7 +216,6 @@ defineExpose({
215
216
  await callingRef.value?.answer();
216
217
  },
217
218
  endCall: () => {
218
- console.log('9999999999999999999999999999999');
219
219
  callingRef.value?.endCall();
220
220
  },
221
221
  openSettings,
@@ -225,7 +225,8 @@ defineExpose({
225
225
  });
226
226
  debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
227
227
  const __VLS_defaults = {
228
- response: 'tablet'
228
+ response: 'tablet',
229
+ isLib: true
229
230
  };
230
231
  const __VLS_ctx = {
231
232
  ...{},
@@ -287,21 +288,54 @@ else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS) {
287
288
  else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE) {
288
289
  // @ts-ignore
289
290
  [currentPage, PAGE,];
291
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
292
+ ...{ class: "h-full p-5 flex flex-col" },
293
+ });
294
+ if (props.isLib) {
295
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
296
+ ...{ class: "shrink-0 flex items-center justify-between" },
297
+ });
298
+ __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
299
+ __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
300
+ ...{ onClick: (...[$event]) => {
301
+ if (!!(!__VLS_ctx.isRouterReady))
302
+ return;
303
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
304
+ return;
305
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
306
+ return;
307
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
308
+ return;
309
+ if (!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
310
+ return;
311
+ if (!(props.isLib))
312
+ return;
313
+ __VLS_ctx.handleCloseBtn();
314
+ // @ts-ignore
315
+ [handleCloseBtn,];
316
+ } },
317
+ ...{ class: "w-10 h-10" },
318
+ });
319
+ /** @type {[typeof IconCloseCircle, ]} */ ;
320
+ // @ts-ignore
321
+ const __VLS_16 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
322
+ const __VLS_17 = __VLS_16({}, ...__VLS_functionalComponentArgsRest(__VLS_16));
323
+ }
290
324
  /** @type {[typeof NotTenantPhone, ]} */ ;
291
325
  // @ts-ignore
292
- const __VLS_16 = __VLS_asFunctionalComponent(NotTenantPhone, new NotTenantPhone({
326
+ const __VLS_20 = __VLS_asFunctionalComponent(NotTenantPhone, new NotTenantPhone({
293
327
  ...{ 'onTryAgain': {} },
294
- ...{ class: "bg-white" },
328
+ ...{ class: "bg-white grow" },
295
329
  isLib: (props.isLib),
296
330
  }));
297
- const __VLS_17 = __VLS_16({
331
+ const __VLS_21 = __VLS_20({
298
332
  ...{ 'onTryAgain': {} },
299
- ...{ class: "bg-white" },
333
+ ...{ class: "bg-white grow" },
300
334
  isLib: (props.isLib),
301
- }, ...__VLS_functionalComponentArgsRest(__VLS_16));
302
- let __VLS_19;
303
- let __VLS_20;
304
- const __VLS_21 = ({ tryAgain: {} },
335
+ }, ...__VLS_functionalComponentArgsRest(__VLS_20));
336
+ let __VLS_23;
337
+ let __VLS_24;
338
+ const __VLS_25 = ({ tryAgain: {} },
305
339
  { onTryAgain: (...[$event]) => {
306
340
  if (!!(!__VLS_ctx.isRouterReady))
307
341
  return;
@@ -317,7 +351,7 @@ else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE) {
317
351
  // @ts-ignore
318
352
  [handleInitPage,];
319
353
  } });
320
- var __VLS_18;
354
+ var __VLS_22;
321
355
  }
322
356
  else {
323
357
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
@@ -328,12 +362,12 @@ else {
328
362
  [isLib,];
329
363
  /** @type {[typeof PageError, ]} */ ;
330
364
  // @ts-ignore
331
- const __VLS_23 = __VLS_asFunctionalComponent(PageError, new PageError({
365
+ const __VLS_27 = __VLS_asFunctionalComponent(PageError, new PageError({
332
366
  ...{ class: "shrink-0" },
333
367
  }));
334
- const __VLS_24 = __VLS_23({
368
+ const __VLS_28 = __VLS_27({
335
369
  ...{ class: "shrink-0" },
336
- }, ...__VLS_functionalComponentArgsRest(__VLS_23));
370
+ }, ...__VLS_functionalComponentArgsRest(__VLS_27));
337
371
  }
338
372
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
339
373
  ...{ class: "w-full grow flex overflow-hidden relative" },
@@ -343,21 +377,21 @@ else {
343
377
  [isLib,];
344
378
  /** @type {[typeof Calling, ]} */ ;
345
379
  // @ts-ignore
346
- const __VLS_27 = __VLS_asFunctionalComponent(Calling, new Calling({
380
+ const __VLS_31 = __VLS_asFunctionalComponent(Calling, new Calling({
347
381
  ...{ 'onUserCalling': {} },
348
382
  ...{ 'onEndCall': {} },
349
383
  ref: "callingRef",
350
384
  responsive: (__VLS_ctx.responsiveRender),
351
385
  }));
352
- const __VLS_28 = __VLS_27({
386
+ const __VLS_32 = __VLS_31({
353
387
  ...{ 'onUserCalling': {} },
354
388
  ...{ 'onEndCall': {} },
355
389
  ref: "callingRef",
356
390
  responsive: (__VLS_ctx.responsiveRender),
357
- }, ...__VLS_functionalComponentArgsRest(__VLS_27));
358
- let __VLS_30;
359
- let __VLS_31;
360
- const __VLS_32 = ({ userCalling: {} },
391
+ }, ...__VLS_functionalComponentArgsRest(__VLS_31));
392
+ let __VLS_34;
393
+ let __VLS_35;
394
+ const __VLS_36 = ({ userCalling: {} },
361
395
  { onUserCalling: (...[$event]) => {
362
396
  if (!!(!__VLS_ctx.isRouterReady))
363
397
  return;
@@ -375,7 +409,7 @@ else {
375
409
  // @ts-ignore
376
410
  [responsiveRender, emit,];
377
411
  } });
378
- const __VLS_33 = ({ endCall: {} },
412
+ const __VLS_37 = ({ endCall: {} },
379
413
  { onEndCall: (...[$event]) => {
380
414
  if (!!(!__VLS_ctx.isRouterReady))
381
415
  return;
@@ -394,10 +428,10 @@ else {
394
428
  [emit,];
395
429
  } });
396
430
  /** @type {typeof __VLS_ctx.callingRef} */ ;
397
- var __VLS_34 = {};
431
+ var __VLS_38 = {};
398
432
  // @ts-ignore
399
433
  [callingRef,];
400
- var __VLS_29;
434
+ var __VLS_33;
401
435
  }
402
436
  if (__VLS_ctx.responsiveRender == 'mobile') {
403
437
  // @ts-ignore
@@ -441,8 +475,8 @@ else {
441
475
  });
442
476
  /** @type {[typeof IconArrowLeft, ]} */ ;
443
477
  // @ts-ignore
444
- const __VLS_37 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
445
- const __VLS_38 = __VLS_37({}, ...__VLS_functionalComponentArgsRest(__VLS_37));
478
+ const __VLS_41 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
479
+ const __VLS_42 = __VLS_41({}, ...__VLS_functionalComponentArgsRest(__VLS_41));
446
480
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
447
481
  ...{ class: "ml-3" },
448
482
  });
@@ -514,15 +548,15 @@ else {
514
548
  });
515
549
  /** @type {[typeof IconCloseCircle, ]} */ ;
516
550
  // @ts-ignore
517
- const __VLS_41 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
518
- const __VLS_42 = __VLS_41({}, ...__VLS_functionalComponentArgsRest(__VLS_41));
551
+ const __VLS_45 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
552
+ const __VLS_46 = __VLS_45({}, ...__VLS_functionalComponentArgsRest(__VLS_45));
519
553
  }
520
554
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
521
555
  ...{ class: "grow overflow-hidden" },
522
556
  });
523
557
  /** @type {[typeof ChatList, ]} */ ;
524
558
  // @ts-ignore
525
- const __VLS_45 = __VLS_asFunctionalComponent(ChatList, new ChatList({
559
+ const __VLS_49 = __VLS_asFunctionalComponent(ChatList, new ChatList({
526
560
  ...{ 'onSelectReceiver': {} },
527
561
  ...{ 'onOpenPhoneNumpad': {} },
528
562
  ref: "chatListRef",
@@ -530,19 +564,19 @@ else {
530
564
  responsive: (__VLS_ctx.responsiveRender),
531
565
  receiverId: (__VLS_ctx.receiverId),
532
566
  }));
533
- const __VLS_46 = __VLS_45({
567
+ const __VLS_50 = __VLS_49({
534
568
  ...{ 'onSelectReceiver': {} },
535
569
  ...{ 'onOpenPhoneNumpad': {} },
536
570
  ref: "chatListRef",
537
571
  ...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
538
572
  responsive: (__VLS_ctx.responsiveRender),
539
573
  receiverId: (__VLS_ctx.receiverId),
540
- }, ...__VLS_functionalComponentArgsRest(__VLS_45));
541
- let __VLS_48;
542
- let __VLS_49;
543
- const __VLS_50 = ({ selectReceiver: {} },
574
+ }, ...__VLS_functionalComponentArgsRest(__VLS_49));
575
+ let __VLS_52;
576
+ let __VLS_53;
577
+ const __VLS_54 = ({ selectReceiver: {} },
544
578
  { onSelectReceiver: (__VLS_ctx.selectReceiver) });
545
- const __VLS_51 = ({ openPhoneNumpad: {} },
579
+ const __VLS_55 = ({ openPhoneNumpad: {} },
546
580
  { onOpenPhoneNumpad: (...[$event]) => {
547
581
  if (!!(!__VLS_ctx.isRouterReady))
548
582
  return;
@@ -562,13 +596,13 @@ else {
562
596
  } });
563
597
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CHAT_LIST) }, null, null);
564
598
  /** @type {typeof __VLS_ctx.chatListRef} */ ;
565
- var __VLS_52 = {};
599
+ var __VLS_56 = {};
566
600
  // @ts-ignore
567
601
  [currentPage, PAGE, chatListRef,];
568
- var __VLS_47;
602
+ var __VLS_51;
569
603
  /** @type {[typeof HomeComponent, ]} */ ;
570
604
  // @ts-ignore
571
- const __VLS_55 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
605
+ const __VLS_59 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
572
606
  ...{ 'onCall': {} },
573
607
  ...{ 'onBack': {} },
574
608
  ...{ 'onInputFocus': {} },
@@ -578,7 +612,7 @@ else {
578
612
  conversation: (__VLS_ctx.currentConversation),
579
613
  responsive: (__VLS_ctx.responsiveRender),
580
614
  }));
581
- const __VLS_56 = __VLS_55({
615
+ const __VLS_60 = __VLS_59({
582
616
  ...{ 'onCall': {} },
583
617
  ...{ 'onBack': {} },
584
618
  ...{ 'onInputFocus': {} },
@@ -587,12 +621,12 @@ else {
587
621
  ...{ class: "h-full" },
588
622
  conversation: (__VLS_ctx.currentConversation),
589
623
  responsive: (__VLS_ctx.responsiveRender),
590
- }, ...__VLS_functionalComponentArgsRest(__VLS_55));
591
- let __VLS_58;
592
- let __VLS_59;
593
- const __VLS_60 = ({ call: {} },
624
+ }, ...__VLS_functionalComponentArgsRest(__VLS_59));
625
+ let __VLS_62;
626
+ let __VLS_63;
627
+ const __VLS_64 = ({ call: {} },
594
628
  { onCall: (__VLS_ctx.handleCall) });
595
- const __VLS_61 = ({ back: {} },
629
+ const __VLS_65 = ({ back: {} },
596
630
  { onBack: (...[$event]) => {
597
631
  if (!!(!__VLS_ctx.isRouterReady))
598
632
  return;
@@ -610,60 +644,60 @@ else {
610
644
  // @ts-ignore
611
645
  [responsiveRender, currentPageConfig, receiverId, currentConversation, handleCall,];
612
646
  } });
613
- const __VLS_62 = ({ inputFocus: {} },
647
+ const __VLS_66 = ({ inputFocus: {} },
614
648
  { onInputFocus: (__VLS_ctx.handleReadMessage) });
615
649
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME) }, null, null);
616
650
  /** @type {typeof __VLS_ctx.homeComponentRef} */ ;
617
- var __VLS_63 = {};
651
+ var __VLS_67 = {};
618
652
  // @ts-ignore
619
653
  [currentPage, PAGE, handleReadMessage, homeComponentRef,];
620
- var __VLS_57;
654
+ var __VLS_61;
621
655
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
622
656
  // @ts-ignore
623
657
  [currentPage, PAGE,];
624
658
  /** @type {[typeof CustomerDetail, ]} */ ;
625
659
  // @ts-ignore
626
- const __VLS_66 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
660
+ const __VLS_70 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
627
661
  ref: "customerDetailRef",
628
662
  receiverId: (__VLS_ctx.receiverId),
629
663
  ...{ class: "w-full h-full" },
630
664
  responsive: (__VLS_ctx.responsiveRender),
631
665
  }));
632
- const __VLS_67 = __VLS_66({
666
+ const __VLS_71 = __VLS_70({
633
667
  ref: "customerDetailRef",
634
668
  receiverId: (__VLS_ctx.receiverId),
635
669
  ...{ class: "w-full h-full" },
636
670
  responsive: (__VLS_ctx.responsiveRender),
637
- }, ...__VLS_functionalComponentArgsRest(__VLS_66));
671
+ }, ...__VLS_functionalComponentArgsRest(__VLS_70));
638
672
  /** @type {typeof __VLS_ctx.customerDetailRef} */ ;
639
- var __VLS_69 = {};
673
+ var __VLS_73 = {};
640
674
  // @ts-ignore
641
675
  [responsiveRender, receiverId, customerDetailRef,];
642
- var __VLS_68;
676
+ var __VLS_72;
643
677
  }
644
678
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
645
679
  // @ts-ignore
646
680
  [currentPage, PAGE,];
647
681
  /** @type {[typeof CustomerCheckIn, ]} */ ;
648
682
  // @ts-ignore
649
- const __VLS_72 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
683
+ const __VLS_76 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
650
684
  ...{ class: "w-full h-full" },
651
685
  }));
652
- const __VLS_73 = __VLS_72({
686
+ const __VLS_77 = __VLS_76({
653
687
  ...{ class: "w-full h-full" },
654
- }, ...__VLS_functionalComponentArgsRest(__VLS_72));
688
+ }, ...__VLS_functionalComponentArgsRest(__VLS_76));
655
689
  }
656
690
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
657
691
  // @ts-ignore
658
692
  [currentPage, PAGE,];
659
693
  /** @type {[typeof CustomerAppointment, ]} */ ;
660
694
  // @ts-ignore
661
- const __VLS_76 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
695
+ const __VLS_80 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
662
696
  ...{ class: "w-full h-full" },
663
697
  }));
664
- const __VLS_77 = __VLS_76({
698
+ const __VLS_81 = __VLS_80({
665
699
  ...{ class: "w-full h-full" },
666
- }, ...__VLS_functionalComponentArgsRest(__VLS_76));
700
+ }, ...__VLS_functionalComponentArgsRest(__VLS_80));
667
701
  }
668
702
  }
669
703
  else {
@@ -672,7 +706,7 @@ else {
672
706
  });
673
707
  /** @type {[typeof ChatList, ]} */ ;
674
708
  // @ts-ignore
675
- const __VLS_80 = __VLS_asFunctionalComponent(ChatList, new ChatList({
709
+ const __VLS_84 = __VLS_asFunctionalComponent(ChatList, new ChatList({
676
710
  ...{ 'onSelectReceiver': {} },
677
711
  ...{ 'onOpenPhoneNumpad': {} },
678
712
  ref: "chatListRef",
@@ -680,19 +714,19 @@ else {
680
714
  responsive: (__VLS_ctx.responsiveRender),
681
715
  receiverId: (__VLS_ctx.receiverId),
682
716
  }));
683
- const __VLS_81 = __VLS_80({
717
+ const __VLS_85 = __VLS_84({
684
718
  ...{ 'onSelectReceiver': {} },
685
719
  ...{ 'onOpenPhoneNumpad': {} },
686
720
  ref: "chatListRef",
687
721
  ...{ class: "w-[38%] max-w-[500px] min-w-[300px] xl:min-w-[450px] border-r layout-border" },
688
722
  responsive: (__VLS_ctx.responsiveRender),
689
723
  receiverId: (__VLS_ctx.receiverId),
690
- }, ...__VLS_functionalComponentArgsRest(__VLS_80));
691
- let __VLS_83;
692
- let __VLS_84;
693
- const __VLS_85 = ({ selectReceiver: {} },
724
+ }, ...__VLS_functionalComponentArgsRest(__VLS_84));
725
+ let __VLS_87;
726
+ let __VLS_88;
727
+ const __VLS_89 = ({ selectReceiver: {} },
694
728
  { onSelectReceiver: (__VLS_ctx.selectReceiver) });
695
- const __VLS_86 = ({ openPhoneNumpad: {} },
729
+ const __VLS_90 = ({ openPhoneNumpad: {} },
696
730
  { onOpenPhoneNumpad: (...[$event]) => {
697
731
  if (!!(!__VLS_ctx.isRouterReady))
698
732
  return;
@@ -711,10 +745,10 @@ else {
711
745
  [responsiveRender, receiverId, selectReceiver, handleOpenPhoneNumpad,];
712
746
  } });
713
747
  /** @type {typeof __VLS_ctx.chatListRef} */ ;
714
- var __VLS_87 = {};
748
+ var __VLS_91 = {};
715
749
  // @ts-ignore
716
750
  [chatListRef,];
717
- var __VLS_82;
751
+ var __VLS_86;
718
752
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
719
753
  ...{ class: "bg-white grow flex flex-col h-full overflow-hidden" },
720
754
  });
@@ -748,8 +782,8 @@ else {
748
782
  });
749
783
  /** @type {[typeof IconArrowLeft, ]} */ ;
750
784
  // @ts-ignore
751
- const __VLS_90 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
752
- const __VLS_91 = __VLS_90({}, ...__VLS_functionalComponentArgsRest(__VLS_90));
785
+ const __VLS_94 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
786
+ const __VLS_95 = __VLS_94({}, ...__VLS_functionalComponentArgsRest(__VLS_94));
753
787
  __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
754
788
  ...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
755
789
  });
@@ -762,7 +796,7 @@ else {
762
796
  });
763
797
  /** @type {[typeof HomeComponent, ]} */ ;
764
798
  // @ts-ignore
765
- const __VLS_94 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
799
+ const __VLS_98 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
766
800
  ...{ 'onCall': {} },
767
801
  ...{ 'onInputFocus': {} },
768
802
  ref: "homeComponentRef",
@@ -771,7 +805,7 @@ else {
771
805
  responsive: (__VLS_ctx.responsiveRender),
772
806
  conversation: (__VLS_ctx.currentConversation),
773
807
  }));
774
- const __VLS_95 = __VLS_94({
808
+ const __VLS_99 = __VLS_98({
775
809
  ...{ 'onCall': {} },
776
810
  ...{ 'onInputFocus': {} },
777
811
  ref: "homeComponentRef",
@@ -779,92 +813,92 @@ else {
779
813
  ...{ class: "h-full" },
780
814
  responsive: (__VLS_ctx.responsiveRender),
781
815
  conversation: (__VLS_ctx.currentConversation),
782
- }, ...__VLS_functionalComponentArgsRest(__VLS_94));
783
- let __VLS_97;
784
- let __VLS_98;
785
- const __VLS_99 = ({ call: {} },
816
+ }, ...__VLS_functionalComponentArgsRest(__VLS_98));
817
+ let __VLS_101;
818
+ let __VLS_102;
819
+ const __VLS_103 = ({ call: {} },
786
820
  { onCall: (__VLS_ctx.handleCall) });
787
- const __VLS_100 = ({ inputFocus: {} },
821
+ const __VLS_104 = ({ inputFocus: {} },
788
822
  { onInputFocus: (__VLS_ctx.handleReadMessage) });
789
823
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME && __VLS_ctx.receiverId) }, null, null);
790
824
  /** @type {typeof __VLS_ctx.homeComponentRef} */ ;
791
- var __VLS_101 = {};
825
+ var __VLS_105 = {};
792
826
  // @ts-ignore
793
827
  [currentPage, PAGE, responsiveRender, receiverId, receiverId, currentConversation, handleCall, handleReadMessage, homeComponentRef,];
794
- var __VLS_96;
828
+ var __VLS_100;
795
829
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
796
830
  // @ts-ignore
797
831
  [currentPage, PAGE,];
798
832
  /** @type {[typeof CustomerDetail, ]} */ ;
799
833
  // @ts-ignore
800
- const __VLS_104 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
834
+ const __VLS_108 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
801
835
  ref: "customerDetailRef",
802
836
  receiverId: (__VLS_ctx.receiverId),
803
837
  ...{ class: "h-full" },
804
838
  responsive: (__VLS_ctx.responsiveRender),
805
839
  }));
806
- const __VLS_105 = __VLS_104({
840
+ const __VLS_109 = __VLS_108({
807
841
  ref: "customerDetailRef",
808
842
  receiverId: (__VLS_ctx.receiverId),
809
843
  ...{ class: "h-full" },
810
844
  responsive: (__VLS_ctx.responsiveRender),
811
- }, ...__VLS_functionalComponentArgsRest(__VLS_104));
845
+ }, ...__VLS_functionalComponentArgsRest(__VLS_108));
812
846
  /** @type {typeof __VLS_ctx.customerDetailRef} */ ;
813
- var __VLS_107 = {};
847
+ var __VLS_111 = {};
814
848
  // @ts-ignore
815
849
  [responsiveRender, receiverId, customerDetailRef,];
816
- var __VLS_106;
850
+ var __VLS_110;
817
851
  }
818
852
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
819
853
  // @ts-ignore
820
854
  [currentPage, PAGE,];
821
855
  /** @type {[typeof CustomerCheckIn, ]} */ ;
822
856
  // @ts-ignore
823
- const __VLS_110 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
857
+ const __VLS_114 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
824
858
  ...{ class: "h-full" },
825
859
  }));
826
- const __VLS_111 = __VLS_110({
860
+ const __VLS_115 = __VLS_114({
827
861
  ...{ class: "h-full" },
828
- }, ...__VLS_functionalComponentArgsRest(__VLS_110));
862
+ }, ...__VLS_functionalComponentArgsRest(__VLS_114));
829
863
  }
830
864
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
831
865
  // @ts-ignore
832
866
  [currentPage, PAGE,];
833
867
  /** @type {[typeof CustomerAppointment, ]} */ ;
834
868
  // @ts-ignore
835
- const __VLS_114 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
869
+ const __VLS_118 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
836
870
  ...{ class: "h-full" },
837
871
  }));
838
- const __VLS_115 = __VLS_114({
872
+ const __VLS_119 = __VLS_118({
839
873
  ...{ class: "h-full" },
840
- }, ...__VLS_functionalComponentArgsRest(__VLS_114));
874
+ }, ...__VLS_functionalComponentArgsRest(__VLS_118));
841
875
  }
842
876
  }
843
877
  /** @type {[typeof PhoneNumpad, ]} */ ;
844
878
  // @ts-ignore
845
- const __VLS_118 = __VLS_asFunctionalComponent(PhoneNumpad, new PhoneNumpad({
879
+ const __VLS_122 = __VLS_asFunctionalComponent(PhoneNumpad, new PhoneNumpad({
846
880
  ...{ 'onCall': {} },
847
881
  ref: "phoneNumpadRef",
848
882
  hideNumpad: (__VLS_ctx.isLib),
849
883
  responsive: (__VLS_ctx.responsiveRender),
850
884
  ...{ class: "bg-white shrink-0 border-l layout-border" },
851
885
  }));
852
- const __VLS_119 = __VLS_118({
886
+ const __VLS_123 = __VLS_122({
853
887
  ...{ 'onCall': {} },
854
888
  ref: "phoneNumpadRef",
855
889
  hideNumpad: (__VLS_ctx.isLib),
856
890
  responsive: (__VLS_ctx.responsiveRender),
857
891
  ...{ class: "bg-white shrink-0 border-l layout-border" },
858
- }, ...__VLS_functionalComponentArgsRest(__VLS_118));
859
- let __VLS_121;
860
- let __VLS_122;
861
- const __VLS_123 = ({ call: {} },
892
+ }, ...__VLS_functionalComponentArgsRest(__VLS_122));
893
+ let __VLS_125;
894
+ let __VLS_126;
895
+ const __VLS_127 = ({ call: {} },
862
896
  { onCall: (__VLS_ctx.handleCall) });
863
897
  /** @type {typeof __VLS_ctx.phoneNumpadRef} */ ;
864
- var __VLS_124 = {};
898
+ var __VLS_128 = {};
865
899
  // @ts-ignore
866
900
  [isLib, responsiveRender, handleCall, phoneNumpadRef,];
867
- var __VLS_120;
901
+ var __VLS_124;
868
902
  }
869
903
  /** @type {__VLS_StyleScopedClasses['go-chat-main']} */ ;
870
904
  /** @type {__VLS_StyleScopedClasses['max-w-full']} */ ;
@@ -873,8 +907,19 @@ else {
873
907
  /** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
874
908
  /** @type {__VLS_StyleScopedClasses['sc-full']} */ ;
875
909
  /** @type {__VLS_StyleScopedClasses['mt-10']} */ ;
910
+ /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
911
+ /** @type {__VLS_StyleScopedClasses['p-5']} */ ;
912
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
913
+ /** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
914
+ /** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
915
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
916
+ /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
917
+ /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
918
+ /** @type {__VLS_StyleScopedClasses['w-10']} */ ;
919
+ /** @type {__VLS_StyleScopedClasses['h-10']} */ ;
876
920
  /** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
877
921
  /** @type {__VLS_StyleScopedClasses['grow']} */ ;
922
+ /** @type {__VLS_StyleScopedClasses['grow']} */ ;
878
923
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
879
924
  /** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
880
925
  /** @type {__VLS_StyleScopedClasses['flex']} */ ;
@@ -967,7 +1012,7 @@ else {
967
1012
  /** @type {__VLS_StyleScopedClasses['border-l']} */ ;
968
1013
  /** @type {__VLS_StyleScopedClasses['layout-border']} */ ;
969
1014
  // @ts-ignore
970
- var __VLS_35 = __VLS_34, __VLS_53 = __VLS_52, __VLS_64 = __VLS_63, __VLS_70 = __VLS_69, __VLS_88 = __VLS_87, __VLS_102 = __VLS_101, __VLS_108 = __VLS_107, __VLS_125 = __VLS_124;
1015
+ var __VLS_39 = __VLS_38, __VLS_57 = __VLS_56, __VLS_68 = __VLS_67, __VLS_74 = __VLS_73, __VLS_92 = __VLS_91, __VLS_106 = __VLS_105, __VLS_112 = __VLS_111, __VLS_129 = __VLS_128;
971
1016
  const __VLS_export = (await import('vue')).defineComponent({
972
1017
  setup: () => (__VLS_exposed),
973
1018
  __typeEmits: {},
@@ -9,7 +9,7 @@ type __VLS_ModelProps = {
9
9
  };
10
10
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
11
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
12
- handleReadMessage: () => void;
12
+ handleReadMessage: (receiver_id_request?: number | undefined) => void;
13
13
  listConversationsAll: import("vue").Ref<{
14
14
  id: number;
15
15
  receiver_id: number;
@@ -23,7 +23,7 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
23
23
  unread_count: number;
24
24
  status: number;
25
25
  color: string;
26
- is_unknown: number;
26
+ is_known: number;
27
27
  customer_id?: number | undefined;
28
28
  tenant_id?: number | undefined;
29
29
  }[], IConversation[] | {
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
39
39
  unread_count: number;
40
40
  status: number;
41
41
  color: string;
42
- is_unknown: number;
42
+ is_known: number;
43
43
  customer_id?: number | undefined;
44
44
  tenant_id?: number | undefined;
45
45
  }[]>;
@@ -56,7 +56,7 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
56
56
  unread_count: number;
57
57
  status: number;
58
58
  color: string;
59
- is_unknown: number;
59
+ is_known: number;
60
60
  customer_id?: number | undefined;
61
61
  tenant_id?: number | undefined;
62
62
  }[], IConversation[] | {
@@ -72,14 +72,14 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
72
72
  unread_count: number;
73
73
  status: number;
74
74
  color: string;
75
- is_unknown: number;
75
+ is_known: number;
76
76
  customer_id?: number | undefined;
77
77
  tenant_id?: number | undefined;
78
78
  }[]>;
79
79
  getCurrentConversation: () => IConversation | undefined;
80
80
  initData: (option?: {
81
81
  conversation_id?: any;
82
- is_unknown?: string | undefined;
82
+ is_known?: string | undefined;
83
83
  } | undefined) => Promise<void>;
84
84
  handleTabChange: (tab: any, option?: {
85
85
  hideCheckHasReceiveId?: boolean | undefined;