isometrik-plugin-chat-sdk 2.0.20 → 2.0.22

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 (576) hide show
  1. package/dist/cjs/admin-transfer-dialog.cjs.entry.js +2 -2
  2. package/dist/cjs/{app-globals-2824b330.js → app-globals-0e7848be.js} +3 -3
  3. package/dist/cjs/{app-globals-2824b330.js.map → app-globals-0e7848be.js.map} +1 -1
  4. package/dist/cjs/{attachment-preview_22.cjs.entry.js → attachment-preview_23.cjs.entry.js} +692 -388
  5. package/dist/cjs/attachment-preview_23.cjs.entry.js.map +1 -0
  6. package/dist/cjs/audio-bubble_4.cjs.entry.js +66 -22
  7. package/dist/cjs/audio-bubble_4.cjs.entry.js.map +1 -1
  8. package/dist/cjs/chat-app.cjs.entry.js +1 -1
  9. package/dist/cjs/chat-document-message-bubble.cjs.entry.js +1 -1
  10. package/dist/cjs/chat-image-message-bubble.cjs.entry.js +1 -1
  11. package/dist/cjs/chat-tile_3.cjs.entry.js +14 -10
  12. package/dist/cjs/chat-tile_3.cjs.entry.js.map +1 -1
  13. package/dist/cjs/chat-video-message-bubble.cjs.entry.js +1 -1
  14. package/dist/cjs/confirm-dialog.cjs.entry.js +1 -1
  15. package/dist/cjs/{content-ebca062a.js → content-8b271b56.js} +3 -1
  16. package/dist/cjs/content-8b271b56.js.map +1 -0
  17. package/dist/cjs/delete-message.cjs.entry.js +1 -1
  18. package/dist/cjs/download-9ccc0a6c.js +120 -0
  19. package/dist/cjs/download-9ccc0a6c.js.map +1 -0
  20. package/dist/cjs/{drawer-00a2323a.js → drawer-3f9c87b4.js} +42 -5
  21. package/dist/cjs/drawer-3f9c87b4.js.map +1 -0
  22. package/dist/cjs/forward-memebers.cjs.entry.js +61 -24
  23. package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -1
  24. package/dist/cjs/forward-message.cjs.entry.js +2 -2
  25. package/dist/cjs/group-chat-contacts.cjs.entry.js +2 -2
  26. package/dist/cjs/{group-members-b3bea06e.js → group-members-1205fc4c.js} +5 -5
  27. package/dist/cjs/{group-members-b3bea06e.js.map → group-members-1205fc4c.js.map} +1 -1
  28. package/dist/cjs/{groupcast-8441b4df.js → groupcast-bb393c81.js} +14 -54
  29. package/dist/cjs/groupcast-bb393c81.js.map +1 -0
  30. package/dist/cjs/{groupcast-f24da720.js → groupcast-e1e52bd1.js} +16 -16
  31. package/dist/cjs/{groupcast-f24da720.js.map → groupcast-e1e52bd1.js.map} +1 -1
  32. package/dist/cjs/{helpers-154861e9.js → helpers-877a7116.js} +30 -1
  33. package/dist/cjs/helpers-877a7116.js.map +1 -0
  34. package/dist/cjs/index.cjs.js +8 -6
  35. package/dist/cjs/index.cjs.js.map +1 -1
  36. package/dist/cjs/{toast-91093c84.js → index.m-ff115b26.js} +1 -156
  37. package/dist/cjs/{toast-91093c84.js.map → index.m-ff115b26.js.map} +1 -1
  38. package/dist/cjs/info-panel-media_2.cjs.entry.js +244 -0
  39. package/dist/cjs/info-panel-media_2.cjs.entry.js.map +1 -0
  40. package/dist/cjs/isometrik-webchat.cjs.js +11 -9
  41. package/dist/cjs/isometrik-webchat.cjs.js.map +1 -1
  42. package/dist/cjs/loader.cjs.js +11 -9
  43. package/dist/cjs/loader.cjs.js.map +1 -1
  44. package/dist/cjs/{local-notification-bdd04d7a.js → local-notification-a86a2b34.js} +3 -3
  45. package/dist/cjs/local-notification-a86a2b34.js.map +1 -0
  46. package/dist/cjs/login-page_3.cjs.entry.js +258 -104
  47. package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
  48. package/dist/cjs/media-gallery.cjs.entry.js +10 -2
  49. package/dist/cjs/media-gallery.cjs.entry.js.map +1 -1
  50. package/dist/cjs/member-add.cjs.entry.js +20 -11
  51. package/dist/cjs/member-add.cjs.entry.js.map +1 -1
  52. package/dist/cjs/message-bubble.cjs.entry.js +2 -2
  53. package/dist/cjs/{message-reaction-82a4f93c.js → message-reaction-8f93a048.js} +5 -5
  54. package/dist/cjs/{message-reaction-82a4f93c.js.map → message-reaction-8f93a048.js.map} +1 -1
  55. package/dist/cjs/messages-e129b34d.js +179 -0
  56. package/dist/cjs/messages-e129b34d.js.map +1 -0
  57. package/dist/cjs/my-component.cjs.entry.js +1 -1
  58. package/dist/cjs/new-chat-sidebar.cjs.entry.js +2 -2
  59. package/dist/cjs/play-b473e0ab.js +13 -0
  60. package/dist/cjs/play-b473e0ab.js.map +1 -0
  61. package/dist/cjs/profile-avatar.cjs.entry.js +1 -1
  62. package/dist/cjs/reaction-container.cjs.entry.js +5 -4
  63. package/dist/cjs/reaction-container.cjs.entry.js.map +1 -1
  64. package/dist/cjs/{runtime-controls-cfc8fc31.js → runtime-controls-a70872fe.js} +33 -15
  65. package/dist/cjs/runtime-controls-a70872fe.js.map +1 -0
  66. package/dist/cjs/{send-media-4ee967d4.js → send-media-8a841e50.js} +559 -192
  67. package/dist/cjs/send-media-8a841e50.js.map +1 -0
  68. package/dist/cjs/share-popup.cjs.entry.js +1 -1
  69. package/dist/cjs/signup-page.cjs.entry.js +2 -2
  70. package/dist/cjs/spinner-loader.cjs.entry.js +1 -1
  71. package/dist/cjs/{group-members-cef1198e.js → storage-quota-2e81fb71.js} +254 -10
  72. package/dist/cjs/storage-quota-2e81fb71.js.map +1 -0
  73. package/dist/cjs/toast-a75f822c.js +159 -0
  74. package/dist/cjs/toast-a75f822c.js.map +1 -0
  75. package/dist/collection/collection-manifest.json +10 -8
  76. package/dist/collection/components/ChatUIComponent/AddMember.js +14 -7
  77. package/dist/collection/components/ChatUIComponent/AddMember.js.map +1 -1
  78. package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +1 -1
  79. package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +1 -1
  80. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js +8 -2
  81. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js.map +1 -1
  82. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +90 -47
  83. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
  84. package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +1 -1
  85. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +105 -37
  86. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -1
  87. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +45 -11
  88. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -1
  89. package/dist/collection/components/ChatUIComponent/ReactionContainer.js +2 -2
  90. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +38 -13
  91. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
  92. package/dist/collection/components/ChatUIComponent/WebChatBody/web-chat-body.css +1 -0
  93. package/dist/collection/components/ChatUIComponent/shared/AudioBubble/AudioBubble.js +22 -10
  94. package/dist/collection/components/ChatUIComponent/shared/AudioBubble/AudioBubble.js.map +1 -1
  95. package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js +55 -19
  96. package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js.map +1 -1
  97. package/dist/collection/components/ChatUIComponent/shared/admin-transfer-dialog/admin-transfer-dialog.js +2 -2
  98. package/dist/collection/components/ChatUIComponent/shared/attachment-preview/attachment-preview.js +1 -1
  99. package/dist/collection/components/ChatUIComponent/shared/block chatlist/BlockChatList.js +1 -1
  100. package/dist/collection/components/ChatUIComponent/shared/chat-loading-placeholder/chat-loading-placeholder.js +1 -1
  101. package/dist/collection/components/ChatUIComponent/shared/chat-tile/chat-tile.js +31 -9
  102. package/dist/collection/components/ChatUIComponent/shared/chat-tile/chat-tile.js.map +1 -1
  103. package/dist/collection/components/ChatUIComponent/shared/confirm-dialog/confirm-dialog.js +1 -1
  104. package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js +66 -157
  105. package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js.map +1 -1
  106. package/dist/collection/components/ChatUIComponent/shared/delete-message/delete-message.js +1 -1
  107. package/dist/collection/components/ChatUIComponent/shared/document-message/document-message.js +14 -4
  108. package/dist/collection/components/ChatUIComponent/shared/document-message/document-message.js.map +1 -1
  109. package/dist/collection/components/ChatUIComponent/shared/forward-message/forward-message.js +2 -2
  110. package/dist/collection/components/ChatUIComponent/shared/group-info/group-info.js +1 -1
  111. package/dist/collection/components/ChatUIComponent/shared/image-message/image-message.js +65 -2
  112. package/dist/collection/components/ChatUIComponent/shared/image-message/image-message.js.map +1 -1
  113. package/dist/collection/components/ChatUIComponent/shared/incoming-text-message-bubble/incoming-text-message-bubble.js +1 -1
  114. package/dist/collection/components/ChatUIComponent/shared/info-panel-media/info-panel-media.js +335 -0
  115. package/dist/collection/components/ChatUIComponent/shared/info-panel-media/info-panel-media.js.map +1 -0
  116. package/dist/collection/components/ChatUIComponent/shared/link-preview/link-preview.js +1 -1
  117. package/dist/collection/components/ChatUIComponent/shared/media-gallery/media-gallery.js +11 -2
  118. package/dist/collection/components/ChatUIComponent/shared/media-gallery/media-gallery.js.map +1 -1
  119. package/dist/collection/components/ChatUIComponent/shared/message-bubble/message-bubble.js +2 -2
  120. package/dist/collection/components/ChatUIComponent/shared/message-date-pill/message-date-pill.js +1 -1
  121. package/dist/collection/components/ChatUIComponent/shared/message-info/message-info.js +1 -1
  122. package/dist/collection/components/ChatUIComponent/shared/message-search/message-search.js +1 -1
  123. package/dist/collection/components/ChatUIComponent/shared/new chat/new-chat.js +1 -1
  124. package/dist/collection/components/ChatUIComponent/shared/outgoing-text-message-bubble/outgoing-text-message-bubble.js +1 -1
  125. package/dist/collection/components/ChatUIComponent/shared/profile sidebar/profile-sidebar.js +1 -1
  126. package/dist/collection/components/ChatUIComponent/shared/profile-avatar/profile-avatar.js +1 -1
  127. package/dist/collection/components/ChatUIComponent/shared/profile-info/profile-info.js +70 -3
  128. package/dist/collection/components/ChatUIComponent/shared/profile-info/profile-info.js.map +1 -1
  129. package/dist/collection/components/ChatUIComponent/shared/reply-block/reply-block.js +1 -1
  130. package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.js +31 -2
  131. package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.js.map +1 -1
  132. package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.stories.js +10 -6
  133. package/dist/collection/components/ChatUIComponent/shared/searchable list/searchable-list.js +3 -3
  134. package/dist/collection/components/ChatUIComponent/shared/share-popup/share-popup.js +1 -1
  135. package/dist/collection/components/ChatUIComponent/shared/spinner-loader/spinner-loader.js +1 -1
  136. package/dist/collection/components/ChatUIComponent/shared/storage/storage-manager.js +140 -0
  137. package/dist/collection/components/ChatUIComponent/shared/storage/storage-manager.js.map +1 -0
  138. package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js +35 -3
  139. package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js.map +1 -1
  140. package/dist/collection/components/Login.js +1 -1
  141. package/dist/collection/components/Signup.js +2 -2
  142. package/dist/collection/components/chat-main.js +1 -1
  143. package/dist/collection/components/my-component/my-component.js +1 -1
  144. package/dist/collection/components/my-component/web-chat/WebChat.js +145 -1
  145. package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -1
  146. package/dist/collection/components/my-component/web-chat/WebchatRightSide.js +44 -2
  147. package/dist/collection/components/my-component/web-chat/WebchatRightSide.js.map +1 -1
  148. package/dist/collection/components/my-component/web-chat/bootstrap.js +1 -0
  149. package/dist/collection/components/my-component/web-chat/bootstrap.js.map +1 -1
  150. package/dist/collection/components/my-component/web-chat/conversation-ops.js +22 -2
  151. package/dist/collection/components/my-component/web-chat/conversation-ops.js.map +1 -1
  152. package/dist/collection/components/my-component/web-chat/data-fetch.js +9 -4
  153. package/dist/collection/components/my-component/web-chat/data-fetch.js.map +1 -1
  154. package/dist/collection/components/my-component/web-chat/event-handlers.js +51 -10
  155. package/dist/collection/components/my-component/web-chat/event-handlers.js.map +1 -1
  156. package/dist/collection/components/my-component/web-chat/mutations.js +38 -8
  157. package/dist/collection/components/my-component/web-chat/mutations.js.map +1 -1
  158. package/dist/collection/components/my-component/web-chat/offline-host.js +31 -17
  159. package/dist/collection/components/my-component/web-chat/offline-host.js.map +1 -1
  160. package/dist/collection/components/my-component/web-chat/public-send.js +6 -1
  161. package/dist/collection/components/my-component/web-chat/public-send.js.map +1 -1
  162. package/dist/collection/components/my-component/web-chat/shell-render.js +11 -9
  163. package/dist/collection/components/my-component/web-chat/shell-render.js.map +1 -1
  164. package/dist/collection/components/my-component/web-chat/web-chat.css +40 -3
  165. package/dist/collection/components/theme-provider.js +1 -1
  166. package/dist/collection/constants/content.js +2 -0
  167. package/dist/collection/lib/chat/block-status.js +12 -0
  168. package/dist/collection/lib/chat/block-status.js.map +1 -0
  169. package/dist/collection/lib/chat/clipboard-paste.js +68 -0
  170. package/dist/collection/lib/chat/clipboard-paste.js.map +1 -0
  171. package/dist/collection/lib/chat/conversations.js +47 -3
  172. package/dist/collection/lib/chat/conversations.js.map +1 -1
  173. package/dist/collection/lib/chat/download-media.js +112 -0
  174. package/dist/collection/lib/chat/download-media.js.map +1 -0
  175. package/dist/collection/lib/chat/index.js +6 -2
  176. package/dist/collection/lib/chat/index.js.map +1 -1
  177. package/dist/collection/lib/chat/local-notification.js +1 -1
  178. package/dist/collection/lib/chat/local-notification.js.map +1 -1
  179. package/dist/collection/lib/chat/same-name-upload.js +53 -0
  180. package/dist/collection/lib/chat/same-name-upload.js.map +1 -0
  181. package/dist/collection/lib/chat/send-media.js +194 -27
  182. package/dist/collection/lib/chat/send-media.js.map +1 -1
  183. package/dist/collection/lib/chat/session.js +9 -3
  184. package/dist/collection/lib/chat/session.js.map +1 -1
  185. package/dist/collection/lib/chat/storage-quota.js +226 -0
  186. package/dist/collection/lib/chat/storage-quota.js.map +1 -0
  187. package/dist/collection/lib/custom-ui/public-api.js +5 -0
  188. package/dist/collection/lib/custom-ui/public-api.js.map +1 -1
  189. package/dist/collection/lib/drawer.js +42 -4
  190. package/dist/collection/lib/drawer.js.map +1 -1
  191. package/dist/collection/lib/helpers.js +29 -1
  192. package/dist/collection/lib/mqtt/dispatch.js +7 -3
  193. package/dist/collection/lib/mqtt/dispatch.js.map +1 -1
  194. package/dist/collection/sdk/headless-api.js +8 -0
  195. package/dist/collection/sdk/headless-api.js.map +1 -1
  196. package/dist/collection/sdk/index.js +1 -0
  197. package/dist/collection/sdk/index.js.map +1 -1
  198. package/dist/collection/sdk/webchat-api.js +5 -0
  199. package/dist/collection/sdk/webchat-api.js.map +1 -1
  200. package/dist/collection/store/storage-quota.js +244 -0
  201. package/dist/collection/store/storage-quota.js.map +1 -0
  202. package/dist/collection/testing/iso-chat-sdk-mock.js +10 -6
  203. package/dist/components/AudioBubble.js +22 -10
  204. package/dist/components/AudioBubble.js.map +1 -1
  205. package/dist/components/BlockChatList.js +2 -2
  206. package/dist/components/ChatFooter.js +172 -37
  207. package/dist/components/ChatFooter.js.map +1 -1
  208. package/dist/components/ChatSidebar.js +102 -49
  209. package/dist/components/ChatSidebar.js.map +1 -1
  210. package/dist/components/GroupCast2.js +1 -1
  211. package/dist/components/Login.js +1 -1
  212. package/dist/components/Profile.js +20 -9
  213. package/dist/components/Profile.js.map +1 -1
  214. package/dist/components/WebChat.js +301 -126
  215. package/dist/components/WebChat.js.map +1 -1
  216. package/dist/components/WebChatBody.js +39 -14
  217. package/dist/components/WebChatBody.js.map +1 -1
  218. package/dist/components/WebChatHeader.js +48 -15
  219. package/dist/components/WebChatHeader.js.map +1 -1
  220. package/dist/components/WebchatRightSide.js +22 -7
  221. package/dist/components/WebchatRightSide.js.map +1 -1
  222. package/dist/components/admin-transfer-dialog.js +2 -2
  223. package/dist/components/attachment-preview2.js +1 -1
  224. package/dist/components/chat-app.js +85 -73
  225. package/dist/components/chat-app.js.map +1 -1
  226. package/dist/components/chat-assets.js +1 -1
  227. package/dist/components/chat-document-message-bubble.js +1 -1
  228. package/dist/components/chat-image-message-bubble.js +1 -1
  229. package/dist/components/chat-loading-placeholder2.js +1 -1
  230. package/dist/components/chat-tile2.js +12 -7
  231. package/dist/components/chat-tile2.js.map +1 -1
  232. package/dist/components/chat-video-message-bubble.js +1 -1
  233. package/dist/components/client.js +11 -47
  234. package/dist/components/client.js.map +1 -1
  235. package/dist/components/confirm-dialog.js +1 -1
  236. package/dist/components/contact-info2.js +73 -162
  237. package/dist/components/contact-info2.js.map +1 -1
  238. package/dist/components/content.js +2 -0
  239. package/dist/components/content.js.map +1 -1
  240. package/dist/components/conversation.js +1 -1
  241. package/dist/components/conversations.js +91 -0
  242. package/dist/components/conversations.js.map +1 -0
  243. package/dist/components/delete-message.js +1 -1
  244. package/dist/components/document-message2.js +15 -6
  245. package/dist/components/document-message2.js.map +1 -1
  246. package/dist/components/download-media.js +115 -0
  247. package/dist/components/download-media.js.map +1 -0
  248. package/dist/components/download.js +5 -0
  249. package/dist/components/download.js.map +1 -0
  250. package/dist/components/drawer.js +42 -5
  251. package/dist/components/drawer.js.map +1 -1
  252. package/dist/components/forward-memebers.js +56 -20
  253. package/dist/components/forward-memebers.js.map +1 -1
  254. package/dist/components/forward-message.js +2 -2
  255. package/dist/components/group-chat-contacts2.js +1 -1
  256. package/dist/components/group-info.js +1 -1
  257. package/dist/components/group-members.js +26 -298
  258. package/dist/components/group-members.js.map +1 -1
  259. package/dist/components/helpers.js +28 -1
  260. package/dist/components/helpers.js.map +1 -1
  261. package/dist/components/image-message2.js +17 -2
  262. package/dist/components/image-message2.js.map +1 -1
  263. package/dist/components/incoming-text-message-bubble2.js +1 -1
  264. package/dist/components/index.js +21 -2
  265. package/dist/components/index.js.map +1 -1
  266. package/dist/{esm/group-members-7909941c.js → components/index3.js} +3 -52
  267. package/dist/components/index3.js.map +1 -0
  268. package/dist/components/info-panel-media.d.ts +11 -0
  269. package/dist/components/info-panel-media.js +8 -0
  270. package/dist/components/info-panel-media.js.map +1 -0
  271. package/dist/components/info-panel-media2.js +242 -0
  272. package/dist/components/info-panel-media2.js.map +1 -0
  273. package/dist/components/link-preview2.js +1 -1
  274. package/dist/components/local-notification.js +1 -1
  275. package/dist/components/local-notification.js.map +1 -1
  276. package/dist/components/media-gallery.js +11 -2
  277. package/dist/components/media-gallery.js.map +1 -1
  278. package/dist/components/member-add.js +16 -9
  279. package/dist/components/member-add.js.map +1 -1
  280. package/dist/components/message-bubble2.js +2 -2
  281. package/dist/components/message-date-pill2.js +1 -1
  282. package/dist/components/message-info2.js +2 -2
  283. package/dist/components/message-search2.js +1 -1
  284. package/dist/components/messages.js +1 -1
  285. package/dist/components/my-component.js +1 -1
  286. package/dist/components/new-chat-sidebar.js +1 -1
  287. package/dist/components/new-chat2.js +1 -1
  288. package/dist/components/outgoing-text-message-bubble2.js +1 -1
  289. package/dist/components/profile-avatar2.js +1 -1
  290. package/dist/components/profile-info2.js +69 -6
  291. package/dist/components/profile-info2.js.map +1 -1
  292. package/dist/components/profile-sidebar2.js +2 -2
  293. package/dist/components/prompt-exit-group.js +26 -3
  294. package/dist/components/prompt-exit-group.js.map +1 -1
  295. package/dist/components/reaction-container.js +2 -2
  296. package/dist/components/reply-block2.js +1 -1
  297. package/dist/components/reply-message-container2.js +12 -2
  298. package/dist/components/reply-message-container2.js.map +1 -1
  299. package/dist/components/searchable-list2.js +3 -3
  300. package/dist/components/send-media.js +242 -33
  301. package/dist/components/send-media.js.map +1 -1
  302. package/dist/components/share-popup.js +1 -1
  303. package/dist/components/signup-page.js +2 -2
  304. package/dist/components/spinner-loader2.js +1 -1
  305. package/dist/components/storage-manager.js +125 -0
  306. package/dist/components/storage-manager.js.map +1 -0
  307. package/dist/components/storage-quota.js +223 -0
  308. package/dist/components/storage-quota.js.map +1 -0
  309. package/dist/components/storage-quota2.js +248 -0
  310. package/dist/components/storage-quota2.js.map +1 -0
  311. package/dist/components/theme-provider2.js +1 -1
  312. package/dist/components/video-message2.js +19 -3
  313. package/dist/components/video-message2.js.map +1 -1
  314. package/dist/components/web-chat-storage.d.ts +11 -0
  315. package/dist/components/web-chat-storage.js +8 -0
  316. package/dist/components/web-chat-storage.js.map +1 -0
  317. package/dist/esm/admin-transfer-dialog.entry.js +2 -2
  318. package/dist/esm/{app-globals-e3f4717b.js → app-globals-eba1ca0c.js} +3 -3
  319. package/dist/esm/{app-globals-e3f4717b.js.map → app-globals-eba1ca0c.js.map} +1 -1
  320. package/dist/esm/{attachment-preview_22.entry.js → attachment-preview_23.entry.js} +657 -354
  321. package/dist/esm/attachment-preview_23.entry.js.map +1 -0
  322. package/dist/esm/audio-bubble_4.entry.js +66 -22
  323. package/dist/esm/audio-bubble_4.entry.js.map +1 -1
  324. package/dist/esm/chat-app.entry.js +1 -1
  325. package/dist/esm/chat-document-message-bubble.entry.js +1 -1
  326. package/dist/esm/chat-image-message-bubble.entry.js +1 -1
  327. package/dist/esm/chat-tile_3.entry.js +15 -11
  328. package/dist/esm/chat-tile_3.entry.js.map +1 -1
  329. package/dist/esm/chat-video-message-bubble.entry.js +1 -1
  330. package/dist/esm/confirm-dialog.entry.js +1 -1
  331. package/dist/esm/{content-fb138a93.js → content-fd0af283.js} +3 -1
  332. package/dist/esm/content-fd0af283.js.map +1 -0
  333. package/dist/esm/delete-message.entry.js +1 -1
  334. package/dist/esm/download-5368a10f.js +117 -0
  335. package/dist/esm/download-5368a10f.js.map +1 -0
  336. package/dist/esm/{drawer-7de04622.js → drawer-a457d820.js} +43 -6
  337. package/dist/esm/drawer-a457d820.js.map +1 -0
  338. package/dist/esm/forward-memebers.entry.js +59 -22
  339. package/dist/esm/forward-memebers.entry.js.map +1 -1
  340. package/dist/esm/forward-message.entry.js +2 -2
  341. package/dist/esm/group-chat-contacts.entry.js +2 -2
  342. package/dist/esm/{group-members-36cf9395.js → group-members-d603f29f.js} +2 -2
  343. package/dist/esm/{group-members-36cf9395.js.map → group-members-d603f29f.js.map} +1 -1
  344. package/dist/esm/{groupcast-5fb19ec3.js → groupcast-4f15b050.js} +14 -50
  345. package/dist/esm/groupcast-4f15b050.js.map +1 -0
  346. package/dist/esm/{groupcast-f96c1d9e.js → groupcast-c6da3918.js} +2 -2
  347. package/dist/esm/{groupcast-f96c1d9e.js.map → groupcast-c6da3918.js.map} +1 -1
  348. package/dist/esm/{helpers-f33b895c.js → helpers-1632a4c7.js} +29 -2
  349. package/dist/esm/helpers-1632a4c7.js.map +1 -0
  350. package/dist/esm/index.js +9 -7
  351. package/dist/esm/index.js.map +1 -1
  352. package/dist/esm/{toast-a1531088.js → index.m-8c70037f.js} +2 -156
  353. package/dist/esm/{toast-a1531088.js.map → index.m-8c70037f.js.map} +1 -1
  354. package/dist/esm/info-panel-media_2.entry.js +239 -0
  355. package/dist/esm/info-panel-media_2.entry.js.map +1 -0
  356. package/dist/esm/isometrik-webchat.js +11 -9
  357. package/dist/esm/isometrik-webchat.js.map +1 -1
  358. package/dist/esm/loader.js +11 -9
  359. package/dist/esm/loader.js.map +1 -1
  360. package/dist/esm/{local-notification-4c1e166d.js → local-notification-f9ae9062.js} +3 -3
  361. package/dist/esm/local-notification-f9ae9062.js.map +1 -0
  362. package/dist/esm/login-page_3.entry.js +219 -65
  363. package/dist/esm/login-page_3.entry.js.map +1 -1
  364. package/dist/esm/media-gallery.entry.js +10 -2
  365. package/dist/esm/media-gallery.entry.js.map +1 -1
  366. package/dist/esm/member-add.entry.js +20 -11
  367. package/dist/esm/member-add.entry.js.map +1 -1
  368. package/dist/esm/message-bubble.entry.js +2 -2
  369. package/dist/esm/{message-reaction-0d2ef75f.js → message-reaction-0a2bb115.js} +2 -2
  370. package/dist/esm/{message-reaction-0d2ef75f.js.map → message-reaction-0a2bb115.js.map} +1 -1
  371. package/dist/esm/messages-057dbecb.js +167 -0
  372. package/dist/esm/messages-057dbecb.js.map +1 -0
  373. package/dist/esm/my-component.entry.js +1 -1
  374. package/dist/esm/new-chat-sidebar.entry.js +2 -2
  375. package/dist/esm/play-05ae077a.js +9 -0
  376. package/dist/esm/play-05ae077a.js.map +1 -0
  377. package/dist/esm/profile-avatar.entry.js +1 -1
  378. package/dist/esm/reaction-container.entry.js +5 -4
  379. package/dist/esm/reaction-container.entry.js.map +1 -1
  380. package/dist/esm/{runtime-controls-ff81e90a.js → runtime-controls-bdb84aeb.js} +21 -3
  381. package/dist/esm/runtime-controls-bdb84aeb.js.map +1 -0
  382. package/dist/esm/{send-media-58e7145b.js → send-media-04f7ca0a.js} +533 -180
  383. package/dist/esm/send-media-04f7ca0a.js.map +1 -0
  384. package/dist/esm/share-popup.entry.js +1 -1
  385. package/dist/esm/signup-page.entry.js +2 -2
  386. package/dist/esm/spinner-loader.entry.js +1 -1
  387. package/dist/esm/storage-quota-6329fabe.js +578 -0
  388. package/dist/esm/storage-quota-6329fabe.js.map +1 -0
  389. package/dist/esm/toast-f681e916.js +157 -0
  390. package/dist/esm/toast-f681e916.js.map +1 -0
  391. package/dist/isometrik-webchat/index.esm.js +1 -1
  392. package/dist/isometrik-webchat/index.esm.js.map +1 -1
  393. package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
  394. package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -1
  395. package/dist/isometrik-webchat/p-0161f40b.js +2 -0
  396. package/dist/isometrik-webchat/p-0161f40b.js.map +1 -0
  397. package/dist/isometrik-webchat/{p-d892b4d4.entry.js → p-02db2116.entry.js} +2 -2
  398. package/dist/isometrik-webchat/p-03933431.entry.js +2 -0
  399. package/dist/isometrik-webchat/{p-352b589e.entry.js.map → p-03933431.entry.js.map} +1 -1
  400. package/dist/isometrik-webchat/{p-c591fa45.js → p-04fdbd0a.js} +2 -2
  401. package/dist/isometrik-webchat/p-0bb42151.entry.js +2 -0
  402. package/dist/isometrik-webchat/p-0bb42151.entry.js.map +1 -0
  403. package/dist/isometrik-webchat/{p-c5bff6a1.entry.js → p-119fc683.entry.js} +2 -2
  404. package/dist/isometrik-webchat/p-19d37e1f.js +2 -0
  405. package/dist/isometrik-webchat/p-19d37e1f.js.map +1 -0
  406. package/dist/isometrik-webchat/{p-925decda.js → p-1dc52239.js} +2 -2
  407. package/dist/isometrik-webchat/p-1f0e8230.entry.js +2 -0
  408. package/dist/isometrik-webchat/p-1f0e8230.entry.js.map +1 -0
  409. package/dist/isometrik-webchat/{p-7b25f234.entry.js → p-35f2b9ae.entry.js} +2 -2
  410. package/dist/isometrik-webchat/p-3a0409fc.js +2 -0
  411. package/dist/isometrik-webchat/p-3a0409fc.js.map +1 -0
  412. package/dist/isometrik-webchat/{p-9982fa21.js → p-3dca1e56.js} +2 -2
  413. package/dist/isometrik-webchat/p-3dca1e56.js.map +1 -0
  414. package/dist/isometrik-webchat/p-40217f22.js +2 -0
  415. package/dist/isometrik-webchat/p-40217f22.js.map +1 -0
  416. package/dist/isometrik-webchat/{p-3b3dc33e.js → p-46be73c5.js} +2 -2
  417. package/dist/isometrik-webchat/p-56521ea4.entry.js +2 -0
  418. package/dist/isometrik-webchat/{p-f7d05551.entry.js → p-57f97cef.entry.js} +2 -2
  419. package/dist/isometrik-webchat/p-5f7eebbf.entry.js +2 -0
  420. package/dist/isometrik-webchat/p-605cb14e.entry.js +2 -0
  421. package/dist/isometrik-webchat/p-605cb14e.entry.js.map +1 -0
  422. package/dist/isometrik-webchat/p-640e2c03.entry.js +2 -0
  423. package/dist/isometrik-webchat/p-69d953cb.entry.js +2 -0
  424. package/dist/isometrik-webchat/p-69d953cb.entry.js.map +1 -0
  425. package/dist/isometrik-webchat/p-6c5eb178.js +2 -0
  426. package/dist/isometrik-webchat/{p-d8b65cf4.entry.js → p-6eadaa6c.entry.js} +2 -2
  427. package/dist/isometrik-webchat/{p-161fcb35.entry.js → p-7130f547.entry.js} +2 -2
  428. package/dist/isometrik-webchat/p-782d1bd2.js +2 -0
  429. package/dist/isometrik-webchat/p-782d1bd2.js.map +1 -0
  430. package/dist/isometrik-webchat/p-8142a54d.js +2 -0
  431. package/dist/isometrik-webchat/p-8142a54d.js.map +1 -0
  432. package/dist/isometrik-webchat/{p-cbb1179b.entry.js → p-89a8fc58.entry.js} +2 -2
  433. package/dist/isometrik-webchat/p-8f17345f.js +7 -0
  434. package/dist/isometrik-webchat/p-8f17345f.js.map +1 -0
  435. package/dist/isometrik-webchat/p-991d5437.js +2 -0
  436. package/dist/isometrik-webchat/p-991d5437.js.map +1 -0
  437. package/dist/isometrik-webchat/p-9b70e93f.entry.js +2 -0
  438. package/dist/isometrik-webchat/p-a5faa465.entry.js +2 -0
  439. package/dist/isometrik-webchat/p-a5faa465.entry.js.map +1 -0
  440. package/dist/isometrik-webchat/p-a83932d4.js +2 -0
  441. package/dist/isometrik-webchat/p-a83932d4.js.map +1 -0
  442. package/dist/isometrik-webchat/p-b0f6f9ab.entry.js +2 -0
  443. package/dist/isometrik-webchat/p-b0f6f9ab.entry.js.map +1 -0
  444. package/dist/isometrik-webchat/{p-3664e0ad.entry.js → p-b431d864.entry.js} +2 -2
  445. package/dist/isometrik-webchat/{p-0ccfbe90.entry.js → p-b516938b.entry.js} +2 -2
  446. package/dist/isometrik-webchat/p-be09cdc8.js +2 -0
  447. package/dist/isometrik-webchat/p-be09cdc8.js.map +1 -0
  448. package/dist/isometrik-webchat/{p-5b965e04.js → p-c4b7babb.js} +2 -2
  449. package/dist/isometrik-webchat/{p-5b965e04.js.map → p-c4b7babb.js.map} +1 -1
  450. package/dist/isometrik-webchat/p-d0f6679d.entry.js +2 -0
  451. package/dist/isometrik-webchat/p-d0f6679d.entry.js.map +1 -0
  452. package/dist/isometrik-webchat/p-d44c612a.entry.js +2 -0
  453. package/dist/isometrik-webchat/p-dc963574.entry.js +2 -0
  454. package/dist/isometrik-webchat/{p-5d1877d1.entry.js.map → p-dc963574.entry.js.map} +1 -1
  455. package/dist/isometrik-webchat/p-eb1f3118.entry.js +2 -0
  456. package/dist/isometrik-webchat/p-f18fa23d.js +2 -0
  457. package/dist/isometrik-webchat/p-f18fa23d.js.map +1 -0
  458. package/dist/isometrik-webchat/{p-08ba6153.entry.js → p-f5502a63.entry.js} +2 -2
  459. package/dist/types/components/ChatUIComponent/ChatOwnProfile/Profile.d.ts +2 -0
  460. package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +10 -0
  461. package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +3 -0
  462. package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +3 -0
  463. package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +5 -0
  464. package/dist/types/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.d.ts +5 -2
  465. package/dist/types/components/ChatUIComponent/shared/chat-tile/chat-tile.d.ts +4 -1
  466. package/dist/types/components/ChatUIComponent/shared/contact-info/contact-info.d.ts +8 -22
  467. package/dist/types/components/ChatUIComponent/shared/image-message/image-message.d.ts +5 -0
  468. package/dist/types/components/ChatUIComponent/shared/info-panel-media/info-panel-media.d.ts +45 -0
  469. package/dist/types/components/ChatUIComponent/shared/media-gallery/media-gallery.d.ts +1 -0
  470. package/dist/types/components/ChatUIComponent/shared/profile-info/profile-info.d.ts +8 -0
  471. package/dist/types/components/ChatUIComponent/shared/reply-message-container/reply-message-container.d.ts +3 -0
  472. package/dist/types/components/ChatUIComponent/shared/storage/storage-manager.d.ts +17 -0
  473. package/dist/types/components/ChatUIComponent/shared/video-message/video-message.d.ts +3 -0
  474. package/dist/types/components/my-component/web-chat/WebChat.d.ts +22 -0
  475. package/dist/types/components/my-component/web-chat/WebchatRightSide.d.ts +7 -0
  476. package/dist/types/components/my-component/web-chat/conversation-ops.d.ts +10 -2
  477. package/dist/types/components/my-component/web-chat/event-handlers.d.ts +5 -0
  478. package/dist/types/components/my-component/web-chat/mutations.d.ts +2 -2
  479. package/dist/types/components.d.ts +133 -2
  480. package/dist/types/lib/chat/block-status.d.ts +11 -0
  481. package/dist/types/lib/chat/clipboard-paste.d.ts +16 -0
  482. package/dist/types/lib/chat/download-media.d.ts +11 -0
  483. package/dist/types/lib/chat/index.d.ts +6 -2
  484. package/dist/types/lib/chat/same-name-upload.d.ts +24 -0
  485. package/dist/types/lib/chat/send-media.d.ts +90 -0
  486. package/dist/types/lib/chat/storage-quota.d.ts +98 -0
  487. package/dist/types/lib/custom-ui/public-api.d.ts +1 -1
  488. package/dist/types/lib/drawer.d.ts +1 -0
  489. package/dist/types/sdk/headless-api.d.ts +7 -0
  490. package/dist/types/sdk/index.d.ts +1 -0
  491. package/dist/types/sdk/webchat-api.d.ts +14 -0
  492. package/dist/types/store/storage-quota.d.ts +64 -0
  493. package/docs/MEDIA_STORAGE_QUOTA.md +130 -0
  494. package/package.json +3 -2
  495. package/dist/cjs/attachment-preview_22.cjs.entry.js.map +0 -1
  496. package/dist/cjs/content-ebca062a.js.map +0 -1
  497. package/dist/cjs/drawer-00a2323a.js.map +0 -1
  498. package/dist/cjs/group-members-cef1198e.js.map +0 -1
  499. package/dist/cjs/groupcast-8441b4df.js.map +0 -1
  500. package/dist/cjs/helpers-154861e9.js.map +0 -1
  501. package/dist/cjs/link-preview.cjs.entry.js +0 -49
  502. package/dist/cjs/link-preview.cjs.entry.js.map +0 -1
  503. package/dist/cjs/local-notification-bdd04d7a.js.map +0 -1
  504. package/dist/cjs/runtime-controls-cfc8fc31.js.map +0 -1
  505. package/dist/cjs/send-media-4ee967d4.js.map +0 -1
  506. package/dist/components/group-members2.js +0 -37
  507. package/dist/components/group-members2.js.map +0 -1
  508. package/dist/esm/attachment-preview_22.entry.js.map +0 -1
  509. package/dist/esm/content-fb138a93.js.map +0 -1
  510. package/dist/esm/drawer-7de04622.js.map +0 -1
  511. package/dist/esm/group-members-7909941c.js.map +0 -1
  512. package/dist/esm/groupcast-5fb19ec3.js.map +0 -1
  513. package/dist/esm/helpers-f33b895c.js.map +0 -1
  514. package/dist/esm/link-preview.entry.js +0 -45
  515. package/dist/esm/link-preview.entry.js.map +0 -1
  516. package/dist/esm/local-notification-4c1e166d.js.map +0 -1
  517. package/dist/esm/runtime-controls-ff81e90a.js.map +0 -1
  518. package/dist/esm/send-media-58e7145b.js.map +0 -1
  519. package/dist/isometrik-webchat/p-09980c53.entry.js +0 -2
  520. package/dist/isometrik-webchat/p-09980c53.entry.js.map +0 -1
  521. package/dist/isometrik-webchat/p-1eecc7c5.entry.js +0 -2
  522. package/dist/isometrik-webchat/p-1eecc7c5.entry.js.map +0 -1
  523. package/dist/isometrik-webchat/p-2cf296e6.entry.js +0 -2
  524. package/dist/isometrik-webchat/p-2e9974e1.entry.js +0 -2
  525. package/dist/isometrik-webchat/p-343f50b4.js +0 -7
  526. package/dist/isometrik-webchat/p-343f50b4.js.map +0 -1
  527. package/dist/isometrik-webchat/p-352b589e.entry.js +0 -2
  528. package/dist/isometrik-webchat/p-44da28d3.entry.js +0 -2
  529. package/dist/isometrik-webchat/p-44da28d3.entry.js.map +0 -1
  530. package/dist/isometrik-webchat/p-48ce4dca.entry.js +0 -2
  531. package/dist/isometrik-webchat/p-52a575c0.entry.js +0 -2
  532. package/dist/isometrik-webchat/p-52a575c0.entry.js.map +0 -1
  533. package/dist/isometrik-webchat/p-5cfb953d.js +0 -2
  534. package/dist/isometrik-webchat/p-5cfb953d.js.map +0 -1
  535. package/dist/isometrik-webchat/p-5d1877d1.entry.js +0 -2
  536. package/dist/isometrik-webchat/p-6f5037b2.js +0 -2
  537. package/dist/isometrik-webchat/p-6f5037b2.js.map +0 -1
  538. package/dist/isometrik-webchat/p-78fb47c4.js +0 -2
  539. package/dist/isometrik-webchat/p-78fb47c4.js.map +0 -1
  540. package/dist/isometrik-webchat/p-9982fa21.js.map +0 -1
  541. package/dist/isometrik-webchat/p-a9efcf1c.entry.js +0 -2
  542. package/dist/isometrik-webchat/p-a9efcf1c.entry.js.map +0 -1
  543. package/dist/isometrik-webchat/p-ad02a8ca.entry.js +0 -2
  544. package/dist/isometrik-webchat/p-b0baa9ad.entry.js +0 -2
  545. package/dist/isometrik-webchat/p-b0baa9ad.entry.js.map +0 -1
  546. package/dist/isometrik-webchat/p-b385ac4b.js +0 -2
  547. package/dist/isometrik-webchat/p-b385ac4b.js.map +0 -1
  548. package/dist/isometrik-webchat/p-c83e2d5d.entry.js +0 -2
  549. package/dist/isometrik-webchat/p-d758e431.js +0 -2
  550. package/dist/isometrik-webchat/p-d864bb9f.entry.js +0 -2
  551. package/dist/isometrik-webchat/p-d864bb9f.entry.js.map +0 -1
  552. package/dist/isometrik-webchat/p-dab06d54.js +0 -2
  553. package/dist/isometrik-webchat/p-dab06d54.js.map +0 -1
  554. package/dist/isometrik-webchat/p-e40e8866.js +0 -2
  555. package/dist/isometrik-webchat/p-e40e8866.js.map +0 -1
  556. package/dist/isometrik-webchat/p-e48a1217.entry.js +0 -2
  557. /package/dist/isometrik-webchat/{p-d892b4d4.entry.js.map → p-02db2116.entry.js.map} +0 -0
  558. /package/dist/isometrik-webchat/{p-c591fa45.js.map → p-04fdbd0a.js.map} +0 -0
  559. /package/dist/isometrik-webchat/{p-c5bff6a1.entry.js.map → p-119fc683.entry.js.map} +0 -0
  560. /package/dist/isometrik-webchat/{p-925decda.js.map → p-1dc52239.js.map} +0 -0
  561. /package/dist/isometrik-webchat/{p-7b25f234.entry.js.map → p-35f2b9ae.entry.js.map} +0 -0
  562. /package/dist/isometrik-webchat/{p-3b3dc33e.js.map → p-46be73c5.js.map} +0 -0
  563. /package/dist/isometrik-webchat/{p-2cf296e6.entry.js.map → p-56521ea4.entry.js.map} +0 -0
  564. /package/dist/isometrik-webchat/{p-f7d05551.entry.js.map → p-57f97cef.entry.js.map} +0 -0
  565. /package/dist/isometrik-webchat/{p-ad02a8ca.entry.js.map → p-5f7eebbf.entry.js.map} +0 -0
  566. /package/dist/isometrik-webchat/{p-c83e2d5d.entry.js.map → p-640e2c03.entry.js.map} +0 -0
  567. /package/dist/isometrik-webchat/{p-d758e431.js.map → p-6c5eb178.js.map} +0 -0
  568. /package/dist/isometrik-webchat/{p-d8b65cf4.entry.js.map → p-6eadaa6c.entry.js.map} +0 -0
  569. /package/dist/isometrik-webchat/{p-161fcb35.entry.js.map → p-7130f547.entry.js.map} +0 -0
  570. /package/dist/isometrik-webchat/{p-cbb1179b.entry.js.map → p-89a8fc58.entry.js.map} +0 -0
  571. /package/dist/isometrik-webchat/{p-e48a1217.entry.js.map → p-9b70e93f.entry.js.map} +0 -0
  572. /package/dist/isometrik-webchat/{p-3664e0ad.entry.js.map → p-b431d864.entry.js.map} +0 -0
  573. /package/dist/isometrik-webchat/{p-0ccfbe90.entry.js.map → p-b516938b.entry.js.map} +0 -0
  574. /package/dist/isometrik-webchat/{p-48ce4dca.entry.js.map → p-d44c612a.entry.js.map} +0 -0
  575. /package/dist/isometrik-webchat/{p-2e9974e1.entry.js.map → p-eb1f3118.entry.js.map} +0 -0
  576. /package/dist/isometrik-webchat/{p-08ba6153.entry.js.map → p-f5502a63.entry.js.map} +0 -0
@@ -3,9 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f624fc47.js');
6
- const helpers = require('./helpers-154861e9.js');
6
+ const helpers = require('./helpers-877a7116.js');
7
7
  const messageBodyRender = require('./message-body-render-7c7a026e.js');
8
8
  const chatAssets = require('./chat-assets-8c4dc04f.js');
9
+ const download = require('./download-9ccc0a6c.js');
9
10
  require('./destroy-chat-7ae8fc99.js');
10
11
 
11
12
  /** A simple event emitter that can be used to listen to and emit events. */
@@ -2852,6 +2853,8 @@ WaveSurfer.dom = dom;
2852
2853
 
2853
2854
  function i(i,t,e,s){return new(e||(e=Promise))((function(r,o){function n(i){try{d(s.next(i));}catch(i){o(i);}}function a(i){try{d(s.throw(i));}catch(i){o(i);}}function d(i){var t;i.done?r(i.value):(t=i.value,t instanceof e?t:new e((function(i){i(t);}))).then(n,a);}d((s=s.apply(i,t||[])).next());}))}"function"==typeof SuppressedError&&SuppressedError;class t{constructor(){this.listeners={};}on(i,t,e){if(this.listeners[i]||(this.listeners[i]=new Set),null==e?void 0:e.once){const e=(...s)=>{this.un(i,e),t(...s);};return this.listeners[i].add(e),()=>this.un(i,e)}return this.listeners[i].add(t),()=>this.un(i,t)}un(i,t){var e;null===(e=this.listeners[i])||void 0===e||e.delete(t);}once(i,t){return this.on(i,t,{once:!0})}unAll(){this.listeners={};}emit(i,...t){this.listeners[i]&&this.listeners[i].forEach((i=>i(...t)));}}class e extends t{constructor(i){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=i;}onInit(){}_init(i){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=i,this.onInit();}destroy(){this.emit("destroy"),this.subscriptions.forEach((i=>i())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0;}}class s extends t{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1;}start(){if(this.isRunning)return;this.isRunning=!0;const i=()=>{this.isRunning&&(this.emit("tick"),this.animationFrameId=requestAnimationFrame(i));};i();}stop(){this.isRunning=!1,null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);}destroy(){this.stop(),this.unAll();}}const r=100,o=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"];class n extends e{constructor(i){var t,e,r,o,n,a;super(Object.assign(Object.assign({},i),{audioBitsPerSecond:null!==(t=i.audioBitsPerSecond)&&void 0!==t?t:128e3,scrollingWaveform:null!==(e=i.scrollingWaveform)&&void 0!==e&&e,scrollingWaveformWindow:null!==(r=i.scrollingWaveformWindow)&&void 0!==r?r:5,continuousWaveform:null!==(o=i.continuousWaveform)&&void 0!==o&&o,renderRecordedAudio:null===(n=i.renderRecordedAudio)||void 0===n||n,mediaRecorderTimeslice:null!==(a=i.mediaRecorderTimeslice)&&void 0!==a?a:void 0})),this.stream=null,this.mediaRecorder=null,this.dataWindow=null,this.isWaveformPaused=!1,this.lastStartTime=0,this.lastDuration=0,this.duration=0,this.micStream=null,this.recordedBlobUrl=null,this.timer=new s,this.subscriptions.push(this.timer.on("tick",(()=>{const i=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+i,this.emit("record-progress",this.duration);})));}static create(i){return new n(i||{})}renderMicStream(i){var t;const e=new AudioContext,s=e.createMediaStreamSource(i),o=e.createAnalyser();s.connect(o),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(o.fftSize=32);const n=o.frequencyBinCount,a=new Float32Array(n);let d=0;this.wavesurfer&&(null!==(t=this.originalOptions)&&void 0!==t||(this.originalOptions=Object.assign({},this.wavesurfer.options)),this.wavesurfer.options.interact=!1,this.options.scrollingWaveform&&(this.wavesurfer.options.cursorWidth=0,this.wavesurfer.options.normalize=!0,this.wavesurfer.options.maxPeak=1));const h=setInterval((()=>{var i,t,e,s;if(!this.isWaveformPaused){if(o.getFloatTimeDomainData(a),this.options.scrollingWaveform){const i=Math.floor((this.options.scrollingWaveformWindow||0)*r);let t=0;for(let i=0;i<n;i++){const e=Math.abs(a[i]);e>t&&(t=e);}this.dataWindow||(this.dataWindow=new Float32Array(i));const e=new Float32Array(i);if(this.dataWindow&&this.dataWindow.length>0){const t=i-1,s=this.dataWindow.slice(-t);e.set(s,0);}e[i-1]=t,this.dataWindow=e;}else if(this.options.continuousWaveform){if(!this.dataWindow){const e=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*r):(null!==(t=null===(i=this.wavesurfer)||void 0===i?void 0:i.getWidth())&&void 0!==t?t:0)*window.devicePixelRatio;this.dataWindow=new Float32Array(e);}let e=0;for(let i=0;i<n;i++){const t=Math.abs(a[i]);t>e&&(e=t);}if(d+1>this.dataWindow.length){const i=new Float32Array(2*this.dataWindow.length);i.set(this.dataWindow,0),this.dataWindow=i;}this.dataWindow[d]=e,d++;}else this.dataWindow=a;if(this.wavesurfer){const i=(null!==(s=null===(e=this.dataWindow)||void 0===e?void 0:e.length)&&void 0!==s?s:0)/r;this.wavesurfer.load("",[this.dataWindow],this.options.scrollingWaveform?this.options.scrollingWaveformWindow:i).then((()=>{this.wavesurfer&&this.options.continuousWaveform&&(this.wavesurfer.setTime(this.getDuration()/1e3),this.wavesurfer.options.minPxPerSec||this.wavesurfer.setOptions({minPxPerSec:this.wavesurfer.getWidth()/this.wavesurfer.getDuration()}));})).catch((i=>{console.error("Error rendering real-time recording data:",i);}));}}}),10);return {onDestroy:()=>{clearInterval(h),null==s||s.disconnect(),null==e||e.close();},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic();}}}startMic(t){return i(this,void 0,void 0,(function*(){let i;this.micStream&&this.stopMic();try{i=yield navigator.mediaDevices.getUserMedia({audio:null==t||t});}catch(i){throw new Error("Error accessing the microphone: "+i.message)}const e=this.renderMicStream(i);return this.micStream=e,this.unsubscribeDestroy=this.once("destroy",e.onDestroy),this.unsubscribeRecordEnd=this.once("record-end",e.onEnd),this.stream=i,i}))}stopMic(){var i,t,e;null===(i=this.micStream)||void 0===i||i.onDestroy(),null===(t=this.unsubscribeDestroy)||void 0===t||t.call(this),null===(e=this.unsubscribeRecordEnd)||void 0===e||e.call(this),this.micStream=null,this.unsubscribeDestroy=void 0,this.unsubscribeRecordEnd=void 0,this.stream&&(this.stream.getTracks().forEach((i=>i.stop())),this.stream=null,this.mediaRecorder=null);}startRecording(t){return i(this,void 0,void 0,(function*(){const i=this.stream||(yield this.startMic(t));this.dataWindow=null;const e=this.mediaRecorder||new MediaRecorder(i,{mimeType:this.options.mimeType||o.find((i=>MediaRecorder.isTypeSupported(i))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=e,this.stopRecording();const s=[];e.ondataavailable=i=>{i.data.size>0&&s.push(i.data),this.emit("record-data-available",i.data);};const r=i=>{var t;const r=new Blob(s,{type:e.mimeType});this.emit(i,r),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(r),null===(t=this.wavesurfer)||void 0===t||t.load(this.recordedBlobUrl));};e.onpause=()=>r("record-pause"),e.onstop=()=>r("record-end"),e.start(this.options.mediaRecorderTimeslice),this.lastStartTime=performance.now(),this.lastDuration=0,this.duration=0,this.isWaveformPaused=!1,this.timer.start(),this.emit("record-start");}))}getDuration(){return this.duration}isRecording(){var i;return "recording"===(null===(i=this.mediaRecorder)||void 0===i?void 0:i.state)}isPaused(){var i;return "paused"===(null===(i=this.mediaRecorder)||void 0===i?void 0:i.state)}isActive(){var i;return "inactive"!==(null===(i=this.mediaRecorder)||void 0===i?void 0:i.state)}stopRecording(){var i;this.isActive()&&(null===(i=this.mediaRecorder)||void 0===i||i.stop(),this.timer.stop());}pauseRecording(){var i,t;this.isRecording()&&(this.isWaveformPaused=!0,null===(i=this.mediaRecorder)||void 0===i||i.requestData(),null===(t=this.mediaRecorder)||void 0===t||t.pause(),this.timer.stop(),this.lastDuration=this.duration);}resumeRecording(){var i;this.isPaused()&&(this.isWaveformPaused=!1,null===(i=this.mediaRecorder)||void 0===i||i.resume(),this.timer.start(),this.lastStartTime=performance.now(),this.emit("record-resume"));}static getAvailableAudioDevices(){return i(this,void 0,void 0,(function*(){return navigator.mediaDevices.enumerateDevices().then((i=>i.filter((i=>"audioinput"===i.kind))))}))}destroy(){this.applyOriginalOptionsIfNeeded(),super.destroy(),this.stopRecording(),this.stopMic(),this.recordedBlobUrl&&(URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=null);}applyOriginalOptionsIfNeeded(){this.wavesurfer&&this.originalOptions&&(this.wavesurfer.setOptions(this.originalOptions),delete this.originalOptions);}}
2854
2855
 
2856
+ /** Live recording canvas height — keep ChatFooter `.rec-wave` at 2.5rem (40px) in sync. */
2857
+ const LIVE_RECORD_WAVE_HEIGHT_PX = 40;
2855
2858
  const AudioBubble = class {
2856
2859
  constructor(hostRef) {
2857
2860
  index.registerInstance(this, hostRef);
@@ -2952,16 +2955,20 @@ const AudioBubble = class {
2952
2955
  this.recordPlugin = null;
2953
2956
  }
2954
2957
  const width = Math.max(this.waveformContainer.clientWidth || 0, this.el.clientWidth || 0, 160);
2958
+ const height = Math.max(this.waveformContainer.clientHeight || 0, LIVE_RECORD_WAVE_HEIGHT_PX);
2955
2959
  const color = this.resolveWaveColor();
2956
2960
  this.wavesurfer = WaveSurfer.create({
2957
2961
  container: this.waveformContainer,
2958
2962
  waveColor: color,
2959
2963
  progressColor: color,
2960
- height: 28,
2964
+ height,
2961
2965
  width,
2962
- barWidth: 2,
2966
+ barWidth: 4,
2963
2967
  barGap: 2,
2964
- barRadius: 2,
2968
+ barRadius: 3,
2969
+ barHeight: 2.5,
2970
+ barMinHeight: 3,
2971
+ normalize: true,
2965
2972
  interact: false,
2966
2973
  cursorWidth: 0,
2967
2974
  });
@@ -2991,11 +2998,12 @@ const AudioBubble = class {
2991
2998
  await this.recordPlugin.startRecording();
2992
2999
  // redraw once layout settles
2993
3000
  requestAnimationFrame(() => {
2994
- var _a;
3001
+ var _a, _b;
2995
3002
  const w = ((_a = this.waveformContainer) === null || _a === void 0 ? void 0 : _a.clientWidth) || this.el.clientWidth;
3003
+ const h = Math.max(((_b = this.waveformContainer) === null || _b === void 0 ? void 0 : _b.clientHeight) || 0, LIVE_RECORD_WAVE_HEIGHT_PX);
2996
3004
  if (w && this.wavesurfer) {
2997
3005
  try {
2998
- this.wavesurfer.setOptions({ width: w });
3006
+ this.wavesurfer.setOptions({ width: w, height: h });
2999
3007
  }
3000
3008
  catch (_) { }
3001
3009
  }
@@ -3177,7 +3185,7 @@ const AudioBubble = class {
3177
3185
  }
3178
3186
  render() {
3179
3187
  const isLive = this.liveRecord;
3180
- return (index.h("div", { key: '670b82c67119d4d4c74867a94b4737c16dd8cf57', style: {
3188
+ return (index.h("div", { key: '9e4dfb7827f9ee6f3c34218128201ee2ce3b9910', style: {
3181
3189
  background: isLive ? 'transparent' : this.bgColor || (this.isSelf ? 'var(--bg-outgoing-message)' : 'var(--bg-incoming-message)'),
3182
3190
  borderRadius: isLive ? '0' : this.borderRadius || '7.5px',
3183
3191
  color: this.textColor || 'inherit',
@@ -3185,15 +3193,20 @@ const AudioBubble = class {
3185
3193
  width: isLive ? '100%' : '336px',
3186
3194
  maxWidth: '100%',
3187
3195
  boxSizing: 'border-box',
3188
- } }, index.h("div", { key: 'b797e83c979987e4d1d616cfc1507bb5cf177333', style: { display: 'flex', alignItems: 'center', gap: isLive ? '0' : '10px', width: '100%' } }, isLive ? null : (index.h("button", { type: "button", "aria-label": this.isPlaying ? 'Pause' : 'Play', style: {
3196
+ } }, index.h("div", { key: 'a10a192919ca0ee6c4d7b5dfff2571600067fa24', style: { display: 'flex', alignItems: 'center', gap: isLive ? '0' : '10px', width: '100%' } }, isLive ? null : (index.h("button", { type: "button", "aria-label": this.isPlaying ? 'Pause' : 'Play', style: {
3189
3197
  border: 'none',
3190
3198
  background: 'transparent',
3191
3199
  cursor: 'pointer',
3192
3200
  fontSize: '18px',
3193
3201
  color: 'inherit',
3194
- }, onClick: () => (this.isPlaying ? this.pauseAudioHandler() : this.playAudioHandler()) }, this.isPlaying ? '❚❚' : '▶')), index.h("div", { key: '8f0dc7991e61e5f534dff91d6c54e31d6287197b', class: "wave-host", ref: el => {
3202
+ }, onClick: () => (this.isPlaying ? this.pauseAudioHandler() : this.playAudioHandler()) }, this.isPlaying ? '❚❚' : '▶')), index.h("div", { key: '6e5505cd0ff554633ea9471ef9c51044d70e6173', class: "wave-host", ref: el => {
3195
3203
  this.waveformContainer = el;
3196
- }, style: { flex: '1', height: isLive ? '28px' : '40px', minHeight: isLive ? '28px' : '40px', minWidth: '0' } })), isLive ? null : (index.h("div", { style: { display: 'flex', justifyContent: 'space-between', fontSize: '10px', marginTop: '4px' } }, index.h("span", null, this.audioDuration), this.showFooter ? (index.h("span", { style: { color: this.timeColor } }, this.time
3204
+ }, style: {
3205
+ flex: '1',
3206
+ height: isLive ? `${LIVE_RECORD_WAVE_HEIGHT_PX}px` : '40px',
3207
+ minHeight: isLive ? `${LIVE_RECORD_WAVE_HEIGHT_PX}px` : '40px',
3208
+ minWidth: '0',
3209
+ } })), isLive ? null : (index.h("div", { style: { display: 'flex', justifyContent: 'space-between', fontSize: '10px', marginTop: '4px' } }, index.h("span", null, this.audioDuration), this.showFooter ? (index.h("span", { style: { color: this.timeColor } }, this.time
3197
3210
  ? (() => {
3198
3211
  try {
3199
3212
  const d = new Date(Number(this.time));
@@ -3216,9 +3229,7 @@ const AudioBubble = class {
3216
3229
  "audioUrl": ["chatChanged"]
3217
3230
  }; }
3218
3231
  };
3219
- AudioBubble.style = ":host {\n display: block;\n width: 100%;\n height: 100%;\n min-width: 0;\n box-sizing: border-box;\n }\n .wave-host {\n width: 100%;\n height: 100%;\n min-width: 0;\n min-height: 28px;\n }";
3220
-
3221
- const downloadSvg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPgo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNS42MjUgMTVDNS42MjUgMTQuNTg1OCA1LjI4OTIxIDE0LjI1IDQuODc1IDE0LjI1QzQuNDYwNzkgMTQuMjUgNC4xMjUgMTQuNTg1OCA0LjEyNSAxNUg1LjYyNVpNNC44NzUgMTZINC4xMjVINC44NzVaTTE5LjI3NSAxNUMxOS4yNzUgMTQuNTg1OCAxOC45MzkyIDE0LjI1IDE4LjUyNSAxNC4yNUMxOC4xMTA4IDE0LjI1IDE3Ljc3NSAxNC41ODU4IDE3Ljc3NSAxNUgxOS4yNzVaTTExLjEwODYgMTUuNTM4N0MxMC44NTM5IDE1Ljg2NTMgMTAuOTEyMSAxNi4zMzY2IDExLjIzODcgMTYuNTkxNEMxMS41NjUzIDE2Ljg0NjEgMTIuMDM2NiAxNi43ODc5IDEyLjI5MTQgMTYuNDYxM0wxMS4xMDg2IDE1LjUzODdaTTE2LjE5MTQgMTEuNDYxM0MxNi40NDYxIDExLjEzNDcgMTYuMzg3OSAxMC42NjM0IDE2LjA2MTMgMTAuNDA4NkMxNS43MzQ3IDEwLjE1MzkgMTUuMjYzNCAxMC4yMTIxIDE1LjAwODYgMTAuNTM4N0wxNi4xOTE0IDExLjQ2MTNaTTExLjEwODYgMTYuNDYxM0MxMS4zNjM0IDE2Ljc4NzkgMTEuODM0NyAxNi44NDYxIDEyLjE2MTMgMTYuNTkxNEMxMi40ODc5IDE2LjMzNjYgMTIuNTQ2MSAxNS44NjUzIDEyLjI5MTQgMTUuNTM4N0wxMS4xMDg2IDE2LjQ2MTNaTTguMzkxMzggMTAuNTM4N0M4LjEzNjYyIDEwLjIxMjEgNy42NjUzMyAxMC4xNTM5IDcuMzM4NzMgMTAuNDA4NkM3LjAxMjEyIDEwLjY2MzQgNi45NTM4NyAxMS4xMzQ3IDcuMjA4NjIgMTEuNDYxM0w4LjM5MTM4IDEwLjUzODdaTTEwLjk1IDE2QzEwLjk1IDE2LjQxNDIgMTEuMjg1OCAxNi43NSAxMS43IDE2Ljc1QzEyLjExNDIgMTYuNzUgMTIuNDUgMTYuNDE0MiAxMi40NSAxNkgxMC45NVpNMTIuNDUgNUMxMi40NSA0LjU4NTc5IDEyLjExNDIgNC4yNSAxMS43IDQuMjVDMTEuMjg1OCA0LjI1IDEwLjk1IDQuNTg1NzkgMTAuOTUgNUgxMi40NVpNNC4xMjUgMTVWMTZINS42MjVWMTVINC4xMjVaTTQuMTI1IDE2QzQuMTI1IDE4LjA1MzEgNS43NTI1NyAxOS43NSA3LjggMTkuNzVWMTguMjVDNi42MTY1NyAxOC4yNSA1LjYyNSAxNy4yNjA3IDUuNjI1IDE2SDQuMTI1Wk03LjggMTkuNzVIMTUuNlYxOC4yNUg3LjhWMTkuNzVaTTE1LjYgMTkuNzVDMTcuNjQ3NCAxOS43NSAxOS4yNzUgMTguMDUzMSAxOS4yNzUgMTZIMTcuNzc1QzE3Ljc3NSAxNy4yNjA3IDE2Ljc4MzQgMTguMjUgMTUuNiAxOC4yNVYxOS43NVpNMTkuMjc1IDE2VjE1SDE3Ljc3NVYxNkgxOS4yNzVaTTEyLjI5MTQgMTYuNDYxM0wxNi4xOTE0IDExLjQ2MTNMMTUuMDA4NiAxMC41Mzg3TDExLjEwODYgMTUuNTM4N0wxMi4yOTE0IDE2LjQ2MTNaTTEyLjI5MTQgMTUuNTM4N0w4LjM5MTM4IDEwLjUzODdMNy4yMDg2MiAxMS40NjEzTDExLjEwODYgMTYuNDYxM0wxMi4yOTE0IDE1LjUzODdaTTEyLjQ1IDE2VjVIMTAuOTVWMTZIMTIuNDVaIiBmaWxsPSIjMDAwMDAwIi8+Cjwvc3ZnPg==';const DownloadIcon = downloadSvg;
3232
+ AudioBubble.style = ":host {\n display: block;\n width: 100%;\n height: 100%;\n min-width: 0;\n box-sizing: border-box;\n }\n .wave-host {\n width: 100%;\n height: 100%;\n min-width: 0;\n /* Stencil styles: literal 40px \u2014 keep in sync with LIVE_RECORD_WAVE_HEIGHT_PX */\n min-height: 40px;\n }";
3222
3233
 
3223
3234
  const DocumentMessage = class {
3224
3235
  constructor(hostRef) {
@@ -3306,15 +3317,25 @@ const DocumentMessage = class {
3306
3317
  }
3307
3318
  render() {
3308
3319
  const parts = this.truncateDocName(this.docName || 'Document');
3309
- const showCaption = this.message && !String(this.message).includes('AttachmentMessage:');
3320
+ const fileLabel = (this.docName || this.fileName || '').trim();
3321
+ const captionText = String(this.message || '').trim();
3322
+ const captionRepeatsFileName = (() => {
3323
+ if (!captionText || !fileLabel)
3324
+ return false;
3325
+ if (captionText.localeCompare(fileLabel, undefined, { sensitivity: 'accent' }) === 0)
3326
+ return true;
3327
+ const base = (s) => (s.split(/[/\\]/).pop() || s).trim();
3328
+ return base(captionText).localeCompare(base(fileLabel), undefined, { sensitivity: 'accent' }) === 0;
3329
+ })();
3330
+ const showCaption = captionText && !captionText.includes('AttachmentMessage:') && !captionRepeatsFileName;
3310
3331
  const pdf = this.isPdf();
3311
- return (index.h("message-bubble", { key: 'b6ace1cd0668f471bf64d89d3d7861955411c8ec', isSelf: !!this.isSelf, time: this.time, timeColor: this.timeColor, isRead: this.isRead, isDelivered: this.isDelivered, deliveryStatus: this.deliveryStatus, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, isForwarded: this.messageType === 1, backgroundColor: this.bgColor || 'var(--bg-secondary)', borderRadius: this.borderRadius || '6px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, index.h("div", { key: '96fefa9df08407f2df4be3b72af9dbf5873fe928', class: "doc-container", style: {
3332
+ return (index.h("message-bubble", { isSelf: !!this.isSelf, time: this.time, timeColor: this.timeColor, isRead: this.isRead, isDelivered: this.isDelivered, deliveryStatus: this.deliveryStatus, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, isForwarded: this.messageType === 1, backgroundColor: this.bgColor || 'var(--bg-secondary)', borderRadius: this.borderRadius || '6px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, index.h("div", { class: "doc-container", style: {
3312
3333
  backgroundColor: this.documentNameBg || 'var(--bg-tertiary)',
3313
3334
  width: this.width || 'auto',
3314
- } }, index.h("div", { key: 'e3c866721409745fe12168f5ae0fa53a31527b3b', class: "document-name", style: { padding: this.documentNamePadding || '5px 10px 5px 0' }, onClick: this.openPreview, role: "button", tabIndex: 0, onKeyDown: (ev) => {
3335
+ } }, index.h("div", { class: "document-name", style: { padding: this.documentNamePadding || '5px 10px 5px 0' }, onClick: this.openPreview, role: "button", tabIndex: 0, onKeyDown: (ev) => {
3315
3336
  if (ev.key === 'Enter' || ev.key === ' ')
3316
3337
  this.openPreview(ev);
3317
- } }, index.h("span", { key: '70247e85e8d862ed0f475650df7d3fd299d58c77', class: "attachment-icon" }, index.h("img", { key: '9d234ea89459c3385086fe17abfcfaa037753c2f', src: this.iconSrc(), alt: "" })), index.h("span", { key: '8c35191f12fbcd1ee972703296059c4ab1b666d9' }, parts.firstLine, index.h("br", { key: '4b206833e3181384fbeb683d0459b8a03a285be4' }), parts.secondLine)), index.h("div", { key: '0cb86e8a218cc577287e9be3589a1cd4441a685c', class: "doc-actions" }, pdf && this.href ? (index.h("button", { class: "preview-btn", type: "button", onClick: this.openPreview, "aria-label": "Preview PDF" }, "View")) : null, index.h("a", { key: '3351a7680f4f71cd0c05b8b4bb462bfdc4b6b948', class: "download-btn", href: this.href, download: this.fileName, target: "_blank", rel: "noopener noreferrer", "aria-label": "Download" }, index.h("img", { key: '30d9286c55c66a6944c46d68fdb9098cb1a31a75', src: DownloadIcon, alt: "" })))), showCaption ? (index.h("div", { style: { fontSize: '8px', color: this.textColor, marginTop: '4px' } }, messageBodyRender.renderMessageBody(this.message, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), !!this.isSelf))) : null, this.showPdfPreview && this.href ? (index.h("div", { class: "pdf-lightbox", onClick: this.closePreview }, index.h("div", { class: "pdf-lightbox-bar", onClick: e => e.stopPropagation() }, index.h("span", { class: "pdf-lightbox-title" }, this.docName || this.fileName || 'PDF'), index.h("div", { style: { display: 'flex', gap: '8px' } }, index.h("a", { href: this.href, download: this.fileName || this.docName, target: "_blank", rel: "noopener noreferrer", style: { color: '#fff', fontSize: '12px', fontWeight: '600', textDecoration: 'none', padding: '6px 12px', background: 'rgba(255,255,255,0.15)', borderRadius: '8px' } }, "Download"), index.h("button", { type: "button", onClick: this.closePreview }, "Close"))), index.h("iframe", { src: `${this.href}#toolbar=1`, title: this.docName || 'PDF preview', onClick: e => e.stopPropagation() }))) : null));
3338
+ } }, index.h("span", { class: "attachment-icon" }, index.h("img", { src: this.iconSrc(), alt: "" })), index.h("span", null, parts.firstLine, index.h("br", null), parts.secondLine)), index.h("div", { class: "doc-actions" }, pdf && this.href ? (index.h("button", { class: "preview-btn", type: "button", onClick: this.openPreview, "aria-label": "Preview PDF" }, "View")) : null, index.h("a", { class: "download-btn", href: this.href, download: this.fileName, target: "_blank", rel: "noopener noreferrer", "aria-label": "Download" }, index.h("img", { src: download.DownloadIcon, alt: "" })))), showCaption ? (index.h("div", { style: { fontSize: '8px', color: this.textColor, marginTop: '4px' } }, messageBodyRender.renderMessageBody(this.message, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), !!this.isSelf))) : null, this.showPdfPreview && this.href ? (index.h("div", { class: "pdf-lightbox", onClick: this.closePreview }, index.h("div", { class: "pdf-lightbox-bar", onClick: e => e.stopPropagation() }, index.h("span", { class: "pdf-lightbox-title" }, this.docName || this.fileName || 'PDF'), index.h("div", { style: { display: 'flex', gap: '8px' } }, index.h("a", { href: this.href, download: this.fileName || this.docName, target: "_blank", rel: "noopener noreferrer", style: { color: '#fff', fontSize: '12px', fontWeight: '600', textDecoration: 'none', padding: '6px 12px', background: 'rgba(255,255,255,0.15)', borderRadius: '8px' } }, "Download"), index.h("button", { type: "button", onClick: this.closePreview }, "Close"))), index.h("iframe", { src: `${this.href}#toolbar=1`, title: this.docName || 'PDF preview', onClick: e => e.stopPropagation() }))) : null));
3318
3339
  }
3319
3340
  };
3320
3341
  DocumentMessage.style = ":host { display: block; }\n .doc-container {\n display: flex; align-items: center; justify-content: space-between; gap: 8px;\n border-radius: 8px; padding: 4px 8px;\n }\n .document-name {\n display: flex; align-items: center; gap: 8px; word-break: break-word;\n font-size: 12px; line-height: 1.35; min-width: 0; cursor: pointer;\n }\n .attachment-icon { display: flex; flex-shrink: 0; width: 24px; height: 30px; align-items: center; justify-content: center; }\n .attachment-icon img { width: 24px; height: 24px; object-fit: contain; display: block; }\n .doc-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }\n .download-btn, .preview-btn {\n display: flex; align-items: center; justify-content: center;\n flex-shrink: 0; line-height: 0; border: none; background: transparent; cursor: pointer; padding: 0;\n text-decoration: none; color: inherit; font: inherit;\n }\n .download-btn img, .preview-btn img {\n width: 28px; height: 28px; display: block;\n filter: var(--svg-icon-filter);\n }\n .preview-btn {\n font-size: 10px; font-weight: 700; letter-spacing: 0.04em;\n color: var(--brand, #2563eb); padding: 4px 6px; border-radius: 6px;\n background: color-mix(in srgb, var(--brand, #2563eb) 12%, transparent);\n }\n .pdf-lightbox {\n position: fixed; inset: 0; z-index: 9999;\n background: rgba(15, 23, 42, 0.72);\n display: flex; flex-direction: column;\n padding: 12px; box-sizing: border-box;\n }\n .pdf-lightbox-bar {\n display: flex; align-items: center; justify-content: space-between;\n gap: 12px; padding: 8px 4px 12px; color: #fff; flex-shrink: 0;\n }\n .pdf-lightbox-title {\n font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;\n }\n .pdf-lightbox-bar button {\n border: none; background: rgba(255,255,255,0.15); color: #fff;\n border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 12px; font-weight: 600;\n }\n .pdf-lightbox iframe {\n flex: 1; width: 100%; min-height: 0; border: 0; border-radius: 10px; background: #525659;\n }";
@@ -3328,10 +3349,20 @@ const ImageMessage = class {
3328
3349
  (_a = this.onImageClick) === null || _a === void 0 ? void 0 : _a.call(this, e);
3329
3350
  this.galleryOpen = true;
3330
3351
  };
3352
+ this.downloadPreview = (e) => {
3353
+ e.stopPropagation();
3354
+ const url = this.downloadUrl || this.imageSrc;
3355
+ if (!url)
3356
+ return;
3357
+ void download.downloadMediaFromUrl(url, this.downloadFileName, this.mimeType);
3358
+ };
3331
3359
  this.bgColor = undefined;
3332
3360
  this.borderRadius = '10px';
3333
3361
  this.padding = '10px';
3334
3362
  this.imageSrc = undefined;
3363
+ this.downloadUrl = undefined;
3364
+ this.downloadFileName = undefined;
3365
+ this.mimeType = undefined;
3335
3366
  this.message = undefined;
3336
3367
  this.height = '220px';
3337
3368
  this.width = '250px';
@@ -3361,10 +3392,10 @@ const ImageMessage = class {
3361
3392
  }
3362
3393
  render() {
3363
3394
  const showCaption = this.message && !String(this.message).includes('AttachmentMessage:');
3364
- return (index.h("div", { key: 'b3c7b9f8e05923e0955bff3e8f71740baf5e42b7' }, index.h("message-bubble", { key: '7bca9fc47d0dde8e111bdc445a3fa65a90322def', isSelf: !!this.isSelf, time: this.time, timeColor: this.timeColor, isRead: this.isRead, isDelivered: this.isDelivered, deliveryStatus: this.deliveryStatus, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, isForwarded: this.messageType === 1, backgroundColor: this.bgColor, borderRadius: this.borderRadius || '10px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, index.h("div", { key: 'fb3cf820d1ba04c2e73024700016660ddcffee3a', class: "image-container", style: { width: this.width || '250px', height: this.height || '220px', borderRadius: this.borderRadius }, onClick: this.openGallery }, index.h("img", { key: '883f683d9833d06ae7c1c7a375ac3208385cc8c7', src: this.imageSrc, alt: "image" }), this.totalMedia > 0 ? index.h("span", { class: "mediaCount" }, " + ", this.totalMedia) : null), showCaption ? (index.h("div", { style: { fontSize: '14px', color: this.textColor, marginTop: '4px' } }, messageBodyRender.renderMessageBody(this.message, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), !!this.isSelf))) : null), this.galleryOpen ? (index.h("div", { class: "gallery-overlay", onClick: () => (this.galleryOpen = false) }, index.h("button", { type: "button", class: "gallery-close", "aria-label": "Close" }, "\u00D7"), index.h("img", { src: this.imageSrc, alt: "full", onClick: e => e.stopPropagation() }))) : null));
3395
+ return (index.h("div", { key: 'a5f207c46152f6985e004c890ae359fb806289d2' }, index.h("message-bubble", { key: '7ac2761da95a06ef5081dcad7dbd665bdcbe911f', isSelf: !!this.isSelf, time: this.time, timeColor: this.timeColor, isRead: this.isRead, isDelivered: this.isDelivered, deliveryStatus: this.deliveryStatus, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, isForwarded: this.messageType === 1, backgroundColor: this.bgColor, borderRadius: this.borderRadius || '10px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, index.h("div", { key: 'df99c21dcb4672c6ef9b8e0288d22e761dde6143', class: "image-container", style: { width: this.width || '250px', height: this.height || '220px', borderRadius: this.borderRadius }, onClick: this.openGallery }, index.h("img", { key: 'bd79e700108db22923c5084c5c78ff60cfbac858', src: this.imageSrc, alt: "image" }), this.totalMedia > 0 ? index.h("span", { class: "mediaCount" }, " + ", this.totalMedia) : null), showCaption ? (index.h("div", { style: { fontSize: '14px', color: this.textColor, marginTop: '4px' } }, messageBodyRender.renderMessageBody(this.message, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), !!this.isSelf))) : null), this.galleryOpen ? (index.h("div", { class: "gallery-overlay", onClick: () => (this.galleryOpen = false) }, index.h("div", { class: "gallery-bar", onClick: e => e.stopPropagation() }, index.h("button", { type: "button", class: "gallery-action", "aria-label": "Download", style: { ['--download-icon']: `url("${download.DownloadIcon}")` }, onClick: e => this.downloadPreview(e) }, index.h("span", { class: "gallery-download-mask", "aria-hidden": "true" })), index.h("button", { type: "button", class: "gallery-action", "aria-label": "Close", onClick: () => (this.galleryOpen = false) }, index.h("span", { class: "gallery-close-icon" }, "\u00D7"))), index.h("div", { class: "gallery-stage" }, index.h("img", { src: this.imageSrc, alt: "full", onClick: e => e.stopPropagation() })))) : null));
3365
3396
  }
3366
3397
  };
3367
- ImageMessage.style = ":host { display: block; font-family: var(--font-primary); }\n .image-container { cursor: pointer; overflow: hidden; position: relative; }\n .image-container img { width: var(--w-full); height: var(--h-full); object-fit: cover; display: block; }\n .mediaCount {\n position: absolute; right: var(--space-8); bottom: var(--space-8);\n background: var(--overlay); color: var(--text-on-brand);\n padding: var(--gap-2) var(--gap-6); border-radius: var(--rounded-8); font-size: var(--text-12);\n }\n .gallery-overlay {\n position: fixed; inset: 0; background: var(--overlay); z-index: 9999;\n display: flex; align-items: center; justify-content: center;\n }\n .gallery-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; }\n .gallery-close {\n position: absolute; top: var(--space-16); right: var(--space-16);\n color: var(--text-on-brand); font-size: var(--text-24);\n background: transparent; border: none; cursor: pointer;\n }";
3398
+ ImageMessage.style = ":host { display: block; font-family: var(--font-primary); }\n .image-container { cursor: pointer; overflow: hidden; position: relative; }\n .image-container img { width: var(--w-full); height: var(--h-full); object-fit: cover; display: block; }\n .mediaCount {\n position: absolute; right: var(--space-8); bottom: var(--space-8);\n background: var(--overlay); color: var(--text-on-brand);\n padding: var(--gap-2) var(--gap-6); border-radius: var(--rounded-8); font-size: var(--text-12);\n }\n .gallery-overlay {\n position: fixed; inset: 0; background: var(--overlay); z-index: 9999;\n display: flex; flex-direction: column;\n }\n .gallery-bar {\n display: flex; justify-content: flex-end; align-items: center; gap: var(--space-8);\n padding: var(--space-8) var(--space-12); flex-shrink: 0;\n }\n .gallery-bar .gallery-action {\n display: flex; align-items: center; justify-content: center;\n border: none; background: transparent; cursor: pointer; padding: 4px;\n color: var(--text-on-brand); line-height: 0;\n width: 28px; height: 28px;\n }\n .gallery-bar .gallery-download-mask {\n width: 20px; height: 20px; display: block;\n background-color: currentColor;\n -webkit-mask: var(--download-icon) center / contain no-repeat;\n mask: var(--download-icon) center / contain no-repeat;\n }\n .gallery-bar .gallery-close-icon {\n font-size: 20px; line-height: 1;\n }\n .gallery-stage {\n flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0;\n padding: 0 var(--space-16) var(--space-16);\n }\n .gallery-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }";
3368
3399
 
3369
3400
  const VideoMessage = class {
3370
3401
  constructor(hostRef) {
@@ -3390,10 +3421,19 @@ const VideoMessage = class {
3390
3421
  const v = this.videoEl();
3391
3422
  (_a = v === null || v === void 0 ? void 0 : v.requestFullscreen) === null || _a === void 0 ? void 0 : _a.call(v);
3392
3423
  };
3424
+ this.downloadVideo = (e) => {
3425
+ e.preventDefault();
3426
+ e.stopPropagation();
3427
+ const url = this.resolveVideoUrl();
3428
+ if (!url)
3429
+ return;
3430
+ void download.downloadMediaFromUrl(url, this.downloadFileName, this.videoType || this.type);
3431
+ };
3393
3432
  this.bgColor = undefined;
3394
3433
  this.borderRadius = '10px';
3395
3434
  this.padding = '10px';
3396
3435
  this.videoSrc = undefined;
3436
+ this.downloadFileName = undefined;
3397
3437
  this.poster = '';
3398
3438
  this.videoType = 'video/mp4';
3399
3439
  this.time = undefined;
@@ -3423,18 +3463,22 @@ const VideoMessage = class {
3423
3463
  var _a;
3424
3464
  return ((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('video')) || null;
3425
3465
  }
3466
+ resolveVideoUrl() {
3467
+ var _a;
3468
+ return this.videoSrc || ((_a = this.videoEl()) === null || _a === void 0 ? void 0 : _a.currentSrc) || '';
3469
+ }
3426
3470
  render() {
3427
3471
  const showCaption = this.message && !String(this.message).includes('AttachmentMessage:');
3428
- return (index.h("message-bubble", { key: 'da362910daf539e1199b49e8c3ff7982d9df2237', isSelf: !!this.isSelf, time: this.time, timeColor: this.timeColor, isRead: this.isRead, isDelivered: this.isDelivered, deliveryStatus: this.deliveryStatus, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, isForwarded: this.messageType === 1, backgroundColor: this.bgColor, borderRadius: this.borderRadius || '10px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, index.h("div", { key: 'd97ba1095677d53316a3726aafe9431165a2c32d', class: "video-wrap" }, index.h("video", { key: '3ef7bf3df763e4f5b3c15cd97338c7cfce87530f', style: {
3472
+ return (index.h("message-bubble", { key: '4b672ea1d53be97115d7859b8cb61a2f31d17d6c', isSelf: !!this.isSelf, time: this.time, timeColor: this.timeColor, isRead: this.isRead, isDelivered: this.isDelivered, deliveryStatus: this.deliveryStatus, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, isForwarded: this.messageType === 1, backgroundColor: this.bgColor, borderRadius: this.borderRadius || '10px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, index.h("div", { key: 'b615a7f4f55010ac4e1fee0c5a439f11bbf57d3b', class: "video-wrap" }, index.h("video", { key: 'ac3ac6918f714849828590b96fd36f70bfd0882c', style: {
3429
3473
  height: this.height || '150px',
3430
3474
  width: this.width || '150px',
3431
3475
  objectFit: 'cover',
3432
3476
  borderRadius: this.borderRadius || '8px',
3433
- }, poster: this.poster || undefined, preload: this.poster ? 'none' : 'metadata', onClick: this.toggle }, index.h("source", { key: '6893915436d9223c0245d2ddacbd0b8a486d0f15', src: this.videoSrc, type: this.videoType || 'video/mp4' })), index.h("div", { key: '3276ef69508d305500603c9b58c6eb5c2346f44d', class: "controls" }, !this.isPlaying ? (index.h("button", { type: "button", onClick: this.playVideo, "aria-label": "Play" }, "\u25B6")) : (index.h("button", { type: "button", onClick: this.pauseVideo, "aria-label": "Pause" }, "\u275A\u275A")), index.h("button", { key: '955b8fafd989952d44358a0fc831c99db4704cdc', type: "button", class: "video_fullscreen", onClick: this.fullscreen, "aria-label": "Fullscreen" }, "\u26F6"))), showCaption ? (index.h("div", { style: { fontSize: '14px', color: this.textColor, marginTop: '4px' } }, messageBodyRender.renderMessageBody(this.message, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), !!this.isSelf))) : null));
3477
+ }, src: this.videoSrc || undefined, poster: this.poster || undefined, preload: this.poster ? 'none' : 'metadata', onClick: this.toggle }, index.h("source", { key: 'f43f9c615d1f1f3c4e4e8f941efb02a1fc7eb305', src: this.videoSrc, type: this.videoType || 'video/mp4' })), index.h("div", { key: 'db2ee6e3b7fea19634d07a15e0516d69488a1983', class: "controls" }, !this.isPlaying ? (index.h("button", { type: "button", onClick: this.playVideo, "aria-label": "Play" }, "\u25B6")) : (index.h("button", { type: "button", onClick: this.pauseVideo, "aria-label": "Pause" }, "\u275A\u275A"))), index.h("button", { key: 'e282ae6caf07832e49e6791d33ee950b7bd1ed91', type: "button", class: "video_corner video_download", onClick: e => this.downloadVideo(e), "aria-label": "Download" }, index.h("img", { key: 'd0ed1fb8ce8b5d5b9c246c9a99e3a04e907ebbaf', src: download.DownloadIcon, alt: "" })), index.h("button", { key: '4d777aaf7650d5bcdd9f51da470bc43837f19092', type: "button", class: "video_corner video_fullscreen", onClick: this.fullscreen, "aria-label": "Fullscreen" }, "\u26F6")), showCaption ? (index.h("div", { style: { fontSize: '14px', color: this.textColor, marginTop: '4px' } }, messageBodyRender.renderMessageBody(this.message, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), !!this.isSelf))) : null));
3434
3478
  }
3435
3479
  get el() { return index.getElement(this); }
3436
3480
  };
3437
- VideoMessage.style = ":host { display: block; position: relative; }\n .video-wrap { position: relative; width: fit-content; }\n .controls {\n position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;\n }\n .controls button {\n pointer-events: auto; border: none; background: var(--overlay); color: var(--text-on-brand);\n cursor: pointer; padding: 8px 10px; border-radius: 8px; margin: 0 4px;\n }\n .video_fullscreen { position: absolute; right: 8px; bottom: 8px; }";
3481
+ VideoMessage.style = ":host { display: block; position: relative; }\n .video-wrap { position: relative; width: fit-content; }\n .controls {\n position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;\n pointer-events: none;\n }\n .controls button {\n pointer-events: auto; border: none; background: var(--overlay); color: var(--text-on-brand);\n cursor: pointer; padding: 8px 10px; border-radius: 8px; margin: 0 4px;\n }\n .video_corner {\n position: absolute; bottom: 8px; z-index: 2; pointer-events: auto;\n border: none; background: var(--overlay); color: var(--text-on-brand);\n cursor: pointer; padding: 6px; border-radius: 8px; line-height: 0;\n width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;\n }\n .video_corner img {\n width: 16px; height: 16px; display: block; object-fit: contain;\n filter: brightness(0) invert(1);\n }\n .video_download { left: 8px; }\n .video_fullscreen { right: 8px; font-size: 14px; line-height: 1; }";
3438
3482
 
3439
3483
  exports.audio_bubble = AudioBubble;
3440
3484
  exports.document_message = DocumentMessage;