@phonghq/go-chat 1.0.41 → 1.0.43

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,7 +21,8 @@ import IconCloseCircle from '../assets/icons/IconCloseCircle.vue';
21
21
  import Setting from '../chat/page/setting/Setting.vue';
22
22
  import SettingSuccess from '../chat/page/setting/SettingSuccess.vue';
23
23
  import { goChatError } from '../composable/useError';
24
- import NotTenantPhone from '@/views/NotTenantPhone.vue';
24
+ import NotTenantPhone from '../views/NotTenantPhone.vue';
25
+ import { phoneNumberFormat } from '../utils/string-helper';
25
26
  const routerConfig = [
26
27
  { id: PAGE.HOME, backFunc: null, backTitle: '' },
27
28
  {
@@ -54,7 +55,10 @@ const routerMobileConfig = computed(() => [
54
55
  : () => {
55
56
  logout();
56
57
  },
57
- backTitle: 'ChatBiz'
58
+ backTitle: 'Go Chat',
59
+ subTitle: dataProfile.value?.user_type == 'tenant'
60
+ ? phoneNumberFormat(dataProfile.value?.tenant_phone ?? '')
61
+ : ''
58
62
  },
59
63
  {
60
64
  id: PAGE.HOME,
@@ -87,7 +91,7 @@ const routerMobileConfig = computed(() => [
87
91
  }
88
92
  ]);
89
93
  const props = withDefaults(defineProps(), {
90
- response: 'tablet'
94
+ response: 'tablet',
91
95
  });
92
96
  const emit = defineEmits();
93
97
  const { initPage } = useInitData();
@@ -162,10 +166,10 @@ const getResponsiveObserverDebounce = useDebounce(() => {
162
166
  getResponsiveObserver();
163
167
  }, 50);
164
168
  const handleInitPage = async () => {
165
- await initPage({ props: props, response: responsiveRender.value });
169
+ const init_data = await initPage({ props: props, response: responsiveRender.value });
166
170
  if (!dataProfile.value?.tenant_phone && dataProfile.value?.user_type == 'tenant') {
167
171
  emit('error:noPhoneTenant');
168
- routerPush(PAGE.TENANT_ERROR);
172
+ routerPush(PAGE.NOT_TENANT_PHONE);
169
173
  // if (dataProfile.value?.has_business_tenant_phone) {
170
174
  // routerPush(PAGE.REGISTER_SUCCESS)
171
175
  // } else {
@@ -173,6 +177,11 @@ const handleInitPage = async () => {
173
177
  // routerPush(PAGE.REGISTER_TENANT)
174
178
  // }
175
179
  }
180
+ if (init_data?.conversation_id) {
181
+ chatListRef.value?.initData({ conversation_id: init_data?.conversation_id, is_unknown: init_data?.is_unknown || '0' });
182
+ }
183
+ else
184
+ chatListRef.value?.initData();
176
185
  };
177
186
  const handleEndCall = (data, type) => {
178
187
  setTimeout(() => {
@@ -246,7 +255,7 @@ defineExpose({
246
255
  });
247
256
  debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
248
257
  const __VLS_defaults = {
249
- response: 'tablet'
258
+ response: 'tablet',
250
259
  };
251
260
  const __VLS_ctx = {
252
261
  ...{},
@@ -283,8 +292,12 @@ else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR) {
283
292
  [currentPage, PAGE,];
284
293
  /** @type {[typeof Error, ]} */ ;
285
294
  // @ts-ignore
286
- const __VLS_4 = __VLS_asFunctionalComponent(Error, new Error({}));
287
- const __VLS_5 = __VLS_4({}, ...__VLS_functionalComponentArgsRest(__VLS_4));
295
+ const __VLS_4 = __VLS_asFunctionalComponent(Error, new Error({
296
+ ...{ class: "mt-10" },
297
+ }));
298
+ const __VLS_5 = __VLS_4({
299
+ ...{ class: "mt-10" },
300
+ }, ...__VLS_functionalComponentArgsRest(__VLS_4));
288
301
  }
289
302
  else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT) {
290
303
  // @ts-ignore
@@ -302,6 +315,39 @@ else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS) {
302
315
  const __VLS_12 = __VLS_asFunctionalComponent(SettingSuccess, new SettingSuccess({}));
303
316
  const __VLS_13 = __VLS_12({}, ...__VLS_functionalComponentArgsRest(__VLS_12));
304
317
  }
318
+ else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE) {
319
+ // @ts-ignore
320
+ [currentPage, PAGE,];
321
+ /** @type {[typeof NotTenantPhone, ]} */ ;
322
+ // @ts-ignore
323
+ const __VLS_16 = __VLS_asFunctionalComponent(NotTenantPhone, new NotTenantPhone({
324
+ ...{ 'onTryAgain': {} },
325
+ isLib: (props.isLib),
326
+ }));
327
+ const __VLS_17 = __VLS_16({
328
+ ...{ 'onTryAgain': {} },
329
+ isLib: (props.isLib),
330
+ }, ...__VLS_functionalComponentArgsRest(__VLS_16));
331
+ let __VLS_19;
332
+ let __VLS_20;
333
+ const __VLS_21 = ({ tryAgain: {} },
334
+ { onTryAgain: (...[$event]) => {
335
+ if (!!(!__VLS_ctx.isRouterReady))
336
+ return;
337
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
338
+ return;
339
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
340
+ return;
341
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
342
+ return;
343
+ if (!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
344
+ return;
345
+ __VLS_ctx.handleInitPage();
346
+ // @ts-ignore
347
+ [handleInitPage,];
348
+ } });
349
+ var __VLS_18;
350
+ }
305
351
  else {
306
352
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
307
353
  ...{ class: "w-full h-full flex flex-col overflow-hidden relative" },
@@ -342,6 +388,8 @@ else {
342
388
  return;
343
389
  if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
344
390
  return;
391
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
392
+ return;
345
393
  if (!(__VLS_ctx.goChatError))
346
394
  return;
347
395
  if (!!(__VLS_ctx.mediaPermissionState == 'prompt'))
@@ -358,23 +406,23 @@ else {
358
406
  }
359
407
  /** @type {[typeof Calling, ]} */ ;
360
408
  // @ts-ignore
361
- const __VLS_16 = __VLS_asFunctionalComponent(Calling, new Calling({
409
+ const __VLS_23 = __VLS_asFunctionalComponent(Calling, new Calling({
362
410
  ...{ 'onUserCalling': {} },
363
411
  ...{ 'onEndCall': {} },
364
412
  ...{ 'onError:mediaPermissionFail': {} },
365
413
  ref: "callingRef",
366
414
  responsive: (__VLS_ctx.responsiveRender),
367
415
  }));
368
- const __VLS_17 = __VLS_16({
416
+ const __VLS_24 = __VLS_23({
369
417
  ...{ 'onUserCalling': {} },
370
418
  ...{ 'onEndCall': {} },
371
419
  ...{ 'onError:mediaPermissionFail': {} },
372
420
  ref: "callingRef",
373
421
  responsive: (__VLS_ctx.responsiveRender),
374
- }, ...__VLS_functionalComponentArgsRest(__VLS_16));
375
- let __VLS_19;
376
- let __VLS_20;
377
- const __VLS_21 = ({ userCalling: {} },
422
+ }, ...__VLS_functionalComponentArgsRest(__VLS_23));
423
+ let __VLS_26;
424
+ let __VLS_27;
425
+ const __VLS_28 = ({ userCalling: {} },
378
426
  { onUserCalling: (...[$event]) => {
379
427
  if (!!(!__VLS_ctx.isRouterReady))
380
428
  return;
@@ -384,19 +432,21 @@ else {
384
432
  return;
385
433
  if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
386
434
  return;
435
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
436
+ return;
387
437
  __VLS_ctx.emit('userCalling', $event);
388
438
  // @ts-ignore
389
439
  [responsiveRender, emit,];
390
440
  } });
391
- const __VLS_22 = ({ endCall: {} },
441
+ const __VLS_29 = ({ endCall: {} },
392
442
  { onEndCall: (__VLS_ctx.handleEndCall) });
393
- const __VLS_23 = ({ 'error:mediaPermissionFail': {} },
443
+ const __VLS_30 = ({ 'error:mediaPermissionFail': {} },
394
444
  { 'onError:mediaPermissionFail': (__VLS_ctx.handleMedialPermissionError) });
395
445
  /** @type {typeof __VLS_ctx.callingRef} */ ;
396
- var __VLS_24 = {};
446
+ var __VLS_31 = {};
397
447
  // @ts-ignore
398
448
  [handleEndCall, handleMedialPermissionError, callingRef,];
399
- var __VLS_18;
449
+ var __VLS_25;
400
450
  if (__VLS_ctx.responsiveRender == 'mobile') {
401
451
  // @ts-ignore
402
452
  [responsiveRender,];
@@ -422,6 +472,8 @@ else {
422
472
  return;
423
473
  if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
424
474
  return;
475
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
476
+ return;
425
477
  if (!(__VLS_ctx.responsiveRender == 'mobile'))
426
478
  return;
427
479
  if (!(__VLS_ctx.currentPageConfig?.backFunc && !__VLS_ctx.currentPageConfig?.isHidden))
@@ -434,14 +486,39 @@ else {
434
486
  });
435
487
  /** @type {[typeof IconArrowLeft, ]} */ ;
436
488
  // @ts-ignore
437
- const __VLS_27 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
438
- const __VLS_28 = __VLS_27({}, ...__VLS_functionalComponentArgsRest(__VLS_27));
439
- __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
440
- ...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
489
+ const __VLS_34 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
490
+ const __VLS_35 = __VLS_34({}, ...__VLS_functionalComponentArgsRest(__VLS_34));
491
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
492
+ ...{ class: "ml-3" },
493
+ });
494
+ __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
495
+ ...{ class: "text-xl font-semibold text-left text-chat-haze-900" },
441
496
  });
442
497
  (__VLS_ctx.currentPageConfig.backTitle ?? '');
443
498
  // @ts-ignore
444
499
  [currentPageConfig,];
500
+ __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
501
+ ...{ class: "text-sm font-medium text-chat-haze-900" },
502
+ });
503
+ (__VLS_ctx.currentPageConfig.subTitle ?? '');
504
+ // @ts-ignore
505
+ [currentPageConfig,];
506
+ }
507
+ else if (__VLS_ctx.dataProfile?.user_type == 'tenant' || true) {
508
+ // @ts-ignore
509
+ [dataProfile,];
510
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
511
+ ...{ class: "flex gap-2" },
512
+ });
513
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
514
+ ...{ class: "text-chat-haze-700" },
515
+ });
516
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
517
+ ...{ class: "font-medium text-gray-700" },
518
+ });
519
+ (__VLS_ctx.phoneNumberFormat(__VLS_ctx.dataProfile?.tenant_phone ?? '') ?? '');
520
+ // @ts-ignore
521
+ [dataProfile, phoneNumberFormat,];
445
522
  }
446
523
  else {
447
524
  __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
@@ -457,6 +534,8 @@ else {
457
534
  return;
458
535
  if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
459
536
  return;
537
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
538
+ return;
460
539
  if (!(__VLS_ctx.responsiveRender == 'mobile'))
461
540
  return;
462
541
  if (!(props.isLib))
@@ -469,49 +548,41 @@ else {
469
548
  });
470
549
  /** @type {[typeof IconCloseCircle, ]} */ ;
471
550
  // @ts-ignore
472
- const __VLS_31 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
473
- const __VLS_32 = __VLS_31({}, ...__VLS_functionalComponentArgsRest(__VLS_31));
551
+ const __VLS_38 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
552
+ const __VLS_39 = __VLS_38({}, ...__VLS_functionalComponentArgsRest(__VLS_38));
474
553
  }
475
554
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
476
555
  ...{ class: "grow overflow-hidden" },
477
556
  });
478
- if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR) {
479
- // @ts-ignore
480
- [currentPage, PAGE,];
481
- /** @type {[typeof NotTenantPhone, ]} */ ;
482
- // @ts-ignore
483
- const __VLS_35 = __VLS_asFunctionalComponent(NotTenantPhone, new NotTenantPhone({}));
484
- const __VLS_36 = __VLS_35({}, ...__VLS_functionalComponentArgsRest(__VLS_35));
485
- }
486
557
  /** @type {[typeof ChatList, ]} */ ;
487
558
  // @ts-ignore
488
- const __VLS_39 = __VLS_asFunctionalComponent(ChatList, new ChatList({
559
+ const __VLS_42 = __VLS_asFunctionalComponent(ChatList, new ChatList({
489
560
  ...{ 'onSelectReceiver': {} },
490
561
  ref: "chatListRef",
491
562
  ...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
492
563
  responsive: (__VLS_ctx.responsiveRender),
493
564
  receiverId: (__VLS_ctx.receiverId),
494
565
  }));
495
- const __VLS_40 = __VLS_39({
566
+ const __VLS_43 = __VLS_42({
496
567
  ...{ 'onSelectReceiver': {} },
497
568
  ref: "chatListRef",
498
569
  ...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
499
570
  responsive: (__VLS_ctx.responsiveRender),
500
571
  receiverId: (__VLS_ctx.receiverId),
501
- }, ...__VLS_functionalComponentArgsRest(__VLS_39));
502
- let __VLS_42;
503
- let __VLS_43;
504
- const __VLS_44 = ({ selectReceiver: {} },
572
+ }, ...__VLS_functionalComponentArgsRest(__VLS_42));
573
+ let __VLS_45;
574
+ let __VLS_46;
575
+ const __VLS_47 = ({ selectReceiver: {} },
505
576
  { onSelectReceiver: (__VLS_ctx.selectReceiver) });
506
577
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CHAT_LIST) }, null, null);
507
578
  /** @type {typeof __VLS_ctx.chatListRef} */ ;
508
- var __VLS_45 = {};
579
+ var __VLS_48 = {};
509
580
  // @ts-ignore
510
581
  [currentPage, PAGE, responsiveRender, receiverId, selectReceiver, chatListRef,];
511
- var __VLS_41;
582
+ var __VLS_44;
512
583
  /** @type {[typeof HomeComponent, ]} */ ;
513
584
  // @ts-ignore
514
- const __VLS_48 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
585
+ const __VLS_51 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
515
586
  ...{ 'onCall': {} },
516
587
  ...{ 'onBack': {} },
517
588
  ...{ 'onInputFocus': {} },
@@ -520,7 +591,7 @@ else {
520
591
  ...{ class: "h-full pt-4" },
521
592
  responsive: (__VLS_ctx.responsiveRender),
522
593
  }));
523
- const __VLS_49 = __VLS_48({
594
+ const __VLS_52 = __VLS_51({
524
595
  ...{ 'onCall': {} },
525
596
  ...{ 'onBack': {} },
526
597
  ...{ 'onInputFocus': {} },
@@ -528,12 +599,12 @@ else {
528
599
  receiverId: (__VLS_ctx.receiverId),
529
600
  ...{ class: "h-full pt-4" },
530
601
  responsive: (__VLS_ctx.responsiveRender),
531
- }, ...__VLS_functionalComponentArgsRest(__VLS_48));
532
- let __VLS_51;
533
- let __VLS_52;
534
- const __VLS_53 = ({ call: {} },
602
+ }, ...__VLS_functionalComponentArgsRest(__VLS_51));
603
+ let __VLS_54;
604
+ let __VLS_55;
605
+ const __VLS_56 = ({ call: {} },
535
606
  { onCall: (__VLS_ctx.handleCall) });
536
- const __VLS_54 = ({ back: {} },
607
+ const __VLS_57 = ({ back: {} },
537
608
  { onBack: (...[$event]) => {
538
609
  if (!!(!__VLS_ctx.isRouterReady))
539
610
  return;
@@ -543,78 +614,80 @@ else {
543
614
  return;
544
615
  if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
545
616
  return;
617
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
618
+ return;
546
619
  if (!(__VLS_ctx.responsiveRender == 'mobile'))
547
620
  return;
548
621
  __VLS_ctx.currentPageConfig.backFunc?.();
549
622
  // @ts-ignore
550
623
  [responsiveRender, currentPageConfig, receiverId, handleCall,];
551
624
  } });
552
- const __VLS_55 = ({ inputFocus: {} },
625
+ const __VLS_58 = ({ inputFocus: {} },
553
626
  { onInputFocus: (__VLS_ctx.handleReadMessage) });
554
627
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME) }, null, null);
555
628
  /** @type {typeof __VLS_ctx.homeComponentRef} */ ;
556
- var __VLS_56 = {};
629
+ var __VLS_59 = {};
557
630
  // @ts-ignore
558
631
  [currentPage, PAGE, handleReadMessage, homeComponentRef,];
559
- var __VLS_50;
632
+ var __VLS_53;
560
633
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
561
634
  // @ts-ignore
562
635
  [currentPage, PAGE,];
563
636
  /** @type {[typeof CustomerDetail, ]} */ ;
564
637
  // @ts-ignore
565
- const __VLS_59 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
638
+ const __VLS_62 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
566
639
  ref: "customerDetailRef",
567
640
  receiverId: (__VLS_ctx.receiverId),
568
641
  ...{ class: "w-full h-full" },
569
642
  responsive: (__VLS_ctx.responsiveRender),
570
643
  }));
571
- const __VLS_60 = __VLS_59({
644
+ const __VLS_63 = __VLS_62({
572
645
  ref: "customerDetailRef",
573
646
  receiverId: (__VLS_ctx.receiverId),
574
647
  ...{ class: "w-full h-full" },
575
648
  responsive: (__VLS_ctx.responsiveRender),
576
- }, ...__VLS_functionalComponentArgsRest(__VLS_59));
649
+ }, ...__VLS_functionalComponentArgsRest(__VLS_62));
577
650
  /** @type {typeof __VLS_ctx.customerDetailRef} */ ;
578
- var __VLS_62 = {};
651
+ var __VLS_65 = {};
579
652
  // @ts-ignore
580
653
  [responsiveRender, receiverId, customerDetailRef,];
581
- var __VLS_61;
654
+ var __VLS_64;
582
655
  }
583
656
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
584
657
  // @ts-ignore
585
658
  [currentPage, PAGE,];
586
659
  /** @type {[typeof CustomerCheckIn, ]} */ ;
587
660
  // @ts-ignore
588
- const __VLS_65 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
661
+ const __VLS_68 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
589
662
  ...{ class: "w-full h-full" },
590
663
  }));
591
- const __VLS_66 = __VLS_65({
664
+ const __VLS_69 = __VLS_68({
592
665
  ...{ class: "w-full h-full" },
593
- }, ...__VLS_functionalComponentArgsRest(__VLS_65));
666
+ }, ...__VLS_functionalComponentArgsRest(__VLS_68));
594
667
  }
595
668
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
596
669
  // @ts-ignore
597
670
  [currentPage, PAGE,];
598
671
  /** @type {[typeof CustomerAppointment, ]} */ ;
599
672
  // @ts-ignore
600
- const __VLS_69 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
673
+ const __VLS_72 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
601
674
  ...{ class: "w-full h-full" },
602
675
  }));
603
- const __VLS_70 = __VLS_69({
676
+ const __VLS_73 = __VLS_72({
604
677
  ...{ class: "w-full h-full" },
605
- }, ...__VLS_functionalComponentArgsRest(__VLS_69));
678
+ }, ...__VLS_functionalComponentArgsRest(__VLS_72));
606
679
  }
607
680
  if (__VLS_ctx.currentPage != __VLS_ctx.PAGE.HOME) {
608
681
  // @ts-ignore
609
682
  [currentPage, PAGE,];
610
683
  /** @type {[typeof MobileFooter, ]} */ ;
611
684
  // @ts-ignore
612
- const __VLS_73 = __VLS_asFunctionalComponent(MobileFooter, new MobileFooter({
685
+ const __VLS_76 = __VLS_asFunctionalComponent(MobileFooter, new MobileFooter({
613
686
  ...{ class: "shrink-0" },
614
687
  }));
615
- const __VLS_74 = __VLS_73({
688
+ const __VLS_77 = __VLS_76({
616
689
  ...{ class: "shrink-0" },
617
- }, ...__VLS_functionalComponentArgsRest(__VLS_73));
690
+ }, ...__VLS_functionalComponentArgsRest(__VLS_76));
618
691
  }
619
692
  }
620
693
  else {
@@ -623,29 +696,29 @@ else {
623
696
  });
624
697
  /** @type {[typeof ChatList, ]} */ ;
625
698
  // @ts-ignore
626
- const __VLS_77 = __VLS_asFunctionalComponent(ChatList, new ChatList({
699
+ const __VLS_80 = __VLS_asFunctionalComponent(ChatList, new ChatList({
627
700
  ...{ 'onSelectReceiver': {} },
628
701
  ref: "chatListRef",
629
702
  ...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
630
703
  responsive: (__VLS_ctx.responsiveRender),
631
704
  receiverId: (__VLS_ctx.receiverId),
632
705
  }));
633
- const __VLS_78 = __VLS_77({
706
+ const __VLS_81 = __VLS_80({
634
707
  ...{ 'onSelectReceiver': {} },
635
708
  ref: "chatListRef",
636
709
  ...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
637
710
  responsive: (__VLS_ctx.responsiveRender),
638
711
  receiverId: (__VLS_ctx.receiverId),
639
- }, ...__VLS_functionalComponentArgsRest(__VLS_77));
640
- let __VLS_80;
641
- let __VLS_81;
642
- const __VLS_82 = ({ selectReceiver: {} },
712
+ }, ...__VLS_functionalComponentArgsRest(__VLS_80));
713
+ let __VLS_83;
714
+ let __VLS_84;
715
+ const __VLS_85 = ({ selectReceiver: {} },
643
716
  { onSelectReceiver: (__VLS_ctx.selectReceiver) });
644
717
  /** @type {typeof __VLS_ctx.chatListRef} */ ;
645
- var __VLS_83 = {};
718
+ var __VLS_86 = {};
646
719
  // @ts-ignore
647
720
  [responsiveRender, receiverId, selectReceiver, chatListRef,];
648
- var __VLS_79;
721
+ var __VLS_82;
649
722
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
650
723
  ...{ class: "chat-box-white grow flex flex-col h-full pt-6 overflow-hidden" },
651
724
  });
@@ -665,6 +738,8 @@ else {
665
738
  return;
666
739
  if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
667
740
  return;
741
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
742
+ return;
668
743
  if (!!(__VLS_ctx.responsiveRender == 'mobile'))
669
744
  return;
670
745
  if (!(__VLS_ctx.currentPageConfig?.backFunc))
@@ -677,8 +752,8 @@ else {
677
752
  });
678
753
  /** @type {[typeof IconArrowLeft, ]} */ ;
679
754
  // @ts-ignore
680
- const __VLS_86 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
681
- const __VLS_87 = __VLS_86({}, ...__VLS_functionalComponentArgsRest(__VLS_86));
755
+ const __VLS_89 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
756
+ const __VLS_90 = __VLS_89({}, ...__VLS_functionalComponentArgsRest(__VLS_89));
682
757
  __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
683
758
  ...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
684
759
  });
@@ -691,7 +766,7 @@ else {
691
766
  });
692
767
  /** @type {[typeof HomeComponent, ]} */ ;
693
768
  // @ts-ignore
694
- const __VLS_90 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
769
+ const __VLS_93 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
695
770
  ...{ 'onCall': {} },
696
771
  ...{ 'onInputFocus': {} },
697
772
  ref: "homeComponentRef",
@@ -699,72 +774,72 @@ else {
699
774
  ...{ class: "h-full" },
700
775
  responsive: (__VLS_ctx.responsiveRender),
701
776
  }));
702
- const __VLS_91 = __VLS_90({
777
+ const __VLS_94 = __VLS_93({
703
778
  ...{ 'onCall': {} },
704
779
  ...{ 'onInputFocus': {} },
705
780
  ref: "homeComponentRef",
706
781
  receiverId: (__VLS_ctx.receiverId),
707
782
  ...{ class: "h-full" },
708
783
  responsive: (__VLS_ctx.responsiveRender),
709
- }, ...__VLS_functionalComponentArgsRest(__VLS_90));
710
- let __VLS_93;
711
- let __VLS_94;
712
- const __VLS_95 = ({ call: {} },
784
+ }, ...__VLS_functionalComponentArgsRest(__VLS_93));
785
+ let __VLS_96;
786
+ let __VLS_97;
787
+ const __VLS_98 = ({ call: {} },
713
788
  { onCall: (__VLS_ctx.handleCall) });
714
- const __VLS_96 = ({ inputFocus: {} },
789
+ const __VLS_99 = ({ inputFocus: {} },
715
790
  { onInputFocus: (__VLS_ctx.handleReadMessage) });
716
791
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME && __VLS_ctx.receiverId) }, null, null);
717
792
  /** @type {typeof __VLS_ctx.homeComponentRef} */ ;
718
- var __VLS_97 = {};
793
+ var __VLS_100 = {};
719
794
  // @ts-ignore
720
795
  [currentPage, PAGE, responsiveRender, receiverId, receiverId, handleCall, handleReadMessage, homeComponentRef,];
721
- var __VLS_92;
796
+ var __VLS_95;
722
797
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
723
798
  // @ts-ignore
724
799
  [currentPage, PAGE,];
725
800
  /** @type {[typeof CustomerDetail, ]} */ ;
726
801
  // @ts-ignore
727
- const __VLS_100 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
802
+ const __VLS_103 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
728
803
  ref: "customerDetailRef",
729
804
  receiverId: (__VLS_ctx.receiverId),
730
805
  ...{ class: "h-full" },
731
806
  responsive: (__VLS_ctx.responsiveRender),
732
807
  }));
733
- const __VLS_101 = __VLS_100({
808
+ const __VLS_104 = __VLS_103({
734
809
  ref: "customerDetailRef",
735
810
  receiverId: (__VLS_ctx.receiverId),
736
811
  ...{ class: "h-full" },
737
812
  responsive: (__VLS_ctx.responsiveRender),
738
- }, ...__VLS_functionalComponentArgsRest(__VLS_100));
813
+ }, ...__VLS_functionalComponentArgsRest(__VLS_103));
739
814
  /** @type {typeof __VLS_ctx.customerDetailRef} */ ;
740
- var __VLS_103 = {};
815
+ var __VLS_106 = {};
741
816
  // @ts-ignore
742
817
  [responsiveRender, receiverId, customerDetailRef,];
743
- var __VLS_102;
818
+ var __VLS_105;
744
819
  }
745
820
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
746
821
  // @ts-ignore
747
822
  [currentPage, PAGE,];
748
823
  /** @type {[typeof CustomerCheckIn, ]} */ ;
749
824
  // @ts-ignore
750
- const __VLS_106 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
825
+ const __VLS_109 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
751
826
  ...{ class: "h-full" },
752
827
  }));
753
- const __VLS_107 = __VLS_106({
828
+ const __VLS_110 = __VLS_109({
754
829
  ...{ class: "h-full" },
755
- }, ...__VLS_functionalComponentArgsRest(__VLS_106));
830
+ }, ...__VLS_functionalComponentArgsRest(__VLS_109));
756
831
  }
757
832
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
758
833
  // @ts-ignore
759
834
  [currentPage, PAGE,];
760
835
  /** @type {[typeof CustomerAppointment, ]} */ ;
761
836
  // @ts-ignore
762
- const __VLS_110 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
837
+ const __VLS_113 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
763
838
  ...{ class: "h-full" },
764
839
  }));
765
- const __VLS_111 = __VLS_110({
840
+ const __VLS_114 = __VLS_113({
766
841
  ...{ class: "h-full" },
767
- }, ...__VLS_functionalComponentArgsRest(__VLS_110));
842
+ }, ...__VLS_functionalComponentArgsRest(__VLS_113));
768
843
  }
769
844
  }
770
845
  }
@@ -776,6 +851,7 @@ else {
776
851
  /** @type {__VLS_StyleScopedClasses['m-auto']} */ ;
777
852
  /** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
778
853
  /** @type {__VLS_StyleScopedClasses['sc-full']} */ ;
854
+ /** @type {__VLS_StyleScopedClasses['mt-10']} */ ;
779
855
  /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
780
856
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
781
857
  /** @type {__VLS_StyleScopedClasses['flex']} */ ;
@@ -825,10 +901,19 @@ else {
825
901
  /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
826
902
  /** @type {__VLS_StyleScopedClasses['flex']} */ ;
827
903
  /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
904
+ /** @type {__VLS_StyleScopedClasses['ml-3']} */ ;
828
905
  /** @type {__VLS_StyleScopedClasses['text-xl']} */ ;
829
906
  /** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
907
+ /** @type {__VLS_StyleScopedClasses['text-left']} */ ;
830
908
  /** @type {__VLS_StyleScopedClasses['text-chat-haze-900']} */ ;
831
- /** @type {__VLS_StyleScopedClasses['ml-3']} */ ;
909
+ /** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
910
+ /** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
911
+ /** @type {__VLS_StyleScopedClasses['text-chat-haze-900']} */ ;
912
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
913
+ /** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
914
+ /** @type {__VLS_StyleScopedClasses['text-chat-haze-700']} */ ;
915
+ /** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
916
+ /** @type {__VLS_StyleScopedClasses['text-gray-700']} */ ;
832
917
  /** @type {__VLS_StyleScopedClasses['w-10']} */ ;
833
918
  /** @type {__VLS_StyleScopedClasses['h-10']} */ ;
834
919
  /** @type {__VLS_StyleScopedClasses['grow']} */ ;
@@ -874,7 +959,7 @@ else {
874
959
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
875
960
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
876
961
  // @ts-ignore
877
- var __VLS_25 = __VLS_24, __VLS_46 = __VLS_45, __VLS_57 = __VLS_56, __VLS_63 = __VLS_62, __VLS_84 = __VLS_83, __VLS_98 = __VLS_97, __VLS_104 = __VLS_103;
962
+ var __VLS_32 = __VLS_31, __VLS_49 = __VLS_48, __VLS_60 = __VLS_59, __VLS_66 = __VLS_65, __VLS_87 = __VLS_86, __VLS_101 = __VLS_100, __VLS_107 = __VLS_106;
878
963
  const __VLS_export = (await import('vue')).defineComponent({
879
964
  setup: () => (__VLS_exposed),
880
965
  __typeEmits: {},
@@ -104,9 +104,9 @@ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
104
104
  __VLS_asFunctionalElement(__VLS_elements.h2, __VLS_elements.h2)({
105
105
  ...{ class: "text-lg font-semibold text-gray-800" },
106
106
  });
107
- (__VLS_ctx.user?.username ?? 'n/a');
107
+ (__VLS_ctx.user?.username ?? __VLS_ctx.phoneNumberFormat(__VLS_ctx.user?.phone ?? ''));
108
108
  // @ts-ignore
109
- [user,];
109
+ [user, user, phoneNumberFormat,];
110
110
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
111
111
  ...{ class: " mt-5 text-center mx-auto" },
112
112
  ...{ class: ({ 'flex justify-between w-max': __VLS_ctx.responsive == 'tablet', 'grid grid-cols-3 w-full': __VLS_ctx.responsive == 'mobile' }) },