@mobilon-dev/chotto 0.3.97 → 0.3.98

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 +29 -4
  3. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +42 -61
  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 -38
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +33 -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/MenuIcon.vue.js +16 -10
  22. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
  24. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
  26. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
  28. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
  30. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
  32. package/dist/components/1_icons/SearchIcon.vue.js +29 -17
  33. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  34. package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
  35. package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
  36. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +546 -396
  37. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
  38. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
  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 +19 -13
  42. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
  43. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
  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 +74 -4
  52. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +8 -42
  53. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
  54. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
  55. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
  56. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
  57. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
  58. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
  59. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +61 -4
  60. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +79 -96
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
  63. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
  64. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
  67. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +80 -51
  68. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +182 -4
  69. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +25 -135
  70. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +78 -4
  71. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +73 -95
  72. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
  73. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
  74. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
  75. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
  76. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
  77. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
  78. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
  79. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
  80. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
  81. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
  82. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
  83. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +34 -60
  84. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
  85. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
  86. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
  87. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
  88. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
  89. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +39 -33
  90. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
  91. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +134 -311
  92. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
  93. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
  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 +34 -22
  96. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
  97. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
  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 +52 -24
  100. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
  101. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +35 -67
  102. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +72 -38
  103. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +76 -57
  104. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
  105. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
  106. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
  107. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
  108. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
  109. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +19 -39
  110. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +458 -4
  111. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +160 -471
  112. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
  113. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
  114. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
  115. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
  116. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
  117. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
  118. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
  119. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
  120. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
  121. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
  122. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
  123. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  124. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
  125. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
  127. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
  128. package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +16 -10
  129. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +60 -4
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +36 -53
  131. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
  133. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
  135. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +250 -4
  136. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +67 -233
  137. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +315 -4
  138. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +98 -319
  139. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
  140. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
  141. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +155 -4
  142. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +110 -212
  143. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
  144. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
  145. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
  146. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
  147. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
  148. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
  149. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
  150. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
  151. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
  152. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
  153. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
  154. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
  155. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
  156. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
  157. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
  158. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
  159. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
  160. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
  161. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
  162. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
  163. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
  164. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +36 -120
  165. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
  166. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
  167. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +75 -4
  168. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -63
  169. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
  170. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
  171. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +346 -4
  172. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +73 -307
  173. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
  174. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  175. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +307 -4
  176. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +65 -269
  177. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
  178. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
  179. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +307 -4
  180. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +76 -298
  181. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
  182. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
  183. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +35 -18
  184. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
  185. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
  186. package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
  187. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
  188. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
  189. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
  190. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
  191. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
  192. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
  193. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +85 -4
  194. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +149 -210
  195. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
  196. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
  197. package/dist/components/3_compounds/ChatList/ChatList.vue.js +253 -163
  198. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +50 -32
  199. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  200. package/dist/components/3_compounds/Feed/Feed.vue.js +172 -4
  201. package/dist/components/3_compounds/Feed/Feed.vue2.js +126 -257
  202. package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
  203. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
  204. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  205. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
  206. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
  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 +31 -18
  210. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +85 -56
  211. package/package.json +1 -1
@@ -1,13 +1,7 @@
1
- import { ref as m, createElementBlock as p, openBlock as f, createElementVNode as l, toDisplayString as h, withDirectives as D, createCommentVNode as V, normalizeClass as x, vModelText as y } from "vue";
1
+ import { createElementBlock as _, openBlock as C, createElementVNode as s, toDisplayString as E, withDirectives as S, createCommentVNode as k, normalizeClass as B, vModelText as T, ref as f } from "vue";
2
2
  /* empty css */
3
3
  import z from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const N = { class: "create-chat-form" }, S = { class: "create-chat-title" }, T = { class: "form-field" }, U = {
5
- key: 0,
6
- class: "form-error"
7
- }, q = { class: "form-field" }, w = {
8
- key: 0,
9
- class: "form-error"
10
- }, M = {
4
+ const N = {
11
5
  __name: "CreateChat2",
12
6
  props: {
13
7
  title: {
@@ -16,115 +10,169 @@ const N = { class: "create-chat-form" }, S = { class: "create-chat-title" }, T =
16
10
  }
17
11
  },
18
12
  emits: ["change"],
19
- setup(C, { expose: E, emit: P }) {
20
- const r = m({}), a = m({
13
+ setup(D, { expose: a, emit: h }) {
14
+ const t = D, i = f({}), c = f({
21
15
  name: "",
22
16
  phone: ""
23
- }), c = m(!1), b = P, k = () => {
24
- a.value = {
17
+ }), l = f(!1), V = h, x = () => {
18
+ c.value = {
25
19
  name: "",
26
20
  phone: ""
27
21
  };
28
- }, B = () => {
29
- c.value = !1;
30
- }, F = (t, e) => {
31
- a.value[t] = e;
32
- }, d = (t) => !t || t.trim().length < 3 ? "Имя должно содержать минимум 3 символа" : "", v = (t) => {
33
- if (!c.value)
22
+ }, y = () => {
23
+ l.value = !1;
24
+ }, b = (e, n) => {
25
+ c.value[e] = n;
26
+ }, p = (e) => !e || e.trim().length < 3 ? "Имя должно содержать минимум 3 символа" : "", v = (e) => {
27
+ if (!l.value)
34
28
  return "";
35
- if (!t)
29
+ if (!e)
36
30
  return "Телефон обязателен для заполнения";
37
- const e = t.replace(/\D/g, "");
38
- return e.length < 11 ? "Минимум 11 цифр" : e.startsWith("7") ? "" : "Номер телефона должен начинаться с цифры 7";
39
- }, I = (t) => {
40
- if (!t) return !1;
41
- const e = t.replace(/\D/g, "");
42
- return !(e.length < 11 || !e.startsWith("7"));
43
- }, s = () => {
44
- const t = d(r.value.name), e = v(r.value.phone), n = I(r.value.phone);
45
- return a.value = {
46
- name: t,
47
- phone: e
48
- }, !t && n;
49
- }, u = (t) => (t || "").replace(/\D/g, ""), g = (t) => {
50
- const e = u(t);
51
- let n = e;
52
- if (e.startsWith("8") && (n = "7" + e.slice(1)), n.startsWith("7") || (n = "7" + n), n = n.slice(0, 11), n.length <= 1)
53
- return n ? "+" + n : "";
54
- const i = "+7";
55
- if (n.length > 1) {
56
- const o = n.slice(1);
57
- return o.length <= 3 ? i + " (" + o : o.length <= 6 ? i + " (" + o.slice(0, 3) + ") " + o.slice(3) : o.length <= 8 ? i + " (" + o.slice(0, 3) + ") " + o.slice(3, 6) + "-" + o.slice(6) : i + " (" + o.slice(0, 3) + ") " + o.slice(3, 6) + "-" + o.slice(6, 8) + "-" + o.slice(8);
31
+ const n = e.replace(/\D/g, "");
32
+ return n.length < 11 ? "Минимум 11 цифр" : n.startsWith("7") ? "" : "Номер телефона должен начинаться с цифры 7";
33
+ }, P = (e) => {
34
+ if (!e) return !1;
35
+ const n = e.replace(/\D/g, "");
36
+ return !(n.length < 11 || !n.startsWith("7"));
37
+ }, u = () => {
38
+ const e = p(i.value.name), n = v(i.value.phone), o = P(i.value.phone);
39
+ return c.value = {
40
+ name: e,
41
+ phone: n
42
+ }, !e && o;
43
+ }, m = (e) => (e || "").replace(/\D/g, ""), g = (e) => {
44
+ const n = m(e);
45
+ let o = n;
46
+ if (n.startsWith("8") && (o = "7" + n.slice(1)), o.startsWith("7") || (o = "7" + o), o = o.slice(0, 11), o.length <= 1)
47
+ return o ? "+" + o : "";
48
+ const d = "+7";
49
+ if (o.length > 1) {
50
+ const r = o.slice(1);
51
+ return r.length <= 3 ? d + " (" + r : r.length <= 6 ? d + " (" + r.slice(0, 3) + ") " + r.slice(3) : r.length <= 8 ? d + " (" + r.slice(0, 3) + ") " + r.slice(3, 6) + "-" + r.slice(6) : d + " (" + r.slice(0, 3) + ") " + r.slice(3, 6) + "-" + r.slice(6, 8) + "-" + r.slice(8);
58
52
  }
59
- return i;
60
- }, W = () => {
61
- const t = r.value.phone ?? "", e = g(t);
62
- e !== t && (r.value = {
63
- ...r.value,
64
- phone: e
53
+ return d;
54
+ }, F = () => {
55
+ const e = i.value.phone ?? "", n = g(e);
56
+ n !== e && (i.value = {
57
+ ...i.value,
58
+ phone: n
65
59
  });
66
- }, _ = () => {
67
- W(), s(), b("change", {
68
- contact: r.value,
69
- contactDigits: u(r.value.phone),
70
- isValid: s()
60
+ }, W = () => {
61
+ F(), u(), V("change", {
62
+ contact: i.value,
63
+ contactDigits: m(i.value.phone),
64
+ isValid: u()
71
65
  });
72
66
  };
73
- return E({
74
- clearValidationErrors: k,
75
- resetTouchedState: B,
76
- setValidationError: F,
77
- validateForm: s,
78
- validateName: d,
67
+ a({
68
+ clearValidationErrors: x,
69
+ resetTouchedState: y,
70
+ setValidationError: b,
71
+ validateForm: u,
72
+ validateName: p,
79
73
  validatePhone: v,
80
74
  formatPhone: g,
81
- extractDigits: u,
82
- validationErrors: a,
83
- phoneInputTouched: c
84
- }), (t, e) => (f(), p("div", N, [
85
- l("h2", S, h(C.title), 1),
86
- l("div", T, [
87
- e[3] || (e[3] = l("label", {
75
+ extractDigits: m,
76
+ validationErrors: c,
77
+ phoneInputTouched: l
78
+ });
79
+ const I = { props: t, contact: i, validationErrors: c, phoneInputTouched: l, emit: V, clearValidationErrors: x, resetTouchedState: y, setValidationError: b, validateName: p, validatePhone: v, isPhoneValid: P, validateForm: u, extractDigits: m, formatPhone: g, normalizePhoneFirstDigit: F, onChange: W, ref: f };
80
+ return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
81
+ }
82
+ }, j = { class: "create-chat-form" }, U = { class: "create-chat-title" }, q = { class: "form-field" }, w = {
83
+ key: 0,
84
+ class: "form-error"
85
+ }, M = { class: "form-field" }, O = {
86
+ key: 0,
87
+ class: "form-error"
88
+ };
89
+ function A(D, a, h, t, i, c) {
90
+ return C(), _("div", j, [
91
+ s(
92
+ "h2",
93
+ U,
94
+ E(h.title),
95
+ 1
96
+ /* TEXT */
97
+ ),
98
+ s("div", q, [
99
+ a[3] || (a[3] = s(
100
+ "label",
101
+ {
88
102
  class: "form-label",
89
103
  for: "contact-name"
90
- }, "Имя", -1)),
91
- D(l("input", {
104
+ },
105
+ "Имя",
106
+ -1
107
+ /* CACHED */
108
+ )),
109
+ S(s(
110
+ "input",
111
+ {
92
112
  id: "contact-name",
93
- "onUpdate:modelValue": e[0] || (e[0] = (n) => r.value.name = n),
113
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => t.contact.name = l),
94
114
  name: "name",
95
115
  type: "text",
96
- class: x(["form-input", { "form-input--error": a.value.name }]),
116
+ class: B(["form-input", { "form-input--error": t.validationErrors.name }]),
97
117
  placeholder: "Введите имя",
98
- onInput: _,
99
- onBlur: s
100
- }, null, 34), [
101
- [y, r.value.name]
102
- ]),
103
- a.value.name ? (f(), p("div", U, h(a.value.name), 1)) : V("", !0)
118
+ onInput: t.onChange,
119
+ onBlur: t.validateForm
120
+ },
121
+ null,
122
+ 34
123
+ /* CLASS, NEED_HYDRATION */
124
+ ), [
125
+ [T, t.contact.name]
104
126
  ]),
105
- l("div", q, [
106
- e[4] || (e[4] = l("label", {
127
+ t.validationErrors.name ? (C(), _(
128
+ "div",
129
+ w,
130
+ E(t.validationErrors.name),
131
+ 1
132
+ /* TEXT */
133
+ )) : k("v-if", !0)
134
+ ]),
135
+ s("div", M, [
136
+ a[4] || (a[4] = s(
137
+ "label",
138
+ {
107
139
  class: "form-label",
108
140
  for: "contact-phone"
109
- }, "Телефон", -1)),
110
- D(l("input", {
141
+ },
142
+ "Телефон",
143
+ -1
144
+ /* CACHED */
145
+ )),
146
+ S(s(
147
+ "input",
148
+ {
111
149
  id: "contact-phone",
112
- "onUpdate:modelValue": e[1] || (e[1] = (n) => r.value.phone = n),
150
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => t.contact.phone = l),
113
151
  name: "phone",
114
152
  type: "text",
115
- class: x(["form-input", { "form-input--error": a.value.phone }]),
153
+ class: B(["form-input", { "form-input--error": t.validationErrors.phone }]),
116
154
  placeholder: "+7 (999) 999-99-99",
117
- onInput: _,
118
- onFocus: e[2] || (e[2] = (n) => c.value = !0),
119
- onBlur: s
120
- }, null, 34), [
121
- [y, r.value.phone]
122
- ]),
123
- a.value.phone ? (f(), p("div", w, h(a.value.phone), 1)) : V("", !0)
124
- ])
125
- ]));
126
- }
127
- }, G = /* @__PURE__ */ z(M, [["__scopeId", "data-v-3302f415"]]);
155
+ onInput: t.onChange,
156
+ onFocus: a[2] || (a[2] = (l) => t.phoneInputTouched = !0),
157
+ onBlur: t.validateForm
158
+ },
159
+ null,
160
+ 34
161
+ /* CLASS, NEED_HYDRATION */
162
+ ), [
163
+ [T, t.contact.phone]
164
+ ]),
165
+ t.validationErrors.phone ? (C(), _(
166
+ "div",
167
+ O,
168
+ E(t.validationErrors.phone),
169
+ 1
170
+ /* TEXT */
171
+ )) : k("v-if", !0)
172
+ ])
173
+ ]);
174
+ }
175
+ const K = /* @__PURE__ */ z(N, [["render", A], ["__scopeId", "data-v-b286a03f"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_modals/CreateChat2/CreateChat2.vue"]]);
128
176
  export {
129
- G as default
177
+ K as default
130
178
  };
@@ -1,7 +1,7 @@
1
- import { ref as v, computed as d, createElementBlock as a, openBlock as i, createElementVNode as t, toDisplayString as u, withDirectives as m, Fragment as f, renderList as p, vModelSelect as _ } from "vue";
1
+ import { createElementBlock as o, openBlock as i, createElementVNode as n, toDisplayString as d, withDirectives as v, Fragment as p, renderList as h, vModelSelect as g, ref as _, computed as u } from "vue";
2
2
  /* empty css */
3
- import D from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const S = { class: "modal__contact-line" }, k = ["value"], q = { class: "modal__channel-line" }, w = ["disabled"], x = ["value"], V = ["disabled"], A = {
3
+ import y from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const D = {
5
5
  __name: "CreateDialog",
6
6
  props: {
7
7
  title: {
@@ -27,52 +27,99 @@ const S = { class: "modal__contact-line" }, k = ["value"], q = { class: "modal__
27
27
  }
28
28
  },
29
29
  emits: ["change", "submit"],
30
- setup(o, { emit: g }) {
31
- const r = o, s = v(), n = v(), y = d(() => !!(s.value && n.value)), b = d(() => !!(r.filter && n.value || !r.filter)), h = d(() => r.filter && n.value ? r.filter(n.value, r.channels) : r.channels), c = g, C = () => {
32
- c("change", { channel: s.value, contact: n.value }), c("submit");
33
- };
34
- return (B, l) => (i(), a("div", null, [
35
- t("h3", null, u(o.title), 1),
36
- t("div", null, " Контакт: " + u(o.name), 1),
37
- t("div", S, [
38
- l[2] || (l[2] = t("h3", { style: { margin: "0" } }, " Куда пишем ", -1)),
39
- m(t("select", {
40
- id: "folder",
41
- "onUpdate:modelValue": l[0] || (l[0] = (e) => n.value = e)
42
- }, [
43
- (i(!0), a(f, null, p(o.contacts, (e) => (i(), a("option", {
44
- key: e.id || e.value,
45
- value: e
46
- }, u(e.value), 9, k))), 128))
47
- ], 512), [
48
- [_, n.value]
49
- ])
50
- ]),
51
- t("div", q, [
52
- l[3] || (l[3] = t("h3", { style: { margin: "0" } }, " Через какой канал ", -1)),
53
- m(t("select", {
54
- id: "folder",
55
- "onUpdate:modelValue": l[1] || (l[1] = (e) => s.value = e),
56
- disabled: !b.value
57
- }, [
58
- (i(!0), a(f, null, p(h.value, (e) => (i(), a("option", {
59
- key: e.id || e.title,
60
- value: e
61
- }, u(e.title), 9, x))), 128))
62
- ], 8, w), [
63
- [_, s.value]
64
- ])
65
- ]),
66
- t("button", {
67
- type: "button",
68
- class: "modal__button-start",
69
- "aria-label": "Close modal",
70
- disabled: !y.value,
71
- onClick: C
72
- }, " Начать диалог ", 8, V)
73
- ]));
30
+ setup(m, { expose: l, emit: a }) {
31
+ l();
32
+ const e = m, s = _(), r = _(), t = u(() => !!(s.value && r.value)), C = u(() => !!(e.filter && r.value || !e.filter)), b = u(() => e.filter && r.value ? e.filter(r.value, e.channels) : e.channels), c = a, f = { props: e, selectedChannel: s, selectedContact: r, allowStartDialog: t, allowChangeChannel: C, filteredChannels: b, emit: c, handleStartDialog: () => {
33
+ c("change", { channel: s.value, contact: r.value }), c("submit");
34
+ }, ref: _, computed: u };
35
+ return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
74
36
  }
75
- }, I = /* @__PURE__ */ D(A, [["__scopeId", "data-v-c9b375bd"]]);
37
+ }, S = { class: "modal__contact-line" }, k = ["value"], q = { class: "modal__channel-line" }, w = ["disabled"], x = ["value"], V = ["disabled"];
38
+ function j(m, l, a, e, s, r) {
39
+ return i(), o("div", null, [
40
+ n(
41
+ "h3",
42
+ null,
43
+ d(a.title),
44
+ 1
45
+ /* TEXT */
46
+ ),
47
+ n(
48
+ "div",
49
+ null,
50
+ " Контакт: " + d(a.name),
51
+ 1
52
+ /* TEXT */
53
+ ),
54
+ n("div", S, [
55
+ l[2] || (l[2] = n(
56
+ "h3",
57
+ { style: { margin: "0" } },
58
+ " Куда пишем ",
59
+ -1
60
+ /* CACHED */
61
+ )),
62
+ v(n(
63
+ "select",
64
+ {
65
+ id: "folder",
66
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => e.selectedContact = t)
67
+ },
68
+ [
69
+ (i(!0), o(
70
+ p,
71
+ null,
72
+ h(a.contacts, (t) => (i(), o("option", {
73
+ key: t.id || t.value,
74
+ value: t
75
+ }, d(t.value), 9, k))),
76
+ 128
77
+ /* KEYED_FRAGMENT */
78
+ ))
79
+ ],
80
+ 512
81
+ /* NEED_PATCH */
82
+ ), [
83
+ [g, e.selectedContact]
84
+ ])
85
+ ]),
86
+ n("div", q, [
87
+ l[3] || (l[3] = n(
88
+ "h3",
89
+ { style: { margin: "0" } },
90
+ " Через какой канал ",
91
+ -1
92
+ /* CACHED */
93
+ )),
94
+ v(n("select", {
95
+ id: "folder",
96
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => e.selectedChannel = t),
97
+ disabled: !e.allowChangeChannel
98
+ }, [
99
+ (i(!0), o(
100
+ p,
101
+ null,
102
+ h(e.filteredChannels, (t) => (i(), o("option", {
103
+ key: t.id || t.title,
104
+ value: t
105
+ }, d(t.title), 9, x))),
106
+ 128
107
+ /* KEYED_FRAGMENT */
108
+ ))
109
+ ], 8, w), [
110
+ [g, e.selectedChannel]
111
+ ])
112
+ ]),
113
+ n("button", {
114
+ type: "button",
115
+ class: "modal__button-start",
116
+ "aria-label": "Close modal",
117
+ disabled: !e.allowStartDialog,
118
+ onClick: e.handleStartDialog
119
+ }, " Начать диалог ", 8, V)
120
+ ]);
121
+ }
122
+ const U = /* @__PURE__ */ y(D, [["render", j], ["__scopeId", "data-v-9e8912bb"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_modals/CreateDialog/CreateDialog.vue"]]);
76
123
  export {
77
- I as default
124
+ U as default
78
125
  };
@@ -1,15 +1,7 @@
1
- import { createBlock as r, openBlock as c, Transition as m, withCtx as b, withDirectives as u, createElementVNode as e, renderSlot as p, vShow as f } from "vue";
1
+ import { createBlock as n, openBlock as c, Transition as m, withCtx as p, withDirectives as b, createElementVNode as o, renderSlot as u, vShow as _ } from "vue";
2
2
  /* empty css */
3
- import _ from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const h = ["data-theme"], k = {
5
- class: "modal",
6
- role: "dialog",
7
- "aria-labelledby": "modalTitle",
8
- "aria-describedby": "modalDescription"
9
- }, v = {
10
- id: "modalDescription",
11
- class: "modal-body"
12
- }, y = { class: "buttons" }, g = ["aria-disabled", "disabled"], C = {
3
+ import f from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const v = {
13
5
  __name: "Modal",
14
6
  props: {
15
7
  theme: {
@@ -24,46 +16,63 @@ const h = ["data-theme"], k = {
24
16
  }
25
17
  },
26
18
  emits: ["close", "submit"],
27
- setup(s, { emit: d }) {
28
- const o = d, l = s, i = (a) => {
29
- a.target.classList.contains("modal-backdrop") && o("close");
30
- };
31
- return (a, t) => (c(), r(m, { name: "modal-fade" }, {
32
- default: b(() => [
33
- u(e("div", {
34
- class: "modal-backdrop",
35
- "data-theme": s.theme,
36
- onClick: i
37
- }, [
38
- e("div", k, [
39
- e("div", v, [
40
- p(a.$slots, "default", {}, void 0, !0)
41
- ]),
42
- e("div", y, [
43
- e("button", {
44
- type: "button",
45
- class: "btn-green",
46
- "aria-label": "Close modal",
47
- "aria-disabled": l.okDisabled ? "true" : "false",
48
- disabled: l.okDisabled,
49
- onClick: t[0] || (t[0] = (n) => o("submit"))
50
- }, " OK ", 8, g),
51
- e("button", {
52
- type: "button",
53
- class: "btn-green btn-gray",
54
- "aria-label": "Close modal",
55
- onClick: t[1] || (t[1] = (n) => o("close"))
56
- }, " Cancel ")
57
- ])
19
+ setup(a, { expose: t, emit: l }) {
20
+ t();
21
+ const e = l, s = { emit: e, props: a, closeModalOutside: (r) => {
22
+ r.target.classList.contains("modal-backdrop") && e("close");
23
+ } };
24
+ return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
25
+ }
26
+ }, h = ["data-theme"], k = {
27
+ class: "modal",
28
+ role: "dialog",
29
+ "aria-labelledby": "modalTitle",
30
+ "aria-describedby": "modalDescription"
31
+ }, y = {
32
+ id: "modalDescription",
33
+ class: "modal-body"
34
+ }, g = { class: "buttons" }, C = ["aria-disabled", "disabled"];
35
+ function M(a, t, l, e, d, i) {
36
+ return c(), n(m, {
37
+ name: "modal-fade",
38
+ persisted: ""
39
+ }, {
40
+ default: p(() => [
41
+ b(o("div", {
42
+ class: "modal-backdrop",
43
+ "data-theme": l.theme,
44
+ onClick: e.closeModalOutside
45
+ }, [
46
+ o("div", k, [
47
+ o("div", y, [
48
+ u(a.$slots, "default", {}, void 0, !0)
49
+ ]),
50
+ o("div", g, [
51
+ o("button", {
52
+ type: "button",
53
+ class: "btn-green",
54
+ "aria-label": "Close modal",
55
+ "aria-disabled": e.props.okDisabled ? "true" : "false",
56
+ disabled: e.props.okDisabled,
57
+ onClick: t[0] || (t[0] = (s) => e.emit("submit"))
58
+ }, " OK ", 8, C),
59
+ o("button", {
60
+ type: "button",
61
+ class: "btn-green btn-gray",
62
+ "aria-label": "Close modal",
63
+ onClick: t[1] || (t[1] = (s) => e.emit("close"))
64
+ }, " Cancel ")
58
65
  ])
59
- ], 8, h), [
60
- [f, !0]
61
66
  ])
62
- ]),
63
- _: 3
64
- }));
65
- }
66
- }, B = /* @__PURE__ */ _(C, [["__scopeId", "data-v-6f045439"]]);
67
+ ], 8, h), [
68
+ [_, !0]
69
+ ])
70
+ ]),
71
+ _: 3
72
+ /* FORWARDED */
73
+ });
74
+ }
75
+ const x = /* @__PURE__ */ f(v, [["render", M], ["__scopeId", "data-v-e22b9a43"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_modals/Modal/Modal.vue"]]);
67
76
  export {
68
- B as default
77
+ x as default
69
78
  };
@@ -1,7 +1,7 @@
1
- import { onMounted as m, onUnmounted as u, createElementBlock as d, openBlock as i, withKeys as _, createElementVNode as o, renderSlot as f, createCommentVNode as p, toDisplayString as v } from "vue";
1
+ import { onMounted as c, onUnmounted as m, createElementBlock as _, openBlock as u, withKeys as p, createElementVNode as n, renderSlot as f, createCommentVNode as v, toDisplayString as y } from "vue";
2
2
  /* empty css */
3
- import y from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const k = ["data-theme"], h = { class: "modal__container" }, E = { class: "modal__header" }, g = ["title"], M = {
3
+ import h from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const k = {
5
5
  __name: "ModalFullscreen",
6
6
  props: {
7
7
  theme: {
@@ -16,43 +16,56 @@ const k = ["data-theme"], h = { class: "modal__container" }, E = { class: "modal
16
16
  }
17
17
  },
18
18
  emits: ["close"],
19
- setup(s, { emit: a }) {
20
- const n = a, c = (t) => {
21
- t.target.classList.contains("modal__overlay") && n("close");
22
- }, l = (t) => {
23
- t.key === "Escape" && n("close");
19
+ setup(d, { expose: e, emit: t }) {
20
+ e();
21
+ const o = d, l = t, a = (i) => {
22
+ i.target.classList.contains("modal__overlay") && l("close");
23
+ }, s = (i) => {
24
+ i.key === "Escape" && l("close");
24
25
  };
25
- return m(() => {
26
- document.addEventListener("keydown", l);
27
- }), u(() => {
28
- document.removeEventListener("keydown", l);
29
- }), (t, e) => (i(), d("div", {
30
- class: "modal__overlay",
31
- "data-theme": s.theme,
32
- onClick: c,
33
- onKeyup: e[1] || (e[1] = _((r) => n("close"), ["esc"]))
34
- }, [
35
- o("div", h, [
36
- o("div", E, [
37
- s.title ? (i(), d("div", {
38
- key: 0,
39
- class: "modal__caption",
40
- title: s.title
41
- }, v(s.title), 9, g)) : p("", !0),
42
- o("button", {
43
- class: "modal__close-button",
44
- onClick: e[0] || (e[0] = (r) => n("close"))
45
- }, [...e[2] || (e[2] = [
46
- o("span", null, [
47
- o("i", { class: "pi pi-times" })
48
- ], -1)
49
- ])])
50
- ]),
51
- f(t.$slots, "default", {}, void 0, !0)
52
- ])
53
- ], 40, k));
26
+ c(() => {
27
+ document.addEventListener("keydown", s);
28
+ }), m(() => {
29
+ document.removeEventListener("keydown", s);
30
+ });
31
+ const r = { props: o, emit: l, closeModalOutside: a, handleEscKey: s, onMounted: c, onUnmounted: m };
32
+ return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
54
33
  }
55
- }, C = /* @__PURE__ */ y(M, [["__scopeId", "data-v-b7da79e5"]]);
34
+ }, M = ["data-theme"], E = { class: "modal__container" }, S = { class: "modal__header" }, g = ["title"];
35
+ function b(d, e, t, o, l, a) {
36
+ return u(), _("div", {
37
+ class: "modal__overlay",
38
+ "data-theme": t.theme,
39
+ onClick: o.closeModalOutside,
40
+ onKeyup: e[1] || (e[1] = p((s) => o.emit("close"), ["esc"]))
41
+ }, [
42
+ n("div", E, [
43
+ n("div", S, [
44
+ t.title ? (u(), _("div", {
45
+ key: 0,
46
+ class: "modal__caption",
47
+ title: t.title
48
+ }, y(t.title), 9, g)) : v("v-if", !0),
49
+ n("button", {
50
+ class: "modal__close-button",
51
+ onClick: e[0] || (e[0] = (s) => o.emit("close"))
52
+ }, [...e[2] || (e[2] = [
53
+ n(
54
+ "span",
55
+ null,
56
+ [
57
+ n("i", { class: "pi pi-times" })
58
+ ],
59
+ -1
60
+ /* CACHED */
61
+ )
62
+ ])])
63
+ ]),
64
+ f(d.$slots, "default", {}, void 0, !0)
65
+ ])
66
+ ], 40, M);
67
+ }
68
+ const C = /* @__PURE__ */ h(k, [["render", b], ["__scopeId", "data-v-55a36031"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_modals/ModalFullscreen/ModalFullscreen.vue"]]);
56
69
  export {
57
70
  C as default
58
71
  };