@phonghq/go-chat 1.0.30 → 1.0.31

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.
@@ -18,9 +18,8 @@ import '../style/index.scss';
18
18
  import { useDebounce } from '../utils/debounce';
19
19
  import { defineRootColor } from '../constant/color';
20
20
  import { publicTopicConversationUpdate } from '../utils/chat/conversation';
21
- import DrawerBaseCustom from '../components/common/drawer/DrawerBaseCustom.vue';
22
- import IconCloseCircle from '../assets/icons/IconCloseCircle.vue';
23
21
  import Setting from '../chat/page/setting/Setting.vue';
22
+ import SettingSuccess from '../chat/page/setting/SettingSuccess.vue';
24
23
  const routerConfig = [
25
24
  { id: PAGE.HOME, backFunc: null, backTitle: '' },
26
25
  {
@@ -68,21 +67,21 @@ const routerMobileConfig = computed(() => [
68
67
  backFunc: () => {
69
68
  routerPush(PAGE.HOME);
70
69
  },
71
- backTitle: '',
70
+ backTitle: ''
72
71
  },
73
72
  {
74
73
  id: PAGE.CUSTOMER_APPOINTMENT,
75
74
  backFunc: () => {
76
75
  routerPush(PAGE.CUSTOMER_DETAIL);
77
76
  },
78
- backTitle: 'Appointments',
77
+ backTitle: 'Appointments'
79
78
  },
80
79
  {
81
80
  id: PAGE.CUSTOMER_CHECK_IN,
82
81
  backFunc: () => {
83
82
  routerPush(PAGE.CUSTOMER_DETAIL);
84
83
  },
85
- backTitle: 'Checkins',
84
+ backTitle: 'Checkins'
86
85
  }
87
86
  ]);
88
87
  const props = withDefaults(defineProps(), {
@@ -159,7 +158,13 @@ const getResponsiveObserverDebounce = useDebounce(() => {
159
158
  const handleInitPage = async () => {
160
159
  await initPage({ props: props, response: responsiveRender.value });
161
160
  if (!dataProfile.value?.tenant_phone && dataProfile.value?.user_type == 'tenant') {
162
- emit('error:noPhoneTenant');
161
+ if (dataProfile.value?.has_business_tenant_phone) {
162
+ routerPush(PAGE.REGISTER_SUCCESS);
163
+ }
164
+ else {
165
+ // emit('error:noPhoneTenant')
166
+ routerPush(PAGE.REGISTER_TENANT);
167
+ }
163
168
  }
164
169
  };
165
170
  const handleEndCall = (data, type) => {
@@ -241,6 +246,22 @@ else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR) {
241
246
  const __VLS_4 = __VLS_asFunctionalComponent(Error, new Error({}));
242
247
  const __VLS_5 = __VLS_4({}, ...__VLS_functionalComponentArgsRest(__VLS_4));
243
248
  }
249
+ else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT) {
250
+ // @ts-ignore
251
+ [currentPage, PAGE,];
252
+ /** @type {[typeof Setting, ]} */ ;
253
+ // @ts-ignore
254
+ const __VLS_8 = __VLS_asFunctionalComponent(Setting, new Setting({}));
255
+ const __VLS_9 = __VLS_8({}, ...__VLS_functionalComponentArgsRest(__VLS_8));
256
+ }
257
+ else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS) {
258
+ // @ts-ignore
259
+ [currentPage, PAGE,];
260
+ /** @type {[typeof SettingSuccess, ]} */ ;
261
+ // @ts-ignore
262
+ const __VLS_12 = __VLS_asFunctionalComponent(SettingSuccess, new SettingSuccess({}));
263
+ const __VLS_13 = __VLS_12({}, ...__VLS_functionalComponentArgsRest(__VLS_12));
264
+ }
244
265
  else if (__VLS_ctx.responsiveRender == 'mobile') {
245
266
  // @ts-ignore
246
267
  [responsiveRender,];
@@ -249,39 +270,43 @@ else if (__VLS_ctx.responsiveRender == 'mobile') {
249
270
  });
250
271
  /** @type {[typeof Calling, ]} */ ;
251
272
  // @ts-ignore
252
- const __VLS_8 = __VLS_asFunctionalComponent(Calling, new Calling({
273
+ const __VLS_16 = __VLS_asFunctionalComponent(Calling, new Calling({
253
274
  ...{ 'onUserCalling': {} },
254
275
  ...{ 'onEndCall': {} },
255
276
  ref: "callingRef",
256
277
  responsive: (__VLS_ctx.responsiveRender),
257
278
  }));
258
- const __VLS_9 = __VLS_8({
279
+ const __VLS_17 = __VLS_16({
259
280
  ...{ 'onUserCalling': {} },
260
281
  ...{ 'onEndCall': {} },
261
282
  ref: "callingRef",
262
283
  responsive: (__VLS_ctx.responsiveRender),
263
- }, ...__VLS_functionalComponentArgsRest(__VLS_8));
264
- let __VLS_11;
265
- let __VLS_12;
266
- const __VLS_13 = ({ userCalling: {} },
284
+ }, ...__VLS_functionalComponentArgsRest(__VLS_16));
285
+ let __VLS_19;
286
+ let __VLS_20;
287
+ const __VLS_21 = ({ userCalling: {} },
267
288
  { onUserCalling: (...[$event]) => {
268
289
  if (!!(!__VLS_ctx.isRouterReady))
269
290
  return;
270
291
  if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
271
292
  return;
293
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
294
+ return;
295
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
296
+ return;
272
297
  if (!(__VLS_ctx.responsiveRender == 'mobile'))
273
298
  return;
274
299
  __VLS_ctx.emit('userCalling', $event);
275
300
  // @ts-ignore
276
301
  [responsiveRender, emit,];
277
302
  } });
278
- const __VLS_14 = ({ endCall: {} },
303
+ const __VLS_22 = ({ endCall: {} },
279
304
  { onEndCall: (__VLS_ctx.handleEndCall) });
280
305
  /** @type {typeof __VLS_ctx.callingRef} */ ;
281
- var __VLS_15 = {};
306
+ var __VLS_23 = {};
282
307
  // @ts-ignore
283
308
  [handleEndCall, callingRef,];
284
- var __VLS_10;
309
+ var __VLS_18;
285
310
  if (__VLS_ctx.currentPageConfig?.backFunc && !__VLS_ctx.currentPageConfig.isHidden) {
286
311
  // @ts-ignore
287
312
  [currentPageConfig, currentPageConfig,];
@@ -294,6 +319,10 @@ else if (__VLS_ctx.responsiveRender == 'mobile') {
294
319
  return;
295
320
  if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
296
321
  return;
322
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
323
+ return;
324
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
325
+ return;
297
326
  if (!(__VLS_ctx.responsiveRender == 'mobile'))
298
327
  return;
299
328
  if (!(__VLS_ctx.currentPageConfig?.backFunc && !__VLS_ctx.currentPageConfig.isHidden))
@@ -306,8 +335,8 @@ else if (__VLS_ctx.responsiveRender == 'mobile') {
306
335
  });
307
336
  /** @type {[typeof IconArrowLeft, ]} */ ;
308
337
  // @ts-ignore
309
- const __VLS_18 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
310
- const __VLS_19 = __VLS_18({}, ...__VLS_functionalComponentArgsRest(__VLS_18));
338
+ const __VLS_26 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
339
+ const __VLS_27 = __VLS_26({}, ...__VLS_functionalComponentArgsRest(__VLS_26));
311
340
  __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
312
341
  ...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
313
342
  });
@@ -320,33 +349,33 @@ else if (__VLS_ctx.responsiveRender == 'mobile') {
320
349
  });
321
350
  /** @type {[typeof ChatList, ]} */ ;
322
351
  // @ts-ignore
323
- const __VLS_22 = __VLS_asFunctionalComponent(ChatList, new ChatList({
352
+ const __VLS_30 = __VLS_asFunctionalComponent(ChatList, new ChatList({
324
353
  ...{ 'onSelectReceiver': {} },
325
354
  ref: "chatListRef",
326
355
  ...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
327
356
  responsive: (__VLS_ctx.responsiveRender),
328
357
  receiverId: (__VLS_ctx.receiverId),
329
358
  }));
330
- const __VLS_23 = __VLS_22({
359
+ const __VLS_31 = __VLS_30({
331
360
  ...{ 'onSelectReceiver': {} },
332
361
  ref: "chatListRef",
333
362
  ...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
334
363
  responsive: (__VLS_ctx.responsiveRender),
335
364
  receiverId: (__VLS_ctx.receiverId),
336
- }, ...__VLS_functionalComponentArgsRest(__VLS_22));
337
- let __VLS_25;
338
- let __VLS_26;
339
- const __VLS_27 = ({ selectReceiver: {} },
365
+ }, ...__VLS_functionalComponentArgsRest(__VLS_30));
366
+ let __VLS_33;
367
+ let __VLS_34;
368
+ const __VLS_35 = ({ selectReceiver: {} },
340
369
  { onSelectReceiver: (__VLS_ctx.selectReceiver) });
341
370
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CHAT_LIST) }, null, null);
342
371
  /** @type {typeof __VLS_ctx.chatListRef} */ ;
343
- var __VLS_28 = {};
372
+ var __VLS_36 = {};
344
373
  // @ts-ignore
345
374
  [currentPage, PAGE, responsiveRender, receiverId, selectReceiver, chatListRef,];
346
- var __VLS_24;
375
+ var __VLS_32;
347
376
  /** @type {[typeof HomeComponent, ]} */ ;
348
377
  // @ts-ignore
349
- const __VLS_31 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
378
+ const __VLS_39 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
350
379
  ...{ 'onCall': {} },
351
380
  ...{ 'onBack': {} },
352
381
  ...{ 'onInputFocus': {} },
@@ -355,7 +384,7 @@ else if (__VLS_ctx.responsiveRender == 'mobile') {
355
384
  ...{ class: "h-full pt-4" },
356
385
  responsive: (__VLS_ctx.responsiveRender),
357
386
  }));
358
- const __VLS_32 = __VLS_31({
387
+ const __VLS_40 = __VLS_39({
359
388
  ...{ 'onCall': {} },
360
389
  ...{ 'onBack': {} },
361
390
  ...{ 'onInputFocus': {} },
@@ -363,89 +392,93 @@ else if (__VLS_ctx.responsiveRender == 'mobile') {
363
392
  receiverId: (__VLS_ctx.receiverId),
364
393
  ...{ class: "h-full pt-4" },
365
394
  responsive: (__VLS_ctx.responsiveRender),
366
- }, ...__VLS_functionalComponentArgsRest(__VLS_31));
367
- let __VLS_34;
368
- let __VLS_35;
369
- const __VLS_36 = ({ call: {} },
395
+ }, ...__VLS_functionalComponentArgsRest(__VLS_39));
396
+ let __VLS_42;
397
+ let __VLS_43;
398
+ const __VLS_44 = ({ call: {} },
370
399
  { onCall: (__VLS_ctx.handleCall) });
371
- const __VLS_37 = ({ back: {} },
400
+ const __VLS_45 = ({ back: {} },
372
401
  { onBack: (...[$event]) => {
373
402
  if (!!(!__VLS_ctx.isRouterReady))
374
403
  return;
375
404
  if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
376
405
  return;
406
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
407
+ return;
408
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
409
+ return;
377
410
  if (!(__VLS_ctx.responsiveRender == 'mobile'))
378
411
  return;
379
412
  __VLS_ctx.currentPageConfig.backFunc?.();
380
413
  // @ts-ignore
381
414
  [responsiveRender, currentPageConfig, receiverId, handleCall,];
382
415
  } });
383
- const __VLS_38 = ({ inputFocus: {} },
416
+ const __VLS_46 = ({ inputFocus: {} },
384
417
  { onInputFocus: (__VLS_ctx.handleReadMessage) });
385
418
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME) }, null, null);
386
419
  /** @type {typeof __VLS_ctx.homeComponentRef} */ ;
387
- var __VLS_39 = {};
420
+ var __VLS_47 = {};
388
421
  // @ts-ignore
389
422
  [currentPage, PAGE, handleReadMessage, homeComponentRef,];
390
- var __VLS_33;
423
+ var __VLS_41;
391
424
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
392
425
  // @ts-ignore
393
426
  [currentPage, PAGE,];
394
427
  /** @type {[typeof CustomerDetail, ]} */ ;
395
428
  // @ts-ignore
396
- const __VLS_42 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
429
+ const __VLS_50 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
397
430
  ref: "customerDetailRef",
398
431
  receiverId: (__VLS_ctx.receiverId),
399
432
  ...{ class: "w-full h-full" },
400
433
  responsive: (__VLS_ctx.responsiveRender),
401
434
  }));
402
- const __VLS_43 = __VLS_42({
435
+ const __VLS_51 = __VLS_50({
403
436
  ref: "customerDetailRef",
404
437
  receiverId: (__VLS_ctx.receiverId),
405
438
  ...{ class: "w-full h-full" },
406
439
  responsive: (__VLS_ctx.responsiveRender),
407
- }, ...__VLS_functionalComponentArgsRest(__VLS_42));
440
+ }, ...__VLS_functionalComponentArgsRest(__VLS_50));
408
441
  /** @type {typeof __VLS_ctx.customerDetailRef} */ ;
409
- var __VLS_45 = {};
442
+ var __VLS_53 = {};
410
443
  // @ts-ignore
411
444
  [responsiveRender, receiverId, customerDetailRef,];
412
- var __VLS_44;
445
+ var __VLS_52;
413
446
  }
414
447
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
415
448
  // @ts-ignore
416
449
  [currentPage, PAGE,];
417
450
  /** @type {[typeof CustomerCheckIn, ]} */ ;
418
451
  // @ts-ignore
419
- const __VLS_48 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
452
+ const __VLS_56 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
420
453
  ...{ class: "w-full h-full" },
421
454
  }));
422
- const __VLS_49 = __VLS_48({
455
+ const __VLS_57 = __VLS_56({
423
456
  ...{ class: "w-full h-full" },
424
- }, ...__VLS_functionalComponentArgsRest(__VLS_48));
457
+ }, ...__VLS_functionalComponentArgsRest(__VLS_56));
425
458
  }
426
459
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
427
460
  // @ts-ignore
428
461
  [currentPage, PAGE,];
429
462
  /** @type {[typeof CustomerAppointment, ]} */ ;
430
463
  // @ts-ignore
431
- const __VLS_52 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
464
+ const __VLS_60 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
432
465
  ...{ class: "w-full h-full" },
433
466
  }));
434
- const __VLS_53 = __VLS_52({
467
+ const __VLS_61 = __VLS_60({
435
468
  ...{ class: "w-full h-full" },
436
- }, ...__VLS_functionalComponentArgsRest(__VLS_52));
469
+ }, ...__VLS_functionalComponentArgsRest(__VLS_60));
437
470
  }
438
471
  if (__VLS_ctx.currentPage != __VLS_ctx.PAGE.HOME) {
439
472
  // @ts-ignore
440
473
  [currentPage, PAGE,];
441
474
  /** @type {[typeof MobileFooter, ]} */ ;
442
475
  // @ts-ignore
443
- const __VLS_56 = __VLS_asFunctionalComponent(MobileFooter, new MobileFooter({
476
+ const __VLS_64 = __VLS_asFunctionalComponent(MobileFooter, new MobileFooter({
444
477
  ...{ class: "shrink-0" },
445
478
  }));
446
- const __VLS_57 = __VLS_56({
479
+ const __VLS_65 = __VLS_64({
447
480
  ...{ class: "shrink-0" },
448
- }, ...__VLS_functionalComponentArgsRest(__VLS_56));
481
+ }, ...__VLS_functionalComponentArgsRest(__VLS_64));
449
482
  }
450
483
  }
451
484
  else {
@@ -454,29 +487,29 @@ else {
454
487
  });
455
488
  /** @type {[typeof ChatList, ]} */ ;
456
489
  // @ts-ignore
457
- const __VLS_60 = __VLS_asFunctionalComponent(ChatList, new ChatList({
490
+ const __VLS_68 = __VLS_asFunctionalComponent(ChatList, new ChatList({
458
491
  ...{ 'onSelectReceiver': {} },
459
492
  ref: "chatListRef",
460
493
  ...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
461
494
  responsive: (__VLS_ctx.responsiveRender),
462
495
  receiverId: (__VLS_ctx.receiverId),
463
496
  }));
464
- const __VLS_61 = __VLS_60({
497
+ const __VLS_69 = __VLS_68({
465
498
  ...{ 'onSelectReceiver': {} },
466
499
  ref: "chatListRef",
467
500
  ...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
468
501
  responsive: (__VLS_ctx.responsiveRender),
469
502
  receiverId: (__VLS_ctx.receiverId),
470
- }, ...__VLS_functionalComponentArgsRest(__VLS_60));
471
- let __VLS_63;
472
- let __VLS_64;
473
- const __VLS_65 = ({ selectReceiver: {} },
503
+ }, ...__VLS_functionalComponentArgsRest(__VLS_68));
504
+ let __VLS_71;
505
+ let __VLS_72;
506
+ const __VLS_73 = ({ selectReceiver: {} },
474
507
  { onSelectReceiver: (__VLS_ctx.selectReceiver) });
475
508
  /** @type {typeof __VLS_ctx.chatListRef} */ ;
476
- var __VLS_66 = {};
509
+ var __VLS_74 = {};
477
510
  // @ts-ignore
478
511
  [responsiveRender, receiverId, selectReceiver, chatListRef,];
479
- var __VLS_62;
512
+ var __VLS_70;
480
513
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
481
514
  ...{ class: "chat-box-white grow flex flex-col h-full pt-6 overflow-hidden" },
482
515
  });
@@ -492,6 +525,10 @@ else {
492
525
  return;
493
526
  if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
494
527
  return;
528
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
529
+ return;
530
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
531
+ return;
495
532
  if (!!(__VLS_ctx.responsiveRender == 'mobile'))
496
533
  return;
497
534
  if (!(__VLS_ctx.currentPageConfig?.backFunc))
@@ -504,8 +541,8 @@ else {
504
541
  });
505
542
  /** @type {[typeof IconArrowLeft, ]} */ ;
506
543
  // @ts-ignore
507
- const __VLS_69 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
508
- const __VLS_70 = __VLS_69({}, ...__VLS_functionalComponentArgsRest(__VLS_69));
544
+ const __VLS_77 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
545
+ const __VLS_78 = __VLS_77({}, ...__VLS_functionalComponentArgsRest(__VLS_77));
509
546
  __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
510
547
  ...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
511
548
  });
@@ -518,7 +555,7 @@ else {
518
555
  });
519
556
  /** @type {[typeof HomeComponent, ]} */ ;
520
557
  // @ts-ignore
521
- const __VLS_73 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
558
+ const __VLS_81 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
522
559
  ...{ 'onCall': {} },
523
560
  ...{ 'onInputFocus': {} },
524
561
  ref: "homeComponentRef",
@@ -526,152 +563,112 @@ else {
526
563
  ...{ class: "h-full" },
527
564
  responsive: (__VLS_ctx.responsiveRender),
528
565
  }));
529
- const __VLS_74 = __VLS_73({
566
+ const __VLS_82 = __VLS_81({
530
567
  ...{ 'onCall': {} },
531
568
  ...{ 'onInputFocus': {} },
532
569
  ref: "homeComponentRef",
533
570
  receiverId: (__VLS_ctx.receiverId),
534
571
  ...{ class: "h-full" },
535
572
  responsive: (__VLS_ctx.responsiveRender),
536
- }, ...__VLS_functionalComponentArgsRest(__VLS_73));
537
- let __VLS_76;
538
- let __VLS_77;
539
- const __VLS_78 = ({ call: {} },
573
+ }, ...__VLS_functionalComponentArgsRest(__VLS_81));
574
+ let __VLS_84;
575
+ let __VLS_85;
576
+ const __VLS_86 = ({ call: {} },
540
577
  { onCall: (__VLS_ctx.handleCall) });
541
- const __VLS_79 = ({ inputFocus: {} },
578
+ const __VLS_87 = ({ inputFocus: {} },
542
579
  { onInputFocus: (__VLS_ctx.handleReadMessage) });
543
580
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME && __VLS_ctx.receiverId) }, null, null);
544
581
  /** @type {typeof __VLS_ctx.homeComponentRef} */ ;
545
- var __VLS_80 = {};
582
+ var __VLS_88 = {};
546
583
  // @ts-ignore
547
584
  [currentPage, PAGE, responsiveRender, receiverId, receiverId, handleCall, handleReadMessage, homeComponentRef,];
548
- var __VLS_75;
585
+ var __VLS_83;
549
586
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
550
587
  // @ts-ignore
551
588
  [currentPage, PAGE,];
552
589
  /** @type {[typeof CustomerDetail, ]} */ ;
553
590
  // @ts-ignore
554
- const __VLS_83 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
591
+ const __VLS_91 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
555
592
  ref: "customerDetailRef",
556
593
  receiverId: (__VLS_ctx.receiverId),
557
594
  ...{ class: "h-full" },
558
595
  responsive: (__VLS_ctx.responsiveRender),
559
596
  }));
560
- const __VLS_84 = __VLS_83({
597
+ const __VLS_92 = __VLS_91({
561
598
  ref: "customerDetailRef",
562
599
  receiverId: (__VLS_ctx.receiverId),
563
600
  ...{ class: "h-full" },
564
601
  responsive: (__VLS_ctx.responsiveRender),
565
- }, ...__VLS_functionalComponentArgsRest(__VLS_83));
602
+ }, ...__VLS_functionalComponentArgsRest(__VLS_91));
566
603
  /** @type {typeof __VLS_ctx.customerDetailRef} */ ;
567
- var __VLS_86 = {};
604
+ var __VLS_94 = {};
568
605
  // @ts-ignore
569
606
  [responsiveRender, receiverId, customerDetailRef,];
570
- var __VLS_85;
607
+ var __VLS_93;
571
608
  }
572
609
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
573
610
  // @ts-ignore
574
611
  [currentPage, PAGE,];
575
612
  /** @type {[typeof CustomerCheckIn, ]} */ ;
576
613
  // @ts-ignore
577
- const __VLS_89 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
614
+ const __VLS_97 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
578
615
  ...{ class: "h-full" },
579
616
  }));
580
- const __VLS_90 = __VLS_89({
617
+ const __VLS_98 = __VLS_97({
581
618
  ...{ class: "h-full" },
582
- }, ...__VLS_functionalComponentArgsRest(__VLS_89));
619
+ }, ...__VLS_functionalComponentArgsRest(__VLS_97));
583
620
  }
584
621
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
585
622
  // @ts-ignore
586
623
  [currentPage, PAGE,];
587
624
  /** @type {[typeof CustomerAppointment, ]} */ ;
588
625
  // @ts-ignore
589
- const __VLS_93 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
626
+ const __VLS_101 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
590
627
  ...{ class: "h-full" },
591
628
  }));
592
- const __VLS_94 = __VLS_93({
629
+ const __VLS_102 = __VLS_101({
593
630
  ...{ class: "h-full" },
594
- }, ...__VLS_functionalComponentArgsRest(__VLS_93));
631
+ }, ...__VLS_functionalComponentArgsRest(__VLS_101));
595
632
  }
596
633
  /** @type {[typeof Calling, ]} */ ;
597
634
  // @ts-ignore
598
- const __VLS_97 = __VLS_asFunctionalComponent(Calling, new Calling({
635
+ const __VLS_105 = __VLS_asFunctionalComponent(Calling, new Calling({
599
636
  ...{ 'onUserCalling': {} },
600
637
  ...{ 'onEndCall': {} },
601
638
  ref: "callingRef",
602
639
  responsive: (__VLS_ctx.responsiveRender),
603
640
  }));
604
- const __VLS_98 = __VLS_97({
641
+ const __VLS_106 = __VLS_105({
605
642
  ...{ 'onUserCalling': {} },
606
643
  ...{ 'onEndCall': {} },
607
644
  ref: "callingRef",
608
645
  responsive: (__VLS_ctx.responsiveRender),
609
- }, ...__VLS_functionalComponentArgsRest(__VLS_97));
610
- let __VLS_100;
611
- let __VLS_101;
612
- const __VLS_102 = ({ userCalling: {} },
646
+ }, ...__VLS_functionalComponentArgsRest(__VLS_105));
647
+ let __VLS_108;
648
+ let __VLS_109;
649
+ const __VLS_110 = ({ userCalling: {} },
613
650
  { onUserCalling: (...[$event]) => {
614
651
  if (!!(!__VLS_ctx.isRouterReady))
615
652
  return;
616
653
  if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
617
654
  return;
655
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
656
+ return;
657
+ if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
658
+ return;
618
659
  if (!!(__VLS_ctx.responsiveRender == 'mobile'))
619
660
  return;
620
661
  __VLS_ctx.emit('userCalling', $event);
621
662
  // @ts-ignore
622
663
  [responsiveRender, emit,];
623
664
  } });
624
- const __VLS_103 = ({ endCall: {} },
665
+ const __VLS_111 = ({ endCall: {} },
625
666
  { onEndCall: (__VLS_ctx.handleEndCall) });
626
667
  /** @type {typeof __VLS_ctx.callingRef} */ ;
627
- var __VLS_104 = {};
668
+ var __VLS_112 = {};
628
669
  // @ts-ignore
629
670
  [handleEndCall, callingRef,];
630
- var __VLS_99;
631
- /** @type {[typeof DrawerBaseCustom, typeof DrawerBaseCustom, ]} */ ;
632
- // @ts-ignore
633
- const __VLS_107 = __VLS_asFunctionalComponent(DrawerBaseCustom, new DrawerBaseCustom({
634
- ref: "drawerVisibleRef",
635
- width: (500),
636
- responsive: (__VLS_ctx.responsiveRender),
637
- }));
638
- const __VLS_108 = __VLS_107({
639
- ref: "drawerVisibleRef",
640
- width: (500),
641
- responsive: (__VLS_ctx.responsiveRender),
642
- }, ...__VLS_functionalComponentArgsRest(__VLS_107));
643
- /** @type {typeof __VLS_ctx.drawerVisibleRef} */ ;
644
- var __VLS_110 = {};
645
- const { default: __VLS_112 } = __VLS_109.slots;
646
- // @ts-ignore
647
- [responsiveRender, drawerVisibleRef,];
648
- {
649
- const { content: __VLS_113 } = __VLS_109.slots;
650
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
651
- ...{ class: "flex flex-col" },
652
- });
653
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
654
- ...{ class: "flex justify-between items-center h-[64px] w-full bg-chat-haze-200 px-6" },
655
- });
656
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
657
- ...{ class: "font-semibold text-2xl" },
658
- });
659
- __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
660
- ...{ class: "w-10 h-10" },
661
- });
662
- /** @type {[typeof IconCloseCircle, ]} */ ;
663
- // @ts-ignore
664
- const __VLS_114 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
665
- const __VLS_115 = __VLS_114({}, ...__VLS_functionalComponentArgsRest(__VLS_114));
666
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
667
- ...{ class: "px-4 py-6" },
668
- });
669
- /** @type {[typeof Setting, ]} */ ;
670
- // @ts-ignore
671
- const __VLS_118 = __VLS_asFunctionalComponent(Setting, new Setting({}));
672
- const __VLS_119 = __VLS_118({}, ...__VLS_functionalComponentArgsRest(__VLS_118));
673
- }
674
- var __VLS_109;
671
+ var __VLS_107;
675
672
  }
676
673
  /** @type {__VLS_StyleScopedClasses['go-chat-main']} */ ;
677
674
  /** @type {__VLS_StyleScopedClasses['max-w-full']} */ ;
@@ -742,23 +739,8 @@ else {
742
739
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
743
740
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
744
741
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
745
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
746
- /** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
747
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
748
- /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
749
- /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
750
- /** @type {__VLS_StyleScopedClasses['h-[64px]']} */ ;
751
- /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
752
- /** @type {__VLS_StyleScopedClasses['bg-chat-haze-200']} */ ;
753
- /** @type {__VLS_StyleScopedClasses['px-6']} */ ;
754
- /** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
755
- /** @type {__VLS_StyleScopedClasses['text-2xl']} */ ;
756
- /** @type {__VLS_StyleScopedClasses['w-10']} */ ;
757
- /** @type {__VLS_StyleScopedClasses['h-10']} */ ;
758
- /** @type {__VLS_StyleScopedClasses['px-4']} */ ;
759
- /** @type {__VLS_StyleScopedClasses['py-6']} */ ;
760
742
  // @ts-ignore
761
- var __VLS_16 = __VLS_15, __VLS_29 = __VLS_28, __VLS_40 = __VLS_39, __VLS_46 = __VLS_45, __VLS_67 = __VLS_66, __VLS_81 = __VLS_80, __VLS_87 = __VLS_86, __VLS_105 = __VLS_104, __VLS_111 = __VLS_110;
743
+ var __VLS_24 = __VLS_23, __VLS_37 = __VLS_36, __VLS_48 = __VLS_47, __VLS_54 = __VLS_53, __VLS_75 = __VLS_74, __VLS_89 = __VLS_88, __VLS_95 = __VLS_94, __VLS_113 = __VLS_112;
762
744
  const __VLS_export = (await import('vue')).defineComponent({
763
745
  setup: () => (__VLS_exposed),
764
746
  __typeEmits: {},