@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,19 +1,37 @@
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 s, 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
  import "../../../hooks/useSearchModel.js";
4
4
  import "../../../hooks/useTheme.js";
5
5
  import "../../../hooks/useEmojiNative.js";
6
6
  /* empty css */
7
- import Z from "../../../_virtual/_plugin-vue_export-helper.js";
7
+ import Y from "../../../_virtual/_plugin-vue_export-helper.js";
8
8
  /* empty css */
9
9
  import "../../../locale/useLocale.js";
10
10
  /* empty css */
11
11
  import "../../../node_modules/linkifyjs/dist/linkify.js";
12
12
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
13
13
  import "../../../functions/parseMarkdown.js";
14
- import G from "../../3_compounds/Feed/assets/chat-background.svg.js";
14
+ import Z from "../../3_compounds/Feed/assets/chat-background.svg.js";
15
15
  /* empty css */
16
- const $ = {
16
+ const ee = { class: "template-selector" }, te = ["id"], le = { style: { display: "flex" } }, oe = { style: { display: "flex" } }, se = {
17
+ key: 0,
18
+ class: "template-selector__button-close"
19
+ }, ae = {
20
+ key: 1,
21
+ class: "template-selector__button-close"
22
+ }, 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 = {
23
+ key: 0,
24
+ class: "template-selector__list-templates"
25
+ }, he = ["onClick"], ye = { class: "template-selector__item-template-info" }, ge = { class: "template-selector__item-title" }, we = { class: "template-selector__item-text" }, ke = {
26
+ key: 1,
27
+ class: "template-selector__plug"
28
+ }, Ce = ["id"], Te = {
29
+ key: 0,
30
+ class: "template-selector__preview"
31
+ }, be = { class: "template-selector__preview-wrapper" }, Se = { class: "template-selector__preview-text" }, Be = {
32
+ key: 1,
33
+ class: "template-selector__plug"
34
+ }, Ie = {
17
35
  __name: "TemplateSelector",
18
36
  props: {
19
37
  templates: {
@@ -37,244 +55,156 @@ const $ = {
37
55
  }
38
56
  },
39
57
  emits: ["closeTemplateWindow", "pasteTemplate"],
40
- setup(T, { expose: c, emit: h }) {
41
- c();
42
- const e = T, p = L("chatAppId"), { setMessageText: k } = D(p), o = () => {
43
- d("closeTemplateWindow"), k(C.value.template);
44
- }, d = 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 = () => {
45
- u.value && (i.value == "grid" ? x() : v.value == "grid" && g());
46
- }, F = () => {
47
- u.value && (i.value == "grid" ? S() : f.value == "grid" && g());
48
- }, x = () => {
49
- const l = document.getElementById("template-selector-container-" + p);
50
- l.style.setProperty("--chotto-template-first-col-display", "grid"), l.style.setProperty("--chotto-template-second-col-display", "none"), y();
51
- }, S = () => {
52
- const l = document.getElementById("template-selector-container-" + p);
53
- l.style.setProperty("--chotto-template-third-col-display", "grid"), l.style.setProperty("--chotto-template-second-col-display", "none"), y();
54
- }, g = () => {
55
- const l = document.getElementById("template-selector-container-" + p);
56
- 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();
58
+ setup(_, { emit: W }) {
59
+ const d = _, r = j("chatAppId"), { setMessageText: L } = X(r), M = () => {
60
+ R("closeTemplateWindow"), L(v.value.template);
61
+ }, 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 = () => {
62
+ i.value && (n.value == "grid" ? D() : h.value == "grid" && T());
63
+ }, q = () => {
64
+ i.value && (n.value == "grid" ? B() : f.value == "grid" && T());
65
+ }, D = () => {
66
+ const t = document.getElementById("template-selector-container-" + r);
67
+ t.style.setProperty("--chotto-template-first-col-display", "grid"), t.style.setProperty("--chotto-template-second-col-display", "none"), y();
68
+ }, B = () => {
69
+ const t = document.getElementById("template-selector-container-" + r);
70
+ t.style.setProperty("--chotto-template-third-col-display", "grid"), t.style.setProperty("--chotto-template-second-col-display", "none"), y();
71
+ }, T = () => {
72
+ const t = document.getElementById("template-selector-container-" + r);
73
+ 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();
57
74
  }, y = () => {
58
- const l = document.getElementById("template-selector-container-" + p), a = window.getComputedStyle(l);
59
- 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");
60
- }, N = (l) => {
61
- e.templates.forEach((a) => a.isSelected = !1), l.isSelected = !0, C.value = l, S();
62
- }, H = () => {
63
- g(), e.templates.forEach((l) => l.isSelected = !1);
64
- }, R = _(() => m.value ? e.templates.filter((l) => l.groupId === m.value.groupId) : e.templates), J = _(() => {
65
- const l = V.value.trim().toLowerCase();
66
- return R.value.filter((a) => a.title.toLowerCase().includes(l) || a.template.toLowerCase().includes(l));
67
- }), A = new ResizeObserver((l) => {
68
- const a = l[0].target.clientWidth;
69
- a > 700 && (u.value = !1), a < 700 && (u.value = !0);
70
- });
71
- M(() => {
72
- y(), I(b) && A.observe(I(b));
75
+ const t = document.getElementById("template-selector-container-" + r), l = window.getComputedStyle(t);
76
+ 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");
77
+ }, F = (t) => {
78
+ d.templates.forEach((l) => l.isSelected = !1), t.isSelected = !0, v.value = t, B();
79
+ }, O = () => {
80
+ T(), d.templates.forEach((t) => t.isSelected = !1);
81
+ }, N = m(() => u.value ? d.templates.filter((t) => t.groupId === u.value.groupId) : d.templates), I = m(() => {
82
+ const t = k.value.trim().toLowerCase();
83
+ return N.value.filter((l) => l.title.toLowerCase().includes(t) || l.template.toLowerCase().includes(t));
84
+ }), Q = new ResizeObserver((t) => {
85
+ const l = t[0].target.clientWidth;
86
+ l > 700 && (i.value = !1), l < 700 && (i.value = !0);
73
87
  });
74
- const E = { props: e, chatAppId: p, setMessageText: k, handlePutMessage: o, emit: d, 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() {
75
- return D;
76
- }, get chatBackgroundRaw() {
77
- return G;
78
- } };
79
- return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
80
- }
81
- }, ee = { class: "template-selector" }, te = ["id"], le = { style: { display: "flex" } }, oe = { style: { display: "flex" } }, se = {
82
- key: 0,
83
- class: "template-selector__button-close"
84
- }, re = {
85
- key: 1,
86
- class: "template-selector__button-close"
87
- }, ae = { 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" }, he = { class: "template-selector__templates" }, fe = {
88
- key: 0,
89
- class: "template-selector__list-templates"
90
- }, ve = ["onClick"], ye = { class: "template-selector__item-template-info" }, ge = { class: "template-selector__item-title" }, we = { class: "template-selector__item-text" }, Te = {
91
- key: 1,
92
- class: "template-selector__plug"
93
- }, ke = ["id"], Ce = {
94
- key: 0,
95
- class: "template-selector__preview"
96
- }, be = { class: "template-selector__preview-wrapper" }, Se = { class: "template-selector__preview-text" }, Ie = {
97
- key: 1,
98
- class: "template-selector__plug"
99
- };
100
- function Be(T, c, h, e, p, k) {
101
- return r(), s("div", ee, [
102
- t("div", {
103
- id: "template-selector-container-" + e.chatAppId,
104
- ref: "refContainer",
105
- class: B({
106
- "template-selector__container-inline": !h.elevatedWindow,
107
- "template-selector__container-elevated": h.elevatedWindow
108
- })
109
- }, [
110
- t("div", le, [
111
- t("div", oe, [
112
- e.allowTurnLeft ? (r(), s("button", se, [
113
- t("span", {
114
- class: "pi pi-arrow-left",
115
- onClick: e.turnLeft
116
- })
117
- ])) : P("v-if", !0),
118
- e.allowTurnRight ? (r(), s("button", re, [
119
- t("span", {
120
- class: "pi pi-arrow-right",
121
- onClick: e.turnRight
88
+ return G(() => {
89
+ y(), p(C) && Q.observe(p(C));
90
+ }), (t, l) => (a(), s("div", ee, [
91
+ e("div", {
92
+ id: "template-selector-container-" + p(r),
93
+ ref_key: "refContainer",
94
+ ref: C,
95
+ class: b({
96
+ "template-selector__container-inline": !_.elevatedWindow,
97
+ "template-selector__container-elevated": _.elevatedWindow
98
+ })
99
+ }, [
100
+ e("div", le, [
101
+ e("div", oe, [
102
+ $.value ? (a(), s("button", se, [
103
+ e("span", {
104
+ class: "pi pi-arrow-left",
105
+ onClick: A
106
+ })
107
+ ])) : S("", !0),
108
+ z.value ? (a(), s("button", ae, [
109
+ e("span", {
110
+ class: "pi pi-arrow-right",
111
+ onClick: q
112
+ })
113
+ ])) : S("", !0)
114
+ ]),
115
+ e("button", re, [
116
+ e("span", {
117
+ class: "pi pi-times",
118
+ onClick: l[0] || (l[0] = (o) => t.$emit("closeTemplateWindow"))
122
119
  })
123
- ])) : P("v-if", !0)
124
- ]),
125
- t("button", ae, [
126
- t("span", {
127
- class: "pi pi-times",
128
- onClick: c[0] || (c[0] = (o) => T.$emit("closeTemplateWindow"))
129
- })
130
- ])
131
- ]),
132
- t("div", ce, [
133
- t("div", {
134
- id: "template-selector-first-col-" + e.chatAppId,
135
- class: "template-selector__first-col"
136
- }, [
137
- t("ul", ie, [
138
- (r(!0), s(
139
- W,
140
- null,
141
- U(h.groupTemplates, (o, d) => (r(), s(
142
- "li",
143
- {
144
- key: d,
145
- class: B(["template-selector__item-group", { "template-selector__item-selected": e.selectedGroup === o }]),
146
- onClick: e.clearSelectedTemplate
147
- },
148
- [
149
- t("label", pe, [
150
- o.iconUrl ? (r(), s("img", {
151
- key: 0,
152
- class: "template-selector__item-group-icon",
153
- src: o.iconUrl,
154
- alt: o.title
155
- }, null, 8, de)) : P("v-if", !0),
156
- z(t("input", {
157
- id: d,
158
- "onUpdate:modelValue": c[1] || (c[1] = (m) => e.selectedGroup = m),
159
- value: o,
160
- class: "template-selector__input-group",
161
- type: "radio"
162
- }, null, 8, ue), [
163
- [K, e.selectedGroup]
164
- ]),
165
- t(
166
- "span",
167
- null,
168
- w(o.title),
169
- 1
170
- /* TEXT */
171
- )
172
- ])
173
- ],
174
- 2
175
- /* CLASS */
176
- ))),
177
- 128
178
- /* KEYED_FRAGMENT */
179
- ))
180
120
  ])
181
- ], 8, ne),
182
- t("div", {
183
- id: "template-selector-second-col-" + e.chatAppId,
184
- class: "template-selector__second-col"
185
- }, [
186
- t("div", _e, [
187
- z(t(
188
- "input",
189
- {
190
- "onUpdate:modelValue": c[2] || (c[2] = (o) => e.searchQuery = o),
121
+ ]),
122
+ e("div", ce, [
123
+ e("div", {
124
+ id: "template-selector-first-col-" + p(r),
125
+ class: "template-selector__first-col"
126
+ }, [
127
+ e("ul", ie, [
128
+ (a(!0), s(V, null, x(_.groupTemplates, (o, g) => (a(), s("li", {
129
+ key: g,
130
+ class: b(["template-selector__item-group", { "template-selector__item-selected": u.value === o }]),
131
+ onClick: O
132
+ }, [
133
+ e("label", pe, [
134
+ o.iconUrl ? (a(), s("img", {
135
+ key: 0,
136
+ class: "template-selector__item-group-icon",
137
+ src: o.iconUrl,
138
+ alt: o.title
139
+ }, null, 8, de)) : S("", !0),
140
+ E(e("input", {
141
+ id: g,
142
+ "onUpdate:modelValue": l[1] || (l[1] = (P) => u.value = P),
143
+ value: o,
144
+ class: "template-selector__input-group",
145
+ type: "radio"
146
+ }, null, 8, ue), [
147
+ [H, u.value]
148
+ ]),
149
+ e("span", null, w(o.title), 1)
150
+ ])
151
+ ], 2))), 128))
152
+ ])
153
+ ], 8, ne),
154
+ e("div", {
155
+ id: "template-selector-second-col-" + p(r),
156
+ class: "template-selector__second-col"
157
+ }, [
158
+ e("div", _e, [
159
+ E(e("input", {
160
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => k.value = o),
191
161
  class: "template-selector__searching-input",
192
162
  type: "text",
193
163
  placeholder: "Поиск шаблона"
194
- },
195
- null,
196
- 512
197
- /* NEED_PATCH */
198
- ), [
199
- [X, e.searchQuery]
200
- ])
201
- ]),
202
- t("div", he, [
203
- e.searchedTemplate.length !== 0 ? (r(), s("ul", fe, [
204
- (r(!0), s(
205
- W,
206
- null,
207
- U(e.searchedTemplate, (o, d) => (r(), s("li", {
208
- key: d,
209
- class: B(["template-selector__item-template", { "template-selector__item-selected": o.isSelected }]),
210
- onClick: (m) => e.selectTemplate(o)
164
+ }, null, 512), [
165
+ [J, k.value]
166
+ ])
167
+ ]),
168
+ e("div", ve, [
169
+ I.value.length !== 0 ? (a(), s("ul", fe, [
170
+ (a(!0), s(V, null, x(I.value, (o, g) => (a(), s("li", {
171
+ key: g,
172
+ class: b(["template-selector__item-template", { "template-selector__item-selected": o.isSelected }]),
173
+ onClick: (P) => F(o)
211
174
  }, [
212
- t("div", ye, [
213
- t(
214
- "p",
215
- ge,
216
- w(o.title),
217
- 1
218
- /* TEXT */
219
- ),
220
- t(
221
- "p",
222
- we,
223
- w(o.template),
224
- 1
225
- /* TEXT */
226
- )
175
+ e("div", ye, [
176
+ e("p", ge, w(o.title), 1),
177
+ e("p", we, w(o.template), 1)
227
178
  ])
228
- ], 10, ve))),
229
- 128
230
- /* KEYED_FRAGMENT */
231
- ))
232
- ])) : (r(), s("p", Te, " Шаблоны отсутствуют "))
233
- ])
234
- ], 8, me),
235
- t("div", {
236
- id: "template-selector-third-col-" + e.chatAppId,
237
- class: "template-selector__third-col"
238
- }, [
239
- t(
240
- "div",
241
- {
179
+ ], 10, he))), 128))
180
+ ])) : (a(), s("p", ke, " Шаблоны отсутствуют "))
181
+ ])
182
+ ], 8, me),
183
+ e("div", {
184
+ id: "template-selector-third-col-" + p(r),
185
+ class: "template-selector__third-col"
186
+ }, [
187
+ e("div", {
242
188
  class: "template-selector__preview-container",
243
- style: Y({ backgroundImage: `url(${e.defaultBackground})` })
244
- },
245
- [
246
- e.selectedTemplate ? (r(), s("div", Ce, [
247
- t("div", be, [
248
- t(
249
- "p",
250
- Se,
251
- w(e.selectedTemplate.template),
252
- 1
253
- /* TEXT */
254
- ),
255
- c[3] || (c[3] = t(
256
- "p",
257
- { class: "template-selector__preview-time" },
258
- " 22:22 ",
259
- -1
260
- /* CACHED */
261
- ))
189
+ style: K({ backgroundImage: `url(${U.value})` })
190
+ }, [
191
+ v.value ? (a(), s("div", Te, [
192
+ e("div", be, [
193
+ e("p", Se, w(v.value.template), 1),
194
+ l[3] || (l[3] = e("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
262
195
  ])
263
- ])) : (r(), s("p", Ie, " Предпросмотр шаблона "))
264
- ],
265
- 4
266
- /* STYLE */
267
- ),
268
- t("button", {
269
- class: "template-selector__button-paste",
270
- onClick: e.handlePutMessage
271
- }, " Вставить ")
272
- ], 8, ke)
273
- ])
274
- ], 10, te)
275
- ]);
276
- }
277
- const je = /* @__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"]]);
196
+ ])) : (a(), s("p", Be, " Предпросмотр шаблона "))
197
+ ], 4),
198
+ e("button", {
199
+ class: "template-selector__button-paste",
200
+ onClick: M
201
+ }, " Вставить ")
202
+ ], 8, Ce)
203
+ ])
204
+ ], 10, te)
205
+ ]));
206
+ }
207
+ }, Oe = /* @__PURE__ */ Y(Ie, [["__scopeId", "data-v-23622175"]]);
278
208
  export {
279
- je as default
209
+ Oe as default
280
210
  };
@@ -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
  };