@mobilon-dev/chotto 0.3.121 → 0.3.123

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 (219) 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 +59 -40
  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 +35 -22
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +2 -30
  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/DeletedMessageIcon.vue.js +11 -17
  22. package/dist/components/1_icons/MenuIcon.vue.js +10 -16
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +3 -23
  24. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +21 -12
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +4 -36
  26. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +26 -11
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +3 -23
  28. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +21 -12
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +3 -23
  30. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +20 -11
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +4 -33
  32. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +23 -11
  33. package/dist/components/1_icons/SearchIcon.vue.js +17 -29
  34. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  35. package/dist/components/1_icons/TelegramIcon.vue.js +20 -32
  36. package/dist/components/1_icons/VerifiedBadge.vue.js +19 -25
  37. package/dist/components/1_icons/WhatsAppIcon.vue.js +20 -32
  38. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +402 -552
  39. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +58 -101
  40. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +8 -14
  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 +13 -19
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +10 -16
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +23 -35
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +20 -32
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +11 -17
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  49. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +20 -32
  50. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +21 -33
  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 +4 -74
  54. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +46 -12
  55. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +4 -62
  56. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +36 -15
  57. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +4 -49
  58. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +45 -22
  59. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +4 -36
  60. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +37 -19
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +4 -62
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +98 -80
  63. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +27 -31
  64. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +2 -13
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +4 -72
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +83 -47
  67. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +21 -19
  68. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +2 -13
  69. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +45 -76
  70. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +4 -100
  71. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +91 -16
  72. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +4 -79
  73. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +111 -88
  74. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +17 -15
  75. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +2 -13
  76. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +33 -39
  77. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +4 -220
  78. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +256 -146
  79. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +41 -39
  80. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +2 -13
  81. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +163 -233
  82. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +4 -164
  83. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +175 -87
  84. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +4 -73
  85. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +58 -32
  86. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +4 -47
  87. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +23 -10
  88. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +4 -52
  89. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +26 -8
  90. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +220 -299
  91. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +35 -41
  92. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +4 -306
  93. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +314 -131
  94. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +12 -18
  95. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +11 -23
  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 +22 -34
  98. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +9 -15
  99. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +14 -26
  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 +24 -52
  102. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +4 -84
  103. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +68 -36
  104. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +37 -71
  105. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +62 -83
  106. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +29 -41
  107. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +115 -176
  108. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +27 -48
  109. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +28 -58
  110. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +4 -54
  111. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +42 -22
  112. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +4 -460
  113. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +499 -181
  114. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +4 -19
  115. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +22 -12
  116. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +4 -26
  117. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +39 -26
  118. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +4 -482
  119. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +448 -148
  120. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +19 -17
  121. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +2 -13
  122. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +19 -17
  123. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +2 -13
  124. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +4 -17
  125. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +3 -16
  127. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  128. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +4 -67
  129. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +43 -11
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +4 -47
  131. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +46 -37
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +4 -22
  133. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +15 -8
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +4 -43
  135. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +25 -10
  136. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue.js +4 -52
  137. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +39 -16
  138. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +4 -270
  139. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +274 -95
  140. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +4 -409
  141. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +422 -143
  142. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +4 -39
  143. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +22 -12
  144. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +4 -57
  145. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +69 -41
  146. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +4 -97
  147. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +173 -102
  148. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +20 -32
  149. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +20 -32
  150. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +11 -17
  151. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +10 -16
  152. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +11 -17
  153. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +4 -22
  154. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +23 -17
  155. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +4 -28
  156. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +29 -27
  157. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +4 -142
  158. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +121 -33
  159. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +22 -34
  160. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +4 -55
  161. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +30 -8
  162. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +4 -47
  163. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +25 -9
  164. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +4 -56
  165. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +37 -8
  166. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +4 -72
  167. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +59 -10
  168. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +4 -142
  169. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +118 -34
  170. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +4 -49
  171. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +53 -15
  172. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +4 -94
  173. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +76 -10
  174. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +4 -18
  175. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +17 -9
  176. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +4 -348
  177. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +339 -97
  178. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +4 -17
  179. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  180. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +4 -308
  181. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +299 -89
  182. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +4 -37
  183. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +21 -7
  184. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +4 -321
  185. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +338 -96
  186. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +4 -64
  187. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +45 -10
  188. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +19 -36
  189. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +92 -140
  190. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +49 -96
  191. package/dist/components/2_modals/Modal/Modal.vue.js +50 -59
  192. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +38 -51
  193. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +30 -39
  194. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +4 -155
  195. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +121 -49
  196. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +43 -60
  197. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +24 -41
  198. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +4 -170
  199. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +336 -239
  200. package/dist/components/3_compounds/ChatInput/icons/ArrowIcon.vue.js +25 -43
  201. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +21 -25
  202. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +2 -13
  203. package/dist/components/3_compounds/ChatList/ChatList.vue.js +166 -256
  204. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +39 -57
  205. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  206. package/dist/components/3_compounds/Feed/Feed.vue.js +4 -185
  207. package/dist/components/3_compounds/Feed/Feed.vue2.js +314 -161
  208. package/dist/components/3_compounds/Feed/composables/useFeedScroll.js +19 -17
  209. package/dist/components/3_compounds/SideBar/SideBar.vue.js +202 -279
  210. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +36 -43
  211. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  212. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +4 -32
  213. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +29 -7
  214. package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
  215. package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
  216. package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +18 -33
  217. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +59 -90
  218. package/dist/types/src/components/3_compounds/Feed/composables/useFeedScroll.d.ts +2 -0
  219. package/package.json +1 -1
@@ -1,16 +1,34 @@
1
- import { inject as L, ref as n, computed as _, onMounted as M, unref as I, createElementBlock as s, openBlock as r, createElementVNode as t, normalizeClass as B, createCommentVNode as P, Fragment as W, renderList as U, withDirectives as z, vModelRadio as K, toDisplayString as w, vModelText as X, normalizeStyle as Y } from "vue";
2
- import { useMessageDraft as D } from "../../../hooks/useMessageDraft.js";
1
+ import { inject as j, ref as c, computed as m, onMounted as G, unref as p, createElementBlock as o, openBlock as a, createElementVNode as e, normalizeClass as b, createCommentVNode as S, Fragment as V, renderList as x, withDirectives as E, vModelRadio as H, toDisplayString as w, vModelText as J, normalizeStyle as K } from "vue";
2
+ import { useMessageDraft as X } from "../../../hooks/useMessageDraft.js";
3
3
  /* empty css */
4
- import Z from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ import Y from "../../../_virtual/_plugin-vue_export-helper.js";
5
5
  /* empty css */
6
6
  import "../../../locale/useLocale.js";
7
7
  /* empty css */
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
- import G from "../../3_compounds/Feed/assets/chat-background.svg.js";
11
+ import Z from "../../3_compounds/Feed/assets/chat-background.svg.js";
12
12
  /* empty css */
13
- const $ = {
13
+ const ee = { class: "template-selector" }, te = ["id"], le = { style: { display: "flex" } }, se = { style: { display: "flex" } }, oe = {
14
+ key: 0,
15
+ class: "template-selector__button-close"
16
+ }, ae = {
17
+ key: 1,
18
+ class: "template-selector__button-close"
19
+ }, re = { class: "template-selector__button-close" }, ce = { class: "template-selector__layout" }, ne = ["id"], ie = { class: "template-selector__list-groups" }, pe = { class: "template-selector__label-group" }, de = ["src", "alt"], ue = ["id", "value"], me = ["id"], _e = { class: "template-selector__searching-container" }, ve = { class: "template-selector__templates" }, fe = {
20
+ key: 0,
21
+ class: "template-selector__list-templates"
22
+ }, he = ["onClick"], ye = { class: "template-selector__item-template-info" }, ge = { class: "template-selector__item-title" }, we = { class: "template-selector__item-text" }, ke = {
23
+ key: 1,
24
+ class: "template-selector__plug"
25
+ }, Ce = ["id"], Te = {
26
+ key: 0,
27
+ class: "template-selector__preview"
28
+ }, be = { class: "template-selector__preview-wrapper" }, Se = { class: "template-selector__preview-text" }, Be = {
29
+ key: 1,
30
+ class: "template-selector__plug"
31
+ }, Ie = {
14
32
  __name: "TemplateSelector",
15
33
  props: {
16
34
  templates: {
@@ -34,244 +52,156 @@ const $ = {
34
52
  }
35
53
  },
36
54
  emits: ["closeTemplateWindow", "pasteTemplate"],
37
- setup(T, { expose: c, emit: h }) {
38
- c();
39
- const e = T, d = L("chatAppId"), { setMessageText: k } = D(d), o = () => {
40
- p("closeTemplateWindow"), k(C.value.template);
41
- }, p = h, m = n(null), C = n(null), V = n(""), b = n(), f = n(""), i = n(""), v = n(""), u = n(!1), O = _(() => e.chatBackground ?? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(G)}`), Q = _(() => !!(u.value && (v.value == "grid" && i.value == "none" || i.value == "grid" && f.value == "none"))), j = _(() => !!(u.value && (f.value == "grid" && i.value == "none" || i.value == "grid" && v.value == "none"))), q = () => {
42
- u.value && (i.value == "grid" ? x() : v.value == "grid" && g());
43
- }, F = () => {
44
- u.value && (i.value == "grid" ? S() : f.value == "grid" && g());
45
- }, x = () => {
46
- const l = document.getElementById("template-selector-container-" + d);
47
- l.style.setProperty("--chotto-template-first-col-display", "grid"), l.style.setProperty("--chotto-template-second-col-display", "none"), y();
48
- }, S = () => {
49
- const l = document.getElementById("template-selector-container-" + d);
50
- l.style.setProperty("--chotto-template-third-col-display", "grid"), l.style.setProperty("--chotto-template-second-col-display", "none"), y();
51
- }, g = () => {
52
- const l = document.getElementById("template-selector-container-" + d);
53
- l.style.setProperty("--chotto-template-second-col-display", "grid"), l.style.setProperty("--chotto-template-first-col-display", "none"), l.style.setProperty("--chotto-template-third-col-display", "none"), y();
55
+ setup(_, { emit: W }) {
56
+ const d = _, r = j("chatAppId"), { setMessageText: L } = X(r), M = () => {
57
+ R("closeTemplateWindow"), L(v.value.template);
58
+ }, R = W, u = c(null), v = c(null), k = c(""), C = c(), f = c(""), n = c(""), h = c(""), i = c(!1), U = m(() => d.chatBackground ?? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(Z)}`), $ = m(() => !!(i.value && (h.value == "grid" && n.value == "none" || n.value == "grid" && f.value == "none"))), z = m(() => !!(i.value && (f.value == "grid" && n.value == "none" || n.value == "grid" && h.value == "none"))), A = () => {
59
+ i.value && (n.value == "grid" ? D() : h.value == "grid" && T());
60
+ }, q = () => {
61
+ i.value && (n.value == "grid" ? B() : f.value == "grid" && T());
62
+ }, D = () => {
63
+ const t = document.getElementById("template-selector-container-" + r);
64
+ t.style.setProperty("--chotto-template-first-col-display", "grid"), t.style.setProperty("--chotto-template-second-col-display", "none"), y();
65
+ }, B = () => {
66
+ const t = document.getElementById("template-selector-container-" + r);
67
+ t.style.setProperty("--chotto-template-third-col-display", "grid"), t.style.setProperty("--chotto-template-second-col-display", "none"), y();
68
+ }, T = () => {
69
+ const t = document.getElementById("template-selector-container-" + r);
70
+ t.style.setProperty("--chotto-template-second-col-display", "grid"), t.style.setProperty("--chotto-template-first-col-display", "none"), t.style.setProperty("--chotto-template-third-col-display", "none"), y();
54
71
  }, y = () => {
55
- const l = document.getElementById("template-selector-container-" + d), a = window.getComputedStyle(l);
56
- f.value = a.getPropertyValue("--chotto-template-first-col-display"), i.value = a.getPropertyValue("--chotto-template-second-col-display"), v.value = a.getPropertyValue("--chotto-template-third-col-display");
57
- }, N = (l) => {
58
- e.templates.forEach((a) => a.isSelected = !1), l.isSelected = !0, C.value = l, S();
59
- }, H = () => {
60
- g(), e.templates.forEach((l) => l.isSelected = !1);
61
- }, R = _(() => m.value ? e.templates.filter((l) => l.groupId === m.value.groupId) : e.templates), J = _(() => {
62
- const l = V.value.trim().toLowerCase();
63
- return R.value.filter((a) => a.title.toLowerCase().includes(l) || a.template.toLowerCase().includes(l));
64
- }), A = new ResizeObserver((l) => {
65
- const a = l[0].target.clientWidth;
66
- a > 700 && (u.value = !1), a < 700 && (u.value = !0);
67
- });
68
- M(() => {
69
- y(), I(b) && A.observe(I(b));
72
+ const t = document.getElementById("template-selector-container-" + r), l = window.getComputedStyle(t);
73
+ f.value = l.getPropertyValue("--chotto-template-first-col-display"), n.value = l.getPropertyValue("--chotto-template-second-col-display"), h.value = l.getPropertyValue("--chotto-template-third-col-display");
74
+ }, F = (t) => {
75
+ d.templates.forEach((l) => l.isSelected = !1), t.isSelected = !0, v.value = t, B();
76
+ }, O = () => {
77
+ T(), d.templates.forEach((t) => t.isSelected = !1);
78
+ }, N = m(() => u.value ? d.templates.filter((t) => t.groupId === u.value.groupId) : d.templates), I = m(() => {
79
+ const t = k.value.trim().toLowerCase();
80
+ return N.value.filter((l) => l.title.toLowerCase().includes(t) || l.template.toLowerCase().includes(t));
81
+ }), Q = new ResizeObserver((t) => {
82
+ const l = t[0].target.clientWidth;
83
+ l > 700 && (i.value = !1), l < 700 && (i.value = !0);
70
84
  });
71
- const E = { props: e, chatAppId: d, setMessageText: k, handlePutMessage: o, emit: p, selectedGroup: m, selectedTemplate: C, searchQuery: V, refContainer: b, showFirstCol: f, showSecondCol: i, showThirdCol: v, isOneCol: u, defaultBackground: O, allowTurnLeft: Q, allowTurnRight: j, turnLeft: q, turnRight: F, setFirstColVisible: x, setThirdColVisible: S, setSecondColVisible: g, updateShowValues: y, selectTemplate: N, clearSelectedTemplate: H, filteredTemplates: R, searchedTemplate: J, resizeObserver: A, computed: _, ref: n, onMounted: M, inject: L, unref: I, get useMessageDraft() {
72
- return D;
73
- }, get chatBackgroundRaw() {
74
- return G;
75
- } };
76
- return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
77
- }
78
- }, ee = { class: "template-selector" }, te = ["id"], le = { style: { display: "flex" } }, oe = { style: { display: "flex" } }, se = {
79
- key: 0,
80
- class: "template-selector__button-close"
81
- }, re = {
82
- key: 1,
83
- class: "template-selector__button-close"
84
- }, ae = { class: "template-selector__button-close" }, ce = { class: "template-selector__layout" }, ne = ["id"], ie = { class: "template-selector__list-groups" }, de = { class: "template-selector__label-group" }, pe = ["src", "alt"], ue = ["id", "value"], me = ["id"], _e = { class: "template-selector__searching-container" }, he = { class: "template-selector__templates" }, fe = {
85
- key: 0,
86
- class: "template-selector__list-templates"
87
- }, ve = ["onClick"], ye = { class: "template-selector__item-template-info" }, ge = { class: "template-selector__item-title" }, we = { class: "template-selector__item-text" }, Te = {
88
- key: 1,
89
- class: "template-selector__plug"
90
- }, ke = ["id"], Ce = {
91
- key: 0,
92
- class: "template-selector__preview"
93
- }, be = { class: "template-selector__preview-wrapper" }, Se = { class: "template-selector__preview-text" }, Ie = {
94
- key: 1,
95
- class: "template-selector__plug"
96
- };
97
- function Be(T, c, h, e, d, k) {
98
- return r(), s("div", ee, [
99
- t("div", {
100
- id: "template-selector-container-" + e.chatAppId,
101
- ref: "refContainer",
102
- class: B({
103
- "template-selector__container-inline": !h.elevatedWindow,
104
- "template-selector__container-elevated": h.elevatedWindow
105
- })
106
- }, [
107
- t("div", le, [
108
- t("div", oe, [
109
- e.allowTurnLeft ? (r(), s("button", se, [
110
- t("span", {
111
- class: "pi pi-arrow-left",
112
- onClick: e.turnLeft
113
- })
114
- ])) : P("v-if", !0),
115
- e.allowTurnRight ? (r(), s("button", re, [
116
- t("span", {
117
- class: "pi pi-arrow-right",
118
- onClick: e.turnRight
85
+ return G(() => {
86
+ y(), p(C) && Q.observe(p(C));
87
+ }), (t, l) => (a(), o("div", ee, [
88
+ e("div", {
89
+ id: "template-selector-container-" + p(r),
90
+ ref_key: "refContainer",
91
+ ref: C,
92
+ class: b({
93
+ "template-selector__container-inline": !_.elevatedWindow,
94
+ "template-selector__container-elevated": _.elevatedWindow
95
+ })
96
+ }, [
97
+ e("div", le, [
98
+ e("div", se, [
99
+ $.value ? (a(), o("button", oe, [
100
+ e("span", {
101
+ class: "pi pi-arrow-left",
102
+ onClick: A
103
+ })
104
+ ])) : S("", !0),
105
+ z.value ? (a(), o("button", ae, [
106
+ e("span", {
107
+ class: "pi pi-arrow-right",
108
+ onClick: q
109
+ })
110
+ ])) : S("", !0)
111
+ ]),
112
+ e("button", re, [
113
+ e("span", {
114
+ class: "pi pi-times",
115
+ onClick: l[0] || (l[0] = (s) => t.$emit("closeTemplateWindow"))
119
116
  })
120
- ])) : P("v-if", !0)
121
- ]),
122
- t("button", ae, [
123
- t("span", {
124
- class: "pi pi-times",
125
- onClick: c[0] || (c[0] = (o) => T.$emit("closeTemplateWindow"))
126
- })
127
- ])
128
- ]),
129
- t("div", ce, [
130
- t("div", {
131
- id: "template-selector-first-col-" + e.chatAppId,
132
- class: "template-selector__first-col"
133
- }, [
134
- t("ul", ie, [
135
- (r(!0), s(
136
- W,
137
- null,
138
- U(h.groupTemplates, (o, p) => (r(), s(
139
- "li",
140
- {
141
- key: p,
142
- class: B(["template-selector__item-group", { "template-selector__item-selected": e.selectedGroup === o }]),
143
- onClick: e.clearSelectedTemplate
144
- },
145
- [
146
- t("label", de, [
147
- o.iconUrl ? (r(), s("img", {
148
- key: 0,
149
- class: "template-selector__item-group-icon",
150
- src: o.iconUrl,
151
- alt: o.title
152
- }, null, 8, pe)) : P("v-if", !0),
153
- z(t("input", {
154
- id: p,
155
- "onUpdate:modelValue": c[1] || (c[1] = (m) => e.selectedGroup = m),
156
- value: o,
157
- class: "template-selector__input-group",
158
- type: "radio"
159
- }, null, 8, ue), [
160
- [K, e.selectedGroup]
161
- ]),
162
- t(
163
- "span",
164
- null,
165
- w(o.title),
166
- 1
167
- /* TEXT */
168
- )
169
- ])
170
- ],
171
- 2
172
- /* CLASS */
173
- ))),
174
- 128
175
- /* KEYED_FRAGMENT */
176
- ))
177
117
  ])
178
- ], 8, ne),
179
- t("div", {
180
- id: "template-selector-second-col-" + e.chatAppId,
181
- class: "template-selector__second-col"
182
- }, [
183
- t("div", _e, [
184
- z(t(
185
- "input",
186
- {
187
- "onUpdate:modelValue": c[2] || (c[2] = (o) => e.searchQuery = o),
118
+ ]),
119
+ e("div", ce, [
120
+ e("div", {
121
+ id: "template-selector-first-col-" + p(r),
122
+ class: "template-selector__first-col"
123
+ }, [
124
+ e("ul", ie, [
125
+ (a(!0), o(V, null, x(_.groupTemplates, (s, g) => (a(), o("li", {
126
+ key: g,
127
+ class: b(["template-selector__item-group", { "template-selector__item-selected": u.value === s }]),
128
+ onClick: O
129
+ }, [
130
+ e("label", pe, [
131
+ s.iconUrl ? (a(), o("img", {
132
+ key: 0,
133
+ class: "template-selector__item-group-icon",
134
+ src: s.iconUrl,
135
+ alt: s.title
136
+ }, null, 8, de)) : S("", !0),
137
+ E(e("input", {
138
+ id: g,
139
+ "onUpdate:modelValue": l[1] || (l[1] = (P) => u.value = P),
140
+ value: s,
141
+ class: "template-selector__input-group",
142
+ type: "radio"
143
+ }, null, 8, ue), [
144
+ [H, u.value]
145
+ ]),
146
+ e("span", null, w(s.title), 1)
147
+ ])
148
+ ], 2))), 128))
149
+ ])
150
+ ], 8, ne),
151
+ e("div", {
152
+ id: "template-selector-second-col-" + p(r),
153
+ class: "template-selector__second-col"
154
+ }, [
155
+ e("div", _e, [
156
+ E(e("input", {
157
+ "onUpdate:modelValue": l[2] || (l[2] = (s) => k.value = s),
188
158
  class: "template-selector__searching-input",
189
159
  type: "text",
190
160
  placeholder: "Поиск шаблона"
191
- },
192
- null,
193
- 512
194
- /* NEED_PATCH */
195
- ), [
196
- [X, e.searchQuery]
197
- ])
198
- ]),
199
- t("div", he, [
200
- e.searchedTemplate.length !== 0 ? (r(), s("ul", fe, [
201
- (r(!0), s(
202
- W,
203
- null,
204
- U(e.searchedTemplate, (o, p) => (r(), s("li", {
205
- key: p,
206
- class: B(["template-selector__item-template", { "template-selector__item-selected": o.isSelected }]),
207
- onClick: (m) => e.selectTemplate(o)
161
+ }, null, 512), [
162
+ [J, k.value]
163
+ ])
164
+ ]),
165
+ e("div", ve, [
166
+ I.value.length !== 0 ? (a(), o("ul", fe, [
167
+ (a(!0), o(V, null, x(I.value, (s, g) => (a(), o("li", {
168
+ key: g,
169
+ class: b(["template-selector__item-template", { "template-selector__item-selected": s.isSelected }]),
170
+ onClick: (P) => F(s)
208
171
  }, [
209
- t("div", ye, [
210
- t(
211
- "p",
212
- ge,
213
- w(o.title),
214
- 1
215
- /* TEXT */
216
- ),
217
- t(
218
- "p",
219
- we,
220
- w(o.template),
221
- 1
222
- /* TEXT */
223
- )
172
+ e("div", ye, [
173
+ e("p", ge, w(s.title), 1),
174
+ e("p", we, w(s.template), 1)
224
175
  ])
225
- ], 10, ve))),
226
- 128
227
- /* KEYED_FRAGMENT */
228
- ))
229
- ])) : (r(), s("p", Te, " Шаблоны отсутствуют "))
230
- ])
231
- ], 8, me),
232
- t("div", {
233
- id: "template-selector-third-col-" + e.chatAppId,
234
- class: "template-selector__third-col"
235
- }, [
236
- t(
237
- "div",
238
- {
176
+ ], 10, he))), 128))
177
+ ])) : (a(), o("p", ke, " Шаблоны отсутствуют "))
178
+ ])
179
+ ], 8, me),
180
+ e("div", {
181
+ id: "template-selector-third-col-" + p(r),
182
+ class: "template-selector__third-col"
183
+ }, [
184
+ e("div", {
239
185
  class: "template-selector__preview-container",
240
- style: Y({ backgroundImage: `url(${e.defaultBackground})` })
241
- },
242
- [
243
- e.selectedTemplate ? (r(), s("div", Ce, [
244
- t("div", be, [
245
- t(
246
- "p",
247
- Se,
248
- w(e.selectedTemplate.template),
249
- 1
250
- /* TEXT */
251
- ),
252
- c[3] || (c[3] = t(
253
- "p",
254
- { class: "template-selector__preview-time" },
255
- " 22:22 ",
256
- -1
257
- /* CACHED */
258
- ))
186
+ style: K({ backgroundImage: `url(${U.value})` })
187
+ }, [
188
+ v.value ? (a(), o("div", Te, [
189
+ e("div", be, [
190
+ e("p", Se, w(v.value.template), 1),
191
+ l[3] || (l[3] = e("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
259
192
  ])
260
- ])) : (r(), s("p", Ie, " Предпросмотр шаблона "))
261
- ],
262
- 4
263
- /* STYLE */
264
- ),
265
- t("button", {
266
- class: "template-selector__button-paste",
267
- onClick: e.handlePutMessage
268
- }, " Вставить ")
269
- ], 8, ke)
270
- ])
271
- ], 10, te)
272
- ]);
273
- }
274
- const Ge = /* @__PURE__ */ Z($, [["render", Be], ["__scopeId", "data-v-51c857f4"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue"]]);
193
+ ])) : (a(), o("p", Be, " Предпросмотр шаблона "))
194
+ ], 4),
195
+ e("button", {
196
+ class: "template-selector__button-paste",
197
+ onClick: M
198
+ }, " Вставить ")
199
+ ], 8, Ce)
200
+ ])
201
+ ], 10, te)
202
+ ]));
203
+ }
204
+ }, qe = /* @__PURE__ */ Y(Ie, [["__scopeId", "data-v-23622175"]]);
275
205
  export {
276
- Ge as default
206
+ qe as default
277
207
  };
@@ -1,167 +1,7 @@
1
- import n from "./TextFormatToolbar.vue2.js";
2
- import { createBlock as a, openBlock as i, Teleport as s, createVNode as m, Transition as d, withCtx as p, createElementBlock as b, createCommentVNode as l, normalizeStyle as c, createElementVNode as o } from "vue";
1
+ import o from "./TextFormatToolbar.vue2.js";
3
2
  /* empty css */
4
- import h from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const v = ["data-theme"], x = ["title"], f = ["title"], T = ["title"], M = ["title"], C = ["title"], u = ["title"];
6
- function _(F, t, g, e, k, q) {
7
- return i(), a(s, { to: "body" }, [
8
- m(d, { name: "fade" }, {
9
- default: p(() => [
10
- e.isVisible ? (i(), b("div", {
11
- key: 0,
12
- ref: "toolbarRef",
13
- "data-theme": e.getTheme().theme ? e.getTheme().theme : "light",
14
- class: "text-format-toolbar",
15
- style: c(e.toolbarStyle),
16
- onMouseenter: e.handleMouseEnter,
17
- onMouseleave: e.handleMouseLeave
18
- }, [
19
- l(" Жирный "),
20
- o("button", {
21
- class: "text-format-toolbar__button",
22
- title: e.t("component.TextFormatToolbar.Bold"),
23
- onClick: t[0] || (t[0] = (r) => e.applyFormat("bold"))
24
- }, [...t[6] || (t[6] = [
25
- o(
26
- "svg",
27
- {
28
- viewBox: "0 0 24 24",
29
- width: "20",
30
- preserveAspectRatio: "xMidYMid meet",
31
- class: "",
32
- fill: "currentColor"
33
- },
34
- [
35
- o("path", { d: "M6.8 19V5h5.525q1.624 0 3 1T16.7 8.775q0 1.275-.575 1.963-.575.687-1.075.987.626.275 1.387 1.025.763.75.763 2.25 0 2.224-1.625 3.113-1.625.887-3.05.887zm3.025-2.8h2.6q1.2 0 1.462-.612.263-.614.263-.888 0-.275-.263-.887-.262-.613-1.537-.613H9.825zm0-5.7h2.325q.825 0 1.2-.425a1.4 1.4 0 0 0 .375-.95q0-.6-.425-.975t-1.1-.375H9.825z" })
36
- ],
37
- -1
38
- /* CACHED */
39
- )
40
- ])], 8, x),
41
- l(" Курсив "),
42
- o("button", {
43
- class: "text-format-toolbar__button",
44
- title: e.t("component.TextFormatToolbar.Italic"),
45
- onClick: t[1] || (t[1] = (r) => e.applyFormat("italic"))
46
- }, [...t[7] || (t[7] = [
47
- o(
48
- "svg",
49
- {
50
- viewBox: "0 0 24 24",
51
- width: "20",
52
- preserveAspectRatio: "xMidYMid meet",
53
- class: "",
54
- fill: "currentColor"
55
- },
56
- [
57
- o("path", { d: "M5 19v-2.5h4l3-9H8V5h10v2.5h-3.5l-3 9H15V19z" })
58
- ],
59
- -1
60
- /* CACHED */
61
- )
62
- ])], 8, f),
63
- l(" Подчёркнутый "),
64
- o("button", {
65
- class: "text-format-toolbar__button",
66
- title: e.t("component.TextFormatToolbar.Underline"),
67
- onClick: t[2] || (t[2] = (r) => e.applyFormat("underline"))
68
- }, [...t[8] || (t[8] = [
69
- o(
70
- "svg",
71
- {
72
- viewBox: "0 0 512 512",
73
- width: "13",
74
- height: "13",
75
- preserveAspectRatio: "xMidYMid meet",
76
- class: "",
77
- fill: "currentColor"
78
- },
79
- [
80
- o("rect", {
81
- x: "16.65",
82
- y: "443.317",
83
- width: "478.699",
84
- height: "68.683"
85
- }),
86
- o("path", { d: `M303.383,0h-94L87.689,376.715h88.041l21.225-72.846H315.81l21.496,72.846h88.043L303.383,0z M216.38,235.187
87
- l39.103-133.203h1.544l39.362,133.203H216.38z` })
88
- ],
89
- -1
90
- /* CACHED */
91
- )
92
- ])], 8, T),
93
- l(" Зачёркнутый "),
94
- o("button", {
95
- class: "text-format-toolbar__button",
96
- title: e.t("component.TextFormatToolbar.Strikethrough"),
97
- onClick: t[3] || (t[3] = (r) => e.applyFormat("strikethrough"))
98
- }, [...t[9] || (t[9] = [
99
- o(
100
- "svg",
101
- {
102
- viewBox: "0 0 24 24",
103
- width: "20",
104
- preserveAspectRatio: "xMidYMid meet",
105
- class: "",
106
- fill: "currentColor"
107
- },
108
- [
109
- o("path", { d: "M13.99 15.27q0-.83-.586-1.27-.585-.45-2.11-.937L11.107 13H4v-2h16v2h-3.76q.69.96.69 2.25 0 1.845-1.397 2.9-1.396 1.045-3.76 1.045-1.64 0-2.988-.595-1.347-.606-2.06-1.65a4 4 0 0 1-.472-.951l2.451-.98c.145.303.363.651.667.962l.014.019h.004a2.87 2.87 0 0 0 1.971.867q.199.014.413.014 1.045 0 1.631-.42.586-.43.586-1.191M10.548 10h-3.79a3.5 3.5 0 0 1-.297-1.44q0-1.152.644-2.05.655-.909 1.866-1.416 1.22-.508 2.734-.508 1.523 0 2.715.557 1.191.546 1.846 1.552.26.394.418.831l-2.492.997C13.85 7.823 13 7 11.656 6.92q-1.074 0-1.67.459a1.42 1.42 0 0 0-.595 1.191q0 .694.693 1.162.204.136.464.268" })
110
- ],
111
- -1
112
- /* CACHED */
113
- )
114
- ])], 8, M),
115
- l(" Встроенный код "),
116
- o("button", {
117
- class: "text-format-toolbar__button",
118
- title: e.t("component.TextFormatToolbar.Code"),
119
- onClick: t[4] || (t[4] = (r) => e.applyFormat("code"))
120
- }, [...t[10] || (t[10] = [
121
- o(
122
- "span",
123
- { class: "pi pi-code" },
124
- null,
125
- -1
126
- /* CACHED */
127
- )
128
- ])], 8, C),
129
- l(" Цитата "),
130
- o("button", {
131
- class: "text-format-toolbar__button",
132
- title: e.t("component.TextFormatToolbar.Quote"),
133
- onClick: t[5] || (t[5] = (r) => e.applyFormat("quote"))
134
- }, [...t[11] || (t[11] = [
135
- o(
136
- "svg",
137
- {
138
- viewBox: "0 0 512 512",
139
- width: "13",
140
- height: "13",
141
- preserveAspectRatio: "xMidYMid meet",
142
- class: "",
143
- fill: "currentColor"
144
- },
145
- [
146
- o("path", { d: `M119.472,66.59C53.489,66.59,0,120.094,0,186.1c0,65.983,53.489,119.487,119.472,119.487
147
- c0,0-0.578,44.392-36.642,108.284c-4.006,12.802,3.135,26.435,15.945,30.418c9.089,2.859,18.653,0.08,24.829-6.389
148
- c82.925-90.7,115.385-197.448,115.385-251.8C238.989,120.094,185.501,66.59,119.472,66.59z` }),
149
- o("path", { d: `M392.482,66.59c-65.983,0-119.472,53.505-119.472,119.51c0,65.983,53.489,119.487,119.472,119.487
150
- c0,0-0.578,44.392-36.642,108.284c-4.006,12.802,3.136,26.435,15.945,30.418c9.089,2.859,18.653,0.08,24.828-6.389
151
- C479.539,347.2,512,240.452,512,186.1C512,120.094,458.511,66.59,392.482,66.59z` })
152
- ],
153
- -1
154
- /* CACHED */
155
- )
156
- ])], 8, u)
157
- ], 44, v)) : l("v-if", !0)
158
- ]),
159
- _: 1
160
- /* STABLE */
161
- })
162
- ]);
163
- }
164
- const H = /* @__PURE__ */ h(n, [["render", _], ["__scopeId", "data-v-5e40fbcb"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue"]]);
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-496f7af0"]]);
165
5
  export {
166
- H as default
6
+ m as default
167
7
  };