isometrik-plugin-chat-sdk 2.0.22 → 2.0.24

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 (181) hide show
  1. package/dist/cjs/{app-globals-0e7848be.js → app-globals-f55c4dba.js} +4 -4
  2. package/dist/cjs/{app-globals-0e7848be.js.map → app-globals-f55c4dba.js.map} +1 -1
  3. package/dist/cjs/attachment-preview_23.cjs.entry.js +98 -97
  4. package/dist/cjs/attachment-preview_23.cjs.entry.js.map +1 -1
  5. package/dist/cjs/{chat-tile_3.cjs.entry.js → chat-tile_2.cjs.entry.js} +1 -66
  6. package/dist/cjs/chat-tile_2.cjs.entry.js.map +1 -0
  7. package/dist/cjs/forward-memebers.cjs.entry.js +24 -5
  8. package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -1
  9. package/dist/cjs/groupcast-9456b0c7.js +356 -0
  10. package/dist/cjs/groupcast-9456b0c7.js.map +1 -0
  11. package/dist/cjs/index.cjs.js +9 -9
  12. package/dist/cjs/iso-group-info.cjs.entry.js +74 -0
  13. package/dist/cjs/iso-group-info.cjs.entry.js.map +1 -0
  14. package/dist/cjs/isometrik-webchat.cjs.js +5 -5
  15. package/dist/cjs/loader.cjs.js +5 -5
  16. package/dist/cjs/login-page_3.cjs.entry.js +177 -69
  17. package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
  18. package/dist/cjs/member-add.cjs.entry.js +23 -5
  19. package/dist/cjs/member-add.cjs.entry.js.map +1 -1
  20. package/dist/cjs/{runtime-controls-a70872fe.js → runtime-controls-6d4fd7ed.js} +8 -7
  21. package/dist/cjs/runtime-controls-6d4fd7ed.js.map +1 -0
  22. package/dist/cjs/{groupcast-bb393c81.js → session-d44ca719.js} +1 -20
  23. package/dist/cjs/session-d44ca719.js.map +1 -0
  24. package/dist/collection/api/groupcast.js +42 -4
  25. package/dist/collection/components/ChatUIComponent/AddMember.js +24 -5
  26. package/dist/collection/components/ChatUIComponent/AddMember.js.map +1 -1
  27. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +25 -2
  28. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
  29. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +58 -3
  30. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -1
  31. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +15 -6
  32. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -1
  33. package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js +24 -5
  34. package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js.map +1 -1
  35. package/dist/collection/components/ChatUIComponent/shared/GroupCast/GroupCast.js +29 -110
  36. package/dist/collection/components/ChatUIComponent/shared/GroupCast/GroupCast.js.map +1 -1
  37. package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js +4 -2
  38. package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js.map +1 -1
  39. package/dist/collection/components/ChatUIComponent/shared/message-search/message-search.js +4 -4
  40. package/dist/collection/components/ChatUIComponent/shared/message-search/message-search.js.map +1 -1
  41. package/dist/collection/components/my-component/web-chat/WebChat.js +49 -4
  42. package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -1
  43. package/dist/collection/components/my-component/web-chat/bootstrap.js +4 -0
  44. package/dist/collection/components/my-component/web-chat/bootstrap.js.map +1 -1
  45. package/dist/collection/components/my-component/web-chat/data-fetch.js +2 -2
  46. package/dist/collection/components/my-component/web-chat/data-fetch.js.map +1 -1
  47. package/dist/collection/components/my-component/web-chat/event-handlers.js +23 -6
  48. package/dist/collection/components/my-component/web-chat/event-handlers.js.map +1 -1
  49. package/dist/collection/components/my-component/web-chat/groupcast-draft.js +67 -0
  50. package/dist/collection/components/my-component/web-chat/groupcast-draft.js.map +1 -0
  51. package/dist/collection/components/my-component/web-chat/shell-render.js +2 -6
  52. package/dist/collection/components/my-component/web-chat/shell-render.js.map +1 -1
  53. package/dist/collection/lib/chat/groupcast.js +81 -1
  54. package/dist/collection/lib/chat/groupcast.js.map +1 -1
  55. package/dist/collection/lib/chat/index.js +1 -1
  56. package/dist/collection/lib/chat/index.js.map +1 -1
  57. package/dist/components/ChatFooter.js +41 -5
  58. package/dist/components/ChatFooter.js.map +1 -1
  59. package/dist/components/ChatSidebar.js +26 -3
  60. package/dist/components/ChatSidebar.js.map +1 -1
  61. package/dist/components/{GroupCast2.js → GroupCast3.js} +21 -98
  62. package/dist/components/GroupCast3.js.map +1 -0
  63. package/dist/components/WebChat.js +172 -62
  64. package/dist/components/WebChat.js.map +1 -1
  65. package/dist/components/WebChatBody.js +2 -2
  66. package/dist/components/WebChatHeader.js +15 -6
  67. package/dist/components/WebChatHeader.js.map +1 -1
  68. package/dist/components/chat-app.js +1 -1
  69. package/dist/components/client.js +1 -17
  70. package/dist/components/client.js.map +1 -1
  71. package/dist/components/contact-info2.js +4 -2
  72. package/dist/components/contact-info2.js.map +1 -1
  73. package/dist/components/forward-memebers.js +24 -5
  74. package/dist/components/forward-memebers.js.map +1 -1
  75. package/dist/components/group-cast.js +1 -1
  76. package/dist/components/groupcast.js +94 -192
  77. package/dist/components/groupcast.js.map +1 -1
  78. package/dist/{esm/groupcast-c6da3918.js → components/groupcast2.js} +45 -7
  79. package/dist/components/groupcast2.js.map +1 -0
  80. package/dist/components/helpers.js +1 -1
  81. package/dist/components/index.js +3 -2
  82. package/dist/components/index.js.map +1 -1
  83. package/dist/components/member-add.js +24 -5
  84. package/dist/components/member-add.js.map +1 -1
  85. package/dist/components/message-search2.js +4 -4
  86. package/dist/components/message-search2.js.map +1 -1
  87. package/dist/esm/{app-globals-eba1ca0c.js → app-globals-5dd18915.js} +3 -3
  88. package/dist/esm/{app-globals-eba1ca0c.js.map → app-globals-5dd18915.js.map} +1 -1
  89. package/dist/esm/attachment-preview_23.entry.js +99 -98
  90. package/dist/esm/attachment-preview_23.entry.js.map +1 -1
  91. package/dist/esm/audio-bubble_4.entry.js +1 -1
  92. package/dist/esm/{chat-tile_3.entry.js → chat-tile_2.entry.js} +3 -67
  93. package/dist/esm/chat-tile_2.entry.js.map +1 -0
  94. package/dist/esm/forward-memebers.entry.js +24 -5
  95. package/dist/esm/forward-memebers.entry.js.map +1 -1
  96. package/dist/esm/group-chat-contacts.entry.js +1 -1
  97. package/dist/esm/groupcast-e32d3b10.js +331 -0
  98. package/dist/esm/groupcast-e32d3b10.js.map +1 -0
  99. package/dist/esm/{helpers-1632a4c7.js → helpers-d452bc0f.js} +2 -2
  100. package/dist/esm/{helpers-1632a4c7.js.map → helpers-d452bc0f.js.map} +1 -1
  101. package/dist/esm/index.js +4 -4
  102. package/dist/esm/iso-group-info.entry.js +70 -0
  103. package/dist/esm/iso-group-info.entry.js.map +1 -0
  104. package/dist/esm/isometrik-webchat.js +5 -5
  105. package/dist/esm/loader.js +5 -5
  106. package/dist/esm/login-page_3.entry.js +168 -60
  107. package/dist/esm/login-page_3.entry.js.map +1 -1
  108. package/dist/esm/member-add.entry.js +25 -7
  109. package/dist/esm/member-add.entry.js.map +1 -1
  110. package/dist/esm/new-chat-sidebar.entry.js +1 -1
  111. package/dist/esm/{runtime-controls-bdb84aeb.js → runtime-controls-6dafba73.js} +3 -2
  112. package/dist/esm/runtime-controls-6dafba73.js.map +1 -0
  113. package/dist/esm/{groupcast-4f15b050.js → session-ed7217a7.js} +2 -18
  114. package/dist/esm/session-ed7217a7.js.map +1 -0
  115. package/dist/isometrik-webchat/index.esm.js +1 -1
  116. package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
  117. package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -1
  118. package/dist/isometrik-webchat/p-056f6809.entry.js +2 -0
  119. package/dist/isometrik-webchat/p-056f6809.entry.js.map +1 -0
  120. package/dist/isometrik-webchat/p-05b33578.js +2 -0
  121. package/dist/isometrik-webchat/{p-57f97cef.entry.js → p-0649db69.entry.js} +2 -2
  122. package/dist/isometrik-webchat/p-068abd0a.entry.js +2 -0
  123. package/dist/isometrik-webchat/p-068abd0a.entry.js.map +1 -0
  124. package/dist/isometrik-webchat/p-22404d0d.entry.js +2 -0
  125. package/dist/isometrik-webchat/p-22404d0d.entry.js.map +1 -0
  126. package/dist/isometrik-webchat/p-7d01ccbb.js +2 -0
  127. package/dist/isometrik-webchat/p-7d01ccbb.js.map +1 -0
  128. package/dist/isometrik-webchat/p-90c38a4e.entry.js +2 -0
  129. package/dist/isometrik-webchat/p-90c38a4e.entry.js.map +1 -0
  130. package/dist/isometrik-webchat/{p-0bb42151.entry.js → p-94f0c983.entry.js} +2 -2
  131. package/dist/isometrik-webchat/p-ac671eb5.js +2 -0
  132. package/dist/isometrik-webchat/p-ac671eb5.js.map +1 -0
  133. package/dist/isometrik-webchat/p-b884d9ee.entry.js +2 -0
  134. package/dist/isometrik-webchat/p-b884d9ee.entry.js.map +1 -0
  135. package/dist/isometrik-webchat/p-c4333279.entry.js +2 -0
  136. package/dist/isometrik-webchat/p-c4333279.entry.js.map +1 -0
  137. package/dist/isometrik-webchat/p-cce7d971.js +2 -0
  138. package/dist/isometrik-webchat/{p-a83932d4.js.map → p-cce7d971.js.map} +1 -1
  139. package/dist/isometrik-webchat/{p-02db2116.entry.js → p-ec03caec.entry.js} +2 -2
  140. package/dist/isometrik-webchat/{p-3dca1e56.js → p-f97e3f6d.js} +2 -2
  141. package/dist/types/components/ChatUIComponent/AddMember.d.ts +1 -0
  142. package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +3 -1
  143. package/dist/types/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.d.ts +3 -0
  144. package/dist/types/components/ChatUIComponent/shared/GroupCast/GroupCast.d.ts +2 -11
  145. package/dist/types/components/my-component/web-chat/WebChat.d.ts +23 -0
  146. package/dist/types/components/my-component/web-chat/groupcast-draft.d.ts +23 -0
  147. package/dist/types/components.d.ts +13 -2
  148. package/dist/types/lib/chat/groupcast.d.ts +66 -0
  149. package/dist/types/lib/chat/index.d.ts +1 -1
  150. package/package.json +1 -1
  151. package/dist/cjs/chat-tile_3.cjs.entry.js.map +0 -1
  152. package/dist/cjs/groupcast-bb393c81.js.map +0 -1
  153. package/dist/cjs/groupcast-e1e52bd1.js +0 -213
  154. package/dist/cjs/groupcast-e1e52bd1.js.map +0 -1
  155. package/dist/cjs/runtime-controls-a70872fe.js.map +0 -1
  156. package/dist/components/GroupCast2.js.map +0 -1
  157. package/dist/esm/chat-tile_3.entry.js.map +0 -1
  158. package/dist/esm/groupcast-4f15b050.js.map +0 -1
  159. package/dist/esm/groupcast-c6da3918.js.map +0 -1
  160. package/dist/esm/runtime-controls-bdb84aeb.js.map +0 -1
  161. package/dist/isometrik-webchat/p-03933431.entry.js +0 -2
  162. package/dist/isometrik-webchat/p-03933431.entry.js.map +0 -1
  163. package/dist/isometrik-webchat/p-1f0e8230.entry.js +0 -2
  164. package/dist/isometrik-webchat/p-1f0e8230.entry.js.map +0 -1
  165. package/dist/isometrik-webchat/p-3a0409fc.js +0 -2
  166. package/dist/isometrik-webchat/p-3a0409fc.js.map +0 -1
  167. package/dist/isometrik-webchat/p-46be73c5.js +0 -2
  168. package/dist/isometrik-webchat/p-46be73c5.js.map +0 -1
  169. package/dist/isometrik-webchat/p-605cb14e.entry.js +0 -2
  170. package/dist/isometrik-webchat/p-605cb14e.entry.js.map +0 -1
  171. package/dist/isometrik-webchat/p-69d953cb.entry.js +0 -2
  172. package/dist/isometrik-webchat/p-69d953cb.entry.js.map +0 -1
  173. package/dist/isometrik-webchat/p-6c5eb178.js +0 -2
  174. package/dist/isometrik-webchat/p-a83932d4.js +0 -2
  175. package/dist/isometrik-webchat/p-b0f6f9ab.entry.js +0 -2
  176. package/dist/isometrik-webchat/p-b0f6f9ab.entry.js.map +0 -1
  177. /package/dist/isometrik-webchat/{p-6c5eb178.js.map → p-05b33578.js.map} +0 -0
  178. /package/dist/isometrik-webchat/{p-57f97cef.entry.js.map → p-0649db69.entry.js.map} +0 -0
  179. /package/dist/isometrik-webchat/{p-0bb42151.entry.js.map → p-94f0c983.entry.js.map} +0 -0
  180. /package/dist/isometrik-webchat/{p-02db2116.entry.js.map → p-ec03caec.entry.js.map} +0 -0
  181. /package/dist/isometrik-webchat/{p-3dca1e56.js.map → p-f97e3f6d.js.map} +0 -0
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host, Fragment } from '@stencil/cor
2
2
  import { f as findWebChatHost, h as hasNamedSlot } from './index2.js';
3
3
  import { d as defineCustomElement$3 } from './attachment-preview2.js';
4
4
  import { M } from './index.m.js';
5
- import { g as getDeviceID, a as getGroupcastUrlQuery } from './helpers.js';
5
+ import { a as getDeviceID, g as getGroupcastUrlQuery } from './helpers.js';
6
6
  import { d as defineCustomElement$1 } from './reply-block2.js';
7
7
  import { s as showToast } from './toast.js';
8
8
  import { t as takeMediaFiles, m as mediaLimitToastMessage, M as MAX_MEDIA_PER_MESSAGE } from './media-limits.js';
@@ -10,10 +10,11 @@ import { s as storageQuotaStore } from './storage-quota2.js';
10
10
  import { c as canUploadBytes, i as isQuotaExceededError } from './storage-quota.js';
11
11
  import { p as prepareMediaAttachments, d as isSameNameUploadCancelledError, r as resolveCustomTypeForUpload, f as attachmentBodyForOutgoing, b as buildReplyMetaData, g as presignedSlotsByMediaId, h as uploadPresignedMediaAttachment, j as resolveAttachmentPayloads, k as mapOutgoingAttachmentsForApi, l as isPresignDuplicateSlot } from './send-media.js';
12
12
  import { m as messagePushContextFrom, w as withHostMessagePushFields } from './local-notification.js';
13
- import { c as getPresignedUrlForGroupcastMedia, p as postGroupCastMessage } from './groupcast.js';
13
+ import { c as getPresignedUrlForGroupcastMedia, e as postGroupCastMessage } from './groupcast2.js';
14
14
  import { D as Delete, d as Send, A as Attachment, S as Smile, M as Microphone } from './chat-assets.js';
15
15
  import { P as PlayIcon, D as DocumentsIcon, a as PhotosIcon } from './play.js';
16
16
  import { d as defineCustomElement$2 } from './AudioBubble.js';
17
+ import { i as isGroupcastDraftId } from './groupcast.js';
17
18
 
18
19
  /**
19
20
  * Clipboard image paste for the chat composer (ChatFooter).
@@ -575,6 +576,7 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
575
576
  this.conversationDetails = {};
576
577
  this.allConversationList = [];
577
578
  this.updateConversationListProp = undefined;
579
+ this.ensureGroupcastReady = undefined;
578
580
  this.showCamera = false;
579
581
  this.linkPreview = '';
580
582
  this.linkToPreview = '';
@@ -698,7 +700,24 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
698
700
  conversation: this.conversationDetails,
699
701
  });
700
702
  if (isGroupcast) {
701
- const payloadForGroupcastMessage = withHostMessagePushFields(Object.assign({ showInConversation: true, sendPushForNewConversationCreated: true, searchableTags: this.generateSearchableTags(body), metaData: this.getReplyMetadata(), body: body, groupcastId: groupcastId, readCount: 1, notifyOnCompletion: true, messageType: this.replyMessage ? 2 : 0, hideNewConversationsForSender: true, encrypted: true, deviceId: this.deviceId, deliveryCount: 1, customType: (body === null || body === void 0 ? void 0 : body.match(/(https?:\/\/[^\s]+)/g))
703
+ let resolvedGroupcastId = groupcastId;
704
+ if (isGroupcastDraftId(groupcastId) && this.ensureGroupcastReady) {
705
+ try {
706
+ resolvedGroupcastId = await this.ensureGroupcastReady();
707
+ this.groupcastId = resolvedGroupcastId;
708
+ }
709
+ catch (err) {
710
+ console.error(err);
711
+ showToast({
712
+ message: (err === null || err === void 0 ? void 0 : err.message) || 'Could not create groupcast',
713
+ type: 'error',
714
+ position: 'bottom-right',
715
+ });
716
+ this.changeMessageSendingState(false);
717
+ return;
718
+ }
719
+ }
720
+ const payloadForGroupcastMessage = withHostMessagePushFields(Object.assign({ showInConversation: true, sendPushForNewConversationCreated: true, searchableTags: this.generateSearchableTags(body), metaData: this.getReplyMetadata(), body: body, groupcastId: resolvedGroupcastId, readCount: 1, notifyOnCompletion: true, messageType: this.replyMessage ? 2 : 0, hideNewConversationsForSender: true, encrypted: true, deviceId: this.deviceId, deliveryCount: 1, customType: (body === null || body === void 0 ? void 0 : body.match(/(https?:\/\/[^\s]+)/g))
702
721
  ? 'AttachmentMessage:Link'
703
722
  : 'AttachmentMessage:Text' }, (mentionedUsers.length > 0 && { mentionedUsers })), pushContext, this.el);
704
723
  try {
@@ -919,7 +938,23 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
919
938
  deviceId: this.deviceId,
920
939
  metaData: this.getReplyMetadata(),
921
940
  }, pushContext, this.el);
922
- let payloadForGroupcastMessage = withHostMessagePushFields(Object.assign(Object.assign({}, payload), { hideNewConversationsForSender: false, groupcastId: this.groupcastId, notifyOnCompletion: true, sendPushForNewConversationCreated: true }), pushContext, this.el);
941
+ let resolvedGroupcastId = this.groupcastId;
942
+ if (this.isGroupcast && isGroupcastDraftId(String(resolvedGroupcastId)) && this.ensureGroupcastReady) {
943
+ try {
944
+ resolvedGroupcastId = await this.ensureGroupcastReady();
945
+ this.groupcastId = resolvedGroupcastId;
946
+ }
947
+ catch (err) {
948
+ console.error(err);
949
+ showToast({
950
+ message: (err === null || err === void 0 ? void 0 : err.message) || 'Could not create groupcast',
951
+ type: 'error',
952
+ position: 'bottom-right',
953
+ });
954
+ return;
955
+ }
956
+ }
957
+ let payloadForGroupcastMessage = withHostMessagePushFields(Object.assign(Object.assign({}, payload), { hideNewConversationsForSender: false, groupcastId: resolvedGroupcastId, notifyOnCompletion: true, sendPushForNewConversationCreated: true }), pushContext, this.el);
923
958
  const mentionedUsers = this.mentionedUsersForApi(caption);
924
959
  if (mentionedUsers.length > 0) {
925
960
  payload['mentionedUsers'] = mentionedUsers;
@@ -985,7 +1020,7 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
985
1020
  const webChat = findWebChatHost(this.el);
986
1021
  const hasCustomReply = (webChat ? hasNamedSlot(webChat, 'reply-preview') : false) || hasNamedSlot(this.el, 'reply-preview');
987
1022
  const showAttachment = this.attachmentDetails || this.showCamera;
988
- return (h(Host, { key: '2027c6442c93f1edefb0ef6fae8e12396a637ae3', class: { 'attachment-open': !!showAttachment } }, h("div", { key: '80681229f6adff5168ccb2c331ba4323f7907143', class: "chat-footer-container" }, showAttachment ? (h("slot", { name: "attachment-preview" }, h("attachment-preview", { showCamera: this.showCamera, onClose: this.handleClearAttachment, width: "150px", height: "150px", bgColor: "var(--bg-primary-light)", padding: "3px", margin: "10px 0 0 0", contentType: contentType, content: this.mediaPreviews, onSend: this.handleSendMessage, "onfile-uploaded": this.handleFileUpload, "onattachment-removed": this.handleRemoveAttachment, "oncamera-retake": this.handleCameraRetake, key: this.inputKey, inputValue: this.messageBody, "oninput-change": this.handleInputChange, backgroundColor: "var(--bg-primary-color)", containerBoxShadow: "none", inputFontColor: "var(--text-primary-color)", inputBorderRadius: "10px", conversationDetails: this.conversationDetails, userMetaData: this.userMetaData }))) : (h(Fragment, null, hasCustomReply ? h("slot", { name: "reply-preview" }) : null, h("slot", { name: "composer-input" }, !hasCustomReply && this.replyMessage ? (h("reply-block", { messageBody: (_a = this.replyMessage) === null || _a === void 0 ? void 0 : _a.body, messageInfo: this.replyMessage, senderName: ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) === ((_d = (_c = this.replyMessage) === null || _c === void 0 ? void 0 : _c.senderInfo) === null || _d === void 0 ? void 0 : _d.userId)
1023
+ return (h(Host, { key: '3523142e7c942228bda8f3ff08ab160d3ab29350', class: { 'attachment-open': !!showAttachment } }, h("div", { key: '4127452ec1c81f7ccd83070f04b22be1b7a14f4b', class: "chat-footer-container" }, showAttachment ? (h("slot", { name: "attachment-preview" }, h("attachment-preview", { showCamera: this.showCamera, onClose: this.handleClearAttachment, width: "150px", height: "150px", bgColor: "var(--bg-primary-light)", padding: "3px", margin: "10px 0 0 0", contentType: contentType, content: this.mediaPreviews, onSend: this.handleSendMessage, "onfile-uploaded": this.handleFileUpload, "onattachment-removed": this.handleRemoveAttachment, "oncamera-retake": this.handleCameraRetake, key: this.inputKey, inputValue: this.messageBody, "oninput-change": this.handleInputChange, backgroundColor: "var(--bg-primary-color)", containerBoxShadow: "none", inputFontColor: "var(--text-primary-color)", inputBorderRadius: "10px", conversationDetails: this.conversationDetails, userMetaData: this.userMetaData }))) : (h(Fragment, null, hasCustomReply ? h("slot", { name: "reply-preview" }) : null, h("slot", { name: "composer-input" }, !hasCustomReply && this.replyMessage ? (h("reply-block", { messageBody: (_a = this.replyMessage) === null || _a === void 0 ? void 0 : _a.body, messageInfo: this.replyMessage, senderName: ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) === ((_d = (_c = this.replyMessage) === null || _c === void 0 ? void 0 : _c.senderInfo) === null || _d === void 0 ? void 0 : _d.userId)
989
1024
  ? 'You'
990
1025
  : (_f = (_e = this.replyMessage) === null || _e === void 0 ? void 0 : _e.senderInfo) === null || _f === void 0 ? void 0 : _f.userName, onIconClick: this.handleremoveReplyMessage })) : null, h("div", { class: "composer-wrap", key: this.inputKey, ref: el => (this.composerWrapRef = el) }, this.showEmojiPicker ? (h("div", { class: "emoji-panel", style: this.emojiPanelStyle }, h("div", { class: "emoji-panel-header" }, h("span", null, "Emoji"), h("button", { class: "emoji-panel-close", type: "button", "aria-label": "Close", onClick: this.handleEmojiToggle }, "\u00D7")), h("emoji-picker", { class: "emoji-picker light", ref: this.bindEmojiPicker }))) : null, h("div", { class: { composer: true, recording: this.isRecording } }, this.isRecording ? (h("div", { class: "rec-body" }, h("div", { class: "rec-left" }, h("button", { class: "rec-icon-btn danger", type: "button", title: "Delete recording", "aria-label": "Delete recording", onClick: this.handleRecDelete }, h("img", { class: "theme-icon", src: Delete, alt: "" })), h("div", { class: "rec-timer-wrap" }, h("span", { class: { 'rec-dot': true, live: !this.isPaused } }), h("span", { class: "rec-timer" }, this.formatRecTime(this.recordingSeconds)))), h("div", { class: "rec-wave" }, h("audio-bubble", { liveRecord: true, audioProgressColor: "#2563eb", audioWaveColor: "#2563eb", ref: el => (this.recBubble = el), onRecordingProgress: this.onRecordingProgress, onRecordingError: this.onRecordingError })), h("button", { class: { 'rec-icon-btn': true, 'rec-toggle': true, pause: !this.isPaused }, type: "button", title: this.isPaused ? 'Resume recording' : 'Pause recording', "aria-label": this.isPaused ? 'Resume recording' : 'Pause recording', onClick: this.handleRecPauseToggle }, h("img", { class: "theme-icon", src: this.isPaused ? PlayIcon : PauseIcon, alt: "" })), h("button", { class: "rec-send", type: "button", title: "Send voice note", "aria-label": "Send voice note", onClick: this.handleRecSend }, h("img", { src: Send, alt: "" })))) : (h(Fragment, null, h("div", { class: "attach-wrap" }, h("button", { class: "icon-btn", type: "button", title: "Attach file", "aria-label": "Attach", onClick: this.handleAttachClick }, h("img", { src: Attachment, alt: "" })), this.showAttachMenu ? (h("div", { class: "attach-menu", style: this.attachMenuStyle }, h("button", { class: "attach-opt", type: "button", onClick: this.pickDocument }, h("span", { class: "attach-opt-icon attach-opt-icon--doc" }, h("img", { src: DocumentsIcon, alt: "" })), h("span", null, "Document")), h("button", { class: "attach-opt", type: "button", onClick: this.pickPhotos }, h("span", { class: "attach-opt-icon attach-opt-icon--photos" }, h("img", { class: "theme-icon", src: PhotosIcon, alt: "" })), h("span", null, "Photos & videos")), h("button", { class: "attach-opt", type: "button", onClick: this.pickCamera }, h("span", { class: "attach-opt-icon attach-opt-icon--camera" }, h("img", { class: "theme-icon", src: CameraIcon, alt: "" })), h("span", null, "Camera")))) : null), h("button", { class: "icon-btn", type: "button", title: "Emojis", "aria-label": "Emojis", onClick: this.handleEmojiToggle }, h("img", { src: Smile, alt: "" })), h("input", { class: "file-input", type: "file", multiple: true, accept: ".jpg,.jpeg,.png,.gif,.webp,.bmp,.heic,.mp4,.mov,.webm,.mkv,.mp3,.wav,.m4a,.aac,.ogg", ref: el => (this.mediaInputRef = el), onChange: this.handleNativeFileChange }), h("input", { class: "file-input", type: "file", multiple: true, accept: ".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.csv,.rtf,application/*", ref: el => (this.docInputRef = el), onChange: this.handleNativeFileChange }), h("textarea", { class: "composer-input", rows: 1, placeholder: "Type a message", value: this.messageBody, ref: el => (this.inputRef = el), onInput: this.handleComposerInput, onKeyDown: this.handleComposerKeyDown, onPaste: this.handleComposerPaste }), this.messageBody.trim() ? (h("button", { class: "icon-btn", type: "button", title: "Send", "aria-label": "Send", onClick: this.handleSendMessage }, h("img", { src: Send, alt: "" }))) : (h("button", { class: "icon-btn", type: "button", title: "Voice note", "aria-label": "Voice note", onClick: this.handleMicClick }, h("img", { src: Microphone, alt: "" })))))))))))));
991
1026
  }
@@ -1010,6 +1045,7 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
1010
1045
  "conversationDetails": [1040],
1011
1046
  "allConversationList": [1032, "all-conversation-list"],
1012
1047
  "updateConversationListProp": [16],
1048
+ "ensureGroupcastReady": [16],
1013
1049
  "messageBody": [32],
1014
1050
  "attachmentDetails": [32],
1015
1051
  "deviceId": [32],