@mobilon-dev/chotto 0.3.98 → 0.3.99

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 (211) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +4 -29
  3. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +61 -42
  4. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +4 -47
  5. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +82 -55
  6. package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +51 -86
  7. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +4 -32
  8. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +28 -7
  9. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +38 -22
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +2 -33
  11. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +4 -37
  12. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +21 -7
  13. package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +19 -30
  14. package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +4 -70
  15. package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +108 -76
  16. package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
  17. package/dist/components/1_icons/CheckIcon.vue.js +13 -26
  18. package/dist/components/1_icons/CloseButtonIcon.vue.js +10 -16
  19. package/dist/components/1_icons/CloseIcon.vue.js +10 -16
  20. package/dist/components/1_icons/ContactCRMIcon.vue.js +10 -16
  21. package/dist/components/1_icons/MenuIcon.vue.js +10 -16
  22. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +3 -23
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +21 -12
  24. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +4 -36
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +26 -11
  26. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +3 -23
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +21 -12
  28. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +3 -23
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +20 -11
  30. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +4 -33
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +23 -11
  32. package/dist/components/1_icons/SearchIcon.vue.js +17 -29
  33. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  34. package/dist/components/1_icons/TelegramIcon.vue.js +20 -32
  35. package/dist/components/1_icons/WhatsAppIcon.vue.js +20 -32
  36. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +396 -546
  37. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +58 -101
  38. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +8 -14
  39. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
  40. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
  41. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +13 -19
  42. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +10 -16
  43. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +23 -35
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +20 -32
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +11 -17
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +20 -32
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +21 -33
  49. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
  50. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
  51. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +4 -74
  52. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +42 -8
  53. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +4 -62
  54. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +36 -15
  55. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +4 -49
  56. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +45 -22
  57. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +4 -36
  58. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +37 -19
  59. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +4 -61
  60. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +96 -79
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +27 -31
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +2 -13
  63. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +4 -72
  64. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +83 -47
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +21 -19
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +2 -13
  67. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +51 -80
  68. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +4 -182
  69. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +135 -25
  70. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +4 -78
  71. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +95 -73
  72. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +17 -15
  73. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +2 -13
  74. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +33 -39
  75. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +4 -220
  76. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +256 -146
  77. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +41 -39
  78. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +2 -13
  79. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +163 -233
  80. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +4 -164
  81. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +175 -87
  82. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +4 -73
  83. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +60 -34
  84. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +4 -47
  85. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +23 -10
  86. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +4 -52
  87. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +26 -8
  88. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +220 -299
  89. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +33 -39
  90. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +4 -306
  91. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +311 -134
  92. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +12 -18
  93. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +11 -23
  94. package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
  95. package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +22 -34
  96. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +9 -15
  97. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +14 -26
  98. package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
  99. package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +24 -52
  100. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +4 -84
  101. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +67 -35
  102. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +38 -72
  103. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +57 -76
  104. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +29 -41
  105. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +115 -176
  106. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +27 -48
  107. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +28 -58
  108. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +4 -54
  109. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +39 -19
  110. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +4 -458
  111. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +471 -160
  112. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +4 -19
  113. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +22 -12
  114. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +4 -26
  115. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +39 -26
  116. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +4 -482
  117. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +448 -148
  118. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +19 -17
  119. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +2 -13
  120. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +19 -17
  121. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +2 -13
  122. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +4 -17
  123. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  124. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +3 -16
  125. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +4 -67
  127. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +43 -11
  128. package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +10 -16
  129. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +4 -60
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +53 -36
  131. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +4 -22
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +15 -8
  133. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +4 -43
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +25 -10
  135. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +4 -250
  136. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +233 -67
  137. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +4 -315
  138. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +319 -98
  139. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +4 -39
  140. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +22 -12
  141. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +4 -155
  142. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +212 -110
  143. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +20 -32
  144. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +20 -32
  145. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +11 -17
  146. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +10 -16
  147. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +11 -17
  148. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +4 -22
  149. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +23 -17
  150. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +4 -28
  151. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +29 -27
  152. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +4 -142
  153. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +121 -33
  154. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +22 -34
  155. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +4 -55
  156. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +30 -8
  157. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +4 -47
  158. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +25 -9
  159. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +4 -56
  160. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +37 -8
  161. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +4 -72
  162. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +59 -10
  163. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +4 -142
  164. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +120 -36
  165. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +4 -49
  166. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +53 -15
  167. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +4 -75
  168. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +63 -10
  169. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +4 -18
  170. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +17 -9
  171. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +4 -346
  172. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +307 -73
  173. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +4 -17
  174. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  175. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +4 -307
  176. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +269 -65
  177. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +4 -37
  178. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +21 -7
  179. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +4 -307
  180. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +298 -76
  181. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +4 -64
  182. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +45 -10
  183. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +18 -35
  184. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +92 -140
  185. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +49 -96
  186. package/dist/components/2_modals/Modal/Modal.vue.js +50 -59
  187. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +38 -51
  188. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +30 -39
  189. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +4 -155
  190. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +121 -49
  191. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +43 -60
  192. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +24 -41
  193. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +4 -85
  194. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +210 -149
  195. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +21 -25
  196. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +2 -13
  197. package/dist/components/3_compounds/ChatList/ChatList.vue.js +163 -253
  198. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +32 -50
  199. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  200. package/dist/components/3_compounds/Feed/Feed.vue.js +4 -172
  201. package/dist/components/3_compounds/Feed/Feed.vue2.js +257 -126
  202. package/dist/components/3_compounds/SideBar/SideBar.vue.js +202 -279
  203. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +36 -43
  204. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  205. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +4 -32
  206. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +29 -7
  207. package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
  208. package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
  209. package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +18 -31
  210. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +56 -85
  211. package/package.json +1 -1
@@ -1,35 +1,47 @@
1
- import { defineComponent as ie, inject as ae, ref as m, computed as l, watch as me } from "vue";
2
- import le from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
3
- import ue from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
4
- import ce from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
5
- import pe from "../BaseReplyMessage/BaseReplyMessage.vue.js";
6
- import de from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
7
- import ge from "../MessageReactions/MessageReactions.vue.js";
8
- import fe from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
9
- import ve from "../MessageSmsInvite/MessageSmsInvite.vue.js";
10
- import be from "../DeletedMessageContent/DeletedMessageContent.vue.js";
11
- import ye from "../../1_atoms/Tooltip/Tooltip.vue.js";
12
- import { useMessageActions as he } from "../../../hooks/messages/useMessageActions.js";
13
- import { useMessageMenuActions as Me } from "../../../hooks/messages/useMessageMenuActions.js";
14
- import { useMessageLinks as we } from "../../../hooks/messages/useMessageLinks.js";
15
- import { useChannelAccentColor as xe } from "../../../hooks/messages/useChannelAccentColor.js";
16
- import { useSubtextTooltip as Re } from "../../../hooks/messages/useSubtextTooltip.js";
17
- import { useStartReply as Se } from "../../../hooks/messages/useStartReply.js";
1
+ import { defineComponent as we, inject as pe, ref as w, computed as p, watch as Me, createElementBlock as m, openBlock as o, Fragment as S, createElementVNode as i, createBlock as d, unref as t, normalizeStyle as C, normalizeClass as y, createCommentVNode as l, createVNode as r, withCtx as c, createTextVNode as xe, toDisplayString as M, Transition as b, withModifiers as j, Teleport as D } from "vue";
2
+ import Re from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
3
+ import Te from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
4
+ import Se from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
5
+ import Ce from "../BaseReplyMessage/BaseReplyMessage.vue.js";
6
+ import Ie from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
7
+ import Ae from "../MessageReactions/MessageReactions.vue.js";
8
+ import H from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
9
+ import Ee from "../MessageSmsInvite/MessageSmsInvite.vue.js";
10
+ import Le from "../DeletedMessageContent/DeletedMessageContent.vue.js";
11
+ import Be from "../../1_atoms/Tooltip/Tooltip.vue.js";
12
+ import { useMessageActions as Pe } from "../../../hooks/messages/useMessageActions.js";
13
+ import { useMessageMenuActions as Fe } from "../../../hooks/messages/useMessageMenuActions.js";
14
+ import { useMessageLinks as Ne } from "../../../hooks/messages/useMessageLinks.js";
15
+ import { useChannelAccentColor as Ue } from "../../../hooks/messages/useChannelAccentColor.js";
16
+ import { useSubtextTooltip as Oe } from "../../../hooks/messages/useSubtextTooltip.js";
17
+ import { useStartReply as $e } from "../../../hooks/messages/useStartReply.js";
18
18
  import "../../../hooks/useMessageDraft.js";
19
19
  import "../../../hooks/useSearchModel.js";
20
- import { useTheme as Te } from "../../../hooks/useTheme.js";
20
+ import { useTheme as je } from "../../../hooks/useTheme.js";
21
21
  import "../../../hooks/useEmojiNative.js";
22
22
  /* empty css */
23
23
  /* empty css */
24
24
  import "../../../locale/useLocale.js";
25
25
  /* empty css */
26
- import { buildReplyPayload as M } from "../../../hooks/messages/buildReplyPayload.js";
27
- import { getStatus as ke, getStatusTitle as Ae } from "../../../functions/getStatusMessage.js";
28
- import { safeMediaPlayVoid as w } from "../../../functions/safeMediaPlay.js";
29
- import { getMessageClass as Ce } from "../../../functions/getMessageClass.js";
30
- import { createReactionHandlers as _e } from "../../../functions/createReactionHandlers.js";
26
+ import { buildReplyPayload as V } from "../../../hooks/messages/buildReplyPayload.js";
27
+ import { getStatus as De, getStatusTitle as He } from "../../../functions/getStatusMessage.js";
28
+ import { safeMediaPlayVoid as q } from "../../../functions/safeMediaPlay.js";
29
+ import { getMessageClass as Ve } from "../../../functions/getMessageClass.js";
30
+ import { createReactionHandlers as qe } from "../../../functions/createReactionHandlers.js";
31
31
  import "../../../functions/parseMarkdown.js";
32
- const mt = /* @__PURE__ */ ie({
32
+ const ze = ["messageId"], We = ["src"], Ge = {
33
+ key: 1,
34
+ class: "video-message__subtext"
35
+ }, Je = { class: "video-message__info-container" }, Ke = {
36
+ key: 0,
37
+ class: "video-message__time"
38
+ }, Qe = ["src"], Xe = {
39
+ key: 0,
40
+ class: "video-message__info-container"
41
+ }, Ye = { class: "video-message__time" }, Ze = {
42
+ key: 1,
43
+ class: "video-message__text-container"
44
+ }, _e = ["innerHTML"], es = ["src", "alt"], Ps = /* @__PURE__ */ we({
33
45
  inheritAttrs: !1,
34
46
  __name: "VideoMessage",
35
47
  props: {
@@ -52,7 +64,7 @@ const mt = /* @__PURE__ */ ie({
52
64
  reactionsMode: {
53
65
  type: String,
54
66
  default: "single",
55
- validator: (u) => ["single", "multi"].includes(u)
67
+ validator: (e) => ["single", "multi"].includes(e)
56
68
  },
57
69
  currentUserId: {
58
70
  type: [String, Number],
@@ -74,76 +86,286 @@ const mt = /* @__PURE__ */ ie({
74
86
  }
75
87
  },
76
88
  emits: ["action", "reply", "sms-invite"],
77
- setup(u, { expose: x, emit: R }) {
78
- x();
79
- const c = ae("chatAppId"), { getTheme: S } = Te(c || ""), { menuActions: T } = Me(() => e.message), { startReply: p } = Se(c || ""), e = u, i = R;
80
- function k(o) {
81
- return Ce(o.position, "video-message");
89
+ setup(e, { emit: z }) {
90
+ const I = pe("chatAppId"), { getTheme: A } = je(I || ""), { menuActions: h } = Fe(() => a.message), { startReply: W } = $e(I || ""), a = e, x = z;
91
+ function R(u) {
92
+ return Ve(u.position, "video-message");
82
93
  }
83
- const d = m(), n = m(), g = m(!1), f = m(!1), { linkedHtml: A, inNewWindow: C } = we(() => e.message.text), {
84
- isOpenMenu: _,
85
- buttonMenuVisible: E,
86
- menuAnchorRef: I,
87
- menuRef: L,
88
- menuStyle: O,
89
- menuTheme: P,
90
- showMenu: v,
91
- hideMenu: j,
92
- openMenu: U,
93
- toggleMenu: B,
94
- onMenuMouseEnter: $,
95
- onMenuMouseLeave: q,
96
- clickAction: D,
94
+ const E = w(), g = w(), T = w(!1), v = w(!1), { linkedHtml: G, inNewWindow: L } = Ne(() => a.message.text), {
95
+ isOpenMenu: J,
96
+ buttonMenuVisible: K,
97
+ menuAnchorRef: Q,
98
+ menuRef: X,
99
+ menuStyle: Y,
100
+ menuTheme: Z,
101
+ showMenu: _,
102
+ hideMenu: B,
103
+ openMenu: ee,
104
+ toggleMenu: P,
105
+ onMenuMouseEnter: se,
106
+ onMenuMouseLeave: te,
107
+ clickAction: ae,
97
108
  viewsAction: F,
98
- handleClickReplied: H
99
- } = he(e.message, i, {
100
- onReply: () => p(M(e.message, "message.video"))
101
- }), N = () => {
102
- v(), f.value = !0;
103
- }, V = l(() => ke(e.message.status)), W = l(() => Ae(e.message.status, e.message.statusMsg)), { bubbleStyle: z } = xe(
104
- l(() => e.message),
109
+ handleClickReplied: oe
110
+ } = Pe(a.message, x, {
111
+ onReply: () => W(V(a.message, "message.video"))
112
+ }), ne = () => {
113
+ _(), v.value = !0;
114
+ }, N = p(() => De(a.message.status)), U = p(() => He(a.message.status, a.message.statusMsg)), { bubbleStyle: ie } = Ue(
115
+ p(() => a.message),
105
116
  { cssVariable: "--chotto-videomessage-right-bg", position: "right" }
106
- ), G = () => {
107
- n.value && (n.value.currentTime = 0, w(n.value));
117
+ ), le = () => {
118
+ g.value && (g.value.currentTime = 0, q(g.value));
108
119
  };
109
- me([d, n], ([o, t]) => {
110
- o ? t && (t.pause(), t.currentTime = 0) : t && (t.currentTime = 0, w(t));
120
+ Me([E, g], ([u, s]) => {
121
+ u ? s && (s.pause(), s.currentTime = 0) : s && (s.currentTime = 0, q(s));
111
122
  });
112
- const J = l(() => e.message.reply && e.message.text ? "0" : e.message.text ? "var(--chotto-videomessage-preview-with-caption-border-radius, 7px 7px 0 0)" : e.message.reply ? "var(--chotto-videomessage-preview-with-reply-border-radius, 0 0 7px 7px)" : "var(--chotto-videomessage-preview-border-radius, 7px)"), K = () => g.value = !1, { onToggleReaction: Q, onAddReaction: X, onRemoveReaction: Y } = _e(i), Z = async () => {
113
- var o, t;
114
- if (e.message.url)
123
+ const me = p(() => a.message.reply && a.message.text ? "0" : a.message.text ? "var(--chotto-videomessage-preview-with-caption-border-radius, 7px 7px 0 0)" : a.message.reply ? "var(--chotto-videomessage-preview-with-reply-border-radius, 0 0 7px 7px)" : "var(--chotto-videomessage-preview-border-radius, 7px)"), re = () => T.value = !1, { onToggleReaction: ue, onAddReaction: de, onRemoveReaction: ce } = qe(x), ge = async () => {
124
+ var u, s;
125
+ if (a.message.url)
115
126
  try {
116
- const s = await fetch(e.message.url, {
127
+ const n = await fetch(a.message.url, {
117
128
  headers: {
118
129
  Accept: "video/*"
119
130
  }
120
131
  });
121
- if (!s.ok)
122
- throw new Error(`HTTP error! status: ${s.status}`);
123
- const oe = s.headers.get("content-type") || "", se = await s.blob(), a = ((t = (o = e.message.url.split(".").pop()) == null ? void 0 : o.split("?")[0]) == null ? void 0 : t.toLowerCase()) || "", ne = {
132
+ if (!n.ok)
133
+ throw new Error(`HTTP error! status: ${n.status}`);
134
+ const ye = n.headers.get("content-type") || "", be = await n.blob(), k = ((s = (u = a.message.url.split(".").pop()) == null ? void 0 : u.split("?")[0]) == null ? void 0 : s.toLowerCase()) || "", he = {
124
135
  "video/mp4": "mp4",
125
136
  "video/webm": "webm",
126
137
  "video/ogg": "ogv",
127
138
  "video/quicktime": "mov",
128
139
  "video/x-matroska": "mkv",
129
- "application/octet-stream": a || "mp4"
140
+ "application/octet-stream": k || "mp4"
130
141
  };
131
- let y = a && ["mp4", "mov", "webm", "ogv", "mkv"].includes(a) ? a : ne[oe] || "mp4";
132
- const re = e.message.alt ? e.message.alt.includes(".") ? e.message.alt : `${e.message.alt}.${y}` : `video-${e.message.messageId}.${y}`, h = window.URL.createObjectURL(se), r = document.createElement("a");
133
- r.href = h, r.download = re, document.body.appendChild(r), r.click(), document.body.removeChild(r), window.URL.revokeObjectURL(h);
134
- } catch (s) {
135
- console.error("Ошибка при скачивании видео:", s), window.open(e.message.url, "_blank");
142
+ let O = k && ["mp4", "mov", "webm", "ogv", "mkv"].includes(k) ? k : he[ye] || "mp4";
143
+ const ke = a.message.alt ? a.message.alt.includes(".") ? a.message.alt : `${a.message.alt}.${O}` : `video-${a.message.messageId}.${O}`, $ = window.URL.createObjectURL(be), f = document.createElement("a");
144
+ f.href = $, f.download = ke, document.body.appendChild(f), f.click(), document.body.removeChild(f), window.URL.revokeObjectURL($);
145
+ } catch (n) {
146
+ console.error("Ошибка при скачивании видео:", n), window.open(a.message.url, "_blank");
136
147
  }
137
- }, ee = Re(() => e.message, () => e.subtextTooltipData);
138
- function te() {
139
- i("sms-invite", e.message);
148
+ }, ve = Oe(() => a.message, () => a.subtextTooltipData);
149
+ function fe() {
150
+ x("sms-invite", a.message);
140
151
  }
141
- const b = { chatAppId: c, getTheme: S, menuActions: T, startReply: p, props: e, emit: i, getClass: k, player: d, previewPlayer: n, isOpenModal: g, buttonDownloadVisible: f, linkedHtml: A, inNewWindow: C, isOpenMenu: _, buttonMenuVisible: E, menuAnchorRef: I, menuRef: L, menuStyle: O, menuTheme: P, baseShowMenu: v, hideMenu: j, openMenu: U, toggleMenu: B, onMenuMouseEnter: $, onMenuMouseLeave: q, clickAction: D, viewsAction: F, handleClickReplied: H, showMenu: N, status: V, statusTitle: W, rightBubbleStyle: z, playAgain: G, videoBorderRadius: J, closeModal: K, onToggleReaction: Q, onAddReaction: X, onRemoveReaction: Y, downloadVideo: Z, channelInfo: ee, handleSmsInvite: te, ContextMenu: le, LinkPreview: ue, EmbedPreview: ce, BaseReplyMessage: pe, ModalFullscreen: de, MessageReactions: ge, MessageStatusIndicator: fe, MessageSmsInvite: ve, DeletedMessageContent: be, Tooltip: ye, get buildReplyPayload() {
142
- return M;
143
- } };
144
- return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
152
+ return (u, s) => (o(), m(S, null, [
153
+ i("div", {
154
+ ref_key: "menuAnchorRef",
155
+ ref: Q,
156
+ class: y(["video-message", [
157
+ R(e.message),
158
+ e.applyStyle(e.message)
159
+ ]]),
160
+ messageId: e.message.messageId,
161
+ style: C(t(ie)),
162
+ onMouseleave: s[5] || (s[5] = //@ts-ignore
163
+ (...n) => t(B) && t(B)(...n))
164
+ }, [
165
+ e.message.avatar && e.isFirstInSeries ? (o(), m("img", {
166
+ key: 0,
167
+ class: "video-message__avatar",
168
+ src: e.message.avatar,
169
+ height: "32",
170
+ width: "32"
171
+ }, null, 8, We)) : l("", !0),
172
+ e.message.subText && e.isFirstInSeries ? (o(), m("p", Ge, [
173
+ r(Be, {
174
+ text: t(ve),
175
+ position: e.message.position === "left" ? "right" : "left",
176
+ offset: 8
177
+ }, {
178
+ default: c(() => [
179
+ xe(M(e.message.subText), 1)
180
+ ]),
181
+ _: 1
182
+ }, 8, ["text", "position"])
183
+ ])) : l("", !0),
184
+ i("div", {
185
+ class: y(["video-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar, "has-caption": !!e.message.text }])
186
+ }, [
187
+ s[9] || (s[9] = i("div", {
188
+ class: "video-message__bottom-shadow",
189
+ "aria-hidden": "true"
190
+ }, null, -1)),
191
+ e.message.deleted ? (o(), m(S, { key: 0 }, [
192
+ r(Le),
193
+ i("div", Je, [
194
+ e.message.time ? (o(), m("span", Ke, M(e.message.time), 1)) : l("", !0),
195
+ r(H, {
196
+ "base-class": "video-message",
197
+ "message-class": R(e.message),
198
+ "message-status": e.message.status,
199
+ "status-class": N.value,
200
+ "status-title": U.value
201
+ }, null, 8, ["message-class", "message-status", "status-class", "status-title"])
202
+ ])
203
+ ], 64)) : (o(), m(S, { key: 1 }, [
204
+ e.message.reply ? (o(), d(Ce, {
205
+ key: 0,
206
+ style: { margin: "10px 10px 4px 16px" },
207
+ class: y(e.message.position),
208
+ message: e.message.reply,
209
+ onReply: t(oe)
210
+ }, null, 8, ["class", "message", "onReply"])) : l("", !0),
211
+ i("div", {
212
+ class: "video-message__preview-button",
213
+ onClick: s[1] || (s[1] = (n) => T.value = !0),
214
+ onMouseenter: ne,
215
+ onMouseleave: s[2] || (s[2] = (n) => v.value = !v.value)
216
+ }, [
217
+ i("video", {
218
+ ref_key: "previewPlayer",
219
+ ref: g,
220
+ class: "video-message__video",
221
+ style: C({ borderRadius: me.value }),
222
+ src: e.message.url,
223
+ muted: !0,
224
+ autoplay: "",
225
+ onEnded: le
226
+ }, null, 44, Qe),
227
+ r(b, { name: "modal-fade" }, {
228
+ default: c(() => [
229
+ v.value ? (o(), m("div", Xe, [
230
+ e.message.views ? (o(), m("div", {
231
+ key: 0,
232
+ class: "video-message__views",
233
+ onClick: s[0] || (s[0] = j(
234
+ //@ts-ignore
235
+ (...n) => t(F) && t(F)(...n),
236
+ ["stop"]
237
+ ))
238
+ }, [
239
+ s[6] || (s[6] = i("span", { class: "pi pi-eye" }, null, -1)),
240
+ i("p", null, M(e.message.views), 1)
241
+ ])) : l("", !0),
242
+ i("span", Ye, M(e.message.time), 1),
243
+ r(H, {
244
+ "base-class": "video-message",
245
+ "message-class": R(e.message),
246
+ "message-status": e.message.status,
247
+ "status-class": N.value,
248
+ "status-title": U.value
249
+ }, null, 8, ["message-class", "message-status", "status-class", "status-title"])
250
+ ])) : l("", !0)
251
+ ]),
252
+ _: 1
253
+ }),
254
+ r(b, { name: "modal-fade" }, {
255
+ default: c(() => [
256
+ v.value ? (o(), m("button", {
257
+ key: 0,
258
+ class: "video-message__download-button",
259
+ type: "button",
260
+ onClick: j(ge, ["stop"])
261
+ }, [...s[7] || (s[7] = [
262
+ i("span", { class: "pi pi-download" }, null, -1)
263
+ ])])) : l("", !0)
264
+ ]),
265
+ _: 1
266
+ })
267
+ ], 32),
268
+ r(b, { name: "modal-fade" }, {
269
+ default: c(() => [
270
+ t(K) && t(h).length && !e.reactionsEnabled ? (o(), m("button", {
271
+ key: 0,
272
+ class: "video-message__menu-button",
273
+ onClick: s[3] || (s[3] = //@ts-ignore
274
+ (...n) => t(P) && t(P)(...n))
275
+ }, [...s[8] || (s[8] = [
276
+ i("span", { class: "pi pi-ellipsis-h" }, null, -1)
277
+ ])])) : l("", !0)
278
+ ]),
279
+ _: 1
280
+ }),
281
+ (o(), d(D, { to: "body" }, [
282
+ r(b, { name: "context-menu" }, {
283
+ default: c(() => [
284
+ t(J) && t(h).length ? (o(), d(Re, {
285
+ key: 0,
286
+ ref_key: "menuRef",
287
+ ref: X,
288
+ class: "video-message__context-menu message-actions-menu",
289
+ style: C(t(Y)),
290
+ "data-theme": t(Z),
291
+ actions: t(h),
292
+ onClick: t(ae),
293
+ onMouseenter: t(se),
294
+ onMouseleave: t(te)
295
+ }, null, 8, ["style", "data-theme", "actions", "onClick", "onMouseenter", "onMouseleave"])) : l("", !0)
296
+ ]),
297
+ _: 1
298
+ })
299
+ ])),
300
+ e.message.text ? (o(), m("div", Ze, [
301
+ i("p", {
302
+ onClick: s[4] || (s[4] = //@ts-ignore
303
+ (...n) => t(L) && t(L)(...n)),
304
+ innerHTML: t(G)
305
+ }, null, 8, _e)
306
+ ])) : l("", !0),
307
+ r(Ee, {
308
+ status: e.message.status,
309
+ "has-messenger-account": e.message.hasMessengerAccount,
310
+ channel: e.channel,
311
+ onSmsInvite: fe
312
+ }, null, 8, ["status", "has-messenger-account", "channel"]),
313
+ e.message.linkPreview ? (o(), d(Te, {
314
+ key: 2,
315
+ class: y(["video-message__link-preview", e.message.position]),
316
+ "link-preview": e.message.linkPreview
317
+ }, null, 8, ["class", "link-preview"])) : l("", !0),
318
+ e.message.embed ? (o(), d(Se, {
319
+ key: 3,
320
+ class: y(e.message.position),
321
+ embed: e.message.embed
322
+ }, null, 8, ["class", "embed"])) : l("", !0),
323
+ r(Ae, {
324
+ reactions: e.message.reactions,
325
+ "message-id": e.message.messageId,
326
+ reply: t(V)(e.message, "message.video"),
327
+ enabled: e.reactionsEnabled,
328
+ mode: e.reactionsMode,
329
+ "current-user-id": e.currentUserId,
330
+ "reaction-user-names": e.reactionUserNames,
331
+ "menu-enabled": t(h).length > 0,
332
+ onToggleReaction: t(ue),
333
+ onAddReaction: t(de),
334
+ onRemoveReaction: t(ce),
335
+ onMenu: t(ee)
336
+ }, null, 8, ["reactions", "message-id", "reply", "enabled", "mode", "current-user-id", "reaction-user-names", "menu-enabled", "onToggleReaction", "onAddReaction", "onRemoveReaction", "onMenu"])
337
+ ], 64))
338
+ ], 2)
339
+ ], 46, ze),
340
+ (o(), d(D, { to: "body" }, [
341
+ r(b, { name: "modal-fade" }, {
342
+ default: c(() => [
343
+ T.value && !e.message.deleted ? (o(), d(Ie, {
344
+ key: 0,
345
+ "data-theme": t(A)().theme ? t(A)().theme : "light",
346
+ title: e.message.alt,
347
+ onClose: re
348
+ }, {
349
+ default: c(() => [
350
+ i("video", {
351
+ ref_key: "player",
352
+ ref: E,
353
+ class: "video-message__modal-video",
354
+ src: e.message.url,
355
+ alt: e.message.alt,
356
+ controls: "",
357
+ autoplay: ""
358
+ }, null, 8, es)
359
+ ]),
360
+ _: 1
361
+ }, 8, ["data-theme", "title"])) : l("", !0)
362
+ ]),
363
+ _: 1
364
+ })
365
+ ]))
366
+ ], 64));
145
367
  }
146
368
  });
147
369
  export {
148
- mt as default
370
+ Ps as default
149
371
  };
@@ -1,67 +1,7 @@
1
- import i from "./ConfirmDeleteMessage.vue3.js";
2
- import { createBlock as a, openBlock as l, Transition as r, withCtx as m, createElementVNode as o, withModifiers as c, toDisplayString as s } from "vue";
1
+ import o from "./ConfirmDeleteMessage.vue3.js";
3
2
  /* empty css */
4
- import d from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const f = ["data-theme"], _ = {
6
- id: "confirmDeleteMessageTitle",
7
- class: "confirm-delete-message__title"
8
- }, p = { class: "confirm-delete-message__actions" };
9
- function g(b, t, C, e, v, D) {
10
- return l(), a(r, { name: "confirm-delete-message-fade" }, {
11
- default: m(() => [
12
- o("div", {
13
- class: "confirm-delete-message__backdrop",
14
- "data-theme": e.props.theme,
15
- role: "presentation",
16
- onClick: e.closeOutside
17
- }, [
18
- o("div", {
19
- class: "confirm-delete-message",
20
- role: "dialog",
21
- "aria-modal": "true",
22
- "aria-labelledby": "confirmDeleteMessageTitle",
23
- onClick: t[2] || (t[2] = c(() => {
24
- }, ["stop"]))
25
- }, [
26
- o(
27
- "p",
28
- _,
29
- s(e.t("component.ConfirmDeleteMessage.title")),
30
- 1
31
- /* TEXT */
32
- ),
33
- o("div", p, [
34
- o(
35
- "button",
36
- {
37
- type: "button",
38
- class: "confirm-delete-message__btn confirm-delete-message__btn--delete",
39
- onClick: t[0] || (t[0] = (n) => e.emit("confirm"))
40
- },
41
- s(e.t("component.ConfirmDeleteMessage.delete")),
42
- 1
43
- /* TEXT */
44
- ),
45
- o(
46
- "button",
47
- {
48
- type: "button",
49
- class: "confirm-delete-message__btn confirm-delete-message__btn--cancel",
50
- onClick: t[1] || (t[1] = (n) => e.emit("cancel"))
51
- },
52
- s(e.t("component.ConfirmDeleteMessage.cancel")),
53
- 1
54
- /* TEXT */
55
- )
56
- ])
57
- ])
58
- ], 8, f)
59
- ]),
60
- _: 1
61
- /* STABLE */
62
- });
63
- }
64
- const x = /* @__PURE__ */ d(i, [["render", g], ["__scopeId", "data-v-8fe0f609"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue"]]);
3
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-34fc434c"]]);
65
5
  export {
66
- x as default
6
+ m as default
67
7
  };
@@ -1,6 +1,9 @@
1
- import { defineComponent as a } from "vue";
2
- import { useLocale as m } from "../../../locale/useLocale.js";
3
- const u = /* @__PURE__ */ a({
1
+ import { defineComponent as f, createBlock as _, openBlock as p, Transition as g, withCtx as u, createElementVNode as t, withModifiers as b, toDisplayString as o, unref as i } from "vue";
2
+ import { useLocale as C } from "../../../locale/useLocale.js";
3
+ const k = ["data-theme"], D = {
4
+ id: "confirmDeleteMessageTitle",
5
+ class: "confirm-delete-message__title"
6
+ }, M = { class: "confirm-delete-message__actions" }, y = /* @__PURE__ */ f({
4
7
  __name: "ConfirmDeleteMessage",
5
8
  props: {
6
9
  theme: {
@@ -10,14 +13,46 @@ const u = /* @__PURE__ */ a({
10
13
  }
11
14
  },
12
15
  emits: ["confirm", "cancel"],
13
- setup(s, { expose: o, emit: r }) {
14
- o();
15
- const n = s, e = r, { t: c } = m(), t = { props: n, emit: e, t: c, closeOutside: (i) => {
16
- i.target.classList.contains("confirm-delete-message__backdrop") && e("cancel");
17
- } };
18
- return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
16
+ setup(a, { emit: c }) {
17
+ const m = a, s = c, { t: n } = C(), r = (l) => {
18
+ l.target.classList.contains("confirm-delete-message__backdrop") && s("cancel");
19
+ };
20
+ return (l, e) => (p(), _(g, { name: "confirm-delete-message-fade" }, {
21
+ default: u(() => [
22
+ t("div", {
23
+ class: "confirm-delete-message__backdrop",
24
+ "data-theme": m.theme,
25
+ role: "presentation",
26
+ onClick: r
27
+ }, [
28
+ t("div", {
29
+ class: "confirm-delete-message",
30
+ role: "dialog",
31
+ "aria-modal": "true",
32
+ "aria-labelledby": "confirmDeleteMessageTitle",
33
+ onClick: e[2] || (e[2] = b(() => {
34
+ }, ["stop"]))
35
+ }, [
36
+ t("p", D, o(i(n)("component.ConfirmDeleteMessage.title")), 1),
37
+ t("div", M, [
38
+ t("button", {
39
+ type: "button",
40
+ class: "confirm-delete-message__btn confirm-delete-message__btn--delete",
41
+ onClick: e[0] || (e[0] = (d) => s("confirm"))
42
+ }, o(i(n)("component.ConfirmDeleteMessage.delete")), 1),
43
+ t("button", {
44
+ type: "button",
45
+ class: "confirm-delete-message__btn confirm-delete-message__btn--cancel",
46
+ onClick: e[1] || (e[1] = (d) => s("cancel"))
47
+ }, o(i(n)("component.ConfirmDeleteMessage.cancel")), 1)
48
+ ])
49
+ ])
50
+ ], 8, k)
51
+ ]),
52
+ _: 1
53
+ }));
19
54
  }
20
55
  });
21
56
  export {
22
- u as default
57
+ y as default
23
58
  };
@@ -1,6 +1,6 @@
1
- import { createElementBlock as l, openBlock as m, createElementVNode as p, withDirectives as _, toDisplayString as u, vModelText as d, ref as i } from "vue";
1
+ import { ref as m, createElementBlock as p, openBlock as s, createElementVNode as n, withDirectives as c, toDisplayString as u, vModelText as d } from "vue";
2
2
  import "./CreateChat.vue2.js";
3
- import h from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ import _ from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const f = {
5
5
  __name: "CreateChat",
6
6
  props: {
@@ -10,40 +10,23 @@ const f = {
10
10
  }
11
11
  },
12
12
  emits: ["change"],
13
- setup(a, { expose: t, emit: n }) {
14
- t();
15
- const e = a, o = i(""), r = n, c = { props: e, name: o, emit: r, onChange: () => {
16
- r("change", { name: o.value });
17
- }, ref: i };
18
- return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
19
- }
20
- };
21
- function C(a, t, n, e, o, r) {
22
- return m(), l("div", null, [
23
- p(
24
- "h2",
25
- null,
26
- u(n.title),
27
- 1
28
- /* TEXT */
29
- ),
30
- _(p(
31
- "input",
32
- {
33
- "onUpdate:modelValue": t[0] || (t[0] = (s) => e.name = s),
13
+ setup(a, { emit: o }) {
14
+ const e = m(""), r = o, l = () => {
15
+ r("change", { name: e.value });
16
+ };
17
+ return (v, t) => (s(), p("div", null, [
18
+ n("h2", null, u(a.title), 1),
19
+ c(n("input", {
20
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => e.value = i),
34
21
  type: "text",
35
22
  class: "name",
36
- onInput: e.onChange
37
- },
38
- null,
39
- 544
40
- /* NEED_HYDRATION, NEED_PATCH */
41
- ), [
42
- [d, e.name]
43
- ])
44
- ]);
45
- }
46
- const y = /* @__PURE__ */ h(f, [["render", C], ["__scopeId", "data-v-a5012820"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_modals/CreateChat/CreateChat.vue"]]);
23
+ onInput: l
24
+ }, null, 544), [
25
+ [d, e.value]
26
+ ])
27
+ ]));
28
+ }
29
+ }, C = /* @__PURE__ */ _(f, [["__scopeId", "data-v-65f726e8"]]);
47
30
  export {
48
- y as default
31
+ C as default
49
32
  };