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