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,939 @@
|
|
|
1
|
+
import { LitElement, html, css } from 'lit-element';
|
|
2
|
+
import { clearAll, generateProfileImageByInitials } from '../../../lib/helpers';
|
|
3
|
+
import { Image } from '../Image/Image';
|
|
4
|
+
import'../../../components/ChatUIComponent/BlockChatList'
|
|
5
|
+
import { drawerDialogService } from '../Dialog-Drawer/dialog-drawer';
|
|
6
|
+
export class ProfileTab extends LitElement {
|
|
7
|
+
static get properties() {
|
|
8
|
+
return {
|
|
9
|
+
name: { type: String },
|
|
10
|
+
isLoading: { type: Boolean },
|
|
11
|
+
tempProfilePhotoUrl: { type: String },
|
|
12
|
+
isEditingName: { type: Boolean },
|
|
13
|
+
newName: { type: String },
|
|
14
|
+
hasChanges: { type: Boolean },
|
|
15
|
+
// Event handlers are now defined as methods in the class
|
|
16
|
+
handleNameEdit: { type: Function },
|
|
17
|
+
handleNameChange: { type: Function },
|
|
18
|
+
handleNameKeyDown: { type: Function },
|
|
19
|
+
handleNameSave: { type: Function },
|
|
20
|
+
handleFileChange: { type: Function },
|
|
21
|
+
handleManualUpdate: { type: Function },
|
|
22
|
+
cancelChanges: { type: Function },
|
|
23
|
+
closeDrawer: { type: Function },
|
|
24
|
+
showBlockedUsers: { type: Boolean },
|
|
25
|
+
defaultTheme: { type: String },
|
|
26
|
+
toggleTheme: { type: Function },
|
|
27
|
+
socialAccounts: { type: Array },
|
|
28
|
+
isSocialLoading: { type: Boolean },
|
|
29
|
+
handleConnectInstagram: { type: Function },
|
|
30
|
+
handleDisconnectInstagram: { type: Function },
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor() {
|
|
35
|
+
super();
|
|
36
|
+
this.name = '';
|
|
37
|
+
this.isLoading = false;
|
|
38
|
+
this.tempProfilePhotoUrl = null;
|
|
39
|
+
this.isEditingName = false;
|
|
40
|
+
this.newName = '';
|
|
41
|
+
this.hasChanges = false;
|
|
42
|
+
this.showBlockedUsers = false;
|
|
43
|
+
this.socialAccounts = [];
|
|
44
|
+
this.isSocialLoading = false;
|
|
45
|
+
// Initialize event handlers as empty functions
|
|
46
|
+
this.handleNameEdit = () => {};
|
|
47
|
+
this.handleNameChange = () => {};
|
|
48
|
+
this.handleNameKeyDown = () => {};
|
|
49
|
+
this.handleNameSave = () => {};
|
|
50
|
+
this.handleFileChange = () => {};
|
|
51
|
+
this.handleManualUpdate = () => {};
|
|
52
|
+
this.cancelChanges = () => {};
|
|
53
|
+
this.closeDrawer = () => {};
|
|
54
|
+
this.handleConnectInstagram = () => {};
|
|
55
|
+
this.handleDisconnectInstagram = () => {};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
firstUpdated() {
|
|
59
|
+
this.newName = this.name;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
updated(changedProperties) {
|
|
63
|
+
if (changedProperties.has('name') && this.name !== this.newName) {
|
|
64
|
+
this.newName = this.name;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Custom method to trigger file input click
|
|
69
|
+
triggerFileInput() {
|
|
70
|
+
const fileInput = this.shadowRoot.querySelector('.file-input');
|
|
71
|
+
if (fileInput) {
|
|
72
|
+
fileInput.click();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
handleopenBlockList(){
|
|
76
|
+
this.showBlockedUsers = true;
|
|
77
|
+
}
|
|
78
|
+
hideBlockedUsersView(){
|
|
79
|
+
this.showBlockedUsers = false;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
formatSocialDate(ts) {
|
|
83
|
+
if (!ts) return '-';
|
|
84
|
+
try {
|
|
85
|
+
return new Date(ts).toLocaleDateString(undefined, {
|
|
86
|
+
day: 'numeric',
|
|
87
|
+
month: 'short',
|
|
88
|
+
year: 'numeric',
|
|
89
|
+
});
|
|
90
|
+
} catch {
|
|
91
|
+
return String(ts);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
renderSocialAccount(account) {
|
|
96
|
+
const name = account.displayName || account.username || 'Instagram';
|
|
97
|
+
const handle = account.username ? `@${account.username}` : '';
|
|
98
|
+
const isConnected = account.status === 'connected';
|
|
99
|
+
const gradId = `igGrad-${account.zernioAccountId || account.username || 'acc'}`;
|
|
100
|
+
|
|
101
|
+
return html`
|
|
102
|
+
<article class="ig-card">
|
|
103
|
+
<div class="ig-card-top">
|
|
104
|
+
<div class="ig-mark" aria-hidden="true">
|
|
105
|
+
<svg viewBox="0 0 24 24" width="22" height="22" fill="none">
|
|
106
|
+
<defs>
|
|
107
|
+
<linearGradient id=${gradId} x1="0%" y1="100%" x2="100%" y2="0%">
|
|
108
|
+
<stop offset="0%" stop-color="#f58529" />
|
|
109
|
+
<stop offset="50%" stop-color="#dd2a7b" />
|
|
110
|
+
<stop offset="100%" stop-color="#8134af" />
|
|
111
|
+
</linearGradient>
|
|
112
|
+
</defs>
|
|
113
|
+
<rect x="2" y="2" width="20" height="20" rx="5.5" stroke="url(#${gradId})" stroke-width="1.75" />
|
|
114
|
+
<circle cx="12" cy="12" r="4.25" stroke="url(#${gradId})" stroke-width="1.75" />
|
|
115
|
+
<circle cx="17.35" cy="6.65" r="1.15" fill="url(#${gradId})" />
|
|
116
|
+
</svg>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<div class="ig-identity">
|
|
120
|
+
<div class="ig-name-row">
|
|
121
|
+
<h3 class="ig-name">${name}</h3>
|
|
122
|
+
${isConnected
|
|
123
|
+
? html`<span class="ig-badge">Connected</span>`
|
|
124
|
+
: html`<span class="ig-badge is-muted">${account.status || 'Unknown'}</span>`}
|
|
125
|
+
</div>
|
|
126
|
+
${handle ? html`<p class="ig-handle">${handle}</p>` : null}
|
|
127
|
+
<p class="ig-connected-on">Connected ${this.formatSocialDate(account.connectedAt)}</p>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
<div class="ig-actions">
|
|
132
|
+
${account.profileUrl
|
|
133
|
+
? html`<a class="ig-link" href=${account.profileUrl} target="_blank" rel="noopener noreferrer">View profile</a>`
|
|
134
|
+
: null}
|
|
135
|
+
<button
|
|
136
|
+
type="button"
|
|
137
|
+
class="ig-disconnect"
|
|
138
|
+
@click=${() => this.handleDisconnectInstagram(account.zernioAccountId, account.username)}
|
|
139
|
+
>
|
|
140
|
+
Disconnect
|
|
141
|
+
</button>
|
|
142
|
+
</div>
|
|
143
|
+
</article>
|
|
144
|
+
`;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
renderConnectInstagram() {
|
|
148
|
+
return html`
|
|
149
|
+
<button type="button" class="ig-connect" @click=${this.handleConnectInstagram} ?disabled=${this.isSocialLoading}>
|
|
150
|
+
<span class="ig-mark" aria-hidden="true">
|
|
151
|
+
<svg viewBox="0 0 24 24" width="22" height="22" fill="none">
|
|
152
|
+
<defs>
|
|
153
|
+
<linearGradient id="igGradEmpty" x1="0%" y1="100%" x2="100%" y2="0%">
|
|
154
|
+
<stop offset="0%" stop-color="#f58529" />
|
|
155
|
+
<stop offset="50%" stop-color="#dd2a7b" />
|
|
156
|
+
<stop offset="100%" stop-color="#8134af" />
|
|
157
|
+
</linearGradient>
|
|
158
|
+
</defs>
|
|
159
|
+
<rect x="2" y="2" width="20" height="20" rx="5.5" stroke="url(#igGradEmpty)" stroke-width="1.75" />
|
|
160
|
+
<circle cx="12" cy="12" r="4.25" stroke="url(#igGradEmpty)" stroke-width="1.75" />
|
|
161
|
+
<circle cx="17.35" cy="6.65" r="1.15" fill="url(#igGradEmpty)" />
|
|
162
|
+
</svg>
|
|
163
|
+
</span>
|
|
164
|
+
<span class="ig-connect-copy">
|
|
165
|
+
<span class="ig-connect-title">Connect Instagram</span>
|
|
166
|
+
<span class="ig-connect-sub">Link your business account to manage DMs here</span>
|
|
167
|
+
</span>
|
|
168
|
+
</button>
|
|
169
|
+
`;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
handleLogout(e) {
|
|
173
|
+
e.stopPropagation();
|
|
174
|
+
this.showLogoutPopup = !this.showLogoutPopup;
|
|
175
|
+
drawerDialogService.openDialog('confirm-dialog', {
|
|
176
|
+
title: 'Logout',
|
|
177
|
+
description: `Are you sure you want to Logout ?`,
|
|
178
|
+
handleConfirm:clearAll
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
render() {
|
|
182
|
+
if (this.showBlockedUsers) {
|
|
183
|
+
return html`
|
|
184
|
+
<block-chat-list
|
|
185
|
+
.blockedUsers=${this.blockedUsers}
|
|
186
|
+
.isLoading=${this.isLoadingBlockedUsers}
|
|
187
|
+
.handleUnblock=${this.handleUnblockUser}
|
|
188
|
+
.goBack=${() => this.hideBlockedUsersView()}
|
|
189
|
+
.height="96%"
|
|
190
|
+
>
|
|
191
|
+
</block-chat-list>
|
|
192
|
+
`;
|
|
193
|
+
}
|
|
194
|
+
return html`
|
|
195
|
+
${this.isLoading
|
|
196
|
+
? html`<div class="spinner-overlay">
|
|
197
|
+
<spinner-loader
|
|
198
|
+
height="30px"
|
|
199
|
+
width="30px"
|
|
200
|
+
spinTime="1s"
|
|
201
|
+
spinnerPrimaryColor="var(--bg-primary-color)"
|
|
202
|
+
spinnerSecondaryColor="var(--text-primary-color)"
|
|
203
|
+
spinnerBorderWidth="2px"
|
|
204
|
+
>
|
|
205
|
+
</spinner-loader>
|
|
206
|
+
</div>`
|
|
207
|
+
: html`<div class="profile-container">
|
|
208
|
+
<div class="header-profile">
|
|
209
|
+
<div @click=${this.closeDrawer}>
|
|
210
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="30px" viewBox="0 -960 960 960" width="30px" fill="var(--text-primary-color)">
|
|
211
|
+
<path d="m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z" />
|
|
212
|
+
</svg>
|
|
213
|
+
</div>
|
|
214
|
+
<h1 class="profile-header">Profile</h1>
|
|
215
|
+
</div>
|
|
216
|
+
|
|
217
|
+
<div class="photo-container">
|
|
218
|
+
<div class="profile-photo" @click=${this.triggerFileInput}>
|
|
219
|
+
${this.tempProfilePhotoUrl
|
|
220
|
+
? html`<div class="photo-wrapper">
|
|
221
|
+
${Image({
|
|
222
|
+
src: this.tempProfilePhotoUrl,
|
|
223
|
+
alt: 'profile image',
|
|
224
|
+
width: '100%',
|
|
225
|
+
height: '100%',
|
|
226
|
+
objectFit: 'cover',
|
|
227
|
+
borderRadius: '50%',
|
|
228
|
+
placeholderImage: generateProfileImageByInitials(this.name, 90, 90),
|
|
229
|
+
})}
|
|
230
|
+
<div class="hover-overlay">
|
|
231
|
+
<div class="d-flex flex-direction-column align-center">
|
|
232
|
+
<div class="camera-icon">
|
|
233
|
+
<svg
|
|
234
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
235
|
+
width="24"
|
|
236
|
+
height="24"
|
|
237
|
+
viewBox="0 0 24 24"
|
|
238
|
+
fill="none"
|
|
239
|
+
stroke="currentColor"
|
|
240
|
+
stroke-width="2"
|
|
241
|
+
stroke-linecap="round"
|
|
242
|
+
stroke-linejoin="round"
|
|
243
|
+
>
|
|
244
|
+
<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path>
|
|
245
|
+
<circle cx="12" cy="13" r="4"></circle>
|
|
246
|
+
</svg>
|
|
247
|
+
</div>
|
|
248
|
+
<span class="change-text">CHANGE PHOTO</span>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
</div>`
|
|
252
|
+
: html`<div class="photo-placeholder">
|
|
253
|
+
<div class="camera-icon">
|
|
254
|
+
<svg
|
|
255
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
256
|
+
width="24"
|
|
257
|
+
height="24"
|
|
258
|
+
viewBox="0 0 24 24"
|
|
259
|
+
fill="none"
|
|
260
|
+
stroke="currentColor"
|
|
261
|
+
stroke-width="2"
|
|
262
|
+
stroke-linecap="round"
|
|
263
|
+
stroke-linejoin="round"
|
|
264
|
+
>
|
|
265
|
+
<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path>
|
|
266
|
+
<circle cx="12" cy="13" r="4"></circle>
|
|
267
|
+
</svg>
|
|
268
|
+
</div>
|
|
269
|
+
<span class="add-text">ADD PROFILE PHOTO</span>
|
|
270
|
+
</div>`}
|
|
271
|
+
</div>
|
|
272
|
+
<input type="file" accept="image/*" class="file-input" @change=${e => this.handleFileChange(e)} />
|
|
273
|
+
</div>
|
|
274
|
+
|
|
275
|
+
<div class="form-group">
|
|
276
|
+
<label class="label">Your name</label>
|
|
277
|
+
<div class="input-container">
|
|
278
|
+
${this.isEditingName
|
|
279
|
+
? html`<input
|
|
280
|
+
type="text"
|
|
281
|
+
.value=${this.newName}
|
|
282
|
+
class="name-input"
|
|
283
|
+
@input=${this.handleNameChange}
|
|
284
|
+
@keydown=${this.handleNameKeyDown}
|
|
285
|
+
maxlength="20"
|
|
286
|
+
placeholder="Enter your Name"
|
|
287
|
+
/>`
|
|
288
|
+
: html`<span class="input-text">${this.name}</span>`}
|
|
289
|
+
<button class="edit-button" @click=${this.handleNameEdit} aria-label="Edit name">
|
|
290
|
+
<svg
|
|
291
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
292
|
+
width="16"
|
|
293
|
+
height="16"
|
|
294
|
+
viewBox="0 0 24 24"
|
|
295
|
+
fill="none"
|
|
296
|
+
stroke="currentColor"
|
|
297
|
+
stroke-width="2"
|
|
298
|
+
stroke-linecap="round"
|
|
299
|
+
stroke-linejoin="round"
|
|
300
|
+
>
|
|
301
|
+
<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path>
|
|
302
|
+
</svg>
|
|
303
|
+
</button>
|
|
304
|
+
</div>
|
|
305
|
+
<p class="helper-text">This name will be visible to your contacts. Only lowercase letters, numbers and underscore allowed (max 20 chars).</p>
|
|
306
|
+
</div>
|
|
307
|
+
|
|
308
|
+
${this.hasChanges
|
|
309
|
+
? html`<div class="update-actions">
|
|
310
|
+
<button class="update-button" @click=${this.handleManualUpdate}>Update Profile</button>
|
|
311
|
+
<button class="cancel-button" @click=${this.cancelChanges}>Cancel</button>
|
|
312
|
+
</div>`
|
|
313
|
+
: null}
|
|
314
|
+
|
|
315
|
+
<div class="bottom-actions">
|
|
316
|
+
<button type="button" class="action-button" @click=${this.toggleTheme}>
|
|
317
|
+
${this.defaultTheme === 'dark'
|
|
318
|
+
? html`<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
319
|
+
<circle cx="12" cy="12" r="4"></circle>
|
|
320
|
+
<path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"></path>
|
|
321
|
+
</svg>`
|
|
322
|
+
: html`<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
323
|
+
<path d="M21 14.5A8.5 8.5 0 0 1 9.5 3 7 7 0 1 0 21 14.5z"></path>
|
|
324
|
+
</svg>`}
|
|
325
|
+
<span>${this.defaultTheme === 'dark' ? 'Light Theme' : 'Dark Theme'}</span>
|
|
326
|
+
</button>
|
|
327
|
+
<button type="button" class="action-button" @click=${this.handleopenBlockList}>
|
|
328
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
329
|
+
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
330
|
+
<circle cx="8.5" cy="7" r="4"></circle>
|
|
331
|
+
<line x1="18" y1="8" x2="23" y2="13"></line>
|
|
332
|
+
<line x1="23" y1="8" x2="18" y2="13"></line>
|
|
333
|
+
</svg>
|
|
334
|
+
<span>Block Users</span>
|
|
335
|
+
</button>
|
|
336
|
+
</div>
|
|
337
|
+
</div>`}
|
|
338
|
+
`;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
static get styles() {
|
|
342
|
+
return css`
|
|
343
|
+
:host {
|
|
344
|
+
display: flex;
|
|
345
|
+
flex-direction: column;
|
|
346
|
+
height: 100%;
|
|
347
|
+
font-size: 16px;
|
|
348
|
+
box-sizing: border-box;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.profile-container {
|
|
352
|
+
padding: 16px 20px 24px;
|
|
353
|
+
display: flex;
|
|
354
|
+
flex-direction: column;
|
|
355
|
+
height: 100%;
|
|
356
|
+
box-sizing: border-box;
|
|
357
|
+
overflow-y: auto;
|
|
358
|
+
position: relative;
|
|
359
|
+
background-color: var(--bg-primary-color);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.profile-header {
|
|
363
|
+
font-size: 1.25rem;
|
|
364
|
+
font-weight: 600;
|
|
365
|
+
margin: 0 0 0 8px;
|
|
366
|
+
color: var(--text-primary-color);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.photo-container {
|
|
370
|
+
display: flex;
|
|
371
|
+
justify-content: center;
|
|
372
|
+
margin-bottom: 28px;
|
|
373
|
+
position: relative;
|
|
374
|
+
flex-shrink: 0;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.profile-photo {
|
|
378
|
+
width: 120px;
|
|
379
|
+
height: 120px;
|
|
380
|
+
max-width: 120px;
|
|
381
|
+
max-height: 120px;
|
|
382
|
+
border-radius: 50%;
|
|
383
|
+
background-color: var(--bg-incoming-message, #f5f5f5);
|
|
384
|
+
display: flex;
|
|
385
|
+
flex-direction: column;
|
|
386
|
+
justify-content: center;
|
|
387
|
+
align-items: center;
|
|
388
|
+
overflow: hidden;
|
|
389
|
+
position: relative;
|
|
390
|
+
cursor: pointer;
|
|
391
|
+
flex-shrink: 0;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.photo-wrapper {
|
|
395
|
+
position: relative;
|
|
396
|
+
width: 100%;
|
|
397
|
+
height: 100%;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.hover-overlay {
|
|
401
|
+
position: absolute;
|
|
402
|
+
top: 0;
|
|
403
|
+
left: 0;
|
|
404
|
+
width: 100%;
|
|
405
|
+
height: 100%;
|
|
406
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
407
|
+
display: flex;
|
|
408
|
+
flex-direction: column;
|
|
409
|
+
align-items: center;
|
|
410
|
+
justify-content: center;
|
|
411
|
+
opacity: 0;
|
|
412
|
+
transition: opacity 0.3s ease;
|
|
413
|
+
border-radius: 50%;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.photo-wrapper:hover .hover-overlay {
|
|
417
|
+
opacity: 1;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.photo-placeholder {
|
|
421
|
+
display: flex;
|
|
422
|
+
flex-direction: column;
|
|
423
|
+
align-items: center;
|
|
424
|
+
justify-content: center;
|
|
425
|
+
width: 100%;
|
|
426
|
+
height: 100%;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.camera-icon {
|
|
430
|
+
background-color: var(--bg-incoming-message);
|
|
431
|
+
width: 44px;
|
|
432
|
+
height: 44px;
|
|
433
|
+
border-radius: 50%;
|
|
434
|
+
display: flex;
|
|
435
|
+
justify-content: center;
|
|
436
|
+
align-items: center;
|
|
437
|
+
margin-bottom: 5px;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.camera-icon svg {
|
|
441
|
+
color: var(--text-incoming-message);
|
|
442
|
+
width: 22px;
|
|
443
|
+
height: 22px;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.add-text,
|
|
447
|
+
.change-text {
|
|
448
|
+
font-size: 0.75rem;
|
|
449
|
+
text-align: center;
|
|
450
|
+
padding: 0 15px;
|
|
451
|
+
color: var(--text-incoming-message);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.form-group {
|
|
455
|
+
margin-bottom: 24px;
|
|
456
|
+
flex-shrink: 0;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.label {
|
|
460
|
+
font-size: 0.8125rem;
|
|
461
|
+
color: var(--text-secondary-color);
|
|
462
|
+
margin-bottom: 8px;
|
|
463
|
+
display: block;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.input-container {
|
|
467
|
+
display: flex;
|
|
468
|
+
justify-content: space-between;
|
|
469
|
+
align-items: center;
|
|
470
|
+
border-bottom: 1px solid var(--bg-secondary-color);
|
|
471
|
+
padding-bottom: 10px;
|
|
472
|
+
gap: 8px;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.input-text {
|
|
476
|
+
font-size: 1rem;
|
|
477
|
+
color: var(--text-primary-color);
|
|
478
|
+
font-weight: 500;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.edit-button {
|
|
482
|
+
background: none;
|
|
483
|
+
border: none;
|
|
484
|
+
cursor: pointer;
|
|
485
|
+
color: var(--text-secondary-color);
|
|
486
|
+
padding: 5px;
|
|
487
|
+
display: flex;
|
|
488
|
+
align-items: center;
|
|
489
|
+
justify-content: center;
|
|
490
|
+
flex-shrink: 0;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.helper-text {
|
|
494
|
+
font-size: 0.75rem;
|
|
495
|
+
color: var(--text-secondary-color);
|
|
496
|
+
margin-top: 8px;
|
|
497
|
+
line-height: 1.4;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.file-input {
|
|
501
|
+
display: none;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.name-input {
|
|
505
|
+
background: var(--bg-secondary-color);
|
|
506
|
+
border: none;
|
|
507
|
+
color: var(--text-primary-color);
|
|
508
|
+
font-size: 1rem;
|
|
509
|
+
width: 100%;
|
|
510
|
+
padding: 4px 8px;
|
|
511
|
+
outline: none;
|
|
512
|
+
border-radius: 4px;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.upload-progress {
|
|
516
|
+
width: 80%;
|
|
517
|
+
display: flex;
|
|
518
|
+
flex-direction: column;
|
|
519
|
+
align-items: center;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.d-flex {
|
|
523
|
+
display: flex;
|
|
524
|
+
}
|
|
525
|
+
.flex-direction-column {
|
|
526
|
+
flex-direction: column;
|
|
527
|
+
}
|
|
528
|
+
.align-center {
|
|
529
|
+
align-items: center;
|
|
530
|
+
}
|
|
531
|
+
.spinner-overlay {
|
|
532
|
+
height: 100%;
|
|
533
|
+
width: 100%;
|
|
534
|
+
display: flex;
|
|
535
|
+
align-items: center;
|
|
536
|
+
justify-content: center;
|
|
537
|
+
background-color: var(--bg-primary-color);
|
|
538
|
+
}
|
|
539
|
+
.update-actions {
|
|
540
|
+
display: flex;
|
|
541
|
+
gap: 10px;
|
|
542
|
+
margin-bottom: 16px;
|
|
543
|
+
flex-shrink: 0;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.update-button,
|
|
547
|
+
.cancel-button {
|
|
548
|
+
padding: 8px 16px;
|
|
549
|
+
border-radius: 4px;
|
|
550
|
+
font-weight: 500;
|
|
551
|
+
cursor: pointer;
|
|
552
|
+
border: none;
|
|
553
|
+
transition: background-color 0.2s, transform 0.1s;
|
|
554
|
+
font-size: 0.875rem;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.update-button {
|
|
558
|
+
background-color: var(--base-color);
|
|
559
|
+
color: var(--text-incoming-message);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.update-button:hover {
|
|
563
|
+
transform: translateY(-1px);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.update-button:active {
|
|
567
|
+
transform: translateY(0);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.cancel-button {
|
|
571
|
+
background-color: var(--bg-grey-color);
|
|
572
|
+
color: var(--text-primary-color);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.cancel-button:hover {
|
|
576
|
+
filter: brightness(0.97);
|
|
577
|
+
transform: translateY(-1px);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.cancel-button:active {
|
|
581
|
+
transform: translateY(0);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.update-button:disabled,
|
|
585
|
+
.cancel-button:disabled {
|
|
586
|
+
opacity: 0.6;
|
|
587
|
+
cursor: not-allowed;
|
|
588
|
+
transform: none;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.header-profile {
|
|
592
|
+
display: flex;
|
|
593
|
+
align-items: center;
|
|
594
|
+
flex-direction: row;
|
|
595
|
+
margin-bottom: 24px;
|
|
596
|
+
cursor: pointer;
|
|
597
|
+
flex-shrink: 0;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.bottom-actions {
|
|
601
|
+
margin-top: auto;
|
|
602
|
+
display: flex;
|
|
603
|
+
flex-direction: column;
|
|
604
|
+
gap: 2px;
|
|
605
|
+
padding-top: 16px;
|
|
606
|
+
border-top: 1px solid var(--border-subtle, #eaeaea);
|
|
607
|
+
flex-shrink: 0;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.social-section {
|
|
611
|
+
margin-bottom: 20px;
|
|
612
|
+
flex-shrink: 0;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.ig-card {
|
|
616
|
+
display: flex;
|
|
617
|
+
flex-direction: column;
|
|
618
|
+
gap: 14px;
|
|
619
|
+
padding: 14px;
|
|
620
|
+
border-radius: 12px;
|
|
621
|
+
border: 1px solid var(--border-subtle, color-mix(in srgb, var(--text-primary-color) 10%, transparent));
|
|
622
|
+
background: color-mix(in srgb, var(--bg-secondary-color, #f5f5f5) 70%, transparent);
|
|
623
|
+
animation: ig-in 280ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
@keyframes ig-in {
|
|
627
|
+
from {
|
|
628
|
+
opacity: 0;
|
|
629
|
+
transform: translateY(6px);
|
|
630
|
+
}
|
|
631
|
+
to {
|
|
632
|
+
opacity: 1;
|
|
633
|
+
transform: translateY(0);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
@media (prefers-reduced-motion: reduce) {
|
|
638
|
+
.ig-card {
|
|
639
|
+
animation: none;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.ig-card-top {
|
|
644
|
+
display: flex;
|
|
645
|
+
align-items: flex-start;
|
|
646
|
+
gap: 12px;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.ig-mark {
|
|
650
|
+
width: 40px;
|
|
651
|
+
height: 40px;
|
|
652
|
+
border-radius: 12px;
|
|
653
|
+
display: grid;
|
|
654
|
+
place-items: center;
|
|
655
|
+
flex-shrink: 0;
|
|
656
|
+
background: color-mix(in srgb, #dd2a7b 8%, var(--bg-primary-color, #fff));
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.ig-identity {
|
|
660
|
+
min-width: 0;
|
|
661
|
+
flex: 1;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.ig-name-row {
|
|
665
|
+
display: flex;
|
|
666
|
+
align-items: center;
|
|
667
|
+
gap: 8px;
|
|
668
|
+
flex-wrap: wrap;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.ig-name {
|
|
672
|
+
margin: 0;
|
|
673
|
+
font-size: 0.9375rem;
|
|
674
|
+
font-weight: 600;
|
|
675
|
+
color: var(--text-primary-color);
|
|
676
|
+
line-height: 1.3;
|
|
677
|
+
overflow: hidden;
|
|
678
|
+
text-overflow: ellipsis;
|
|
679
|
+
white-space: nowrap;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.ig-badge {
|
|
683
|
+
font-size: 0.6875rem;
|
|
684
|
+
font-weight: 600;
|
|
685
|
+
letter-spacing: 0.01em;
|
|
686
|
+
padding: 3px 8px;
|
|
687
|
+
border-radius: 999px;
|
|
688
|
+
background: color-mix(in srgb, var(--success) 14%, transparent);
|
|
689
|
+
color: #15803d;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.ig-badge.is-muted {
|
|
693
|
+
background: color-mix(in srgb, var(--text-secondary-color) 14%, transparent);
|
|
694
|
+
color: var(--text-secondary-color);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.ig-handle {
|
|
698
|
+
margin: 2px 0 0;
|
|
699
|
+
font-size: 0.8125rem;
|
|
700
|
+
color: var(--text-secondary-color);
|
|
701
|
+
overflow: hidden;
|
|
702
|
+
text-overflow: ellipsis;
|
|
703
|
+
white-space: nowrap;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.ig-connected-on {
|
|
707
|
+
margin: 6px 0 0;
|
|
708
|
+
font-size: 0.75rem;
|
|
709
|
+
color: var(--text-secondary-color);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.ig-actions {
|
|
713
|
+
display: flex;
|
|
714
|
+
align-items: center;
|
|
715
|
+
justify-content: space-between;
|
|
716
|
+
gap: 12px;
|
|
717
|
+
padding-top: 2px;
|
|
718
|
+
border-top: 1px solid var(--border-subtle, color-mix(in srgb, var(--text-primary-color) 8%, transparent));
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.ig-link {
|
|
722
|
+
font-size: 0.8125rem;
|
|
723
|
+
font-weight: 500;
|
|
724
|
+
color: var(--base-color, var(--primary));
|
|
725
|
+
text-decoration: none;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.ig-link:hover {
|
|
729
|
+
text-decoration: underline;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.ig-disconnect {
|
|
733
|
+
background: none;
|
|
734
|
+
border: none;
|
|
735
|
+
cursor: pointer;
|
|
736
|
+
color: var(--text-danger-color, #e53935);
|
|
737
|
+
font-size: 0.8125rem;
|
|
738
|
+
font-weight: 500;
|
|
739
|
+
padding: 4px 0;
|
|
740
|
+
transition: opacity 160ms ease, transform 120ms ease;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.ig-disconnect:hover {
|
|
744
|
+
opacity: 0.85;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
.ig-disconnect:active {
|
|
748
|
+
transform: scale(0.98);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.ig-connect {
|
|
752
|
+
width: 100%;
|
|
753
|
+
display: flex;
|
|
754
|
+
align-items: center;
|
|
755
|
+
gap: 12px;
|
|
756
|
+
text-align: left;
|
|
757
|
+
padding: 12px 14px;
|
|
758
|
+
border-radius: 12px;
|
|
759
|
+
border: 1px dashed color-mix(in srgb, var(--text-primary-color) 18%, transparent);
|
|
760
|
+
background: transparent;
|
|
761
|
+
cursor: pointer;
|
|
762
|
+
transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.ig-connect:hover {
|
|
766
|
+
background: var(--bg-secondary-color, #f5f5f5);
|
|
767
|
+
border-style: solid;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.ig-connect:active {
|
|
771
|
+
transform: scale(0.99);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.ig-connect:disabled {
|
|
775
|
+
opacity: 0.6;
|
|
776
|
+
cursor: not-allowed;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.ig-connect-copy {
|
|
780
|
+
display: flex;
|
|
781
|
+
flex-direction: column;
|
|
782
|
+
gap: 2px;
|
|
783
|
+
min-width: 0;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.ig-connect-title {
|
|
787
|
+
font-size: 0.875rem;
|
|
788
|
+
font-weight: 600;
|
|
789
|
+
color: var(--text-primary-color);
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.ig-connect-sub {
|
|
793
|
+
font-size: 0.75rem;
|
|
794
|
+
color: var(--text-secondary-color);
|
|
795
|
+
line-height: 1.35;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.ig-skeleton {
|
|
799
|
+
display: flex;
|
|
800
|
+
align-items: center;
|
|
801
|
+
gap: 12px;
|
|
802
|
+
padding: 14px;
|
|
803
|
+
border-radius: 12px;
|
|
804
|
+
border: 1px solid var(--border-subtle, color-mix(in srgb, var(--text-primary-color) 10%, transparent));
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.ig-skeleton-mark {
|
|
808
|
+
width: 40px;
|
|
809
|
+
height: 40px;
|
|
810
|
+
border-radius: 12px;
|
|
811
|
+
background: color-mix(in srgb, var(--text-secondary-color) 12%, transparent);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.ig-skeleton-lines {
|
|
815
|
+
flex: 1;
|
|
816
|
+
display: flex;
|
|
817
|
+
flex-direction: column;
|
|
818
|
+
gap: 8px;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.ig-skeleton-line {
|
|
822
|
+
height: 10px;
|
|
823
|
+
width: 42%;
|
|
824
|
+
border-radius: 999px;
|
|
825
|
+
background: color-mix(in srgb, var(--text-secondary-color) 12%, transparent);
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.ig-skeleton-line.wide {
|
|
829
|
+
width: 68%;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
.action-button,
|
|
833
|
+
.action-button-logout {
|
|
834
|
+
display: flex;
|
|
835
|
+
align-items: center;
|
|
836
|
+
gap: 12px;
|
|
837
|
+
background: none;
|
|
838
|
+
border: none;
|
|
839
|
+
cursor: pointer;
|
|
840
|
+
color: #111111;
|
|
841
|
+
color: var(--text-primary-color, #111111);
|
|
842
|
+
font-size: 15px;
|
|
843
|
+
line-height: 1.3;
|
|
844
|
+
padding: 12px 8px;
|
|
845
|
+
text-align: left;
|
|
846
|
+
width: 100%;
|
|
847
|
+
box-sizing: border-box;
|
|
848
|
+
transition: background-color 0.15s ease, color 0.15s ease;
|
|
849
|
+
border-radius: 8px;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.action-button span,
|
|
853
|
+
.action-button-logout span {
|
|
854
|
+
color: inherit;
|
|
855
|
+
font-size: inherit;
|
|
856
|
+
line-height: inherit;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.action-button:hover {
|
|
860
|
+
background-color: var(--bg-secondary-color, #f5f5f5);
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.action-button-logout {
|
|
864
|
+
color: #e53935;
|
|
865
|
+
color: var(--text-danger-color, #e53935);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
.action-button-logout:hover {
|
|
869
|
+
background-color: rgba(229, 57, 53, 0.08);
|
|
870
|
+
color: var(--text-danger-color, #e53935);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.action-button svg,
|
|
874
|
+
.action-button-logout svg {
|
|
875
|
+
width: 18px;
|
|
876
|
+
height: 18px;
|
|
877
|
+
min-width: 18px;
|
|
878
|
+
flex-shrink: 0;
|
|
879
|
+
stroke: currentColor;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
@media (max-width: 768px) {
|
|
883
|
+
:host {
|
|
884
|
+
font-size: 14px;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.camera-icon {
|
|
888
|
+
width: 40px;
|
|
889
|
+
height: 40px;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.camera-icon svg {
|
|
893
|
+
width: 18px;
|
|
894
|
+
height: 18px;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
@media (max-width: 480px) {
|
|
899
|
+
:host {
|
|
900
|
+
font-size: 12px;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.profile-header {
|
|
904
|
+
font-size: 1.25rem;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.profile-photo {
|
|
908
|
+
width: 112px;
|
|
909
|
+
height: 112px;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.update-actions {
|
|
913
|
+
flex-direction: column;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
.update-button,
|
|
917
|
+
.cancel-button {
|
|
918
|
+
width: 100%;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
.camera-icon {
|
|
922
|
+
width: 36px;
|
|
923
|
+
height: 36px;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
.camera-icon svg {
|
|
927
|
+
width: 16px;
|
|
928
|
+
height: 16px;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.form-group {
|
|
932
|
+
margin-bottom: 20px;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
`;
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
customElements.define('profile-tab', ProfileTab);
|