@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,70 @@
|
|
|
1
|
+
import axios from '../../../plugins/axios';
|
|
2
|
+
export const getMessage = async (params) => {
|
|
3
|
+
const res = await axios.get('/api/v1/message/message/get-message', {
|
|
4
|
+
params
|
|
5
|
+
});
|
|
6
|
+
return res;
|
|
7
|
+
};
|
|
8
|
+
export const getDetailReceiver = async (receiverId) => {
|
|
9
|
+
const res = await axios.get(`/api/v1/message/message/get-user?receiver_id=${receiverId}`);
|
|
10
|
+
return res;
|
|
11
|
+
};
|
|
12
|
+
export const getDetailUser = async (id) => {
|
|
13
|
+
if (!id)
|
|
14
|
+
return null;
|
|
15
|
+
const res = await axios.get(`/api/v1/message/message/user-detail?id=${id}`);
|
|
16
|
+
return res;
|
|
17
|
+
};
|
|
18
|
+
export const readMessages = async (conversationId) => {
|
|
19
|
+
if (!conversationId)
|
|
20
|
+
return;
|
|
21
|
+
return axios.post(`/api/v1/message/message/mark-as-read?conversation_id=${conversationId}`);
|
|
22
|
+
};
|
|
23
|
+
export const sendMessage = async (body) => {
|
|
24
|
+
const res = await axios.post('/api/v1/message/message/send-message', body, {
|
|
25
|
+
headers: {
|
|
26
|
+
'Content-Type': 'multipart/form-data'
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
return res;
|
|
30
|
+
};
|
|
31
|
+
export const sendMessageSmsTest = async (body) => {
|
|
32
|
+
const time = Date.now().toString(16); // timestamp hex
|
|
33
|
+
// const random = crypto.randomUUID().replace(/-/g, '').slice(0, 16)
|
|
34
|
+
const uuid = `${'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
|
|
35
|
+
const r = (Math.random() * 16) | 0;
|
|
36
|
+
const v = c === 'x' ? r : (r & 0x3) | 0x8;
|
|
37
|
+
return v.toString(16);
|
|
38
|
+
})}-${time}`;
|
|
39
|
+
for (let i = 1; i <= 7; i++) {
|
|
40
|
+
try {
|
|
41
|
+
const res = await axios.post('/api/v1/public/message/site/webhook-sms', { ...body, message_uuid: uuid, message_time: '2025-11-18 10:11:45.404027' }, {
|
|
42
|
+
headers: {
|
|
43
|
+
'Content-Type': 'multipart/form-data',
|
|
44
|
+
token: '7z62dhqbhfPIsw7hom1vZTOhmGiRz',
|
|
45
|
+
Authorization: ''
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
return res;
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
console.log(err);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export const getCountUnread = async (params) => {
|
|
56
|
+
const res = await axios.get('/api/v1/message/message/unread-count', { params });
|
|
57
|
+
return res;
|
|
58
|
+
};
|
|
59
|
+
export const upLoadImage = async (body) => {
|
|
60
|
+
const res = await axios.post('/api/v1/general/storage/upload', body, {
|
|
61
|
+
headers: {
|
|
62
|
+
'Content-Type': 'multipart/form-data'
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
return res;
|
|
66
|
+
};
|
|
67
|
+
export const activePlivoMode = async (body) => {
|
|
68
|
+
const res = await axios.post('/api/v1/message/message/active-sms', body, {});
|
|
69
|
+
return res;
|
|
70
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import axios from '../../../plugins/axios';
|
|
2
|
+
import { ref } from 'vue';
|
|
3
|
+
export const timeLimit = ref(0);
|
|
4
|
+
export const getPhoneTimeLimit = async (params) => {
|
|
5
|
+
const res = await axios.get('/api/v1/message/tenant/get-phone-time-limit', { params });
|
|
6
|
+
timeLimit.value = res?.remaining_seconds ?? 0;
|
|
7
|
+
return res?.remaining_seconds ?? 0;
|
|
8
|
+
};
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import type { IResUser } from '../../../types/message';
|
|
2
|
+
import type { GetCustomerHistoryResponse } from '../../../types/chat/user';
|
|
3
|
+
export declare const user: import("vue").Ref<{
|
|
4
|
+
id: number;
|
|
5
|
+
username: string;
|
|
6
|
+
phone: string;
|
|
7
|
+
avatar: string | null;
|
|
8
|
+
tenant_id: string | null;
|
|
9
|
+
color: string;
|
|
10
|
+
status: number;
|
|
11
|
+
last_offline_at: string;
|
|
12
|
+
is_known: number;
|
|
13
|
+
} | null, IResUser | {
|
|
14
|
+
id: number;
|
|
15
|
+
username: string;
|
|
16
|
+
phone: string;
|
|
17
|
+
avatar: string | null;
|
|
18
|
+
tenant_id: string | null;
|
|
19
|
+
color: string;
|
|
20
|
+
status: number;
|
|
21
|
+
last_offline_at: string;
|
|
22
|
+
is_known: number;
|
|
23
|
+
} | null>;
|
|
24
|
+
export declare const userHistory: import("vue").Ref<{
|
|
25
|
+
checkin: {
|
|
26
|
+
id: number;
|
|
27
|
+
created_at: string;
|
|
28
|
+
status: string;
|
|
29
|
+
point_bonus: number;
|
|
30
|
+
}[];
|
|
31
|
+
order: {
|
|
32
|
+
id: number;
|
|
33
|
+
created_at: string;
|
|
34
|
+
tip: any;
|
|
35
|
+
customer_id: number;
|
|
36
|
+
customer_name: string;
|
|
37
|
+
customer_phone: string;
|
|
38
|
+
customer_email: any;
|
|
39
|
+
customer_address: any;
|
|
40
|
+
payment_method: any;
|
|
41
|
+
currency: any;
|
|
42
|
+
start_time: any;
|
|
43
|
+
expected_end_time: any;
|
|
44
|
+
end_time: any;
|
|
45
|
+
picked_up_time: any;
|
|
46
|
+
promotion_code: any;
|
|
47
|
+
total_before_discount: number;
|
|
48
|
+
total_after_discount: number;
|
|
49
|
+
employee_id: any;
|
|
50
|
+
employee_name: any;
|
|
51
|
+
type: string;
|
|
52
|
+
note: any;
|
|
53
|
+
owner_note: any;
|
|
54
|
+
order_status: number;
|
|
55
|
+
status: number;
|
|
56
|
+
updated_at: string;
|
|
57
|
+
cancel_reason: any;
|
|
58
|
+
delivered_time: any;
|
|
59
|
+
completed_time: any;
|
|
60
|
+
order_code: string;
|
|
61
|
+
checkin_id: any;
|
|
62
|
+
total_change: number;
|
|
63
|
+
tax: number;
|
|
64
|
+
is_waiting: number;
|
|
65
|
+
is_recheck: number;
|
|
66
|
+
gift_card_price: number;
|
|
67
|
+
pax_standalone_active: any;
|
|
68
|
+
ach_payment_active: any;
|
|
69
|
+
ach_payment_data: any;
|
|
70
|
+
total_cash_discount: number;
|
|
71
|
+
is_tip_on_device: number;
|
|
72
|
+
tip_by_credit_card: number;
|
|
73
|
+
service_fee: number;
|
|
74
|
+
external_credit_card: number;
|
|
75
|
+
qr_code: string;
|
|
76
|
+
in_service: number;
|
|
77
|
+
attachment: any;
|
|
78
|
+
}[];
|
|
79
|
+
appointment: {
|
|
80
|
+
id: number;
|
|
81
|
+
created_at: string;
|
|
82
|
+
services: any;
|
|
83
|
+
status: string;
|
|
84
|
+
start_time: string;
|
|
85
|
+
end_time_expected: string;
|
|
86
|
+
note: string;
|
|
87
|
+
extra_data: string;
|
|
88
|
+
}[];
|
|
89
|
+
cashback: {
|
|
90
|
+
id: number;
|
|
91
|
+
customer_id: number;
|
|
92
|
+
type: string;
|
|
93
|
+
old_cashback: number;
|
|
94
|
+
change: number;
|
|
95
|
+
new_cashback: number;
|
|
96
|
+
description: string;
|
|
97
|
+
data: any;
|
|
98
|
+
created_at: string;
|
|
99
|
+
updated_at: string;
|
|
100
|
+
}[];
|
|
101
|
+
full_name: string;
|
|
102
|
+
lifetime_point: number;
|
|
103
|
+
total_appointment: number;
|
|
104
|
+
total_money: number;
|
|
105
|
+
visit_count: number;
|
|
106
|
+
} | null, GetCustomerHistoryResponse | {
|
|
107
|
+
checkin: {
|
|
108
|
+
id: number;
|
|
109
|
+
created_at: string;
|
|
110
|
+
status: string;
|
|
111
|
+
point_bonus: number;
|
|
112
|
+
}[];
|
|
113
|
+
order: {
|
|
114
|
+
id: number;
|
|
115
|
+
created_at: string;
|
|
116
|
+
tip: any;
|
|
117
|
+
customer_id: number;
|
|
118
|
+
customer_name: string;
|
|
119
|
+
customer_phone: string;
|
|
120
|
+
customer_email: any;
|
|
121
|
+
customer_address: any;
|
|
122
|
+
payment_method: any;
|
|
123
|
+
currency: any;
|
|
124
|
+
start_time: any;
|
|
125
|
+
expected_end_time: any;
|
|
126
|
+
end_time: any;
|
|
127
|
+
picked_up_time: any;
|
|
128
|
+
promotion_code: any;
|
|
129
|
+
total_before_discount: number;
|
|
130
|
+
total_after_discount: number;
|
|
131
|
+
employee_id: any;
|
|
132
|
+
employee_name: any;
|
|
133
|
+
type: string;
|
|
134
|
+
note: any;
|
|
135
|
+
owner_note: any;
|
|
136
|
+
order_status: number;
|
|
137
|
+
status: number;
|
|
138
|
+
updated_at: string;
|
|
139
|
+
cancel_reason: any;
|
|
140
|
+
delivered_time: any;
|
|
141
|
+
completed_time: any;
|
|
142
|
+
order_code: string;
|
|
143
|
+
checkin_id: any;
|
|
144
|
+
total_change: number;
|
|
145
|
+
tax: number;
|
|
146
|
+
is_waiting: number;
|
|
147
|
+
is_recheck: number;
|
|
148
|
+
gift_card_price: number;
|
|
149
|
+
pax_standalone_active: any;
|
|
150
|
+
ach_payment_active: any;
|
|
151
|
+
ach_payment_data: any;
|
|
152
|
+
total_cash_discount: number;
|
|
153
|
+
is_tip_on_device: number;
|
|
154
|
+
tip_by_credit_card: number;
|
|
155
|
+
service_fee: number;
|
|
156
|
+
external_credit_card: number;
|
|
157
|
+
qr_code: string;
|
|
158
|
+
in_service: number;
|
|
159
|
+
attachment: any;
|
|
160
|
+
}[];
|
|
161
|
+
appointment: {
|
|
162
|
+
id: number;
|
|
163
|
+
created_at: string;
|
|
164
|
+
services: any;
|
|
165
|
+
status: string;
|
|
166
|
+
start_time: string;
|
|
167
|
+
end_time_expected: string;
|
|
168
|
+
note: string;
|
|
169
|
+
extra_data: string;
|
|
170
|
+
}[];
|
|
171
|
+
cashback: {
|
|
172
|
+
id: number;
|
|
173
|
+
customer_id: number;
|
|
174
|
+
type: string;
|
|
175
|
+
old_cashback: number;
|
|
176
|
+
change: number;
|
|
177
|
+
new_cashback: number;
|
|
178
|
+
description: string;
|
|
179
|
+
data: any;
|
|
180
|
+
created_at: string;
|
|
181
|
+
updated_at: string;
|
|
182
|
+
}[];
|
|
183
|
+
full_name: string;
|
|
184
|
+
lifetime_point: number;
|
|
185
|
+
total_appointment: number;
|
|
186
|
+
total_money: number;
|
|
187
|
+
visit_count: number;
|
|
188
|
+
} | null>;
|
|
189
|
+
export declare const getUserHistory: (phone: string) => Promise<void>;
|
|
190
|
+
export declare const getUserSearch: (params: {
|
|
191
|
+
keywords: string;
|
|
192
|
+
}) => Promise<any>;
|
|
193
|
+
export declare const getUserDetailChat: (params: {
|
|
194
|
+
phone: string;
|
|
195
|
+
client_id: string;
|
|
196
|
+
}) => Promise<any>;
|
|
197
|
+
export declare function getItemsByYear<T = any>(data: any, key?: string): {
|
|
198
|
+
year: string;
|
|
199
|
+
items: T[];
|
|
200
|
+
}[];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ref } from 'vue';
|
|
2
|
+
import axios_gci from '../../../plugins/axios-gci';
|
|
3
|
+
import axios from '../../../plugins/axios';
|
|
4
|
+
import dayjs from 'dayjs';
|
|
5
|
+
export const user = ref(null);
|
|
6
|
+
export const userHistory = ref(null);
|
|
7
|
+
export const getUserHistory = async (phone) => {
|
|
8
|
+
userHistory.value = null;
|
|
9
|
+
const res = await axios_gci.get(`/v1/pos/customer/site/history?phone=${phone}`);
|
|
10
|
+
userHistory.value = res;
|
|
11
|
+
};
|
|
12
|
+
export const getUserSearch = async (params) => {
|
|
13
|
+
const res = await axios_gci.get('/v1/appointment/customer/list/all', { params });
|
|
14
|
+
console.log(res);
|
|
15
|
+
return res?.items ?? [];
|
|
16
|
+
};
|
|
17
|
+
export const getUserDetailChat = async (params) => {
|
|
18
|
+
const res = await axios.get('/api/v1/message/customer/info', { params });
|
|
19
|
+
return res;
|
|
20
|
+
};
|
|
21
|
+
export function getItemsByYear(data, key = 'created_at') {
|
|
22
|
+
let result = [];
|
|
23
|
+
if (data?.length) {
|
|
24
|
+
let curYear = dayjs(data[0][key]).format('YYYY');
|
|
25
|
+
let items = [];
|
|
26
|
+
for (let i = 0; i < data.length; i++) {
|
|
27
|
+
items.push(data[i]);
|
|
28
|
+
let nextItemYear = data[i + 1] ? dayjs(data[i + 1][key]).format('YYYY') : curYear;
|
|
29
|
+
if (nextItemYear != curYear) {
|
|
30
|
+
result.push({
|
|
31
|
+
year: curYear,
|
|
32
|
+
items: [...items]
|
|
33
|
+
});
|
|
34
|
+
curYear = nextItemYear;
|
|
35
|
+
items = [];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
result.push({
|
|
39
|
+
year: curYear,
|
|
40
|
+
items: [...items]
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import { TIME_ZONE_UTC } from '../constant/datetime';
|
|
3
|
+
export const DATE_FORMAT_MEDIUM = 'MMM D, YYYY';
|
|
4
|
+
export const getTimeLocal = (time) => {
|
|
5
|
+
if (!dayjs(time).isValid())
|
|
6
|
+
return null;
|
|
7
|
+
return dayjs.tz(time, TIME_ZONE_UTC).local();
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDebounce: <T extends (...args: any[]) => void>(func: T, wait?: number) => ((...args: Parameters<T>) => void);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const isJsonString = (str) => {
|
|
2
|
+
try {
|
|
3
|
+
JSON.parse(str);
|
|
4
|
+
}
|
|
5
|
+
catch (e) {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
return true;
|
|
9
|
+
};
|
|
10
|
+
export const tryParseJson = (data) => {
|
|
11
|
+
try {
|
|
12
|
+
const result = JSON.parse(data);
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
catch (e) {
|
|
16
|
+
return data;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export const phoneNumberFormat = (phone, halfShowType = 1) => {
|
|
2
|
+
let number = (("" + phone) || '').replace(/[^\d*]/g, "");
|
|
3
|
+
if (number.length > 10) {
|
|
4
|
+
number = number.substring(number.length - 10);
|
|
5
|
+
}
|
|
6
|
+
if (number.length == 10) {
|
|
7
|
+
if (false) {
|
|
8
|
+
if (halfShowType == 4) {
|
|
9
|
+
number = (number || '').replace(/(\d{3})(\d{3})(\d{4})/, "*** $3");
|
|
10
|
+
}
|
|
11
|
+
if (halfShowType == 3) {
|
|
12
|
+
number = (number || '').replace(/(\d{3})(\d{3})(\d{4})/, "($3)");
|
|
13
|
+
}
|
|
14
|
+
if (halfShowType == 2) {
|
|
15
|
+
number = (number || '').replace(/(\d{3})(\d{3})(\d{4})/, "***-***-$3");
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
number = (number || '').replace(/(\d{3})(\d{3})(\d{4})/, "(***) ***-$3");
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
number = (number || '').replace(/(\d{3})(\d{3})(\d{4})/, "($1) $2-$3");
|
|
23
|
+
}
|
|
24
|
+
return number;
|
|
25
|
+
}
|
|
26
|
+
return "";
|
|
27
|
+
};
|
|
28
|
+
export function phoneNumberFormatInput(input) {
|
|
29
|
+
const digits = input.replace(/\D/g, '').slice(0, 10);
|
|
30
|
+
const len = digits.length;
|
|
31
|
+
if (len === 0)
|
|
32
|
+
return '';
|
|
33
|
+
if (len < 4) {
|
|
34
|
+
return `(${digits}`;
|
|
35
|
+
}
|
|
36
|
+
if (len < 7) {
|
|
37
|
+
return `(${digits.slice(0, 3)}) ${digits.slice(3)}`;
|
|
38
|
+
}
|
|
39
|
+
return `(${digits.slice(0, 3)}) ${digits.slice(3, 6)}-${digits.slice(6)}`;
|
|
40
|
+
}
|
|
41
|
+
export function keepOnlyNumber(value) {
|
|
42
|
+
return value.replace(/\D+/g, '');
|
|
43
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
isLib: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
+
tryAgain: () => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
7
|
+
onTryAgain?: (() => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
const tryAgain = () => {
|
|
2
|
+
if (props.isLib) {
|
|
3
|
+
emit('tryAgain');
|
|
4
|
+
}
|
|
5
|
+
else {
|
|
6
|
+
window.location.href = '/';
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
const props = withDefaults(defineProps(), {});
|
|
10
|
+
const emit = defineEmits();
|
|
11
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
12
|
+
const __VLS_defaults = {};
|
|
13
|
+
const __VLS_ctx = {
|
|
14
|
+
...{},
|
|
15
|
+
...{},
|
|
16
|
+
...{},
|
|
17
|
+
...{},
|
|
18
|
+
...{},
|
|
19
|
+
};
|
|
20
|
+
let __VLS_elements;
|
|
21
|
+
let __VLS_components;
|
|
22
|
+
let __VLS_directives;
|
|
23
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
24
|
+
...{ class: "flex flex-col items-center justify-center w-full h-full py-10 text-center" },
|
|
25
|
+
});
|
|
26
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
27
|
+
...{ class: "w-24 h-24 flex items-center justify-center rounded-full bg-gray-100" },
|
|
28
|
+
});
|
|
29
|
+
__VLS_asFunctionalElement(__VLS_elements.svg, __VLS_elements.svg)({
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31
|
+
...{ class: "w-10 h-10 text-gray-400" },
|
|
32
|
+
fill: "none",
|
|
33
|
+
viewBox: "0 0 24 24",
|
|
34
|
+
'stroke-width': "1.5",
|
|
35
|
+
stroke: "currentColor",
|
|
36
|
+
});
|
|
37
|
+
__VLS_asFunctionalElement(__VLS_elements.path)({
|
|
38
|
+
'stroke-linecap': "round",
|
|
39
|
+
'stroke-linejoin': "round",
|
|
40
|
+
d: "\u004d\u0032\u002e\u0032\u0035\u0020\u0036\u002e\u0037\u0035\u0063\u0030\u0020\u0038\u002e\u0032\u0038\u0034\u0020\u0036\u002e\u0037\u0031\u0036\u0020\u0031\u0035\u0020\u0031\u0035\u0020\u0031\u0035\u0068\u0031\u002e\u0035\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0061\u0032\u002e\u0032\u0035\u0020\u0032\u002e\u0032\u0035\u0020\u0030\u0020\u0030\u0020\u0030\u0020\u0032\u002e\u0032\u0035\u002d\u0032\u002e\u0032\u0035\u0076\u002d\u0032\u002e\u0030\u0037\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0063\u0030\u002d\u002e\u0035\u0031\u0036\u002d\u002e\u0033\u0035\u0031\u002d\u002e\u0039\u0036\u0036\u002d\u002e\u0038\u0035\u0032\u002d\u0031\u002e\u0030\u0039\u0031\u006c\u002d\u0034\u002e\u0034\u0032\u0033\u002d\u0031\u002e\u0031\u0030\u0036\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0061\u0031\u002e\u0031\u0032\u0035\u0020\u0031\u002e\u0031\u0032\u0035\u0020\u0030\u0020\u0030\u0020\u0030\u002d\u0031\u002e\u0031\u0037\u0033\u002e\u0034\u0031\u0037\u006c\u002d\u002e\u0039\u0037\u0020\u0031\u002e\u0032\u0039\u0033\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0063\u002d\u002e\u0032\u0036\u0035\u002e\u0033\u0035\u0033\u002d\u002e\u0037\u0033\u0039\u002e\u0035\u0030\u0032\u002d\u0031\u002e\u0031\u0035\u0033\u002e\u0033\u0032\u0036\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0061\u0031\u0032\u002e\u0030\u0033\u0035\u0020\u0031\u0032\u002e\u0030\u0033\u0035\u0020\u0030\u0020\u0030\u0020\u0031\u002d\u0035\u002e\u0033\u0034\u0038\u002d\u0035\u002e\u0033\u0034\u0038\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0063\u002d\u002e\u0031\u0037\u0036\u002d\u002e\u0034\u0031\u0034\u002d\u002e\u0030\u0032\u0037\u002d\u002e\u0038\u0038\u0038\u002e\u0033\u0032\u0036\u002d\u0031\u002e\u0031\u0035\u0033\u006c\u0031\u002e\u0032\u0039\u0033\u002d\u002e\u0039\u0037\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0063\u002e\u0033\u0039\u002d\u002e\u0032\u0039\u0033\u002e\u0035\u0036\u0033\u002d\u002e\u0037\u0039\u0035\u002e\u0034\u0031\u0037\u002d\u0031\u002e\u0031\u0037\u0033\u004c\u0036\u002e\u0036\u0036\u0020\u0033\u002e\u0031\u0030\u0032\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0041\u0031\u002e\u0031\u0032\u0035\u0020\u0031\u002e\u0031\u0032\u0035\u0020\u0030\u0020\u0030\u0020\u0030\u0020\u0035\u002e\u0035\u0036\u0039\u0020\u0032\u002e\u0032\u0035\u0048\u0033\u002e\u0035\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0041\u0031\u002e\u0032\u0035\u0020\u0031\u002e\u0032\u0035\u0020\u0030\u0020\u0030\u0020\u0030\u0020\u0032\u002e\u0032\u0035\u0020\u0033\u002e\u0035\u0076\u0033\u002e\u0032\u0035\u007a",
|
|
41
|
+
});
|
|
42
|
+
__VLS_asFunctionalElement(__VLS_elements.h2, __VLS_elements.h2)({
|
|
43
|
+
...{ class: "mt-4 text-3xl font-semibold text-gray-700" },
|
|
44
|
+
});
|
|
45
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
46
|
+
...{ class: "mt-1 text-xl text-chat-haze-500 max-w-[700px]" },
|
|
47
|
+
});
|
|
48
|
+
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
49
|
+
...{ onClick: (...[$event]) => {
|
|
50
|
+
__VLS_ctx.tryAgain();
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
[tryAgain,];
|
|
53
|
+
} },
|
|
54
|
+
...{ class: "mt-6 px-4 py-2 rounded-xl h-14 w-[150px] bg-chat-primary text-white text-lg font-semibold hover:bg-blue-700 transition" },
|
|
55
|
+
});
|
|
56
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
57
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
58
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
59
|
+
/** @type {__VLS_StyleScopedClasses['justify-center']} */ ;
|
|
60
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
61
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
62
|
+
/** @type {__VLS_StyleScopedClasses['py-10']} */ ;
|
|
63
|
+
/** @type {__VLS_StyleScopedClasses['text-center']} */ ;
|
|
64
|
+
/** @type {__VLS_StyleScopedClasses['w-24']} */ ;
|
|
65
|
+
/** @type {__VLS_StyleScopedClasses['h-24']} */ ;
|
|
66
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
67
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
68
|
+
/** @type {__VLS_StyleScopedClasses['justify-center']} */ ;
|
|
69
|
+
/** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
|
|
70
|
+
/** @type {__VLS_StyleScopedClasses['bg-gray-100']} */ ;
|
|
71
|
+
/** @type {__VLS_StyleScopedClasses['w-10']} */ ;
|
|
72
|
+
/** @type {__VLS_StyleScopedClasses['h-10']} */ ;
|
|
73
|
+
/** @type {__VLS_StyleScopedClasses['text-gray-400']} */ ;
|
|
74
|
+
/** @type {__VLS_StyleScopedClasses['mt-4']} */ ;
|
|
75
|
+
/** @type {__VLS_StyleScopedClasses['text-3xl']} */ ;
|
|
76
|
+
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
77
|
+
/** @type {__VLS_StyleScopedClasses['text-gray-700']} */ ;
|
|
78
|
+
/** @type {__VLS_StyleScopedClasses['mt-1']} */ ;
|
|
79
|
+
/** @type {__VLS_StyleScopedClasses['text-xl']} */ ;
|
|
80
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-500']} */ ;
|
|
81
|
+
/** @type {__VLS_StyleScopedClasses['max-w-[700px]']} */ ;
|
|
82
|
+
/** @type {__VLS_StyleScopedClasses['mt-6']} */ ;
|
|
83
|
+
/** @type {__VLS_StyleScopedClasses['px-4']} */ ;
|
|
84
|
+
/** @type {__VLS_StyleScopedClasses['py-2']} */ ;
|
|
85
|
+
/** @type {__VLS_StyleScopedClasses['rounded-xl']} */ ;
|
|
86
|
+
/** @type {__VLS_StyleScopedClasses['h-14']} */ ;
|
|
87
|
+
/** @type {__VLS_StyleScopedClasses['w-[150px]']} */ ;
|
|
88
|
+
/** @type {__VLS_StyleScopedClasses['bg-chat-primary']} */ ;
|
|
89
|
+
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
90
|
+
/** @type {__VLS_StyleScopedClasses['text-lg']} */ ;
|
|
91
|
+
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
92
|
+
/** @type {__VLS_StyleScopedClasses['hover:bg-blue-700']} */ ;
|
|
93
|
+
/** @type {__VLS_StyleScopedClasses['transition']} */ ;
|
|
94
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
95
|
+
__typeEmits: {},
|
|
96
|
+
__typeProps: {},
|
|
97
|
+
props: {},
|
|
98
|
+
});
|
|
99
|
+
export default {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IConversation } from '../../../types/conversation';
|
|
2
|
+
type __VLS_ModelProps = {
|
|
3
|
+
'active'?: IConversation | null;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_ModelProps, {
|
|
6
|
+
getUserList: (phone?: string | undefined, option?: {
|
|
7
|
+
reset?: boolean | undefined;
|
|
8
|
+
} | undefined) => Promise<never[] | undefined>;
|
|
9
|
+
checkActiveUserList: () => Promise<void>;
|
|
10
|
+
reset: () => void;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:active": (value: IConversation | null | undefined) => any;
|
|
13
|
+
} & {
|
|
14
|
+
selectConversation: (val: any) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
16
|
+
"onUpdate:active"?: ((value: IConversation | null | undefined) => any) | undefined;
|
|
17
|
+
onSelectConversation?: ((val: any) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
export default _default;
|