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,1219 @@
1
+ import { css, html, LitElement } from 'lit';
2
+ import { styleMap } from 'lit/directives/style-map.js';
3
+ // import '../ChatTile/ChatTile';
4
+ import '../ContactTile/ContactTile';
5
+ import { Image } from '../Image/Image';
6
+ import './MediaList';
7
+ import { generateProfileImageByInitials } from '../../../lib/helpers';
8
+ import { WEB_CONTENT } from '../../../constants/content';
9
+ import '../MembersList/MembersList';
10
+ import { groupMembersStore } from '../../../store/group-members';
11
+ import videoPlaceholder from '../../../assets/images/videoPlaceholder.svg';
12
+ import imagePlaceholder from '../../../assets/images/imagePlaceholder.svg';
13
+ import '../../../stories/Components/MessageBubble/LinkMessageBubble/LinkMessageBubble';
14
+ import { drawerDialogService } from '../Dialog-Drawer/dialog-drawer';
15
+ class PofileInfo extends LitElement {
16
+ static properties = {
17
+ //strings
18
+ padding: { type: String },
19
+ margin: { type: String },
20
+ width: { type: String },
21
+ boxShadow: { type: String },
22
+ height: { type: String },
23
+ borderRadius: { type: String },
24
+ borderWidth: { type: String },
25
+ borderColor: { type: String },
26
+ borderStyle: { type: String },
27
+ backgroundColor: { type: String },
28
+ textColor: { type: String },
29
+ fontSize: { type: String },
30
+ fontWeight: { type: String },
31
+ fontFamily: { type: String },
32
+ fontStyle: { type: String },
33
+ lineHeight: { type: String },
34
+ textAlign: { type: String },
35
+ contactImage: { type: String },
36
+ contactName: { type: String },
37
+ contactEmail: { type: String },
38
+ messageAction: { type: Object },
39
+
40
+ //arrays
41
+ groupMembers: { type: Array },
42
+ allAttachments: { type: Array },
43
+
44
+ //booleans
45
+ isGroup: { type: Boolean },
46
+ showAllMembers: { type: Boolean },
47
+ isPopupOpen: { type: Boolean },
48
+ showMediaList: { type: Boolean },
49
+ isImageFullscreen: { type: Boolean },
50
+ showConfirmationPopup: { type: Boolean },
51
+ confirmationAction: { type: String },
52
+ conversationId: { type: String, reflect: true, mutable: true },
53
+ oppenentId: { type: String, reflect: true },
54
+ userMetaData: { type: Object },
55
+ onEditTitle: { type: Function },
56
+ handleChatSelect: { type: Function },
57
+ onEditImage: { type: Function },
58
+ isEditingName: { type: Boolean },
59
+ onEditImage: { type: Function },
60
+ openOwnProfile: { type: Boolean },
61
+ editedName: { type: String },
62
+ eligibleMembers: { type: Array },
63
+ isEligibleMembersPopupOpen: { type: Boolean },
64
+ hasMoreEligibleMembers: { type: Boolean },
65
+ isLoadingMembers: { type: Boolean },
66
+ activeTab: { type: String },
67
+ docsAttachments: { type: Array },
68
+ linksAttachments: { type: Array },
69
+ allLinks: { type: Array },
70
+ allLinksCount: { type: Number },
71
+ isBlocked: { type: Boolean | String },
72
+ conversationMetaData: { type: Object },
73
+ };
74
+
75
+ static styles = css`
76
+ .contact-info-container {
77
+ display: flex;
78
+ flex-direction: column;
79
+ overflow: hidden;
80
+ height: 100%;
81
+ }
82
+
83
+ .contact-info-header {
84
+ display: flex;
85
+ align-items: center;
86
+ gap: 10px;
87
+ padding: 20px;
88
+ font-size: 18px;
89
+ background: inherit;
90
+ position: sticky;
91
+ top: 0;
92
+ z-index: 10;
93
+ background: var(--bg-primary-color);
94
+ }
95
+ .shimmer-loader {
96
+ width: 50%;
97
+ height: 40px;
98
+ position: relative;
99
+ overflow: hidden;
100
+ }
101
+
102
+ .shimmer-line {
103
+ position: absolute;
104
+ top: 0;
105
+ left: -100%;
106
+ width: 100%;
107
+ height: 100%;
108
+ background: linear-gradient(90deg, var(--bg-secondary-color) 25%, var(--bg-primary-light) 50%, var(--bg-secondary-color) 75%);
109
+ animation: shimmer 1.5s infinite;
110
+ }
111
+
112
+ @keyframes shimmer {
113
+ 0% {
114
+ left: -100%;
115
+ }
116
+ 100% {
117
+ left: 100%;
118
+ }
119
+ }
120
+
121
+ .contact-info-body {
122
+ display: flex;
123
+ flex-direction: column;
124
+ gap: 1.5rem;
125
+ background: inherit;
126
+ overflow-y: auto;
127
+ flex-grow: 1;
128
+ }
129
+
130
+ .contact-info-body::-webkit-scrollbar {
131
+ width: 4px;
132
+ }
133
+
134
+ .contact-info-body::-webkit-scrollbar-thumb {
135
+ background-color: var(--text-primary-color);
136
+ border-radius: 10px;
137
+ }
138
+
139
+ .contact-info-body::-webkit-scrollbar-track {
140
+ background: var(--bg-primary-color);
141
+ border-radius: 10px;
142
+ }
143
+
144
+ .contact-info {
145
+ display: flex;
146
+ align-items: center;
147
+ gap: 10px;
148
+ flex-direction: column;
149
+ padding: 1.5rem;
150
+ }
151
+
152
+ .contact-info-name {
153
+ display: flex;
154
+ flex-direction: column;
155
+ align-items: center;
156
+ }
157
+
158
+ .contact-info-name span:first-child {
159
+ font-size: 20px;
160
+ font-weight: 600;
161
+ }
162
+
163
+ .contact-info-name span:last-child {
164
+ font-size: 16px;
165
+ font-weight: 400;
166
+ }
167
+
168
+ .contact-media {
169
+ padding: 16px;
170
+ background: inherit;
171
+ }
172
+
173
+ .contact-media-header {
174
+ display: flex;
175
+ align-items: center;
176
+ justify-content: space-between;
177
+ font-size: 18px;
178
+ }
179
+ contact-media-header-label {
180
+ font-size: 14px;
181
+ }
182
+
183
+ .contact-media-header-count {
184
+ display: flex;
185
+ align-items: center;
186
+ cursor: pointer;
187
+ }
188
+
189
+ .contact-media-body {
190
+ display: flex;
191
+ gap: 10px;
192
+ overflow: hidden;
193
+ padding: 10px;
194
+ }
195
+ .members-list {
196
+ position: absolute;
197
+ top: 50%;
198
+ left: 50%;
199
+ transform: translate(-50%, -50%);
200
+ z-index: 1000;
201
+ width: 25%;
202
+ min-width: var(--sidebar-width);
203
+ }
204
+
205
+ .popup-members {
206
+ display: flex;
207
+ flex-direction: column;
208
+ gap: 10px;
209
+ max-height: calc(80vh - 50px);
210
+ overflow-y: auto;
211
+ }
212
+
213
+ .popup-members::-webkit-scrollbar {
214
+ width: 4px;
215
+ }
216
+
217
+ .popup-members::-webkit-scrollbar-track {
218
+ background: transparent;
219
+ }
220
+
221
+ .popup-members::-webkit-scrollbar-thumb {
222
+ background-color: var(--bg-primary-light);
223
+ border-radius: 3px;
224
+ }
225
+
226
+ .group-members-popup-actions {
227
+ display: flex;
228
+ align-items: center;
229
+ gap: 10px;
230
+ position: absolute;
231
+ bottom: 0px;
232
+ background: var(--bg-secondary-color);
233
+ z-index: 1;
234
+ padding: 10px;
235
+ left: 0;
236
+ margin: 10px;
237
+ width: -webkit-fill-available;
238
+ justify-content: center;
239
+ cursor: pointer;
240
+ }
241
+
242
+ .group-members-popup {
243
+ position: relative;
244
+ }
245
+
246
+ .group-members-header {
247
+ display: flex;
248
+ justify-content: space-between;
249
+ align-items: center;
250
+ padding: 0px 16px;
251
+ }
252
+
253
+ .group-members-header svg {
254
+ cursor: pointer;
255
+ }
256
+
257
+ .group-members {
258
+ padding: 16px;
259
+ background: inherit;
260
+ }
261
+
262
+ .close-btn {
263
+ background: none;
264
+ border: none;
265
+ font-size: 24px;
266
+ cursor: pointer;
267
+ }
268
+
269
+ .ctas {
270
+ display: flex;
271
+ flex-direction: column;
272
+ gap: 2px;
273
+ background: var(--bg-primary-color);
274
+ }
275
+
276
+ .ctas button {
277
+ border: none;
278
+ display: flex;
279
+ align-items: center;
280
+ gap: 10px;
281
+ padding: 20px;
282
+ cursor: pointer;
283
+ width: 100%;
284
+ font-size: 16px;
285
+ background: transparent;
286
+ }
287
+
288
+ .ctas button:hover {
289
+ background: var(--bg-secondary-color);
290
+ }
291
+
292
+ .fullscreen-image-container {
293
+ display: flex;
294
+ justify-content: center;
295
+ align-items: center;
296
+ width: 100%;
297
+ height: 100%;
298
+ }
299
+
300
+ .fullscreen-image-container img {
301
+ position: relative;
302
+ }
303
+
304
+ .contact-media-body img {
305
+ cursor: pointer;
306
+ }
307
+
308
+ .contact-media-body img:hover {
309
+ scale: 1.05;
310
+ }
311
+
312
+ .group-members chat-tile:hover {
313
+ background: var(--bg-primary-light);
314
+ cursor: pointer;
315
+ border-radius: 8px;
316
+ }
317
+
318
+ .popup-members chat-tile:hover {
319
+ background: var(--bg-primary-light);
320
+ cursor: pointer;
321
+ border-radius: 8px;
322
+ }
323
+
324
+ .profile-image-container {
325
+ position: relative;
326
+ cursor: pointer;
327
+ }
328
+
329
+ .profile-image-container:hover .image-edit-overlay {
330
+ opacity: 1;
331
+ }
332
+
333
+ .image-edit-overlay {
334
+ position: absolute;
335
+ top: 0;
336
+ left: 0;
337
+ right: 0;
338
+ bottom: 0;
339
+ background: rgba(0, 0, 0, 0.5);
340
+ border-radius: 50%;
341
+ display: flex;
342
+ align-items: center;
343
+ justify-content: center;
344
+ opacity: 0;
345
+ transition: opacity 0.3s ease;
346
+ }
347
+
348
+ .name-edit-input:focus {
349
+ background: var(--bg-primary-light);
350
+ }
351
+
352
+ .nav-container {
353
+ width: 100%;
354
+ background-color: var(--bg-secondary-color);
355
+ padding: 16px 0;
356
+ }
357
+ .messageTab {
358
+ display: flex;
359
+ align-items: center;
360
+ justify-content: center;
361
+ flex-direction: column;
362
+ padding: 10px 0px;
363
+ color: var(--bg-incoming-message);
364
+ cursor: pointer;
365
+ }
366
+ /* Inner container for max width */
367
+ .inner-container {
368
+ max-width: 1024px;
369
+ margin: 0 auto;
370
+ padding: 0 16px;
371
+ }
372
+
373
+ /* Tab styling */
374
+ .tabs {
375
+ display: flex;
376
+ gap: 32px;
377
+ }
378
+
379
+ /* Tab item styling */
380
+ .tab-item {
381
+ position: relative;
382
+ cursor: pointer;
383
+ }
384
+
385
+ /* Radio buttons (hidden) */
386
+ .tab-radio {
387
+ position: absolute;
388
+ opacity: 0;
389
+ cursor: pointer;
390
+ }
391
+
392
+ /* Tab labels */
393
+ .tab-label {
394
+ display: inline-block;
395
+ color: #9ca3af;
396
+ font-size: 18px;
397
+ padding: 4px 0;
398
+ transition: color 0.3s ease;
399
+ }
400
+
401
+ /* Underline indicator */
402
+ .tab-indicator {
403
+ position: absolute;
404
+ bottom: -16px;
405
+ left: 0;
406
+ width: 100%;
407
+ height: 4px;
408
+ background-color: var(--base-color);
409
+ transform: scaleX(0);
410
+ transition: transform 0.3s ease;
411
+ }
412
+
413
+ /* When radio is checked */
414
+ .tab-radio:checked + .tab-label {
415
+ color: var(--base-color);
416
+ }
417
+
418
+ .tab-radio:checked ~ .tab-indicator {
419
+ transform: scaleX(1);
420
+ }
421
+
422
+ /* Focus styles for accessibility */
423
+ .tab-radio:focus + .tab-label {
424
+ outline-offset: 2px;
425
+ }
426
+ .doc-item {
427
+ display: flex;
428
+ align-items: center;
429
+ background: var(--bg-primary-light);
430
+ margin: 8px 0;
431
+ padding: 12px;
432
+ border-radius: 8px;
433
+ cursor: pointer;
434
+ }
435
+
436
+ .doc-item:hover {
437
+ background: var(--bg-secondary-color);
438
+ }
439
+
440
+ .doc-icon {
441
+ margin-right: 12px;
442
+ width: 40px;
443
+ height: 40px;
444
+ display: flex;
445
+ align-items: center;
446
+ justify-content: center;
447
+ }
448
+
449
+ .doc-info {
450
+ flex-grow: 1;
451
+ overflow: hidden;
452
+ }
453
+
454
+ .doc-name {
455
+ font-weight: 500;
456
+ white-space: nowrap;
457
+ overflow: hidden;
458
+ text-overflow: ellipsis;
459
+ margin-bottom: 4px;
460
+ }
461
+
462
+ .doc-meta {
463
+ display: flex;
464
+ font-size: 12px;
465
+ color: var(--text-secondary-color);
466
+ }
467
+
468
+ /* Link item styles */
469
+ .link-item {
470
+ display: flex;
471
+ margin: 8px 0;
472
+ border-radius: 8px;
473
+ overflow: hidden;
474
+ text-decoration: none;
475
+ color: inherit;
476
+ }
477
+
478
+ .link-item:hover {
479
+ background: var(--bg-secondary-color);
480
+ }
481
+
482
+ .link-preview {
483
+ width: 100%;
484
+ height: 100%;
485
+ display: flex;
486
+ align-items: center;
487
+ justify-content: center;
488
+ }
489
+
490
+ .link-info {
491
+ padding: 12px;
492
+ flex-grow: 1;
493
+ overflow: hidden;
494
+ }
495
+
496
+ .link-title {
497
+ font-weight: 500;
498
+ margin-bottom: 4px;
499
+ white-space: nowrap;
500
+ overflow: hidden;
501
+ text-overflow: ellipsis;
502
+ }
503
+
504
+ .link-url {
505
+ font-size: 12px;
506
+ color: var(--text-secondary-color);
507
+ white-space: nowrap;
508
+ overflow: hidden;
509
+ text-overflow: ellipsis;
510
+ }
511
+
512
+ .no-content {
513
+ display: flex;
514
+ flex-direction: column;
515
+ align-items: center;
516
+ justify-content: center;
517
+ height: 200px;
518
+ color: var(--text-secondary-color);
519
+ text-align: center;
520
+ padding: 0 20px;
521
+ }
522
+
523
+ .no-content svg {
524
+ margin-bottom: 16px;
525
+ opacity: 0.5;
526
+ }
527
+
528
+ /* Month separator */
529
+ .month-separator {
530
+ font-size: 14px;
531
+ font-weight: 500;
532
+ margin: 24px 0 12px 0;
533
+ padding-left: 8px;
534
+ }
535
+
536
+ .shimmer {
537
+ background: linear-gradient(90deg, var(--bg-secondary-color) 25%, var(--bg-primary-light) 50%, var(--bg-secondary-color) 75%);
538
+ background-size: 200% 100%;
539
+ animation: shimmer 1.5s infinite linear;
540
+ }
541
+
542
+ .member-shimmer {
543
+ height: 60px;
544
+ border-radius: 8px;
545
+ margin: 8px 16px;
546
+ opacity: 0.7;
547
+ }
548
+
549
+ @keyframes shimmer {
550
+ 0% {
551
+ background-position: 100% 0;
552
+ }
553
+ 100% {
554
+ background-position: -100% 0;
555
+ }
556
+ }
557
+ `;
558
+
559
+ constructor() {
560
+ super();
561
+ this.lastConversationId = null;
562
+ this.isEditingName = false;
563
+ this.editedName = '';
564
+ this.isLoadingMembers = true;
565
+ this.activeTab = 'media';
566
+ this.conversationMetaData = {};
567
+
568
+ // Sample data for docs and links
569
+ this.docsAttachments = [];
570
+ this.linksAttachments = [];
571
+ }
572
+ willUpdate(changedProperties) {
573
+ if (changedProperties.has('conversationId')) {
574
+ this.handleConversationIdChange(this.conversationId, changedProperties.get('conversationId'));
575
+ }
576
+ }
577
+
578
+ handleConversationIdChange(newValue, oldValue) {
579
+ if (newValue !== groupMembersStore.getCurrentConversationId()) {
580
+ this.isLoadingMembers = true;
581
+ groupMembersStore.initializeMembers(this.groupMembers, newValue);
582
+ }
583
+
584
+ const newConversationId = this.getConversationIdFromUrl();
585
+ if (this.lastConversationId && this.lastConversationId !== newConversationId) {
586
+ this._handleClose();
587
+ }
588
+
589
+ this.lastConversationId = newConversationId;
590
+ }
591
+
592
+ toggleShowAllMembers() {
593
+ this.showAllMembers = !this.showAllMembers;
594
+ }
595
+
596
+ showMembersPopup() {
597
+ this.isPopupOpen = true;
598
+ }
599
+
600
+ closeMembersPopup() {
601
+ this.isPopupOpen = false;
602
+ }
603
+
604
+ toggleMediaList() {
605
+ this.showMediaList = !this.showMediaList;
606
+ }
607
+
608
+ toggleImageFullscreen() {
609
+ this.isImageFullscreen = !this.isImageFullscreen;
610
+ }
611
+
612
+ _handleClose() {
613
+ if (this.showMediaList) {
614
+ this.showMediaList = false;
615
+ return;
616
+ }
617
+ this.dispatchEvent(
618
+ new CustomEvent('close-right-Sidebar', {
619
+ detail: {
620
+ type: 'close-right-Sidebar',
621
+ },
622
+ bubbles: true,
623
+ composed: true,
624
+ }),
625
+ );
626
+ }
627
+
628
+ getConversationIdFromUrl() {
629
+ const url = new URL(window.location.href);
630
+ return url.searchParams.get('conversation');
631
+ }
632
+
633
+ exitGroup() {
634
+ this.dispatchEvent(
635
+ new CustomEvent('contact-action', {
636
+ detail: {
637
+ action: 'exit-group',
638
+ conversationId: this.conversationId,
639
+ },
640
+ bubbles: true,
641
+ composed: true,
642
+ }),
643
+ );
644
+ }
645
+
646
+ clearChat() {
647
+ this.dispatchEvent(
648
+ new CustomEvent('contact-action', {
649
+ detail: {
650
+ action: 'clear-chat',
651
+ conversationId: this.conversationId,
652
+ },
653
+ bubbles: true,
654
+ composed: true,
655
+ }),
656
+ );
657
+ }
658
+
659
+ blockContact() {
660
+ this.dispatchEvent(
661
+ new CustomEvent('contact-action', {
662
+ detail: {
663
+ action: 'block-contact',
664
+ oppenentId: this.oppenentId,
665
+ userName: this.contactName,
666
+ },
667
+ bubbles: true,
668
+ composed: true,
669
+ }),
670
+ );
671
+ }
672
+ unblockContact() {
673
+ this.dispatchEvent(
674
+ new CustomEvent('contact-action', {
675
+ detail: {
676
+ action: 'unblock-contact',
677
+ oppenentId: this.oppenentId,
678
+ userName: this.contactName,
679
+ },
680
+ bubbles: true,
681
+ composed: true,
682
+ }),
683
+ );
684
+ }
685
+
686
+ deleteChat() {
687
+ this.dispatchEvent(
688
+ new CustomEvent('contact-action', {
689
+ detail: {
690
+ action: 'delete-chat',
691
+ conversationId: this.conversationId,
692
+ },
693
+ bubbles: true,
694
+ composed: true,
695
+ }),
696
+ );
697
+ }
698
+
699
+ openConfirmationPopup(action) {
700
+ drawerDialogService.openDialog('confirm-dialog', {
701
+ title: `${title}`,
702
+ description: `Are you sure you want to ${title} ?`,
703
+ handleConfirm: () => this.confirmAction(action),
704
+ });
705
+ }
706
+
707
+ closeConfirmationPopup() {
708
+ this.showConfirmationPopup = false;
709
+ this._handleClose();
710
+ }
711
+
712
+ confirmAction(action) {
713
+ switch (action) {
714
+ case 'delete-chat':
715
+ this.deleteChat();
716
+ break;
717
+ case 'exit-group':
718
+ this.exitGroup();
719
+ break;
720
+ case 'clear-chat':
721
+ this.clearChat();
722
+ break;
723
+ case 'block-contact':
724
+ this.blockContact();
725
+ break;
726
+ case 'unblock-contact':
727
+ this.unblockContact();
728
+ break;
729
+ // Add more cases if needed
730
+ }
731
+ this.closeConfirmationPopup();
732
+ }
733
+
734
+ _handleKebabMenuClick(e) {
735
+ e.stopPropagation();
736
+ }
737
+
738
+ shouldShowMemberActions(memberId) {
739
+ const currentUserMember = this.groupMembers?.find(m => m.userId === this.userMetaData?.userId);
740
+ return currentUserMember?.isAdmin ? this.userMetaData?.userId !== memberId : false;
741
+ }
742
+
743
+ handleNameClick() {
744
+ if (this.isGroup) {
745
+ this.isEditingName = true;
746
+ this.editedName = this.contactName;
747
+ setTimeout(() => {
748
+ const input = this.shadowRoot.querySelector('.name-edit-input');
749
+ if (input) {
750
+ input.focus();
751
+ input.select();
752
+ }
753
+ }, 0);
754
+ }
755
+ }
756
+
757
+ handleNameInputKeyDown(e) {
758
+ if (e.key === 'Enter') {
759
+ this.saveName();
760
+ } else if (e.key === 'Escape') {
761
+ this.isEditingName = false;
762
+ }
763
+ }
764
+
765
+ saveName() {
766
+ if (this.editedName.trim() && this.editedName !== this.contactName) {
767
+ const oldName = this.contactName;
768
+ this.contactName = this.editedName.trim();
769
+
770
+ this.dispatchEvent(
771
+ new CustomEvent('edit-title', {
772
+ detail: {
773
+ currentTitle: oldName,
774
+ newTitle: this.editedName.trim(),
775
+ conversationId: this.conversationId,
776
+ onError: () => {
777
+ // Revert on error
778
+ this.contactName = oldName;
779
+ },
780
+ },
781
+ bubbles: true,
782
+ composed: true,
783
+ }),
784
+ );
785
+ }
786
+ this.isEditingName = false;
787
+ }
788
+
789
+ handleImageClick() {
790
+ if (this.isGroup) {
791
+ const input = document.createElement('input');
792
+ input.type = 'file';
793
+ input.accept = 'image/*';
794
+ input.onchange = e => {
795
+ const file = e.target.files?.[0];
796
+ if (file) {
797
+ const tempImageUrl = URL.createObjectURL(file);
798
+ const oldImage = this.contactImage;
799
+
800
+ this.contactImage = tempImageUrl;
801
+
802
+ this.dispatchEvent(
803
+ new CustomEvent('edit-image', {
804
+ detail: {
805
+ currentImage: oldImage,
806
+ conversationId: this.conversationId,
807
+ file: file,
808
+ onError: () => {
809
+ this.contactImage = oldImage;
810
+ URL.revokeObjectURL(tempImageUrl);
811
+ },
812
+ onSuccess: () => {
813
+ URL.revokeObjectURL(tempImageUrl);
814
+ },
815
+ },
816
+ bubbles: true,
817
+ composed: true,
818
+ }),
819
+ );
820
+ }
821
+ };
822
+ input.click();
823
+ }
824
+ }
825
+
826
+ extractAttachmentsByType() {
827
+ // Reset arrays
828
+ this.docsAttachments = [];
829
+ this.linksAttachments = [];
830
+ if (!this.allAttachments || !this.allAttachments.length) return;
831
+ this.allAttachments.forEach(attachment => {
832
+ attachment?.attachments?.forEach(att => {
833
+ if (att.mediaType === 3) {
834
+ // Document type
835
+ this.docsAttachments.push({
836
+ ...att,
837
+ date: attachment.sentAt,
838
+ sender: attachment?.senderInfo?.userName,
839
+ });
840
+ } else if (attachment?.customType === 'AttachmentMessage:Link') {
841
+ // Link type
842
+ this.linksAttachments.push({
843
+ ...att,
844
+ date: attachment.sentAt,
845
+ sender: attachment?.senderInfo?.userName,
846
+ });
847
+ }
848
+ });
849
+ });
850
+
851
+ // Sort by date
852
+ this.docsAttachments.sort((a, b) => new Date(b.date) - new Date(a.date));
853
+ this.linksAttachments.sort((a, b) => new Date(b.date) - new Date(a.date));
854
+
855
+ this.requestUpdate();
856
+ }
857
+
858
+ updated(changedProperties) {
859
+ // Existing updated logic
860
+ super.updated(changedProperties);
861
+
862
+ // Add extraction of docs and links when attachments are updated
863
+ if (changedProperties.has('allAttachments')) {
864
+ this.extractAttachmentsByType();
865
+ }
866
+ }
867
+
868
+ switchTab(tab) {
869
+ this.activeTab = tab;
870
+ }
871
+
872
+ formatFileSize(bytes) {
873
+ if (!bytes) return '0 B';
874
+ const k = 1024;
875
+ const sizes = ['B', 'KB', 'MB', 'GB'];
876
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
877
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];
878
+ }
879
+
880
+ formatDate(timestamp) {
881
+ if (!timestamp) return '';
882
+ const date = new Date(timestamp);
883
+ return date.toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' });
884
+ }
885
+
886
+ getMonthYear(timestamp) {
887
+ if (!timestamp) return '';
888
+ const date = new Date(timestamp);
889
+ return date.toLocaleDateString('en-US', { month: 'long', year: 'numeric' });
890
+ }
891
+
892
+ groupByMonth(items, isLinks = false) {
893
+ const groups = {};
894
+ items.forEach(item => {
895
+ const monthYear = this.getMonthYear(isLinks ? item.sentAt : item.date);
896
+ if (!groups[monthYear]) {
897
+ groups[monthYear] = [];
898
+ }
899
+ groups[monthYear].push(item);
900
+ });
901
+
902
+ return groups;
903
+ }
904
+
905
+ handleRedirectChat() {
906
+ if (this.conversationId) {
907
+ this.handleChatSelect(this.conversationId);
908
+ }
909
+ this.dispatchEvent(
910
+ new CustomEvent('close-right-Sidebar', {
911
+ detail: {
912
+ type: 'close-right-Sidebar',
913
+ },
914
+ bubbles: true,
915
+ composed: true,
916
+ }),
917
+ );
918
+ }
919
+
920
+ renderNoContent(title, subtitle) {
921
+ return html`
922
+ <div class="tab-content active">
923
+ <div class="no-content">
924
+ <svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 0 24 24" width="48" fill="currentColor">
925
+ <path d="M0 0h24v24H0V0z" fill="none" />
926
+ <path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z" />
927
+ </svg>
928
+ <h3 style="margin: 0 0 8px 0;">${title}</h3>
929
+ <p style="margin: 0;">${subtitle}</p>
930
+ </div>
931
+ </div>
932
+ `;
933
+ }
934
+
935
+ renderTabContent() {
936
+ if (this.activeTab === 'media') {
937
+ const mediaFromAttachments = [];
938
+ this.allAttachments?.forEach(attachment => {
939
+ attachment?.attachments?.forEach(att => {
940
+ if (att?.mediaUrl && (att.mediaType === 0 || att.mediaType === 1)) {
941
+ // Image/video type
942
+ mediaFromAttachments.push(att.mediaUrl);
943
+ }
944
+ });
945
+ });
946
+ if (!mediaFromAttachments.length) {
947
+ return this.renderNoContent('No Media', 'Share media with this chat to see them here.');
948
+ }
949
+
950
+ return html`
951
+ <div class="tab-content active">
952
+ <media-list
953
+ .mediaArray=${mediaFromAttachments}
954
+ padding="10px"
955
+ bgColor=${this.backgroundColor}
956
+ color=${this.textColor}
957
+ style="width: 100%"
958
+ borderRadius="10px"
959
+ height="calc(100vh - 100px)"
960
+ ></media-list>
961
+ </div>
962
+ `;
963
+ } else if (this.activeTab === 'docs') {
964
+ if (!this.docsAttachments.length) {
965
+ return this.renderNoContent('No Documents', 'Share documents with this chat to see them here.');
966
+ }
967
+
968
+ const docsByMonth = this.groupByMonth(this.docsAttachments);
969
+
970
+ return html`
971
+ <div class="tab-content active">
972
+ ${Object.keys(docsByMonth).map(
973
+ month => html`
974
+ <div class="month-separator">${month}</div>
975
+ ${docsByMonth[month].map(
976
+ doc => html`
977
+ <div class="doc-item" @click=${() => window.open(doc.mediaUrl, '_blank')}>
978
+ <div class="doc-icon">
979
+ <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24" fill="currentColor">
980
+ <path d="M0 0h24v24H0V0z" fill="none" />
981
+ <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM16 18H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z" />
982
+ </svg>
983
+ </div>
984
+ <div class="doc-info">
985
+ <div class="doc-name">${doc.name || 'Document'}</div>
986
+ <div class="doc-meta">
987
+ <span>${this.formatFileSize(doc.size)}</span>
988
+ <span style="margin: 0 6px;">•</span>
989
+ <span>${this.formatDate(doc.date)}</span>
990
+ </div>
991
+ </div>
992
+ </div>
993
+ `,
994
+ )}
995
+ `,
996
+ )}
997
+ </div>
998
+ `;
999
+ } else if (this.activeTab === 'links') {
1000
+ if (!this.allLinks?.length) {
1001
+ return this.renderNoContent('No Links', 'URLs shared in this chat will appear here.');
1002
+ }
1003
+
1004
+ const linksByMonth = this.groupByMonth(this.allLinks, true);
1005
+
1006
+ return html`
1007
+ <div class="tab-content active">
1008
+ ${Object.keys(linksByMonth).map(
1009
+ month => html`
1010
+ <div class="month-separator">${month}</div>
1011
+ ${linksByMonth[month].map(
1012
+ link => html`
1013
+ <a href=${link.body} target="_blank" class="link-item">
1014
+ <div class="link-preview">
1015
+ <link-preview url=${link.body} time=${link.sentAt}></link-preview>
1016
+ </div>
1017
+ </a>
1018
+ `,
1019
+ )}
1020
+ `,
1021
+ )}
1022
+ </div>
1023
+ `;
1024
+ }
1025
+ }
1026
+
1027
+ render() {
1028
+ const headerFontSize = `calc(${this.fontSize} - 4px)`;
1029
+ const mediaFromAttachments = [];
1030
+ this.allAttachments?.forEach(attachment => {
1031
+ attachment?.attachments?.forEach(att => {
1032
+ if (att?.mediaUrl) {
1033
+ mediaFromAttachments.push(att.mediaUrl);
1034
+ }
1035
+ });
1036
+ });
1037
+ const members = groupMembersStore.getMembers();
1038
+ this.isLoadingMembers = !members;
1039
+
1040
+ return html`
1041
+ <div
1042
+ class="contact-info-container"
1043
+ style=${styleMap({
1044
+ padding: this.padding,
1045
+ margin: this.margin,
1046
+ width: this.width,
1047
+ height: this.height,
1048
+ borderRadius: this.borderRadius,
1049
+ borderWidth: this.borderWidth,
1050
+ borderColor: this.borderColor,
1051
+ borderStyle: this.borderStyle,
1052
+ backgroundColor: this.backgroundColor,
1053
+ color: this.textColor,
1054
+ fontSize: this.fontSize,
1055
+ fontWeight: this.fontWeight,
1056
+ fontFamily: this.fontFamily,
1057
+ fontStyle: this.fontStyle,
1058
+ lineHeight: this.lineHeight,
1059
+ boxShadow: this.boxShadow,
1060
+ textAlign: this.textAlign,
1061
+ })}
1062
+ >
1063
+ ${this.showMediaList
1064
+ ? html`
1065
+ <div class="contact-info-header">
1066
+ <svg
1067
+ @click=${this._handleClose}
1068
+ xmlns="http://www.w3.org/2000/svg"
1069
+ height="24px"
1070
+ viewBox="0 -960 960 960"
1071
+ width="24px"
1072
+ fill="${this.textColor}"
1073
+ style="cursor: pointer;"
1074
+ >
1075
+ <path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z" />
1076
+ </svg>
1077
+ </div>
1078
+ <div>
1079
+ <div class="nav-container">
1080
+ <div class="inner-container">
1081
+ <div class="tabs">
1082
+ <div class="tab-item">
1083
+ <input type="radio" id="tab-media" name="tabs" class="tab-radio" ?checked=${this.activeTab === 'media'} @change=${() => this.switchTab('media')} />
1084
+ <label for="tab-media" class="tab-label">Media</label>
1085
+ <div class="tab-indicator" style="transform: ${this.activeTab === 'media' ? 'scaleX(1)' : 'scaleX(0)'}"></div>
1086
+ </div>
1087
+
1088
+ <div class="tab-item">
1089
+ <input type="radio" id="tab-docs" name="tabs" class="tab-radio" ?checked=${this.activeTab === 'docs'} @change=${() => this.switchTab('docs')} />
1090
+ <label for="tab-docs" class="tab-label">Docs</label>
1091
+ <div class="tab-indicator" style="transform: ${this.activeTab === 'docs' ? 'scaleX(1)' : 'scaleX(0)'}"></div>
1092
+ </div>
1093
+
1094
+ <div class="tab-item">
1095
+ <input
1096
+ type="radio"
1097
+ id="tab-links"
1098
+ name="tabs"
1099
+ class="tab-radio"
1100
+ ?checked=${this.activeTab === 'links'}
1101
+ @change=${() => this.switchTab('links')}
1102
+ @click=${() =>
1103
+ this.dispatchEvent(
1104
+ new CustomEvent('get-links', {
1105
+ detail: {
1106
+ conversationId: this.conversationId,
1107
+ },
1108
+ bubbles: true,
1109
+ composed: true,
1110
+ }),
1111
+ )}
1112
+ />
1113
+ <label for="tab-links" class="tab-label">Links</label>
1114
+ <div class="tab-indicator" style="transform: ${this.activeTab === 'links' ? 'scaleX(1)' : 'scaleX(0)'}"></div>
1115
+ </div>
1116
+ </div>
1117
+ </div>
1118
+ </div>
1119
+
1120
+ ${this.renderTabContent()}
1121
+ </div>
1122
+ `
1123
+ : html`
1124
+ <div class="contact-info-header">
1125
+ <svg
1126
+ @click=${this._handleClose}
1127
+ xmlns="http://www.w3.org/2000/svg"
1128
+ height="24px"
1129
+ viewBox="0 -960 960 960"
1130
+ width="24px"
1131
+ fill="${this.textColor}"
1132
+ style="cursor: pointer;"
1133
+ >
1134
+ <path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z" />
1135
+ </svg>
1136
+ ${html`<span class="contact-info-label">Contact Info</span>`}
1137
+ </div>
1138
+
1139
+ <div class="contact-info-body">
1140
+ <div class="contact-info" style="background: var(--bg-primary-color);">
1141
+ <div style="position: relative; display: flex; align-items: center; gap: 8px;">
1142
+ ${Image({
1143
+ src: this.contactImage,
1144
+ alt: this.contactName,
1145
+ width: 'calc(75dvh - 300px)',
1146
+ height: 'calc(75dvh - 300px)',
1147
+ borderRadius: '50%',
1148
+ objectFit: 'cover',
1149
+ placeholderImage: generateProfileImageByInitials(this.contactName),
1150
+ })}
1151
+ </div>
1152
+ <div class="contact-info-name">
1153
+ ${html` <span>${this.contactName}</span> `}
1154
+ <span>${this.contactEmail}</span>
1155
+ <span @click=${this.handleRedirectChat} class="messageTab">
1156
+ <svg xmlns="http://www.w3.org/2000/svg" height="30px" viewBox="0 -960 960 960" width="30px" fill="#3f51b5">
1157
+ <path
1158
+ d="M240-400h480v-66.67H240V-400Zm0-126.67h480v-66.66H240v66.66Zm0-126.66h480V-720H240v66.67ZM880-80 720-240H146.67q-27 0-46.84-19.83Q80-279.67 80-306.67v-506.66q0-27 19.83-46.84Q119.67-880 146.67-880h666.66q27 0 46.84 19.83Q880-840.33 880-813.33V-80ZM146.67-306.67h602l64.66 68.34v-575H146.67v506.66Zm0 0v-506.66 506.66Z"
1159
+ />
1160
+ </svg>
1161
+ <span> ${WEB_CONTENT.PLACEHOLDER_CONTENT.SEARCH_CHAT.MESSAGE} </span>
1162
+ </span>
1163
+ </div>
1164
+ </div>
1165
+
1166
+ <div class="contact-media" style="background: var(--bg-primary-color);">
1167
+ <div class="contact-media-header">
1168
+ <span class="contact-media-header-label">Media, links and docs</span>
1169
+ <div class="contact-media-header-count" @click=${this.toggleMediaList}>
1170
+ <span>${this.allLinksCount || this.allAttachments?.length}</span>
1171
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="${this.textColor}">
1172
+ <path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z" />
1173
+ </svg>
1174
+ </div>
1175
+ </div>
1176
+ </div>
1177
+ </div>
1178
+ `}
1179
+ ${this.isEligibleMembersPopupOpen
1180
+ ? html`
1181
+ <div class="popup-overlay">
1182
+ <div class="members-list">
1183
+ <members-list
1184
+ .contactList=${this.eligibleMembers}
1185
+ .onClosePopup=${() => (this.isEligibleMembersPopupOpen = false)}
1186
+ label="Eligible Members"
1187
+ width="100%"
1188
+ fontSize="16px"
1189
+ fontFamily="Arial, sans-serif"
1190
+ .hasMoreEligibleMembers=${this.hasMoreEligibleMembers}
1191
+ ></members-list>
1192
+ </div>
1193
+ </div>
1194
+ `
1195
+ : ''}
1196
+
1197
+ <div class="ctas">
1198
+ ${this.showMediaList
1199
+ ? null
1200
+ : html`
1201
+ <button @click="${() => this.openConfirmationPopup('clear-chat')}">Clear Chat</button>
1202
+ ${this.conversationMetaData.messagingDisabled && this.isBlocked
1203
+ ? html`<button style="color: red;" @click="${() => this.openConfirmationPopup('unblock-contact')}">Unblock Chat</button>`
1204
+ : !this.conversationMetaData.messagingDisabled && this.isBlocked === null
1205
+ ? html`<button style="color: red;" @click="${() => this.openConfirmationPopup('block-contact')}">Block Chat</button>`
1206
+ : this.isBlocked === 'loading'
1207
+ ? html`<div class="shimmer-loader">
1208
+ <div class="shimmer-line"></div>
1209
+ </div>`
1210
+ : null}
1211
+ <button style="color: red;" @click="${() => this.openConfirmationPopup('delete-chat')}">Delete Chat</button>
1212
+ `}
1213
+ </div>
1214
+ </div>
1215
+ `;
1216
+ }
1217
+ }
1218
+
1219
+ customElements.define('profile-info', PofileInfo);