@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,7 +1,7 @@
1
- import { defineComponent as S, inject as I, ref as s, computed as B, watchEffect as T, onMounted as w, onUnmounted as O } from "vue";
2
- import q from "../TemplateSelector/TemplateSelector.vue.js";
3
- import A from "../../1_atoms/Tooltip/Tooltip.vue.js";
4
- import { useMessageDraft as E } from "../../../hooks/useMessageDraft.js";
1
+ import { defineComponent as T, inject as E, ref as i, computed as I, watchEffect as V, onMounted as q, onUnmounted as x, createElementBlock as y, openBlock as g, Fragment as A, createVNode as m, withCtx as h, createCommentVNode as N, unref as b, normalizeClass as W, createElementVNode as F, Transition as $, withDirectives as D, vShow as H } from "vue";
2
+ import O from "../TemplateSelector/TemplateSelector.vue.js";
3
+ import P from "../../1_atoms/Tooltip/Tooltip.vue.js";
4
+ import { useMessageDraft as j } from "../../../hooks/useMessageDraft.js";
5
5
  import "../../../hooks/useSearchModel.js";
6
6
  import "../../../hooks/useTheme.js";
7
7
  import "../../../hooks/useEmojiNative.js";
@@ -12,8 +12,8 @@ import "../../../locale/useLocale.js";
12
12
  import "../../../node_modules/linkifyjs/dist/linkify.js";
13
13
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
14
14
  import "../../../functions/parseMarkdown.js";
15
- import M from "./icons/ChatTemplatesIcon.vue.js";
16
- const Q = /* @__PURE__ */ S({
15
+ import z from "./icons/ChatTemplatesIcon.vue.js";
16
+ const R = { class: "" }, ne = /* @__PURE__ */ T({
17
17
  __name: "ButtonTemplateSelector",
18
18
  props: {
19
19
  templates: {
@@ -44,60 +44,96 @@ const Q = /* @__PURE__ */ S({
44
44
  default: void 0
45
45
  }
46
46
  },
47
- setup(d, { expose: v }) {
48
- v();
49
- const t = d, l = I("chatAppId"), { getMessage: f } = E(l || ""), y = s(null), e = s(null), a = s("#5F5F5F"), n = s("#404040"), c = s(!1);
50
- let o = null;
51
- const i = () => {
52
- if (!l) {
53
- a.value = "#5F5F5F", n.value = "#404040";
47
+ setup(l) {
48
+ const o = l, r = E("chatAppId"), { getMessage: w } = j(r || ""), k = i(null), e = i(null), s = i("#5F5F5F"), c = i("#404040"), d = i(!1);
49
+ let u = null;
50
+ const p = () => {
51
+ if (!r) {
52
+ s.value = "#5F5F5F", c.value = "#404040";
54
53
  return;
55
54
  }
56
- const r = document.getElementById(l);
57
- if (!r) {
58
- a.value = "#5F5F5F", n.value = "#404040";
55
+ const a = document.getElementById(r);
56
+ if (!a) {
57
+ s.value = "#5F5F5F", c.value = "#404040";
59
58
  return;
60
59
  }
61
- const u = window.getComputedStyle(r), p = u.getPropertyValue("--chotto-buttontemplateselector-button-span-color").trim(), C = u.getPropertyValue("--chotto-buttontemplateselector-button-span-hover-color").trim();
62
- a.value = p || "#5F5F5F", n.value = C || "#404040";
63
- }, h = B(() => c.value ? n.value : a.value);
64
- T(() => {
65
- i();
60
+ const t = window.getComputedStyle(a), n = t.getPropertyValue("--chotto-buttontemplateselector-button-span-color").trim(), S = t.getPropertyValue("--chotto-buttontemplateselector-button-span-hover-color").trim();
61
+ s.value = n || "#5F5F5F", c.value = S || "#404040";
62
+ }, C = I(() => d.value ? c.value : s.value);
63
+ V(() => {
64
+ p();
66
65
  });
67
- const g = () => {
68
- t.mode == "click" && t.state == "active" && e.value && (e.value.style.display == "none" ? e.value.style.display = "inherit" : e.value.style.display == "inherit" && (e.value.style.display = "none"));
69
- }, b = () => {
70
- t.mode == "hover" && t.state == "active" && e.value && (e.value.style.display = "inherit");
71
- }, F = () => {
72
- t.mode == "hover" && t.state == "active" && e.value && (e.value.style.display = "none");
73
- }, _ = () => {
66
+ const B = () => {
67
+ o.mode == "click" && o.state == "active" && e.value && (e.value.style.display == "none" ? e.value.style.display = "inherit" : e.value.style.display == "inherit" && (e.value.style.display = "none"));
68
+ }, v = () => {
69
+ o.mode == "hover" && o.state == "active" && e.value && (e.value.style.display = "inherit");
70
+ }, f = () => {
71
+ o.mode == "hover" && o.state == "active" && e.value && (e.value.style.display = "none");
72
+ }, M = () => {
74
73
  e.value && (e.value.style.display = "none");
75
74
  };
76
- w(() => {
77
- if (e.value && (e.value.style.display = "none"), i(), l) {
78
- const r = document.getElementById(l);
79
- r && (o = new MutationObserver((u) => {
80
- u.forEach((p) => {
81
- p.type === "attributes" && p.attributeName === "data-theme" && i();
75
+ return q(() => {
76
+ if (e.value && (e.value.style.display = "none"), p(), r) {
77
+ const a = document.getElementById(r);
78
+ a && (u = new MutationObserver((t) => {
79
+ t.forEach((n) => {
80
+ n.type === "attributes" && n.attributeName === "data-theme" && p();
82
81
  });
83
- }), o.observe(r, {
82
+ }), u.observe(a, {
84
83
  attributes: !0,
85
84
  attributeFilter: ["data-theme"]
86
85
  }));
87
86
  }
88
- }), O(() => {
89
- o && (o.disconnect(), o = null);
90
- });
91
- const m = { props: t, chatAppId: l, getMessage: f, templateButton: y, template: e, iconFillColor: a, iconHoverColor: n, isHovered: c, get themeObserver() {
92
- return o;
93
- }, set themeObserver(r) {
94
- o = r;
95
- }, updateIconColor: i, currentIconColor: h, toggle: g, hover: b, hoverout: F, close: _, TemplateSelector: q, Tooltip: A, get ChatTemplatesIcon() {
96
- return M;
97
- } };
98
- return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
87
+ }), x(() => {
88
+ u && (u.disconnect(), u = null);
89
+ }), (a, t) => (g(), y(A, null, [
90
+ m(P, {
91
+ text: "Шаблоны сообщений",
92
+ position: "left"
93
+ }, {
94
+ default: h(() => [
95
+ b(w)().isRecording ? N("", !0) : (g(), y("button", {
96
+ key: 0,
97
+ ref_key: "templateButton",
98
+ ref: k,
99
+ class: W(["button-template", { "button-template-disabled": l.state == "disabled" }]),
100
+ onClick: B,
101
+ onMouseover: v,
102
+ onMouseout: f,
103
+ onMouseenter: t[0] || (t[0] = (n) => d.value = !0),
104
+ onMouseleave: t[1] || (t[1] = (n) => d.value = !1)
105
+ }, [
106
+ F("span", R, [
107
+ m(b(z), { fill: C.value }, null, 8, ["fill"])
108
+ ])
109
+ ], 34))
110
+ ]),
111
+ _: 1
112
+ }),
113
+ m($, null, {
114
+ default: h(() => [
115
+ D(F("div", {
116
+ ref_key: "template",
117
+ ref: e,
118
+ onMouseover: v,
119
+ onMouseout: f
120
+ }, [
121
+ m(O, {
122
+ templates: l.templates,
123
+ "group-templates": l.groupTemplates,
124
+ "elevated-window": l.elevatedWindow,
125
+ "chat-background": l.chatBackground,
126
+ onCloseTemplateWindow: M
127
+ }, null, 8, ["templates", "group-templates", "elevated-window", "chat-background"])
128
+ ], 544), [
129
+ [H, o.state === "active"]
130
+ ])
131
+ ]),
132
+ _: 1
133
+ })
134
+ ], 64));
99
135
  }
100
136
  });
101
137
  export {
102
- Q as default
138
+ ne as default
103
139
  };
@@ -1,26 +1,28 @@
1
- import e from "./ChatTemplatesIcon.vue2.js";
2
- import { createElementBlock as o, openBlock as l, createElementVNode as t } from "vue";
3
- import n from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = {
1
+ import { defineComponent as l, createElementBlock as t, openBlock as n, createElementVNode as e } from "vue";
2
+ const o = {
5
3
  width: "26",
6
4
  height: "26",
7
5
  viewBox: "0 0 26 26",
8
6
  fill: "none",
9
7
  xmlns: "http://www.w3.org/2000/svg"
10
- }, s = ["fill"], i = ["fill"];
11
- function r(a, _, C, p, f, h) {
12
- return l(), o("svg", c, [
13
- t("path", {
14
- d: "M22.75 1.625C23.181 1.625 23.5943 1.7962 23.899 2.10095C24.2038 2.4057 24.375 2.81902 24.375 3.25V16.25C24.375 16.681 24.2038 17.0943 23.899 17.399C23.5943 17.7038 23.181 17.875 22.75 17.875H18.6875C18.183 17.875 17.6853 17.9925 17.2341 18.2181C16.7828 18.4438 16.3902 18.7714 16.0875 19.175L13 23.2911L9.9125 19.175C9.60977 18.7714 9.21722 18.4438 8.76594 18.2181C8.31466 17.9925 7.81705 17.875 7.3125 17.875H3.25C2.81902 17.875 2.4057 17.7038 2.10095 17.399C1.7962 17.0943 1.625 16.681 1.625 16.25V3.25C1.625 2.81902 1.7962 2.4057 2.10095 2.10095C2.4057 1.7962 2.81902 1.625 3.25 1.625H22.75ZM3.25 0C2.38805 0 1.5614 0.34241 0.951903 0.951903C0.34241 1.5614 0 2.38805 0 3.25L0 16.25C0 17.112 0.34241 17.9386 0.951903 18.5481C1.5614 19.1576 2.38805 19.5 3.25 19.5H7.3125C7.56477 19.5 7.81358 19.5587 8.03922 19.6716C8.26486 19.7844 8.46114 19.9482 8.6125 20.15L11.7 24.2661C11.8514 24.4679 12.0476 24.6318 12.2733 24.7446C12.4989 24.8574 12.7477 24.9161 13 24.9161C13.2523 24.9161 13.5011 24.8574 13.7267 24.7446C13.9524 24.6318 14.1486 24.4679 14.3 24.2661L17.3875 20.15C17.5389 19.9482 17.7351 19.7844 17.9608 19.6716C18.1864 19.5587 18.4352 19.5 18.6875 19.5H22.75C23.612 19.5 24.4386 19.1576 25.0481 18.5481C25.6576 17.9386 26 17.112 26 16.25V3.25C26 2.38805 25.6576 1.5614 25.0481 0.951903C24.4386 0.34241 23.612 0 22.75 0L3.25 0Z",
15
- fill: C.fill
16
- }, null, 8, s),
17
- t("path", {
18
- d: "M4.875 5.6875C4.875 5.47201 4.9606 5.26535 5.11298 5.11298C5.26535 4.9606 5.47201 4.875 5.6875 4.875H20.3125C20.528 4.875 20.7347 4.9606 20.887 5.11298C21.0394 5.26535 21.125 5.47201 21.125 5.6875C21.125 5.90299 21.0394 6.10965 20.887 6.26202C20.7347 6.4144 20.528 6.5 20.3125 6.5H5.6875C5.47201 6.5 5.26535 6.4144 5.11298 6.26202C4.9606 6.10965 4.875 5.90299 4.875 5.6875ZM4.875 9.75C4.875 9.53451 4.9606 9.32785 5.11298 9.17548C5.26535 9.0231 5.47201 8.9375 5.6875 8.9375H20.3125C20.528 8.9375 20.7347 9.0231 20.887 9.17548C21.0394 9.32785 21.125 9.53451 21.125 9.75C21.125 9.96549 21.0394 10.1722 20.887 10.3245C20.7347 10.4769 20.528 10.5625 20.3125 10.5625H5.6875C5.47201 10.5625 5.26535 10.4769 5.11298 10.3245C4.9606 10.1722 4.875 9.96549 4.875 9.75ZM4.875 13.8125C4.875 13.597 4.9606 13.3903 5.11298 13.238C5.26535 13.0856 5.47201 13 5.6875 13H13.8125C14.028 13 14.2347 13.0856 14.387 13.238C14.5394 13.3903 14.625 13.597 14.625 13.8125C14.625 14.028 14.5394 14.2347 14.387 14.387C14.2347 14.5394 14.028 14.625 13.8125 14.625H5.6875C5.47201 14.625 5.26535 14.5394 5.11298 14.387C4.9606 14.2347 4.875 14.028 4.875 13.8125Z",
19
- fill: C.fill
20
- }, null, 8, i)
21
- ]);
22
- }
23
- const u = /* @__PURE__ */ n(e, [["render", r], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue"]]);
8
+ }, i = ["fill"], s = ["fill"], h = /* @__PURE__ */ l({
9
+ __name: "ChatTemplatesIcon",
10
+ props: {
11
+ fill: { default: "#5F5F5F" }
12
+ },
13
+ setup(C) {
14
+ return (c, f) => (n(), t("svg", o, [
15
+ e("path", {
16
+ d: "M22.75 1.625C23.181 1.625 23.5943 1.7962 23.899 2.10095C24.2038 2.4057 24.375 2.81902 24.375 3.25V16.25C24.375 16.681 24.2038 17.0943 23.899 17.399C23.5943 17.7038 23.181 17.875 22.75 17.875H18.6875C18.183 17.875 17.6853 17.9925 17.2341 18.2181C16.7828 18.4438 16.3902 18.7714 16.0875 19.175L13 23.2911L9.9125 19.175C9.60977 18.7714 9.21722 18.4438 8.76594 18.2181C8.31466 17.9925 7.81705 17.875 7.3125 17.875H3.25C2.81902 17.875 2.4057 17.7038 2.10095 17.399C1.7962 17.0943 1.625 16.681 1.625 16.25V3.25C1.625 2.81902 1.7962 2.4057 2.10095 2.10095C2.4057 1.7962 2.81902 1.625 3.25 1.625H22.75ZM3.25 0C2.38805 0 1.5614 0.34241 0.951903 0.951903C0.34241 1.5614 0 2.38805 0 3.25L0 16.25C0 17.112 0.34241 17.9386 0.951903 18.5481C1.5614 19.1576 2.38805 19.5 3.25 19.5H7.3125C7.56477 19.5 7.81358 19.5587 8.03922 19.6716C8.26486 19.7844 8.46114 19.9482 8.6125 20.15L11.7 24.2661C11.8514 24.4679 12.0476 24.6318 12.2733 24.7446C12.4989 24.8574 12.7477 24.9161 13 24.9161C13.2523 24.9161 13.5011 24.8574 13.7267 24.7446C13.9524 24.6318 14.1486 24.4679 14.3 24.2661L17.3875 20.15C17.5389 19.9482 17.7351 19.7844 17.9608 19.6716C18.1864 19.5587 18.4352 19.5 18.6875 19.5H22.75C23.612 19.5 24.4386 19.1576 25.0481 18.5481C25.6576 17.9386 26 17.112 26 16.25V3.25C26 2.38805 25.6576 1.5614 25.0481 0.951903C24.4386 0.34241 23.612 0 22.75 0L3.25 0Z",
17
+ fill: C.fill
18
+ }, null, 8, i),
19
+ e("path", {
20
+ d: "M4.875 5.6875C4.875 5.47201 4.9606 5.26535 5.11298 5.11298C5.26535 4.9606 5.47201 4.875 5.6875 4.875H20.3125C20.528 4.875 20.7347 4.9606 20.887 5.11298C21.0394 5.26535 21.125 5.47201 21.125 5.6875C21.125 5.90299 21.0394 6.10965 20.887 6.26202C20.7347 6.4144 20.528 6.5 20.3125 6.5H5.6875C5.47201 6.5 5.26535 6.4144 5.11298 6.26202C4.9606 6.10965 4.875 5.90299 4.875 5.6875ZM4.875 9.75C4.875 9.53451 4.9606 9.32785 5.11298 9.17548C5.26535 9.0231 5.47201 8.9375 5.6875 8.9375H20.3125C20.528 8.9375 20.7347 9.0231 20.887 9.17548C21.0394 9.32785 21.125 9.53451 21.125 9.75C21.125 9.96549 21.0394 10.1722 20.887 10.3245C20.7347 10.4769 20.528 10.5625 20.3125 10.5625H5.6875C5.47201 10.5625 5.26535 10.4769 5.11298 10.3245C4.9606 10.1722 4.875 9.96549 4.875 9.75ZM4.875 13.8125C4.875 13.597 4.9606 13.3903 5.11298 13.238C5.26535 13.0856 5.47201 13 5.6875 13H13.8125C14.028 13 14.2347 13.0856 14.387 13.238C14.5394 13.3903 14.625 13.597 14.625 13.8125C14.625 14.028 14.5394 14.2347 14.387 14.387C14.2347 14.5394 14.028 14.625 13.8125 14.625H5.6875C5.47201 14.625 5.26535 14.5394 5.11298 14.387C4.9606 14.2347 4.875 14.028 4.875 13.8125Z",
21
+ fill: C.fill
22
+ }, null, 8, s)
23
+ ]));
24
+ }
25
+ });
24
26
  export {
25
- u as default
27
+ h as default
26
28
  };
@@ -1,15 +1,4 @@
1
- import { defineComponent as r } from "vue";
2
- const o = /* @__PURE__ */ r({
3
- __name: "ChatTemplatesIcon",
4
- props: {
5
- fill: { type: String, required: !1, default: "#5F5F5F" }
6
- },
7
- setup(p, { expose: t }) {
8
- t();
9
- const e = {};
10
- return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
11
- }
12
- });
1
+ import f from "./ChatTemplatesIcon.vue.js";
13
2
  export {
14
- o as default
3
+ f as default
15
4
  };
@@ -1,11 +1,11 @@
1
- import { createElementBlock as p, openBlock as c, Fragment as S, createCommentVNode as w, createElementVNode as d, normalizeClass as T, createVNode as k, provide as m, inject as f, ref as r, onMounted as v } from "vue";
2
- import M from "../WABATemplateSelector/WABATemplateSelector.vue.js";
3
- import { useMessageDraft as b } from "../../../hooks/useMessageDraft.js";
1
+ import { provide as h, inject as k, ref as s, onMounted as w, createElementBlock as i, openBlock as u, Fragment as B, createCommentVNode as W, createElementVNode as p, unref as S, normalizeClass as T, createVNode as M } from "vue";
2
+ import V from "../WABATemplateSelector/WABATemplateSelector.vue.js";
3
+ import { useMessageDraft as A } from "../../../hooks/useMessageDraft.js";
4
4
  import "../../../hooks/useSearchModel.js";
5
5
  import "../../../hooks/useTheme.js";
6
6
  import "../../../hooks/useEmojiNative.js";
7
7
  /* empty css */
8
- import V from "../../../_virtual/_plugin-vue_export-helper.js";
8
+ import q from "../../../_virtual/_plugin-vue_export-helper.js";
9
9
  /* empty css */
10
10
  import "../../../locale/useLocale.js";
11
11
  /* empty css */
@@ -13,7 +13,7 @@ import "../../../node_modules/linkifyjs/dist/linkify.js";
13
13
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
14
14
  import "../../../functions/parseMarkdown.js";
15
15
  /* empty css */
16
- const A = {
16
+ const C = {
17
17
  __name: "ButtonWabaTemplateSelector",
18
18
  props: {
19
19
  wabaTemplates: {
@@ -49,83 +49,54 @@ const A = {
49
49
  }
50
50
  },
51
51
  emits: ["sendWabaValues"],
52
- setup(n, { expose: o, emit: a }) {
53
- o();
54
- const e = n;
55
- m("filebumpUrl", e.filebumpUrl);
56
- const l = f("chatAppId"), { getMessage: s } = b(l), y = r(null), t = r(null), i = a, g = () => {
57
- e.mode == "click" && e.state == "active" && (t.value.style.display == "none" ? t.value.style.display = "inherit" : t.value.style.display == "inherit" && (t.value.style.display = "none"));
58
- }, h = () => {
59
- e.mode == "hover" && e.state == "active" && (t.value.style.display = "inherit");
60
- }, _ = () => {
61
- e.mode == "hover" && e.state == "active" && (t.value.style.display = "none");
62
- }, W = () => {
63
- t.value.style.display = "none";
52
+ setup(a, { emit: d }) {
53
+ const t = a;
54
+ h("filebumpUrl", t.filebumpUrl);
55
+ const m = k("chatAppId"), { getMessage: c } = A(m), f = s(null), e = s(null), y = d, v = () => {
56
+ t.mode == "click" && t.state == "active" && (e.value.style.display == "none" ? e.value.style.display = "inherit" : e.value.style.display == "inherit" && (e.value.style.display = "none"));
57
+ }, o = () => {
58
+ t.mode == "hover" && t.state == "active" && (e.value.style.display = "inherit");
59
+ }, l = () => {
60
+ t.mode == "hover" && t.state == "active" && (e.value.style.display = "none");
61
+ }, b = () => {
62
+ e.value.style.display = "none";
64
63
  };
65
- v(() => {
66
- t.value.style.display = "none";
64
+ w(() => {
65
+ e.value.style.display = "none";
67
66
  });
68
- const u = { props: e, chatAppId: l, getMessage: s, templateButton: y, template: t, emit: i, toggle: g, hover: h, hoverout: _, close: W, sendWabaValues: (B) => {
69
- i("sendWabaValues", B);
70
- }, ref: r, onMounted: v, provide: m, inject: f, WABATemplateSelector: M, get useMessageDraft() {
71
- return b;
72
- } };
73
- return Object.defineProperty(u, "__isScriptSetup", { enumerable: !1, value: !0 }), u;
67
+ const g = (n) => {
68
+ y("sendWabaValues", n);
69
+ };
70
+ return (n, r) => (u(), i(B, null, [
71
+ S(c)().isRecording ? W("", !0) : (u(), i("button", {
72
+ key: 0,
73
+ ref_key: "templateButton",
74
+ ref: f,
75
+ class: T(["button-template", { "button-template-disabled": a.state == "disabled" }]),
76
+ onClick: v,
77
+ onMouseover: o,
78
+ onMouseout: l
79
+ }, [...r[0] || (r[0] = [
80
+ p("span", { class: "pi pi-code" }, null, -1)
81
+ ])], 34)),
82
+ p("div", {
83
+ ref_key: "template",
84
+ ref: e,
85
+ onMouseover: o,
86
+ onMouseout: l
87
+ }, [
88
+ M(V, {
89
+ "waba-templates": a.wabaTemplates,
90
+ "group-templates": a.groupTemplates,
91
+ "elevated-window": a.elevatedWindow,
92
+ "chat-background": a.chatBackground,
93
+ onCloseTemplateWindow: b,
94
+ onSendWabaValues: g
95
+ }, null, 8, ["waba-templates", "group-templates", "elevated-window", "chat-background"])
96
+ ], 544)
97
+ ], 64));
74
98
  }
75
- };
76
- function q(n, o, a, e, l, s) {
77
- return c(), p(
78
- S,
79
- null,
80
- [
81
- e.getMessage().isRecording ? w("v-if", !0) : (c(), p(
82
- "button",
83
- {
84
- key: 0,
85
- ref: "templateButton",
86
- class: T(["button-template", { "button-template-disabled": a.state == "disabled" }]),
87
- onClick: e.toggle,
88
- onMouseover: e.hover,
89
- onMouseout: e.hoverout
90
- },
91
- [...o[0] || (o[0] = [
92
- d(
93
- "span",
94
- { class: "pi pi-code" },
95
- null,
96
- -1
97
- /* CACHED */
98
- )
99
- ])],
100
- 34
101
- /* CLASS, NEED_HYDRATION */
102
- )),
103
- d(
104
- "div",
105
- {
106
- ref: "template",
107
- onMouseover: e.hover,
108
- onMouseout: e.hoverout
109
- },
110
- [
111
- k(e.WABATemplateSelector, {
112
- "waba-templates": a.wabaTemplates,
113
- "group-templates": a.groupTemplates,
114
- "elevated-window": a.elevatedWindow,
115
- "chat-background": a.chatBackground,
116
- onCloseTemplateWindow: e.close,
117
- onSendWabaValues: e.sendWabaValues
118
- }, null, 8, ["waba-templates", "group-templates", "elevated-window", "chat-background"])
119
- ],
120
- 544
121
- /* NEED_HYDRATION, NEED_PATCH */
122
- )
123
- ],
124
- 64
125
- /* STABLE_FRAGMENT */
126
- );
127
- }
128
- const K = /* @__PURE__ */ V(A, [["render", q], ["__scopeId", "data-v-367ee7e9"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue"]]);
99
+ }, O = /* @__PURE__ */ q(C, [["__scopeId", "data-v-e300d7b9"]]);
129
100
  export {
130
- K as default
101
+ O as default
131
102
  };
@@ -1,185 +1,7 @@
1
- import v from "./FilePreview.vue2.js";
2
- import { createElementBlock as t, openBlock as l, createElementVNode as e, createBlock as d, withDirectives as _, vShow as f, createCommentVNode as n, toDisplayString as a, Teleport as m, createVNode as p, Transition as w, withCtx as c } from "vue";
1
+ import o from "./FilePreview.vue2.js";
3
2
  /* empty css */
4
- import u from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const y = { class: "preview__container" }, I = { class: "preview__block" }, h = ["src"], k = ["src"], g = {
6
- key: 2,
7
- style: { display: "flex", gap: "5px" }
8
- }, P = ["src"], C = { class: "pi pi-play" }, V = { class: "pi pi-pause" }, x = { key: 3 }, b = { class: "preview__control-block" }, M = { class: "preview__information" }, N = { class: "preview__name" }, T = {
9
- key: 0,
10
- class: "preview__size"
11
- }, U = {
12
- key: 1,
13
- class: "preview__audio-time"
14
- }, z = {
15
- key: 2,
16
- class: "preview__audio-time"
17
- }, D = { class: "preview__reset" }, F = ["src"], A = ["src"];
18
- function B(O, o, i, s, S, E) {
19
- return l(), t("div", y, [
20
- e("div", I, [
21
- i.fileInfo.isImage ? (l(), t("div", {
22
- key: 0,
23
- style: { position: "relative" },
24
- onClick: o[0] || (o[0] = (r) => s.isOpenModal = !0)
25
- }, [
26
- e("img", {
27
- src: i.fileInfo.previewUrl,
28
- alt: "Image Preview",
29
- class: "preview__image"
30
- }, null, 8, h),
31
- o[3] || (o[3] = e(
32
- "div",
33
- { class: "preview__shadow" },
34
- [
35
- e("span", { class: "pi pi-plus-circle" })
36
- ],
37
- -1
38
- /* CACHED */
39
- ))
40
- ])) : i.fileInfo.isVideo ? (l(), t("div", {
41
- key: 1,
42
- style: { position: "relative" },
43
- onClick: o[1] || (o[1] = (r) => s.isOpenModal = !0)
44
- }, [
45
- e("video", {
46
- ref: "video",
47
- src: i.fileInfo.previewUrl,
48
- class: "preview__video"
49
- }, null, 8, k),
50
- o[4] || (o[4] = e(
51
- "div",
52
- { class: "preview__shadow" },
53
- [
54
- e("span", { class: "pi pi-play" })
55
- ],
56
- -1
57
- /* CACHED */
58
- ))
59
- ])) : i.fileInfo.isAudio ? (l(), t("div", g, [
60
- o[5] || (o[5] = e(
61
- "span",
62
- {
63
- class: "pi pi-headphones",
64
- style: { "font-size": "1rem", margin: "auto" }
65
- },
66
- null,
67
- -1
68
- /* CACHED */
69
- )),
70
- e("audio", {
71
- ref: "audio",
72
- src: i.fileInfo.previewUrl
73
- }, null, 8, P),
74
- e("button", {
75
- class: "preview__audio-control",
76
- onClick: s.togglePlayPause
77
- }, [
78
- _(e(
79
- "span",
80
- C,
81
- null,
82
- 512
83
- /* NEED_PATCH */
84
- ), [
85
- [f, !s.isPlaying]
86
- ]),
87
- _(e(
88
- "span",
89
- V,
90
- null,
91
- 512
92
- /* NEED_PATCH */
93
- ), [
94
- [f, s.isPlaying]
95
- ])
96
- ])
97
- ])) : (l(), t("div", x, [...o[6] || (o[6] = [
98
- e(
99
- "span",
100
- {
101
- class: "pi pi-file",
102
- style: { "font-size": "2.5rem" }
103
- },
104
- null,
105
- -1
106
- /* CACHED */
107
- )
108
- ])]))
109
- ]),
110
- e("div", b, [
111
- e("div", M, [
112
- e(
113
- "span",
114
- N,
115
- a(i.fileInfo.fileName),
116
- 1
117
- /* TEXT */
118
- ),
119
- !i.fileInfo.isAudio && !i.fileInfo.isVideo ? (l(), t(
120
- "span",
121
- T,
122
- a(i.fileInfo.fileSize),
123
- 1
124
- /* TEXT */
125
- )) : n("v-if", !0),
126
- i.fileInfo.isAudio ? (l(), t(
127
- "span",
128
- U,
129
- a(`${s.formatCurrentTime} / ${s.formatDuration}`),
130
- 1
131
- /* TEXT */
132
- )) : n("v-if", !0),
133
- i.fileInfo.isVideo ? (l(), t(
134
- "span",
135
- z,
136
- a(s.formatDuration),
137
- 1
138
- /* TEXT */
139
- )) : n("v-if", !0)
140
- ]),
141
- e("div", D, [
142
- e("span", {
143
- class: "pi pi-times",
144
- onClick: o[2] || (o[2] = (r) => s.emit("reset"))
145
- })
146
- ])
147
- ]),
148
- (l(), d(m, { to: "body" }, [
149
- p(w, { name: "modal-fade" }, {
150
- default: c(() => [
151
- s.isOpenModal ? (l(), d(s.ModalFullscreen, {
152
- key: 0,
153
- theme: s.getTheme().theme ? s.getTheme().theme : "",
154
- title: i.fileInfo.fileName,
155
- onClose: s.closeModal
156
- }, {
157
- default: c(() => [
158
- i.fileInfo.isVideo ? (l(), t("video", {
159
- key: 0,
160
- class: "preview__modal-video",
161
- src: i.fileInfo.previewUrl,
162
- controls: "",
163
- autoplay: ""
164
- }, null, 8, F)) : n("v-if", !0),
165
- i.fileInfo.isImage ? (l(), t("img", {
166
- key: 1,
167
- class: "preview__modal-image",
168
- src: i.fileInfo.previewUrl,
169
- alt: "Image Preview"
170
- }, null, 8, A)) : n("v-if", !0)
171
- ]),
172
- _: 1
173
- /* STABLE */
174
- }, 8, ["theme", "title"])) : n("v-if", !0)
175
- ]),
176
- _: 1
177
- /* STABLE */
178
- })
179
- ]))
180
- ]);
181
- }
182
- const J = /* @__PURE__ */ u(v, [["render", B], ["__scopeId", "data-v-a48ddb15"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/FilePreview/FilePreview.vue"]]);
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-94cf2f67"]]);
183
5
  export {
184
- J as default
6
+ i as default
185
7
  };