@yonus_amire01/chat 2.0.0 → 2.1.0
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/chat.css +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +6853 -77707
- package/dist/types/app/components/ChatPage.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/CallBoard.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/CallMemberDisplay.vue.d.ts +1 -1
- package/dist/types/app/components/call/CallMemberDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/CallPageOverlay.vue.d.ts +1 -1
- package/dist/types/app/components/call/CallPageOverlay.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/paint-board/BoardColorPicker.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/paint-board/BrushSizeSlider.vue.d.ts +1 -1
- package/dist/types/app/components/call/paint-board/BrushSizeSlider.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/paint-board/CallPaintBoard.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatBubble.vue.d.ts +1 -1
- package/dist/types/app/components/chat/ChatBubble.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatInput.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatMessages.vue.d.ts +1 -1
- package/dist/types/app/components/chat/ChatMessages.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatPageBar.vue.d.ts +1 -1
- package/dist/types/app/components/chat/ChatPageBar.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatProfileOverview.vue.d.ts +1 -1
- package/dist/types/app/components/chat/ChatProfileOverview.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatView.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-bubbles/BubbleOptions.vue.d.ts +1 -1
- package/dist/types/app/components/chat/chat-bubbles/BubbleOptions.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-bubbles/FileDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-bubbles/ImageGroupDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-bubbles/VoiceDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-input/AttachementFileDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-input/InputAttachement.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-input/PermissionPopup.vue.d.ts +2 -2
- package/dist/types/app/components/chat/chat-input/PermissionPopup.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-input/VideoRecordDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/contact/ChatContactDisplay.vue.d.ts +1 -1
- package/dist/types/app/components/chat/contact/ChatContactDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/contact/ContactAvatar.vue.d.ts +1 -1
- package/dist/types/app/components/chat/contact/ContactAvatar.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/profile/FileDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/general/LoadingStatus.vue.d.ts +1 -1
- package/dist/types/app/components/general/LoadingStatus.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BIcon.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BInput.vue.d.ts +8 -8
- package/dist/types/app/components/global/BInput.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BLabel.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BMenu.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BModal.vue.d.ts +2 -2
- package/dist/types/app/components/global/BModal.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BPopup.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BSelect.vue.d.ts +1 -1
- package/dist/types/app/components/global/BSelect.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BTab.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BToast.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BVirtualVerticalList.vue.d.ts.map +1 -1
- package/dist/types/app/composables/useDate.d.ts +1 -18
- package/dist/types/app/composables/useDate.d.ts.map +1 -1
- package/dist/types/app/composables/useLocalI18n.d.ts +3 -0
- package/dist/types/app/composables/useLocalI18n.d.ts.map +1 -1
- package/dist/types/app/index.d.ts +6 -2
- package/dist/types/app/index.d.ts.map +1 -1
- package/dist/types/app/stores/callStore.d.ts +13 -49
- package/dist/types/app/stores/callStore.d.ts.map +1 -1
- package/dist/types/app/stores/chatStore.d.ts +25 -39
- package/dist/types/app/stores/chatStore.d.ts.map +1 -1
- package/dist/types/app/stores/mediaStore.d.ts +18 -0
- package/dist/types/app/stores/mediaStore.d.ts.map +1 -0
- package/dist/types/app/stores/messageStores.d.ts +127 -146
- package/dist/types/app/stores/messageStores.d.ts.map +1 -1
- package/dist/types/app/stores/profileStore.d.ts +45 -0
- package/dist/types/app/stores/profileStore.d.ts.map +1 -0
- package/dist/types/app/types/index.d.ts +149 -0
- package/dist/types/app/types/index.d.ts.map +1 -0
- package/dist/types/app/utils/format.d.ts +0 -48
- package/dist/types/app/utils/format.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/types/app/composables/useLocale.d.ts +0 -12
- package/dist/types/app/composables/useLocale.d.ts.map +0 -1
- package/dist/types/app/composables/useTheme.d.ts +0 -4
- package/dist/types/app/composables/useTheme.d.ts.map +0 -1
- package/dist/types/app/composables/useValidation.d.ts +0 -20
- package/dist/types/app/composables/useValidation.d.ts.map +0 -1
- package/dist/types/app/composables/useWindowSize.d.ts +0 -5
- package/dist/types/app/composables/useWindowSize.d.ts.map +0 -1
- package/dist/types/app/types/address.d.ts +0 -26
- package/dist/types/app/types/address.d.ts.map +0 -1
- package/dist/types/app/types/calendar.d.ts +0 -87
- package/dist/types/app/types/calendar.d.ts.map +0 -1
- package/dist/types/app/types/call.d.ts +0 -10
- package/dist/types/app/types/call.d.ts.map +0 -1
- package/dist/types/app/types/chat.d.ts +0 -52
- package/dist/types/app/types/chat.d.ts.map +0 -1
- package/dist/types/app/types/theme.d.ts +0 -11
- package/dist/types/app/types/theme.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageStores.d.ts","sourceRoot":"","sources":["../../../../app/stores/messageStores.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"messageStores.d.ts","sourceRoot":"","sources":["../../../../app/stores/messageStores.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,gBAAgB,EAAa,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAOrG,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAsDO,eAAe;uBA/CvB,gBAAgB;+BAsDR,eAAe;2BAWnB,eAAe;;kCAwBF,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2Bf,MAAM;iBAAW,OAAO,CAAC,OAAO,CAAC;;4BAiEhC,OAAO,EAAE;0BAiDX,MAAM,QAAQ,MAAM;oCA4BrC,MAAM,SAChB,MAAM,aACF,MAAM;iCAvHkB,MAAM;wCAaC,MAAM,WAAW,OAAO;uCASjD,MAAM,aACX,MAAM,WACR,OAAO,CAAC,OAAO,CAAC;;;;;;;;;8BAzDM,MAAM,aAAa,MAAM;oCAqB7C,MAAM,aACN,MAAM,WACR,MAAM,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;4SA6L9B,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ProfileHandlers } from '../types';
|
|
2
|
+
export declare const useProfileStore: import('pinia').StoreDefinition<"profile-store", Pick<{
|
|
3
|
+
setHandlers: (val: ProfileHandlers) => void;
|
|
4
|
+
fetchMedia: (conversationId: string, page?: number, size?: number) => Promise<void>;
|
|
5
|
+
fetchFiles: (conversationId: string, page?: number, size?: number) => Promise<void>;
|
|
6
|
+
clear: (conversationId: string) => void;
|
|
7
|
+
mediaMap: globalThis.Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
8
|
+
filesMap: globalThis.Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
9
|
+
mediaPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
|
|
10
|
+
filesPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
|
|
11
|
+
mediaHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
12
|
+
filesHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
13
|
+
mediaLoading: globalThis.Ref<boolean, boolean>;
|
|
14
|
+
filesLoading: globalThis.Ref<boolean, boolean>;
|
|
15
|
+
pageSize: globalThis.Ref<number, number>;
|
|
16
|
+
}, "mediaMap" | "filesMap" | "mediaPage" | "filesPage" | "mediaHasNextPage" | "filesHasNextPage" | "mediaLoading" | "filesLoading" | "pageSize">, Pick<{
|
|
17
|
+
setHandlers: (val: ProfileHandlers) => void;
|
|
18
|
+
fetchMedia: (conversationId: string, page?: number, size?: number) => Promise<void>;
|
|
19
|
+
fetchFiles: (conversationId: string, page?: number, size?: number) => Promise<void>;
|
|
20
|
+
clear: (conversationId: string) => void;
|
|
21
|
+
mediaMap: globalThis.Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
22
|
+
filesMap: globalThis.Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
23
|
+
mediaPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
|
|
24
|
+
filesPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
|
|
25
|
+
mediaHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
26
|
+
filesHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
27
|
+
mediaLoading: globalThis.Ref<boolean, boolean>;
|
|
28
|
+
filesLoading: globalThis.Ref<boolean, boolean>;
|
|
29
|
+
pageSize: globalThis.Ref<number, number>;
|
|
30
|
+
}, never>, Pick<{
|
|
31
|
+
setHandlers: (val: ProfileHandlers) => void;
|
|
32
|
+
fetchMedia: (conversationId: string, page?: number, size?: number) => Promise<void>;
|
|
33
|
+
fetchFiles: (conversationId: string, page?: number, size?: number) => Promise<void>;
|
|
34
|
+
clear: (conversationId: string) => void;
|
|
35
|
+
mediaMap: globalThis.Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
36
|
+
filesMap: globalThis.Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
37
|
+
mediaPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
|
|
38
|
+
filesPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
|
|
39
|
+
mediaHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
40
|
+
filesHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
41
|
+
mediaLoading: globalThis.Ref<boolean, boolean>;
|
|
42
|
+
filesLoading: globalThis.Ref<boolean, boolean>;
|
|
43
|
+
pageSize: globalThis.Ref<number, number>;
|
|
44
|
+
}, "clear" | "setHandlers" | "fetchMedia" | "fetchFiles">>;
|
|
45
|
+
//# sourceMappingURL=profileStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileStore.d.ts","sourceRoot":"","sources":["../../../../app/stores/profileStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAChB,MAAM,SAAS,CAAC;AAKjB,eAAO,MAAM,eAAe;uBAGA,eAAe;iCAevB,MAAM,SAChB,MAAM,SACN,MAAM;iCAsBI,MAAM,SAChB,MAAM,SACN,MAAM;4BAqBiB,MAAM;;;;;;;;;;;uBA9DX,eAAe;iCAevB,MAAM,SAChB,MAAM,SACN,MAAM;iCAsBI,MAAM,SAChB,MAAM,SACN,MAAM;4BAqBiB,MAAM;;;;;;;;;;;uBA9DX,eAAe;iCAevB,MAAM,SAChB,MAAM,SACN,MAAM;iCAsBI,MAAM,SAChB,MAAM,SACN,MAAM;4BAqBiB,MAAM;;;;;;;;;;0DAwBrC,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
export type ThemeMode = "light" | "dark";
|
|
2
|
+
export interface CallMember extends Contact {
|
|
3
|
+
stream: MediaStream | null;
|
|
4
|
+
isScreenSharing: boolean;
|
|
5
|
+
isCameraOn: boolean;
|
|
6
|
+
isSpeaking: boolean;
|
|
7
|
+
isMuted: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type status = "pending" | "approved" | "rejected" | "expired";
|
|
10
|
+
export type ServicePresence = "online" | "on-site";
|
|
11
|
+
export type UserRoleKey = "user" | "employee" | "business" | "support";
|
|
12
|
+
export type StateKeys = "" | "online" | "ended" | "active";
|
|
13
|
+
export type MessageType = "text" | "image" | "file" | "voice" | "video";
|
|
14
|
+
export interface Message {
|
|
15
|
+
id: string;
|
|
16
|
+
conversationId: string;
|
|
17
|
+
date: Date;
|
|
18
|
+
type: MessageType;
|
|
19
|
+
text?: string;
|
|
20
|
+
imageUrl?: string[];
|
|
21
|
+
fileUrl?: string;
|
|
22
|
+
voiceUrl?: string;
|
|
23
|
+
videoUrl?: string;
|
|
24
|
+
isEdited: boolean;
|
|
25
|
+
senderId: string;
|
|
26
|
+
isSent: boolean;
|
|
27
|
+
isRead: boolean;
|
|
28
|
+
repliedTo?: Message;
|
|
29
|
+
request?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface Contact {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
lastName: string;
|
|
35
|
+
isOnline: boolean;
|
|
36
|
+
lastSeen: Date;
|
|
37
|
+
imageUrl: string;
|
|
38
|
+
nationalCode?: string;
|
|
39
|
+
phoneNumber?: string;
|
|
40
|
+
isActive: boolean;
|
|
41
|
+
birthDate: Date;
|
|
42
|
+
lastMessage?: Message;
|
|
43
|
+
unreadCount?: number;
|
|
44
|
+
serviceType?: "video-call" | "voice-call" | "chat";
|
|
45
|
+
userType: UserRoleKey[];
|
|
46
|
+
}
|
|
47
|
+
export interface ChatFilter {
|
|
48
|
+
key: StateKeys;
|
|
49
|
+
label: string;
|
|
50
|
+
}
|
|
51
|
+
export interface ExtendedMessage extends Message {
|
|
52
|
+
prevMessage?: Message;
|
|
53
|
+
nextMessage?: Message;
|
|
54
|
+
isFirstInDate: boolean;
|
|
55
|
+
contact?: Contact;
|
|
56
|
+
}
|
|
57
|
+
export interface ChatProvider {
|
|
58
|
+
fetchContacts: () => Promise<Contact[]>;
|
|
59
|
+
}
|
|
60
|
+
export type CallKind = "voice-call" | "video-call";
|
|
61
|
+
export type CallSignalEvent = {
|
|
62
|
+
type: "offer";
|
|
63
|
+
callId: string;
|
|
64
|
+
sdp: RTCSessionDescriptionInit;
|
|
65
|
+
} | {
|
|
66
|
+
type: "answer";
|
|
67
|
+
callId: string;
|
|
68
|
+
sdp: RTCSessionDescriptionInit;
|
|
69
|
+
} | {
|
|
70
|
+
type: "ice";
|
|
71
|
+
callId: string;
|
|
72
|
+
candidate: RTCIceCandidateInit;
|
|
73
|
+
} | {
|
|
74
|
+
type: "end";
|
|
75
|
+
callId: string;
|
|
76
|
+
} | {
|
|
77
|
+
type: "join";
|
|
78
|
+
callId: string;
|
|
79
|
+
memberId: string;
|
|
80
|
+
} | {
|
|
81
|
+
type: "leave";
|
|
82
|
+
callId: string;
|
|
83
|
+
memberId: string;
|
|
84
|
+
};
|
|
85
|
+
export interface CallHandlers {
|
|
86
|
+
initiate(conversationId: string, kind: CallKind): Promise<{
|
|
87
|
+
callId: string;
|
|
88
|
+
}>;
|
|
89
|
+
sendOffer(callId: string, sdp: RTCSessionDescriptionInit): Promise<void>;
|
|
90
|
+
sendAnswer(callId: string, sdp: RTCSessionDescriptionInit): Promise<void>;
|
|
91
|
+
sendIce(callId: string, candidate: RTCIceCandidateInit): Promise<void>;
|
|
92
|
+
end(callId: string): Promise<void>;
|
|
93
|
+
onSignal(handler: (e: CallSignalEvent) => void): () => void;
|
|
94
|
+
}
|
|
95
|
+
export interface FetchContactsParams {
|
|
96
|
+
page: number;
|
|
97
|
+
pageSize: number;
|
|
98
|
+
state: StateKeys;
|
|
99
|
+
search?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface ContactsPage {
|
|
102
|
+
data: Contact[];
|
|
103
|
+
hasNextPage: boolean;
|
|
104
|
+
}
|
|
105
|
+
export interface ChatHandlers {
|
|
106
|
+
fetchConversations(params: FetchContactsParams): Promise<ContactsPage>;
|
|
107
|
+
deleteConversation(id: string): Promise<void>;
|
|
108
|
+
}
|
|
109
|
+
export interface MediaDownloadOptions {
|
|
110
|
+
signal?: AbortSignal;
|
|
111
|
+
onProgress?: (percent: number) => void;
|
|
112
|
+
}
|
|
113
|
+
export interface MediaHandlers {
|
|
114
|
+
download(url: string, opts?: MediaDownloadOptions): Promise<Blob>;
|
|
115
|
+
getFileSize(url: string): Promise<number | null>;
|
|
116
|
+
}
|
|
117
|
+
export interface UploadProgressEvent {
|
|
118
|
+
uploaded: number;
|
|
119
|
+
total: number;
|
|
120
|
+
progress: number;
|
|
121
|
+
}
|
|
122
|
+
export interface SendMessageOptions {
|
|
123
|
+
onProgress?: (e: UploadProgressEvent) => void;
|
|
124
|
+
}
|
|
125
|
+
export interface FetchMessagesParams {
|
|
126
|
+
conversationId: string;
|
|
127
|
+
page: number;
|
|
128
|
+
pageSize: number;
|
|
129
|
+
}
|
|
130
|
+
export interface MessagesHandlers {
|
|
131
|
+
sendMessage(msg: Message, opts?: SendMessageOptions): Promise<Message>;
|
|
132
|
+
editMessage(id: string, text: string): Promise<Message>;
|
|
133
|
+
deleteMessages(ids: string[]): Promise<void>;
|
|
134
|
+
fetchMessages(params: FetchMessagesParams): Promise<Message[]>;
|
|
135
|
+
}
|
|
136
|
+
export interface FetchProfileAttachmentsParams {
|
|
137
|
+
conversationId: string;
|
|
138
|
+
page: number;
|
|
139
|
+
pageSize: number;
|
|
140
|
+
}
|
|
141
|
+
export interface ProfileAttachmentsPage {
|
|
142
|
+
data: string[];
|
|
143
|
+
hasNextPage: boolean;
|
|
144
|
+
}
|
|
145
|
+
export interface ProfileHandlers {
|
|
146
|
+
fetchMedia(params: FetchProfileAttachmentsParams): Promise<ProfileAttachmentsPage>;
|
|
147
|
+
fetchFiles(params: FetchProfileAttachmentsParams): Promise<ProfileAttachmentsPage>;
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../app/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEzC,MAAM,WAAW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;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnF,UAAU,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACpF"}
|
|
@@ -1,52 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Formats a number with commas and localized digits based on the current locale.
|
|
3
|
-
* Maps 'fa' to 'fa-IR' to ensure Persian digits (۰۱۲۳) are used.
|
|
4
|
-
* @param value - The number or string to format
|
|
5
|
-
* @param locale - The current i18n locale (e.g., 'fa' or 'en')
|
|
6
|
-
*/
|
|
7
|
-
export declare const formatCurrency: (value: number | string, locale?: string) => string | number;
|
|
8
|
-
/**
|
|
9
|
-
* Converts digits to Persian digits without adding thousands separators.
|
|
10
|
-
* Improved to handle strings with existing commas safely.
|
|
11
|
-
* @param value - The number or string to convert
|
|
12
|
-
*/
|
|
13
|
-
export declare const toPersianNumbers: (value: number | string) => string | number;
|
|
14
|
-
/**
|
|
15
|
-
* Replaces all English digits (0-9) in a string with Persian digits (۰-۹).
|
|
16
|
-
* Preserves leading zeros and non-numeric characters.
|
|
17
|
-
* @param value - The string or number containing digits to convert
|
|
18
|
-
*/
|
|
19
|
-
export declare const replaceDigitsWithPersian: (value: string | number) => string;
|
|
20
|
-
/**
|
|
21
|
-
* جایگزینی تمام اعداد انگلیسی داخل یک رشته با اعداد فارسی بر اساس زبان
|
|
22
|
-
* @param value - رشته یا عددی که باید تبدیل شود
|
|
23
|
-
* @param locale - زبان فعلی (fa یا en)
|
|
24
|
-
*/
|
|
25
1
|
export declare const replaceDigitsByLocale: (value: string | number, locale?: string) => string;
|
|
26
|
-
/**
|
|
27
|
-
* Formats a phone number into a readable standard.
|
|
28
|
-
* Example: 9134168227 -> 913 416 8227
|
|
29
|
-
* @param bytes - The raw string or number
|
|
30
|
-
*/
|
|
31
2
|
export declare const formatBytes: (bytes: number) => string;
|
|
32
|
-
/**
|
|
33
|
-
* Formats a phone number into a readable standard.
|
|
34
|
-
* Example: 9134168227 -> 913 416 8227
|
|
35
|
-
* @param phoneNumber - The raw string or number
|
|
36
|
-
*/
|
|
37
|
-
export declare const formatPhoneNumber: (identifier: string, dir?: string) => string;
|
|
38
|
-
export declare const formatCountdown: (totalSeconds: number) => string;
|
|
39
|
-
/**
|
|
40
|
-
* Formats seconds into HH:MM:SS
|
|
41
|
-
* @param totalSeconds - Total elapsed seconds
|
|
42
|
-
*/
|
|
43
3
|
export declare const formatDuration: (totalSeconds: number) => string;
|
|
44
|
-
/**
|
|
45
|
-
* Formats the start and end time of an event.
|
|
46
|
-
* @param startTime - Start time in HH:mm format
|
|
47
|
-
* @param duration - Duration in minutes
|
|
48
|
-
* @param endDate - Optional end date object
|
|
49
|
-
* @param locale - Current locale
|
|
50
|
-
*/
|
|
51
|
-
export declare const formatEventTimeRange: (startTime: string, duration?: number, endDate?: Date, locale?: string) => string;
|
|
52
4
|
//# sourceMappingURL=format.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../app/utils/format.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../app/utils/format.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,GAChC,OAAO,MAAM,GAAG,MAAM,EACtB,SAAQ,MAAa,KACpB,MAQF,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,WAMxC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,cAAc,MAAM,KAAG,MAYrD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const useLocale: () => {
|
|
2
|
-
locale: {
|
|
3
|
-
value: string;
|
|
4
|
-
};
|
|
5
|
-
languages: globalThis.ComputedRef<any[]>;
|
|
6
|
-
otherLanguages: globalThis.ComputedRef<any[]>;
|
|
7
|
-
currentCountry: globalThis.ComputedRef<any>;
|
|
8
|
-
flagUrl: globalThis.ComputedRef<any>;
|
|
9
|
-
dir: globalThis.ComputedRef<"ltr" | "rtl">;
|
|
10
|
-
switchLocale: (newLocale: string) => Promise<void>;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=useLocale.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLocale.d.ts","sourceRoot":"","sources":["../../../../app/composables/useLocale.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,SAAS;;eAED,MAAM;;;;;;;8BA0Dc,MAAM;CA2B9C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../../app/composables/useTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAM5C,eAAO,MAAM,YAAY,QAAO,KAY/B,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAO,KAM3B,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const useValidation: () => {
|
|
2
|
-
validatePhoneNumber: (val: string) => string | null;
|
|
3
|
-
validateNationalCode: (code: string) => string | null;
|
|
4
|
-
validateName: (text: string, fieldTitle: string) => string | null;
|
|
5
|
-
validateSlug: (text: string, title: string) => string | null;
|
|
6
|
-
passwordSecurityRate: (pass: string) => number;
|
|
7
|
-
checkIsNationalCode: (code: string) => boolean;
|
|
8
|
-
validatePassword: (password: string) => string | null;
|
|
9
|
-
validateAuthIdentifier: (val: string) => string | null;
|
|
10
|
-
validateAddress: (text: string, title: string) => string | null;
|
|
11
|
-
validateEmail: (text: string, fieldTitle?: string) => string | null;
|
|
12
|
-
validateForeignCode: (code: string) => string | null;
|
|
13
|
-
validateRequired: (value: any, fieldTitle: string) => string | null;
|
|
14
|
-
validateBirthDate: (y: string | Date, m?: string, d?: string) => Record<string, string> | null;
|
|
15
|
-
toEnglishNumbers: (str: string) => string;
|
|
16
|
-
validateUrl: (val: string) => string;
|
|
17
|
-
validateWhatsappUrl: (val: string) => string;
|
|
18
|
-
validateSocialUsername: (val: string) => string;
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=useValidation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useValidation.d.ts","sourceRoot":"","sources":["../../../../app/composables/useValidation.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;+BA6RU,MAAM,KAAG,MAAM,GAAG,IAAI;iCA2BpB,MAAM,KAAG,MAAM,GAAG,IAAI;yBA1R9B,MAAM,cAAc,MAAM,KAAG,MAAM,GAAG,IAAI;yBAiO1C,MAAM,SAAS,MAAM,KAAG,MAAM,GAAG,IAAI;iCA0B7B,MAAM;gCA1GP,MAAM,KAAG,OAAO;iCAkCf,MAAM,KAAG,MAAM,GAAG,IAAI;kCArBrB,MAAM,KAAG,MAAM,GAAG,IAAI;4BA2D5B,MAAM,SAAS,MAAM,KAAG,MAAM,GAAG,IAAI;0BApBvC,MAAM,eAAe,MAAM,KAAG,MAAM,GAAG,IAAI;gCASrC,MAAM,KAAG,MAAM,GAAG,IAAI;8BAsFxB,GAAG,cAAc,MAAM,KAAG,MAAM,GAAG,IAAI;2BA9QnE,MAAM,GAAG,IAAI,MACZ,MAAM,MACN,MAAM,KACT,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;4BAtCD,MAAM,KAAG,MAAM;uBA2UzB,MAAM;+BAEE,MAAM;kCAEH,MAAM;CAGvC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useWindowSize.d.ts","sourceRoot":"","sources":["../../../../app/composables/useWindowSize.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;CAmBzB,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface Address {
|
|
2
|
-
id: number;
|
|
3
|
-
date: String;
|
|
4
|
-
longitude: String;
|
|
5
|
-
latitude: String;
|
|
6
|
-
title: String;
|
|
7
|
-
path: String;
|
|
8
|
-
postalCode: String;
|
|
9
|
-
cityId: number;
|
|
10
|
-
provinceId: number;
|
|
11
|
-
isMain: Boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface Province {
|
|
14
|
-
id: number;
|
|
15
|
-
name: string;
|
|
16
|
-
}
|
|
17
|
-
export interface City {
|
|
18
|
-
id: number;
|
|
19
|
-
name: string;
|
|
20
|
-
}
|
|
21
|
-
export interface ProvinceWithCities {
|
|
22
|
-
id: number;
|
|
23
|
-
name: string;
|
|
24
|
-
cities: City[];
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=address.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../../app/types/address.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,IAAI,EAAE,CAAA;CACf"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { Contact } from './chat';
|
|
2
|
-
export type ShareTypes = "viewer" | "owner" | "editor";
|
|
3
|
-
export type EventCategory = "task" | "medicine" | "event" | "service";
|
|
4
|
-
export type RepetitionCycleType = "day" | "hour" | "custom";
|
|
5
|
-
export type RepetitionEndType = "date" | "times";
|
|
6
|
-
export type CalendarBusPayload = {
|
|
7
|
-
type: "delete";
|
|
8
|
-
id: number;
|
|
9
|
-
} | {
|
|
10
|
-
type: "edit-event";
|
|
11
|
-
event: CalendarEventPayload;
|
|
12
|
-
} | {
|
|
13
|
-
type: "share-event";
|
|
14
|
-
event: CalendarEventPayload;
|
|
15
|
-
} | {
|
|
16
|
-
type: "share-calendar";
|
|
17
|
-
} | {
|
|
18
|
-
type: "update-event-access-master";
|
|
19
|
-
eventId: number;
|
|
20
|
-
userId: number;
|
|
21
|
-
newAccess: any;
|
|
22
|
-
} | {
|
|
23
|
-
type: "remove-event-access-master";
|
|
24
|
-
eventId: number;
|
|
25
|
-
userId: number;
|
|
26
|
-
} | {
|
|
27
|
-
type: "add-event-access-master";
|
|
28
|
-
eventId: number;
|
|
29
|
-
record: any;
|
|
30
|
-
} | {
|
|
31
|
-
type: "remove-event-user-ui";
|
|
32
|
-
id: number;
|
|
33
|
-
};
|
|
34
|
-
export interface EventChecklistItem {
|
|
35
|
-
id?: number;
|
|
36
|
-
text: string;
|
|
37
|
-
isChecked: boolean;
|
|
38
|
-
}
|
|
39
|
-
export interface EventRepetitionConfig {
|
|
40
|
-
repetitionStart: string | Date;
|
|
41
|
-
repetitionType: RepetitionCycleType;
|
|
42
|
-
repeatTimeCycle: number;
|
|
43
|
-
selectedDays?: number[];
|
|
44
|
-
wholeDay: boolean;
|
|
45
|
-
chosenTime: string;
|
|
46
|
-
isReminder: boolean;
|
|
47
|
-
selectedReminder?: number;
|
|
48
|
-
repeatitionEnd: RepetitionEndType;
|
|
49
|
-
repetitionAmount: string | number;
|
|
50
|
-
}
|
|
51
|
-
export interface CalendarEventPayload {
|
|
52
|
-
id?: number;
|
|
53
|
-
eventType: EventCategory;
|
|
54
|
-
title: string;
|
|
55
|
-
description: string;
|
|
56
|
-
selectedUsers?: number[] | Contact[];
|
|
57
|
-
attachement?: string;
|
|
58
|
-
color?: string;
|
|
59
|
-
checkList?: EventChecklistItem[];
|
|
60
|
-
date: string | Date;
|
|
61
|
-
time: string;
|
|
62
|
-
isFullDay: boolean;
|
|
63
|
-
hasRepetition: boolean;
|
|
64
|
-
repetition?: EventRepetitionConfig;
|
|
65
|
-
endDate?: Date;
|
|
66
|
-
duration?: number;
|
|
67
|
-
accesss?: EventAccess[];
|
|
68
|
-
}
|
|
69
|
-
export interface EventAccess {
|
|
70
|
-
id: number;
|
|
71
|
-
user: Contact;
|
|
72
|
-
accessType: ShareTypes;
|
|
73
|
-
}
|
|
74
|
-
export interface CalendarAccess extends Contact {
|
|
75
|
-
accessType: ShareTypes;
|
|
76
|
-
}
|
|
77
|
-
export interface CalendarSettingsPayload {
|
|
78
|
-
calendar: "jalaali" | "georgian" | "islamic";
|
|
79
|
-
startOfWeek: string;
|
|
80
|
-
timeZone: string;
|
|
81
|
-
showHolidays: boolean;
|
|
82
|
-
showAi: boolean;
|
|
83
|
-
showMedicine: boolean;
|
|
84
|
-
showServices: boolean;
|
|
85
|
-
showTasks: boolean;
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../../app/types/calendar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AACvD,MAAM,MAAM,aAAa,GAAG,MAAM,GA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AAE,OAAO,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Contact } from './chat';
|
|
2
|
-
export interface CallMember extends Contact {
|
|
3
|
-
stream: MediaStream | null;
|
|
4
|
-
isScreenSharing: boolean;
|
|
5
|
-
isCameraOn: boolean;
|
|
6
|
-
isSpeaking: boolean;
|
|
7
|
-
isMuted: boolean;
|
|
8
|
-
}
|
|
9
|
-
export type CallKind = "voice-call" | "video-call";
|
|
10
|
-
//# sourceMappingURL=call.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../../app/types/call.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,WAAW,UAAW,SAAQ,OAAO;IACzC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export type status = "pending" | "approved" | "rejected" | "expired";
|
|
2
|
-
export type ServicePresence = "online" | "on-site";
|
|
3
|
-
export type UserRoleKey = "user" | "employee" | "business" | "support";
|
|
4
|
-
export type StateKeys = "" | "online" | "ended" | "active";
|
|
5
|
-
export type MessageType = "text" | "image" | "file" | "voice" | "video";
|
|
6
|
-
export interface Message {
|
|
7
|
-
id: string;
|
|
8
|
-
conversationId: string;
|
|
9
|
-
date: Date;
|
|
10
|
-
type: MessageType;
|
|
11
|
-
text?: string;
|
|
12
|
-
imageUrl?: string[];
|
|
13
|
-
fileUrl?: string;
|
|
14
|
-
voiceUrl?: string;
|
|
15
|
-
videoUrl?: string;
|
|
16
|
-
isEdited: boolean;
|
|
17
|
-
senderId: string;
|
|
18
|
-
isSent: boolean;
|
|
19
|
-
isRead: boolean;
|
|
20
|
-
repliedTo?: Message;
|
|
21
|
-
request?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface Contact {
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
lastName: string;
|
|
27
|
-
isOnline: boolean;
|
|
28
|
-
lastSeen: Date;
|
|
29
|
-
imageUrl: string;
|
|
30
|
-
nationalCode?: string;
|
|
31
|
-
phoneNumber?: string;
|
|
32
|
-
isActive: boolean;
|
|
33
|
-
birthDate: Date;
|
|
34
|
-
lastMessage?: Message;
|
|
35
|
-
unreadCount?: number;
|
|
36
|
-
serviceType?: "video-call" | "voice-call" | "chat";
|
|
37
|
-
userType: UserRoleKey[];
|
|
38
|
-
}
|
|
39
|
-
export interface ChatFilter {
|
|
40
|
-
key: StateKeys;
|
|
41
|
-
label: string;
|
|
42
|
-
}
|
|
43
|
-
export interface ExtendedMessage extends Message {
|
|
44
|
-
prevMessage?: Message;
|
|
45
|
-
nextMessage?: Message;
|
|
46
|
-
isFirstInDate: boolean;
|
|
47
|
-
contact?: Contact;
|
|
48
|
-
}
|
|
49
|
-
export interface ChatProvider {
|
|
50
|
-
fetchContacts: () => Promise<Contact[]>;
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../../app/types/chat.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;AACrE,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,SAAS,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;AACvE,MAAM,MAAM,SAAS,GAAG,EAAE,GAAG,QAAQ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,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAgB,SAAQ,OAAO;IAC9C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;CACzC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
export type ThemeMode = "light" | "dark";
|
|
3
|
-
export type ColorModeInstance = Ref<ThemeMode> & {
|
|
4
|
-
preference: ThemeMode;
|
|
5
|
-
value: ThemeMode;
|
|
6
|
-
};
|
|
7
|
-
export type Theme = {
|
|
8
|
-
mode: ColorModeInstance | any;
|
|
9
|
-
toggleMode: () => void;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../app/types/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEzC,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG;IAC/C,UAAU,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,iBAAiB,GAAG,GAAG,CAAC;IAC9B,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC"}
|