@phonghq/go-chat 1.0.23 → 1.0.24

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 (40) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/icons/IconSetting.vue.d.ts +2 -0
  3. package/dist/chat/App.vue.d.ts +2 -0
  4. package/dist/chat/page/home/ChatList.vue.d.ts +1 -1
  5. package/dist/chat/page/home/ChatMessageItem.vue.d.ts +11 -0
  6. package/dist/chat/page/home/Home.vue.d.ts +3 -0
  7. package/dist/components/chat/call/Calling.vue.d.ts +2 -0
  8. package/dist/components/chat/common/switch/SwitchBase.vue.d.ts +14 -0
  9. package/dist/components/chat/common/tab/TabBase.vue.d.ts +30 -0
  10. package/dist/composable/useListConversations.d.ts +46 -0
  11. package/dist/constant/color.d.ts +2 -2
  12. package/dist/go-chat.es.js +28481 -28313
  13. package/dist/go-chat.umd.js +13 -13
  14. package/dist/style.css +1 -1
  15. package/dist/test/assets/icons/IconSetting.vue.js +33 -0
  16. package/dist/test/chat/App.vue.js +102 -77
  17. package/dist/test/chat/page/home/ChatList.vue.js +226 -124
  18. package/dist/test/chat/page/home/ChatMessage.vue.js +19 -164
  19. package/dist/test/chat/page/home/ChatMessageItem.vue.js +321 -0
  20. package/dist/test/chat/page/home/Home.vue.js +14 -8
  21. package/dist/test/chat/page/home/HomeHeader.vue.js +18 -12
  22. package/dist/test/chat/page/home/InputChat.vue.js +62 -33
  23. package/dist/test/components/chat/call/Calling.vue.js +19 -22
  24. package/dist/test/components/chat/common/switch/SwitchBase.vue.js +70 -0
  25. package/dist/test/components/chat/common/tab/TabBase.vue.js +85 -0
  26. package/dist/test/components/chat/select/SelectBase.vue.js +15 -17
  27. package/dist/test/composable/useInitData.js +7 -4
  28. package/dist/test/composable/useListConversations.js +122 -0
  29. package/dist/test/composable/usePlivo.js +9 -3
  30. package/dist/test/constant/color.js +4 -2
  31. package/dist/test/types/chat/call.js +2 -1
  32. package/dist/test/utils/chat/auth.js +14 -0
  33. package/dist/test/utils/chat/phone-string.js +1 -1
  34. package/dist/types/chat/auth.d.ts +2 -0
  35. package/dist/types/chat/call.d.ts +1 -0
  36. package/dist/types/conversation.d.ts +1 -0
  37. package/dist/types/message.d.ts +5 -0
  38. package/dist/utils/chat/auth.d.ts +5 -0
  39. package/dist/utils/chat/phone-string.d.ts +1 -1
  40. package/package.json +1 -1
@@ -12,7 +12,7 @@ import Error from '../chat/page/error/Error.vue';
12
12
  import { currentPage, routerPush } from '../utils/chat/chat-router';
13
13
  import BaseSpin from '../components/chat/common/spin/BaseSpin.vue';
14
14
  import Calling from '../components/chat/call/Calling.vue';
15
- import { logout } from '../utils/chat/auth';
15
+ import { dataProfile, logout } from '../utils/chat/auth';
16
16
  import MobileFooter from '../components/chat/layout/mobile/Footer.vue';
17
17
  import '../style/index.scss';
18
18
  import { useDebounce } from '../utils/debounce';
@@ -100,7 +100,7 @@ const currentPageConfig = computed(() => {
100
100
  const responsiveRender = computed(() => {
101
101
  return props.response == 'mobile' ? props.response : responsiveObserver.value;
102
102
  });
103
- const list = computed(() => chatListRef.value?.listConversations ?? []);
103
+ const list = computed(() => chatListRef.value?.listConversationsAll ?? []);
104
104
  const unreadCount = computed(() => list.value?.reduce((total, cur) => total + (cur?.unread_count ?? 0), 0) ?? 0);
105
105
  const callStatus = computed(() => callingRef.value?.callStatus ?? null);
106
106
  const responsiveObserver = ref('tablet');
@@ -111,6 +111,7 @@ const customerDetailRef = ref(null);
111
111
  const homeComponentRef = ref(null);
112
112
  const chatListRef = ref(null);
113
113
  const selectReceiver = async (data) => {
114
+ console.log(data, 'datadata');
114
115
  if (receiverId.value != data?.receiver_id || responsiveRender.value === 'mobile') {
115
116
  if (currentPage.value != PAGE.HOME) {
116
117
  routerPush(PAGE.HOME);
@@ -144,7 +145,20 @@ const getResponsiveObserver = useDebounce(() => {
144
145
  }
145
146
  }
146
147
  }, 50);
147
- initPage({ props: props, response: props.response });
148
+ const handleInitPage = async () => {
149
+ await initPage({ props: props, response: props.response });
150
+ if (!dataProfile.value?.phone) {
151
+ emit('error:noPhoneTenant');
152
+ }
153
+ };
154
+ const handleEndCall = (data) => {
155
+ setTimeout(() => {
156
+ if (data?.id && data?.id == receiverId.value) {
157
+ homeComponentRef.value?.handleGetMessage({ resetList: true });
158
+ }
159
+ }, 3000);
160
+ };
161
+ handleInitPage();
148
162
  let __VLS_exposed;
149
163
  defineExpose({
150
164
  get unreadCount() {
@@ -216,11 +230,13 @@ else if (__VLS_ctx.responsiveRender == 'mobile') {
216
230
  // @ts-ignore
217
231
  const __VLS_8 = __VLS_asFunctionalComponent(Calling, new Calling({
218
232
  ...{ 'onUserCalling': {} },
233
+ ...{ 'onEndCall': {} },
219
234
  ref: "callingRef",
220
235
  responsive: (__VLS_ctx.responsiveRender),
221
236
  }));
222
237
  const __VLS_9 = __VLS_8({
223
238
  ...{ 'onUserCalling': {} },
239
+ ...{ 'onEndCall': {} },
224
240
  ref: "callingRef",
225
241
  responsive: (__VLS_ctx.responsiveRender),
226
242
  }, ...__VLS_functionalComponentArgsRest(__VLS_8));
@@ -238,10 +254,12 @@ else if (__VLS_ctx.responsiveRender == 'mobile') {
238
254
  // @ts-ignore
239
255
  [responsiveRender, emit,];
240
256
  } });
257
+ const __VLS_14 = ({ endCall: {} },
258
+ { onEndCall: (__VLS_ctx.handleEndCall) });
241
259
  /** @type {typeof __VLS_ctx.callingRef} */ ;
242
- var __VLS_14 = {};
260
+ var __VLS_15 = {};
243
261
  // @ts-ignore
244
- [callingRef,];
262
+ [handleEndCall, callingRef,];
245
263
  var __VLS_10;
246
264
  if (__VLS_ctx.currentPageConfig?.backFunc) {
247
265
  // @ts-ignore
@@ -267,8 +285,8 @@ else if (__VLS_ctx.responsiveRender == 'mobile') {
267
285
  });
268
286
  /** @type {[typeof IconArrowLeft, ]} */ ;
269
287
  // @ts-ignore
270
- const __VLS_17 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
271
- const __VLS_18 = __VLS_17({}, ...__VLS_functionalComponentArgsRest(__VLS_17));
288
+ const __VLS_18 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
289
+ const __VLS_19 = __VLS_18({}, ...__VLS_functionalComponentArgsRest(__VLS_18));
272
290
  __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
273
291
  ...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
274
292
  });
@@ -281,114 +299,114 @@ else if (__VLS_ctx.responsiveRender == 'mobile') {
281
299
  });
282
300
  /** @type {[typeof ChatList, ]} */ ;
283
301
  // @ts-ignore
284
- const __VLS_21 = __VLS_asFunctionalComponent(ChatList, new ChatList({
302
+ const __VLS_22 = __VLS_asFunctionalComponent(ChatList, new ChatList({
285
303
  ...{ 'onSelectReceiver': {} },
286
304
  ref: "chatListRef",
287
305
  ...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
288
306
  responsive: (__VLS_ctx.responsiveRender),
289
307
  receiverId: (__VLS_ctx.receiverId),
290
308
  }));
291
- const __VLS_22 = __VLS_21({
309
+ const __VLS_23 = __VLS_22({
292
310
  ...{ 'onSelectReceiver': {} },
293
311
  ref: "chatListRef",
294
312
  ...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
295
313
  responsive: (__VLS_ctx.responsiveRender),
296
314
  receiverId: (__VLS_ctx.receiverId),
297
- }, ...__VLS_functionalComponentArgsRest(__VLS_21));
298
- let __VLS_24;
315
+ }, ...__VLS_functionalComponentArgsRest(__VLS_22));
299
316
  let __VLS_25;
300
- const __VLS_26 = ({ selectReceiver: {} },
317
+ let __VLS_26;
318
+ const __VLS_27 = ({ selectReceiver: {} },
301
319
  { onSelectReceiver: (__VLS_ctx.selectReceiver) });
302
320
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CHAT_LIST) }, null, null);
303
321
  /** @type {typeof __VLS_ctx.chatListRef} */ ;
304
- var __VLS_27 = {};
322
+ var __VLS_28 = {};
305
323
  // @ts-ignore
306
324
  [currentPage, PAGE, responsiveRender, receiverId, selectReceiver, chatListRef,];
307
- var __VLS_23;
325
+ var __VLS_24;
308
326
  /** @type {[typeof HomeComponent, ]} */ ;
309
327
  // @ts-ignore
310
- const __VLS_30 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
328
+ const __VLS_31 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
311
329
  ...{ 'onCall': {} },
312
330
  ref: "homeComponentRef",
313
331
  receiverId: (__VLS_ctx.receiverId),
314
332
  ...{ class: "h-full pt-4" },
315
333
  responsive: (__VLS_ctx.responsiveRender),
316
334
  }));
317
- const __VLS_31 = __VLS_30({
335
+ const __VLS_32 = __VLS_31({
318
336
  ...{ 'onCall': {} },
319
337
  ref: "homeComponentRef",
320
338
  receiverId: (__VLS_ctx.receiverId),
321
339
  ...{ class: "h-full pt-4" },
322
340
  responsive: (__VLS_ctx.responsiveRender),
323
- }, ...__VLS_functionalComponentArgsRest(__VLS_30));
324
- let __VLS_33;
341
+ }, ...__VLS_functionalComponentArgsRest(__VLS_31));
325
342
  let __VLS_34;
326
- const __VLS_35 = ({ call: {} },
343
+ let __VLS_35;
344
+ const __VLS_36 = ({ call: {} },
327
345
  { onCall: (__VLS_ctx.handleCall) });
328
346
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME) }, null, null);
329
347
  /** @type {typeof __VLS_ctx.homeComponentRef} */ ;
330
- var __VLS_36 = {};
348
+ var __VLS_37 = {};
331
349
  // @ts-ignore
332
350
  [currentPage, PAGE, responsiveRender, receiverId, handleCall, homeComponentRef,];
333
- var __VLS_32;
351
+ var __VLS_33;
334
352
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
335
353
  // @ts-ignore
336
354
  [currentPage, PAGE,];
337
355
  /** @type {[typeof CustomerDetail, ]} */ ;
338
356
  // @ts-ignore
339
- const __VLS_39 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
357
+ const __VLS_40 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
340
358
  ref: "customerDetailRef",
341
359
  receiverId: (__VLS_ctx.receiverId),
342
- ...{ class: "h-full" },
360
+ ...{ class: "w-full h-full" },
343
361
  responsive: (__VLS_ctx.responsiveRender),
344
362
  }));
345
- const __VLS_40 = __VLS_39({
363
+ const __VLS_41 = __VLS_40({
346
364
  ref: "customerDetailRef",
347
365
  receiverId: (__VLS_ctx.receiverId),
348
- ...{ class: "h-full" },
366
+ ...{ class: "w-full h-full" },
349
367
  responsive: (__VLS_ctx.responsiveRender),
350
- }, ...__VLS_functionalComponentArgsRest(__VLS_39));
368
+ }, ...__VLS_functionalComponentArgsRest(__VLS_40));
351
369
  /** @type {typeof __VLS_ctx.customerDetailRef} */ ;
352
- var __VLS_42 = {};
370
+ var __VLS_43 = {};
353
371
  // @ts-ignore
354
372
  [responsiveRender, receiverId, customerDetailRef,];
355
- var __VLS_41;
373
+ var __VLS_42;
356
374
  }
357
375
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
358
376
  // @ts-ignore
359
377
  [currentPage, PAGE,];
360
378
  /** @type {[typeof CustomerCheckIn, ]} */ ;
361
379
  // @ts-ignore
362
- const __VLS_45 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
363
- ...{ class: "h-full" },
380
+ const __VLS_46 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
381
+ ...{ class: "w-full h-full" },
364
382
  }));
365
- const __VLS_46 = __VLS_45({
366
- ...{ class: "h-full" },
367
- }, ...__VLS_functionalComponentArgsRest(__VLS_45));
383
+ const __VLS_47 = __VLS_46({
384
+ ...{ class: "w-full h-full" },
385
+ }, ...__VLS_functionalComponentArgsRest(__VLS_46));
368
386
  }
369
387
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
370
388
  // @ts-ignore
371
389
  [currentPage, PAGE,];
372
390
  /** @type {[typeof CustomerAppointment, ]} */ ;
373
391
  // @ts-ignore
374
- const __VLS_49 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
375
- ...{ class: "h-full" },
392
+ const __VLS_50 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
393
+ ...{ class: "w-full h-full" },
376
394
  }));
377
- const __VLS_50 = __VLS_49({
378
- ...{ class: "h-full" },
379
- }, ...__VLS_functionalComponentArgsRest(__VLS_49));
395
+ const __VLS_51 = __VLS_50({
396
+ ...{ class: "w-full h-full" },
397
+ }, ...__VLS_functionalComponentArgsRest(__VLS_50));
380
398
  }
381
399
  if (__VLS_ctx.currentPage != __VLS_ctx.PAGE.HOME) {
382
400
  // @ts-ignore
383
401
  [currentPage, PAGE,];
384
402
  /** @type {[typeof MobileFooter, ]} */ ;
385
403
  // @ts-ignore
386
- const __VLS_53 = __VLS_asFunctionalComponent(MobileFooter, new MobileFooter({
404
+ const __VLS_54 = __VLS_asFunctionalComponent(MobileFooter, new MobileFooter({
387
405
  ...{ class: "shrink-0" },
388
406
  }));
389
- const __VLS_54 = __VLS_53({
407
+ const __VLS_55 = __VLS_54({
390
408
  ...{ class: "shrink-0" },
391
- }, ...__VLS_functionalComponentArgsRest(__VLS_53));
409
+ }, ...__VLS_functionalComponentArgsRest(__VLS_54));
392
410
  }
393
411
  }
394
412
  else {
@@ -397,29 +415,29 @@ else {
397
415
  });
398
416
  /** @type {[typeof ChatList, ]} */ ;
399
417
  // @ts-ignore
400
- const __VLS_57 = __VLS_asFunctionalComponent(ChatList, new ChatList({
418
+ const __VLS_58 = __VLS_asFunctionalComponent(ChatList, new ChatList({
401
419
  ...{ 'onSelectReceiver': {} },
402
420
  ref: "chatListRef",
403
421
  ...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
404
422
  responsive: (__VLS_ctx.responsiveRender),
405
423
  receiverId: (__VLS_ctx.receiverId),
406
424
  }));
407
- const __VLS_58 = __VLS_57({
425
+ const __VLS_59 = __VLS_58({
408
426
  ...{ 'onSelectReceiver': {} },
409
427
  ref: "chatListRef",
410
428
  ...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
411
429
  responsive: (__VLS_ctx.responsiveRender),
412
430
  receiverId: (__VLS_ctx.receiverId),
413
- }, ...__VLS_functionalComponentArgsRest(__VLS_57));
414
- let __VLS_60;
431
+ }, ...__VLS_functionalComponentArgsRest(__VLS_58));
415
432
  let __VLS_61;
416
- const __VLS_62 = ({ selectReceiver: {} },
433
+ let __VLS_62;
434
+ const __VLS_63 = ({ selectReceiver: {} },
417
435
  { onSelectReceiver: (__VLS_ctx.selectReceiver) });
418
436
  /** @type {typeof __VLS_ctx.chatListRef} */ ;
419
- var __VLS_63 = {};
437
+ var __VLS_64 = {};
420
438
  // @ts-ignore
421
439
  [responsiveRender, receiverId, selectReceiver, chatListRef,];
422
- var __VLS_59;
440
+ var __VLS_60;
423
441
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
424
442
  ...{ class: "chat-box-white grow flex flex-col h-full pt-6 overflow-hidden" },
425
443
  });
@@ -447,8 +465,8 @@ else {
447
465
  });
448
466
  /** @type {[typeof IconArrowLeft, ]} */ ;
449
467
  // @ts-ignore
450
- const __VLS_66 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
451
- const __VLS_67 = __VLS_66({}, ...__VLS_functionalComponentArgsRest(__VLS_66));
468
+ const __VLS_67 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
469
+ const __VLS_68 = __VLS_67({}, ...__VLS_functionalComponentArgsRest(__VLS_67));
452
470
  __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
453
471
  ...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
454
472
  });
@@ -461,92 +479,94 @@ else {
461
479
  });
462
480
  /** @type {[typeof HomeComponent, ]} */ ;
463
481
  // @ts-ignore
464
- const __VLS_70 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
482
+ const __VLS_71 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
465
483
  ...{ 'onCall': {} },
466
484
  ref: "homeComponentRef",
467
485
  receiverId: (__VLS_ctx.receiverId),
468
486
  ...{ class: "h-full" },
469
487
  responsive: (__VLS_ctx.responsiveRender),
470
488
  }));
471
- const __VLS_71 = __VLS_70({
489
+ const __VLS_72 = __VLS_71({
472
490
  ...{ 'onCall': {} },
473
491
  ref: "homeComponentRef",
474
492
  receiverId: (__VLS_ctx.receiverId),
475
493
  ...{ class: "h-full" },
476
494
  responsive: (__VLS_ctx.responsiveRender),
477
- }, ...__VLS_functionalComponentArgsRest(__VLS_70));
478
- let __VLS_73;
495
+ }, ...__VLS_functionalComponentArgsRest(__VLS_71));
479
496
  let __VLS_74;
480
- const __VLS_75 = ({ call: {} },
497
+ let __VLS_75;
498
+ const __VLS_76 = ({ call: {} },
481
499
  { onCall: (__VLS_ctx.handleCall) });
482
500
  __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME) }, null, null);
483
501
  /** @type {typeof __VLS_ctx.homeComponentRef} */ ;
484
- var __VLS_76 = {};
502
+ var __VLS_77 = {};
485
503
  // @ts-ignore
486
504
  [currentPage, PAGE, responsiveRender, receiverId, handleCall, homeComponentRef,];
487
- var __VLS_72;
505
+ var __VLS_73;
488
506
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
489
507
  // @ts-ignore
490
508
  [currentPage, PAGE,];
491
509
  /** @type {[typeof CustomerDetail, ]} */ ;
492
510
  // @ts-ignore
493
- const __VLS_79 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
511
+ const __VLS_80 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
494
512
  ref: "customerDetailRef",
495
513
  receiverId: (__VLS_ctx.receiverId),
496
514
  ...{ class: "h-full" },
497
515
  responsive: (__VLS_ctx.responsiveRender),
498
516
  }));
499
- const __VLS_80 = __VLS_79({
517
+ const __VLS_81 = __VLS_80({
500
518
  ref: "customerDetailRef",
501
519
  receiverId: (__VLS_ctx.receiverId),
502
520
  ...{ class: "h-full" },
503
521
  responsive: (__VLS_ctx.responsiveRender),
504
- }, ...__VLS_functionalComponentArgsRest(__VLS_79));
522
+ }, ...__VLS_functionalComponentArgsRest(__VLS_80));
505
523
  /** @type {typeof __VLS_ctx.customerDetailRef} */ ;
506
- var __VLS_82 = {};
524
+ var __VLS_83 = {};
507
525
  // @ts-ignore
508
526
  [responsiveRender, receiverId, customerDetailRef,];
509
- var __VLS_81;
527
+ var __VLS_82;
510
528
  }
511
529
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
512
530
  // @ts-ignore
513
531
  [currentPage, PAGE,];
514
532
  /** @type {[typeof CustomerCheckIn, ]} */ ;
515
533
  // @ts-ignore
516
- const __VLS_85 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
534
+ const __VLS_86 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
517
535
  ...{ class: "h-full" },
518
536
  }));
519
- const __VLS_86 = __VLS_85({
537
+ const __VLS_87 = __VLS_86({
520
538
  ...{ class: "h-full" },
521
- }, ...__VLS_functionalComponentArgsRest(__VLS_85));
539
+ }, ...__VLS_functionalComponentArgsRest(__VLS_86));
522
540
  }
523
541
  if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
524
542
  // @ts-ignore
525
543
  [currentPage, PAGE,];
526
544
  /** @type {[typeof CustomerAppointment, ]} */ ;
527
545
  // @ts-ignore
528
- const __VLS_89 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
546
+ const __VLS_90 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
529
547
  ...{ class: "h-full" },
530
548
  }));
531
- const __VLS_90 = __VLS_89({
549
+ const __VLS_91 = __VLS_90({
532
550
  ...{ class: "h-full" },
533
- }, ...__VLS_functionalComponentArgsRest(__VLS_89));
551
+ }, ...__VLS_functionalComponentArgsRest(__VLS_90));
534
552
  }
535
553
  /** @type {[typeof Calling, ]} */ ;
536
554
  // @ts-ignore
537
- const __VLS_93 = __VLS_asFunctionalComponent(Calling, new Calling({
555
+ const __VLS_94 = __VLS_asFunctionalComponent(Calling, new Calling({
538
556
  ...{ 'onUserCalling': {} },
557
+ ...{ 'onEndCall': {} },
539
558
  ref: "callingRef",
540
559
  responsive: (__VLS_ctx.responsiveRender),
541
560
  }));
542
- const __VLS_94 = __VLS_93({
561
+ const __VLS_95 = __VLS_94({
543
562
  ...{ 'onUserCalling': {} },
563
+ ...{ 'onEndCall': {} },
544
564
  ref: "callingRef",
545
565
  responsive: (__VLS_ctx.responsiveRender),
546
- }, ...__VLS_functionalComponentArgsRest(__VLS_93));
547
- let __VLS_96;
566
+ }, ...__VLS_functionalComponentArgsRest(__VLS_94));
548
567
  let __VLS_97;
549
- const __VLS_98 = ({ userCalling: {} },
568
+ let __VLS_98;
569
+ const __VLS_99 = ({ userCalling: {} },
550
570
  { onUserCalling: (...[$event]) => {
551
571
  if (!!(!__VLS_ctx.isRouterReady))
552
572
  return;
@@ -558,11 +578,13 @@ else {
558
578
  // @ts-ignore
559
579
  [responsiveRender, emit,];
560
580
  } });
581
+ const __VLS_100 = ({ endCall: {} },
582
+ { onEndCall: (__VLS_ctx.handleEndCall) });
561
583
  /** @type {typeof __VLS_ctx.callingRef} */ ;
562
- var __VLS_99 = {};
584
+ var __VLS_101 = {};
563
585
  // @ts-ignore
564
- [callingRef,];
565
- var __VLS_95;
586
+ [handleEndCall, callingRef,];
587
+ var __VLS_96;
566
588
  }
567
589
  /** @type {__VLS_StyleScopedClasses['go-chat-main']} */ ;
568
590
  /** @type {__VLS_StyleScopedClasses['max-w-full']} */ ;
@@ -597,8 +619,11 @@ else {
597
619
  /** @type {__VLS_StyleScopedClasses['!bg-[#F9FAFC]']} */ ;
598
620
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
599
621
  /** @type {__VLS_StyleScopedClasses['pt-4']} */ ;
622
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
600
623
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
624
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
601
625
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
626
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
602
627
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
603
628
  /** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
604
629
  /** @type {__VLS_StyleScopedClasses['flex']} */ ;
@@ -630,7 +655,7 @@ else {
630
655
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
631
656
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
632
657
  // @ts-ignore
633
- var __VLS_15 = __VLS_14, __VLS_28 = __VLS_27, __VLS_37 = __VLS_36, __VLS_43 = __VLS_42, __VLS_64 = __VLS_63, __VLS_77 = __VLS_76, __VLS_83 = __VLS_82, __VLS_100 = __VLS_99;
658
+ var __VLS_16 = __VLS_15, __VLS_29 = __VLS_28, __VLS_38 = __VLS_37, __VLS_44 = __VLS_43, __VLS_65 = __VLS_64, __VLS_78 = __VLS_77, __VLS_84 = __VLS_83, __VLS_102 = __VLS_101;
634
659
  const __VLS_export = (await import('vue')).defineComponent({
635
660
  setup: () => (__VLS_exposed),
636
661
  __typeEmits: {},