@phonghq/go-chat 1.0.71 → 1.0.72
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/go-chat.es.js +11162 -11147
- package/dist/go-chat.umd.js +21 -21
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/assets/icons/call/IconClock.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconClock.vue.js +0 -22
- package/dist/assets/icons/call/IconClose.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconClose.vue.js +0 -26
- package/dist/assets/icons/call/IconMic.vue.d.ts +0 -14
- package/dist/assets/icons/call/IconMic.vue.js +0 -123
- package/dist/assets/icons/call/IconPhone.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconPhone.vue.js +0 -22
- package/dist/assets/icons/call/IconPhoneBase.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconPhoneBase.vue.js +0 -20
- package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +0 -14
- package/dist/assets/icons/call/IconPhoneCancel.vue.js +0 -46
- package/dist/assets/icons/call/IconSoundDownload.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconSoundDownload.vue.js +0 -50
- package/dist/assets/icons/call/IconSpeaker.vue.d.ts +0 -14
- package/dist/assets/icons/call/IconSpeaker.vue.js +0 -62
- package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +0 -2
- package/dist/assets/icons/customer-appointment/IconFilter.vue.js +0 -53
- package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconArrow.vue.js +0 -22
- package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconCheck.vue.js +0 -27
- package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconDate.vue.js +0 -43
- package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconGroup.vue.js +0 -48
- package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconMessage.vue.js +0 -28
- package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconNote.vue.js +0 -29
- package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +0 -14
- package/dist/assets/icons/customer-detail/IconPhone.vue.js +0 -41
- package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconPin.vue.js +0 -29
- package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconSearch.vue.js +0 -29
- package/dist/assets/icons/global/IconAiCheck.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconAiCheck.vue.js +0 -28
- package/dist/assets/icons/global/IconArrowLeft.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconArrowLeft.vue.js +0 -29
- package/dist/assets/icons/global/IconBackspace.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconBackspace.vue.js +0 -28
- package/dist/assets/icons/global/IconCloseCircle.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconCloseCircle.vue.js +0 -36
- package/dist/assets/icons/global/IconPhone.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconPhone.vue.js +0 -19
- package/dist/assets/icons/global/IconPlan.vue.d.ts +0 -14
- package/dist/assets/icons/global/IconPlan.vue.js +0 -39
- package/dist/assets/icons/global/IconPlus.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconPlus.vue.js +0 -22
- package/dist/assets/icons/global/IconSearch.vue.d.ts +0 -32
- package/dist/assets/icons/global/IconSearch.vue.js +0 -68
- package/dist/assets/icons/global/IconSms.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconSms.vue.js +0 -22
- package/dist/assets/icons/global/IconUser.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconUser.vue.js +0 -25
- package/dist/chat/App.vue.d.ts +0 -21
- package/dist/chat/App.vue.js +0 -1020
- package/dist/chat/main.d.ts +0 -7
- package/dist/chat/main.js +0 -7
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +0 -2
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.js +0 -207
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +0 -12
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.js +0 -80
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +0 -2
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.js +0 -138
- package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +0 -7
- package/dist/chat/page/customer-detail/CustomerDetail.vue.js +0 -233
- package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +0 -16
- package/dist/chat/page/customer-detail/SubInformation.vue.js +0 -102
- package/dist/chat/page/error/Error.vue.d.ts +0 -2
- package/dist/chat/page/error/Error.vue.js +0 -64
- package/dist/chat/page/home/ChatList.vue.d.ts +0 -98
- package/dist/chat/page/home/ChatList.vue.js +0 -621
- package/dist/chat/page/home/ChatMessage.vue.d.ts +0 -21
- package/dist/chat/page/home/ChatMessage.vue.js +0 -200
- package/dist/chat/page/home/ChatMessageItem.vue.d.ts +0 -19
- package/dist/chat/page/home/ChatMessageItem.vue.js +0 -358
- package/dist/chat/page/home/ChatMessageItem2.vue.d.ts +0 -19
- package/dist/chat/page/home/ChatMessageItem2.vue.js +0 -351
- package/dist/chat/page/home/DropZone.vue.d.ts +0 -13
- package/dist/chat/page/home/DropZone.vue.js +0 -130
- package/dist/chat/page/home/Home.vue.d.ts +0 -25
- package/dist/chat/page/home/Home.vue.js +0 -430
- package/dist/chat/page/home/HomeHeader.vue.d.ts +0 -14
- package/dist/chat/page/home/HomeHeader.vue.js +0 -248
- package/dist/chat/page/home/InputChat.vue.d.ts +0 -27
- package/dist/chat/page/home/InputChat.vue.js +0 -412
- package/dist/chat/page/home/NewCustomer.vue.d.ts +0 -7
- package/dist/chat/page/home/NewCustomer.vue.js +0 -81
- package/dist/chat/page/home/PhoneNumpad.vue.d.ts +0 -18
- package/dist/chat/page/home/PhoneNumpad.vue.js +0 -143
- package/dist/chat/page/setting/Setting.vue.d.ts +0 -2
- package/dist/chat/page/setting/Setting.vue.js +0 -277
- package/dist/chat/page/setting/SettingSuccess.vue.d.ts +0 -2
- package/dist/chat/page/setting/SettingSuccess.vue.js +0 -33
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +0 -24
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.js +0 -207
- package/dist/components/chat/call/Calling.vue.d.ts +0 -17
- package/dist/components/chat/call/Calling.vue.js +0 -607
- package/dist/components/chat/call/TimeLeft.vue.d.ts +0 -5
- package/dist/components/chat/call/TimeLeft.vue.js +0 -59
- package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +0 -13
- package/dist/components/chat/card/CardCustomerDetail.vue.js +0 -28
- package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +0 -20
- package/dist/components/chat/common/collapse/CollapseBase.vue.js +0 -59
- package/dist/components/chat/common/input/InputSearch.vue.d.ts +0 -16
- package/dist/components/chat/common/input/InputSearch.vue.js +0 -71
- package/dist/components/chat/common/modal/Modal.vue.d.ts +0 -94
- package/dist/components/chat/common/modal/Modal.vue.js +0 -260
- package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +0 -35
- package/dist/components/chat/common/popover/PopoverBase.vue.js +0 -148
- package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +0 -10
- package/dist/components/chat/common/spin/BaseSpin.vue.js +0 -43
- package/dist/components/chat/common/switch/SwitchBase.vue.d.ts +0 -17
- package/dist/components/chat/common/switch/SwitchBase.vue.js +0 -76
- package/dist/components/chat/common/tab/TabBase.vue.d.ts +0 -30
- package/dist/components/chat/common/tab/TabBase.vue.js +0 -86
- package/dist/components/chat/common/tabs/TabBase.vue.d.ts +0 -18
- package/dist/components/chat/common/tabs/TabBase.vue.js +0 -93
- package/dist/components/chat/customer/Avatar.vue.d.ts +0 -12
- package/dist/components/chat/customer/Avatar.vue.js +0 -127
- package/dist/components/chat/layout/mobile/Footer.vue.d.ts +0 -2
- package/dist/components/chat/layout/mobile/Footer.vue.js +0 -114
- package/dist/components/chat/select/SelectBase.vue.d.ts +0 -24
- package/dist/components/chat/select/SelectBase.vue.js +0 -105
- package/dist/components/common/CustomLoading.vue.d.ts +0 -2
- package/dist/components/common/CustomLoading.vue.js +0 -19
- package/dist/components/common/Notification/NotificationDescription.vue.d.ts +0 -7
- package/dist/components/common/Notification/NotificationDescription.vue.js +0 -38
- package/dist/components/common/button/ButtonBase.vue.d.ts +0 -22
- package/dist/components/common/button/ButtonBase.vue.js +0 -78
- package/dist/components/common/button/ButtonToggle.vue.d.ts +0 -20
- package/dist/components/common/button/ButtonToggle.vue.js +0 -70
- package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +0 -16
- package/dist/components/common/checkbox/CCheckboxNumber.vue.js +0 -48
- package/dist/components/common/collapse/BaseCollapse.vue.d.ts +0 -12
- package/dist/components/common/collapse/BaseCollapse.vue.js +0 -36
- package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +0 -4
- package/dist/components/common/collapse/BaseCollapseItem.vue.js +0 -22
- package/dist/components/common/drawer/DrawerBase.vue.d.ts +0 -39
- package/dist/components/common/drawer/DrawerBase.vue.js +0 -126
- package/dist/components/common/drawer/DrawerBaseCustom.vue.d.ts +0 -33
- package/dist/components/common/drawer/DrawerBaseCustom.vue.js +0 -135
- package/dist/components/common/dropdown/DropdownBase.vue.d.ts +0 -21
- package/dist/components/common/dropdown/DropdownBase.vue.js +0 -91
- package/dist/components/common/input/CInputSearch.vue.d.ts +0 -14
- package/dist/components/common/input/CInputSearch.vue.js +0 -62
- package/dist/components/common/modal/ModalBase.vue.d.ts +0 -35
- package/dist/components/common/modal/ModalBase.vue.js +0 -187
- package/dist/components/common/popover/PopoverBase.vue.d.ts +0 -3
- package/dist/components/common/popover/PopoverBase.vue.js +0 -36
- package/dist/components/common/select/SelectBase.vue.d.ts +0 -28
- package/dist/components/common/select/SelectBase.vue.js +0 -102
- package/dist/components/common/slider/BaseSlider.vue.d.ts +0 -11
- package/dist/components/common/slider/BaseSlider.vue.js +0 -70
- package/dist/components/common/spin/CSpin.vue.d.ts +0 -9
- package/dist/components/common/spin/CSpin.vue.js +0 -41
- package/dist/components/common/tooltip/TooltipBase.vue.d.ts +0 -2
- package/dist/components/common/tooltip/TooltipBase.vue.js +0 -8
- package/dist/components/layout/PageError.vue.d.ts +0 -2
- package/dist/components/layout/PageError.vue.js +0 -91
- package/dist/components/ui/button/CButton.vue.d.ts +0 -19
- package/dist/components/ui/button/CButton.vue.js +0 -49
- package/dist/components/ui/button/c-button.d.ts +0 -7
- package/dist/components/ui/button/c-button.js +0 -26
- package/dist/components/ui/checkbox/Checkbox.vue.d.ts +0 -18
- package/dist/components/ui/checkbox/Checkbox.vue.js +0 -79
- package/dist/components/ui/checkbox/index.d.ts +0 -1
- package/dist/components/ui/checkbox/index.js +0 -1
- package/dist/components/ui/collapsible/Collapsible.vue.d.ts +0 -16
- package/dist/components/ui/collapsible/Collapsible.vue.js +0 -47
- package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +0 -10
- package/dist/components/ui/collapsible/CollapsibleContent.vue.js +0 -41
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +0 -10
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.js +0 -35
- package/dist/components/ui/collapsible/index.d.ts +0 -3
- package/dist/components/ui/collapsible/index.js +0 -3
- package/dist/components/ui/dialog/Dialog.vue.d.ts +0 -14
- package/dist/components/ui/dialog/Dialog.vue.js +0 -42
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -10
- package/dist/components/ui/dialog/DialogClose.vue.js +0 -35
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -29
- package/dist/components/ui/dialog/DialogContent.vue.js +0 -84
- package/dist/components/ui/dialog/DialogDescription.vue.d.ts +0 -14
- package/dist/components/ui/dialog/DialogDescription.vue.js +0 -43
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +0 -13
- package/dist/components/ui/dialog/DialogFooter.vue.js +0 -26
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +0 -13
- package/dist/components/ui/dialog/DialogHeader.vue.js +0 -26
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +0 -30
- package/dist/components/ui/dialog/DialogScrollContent.vue.js +0 -99
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +0 -14
- package/dist/components/ui/dialog/DialogTitle.vue.js +0 -43
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -10
- package/dist/components/ui/dialog/DialogTrigger.vue.js +0 -35
- package/dist/components/ui/dialog/index.d.ts +0 -9
- package/dist/components/ui/dialog/index.js +0 -9
- package/dist/components/ui/drawer/Drawer.vue.d.ts +0 -26
- package/dist/components/ui/drawer/Drawer.vue.js +0 -48
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +0 -33
- package/dist/components/ui/drawer/DrawerContent.vue.js +0 -81
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +0 -14
- package/dist/components/ui/drawer/DrawerDescription.vue.js +0 -42
- package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +0 -13
- package/dist/components/ui/drawer/DrawerFooter.vue.js +0 -26
- package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +0 -13
- package/dist/components/ui/drawer/DrawerHeader.vue.js +0 -26
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +0 -7
- package/dist/components/ui/drawer/DrawerOverlay.vue.js +0 -37
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +0 -14
- package/dist/components/ui/drawer/DrawerTitle.vue.js +0 -42
- package/dist/components/ui/drawer/index.d.ts +0 -8
- package/dist/components/ui/drawer/index.js +0 -8
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +0 -20
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +0 -79
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -28
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.js +0 -61
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -10
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +0 -35
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.js +0 -43
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +0 -43
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +0 -18
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +0 -80
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -7
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +0 -37
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +0 -13
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +0 -26
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +0 -30
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +0 -46
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +0 -58
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -10
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/index.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/index.js +0 -15
- package/dist/components/ui/popover/Popover.vue.d.ts +0 -14
- package/dist/components/ui/popover/Popover.vue.js +0 -41
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +0 -28
- package/dist/components/ui/popover/PopoverContent.vue.js +0 -60
- package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +0 -10
- package/dist/components/ui/popover/PopoverTrigger.vue.js +0 -35
- package/dist/components/ui/popover/index.d.ts +0 -3
- package/dist/components/ui/popover/index.js +0 -3
- package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +0 -18
- package/dist/components/ui/radio-group/RadioGroup.vue.js +0 -46
- package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +0 -7
- package/dist/components/ui/radio-group/RadioGroupItem.vue.js +0 -71
- package/dist/components/ui/radio-group/index.d.ts +0 -2
- package/dist/components/ui/radio-group/index.js +0 -2
- package/dist/components/ui/select/Select.vue.d.ts +0 -20
- package/dist/components/ui/select/Select.vue.js +0 -49
- package/dist/components/ui/select/SelectContent.vue.d.ts +0 -24
- package/dist/components/ui/select/SelectContent.vue.js +0 -98
- package/dist/components/ui/select/SelectGroup.vue.d.ts +0 -10
- package/dist/components/ui/select/SelectGroup.vue.js +0 -37
- package/dist/components/ui/select/SelectItem.vue.d.ts +0 -18
- package/dist/components/ui/select/SelectItem.vue.js +0 -73
- package/dist/components/ui/select/SelectItemText.vue.d.ts +0 -10
- package/dist/components/ui/select/SelectItemText.vue.js +0 -37
- package/dist/components/ui/select/SelectLabel.vue.d.ts +0 -14
- package/dist/components/ui/select/SelectLabel.vue.js +0 -40
- package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +0 -14
- package/dist/components/ui/select/SelectScrollDownButton.vue.js +0 -58
- package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +0 -14
- package/dist/components/ui/select/SelectScrollUpButton.vue.js +0 -58
- package/dist/components/ui/select/SelectSeparator.vue.d.ts +0 -7
- package/dist/components/ui/select/SelectSeparator.vue.js +0 -39
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +0 -17
- package/dist/components/ui/select/SelectTrigger.vue.js +0 -49
- package/dist/components/ui/select/SelectValue.vue.d.ts +0 -10
- package/dist/components/ui/select/SelectValue.vue.js +0 -37
- package/dist/components/ui/select/index.d.ts +0 -11
- package/dist/components/ui/select/index.js +0 -11
- package/dist/components/ui/slider/Slider.vue.d.ts +0 -13
- package/dist/components/ui/slider/Slider.vue.js +0 -155
- package/dist/components/ui/slider/index.d.ts +0 -1
- package/dist/components/ui/slider/index.js +0 -1
- package/dist/components/ui/switch/Switch.vue.d.ts +0 -18
- package/dist/components/ui/switch/Switch.vue.js +0 -61
- package/dist/components/ui/switch/index.d.ts +0 -1
- package/dist/components/ui/switch/index.js +0 -1
- package/dist/components/ui/tabs/Tabs.vue.d.ts +0 -20
- package/dist/components/ui/tabs/Tabs.vue.js +0 -54
- package/dist/components/ui/tabs/TabsContent.vue.d.ts +0 -14
- package/dist/components/ui/tabs/TabsContent.vue.js +0 -44
- package/dist/components/ui/tabs/TabsList.vue.d.ts +0 -14
- package/dist/components/ui/tabs/TabsList.vue.js +0 -44
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +0 -14
- package/dist/components/ui/tabs/TabsTrigger.vue.js +0 -45
- package/dist/components/ui/tabs/index.d.ts +0 -4
- package/dist/components/ui/tabs/index.js +0 -4
- package/dist/composable/useDigibot.d.ts +0 -7
- package/dist/composable/useDigibot.js +0 -23
- package/dist/composable/useInitData.d.ts +0 -12
- package/dist/composable/useInitData.js +0 -99
- package/dist/composable/useListConversations.d.ts +0 -55
- package/dist/composable/useListConversations.js +0 -209
- package/dist/composable/useListentEvent.d.ts +0 -5
- package/dist/composable/useListentEvent.js +0 -51
- package/dist/composable/usePlivo.d.ts +0 -17
- package/dist/composable/usePlivo.js +0 -207
- package/dist/constant/color.d.ts +0 -22
- package/dist/constant/color.js +0 -47
- package/dist/constant/datetime.d.ts +0 -6
- package/dist/constant/datetime.js +0 -6
- package/dist/constant/general.d.ts +0 -11
- package/dist/constant/general.js +0 -12
- package/dist/constant/message.d.ts +0 -8
- package/dist/constant/message.js +0 -8
- package/dist/constant/mqtt.d.ts +0 -7
- package/dist/constant/mqtt.js +0 -18
- package/dist/constant/user.d.ts +0 -8
- package/dist/constant/user.js +0 -9
- package/dist/lib/utils.d.ts +0 -2
- package/dist/lib/utils.js +0 -5
- package/dist/plugins/axios-gci.d.ts +0 -3
- package/dist/plugins/axios-gci.js +0 -25
- package/dist/plugins/axios.d.ts +0 -3
- package/dist/plugins/axios.js +0 -84
- package/dist/plugins/mqtt.d.ts +0 -8
- package/dist/plugins/mqtt.js +0 -189
- package/dist/plugins/pocketbase.d.ts +0 -5
- package/dist/plugins/pocketbase.js +0 -15
- package/dist/plugins/sdk.d.ts +0 -18
- package/dist/plugins/sdk.js +0 -73
- package/dist/plugins/websocket.d.ts +0 -15
- package/dist/plugins/websocket.js +0 -151
- package/dist/types/chat/auth.d.ts +0 -41
- package/dist/types/chat/auth.js +0 -1
- package/dist/types/chat/call.d.ts +0 -19
- package/dist/types/chat/call.js +0 -23
- package/dist/types/chat/global.d.ts +0 -32
- package/dist/types/chat/global.js +0 -1
- package/dist/types/chat/promise.d.ts +0 -17
- package/dist/types/chat/promise.js +0 -1
- package/dist/types/chat/user.d.ts +0 -88
- package/dist/types/chat/user.js +0 -1
- package/dist/types/conversation.d.ts +0 -23
- package/dist/types/conversation.js +0 -1
- package/dist/types/global.d.ts +0 -11
- package/dist/types/global.js +0 -15
- package/dist/types/message.d.ts +0 -52
- package/dist/types/message.js +0 -1
- package/dist/utils/chat/cache.d.ts +0 -7
- package/dist/utils/chat/cache.js +0 -63
- package/dist/utils/chat/chat-router.d.ts +0 -3
- package/dist/utils/chat/chat-router.js +0 -8
- package/dist/utils/chat/page-error.d.ts +0 -4
- package/dist/utils/chat/page-error.js +0 -25
- package/dist/utils/chat/phone-string.d.ts +0 -1
- package/dist/utils/chat/phone-string.js +0 -4
- package/dist/utils/chat/store/auth.d.ts +0 -62
- package/dist/utils/chat/store/auth.js +0 -93
- package/dist/utils/chat/store/call.d.ts +0 -15
- package/dist/utils/chat/store/call.js +0 -160
- package/dist/utils/chat/store/conversation.d.ts +0 -13
- package/dist/utils/chat/store/conversation.js +0 -69
- package/dist/utils/chat/store/message.d.ts +0 -31
- package/dist/utils/chat/store/message.js +0 -74
- package/dist/utils/chat/store/user.d.ts +0 -200
- package/dist/utils/chat/store/user.js +0 -43
- package/dist/utils/debounce.d.ts +0 -1
- package/dist/utils/debounce.js +0 -9
- package/dist/utils/json.d.ts +0 -2
- package/dist/utils/json.js +0 -18
- package/dist/utils/logger.d.ts +0 -3
- package/dist/utils/logger.js +0 -5
- package/dist/utils/string-helper.d.ts +0 -2
- package/dist/utils/string-helper.js +0 -40
- package/dist/views/NotTenantPhone.vue.d.ts +0 -9
- package/dist/views/NotTenantPhone.vue.js +0 -99
- package/dist/views/home/phone-numpad/ConvercationList.vue.d.ts +0 -18
- package/dist/views/home/phone-numpad/ConvercationList.vue.js +0 -174
- package/dist/views/home/phone-numpad/PhoneNumpad.vue.d.ts +0 -28
- package/dist/views/home/phone-numpad/PhoneNumpad.vue.js +0 -377
|
@@ -1,621 +0,0 @@
|
|
|
1
|
-
import InputSearch from '../../../components/chat/common/input/InputSearch.vue';
|
|
2
|
-
import IconPlus from '../../../assets/icons/global/IconPlus.vue';
|
|
3
|
-
import { computed, nextTick, onMounted, onUnmounted, ref } from 'vue';
|
|
4
|
-
import Avatar from '../../../components/chat/customer/Avatar.vue';
|
|
5
|
-
import { getConversationView } from '../../../utils/chat/store/conversation';
|
|
6
|
-
import ScrollEvent from '../../../components/chat/ScrollEvent/ScrollEvent.vue';
|
|
7
|
-
import { useDebounce } from '../../../utils/debounce';
|
|
8
|
-
import { addHandleMqttMessage, connectMqtt, removeHandleMqttMessage, subscribeToTopic, unsubscribeFromTopic } from '../../../plugins/mqtt';
|
|
9
|
-
import { TOPIC_CUSTOMER_RELOAD } from '../../../constant/mqtt';
|
|
10
|
-
import { dataProfile } from '../../../utils/chat/store/auth';
|
|
11
|
-
import { getDetailReceiver } from '../../../utils/chat/store/message';
|
|
12
|
-
import dayjs from 'dayjs';
|
|
13
|
-
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
14
|
-
import updateLocale from 'dayjs/plugin/updateLocale';
|
|
15
|
-
import utc from 'dayjs/plugin/utc';
|
|
16
|
-
import timezone from 'dayjs/plugin/timezone';
|
|
17
|
-
import { useDigibot } from '../../../composable/useDigibot';
|
|
18
|
-
import { TIME_ZONE_UTC } from '../../../constant/datetime';
|
|
19
|
-
import IconAiCheck from '../../../assets/icons/global/IconAiCheck.vue';
|
|
20
|
-
import TabBase2 from '../../../components/chat/common/tabs/TabBase.vue';
|
|
21
|
-
import { useListConversations } from '../../../composable/useListConversations';
|
|
22
|
-
import { phoneNumberFormat } from '../../../utils/string-helper';
|
|
23
|
-
dayjs.extend(updateLocale);
|
|
24
|
-
dayjs.extend(relativeTime);
|
|
25
|
-
dayjs.extend(utc);
|
|
26
|
-
dayjs.extend(timezone);
|
|
27
|
-
dayjs.updateLocale('en', {
|
|
28
|
-
relativeTime: {
|
|
29
|
-
future: '%s',
|
|
30
|
-
past: '%s',
|
|
31
|
-
s: 'a few seconds',
|
|
32
|
-
m: 'a minute',
|
|
33
|
-
mm: '%d minutes',
|
|
34
|
-
h: 'an hour',
|
|
35
|
-
hh: '%d hours',
|
|
36
|
-
d: 'a day',
|
|
37
|
-
dd: '%d days',
|
|
38
|
-
M: 'a month',
|
|
39
|
-
MM: '%d months',
|
|
40
|
-
y: 'a year',
|
|
41
|
-
yy: '%d years'
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
const props = withDefaults(defineProps(), {});
|
|
45
|
-
const emit = defineEmits();
|
|
46
|
-
const TAB_VALUE = {
|
|
47
|
-
ALL: 1,
|
|
48
|
-
UNKNOWN: 0
|
|
49
|
-
};
|
|
50
|
-
const tabs = computed(() => [
|
|
51
|
-
{
|
|
52
|
-
label: 'All',
|
|
53
|
-
value: TAB_VALUE.ALL,
|
|
54
|
-
badge: (listConversationsAllUnread.value || '').toString()
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
label: 'Message Requests',
|
|
58
|
-
value: TAB_VALUE.UNKNOWN,
|
|
59
|
-
badge: (listConversationsUnknownUnread.value || '').toString()
|
|
60
|
-
}
|
|
61
|
-
]);
|
|
62
|
-
const checkConversationHasCustomer = (data) => {
|
|
63
|
-
const index = listConversationsAll.value.findIndex((item) => item.receiver_id == data.receiver_id);
|
|
64
|
-
const unknown_index = listConversationsUnknown.value.findIndex((item) => item.receiver_id == data.receiver_id);
|
|
65
|
-
if (index > -1) {
|
|
66
|
-
listConversationsAll.value[index].last_message = data.last_message;
|
|
67
|
-
listConversationsAll.value[index].last_message_time = data.last_message_time;
|
|
68
|
-
listConversationsAll.value[index].unread_count = data.unread_count;
|
|
69
|
-
listConversationsAll.value[index].id = data.id;
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
else if (unknown_index > -1) {
|
|
73
|
-
listConversationsUnknown.value[index].last_message = data.last_message;
|
|
74
|
-
listConversationsUnknown.value[index].last_message_time = data.last_message_time;
|
|
75
|
-
listConversationsUnknown.value[index].unread_count = data.unread_count;
|
|
76
|
-
listConversationsUnknown.value[index].id = data.id;
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
return false;
|
|
80
|
-
};
|
|
81
|
-
let topic_customer_update = '';
|
|
82
|
-
const { digibotData, digibotId } = useDigibot();
|
|
83
|
-
const { listConversations: listConversationsAll, getData: getDataAll, params: paramsAll, pageCount: pageCountAll, handleReadMessage: handleReadMessageAll, getDataCache: getDataCacheAll } = useListConversations(TAB_VALUE.ALL, dataProfile.value?.user_type === 'tenant', checkConversationHasCustomer);
|
|
84
|
-
const { listConversations: listConversationsUnknown, getData: getDataUnknown, params: paramsUnknown, pageCount: pageCountUnknown, handleReadMessage: handleReadMessageUnknown, getDataCache: getDataCacheUnknown } = useListConversations(TAB_VALUE.UNKNOWN, dataProfile.value?.user_type === 'tenant', checkConversationHasCustomer);
|
|
85
|
-
onMounted(async () => {
|
|
86
|
-
try {
|
|
87
|
-
if (dataProfile.value) {
|
|
88
|
-
await connectMqtt();
|
|
89
|
-
topic_customer_update = `tenant/${dataProfile.value?.tenant_id}/customer/+/update`;
|
|
90
|
-
subscribeToTopic(topic_customer_update);
|
|
91
|
-
addHandleMqttMessage('chat-list', topic_customer_update, mqttMessageHandler);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
catch (error) {
|
|
95
|
-
console.error(error);
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
onUnmounted(() => {
|
|
99
|
-
unsubscribeFromTopic(topic_customer_update);
|
|
100
|
-
removeHandleMqttMessage('chat-list');
|
|
101
|
-
});
|
|
102
|
-
const receiver_id = defineModel('receiverId');
|
|
103
|
-
const listConversations = computed(() => {
|
|
104
|
-
if (activeTabs.value == TAB_VALUE.ALL)
|
|
105
|
-
return listConversationsAll.value;
|
|
106
|
-
return listConversationsUnknown.value;
|
|
107
|
-
});
|
|
108
|
-
const listConversationsUnknownUnread = computed(() => {
|
|
109
|
-
return (listConversationsUnknown.value.reduce((total, cur) => total + (cur?.unread_count ?? 0), 0) ?? 0);
|
|
110
|
-
});
|
|
111
|
-
const listConversationsAllUnread = computed(() => {
|
|
112
|
-
return listConversationsAll.value.reduce((total, cur) => total + (cur?.unread_count ?? 0), 0) ?? 0;
|
|
113
|
-
});
|
|
114
|
-
const keyword = ref('');
|
|
115
|
-
const activeTabs = ref(TAB_VALUE.ALL);
|
|
116
|
-
const scrollEventRef = ref(null);
|
|
117
|
-
const isLoadingSearch = ref(false);
|
|
118
|
-
const getData = async (data, option) => {
|
|
119
|
-
try {
|
|
120
|
-
const tab_value = option?.tab ?? activeTabs.value;
|
|
121
|
-
if (!option?.hideLoading)
|
|
122
|
-
isLoadingSearch.value = true;
|
|
123
|
-
if (option?.reset && !data?.search) {
|
|
124
|
-
let cache = false;
|
|
125
|
-
if (tab_value == TAB_VALUE.ALL) {
|
|
126
|
-
cache = getDataCacheAll();
|
|
127
|
-
}
|
|
128
|
-
else if (tab_value == TAB_VALUE.UNKNOWN) {
|
|
129
|
-
cache = getDataCacheUnknown();
|
|
130
|
-
}
|
|
131
|
-
if (cache)
|
|
132
|
-
isLoadingSearch.value = false;
|
|
133
|
-
}
|
|
134
|
-
if (tab_value == TAB_VALUE.ALL) {
|
|
135
|
-
await getDataAll(data, option);
|
|
136
|
-
}
|
|
137
|
-
else if (tab_value == TAB_VALUE.UNKNOWN) {
|
|
138
|
-
await getDataUnknown(data, option);
|
|
139
|
-
}
|
|
140
|
-
if (!option?.hideCheckHasReceiveId) {
|
|
141
|
-
checkHasReceiveId();
|
|
142
|
-
}
|
|
143
|
-
if (option?.reset) {
|
|
144
|
-
getAllList(tab_value);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
catch (error) {
|
|
148
|
-
console.error(error);
|
|
149
|
-
}
|
|
150
|
-
finally {
|
|
151
|
-
isLoadingSearch.value = false;
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
const mqttMessageHandler = async (topic, data) => {
|
|
155
|
-
const subParts = TOPIC_CUSTOMER_RELOAD.split('/');
|
|
156
|
-
const topicParts = topic.split('/');
|
|
157
|
-
const idIndex = subParts.findIndex((p) => p === '+');
|
|
158
|
-
const id = topicParts[idIndex];
|
|
159
|
-
const customer = await getDetailReceiver(id);
|
|
160
|
-
// console.log(customer,'aaaaaaaaaaa')
|
|
161
|
-
await nextTick();
|
|
162
|
-
await sleep(500);
|
|
163
|
-
const isAllTab = customer.is_known == 1;
|
|
164
|
-
const correctList = isAllTab ? listConversationsAll.value : listConversationsUnknown.value;
|
|
165
|
-
const wrongList = isAllTab ? listConversationsUnknown.value : listConversationsAll.value;
|
|
166
|
-
const updatePayload = {
|
|
167
|
-
username: customer.username,
|
|
168
|
-
phone: customer.phone,
|
|
169
|
-
avatar: customer.avatar,
|
|
170
|
-
color: customer.color,
|
|
171
|
-
};
|
|
172
|
-
const correctIndex = correctList.findIndex((conversation) => conversation.receiver_id === customer.id);
|
|
173
|
-
if (correctIndex > -1) {
|
|
174
|
-
Object.assign(correctList[correctIndex], updatePayload);
|
|
175
|
-
}
|
|
176
|
-
const wrongIndex = wrongList.findIndex((c) => c.receiver_id === customer.id);
|
|
177
|
-
// const hasChatBox = correctList.findIndex((item: any) => item.id === digibotId)
|
|
178
|
-
if (wrongIndex > -1) {
|
|
179
|
-
// if(!isAllTab) {
|
|
180
|
-
// wrongList.splice(wrongIndex, 1)
|
|
181
|
-
// }
|
|
182
|
-
const conversation = wrongList[wrongIndex];
|
|
183
|
-
wrongList.splice(wrongIndex, 1);
|
|
184
|
-
const data_format = {
|
|
185
|
-
...conversation,
|
|
186
|
-
...updatePayload
|
|
187
|
-
};
|
|
188
|
-
if (correctIndex == -1) {
|
|
189
|
-
if (isAllTab) {
|
|
190
|
-
correctList.splice(1, 0, data_format);
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
correctList.unshift(data_format);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
if (wrongIndex == -1 && correctIndex == -1) {
|
|
198
|
-
const conversation = {
|
|
199
|
-
id: -99,
|
|
200
|
-
last_message: '',
|
|
201
|
-
last_message_time: '',
|
|
202
|
-
unread_count: 0,
|
|
203
|
-
created_at: '',
|
|
204
|
-
updated_at: '',
|
|
205
|
-
receiver_id: Number(customer?.id) ?? 0,
|
|
206
|
-
is_known: customer.is_known,
|
|
207
|
-
status: 1,
|
|
208
|
-
...updatePayload
|
|
209
|
-
};
|
|
210
|
-
if (isAllTab) {
|
|
211
|
-
correctList.splice(1, 0, conversation);
|
|
212
|
-
}
|
|
213
|
-
else {
|
|
214
|
-
correctList.unshift(conversation);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
|
219
|
-
const getAllList = async (tab_value) => {
|
|
220
|
-
if (tab_value == TAB_VALUE.ALL) {
|
|
221
|
-
while (paramsAll.value.page < pageCountAll.value && !scrollEventRef.value?.canScroll()) {
|
|
222
|
-
let page = paramsAll.value.page + 1;
|
|
223
|
-
await getData({ page }, { tab: tab_value });
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
else if (tab_value == TAB_VALUE.UNKNOWN) {
|
|
227
|
-
while (paramsUnknown.value.page < pageCountUnknown.value &&
|
|
228
|
-
!scrollEventRef.value?.canScroll()) {
|
|
229
|
-
let page = paramsUnknown.value.page + 1;
|
|
230
|
-
await getData({ page }, { tab: tab_value });
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
const checkHasReceiveId = () => {
|
|
235
|
-
const hasReceiveId = listConversations.value?.some((e) => e.receiver_id === receiver_id.value && receiver_id.value);
|
|
236
|
-
if (props.responsive != 'mobile') {
|
|
237
|
-
if (!hasReceiveId) {
|
|
238
|
-
if (listConversations.value?.length) {
|
|
239
|
-
emit('selectReceiver', listConversations.value[0]);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
const handleSearch = (value) => {
|
|
245
|
-
// listConversations.value = []
|
|
246
|
-
getData({ search: value }, { reset: true });
|
|
247
|
-
};
|
|
248
|
-
const handleScroll = useDebounce(async () => {
|
|
249
|
-
if (activeTabs.value == TAB_VALUE.ALL) {
|
|
250
|
-
if (paramsAll.value.page >= pageCountAll.value) {
|
|
251
|
-
scrollEventRef.value?.hideLoading();
|
|
252
|
-
return;
|
|
253
|
-
}
|
|
254
|
-
let page = paramsAll.value.page + 1;
|
|
255
|
-
await getData({ page });
|
|
256
|
-
scrollEventRef.value?.hideLoading();
|
|
257
|
-
}
|
|
258
|
-
else if (activeTabs.value == TAB_VALUE.UNKNOWN) {
|
|
259
|
-
if (paramsUnknown.value.page >= pageCountUnknown.value) {
|
|
260
|
-
scrollEventRef.value?.hideLoading();
|
|
261
|
-
return;
|
|
262
|
-
}
|
|
263
|
-
let page = paramsUnknown.value.page + 1;
|
|
264
|
-
await getData({ page });
|
|
265
|
-
scrollEventRef.value?.hideLoading();
|
|
266
|
-
}
|
|
267
|
-
}, 200);
|
|
268
|
-
const selectUser = (user) => {
|
|
269
|
-
handleReadMessage(user.receiver_id);
|
|
270
|
-
emit('selectReceiver', user);
|
|
271
|
-
};
|
|
272
|
-
const handleReadMessage = (receiver_id_request) => {
|
|
273
|
-
const id = receiver_id_request ?? receiver_id.value;
|
|
274
|
-
if (activeTabs.value == TAB_VALUE.ALL) {
|
|
275
|
-
handleReadMessageAll(id);
|
|
276
|
-
}
|
|
277
|
-
else if (activeTabs.value == TAB_VALUE.UNKNOWN) {
|
|
278
|
-
handleReadMessageUnknown(id);
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
|
-
const getTimeFromNow = (data) => {
|
|
282
|
-
if (data && dayjs(data).isValid()) {
|
|
283
|
-
return dayjs.tz(data, TIME_ZONE_UTC).local().fromNow();
|
|
284
|
-
}
|
|
285
|
-
return data ?? '';
|
|
286
|
-
};
|
|
287
|
-
const handleTabChange = async (tab, option) => {
|
|
288
|
-
if (tab == TAB_VALUE.ALL && !listConversationsAll.value?.length) {
|
|
289
|
-
await getData({}, { reset: true, tab, ...(option ?? {}) });
|
|
290
|
-
}
|
|
291
|
-
else if (tab == TAB_VALUE.UNKNOWN && !listConversationsUnknown.value?.length) {
|
|
292
|
-
await getData({}, { reset: true, tab, ...(option ?? {}) });
|
|
293
|
-
}
|
|
294
|
-
// checkHasReceiveId()
|
|
295
|
-
};
|
|
296
|
-
const getCurrentConversation = () => {
|
|
297
|
-
return listConversations.value?.find((user) => user.receiver_id == receiver_id.value);
|
|
298
|
-
};
|
|
299
|
-
const initData = async (option) => {
|
|
300
|
-
if (option?.is_known || option?.is_known == TAB_VALUE.ALL.toString()) {
|
|
301
|
-
activeTabs.value = Number(option?.is_known);
|
|
302
|
-
}
|
|
303
|
-
let hideCheckHasReceiveId = false;
|
|
304
|
-
if (option?.conversation_id) {
|
|
305
|
-
const conversation = await getConversationView(option?.conversation_id);
|
|
306
|
-
if (conversation.receiver_id) {
|
|
307
|
-
hideCheckHasReceiveId = true;
|
|
308
|
-
selectUser(conversation);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
handleTabChange(activeTabs.value, { hideCheckHasReceiveId: hideCheckHasReceiveId });
|
|
312
|
-
handleTabChange(activeTabs.value == 1 ? 0 : 1, {
|
|
313
|
-
hideCheckHasReceiveId: true,
|
|
314
|
-
hideLoading: true
|
|
315
|
-
});
|
|
316
|
-
};
|
|
317
|
-
const __VLS_exposed = {
|
|
318
|
-
handleReadMessage,
|
|
319
|
-
listConversationsAll,
|
|
320
|
-
listConversationsUnknown,
|
|
321
|
-
getCurrentConversation,
|
|
322
|
-
initData,
|
|
323
|
-
handleTabChange
|
|
324
|
-
};
|
|
325
|
-
defineExpose(__VLS_exposed);
|
|
326
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
327
|
-
const __VLS_modelEmit = defineEmits();
|
|
328
|
-
const __VLS_defaults = {};
|
|
329
|
-
const __VLS_ctx = {
|
|
330
|
-
...{},
|
|
331
|
-
...{},
|
|
332
|
-
...{},
|
|
333
|
-
...{},
|
|
334
|
-
...{},
|
|
335
|
-
};
|
|
336
|
-
let __VLS_elements;
|
|
337
|
-
let __VLS_components;
|
|
338
|
-
let __VLS_directives;
|
|
339
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
340
|
-
...{ class: "h-full flex flex-col bg-white pt-6" },
|
|
341
|
-
});
|
|
342
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
343
|
-
...{ class: "shrink-0 w-full px-6 flex gap-2 mb-4" },
|
|
344
|
-
});
|
|
345
|
-
/** @type {[typeof InputSearch, ]} */ ;
|
|
346
|
-
// @ts-ignore
|
|
347
|
-
const __VLS_0 = __VLS_asFunctionalComponent(InputSearch, new InputSearch({
|
|
348
|
-
...{ 'onSearch': {} },
|
|
349
|
-
...{ class: "h-11 grow" },
|
|
350
|
-
responsive: (__VLS_ctx.responsive),
|
|
351
|
-
modelValue: (__VLS_ctx.keyword),
|
|
352
|
-
}));
|
|
353
|
-
const __VLS_1 = __VLS_0({
|
|
354
|
-
...{ 'onSearch': {} },
|
|
355
|
-
...{ class: "h-11 grow" },
|
|
356
|
-
responsive: (__VLS_ctx.responsive),
|
|
357
|
-
modelValue: (__VLS_ctx.keyword),
|
|
358
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
359
|
-
let __VLS_3;
|
|
360
|
-
let __VLS_4;
|
|
361
|
-
const __VLS_5 = ({ search: {} },
|
|
362
|
-
{ onSearch: (__VLS_ctx.handleSearch) });
|
|
363
|
-
// @ts-ignore
|
|
364
|
-
[responsive, keyword, handleSearch,];
|
|
365
|
-
var __VLS_2;
|
|
366
|
-
if (__VLS_ctx.responsive != 'window') {
|
|
367
|
-
// @ts-ignore
|
|
368
|
-
[responsive,];
|
|
369
|
-
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
370
|
-
...{ onClick: (...[$event]) => {
|
|
371
|
-
if (!(__VLS_ctx.responsive != 'window'))
|
|
372
|
-
return;
|
|
373
|
-
__VLS_ctx.emit('openPhoneNumpad');
|
|
374
|
-
// @ts-ignore
|
|
375
|
-
[emit,];
|
|
376
|
-
} },
|
|
377
|
-
...{ class: "shrink-0 h-11 w-11 rounded-full flex-center bg-[#C7DEFF]" },
|
|
378
|
-
});
|
|
379
|
-
/** @type {[typeof IconPlus, ]} */ ;
|
|
380
|
-
// @ts-ignore
|
|
381
|
-
const __VLS_7 = __VLS_asFunctionalComponent(IconPlus, new IconPlus({
|
|
382
|
-
...{ class: "text-[#004AB3]" },
|
|
383
|
-
}));
|
|
384
|
-
const __VLS_8 = __VLS_7({
|
|
385
|
-
...{ class: "text-[#004AB3]" },
|
|
386
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_7));
|
|
387
|
-
}
|
|
388
|
-
if (__VLS_ctx.dataProfile?.user_type == 'tenant') {
|
|
389
|
-
// @ts-ignore
|
|
390
|
-
[dataProfile,];
|
|
391
|
-
/** @type {[typeof TabBase2, ]} */ ;
|
|
392
|
-
// @ts-ignore
|
|
393
|
-
const __VLS_11 = __VLS_asFunctionalComponent(TabBase2, new TabBase2({
|
|
394
|
-
...{ 'onChange': {} },
|
|
395
|
-
...{ class: "shrink-0 px-6 mb-4" },
|
|
396
|
-
tabs: (__VLS_ctx.tabs),
|
|
397
|
-
active: (__VLS_ctx.activeTabs),
|
|
398
|
-
}));
|
|
399
|
-
const __VLS_12 = __VLS_11({
|
|
400
|
-
...{ 'onChange': {} },
|
|
401
|
-
...{ class: "shrink-0 px-6 mb-4" },
|
|
402
|
-
tabs: (__VLS_ctx.tabs),
|
|
403
|
-
active: (__VLS_ctx.activeTabs),
|
|
404
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_11));
|
|
405
|
-
let __VLS_14;
|
|
406
|
-
let __VLS_15;
|
|
407
|
-
const __VLS_16 = ({ change: {} },
|
|
408
|
-
{ onChange: (__VLS_ctx.handleTabChange) });
|
|
409
|
-
// @ts-ignore
|
|
410
|
-
[tabs, activeTabs, handleTabChange,];
|
|
411
|
-
var __VLS_13;
|
|
412
|
-
}
|
|
413
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
414
|
-
...{ class: "grow relative overflow-hidden" },
|
|
415
|
-
});
|
|
416
|
-
/** @type {[typeof ScrollEvent, typeof ScrollEvent, ]} */ ;
|
|
417
|
-
// @ts-ignore
|
|
418
|
-
const __VLS_18 = __VLS_asFunctionalComponent(ScrollEvent, new ScrollEvent({
|
|
419
|
-
...{ 'onGetDataBottom': {} },
|
|
420
|
-
ref: "scrollEventRef",
|
|
421
|
-
...{ class: "h-full overflow-auto" },
|
|
422
|
-
disabled: (__VLS_ctx.activeTabs == __VLS_ctx.TAB_VALUE.ALL
|
|
423
|
-
? __VLS_ctx.paramsAll.page >= __VLS_ctx.pageCountAll
|
|
424
|
-
: __VLS_ctx.paramsUnknown.page >= __VLS_ctx.pageCountUnknown),
|
|
425
|
-
bottom: true,
|
|
426
|
-
}));
|
|
427
|
-
const __VLS_19 = __VLS_18({
|
|
428
|
-
...{ 'onGetDataBottom': {} },
|
|
429
|
-
ref: "scrollEventRef",
|
|
430
|
-
...{ class: "h-full overflow-auto" },
|
|
431
|
-
disabled: (__VLS_ctx.activeTabs == __VLS_ctx.TAB_VALUE.ALL
|
|
432
|
-
? __VLS_ctx.paramsAll.page >= __VLS_ctx.pageCountAll
|
|
433
|
-
: __VLS_ctx.paramsUnknown.page >= __VLS_ctx.pageCountUnknown),
|
|
434
|
-
bottom: true,
|
|
435
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_18));
|
|
436
|
-
let __VLS_21;
|
|
437
|
-
let __VLS_22;
|
|
438
|
-
const __VLS_23 = ({ getDataBottom: {} },
|
|
439
|
-
{ onGetDataBottom: (__VLS_ctx.handleScroll) });
|
|
440
|
-
/** @type {typeof __VLS_ctx.scrollEventRef} */ ;
|
|
441
|
-
var __VLS_24 = {};
|
|
442
|
-
const { default: __VLS_26 } = __VLS_20.slots;
|
|
443
|
-
// @ts-ignore
|
|
444
|
-
[activeTabs, TAB_VALUE, paramsAll, pageCountAll, paramsUnknown, pageCountUnknown, handleScroll, scrollEventRef,];
|
|
445
|
-
for (const [user] of __VLS_getVForSourceType((__VLS_ctx.listConversations))) {
|
|
446
|
-
// @ts-ignore
|
|
447
|
-
[listConversations,];
|
|
448
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
449
|
-
...{ onClick: (...[$event]) => {
|
|
450
|
-
__VLS_ctx.selectUser(user);
|
|
451
|
-
// @ts-ignore
|
|
452
|
-
[selectUser,];
|
|
453
|
-
} },
|
|
454
|
-
...{ class: "" },
|
|
455
|
-
key: (user.id),
|
|
456
|
-
});
|
|
457
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
458
|
-
...{ class: "w-full overflow-hidden flex items-center hover:bg-[#EDF5FF] cursor-pointer px-6 py-2" },
|
|
459
|
-
...{ class: ({ 'bg-[#EDF5FF]': __VLS_ctx.receiver_id == user.receiver_id && __VLS_ctx.responsive != 'mobile' }) },
|
|
460
|
-
});
|
|
461
|
-
// @ts-ignore
|
|
462
|
-
[responsive, receiver_id,];
|
|
463
|
-
/** @type {[typeof Avatar, ]} */ ;
|
|
464
|
-
// @ts-ignore
|
|
465
|
-
const __VLS_27 = __VLS_asFunctionalComponent(Avatar, new Avatar({
|
|
466
|
-
id: (user.id),
|
|
467
|
-
...{ class: "shrink-0" },
|
|
468
|
-
...{ class: ({ 'animal-icon': user?.id === __VLS_ctx.digibotId }) },
|
|
469
|
-
src: (user.avatar ?? ''),
|
|
470
|
-
color: (user.color),
|
|
471
|
-
name: (user.username ?? ''),
|
|
472
|
-
}));
|
|
473
|
-
const __VLS_28 = __VLS_27({
|
|
474
|
-
id: (user.id),
|
|
475
|
-
...{ class: "shrink-0" },
|
|
476
|
-
...{ class: ({ 'animal-icon': user?.id === __VLS_ctx.digibotId }) },
|
|
477
|
-
src: (user.avatar ?? ''),
|
|
478
|
-
color: (user.color),
|
|
479
|
-
name: (user.username ?? ''),
|
|
480
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_27));
|
|
481
|
-
// @ts-ignore
|
|
482
|
-
[digibotId,];
|
|
483
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
484
|
-
...{ class: "grow ml-3 overflow-hidden" },
|
|
485
|
-
});
|
|
486
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
487
|
-
...{ class: "flex justify-between items-center gap-4" },
|
|
488
|
-
});
|
|
489
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
490
|
-
...{ class: "truncate text-left" },
|
|
491
|
-
});
|
|
492
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
493
|
-
...{ class: "flex items-center" },
|
|
494
|
-
});
|
|
495
|
-
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
496
|
-
...{ class: "truncate font-semibold" },
|
|
497
|
-
});
|
|
498
|
-
(user.username || __VLS_ctx.phoneNumberFormat(user.phone) || 'n/a');
|
|
499
|
-
// @ts-ignore
|
|
500
|
-
[phoneNumberFormat,];
|
|
501
|
-
if (user.id == __VLS_ctx.digibotId) {
|
|
502
|
-
// @ts-ignore
|
|
503
|
-
[digibotId,];
|
|
504
|
-
/** @type {[typeof IconAiCheck, ]} */ ;
|
|
505
|
-
// @ts-ignore
|
|
506
|
-
const __VLS_31 = __VLS_asFunctionalComponent(IconAiCheck, new IconAiCheck({
|
|
507
|
-
...{ class: "ml-2" },
|
|
508
|
-
}));
|
|
509
|
-
const __VLS_32 = __VLS_31({
|
|
510
|
-
...{ class: "ml-2" },
|
|
511
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_31));
|
|
512
|
-
}
|
|
513
|
-
if (user.unread_count) {
|
|
514
|
-
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
515
|
-
...{ class: "shrink-0 ml-2 bg-[#E60000] text-white text-xs font-bold px-2 py-[1px] flex-center rounded-full" },
|
|
516
|
-
});
|
|
517
|
-
(user.unread_count);
|
|
518
|
-
}
|
|
519
|
-
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
520
|
-
...{ class: "text-sm truncate" },
|
|
521
|
-
...{ class: ({
|
|
522
|
-
'font-semibold': user.unread_count,
|
|
523
|
-
'text-chat-gray-3': !user.unread_count
|
|
524
|
-
}) },
|
|
525
|
-
});
|
|
526
|
-
(user.last_message ?? 'No messages');
|
|
527
|
-
if (user.id != __VLS_ctx.digibotId) {
|
|
528
|
-
// @ts-ignore
|
|
529
|
-
[digibotId,];
|
|
530
|
-
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
531
|
-
...{ class: "shrink-0 text-sm text-right text-chat-gray-4 w-[80px] md:w-[130px]" },
|
|
532
|
-
});
|
|
533
|
-
(__VLS_ctx.getTimeFromNow(user.last_message_time ?? ''));
|
|
534
|
-
// @ts-ignore
|
|
535
|
-
[getTimeFromNow,];
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
var __VLS_20;
|
|
539
|
-
/** @type {__VLS_StyleScopedClasses['']} */ ;
|
|
540
|
-
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
541
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
542
|
-
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
543
|
-
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
544
|
-
/** @type {__VLS_StyleScopedClasses['pt-6']} */ ;
|
|
545
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
546
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
547
|
-
/** @type {__VLS_StyleScopedClasses['px-6']} */ ;
|
|
548
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
549
|
-
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
550
|
-
/** @type {__VLS_StyleScopedClasses['mb-4']} */ ;
|
|
551
|
-
/** @type {__VLS_StyleScopedClasses['h-11']} */ ;
|
|
552
|
-
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
553
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
554
|
-
/** @type {__VLS_StyleScopedClasses['h-11']} */ ;
|
|
555
|
-
/** @type {__VLS_StyleScopedClasses['w-11']} */ ;
|
|
556
|
-
/** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
|
|
557
|
-
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
558
|
-
/** @type {__VLS_StyleScopedClasses['bg-[#C7DEFF]']} */ ;
|
|
559
|
-
/** @type {__VLS_StyleScopedClasses['text-[#004AB3]']} */ ;
|
|
560
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
561
|
-
/** @type {__VLS_StyleScopedClasses['px-6']} */ ;
|
|
562
|
-
/** @type {__VLS_StyleScopedClasses['mb-4']} */ ;
|
|
563
|
-
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
564
|
-
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
565
|
-
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
566
|
-
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
567
|
-
/** @type {__VLS_StyleScopedClasses['overflow-auto']} */ ;
|
|
568
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
569
|
-
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
570
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
571
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
572
|
-
/** @type {__VLS_StyleScopedClasses['hover:bg-[#EDF5FF]']} */ ;
|
|
573
|
-
/** @type {__VLS_StyleScopedClasses['cursor-pointer']} */ ;
|
|
574
|
-
/** @type {__VLS_StyleScopedClasses['px-6']} */ ;
|
|
575
|
-
/** @type {__VLS_StyleScopedClasses['py-2']} */ ;
|
|
576
|
-
/** @type {__VLS_StyleScopedClasses['bg-[#EDF5FF]']} */ ;
|
|
577
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
578
|
-
/** @type {__VLS_StyleScopedClasses['animal-icon']} */ ;
|
|
579
|
-
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
580
|
-
/** @type {__VLS_StyleScopedClasses['ml-3']} */ ;
|
|
581
|
-
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
582
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
583
|
-
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
584
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
585
|
-
/** @type {__VLS_StyleScopedClasses['gap-4']} */ ;
|
|
586
|
-
/** @type {__VLS_StyleScopedClasses['truncate']} */ ;
|
|
587
|
-
/** @type {__VLS_StyleScopedClasses['text-left']} */ ;
|
|
588
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
589
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
590
|
-
/** @type {__VLS_StyleScopedClasses['truncate']} */ ;
|
|
591
|
-
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
592
|
-
/** @type {__VLS_StyleScopedClasses['ml-2']} */ ;
|
|
593
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
594
|
-
/** @type {__VLS_StyleScopedClasses['ml-2']} */ ;
|
|
595
|
-
/** @type {__VLS_StyleScopedClasses['bg-[#E60000]']} */ ;
|
|
596
|
-
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
597
|
-
/** @type {__VLS_StyleScopedClasses['text-xs']} */ ;
|
|
598
|
-
/** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
|
|
599
|
-
/** @type {__VLS_StyleScopedClasses['px-2']} */ ;
|
|
600
|
-
/** @type {__VLS_StyleScopedClasses['py-[1px]']} */ ;
|
|
601
|
-
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
602
|
-
/** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
|
|
603
|
-
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
604
|
-
/** @type {__VLS_StyleScopedClasses['truncate']} */ ;
|
|
605
|
-
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
606
|
-
/** @type {__VLS_StyleScopedClasses['text-chat-gray-3']} */ ;
|
|
607
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
608
|
-
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
609
|
-
/** @type {__VLS_StyleScopedClasses['text-right']} */ ;
|
|
610
|
-
/** @type {__VLS_StyleScopedClasses['text-chat-gray-4']} */ ;
|
|
611
|
-
/** @type {__VLS_StyleScopedClasses['w-[80px]']} */ ;
|
|
612
|
-
/** @type {__VLS_StyleScopedClasses['md:w-[130px]']} */ ;
|
|
613
|
-
// @ts-ignore
|
|
614
|
-
var __VLS_25 = __VLS_24;
|
|
615
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
616
|
-
setup: () => (__VLS_exposed),
|
|
617
|
-
__typeEmits: {},
|
|
618
|
-
__typeProps: {},
|
|
619
|
-
props: {},
|
|
620
|
-
});
|
|
621
|
-
export default {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { IResMessage, IResUser } from '../../../types/message';
|
|
2
|
-
import type { PAGE_RESPONSIVE } from '../../../types/chat/global';
|
|
3
|
-
type Props = {
|
|
4
|
-
data: IResUser | null;
|
|
5
|
-
message: IResMessage[];
|
|
6
|
-
responsive: PAGE_RESPONSIVE;
|
|
7
|
-
showNewCustomer: boolean;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: import("vue").DefineComponent<Props, {
|
|
11
|
-
scrollBottom: () => void;
|
|
12
|
-
hideScrollEvent: () => void;
|
|
13
|
-
fixedScroll: () => void;
|
|
14
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
|
-
scrollTop: () => any;
|
|
16
|
-
callBack: () => any;
|
|
17
|
-
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
18
|
-
onScrollTop?: (() => any) | undefined;
|
|
19
|
-
onCallBack?: (() => any) | undefined;
|
|
20
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
-
export default _default;
|