@mobilon-dev/chotto 0.3.97 → 0.3.98

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 +29 -4
  3. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +42 -61
  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 -38
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +33 -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/MenuIcon.vue.js +16 -10
  22. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
  24. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
  26. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
  28. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
  30. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
  32. package/dist/components/1_icons/SearchIcon.vue.js +29 -17
  33. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  34. package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
  35. package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
  36. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +546 -396
  37. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
  38. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
  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 +19 -13
  42. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
  43. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
  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 +74 -4
  52. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +8 -42
  53. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
  54. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
  55. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
  56. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
  57. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
  58. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
  59. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +61 -4
  60. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +79 -96
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
  63. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
  64. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
  67. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +80 -51
  68. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +182 -4
  69. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +25 -135
  70. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +78 -4
  71. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +73 -95
  72. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
  73. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
  74. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
  75. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
  76. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
  77. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
  78. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
  79. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
  80. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
  81. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
  82. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
  83. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +34 -60
  84. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
  85. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
  86. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
  87. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
  88. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
  89. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +39 -33
  90. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
  91. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +134 -311
  92. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
  93. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
  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 +34 -22
  96. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
  97. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
  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 +52 -24
  100. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
  101. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +35 -67
  102. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +72 -38
  103. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +76 -57
  104. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
  105. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
  106. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
  107. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
  108. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
  109. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +19 -39
  110. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +458 -4
  111. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +160 -471
  112. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
  113. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
  114. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
  115. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
  116. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
  117. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
  118. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
  119. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
  120. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
  121. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
  122. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
  123. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  124. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
  125. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
  127. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
  128. package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +16 -10
  129. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +60 -4
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +36 -53
  131. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
  133. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
  135. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +250 -4
  136. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +67 -233
  137. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +315 -4
  138. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +98 -319
  139. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
  140. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
  141. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +155 -4
  142. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +110 -212
  143. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
  144. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
  145. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
  146. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
  147. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
  148. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
  149. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
  150. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
  151. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
  152. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
  153. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
  154. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
  155. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
  156. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
  157. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
  158. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
  159. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
  160. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
  161. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
  162. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
  163. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
  164. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +36 -120
  165. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
  166. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
  167. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +75 -4
  168. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -63
  169. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
  170. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
  171. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +346 -4
  172. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +73 -307
  173. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
  174. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  175. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +307 -4
  176. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +65 -269
  177. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
  178. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
  179. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +307 -4
  180. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +76 -298
  181. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
  182. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
  183. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +35 -18
  184. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
  185. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
  186. package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
  187. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
  188. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
  189. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
  190. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
  191. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
  192. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
  193. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +85 -4
  194. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +149 -210
  195. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
  196. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
  197. package/dist/components/3_compounds/ChatList/ChatList.vue.js +253 -163
  198. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +50 -32
  199. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  200. package/dist/components/3_compounds/Feed/Feed.vue.js +172 -4
  201. package/dist/components/3_compounds/Feed/Feed.vue2.js +126 -257
  202. package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
  203. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
  204. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  205. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
  206. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
  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 +31 -18
  210. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +85 -56
  211. package/package.json +1 -1
@@ -1,47 +1,35 @@
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";
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";
18
18
  import "../../../hooks/useMessageDraft.js";
19
19
  import "../../../hooks/useSearchModel.js";
20
- import { useTheme as je } from "../../../hooks/useTheme.js";
20
+ import { useTheme as Te } 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 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";
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";
31
31
  import "../../../functions/parseMarkdown.js";
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({
32
+ const mt = /* @__PURE__ */ ie({
45
33
  inheritAttrs: !1,
46
34
  __name: "VideoMessage",
47
35
  props: {
@@ -64,7 +52,7 @@ const ze = ["messageId"], We = ["src"], Ge = {
64
52
  reactionsMode: {
65
53
  type: String,
66
54
  default: "single",
67
- validator: (e) => ["single", "multi"].includes(e)
55
+ validator: (u) => ["single", "multi"].includes(u)
68
56
  },
69
57
  currentUserId: {
70
58
  type: [String, Number],
@@ -86,286 +74,76 @@ const ze = ["messageId"], We = ["src"], Ge = {
86
74
  }
87
75
  },
88
76
  emits: ["action", "reply", "sms-invite"],
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");
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");
93
82
  }
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,
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,
108
97
  viewsAction: F,
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),
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),
116
105
  { cssVariable: "--chotto-videomessage-right-bg", position: "right" }
117
- ), le = () => {
118
- g.value && (g.value.currentTime = 0, q(g.value));
106
+ ), G = () => {
107
+ n.value && (n.value.currentTime = 0, w(n.value));
119
108
  };
120
- Me([E, g], ([u, s]) => {
121
- u ? s && (s.pause(), s.currentTime = 0) : s && (s.currentTime = 0, q(s));
109
+ me([d, n], ([o, t]) => {
110
+ o ? t && (t.pause(), t.currentTime = 0) : t && (t.currentTime = 0, w(t));
122
111
  });
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)
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)
126
115
  try {
127
- const n = await fetch(a.message.url, {
116
+ const s = await fetch(e.message.url, {
128
117
  headers: {
129
118
  Accept: "video/*"
130
119
  }
131
120
  });
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 = {
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 = {
135
124
  "video/mp4": "mp4",
136
125
  "video/webm": "webm",
137
126
  "video/ogg": "ogv",
138
127
  "video/quicktime": "mov",
139
128
  "video/x-matroska": "mkv",
140
- "application/octet-stream": k || "mp4"
129
+ "application/octet-stream": a || "mp4"
141
130
  };
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");
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");
147
136
  }
148
- }, ve = Oe(() => a.message, () => a.subtextTooltipData);
149
- function fe() {
150
- x("sms-invite", a.message);
137
+ }, ee = Re(() => e.message, () => e.subtextTooltipData);
138
+ function te() {
139
+ i("sms-invite", e.message);
151
140
  }
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));
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;
367
145
  }
368
146
  });
369
147
  export {
370
- Ps as default
148
+ mt as default
371
149
  };
@@ -1,7 +1,67 @@
1
- import o from "./ConfirmDeleteMessage.vue3.js";
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";
2
3
  /* empty css */
3
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-34fc434c"]]);
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"]]);
5
65
  export {
6
- m as default
66
+ x as default
7
67
  };
@@ -1,9 +1,6 @@
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({
1
+ import { defineComponent as a } from "vue";
2
+ import { useLocale as m } from "../../../locale/useLocale.js";
3
+ const u = /* @__PURE__ */ a({
7
4
  __name: "ConfirmDeleteMessage",
8
5
  props: {
9
6
  theme: {
@@ -13,46 +10,14 @@ const k = ["data-theme"], D = {
13
10
  }
14
11
  },
15
12
  emits: ["confirm", "cancel"],
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
- }));
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;
54
19
  }
55
20
  });
56
21
  export {
57
- y as default
22
+ u as default
58
23
  };
@@ -1,6 +1,6 @@
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";
1
+ import { createElementBlock as l, openBlock as m, createElementVNode as p, withDirectives as _, toDisplayString as u, vModelText as d, ref as i } from "vue";
2
2
  import "./CreateChat.vue2.js";
3
- import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ import h from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const f = {
5
5
  __name: "CreateChat",
6
6
  props: {
@@ -10,23 +10,40 @@ const f = {
10
10
  }
11
11
  },
12
12
  emits: ["change"],
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),
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),
21
34
  type: "text",
22
35
  class: "name",
23
- onInput: l
24
- }, null, 544), [
25
- [d, e.value]
26
- ])
27
- ]));
28
- }
29
- }, C = /* @__PURE__ */ _(f, [["__scopeId", "data-v-65f726e8"]]);
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"]]);
30
47
  export {
31
- C as default
48
+ y as default
32
49
  };