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