@mobilon-dev/chotto 0.3.120 → 0.3.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +29 -4
  3. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +40 -59
  4. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +47 -4
  5. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +55 -82
  6. package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +86 -51
  7. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +32 -4
  8. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +7 -28
  9. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +22 -35
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +30 -2
  11. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +37 -4
  12. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +7 -21
  13. package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +30 -19
  14. package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +70 -4
  15. package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +76 -108
  16. package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
  17. package/dist/components/1_icons/CheckIcon.vue.js +26 -13
  18. package/dist/components/1_icons/CloseButtonIcon.vue.js +16 -10
  19. package/dist/components/1_icons/CloseIcon.vue.js +16 -10
  20. package/dist/components/1_icons/ContactCRMIcon.vue.js +16 -10
  21. package/dist/components/1_icons/DeletedMessageIcon.vue.js +27 -0
  22. package/dist/components/1_icons/MenuIcon.vue.js +16 -10
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
  24. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
  26. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
  28. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
  30. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
  32. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
  33. package/dist/components/1_icons/SearchIcon.vue.js +29 -17
  34. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  35. package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
  36. package/dist/components/1_icons/VerifiedBadge.vue.js +25 -19
  37. package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
  38. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +552 -402
  39. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
  40. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
  41. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
  42. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
  43. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +19 -13
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  49. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
  50. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
  51. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
  52. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
  53. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +74 -4
  54. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +12 -46
  55. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
  56. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
  57. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
  58. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
  59. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
  60. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +62 -4
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +80 -98
  63. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
  64. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
  67. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
  68. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
  69. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +76 -45
  70. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +100 -4
  71. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +16 -91
  72. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +79 -4
  73. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +88 -111
  74. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
  75. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
  76. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
  77. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
  78. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
  79. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
  80. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
  81. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
  82. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
  83. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
  84. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
  85. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +32 -58
  86. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
  87. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
  88. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
  89. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
  90. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
  91. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +41 -35
  92. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
  93. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +143 -323
  94. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
  95. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
  96. package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
  97. package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
  98. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
  99. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
  100. package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
  101. package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
  102. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
  103. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +36 -68
  104. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +71 -37
  105. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +83 -62
  106. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
  107. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
  108. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
  109. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
  110. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
  111. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +22 -42
  112. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +460 -4
  113. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +181 -499
  114. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
  115. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
  116. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
  117. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
  118. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
  119. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
  120. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
  121. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
  122. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
  123. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
  124. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
  125. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
  127. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  128. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
  129. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +47 -4
  131. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +37 -46
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
  133. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
  135. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
  136. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue.js +52 -4
  137. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +16 -39
  138. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +270 -4
  139. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +95 -274
  140. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +409 -4
  141. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +143 -422
  142. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
  143. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
  144. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +57 -4
  145. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +41 -69
  146. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +97 -4
  147. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +102 -173
  148. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
  149. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
  150. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
  151. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
  152. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
  153. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
  154. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
  155. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
  156. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
  157. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
  158. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
  159. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
  160. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
  161. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
  162. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
  163. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
  164. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
  165. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
  166. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
  167. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
  168. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
  169. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +34 -118
  170. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
  171. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
  172. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +94 -4
  173. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -76
  174. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
  175. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
  176. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +348 -4
  177. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +97 -339
  178. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
  179. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  180. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +308 -4
  181. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +89 -299
  182. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
  183. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
  184. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +321 -4
  185. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +96 -338
  186. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
  187. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
  188. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +36 -19
  189. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
  190. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
  191. package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
  192. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
  193. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
  194. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
  195. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
  196. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
  197. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
  198. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +170 -4
  199. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +239 -336
  200. package/dist/components/3_compounds/ChatInput/icons/ArrowIcon.vue.js +43 -25
  201. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
  202. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
  203. package/dist/components/3_compounds/ChatList/ChatList.vue.js +256 -166
  204. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +57 -39
  205. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  206. package/dist/components/3_compounds/Feed/Feed.vue.js +185 -4
  207. package/dist/components/3_compounds/Feed/Feed.vue2.js +161 -305
  208. package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
  209. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
  210. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  211. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
  212. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
  213. package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
  214. package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
  215. package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +33 -18
  216. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +90 -59
  217. package/dist/types/src/apps/data/chats.d.ts +9 -2
  218. package/dist/types/src/components/2_chatlist_elements/ChatItem/stories/ChatItem.stories.d.ts +1 -0
  219. package/dist/types/src/components/2_chatlist_elements/ChatItem/types.d.ts +2 -0
  220. package/package.json +1 -1
  221. package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +0 -21
  222. /package/dist/types/src/components/{2_feed_elements/DeletedMessageContent/icons → 1_icons}/DeletedMessageIcon.vue.d.ts +0 -0
@@ -1,6 +1,6 @@
1
- import { defineComponent as _, inject as b, ref as g, computed as N, createElementBlock as l, openBlock as i, createElementVNode as n, createBlock as m, createCommentVNode as o, toDisplayString as c, Teleport as V, createVNode as C, Transition as T, withCtx as d, unref as u } from "vue";
2
- import U from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
3
- import { useTheme as B } from "../../../hooks/useTheme.js";
1
+ import { defineComponent as d, inject as _, ref as I, computed as h } from "vue";
2
+ import v from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
3
+ import { useTheme as w } from "../../../hooks/useTheme.js";
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  import "../../../locale/useLocale.js";
@@ -8,16 +8,7 @@ import "../../../locale/useLocale.js";
8
8
  import "../../../node_modules/linkifyjs/dist/linkify.js";
9
9
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
10
10
  import "../../../functions/parseMarkdown.js";
11
- const x = { class: "preview" }, z = ["src", "alt"], F = ["src"], M = {
12
- key: 2,
13
- class: "pi pi-play preview__thumb-play"
14
- }, S = {
15
- key: 1,
16
- class: "pi pi-file preview__icon"
17
- }, j = { class: "preview__info" }, A = ["title"], E = {
18
- key: 0,
19
- class: "preview__size"
20
- }, O = ["aria-label"], P = ["src"], $ = ["src", "alt"], X = /* @__PURE__ */ _({
11
+ const y = /* @__PURE__ */ d({
21
12
  __name: "FilePreview",
22
13
  props: {
23
14
  fileInfo: {
@@ -26,88 +17,22 @@ const x = { class: "preview" }, z = ["src", "alt"], F = ["src"], M = {
26
17
  }
27
18
  },
28
19
  emits: ["reset"],
29
- setup(e, { emit: v }) {
30
- const p = b("chatAppId"), { getTheme: r } = B(p), s = e, I = v, a = g(!1), h = N(
31
- () => !!s.fileInfo.previewUrl && (s.fileInfo.isImage || s.fileInfo.isVideo)
20
+ setup(n, { expose: s, emit: p }) {
21
+ s();
22
+ const t = _("chatAppId"), { getTheme: m } = w(t), e = n, c = p, o = I(!1), f = h(
23
+ () => !!e.fileInfo.previewUrl && (e.fileInfo.isImage || e.fileInfo.isVideo)
32
24
  );
33
- function w() {
34
- a.value = !1;
25
+ function a() {
26
+ o.value = !1;
35
27
  }
36
- function y(f) {
37
- const t = f.target;
38
- t.currentTime === 0 && (t.currentTime = 0.1);
28
+ function l(u) {
29
+ const i = u.target;
30
+ i.currentTime === 0 && (i.currentTime = 0.1);
39
31
  }
40
- return (f, t) => (i(), l("div", x, [
41
- h.value ? (i(), l("div", {
42
- key: 0,
43
- class: "preview__thumb",
44
- onClick: t[0] || (t[0] = (k) => a.value = !0)
45
- }, [
46
- e.fileInfo.isImage ? (i(), l("img", {
47
- key: 0,
48
- src: e.fileInfo.previewUrl,
49
- alt: e.fileInfo.fileName,
50
- class: "preview__thumb-media"
51
- }, null, 8, z)) : e.fileInfo.isVideo ? (i(), l("video", {
52
- key: 1,
53
- src: e.fileInfo.previewUrl,
54
- class: "preview__thumb-media",
55
- muted: "",
56
- playsinline: "",
57
- preload: "metadata",
58
- onLoadedmetadata: y
59
- }, null, 40, F)) : o("", !0),
60
- e.fileInfo.isVideo ? (i(), l("span", M)) : o("", !0)
61
- ])) : (i(), l("span", S)),
62
- n("div", j, [
63
- n("span", {
64
- class: "preview__name",
65
- title: e.fileInfo.fileName
66
- }, c(e.fileInfo.fileName), 9, A),
67
- e.fileInfo.fileSize ? (i(), l("span", E, c(e.fileInfo.fileSize), 1)) : o("", !0)
68
- ]),
69
- n("button", {
70
- type: "button",
71
- class: "preview__reset",
72
- "aria-label": e.fileInfo.fileName,
73
- onClick: t[1] || (t[1] = (k) => I("reset"))
74
- }, [...t[2] || (t[2] = [
75
- n("span", { class: "pi pi-times" }, null, -1)
76
- ])], 8, O),
77
- (i(), m(V, { to: "body" }, [
78
- C(T, { name: "modal-fade" }, {
79
- default: d(() => [
80
- a.value ? (i(), m(U, {
81
- key: 0,
82
- theme: u(r)().theme ? u(r)().theme : "light",
83
- title: e.fileInfo.fileName,
84
- onClose: w
85
- }, {
86
- default: d(() => [
87
- e.fileInfo.isVideo ? (i(), l("video", {
88
- key: 0,
89
- class: "preview__modal-video",
90
- src: e.fileInfo.previewUrl,
91
- controls: "",
92
- autoplay: "",
93
- playsinline: ""
94
- }, null, 8, P)) : o("", !0),
95
- e.fileInfo.isImage ? (i(), l("img", {
96
- key: 1,
97
- class: "preview__modal-image",
98
- src: e.fileInfo.previewUrl,
99
- alt: e.fileInfo.fileName
100
- }, null, 8, $)) : o("", !0)
101
- ]),
102
- _: 1
103
- }, 8, ["theme", "title"])) : o("", !0)
104
- ]),
105
- _: 1
106
- })
107
- ]))
108
- ]));
32
+ const r = { chatAppId: t, getTheme: m, props: e, emit: c, isOpenModal: o, hasVisualPreview: f, closeModal: a, showVideoFrame: l, ModalFullscreen: v };
33
+ return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
109
34
  }
110
35
  });
111
36
  export {
112
- X as default
37
+ y as default
113
38
  };
@@ -1,7 +1,82 @@
1
- import o from "./FileUploader.vue2.js";
1
+ import d from "./FileUploader.vue2.js";
2
+ import { createElementBlock as t, openBlock as a, Fragment as s, createCommentVNode as i, createElementVNode as o, normalizeClass as u, createVNode as p } from "vue";
2
3
  /* empty css */
3
- import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ a(o, [["__scopeId", "data-v-c9303aac"]]);
4
+ import c from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ const f = {
6
+ key: 0,
7
+ class: "file-uploader__status file-uploader__status--uploading"
8
+ }, _ = {
9
+ key: 1,
10
+ class: "file-uploader__status file-uploader__status--error"
11
+ }, m = ["disabled"];
12
+ function g(v, l, n, e, F, U) {
13
+ return a(), t(
14
+ s,
15
+ null,
16
+ [
17
+ e.uploadStatus === "uploading" ? (a(), t("div", f, [...l[2] || (l[2] = [
18
+ o(
19
+ "span",
20
+ null,
21
+ "Загрузка",
22
+ -1
23
+ /* CACHED */
24
+ ),
25
+ o(
26
+ "span",
27
+ null,
28
+ "файла...",
29
+ -1
30
+ /* CACHED */
31
+ )
32
+ ])])) : e.uploadStatus === "error" ? (a(), t("div", _, [...l[3] || (l[3] = [
33
+ o(
34
+ "span",
35
+ null,
36
+ "Ошибка при загрузке файла.",
37
+ -1
38
+ /* CACHED */
39
+ )
40
+ ])])) : i("v-if", !0),
41
+ i(` <ButtonContextMenu
42
+ v-else-if="!getMessage().isRecording"
43
+ :actions="actions"
44
+ :mode="'hover'"
45
+ :menu-side="'top'"
46
+ :disabled="!canUploadFile || state == 'disabled'"
47
+ @click="triggerFileUpload"
48
+ @button-click="triggerFileUploadDefault"
49
+ > `),
50
+ o("span", {
51
+ ref: "triggerElement",
52
+ class: u(["file-uploader__trigger", { "file-uploader__disabled": !e.canUploadFile || n.state == "disabled" }]),
53
+ disabled: !e.canUploadFile || n.state == "disabled",
54
+ onClick: e.triggerFileUploadDefault,
55
+ onMouseenter: l[0] || (l[0] = (r) => e.isHovered = !0),
56
+ onMouseleave: l[1] || (l[1] = (r) => e.isHovered = !1)
57
+ }, [
58
+ p(e.FileUploaderIcon, { fill: e.currentIconColor }, null, 8, ["fill"])
59
+ ], 42, m),
60
+ i(" </ButtonContextMenu> "),
61
+ o(
62
+ "input",
63
+ {
64
+ ref: "fileInput",
65
+ style: { display: "none" },
66
+ type: "file",
67
+ multiple: "",
68
+ onChange: e.onFileSelected
69
+ },
70
+ null,
71
+ 544
72
+ /* NEED_HYDRATION, NEED_PATCH */
73
+ )
74
+ ],
75
+ 64
76
+ /* STABLE_FRAGMENT */
77
+ );
78
+ }
79
+ const y = /* @__PURE__ */ c(d, [["render", g], ["__scopeId", "data-v-b26588f6"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/FileUploader/FileUploader.vue"]]);
5
80
  export {
6
- c as default
81
+ y as default
7
82
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as L, ref as i, inject as U, computed as _, unref as S, watchEffect as O, watch as $, onMounted as T, onUnmounted as R, createElementBlock as w, openBlock as A, Fragment as X, createCommentVNode as q, createElementVNode as c, normalizeClass as G, createVNode as J } from "vue";
2
- import { buildFilePreview as K } from "../../../hooks/uploadFile/generatePreview.js";
3
- import { useChottoUploader as Q } from "../../../hooks/uploadFile/useChottoUploader.js";
4
- import { MAX_ATTACHED_FILES as D, useMessageDraft as W, getDraftFiles as C } from "../../../hooks/useMessageDraft.js";
1
+ import { defineComponent as B, ref as c, inject as D, computed as w, unref as T, watchEffect as V, watch as R, onMounted as X, onUnmounted as q } from "vue";
2
+ import { buildFilePreview as G } from "../../../hooks/uploadFile/generatePreview.js";
3
+ import { useChottoUploader as J } from "../../../hooks/uploadFile/useChottoUploader.js";
4
+ import { MAX_ATTACHED_FILES as O, useMessageDraft as K, getDraftFiles as A } from "../../../hooks/useMessageDraft.js";
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  import "../../../locale/useLocale.js";
@@ -9,14 +9,8 @@ import "../../../locale/useLocale.js";
9
9
  import "../../../node_modules/linkifyjs/dist/linkify.js";
10
10
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
11
11
  import "../../../functions/parseMarkdown.js";
12
- import Y from "./icons/FileUploaderIcon.vue.js";
13
- const Z = {
14
- key: 0,
15
- class: "file-uploader__status file-uploader__status--uploading"
16
- }, ee = {
17
- key: 1,
18
- class: "file-uploader__status file-uploader__status--error"
19
- }, te = ["disabled"], ve = /* @__PURE__ */ L({
12
+ import Q from "./icons/FileUploaderIcon.vue.js";
13
+ const se = /* @__PURE__ */ B({
20
14
  __name: "FileUploader",
21
15
  props: {
22
16
  /**
@@ -41,125 +35,108 @@ const Z = {
41
35
  }
42
36
  },
43
37
  emits: ["fileUploaded"],
44
- setup(v, { emit: le }) {
45
- const s = v, { upload: N } = Q({
46
- uploader: () => s.uploader,
47
- filebumpUrl: () => s.filebumpUrl
48
- }), a = i(""), r = i(), M = i();
49
- M.value;
50
- const u = U("chatAppId"), V = U("maxAttachedFiles", D), { addMessageFiles: B, getMessage: g, setRecordingMessage: E } = W(u), F = _(() => {
51
- const t = s.maxAttachedFiles;
52
- if (typeof t == "number" && t > 0) return Math.floor(t);
53
- const e = S(V);
54
- return typeof e == "number" && e > 0 ? Math.floor(e) : D;
55
- }), f = i("#5F5F5F"), p = i("#404040"), y = i(!1);
56
- let d = null;
57
- const h = () => {
58
- if (!u) {
59
- f.value = "#5F5F5F", p.value = "#404040";
38
+ setup(P, { expose: j, emit: H }) {
39
+ j();
40
+ const i = P, { upload: _ } = J({
41
+ uploader: () => i.uploader,
42
+ filebumpUrl: () => i.filebumpUrl
43
+ }), a = c(""), n = c(), I = c();
44
+ I.value;
45
+ const s = D("chatAppId"), M = D("maxAttachedFiles", O), { addMessageFiles: U, getMessage: f, setRecordingMessage: h } = K(s), m = w(() => {
46
+ const e = i.maxAttachedFiles;
47
+ if (typeof e == "number" && e > 0) return Math.floor(e);
48
+ const t = T(M);
49
+ return typeof t == "number" && t > 0 ? Math.floor(t) : O;
50
+ }), p = c("#5F5F5F"), d = c("#404040"), C = c(!1);
51
+ let l = null;
52
+ const v = () => {
53
+ if (!s) {
54
+ p.value = "#5F5F5F", d.value = "#404040";
60
55
  return;
61
56
  }
62
- const t = document.getElementById(u);
63
- if (!t) {
64
- f.value = "#5F5F5F", p.value = "#404040";
57
+ const e = document.getElementById(s);
58
+ if (!e) {
59
+ p.value = "#5F5F5F", d.value = "#404040";
65
60
  return;
66
61
  }
67
- const e = window.getComputedStyle(t), l = e.getPropertyValue("--chotto-fileuploader-trigger-color").trim(), n = e.getPropertyValue("--chotto-fileuploader-trigger-hover-color").trim();
68
- f.value = l || "#5F5F5F", p.value = n || "#404040";
69
- }, P = _(() => y.value ? p.value : f.value);
70
- O(() => {
71
- h();
62
+ const t = window.getComputedStyle(e), o = t.getPropertyValue("--chotto-fileuploader-trigger-color").trim(), u = t.getPropertyValue("--chotto-fileuploader-trigger-hover-color").trim();
63
+ p.value = o || "#5F5F5F", d.value = u || "#404040";
64
+ }, L = w(() => C.value ? d.value : p.value);
65
+ V(() => {
66
+ v();
72
67
  });
73
- const m = _(() => C(g()).length < F.value), b = () => {
74
- r.value && (r.value.value = "");
75
- }, j = () => F.value - C(g()).length, I = async (t) => {
76
- const e = t.slice(0, Math.max(0, j()));
77
- if (e.length) {
78
- a.value = "uploading", E(!0);
68
+ const N = H, F = w(() => A(f()).length < m.value), g = () => {
69
+ n.value && (n.value.value = "");
70
+ }, S = () => m.value - A(f()).length, y = async (e) => {
71
+ const t = e.slice(0, Math.max(0, S()));
72
+ if (t.length) {
73
+ a.value = "uploading", h(!0);
79
74
  try {
80
- const l = [];
81
- for (const n of e) {
82
- const o = await N(n, { kind: "file" });
83
- o.status == "success" ? l.push({
84
- url: o.url,
85
- name: o.name,
86
- size: o.size,
87
- type: o.type,
88
- preview: K(o.name, o.preview)
75
+ const o = [];
76
+ for (const u of t) {
77
+ const r = await _(u, { kind: "file" });
78
+ r.status == "success" ? o.push({
79
+ url: r.url,
80
+ name: r.name,
81
+ size: r.size,
82
+ type: r.type,
83
+ preview: G(r.name, r.preview)
89
84
  }) : a.value = "error";
90
85
  }
91
- l.length ? (B(l, F.value), a.value !== "error" && (a.value = "success")) : a.value !== "error" && (a.value = "error");
86
+ o.length ? (U(o, m.value), a.value !== "error" && (a.value = "success")) : a.value !== "error" && (a.value = "error");
92
87
  } finally {
93
- E(!1);
88
+ h(!1);
94
89
  }
95
90
  }
96
- }, z = async () => {
97
- var l;
98
- const t = (l = r.value) == null ? void 0 : l.files, e = t ? Array.from(t) : [];
99
- b(), await I(e);
100
- }, H = () => {
101
- r.value && m.value && s.state == "active" && (b(), r.value.click());
102
- }, k = async (t) => {
103
- var n;
104
- if (!m.value || s.state !== "active") return;
105
- const e = (n = t.clipboardData) == null ? void 0 : n.items;
106
- if (!e) return;
107
- const l = [];
108
- for (const o of e)
109
- if (o.type.indexOf("image") !== -1) {
110
- const x = o.getAsFile();
111
- x && l.push(x);
91
+ }, k = async () => {
92
+ var o;
93
+ const e = (o = n.value) == null ? void 0 : o.files, t = e ? Array.from(e) : [];
94
+ g(), await y(t);
95
+ }, z = () => {
96
+ n.value && F.value && i.state == "active" && (g(), n.value.click());
97
+ }, b = async (e) => {
98
+ var u;
99
+ if (!F.value || i.state !== "active") return;
100
+ const t = (u = e.clipboardData) == null ? void 0 : u.items;
101
+ if (!t) return;
102
+ const o = [];
103
+ for (const r of t)
104
+ if (r.type.indexOf("image") !== -1) {
105
+ const E = r.getAsFile();
106
+ E && o.push(E);
112
107
  }
113
- l.length && (t.preventDefault(), await I(l));
108
+ o.length && (e.preventDefault(), await y(o));
114
109
  };
115
- return $(
116
- () => C(g()).length,
117
- (t) => {
118
- t || (a.value = "", b());
110
+ R(
111
+ () => A(f()).length,
112
+ (e) => {
113
+ e || (a.value = "", g());
119
114
  }
120
- ), T(() => {
121
- if (window.addEventListener("paste", k), h(), u) {
122
- const t = document.getElementById(u);
123
- t && (d = new MutationObserver((e) => {
124
- e.forEach((l) => {
125
- l.type === "attributes" && l.attributeName === "data-theme" && h();
115
+ ), X(() => {
116
+ if (window.addEventListener("paste", b), v(), s) {
117
+ const e = document.getElementById(s);
118
+ e && (l = new MutationObserver((t) => {
119
+ t.forEach((o) => {
120
+ o.type === "attributes" && o.attributeName === "data-theme" && v();
126
121
  });
127
- }), d.observe(t, {
122
+ }), l.observe(e, {
128
123
  attributes: !0,
129
124
  attributeFilter: ["data-theme"]
130
125
  }));
131
126
  }
132
- }), R(() => {
133
- window.removeEventListener("paste", k), d && (d.disconnect(), d = null);
134
- }), (t, e) => (A(), w(X, null, [
135
- a.value === "uploading" ? (A(), w("div", Z, [...e[2] || (e[2] = [
136
- c("span", null, "Загрузка", -1),
137
- c("span", null, "файла...", -1)
138
- ])])) : a.value === "error" ? (A(), w("div", ee, [...e[3] || (e[3] = [
139
- c("span", null, "Ошибка при загрузке файла.", -1)
140
- ])])) : q("", !0),
141
- c("span", {
142
- ref_key: "triggerElement",
143
- ref: M,
144
- class: G(["file-uploader__trigger", { "file-uploader__disabled": !m.value || v.state == "disabled" }]),
145
- disabled: !m.value || v.state == "disabled",
146
- onClick: H,
147
- onMouseenter: e[0] || (e[0] = (l) => y.value = !0),
148
- onMouseleave: e[1] || (e[1] = (l) => y.value = !1)
149
- }, [
150
- J(S(Y), { fill: P.value }, null, 8, ["fill"])
151
- ], 42, te),
152
- c("input", {
153
- ref_key: "fileInput",
154
- ref: r,
155
- style: { display: "none" },
156
- type: "file",
157
- multiple: "",
158
- onChange: z
159
- }, null, 544)
160
- ], 64));
127
+ }), q(() => {
128
+ window.removeEventListener("paste", b), l && (l.disconnect(), l = null);
129
+ });
130
+ const x = { props: i, upload: _, uploadStatus: a, fileInput: n, triggerElement: I, chatAppId: s, injectedMaxAttachedFiles: M, addMessageFiles: U, getMessage: f, setRecordingMessage: h, maxAttachedFiles: m, iconFillColor: p, iconHoverColor: d, isHovered: C, get themeObserver() {
131
+ return l;
132
+ }, set themeObserver(e) {
133
+ l = e;
134
+ }, updateIconColor: v, currentIconColor: L, emit: N, canUploadFile: F, resetNativeFileInput: g, remainingSlots: S, uploadAndAttach: y, onFileSelected: k, triggerFileUploadDefault: z, pasteFromClipboard: b, get FileUploaderIcon() {
135
+ return Q;
136
+ } };
137
+ return Object.defineProperty(x, "__isScriptSetup", { enumerable: !1, value: !0 }), x;
161
138
  }
162
139
  });
163
140
  export {
164
- ve as default
141
+ se as default
165
142
  };
@@ -1,24 +1,22 @@
1
- import { defineComponent as e, createElementBlock as t, openBlock as l, createElementVNode as o } from "vue";
2
- const n = {
1
+ import o from "./FileUploaderIcon.vue2.js";
2
+ import { createElementBlock as t, openBlock as C, createElementVNode as r } from "vue";
3
+ import c from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const l = {
3
5
  width: "26",
4
6
  height: "26",
5
7
  viewBox: "0 0 26 26",
6
8
  fill: "none",
7
9
  xmlns: "http://www.w3.org/2000/svg"
8
- }, i = ["fill"], a = /* @__PURE__ */ e({
9
- __name: "FileUploaderIcon",
10
- props: {
11
- fill: { default: "#5F5F5F" }
12
- },
13
- setup(C) {
14
- return (c, r) => (l(), t("svg", n, [
15
- o("path", {
16
- d: "M7.3125 4.875C7.3125 3.79756 7.74051 2.76425 8.50238 2.00238C9.26425 1.24051 10.2976 0.8125 11.375 0.8125C12.4524 0.8125 13.4858 1.24051 14.2476 2.00238C15.0095 2.76425 15.4375 3.79756 15.4375 4.875V19.5C15.4375 20.1465 15.1807 20.7665 14.7236 21.2236C14.2665 21.6807 13.6465 21.9375 13 21.9375C12.3535 21.9375 11.7335 21.6807 11.2764 21.2236C10.8193 20.7665 10.5625 20.1465 10.5625 19.5V8.125C10.5625 7.90951 10.6481 7.70285 10.8005 7.55048C10.9528 7.3981 11.1595 7.3125 11.375 7.3125C11.5905 7.3125 11.7972 7.3981 11.9495 7.55048C12.1019 7.70285 12.1875 7.90951 12.1875 8.125V19.5C12.1875 19.7155 12.2731 19.9222 12.4255 20.0745C12.5778 20.2269 12.7845 20.3125 13 20.3125C13.2155 20.3125 13.4222 20.2269 13.5745 20.0745C13.7269 19.9222 13.8125 19.7155 13.8125 19.5V4.875C13.8125 4.5549 13.7495 4.23794 13.627 3.94221C13.5045 3.64648 13.3249 3.37777 13.0986 3.15143C12.8722 2.92508 12.6035 2.74554 12.3078 2.62304C12.0121 2.50055 11.6951 2.4375 11.375 2.4375C11.0549 2.4375 10.7379 2.50055 10.4422 2.62304C10.1465 2.74554 9.87777 2.92508 9.65143 3.15143C9.42508 3.37777 9.24554 3.64648 9.12304 3.94221C9.00055 4.23794 8.9375 4.5549 8.9375 4.875V19.5C8.9375 20.5774 9.36551 21.6108 10.1274 22.3726C10.8892 23.1345 11.9226 23.5625 13 23.5625C14.0774 23.5625 15.1108 23.1345 15.8726 22.3726C16.6345 21.6108 17.0625 20.5774 17.0625 19.5V8.125C17.0625 7.90951 17.1481 7.70285 17.3005 7.55048C17.4528 7.3981 17.6595 7.3125 17.875 7.3125C18.0905 7.3125 18.2972 7.3981 18.4495 7.55048C18.6019 7.70285 18.6875 7.90951 18.6875 8.125V19.5C18.6875 21.0084 18.0883 22.4551 17.0217 23.5217C15.9551 24.5883 14.5084 25.1875 13 25.1875C11.4916 25.1875 10.0449 24.5883 8.97833 23.5217C7.91172 22.4551 7.3125 21.0084 7.3125 19.5V4.875Z",
17
- fill: C.fill
18
- }, null, 8, i)
19
- ]));
20
- }
21
- });
10
+ }, n = ["fill"];
11
+ function s(i, p, e, _, a, d) {
12
+ return C(), t("svg", l, [
13
+ r("path", {
14
+ d: "M7.3125 4.875C7.3125 3.79756 7.74051 2.76425 8.50238 2.00238C9.26425 1.24051 10.2976 0.8125 11.375 0.8125C12.4524 0.8125 13.4858 1.24051 14.2476 2.00238C15.0095 2.76425 15.4375 3.79756 15.4375 4.875V19.5C15.4375 20.1465 15.1807 20.7665 14.7236 21.2236C14.2665 21.6807 13.6465 21.9375 13 21.9375C12.3535 21.9375 11.7335 21.6807 11.2764 21.2236C10.8193 20.7665 10.5625 20.1465 10.5625 19.5V8.125C10.5625 7.90951 10.6481 7.70285 10.8005 7.55048C10.9528 7.3981 11.1595 7.3125 11.375 7.3125C11.5905 7.3125 11.7972 7.3981 11.9495 7.55048C12.1019 7.70285 12.1875 7.90951 12.1875 8.125V19.5C12.1875 19.7155 12.2731 19.9222 12.4255 20.0745C12.5778 20.2269 12.7845 20.3125 13 20.3125C13.2155 20.3125 13.4222 20.2269 13.5745 20.0745C13.7269 19.9222 13.8125 19.7155 13.8125 19.5V4.875C13.8125 4.5549 13.7495 4.23794 13.627 3.94221C13.5045 3.64648 13.3249 3.37777 13.0986 3.15143C12.8722 2.92508 12.6035 2.74554 12.3078 2.62304C12.0121 2.50055 11.6951 2.4375 11.375 2.4375C11.0549 2.4375 10.7379 2.50055 10.4422 2.62304C10.1465 2.74554 9.87777 2.92508 9.65143 3.15143C9.42508 3.37777 9.24554 3.64648 9.12304 3.94221C9.00055 4.23794 8.9375 4.5549 8.9375 4.875V19.5C8.9375 20.5774 9.36551 21.6108 10.1274 22.3726C10.8892 23.1345 11.9226 23.5625 13 23.5625C14.0774 23.5625 15.1108 23.1345 15.8726 22.3726C16.6345 21.6108 17.0625 20.5774 17.0625 19.5V8.125C17.0625 7.90951 17.1481 7.70285 17.3005 7.55048C17.4528 7.3981 17.6595 7.3125 17.875 7.3125C18.0905 7.3125 18.2972 7.3981 18.4495 7.55048C18.6019 7.70285 18.6875 7.90951 18.6875 8.125V19.5C18.6875 21.0084 18.0883 22.4551 17.0217 23.5217C15.9551 24.5883 14.5084 25.1875 13 25.1875C11.4916 25.1875 10.0449 24.5883 8.97833 23.5217C7.91172 22.4551 7.3125 21.0084 7.3125 19.5V4.875Z",
15
+ fill: e.fill
16
+ }, null, 8, n)
17
+ ]);
18
+ }
19
+ const V = /* @__PURE__ */ c(o, [["render", s], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue"]]);
22
20
  export {
23
- a as default
21
+ V as default
24
22
  };
@@ -1,4 +1,15 @@
1
- import f from "./FileUploaderIcon.vue.js";
1
+ import { defineComponent as t } from "vue";
2
+ const o = /* @__PURE__ */ t({
3
+ __name: "FileUploaderIcon",
4
+ props: {
5
+ fill: { type: String, required: !1, default: "#5F5F5F" }
6
+ },
7
+ setup(p, { expose: r }) {
8
+ r();
9
+ const e = {};
10
+ return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
11
+ }
12
+ });
2
13
  export {
3
- f as default
14
+ o as default
4
15
  };
@@ -1,7 +1,7 @@
1
- import { inject as p, ref as c, watch as g, onMounted as h, onUnmounted as v, createElementBlock as y, openBlock as w, withKeys as x, normalizeClass as k, unref as E, toDisplayString as F, nextTick as B } from "vue";
1
+ import { createElementBlock as w, openBlock as b, withKeys as E, normalizeClass as F, toDisplayString as k, inject as f, ref as d, watch as h, onMounted as _, onUnmounted as v, nextTick as g } from "vue";
2
2
  /* empty css */
3
- import _ from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const b = ["id"], I = {
3
+ import B from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const C = {
5
5
  __name: "PlaceholderComponent",
6
6
  props: {
7
7
  index: {
@@ -18,49 +18,55 @@ const b = ["id"], I = {
18
18
  }
19
19
  },
20
20
  emits: ["edit"],
21
- setup(l, { emit: u }) {
22
- const i = p("chatAppId"), e = l, s = u, n = c(e.value), r = c();
23
- g(
21
+ setup(c, { expose: s, emit: l }) {
22
+ s();
23
+ const t = f("chatAppId"), e = c, r = l, o = d(e.value), u = d();
24
+ h(
24
25
  () => e.isFilled,
25
26
  () => {
26
- e.isFilled || (n.value = "Заполнить");
27
+ e.isFilled || (o.value = "Заполнить");
27
28
  },
28
29
  { immediate: !0 }
29
30
  );
30
- const f = (t) => {
31
+ const y = (n) => {
31
32
  if (!e.isFilled) {
32
- n.value = "";
33
- const o = window.getSelection();
34
- o.getRangeAt && o.rangeCount && o.getRangeAt(0).selectNodeContents(t.target);
33
+ o.value = "";
34
+ const i = window.getSelection();
35
+ i.getRangeAt && i.rangeCount && i.getRangeAt(0).selectNodeContents(n.target);
35
36
  }
36
37
  };
37
- function a() {
38
- n.value = r.value.innerText.trim(), e.value != n.value && (n.value != "" ? s("edit", [n.value, e.index]) : e.isFilled ? B(() => {
39
- n.value = e.value;
40
- }) : n.value = "Заполнить");
38
+ function p() {
39
+ o.value = u.value.innerText.trim(), e.value != o.value && (o.value != "" ? r("edit", [o.value, e.index]) : e.isFilled ? g(() => {
40
+ o.value = e.value;
41
+ }) : o.value = "Заполнить");
41
42
  }
42
- function m(t) {
43
- t.target.blur(), a();
43
+ function x(n) {
44
+ n.target.blur(), p();
44
45
  }
45
- function d(t) {
46
- t.target == document.getElementById("placeholder" + i + e.index) && (t.key === "Escape" && t.target.blur(), t.key == "Tab" && (t.target.blur(), document.getElementById("placeholder" + i + (e.index + 1)) && (t.preventDefault(), document.getElementById("placeholder" + i + (e.index + 1)).focus())));
46
+ function a(n) {
47
+ n.target == document.getElementById("placeholder" + t + e.index) && (n.key === "Escape" && n.target.blur(), n.key == "Tab" && (n.target.blur(), document.getElementById("placeholder" + t + (e.index + 1)) && (n.preventDefault(), document.getElementById("placeholder" + t + (e.index + 1)).focus())));
47
48
  }
48
- return h(() => {
49
- window.addEventListener("keydown", d);
49
+ _(() => {
50
+ window.addEventListener("keydown", a);
50
51
  }), v(() => {
51
- window.removeEventListener("keydown", d);
52
- }), (t, o) => (w(), y("span", {
53
- id: "placeholder" + E(i) + l.index,
54
- ref_key: "refPlaceholder",
55
- ref: r,
56
- contenteditable: "",
57
- class: k([{ filled: l.isFilled, empty: !l.isFilled }, "placeholder"]),
58
- onKeydown: x(m, ["enter"]),
59
- onFocus: f,
60
- onBlur: a
61
- }, F(n.value), 43, b));
52
+ window.removeEventListener("keydown", a);
53
+ });
54
+ const m = { chatAppId: t, props: e, emit: r, v: o, refPlaceholder: u, prepare: y, validate: p, handleEnter: x, handleKey: a, onMounted: _, onUnmounted: v, ref: d, inject: f, nextTick: g, watch: h };
55
+ return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
62
56
  }
63
- }, K = /* @__PURE__ */ _(I, [["__scopeId", "data-v-558891d3"]]);
57
+ }, I = ["id"];
58
+ function P(c, s, l, t, e, r) {
59
+ return b(), w("span", {
60
+ id: "placeholder" + t.chatAppId + l.index,
61
+ ref: "refPlaceholder",
62
+ contenteditable: "",
63
+ class: F([{ filled: l.isFilled, empty: !l.isFilled }, "placeholder"]),
64
+ onKeydown: E(t.handleEnter, ["enter"]),
65
+ onFocus: t.prepare,
66
+ onBlur: t.validate
67
+ }, k(t.v), 43, I);
68
+ }
69
+ const K = /* @__PURE__ */ B(C, [["render", P], ["__scopeId", "data-v-baf97a88"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue"]]);
64
70
  export {
65
71
  K as default
66
72
  };