@phonghq/go-chat 1.0.41 → 1.0.42

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.
@@ -163,9 +163,10 @@ const getResponsiveObserverDebounce = useDebounce(() => {
163
163
  }, 50);
164
164
  const handleInitPage = async () => {
165
165
  await initPage({ props: props, response: responsiveRender.value });
166
+ routerPush(PAGE.NOT_TENANT_PHONE);
166
167
  if (!dataProfile.value?.tenant_phone && dataProfile.value?.user_type == 'tenant') {
167
168
  emit('error:noPhoneTenant');
168
- routerPush(PAGE.TENANT_ERROR);
169
+ routerPush(PAGE.NOT_TENANT_PHONE);
169
170
  // if (dataProfile.value?.has_business_tenant_phone) {
170
171
  // routerPush(PAGE.REGISTER_SUCCESS)
171
172
  // } else {
@@ -283,8 +284,12 @@ else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR) {
283
284
  [currentPage, PAGE,];
284
285
  /** @type {[typeof Error, ]} */ ;
285
286
  // @ts-ignore
286
- const __VLS_4 = __VLS_asFunctionalComponent(Error, new Error({}));
287
- const __VLS_5 = __VLS_4({}, ...__VLS_functionalComponentArgsRest(__VLS_4));
287
+ const __VLS_4 = __VLS_asFunctionalComponent(Error, new Error({
288
+ ...{ class: "mt-10" },
289
+ }));
290
+ const __VLS_5 = __VLS_4({
291
+ ...{ class: "mt-10" },
292
+ }, ...__VLS_functionalComponentArgsRest(__VLS_4));
288
293
  }
289
294
  else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT) {
290
295
  // @ts-ignore
@@ -302,6 +307,31 @@ else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS) {
302
307
  const __VLS_12 = __VLS_asFunctionalComponent(SettingSuccess, new SettingSuccess({}));
303
308
  const __VLS_13 = __VLS_12({}, ...__VLS_functionalComponentArgsRest(__VLS_12));
304
309
  }
310
+ if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE) {
311
+ // @ts-ignore
312
+ [currentPage, PAGE,];
313
+ /** @type {[typeof NotTenantPhone, ]} */ ;
314
+ // @ts-ignore
315
+ const __VLS_16 = __VLS_asFunctionalComponent(NotTenantPhone, new NotTenantPhone({
316
+ ...{ 'onTryAgain': {} },
317
+ isLib: (props.isLib),
318
+ }));
319
+ const __VLS_17 = __VLS_16({
320
+ ...{ 'onTryAgain': {} },
321
+ isLib: (props.isLib),
322
+ }, ...__VLS_functionalComponentArgsRest(__VLS_16));
323
+ let __VLS_19;
324
+ let __VLS_20;
325
+ const __VLS_21 = ({ tryAgain: {} },
326
+ { onTryAgain: (...[$event]) => {
327
+ if (!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
328
+ return;
329
+ __VLS_ctx.handleInitPage();
330
+ // @ts-ignore
331
+ [handleInitPage,];
332
+ } });
333
+ var __VLS_18;
334
+ }
305
335
  else {
306
336
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
307
337
  ...{ class: "w-full h-full flex flex-col overflow-hidden relative" },
@@ -334,13 +364,7 @@ else {
334
364
  else {
335
365
  __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
336
366
  ...{ onClick: (...[$event]) => {
337
- if (!!(!__VLS_ctx.isRouterReady))
338
- return;
339
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
340
- return;
341
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
342
- return;
343
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
367
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
344
368
  return;
345
369
  if (!(__VLS_ctx.goChatError))
346
370
  return;
@@ -358,45 +382,39 @@ else {
358
382
  }
359
383
  /** @type {[typeof Calling, ]} */ ;
360
384
  // @ts-ignore
361
- const __VLS_16 = __VLS_asFunctionalComponent(Calling, new Calling({
385
+ const __VLS_23 = __VLS_asFunctionalComponent(Calling, new Calling({
362
386
  ...{ 'onUserCalling': {} },
363
387
  ...{ 'onEndCall': {} },
364
388
  ...{ 'onError:mediaPermissionFail': {} },
365
389
  ref: "callingRef",
366
390
  responsive: (__VLS_ctx.responsiveRender),
367
391
  }));
368
- const __VLS_17 = __VLS_16({
392
+ const __VLS_24 = __VLS_23({
369
393
  ...{ 'onUserCalling': {} },
370
394
  ...{ 'onEndCall': {} },
371
395
  ...{ 'onError:mediaPermissionFail': {} },
372
396
  ref: "callingRef",
373
397
  responsive: (__VLS_ctx.responsiveRender),
374
- }, ...__VLS_functionalComponentArgsRest(__VLS_16));
375
- let __VLS_19;
376
- let __VLS_20;
377
- const __VLS_21 = ({ userCalling: {} },
398
+ }, ...__VLS_functionalComponentArgsRest(__VLS_23));
399
+ let __VLS_26;
400
+ let __VLS_27;
401
+ const __VLS_28 = ({ userCalling: {} },
378
402
  { onUserCalling: (...[$event]) => {
379
- if (!!(!__VLS_ctx.isRouterReady))
380
- return;
381
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
382
- return;
383
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
384
- return;
385
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
403
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
386
404
  return;
387
405
  __VLS_ctx.emit('userCalling', $event);
388
406
  // @ts-ignore
389
407
  [responsiveRender, emit,];
390
408
  } });
391
- const __VLS_22 = ({ endCall: {} },
409
+ const __VLS_29 = ({ endCall: {} },
392
410
  { onEndCall: (__VLS_ctx.handleEndCall) });
393
- const __VLS_23 = ({ 'error:mediaPermissionFail': {} },
411
+ const __VLS_30 = ({ 'error:mediaPermissionFail': {} },
394
412
  { 'onError:mediaPermissionFail': (__VLS_ctx.handleMedialPermissionError) });
395
413
  /** @type {typeof __VLS_ctx.callingRef} */ ;
396
- var __VLS_24 = {};
414
+ var __VLS_31 = {};
397
415
  // @ts-ignore
398
416
  [handleEndCall, handleMedialPermissionError, callingRef,];
399
- var __VLS_18;
417
+ var __VLS_25;
400
418
  if (__VLS_ctx.responsiveRender == 'mobile') {
401
419
  // @ts-ignore
402
420
  [responsiveRender,];
@@ -414,13 +432,7 @@ else {
414
432
  [currentPageConfig, currentPageConfig,];
415
433
  __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
416
434
  ...{ onClick: (...[$event]) => {
417
- if (!!(!__VLS_ctx.isRouterReady))
418
- return;
419
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
420
- return;
421
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
422
- return;
423
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
435
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
424
436
  return;
425
437
  if (!(__VLS_ctx.responsiveRender == 'mobile'))
426
438
  return;
@@ -434,8 +446,8 @@ else {
434
446
  });
435
447
  /** @type {[typeof IconArrowLeft, ]} */ ;
436
448
  // @ts-ignore
437
- const __VLS_27 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
438
- const __VLS_28 = __VLS_27({}, ...__VLS_functionalComponentArgsRest(__VLS_27));
449
+ const __VLS_34 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
450
+ const __VLS_35 = __VLS_34({}, ...__VLS_functionalComponentArgsRest(__VLS_34));
439
451
  __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
440
452
  ...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
441
453
  });
@@ -449,13 +461,7 @@ else {
449
461
  if (props.isLib) {
450
462
  __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
451
463
  ...{ onClick: (...[$event]) => {
452
- if (!!(!__VLS_ctx.isRouterReady))
453
- return;
454
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
455
- return;
456
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
457
- return;
458
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
464
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
459
465
  return;
460
466
  if (!(__VLS_ctx.responsiveRender == 'mobile'))
461
467
  return;
@@ -469,49 +475,41 @@ else {
469
475
  });
470
476
  /** @type {[typeof IconCloseCircle, ]} */ ;
471
477
  // @ts-ignore
472
- const __VLS_31 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
473
- const __VLS_32 = __VLS_31({}, ...__VLS_functionalComponentArgsRest(__VLS_31));
478
+ const __VLS_38 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
479
+ const __VLS_39 = __VLS_38({}, ...__VLS_functionalComponentArgsRest(__VLS_38));
474
480
  }
475
481
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
476
482
  ...{ class: "grow overflow-hidden" },
477
483
  });
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
484
  /** @type {[typeof ChatList, ]} */ ;
487
485
  // @ts-ignore
488
- const __VLS_39 = __VLS_asFunctionalComponent(ChatList, new ChatList({
486
+ const __VLS_42 = __VLS_asFunctionalComponent(ChatList, new ChatList({
489
487
  ...{ 'onSelectReceiver': {} },
490
488
  ref: "chatListRef",
491
489
  ...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
492
490
  responsive: (__VLS_ctx.responsiveRender),
493
491
  receiverId: (__VLS_ctx.receiverId),
494
492
  }));
495
- const __VLS_40 = __VLS_39({
493
+ const __VLS_43 = __VLS_42({
496
494
  ...{ 'onSelectReceiver': {} },
497
495
  ref: "chatListRef",
498
496
  ...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
499
497
  responsive: (__VLS_ctx.responsiveRender),
500
498
  receiverId: (__VLS_ctx.receiverId),
501
- }, ...__VLS_functionalComponentArgsRest(__VLS_39));
502
- let __VLS_42;
503
- let __VLS_43;
504
- const __VLS_44 = ({ selectReceiver: {} },
499
+ }, ...__VLS_functionalComponentArgsRest(__VLS_42));
500
+ let __VLS_45;
501
+ let __VLS_46;
502
+ const __VLS_47 = ({ selectReceiver: {} },
505
503
  { onSelectReceiver: (__VLS_ctx.selectReceiver) });
506
504
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CHAT_LIST) }, null, null);
507
505
  /** @type {typeof __VLS_ctx.chatListRef} */ ;
508
- var __VLS_45 = {};
506
+ var __VLS_48 = {};
509
507
  // @ts-ignore
510
508
  [currentPage, PAGE, responsiveRender, receiverId, selectReceiver, chatListRef,];
511
- var __VLS_41;
509
+ var __VLS_44;
512
510
  /** @type {[typeof HomeComponent, ]} */ ;
513
511
  // @ts-ignore
514
- const __VLS_48 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
512
+ const __VLS_51 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
515
513
  ...{ 'onCall': {} },
516
514
  ...{ 'onBack': {} },
517
515
  ...{ 'onInputFocus': {} },
@@ -520,7 +518,7 @@ else {
520
518
  ...{ class: "h-full pt-4" },
521
519
  responsive: (__VLS_ctx.responsiveRender),
522
520
  }));
523
- const __VLS_49 = __VLS_48({
521
+ const __VLS_52 = __VLS_51({
524
522
  ...{ 'onCall': {} },
525
523
  ...{ 'onBack': {} },
526
524
  ...{ 'onInputFocus': {} },
@@ -528,20 +526,14 @@ else {
528
526
  receiverId: (__VLS_ctx.receiverId),
529
527
  ...{ class: "h-full pt-4" },
530
528
  responsive: (__VLS_ctx.responsiveRender),
531
- }, ...__VLS_functionalComponentArgsRest(__VLS_48));
532
- let __VLS_51;
533
- let __VLS_52;
534
- const __VLS_53 = ({ call: {} },
529
+ }, ...__VLS_functionalComponentArgsRest(__VLS_51));
530
+ let __VLS_54;
531
+ let __VLS_55;
532
+ const __VLS_56 = ({ call: {} },
535
533
  { onCall: (__VLS_ctx.handleCall) });
536
- const __VLS_54 = ({ back: {} },
534
+ const __VLS_57 = ({ back: {} },
537
535
  { onBack: (...[$event]) => {
538
- if (!!(!__VLS_ctx.isRouterReady))
539
- return;
540
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
541
- return;
542
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
543
- return;
544
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
536
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
545
537
  return;
546
538
  if (!(__VLS_ctx.responsiveRender == 'mobile'))
547
539
  return;
@@ -549,72 +541,72 @@ else {
549
541
  // @ts-ignore
550
542
  [responsiveRender, currentPageConfig, receiverId, handleCall,];
551
543
  } });
552
- const __VLS_55 = ({ inputFocus: {} },
544
+ const __VLS_58 = ({ inputFocus: {} },
553
545
  { onInputFocus: (__VLS_ctx.handleReadMessage) });
554
546
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME) }, null, null);
555
547
  /** @type {typeof __VLS_ctx.homeComponentRef} */ ;
556
- var __VLS_56 = {};
548
+ var __VLS_59 = {};
557
549
  // @ts-ignore
558
550
  [currentPage, PAGE, handleReadMessage, homeComponentRef,];
559
- var __VLS_50;
551
+ var __VLS_53;
560
552
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
561
553
  // @ts-ignore
562
554
  [currentPage, PAGE,];
563
555
  /** @type {[typeof CustomerDetail, ]} */ ;
564
556
  // @ts-ignore
565
- const __VLS_59 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
557
+ const __VLS_62 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
566
558
  ref: "customerDetailRef",
567
559
  receiverId: (__VLS_ctx.receiverId),
568
560
  ...{ class: "w-full h-full" },
569
561
  responsive: (__VLS_ctx.responsiveRender),
570
562
  }));
571
- const __VLS_60 = __VLS_59({
563
+ const __VLS_63 = __VLS_62({
572
564
  ref: "customerDetailRef",
573
565
  receiverId: (__VLS_ctx.receiverId),
574
566
  ...{ class: "w-full h-full" },
575
567
  responsive: (__VLS_ctx.responsiveRender),
576
- }, ...__VLS_functionalComponentArgsRest(__VLS_59));
568
+ }, ...__VLS_functionalComponentArgsRest(__VLS_62));
577
569
  /** @type {typeof __VLS_ctx.customerDetailRef} */ ;
578
- var __VLS_62 = {};
570
+ var __VLS_65 = {};
579
571
  // @ts-ignore
580
572
  [responsiveRender, receiverId, customerDetailRef,];
581
- var __VLS_61;
573
+ var __VLS_64;
582
574
  }
583
575
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
584
576
  // @ts-ignore
585
577
  [currentPage, PAGE,];
586
578
  /** @type {[typeof CustomerCheckIn, ]} */ ;
587
579
  // @ts-ignore
588
- const __VLS_65 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
580
+ const __VLS_68 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
589
581
  ...{ class: "w-full h-full" },
590
582
  }));
591
- const __VLS_66 = __VLS_65({
583
+ const __VLS_69 = __VLS_68({
592
584
  ...{ class: "w-full h-full" },
593
- }, ...__VLS_functionalComponentArgsRest(__VLS_65));
585
+ }, ...__VLS_functionalComponentArgsRest(__VLS_68));
594
586
  }
595
587
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
596
588
  // @ts-ignore
597
589
  [currentPage, PAGE,];
598
590
  /** @type {[typeof CustomerAppointment, ]} */ ;
599
591
  // @ts-ignore
600
- const __VLS_69 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
592
+ const __VLS_72 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
601
593
  ...{ class: "w-full h-full" },
602
594
  }));
603
- const __VLS_70 = __VLS_69({
595
+ const __VLS_73 = __VLS_72({
604
596
  ...{ class: "w-full h-full" },
605
- }, ...__VLS_functionalComponentArgsRest(__VLS_69));
597
+ }, ...__VLS_functionalComponentArgsRest(__VLS_72));
606
598
  }
607
599
  if (__VLS_ctx.currentPage != __VLS_ctx.PAGE.HOME) {
608
600
  // @ts-ignore
609
601
  [currentPage, PAGE,];
610
602
  /** @type {[typeof MobileFooter, ]} */ ;
611
603
  // @ts-ignore
612
- const __VLS_73 = __VLS_asFunctionalComponent(MobileFooter, new MobileFooter({
604
+ const __VLS_76 = __VLS_asFunctionalComponent(MobileFooter, new MobileFooter({
613
605
  ...{ class: "shrink-0" },
614
606
  }));
615
- const __VLS_74 = __VLS_73({
607
+ const __VLS_77 = __VLS_76({
616
608
  ...{ class: "shrink-0" },
617
- }, ...__VLS_functionalComponentArgsRest(__VLS_73));
609
+ }, ...__VLS_functionalComponentArgsRest(__VLS_76));
618
610
  }
619
611
  }
620
612
  else {
@@ -623,29 +615,29 @@ else {
623
615
  });
624
616
  /** @type {[typeof ChatList, ]} */ ;
625
617
  // @ts-ignore
626
- const __VLS_77 = __VLS_asFunctionalComponent(ChatList, new ChatList({
618
+ const __VLS_80 = __VLS_asFunctionalComponent(ChatList, new ChatList({
627
619
  ...{ 'onSelectReceiver': {} },
628
620
  ref: "chatListRef",
629
621
  ...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
630
622
  responsive: (__VLS_ctx.responsiveRender),
631
623
  receiverId: (__VLS_ctx.receiverId),
632
624
  }));
633
- const __VLS_78 = __VLS_77({
625
+ const __VLS_81 = __VLS_80({
634
626
  ...{ 'onSelectReceiver': {} },
635
627
  ref: "chatListRef",
636
628
  ...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
637
629
  responsive: (__VLS_ctx.responsiveRender),
638
630
  receiverId: (__VLS_ctx.receiverId),
639
- }, ...__VLS_functionalComponentArgsRest(__VLS_77));
640
- let __VLS_80;
641
- let __VLS_81;
642
- const __VLS_82 = ({ selectReceiver: {} },
631
+ }, ...__VLS_functionalComponentArgsRest(__VLS_80));
632
+ let __VLS_83;
633
+ let __VLS_84;
634
+ const __VLS_85 = ({ selectReceiver: {} },
643
635
  { onSelectReceiver: (__VLS_ctx.selectReceiver) });
644
636
  /** @type {typeof __VLS_ctx.chatListRef} */ ;
645
- var __VLS_83 = {};
637
+ var __VLS_86 = {};
646
638
  // @ts-ignore
647
639
  [responsiveRender, receiverId, selectReceiver, chatListRef,];
648
- var __VLS_79;
640
+ var __VLS_82;
649
641
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
650
642
  ...{ class: "chat-box-white grow flex flex-col h-full pt-6 overflow-hidden" },
651
643
  });
@@ -657,13 +649,7 @@ else {
657
649
  });
658
650
  __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
659
651
  ...{ onClick: (...[$event]) => {
660
- if (!!(!__VLS_ctx.isRouterReady))
661
- return;
662
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
663
- return;
664
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
665
- return;
666
- if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
652
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
667
653
  return;
668
654
  if (!!(__VLS_ctx.responsiveRender == 'mobile'))
669
655
  return;
@@ -677,8 +663,8 @@ else {
677
663
  });
678
664
  /** @type {[typeof IconArrowLeft, ]} */ ;
679
665
  // @ts-ignore
680
- const __VLS_86 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
681
- const __VLS_87 = __VLS_86({}, ...__VLS_functionalComponentArgsRest(__VLS_86));
666
+ const __VLS_89 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
667
+ const __VLS_90 = __VLS_89({}, ...__VLS_functionalComponentArgsRest(__VLS_89));
682
668
  __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
683
669
  ...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
684
670
  });
@@ -691,7 +677,7 @@ else {
691
677
  });
692
678
  /** @type {[typeof HomeComponent, ]} */ ;
693
679
  // @ts-ignore
694
- const __VLS_90 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
680
+ const __VLS_93 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
695
681
  ...{ 'onCall': {} },
696
682
  ...{ 'onInputFocus': {} },
697
683
  ref: "homeComponentRef",
@@ -699,72 +685,72 @@ else {
699
685
  ...{ class: "h-full" },
700
686
  responsive: (__VLS_ctx.responsiveRender),
701
687
  }));
702
- const __VLS_91 = __VLS_90({
688
+ const __VLS_94 = __VLS_93({
703
689
  ...{ 'onCall': {} },
704
690
  ...{ 'onInputFocus': {} },
705
691
  ref: "homeComponentRef",
706
692
  receiverId: (__VLS_ctx.receiverId),
707
693
  ...{ class: "h-full" },
708
694
  responsive: (__VLS_ctx.responsiveRender),
709
- }, ...__VLS_functionalComponentArgsRest(__VLS_90));
710
- let __VLS_93;
711
- let __VLS_94;
712
- const __VLS_95 = ({ call: {} },
695
+ }, ...__VLS_functionalComponentArgsRest(__VLS_93));
696
+ let __VLS_96;
697
+ let __VLS_97;
698
+ const __VLS_98 = ({ call: {} },
713
699
  { onCall: (__VLS_ctx.handleCall) });
714
- const __VLS_96 = ({ inputFocus: {} },
700
+ const __VLS_99 = ({ inputFocus: {} },
715
701
  { onInputFocus: (__VLS_ctx.handleReadMessage) });
716
702
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME && __VLS_ctx.receiverId) }, null, null);
717
703
  /** @type {typeof __VLS_ctx.homeComponentRef} */ ;
718
- var __VLS_97 = {};
704
+ var __VLS_100 = {};
719
705
  // @ts-ignore
720
706
  [currentPage, PAGE, responsiveRender, receiverId, receiverId, handleCall, handleReadMessage, homeComponentRef,];
721
- var __VLS_92;
707
+ var __VLS_95;
722
708
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
723
709
  // @ts-ignore
724
710
  [currentPage, PAGE,];
725
711
  /** @type {[typeof CustomerDetail, ]} */ ;
726
712
  // @ts-ignore
727
- const __VLS_100 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
713
+ const __VLS_103 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
728
714
  ref: "customerDetailRef",
729
715
  receiverId: (__VLS_ctx.receiverId),
730
716
  ...{ class: "h-full" },
731
717
  responsive: (__VLS_ctx.responsiveRender),
732
718
  }));
733
- const __VLS_101 = __VLS_100({
719
+ const __VLS_104 = __VLS_103({
734
720
  ref: "customerDetailRef",
735
721
  receiverId: (__VLS_ctx.receiverId),
736
722
  ...{ class: "h-full" },
737
723
  responsive: (__VLS_ctx.responsiveRender),
738
- }, ...__VLS_functionalComponentArgsRest(__VLS_100));
724
+ }, ...__VLS_functionalComponentArgsRest(__VLS_103));
739
725
  /** @type {typeof __VLS_ctx.customerDetailRef} */ ;
740
- var __VLS_103 = {};
726
+ var __VLS_106 = {};
741
727
  // @ts-ignore
742
728
  [responsiveRender, receiverId, customerDetailRef,];
743
- var __VLS_102;
729
+ var __VLS_105;
744
730
  }
745
731
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
746
732
  // @ts-ignore
747
733
  [currentPage, PAGE,];
748
734
  /** @type {[typeof CustomerCheckIn, ]} */ ;
749
735
  // @ts-ignore
750
- const __VLS_106 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
736
+ const __VLS_109 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
751
737
  ...{ class: "h-full" },
752
738
  }));
753
- const __VLS_107 = __VLS_106({
739
+ const __VLS_110 = __VLS_109({
754
740
  ...{ class: "h-full" },
755
- }, ...__VLS_functionalComponentArgsRest(__VLS_106));
741
+ }, ...__VLS_functionalComponentArgsRest(__VLS_109));
756
742
  }
757
743
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
758
744
  // @ts-ignore
759
745
  [currentPage, PAGE,];
760
746
  /** @type {[typeof CustomerAppointment, ]} */ ;
761
747
  // @ts-ignore
762
- const __VLS_110 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
748
+ const __VLS_113 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
763
749
  ...{ class: "h-full" },
764
750
  }));
765
- const __VLS_111 = __VLS_110({
751
+ const __VLS_114 = __VLS_113({
766
752
  ...{ class: "h-full" },
767
- }, ...__VLS_functionalComponentArgsRest(__VLS_110));
753
+ }, ...__VLS_functionalComponentArgsRest(__VLS_113));
768
754
  }
769
755
  }
770
756
  }
@@ -776,6 +762,7 @@ else {
776
762
  /** @type {__VLS_StyleScopedClasses['m-auto']} */ ;
777
763
  /** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
778
764
  /** @type {__VLS_StyleScopedClasses['sc-full']} */ ;
765
+ /** @type {__VLS_StyleScopedClasses['mt-10']} */ ;
779
766
  /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
780
767
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
781
768
  /** @type {__VLS_StyleScopedClasses['flex']} */ ;
@@ -874,7 +861,7 @@ else {
874
861
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
875
862
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
876
863
  // @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;
864
+ 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
865
  const __VLS_export = (await import('vue')).defineComponent({
879
866
  setup: () => (__VLS_exposed),
880
867
  __typeEmits: {},
@@ -8,4 +8,5 @@ export var PAGE;
8
8
  PAGE["CHAT_LIST"] = "chat_list";
9
9
  PAGE["REGISTER_TENANT"] = "register_tenant";
10
10
  PAGE["REGISTER_SUCCESS"] = "register_success";
11
+ PAGE["NOT_TENANT_PHONE"] = "not_tenant_phone";
11
12
  })(PAGE || (PAGE = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phonghq/go-chat",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist"