@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,928 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import ChatList from '../chat/page/home/ChatList.vue';
|
|
3
|
+
import HomeComponent from '../chat/page/home/Home.vue';
|
|
4
|
+
import IconArrowLeft from '../assets/icons/global/IconArrowLeft.vue';
|
|
5
|
+
import { computed, nextTick, onMounted, onUnmounted, ref } from 'vue';
|
|
6
|
+
import { PAGE } from '../constant/general';
|
|
7
|
+
import CustomerDetail from '../chat/page/customer-detail/CustomerDetail.vue';
|
|
8
|
+
import CustomerCheckIn from '../chat/page/customer-check-in/CustomerCheckIn.vue';
|
|
9
|
+
import CustomerAppointment from '../chat/page/customer-appointment/CustomerAppointment.vue';
|
|
10
|
+
import { isRouterReady, useInitData } from '../composable/useInitData';
|
|
11
|
+
import Error from '../chat/page/error/Error.vue';
|
|
12
|
+
import { currentPage, routerBack, routerPush } from '../utils/chat/chat-router';
|
|
13
|
+
import BaseSpin from '../components/chat/common/spin/BaseSpin.vue';
|
|
14
|
+
import Calling from '../components/chat/call/Calling.vue';
|
|
15
|
+
import { dataProfile, logout } from '../utils/chat/store/auth';
|
|
16
|
+
import '../style/index.scss';
|
|
17
|
+
import { defineRootColor } from '../constant/color';
|
|
18
|
+
import IconCloseCircle from '../assets/icons/global/IconCloseCircle.vue';
|
|
19
|
+
import Setting from '../chat/page/setting/Setting.vue';
|
|
20
|
+
import SettingSuccess from '../chat/page/setting/SettingSuccess.vue';
|
|
21
|
+
import NotTenantPhone from '../views/NotTenantPhone.vue';
|
|
22
|
+
import { phoneNumberFormat } from '../utils/string-helper';
|
|
23
|
+
import { responsiveObserver, useListenEvent } from '../composable/useListentEvent';
|
|
24
|
+
import PhoneNumpad from './page/home/PhoneNumpad.vue';
|
|
25
|
+
import PageError from '../components/layout/PageError.vue';
|
|
26
|
+
import ChatHeader from '../chat/ChatHeader.vue';
|
|
27
|
+
const routerConfig = [
|
|
28
|
+
{ id: PAGE.HOME, backFunc: null, backTitle: '' },
|
|
29
|
+
{
|
|
30
|
+
id: PAGE.CUSTOMER_DETAIL,
|
|
31
|
+
backFunc: () => {
|
|
32
|
+
routerPush(PAGE.HOME);
|
|
33
|
+
},
|
|
34
|
+
backTitle: ''
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: PAGE.CUSTOMER_APPOINTMENT,
|
|
38
|
+
backFunc: routerBack,
|
|
39
|
+
backTitle: 'Appointments'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: PAGE.CUSTOMER_CHECK_IN,
|
|
43
|
+
backFunc: routerBack,
|
|
44
|
+
backTitle: 'Checkins'
|
|
45
|
+
}
|
|
46
|
+
];
|
|
47
|
+
const routerMobileConfig = computed(() => [
|
|
48
|
+
{
|
|
49
|
+
id: PAGE.CHAT_LIST,
|
|
50
|
+
backFunc: props.isLib
|
|
51
|
+
? undefined
|
|
52
|
+
: () => {
|
|
53
|
+
logout();
|
|
54
|
+
},
|
|
55
|
+
backTitle: 'logo',
|
|
56
|
+
subTitle: dataProfile.value?.user_type == 'tenant'
|
|
57
|
+
? phoneNumberFormat(dataProfile.value?.phone ?? '')
|
|
58
|
+
: ''
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: PAGE.HOME,
|
|
62
|
+
backFunc: () => {
|
|
63
|
+
routerPush(PAGE.CHAT_LIST);
|
|
64
|
+
},
|
|
65
|
+
backTitle: '',
|
|
66
|
+
isHidden: true
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: PAGE.CUSTOMER_DETAIL,
|
|
70
|
+
backFunc: () => {
|
|
71
|
+
if (receiverId.value) {
|
|
72
|
+
routerPush(PAGE.HOME);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
routerPush(PAGE.CHAT_LIST);
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
backTitle: ''
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: PAGE.CUSTOMER_APPOINTMENT,
|
|
82
|
+
backFunc: routerBack,
|
|
83
|
+
backTitle: 'Appointments'
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: PAGE.CUSTOMER_CHECK_IN,
|
|
87
|
+
backFunc: routerBack,
|
|
88
|
+
backTitle: 'Checkins'
|
|
89
|
+
}
|
|
90
|
+
]);
|
|
91
|
+
const props = withDefaults(defineProps(), {
|
|
92
|
+
response: 'tablet',
|
|
93
|
+
isZoomIn: undefined
|
|
94
|
+
});
|
|
95
|
+
const emit = defineEmits();
|
|
96
|
+
let initTimer = null;
|
|
97
|
+
const handleExposeInit = (init_data) => {
|
|
98
|
+
if (init_data?.isResponsiveChange)
|
|
99
|
+
return;
|
|
100
|
+
if (initTimer)
|
|
101
|
+
return;
|
|
102
|
+
const func = (data) => {
|
|
103
|
+
if (chatListRef.value) {
|
|
104
|
+
if (init_data?.conversation_id) {
|
|
105
|
+
chatListRef.value?.initData({
|
|
106
|
+
conversation_id: data?.conversation_id,
|
|
107
|
+
is_known: data?.is_known ?? 1
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
else
|
|
111
|
+
chatListRef.value?.initData(data);
|
|
112
|
+
clearInterval(initTimer);
|
|
113
|
+
initTimer = null;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
initTimer = setInterval(() => func(init_data), 500);
|
|
117
|
+
};
|
|
118
|
+
const { initPage } = useInitData();
|
|
119
|
+
const { getResponsiveObserver } = useListenEvent(() => handleExposeInit({ isResponsiveChange: true }));
|
|
120
|
+
onMounted(() => {
|
|
121
|
+
getResponsiveObserver(true);
|
|
122
|
+
if (props.isLib) {
|
|
123
|
+
defineRootColor();
|
|
124
|
+
handleInitPage();
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
onUnmounted(() => { });
|
|
128
|
+
const currentPageConfig = computed(() => {
|
|
129
|
+
if (responsiveRender.value === 'mobile') {
|
|
130
|
+
return routerMobileConfig.value.find((e) => e.id == currentPage.value);
|
|
131
|
+
}
|
|
132
|
+
return routerConfig.find((e) => e.id == currentPage.value);
|
|
133
|
+
});
|
|
134
|
+
const responsiveRender = computed(() => {
|
|
135
|
+
return props.response == 'mobile' ? props.response : responsiveObserver.value;
|
|
136
|
+
});
|
|
137
|
+
const unreadCount = computed(() => {
|
|
138
|
+
return ((chatListRef.value?.listConversationsAll?.reduce((total, cur) => total + (cur?.unread_count ?? 0), 0) ?? 0) +
|
|
139
|
+
(chatListRef.value?.listConversationsUnknown?.reduce((total, cur) => total + (cur?.unread_count ?? 0), 0) ?? 0));
|
|
140
|
+
});
|
|
141
|
+
const currentConversation = computed(() => {
|
|
142
|
+
return (chatListRef.value?.listConversationsAll.find((e) => e.receiver_id == receiverId.value) ??
|
|
143
|
+
chatListRef.value?.listConversationsUnknown.find((e) => e.receiver_id == receiverId.value) ??
|
|
144
|
+
null);
|
|
145
|
+
});
|
|
146
|
+
const callStatus = computed(() => callingRef.value?.callStatus ?? null);
|
|
147
|
+
// const limitTimeLabel = computed(() => {
|
|
148
|
+
// const m2 = Math.floor(timeLimit.value / 60)
|
|
149
|
+
// const s2 = timeLimit.value % 60
|
|
150
|
+
// return `${m2.toString().padStart(2, '0')}:${s2.toString().padStart(2, '0')}`
|
|
151
|
+
// })
|
|
152
|
+
const appChatRef = ref();
|
|
153
|
+
const callingRef = ref(null);
|
|
154
|
+
const receiverId = ref(null);
|
|
155
|
+
const customerDetailRef = ref(null);
|
|
156
|
+
const homeComponentRef = ref(null);
|
|
157
|
+
const chatListRef = ref(null);
|
|
158
|
+
const drawerVisibleRef = ref(null);
|
|
159
|
+
const phoneNumpadRef = ref();
|
|
160
|
+
const loading = ref(false);
|
|
161
|
+
const selectReceiver = async (data) => {
|
|
162
|
+
if (receiverId.value != data?.receiver_id || responsiveRender.value === 'mobile') {
|
|
163
|
+
if (currentPage.value != PAGE.HOME) {
|
|
164
|
+
routerPush(PAGE.HOME);
|
|
165
|
+
}
|
|
166
|
+
receiverId.value = data?.receiver_id;
|
|
167
|
+
await nextTick();
|
|
168
|
+
chatListRef.value?.handleReadMessage();
|
|
169
|
+
homeComponentRef.value?.getData(data);
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
const handleCall = (user) => {
|
|
173
|
+
if (dataProfile.value?.user_type != 'tenant')
|
|
174
|
+
return;
|
|
175
|
+
if (callingRef.value) {
|
|
176
|
+
callingRef.value?.startCall(user);
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
emit('call', user);
|
|
180
|
+
}
|
|
181
|
+
handleReadMessage();
|
|
182
|
+
};
|
|
183
|
+
const handleInitPage = async () => {
|
|
184
|
+
const init_data = await initPage({ props: props, responsive: responsiveRender.value });
|
|
185
|
+
if (!dataProfile.value?.phone && dataProfile.value?.user_type == 'tenant') {
|
|
186
|
+
emit('error:noPhoneTenant');
|
|
187
|
+
routerPush(PAGE.NOT_TENANT_PHONE);
|
|
188
|
+
}
|
|
189
|
+
handleExposeInit(init_data);
|
|
190
|
+
};
|
|
191
|
+
const openSettings = () => {
|
|
192
|
+
drawerVisibleRef.value?.open();
|
|
193
|
+
};
|
|
194
|
+
const handleReadMessage = () => {
|
|
195
|
+
chatListRef.value?.handleReadMessage();
|
|
196
|
+
};
|
|
197
|
+
const handleOpenPhoneNumpad = () => {
|
|
198
|
+
phoneNumpadRef.value?.openPhoneNumpad();
|
|
199
|
+
};
|
|
200
|
+
const handleCloseBtn = () => {
|
|
201
|
+
emit('app:close');
|
|
202
|
+
phoneNumpadRef.value?.closePhoneNumpad();
|
|
203
|
+
};
|
|
204
|
+
const backToHome = () => {
|
|
205
|
+
phoneNumpadRef.value?.closePhoneNumpad();
|
|
206
|
+
};
|
|
207
|
+
const goToConversationRequest = (data) => {
|
|
208
|
+
chatListRef.value?.goToConversationRequest(data);
|
|
209
|
+
};
|
|
210
|
+
const handleReloadCustomer = (data) => {
|
|
211
|
+
homeComponentRef.value?.handleGetDetailReceiverQuickly(data);
|
|
212
|
+
};
|
|
213
|
+
const startSendMessage = async (data) => {
|
|
214
|
+
try {
|
|
215
|
+
loading.value = true;
|
|
216
|
+
await nextTick();
|
|
217
|
+
await phoneNumpadRef.value?.startSendMessage(data);
|
|
218
|
+
}
|
|
219
|
+
catch (e) {
|
|
220
|
+
console.log(e);
|
|
221
|
+
}
|
|
222
|
+
loading.value = false;
|
|
223
|
+
};
|
|
224
|
+
let __VLS_exposed;
|
|
225
|
+
defineExpose({
|
|
226
|
+
call: {
|
|
227
|
+
startCall: async () => {
|
|
228
|
+
await callingRef.value?.answer();
|
|
229
|
+
},
|
|
230
|
+
endCall: () => {
|
|
231
|
+
callingRef.value?.endCall();
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
chat: {
|
|
235
|
+
startSendMessage
|
|
236
|
+
},
|
|
237
|
+
ui: {
|
|
238
|
+
get unreadCount() {
|
|
239
|
+
return unreadCount.value;
|
|
240
|
+
},
|
|
241
|
+
get callStatus() {
|
|
242
|
+
return callStatus.value;
|
|
243
|
+
},
|
|
244
|
+
get callLabel() {
|
|
245
|
+
return callingRef.value?.label ?? '';
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
app: {
|
|
249
|
+
getUserRemote: () => {
|
|
250
|
+
return callingRef.value?.userRemoter ?? null;
|
|
251
|
+
},
|
|
252
|
+
openSettings,
|
|
253
|
+
initData: (data) => handleExposeInit(data),
|
|
254
|
+
backToHome,
|
|
255
|
+
closeCallingModal: () => callingRef.value?.closeModal()
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
259
|
+
const __VLS_defaults = {
|
|
260
|
+
response: 'tablet',
|
|
261
|
+
isZoomIn: undefined
|
|
262
|
+
};
|
|
263
|
+
const __VLS_ctx = {
|
|
264
|
+
...{},
|
|
265
|
+
...{},
|
|
266
|
+
...{},
|
|
267
|
+
...{},
|
|
268
|
+
...{},
|
|
269
|
+
};
|
|
270
|
+
let __VLS_elements;
|
|
271
|
+
let __VLS_components;
|
|
272
|
+
let __VLS_directives;
|
|
273
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
274
|
+
...{ class: "go-chat-main max-w-full bg-white" },
|
|
275
|
+
...{ class: ({ 'go-chat-app': __VLS_ctx.isLib }) },
|
|
276
|
+
id: "appChatMain",
|
|
277
|
+
ref: "appChatRef",
|
|
278
|
+
});
|
|
279
|
+
(__VLS_ctx.$attrs);
|
|
280
|
+
/** @type {typeof __VLS_ctx.appChatRef} */ ;
|
|
281
|
+
// @ts-ignore
|
|
282
|
+
[isLib, $attrs, appChatRef,];
|
|
283
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
284
|
+
...{ class: "bg-white inset-0 sc-full flex-center" },
|
|
285
|
+
});
|
|
286
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.loading) }, null, null);
|
|
287
|
+
// @ts-ignore
|
|
288
|
+
[loading,];
|
|
289
|
+
/** @type {[typeof BaseSpin, ]} */ ;
|
|
290
|
+
// @ts-ignore
|
|
291
|
+
const __VLS_0 = __VLS_asFunctionalComponent(BaseSpin, new BaseSpin({}));
|
|
292
|
+
const __VLS_1 = __VLS_0({}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
293
|
+
if (!__VLS_ctx.isRouterReady) {
|
|
294
|
+
// @ts-ignore
|
|
295
|
+
[isRouterReady,];
|
|
296
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
297
|
+
...{ class: "m-auto flex-center sc-full" },
|
|
298
|
+
});
|
|
299
|
+
/** @type {[typeof BaseSpin, ]} */ ;
|
|
300
|
+
// @ts-ignore
|
|
301
|
+
const __VLS_4 = __VLS_asFunctionalComponent(BaseSpin, new BaseSpin({}));
|
|
302
|
+
const __VLS_5 = __VLS_4({}, ...__VLS_functionalComponentArgsRest(__VLS_4));
|
|
303
|
+
}
|
|
304
|
+
else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR) {
|
|
305
|
+
// @ts-ignore
|
|
306
|
+
[currentPage, PAGE,];
|
|
307
|
+
/** @type {[typeof Error, ]} */ ;
|
|
308
|
+
// @ts-ignore
|
|
309
|
+
const __VLS_8 = __VLS_asFunctionalComponent(Error, new Error({
|
|
310
|
+
...{ class: "mt-10" },
|
|
311
|
+
}));
|
|
312
|
+
const __VLS_9 = __VLS_8({
|
|
313
|
+
...{ class: "mt-10" },
|
|
314
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_8));
|
|
315
|
+
}
|
|
316
|
+
else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT) {
|
|
317
|
+
// @ts-ignore
|
|
318
|
+
[currentPage, PAGE,];
|
|
319
|
+
/** @type {[typeof Setting, ]} */ ;
|
|
320
|
+
// @ts-ignore
|
|
321
|
+
const __VLS_12 = __VLS_asFunctionalComponent(Setting, new Setting({}));
|
|
322
|
+
const __VLS_13 = __VLS_12({}, ...__VLS_functionalComponentArgsRest(__VLS_12));
|
|
323
|
+
}
|
|
324
|
+
else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS) {
|
|
325
|
+
// @ts-ignore
|
|
326
|
+
[currentPage, PAGE,];
|
|
327
|
+
/** @type {[typeof SettingSuccess, ]} */ ;
|
|
328
|
+
// @ts-ignore
|
|
329
|
+
const __VLS_16 = __VLS_asFunctionalComponent(SettingSuccess, new SettingSuccess({}));
|
|
330
|
+
const __VLS_17 = __VLS_16({}, ...__VLS_functionalComponentArgsRest(__VLS_16));
|
|
331
|
+
}
|
|
332
|
+
else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE) {
|
|
333
|
+
// @ts-ignore
|
|
334
|
+
[currentPage, PAGE,];
|
|
335
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
336
|
+
...{ class: "h-full p-5 flex flex-col" },
|
|
337
|
+
});
|
|
338
|
+
if (props.isLib) {
|
|
339
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
340
|
+
...{ class: "shrink-0 flex items-center justify-between" },
|
|
341
|
+
});
|
|
342
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
|
|
343
|
+
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
344
|
+
...{ onClick: (...[$event]) => {
|
|
345
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
346
|
+
return;
|
|
347
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
348
|
+
return;
|
|
349
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
350
|
+
return;
|
|
351
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
352
|
+
return;
|
|
353
|
+
if (!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
354
|
+
return;
|
|
355
|
+
if (!(props.isLib))
|
|
356
|
+
return;
|
|
357
|
+
__VLS_ctx.handleCloseBtn();
|
|
358
|
+
// @ts-ignore
|
|
359
|
+
[handleCloseBtn,];
|
|
360
|
+
} },
|
|
361
|
+
...{ class: "w-10 h-10" },
|
|
362
|
+
});
|
|
363
|
+
/** @type {[typeof IconCloseCircle, ]} */ ;
|
|
364
|
+
// @ts-ignore
|
|
365
|
+
const __VLS_20 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
|
|
366
|
+
const __VLS_21 = __VLS_20({}, ...__VLS_functionalComponentArgsRest(__VLS_20));
|
|
367
|
+
}
|
|
368
|
+
/** @type {[typeof NotTenantPhone, ]} */ ;
|
|
369
|
+
// @ts-ignore
|
|
370
|
+
const __VLS_24 = __VLS_asFunctionalComponent(NotTenantPhone, new NotTenantPhone({
|
|
371
|
+
...{ 'onTryAgain': {} },
|
|
372
|
+
...{ class: "bg-white grow" },
|
|
373
|
+
isLib: (props.isLib),
|
|
374
|
+
}));
|
|
375
|
+
const __VLS_25 = __VLS_24({
|
|
376
|
+
...{ 'onTryAgain': {} },
|
|
377
|
+
...{ class: "bg-white grow" },
|
|
378
|
+
isLib: (props.isLib),
|
|
379
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_24));
|
|
380
|
+
let __VLS_27;
|
|
381
|
+
let __VLS_28;
|
|
382
|
+
const __VLS_29 = ({ tryAgain: {} },
|
|
383
|
+
{ onTryAgain: (...[$event]) => {
|
|
384
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
385
|
+
return;
|
|
386
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
387
|
+
return;
|
|
388
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
389
|
+
return;
|
|
390
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
391
|
+
return;
|
|
392
|
+
if (!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
393
|
+
return;
|
|
394
|
+
__VLS_ctx.handleInitPage();
|
|
395
|
+
// @ts-ignore
|
|
396
|
+
[handleInitPage,];
|
|
397
|
+
} });
|
|
398
|
+
var __VLS_26;
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
402
|
+
...{ class: "grow h-full overflow-hidden flex flex-col" },
|
|
403
|
+
});
|
|
404
|
+
if (__VLS_ctx.isLib) {
|
|
405
|
+
// @ts-ignore
|
|
406
|
+
[isLib,];
|
|
407
|
+
/** @type {[typeof PageError, ]} */ ;
|
|
408
|
+
// @ts-ignore
|
|
409
|
+
const __VLS_31 = __VLS_asFunctionalComponent(PageError, new PageError({
|
|
410
|
+
...{ class: "shrink-0" },
|
|
411
|
+
}));
|
|
412
|
+
const __VLS_32 = __VLS_31({
|
|
413
|
+
...{ class: "shrink-0" },
|
|
414
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_31));
|
|
415
|
+
}
|
|
416
|
+
/** @type {[typeof ChatHeader, ]} */ ;
|
|
417
|
+
// @ts-ignore
|
|
418
|
+
const __VLS_35 = __VLS_asFunctionalComponent(ChatHeader, new ChatHeader({
|
|
419
|
+
...{ 'onClose': {} },
|
|
420
|
+
...{ 'onZoomChange': {} },
|
|
421
|
+
...{ class: "py-4 border-b layout-border" },
|
|
422
|
+
...{ class: ({
|
|
423
|
+
'bg-[#F9FAFC]': __VLS_ctx.responsiveRender == 'mobile',
|
|
424
|
+
'bg-white': __VLS_ctx.responsiveRender != 'mobile'
|
|
425
|
+
}) },
|
|
426
|
+
currentPageConfig: (__VLS_ctx.currentPageConfig),
|
|
427
|
+
isLib: (__VLS_ctx.isLib),
|
|
428
|
+
response: (__VLS_ctx.responsiveRender),
|
|
429
|
+
isZoomIn: (__VLS_ctx.isZoomIn),
|
|
430
|
+
}));
|
|
431
|
+
const __VLS_36 = __VLS_35({
|
|
432
|
+
...{ 'onClose': {} },
|
|
433
|
+
...{ 'onZoomChange': {} },
|
|
434
|
+
...{ class: "py-4 border-b layout-border" },
|
|
435
|
+
...{ class: ({
|
|
436
|
+
'bg-[#F9FAFC]': __VLS_ctx.responsiveRender == 'mobile',
|
|
437
|
+
'bg-white': __VLS_ctx.responsiveRender != 'mobile'
|
|
438
|
+
}) },
|
|
439
|
+
currentPageConfig: (__VLS_ctx.currentPageConfig),
|
|
440
|
+
isLib: (__VLS_ctx.isLib),
|
|
441
|
+
response: (__VLS_ctx.responsiveRender),
|
|
442
|
+
isZoomIn: (__VLS_ctx.isZoomIn),
|
|
443
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_35));
|
|
444
|
+
let __VLS_38;
|
|
445
|
+
let __VLS_39;
|
|
446
|
+
const __VLS_40 = ({ close: {} },
|
|
447
|
+
{ onClose: (...[$event]) => {
|
|
448
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
449
|
+
return;
|
|
450
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
451
|
+
return;
|
|
452
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
453
|
+
return;
|
|
454
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
455
|
+
return;
|
|
456
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
457
|
+
return;
|
|
458
|
+
__VLS_ctx.handleCloseBtn();
|
|
459
|
+
// @ts-ignore
|
|
460
|
+
[isLib, handleCloseBtn, responsiveRender, responsiveRender, responsiveRender, currentPageConfig, isZoomIn,];
|
|
461
|
+
} });
|
|
462
|
+
const __VLS_41 = ({ zoomChange: {} },
|
|
463
|
+
{ onZoomChange: (...[$event]) => {
|
|
464
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
465
|
+
return;
|
|
466
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
467
|
+
return;
|
|
468
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
469
|
+
return;
|
|
470
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
471
|
+
return;
|
|
472
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
473
|
+
return;
|
|
474
|
+
__VLS_ctx.emit('app:zoomChange');
|
|
475
|
+
// @ts-ignore
|
|
476
|
+
[emit,];
|
|
477
|
+
} });
|
|
478
|
+
var __VLS_37;
|
|
479
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
480
|
+
...{ class: "w-full grow flex overflow-hidden relative" },
|
|
481
|
+
});
|
|
482
|
+
if (__VLS_ctx.isLib) {
|
|
483
|
+
// @ts-ignore
|
|
484
|
+
[isLib,];
|
|
485
|
+
/** @type {[typeof Calling, ]} */ ;
|
|
486
|
+
// @ts-ignore
|
|
487
|
+
const __VLS_43 = __VLS_asFunctionalComponent(Calling, new Calling({
|
|
488
|
+
...{ 'onUserCalling': {} },
|
|
489
|
+
...{ 'onEndCall': {} },
|
|
490
|
+
ref: "callingRef",
|
|
491
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
492
|
+
}));
|
|
493
|
+
const __VLS_44 = __VLS_43({
|
|
494
|
+
...{ 'onUserCalling': {} },
|
|
495
|
+
...{ 'onEndCall': {} },
|
|
496
|
+
ref: "callingRef",
|
|
497
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
498
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_43));
|
|
499
|
+
let __VLS_46;
|
|
500
|
+
let __VLS_47;
|
|
501
|
+
const __VLS_48 = ({ userCalling: {} },
|
|
502
|
+
{ onUserCalling: (...[$event]) => {
|
|
503
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
504
|
+
return;
|
|
505
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
506
|
+
return;
|
|
507
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
508
|
+
return;
|
|
509
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
510
|
+
return;
|
|
511
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
512
|
+
return;
|
|
513
|
+
if (!(__VLS_ctx.isLib))
|
|
514
|
+
return;
|
|
515
|
+
__VLS_ctx.emit('call:userCalling', $event);
|
|
516
|
+
// @ts-ignore
|
|
517
|
+
[responsiveRender, emit,];
|
|
518
|
+
} });
|
|
519
|
+
const __VLS_49 = ({ endCall: {} },
|
|
520
|
+
{ onEndCall: (...[$event]) => {
|
|
521
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
522
|
+
return;
|
|
523
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
524
|
+
return;
|
|
525
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
526
|
+
return;
|
|
527
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
528
|
+
return;
|
|
529
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
530
|
+
return;
|
|
531
|
+
if (!(__VLS_ctx.isLib))
|
|
532
|
+
return;
|
|
533
|
+
__VLS_ctx.emit('call:endCall');
|
|
534
|
+
// @ts-ignore
|
|
535
|
+
[emit,];
|
|
536
|
+
} });
|
|
537
|
+
/** @type {typeof __VLS_ctx.callingRef} */ ;
|
|
538
|
+
var __VLS_50 = {};
|
|
539
|
+
// @ts-ignore
|
|
540
|
+
[callingRef,];
|
|
541
|
+
var __VLS_45;
|
|
542
|
+
}
|
|
543
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
544
|
+
...{ class: "relative flex w-full h-full" },
|
|
545
|
+
...{ class: ({
|
|
546
|
+
'': __VLS_ctx.responsiveRender != 'mobile',
|
|
547
|
+
'grow flex-col mx-auto bg-[#F9FAFC] overflow-hidden chat-mobile': __VLS_ctx.responsiveRender == 'mobile'
|
|
548
|
+
}) },
|
|
549
|
+
});
|
|
550
|
+
// @ts-ignore
|
|
551
|
+
[responsiveRender, responsiveRender,];
|
|
552
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
553
|
+
...{ class: "grow overflow-hidden" },
|
|
554
|
+
...{ class: ({ flex: __VLS_ctx.responsiveRender != 'mobile' }) },
|
|
555
|
+
});
|
|
556
|
+
// @ts-ignore
|
|
557
|
+
[responsiveRender,];
|
|
558
|
+
/** @type {[typeof ChatList, ]} */ ;
|
|
559
|
+
// @ts-ignore
|
|
560
|
+
const __VLS_53 = __VLS_asFunctionalComponent(ChatList, new ChatList({
|
|
561
|
+
...{ 'onSelectReceiver': {} },
|
|
562
|
+
...{ 'onOpenPhoneNumpad': {} },
|
|
563
|
+
...{ 'onReloadReceiver': {} },
|
|
564
|
+
ref: "chatListRef",
|
|
565
|
+
...{ class: "" },
|
|
566
|
+
...{ class: ({
|
|
567
|
+
'w-[38%] max-w-[500px] min-w-[300px] xl:min-w-[450px] border-r layout-border': __VLS_ctx.responsiveRender != 'mobile',
|
|
568
|
+
'w-full max-w-[500px] !bg-[#F9FAFC]': __VLS_ctx.responsiveRender == 'mobile'
|
|
569
|
+
}) },
|
|
570
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
571
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
572
|
+
}));
|
|
573
|
+
const __VLS_54 = __VLS_53({
|
|
574
|
+
...{ 'onSelectReceiver': {} },
|
|
575
|
+
...{ 'onOpenPhoneNumpad': {} },
|
|
576
|
+
...{ 'onReloadReceiver': {} },
|
|
577
|
+
ref: "chatListRef",
|
|
578
|
+
...{ class: "" },
|
|
579
|
+
...{ class: ({
|
|
580
|
+
'w-[38%] max-w-[500px] min-w-[300px] xl:min-w-[450px] border-r layout-border': __VLS_ctx.responsiveRender != 'mobile',
|
|
581
|
+
'w-full max-w-[500px] !bg-[#F9FAFC]': __VLS_ctx.responsiveRender == 'mobile'
|
|
582
|
+
}) },
|
|
583
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
584
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
585
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_53));
|
|
586
|
+
let __VLS_56;
|
|
587
|
+
let __VLS_57;
|
|
588
|
+
const __VLS_58 = ({ selectReceiver: {} },
|
|
589
|
+
{ onSelectReceiver: (__VLS_ctx.selectReceiver) });
|
|
590
|
+
const __VLS_59 = ({ openPhoneNumpad: {} },
|
|
591
|
+
{ onOpenPhoneNumpad: (...[$event]) => {
|
|
592
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
593
|
+
return;
|
|
594
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
595
|
+
return;
|
|
596
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
597
|
+
return;
|
|
598
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
599
|
+
return;
|
|
600
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
601
|
+
return;
|
|
602
|
+
__VLS_ctx.handleOpenPhoneNumpad();
|
|
603
|
+
// @ts-ignore
|
|
604
|
+
[responsiveRender, responsiveRender, responsiveRender, receiverId, selectReceiver, handleOpenPhoneNumpad,];
|
|
605
|
+
} });
|
|
606
|
+
const __VLS_60 = ({ reloadReceiver: {} },
|
|
607
|
+
{ onReloadReceiver: (__VLS_ctx.handleReloadCustomer) });
|
|
608
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CHAT_LIST || __VLS_ctx.responsiveRender != 'mobile') }, null, null);
|
|
609
|
+
/** @type {typeof __VLS_ctx.chatListRef} */ ;
|
|
610
|
+
var __VLS_61 = {};
|
|
611
|
+
// @ts-ignore
|
|
612
|
+
[currentPage, PAGE, responsiveRender, handleReloadCustomer, chatListRef,];
|
|
613
|
+
var __VLS_55;
|
|
614
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
615
|
+
...{ class: "h-full overflow-hidden" },
|
|
616
|
+
...{ class: ({ 'flex flex-col grow': __VLS_ctx.responsiveRender != 'mobile', 'w-full': __VLS_ctx.responsiveRender == 'mobile' }) },
|
|
617
|
+
});
|
|
618
|
+
// @ts-ignore
|
|
619
|
+
[responsiveRender, responsiveRender,];
|
|
620
|
+
if (__VLS_ctx.currentPageConfig?.backFunc && __VLS_ctx.responsiveRender != 'mobile') {
|
|
621
|
+
// @ts-ignore
|
|
622
|
+
[responsiveRender, currentPageConfig,];
|
|
623
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
624
|
+
...{ class: "text-[#141B34] px-6 mt-4" },
|
|
625
|
+
});
|
|
626
|
+
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
627
|
+
...{ onClick: (...[$event]) => {
|
|
628
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
629
|
+
return;
|
|
630
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
631
|
+
return;
|
|
632
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
633
|
+
return;
|
|
634
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
635
|
+
return;
|
|
636
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
637
|
+
return;
|
|
638
|
+
if (!(__VLS_ctx.currentPageConfig?.backFunc && __VLS_ctx.responsiveRender != 'mobile'))
|
|
639
|
+
return;
|
|
640
|
+
__VLS_ctx.currentPageConfig.backFunc();
|
|
641
|
+
// @ts-ignore
|
|
642
|
+
[currentPageConfig,];
|
|
643
|
+
} },
|
|
644
|
+
...{ class: "flex items-center" },
|
|
645
|
+
});
|
|
646
|
+
/** @type {[typeof IconArrowLeft, ]} */ ;
|
|
647
|
+
// @ts-ignore
|
|
648
|
+
const __VLS_64 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
|
|
649
|
+
const __VLS_65 = __VLS_64({}, ...__VLS_functionalComponentArgsRest(__VLS_64));
|
|
650
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
651
|
+
...{ class: "text-xl font-semibold text-chat-haze-900 ml-3" },
|
|
652
|
+
});
|
|
653
|
+
(__VLS_ctx.currentPageConfig.backTitle ?? '');
|
|
654
|
+
// @ts-ignore
|
|
655
|
+
[currentPageConfig,];
|
|
656
|
+
}
|
|
657
|
+
/** @type {[typeof HomeComponent, ]} */ ;
|
|
658
|
+
// @ts-ignore
|
|
659
|
+
const __VLS_68 = __VLS_asFunctionalComponent(HomeComponent, new HomeComponent({
|
|
660
|
+
...{ 'onCall': {} },
|
|
661
|
+
...{ 'onBack': {} },
|
|
662
|
+
...{ 'onInputFocus': {} },
|
|
663
|
+
...{ 'onViewAppointment': {} },
|
|
664
|
+
ref: "homeComponentRef",
|
|
665
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
666
|
+
...{ class: "h-full grow" },
|
|
667
|
+
conversation: (__VLS_ctx.currentConversation),
|
|
668
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
669
|
+
parentPageName: (__VLS_ctx.parentPageName ?? ''),
|
|
670
|
+
}));
|
|
671
|
+
const __VLS_69 = __VLS_68({
|
|
672
|
+
...{ 'onCall': {} },
|
|
673
|
+
...{ 'onBack': {} },
|
|
674
|
+
...{ 'onInputFocus': {} },
|
|
675
|
+
...{ 'onViewAppointment': {} },
|
|
676
|
+
ref: "homeComponentRef",
|
|
677
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
678
|
+
...{ class: "h-full grow" },
|
|
679
|
+
conversation: (__VLS_ctx.currentConversation),
|
|
680
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
681
|
+
parentPageName: (__VLS_ctx.parentPageName ?? ''),
|
|
682
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_68));
|
|
683
|
+
let __VLS_71;
|
|
684
|
+
let __VLS_72;
|
|
685
|
+
const __VLS_73 = ({ call: {} },
|
|
686
|
+
{ onCall: (__VLS_ctx.handleCall) });
|
|
687
|
+
const __VLS_74 = ({ back: {} },
|
|
688
|
+
{ onBack: (...[$event]) => {
|
|
689
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
690
|
+
return;
|
|
691
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
692
|
+
return;
|
|
693
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
694
|
+
return;
|
|
695
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
696
|
+
return;
|
|
697
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
698
|
+
return;
|
|
699
|
+
__VLS_ctx.currentPageConfig.backFunc?.();
|
|
700
|
+
// @ts-ignore
|
|
701
|
+
[responsiveRender, currentPageConfig, receiverId, currentConversation, parentPageName, handleCall,];
|
|
702
|
+
} });
|
|
703
|
+
const __VLS_75 = ({ inputFocus: {} },
|
|
704
|
+
{ onInputFocus: (__VLS_ctx.handleReadMessage) });
|
|
705
|
+
const __VLS_76 = ({ viewAppointment: {} },
|
|
706
|
+
{ onViewAppointment: (...[$event]) => {
|
|
707
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
708
|
+
return;
|
|
709
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
710
|
+
return;
|
|
711
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
712
|
+
return;
|
|
713
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
714
|
+
return;
|
|
715
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
716
|
+
return;
|
|
717
|
+
__VLS_ctx.emit('booking-admin:viewAppointment', $event);
|
|
718
|
+
// @ts-ignore
|
|
719
|
+
[emit, handleReadMessage,];
|
|
720
|
+
} });
|
|
721
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == __VLS_ctx.PAGE.HOME || (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CHAT_LIST && __VLS_ctx.responsiveRender != 'mobile')) }, null, null);
|
|
722
|
+
/** @type {typeof __VLS_ctx.homeComponentRef} */ ;
|
|
723
|
+
var __VLS_77 = {};
|
|
724
|
+
// @ts-ignore
|
|
725
|
+
[currentPage, currentPage, PAGE, PAGE, responsiveRender, homeComponentRef,];
|
|
726
|
+
var __VLS_70;
|
|
727
|
+
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_DETAIL) {
|
|
728
|
+
// @ts-ignore
|
|
729
|
+
[currentPage, PAGE,];
|
|
730
|
+
/** @type {[typeof CustomerDetail, ]} */ ;
|
|
731
|
+
// @ts-ignore
|
|
732
|
+
const __VLS_80 = __VLS_asFunctionalComponent(CustomerDetail, new CustomerDetail({
|
|
733
|
+
ref: "customerDetailRef",
|
|
734
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
735
|
+
...{ class: "w-full h-full" },
|
|
736
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
737
|
+
}));
|
|
738
|
+
const __VLS_81 = __VLS_80({
|
|
739
|
+
ref: "customerDetailRef",
|
|
740
|
+
receiverId: (__VLS_ctx.receiverId),
|
|
741
|
+
...{ class: "w-full h-full" },
|
|
742
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
743
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_80));
|
|
744
|
+
/** @type {typeof __VLS_ctx.customerDetailRef} */ ;
|
|
745
|
+
var __VLS_83 = {};
|
|
746
|
+
// @ts-ignore
|
|
747
|
+
[responsiveRender, receiverId, customerDetailRef,];
|
|
748
|
+
var __VLS_82;
|
|
749
|
+
}
|
|
750
|
+
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_CHECK_IN) {
|
|
751
|
+
// @ts-ignore
|
|
752
|
+
[currentPage, PAGE,];
|
|
753
|
+
/** @type {[typeof CustomerCheckIn, ]} */ ;
|
|
754
|
+
// @ts-ignore
|
|
755
|
+
const __VLS_86 = __VLS_asFunctionalComponent(CustomerCheckIn, new CustomerCheckIn({
|
|
756
|
+
...{ class: "w-full h-full" },
|
|
757
|
+
}));
|
|
758
|
+
const __VLS_87 = __VLS_86({
|
|
759
|
+
...{ class: "w-full h-full" },
|
|
760
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_86));
|
|
761
|
+
}
|
|
762
|
+
if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT) {
|
|
763
|
+
// @ts-ignore
|
|
764
|
+
[currentPage, PAGE,];
|
|
765
|
+
/** @type {[typeof CustomerAppointment, ]} */ ;
|
|
766
|
+
// @ts-ignore
|
|
767
|
+
const __VLS_90 = __VLS_asFunctionalComponent(CustomerAppointment, new CustomerAppointment({
|
|
768
|
+
...{ 'onBookingAdmin:viewAppointment': {} },
|
|
769
|
+
...{ class: "w-full h-full" },
|
|
770
|
+
isBookingAdmin: (__VLS_ctx.parentPageName == 'booking-admin'),
|
|
771
|
+
}));
|
|
772
|
+
const __VLS_91 = __VLS_90({
|
|
773
|
+
...{ 'onBookingAdmin:viewAppointment': {} },
|
|
774
|
+
...{ class: "w-full h-full" },
|
|
775
|
+
isBookingAdmin: (__VLS_ctx.parentPageName == 'booking-admin'),
|
|
776
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_90));
|
|
777
|
+
let __VLS_93;
|
|
778
|
+
let __VLS_94;
|
|
779
|
+
const __VLS_95 = ({ 'bookingAdmin:viewAppointment': {} },
|
|
780
|
+
{ 'onBookingAdmin:viewAppointment': (...[$event]) => {
|
|
781
|
+
if (!!(!__VLS_ctx.isRouterReady))
|
|
782
|
+
return;
|
|
783
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.TENANT_ERROR))
|
|
784
|
+
return;
|
|
785
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_TENANT))
|
|
786
|
+
return;
|
|
787
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.REGISTER_SUCCESS))
|
|
788
|
+
return;
|
|
789
|
+
if (!!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE))
|
|
790
|
+
return;
|
|
791
|
+
if (!(__VLS_ctx.currentPage == __VLS_ctx.PAGE.CUSTOMER_APPOINTMENT))
|
|
792
|
+
return;
|
|
793
|
+
__VLS_ctx.emit('booking-admin:viewAppointment', $event);
|
|
794
|
+
// @ts-ignore
|
|
795
|
+
[emit, parentPageName,];
|
|
796
|
+
} });
|
|
797
|
+
var __VLS_92;
|
|
798
|
+
}
|
|
799
|
+
/** @type {[typeof PhoneNumpad, ]} */ ;
|
|
800
|
+
// @ts-ignore
|
|
801
|
+
const __VLS_97 = __VLS_asFunctionalComponent(PhoneNumpad, new PhoneNumpad({
|
|
802
|
+
...{ 'onCall': {} },
|
|
803
|
+
...{ 'onMessage': {} },
|
|
804
|
+
ref: "phoneNumpadRef",
|
|
805
|
+
hideNumpad: (__VLS_ctx.isLib),
|
|
806
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
807
|
+
...{ class: "bg-white shrink-0 border-l layout-border" },
|
|
808
|
+
}));
|
|
809
|
+
const __VLS_98 = __VLS_97({
|
|
810
|
+
...{ 'onCall': {} },
|
|
811
|
+
...{ 'onMessage': {} },
|
|
812
|
+
ref: "phoneNumpadRef",
|
|
813
|
+
hideNumpad: (__VLS_ctx.isLib),
|
|
814
|
+
responsive: (__VLS_ctx.responsiveRender),
|
|
815
|
+
...{ class: "bg-white shrink-0 border-l layout-border" },
|
|
816
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_97));
|
|
817
|
+
let __VLS_100;
|
|
818
|
+
let __VLS_101;
|
|
819
|
+
const __VLS_102 = ({ call: {} },
|
|
820
|
+
{ onCall: (__VLS_ctx.handleCall) });
|
|
821
|
+
const __VLS_103 = ({ message: {} },
|
|
822
|
+
{ onMessage: (__VLS_ctx.goToConversationRequest) });
|
|
823
|
+
/** @type {typeof __VLS_ctx.phoneNumpadRef} */ ;
|
|
824
|
+
var __VLS_104 = {};
|
|
825
|
+
// @ts-ignore
|
|
826
|
+
[isLib, responsiveRender, handleCall, goToConversationRequest, phoneNumpadRef,];
|
|
827
|
+
var __VLS_99;
|
|
828
|
+
}
|
|
829
|
+
/** @type {__VLS_StyleScopedClasses['']} */ ;
|
|
830
|
+
/** @type {__VLS_StyleScopedClasses['']} */ ;
|
|
831
|
+
/** @type {__VLS_StyleScopedClasses['go-chat-main']} */ ;
|
|
832
|
+
/** @type {__VLS_StyleScopedClasses['max-w-full']} */ ;
|
|
833
|
+
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
834
|
+
/** @type {__VLS_StyleScopedClasses['go-chat-app']} */ ;
|
|
835
|
+
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
836
|
+
/** @type {__VLS_StyleScopedClasses['inset-0']} */ ;
|
|
837
|
+
/** @type {__VLS_StyleScopedClasses['sc-full']} */ ;
|
|
838
|
+
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
839
|
+
/** @type {__VLS_StyleScopedClasses['m-auto']} */ ;
|
|
840
|
+
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
841
|
+
/** @type {__VLS_StyleScopedClasses['sc-full']} */ ;
|
|
842
|
+
/** @type {__VLS_StyleScopedClasses['mt-10']} */ ;
|
|
843
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
844
|
+
/** @type {__VLS_StyleScopedClasses['p-5']} */ ;
|
|
845
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
846
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
847
|
+
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
848
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
849
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
850
|
+
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
851
|
+
/** @type {__VLS_StyleScopedClasses['w-10']} */ ;
|
|
852
|
+
/** @type {__VLS_StyleScopedClasses['h-10']} */ ;
|
|
853
|
+
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
854
|
+
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
855
|
+
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
856
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
857
|
+
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
858
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
859
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
860
|
+
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
861
|
+
/** @type {__VLS_StyleScopedClasses['py-4']} */ ;
|
|
862
|
+
/** @type {__VLS_StyleScopedClasses['border-b']} */ ;
|
|
863
|
+
/** @type {__VLS_StyleScopedClasses['layout-border']} */ ;
|
|
864
|
+
/** @type {__VLS_StyleScopedClasses['bg-[#F9FAFC]']} */ ;
|
|
865
|
+
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
866
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
867
|
+
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
868
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
869
|
+
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
870
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
871
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
872
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
873
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
874
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
875
|
+
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
876
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
877
|
+
/** @type {__VLS_StyleScopedClasses['mx-auto']} */ ;
|
|
878
|
+
/** @type {__VLS_StyleScopedClasses['bg-[#F9FAFC]']} */ ;
|
|
879
|
+
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
880
|
+
/** @type {__VLS_StyleScopedClasses['chat-mobile']} */ ;
|
|
881
|
+
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
882
|
+
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
883
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
884
|
+
/** @type {__VLS_StyleScopedClasses['w-[38%]']} */ ;
|
|
885
|
+
/** @type {__VLS_StyleScopedClasses['max-w-[500px]']} */ ;
|
|
886
|
+
/** @type {__VLS_StyleScopedClasses['min-w-[300px]']} */ ;
|
|
887
|
+
/** @type {__VLS_StyleScopedClasses['xl:min-w-[450px]']} */ ;
|
|
888
|
+
/** @type {__VLS_StyleScopedClasses['border-r']} */ ;
|
|
889
|
+
/** @type {__VLS_StyleScopedClasses['layout-border']} */ ;
|
|
890
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
891
|
+
/** @type {__VLS_StyleScopedClasses['max-w-[500px]']} */ ;
|
|
892
|
+
/** @type {__VLS_StyleScopedClasses['!bg-[#F9FAFC]']} */ ;
|
|
893
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
894
|
+
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
895
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
896
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
897
|
+
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
898
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
899
|
+
/** @type {__VLS_StyleScopedClasses['text-[#141B34]']} */ ;
|
|
900
|
+
/** @type {__VLS_StyleScopedClasses['px-6']} */ ;
|
|
901
|
+
/** @type {__VLS_StyleScopedClasses['mt-4']} */ ;
|
|
902
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
903
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
904
|
+
/** @type {__VLS_StyleScopedClasses['text-xl']} */ ;
|
|
905
|
+
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
906
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-900']} */ ;
|
|
907
|
+
/** @type {__VLS_StyleScopedClasses['ml-3']} */ ;
|
|
908
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
909
|
+
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
910
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
911
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
912
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
913
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
914
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
915
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
916
|
+
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
917
|
+
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
918
|
+
/** @type {__VLS_StyleScopedClasses['border-l']} */ ;
|
|
919
|
+
/** @type {__VLS_StyleScopedClasses['layout-border']} */ ;
|
|
920
|
+
// @ts-ignore
|
|
921
|
+
var __VLS_51 = __VLS_50, __VLS_62 = __VLS_61, __VLS_78 = __VLS_77, __VLS_84 = __VLS_83, __VLS_105 = __VLS_104;
|
|
922
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
923
|
+
setup: () => (__VLS_exposed),
|
|
924
|
+
__typeEmits: {},
|
|
925
|
+
__typeProps: {},
|
|
926
|
+
props: {},
|
|
927
|
+
});
|
|
928
|
+
export default {};
|