isometrik-plugin-chat-sdk 1.0.0

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 (507) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/BlockChatList-720a703e.js +423 -0
  3. package/dist/cjs/BlockChatList-720a703e.js.map +1 -0
  4. package/dist/cjs/DocumentMessageBubble-c79bfbe5.js +493 -0
  5. package/dist/cjs/DocumentMessageBubble-c79bfbe5.js.map +1 -0
  6. package/dist/cjs/Image-67c52acd.js +135 -0
  7. package/dist/cjs/Image-67c52acd.js.map +1 -0
  8. package/dist/cjs/ImageMessageBubble-1218fb66.js +675 -0
  9. package/dist/cjs/ImageMessageBubble-1218fb66.js.map +1 -0
  10. package/dist/cjs/IsometrikLogo-976b1c34.js +44 -0
  11. package/dist/cjs/IsometrikLogo-976b1c34.js.map +1 -0
  12. package/dist/cjs/MessageSearch-5fc9dc00.js +5892 -0
  13. package/dist/cjs/MessageSearch-5fc9dc00.js.map +1 -0
  14. package/dist/cjs/ReactionsContainer-a6ce9059.js +375 -0
  15. package/dist/cjs/ReactionsContainer-a6ce9059.js.map +1 -0
  16. package/dist/cjs/Text-fedf6eab.js +60 -0
  17. package/dist/cjs/Text-fedf6eab.js.map +1 -0
  18. package/dist/cjs/VideoMessageBubble-c4694a78.js +571 -0
  19. package/dist/cjs/VideoMessageBubble-c4694a78.js.map +1 -0
  20. package/dist/cjs/WebChat-403e7ab1.js +2884 -0
  21. package/dist/cjs/WebChat-403e7ab1.js.map +1 -0
  22. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  23. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  24. package/dist/cjs/audio-bubble_8.cjs.entry.js +21011 -0
  25. package/dist/cjs/audio-bubble_8.cjs.entry.js.map +1 -0
  26. package/dist/cjs/block-chat-list.cjs.entry.js +16 -0
  27. package/dist/cjs/block-chat-list.cjs.entry.js.map +1 -0
  28. package/dist/cjs/chat-app.cjs.entry.js +55 -0
  29. package/dist/cjs/chat-app.cjs.entry.js.map +1 -0
  30. package/dist/cjs/chat-assets-6ab1faa6.js +9 -0
  31. package/dist/cjs/chat-assets-6ab1faa6.js.map +1 -0
  32. package/dist/cjs/chat-creds-f4cbf400.js +38 -0
  33. package/dist/cjs/chat-creds-f4cbf400.js.map +1 -0
  34. package/dist/cjs/chat-document-message-bubble.cjs.entry.js +24 -0
  35. package/dist/cjs/chat-document-message-bubble.cjs.entry.js.map +1 -0
  36. package/dist/cjs/chat-image-message-bubble.cjs.entry.js +26 -0
  37. package/dist/cjs/chat-image-message-bubble.cjs.entry.js.map +1 -0
  38. package/dist/cjs/chat-video-message-bubble.cjs.entry.js +24 -0
  39. package/dist/cjs/chat-video-message-bubble.cjs.entry.js.map +1 -0
  40. package/dist/cjs/content-eca5336c.js +81 -0
  41. package/dist/cjs/content-eca5336c.js.map +1 -0
  42. package/dist/cjs/dialog-drawer-9d04911c.js +5313 -0
  43. package/dist/cjs/dialog-drawer-9d04911c.js.map +1 -0
  44. package/dist/cjs/forward-memebers.cjs.entry.js +128 -0
  45. package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -0
  46. package/dist/cjs/group-members-a60fb1cb.js +41 -0
  47. package/dist/cjs/group-members-a60fb1cb.js.map +1 -0
  48. package/dist/cjs/groupcast-49dae5ab.js +202 -0
  49. package/dist/cjs/groupcast-49dae5ab.js.map +1 -0
  50. package/dist/cjs/imagePlaceholder-030cc566.js +4365 -0
  51. package/dist/cjs/imagePlaceholder-030cc566.js.map +1 -0
  52. package/dist/cjs/index-9afe62b6.js +3129 -0
  53. package/dist/cjs/index-9afe62b6.js.map +1 -0
  54. package/dist/cjs/index.cjs.js +148 -0
  55. package/dist/cjs/index.cjs.js.map +1 -0
  56. package/dist/cjs/isometrik-webchat.cjs.js +54 -0
  57. package/dist/cjs/isometrik-webchat.cjs.js.map +1 -0
  58. package/dist/cjs/loader.cjs.js +17 -0
  59. package/dist/cjs/loader.cjs.js.map +1 -0
  60. package/dist/cjs/login-page.cjs.entry.js +85 -0
  61. package/dist/cjs/login-page.cjs.entry.js.map +1 -0
  62. package/dist/cjs/member-add.cjs.entry.js +122 -0
  63. package/dist/cjs/member-add.cjs.entry.js.map +1 -0
  64. package/dist/cjs/message-reaction-976f6261.js +24 -0
  65. package/dist/cjs/message-reaction-976f6261.js.map +1 -0
  66. package/dist/cjs/my-component.cjs.entry.js +29 -0
  67. package/dist/cjs/my-component.cjs.entry.js.map +1 -0
  68. package/dist/cjs/reaction-container.cjs.entry.js +52 -0
  69. package/dist/cjs/reaction-container.cjs.entry.js.map +1 -0
  70. package/dist/cjs/shadow-css-7c4dbc43.js +336 -0
  71. package/dist/cjs/shadow-css-7c4dbc43.js.map +1 -0
  72. package/dist/cjs/signup-page.cjs.entry.js +143 -0
  73. package/dist/cjs/signup-page.cjs.entry.js.map +1 -0
  74. package/dist/cjs/taguser-aca04ed9.js +512 -0
  75. package/dist/cjs/taguser-aca04ed9.js.map +1 -0
  76. package/dist/cjs/theme-provider_2.cjs.entry.js +113 -0
  77. package/dist/cjs/theme-provider_2.cjs.entry.js.map +1 -0
  78. package/dist/cjs/toast-helper-defae4a5.js +84 -0
  79. package/dist/cjs/toast-helper-defae4a5.js.map +1 -0
  80. package/dist/cjs/utils-bcad3386.js +9 -0
  81. package/dist/cjs/utils-bcad3386.js.map +1 -0
  82. package/dist/collection/api/conversations.js +12 -0
  83. package/dist/collection/api/group-members.js +36 -0
  84. package/dist/collection/api/groupcast.js +183 -0
  85. package/dist/collection/api/membership-control.js +13 -0
  86. package/dist/collection/api/message-reaction.js +16 -0
  87. package/dist/collection/api/social-accounts.js +282 -0
  88. package/dist/collection/app-root.js +51 -0
  89. package/dist/collection/app-root.js.map +1 -0
  90. package/dist/collection/assets/images/avatar.svg +1 -0
  91. package/dist/collection/assets/images/chatdefaultbg.svg +6140 -0
  92. package/dist/collection/assets/images/equalizer.svg +1 -0
  93. package/dist/collection/assets/images/imagePlaceholder.svg +2 -0
  94. package/dist/collection/assets/images/link.svg +1 -0
  95. package/dist/collection/assets/images/videoPlaceholder.svg +4 -0
  96. package/dist/collection/assets/images/videoThumbnail.svg +1 -0
  97. package/dist/collection/assets/svg/ExcelDocument.js +2 -0
  98. package/dist/collection/assets/svg/IsometrikLogo.js +38 -0
  99. package/dist/collection/assets/svg/Moon.svg +1 -0
  100. package/dist/collection/assets/svg/NoChatPlaceholder.js +16 -0
  101. package/dist/collection/assets/svg/NoContactsPlaceholder.js +9 -0
  102. package/dist/collection/assets/svg/NoMessagePlaceholder.svg +13 -0
  103. package/dist/collection/assets/svg/PdfDocument.js +2 -0
  104. package/dist/collection/assets/svg/ProfilePlaceholder.js +1 -0
  105. package/dist/collection/assets/svg/SelectChatPlaceholder.js +13 -0
  106. package/dist/collection/assets/svg/Sun.svg +1 -0
  107. package/dist/collection/assets/svg/broadcast-selected.svg +4 -0
  108. package/dist/collection/assets/svg/broadcst-default.svg +4 -0
  109. package/dist/collection/assets/svg/close.svg +1 -0
  110. package/dist/collection/assets/svg/group.svg +7 -0
  111. package/dist/collection/assets/svg/login.svg +3051 -0
  112. package/dist/collection/assets/svg/message-add.svg +5 -0
  113. package/dist/collection/assets/svg/message-bold.svg +3 -0
  114. package/dist/collection/assets/svg/message-outline.svg +5 -0
  115. package/dist/collection/collection-manifest.json +32 -0
  116. package/dist/collection/components/ChatUIComponent/AddMember.js +144 -0
  117. package/dist/collection/components/ChatUIComponent/AddMember.js.map +1 -0
  118. package/dist/collection/components/ChatUIComponent/AudioBubble.js +528 -0
  119. package/dist/collection/components/ChatUIComponent/AudioBubble.js.map +1 -0
  120. package/dist/collection/components/ChatUIComponent/BlockChatList.js +114 -0
  121. package/dist/collection/components/ChatUIComponent/BlockChatList.js.map +1 -0
  122. package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +11 -0
  123. package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js.map +1 -0
  124. package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +11 -0
  125. package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js.map +1 -0
  126. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js +540 -0
  127. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js.map +1 -0
  128. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/profile-page.css +252 -0
  129. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +1175 -0
  130. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -0
  131. package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +11 -0
  132. package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js.map +1 -0
  133. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +790 -0
  134. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -0
  135. package/dist/collection/components/ChatUIComponent/ForwardMessageList.js +152 -0
  136. package/dist/collection/components/ChatUIComponent/ForwardMessageList.js.map +1 -0
  137. package/dist/collection/components/ChatUIComponent/GroupCast.js +218 -0
  138. package/dist/collection/components/ChatUIComponent/GroupCast.js.map +1 -0
  139. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +590 -0
  140. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -0
  141. package/dist/collection/components/ChatUIComponent/ReactionContainer.js +103 -0
  142. package/dist/collection/components/ChatUIComponent/ReactionContainer.js.map +1 -0
  143. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +1352 -0
  144. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -0
  145. package/dist/collection/components/ChatUIComponent/WebChatBody/web-chat-body.css +277 -0
  146. package/dist/collection/components/Login.js +118 -0
  147. package/dist/collection/components/Login.js.map +1 -0
  148. package/dist/collection/components/Signup.js +177 -0
  149. package/dist/collection/components/Signup.js.map +1 -0
  150. package/dist/collection/components/chat-main.js +131 -0
  151. package/dist/collection/components/chat-main.js.map +1 -0
  152. package/dist/collection/components/my-component/my-component.css +3 -0
  153. package/dist/collection/components/my-component/my-component.js +83 -0
  154. package/dist/collection/components/my-component/my-component.js.map +1 -0
  155. package/dist/collection/components/my-component/web-chat/WebChat.js +2686 -0
  156. package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -0
  157. package/dist/collection/components/my-component/web-chat/WebchatRightSide.js +675 -0
  158. package/dist/collection/components/my-component/web-chat/WebchatRightSide.js.map +1 -0
  159. package/dist/collection/components/my-component/web-chat/web-chat.css +336 -0
  160. package/dist/collection/components/theme-provider.js +182 -0
  161. package/dist/collection/components/theme-provider.js.map +1 -0
  162. package/dist/collection/constants/chat-assets.js +12 -0
  163. package/dist/collection/constants/chat-creds.js +31 -0
  164. package/dist/collection/constants/content.js +75 -0
  165. package/dist/collection/constants/urls.js +1 -0
  166. package/dist/collection/index.js +135 -0
  167. package/dist/collection/index.js.map +1 -0
  168. package/dist/collection/lib/helpers.js +205 -0
  169. package/dist/collection/lib/taguser.js +123 -0
  170. package/dist/collection/store/conversation.js +25 -0
  171. package/dist/collection/store/conversation.js.map +1 -0
  172. package/dist/collection/store/group-members.js +24 -0
  173. package/dist/collection/store/group-members.js.map +1 -0
  174. package/dist/collection/store/unread-count.js +18 -0
  175. package/dist/collection/store/unread-count.js.map +1 -0
  176. package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.js +222 -0
  177. package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.stories.js +148 -0
  178. package/dist/collection/stories/Components/AttachmentBox/AttachmentBox.js +211 -0
  179. package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.js +708 -0
  180. package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.stories.js +57 -0
  181. package/dist/collection/stories/Components/AttachmentBox/Attachmentbox.stories.js +74 -0
  182. package/dist/collection/stories/Components/AttachmentBox/CameraPreview.js +231 -0
  183. package/dist/collection/stories/Components/BlockUsers/BlockUsers.js +337 -0
  184. package/dist/collection/stories/Components/Body/Body.js +48 -0
  185. package/dist/collection/stories/Components/Body/Body.stories.js +33 -0
  186. package/dist/collection/stories/Components/Buttons/Buttons.js +65 -0
  187. package/dist/collection/stories/Components/Buttons/Buttons.stories.js +132 -0
  188. package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.js +951 -0
  189. package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.stories.js +75 -0
  190. package/dist/collection/stories/Components/ChatSidebar/ContextMenu.js +109 -0
  191. package/dist/collection/stories/Components/ChatTile/ChatTile.js +290 -0
  192. package/dist/collection/stories/Components/ChatTile/ChatTile.stories.js +180 -0
  193. package/dist/collection/stories/Components/Chip/Chip.js +111 -0
  194. package/dist/collection/stories/Components/Chip/Chip.stories.js +149 -0
  195. package/dist/collection/stories/Components/ContactInfo/ContactInfo.js +1491 -0
  196. package/dist/collection/stories/Components/ContactInfo/ContactInfo.stories.js +118 -0
  197. package/dist/collection/stories/Components/ContactInfo/MediaList.js +147 -0
  198. package/dist/collection/stories/Components/ContactInfo/ProfileInfo.js +1219 -0
  199. package/dist/collection/stories/Components/ContactTile/ContactTile.js +416 -0
  200. package/dist/collection/stories/Components/ContactTile/ContactTile.stories.js +60 -0
  201. package/dist/collection/stories/Components/Dialog-Drawer/confirm.js +113 -0
  202. package/dist/collection/stories/Components/Dialog-Drawer/deletemessage.js +97 -0
  203. package/dist/collection/stories/Components/Dialog-Drawer/dialog-drawer.js +264 -0
  204. package/dist/collection/stories/Components/EmojiReactions/EmojiReactions.js +179 -0
  205. package/dist/collection/stories/Components/Footer/Footer.js +4 -0
  206. package/dist/collection/stories/Components/Footer/Footer.stories.js +155 -0
  207. package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.js +433 -0
  208. package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.stories.js +110 -0
  209. package/dist/collection/stories/Components/ForwardMessage/ForwardUi.js +46 -0
  210. package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.js +546 -0
  211. package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.stories.js +56 -0
  212. package/dist/collection/stories/Components/GroupInfo/GroupInfo.js +394 -0
  213. package/dist/collection/stories/Components/GroupInfo/GroupInfo.stories.js +107 -0
  214. package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.js +129 -0
  215. package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.stories.js +78 -0
  216. package/dist/collection/stories/Components/Head/Head.js +672 -0
  217. package/dist/collection/stories/Components/Head/Head.stories.js +91 -0
  218. package/dist/collection/stories/Components/Icon/Icon.js +115 -0
  219. package/dist/collection/stories/Components/Image/Image.js +41 -0
  220. package/dist/collection/stories/Components/Image/Image.stories.js +49 -0
  221. package/dist/collection/stories/Components/Image/Img.stories.js +178 -0
  222. package/dist/collection/stories/Components/Inputbox/Input.js +206 -0
  223. package/dist/collection/stories/Components/Inputbox/Input.stories.js +87 -0
  224. package/dist/collection/stories/Components/InstagramAccounts/InstagramAccountsPanel.js +605 -0
  225. package/dist/collection/stories/Components/Loader/Spinner/Spinner.js +60 -0
  226. package/dist/collection/stories/Components/Loader/Spinner/Spinner.stories.js +38 -0
  227. package/dist/collection/stories/Components/MainPlaceHolder/MainChatPlaceHolder.js +78 -0
  228. package/dist/collection/stories/Components/MainPlaceHolder/MainPlaceHolder.stories.js +130 -0
  229. package/dist/collection/stories/Components/MediaGallery/MediaGallery.js +868 -0
  230. package/dist/collection/stories/Components/MediaGallery/MediaGallery.stories.js +81 -0
  231. package/dist/collection/stories/Components/MembersList/MembersList.js +348 -0
  232. package/dist/collection/stories/Components/MessageBubble/AudioMessageBubble/AudioMesaageBubble.js +533 -0
  233. package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.js +484 -0
  234. package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.stories.js +54 -0
  235. package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.js +683 -0
  236. package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.stories.js +49 -0
  237. package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.js +450 -0
  238. package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.stories.js +56 -0
  239. package/dist/collection/stories/Components/MessageBubble/LinkMessageBubble/LinkMessageBubble.js +721 -0
  240. package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.js +139 -0
  241. package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.stories.js +63 -0
  242. package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.js +576 -0
  243. package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.stories.js +50 -0
  244. package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.js +66 -0
  245. package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.stories.js +48 -0
  246. package/dist/collection/stories/Components/MessageInfo/MessageInfo.js +465 -0
  247. package/dist/collection/stories/Components/MessageInfo/MessageInfo.stories.js +111 -0
  248. package/dist/collection/stories/Components/MessageSearch/MessageSearch.js +242 -0
  249. package/dist/collection/stories/Components/MessageSearchBar/SearchBar.js +523 -0
  250. package/dist/collection/stories/Components/MessageSearchBar/SearchBar.stories.js +98 -0
  251. package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.js +51 -0
  252. package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.stories.js +79 -0
  253. package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.js +560 -0
  254. package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.stories.js +56 -0
  255. package/dist/collection/stories/Components/Placeholder/NoContactsPlaceholder.js +57 -0
  256. package/dist/collection/stories/Components/Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js +114 -0
  257. package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.js +166 -0
  258. package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.stories.js +125 -0
  259. package/dist/collection/stories/Components/ProfileTab/ProfileTab.js +939 -0
  260. package/dist/collection/stories/Components/ProfileTab/ProfileTab.stories.js +144 -0
  261. package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.js +166 -0
  262. package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.stories.js +115 -0
  263. package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.js +98 -0
  264. package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.stories.js +55 -0
  265. package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.js +27 -0
  266. package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.stories.js +28 -0
  267. package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.js +26 -0
  268. package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.stories.js +33 -0
  269. package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.js +27 -0
  270. package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.stories.js +28 -0
  271. package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.js +38 -0
  272. package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.stories.js +33 -0
  273. package/dist/collection/stories/Components/ReplyBlock/MediaIcons.js +16 -0
  274. package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.js +196 -0
  275. package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.stories.js +57 -0
  276. package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.js +645 -0
  277. package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.stories.js +58 -0
  278. package/dist/collection/stories/Components/SearchableList/SearchableList.js +393 -0
  279. package/dist/collection/stories/Components/SearchableList/SearchableList.stories.js +65 -0
  280. package/dist/collection/stories/Components/SharePopup/SharePopup.js +152 -0
  281. package/dist/collection/stories/Components/SharePopup/SharePopup.stories.js +47 -0
  282. package/dist/collection/stories/Components/Splitscreen/Splitscreen.js +157 -0
  283. package/dist/collection/stories/Components/Splitscreen/Splitscreen.stories.js +100 -0
  284. package/dist/collection/stories/Components/TestFooter/MentionUserList.js +194 -0
  285. package/dist/collection/stories/Components/TestFooter/TestFooter.js +1339 -0
  286. package/dist/collection/stories/Components/TestFooter/TestFooter.stories.js +89 -0
  287. package/dist/collection/stories/Components/Text/Text.js +57 -0
  288. package/dist/collection/stories/Components/Text/Text.stories.js +83 -0
  289. package/dist/collection/stories/Components/TextStyle/TextStyle.js +38 -0
  290. package/dist/collection/stories/Components/TextStyle/TextStyle.stories.js +50 -0
  291. package/dist/collection/stories/Components/Time/Timestamp.js +50 -0
  292. package/dist/collection/stories/Components/Time/Timestamp.stories.js +34 -0
  293. package/dist/collection/stories/Components/Toaster/Toaster.js +94 -0
  294. package/dist/collection/stories/Components/Toaster/Toaster.stories.js +108 -0
  295. package/dist/collection/stories/Components/Toaster/toast-helper.js +79 -0
  296. package/dist/collection/stories/Components/Toaster/toast-helper.js.map +1 -0
  297. package/dist/collection/stories/Components/final/final.js +86 -0
  298. package/dist/collection/stories/Components/final/final.stories.js +30 -0
  299. package/dist/collection/stories/assets/SEARCH ICON.svg +1 -0
  300. package/dist/collection/types/ConversationDetailsTypes.js +2 -0
  301. package/dist/collection/types/ConversationDetailsTypes.js.map +1 -0
  302. package/dist/collection/utils/chatSdk.js +14 -0
  303. package/dist/collection/utils/getFomattedDate.js +34 -0
  304. package/dist/collection/utils/getFomattedDate.js.map +1 -0
  305. package/dist/collection/utils/unixTimeConverter.js +28 -0
  306. package/dist/collection/utils/utils.js +4 -0
  307. package/dist/collection/utils/utils.js.map +1 -0
  308. package/dist/esm/BlockChatList-9fc3a42b.js +421 -0
  309. package/dist/esm/BlockChatList-9fc3a42b.js.map +1 -0
  310. package/dist/esm/DocumentMessageBubble-b67726f2.js +491 -0
  311. package/dist/esm/DocumentMessageBubble-b67726f2.js.map +1 -0
  312. package/dist/esm/Image-bb9efda3.js +121 -0
  313. package/dist/esm/Image-bb9efda3.js.map +1 -0
  314. package/dist/esm/ImageMessageBubble-0e473f6e.js +673 -0
  315. package/dist/esm/ImageMessageBubble-0e473f6e.js.map +1 -0
  316. package/dist/esm/IsometrikLogo-14db76af.js +42 -0
  317. package/dist/esm/IsometrikLogo-14db76af.js.map +1 -0
  318. package/dist/esm/MessageSearch-4101a627.js +5875 -0
  319. package/dist/esm/MessageSearch-4101a627.js.map +1 -0
  320. package/dist/esm/ReactionsContainer-bdd74a3c.js +373 -0
  321. package/dist/esm/ReactionsContainer-bdd74a3c.js.map +1 -0
  322. package/dist/esm/Text-3b0b3898.js +58 -0
  323. package/dist/esm/Text-3b0b3898.js.map +1 -0
  324. package/dist/esm/VideoMessageBubble-88a7a53e.js +569 -0
  325. package/dist/esm/VideoMessageBubble-88a7a53e.js.map +1 -0
  326. package/dist/esm/WebChat-5448d615.js +2882 -0
  327. package/dist/esm/WebChat-5448d615.js.map +1 -0
  328. package/dist/esm/app-globals-0f993ce5.js +5 -0
  329. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  330. package/dist/esm/audio-bubble_8.entry.js +21001 -0
  331. package/dist/esm/audio-bubble_8.entry.js.map +1 -0
  332. package/dist/esm/block-chat-list.entry.js +8 -0
  333. package/dist/esm/block-chat-list.entry.js.map +1 -0
  334. package/dist/esm/chat-app.entry.js +51 -0
  335. package/dist/esm/chat-app.entry.js.map +1 -0
  336. package/dist/esm/chat-assets-bd8778d5.js +6 -0
  337. package/dist/esm/chat-assets-bd8778d5.js.map +1 -0
  338. package/dist/esm/chat-creds-ff086f05.js +35 -0
  339. package/dist/esm/chat-creds-ff086f05.js.map +1 -0
  340. package/dist/esm/chat-document-message-bubble.entry.js +20 -0
  341. package/dist/esm/chat-document-message-bubble.entry.js.map +1 -0
  342. package/dist/esm/chat-image-message-bubble.entry.js +22 -0
  343. package/dist/esm/chat-image-message-bubble.entry.js.map +1 -0
  344. package/dist/esm/chat-video-message-bubble.entry.js +20 -0
  345. package/dist/esm/chat-video-message-bubble.entry.js.map +1 -0
  346. package/dist/esm/content-5aea5e39.js +79 -0
  347. package/dist/esm/content-5aea5e39.js.map +1 -0
  348. package/dist/esm/dialog-drawer-9fa083b1.js +5304 -0
  349. package/dist/esm/dialog-drawer-9fa083b1.js.map +1 -0
  350. package/dist/esm/forward-memebers.entry.js +124 -0
  351. package/dist/esm/forward-memebers.entry.js.map +1 -0
  352. package/dist/esm/group-members-bb3c8db7.js +37 -0
  353. package/dist/esm/group-members-bb3c8db7.js.map +1 -0
  354. package/dist/esm/groupcast-d1c54a27.js +187 -0
  355. package/dist/esm/groupcast-d1c54a27.js.map +1 -0
  356. package/dist/esm/imagePlaceholder-e544f70b.js +4360 -0
  357. package/dist/esm/imagePlaceholder-e544f70b.js.map +1 -0
  358. package/dist/esm/index-fddf30b7.js +3093 -0
  359. package/dist/esm/index-fddf30b7.js.map +1 -0
  360. package/dist/esm/index.js +139 -0
  361. package/dist/esm/index.js.map +1 -0
  362. package/dist/esm/isometrik-webchat.js +49 -0
  363. package/dist/esm/isometrik-webchat.js.map +1 -0
  364. package/dist/esm/loader.js +13 -0
  365. package/dist/esm/loader.js.map +1 -0
  366. package/dist/esm/login-page.entry.js +81 -0
  367. package/dist/esm/login-page.entry.js.map +1 -0
  368. package/dist/esm/member-add.entry.js +118 -0
  369. package/dist/esm/member-add.entry.js.map +1 -0
  370. package/dist/esm/message-reaction-ad47ea1a.js +20 -0
  371. package/dist/esm/message-reaction-ad47ea1a.js.map +1 -0
  372. package/dist/esm/my-component.entry.js +25 -0
  373. package/dist/esm/my-component.entry.js.map +1 -0
  374. package/dist/esm/reaction-container.entry.js +48 -0
  375. package/dist/esm/reaction-container.entry.js.map +1 -0
  376. package/dist/esm/shadow-css-7ad5caf8.js +334 -0
  377. package/dist/esm/shadow-css-7ad5caf8.js.map +1 -0
  378. package/dist/esm/signup-page.entry.js +139 -0
  379. package/dist/esm/signup-page.entry.js.map +1 -0
  380. package/dist/esm/taguser-e9032d65.js +510 -0
  381. package/dist/esm/taguser-e9032d65.js.map +1 -0
  382. package/dist/esm/theme-provider_2.entry.js +108 -0
  383. package/dist/esm/theme-provider_2.entry.js.map +1 -0
  384. package/dist/esm/toast-helper-840fd8dc.js +82 -0
  385. package/dist/esm/toast-helper-840fd8dc.js.map +1 -0
  386. package/dist/esm/utils-11fcde98.js +7 -0
  387. package/dist/esm/utils-11fcde98.js.map +1 -0
  388. package/dist/index.cjs.js +1 -0
  389. package/dist/index.js +1 -0
  390. package/dist/isometrik-webchat/index.esm.js +2 -0
  391. package/dist/isometrik-webchat/index.esm.js.map +1 -0
  392. package/dist/isometrik-webchat/isometrik-webchat.css +2 -0
  393. package/dist/isometrik-webchat/isometrik-webchat.esm.js +2 -0
  394. package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -0
  395. package/dist/isometrik-webchat/p-12774661.js +2 -0
  396. package/dist/isometrik-webchat/p-12774661.js.map +1 -0
  397. package/dist/isometrik-webchat/p-12e56271.js +549 -0
  398. package/dist/isometrik-webchat/p-12e56271.js.map +1 -0
  399. package/dist/isometrik-webchat/p-1415e589.js +2 -0
  400. package/dist/isometrik-webchat/p-1415e589.js.map +1 -0
  401. package/dist/isometrik-webchat/p-18f8d210.js +13 -0
  402. package/dist/isometrik-webchat/p-18f8d210.js.map +1 -0
  403. package/dist/isometrik-webchat/p-1b2461f4.js +357 -0
  404. package/dist/isometrik-webchat/p-1b2461f4.js.map +1 -0
  405. package/dist/isometrik-webchat/p-229095d4.js +2 -0
  406. package/dist/isometrik-webchat/p-229095d4.js.map +1 -0
  407. package/dist/isometrik-webchat/p-2953d06a.entry.js +2 -0
  408. package/dist/isometrik-webchat/p-2953d06a.entry.js.map +1 -0
  409. package/dist/isometrik-webchat/p-3004a123.js +2 -0
  410. package/dist/isometrik-webchat/p-3004a123.js.map +1 -0
  411. package/dist/isometrik-webchat/p-3044698a.js +2 -0
  412. package/dist/isometrik-webchat/p-3044698a.js.map +1 -0
  413. package/dist/isometrik-webchat/p-40517d7f.js +1098 -0
  414. package/dist/isometrik-webchat/p-40517d7f.js.map +1 -0
  415. package/dist/isometrik-webchat/p-42a62cf2.js +2 -0
  416. package/dist/isometrik-webchat/p-42a62cf2.js.map +1 -0
  417. package/dist/isometrik-webchat/p-48e1d174.js +45 -0
  418. package/dist/isometrik-webchat/p-48e1d174.js.map +1 -0
  419. package/dist/isometrik-webchat/p-48e243ec.entry.js +2 -0
  420. package/dist/isometrik-webchat/p-48e243ec.entry.js.map +1 -0
  421. package/dist/isometrik-webchat/p-4d2aca06.js +257 -0
  422. package/dist/isometrik-webchat/p-4d2aca06.js.map +1 -0
  423. package/dist/isometrik-webchat/p-610bfd8a.js +2 -0
  424. package/dist/isometrik-webchat/p-610bfd8a.js.map +1 -0
  425. package/dist/isometrik-webchat/p-674e4bb0.js +9 -0
  426. package/dist/isometrik-webchat/p-674e4bb0.js.map +1 -0
  427. package/dist/isometrik-webchat/p-8490e13d.js +192 -0
  428. package/dist/isometrik-webchat/p-8490e13d.js.map +1 -0
  429. package/dist/isometrik-webchat/p-858b0da8.entry.js +2 -0
  430. package/dist/isometrik-webchat/p-858b0da8.entry.js.map +1 -0
  431. package/dist/isometrik-webchat/p-89108249.entry.js +5010 -0
  432. package/dist/isometrik-webchat/p-89108249.entry.js.map +1 -0
  433. package/dist/isometrik-webchat/p-8dcdea59.js +2963 -0
  434. package/dist/isometrik-webchat/p-8dcdea59.js.map +1 -0
  435. package/dist/isometrik-webchat/p-92d0b21c.js +2 -0
  436. package/dist/isometrik-webchat/p-92d0b21c.js.map +1 -0
  437. package/dist/isometrik-webchat/p-ada9c8e8.entry.js +2 -0
  438. package/dist/isometrik-webchat/p-ada9c8e8.entry.js.map +1 -0
  439. package/dist/isometrik-webchat/p-adbb398d.entry.js +2 -0
  440. package/dist/isometrik-webchat/p-adbb398d.entry.js.map +1 -0
  441. package/dist/isometrik-webchat/p-b07dd267.js +2 -0
  442. package/dist/isometrik-webchat/p-b07dd267.js.map +1 -0
  443. package/dist/isometrik-webchat/p-bf0aeb22.entry.js +2 -0
  444. package/dist/isometrik-webchat/p-bf0aeb22.entry.js.map +1 -0
  445. package/dist/isometrik-webchat/p-bfd51dd4.entry.js +2 -0
  446. package/dist/isometrik-webchat/p-bfd51dd4.entry.js.map +1 -0
  447. package/dist/isometrik-webchat/p-c50aa410.entry.js +2 -0
  448. package/dist/isometrik-webchat/p-c50aa410.entry.js.map +1 -0
  449. package/dist/isometrik-webchat/p-cd34448c.entry.js +2 -0
  450. package/dist/isometrik-webchat/p-cd34448c.entry.js.map +1 -0
  451. package/dist/isometrik-webchat/p-d4b8ece6.entry.js +2 -0
  452. package/dist/isometrik-webchat/p-d4b8ece6.entry.js.map +1 -0
  453. package/dist/isometrik-webchat/p-de8a8642.js +197 -0
  454. package/dist/isometrik-webchat/p-de8a8642.js.map +1 -0
  455. package/dist/isometrik-webchat/p-e09b32eb.js +591 -0
  456. package/dist/isometrik-webchat/p-e09b32eb.js.map +1 -0
  457. package/dist/isometrik-webchat/p-e1255160.js +2 -0
  458. package/dist/isometrik-webchat/p-e1255160.js.map +1 -0
  459. package/dist/isometrik-webchat/p-e3731295.js +274 -0
  460. package/dist/isometrik-webchat/p-e3731295.js.map +1 -0
  461. package/dist/isometrik-webchat/p-e4efea64.entry.js +2 -0
  462. package/dist/isometrik-webchat/p-e4efea64.entry.js.map +1 -0
  463. package/dist/isometrik-webchat/p-ef6e482a.entry.js +2 -0
  464. package/dist/isometrik-webchat/p-ef6e482a.entry.js.map +1 -0
  465. package/dist/isometrik-webchat/p-f1f5d5bd.js +3 -0
  466. package/dist/isometrik-webchat/p-f1f5d5bd.js.map +1 -0
  467. package/dist/isometrik-webchat/p-ff9f3dfe.js +203 -0
  468. package/dist/isometrik-webchat/p-ff9f3dfe.js.map +1 -0
  469. package/dist/loader/cdn.js +1 -0
  470. package/dist/loader/index.cjs.js +1 -0
  471. package/dist/loader/index.d.ts +24 -0
  472. package/dist/loader/index.es2017.js +1 -0
  473. package/dist/loader/index.js +2 -0
  474. package/dist/loader/package.json +11 -0
  475. package/dist/types/app-root.d.ts +0 -0
  476. package/dist/types/components/ChatUIComponent/AddMember.d.ts +13 -0
  477. package/dist/types/components/ChatUIComponent/AudioBubble.d.ts +39 -0
  478. package/dist/types/components/ChatUIComponent/BlockChatList.d.ts +13 -0
  479. package/dist/types/components/ChatUIComponent/ChatDocumentMessageBubble.d.ts +5 -0
  480. package/dist/types/components/ChatUIComponent/ChatImageMessageBubble.d.ts +5 -0
  481. package/dist/types/components/ChatUIComponent/ChatOwnProfile/Profile.d.ts +42 -0
  482. package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +85 -0
  483. package/dist/types/components/ChatUIComponent/ChatVideoMessageBubble.d.ts +5 -0
  484. package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +154 -0
  485. package/dist/types/components/ChatUIComponent/ForwardMessageList.d.ts +15 -0
  486. package/dist/types/components/ChatUIComponent/GroupCast.d.ts +26 -0
  487. package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +45 -0
  488. package/dist/types/components/ChatUIComponent/ReactionContainer.d.ts +12 -0
  489. package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +120 -0
  490. package/dist/types/components/Login.d.ts +13 -0
  491. package/dist/types/components/Signup.d.ts +17 -0
  492. package/dist/types/components/chat-main.d.ts +15 -0
  493. package/dist/types/components/my-component/my-component.d.ts +16 -0
  494. package/dist/types/components/my-component/web-chat/WebchatRightSide.d.ts +42 -0
  495. package/dist/types/components/theme-provider.d.ts +44 -0
  496. package/dist/types/components.d.ts +838 -0
  497. package/dist/types/index.d.ts +37 -0
  498. package/dist/types/stencil-public-runtime.d.ts +1678 -0
  499. package/dist/types/store/conversation.d.ts +17 -0
  500. package/dist/types/store/group-members.d.ts +18 -0
  501. package/dist/types/store/unread-count.d.ts +10 -0
  502. package/dist/types/stories/Components/Toaster/toast-helper.d.ts +8 -0
  503. package/dist/types/types/ConversationDetailsTypes.d.ts +52 -0
  504. package/dist/types/utils/getFomattedDate.d.ts +1 -0
  505. package/dist/types/utils/utils.d.ts +1 -0
  506. package/package.json +89 -0
  507. package/readme.md +569 -0
@@ -0,0 +1,571 @@
1
+ 'use strict';
2
+
3
+ const Image = require('./Image-67c52acd.js');
4
+ const taguser = require('./taguser-aca04ed9.js');
5
+ require('./ReactionsContainer-a6ce9059.js');
6
+ require('./index-9afe62b6.js');
7
+
8
+ class VideoMessageBubble extends Image.h {
9
+ static properties = {
10
+ bgColor: { type: String },
11
+ borderWidth: { type: String },
12
+ borderColor: { type: String },
13
+ borderStyle: { type: String },
14
+ borderRadius: { type: String },
15
+ padding: { type: String },
16
+ videoSrc: { type: String },
17
+ videoType: { type: String },
18
+ time: { type: String },
19
+ height: { type: String },
20
+ width: { type: String },
21
+ playing: { type: Boolean },
22
+ isRead: { type: Boolean },
23
+ isSelf: { type: Boolean },
24
+ isDelivered: { type: String },
25
+ textColor: { type: String },
26
+ message: { type: String },
27
+ mentionedUsers: { type: Array },
28
+ messageId: { type: String },
29
+ reactions: { type: Object },
30
+ showConfirmationPopup: { type: Boolean },
31
+ selectedEmojiToRemove: { type: Object },
32
+ showAllReactionsPopup: {type: Boolean},
33
+ showReactionButton: {type: Boolean},
34
+ showEmojiReactions: {type: Boolean},
35
+ userMetaData: {type: Object},
36
+ messageType: { type: Number },
37
+ timeColor: { type: String },
38
+ showReactionOnHover: { type: Boolean },
39
+ };
40
+
41
+ constructor() {
42
+ super();
43
+ this.playing = false;
44
+ this.isPopupOpen = false;
45
+ this.mentionedUsers = [];
46
+ this.showReactionButton = false;
47
+ this.showEmojiReactions = false;
48
+ this.reactions = {};
49
+ this.showAllReactionsPopup = false;
50
+ this.showReactionOnHover = false;
51
+ }
52
+
53
+ static styles = Image.i`
54
+ reaction-container {
55
+ display: block;
56
+ min-height: 150px;
57
+ max-height: fit-content;
58
+ min-width: 300px;
59
+ max-width: 400px;
60
+ position: absolute;
61
+ z-index: 100;
62
+ }
63
+ .video-message-container {
64
+ width: fit-content;
65
+ position: relative;
66
+ }
67
+
68
+ .time-stamp-container {
69
+ position: absolute;
70
+ bottom: 3px;
71
+ right: 10px;
72
+ font-size: 12px;
73
+ display: flex;
74
+ align-items: center;
75
+ gap: 3px;
76
+ margin-bottom: 10px;
77
+ }
78
+
79
+ .controls {
80
+ display: flex;
81
+ justify-content: start;
82
+ gap: 10px;
83
+ }
84
+
85
+ .controls button {
86
+ padding: 5px 10px;
87
+ border: none;
88
+ cursor: pointer;
89
+ background: transparent;
90
+ border-radius: 5px;
91
+ }
92
+
93
+ .video_play {
94
+ position: absolute;
95
+ top: 50%;
96
+ left: 50%;
97
+ transform: translate(-50%, -50%);
98
+ }
99
+
100
+ .video_pause {
101
+ position: absolute;
102
+ top: 50%;
103
+ left: 50%;
104
+ transform: translate(-50%, -50%);
105
+ }
106
+
107
+ .video_fullscreen {
108
+ position: absolute;
109
+ right: 10px;
110
+ bottom: 25px;
111
+ }
112
+ .actions {
113
+ position: absolute;
114
+ left: -15px;
115
+ cursor: pointer;
116
+ top: 5px;
117
+ }
118
+
119
+ .popup {
120
+ position: absolute;
121
+ top: 0px;
122
+ left: -100px;
123
+ background-color: white;
124
+ border: 1px solid #eef1fa;
125
+ border-radius: 5px;
126
+ padding: 10px;
127
+ box-shadow: 0 2px 10px #eef1fa;
128
+ z-index: 10;
129
+ display: flex;
130
+ flex-items: column;
131
+ align-items: center;
132
+ justify-content: center;
133
+ }
134
+
135
+ .popup div {
136
+ cursor: pointer;
137
+ }
138
+
139
+ .emoji-slider {
140
+ position: absolute;
141
+ }
142
+
143
+ emoji-reactions {
144
+ position: absolute;
145
+ top: 15px;
146
+ z-index: 99;
147
+ left: 0;
148
+ }
149
+
150
+ .reaction-button {
151
+ position: absolute;
152
+ top: 50%;
153
+ right: -25px;
154
+ transform: translateY(-50%);
155
+ cursor: pointer;
156
+ z-index: 100;
157
+ }
158
+
159
+ .remaining-count {
160
+ background-color: var(--bg-primary-light);
161
+ font-size: 14px;
162
+ display: flex;
163
+ justify-content: center;
164
+ color: var(--text-primary-color);
165
+ width: 25px;
166
+ cursor: pointer;
167
+ }
168
+
169
+ .reactions-display {
170
+ position: absolute;
171
+ bottom: -10px;
172
+ right: 10px;
173
+ display: grid;
174
+ grid-template-columns: repeat(3, auto);
175
+ gap: 0;
176
+ margin-top: 4px;
177
+ background-color: transparent;
178
+ }
179
+
180
+ .reaction-item {
181
+ display: flex;
182
+ align-items: center;
183
+ gap: 2px;
184
+ border-radius: 12px;
185
+ font-size: 20px;
186
+ cursor: pointer;
187
+ background: var(--bg-secondary-color);
188
+ }
189
+ `;
190
+ openPopup() {
191
+ this.isPopupOpen = !this.isPopupOpen;
192
+ }
193
+ playVideo() {
194
+ const video = this.shadowRoot.querySelector('video');
195
+ video.play();
196
+ this.playing = true;
197
+
198
+ const container = this.shadowRoot.querySelector('.video-message-container');
199
+ container.addEventListener('mouseenter', () => {
200
+ if (this.playing) {
201
+ this.showPauseButton();
202
+ }
203
+ });
204
+ container.addEventListener('mouseleave', () => {
205
+ this.hidePauseButton();
206
+ });
207
+ }
208
+
209
+ pauseVideo() {
210
+ const video = this.shadowRoot.querySelector('video');
211
+ video.pause();
212
+ this.playing = false;
213
+ this.hidePauseButton();
214
+ }
215
+
216
+ showPauseButton() {
217
+ const pauseButton = this.shadowRoot.querySelector('.video_pause');
218
+ pauseButton.style.display = 'block';
219
+ }
220
+
221
+ hidePauseButton() {
222
+ const pauseButton = this.shadowRoot.querySelector('.video_pause');
223
+ pauseButton.style.display = 'none';
224
+ }
225
+
226
+ togglePlayPause() {
227
+ if (this.playing) {
228
+ this.pauseVideo();
229
+ } else {
230
+ this.playVideo();
231
+ }
232
+ }
233
+ handleMentionClick = (user) => {
234
+ this.dispatchEvent(
235
+ new CustomEvent('tagUserClick', {
236
+ detail: { userId: user?.userId, userName: user?.userName },
237
+ bubbles: true,
238
+ composed: true,
239
+ })
240
+ );
241
+ };
242
+
243
+ fullscreenVideo() {
244
+ const video = this.shadowRoot.querySelector('video');
245
+ if (video.requestFullscreen) {
246
+ video.requestFullscreen();
247
+ }
248
+ }
249
+
250
+ handleMouseEnter() {
251
+ if(this.showReactionOnHover) {
252
+ this.showReactionButton = true;
253
+ }
254
+ }
255
+
256
+
257
+ handleReactionRemove(reaction) {
258
+ this.showEmojiReactions = false;
259
+
260
+ this.showConfirmationPopup = true;
261
+ this.selectedEmojiToRemove = reaction;
262
+ setTimeout(() => {
263
+ document.addEventListener('click', this.handleOutsideClick);
264
+ }, 100);
265
+ }
266
+ handleMouseLeave(e) {
267
+ const messageContainer = this.renderRoot.querySelector('.message-container');
268
+ const emojiReactions = this.renderRoot.querySelector('emoji-reactions');
269
+ const reactionButton = this.renderRoot.querySelector('.reaction-button');
270
+
271
+ const isEmojiSliderOpen = this.showEmojiReactions;
272
+
273
+ const isMovingToMessage = messageContainer?.contains(e.relatedTarget);
274
+ const isMovingToEmoji = emojiReactions && emojiReactions?.contains(e.relatedTarget);
275
+ const isMovingToReactionButton = reactionButton && reactionButton?.contains(e.relatedTarget);
276
+
277
+ if (!isMovingToMessage && !isMovingToEmoji && !isMovingToReactionButton) {
278
+ this.showReactionButton = false;
279
+
280
+ if (!isEmojiSliderOpen) {
281
+ this.showEmojiReactions = false;
282
+ }
283
+ }
284
+ }
285
+
286
+ handleOutsideClick = (e) => {
287
+ const emojiReactions = this.renderRoot.querySelector('emoji-reactions');
288
+ const messageContainer = this.renderRoot.querySelector('.message-container');
289
+ const reactionContainer = this.renderRoot.querySelector('reaction-container');
290
+
291
+ const path = e.composedPath();
292
+
293
+ if ((this.showEmojiReactions &&
294
+ !path.includes(emojiReactions) &&
295
+ !path.includes(messageContainer)) ||
296
+ (this.showConfirmationPopup &&
297
+ !path.includes(reactionContainer) &&
298
+ !path.includes(messageContainer))
299
+ ) {
300
+ this.showEmojiReactions = false;
301
+ this.showConfirmationPopup = false;
302
+ document.removeEventListener('click', this.handleOutsideClick);
303
+ }
304
+ }
305
+ toggleEmojiReactions() {
306
+ this.showConfirmationPopup = false;
307
+
308
+ this.showEmojiReactions = !this.showEmojiReactions;
309
+
310
+ if (this.showEmojiReactions) {
311
+ setTimeout(() => {
312
+ document.addEventListener('click', this.handleOutsideClick);
313
+ }, 100);
314
+ }
315
+ }
316
+ handleEmojiClick(emoji) {
317
+ const currentUserId = this.userMetaData?.userId;
318
+ const usersForEmoji = this.reactions[emoji.id] || [];
319
+ const hasReaction = usersForEmoji.includes(currentUserId);
320
+
321
+ let existingReactionEmojiId = null;
322
+
323
+ for (const [emojiId, userIds] of Object.entries(this.reactions)) {
324
+ if (userIds.includes(currentUserId)) {
325
+ existingReactionEmojiId = emojiId;
326
+ break;
327
+ }
328
+ }
329
+
330
+ if (existingReactionEmojiId && existingReactionEmojiId !== emoji.id) {
331
+ this.dispatchEvent(
332
+ new CustomEvent('reaction-removed', {
333
+ detail: {
334
+ messageId: this.messageId,
335
+ emojiId: existingReactionEmojiId,
336
+ },
337
+ bubbles: true,
338
+ composed: true,
339
+ }),
340
+ );
341
+ }
342
+
343
+ if (hasReaction) {
344
+ this.dispatchEvent(
345
+ new CustomEvent('reaction-removed', {
346
+ detail: {
347
+ messageId: this.messageId,
348
+ emojiId: emoji.id,
349
+ },
350
+ bubbles: true,
351
+ composed: true,
352
+ }),
353
+ );
354
+ } else {
355
+ this.dispatchEvent(
356
+ new CustomEvent('reaction-added', {
357
+ detail: {
358
+ messageId: this.messageId,
359
+ emojiId: emoji.id,
360
+ },
361
+ bubbles: true,
362
+ composed: true,
363
+ }),
364
+ );
365
+ }
366
+
367
+ this.showEmojiReactions = false;
368
+ document.removeEventListener('click', this.handleOutsideClick);
369
+ }
370
+ handleConfirmRemove() {
371
+ if (this.selectedEmojiToRemove) {
372
+ this.dispatchEvent(
373
+ new CustomEvent('reaction-removed', {
374
+ detail: {
375
+ messageId: this.messageId,
376
+ emojiId: this.selectedEmojiToRemove.emojiId,
377
+ },
378
+ bubbles: true,
379
+ composed: true,
380
+ }),
381
+ );
382
+ }
383
+ this.closeConfirmationPopup();
384
+ }
385
+
386
+ closeConfirmationPopup() {
387
+ this.showConfirmationPopup = false;
388
+ this.selectedEmojiToRemove = null;
389
+ }
390
+
391
+ render() {
392
+
393
+ const emojiList = document.createElement('emoji-reactions').emojis;
394
+ const allReactions = Object.keys(this.reactions)
395
+ .map(reaction => {
396
+ const matchingEmoji = emojiList.find(emoji => emoji.id === reaction);
397
+ return {
398
+ emojiId: reaction,
399
+ messageId: this.reactions[reaction],
400
+ src: matchingEmoji?.src,
401
+ };
402
+ })
403
+ .filter(reaction => Array.isArray(reaction.messageId) && reaction.messageId.length > 0);
404
+
405
+ const visibleReactions = allReactions.slice(0, 2);
406
+ const remainingCount = allReactions.length > 2 ? allReactions.length - 2 : 0;
407
+ return Image.ke`
408
+ <div
409
+ @mouseover="${() => this.handleMouseEnter()}"
410
+ @mouseout="${e => this.handleMouseLeave(e)}"
411
+ class="video-message-container"
412
+ style="padding:${this.padding};
413
+ border-width: ${this.borderWidth};
414
+ border-color: ${this.borderColor};
415
+ border-style:${this.borderStyle};
416
+ border-radius:${this.borderRadius || 'var(--radius-bubble)'};
417
+ background-color: ${this.bgColor || (this.isSelf ? 'var(--bg-outgoing-message)' : 'var(--bg-incoming-message)')}
418
+ "
419
+ >
420
+ ${this.messageType === 1
421
+ ? Image.ke`
422
+ <forward-ui></forward-ui>
423
+ `
424
+ : null}
425
+ ${!this.isSelf && this.showReactionButton
426
+ ? Image.ke`
427
+ <div class="reaction-button" @click="${() => this.toggleEmojiReactions()}" ">
428
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="var(--text-primary-color)">
429
+ <path d="M612-516q25 0 42.5-17.5T672-576q0-25-17.5-42.5T612-636q-25 0-42.5 17.5T552-576q0 25 17.5 42.5T612-516Zm-264 0q25 0 42.5-17.5T408-576q0-25-17.5-42.5T348-636q-25 0-42.5 17.5T288-576q0 25 17.5 42.5T348-516Zm132 228q60 0 110.5-31t79.5-84H290q29 53 79.5 84T480-288Zm.28 192Q401-96 331-126t-122.5-82.5Q156-261 126-330.96t-30-149.5Q96-560 126-629.5q30-69.5 82.5-122T330.96-834q69.96-30 149.5-30t149.04 30q69.5 30 122 82.5T834-629.28q30 69.73 30 149Q864-401 834-331t-82.5 122.5Q699-156 629.28-126q-69.73 30-149 30ZM480-480Zm0 312q130 0 221-91t91-221q0-130-91-221t-221-91q-130 0-221 91t-91 221q0 130 91 221t221 91Z"/>
430
+ </svg>
431
+ </div>
432
+ `
433
+ : ''}
434
+
435
+ ${this.showConfirmationPopup
436
+ ? Image.ke` <reaction-container .messageId=${this.messageId} .userMetaData=${this.userMetaData} .reactions=${allReactions}></reaction-container> `
437
+ : ''}
438
+ ${this.showEmojiReactions
439
+ ? Image.ke`
440
+ <emoji-reactions .isOpen="${this.showEmojiReactions}" .onEmojiSelect="${emoji => this.handleEmojiClick(emoji)}" .selectedEmojis="${this.reactions}"></emoji-reactions>
441
+ `
442
+ : ''}
443
+
444
+ <div class="reactions-display">
445
+ ${visibleReactions?.map(
446
+ reaction => Image.ke`
447
+ <span class="reaction-item" @click="${() => this.handleReactionRemove(reaction)}"> ${reaction.src ? Image.ke`<span>${reaction.src}</span>` : ''} </span>
448
+ `,
449
+ )}
450
+ ${remainingCount > 0
451
+ ? Image.ke`
452
+ <span @click="${() => this.handleReactionRemove(visibleReactions[0])}" class="reaction-item remaining-count"> +${remainingCount} </span>
453
+
454
+ `
455
+ : ''}
456
+ </div>
457
+
458
+ <div >
459
+ <div class="time-stamp-container">
460
+ <timestamp-element .time="${this.time || new Date().toISOString()}" .color="${this.timeColor}"></timestamp-element>
461
+ ${this.isSelf
462
+ ? this.isRead == true
463
+ ? Image.ke`<blue-read-mark></blue-read-mark>`
464
+ : this.isDelivered == 'true'
465
+ ? Image.ke`<double-mark></double-mark>`
466
+ : this.isDelivered == 'pending'
467
+ ? Image.ke`<clock-mark></clock-mark>`
468
+ : Image.ke`<single-mark></single-mark>`
469
+ : null}
470
+ </div>
471
+ <video
472
+ style="height: ${this.height || '150px'};
473
+ width:${this.width || '150px'};
474
+ object-fit: cover;
475
+ overflow: hidden;
476
+ border-radius:${this.borderRadius};
477
+ "
478
+ @click="${this.togglePlayPause}"
479
+ >
480
+ <source src=${this.videoSrc} type=${this.videoType || 'video/mp4'} />
481
+ </video>
482
+
483
+ <div class="controls">
484
+ ${this.message && !this.message.includes('AttachmentMessage:')
485
+ ? Image.ke`
486
+ <span style="font-size: 14px; color: ${this.textColor}">
487
+ ${taguser.processTextWithMentions(this.message, this.mentionedUsers, this.handleMentionClick, this.isSelf)}
488
+ </span>
489
+ `
490
+ : null}
491
+ <button class="video_play" style="display: ${this.playing ? 'none' : 'block'};" @click="${this.playVideo}">
492
+ <svg
493
+ height="50px"
494
+ width="50px"
495
+ version="1.1"
496
+ id="_x32_"
497
+ xmlns="http://www.w3.org/2000/svg"
498
+ xmlns:xlink="http://www.w3.org/1999/xlink"
499
+ viewBox="-51.2 -51.2 614.40 614.40"
500
+ xml:space="preserve"
501
+ fill="#000000"
502
+ >
503
+ <g id="SVGRepo_bgCarrier" stroke-width="0" transform="translate(64,64), scale(0.75)">
504
+ <rect x="-51.2" y="-51.2" width="614.40" height="614.40" rx="307.2" fill="" strokewidth="0"></rect>
505
+ </g>
506
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
507
+ <g id="SVGRepo_iconCarrier">
508
+ <style type="text/css">
509
+ .st0 {
510
+ fill: #eff1fa;
511
+ }
512
+ </style>
513
+ <g>
514
+ <path
515
+ class="st0"
516
+ d="M256,0C114.625,0,0,114.625,0,256c0,141.374,114.625,256,256,256c141.374,0,256-114.626,256-256 C512,114.625,397.374,0,256,0z M351.062,258.898l-144,85.945c-1.031,0.626-2.344,0.657-3.406,0.031 c-1.031-0.594-1.687-1.702-1.687-2.937v-85.946v-85.946c0-1.218,0.656-2.343,1.687-2.938c1.062-0.609,2.375-0.578,3.406,0.031 l144,85.962c1.031,0.586,1.641,1.718,1.641,2.89C352.703,257.187,352.094,258.297,351.062,258.898z"
517
+ ></path>
518
+ </g>
519
+ </g>
520
+ </svg>
521
+ </button>
522
+ <button class="video_pause" style="display: ${this.playing ? 'block' : 'none'};" @click="${this.pauseVideo}">
523
+ <svg width="60px" height="60px" viewBox="-2.4 -2.4 28.80 28.80" fill="none" xmlns="http://www.w3.org/2000/svg">
524
+ <g id="SVGRepo_bgCarrier" stroke-width="0" transform="translate(3.959999999999999,3.959999999999999), scale(0.67)">
525
+ <rect x="-2.4" y="-2.4" width="28.80" height="28.80" rx="14.4" fill="#000" strokewidth="0"></rect>
526
+ </g>
527
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
528
+ <g id="SVGRepo_iconCarrier">
529
+ <path
530
+ fill-rule="evenodd"
531
+ clip-rule="evenodd"
532
+ d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM8.07612 8.61732C8 8.80109 8 9.03406 8 9.5V14.5C8 14.9659 8 15.1989 8.07612 15.3827C8.17761 15.6277 8.37229 15.8224 8.61732 15.9239C8.80109 16 9.03406 16 9.5 16C9.96594 16 10.1989 16 10.3827 15.9239C10.6277 15.8224 10.8224 15.6277 10.9239 15.3827C11 15.1989 11 14.9659 11 14.5V9.5C11 9.03406 11 8.80109 10.9239 8.61732C10.8224 8.37229 10.6277 8.17761 10.3827 8.07612C10.1989 8 9.96594 8 9.5 8C9.03406 8 8.80109 8 8.61732 8.07612C8.37229 8.17761 8.17761 8.37229 8.07612 8.61732ZM13.0761 8.61732C13 8.80109 13 9.03406 13 9.5V14.5C13 14.9659 13 15.1989 13.0761 15.3827C13.1776 15.6277 13.3723 15.8224 13.6173 15.9239C13.8011 16 14.0341 16 14.5 16C14.9659 16 15.1989 16 15.3827 15.9239C15.6277 15.8224 15.8224 15.6277 15.9239 15.3827C16 15.1989 16 14.9659 16 14.5V9.5C16 9.03406 16 8.80109 15.9239 8.61732C15.8224 8.37229 15.6277 8.17761 15.3827 8.07612C15.1989 8 14.9659 8 14.5 8C14.0341 8 13.8011 8 13.6173 8.07612C13.3723 8.17761 13.1776 8.37229 13.0761 8.61732Z"
533
+ fill="#EFF1FA"
534
+ ></path>
535
+ </g>
536
+ </svg>
537
+ </button>
538
+ <button class="video_fullscreen" @click="${this.fullscreenVideo}">
539
+ <svg width="16px" height="16px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
540
+ <g id="SVGRepo_bgCarrier" stroke-width="0"></g>
541
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
542
+ <g id="SVGRepo_iconCarrier">
543
+ <path
544
+ d="M23 4C23 2.34315 21.6569 1 20 1H16C15.4477 1 15 1.44772 15 2C15 2.55228 15.4477 3 16 3H20C20.5523 3 21 3.44772 21 4V8C21 8.55228 21.4477 9 22 9C22.5523 9 23 8.55228 23 8V4Z"
545
+ fill="#fff"
546
+ ></path>
547
+ <path
548
+ d="M23 16C23 15.4477 22.5523 15 22 15C21.4477 15 21 15.4477 21 16V20C21 20.5523 20.5523 21 20 21H16C15.4477 21 15 21.4477 15 22C15 22.5523 15.4477 23 16 23H20C21.6569 23 23 21.6569 23 20V16Z"
549
+ fill="#fff"
550
+ ></path>
551
+ <path
552
+ d="M4 21H8C8.55228 21 9 21.4477 9 22C9 22.5523 8.55228 23 8 23H4C2.34315 23 1 21.6569 1 20V16C1 15.4477 1.44772 15 2 15C2.55228 15 3 15.4477 3 16V20C3 20.5523 3.44772 21 4 21Z"
553
+ fill="#fff"
554
+ ></path>
555
+ <path
556
+ d="M1 8C1 8.55228 1.44772 9 2 9C2.55228 9 3 8.55228 3 8L3 4C3 3.44772 3.44772 3 4 3H8C8.55228 3 9 2.55228 9 2C9 1.44772 8.55228 1 8 1H4C2.34315 1 1 2.34315 1 4V8Z"
557
+ fill="#fff"
558
+ ></path>
559
+ </g>
560
+ </svg>
561
+ </button>
562
+ </div>
563
+ </div>
564
+ </div>
565
+ `;
566
+ }
567
+ }
568
+
569
+ customElements.define('video-message', VideoMessageBubble);
570
+
571
+ //# sourceMappingURL=VideoMessageBubble-c4694a78.js.map
@@ -0,0 +1 @@
1
+ {"file":"VideoMessageBubble-c4694a78.js","mappings":";;;;;;;AAaA,MAAM,kBAAkB,SAASA,OAAU,CAAC;AAC5C,EAAE,OAAO,UAAU,GAAG;AACtB,IAAI,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAC7B,IAAI,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AACjC,IAAI,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AACjC,IAAI,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AACjC,IAAI,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAClC,IAAI,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAC7B,IAAI,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAC9B,IAAI,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAC/B,IAAI,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAC1B,IAAI,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAC5B,IAAI,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAC3B,IAAI,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;AAC9B,IAAI,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;AAC7B,IAAI,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;AAC7B,IAAI,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AACjC,IAAI,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAC/B,IAAI,OA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C,OAAG,CAAC;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,CAAC,CAAC;AACJ,EAAE,SAAS,GAAG;AACd,IAAI,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;AACzC,GAAG;AACH,EAAE,SAAS,GAAG;AACd,IAAI,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AACzD,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;AACjB,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;AACxB;AACA,IAAI,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC;AAChF,IAAI,SAAS,CAAC,gBAAgB,CAAC,YAAY,EAAE,MAAM;AACnD,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE;AACxB,QAAQ,IAAI,CAAC,eAAe,EAAE,CAAC;AAC/B,OAAO;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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,CAAC,CAAC;AACN,GAAG;AACH,CAAC;AACD;AACA,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC;;","names":["LitElement","css","html","processTextWithMentions"],"sources":["src/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.js"],"sourcesContent":["import { LitElement } from 'lit';\nimport { html, css } from 'lit';\nimport '../../Time/Timestamp';\nimport '../../ReadMark/SingleMark/SingleMark.js';\nimport '../../ReadMark/BlueReadMark/BlueReadMark.js';\nimport '../../ReadMark/DoubleMark/DoubleMark.js';\nimport '../../ReadMark/ClockMark/ClockMark.js';\nimport { parseMessageWithLink } from '../../../../lib/helpers.js';\nimport { processTextWithMentions } from '../../../../lib/taguser.js';\nimport '../../EmojiReactions/EmojiReactions.js';\nimport '../../Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js';\nimport '../../../../components/ChatUIComponent/ReactionContainer.tsx';\nimport'../../ForwardMessage/ForwardUi.js'\nclass VideoMessageBubble extends LitElement {\n static properties = {\n bgColor: { type: String },\n borderWidth: { type: String },\n borderColor: { type: String },\n borderStyle: { type: String },\n borderRadius: { type: String },\n padding: { type: String },\n videoSrc: { type: String },\n videoType: { type: String },\n time: { type: String },\n height: { type: String },\n width: { type: String },\n playing: { type: Boolean },\n isRead: { type: Boolean },\n isSelf: { type: Boolean },\n isDelivered: { type: String },\n textColor: { type: String },\n message: { type: String },\n mentionedUsers: { type: Array },\n messageId: { type: String },\n reactions: { type: Object },\n showConfirmationPopup: { type: Boolean },\n selectedEmojiToRemove: { type: Object },\n showAllReactionsPopup: {type: Boolean},\n showReactionButton: {type: Boolean},\n showEmojiReactions: {type: Boolean},\n userMetaData: {type: Object},\n messageType: { type: Number },\n timeColor: { type: String },\n showReactionOnHover: { type: Boolean },\n };\n\n constructor() {\n super();\n this.playing = false;\n this.isPopupOpen = false;\n this.mentionedUsers = [];\n this.showReactionButton = false;\n this.showEmojiReactions = false;\n this.reactions = {};\n this.showAllReactionsPopup = false;\n this.showReactionOnHover = false;\n }\n\n static styles = css`\n reaction-container {\n display: block;\n min-height: 150px;\n max-height: fit-content;\n min-width: 300px;\n max-width: 400px;\n position: absolute;\n z-index: 100;\n }\n .video-message-container {\n width: fit-content;\n position: relative;\n }\n\n .time-stamp-container {\n position: absolute;\n bottom: 3px;\n right: 10px;\n font-size: 12px;\n display: flex;\n align-items: center;\n gap: 3px;\n margin-bottom: 10px;\n }\n\n .controls {\n display: flex;\n justify-content: start;\n gap: 10px;\n }\n\n .controls button {\n padding: 5px 10px;\n border: none;\n cursor: pointer;\n background: transparent;\n border-radius: 5px;\n }\n\n .video_play {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n\n .video_pause {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n\n .video_fullscreen {\n position: absolute;\n right: 10px;\n bottom: 25px;\n }\n .actions {\n position: absolute;\n left: -15px;\n cursor: pointer;\n top: 5px;\n }\n\n .popup {\n position: absolute;\n top: 0px;\n left: -100px;\n background-color: white;\n border: 1px solid #eef1fa;\n border-radius: 5px;\n padding: 10px;\n box-shadow: 0 2px 10px #eef1fa;\n z-index: 10;\n display: flex;\n flex-items: column;\n align-items: center;\n justify-content: center;\n }\n\n .popup div {\n cursor: pointer;\n }\n\n .emoji-slider {\n position: absolute;\n }\n\n emoji-reactions {\n position: absolute;\n top: 15px;\n z-index: 99;\n left: 0;\n }\n\n .reaction-button {\n position: absolute;\n top: 50%;\n right: -25px;\n transform: translateY(-50%);\n cursor: pointer;\n z-index: 100;\n }\n\n .remaining-count {\n background-color: var(--bg-primary-light);\n font-size: 14px;\n display: flex;\n justify-content: center;\n color: var(--text-primary-color);\n width: 25px;\n cursor: pointer;\n }\n\n .reactions-display {\n position: absolute;\n bottom: -10px;\n right: 10px;\n display: grid;\n grid-template-columns: repeat(3, auto);\n gap: 0;\n margin-top: 4px;\n background-color: transparent;\n }\n\n .reaction-item {\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 12px;\n font-size: 20px;\n cursor: pointer;\n background: var(--bg-secondary-color);\n }\n `;\n openPopup() {\n this.isPopupOpen = !this.isPopupOpen;\n }\n playVideo() {\n const video = this.shadowRoot.querySelector('video');\n video.play();\n this.playing = true;\n\n const container = this.shadowRoot.querySelector('.video-message-container');\n container.addEventListener('mouseenter', () => {\n if (this.playing) {\n this.showPauseButton();\n }\n });\n container.addEventListener('mouseleave', () => {\n this.hidePauseButton();\n });\n }\n\n pauseVideo() {\n const video = this.shadowRoot.querySelector('video');\n video.pause();\n this.playing = false;\n this.hidePauseButton();\n }\n\n showPauseButton() {\n const pauseButton = this.shadowRoot.querySelector('.video_pause');\n pauseButton.style.display = 'block';\n }\n\n hidePauseButton() {\n const pauseButton = this.shadowRoot.querySelector('.video_pause');\n pauseButton.style.display = 'none';\n }\n\n togglePlayPause() {\n if (this.playing) {\n this.pauseVideo();\n } else {\n this.playVideo();\n }\n }\n handleMentionClick = (user) => {\n this.dispatchEvent(\n new CustomEvent('tagUserClick', {\n detail: { userId: user?.userId, userName: user?.userName },\n bubbles: true,\n composed: true,\n })\n );\n };\n\n fullscreenVideo() {\n const video = this.shadowRoot.querySelector('video');\n if (video.requestFullscreen) {\n video.requestFullscreen();\n }\n }\n\n handleMouseEnter() {\n if(this.showReactionOnHover) {\n this.showReactionButton = true;\n }\n }\n\n\n handleReactionRemove(reaction) {\n this.showEmojiReactions = false;\n\n this.showConfirmationPopup = true;\n this.selectedEmojiToRemove = reaction;\n setTimeout(() => {\n document.addEventListener('click', this.handleOutsideClick)\n }, 100)\n }\n handleMouseLeave(e) {\n const messageContainer = this.renderRoot.querySelector('.message-container');\n const emojiReactions = this.renderRoot.querySelector('emoji-reactions');\n const reactionButton = this.renderRoot.querySelector('.reaction-button');\n\n const isEmojiSliderOpen = this.showEmojiReactions;\n\n const isMovingToMessage = messageContainer?.contains(e.relatedTarget);\n const isMovingToEmoji = emojiReactions && emojiReactions?.contains(e.relatedTarget);\n const isMovingToReactionButton = reactionButton && reactionButton?.contains(e.relatedTarget);\n\n if (!isMovingToMessage && !isMovingToEmoji && !isMovingToReactionButton) {\n this.showReactionButton = false;\n \n if (!isEmojiSliderOpen) {\n this.showEmojiReactions = false;\n }\n }\n }\n\n handleOutsideClick = (e) => {\n const emojiReactions = this.renderRoot.querySelector('emoji-reactions');\n const messageContainer = this.renderRoot.querySelector('.message-container');\n const reactionContainer = this.renderRoot.querySelector('reaction-container');\n \n const path = e.composedPath();\n \n if ((this.showEmojiReactions &&\n !path.includes(emojiReactions) &&\n !path.includes(messageContainer)) ||\n (this.showConfirmationPopup &&\n !path.includes(reactionContainer) &&\n !path.includes(messageContainer))\n ) {\n this.showEmojiReactions = false;\n this.showConfirmationPopup = false;\n document.removeEventListener('click', this.handleOutsideClick);\n }\n }\n toggleEmojiReactions() {\n this.showConfirmationPopup = false;\n\n this.showEmojiReactions = !this.showEmojiReactions;\n \n if (this.showEmojiReactions) {\n setTimeout(() => {\n document.addEventListener('click', this.handleOutsideClick);\n }, 100);\n }\n }\n handleEmojiClick(emoji) {\n const currentUserId = this.userMetaData?.userId;\n const usersForEmoji = this.reactions[emoji.id] || [];\n const hasReaction = usersForEmoji.includes(currentUserId);\n \n let existingReactionEmojiId = null;\n \n for (const [emojiId, userIds] of Object.entries(this.reactions)) {\n if (userIds.includes(currentUserId)) {\n existingReactionEmojiId = emojiId;\n break;\n }\n }\n \n if (existingReactionEmojiId && existingReactionEmojiId !== emoji.id) {\n this.dispatchEvent(\n new CustomEvent('reaction-removed', {\n detail: {\n messageId: this.messageId,\n emojiId: existingReactionEmojiId,\n },\n bubbles: true,\n composed: true,\n }),\n );\n }\n \n if (hasReaction) {\n this.dispatchEvent(\n new CustomEvent('reaction-removed', {\n detail: {\n messageId: this.messageId,\n emojiId: emoji.id,\n },\n bubbles: true,\n composed: true,\n }),\n );\n } else {\n this.dispatchEvent(\n new CustomEvent('reaction-added', {\n detail: {\n messageId: this.messageId,\n emojiId: emoji.id,\n },\n bubbles: true,\n composed: true,\n }),\n );\n }\n \n this.showEmojiReactions = false;\n document.removeEventListener('click', this.handleOutsideClick);\n }\n handleConfirmRemove() {\n if (this.selectedEmojiToRemove) {\n this.dispatchEvent(\n new CustomEvent('reaction-removed', {\n detail: {\n messageId: this.messageId,\n emojiId: this.selectedEmojiToRemove.emojiId,\n },\n bubbles: true,\n composed: true,\n }),\n );\n }\n this.closeConfirmationPopup();\n }\n\n closeConfirmationPopup() {\n this.showConfirmationPopup = false;\n this.selectedEmojiToRemove = null;\n }\n\n render() {\n\n const emojiList = document.createElement('emoji-reactions').emojis;\n const allReactions = Object.keys(this.reactions)\n .map(reaction => {\n const matchingEmoji = emojiList.find(emoji => emoji.id === reaction);\n return {\n emojiId: reaction,\n messageId: this.reactions[reaction],\n src: matchingEmoji?.src,\n };\n })\n .filter(reaction => Array.isArray(reaction.messageId) && reaction.messageId.length > 0); \n \n const visibleReactions = allReactions.slice(0, 2);\n const remainingCount = allReactions.length > 2 ? allReactions.length - 2 : 0;\n return html`\n <div\n @mouseover=\"${() => this.handleMouseEnter()}\"\n @mouseout=\"${e => this.handleMouseLeave(e)}\"\n class=\"video-message-container\"\n style=\"padding:${this.padding}; \n border-width: ${this.borderWidth};\n border-color: ${this.borderColor};\n border-style:${this.borderStyle};\n border-radius:${this.borderRadius || 'var(--radius-bubble)'};\n background-color: ${this.bgColor || (this.isSelf ? 'var(--bg-outgoing-message)' : 'var(--bg-incoming-message)')}\n \"\n >\n ${this.messageType === 1\n ? html`\n <forward-ui></forward-ui>\n `\n : null}\n ${!this.isSelf && this.showReactionButton\n ? html`\n <div class=\"reaction-button\" @click=\"${() => this.toggleEmojiReactions()}\" \">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"var(--text-primary-color)\">\n <path d=\"M612-516q25 0 42.5-17.5T672-576q0-25-17.5-42.5T612-636q-25 0-42.5 17.5T552-576q0 25 17.5 42.5T612-516Zm-264 0q25 0 42.5-17.5T408-576q0-25-17.5-42.5T348-636q-25 0-42.5 17.5T288-576q0 25 17.5 42.5T348-516Zm132 228q60 0 110.5-31t79.5-84H290q29 53 79.5 84T480-288Zm.28 192Q401-96 331-126t-122.5-82.5Q156-261 126-330.96t-30-149.5Q96-560 126-629.5q30-69.5 82.5-122T330.96-834q69.96-30 149.5-30t149.04 30q69.5 30 122 82.5T834-629.28q30 69.73 30 149Q864-401 834-331t-82.5 122.5Q699-156 629.28-126q-69.73 30-149 30ZM480-480Zm0 312q130 0 221-91t91-221q0-130-91-221t-221-91q-130 0-221 91t-91 221q0 130 91 221t221 91Z\"/>\n </svg>\n </div>\n `\n : ''}\n\n ${this.showConfirmationPopup\n ? html` <reaction-container .messageId=${this.messageId} .userMetaData=${this.userMetaData} .reactions=${allReactions}></reaction-container> `\n : ''}\n ${this.showEmojiReactions\n ? html`\n <emoji-reactions .isOpen=\"${this.showEmojiReactions}\" .onEmojiSelect=\"${emoji => this.handleEmojiClick(emoji)}\" .selectedEmojis=\"${this.reactions}\"></emoji-reactions>\n `\n : ''}\n\n <div class=\"reactions-display\">\n ${visibleReactions?.map(\n reaction => html`\n <span class=\"reaction-item\" @click=\"${() => this.handleReactionRemove(reaction)}\"> ${reaction.src ? html`<span>${reaction.src}</span>` : ''} </span>\n `,\n )}\n ${remainingCount > 0\n ? html`\n <span @click=\"${() => this.handleReactionRemove(visibleReactions[0])}\" class=\"reaction-item remaining-count\"> +${remainingCount} </span>\n \n `\n : ''}\n </div>\n\n <div >\n <div class=\"time-stamp-container\">\n <timestamp-element .time=\"${this.time || new Date().toISOString()}\" .color=\"${this.timeColor}\"></timestamp-element>\n ${this.isSelf\n ? this.isRead == true\n ? html`<blue-read-mark></blue-read-mark>`\n : this.isDelivered == 'true'\n ? html`<double-mark></double-mark>`\n : this.isDelivered == 'pending'\n ? html`<clock-mark></clock-mark>`\n : html`<single-mark></single-mark>`\n : null}\n </div>\n <video\n style=\"height: ${this.height || '150px'}; \n width:${this.width || '150px'};\n object-fit: cover; \n overflow: hidden;\n border-radius:${this.borderRadius};\n \"\n @click=\"${this.togglePlayPause}\"\n >\n <source src=${this.videoSrc} type=${this.videoType || 'video/mp4'} />\n </video>\n\n <div class=\"controls\">\n ${this.message && !this.message.includes('AttachmentMessage:')\n ? html`\n <span style=\"font-size: 14px; color: ${this.textColor}\">\n ${processTextWithMentions(this.message, this.mentionedUsers, this.handleMentionClick, this.isSelf)}\n </span>\n `\n : null}\n <button class=\"video_play\" style=\"display: ${this.playing ? 'none' : 'block'};\" @click=\"${this.playVideo}\">\n <svg\n height=\"50px\"\n width=\"50px\"\n version=\"1.1\"\n id=\"_x32_\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"-51.2 -51.2 614.40 614.40\"\n xml:space=\"preserve\"\n fill=\"#000000\"\n >\n <g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\" transform=\"translate(64,64), scale(0.75)\">\n <rect x=\"-51.2\" y=\"-51.2\" width=\"614.40\" height=\"614.40\" rx=\"307.2\" fill=\"\" strokewidth=\"0\"></rect>\n </g>\n <g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></g>\n <g id=\"SVGRepo_iconCarrier\">\n <style type=\"text/css\">\n .st0 {\n fill: #eff1fa;\n }\n </style>\n <g>\n <path\n class=\"st0\"\n d=\"M256,0C114.625,0,0,114.625,0,256c0,141.374,114.625,256,256,256c141.374,0,256-114.626,256-256 C512,114.625,397.374,0,256,0z M351.062,258.898l-144,85.945c-1.031,0.626-2.344,0.657-3.406,0.031 c-1.031-0.594-1.687-1.702-1.687-2.937v-85.946v-85.946c0-1.218,0.656-2.343,1.687-2.938c1.062-0.609,2.375-0.578,3.406,0.031 l144,85.962c1.031,0.586,1.641,1.718,1.641,2.89C352.703,257.187,352.094,258.297,351.062,258.898z\"\n ></path>\n </g>\n </g>\n </svg>\n </button>\n <button class=\"video_pause\" style=\"display: ${this.playing ? 'block' : 'none'};\" @click=\"${this.pauseVideo}\">\n <svg width=\"60px\" height=\"60px\" viewBox=\"-2.4 -2.4 28.80 28.80\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\" transform=\"translate(3.959999999999999,3.959999999999999), scale(0.67)\">\n <rect x=\"-2.4\" y=\"-2.4\" width=\"28.80\" height=\"28.80\" rx=\"14.4\" fill=\"#000\" strokewidth=\"0\"></rect>\n </g>\n <g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></g>\n <g id=\"SVGRepo_iconCarrier\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM8.07612 8.61732C8 8.80109 8 9.03406 8 9.5V14.5C8 14.9659 8 15.1989 8.07612 15.3827C8.17761 15.6277 8.37229 15.8224 8.61732 15.9239C8.80109 16 9.03406 16 9.5 16C9.96594 16 10.1989 16 10.3827 15.9239C10.6277 15.8224 10.8224 15.6277 10.9239 15.3827C11 15.1989 11 14.9659 11 14.5V9.5C11 9.03406 11 8.80109 10.9239 8.61732C10.8224 8.37229 10.6277 8.17761 10.3827 8.07612C10.1989 8 9.96594 8 9.5 8C9.03406 8 8.80109 8 8.61732 8.07612C8.37229 8.17761 8.17761 8.37229 8.07612 8.61732ZM13.0761 8.61732C13 8.80109 13 9.03406 13 9.5V14.5C13 14.9659 13 15.1989 13.0761 15.3827C13.1776 15.6277 13.3723 15.8224 13.6173 15.9239C13.8011 16 14.0341 16 14.5 16C14.9659 16 15.1989 16 15.3827 15.9239C15.6277 15.8224 15.8224 15.6277 15.9239 15.3827C16 15.1989 16 14.9659 16 14.5V9.5C16 9.03406 16 8.80109 15.9239 8.61732C15.8224 8.37229 15.6277 8.17761 15.3827 8.07612C15.1989 8 14.9659 8 14.5 8C14.0341 8 13.8011 8 13.6173 8.07612C13.3723 8.17761 13.1776 8.37229 13.0761 8.61732Z\"\n fill=\"#EFF1FA\"\n ></path>\n </g>\n </svg>\n </button>\n <button class=\"video_fullscreen\" @click=\"${this.fullscreenVideo}\">\n <svg width=\"16px\" height=\"16px\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\"></g>\n <g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></g>\n <g id=\"SVGRepo_iconCarrier\">\n <path\n d=\"M23 4C23 2.34315 21.6569 1 20 1H16C15.4477 1 15 1.44772 15 2C15 2.55228 15.4477 3 16 3H20C20.5523 3 21 3.44772 21 4V8C21 8.55228 21.4477 9 22 9C22.5523 9 23 8.55228 23 8V4Z\"\n fill=\"#fff\"\n ></path>\n <path\n d=\"M23 16C23 15.4477 22.5523 15 22 15C21.4477 15 21 15.4477 21 16V20C21 20.5523 20.5523 21 20 21H16C15.4477 21 15 21.4477 15 22C15 22.5523 15.4477 23 16 23H20C21.6569 23 23 21.6569 23 20V16Z\"\n fill=\"#fff\"\n ></path>\n <path\n d=\"M4 21H8C8.55228 21 9 21.4477 9 22C9 22.5523 8.55228 23 8 23H4C2.34315 23 1 21.6569 1 20V16C1 15.4477 1.44772 15 2 15C2.55228 15 3 15.4477 3 16V20C3 20.5523 3.44772 21 4 21Z\"\n fill=\"#fff\"\n ></path>\n <path\n d=\"M1 8C1 8.55228 1.44772 9 2 9C2.55228 9 3 8.55228 3 8L3 4C3 3.44772 3.44772 3 4 3H8C8.55228 3 9 2.55228 9 2C9 1.44772 8.55228 1 8 1H4C2.34315 1 1 2.34315 1 4V8Z\"\n fill=\"#fff\"\n ></path>\n </g>\n </svg>\n </button>\n </div>\n </div>\n </div>\n `;\n }\n}\n\ncustomElements.define('video-message', VideoMessageBubble);\nexport { VideoMessageBubble };\n"],"version":3}