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,203 @@
|
|
|
1
|
+
import{e as t,b as e,D as i,t as s,R as o,h as a,i as n,k as c,I as r}from"./p-48e1d174.js";import{p as l}from"./p-de8a8642.js";import"./p-8490e13d.js";import"./p-f1f5d5bd.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2017 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/class p extends e{constructor(t){if(super(t),this.it=i,t.type!==s.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===i||null==t)return this._t=void 0,this.it=t;if(t===o)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}p.directiveName="unsafeHTML",p.resultType=1;const h=t(p);
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2017 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*/class d extends p{}d.directiveName="unsafeSVG",d.resultType=2;const m=t(d);const g=`\n<svg version="1.1" id="_x35_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve" width="25px" height="25px" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g> <polygon style="fill:#B12A27;" points="475.435,117.825 475.435,512 47.791,512 47.791,0.002 357.613,0.002 412.491,54.881 "></polygon> <rect x="36.565" y="34.295" style="fill:#F2F2F2;" width="205.097" height="91.768"></rect> <g> <g> <path style="fill:#B12A27;" d="M110.132,64.379c-0.905-2.186-2.111-4.146-3.769-5.804c-1.658-1.658-3.694-3.015-6.031-3.92 c-2.412-0.98-5.126-1.432-8.141-1.432H69.651v58.195h11.383V89.481h11.157c3.015,0,5.729-0.452,8.141-1.432 c2.337-0.905,4.372-2.261,6.031-3.92c1.659-1.658,2.865-3.543,3.769-5.804c0.829-2.186,1.282-4.523,1.282-6.935 C111.413,68.902,110.961,66.565,110.132,64.379z M97.844,77.118c-1.508,1.432-3.618,2.186-6.181,2.186H81.034V63.323h10.629 c2.563,0,4.674,0.754,6.181,2.261c1.432,1.432,2.186,3.392,2.186,5.804C100.031,73.726,99.277,75.686,97.844,77.118z"></path> <path style="fill:#B12A27;" d="M164.558,75.761c-0.075-2.035-0.151-3.844-0.377-5.503c-0.226-1.659-0.603-3.166-1.131-4.598 c-0.528-1.357-1.206-2.714-2.111-3.92c-2.035-2.94-4.523-5.126-7.312-6.483c-2.865-1.357-6.257-2.035-10.252-2.035h-20.956 v58.195h20.956c3.995,0,7.387-0.678,10.252-2.035c2.789-1.357,5.277-3.543,7.312-6.483c0.905-1.206,1.583-2.563,2.111-3.92 c0.528-1.432,0.905-2.94,1.131-4.598c0.226-1.658,0.301-3.468,0.377-5.503c0.075-1.96,0.075-4.146,0.075-6.558 C164.633,79.908,164.633,77.721,164.558,75.761z M153.175,88.2c0,1.734-0.151,3.091-0.302,4.297 c-0.151,1.131-0.377,2.186-0.678,2.94c-0.301,0.829-0.754,1.583-1.281,2.261c-1.885,2.412-4.749,3.543-8.518,3.543h-8.669V63.323 h8.669c3.769,0,6.634,1.206,8.518,3.618c0.528,0.678,0.98,1.357,1.281,2.186s0.528,1.809,0.678,3.015 c0.151,1.131,0.302,2.563,0.302,4.221c0.075,1.659,0.075,3.694,0.075,5.955C153.251,84.581,153.251,86.541,153.175,88.2z"></path> <path style="fill:#B12A27;" d="M213.18,63.323V53.222h-38.37v58.195h11.383V87.823h22.992V77.646h-22.992V63.323H213.18z"></path> </g> <g> <path style="fill:#B12A27;" d="M110.132,64.379c-0.905-2.186-2.111-4.146-3.769-5.804c-1.658-1.658-3.694-3.015-6.031-3.92 c-2.412-0.98-5.126-1.432-8.141-1.432H69.651v58.195h11.383V89.481h11.157c3.015,0,5.729-0.452,8.141-1.432 c2.337-0.905,4.372-2.261,6.031-3.92c1.659-1.658,2.865-3.543,3.769-5.804c0.829-2.186,1.282-4.523,1.282-6.935 C111.413,68.902,110.961,66.565,110.132,64.379z M97.844,77.118c-1.508,1.432-3.618,2.186-6.181,2.186H81.034V63.323h10.629 c2.563,0,4.674,0.754,6.181,2.261c1.432,1.432,2.186,3.392,2.186,5.804C100.031,73.726,99.277,75.686,97.844,77.118z"></path> </g> </g> <polygon style="opacity:0.08;fill:#040000;" points="475.435,117.825 475.435,512 47.791,512 47.791,419.581 247.705,219.667 259.54,207.832 266.098,201.273 277.029,190.343 289.995,177.377 412.491,54.881 "></polygon> <polygon style="fill:#771B1B;" points="475.435,117.836 357.599,117.836 357.599,0 "></polygon> <g> <path style="fill:#F2F2F2;" d="M414.376,370.658c-2.488-4.372-5.88-8.518-10.101-12.287c-3.467-3.166-7.538-6.106-12.137-8.82 c-18.544-10.93-45.003-16.207-80.961-16.207h-3.618c-1.96-1.809-3.995-3.618-6.106-5.503 c-13.644-12.287-24.499-25.63-32.942-40.48c16.584-36.561,24.499-69.126,23.519-96.867c-0.151-4.674-0.829-9.046-2.035-13.117 c-1.809-6.558-4.824-12.363-9.046-17.112c-0.075-0.075-0.075-0.075-0.151-0.151c-6.709-7.538-16.056-11.835-25.555-11.835 c-9.574,0-18.393,4.146-24.801,11.76c-6.332,7.538-9.724,17.866-9.875,30.002c-0.226,18.544,1.281,36.108,4.448,52.315 c0.301,1.282,0.528,2.563,0.829,3.844c3.166,14.7,7.84,28.645,13.87,41.611c-7.086,14.398-14.247,26.836-19.223,35.279 c-3.769,6.408-7.915,13.117-12.212,19.826c-19.373,3.468-35.807,7.689-50.129,12.966c-19.373,7.011-34.902,16.056-46.059,26.836 c-7.237,6.935-12.137,14.323-14.549,22.012c-2.563,7.915-2.412,15.83,0.452,22.916c2.638,6.558,7.387,12.061,13.72,15.83 c1.508,0.905,3.091,1.658,4.749,2.337c4.825,1.96,10.101,3.015,15.604,3.015c12.74,0,25.856-5.503,36.937-15.378 c20.655-18.469,41.988-48.169,54.577-66.94c10.327-1.583,21.559-2.94,34.224-4.297c14.926-1.508,28.118-2.412,40.104-2.865 c3.694,3.317,7.237,6.483,10.629,9.498c18.846,16.81,33.168,28.947,46.134,37.465c0,0.075,0.075,0.075,0.151,0.075 c5.126,3.392,10.026,6.181,14.926,8.443c5.503,2.563,11.081,3.92,16.81,3.92c7.237,0,14.021-2.186,19.675-6.181 c5.729-4.146,9.875-10.101,11.76-16.81C420.18,387.694,418.899,378.724,414.376,370.658z M247.705,219.667 c-1.055-9.348-1.508-19.072-1.357-29.324c0.151-9.724,3.694-16.283,8.895-16.283c3.92,0,8.066,3.543,9.95,10.327 c0.528,2.035,0.905,4.372,0.98,7.01c0.151,3.166,0.075,6.483-0.075,9.875c-0.452,9.574-2.111,19.75-4.975,30.681 c-1.734,7.011-3.995,14.323-6.784,21.936C251.173,243.186,248.911,231.803,247.705,219.667z M121.967,418.073 c-1.282-3.166,0.151-9.272,7.991-16.81c11.986-11.458,30.756-20.504,56.914-27.364c-4.975,6.784-9.875,12.966-14.624,18.619 c-7.237,8.744-14.172,16.132-20.429,21.71c-5.352,4.824-11.232,7.84-16.81,8.594c-0.98,0.151-1.96,0.226-2.94,0.226 C127.168,423.049,123.173,421.089,121.967,418.073z M242.428,337.942l0.528-0.829l-0.829,0.151 c0.151-0.377,0.377-0.754,0.603-1.055c3.166-5.352,7.161-12.212,11.458-20.127l0.377,0.829l0.98-2.035 c3.166,4.523,6.634,8.971,10.252,13.267c1.734,2.035,3.543,3.995,5.352,5.955l-1.206,0.075l1.055,0.98 c-3.091,0.226-6.332,0.528-9.574,0.829c-2.035,0.226-4.146,0.377-6.257,0.603C250.796,337.037,246.499,337.49,242.428,337.942z M369.297,384.98c-8.971-5.729-18.996-13.795-31.359-24.575c17.564,1.809,31.359,5.654,41.159,11.383 c4.297,2.488,7.538,5.051,9.724,7.538c3.618,3.844,4.9,7.312,4.221,9.649c-0.603,2.337-3.241,3.92-6.483,3.92 c-1.885,0-3.844-0.452-5.88-1.432c-3.468-1.658-7.086-3.694-10.93-6.181C369.598,385.282,369.448,385.131,369.297,384.98z"></path> </g> </g> </g></svg>`;const u=`<svg width="32px" height="32px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><defs><linearGradient id="a" x1="4.494" y1="-2092.086" x2="13.832" y2="-2075.914" gradientTransform="translate(0 2100)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#18884f"></stop><stop offset="0.5" stop-color="#117e43"></stop><stop offset="1" stop-color="#0b6631"></stop></linearGradient></defs><title>file_type_excel</title><path d="M19.581,15.35,8.512,13.4V27.809A1.192,1.192,0,0,0,9.705,29h19.1A1.192,1.192,0,0,0,30,27.809h0V22.5Z" style="fill:#185c37"></path><path d="M19.581,3H9.705A1.192,1.192,0,0,0,8.512,4.191h0V9.5L19.581,16l5.861,1.95L30,16V9.5Z" style="fill:#21a366"></path><path d="M8.512,9.5H19.581V16H8.512Z" style="fill:#107c41"></path><path d="M16.434,8.2H8.512V24.45h7.922a1.2,1.2,0,0,0,1.194-1.191V9.391A1.2,1.2,0,0,0,16.434,8.2Z" style="opacity:0.10000000149011612;isolation:isolate"></path><path d="M15.783,8.85H8.512V25.1h7.271a1.2,1.2,0,0,0,1.194-1.191V10.041A1.2,1.2,0,0,0,15.783,8.85Z" style="opacity:0.20000000298023224;isolation:isolate"></path><path d="M15.783,8.85H8.512V23.8h7.271a1.2,1.2,0,0,0,1.194-1.191V10.041A1.2,1.2,0,0,0,15.783,8.85Z" style="opacity:0.20000000298023224;isolation:isolate"></path><path d="M15.132,8.85H8.512V23.8h6.62a1.2,1.2,0,0,0,1.194-1.191V10.041A1.2,1.2,0,0,0,15.132,8.85Z" style="opacity:0.20000000298023224;isolation:isolate"></path><path d="M3.194,8.85H15.132a1.193,1.193,0,0,1,1.194,1.191V21.959a1.193,1.193,0,0,1-1.194,1.191H3.194A1.192,1.192,0,0,1,2,21.959V10.041A1.192,1.192,0,0,1,3.194,8.85Z" style="fill:url(#a)"></path><path d="M5.7,19.873l2.511-3.884-2.3-3.862H7.758L9.013,14.6c.116.234.2.408.238.524h.017c.082-.188.169-.369.26-.546l1.342-2.447h1.7l-2.359,3.84,2.419,3.905H10.821l-1.45-2.711A2.355,2.355,0,0,1,9.2,16.8H9.176a1.688,1.688,0,0,1-.168.351L7.515,19.873Z" style="fill:#fff"></path><path d="M28.806,3H19.581V9.5H30V4.191A1.192,1.192,0,0,0,28.806,3Z" style="fill:#33c481"></path><path d="M19.581,16H30v6.5H19.581Z" style="fill:#107c41"></path></g></svg>\n`;class f extends a{static properties={bgColor:{type:String},borderWidth:{type:String},borderColor:{type:String},borderStyle:{type:String},borderRadius:{type:String},padding:{type:String},docName:{type:String},width:{type:String},height:{type:String},documentNameBg:{type:String},documentNamePadding:{type:String},time:{type:String},href:{type:String},fileName:{type:String},isRead:{type:Boolean},isSelf:{type:Boolean},isPopupOpen:{type:Boolean},isDelivered:{type:String},docType:{type:String},textColor:{type:String},message:{type:String},mentionedUsers:{type:Array},messageId:{type:String},reactions:{type:Object},showConfirmationPopup:{type:Boolean},selectedEmojiToRemove:{type:Object},showAllReactionsPopup:{type:Boolean},showReactionButton:{type:Boolean},showEmojiReactions:{type:Boolean},userMetaData:{type:Boolean},messageType:{type:Number},timeColor:{type:String},showReactionOnHover:{type:Boolean}};constructor(){super();this.isPopupOpen=false;this.showReactionButton=false;this.showEmojiReactions=false;this.reactions={};this.showAllReactionsPopup=false;this.showReactionOnHover=false}static styles=n`
|
|
12
|
+
.document-message-container {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: start;
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
position: relative;
|
|
19
|
+
}
|
|
20
|
+
.doc-container {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
width: 90%;
|
|
24
|
+
padding: 4px 8px 4px 8px;
|
|
25
|
+
border-radius:4px;
|
|
26
|
+
color:var(--text-primary-color);
|
|
27
|
+
}
|
|
28
|
+
.document-name {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 2px;
|
|
32
|
+
width: 100%;
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
word-break: break-word;
|
|
35
|
+
}
|
|
36
|
+
.truncate {
|
|
37
|
+
display: inline-block;
|
|
38
|
+
max-width: 90%;
|
|
39
|
+
word-wrap: break-word;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
text-overflow: ellipsis;
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
}
|
|
44
|
+
.time-stamp-container {
|
|
45
|
+
position: absolute;
|
|
46
|
+
bottom: 5px;
|
|
47
|
+
right: 10px;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: 2px;
|
|
51
|
+
margin-bottom: 10px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.actions {
|
|
55
|
+
position: absolute;
|
|
56
|
+
left: -15px;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
top: 5px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.popup {
|
|
62
|
+
position: absolute;
|
|
63
|
+
top: 0px;
|
|
64
|
+
left: -100px;
|
|
65
|
+
background-color: white;
|
|
66
|
+
border: 1px solid #eef1fa;
|
|
67
|
+
border-radius: 5px;
|
|
68
|
+
padding: 10px;
|
|
69
|
+
box-shadow: 0 2px 10px #eef1fa;
|
|
70
|
+
z-index: 10;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-items: column;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
}
|
|
76
|
+
reaction-container {
|
|
77
|
+
display: block;
|
|
78
|
+
min-height: 150px;
|
|
79
|
+
max-height: fit-content;
|
|
80
|
+
min-width: 300px;
|
|
81
|
+
max-width: 400px;
|
|
82
|
+
position: absolute;
|
|
83
|
+
z-index: 100;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.popup div {
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
}
|
|
89
|
+
.emoji-slider {
|
|
90
|
+
position: absolute;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
emoji-reactions {
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: 15px;
|
|
96
|
+
z-index: 99;
|
|
97
|
+
left: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.reaction-button {
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: 50%;
|
|
103
|
+
right: -25px;
|
|
104
|
+
transform: translateY(-50%);
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
z-index: 100;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.remaining-count {
|
|
110
|
+
background-color: var(--bg-primary-light);
|
|
111
|
+
font-size: 14px;
|
|
112
|
+
display: flex;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
color: var(--text-primary-color);
|
|
115
|
+
width: 25px;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.reactions-display {
|
|
120
|
+
position: absolute;
|
|
121
|
+
bottom: -10px;
|
|
122
|
+
right: 10px;
|
|
123
|
+
display: grid;
|
|
124
|
+
grid-template-columns: repeat(3, auto);
|
|
125
|
+
gap: 0;
|
|
126
|
+
margin-top: 4px;
|
|
127
|
+
background-color: transparent;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.reaction-item {
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
gap: 2px;
|
|
134
|
+
border-radius: 12px;
|
|
135
|
+
font-size: 20px;
|
|
136
|
+
background: var(--bg-secondary-color);
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
}
|
|
139
|
+
`;openPopup(){this.isPopupOpen=!this.isPopupOpen}truncateDocName(t){const e=t.lastIndexOf(".");const i=e!==-1?t.slice(0,e):t;const s=e!==-1?t.slice(e):"";const o=40-s.length;if(i.length<=o){const t=i.slice(0,Math.min(20,i.length));const e=i.slice(20);return`${t}<br/>${e}${s}`}else{const t=i.slice(0,o-3)+"...";const e=t.slice(0,20);const a=t.slice(20);return`${e} ${a}${s}`}}handleMentionClick=t=>{this.dispatchEvent(new CustomEvent("tagUserClick",{detail:{userId:t?.userId,userName:t?.userName},bubbles:true,composed:true}))};handleMouseEnter(){if(this.showReactionOnHover){this.showReactionButton=true}}handleReactionRemove(t){this.showEmojiReactions=false;this.showConfirmationPopup=true;this.selectedEmojiToRemove=t;setTimeout((()=>{document.addEventListener("click",this.handleOutsideClick)}),100)}handleMouseLeave(t){const e=this.renderRoot.querySelector(".message-container");const i=this.renderRoot.querySelector("emoji-reactions");const s=this.renderRoot.querySelector(".reaction-button");const o=this.showEmojiReactions;const a=e?.contains(t.relatedTarget);const n=i&&i?.contains(t.relatedTarget);const c=s&&s?.contains(t.relatedTarget);if(!a&&!n&&!c){this.showReactionButton=false;if(!o){this.showEmojiReactions=false}}}handleOutsideClick=t=>{const e=this.renderRoot.querySelector("emoji-reactions");const i=this.renderRoot.querySelector(".message-container");const s=this.renderRoot.querySelector("reaction-container");const o=t.composedPath();if(this.showEmojiReactions&&!o.includes(e)&&!o.includes(i)||this.showConfirmationPopup&&!o.includes(s)&&!o.includes(i)){this.showEmojiReactions=false;this.showConfirmationPopup=false;document.removeEventListener("click",this.handleOutsideClick)}};toggleEmojiReactions(){this.showConfirmationPopup=false;this.showEmojiReactions=!this.showEmojiReactions;if(this.showEmojiReactions){setTimeout((()=>{document.addEventListener("click",this.handleOutsideClick)}),100)}}handleEmojiClick(t){const e=this.userMetaData?.userId;const i=this.reactions[t.id]||[];const s=i.includes(e);let o=null;for(const[t,i]of Object.entries(this.reactions)){if(i.includes(e)){o=t;break}}if(o&&o!==t.id){this.dispatchEvent(new CustomEvent("reaction-removed",{detail:{messageId:this.messageId,emojiId:o},bubbles:true,composed:true}))}if(s){this.dispatchEvent(new CustomEvent("reaction-removed",{detail:{messageId:this.messageId,emojiId:t.id},bubbles:true,composed:true}))}else{this.dispatchEvent(new CustomEvent("reaction-added",{detail:{messageId:this.messageId,emojiId:t.id},bubbles:true,composed:true}))}this.showEmojiReactions=false;document.removeEventListener("click",this.handleOutsideClick)}handleConfirmRemove(){if(this.selectedEmojiToRemove){this.dispatchEvent(new CustomEvent("reaction-removed",{detail:{messageId:this.messageId,emojiId:this.selectedEmojiToRemove.emojiId},bubbles:true,composed:true}))}this.closeConfirmationPopup()}closeConfirmationPopup(){this.showConfirmationPopup=false;this.selectedEmojiToRemove=null}render(){const t=document.createElement("emoji-reactions").emojis;const e=Object.keys(this.reactions).map((e=>{const i=t.find((t=>t.id===e));return{emojiId:e,messageId:this.reactions[e],src:i?.src}})).filter((t=>Array.isArray(t.messageId)&&t.messageId.length>0));const i=e.slice(0,2);const s=e.length>2?e.length-2:0;return c`
|
|
140
|
+
<div
|
|
141
|
+
@mouseover="${()=>this.handleMouseEnter()}"
|
|
142
|
+
@mouseout="${t=>this.handleMouseLeave(t)}"
|
|
143
|
+
class="document-message-container"
|
|
144
|
+
style="padding:${this.padding};
|
|
145
|
+
border-width: ${this.borderWidth};
|
|
146
|
+
border-color: ${this.borderColor};
|
|
147
|
+
border-style:${this.borderStyle};
|
|
148
|
+
border-radius:${this.borderRadius||"var(--radius-bubble)"};
|
|
149
|
+
background-color: ${this.bgColor||(this.isSelf?"var(--bg-outgoing-message)":"var(--bg-incoming-message)")};
|
|
150
|
+
height: ${this.height};
|
|
151
|
+
width: ${this.width};
|
|
152
|
+
"
|
|
153
|
+
>
|
|
154
|
+
${this.messageType===1?c`
|
|
155
|
+
<forward-ui></forward-ui>
|
|
156
|
+
`:null}
|
|
157
|
+
${!this.isSelf&&this.showReactionButton?c`
|
|
158
|
+
<div class="reaction-button" @click="${()=>this.toggleEmojiReactions()}" ">
|
|
159
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="var(--text-primary-color)">
|
|
160
|
+
<path d="M612-516q25 0 42.5-17.5T672-576q0-25-17.5-42.5T612-636q-25 0-42.5 17.5T552-576q0 25 17.5 42.5T612-516Zm-264 0q25 0 42.5-17.5T408-576q0-25-17.5-42.5T348-636q-25 0-42.5 17.5T288-576q0 25 17.5 42.5T348-516Zm132 228q60 0 110.5-31t79.5-84H290q29 53 79.5 84T480-288Zm.28 192Q401-96 331-126t-122.5-82.5Q156-261 126-330.96t-30-149.5Q96-560 126-629.5q30-69.5 82.5-122T330.96-834q69.96-30 149.5-30t149.04 30q69.5 30 122 82.5T834-629.28q30 69.73 30 149Q864-401 834-331t-82.5 122.5Q699-156 629.28-126q-69.73 30-149 30ZM480-480Zm0 312q130 0 221-91t91-221q0-130-91-221t-221-91q-130 0-221 91t-91 221q0 130 91 221t221 91Z"/>
|
|
161
|
+
</svg>
|
|
162
|
+
</div>
|
|
163
|
+
`:""}
|
|
164
|
+
|
|
165
|
+
${this.showConfirmationPopup?c` <reaction-container .messageId=${this.messageId} .userMetaData=${this.userMetaData} .reactions=${e}></reaction-container> `:""}
|
|
166
|
+
${this.showEmojiReactions?c`
|
|
167
|
+
<emoji-reactions .isOpen="${this.showEmojiReactions}" .onEmojiSelect="${t=>this.handleEmojiClick(t)}" .selectedEmojis="${this.reactions}"></emoji-reactions>
|
|
168
|
+
`:""}
|
|
169
|
+
|
|
170
|
+
<div class="reactions-display">
|
|
171
|
+
${i?.map((t=>c`
|
|
172
|
+
<span class="reaction-item" @click="${()=>this.handleReactionRemove(t)}"> ${t.src?c`<span>${t.src}</span>`:""} </span>
|
|
173
|
+
`))}
|
|
174
|
+
${s>0?c`
|
|
175
|
+
<span @click="${()=>this.handleReactionRemove(i[0])}" class="reaction-item remaining-count" "> +${s} </span>
|
|
176
|
+
|
|
177
|
+
`:""}
|
|
178
|
+
</div>
|
|
179
|
+
<div class="doc-container" style="background-color: ${this.documentNameBg||"var(--bg-primary-light)"};">
|
|
180
|
+
<div class="document-name" style=" padding: ${this.documentNamePadding||"5px 10px 5px 0"}">
|
|
181
|
+
${this.docType.includes("vnd.openxmlformats-officedocument.spreadsheetml.sheet")?c`<div class='attachment-icon'>${m(u)}</div>`:this.docType.includes("application/pdf")?c`<div class='attachment-icon'>${m(g)}</div>`:r({src:"https://flexcrew.s3.us-west-1.amazonaws.com/document_text_svgrepo_com_1_2583e4b5fc.svg",alt:"documentIcon",height:"25px",width:"25px"})}
|
|
182
|
+
<span .innerHTML=${this.truncateDocName(this.docName||"Document")}></span>
|
|
183
|
+
</div>
|
|
184
|
+
<a href=${this.href} download=${this.fileName} target="_blank">
|
|
185
|
+
<svg width="24" fill="var(--text-primary-color)" height="24" viewBox="0 0 24 24">
|
|
186
|
+
<path
|
|
187
|
+
d="M9.163 2.819C9 3.139 9 3.559 9 4.4V11H7.803c-.883 0-1.325 0-1.534.176a.75.75 0 0 0-.266.62c.017.274.322.593.931 1.232l4.198 4.401c.302.318.453.476.63.535a.749.749 0 0 0 .476 0c.177-.059.328-.217.63-.535l4.198-4.4c.61-.64.914-.96.93-1.233a.75.75 0 0 0-.265-.62C17.522 11 17.081 11 16.197 11H15V4.4c0-.84 0-1.26-.164-1.581a1.5 1.5 0 0 0-.655-.656C13.861 2 13.441 2 12.6 2h-1.2c-.84 0-1.26 0-1.581.163a1.5 1.5 0 0 0-.656.656zM5 21a1 1 0 0 0 1 1h12a1 1 0 1 0 0-2H6a1 1 0 0 0-1 1z"
|
|
188
|
+
/>
|
|
189
|
+
</svg>
|
|
190
|
+
</a>
|
|
191
|
+
</div>
|
|
192
|
+
${this.message&&!this.message.includes("AttachmentMessage:")?c`
|
|
193
|
+
<span style="font-size: 14px; color: ${this.textColor}">
|
|
194
|
+
${l(this.message,this.mentionedUsers,this.handleMentionClick,this.isSelf)}
|
|
195
|
+
</span>
|
|
196
|
+
`:null}
|
|
197
|
+
<div class="time-stamp-container">
|
|
198
|
+
<timestamp-element .time="${this.time}" .color="${this.timeColor}"></timestamp-element>
|
|
199
|
+
${this.isSelf?this.isRead==true?c`<blue-read-mark></blue-read-mark>`:this.isDelivered=="true"?c`<double-mark></double-mark>`:this.isDelivered=="pending"?c`<clock-mark></clock-mark>`:c`<single-mark></single-mark>`:null}
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
`}}customElements.define("document-message",f);export{h as a};
|
|
203
|
+
//# sourceMappingURL=p-ff9f3dfe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["le","i","constructor","super","this","it","D","type","t","CHILD","Error","directiveName","render","_t","R","raw","_$litType$","resultType","strings","values","ae","e","pe","fe","pdfSvg","excelSvg","DocumentMessageBubble","LitElement","static","bgColor","String","borderWidth","borderColor","borderStyle","borderRadius","padding","docName","width","height","documentNameBg","documentNamePadding","time","href","fileName","isRead","Boolean","isSelf","isPopupOpen","isDelivered","docType","textColor","message","mentionedUsers","Array","messageId","reactions","Object","showConfirmationPopup","selectedEmojiToRemove","showAllReactionsPopup","showReactionButton","showEmojiReactions","userMetaData","messageType","Number","timeColor","showReactionOnHover","css","openPopup","truncateDocName","lastDotIndex","lastIndexOf","name","slice","extension","availableSpace","length","firstLine","Math","min","secondLine","truncatedName","handleMentionClick","user","dispatchEvent","CustomEvent","detail","userId","userName","bubbles","composed","handleMouseEnter","handleReactionRemove","reaction","setTimeout","document","addEventListener","handleOutsideClick","handleMouseLeave","messageContainer","renderRoot","querySelector","emojiReactions","reactionButton","isEmojiSliderOpen","isMovingToMessage","contains","relatedTarget","isMovingToEmoji","isMovingToReactionButton","reactionContainer","path","composedPath","includes","removeEventListener","toggleEmojiReactions","handleEmojiClick","emoji","currentUserId","usersForEmoji","id","hasReaction","existingReactionEmojiId","emojiId","userIds","entries","handleConfirmRemove","closeConfirmationPopup","emojiList","createElement","emojis","allReactions","keys","map","matchingEmoji","find","src","filter","isArray","visibleReactions","remainingCount","html","unsafeSVG","Image","alt","processTextWithMentions","customElements","define"],"sources":["node_modules/lit-html/directives/unsafe-html.js","node_modules/lit-html/directives/unsafe-svg.js","src/assets/svg/PdfDocument.js","src/assets/svg/ExcelDocument.js","src/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.js"],"sourcesContent":["import{nothing as D,noChange as R}from\"../lit-html.js\";import{Directive as i,PartType as t,directive as e}from\"../directive.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class le extends i{constructor(i){if(super(i),this.it=D,i.type!==t.CHILD)throw Error(this.constructor.directiveName+\"() can only be used in child bindings\")}render(t){if(t===D||null==t)return this._t=void 0,this.it=t;if(t===R)return t;if(\"string\"!=typeof t)throw Error(this.constructor.directiveName+\"() called with a non-string value\");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}le.directiveName=\"unsafeHTML\",le.resultType=1;const ae=e(le);export{le as UnsafeHTMLDirective,ae as unsafeHTML};\n//# sourceMappingURL=unsafe-html.js.map\n","import{directive as e}from\"../directive.js\";import{UnsafeHTMLDirective as le}from\"./unsafe-html.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class pe extends le{}pe.directiveName=\"unsafeSVG\",pe.resultType=2;const fe=e(pe);export{fe as unsafeSVG};\n//# sourceMappingURL=unsafe-svg.js.map\n","export const pdfSvg = `\n<svg version=\"1.1\" id=\"_x35_\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 512 512\" xml:space=\"preserve\" width=\"25px\" height=\"25px\" fill=\"#000000\"><g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\"></g><g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></g><g id=\"SVGRepo_iconCarrier\"> <g> <polygon style=\"fill:#B12A27;\" points=\"475.435,117.825 475.435,512 47.791,512 47.791,0.002 357.613,0.002 412.491,54.881 \"></polygon> <rect x=\"36.565\" y=\"34.295\" style=\"fill:#F2F2F2;\" width=\"205.097\" height=\"91.768\"></rect> <g> <g> <path style=\"fill:#B12A27;\" d=\"M110.132,64.379c-0.905-2.186-2.111-4.146-3.769-5.804c-1.658-1.658-3.694-3.015-6.031-3.92 c-2.412-0.98-5.126-1.432-8.141-1.432H69.651v58.195h11.383V89.481h11.157c3.015,0,5.729-0.452,8.141-1.432 c2.337-0.905,4.372-2.261,6.031-3.92c1.659-1.658,2.865-3.543,3.769-5.804c0.829-2.186,1.282-4.523,1.282-6.935 C111.413,68.902,110.961,66.565,110.132,64.379z M97.844,77.118c-1.508,1.432-3.618,2.186-6.181,2.186H81.034V63.323h10.629 c2.563,0,4.674,0.754,6.181,2.261c1.432,1.432,2.186,3.392,2.186,5.804C100.031,73.726,99.277,75.686,97.844,77.118z\"></path> <path style=\"fill:#B12A27;\" d=\"M164.558,75.761c-0.075-2.035-0.151-3.844-0.377-5.503c-0.226-1.659-0.603-3.166-1.131-4.598 c-0.528-1.357-1.206-2.714-2.111-3.92c-2.035-2.94-4.523-5.126-7.312-6.483c-2.865-1.357-6.257-2.035-10.252-2.035h-20.956 v58.195h20.956c3.995,0,7.387-0.678,10.252-2.035c2.789-1.357,5.277-3.543,7.312-6.483c0.905-1.206,1.583-2.563,2.111-3.92 c0.528-1.432,0.905-2.94,1.131-4.598c0.226-1.658,0.301-3.468,0.377-5.503c0.075-1.96,0.075-4.146,0.075-6.558 C164.633,79.908,164.633,77.721,164.558,75.761z M153.175,88.2c0,1.734-0.151,3.091-0.302,4.297 c-0.151,1.131-0.377,2.186-0.678,2.94c-0.301,0.829-0.754,1.583-1.281,2.261c-1.885,2.412-4.749,3.543-8.518,3.543h-8.669V63.323 h8.669c3.769,0,6.634,1.206,8.518,3.618c0.528,0.678,0.98,1.357,1.281,2.186s0.528,1.809,0.678,3.015 c0.151,1.131,0.302,2.563,0.302,4.221c0.075,1.659,0.075,3.694,0.075,5.955C153.251,84.581,153.251,86.541,153.175,88.2z\"></path> <path style=\"fill:#B12A27;\" d=\"M213.18,63.323V53.222h-38.37v58.195h11.383V87.823h22.992V77.646h-22.992V63.323H213.18z\"></path> </g> <g> <path style=\"fill:#B12A27;\" d=\"M110.132,64.379c-0.905-2.186-2.111-4.146-3.769-5.804c-1.658-1.658-3.694-3.015-6.031-3.92 c-2.412-0.98-5.126-1.432-8.141-1.432H69.651v58.195h11.383V89.481h11.157c3.015,0,5.729-0.452,8.141-1.432 c2.337-0.905,4.372-2.261,6.031-3.92c1.659-1.658,2.865-3.543,3.769-5.804c0.829-2.186,1.282-4.523,1.282-6.935 C111.413,68.902,110.961,66.565,110.132,64.379z M97.844,77.118c-1.508,1.432-3.618,2.186-6.181,2.186H81.034V63.323h10.629 c2.563,0,4.674,0.754,6.181,2.261c1.432,1.432,2.186,3.392,2.186,5.804C100.031,73.726,99.277,75.686,97.844,77.118z\"></path> </g> </g> <polygon style=\"opacity:0.08;fill:#040000;\" points=\"475.435,117.825 475.435,512 47.791,512 47.791,419.581 247.705,219.667 259.54,207.832 266.098,201.273 277.029,190.343 289.995,177.377 412.491,54.881 \"></polygon> <polygon style=\"fill:#771B1B;\" points=\"475.435,117.836 357.599,117.836 357.599,0 \"></polygon> <g> <path style=\"fill:#F2F2F2;\" d=\"M414.376,370.658c-2.488-4.372-5.88-8.518-10.101-12.287c-3.467-3.166-7.538-6.106-12.137-8.82 c-18.544-10.93-45.003-16.207-80.961-16.207h-3.618c-1.96-1.809-3.995-3.618-6.106-5.503 c-13.644-12.287-24.499-25.63-32.942-40.48c16.584-36.561,24.499-69.126,23.519-96.867c-0.151-4.674-0.829-9.046-2.035-13.117 c-1.809-6.558-4.824-12.363-9.046-17.112c-0.075-0.075-0.075-0.075-0.151-0.151c-6.709-7.538-16.056-11.835-25.555-11.835 c-9.574,0-18.393,4.146-24.801,11.76c-6.332,7.538-9.724,17.866-9.875,30.002c-0.226,18.544,1.281,36.108,4.448,52.315 c0.301,1.282,0.528,2.563,0.829,3.844c3.166,14.7,7.84,28.645,13.87,41.611c-7.086,14.398-14.247,26.836-19.223,35.279 c-3.769,6.408-7.915,13.117-12.212,19.826c-19.373,3.468-35.807,7.689-50.129,12.966c-19.373,7.011-34.902,16.056-46.059,26.836 c-7.237,6.935-12.137,14.323-14.549,22.012c-2.563,7.915-2.412,15.83,0.452,22.916c2.638,6.558,7.387,12.061,13.72,15.83 c1.508,0.905,3.091,1.658,4.749,2.337c4.825,1.96,10.101,3.015,15.604,3.015c12.74,0,25.856-5.503,36.937-15.378 c20.655-18.469,41.988-48.169,54.577-66.94c10.327-1.583,21.559-2.94,34.224-4.297c14.926-1.508,28.118-2.412,40.104-2.865 c3.694,3.317,7.237,6.483,10.629,9.498c18.846,16.81,33.168,28.947,46.134,37.465c0,0.075,0.075,0.075,0.151,0.075 c5.126,3.392,10.026,6.181,14.926,8.443c5.503,2.563,11.081,3.92,16.81,3.92c7.237,0,14.021-2.186,19.675-6.181 c5.729-4.146,9.875-10.101,11.76-16.81C420.18,387.694,418.899,378.724,414.376,370.658z M247.705,219.667 c-1.055-9.348-1.508-19.072-1.357-29.324c0.151-9.724,3.694-16.283,8.895-16.283c3.92,0,8.066,3.543,9.95,10.327 c0.528,2.035,0.905,4.372,0.98,7.01c0.151,3.166,0.075,6.483-0.075,9.875c-0.452,9.574-2.111,19.75-4.975,30.681 c-1.734,7.011-3.995,14.323-6.784,21.936C251.173,243.186,248.911,231.803,247.705,219.667z M121.967,418.073 c-1.282-3.166,0.151-9.272,7.991-16.81c11.986-11.458,30.756-20.504,56.914-27.364c-4.975,6.784-9.875,12.966-14.624,18.619 c-7.237,8.744-14.172,16.132-20.429,21.71c-5.352,4.824-11.232,7.84-16.81,8.594c-0.98,0.151-1.96,0.226-2.94,0.226 C127.168,423.049,123.173,421.089,121.967,418.073z M242.428,337.942l0.528-0.829l-0.829,0.151 c0.151-0.377,0.377-0.754,0.603-1.055c3.166-5.352,7.161-12.212,11.458-20.127l0.377,0.829l0.98-2.035 c3.166,4.523,6.634,8.971,10.252,13.267c1.734,2.035,3.543,3.995,5.352,5.955l-1.206,0.075l1.055,0.98 c-3.091,0.226-6.332,0.528-9.574,0.829c-2.035,0.226-4.146,0.377-6.257,0.603C250.796,337.037,246.499,337.49,242.428,337.942z M369.297,384.98c-8.971-5.729-18.996-13.795-31.359-24.575c17.564,1.809,31.359,5.654,41.159,11.383 c4.297,2.488,7.538,5.051,9.724,7.538c3.618,3.844,4.9,7.312,4.221,9.649c-0.603,2.337-3.241,3.92-6.483,3.92 c-1.885,0-3.844-0.452-5.88-1.432c-3.468-1.658-7.086-3.694-10.93-6.181C369.598,385.282,369.448,385.131,369.297,384.98z\"></path> </g> </g> </g></svg>`","export const excelSvg = `<svg width=\"32px\" height=\"32px\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" fill=\"#000000\"><g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\"></g><g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></g><g id=\"SVGRepo_iconCarrier\"><defs><linearGradient id=\"a\" x1=\"4.494\" y1=\"-2092.086\" x2=\"13.832\" y2=\"-2075.914\" gradientTransform=\"translate(0 2100)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-color=\"#18884f\"></stop><stop offset=\"0.5\" stop-color=\"#117e43\"></stop><stop offset=\"1\" stop-color=\"#0b6631\"></stop></linearGradient></defs><title>file_type_excel</title><path d=\"M19.581,15.35,8.512,13.4V27.809A1.192,1.192,0,0,0,9.705,29h19.1A1.192,1.192,0,0,0,30,27.809h0V22.5Z\" style=\"fill:#185c37\"></path><path d=\"M19.581,3H9.705A1.192,1.192,0,0,0,8.512,4.191h0V9.5L19.581,16l5.861,1.95L30,16V9.5Z\" style=\"fill:#21a366\"></path><path d=\"M8.512,9.5H19.581V16H8.512Z\" style=\"fill:#107c41\"></path><path d=\"M16.434,8.2H8.512V24.45h7.922a1.2,1.2,0,0,0,1.194-1.191V9.391A1.2,1.2,0,0,0,16.434,8.2Z\" style=\"opacity:0.10000000149011612;isolation:isolate\"></path><path d=\"M15.783,8.85H8.512V25.1h7.271a1.2,1.2,0,0,0,1.194-1.191V10.041A1.2,1.2,0,0,0,15.783,8.85Z\" style=\"opacity:0.20000000298023224;isolation:isolate\"></path><path d=\"M15.783,8.85H8.512V23.8h7.271a1.2,1.2,0,0,0,1.194-1.191V10.041A1.2,1.2,0,0,0,15.783,8.85Z\" style=\"opacity:0.20000000298023224;isolation:isolate\"></path><path d=\"M15.132,8.85H8.512V23.8h6.62a1.2,1.2,0,0,0,1.194-1.191V10.041A1.2,1.2,0,0,0,15.132,8.85Z\" style=\"opacity:0.20000000298023224;isolation:isolate\"></path><path d=\"M3.194,8.85H15.132a1.193,1.193,0,0,1,1.194,1.191V21.959a1.193,1.193,0,0,1-1.194,1.191H3.194A1.192,1.192,0,0,1,2,21.959V10.041A1.192,1.192,0,0,1,3.194,8.85Z\" style=\"fill:url(#a)\"></path><path d=\"M5.7,19.873l2.511-3.884-2.3-3.862H7.758L9.013,14.6c.116.234.2.408.238.524h.017c.082-.188.169-.369.26-.546l1.342-2.447h1.7l-2.359,3.84,2.419,3.905H10.821l-1.45-2.711A2.355,2.355,0,0,1,9.2,16.8H9.176a1.688,1.688,0,0,1-.168.351L7.515,19.873Z\" style=\"fill:#fff\"></path><path d=\"M28.806,3H19.581V9.5H30V4.191A1.192,1.192,0,0,0,28.806,3Z\" style=\"fill:#33c481\"></path><path d=\"M19.581,16H30v6.5H19.581Z\" style=\"fill:#107c41\"></path></g></svg>\n`;\n","import { LitElement } from 'lit';\nimport { html, css } from 'lit';\nimport { Image } from '../../Image/Image';\nimport { Button } from '../../Buttons/Buttons';\nimport '../../Time/Timestamp';\nimport '../../ReadMark/SingleMark/SingleMark.js';\nimport '../../ReadMark/BlueReadMark/BlueReadMark.js';\nimport '../../ReadMark/DoubleMark/DoubleMark.js';\nimport '../../ReadMark/ClockMark/ClockMark.js';\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js';\nimport {pdfSvg} from '../../../../assets/svg/PdfDocument.js';\nimport {excelSvg} from '../../../../assets/svg/ExcelDocument.js';\nimport { parseMessageWithLink } from '../../../../lib/helpers.js';\nimport { processTextWithMentions } from '../../../../lib/taguser.js';\nimport '../../EmojiReactions/EmojiReactions.js';\nimport '../../Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js';\nimport '../../../../components/ChatUIComponent/ReactionContainer.tsx';\nimport'../../ForwardMessage/ForwardUi.js'\n\nclass DocumentMessageBubble extends LitElement {\n static properties = {\n bgColor: { type: String },\n borderWidth: { type: String },\n borderColor: { type: String },\n borderStyle: { type: String },\n borderRadius: { type: String },\n padding: { type: String },\n docName: { type: String },\n width: { type: String },\n height: { type: String },\n documentNameBg: { type: String },\n documentNamePadding: { type: String },\n time: { type: String },\n href: { type: String },\n fileName: { type: String },\n isRead: { type: Boolean },\n isSelf: { type: Boolean },\n isPopupOpen: { type: Boolean },\n isDelivered: { type: String },\n docType: { type: String },\n textColor: { type: String },\n message: { type: String },\n mentionedUsers: { type: Array },\n messageId: { type: String },\n reactions: { type: Object },\n showConfirmationPopup: { type: Boolean },\n selectedEmojiToRemove: { type: Object },\n showAllReactionsPopup: {type: Boolean},\n showReactionButton: {type: Boolean},\n showEmojiReactions: {type: Boolean},\n userMetaData: {type: Boolean},\n messageType:{ type: Number },\n timeColor: { type: String },\n showReactionOnHover: {type: Boolean}\n };\n\n constructor() {\n super();\n this.isPopupOpen = false;\n this.showReactionButton = false;\n this.showEmojiReactions = false;\n this.reactions = {};\n this.showAllReactionsPopup = false;\n this.showReactionOnHover = false;\n }\n static styles = css`\n .document-message-container {\n display: flex;\n align-items: start;\n font-size: 16px;\n justify-content: space-between;\n flex-direction: column;\n position: relative;\n }\n .doc-container {\n display: flex;\n align-items: center;\n width: 90%;\n padding: 4px 8px 4px 8px;\n border-radius:4px;\n color:var(--text-primary-color);\n }\n .document-name {\n display: flex;\n align-items: center;\n gap: 2px;\n width: 100%;\n font-size: 14px;\n word-break: break-word;\n }\n .truncate {\n display: inline-block;\n max-width: 90%;\n word-wrap: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .time-stamp-container {\n position: absolute;\n bottom: 5px;\n right: 10px;\n display: flex;\n align-items: center;\n gap: 2px;\n margin-bottom: 10px;\n }\n\n .actions {\n position: absolute;\n left: -15px;\n cursor: pointer;\n top: 5px;\n }\n\n .popup {\n position: absolute;\n top: 0px;\n left: -100px;\n background-color: white;\n border: 1px solid #eef1fa;\n border-radius: 5px;\n padding: 10px;\n box-shadow: 0 2px 10px #eef1fa;\n z-index: 10;\n display: flex;\n flex-items: column;\n align-items: center;\n justify-content: center;\n }\n reaction-container {\n display: block;\n min-height: 150px;\n max-height: fit-content;\n min-width: 300px;\n max-width: 400px;\n position: absolute;\n z-index: 100;\n }\n\n .popup div {\n cursor: pointer;\n }\n .emoji-slider {\n position: absolute;\n }\n\n emoji-reactions {\n position: absolute;\n top: 15px;\n z-index: 99;\n left: 0;\n }\n\n .reaction-button {\n position: absolute;\n top: 50%;\n right: -25px;\n transform: translateY(-50%);\n cursor: pointer;\n z-index: 100;\n }\n\n .remaining-count {\n background-color: var(--bg-primary-light);\n font-size: 14px;\n display: flex;\n justify-content: center;\n color: var(--text-primary-color);\n width: 25px;\n cursor: pointer;\n }\n\n .reactions-display {\n position: absolute;\n bottom: -10px;\n right: 10px;\n display: grid;\n grid-template-columns: repeat(3, auto);\n gap: 0;\n margin-top: 4px;\n background-color: transparent;\n }\n\n .reaction-item {\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 12px;\n font-size: 20px;\n background: var(--bg-secondary-color);\n cursor: pointer;\n }\n `;\n\n openPopup() {\n this.isPopupOpen = !this.isPopupOpen;\n }\n truncateDocName(docName) {\n const lastDotIndex = docName.lastIndexOf('.');\n const name = lastDotIndex !== -1 ? docName.slice(0, lastDotIndex) : docName;\n const extension = lastDotIndex !== -1 ? docName.slice(lastDotIndex) : '';\n\n const availableSpace = 40 - extension.length;\n\n if (name.length <= availableSpace) {\n const firstLine = name.slice(0, Math.min(20, name.length));\n const secondLine = name.slice(20);\n return `${firstLine}<br/>${secondLine}${extension}`;\n } else {\n const truncatedName = name.slice(0, availableSpace - 3) + '...';\n const firstLine = truncatedName.slice(0, 20);\n const secondLine = truncatedName.slice(20);\n return `${firstLine} ${secondLine}${extension}`;\n }\n }\n\n handleMentionClick = (user) => {\n this.dispatchEvent(\n new CustomEvent('tagUserClick', {\n detail: { userId: user?.userId, userName: user?.userName },\n bubbles: true,\n composed: true,\n })\n );\n };\n\n handleMouseEnter() {\n if(this.showReactionOnHover) {\n this.showReactionButton = true;\n }\n }\n\n\n handleReactionRemove(reaction) {\n this.showEmojiReactions = false;\n\n this.showConfirmationPopup = true;\n this.selectedEmojiToRemove = reaction;\n setTimeout(() => {\n document.addEventListener('click', this.handleOutsideClick)\n }, 100)\n }\n\n handleMouseLeave(e) {\n const messageContainer = this.renderRoot.querySelector('.message-container');\n const emojiReactions = this.renderRoot.querySelector('emoji-reactions');\n const reactionButton = this.renderRoot.querySelector('.reaction-button');\n\n const isEmojiSliderOpen = this.showEmojiReactions;\n\n const isMovingToMessage = messageContainer?.contains(e.relatedTarget);\n const isMovingToEmoji = emojiReactions && emojiReactions?.contains(e.relatedTarget);\n const isMovingToReactionButton = reactionButton && reactionButton?.contains(e.relatedTarget);\n\n if (!isMovingToMessage && !isMovingToEmoji && !isMovingToReactionButton) {\n this.showReactionButton = false;\n \n if (!isEmojiSliderOpen) {\n this.showEmojiReactions = false;\n }\n }\n }\n\n handleOutsideClick = (e) => {\n const emojiReactions = this.renderRoot.querySelector('emoji-reactions');\n const messageContainer = this.renderRoot.querySelector('.message-container');\n const reactionContainer = this.renderRoot.querySelector('reaction-container');\n \n const path = e.composedPath();\n \n if ((this.showEmojiReactions &&\n !path.includes(emojiReactions) &&\n !path.includes(messageContainer)) ||\n (this.showConfirmationPopup &&\n !path.includes(reactionContainer) &&\n !path.includes(messageContainer))\n ) {\n this.showEmojiReactions = false;\n this.showConfirmationPopup = false;\n document.removeEventListener('click', this.handleOutsideClick);\n }\n }\n toggleEmojiReactions() {\n this.showConfirmationPopup = false;\n\n this.showEmojiReactions = !this.showEmojiReactions;\n \n if (this.showEmojiReactions) {\n setTimeout(() => {\n document.addEventListener('click', this.handleOutsideClick);\n }, 100);\n }\n }\n handleEmojiClick(emoji) {\n const currentUserId = this.userMetaData?.userId;\n const usersForEmoji = this.reactions[emoji.id] || [];\n const hasReaction = usersForEmoji.includes(currentUserId);\n \n let existingReactionEmojiId = null;\n \n for (const [emojiId, userIds] of Object.entries(this.reactions)) {\n if (userIds.includes(currentUserId)) {\n existingReactionEmojiId = emojiId;\n break;\n }\n }\n \n if (existingReactionEmojiId && existingReactionEmojiId !== emoji.id) {\n this.dispatchEvent(\n new CustomEvent('reaction-removed', {\n detail: {\n messageId: this.messageId,\n emojiId: existingReactionEmojiId,\n },\n bubbles: true,\n composed: true,\n }),\n );\n }\n \n if (hasReaction) {\n this.dispatchEvent(\n new CustomEvent('reaction-removed', {\n detail: {\n messageId: this.messageId,\n emojiId: emoji.id,\n },\n bubbles: true,\n composed: true,\n }),\n );\n } else {\n this.dispatchEvent(\n new CustomEvent('reaction-added', {\n detail: {\n messageId: this.messageId,\n emojiId: emoji.id,\n },\n bubbles: true,\n composed: true,\n }),\n );\n }\n \n this.showEmojiReactions = false;\n document.removeEventListener('click', this.handleOutsideClick);\n }\n handleConfirmRemove() {\n if (this.selectedEmojiToRemove) {\n this.dispatchEvent(\n new CustomEvent('reaction-removed', {\n detail: {\n messageId: this.messageId,\n emojiId: this.selectedEmojiToRemove.emojiId,\n },\n bubbles: true,\n composed: true,\n }),\n );\n }\n this.closeConfirmationPopup();\n }\n\n closeConfirmationPopup() {\n this.showConfirmationPopup = false;\n this.selectedEmojiToRemove = null;\n }\n\n\n render() {\n const emojiList = document.createElement('emoji-reactions').emojis;\n const allReactions = Object.keys(this.reactions)\n .map(reaction => {\n const matchingEmoji = emojiList.find(emoji => emoji.id === reaction);\n return {\n emojiId: reaction,\n messageId: this.reactions[reaction],\n src: matchingEmoji?.src,\n };\n })\n .filter(reaction => Array.isArray(reaction.messageId) && reaction.messageId.length > 0); \n \n const visibleReactions = allReactions.slice(0, 2);\n const remainingCount = allReactions.length > 2 ? allReactions.length - 2 : 0;;\n return html`\n <div\n @mouseover=\"${() => this.handleMouseEnter()}\"\n @mouseout=\"${e => this.handleMouseLeave(e)}\"\n class=\"document-message-container\"\n style=\"padding:${this.padding};\n border-width: ${this.borderWidth};\n border-color: ${this.borderColor};\n border-style:${this.borderStyle};\n border-radius:${this.borderRadius || 'var(--radius-bubble)'};\n background-color: ${this.bgColor || (this.isSelf ? 'var(--bg-outgoing-message)' : 'var(--bg-incoming-message)')};\n height: ${this.height};\n width: ${this.width};\n \"\n >\n ${this.messageType === 1\n ? html`\n <forward-ui></forward-ui>\n `\n : null}\n ${!this.isSelf && this.showReactionButton\n ? html`\n <div class=\"reaction-button\" @click=\"${() => this.toggleEmojiReactions()}\" \">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"var(--text-primary-color)\">\n <path d=\"M612-516q25 0 42.5-17.5T672-576q0-25-17.5-42.5T612-636q-25 0-42.5 17.5T552-576q0 25 17.5 42.5T612-516Zm-264 0q25 0 42.5-17.5T408-576q0-25-17.5-42.5T348-636q-25 0-42.5 17.5T288-576q0 25 17.5 42.5T348-516Zm132 228q60 0 110.5-31t79.5-84H290q29 53 79.5 84T480-288Zm.28 192Q401-96 331-126t-122.5-82.5Q156-261 126-330.96t-30-149.5Q96-560 126-629.5q30-69.5 82.5-122T330.96-834q69.96-30 149.5-30t149.04 30q69.5 30 122 82.5T834-629.28q30 69.73 30 149Q864-401 834-331t-82.5 122.5Q699-156 629.28-126q-69.73 30-149 30ZM480-480Zm0 312q130 0 221-91t91-221q0-130-91-221t-221-91q-130 0-221 91t-91 221q0 130 91 221t221 91Z\"/>\n </svg>\n </div>\n `\n : ''}\n\n ${this.showConfirmationPopup\n ? html` <reaction-container .messageId=${this.messageId} .userMetaData=${this.userMetaData} .reactions=${allReactions}></reaction-container> `\n : ''}\n ${this.showEmojiReactions\n ? html`\n <emoji-reactions .isOpen=\"${this.showEmojiReactions}\" .onEmojiSelect=\"${emoji => this.handleEmojiClick(emoji)}\" .selectedEmojis=\"${this.reactions}\"></emoji-reactions>\n `\n : ''}\n\n <div class=\"reactions-display\">\n ${visibleReactions?.map(\n reaction => html`\n <span class=\"reaction-item\" @click=\"${() => this.handleReactionRemove(reaction)}\"> ${reaction.src ? html`<span>${reaction.src}</span>` : ''} </span>\n `,\n )}\n ${remainingCount > 0\n ? html`\n <span @click=\"${() => this.handleReactionRemove(visibleReactions[0])}\" class=\"reaction-item remaining-count\" \"> +${remainingCount} </span>\n \n `\n : ''}\n </div>\n <div class=\"doc-container\" style=\"background-color: ${this.documentNameBg || 'var(--bg-primary-light)'};\">\n <div class=\"document-name\" style=\" padding: ${this.documentNamePadding || '5px 10px 5px 0'}\">\n ${this.docType.includes('vnd.openxmlformats-officedocument.spreadsheetml.sheet')\n ? html`<div class='attachment-icon'>${unsafeSVG(excelSvg)}</div>`\n : this.docType.includes('application/pdf')\n ? html`<div class='attachment-icon'>${unsafeSVG(pdfSvg)}</div>`\n : Image({\n src: 'https://flexcrew.s3.us-west-1.amazonaws.com/document_text_svgrepo_com_1_2583e4b5fc.svg',\n alt: 'documentIcon',\n height: '25px',\n width: '25px',\n })}\n <span .innerHTML=${this.truncateDocName(this.docName || 'Document')}></span>\n </div>\n <a href=${this.href} download=${this.fileName} target=\"_blank\">\n <svg width=\"24\" fill=\"var(--text-primary-color)\" height=\"24\" viewBox=\"0 0 24 24\">\n <path\n d=\"M9.163 2.819C9 3.139 9 3.559 9 4.4V11H7.803c-.883 0-1.325 0-1.534.176a.75.75 0 0 0-.266.62c.017.274.322.593.931 1.232l4.198 4.401c.302.318.453.476.63.535a.749.749 0 0 0 .476 0c.177-.059.328-.217.63-.535l4.198-4.4c.61-.64.914-.96.93-1.233a.75.75 0 0 0-.265-.62C17.522 11 17.081 11 16.197 11H15V4.4c0-.84 0-1.26-.164-1.581a1.5 1.5 0 0 0-.655-.656C13.861 2 13.441 2 12.6 2h-1.2c-.84 0-1.26 0-1.581.163a1.5 1.5 0 0 0-.656.656zM5 21a1 1 0 0 0 1 1h12a1 1 0 1 0 0-2H6a1 1 0 0 0-1 1z\"\n />\n </svg>\n </a>\n </div>\n ${this.message && !this.message.includes('AttachmentMessage:')\n ? html`\n <span style=\"font-size: 14px; color: ${this.textColor}\">\n ${processTextWithMentions(this.message, this.mentionedUsers, this.handleMentionClick, this.isSelf)}\n </span>\n `\n : null}\n <div class=\"time-stamp-container\">\n <timestamp-element .time=\"${this.time}\" .color=\"${this.timeColor}\"></timestamp-element>\n ${this.isSelf\n ? this.isRead == true\n ? html`<blue-read-mark></blue-read-mark>`\n : this.isDelivered == 'true'\n ? html`<double-mark></double-mark>`\n : this.isDelivered == 'pending'\n ? html`<clock-mark></clock-mark>`\n : html`<single-mark></single-mark>`\n : null}\n </div>\n </div>\n `;\n }\n}\n\ncustomElements.define('document-message', DocumentMessageBubble);\n"],"mappings":";;;;;GAKG,MAAMA,UAAWC,EAAE,WAAAC,CAAYD,GAAG,GAAGE,MAAMF,GAAGG,KAAKC,GAAGC,EAAEL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U","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../cjs/loader.cjs.js');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../cjs/loader.cjs.js');
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from '../types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
15
|
+
export declare function applyPolyfills(): Promise<void>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
19
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
20
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
21
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
22
|
+
* will result in the same behavior.
|
|
23
|
+
*/
|
|
24
|
+
export declare function setNonce(nonce: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../esm/loader.js';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
2
|
+
export * from '../esm/loader.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "isometrik-webchat-loader",
|
|
3
|
+
"private": true,
|
|
4
|
+
"typings": "./index.d.ts",
|
|
5
|
+
"module": "./index.js",
|
|
6
|
+
"main": "./index.cjs.js",
|
|
7
|
+
"jsnext:main": "./index.es2017.js",
|
|
8
|
+
"es2015": "./index.es2017.js",
|
|
9
|
+
"es2017": "./index.es2017.js",
|
|
10
|
+
"unpkg": "./cdn.js"
|
|
11
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '../../stories/Components/MembersList/MembersList.js';
|
|
2
|
+
export declare class MemberAdd {
|
|
3
|
+
dialogData: any;
|
|
4
|
+
eligibleMembers: any;
|
|
5
|
+
membersListSkip: any;
|
|
6
|
+
hasMore: any;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
paginationLoading: boolean;
|
|
9
|
+
componentDidLoad(): Promise<void>;
|
|
10
|
+
handleGetEligibleMembers(searchTag?: string, skip?: number): Promise<void>;
|
|
11
|
+
handleAddMember(selectedUserIds: any): Promise<void>;
|
|
12
|
+
render(): any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import '../../stories/Components/MessageBubble/AudioMessageBubble/AudioMesaageBubble.js';
|
|
2
|
+
export declare class AudioBubble {
|
|
3
|
+
audioUrl: string;
|
|
4
|
+
audioWaveColor: string;
|
|
5
|
+
audioProgressColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
isSelf: boolean;
|
|
8
|
+
borderRadius: string;
|
|
9
|
+
bgColor: string;
|
|
10
|
+
time: string;
|
|
11
|
+
isRead: Boolean;
|
|
12
|
+
isDelivered: Boolean;
|
|
13
|
+
showFooter: Boolean;
|
|
14
|
+
messageId: String;
|
|
15
|
+
timeColor: String;
|
|
16
|
+
reactions: any;
|
|
17
|
+
messageType: number;
|
|
18
|
+
isPlaying: boolean;
|
|
19
|
+
audioDuration: string;
|
|
20
|
+
currentAudioId: string;
|
|
21
|
+
waveformContainerReady: boolean;
|
|
22
|
+
el: HTMLElement;
|
|
23
|
+
private wavesurfer;
|
|
24
|
+
private waveformContainer;
|
|
25
|
+
private loadAbortController;
|
|
26
|
+
private currentLoadingUrl;
|
|
27
|
+
initializationAttempts: number;
|
|
28
|
+
private initializationInterval;
|
|
29
|
+
componentWillLoad(): void;
|
|
30
|
+
componentDidLoad(): void;
|
|
31
|
+
handleWaveformReady(event: CustomEvent): void;
|
|
32
|
+
initWaveSurfer(): boolean;
|
|
33
|
+
abortCurrentLoad(): void;
|
|
34
|
+
disconnectedCallback(): void;
|
|
35
|
+
pauseAudioHandler: () => void;
|
|
36
|
+
playAudioHandler: () => void;
|
|
37
|
+
chatChanged(newAudioUrl: string, oldAudioUrl: string): void;
|
|
38
|
+
render(): any;
|
|
39
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '../../stories/Components/BlockUsers/BlockUsers';
|
|
2
|
+
export declare class BlockChatList {
|
|
3
|
+
goBack: () => void;
|
|
4
|
+
blockUsers: any;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
skip: number;
|
|
7
|
+
hasMore: boolean;
|
|
8
|
+
paginationLoading: boolean;
|
|
9
|
+
componentWillLoad(): Promise<void>;
|
|
10
|
+
findBlokedUser: (searchTag?: string, skip?: number) => Promise<void>;
|
|
11
|
+
handleUnblockUser: (conversationId: string) => Promise<void>;
|
|
12
|
+
render(): any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import '../../../stories/Components/Loader/Spinner/Spinner';
|
|
3
|
+
import '../../../stories/Components/ProfileTab/ProfileTab';
|
|
4
|
+
export declare class ProfilePage {
|
|
5
|
+
el: HTMLElement;
|
|
6
|
+
name: string;
|
|
7
|
+
profilePhotoUrl: string;
|
|
8
|
+
isEditingName: boolean;
|
|
9
|
+
newName: string;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
selectedFile: File | null;
|
|
12
|
+
tempProfilePhotoUrl: string;
|
|
13
|
+
socialAccounts: any[];
|
|
14
|
+
isSocialLoading: boolean;
|
|
15
|
+
conversationId: string;
|
|
16
|
+
getUserDetails: () => void;
|
|
17
|
+
closeDrawer: () => void;
|
|
18
|
+
toggleTheme: () => void;
|
|
19
|
+
defaultTheme: string;
|
|
20
|
+
agentUserId: string;
|
|
21
|
+
InstagramAccountsChanged: EventEmitter<any[]>;
|
|
22
|
+
private get connectedAccounts();
|
|
23
|
+
componentWillLoad(): void;
|
|
24
|
+
private loadSocialAccounts;
|
|
25
|
+
private completeSocialCallback;
|
|
26
|
+
private handleConnectInstagram;
|
|
27
|
+
private handleDisconnectInstagram;
|
|
28
|
+
getPresignedUrl(file: File): Promise<string>;
|
|
29
|
+
updateUserProfile(payload: {
|
|
30
|
+
name?: string;
|
|
31
|
+
profilePhotoUrl?: string;
|
|
32
|
+
}): Promise<void>;
|
|
33
|
+
private validateNameInput;
|
|
34
|
+
private handleNameEdit;
|
|
35
|
+
private handleNameChange;
|
|
36
|
+
private handleNameSave;
|
|
37
|
+
private handleNameKeyDown;
|
|
38
|
+
private handleFileChange;
|
|
39
|
+
private handleManualUpdate;
|
|
40
|
+
private cancelChanges;
|
|
41
|
+
render(): any;
|
|
42
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import '../../../stories/Components/ChatSidebar/ChatSidebar';
|
|
3
|
+
import '../../../stories/Components/Toaster/Toaster';
|
|
4
|
+
import '../../../stories/Components/Loader/Spinner/Spinner';
|
|
5
|
+
declare class ChatSidebar {
|
|
6
|
+
el: HTMLElement;
|
|
7
|
+
isMqttConnected: boolean;
|
|
8
|
+
conversationList: any;
|
|
9
|
+
isChatFilter: boolean;
|
|
10
|
+
isAllChatButton: boolean;
|
|
11
|
+
customTypes: any;
|
|
12
|
+
filterTabsContainer: any;
|
|
13
|
+
filterTab: any;
|
|
14
|
+
filterTabHover: any;
|
|
15
|
+
isSidebarHeaderLabel: boolean;
|
|
16
|
+
isSidebarHeaderSearch: boolean;
|
|
17
|
+
sidebarHeaderLabel: string;
|
|
18
|
+
sidebarColor: string;
|
|
19
|
+
sidebarSelectedColor: string;
|
|
20
|
+
onDeleteConversation: (conversationId: string) => void;
|
|
21
|
+
handleSearchData: (searchTag: string) => void;
|
|
22
|
+
userMetaData: any;
|
|
23
|
+
isTyping: boolean;
|
|
24
|
+
typingUserName: String;
|
|
25
|
+
typingConversationId: string;
|
|
26
|
+
allMessages: any;
|
|
27
|
+
isConversationLoading: Boolean;
|
|
28
|
+
hasMoreConversations: boolean;
|
|
29
|
+
unreadConversationsCount: number;
|
|
30
|
+
conversationDetails: any;
|
|
31
|
+
sortedConversationList: any;
|
|
32
|
+
numberOfConversations: number;
|
|
33
|
+
unreadCounts: {
|
|
34
|
+
[key: string]: number;
|
|
35
|
+
};
|
|
36
|
+
searchQuery: string;
|
|
37
|
+
selectedConversationID: string | null;
|
|
38
|
+
isLoading: boolean;
|
|
39
|
+
nonBlockedContacts: any[];
|
|
40
|
+
skip: number;
|
|
41
|
+
isNoContactsFound: boolean;
|
|
42
|
+
isGroupChat: boolean;
|
|
43
|
+
selectedGroupUserIds: string[];
|
|
44
|
+
groupInfo: {
|
|
45
|
+
title: string;
|
|
46
|
+
imageUrl: string;
|
|
47
|
+
};
|
|
48
|
+
isGroupCreationLoading: boolean;
|
|
49
|
+
displayTitle: string;
|
|
50
|
+
searchTagName: string;
|
|
51
|
+
hasMoreMembers: boolean;
|
|
52
|
+
isLoadingMember: boolean;
|
|
53
|
+
isPaginationMember: boolean;
|
|
54
|
+
chatTileSelected: EventEmitter;
|
|
55
|
+
groupExited: EventEmitter;
|
|
56
|
+
componentWillLoad(): void;
|
|
57
|
+
handleConversationListChange(): void;
|
|
58
|
+
handleConversationDetailsChange(newValue: any): void;
|
|
59
|
+
sortConversations(): void;
|
|
60
|
+
handleGroupContactsInputChange(event: CustomEvent): void;
|
|
61
|
+
handleNewChatInputChange(event: CustomEvent): void;
|
|
62
|
+
handleCloseGroupMemberList(): void;
|
|
63
|
+
handleUnreadMessageCountUpdate(event: CustomEvent): void;
|
|
64
|
+
handleChatTileSelected(event: CustomEvent): void;
|
|
65
|
+
handleSearch(e: Event): void;
|
|
66
|
+
handleDeleteConversation(event: CustomEvent): void;
|
|
67
|
+
handleNewChatContactSelected(event: CustomEvent): void;
|
|
68
|
+
handleNewChatClick(): void;
|
|
69
|
+
getAllMemeber: (searchTag?: string, skip?: number) => Promise<void>;
|
|
70
|
+
getAllGroupMemeber: (searchTag?: string, skip?: number, selectedUserIds?: any[]) => Promise<void>;
|
|
71
|
+
createConversation(selectedContactId: string, selectedContactName: string): Promise<void>;
|
|
72
|
+
handleNewChatTileListScrolledToBottom(): void;
|
|
73
|
+
handleCreateGroupClick(event: CustomEvent): void;
|
|
74
|
+
handleGroupContactsSelected(event: CustomEvent): void;
|
|
75
|
+
handleGroupInfoSubmitted(event: CustomEvent): void;
|
|
76
|
+
createGroupConversation(): Promise<void>;
|
|
77
|
+
getPresignedUrl: (file: File) => Promise<string>;
|
|
78
|
+
handleGroupSubmitted(event: CustomEvent): Promise<void>;
|
|
79
|
+
handleExitGroup(event: CustomEvent): Promise<void>;
|
|
80
|
+
handleContactAction(event: CustomEvent): Promise<void>;
|
|
81
|
+
private exitGroup;
|
|
82
|
+
handleMessageReadStatusUpdate(event: CustomEvent): void;
|
|
83
|
+
render(): any;
|
|
84
|
+
}
|
|
85
|
+
export { ChatSidebar };
|