@phonghq/go-chat 1.0.43 → 1.0.44
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/IconPlan.vue.d.ts +13 -1
- package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +13 -1
- package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +13 -1
- package/dist/chat/App.vue.d.ts +13 -2
- package/dist/chat/page/home/ChatList.vue.d.ts +2 -0
- package/dist/chat/page/home/ChatMessageItem.vue.d.ts +1 -0
- package/dist/chat/page/home/ChatMessageItem2.vue.d.ts +19 -0
- package/dist/chat/page/home/Home.vue.d.ts +2 -0
- package/dist/chat/page/home/InputChat.vue.d.ts +2 -0
- package/dist/components/chat/call/Calling.vue.d.ts +4 -2
- package/dist/components/chat/common/tabs/TabBase.vue.d.ts +18 -0
- package/dist/components/common/drawer/DrawerBaseCustom.vue.d.ts +1 -1
- package/dist/components/ui/select/Select.vue.d.ts +20 -0
- package/dist/components/ui/select/SelectContent.vue.d.ts +24 -0
- package/dist/components/ui/select/SelectGroup.vue.d.ts +10 -0
- package/dist/components/ui/select/SelectItem.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectItemText.vue.d.ts +10 -0
- package/dist/components/ui/select/SelectLabel.vue.d.ts +14 -0
- package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +14 -0
- package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +14 -0
- package/dist/components/ui/select/SelectSeparator.vue.d.ts +7 -0
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +17 -0
- package/dist/components/ui/select/SelectValue.vue.d.ts +10 -0
- package/dist/components/ui/select/index.d.ts +11 -0
- package/dist/components/ui/tabs/Tabs.vue.d.ts +20 -0
- package/dist/components/ui/tabs/TabsContent.vue.d.ts +14 -0
- package/dist/components/ui/tabs/TabsList.vue.d.ts +14 -0
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +14 -0
- package/dist/components/ui/tabs/index.d.ts +4 -0
- package/dist/composable/useInitData.d.ts +1 -1
- package/dist/composable/useListConversations.d.ts +1 -1
- package/dist/composable/useListentEvent.d.ts +5 -0
- package/dist/composable/usePlivo.d.ts +1 -0
- package/dist/constant/color.d.ts +2 -2
- package/dist/go-chat.es.js +14752 -14211
- package/dist/go-chat.umd.js +15 -15
- package/dist/style.css +1 -1
- package/dist/test/assets/icons/IconPlan.vue.js +23 -3
- package/dist/test/assets/icons/call/IconPhone.vue.js +6 -19
- package/dist/test/assets/icons/call/IconPhoneCancel.vue.js +32 -21
- package/dist/test/assets/icons/customer-detail/IconPhone.vue.js +23 -3
- package/dist/test/chat/App.vue.js +222 -299
- package/dist/test/chat/page/customer-check-in/CustomerCheckIn.vue.js +3 -1
- package/dist/test/chat/page/customer-detail/CustomerDetail.vue.js +2 -2
- package/dist/test/chat/page/home/ChatList.vue.js +64 -34
- package/dist/test/chat/page/home/ChatMessage.vue.js +10 -1
- package/dist/test/chat/page/home/ChatMessageItem.vue.js +63 -80
- package/dist/test/chat/page/home/ChatMessageItem2.vue.js +351 -0
- package/dist/test/chat/page/home/Home.vue.js +15 -7
- package/dist/test/chat/page/home/HomeHeader.vue.js +8 -4
- package/dist/test/chat/page/home/InputChat.vue.js +58 -37
- package/dist/test/components/chat/call/Calling.vue.js +111 -67
- package/dist/test/components/chat/common/tab/TabBase.vue.js +1 -0
- package/dist/test/components/chat/common/tabs/TabBase.vue.js +92 -0
- package/dist/test/components/chat/layout/mobile/Footer.vue.js +6 -1
- package/dist/test/components/common/drawer/DrawerBaseCustom.vue.js +1 -0
- package/dist/test/components/common/select/SelectBase.vue.js +139 -0
- package/dist/test/components/ui/select/Select.vue.js +49 -0
- package/dist/test/components/ui/select/SelectContent.vue.js +98 -0
- package/dist/test/components/ui/select/SelectGroup.vue.js +37 -0
- package/dist/test/components/ui/select/SelectItem.vue.js +86 -0
- package/dist/test/components/ui/select/SelectItemText.vue.js +37 -0
- package/dist/test/components/ui/select/SelectLabel.vue.js +40 -0
- package/dist/test/components/ui/select/SelectScrollDownButton.vue.js +58 -0
- package/dist/test/components/ui/select/SelectScrollUpButton.vue.js +58 -0
- package/dist/test/components/ui/select/SelectSeparator.vue.js +39 -0
- package/dist/test/components/ui/select/SelectTrigger.vue.js +76 -0
- package/dist/test/components/ui/select/SelectValue.vue.js +37 -0
- package/dist/test/components/ui/select/index.js +11 -0
- package/dist/test/components/ui/tabs/Tabs.vue.js +54 -0
- package/dist/test/components/ui/tabs/TabsContent.vue.js +44 -0
- package/dist/test/components/ui/tabs/TabsList.vue.js +44 -0
- package/dist/test/components/ui/tabs/TabsTrigger.vue.js +45 -0
- package/dist/test/components/ui/tabs/index.js +4 -0
- package/dist/test/composable/useInitData.js +5 -5
- package/dist/test/composable/useListConversations.js +32 -29
- package/dist/test/composable/useListentEvent.js +45 -0
- package/dist/test/composable/usePlivo.js +6 -1
- package/dist/test/constant/color.js +4 -2
- package/dist/test/plugins/axios-gci.js +1 -1
- package/dist/test/utils/chat/auth.js +1 -1
- package/dist/test/utils/chat/call.js +2 -3
- package/dist/test/utils/chat/conversation.js +2 -2
- package/dist/test/utils/chat/page-error.js +25 -0
- package/dist/test/utils/chat/user.js +7 -2
- package/dist/test/utils/string-helper.js +13 -0
- package/dist/types/chat/global.d.ts +6 -5
- package/dist/types/conversation.d.ts +1 -0
- package/dist/utils/chat/auth.d.ts +1 -1
- package/dist/utils/chat/conversation.d.ts +1 -0
- package/dist/utils/chat/page-error.d.ts +4 -0
- package/dist/utils/chat/user.d.ts +3 -0
- package/dist/utils/string-helper.d.ts +1 -0
- package/package.json +3 -2
- package/dist/components/layout/Blank.vue.d.ts +0 -9
- package/dist/components/layout/Default.vue.d.ts +0 -9
- package/dist/components/modal/Confirm.vue.d.ts +0 -2
- package/dist/composable/useError.d.ts +0 -4
- package/dist/composable/useModalConfirm.d.ts +0 -5
- package/dist/test/components/ListenEvent.vue.js +0 -45
- package/dist/test/components/layout/Blank.vue.js +0 -19
- package/dist/test/components/layout/Default.vue.js +0 -21
- package/dist/test/components/modal/Confirm.vue.js +0 -164
- package/dist/test/composable/useError.js +0 -10
- package/dist/test/composable/useModalConfirm.js +0 -39
- /package/dist/components/{ListenEvent.vue.d.ts → common/select/SelectBase.vue.d.ts} +0 -0
|
@@ -13,16 +13,14 @@ import { currentPage, routerPush } from '../utils/chat/chat-router';
|
|
|
13
13
|
import BaseSpin from '../components/chat/common/spin/BaseSpin.vue';
|
|
14
14
|
import Calling from '../components/chat/call/Calling.vue';
|
|
15
15
|
import { dataProfile, logout } from '../utils/chat/auth';
|
|
16
|
-
import MobileFooter from '../components/chat/layout/mobile/Footer.vue';
|
|
17
16
|
import '../style/index.scss';
|
|
18
|
-
import { useDebounce } from '../utils/debounce';
|
|
19
17
|
import { defineRootColor } from '../constant/color';
|
|
20
18
|
import IconCloseCircle from '../assets/icons/IconCloseCircle.vue';
|
|
21
19
|
import Setting from '../chat/page/setting/Setting.vue';
|
|
22
20
|
import SettingSuccess from '../chat/page/setting/SettingSuccess.vue';
|
|
23
|
-
import { goChatError } from '../composable/useError';
|
|
24
21
|
import NotTenantPhone from '../views/NotTenantPhone.vue';
|
|
25
22
|
import { phoneNumberFormat } from '../utils/string-helper';
|
|
23
|
+
import { responsiveObserver, useListenEvent } from '../composable/useListentEvent';
|
|
26
24
|
const routerConfig = [
|
|
27
25
|
{ id: PAGE.HOME, backFunc: null, backTitle: '' },
|
|
28
26
|
{
|
|
@@ -91,21 +89,20 @@ const routerMobileConfig = computed(() => [
|
|
|
91
89
|
}
|
|
92
90
|
]);
|
|
93
91
|
const props = withDefaults(defineProps(), {
|
|
94
|
-
response: 'tablet'
|
|
92
|
+
response: 'tablet'
|
|
95
93
|
});
|
|
96
94
|
const emit = defineEmits();
|
|
97
95
|
const { initPage } = useInitData();
|
|
96
|
+
const { getResponsiveObserver } = useListenEvent();
|
|
98
97
|
onMounted(() => {
|
|
98
|
+
console.log('222222222222222222');
|
|
99
|
+
getResponsiveObserver();
|
|
99
100
|
if (props.isLib) {
|
|
100
101
|
defineRootColor();
|
|
102
|
+
handleInitPage();
|
|
101
103
|
}
|
|
102
|
-
getResponsiveObserver();
|
|
103
|
-
window.addEventListener('resize', getResponsiveObserverDebounce);
|
|
104
|
-
handleInitPage();
|
|
105
|
-
});
|
|
106
|
-
onUnmounted(() => {
|
|
107
|
-
window.removeEventListener('resize', getResponsiveObserverDebounce);
|
|
108
104
|
});
|
|
105
|
+
onUnmounted(() => { });
|
|
109
106
|
const currentPageConfig = computed(() => {
|
|
110
107
|
if (responsiveRender.value === 'mobile') {
|
|
111
108
|
return routerMobileConfig.value.find((e) => e.id == currentPage.value);
|
|
@@ -119,8 +116,12 @@ const unreadCount = computed(() => {
|
|
|
119
116
|
return ((chatListRef.value?.listConversationsAll?.reduce((total, cur) => total + (cur?.unread_count ?? 0), 0) ?? 0) +
|
|
120
117
|
(chatListRef.value?.listConversationsUnknown?.reduce((total, cur) => total + (cur?.unread_count ?? 0), 0) ?? 0));
|
|
121
118
|
});
|
|
119
|
+
const currentConversation = computed(() => {
|
|
120
|
+
return (chatListRef.value?.listConversationsAll.find((e) => e.receiver_id == receiverId.value) ??
|
|
121
|
+
chatListRef.value?.listConversationsUnknown.find((e) => e.receiver_id == receiverId.value) ??
|
|
122
|
+
null);
|
|
123
|
+
});
|
|
122
124
|
const callStatus = computed(() => callingRef.value?.callStatus ?? null);
|
|
123
|
-
const responsiveObserver = ref('tablet');
|
|
124
125
|
const appChatRef = ref();
|
|
125
126
|
const callingRef = ref(null);
|
|
126
127
|
const receiverId = ref(null);
|
|
@@ -128,8 +129,6 @@ const customerDetailRef = ref(null);
|
|
|
128
129
|
const homeComponentRef = ref(null);
|
|
129
130
|
const chatListRef = ref(null);
|
|
130
131
|
const drawerVisibleRef = ref(null);
|
|
131
|
-
const mediaPermissionError = ref('');
|
|
132
|
-
const mediaPermissionState = ref('granted');
|
|
133
132
|
const selectReceiver = async (data) => {
|
|
134
133
|
if (receiverId.value != data?.receiver_id || responsiveRender.value === 'mobile') {
|
|
135
134
|
if (currentPage.value != PAGE.HOME) {
|
|
@@ -142,31 +141,36 @@ const selectReceiver = async (data) => {
|
|
|
142
141
|
}
|
|
143
142
|
};
|
|
144
143
|
const handleCall = (user) => {
|
|
145
|
-
|
|
146
|
-
};
|
|
147
|
-
const getResponsiveObserver = () => {
|
|
148
|
-
if (!appChatRef.value)
|
|
144
|
+
if (dataProfile.value?.user_type != 'tenant')
|
|
149
145
|
return;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
if (responsiveObserver.value != 'tablet') {
|
|
153
|
-
responsiveObserver.value = 'tablet';
|
|
154
|
-
}
|
|
146
|
+
if (callingRef.value) {
|
|
147
|
+
callingRef.value?.startCall(user);
|
|
155
148
|
}
|
|
156
149
|
else {
|
|
157
|
-
|
|
158
|
-
if (currentPage.value == PAGE.HOME) {
|
|
159
|
-
currentPage.value = PAGE.CHAT_LIST;
|
|
160
|
-
}
|
|
161
|
-
responsiveObserver.value = 'mobile';
|
|
162
|
-
}
|
|
150
|
+
emit('call', user);
|
|
163
151
|
}
|
|
164
152
|
};
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
|
|
153
|
+
// const getResponsiveObserver = () => {
|
|
154
|
+
// if (!appChatRef.value) return
|
|
155
|
+
// const width = appChatRef.value?.offsetWidth ?? 0
|
|
156
|
+
// if (width >= 640) {
|
|
157
|
+
// if (responsiveObserver.value != 'tablet') {
|
|
158
|
+
// responsiveObserver.value = 'tablet'
|
|
159
|
+
// }
|
|
160
|
+
// } else {
|
|
161
|
+
// if (responsiveObserver.value != 'mobile') {
|
|
162
|
+
// if (currentPage.value == PAGE.HOME) {
|
|
163
|
+
// currentPage.value = PAGE.CHAT_LIST
|
|
164
|
+
// }
|
|
165
|
+
// responsiveObserver.value = 'mobile'
|
|
166
|
+
// }
|
|
167
|
+
// }
|
|
168
|
+
// }
|
|
169
|
+
// const getResponsiveObserverDebounce = useDebounce(() => {
|
|
170
|
+
// getResponsiveObserver()
|
|
171
|
+
// }, 50)
|
|
168
172
|
const handleInitPage = async () => {
|
|
169
|
-
const init_data = await initPage({ props: props,
|
|
173
|
+
const init_data = await initPage({ props: props, responsive: responsiveRender.value });
|
|
170
174
|
if (!dataProfile.value?.tenant_phone && dataProfile.value?.user_type == 'tenant') {
|
|
171
175
|
emit('error:noPhoneTenant');
|
|
172
176
|
routerPush(PAGE.NOT_TENANT_PHONE);
|
|
@@ -177,61 +181,39 @@ const handleInitPage = async () => {
|
|
|
177
181
|
// routerPush(PAGE.REGISTER_TENANT)
|
|
178
182
|
// }
|
|
179
183
|
}
|
|
180
|
-
if (init_data?.conversation_id) {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
const handleEndCall = (data, type) => {
|
|
187
|
-
setTimeout(() => {
|
|
188
|
-
if (data?.phone && homeComponentRef.value?.infoUser?.phone == data?.phone) {
|
|
189
|
-
homeComponentRef.value?.handleGetMessage({ resetList: true });
|
|
190
|
-
}
|
|
191
|
-
// publicTopicConversationUpdate({
|
|
192
|
-
// infoUser: homeComponentRef.value?.infoUser ?? null,
|
|
193
|
-
// isCall: type
|
|
194
|
-
// })
|
|
195
|
-
}, 2000);
|
|
184
|
+
// if (init_data?.conversation_id) {
|
|
185
|
+
// chatListRef.value?.initData({
|
|
186
|
+
// conversation_id: init_data?.conversation_id,
|
|
187
|
+
// is_unknown: init_data?.is_unknown || '0'
|
|
188
|
+
// })
|
|
189
|
+
// } else chatListRef.value?.initData()
|
|
196
190
|
};
|
|
191
|
+
// const handleEndCall = (data: IResUser | null, type: string) => {
|
|
192
|
+
// setTimeout(() => {
|
|
193
|
+
// if (data?.phone && homeComponentRef.value?.infoUser?.phone == data?.phone) {
|
|
194
|
+
// // homeComponentRef.value?.handleGetMessage({ resetList: true })
|
|
195
|
+
// }
|
|
196
|
+
// // publicTopicConversationUpdate({
|
|
197
|
+
// // infoUser: homeComponentRef.value?.infoUser ?? null,
|
|
198
|
+
// // isCall: type
|
|
199
|
+
// // })
|
|
200
|
+
// }, 2000)
|
|
201
|
+
// }
|
|
197
202
|
const openSettings = () => {
|
|
198
203
|
drawerVisibleRef.value?.open();
|
|
199
204
|
};
|
|
200
205
|
const handleReadMessage = () => {
|
|
201
206
|
chatListRef.value?.handleReadMessage();
|
|
202
207
|
};
|
|
203
|
-
const
|
|
204
|
-
if (
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
'Microphone access is needed. Please allow microphone permission to continue.';
|
|
210
|
-
}
|
|
211
|
-
else if (result.state == 'denied') {
|
|
212
|
-
goChatError.value =
|
|
213
|
-
'You have denied microphone access. Please enable microphone permission in your browser to continue the call.';
|
|
214
|
-
}
|
|
215
|
-
mediaPermissionState.value = result.state;
|
|
216
|
-
}
|
|
217
|
-
catch (err) {
|
|
218
|
-
console.log(err);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
|
-
const askMedialPermission = async () => {
|
|
223
|
-
try {
|
|
224
|
-
await navigator.mediaDevices.getUserMedia({ audio: true });
|
|
225
|
-
window.location.reload();
|
|
226
|
-
}
|
|
227
|
-
catch (e) {
|
|
228
|
-
console.log(e);
|
|
208
|
+
const handleExposeInit = (init_data) => {
|
|
209
|
+
if (init_data?.conversation_id) {
|
|
210
|
+
chatListRef.value?.initData({
|
|
211
|
+
conversation_id: init_data?.conversation_id,
|
|
212
|
+
is_unknown: init_data?.is_unknown || '0'
|
|
213
|
+
});
|
|
229
214
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
const reload = () => {
|
|
233
|
-
;
|
|
234
|
-
window.location.reload();
|
|
215
|
+
else
|
|
216
|
+
chatListRef.value?.initData();
|
|
235
217
|
};
|
|
236
218
|
let __VLS_exposed;
|
|
237
219
|
defineExpose({
|
|
@@ -251,11 +233,12 @@ defineExpose({
|
|
|
251
233
|
await callingRef.value?.answer();
|
|
252
234
|
},
|
|
253
235
|
endCall: () => callingRef.value?.endCall(),
|
|
254
|
-
openSettings
|
|
236
|
+
openSettings,
|
|
237
|
+
initData: (data) => handleExposeInit(data),
|
|
255
238
|
});
|
|
256
239
|
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
257
240
|
const __VLS_defaults = {
|
|
258
|
-
response: 'tablet'
|
|
241
|
+
response: 'tablet'
|
|
259
242
|
};
|
|
260
243
|
const __VLS_ctx = {
|
|
261
244
|
...{},
|
|
@@ -268,14 +251,13 @@ let __VLS_elements;
|
|
|
268
251
|
let __VLS_components;
|
|
269
252
|
let __VLS_directives;
|
|
270
253
|
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
271
|
-
...{ class: "go-chat-main max-w-full
|
|
272
|
-
...{ class: ({ 'md:p-8': !__VLS_ctx.isLib }) },
|
|
254
|
+
...{ class: "go-chat-main max-w-full" },
|
|
273
255
|
id: "appChatMain",
|
|
274
256
|
ref: "appChatRef",
|
|
275
257
|
});
|
|
276
258
|
/** @type {typeof __VLS_ctx.appChatRef} */ ;
|
|
277
259
|
// @ts-ignore
|
|
278
|
-
[
|
|
260
|
+
[appChatRef,];
|
|
279
261
|
if (!__VLS_ctx.isRouterReady) {
|
|
280
262
|
// @ts-ignore
|
|
281
263
|
[isRouterReady,];
|
|
@@ -350,103 +332,52 @@ else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE) {
|
|
|
350
332
|
}
|
|
351
333
|
else {
|
|
352
334
|
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
353
|
-
...{ class: "
|
|
335
|
+
...{ class: "grow h-full overflow-hidden flex flex-col" },
|
|
354
336
|
});
|
|
355
|
-
|
|
337
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
338
|
+
...{ class: "w-full grow flex overflow-hidden relative" },
|
|
339
|
+
});
|
|
340
|
+
if (__VLS_ctx.isLib) {
|
|
356
341
|
// @ts-ignore
|
|
357
|
-
[
|
|
358
|
-
|
|
359
|
-
...{ class: "shrink-0 w-full bg-chat-error text-white text-sm px-4 py-2 flex items-center justify-between gap-2" },
|
|
360
|
-
});
|
|
361
|
-
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({});
|
|
362
|
-
(__VLS_ctx.goChatError);
|
|
342
|
+
[isLib,];
|
|
343
|
+
/** @type {[typeof Calling, ]} */ ;
|
|
363
344
|
// @ts-ignore
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
[
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
__VLS_ctx.reload();
|
|
400
|
-
// @ts-ignore
|
|
401
|
-
[reload,];
|
|
402
|
-
} },
|
|
403
|
-
...{ class: "bg-white min-h-10 text-chat-haze-600 font-bold text-base w-[200px] rounded-lg" },
|
|
404
|
-
});
|
|
405
|
-
}
|
|
345
|
+
const __VLS_23 = __VLS_asFunctionalComponent(Calling, new Calling({
|
|
346
|
+
...{ 'onUserCalling': {} },
|
|
347
|
+
ref: "callingRef",
|
|
348
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
349
|
+
}));
|
|
350
|
+
const __VLS_24 = __VLS_23({
|
|
351
|
+
...{ 'onUserCalling': {} },
|
|
352
|
+
ref: "callingRef",
|
|
353
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
354
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_23));
|
|
355
|
+
let __VLS_26;
|
|
356
|
+
let __VLS_27;
|
|
357
|
+
const __VLS_28 = ({ userCalling: {} },
|
|
358
|
+
{ onUserCalling: (...[$event]) => {
|
|
359
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
360
|
+
return;
|
|
361
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
362
|
+
return;
|
|
363
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
364
|
+
return;
|
|
365
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
366
|
+
return;
|
|
367
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
368
|
+
return;
|
|
369
|
+
if (!(__VLS_ctx.isLib))
|
|
370
|
+
return;
|
|
371
|
+
__VLS_ctx.emit('userCalling', $event);
|
|
372
|
+
// @ts-ignore
|
|
373
|
+
[responsiveRender, emit,];
|
|
374
|
+
} });
|
|
375
|
+
/** @type {typeof __VLS_ctx.callingRef} */ ;
|
|
376
|
+
var __VLS_29 = {};
|
|
377
|
+
// @ts-ignore
|
|
378
|
+
[callingRef,];
|
|
379
|
+
var __VLS_25;
|
|
406
380
|
}
|
|
407
|
-
/** @type {[typeof Calling, ]} */ ;
|
|
408
|
-
// @ts-ignore
|
|
409
|
-
const __VLS_23 = __VLS_asFunctionalComponent(Calling, new Calling({
|
|
410
|
-
...{ 'onUserCalling': {} },
|
|
411
|
-
...{ 'onEndCall': {} },
|
|
412
|
-
...{ 'onError:mediaPermissionFail': {} },
|
|
413
|
-
ref: "callingRef",
|
|
414
|
-
responsive: (__VLS_ctx.responsiveRender),
|
|
415
|
-
}));
|
|
416
|
-
const __VLS_24 = __VLS_23({
|
|
417
|
-
...{ 'onUserCalling': {} },
|
|
418
|
-
...{ 'onEndCall': {} },
|
|
419
|
-
...{ 'onError:mediaPermissionFail': {} },
|
|
420
|
-
ref: "callingRef",
|
|
421
|
-
responsive: (__VLS_ctx.responsiveRender),
|
|
422
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_23));
|
|
423
|
-
let __VLS_26;
|
|
424
|
-
let __VLS_27;
|
|
425
|
-
const __VLS_28 = ({ userCalling: {} },
|
|
426
|
-
{ onUserCalling: (...[$event]) => {
|
|
427
|
-
if (!!(!__VLS_ctx.isRouterReady))
|
|
428
|
-
return;
|
|
429
|
-
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
430
|
-
return;
|
|
431
|
-
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
432
|
-
return;
|
|
433
|
-
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
434
|
-
return;
|
|
435
|
-
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
436
|
-
return;
|
|
437
|
-
__VLS_ctx.emit('userCalling', $event);
|
|
438
|
-
// @ts-ignore
|
|
439
|
-
[responsiveRender, emit,];
|
|
440
|
-
} });
|
|
441
|
-
const __VLS_29 = ({ endCall: {} },
|
|
442
|
-
{ onEndCall: (__VLS_ctx.handleEndCall) });
|
|
443
|
-
const __VLS_30 = ({ 'error:mediaPermissionFail': {} },
|
|
444
|
-
{ 'onError:mediaPermissionFail': (__VLS_ctx.handleMedialPermissionError) });
|
|
445
|
-
/** @type {typeof __VLS_ctx.callingRef} */ ;
|
|
446
|
-
var __VLS_31 = {};
|
|
447
|
-
// @ts-ignore
|
|
448
|
-
[handleEndCall, handleMedialPermissionError, callingRef,];
|
|
449
|
-
var __VLS_25;
|
|
450
381
|
if (__VLS_ctx.responsiveRender == 'mobile') {
|
|
451
382
|
// @ts-ignore
|
|
452
383
|
[responsiveRender,];
|
|
@@ -486,8 +417,8 @@ else {
|
|
|
486
417
|
});
|
|
487
418
|
/** @type {[typeof IconArrowLeft, ]} */ ;
|
|
488
419
|
// @ts-ignore
|
|
489
|
-
const
|
|
490
|
-
const
|
|
420
|
+
const __VLS_32 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
|
|
421
|
+
const __VLS_33 = __VLS_32({}, ...__VLS_functionalComponentArgsRest(__VLS_32));
|
|
491
422
|
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
492
423
|
...{ class: "ml-3" },
|
|
493
424
|
});
|
|
@@ -504,7 +435,7 @@ else {
|
|
|
504
435
|
// @ts-ignore
|
|
505
436
|
[currentPageConfig,];
|
|
506
437
|
}
|
|
507
|
-
else if (__VLS_ctx.dataProfile?.user_type == 'tenant'
|
|
438
|
+
else if (__VLS_ctx.dataProfile?.user_type == 'tenant') {
|
|
508
439
|
// @ts-ignore
|
|
509
440
|
[dataProfile,];
|
|
510
441
|
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
@@ -548,63 +479,65 @@ else {
|
|
|
548
479
|
});
|
|
549
480
|
/** @type {[typeof IconCloseCircle, ]} */ ;
|
|
550
481
|
// @ts-ignore
|
|
551
|
-
const
|
|
552
|
-
const
|
|
482
|
+
const __VLS_36 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
|
|
483
|
+
const __VLS_37 = __VLS_36({}, ...__VLS_functionalComponentArgsRest(__VLS_36));
|
|
553
484
|
}
|
|
554
485
|
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
555
486
|
...{ class: "grow overflow-hidden" },
|
|
556
487
|
});
|
|
557
488
|
/** @type {[typeof ChatList, ]} */ ;
|
|
558
489
|
// @ts-ignore
|
|
559
|
-
const
|
|
490
|
+
const __VLS_40 = __VLS_asFunctionalComponent(ChatList, new ChatList({
|
|
560
491
|
...{ 'onSelectReceiver': {} },
|
|
561
492
|
ref: "chatListRef",
|
|
562
493
|
...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
|
|
563
494
|
responsive: (__VLS_ctx.responsiveRender),
|
|
564
495
|
receiverId: (__VLS_ctx.receiverId),
|
|
565
496
|
}));
|
|
566
|
-
const
|
|
497
|
+
const __VLS_41 = __VLS_40({
|
|
567
498
|
...{ 'onSelectReceiver': {} },
|
|
568
499
|
ref: "chatListRef",
|
|
569
500
|
...{ class: "w-full max-w-[500px] !bg-[#F9FAFC]" },
|
|
570
501
|
responsive: (__VLS_ctx.responsiveRender),
|
|
571
502
|
receiverId: (__VLS_ctx.receiverId),
|
|
572
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
573
|
-
let
|
|
574
|
-
let
|
|
575
|
-
const
|
|
503
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_40));
|
|
504
|
+
let __VLS_43;
|
|
505
|
+
let __VLS_44;
|
|
506
|
+
const __VLS_45 = ({ selectReceiver: {} },
|
|
576
507
|
{ onSelectReceiver: (__VLS_ctx.selectReceiver) });
|
|
577
508
|
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CHAT_LIST) }, null, null);
|
|
578
509
|
/** @type {typeof __VLS_ctx.chatListRef} */ ;
|
|
579
|
-
var
|
|
510
|
+
var __VLS_46 = {};
|
|
580
511
|
// @ts-ignore
|
|
581
512
|
[currentPage, PAGE, responsiveRender, receiverId, selectReceiver, chatListRef,];
|
|
582
|
-
var
|
|
513
|
+
var __VLS_42;
|
|
583
514
|
/** @type {[typeof HomeComponent, ]} */ ;
|
|
584
515
|
// @ts-ignore
|
|
585
|
-
const
|
|
516
|
+
const __VLS_49 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
|
|
586
517
|
...{ 'onCall': {} },
|
|
587
518
|
...{ 'onBack': {} },
|
|
588
519
|
...{ 'onInputFocus': {} },
|
|
589
520
|
ref: "homeComponentRef",
|
|
590
521
|
receiverId: (__VLS_ctx.receiverId),
|
|
591
|
-
...{ class: "h-full
|
|
522
|
+
...{ class: "h-full" },
|
|
523
|
+
conversation: (__VLS_ctx.currentConversation),
|
|
592
524
|
responsive: (__VLS_ctx.responsiveRender),
|
|
593
525
|
}));
|
|
594
|
-
const
|
|
526
|
+
const __VLS_50 = __VLS_49({
|
|
595
527
|
...{ 'onCall': {} },
|
|
596
528
|
...{ 'onBack': {} },
|
|
597
529
|
...{ 'onInputFocus': {} },
|
|
598
530
|
ref: "homeComponentRef",
|
|
599
531
|
receiverId: (__VLS_ctx.receiverId),
|
|
600
|
-
...{ class: "h-full
|
|
532
|
+
...{ class: "h-full" },
|
|
533
|
+
conversation: (__VLS_ctx.currentConversation),
|
|
601
534
|
responsive: (__VLS_ctx.responsiveRender),
|
|
602
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
603
|
-
let
|
|
604
|
-
let
|
|
605
|
-
const
|
|
535
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_49));
|
|
536
|
+
let __VLS_52;
|
|
537
|
+
let __VLS_53;
|
|
538
|
+
const __VLS_54 = ({ call: {} },
|
|
606
539
|
{ onCall: (__VLS_ctx.handleCall) });
|
|
607
|
-
const
|
|
540
|
+
const __VLS_55 = ({ back: {} },
|
|
608
541
|
{ onBack: (...[$event]) => {
|
|
609
542
|
if (!!(!__VLS_ctx.isRouterReady))
|
|
610
543
|
return;
|
|
@@ -620,113 +553,121 @@ else {
|
|
|
620
553
|
return;
|
|
621
554
|
__VLS_ctx.currentPageConfig.backFunc?.();
|
|
622
555
|
// @ts-ignore
|
|
623
|
-
[responsiveRender, currentPageConfig, receiverId, handleCall,];
|
|
556
|
+
[responsiveRender, currentPageConfig, receiverId, currentConversation, handleCall,];
|
|
624
557
|
} });
|
|
625
|
-
const
|
|
558
|
+
const __VLS_56 = ({ inputFocus: {} },
|
|
626
559
|
{ onInputFocus: (__VLS_ctx.handleReadMessage) });
|
|
627
560
|
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME) }, null, null);
|
|
628
561
|
/** @type {typeof __VLS_ctx.homeComponentRef} */ ;
|
|
629
|
-
var
|
|
562
|
+
var __VLS_57 = {};
|
|
630
563
|
// @ts-ignore
|
|
631
564
|
[currentPage, PAGE, handleReadMessage, homeComponentRef,];
|
|
632
|
-
var
|
|
565
|
+
var __VLS_51;
|
|
633
566
|
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
|
|
634
567
|
// @ts-ignore
|
|
635
568
|
[currentPage, PAGE,];
|
|
636
569
|
/** @type {[typeof CustomerDetail, ]} */ ;
|
|
637
570
|
// @ts-ignore
|
|
638
|
-
const
|
|
571
|
+
const __VLS_60 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
|
|
639
572
|
ref: "customerDetailRef",
|
|
640
573
|
receiverId: (__VLS_ctx.receiverId),
|
|
641
574
|
...{ class: "w-full h-full" },
|
|
642
575
|
responsive: (__VLS_ctx.responsiveRender),
|
|
643
576
|
}));
|
|
644
|
-
const
|
|
577
|
+
const __VLS_61 = __VLS_60({
|
|
645
578
|
ref: "customerDetailRef",
|
|
646
579
|
receiverId: (__VLS_ctx.receiverId),
|
|
647
580
|
...{ class: "w-full h-full" },
|
|
648
581
|
responsive: (__VLS_ctx.responsiveRender),
|
|
649
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
582
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_60));
|
|
650
583
|
/** @type {typeof __VLS_ctx.customerDetailRef} */ ;
|
|
651
|
-
var
|
|
584
|
+
var __VLS_63 = {};
|
|
652
585
|
// @ts-ignore
|
|
653
586
|
[responsiveRender, receiverId, customerDetailRef,];
|
|
654
|
-
var
|
|
587
|
+
var __VLS_62;
|
|
655
588
|
}
|
|
656
589
|
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
|
|
657
590
|
// @ts-ignore
|
|
658
591
|
[currentPage, PAGE,];
|
|
659
592
|
/** @type {[typeof CustomerCheckIn, ]} */ ;
|
|
660
593
|
// @ts-ignore
|
|
661
|
-
const
|
|
594
|
+
const __VLS_66 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
|
|
662
595
|
...{ class: "w-full h-full" },
|
|
663
596
|
}));
|
|
664
|
-
const
|
|
597
|
+
const __VLS_67 = __VLS_66({
|
|
665
598
|
...{ class: "w-full h-full" },
|
|
666
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
599
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_66));
|
|
667
600
|
}
|
|
668
601
|
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
|
|
669
602
|
// @ts-ignore
|
|
670
603
|
[currentPage, PAGE,];
|
|
671
604
|
/** @type {[typeof CustomerAppointment, ]} */ ;
|
|
672
605
|
// @ts-ignore
|
|
673
|
-
const
|
|
606
|
+
const __VLS_70 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
|
|
674
607
|
...{ class: "w-full h-full" },
|
|
675
608
|
}));
|
|
676
|
-
const
|
|
609
|
+
const __VLS_71 = __VLS_70({
|
|
677
610
|
...{ class: "w-full h-full" },
|
|
678
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
679
|
-
}
|
|
680
|
-
if (__VLS_ctx.currentPage != __VLS_ctx.PAGE.HOME) {
|
|
681
|
-
// @ts-ignore
|
|
682
|
-
[currentPage, PAGE,];
|
|
683
|
-
/** @type {[typeof MobileFooter, ]} */ ;
|
|
684
|
-
// @ts-ignore
|
|
685
|
-
const __VLS_76 = __VLS_asFunctionalComponent(MobileFooter, new MobileFooter({
|
|
686
|
-
...{ class: "shrink-0" },
|
|
687
|
-
}));
|
|
688
|
-
const __VLS_77 = __VLS_76({
|
|
689
|
-
...{ class: "shrink-0" },
|
|
690
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_76));
|
|
611
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_70));
|
|
691
612
|
}
|
|
692
613
|
}
|
|
693
614
|
else {
|
|
694
615
|
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
695
|
-
...{ class: "flex
|
|
616
|
+
...{ class: "flex h-full w-full relative" },
|
|
696
617
|
});
|
|
697
618
|
/** @type {[typeof ChatList, ]} */ ;
|
|
698
619
|
// @ts-ignore
|
|
699
|
-
const
|
|
620
|
+
const __VLS_74 = __VLS_asFunctionalComponent(ChatList, new ChatList({
|
|
700
621
|
...{ 'onSelectReceiver': {} },
|
|
622
|
+
...{ 'onOpenPhoneNumpad': {} },
|
|
701
623
|
ref: "chatListRef",
|
|
702
|
-
...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
|
|
624
|
+
...{ class: "w-[38%] max-w-[500px] min-w-[300px] xl:min-w-[450px] border-r layout-border" },
|
|
703
625
|
responsive: (__VLS_ctx.responsiveRender),
|
|
704
626
|
receiverId: (__VLS_ctx.receiverId),
|
|
705
627
|
}));
|
|
706
|
-
const
|
|
628
|
+
const __VLS_75 = __VLS_74({
|
|
707
629
|
...{ 'onSelectReceiver': {} },
|
|
630
|
+
...{ 'onOpenPhoneNumpad': {} },
|
|
708
631
|
ref: "chatListRef",
|
|
709
|
-
...{ class: "w-[38%] max-w-[500px] min-w-[450px]" },
|
|
632
|
+
...{ class: "w-[38%] max-w-[500px] min-w-[300px] xl:min-w-[450px] border-r layout-border" },
|
|
710
633
|
responsive: (__VLS_ctx.responsiveRender),
|
|
711
634
|
receiverId: (__VLS_ctx.receiverId),
|
|
712
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
713
|
-
let
|
|
714
|
-
let
|
|
715
|
-
const
|
|
635
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_74));
|
|
636
|
+
let __VLS_77;
|
|
637
|
+
let __VLS_78;
|
|
638
|
+
const __VLS_79 = ({ selectReceiver: {} },
|
|
716
639
|
{ onSelectReceiver: (__VLS_ctx.selectReceiver) });
|
|
640
|
+
const __VLS_80 = ({ openPhoneNumpad: {} },
|
|
641
|
+
{ onOpenPhoneNumpad: (...[$event]) => {
|
|
642
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
643
|
+
return;
|
|
644
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
645
|
+
return;
|
|
646
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
647
|
+
return;
|
|
648
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
649
|
+
return;
|
|
650
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
651
|
+
return;
|
|
652
|
+
if (!!(__VLS_ctx.responsiveRender == 'mobile'))
|
|
653
|
+
return;
|
|
654
|
+
__VLS_ctx.emit('openPhoneNumpad');
|
|
655
|
+
// @ts-ignore
|
|
656
|
+
[responsiveRender, emit, receiverId, selectReceiver,];
|
|
657
|
+
} });
|
|
717
658
|
/** @type {typeof __VLS_ctx.chatListRef} */ ;
|
|
718
|
-
var
|
|
659
|
+
var __VLS_81 = {};
|
|
719
660
|
// @ts-ignore
|
|
720
|
-
[
|
|
721
|
-
var
|
|
661
|
+
[chatListRef,];
|
|
662
|
+
var __VLS_76;
|
|
722
663
|
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
723
|
-
...{ class: "
|
|
664
|
+
...{ class: "bg-white grow flex flex-col h-full overflow-hidden" },
|
|
724
665
|
});
|
|
725
666
|
if (__VLS_ctx.currentPageConfig?.backFunc) {
|
|
726
667
|
// @ts-ignore
|
|
727
668
|
[currentPageConfig,];
|
|
728
669
|
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
729
|
-
...{ class: "text-[#141B34] px-6" },
|
|
670
|
+
...{ class: "text-[#141B34] px-6 mt-4" },
|
|
730
671
|
});
|
|
731
672
|
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
732
673
|
...{ onClick: (...[$event]) => {
|
|
@@ -752,8 +693,8 @@ else {
|
|
|
752
693
|
});
|
|
753
694
|
/** @type {[typeof IconArrowLeft, ]} */ ;
|
|
754
695
|
// @ts-ignore
|
|
755
|
-
const
|
|
756
|
-
const
|
|
696
|
+
const __VLS_84 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
|
|
697
|
+
const __VLS_85 = __VLS_84({}, ...__VLS_functionalComponentArgsRest(__VLS_84));
|
|
757
698
|
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
758
699
|
...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
|
|
759
700
|
});
|
|
@@ -766,122 +707,102 @@ else {
|
|
|
766
707
|
});
|
|
767
708
|
/** @type {[typeof HomeComponent, ]} */ ;
|
|
768
709
|
// @ts-ignore
|
|
769
|
-
const
|
|
710
|
+
const __VLS_88 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
|
|
770
711
|
...{ 'onCall': {} },
|
|
771
712
|
...{ 'onInputFocus': {} },
|
|
772
713
|
ref: "homeComponentRef",
|
|
773
714
|
receiverId: (__VLS_ctx.receiverId),
|
|
774
715
|
...{ class: "h-full" },
|
|
775
716
|
responsive: (__VLS_ctx.responsiveRender),
|
|
717
|
+
conversation: (__VLS_ctx.currentConversation),
|
|
776
718
|
}));
|
|
777
|
-
const
|
|
719
|
+
const __VLS_89 = __VLS_88({
|
|
778
720
|
...{ 'onCall': {} },
|
|
779
721
|
...{ 'onInputFocus': {} },
|
|
780
722
|
ref: "homeComponentRef",
|
|
781
723
|
receiverId: (__VLS_ctx.receiverId),
|
|
782
724
|
...{ class: "h-full" },
|
|
783
725
|
responsive: (__VLS_ctx.responsiveRender),
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
let
|
|
787
|
-
|
|
726
|
+
conversation: (__VLS_ctx.currentConversation),
|
|
727
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_88));
|
|
728
|
+
let __VLS_91;
|
|
729
|
+
let __VLS_92;
|
|
730
|
+
const __VLS_93 = ({ call: {} },
|
|
788
731
|
{ onCall: (__VLS_ctx.handleCall) });
|
|
789
|
-
const
|
|
732
|
+
const __VLS_94 = ({ inputFocus: {} },
|
|
790
733
|
{ onInputFocus: (__VLS_ctx.handleReadMessage) });
|
|
791
734
|
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME && __VLS_ctx.receiverId) }, null, null);
|
|
792
735
|
/** @type {typeof __VLS_ctx.homeComponentRef} */ ;
|
|
793
|
-
var
|
|
736
|
+
var __VLS_95 = {};
|
|
794
737
|
// @ts-ignore
|
|
795
|
-
[currentPage, PAGE, responsiveRender, receiverId, receiverId, handleCall, handleReadMessage, homeComponentRef,];
|
|
796
|
-
var
|
|
738
|
+
[currentPage, PAGE, responsiveRender, receiverId, receiverId, currentConversation, handleCall, handleReadMessage, homeComponentRef,];
|
|
739
|
+
var __VLS_90;
|
|
797
740
|
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
|
|
798
741
|
// @ts-ignore
|
|
799
742
|
[currentPage, PAGE,];
|
|
800
743
|
/** @type {[typeof CustomerDetail, ]} */ ;
|
|
801
744
|
// @ts-ignore
|
|
802
|
-
const
|
|
745
|
+
const __VLS_98 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
|
|
803
746
|
ref: "customerDetailRef",
|
|
804
747
|
receiverId: (__VLS_ctx.receiverId),
|
|
805
748
|
...{ class: "h-full" },
|
|
806
749
|
responsive: (__VLS_ctx.responsiveRender),
|
|
807
750
|
}));
|
|
808
|
-
const
|
|
751
|
+
const __VLS_99 = __VLS_98({
|
|
809
752
|
ref: "customerDetailRef",
|
|
810
753
|
receiverId: (__VLS_ctx.receiverId),
|
|
811
754
|
...{ class: "h-full" },
|
|
812
755
|
responsive: (__VLS_ctx.responsiveRender),
|
|
813
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
756
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_98));
|
|
814
757
|
/** @type {typeof __VLS_ctx.customerDetailRef} */ ;
|
|
815
|
-
var
|
|
758
|
+
var __VLS_101 = {};
|
|
816
759
|
// @ts-ignore
|
|
817
760
|
[responsiveRender, receiverId, customerDetailRef,];
|
|
818
|
-
var
|
|
761
|
+
var __VLS_100;
|
|
819
762
|
}
|
|
820
763
|
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
|
|
821
764
|
// @ts-ignore
|
|
822
765
|
[currentPage, PAGE,];
|
|
823
766
|
/** @type {[typeof CustomerCheckIn, ]} */ ;
|
|
824
767
|
// @ts-ignore
|
|
825
|
-
const
|
|
768
|
+
const __VLS_104 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
|
|
826
769
|
...{ class: "h-full" },
|
|
827
770
|
}));
|
|
828
|
-
const
|
|
771
|
+
const __VLS_105 = __VLS_104({
|
|
829
772
|
...{ class: "h-full" },
|
|
830
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
773
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_104));
|
|
831
774
|
}
|
|
832
775
|
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
|
|
833
776
|
// @ts-ignore
|
|
834
777
|
[currentPage, PAGE,];
|
|
835
778
|
/** @type {[typeof CustomerAppointment, ]} */ ;
|
|
836
779
|
// @ts-ignore
|
|
837
|
-
const
|
|
780
|
+
const __VLS_108 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
|
|
838
781
|
...{ class: "h-full" },
|
|
839
782
|
}));
|
|
840
|
-
const
|
|
783
|
+
const __VLS_109 = __VLS_108({
|
|
841
784
|
...{ class: "h-full" },
|
|
842
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
785
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_108));
|
|
843
786
|
}
|
|
844
787
|
}
|
|
788
|
+
var __VLS_112 = {};
|
|
845
789
|
}
|
|
846
790
|
/** @type {__VLS_StyleScopedClasses['go-chat-main']} */ ;
|
|
847
791
|
/** @type {__VLS_StyleScopedClasses['max-w-full']} */ ;
|
|
848
|
-
/** @type {__VLS_StyleScopedClasses['p-0']} */ ;
|
|
849
|
-
/** @type {__VLS_StyleScopedClasses['overscroll-x-none']} */ ;
|
|
850
|
-
/** @type {__VLS_StyleScopedClasses['md:p-8']} */ ;
|
|
851
792
|
/** @type {__VLS_StyleScopedClasses['m-auto']} */ ;
|
|
852
793
|
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
853
794
|
/** @type {__VLS_StyleScopedClasses['sc-full']} */ ;
|
|
854
795
|
/** @type {__VLS_StyleScopedClasses['mt-10']} */ ;
|
|
855
|
-
/** @type {__VLS_StyleScopedClasses['
|
|
796
|
+
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
856
797
|
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
798
|
+
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
857
799
|
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
858
800
|
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
859
|
-
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
860
|
-
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
861
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
862
801
|
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
863
|
-
/** @type {__VLS_StyleScopedClasses['
|
|
864
|
-
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
865
|
-
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
866
|
-
/** @type {__VLS_StyleScopedClasses['px-4']} */ ;
|
|
867
|
-
/** @type {__VLS_StyleScopedClasses['py-2']} */ ;
|
|
802
|
+
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
868
803
|
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
869
|
-
/** @type {__VLS_StyleScopedClasses['
|
|
870
|
-
/** @type {__VLS_StyleScopedClasses['
|
|
871
|
-
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
872
|
-
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
873
|
-
/** @type {__VLS_StyleScopedClasses['min-h-10']} */ ;
|
|
874
|
-
/** @type {__VLS_StyleScopedClasses['text-chat-haze-600']} */ ;
|
|
875
|
-
/** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
|
|
876
|
-
/** @type {__VLS_StyleScopedClasses['w-[250px]']} */ ;
|
|
877
|
-
/** @type {__VLS_StyleScopedClasses['rounded-lg']} */ ;
|
|
878
|
-
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
879
|
-
/** @type {__VLS_StyleScopedClasses['min-h-10']} */ ;
|
|
880
|
-
/** @type {__VLS_StyleScopedClasses['text-chat-haze-600']} */ ;
|
|
881
|
-
/** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
|
|
882
|
-
/** @type {__VLS_StyleScopedClasses['text-base']} */ ;
|
|
883
|
-
/** @type {__VLS_StyleScopedClasses['w-[200px]']} */ ;
|
|
884
|
-
/** @type {__VLS_StyleScopedClasses['rounded-lg']} */ ;
|
|
804
|
+
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
805
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
885
806
|
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
886
807
|
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
887
808
|
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
@@ -922,30 +843,31 @@ else {
|
|
|
922
843
|
/** @type {__VLS_StyleScopedClasses['max-w-[500px]']} */ ;
|
|
923
844
|
/** @type {__VLS_StyleScopedClasses['!bg-[#F9FAFC]']} */ ;
|
|
924
845
|
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
925
|
-
/** @type {__VLS_StyleScopedClasses['pt-4']} */ ;
|
|
926
846
|
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
927
847
|
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
928
848
|
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
929
849
|
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
930
850
|
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
931
851
|
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
932
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
933
852
|
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
934
|
-
/** @type {__VLS_StyleScopedClasses['gap-4']} */ ;
|
|
935
853
|
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
854
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
936
855
|
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
937
856
|
/** @type {__VLS_StyleScopedClasses['w-[38%]']} */ ;
|
|
938
857
|
/** @type {__VLS_StyleScopedClasses['max-w-[500px]']} */ ;
|
|
939
|
-
/** @type {__VLS_StyleScopedClasses['min-w-[
|
|
940
|
-
/** @type {__VLS_StyleScopedClasses['
|
|
858
|
+
/** @type {__VLS_StyleScopedClasses['min-w-[300px]']} */ ;
|
|
859
|
+
/** @type {__VLS_StyleScopedClasses['xl:min-w-[450px]']} */ ;
|
|
860
|
+
/** @type {__VLS_StyleScopedClasses['border-r']} */ ;
|
|
861
|
+
/** @type {__VLS_StyleScopedClasses['layout-border']} */ ;
|
|
862
|
+
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
941
863
|
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
942
864
|
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
943
865
|
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
944
866
|
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
945
|
-
/** @type {__VLS_StyleScopedClasses['pt-6']} */ ;
|
|
946
867
|
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
947
868
|
/** @type {__VLS_StyleScopedClasses['text-[#141B34]']} */ ;
|
|
948
869
|
/** @type {__VLS_StyleScopedClasses['px-6']} */ ;
|
|
870
|
+
/** @type {__VLS_StyleScopedClasses['mt-4']} */ ;
|
|
949
871
|
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
950
872
|
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
951
873
|
/** @type {__VLS_StyleScopedClasses['text-xl']} */ ;
|
|
@@ -959,11 +881,12 @@ else {
|
|
|
959
881
|
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
960
882
|
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
961
883
|
// @ts-ignore
|
|
962
|
-
var
|
|
963
|
-
const
|
|
884
|
+
var __VLS_30 = __VLS_29, __VLS_47 = __VLS_46, __VLS_58 = __VLS_57, __VLS_64 = __VLS_63, __VLS_82 = __VLS_81, __VLS_96 = __VLS_95, __VLS_102 = __VLS_101, __VLS_113 = __VLS_112;
|
|
885
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
964
886
|
setup: () => (__VLS_exposed),
|
|
965
887
|
__typeEmits: {},
|
|
966
888
|
__typeProps: {},
|
|
967
889
|
props: {},
|
|
968
890
|
});
|
|
891
|
+
const __VLS_export = {};
|
|
969
892
|
export default {};
|