@phonghq/go-chat 1.0.72 → 1.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/call/IconClock.vue.d.ts +2 -0
- package/dist/assets/icons/call/IconClock.vue.js +22 -0
- package/dist/assets/icons/call/IconClose.vue.d.ts +2 -0
- package/dist/assets/icons/call/IconClose.vue.js +26 -0
- package/dist/assets/icons/call/IconMic.vue.d.ts +14 -0
- package/dist/assets/icons/call/IconMic.vue.js +123 -0
- package/dist/assets/icons/call/IconPhone.vue.d.ts +2 -0
- package/dist/assets/icons/call/IconPhone.vue.js +22 -0
- package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +14 -0
- package/dist/assets/icons/call/IconPhoneCancel.vue.js +46 -0
- package/dist/assets/icons/call/IconSoundDownload.vue.d.ts +2 -0
- package/dist/assets/icons/call/IconSoundDownload.vue.js +50 -0
- package/dist/assets/icons/call/IconSpeaker.vue.d.ts +14 -0
- package/dist/assets/icons/call/IconSpeaker.vue.js +62 -0
- package/dist/assets/icons/chat/IconCalendar.vue.d.ts +14 -0
- package/dist/assets/icons/chat/IconCalendar.vue.js +42 -0
- package/dist/assets/icons/chat/IconCheck.vue.d.ts +2 -0
- package/dist/assets/icons/chat/IconCheck.vue.js +22 -0
- package/dist/assets/icons/chat/IconInfo.vue.d.ts +2 -0
- package/dist/assets/icons/chat/IconInfo.vue.js +20 -0
- package/dist/assets/icons/chat/IconLink.vue.d.ts +14 -0
- package/dist/assets/icons/chat/IconLink.vue.js +42 -0
- package/dist/assets/icons/chat/IconMenuDot.vue.d.ts +2 -0
- package/dist/assets/icons/chat/IconMenuDot.vue.js +31 -0
- package/dist/assets/icons/customer-appointment/IconChevronRight.vue.d.ts +2 -0
- package/dist/assets/icons/customer-appointment/IconChevronRight.vue.js +22 -0
- package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +2 -0
- package/dist/assets/icons/customer-appointment/IconFilter.vue.js +53 -0
- package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconArrow.vue.js +22 -0
- package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconCheck.vue.js +27 -0
- package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconDate.vue.js +43 -0
- package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconGroup.vue.js +48 -0
- package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconMessage.vue.js +28 -0
- package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconNote.vue.js +29 -0
- package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +14 -0
- package/dist/assets/icons/customer-detail/IconPhone.vue.js +41 -0
- package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconPin.vue.js +29 -0
- package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconSearch.vue.js +29 -0
- package/dist/assets/icons/global/IconAiCheck.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconAiCheck.vue.js +28 -0
- package/dist/assets/icons/global/IconArrowLeft.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconArrowLeft.vue.js +29 -0
- package/dist/assets/icons/global/IconBackspace.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconBackspace.vue.js +28 -0
- package/dist/assets/icons/global/IconCloseCircle.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconCloseCircle.vue.js +36 -0
- package/dist/assets/icons/global/IconMessageOutline.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconMessageOutline.vue.js +22 -0
- package/dist/assets/icons/global/IconPhone.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconPhone.vue.js +19 -0
- package/dist/assets/icons/global/IconPlan.vue.d.ts +14 -0
- package/dist/assets/icons/global/IconPlan.vue.js +39 -0
- package/dist/assets/icons/global/IconPlus.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconPlus.vue.js +22 -0
- package/dist/assets/icons/global/IconSearch.vue.d.ts +32 -0
- package/dist/assets/icons/global/IconSearch.vue.js +68 -0
- package/dist/assets/icons/global/IconSms.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconSms.vue.js +22 -0
- package/dist/assets/icons/global/IconUser.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconUser.vue.js +25 -0
- package/dist/assets/icons/lib/IconZoomOut.vue.d.ts +5 -0
- package/dist/assets/icons/lib/IconZoomOut.vue.js +52 -0
- package/dist/chat/App.vue.d.ts +26 -0
- package/dist/chat/App.vue.js +928 -0
- package/dist/chat/ChatHeader.vue.d.ts +15 -0
- package/dist/chat/ChatHeader.vue.js +218 -0
- package/dist/chat/main.d.ts +7 -0
- package/dist/chat/main.js +7 -0
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +9 -0
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.js +262 -0
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +12 -0
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.js +80 -0
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +2 -0
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.js +138 -0
- package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +7 -0
- package/dist/chat/page/customer-detail/CustomerDetail.vue.js +234 -0
- package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +16 -0
- package/dist/chat/page/customer-detail/SubInformation.vue.js +134 -0
- package/dist/chat/page/error/Error.vue.d.ts +2 -0
- package/dist/chat/page/error/Error.vue.js +64 -0
- package/dist/chat/page/home/ChatList.vue.d.ts +104 -0
- package/dist/chat/page/home/ChatList.vue.js +654 -0
- package/dist/chat/page/home/ChatMessage.vue.d.ts +21 -0
- package/dist/chat/page/home/ChatMessage.vue.js +210 -0
- package/dist/chat/page/home/ChatMessageItem.vue.d.ts +20 -0
- package/dist/chat/page/home/ChatMessageItem.vue.js +397 -0
- package/dist/chat/page/home/ChatMessageItem2.vue.d.ts +19 -0
- package/dist/chat/page/home/ChatMessageItem2.vue.js +351 -0
- package/dist/chat/page/home/DropZone.vue.d.ts +13 -0
- package/dist/chat/page/home/DropZone.vue.js +130 -0
- package/dist/chat/page/home/Home.vue.d.ts +29 -0
- package/dist/chat/page/home/Home.vue.js +472 -0
- package/dist/chat/page/home/HomeHeader.vue.d.ts +18 -0
- package/dist/chat/page/home/HomeHeader.vue.js +514 -0
- package/dist/chat/page/home/InputChat.vue.d.ts +27 -0
- package/dist/chat/page/home/InputChat.vue.js +412 -0
- package/dist/chat/page/home/NewCustomer.vue.d.ts +7 -0
- package/dist/chat/page/home/NewCustomer.vue.js +83 -0
- package/dist/chat/page/home/PhoneNumpad.vue.d.ts +22 -0
- package/dist/chat/page/home/PhoneNumpad.vue.js +161 -0
- package/dist/chat/page/setting/Setting.vue.d.ts +2 -0
- package/dist/chat/page/setting/Setting.vue.js +277 -0
- package/dist/chat/page/setting/SettingSuccess.vue.d.ts +2 -0
- package/dist/chat/page/setting/SettingSuccess.vue.js +33 -0
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +24 -0
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.js +207 -0
- package/dist/components/chat/call/Calling.vue.d.ts +17 -0
- package/dist/components/chat/call/Calling.vue.js +594 -0
- package/dist/components/chat/call/TimeLeft.vue.d.ts +5 -0
- package/dist/components/chat/call/TimeLeft.vue.js +59 -0
- package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +13 -0
- package/dist/components/chat/card/CardCustomerDetail.vue.js +28 -0
- package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +20 -0
- package/dist/components/chat/common/collapse/CollapseBase.vue.js +59 -0
- package/dist/components/chat/common/input/InputSearch.vue.d.ts +16 -0
- package/dist/components/chat/common/input/InputSearch.vue.js +71 -0
- package/dist/components/chat/common/modal/Modal.vue.d.ts +94 -0
- package/dist/components/chat/common/modal/Modal.vue.js +260 -0
- package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +35 -0
- package/dist/components/chat/common/popover/PopoverBase.vue.js +148 -0
- package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +10 -0
- package/dist/components/chat/common/spin/BaseSpin.vue.js +43 -0
- package/dist/components/chat/common/switch/SwitchBase.vue.d.ts +17 -0
- package/dist/components/chat/common/switch/SwitchBase.vue.js +76 -0
- package/dist/components/chat/common/tab/TabBase.vue.d.ts +30 -0
- package/dist/components/chat/common/tab/TabBase.vue.js +86 -0
- package/dist/components/chat/common/tabs/TabBase.vue.d.ts +18 -0
- package/dist/components/chat/common/tabs/TabBase.vue.js +93 -0
- package/dist/components/chat/customer/Avatar.vue.d.ts +12 -0
- package/dist/components/chat/customer/Avatar.vue.js +127 -0
- package/dist/components/chat/layout/mobile/Footer.vue.d.ts +2 -0
- package/dist/components/chat/layout/mobile/Footer.vue.js +114 -0
- package/dist/components/chat/select/SelectBase.vue.d.ts +24 -0
- package/dist/components/chat/select/SelectBase.vue.js +105 -0
- package/dist/components/common/CustomLoading.vue.d.ts +2 -0
- package/dist/components/common/CustomLoading.vue.js +19 -0
- package/dist/components/common/Notification/NotificationDescription.vue.d.ts +7 -0
- package/dist/components/common/Notification/NotificationDescription.vue.js +38 -0
- package/dist/components/common/button/ButtonBase.vue.d.ts +22 -0
- package/dist/components/common/button/ButtonBase.vue.js +78 -0
- package/dist/components/common/button/ButtonToggle.vue.d.ts +20 -0
- package/dist/components/common/button/ButtonToggle.vue.js +70 -0
- package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +16 -0
- package/dist/components/common/checkbox/CCheckboxNumber.vue.js +48 -0
- package/dist/components/common/collapse/BaseCollapse.vue.d.ts +12 -0
- package/dist/components/common/collapse/BaseCollapse.vue.js +36 -0
- package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +4 -0
- package/dist/components/common/collapse/BaseCollapseItem.vue.js +22 -0
- package/dist/components/common/drawer/DrawerBase.vue.d.ts +39 -0
- package/dist/components/common/drawer/DrawerBase.vue.js +126 -0
- package/dist/components/common/drawer/DrawerBaseCustom.vue.d.ts +33 -0
- package/dist/components/common/drawer/DrawerBaseCustom.vue.js +135 -0
- package/dist/components/common/dropdown/DropdownBase.vue.d.ts +21 -0
- package/dist/components/common/dropdown/DropdownBase.vue.js +93 -0
- package/dist/components/common/input/CInputSearch.vue.d.ts +14 -0
- package/dist/components/common/input/CInputSearch.vue.js +62 -0
- package/dist/components/common/modal/ModalBase.vue.d.ts +35 -0
- package/dist/components/common/modal/ModalBase.vue.js +187 -0
- package/dist/components/common/popover/PopoverBase.vue.d.ts +3 -0
- package/dist/components/common/popover/PopoverBase.vue.js +36 -0
- package/dist/components/common/select/SelectBase.vue.d.ts +33 -0
- package/dist/components/common/select/SelectBase.vue.js +120 -0
- package/dist/components/common/slider/BaseSlider.vue.d.ts +11 -0
- package/dist/components/common/slider/BaseSlider.vue.js +70 -0
- package/dist/components/common/spin/CSpin.vue.d.ts +9 -0
- package/dist/components/common/spin/CSpin.vue.js +41 -0
- package/dist/components/common/tooltip/TooltipBase.vue.d.ts +2 -0
- package/dist/components/common/tooltip/TooltipBase.vue.js +8 -0
- package/dist/components/layout/PageError.vue.d.ts +2 -0
- package/dist/components/layout/PageError.vue.js +91 -0
- package/dist/components/ui/button/CButton.vue.d.ts +19 -0
- package/dist/components/ui/button/CButton.vue.js +49 -0
- package/dist/components/ui/button/c-button.d.ts +7 -0
- package/dist/components/ui/button/c-button.js +26 -0
- package/dist/components/ui/checkbox/Checkbox.vue.d.ts +18 -0
- package/dist/components/ui/checkbox/Checkbox.vue.js +79 -0
- package/dist/components/ui/checkbox/index.d.ts +1 -0
- package/dist/components/ui/checkbox/index.js +1 -0
- package/dist/components/ui/collapsible/Collapsible.vue.d.ts +16 -0
- package/dist/components/ui/collapsible/Collapsible.vue.js +47 -0
- package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +10 -0
- package/dist/components/ui/collapsible/CollapsibleContent.vue.js +41 -0
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +10 -0
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.js +35 -0
- package/dist/components/ui/collapsible/index.d.ts +3 -0
- package/dist/components/ui/collapsible/index.js +3 -0
- package/dist/components/ui/dialog/Dialog.vue.d.ts +14 -0
- package/dist/components/ui/dialog/Dialog.vue.js +42 -0
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +10 -0
- package/dist/components/ui/dialog/DialogClose.vue.js +35 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +29 -0
- package/dist/components/ui/dialog/DialogContent.vue.js +84 -0
- package/dist/components/ui/dialog/DialogDescription.vue.d.ts +14 -0
- package/dist/components/ui/dialog/DialogDescription.vue.js +43 -0
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +13 -0
- package/dist/components/ui/dialog/DialogFooter.vue.js +26 -0
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +13 -0
- package/dist/components/ui/dialog/DialogHeader.vue.js +26 -0
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +30 -0
- package/dist/components/ui/dialog/DialogScrollContent.vue.js +99 -0
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +14 -0
- package/dist/components/ui/dialog/DialogTitle.vue.js +43 -0
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +10 -0
- package/dist/components/ui/dialog/DialogTrigger.vue.js +35 -0
- package/dist/components/ui/dialog/index.d.ts +9 -0
- package/dist/components/ui/dialog/index.js +9 -0
- package/dist/components/ui/drawer/Drawer.vue.d.ts +26 -0
- package/dist/components/ui/drawer/Drawer.vue.js +48 -0
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +33 -0
- package/dist/components/ui/drawer/DrawerContent.vue.js +81 -0
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +14 -0
- package/dist/components/ui/drawer/DrawerDescription.vue.js +42 -0
- package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +13 -0
- package/dist/components/ui/drawer/DrawerFooter.vue.js +26 -0
- package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +13 -0
- package/dist/components/ui/drawer/DrawerHeader.vue.js +26 -0
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +7 -0
- package/dist/components/ui/drawer/DrawerOverlay.vue.js +37 -0
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +14 -0
- package/dist/components/ui/drawer/DrawerTitle.vue.js +42 -0
- package/dist/components/ui/drawer/index.d.ts +8 -0
- package/dist/components/ui/drawer/index.js +8 -0
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.js +41 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +20 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +79 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +28 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.js +66 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +10 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +35 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +15 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.js +43 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +15 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +43 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +41 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +18 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +80 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +37 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +13 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +26 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.js +41 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +30 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +46 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +58 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +10 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +41 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/components/ui/dropdown-menu/index.js +15 -0
- package/dist/components/ui/popover/Popover.vue.d.ts +14 -0
- package/dist/components/ui/popover/Popover.vue.js +41 -0
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +28 -0
- package/dist/components/ui/popover/PopoverContent.vue.js +60 -0
- package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +10 -0
- package/dist/components/ui/popover/PopoverTrigger.vue.js +35 -0
- package/dist/components/ui/popover/index.d.ts +3 -0
- package/dist/components/ui/popover/index.js +3 -0
- package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +18 -0
- package/dist/components/ui/radio-group/RadioGroup.vue.js +46 -0
- package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +7 -0
- package/dist/components/ui/radio-group/RadioGroupItem.vue.js +71 -0
- package/dist/components/ui/radio-group/index.d.ts +2 -0
- package/dist/components/ui/radio-group/index.js +2 -0
- package/dist/components/ui/select/Select.vue.d.ts +20 -0
- package/dist/components/ui/select/Select.vue.js +49 -0
- package/dist/components/ui/select/SelectContent.vue.d.ts +24 -0
- package/dist/components/ui/select/SelectContent.vue.js +103 -0
- package/dist/components/ui/select/SelectGroup.vue.d.ts +10 -0
- package/dist/components/ui/select/SelectGroup.vue.js +37 -0
- package/dist/components/ui/select/SelectItem.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectItem.vue.js +73 -0
- package/dist/components/ui/select/SelectItemText.vue.d.ts +10 -0
- package/dist/components/ui/select/SelectItemText.vue.js +37 -0
- package/dist/components/ui/select/SelectLabel.vue.d.ts +14 -0
- package/dist/components/ui/select/SelectLabel.vue.js +40 -0
- package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +14 -0
- package/dist/components/ui/select/SelectScrollDownButton.vue.js +58 -0
- package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +14 -0
- package/dist/components/ui/select/SelectScrollUpButton.vue.js +58 -0
- package/dist/components/ui/select/SelectSeparator.vue.d.ts +7 -0
- package/dist/components/ui/select/SelectSeparator.vue.js +39 -0
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +17 -0
- package/dist/components/ui/select/SelectTrigger.vue.js +49 -0
- package/dist/components/ui/select/SelectValue.vue.d.ts +10 -0
- package/dist/components/ui/select/SelectValue.vue.js +37 -0
- package/dist/components/ui/select/index.d.ts +11 -0
- package/dist/components/ui/select/index.js +11 -0
- package/dist/components/ui/slider/Slider.vue.d.ts +13 -0
- package/dist/components/ui/slider/Slider.vue.js +155 -0
- package/dist/components/ui/slider/index.d.ts +1 -0
- package/dist/components/ui/slider/index.js +1 -0
- package/dist/components/ui/switch/Switch.vue.d.ts +18 -0
- package/dist/components/ui/switch/Switch.vue.js +61 -0
- package/dist/components/ui/switch/index.d.ts +1 -0
- package/dist/components/ui/switch/index.js +1 -0
- package/dist/components/ui/tabs/Tabs.vue.d.ts +20 -0
- package/dist/components/ui/tabs/Tabs.vue.js +54 -0
- package/dist/components/ui/tabs/TabsContent.vue.d.ts +14 -0
- package/dist/components/ui/tabs/TabsContent.vue.js +44 -0
- package/dist/components/ui/tabs/TabsList.vue.d.ts +14 -0
- package/dist/components/ui/tabs/TabsList.vue.js +44 -0
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +14 -0
- package/dist/components/ui/tabs/TabsTrigger.vue.js +45 -0
- package/dist/components/ui/tabs/index.d.ts +4 -0
- package/dist/components/ui/tabs/index.js +4 -0
- package/dist/composable/useDigibot.d.ts +7 -0
- package/dist/composable/useDigibot.js +23 -0
- package/dist/composable/useInitData.d.ts +12 -0
- package/dist/composable/useInitData.js +101 -0
- package/dist/composable/useListConversations.d.ts +59 -0
- package/dist/composable/useListConversations.js +220 -0
- package/dist/composable/useListentEvent.d.ts +5 -0
- package/dist/composable/useListentEvent.js +69 -0
- package/dist/composable/usePlivo.d.ts +15 -0
- package/dist/composable/usePlivo.js +201 -0
- package/dist/constant/color.d.ts +22 -0
- package/dist/constant/color.js +47 -0
- package/dist/constant/datetime.d.ts +7 -0
- package/dist/constant/datetime.js +7 -0
- package/dist/constant/general.d.ts +11 -0
- package/dist/constant/general.js +12 -0
- package/dist/constant/message.d.ts +8 -0
- package/dist/constant/message.js +8 -0
- package/dist/constant/mqtt.d.ts +7 -0
- package/dist/constant/mqtt.js +18 -0
- package/dist/constant/user.d.ts +8 -0
- package/dist/constant/user.js +9 -0
- package/dist/go-chat.es.js +18766 -17073
- package/dist/go-chat.umd.js +23 -23
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +5 -0
- package/dist/plugins/axios-gci.d.ts +3 -0
- package/dist/plugins/axios-gci.js +25 -0
- package/dist/plugins/axios.d.ts +3 -0
- package/dist/plugins/axios.js +84 -0
- package/dist/plugins/mqtt.d.ts +8 -0
- package/dist/plugins/mqtt.js +189 -0
- package/dist/plugins/pocketbase.d.ts +5 -0
- package/dist/plugins/pocketbase.js +15 -0
- package/dist/plugins/sdk.d.ts +18 -0
- package/dist/plugins/sdk.js +73 -0
- package/dist/plugins/websocket.d.ts +15 -0
- package/dist/plugins/websocket.js +151 -0
- package/dist/style.css +1 -1
- package/dist/types/chat/auth.d.ts +41 -0
- package/dist/types/chat/auth.js +1 -0
- package/dist/types/chat/call.d.ts +19 -0
- package/dist/types/chat/call.js +23 -0
- package/dist/types/chat/global.d.ts +58 -0
- package/dist/types/chat/global.js +1 -0
- package/dist/types/chat/promise.d.ts +17 -0
- package/dist/types/chat/promise.js +1 -0
- package/dist/types/chat/user.d.ts +88 -0
- package/dist/types/chat/user.js +1 -0
- package/dist/types/conversation.d.ts +23 -0
- package/dist/types/conversation.js +1 -0
- package/dist/types/global.d.ts +11 -0
- package/dist/types/global.js +15 -0
- package/dist/types/message.d.ts +52 -0
- package/dist/types/message.js +1 -0
- package/dist/utils/chat/cache.d.ts +7 -0
- package/dist/utils/chat/cache.js +63 -0
- package/dist/utils/chat/chat-router.d.ts +5 -0
- package/dist/utils/chat/chat-router.js +14 -0
- package/dist/utils/chat/page-error.d.ts +4 -0
- package/dist/utils/chat/page-error.js +25 -0
- package/dist/utils/chat/phone-string.d.ts +1 -0
- package/dist/utils/chat/phone-string.js +4 -0
- package/dist/utils/chat/queue.d.ts +7 -0
- package/dist/utils/chat/queue.js +30 -0
- package/dist/utils/chat/store/auth.d.ts +62 -0
- package/dist/utils/chat/store/auth.js +93 -0
- package/dist/utils/chat/store/call.d.ts +15 -0
- package/dist/utils/chat/store/call.js +160 -0
- package/dist/utils/chat/store/conversation.d.ts +14 -0
- package/dist/utils/chat/store/conversation.js +73 -0
- package/dist/utils/chat/store/message.d.ts +27 -0
- package/dist/utils/chat/store/message.js +70 -0
- package/dist/utils/chat/store/time-limit.d.ts +5 -0
- package/dist/utils/chat/store/time-limit.js +8 -0
- package/dist/utils/chat/store/user.d.ts +200 -0
- package/dist/utils/chat/store/user.js +44 -0
- package/dist/utils/dayjs-helper.d.ts +3 -0
- package/dist/utils/dayjs-helper.js +8 -0
- package/dist/utils/debounce.d.ts +1 -0
- package/dist/utils/debounce.js +9 -0
- package/dist/utils/json.d.ts +2 -0
- package/dist/utils/json.js +18 -0
- package/dist/utils/logger.d.ts +3 -0
- package/dist/utils/logger.js +5 -0
- package/dist/utils/string-helper.d.ts +3 -0
- package/dist/utils/string-helper.js +43 -0
- package/dist/views/NotTenantPhone.vue.d.ts +9 -0
- package/dist/views/NotTenantPhone.vue.js +99 -0
- package/dist/views/home/phone-numpad/ConvercationList.vue.d.ts +19 -0
- package/dist/views/home/phone-numpad/ConvercationList.vue.js +177 -0
- package/dist/views/home/phone-numpad/PhoneNumpad.vue.d.ts +32 -0
- package/dist/views/home/phone-numpad/PhoneNumpad.vue.js +403 -0
- package/package.json +1 -1
|
@@ -0,0 +1,210 @@
|
|
|
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
|
+
import { getTimeLocal } from '../../../utils/dayjs-helper';
|
|
9
|
+
const props = withDefaults(defineProps(), {});
|
|
10
|
+
const emit = defineEmits();
|
|
11
|
+
const scrollEventRef = ref(null);
|
|
12
|
+
const scrollBottom = () => {
|
|
13
|
+
nextTick(() => {
|
|
14
|
+
const eleIdContentChat = document.getElementById('content-chat');
|
|
15
|
+
if (eleIdContentChat) {
|
|
16
|
+
eleIdContentChat.scrollTop = eleIdContentChat.scrollHeight;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const shouldShowAvatar = (index) => {
|
|
21
|
+
if (index === 0)
|
|
22
|
+
return true;
|
|
23
|
+
return props.message[index - 1].sender_id !== props.message[index].sender_id;
|
|
24
|
+
};
|
|
25
|
+
const isEndMessage = (index) => {
|
|
26
|
+
if (props.message?.length == index + 1)
|
|
27
|
+
return true;
|
|
28
|
+
return props.message[index + 1].sender_id !== props.message[index].sender_id;
|
|
29
|
+
};
|
|
30
|
+
const isChatFinished = (index) => {
|
|
31
|
+
if (isEndMessage(index))
|
|
32
|
+
return true;
|
|
33
|
+
const time1 = dayjs(props.message[index].created_at);
|
|
34
|
+
const time2 = dayjs(props.message[index + 1].created_at);
|
|
35
|
+
return time2.diff(time1, 'minute') > 10;
|
|
36
|
+
};
|
|
37
|
+
const isChatStart = (index) => {
|
|
38
|
+
if (shouldShowAvatar(index))
|
|
39
|
+
return true;
|
|
40
|
+
const time1 = dayjs(props.message[index - 1].created_at);
|
|
41
|
+
const time2 = dayjs(props.message[index].created_at);
|
|
42
|
+
return time2.diff(time1, 'minute') > 10;
|
|
43
|
+
};
|
|
44
|
+
const isStartNewDate = (index) => {
|
|
45
|
+
if (index == 0)
|
|
46
|
+
return true;
|
|
47
|
+
const time1 = getTimeLocal(props.message[index - 1].created_at);
|
|
48
|
+
const time2 = getTimeLocal(props.message[index].created_at);
|
|
49
|
+
return !!time2 && time2?.date() != time1?.date();
|
|
50
|
+
};
|
|
51
|
+
const handleScrollTop = () => {
|
|
52
|
+
emit('scrollTop');
|
|
53
|
+
};
|
|
54
|
+
const hideScrollEvent = () => {
|
|
55
|
+
scrollEventRef.value?.hideLoading();
|
|
56
|
+
};
|
|
57
|
+
const fixedScroll = () => {
|
|
58
|
+
scrollEventRef.value?.fixedScroll();
|
|
59
|
+
};
|
|
60
|
+
const __VLS_exposed = { scrollBottom, hideScrollEvent, fixedScroll };
|
|
61
|
+
defineExpose(__VLS_exposed);
|
|
62
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
63
|
+
const __VLS_defaults = {};
|
|
64
|
+
const __VLS_ctx = {
|
|
65
|
+
...{},
|
|
66
|
+
...{},
|
|
67
|
+
...{},
|
|
68
|
+
...{},
|
|
69
|
+
...{},
|
|
70
|
+
};
|
|
71
|
+
let __VLS_elements;
|
|
72
|
+
let __VLS_components;
|
|
73
|
+
let __VLS_directives;
|
|
74
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
75
|
+
...{ class: "relative overflow-hidden" },
|
|
76
|
+
});
|
|
77
|
+
/** @type {[typeof ScrollEvent, typeof ScrollEvent, ]} */ ;
|
|
78
|
+
// @ts-ignore
|
|
79
|
+
const __VLS_0 = __VLS_asFunctionalComponent(ScrollEvent, new ScrollEvent({
|
|
80
|
+
...{ 'onGetDataTop': {} },
|
|
81
|
+
...{ class: "bg-white h-full flex flex-col overflow-auto" },
|
|
82
|
+
id: "content-chat",
|
|
83
|
+
top: true,
|
|
84
|
+
ref: "scrollEventRef",
|
|
85
|
+
}));
|
|
86
|
+
const __VLS_1 = __VLS_0({
|
|
87
|
+
...{ 'onGetDataTop': {} },
|
|
88
|
+
...{ class: "bg-white h-full flex flex-col overflow-auto" },
|
|
89
|
+
id: "content-chat",
|
|
90
|
+
top: true,
|
|
91
|
+
ref: "scrollEventRef",
|
|
92
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
93
|
+
let __VLS_3;
|
|
94
|
+
let __VLS_4;
|
|
95
|
+
const __VLS_5 = ({ getDataTop: {} },
|
|
96
|
+
{ onGetDataTop: (__VLS_ctx.handleScrollTop) });
|
|
97
|
+
/** @type {typeof __VLS_ctx.scrollEventRef} */ ;
|
|
98
|
+
var __VLS_6 = {};
|
|
99
|
+
const { default: __VLS_8 } = __VLS_2.slots;
|
|
100
|
+
// @ts-ignore
|
|
101
|
+
[handleScrollTop, scrollEventRef,];
|
|
102
|
+
if (__VLS_ctx.showNewCustomer) {
|
|
103
|
+
// @ts-ignore
|
|
104
|
+
[showNewCustomer,];
|
|
105
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
106
|
+
...{ class: "shrink-0 h-[500px] chat-padding-page" },
|
|
107
|
+
});
|
|
108
|
+
/** @type {[typeof NewCustomer, ]} */ ;
|
|
109
|
+
// @ts-ignore
|
|
110
|
+
const __VLS_9 = __VLS_asFunctionalComponent(NewCustomer, new NewCustomer({
|
|
111
|
+
...{ class: "h-full" },
|
|
112
|
+
data: (__VLS_ctx.data),
|
|
113
|
+
isNew: (!__VLS_ctx.message.length),
|
|
114
|
+
}));
|
|
115
|
+
const __VLS_10 = __VLS_9({
|
|
116
|
+
...{ class: "h-full" },
|
|
117
|
+
data: (__VLS_ctx.data),
|
|
118
|
+
isNew: (!__VLS_ctx.message.length),
|
|
119
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_9));
|
|
120
|
+
// @ts-ignore
|
|
121
|
+
[data, message,];
|
|
122
|
+
}
|
|
123
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
124
|
+
...{ class: "chat-padding-page" },
|
|
125
|
+
});
|
|
126
|
+
const __VLS_13 = {}.TransitionGroup;
|
|
127
|
+
/** @type {[typeof __VLS_components.TransitionGroup, typeof __VLS_components.transitionGroup, typeof __VLS_components.TransitionGroup, typeof __VLS_components.transitionGroup, ]} */ ;
|
|
128
|
+
// @ts-ignore
|
|
129
|
+
TransitionGroup;
|
|
130
|
+
// @ts-ignore
|
|
131
|
+
const __VLS_14 = __VLS_asFunctionalComponent(__VLS_13, new __VLS_13({
|
|
132
|
+
name: (__VLS_ctx.isLoading ? '' : 'message'),
|
|
133
|
+
tag: "div",
|
|
134
|
+
...{ class: "chat-list" },
|
|
135
|
+
}));
|
|
136
|
+
const __VLS_15 = __VLS_14({
|
|
137
|
+
name: (__VLS_ctx.isLoading ? '' : 'message'),
|
|
138
|
+
tag: "div",
|
|
139
|
+
...{ class: "chat-list" },
|
|
140
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_14));
|
|
141
|
+
const { default: __VLS_17 } = __VLS_16.slots;
|
|
142
|
+
// @ts-ignore
|
|
143
|
+
[isLoading,];
|
|
144
|
+
for (const [item, index] of __VLS_getVForSourceType((__VLS_ctx.message))) {
|
|
145
|
+
// @ts-ignore
|
|
146
|
+
[message,];
|
|
147
|
+
/** @type {[typeof ChatMessageItem, ]} */ ;
|
|
148
|
+
// @ts-ignore
|
|
149
|
+
const __VLS_18 = __VLS_asFunctionalComponent(ChatMessageItem, new ChatMessageItem({
|
|
150
|
+
...{ 'onCallAgain': {} },
|
|
151
|
+
message: (item),
|
|
152
|
+
index: (index),
|
|
153
|
+
responsive: (__VLS_ctx.responsive),
|
|
154
|
+
isMyMessage: (item.sender_id == __VLS_ctx.dataProfile?.id),
|
|
155
|
+
data: (__VLS_ctx.data),
|
|
156
|
+
shouldShowAvatar: (__VLS_ctx.shouldShowAvatar(index)),
|
|
157
|
+
isLastMessage: (index == __VLS_ctx.message.length - 1),
|
|
158
|
+
isEndMessage: (__VLS_ctx.isEndMessage(index)),
|
|
159
|
+
isChatFinished: (__VLS_ctx.isChatFinished(index)),
|
|
160
|
+
isChatStart: (__VLS_ctx.isChatStart(index)),
|
|
161
|
+
isStartNewDate: (__VLS_ctx.isStartNewDate(index)),
|
|
162
|
+
}));
|
|
163
|
+
const __VLS_19 = __VLS_18({
|
|
164
|
+
...{ 'onCallAgain': {} },
|
|
165
|
+
message: (item),
|
|
166
|
+
index: (index),
|
|
167
|
+
responsive: (__VLS_ctx.responsive),
|
|
168
|
+
isMyMessage: (item.sender_id == __VLS_ctx.dataProfile?.id),
|
|
169
|
+
data: (__VLS_ctx.data),
|
|
170
|
+
shouldShowAvatar: (__VLS_ctx.shouldShowAvatar(index)),
|
|
171
|
+
isLastMessage: (index == __VLS_ctx.message.length - 1),
|
|
172
|
+
isEndMessage: (__VLS_ctx.isEndMessage(index)),
|
|
173
|
+
isChatFinished: (__VLS_ctx.isChatFinished(index)),
|
|
174
|
+
isChatStart: (__VLS_ctx.isChatStart(index)),
|
|
175
|
+
isStartNewDate: (__VLS_ctx.isStartNewDate(index)),
|
|
176
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_18));
|
|
177
|
+
let __VLS_21;
|
|
178
|
+
let __VLS_22;
|
|
179
|
+
const __VLS_23 = ({ callAgain: {} },
|
|
180
|
+
{ onCallAgain: (...[$event]) => {
|
|
181
|
+
__VLS_ctx.emit('callBack');
|
|
182
|
+
// @ts-ignore
|
|
183
|
+
[data, message, responsive, dataProfile, shouldShowAvatar, isEndMessage, isChatFinished, isChatStart, isStartNewDate, emit,];
|
|
184
|
+
} });
|
|
185
|
+
var __VLS_20;
|
|
186
|
+
}
|
|
187
|
+
var __VLS_16;
|
|
188
|
+
var __VLS_2;
|
|
189
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
190
|
+
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
191
|
+
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
192
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
193
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
194
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
195
|
+
/** @type {__VLS_StyleScopedClasses['overflow-auto']} */ ;
|
|
196
|
+
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
197
|
+
/** @type {__VLS_StyleScopedClasses['h-[500px]']} */ ;
|
|
198
|
+
/** @type {__VLS_StyleScopedClasses['chat-padding-page']} */ ;
|
|
199
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
200
|
+
/** @type {__VLS_StyleScopedClasses['chat-padding-page']} */ ;
|
|
201
|
+
/** @type {__VLS_StyleScopedClasses['chat-list']} */ ;
|
|
202
|
+
// @ts-ignore
|
|
203
|
+
var __VLS_7 = __VLS_6;
|
|
204
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
205
|
+
setup: () => (__VLS_exposed),
|
|
206
|
+
__typeEmits: {},
|
|
207
|
+
__typeProps: {},
|
|
208
|
+
props: {},
|
|
209
|
+
});
|
|
210
|
+
export default {};
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
isStartNewDate: boolean;
|
|
13
|
+
data: IResUser | null;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
16
|
+
callAgain: () => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
18
|
+
onCallAgain?: (() => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,397 @@
|
|
|
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 } from '../../../constant/datetime';
|
|
10
|
+
import utc from 'dayjs/plugin/utc';
|
|
11
|
+
import timezone from 'dayjs/plugin/timezone';
|
|
12
|
+
import { getTimeLocal } from '../../../utils/dayjs-helper';
|
|
13
|
+
// import IconMenuDot from '@/assets/icons/chat/IconMenuDot.vue'
|
|
14
|
+
dayjs.extend(utc);
|
|
15
|
+
dayjs.extend(timezone);
|
|
16
|
+
const props = withDefaults(defineProps(), {});
|
|
17
|
+
const emit = defineEmits();
|
|
18
|
+
const callTitle = computed(() => {
|
|
19
|
+
if (props.isMyMessage) {
|
|
20
|
+
if (props.message?.call_status == PLIVO_CALL_STATUS.CONNECT_FAILED) {
|
|
21
|
+
return 'Call canceled';
|
|
22
|
+
}
|
|
23
|
+
else if (props.message?.call_status == PLIVO_CALL_STATUS.CALL_END) {
|
|
24
|
+
return 'Outgoing audio call';
|
|
25
|
+
}
|
|
26
|
+
else if (props.message?.call_status == PLIVO_CALL_STATUS.CANCEL) {
|
|
27
|
+
return 'Call canceled';
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
if (props.message?.call_status == PLIVO_CALL_STATUS.BUSY ||
|
|
32
|
+
props.message?.call_status == PLIVO_CALL_STATUS.CANCEL) {
|
|
33
|
+
return 'Call canceled';
|
|
34
|
+
}
|
|
35
|
+
else if (props.message?.call_status == PLIVO_CALL_STATUS.CONNECT_FAILED ||
|
|
36
|
+
props.message?.call_status == PLIVO_CALL_STATUS.TIME_OUT ||
|
|
37
|
+
props.message?.call_status == PLIVO_CALL_STATUS.NO_ANSWER) {
|
|
38
|
+
return 'Call missed';
|
|
39
|
+
}
|
|
40
|
+
else if (props.message?.call_status == PLIVO_CALL_STATUS.CALL_END) {
|
|
41
|
+
return 'Incoming audio call';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return '';
|
|
45
|
+
});
|
|
46
|
+
const scrollBottom = () => {
|
|
47
|
+
nextTick(() => {
|
|
48
|
+
const eleIdContentChat = document.getElementById('content-chat');
|
|
49
|
+
if (eleIdContentChat) {
|
|
50
|
+
eleIdContentChat.scrollTop = eleIdContentChat.scrollHeight;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
const getCallDuration = (seconds) => {
|
|
55
|
+
const min = Math.floor(seconds / 60);
|
|
56
|
+
const secs = seconds % 60;
|
|
57
|
+
// return `${min} min${min > 1 ? 's' : ''} ${secs} sec`
|
|
58
|
+
return `${String(min).padStart(2, '0')}:${String(secs).padStart(2, '0')}`;
|
|
59
|
+
};
|
|
60
|
+
const getMessageStateText = (item) => {
|
|
61
|
+
const state = item.state;
|
|
62
|
+
switch (state) {
|
|
63
|
+
case MessageState.Sending:
|
|
64
|
+
return 'Sending...';
|
|
65
|
+
case MessageState.Uploading:
|
|
66
|
+
return 'Uploading...';
|
|
67
|
+
case MessageState.Sent:
|
|
68
|
+
return '';
|
|
69
|
+
case MessageState.Read:
|
|
70
|
+
return 'Seen';
|
|
71
|
+
case MessageState.Failed:
|
|
72
|
+
return item.error || 'Message failed';
|
|
73
|
+
default:
|
|
74
|
+
return '';
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
const getFinishTime = (time) => {
|
|
78
|
+
return getTimeLocal(time)?.format(DATE_FORMATS.TIME_12_FORMAT) ?? '';
|
|
79
|
+
};
|
|
80
|
+
const getStartDate = (time) => {
|
|
81
|
+
if (getTimeLocal(time)?.date() == dayjs().date()) {
|
|
82
|
+
return 'Today';
|
|
83
|
+
}
|
|
84
|
+
return getTimeLocal(time)?.format(DATE_FORMATS['DATE_FORMAT_MEDIUM']) ?? '';
|
|
85
|
+
};
|
|
86
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
87
|
+
const __VLS_defaults = {};
|
|
88
|
+
const __VLS_ctx = {
|
|
89
|
+
...{},
|
|
90
|
+
...{},
|
|
91
|
+
...{},
|
|
92
|
+
...{},
|
|
93
|
+
...{},
|
|
94
|
+
};
|
|
95
|
+
let __VLS_elements;
|
|
96
|
+
let __VLS_components;
|
|
97
|
+
let __VLS_directives;
|
|
98
|
+
if (__VLS_ctx.isStartNewDate) {
|
|
99
|
+
// @ts-ignore
|
|
100
|
+
[isStartNewDate,];
|
|
101
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
102
|
+
...{ class: "relative flex-center text-chat-haze-200" },
|
|
103
|
+
});
|
|
104
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
105
|
+
...{ class: "absolute translate-x-1/2 bottom-1/2 right-1/2 w-3/4 h-[1px] bg-chat-haze-200" },
|
|
106
|
+
});
|
|
107
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
108
|
+
...{ class: "bg-white text-sm px-4 py-2 z-[1]" },
|
|
109
|
+
});
|
|
110
|
+
(__VLS_ctx.getStartDate(__VLS_ctx.message?.created_at));
|
|
111
|
+
// @ts-ignore
|
|
112
|
+
[getStartDate, message,];
|
|
113
|
+
}
|
|
114
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
115
|
+
...{ class: "flex items-end mt-1 relative" },
|
|
116
|
+
...{ class: ({
|
|
117
|
+
'mt-2': __VLS_ctx.shouldShowAvatar,
|
|
118
|
+
'flex-col justify-end pl-[60px]': __VLS_ctx.isMyMessage,
|
|
119
|
+
'gap-2': !__VLS_ctx.isMyMessage
|
|
120
|
+
}) },
|
|
121
|
+
});
|
|
122
|
+
// @ts-ignore
|
|
123
|
+
[shouldShowAvatar, isMyMessage, isMyMessage,];
|
|
124
|
+
if (__VLS_ctx.message.state != __VLS_ctx.MessageState.Sending || __VLS_ctx.isMyMessage) {
|
|
125
|
+
// @ts-ignore
|
|
126
|
+
[message, isMyMessage, MessageState,];
|
|
127
|
+
if (!__VLS_ctx.isMyMessage) {
|
|
128
|
+
// @ts-ignore
|
|
129
|
+
[isMyMessage,];
|
|
130
|
+
if (__VLS_ctx.shouldShowAvatar) {
|
|
131
|
+
// @ts-ignore
|
|
132
|
+
[shouldShowAvatar,];
|
|
133
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
134
|
+
...{ class: "" },
|
|
135
|
+
...{ class: (__VLS_ctx.responsive == 'mobile' ? 'w-8' : 'w-12') },
|
|
136
|
+
});
|
|
137
|
+
// @ts-ignore
|
|
138
|
+
[responsive,];
|
|
139
|
+
/** @type {[typeof Avatar, ]} */ ;
|
|
140
|
+
// @ts-ignore
|
|
141
|
+
const __VLS_0 = __VLS_asFunctionalComponent(Avatar, new Avatar({
|
|
142
|
+
...{ class: "shrink-0 absolute top-0" },
|
|
143
|
+
src: (__VLS_ctx.data?.avatar ?? ''),
|
|
144
|
+
color: (__VLS_ctx.data?.color),
|
|
145
|
+
name: (__VLS_ctx.data?.username),
|
|
146
|
+
size: (__VLS_ctx.responsive == 'mobile' ? 'sm' : 'md'),
|
|
147
|
+
...{ class: ({
|
|
148
|
+
'translate-y-[-2px]': __VLS_ctx.responsive == 'mobile'
|
|
149
|
+
}) },
|
|
150
|
+
}));
|
|
151
|
+
const __VLS_1 = __VLS_0({
|
|
152
|
+
...{ class: "shrink-0 absolute top-0" },
|
|
153
|
+
src: (__VLS_ctx.data?.avatar ?? ''),
|
|
154
|
+
color: (__VLS_ctx.data?.color),
|
|
155
|
+
name: (__VLS_ctx.data?.username),
|
|
156
|
+
size: (__VLS_ctx.responsive == 'mobile' ? 'sm' : 'md'),
|
|
157
|
+
...{ class: ({
|
|
158
|
+
'translate-y-[-2px]': __VLS_ctx.responsive == 'mobile'
|
|
159
|
+
}) },
|
|
160
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
161
|
+
// @ts-ignore
|
|
162
|
+
[responsive, responsive, data, data, data,];
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
166
|
+
...{ class: "shrink-0" },
|
|
167
|
+
...{ class: (__VLS_ctx.responsive == 'mobile' ? 'w-8' : 'w-12') },
|
|
168
|
+
});
|
|
169
|
+
// @ts-ignore
|
|
170
|
+
[responsive,];
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({});
|
|
174
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
175
|
+
...{ class: "px-3 py-2 rounded-2xl text-left w-max relative group" },
|
|
176
|
+
...{ class: ({
|
|
177
|
+
'rounded-tl-[6px]': !__VLS_ctx.isChatStart && !__VLS_ctx.isMyMessage,
|
|
178
|
+
'rounded-bl-[6px]': !__VLS_ctx.isChatFinished && !__VLS_ctx.isMyMessage,
|
|
179
|
+
'rounded-tr-[6px]': !__VLS_ctx.isChatStart && __VLS_ctx.isMyMessage,
|
|
180
|
+
'rounded-br-[6px]': !__VLS_ctx.isChatFinished && __VLS_ctx.isMyMessage,
|
|
181
|
+
'!text-white !bg-chat-success': ((__VLS_ctx.message.message_uuid && !__VLS_ctx.message.is_call) || __VLS_ctx.message.is_sms) && __VLS_ctx.isMyMessage,
|
|
182
|
+
'bg-chat-primary text-white': __VLS_ctx.isMyMessage && !__VLS_ctx.message.is_call,
|
|
183
|
+
'bg-[#E4E4E4D4] text-chat-haze-600': !__VLS_ctx.isMyMessage || __VLS_ctx.message.is_call,
|
|
184
|
+
'ml-auto': __VLS_ctx.isMyMessage,
|
|
185
|
+
'mr-auto': !__VLS_ctx.isMyMessage,
|
|
186
|
+
'max-w-[280px]': __VLS_ctx.responsive == 'mobile',
|
|
187
|
+
'max-w-[480px]': __VLS_ctx.responsive !== 'mobile'
|
|
188
|
+
}) },
|
|
189
|
+
});
|
|
190
|
+
// @ts-ignore
|
|
191
|
+
[message, message, message, message, message, isMyMessage, isMyMessage, isMyMessage, isMyMessage, isMyMessage, isMyMessage, isMyMessage, isMyMessage, isMyMessage, responsive, responsive, isChatStart, isChatStart, isChatFinished, isChatFinished,];
|
|
192
|
+
if (__VLS_ctx.message.is_call == 1) {
|
|
193
|
+
// @ts-ignore
|
|
194
|
+
[message,];
|
|
195
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
196
|
+
...{ class: "flex flex-col gap-2 w-[210px]" },
|
|
197
|
+
});
|
|
198
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
199
|
+
...{ class: "flex items-center gap-1" },
|
|
200
|
+
});
|
|
201
|
+
if (__VLS_ctx.message.call_status == __VLS_ctx.PLIVO_CALL_STATUS.CALL_END) {
|
|
202
|
+
// @ts-ignore
|
|
203
|
+
[message, PLIVO_CALL_STATUS,];
|
|
204
|
+
/** @type {[typeof IconPhone, ]} */ ;
|
|
205
|
+
// @ts-ignore
|
|
206
|
+
const __VLS_4 = __VLS_asFunctionalComponent(IconPhone, new IconPhone({
|
|
207
|
+
weight: (2),
|
|
208
|
+
...{ class: "w-5 h-5 text-chat-success" },
|
|
209
|
+
}));
|
|
210
|
+
const __VLS_5 = __VLS_4({
|
|
211
|
+
weight: (2),
|
|
212
|
+
...{ class: "w-5 h-5 text-chat-success" },
|
|
213
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_4));
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
/** @type {[typeof IconPhoneCancel, ]} */ ;
|
|
217
|
+
// @ts-ignore
|
|
218
|
+
const __VLS_8 = __VLS_asFunctionalComponent(IconPhoneCancel, new IconPhoneCancel({
|
|
219
|
+
weight: (2),
|
|
220
|
+
...{ class: "w-5 h-5 text-chat-error" },
|
|
221
|
+
}));
|
|
222
|
+
const __VLS_9 = __VLS_8({
|
|
223
|
+
weight: (2),
|
|
224
|
+
...{ class: "w-5 h-5 text-chat-error" },
|
|
225
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_8));
|
|
226
|
+
}
|
|
227
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
228
|
+
...{ class: "font-semibold" },
|
|
229
|
+
});
|
|
230
|
+
(__VLS_ctx.callTitle);
|
|
231
|
+
// @ts-ignore
|
|
232
|
+
[callTitle,];
|
|
233
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
234
|
+
...{ class: "flex items-center gap-2 shrink-0" },
|
|
235
|
+
});
|
|
236
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
|
|
237
|
+
(__VLS_ctx.getCallDuration(__VLS_ctx.message?.duration ?? 0));
|
|
238
|
+
// @ts-ignore
|
|
239
|
+
[message, getCallDuration,];
|
|
240
|
+
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
241
|
+
...{ onClick: (...[$event]) => {
|
|
242
|
+
if (!(__VLS_ctx.message.state != __VLS_ctx.MessageState.Sending || __VLS_ctx.isMyMessage))
|
|
243
|
+
return;
|
|
244
|
+
if (!(__VLS_ctx.message.is_call == 1))
|
|
245
|
+
return;
|
|
246
|
+
__VLS_ctx.emit('callAgain');
|
|
247
|
+
// @ts-ignore
|
|
248
|
+
[emit,];
|
|
249
|
+
} },
|
|
250
|
+
...{ class: "flex-center h-10 rounded-xl bg-chat-haze-200 font-semibold" },
|
|
251
|
+
});
|
|
252
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({});
|
|
253
|
+
}
|
|
254
|
+
else if (__VLS_ctx.message.message) {
|
|
255
|
+
// @ts-ignore
|
|
256
|
+
[message,];
|
|
257
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({});
|
|
258
|
+
__VLS_asFunctionalElement(__VLS_elements.div)({
|
|
259
|
+
...{ style: ({ wordBreak: 'break-word', whiteSpace: 'pre-line' }) },
|
|
260
|
+
});
|
|
261
|
+
__VLS_asFunctionalDirective(__VLS_directives.vHtml)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.message.message) }, null, null);
|
|
262
|
+
// @ts-ignore
|
|
263
|
+
[message,];
|
|
264
|
+
}
|
|
265
|
+
else if (__VLS_ctx.message?.attachments?.length) {
|
|
266
|
+
// @ts-ignore
|
|
267
|
+
[message,];
|
|
268
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({});
|
|
269
|
+
__VLS_asFunctionalElement(__VLS_elements.img)({
|
|
270
|
+
...{ onLoad: (() => {
|
|
271
|
+
if (__VLS_ctx.isLastMessage) {
|
|
272
|
+
__VLS_ctx.scrollBottom();
|
|
273
|
+
}
|
|
274
|
+
}) },
|
|
275
|
+
src: (__VLS_ctx.message.attachments[0]?.file_path),
|
|
276
|
+
alt: "image",
|
|
277
|
+
});
|
|
278
|
+
// @ts-ignore
|
|
279
|
+
[message, isLastMessage, scrollBottom,];
|
|
280
|
+
}
|
|
281
|
+
if (__VLS_ctx.isChatFinished) {
|
|
282
|
+
// @ts-ignore
|
|
283
|
+
[isChatFinished,];
|
|
284
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
285
|
+
...{ class: "text-sm mt-1" },
|
|
286
|
+
...{ class: (__VLS_ctx.isMyMessage ? 'text-right' : 'text-left') },
|
|
287
|
+
});
|
|
288
|
+
// @ts-ignore
|
|
289
|
+
[isMyMessage,];
|
|
290
|
+
(__VLS_ctx.getFinishTime(__VLS_ctx.message?.created_at));
|
|
291
|
+
// @ts-ignore
|
|
292
|
+
[message, getFinishTime,];
|
|
293
|
+
}
|
|
294
|
+
if (__VLS_ctx.isMyMessage) {
|
|
295
|
+
// @ts-ignore
|
|
296
|
+
[isMyMessage,];
|
|
297
|
+
if ((__VLS_ctx.isLastMessage && __VLS_ctx.getMessageStateText(__VLS_ctx.message)) || __VLS_ctx.message.state == __VLS_ctx.MessageState.Failed) {
|
|
298
|
+
// @ts-ignore
|
|
299
|
+
[message, message, MessageState, isLastMessage, getMessageStateText,];
|
|
300
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
301
|
+
...{ class: "text-chat-haze-400 text-xs mt-1" },
|
|
302
|
+
...{ class: ({ '!text-chat-error': __VLS_ctx.message.state == __VLS_ctx.MessageState.Failed }) },
|
|
303
|
+
});
|
|
304
|
+
// @ts-ignore
|
|
305
|
+
[message, MessageState,];
|
|
306
|
+
(__VLS_ctx.getMessageStateText(__VLS_ctx.message));
|
|
307
|
+
// @ts-ignore
|
|
308
|
+
[message, getMessageStateText,];
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
/** @type {__VLS_StyleScopedClasses['']} */ ;
|
|
313
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
314
|
+
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
315
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-200']} */ ;
|
|
316
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
317
|
+
/** @type {__VLS_StyleScopedClasses['translate-x-1/2']} */ ;
|
|
318
|
+
/** @type {__VLS_StyleScopedClasses['bottom-1/2']} */ ;
|
|
319
|
+
/** @type {__VLS_StyleScopedClasses['right-1/2']} */ ;
|
|
320
|
+
/** @type {__VLS_StyleScopedClasses['w-3/4']} */ ;
|
|
321
|
+
/** @type {__VLS_StyleScopedClasses['h-[1px]']} */ ;
|
|
322
|
+
/** @type {__VLS_StyleScopedClasses['bg-chat-haze-200']} */ ;
|
|
323
|
+
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
324
|
+
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
325
|
+
/** @type {__VLS_StyleScopedClasses['px-4']} */ ;
|
|
326
|
+
/** @type {__VLS_StyleScopedClasses['py-2']} */ ;
|
|
327
|
+
/** @type {__VLS_StyleScopedClasses['z-[1]']} */ ;
|
|
328
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
329
|
+
/** @type {__VLS_StyleScopedClasses['items-end']} */ ;
|
|
330
|
+
/** @type {__VLS_StyleScopedClasses['mt-1']} */ ;
|
|
331
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
332
|
+
/** @type {__VLS_StyleScopedClasses['mt-2']} */ ;
|
|
333
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
334
|
+
/** @type {__VLS_StyleScopedClasses['justify-end']} */ ;
|
|
335
|
+
/** @type {__VLS_StyleScopedClasses['pl-[60px]']} */ ;
|
|
336
|
+
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
337
|
+
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
338
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
339
|
+
/** @type {__VLS_StyleScopedClasses['top-0']} */ ;
|
|
340
|
+
/** @type {__VLS_StyleScopedClasses['translate-y-[-2px]']} */ ;
|
|
341
|
+
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
342
|
+
/** @type {__VLS_StyleScopedClasses['px-3']} */ ;
|
|
343
|
+
/** @type {__VLS_StyleScopedClasses['py-2']} */ ;
|
|
344
|
+
/** @type {__VLS_StyleScopedClasses['rounded-2xl']} */ ;
|
|
345
|
+
/** @type {__VLS_StyleScopedClasses['text-left']} */ ;
|
|
346
|
+
/** @type {__VLS_StyleScopedClasses['w-max']} */ ;
|
|
347
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
348
|
+
/** @type {__VLS_StyleScopedClasses['group']} */ ;
|
|
349
|
+
/** @type {__VLS_StyleScopedClasses['rounded-tl-[6px]']} */ ;
|
|
350
|
+
/** @type {__VLS_StyleScopedClasses['rounded-bl-[6px]']} */ ;
|
|
351
|
+
/** @type {__VLS_StyleScopedClasses['rounded-tr-[6px]']} */ ;
|
|
352
|
+
/** @type {__VLS_StyleScopedClasses['rounded-br-[6px]']} */ ;
|
|
353
|
+
/** @type {__VLS_StyleScopedClasses['!text-white']} */ ;
|
|
354
|
+
/** @type {__VLS_StyleScopedClasses['!bg-chat-success']} */ ;
|
|
355
|
+
/** @type {__VLS_StyleScopedClasses['bg-chat-primary']} */ ;
|
|
356
|
+
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
357
|
+
/** @type {__VLS_StyleScopedClasses['bg-[#E4E4E4D4]']} */ ;
|
|
358
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-600']} */ ;
|
|
359
|
+
/** @type {__VLS_StyleScopedClasses['ml-auto']} */ ;
|
|
360
|
+
/** @type {__VLS_StyleScopedClasses['mr-auto']} */ ;
|
|
361
|
+
/** @type {__VLS_StyleScopedClasses['max-w-[280px]']} */ ;
|
|
362
|
+
/** @type {__VLS_StyleScopedClasses['max-w-[480px]']} */ ;
|
|
363
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
364
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
365
|
+
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
366
|
+
/** @type {__VLS_StyleScopedClasses['w-[210px]']} */ ;
|
|
367
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
368
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
369
|
+
/** @type {__VLS_StyleScopedClasses['gap-1']} */ ;
|
|
370
|
+
/** @type {__VLS_StyleScopedClasses['w-5']} */ ;
|
|
371
|
+
/** @type {__VLS_StyleScopedClasses['h-5']} */ ;
|
|
372
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-success']} */ ;
|
|
373
|
+
/** @type {__VLS_StyleScopedClasses['w-5']} */ ;
|
|
374
|
+
/** @type {__VLS_StyleScopedClasses['h-5']} */ ;
|
|
375
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-error']} */ ;
|
|
376
|
+
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
377
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
378
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
379
|
+
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
380
|
+
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
381
|
+
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
382
|
+
/** @type {__VLS_StyleScopedClasses['h-10']} */ ;
|
|
383
|
+
/** @type {__VLS_StyleScopedClasses['rounded-xl']} */ ;
|
|
384
|
+
/** @type {__VLS_StyleScopedClasses['bg-chat-haze-200']} */ ;
|
|
385
|
+
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
386
|
+
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
387
|
+
/** @type {__VLS_StyleScopedClasses['mt-1']} */ ;
|
|
388
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-400']} */ ;
|
|
389
|
+
/** @type {__VLS_StyleScopedClasses['text-xs']} */ ;
|
|
390
|
+
/** @type {__VLS_StyleScopedClasses['mt-1']} */ ;
|
|
391
|
+
/** @type {__VLS_StyleScopedClasses['!text-chat-error']} */ ;
|
|
392
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
393
|
+
__typeEmits: {},
|
|
394
|
+
__typeProps: {},
|
|
395
|
+
props: {},
|
|
396
|
+
});
|
|
397
|
+
export default {};
|
|
@@ -0,0 +1,19 @@
|
|
|
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;
|