isometrik-plugin-chat-sdk 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/cjs/attachment-preview_22.cjs.entry.js +71 -5
  2. package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
  3. package/dist/cjs/isometrik-webchat.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/login-page_3.cjs.entry.js +2 -2
  6. package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
  7. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +20 -1
  8. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
  9. package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js +67 -3
  10. package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js.map +1 -1
  11. package/dist/collection/components/ChatUIComponent/shared/new chat/new-chat.js +22 -1
  12. package/dist/collection/components/ChatUIComponent/shared/new chat/new-chat.js.map +1 -1
  13. package/dist/collection/components/my-component/web-chat/shell-render.js +1 -1
  14. package/dist/collection/components/my-component/web-chat/shell-render.js.map +1 -1
  15. package/dist/collection/components/my-component/web-chat/web-chat.css +16 -10
  16. package/dist/components/ChatSidebar.js +3 -1
  17. package/dist/components/ChatSidebar.js.map +1 -1
  18. package/dist/components/WebChat.js +2 -2
  19. package/dist/components/WebChat.js.map +1 -1
  20. package/dist/components/contact-info2.js +67 -3
  21. package/dist/components/contact-info2.js.map +1 -1
  22. package/dist/components/new-chat2.js +5 -1
  23. package/dist/components/new-chat2.js.map +1 -1
  24. package/dist/esm/attachment-preview_22.entry.js +71 -5
  25. package/dist/esm/attachment-preview_22.entry.js.map +1 -1
  26. package/dist/esm/isometrik-webchat.js +1 -1
  27. package/dist/esm/loader.js +1 -1
  28. package/dist/esm/login-page_3.entry.js +2 -2
  29. package/dist/esm/login-page_3.entry.js.map +1 -1
  30. package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
  31. package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -1
  32. package/dist/isometrik-webchat/{p-53ee98a7.entry.js → p-04803c0b.entry.js} +2 -2
  33. package/dist/isometrik-webchat/{p-53ee98a7.entry.js.map → p-04803c0b.entry.js.map} +1 -1
  34. package/dist/isometrik-webchat/p-7d4cc4e3.entry.js +2 -0
  35. package/dist/isometrik-webchat/p-7d4cc4e3.entry.js.map +1 -0
  36. package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +2 -0
  37. package/dist/types/components/ChatUIComponent/shared/contact-info/contact-info.d.ts +8 -0
  38. package/dist/types/components/ChatUIComponent/shared/new chat/new-chat.d.ts +2 -0
  39. package/dist/types/components.d.ts +16 -0
  40. package/package.json +1 -1
  41. package/readme.md +3 -3
  42. package/dist/isometrik-webchat/p-b61d6c0c.entry.js +0 -2
  43. package/dist/isometrik-webchat/p-b61d6c0c.entry.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"shell-render.js","sourceRoot":"","sources":["../../../../src/components/my-component/web-chat/shell-render.tsx"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAC3D,OAAO,wDAAwD,CAAC;AAIhE,gEAAgE;AAChE,SAAS,YAAY,CACnB,IAAsB,EACtB,QAAyB,EACzB,IAAyB,EACzB,aAAwB;IAExB,MAAM,IAAI,GAAG,iBAAiB,CAAC;QAC7B,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S,GAAG,SAAS,CAAC,EAClD,gBAAgB,EAAE,cAAc,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,EACzE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;QAEtC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,YAAM,IAAI,EAAC,cAAc,EAAC,IAAI,EAAC,cAAc,GAAG,CAAC,CAAC,CAAC,IAAI;QAC/F,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,YAAM,IAAI,EAAC,cAAc,EAAC,IAAI,EAAC,cAAc,GAAG,CAAC,CAAC,CAAC,IAAI;QAC/F,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,YAAM,IAAI,EAAC,gBAAgB,EAAC,IAAI,EAAC,gBAAgB,GAAG,CAAC,CAAC,CAAC,IAAI,CAC/E,CAC1B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAsB;IACpD,IAAI,IAAI,CAAC,cAAc,KAAK,KAAK;QAAE,OAAO,IAAI,CAAC;IAC/C,IAAI,CAAC,IAAI,CAAC,gBAAgB;QAAE,OAAO,IAAI,CAAC;IACxC,OAAO,CACL,WAAK,KAAK,EAAC,oBAAoB,IAC5B,YAAY,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC,CACzE,CACP,CAAC;AACJ,CAAC","sourcesContent":["/** Presentational shell tree for <web-chat> — keeps WebChat.tsx thin. */\nimport { Fragment, h } from '@stencil/core';\nimport { selectChatPlaceholderSvg } from '../../../assets/svg/SelectChatPlaceholder.js';\nimport { WEB_CONTENT } from '../../../constants/content';\nimport { hasNamedSlot, type WebChatSlotName } from '../../../lib/custom-ui';\nimport { resolveRegionMode } from '../../../sdk/composition';\nimport { ChatBg } from '../../../constants/chat-assets.js';\nimport '../../ChatUIComponent/shared/message-info/message-info';\n\nexport type WebChatShellHost = any;\n\n/** show / custom-slot / default matrix for any named region. */\nfunction renderRegion(\n host: WebChatShellHost,\n slotName: WebChatSlotName,\n show: boolean | undefined,\n renderDefault: () => any,\n): any {\n const mode = resolveRegionMode({\n show,\n hasCustomSlot: hasNamedSlot(host.el as HTMLElement, slotName),\n });\n if (mode === 'hidden') return null;\n if (mode === 'custom') return <slot name={slotName} />;\n return renderDefault();\n}\n\nexport function renderBootLoader(host: WebChatShellHost) {\n return (\n <div class=\"boot-loader-shell\">\n {renderRegion(host, 'boot-loader', true, () => (\n <chat-loading-placeholder progress={host.loadingProgress} loadingStatus={host.loadingStatus} />\n ))}\n </div>\n );\n}\n\nexport function renderBusyOverlay(host: WebChatShellHost) {\n if (!host.isConversationLoading) return null;\n return (\n <div class=\"loaderoverlay\">\n <spinner-loader\n height=\"30px\"\n width=\"30px\"\n spinTime=\"1s\"\n spinnerPrimaryColor=\"var(--bg-primary)\"\n spinnerSecondaryColor=\"var(--text-primary)\"\n spinnerBorderWidth=\"2px\"\n ></spinner-loader>\n </div>\n );\n}\n\nexport function renderDefaultConversationList(host: WebChatShellHost) {\n return (\n <chat-side-bar\n conversationDetails={host.conversationMetaData}\n isMqttConnected={host.isMqttConnected}\n unreadConversationsCount={host.unreadConversationsCount}\n hasMoreConversations={host.hasMoreConversations}\n userMetaData={host.userMetaData}\n onChatTileSelected={(e: CustomEvent) => host.handleChatSelect(e.detail)}\n onDeleteConversation={(conversationId: string) => host.deleteConversation(conversationId)}\n conversationList={host.allConversationList}\n isTyping={host.isTyping}\n typingUserName={host.typingUserName}\n typingConversationId={host.typingConversationId}\n //@ts-ignore\n isChatFilter={host.isChatFilter}\n customParts={host.customParts ?? {}}\n customTypes={[\n { type: 'Test conversations', label: 'Unread' },\n { type: 'SingleChat', label: 'Past' },\n { type: 'Chatbot', label: 'Present' },\n ]}\n isAllChatButton={host.isAllChatButton}\n filterTabsContainer={{\n display: 'flex',\n gap: '10px',\n width: '100%',\n flexWrap: 'wrap',\n marginBottom: '10px',\n }}\n filterTab={{\n padding: '10px 15px',\n border: '1px solid var(--brand-soft)',\n borderRadius: '25px',\n backgroundColor: 'transparent',\n cursor: 'pointer',\n transition: 'background-color 0.3s',\n color: 'var(--text-tertiary)',\n fontSize: '12px',\n textTransform: 'uppercase',\n }}\n filterTabHover={{\n backgroundColor: 'var(--brand-soft)',\n }}\n isSidebarHeaderLabel={host.isSidebarHeaderLabel}\n isSidebarHeaderSearch={host.isSidebarHeaderSearch}\n sidebarHeaderLabel={host.sidebarHeaderLabel}\n sidebarColor={host.sidebarColor}\n sidebarSelectedColor={host.sidebarSelectedColor}\n onGroupExited={(e: CustomEvent) => host.handleGroupExited(e)}\n handleSearchData={(searchTag: string) => host.getConversations(0, searchTag, true)}\n allMessages={host.allMessages}\n isConversationLoading={host.isLoadingConversationList}\n ></chat-side-bar>\n );\n}\n\nexport function renderSidebarTab(host: WebChatShellHost) {\n const groupcastOn = host.groupcastEnabled !== false;\n const tab = host.activeTab === 'GroupCast' && !groupcastOn ? 'Chat' : host.activeTab;\n\n if (tab === 'GroupCast') {\n return renderRegion(host, 'group-cast', true, () => (\n <group-cast\n isLoadingMore={host.isLoadingMoreGroupcast}\n groupCastData={host.allGroupCastContacts}\n userMetaData={host.userMetaData}\n onGroupcastTileSelected={(e: CustomEvent) => host.handleChatSelect(e.detail)}\n onCreated={(g: any) => {\n if (!g?.groupcastId) return;\n host.allGroupCastContacts = [g, ...(host.allGroupCastContacts || [])];\n }}\n ></group-cast>\n ));\n }\n if (tab === 'Profile') {\n return renderRegion(host, 'profile-page', true, () => (\n <profile-page\n getUserDetails={host.getUserDetails}\n name={host.userMetaData.userName}\n profilePhotoUrl={host.userMetaData.userProfileImageUrl}\n closeDrawer={() => (host.activeTab = 'Chat')}\n toggleTheme={host.toggleTheme}\n defaultTheme={host.defaultTheme}\n ></profile-page>\n ));\n }\n return renderRegion(host, 'conversation-list', host.showConversationList, () =>\n renderDefaultConversationList(host),\n );\n}\n\nfunction renderProfileRail(host: WebChatShellHost) {\n return renderRegion(host, 'profile-rail', host.showProfileRail, () => (\n <profile-sidebar\n userMetaData={host.userMetaData}\n activeTab={host.activeTab}\n openChat={() => (host.activeTab = 'Chat')}\n openProfile={() => (host.activeTab = 'Profile')}\n openGroupCast={() => {\n if (host.groupcastEnabled === false) return;\n host.getGroupCastContacts();\n }}\n unreadConversationsCount={host.unreadConversationsCount}\n ></profile-sidebar>\n ));\n}\n\nexport function renderDefaultSidebar(host: WebChatShellHost) {\n return (\n <Fragment>\n {renderProfileRail(host)}\n <div class=\"sidebar-tab\">{renderSidebarTab(host)}</div>\n </Fragment>\n );\n}\n\nexport function renderLeftRail(host: WebChatShellHost) {\n return (\n <div\n class={{\n 'chat-sidebar-container': true,\n 'hidden': host.isMobileView && !host.showSidebar,\n }}\n >\n {renderRegion(host, 'sidebar', true, () => renderDefaultSidebar(host))}\n </div>\n );\n}\n\nexport function renderDefaultComposer(host: WebChatShellHost) {\n if (host.exitedGroupIds.has(host.selectedConversationId)) {\n return (\n <div\n style={{\n padding: '1rem',\n textAlign: 'center',\n backgroundColor: 'var(--bg-secondary)',\n color: 'var(--text-primary)',\n borderTop: '1px solid var(--bg-secondary)',\n }}\n >\n You are no longer a member of this group\n </div>\n );\n }\n if (host.isBlocked === 'loading') {\n return <p class=\"blockMessageContainer\">{WEB_CONTENT.PLEASE_WAIT}</p>;\n }\n if (host.conversationMetaData?.messagingDisabled) {\n return <p class=\"blockMessageContainer\">{WEB_CONTENT.BLOCK_CHAT_MESSAGE}</p>;\n }\n const el = host.el as HTMLElement;\n return (\n <chat-footer\n userMetaData={host.userMetaData}\n updateAllMessages={host.updateAllMessages}\n changeMessageSendingState={host.changeMessageSendingState}\n changeScrollToBottomState={host.changeScrollToBottomState}\n refetchMessages={host.refetchMessages}\n allMessages={host.allMessages}\n selectedConversationId={host.selectedConversationId}\n replyMessage={host.replyMessage}\n handleremoveReplyMessage={host.handleremoveReplyMessage}\n conversationDetails={host.conversationMetaData}\n allConversationList={host.allConversationList}\n updateConversationListProp={host.updateConversationList}\n >\n {hasNamedSlot(el, 'reply-preview') ? <slot name=\"reply-preview\" slot=\"reply-preview\" /> : null}\n {hasNamedSlot(el, 'attachment-preview') ? <slot name=\"attachment-preview\" slot=\"attachment-preview\" /> : null}\n {hasNamedSlot(el, 'composer-input') ? <slot name=\"composer-input\" slot=\"composer-input\" /> : null}\n </chat-footer>\n );\n}\n\n/** slot=\"composer\" replaces whole footer; else reply-preview / attachment-preview / composer-input */\nexport function renderComposerOrBanner(host: WebChatShellHost) {\n return renderRegion(host, 'composer', host.showComposer, () => renderDefaultComposer(host));\n}\n\nexport function renderDefaultEmptyChat(_host: WebChatShellHost) {\n return (\n <div style={{ backgroundColor: 'var(--bg-secondary)', color: 'var(--text-tertiary)' }} class=\"noChatSelectedPlaceholder\">\n <div innerHTML={selectChatPlaceholderSvg}></div>\n <span>\"Start a Conversation\"</span>\n <span>\n Select a name from the list to begin chatting.\n <br />\n Connect easily and stay in touch!\n </span>\n </div>\n );\n}\n\nexport function renderDefaultHeader(host: WebChatShellHost) {\n return (\n <web-chat-header\n searchedMessageDetails={host.searchedMessageDetails}\n onSearchHandler={(text: string) => host.getMessagesByQuery(text)}\n onSearchResultClick={host.handleSearchResultClick}\n headerBgColor=\"var(--bg-primary)\"\n headerLastSeenColor=\"var(--text-secondary)\"\n headerSvgColor=\"var(--text-primary)\"\n headerUsernameColor=\"var(--text-primary)\"\n onClearConversation={() => host.clearConversation()}\n conversationDetails={host.conversationMetaData}\n isTyping={host.isTyping && host.selectedConversationId === host.typingConversationId}\n typingUserName={host.typingUserName}\n chatBodyRef={host.chatBodyRef}\n onTextClick={() => host.getAllAttachments(host.selectedConversationId)}\n allAttachments={host.allAttachments}\n lastSeen={host.conversationMetaData?.opponentDetails?.lastSeen}\n userMetaData={host.userMetaData}\n selectedConversationId={host.selectedConversationId}\n messageAction={host.messageAction}\n eligibleMembers={host.eligibleMembers}\n hasMoreEligibleMembers={host.hasMoreEligibleMembers}\n handleCloseChat={() => host.handleCloseChat()}\n typingConversationId={host.typingConversationId}\n isBlocked={host.isBlocked}\n onBackButtonClick={() => host.handleBackButton()}\n />\n );\n}\n\nexport function renderDefaultMessages(host: WebChatShellHost) {\n return (\n <web-chat-body\n ref={el => (host.chatBodyRef = el as HTMLWebChatBodyElement)}\n allAttachments={host.allAttachments}\n isMessagesLoading={host.isMessagesLoading}\n updateSkip={host.updateSkip}\n isMessageLimitEnd={host.isMessageLimitEnd}\n allMessages={host.allMessages}\n userMetaData={host.userMetaData}\n skip={host.skip}\n isScrollToBottom={host.isScrollToBottom}\n changeScrollToBottomState={host.changeScrollToBottomState}\n isMessageSending={host.isMessageSending}\n isScrollToTop={host.isScrollToTop}\n changeScrollToTopState={host.changeScrollToTopState}\n deleteForSelf={host.deleteMessageFromSelf}\n deleteForAll={host.deleteMeassageFromEveryOne}\n isChatClosed={host.isChatClosed}\n isChatMinimized={host.isChatMinimized}\n updateAllMessages={host.updateAllMessages}\n selectedConversationId={host.selectedConversationId}\n highlightedMessageId={host.highlightedMessageId}\n onMediaClick={() => host.getAllAttachments(host.selectedConversationId)}\n onReplyMessageDetails={host.handleReplyMessage}\n conversationList={host.allConversationList}\n newMessageNotification={host.newMessageNotification}\n onNewMessageCountReset={() => host.resetNewMessageNotification()}\n conversationDetails={host.conversationMetaData}\n loadingMediaGallery={host.loadingMediaGallery}\n customParts={host.customParts ?? {}}\n >\n {hasNamedSlot(host.el, 'message-info') ? <slot name=\"message-info\" slot=\"message-info\" /> : null}\n </web-chat-body>\n );\n}\n\nexport function renderActiveChat(host: WebChatShellHost) {\n const info = host.messageInfoView;\n return (\n <div class={{ 'chat-pane-row': true, 'info-open': !!info?.open }}>\n <div class=\"chat-main-stack\">\n {renderRegion(host, 'header', host.showHeader, () => renderDefaultHeader(host))}\n {renderRegion(host, 'messages', true, () => renderDefaultMessages(host))}\n {renderComposerOrBanner(host)}\n </div>\n {info?.open ? (\n <div class=\"message-info-dock\">\n {info.isLoading ? (\n <div class=\"message-info-loading\">\n <spinner-loader height=\"20px\" width=\"20px\" spinTime=\"1s\" spinnerPrimaryColor=\"var(--brand, #2563eb)\" spinnerSecondaryColor=\"var(--border, #e5e7eb)\" spinnerBorderWidth=\"2px\" />\n </div>\n ) : (\n <message-info\n selectedMessage={info.selectedMessage}\n messageDeliveryTime={info.messageDeliveryTime}\n messageReadTime={info.messageReadTime}\n readUserList={info.readUserList || []}\n deliveryUserList={info.deliveryUserList || []}\n isGroup={info.isGroup}\n pendingReadCount={info.pendingReadCount}\n pendingDeliveryCount={info.pendingDeliveryCount}\n allAttachments={host.allAttachments}\n onMediaClick={() => host.getAllAttachments(host.selectedConversationId)}\n closePopup={() => {\n host.messageInfoView = null;\n host.chatBodyRef?.closeMessageInfo?.();\n }}\n />\n )}\n </div>\n ) : null}\n </div>\n );\n}\n\nexport function renderChatPane(host: WebChatShellHost) {\n const wallpaper = host.showChatWallpaper !== false && host.selectedConversationId;\n return (\n <div\n class={{\n 'chat-body-container': true,\n 'show': host.isMobileView && !!host.selectedConversationId && !host.showSidebar,\n }}\n style={\n wallpaper\n ? {\n backgroundImage: `url(${ChatBg})`,\n backgroundSize: 'cover',\n backgroundPosition: 'center',\n backgroundRepeat: 'no-repeat',\n }\n : host.selectedConversationId\n ? { background: 'var(--bg-tertiary, #f4f4f5)' }\n : undefined\n }\n >\n {host.selectedConversationId ? (\n renderActiveChat(host)\n ) : (\n renderRegion(host, 'empty', host.showEmptyState, () => renderDefaultEmptyChat(host))\n )}\n </div>\n );\n}\n\nexport function renderDefaultRightPanel(host: WebChatShellHost) {\n return (\n <web-chat-right-sidebar\n conversationMetaData={host.isProfileInfoOpen ? host.selctConversationMetaData : host.conversationMetaData}\n selectedConversationId={host.selectedConversationId}\n hasMoreEligibleMembers={host.hasMoreEligibleMembers}\n eligibleMembers={host.eligibleMembers}\n allAttachments={host.isProfileInfoOpen ? host.selectConverSationAttachments : host.allAttachments}\n userMetaData={host.userMetaData}\n messageAction={host.messageAction}\n searchedMessageDetails={host.searchedMessageDetails}\n onSearchHandler={(text: string) => host.getMessagesByQuery(text)}\n onSearchResultClick={host.handleSearchResultClick}\n isContactInfoOpen={host.isContactInfoOpen}\n isProfileInfoOpen={host.isProfileInfoOpen}\n isOpenSearchBar={host.isOpenSearchBar}\n chatBodyRef={host.chatBodyRef}\n isLoadingMessage={host.isLoadingMessage}\n conversationIdFromContactinfo={host.conversationIdFromContactinfo}\n openOwnProfile={() => (host.activeTab = 'Profile')}\n handleChatSelect={conversationId => host.handleChatSelect(conversationId)}\n allLinks={host.allLinks}\n allLinksCount={host.allLinksCount}\n isBlocked={host.isBlocked}\n groupcastMembers={host.groupcastMembers}\n >\n {hasNamedSlot(host.el, 'contact-info') ? <slot name=\"contact-info\" slot=\"contact-info\" /> : null}\n {hasNamedSlot(host.el, 'profile-info') ? <slot name=\"profile-info\" slot=\"profile-info\" /> : null}\n {hasNamedSlot(host.el, 'message-search') ? <slot name=\"message-search\" slot=\"message-search\" /> : null}\n </web-chat-right-sidebar>\n );\n}\n\nexport function renderRightRail(host: WebChatShellHost) {\n if (host.showRightPanel === false) return null;\n if (!host.showRightSideBar) return null;\n return (\n <div class=\"chat-sidebar-right\">\n {renderRegion(host, 'right-panel', true, () => renderDefaultRightPanel(host))}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"shell-render.js","sourceRoot":"","sources":["../../../../src/components/my-component/web-chat/shell-render.tsx"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,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AAC;IAC/C,IAAI,CAAC,IAAI,CAAC,gBAAgB;QAAE,OAAO,IAAI,CAAC;IACxC,OAAO,CACL,WAAK,KAAK,EAAC,oBAAoB,IAC5B,YAAY,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC,CACzE,CACP,CAAC;AACJ,CAAC","sourcesContent":["/** Presentational shell tree for <web-chat> — keeps WebChat.tsx thin. */\nimport { Fragment, h } from '@stencil/core';\nimport { selectChatPlaceholderSvg } from '../../../assets/svg/SelectChatPlaceholder.js';\nimport { WEB_CONTENT } from '../../../constants/content';\nimport { hasNamedSlot, type WebChatSlotName } from '../../../lib/custom-ui';\nimport { resolveRegionMode } from '../../../sdk/composition';\nimport { ChatBg } from '../../../constants/chat-assets.js';\nimport '../../ChatUIComponent/shared/message-info/message-info';\n\nexport type WebChatShellHost = any;\n\n/** show / custom-slot / default matrix for any named region. */\nfunction renderRegion(\n host: WebChatShellHost,\n slotName: WebChatSlotName,\n show: boolean | undefined,\n renderDefault: () => any,\n): any {\n const mode = resolveRegionMode({\n show,\n hasCustomSlot: hasNamedSlot(host.el as HTMLElement, slotName),\n });\n if (mode === 'hidden') return null;\n if (mode === 'custom') return <slot name={slotName} />;\n return renderDefault();\n}\n\nexport function renderBootLoader(host: WebChatShellHost) {\n return (\n <div class=\"boot-loader-shell\">\n {renderRegion(host, 'boot-loader', true, () => (\n <chat-loading-placeholder progress={host.loadingProgress} loadingStatus={host.loadingStatus} />\n ))}\n </div>\n );\n}\n\nexport function renderBusyOverlay(host: WebChatShellHost) {\n if (!host.isConversationLoading) return null;\n return (\n <div class=\"loaderoverlay\">\n <spinner-loader\n height=\"30px\"\n width=\"30px\"\n spinTime=\"1s\"\n spinnerPrimaryColor=\"var(--bg-primary)\"\n spinnerSecondaryColor=\"var(--text-primary)\"\n spinnerBorderWidth=\"2px\"\n ></spinner-loader>\n </div>\n );\n}\n\nexport function renderDefaultConversationList(host: WebChatShellHost) {\n return (\n <chat-side-bar\n conversationDetails={host.conversationMetaData}\n isMqttConnected={host.isMqttConnected}\n unreadConversationsCount={host.unreadConversationsCount}\n hasMoreConversations={host.hasMoreConversations}\n userMetaData={host.userMetaData}\n onChatTileSelected={(e: CustomEvent) => host.handleChatSelect(e.detail)}\n onDeleteConversation={(conversationId: string) => host.deleteConversation(conversationId)}\n conversationList={host.allConversationList}\n isTyping={host.isTyping}\n typingUserName={host.typingUserName}\n typingConversationId={host.typingConversationId}\n //@ts-ignore\n isChatFilter={host.isChatFilter}\n customParts={host.customParts ?? {}}\n groupcastEnabled={host.groupcastEnabled !== false}\n customTypes={[\n { type: 'Test conversations', label: 'Unread' },\n { type: 'SingleChat', label: 'Past' },\n { type: 'Chatbot', label: 'Present' },\n ]}\n isAllChatButton={host.isAllChatButton}\n filterTabsContainer={{\n display: 'flex',\n gap: '10px',\n width: '100%',\n flexWrap: 'wrap',\n marginBottom: '10px',\n }}\n filterTab={{\n padding: '10px 15px',\n border: '1px solid var(--brand-soft)',\n borderRadius: '25px',\n backgroundColor: 'transparent',\n cursor: 'pointer',\n transition: 'background-color 0.3s',\n color: 'var(--text-tertiary)',\n fontSize: '12px',\n textTransform: 'uppercase',\n }}\n filterTabHover={{\n backgroundColor: 'var(--brand-soft)',\n }}\n isSidebarHeaderLabel={host.isSidebarHeaderLabel}\n isSidebarHeaderSearch={host.isSidebarHeaderSearch}\n sidebarHeaderLabel={host.sidebarHeaderLabel}\n sidebarColor={host.sidebarColor}\n sidebarSelectedColor={host.sidebarSelectedColor}\n onGroupExited={(e: CustomEvent) => host.handleGroupExited(e)}\n handleSearchData={(searchTag: string) => host.getConversations(0, searchTag, true)}\n allMessages={host.allMessages}\n isConversationLoading={host.isLoadingConversationList}\n ></chat-side-bar>\n );\n}\n\nexport function renderSidebarTab(host: WebChatShellHost) {\n const groupcastOn = host.groupcastEnabled !== false;\n const tab = host.activeTab === 'GroupCast' && !groupcastOn ? 'Chat' : host.activeTab;\n\n if (tab === 'GroupCast') {\n return renderRegion(host, 'group-cast', true, () => (\n <group-cast\n isLoadingMore={host.isLoadingMoreGroupcast}\n groupCastData={host.allGroupCastContacts}\n userMetaData={host.userMetaData}\n onGroupcastTileSelected={(e: CustomEvent) => host.handleChatSelect(e.detail)}\n onCreated={(g: any) => {\n if (!g?.groupcastId) return;\n host.allGroupCastContacts = [g, ...(host.allGroupCastContacts || [])];\n }}\n ></group-cast>\n ));\n }\n if (tab === 'Profile') {\n return renderRegion(host, 'profile-page', true, () => (\n <profile-page\n getUserDetails={host.getUserDetails}\n name={host.userMetaData.userName}\n profilePhotoUrl={host.userMetaData.userProfileImageUrl}\n closeDrawer={() => (host.activeTab = 'Chat')}\n toggleTheme={host.toggleTheme}\n defaultTheme={host.defaultTheme}\n ></profile-page>\n ));\n }\n return renderRegion(host, 'conversation-list', host.showConversationList, () =>\n renderDefaultConversationList(host),\n );\n}\n\nfunction renderProfileRail(host: WebChatShellHost) {\n return renderRegion(host, 'profile-rail', host.showProfileRail, () => (\n <profile-sidebar\n userMetaData={host.userMetaData}\n activeTab={host.activeTab}\n openChat={() => (host.activeTab = 'Chat')}\n openProfile={() => (host.activeTab = 'Profile')}\n openGroupCast={() => {\n if (host.groupcastEnabled === false) return;\n host.getGroupCastContacts();\n }}\n unreadConversationsCount={host.unreadConversationsCount}\n ></profile-sidebar>\n ));\n}\n\nexport function renderDefaultSidebar(host: WebChatShellHost) {\n return (\n <Fragment>\n {renderProfileRail(host)}\n <div class=\"sidebar-tab\">{renderSidebarTab(host)}</div>\n </Fragment>\n );\n}\n\nexport function renderLeftRail(host: WebChatShellHost) {\n return (\n <div\n class={{\n 'chat-sidebar-container': true,\n 'hidden': host.isMobileView && !host.showSidebar,\n }}\n >\n {renderRegion(host, 'sidebar', true, () => renderDefaultSidebar(host))}\n </div>\n );\n}\n\nexport function renderDefaultComposer(host: WebChatShellHost) {\n if (host.exitedGroupIds.has(host.selectedConversationId)) {\n return (\n <div\n style={{\n padding: '1rem',\n textAlign: 'center',\n backgroundColor: 'var(--bg-secondary)',\n color: 'var(--text-primary)',\n borderTop: '1px solid var(--bg-secondary)',\n }}\n >\n You are no longer a member of this group\n </div>\n );\n }\n if (host.isBlocked === 'loading') {\n return <p class=\"blockMessageContainer\">{WEB_CONTENT.PLEASE_WAIT}</p>;\n }\n if (host.conversationMetaData?.messagingDisabled) {\n return <p class=\"blockMessageContainer\">{WEB_CONTENT.BLOCK_CHAT_MESSAGE}</p>;\n }\n const el = host.el as HTMLElement;\n return (\n <chat-footer\n userMetaData={host.userMetaData}\n updateAllMessages={host.updateAllMessages}\n changeMessageSendingState={host.changeMessageSendingState}\n changeScrollToBottomState={host.changeScrollToBottomState}\n refetchMessages={host.refetchMessages}\n allMessages={host.allMessages}\n selectedConversationId={host.selectedConversationId}\n replyMessage={host.replyMessage}\n handleremoveReplyMessage={host.handleremoveReplyMessage}\n conversationDetails={host.conversationMetaData}\n allConversationList={host.allConversationList}\n updateConversationListProp={host.updateConversationList}\n >\n {hasNamedSlot(el, 'reply-preview') ? <slot name=\"reply-preview\" slot=\"reply-preview\" /> : null}\n {hasNamedSlot(el, 'attachment-preview') ? <slot name=\"attachment-preview\" slot=\"attachment-preview\" /> : null}\n {hasNamedSlot(el, 'composer-input') ? <slot name=\"composer-input\" slot=\"composer-input\" /> : null}\n </chat-footer>\n );\n}\n\n/** slot=\"composer\" replaces whole footer; else reply-preview / attachment-preview / composer-input */\nexport function renderComposerOrBanner(host: WebChatShellHost) {\n return renderRegion(host, 'composer', host.showComposer, () => renderDefaultComposer(host));\n}\n\nexport function renderDefaultEmptyChat(_host: WebChatShellHost) {\n return (\n <div style={{ backgroundColor: 'var(--bg-secondary)', color: 'var(--text-tertiary)' }} class=\"noChatSelectedPlaceholder\">\n <div innerHTML={selectChatPlaceholderSvg}></div>\n <span>\"Start a Conversation\"</span>\n <span>\n Select a name from the list to begin chatting.\n <br />\n Connect easily and stay in touch!\n </span>\n </div>\n );\n}\n\nexport function renderDefaultHeader(host: WebChatShellHost) {\n return (\n <web-chat-header\n searchedMessageDetails={host.searchedMessageDetails}\n onSearchHandler={(text: string) => host.getMessagesByQuery(text)}\n onSearchResultClick={host.handleSearchResultClick}\n headerBgColor=\"var(--bg-primary)\"\n headerLastSeenColor=\"var(--text-secondary)\"\n headerSvgColor=\"var(--text-primary)\"\n headerUsernameColor=\"var(--text-primary)\"\n onClearConversation={() => host.clearConversation()}\n conversationDetails={host.conversationMetaData}\n isTyping={host.isTyping && host.selectedConversationId === host.typingConversationId}\n typingUserName={host.typingUserName}\n chatBodyRef={host.chatBodyRef}\n onTextClick={() => host.getAllAttachments(host.selectedConversationId)}\n allAttachments={host.allAttachments}\n lastSeen={host.conversationMetaData?.opponentDetails?.lastSeen}\n userMetaData={host.userMetaData}\n selectedConversationId={host.selectedConversationId}\n messageAction={host.messageAction}\n eligibleMembers={host.eligibleMembers}\n hasMoreEligibleMembers={host.hasMoreEligibleMembers}\n handleCloseChat={() => host.handleCloseChat()}\n typingConversationId={host.typingConversationId}\n isBlocked={host.isBlocked}\n onBackButtonClick={() => host.handleBackButton()}\n />\n );\n}\n\nexport function renderDefaultMessages(host: WebChatShellHost) {\n return (\n <web-chat-body\n ref={el => (host.chatBodyRef = el as HTMLWebChatBodyElement)}\n allAttachments={host.allAttachments}\n isMessagesLoading={host.isMessagesLoading}\n updateSkip={host.updateSkip}\n isMessageLimitEnd={host.isMessageLimitEnd}\n allMessages={host.allMessages}\n userMetaData={host.userMetaData}\n skip={host.skip}\n isScrollToBottom={host.isScrollToBottom}\n changeScrollToBottomState={host.changeScrollToBottomState}\n isMessageSending={host.isMessageSending}\n isScrollToTop={host.isScrollToTop}\n changeScrollToTopState={host.changeScrollToTopState}\n deleteForSelf={host.deleteMessageFromSelf}\n deleteForAll={host.deleteMeassageFromEveryOne}\n isChatClosed={host.isChatClosed}\n isChatMinimized={host.isChatMinimized}\n updateAllMessages={host.updateAllMessages}\n selectedConversationId={host.selectedConversationId}\n highlightedMessageId={host.highlightedMessageId}\n onMediaClick={() => host.getAllAttachments(host.selectedConversationId)}\n onReplyMessageDetails={host.handleReplyMessage}\n conversationList={host.allConversationList}\n newMessageNotification={host.newMessageNotification}\n onNewMessageCountReset={() => host.resetNewMessageNotification()}\n conversationDetails={host.conversationMetaData}\n loadingMediaGallery={host.loadingMediaGallery}\n customParts={host.customParts ?? {}}\n >\n {hasNamedSlot(host.el, 'message-info') ? <slot name=\"message-info\" slot=\"message-info\" /> : null}\n </web-chat-body>\n );\n}\n\nexport function renderActiveChat(host: WebChatShellHost) {\n const info = host.messageInfoView;\n return (\n <div class={{ 'chat-pane-row': true, 'info-open': !!info?.open }}>\n <div class=\"chat-main-stack\">\n {renderRegion(host, 'header', host.showHeader, () => renderDefaultHeader(host))}\n {renderRegion(host, 'messages', true, () => renderDefaultMessages(host))}\n {renderComposerOrBanner(host)}\n </div>\n {info?.open ? (\n <div class=\"message-info-dock\">\n {info.isLoading ? (\n <div class=\"message-info-loading\">\n <spinner-loader height=\"20px\" width=\"20px\" spinTime=\"1s\" spinnerPrimaryColor=\"var(--brand, #2563eb)\" spinnerSecondaryColor=\"var(--border, #e5e7eb)\" spinnerBorderWidth=\"2px\" />\n </div>\n ) : (\n <message-info\n selectedMessage={info.selectedMessage}\n messageDeliveryTime={info.messageDeliveryTime}\n messageReadTime={info.messageReadTime}\n readUserList={info.readUserList || []}\n deliveryUserList={info.deliveryUserList || []}\n isGroup={info.isGroup}\n pendingReadCount={info.pendingReadCount}\n pendingDeliveryCount={info.pendingDeliveryCount}\n allAttachments={host.allAttachments}\n onMediaClick={() => host.getAllAttachments(host.selectedConversationId)}\n closePopup={() => {\n host.messageInfoView = null;\n host.chatBodyRef?.closeMessageInfo?.();\n }}\n />\n )}\n </div>\n ) : null}\n </div>\n );\n}\n\nexport function renderChatPane(host: WebChatShellHost) {\n const wallpaper = host.showChatWallpaper !== false && host.selectedConversationId;\n return (\n <div\n class={{\n 'chat-body-container': true,\n 'show': host.isMobileView && !!host.selectedConversationId && !host.showSidebar,\n }}\n style={\n wallpaper\n ? {\n backgroundImage: `url(${ChatBg})`,\n backgroundSize: 'cover',\n backgroundPosition: 'center',\n backgroundRepeat: 'no-repeat',\n }\n : host.selectedConversationId\n ? { background: 'var(--bg-tertiary, #f4f4f5)' }\n : undefined\n }\n >\n {host.selectedConversationId ? (\n renderActiveChat(host)\n ) : (\n renderRegion(host, 'empty', host.showEmptyState, () => renderDefaultEmptyChat(host))\n )}\n </div>\n );\n}\n\nexport function renderDefaultRightPanel(host: WebChatShellHost) {\n return (\n <web-chat-right-sidebar\n conversationMetaData={host.isProfileInfoOpen ? host.selctConversationMetaData : host.conversationMetaData}\n selectedConversationId={host.selectedConversationId}\n hasMoreEligibleMembers={host.hasMoreEligibleMembers}\n eligibleMembers={host.eligibleMembers}\n allAttachments={host.isProfileInfoOpen ? host.selectConverSationAttachments : host.allAttachments}\n userMetaData={host.userMetaData}\n messageAction={host.messageAction}\n searchedMessageDetails={host.searchedMessageDetails}\n onSearchHandler={(text: string) => host.getMessagesByQuery(text)}\n onSearchResultClick={host.handleSearchResultClick}\n isContactInfoOpen={host.isContactInfoOpen}\n isProfileInfoOpen={host.isProfileInfoOpen}\n isOpenSearchBar={host.isOpenSearchBar}\n chatBodyRef={host.chatBodyRef}\n isLoadingMessage={host.isLoadingMessage}\n conversationIdFromContactinfo={host.conversationIdFromContactinfo}\n openOwnProfile={() => (host.activeTab = 'Profile')}\n handleChatSelect={conversationId => host.handleChatSelect(conversationId)}\n allLinks={host.allLinks}\n allLinksCount={host.allLinksCount}\n isBlocked={host.isBlocked}\n groupcastMembers={host.groupcastMembers}\n >\n {hasNamedSlot(host.el, 'contact-info') ? <slot name=\"contact-info\" slot=\"contact-info\" /> : null}\n {hasNamedSlot(host.el, 'profile-info') ? <slot name=\"profile-info\" slot=\"profile-info\" /> : null}\n {hasNamedSlot(host.el, 'message-search') ? <slot name=\"message-search\" slot=\"message-search\" /> : null}\n </web-chat-right-sidebar>\n );\n}\n\nexport function renderRightRail(host: WebChatShellHost) {\n if (host.showRightPanel === false) return null;\n if (!host.showRightSideBar) return null;\n return (\n <div class=\"chat-sidebar-right\">\n {renderRegion(host, 'right-panel', true, () => renderDefaultRightPanel(host))}\n </div>\n );\n}\n"]}
@@ -2,24 +2,24 @@
2
2
  display: flex;
3
3
  flex: 1;
4
4
  width: var(--w-full);
5
- min-height: 100dvh;
6
- height: var(--h-full);
5
+ min-height: 0;
6
+ height: 100%;
7
7
  }
8
8
 
9
9
  web-chat {
10
10
  display: flex;
11
11
  flex: 1;
12
12
  width: var(--w-full);
13
- min-height: 100dvh;
14
- height: var(--h-full);
13
+ min-height: 0;
14
+ height: 100%;
15
15
  }
16
16
 
17
17
  .boot-loader-shell {
18
18
  display: flex;
19
19
  flex: 1;
20
20
  width: var(--w-full);
21
- min-height: 100dvh;
22
- height: var(--h-full);
21
+ min-height: 0;
22
+ height: 100%;
23
23
  align-items: stretch;
24
24
  justify-content: stretch;
25
25
  }
@@ -29,14 +29,20 @@ web-chat {
29
29
  display: flex;
30
30
  flex: 1;
31
31
  width: var(--w-full);
32
- min-height: 100dvh;
32
+ min-height: 0;
33
+ height: 100%;
33
34
  }
34
35
 
35
36
  .isometrik-quickchat {
36
- box-shadow: 0 0 1.25rem 1px color-mix(in srgb, var(--brand) 15%, transparent);
37
+ /* No card shadow — hosts embed this full-bleed in a dashboard panel. */
38
+ box-shadow: none;
37
39
  display: flex;
38
- height: 100dvh;
40
+ flex: 1 1 auto;
41
+ height: 100%;
42
+ min-height: 0;
39
43
  width: var(--w-full);
44
+ max-height: 100%;
45
+ overflow: hidden;
40
46
  }
41
47
 
42
48
  .chat-sidebar-container {
@@ -234,7 +240,7 @@ profile-sidebar-ui {
234
240
 
235
241
  spinner-loader {
236
242
  display: flex;
237
- height: 100dvh;
243
+ height: 100%;
238
244
  }
239
245
 
240
246
  .blockMessageContainer {
@@ -227,6 +227,7 @@ const ChatSidebar = /*@__PURE__*/ proxyCustomElement(class ChatSidebar extends H
227
227
  this.hasMoreConversations = undefined;
228
228
  this.unreadConversationsCount = undefined;
229
229
  this.customParts = undefined;
230
+ this.groupcastEnabled = true;
230
231
  this.conversationDetails = undefined;
231
232
  this.sortedConversationList = [];
232
233
  this.numberOfConversations = 0;
@@ -933,7 +934,7 @@ const ChatSidebar = /*@__PURE__*/ proxyCustomElement(class ChatSidebar extends H
933
934
  const title = tile.isGroup ? tile.conversationTitle : (_a = tile === null || tile === void 0 ? void 0 : tile.opponentDetails) === null || _a === void 0 ? void 0 : _a.userName;
934
935
  return (title || '').toLowerCase().includes(searchQuery);
935
936
  });
936
- return (h("div", { class: "chat-sidebar-container", style: { backgroundColor: this.sidebarColor || undefined } }, this.isGroupCreationLoading && (h("div", { class: "loader" }, h("spinner-loader", { height: "30px", width: "30px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary)", spinnerSecondaryColor: "var(--text-primary)", spinnerBorderWidth: "2px" }))), this.showGroupInfo ? (h("div", { class: "new-chat-panel" }, h("iso-group-info", { label: this.memberPickerIsGroupCast ? 'Create New Groupcast' : 'Create New Group', selectedUserIds: this.pendingGroupMembers.map(m => m.userId), selectedUsers: this.pendingGroupMembers, isGroupCast: this.memberPickerIsGroupCast, closeGroupInfo: this.closeGroupInfoStep, afterCreate: this.finishGroupInfoStep }))) : this.showMemberPicker ? (h("div", { class: "new-chat-panel" }, h("div", { class: "picker-back" }, h("button", { type: "button", onClick: this.closeMemberPicker, "aria-label": "Back" }, h("img", { class: "theme-icon", src: Left_Arrow, alt: "" })), h("h2", { class: "picker-title" }, this.memberPickerIsGroupCast ? 'New Group Cast' : 'New Group')), h("searchable-list", { label: this.memberPickerIsGroupCast ? 'New Group Cast' : 'New Group', hideTopbar: true, contactList: this.nonBlockedContacts, isSearching: true, isLoading: this.isLoadingMember, hasMore: this.hasMoreMembers, skip: this.skip, paginationLoading: this.isPaginationMember, getForwardMessageMemberList: (query, skip) => this.getAllGroupMemeber(query || '', skip || 0), onSend: this.submitMemberPicker, height: "100%" }))) : this.showNewChat ? (h("div", { class: "new-chat-panel" }, h("new-chat", { contactList: this.nonBlockedContacts, isLoading: this.isLoadingMember, hasMore: this.hasMoreMembers, skip: this.skip, paginationLoading: this.isPaginationMember, onSearch: (query, skip) => this.getAllMemeber(query || '', skip || 0), onSelect: this.handleNewChatContactPick, onClose: () => this.closeNewChat(), customParts: this.customParts }))) : ([
937
+ return (h("div", { class: "chat-sidebar-container", style: { backgroundColor: this.sidebarColor || undefined } }, this.isGroupCreationLoading && (h("div", { class: "loader" }, h("spinner-loader", { height: "30px", width: "30px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary)", spinnerSecondaryColor: "var(--text-primary)", spinnerBorderWidth: "2px" }))), this.showGroupInfo ? (h("div", { class: "new-chat-panel" }, h("iso-group-info", { label: this.memberPickerIsGroupCast ? 'Create New Groupcast' : 'Create New Group', selectedUserIds: this.pendingGroupMembers.map(m => m.userId), selectedUsers: this.pendingGroupMembers, isGroupCast: this.memberPickerIsGroupCast, closeGroupInfo: this.closeGroupInfoStep, afterCreate: this.finishGroupInfoStep }))) : this.showMemberPicker ? (h("div", { class: "new-chat-panel" }, h("div", { class: "picker-back" }, h("button", { type: "button", onClick: this.closeMemberPicker, "aria-label": "Back" }, h("img", { class: "theme-icon", src: Left_Arrow, alt: "" })), h("h2", { class: "picker-title" }, this.memberPickerIsGroupCast ? 'New Group Cast' : 'New Group')), h("searchable-list", { label: this.memberPickerIsGroupCast ? 'New Group Cast' : 'New Group', hideTopbar: true, contactList: this.nonBlockedContacts, isSearching: true, isLoading: this.isLoadingMember, hasMore: this.hasMoreMembers, skip: this.skip, paginationLoading: this.isPaginationMember, getForwardMessageMemberList: (query, skip) => this.getAllGroupMemeber(query || '', skip || 0), onSend: this.submitMemberPicker, height: "100%" }))) : this.showNewChat ? (h("div", { class: "new-chat-panel" }, h("new-chat", { contactList: this.nonBlockedContacts, isLoading: this.isLoadingMember, hasMore: this.hasMoreMembers, skip: this.skip, paginationLoading: this.isPaginationMember, onSearch: (query, skip) => this.getAllMemeber(query || '', skip || 0), onSelect: this.handleNewChatContactPick, onClose: () => this.closeNewChat(), customParts: this.customParts, groupcastEnabled: this.groupcastEnabled }))) : ([
937
938
  h("div", { class: "chat-sidebar-top" }, h("div", { class: "chat-sidebar-header-row" }, this.isSidebarHeaderLabel ? (h("h1", { class: "chat-sidebar-header" }, this.sidebarHeaderLabel || 'Chats')) : (h("span", null)), h("div", { class: "chat-sidebar-actions" }, h("button", { type: "button", class: "icon-btn", title: "New Chat", onClick: () => this.openNewChat() }, h("img", { src: New_Chat, alt: "New chat" })), h("div", { class: "more-wrap" }, h("button", { type: "button", class: "icon-btn", title: "More Options", "aria-label": "More options", "aria-haspopup": "menu", "aria-expanded": this.showMoreMenu ? 'true' : 'false', onClick: this.toggleMoreMenu }, h("img", { class: "theme-icon", src: Three_Dots, alt: "" })), this.showMoreMenu ? (h("div", { class: "more-menu", role: "menu" }, h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.onNewGroupFromMenu }, h("img", { class: "theme-icon", src: New_Group, alt: "" }), h("span", null, "New group")), h("div", { class: "more-divider" }), h("button", { type: "button", class: "more-item danger", role: "menuitem", onClick: this.onLogoutFromMenu }, h("img", { class: "theme-icon", src: Logout, alt: "" }), h("span", null, "Log out")))) : null))), this.isSidebarHeaderSearch !== false ? (h("div", { class: "chat-sidebar-search" }, h("input", { type: "search", placeholder: "Search or start new chat", value: this.searchQuery, onInput: (e) => this.handleSearch(e) }))) : null),
938
939
  h("div", { class: "chat-sidebar-list", onScroll: (e) => this.handleListScroll(e) }, this.isConversationLoading ? (h("div", { class: "chat-sidebar-loading" }, h("spinner-loader", { height: "15px", width: "15px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary)", spinnerSecondaryColor: "var(--text-primary)", spinnerBorderWidth: "2px" }))) : filteredConversations.length > 0 ? (filteredConversations.map((tile) => this.renderConversationTile(tile))) : (h("div", { class: "chat-sidebar-empty" }, "No conversation found")), this.isLoading && this.hasMoreConversations && (h("div", { class: "chat-sidebar-loading" }, h("spinner-loader", { height: "15px", width: "15px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary)", spinnerSecondaryColor: "var(--text-primary)", spinnerBorderWidth: "2px" })))),
939
940
  ])));
@@ -969,6 +970,7 @@ const ChatSidebar = /*@__PURE__*/ proxyCustomElement(class ChatSidebar extends H
969
970
  "hasMoreConversations": [4, "has-more-conversations"],
970
971
  "unreadConversationsCount": [2, "unread-conversations-count"],
971
972
  "customParts": [1040],
973
+ "groupcastEnabled": [4, "groupcast-enabled"],
972
974
  "conversationDetails": [1032, "conversation-details"],
973
975
  "sortedConversationList": [32],
974
976
  "numberOfConversations": [32],