@phonghq/go-chat 1.0.0 → 1.0.2
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/README.md +4 -0
- package/dist/assets/icons/IconArrowLeft.vue.d.ts +2 -0
- package/dist/assets/icons/IconArrowLeft.vue.js +29 -0
- package/dist/assets/icons/IconPhone.vue.d.ts +2 -0
- package/dist/assets/icons/IconPhone.vue.js +19 -0
- package/dist/assets/icons/IconPlan.vue.d.ts +2 -0
- package/dist/assets/icons/IconPlan.vue.js +19 -0
- package/dist/assets/icons/IconPlus.vue.d.ts +2 -0
- package/dist/assets/icons/IconPlus.vue.js +22 -0
- package/dist/assets/icons/IconSearch.vue.d.ts +32 -0
- package/dist/assets/icons/IconSearch.vue.js +68 -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 +35 -0
- package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +2 -0
- package/dist/assets/icons/call/IconPhoneCancel.vue.js +35 -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/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 +2 -0
- package/dist/assets/icons/customer-detail/IconPhone.vue.js +21 -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/chat/App.vue.d.ts +5 -0
- package/dist/chat/App.vue.js +502 -0
- package/dist/chat/main.d.ts +3 -0
- package/dist/chat/main.js +2 -0
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +2 -0
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.js +207 -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 +136 -0
- package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +7 -0
- package/dist/chat/page/customer-detail/CustomerDetail.vue.js +235 -0
- package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +16 -0
- package/dist/chat/page/customer-detail/SubInformation.vue.js +102 -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 +20 -0
- package/dist/chat/page/home/ChatList.vue.js +380 -0
- package/dist/chat/page/home/ChatMessage.vue.d.ts +16 -0
- package/dist/chat/page/home/ChatMessage.vue.js +271 -0
- package/dist/chat/page/home/Home.vue.d.ts +14 -0
- package/dist/chat/page/home/Home.vue.js +327 -0
- package/dist/chat/page/home/HomeHeader.vue.d.ts +10 -0
- package/dist/chat/page/home/HomeHeader.vue.js +122 -0
- package/dist/chat/page/home/InputChat.vue.d.ts +19 -0
- package/dist/chat/page/home/InputChat.vue.js +226 -0
- package/dist/chat/page/home/NewCustomer.vue.d.ts +6 -0
- package/dist/chat/page/home/NewCustomer.vue.js +82 -0
- package/dist/components/ListenEvent.vue.d.ts +2 -0
- package/dist/components/ListenEvent.vue.js +45 -0
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +22 -0
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.js +197 -0
- package/dist/components/chat/call/Calling.vue.d.ts +7 -0
- package/dist/components/chat/call/Calling.vue.js +291 -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/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 +2 -0
- package/dist/components/chat/common/spin/BaseSpin.vue.js +12 -0
- package/dist/components/chat/customer/Avatar.vue.d.ts +11 -0
- package/dist/components/chat/customer/Avatar.vue.js +79 -0
- package/dist/components/chat/layout/mobile/Footer.vue.d.ts +2 -0
- package/dist/components/chat/layout/mobile/Footer.vue.js +109 -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/dropdown/DropdownBase.vue.d.ts +21 -0
- package/dist/components/common/dropdown/DropdownBase.vue.js +91 -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 +164 -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/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/Blank.vue.d.ts +9 -0
- package/dist/components/layout/Blank.vue.js +19 -0
- package/dist/components/layout/Default.vue.d.ts +9 -0
- package/dist/components/layout/Default.vue.js +21 -0
- package/dist/components/modal/Confirm.vue.d.ts +2 -0
- package/dist/components/modal/Confirm.vue.js +164 -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 +61 -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/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/composable/useCallHelper.d.ts +23 -0
- package/dist/composable/useCallHelper.js +170 -0
- package/dist/composable/useInitData.d.ts +11 -0
- package/dist/composable/useInitData.js +84 -0
- package/dist/composable/useModalConfirm.d.ts +5 -0
- package/dist/composable/useModalConfirm.js +39 -0
- package/dist/constant/color.d.ts +22 -0
- package/dist/constant/color.js +43 -0
- package/dist/constant/datetime.d.ts +5 -0
- package/dist/constant/datetime.js +5 -0
- package/dist/constant/general.d.ts +8 -0
- package/dist/constant/general.js +9 -0
- package/dist/constant/message.d.ts +8 -0
- package/dist/constant/message.js +8 -0
- package/dist/constant/mqtt.d.ts +4 -0
- package/dist/constant/mqtt.js +11 -0
- package/dist/constant/user.d.ts +8 -0
- package/dist/constant/user.js +9 -0
- package/dist/go-chat.es.js +64024 -2699
- package/dist/go-chat.umd.js +15 -3
- 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 +85 -0
- package/dist/plugins/mqtt.d.ts +10 -0
- package/dist/plugins/mqtt.js +128 -0
- package/dist/plugins/sdk.d.ts +19 -0
- package/dist/plugins/sdk.js +83 -0
- package/dist/plugins/websocket.d.ts +4 -0
- package/dist/plugins/websocket.js +65 -0
- package/dist/style.css +1 -1
- package/dist/types/chat/user.d.ts +88 -0
- package/dist/types/chat/user.js +1 -0
- package/dist/types/conversation.d.ts +18 -0
- package/dist/types/conversation.js +1 -0
- package/dist/utils/chat/auth.d.ts +45 -0
- package/dist/utils/chat/auth.js +51 -0
- package/dist/utils/chat/call.d.ts +5 -0
- package/dist/utils/chat/call.js +61 -0
- package/dist/utils/chat/chat-router.d.ts +3 -0
- package/dist/utils/chat/chat-router.js +9 -0
- package/dist/utils/chat/conversation.d.ts +3 -0
- package/dist/utils/chat/conversation.js +7 -0
- package/dist/utils/chat/message.d.ts +17 -0
- package/dist/utils/chat/message.js +42 -0
- package/dist/utils/chat/user.d.ts +193 -0
- package/dist/utils/chat/user.js +33 -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 +1 -0
- package/dist/utils/string-helper.js +27 -0
- package/package.json +8 -7
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import CardCustomerDetail from '../../../components/chat/card/CardCustomerDetail.vue';
|
|
3
|
+
import IconFilter from '../../../assets/icons/customer-appointment/IconFilter.vue';
|
|
4
|
+
import { computed } from 'vue';
|
|
5
|
+
import { getItemsByYear, userHistory } from '../../../utils/chat/user';
|
|
6
|
+
import { CalendarStatus } from '../../../constant/user';
|
|
7
|
+
import dayjs from 'dayjs';
|
|
8
|
+
import { DATE_FORMATS } from '../../../constant/datetime';
|
|
9
|
+
import CollapseCheckIn from '../../../chat/page/customer-check-in/CollapseCheckIn.vue';
|
|
10
|
+
const appointment = computed(() => {
|
|
11
|
+
return getItemsByYear(userHistory.value?.appointment ?? [], 'start_time');
|
|
12
|
+
});
|
|
13
|
+
const statusColor = (type) => {
|
|
14
|
+
switch (type) {
|
|
15
|
+
case CalendarStatus.Confirmed:
|
|
16
|
+
return 'background-color: #E3FFF1; color: #06C270';
|
|
17
|
+
case CalendarStatus.Scheduled:
|
|
18
|
+
return 'background-color: #FFF0FF; color: #6600CC';
|
|
19
|
+
case CalendarStatus.Canceled:
|
|
20
|
+
return 'background-color: #FFE4DC; color: #F15220';
|
|
21
|
+
case CalendarStatus.Done:
|
|
22
|
+
return 'background-color: #E5F0FF; color: #0063F7';
|
|
23
|
+
case CalendarStatus.Waiting:
|
|
24
|
+
return 'background-color: #FFF0E0; color: #D96A2B';
|
|
25
|
+
case 'website':
|
|
26
|
+
return 'background-color: #FFF3B6; color: #F5B02A';
|
|
27
|
+
case 'checkin':
|
|
28
|
+
return 'background-color: #fff; color: #00b1bc';
|
|
29
|
+
default:
|
|
30
|
+
return '';
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
34
|
+
const __VLS_ctx = {
|
|
35
|
+
...{},
|
|
36
|
+
...{},
|
|
37
|
+
};
|
|
38
|
+
let __VLS_elements;
|
|
39
|
+
let __VLS_components;
|
|
40
|
+
let __VLS_directives;
|
|
41
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
42
|
+
...{ class: "chat-padding-page" },
|
|
43
|
+
});
|
|
44
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
45
|
+
...{ class: "flex justify-between items-center mb-5" },
|
|
46
|
+
});
|
|
47
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
48
|
+
...{ class: "text-chat-haze-900 font-semibold" },
|
|
49
|
+
});
|
|
50
|
+
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
51
|
+
...{ class: "flex text-chat-haze-300 border border-chat-haze-300 rounded-[99px] px-2" },
|
|
52
|
+
});
|
|
53
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
54
|
+
...{ class: "font-medium" },
|
|
55
|
+
});
|
|
56
|
+
/** @type {[typeof IconFilter, ]} */ ;
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
const __VLS_0 = __VLS_asFunctionalComponent(IconFilter, new IconFilter({}));
|
|
59
|
+
const __VLS_1 = __VLS_0({}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
60
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
61
|
+
...{ class: "relative pl-4 h-max" },
|
|
62
|
+
});
|
|
63
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
64
|
+
...{ class: "absolute left-0 top-0 border-l border-dashed border-chat-haze-400 h-full w-1 mt-2" },
|
|
65
|
+
});
|
|
66
|
+
for (const [year, i] of __VLS_getVForSourceType((__VLS_ctx.appointment))) {
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
[appointment,];
|
|
69
|
+
/** @type {[typeof CollapseCheckIn, typeof CollapseCheckIn, ]} */ ;
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
const __VLS_4 = __VLS_asFunctionalComponent(CollapseCheckIn, new CollapseCheckIn({
|
|
72
|
+
...{ class: "relative" },
|
|
73
|
+
title: (year.year),
|
|
74
|
+
key: (i),
|
|
75
|
+
}));
|
|
76
|
+
const __VLS_5 = __VLS_4({
|
|
77
|
+
...{ class: "relative" },
|
|
78
|
+
title: (year.year),
|
|
79
|
+
key: (i),
|
|
80
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_4));
|
|
81
|
+
const { default: __VLS_7 } = __VLS_6.slots;
|
|
82
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
83
|
+
...{ class: "flex flex-col gap-y-3" },
|
|
84
|
+
});
|
|
85
|
+
for (const [item] of __VLS_getVForSourceType((year.items))) {
|
|
86
|
+
/** @type {[typeof CardCustomerDetail, typeof CardCustomerDetail, ]} */ ;
|
|
87
|
+
// @ts-ignore
|
|
88
|
+
const __VLS_8 = __VLS_asFunctionalComponent(CardCustomerDetail, new CardCustomerDetail({
|
|
89
|
+
key: (item.id),
|
|
90
|
+
}));
|
|
91
|
+
const __VLS_9 = __VLS_8({
|
|
92
|
+
key: (item.id),
|
|
93
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_8));
|
|
94
|
+
const { default: __VLS_11 } = __VLS_10.slots;
|
|
95
|
+
{
|
|
96
|
+
const { header: __VLS_12 } = __VLS_10.slots;
|
|
97
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
98
|
+
...{ class: "flex justify-between items-center" },
|
|
99
|
+
});
|
|
100
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
101
|
+
...{ class: "text-lg text-chat-haze-600 font-bold" },
|
|
102
|
+
});
|
|
103
|
+
(item.id);
|
|
104
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
105
|
+
...{ class: "translate-y-[-4px]" },
|
|
106
|
+
});
|
|
107
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
108
|
+
...{ class: "w-max rounded-[6px] text-14px px-[10px] py-[5px] mt-2" },
|
|
109
|
+
...{ style: (__VLS_ctx.statusColor(item.status)) },
|
|
110
|
+
});
|
|
111
|
+
// @ts-ignore
|
|
112
|
+
[statusColor,];
|
|
113
|
+
(item.status);
|
|
114
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
115
|
+
...{ class: "flex justify-between items-end" },
|
|
116
|
+
});
|
|
117
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
118
|
+
...{ class: "text-chat-haze-400" },
|
|
119
|
+
});
|
|
120
|
+
(__VLS_ctx.dayjs(item.start_time).format(__VLS_ctx.DATE_FORMATS['DATE_FORMAT']));
|
|
121
|
+
// @ts-ignore
|
|
122
|
+
[dayjs, DATE_FORMATS,];
|
|
123
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
124
|
+
...{ class: "text-chat-haze-400" },
|
|
125
|
+
});
|
|
126
|
+
(__VLS_ctx.dayjs(item.start_time).format(__VLS_ctx.DATE_FORMATS['TIME_12_FORMAT']));
|
|
127
|
+
// @ts-ignore
|
|
128
|
+
[dayjs, DATE_FORMATS,];
|
|
129
|
+
}
|
|
130
|
+
{
|
|
131
|
+
const { content: __VLS_13 } = __VLS_10.slots;
|
|
132
|
+
for (const [service, i] of __VLS_getVForSourceType((item.services))) {
|
|
133
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
134
|
+
...{ class: "flex justify-between items-center" },
|
|
135
|
+
key: (i),
|
|
136
|
+
});
|
|
137
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
138
|
+
...{ class: "text-chat-haze-409 font-medium" },
|
|
139
|
+
});
|
|
140
|
+
(service.employee_name);
|
|
141
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
142
|
+
...{ class: "text-chat-haze-409 font-medium" },
|
|
143
|
+
});
|
|
144
|
+
(service.name);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
var __VLS_10;
|
|
148
|
+
}
|
|
149
|
+
var __VLS_6;
|
|
150
|
+
}
|
|
151
|
+
/** @type {__VLS_StyleScopedClasses['chat-padding-page']} */ ;
|
|
152
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
153
|
+
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
154
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
155
|
+
/** @type {__VLS_StyleScopedClasses['mb-5']} */ ;
|
|
156
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-900']} */ ;
|
|
157
|
+
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
158
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
159
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-300']} */ ;
|
|
160
|
+
/** @type {__VLS_StyleScopedClasses['border']} */ ;
|
|
161
|
+
/** @type {__VLS_StyleScopedClasses['border-chat-haze-300']} */ ;
|
|
162
|
+
/** @type {__VLS_StyleScopedClasses['rounded-[99px]']} */ ;
|
|
163
|
+
/** @type {__VLS_StyleScopedClasses['px-2']} */ ;
|
|
164
|
+
/** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
|
|
165
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
166
|
+
/** @type {__VLS_StyleScopedClasses['pl-4']} */ ;
|
|
167
|
+
/** @type {__VLS_StyleScopedClasses['h-max']} */ ;
|
|
168
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
169
|
+
/** @type {__VLS_StyleScopedClasses['left-0']} */ ;
|
|
170
|
+
/** @type {__VLS_StyleScopedClasses['top-0']} */ ;
|
|
171
|
+
/** @type {__VLS_StyleScopedClasses['border-l']} */ ;
|
|
172
|
+
/** @type {__VLS_StyleScopedClasses['border-dashed']} */ ;
|
|
173
|
+
/** @type {__VLS_StyleScopedClasses['border-chat-haze-400']} */ ;
|
|
174
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
175
|
+
/** @type {__VLS_StyleScopedClasses['w-1']} */ ;
|
|
176
|
+
/** @type {__VLS_StyleScopedClasses['mt-2']} */ ;
|
|
177
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
178
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
179
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
180
|
+
/** @type {__VLS_StyleScopedClasses['gap-y-3']} */ ;
|
|
181
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
182
|
+
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
183
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
184
|
+
/** @type {__VLS_StyleScopedClasses['text-lg']} */ ;
|
|
185
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-600']} */ ;
|
|
186
|
+
/** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
|
|
187
|
+
/** @type {__VLS_StyleScopedClasses['translate-y-[-4px]']} */ ;
|
|
188
|
+
/** @type {__VLS_StyleScopedClasses['w-max']} */ ;
|
|
189
|
+
/** @type {__VLS_StyleScopedClasses['rounded-[6px]']} */ ;
|
|
190
|
+
/** @type {__VLS_StyleScopedClasses['text-14px']} */ ;
|
|
191
|
+
/** @type {__VLS_StyleScopedClasses['px-[10px]']} */ ;
|
|
192
|
+
/** @type {__VLS_StyleScopedClasses['py-[5px]']} */ ;
|
|
193
|
+
/** @type {__VLS_StyleScopedClasses['mt-2']} */ ;
|
|
194
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
195
|
+
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
196
|
+
/** @type {__VLS_StyleScopedClasses['items-end']} */ ;
|
|
197
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-400']} */ ;
|
|
198
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-400']} */ ;
|
|
199
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
200
|
+
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
201
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
202
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-409']} */ ;
|
|
203
|
+
/** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
|
|
204
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-409']} */ ;
|
|
205
|
+
/** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
|
|
206
|
+
const __VLS_export = (await import('vue')).defineComponent({});
|
|
207
|
+
export default {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
5
|
+
default?: ((props: {}) => any) | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import IconArrow from '../../../assets/icons/customer-detail/IconArrow.vue';
|
|
3
|
+
import CollapseBase from '../../../components/chat/common/collapse/CollapseBase.vue';
|
|
4
|
+
import { ref } from 'vue';
|
|
5
|
+
const props = withDefaults(defineProps(), {});
|
|
6
|
+
const open = ref(true);
|
|
7
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
8
|
+
const __VLS_defaults = {};
|
|
9
|
+
const __VLS_ctx = {
|
|
10
|
+
...{},
|
|
11
|
+
...{},
|
|
12
|
+
...{},
|
|
13
|
+
...{},
|
|
14
|
+
};
|
|
15
|
+
let __VLS_elements;
|
|
16
|
+
let __VLS_components;
|
|
17
|
+
let __VLS_directives;
|
|
18
|
+
/** @type {[typeof CollapseBase, typeof CollapseBase, ]} */ ;
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
const __VLS_0 = __VLS_asFunctionalComponent(CollapseBase, new CollapseBase({
|
|
21
|
+
...{ class: "relative" },
|
|
22
|
+
open: (__VLS_ctx.open),
|
|
23
|
+
}));
|
|
24
|
+
const __VLS_1 = __VLS_0({
|
|
25
|
+
...{ class: "relative" },
|
|
26
|
+
open: (__VLS_ctx.open),
|
|
27
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
28
|
+
var __VLS_3 = {};
|
|
29
|
+
const { default: __VLS_4 } = __VLS_2.slots;
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
[open,];
|
|
32
|
+
{
|
|
33
|
+
const { trigger: __VLS_5 } = __VLS_2.slots;
|
|
34
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
35
|
+
...{ class: "w-2 h-2 bg-chat-haze-400 rounded-full absolute left-[-20px] top-2" },
|
|
36
|
+
});
|
|
37
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
38
|
+
...{ class: "flex items-center text-chat-haze-400 mb-3" },
|
|
39
|
+
});
|
|
40
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
41
|
+
...{ class: "font-semibold text-lg" },
|
|
42
|
+
});
|
|
43
|
+
(__VLS_ctx.title);
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
[title,];
|
|
46
|
+
/** @type {[typeof IconArrow, ]} */ ;
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
const __VLS_6 = __VLS_asFunctionalComponent(IconArrow, new IconArrow({
|
|
49
|
+
...{ class: (__VLS_ctx.open ? 'rotate-90' : 'rotate-0') },
|
|
50
|
+
}));
|
|
51
|
+
const __VLS_7 = __VLS_6({
|
|
52
|
+
...{ class: (__VLS_ctx.open ? 'rotate-90' : 'rotate-0') },
|
|
53
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_6));
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
[open,];
|
|
56
|
+
}
|
|
57
|
+
var __VLS_10 = {};
|
|
58
|
+
var __VLS_2;
|
|
59
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
60
|
+
/** @type {__VLS_StyleScopedClasses['w-2']} */ ;
|
|
61
|
+
/** @type {__VLS_StyleScopedClasses['h-2']} */ ;
|
|
62
|
+
/** @type {__VLS_StyleScopedClasses['bg-chat-haze-400']} */ ;
|
|
63
|
+
/** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
|
|
64
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
65
|
+
/** @type {__VLS_StyleScopedClasses['left-[-20px]']} */ ;
|
|
66
|
+
/** @type {__VLS_StyleScopedClasses['top-2']} */ ;
|
|
67
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
68
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
69
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-400']} */ ;
|
|
70
|
+
/** @type {__VLS_StyleScopedClasses['mb-3']} */ ;
|
|
71
|
+
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
72
|
+
/** @type {__VLS_StyleScopedClasses['text-lg']} */ ;
|
|
73
|
+
// @ts-ignore
|
|
74
|
+
var __VLS_11 = __VLS_10;
|
|
75
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
76
|
+
__typeProps: {},
|
|
77
|
+
props: {},
|
|
78
|
+
});
|
|
79
|
+
const __VLS_export = {};
|
|
80
|
+
export default {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import CardCustomerDetail from '../../../components/chat/card/CardCustomerDetail.vue';
|
|
3
|
+
import { Status_Color } from '../../../constant/color';
|
|
4
|
+
import { computed, ref } from 'vue';
|
|
5
|
+
import CollapseCheckIn from '../../../chat/page/customer-check-in/CollapseCheckIn.vue';
|
|
6
|
+
import { getItemsByYear, userHistory } from '../../../utils/chat/user';
|
|
7
|
+
import dayjs from 'dayjs';
|
|
8
|
+
import { DATE_FORMATS } from '../../../constant/datetime';
|
|
9
|
+
const checkin = computed(() => {
|
|
10
|
+
return getItemsByYear(userHistory.value?.checkin ?? []);
|
|
11
|
+
});
|
|
12
|
+
const open = ref(true);
|
|
13
|
+
const open1 = ref(true);
|
|
14
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
15
|
+
const __VLS_ctx = {
|
|
16
|
+
...{},
|
|
17
|
+
...{},
|
|
18
|
+
};
|
|
19
|
+
let __VLS_elements;
|
|
20
|
+
let __VLS_components;
|
|
21
|
+
let __VLS_directives;
|
|
22
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
23
|
+
...{ class: "chat-padding-page" },
|
|
24
|
+
});
|
|
25
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
26
|
+
...{ class: "font-semibold mb-4" },
|
|
27
|
+
});
|
|
28
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
29
|
+
...{ class: "relative pl-4 h-max" },
|
|
30
|
+
});
|
|
31
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
32
|
+
...{ class: "absolute left-0 top-0 border-l border-dashed border-chat-haze-400 h-full w-1 mt-2" },
|
|
33
|
+
});
|
|
34
|
+
for (const [year, i] of __VLS_getVForSourceType((__VLS_ctx.checkin))) {
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
[checkin,];
|
|
37
|
+
/** @type {[typeof CollapseCheckIn, typeof CollapseCheckIn, ]} */ ;
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
const __VLS_0 = __VLS_asFunctionalComponent(CollapseCheckIn, new CollapseCheckIn({
|
|
40
|
+
...{ class: "relative" },
|
|
41
|
+
title: (year.year),
|
|
42
|
+
key: (i),
|
|
43
|
+
}));
|
|
44
|
+
const __VLS_1 = __VLS_0({
|
|
45
|
+
...{ class: "relative" },
|
|
46
|
+
title: (year.year),
|
|
47
|
+
key: (i),
|
|
48
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
49
|
+
const { default: __VLS_3 } = __VLS_2.slots;
|
|
50
|
+
for (const [item] of __VLS_getVForSourceType((year.items))) {
|
|
51
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
52
|
+
...{ class: "flex flex-col gap-y-3" },
|
|
53
|
+
key: (item.id),
|
|
54
|
+
});
|
|
55
|
+
/** @type {[typeof CardCustomerDetail, typeof CardCustomerDetail, ]} */ ;
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
const __VLS_4 = __VLS_asFunctionalComponent(CardCustomerDetail, new CardCustomerDetail({}));
|
|
58
|
+
const __VLS_5 = __VLS_4({}, ...__VLS_functionalComponentArgsRest(__VLS_4));
|
|
59
|
+
const { default: __VLS_7 } = __VLS_6.slots;
|
|
60
|
+
{
|
|
61
|
+
const { header: __VLS_8 } = __VLS_6.slots;
|
|
62
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
63
|
+
...{ class: "flex justify-between items-center" },
|
|
64
|
+
});
|
|
65
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
66
|
+
...{ class: "text-chat-haze-600 font-bold" },
|
|
67
|
+
});
|
|
68
|
+
(item.id);
|
|
69
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
70
|
+
...{ class: "font-bold" },
|
|
71
|
+
...{ style: ({ color: __VLS_ctx.Status_Color.Orange }) },
|
|
72
|
+
});
|
|
73
|
+
// @ts-ignore
|
|
74
|
+
[Status_Color,];
|
|
75
|
+
(item.status);
|
|
76
|
+
}
|
|
77
|
+
{
|
|
78
|
+
const { content: __VLS_9 } = __VLS_6.slots;
|
|
79
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
80
|
+
...{ class: "flex justify-between items-center" },
|
|
81
|
+
});
|
|
82
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
83
|
+
...{ class: "text-chat-haze-400 font-normal" },
|
|
84
|
+
});
|
|
85
|
+
(__VLS_ctx.dayjs(item.created_at).format(__VLS_ctx.DATE_FORMATS['DATE_FORMAT']));
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
[dayjs, DATE_FORMATS,];
|
|
88
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
89
|
+
...{ class: "text-chat-success" },
|
|
90
|
+
});
|
|
91
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (item.point_bonus > 0) }, null, null);
|
|
92
|
+
(item.point_bonus);
|
|
93
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
94
|
+
...{ class: "" },
|
|
95
|
+
});
|
|
96
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (!item.point_bonus) }, null, null);
|
|
97
|
+
(item.point_bonus);
|
|
98
|
+
}
|
|
99
|
+
var __VLS_6;
|
|
100
|
+
}
|
|
101
|
+
var __VLS_2;
|
|
102
|
+
}
|
|
103
|
+
/** @type {__VLS_StyleScopedClasses['']} */ ;
|
|
104
|
+
/** @type {__VLS_StyleScopedClasses['chat-padding-page']} */ ;
|
|
105
|
+
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
106
|
+
/** @type {__VLS_StyleScopedClasses['mb-4']} */ ;
|
|
107
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
108
|
+
/** @type {__VLS_StyleScopedClasses['pl-4']} */ ;
|
|
109
|
+
/** @type {__VLS_StyleScopedClasses['h-max']} */ ;
|
|
110
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
111
|
+
/** @type {__VLS_StyleScopedClasses['left-0']} */ ;
|
|
112
|
+
/** @type {__VLS_StyleScopedClasses['top-0']} */ ;
|
|
113
|
+
/** @type {__VLS_StyleScopedClasses['border-l']} */ ;
|
|
114
|
+
/** @type {__VLS_StyleScopedClasses['border-dashed']} */ ;
|
|
115
|
+
/** @type {__VLS_StyleScopedClasses['border-chat-haze-400']} */ ;
|
|
116
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
117
|
+
/** @type {__VLS_StyleScopedClasses['w-1']} */ ;
|
|
118
|
+
/** @type {__VLS_StyleScopedClasses['mt-2']} */ ;
|
|
119
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
120
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
121
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
122
|
+
/** @type {__VLS_StyleScopedClasses['gap-y-3']} */ ;
|
|
123
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
124
|
+
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
125
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
126
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-600']} */ ;
|
|
127
|
+
/** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
|
|
128
|
+
/** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
|
|
129
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
130
|
+
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
131
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
132
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-400']} */ ;
|
|
133
|
+
/** @type {__VLS_StyleScopedClasses['font-normal']} */ ;
|
|
134
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-success']} */ ;
|
|
135
|
+
const __VLS_export = (await import('vue')).defineComponent({});
|
|
136
|
+
export default {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PAGE_RESPONSE } from '../../../types/chat/global';
|
|
2
|
+
type Props = {
|
|
3
|
+
receiverId: any;
|
|
4
|
+
response: PAGE_RESPONSE;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|