@phonghq/go-chat 1.0.70 → 1.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/go-chat.es.js +11166 -11151
- package/dist/go-chat.umd.js +21 -21
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/assets/icons/call/IconClock.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconClock.vue.js +0 -22
- package/dist/assets/icons/call/IconClose.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconClose.vue.js +0 -26
- package/dist/assets/icons/call/IconMic.vue.d.ts +0 -14
- package/dist/assets/icons/call/IconMic.vue.js +0 -123
- package/dist/assets/icons/call/IconPhone.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconPhone.vue.js +0 -22
- package/dist/assets/icons/call/IconPhoneBase.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconPhoneBase.vue.js +0 -20
- package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +0 -14
- package/dist/assets/icons/call/IconPhoneCancel.vue.js +0 -46
- package/dist/assets/icons/call/IconSoundDownload.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconSoundDownload.vue.js +0 -50
- package/dist/assets/icons/call/IconSpeaker.vue.d.ts +0 -14
- package/dist/assets/icons/call/IconSpeaker.vue.js +0 -62
- package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +0 -2
- package/dist/assets/icons/customer-appointment/IconFilter.vue.js +0 -53
- package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconArrow.vue.js +0 -22
- package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconCheck.vue.js +0 -27
- package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconDate.vue.js +0 -43
- package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconGroup.vue.js +0 -48
- package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconMessage.vue.js +0 -28
- package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconNote.vue.js +0 -29
- package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +0 -14
- package/dist/assets/icons/customer-detail/IconPhone.vue.js +0 -41
- package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconPin.vue.js +0 -29
- package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconSearch.vue.js +0 -29
- package/dist/assets/icons/global/IconAiCheck.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconAiCheck.vue.js +0 -28
- package/dist/assets/icons/global/IconArrowLeft.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconArrowLeft.vue.js +0 -29
- package/dist/assets/icons/global/IconBackspace.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconBackspace.vue.js +0 -28
- package/dist/assets/icons/global/IconCloseCircle.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconCloseCircle.vue.js +0 -36
- package/dist/assets/icons/global/IconPhone.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconPhone.vue.js +0 -19
- package/dist/assets/icons/global/IconPlan.vue.d.ts +0 -14
- package/dist/assets/icons/global/IconPlan.vue.js +0 -39
- package/dist/assets/icons/global/IconPlus.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconPlus.vue.js +0 -22
- package/dist/assets/icons/global/IconSearch.vue.d.ts +0 -32
- package/dist/assets/icons/global/IconSearch.vue.js +0 -68
- package/dist/assets/icons/global/IconSms.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconSms.vue.js +0 -22
- package/dist/assets/icons/global/IconUser.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconUser.vue.js +0 -25
- package/dist/chat/App.vue.d.ts +0 -22
- package/dist/chat/App.vue.js +0 -1022
- package/dist/chat/main.d.ts +0 -7
- package/dist/chat/main.js +0 -7
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +0 -2
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.js +0 -207
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +0 -12
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.js +0 -80
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +0 -2
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.js +0 -138
- package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +0 -7
- package/dist/chat/page/customer-detail/CustomerDetail.vue.js +0 -233
- package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +0 -16
- package/dist/chat/page/customer-detail/SubInformation.vue.js +0 -102
- package/dist/chat/page/error/Error.vue.d.ts +0 -2
- package/dist/chat/page/error/Error.vue.js +0 -64
- package/dist/chat/page/home/ChatList.vue.d.ts +0 -98
- package/dist/chat/page/home/ChatList.vue.js +0 -621
- package/dist/chat/page/home/ChatMessage.vue.d.ts +0 -21
- package/dist/chat/page/home/ChatMessage.vue.js +0 -200
- package/dist/chat/page/home/ChatMessageItem.vue.d.ts +0 -19
- package/dist/chat/page/home/ChatMessageItem.vue.js +0 -358
- package/dist/chat/page/home/ChatMessageItem2.vue.d.ts +0 -19
- package/dist/chat/page/home/ChatMessageItem2.vue.js +0 -351
- package/dist/chat/page/home/DropZone.vue.d.ts +0 -13
- package/dist/chat/page/home/DropZone.vue.js +0 -130
- package/dist/chat/page/home/Home.vue.d.ts +0 -25
- package/dist/chat/page/home/Home.vue.js +0 -430
- package/dist/chat/page/home/HomeHeader.vue.d.ts +0 -14
- package/dist/chat/page/home/HomeHeader.vue.js +0 -248
- package/dist/chat/page/home/InputChat.vue.d.ts +0 -27
- package/dist/chat/page/home/InputChat.vue.js +0 -412
- package/dist/chat/page/home/NewCustomer.vue.d.ts +0 -7
- package/dist/chat/page/home/NewCustomer.vue.js +0 -81
- package/dist/chat/page/home/PhoneNumpad.vue.d.ts +0 -18
- package/dist/chat/page/home/PhoneNumpad.vue.js +0 -143
- package/dist/chat/page/setting/Setting.vue.d.ts +0 -2
- package/dist/chat/page/setting/Setting.vue.js +0 -277
- package/dist/chat/page/setting/SettingSuccess.vue.d.ts +0 -2
- package/dist/chat/page/setting/SettingSuccess.vue.js +0 -33
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +0 -24
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.js +0 -207
- package/dist/components/chat/call/Calling.vue.d.ts +0 -17
- package/dist/components/chat/call/Calling.vue.js +0 -600
- package/dist/components/chat/call/TimeLeft.vue.d.ts +0 -5
- package/dist/components/chat/call/TimeLeft.vue.js +0 -59
- package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +0 -13
- package/dist/components/chat/card/CardCustomerDetail.vue.js +0 -28
- package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +0 -20
- package/dist/components/chat/common/collapse/CollapseBase.vue.js +0 -59
- package/dist/components/chat/common/input/InputSearch.vue.d.ts +0 -16
- package/dist/components/chat/common/input/InputSearch.vue.js +0 -71
- package/dist/components/chat/common/modal/Modal.vue.d.ts +0 -94
- package/dist/components/chat/common/modal/Modal.vue.js +0 -260
- package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +0 -35
- package/dist/components/chat/common/popover/PopoverBase.vue.js +0 -148
- package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +0 -10
- package/dist/components/chat/common/spin/BaseSpin.vue.js +0 -43
- package/dist/components/chat/common/switch/SwitchBase.vue.d.ts +0 -17
- package/dist/components/chat/common/switch/SwitchBase.vue.js +0 -76
- package/dist/components/chat/common/tab/TabBase.vue.d.ts +0 -30
- package/dist/components/chat/common/tab/TabBase.vue.js +0 -86
- package/dist/components/chat/common/tabs/TabBase.vue.d.ts +0 -18
- package/dist/components/chat/common/tabs/TabBase.vue.js +0 -93
- package/dist/components/chat/customer/Avatar.vue.d.ts +0 -12
- package/dist/components/chat/customer/Avatar.vue.js +0 -127
- package/dist/components/chat/layout/mobile/Footer.vue.d.ts +0 -2
- package/dist/components/chat/layout/mobile/Footer.vue.js +0 -114
- package/dist/components/chat/select/SelectBase.vue.d.ts +0 -24
- package/dist/components/chat/select/SelectBase.vue.js +0 -105
- package/dist/components/common/CustomLoading.vue.d.ts +0 -2
- package/dist/components/common/CustomLoading.vue.js +0 -19
- package/dist/components/common/Notification/NotificationDescription.vue.d.ts +0 -7
- package/dist/components/common/Notification/NotificationDescription.vue.js +0 -38
- package/dist/components/common/button/ButtonBase.vue.d.ts +0 -22
- package/dist/components/common/button/ButtonBase.vue.js +0 -78
- package/dist/components/common/button/ButtonToggle.vue.d.ts +0 -20
- package/dist/components/common/button/ButtonToggle.vue.js +0 -70
- package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +0 -16
- package/dist/components/common/checkbox/CCheckboxNumber.vue.js +0 -48
- package/dist/components/common/collapse/BaseCollapse.vue.d.ts +0 -12
- package/dist/components/common/collapse/BaseCollapse.vue.js +0 -36
- package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +0 -4
- package/dist/components/common/collapse/BaseCollapseItem.vue.js +0 -22
- package/dist/components/common/drawer/DrawerBase.vue.d.ts +0 -39
- package/dist/components/common/drawer/DrawerBase.vue.js +0 -126
- package/dist/components/common/drawer/DrawerBaseCustom.vue.d.ts +0 -33
- package/dist/components/common/drawer/DrawerBaseCustom.vue.js +0 -135
- package/dist/components/common/dropdown/DropdownBase.vue.d.ts +0 -21
- package/dist/components/common/dropdown/DropdownBase.vue.js +0 -91
- package/dist/components/common/input/CInputSearch.vue.d.ts +0 -14
- package/dist/components/common/input/CInputSearch.vue.js +0 -62
- package/dist/components/common/modal/ModalBase.vue.d.ts +0 -35
- package/dist/components/common/modal/ModalBase.vue.js +0 -187
- package/dist/components/common/popover/PopoverBase.vue.d.ts +0 -3
- package/dist/components/common/popover/PopoverBase.vue.js +0 -36
- package/dist/components/common/select/SelectBase.vue.d.ts +0 -28
- package/dist/components/common/select/SelectBase.vue.js +0 -102
- package/dist/components/common/slider/BaseSlider.vue.d.ts +0 -11
- package/dist/components/common/slider/BaseSlider.vue.js +0 -70
- package/dist/components/common/spin/CSpin.vue.d.ts +0 -9
- package/dist/components/common/spin/CSpin.vue.js +0 -41
- package/dist/components/common/tooltip/TooltipBase.vue.d.ts +0 -2
- package/dist/components/common/tooltip/TooltipBase.vue.js +0 -8
- package/dist/components/layout/PageError.vue.d.ts +0 -2
- package/dist/components/layout/PageError.vue.js +0 -91
- package/dist/components/ui/button/CButton.vue.d.ts +0 -19
- package/dist/components/ui/button/CButton.vue.js +0 -49
- package/dist/components/ui/button/c-button.d.ts +0 -7
- package/dist/components/ui/button/c-button.js +0 -26
- package/dist/components/ui/checkbox/Checkbox.vue.d.ts +0 -18
- package/dist/components/ui/checkbox/Checkbox.vue.js +0 -79
- package/dist/components/ui/checkbox/index.d.ts +0 -1
- package/dist/components/ui/checkbox/index.js +0 -1
- package/dist/components/ui/collapsible/Collapsible.vue.d.ts +0 -16
- package/dist/components/ui/collapsible/Collapsible.vue.js +0 -47
- package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +0 -10
- package/dist/components/ui/collapsible/CollapsibleContent.vue.js +0 -41
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +0 -10
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.js +0 -35
- package/dist/components/ui/collapsible/index.d.ts +0 -3
- package/dist/components/ui/collapsible/index.js +0 -3
- package/dist/components/ui/dialog/Dialog.vue.d.ts +0 -14
- package/dist/components/ui/dialog/Dialog.vue.js +0 -42
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -10
- package/dist/components/ui/dialog/DialogClose.vue.js +0 -35
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -29
- package/dist/components/ui/dialog/DialogContent.vue.js +0 -84
- package/dist/components/ui/dialog/DialogDescription.vue.d.ts +0 -14
- package/dist/components/ui/dialog/DialogDescription.vue.js +0 -43
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +0 -13
- package/dist/components/ui/dialog/DialogFooter.vue.js +0 -26
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +0 -13
- package/dist/components/ui/dialog/DialogHeader.vue.js +0 -26
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +0 -30
- package/dist/components/ui/dialog/DialogScrollContent.vue.js +0 -99
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +0 -14
- package/dist/components/ui/dialog/DialogTitle.vue.js +0 -43
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -10
- package/dist/components/ui/dialog/DialogTrigger.vue.js +0 -35
- package/dist/components/ui/dialog/index.d.ts +0 -9
- package/dist/components/ui/dialog/index.js +0 -9
- package/dist/components/ui/drawer/Drawer.vue.d.ts +0 -26
- package/dist/components/ui/drawer/Drawer.vue.js +0 -48
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +0 -33
- package/dist/components/ui/drawer/DrawerContent.vue.js +0 -81
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +0 -14
- package/dist/components/ui/drawer/DrawerDescription.vue.js +0 -42
- package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +0 -13
- package/dist/components/ui/drawer/DrawerFooter.vue.js +0 -26
- package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +0 -13
- package/dist/components/ui/drawer/DrawerHeader.vue.js +0 -26
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +0 -7
- package/dist/components/ui/drawer/DrawerOverlay.vue.js +0 -37
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +0 -14
- package/dist/components/ui/drawer/DrawerTitle.vue.js +0 -42
- package/dist/components/ui/drawer/index.d.ts +0 -8
- package/dist/components/ui/drawer/index.js +0 -8
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +0 -20
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +0 -79
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -28
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.js +0 -61
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -10
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +0 -35
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.js +0 -43
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +0 -43
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +0 -18
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +0 -80
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -7
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +0 -37
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +0 -13
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +0 -26
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +0 -30
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +0 -46
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +0 -58
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -10
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/index.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/index.js +0 -15
- package/dist/components/ui/popover/Popover.vue.d.ts +0 -14
- package/dist/components/ui/popover/Popover.vue.js +0 -41
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +0 -28
- package/dist/components/ui/popover/PopoverContent.vue.js +0 -60
- package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +0 -10
- package/dist/components/ui/popover/PopoverTrigger.vue.js +0 -35
- package/dist/components/ui/popover/index.d.ts +0 -3
- package/dist/components/ui/popover/index.js +0 -3
- package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +0 -18
- package/dist/components/ui/radio-group/RadioGroup.vue.js +0 -46
- package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +0 -7
- package/dist/components/ui/radio-group/RadioGroupItem.vue.js +0 -71
- package/dist/components/ui/radio-group/index.d.ts +0 -2
- package/dist/components/ui/radio-group/index.js +0 -2
- package/dist/components/ui/select/Select.vue.d.ts +0 -20
- package/dist/components/ui/select/Select.vue.js +0 -49
- package/dist/components/ui/select/SelectContent.vue.d.ts +0 -24
- package/dist/components/ui/select/SelectContent.vue.js +0 -98
- package/dist/components/ui/select/SelectGroup.vue.d.ts +0 -10
- package/dist/components/ui/select/SelectGroup.vue.js +0 -37
- package/dist/components/ui/select/SelectItem.vue.d.ts +0 -18
- package/dist/components/ui/select/SelectItem.vue.js +0 -73
- package/dist/components/ui/select/SelectItemText.vue.d.ts +0 -10
- package/dist/components/ui/select/SelectItemText.vue.js +0 -37
- package/dist/components/ui/select/SelectLabel.vue.d.ts +0 -14
- package/dist/components/ui/select/SelectLabel.vue.js +0 -40
- package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +0 -14
- package/dist/components/ui/select/SelectScrollDownButton.vue.js +0 -58
- package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +0 -14
- package/dist/components/ui/select/SelectScrollUpButton.vue.js +0 -58
- package/dist/components/ui/select/SelectSeparator.vue.d.ts +0 -7
- package/dist/components/ui/select/SelectSeparator.vue.js +0 -39
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +0 -17
- package/dist/components/ui/select/SelectTrigger.vue.js +0 -49
- package/dist/components/ui/select/SelectValue.vue.d.ts +0 -10
- package/dist/components/ui/select/SelectValue.vue.js +0 -37
- package/dist/components/ui/select/index.d.ts +0 -11
- package/dist/components/ui/select/index.js +0 -11
- package/dist/components/ui/slider/Slider.vue.d.ts +0 -13
- package/dist/components/ui/slider/Slider.vue.js +0 -155
- package/dist/components/ui/slider/index.d.ts +0 -1
- package/dist/components/ui/slider/index.js +0 -1
- package/dist/components/ui/switch/Switch.vue.d.ts +0 -18
- package/dist/components/ui/switch/Switch.vue.js +0 -61
- package/dist/components/ui/switch/index.d.ts +0 -1
- package/dist/components/ui/switch/index.js +0 -1
- package/dist/components/ui/tabs/Tabs.vue.d.ts +0 -20
- package/dist/components/ui/tabs/Tabs.vue.js +0 -54
- package/dist/components/ui/tabs/TabsContent.vue.d.ts +0 -14
- package/dist/components/ui/tabs/TabsContent.vue.js +0 -44
- package/dist/components/ui/tabs/TabsList.vue.d.ts +0 -14
- package/dist/components/ui/tabs/TabsList.vue.js +0 -44
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +0 -14
- package/dist/components/ui/tabs/TabsTrigger.vue.js +0 -45
- package/dist/components/ui/tabs/index.d.ts +0 -4
- package/dist/components/ui/tabs/index.js +0 -4
- package/dist/composable/useDigibot.d.ts +0 -7
- package/dist/composable/useDigibot.js +0 -23
- package/dist/composable/useInitData.d.ts +0 -12
- package/dist/composable/useInitData.js +0 -99
- package/dist/composable/useListConversations.d.ts +0 -55
- package/dist/composable/useListConversations.js +0 -209
- package/dist/composable/useListentEvent.d.ts +0 -5
- package/dist/composable/useListentEvent.js +0 -51
- package/dist/composable/usePlivo.d.ts +0 -17
- package/dist/composable/usePlivo.js +0 -207
- package/dist/constant/color.d.ts +0 -22
- package/dist/constant/color.js +0 -47
- package/dist/constant/datetime.d.ts +0 -6
- package/dist/constant/datetime.js +0 -6
- package/dist/constant/general.d.ts +0 -11
- package/dist/constant/general.js +0 -12
- package/dist/constant/message.d.ts +0 -8
- package/dist/constant/message.js +0 -8
- package/dist/constant/mqtt.d.ts +0 -7
- package/dist/constant/mqtt.js +0 -18
- package/dist/constant/user.d.ts +0 -8
- package/dist/constant/user.js +0 -9
- package/dist/lib/utils.d.ts +0 -2
- package/dist/lib/utils.js +0 -5
- package/dist/plugins/axios-gci.d.ts +0 -3
- package/dist/plugins/axios-gci.js +0 -25
- package/dist/plugins/axios.d.ts +0 -3
- package/dist/plugins/axios.js +0 -84
- package/dist/plugins/mqtt.d.ts +0 -8
- package/dist/plugins/mqtt.js +0 -189
- package/dist/plugins/pocketbase.d.ts +0 -5
- package/dist/plugins/pocketbase.js +0 -15
- package/dist/plugins/sdk.d.ts +0 -18
- package/dist/plugins/sdk.js +0 -73
- package/dist/plugins/websocket.d.ts +0 -15
- package/dist/plugins/websocket.js +0 -151
- package/dist/types/chat/auth.d.ts +0 -41
- package/dist/types/chat/auth.js +0 -1
- package/dist/types/chat/call.d.ts +0 -19
- package/dist/types/chat/call.js +0 -23
- package/dist/types/chat/global.d.ts +0 -32
- package/dist/types/chat/global.js +0 -1
- package/dist/types/chat/promise.d.ts +0 -17
- package/dist/types/chat/promise.js +0 -1
- package/dist/types/chat/user.d.ts +0 -88
- package/dist/types/chat/user.js +0 -1
- package/dist/types/conversation.d.ts +0 -23
- package/dist/types/conversation.js +0 -1
- package/dist/types/global.d.ts +0 -11
- package/dist/types/global.js +0 -15
- package/dist/types/message.d.ts +0 -52
- package/dist/types/message.js +0 -1
- package/dist/utils/chat/cache.d.ts +0 -7
- package/dist/utils/chat/cache.js +0 -63
- package/dist/utils/chat/chat-router.d.ts +0 -3
- package/dist/utils/chat/chat-router.js +0 -8
- package/dist/utils/chat/page-error.d.ts +0 -4
- package/dist/utils/chat/page-error.js +0 -25
- package/dist/utils/chat/phone-string.d.ts +0 -1
- package/dist/utils/chat/phone-string.js +0 -4
- package/dist/utils/chat/store/auth.d.ts +0 -62
- package/dist/utils/chat/store/auth.js +0 -93
- package/dist/utils/chat/store/call.d.ts +0 -15
- package/dist/utils/chat/store/call.js +0 -160
- package/dist/utils/chat/store/conversation.d.ts +0 -13
- package/dist/utils/chat/store/conversation.js +0 -69
- package/dist/utils/chat/store/message.d.ts +0 -31
- package/dist/utils/chat/store/message.js +0 -74
- package/dist/utils/chat/store/user.d.ts +0 -200
- package/dist/utils/chat/store/user.js +0 -43
- package/dist/utils/debounce.d.ts +0 -1
- package/dist/utils/debounce.js +0 -9
- package/dist/utils/json.d.ts +0 -2
- package/dist/utils/json.js +0 -18
- package/dist/utils/logger.d.ts +0 -3
- package/dist/utils/logger.js +0 -5
- package/dist/utils/string-helper.d.ts +0 -2
- package/dist/utils/string-helper.js +0 -40
- package/dist/views/NotTenantPhone.vue.d.ts +0 -9
- package/dist/views/NotTenantPhone.vue.js +0 -99
- package/dist/views/home/phone-numpad/ConvercationList.vue.d.ts +0 -18
- package/dist/views/home/phone-numpad/ConvercationList.vue.js +0 -174
- package/dist/views/home/phone-numpad/PhoneNumpad.vue.d.ts +0 -28
- package/dist/views/home/phone-numpad/PhoneNumpad.vue.js +0 -377
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
import { phoneNumberFormat } from '../../../utils/string-helper';
|
|
3
|
-
import ScrollEvent from '../../../components/chat/ScrollEvent/ScrollEvent.vue';
|
|
4
|
-
import Avatar from '../../../components/chat/customer/Avatar.vue';
|
|
5
|
-
import { ref } from 'vue';
|
|
6
|
-
import { getConversation } from '../../../utils/chat/store/conversation';
|
|
7
|
-
import { useDebounce } from '../../../utils/debounce';
|
|
8
|
-
const emit = defineEmits();
|
|
9
|
-
const userList = ref([]);
|
|
10
|
-
let pageCount = 0;
|
|
11
|
-
const params = ref({
|
|
12
|
-
page: 1,
|
|
13
|
-
search: ''
|
|
14
|
-
});
|
|
15
|
-
const active = defineModel('active');
|
|
16
|
-
const scrollEventRef = ref(null);
|
|
17
|
-
const handleScroll = useDebounce(async () => {
|
|
18
|
-
if (params.value.page >= pageCount) {
|
|
19
|
-
scrollEventRef.value?.hideLoading();
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
params.value.page = params.value.page + 1;
|
|
23
|
-
await getUserList();
|
|
24
|
-
}, 200);
|
|
25
|
-
const getUserList = async (phone, option) => {
|
|
26
|
-
try {
|
|
27
|
-
if (phone != undefined)
|
|
28
|
-
params.value.search = phone;
|
|
29
|
-
if ((params.value.search?.length ?? 0) < 4)
|
|
30
|
-
return (userList.value = []);
|
|
31
|
-
if (option?.reset) {
|
|
32
|
-
active.value = null;
|
|
33
|
-
params.value.page = 1;
|
|
34
|
-
}
|
|
35
|
-
const res = await getConversation(params.value);
|
|
36
|
-
if (option?.reset) {
|
|
37
|
-
userList.value = [];
|
|
38
|
-
}
|
|
39
|
-
userList.value.push(...(res?.items ?? []));
|
|
40
|
-
params.value.page = res?._meta?.currentPage || 1;
|
|
41
|
-
pageCount = res?._meta?.pageCount || 1;
|
|
42
|
-
checkActiveUserList();
|
|
43
|
-
if (option?.reset) {
|
|
44
|
-
getAllList();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
catch (e) {
|
|
48
|
-
console.log(e);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
const getAllList = async () => {
|
|
52
|
-
while (params.value.page < pageCount && !scrollEventRef.value?.canScroll()) {
|
|
53
|
-
params.value.page = params.value.page + 1;
|
|
54
|
-
await getUserList();
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
const handleSelectConversation = (item) => {
|
|
58
|
-
active.value = item;
|
|
59
|
-
emit('selectConversation', item);
|
|
60
|
-
};
|
|
61
|
-
const checkActiveUserList = async () => {
|
|
62
|
-
if (params.value.search.length == 10) {
|
|
63
|
-
active.value = userList.value.find(item => item.phone === ('1' + params.value.search)) ?? null;
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
const __VLS_exposed = { getUserList, checkActiveUserList };
|
|
67
|
-
defineExpose(__VLS_exposed);
|
|
68
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
69
|
-
const __VLS_modelEmit = defineEmits();
|
|
70
|
-
const __VLS_ctx = {
|
|
71
|
-
...{},
|
|
72
|
-
...{},
|
|
73
|
-
...{},
|
|
74
|
-
...{},
|
|
75
|
-
...{},
|
|
76
|
-
};
|
|
77
|
-
let __VLS_elements;
|
|
78
|
-
let __VLS_components;
|
|
79
|
-
let __VLS_directives;
|
|
80
|
-
/** @type {[typeof ScrollEvent, typeof ScrollEvent, ]} */ ;
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
const __VLS_0 = __VLS_asFunctionalComponent(ScrollEvent, new ScrollEvent({
|
|
83
|
-
...{ 'onGetDataBottom': {} },
|
|
84
|
-
ref: "scrollEventRef",
|
|
85
|
-
...{ class: "h-full overflow-auto flex flex-col gap-y-2" },
|
|
86
|
-
bottom: true,
|
|
87
|
-
}));
|
|
88
|
-
const __VLS_1 = __VLS_0({
|
|
89
|
-
...{ 'onGetDataBottom': {} },
|
|
90
|
-
ref: "scrollEventRef",
|
|
91
|
-
...{ class: "h-full overflow-auto flex flex-col gap-y-2" },
|
|
92
|
-
bottom: true,
|
|
93
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
94
|
-
let __VLS_3;
|
|
95
|
-
let __VLS_4;
|
|
96
|
-
const __VLS_5 = ({ getDataBottom: {} },
|
|
97
|
-
{ onGetDataBottom: (__VLS_ctx.handleScroll) });
|
|
98
|
-
/** @type {typeof __VLS_ctx.scrollEventRef} */ ;
|
|
99
|
-
var __VLS_6 = {};
|
|
100
|
-
const { default: __VLS_8 } = __VLS_2.slots;
|
|
101
|
-
// @ts-ignore
|
|
102
|
-
[handleScroll, scrollEventRef,];
|
|
103
|
-
for (const [user] of __VLS_getVForSourceType((__VLS_ctx.userList))) {
|
|
104
|
-
// @ts-ignore
|
|
105
|
-
[userList,];
|
|
106
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
107
|
-
...{ onClick: (...[$event]) => {
|
|
108
|
-
__VLS_ctx.handleSelectConversation(user);
|
|
109
|
-
// @ts-ignore
|
|
110
|
-
[handleSelectConversation,];
|
|
111
|
-
} },
|
|
112
|
-
...{ class: "shrink-0 w-full overflow-hidden flex items-center gap-2 hover:bg-[#EDF5FF] cursor-pointer px-6 py-2" },
|
|
113
|
-
...{ class: ({ 'bg-[#EDF5FF]': __VLS_ctx.active && __VLS_ctx.active?.id == user.id }) },
|
|
114
|
-
key: (user.id),
|
|
115
|
-
});
|
|
116
|
-
// @ts-ignore
|
|
117
|
-
[active, active,];
|
|
118
|
-
/** @type {[typeof Avatar, ]} */ ;
|
|
119
|
-
// @ts-ignore
|
|
120
|
-
const __VLS_9 = __VLS_asFunctionalComponent(Avatar, new Avatar({
|
|
121
|
-
id: (user.id),
|
|
122
|
-
...{ class: "shrink-0" },
|
|
123
|
-
src: (''),
|
|
124
|
-
color: (user.color ?? ''),
|
|
125
|
-
name: (user.username ?? ''),
|
|
126
|
-
}));
|
|
127
|
-
const __VLS_10 = __VLS_9({
|
|
128
|
-
id: (user.id),
|
|
129
|
-
...{ class: "shrink-0" },
|
|
130
|
-
src: (''),
|
|
131
|
-
color: (user.color ?? ''),
|
|
132
|
-
name: (user.username ?? ''),
|
|
133
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_9));
|
|
134
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({});
|
|
135
|
-
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
136
|
-
...{ class: "truncate font-semibold" },
|
|
137
|
-
});
|
|
138
|
-
(user.username);
|
|
139
|
-
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
140
|
-
...{ class: "truncate" },
|
|
141
|
-
});
|
|
142
|
-
(__VLS_ctx.phoneNumberFormat(user.phone ?? ''));
|
|
143
|
-
// @ts-ignore
|
|
144
|
-
[phoneNumberFormat,];
|
|
145
|
-
}
|
|
146
|
-
var __VLS_2;
|
|
147
|
-
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
148
|
-
/** @type {__VLS_StyleScopedClasses['overflow-auto']} */ ;
|
|
149
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
150
|
-
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
151
|
-
/** @type {__VLS_StyleScopedClasses['gap-y-2']} */ ;
|
|
152
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
153
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
154
|
-
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
155
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
156
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
157
|
-
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
158
|
-
/** @type {__VLS_StyleScopedClasses['hover:bg-[#EDF5FF]']} */ ;
|
|
159
|
-
/** @type {__VLS_StyleScopedClasses['cursor-pointer']} */ ;
|
|
160
|
-
/** @type {__VLS_StyleScopedClasses['px-6']} */ ;
|
|
161
|
-
/** @type {__VLS_StyleScopedClasses['py-2']} */ ;
|
|
162
|
-
/** @type {__VLS_StyleScopedClasses['bg-[#EDF5FF]']} */ ;
|
|
163
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
164
|
-
/** @type {__VLS_StyleScopedClasses['truncate']} */ ;
|
|
165
|
-
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
166
|
-
/** @type {__VLS_StyleScopedClasses['truncate']} */ ;
|
|
167
|
-
// @ts-ignore
|
|
168
|
-
var __VLS_7 = __VLS_6;
|
|
169
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
170
|
-
setup: () => (__VLS_exposed),
|
|
171
|
-
__typeEmits: {},
|
|
172
|
-
__typeProps: {},
|
|
173
|
-
});
|
|
174
|
-
export default {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { IResUser } from '../../../types/message';
|
|
2
|
-
import type { PAGE_RESPONSIVE } from '../../../types/chat/global';
|
|
3
|
-
type KeyPadProps = {
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
hideNumpad?: boolean;
|
|
6
|
-
responsive?: PAGE_RESPONSIVE;
|
|
7
|
-
};
|
|
8
|
-
type __VLS_Props = KeyPadProps;
|
|
9
|
-
type __VLS_ModelProps = {
|
|
10
|
-
modelValue?: string;
|
|
11
|
-
};
|
|
12
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
-
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
14
|
-
reset: () => void;
|
|
15
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
-
"update:modelValue": (value: string | undefined) => any;
|
|
17
|
-
} & {
|
|
18
|
-
change: (value: string) => any;
|
|
19
|
-
"update:modelValue": (value: string) => any;
|
|
20
|
-
call: (value: IResUser) => any;
|
|
21
|
-
back: () => any;
|
|
22
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
-
onChange?: ((value: string) => any) | undefined;
|
|
24
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
25
|
-
onCall?: ((value: IResUser) => any) | undefined;
|
|
26
|
-
onBack?: (() => any) | undefined;
|
|
27
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
-
export default _default;
|
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
import { computed, ref } from 'vue';
|
|
3
|
-
import IconBackspace from '../../../assets/icons/global/IconBackspace.vue';
|
|
4
|
-
import { phoneNumberFormat, phoneNumberFormatInput } from '../../../utils/string-helper';
|
|
5
|
-
import { useDebounce } from '../../../utils/debounce';
|
|
6
|
-
import ConversationList from '../../../views/home/phone-numpad/ConvercationList.vue';
|
|
7
|
-
import { dataProfile } from '../../../utils/chat/store/auth';
|
|
8
|
-
import IconArrowLeft from '../../../assets/icons/global/IconArrowLeft.vue';
|
|
9
|
-
import ButtonBase from '@/components/common/button/ButtonBase.vue';
|
|
10
|
-
import IconPhone from '@/assets/icons/customer-detail/IconPhone.vue';
|
|
11
|
-
import IconMessageOutline from '@/assets/icons/global/IconMessageOutline.vue';
|
|
12
|
-
const props = withDefaults(defineProps(), {});
|
|
13
|
-
const emit = defineEmits();
|
|
14
|
-
const phone = defineModel();
|
|
15
|
-
const keys = [
|
|
16
|
-
{ label: '1', value: '1' },
|
|
17
|
-
{ label: '2', value: '2' },
|
|
18
|
-
{ label: '3', value: '3' },
|
|
19
|
-
{ label: '4', value: '4' },
|
|
20
|
-
{ label: '5', value: '5' },
|
|
21
|
-
{ label: '6', value: '6' },
|
|
22
|
-
{ label: '7', value: '7' },
|
|
23
|
-
{ label: '8', value: '8' },
|
|
24
|
-
{ label: '9', value: '9' },
|
|
25
|
-
{ label: 'C', value: 'Delete' },
|
|
26
|
-
{ label: '0', value: '0' },
|
|
27
|
-
{ label: 'X', value: 'Backspace' }
|
|
28
|
-
];
|
|
29
|
-
const disabled = computed(() => keepOnlyNumber(phone.value ?? '').length < 10 || loading.value);
|
|
30
|
-
const activeKey = ref(null);
|
|
31
|
-
const activeUser = ref(null);
|
|
32
|
-
const conversationListRef = ref();
|
|
33
|
-
const loading = ref(false);
|
|
34
|
-
const handleKey = (key) => {
|
|
35
|
-
if (props.disabled)
|
|
36
|
-
return;
|
|
37
|
-
if (dataProfile.value?.user_type != 'tenant')
|
|
38
|
-
return;
|
|
39
|
-
activeKey.value = key.value == 'Backspace' ? null : key.value;
|
|
40
|
-
setTimeout(() => {
|
|
41
|
-
activeKey.value = null;
|
|
42
|
-
}, 80);
|
|
43
|
-
let newValue = keepOnlyNumber(phone.value ?? '');
|
|
44
|
-
if (key.value === 'Backspace') {
|
|
45
|
-
newValue = newValue.slice(0, -1);
|
|
46
|
-
}
|
|
47
|
-
else if (key.value === 'Delete') {
|
|
48
|
-
newValue = '';
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
newValue += key.value;
|
|
52
|
-
}
|
|
53
|
-
phone.value = phoneNumberFormatInput(newValue);
|
|
54
|
-
handleGetListKeyPad();
|
|
55
|
-
emit('change', newValue);
|
|
56
|
-
};
|
|
57
|
-
const handleInput = () => {
|
|
58
|
-
phone.value = phoneNumberFormatInput(phone.value ?? '');
|
|
59
|
-
handleGetListInput();
|
|
60
|
-
};
|
|
61
|
-
function keepOnlyNumber(value) {
|
|
62
|
-
return value.replace(/\D+/g, '');
|
|
63
|
-
}
|
|
64
|
-
const handleGetConversationList = (delay) => {
|
|
65
|
-
return useDebounce(async () => {
|
|
66
|
-
try {
|
|
67
|
-
await conversationListRef.value?.getUserList(keepOnlyNumber(phone.value ?? ''), {
|
|
68
|
-
reset: true
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
catch (e) {
|
|
72
|
-
console.log(e);
|
|
73
|
-
}
|
|
74
|
-
loading.value = false;
|
|
75
|
-
}, delay);
|
|
76
|
-
};
|
|
77
|
-
const handleGetListKeyPadDebounce = handleGetConversationList(800);
|
|
78
|
-
const handleGetListInputDebounce = handleGetConversationList(800);
|
|
79
|
-
const handleGetListKeyPad = () => {
|
|
80
|
-
loading.value = true;
|
|
81
|
-
handleGetListKeyPadDebounce();
|
|
82
|
-
};
|
|
83
|
-
const handleGetListInput = () => {
|
|
84
|
-
loading.value = true;
|
|
85
|
-
handleGetListInputDebounce();
|
|
86
|
-
};
|
|
87
|
-
const call = () => {
|
|
88
|
-
if (phone)
|
|
89
|
-
conversationListRef.value?.checkActiveUserList();
|
|
90
|
-
let value = keepOnlyNumber(phone.value ?? '');
|
|
91
|
-
let user = {
|
|
92
|
-
phone: activeUser.value?.phone || '1' + value,
|
|
93
|
-
username: activeUser.value?.username ?? '',
|
|
94
|
-
avatar: activeUser.value?.avatar ?? '',
|
|
95
|
-
color: activeUser.value?.color ?? '',
|
|
96
|
-
is_known: activeUser.value?.is_known
|
|
97
|
-
};
|
|
98
|
-
if (value.length == 10) {
|
|
99
|
-
emit('call', user);
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
// if (phone.value) Snackbar.error({ message: 'Phone number is invalid!' })
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
const reset = () => {
|
|
106
|
-
phone.value = '';
|
|
107
|
-
conversationListRef.value?.getUserList('', {
|
|
108
|
-
reset: true
|
|
109
|
-
});
|
|
110
|
-
};
|
|
111
|
-
const handleSelectConversation = (item) => {
|
|
112
|
-
phone.value = phoneNumberFormat(item.phone ?? '');
|
|
113
|
-
};
|
|
114
|
-
const __VLS_exposed = { reset };
|
|
115
|
-
defineExpose(__VLS_exposed);
|
|
116
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
117
|
-
const __VLS_modelEmit = defineEmits();
|
|
118
|
-
const __VLS_defaults = {};
|
|
119
|
-
const __VLS_ctx = {
|
|
120
|
-
...{},
|
|
121
|
-
...{},
|
|
122
|
-
...{},
|
|
123
|
-
...{},
|
|
124
|
-
...{},
|
|
125
|
-
};
|
|
126
|
-
let __VLS_elements;
|
|
127
|
-
let __VLS_components;
|
|
128
|
-
let __VLS_directives;
|
|
129
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
130
|
-
...{ class: "w-[480px] h-full flex flex-col" },
|
|
131
|
-
});
|
|
132
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
133
|
-
...{ class: "w-full flex items-center justify-between border-chat-gray-5 layout-shadow border-b px-2 sm:px-6" },
|
|
134
|
-
});
|
|
135
|
-
if (__VLS_ctx.responsive != 'window') {
|
|
136
|
-
// @ts-ignore
|
|
137
|
-
[responsive,];
|
|
138
|
-
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
139
|
-
...{ onClick: (...[$event]) => {
|
|
140
|
-
if (!(__VLS_ctx.responsive != 'window'))
|
|
141
|
-
return;
|
|
142
|
-
__VLS_ctx.emit('back');
|
|
143
|
-
// @ts-ignore
|
|
144
|
-
[emit,];
|
|
145
|
-
} },
|
|
146
|
-
...{ class: "shrink-0 flex justify-center w-14" },
|
|
147
|
-
});
|
|
148
|
-
/** @type {[typeof IconArrowLeft, ]} */ ;
|
|
149
|
-
// @ts-ignore
|
|
150
|
-
const __VLS_0 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
|
|
151
|
-
const __VLS_1 = __VLS_0({}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
152
|
-
}
|
|
153
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
154
|
-
...{ class: "h-[80px] sm:h-[96px] grow" },
|
|
155
|
-
});
|
|
156
|
-
__VLS_asFunctionalElement(__VLS_elements.input)({
|
|
157
|
-
...{ onInput: (__VLS_ctx.handleInput) },
|
|
158
|
-
...{ class: "py-2 w-full h-full text-xl" },
|
|
159
|
-
placeholder: "Enter your phone number",
|
|
160
|
-
disabled: (__VLS_ctx.dataProfile?.user_type != 'tenant'),
|
|
161
|
-
});
|
|
162
|
-
(__VLS_ctx.phone);
|
|
163
|
-
// @ts-ignore
|
|
164
|
-
[handleInput, dataProfile, phone,];
|
|
165
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
166
|
-
...{ class: "grow overflow-hidden relative" },
|
|
167
|
-
});
|
|
168
|
-
/** @type {[typeof ConversationList, ]} */ ;
|
|
169
|
-
// @ts-ignore
|
|
170
|
-
const __VLS_4 = __VLS_asFunctionalComponent(ConversationList, new ConversationList({
|
|
171
|
-
...{ 'onSelectConversation': {} },
|
|
172
|
-
ref: "conversationListRef",
|
|
173
|
-
active: (__VLS_ctx.activeUser),
|
|
174
|
-
}));
|
|
175
|
-
const __VLS_5 = __VLS_4({
|
|
176
|
-
...{ 'onSelectConversation': {} },
|
|
177
|
-
ref: "conversationListRef",
|
|
178
|
-
active: (__VLS_ctx.activeUser),
|
|
179
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_4));
|
|
180
|
-
let __VLS_7;
|
|
181
|
-
let __VLS_8;
|
|
182
|
-
const __VLS_9 = ({ selectConversation: {} },
|
|
183
|
-
{ onSelectConversation: (__VLS_ctx.handleSelectConversation) });
|
|
184
|
-
/** @type {typeof __VLS_ctx.conversationListRef} */ ;
|
|
185
|
-
var __VLS_10 = {};
|
|
186
|
-
// @ts-ignore
|
|
187
|
-
[activeUser, handleSelectConversation, conversationListRef,];
|
|
188
|
-
var __VLS_6;
|
|
189
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
190
|
-
...{ class: "shrink-0 w-full px-6 border-chat-gray-5 layout-shadow border-t" },
|
|
191
|
-
});
|
|
192
|
-
if (!__VLS_ctx.hideNumpad) {
|
|
193
|
-
// @ts-ignore
|
|
194
|
-
[hideNumpad,];
|
|
195
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
196
|
-
...{ class: "w-full h-[380px] sm:h-[450px] grid grid-cols-3" },
|
|
197
|
-
});
|
|
198
|
-
for (const [item] of __VLS_getVForSourceType((__VLS_ctx.keys))) {
|
|
199
|
-
// @ts-ignore
|
|
200
|
-
[keys,];
|
|
201
|
-
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
202
|
-
...{ onClick: (...[$event]) => {
|
|
203
|
-
if (!(!__VLS_ctx.hideNumpad))
|
|
204
|
-
return;
|
|
205
|
-
__VLS_ctx.handleKey(item);
|
|
206
|
-
// @ts-ignore
|
|
207
|
-
[handleKey,];
|
|
208
|
-
} },
|
|
209
|
-
...{ class: "text-3xl sm:text-[40px] flex-center rounded-lg" },
|
|
210
|
-
...{ class: ({
|
|
211
|
-
'bg-chat-haze-200': false,
|
|
212
|
-
'opacity-[0.6] cursor-not-allowed': __VLS_ctx.dataProfile?.user_type != 'tenant'
|
|
213
|
-
}) },
|
|
214
|
-
key: (item.value),
|
|
215
|
-
});
|
|
216
|
-
// @ts-ignore
|
|
217
|
-
[dataProfile,];
|
|
218
|
-
if (item.label !== 'X') {
|
|
219
|
-
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
|
|
220
|
-
(item.label);
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
|
|
224
|
-
/** @type {[typeof IconBackspace, ]} */ ;
|
|
225
|
-
// @ts-ignore
|
|
226
|
-
const __VLS_13 = __VLS_asFunctionalComponent(IconBackspace, new IconBackspace({
|
|
227
|
-
...{ class: "w-12" },
|
|
228
|
-
}));
|
|
229
|
-
const __VLS_14 = __VLS_13({
|
|
230
|
-
...{ class: "w-12" },
|
|
231
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_13));
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
236
|
-
...{ class: "w-full grid grid-cols-2 gap-4 py-7" },
|
|
237
|
-
});
|
|
238
|
-
/** @type {[typeof ButtonBase, typeof ButtonBase, ]} */ ;
|
|
239
|
-
// @ts-ignore
|
|
240
|
-
const __VLS_17 = __VLS_asFunctionalComponent(ButtonBase, new ButtonBase({
|
|
241
|
-
...{ 'onClick': {} },
|
|
242
|
-
...{ class: "rounded-full h-12 shadow-lg" },
|
|
243
|
-
...{ class: ({
|
|
244
|
-
'cursor-not-allowed opacity-[0.3] pointer-events-none': __VLS_ctx.disabled
|
|
245
|
-
}) },
|
|
246
|
-
type: "success",
|
|
247
|
-
}));
|
|
248
|
-
const __VLS_18 = __VLS_17({
|
|
249
|
-
...{ 'onClick': {} },
|
|
250
|
-
...{ class: "rounded-full h-12 shadow-lg" },
|
|
251
|
-
...{ class: ({
|
|
252
|
-
'cursor-not-allowed opacity-[0.3] pointer-events-none': __VLS_ctx.disabled
|
|
253
|
-
}) },
|
|
254
|
-
type: "success",
|
|
255
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_17));
|
|
256
|
-
let __VLS_20;
|
|
257
|
-
let __VLS_21;
|
|
258
|
-
const __VLS_22 = ({ click: {} },
|
|
259
|
-
{ onClick: (...[$event]) => {
|
|
260
|
-
__VLS_ctx.call();
|
|
261
|
-
// @ts-ignore
|
|
262
|
-
[disabled, call,];
|
|
263
|
-
} });
|
|
264
|
-
const { default: __VLS_23 } = __VLS_19.slots;
|
|
265
|
-
/** @type {[typeof IconPhone, ]} */ ;
|
|
266
|
-
// @ts-ignore
|
|
267
|
-
const __VLS_24 = __VLS_asFunctionalComponent(IconPhone, new IconPhone({
|
|
268
|
-
weight: (2),
|
|
269
|
-
}));
|
|
270
|
-
const __VLS_25 = __VLS_24({
|
|
271
|
-
weight: (2),
|
|
272
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_24));
|
|
273
|
-
var __VLS_19;
|
|
274
|
-
/** @type {[typeof ButtonBase, typeof ButtonBase, ]} */ ;
|
|
275
|
-
// @ts-ignore
|
|
276
|
-
const __VLS_28 = __VLS_asFunctionalComponent(ButtonBase, new ButtonBase({
|
|
277
|
-
...{ 'onClick': {} },
|
|
278
|
-
...{ class: "rounded-full h-12 shadow-lg" },
|
|
279
|
-
...{ class: ({
|
|
280
|
-
'cursor-not-allowed opacity-[0.3] pointer-events-none': true
|
|
281
|
-
}) },
|
|
282
|
-
type: "primary",
|
|
283
|
-
}));
|
|
284
|
-
const __VLS_29 = __VLS_28({
|
|
285
|
-
...{ 'onClick': {} },
|
|
286
|
-
...{ class: "rounded-full h-12 shadow-lg" },
|
|
287
|
-
...{ class: ({
|
|
288
|
-
'cursor-not-allowed opacity-[0.3] pointer-events-none': true
|
|
289
|
-
}) },
|
|
290
|
-
type: "primary",
|
|
291
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_28));
|
|
292
|
-
let __VLS_31;
|
|
293
|
-
let __VLS_32;
|
|
294
|
-
const __VLS_33 = ({ click: {} },
|
|
295
|
-
{ onClick: (...[$event]) => {
|
|
296
|
-
__VLS_ctx.call();
|
|
297
|
-
// @ts-ignore
|
|
298
|
-
[call,];
|
|
299
|
-
} });
|
|
300
|
-
const { default: __VLS_34 } = __VLS_30.slots;
|
|
301
|
-
/** @type {[typeof IconMessageOutline, ]} */ ;
|
|
302
|
-
// @ts-ignore
|
|
303
|
-
const __VLS_35 = __VLS_asFunctionalComponent(IconMessageOutline, new IconMessageOutline({}));
|
|
304
|
-
const __VLS_36 = __VLS_35({}, ...__VLS_functionalComponentArgsRest(__VLS_35));
|
|
305
|
-
var __VLS_30;
|
|
306
|
-
/** @type {__VLS_StyleScopedClasses['w-[480px]']} */ ;
|
|
307
|
-
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
308
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
309
|
-
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
310
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
311
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
312
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
313
|
-
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
314
|
-
/** @type {__VLS_StyleScopedClasses['border-chat-gray-5']} */ ;
|
|
315
|
-
/** @type {__VLS_StyleScopedClasses['layout-shadow']} */ ;
|
|
316
|
-
/** @type {__VLS_StyleScopedClasses['border-b']} */ ;
|
|
317
|
-
/** @type {__VLS_StyleScopedClasses['px-2']} */ ;
|
|
318
|
-
/** @type {__VLS_StyleScopedClasses['sm:px-6']} */ ;
|
|
319
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
320
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
321
|
-
/** @type {__VLS_StyleScopedClasses['justify-center']} */ ;
|
|
322
|
-
/** @type {__VLS_StyleScopedClasses['w-14']} */ ;
|
|
323
|
-
/** @type {__VLS_StyleScopedClasses['h-[80px]']} */ ;
|
|
324
|
-
/** @type {__VLS_StyleScopedClasses['sm:h-[96px]']} */ ;
|
|
325
|
-
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
326
|
-
/** @type {__VLS_StyleScopedClasses['py-2']} */ ;
|
|
327
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
328
|
-
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
329
|
-
/** @type {__VLS_StyleScopedClasses['text-xl']} */ ;
|
|
330
|
-
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
331
|
-
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
332
|
-
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
333
|
-
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
334
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
335
|
-
/** @type {__VLS_StyleScopedClasses['px-6']} */ ;
|
|
336
|
-
/** @type {__VLS_StyleScopedClasses['border-chat-gray-5']} */ ;
|
|
337
|
-
/** @type {__VLS_StyleScopedClasses['layout-shadow']} */ ;
|
|
338
|
-
/** @type {__VLS_StyleScopedClasses['border-t']} */ ;
|
|
339
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
340
|
-
/** @type {__VLS_StyleScopedClasses['h-[380px]']} */ ;
|
|
341
|
-
/** @type {__VLS_StyleScopedClasses['sm:h-[450px]']} */ ;
|
|
342
|
-
/** @type {__VLS_StyleScopedClasses['grid']} */ ;
|
|
343
|
-
/** @type {__VLS_StyleScopedClasses['grid-cols-3']} */ ;
|
|
344
|
-
/** @type {__VLS_StyleScopedClasses['text-3xl']} */ ;
|
|
345
|
-
/** @type {__VLS_StyleScopedClasses['sm:text-[40px]']} */ ;
|
|
346
|
-
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
347
|
-
/** @type {__VLS_StyleScopedClasses['rounded-lg']} */ ;
|
|
348
|
-
/** @type {__VLS_StyleScopedClasses['bg-chat-haze-200']} */ ;
|
|
349
|
-
/** @type {__VLS_StyleScopedClasses['opacity-[0.6]']} */ ;
|
|
350
|
-
/** @type {__VLS_StyleScopedClasses['cursor-not-allowed']} */ ;
|
|
351
|
-
/** @type {__VLS_StyleScopedClasses['w-12']} */ ;
|
|
352
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
353
|
-
/** @type {__VLS_StyleScopedClasses['grid']} */ ;
|
|
354
|
-
/** @type {__VLS_StyleScopedClasses['grid-cols-2']} */ ;
|
|
355
|
-
/** @type {__VLS_StyleScopedClasses['gap-4']} */ ;
|
|
356
|
-
/** @type {__VLS_StyleScopedClasses['py-7']} */ ;
|
|
357
|
-
/** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
|
|
358
|
-
/** @type {__VLS_StyleScopedClasses['h-12']} */ ;
|
|
359
|
-
/** @type {__VLS_StyleScopedClasses['shadow-lg']} */ ;
|
|
360
|
-
/** @type {__VLS_StyleScopedClasses['cursor-not-allowed']} */ ;
|
|
361
|
-
/** @type {__VLS_StyleScopedClasses['opacity-[0.3]']} */ ;
|
|
362
|
-
/** @type {__VLS_StyleScopedClasses['pointer-events-none']} */ ;
|
|
363
|
-
/** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
|
|
364
|
-
/** @type {__VLS_StyleScopedClasses['h-12']} */ ;
|
|
365
|
-
/** @type {__VLS_StyleScopedClasses['shadow-lg']} */ ;
|
|
366
|
-
/** @type {__VLS_StyleScopedClasses['cursor-not-allowed']} */ ;
|
|
367
|
-
/** @type {__VLS_StyleScopedClasses['opacity-[0.3]']} */ ;
|
|
368
|
-
/** @type {__VLS_StyleScopedClasses['pointer-events-none']} */ ;
|
|
369
|
-
// @ts-ignore
|
|
370
|
-
var __VLS_11 = __VLS_10;
|
|
371
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
372
|
-
setup: () => (__VLS_exposed),
|
|
373
|
-
__typeEmits: {},
|
|
374
|
-
__typeProps: {},
|
|
375
|
-
props: {},
|
|
376
|
-
});
|
|
377
|
-
export default {};
|