@phonghq/go-chat 1.0.33 → 1.0.35
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 -0
- package/dist/components/chat/call/Calling.vue.d.ts +2 -0
- package/dist/go-chat.es.js +7589 -7520
- package/dist/go-chat.umd.js +12 -12
- package/dist/style.css +1 -1
- package/dist/test/chat/App.vue.js +409 -335
- package/dist/test/chat/page/home/ChatList.vue.js +5 -3
- package/dist/test/chat/page/home/Home.vue.js +2 -0
- package/dist/test/chat/page/home/HomeHeader.vue.js +18 -12
- package/dist/test/chat/page/home/InputChat.vue.js +15 -9
- package/dist/test/chat/page/setting/Setting.vue.js +0 -1
- package/dist/test/components/chat/call/Calling.vue.js +5 -1
- package/dist/test/composable/usePlivo.js +7 -1
- package/dist/test/types/chat/call.js +2 -1
- package/dist/test/utils/chat/auth.js +2 -3
- package/dist/types/chat/call.d.ts +1 -0
- package/package.json +1 -1
|
@@ -18,6 +18,7 @@ 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 IconCloseCircle from '../assets/icons/IconCloseCircle.vue';
|
|
21
22
|
import Setting from '../chat/page/setting/Setting.vue';
|
|
22
23
|
import SettingSuccess from '../chat/page/setting/SettingSuccess.vue';
|
|
23
24
|
const routerConfig = [
|
|
@@ -120,6 +121,8 @@ const customerDetailRef = ref(null);
|
|
|
120
121
|
const homeComponentRef = ref(null);
|
|
121
122
|
const chatListRef = ref(null);
|
|
122
123
|
const drawerVisibleRef = ref(null);
|
|
124
|
+
const mediaPermissionError = ref('');
|
|
125
|
+
const mediaPermissionState = ref('granted');
|
|
123
126
|
const selectReceiver = async (data) => {
|
|
124
127
|
if (receiverId.value != data?.receiver_id || responsiveRender.value === 'mobile') {
|
|
125
128
|
if (currentPage.value != PAGE.HOME) {
|
|
@@ -184,6 +187,34 @@ const openSettings = () => {
|
|
|
184
187
|
const handleReadMessage = () => {
|
|
185
188
|
chatListRef.value?.handleReadMessage();
|
|
186
189
|
};
|
|
190
|
+
const handleMedialPermissionError = async () => {
|
|
191
|
+
if (navigator.permissions && navigator.permissions.query) {
|
|
192
|
+
try {
|
|
193
|
+
const result = await navigator.permissions.query({ name: 'microphone' });
|
|
194
|
+
if (result.state == 'prompt') {
|
|
195
|
+
mediaPermissionError.value =
|
|
196
|
+
'Microphone access is needed. Please allow microphone permission to continue.';
|
|
197
|
+
}
|
|
198
|
+
else if (result.state == 'denied') {
|
|
199
|
+
mediaPermissionError.value =
|
|
200
|
+
'You have denied microphone access. Please enable microphone permission in your browser to continue the call.';
|
|
201
|
+
}
|
|
202
|
+
mediaPermissionState.value = result.state;
|
|
203
|
+
}
|
|
204
|
+
catch (err) {
|
|
205
|
+
console.log(err);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
const askMedialPermission = async () => {
|
|
210
|
+
try {
|
|
211
|
+
await navigator.mediaDevices.getUserMedia({ audio: true });
|
|
212
|
+
window.location.reload();
|
|
213
|
+
}
|
|
214
|
+
catch (e) {
|
|
215
|
+
console.log(e);
|
|
216
|
+
}
|
|
217
|
+
};
|
|
187
218
|
let __VLS_exposed;
|
|
188
219
|
defineExpose({
|
|
189
220
|
get unreadCount() {
|
|
@@ -262,23 +293,44 @@ else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS) {
|
|
|
262
293
|
const __VLS_12 = __VLS_asFunctionalComponent(SettingSuccess, new SettingSuccess({}));
|
|
263
294
|
const __VLS_13 = __VLS_12({}, ...__VLS_functionalComponentArgsRest(__VLS_12));
|
|
264
295
|
}
|
|
265
|
-
else
|
|
266
|
-
// @ts-ignore
|
|
267
|
-
[responsiveRender,];
|
|
296
|
+
else {
|
|
268
297
|
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
269
|
-
...{ class: "
|
|
298
|
+
...{ class: "w-full h-full overflow-hidden relative" },
|
|
270
299
|
});
|
|
300
|
+
if (__VLS_ctx.mediaPermissionError) {
|
|
301
|
+
// @ts-ignore
|
|
302
|
+
[mediaPermissionError,];
|
|
303
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
304
|
+
...{ class: "w-full bg-chat-error text-white text-sm px-4 py-2 flex items-center gap-2" },
|
|
305
|
+
});
|
|
306
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({});
|
|
307
|
+
(__VLS_ctx.mediaPermissionError);
|
|
308
|
+
// @ts-ignore
|
|
309
|
+
[mediaPermissionError,];
|
|
310
|
+
if (__VLS_ctx.mediaPermissionState == 'prompt') {
|
|
311
|
+
// @ts-ignore
|
|
312
|
+
[mediaPermissionState,];
|
|
313
|
+
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
314
|
+
...{ onClick: (__VLS_ctx.askMedialPermission) },
|
|
315
|
+
...{ class: "bg-white text-chat-haze-600 font-bold w-[250px] rounded-lg" },
|
|
316
|
+
});
|
|
317
|
+
// @ts-ignore
|
|
318
|
+
[askMedialPermission,];
|
|
319
|
+
}
|
|
320
|
+
}
|
|
271
321
|
/** @type {[typeof Calling, ]} */ ;
|
|
272
322
|
// @ts-ignore
|
|
273
323
|
const __VLS_16 = __VLS_asFunctionalComponent(Calling, new Calling({
|
|
274
324
|
...{ 'onUserCalling': {} },
|
|
275
325
|
...{ 'onEndCall': {} },
|
|
326
|
+
...{ 'onError:mediaPermissionFail': {} },
|
|
276
327
|
ref: "callingRef",
|
|
277
328
|
responsive: (__VLS_ctx.responsiveRender),
|
|
278
329
|
}));
|
|
279
330
|
const __VLS_17 = __VLS_16({
|
|
280
331
|
...{ 'onUserCalling': {} },
|
|
281
332
|
...{ 'onEndCall': {} },
|
|
333
|
+
...{ 'onError:mediaPermissionFail': {} },
|
|
282
334
|
ref: "callingRef",
|
|
283
335
|
responsive: (__VLS_ctx.responsiveRender),
|
|
284
336
|
}, ...__VLS_functionalComponentArgsRest(__VLS_16));
|
|
@@ -294,233 +346,148 @@ else if (__VLS_ctx.responsiveRender == 'mobile') {
|
|
|
294
346
|
return;
|
|
295
347
|
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
296
348
|
return;
|
|
297
|
-
if (!(__VLS_ctx.responsiveRender == 'mobile'))
|
|
298
|
-
return;
|
|
299
349
|
__VLS_ctx.emit('userCalling', $event);
|
|
300
350
|
// @ts-ignore
|
|
301
351
|
[responsiveRender, emit,];
|
|
302
352
|
} });
|
|
303
353
|
const __VLS_22 = ({ endCall: {} },
|
|
304
354
|
{ onEndCall: (__VLS_ctx.handleEndCall) });
|
|
355
|
+
const __VLS_23 = ({ 'error:mediaPermissionFail': {} },
|
|
356
|
+
{ 'onError:mediaPermissionFail': (__VLS_ctx.handleMedialPermissionError) });
|
|
305
357
|
/** @type {typeof __VLS_ctx.callingRef} */ ;
|
|
306
|
-
var
|
|
358
|
+
var __VLS_24 = {};
|
|
307
359
|
// @ts-ignore
|
|
308
|
-
[handleEndCall, callingRef,];
|
|
360
|
+
[handleEndCall, handleMedialPermissionError, callingRef,];
|
|
309
361
|
var __VLS_18;
|
|
310
|
-
if (__VLS_ctx.
|
|
362
|
+
if (__VLS_ctx.responsiveRender == 'mobile') {
|
|
311
363
|
// @ts-ignore
|
|
312
|
-
[
|
|
364
|
+
[responsiveRender,];
|
|
313
365
|
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
314
|
-
...{ class: "
|
|
315
|
-
});
|
|
316
|
-
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
317
|
-
...{ onClick: (...[$event]) => {
|
|
318
|
-
if (!!(!__VLS_ctx.isRouterReady))
|
|
319
|
-
return;
|
|
320
|
-
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
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;
|
|
326
|
-
if (!(__VLS_ctx.responsiveRender == 'mobile'))
|
|
327
|
-
return;
|
|
328
|
-
if (!(__VLS_ctx.currentPageConfig?.backFunc && !__VLS_ctx.currentPageConfig.isHidden))
|
|
329
|
-
return;
|
|
330
|
-
__VLS_ctx.currentPageConfig.backFunc();
|
|
331
|
-
// @ts-ignore
|
|
332
|
-
[currentPageConfig,];
|
|
333
|
-
} },
|
|
334
|
-
...{ class: "flex items-center" },
|
|
366
|
+
...{ class: "relative flex flex-col mx-auto w-full h-full bg-[#F9FAFC] overflow-hidden chat-mobile pt-4" },
|
|
335
367
|
});
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
368
|
+
if (__VLS_ctx.currentPageConfig?.backFunc && !__VLS_ctx.currentPageConfig.isHidden) {
|
|
369
|
+
// @ts-ignore
|
|
370
|
+
[currentPageConfig, currentPageConfig,];
|
|
371
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
372
|
+
...{ class: "text-[#141B34] px-6 shrink-0" },
|
|
373
|
+
});
|
|
374
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
375
|
+
...{ class: "flex items-center justify-between" },
|
|
376
|
+
});
|
|
377
|
+
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
378
|
+
...{ onClick: (...[$event]) => {
|
|
379
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
380
|
+
return;
|
|
381
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
382
|
+
return;
|
|
383
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
384
|
+
return;
|
|
385
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
386
|
+
return;
|
|
387
|
+
if (!(__VLS_ctx.responsiveRender == 'mobile'))
|
|
388
|
+
return;
|
|
389
|
+
if (!(__VLS_ctx.currentPageConfig?.backFunc && !__VLS_ctx.currentPageConfig.isHidden))
|
|
390
|
+
return;
|
|
391
|
+
__VLS_ctx.currentPageConfig.backFunc();
|
|
392
|
+
// @ts-ignore
|
|
393
|
+
[currentPageConfig,];
|
|
394
|
+
} },
|
|
395
|
+
...{ class: "flex items-center" },
|
|
396
|
+
});
|
|
397
|
+
/** @type {[typeof IconArrowLeft, ]} */ ;
|
|
398
|
+
// @ts-ignore
|
|
399
|
+
const __VLS_27 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
|
|
400
|
+
const __VLS_28 = __VLS_27({}, ...__VLS_functionalComponentArgsRest(__VLS_27));
|
|
401
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
402
|
+
...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
|
|
403
|
+
});
|
|
404
|
+
(__VLS_ctx.currentPageConfig.backTitle ?? '');
|
|
405
|
+
// @ts-ignore
|
|
406
|
+
[currentPageConfig,];
|
|
407
|
+
if (props.isLib) {
|
|
408
|
+
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
409
|
+
...{ onClick: (...[$event]) => {
|
|
410
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
411
|
+
return;
|
|
412
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
413
|
+
return;
|
|
414
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
415
|
+
return;
|
|
416
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
417
|
+
return;
|
|
418
|
+
if (!(__VLS_ctx.responsiveRender == 'mobile'))
|
|
419
|
+
return;
|
|
420
|
+
if (!(__VLS_ctx.currentPageConfig?.backFunc && !__VLS_ctx.currentPageConfig.isHidden))
|
|
421
|
+
return;
|
|
422
|
+
if (!(props.isLib))
|
|
423
|
+
return;
|
|
424
|
+
__VLS_ctx.emit('close');
|
|
425
|
+
// @ts-ignore
|
|
426
|
+
[emit,];
|
|
427
|
+
} },
|
|
428
|
+
...{ class: "w-10 h-10" },
|
|
429
|
+
});
|
|
430
|
+
/** @type {[typeof IconCloseCircle, ]} */ ;
|
|
431
|
+
// @ts-ignore
|
|
432
|
+
const __VLS_31 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
|
|
433
|
+
const __VLS_32 = __VLS_31({}, ...__VLS_functionalComponentArgsRest(__VLS_31));
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
437
|
+
...{ class: "grow overflow-hidden" },
|
|
342
438
|
});
|
|
343
|
-
|
|
439
|
+
/** @type {[typeof ChatList, ]} */ ;
|
|
344
440
|
// @ts-ignore
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
let __VLS_33;
|
|
367
|
-
let __VLS_34;
|
|
368
|
-
const __VLS_35 = ({ selectReceiver: {} },
|
|
369
|
-
{ onSelectReceiver: (__VLS_ctx.selectReceiver) });
|
|
370
|
-
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CHAT_LIST) }, null, null);
|
|
371
|
-
/** @type {typeof __VLS_ctx.chatListRef} */ ;
|
|
372
|
-
var __VLS_36 = {};
|
|
373
|
-
// @ts-ignore
|
|
374
|
-
[currentPage, PAGE, responsiveRender, receiverId, selectReceiver, chatListRef,];
|
|
375
|
-
var __VLS_32;
|
|
376
|
-
/** @type {[typeof HomeComponent, ]} */ ;
|
|
377
|
-
// @ts-ignore
|
|
378
|
-
const __VLS_39 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
|
|
379
|
-
...{ 'onCall': {} },
|
|
380
|
-
...{ 'onBack': {} },
|
|
381
|
-
...{ 'onInputFocus': {} },
|
|
382
|
-
ref: "homeComponentRef",
|
|
383
|
-
receiverId: (__VLS_ctx.receiverId),
|
|
384
|
-
...{ class: "h-full pt-4" },
|
|
385
|
-
responsive: (__VLS_ctx.responsiveRender),
|
|
386
|
-
}));
|
|
387
|
-
const __VLS_40 = __VLS_39({
|
|
388
|
-
...{ 'onCall': {} },
|
|
389
|
-
...{ 'onBack': {} },
|
|
390
|
-
...{ 'onInputFocus': {} },
|
|
391
|
-
ref: "homeComponentRef",
|
|
392
|
-
receiverId: (__VLS_ctx.receiverId),
|
|
393
|
-
...{ class: "h-full pt-4" },
|
|
394
|
-
responsive: (__VLS_ctx.responsiveRender),
|
|
395
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_39));
|
|
396
|
-
let __VLS_42;
|
|
397
|
-
let __VLS_43;
|
|
398
|
-
const __VLS_44 = ({ call: {} },
|
|
399
|
-
{ onCall: (__VLS_ctx.handleCall) });
|
|
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: {} },
|
|
417
|
-
{ onInputFocus: (__VLS_ctx.handleReadMessage) });
|
|
418
|
-
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME) }, null, null);
|
|
419
|
-
/** @type {typeof __VLS_ctx.homeComponentRef} */ ;
|
|
420
|
-
var __VLS_47 = {};
|
|
421
|
-
// @ts-ignore
|
|
422
|
-
[currentPage, PAGE, handleReadMessage, homeComponentRef,];
|
|
423
|
-
var __VLS_41;
|
|
424
|
-
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
|
|
441
|
+
const __VLS_35 = __VLS_asFunctionalComponent(ChatList, new ChatList({
|
|
442
|
+
...{ 'onSelectReceiver': {} },
|
|
443
|
+
ref: "chatListRef",
|
|
444
|
+
...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
|
|
445
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
446
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
447
|
+
}));
|
|
448
|
+
const __VLS_36 = __VLS_35({
|
|
449
|
+
...{ 'onSelectReceiver': {} },
|
|
450
|
+
ref: "chatListRef",
|
|
451
|
+
...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
|
|
452
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
453
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
454
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_35));
|
|
455
|
+
let __VLS_38;
|
|
456
|
+
let __VLS_39;
|
|
457
|
+
const __VLS_40 = ({ selectReceiver: {} },
|
|
458
|
+
{ onSelectReceiver: (__VLS_ctx.selectReceiver) });
|
|
459
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CHAT_LIST) }, null, null);
|
|
460
|
+
/** @type {typeof __VLS_ctx.chatListRef} */ ;
|
|
461
|
+
var __VLS_41 = {};
|
|
425
462
|
// @ts-ignore
|
|
426
|
-
[currentPage, PAGE,];
|
|
427
|
-
|
|
463
|
+
[currentPage, PAGE, responsiveRender, receiverId, selectReceiver, chatListRef,];
|
|
464
|
+
var __VLS_37;
|
|
465
|
+
/** @type {[typeof HomeComponent, ]} */ ;
|
|
428
466
|
// @ts-ignore
|
|
429
|
-
const
|
|
430
|
-
|
|
467
|
+
const __VLS_44 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
|
|
468
|
+
...{ 'onCall': {} },
|
|
469
|
+
...{ 'onBack': {} },
|
|
470
|
+
...{ 'onInputFocus': {} },
|
|
471
|
+
ref: "homeComponentRef",
|
|
431
472
|
receiverId: (__VLS_ctx.receiverId),
|
|
432
|
-
...{ class: "
|
|
473
|
+
...{ class: "h-full pt-4" },
|
|
433
474
|
responsive: (__VLS_ctx.responsiveRender),
|
|
434
475
|
}));
|
|
435
|
-
const
|
|
436
|
-
|
|
476
|
+
const __VLS_45 = __VLS_44({
|
|
477
|
+
...{ 'onCall': {} },
|
|
478
|
+
...{ 'onBack': {} },
|
|
479
|
+
...{ 'onInputFocus': {} },
|
|
480
|
+
ref: "homeComponentRef",
|
|
437
481
|
receiverId: (__VLS_ctx.receiverId),
|
|
438
|
-
...{ class: "
|
|
482
|
+
...{ class: "h-full pt-4" },
|
|
439
483
|
responsive: (__VLS_ctx.responsiveRender),
|
|
440
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
|
|
448
|
-
// @ts-ignore
|
|
449
|
-
[currentPage, PAGE,];
|
|
450
|
-
/** @type {[typeof CustomerCheckIn, ]} */ ;
|
|
451
|
-
// @ts-ignore
|
|
452
|
-
const __VLS_56 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
|
|
453
|
-
...{ class: "w-full h-full" },
|
|
454
|
-
}));
|
|
455
|
-
const __VLS_57 = __VLS_56({
|
|
456
|
-
...{ class: "w-full h-full" },
|
|
457
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_56));
|
|
458
|
-
}
|
|
459
|
-
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
|
|
460
|
-
// @ts-ignore
|
|
461
|
-
[currentPage, PAGE,];
|
|
462
|
-
/** @type {[typeof CustomerAppointment, ]} */ ;
|
|
463
|
-
// @ts-ignore
|
|
464
|
-
const __VLS_60 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
|
|
465
|
-
...{ class: "w-full h-full" },
|
|
466
|
-
}));
|
|
467
|
-
const __VLS_61 = __VLS_60({
|
|
468
|
-
...{ class: "w-full h-full" },
|
|
469
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_60));
|
|
470
|
-
}
|
|
471
|
-
if (__VLS_ctx.currentPage != __VLS_ctx.PAGE.HOME) {
|
|
472
|
-
// @ts-ignore
|
|
473
|
-
[currentPage, PAGE,];
|
|
474
|
-
/** @type {[typeof MobileFooter, ]} */ ;
|
|
475
|
-
// @ts-ignore
|
|
476
|
-
const __VLS_64 = __VLS_asFunctionalComponent(MobileFooter, new MobileFooter({
|
|
477
|
-
...{ class: "shrink-0" },
|
|
478
|
-
}));
|
|
479
|
-
const __VLS_65 = __VLS_64({
|
|
480
|
-
...{ class: "shrink-0" },
|
|
481
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_64));
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
else {
|
|
485
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
486
|
-
...{ class: "flex gap-4 h-full relative" },
|
|
487
|
-
});
|
|
488
|
-
/** @type {[typeof ChatList, ]} */ ;
|
|
489
|
-
// @ts-ignore
|
|
490
|
-
const __VLS_68 = __VLS_asFunctionalComponent(ChatList, new ChatList({
|
|
491
|
-
...{ 'onSelectReceiver': {} },
|
|
492
|
-
ref: "chatListRef",
|
|
493
|
-
...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
|
|
494
|
-
responsive: (__VLS_ctx.responsiveRender),
|
|
495
|
-
receiverId: (__VLS_ctx.receiverId),
|
|
496
|
-
}));
|
|
497
|
-
const __VLS_69 = __VLS_68({
|
|
498
|
-
...{ 'onSelectReceiver': {} },
|
|
499
|
-
ref: "chatListRef",
|
|
500
|
-
...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
|
|
501
|
-
responsive: (__VLS_ctx.responsiveRender),
|
|
502
|
-
receiverId: (__VLS_ctx.receiverId),
|
|
503
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_68));
|
|
504
|
-
let __VLS_71;
|
|
505
|
-
let __VLS_72;
|
|
506
|
-
const __VLS_73 = ({ selectReceiver: {} },
|
|
507
|
-
{ onSelectReceiver: (__VLS_ctx.selectReceiver) });
|
|
508
|
-
/** @type {typeof __VLS_ctx.chatListRef} */ ;
|
|
509
|
-
var __VLS_74 = {};
|
|
510
|
-
// @ts-ignore
|
|
511
|
-
[responsiveRender, receiverId, selectReceiver, chatListRef,];
|
|
512
|
-
var __VLS_70;
|
|
513
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
514
|
-
...{ class: "chat-box-white grow flex flex-col h-full pt-6 overflow-hidden" },
|
|
515
|
-
});
|
|
516
|
-
if (__VLS_ctx.currentPageConfig?.backFunc) {
|
|
517
|
-
// @ts-ignore
|
|
518
|
-
[currentPageConfig,];
|
|
519
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
520
|
-
...{ class: "text-[#141B34] px-6" },
|
|
521
|
-
});
|
|
522
|
-
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
523
|
-
...{ onClick: (...[$event]) => {
|
|
484
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_44));
|
|
485
|
+
let __VLS_47;
|
|
486
|
+
let __VLS_48;
|
|
487
|
+
const __VLS_49 = ({ call: {} },
|
|
488
|
+
{ onCall: (__VLS_ctx.handleCall) });
|
|
489
|
+
const __VLS_50 = ({ back: {} },
|
|
490
|
+
{ onBack: (...[$event]) => {
|
|
524
491
|
if (!!(!__VLS_ctx.isRouterReady))
|
|
525
492
|
return;
|
|
526
493
|
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
@@ -529,146 +496,230 @@ else {
|
|
|
529
496
|
return;
|
|
530
497
|
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
531
498
|
return;
|
|
532
|
-
if (
|
|
533
|
-
return;
|
|
534
|
-
if (!(__VLS_ctx.currentPageConfig?.backFunc))
|
|
499
|
+
if (!(__VLS_ctx.responsiveRender == 'mobile'))
|
|
535
500
|
return;
|
|
536
|
-
__VLS_ctx.currentPageConfig.backFunc();
|
|
501
|
+
__VLS_ctx.currentPageConfig.backFunc?.();
|
|
537
502
|
// @ts-ignore
|
|
538
|
-
[currentPageConfig,];
|
|
539
|
-
} }
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
503
|
+
[responsiveRender, currentPageConfig, receiverId, handleCall,];
|
|
504
|
+
} });
|
|
505
|
+
const __VLS_51 = ({ inputFocus: {} },
|
|
506
|
+
{ onInputFocus: (__VLS_ctx.handleReadMessage) });
|
|
507
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME) }, null, null);
|
|
508
|
+
/** @type {typeof __VLS_ctx.homeComponentRef} */ ;
|
|
509
|
+
var __VLS_52 = {};
|
|
543
510
|
// @ts-ignore
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
511
|
+
[currentPage, PAGE, handleReadMessage, homeComponentRef,];
|
|
512
|
+
var __VLS_46;
|
|
513
|
+
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
|
|
514
|
+
// @ts-ignore
|
|
515
|
+
[currentPage, PAGE,];
|
|
516
|
+
/** @type {[typeof CustomerDetail, ]} */ ;
|
|
517
|
+
// @ts-ignore
|
|
518
|
+
const __VLS_55 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
|
|
519
|
+
ref: "customerDetailRef",
|
|
520
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
521
|
+
...{ class: "w-full h-full" },
|
|
522
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
523
|
+
}));
|
|
524
|
+
const __VLS_56 = __VLS_55({
|
|
525
|
+
ref: "customerDetailRef",
|
|
526
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
527
|
+
...{ class: "w-full h-full" },
|
|
528
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
529
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_55));
|
|
530
|
+
/** @type {typeof __VLS_ctx.customerDetailRef} */ ;
|
|
531
|
+
var __VLS_58 = {};
|
|
532
|
+
// @ts-ignore
|
|
533
|
+
[responsiveRender, receiverId, customerDetailRef,];
|
|
534
|
+
var __VLS_57;
|
|
535
|
+
}
|
|
536
|
+
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
|
|
537
|
+
// @ts-ignore
|
|
538
|
+
[currentPage, PAGE,];
|
|
539
|
+
/** @type {[typeof CustomerCheckIn, ]} */ ;
|
|
540
|
+
// @ts-ignore
|
|
541
|
+
const __VLS_61 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
|
|
542
|
+
...{ class: "w-full h-full" },
|
|
543
|
+
}));
|
|
544
|
+
const __VLS_62 = __VLS_61({
|
|
545
|
+
...{ class: "w-full h-full" },
|
|
546
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_61));
|
|
547
|
+
}
|
|
548
|
+
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
|
|
549
|
+
// @ts-ignore
|
|
550
|
+
[currentPage, PAGE,];
|
|
551
|
+
/** @type {[typeof CustomerAppointment, ]} */ ;
|
|
552
|
+
// @ts-ignore
|
|
553
|
+
const __VLS_65 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
|
|
554
|
+
...{ class: "w-full h-full" },
|
|
555
|
+
}));
|
|
556
|
+
const __VLS_66 = __VLS_65({
|
|
557
|
+
...{ class: "w-full h-full" },
|
|
558
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_65));
|
|
559
|
+
}
|
|
560
|
+
if (__VLS_ctx.currentPage != __VLS_ctx.PAGE.HOME) {
|
|
561
|
+
// @ts-ignore
|
|
562
|
+
[currentPage, PAGE,];
|
|
563
|
+
/** @type {[typeof MobileFooter, ]} */ ;
|
|
564
|
+
// @ts-ignore
|
|
565
|
+
const __VLS_69 = __VLS_asFunctionalComponent(MobileFooter, new MobileFooter({
|
|
566
|
+
...{ class: "shrink-0" },
|
|
567
|
+
}));
|
|
568
|
+
const __VLS_70 = __VLS_69({
|
|
569
|
+
...{ class: "shrink-0" },
|
|
570
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_69));
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
else {
|
|
574
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
575
|
+
...{ class: "flex gap-4 h-full relative" },
|
|
548
576
|
});
|
|
549
|
-
|
|
577
|
+
/** @type {[typeof ChatList, ]} */ ;
|
|
550
578
|
// @ts-ignore
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
...{ class: "h-full" },
|
|
572
|
-
responsive: (__VLS_ctx.responsiveRender),
|
|
573
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_81));
|
|
574
|
-
let __VLS_84;
|
|
575
|
-
let __VLS_85;
|
|
576
|
-
const __VLS_86 = ({ call: {} },
|
|
577
|
-
{ onCall: (__VLS_ctx.handleCall) });
|
|
578
|
-
const __VLS_87 = ({ inputFocus: {} },
|
|
579
|
-
{ onInputFocus: (__VLS_ctx.handleReadMessage) });
|
|
580
|
-
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME && __VLS_ctx.receiverId) }, null, null);
|
|
581
|
-
/** @type {typeof __VLS_ctx.homeComponentRef} */ ;
|
|
582
|
-
var __VLS_88 = {};
|
|
583
|
-
// @ts-ignore
|
|
584
|
-
[currentPage, PAGE, responsiveRender, receiverId, receiverId, handleCall, handleReadMessage, homeComponentRef,];
|
|
585
|
-
var __VLS_83;
|
|
586
|
-
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
|
|
579
|
+
const __VLS_73 = __VLS_asFunctionalComponent(ChatList, new ChatList({
|
|
580
|
+
...{ 'onSelectReceiver': {} },
|
|
581
|
+
ref: "chatListRef",
|
|
582
|
+
...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
|
|
583
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
584
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
585
|
+
}));
|
|
586
|
+
const __VLS_74 = __VLS_73({
|
|
587
|
+
...{ 'onSelectReceiver': {} },
|
|
588
|
+
ref: "chatListRef",
|
|
589
|
+
...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
|
|
590
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
591
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
592
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_73));
|
|
593
|
+
let __VLS_76;
|
|
594
|
+
let __VLS_77;
|
|
595
|
+
const __VLS_78 = ({ selectReceiver: {} },
|
|
596
|
+
{ onSelectReceiver: (__VLS_ctx.selectReceiver) });
|
|
597
|
+
/** @type {typeof __VLS_ctx.chatListRef} */ ;
|
|
598
|
+
var __VLS_79 = {};
|
|
587
599
|
// @ts-ignore
|
|
588
|
-
[
|
|
589
|
-
|
|
600
|
+
[responsiveRender, receiverId, selectReceiver, chatListRef,];
|
|
601
|
+
var __VLS_75;
|
|
602
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
603
|
+
...{ class: "chat-box-white grow flex flex-col h-full pt-6 overflow-hidden" },
|
|
604
|
+
});
|
|
605
|
+
if (__VLS_ctx.currentPageConfig?.backFunc) {
|
|
606
|
+
// @ts-ignore
|
|
607
|
+
[currentPageConfig,];
|
|
608
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
609
|
+
...{ class: "text-[#141B34] px-6" },
|
|
610
|
+
});
|
|
611
|
+
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
612
|
+
...{ onClick: (...[$event]) => {
|
|
613
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
614
|
+
return;
|
|
615
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
616
|
+
return;
|
|
617
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
618
|
+
return;
|
|
619
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
620
|
+
return;
|
|
621
|
+
if (!!(__VLS_ctx.responsiveRender == 'mobile'))
|
|
622
|
+
return;
|
|
623
|
+
if (!(__VLS_ctx.currentPageConfig?.backFunc))
|
|
624
|
+
return;
|
|
625
|
+
__VLS_ctx.currentPageConfig.backFunc();
|
|
626
|
+
// @ts-ignore
|
|
627
|
+
[currentPageConfig,];
|
|
628
|
+
} },
|
|
629
|
+
...{ class: "flex items-center" },
|
|
630
|
+
});
|
|
631
|
+
/** @type {[typeof IconArrowLeft, ]} */ ;
|
|
632
|
+
// @ts-ignore
|
|
633
|
+
const __VLS_82 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
|
|
634
|
+
const __VLS_83 = __VLS_82({}, ...__VLS_functionalComponentArgsRest(__VLS_82));
|
|
635
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
636
|
+
...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
|
|
637
|
+
});
|
|
638
|
+
(__VLS_ctx.currentPageConfig.backTitle ?? '');
|
|
639
|
+
// @ts-ignore
|
|
640
|
+
[currentPageConfig,];
|
|
641
|
+
}
|
|
642
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
643
|
+
...{ class: "grow overflow-hidden" },
|
|
644
|
+
});
|
|
645
|
+
/** @type {[typeof HomeComponent, ]} */ ;
|
|
590
646
|
// @ts-ignore
|
|
591
|
-
const
|
|
592
|
-
|
|
647
|
+
const __VLS_86 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
|
|
648
|
+
...{ 'onCall': {} },
|
|
649
|
+
...{ 'onInputFocus': {} },
|
|
650
|
+
ref: "homeComponentRef",
|
|
593
651
|
receiverId: (__VLS_ctx.receiverId),
|
|
594
652
|
...{ class: "h-full" },
|
|
595
653
|
responsive: (__VLS_ctx.responsiveRender),
|
|
596
654
|
}));
|
|
597
|
-
const
|
|
598
|
-
|
|
655
|
+
const __VLS_87 = __VLS_86({
|
|
656
|
+
...{ 'onCall': {} },
|
|
657
|
+
...{ 'onInputFocus': {} },
|
|
658
|
+
ref: "homeComponentRef",
|
|
599
659
|
receiverId: (__VLS_ctx.receiverId),
|
|
600
660
|
...{ class: "h-full" },
|
|
601
661
|
responsive: (__VLS_ctx.responsiveRender),
|
|
602
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
/** @type {[typeof CustomerCheckIn, ]} */ ;
|
|
613
|
-
// @ts-ignore
|
|
614
|
-
const __VLS_97 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
|
|
615
|
-
...{ class: "h-full" },
|
|
616
|
-
}));
|
|
617
|
-
const __VLS_98 = __VLS_97({
|
|
618
|
-
...{ class: "h-full" },
|
|
619
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_97));
|
|
620
|
-
}
|
|
621
|
-
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
|
|
622
|
-
// @ts-ignore
|
|
623
|
-
[currentPage, PAGE,];
|
|
624
|
-
/** @type {[typeof CustomerAppointment, ]} */ ;
|
|
662
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_86));
|
|
663
|
+
let __VLS_89;
|
|
664
|
+
let __VLS_90;
|
|
665
|
+
const __VLS_91 = ({ call: {} },
|
|
666
|
+
{ onCall: (__VLS_ctx.handleCall) });
|
|
667
|
+
const __VLS_92 = ({ inputFocus: {} },
|
|
668
|
+
{ onInputFocus: (__VLS_ctx.handleReadMessage) });
|
|
669
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME && __VLS_ctx.receiverId) }, null, null);
|
|
670
|
+
/** @type {typeof __VLS_ctx.homeComponentRef} */ ;
|
|
671
|
+
var __VLS_93 = {};
|
|
625
672
|
// @ts-ignore
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
673
|
+
[currentPage, PAGE, responsiveRender, receiverId, receiverId, handleCall, handleReadMessage, homeComponentRef,];
|
|
674
|
+
var __VLS_88;
|
|
675
|
+
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
|
|
676
|
+
// @ts-ignore
|
|
677
|
+
[currentPage, PAGE,];
|
|
678
|
+
/** @type {[typeof CustomerDetail, ]} */ ;
|
|
679
|
+
// @ts-ignore
|
|
680
|
+
const __VLS_96 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
|
|
681
|
+
ref: "customerDetailRef",
|
|
682
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
683
|
+
...{ class: "h-full" },
|
|
684
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
685
|
+
}));
|
|
686
|
+
const __VLS_97 = __VLS_96({
|
|
687
|
+
ref: "customerDetailRef",
|
|
688
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
689
|
+
...{ class: "h-full" },
|
|
690
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
691
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_96));
|
|
692
|
+
/** @type {typeof __VLS_ctx.customerDetailRef} */ ;
|
|
693
|
+
var __VLS_99 = {};
|
|
694
|
+
// @ts-ignore
|
|
695
|
+
[responsiveRender, receiverId, customerDetailRef,];
|
|
696
|
+
var __VLS_98;
|
|
697
|
+
}
|
|
698
|
+
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
|
|
699
|
+
// @ts-ignore
|
|
700
|
+
[currentPage, PAGE,];
|
|
701
|
+
/** @type {[typeof CustomerCheckIn, ]} */ ;
|
|
702
|
+
// @ts-ignore
|
|
703
|
+
const __VLS_102 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
|
|
704
|
+
...{ class: "h-full" },
|
|
705
|
+
}));
|
|
706
|
+
const __VLS_103 = __VLS_102({
|
|
707
|
+
...{ class: "h-full" },
|
|
708
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_102));
|
|
709
|
+
}
|
|
710
|
+
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
|
|
711
|
+
// @ts-ignore
|
|
712
|
+
[currentPage, PAGE,];
|
|
713
|
+
/** @type {[typeof CustomerAppointment, ]} */ ;
|
|
714
|
+
// @ts-ignore
|
|
715
|
+
const __VLS_106 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
|
|
716
|
+
...{ class: "h-full" },
|
|
717
|
+
}));
|
|
718
|
+
const __VLS_107 = __VLS_106({
|
|
719
|
+
...{ class: "h-full" },
|
|
720
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_106));
|
|
721
|
+
}
|
|
632
722
|
}
|
|
633
|
-
/** @type {[typeof Calling, ]} */ ;
|
|
634
|
-
// @ts-ignore
|
|
635
|
-
const __VLS_105 = __VLS_asFunctionalComponent(Calling, new Calling({
|
|
636
|
-
...{ 'onUserCalling': {} },
|
|
637
|
-
...{ 'onEndCall': {} },
|
|
638
|
-
ref: "callingRef",
|
|
639
|
-
responsive: (__VLS_ctx.responsiveRender),
|
|
640
|
-
}));
|
|
641
|
-
const __VLS_106 = __VLS_105({
|
|
642
|
-
...{ 'onUserCalling': {} },
|
|
643
|
-
...{ 'onEndCall': {} },
|
|
644
|
-
ref: "callingRef",
|
|
645
|
-
responsive: (__VLS_ctx.responsiveRender),
|
|
646
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_105));
|
|
647
|
-
let __VLS_108;
|
|
648
|
-
let __VLS_109;
|
|
649
|
-
const __VLS_110 = ({ userCalling: {} },
|
|
650
|
-
{ onUserCalling: (...[$event]) => {
|
|
651
|
-
if (!!(!__VLS_ctx.isRouterReady))
|
|
652
|
-
return;
|
|
653
|
-
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
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;
|
|
659
|
-
if (!!(__VLS_ctx.responsiveRender == 'mobile'))
|
|
660
|
-
return;
|
|
661
|
-
__VLS_ctx.emit('userCalling', $event);
|
|
662
|
-
// @ts-ignore
|
|
663
|
-
[responsiveRender, emit,];
|
|
664
|
-
} });
|
|
665
|
-
const __VLS_111 = ({ endCall: {} },
|
|
666
|
-
{ onEndCall: (__VLS_ctx.handleEndCall) });
|
|
667
|
-
/** @type {typeof __VLS_ctx.callingRef} */ ;
|
|
668
|
-
var __VLS_112 = {};
|
|
669
|
-
// @ts-ignore
|
|
670
|
-
[handleEndCall, callingRef,];
|
|
671
|
-
var __VLS_107;
|
|
672
723
|
}
|
|
673
724
|
/** @type {__VLS_StyleScopedClasses['go-chat-main']} */ ;
|
|
674
725
|
/** @type {__VLS_StyleScopedClasses['max-w-full']} */ ;
|
|
@@ -678,6 +729,24 @@ else {
|
|
|
678
729
|
/** @type {__VLS_StyleScopedClasses['m-auto']} */ ;
|
|
679
730
|
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
680
731
|
/** @type {__VLS_StyleScopedClasses['sc-full']} */ ;
|
|
732
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
733
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
734
|
+
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
735
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
736
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
737
|
+
/** @type {__VLS_StyleScopedClasses['bg-chat-error']} */ ;
|
|
738
|
+
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
739
|
+
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
740
|
+
/** @type {__VLS_StyleScopedClasses['px-4']} */ ;
|
|
741
|
+
/** @type {__VLS_StyleScopedClasses['py-2']} */ ;
|
|
742
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
743
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
744
|
+
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
745
|
+
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
746
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-600']} */ ;
|
|
747
|
+
/** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
|
|
748
|
+
/** @type {__VLS_StyleScopedClasses['w-[250px]']} */ ;
|
|
749
|
+
/** @type {__VLS_StyleScopedClasses['rounded-lg']} */ ;
|
|
681
750
|
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
682
751
|
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
683
752
|
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
@@ -693,10 +762,15 @@ else {
|
|
|
693
762
|
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
694
763
|
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
695
764
|
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
765
|
+
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
766
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
767
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
696
768
|
/** @type {__VLS_StyleScopedClasses['text-xl']} */ ;
|
|
697
769
|
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
698
770
|
/** @type {__VLS_StyleScopedClasses['text-chat-haze-900']} */ ;
|
|
699
771
|
/** @type {__VLS_StyleScopedClasses['ml-3']} */ ;
|
|
772
|
+
/** @type {__VLS_StyleScopedClasses['w-10']} */ ;
|
|
773
|
+
/** @type {__VLS_StyleScopedClasses['h-10']} */ ;
|
|
700
774
|
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
701
775
|
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
702
776
|
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
@@ -740,7 +814,7 @@ else {
|
|
|
740
814
|
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
741
815
|
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
742
816
|
// @ts-ignore
|
|
743
|
-
var
|
|
817
|
+
var __VLS_25 = __VLS_24, __VLS_42 = __VLS_41, __VLS_53 = __VLS_52, __VLS_59 = __VLS_58, __VLS_80 = __VLS_79, __VLS_94 = __VLS_93, __VLS_100 = __VLS_99;
|
|
744
818
|
const __VLS_export = (await import('vue')).defineComponent({
|
|
745
819
|
setup: () => (__VLS_exposed),
|
|
746
820
|
__typeEmits: {},
|