@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,34 +1,16 @@
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";
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";
3
3
  /* empty css */
4
- import Y from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ import Z 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 Z from "../../3_compounds/Feed/assets/chat-background.svg.js";
11
+ import G from "../../3_compounds/Feed/assets/chat-background.svg.js";
12
12
  /* empty css */
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 = {
13
+ const $ = {
32
14
  __name: "TemplateSelector",
33
15
  props: {
34
16
  templates: {
@@ -52,156 +34,244 @@ const ee = { class: "template-selector" }, te = ["id"], le = { style: { display:
52
34
  }
53
35
  },
54
36
  emits: ["closeTemplateWindow", "pasteTemplate"],
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();
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();
71
54
  }, y = () => {
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);
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);
84
67
  });
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"))
68
+ M(() => {
69
+ y(), I(b) && A.observe(I(b));
70
+ });
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
116
113
  })
117
- ])
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
119
+ })
120
+ ])) : P("v-if", !0)
118
121
  ]),
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),
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
+ ])
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),
158
188
  class: "template-selector__searching-input",
159
189
  type: "text",
160
190
  placeholder: "Поиск шаблона"
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)
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)
171
208
  }, [
172
- e("div", ye, [
173
- e("p", ge, w(s.title), 1),
174
- e("p", we, w(s.template), 1)
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
+ )
175
224
  ])
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", {
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
+ {
185
239
  class: "template-selector__preview-container",
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))
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
+ ))
192
259
  ])
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"]]);
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"]]);
205
275
  export {
206
- qe as default
276
+ Ge as default
207
277
  };
@@ -1,7 +1,167 @@
1
- import o from "./TextFormatToolbar.vue2.js";
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";
2
3
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-496f7af0"]]);
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"]]);
5
165
  export {
6
- m as default
166
+ H as default
7
167
  };