@mobilon-dev/chotto 0.3.120 → 0.3.121

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.
Files changed (222) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +29 -4
  3. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +40 -59
  4. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +47 -4
  5. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +55 -82
  6. package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +86 -51
  7. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +32 -4
  8. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +7 -28
  9. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +22 -35
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +30 -2
  11. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +37 -4
  12. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +7 -21
  13. package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +30 -19
  14. package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +70 -4
  15. package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +76 -108
  16. package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
  17. package/dist/components/1_icons/CheckIcon.vue.js +26 -13
  18. package/dist/components/1_icons/CloseButtonIcon.vue.js +16 -10
  19. package/dist/components/1_icons/CloseIcon.vue.js +16 -10
  20. package/dist/components/1_icons/ContactCRMIcon.vue.js +16 -10
  21. package/dist/components/1_icons/DeletedMessageIcon.vue.js +27 -0
  22. package/dist/components/1_icons/MenuIcon.vue.js +16 -10
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
  24. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
  26. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
  28. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
  30. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
  32. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
  33. package/dist/components/1_icons/SearchIcon.vue.js +29 -17
  34. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  35. package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
  36. package/dist/components/1_icons/VerifiedBadge.vue.js +25 -19
  37. package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
  38. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +552 -402
  39. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
  40. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
  41. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
  42. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
  43. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +19 -13
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  49. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
  50. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
  51. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
  52. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
  53. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +74 -4
  54. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +12 -46
  55. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
  56. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
  57. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
  58. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
  59. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
  60. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +62 -4
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +80 -98
  63. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
  64. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
  67. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
  68. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
  69. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +76 -45
  70. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +100 -4
  71. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +16 -91
  72. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +79 -4
  73. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +88 -111
  74. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
  75. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
  76. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
  77. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
  78. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
  79. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
  80. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
  81. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
  82. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
  83. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
  84. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
  85. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +32 -58
  86. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
  87. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
  88. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
  89. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
  90. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
  91. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +41 -35
  92. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
  93. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +143 -323
  94. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
  95. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
  96. package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
  97. package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
  98. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
  99. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
  100. package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
  101. package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
  102. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
  103. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +36 -68
  104. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +71 -37
  105. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +83 -62
  106. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
  107. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
  108. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
  109. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
  110. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
  111. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +22 -42
  112. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +460 -4
  113. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +181 -499
  114. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
  115. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
  116. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
  117. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
  118. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
  119. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
  120. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
  121. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
  122. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
  123. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
  124. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
  125. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
  127. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  128. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
  129. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +47 -4
  131. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +37 -46
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
  133. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
  135. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
  136. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue.js +52 -4
  137. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +16 -39
  138. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +270 -4
  139. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +95 -274
  140. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +409 -4
  141. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +143 -422
  142. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
  143. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
  144. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +57 -4
  145. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +41 -69
  146. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +97 -4
  147. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +102 -173
  148. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
  149. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
  150. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
  151. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
  152. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
  153. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
  154. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
  155. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
  156. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
  157. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
  158. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
  159. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
  160. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
  161. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
  162. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
  163. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
  164. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
  165. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
  166. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
  167. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
  168. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
  169. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +34 -118
  170. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
  171. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
  172. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +94 -4
  173. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -76
  174. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
  175. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
  176. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +348 -4
  177. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +97 -339
  178. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
  179. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  180. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +308 -4
  181. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +89 -299
  182. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
  183. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
  184. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +321 -4
  185. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +96 -338
  186. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
  187. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
  188. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +36 -19
  189. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
  190. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
  191. package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
  192. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
  193. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
  194. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
  195. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
  196. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
  197. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
  198. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +170 -4
  199. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +239 -336
  200. package/dist/components/3_compounds/ChatInput/icons/ArrowIcon.vue.js +43 -25
  201. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
  202. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
  203. package/dist/components/3_compounds/ChatList/ChatList.vue.js +256 -166
  204. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +57 -39
  205. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  206. package/dist/components/3_compounds/Feed/Feed.vue.js +185 -4
  207. package/dist/components/3_compounds/Feed/Feed.vue2.js +161 -305
  208. package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
  209. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
  210. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  211. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
  212. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
  213. package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
  214. package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
  215. package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +33 -18
  216. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +90 -59
  217. package/dist/types/src/apps/data/chats.d.ts +9 -2
  218. package/dist/types/src/components/2_chatlist_elements/ChatItem/stories/ChatItem.stories.d.ts +1 -0
  219. package/dist/types/src/components/2_chatlist_elements/ChatItem/types.d.ts +2 -0
  220. package/package.json +1 -1
  221. package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +0 -21
  222. /package/dist/types/src/components/{2_feed_elements/DeletedMessageContent/icons → 1_icons}/DeletedMessageIcon.vue.d.ts +0 -0
@@ -1,37 +1,24 @@
1
- import { defineComponent as g, inject as d, computed as m, createElementBlock as c, unref as h, openBlock as l, toDisplayString as v } from "vue";
2
- import { useEmojiNative as E } from "../../../hooks/useEmojiNative.js";
3
- /* empty css */
4
- /* empty css */
5
- import "../../../locale/useLocale.js";
6
- /* empty css */
7
- import "../../../node_modules/linkifyjs/dist/linkify.js";
8
- import "../../../node_modules/linkify-string/dist/linkify-string.js";
9
- import "../../../functions/parseMarkdown.js";
10
- import { hasAppleEmojiImage as k, getAppleEmojiUrl as _, getAppleEmojiFallbackUrl as y } from "../../../functions/renderAppleEmojis.js";
11
- const A = ["src", "alt"], I = { key: 1 }, G = /* @__PURE__ */ g({
12
- __name: "EmojiGlyph",
13
- props: {
14
- emoji: {
15
- type: String,
16
- required: !0
17
- }
18
- },
19
- setup(o) {
20
- const e = o, n = d("chatAppId", ""), { isNative: s, emojiSrc: t } = E(n), p = m(() => k(e.emoji, t.value)), u = m(() => _(e.emoji, t.value)), j = m(() => y(e.emoji, t.value));
21
- function f(a) {
22
- const r = a.target, i = j.value;
23
- i && r.src !== i && (r.src = i);
24
- }
25
- return (a, r) => !h(s) && p.value ? (l(), c("img", {
26
- key: 0,
27
- class: "chotto-emoji",
28
- src: u.value,
29
- alt: o.emoji,
30
- draggable: "false",
31
- onError: f
32
- }, null, 40, A)) : (l(), c("span", I, v(o.emoji), 1));
33
- }
34
- });
1
+ import c from "./EmojiGlyph.vue2.js";
2
+ import { createElementBlock as r, openBlock as t, toDisplayString as s } from "vue";
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = ["src", "alt"], m = { key: 1 };
5
+ function n(l, _, e, o, p, f) {
6
+ return !o.isNative && o.hasImage ? (t(), r("img", {
7
+ key: 0,
8
+ class: "chotto-emoji",
9
+ src: o.src,
10
+ alt: e.emoji,
11
+ draggable: "false",
12
+ onError: o.onImgError
13
+ }, null, 40, i)) : (t(), r(
14
+ "span",
15
+ m,
16
+ s(e.emoji),
17
+ 1
18
+ /* TEXT */
19
+ ));
20
+ }
21
+ const g = /* @__PURE__ */ a(c, [["render", n], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/1_atoms/EmojiGlyph/EmojiGlyph.vue"]]);
35
22
  export {
36
- G as default
23
+ g as default
37
24
  };
@@ -1,4 +1,32 @@
1
- import f from "./EmojiGlyph.vue.js";
1
+ import { defineComponent as _, inject as d, computed as r } from "vue";
2
+ import { useEmojiNative as g } from "../../../hooks/useEmojiNative.js";
3
+ /* empty css */
4
+ /* empty css */
5
+ import "../../../locale/useLocale.js";
6
+ /* empty css */
7
+ import "../../../node_modules/linkifyjs/dist/linkify.js";
8
+ import "../../../node_modules/linkify-string/dist/linkify-string.js";
9
+ import "../../../functions/parseMarkdown.js";
10
+ import { hasAppleEmojiImage as v, getAppleEmojiUrl as E, getAppleEmojiFallbackUrl as b } from "../../../functions/renderAppleEmojis.js";
11
+ const C = /* @__PURE__ */ _({
12
+ __name: "EmojiGlyph",
13
+ props: {
14
+ emoji: {
15
+ type: String,
16
+ required: !0
17
+ }
18
+ },
19
+ setup(c, { expose: s }) {
20
+ s();
21
+ const e = c, i = d("chatAppId", ""), { isNative: n, emojiSrc: t } = g(i), l = r(() => v(e.emoji, t.value)), u = r(() => E(e.emoji, t.value)), p = r(() => b(e.emoji, t.value));
22
+ function f(j) {
23
+ const a = j.target, o = p.value;
24
+ o && a.src !== o && (a.src = o);
25
+ }
26
+ const m = { props: e, chatAppId: i, isNative: n, emojiSrc: t, hasImage: l, src: u, fallbackSrc: p, onImgError: f };
27
+ return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
28
+ }
29
+ });
2
30
  export {
3
- f as default
31
+ C as default
4
32
  };
@@ -1,7 +1,40 @@
1
- import o from "./LinkPreview.vue2.js";
1
+ import r from "./LinkPreview.vue2.js";
2
+ import { createElementBlock as n, openBlock as o, createElementVNode as i, toDisplayString as t } from "vue";
2
3
  /* empty css */
3
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e9834d72"]]);
4
+ import s from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ const c = { class: "link-preview" }, _ = { class: "link-preview__container" }, l = ["href"], a = { class: "link-preview__title" }, v = { class: "link-preview__description" }, d = ["src", "alt"];
6
+ function k(p, m, e, w, f, h) {
7
+ return o(), n("div", c, [
8
+ i("div", _, [
9
+ i("a", {
10
+ class: "link-preview__link-container",
11
+ href: e.linkPreview.url,
12
+ target: "_blank"
13
+ }, [
14
+ i(
15
+ "p",
16
+ a,
17
+ t(e.linkPreview.title),
18
+ 1
19
+ /* TEXT */
20
+ ),
21
+ i(
22
+ "p",
23
+ v,
24
+ t(e.linkPreview.description),
25
+ 1
26
+ /* TEXT */
27
+ ),
28
+ i("img", {
29
+ class: "link-preview__image",
30
+ src: e.linkPreview.imageUrl,
31
+ alt: e.linkPreview.title
32
+ }, null, 8, d)
33
+ ], 8, l)
34
+ ])
35
+ ]);
36
+ }
37
+ const L = /* @__PURE__ */ s(r, [["render", k], ["__scopeId", "data-v-81eeb7f4"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/1_atoms/LinkPreview/LinkPreview.vue"]]);
5
38
  export {
6
- m as default
39
+ L as default
7
40
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as n, createElementBlock as l, openBlock as r, createElementVNode as i, toDisplayString as t } from "vue";
2
- const s = { class: "link-preview" }, c = { class: "link-preview__container" }, o = ["href"], a = { class: "link-preview__title" }, _ = { class: "link-preview__description" }, k = ["src", "alt"], p = /* @__PURE__ */ n({
1
+ import { defineComponent as t } from "vue";
2
+ const _ = /* @__PURE__ */ t({
3
3
  __name: "LinkPreview",
4
4
  props: {
5
5
  linkPreview: {
@@ -7,26 +7,12 @@ const s = { class: "link-preview" }, c = { class: "link-preview__container" }, o
7
7
  required: !0
8
8
  }
9
9
  },
10
- setup(e) {
11
- return (v, d) => (r(), l("div", s, [
12
- i("div", c, [
13
- i("a", {
14
- class: "link-preview__link-container",
15
- href: e.linkPreview.url,
16
- target: "_blank"
17
- }, [
18
- i("p", a, t(e.linkPreview.title), 1),
19
- i("p", _, t(e.linkPreview.description), 1),
20
- i("img", {
21
- class: "link-preview__image",
22
- src: e.linkPreview.imageUrl,
23
- alt: e.linkPreview.title
24
- }, null, 8, k)
25
- ], 8, o)
26
- ])
27
- ]));
10
+ setup(n, { expose: r }) {
11
+ r();
12
+ const e = {};
13
+ return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
28
14
  }
29
15
  });
30
16
  export {
31
- p as default
17
+ _ as default
32
18
  };
@@ -1,7 +1,7 @@
1
- import { computed as o, createElementBlock as i, createCommentVNode as l, openBlock as r, normalizeClass as d, createStaticVNode as c } from "vue";
1
+ import { computed as i, createElementBlock as c, createCommentVNode as d, openBlock as n, normalizeClass as l, createStaticVNode as p } from "vue";
2
2
  /* empty css */
3
- import p from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const _ = ["width", "height"], v = {
3
+ import _ from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const v = {
5
5
  __name: "LoadingIndicator",
6
6
  props: {
7
7
  isLoading: {
@@ -11,35 +11,46 @@ const _ = ["width", "height"], v = {
11
11
  size: {
12
12
  type: String,
13
13
  default: "normal",
14
- validator: (t) => ["normal", "small"].includes(t)
14
+ validator: (a) => ["normal", "small"].includes(a)
15
15
  },
16
16
  position: {
17
17
  type: String,
18
18
  default: "center",
19
- validator: (t) => ["center", "top"].includes(t)
19
+ validator: (a) => ["center", "top"].includes(a)
20
20
  }
21
21
  },
22
- setup(t) {
23
- const a = t, s = o(() => a.size === "small" ? "36px" : "120px"), n = o(() => a.size === "small" ? "35px" : "116px");
24
- return (x, e) => t.isLoading ? (r(), i("div", {
22
+ setup(a, { expose: e }) {
23
+ e();
24
+ const t = a, o = i(() => t.size === "small" ? "36px" : "120px"), s = i(() => t.size === "small" ? "35px" : "116px"), r = { props: t, svgWidth: o, svgHeight: s, computed: i };
25
+ return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
26
+ }
27
+ }, f = ["width", "height"];
28
+ function u(a, e, t, o, s, r) {
29
+ return t.isLoading ? (n(), c(
30
+ "div",
31
+ {
25
32
  key: 0,
26
- class: d([
33
+ class: l([
27
34
  "loading-indicator",
28
35
  { "loading-indicator--small": t.size === "small" }
29
36
  ])
30
- }, [
31
- (r(), i("svg", {
32
- width: s.value,
33
- height: n.value,
37
+ },
38
+ [
39
+ (n(), c("svg", {
40
+ width: o.svgWidth,
41
+ height: o.svgHeight,
34
42
  viewBox: "-8 -8 120 116",
35
43
  fill: "none",
36
44
  xmlns: "http://www.w3.org/2000/svg"
37
45
  }, [...e[0] || (e[0] = [
38
- c('<circle class="dot dot-1" cx="84.71" cy="43.91" r="12.18" stroke="url(#paint0_linear_10781_5111)" data-v-53892888></circle><circle class="dot dot-2" cx="73.05" cy="82.12" r="12.18" stroke="url(#paint1_linear_10781_5111)" data-v-53892888></circle><circle class="dot dot-3" cx="32.24" cy="82.12" r="12.18" stroke="url(#paint2_linear_10781_5111)" data-v-53892888></circle><circle class="dot dot-4" cx="19.29" cy="43.91" r="12.18" stroke="url(#paint3_linear_10781_5111)" data-v-53892888></circle><circle class="dot dot-5" cx="52.76" cy="19.29" r="12.18" stroke="url(#paint4_linear_10781_5111)" data-v-53892888></circle><defs data-v-53892888><linearGradient id="paint0_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-53892888><stop stop-color="#426CFF" data-v-53892888></stop><stop offset="1" stop-color="#734AFD" data-v-53892888></stop></linearGradient><linearGradient id="paint1_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-53892888><stop stop-color="#426CFF" data-v-53892888></stop><stop offset="1" stop-color="#734AFD" data-v-53892888></stop></linearGradient><linearGradient id="paint2_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-53892888><stop stop-color="#426CFF" data-v-53892888></stop><stop offset="1" stop-color="#734AFD" data-v-53892888></stop></linearGradient><linearGradient id="paint3_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-53892888><stop stop-color="#426CFF" data-v-53892888></stop><stop offset="1" stop-color="#734AFD" data-v-53892888></stop></linearGradient><linearGradient id="paint4_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-53892888><stop stop-color="#426CFF" data-v-53892888></stop><stop offset="1" stop-color="#734AFD" data-v-53892888></stop></linearGradient></defs>', 6)
39
- ])], 8, _))
40
- ], 2)) : l("", !0);
41
- }
42
- }, m = /* @__PURE__ */ p(v, [["__scopeId", "data-v-53892888"]]);
46
+ p('<circle class="dot dot-1" cx="84.71" cy="43.91" r="12.18" stroke="url(#paint0_linear_10781_5111)" data-v-894a78ac></circle><circle class="dot dot-2" cx="73.05" cy="82.12" r="12.18" stroke="url(#paint1_linear_10781_5111)" data-v-894a78ac></circle><circle class="dot dot-3" cx="32.24" cy="82.12" r="12.18" stroke="url(#paint2_linear_10781_5111)" data-v-894a78ac></circle><circle class="dot dot-4" cx="19.29" cy="43.91" r="12.18" stroke="url(#paint3_linear_10781_5111)" data-v-894a78ac></circle><circle class="dot dot-5" cx="52.76" cy="19.29" r="12.18" stroke="url(#paint4_linear_10781_5111)" data-v-894a78ac></circle><defs data-v-894a78ac><linearGradient id="paint0_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-894a78ac><stop stop-color="#426CFF" data-v-894a78ac></stop><stop offset="1" stop-color="#734AFD" data-v-894a78ac></stop></linearGradient><linearGradient id="paint1_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-894a78ac><stop stop-color="#426CFF" data-v-894a78ac></stop><stop offset="1" stop-color="#734AFD" data-v-894a78ac></stop></linearGradient><linearGradient id="paint2_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-894a78ac><stop stop-color="#426CFF" data-v-894a78ac></stop><stop offset="1" stop-color="#734AFD" data-v-894a78ac></stop></linearGradient><linearGradient id="paint3_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-894a78ac><stop stop-color="#426CFF" data-v-894a78ac></stop><stop offset="1" stop-color="#734AFD" data-v-894a78ac></stop></linearGradient><linearGradient id="paint4_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-894a78ac><stop stop-color="#426CFF" data-v-894a78ac></stop><stop offset="1" stop-color="#734AFD" data-v-894a78ac></stop></linearGradient></defs>', 6)
47
+ ])], 8, f))
48
+ ],
49
+ 2
50
+ /* CLASS */
51
+ )) : d("v-if", !0);
52
+ }
53
+ const y = /* @__PURE__ */ _(v, [["render", u], ["__scopeId", "data-v-894a78ac"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/1_atoms/LoadingIndicator/LoadingIndicator.vue"]]);
43
54
  export {
44
- m as default
55
+ y as default
45
56
  };
@@ -1,7 +1,73 @@
1
- import o from "./Tooltip.vue2.js";
1
+ import s from "./Tooltip.vue2.js";
2
+ import { createElementBlock as t, openBlock as o, Fragment as r, createElementVNode as d, createBlock as c, renderSlot as a, Teleport as m, createVNode as h, Transition as p, withCtx as _, createCommentVNode as f, renderList as v, normalizeStyle as T, normalizeClass as y, createTextVNode as g, toDisplayString as u } from "vue";
2
3
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-11bc5009"]]);
4
+ import k from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ const C = { key: 0 }, S = ["data-theme"];
6
+ function B(l, E, M, e, N, V) {
7
+ return o(), t(
8
+ r,
9
+ null,
10
+ [
11
+ d(
12
+ "div",
13
+ {
14
+ ref: "container",
15
+ class: "tooltip-wrapper",
16
+ onMouseenter: e.handleTriggerEnter,
17
+ onMouseleave: e.handleTriggerLeave
18
+ },
19
+ [
20
+ a(l.$slots, "default", {}, void 0, !0)
21
+ ],
22
+ 544
23
+ /* NEED_HYDRATION, NEED_PATCH */
24
+ ),
25
+ (o(), c(m, { to: "body" }, [
26
+ h(p, null, {
27
+ default: _(() => [
28
+ e.show && e.hasTooltipBody ? (o(), t("div", C, [
29
+ (o(!0), t(
30
+ r,
31
+ null,
32
+ v(e.displayItems, (n, i) => (o(), t("span", {
33
+ key: `${n}-${i}`,
34
+ ref_for: !0,
35
+ ref: "tooltipItems",
36
+ "data-theme": e.getTheme().theme ? e.getTheme().theme : "light",
37
+ class: y(e.tooltipClasses),
38
+ style: T(e.tooltipStyle),
39
+ onMouseenter: e.handleTooltipEnter,
40
+ onMouseleave: e.handleTooltipLeave
41
+ }, [
42
+ e.hasContentSlot ? a(l.$slots, "content", { key: 0 }, void 0, !0) : (o(), t(
43
+ r,
44
+ { key: 1 },
45
+ [
46
+ g(
47
+ u(n),
48
+ 1
49
+ /* TEXT */
50
+ )
51
+ ],
52
+ 64
53
+ /* STABLE_FRAGMENT */
54
+ ))
55
+ ], 46, S))),
56
+ 128
57
+ /* KEYED_FRAGMENT */
58
+ ))
59
+ ])) : f("v-if", !0)
60
+ ]),
61
+ _: 3
62
+ /* FORWARDED */
63
+ })
64
+ ]))
65
+ ],
66
+ 64
67
+ /* STABLE_FRAGMENT */
68
+ );
69
+ }
70
+ const z = /* @__PURE__ */ k(s, [["render", B], ["__scopeId", "data-v-01043e04"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/1_atoms/Tooltip/Tooltip.vue"]]);
5
71
  export {
6
- _ as default
72
+ z as default
7
73
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as nt, inject as ut, useSlots as ft, ref as u, computed as s, onMounted as st, onUnmounted as ct, createElementBlock as h, openBlock as c, Fragment as C, createElementVNode as ht, createBlock as mt, renderSlot as W, Teleport as pt, createVNode as vt, Transition as gt, withCtx as dt, createCommentVNode as Tt, renderList as yt, normalizeStyle as wt, normalizeClass as xt, unref as M, createTextVNode as _t, toDisplayString as St, nextTick as L } from "vue";
2
- import { useTheme as kt } from "../../../hooks/useTheme.js";
1
+ import { defineComponent as rt, inject as at, useSlots as nt, ref as f, computed as c, onMounted as ft, onUnmounted as ut, nextTick as M, unref as ct } from "vue";
2
+ import { useTheme as st } from "../../../hooks/useTheme.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import "../../../locale/useLocale.js";
@@ -7,7 +7,7 @@ import "../../../locale/useLocale.js";
7
7
  import "../../../node_modules/linkifyjs/dist/linkify.js";
8
8
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
9
9
  import "../../../functions/parseMarkdown.js";
10
- const Ct = { key: 0 }, Mt = ["data-theme"], Lt = 6, At = 120, Vt = /* @__PURE__ */ nt({
10
+ const j = 6, H = 120, xt = /* @__PURE__ */ rt({
11
11
  __name: "Tooltip",
12
12
  props: {
13
13
  text: {
@@ -53,153 +53,121 @@ const Ct = { key: 0 }, Mt = ["data-theme"], Lt = 6, At = 120, Vt = /* @__PURE__
53
53
  default: () => ({})
54
54
  }
55
55
  },
56
- setup(R, { expose: V }) {
57
- const y = ut("chatAppId"), { getTheme: A } = kt(y), H = ft(), w = u(), m = u([]), f = u(!1), p = u(null), n = u(null), r = u(null), v = u(!1), g = u(!1), e = R, x = s(() => typeof H.content == "function"), j = s(() => ({
56
+ setup(N, { expose: $ }) {
57
+ const v = at("chatAppId"), { getTheme: q } = st(v), E = nt(), y = f(), g = f([]), u = f(!1), s = f(null), n = f(null), l = f(null), p = f(!1), h = f(!1), e = N, w = c(() => typeof E.content == "function"), G = c(() => ({
58
58
  tooltip__text: !0,
59
59
  [`tooltip--${e.position}`]: !0
60
- })), q = s(() => ({
60
+ })), K = c(() => ({
61
61
  maxWidth: e.maxWidth || void 0,
62
62
  ...e.bubbleStyle
63
- })), E = s(() => {
63
+ })), x = c(() => {
64
64
  const t = Array.isArray(e.texts) ? e.texts.map((o) => String(o ?? "").trim()).filter(Boolean) : [];
65
65
  return t.length > 0 ? t : e.text ? [e.text] : [];
66
- }), z = s(() => x.value ? ["__content__"] : E.value), F = s(() => x.value ? !0 : E.value.length > 0), G = (t, o) => {
67
- const l = o.left < 0 ? o.left : 0, i = o.top < 0 ? o.top : 0;
66
+ }), U = c(() => w.value ? ["__content__"] : x.value), X = c(() => w.value ? !0 : x.value.length > 0), O = (t, o) => {
67
+ const i = o.left < 0 ? o.left : 0, r = o.top < 0 ? o.top : 0;
68
68
  return {
69
69
  left: {
70
- top: t.top - (o.height - t.height) / 2 - i,
71
- left: t.left - o.width - l - e.offset
70
+ top: t.top - (o.height - t.height) / 2 - r,
71
+ left: t.left - o.width - i - e.offset
72
72
  },
73
73
  right: {
74
- top: t.top - (o.height - t.height) / 2 - i,
75
- left: t.left + t.width - l + e.offset
74
+ top: t.top - (o.height - t.height) / 2 - r,
75
+ left: t.left + t.width - i + e.offset
76
76
  },
77
77
  bottom: {
78
- top: t.bottom - i + e.offset,
79
- left: t.left - l
78
+ top: t.bottom - r + e.offset,
79
+ left: t.left - i
80
80
  },
81
81
  "bottom-center": {
82
- top: t.bottom - i + e.offset,
83
- left: t.left + t.width / 2 - o.width / 2 - l
82
+ top: t.bottom - r + e.offset,
83
+ left: t.left + t.width / 2 - o.width / 2 - i
84
84
  },
85
85
  top: {
86
- top: t.top - o.height - e.offset - i,
87
- left: t.left - l
86
+ top: t.top - o.height - e.offset - r,
87
+ left: t.left - i
88
88
  },
89
89
  "top-center": {
90
- top: t.top - o.height - e.offset - i,
91
- left: t.left + t.width / 2 - o.width / 2 - l
90
+ top: t.top - o.height - e.offset - r,
91
+ left: t.left + t.width / 2 - o.width / 2 - i
92
92
  },
93
93
  "top-left": {
94
- top: t.top - o.height - e.offset - i,
95
- left: t.left + t.width - o.width - l
94
+ top: t.top - o.height - e.offset - r,
95
+ left: t.left + t.width - o.width - i
96
96
  },
97
97
  "top-right": {
98
- top: t.top - o.height - e.offset - i,
99
- left: t.left - l
98
+ top: t.top - o.height - e.offset - r,
99
+ left: t.left - i
100
100
  },
101
101
  "bottom-left": {
102
- top: t.bottom - i + e.offset,
103
- left: t.left + t.width - o.width - l
102
+ top: t.bottom - r + e.offset,
103
+ left: t.left + t.width - o.width - i
104
104
  },
105
105
  "bottom-right": {
106
- top: t.bottom - i + e.offset,
107
- left: t.left - l
106
+ top: t.bottom - r + e.offset,
107
+ left: t.left - i
108
108
  }
109
109
  }[e.position];
110
- }, D = () => {
111
- if (!w.value || m.value.length === 0) return;
112
- const t = w.value.getBoundingClientRect(), o = e.position.startsWith("top"), l = 8, i = y ? document.getElementById(y) : null, a = i == null ? void 0 : i.getBoundingClientRect(), Z = (a == null ? void 0 : a.top) ?? 0, b = (a == null ? void 0 : a.left) ?? 0, B = (a == null ? void 0 : a.right) ?? window.innerWidth, tt = (a == null ? void 0 : a.bottom) ?? window.innerHeight;
113
- m.value.forEach((S, et) => {
114
- const T = S.getBoundingClientRect(), k = G(t, T), O = et * (T.height + Lt), ot = o ? k.top - O : k.top + O, $ = Z + l, lt = tt - T.height - l, P = b + l, it = B - T.width - l, rt = Math.min(Math.max(ot, $), Math.max($, lt)), at = Math.min(Math.max(k.left, P), Math.max(P, it));
115
- S.style.top = `${rt}px`, S.style.left = `${at}px`;
110
+ }, _ = () => {
111
+ if (!y.value || g.value.length === 0) return;
112
+ const t = y.value.getBoundingClientRect(), o = e.position.startsWith("top"), i = 8, r = v ? document.getElementById(v) : null, a = r == null ? void 0 : r.getBoundingClientRect(), J = (a == null ? void 0 : a.top) ?? 0, Q = (a == null ? void 0 : a.left) ?? 0, V = (a == null ? void 0 : a.right) ?? window.innerWidth, Z = (a == null ? void 0 : a.bottom) ?? window.innerHeight;
113
+ g.value.forEach((C, B) => {
114
+ const d = C.getBoundingClientRect(), L = O(t, d), k = B * (d.height + j), tt = o ? L.top - k : L.top + k, W = J + i, et = Z - d.height - i, R = Q + i, ot = V - d.width - i, lt = Math.min(Math.max(tt, W), Math.max(W, et)), it = Math.min(Math.max(L.left, R), Math.max(R, ot));
115
+ C.style.top = `${lt}px`, C.style.left = `${it}px`;
116
116
  });
117
- }, K = () => {
118
- e.trigger !== "auto" && (n.value && (clearTimeout(n.value), n.value = null), r.value && (clearTimeout(r.value), r.value = null), n.value = setTimeout(() => {
119
- f.value = !0, L(() => {
120
- D();
117
+ }, D = () => {
118
+ e.trigger !== "auto" && (n.value && (clearTimeout(n.value), n.value = null), l.value && (clearTimeout(l.value), l.value = null), n.value = setTimeout(() => {
119
+ u.value = !0, M(() => {
120
+ _();
121
121
  }), n.value = null;
122
122
  }, e.delay));
123
- }, _ = () => {
124
- e.trigger !== "auto" && (n.value && (clearTimeout(n.value), n.value = null), r.value && (clearTimeout(r.value), r.value = null), f.value = !1, L(() => {
125
- M(m).forEach((o) => {
123
+ }, T = () => {
124
+ e.trigger !== "auto" && (n.value && (clearTimeout(n.value), n.value = null), l.value && (clearTimeout(l.value), l.value = null), u.value = !1, M(() => {
125
+ ct(g).forEach((o) => {
126
126
  o.style.top = "0", o.style.left = "0";
127
127
  });
128
128
  }));
129
- }, I = () => {
130
- e.trigger !== "auto" && (r.value && clearTimeout(r.value), r.value = setTimeout(() => {
131
- !v.value && !g.value && _();
132
- }, At));
133
- }, U = () => {
134
- v.value = !0, K();
135
- }, X = () => {
136
- v.value = !1, I();
129
+ }, S = () => {
130
+ e.trigger !== "auto" && (l.value && clearTimeout(l.value), l.value = setTimeout(() => {
131
+ !p.value && !h.value && T();
132
+ }, H));
137
133
  }, Y = () => {
138
- g.value = !0, r.value && (clearTimeout(r.value), r.value = null);
139
- }, J = () => {
140
- g.value = !1, I();
141
- }, N = () => {
134
+ p.value = !0, D();
135
+ }, b = () => {
136
+ p.value = !1, S();
137
+ }, z = () => {
138
+ h.value = !0, l.value && (clearTimeout(l.value), l.value = null);
139
+ }, F = () => {
140
+ h.value = !1, S();
141
+ }, A = () => {
142
142
  if (e.hideOnClick) {
143
- if (v.value = !1, g.value = !1, e.trigger === "auto") {
144
- d(), f.value = !1;
143
+ if (p.value = !1, h.value = !1, e.trigger === "auto") {
144
+ m(), u.value = !1;
145
145
  return;
146
146
  }
147
- _();
147
+ T();
148
148
  }
149
- }, Q = () => {
150
- d(), f.value = !0, L(() => {
151
- D();
152
- }), e.autoShowDuration > 0 && (p.value = setTimeout(() => {
153
- f.value = !1;
149
+ }, P = () => {
150
+ m(), u.value = !0, M(() => {
151
+ _();
152
+ }), e.autoShowDuration > 0 && (s.value = setTimeout(() => {
153
+ u.value = !1;
154
154
  }, e.autoShowDuration));
155
- }, d = () => {
156
- p.value && (clearTimeout(p.value), p.value = null);
155
+ }, m = () => {
156
+ s.value && (clearTimeout(s.value), s.value = null);
157
157
  };
158
- return st(() => {
159
- e.hideOnClick && document.addEventListener("mousedown", N, !0);
160
- }), ct(() => {
161
- e.hideOnClick && document.removeEventListener("mousedown", N, !0), n.value && clearTimeout(n.value), r.value && clearTimeout(r.value), d();
162
- }), V({
163
- startAutoShow: Q,
164
- clearAutoTimer: d,
165
- hide: _
166
- }), (t, o) => (c(), h(C, null, [
167
- ht("div", {
168
- ref_key: "container",
169
- ref: w,
170
- class: "tooltip-wrapper",
171
- onMouseenter: U,
172
- onMouseleave: X
173
- }, [
174
- W(t.$slots, "default", {}, void 0, !0)
175
- ], 544),
176
- (c(), mt(pt, { to: "body" }, [
177
- vt(gt, null, {
178
- default: dt(() => [
179
- f.value && F.value ? (c(), h("div", Ct, [
180
- (c(!0), h(C, null, yt(z.value, (l, i) => (c(), h("span", {
181
- key: `${l}-${i}`,
182
- ref_for: !0,
183
- ref_key: "tooltipItems",
184
- ref: m,
185
- "data-theme": M(A)().theme ? M(A)().theme : "light",
186
- class: xt(j.value),
187
- style: wt(q.value),
188
- onMouseenter: Y,
189
- onMouseleave: J
190
- }, [
191
- x.value ? W(t.$slots, "content", { key: 0 }, void 0, !0) : (c(), h(C, { key: 1 }, [
192
- _t(St(l), 1)
193
- ], 64))
194
- ], 46, Mt))), 128))
195
- ])) : Tt("", !0)
196
- ]),
197
- _: 3
198
- })
199
- ]))
200
- ], 64));
158
+ ft(() => {
159
+ e.hideOnClick && document.addEventListener("mousedown", A, !0);
160
+ }), ut(() => {
161
+ e.hideOnClick && document.removeEventListener("mousedown", A, !0), n.value && clearTimeout(n.value), l.value && clearTimeout(l.value), m();
162
+ }), $({
163
+ startAutoShow: P,
164
+ clearAutoTimer: m,
165
+ hide: T
166
+ });
167
+ const I = { chatAppId: v, getTheme: q, slots: E, container: y, tooltipItems: g, show: u, autoTimer: s, showTimer: n, hideTimer: l, STACK_GAP_PX: j, HIDE_DELAY_MS: H, isOverTrigger: p, isOverTooltip: h, props: e, hasContentSlot: w, tooltipClasses: G, tooltipStyle: K, resolvedTexts: x, displayItems: U, hasTooltipBody: X, getTooltipPosition: O, positionTooltips: _, updatePosition: D, hideTooltip: T, scheduleHide: S, handleTriggerEnter: Y, handleTriggerLeave: b, handleTooltipEnter: z, handleTooltipLeave: F, handleDocumentMouseDown: A, startAutoShow: P, clearAutoTimer: m };
168
+ return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
201
169
  }
202
170
  });
203
171
  export {
204
- Vt as default
172
+ xt as default
205
173
  };
@@ -1,6 +1,6 @@
1
- import { createElementBlock as i, openBlock as r, createStaticVNode as C } from "vue";
2
- import h from "../../_virtual/_plugin-vue_export-helper.js";
3
- const l = {
1
+ import { createElementBlock as i, openBlock as r, createStaticVNode as o } from "vue";
2
+ import s from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const c = {
4
4
  name: "AvatarIcon",
5
5
  props: {
6
6
  size: {
@@ -24,8 +24,8 @@ const l = {
24
24
  return this.height || this.size;
25
25
  }
26
26
  }
27
- }, o = ["width", "height"];
28
- function d(n, t, e, s, a, p) {
27
+ }, h = ["width", "height"];
28
+ function C(n, t, e, a, l, p) {
29
29
  return r(), i("svg", {
30
30
  width: e.size,
31
31
  height: e.size,
@@ -33,10 +33,10 @@ function d(n, t, e, s, a, p) {
33
33
  fill: "none",
34
34
  xmlns: "http://www.w3.org/2000/svg"
35
35
  }, [...t[0] || (t[0] = [
36
- C('<g clip-path="url(#clip0_4389_421)"><path d="M35.4075 18.75C35.4075 21.2364 34.3978 23.621 32.6005 25.3791C30.8032 27.1373 28.3655 28.125 25.8237 28.125C23.282 28.125 20.8443 27.1373 19.047 25.3791C17.2497 23.621 16.24 21.2364 16.24 18.75C16.24 16.2636 17.2497 13.879 19.047 12.1209C20.8443 10.3627 23.282 9.375 25.8237 9.375C28.3655 9.375 30.8032 10.3627 32.6005 12.1209C34.3978 13.879 35.4075 16.2636 35.4075 18.75Z" fill="#DCDCDC"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M0.26709 25C0.26709 18.3696 2.95966 12.0107 7.75247 7.32233C12.5453 2.63392 19.0457 0 25.8238 0C32.6018 0 39.1023 2.63392 43.8951 7.32233C48.6879 12.0107 51.3805 18.3696 51.3805 25C51.3805 31.6304 48.6879 37.9893 43.8951 42.6777C39.1023 47.3661 32.6018 50 25.8238 50C19.0457 50 12.5453 47.3661 7.75247 42.6777C2.95966 37.9893 0.26709 31.6304 0.26709 25ZM25.8238 3.125C21.6126 3.12522 17.4871 4.28863 13.922 6.48134C10.357 8.67404 7.49734 11.8069 5.67221 15.5194C3.84709 19.2318 3.13067 23.3729 3.60543 27.4661C4.08018 31.5593 5.72681 35.4382 8.35578 38.6562C10.6239 35.0812 15.6171 31.25 25.8238 31.25C36.0305 31.25 41.0204 35.0781 43.2918 38.6562C45.9207 35.4382 47.5674 31.5593 48.0421 27.4661C48.5169 23.3729 47.8005 19.2318 45.9753 15.5194C44.1502 11.8069 41.2906 8.67404 37.7255 6.48134C34.1605 4.28863 30.0349 3.12522 25.8238 3.125Z" fill="#DCDCDC"></path></g><defs><clipPath id="clip0_4389_421"><rect width="51.1134" height="50" fill="white" transform="translate(0.26709)"></rect></clipPath></defs>', 2)
37
- ])], 8, o);
36
+ o('<g clip-path="url(#clip0_4389_421)"><path d="M35.4075 18.75C35.4075 21.2364 34.3978 23.621 32.6005 25.3791C30.8032 27.1373 28.3655 28.125 25.8237 28.125C23.282 28.125 20.8443 27.1373 19.047 25.3791C17.2497 23.621 16.24 21.2364 16.24 18.75C16.24 16.2636 17.2497 13.879 19.047 12.1209C20.8443 10.3627 23.282 9.375 25.8237 9.375C28.3655 9.375 30.8032 10.3627 32.6005 12.1209C34.3978 13.879 35.4075 16.2636 35.4075 18.75Z" fill="#DCDCDC"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M0.26709 25C0.26709 18.3696 2.95966 12.0107 7.75247 7.32233C12.5453 2.63392 19.0457 0 25.8238 0C32.6018 0 39.1023 2.63392 43.8951 7.32233C48.6879 12.0107 51.3805 18.3696 51.3805 25C51.3805 31.6304 48.6879 37.9893 43.8951 42.6777C39.1023 47.3661 32.6018 50 25.8238 50C19.0457 50 12.5453 47.3661 7.75247 42.6777C2.95966 37.9893 0.26709 31.6304 0.26709 25ZM25.8238 3.125C21.6126 3.12522 17.4871 4.28863 13.922 6.48134C10.357 8.67404 7.49734 11.8069 5.67221 15.5194C3.84709 19.2318 3.13067 23.3729 3.60543 27.4661C4.08018 31.5593 5.72681 35.4382 8.35578 38.6562C10.6239 35.0812 15.6171 31.25 25.8238 31.25C36.0305 31.25 41.0204 35.0781 43.2918 38.6562C45.9207 35.4382 47.5674 31.5593 48.0421 27.4661C48.5169 23.3729 47.8005 19.2318 45.9753 15.5194C44.1502 11.8069 41.2906 8.67404 37.7255 6.48134C34.1605 4.28863 30.0349 3.12522 25.8238 3.125Z" fill="#DCDCDC"></path></g><defs><clipPath id="clip0_4389_421"><rect width="51.1134" height="50" fill="white" transform="translate(0.26709)"></rect></clipPath></defs>', 2)
37
+ ])], 8, h);
38
38
  }
39
- const u = /* @__PURE__ */ h(l, [["render", d]]);
39
+ const u = /* @__PURE__ */ s(c, [["render", C], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/1_icons/AvatarIcon.vue"]]);
40
40
  export {
41
41
  u as default
42
42
  };