isometrik-plugin-chat-sdk 2.0.5 → 2.0.7

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 (280) hide show
  1. package/dist/cjs/admin-transfer-dialog.cjs.entry.js +44 -0
  2. package/dist/cjs/admin-transfer-dialog.cjs.entry.js.map +1 -0
  3. package/dist/cjs/{app-globals-dba84d07.js → app-globals-c433d8a6.js} +2 -2
  4. package/dist/cjs/{app-globals-dba84d07.js.map → app-globals-c433d8a6.js.map} +1 -1
  5. package/dist/cjs/attachment-preview_22.cjs.entry.js +162 -53
  6. package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
  7. package/dist/cjs/audio-bubble_4.cjs.entry.js +9 -9
  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-video-message-bubble.cjs.entry.js +1 -1
  12. package/dist/cjs/delete-message.cjs.entry.js +1 -1
  13. package/dist/cjs/{drawer-811d2ce8.js → drawer-960b3f5d.js} +3 -1
  14. package/dist/cjs/drawer-960b3f5d.js.map +1 -0
  15. package/dist/cjs/forward-memebers.cjs.entry.js +3 -3
  16. package/dist/cjs/forward-message.cjs.entry.js +2 -2
  17. package/dist/cjs/group-admin-leave-b5cfdb33.js +55 -0
  18. package/dist/cjs/group-admin-leave-b5cfdb33.js.map +1 -0
  19. package/dist/cjs/index.cjs.js +2 -2
  20. package/dist/cjs/isometrik-webchat.cjs.js +4 -4
  21. package/dist/cjs/link-preview.cjs.entry.js +1 -1
  22. package/dist/cjs/loader.cjs.js +4 -4
  23. package/dist/cjs/login-page_3.cjs.entry.js +15 -11
  24. package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
  25. package/dist/cjs/member-add.cjs.entry.js +4 -4
  26. package/dist/cjs/message-bubble.cjs.entry.js +2 -2
  27. package/dist/cjs/my-component.cjs.entry.js +1 -1
  28. package/dist/cjs/{profile-avatar_2.cjs.entry.js → profile-avatar.cjs.entry.js} +1 -25
  29. package/dist/cjs/profile-avatar.cjs.entry.js.map +1 -0
  30. package/dist/cjs/reaction-container.cjs.entry.js +2 -2
  31. package/dist/cjs/{runtime-controls-b5a3836e.js → runtime-controls-95f6cb3b.js} +4 -2
  32. package/dist/cjs/runtime-controls-95f6cb3b.js.map +1 -0
  33. package/dist/cjs/{send-media-2c02bba7.js → send-media-37e09e83.js} +39 -1
  34. package/dist/cjs/send-media-37e09e83.js.map +1 -0
  35. package/dist/cjs/share-popup.cjs.entry.js +1 -1
  36. package/dist/cjs/spinner-loader.cjs.entry.js +32 -0
  37. package/dist/cjs/spinner-loader.cjs.entry.js.map +1 -0
  38. package/dist/collection/collection-manifest.json +1 -0
  39. package/dist/collection/components/ChatUIComponent/AddMember.js +3 -3
  40. package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +1 -1
  41. package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +1 -1
  42. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +20 -0
  43. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
  44. package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +1 -1
  45. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +1 -1
  46. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +22 -7
  47. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -1
  48. package/dist/collection/components/ChatUIComponent/ReactionContainer.js +2 -2
  49. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +34 -16
  50. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
  51. package/dist/collection/components/ChatUIComponent/shared/AudioBubble/AudioBubble.js +3 -3
  52. package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js +2 -2
  53. package/dist/collection/components/ChatUIComponent/shared/admin-transfer-dialog/admin-transfer-dialog.js +101 -0
  54. package/dist/collection/components/ChatUIComponent/shared/admin-transfer-dialog/admin-transfer-dialog.js.map +1 -0
  55. package/dist/collection/components/ChatUIComponent/shared/attachment-preview/attachment-preview.js +1 -1
  56. package/dist/collection/components/ChatUIComponent/shared/block chatlist/BlockChatList.js +1 -1
  57. package/dist/collection/components/ChatUIComponent/shared/chat-loading-placeholder/chat-loading-placeholder.js +1 -1
  58. package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js +10 -4
  59. package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js.map +1 -1
  60. package/dist/collection/components/ChatUIComponent/shared/delete-message/delete-message.js +1 -1
  61. package/dist/collection/components/ChatUIComponent/shared/document-message/document-message.js +3 -3
  62. package/dist/collection/components/ChatUIComponent/shared/forward-message/forward-message.js +2 -2
  63. package/dist/collection/components/ChatUIComponent/shared/image-message/image-message.js +1 -1
  64. package/dist/collection/components/ChatUIComponent/shared/incoming-text-message-bubble/incoming-text-message-bubble.js +1 -1
  65. package/dist/collection/components/ChatUIComponent/shared/index.js +1 -0
  66. package/dist/collection/components/ChatUIComponent/shared/index.js.map +1 -1
  67. package/dist/collection/components/ChatUIComponent/shared/link-preview/link-preview.js +1 -1
  68. package/dist/collection/components/ChatUIComponent/shared/message-bubble/message-bubble.js +2 -2
  69. package/dist/collection/components/ChatUIComponent/shared/message-date-pill/message-date-pill.js +1 -1
  70. package/dist/collection/components/ChatUIComponent/shared/message-info/message-info.js +1 -1
  71. package/dist/collection/components/ChatUIComponent/shared/message-search/message-search.js +1 -1
  72. package/dist/collection/components/ChatUIComponent/shared/outgoing-text-message-bubble/outgoing-text-message-bubble.js +1 -1
  73. package/dist/collection/components/ChatUIComponent/shared/profile sidebar/profile-sidebar.js +1 -1
  74. package/dist/collection/components/ChatUIComponent/shared/profile-info/profile-info.js +2 -2
  75. package/dist/collection/components/ChatUIComponent/shared/reply-block/reply-block.js +1 -1
  76. package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.js +1 -1
  77. package/dist/collection/components/ChatUIComponent/shared/share-popup/share-popup.js +1 -1
  78. package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js +2 -2
  79. package/dist/collection/components/chat-main.js +1 -1
  80. package/dist/collection/components/my-component/my-component.js +1 -1
  81. package/dist/collection/components/my-component/web-chat/event-handlers.js +5 -0
  82. package/dist/collection/components/my-component/web-chat/event-handlers.js.map +1 -1
  83. package/dist/collection/components/my-component/web-chat/mqtt-host.js +9 -9
  84. package/dist/collection/components/my-component/web-chat/mqtt-host.js.map +1 -1
  85. package/dist/collection/lib/chat/index.js +1 -1
  86. package/dist/collection/lib/chat/index.js.map +1 -1
  87. package/dist/collection/lib/chat/messages.js +36 -0
  88. package/dist/collection/lib/chat/messages.js.map +1 -1
  89. package/dist/collection/lib/drawer.js +3 -0
  90. package/dist/collection/lib/drawer.js.map +1 -1
  91. package/dist/collection/lib/group-admin-leave.js +47 -0
  92. package/dist/collection/lib/group-admin-leave.js.map +1 -0
  93. package/dist/collection/lib/prompt-exit-group.js +59 -0
  94. package/dist/collection/lib/prompt-exit-group.js.map +1 -0
  95. package/dist/collection/sdk/headless-api.js +3 -1
  96. package/dist/collection/sdk/headless-api.js.map +1 -1
  97. package/dist/components/AudioBubble.js +3 -3
  98. package/dist/components/BlockChatList.js +1 -1
  99. package/dist/components/ChatFooter.js +1 -1
  100. package/dist/components/ChatSidebar.js +21 -1
  101. package/dist/components/ChatSidebar.js.map +1 -1
  102. package/dist/components/WebChat.js +17 -13
  103. package/dist/components/WebChat.js.map +1 -1
  104. package/dist/components/WebChatBody.js +34 -16
  105. package/dist/components/WebChatBody.js.map +1 -1
  106. package/dist/components/WebChatHeader.js +23 -8
  107. package/dist/components/WebChatHeader.js.map +1 -1
  108. package/dist/components/WebchatRightSide.js +4 -35
  109. package/dist/components/WebchatRightSide.js.map +1 -1
  110. package/dist/components/admin-transfer-dialog.d.ts +11 -0
  111. package/dist/components/admin-transfer-dialog.js +69 -0
  112. package/dist/components/admin-transfer-dialog.js.map +1 -0
  113. package/dist/components/attachment-preview2.js +1 -1
  114. package/dist/components/chat-app.js +1 -1
  115. package/dist/components/chat-document-message-bubble.js +1 -1
  116. package/dist/components/chat-image-message-bubble.js +1 -1
  117. package/dist/components/chat-loading-placeholder2.js +1 -1
  118. package/dist/components/chat-video-message-bubble.js +1 -1
  119. package/dist/components/contact-info2.js +11 -5
  120. package/dist/components/contact-info2.js.map +1 -1
  121. package/dist/components/conversation.js +2 -283
  122. package/dist/components/conversation.js.map +1 -1
  123. package/dist/components/delete-message.js +1 -1
  124. package/dist/components/document-message2.js +3 -3
  125. package/dist/components/drawer.js +2 -0
  126. package/dist/components/drawer.js.map +1 -1
  127. package/dist/components/forward-memebers.js +2 -2
  128. package/dist/components/forward-message.js +2 -2
  129. package/dist/components/group-admin-leave.js +50 -0
  130. package/dist/components/group-admin-leave.js.map +1 -0
  131. package/dist/components/group-members.js +298 -26
  132. package/dist/components/group-members.js.map +1 -1
  133. package/dist/components/group-members2.js +37 -0
  134. package/dist/components/group-members2.js.map +1 -0
  135. package/dist/components/image-message2.js +1 -1
  136. package/dist/components/incoming-text-message-bubble2.js +1 -1
  137. package/dist/components/index.js +3 -1
  138. package/dist/components/index.js.map +1 -1
  139. package/dist/components/link-preview2.js +1 -1
  140. package/dist/components/member-add.js +4 -4
  141. package/dist/components/message-bubble2.js +2 -2
  142. package/dist/components/message-date-pill2.js +1 -1
  143. package/dist/components/message-info2.js +1 -1
  144. package/dist/components/message-search2.js +1 -1
  145. package/dist/components/messages.js +37 -1
  146. package/dist/components/messages.js.map +1 -1
  147. package/dist/components/my-component.js +1 -1
  148. package/dist/components/outgoing-text-message-bubble2.js +1 -1
  149. package/dist/components/profile-info2.js +2 -2
  150. package/dist/components/profile-sidebar2.js +1 -1
  151. package/dist/components/prompt-exit-group.js +73 -0
  152. package/dist/components/prompt-exit-group.js.map +1 -0
  153. package/dist/components/reaction-container.js +2 -2
  154. package/dist/components/reply-block2.js +1 -1
  155. package/dist/components/reply-message-container2.js +1 -1
  156. package/dist/components/share-popup.js +1 -1
  157. package/dist/components/video-message2.js +2 -2
  158. package/dist/esm/admin-transfer-dialog.entry.js +40 -0
  159. package/dist/esm/admin-transfer-dialog.entry.js.map +1 -0
  160. package/dist/esm/{app-globals-8fea092d.js → app-globals-dfce8a5b.js} +2 -2
  161. package/dist/esm/{app-globals-8fea092d.js.map → app-globals-dfce8a5b.js.map} +1 -1
  162. package/dist/esm/attachment-preview_22.entry.js +162 -53
  163. package/dist/esm/attachment-preview_22.entry.js.map +1 -1
  164. package/dist/esm/audio-bubble_4.entry.js +9 -9
  165. package/dist/esm/chat-app.entry.js +1 -1
  166. package/dist/esm/chat-document-message-bubble.entry.js +1 -1
  167. package/dist/esm/chat-image-message-bubble.entry.js +1 -1
  168. package/dist/esm/chat-video-message-bubble.entry.js +1 -1
  169. package/dist/esm/delete-message.entry.js +1 -1
  170. package/dist/esm/{drawer-74c188f1.js → drawer-d54c2f10.js} +3 -1
  171. package/dist/esm/drawer-d54c2f10.js.map +1 -0
  172. package/dist/esm/forward-memebers.entry.js +3 -3
  173. package/dist/esm/forward-message.entry.js +2 -2
  174. package/dist/esm/group-admin-leave-a60b9b1a.js +50 -0
  175. package/dist/esm/group-admin-leave-a60b9b1a.js.map +1 -0
  176. package/dist/esm/index.js +3 -3
  177. package/dist/esm/isometrik-webchat.js +4 -4
  178. package/dist/esm/link-preview.entry.js +1 -1
  179. package/dist/esm/loader.js +4 -4
  180. package/dist/esm/login-page_3.entry.js +15 -11
  181. package/dist/esm/login-page_3.entry.js.map +1 -1
  182. package/dist/esm/member-add.entry.js +4 -4
  183. package/dist/esm/message-bubble.entry.js +2 -2
  184. package/dist/esm/my-component.entry.js +1 -1
  185. package/dist/esm/{profile-avatar_2.entry.js → profile-avatar.entry.js} +2 -25
  186. package/dist/esm/profile-avatar.entry.js.map +1 -0
  187. package/dist/esm/reaction-container.entry.js +2 -2
  188. package/dist/esm/{runtime-controls-c5ba5009.js → runtime-controls-ec6d5c75.js} +4 -2
  189. package/dist/esm/runtime-controls-ec6d5c75.js.map +1 -0
  190. package/dist/esm/{send-media-588837c7.js → send-media-a946c6dd.js} +38 -2
  191. package/dist/esm/send-media-a946c6dd.js.map +1 -0
  192. package/dist/esm/share-popup.entry.js +1 -1
  193. package/dist/esm/spinner-loader.entry.js +28 -0
  194. package/dist/esm/spinner-loader.entry.js.map +1 -0
  195. package/dist/isometrik-webchat/index.esm.js +1 -1
  196. package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
  197. package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -1
  198. package/dist/isometrik-webchat/{p-a876991d.entry.js → p-0ccfbe90.entry.js} +2 -2
  199. package/dist/isometrik-webchat/{p-1854b156.entry.js → p-161fcb35.entry.js} +2 -2
  200. package/dist/isometrik-webchat/{p-a43ad157.entry.js → p-1eecc7c5.entry.js} +2 -2
  201. package/dist/isometrik-webchat/{p-fdd327f5.entry.js → p-2195b0c0.entry.js} +2 -2
  202. package/dist/isometrik-webchat/p-2e9974e1.entry.js +2 -0
  203. package/dist/isometrik-webchat/p-30dc94e0.js +2 -0
  204. package/dist/isometrik-webchat/p-30dc94e0.js.map +1 -0
  205. package/dist/isometrik-webchat/{p-c1e8c38e.entry.js → p-3664e0ad.entry.js} +2 -2
  206. package/dist/isometrik-webchat/p-3f355f9e.js +2 -0
  207. package/dist/isometrik-webchat/p-3f355f9e.js.map +1 -0
  208. package/dist/isometrik-webchat/p-46dcd38f.js +2 -0
  209. package/dist/isometrik-webchat/p-46dcd38f.js.map +1 -0
  210. package/dist/isometrik-webchat/p-46e0048e.js +2 -0
  211. package/dist/isometrik-webchat/p-46e0048e.js.map +1 -0
  212. package/dist/isometrik-webchat/p-48ce4dca.entry.js +2 -0
  213. package/dist/isometrik-webchat/{p-d720cf14.entry.js → p-76341adb.entry.js} +2 -2
  214. package/dist/isometrik-webchat/{p-2d3e8cd4.entry.js → p-7af9a7f3.entry.js} +2 -2
  215. package/dist/isometrik-webchat/p-7b25f234.entry.js +2 -0
  216. package/dist/isometrik-webchat/p-7b25f234.entry.js.map +1 -0
  217. package/dist/isometrik-webchat/p-84424caa.entry.js +2 -0
  218. package/dist/isometrik-webchat/p-84424caa.entry.js.map +1 -0
  219. package/dist/isometrik-webchat/p-86be30fe.js +2 -0
  220. package/dist/isometrik-webchat/p-9db196a4.entry.js +2 -0
  221. package/dist/isometrik-webchat/p-9db196a4.entry.js.map +1 -0
  222. package/dist/isometrik-webchat/p-ad02a8ca.entry.js +2 -0
  223. package/dist/isometrik-webchat/p-c5bff6a1.entry.js +2 -0
  224. package/dist/isometrik-webchat/p-c5bff6a1.entry.js.map +1 -0
  225. package/dist/isometrik-webchat/p-c83e2d5d.entry.js +2 -0
  226. package/dist/isometrik-webchat/{p-fb705915.entry.js → p-cc5b86e6.entry.js} +2 -2
  227. package/dist/isometrik-webchat/{p-f1fbf3be.entry.js → p-d8b65cf4.entry.js} +2 -2
  228. package/dist/isometrik-webchat/p-e48a1217.entry.js +2 -0
  229. package/dist/isometrik-webchat/p-ff023d39.entry.js +2 -0
  230. package/dist/isometrik-webchat/p-ff023d39.entry.js.map +1 -0
  231. package/dist/types/components/ChatUIComponent/shared/admin-transfer-dialog/admin-transfer-dialog.d.ts +13 -0
  232. package/dist/types/components/ChatUIComponent/shared/index.d.ts +1 -0
  233. package/dist/types/components.d.ts +27 -0
  234. package/dist/types/lib/chat/index.d.ts +1 -1
  235. package/dist/types/lib/drawer.d.ts +1 -0
  236. package/dist/types/lib/group-admin-leave.d.ts +20 -0
  237. package/dist/types/lib/prompt-exit-group.d.ts +9 -0
  238. package/dist/types/sdk/headless-api.d.ts +3 -1
  239. package/package.json +1 -1
  240. package/dist/cjs/drawer-811d2ce8.js.map +0 -1
  241. package/dist/cjs/profile-avatar_2.cjs.entry.js.map +0 -1
  242. package/dist/cjs/runtime-controls-b5a3836e.js.map +0 -1
  243. package/dist/cjs/send-media-2c02bba7.js.map +0 -1
  244. package/dist/esm/drawer-74c188f1.js.map +0 -1
  245. package/dist/esm/profile-avatar_2.entry.js.map +0 -1
  246. package/dist/esm/runtime-controls-c5ba5009.js.map +0 -1
  247. package/dist/esm/send-media-588837c7.js.map +0 -1
  248. package/dist/isometrik-webchat/p-0392c7be.entry.js +0 -2
  249. package/dist/isometrik-webchat/p-1a6e6524.js +0 -2
  250. package/dist/isometrik-webchat/p-1a6e6524.js.map +0 -1
  251. package/dist/isometrik-webchat/p-3c70c22c.entry.js +0 -2
  252. package/dist/isometrik-webchat/p-5d243250.entry.js +0 -2
  253. package/dist/isometrik-webchat/p-70f66001.js +0 -2
  254. package/dist/isometrik-webchat/p-70f66001.js.map +0 -1
  255. package/dist/isometrik-webchat/p-8816acc1.js +0 -2
  256. package/dist/isometrik-webchat/p-92eec03b.entry.js +0 -2
  257. package/dist/isometrik-webchat/p-92eec03b.entry.js.map +0 -1
  258. package/dist/isometrik-webchat/p-b16c3db0.entry.js +0 -2
  259. package/dist/isometrik-webchat/p-b16c3db0.entry.js.map +0 -1
  260. package/dist/isometrik-webchat/p-b857775d.entry.js +0 -2
  261. package/dist/isometrik-webchat/p-c0c19621.entry.js +0 -2
  262. package/dist/isometrik-webchat/p-dd62bd69.js +0 -2
  263. package/dist/isometrik-webchat/p-dd62bd69.js.map +0 -1
  264. package/dist/isometrik-webchat/p-ed4699a0.entry.js +0 -2
  265. package/dist/isometrik-webchat/p-ed4699a0.entry.js.map +0 -1
  266. /package/dist/isometrik-webchat/{p-a876991d.entry.js.map → p-0ccfbe90.entry.js.map} +0 -0
  267. /package/dist/isometrik-webchat/{p-1854b156.entry.js.map → p-161fcb35.entry.js.map} +0 -0
  268. /package/dist/isometrik-webchat/{p-a43ad157.entry.js.map → p-1eecc7c5.entry.js.map} +0 -0
  269. /package/dist/isometrik-webchat/{p-fdd327f5.entry.js.map → p-2195b0c0.entry.js.map} +0 -0
  270. /package/dist/isometrik-webchat/{p-3c70c22c.entry.js.map → p-2e9974e1.entry.js.map} +0 -0
  271. /package/dist/isometrik-webchat/{p-c1e8c38e.entry.js.map → p-3664e0ad.entry.js.map} +0 -0
  272. /package/dist/isometrik-webchat/{p-b857775d.entry.js.map → p-48ce4dca.entry.js.map} +0 -0
  273. /package/dist/isometrik-webchat/{p-d720cf14.entry.js.map → p-76341adb.entry.js.map} +0 -0
  274. /package/dist/isometrik-webchat/{p-2d3e8cd4.entry.js.map → p-7af9a7f3.entry.js.map} +0 -0
  275. /package/dist/isometrik-webchat/{p-8816acc1.js.map → p-86be30fe.js.map} +0 -0
  276. /package/dist/isometrik-webchat/{p-5d243250.entry.js.map → p-ad02a8ca.entry.js.map} +0 -0
  277. /package/dist/isometrik-webchat/{p-c0c19621.entry.js.map → p-c83e2d5d.entry.js.map} +0 -0
  278. /package/dist/isometrik-webchat/{p-fb705915.entry.js.map → p-cc5b86e6.entry.js.map} +0 -0
  279. /package/dist/isometrik-webchat/{p-f1fbf3be.entry.js.map → p-d8b65cf4.entry.js.map} +0 -0
  280. /package/dist/isometrik-webchat/{p-0392c7be.entry.js.map → p-e48a1217.entry.js.map} +0 -0
@@ -5,16 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f624fc47.js');
6
6
  const chatAssets = require('./chat-assets-686620e7.js');
7
7
  const cancel = require('./cancel-1ffd86d3.js');
8
- const sendMedia = require('./send-media-2c02bba7.js');
8
+ const sendMedia = require('./send-media-37e09e83.js');
9
9
  const doublecheck = require('./doublecheck-c2461adc.js');
10
10
  const index_m = require('./index.m-ff115b26.js');
11
- const drawer = require('./drawer-811d2ce8.js');
11
+ const drawer = require('./drawer-960b3f5d.js');
12
12
  const helpers = require('./helpers-154861e9.js');
13
13
  const index$1 = require('./index-66f98408.js');
14
14
  const toast = require('./toast-f810e550.js');
15
15
  const groupcast = require('./groupcast-c93d4a7d.js');
16
16
  const IsometrikLogo = require('./IsometrikLogo-9e642f65.js');
17
17
  const groupMembers = require('./group-members-5a82ec8a.js');
18
+ const groupAdminLeave = require('./group-admin-leave-b5cfdb33.js');
18
19
  const content = require('./content-ebca062a.js');
19
20
  const messageBodyRender = require('./message-body-render-7c7a026e.js');
20
21
  const messageReaction = require('./message-reaction-8f93a048.js');
@@ -1031,6 +1032,24 @@ const ChatSidebar = class {
1031
1032
  }
1032
1033
  }
1033
1034
  async exitGroup(conversationId) {
1035
+ var _a, _b;
1036
+ const selfId = String(((_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userId) || '');
1037
+ const storeMembers = groupMembers.groupMembersStore.getCurrentConversationId() === conversationId
1038
+ ? groupMembers.groupMembersStore.getMembers()
1039
+ : [];
1040
+ const detailMembers = Array.isArray((_b = this.conversationDetails) === null || _b === void 0 ? void 0 : _b.members)
1041
+ ? this.conversationDetails.members
1042
+ : [];
1043
+ const members = storeMembers.length ? storeMembers : detailMembers;
1044
+ if (groupAdminLeave.needsAdminTransferBeforeLeave(selfId, members)) {
1045
+ toast.showToast({
1046
+ message: 'Make another member an admin before leaving this group',
1047
+ type: 'error',
1048
+ position: 'bottom-right',
1049
+ });
1050
+ drawer.drawerDialogService.closeDialog('confirm-dialog');
1051
+ return;
1052
+ }
1034
1053
  try {
1035
1054
  this.isLoading = true;
1036
1055
  await index_m.M.getInstance().Conversation.deleteConversationLeave({ conversationId });
@@ -1408,6 +1427,70 @@ const GroupCast = class {
1408
1427
  };
1409
1428
  GroupCast.style = ":host {\n display: block;\n height: 100%;\n background: var(--bg-primary, var(--bg-primary-color));\n color: var(--text-primary, var(--text-primary-color));\n }\n .group-cast-container {\n padding: 20px 0 20px 20px;\n height: 96%;\n display: flex;\n flex-direction: column;\n gap: 5px;\n box-sizing: border-box;\n }\n .group-cast-header-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 20px 0 0;\n }\n .group-cast-header {\n font-size: var(--title-font-size, 24px);\n font-weight: 600;\n margin: 0;\n }\n .icon-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 0;\n display: flex;\n align-items: center;\n }\n .icon-btn img {\n width: 28px;\n height: 28px;\n }\n .group-cast-body {\n flex: 1;\n min-height: 0;\n overflow: hidden auto;\n padding: 0 15px 0 0;\n }\n .group-cast-body::-webkit-scrollbar { width: 5px; }\n .group-cast-body::-webkit-scrollbar-track { background: transparent; }\n .group-cast-body::-webkit-scrollbar-thumb {\n background-color: var(--bg-secondary, var(--bg-secondary-color)) !important;\n border-radius: 10px;\n }\n chat-tile:hover {\n background-color: var(--bg-secondary, var(--bg-secondary-color)) !important;\n }\n .create-panel {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n height: 100%;\n padding-right: 20px;\n }\n .create-panel searchable-list,\n .create-panel iso-group-info {\n display: block;\n flex: 1;\n min-height: 0;\n height: 100%;\n }\n .picker-back {\n display: flex;\n align-items: center;\n padding: 0 0 8px;\n }\n .picker-back button {\n border: none;\n background: transparent;\n color: inherit;\n font-size: 18px;\n cursor: pointer;\n }\n .empty {\n text-align: center;\n padding: 20px;\n color: var(--text-tertiary, var(--text-tertiary-color));\n }\n .loader {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0,0,0,0.25);\n z-index: 5;\n }\n .theme-icon { filter: var(--svg-icon-filter); }";
1410
1429
 
1430
+ const makeAdmin = async (conversationId, userId) => {
1431
+ const response = await index_m.M.getInstance().Conversation.putConversationAdmin({conversationId: conversationId, memberId: userId});
1432
+ return response;
1433
+ };
1434
+
1435
+ const removeAdmin = async (conversationId, userId) => {
1436
+ const response = await index_m.M.getInstance().Conversation.deleteConversationAdmin({conversationId: conversationId, memberId: userId});
1437
+ return response;
1438
+ };
1439
+
1440
+ /**
1441
+ * Exit-group UX: normal confirm, or sole-admin transfer picker first.
1442
+ */
1443
+ function promptExitGroup(opts) {
1444
+ const { selfId, members, conversationId, onLeave } = opts;
1445
+ if (!conversationId)
1446
+ return;
1447
+ if (!groupAdminLeave.needsAdminTransferBeforeLeave(selfId, members)) {
1448
+ drawer.drawerDialogService.openDialog('confirm-dialog', {
1449
+ title: 'Exit group',
1450
+ description: 'Are you sure you want to exit this group?',
1451
+ handleConfirm: () => onLeave(),
1452
+ });
1453
+ return;
1454
+ }
1455
+ const candidates = groupAdminLeave.adminTransferCandidates(selfId, members);
1456
+ if (!candidates.length) {
1457
+ drawer.drawerDialogService.openDialog('confirm-dialog', {
1458
+ title: 'Cannot exit yet',
1459
+ description: 'You are the only admin. Add another member and make them an admin before leaving.',
1460
+ yesText: 'OK',
1461
+ noText: 'Close',
1462
+ handleConfirm: () => drawer.drawerDialogService.closeDialog('confirm-dialog'),
1463
+ });
1464
+ return;
1465
+ }
1466
+ drawer.drawerDialogService.openDialog('admin-transfer', {
1467
+ candidates,
1468
+ handlePick: async (member) => {
1469
+ const memberId = groupAdminLeave.memberUserId(member);
1470
+ const name = groupAdminLeave.memberDisplayName(member);
1471
+ if (!memberId)
1472
+ return;
1473
+ try {
1474
+ await makeAdmin(conversationId, memberId);
1475
+ // Keep leave safety-net in sync — API succeeded, store must reflect it.
1476
+ if (groupMembers.groupMembersStore.getCurrentConversationId() === conversationId) {
1477
+ groupMembers.groupMembersStore.updateAdminStatus(memberId, true);
1478
+ }
1479
+ drawer.drawerDialogService.closeDialog('admin-transfer');
1480
+ onLeave();
1481
+ }
1482
+ catch (err) {
1483
+ console.error('[webchat] make admin before leave failed', err);
1484
+ toast.showToast({
1485
+ message: `Could not make ${name} an admin. Try again or pick someone else.`,
1486
+ type: 'error',
1487
+ position: 'bottom-right',
1488
+ });
1489
+ }
1490
+ },
1491
+ });
1492
+ }
1493
+
1411
1494
  const WebChatHeader = class {
1412
1495
  constructor(hostRef) {
1413
1496
  index.registerInstance(this, hostRef);
@@ -1475,15 +1558,28 @@ const WebChatHeader = class {
1475
1558
  this.handleTextClick();
1476
1559
  };
1477
1560
  this.exitGroup = () => {
1561
+ var _a, _b;
1478
1562
  this.menuOpen = false;
1479
- drawer.drawerDialogService.openDialog('confirm-dialog', {
1480
- title: 'Exit group',
1481
- description: 'Are you sure you want to exit this group?',
1482
- handleConfirm: () => {
1563
+ const conversationId = this.conversationId();
1564
+ const fromDetails = (_a = this.conversationDetails) === null || _a === void 0 ? void 0 : _a.members;
1565
+ const fromStore = groupMembers.groupMembersStore.getCurrentConversationId() === conversationId
1566
+ ? groupMembers.groupMembersStore.getMembers()
1567
+ : [];
1568
+ const members = (Array.isArray(fromDetails) && fromDetails.length ? fromDetails : null) ||
1569
+ (Array.isArray(this.groupMembers) && this.groupMembers.length
1570
+ ? this.groupMembers
1571
+ : null) ||
1572
+ fromStore ||
1573
+ [];
1574
+ promptExitGroup({
1575
+ selfId: String(((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) || ''),
1576
+ members,
1577
+ conversationId: String(conversationId || ''),
1578
+ onLeave: () => {
1483
1579
  this.el.dispatchEvent(new CustomEvent('contact-action', {
1484
1580
  bubbles: true,
1485
1581
  composed: true,
1486
- detail: { action: 'exit-group', conversationId: this.conversationId() },
1582
+ detail: { action: 'exit-group', conversationId },
1487
1583
  }));
1488
1584
  },
1489
1585
  });
@@ -1628,10 +1724,10 @@ const WebChatHeader = class {
1628
1724
  const groupcast = this.isGroupcast();
1629
1725
  const isGroup = !!((_a = this.conversationDetails) === null || _a === void 0 ? void 0 : _a.isGroup) && !groupcast;
1630
1726
  const showBlock = !groupcast && !((_b = this.conversationDetails) === null || _b === void 0 ? void 0 : _b.isGroup);
1631
- return (index.h(index.Fragment, { key: 'fe39838d7b9cb7f6f2a735511ec2f3eb6727f07e' }, index.h("div", { key: '9301551c67e5a12a0d0a6b22827629e15d4953ce', class: "head-container", style: {
1727
+ return (index.h(index.Fragment, { key: 'f69b1ff89bd8cbb686af42fea6cbe5d7d0372f4d' }, index.h("div", { key: 'b3a85a44a6b10b177987d9df97c5545caa9eb545', class: "head-container", style: {
1632
1728
  backgroundColor: this.headerBgColor || undefined,
1633
1729
  color: this.headerUsernameColor || undefined,
1634
- } }, index.h("div", { key: '9c1bc774e8f0951c5609bc9ca8c45a3ca403e2ba', class: "head-left" }, index.h("button", { key: 'e05730c5a6f5a0c3b6edb0de68c87f63dd3e2738', class: "back-button", type: "button", onClick: () => typeof this.onBackButtonClick === 'function' && this.onBackButtonClick(), "aria-label": "Back" }, index.h("img", { key: 'ba657c4e68d84d9b9489ac008480f1388b4fcdd9', class: "theme-icon", src: chatAssets.Left_Arrow, alt: "" })), index.h("div", { key: '8432657c5e82460754175c9d527ab37115d3b802', class: "identity", onClick: this.handleTextClick }, index.h("profile-avatar", { key: '6260751f6581aecdba64629edbcc823655ccba71', src: this.avatarSrc(), name: this.title(), size: "var(--avatar-sm)", isGroup: this.avatarIsGroup() }), index.h("div", { key: 'bc20634af20890fa5feb4c2deba43b08f576df7a', class: "text-container" }, index.h("div", { key: 'de24362244e1c2159d9c6a28b065a2d65cecace4', class: "title" }, this.title()), index.h("div", { key: '45f1a407b6991f0e3fa4e0a8257e3aa1388d0e9b', class: "subtitle", style: { color: this.headerLastSeenColor || undefined } }, this.subtitle(formattedLastSeen))))), index.h("div", { key: '17fce0653f3b9293cf2035508d5c1140e4f68077', class: "actions" }, !groupcast ? (index.h("button", { type: "button", class: "icon-btn", title: "Search in conversation", onClick: () => this.openSearch() }, index.h("img", { class: "theme-icon", src: chatAssets.Search, alt: "" }))) : null, index.h("div", { key: '9f378378d9dc176f6a94b3cfe6093fa95faddf6e', class: "more-wrap" }, index.h("button", { key: '5fc89bec8ac7a6486488bf89527cb9e15fa4ed4c', type: "button", class: "icon-btn", title: "Menu", "aria-label": "Menu", "aria-haspopup": "menu", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: this.toggleMenu }, index.h("img", { key: '21ca2a808dbbdce99c3044417eb5882461783e12', class: "theme-icon", src: chatAssets.Three_Dots, alt: "" })), this.menuOpen ? (index.h("div", { class: "more-menu", role: "menu" }, isGroup ? (index.h(index.Fragment, null, index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.openAddMember }, index.h("img", { class: "theme-icon", src: chatAssets.Add_User, alt: "" }), index.h("span", null, "Add member")), index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.openGroupInfo }, index.h("img", { class: "theme-icon", src: chatAssets.Info, alt: "" }), index.h("span", null, "Group info")))) : null, !groupcast ? (index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: () => this.openSearch() }, index.h("img", { class: "theme-icon", src: chatAssets.Search, alt: "" }), index.h("span", null, "Search"))) : null, index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: () => this.doCloseChat() }, index.h("img", { class: "theme-icon", src: chatAssets.CloseButton, alt: "" }), index.h("span", null, "Close chat")), !groupcast ? (index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.handleClearChat }, index.h("img", { class: "theme-icon", src: chatAssets.Clear_Chat, alt: "" }), index.h("span", null, "Clear chat"))) : null, isGroup ? (index.h(index.Fragment, null, index.h("div", { class: "more-divider" }), index.h("button", { type: "button", class: "more-item danger", role: "menuitem", onClick: this.exitGroup }, index.h("img", { class: "theme-icon", src: chatAssets.Logout, alt: "" }), index.h("span", null, "Exit group")))) : null, showBlock ? (index.h(index.Fragment, null, index.h("div", { class: "more-divider" }), index.h("button", { type: "button", class: "more-item danger", role: "menuitem", onClick: this.doBlock }, index.h("img", { class: "theme-icon", src: chatAssets.Block_User, alt: "" }), index.h("span", null, this.isBlocked ? 'Unblock Chat' : 'Block Chat')))) : null)) : null))), this.isLoading && (index.h("div", { key: '584511dc4d79e5cf8a945b53246073148687d565', class: "loading-overlay" }, index.h("spinner-loader", { key: 'bffe6d57128d0ad2eae313a25f33be23ea80a75e', height: "30px", width: "30px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary)", spinnerSecondaryColor: "var(--text-primary)", spinnerBorderWidth: "2px" })))));
1730
+ } }, index.h("div", { key: '1c25ac2995fd196618d842b018fe5ead158aa0bf', class: "head-left" }, index.h("button", { key: '623aab35ec496f1d17150c50303f4fcaee1fc521', class: "back-button", type: "button", onClick: () => typeof this.onBackButtonClick === 'function' && this.onBackButtonClick(), "aria-label": "Back" }, index.h("img", { key: 'a10dbf338a89839bb729393ba196b09244388fbb', class: "theme-icon", src: chatAssets.Left_Arrow, alt: "" })), index.h("div", { key: '58f51fda7f45e45ef4d9f8c60e1b1702c940e0ed', class: "identity", onClick: this.handleTextClick }, index.h("profile-avatar", { key: '301f581d815101e8c7e5f35051063784bdcff3dd', src: this.avatarSrc(), name: this.title(), size: "var(--avatar-sm)", isGroup: this.avatarIsGroup() }), index.h("div", { key: 'd3965924dd15944444e46907ba7e4710ed4ec71e', class: "text-container" }, index.h("div", { key: '34098ad59a669252193b72de2be172f4f596aaec', class: "title" }, this.title()), index.h("div", { key: '056426edd6da5abf00736baffd35d30c1420f797', class: "subtitle", style: { color: this.headerLastSeenColor || undefined } }, this.subtitle(formattedLastSeen))))), index.h("div", { key: 'da3984f8bb92923b17f2ef3415aeb94e7ba605e1', class: "actions" }, !groupcast ? (index.h("button", { type: "button", class: "icon-btn", title: "Search in conversation", onClick: () => this.openSearch() }, index.h("img", { class: "theme-icon", src: chatAssets.Search, alt: "" }))) : null, index.h("div", { key: 'df68b4da79c8a0d1ce2b7800b6562e100b42c24b', class: "more-wrap" }, index.h("button", { key: 'ccf5fd29b11027279e979ce1c24a380219d23d59', type: "button", class: "icon-btn", title: "Menu", "aria-label": "Menu", "aria-haspopup": "menu", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: this.toggleMenu }, index.h("img", { key: '8494806478460e4447c05753554e4bd74f845826', class: "theme-icon", src: chatAssets.Three_Dots, alt: "" })), this.menuOpen ? (index.h("div", { class: "more-menu", role: "menu" }, isGroup ? (index.h(index.Fragment, null, index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.openAddMember }, index.h("img", { class: "theme-icon", src: chatAssets.Add_User, alt: "" }), index.h("span", null, "Add member")), index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.openGroupInfo }, index.h("img", { class: "theme-icon", src: chatAssets.Info, alt: "" }), index.h("span", null, "Group info")))) : null, !groupcast ? (index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: () => this.openSearch() }, index.h("img", { class: "theme-icon", src: chatAssets.Search, alt: "" }), index.h("span", null, "Search"))) : null, index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: () => this.doCloseChat() }, index.h("img", { class: "theme-icon", src: chatAssets.CloseButton, alt: "" }), index.h("span", null, "Close chat")), !groupcast ? (index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.handleClearChat }, index.h("img", { class: "theme-icon", src: chatAssets.Clear_Chat, alt: "" }), index.h("span", null, "Clear chat"))) : null, isGroup ? (index.h(index.Fragment, null, index.h("div", { class: "more-divider" }), index.h("button", { type: "button", class: "more-item danger", role: "menuitem", onClick: this.exitGroup }, index.h("img", { class: "theme-icon", src: chatAssets.Logout, alt: "" }), index.h("span", null, "Exit group")))) : null, showBlock ? (index.h(index.Fragment, null, index.h("div", { class: "more-divider" }), index.h("button", { type: "button", class: "more-item danger", role: "menuitem", onClick: this.doBlock }, index.h("img", { class: "theme-icon", src: chatAssets.Block_User, alt: "" }), index.h("span", null, this.isBlocked ? 'Unblock Chat' : 'Block Chat')))) : null)) : null))), this.isLoading && (index.h("div", { key: '55f81b2d021ca262054d214c36fbc2f3d8ebb150', class: "loading-overlay" }, index.h("spinner-loader", { key: 'f124da66a180e08a7db55c2dfbe2e6438f478bee', height: "30px", width: "30px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary)", spinnerSecondaryColor: "var(--text-primary)", spinnerBorderWidth: "2px" })))));
1635
1731
  }
1636
1732
  get el() { return index.getElement(this); }
1637
1733
  static get watchers() { return {
@@ -4766,7 +4862,7 @@ const AttachmentPreview = class {
4766
4862
  const type = this.typeOf(cur, this.localIndex);
4767
4863
  const fileMode = this.isFilePreview(type);
4768
4864
  const fileTitle = this.fileName(cur);
4769
- return (index.h("div", { key: '14aeef8e84f9f619b43fe5749e6d6d061d4ba13b', class: "preview-container" }, index.h("div", { key: '7a6eb4eb7db969281b6b6342224774771370a535', class: "topbar" }, fileMode && !this.showCamera ? (index.h(index.Fragment, null, index.h("button", { class: "icon-btn", type: "button", "aria-label": "Close", onClick: () => this.close() }, index.h("img", { class: "theme-icon", src: cancel.CancelIcon, alt: "" })), index.h("span", { class: "topbar-title centered" }, fileTitle), index.h("span", { class: "topbar-spacer" }))) : (index.h("button", { class: "icon-btn", type: "button", "aria-label": "Close", onClick: () => this.close() }, index.h("img", { class: "theme-icon", src: cancel.CancelIcon, alt: "" })))), index.h("div", { key: 'fba60287d74ec7a96ef6bef3bedd1076aec2336f', class: "main" }, this.showCamera ? (index.h("div", { class: "camera-view" }, this.cameraError ? index.h("p", { class: "camera-error" }, this.cameraError) : null, !this.cameraReady && !this.cameraError ? index.h("p", { class: "camera-loading" }, "Opening camera\u2026") : null, index.h("video", { class: this.cameraReady ? 'is-ready' : '', ref: this.bindVideo, autoplay: true, playsinline: true, muted: true, style: { transform: this.facingMode === 'user' ? 'scaleX(-1)' : 'none' } }), this.cameraReady ? (index.h("button", { class: "snap-btn", type: "button", title: "Take photo", onClick: this.snap })) : null)) : !cur ? (index.h("div", null, "No attachment")) : type === 'video' ? (index.h("video", { class: "preview-media", src: this.srcOf(cur), controls: true, preload: "metadata" })) : type === 'audio' ? (index.h("div", { class: "audio-stage" }, index.h("p", { class: "audio-title" }, fileTitle), index.h("audio", { src: this.srcOf(cur), controls: true, preload: "metadata" }), index.h("p", { class: "file-preview-meta" }, this.formatSize((_b = (_a = cur === null || cur === void 0 ? void 0 : cur.file) === null || _a === void 0 ? void 0 : _a.size) !== null && _b !== void 0 ? _b : cur === null || cur === void 0 ? void 0 : cur.size)))) : type === 'image' || (!type && !fileMode) ? (index.h("img", { src: this.srcOf(cur), alt: fileTitle })) : this.isPdf(cur) && this.srcOf(cur) ? (index.h("div", { class: "pdf-stage" }, index.h("iframe", { class: "pdf-frame", src: `${this.srcOf(cur)}#toolbar=1&navpanes=0`, title: fileTitle }))) : fileMode ? (index.h("div", { class: "file-preview" }, index.h("div", { class: "file-preview-icon-wrap" }, index.h("img", { src: this.fileIconSrc(cur), alt: "" })), index.h("h3", { class: "file-preview-title" }, fileTitle), index.h("p", { class: "file-preview-meta" }, [this.formatSize((_d = (_c = cur === null || cur === void 0 ? void 0 : cur.file) === null || _c === void 0 ? void 0 : _c.size) !== null && _d !== void 0 ? _d : cur === null || cur === void 0 ? void 0 : cur.size), this.fileKind(cur)].filter(Boolean).join(' · ')), index.h("div", { class: "file-preview-actions" }, this.srcOf(cur) ? (index.h("button", { type: "button", onClick: () => this.openInNewTab(this.srcOf(cur)) }, "Open")) : null, this.srcOf(cur) ? (index.h("a", { class: "secondary", href: this.srcOf(cur), download: fileTitle }, "Download")) : null))) : (index.h("div", { class: "file-chip" }, ((_e = cur === null || cur === void 0 ? void 0 : cur.file) === null || _e === void 0 ? void 0 : _e.name) || (cur === null || cur === void 0 ? void 0 : cur.name) || type || 'File'))), !this.showCamera ? (index.h("div", { class: "footer" }, index.h("div", { class: "composer" }, this.showEmojiPicker ? (index.h("div", { class: "emoji-panel" }, index.h("emoji-picker", { class: "emoji-picker light", ref: this.bindEmojiPicker }))) : null, index.h("div", { class: "composer-pill" }, index.h("input", { type: "text", placeholder: this.inputPlaceholder || 'Type a message', value: this.inputValue || '', onInput: this.onCaption, ref: el => (this.captionInputRef = el) }), index.h("button", { class: "icon-btn smile-btn", type: "button", title: "Emoji", "aria-label": "Emoji", onClick: this.toggleEmoji }, index.h("img", { src: chatAssets.Smile, alt: "" }))), index.h("button", { class: "send-btn", type: "button", title: "Send", onClick: () => this.send() }, index.h("img", { src: chatAssets.Send, alt: "" }), list.length > 1 ? index.h("span", { class: "send-badge" }, list.length) : null)), index.h("div", { class: "action-row" }, index.h("div", { class: "thumbs" }, list.map((item, i) => {
4865
+ return (index.h("div", { key: 'e4dbf47c2492175a7c1b502741b3f42f123c704a', class: "preview-container" }, index.h("div", { key: 'aa47dfa5328eb329d88a907fb2cd24785310eaab', class: "topbar" }, fileMode && !this.showCamera ? (index.h(index.Fragment, null, index.h("button", { class: "icon-btn", type: "button", "aria-label": "Close", onClick: () => this.close() }, index.h("img", { class: "theme-icon", src: cancel.CancelIcon, alt: "" })), index.h("span", { class: "topbar-title centered" }, fileTitle), index.h("span", { class: "topbar-spacer" }))) : (index.h("button", { class: "icon-btn", type: "button", "aria-label": "Close", onClick: () => this.close() }, index.h("img", { class: "theme-icon", src: cancel.CancelIcon, alt: "" })))), index.h("div", { key: 'b0eadf608ac9f4107aa9d0581e64ae68ac512f24', class: "main" }, this.showCamera ? (index.h("div", { class: "camera-view" }, this.cameraError ? index.h("p", { class: "camera-error" }, this.cameraError) : null, !this.cameraReady && !this.cameraError ? index.h("p", { class: "camera-loading" }, "Opening camera\u2026") : null, index.h("video", { class: this.cameraReady ? 'is-ready' : '', ref: this.bindVideo, autoplay: true, playsinline: true, muted: true, style: { transform: this.facingMode === 'user' ? 'scaleX(-1)' : 'none' } }), this.cameraReady ? (index.h("button", { class: "snap-btn", type: "button", title: "Take photo", onClick: this.snap })) : null)) : !cur ? (index.h("div", null, "No attachment")) : type === 'video' ? (index.h("video", { class: "preview-media", src: this.srcOf(cur), controls: true, preload: "metadata" })) : type === 'audio' ? (index.h("div", { class: "audio-stage" }, index.h("p", { class: "audio-title" }, fileTitle), index.h("audio", { src: this.srcOf(cur), controls: true, preload: "metadata" }), index.h("p", { class: "file-preview-meta" }, this.formatSize((_b = (_a = cur === null || cur === void 0 ? void 0 : cur.file) === null || _a === void 0 ? void 0 : _a.size) !== null && _b !== void 0 ? _b : cur === null || cur === void 0 ? void 0 : cur.size)))) : type === 'image' || (!type && !fileMode) ? (index.h("img", { src: this.srcOf(cur), alt: fileTitle })) : this.isPdf(cur) && this.srcOf(cur) ? (index.h("div", { class: "pdf-stage" }, index.h("iframe", { class: "pdf-frame", src: `${this.srcOf(cur)}#toolbar=1&navpanes=0`, title: fileTitle }))) : fileMode ? (index.h("div", { class: "file-preview" }, index.h("div", { class: "file-preview-icon-wrap" }, index.h("img", { src: this.fileIconSrc(cur), alt: "" })), index.h("h3", { class: "file-preview-title" }, fileTitle), index.h("p", { class: "file-preview-meta" }, [this.formatSize((_d = (_c = cur === null || cur === void 0 ? void 0 : cur.file) === null || _c === void 0 ? void 0 : _c.size) !== null && _d !== void 0 ? _d : cur === null || cur === void 0 ? void 0 : cur.size), this.fileKind(cur)].filter(Boolean).join(' · ')), index.h("div", { class: "file-preview-actions" }, this.srcOf(cur) ? (index.h("button", { type: "button", onClick: () => this.openInNewTab(this.srcOf(cur)) }, "Open")) : null, this.srcOf(cur) ? (index.h("a", { class: "secondary", href: this.srcOf(cur), download: fileTitle }, "Download")) : null))) : (index.h("div", { class: "file-chip" }, ((_e = cur === null || cur === void 0 ? void 0 : cur.file) === null || _e === void 0 ? void 0 : _e.name) || (cur === null || cur === void 0 ? void 0 : cur.name) || type || 'File'))), !this.showCamera ? (index.h("div", { class: "footer" }, index.h("div", { class: "composer" }, this.showEmojiPicker ? (index.h("div", { class: "emoji-panel" }, index.h("emoji-picker", { class: "emoji-picker light", ref: this.bindEmojiPicker }))) : null, index.h("div", { class: "composer-pill" }, index.h("input", { type: "text", placeholder: this.inputPlaceholder || 'Type a message', value: this.inputValue || '', onInput: this.onCaption, ref: el => (this.captionInputRef = el) }), index.h("button", { class: "icon-btn smile-btn", type: "button", title: "Emoji", "aria-label": "Emoji", onClick: this.toggleEmoji }, index.h("img", { src: chatAssets.Smile, alt: "" }))), index.h("button", { class: "send-btn", type: "button", title: "Send", onClick: () => this.send() }, index.h("img", { src: chatAssets.Send, alt: "" }), list.length > 1 ? index.h("span", { class: "send-badge" }, list.length) : null)), index.h("div", { class: "action-row" }, index.h("div", { class: "thumbs" }, list.map((item, i) => {
4770
4866
  const t = this.typeOf(item, i);
4771
4867
  const isFile = this.isFilePreview(t);
4772
4868
  const pdf = this.isPdf(item);
@@ -4835,7 +4931,7 @@ const ReplyBlock = class {
4835
4931
  return this.messageBody;
4836
4932
  }
4837
4933
  render() {
4838
- return (index.h("div", { key: '7ceca8ac1451f700ece337fd47fd43dc2c52cb2c', class: "reply-block-container" }, index.h("div", { key: '8919f9c053ee292bf9a60c74365f451a1874a04d', class: "reply-main" }, index.h("div", { key: '364d8d5184a0de3178e93254c12bd7a15407068b', class: "accent" }), index.h("div", { key: 'c08d24f84264e357ac8fd091217814f6a91a0f04', class: "reply-body" }, index.h("div", { key: '9e811c67907ff12da441be7ec602c2e801412c86', class: "sender" }, this.senderName), index.h("div", { key: '0a9181d92d80acd5c9835026ec8843950d5cf859', class: "message-body-container" }, this.bodyLabel()))), index.h("button", { key: '6ca2d8d3a9b20c54dc0842e1d318c8e8d65fa673', type: "button", class: "close-btn", "aria-label": "Cancel reply", title: "Cancel reply", onClick: () => { var _a; return (_a = this.onIconClick) === null || _a === void 0 ? void 0 : _a.call(this); } }, index.h("img", { key: '1459953927db87ab8c6629abefbcdb1e41cf0a49', class: "theme-icon", src: chatAssets.CloseButton, alt: "" }))));
4934
+ return (index.h("div", { key: '4a67c3ddbbdd334f69be375acdec82ad654378b7', class: "reply-block-container" }, index.h("div", { key: 'fdf6a1c768d57e37fa9825ad8890ac2708eeca4a', class: "reply-main" }, index.h("div", { key: '2c4cdb6961182bac974ed1d1bc4274ece697caaa', class: "accent" }), index.h("div", { key: '5de9fd10baa48e611cf61d755ebe756a1b8ea9ef', class: "reply-body" }, index.h("div", { key: 'd0b1c362ad10a86d3dd33d01f4380041b4fad776', class: "sender" }, this.senderName), index.h("div", { key: '232c1757e27f21685c44a36713f64d236749dc1a', class: "message-body-container" }, this.bodyLabel()))), index.h("button", { key: '87ca553ed902defb6ecaa7989354b84fca348c5b', type: "button", class: "close-btn", "aria-label": "Cancel reply", title: "Cancel reply", onClick: () => { var _a; return (_a = this.onIconClick) === null || _a === void 0 ? void 0 : _a.call(this); } }, index.h("img", { key: '545aa0ea40ea13491f9dfaa81faae8a45f03dff6', class: "theme-icon", src: chatAssets.CloseButton, alt: "" }))));
4839
4935
  }
4840
4936
  };
4841
4937
  ReplyBlock.style = ":host {\n display: block;\n width: var(--w-full);\n font-family: var(--font-primary);\n margin-bottom: var(--gap-6);\n }\n .reply-block-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--gap-10);\n background: var(--bg-primary);\n border: 1px solid var(--border);\n border-radius: var(--rounded-12);\n box-shadow: 0 1px 2px var(--overlay);\n padding: var(--space-8) var(--space-12);\n box-sizing: border-box;\n }\n .reply-main {\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n min-width: 0;\n flex: 1;\n }\n .accent {\n width: var(--strip);\n height: var(--control);\n border-radius: var(--rounded-full);\n background: var(--brand);\n flex-shrink: 0;\n }\n .reply-body {\n display: flex;\n flex-direction: column;\n min-width: 0;\n gap: var(--gap-2);\n }\n .sender {\n font-size: var(--text-12);\n font-weight: var(--fw-600);\n color: var(--brand);\n line-height: 1.2;\n }\n .message-body-container {\n font-size: var(--text-12);\n color: var(--text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: 1.3;\n }\n .close-btn {\n cursor: pointer;\n border: none;\n background: transparent;\n padding: var(--gap-4);\n border-radius: var(--rounded-full);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n color: var(--text-tertiary);\n }\n .close-btn:hover {\n background: var(--hover-overlay);\n color: var(--text-primary);\n }\n .close-btn img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n object-fit: contain;\n opacity: 0.7;\n }\n .theme-icon { filter: var(--svg-icon-filter); }";
@@ -5647,7 +5743,7 @@ const ChatFooter = class {
5647
5743
  const webChat = index$1.findWebChatHost(this.el);
5648
5744
  const hasCustomReply = (webChat ? index$1.hasNamedSlot(webChat, 'reply-preview') : false) || index$1.hasNamedSlot(this.el, 'reply-preview');
5649
5745
  const showAttachment = this.attachmentDetails || this.showCamera;
5650
- return (index.h(index.Host, { key: '6c328d3d5562019950250196d7e4593eae013505', class: { 'attachment-open': !!showAttachment } }, index.h("div", { key: 'eec2aa6aa2a8bd5f671df68c5cbef98874bcdf13', class: "chat-footer-container" }, showAttachment ? (index.h("slot", { name: "attachment-preview" }, index.h("attachment-preview", { showCamera: this.showCamera, onClose: this.handleClearAttachment, width: "150px", height: "150px", bgColor: "var(--bg-primary-light)", padding: "3px", margin: "10px 0 0 0", contentType: contentType, content: this.mediaPreviews, onSend: this.handleSendMessage, "onfile-uploaded": this.handleFileUpload, "onattachment-removed": this.handleRemoveAttachment, "oncamera-retake": this.handleCameraRetake, key: this.inputKey, inputValue: this.messageBody, "oninput-change": this.handleInputChange, backgroundColor: "var(--bg-primary-color)", containerBoxShadow: "none", inputFontColor: "var(--text-primary-color)", inputBorderRadius: "10px", conversationDetails: this.conversationDetails, userMetaData: this.userMetaData }))) : (index.h(index.Fragment, null, hasCustomReply ? index.h("slot", { name: "reply-preview" }) : null, index.h("slot", { name: "composer-input" }, !hasCustomReply && this.replyMessage ? (index.h("reply-block", { messageBody: (_a = this.replyMessage) === null || _a === void 0 ? void 0 : _a.body, messageInfo: this.replyMessage, senderName: ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) === ((_d = (_c = this.replyMessage) === null || _c === void 0 ? void 0 : _c.senderInfo) === null || _d === void 0 ? void 0 : _d.userId)
5746
+ return (index.h(index.Host, { key: '4aecc1f90f540e9082f8abbaf4faadbbcd549fd4', class: { 'attachment-open': !!showAttachment } }, index.h("div", { key: 'f11f01df71447e564785543322ad9cefffb2df19', class: "chat-footer-container" }, showAttachment ? (index.h("slot", { name: "attachment-preview" }, index.h("attachment-preview", { showCamera: this.showCamera, onClose: this.handleClearAttachment, width: "150px", height: "150px", bgColor: "var(--bg-primary-light)", padding: "3px", margin: "10px 0 0 0", contentType: contentType, content: this.mediaPreviews, onSend: this.handleSendMessage, "onfile-uploaded": this.handleFileUpload, "onattachment-removed": this.handleRemoveAttachment, "oncamera-retake": this.handleCameraRetake, key: this.inputKey, inputValue: this.messageBody, "oninput-change": this.handleInputChange, backgroundColor: "var(--bg-primary-color)", containerBoxShadow: "none", inputFontColor: "var(--text-primary-color)", inputBorderRadius: "10px", conversationDetails: this.conversationDetails, userMetaData: this.userMetaData }))) : (index.h(index.Fragment, null, hasCustomReply ? index.h("slot", { name: "reply-preview" }) : null, index.h("slot", { name: "composer-input" }, !hasCustomReply && this.replyMessage ? (index.h("reply-block", { messageBody: (_a = this.replyMessage) === null || _a === void 0 ? void 0 : _a.body, messageInfo: this.replyMessage, senderName: ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) === ((_d = (_c = this.replyMessage) === null || _c === void 0 ? void 0 : _c.senderInfo) === null || _d === void 0 ? void 0 : _d.userId)
5651
5747
  ? 'You'
5652
5748
  : (_f = (_e = this.replyMessage) === null || _e === void 0 ? void 0 : _e.senderInfo) === null || _f === void 0 ? void 0 : _f.userName, onIconClick: this.handleremoveReplyMessage })) : null, index.h("div", { class: "composer-wrap", key: this.inputKey, ref: el => (this.composerWrapRef = el) }, this.showEmojiPicker ? (index.h("div", { class: "emoji-panel", style: this.emojiPanelStyle }, index.h("div", { class: "emoji-panel-header" }, index.h("span", null, "Emoji"), index.h("button", { class: "emoji-panel-close", type: "button", "aria-label": "Close", onClick: this.handleEmojiToggle }, "\u00D7")), index.h("emoji-picker", { class: "emoji-picker light", ref: this.bindEmojiPicker }))) : null, index.h("div", { class: { composer: true, recording: this.isRecording } }, this.isRecording ? (index.h("div", { class: "rec-body" }, index.h("div", { class: "rec-left" }, index.h("button", { class: "rec-icon-btn danger", type: "button", title: "Delete recording", "aria-label": "Delete recording", onClick: this.handleRecDelete }, index.h("img", { class: "theme-icon", src: chatAssets.Delete, alt: "" })), index.h("div", { class: "rec-timer-wrap" }, index.h("span", { class: { 'rec-dot': true, live: !this.isPaused } }), index.h("span", { class: "rec-timer" }, this.formatRecTime(this.recordingSeconds)))), index.h("div", { class: "rec-wave" }, index.h("audio-bubble", { liveRecord: true, audioProgressColor: "#2563eb", audioWaveColor: "#2563eb", ref: el => (this.recBubble = el), onRecordingProgress: this.onRecordingProgress, onRecordingError: this.onRecordingError })), index.h("button", { class: { 'rec-icon-btn': true, 'rec-toggle': true, pause: !this.isPaused }, type: "button", title: this.isPaused ? 'Resume recording' : 'Pause recording', "aria-label": this.isPaused ? 'Resume recording' : 'Pause recording', onClick: this.handleRecPauseToggle }, index.h("img", { class: "theme-icon", src: this.isPaused ? PlayIcon : PauseIcon, alt: "" })), index.h("button", { class: "rec-send", type: "button", title: "Send voice note", "aria-label": "Send voice note", onClick: this.handleRecSend }, index.h("img", { src: chatAssets.Send, alt: "" })))) : (index.h(index.Fragment, null, index.h("div", { class: "attach-wrap" }, index.h("button", { class: "icon-btn", type: "button", title: "Attach file", "aria-label": "Attach", onClick: this.handleAttachClick }, index.h("img", { src: chatAssets.Attachment, alt: "" })), this.showAttachMenu ? (index.h("div", { class: "attach-menu", style: this.attachMenuStyle }, index.h("button", { class: "attach-opt", type: "button", onClick: this.pickDocument }, index.h("span", { class: "attach-opt-icon attach-opt-icon--doc" }, index.h("img", { src: DocumentsIcon, alt: "" })), index.h("span", null, "Document")), index.h("button", { class: "attach-opt", type: "button", onClick: this.pickPhotos }, index.h("span", { class: "attach-opt-icon attach-opt-icon--photos" }, index.h("img", { class: "theme-icon", src: PhotosIcon, alt: "" })), index.h("span", null, "Photos & videos")), index.h("button", { class: "attach-opt", type: "button", onClick: this.pickCamera }, index.h("span", { class: "attach-opt-icon attach-opt-icon--camera" }, index.h("img", { class: "theme-icon", src: CameraIcon, alt: "" })), index.h("span", null, "Camera")))) : null), index.h("button", { class: "icon-btn", type: "button", title: "Emojis", "aria-label": "Emojis", onClick: this.handleEmojiToggle }, index.h("img", { src: chatAssets.Smile, alt: "" })), index.h("input", { class: "file-input", type: "file", multiple: true, accept: ".jpg,.jpeg,.png,.gif,.webp,.bmp,.heic,.mp4,.mov,.webm,.mkv,.mp3,.wav,.m4a,.aac,.ogg", ref: el => (this.mediaInputRef = el), onChange: this.handleNativeFileChange }), index.h("input", { class: "file-input", type: "file", multiple: true, accept: ".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.csv,.rtf,application/*", ref: el => (this.docInputRef = el), onChange: this.handleNativeFileChange }), index.h("textarea", { class: "composer-input", rows: 1, placeholder: "Type a message", value: this.messageBody, ref: el => (this.inputRef = el), onInput: this.handleComposerInput, onKeyDown: this.handleComposerKeyDown }), this.messageBody.trim() ? (index.h("button", { class: "icon-btn", type: "button", title: "Send", "aria-label": "Send", onClick: this.handleSendMessage }, index.h("img", { src: chatAssets.Send, alt: "" }))) : (index.h("button", { class: "icon-btn", type: "button", title: "Voice note", "aria-label": "Voice note", onClick: this.handleMicClick }, index.h("img", { src: chatAssets.Microphone, alt: "" })))))))))))));
5653
5749
  }
@@ -5742,7 +5838,7 @@ const BlockChatList = class {
5742
5838
  }
5743
5839
  render() {
5744
5840
  var _a, _b;
5745
- return (index.h("div", { key: '4c626511914a2ab5d53e8fc88a7aa7d5b8160a58', class: "blocked-users-container" }, index.h("div", { key: '148b6bee8e9251266b838154e65ca61d62bc657b', class: "header" }, index.h("button", { key: 'c03a23a7e8be6b78cf464c4df6b315d4e0eac67d', class: "back-button", type: "button", onClick: () => { var _a; return (_a = this.goBack) === null || _a === void 0 ? void 0 : _a.call(this); }, "aria-label": "Back" }, index.h("img", { key: '0564987dd1a74917634aa00c865ffa336d25f001', class: "theme-icon", src: chatAssets.Left_Arrow, alt: "" })), index.h("h2", { key: 'd6529c0f91eb900dcaa47beea7d457a709d0cf44', style: { margin: '0', fontSize: '18px' } }, "Blocked Users")), index.h("div", { key: 'b434015291825366fd35f133321f7f5d5210bdfa', class: "search-container" }, index.h("input", { key: '783c5d7be5b9ad5ed92921125ac8a1a89aac1cb0', class: "search-input", type: "text", placeholder: "Search users...", value: this.searchTerm, onInput: (e) => {
5841
+ return (index.h("div", { key: '012322ba96f6b096fe7857cae36c30a322620827', class: "blocked-users-container" }, index.h("div", { key: '7fc77bfcb108603e7eed5e0f25aef3dc58127ac7', class: "header" }, index.h("button", { key: '9697c52f5e372884c4270c0c258a3ba21dfef0cf', class: "back-button", type: "button", onClick: () => { var _a; return (_a = this.goBack) === null || _a === void 0 ? void 0 : _a.call(this); }, "aria-label": "Back" }, index.h("img", { key: '0c6b0dc3f69d7c62a0d3ea132d08d4c8d93b34e4', class: "theme-icon", src: chatAssets.Left_Arrow, alt: "" })), index.h("h2", { key: '3322096a3259618ab665c791a444dcaf318aa991', style: { margin: '0', fontSize: '18px' } }, "Blocked Users")), index.h("div", { key: '04e0436cf07effc38946264793414d50bc2f1667', class: "search-container" }, index.h("input", { key: 'bbb909a7b2ba1b756d7d5770657184539c89785c', class: "search-input", type: "text", placeholder: "Search users...", value: this.searchTerm, onInput: (e) => {
5746
5842
  this.searchTerm = e.target.value;
5747
5843
  this.debouncedSearch(this.searchTerm);
5748
5844
  } })), this.isLoading ? (index.h("div", { class: "loading-spinner" }, index.h("spinner-loader", { height: "30px", width: "30px" }))) : ((_a = this.blockUsers) === null || _a === void 0 ? void 0 : _a.length) === 0 ? (index.h("div", { class: "empty-state" }, this.searchTerm
@@ -5972,7 +6068,7 @@ const ProfileSidebar = class {
5972
6068
  }
5973
6069
  render() {
5974
6070
  var _a, _b;
5975
- return (index.h("div", { key: 'df3b343bd5f6b976569c0ac65631ca8d4d364bd0', class: "profile-tab" }, index.h("div", { key: '525624ff54e570445ef6d700e75bb24ae0510c87', class: "top-buttons" }, index.h("div", { key: 'b9107128f577fc34adce794f5eb464be663b9642', class: `chat-button${this.activeTab === 'Chat' ? ' active' : ''}`, title: "Chat", onClick: () => this.call(this.openChat) }, index.h("img", { key: 'e6c88bd839a64c09348c88aad9fc8ab1cba0c1d7', src: chatAssets.Message, class: "theme-icon", alt: "chat" }), this.unreadConversationsCount > 0 ? (index.h("div", { class: "unread-count" }, this.unreadConversationsCount)) : null), index.h("div", { key: '8dd63381674b3d474bcada29a5710454a802d7a4', class: `chat-button${this.activeTab === 'GroupCast' ? ' active' : ''}`, title: "GroupCast", onClick: () => this.call(this.openGroupCast) }, index.h("img", { key: '881f5c6fec9a60767fa90f23157e7d1c600fb3f4', src: chatAssets.Group_cast, class: "theme-icon", alt: "broadcast" }))), index.h("div", { key: 'd5aedf7d656587ac1c80494d4490ba0be054d8ce', class: "bottom-buttons" }, index.h("div", { key: '3fe4f827c505010bee138b01e4fe7073e0ff431e', class: `avatar-wrap${this.activeTab === 'Profile' ? ' active' : ''}`, title: "Profile", onClick: () => this.call(this.openProfile) }, index.h("profile-avatar", { key: 'd9615a1d76b5c7ee4db26acb7446e4fd12f6d22a', src: ((_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userProfileImageUrl) || '', name: ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userName) || '', size: "var(--avatar-sm)" })))));
6071
+ return (index.h("div", { key: '55246be4cb99d67f1a4d3210bed4ef1bfae7fe84', class: "profile-tab" }, index.h("div", { key: '22bd741640954f50a478f861ad11809cbd80e879', class: "top-buttons" }, index.h("div", { key: '81ab0727f845eb42370d4342168c343354505be8', class: `chat-button${this.activeTab === 'Chat' ? ' active' : ''}`, title: "Chat", onClick: () => this.call(this.openChat) }, index.h("img", { key: 'aabcb91dbc626c4e14e6f577560d0e8f8d05251a', src: chatAssets.Message, class: "theme-icon", alt: "chat" }), this.unreadConversationsCount > 0 ? (index.h("div", { class: "unread-count" }, this.unreadConversationsCount)) : null), index.h("div", { key: '0d2ce5f28848e3cf872a757695dcd16e1abdc446', class: `chat-button${this.activeTab === 'GroupCast' ? ' active' : ''}`, title: "GroupCast", onClick: () => this.call(this.openGroupCast) }, index.h("img", { key: 'eb6fb9a32070d6b20ad2466b0ee571c8a1a07e00', src: chatAssets.Group_cast, class: "theme-icon", alt: "broadcast" }))), index.h("div", { key: '96b301bc866b6b44570b9b2ac9b8b42b0c6c0da9', class: "bottom-buttons" }, index.h("div", { key: 'f480664f2413cb7e802e2c0df84dffdc4c981090', class: `avatar-wrap${this.activeTab === 'Profile' ? ' active' : ''}`, title: "Profile", onClick: () => this.call(this.openProfile) }, index.h("profile-avatar", { key: 'ae4e299d9399997d976f18a0e3c138db7b4f9f48', src: ((_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userProfileImageUrl) || '', name: ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userName) || '', size: "var(--avatar-sm)" })))));
5976
6072
  }
5977
6073
  };
5978
6074
  ProfileSidebar.style = ":host {\n display: flex;\n height: var(--h-full);\n flex-shrink: 0;\n background-color: var(--bg-tertiary);\n }\n .profile-tab {\n width: var(--rail-width);\n height: var(--h-full);\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n background-color: var(--bg-tertiary);\n border-right: 1px solid var(--border);\n padding: var(--space-16);\n box-sizing: border-box;\n z-index: 20;\n }\n .top-buttons,\n .bottom-buttons {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: var(--w-full);\n gap: var(--gap-16);\n }\n .top-buttons {\n margin-top: var(--gap-4);\n }\n .bottom-buttons {\n gap: var(--gap-12);\n }\n .chat-button {\n width: var(--control);\n height: var(--control);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--rounded-full);\n cursor: pointer;\n position: relative;\n color: var(--icon);\n transition: background-color 0.15s, color 0.15s, transform 0.1s;\n border: none;\n background: transparent;\n padding: 0;\n }\n .chat-button:hover {\n background-color: var(--hover-overlay);\n color: var(--text-primary);\n }\n .chat-button:active {\n transform: scale(0.95);\n }\n .chat-button.active {\n background-color: var(--brand-soft);\n color: var(--brand);\n }\n .chat-button img {\n width: var(--icon-md);\n height: var(--icon-md);\n display: block;\n }\n .theme-icon { filter: var(--svg-icon-filter); }\n .unread-count {\n position: absolute;\n top: calc(var(--gap-4) * -1);\n right: calc(var(--gap-4) * -1);\n min-width: var(--badge);\n height: var(--badge);\n padding: var(--gap-2) var(--gap-6);\n border-radius: var(--rounded-full);\n background: var(--brand);\n color: var(--text-on-brand);\n font-size: var(--text-10);\n font-weight: 700;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n line-height: 1;\n }\n .avatar-wrap {\n width: var(--avatar-sm);\n height: var(--avatar-sm);\n border-radius: var(--rounded-full);\n overflow: hidden;\n cursor: pointer;\n position: relative;\n box-sizing: border-box;\n box-shadow: 0 0 0 2px transparent;\n transition: box-shadow 0.15s;\n }\n .avatar-wrap:hover {\n box-shadow: 0 0 0 2px var(--brand-soft);\n }\n .avatar-wrap.active {\n box-shadow: 0 0 0 2px var(--brand);\n }\n .avatar {\n width: var(--w-full);\n height: var(--h-full);\n object-fit: cover;\n display: block;\n }\n @media (max-width: 768px) {\n .profile-tab {\n display: none;\n }\n }";
@@ -6007,10 +6103,15 @@ const ContactInfo = class {
6007
6103
  });
6008
6104
  };
6009
6105
  this.confirmExitGroup = () => {
6010
- drawer.drawerDialogService.openDialog('confirm-dialog', {
6011
- title: 'Exit group',
6012
- description: 'Are you sure you want to exit this group?',
6013
- handleConfirm: () => this.emitAction('exit-group'),
6106
+ var _a;
6107
+ const members = this.isGroupcast
6108
+ ? this.groupcastMembers || []
6109
+ : this.groupMembers || [];
6110
+ promptExitGroup({
6111
+ selfId: String(((_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userId) || ''),
6112
+ members,
6113
+ conversationId: String(this.conversationId || ''),
6114
+ onLeave: () => this.emitAction('exit-group'),
6014
6115
  });
6015
6116
  };
6016
6117
  this.openAddMember = () => {
@@ -6363,7 +6464,7 @@ const ProfileInfo = class {
6363
6464
  }
6364
6465
  render() {
6365
6466
  const avatar = this.contactImage || helpers.generateProfileImageByInitials(this.contactName || '?', 96, 96);
6366
- return (index.h("div", { key: 'f97661429e538d9de128a1be247f06436129ac0c', class: "panel", style: {
6467
+ return (index.h("div", { key: 'f5f2d99774f205ee64e022f0099495df8bc0d6e2', class: "panel", style: {
6367
6468
  padding: this.padding,
6368
6469
  margin: this.margin,
6369
6470
  width: this.width,
@@ -6372,21 +6473,11 @@ const ProfileInfo = class {
6372
6473
  backgroundColor: this.backgroundColor,
6373
6474
  color: this.textColor,
6374
6475
  fontFamily: this.fontFamily,
6375
- } }, index.h("div", { key: '4f3ab60f184fc8e96e8adae62db07d02e31e013e', class: "header" }, index.h("strong", { key: '7352fed74fa35425cbeef494770aec45603dc2b7' }, "Profile"), index.h("button", { key: 'a69b1df398b8327bf1799365dd918f35cb3bd4e6', class: "close-btn", type: "button", onClick: () => this.close() }, "\u2715")), index.h("div", { key: 'd4c6fc88040d8b3bd7e691995051f48307946bbd', class: "hero" }, index.h("img", { key: 'e9c74b4ad87054e05b0945c203b157de2d172100', class: "avatar", src: avatar, alt: "", onClick: () => typeof this.openOwnProfile === 'function' && this.openOwnProfile() }), index.h("div", { key: '4b064ca2ca91dd71cd204aa252e83c4e5c63562a', class: "name" }, this.isEditingName ? this.editedName || this.contactName : this.contactName || 'Unknown'), this.contactEmail ? index.h("div", { class: "email" }, this.contactEmail) : null), index.h("div", { key: '1a76c628317cc85ed5a19f4be3061899735453bc', class: "section" }, index.h("h4", { key: '699ba7049a278069cf73afeeeaac4b090577cf29' }, "Media"), index.h("div", { key: '978974fa2c9c4a79afa76453057fa62d04d863fe' }, (this.allAttachments || []).length, " items")), index.h("div", { key: 'fd15937edf9280392577077fa18ca2054b1b18f6', class: "actions" }, typeof this.handleChatSelect === 'function' ? (index.h("button", { type: "button", onClick: () => this.handleChatSelect() }, "Message")) : null)));
6476
+ } }, index.h("div", { key: 'abe6b2979c84a16ac7fdb80fa37c743ca80b9b02', class: "header" }, index.h("strong", { key: '73779826bbb27ccfa126aa1af18b7921dccdc474' }, "Profile"), index.h("button", { key: '0e27a1393f72079f9c2b35f4f77c49f09218b7b5', class: "close-btn", type: "button", onClick: () => this.close() }, "\u2715")), index.h("div", { key: 'bc3004b96617cc989c5c1d1f39a660829ceaf37b', class: "hero" }, index.h("img", { key: '0b01732603938aff0f9ec5911032e90b20e9e440', class: "avatar", src: avatar, alt: "", onClick: () => typeof this.openOwnProfile === 'function' && this.openOwnProfile() }), index.h("div", { key: '0fb3419e0102105777bfe63b0090cf226e97e804', class: "name" }, this.isEditingName ? this.editedName || this.contactName : this.contactName || 'Unknown'), this.contactEmail ? index.h("div", { class: "email" }, this.contactEmail) : null), index.h("div", { key: 'f140d43fefdc6f1ac258b2223a9ace8444e1e220', class: "section" }, index.h("h4", { key: 'b31611ea9f971e42337e5bc4a80de5dc4368f051' }, "Media"), index.h("div", { key: '7f88774bd7e612427305b444dda71d64a88c4ce4' }, (this.allAttachments || []).length, " items")), index.h("div", { key: '198d3d0193c90d864315b84b0250e6e457eacfae', class: "actions" }, typeof this.handleChatSelect === 'function' ? (index.h("button", { type: "button", onClick: () => this.handleChatSelect() }, "Message")) : null)));
6376
6477
  }
6377
6478
  };
6378
6479
  ProfileInfo.style = ":host { display: block; height: 100%; }\n .panel {\n display: flex; flex-direction: column; height: 100%; box-sizing: border-box;\n background: var(--bg-primary); color: var(--text-primary); padding: 12px; gap: 12px;\n }\n .header { display: flex; align-items: center; gap: 10px; }\n .close-btn { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 20px; color: inherit; }\n .hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0; }\n .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--bg-tertiary); }\n .name { font-size: 20px; font-weight: 600; }\n .email { font-size: 13px; opacity: 0.7; }\n .section { border-top: 1px solid var(--bg-secondary); padding-top: 12px; }\n .section h4 { margin: 0 0 8px; font-size: 13px; opacity: 0.75; text-transform: uppercase; }\n .actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }\n .actions button {\n padding: 10px 12px; border-radius: 8px; border: 1px solid var(--bg-secondary);\n background: var(--bg-secondary); color: inherit; cursor: pointer; text-align: left;\n }";
6379
6480
 
6380
- const makeAdmin = async (conversationId, userId) => {
6381
- const response = await index_m.M.getInstance().Conversation.putConversationAdmin({conversationId: conversationId, memberId: userId});
6382
- return response;
6383
- };
6384
-
6385
- const removeAdmin = async (conversationId, userId) => {
6386
- const response = await index_m.M.getInstance().Conversation.deleteConversationAdmin({conversationId: conversationId, memberId: userId});
6387
- return response;
6388
- };
6389
-
6390
6481
  const MessageSearch = class {
6391
6482
  constructor(hostRef) {
6392
6483
  index.registerInstance(this, hostRef);
@@ -6443,7 +6534,7 @@ const MessageSearch = class {
6443
6534
  }
6444
6535
  render() {
6445
6536
  const results = this.searchedMessageDetails || [];
6446
- return (index.h("div", { key: '922d6f23dadf1f69424414fb8fa0ec5d96899525', class: "panel", onClick: e => e.stopPropagation() }, index.h("div", { key: '59930c2dfa4d47855682c38b4572c35d647c5b0c', class: "header" }, index.h("button", { key: '7abc1afcfd6b58c466139ab7b9d4f95300b6a995', class: "icon-btn", type: "button", "aria-label": "Close", onClick: () => this.closeSearch() }, index.h("img", { key: '6cc023aac9c0b18e6f0393c447813ff51afab116', class: "theme-icon", src: cancel.CancelIcon, alt: "" })), index.h("h3", { key: '432bdbff1f7f71e5bb6efcb8c6eac33adda22a6e', class: "title" }, "Search messages")), index.h("div", { key: '9423ef4ac9186759e971b6e9a373620df2be61ec', class: "search-wrap" }, index.h("div", { key: 'b46f4062b63cca179f15598996890480d71b942c', class: "search-bar" }, index.h("img", { key: '4523cd7348c3cf173a422938f1bfe629f539345d', class: "theme-icon search-icon", src: chatAssets.Search, alt: "" }), index.h("input", { key: 'c8b232d1f58a044b0053c3f84d6421260d0a9dbe', type: "text", placeholder: "Search", value: this.searchValue, onInput: this.onInput, autofocus: true }), this.searchValue ? (index.h("button", { class: "clear-btn", type: "button", "aria-label": "Clear", onClick: this.clearInput }, index.h("img", { class: "theme-icon", src: cancel.CancelIcon, alt: "" }))) : null)), index.h("div", { key: '8453ef4f96bfdb7eb608680521837fe14ddc5e5f', class: "results" }, this.isLoadingMessage ? (index.h("div", { class: "empty" }, index.h("spinner-loader", { height: "15px", width: "15px" }))) : results.length === 0 ? (index.h("div", { class: "empty" }, index.h("p", null, this.searchValue ? 'No results found' : 'Search for messages'))) : (results.map(message => (index.h("div", { class: "row", onClick: () => this.handleResultClick(message.messageId) }, index.h("span", { class: "date" }, this.formatDate(message.sentAt)), index.h("span", { class: "body" }, this.highlight(message.body)))))))));
6537
+ return (index.h("div", { key: '991a3aab62e0de33ad78a6fc12f2877b9dcb119b', class: "panel", onClick: e => e.stopPropagation() }, index.h("div", { key: 'c33084e8cede5b2722b7e8abc2096ea11e1da7d9', class: "header" }, index.h("button", { key: '5d37359264c899a926eba4f4085a2e7036c5911f', class: "icon-btn", type: "button", "aria-label": "Close", onClick: () => this.closeSearch() }, index.h("img", { key: 'a3663ac6fe3ec8219c5df8cd9130e2acdf6ed0c9', class: "theme-icon", src: cancel.CancelIcon, alt: "" })), index.h("h3", { key: 'a9cbdc0cfa4814189852d8b57bcd4bcc20db41dd', class: "title" }, "Search messages")), index.h("div", { key: '9a940abd01df7b290747cbb0aa1e30ac02b34fba', class: "search-wrap" }, index.h("div", { key: 'c872e78b1c380faef04a373a7f692b7b02e7effe', class: "search-bar" }, index.h("img", { key: 'fcb9b448a8053ff49eaee65d644b034a7c8e60af', class: "theme-icon search-icon", src: chatAssets.Search, alt: "" }), index.h("input", { key: 'eab5cdb1a8e1ccfb063cb3e9f47e1e76073c1130', type: "text", placeholder: "Search", value: this.searchValue, onInput: this.onInput, autofocus: true }), this.searchValue ? (index.h("button", { class: "clear-btn", type: "button", "aria-label": "Clear", onClick: this.clearInput }, index.h("img", { class: "theme-icon", src: cancel.CancelIcon, alt: "" }))) : null)), index.h("div", { key: 'af8a7bd79ae5975ab876c8c19114a285dec80bcb', class: "results" }, this.isLoadingMessage ? (index.h("div", { class: "empty" }, index.h("spinner-loader", { height: "15px", width: "15px" }))) : results.length === 0 ? (index.h("div", { class: "empty" }, index.h("p", null, this.searchValue ? 'No results found' : 'Search for messages'))) : (results.map(message => (index.h("div", { class: "row", onClick: () => this.handleResultClick(message.messageId) }, index.h("span", { class: "date" }, this.formatDate(message.sentAt)), index.h("span", { class: "body" }, this.highlight(message.body)))))))));
6447
6538
  }
6448
6539
  };
6449
6540
  MessageSearch.style = ":host {\n display: block;\n height: 100%;\n font-family: var(--font-primary);\n color: var(--text-primary);\n }\n .panel {\n display: flex;\n flex-direction: column;\n height: 100%;\n box-sizing: border-box;\n background: var(--bg-primary);\n }\n .header {\n height: 4rem;\n padding: 0 var(--space-16);\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n border-bottom: 1px solid var(--border);\n flex-shrink: 0;\n box-sizing: border-box;\n }\n .icon-btn {\n width: var(--control);\n height: var(--control);\n border: none;\n border-radius: var(--rounded-full);\n background: transparent;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n color: var(--icon);\n flex-shrink: 0;\n }\n .icon-btn:hover { background: var(--hover-overlay); color: var(--text-primary); }\n .icon-btn img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n }\n .title {\n margin: 0;\n font-size: var(--text-16);\n font-weight: var(--fw-600);\n color: var(--text-primary);\n }\n .search-wrap {\n padding: var(--space-16) var(--space-16) var(--space-8);\n border-bottom: 1px solid var(--border-subtle);\n }\n .search-bar {\n position: relative;\n display: flex;\n align-items: center;\n }\n .search-icon {\n position: absolute;\n left: 0.75rem;\n width: 1.125rem;\n height: 1.125rem;\n opacity: 0.55;\n pointer-events: none;\n }\n .search-bar input {\n width: 100%;\n box-sizing: border-box;\n border: none;\n outline: none;\n border-radius: var(--rounded-8);\n background: var(--bg-input);\n color: var(--text-primary);\n font-size: var(--text-14);\n font-family: var(--font-primary);\n padding: var(--gap-8) 2.25rem var(--gap-8) 2.25rem;\n }\n .search-bar input::placeholder { color: var(--text-tertiary); }\n .search-bar input:focus {\n box-shadow: 0 0 0 2px var(--focus-ring);\n }\n .clear-btn {\n position: absolute;\n right: 0.5rem;\n width: 1.75rem;\n height: 1.75rem;\n border: none;\n border-radius: var(--rounded-full);\n background: transparent;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n color: var(--text-tertiary);\n }\n .clear-btn:hover { color: var(--text-secondary); }\n .clear-btn img { width: 0.875rem; height: 0.875rem; display: block; }\n .results {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n .empty {\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 2rem;\n text-align: center;\n box-sizing: border-box;\n }\n .empty p {\n margin: 0;\n max-width: 15rem;\n font-size: var(--text-12);\n color: var(--text-tertiary);\n line-height: 1.6;\n }\n .row {\n display: flex;\n flex-direction: column;\n gap: var(--gap-4);\n padding: var(--space-12) var(--space-16);\n border-bottom: 1px solid var(--border-subtle);\n cursor: pointer;\n }\n .row:hover { background: var(--hover-overlay); }\n .date {\n font-size: var(--text-12);\n color: var(--text-secondary);\n }\n .body {\n font-size: var(--text-14);\n color: var(--text-primary);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .hit {\n background-color: var(--brand, #2563eb);\n color: var(--text-on-brand, #ffffff);\n border-radius: var(--rounded-2);\n padding: 0 2px;\n }\n .theme-icon { filter: var(--svg-icon-filter); }";
@@ -6701,7 +6792,7 @@ const ChatLoadingPlaceholder = class {
6701
6792
  }
6702
6793
  render() {
6703
6794
  const pct = Math.max(0, Math.min(100, Number(this.progress) || 0));
6704
- return (index.h("div", { key: '50f638c7988d4275596f4c7fa4235dc607f14dd6', class: "box" }, index.h("div", { key: '8c673bf813b1ccb9f4afde346da7f3f51e30507f', class: "logo", innerHTML: IsometrikLogo.isometrikLogo }), index.h("div", { key: '4908d4b0847ccef9976421a93e3eeeb8b22ab6ff', class: "bar" }, index.h("div", { key: 'e647dc3c01d6dbbabfd29368f414b41be2384d8d', class: "fill", style: { width: `${pct}%` } })), index.h("div", { key: 'ce7cd9435d4b12c64cd43d202a9f65fef04c2612', class: "pct" }, pct, "%")));
6795
+ return (index.h("div", { key: '1d94ae77a3b84334f8baccfc56ce2626d49fbe5c', class: "box" }, index.h("div", { key: 'c5e6ee763f846855de73c4dfd3a11712ab67e179', class: "logo", innerHTML: IsometrikLogo.isometrikLogo }), index.h("div", { key: 'b0406f8e134260c4a6ca950d86628c4206a51e0e', class: "bar" }, index.h("div", { key: '3f1e832c8a3c18bcf627562b31a742f77f99f893', class: "fill", style: { width: `${pct}%` } })), index.h("div", { key: '01787478f77aa07380c661e54e7144a335252224', class: "pct" }, pct, "%")));
6705
6796
  }
6706
6797
  };
6707
6798
  ChatLoadingPlaceholder.style = ":host {\n display: flex;\n box-sizing: border-box;\n width: var(--w-full);\n min-height: var(--h-screen);\n height: var(--h-full);\n align-items: center;\n justify-content: center;\n background: var(--bg-secondary);\n color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .box {\n display: flex;\n flex-direction: column;\n gap: var(--gap-16);\n align-items: center;\n min-width: 220px;\n max-width: 320px;\n width: min(320px, 80vw);\n padding: calc(var(--space-16) + var(--space-8));\n }\n .logo {\n width: 180px;\n max-width: 70vw;\n }\n .logo svg {\n width: var(--w-full);\n height: var(--h-auto);\n display: block;\n }\n .bar {\n width: var(--w-full);\n height: var(--gap-6);\n border-radius: var(--rounded-full);\n background: var(--bg-primary);\n overflow: hidden;\n }\n .fill {\n height: var(--h-full);\n background: var(--brand);\n transition: width 0.2s ease;\n }\n .pct {\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n color: var(--text-secondary);\n text-align: center;\n }";
@@ -6792,7 +6883,7 @@ const MessageInfo = class {
6792
6883
  render() {
6793
6884
  const delivery = this.deliveryUserList || [];
6794
6885
  const read = this.readUserList || [];
6795
- return (index.h("div", { key: '15534a0fe80ad1217c5c2a019a4813e1608f37c8', class: "panel" }, index.h("div", { key: '8f08235eaebfbdba93e55057757df87fa89706d0', class: "header" }, index.h("button", { key: '91103e164515d053ab65b065ad9dc8db1cf5b039', class: "close-btn", type: "button", "aria-label": "Close", title: "Close", onClick: () => this.close() }, index.h("img", { key: '98012318009e835dc4222119006683dd14a81e48', class: "theme-icon", src: cancel.CancelIcon, alt: "" })), index.h("h2", { key: '1b3a94852dbddeef83f77a2dce3466f5920410f6' }, "Message info")), index.h("div", { key: '7e3c519f90230ecddeeb0924a7339d74db2f28e1', class: "body" }, index.h("div", { key: '42564e2ce9b2ff3a92c2d31f3b5bc0d335d41202', class: "preview-wrap" }, index.h("div", { key: '7b214c585a3f0dc755b0ff81784c0d23a6f56aae', class: "preview-bubble" }, index.h("p", { key: 'd9bf371af35246bb670f31b7b5152bc82ec62dd3', class: "preview-text" }, this.previewText()), index.h("div", { key: 'a3dcec58517c5a3c723ea344b841d7691db58ee5', class: "preview-meta" }, index.h("span", { key: '339ed86bbfa72631ffe524c0efc79e866b6cece0' }, this.bubbleTime())))), index.h("div", { key: 'ed5ed44d437196b2fcc40a93403b4c22b83b919e', class: "status-list" }, index.h("div", { key: '99be39d6f81967144b6ccb5447079cc482462537', class: "status-row" }, this.ticksIcon('read'), index.h("div", { key: '674639bcded02dfb98e01f15605168e4a589fe69', class: "status-content" }, index.h("div", { key: 'fae1044cea5ae180717e618e04e80fb7c3b6f566', class: "status-title" }, "Read"), index.h("p", { key: 'b9c30d7a41667bfa2e53d32b121c3f3c7bf932b6', class: "status-time" }, this.formatTime(this.messageReadTime)), read.map(u => (index.h("div", { class: "user-row" }, index.h("profile-avatar", { src: u.userProfileImageUrl || '', name: u.userName || '', size: "2rem" }), index.h("span", { class: "user-name" }, u.userName)))))), index.h("div", { key: 'faad423c5a626523aa8118d5bd5ff801390a22b5', class: "status-row" }, this.ticksIcon('delivered'), index.h("div", { key: '20cfad1d4981ece333bd294045f61d14ef25cdd7', class: "status-content" }, index.h("div", { key: '8b258a21f5697e2318f66efcebbf984573091b47', class: "status-title" }, "Delivered"), index.h("p", { key: '666b4c16bc9432d38dbb01369ecf6d23cef381ba', class: "status-time" }, this.formatTime(this.messageDeliveryTime)), delivery.map(u => (index.h("div", { class: "user-row" }, index.h("profile-avatar", { src: u.userProfileImageUrl || '', name: u.userName || '', size: "2rem" }), index.h("span", { class: "user-name" }, u.userName))))))))));
6886
+ return (index.h("div", { key: '8cbb260b458f09271cd6b1675b65d25b518a5b62', class: "panel" }, index.h("div", { key: '5a985b94d89e5a4197cb62e11cdf18f1bdc1871d', class: "header" }, index.h("button", { key: 'db8c9ed3526898872e1f368c7ec5ba09addb5cad', class: "close-btn", type: "button", "aria-label": "Close", title: "Close", onClick: () => this.close() }, index.h("img", { key: '083f8274705e283259aae905deaa436e5f4b245f', class: "theme-icon", src: cancel.CancelIcon, alt: "" })), index.h("h2", { key: 'a058a67fdacca067d745bdb50cbd7b8a816fa29e' }, "Message info")), index.h("div", { key: '55b49021b93e4083a2fda96a185ebd5c42d95025', class: "body" }, index.h("div", { key: '6c1d2b82c79b070909448af67538582e9f8d378b', class: "preview-wrap" }, index.h("div", { key: '1515cfcb240da83d3c7f190e2dcf9d082e9add0d', class: "preview-bubble" }, index.h("p", { key: '70df9dd2a094607d3d19eff09559ab8a5199cf1a', class: "preview-text" }, this.previewText()), index.h("div", { key: 'c85a9579c7071ccb31b92752cf1f5d5cae2be107', class: "preview-meta" }, index.h("span", { key: 'da4b0fb14e4704778ee2dae312418bdb5d3f7bd7' }, this.bubbleTime())))), index.h("div", { key: '1413b77d30d10cdce084d6ea98e4bfd5c5b97aac', class: "status-list" }, index.h("div", { key: '66f72522b946e8331c18dcbb17252b205ac4c962', class: "status-row" }, this.ticksIcon('read'), index.h("div", { key: '389e7a90d1c4b68641ed70b09f0780e4e74cc041', class: "status-content" }, index.h("div", { key: 'ee49e7669508a13c75672148127d691a0019a192', class: "status-title" }, "Read"), index.h("p", { key: '500268878c0716daea5124d781b26a4861fed4d4', class: "status-time" }, this.formatTime(this.messageReadTime)), read.map(u => (index.h("div", { class: "user-row" }, index.h("profile-avatar", { src: u.userProfileImageUrl || '', name: u.userName || '', size: "2rem" }), index.h("span", { class: "user-name" }, u.userName)))))), index.h("div", { key: 'faddbe446898e96d1d8b7d37a44d019ed7ccd30e', class: "status-row" }, this.ticksIcon('delivered'), index.h("div", { key: '72953384928b55b8d6c6864b26250b2d4c2f7aa0', class: "status-content" }, index.h("div", { key: '8bb0a893faa9bef1c99c4eef221446044193d02c', class: "status-title" }, "Delivered"), index.h("p", { key: '8baa9cf3f7e8973c03a5526371dab136e8895659', class: "status-time" }, this.formatTime(this.messageDeliveryTime)), delivery.map(u => (index.h("div", { class: "user-row" }, index.h("profile-avatar", { src: u.userProfileImageUrl || '', name: u.userName || '', size: "2rem" }), index.h("span", { class: "user-name" }, u.userName))))))))));
6796
6887
  }
6797
6888
  };
6798
6889
  MessageInfo.style = ":host {\n display: block;\n height: var(--h-full);\n width: var(--w-full);\n font-family: var(--font-primary);\n color: var(--text-primary);\n }\n .panel {\n display: flex;\n flex-direction: column;\n height: var(--h-full);\n background: var(--bg-primary);\n }\n .header {\n height: var(--rail-width);\n padding: 0 var(--space-16);\n background: var(--bg-primary);\n border-bottom: 1px solid var(--border);\n display: flex;\n align-items: center;\n gap: var(--gap-16);\n flex-shrink: 0;\n box-sizing: border-box;\n }\n .header h2 {\n margin: 0;\n font-size: var(--text-16);\n font-weight: var(--fw-600);\n color: var(--text-primary);\n }\n .close-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n width: var(--icon-lg);\n height: var(--icon-lg);\n border-radius: var(--rounded-full);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--icon);\n padding: 0;\n }\n .close-btn:hover {\n background: var(--hover-overlay);\n color: var(--text-primary);\n }\n .close-btn img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n }\n .body {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n background: var(--bg-tertiary);\n display: flex;\n flex-direction: column;\n }\n .preview-wrap {\n padding: var(--space-16);\n background: var(--bg-secondary);\n border-bottom: 1px solid var(--border);\n display: flex;\n justify-content: flex-end;\n box-sizing: border-box;\n }\n .preview-bubble {\n background: var(--brand);\n color: var(--text-on-brand);\n border-radius: var(--rounded-12) var(--rounded-12) var(--rounded-2) var(--rounded-12);\n padding: var(--gap-10) var(--space-16);\n max-width: 20rem;\n box-shadow: 0 1px 2px var(--overlay);\n box-sizing: border-box;\n }\n .preview-text {\n margin: 0;\n font-size: var(--text-14);\n line-height: 1.5;\n word-break: break-word;\n white-space: pre-wrap;\n }\n .preview-meta {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-top: var(--gap-4);\n font-size: var(--text-10);\n color: var(--text-on-brand);\n opacity: 0.85;\n }\n .status-list {\n background: var(--bg-primary);\n box-shadow: 0 1px 2px var(--overlay);\n }\n .status-row {\n display: flex;\n align-items: flex-start;\n gap: var(--space-16);\n padding: var(--space-16);\n border-bottom: 1px solid var(--border-subtle);\n box-sizing: border-box;\n }\n .status-row:last-child {\n border-bottom: none;\n }\n .status-row:hover {\n background: var(--hover-overlay);\n }\n .status-icon {\n flex-shrink: 0;\n margin-top: var(--gap-2);\n width: var(--icon-md);\n height: var(--icon-md);\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--text-tertiary);\n -webkit-mask: var(--tick-mask) center / contain no-repeat;\n mask: var(--tick-mask) center / contain no-repeat;\n }\n .status-icon.read {\n background-color: var(--brand);\n }\n .status-icon.delivered {\n background-color: var(--text-tertiary);\n }\n .status-content {\n flex: 1;\n min-width: 0;\n }\n .status-title {\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n color: var(--text-primary);\n }\n .status-time {\n margin: var(--gap-2) 0 0;\n font-size: var(--text-12);\n color: var(--text-tertiary);\n }\n .user-row {\n display: flex;\n align-items: center;\n gap: var(--space-8);\n margin-top: var(--space-8);\n }\n .user-name {\n font-size: var(--text-14);\n color: var(--text-primary);\n }\n .theme-icon { filter: var(--svg-icon-filter); }";
@@ -6823,7 +6914,7 @@ const IncomingTextMessageBubble = class {
6823
6914
  this.showReactionOnHover = false;
6824
6915
  }
6825
6916
  render() {
6826
- return (index.h("message-bubble", { key: 'f16a583b4ef9fcb808e9ea7febebae93d6d1f31c', isSelf: false, time: this.time, timeColor: this.timeColor, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, isForwarded: this.messageType === 1, backgroundColor: this.bgColor || '#EFF1FA', borderRadius: this.borderRadius || '7px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, index.h("div", { key: '93855e0f79c423d8d3bbce91cf94a55e7fc477b5', style: { fontFamily: this.fontFamily, color: this.color, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, messageBodyRender.renderMessageBody(this.textContent, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), false))));
6917
+ return (index.h("message-bubble", { key: '918370c86bf0b7e135e67b3b86e41331269cc98f', isSelf: false, time: this.time, timeColor: this.timeColor, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, isForwarded: this.messageType === 1, backgroundColor: this.bgColor || '#EFF1FA', borderRadius: this.borderRadius || '7px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, index.h("div", { key: 'a69f51b6c043a1baec73ed1b068792ff2ccacce6', style: { fontFamily: this.fontFamily, color: this.color, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, messageBodyRender.renderMessageBody(this.textContent, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), false))));
6827
6918
  }
6828
6919
  };
6829
6920
  IncomingTextMessageBubble.style = ":host { display: block; max-width: 80%; margin-left: 10px; }";
@@ -6844,7 +6935,7 @@ const MessageDatePill = class {
6844
6935
  this.content = '';
6845
6936
  }
6846
6937
  render() {
6847
- return (index.h("span", { key: '07d81baf556c1f5345bbf8cf6a534865dc28400f', class: "pill", style: {
6938
+ return (index.h("span", { key: '9ba025a7d2726e79e9cc52353787434e7ee414f4', class: "pill", style: {
6848
6939
  background: this.bgColor,
6849
6940
  color: this.textColor,
6850
6941
  width: this.width,
@@ -6889,7 +6980,7 @@ const OutgoingTextMessageBubble = class {
6889
6980
  this.fontFamily = 'var(--font-primary)';
6890
6981
  }
6891
6982
  render() {
6892
- return (index.h("message-bubble", { key: '2cc678a3f9f3ce8b2b5192d12f42282809b774d0', isSelf: true, 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' }, index.h("div", { key: '07d5f13d5572d8e41cc87657457d0f1443f435cb', style: { fontFamily: this.fontFamily, color: this.textColor, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, messageBodyRender.renderMessageBody(this.textContent, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), true))));
6983
+ return (index.h("message-bubble", { key: 'afc55ff86f19f328ac69cf2169d1b9a0dbbf715a', isSelf: true, 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' }, index.h("div", { key: '00b057946676eccc6bb97dfe223398ab4806673f', style: { fontFamily: this.fontFamily, color: this.textColor, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, messageBodyRender.renderMessageBody(this.textContent, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), true))));
6893
6984
  }
6894
6985
  };
6895
6986
  OutgoingTextMessageBubble.style = ":host { display: block; max-width: 80%; margin-right: 10px; }";
@@ -6947,7 +7038,7 @@ const ReplyMessageContainer = class {
6947
7038
  render() {
6948
7039
  const parentBody = this.parentMessageBody || this.parentmessageBody || this.repliedMessage || '';
6949
7040
  const parentName = this.parentMessageSenderName || this.senderName || 'Reply';
6950
- return (index.h("message-bubble", { key: '19d3d2dbd694b65061f9c1c625827a732636eee3', isSelf: !!this.isSelf, time: this.messageTime, timeColor: this.timeColor, isRead: this.isRead, isDelivered: this.isDelivered, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, backgroundColor: this.backgroundColor, borderRadius: this.borderRadius || '10px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, index.h("div", { key: 'c1d4c598c474602a6cd60ed4b3b7299c262481ed', class: "quote", onClick: e => { var _a; return (_a = this.onMediaClick) === null || _a === void 0 ? void 0 : _a.call(this, e); } }, index.h("div", { key: 'ae9d571587c21542aaa7d299d68896730c59d519', class: "quote-sender" }, parentName), index.h("div", { key: '2c7e75a12de5dea06f8c9e90d957bf2d077f89a3', class: "quote-body" }, parentBody), this.parentMessageMediaUrl ? (index.h("img", { class: "quote-media", src: this.parentMessageMediaUrl, alt: "" })) : null), index.h("div", { key: 'fdfdd4fffe9e2da10ea7b22f30f8ed2ffd55713b', class: "reply-body", style: { color: this.color, fontSize: this.fontSize, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, this.messageBody)));
7041
+ return (index.h("message-bubble", { key: 'eb31f7a04555d65b448a7c54ed58d3b13ad2d788', isSelf: !!this.isSelf, time: this.messageTime, timeColor: this.timeColor, isRead: this.isRead, isDelivered: this.isDelivered, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, backgroundColor: this.backgroundColor, borderRadius: this.borderRadius || '10px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, index.h("div", { key: '016db93d605068afc6c51d16eccc8b9dd89821b9', class: "quote", onClick: e => { var _a; return (_a = this.onMediaClick) === null || _a === void 0 ? void 0 : _a.call(this, e); } }, index.h("div", { key: 'c4acc4bd04ec7279baeb6aaad48098bacb9888e9', class: "quote-sender" }, parentName), index.h("div", { key: '72a4c0a1a561666d78b3c8a9de2cfefaa86aa96a', class: "quote-body" }, parentBody), this.parentMessageMediaUrl ? (index.h("img", { class: "quote-media", src: this.parentMessageMediaUrl, alt: "" })) : null), index.h("div", { key: 'eceb7aa34cc3482cc31ce9e60d575cf8dcb2c731', class: "reply-body", style: { color: this.color, fontSize: this.fontSize, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, this.messageBody)));
6951
7042
  }
6952
7043
  };
6953
7044
  ReplyMessageContainer.style = ":host { display: block; }\n .quote {\n border-left: 3px solid var(--brand);\n background: var(--hover-overlay);\n border-radius: 6px;\n padding: 6px 8px;\n margin-bottom: 6px;\n font-size: 12px;\n max-width: 100%;\n width: 100%;\n box-sizing: border-box;\n text-align: left;\n }\n .quote-sender { font-weight: 600; margin-bottom: 2px; color: var(--brand); }\n .quote-body { opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n .quote-media { max-width: 120px; max-height: 80px; border-radius: 6px; margin-top: 4px; object-fit: cover; }\n .reply-body { width: 100%; text-align: left; }";
@@ -7130,21 +7221,39 @@ const WebChatBody = class {
7130
7221
  };
7131
7222
  this.putReadAll = async () => {
7132
7223
  var _a, _b;
7133
- const hasUnreadMessages = (_a = this.allMessages) === null || _a === void 0 ? void 0 : _a.some(message => { var _a, _b; return ((message === null || message === void 0 ? void 0 : message.senderId) || ((_a = message === null || message === void 0 ? void 0 : message.senderInfo) === null || _a === void 0 ? void 0 : _a.userId)) != ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) && !(message === null || message === void 0 ? void 0 : message.readByAll); });
7134
- if (hasUnreadMessages) {
7224
+ if (!this.selectedConversationId)
7225
+ return;
7226
+ const hasUnreadMessages = (_a = this.allMessages) === null || _a === void 0 ? void 0 : _a.some(message => {
7227
+ var _a, _b;
7228
+ return ((message === null || message === void 0 ? void 0 : message.senderId) || ((_a = message === null || message === void 0 ? void 0 : message.senderInfo) === null || _a === void 0 ? void 0 : _a.userId)) != ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) &&
7229
+ !(message === null || message === void 0 ? void 0 : message.readByAll);
7230
+ });
7231
+ // Always hit the server on open/visible — unread flags on local rows race and miss.
7232
+ try {
7135
7233
  await index_m.M.getInstance().message.putRead({ conversationId: this.selectedConversationId });
7136
- const newUpdatedAllMessages = (_b = this.allMessages) === null || _b === void 0 ? void 0 : _b.map(message => { var _a, _b; return (message === null || message === void 0 ? void 0 : message.readByAll) != true && ((message === null || message === void 0 ? void 0 : message.senderId) || ((_a = message === null || message === void 0 ? void 0 : message.senderInfo) === null || _a === void 0 ? void 0 : _a.userId)) != ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) ? Object.assign(Object.assign({}, message), { readByAll: true }) : message; });
7234
+ }
7235
+ catch (err) {
7236
+ console.warn('[webchat] putRead failed', err);
7237
+ return;
7238
+ }
7239
+ if (hasUnreadMessages) {
7240
+ const newUpdatedAllMessages = (_b = this.allMessages) === null || _b === void 0 ? void 0 : _b.map(message => {
7241
+ var _a, _b;
7242
+ return (message === null || message === void 0 ? void 0 : message.readByAll) != true &&
7243
+ ((message === null || message === void 0 ? void 0 : message.senderId) || ((_a = message === null || message === void 0 ? void 0 : message.senderInfo) === null || _a === void 0 ? void 0 : _a.userId)) != ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId)
7244
+ ? Object.assign(Object.assign({}, message), { readByAll: true }) : message;
7245
+ });
7137
7246
  this.updateAllMessages(newUpdatedAllMessages);
7138
- this.el.dispatchEvent(new CustomEvent('message-read-status-updated', {
7139
- bubbles: true,
7140
- composed: true,
7141
- detail: {
7142
- conversationId: this.selectedConversationId,
7143
- isRead: true,
7144
- isDelivered: true,
7145
- },
7146
- }));
7147
7247
  }
7248
+ this.el.dispatchEvent(new CustomEvent('message-read-status-updated', {
7249
+ bubbles: true,
7250
+ composed: true,
7251
+ detail: {
7252
+ conversationId: this.selectedConversationId,
7253
+ isRead: true,
7254
+ isDelivered: true,
7255
+ },
7256
+ }));
7148
7257
  };
7149
7258
  this.handleVisibilityChange = async () => {
7150
7259
  if (document.visibilityState === 'visible') {
@@ -7760,7 +7869,7 @@ const WebChatBody = class {
7760
7869
  var _a, _b, _c, _d, _e, _f, _g, _h;
7761
7870
  const currentConversation = (_a = this.conversationList) === null || _a === void 0 ? void 0 : _a.find(conversation => (conversation === null || conversation === void 0 ? void 0 : conversation.conversationId) === this.selectedConversationId);
7762
7871
  const shouldShowPlaceholder = ((_b = this.allMessages) === null || _b === void 0 ? void 0 : _b.length) === 1 && ((_d = (_c = this.allMessages) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.action) !== 'clearConversation' && ((_e = this.allMessages) === null || _e === void 0 ? void 0 : _e.some(message => (message === null || message === void 0 ? void 0 : message.action) === 'clearConversation'));
7763
- return (index.h("div", { key: 'fcb897b1540131642caba826fe6551d06a7ac9c9', class: `chat-body ${this.isChatBodyUnscrollable ? 'unscrollable' : null}` }, this.showScrollButton || this.newMessageNotification && (index.h("div", { key: '1232ce848507a42e5dbd73708f57b10966511f6c', onClick: this.scrollToBottom, style: {
7872
+ return (index.h("div", { key: '017c85307bdbe5be7616541e79f9822d37238192', class: `chat-body ${this.isChatBodyUnscrollable ? 'unscrollable' : null}` }, this.showScrollButton || this.newMessageNotification && (index.h("div", { key: 'faa75f085f8866011206e9df18c19e70608b73ee', onClick: this.scrollToBottom, style: {
7764
7873
  position: 'sticky',
7765
7874
  top: '90%',
7766
7875
  left: '95%',
@@ -7774,7 +7883,7 @@ const WebChatBody = class {
7774
7883
  cursor: 'pointer',
7775
7884
  boxShadow: '0 2px 5px rgba(0,0,0,0.2)',
7776
7885
  zIndex: '100',
7777
- } }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (index.h("div", { key: 'f37caffdf257d82abefde7490978fc107d8befb5', style: {
7886
+ } }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (index.h("div", { key: '8d8ce11d2b6a6605123263fdad1c9cbd3cc69c57', style: {
7778
7887
  position: 'absolute',
7779
7888
  bottom: '22px',
7780
7889
  right: '-2px',
@@ -7788,7 +7897,7 @@ const WebChatBody = class {
7788
7897
  justifyContent: 'center',
7789
7898
  fontSize: '12px',
7790
7899
  padding: '0 4px',
7791
- } })), index.h("svg", { key: '07567e171c2f415dab0e3c87b1e42cb9ae994c9d', width: "20px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '919b12ffce28266d6f7a1de58876488f2b4cec59', d: "M12 5V19M12 19L19 12M12 19L5 12", stroke: "var(--text-primary-color)", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), shouldShowPlaceholder && (index.h("div", { key: 'dd06f9a496736731adf73db4eb68ed9bffdaf7a4', style: {
7900
+ } })), index.h("svg", { key: '8e151339669a3cb217c5a2dc8d91ed505b5bc19e', width: "20px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '03721744e4913ee969fd54b8fbe56f56df430a2b', d: "M12 5V19M12 19L19 12M12 19L5 12", stroke: "var(--text-primary-color)", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), shouldShowPlaceholder && (index.h("div", { key: '6ad033ccc314f2e9405c2a70c344535797401d75', style: {
7792
7901
  display: 'flex',
7793
7902
  flexDirection: 'column',
7794
7903
  alignItems: 'center',
@@ -7798,7 +7907,7 @@ const WebChatBody = class {
7798
7907
  textAlign: 'center',
7799
7908
  color: 'var(--text-secondary-color)',
7800
7909
  marginTop: '20px',
7801
- } }, index.h("img", { key: '7a3a75d2fd64671ce5384180794169356d524d07', src: NoMessagePlaceholder, alt: "No messages", style: { width: '200px', height: '200px' } }), index.h("div", { key: '3cc5745e16a98a047c4633e4fc5c5b0bfcfc1b5c', style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '10px' } }, index.h("span", { key: 'febc50bf7352f62d97443f8518611a662712b9c3', style: { fontSize: '24px', color: 'var(--text-primary-color)' } }, "No messages"), index.h("span", { key: '80e42faea0eb8ea092b8499ba3d9833033de45e5', style: { fontSize: '16px', color: 'var(--text-secondary-color)' } }, "Send a \"Hi\" and make someone's day brighter!")))), this.isMessagesLoading && (index.h("spinner-loader", { key: '31c0a6c01075d2cc291a8f26cb59cacdf4c05f7d', height: "20px", width: "20px", spinTime: "1s", spinnerPrimaryColor: "#000", spinnerSecondaryColor: "var(--bg-grey-color)", spinnerBorderWidth: "3px" })), ((_g = this.allMessages) === null || _g === void 0 ? void 0 : _g.length) > 0 &&
7910
+ } }, index.h("img", { key: 'ed586743164aa9421c3fa670d41490ea6348c6ba', src: NoMessagePlaceholder, alt: "No messages", style: { width: '200px', height: '200px' } }), index.h("div", { key: 'ae7b72d55f359fa4499dd0389780fd3eea42c5d1', style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '10px' } }, index.h("span", { key: 'c8646251c1736ffcfc1f57d66d3e39aa1d0c2661', style: { fontSize: '24px', color: 'var(--text-primary-color)' } }, "No messages"), index.h("span", { key: '6f26a1c1449f381d7d18fd09caebbf14d2db6958', style: { fontSize: '16px', color: 'var(--text-secondary-color)' } }, "Send a \"Hi\" and make someone's day brighter!")))), this.isMessagesLoading && (index.h("spinner-loader", { key: '17eb012be71eac04a736212baea3ebf611825ddf', height: "20px", width: "20px", spinTime: "1s", spinnerPrimaryColor: "#000", spinnerSecondaryColor: "var(--bg-grey-color)", spinnerBorderWidth: "3px" })), ((_g = this.allMessages) === null || _g === void 0 ? void 0 : _g.length) > 0 &&
7802
7911
  ((_h = this.userMetaData) === null || _h === void 0 ? void 0 : _h.userId) &&
7803
7912
  (() => {
7804
7913
  const total = this.allMessages.length;