@phonghq/go-chat 1.0.70 → 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 +11166 -11151
- 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 -22
- package/dist/chat/App.vue.js +0 -1022
- 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 -600
- 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,200 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
import { dataProfile } from '../../../utils/chat/store/auth';
|
|
3
|
-
import { nextTick, ref } from 'vue';
|
|
4
|
-
import ScrollEvent from '../../../components/chat/ScrollEvent/ScrollEvent.vue';
|
|
5
|
-
import NewCustomer from '../../../chat/page/home/NewCustomer.vue';
|
|
6
|
-
import ChatMessageItem from '../../../chat/page/home/ChatMessageItem.vue';
|
|
7
|
-
import dayjs from 'dayjs';
|
|
8
|
-
const props = withDefaults(defineProps(), {});
|
|
9
|
-
const emit = defineEmits();
|
|
10
|
-
const scrollEventRef = ref(null);
|
|
11
|
-
const scrollBottom = () => {
|
|
12
|
-
nextTick(() => {
|
|
13
|
-
const eleIdContentChat = document.getElementById('content-chat');
|
|
14
|
-
if (eleIdContentChat) {
|
|
15
|
-
eleIdContentChat.scrollTop = eleIdContentChat.scrollHeight;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
const shouldShowAvatar = (index) => {
|
|
20
|
-
if (index === 0)
|
|
21
|
-
return true;
|
|
22
|
-
return props.message[index - 1].sender_id !== props.message[index].sender_id;
|
|
23
|
-
};
|
|
24
|
-
const isEndMessage = (index) => {
|
|
25
|
-
if (props.message?.length == index + 1)
|
|
26
|
-
return true;
|
|
27
|
-
return props.message[index + 1].sender_id !== props.message[index].sender_id;
|
|
28
|
-
};
|
|
29
|
-
const isChatFinished = (index) => {
|
|
30
|
-
if (isEndMessage(index))
|
|
31
|
-
return true;
|
|
32
|
-
const time1 = dayjs(props.message[index].created_at);
|
|
33
|
-
const time2 = dayjs(props.message[index + 1].created_at);
|
|
34
|
-
return time2.diff(time1, 'minute') > 10;
|
|
35
|
-
};
|
|
36
|
-
const isChatStart = (index) => {
|
|
37
|
-
if (shouldShowAvatar(index))
|
|
38
|
-
return true;
|
|
39
|
-
const time1 = dayjs(props.message[index - 1].created_at);
|
|
40
|
-
const time2 = dayjs(props.message[index].created_at);
|
|
41
|
-
return time2.diff(time1, 'minute') > 10;
|
|
42
|
-
};
|
|
43
|
-
const handleScrollTop = () => {
|
|
44
|
-
emit('scrollTop');
|
|
45
|
-
};
|
|
46
|
-
const hideScrollEvent = () => {
|
|
47
|
-
scrollEventRef.value?.hideLoading();
|
|
48
|
-
};
|
|
49
|
-
const fixedScroll = () => {
|
|
50
|
-
scrollEventRef.value?.fixedScroll();
|
|
51
|
-
};
|
|
52
|
-
const __VLS_exposed = { scrollBottom, hideScrollEvent, fixedScroll };
|
|
53
|
-
defineExpose(__VLS_exposed);
|
|
54
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
55
|
-
const __VLS_defaults = {};
|
|
56
|
-
const __VLS_ctx = {
|
|
57
|
-
...{},
|
|
58
|
-
...{},
|
|
59
|
-
...{},
|
|
60
|
-
...{},
|
|
61
|
-
...{},
|
|
62
|
-
};
|
|
63
|
-
let __VLS_elements;
|
|
64
|
-
let __VLS_components;
|
|
65
|
-
let __VLS_directives;
|
|
66
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
67
|
-
...{ class: "relative overflow-hidden" },
|
|
68
|
-
});
|
|
69
|
-
/** @type {[typeof ScrollEvent, typeof ScrollEvent, ]} */ ;
|
|
70
|
-
// @ts-ignore
|
|
71
|
-
const __VLS_0 = __VLS_asFunctionalComponent(ScrollEvent, new ScrollEvent({
|
|
72
|
-
...{ 'onGetDataTop': {} },
|
|
73
|
-
...{ class: "bg-white h-full flex flex-col overflow-auto" },
|
|
74
|
-
id: "content-chat",
|
|
75
|
-
top: true,
|
|
76
|
-
ref: "scrollEventRef",
|
|
77
|
-
}));
|
|
78
|
-
const __VLS_1 = __VLS_0({
|
|
79
|
-
...{ 'onGetDataTop': {} },
|
|
80
|
-
...{ class: "bg-white h-full flex flex-col overflow-auto" },
|
|
81
|
-
id: "content-chat",
|
|
82
|
-
top: true,
|
|
83
|
-
ref: "scrollEventRef",
|
|
84
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
85
|
-
let __VLS_3;
|
|
86
|
-
let __VLS_4;
|
|
87
|
-
const __VLS_5 = ({ getDataTop: {} },
|
|
88
|
-
{ onGetDataTop: (__VLS_ctx.handleScrollTop) });
|
|
89
|
-
/** @type {typeof __VLS_ctx.scrollEventRef} */ ;
|
|
90
|
-
var __VLS_6 = {};
|
|
91
|
-
const { default: __VLS_8 } = __VLS_2.slots;
|
|
92
|
-
// @ts-ignore
|
|
93
|
-
[handleScrollTop, scrollEventRef,];
|
|
94
|
-
if (__VLS_ctx.showNewCustomer) {
|
|
95
|
-
// @ts-ignore
|
|
96
|
-
[showNewCustomer,];
|
|
97
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
98
|
-
...{ class: "shrink-0 h-[500px] chat-padding-page" },
|
|
99
|
-
});
|
|
100
|
-
/** @type {[typeof NewCustomer, ]} */ ;
|
|
101
|
-
// @ts-ignore
|
|
102
|
-
const __VLS_9 = __VLS_asFunctionalComponent(NewCustomer, new NewCustomer({
|
|
103
|
-
...{ class: "h-full" },
|
|
104
|
-
data: (__VLS_ctx.data),
|
|
105
|
-
isNew: (!__VLS_ctx.message.length),
|
|
106
|
-
}));
|
|
107
|
-
const __VLS_10 = __VLS_9({
|
|
108
|
-
...{ class: "h-full" },
|
|
109
|
-
data: (__VLS_ctx.data),
|
|
110
|
-
isNew: (!__VLS_ctx.message.length),
|
|
111
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_9));
|
|
112
|
-
// @ts-ignore
|
|
113
|
-
[data, message,];
|
|
114
|
-
}
|
|
115
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
116
|
-
...{ class: "chat-padding-page" },
|
|
117
|
-
});
|
|
118
|
-
const __VLS_13 = {}.TransitionGroup;
|
|
119
|
-
/** @type {[typeof __VLS_components.TransitionGroup, typeof __VLS_components.transitionGroup, typeof __VLS_components.TransitionGroup, typeof __VLS_components.transitionGroup, ]} */ ;
|
|
120
|
-
// @ts-ignore
|
|
121
|
-
TransitionGroup;
|
|
122
|
-
// @ts-ignore
|
|
123
|
-
const __VLS_14 = __VLS_asFunctionalComponent(__VLS_13, new __VLS_13({
|
|
124
|
-
name: (__VLS_ctx.isLoading ? '' : 'message'),
|
|
125
|
-
tag: "div",
|
|
126
|
-
...{ class: "chat-list" },
|
|
127
|
-
}));
|
|
128
|
-
const __VLS_15 = __VLS_14({
|
|
129
|
-
name: (__VLS_ctx.isLoading ? '' : 'message'),
|
|
130
|
-
tag: "div",
|
|
131
|
-
...{ class: "chat-list" },
|
|
132
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_14));
|
|
133
|
-
const { default: __VLS_17 } = __VLS_16.slots;
|
|
134
|
-
// @ts-ignore
|
|
135
|
-
[isLoading,];
|
|
136
|
-
for (const [item, index] of __VLS_getVForSourceType((__VLS_ctx.message))) {
|
|
137
|
-
// @ts-ignore
|
|
138
|
-
[message,];
|
|
139
|
-
/** @type {[typeof ChatMessageItem, ]} */ ;
|
|
140
|
-
// @ts-ignore
|
|
141
|
-
const __VLS_18 = __VLS_asFunctionalComponent(ChatMessageItem, new ChatMessageItem({
|
|
142
|
-
...{ 'onCallAgain': {} },
|
|
143
|
-
message: (item),
|
|
144
|
-
index: (index),
|
|
145
|
-
responsive: (__VLS_ctx.responsive),
|
|
146
|
-
isMyMessage: (item.sender_id == __VLS_ctx.dataProfile?.id),
|
|
147
|
-
data: (__VLS_ctx.data),
|
|
148
|
-
shouldShowAvatar: (__VLS_ctx.shouldShowAvatar(index)),
|
|
149
|
-
isLastMessage: (index == __VLS_ctx.message.length - 1),
|
|
150
|
-
isEndMessage: (__VLS_ctx.isEndMessage(index)),
|
|
151
|
-
isChatFinished: (__VLS_ctx.isChatFinished(index)),
|
|
152
|
-
isChatStart: (__VLS_ctx.isChatStart(index)),
|
|
153
|
-
}));
|
|
154
|
-
const __VLS_19 = __VLS_18({
|
|
155
|
-
...{ 'onCallAgain': {} },
|
|
156
|
-
message: (item),
|
|
157
|
-
index: (index),
|
|
158
|
-
responsive: (__VLS_ctx.responsive),
|
|
159
|
-
isMyMessage: (item.sender_id == __VLS_ctx.dataProfile?.id),
|
|
160
|
-
data: (__VLS_ctx.data),
|
|
161
|
-
shouldShowAvatar: (__VLS_ctx.shouldShowAvatar(index)),
|
|
162
|
-
isLastMessage: (index == __VLS_ctx.message.length - 1),
|
|
163
|
-
isEndMessage: (__VLS_ctx.isEndMessage(index)),
|
|
164
|
-
isChatFinished: (__VLS_ctx.isChatFinished(index)),
|
|
165
|
-
isChatStart: (__VLS_ctx.isChatStart(index)),
|
|
166
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_18));
|
|
167
|
-
let __VLS_21;
|
|
168
|
-
let __VLS_22;
|
|
169
|
-
const __VLS_23 = ({ callAgain: {} },
|
|
170
|
-
{ onCallAgain: (...[$event]) => {
|
|
171
|
-
__VLS_ctx.emit('callBack');
|
|
172
|
-
// @ts-ignore
|
|
173
|
-
[data, message, responsive, dataProfile, shouldShowAvatar, isEndMessage, isChatFinished, isChatStart, emit,];
|
|
174
|
-
} });
|
|
175
|
-
var __VLS_20;
|
|
176
|
-
}
|
|
177
|
-
var __VLS_16;
|
|
178
|
-
var __VLS_2;
|
|
179
|
-
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
180
|
-
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
181
|
-
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
182
|
-
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
183
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
184
|
-
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
185
|
-
/** @type {__VLS_StyleScopedClasses['overflow-auto']} */ ;
|
|
186
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
187
|
-
/** @type {__VLS_StyleScopedClasses['h-[500px]']} */ ;
|
|
188
|
-
/** @type {__VLS_StyleScopedClasses['chat-padding-page']} */ ;
|
|
189
|
-
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
190
|
-
/** @type {__VLS_StyleScopedClasses['chat-padding-page']} */ ;
|
|
191
|
-
/** @type {__VLS_StyleScopedClasses['chat-list']} */ ;
|
|
192
|
-
// @ts-ignore
|
|
193
|
-
var __VLS_7 = __VLS_6;
|
|
194
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
195
|
-
setup: () => (__VLS_exposed),
|
|
196
|
-
__typeEmits: {},
|
|
197
|
-
__typeProps: {},
|
|
198
|
-
props: {},
|
|
199
|
-
});
|
|
200
|
-
export default {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { IResMessage, IResUser } from '../../../types/message';
|
|
2
|
-
import type { PAGE_RESPONSIVE } from '../../../types/chat/global';
|
|
3
|
-
type Props = {
|
|
4
|
-
message: IResMessage;
|
|
5
|
-
responsive: PAGE_RESPONSIVE;
|
|
6
|
-
isEndMessage: boolean;
|
|
7
|
-
isMyMessage: boolean;
|
|
8
|
-
isLastMessage: boolean;
|
|
9
|
-
shouldShowAvatar: boolean;
|
|
10
|
-
isChatFinished: boolean;
|
|
11
|
-
isChatStart: boolean;
|
|
12
|
-
data: IResUser | null;
|
|
13
|
-
};
|
|
14
|
-
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
|
-
callAgain: () => any;
|
|
16
|
-
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
17
|
-
onCallAgain?: (() => any) | undefined;
|
|
18
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
-
export default _default;
|
|
@@ -1,358 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
import Avatar from '../../../components/chat/customer/Avatar.vue';
|
|
3
|
-
import { computed, nextTick } from 'vue';
|
|
4
|
-
import { MessageState } from '../../../constant/message';
|
|
5
|
-
import IconPhoneCancel from '../../../assets/icons/call/IconPhoneCancel.vue';
|
|
6
|
-
import { PLIVO_CALL_STATUS } from '../../../types/chat/call';
|
|
7
|
-
import IconPhone from '../../../assets/icons/customer-detail/IconPhone.vue';
|
|
8
|
-
import dayjs from 'dayjs';
|
|
9
|
-
import { DATE_FORMATS, TIME_ZONE_UTC } from '../../../constant/datetime';
|
|
10
|
-
import utc from 'dayjs/plugin/utc';
|
|
11
|
-
import timezone from 'dayjs/plugin/timezone';
|
|
12
|
-
dayjs.extend(utc);
|
|
13
|
-
dayjs.extend(timezone);
|
|
14
|
-
const props = withDefaults(defineProps(), {});
|
|
15
|
-
const emit = defineEmits();
|
|
16
|
-
const callTitle = computed(() => {
|
|
17
|
-
if (props.isMyMessage) {
|
|
18
|
-
if (props.message?.call_status == PLIVO_CALL_STATUS.CONNECT_FAILED) {
|
|
19
|
-
return 'Call canceled';
|
|
20
|
-
}
|
|
21
|
-
else if (props.message?.call_status == PLIVO_CALL_STATUS.CALL_END) {
|
|
22
|
-
return 'Outgoing audio call';
|
|
23
|
-
}
|
|
24
|
-
else if (props.message?.call_status == PLIVO_CALL_STATUS.CANCEL) {
|
|
25
|
-
return 'Call canceled';
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
if (props.message?.call_status == PLIVO_CALL_STATUS.BUSY ||
|
|
30
|
-
props.message?.call_status == PLIVO_CALL_STATUS.CANCEL) {
|
|
31
|
-
return 'Call canceled';
|
|
32
|
-
}
|
|
33
|
-
else if (props.message?.call_status == PLIVO_CALL_STATUS.CONNECT_FAILED ||
|
|
34
|
-
props.message?.call_status == PLIVO_CALL_STATUS.TIME_OUT ||
|
|
35
|
-
props.message?.call_status == PLIVO_CALL_STATUS.NO_ANSWER) {
|
|
36
|
-
return 'Call missed';
|
|
37
|
-
}
|
|
38
|
-
else if (props.message?.call_status == PLIVO_CALL_STATUS.CALL_END) {
|
|
39
|
-
return 'Incoming audio call';
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return '';
|
|
43
|
-
});
|
|
44
|
-
const scrollBottom = () => {
|
|
45
|
-
nextTick(() => {
|
|
46
|
-
const eleIdContentChat = document.getElementById('content-chat');
|
|
47
|
-
if (eleIdContentChat) {
|
|
48
|
-
eleIdContentChat.scrollTop = eleIdContentChat.scrollHeight;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
const getCallDuration = (seconds) => {
|
|
53
|
-
const min = Math.floor(seconds / 60);
|
|
54
|
-
const secs = seconds % 60;
|
|
55
|
-
// return `${min} min${min > 1 ? 's' : ''} ${secs} sec`
|
|
56
|
-
return `${String(min).padStart(2, '0')}:${String(secs).padStart(2, '0')}`;
|
|
57
|
-
};
|
|
58
|
-
const getMessageStateText = (item) => {
|
|
59
|
-
const state = item.state;
|
|
60
|
-
switch (state) {
|
|
61
|
-
case MessageState.Sending:
|
|
62
|
-
return 'Sending...';
|
|
63
|
-
case MessageState.Uploading:
|
|
64
|
-
return 'Uploading...';
|
|
65
|
-
case MessageState.Sent:
|
|
66
|
-
return '';
|
|
67
|
-
case MessageState.Read:
|
|
68
|
-
return 'Seen';
|
|
69
|
-
case MessageState.Failed:
|
|
70
|
-
return item.error || 'Message failed';
|
|
71
|
-
default:
|
|
72
|
-
return '';
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
const getFinishTime = (time) => {
|
|
76
|
-
if (!dayjs(time).isValid())
|
|
77
|
-
return '';
|
|
78
|
-
return dayjs.tz(time, TIME_ZONE_UTC).local().format(DATE_FORMATS.TIME_12_FORMAT);
|
|
79
|
-
};
|
|
80
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
81
|
-
const __VLS_defaults = {};
|
|
82
|
-
const __VLS_ctx = {
|
|
83
|
-
...{},
|
|
84
|
-
...{},
|
|
85
|
-
...{},
|
|
86
|
-
...{},
|
|
87
|
-
...{},
|
|
88
|
-
};
|
|
89
|
-
let __VLS_elements;
|
|
90
|
-
let __VLS_components;
|
|
91
|
-
let __VLS_directives;
|
|
92
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
93
|
-
...{ class: "flex items-end mt-1 relative" },
|
|
94
|
-
...{ class: ({
|
|
95
|
-
'mt-2': __VLS_ctx.shouldShowAvatar,
|
|
96
|
-
'flex-col justify-end pl-[60px]': __VLS_ctx.isMyMessage,
|
|
97
|
-
'gap-2': !__VLS_ctx.isMyMessage
|
|
98
|
-
}) },
|
|
99
|
-
});
|
|
100
|
-
// @ts-ignore
|
|
101
|
-
[shouldShowAvatar, isMyMessage, isMyMessage,];
|
|
102
|
-
if (__VLS_ctx.message.state != __VLS_ctx.MessageState.Sending || __VLS_ctx.isMyMessage) {
|
|
103
|
-
// @ts-ignore
|
|
104
|
-
[isMyMessage, message, MessageState,];
|
|
105
|
-
if (!__VLS_ctx.isMyMessage) {
|
|
106
|
-
// @ts-ignore
|
|
107
|
-
[isMyMessage,];
|
|
108
|
-
if (__VLS_ctx.shouldShowAvatar) {
|
|
109
|
-
// @ts-ignore
|
|
110
|
-
[shouldShowAvatar,];
|
|
111
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
112
|
-
...{ class: "" },
|
|
113
|
-
...{ class: (__VLS_ctx.responsive == 'mobile' ? 'w-8' : 'w-12') },
|
|
114
|
-
});
|
|
115
|
-
// @ts-ignore
|
|
116
|
-
[responsive,];
|
|
117
|
-
/** @type {[typeof Avatar, ]} */ ;
|
|
118
|
-
// @ts-ignore
|
|
119
|
-
const __VLS_0 = __VLS_asFunctionalComponent(Avatar, new Avatar({
|
|
120
|
-
...{ class: "shrink-0 absolute top-0" },
|
|
121
|
-
src: (__VLS_ctx.data?.avatar ?? ''),
|
|
122
|
-
color: (__VLS_ctx.data?.color),
|
|
123
|
-
name: (__VLS_ctx.data?.username),
|
|
124
|
-
size: (__VLS_ctx.responsive == 'mobile' ? 'sm' : 'md'),
|
|
125
|
-
...{ class: ({
|
|
126
|
-
'translate-y-[-2px]': __VLS_ctx.responsive == 'mobile',
|
|
127
|
-
}) },
|
|
128
|
-
}));
|
|
129
|
-
const __VLS_1 = __VLS_0({
|
|
130
|
-
...{ class: "shrink-0 absolute top-0" },
|
|
131
|
-
src: (__VLS_ctx.data?.avatar ?? ''),
|
|
132
|
-
color: (__VLS_ctx.data?.color),
|
|
133
|
-
name: (__VLS_ctx.data?.username),
|
|
134
|
-
size: (__VLS_ctx.responsive == 'mobile' ? 'sm' : 'md'),
|
|
135
|
-
...{ class: ({
|
|
136
|
-
'translate-y-[-2px]': __VLS_ctx.responsive == 'mobile',
|
|
137
|
-
}) },
|
|
138
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
139
|
-
// @ts-ignore
|
|
140
|
-
[responsive, responsive, data, data, data,];
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
144
|
-
...{ class: "shrink-0" },
|
|
145
|
-
...{ class: (__VLS_ctx.responsive == 'mobile' ? 'w-8' : 'w-12') },
|
|
146
|
-
});
|
|
147
|
-
// @ts-ignore
|
|
148
|
-
[responsive,];
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({});
|
|
152
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
153
|
-
...{ class: "px-3 py-2 rounded-2xl text-left w-max" },
|
|
154
|
-
...{ class: ({
|
|
155
|
-
'rounded-tl-[6px]': !__VLS_ctx.isChatStart && !__VLS_ctx.isMyMessage,
|
|
156
|
-
'rounded-bl-[6px]': !__VLS_ctx.isChatFinished && !__VLS_ctx.isMyMessage,
|
|
157
|
-
'rounded-tr-[6px]': !__VLS_ctx.isChatStart && __VLS_ctx.isMyMessage,
|
|
158
|
-
'rounded-br-[6px]': !__VLS_ctx.isChatFinished && __VLS_ctx.isMyMessage,
|
|
159
|
-
'!text-white !bg-chat-success': ((__VLS_ctx.message.message_uuid && !__VLS_ctx.message.is_call) || __VLS_ctx.message.is_sms) && __VLS_ctx.isMyMessage,
|
|
160
|
-
'bg-chat-primary text-white': __VLS_ctx.isMyMessage && !__VLS_ctx.message.is_call,
|
|
161
|
-
'bg-[#E4E4E4D4] text-chat-haze-600': !__VLS_ctx.isMyMessage || __VLS_ctx.message.is_call,
|
|
162
|
-
'ml-auto': __VLS_ctx.isMyMessage,
|
|
163
|
-
'mr-auto': !__VLS_ctx.isMyMessage,
|
|
164
|
-
'max-w-[280px]': __VLS_ctx.responsive == 'mobile',
|
|
165
|
-
'max-w-[480px]': __VLS_ctx.responsive !== 'mobile'
|
|
166
|
-
}) },
|
|
167
|
-
});
|
|
168
|
-
// @ts-ignore
|
|
169
|
-
[isMyMessage, isMyMessage, isMyMessage, isMyMessage, isMyMessage, isMyMessage, isMyMessage, isMyMessage, isMyMessage, message, message, message, message, message, responsive, responsive, isChatStart, isChatStart, isChatFinished, isChatFinished,];
|
|
170
|
-
if (__VLS_ctx.message.is_call == 1) {
|
|
171
|
-
// @ts-ignore
|
|
172
|
-
[message,];
|
|
173
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
174
|
-
...{ class: "flex flex-col gap-2 w-[210px]" },
|
|
175
|
-
});
|
|
176
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
177
|
-
...{ class: "flex items-center gap-1" },
|
|
178
|
-
});
|
|
179
|
-
if (__VLS_ctx.message.call_status == __VLS_ctx.PLIVO_CALL_STATUS.CALL_END) {
|
|
180
|
-
// @ts-ignore
|
|
181
|
-
[message, PLIVO_CALL_STATUS,];
|
|
182
|
-
/** @type {[typeof IconPhone, ]} */ ;
|
|
183
|
-
// @ts-ignore
|
|
184
|
-
const __VLS_4 = __VLS_asFunctionalComponent(IconPhone, new IconPhone({
|
|
185
|
-
weight: (2),
|
|
186
|
-
...{ class: "w-5 h-5 text-chat-success" },
|
|
187
|
-
}));
|
|
188
|
-
const __VLS_5 = __VLS_4({
|
|
189
|
-
weight: (2),
|
|
190
|
-
...{ class: "w-5 h-5 text-chat-success" },
|
|
191
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_4));
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
/** @type {[typeof IconPhoneCancel, ]} */ ;
|
|
195
|
-
// @ts-ignore
|
|
196
|
-
const __VLS_8 = __VLS_asFunctionalComponent(IconPhoneCancel, new IconPhoneCancel({
|
|
197
|
-
weight: (2),
|
|
198
|
-
...{ class: "w-5 h-5 text-chat-error" },
|
|
199
|
-
}));
|
|
200
|
-
const __VLS_9 = __VLS_8({
|
|
201
|
-
weight: (2),
|
|
202
|
-
...{ class: "w-5 h-5 text-chat-error" },
|
|
203
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_8));
|
|
204
|
-
}
|
|
205
|
-
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
206
|
-
...{ class: "font-semibold" },
|
|
207
|
-
});
|
|
208
|
-
(__VLS_ctx.callTitle);
|
|
209
|
-
// @ts-ignore
|
|
210
|
-
[callTitle,];
|
|
211
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
212
|
-
...{ class: "flex items-center gap-2 shrink-0" },
|
|
213
|
-
});
|
|
214
|
-
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
|
|
215
|
-
(__VLS_ctx.getCallDuration(__VLS_ctx.message?.duration ?? 0));
|
|
216
|
-
// @ts-ignore
|
|
217
|
-
[message, getCallDuration,];
|
|
218
|
-
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
219
|
-
...{ onClick: (...[$event]) => {
|
|
220
|
-
if (!(__VLS_ctx.message.state != __VLS_ctx.MessageState.Sending || __VLS_ctx.isMyMessage))
|
|
221
|
-
return;
|
|
222
|
-
if (!(__VLS_ctx.message.is_call == 1))
|
|
223
|
-
return;
|
|
224
|
-
__VLS_ctx.emit('callAgain');
|
|
225
|
-
// @ts-ignore
|
|
226
|
-
[emit,];
|
|
227
|
-
} },
|
|
228
|
-
...{ class: "flex-center h-10 rounded-xl bg-chat-haze-200 font-semibold" },
|
|
229
|
-
});
|
|
230
|
-
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({});
|
|
231
|
-
}
|
|
232
|
-
else if (__VLS_ctx.message.message) {
|
|
233
|
-
// @ts-ignore
|
|
234
|
-
[message,];
|
|
235
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({});
|
|
236
|
-
__VLS_asFunctionalElement(__VLS_elements.div)({
|
|
237
|
-
...{ style: ({ wordBreak: 'break-word', whiteSpace: 'pre-line' }) },
|
|
238
|
-
});
|
|
239
|
-
__VLS_asFunctionalDirective(__VLS_directives.vHtml)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.message.message) }, null, null);
|
|
240
|
-
// @ts-ignore
|
|
241
|
-
[message,];
|
|
242
|
-
}
|
|
243
|
-
else if (__VLS_ctx.message?.attachments?.length) {
|
|
244
|
-
// @ts-ignore
|
|
245
|
-
[message,];
|
|
246
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({});
|
|
247
|
-
__VLS_asFunctionalElement(__VLS_elements.img)({
|
|
248
|
-
...{ onLoad: (() => {
|
|
249
|
-
if (__VLS_ctx.isLastMessage) {
|
|
250
|
-
__VLS_ctx.scrollBottom();
|
|
251
|
-
}
|
|
252
|
-
}) },
|
|
253
|
-
src: (__VLS_ctx.message.attachments[0]?.file_path),
|
|
254
|
-
alt: "image",
|
|
255
|
-
});
|
|
256
|
-
// @ts-ignore
|
|
257
|
-
[message, isLastMessage, scrollBottom,];
|
|
258
|
-
}
|
|
259
|
-
if (__VLS_ctx.isChatFinished) {
|
|
260
|
-
// @ts-ignore
|
|
261
|
-
[isChatFinished,];
|
|
262
|
-
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
263
|
-
...{ class: "text-sm mt-1" },
|
|
264
|
-
...{ class: (__VLS_ctx.isMyMessage ? 'text-right' : 'text-left') },
|
|
265
|
-
});
|
|
266
|
-
// @ts-ignore
|
|
267
|
-
[isMyMessage,];
|
|
268
|
-
(__VLS_ctx.getFinishTime(__VLS_ctx.message?.created_at));
|
|
269
|
-
// @ts-ignore
|
|
270
|
-
[message, getFinishTime,];
|
|
271
|
-
}
|
|
272
|
-
if (__VLS_ctx.isMyMessage) {
|
|
273
|
-
// @ts-ignore
|
|
274
|
-
[isMyMessage,];
|
|
275
|
-
if ((__VLS_ctx.isLastMessage && __VLS_ctx.getMessageStateText(__VLS_ctx.message)) || __VLS_ctx.message.state == __VLS_ctx.MessageState.Failed) {
|
|
276
|
-
// @ts-ignore
|
|
277
|
-
[message, message, MessageState, isLastMessage, getMessageStateText,];
|
|
278
|
-
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
279
|
-
...{ class: "text-chat-haze-400 text-xs mt-1" },
|
|
280
|
-
...{ class: ({ '!text-chat-error': __VLS_ctx.message.state == __VLS_ctx.MessageState.Failed }) },
|
|
281
|
-
});
|
|
282
|
-
// @ts-ignore
|
|
283
|
-
[message, MessageState,];
|
|
284
|
-
(__VLS_ctx.getMessageStateText(__VLS_ctx.message));
|
|
285
|
-
// @ts-ignore
|
|
286
|
-
[message, getMessageStateText,];
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
/** @type {__VLS_StyleScopedClasses['']} */ ;
|
|
291
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
292
|
-
/** @type {__VLS_StyleScopedClasses['items-end']} */ ;
|
|
293
|
-
/** @type {__VLS_StyleScopedClasses['mt-1']} */ ;
|
|
294
|
-
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
295
|
-
/** @type {__VLS_StyleScopedClasses['mt-2']} */ ;
|
|
296
|
-
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
297
|
-
/** @type {__VLS_StyleScopedClasses['justify-end']} */ ;
|
|
298
|
-
/** @type {__VLS_StyleScopedClasses['pl-[60px]']} */ ;
|
|
299
|
-
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
300
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
301
|
-
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
302
|
-
/** @type {__VLS_StyleScopedClasses['top-0']} */ ;
|
|
303
|
-
/** @type {__VLS_StyleScopedClasses['translate-y-[-2px]']} */ ;
|
|
304
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
305
|
-
/** @type {__VLS_StyleScopedClasses['px-3']} */ ;
|
|
306
|
-
/** @type {__VLS_StyleScopedClasses['py-2']} */ ;
|
|
307
|
-
/** @type {__VLS_StyleScopedClasses['rounded-2xl']} */ ;
|
|
308
|
-
/** @type {__VLS_StyleScopedClasses['text-left']} */ ;
|
|
309
|
-
/** @type {__VLS_StyleScopedClasses['w-max']} */ ;
|
|
310
|
-
/** @type {__VLS_StyleScopedClasses['rounded-tl-[6px]']} */ ;
|
|
311
|
-
/** @type {__VLS_StyleScopedClasses['rounded-bl-[6px]']} */ ;
|
|
312
|
-
/** @type {__VLS_StyleScopedClasses['rounded-tr-[6px]']} */ ;
|
|
313
|
-
/** @type {__VLS_StyleScopedClasses['rounded-br-[6px]']} */ ;
|
|
314
|
-
/** @type {__VLS_StyleScopedClasses['!text-white']} */ ;
|
|
315
|
-
/** @type {__VLS_StyleScopedClasses['!bg-chat-success']} */ ;
|
|
316
|
-
/** @type {__VLS_StyleScopedClasses['bg-chat-primary']} */ ;
|
|
317
|
-
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
318
|
-
/** @type {__VLS_StyleScopedClasses['bg-[#E4E4E4D4]']} */ ;
|
|
319
|
-
/** @type {__VLS_StyleScopedClasses['text-chat-haze-600']} */ ;
|
|
320
|
-
/** @type {__VLS_StyleScopedClasses['ml-auto']} */ ;
|
|
321
|
-
/** @type {__VLS_StyleScopedClasses['mr-auto']} */ ;
|
|
322
|
-
/** @type {__VLS_StyleScopedClasses['max-w-[280px]']} */ ;
|
|
323
|
-
/** @type {__VLS_StyleScopedClasses['max-w-[480px]']} */ ;
|
|
324
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
325
|
-
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
326
|
-
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
327
|
-
/** @type {__VLS_StyleScopedClasses['w-[210px]']} */ ;
|
|
328
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
329
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
330
|
-
/** @type {__VLS_StyleScopedClasses['gap-1']} */ ;
|
|
331
|
-
/** @type {__VLS_StyleScopedClasses['w-5']} */ ;
|
|
332
|
-
/** @type {__VLS_StyleScopedClasses['h-5']} */ ;
|
|
333
|
-
/** @type {__VLS_StyleScopedClasses['text-chat-success']} */ ;
|
|
334
|
-
/** @type {__VLS_StyleScopedClasses['w-5']} */ ;
|
|
335
|
-
/** @type {__VLS_StyleScopedClasses['h-5']} */ ;
|
|
336
|
-
/** @type {__VLS_StyleScopedClasses['text-chat-error']} */ ;
|
|
337
|
-
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
338
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
339
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
340
|
-
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
341
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
342
|
-
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
343
|
-
/** @type {__VLS_StyleScopedClasses['h-10']} */ ;
|
|
344
|
-
/** @type {__VLS_StyleScopedClasses['rounded-xl']} */ ;
|
|
345
|
-
/** @type {__VLS_StyleScopedClasses['bg-chat-haze-200']} */ ;
|
|
346
|
-
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
347
|
-
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
348
|
-
/** @type {__VLS_StyleScopedClasses['mt-1']} */ ;
|
|
349
|
-
/** @type {__VLS_StyleScopedClasses['text-chat-haze-400']} */ ;
|
|
350
|
-
/** @type {__VLS_StyleScopedClasses['text-xs']} */ ;
|
|
351
|
-
/** @type {__VLS_StyleScopedClasses['mt-1']} */ ;
|
|
352
|
-
/** @type {__VLS_StyleScopedClasses['!text-chat-error']} */ ;
|
|
353
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
354
|
-
__typeEmits: {},
|
|
355
|
-
__typeProps: {},
|
|
356
|
-
props: {},
|
|
357
|
-
});
|
|
358
|
-
export default {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { IResMessage, IResUser } from '../../../types/message';
|
|
2
|
-
import type { PAGE_RESPONSIVE } from '../../../types/chat/global';
|
|
3
|
-
type Props = {
|
|
4
|
-
message: IResMessage;
|
|
5
|
-
responsive: PAGE_RESPONSIVE;
|
|
6
|
-
isEndMessage: boolean;
|
|
7
|
-
isMyMessage: boolean;
|
|
8
|
-
isLastMessage: boolean;
|
|
9
|
-
shouldShowAvatar: boolean;
|
|
10
|
-
isChatFinished: boolean;
|
|
11
|
-
isChatStart: boolean;
|
|
12
|
-
data: IResUser | null;
|
|
13
|
-
};
|
|
14
|
-
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
|
-
callAgain: () => any;
|
|
16
|
-
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
17
|
-
onCallAgain?: (() => any) | undefined;
|
|
18
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
-
export default _default;
|