@phonghq/go-chat 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/dist/assets/icons/IconArrowLeft.vue.d.ts +2 -0
  2. package/dist/assets/icons/IconPhone.vue.d.ts +2 -0
  3. package/dist/assets/icons/IconPlan.vue.d.ts +2 -0
  4. package/dist/assets/icons/IconPlus.vue.d.ts +2 -0
  5. package/dist/assets/icons/IconSearch.vue.d.ts +32 -0
  6. package/dist/assets/icons/call/IconMic.vue.d.ts +14 -0
  7. package/dist/assets/icons/call/IconPhone.vue.d.ts +2 -0
  8. package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +2 -0
  9. package/dist/assets/icons/call/IconSpeaker.vue.d.ts +14 -0
  10. package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +2 -0
  11. package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +2 -0
  12. package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +2 -0
  13. package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +2 -0
  14. package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +2 -0
  15. package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +2 -0
  16. package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +2 -0
  17. package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +2 -0
  18. package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +2 -0
  19. package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +2 -0
  20. package/dist/chat/App.vue.d.ts +5 -0
  21. package/dist/chat/main.d.ts +6 -0
  22. package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +2 -0
  23. package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +12 -0
  24. package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +2 -0
  25. package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +7 -0
  26. package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +16 -0
  27. package/dist/chat/page/error/Error.vue.d.ts +2 -0
  28. package/dist/chat/page/home/ChatList.vue.d.ts +20 -0
  29. package/dist/chat/page/home/ChatMessage.vue.d.ts +17 -0
  30. package/dist/chat/page/home/Home.vue.d.ts +14 -0
  31. package/dist/chat/page/home/HomeHeader.vue.d.ts +10 -0
  32. package/dist/chat/page/home/InputChat.vue.d.ts +19 -0
  33. package/dist/chat/page/home/NewCustomer.vue.d.ts +6 -0
  34. package/dist/components/ListenEvent.vue.d.ts +2 -0
  35. package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +22 -0
  36. package/dist/components/chat/call/Calling.vue.d.ts +7 -0
  37. package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +13 -0
  38. package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +20 -0
  39. package/dist/components/chat/common/input/InputSearch.vue.d.ts +16 -0
  40. package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +35 -0
  41. package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +2 -0
  42. package/dist/components/chat/customer/Avatar.vue.d.ts +12 -0
  43. package/dist/components/chat/layout/mobile/Footer.vue.d.ts +2 -0
  44. package/dist/components/common/CustomLoading.vue.d.ts +2 -0
  45. package/dist/components/common/Notification/NotificationDescription.vue.d.ts +7 -0
  46. package/dist/components/common/button/ButtonBase.vue.d.ts +22 -0
  47. package/dist/components/common/button/ButtonToggle.vue.d.ts +20 -0
  48. package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +16 -0
  49. package/dist/components/common/collapse/BaseCollapse.vue.d.ts +12 -0
  50. package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +4 -0
  51. package/dist/components/common/drawer/DrawerBase.vue.d.ts +39 -0
  52. package/dist/components/common/dropdown/DropdownBase.vue.d.ts +21 -0
  53. package/dist/components/common/input/CInputSearch.vue.d.ts +14 -0
  54. package/dist/components/common/modal/ModalBase.vue.d.ts +35 -0
  55. package/dist/components/common/popover/PopoverBase.vue.d.ts +3 -0
  56. package/dist/components/common/slider/BaseSlider.vue.d.ts +11 -0
  57. package/dist/components/common/spin/CSpin.vue.d.ts +9 -0
  58. package/dist/components/common/tooltip/TooltipBase.vue.d.ts +2 -0
  59. package/dist/components/layout/Blank.vue.d.ts +9 -0
  60. package/dist/components/layout/Default.vue.d.ts +9 -0
  61. package/dist/components/modal/Confirm.vue.d.ts +2 -0
  62. package/dist/components/ui/button/CButton.vue.d.ts +19 -0
  63. package/dist/components/ui/button/c-button.d.ts +7 -0
  64. package/dist/components/ui/checkbox/Checkbox.vue.d.ts +18 -0
  65. package/dist/components/ui/checkbox/index.d.ts +1 -0
  66. package/dist/components/ui/collapsible/Collapsible.vue.d.ts +16 -0
  67. package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +10 -0
  68. package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +10 -0
  69. package/dist/components/ui/collapsible/index.d.ts +3 -0
  70. package/dist/components/ui/dialog/Dialog.vue.d.ts +14 -0
  71. package/dist/components/ui/dialog/DialogClose.vue.d.ts +10 -0
  72. package/dist/components/ui/dialog/DialogContent.vue.d.ts +29 -0
  73. package/dist/components/ui/dialog/DialogDescription.vue.d.ts +14 -0
  74. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +13 -0
  75. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +13 -0
  76. package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +30 -0
  77. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +14 -0
  78. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +10 -0
  79. package/dist/components/ui/dialog/index.d.ts +9 -0
  80. package/dist/components/ui/drawer/Drawer.vue.d.ts +26 -0
  81. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +33 -0
  82. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +14 -0
  83. package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +13 -0
  84. package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +13 -0
  85. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +7 -0
  86. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +14 -0
  87. package/dist/components/ui/drawer/index.d.ts +8 -0
  88. package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +14 -0
  89. package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +20 -0
  90. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +28 -0
  91. package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +10 -0
  92. package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +15 -0
  93. package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +15 -0
  94. package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +14 -0
  95. package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +18 -0
  96. package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
  97. package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +13 -0
  98. package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +14 -0
  99. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +30 -0
  100. package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +14 -0
  101. package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +10 -0
  102. package/dist/components/ui/dropdown-menu/index.d.ts +15 -0
  103. package/dist/components/ui/popover/Popover.vue.d.ts +14 -0
  104. package/dist/components/ui/popover/PopoverContent.vue.d.ts +28 -0
  105. package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +10 -0
  106. package/dist/components/ui/popover/index.d.ts +3 -0
  107. package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +18 -0
  108. package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +7 -0
  109. package/dist/components/ui/radio-group/index.d.ts +2 -0
  110. package/dist/components/ui/slider/Slider.vue.d.ts +13 -0
  111. package/dist/components/ui/slider/index.d.ts +1 -0
  112. package/dist/components/ui/switch/Switch.vue.d.ts +18 -0
  113. package/dist/components/ui/switch/index.d.ts +1 -0
  114. package/dist/composable/useCallHelper.d.ts +23 -0
  115. package/dist/composable/useDigibot.d.ts +7 -0
  116. package/dist/composable/useInitData.d.ts +11 -0
  117. package/dist/composable/useModalConfirm.d.ts +5 -0
  118. package/dist/constant/color.d.ts +22 -0
  119. package/dist/constant/datetime.d.ts +5 -0
  120. package/dist/constant/general.d.ts +8 -0
  121. package/dist/constant/message.d.ts +8 -0
  122. package/dist/constant/mqtt.d.ts +4 -0
  123. package/dist/constant/user.d.ts +8 -0
  124. package/dist/lib/utils.d.ts +2 -0
  125. package/dist/plugins/axios-gci.d.ts +3 -0
  126. package/dist/plugins/axios.d.ts +3 -0
  127. package/dist/plugins/mqtt.d.ts +10 -0
  128. package/dist/plugins/sdk.d.ts +19 -0
  129. package/dist/plugins/websocket.d.ts +4 -0
  130. package/dist/style.css +1 -1
  131. package/dist/test/assets/icons/IconArrowLeft.vue.js +29 -0
  132. package/dist/test/assets/icons/IconPhone.vue.js +19 -0
  133. package/dist/test/assets/icons/IconPlan.vue.js +19 -0
  134. package/dist/test/assets/icons/IconPlus.vue.js +22 -0
  135. package/dist/test/assets/icons/IconSearch.vue.js +68 -0
  136. package/dist/test/assets/icons/call/IconMic.vue.js +123 -0
  137. package/dist/test/assets/icons/call/IconPhone.vue.js +35 -0
  138. package/dist/test/assets/icons/call/IconPhoneCancel.vue.js +35 -0
  139. package/dist/test/assets/icons/call/IconSpeaker.vue.js +62 -0
  140. package/dist/test/assets/icons/customer-appointment/IconFilter.vue.js +53 -0
  141. package/dist/test/assets/icons/customer-detail/IconArrow.vue.js +22 -0
  142. package/dist/test/assets/icons/customer-detail/IconCheck.vue.js +27 -0
  143. package/dist/test/assets/icons/customer-detail/IconDate.vue.js +43 -0
  144. package/dist/test/assets/icons/customer-detail/IconGroup.vue.js +48 -0
  145. package/dist/test/assets/icons/customer-detail/IconMessage.vue.js +28 -0
  146. package/dist/test/assets/icons/customer-detail/IconNote.vue.js +29 -0
  147. package/dist/test/assets/icons/customer-detail/IconPhone.vue.js +21 -0
  148. package/dist/test/assets/icons/customer-detail/IconPin.vue.js +29 -0
  149. package/dist/test/assets/icons/customer-detail/IconSearch.vue.js +29 -0
  150. package/dist/test/chat/App.vue.js +502 -0
  151. package/dist/test/chat/main.js +6 -0
  152. package/dist/test/chat/page/customer-appointment/CustomerAppointment.vue.js +207 -0
  153. package/dist/test/chat/page/customer-check-in/CollapseCheckIn.vue.js +80 -0
  154. package/dist/test/chat/page/customer-check-in/CustomerCheckIn.vue.js +136 -0
  155. package/dist/test/chat/page/customer-detail/CustomerDetail.vue.js +235 -0
  156. package/dist/test/chat/page/customer-detail/SubInformation.vue.js +102 -0
  157. package/dist/test/chat/page/error/Error.vue.js +64 -0
  158. package/dist/test/chat/page/home/ChatList.vue.js +387 -0
  159. package/dist/test/chat/page/home/ChatMessage.vue.js +295 -0
  160. package/dist/test/chat/page/home/Home.vue.js +332 -0
  161. package/dist/test/chat/page/home/HomeHeader.vue.js +127 -0
  162. package/dist/test/chat/page/home/InputChat.vue.js +255 -0
  163. package/dist/test/chat/page/home/NewCustomer.vue.js +84 -0
  164. package/dist/test/components/ListenEvent.vue.js +45 -0
  165. package/dist/test/components/chat/ScrollEvent/ScrollEvent.vue.js +197 -0
  166. package/dist/test/components/chat/call/Calling.vue.js +291 -0
  167. package/dist/test/components/chat/card/CardCustomerDetail.vue.js +28 -0
  168. package/dist/test/components/chat/common/collapse/CollapseBase.vue.js +59 -0
  169. package/dist/test/components/chat/common/input/InputSearch.vue.js +71 -0
  170. package/dist/test/components/chat/common/popover/PopoverBase.vue.js +148 -0
  171. package/dist/test/components/chat/common/spin/BaseSpin.vue.js +12 -0
  172. package/dist/test/components/chat/customer/Avatar.vue.js +101 -0
  173. package/dist/test/components/chat/layout/mobile/Footer.vue.js +109 -0
  174. package/dist/test/components/common/CustomLoading.vue.js +19 -0
  175. package/dist/test/components/common/Notification/NotificationDescription.vue.js +38 -0
  176. package/dist/test/components/common/button/ButtonBase.vue.js +78 -0
  177. package/dist/test/components/common/button/ButtonToggle.vue.js +70 -0
  178. package/dist/test/components/common/checkbox/CCheckboxNumber.vue.js +48 -0
  179. package/dist/test/components/common/collapse/BaseCollapse.vue.js +36 -0
  180. package/dist/test/components/common/collapse/BaseCollapseItem.vue.js +22 -0
  181. package/dist/test/components/common/drawer/DrawerBase.vue.js +126 -0
  182. package/dist/test/components/common/dropdown/DropdownBase.vue.js +91 -0
  183. package/dist/test/components/common/input/CInputSearch.vue.js +62 -0
  184. package/dist/test/components/common/modal/ModalBase.vue.js +164 -0
  185. package/dist/test/components/common/popover/PopoverBase.vue.js +36 -0
  186. package/dist/test/components/common/slider/BaseSlider.vue.js +70 -0
  187. package/dist/test/components/common/spin/CSpin.vue.js +41 -0
  188. package/dist/test/components/common/tooltip/TooltipBase.vue.js +8 -0
  189. package/dist/test/components/layout/Blank.vue.js +19 -0
  190. package/dist/test/components/layout/Default.vue.js +21 -0
  191. package/dist/test/components/modal/Confirm.vue.js +164 -0
  192. package/dist/test/components/ui/button/CButton.vue.js +49 -0
  193. package/dist/test/components/ui/button/c-button.js +26 -0
  194. package/dist/test/components/ui/checkbox/Checkbox.vue.js +79 -0
  195. package/dist/test/components/ui/checkbox/index.js +1 -0
  196. package/dist/test/components/ui/collapsible/Collapsible.vue.js +47 -0
  197. package/dist/test/components/ui/collapsible/CollapsibleContent.vue.js +41 -0
  198. package/dist/test/components/ui/collapsible/CollapsibleTrigger.vue.js +35 -0
  199. package/dist/test/components/ui/collapsible/index.js +3 -0
  200. package/dist/test/components/ui/dialog/Dialog.vue.js +42 -0
  201. package/dist/test/components/ui/dialog/DialogClose.vue.js +35 -0
  202. package/dist/test/components/ui/dialog/DialogContent.vue.js +84 -0
  203. package/dist/test/components/ui/dialog/DialogDescription.vue.js +43 -0
  204. package/dist/test/components/ui/dialog/DialogFooter.vue.js +26 -0
  205. package/dist/test/components/ui/dialog/DialogHeader.vue.js +26 -0
  206. package/dist/test/components/ui/dialog/DialogScrollContent.vue.js +99 -0
  207. package/dist/test/components/ui/dialog/DialogTitle.vue.js +43 -0
  208. package/dist/test/components/ui/dialog/DialogTrigger.vue.js +35 -0
  209. package/dist/test/components/ui/dialog/index.js +9 -0
  210. package/dist/test/components/ui/drawer/Drawer.vue.js +48 -0
  211. package/dist/test/components/ui/drawer/DrawerContent.vue.js +81 -0
  212. package/dist/test/components/ui/drawer/DrawerDescription.vue.js +42 -0
  213. package/dist/test/components/ui/drawer/DrawerFooter.vue.js +26 -0
  214. package/dist/test/components/ui/drawer/DrawerHeader.vue.js +26 -0
  215. package/dist/test/components/ui/drawer/DrawerOverlay.vue.js +37 -0
  216. package/dist/test/components/ui/drawer/DrawerTitle.vue.js +42 -0
  217. package/dist/test/components/ui/drawer/index.js +8 -0
  218. package/dist/test/components/ui/dropdown-menu/DropdownMenu.vue.js +41 -0
  219. package/dist/test/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +79 -0
  220. package/dist/test/components/ui/dropdown-menu/DropdownMenuContent.vue.js +61 -0
  221. package/dist/test/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +35 -0
  222. package/dist/test/components/ui/dropdown-menu/DropdownMenuItem.vue.js +43 -0
  223. package/dist/test/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +43 -0
  224. package/dist/test/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +41 -0
  225. package/dist/test/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +80 -0
  226. package/dist/test/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +37 -0
  227. package/dist/test/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +26 -0
  228. package/dist/test/components/ui/dropdown-menu/DropdownMenuSub.vue.js +41 -0
  229. package/dist/test/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +46 -0
  230. package/dist/test/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +58 -0
  231. package/dist/test/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +41 -0
  232. package/dist/test/components/ui/dropdown-menu/index.js +15 -0
  233. package/dist/test/components/ui/popover/Popover.vue.js +41 -0
  234. package/dist/test/components/ui/popover/PopoverContent.vue.js +60 -0
  235. package/dist/test/components/ui/popover/PopoverTrigger.vue.js +35 -0
  236. package/dist/test/components/ui/popover/index.js +3 -0
  237. package/dist/test/components/ui/radio-group/RadioGroup.vue.js +46 -0
  238. package/dist/test/components/ui/radio-group/RadioGroupItem.vue.js +71 -0
  239. package/dist/test/components/ui/radio-group/index.js +2 -0
  240. package/dist/test/components/ui/slider/Slider.vue.js +155 -0
  241. package/dist/test/components/ui/slider/index.js +1 -0
  242. package/dist/test/components/ui/switch/Switch.vue.js +61 -0
  243. package/dist/test/components/ui/switch/index.js +1 -0
  244. package/dist/test/composable/useCallHelper.js +170 -0
  245. package/dist/test/composable/useDigibot.js +22 -0
  246. package/dist/test/composable/useInitData.js +84 -0
  247. package/dist/test/composable/useModalConfirm.js +39 -0
  248. package/dist/test/constant/color.js +43 -0
  249. package/dist/test/constant/datetime.js +5 -0
  250. package/dist/test/constant/general.js +9 -0
  251. package/dist/test/constant/message.js +8 -0
  252. package/dist/test/constant/mqtt.js +11 -0
  253. package/dist/test/constant/user.js +9 -0
  254. package/dist/test/lib/utils.js +5 -0
  255. package/dist/test/plugins/axios-gci.js +25 -0
  256. package/dist/test/plugins/axios.js +85 -0
  257. package/dist/test/plugins/mqtt.js +128 -0
  258. package/dist/test/plugins/sdk.js +83 -0
  259. package/dist/test/plugins/websocket.js +65 -0
  260. package/dist/test/types/call.js +1 -0
  261. package/dist/test/types/chat/auth.js +1 -0
  262. package/dist/test/types/chat/global.js +1 -0
  263. package/dist/test/types/chat/promise.js +1 -0
  264. package/dist/test/types/chat/user.js +1 -0
  265. package/dist/test/types/conversation.js +1 -0
  266. package/dist/test/types/global.js +15 -0
  267. package/dist/test/types/message.js +1 -0
  268. package/dist/test/utils/chat/auth.js +51 -0
  269. package/dist/test/utils/chat/call.js +61 -0
  270. package/dist/test/utils/chat/chat-router.js +8 -0
  271. package/dist/test/utils/chat/conversation.js +7 -0
  272. package/dist/test/utils/chat/message.js +42 -0
  273. package/dist/test/utils/chat/user.js +33 -0
  274. package/dist/test/utils/debounce.js +9 -0
  275. package/dist/test/utils/json.js +18 -0
  276. package/dist/test/utils/logger.js +5 -0
  277. package/dist/test/utils/string-helper.js +27 -0
  278. package/dist/types/call.d.ts +4 -0
  279. package/dist/types/chat/auth.d.ts +37 -0
  280. package/dist/types/chat/global.d.ts +7 -0
  281. package/dist/types/chat/promise.d.ts +17 -0
  282. package/dist/types/chat/user.d.ts +88 -0
  283. package/dist/types/conversation.d.ts +18 -0
  284. package/dist/types/global.d.ts +11 -0
  285. package/dist/types/message.d.ts +43 -0
  286. package/dist/utils/chat/auth.d.ts +45 -0
  287. package/dist/utils/chat/call.d.ts +5 -0
  288. package/dist/utils/chat/chat-router.d.ts +3 -0
  289. package/dist/utils/chat/conversation.d.ts +3 -0
  290. package/dist/utils/chat/message.d.ts +17 -0
  291. package/dist/utils/chat/user.d.ts +193 -0
  292. package/dist/utils/debounce.d.ts +1 -0
  293. package/dist/utils/json.d.ts +2 -0
  294. package/dist/utils/logger.d.ts +3 -0
  295. package/dist/utils/string-helper.d.ts +1 -0
  296. package/package.json +1 -1
@@ -0,0 +1,102 @@
1
+ /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ import IconArrow from '../../../assets/icons/customer-detail/IconArrow.vue';
3
+ const props = withDefaults(defineProps(), {
4
+ information: [],
5
+ title: ''
6
+ });
7
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
8
+ const __VLS_defaults = {
9
+ information: [],
10
+ title: ''
11
+ };
12
+ const __VLS_ctx = {
13
+ ...{},
14
+ ...{},
15
+ ...{},
16
+ ...{},
17
+ };
18
+ let __VLS_elements;
19
+ let __VLS_components;
20
+ let __VLS_directives;
21
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
22
+ ...{ class: "w-full" },
23
+ });
24
+ __VLS_asFunctionalElement(__VLS_elements.h2, __VLS_elements.h2)({
25
+ ...{ class: "text-chat-haze-500 font-semibold" },
26
+ });
27
+ (__VLS_ctx.title);
28
+ // @ts-ignore
29
+ [title,];
30
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
31
+ ...{ class: "bg-white rounded-xl border border-chat-haze-100 mt-1 p-4 space-y-4" },
32
+ });
33
+ for (const [item, x] of __VLS_getVForSourceType((__VLS_ctx.information))) {
34
+ (x);
35
+ // @ts-ignore
36
+ [information,];
37
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
38
+ ...{ onClick: (...[$event]) => {
39
+ item.click?.();
40
+ } },
41
+ ...{ class: "flex items-center gap-1 " },
42
+ ...{ class: ({ 'cursor-pointer': item.click }) },
43
+ });
44
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
45
+ ...{ class: "flex items-center gap-1 grow text-chat-haze-900" },
46
+ });
47
+ const __VLS_0 = ((item.icon));
48
+ // @ts-ignore
49
+ const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({}));
50
+ const __VLS_2 = __VLS_1({}, ...__VLS_functionalComponentArgsRest(__VLS_1));
51
+ __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
52
+ (item.label);
53
+ if (item.value) {
54
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
55
+ ...{ class: "flex items-center text-chat-haze-300" },
56
+ });
57
+ (item.value);
58
+ __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
59
+ ...{ class: "ml-1" },
60
+ });
61
+ /** @type {[typeof IconArrow, ]} */ ;
62
+ // @ts-ignore
63
+ const __VLS_5 = __VLS_asFunctionalComponent(IconArrow, new IconArrow({}));
64
+ const __VLS_6 = __VLS_5({}, ...__VLS_functionalComponentArgsRest(__VLS_5));
65
+ }
66
+ __VLS_asFunctionalElement(__VLS_elements.hr)({
67
+ ...{ class: "border-chat-haze-100 mx-6" },
68
+ });
69
+ __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (x < __VLS_ctx.information.length - 1) }, null, null);
70
+ // @ts-ignore
71
+ [information,];
72
+ }
73
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
74
+ /** @type {__VLS_StyleScopedClasses['text-chat-haze-500']} */ ;
75
+ /** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
76
+ /** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
77
+ /** @type {__VLS_StyleScopedClasses['rounded-xl']} */ ;
78
+ /** @type {__VLS_StyleScopedClasses['border']} */ ;
79
+ /** @type {__VLS_StyleScopedClasses['border-chat-haze-100']} */ ;
80
+ /** @type {__VLS_StyleScopedClasses['mt-1']} */ ;
81
+ /** @type {__VLS_StyleScopedClasses['p-4']} */ ;
82
+ /** @type {__VLS_StyleScopedClasses['space-y-4']} */ ;
83
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
84
+ /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
85
+ /** @type {__VLS_StyleScopedClasses['gap-1']} */ ;
86
+ /** @type {__VLS_StyleScopedClasses['cursor-pointer']} */ ;
87
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
88
+ /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
89
+ /** @type {__VLS_StyleScopedClasses['gap-1']} */ ;
90
+ /** @type {__VLS_StyleScopedClasses['grow']} */ ;
91
+ /** @type {__VLS_StyleScopedClasses['text-chat-haze-900']} */ ;
92
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
93
+ /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
94
+ /** @type {__VLS_StyleScopedClasses['text-chat-haze-300']} */ ;
95
+ /** @type {__VLS_StyleScopedClasses['ml-1']} */ ;
96
+ /** @type {__VLS_StyleScopedClasses['border-chat-haze-100']} */ ;
97
+ /** @type {__VLS_StyleScopedClasses['mx-6']} */ ;
98
+ const __VLS_export = (await import('vue')).defineComponent({
99
+ __typeProps: {},
100
+ props: {},
101
+ });
102
+ export default {};
@@ -0,0 +1,64 @@
1
+ /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ import { logout } from '../../../utils/chat/auth.js';
3
+ const reload = () => window.location.reload();
4
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
5
+ const __VLS_ctx = {
6
+ ...{},
7
+ ...{},
8
+ };
9
+ let __VLS_elements;
10
+ let __VLS_components;
11
+ let __VLS_directives;
12
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
13
+ ...{ class: "m-auto w-max" },
14
+ });
15
+ __VLS_asFunctionalElement(__VLS_elements.h1, __VLS_elements.h1)({
16
+ ...{ class: "font-bold text-chat-haze-900 text-center mb-2" },
17
+ ...{ style: {} },
18
+ });
19
+ __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
20
+ ...{ class: "text-chat-haze-500 text-center mb-8" },
21
+ ...{ style: {} },
22
+ });
23
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
24
+ ...{ class: "flex gap-4" },
25
+ });
26
+ __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
27
+ ...{ onClick: (...[$event]) => {
28
+ __VLS_ctx.reload();
29
+ // @ts-ignore
30
+ [reload,];
31
+ } },
32
+ ...{ class: "px-6 py-2 bg-[#004AB3] text-white rounded-lg" },
33
+ });
34
+ __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
35
+ ...{ onClick: (...[$event]) => {
36
+ __VLS_ctx.logout();
37
+ // @ts-ignore
38
+ [logout,];
39
+ } },
40
+ ...{ class: "px-6 py-2 bg-[#004AB3] text-white rounded-lg" },
41
+ });
42
+ /** @type {__VLS_StyleScopedClasses['m-auto']} */ ;
43
+ /** @type {__VLS_StyleScopedClasses['w-max']} */ ;
44
+ /** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
45
+ /** @type {__VLS_StyleScopedClasses['text-chat-haze-900']} */ ;
46
+ /** @type {__VLS_StyleScopedClasses['text-center']} */ ;
47
+ /** @type {__VLS_StyleScopedClasses['mb-2']} */ ;
48
+ /** @type {__VLS_StyleScopedClasses['text-chat-haze-500']} */ ;
49
+ /** @type {__VLS_StyleScopedClasses['text-center']} */ ;
50
+ /** @type {__VLS_StyleScopedClasses['mb-8']} */ ;
51
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
52
+ /** @type {__VLS_StyleScopedClasses['gap-4']} */ ;
53
+ /** @type {__VLS_StyleScopedClasses['px-6']} */ ;
54
+ /** @type {__VLS_StyleScopedClasses['py-2']} */ ;
55
+ /** @type {__VLS_StyleScopedClasses['bg-[#004AB3]']} */ ;
56
+ /** @type {__VLS_StyleScopedClasses['text-white']} */ ;
57
+ /** @type {__VLS_StyleScopedClasses['rounded-lg']} */ ;
58
+ /** @type {__VLS_StyleScopedClasses['px-6']} */ ;
59
+ /** @type {__VLS_StyleScopedClasses['py-2']} */ ;
60
+ /** @type {__VLS_StyleScopedClasses['bg-[#004AB3]']} */ ;
61
+ /** @type {__VLS_StyleScopedClasses['text-white']} */ ;
62
+ /** @type {__VLS_StyleScopedClasses['rounded-lg']} */ ;
63
+ const __VLS_export = (await import('vue')).defineComponent({});
64
+ export default {};
@@ -0,0 +1,387 @@
1
+ import InputSearch from '../../../components/chat/common/input/InputSearch.vue';
2
+ import IconPlus from '../../../assets/icons/IconPlus.vue';
3
+ import { nextTick, onMounted, onUnmounted, ref } from 'vue';
4
+ import Avatar from '../../../components/chat/customer/Avatar.vue';
5
+ import { getConversation } from '../../../utils/chat/conversation';
6
+ import BaseSpin from '../../../components/chat/common/spin/BaseSpin.vue';
7
+ import ScrollEvent from '../../../components/chat/ScrollEvent/ScrollEvent.vue';
8
+ import { useDebounce } from '../../../utils/debounce';
9
+ import { addHandleMqttMessage, connectMqtt, removeHandleMqttMessage, subscribeToTopic, unsubscribeFromTopic } from '../../../plugins/mqtt';
10
+ import { TOPIC_HOME, TOPIC_STATUS_USER } from '../../../constant/mqtt';
11
+ import { dataProfile } from '../../../utils/chat/auth';
12
+ import { readMessages } from '../../../utils/chat/message';
13
+ import dayjs from 'dayjs';
14
+ import relativeTime from 'dayjs/plugin/relativeTime';
15
+ import { useDigibot } from '../../../composable/useDigibot';
16
+ dayjs.extend(relativeTime);
17
+ const props = withDefaults(defineProps(), {});
18
+ const emit = defineEmits();
19
+ const { digibotData, digibotId } = useDigibot();
20
+ const receiver_id = defineModel('receiverId');
21
+ const isOpen = ref(false);
22
+ const keyword = ref('');
23
+ const scrollEventRef = ref(null);
24
+ const listConversations = ref([]);
25
+ const params = ref({
26
+ page: 1,
27
+ search: ''
28
+ });
29
+ let pageCount = 0;
30
+ const isLoadingSearch = ref(false);
31
+ onMounted(() => {
32
+ handleConnectMqtt();
33
+ });
34
+ onUnmounted(() => {
35
+ handleDisconnectMqtt;
36
+ });
37
+ const handleDisconnectMqtt = () => {
38
+ TOPIC_HOME.forEach((item) => {
39
+ unsubscribeFromTopic(item + dataProfile.value?.id);
40
+ removeHandleMqttMessage('chat-list-' + item);
41
+ });
42
+ if (dataProfile.value?.user_type == 'tenant') {
43
+ subscribeToTopic(TOPIC_STATUS_USER + dataProfile.value?.id);
44
+ removeHandleMqttMessage('chat-list-' + TOPIC_STATUS_USER);
45
+ }
46
+ };
47
+ const handleConnectMqtt = async () => {
48
+ try {
49
+ if (dataProfile.value) {
50
+ await connectMqtt();
51
+ TOPIC_HOME.forEach((item) => {
52
+ subscribeToTopic(item + dataProfile.value?.id);
53
+ addHandleMqttMessage('chat-list-' + item, item + dataProfile.value?.id, mqttMessageHandler);
54
+ });
55
+ subscribeToTopic(TOPIC_STATUS_USER + dataProfile.value?.id);
56
+ addHandleMqttMessage('chat-list-' + TOPIC_STATUS_USER, TOPIC_STATUS_USER + dataProfile.value?.id, mqttMessageHandler);
57
+ }
58
+ }
59
+ catch (error) {
60
+ console.error(error);
61
+ }
62
+ };
63
+ const mqttMessageHandler = (topic, data) => {
64
+ getDataMqtt();
65
+ if (topic === TOPIC_HOME[0] + dataProfile.value?.id) {
66
+ const index = listConversations.value.findIndex((item) => item.id === data.id);
67
+ if (index != -1) {
68
+ listConversations.value.splice(index, 1);
69
+ }
70
+ listConversations.value.unshift(data);
71
+ }
72
+ if (topic === TOPIC_HOME[1] + dataProfile.value?.id) {
73
+ const index = listConversations.value.findIndex((item) => item.id === data.id);
74
+ if (index != -1) {
75
+ listConversations.value[index].unread_count = 0;
76
+ }
77
+ }
78
+ if (topic === TOPIC_HOME[2] + dataProfile.value?.id) {
79
+ listConversations.value.unshift(data?.conversations);
80
+ }
81
+ if (topic === TOPIC_STATUS_USER + dataProfile.value?.id) {
82
+ const index = listConversations.value.findIndex((e) => e.receiver_id == Number(data?.customer_id));
83
+ if (index != -1) {
84
+ listConversations.value[index].status = data.is_online ? 1 : 0;
85
+ }
86
+ }
87
+ };
88
+ const getDataMqtt = useDebounce(() => {
89
+ getData(undefined, { hideLoading: true, reset: true });
90
+ }, 5000);
91
+ const getData = async (data, option) => {
92
+ try {
93
+ if (!option?.hideLoading)
94
+ isLoadingSearch.value = true;
95
+ params.value = { ...params.value, ...(data ?? {}) };
96
+ const res = await getConversation(params.value);
97
+ if (option?.reset) {
98
+ listConversations.value = [];
99
+ console.log(digibotData);
100
+ listConversations.value.push(digibotData);
101
+ await nextTick();
102
+ }
103
+ listConversations.value.push(...(res?.items ?? []));
104
+ console.log(listConversations.value);
105
+ checkHasReceiveId();
106
+ params.value.page = res?._meta?.currentPage || 1;
107
+ pageCount = res?._meta?.pageCount || 1;
108
+ }
109
+ catch (error) {
110
+ console.error(error);
111
+ }
112
+ finally {
113
+ isLoadingSearch.value = false;
114
+ }
115
+ };
116
+ const checkHasReceiveId = () => {
117
+ const hasReceiveId = listConversations.value?.some((e) => e.receiver_id === receiver_id.value && receiver_id.value);
118
+ if (props.response == 'tablet') {
119
+ if (!hasReceiveId && listConversations.value?.length)
120
+ emit('selectReceiver', listConversations.value[0]);
121
+ }
122
+ };
123
+ const handleSearch = (value) => {
124
+ // listConversations.value = []
125
+ getData({ search: value }, { reset: true });
126
+ };
127
+ const handleScroll = useDebounce(async () => {
128
+ if (params.value.page >= pageCount) {
129
+ scrollEventRef.value?.hideLoading();
130
+ return;
131
+ }
132
+ let page = params.value.page + 1;
133
+ await getData({ page });
134
+ scrollEventRef.value?.hideLoading();
135
+ }, 200);
136
+ const selectUser = (user) => {
137
+ emit('selectReceiver', user);
138
+ };
139
+ const handleReadMessage = () => {
140
+ const index = listConversations.value.findIndex((e) => e.receiver_id == receiver_id.value);
141
+ if (index > -1) {
142
+ if (listConversations.value[index].unread_count) {
143
+ readMessages(listConversations.value[index].id);
144
+ listConversations.value[index].unread_count = 0;
145
+ }
146
+ }
147
+ };
148
+ getData({}, { reset: true });
149
+ const __VLS_exposed = { handleReadMessage };
150
+ defineExpose(__VLS_exposed);
151
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
152
+ const __VLS_modelEmit = defineEmits();
153
+ const __VLS_defaults = {};
154
+ const __VLS_ctx = {
155
+ ...{},
156
+ ...{},
157
+ ...{},
158
+ ...{},
159
+ ...{},
160
+ };
161
+ let __VLS_elements;
162
+ let __VLS_components;
163
+ let __VLS_directives;
164
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
165
+ ...{ class: "h-full flex flex-col chat-box-white pt-6" },
166
+ });
167
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
168
+ ...{ class: "shrink-0 w-full px-6 flex gap-2 mb-6" },
169
+ });
170
+ /** @type {[typeof InputSearch, ]} */ ;
171
+ // @ts-ignore
172
+ const __VLS_0 = __VLS_asFunctionalComponent(InputSearch, new InputSearch({
173
+ ...{ 'onSearch': {} },
174
+ ...{ class: "h-[45px] grow" },
175
+ response: (__VLS_ctx.response),
176
+ modelValue: (__VLS_ctx.keyword),
177
+ }));
178
+ const __VLS_1 = __VLS_0({
179
+ ...{ 'onSearch': {} },
180
+ ...{ class: "h-[45px] grow" },
181
+ response: (__VLS_ctx.response),
182
+ modelValue: (__VLS_ctx.keyword),
183
+ }, ...__VLS_functionalComponentArgsRest(__VLS_0));
184
+ let __VLS_3;
185
+ let __VLS_4;
186
+ const __VLS_5 = ({ search: {} },
187
+ { onSearch: (__VLS_ctx.handleSearch) });
188
+ // @ts-ignore
189
+ [response, keyword, handleSearch,];
190
+ var __VLS_2;
191
+ __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
192
+ ...{ class: "h-[45px] w-[45px] rounded-full flex-center bg-[#C7DEFF]" },
193
+ });
194
+ /** @type {[typeof IconPlus, ]} */ ;
195
+ // @ts-ignore
196
+ const __VLS_7 = __VLS_asFunctionalComponent(IconPlus, new IconPlus({
197
+ ...{ class: "text-[#004AB3]" },
198
+ }));
199
+ const __VLS_8 = __VLS_7({
200
+ ...{ class: "text-[#004AB3]" },
201
+ }, ...__VLS_functionalComponentArgsRest(__VLS_7));
202
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
203
+ ...{ class: "grow relative overflow-hidden" },
204
+ });
205
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
206
+ ...{ class: "absolute sc-full flex-center bg-black/10" },
207
+ });
208
+ __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.isLoadingSearch) }, null, null);
209
+ // @ts-ignore
210
+ [isLoadingSearch,];
211
+ /** @type {[typeof BaseSpin, ]} */ ;
212
+ // @ts-ignore
213
+ const __VLS_11 = __VLS_asFunctionalComponent(BaseSpin, new BaseSpin({}));
214
+ const __VLS_12 = __VLS_11({}, ...__VLS_functionalComponentArgsRest(__VLS_11));
215
+ /** @type {[typeof ScrollEvent, typeof ScrollEvent, ]} */ ;
216
+ // @ts-ignore
217
+ const __VLS_15 = __VLS_asFunctionalComponent(ScrollEvent, new ScrollEvent({
218
+ ...{ 'onGetDataBottom': {} },
219
+ ref: "scrollEventRef",
220
+ ...{ class: "h-full overflow-auto" },
221
+ bottom: true,
222
+ }));
223
+ const __VLS_16 = __VLS_15({
224
+ ...{ 'onGetDataBottom': {} },
225
+ ref: "scrollEventRef",
226
+ ...{ class: "h-full overflow-auto" },
227
+ bottom: true,
228
+ }, ...__VLS_functionalComponentArgsRest(__VLS_15));
229
+ let __VLS_18;
230
+ let __VLS_19;
231
+ const __VLS_20 = ({ getDataBottom: {} },
232
+ { onGetDataBottom: (__VLS_ctx.handleScroll) });
233
+ /** @type {typeof __VLS_ctx.scrollEventRef} */ ;
234
+ var __VLS_21 = {};
235
+ const { default: __VLS_23 } = __VLS_17.slots;
236
+ // @ts-ignore
237
+ [handleScroll, scrollEventRef,];
238
+ for (const [user] of __VLS_getVForSourceType((__VLS_ctx.listConversations))) {
239
+ // @ts-ignore
240
+ [listConversations,];
241
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
242
+ ...{ onClick: (...[$event]) => {
243
+ __VLS_ctx.selectUser(user);
244
+ // @ts-ignore
245
+ [selectUser,];
246
+ } },
247
+ ...{ class: "" },
248
+ key: (user.id),
249
+ });
250
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
251
+ ...{ class: "w-full overflow-hidden flex items-center hover:bg-[#EDF5FF] cursor-pointer px-6 py-2" },
252
+ ...{ class: ({ 'bg-[#EDF5FF]': __VLS_ctx.receiver_id == user.receiver_id && __VLS_ctx.response == 'tablet' }) },
253
+ });
254
+ // @ts-ignore
255
+ [response, receiver_id,];
256
+ /** @type {[typeof Avatar, ]} */ ;
257
+ // @ts-ignore
258
+ const __VLS_24 = __VLS_asFunctionalComponent(Avatar, new Avatar({
259
+ id: (user.id),
260
+ ...{ class: "shrink-0" },
261
+ src: (user.avatar ?? ''),
262
+ color: (user.color),
263
+ name: (user.username ?? ''),
264
+ }));
265
+ const __VLS_25 = __VLS_24({
266
+ id: (user.id),
267
+ ...{ class: "shrink-0" },
268
+ src: (user.avatar ?? ''),
269
+ color: (user.color),
270
+ name: (user.username ?? ''),
271
+ }, ...__VLS_functionalComponentArgsRest(__VLS_24));
272
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
273
+ ...{ class: "grow ml-3 overflow-hidden" },
274
+ });
275
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
276
+ ...{ class: "flex justify-between items-center gap-4" },
277
+ });
278
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
279
+ ...{ class: "truncate" },
280
+ });
281
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
282
+ ...{ class: "flex items-center" },
283
+ });
284
+ __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
285
+ ...{ class: "font-semibold" },
286
+ });
287
+ (user.username);
288
+ if (user.unread_count) {
289
+ __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
290
+ ...{ class: "ml-2 bg-[#E60000] text-white text-xs font-bold px-2 py-[1px] flex-center rounded-full" },
291
+ });
292
+ (user.unread_count);
293
+ }
294
+ __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
295
+ ...{ class: "text-sm truncate" },
296
+ ...{ class: ({
297
+ 'font-semibold': user.unread_count,
298
+ 'text-chat-gray-3': !user.unread_count
299
+ }) },
300
+ });
301
+ (user.last_message ?? 'No messages');
302
+ __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
303
+ ...{ class: "text-sm text-right text-chat-gray-4 w-[130px]" },
304
+ });
305
+ (__VLS_ctx.dayjs(user.last_message_time).isValid()
306
+ ? __VLS_ctx.dayjs(user.last_message_time).fromNow()
307
+ : (user.last_message_time ?? ''));
308
+ // @ts-ignore
309
+ [dayjs, dayjs,];
310
+ }
311
+ var __VLS_17;
312
+ /** @type {__VLS_StyleScopedClasses['']} */ ;
313
+ /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
314
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
315
+ /** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
316
+ /** @type {__VLS_StyleScopedClasses['chat-box-white']} */ ;
317
+ /** @type {__VLS_StyleScopedClasses['pt-6']} */ ;
318
+ /** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
319
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
320
+ /** @type {__VLS_StyleScopedClasses['px-6']} */ ;
321
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
322
+ /** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
323
+ /** @type {__VLS_StyleScopedClasses['mb-6']} */ ;
324
+ /** @type {__VLS_StyleScopedClasses['h-[45px]']} */ ;
325
+ /** @type {__VLS_StyleScopedClasses['grow']} */ ;
326
+ /** @type {__VLS_StyleScopedClasses['h-[45px]']} */ ;
327
+ /** @type {__VLS_StyleScopedClasses['w-[45px]']} */ ;
328
+ /** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
329
+ /** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
330
+ /** @type {__VLS_StyleScopedClasses['bg-[#C7DEFF]']} */ ;
331
+ /** @type {__VLS_StyleScopedClasses['text-[#004AB3]']} */ ;
332
+ /** @type {__VLS_StyleScopedClasses['grow']} */ ;
333
+ /** @type {__VLS_StyleScopedClasses['relative']} */ ;
334
+ /** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
335
+ /** @type {__VLS_StyleScopedClasses['absolute']} */ ;
336
+ /** @type {__VLS_StyleScopedClasses['sc-full']} */ ;
337
+ /** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
338
+ /** @type {__VLS_StyleScopedClasses['bg-black/10']} */ ;
339
+ /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
340
+ /** @type {__VLS_StyleScopedClasses['overflow-auto']} */ ;
341
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
342
+ /** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
343
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
344
+ /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
345
+ /** @type {__VLS_StyleScopedClasses['hover:bg-[#EDF5FF]']} */ ;
346
+ /** @type {__VLS_StyleScopedClasses['cursor-pointer']} */ ;
347
+ /** @type {__VLS_StyleScopedClasses['px-6']} */ ;
348
+ /** @type {__VLS_StyleScopedClasses['py-2']} */ ;
349
+ /** @type {__VLS_StyleScopedClasses['bg-[#EDF5FF]']} */ ;
350
+ /** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
351
+ /** @type {__VLS_StyleScopedClasses['grow']} */ ;
352
+ /** @type {__VLS_StyleScopedClasses['ml-3']} */ ;
353
+ /** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
354
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
355
+ /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
356
+ /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
357
+ /** @type {__VLS_StyleScopedClasses['gap-4']} */ ;
358
+ /** @type {__VLS_StyleScopedClasses['truncate']} */ ;
359
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
360
+ /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
361
+ /** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
362
+ /** @type {__VLS_StyleScopedClasses['ml-2']} */ ;
363
+ /** @type {__VLS_StyleScopedClasses['bg-[#E60000]']} */ ;
364
+ /** @type {__VLS_StyleScopedClasses['text-white']} */ ;
365
+ /** @type {__VLS_StyleScopedClasses['text-xs']} */ ;
366
+ /** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
367
+ /** @type {__VLS_StyleScopedClasses['px-2']} */ ;
368
+ /** @type {__VLS_StyleScopedClasses['py-[1px]']} */ ;
369
+ /** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
370
+ /** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
371
+ /** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
372
+ /** @type {__VLS_StyleScopedClasses['truncate']} */ ;
373
+ /** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
374
+ /** @type {__VLS_StyleScopedClasses['text-chat-gray-3']} */ ;
375
+ /** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
376
+ /** @type {__VLS_StyleScopedClasses['text-right']} */ ;
377
+ /** @type {__VLS_StyleScopedClasses['text-chat-gray-4']} */ ;
378
+ /** @type {__VLS_StyleScopedClasses['w-[130px]']} */ ;
379
+ // @ts-ignore
380
+ var __VLS_22 = __VLS_21;
381
+ const __VLS_export = (await import('vue')).defineComponent({
382
+ setup: () => (__VLS_exposed),
383
+ __typeEmits: {},
384
+ __typeProps: {},
385
+ props: {},
386
+ });
387
+ export default {};