@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.
- package/dist/chat/App.vue.d.ts +2 -2
- package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +2 -2
- package/dist/chat/page/home/ChatList.vue.d.ts +2 -2
- package/dist/chat/page/home/ChatMessage.vue.d.ts +2 -2
- package/dist/chat/page/home/ChatMessageItem.vue.d.ts +2 -2
- package/dist/chat/page/home/Home.vue.d.ts +4 -2
- package/dist/chat/page/home/HomeHeader.vue.d.ts +4 -0
- package/dist/chat/page/home/InputChat.vue.d.ts +3 -1
- package/dist/chat/page/setting/SettingSuccess.vue.d.ts +2 -0
- package/dist/components/chat/call/Calling.vue.d.ts +2 -2
- package/dist/components/chat/common/input/InputSearch.vue.d.ts +2 -2
- package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +1 -0
- package/dist/components/common/drawer/DrawerBaseCustom.vue.d.ts +2 -2
- package/dist/composable/useInitData.d.ts +2 -2
- package/dist/constant/general.d.ts +3 -1
- package/dist/go-chat.es.js +11035 -9866
- package/dist/go-chat.umd.js +13 -13
- package/dist/plugins/pocketbase.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/test/chat/App.vue.js +146 -149
- package/dist/test/chat/page/home/Home.vue.js +39 -23
- package/dist/test/chat/page/home/HomeHeader.vue.js +44 -16
- package/dist/test/chat/page/home/InputChat.vue.js +42 -43
- package/dist/test/chat/page/setting/Setting.vue.js +148 -7
- package/dist/test/chat/page/setting/SettingSuccess.vue.js +33 -0
- package/dist/test/components/chat/common/spin/BaseSpin.vue.js +4 -0
- package/dist/test/components/chat/select/SelectBase.vue.js +1 -2
- package/dist/test/components/common/button/ButtonBase.vue.js +3 -3
- package/dist/test/composable/useInitData.js +4 -1
- package/dist/test/composable/usePlivo.js +3 -2
- package/dist/test/constant/general.js +2 -0
- package/dist/test/plugins/pocketbase.js +16 -0
- package/dist/test/utils/chat/auth.js +2 -1
- package/dist/types/chat/auth.d.ts +1 -0
- package/dist/types/chat/global.d.ts +2 -2
- package/dist/utils/chat/auth.d.ts +2 -0
- 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
|
-
|
|
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
|
|
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
|
|
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(
|
|
263
|
-
let
|
|
264
|
-
let
|
|
265
|
-
const
|
|
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
|
|
303
|
+
const __VLS_22 = ({ endCall: {} },
|
|
278
304
|
{ onEndCall: (__VLS_ctx.handleEndCall) });
|
|
279
305
|
/** @type {typeof __VLS_ctx.callingRef} */ ;
|
|
280
|
-
var
|
|
306
|
+
var __VLS_23 = {};
|
|
281
307
|
// @ts-ignore
|
|
282
308
|
[handleEndCall, callingRef,];
|
|
283
|
-
var
|
|
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
|
|
309
|
-
const
|
|
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
|
|
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
|
|
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(
|
|
336
|
-
let
|
|
337
|
-
let
|
|
338
|
-
const
|
|
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
|
|
372
|
+
var __VLS_36 = {};
|
|
343
373
|
// @ts-ignore
|
|
344
374
|
[currentPage, PAGE, responsiveRender, receiverId, selectReceiver, chatListRef,];
|
|
345
|
-
var
|
|
375
|
+
var __VLS_32;
|
|
346
376
|
/** @type {[typeof HomeComponent, ]} */ ;
|
|
347
377
|
// @ts-ignore
|
|
348
|
-
const
|
|
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
|
|
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(
|
|
364
|
-
let
|
|
365
|
-
let
|
|
366
|
-
const
|
|
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
|
|
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
|
|
420
|
+
var __VLS_47 = {};
|
|
373
421
|
// @ts-ignore
|
|
374
|
-
[currentPage, PAGE,
|
|
375
|
-
var
|
|
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
|
|
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
|
|
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(
|
|
440
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_50));
|
|
393
441
|
/** @type {typeof __VLS_ctx.customerDetailRef} */ ;
|
|
394
|
-
var
|
|
442
|
+
var __VLS_53 = {};
|
|
395
443
|
// @ts-ignore
|
|
396
444
|
[responsiveRender, receiverId, customerDetailRef,];
|
|
397
|
-
var
|
|
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
|
|
452
|
+
const __VLS_56 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
|
|
405
453
|
...{ class: "w-full h-full" },
|
|
406
454
|
}));
|
|
407
|
-
const
|
|
455
|
+
const __VLS_57 = __VLS_56({
|
|
408
456
|
...{ class: "w-full h-full" },
|
|
409
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
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
|
|
464
|
+
const __VLS_60 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
|
|
417
465
|
...{ class: "w-full h-full" },
|
|
418
466
|
}));
|
|
419
|
-
const
|
|
467
|
+
const __VLS_61 = __VLS_60({
|
|
420
468
|
...{ class: "w-full h-full" },
|
|
421
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
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
|
|
476
|
+
const __VLS_64 = __VLS_asFunctionalComponent(MobileFooter, new MobileFooter({
|
|
429
477
|
...{ class: "shrink-0" },
|
|
430
478
|
}));
|
|
431
|
-
const
|
|
479
|
+
const __VLS_65 = __VLS_64({
|
|
432
480
|
...{ class: "shrink-0" },
|
|
433
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
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
|
|
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
|
|
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(
|
|
456
|
-
let
|
|
457
|
-
let
|
|
458
|
-
const
|
|
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
|
|
509
|
+
var __VLS_74 = {};
|
|
462
510
|
// @ts-ignore
|
|
463
511
|
[responsiveRender, receiverId, selectReceiver, chatListRef,];
|
|
464
|
-
var
|
|
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
|
|
493
|
-
const
|
|
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
|
|
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
|
|
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(
|
|
522
|
-
let
|
|
523
|
-
let
|
|
524
|
-
const
|
|
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
|
|
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
|
|
582
|
+
var __VLS_88 = {};
|
|
531
583
|
// @ts-ignore
|
|
532
584
|
[currentPage, PAGE, responsiveRender, receiverId, receiverId, handleCall, handleReadMessage, homeComponentRef,];
|
|
533
|
-
var
|
|
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
|
|
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
|
|
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(
|
|
602
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_91));
|
|
551
603
|
/** @type {typeof __VLS_ctx.customerDetailRef} */ ;
|
|
552
|
-
var
|
|
604
|
+
var __VLS_94 = {};
|
|
553
605
|
// @ts-ignore
|
|
554
606
|
[responsiveRender, receiverId, customerDetailRef,];
|
|
555
|
-
var
|
|
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
|
|
614
|
+
const __VLS_97 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
|
|
563
615
|
...{ class: "h-full" },
|
|
564
616
|
}));
|
|
565
|
-
const
|
|
617
|
+
const __VLS_98 = __VLS_97({
|
|
566
618
|
...{ class: "h-full" },
|
|
567
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
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
|
|
626
|
+
const __VLS_101 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
|
|
575
627
|
...{ class: "h-full" },
|
|
576
628
|
}));
|
|
577
|
-
const
|
|
629
|
+
const __VLS_102 = __VLS_101({
|
|
578
630
|
...{ class: "h-full" },
|
|
579
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
631
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_101));
|
|
580
632
|
}
|
|
581
633
|
/** @type {[typeof Calling, ]} */ ;
|
|
582
634
|
// @ts-ignore
|
|
583
|
-
const
|
|
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
|
|
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(
|
|
595
|
-
let
|
|
596
|
-
let
|
|
597
|
-
const
|
|
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
|
|
665
|
+
const __VLS_111 = ({ endCall: {} },
|
|
610
666
|
{ onEndCall: (__VLS_ctx.handleEndCall) });
|
|
611
667
|
/** @type {typeof __VLS_ctx.callingRef} */ ;
|
|
612
|
-
var
|
|
668
|
+
var __VLS_112 = {};
|
|
613
669
|
// @ts-ignore
|
|
614
670
|
[handleEndCall, callingRef,];
|
|
615
|
-
var
|
|
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
|
|
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: {},
|