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.
- package/LICENSE +21 -0
- package/dist/cjs/BlockChatList-720a703e.js +423 -0
- package/dist/cjs/BlockChatList-720a703e.js.map +1 -0
- package/dist/cjs/DocumentMessageBubble-c79bfbe5.js +493 -0
- package/dist/cjs/DocumentMessageBubble-c79bfbe5.js.map +1 -0
- package/dist/cjs/Image-67c52acd.js +135 -0
- package/dist/cjs/Image-67c52acd.js.map +1 -0
- package/dist/cjs/ImageMessageBubble-1218fb66.js +675 -0
- package/dist/cjs/ImageMessageBubble-1218fb66.js.map +1 -0
- package/dist/cjs/IsometrikLogo-976b1c34.js +44 -0
- package/dist/cjs/IsometrikLogo-976b1c34.js.map +1 -0
- package/dist/cjs/MessageSearch-5fc9dc00.js +5892 -0
- package/dist/cjs/MessageSearch-5fc9dc00.js.map +1 -0
- package/dist/cjs/ReactionsContainer-a6ce9059.js +375 -0
- package/dist/cjs/ReactionsContainer-a6ce9059.js.map +1 -0
- package/dist/cjs/Text-fedf6eab.js +60 -0
- package/dist/cjs/Text-fedf6eab.js.map +1 -0
- package/dist/cjs/VideoMessageBubble-c4694a78.js +571 -0
- package/dist/cjs/VideoMessageBubble-c4694a78.js.map +1 -0
- package/dist/cjs/WebChat-403e7ab1.js +2884 -0
- package/dist/cjs/WebChat-403e7ab1.js.map +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/audio-bubble_8.cjs.entry.js +21011 -0
- package/dist/cjs/audio-bubble_8.cjs.entry.js.map +1 -0
- package/dist/cjs/block-chat-list.cjs.entry.js +16 -0
- package/dist/cjs/block-chat-list.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-app.cjs.entry.js +55 -0
- package/dist/cjs/chat-app.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-assets-6ab1faa6.js +9 -0
- package/dist/cjs/chat-assets-6ab1faa6.js.map +1 -0
- package/dist/cjs/chat-creds-f4cbf400.js +38 -0
- package/dist/cjs/chat-creds-f4cbf400.js.map +1 -0
- package/dist/cjs/chat-document-message-bubble.cjs.entry.js +24 -0
- package/dist/cjs/chat-document-message-bubble.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-image-message-bubble.cjs.entry.js +26 -0
- package/dist/cjs/chat-image-message-bubble.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-video-message-bubble.cjs.entry.js +24 -0
- package/dist/cjs/chat-video-message-bubble.cjs.entry.js.map +1 -0
- package/dist/cjs/content-eca5336c.js +81 -0
- package/dist/cjs/content-eca5336c.js.map +1 -0
- package/dist/cjs/dialog-drawer-9d04911c.js +5313 -0
- package/dist/cjs/dialog-drawer-9d04911c.js.map +1 -0
- package/dist/cjs/forward-memebers.cjs.entry.js +128 -0
- package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -0
- package/dist/cjs/group-members-a60fb1cb.js +41 -0
- package/dist/cjs/group-members-a60fb1cb.js.map +1 -0
- package/dist/cjs/groupcast-49dae5ab.js +202 -0
- package/dist/cjs/groupcast-49dae5ab.js.map +1 -0
- package/dist/cjs/imagePlaceholder-030cc566.js +4365 -0
- package/dist/cjs/imagePlaceholder-030cc566.js.map +1 -0
- package/dist/cjs/index-9afe62b6.js +3129 -0
- package/dist/cjs/index-9afe62b6.js.map +1 -0
- package/dist/cjs/index.cjs.js +148 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/isometrik-webchat.cjs.js +54 -0
- package/dist/cjs/isometrik-webchat.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/login-page.cjs.entry.js +85 -0
- package/dist/cjs/login-page.cjs.entry.js.map +1 -0
- package/dist/cjs/member-add.cjs.entry.js +122 -0
- package/dist/cjs/member-add.cjs.entry.js.map +1 -0
- package/dist/cjs/message-reaction-976f6261.js +24 -0
- package/dist/cjs/message-reaction-976f6261.js.map +1 -0
- package/dist/cjs/my-component.cjs.entry.js +29 -0
- package/dist/cjs/my-component.cjs.entry.js.map +1 -0
- package/dist/cjs/reaction-container.cjs.entry.js +52 -0
- package/dist/cjs/reaction-container.cjs.entry.js.map +1 -0
- package/dist/cjs/shadow-css-7c4dbc43.js +336 -0
- package/dist/cjs/shadow-css-7c4dbc43.js.map +1 -0
- package/dist/cjs/signup-page.cjs.entry.js +143 -0
- package/dist/cjs/signup-page.cjs.entry.js.map +1 -0
- package/dist/cjs/taguser-aca04ed9.js +512 -0
- package/dist/cjs/taguser-aca04ed9.js.map +1 -0
- package/dist/cjs/theme-provider_2.cjs.entry.js +113 -0
- package/dist/cjs/theme-provider_2.cjs.entry.js.map +1 -0
- package/dist/cjs/toast-helper-defae4a5.js +84 -0
- package/dist/cjs/toast-helper-defae4a5.js.map +1 -0
- package/dist/cjs/utils-bcad3386.js +9 -0
- package/dist/cjs/utils-bcad3386.js.map +1 -0
- package/dist/collection/api/conversations.js +12 -0
- package/dist/collection/api/group-members.js +36 -0
- package/dist/collection/api/groupcast.js +183 -0
- package/dist/collection/api/membership-control.js +13 -0
- package/dist/collection/api/message-reaction.js +16 -0
- package/dist/collection/api/social-accounts.js +282 -0
- package/dist/collection/app-root.js +51 -0
- package/dist/collection/app-root.js.map +1 -0
- package/dist/collection/assets/images/avatar.svg +1 -0
- package/dist/collection/assets/images/chatdefaultbg.svg +6140 -0
- package/dist/collection/assets/images/equalizer.svg +1 -0
- package/dist/collection/assets/images/imagePlaceholder.svg +2 -0
- package/dist/collection/assets/images/link.svg +1 -0
- package/dist/collection/assets/images/videoPlaceholder.svg +4 -0
- package/dist/collection/assets/images/videoThumbnail.svg +1 -0
- package/dist/collection/assets/svg/ExcelDocument.js +2 -0
- package/dist/collection/assets/svg/IsometrikLogo.js +38 -0
- package/dist/collection/assets/svg/Moon.svg +1 -0
- package/dist/collection/assets/svg/NoChatPlaceholder.js +16 -0
- package/dist/collection/assets/svg/NoContactsPlaceholder.js +9 -0
- package/dist/collection/assets/svg/NoMessagePlaceholder.svg +13 -0
- package/dist/collection/assets/svg/PdfDocument.js +2 -0
- package/dist/collection/assets/svg/ProfilePlaceholder.js +1 -0
- package/dist/collection/assets/svg/SelectChatPlaceholder.js +13 -0
- package/dist/collection/assets/svg/Sun.svg +1 -0
- package/dist/collection/assets/svg/broadcast-selected.svg +4 -0
- package/dist/collection/assets/svg/broadcst-default.svg +4 -0
- package/dist/collection/assets/svg/close.svg +1 -0
- package/dist/collection/assets/svg/group.svg +7 -0
- package/dist/collection/assets/svg/login.svg +3051 -0
- package/dist/collection/assets/svg/message-add.svg +5 -0
- package/dist/collection/assets/svg/message-bold.svg +3 -0
- package/dist/collection/assets/svg/message-outline.svg +5 -0
- package/dist/collection/collection-manifest.json +32 -0
- package/dist/collection/components/ChatUIComponent/AddMember.js +144 -0
- package/dist/collection/components/ChatUIComponent/AddMember.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/AudioBubble.js +528 -0
- package/dist/collection/components/ChatUIComponent/AudioBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/BlockChatList.js +114 -0
- package/dist/collection/components/ChatUIComponent/BlockChatList.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +11 -0
- package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +11 -0
- package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js +540 -0
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/profile-page.css +252 -0
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +1175 -0
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +11 -0
- package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +790 -0
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ForwardMessageList.js +152 -0
- package/dist/collection/components/ChatUIComponent/ForwardMessageList.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/GroupCast.js +218 -0
- package/dist/collection/components/ChatUIComponent/GroupCast.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +590 -0
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ReactionContainer.js +103 -0
- package/dist/collection/components/ChatUIComponent/ReactionContainer.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +1352 -0
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/WebChatBody/web-chat-body.css +277 -0
- package/dist/collection/components/Login.js +118 -0
- package/dist/collection/components/Login.js.map +1 -0
- package/dist/collection/components/Signup.js +177 -0
- package/dist/collection/components/Signup.js.map +1 -0
- package/dist/collection/components/chat-main.js +131 -0
- package/dist/collection/components/chat-main.js.map +1 -0
- package/dist/collection/components/my-component/my-component.css +3 -0
- package/dist/collection/components/my-component/my-component.js +83 -0
- package/dist/collection/components/my-component/my-component.js.map +1 -0
- package/dist/collection/components/my-component/web-chat/WebChat.js +2686 -0
- package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -0
- package/dist/collection/components/my-component/web-chat/WebchatRightSide.js +675 -0
- package/dist/collection/components/my-component/web-chat/WebchatRightSide.js.map +1 -0
- package/dist/collection/components/my-component/web-chat/web-chat.css +336 -0
- package/dist/collection/components/theme-provider.js +182 -0
- package/dist/collection/components/theme-provider.js.map +1 -0
- package/dist/collection/constants/chat-assets.js +12 -0
- package/dist/collection/constants/chat-creds.js +31 -0
- package/dist/collection/constants/content.js +75 -0
- package/dist/collection/constants/urls.js +1 -0
- package/dist/collection/index.js +135 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/lib/helpers.js +205 -0
- package/dist/collection/lib/taguser.js +123 -0
- package/dist/collection/store/conversation.js +25 -0
- package/dist/collection/store/conversation.js.map +1 -0
- package/dist/collection/store/group-members.js +24 -0
- package/dist/collection/store/group-members.js.map +1 -0
- package/dist/collection/store/unread-count.js +18 -0
- package/dist/collection/store/unread-count.js.map +1 -0
- package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.js +222 -0
- package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.stories.js +148 -0
- package/dist/collection/stories/Components/AttachmentBox/AttachmentBox.js +211 -0
- package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.js +708 -0
- package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.stories.js +57 -0
- package/dist/collection/stories/Components/AttachmentBox/Attachmentbox.stories.js +74 -0
- package/dist/collection/stories/Components/AttachmentBox/CameraPreview.js +231 -0
- package/dist/collection/stories/Components/BlockUsers/BlockUsers.js +337 -0
- package/dist/collection/stories/Components/Body/Body.js +48 -0
- package/dist/collection/stories/Components/Body/Body.stories.js +33 -0
- package/dist/collection/stories/Components/Buttons/Buttons.js +65 -0
- package/dist/collection/stories/Components/Buttons/Buttons.stories.js +132 -0
- package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.js +951 -0
- package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.stories.js +75 -0
- package/dist/collection/stories/Components/ChatSidebar/ContextMenu.js +109 -0
- package/dist/collection/stories/Components/ChatTile/ChatTile.js +290 -0
- package/dist/collection/stories/Components/ChatTile/ChatTile.stories.js +180 -0
- package/dist/collection/stories/Components/Chip/Chip.js +111 -0
- package/dist/collection/stories/Components/Chip/Chip.stories.js +149 -0
- package/dist/collection/stories/Components/ContactInfo/ContactInfo.js +1491 -0
- package/dist/collection/stories/Components/ContactInfo/ContactInfo.stories.js +118 -0
- package/dist/collection/stories/Components/ContactInfo/MediaList.js +147 -0
- package/dist/collection/stories/Components/ContactInfo/ProfileInfo.js +1219 -0
- package/dist/collection/stories/Components/ContactTile/ContactTile.js +416 -0
- package/dist/collection/stories/Components/ContactTile/ContactTile.stories.js +60 -0
- package/dist/collection/stories/Components/Dialog-Drawer/confirm.js +113 -0
- package/dist/collection/stories/Components/Dialog-Drawer/deletemessage.js +97 -0
- package/dist/collection/stories/Components/Dialog-Drawer/dialog-drawer.js +264 -0
- package/dist/collection/stories/Components/EmojiReactions/EmojiReactions.js +179 -0
- package/dist/collection/stories/Components/Footer/Footer.js +4 -0
- package/dist/collection/stories/Components/Footer/Footer.stories.js +155 -0
- package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.js +433 -0
- package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.stories.js +110 -0
- package/dist/collection/stories/Components/ForwardMessage/ForwardUi.js +46 -0
- package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.js +546 -0
- package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.stories.js +56 -0
- package/dist/collection/stories/Components/GroupInfo/GroupInfo.js +394 -0
- package/dist/collection/stories/Components/GroupInfo/GroupInfo.stories.js +107 -0
- package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.js +129 -0
- package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.stories.js +78 -0
- package/dist/collection/stories/Components/Head/Head.js +672 -0
- package/dist/collection/stories/Components/Head/Head.stories.js +91 -0
- package/dist/collection/stories/Components/Icon/Icon.js +115 -0
- package/dist/collection/stories/Components/Image/Image.js +41 -0
- package/dist/collection/stories/Components/Image/Image.stories.js +49 -0
- package/dist/collection/stories/Components/Image/Img.stories.js +178 -0
- package/dist/collection/stories/Components/Inputbox/Input.js +206 -0
- package/dist/collection/stories/Components/Inputbox/Input.stories.js +87 -0
- package/dist/collection/stories/Components/InstagramAccounts/InstagramAccountsPanel.js +605 -0
- package/dist/collection/stories/Components/Loader/Spinner/Spinner.js +60 -0
- package/dist/collection/stories/Components/Loader/Spinner/Spinner.stories.js +38 -0
- package/dist/collection/stories/Components/MainPlaceHolder/MainChatPlaceHolder.js +78 -0
- package/dist/collection/stories/Components/MainPlaceHolder/MainPlaceHolder.stories.js +130 -0
- package/dist/collection/stories/Components/MediaGallery/MediaGallery.js +868 -0
- package/dist/collection/stories/Components/MediaGallery/MediaGallery.stories.js +81 -0
- package/dist/collection/stories/Components/MembersList/MembersList.js +348 -0
- package/dist/collection/stories/Components/MessageBubble/AudioMessageBubble/AudioMesaageBubble.js +533 -0
- package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.js +484 -0
- package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.stories.js +54 -0
- package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.js +683 -0
- package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.stories.js +49 -0
- package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.js +450 -0
- package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.stories.js +56 -0
- package/dist/collection/stories/Components/MessageBubble/LinkMessageBubble/LinkMessageBubble.js +721 -0
- package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.js +139 -0
- package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.stories.js +63 -0
- package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.js +576 -0
- package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.stories.js +50 -0
- package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.js +66 -0
- package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.stories.js +48 -0
- package/dist/collection/stories/Components/MessageInfo/MessageInfo.js +465 -0
- package/dist/collection/stories/Components/MessageInfo/MessageInfo.stories.js +111 -0
- package/dist/collection/stories/Components/MessageSearch/MessageSearch.js +242 -0
- package/dist/collection/stories/Components/MessageSearchBar/SearchBar.js +523 -0
- package/dist/collection/stories/Components/MessageSearchBar/SearchBar.stories.js +98 -0
- package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.js +51 -0
- package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.stories.js +79 -0
- package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.js +560 -0
- package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.stories.js +56 -0
- package/dist/collection/stories/Components/Placeholder/NoContactsPlaceholder.js +57 -0
- package/dist/collection/stories/Components/Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js +114 -0
- package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.js +166 -0
- package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.stories.js +125 -0
- package/dist/collection/stories/Components/ProfileTab/ProfileTab.js +939 -0
- package/dist/collection/stories/Components/ProfileTab/ProfileTab.stories.js +144 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.js +166 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.stories.js +115 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.js +98 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.stories.js +55 -0
- package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.js +27 -0
- package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.stories.js +28 -0
- package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.js +26 -0
- package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.stories.js +33 -0
- package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.js +27 -0
- package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.stories.js +28 -0
- package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.js +38 -0
- package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.stories.js +33 -0
- package/dist/collection/stories/Components/ReplyBlock/MediaIcons.js +16 -0
- package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.js +196 -0
- package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.stories.js +57 -0
- package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.js +645 -0
- package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.stories.js +58 -0
- package/dist/collection/stories/Components/SearchableList/SearchableList.js +393 -0
- package/dist/collection/stories/Components/SearchableList/SearchableList.stories.js +65 -0
- package/dist/collection/stories/Components/SharePopup/SharePopup.js +152 -0
- package/dist/collection/stories/Components/SharePopup/SharePopup.stories.js +47 -0
- package/dist/collection/stories/Components/Splitscreen/Splitscreen.js +157 -0
- package/dist/collection/stories/Components/Splitscreen/Splitscreen.stories.js +100 -0
- package/dist/collection/stories/Components/TestFooter/MentionUserList.js +194 -0
- package/dist/collection/stories/Components/TestFooter/TestFooter.js +1339 -0
- package/dist/collection/stories/Components/TestFooter/TestFooter.stories.js +89 -0
- package/dist/collection/stories/Components/Text/Text.js +57 -0
- package/dist/collection/stories/Components/Text/Text.stories.js +83 -0
- package/dist/collection/stories/Components/TextStyle/TextStyle.js +38 -0
- package/dist/collection/stories/Components/TextStyle/TextStyle.stories.js +50 -0
- package/dist/collection/stories/Components/Time/Timestamp.js +50 -0
- package/dist/collection/stories/Components/Time/Timestamp.stories.js +34 -0
- package/dist/collection/stories/Components/Toaster/Toaster.js +94 -0
- package/dist/collection/stories/Components/Toaster/Toaster.stories.js +108 -0
- package/dist/collection/stories/Components/Toaster/toast-helper.js +79 -0
- package/dist/collection/stories/Components/Toaster/toast-helper.js.map +1 -0
- package/dist/collection/stories/Components/final/final.js +86 -0
- package/dist/collection/stories/Components/final/final.stories.js +30 -0
- package/dist/collection/stories/assets/SEARCH ICON.svg +1 -0
- package/dist/collection/types/ConversationDetailsTypes.js +2 -0
- package/dist/collection/types/ConversationDetailsTypes.js.map +1 -0
- package/dist/collection/utils/chatSdk.js +14 -0
- package/dist/collection/utils/getFomattedDate.js +34 -0
- package/dist/collection/utils/getFomattedDate.js.map +1 -0
- package/dist/collection/utils/unixTimeConverter.js +28 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/esm/BlockChatList-9fc3a42b.js +421 -0
- package/dist/esm/BlockChatList-9fc3a42b.js.map +1 -0
- package/dist/esm/DocumentMessageBubble-b67726f2.js +491 -0
- package/dist/esm/DocumentMessageBubble-b67726f2.js.map +1 -0
- package/dist/esm/Image-bb9efda3.js +121 -0
- package/dist/esm/Image-bb9efda3.js.map +1 -0
- package/dist/esm/ImageMessageBubble-0e473f6e.js +673 -0
- package/dist/esm/ImageMessageBubble-0e473f6e.js.map +1 -0
- package/dist/esm/IsometrikLogo-14db76af.js +42 -0
- package/dist/esm/IsometrikLogo-14db76af.js.map +1 -0
- package/dist/esm/MessageSearch-4101a627.js +5875 -0
- package/dist/esm/MessageSearch-4101a627.js.map +1 -0
- package/dist/esm/ReactionsContainer-bdd74a3c.js +373 -0
- package/dist/esm/ReactionsContainer-bdd74a3c.js.map +1 -0
- package/dist/esm/Text-3b0b3898.js +58 -0
- package/dist/esm/Text-3b0b3898.js.map +1 -0
- package/dist/esm/VideoMessageBubble-88a7a53e.js +569 -0
- package/dist/esm/VideoMessageBubble-88a7a53e.js.map +1 -0
- package/dist/esm/WebChat-5448d615.js +2882 -0
- package/dist/esm/WebChat-5448d615.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/audio-bubble_8.entry.js +21001 -0
- package/dist/esm/audio-bubble_8.entry.js.map +1 -0
- package/dist/esm/block-chat-list.entry.js +8 -0
- package/dist/esm/block-chat-list.entry.js.map +1 -0
- package/dist/esm/chat-app.entry.js +51 -0
- package/dist/esm/chat-app.entry.js.map +1 -0
- package/dist/esm/chat-assets-bd8778d5.js +6 -0
- package/dist/esm/chat-assets-bd8778d5.js.map +1 -0
- package/dist/esm/chat-creds-ff086f05.js +35 -0
- package/dist/esm/chat-creds-ff086f05.js.map +1 -0
- package/dist/esm/chat-document-message-bubble.entry.js +20 -0
- package/dist/esm/chat-document-message-bubble.entry.js.map +1 -0
- package/dist/esm/chat-image-message-bubble.entry.js +22 -0
- package/dist/esm/chat-image-message-bubble.entry.js.map +1 -0
- package/dist/esm/chat-video-message-bubble.entry.js +20 -0
- package/dist/esm/chat-video-message-bubble.entry.js.map +1 -0
- package/dist/esm/content-5aea5e39.js +79 -0
- package/dist/esm/content-5aea5e39.js.map +1 -0
- package/dist/esm/dialog-drawer-9fa083b1.js +5304 -0
- package/dist/esm/dialog-drawer-9fa083b1.js.map +1 -0
- package/dist/esm/forward-memebers.entry.js +124 -0
- package/dist/esm/forward-memebers.entry.js.map +1 -0
- package/dist/esm/group-members-bb3c8db7.js +37 -0
- package/dist/esm/group-members-bb3c8db7.js.map +1 -0
- package/dist/esm/groupcast-d1c54a27.js +187 -0
- package/dist/esm/groupcast-d1c54a27.js.map +1 -0
- package/dist/esm/imagePlaceholder-e544f70b.js +4360 -0
- package/dist/esm/imagePlaceholder-e544f70b.js.map +1 -0
- package/dist/esm/index-fddf30b7.js +3093 -0
- package/dist/esm/index-fddf30b7.js.map +1 -0
- package/dist/esm/index.js +139 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/isometrik-webchat.js +49 -0
- package/dist/esm/isometrik-webchat.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/login-page.entry.js +81 -0
- package/dist/esm/login-page.entry.js.map +1 -0
- package/dist/esm/member-add.entry.js +118 -0
- package/dist/esm/member-add.entry.js.map +1 -0
- package/dist/esm/message-reaction-ad47ea1a.js +20 -0
- package/dist/esm/message-reaction-ad47ea1a.js.map +1 -0
- package/dist/esm/my-component.entry.js +25 -0
- package/dist/esm/my-component.entry.js.map +1 -0
- package/dist/esm/reaction-container.entry.js +48 -0
- package/dist/esm/reaction-container.entry.js.map +1 -0
- package/dist/esm/shadow-css-7ad5caf8.js +334 -0
- package/dist/esm/shadow-css-7ad5caf8.js.map +1 -0
- package/dist/esm/signup-page.entry.js +139 -0
- package/dist/esm/signup-page.entry.js.map +1 -0
- package/dist/esm/taguser-e9032d65.js +510 -0
- package/dist/esm/taguser-e9032d65.js.map +1 -0
- package/dist/esm/theme-provider_2.entry.js +108 -0
- package/dist/esm/theme-provider_2.entry.js.map +1 -0
- package/dist/esm/toast-helper-840fd8dc.js +82 -0
- package/dist/esm/toast-helper-840fd8dc.js.map +1 -0
- package/dist/esm/utils-11fcde98.js +7 -0
- package/dist/esm/utils-11fcde98.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/isometrik-webchat/index.esm.js +2 -0
- package/dist/isometrik-webchat/index.esm.js.map +1 -0
- package/dist/isometrik-webchat/isometrik-webchat.css +2 -0
- package/dist/isometrik-webchat/isometrik-webchat.esm.js +2 -0
- package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -0
- package/dist/isometrik-webchat/p-12774661.js +2 -0
- package/dist/isometrik-webchat/p-12774661.js.map +1 -0
- package/dist/isometrik-webchat/p-12e56271.js +549 -0
- package/dist/isometrik-webchat/p-12e56271.js.map +1 -0
- package/dist/isometrik-webchat/p-1415e589.js +2 -0
- package/dist/isometrik-webchat/p-1415e589.js.map +1 -0
- package/dist/isometrik-webchat/p-18f8d210.js +13 -0
- package/dist/isometrik-webchat/p-18f8d210.js.map +1 -0
- package/dist/isometrik-webchat/p-1b2461f4.js +357 -0
- package/dist/isometrik-webchat/p-1b2461f4.js.map +1 -0
- package/dist/isometrik-webchat/p-229095d4.js +2 -0
- package/dist/isometrik-webchat/p-229095d4.js.map +1 -0
- package/dist/isometrik-webchat/p-2953d06a.entry.js +2 -0
- package/dist/isometrik-webchat/p-2953d06a.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-3004a123.js +2 -0
- package/dist/isometrik-webchat/p-3004a123.js.map +1 -0
- package/dist/isometrik-webchat/p-3044698a.js +2 -0
- package/dist/isometrik-webchat/p-3044698a.js.map +1 -0
- package/dist/isometrik-webchat/p-40517d7f.js +1098 -0
- package/dist/isometrik-webchat/p-40517d7f.js.map +1 -0
- package/dist/isometrik-webchat/p-42a62cf2.js +2 -0
- package/dist/isometrik-webchat/p-42a62cf2.js.map +1 -0
- package/dist/isometrik-webchat/p-48e1d174.js +45 -0
- package/dist/isometrik-webchat/p-48e1d174.js.map +1 -0
- package/dist/isometrik-webchat/p-48e243ec.entry.js +2 -0
- package/dist/isometrik-webchat/p-48e243ec.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-4d2aca06.js +257 -0
- package/dist/isometrik-webchat/p-4d2aca06.js.map +1 -0
- package/dist/isometrik-webchat/p-610bfd8a.js +2 -0
- package/dist/isometrik-webchat/p-610bfd8a.js.map +1 -0
- package/dist/isometrik-webchat/p-674e4bb0.js +9 -0
- package/dist/isometrik-webchat/p-674e4bb0.js.map +1 -0
- package/dist/isometrik-webchat/p-8490e13d.js +192 -0
- package/dist/isometrik-webchat/p-8490e13d.js.map +1 -0
- package/dist/isometrik-webchat/p-858b0da8.entry.js +2 -0
- package/dist/isometrik-webchat/p-858b0da8.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-89108249.entry.js +5010 -0
- package/dist/isometrik-webchat/p-89108249.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-8dcdea59.js +2963 -0
- package/dist/isometrik-webchat/p-8dcdea59.js.map +1 -0
- package/dist/isometrik-webchat/p-92d0b21c.js +2 -0
- package/dist/isometrik-webchat/p-92d0b21c.js.map +1 -0
- package/dist/isometrik-webchat/p-ada9c8e8.entry.js +2 -0
- package/dist/isometrik-webchat/p-ada9c8e8.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-adbb398d.entry.js +2 -0
- package/dist/isometrik-webchat/p-adbb398d.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-b07dd267.js +2 -0
- package/dist/isometrik-webchat/p-b07dd267.js.map +1 -0
- package/dist/isometrik-webchat/p-bf0aeb22.entry.js +2 -0
- package/dist/isometrik-webchat/p-bf0aeb22.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-bfd51dd4.entry.js +2 -0
- package/dist/isometrik-webchat/p-bfd51dd4.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-c50aa410.entry.js +2 -0
- package/dist/isometrik-webchat/p-c50aa410.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-cd34448c.entry.js +2 -0
- package/dist/isometrik-webchat/p-cd34448c.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-d4b8ece6.entry.js +2 -0
- package/dist/isometrik-webchat/p-d4b8ece6.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-de8a8642.js +197 -0
- package/dist/isometrik-webchat/p-de8a8642.js.map +1 -0
- package/dist/isometrik-webchat/p-e09b32eb.js +591 -0
- package/dist/isometrik-webchat/p-e09b32eb.js.map +1 -0
- package/dist/isometrik-webchat/p-e1255160.js +2 -0
- package/dist/isometrik-webchat/p-e1255160.js.map +1 -0
- package/dist/isometrik-webchat/p-e3731295.js +274 -0
- package/dist/isometrik-webchat/p-e3731295.js.map +1 -0
- package/dist/isometrik-webchat/p-e4efea64.entry.js +2 -0
- package/dist/isometrik-webchat/p-e4efea64.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-ef6e482a.entry.js +2 -0
- package/dist/isometrik-webchat/p-ef6e482a.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-f1f5d5bd.js +3 -0
- package/dist/isometrik-webchat/p-f1f5d5bd.js.map +1 -0
- package/dist/isometrik-webchat/p-ff9f3dfe.js +203 -0
- package/dist/isometrik-webchat/p-ff9f3dfe.js.map +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/loader/package.json +11 -0
- package/dist/types/app-root.d.ts +0 -0
- package/dist/types/components/ChatUIComponent/AddMember.d.ts +13 -0
- package/dist/types/components/ChatUIComponent/AudioBubble.d.ts +39 -0
- package/dist/types/components/ChatUIComponent/BlockChatList.d.ts +13 -0
- package/dist/types/components/ChatUIComponent/ChatDocumentMessageBubble.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/ChatImageMessageBubble.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/ChatOwnProfile/Profile.d.ts +42 -0
- package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +85 -0
- package/dist/types/components/ChatUIComponent/ChatVideoMessageBubble.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +154 -0
- package/dist/types/components/ChatUIComponent/ForwardMessageList.d.ts +15 -0
- package/dist/types/components/ChatUIComponent/GroupCast.d.ts +26 -0
- package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +45 -0
- package/dist/types/components/ChatUIComponent/ReactionContainer.d.ts +12 -0
- package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +120 -0
- package/dist/types/components/Login.d.ts +13 -0
- package/dist/types/components/Signup.d.ts +17 -0
- package/dist/types/components/chat-main.d.ts +15 -0
- package/dist/types/components/my-component/my-component.d.ts +16 -0
- package/dist/types/components/my-component/web-chat/WebchatRightSide.d.ts +42 -0
- package/dist/types/components/theme-provider.d.ts +44 -0
- package/dist/types/components.d.ts +838 -0
- package/dist/types/index.d.ts +37 -0
- package/dist/types/stencil-public-runtime.d.ts +1678 -0
- package/dist/types/store/conversation.d.ts +17 -0
- package/dist/types/store/group-members.d.ts +18 -0
- package/dist/types/store/unread-count.d.ts +10 -0
- package/dist/types/stories/Components/Toaster/toast-helper.d.ts +8 -0
- package/dist/types/types/ConversationDetailsTypes.d.ts +52 -0
- package/dist/types/utils/getFomattedDate.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +89 -0
- package/readme.md +569 -0
|
@@ -0,0 +1,672 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
import { Image } from '../Image/Image';
|
|
3
|
+
import { Text } from '../Text/Text';
|
|
4
|
+
import '../Inputbox/Input';
|
|
5
|
+
import '../ChatTile/ChatTile';
|
|
6
|
+
import '../ContactInfo/ContactInfo';
|
|
7
|
+
import '../../Components/Loader/Spinner/Spinner';
|
|
8
|
+
import { debounce, generateProfileImageByInitials } from '../../../lib/helpers';
|
|
9
|
+
import { WEB_CONTENT } from '../../../constants/content';
|
|
10
|
+
import { drawerDialogService } from '../Dialog-Drawer/dialog-drawer';
|
|
11
|
+
|
|
12
|
+
class Head extends LitElement {
|
|
13
|
+
static properties = {
|
|
14
|
+
//objects
|
|
15
|
+
image: { type: Object },
|
|
16
|
+
text: { type: Object },
|
|
17
|
+
isTyping: { type: Boolean },
|
|
18
|
+
typingUserName: { type: String },
|
|
19
|
+
confirmationAction: { type: String },
|
|
20
|
+
isBlocked: { type: Boolean | String },
|
|
21
|
+
//arrays
|
|
22
|
+
conversationDetails: {
|
|
23
|
+
type: Array,
|
|
24
|
+
hasChanged(newVal, oldVal) {
|
|
25
|
+
if (newVal?.conversationId !== oldVal?.conversationId) {
|
|
26
|
+
this.handleCancelButton();
|
|
27
|
+
}
|
|
28
|
+
return true;
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
userMetaData: { type: Object },
|
|
32
|
+
|
|
33
|
+
//functions
|
|
34
|
+
onFirstSvgClick: { type: Function },
|
|
35
|
+
onClearChat: { type: Function },
|
|
36
|
+
onSearchInput: { type: Function },
|
|
37
|
+
onCloseChat: { type: Function },
|
|
38
|
+
onTextClick: { type: Function },
|
|
39
|
+
|
|
40
|
+
//booleans
|
|
41
|
+
isPopupOpen: { type: Boolean },
|
|
42
|
+
isActionsNeeded: { type: Boolean },
|
|
43
|
+
messageAction: { type: Object },
|
|
44
|
+
isLoadingMessage: { type: Boolean },
|
|
45
|
+
|
|
46
|
+
//strings
|
|
47
|
+
lastSeenText: { type: String },
|
|
48
|
+
lastSeenTextColor: { type: String },
|
|
49
|
+
lastSeenTextFontSize: { type: String },
|
|
50
|
+
padding: { type: String },
|
|
51
|
+
profileImage: { type: String },
|
|
52
|
+
backgroundColor: { type: String },
|
|
53
|
+
textColor: { type: String },
|
|
54
|
+
svgFillColor: { type: String },
|
|
55
|
+
boxShadow: { type: String },
|
|
56
|
+
borderRadius: { type: String },
|
|
57
|
+
borderColor: { type: String },
|
|
58
|
+
borderStyle: { type: String },
|
|
59
|
+
borderWidth: { type: String },
|
|
60
|
+
showConfirmationPopup: { type: Boolean },
|
|
61
|
+
isGroupcast: { type: Boolean },
|
|
62
|
+
onBackButtonClick: {type: Function}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
constructor() {
|
|
66
|
+
super();
|
|
67
|
+
this.isPopupOpen = false;
|
|
68
|
+
this.showConfirmationPopup = false;
|
|
69
|
+
this.searchValue = '';
|
|
70
|
+
this.confirmationAction = '';
|
|
71
|
+
this.handleDocumentClick = this.handleDocumentClick.bind(this);
|
|
72
|
+
this.handleKebabMenuOpened = this.handleKebabMenuOpened.bind(this);
|
|
73
|
+
this.debouncedSearchHandler = debounce(query => {
|
|
74
|
+
this.onSearchInput(query);
|
|
75
|
+
}, 500);
|
|
76
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
77
|
+
this.isGroupcast = urlParams.has('groupcast');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
connectedCallback() {
|
|
81
|
+
super.connectedCallback();
|
|
82
|
+
document.addEventListener('click', this.handleDocumentClick);
|
|
83
|
+
// Listen for kebab menu open event to close item menu
|
|
84
|
+
document.addEventListener('kebab-menu-opened', this.handleKebabMenuOpened);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
disconnectedCallback() {
|
|
88
|
+
super.disconnectedCallback();
|
|
89
|
+
document.removeEventListener('click', this.handleDocumentClick);
|
|
90
|
+
document.removeEventListener('kebab-menu-opened', this.handleKebabMenuOpened);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
handleKebabMenuOpened() {
|
|
94
|
+
this.isPopupOpen = false;
|
|
95
|
+
this.requestUpdate();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
handleDocumentClick(event) {
|
|
99
|
+
const target = event.composedPath()[0];
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
if (!target.closest('.ctas-popup') && !target.closest('.item-menu')) {
|
|
103
|
+
this.isPopupOpen = false;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
handleKebabMenuOpened() {
|
|
108
|
+
// Close head menu when kebab menu is opened
|
|
109
|
+
this.isPopupOpen = false;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
static styles = css`
|
|
113
|
+
|
|
114
|
+
contact-info {
|
|
115
|
+
position: absolute;
|
|
116
|
+
right: 0;
|
|
117
|
+
width: 25%;
|
|
118
|
+
min-width: var(--sidebar-width);
|
|
119
|
+
height: fit-content;
|
|
120
|
+
top: 0;
|
|
121
|
+
z-index: 10000;
|
|
122
|
+
}
|
|
123
|
+
.head-container {
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
position: relative;
|
|
127
|
+
min-height: 60px;
|
|
128
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
129
|
+
font-family: var(--font-sans);
|
|
130
|
+
background: var(--bg-primary-color);
|
|
131
|
+
padding: 10px 16px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.image-container {
|
|
135
|
+
margin-right: 12px;
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.text-container {
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
white-space: nowrap;
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
text-overflow: ellipsis;
|
|
144
|
+
display: flex;
|
|
145
|
+
flex-direction: column;
|
|
146
|
+
align-items: flex-start;
|
|
147
|
+
gap: 2px;
|
|
148
|
+
min-width: 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.last-seen {
|
|
152
|
+
line-height: 1.2;
|
|
153
|
+
letter-spacing: -0.01em;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.last-seen.is-online {
|
|
157
|
+
color: var(--text-online, var(--success)) !important;
|
|
158
|
+
font-weight: 500;
|
|
159
|
+
}
|
|
160
|
+
.actions {
|
|
161
|
+
display: flex;
|
|
162
|
+
gap: 8px;
|
|
163
|
+
margin-left: auto;
|
|
164
|
+
cursor: pointer;
|
|
165
|
+
}
|
|
166
|
+
.ctas-popup {
|
|
167
|
+
position: absolute;
|
|
168
|
+
top: 62px;
|
|
169
|
+
right: 16px;
|
|
170
|
+
padding: 6px;
|
|
171
|
+
background-color: var(--bg-primary-color);
|
|
172
|
+
box-shadow: var(--menu-shadow);
|
|
173
|
+
border-radius: var(--radius-md, 12px);
|
|
174
|
+
border: 1px solid var(--border-subtle, #d8d8de);
|
|
175
|
+
z-index: 10;
|
|
176
|
+
display: flex;
|
|
177
|
+
flex-direction: column;
|
|
178
|
+
gap: 2px;
|
|
179
|
+
min-width: 180px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.ctas-popup button {
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
border: none;
|
|
185
|
+
font-size: 14px;
|
|
186
|
+
background: transparent;
|
|
187
|
+
color: var(--text-primary-color);
|
|
188
|
+
padding: 10px 12px;
|
|
189
|
+
display: flex;
|
|
190
|
+
align-items: center;
|
|
191
|
+
justify-content: flex-start;
|
|
192
|
+
gap: 8px;
|
|
193
|
+
border-radius: var(--radius-sm, 8px);
|
|
194
|
+
transition: background-color var(--duration, 180ms) var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.ctas-popup button:hover {
|
|
198
|
+
background: var(--bg-secondary-color);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.ctas-popup button:last-child {
|
|
202
|
+
border: none;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.consent-popup-container {
|
|
206
|
+
position: fixed;
|
|
207
|
+
top: 0;
|
|
208
|
+
left: 0;
|
|
209
|
+
right: 0;
|
|
210
|
+
bottom: 0;
|
|
211
|
+
width: 100%;
|
|
212
|
+
height: 100%;
|
|
213
|
+
background: rgba(0, 0, 0, 0.56);
|
|
214
|
+
display: flex;
|
|
215
|
+
justify-content: center;
|
|
216
|
+
align-items: center;
|
|
217
|
+
z-index: 99;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.consent-popup {
|
|
221
|
+
background: var(--bg-primary-color);
|
|
222
|
+
position: relative;
|
|
223
|
+
padding: 20px;
|
|
224
|
+
border-radius: 4px;
|
|
225
|
+
width: 27rem;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.consent-popup button {
|
|
229
|
+
background: var(--bg-primary-color);
|
|
230
|
+
border: 1px solid var(--base-color);
|
|
231
|
+
color: var(--base-color);
|
|
232
|
+
padding: 10px;
|
|
233
|
+
font-weight: 600;
|
|
234
|
+
cursor: pointer;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.consent-popup button:nth-child(2) {
|
|
238
|
+
background: var(--base-color);
|
|
239
|
+
border: 1px solid var(--bg-primary-color);
|
|
240
|
+
color: var(--bg-primary-color);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.loading-container-top {
|
|
244
|
+
width: 100%;
|
|
245
|
+
position: absolute;
|
|
246
|
+
top: 50%;
|
|
247
|
+
left: 0;
|
|
248
|
+
background-color: var(--bg-primary-color);
|
|
249
|
+
padding: 10px;
|
|
250
|
+
}
|
|
251
|
+
.popup-overlay {
|
|
252
|
+
position: fixed;
|
|
253
|
+
top: 0;
|
|
254
|
+
left: 0;
|
|
255
|
+
width: 100%;
|
|
256
|
+
height: 100%;
|
|
257
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
258
|
+
display: flex;
|
|
259
|
+
justify-content: center;
|
|
260
|
+
align-items: center;
|
|
261
|
+
z-index: 1000;
|
|
262
|
+
}
|
|
263
|
+
.popup-content {
|
|
264
|
+
background: var(--bg-primary-color);
|
|
265
|
+
padding: 14px;
|
|
266
|
+
border-radius: 8px;
|
|
267
|
+
width: 28%;
|
|
268
|
+
max-height: 80vh;
|
|
269
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
270
|
+
}
|
|
271
|
+
.close-btn {
|
|
272
|
+
background: none;
|
|
273
|
+
border: none;
|
|
274
|
+
font-size: 24px;
|
|
275
|
+
cursor: pointer;
|
|
276
|
+
}
|
|
277
|
+
.popup-header {
|
|
278
|
+
display: flex;
|
|
279
|
+
justify-content: space-between;
|
|
280
|
+
align-items: center;
|
|
281
|
+
padding: 0px 16px;
|
|
282
|
+
}
|
|
283
|
+
.popup-body {
|
|
284
|
+
padding: 0 16px;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.popup-body-buttons {
|
|
288
|
+
display: flex;
|
|
289
|
+
justify-content: space-between;
|
|
290
|
+
gap: 10px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.popup-body button {
|
|
294
|
+
border: none;
|
|
295
|
+
font-size: 16px;
|
|
296
|
+
color: var(--text-primary-color);
|
|
297
|
+
cursor: pointer;
|
|
298
|
+
width: 50%;
|
|
299
|
+
padding: 10px 0px;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.popup-body button:last-child {
|
|
303
|
+
background: transparent;
|
|
304
|
+
border: 1px solid var(--text-primary-color);
|
|
305
|
+
border-radius: 20px;
|
|
306
|
+
}
|
|
307
|
+
.popup-body button:first-child {
|
|
308
|
+
background: var(--text-primary-color);
|
|
309
|
+
border-radius: 20px;
|
|
310
|
+
}
|
|
311
|
+
.iconButton {
|
|
312
|
+
display: flex;
|
|
313
|
+
align-items: center;
|
|
314
|
+
justify-content: center;
|
|
315
|
+
gap: 6px;
|
|
316
|
+
}
|
|
317
|
+
.shimmer-loader {
|
|
318
|
+
width: 90%;
|
|
319
|
+
height: 45px;
|
|
320
|
+
position: relative;
|
|
321
|
+
overflow: hidden;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.shimmer-line {
|
|
325
|
+
position: absolute;
|
|
326
|
+
top: 0;
|
|
327
|
+
left: -100%;
|
|
328
|
+
width: 100%;
|
|
329
|
+
height: 100%;
|
|
330
|
+
background: linear-gradient(90deg, var(--bg-secondary-color) 25%, var(--bg-primary-light) 50%, var(--bg-secondary-color) 75%);
|
|
331
|
+
animation: shimmer 1.5s infinite;
|
|
332
|
+
}
|
|
333
|
+
@keyframes shimmer {
|
|
334
|
+
0% {
|
|
335
|
+
left: -100%;
|
|
336
|
+
}
|
|
337
|
+
100% {
|
|
338
|
+
left: 100%;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.back-button {
|
|
343
|
+
display: none;
|
|
344
|
+
}
|
|
345
|
+
@media (max-width: 768px) {
|
|
346
|
+
.consent-popup {
|
|
347
|
+
width: 80%;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.back-button {
|
|
351
|
+
display: block;
|
|
352
|
+
cursor: pointer;
|
|
353
|
+
margin-right: 5px;
|
|
354
|
+
}
|
|
355
|
+
contact-info {
|
|
356
|
+
width: 100%;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
`;
|
|
360
|
+
|
|
361
|
+
debounce(func, time) {
|
|
362
|
+
clearTimeout(this.debounceTimer);
|
|
363
|
+
this.debounceTimer = setTimeout(func, time);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
handleInputChange(e) {
|
|
367
|
+
const searchText = e.target.value.toLowerCase();
|
|
368
|
+
this.searchValue = searchText;
|
|
369
|
+
this.debouncedSearchHandler(searchText);
|
|
370
|
+
this.requestUpdate();
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
handleFirstSvgClick(event) {
|
|
374
|
+
event.stopPropagation();
|
|
375
|
+
this.isPopupOpen = !this.isPopupOpen;
|
|
376
|
+
// Dispatch event to close kebab menu when item menu opens
|
|
377
|
+
if (this.isPopupOpen) {
|
|
378
|
+
document.dispatchEvent(new CustomEvent('item-menu-opened', { bubbles: true }));
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
handleClearChat() {
|
|
383
|
+
if (this.onClearChat) {
|
|
384
|
+
this.onClearChat();
|
|
385
|
+
this.isPopupOpen = false;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
handleSearchClick() {
|
|
390
|
+
this.isPopupOpen = false;
|
|
391
|
+
this.dispatchEvent(
|
|
392
|
+
new CustomEvent('open-right-Sidebar', {
|
|
393
|
+
detail: {
|
|
394
|
+
type: 'open-right-Sidebar',
|
|
395
|
+
renderComponent: 'message-search-container',
|
|
396
|
+
},
|
|
397
|
+
bubbles: true,
|
|
398
|
+
composed: true,
|
|
399
|
+
}),
|
|
400
|
+
);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
handleTextClick(event) {
|
|
404
|
+
event.stopPropagation();
|
|
405
|
+
|
|
406
|
+
if (this.onTextClick) {
|
|
407
|
+
this.onTextClick();
|
|
408
|
+
}
|
|
409
|
+
this.dispatchEvent(
|
|
410
|
+
new CustomEvent('open-right-Sidebar', {
|
|
411
|
+
detail: {
|
|
412
|
+
type: 'open-right-Sidebar',
|
|
413
|
+
renderComponent: 'contact-info',
|
|
414
|
+
},
|
|
415
|
+
bubbles: true,
|
|
416
|
+
composed: true,
|
|
417
|
+
}),
|
|
418
|
+
);
|
|
419
|
+
|
|
420
|
+
// Update state if needed
|
|
421
|
+
this.isConsentPopup = false;
|
|
422
|
+
this.requestUpdate();
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
handleCloseChat() {
|
|
426
|
+
this.isPopupOpen = false;
|
|
427
|
+
if (this.onCloseChat) {
|
|
428
|
+
this.onCloseChat();
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
openConfirmationPopup(action, title) {
|
|
433
|
+
this.isPopupOpen = false;
|
|
434
|
+
drawerDialogService.openDialog('confirm-dialog', {
|
|
435
|
+
title: `${title}`,
|
|
436
|
+
description1:
|
|
437
|
+
action === 'clear-chat'
|
|
438
|
+
? ' Performing this action will cause the chat history to be deleted for you. You will be able to continue chatting with this user but will not be able to view the chat history once this action has been performed.'
|
|
439
|
+
: null,
|
|
440
|
+
description: this.renderdescription(action, title),
|
|
441
|
+
handleConfirm: () => this.confirmAction(action),
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
renderdescription(action, title) {
|
|
445
|
+
switch (action) {
|
|
446
|
+
case 'block-contact':
|
|
447
|
+
return `Are you sure you want to ${title} ${this.conversationDetails?.opponentDetails.userName} ?`;
|
|
448
|
+
case 'unblock-contact':
|
|
449
|
+
return `Are you sure you want to ${title} ${this.conversationDetails?.opponentDetails.userName} ?`;
|
|
450
|
+
default:
|
|
451
|
+
return `Are you sure you want to ${title} ?`;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
closeConfirmationPopup() {
|
|
455
|
+
this.showConfirmationPopup = false;
|
|
456
|
+
}
|
|
457
|
+
blockContact() {
|
|
458
|
+
this.dispatchEvent(
|
|
459
|
+
new CustomEvent('contact-action', {
|
|
460
|
+
detail: {
|
|
461
|
+
action: 'block-contact',
|
|
462
|
+
oppenentId: this.conversationDetails?.opponentDetails?.userId,
|
|
463
|
+
userName: this.conversationDetails?.opponentDetails.userName,
|
|
464
|
+
},
|
|
465
|
+
bubbles: true,
|
|
466
|
+
composed: true,
|
|
467
|
+
}),
|
|
468
|
+
);
|
|
469
|
+
}
|
|
470
|
+
unblockContact() {
|
|
471
|
+
this.dispatchEvent(
|
|
472
|
+
new CustomEvent('contact-action', {
|
|
473
|
+
detail: {
|
|
474
|
+
action: 'unblock-contact',
|
|
475
|
+
oppenentId: this.conversationDetails?.opponentDetails?.userId,
|
|
476
|
+
userName: this.conversationDetails?.opponentDetails.userName,
|
|
477
|
+
},
|
|
478
|
+
bubbles: true,
|
|
479
|
+
composed: true,
|
|
480
|
+
}),
|
|
481
|
+
);
|
|
482
|
+
}
|
|
483
|
+
confirmAction(action) {
|
|
484
|
+
switch (action) {
|
|
485
|
+
case 'block-contact':
|
|
486
|
+
this.blockContact();
|
|
487
|
+
break;
|
|
488
|
+
case 'unblock-contact':
|
|
489
|
+
this.unblockContact();
|
|
490
|
+
break;
|
|
491
|
+
case 'clear-chat':
|
|
492
|
+
this.handleClearChat();
|
|
493
|
+
break;
|
|
494
|
+
case 'close-chat':
|
|
495
|
+
this.handleCloseChat();
|
|
496
|
+
break;
|
|
497
|
+
default:
|
|
498
|
+
null;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
render() {
|
|
502
|
+
return html`
|
|
503
|
+
<div
|
|
504
|
+
class="head-container"
|
|
505
|
+
style="border-radius: ${this.borderRadius};
|
|
506
|
+
border-color: ${this.borderColor};
|
|
507
|
+
border-width: ${this.borderWidth};
|
|
508
|
+
border-style: ${this.borderStyle};
|
|
509
|
+
padding: ${this.padding};
|
|
510
|
+
box-shadow: ${this.boxShadow};
|
|
511
|
+
background-color: ${this.backgroundColor};
|
|
512
|
+
color: ${this.textColor}
|
|
513
|
+
"
|
|
514
|
+
>
|
|
515
|
+
<div class="back-button" @click=${this.onBackButtonClick}>
|
|
516
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="var("--text-primary-color")><path d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"/></svg>
|
|
517
|
+
</div>
|
|
518
|
+
<div class="image-container" @click=${this.handleTextClick}>
|
|
519
|
+
${Image({
|
|
520
|
+
src: this.profileImage,
|
|
521
|
+
height: '40px',
|
|
522
|
+
width: '40px',
|
|
523
|
+
placeholderImage: generateProfileImageByInitials(this.text),
|
|
524
|
+
borderRadius: '50%',
|
|
525
|
+
objectFit: 'cover',
|
|
526
|
+
cursor: 'pointer',
|
|
527
|
+
})}
|
|
528
|
+
</div>
|
|
529
|
+
|
|
530
|
+
<div class="text-container" @click=${this.handleTextClick}>
|
|
531
|
+
<div style="display:flex; align-items:center">
|
|
532
|
+
${Text({
|
|
533
|
+
fontSize: '15px',
|
|
534
|
+
fontWeight: '600',
|
|
535
|
+
content: this.text || '',
|
|
536
|
+
color: 'var(--text-primary-color)',
|
|
537
|
+
})}
|
|
538
|
+
</div>
|
|
539
|
+
${this.conversationDetails?.isGroup && !this.isTyping
|
|
540
|
+
? html`<span
|
|
541
|
+
style="color: ${this.lastSeenTextColor || 'var(--text-last-seen)'};
|
|
542
|
+
font-size: ${this.lastSeenTextFontSize || '12px'};"
|
|
543
|
+
>
|
|
544
|
+
${this.conversationDetails?.members?.length > 7
|
|
545
|
+
? `${this.conversationDetails.members
|
|
546
|
+
.slice(0, 6)
|
|
547
|
+
.map(member => (member.userId === this.userMetaData?.userId ? 'You' : member.userName))
|
|
548
|
+
.join(', ')}... +${this.conversationDetails.members.length - 6}`
|
|
549
|
+
: this.conversationDetails?.members?.map(member => (member.userId === this.userMetaData?.userId ? 'You' : member.userName)).join(', ')}
|
|
550
|
+
</span>`
|
|
551
|
+
: ''}
|
|
552
|
+
${this.isTyping ? (!this.conversationDetails?.isGroup ? html`<span>Typing...</span>` : html`<span> ${this.typingUserName} is Typing...</span> `) : null}
|
|
553
|
+
${this.lastSeenText && !this.isTyping
|
|
554
|
+
? html` <div
|
|
555
|
+
class="last-seen ${String(this.lastSeenText).toLowerCase() === 'online' ? 'is-online' : ''}"
|
|
556
|
+
style="color: ${String(this.lastSeenText).toLowerCase() === 'online' ? 'var(--text-online)' : this.lastSeenTextColor || 'var(--text-last-seen)'};
|
|
557
|
+
font-size: ${this.lastSeenTextFontSize || '12px'};
|
|
558
|
+
display: inline-flex; align-items: center; gap: 6px;"
|
|
559
|
+
>
|
|
560
|
+
${String(this.lastSeenText).toLowerCase() === 'online'
|
|
561
|
+
? html`<span style="width:7px;height:7px;border-radius:50%;background:var(--success);display:inline-block;flex-shrink:0;"></span>`
|
|
562
|
+
: ''}
|
|
563
|
+
${this.lastSeenText}
|
|
564
|
+
</div>`
|
|
565
|
+
: ''}
|
|
566
|
+
</div>
|
|
567
|
+
|
|
568
|
+
${this.isActionsNeeded
|
|
569
|
+
? html`
|
|
570
|
+
<div class="actions">
|
|
571
|
+
<svg
|
|
572
|
+
class="item-menu"
|
|
573
|
+
@click=${this.handleFirstSvgClick}
|
|
574
|
+
width="24px"
|
|
575
|
+
height="24px"
|
|
576
|
+
viewBox="0 0 24 24"
|
|
577
|
+
fill="${this.svgFillColor}"
|
|
578
|
+
style="border-radius: 50%; padding: ${this.isPopupOpen ? '5px' : '2px'}"
|
|
579
|
+
>
|
|
580
|
+
<title>item-menu</title>
|
|
581
|
+
<circle cx="12" cy="5" r="1.5"></circle>
|
|
582
|
+
<circle cx="12" cy="12" r="1.5"></circle>
|
|
583
|
+
<circle cx="12" cy="19" r="1.5"></circle>
|
|
584
|
+
</svg>
|
|
585
|
+
</div>
|
|
586
|
+
`
|
|
587
|
+
: ''}
|
|
588
|
+
${this.isPopupOpen
|
|
589
|
+
? html`
|
|
590
|
+
<div class=" ctas-popup">
|
|
591
|
+
${this.isGroupcast || this.conversationDetails?.isGroup
|
|
592
|
+
? null
|
|
593
|
+
: this.isBlocked === 'loading'
|
|
594
|
+
? html`<div class="shimmer-loader">
|
|
595
|
+
<div class="shimmer-line"></div>
|
|
596
|
+
</div>`
|
|
597
|
+
: html` ${this.conversationDetails.messagingDisabled && this.isBlocked
|
|
598
|
+
? html`<button>
|
|
599
|
+
<span class="iconButton" @click="${() => this.openConfirmationPopup('unblock-contact', 'Unblock')}">
|
|
600
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 -960 960 960" width="18px" fill="var(--text-primary-color)">
|
|
601
|
+
<path
|
|
602
|
+
d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q54 0 104-17.5t92-50.5L228-676q-33 42-50.5 92T160-480q0 134 93 227t227 93Zm252-124q33-42 50.5-92T800-480q0-134-93-227t-227-93q-54 0-104 17.5T284-732l448 448Z"
|
|
603
|
+
/>
|
|
604
|
+
</svg>
|
|
605
|
+
Unblock Chat</span
|
|
606
|
+
>
|
|
607
|
+
</button>`
|
|
608
|
+
: !this.conversationDetails.messagingDisabled && this.isBlocked === null
|
|
609
|
+
? html`<button>
|
|
610
|
+
<span class="iconButton" @click="${() => this.openConfirmationPopup('block-contact', 'Block')}">
|
|
611
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 -960 960 960" width="18px" fill="var(--text-primary-color)">
|
|
612
|
+
<path
|
|
613
|
+
d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q54 0 104-17.5t92-50.5L228-676q-33 42-50.5 92T160-480q0 134 93 227t227 93Zm252-124q33-42 50.5-92T800-480q0-134-93-227t-227-93q-54 0-104 17.5T284-732l448 448Z"
|
|
614
|
+
/>
|
|
615
|
+
</svg>
|
|
616
|
+
Block Chat</span
|
|
617
|
+
>
|
|
618
|
+
</button>`
|
|
619
|
+
: null}`}
|
|
620
|
+
${this.isGroupcast
|
|
621
|
+
? null
|
|
622
|
+
: html` <button @click=${() => this.handleSearchClick()}>
|
|
623
|
+
<svg width="16px" height="16px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
624
|
+
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
|
|
625
|
+
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
|
|
626
|
+
<g id="SVGRepo_iconCarrier">
|
|
627
|
+
<path
|
|
628
|
+
d="M16.6725 16.6412L21 21M19 11C19 15.4183 15.4183 19 11 19C6.58172 19 3 15.4183 3 11C3 6.58172 6.58172 3 11 3C15.4183 3 19 6.58172 19 11Z"
|
|
629
|
+
stroke="var(--text-primary-color)"
|
|
630
|
+
stroke-width="2"
|
|
631
|
+
stroke-linecap="round"
|
|
632
|
+
stroke-linejoin="round"
|
|
633
|
+
></path>
|
|
634
|
+
</g>
|
|
635
|
+
</svg>
|
|
636
|
+
${WEB_CONTENT.CONVERSATION_ACTIONS.SEARCH_CHAT}
|
|
637
|
+
</button>
|
|
638
|
+
<button @click=${() => this.openConfirmationPopup('clear-chat', 'Clear Chat')}>
|
|
639
|
+
<svg width="18px" height="18px" viewBox="-1.6 -1.6 19.20 19.20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
640
|
+
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
|
|
641
|
+
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
|
|
642
|
+
<g id="SVGRepo_iconCarrier">
|
|
643
|
+
<path
|
|
644
|
+
d="M9.44444 4.44444L12.3917 0.760432C12.7762 0.279794 13.3583 0 13.9738 0C15.0929 0 16 0.907148 16 2.02617C16 2.64169 15.7202 3.22383 15.2396 3.60835L11.5556 6.55556L12.2454 7.24538C12.7286 7.72855 13 8.38388 13 9.0672C13 9.66992 12.7887 10.2536 12.4028 10.7166L11.8246 11.4104L4.58957 4.17536L5.2834 3.59717C5.74643 3.21131 6.33008 3 6.9328 3C7.61612 3 8.27145 3.27145 8.75462 3.75462L9.44444 4.44444Z"
|
|
645
|
+
fill="var(--text-primary-color)"
|
|
646
|
+
></path>
|
|
647
|
+
<path d="M0 8L3.04679 5.46101L10.539 12.9532L8 16L0 8Z" fill="var(--text-primary-color)"></path>
|
|
648
|
+
</g>
|
|
649
|
+
</svg>
|
|
650
|
+
${WEB_CONTENT.CONVERSATION_ACTIONS.CLEAR_CHAT}
|
|
651
|
+
</button>`}
|
|
652
|
+
|
|
653
|
+
<button @click=${() => this.openConfirmationPopup('close-chat', 'close chat')}>
|
|
654
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" viewBox="0 0 24 24" fill="none">
|
|
655
|
+
<path
|
|
656
|
+
fill-rule="evenodd"
|
|
657
|
+
clip-rule="evenodd"
|
|
658
|
+
d="M5.29289 5.29289C5.68342 4.90237 6.31658 4.90237 6.70711 5.29289L12 10.5858L17.2929 5.29289C17.6834 4.90237 18.3166 4.90237 18.7071 5.29289C19.0976 5.68342 19.0976 6.31658 18.7071 6.70711L13.4142 12L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071L12 13.4142L6.70711 18.7071C6.31658 19.0976 5.68342 19.0976 5.29289 18.7071C4.90237 18.3166 4.90237 17.6834 5.29289 17.2929L10.5858 12L5.29289 6.70711C4.90237 6.31658 4.90237 5.68342 5.29289 5.29289Z"
|
|
659
|
+
fill="currentColor"
|
|
660
|
+
></path>
|
|
661
|
+
</svg>
|
|
662
|
+
${WEB_CONTENT.CONVERSATION_ACTIONS.CLOSE_CHAT}
|
|
663
|
+
</button>
|
|
664
|
+
</div>
|
|
665
|
+
`
|
|
666
|
+
: ''}
|
|
667
|
+
</div>
|
|
668
|
+
`;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
customElements.define('my-head', Head);
|