isometrik-plugin-chat-sdk 2.0.18 → 2.0.19

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/{client-80851676.js → client-fef5fd3d.js} +29 -1
  2. package/dist/cjs/client-fef5fd3d.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +1 -1
  4. package/dist/cjs/login-page_3.cjs.entry.js +37 -11
  5. package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
  6. package/dist/collection/components/my-component/web-chat/data-fetch.js +9 -3
  7. package/dist/collection/components/my-component/web-chat/data-fetch.js.map +1 -1
  8. package/dist/collection/components/my-component/web-chat/mutations.js +7 -2
  9. package/dist/collection/components/my-component/web-chat/mutations.js.map +1 -1
  10. package/dist/collection/components/my-component/web-chat/offline-host.js +21 -5
  11. package/dist/collection/components/my-component/web-chat/offline-host.js.map +1 -1
  12. package/dist/collection/lib/offline/client.js +11 -0
  13. package/dist/collection/lib/offline/client.js.map +1 -1
  14. package/dist/collection/lib/offline/idb.js +11 -0
  15. package/dist/collection/lib/offline/idb.js.map +1 -1
  16. package/dist/collection/lib/offline/memory-db.js +6 -0
  17. package/dist/collection/lib/offline/memory-db.js.map +1 -1
  18. package/dist/components/WebChat.js +36 -10
  19. package/dist/components/WebChat.js.map +1 -1
  20. package/dist/components/client.js +28 -0
  21. package/dist/components/client.js.map +1 -1
  22. package/dist/esm/{client-4a3e00da.js → client-de7fbead.js} +29 -1
  23. package/dist/esm/client-de7fbead.js.map +1 -0
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/login-page_3.entry.js +37 -11
  26. package/dist/esm/login-page_3.entry.js.map +1 -1
  27. package/dist/isometrik-webchat/index.esm.js +1 -1
  28. package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
  29. package/dist/isometrik-webchat/p-f0d4687f.js +2 -0
  30. package/dist/isometrik-webchat/p-f0d4687f.js.map +1 -0
  31. package/dist/isometrik-webchat/p-fc3fd090.entry.js +2 -0
  32. package/dist/isometrik-webchat/p-fc3fd090.entry.js.map +1 -0
  33. package/dist/types/components/my-component/web-chat/offline-host.d.ts +2 -0
  34. package/dist/types/lib/offline/client.d.ts +2 -0
  35. package/dist/types/lib/offline/idb.d.ts +2 -0
  36. package/dist/types/lib/offline/memory-db.d.ts +1 -0
  37. package/package.json +1 -1
  38. package/dist/cjs/client-80851676.js.map +0 -1
  39. package/dist/esm/client-4a3e00da.js.map +0 -1
  40. package/dist/isometrik-webchat/p-ae168135.js +0 -2
  41. package/dist/isometrik-webchat/p-ae168135.js.map +0 -1
  42. package/dist/isometrik-webchat/p-ceb08a13.entry.js +0 -2
  43. package/dist/isometrik-webchat/p-ceb08a13.entry.js.map +0 -1
@@ -1,2 +1,2 @@
1
- export{W as WEB_CHAT_SLOTS,a as applyCustomPartProps,f as findWebChatHost}from"./p-54267fe0.js";export{f as format}from"./p-b07dd267.js";import{i as C,d as S,b as E,k as _,s as I,g as P,t as H}from"./p-6fc95e0e.js";export{W as WEB_CHAT_PUBLIC_EVENTS,l as WEB_CHAT_PUBLIC_METHODS,g as applyCustomTheme,n as buildWebchatSessionKey,v as clearWebChatSlot,w as createSlotHost,c as createWebChatApi,k as customChatSidebar,f as defineReactCustomPart,p as destroyChat,d as destroyIsometrikWebchat,e as ensureIsometrikWebchat,y as getChatStore,o as initializeChat,i as initializeIsometrikWebchat,b as isometrikWebchatApi,m as mountReactInSlot,a as releaseIsometrikWebchat,h as resolveThemeProvider,j as resolveWebChat,r as retainIsometrikWebchat,q as setWebChatSlot,x as setWebChatSlots,s as switchChatTheme,t as toggleTheme,u as unmountReactSlot}from"./p-6fc95e0e.js";export{d as deriveMessageStatus}from"./p-adc45831.js";export{T as THEME_TOKEN_NAMES,g as applyThemeObjectToElement,n as normalizeThemeObject,j as resolveProfileRailMode,h as resolveRegionMode,r as resolveShowProfileRailProp}from"./p-c08055fe.js";export{c as canUseIndexedDb,g as getOfflineClient,i as isBrowserOnline,m as mergeMessagesById}from"./p-ae168135.js";import"./p-5162774c.js";import"./p-643457b8.js";import"./p-343f50b4.js";import"./p-5b965e04.js";import"./p-7fd2c1ad.js";import"./p-4671fe73.js";function M(e,s,t){if(typeof customElements==="undefined"||customElements.get(e))return;class a extends HTMLElement{connectedCallback(){t(this)}}s.forEach((e=>{const s=`_${e}`;Object.defineProperty(a.prototype,e,{get(){return this[s]},set(e){if(this[s]===e)return;this[s]=e;if(this.isConnected)t(this)},configurable:true})}));a.prototype.render=function e(){t(this)};customElements.define(e,a)}if(typeof window!=="undefined"){window.initializeIsometrikWebchat=C;window.destroyIsometrikWebchat=S;window.initializeChat=C;window.destroyChat=S;window.isometrikWebchatApi=E;window.chatSidebarProps=_;window.switchChatTheme=I;window.applyCustomTheme=P;window.toggleTheme=H}export{M as defineReactiveCustomPart};
1
+ export{W as WEB_CHAT_SLOTS,a as applyCustomPartProps,f as findWebChatHost}from"./p-54267fe0.js";export{f as format}from"./p-b07dd267.js";import{i as C,d as S,b as E,k as _,s as I,g as P,t as H}from"./p-6fc95e0e.js";export{W as WEB_CHAT_PUBLIC_EVENTS,l as WEB_CHAT_PUBLIC_METHODS,g as applyCustomTheme,n as buildWebchatSessionKey,v as clearWebChatSlot,w as createSlotHost,c as createWebChatApi,k as customChatSidebar,f as defineReactCustomPart,p as destroyChat,d as destroyIsometrikWebchat,e as ensureIsometrikWebchat,y as getChatStore,o as initializeChat,i as initializeIsometrikWebchat,b as isometrikWebchatApi,m as mountReactInSlot,a as releaseIsometrikWebchat,h as resolveThemeProvider,j as resolveWebChat,r as retainIsometrikWebchat,q as setWebChatSlot,x as setWebChatSlots,s as switchChatTheme,t as toggleTheme,u as unmountReactSlot}from"./p-6fc95e0e.js";export{d as deriveMessageStatus}from"./p-adc45831.js";export{T as THEME_TOKEN_NAMES,g as applyThemeObjectToElement,n as normalizeThemeObject,j as resolveProfileRailMode,h as resolveRegionMode,r as resolveShowProfileRailProp}from"./p-c08055fe.js";export{c as canUseIndexedDb,g as getOfflineClient,i as isBrowserOnline,m as mergeMessagesById}from"./p-f0d4687f.js";import"./p-5162774c.js";import"./p-643457b8.js";import"./p-343f50b4.js";import"./p-5b965e04.js";import"./p-7fd2c1ad.js";import"./p-4671fe73.js";function M(e,s,t){if(typeof customElements==="undefined"||customElements.get(e))return;class a extends HTMLElement{connectedCallback(){t(this)}}s.forEach((e=>{const s=`_${e}`;Object.defineProperty(a.prototype,e,{get(){return this[s]},set(e){if(this[s]===e)return;this[s]=e;if(this.isConnected)t(this)},configurable:true})}));a.prototype.render=function e(){t(this)};customElements.define(e,a)}if(typeof window!=="undefined"){window.initializeIsometrikWebchat=C;window.destroyIsometrikWebchat=S;window.initializeChat=C;window.destroyChat=S;window.isometrikWebchatApi=E;window.chatSidebarProps=_;window.switchChatTheme=I;window.applyCustomTheme=P;window.toggleTheme=H}export{M as defineReactiveCustomPart};
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,B as o,c as a,d as t,N as i,H as r,b as n}from"./p-17a96a2a.js";export{s as setNonce}from"./p-17a96a2a.js";import{g as l}from"./p-1db79cfb.js";import"./p-6fc95e0e.js";import"./p-5162774c.js";import"./p-c08055fe.js";import"./p-343f50b4.js";import"./p-54267fe0.js";import"./p-7fd2c1ad.js";import"./p-4671fe73.js";import"./p-643457b8.js";import"./p-5b965e04.js";var d=()=>{if(o.isDev&&!o.isTesting){a("Running in development mode.")}if(o.cloneNodeFix){c(r.prototype)}const s=o.scriptDataOpts?Array.from(t.querySelectorAll("script")).find((e=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===i)):null;const n=import.meta.url;const l=o.scriptDataOpts?(s||{})["data-opts"]||{}:{};if(n!==""){l.resourcesUrl=new URL(".",n).href}return e(l)};var c=e=>{const o=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return o.call(this,e)}const a=o.call(this,false);const t=this.childNodes;if(e){for(let e=0;e<t.length;e++){if(t[e].nodeType!==2){a.appendChild(t[e].cloneNode(true))}}}return a}};d().then((async e=>{await l();return n(JSON.parse('[["p-161fcb35",[[4,"chat-app",{"themePath":[1,"theme-path"],"mode":[1537],"themeObject":[16],"isLoggedIn":[32],"userToken":[32],"userId":[32],"demoCustomUi":[32],"changeTheme":[64],"toggleTheme":[64]}]]],["p-39b626ed",[[1,"new-chat-sidebar",{"label":[1],"closeNewChatSidebar":[16],"nonBlockedContacts":[16],"isNoContactsFound":[4,"is-no-contacts-found"],"isPaginationMember":[4,"is-pagination-member"],"isLoadingMember":[4,"is-loading-member"],"hasMoreMembers":[4,"has-more-members"],"showGroupChatContacts":[32],"showGroupCastContacts":[32],"searchText":[32]}]]],["p-2e9974e1",[[1,"chat-document-message-bubble"]]],["p-ad02a8ca",[[1,"chat-image-message-bubble"]]],["p-c83e2d5d",[[1,"chat-video-message-bubble"]]],["p-ffbbe278",[[1,"forward-memebers",{"dialogData":[8,"dialog-data"],"onClose":[16],"nonBlockedContacts":[32],"skip":[32],"isNoContactsFound":[32],"hasMore":[32],"isLoading":[32],"paginationLoading":[32],"searchText":[32],"selected":[32]}]]],["p-c49de274",[[1,"member-add",{"dialogData":[8,"dialog-data"],"onClose":[16],"eligibleMembers":[32],"membersListSkip":[32],"hasMore":[32],"isLoading":[32],"paginationLoading":[32],"searchText":[32],"selectedMembers":[32]}]]],["p-7b25f234",[[1,"admin-transfer-dialog",{"dialogData":[16],"onClose":[16],"isMobile":[4,"is-mobile"]}]]],["p-52a575c0",[[1,"media-gallery",{"allAttachments":[16],"mainImageIndex":[1026,"main-image-index"],"topbarBgColor":[8,"topbar-bg-color"],"iconColor":[8,"icon-color"],"galleryImageSize":[8,"gallery-image-size"],"isZoomed":[8,"is-zoomed"],"loadingMediaGallery":[4,"loading-media-gallery"],"zoomLevel":[1026,"zoom-level"],"isSharePopupOpen":[8,"is-share-popup-open"],"shareLink":[8,"share-link"],"index":[32]}]]],["p-2cf296e6",[[1,"confirm-dialog",{"dialogData":[8,"dialog-data"],"onClose":[16],"isMobile":[4,"is-mobile"]}]]],["p-3664e0ad",[[1,"delete-message",{"dialogData":[8,"dialog-data"],"onClose":[16],"isMobile":[4,"is-mobile"]}]]],["p-0ccfbe90",[[1,"forward-message",{"bgColor":[8,"bg-color"],"width":[8],"height":[8],"borderWidth":[8,"border-width"],"borderColor":[8,"border-color"],"color":[8],"fontSize":[8,"font-size"],"borderRadius":[8,"border-radius"],"fontWeight":[8,"font-weight"],"progressBarBg":[8,"progress-bar-bg"],"progressBarHeight":[8,"progress-bar-height"],"progressBarColor":[8,"progress-bar-color"],"progressBarBorderRadius":[8,"progress-bar-border-radius"],"messageBody":[8,"message-body"],"padding":[8],"isRead":[8,"is-read"],"isDelivered":[8,"is-delivered"],"time":[8],"messageBodyBg":[8,"message-body-bg"],"messageAttachment":[8,"message-attachment"],"isSelf":[8,"is-self"],"messageId":[8,"message-id"],"reactions":[8],"showConfirmationPopup":[8,"show-confirmation-popup"],"selectedEmojiToRemove":[8,"selected-emoji-to-remove"],"showAllReactionsPopup":[8,"show-all-reactions-popup"],"showReactionButton":[8,"show-reaction-button"],"showEmojiReactions":[8,"show-emoji-reactions"],"userMetaData":[8,"user-meta-data"]}]]],["p-48ce4dca",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["p-5d1877d1",[[1,"reaction-container",{"messageId":[1,"message-id"],"userMetaData":[8,"user-meta-data"],"reactions":[16],"reactionUsers":[32],"selectedEmojiId":[32]}]]],["p-e48a1217",[[1,"share-popup",{"dialogData":[8,"dialog-data"],"onClose":[16],"isMobile":[4,"is-mobile"],"copied":[32]}]]],["p-08ba6153",[[1,"signup-page",{"username":[32],"email":[32],"password":[32],"errorMessage":[32],"isLoading":[32],"profileImageUrl":[32]}]]],["p-925da2c0",[[1,"toast-notification",{"bgColor":[1,"bg-color"],"width":[1],"height":[1],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"color":[1],"fontSize":[1,"font-size"],"borderRadius":[1,"border-radius"],"fontWeight":[1,"font-weight"],"progressBarBg":[1,"progress-bar-bg"],"progressBarHeight":[1,"progress-bar-height"],"progressBarColor":[1,"progress-bar-color"],"progressBarBorderRadius":[1,"progress-bar-border-radius"],"toastMessage":[1,"toast-message"],"padding":[1]}]]],["p-d8b65cf4",[[1,"message-bubble",{"isSelf":[4,"is-self"],"time":[1],"timeColor":[1,"time-color"],"isRead":[4,"is-read"],"isDelivered":[8,"is-delivered"],"deliveryStatus":[1,"delivery-status"],"reactions":[16],"messageId":[1,"message-id"],"userMetaData":[8,"user-meta-data"],"showReactionOnHover":[4,"show-reaction-on-hover"],"isForwarded":[4,"is-forwarded"],"backgroundColor":[1,"background-color"],"borderRadius":[1,"border-radius"],"padding":[1],"showReactionButton":[32],"showEmojiPicker":[32]}]]],["p-1eecc7c5",[[1,"link-preview",{"url":[1],"isRead":[4,"is-read"],"isDelivered":[1,"is-delivered"],"time":[1],"textColor":[1,"text-color"],"message":[1],"backgroundColor":[1,"background-color"],"isSelf":[4,"is-self"],"mentionedUsers":[16],"preview":[8],"isMessageInfo":[4,"is-message-info"],"isShowFooter":[4,"is-show-footer"],"showReactionButton":[4,"show-reaction-button"],"showEmojiReactions":[4,"show-emoji-reactions"],"messageId":[1,"message-id"],"reactions":[16],"showConfirmationPopup":[4,"show-confirmation-popup"],"selectedEmojiToRemove":[8,"selected-emoji-to-remove"],"showAllReactionsPopup":[4,"show-all-reactions-popup"],"userMetaData":[8,"user-meta-data"],"messageType":[2,"message-type"],"timeColor":[1,"time-color"],"showReactionOnHover":[4,"show-reaction-on-hover"]}]]],["p-c5bff6a1",[[1,"profile-avatar",{"src":[1],"name":[1],"alt":[1],"size":[1],"radius":[1],"isGroup":[4,"is-group"],"failed":[32]},null,{"src":["onSrcChange"]}]]],["p-fd6ce589",[[1,"searchable-list",{"bgColor":[8,"bg-color"],"padding":[8],"height":[8],"width":[8],"label":[8],"hideTopbar":[4,"hide-topbar"],"fontFamily":[8,"font-family"],"textColor":[8,"text-color"],"fontSize":[8,"font-size"],"selectedContacts":[1040],"contactList":[16],"conversationList":[16],"isSearching":[4,"is-searching"],"getForwardMessageMemberList":[8,"get-forward-message-member-list"],"onSend":[8,"on-send"],"isLoading":[4,"is-loading"],"paginationLoading":[4,"pagination-loading"],"hasMore":[4,"has-more"],"skip":[2],"searchText":[32],"selectedIds":[32]}],[1,"chat-tile",{"imageSrc":[1,"image-src"],"imageAlt":[1,"image-alt"],"imageHeight":[1,"image-height"],"imageWidth":[1,"image-width"],"imageRadius":[1,"image-radius"],"imageFillColor":[1,"image-fill-color"],"imageTextColor":[1,"image-text-color"],"username":[1],"userNameColor":[1,"user-name-color"],"userNameFontFamily":[1,"user-name-font-family"],"userNameFontWeight":[1,"user-name-font-weight"],"usernameFontSize":[1,"username-font-size"],"usernameFontStyle":[1,"username-font-style"],"chatPreview":[1,"chat-preview"],"chatPreviewColor":[1,"chat-preview-color"],"chatPreviewFontFamily":[1,"chat-preview-font-family"],"chatPreviewFontWeight":[1,"chat-preview-font-weight"],"chatPreviewFontSize":[1,"chat-preview-font-size"],"chatPreviewFontStyle":[1,"chat-preview-font-style"],"unreadCount":[2,"unread-count"],"unreadCountColor":[1,"unread-count-color"],"unreadCountFontSize":[1,"unread-count-font-size"],"unreadCountBgColor":[1,"unread-count-bg-color"],"unreadCountBorderRadius":[1,"unread-count-border-radius"],"unreadCountWidth":[1,"unread-count-width"],"unreadCountHeight":[1,"unread-count-height"],"messageDate":[1,"message-date"],"messageDateColor":[1,"message-date-color"],"messageDateFontFamily":[1,"message-date-font-family"],"messageDateFontWeight":[1,"message-date-font-weight"],"messageDateFontSize":[1,"message-date-font-size"],"messageDateFontStyle":[1,"message-date-font-style"],"padding":[1],"usernamePadding":[1,"username-padding"],"chatPreviewPadding":[1,"chat-preview-padding"],"messageDatePadding":[1,"message-date-padding"],"bgColor":[1,"bg-color"],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"height":[1],"width":[1],"isSelected":[4,"is-selected"],"sidebarSelectedColor":[1,"sidebar-selected-color"],"suffix":[1],"suffixColor":[1,"suffix-color"],"suffixBgColor":[1,"suffix-bg-color"],"gap":[1],"isTyping":[4,"is-typing"],"typingUserName":[1,"typing-user-name"],"isRead":[4,"is-read"],"isPending":[4,"is-pending"],"isDelivered":[1,"is-delivered"],"isSelfMessage":[4,"is-self-message"],"mediaType":[2,"media-type"],"mediaLabel":[1,"media-label"],"isGroup":[4,"is-group"],"conversationId":[1,"conversation-id"],"onClick":[16],"onContextmenu":[16],"title":[1],"subtitle":[1],"time":[1],"menuOpen":[32],"menuPos":[32]},[[4,"click","onDocClick"]]],[1,"iso-group-info",{"label":[1],"selectedUserIds":[16],"selectedUsers":[16],"isGroupCast":[4,"is-group-cast"],"closeGroupInfo":[16],"afterCreate":[16],"groupTitle":[32],"imageSrc":[32],"imageFile":[32]}]]],["p-d892b4d4",[[1,"group-chat-contacts",{"label":[1],"closeGroupChatContacts":[16],"nonBlockedContacts":[1040],"isNoContactsFound":[4,"is-no-contacts-found"],"isPaginationMember":[4,"is-pagination-member"],"isLoadingMember":[4,"is-loading-member"],"hasMoreMembers":[4,"has-more-members"],"onCloseAll":[16],"isGroupCast":[4,"is-group-cast"],"selectedContacts":[32],"showGroupInfo":[32],"searchText":[32]}]]],["p-3120b9d3",[[1,"document-message",{"bgColor":[1,"bg-color"],"borderRadius":[1,"border-radius"],"padding":[1],"docName":[1,"doc-name"],"width":[1],"height":[1],"documentNameBg":[1,"document-name-bg"],"documentNamePadding":[1,"document-name-padding"],"time":[1],"href":[1],"fileName":[1,"file-name"],"isRead":[4,"is-read"],"isSelf":[4,"is-self"],"isDelivered":[1,"is-delivered"],"deliveryStatus":[1,"delivery-status"],"docType":[1,"doc-type"],"textColor":[1,"text-color"],"message":[1],"mentionedUsers":[16],"messageId":[1,"message-id"],"reactions":[16],"userMetaData":[8,"user-meta-data"],"messageType":[2,"message-type"],"timeColor":[1,"time-color"],"showReactionOnHover":[4,"show-reaction-on-hover"],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"showPdfPreview":[32]}],[1,"image-message",{"bgColor":[1,"bg-color"],"borderRadius":[1,"border-radius"],"padding":[1],"imageSrc":[1,"image-src"],"message":[1],"height":[1],"width":[1],"time":[1],"isRead":[4,"is-read"],"isSelf":[4,"is-self"],"isDelivered":[1,"is-delivered"],"deliveryStatus":[1,"delivery-status"],"textColor":[1,"text-color"],"allAttachments":[16],"isMediaGalleryOpen":[4,"is-media-gallery-open"],"onImageClick":[16],"mentionedUsers":[16],"totalMedia":[2,"total-media"],"mediaType":[2,"media-type"],"loadingMediaGallery":[4,"loading-media-gallery"],"messageId":[1,"message-id"],"reactions":[16],"userMetaData":[8,"user-meta-data"],"messageType":[2,"message-type"],"timeColor":[1,"time-color"],"showReactionOnHover":[4,"show-reaction-on-hover"],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"galleryOpen":[32]}],[1,"video-message",{"bgColor":[1,"bg-color"],"borderRadius":[1,"border-radius"],"padding":[1],"videoSrc":[1,"video-src"],"poster":[1],"videoType":[1,"video-type"],"time":[1],"height":[1],"width":[1],"playing":[4],"isRead":[4,"is-read"],"isSelf":[4,"is-self"],"isDelivered":[1,"is-delivered"],"deliveryStatus":[1,"delivery-status"],"textColor":[1,"text-color"],"message":[1],"mentionedUsers":[16],"messageId":[1,"message-id"],"reactions":[16],"userMetaData":[8,"user-meta-data"],"messageType":[2,"message-type"],"timeColor":[1,"time-color"],"showReactionOnHover":[4,"show-reaction-on-hover"],"type":[1],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"isPlaying":[32]}],[1,"audio-bubble",{"audioUrl":[1,"audio-url"],"audioWaveColor":[1,"audio-wave-color"],"audioProgressColor":[1,"audio-progress-color"],"textColor":[1,"text-color"],"isSelf":[4,"is-self"],"borderRadius":[1,"border-radius"],"bgColor":[1,"bg-color"],"time":[1],"isRead":[16],"isDelivered":[16],"showFooter":[16],"messageId":[16],"timeColor":[16],"reactions":[8],"messageType":[2,"message-type"],"liveRecord":[4,"live-record"],"isPlaying":[32],"audioDuration":[32],"currentAudioId":[32],"waveformContainerReady":[32],"initializationAttempts":[32],"startLiveRecording":[64],"pauseLiveRecording":[64],"resumeLiveRecording":[64],"stopLiveRecording":[64],"cancelLiveRecording":[64]},null,{"audioUrl":["chatChanged"]}]]],["p-cbb1179b",[[1,"spinner-loader",{"height":[1],"width":[1],"spinTime":[1,"spin-time"],"spinnerPrimaryColor":[1,"spinner-primary-color"],"spinnerSecondaryColor":[1,"spinner-secondary-color"],"spinnerBorderWidth":[1,"spinner-border-width"]}]]],["p-a9380fb3",[[1,"web-chat-body",{"skip":[2],"allMessages":[8,"all-messages"],"userMetaData":[8,"user-meta-data"],"isMessagesLoading":[4,"is-messages-loading"],"isMessageSending":[4,"is-message-sending"],"isMessageLimitEnd":[4,"is-message-limit-end"],"updateSkip":[16],"isScrollToBottom":[4,"is-scroll-to-bottom"],"isScrollToTop":[4,"is-scroll-to-top"],"deleteForAll":[16],"deleteForSelf":[16],"changeScrollToBottomState":[16],"changeScrollToTopState":[16],"updateAllMessages":[16],"isChatClosed":[4,"is-chat-closed"],"isChatMinimized":[4,"is-chat-minimized"],"selectedConversationId":[1,"selected-conversation-id"],"allAttachments":[8,"all-attachments"],"highlightedMessageId":[1,"highlighted-message-id"],"onMediaClick":[16],"conversationList":[8,"conversation-list"],"conversationDetails":[8,"conversation-details"],"newMessageNotification":[16],"loadingMediaGallery":[4,"loading-media-gallery"],"customParts":[1040],"previousTotalScrollHeight":[32],"deviceId":[32],"scrollTimeout":[32],"isDeletePopupOpen":[32],"isMessageActionOpen":[32],"actionMenuFlipUp":[32],"deletedMessages":[32],"isTabActive":[32],"isForwardPopupOpen":[32],"isSelf":[32],"isReplyBlockOpen":[32],"messageActionPopupElement":[32],"popupRef":[32],"messageInfoOpen":[32],"messagePreviewText":[32],"messageDate":[32],"messageDeliveryTime":[32],"messageReadTime":[32],"showScrollButton":[32],"isScrolling":[32],"unreadMessageCount":[32],"isChatBodyUnscrollable":[32],"virtualStart":[32],"virtualEnd":[32],"selectedMessage":[32],"readUserList":[32],"deliveryUserList":[32],"pendingDeliveryCount":[32],"pendingReadCount":[32],"isLoadingInfo":[32],"scrollToMessage":[64]},null,{"allMessages":["handleDataChange"],"userMetaData":["handleDataChange"],"selectedConversationId":["handleChnageChangeConversationId"]}],[1,"web-chat-right-sidebar",{"conversationMetaData":[8,"conversation-meta-data"],"selectedConversationId":[1,"selected-conversation-id"],"conversationIdFromContactinfo":[1,"conversation-id-from-contactinfo"],"hasMoreEligibleMembers":[4,"has-more-eligible-members"],"isContactInfoOpen":[4,"is-contact-info-open"],"isProfileInfoOpen":[4,"is-profile-info-open"],"eligibleMembers":[16],"allAttachments":[16],"userMetaData":[8,"user-meta-data"],"messageAction":[16],"searchedMessageDetails":[16],"onSearchHandler":[16],"onSearchResultClick":[16],"handleChatSelect":[16],"openOwnProfile":[16],"isOpenSearchBar":[4,"is-open-search-bar"],"isLoadingMessage":[4,"is-loading-message"],"chatBodyRef":[16],"allLinks":[8,"all-links"],"allLinksCount":[2,"all-links-count"],"isBlocked":[8,"is-blocked"],"groupcastMembers":[8,"groupcast-members"],"groupMembers":[32],"isLoading":[32]},[[0,"remove-admin-clicked","handleRemoveAdmin"],[0,"make-admin-clicked","handleMakeAdmin"],[0,"edit-title","handleEditTitle"],[0,"edit-image","handleEditImage"]],{"selectedConversationId":["updateConversation"]}],[1,"chat-side-bar",{"isMqttConnected":[4,"is-mqtt-connected"],"showMqttStatus":[4,"show-mqtt-status"],"conversationList":[8,"conversation-list"],"isChatFilter":[4,"is-chat-filter"],"isAllChatButton":[4,"is-all-chat-button"],"customTypes":[8,"custom-types"],"filterTabsContainer":[8,"filter-tabs-container"],"filterTab":[8,"filter-tab"],"filterTabHover":[8,"filter-tab-hover"],"isSidebarHeaderLabel":[4,"is-sidebar-header-label"],"isSidebarHeaderSearch":[4,"is-sidebar-header-search"],"sidebarHeaderLabel":[1,"sidebar-header-label"],"sidebarColor":[1,"sidebar-color"],"sidebarSelectedColor":[1,"sidebar-selected-color"],"onDeleteConversation":[16],"handleSearchData":[16],"userMetaData":[8,"user-meta-data"],"isTyping":[4,"is-typing"],"typingUserName":[1,"typing-user-name"],"typingConversationId":[1,"typing-conversation-id"],"allMessages":[8,"all-messages"],"isConversationLoading":[16],"hasMoreConversations":[4,"has-more-conversations"],"unreadConversationsCount":[2,"unread-conversations-count"],"customParts":[1040],"groupcastEnabled":[4,"groupcast-enabled"],"conversationDetails":[1032,"conversation-details"],"sortedConversationList":[32],"numberOfConversations":[32],"unreadCounts":[32],"searchQuery":[32],"selectedConversationID":[32],"isLoading":[32],"nonBlockedContacts":[32],"skip":[32],"isNoContactsFound":[32],"isGroupChat":[32],"selectedGroupUserIds":[32],"groupInfo":[32],"isGroupCreationLoading":[32],"displayTitle":[32],"searchTagName":[32],"hasMoreMembers":[32],"isLoadingMember":[32],"isPaginationMember":[32],"showNewChat":[32],"showMemberPicker":[32],"showGroupInfo":[32],"memberPickerIsGroupCast":[32],"pendingGroupMembers":[32],"showMoreMenu":[32]},[[0,"group-contacts-input-changed","handleGroupContactsInputChange"],[0,"new-chat-input-changed","handleNewChatInputChange"],[0,"close-group-member-list","handleCloseGroupMemberList"],[0,"unreadMessageCountUpdated","handleUnreadMessageCountUpdate"],[0,"delete-conversation","handleDeleteConversation"],[0,"chat-tile-menu","handleChatTileMenu"],[0,"new-chat-contact-selected","handleNewChatContactSelected"],[0,"new-chat-clicked","handleNewChatClick"],[4,"click","handleDocumentClick"],[0,"new-chat-tile-list-scrolled-to-bottom","handleNewChatTileListScrolledToBottom"],[0,"group-contacts-scrolled-to-bottom","handleNewChatTileListScrolledToBottom"],[0,"create-group-clicked","handleCreateGroupClick"],[0,"create-groupcast-clicked","handleCreateGroupCastClick"],[0,"group-contacts-selected","handleGroupContactsSelected"],[0,"group-info-submitted","handleGroupInfoSubmitted"],[0,"create-group-submitted","handleGroupSubmitted"],[0,"create-group-cast-submitted","handleGroupSubmitted"],[0,"exit-group","handleExitGroup"],[16,"contact-action","handleContactAction"],[0,"message-read-status-updated","handleMessageReadStatusUpdate"]],{"conversationList":["handleConversationListChange"],"conversationDetails":["handleConversationDetailsChange"]}],[0,"group-cast",{"groupCastData":[16],"isLoadingMore":[4,"is-loading-more"],"userMetaData":[8,"user-meta-data"],"onCreated":[16],"selectedGroupcastId":[32],"contextMenuX":[32],"contextMenuY":[32],"isContextMenuOpen":[32],"selectedTileForMenu":[32],"showMemberPicker":[32],"showGroupInfo":[32],"pendingMembers":[32],"nonBlockedContacts":[32],"skip":[32],"hasMoreMembers":[32],"isLoadingMember":[32],"isPaginationMember":[32],"isCreating":[32]},[[0,"create-group-cast-submitted","handleCreateSubmitted"]]],[1,"chat-footer",{"userMetaData":[8,"user-meta-data"],"refetchMessages":[16],"changeMessageSendingState":[16],"changeScrollToBottomState":[16],"updateAllMessages":[16],"allMessages":[8,"all-messages"],"selectedConversationId":[1,"selected-conversation-id"],"replyMessage":[1032,"reply-message"],"handleremoveReplyMessage":[16],"sortConversationsByLatestMessage":[16],"conversationDetails":[1040],"allConversationList":[1032,"all-conversation-list"],"updateConversationListProp":[16],"messageBody":[32],"attachmentDetails":[32],"deviceId":[32],"mediaPreviews":[32],"inputKey":[32],"showCloseIcon":[32],"mentionUserList":[32],"showCamera":[32],"linkPreview":[32],"linkToPreview":[32],"detectLinks":[32],"isGroupcast":[32],"groupcastId":[32],"showEmojiPicker":[32],"emojiPanelStyle":[32],"attachMenuStyle":[32],"showAttachMenu":[32],"isRecording":[32],"isPaused":[32],"recordingSeconds":[32],"focusInput":[64]},[[0,"mention-user","handleMentionUser"]],{"messageBody":["onMessageBodyChange"],"selectedConversationId":["handleDataChange"],"replyMessage":["replyFocusHandler"]}],[1,"profile-page",{"name":[1025],"profilePhotoUrl":[1025,"profile-photo-url"],"conversationId":[1,"conversation-id"],"getUserDetails":[16],"closeDrawer":[16],"toggleTheme":[16],"defaultTheme":[1,"default-theme"],"isEditingName":[32],"newName":[32],"isLoading":[32],"selectedFile":[32],"tempProfilePhotoUrl":[32],"showBlocked":[32],"getPresignedUrl":[64],"updateUserProfile":[64]},null,{"name":["onNameChange"],"profilePhotoUrl":["onPhotoChange"]}],[1,"web-chat-header",{"conversationDetails":[16],"isTyping":[4,"is-typing"],"onClearConversation":[16],"onConversationCleared":[16],"headerBgColor":[1,"header-bg-color"],"headerUsernameColor":[1,"header-username-color"],"headerSvgColor":[1,"header-svg-color"],"headerLastSeenColor":[1,"header-last-seen-color"],"searchedMessageDetails":[8,"searched-message-details"],"onSearchResultClick":[16],"chatBodyRef":[16],"allAttachments":[8,"all-attachments"],"lastSeen":[1,"last-seen"],"userMetaData":[8,"user-meta-data"],"isLoadingMessage":[16],"messageAction":[16],"hasMoreEligibleMembers":[4,"has-more-eligible-members"],"typingConversationId":[1,"typing-conversation-id"],"isBlocked":[8,"is-blocked"],"onBackButtonClick":[16],"handleCloseChat":[16],"onSearchHandler":[16],"selectedConversationId":[1,"selected-conversation-id"],"eligibleMembers":[16],"typingUserName":[1,"typing-user-name"],"isLoading":[32],"groupMembers":[32],"displayTitle":[32],"displayImageUrl":[32],"menuOpen":[32]},[[4,"click","handleDocumentClick"]],{"conversationDetails":["handleConversationDetailsChange"]}],[1,"message-info",{"padding":[8],"margin":[8],"width":[8],"height":[8],"borderRadius":[8,"border-radius"],"borderWidth":[8,"border-width"],"borderColor":[8,"border-color"],"borderStyle":[8,"border-style"],"backgroundColor":[8,"background-color"],"messageBackgroundColor":[8,"message-background-color"],"statusBackgroundColor":[8,"status-background-color"],"textColor":[8,"text-color"],"fontSize":[8,"font-size"],"fontWeight":[8,"font-weight"],"fontFamily":[8,"font-family"],"fontStyle":[8,"font-style"],"lineHeight":[8,"line-height"],"textAlign":[8,"text-align"],"contactImage":[8,"contact-image"],"contactName":[8,"contact-name"],"contactEmail":[8,"contact-email"],"isGroup":[8,"is-group"],"messageDate":[8,"message-date"],"messagePreviewText":[8,"message-preview-text"],"messageDeliveryTime":[8,"message-delivery-time"],"messageReadTime":[8,"message-read-time"],"pendingReadCount":[8,"pending-read-count"],"pendingDeliveryCount":[8,"pending-delivery-count"],"renderAttachmentMessage":[8,"render-attachment-message"],"selectedMessage":[8,"selected-message"],"onMediaClick":[8,"on-media-click"],"closePopup":[8,"close-popup"],"allAttachments":[8,"all-attachments"],"deliveryUserList":[16],"readUserList":[16]}],[1,"profile-sidebar",{"userMetaData":[8,"user-meta-data"],"openProfile":[8,"open-profile"],"openChat":[8,"open-chat"],"openGroupCast":[8,"open-group-cast"],"toggleTheme":[8,"toggle-theme"],"activeTab":[1,"active-tab"],"defaultTheme":[1,"default-theme"],"unreadConversationsCount":[2,"unread-conversations-count"]}],[1,"chat-loading-placeholder",{"progress":[2],"loadingStatus":[1,"loading-status"]}],[1,"contact-info",{"padding":[8],"margin":[8],"width":[8],"boxShadow":[8,"box-shadow"],"height":[8],"borderRadius":[8,"border-radius"],"borderWidth":[8,"border-width"],"borderColor":[8,"border-color"],"borderStyle":[8,"border-style"],"backgroundColor":[8,"background-color"],"textColor":[8,"text-color"],"fontSize":[8,"font-size"],"fontWeight":[8,"font-weight"],"fontFamily":[8,"font-family"],"fontStyle":[8,"font-style"],"lineHeight":[8,"line-height"],"textAlign":[8,"text-align"],"contactImage":[8,"contact-image"],"contactName":[8,"contact-name"],"contactEmail":[8,"contact-email"],"messageAction":[8,"message-action"],"groupMembers":[16],"allAttachments":[16],"isGroup":[8,"is-group"],"showAllMembers":[8,"show-all-members"],"isPopupOpen":[8,"is-popup-open"],"showMediaList":[8,"show-media-list"],"isImageFullscreen":[8,"is-image-fullscreen"],"showConfirmationPopup":[8,"show-confirmation-popup"],"confirmationAction":[8,"confirmation-action"],"conversationId":[8,"conversation-id"],"oppenentId":[8,"oppenent-id"],"userMetaData":[8,"user-meta-data"],"onEditTitle":[8,"on-edit-title"],"onEditImage":[8,"on-edit-image"],"openOwnProfile":[8,"open-own-profile"],"editedName":[8,"edited-name"],"eligibleMembers":[8,"eligible-members"],"isEligibleMembersPopupOpen":[8,"is-eligible-members-popup-open"],"hasMoreEligibleMembers":[8,"has-more-eligible-members"],"isLoadingMembers":[8,"is-loading-members"],"activeTab":[8,"active-tab"],"docsAttachments":[8,"docs-attachments"],"linksAttachments":[8,"links-attachments"],"allLinks":[8,"all-links"],"allLinksCount":[8,"all-links-count"],"isBlocked":[8,"is-blocked"],"conversationMetaData":[8,"conversation-meta-data"],"isGroupcast":[8,"is-groupcast"],"groupcastId":[8,"groupcast-id"],"groupcastMembers":[8,"groupcast-members"],"closeContactInfo":[8,"close-contact-info"],"mediaListOpen":[32],"mediaTab":[32],"galleryIndex":[32],"mediaItems":[32],"docItems":[32],"previewTry":[32],"memberMenuUserId":[32],"titleEditing":[32],"titleDraft":[32],"imageUploading":[32],"pushNotificationsEnabled":[32],"pushNotificationsSaving":[32]},null,{"allAttachments":["onAttachmentsChange"],"conversationMetaData":["onConversationMetaForPush"],"conversationId":["onConversationMetaForPush","onConversationChange"],"contactImage":["onContactImageChange"]}],[1,"block-chat-list",{"goBack":[16],"blockUsers":[32],"isLoading":[32],"skip":[32],"hasMore":[32],"paginationLoading":[32],"searchTerm":[32]}],[1,"new-chat",{"contactList":[16],"isLoading":[4,"is-loading"],"paginationLoading":[4,"pagination-loading"],"hasMore":[4,"has-more"],"skip":[2],"onSearch":[16],"onSelect":[16],"onClose":[16],"customParts":[16],"groupcastEnabled":[4,"groupcast-enabled"],"searchText":[32]}],[1,"incoming-text-message-bubble",{"bgColor":[1,"bg-color"],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"borderRadius":[1,"border-radius"],"padding":[1],"height":[1],"width":[1],"time":[1],"textContent":[1,"text-content"],"alignSelf":[1,"align-self"],"fontFamily":[1,"font-family"],"color":[1],"mentionedUsers":[16],"reactions":[16],"messageId":[1,"message-id"],"userMetaData":[8,"user-meta-data"],"messageType":[2,"message-type"],"timeColor":[1,"time-color"],"showReactionOnHover":[4,"show-reaction-on-hover"]}],[1,"message-search",{"searchedMessageDetails":[16],"onSearchResultClick":[8,"on-search-result-click"],"onSearchInput":[8,"on-search-input"],"isSearchOpen":[4,"is-search-open"],"isLoadingMessage":[4,"is-loading-message"],"chatBodyRef":[8,"chat-body-ref"],"onSearchHandler":[8,"on-search-handler"],"searchValue":[32]}],[1,"outgoing-text-message-bubble",{"bgColor":[1,"bg-color"],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"borderRadius":[1,"border-radius"],"padding":[1],"height":[1],"width":[1],"time":[1],"textContent":[1,"text-content"],"alignSelf":[1,"align-self"],"isRead":[4,"is-read"],"isDelivered":[1,"is-delivered"],"deliveryStatus":[1,"delivery-status"],"textColor":[1,"text-color"],"mentionedUsers":[16],"messageType":[2,"message-type"],"timeColor":[1,"time-color"],"reactions":[16],"messageId":[1,"message-id"],"userMetaData":[8,"user-meta-data"],"fontFamily":[1,"font-family"]}],[1,"reply-message-container",{"color":[1],"fontSize":[1,"font-size"],"textAlign":[1,"text-align"],"fontWeight":[1,"font-weight"],"fontStyle":[1,"font-style"],"backgroundColor":[1,"background-color"],"borderColor":[1,"border-color"],"borderWidth":[1,"border-width"],"borderStyle":[1,"border-style"],"borderRadius":[1,"border-radius"],"fontFamily":[1,"font-family"],"width":[1],"height":[1],"display":[1],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"],"padding":[1],"messageBody":[1,"message-body"],"parentMessageBody":[1,"parent-message-body"],"parentmessageBody":[1,"parentmessage-body"],"senderName":[1,"sender-name"],"messageTime":[1,"message-time"],"icon1":[8,"icon-1"],"repliedMessage":[1,"replied-message"],"isRead":[4,"is-read"],"isDelivered":[1,"is-delivered"],"messageInfo":[8,"message-info"],"userMetaData":[8,"user-meta-data"],"parentMessageTime":[1,"parent-message-time"],"parentMessageMediaUrl":[1,"parent-message-media-url"],"parentMessageType":[1,"parent-message-type"],"parentMessageId":[1,"parent-message-id"],"parentMessageSenderIdentifier":[1,"parent-message-sender-identifier"],"parentMessageSenderName":[1,"parent-message-sender-name"],"isSelf":[4,"is-self"],"onMediaClick":[16],"allAttachments":[16],"showEmojiReactions":[4,"show-emoji-reactions"],"reactions":[16],"messageId":[1,"message-id"],"timeColor":[1,"time-color"],"showReactionButton":[4,"show-reaction-button"],"showConfirmationPopup":[4,"show-confirmation-popup"],"selectedEmojiToRemove":[8,"selected-emoji-to-remove"],"showAllReactionsPopup":[4,"show-all-reactions-popup"],"showReactionOnHover":[4,"show-reaction-on-hover"]}],[1,"attachment-preview",{"content":[16],"contentType":[16],"selectedIndex":[1026,"selected-index"],"caption":[8],"onClose":[8,"on-close"],"onSend":[8,"on-send"],"inputValue":[1025,"input-value"],"inputBorderColor":[8,"input-border-color"],"inputBorderWidth":[8,"input-border-width"],"inputBorderStyle":[8,"input-border-style"],"inputPlaceholder":[8,"input-placeholder"],"inputBgColor":[8,"input-bg-color"],"inputFontSize":[8,"input-font-size"],"inputFontColor":[8,"input-font-color"],"inputBorderRadius":[8,"input-border-radius"],"inputContainerBorderColor":[8,"input-container-border-color"],"inputContainerBorderWidth":[8,"input-container-border-width"],"inputContainerBorderRadius":[8,"input-container-border-radius"],"inputPlaceholderColor":[8,"input-placeholder-color"],"inputContainerPadding":[8,"input-container-padding"],"showCloseIcon":[8,"show-close-icon"],"sendButtonIconHeight":[8,"send-button-icon-height"],"sendButtonIconWidth":[8,"send-button-icon-width"],"conversationDetails":[8,"conversation-details"],"showMentionList":[8,"show-mention-list"],"mentionSearchQuery":[8,"mention-search-query"],"cursorPosition":[8,"cursor-position"],"userMetaData":[8,"user-meta-data"],"showCamera":[4,"show-camera"],"isOpen":[8,"is-open"],"localIndex":[32],"cameraError":[32],"cameraReady":[32],"facingMode":[32],"showEmojiPicker":[32]},null,{"content":["onContentChange"],"showCamera":["onShowCameraChange"]}],[1,"context-menu",{"x":[2],"y":[2],"isOpen":[4,"is-open"],"menuItems":[16],"onMenuItemSelected":[8,"on-menu-item-selected"],"onMenuClosed":[8,"on-menu-closed"]},[[4,"click","handleOutsideClick"]]],[1,"message-date-pill",{"bgColor":[1,"bg-color"],"textColor":[1,"text-color"],"width":[1],"padding":[1],"borderRadius":[1,"border-radius"],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"fontFamily":[1,"font-family"],"content":[1]}],[1,"profile-info",{"padding":[8],"margin":[8],"width":[8],"boxShadow":[8,"box-shadow"],"height":[8],"borderRadius":[8,"border-radius"],"borderWidth":[8,"border-width"],"borderColor":[8,"border-color"],"borderStyle":[8,"border-style"],"backgroundColor":[8,"background-color"],"textColor":[8,"text-color"],"fontSize":[8,"font-size"],"fontWeight":[8,"font-weight"],"fontFamily":[8,"font-family"],"fontStyle":[8,"font-style"],"lineHeight":[8,"line-height"],"textAlign":[8,"text-align"],"contactImage":[8,"contact-image"],"contactName":[8,"contact-name"],"contactEmail":[8,"contact-email"],"messageAction":[8,"message-action"],"groupMembers":[8,"group-members"],"allAttachments":[8,"all-attachments"],"isGroup":[8,"is-group"],"showAllMembers":[8,"show-all-members"],"isPopupOpen":[8,"is-popup-open"],"showMediaList":[8,"show-media-list"],"isImageFullscreen":[8,"is-image-fullscreen"],"showConfirmationPopup":[8,"show-confirmation-popup"],"confirmationAction":[8,"confirmation-action"],"conversationId":[8,"conversation-id"],"oppenentId":[8,"oppenent-id"],"userMetaData":[8,"user-meta-data"],"onEditTitle":[8,"on-edit-title"],"handleChatSelect":[8,"handle-chat-select"],"onEditImage":[8,"on-edit-image"],"isEditingName":[8,"is-editing-name"],"openOwnProfile":[8,"open-own-profile"],"editedName":[8,"edited-name"],"eligibleMembers":[8,"eligible-members"],"isEligibleMembersPopupOpen":[8,"is-eligible-members-popup-open"],"hasMoreEligibleMembers":[8,"has-more-eligible-members"],"isLoadingMembers":[8,"is-loading-members"],"activeTab":[8,"active-tab"],"docsAttachments":[8,"docs-attachments"],"linksAttachments":[8,"links-attachments"],"allLinks":[8,"all-links"],"allLinksCount":[8,"all-links-count"],"isBlocked":[8,"is-blocked"],"conversationMetaData":[8,"conversation-meta-data"],"closeContactInfo":[8,"close-contact-info"]}],[1,"reply-block",{"color":[1],"fontSize":[1,"font-size"],"textAlign":[1,"text-align"],"fontWeight":[1,"font-weight"],"fontStyle":[1,"font-style"],"backgroundColor":[1,"background-color"],"borderColor":[1,"border-color"],"borderWidth":[1,"border-width"],"borderStyle":[1,"border-style"],"borderRadius":[1,"border-radius"],"fontFamily":[1,"font-family"],"width":[1],"height":[1],"display":[1],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"],"padding":[1],"messageBody":[1,"message-body"],"senderName":[1,"sender-name"],"messageTime":[1,"message-time"],"icon1":[8,"icon-1"],"icon2":[8,"icon-2"],"onIconClick":[16],"messageInfo":[8,"message-info"]}]]],["p-ceb08a13",[[1,"web-chat",{"customParts":[1040],"name":[1],"baseUrl":[1,"base-url"],"licenseKey":[1,"license-key"],"appSecret":[1,"app-secret"],"userSecret":[1,"user-secret"],"userToken":[1,"user-token"],"themeUrl":[1,"theme-url"],"defaultTheme":[1,"default-theme"],"isometrikUserId":[1,"isometrik-user-id"],"projectId":[1,"project-id"],"keysetId":[1,"keyset-id"],"accountId":[1,"account-id"],"conversationId":[1,"conversation-id"],"hostUrl":[1,"host-url"],"groupcastEnabled":[4,"groupcast-enabled"],"showProfileRail":[4,"show-profile-rail"],"showChatWallpaper":[4,"show-chat-wallpaper"],"showHeader":[4,"show-header"],"showComposer":[4,"show-composer"],"showEmptyState":[4,"show-empty-state"],"showConversationList":[4,"show-conversation-list"],"showRightPanel":[4,"show-right-panel"],"showMqttStatus":[4,"show-mqtt-status"],"enablePushNotifications":[4,"enable-push-notifications"],"enableLocalNotifications":[4,"enable-local-notifications"],"onLocalNotification":[16],"isChatFilter":[4,"is-chat-filter"],"isAllChatButton":[4,"is-all-chat-button"],"isSidebarHeaderLabel":[4,"is-sidebar-header-label"],"sidebarHeaderLabel":[1,"sidebar-header-label"],"isSidebarHeaderSearch":[4,"is-sidebar-header-search"],"sidebarColor":[1,"sidebar-color"],"sidebarSelectedColor":[1,"sidebar-selected-color"],"toggleTheme":[16],"unreadConversations":[32],"allLinks":[32],"allLinksCount":[32],"isInitialized":[32],"findUserId":[32],"mqttClient":[32],"mqttInitialized":[32],"isMqttConnected":[32],"allMessages":[32],"selectConversationMessages":[32],"userMetaData":[32],"allConversationList":[32],"conversationMetaData":[32],"selctConversationMetaData":[32],"isMessageLimitEnd":[32],"skip":[32],"isMessagesLoading":[32],"isMessageSending":[32],"deviceId":[32],"isScrollToBottom":[32],"isScrollToTop":[32],"isConversationLoading":[32],"isLoadingConversationList":[32],"unreadConversationsCount":[32],"isChatClosed":[32],"isChatMinimized":[32],"isSubscribedToTopic":[32],"isMessageListenerAttached":[32],"isInitialCallDone":[32],"isTyping":[32],"typingUserName":[32],"selectedConversationId":[32],"unreadMessageCount":[32],"unreadMessageCountFromApi":[32],"isLoading":[32],"loadingProgress":[32],"loadingStatus":[32],"isLoadingMessage":[32],"hasMoreConversations":[32],"eligibleMembers":[32],"membersListSkip":[32],"hasMoreEligibleMembers":[32],"isMobileView":[32],"showSidebar":[32],"isContactInfoOpen":[32],"isProfileInfoOpen":[32],"isOpenSearchBar":[32],"messageSearchText":[32],"searchedMessageDetails":[32],"initialConversationIdFromURL":[32],"allAttachments":[32],"selectConverSationAttachments":[32],"highlightedMessageId":[32],"messageAction":[32],"replyMessage":[32],"messageInfoPanel":[32],"loadingMediaGallery":[32],"activeTab":[32],"showRightSideBar":[32],"conversationIdFromContactinfo":[32],"exitedGroupIds":[32],"conversationCountSkip":[32],"typingConversationId":[32],"newMessageNotification":[32],"isBlocked":[32],"allGroupCastContacts":[32],"groupcastSkip":[32],"isLoadingMoreGroupcast":[32],"hasMoreGroupcast":[32],"groupcastMembers":[32],"setCustomParts":[64],"selectConversation":[64],"setReply":[64],"clearReply":[64],"sendText":[64],"sendMedia":[64],"loadMoreMessages":[64],"loadMoreConversations":[64],"getChatState":[64]},[[0,"remove-member-clicked","handleRemoveMemberClicked"],[0,"profile-clicked","onProfileClick"],[0,"members-list-scrolled-to-bottom","handleMembersListScrolledToBottom"],[0,"close-right-Sidebar","handleContactInfo"],[0,"close-contact-info","handleProfileInfo"],[0,"message-info-panel-change","handleMessageInfoPanelChange"],[0,"open-right-Sidebar","handleOpen"],[0,"get-links","handleGetLinks"],[0,"groupExited","handleGroupExited"],[0,"tagUserClick","handleTaguserClick"],[16,"contact-action","handleContactAction"],[0,"chat-tile-list-scrolled-to-bottom","handleChatTileScrolledToBottom"],[0,"conversation-updated","handleConversationUpdate"],[0,"groupcastScrolledToBottom","handleGroupcastScroll"],[0,"delete-groupcast","handleDeleteGroupcast"]],{"isLoading":["onLoadingChange"],"allConversationList":["onConversationListChange"],"allMessages":["onMessagesChange","handlemessageAction"],"replyMessage":["onReplyMessageChange"],"skip":["handleSkipChange"],"isTyping":["handleTypingChange"],"selectedConversationId":["handleSelectedConversationChange"],"initialConversationIdFromURL":["handleSelectedConversationChange"],"selectConversationMessages":["handlemessageAction"],"conversationMetaData":["watchPropHandler"]}],[1,"login-page",{"username":[32],"password":[32],"errorMessage":[32],"isLoading":[32],"showPassword":[32]}],[1,"theme-provider",{"themePath":[1,"theme-path"],"mode":[1537],"themeObject":[16],"mirrorToDocument":[4,"mirror-to-document"],"styleElement":[32],"toggleTheme":[64],"setTheme":[64],"setThemeObject":[64]},null,{"themePath":["handleThemePathChange"],"mode":["handleModeChange"],"themeObject":["handleThemeObjectChange"],"mirrorToDocument":["handleMirrorChange"]}]]]]'),e)}));
1
+ import{p as e,B as o,c as a,d as t,N as i,H as r,b as n}from"./p-17a96a2a.js";export{s as setNonce}from"./p-17a96a2a.js";import{g as l}from"./p-1db79cfb.js";import"./p-6fc95e0e.js";import"./p-5162774c.js";import"./p-c08055fe.js";import"./p-343f50b4.js";import"./p-54267fe0.js";import"./p-7fd2c1ad.js";import"./p-4671fe73.js";import"./p-643457b8.js";import"./p-5b965e04.js";var d=()=>{if(o.isDev&&!o.isTesting){a("Running in development mode.")}if(o.cloneNodeFix){c(r.prototype)}const s=o.scriptDataOpts?Array.from(t.querySelectorAll("script")).find((e=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===i)):null;const n=import.meta.url;const l=o.scriptDataOpts?(s||{})["data-opts"]||{}:{};if(n!==""){l.resourcesUrl=new URL(".",n).href}return e(l)};var c=e=>{const o=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return o.call(this,e)}const a=o.call(this,false);const t=this.childNodes;if(e){for(let e=0;e<t.length;e++){if(t[e].nodeType!==2){a.appendChild(t[e].cloneNode(true))}}}return a}};d().then((async e=>{await l();return n(JSON.parse('[["p-161fcb35",[[4,"chat-app",{"themePath":[1,"theme-path"],"mode":[1537],"themeObject":[16],"isLoggedIn":[32],"userToken":[32],"userId":[32],"demoCustomUi":[32],"changeTheme":[64],"toggleTheme":[64]}]]],["p-39b626ed",[[1,"new-chat-sidebar",{"label":[1],"closeNewChatSidebar":[16],"nonBlockedContacts":[16],"isNoContactsFound":[4,"is-no-contacts-found"],"isPaginationMember":[4,"is-pagination-member"],"isLoadingMember":[4,"is-loading-member"],"hasMoreMembers":[4,"has-more-members"],"showGroupChatContacts":[32],"showGroupCastContacts":[32],"searchText":[32]}]]],["p-2e9974e1",[[1,"chat-document-message-bubble"]]],["p-ad02a8ca",[[1,"chat-image-message-bubble"]]],["p-c83e2d5d",[[1,"chat-video-message-bubble"]]],["p-ffbbe278",[[1,"forward-memebers",{"dialogData":[8,"dialog-data"],"onClose":[16],"nonBlockedContacts":[32],"skip":[32],"isNoContactsFound":[32],"hasMore":[32],"isLoading":[32],"paginationLoading":[32],"searchText":[32],"selected":[32]}]]],["p-c49de274",[[1,"member-add",{"dialogData":[8,"dialog-data"],"onClose":[16],"eligibleMembers":[32],"membersListSkip":[32],"hasMore":[32],"isLoading":[32],"paginationLoading":[32],"searchText":[32],"selectedMembers":[32]}]]],["p-7b25f234",[[1,"admin-transfer-dialog",{"dialogData":[16],"onClose":[16],"isMobile":[4,"is-mobile"]}]]],["p-52a575c0",[[1,"media-gallery",{"allAttachments":[16],"mainImageIndex":[1026,"main-image-index"],"topbarBgColor":[8,"topbar-bg-color"],"iconColor":[8,"icon-color"],"galleryImageSize":[8,"gallery-image-size"],"isZoomed":[8,"is-zoomed"],"loadingMediaGallery":[4,"loading-media-gallery"],"zoomLevel":[1026,"zoom-level"],"isSharePopupOpen":[8,"is-share-popup-open"],"shareLink":[8,"share-link"],"index":[32]}]]],["p-2cf296e6",[[1,"confirm-dialog",{"dialogData":[8,"dialog-data"],"onClose":[16],"isMobile":[4,"is-mobile"]}]]],["p-3664e0ad",[[1,"delete-message",{"dialogData":[8,"dialog-data"],"onClose":[16],"isMobile":[4,"is-mobile"]}]]],["p-0ccfbe90",[[1,"forward-message",{"bgColor":[8,"bg-color"],"width":[8],"height":[8],"borderWidth":[8,"border-width"],"borderColor":[8,"border-color"],"color":[8],"fontSize":[8,"font-size"],"borderRadius":[8,"border-radius"],"fontWeight":[8,"font-weight"],"progressBarBg":[8,"progress-bar-bg"],"progressBarHeight":[8,"progress-bar-height"],"progressBarColor":[8,"progress-bar-color"],"progressBarBorderRadius":[8,"progress-bar-border-radius"],"messageBody":[8,"message-body"],"padding":[8],"isRead":[8,"is-read"],"isDelivered":[8,"is-delivered"],"time":[8],"messageBodyBg":[8,"message-body-bg"],"messageAttachment":[8,"message-attachment"],"isSelf":[8,"is-self"],"messageId":[8,"message-id"],"reactions":[8],"showConfirmationPopup":[8,"show-confirmation-popup"],"selectedEmojiToRemove":[8,"selected-emoji-to-remove"],"showAllReactionsPopup":[8,"show-all-reactions-popup"],"showReactionButton":[8,"show-reaction-button"],"showEmojiReactions":[8,"show-emoji-reactions"],"userMetaData":[8,"user-meta-data"]}]]],["p-48ce4dca",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["p-5d1877d1",[[1,"reaction-container",{"messageId":[1,"message-id"],"userMetaData":[8,"user-meta-data"],"reactions":[16],"reactionUsers":[32],"selectedEmojiId":[32]}]]],["p-e48a1217",[[1,"share-popup",{"dialogData":[8,"dialog-data"],"onClose":[16],"isMobile":[4,"is-mobile"],"copied":[32]}]]],["p-08ba6153",[[1,"signup-page",{"username":[32],"email":[32],"password":[32],"errorMessage":[32],"isLoading":[32],"profileImageUrl":[32]}]]],["p-925da2c0",[[1,"toast-notification",{"bgColor":[1,"bg-color"],"width":[1],"height":[1],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"color":[1],"fontSize":[1,"font-size"],"borderRadius":[1,"border-radius"],"fontWeight":[1,"font-weight"],"progressBarBg":[1,"progress-bar-bg"],"progressBarHeight":[1,"progress-bar-height"],"progressBarColor":[1,"progress-bar-color"],"progressBarBorderRadius":[1,"progress-bar-border-radius"],"toastMessage":[1,"toast-message"],"padding":[1]}]]],["p-d8b65cf4",[[1,"message-bubble",{"isSelf":[4,"is-self"],"time":[1],"timeColor":[1,"time-color"],"isRead":[4,"is-read"],"isDelivered":[8,"is-delivered"],"deliveryStatus":[1,"delivery-status"],"reactions":[16],"messageId":[1,"message-id"],"userMetaData":[8,"user-meta-data"],"showReactionOnHover":[4,"show-reaction-on-hover"],"isForwarded":[4,"is-forwarded"],"backgroundColor":[1,"background-color"],"borderRadius":[1,"border-radius"],"padding":[1],"showReactionButton":[32],"showEmojiPicker":[32]}]]],["p-1eecc7c5",[[1,"link-preview",{"url":[1],"isRead":[4,"is-read"],"isDelivered":[1,"is-delivered"],"time":[1],"textColor":[1,"text-color"],"message":[1],"backgroundColor":[1,"background-color"],"isSelf":[4,"is-self"],"mentionedUsers":[16],"preview":[8],"isMessageInfo":[4,"is-message-info"],"isShowFooter":[4,"is-show-footer"],"showReactionButton":[4,"show-reaction-button"],"showEmojiReactions":[4,"show-emoji-reactions"],"messageId":[1,"message-id"],"reactions":[16],"showConfirmationPopup":[4,"show-confirmation-popup"],"selectedEmojiToRemove":[8,"selected-emoji-to-remove"],"showAllReactionsPopup":[4,"show-all-reactions-popup"],"userMetaData":[8,"user-meta-data"],"messageType":[2,"message-type"],"timeColor":[1,"time-color"],"showReactionOnHover":[4,"show-reaction-on-hover"]}]]],["p-c5bff6a1",[[1,"profile-avatar",{"src":[1],"name":[1],"alt":[1],"size":[1],"radius":[1],"isGroup":[4,"is-group"],"failed":[32]},null,{"src":["onSrcChange"]}]]],["p-fd6ce589",[[1,"searchable-list",{"bgColor":[8,"bg-color"],"padding":[8],"height":[8],"width":[8],"label":[8],"hideTopbar":[4,"hide-topbar"],"fontFamily":[8,"font-family"],"textColor":[8,"text-color"],"fontSize":[8,"font-size"],"selectedContacts":[1040],"contactList":[16],"conversationList":[16],"isSearching":[4,"is-searching"],"getForwardMessageMemberList":[8,"get-forward-message-member-list"],"onSend":[8,"on-send"],"isLoading":[4,"is-loading"],"paginationLoading":[4,"pagination-loading"],"hasMore":[4,"has-more"],"skip":[2],"searchText":[32],"selectedIds":[32]}],[1,"chat-tile",{"imageSrc":[1,"image-src"],"imageAlt":[1,"image-alt"],"imageHeight":[1,"image-height"],"imageWidth":[1,"image-width"],"imageRadius":[1,"image-radius"],"imageFillColor":[1,"image-fill-color"],"imageTextColor":[1,"image-text-color"],"username":[1],"userNameColor":[1,"user-name-color"],"userNameFontFamily":[1,"user-name-font-family"],"userNameFontWeight":[1,"user-name-font-weight"],"usernameFontSize":[1,"username-font-size"],"usernameFontStyle":[1,"username-font-style"],"chatPreview":[1,"chat-preview"],"chatPreviewColor":[1,"chat-preview-color"],"chatPreviewFontFamily":[1,"chat-preview-font-family"],"chatPreviewFontWeight":[1,"chat-preview-font-weight"],"chatPreviewFontSize":[1,"chat-preview-font-size"],"chatPreviewFontStyle":[1,"chat-preview-font-style"],"unreadCount":[2,"unread-count"],"unreadCountColor":[1,"unread-count-color"],"unreadCountFontSize":[1,"unread-count-font-size"],"unreadCountBgColor":[1,"unread-count-bg-color"],"unreadCountBorderRadius":[1,"unread-count-border-radius"],"unreadCountWidth":[1,"unread-count-width"],"unreadCountHeight":[1,"unread-count-height"],"messageDate":[1,"message-date"],"messageDateColor":[1,"message-date-color"],"messageDateFontFamily":[1,"message-date-font-family"],"messageDateFontWeight":[1,"message-date-font-weight"],"messageDateFontSize":[1,"message-date-font-size"],"messageDateFontStyle":[1,"message-date-font-style"],"padding":[1],"usernamePadding":[1,"username-padding"],"chatPreviewPadding":[1,"chat-preview-padding"],"messageDatePadding":[1,"message-date-padding"],"bgColor":[1,"bg-color"],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"height":[1],"width":[1],"isSelected":[4,"is-selected"],"sidebarSelectedColor":[1,"sidebar-selected-color"],"suffix":[1],"suffixColor":[1,"suffix-color"],"suffixBgColor":[1,"suffix-bg-color"],"gap":[1],"isTyping":[4,"is-typing"],"typingUserName":[1,"typing-user-name"],"isRead":[4,"is-read"],"isPending":[4,"is-pending"],"isDelivered":[1,"is-delivered"],"isSelfMessage":[4,"is-self-message"],"mediaType":[2,"media-type"],"mediaLabel":[1,"media-label"],"isGroup":[4,"is-group"],"conversationId":[1,"conversation-id"],"onClick":[16],"onContextmenu":[16],"title":[1],"subtitle":[1],"time":[1],"menuOpen":[32],"menuPos":[32]},[[4,"click","onDocClick"]]],[1,"iso-group-info",{"label":[1],"selectedUserIds":[16],"selectedUsers":[16],"isGroupCast":[4,"is-group-cast"],"closeGroupInfo":[16],"afterCreate":[16],"groupTitle":[32],"imageSrc":[32],"imageFile":[32]}]]],["p-d892b4d4",[[1,"group-chat-contacts",{"label":[1],"closeGroupChatContacts":[16],"nonBlockedContacts":[1040],"isNoContactsFound":[4,"is-no-contacts-found"],"isPaginationMember":[4,"is-pagination-member"],"isLoadingMember":[4,"is-loading-member"],"hasMoreMembers":[4,"has-more-members"],"onCloseAll":[16],"isGroupCast":[4,"is-group-cast"],"selectedContacts":[32],"showGroupInfo":[32],"searchText":[32]}]]],["p-3120b9d3",[[1,"document-message",{"bgColor":[1,"bg-color"],"borderRadius":[1,"border-radius"],"padding":[1],"docName":[1,"doc-name"],"width":[1],"height":[1],"documentNameBg":[1,"document-name-bg"],"documentNamePadding":[1,"document-name-padding"],"time":[1],"href":[1],"fileName":[1,"file-name"],"isRead":[4,"is-read"],"isSelf":[4,"is-self"],"isDelivered":[1,"is-delivered"],"deliveryStatus":[1,"delivery-status"],"docType":[1,"doc-type"],"textColor":[1,"text-color"],"message":[1],"mentionedUsers":[16],"messageId":[1,"message-id"],"reactions":[16],"userMetaData":[8,"user-meta-data"],"messageType":[2,"message-type"],"timeColor":[1,"time-color"],"showReactionOnHover":[4,"show-reaction-on-hover"],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"showPdfPreview":[32]}],[1,"image-message",{"bgColor":[1,"bg-color"],"borderRadius":[1,"border-radius"],"padding":[1],"imageSrc":[1,"image-src"],"message":[1],"height":[1],"width":[1],"time":[1],"isRead":[4,"is-read"],"isSelf":[4,"is-self"],"isDelivered":[1,"is-delivered"],"deliveryStatus":[1,"delivery-status"],"textColor":[1,"text-color"],"allAttachments":[16],"isMediaGalleryOpen":[4,"is-media-gallery-open"],"onImageClick":[16],"mentionedUsers":[16],"totalMedia":[2,"total-media"],"mediaType":[2,"media-type"],"loadingMediaGallery":[4,"loading-media-gallery"],"messageId":[1,"message-id"],"reactions":[16],"userMetaData":[8,"user-meta-data"],"messageType":[2,"message-type"],"timeColor":[1,"time-color"],"showReactionOnHover":[4,"show-reaction-on-hover"],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"galleryOpen":[32]}],[1,"video-message",{"bgColor":[1,"bg-color"],"borderRadius":[1,"border-radius"],"padding":[1],"videoSrc":[1,"video-src"],"poster":[1],"videoType":[1,"video-type"],"time":[1],"height":[1],"width":[1],"playing":[4],"isRead":[4,"is-read"],"isSelf":[4,"is-self"],"isDelivered":[1,"is-delivered"],"deliveryStatus":[1,"delivery-status"],"textColor":[1,"text-color"],"message":[1],"mentionedUsers":[16],"messageId":[1,"message-id"],"reactions":[16],"userMetaData":[8,"user-meta-data"],"messageType":[2,"message-type"],"timeColor":[1,"time-color"],"showReactionOnHover":[4,"show-reaction-on-hover"],"type":[1],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"isPlaying":[32]}],[1,"audio-bubble",{"audioUrl":[1,"audio-url"],"audioWaveColor":[1,"audio-wave-color"],"audioProgressColor":[1,"audio-progress-color"],"textColor":[1,"text-color"],"isSelf":[4,"is-self"],"borderRadius":[1,"border-radius"],"bgColor":[1,"bg-color"],"time":[1],"isRead":[16],"isDelivered":[16],"showFooter":[16],"messageId":[16],"timeColor":[16],"reactions":[8],"messageType":[2,"message-type"],"liveRecord":[4,"live-record"],"isPlaying":[32],"audioDuration":[32],"currentAudioId":[32],"waveformContainerReady":[32],"initializationAttempts":[32],"startLiveRecording":[64],"pauseLiveRecording":[64],"resumeLiveRecording":[64],"stopLiveRecording":[64],"cancelLiveRecording":[64]},null,{"audioUrl":["chatChanged"]}]]],["p-cbb1179b",[[1,"spinner-loader",{"height":[1],"width":[1],"spinTime":[1,"spin-time"],"spinnerPrimaryColor":[1,"spinner-primary-color"],"spinnerSecondaryColor":[1,"spinner-secondary-color"],"spinnerBorderWidth":[1,"spinner-border-width"]}]]],["p-a9380fb3",[[1,"web-chat-body",{"skip":[2],"allMessages":[8,"all-messages"],"userMetaData":[8,"user-meta-data"],"isMessagesLoading":[4,"is-messages-loading"],"isMessageSending":[4,"is-message-sending"],"isMessageLimitEnd":[4,"is-message-limit-end"],"updateSkip":[16],"isScrollToBottom":[4,"is-scroll-to-bottom"],"isScrollToTop":[4,"is-scroll-to-top"],"deleteForAll":[16],"deleteForSelf":[16],"changeScrollToBottomState":[16],"changeScrollToTopState":[16],"updateAllMessages":[16],"isChatClosed":[4,"is-chat-closed"],"isChatMinimized":[4,"is-chat-minimized"],"selectedConversationId":[1,"selected-conversation-id"],"allAttachments":[8,"all-attachments"],"highlightedMessageId":[1,"highlighted-message-id"],"onMediaClick":[16],"conversationList":[8,"conversation-list"],"conversationDetails":[8,"conversation-details"],"newMessageNotification":[16],"loadingMediaGallery":[4,"loading-media-gallery"],"customParts":[1040],"previousTotalScrollHeight":[32],"deviceId":[32],"scrollTimeout":[32],"isDeletePopupOpen":[32],"isMessageActionOpen":[32],"actionMenuFlipUp":[32],"deletedMessages":[32],"isTabActive":[32],"isForwardPopupOpen":[32],"isSelf":[32],"isReplyBlockOpen":[32],"messageActionPopupElement":[32],"popupRef":[32],"messageInfoOpen":[32],"messagePreviewText":[32],"messageDate":[32],"messageDeliveryTime":[32],"messageReadTime":[32],"showScrollButton":[32],"isScrolling":[32],"unreadMessageCount":[32],"isChatBodyUnscrollable":[32],"virtualStart":[32],"virtualEnd":[32],"selectedMessage":[32],"readUserList":[32],"deliveryUserList":[32],"pendingDeliveryCount":[32],"pendingReadCount":[32],"isLoadingInfo":[32],"scrollToMessage":[64]},null,{"allMessages":["handleDataChange"],"userMetaData":["handleDataChange"],"selectedConversationId":["handleChnageChangeConversationId"]}],[1,"web-chat-right-sidebar",{"conversationMetaData":[8,"conversation-meta-data"],"selectedConversationId":[1,"selected-conversation-id"],"conversationIdFromContactinfo":[1,"conversation-id-from-contactinfo"],"hasMoreEligibleMembers":[4,"has-more-eligible-members"],"isContactInfoOpen":[4,"is-contact-info-open"],"isProfileInfoOpen":[4,"is-profile-info-open"],"eligibleMembers":[16],"allAttachments":[16],"userMetaData":[8,"user-meta-data"],"messageAction":[16],"searchedMessageDetails":[16],"onSearchHandler":[16],"onSearchResultClick":[16],"handleChatSelect":[16],"openOwnProfile":[16],"isOpenSearchBar":[4,"is-open-search-bar"],"isLoadingMessage":[4,"is-loading-message"],"chatBodyRef":[16],"allLinks":[8,"all-links"],"allLinksCount":[2,"all-links-count"],"isBlocked":[8,"is-blocked"],"groupcastMembers":[8,"groupcast-members"],"groupMembers":[32],"isLoading":[32]},[[0,"remove-admin-clicked","handleRemoveAdmin"],[0,"make-admin-clicked","handleMakeAdmin"],[0,"edit-title","handleEditTitle"],[0,"edit-image","handleEditImage"]],{"selectedConversationId":["updateConversation"]}],[1,"chat-side-bar",{"isMqttConnected":[4,"is-mqtt-connected"],"showMqttStatus":[4,"show-mqtt-status"],"conversationList":[8,"conversation-list"],"isChatFilter":[4,"is-chat-filter"],"isAllChatButton":[4,"is-all-chat-button"],"customTypes":[8,"custom-types"],"filterTabsContainer":[8,"filter-tabs-container"],"filterTab":[8,"filter-tab"],"filterTabHover":[8,"filter-tab-hover"],"isSidebarHeaderLabel":[4,"is-sidebar-header-label"],"isSidebarHeaderSearch":[4,"is-sidebar-header-search"],"sidebarHeaderLabel":[1,"sidebar-header-label"],"sidebarColor":[1,"sidebar-color"],"sidebarSelectedColor":[1,"sidebar-selected-color"],"onDeleteConversation":[16],"handleSearchData":[16],"userMetaData":[8,"user-meta-data"],"isTyping":[4,"is-typing"],"typingUserName":[1,"typing-user-name"],"typingConversationId":[1,"typing-conversation-id"],"allMessages":[8,"all-messages"],"isConversationLoading":[16],"hasMoreConversations":[4,"has-more-conversations"],"unreadConversationsCount":[2,"unread-conversations-count"],"customParts":[1040],"groupcastEnabled":[4,"groupcast-enabled"],"conversationDetails":[1032,"conversation-details"],"sortedConversationList":[32],"numberOfConversations":[32],"unreadCounts":[32],"searchQuery":[32],"selectedConversationID":[32],"isLoading":[32],"nonBlockedContacts":[32],"skip":[32],"isNoContactsFound":[32],"isGroupChat":[32],"selectedGroupUserIds":[32],"groupInfo":[32],"isGroupCreationLoading":[32],"displayTitle":[32],"searchTagName":[32],"hasMoreMembers":[32],"isLoadingMember":[32],"isPaginationMember":[32],"showNewChat":[32],"showMemberPicker":[32],"showGroupInfo":[32],"memberPickerIsGroupCast":[32],"pendingGroupMembers":[32],"showMoreMenu":[32]},[[0,"group-contacts-input-changed","handleGroupContactsInputChange"],[0,"new-chat-input-changed","handleNewChatInputChange"],[0,"close-group-member-list","handleCloseGroupMemberList"],[0,"unreadMessageCountUpdated","handleUnreadMessageCountUpdate"],[0,"delete-conversation","handleDeleteConversation"],[0,"chat-tile-menu","handleChatTileMenu"],[0,"new-chat-contact-selected","handleNewChatContactSelected"],[0,"new-chat-clicked","handleNewChatClick"],[4,"click","handleDocumentClick"],[0,"new-chat-tile-list-scrolled-to-bottom","handleNewChatTileListScrolledToBottom"],[0,"group-contacts-scrolled-to-bottom","handleNewChatTileListScrolledToBottom"],[0,"create-group-clicked","handleCreateGroupClick"],[0,"create-groupcast-clicked","handleCreateGroupCastClick"],[0,"group-contacts-selected","handleGroupContactsSelected"],[0,"group-info-submitted","handleGroupInfoSubmitted"],[0,"create-group-submitted","handleGroupSubmitted"],[0,"create-group-cast-submitted","handleGroupSubmitted"],[0,"exit-group","handleExitGroup"],[16,"contact-action","handleContactAction"],[0,"message-read-status-updated","handleMessageReadStatusUpdate"]],{"conversationList":["handleConversationListChange"],"conversationDetails":["handleConversationDetailsChange"]}],[0,"group-cast",{"groupCastData":[16],"isLoadingMore":[4,"is-loading-more"],"userMetaData":[8,"user-meta-data"],"onCreated":[16],"selectedGroupcastId":[32],"contextMenuX":[32],"contextMenuY":[32],"isContextMenuOpen":[32],"selectedTileForMenu":[32],"showMemberPicker":[32],"showGroupInfo":[32],"pendingMembers":[32],"nonBlockedContacts":[32],"skip":[32],"hasMoreMembers":[32],"isLoadingMember":[32],"isPaginationMember":[32],"isCreating":[32]},[[0,"create-group-cast-submitted","handleCreateSubmitted"]]],[1,"chat-footer",{"userMetaData":[8,"user-meta-data"],"refetchMessages":[16],"changeMessageSendingState":[16],"changeScrollToBottomState":[16],"updateAllMessages":[16],"allMessages":[8,"all-messages"],"selectedConversationId":[1,"selected-conversation-id"],"replyMessage":[1032,"reply-message"],"handleremoveReplyMessage":[16],"sortConversationsByLatestMessage":[16],"conversationDetails":[1040],"allConversationList":[1032,"all-conversation-list"],"updateConversationListProp":[16],"messageBody":[32],"attachmentDetails":[32],"deviceId":[32],"mediaPreviews":[32],"inputKey":[32],"showCloseIcon":[32],"mentionUserList":[32],"showCamera":[32],"linkPreview":[32],"linkToPreview":[32],"detectLinks":[32],"isGroupcast":[32],"groupcastId":[32],"showEmojiPicker":[32],"emojiPanelStyle":[32],"attachMenuStyle":[32],"showAttachMenu":[32],"isRecording":[32],"isPaused":[32],"recordingSeconds":[32],"focusInput":[64]},[[0,"mention-user","handleMentionUser"]],{"messageBody":["onMessageBodyChange"],"selectedConversationId":["handleDataChange"],"replyMessage":["replyFocusHandler"]}],[1,"profile-page",{"name":[1025],"profilePhotoUrl":[1025,"profile-photo-url"],"conversationId":[1,"conversation-id"],"getUserDetails":[16],"closeDrawer":[16],"toggleTheme":[16],"defaultTheme":[1,"default-theme"],"isEditingName":[32],"newName":[32],"isLoading":[32],"selectedFile":[32],"tempProfilePhotoUrl":[32],"showBlocked":[32],"getPresignedUrl":[64],"updateUserProfile":[64]},null,{"name":["onNameChange"],"profilePhotoUrl":["onPhotoChange"]}],[1,"web-chat-header",{"conversationDetails":[16],"isTyping":[4,"is-typing"],"onClearConversation":[16],"onConversationCleared":[16],"headerBgColor":[1,"header-bg-color"],"headerUsernameColor":[1,"header-username-color"],"headerSvgColor":[1,"header-svg-color"],"headerLastSeenColor":[1,"header-last-seen-color"],"searchedMessageDetails":[8,"searched-message-details"],"onSearchResultClick":[16],"chatBodyRef":[16],"allAttachments":[8,"all-attachments"],"lastSeen":[1,"last-seen"],"userMetaData":[8,"user-meta-data"],"isLoadingMessage":[16],"messageAction":[16],"hasMoreEligibleMembers":[4,"has-more-eligible-members"],"typingConversationId":[1,"typing-conversation-id"],"isBlocked":[8,"is-blocked"],"onBackButtonClick":[16],"handleCloseChat":[16],"onSearchHandler":[16],"selectedConversationId":[1,"selected-conversation-id"],"eligibleMembers":[16],"typingUserName":[1,"typing-user-name"],"isLoading":[32],"groupMembers":[32],"displayTitle":[32],"displayImageUrl":[32],"menuOpen":[32]},[[4,"click","handleDocumentClick"]],{"conversationDetails":["handleConversationDetailsChange"]}],[1,"message-info",{"padding":[8],"margin":[8],"width":[8],"height":[8],"borderRadius":[8,"border-radius"],"borderWidth":[8,"border-width"],"borderColor":[8,"border-color"],"borderStyle":[8,"border-style"],"backgroundColor":[8,"background-color"],"messageBackgroundColor":[8,"message-background-color"],"statusBackgroundColor":[8,"status-background-color"],"textColor":[8,"text-color"],"fontSize":[8,"font-size"],"fontWeight":[8,"font-weight"],"fontFamily":[8,"font-family"],"fontStyle":[8,"font-style"],"lineHeight":[8,"line-height"],"textAlign":[8,"text-align"],"contactImage":[8,"contact-image"],"contactName":[8,"contact-name"],"contactEmail":[8,"contact-email"],"isGroup":[8,"is-group"],"messageDate":[8,"message-date"],"messagePreviewText":[8,"message-preview-text"],"messageDeliveryTime":[8,"message-delivery-time"],"messageReadTime":[8,"message-read-time"],"pendingReadCount":[8,"pending-read-count"],"pendingDeliveryCount":[8,"pending-delivery-count"],"renderAttachmentMessage":[8,"render-attachment-message"],"selectedMessage":[8,"selected-message"],"onMediaClick":[8,"on-media-click"],"closePopup":[8,"close-popup"],"allAttachments":[8,"all-attachments"],"deliveryUserList":[16],"readUserList":[16]}],[1,"profile-sidebar",{"userMetaData":[8,"user-meta-data"],"openProfile":[8,"open-profile"],"openChat":[8,"open-chat"],"openGroupCast":[8,"open-group-cast"],"toggleTheme":[8,"toggle-theme"],"activeTab":[1,"active-tab"],"defaultTheme":[1,"default-theme"],"unreadConversationsCount":[2,"unread-conversations-count"]}],[1,"chat-loading-placeholder",{"progress":[2],"loadingStatus":[1,"loading-status"]}],[1,"contact-info",{"padding":[8],"margin":[8],"width":[8],"boxShadow":[8,"box-shadow"],"height":[8],"borderRadius":[8,"border-radius"],"borderWidth":[8,"border-width"],"borderColor":[8,"border-color"],"borderStyle":[8,"border-style"],"backgroundColor":[8,"background-color"],"textColor":[8,"text-color"],"fontSize":[8,"font-size"],"fontWeight":[8,"font-weight"],"fontFamily":[8,"font-family"],"fontStyle":[8,"font-style"],"lineHeight":[8,"line-height"],"textAlign":[8,"text-align"],"contactImage":[8,"contact-image"],"contactName":[8,"contact-name"],"contactEmail":[8,"contact-email"],"messageAction":[8,"message-action"],"groupMembers":[16],"allAttachments":[16],"isGroup":[8,"is-group"],"showAllMembers":[8,"show-all-members"],"isPopupOpen":[8,"is-popup-open"],"showMediaList":[8,"show-media-list"],"isImageFullscreen":[8,"is-image-fullscreen"],"showConfirmationPopup":[8,"show-confirmation-popup"],"confirmationAction":[8,"confirmation-action"],"conversationId":[8,"conversation-id"],"oppenentId":[8,"oppenent-id"],"userMetaData":[8,"user-meta-data"],"onEditTitle":[8,"on-edit-title"],"onEditImage":[8,"on-edit-image"],"openOwnProfile":[8,"open-own-profile"],"editedName":[8,"edited-name"],"eligibleMembers":[8,"eligible-members"],"isEligibleMembersPopupOpen":[8,"is-eligible-members-popup-open"],"hasMoreEligibleMembers":[8,"has-more-eligible-members"],"isLoadingMembers":[8,"is-loading-members"],"activeTab":[8,"active-tab"],"docsAttachments":[8,"docs-attachments"],"linksAttachments":[8,"links-attachments"],"allLinks":[8,"all-links"],"allLinksCount":[8,"all-links-count"],"isBlocked":[8,"is-blocked"],"conversationMetaData":[8,"conversation-meta-data"],"isGroupcast":[8,"is-groupcast"],"groupcastId":[8,"groupcast-id"],"groupcastMembers":[8,"groupcast-members"],"closeContactInfo":[8,"close-contact-info"],"mediaListOpen":[32],"mediaTab":[32],"galleryIndex":[32],"mediaItems":[32],"docItems":[32],"previewTry":[32],"memberMenuUserId":[32],"titleEditing":[32],"titleDraft":[32],"imageUploading":[32],"pushNotificationsEnabled":[32],"pushNotificationsSaving":[32]},null,{"allAttachments":["onAttachmentsChange"],"conversationMetaData":["onConversationMetaForPush"],"conversationId":["onConversationMetaForPush","onConversationChange"],"contactImage":["onContactImageChange"]}],[1,"block-chat-list",{"goBack":[16],"blockUsers":[32],"isLoading":[32],"skip":[32],"hasMore":[32],"paginationLoading":[32],"searchTerm":[32]}],[1,"new-chat",{"contactList":[16],"isLoading":[4,"is-loading"],"paginationLoading":[4,"pagination-loading"],"hasMore":[4,"has-more"],"skip":[2],"onSearch":[16],"onSelect":[16],"onClose":[16],"customParts":[16],"groupcastEnabled":[4,"groupcast-enabled"],"searchText":[32]}],[1,"incoming-text-message-bubble",{"bgColor":[1,"bg-color"],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"borderRadius":[1,"border-radius"],"padding":[1],"height":[1],"width":[1],"time":[1],"textContent":[1,"text-content"],"alignSelf":[1,"align-self"],"fontFamily":[1,"font-family"],"color":[1],"mentionedUsers":[16],"reactions":[16],"messageId":[1,"message-id"],"userMetaData":[8,"user-meta-data"],"messageType":[2,"message-type"],"timeColor":[1,"time-color"],"showReactionOnHover":[4,"show-reaction-on-hover"]}],[1,"message-search",{"searchedMessageDetails":[16],"onSearchResultClick":[8,"on-search-result-click"],"onSearchInput":[8,"on-search-input"],"isSearchOpen":[4,"is-search-open"],"isLoadingMessage":[4,"is-loading-message"],"chatBodyRef":[8,"chat-body-ref"],"onSearchHandler":[8,"on-search-handler"],"searchValue":[32]}],[1,"outgoing-text-message-bubble",{"bgColor":[1,"bg-color"],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"borderRadius":[1,"border-radius"],"padding":[1],"height":[1],"width":[1],"time":[1],"textContent":[1,"text-content"],"alignSelf":[1,"align-self"],"isRead":[4,"is-read"],"isDelivered":[1,"is-delivered"],"deliveryStatus":[1,"delivery-status"],"textColor":[1,"text-color"],"mentionedUsers":[16],"messageType":[2,"message-type"],"timeColor":[1,"time-color"],"reactions":[16],"messageId":[1,"message-id"],"userMetaData":[8,"user-meta-data"],"fontFamily":[1,"font-family"]}],[1,"reply-message-container",{"color":[1],"fontSize":[1,"font-size"],"textAlign":[1,"text-align"],"fontWeight":[1,"font-weight"],"fontStyle":[1,"font-style"],"backgroundColor":[1,"background-color"],"borderColor":[1,"border-color"],"borderWidth":[1,"border-width"],"borderStyle":[1,"border-style"],"borderRadius":[1,"border-radius"],"fontFamily":[1,"font-family"],"width":[1],"height":[1],"display":[1],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"],"padding":[1],"messageBody":[1,"message-body"],"parentMessageBody":[1,"parent-message-body"],"parentmessageBody":[1,"parentmessage-body"],"senderName":[1,"sender-name"],"messageTime":[1,"message-time"],"icon1":[8,"icon-1"],"repliedMessage":[1,"replied-message"],"isRead":[4,"is-read"],"isDelivered":[1,"is-delivered"],"messageInfo":[8,"message-info"],"userMetaData":[8,"user-meta-data"],"parentMessageTime":[1,"parent-message-time"],"parentMessageMediaUrl":[1,"parent-message-media-url"],"parentMessageType":[1,"parent-message-type"],"parentMessageId":[1,"parent-message-id"],"parentMessageSenderIdentifier":[1,"parent-message-sender-identifier"],"parentMessageSenderName":[1,"parent-message-sender-name"],"isSelf":[4,"is-self"],"onMediaClick":[16],"allAttachments":[16],"showEmojiReactions":[4,"show-emoji-reactions"],"reactions":[16],"messageId":[1,"message-id"],"timeColor":[1,"time-color"],"showReactionButton":[4,"show-reaction-button"],"showConfirmationPopup":[4,"show-confirmation-popup"],"selectedEmojiToRemove":[8,"selected-emoji-to-remove"],"showAllReactionsPopup":[4,"show-all-reactions-popup"],"showReactionOnHover":[4,"show-reaction-on-hover"]}],[1,"attachment-preview",{"content":[16],"contentType":[16],"selectedIndex":[1026,"selected-index"],"caption":[8],"onClose":[8,"on-close"],"onSend":[8,"on-send"],"inputValue":[1025,"input-value"],"inputBorderColor":[8,"input-border-color"],"inputBorderWidth":[8,"input-border-width"],"inputBorderStyle":[8,"input-border-style"],"inputPlaceholder":[8,"input-placeholder"],"inputBgColor":[8,"input-bg-color"],"inputFontSize":[8,"input-font-size"],"inputFontColor":[8,"input-font-color"],"inputBorderRadius":[8,"input-border-radius"],"inputContainerBorderColor":[8,"input-container-border-color"],"inputContainerBorderWidth":[8,"input-container-border-width"],"inputContainerBorderRadius":[8,"input-container-border-radius"],"inputPlaceholderColor":[8,"input-placeholder-color"],"inputContainerPadding":[8,"input-container-padding"],"showCloseIcon":[8,"show-close-icon"],"sendButtonIconHeight":[8,"send-button-icon-height"],"sendButtonIconWidth":[8,"send-button-icon-width"],"conversationDetails":[8,"conversation-details"],"showMentionList":[8,"show-mention-list"],"mentionSearchQuery":[8,"mention-search-query"],"cursorPosition":[8,"cursor-position"],"userMetaData":[8,"user-meta-data"],"showCamera":[4,"show-camera"],"isOpen":[8,"is-open"],"localIndex":[32],"cameraError":[32],"cameraReady":[32],"facingMode":[32],"showEmojiPicker":[32]},null,{"content":["onContentChange"],"showCamera":["onShowCameraChange"]}],[1,"context-menu",{"x":[2],"y":[2],"isOpen":[4,"is-open"],"menuItems":[16],"onMenuItemSelected":[8,"on-menu-item-selected"],"onMenuClosed":[8,"on-menu-closed"]},[[4,"click","handleOutsideClick"]]],[1,"message-date-pill",{"bgColor":[1,"bg-color"],"textColor":[1,"text-color"],"width":[1],"padding":[1],"borderRadius":[1,"border-radius"],"borderWidth":[1,"border-width"],"borderColor":[1,"border-color"],"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"fontFamily":[1,"font-family"],"content":[1]}],[1,"profile-info",{"padding":[8],"margin":[8],"width":[8],"boxShadow":[8,"box-shadow"],"height":[8],"borderRadius":[8,"border-radius"],"borderWidth":[8,"border-width"],"borderColor":[8,"border-color"],"borderStyle":[8,"border-style"],"backgroundColor":[8,"background-color"],"textColor":[8,"text-color"],"fontSize":[8,"font-size"],"fontWeight":[8,"font-weight"],"fontFamily":[8,"font-family"],"fontStyle":[8,"font-style"],"lineHeight":[8,"line-height"],"textAlign":[8,"text-align"],"contactImage":[8,"contact-image"],"contactName":[8,"contact-name"],"contactEmail":[8,"contact-email"],"messageAction":[8,"message-action"],"groupMembers":[8,"group-members"],"allAttachments":[8,"all-attachments"],"isGroup":[8,"is-group"],"showAllMembers":[8,"show-all-members"],"isPopupOpen":[8,"is-popup-open"],"showMediaList":[8,"show-media-list"],"isImageFullscreen":[8,"is-image-fullscreen"],"showConfirmationPopup":[8,"show-confirmation-popup"],"confirmationAction":[8,"confirmation-action"],"conversationId":[8,"conversation-id"],"oppenentId":[8,"oppenent-id"],"userMetaData":[8,"user-meta-data"],"onEditTitle":[8,"on-edit-title"],"handleChatSelect":[8,"handle-chat-select"],"onEditImage":[8,"on-edit-image"],"isEditingName":[8,"is-editing-name"],"openOwnProfile":[8,"open-own-profile"],"editedName":[8,"edited-name"],"eligibleMembers":[8,"eligible-members"],"isEligibleMembersPopupOpen":[8,"is-eligible-members-popup-open"],"hasMoreEligibleMembers":[8,"has-more-eligible-members"],"isLoadingMembers":[8,"is-loading-members"],"activeTab":[8,"active-tab"],"docsAttachments":[8,"docs-attachments"],"linksAttachments":[8,"links-attachments"],"allLinks":[8,"all-links"],"allLinksCount":[8,"all-links-count"],"isBlocked":[8,"is-blocked"],"conversationMetaData":[8,"conversation-meta-data"],"closeContactInfo":[8,"close-contact-info"]}],[1,"reply-block",{"color":[1],"fontSize":[1,"font-size"],"textAlign":[1,"text-align"],"fontWeight":[1,"font-weight"],"fontStyle":[1,"font-style"],"backgroundColor":[1,"background-color"],"borderColor":[1,"border-color"],"borderWidth":[1,"border-width"],"borderStyle":[1,"border-style"],"borderRadius":[1,"border-radius"],"fontFamily":[1,"font-family"],"width":[1],"height":[1],"display":[1],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"],"padding":[1],"messageBody":[1,"message-body"],"senderName":[1,"sender-name"],"messageTime":[1,"message-time"],"icon1":[8,"icon-1"],"icon2":[8,"icon-2"],"onIconClick":[16],"messageInfo":[8,"message-info"]}]]],["p-fc3fd090",[[1,"web-chat",{"customParts":[1040],"name":[1],"baseUrl":[1,"base-url"],"licenseKey":[1,"license-key"],"appSecret":[1,"app-secret"],"userSecret":[1,"user-secret"],"userToken":[1,"user-token"],"themeUrl":[1,"theme-url"],"defaultTheme":[1,"default-theme"],"isometrikUserId":[1,"isometrik-user-id"],"projectId":[1,"project-id"],"keysetId":[1,"keyset-id"],"accountId":[1,"account-id"],"conversationId":[1,"conversation-id"],"hostUrl":[1,"host-url"],"groupcastEnabled":[4,"groupcast-enabled"],"showProfileRail":[4,"show-profile-rail"],"showChatWallpaper":[4,"show-chat-wallpaper"],"showHeader":[4,"show-header"],"showComposer":[4,"show-composer"],"showEmptyState":[4,"show-empty-state"],"showConversationList":[4,"show-conversation-list"],"showRightPanel":[4,"show-right-panel"],"showMqttStatus":[4,"show-mqtt-status"],"enablePushNotifications":[4,"enable-push-notifications"],"enableLocalNotifications":[4,"enable-local-notifications"],"onLocalNotification":[16],"isChatFilter":[4,"is-chat-filter"],"isAllChatButton":[4,"is-all-chat-button"],"isSidebarHeaderLabel":[4,"is-sidebar-header-label"],"sidebarHeaderLabel":[1,"sidebar-header-label"],"isSidebarHeaderSearch":[4,"is-sidebar-header-search"],"sidebarColor":[1,"sidebar-color"],"sidebarSelectedColor":[1,"sidebar-selected-color"],"toggleTheme":[16],"unreadConversations":[32],"allLinks":[32],"allLinksCount":[32],"isInitialized":[32],"findUserId":[32],"mqttClient":[32],"mqttInitialized":[32],"isMqttConnected":[32],"allMessages":[32],"selectConversationMessages":[32],"userMetaData":[32],"allConversationList":[32],"conversationMetaData":[32],"selctConversationMetaData":[32],"isMessageLimitEnd":[32],"skip":[32],"isMessagesLoading":[32],"isMessageSending":[32],"deviceId":[32],"isScrollToBottom":[32],"isScrollToTop":[32],"isConversationLoading":[32],"isLoadingConversationList":[32],"unreadConversationsCount":[32],"isChatClosed":[32],"isChatMinimized":[32],"isSubscribedToTopic":[32],"isMessageListenerAttached":[32],"isInitialCallDone":[32],"isTyping":[32],"typingUserName":[32],"selectedConversationId":[32],"unreadMessageCount":[32],"unreadMessageCountFromApi":[32],"isLoading":[32],"loadingProgress":[32],"loadingStatus":[32],"isLoadingMessage":[32],"hasMoreConversations":[32],"eligibleMembers":[32],"membersListSkip":[32],"hasMoreEligibleMembers":[32],"isMobileView":[32],"showSidebar":[32],"isContactInfoOpen":[32],"isProfileInfoOpen":[32],"isOpenSearchBar":[32],"messageSearchText":[32],"searchedMessageDetails":[32],"initialConversationIdFromURL":[32],"allAttachments":[32],"selectConverSationAttachments":[32],"highlightedMessageId":[32],"messageAction":[32],"replyMessage":[32],"messageInfoPanel":[32],"loadingMediaGallery":[32],"activeTab":[32],"showRightSideBar":[32],"conversationIdFromContactinfo":[32],"exitedGroupIds":[32],"conversationCountSkip":[32],"typingConversationId":[32],"newMessageNotification":[32],"isBlocked":[32],"allGroupCastContacts":[32],"groupcastSkip":[32],"isLoadingMoreGroupcast":[32],"hasMoreGroupcast":[32],"groupcastMembers":[32],"setCustomParts":[64],"selectConversation":[64],"setReply":[64],"clearReply":[64],"sendText":[64],"sendMedia":[64],"loadMoreMessages":[64],"loadMoreConversations":[64],"getChatState":[64]},[[0,"remove-member-clicked","handleRemoveMemberClicked"],[0,"profile-clicked","onProfileClick"],[0,"members-list-scrolled-to-bottom","handleMembersListScrolledToBottom"],[0,"close-right-Sidebar","handleContactInfo"],[0,"close-contact-info","handleProfileInfo"],[0,"message-info-panel-change","handleMessageInfoPanelChange"],[0,"open-right-Sidebar","handleOpen"],[0,"get-links","handleGetLinks"],[0,"groupExited","handleGroupExited"],[0,"tagUserClick","handleTaguserClick"],[16,"contact-action","handleContactAction"],[0,"chat-tile-list-scrolled-to-bottom","handleChatTileScrolledToBottom"],[0,"conversation-updated","handleConversationUpdate"],[0,"groupcastScrolledToBottom","handleGroupcastScroll"],[0,"delete-groupcast","handleDeleteGroupcast"]],{"isLoading":["onLoadingChange"],"allConversationList":["onConversationListChange"],"allMessages":["onMessagesChange","handlemessageAction"],"replyMessage":["onReplyMessageChange"],"skip":["handleSkipChange"],"isTyping":["handleTypingChange"],"selectedConversationId":["handleSelectedConversationChange"],"initialConversationIdFromURL":["handleSelectedConversationChange"],"selectConversationMessages":["handlemessageAction"],"conversationMetaData":["watchPropHandler"]}],[1,"login-page",{"username":[32],"password":[32],"errorMessage":[32],"isLoading":[32],"showPassword":[32]}],[1,"theme-provider",{"themePath":[1,"theme-path"],"mode":[1537],"themeObject":[16],"mirrorToDocument":[4,"mirror-to-document"],"styleElement":[32],"toggleTheme":[64],"setTheme":[64],"setThemeObject":[64]},null,{"themePath":["handleThemePathChange"],"mode":["handleModeChange"],"themeObject":["handleThemeObjectChange"],"mirrorToDocument":["handleMirrorChange"]}]]]]'),e)}));
2
2
  //# sourceMappingURL=isometrik-webchat.esm.js.map
@@ -0,0 +1,2 @@
1
+ var t=undefined&&undefined.__rest||function(t,s){var e={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&s.indexOf(n)<0)e[n]=t[n];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++){if(s.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i]))e[n[i]]=t[n[i]]}return e};const s="isometrik-webchat-v1";const e=1;function n(){return new Promise(((t,n)=>{const i=indexedDB.open(s,e);i.onupgradeneeded=()=>{const t=i.result;if(!t.objectStoreNames.contains("conversations")){const s=t.createObjectStore("conversations",{keyPath:"id"});s.createIndex("userId","userId",{unique:false})}if(!t.objectStoreNames.contains("messages")){const s=t.createObjectStore("messages",{keyPath:"id"});s.createIndex("userId","userId",{unique:false});s.createIndex("userConv",["userId","conversationId"],{unique:false})}if(!t.objectStoreNames.contains("outbox")){const s=t.createObjectStore("outbox",{keyPath:"localId"});s.createIndex("userId","userId",{unique:false})}if(!t.objectStoreNames.contains("meta")){t.createObjectStore("meta",{keyPath:"key"})}};i.onsuccess=()=>t(i.result);i.onerror=()=>n(i.error)}))}function i(t){return new Promise(((s,e)=>{t.onsuccess=()=>s(t.result);t.onerror=()=>e(t.error)}))}function a(t){return new Promise(((s,e)=>{t.oncomplete=()=>s();t.onerror=()=>e(t.error);t.onabort=()=>e(t.error)}))}class o{constructor(){this.dbPromise=null}db(){if(!this.dbPromise)this.dbPromise=n();return this.dbPromise}async putConversation(t){const s=await this.db();const e=s.transaction("conversations","readwrite");e.objectStore("conversations").put(Object.assign(Object.assign({},t),{id:`${t.userId}:${t.conversationId}`}));await a(e)}async putConversations(t){if(!t.length)return;const s=await this.db();const e=s.transaction("conversations","readwrite");const n=e.objectStore("conversations");for(const s of t){n.put(Object.assign(Object.assign({},s),{id:`${s.userId}:${s.conversationId}`}))}await a(e)}async getConversations(s){const e=await this.db();const n=e.transaction("conversations","readonly");const a=n.objectStore("conversations").index("userId");const o=await i(a.getAll(s));return(o||[]).map((s=>{var e=t(s,["id"]);return e}))}async putMessage(t){const s=await this.db();const e=s.transaction("messages","readwrite");e.objectStore("messages").put(Object.assign(Object.assign({},t),{id:`${t.userId}:${t.messageId}`}));await a(e)}async putMessages(t){if(!t.length)return;const s=await this.db();const e=s.transaction("messages","readwrite");const n=e.objectStore("messages");for(const s of t){n.put(Object.assign(Object.assign({},s),{id:`${s.userId}:${s.messageId}`}))}await a(e)}async getMessages(s,e){const n=await this.db();const a=n.transaction("messages","readonly");const o=a.objectStore("messages").index("userConv");const r=await i(o.getAll([s,e]));const c=(r||[]).map((s=>{var e=t(s,["id"]);return e}));return c.sort(((t,s)=>{var e,n,i,a;return((n=(e=t.payload)===null||e===void 0?void 0:e.sentAt)!==null&&n!==void 0?n:t.updatedAt)-((a=(i=s.payload)===null||i===void 0?void 0:i.sentAt)!==null&&a!==void 0?a:s.updatedAt)}))}async clearMessages(t,s){const e=await this.db();const n=e.transaction("messages","readwrite");const o=n.objectStore("messages").index("userConv");const r=await i(o.getAll([t,s]));const c=n.objectStore("messages");for(const t of r||[]){c.delete(t.id)}await a(n)}async putOutbox(t){const s=await this.db();const e=s.transaction("outbox","readwrite");e.objectStore("outbox").put(t);await a(e)}async getOutbox(t){const s=await this.db();const e=s.transaction("outbox","readonly");const n=e.objectStore("outbox").index("userId");const a=await i(n.getAll(t));return(a||[]).sort(((t,s)=>t.createdAt-s.createdAt))}async deleteOutbox(t){const s=await this.db();const e=s.transaction("outbox","readwrite");e.objectStore("outbox").delete(t);await a(e)}async putMeta(t){const s=await this.db();const e=s.transaction("meta","readwrite");e.objectStore("meta").put(t);await a(e)}async getMeta(t){const s=await this.db();const e=s.transaction("meta","readonly");const n=await i(e.objectStore("meta").get(t));return n===null||n===void 0?void 0:n.value}async clearUser(t){const s=await this.getConversations(t);const e=await this.db();const n=e.transaction(["conversations","messages","outbox","meta"],"readwrite");for(const e of s){n.objectStore("conversations").delete(`${t}:${e.conversationId}`)}const o=n.objectStore("messages").index("userId");const r=await i(o.getAll(t));for(const t of r||[]){n.objectStore("messages").delete(t.id)}const c=await i(n.objectStore("outbox").index("userId").getAll(t));for(const t of c||[]){n.objectStore("outbox").delete(t.localId)}await a(n)}}function r(){try{return typeof indexedDB!=="undefined"&&!!indexedDB.open}catch(t){return false}}class c{constructor(){this.conversations=new Map;this.messages=new Map;this.outbox=new Map;this.meta=new Map}async putConversation(t){this.conversations.set(`${t.userId}:${t.conversationId}`,t)}async putConversations(t){for(const s of t)await this.putConversation(s)}async getConversations(t){return[...this.conversations.values()].filter((s=>s.userId===t))}async putMessage(t){this.messages.set(`${t.userId}:${t.messageId}`,t)}async putMessages(t){for(const s of t)await this.putMessage(s)}async getMessages(t,s){return[...this.messages.values()].filter((e=>e.userId===t&&e.conversationId===s)).sort(((t,s)=>{var e,n,i,a;return((n=(e=t.payload)===null||e===void 0?void 0:e.sentAt)!==null&&n!==void 0?n:t.updatedAt)-((a=(i=s.payload)===null||i===void 0?void 0:i.sentAt)!==null&&a!==void 0?a:s.updatedAt)}))}async clearMessages(t,s){for(const[e,n]of this.messages){if(n.userId===t&&n.conversationId===s)this.messages.delete(e)}}async putOutbox(t){this.outbox.set(t.localId,t)}async getOutbox(t){return[...this.outbox.values()].filter((s=>s.userId===t)).sort(((t,s)=>t.createdAt-s.createdAt))}async deleteOutbox(t){this.outbox.delete(t)}async putMeta(t){this.meta.set(t.key,t)}async getMeta(t){var s;return(s=this.meta.get(t))===null||s===void 0?void 0:s.value}async clearUser(t){for(const[s,e]of this.conversations)if(e.userId===t)this.conversations.delete(s);for(const[s,e]of this.messages)if(e.userId===t)this.messages.delete(s);for(const[s,e]of this.outbox)if(e.userId===t)this.outbox.delete(s);for(const[s]of this.meta)if(s.startsWith(`${t}:`))this.meta.delete(s)}}const u="isometrik-webchat-offline-v1";class d{constructor(){this.channel=null;this.handler=null}start(t){this.handler=t;if(typeof BroadcastChannel==="undefined")return;try{this.channel=new BroadcastChannel(u);this.channel.onmessage=t=>{if((t===null||t===void 0?void 0:t.data)&&this.handler)this.handler(t.data)}}catch(t){this.channel=null}}publish(t){var s;try{(s=this.channel)===null||s===void 0?void 0:s.postMessage(t)}catch(t){}}stop(){var t;try{(t=this.channel)===null||t===void 0?void 0:t.close()}catch(t){}this.channel=null;this.handler=null}}function l(t,s){const e=new Map;(t||[]).forEach((t=>{if(t===null||t===void 0?void 0:t.messageId)e.set(String(t.messageId),t)}));(s||[]).forEach((t=>{if(t===null||t===void 0?void 0:t.messageId)e.set(String(t.messageId),t)}));return Array.from(e.values()).sort(((t,s)=>{var e,n,i,a;const o=(n=(e=t===null||t===void 0?void 0:t.sentAt)!==null&&e!==void 0?e:t===null||t===void 0?void 0:t.updatedAt)!==null&&n!==void 0?n:0;const r=(a=(i=s===null||s===void 0?void 0:s.sentAt)!==null&&i!==void 0?i:s===null||s===void 0?void 0:s.updatedAt)!==null&&a!==void 0?a:0;return o-r}))}function h(){if(typeof navigator==="undefined")return true;return navigator.onLine!==false}function v(){return Date.now()}class f{constructor(t){this.bus=new d;this.flushing=false;this.userId=null;this.db=t||(r()?new o:new c)}static withMemory(){return new f(new c)}setUser(t){this.userId=t}startTabSync(t){this.bus.start((s=>{if(!this.userId||s.userId!==this.userId)return;t(s)}))}stopTabSync(){this.bus.stop()}async persistConversations(t,s){const e=(s||[]).filter((t=>t===null||t===void 0?void 0:t.conversationId)).map((s=>({conversationId:s.conversationId,userId:t,payload:s,updatedAt:v()})));await this.db.putConversations(e);this.bus.publish({type:"conversations",userId:t,conversations:s})}async loadConversations(t){const s=await this.db.getConversations(t);return s.map((t=>t.payload)).sort(((t,s)=>{var e,n;return(((e=s===null||s===void 0?void 0:s.lastMessageDetails)===null||e===void 0?void 0:e.updatedAt)||0)-(((n=t===null||t===void 0?void 0:t.lastMessageDetails)===null||n===void 0?void 0:n.updatedAt)||0)}))}async persistMessages(t,s,e){if(!(e===null||e===void 0?void 0:e.length)){await this.db.clearMessages(t,s);this.bus.publish({type:"messages",userId:t,conversationId:s,messages:[]});return}const n=(e||[]).filter((t=>t===null||t===void 0?void 0:t.messageId)).map((e=>({messageId:e.messageId,conversationId:s,userId:t,payload:e,updatedAt:v()})));await this.db.putMessages(n);this.bus.publish({type:"messages",userId:t,conversationId:s,messages:e})}async clearMessages(t,s){await this.db.clearMessages(t,s);this.bus.publish({type:"messages",userId:t,conversationId:s,messages:[]})}async loadMessages(t,s){const e=await this.db.getMessages(t,s);return e.map((t=>t.payload))}async mergeAndPersistMessages(t,s,e){const n=await this.loadMessages(t,s);const i=l(n,e);await this.persistMessages(t,s,i);return i}async enqueueText(t){const s=Object.assign(Object.assign({},t),{kind:"text",status:"pending",attempts:0,createdAt:v(),updatedAt:v()});await this.db.putOutbox(s);const e=await this.db.getOutbox(t.userId);this.bus.publish({type:"outbox",userId:t.userId,items:e});return s}async enqueueMedia(t){const s=Object.assign(Object.assign({},t),{kind:"media",body:t.body||t.caption||"AttachmentMessage:Multiple",status:"pending",attempts:0,createdAt:v(),updatedAt:v()});await this.db.putOutbox(s);const e=await this.db.getOutbox(t.userId);this.bus.publish({type:"outbox",userId:t.userId,items:e});return s}async updateOutbox(t){t.updatedAt=v();await this.db.putOutbox(t)}async listOutbox(t){return this.db.getOutbox(t)}async removeOutbox(t){await this.db.deleteOutbox(t)}async setCursor(t,s,e){await this.db.putMeta({key:`${t}:cursor:${s}`,value:e,updatedAt:v()})}async getCursor(t,s){return this.db.getMeta(`${t}:cursor:${s}`)}async flushOutbox(t,s){if(this.flushing)return{sent:0,failed:0};this.flushing=true;let e=0;let n=0;try{const i=(await this.db.getOutbox(t)).filter((t=>t.status==="pending"||t.status==="failed"));for(const t of i){if(t.attempts>=8)continue;t.status="sending";t.attempts+=1;await this.updateOutbox(t);try{const i=await s(t);if(i){await this.db.deleteOutbox(t.localId);e+=1}else{t.status="failed";t.lastError="send returned empty";await this.updateOutbox(t);n+=1}}catch(s){t.status="failed";t.lastError=(s===null||s===void 0?void 0:s.message)||String(s);await this.updateOutbox(t);n+=1}}const a=await this.db.getOutbox(t);this.bus.publish({type:"outbox",userId:t,items:a})}finally{this.flushing=false}return{sent:e,failed:n}}}let w=null;function y(){if(!w)w=new f;return w}export{r as c,y as g,h as i,l as m};
2
+ //# sourceMappingURL=p-f0d4687f.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DB_NAME","DB_VERSION","openDb","Promise","resolve","reject","req","indexedDB","open","onupgradeneeded","db","result","objectStoreNames","contains","s","createObjectStore","keyPath","createIndex","unique","onsuccess","onerror","error","reqToPromise","txDone","tx","oncomplete","onabort","IdbOfflineDb","constructor","this","dbPromise","putConversation","row","transaction","objectStore","put","Object","assign","id","userId","conversationId","putConversations","rows","length","store","getConversations","idx","index","getAll","map","_a","rest","__rest","putMessage","messageId","putMessages","getMessages","list","sort","a","b","_b","_c","_d","payload","sentAt","updatedAt","clearMessages","delete","putOutbox","item","getOutbox","createdAt","deleteOutbox","localId","putMeta","getMeta","key","get","value","clearUser","conv","c","msgIdx","msgs","m","out","o","canUseIndexedDb","MemoryOfflineDb","conversations","Map","messages","outbox","meta","set","values","filter","r","k","v","i","startsWith","CHANNEL","OfflineTabBus","channel","handler","start","BroadcastChannel","onmessage","ev","data","publish","event","postMessage","stop","close","mergeMessagesById","existing","incoming","byId","forEach","String","Array","from","ta","tb","isBrowserOnline","navigator","onLine","now","Date","OfflineClient","bus","flushing","withMemory","setUser","startTabSync","onRemote","stopTabSync","persistConversations","type","loadConversations","lastMessageDetails","persistMessages","loadMessages","mergeAndPersistMessages","merged","enqueueText","kind","status","attempts","items","enqueueMedia","body","caption","updateOutbox","listOutbox","removeOutbox","setCursor","cursor","getCursor","flushOutbox","sendFn","sent","failed","serverId","lastError","e","message","next","singleton","getOfflineClient"],"sources":["src/lib/offline/idb.ts","src/lib/offline/memory-db.ts","src/lib/offline/multitab.ts","src/lib/offline/merge.ts","src/lib/offline/client.ts"],"sourcesContent":["/**\n * Minimal IndexedDB wrapper — no extra dependency.\n * DB: isometrik-webchat-v1\n */\n\nimport type { OfflineMeta, OutboxItem, StoredConversation, StoredMessage } from './types';\n\nconst DB_NAME = 'isometrik-webchat-v1';\nconst DB_VERSION = 1;\n\nexport type OfflineDbApi = {\n putConversation(row: StoredConversation): Promise<void>;\n putConversations(rows: StoredConversation[]): Promise<void>;\n getConversations(userId: string): Promise<StoredConversation[]>;\n putMessage(row: StoredMessage): Promise<void>;\n putMessages(rows: StoredMessage[]): Promise<void>;\n getMessages(userId: string, conversationId: string): Promise<StoredMessage[]>;\n clearMessages(userId: string, conversationId: string): Promise<void>;\n putOutbox(item: OutboxItem): Promise<void>;\n getOutbox(userId: string): Promise<OutboxItem[]>;\n deleteOutbox(localId: string): Promise<void>;\n putMeta(row: OfflineMeta): Promise<void>;\n getMeta<T = unknown>(key: string): Promise<T | undefined>;\n clearUser(userId: string): Promise<void>;\n};\n\nfunction openDb(): Promise<IDBDatabase> {\n return new Promise((resolve, reject) => {\n const req = indexedDB.open(DB_NAME, DB_VERSION);\n req.onupgradeneeded = () => {\n const db = req.result;\n if (!db.objectStoreNames.contains('conversations')) {\n const s = db.createObjectStore('conversations', { keyPath: 'id' });\n s.createIndex('userId', 'userId', { unique: false });\n }\n if (!db.objectStoreNames.contains('messages')) {\n const s = db.createObjectStore('messages', { keyPath: 'id' });\n s.createIndex('userId', 'userId', { unique: false });\n s.createIndex('userConv', ['userId', 'conversationId'], { unique: false });\n }\n if (!db.objectStoreNames.contains('outbox')) {\n const s = db.createObjectStore('outbox', { keyPath: 'localId' });\n s.createIndex('userId', 'userId', { unique: false });\n }\n if (!db.objectStoreNames.contains('meta')) {\n db.createObjectStore('meta', { keyPath: 'key' });\n }\n };\n req.onsuccess = () => resolve(req.result);\n req.onerror = () => reject(req.error);\n });\n}\n\nfunction reqToPromise<T>(req: IDBRequest<T>): Promise<T> {\n return new Promise((resolve, reject) => {\n req.onsuccess = () => resolve(req.result);\n req.onerror = () => reject(req.error);\n });\n}\n\nfunction txDone(tx: IDBTransaction): Promise<void> {\n return new Promise((resolve, reject) => {\n tx.oncomplete = () => resolve();\n tx.onerror = () => reject(tx.error);\n tx.onabort = () => reject(tx.error);\n });\n}\n\nexport class IdbOfflineDb implements OfflineDbApi {\n private dbPromise: Promise<IDBDatabase> | null = null;\n\n private db() {\n if (!this.dbPromise) this.dbPromise = openDb();\n return this.dbPromise;\n }\n\n async putConversation(row: StoredConversation) {\n const db = await this.db();\n const tx = db.transaction('conversations', 'readwrite');\n tx.objectStore('conversations').put({ ...row, id: `${row.userId}:${row.conversationId}` });\n await txDone(tx);\n }\n\n async putConversations(rows: StoredConversation[]) {\n if (!rows.length) return;\n const db = await this.db();\n const tx = db.transaction('conversations', 'readwrite');\n const store = tx.objectStore('conversations');\n for (const row of rows) {\n store.put({ ...row, id: `${row.userId}:${row.conversationId}` });\n }\n await txDone(tx);\n }\n\n async getConversations(userId: string): Promise<StoredConversation[]> {\n const db = await this.db();\n const tx = db.transaction('conversations', 'readonly');\n const idx = tx.objectStore('conversations').index('userId');\n const rows = await reqToPromise(idx.getAll(userId));\n return (rows || []).map(({ id: _id, ...rest }: any) => rest as StoredConversation);\n }\n\n async putMessage(row: StoredMessage) {\n const db = await this.db();\n const tx = db.transaction('messages', 'readwrite');\n tx.objectStore('messages').put({ ...row, id: `${row.userId}:${row.messageId}` });\n await txDone(tx);\n }\n\n async putMessages(rows: StoredMessage[]) {\n if (!rows.length) return;\n const db = await this.db();\n const tx = db.transaction('messages', 'readwrite');\n const store = tx.objectStore('messages');\n for (const row of rows) {\n store.put({ ...row, id: `${row.userId}:${row.messageId}` });\n }\n await txDone(tx);\n }\n\n async getMessages(userId: string, conversationId: string): Promise<StoredMessage[]> {\n const db = await this.db();\n const tx = db.transaction('messages', 'readonly');\n const idx = tx.objectStore('messages').index('userConv');\n const rows = await reqToPromise(idx.getAll([userId, conversationId]));\n const list = (rows || []).map(({ id: _id, ...rest }: any) => rest as StoredMessage);\n return list.sort((a, b) => (a.payload?.sentAt ?? a.updatedAt) - (b.payload?.sentAt ?? b.updatedAt));\n }\n\n async clearMessages(userId: string, conversationId: string) {\n const db = await this.db();\n const tx = db.transaction('messages', 'readwrite');\n const idx = tx.objectStore('messages').index('userConv');\n const rows = await reqToPromise(idx.getAll([userId, conversationId]));\n const store = tx.objectStore('messages');\n for (const row of rows || []) {\n store.delete((row as any).id);\n }\n await txDone(tx);\n }\n\n async putOutbox(item: OutboxItem) {\n const db = await this.db();\n const tx = db.transaction('outbox', 'readwrite');\n tx.objectStore('outbox').put(item);\n await txDone(tx);\n }\n\n async getOutbox(userId: string): Promise<OutboxItem[]> {\n const db = await this.db();\n const tx = db.transaction('outbox', 'readonly');\n const idx = tx.objectStore('outbox').index('userId');\n const rows = (await reqToPromise(idx.getAll(userId))) as OutboxItem[];\n return (rows || []).sort((a, b) => a.createdAt - b.createdAt);\n }\n\n async deleteOutbox(localId: string) {\n const db = await this.db();\n const tx = db.transaction('outbox', 'readwrite');\n tx.objectStore('outbox').delete(localId);\n await txDone(tx);\n }\n\n async putMeta(row: OfflineMeta) {\n const db = await this.db();\n const tx = db.transaction('meta', 'readwrite');\n tx.objectStore('meta').put(row);\n await txDone(tx);\n }\n\n async getMeta<T = unknown>(key: string): Promise<T | undefined> {\n const db = await this.db();\n const tx = db.transaction('meta', 'readonly');\n const row = await reqToPromise(tx.objectStore('meta').get(key));\n return row?.value as T | undefined;\n }\n\n async clearUser(userId: string) {\n const conv = await this.getConversations(userId);\n const db = await this.db();\n const tx = db.transaction(['conversations', 'messages', 'outbox', 'meta'], 'readwrite');\n for (const c of conv) {\n tx.objectStore('conversations').delete(`${userId}:${c.conversationId}`);\n }\n // messages: scan userId index\n const msgIdx = tx.objectStore('messages').index('userId');\n const msgs = await reqToPromise(msgIdx.getAll(userId));\n for (const m of msgs || []) {\n tx.objectStore('messages').delete((m as any).id);\n }\n const out = await reqToPromise(tx.objectStore('outbox').index('userId').getAll(userId));\n for (const o of out || []) {\n tx.objectStore('outbox').delete((o as OutboxItem).localId);\n }\n await txDone(tx);\n }\n}\n\nexport function canUseIndexedDb(): boolean {\n try {\n return typeof indexedDB !== 'undefined' && !!indexedDB.open;\n } catch {\n return false;\n }\n}\n","/** In-memory fallback when IndexedDB is unavailable (SSR / tests / private mode). */\n\nimport type { OfflineMeta, OutboxItem, StoredConversation, StoredMessage } from './types';\n\nexport class MemoryOfflineDb {\n conversations = new Map<string, StoredConversation>();\n messages = new Map<string, StoredMessage>();\n outbox = new Map<string, OutboxItem>();\n meta = new Map<string, OfflineMeta>();\n\n async putConversation(row: StoredConversation) {\n this.conversations.set(`${row.userId}:${row.conversationId}`, row);\n }\n\n async putConversations(rows: StoredConversation[]) {\n for (const row of rows) await this.putConversation(row);\n }\n\n async getConversations(userId: string): Promise<StoredConversation[]> {\n return [...this.conversations.values()].filter(r => r.userId === userId);\n }\n\n async putMessage(row: StoredMessage) {\n this.messages.set(`${row.userId}:${row.messageId}`, row);\n }\n\n async putMessages(rows: StoredMessage[]) {\n for (const row of rows) await this.putMessage(row);\n }\n\n async getMessages(userId: string, conversationId: string): Promise<StoredMessage[]> {\n return [...this.messages.values()]\n .filter(r => r.userId === userId && r.conversationId === conversationId)\n .sort((a, b) => (a.payload?.sentAt ?? a.updatedAt) - (b.payload?.sentAt ?? b.updatedAt));\n }\n\n async clearMessages(userId: string, conversationId: string) {\n for (const [k, v] of this.messages) {\n if (v.userId === userId && v.conversationId === conversationId) this.messages.delete(k);\n }\n }\n\n async putOutbox(item: OutboxItem) {\n this.outbox.set(item.localId, item);\n }\n\n async getOutbox(userId: string): Promise<OutboxItem[]> {\n return [...this.outbox.values()]\n .filter(i => i.userId === userId)\n .sort((a, b) => a.createdAt - b.createdAt);\n }\n\n async deleteOutbox(localId: string) {\n this.outbox.delete(localId);\n }\n\n async putMeta(row: OfflineMeta) {\n this.meta.set(row.key, row);\n }\n\n async getMeta<T = unknown>(key: string): Promise<T | undefined> {\n return this.meta.get(key)?.value as T | undefined;\n }\n\n async clearUser(userId: string) {\n for (const [k, v] of this.conversations) if (v.userId === userId) this.conversations.delete(k);\n for (const [k, v] of this.messages) if (v.userId === userId) this.messages.delete(k);\n for (const [k, v] of this.outbox) if (v.userId === userId) this.outbox.delete(k);\n for (const [k] of this.meta) if (k.startsWith(`${userId}:`)) this.meta.delete(k);\n }\n}\n","/**\n * Multi-tab sync via BroadcastChannel (same origin).\n * Falls back to no-op when BroadcastChannel is missing.\n */\n\nimport type { OfflineEvent } from './types';\n\nconst CHANNEL = 'isometrik-webchat-offline-v1';\n\nexport type OfflineTabHandler = (event: OfflineEvent) => void;\n\nexport class OfflineTabBus {\n private channel: BroadcastChannel | null = null;\n private handler: OfflineTabHandler | null = null;\n\n start(handler: OfflineTabHandler) {\n this.handler = handler;\n if (typeof BroadcastChannel === 'undefined') return;\n try {\n this.channel = new BroadcastChannel(CHANNEL);\n this.channel.onmessage = ev => {\n if (ev?.data && this.handler) this.handler(ev.data as OfflineEvent);\n };\n } catch {\n this.channel = null;\n }\n }\n\n publish(event: OfflineEvent) {\n try {\n this.channel?.postMessage(event);\n } catch {\n /* ignore */\n }\n }\n\n stop() {\n try {\n this.channel?.close();\n } catch {\n /* ignore */\n }\n this.channel = null;\n this.handler = null;\n }\n}\n","/** Merge message arrays by messageId, sort by sentAt. */\n\nexport function mergeMessagesById(existing: any[], incoming: any[]): any[] {\n const byId = new Map<string, any>();\n (existing || []).forEach(m => {\n if (m?.messageId) byId.set(String(m.messageId), m);\n });\n (incoming || []).forEach(m => {\n if (m?.messageId) byId.set(String(m.messageId), m);\n });\n return Array.from(byId.values()).sort((a, b) => {\n const ta = a?.sentAt ?? a?.updatedAt ?? 0;\n const tb = b?.sentAt ?? b?.updatedAt ?? 0;\n return ta - tb;\n });\n}\n\nexport function isBrowserOnline(): boolean {\n if (typeof navigator === 'undefined') return true;\n return navigator.onLine !== false;\n}\n","/**\n * Offline client: IndexedDB (or memory) + outbox + multi-tab bus.\n */\n\nimport { canUseIndexedDb, IdbOfflineDb, type OfflineDbApi } from './idb';\nimport { MemoryOfflineDb } from './memory-db';\nimport { OfflineTabBus } from './multitab';\nimport type { OutboxItem, StoredConversation, StoredMessage } from './types';\nimport { mergeMessagesById } from './merge';\n\nfunction now() {\n return Date.now();\n}\n\nexport class OfflineClient {\n private db: OfflineDbApi;\n private bus = new OfflineTabBus();\n private flushing = false;\n userId: string | null = null;\n\n constructor(db?: OfflineDbApi) {\n this.db = db || (canUseIndexedDb() ? new IdbOfflineDb() : (new MemoryOfflineDb() as unknown as OfflineDbApi));\n }\n\n /** For tests — inject memory backend. */\n static withMemory() {\n return new OfflineClient(new MemoryOfflineDb() as unknown as OfflineDbApi);\n }\n\n setUser(userId: string | null) {\n this.userId = userId;\n }\n\n startTabSync(onRemote: (event: import('./types').OfflineEvent) => void) {\n this.bus.start(event => {\n if (!this.userId || (event as any).userId !== this.userId) return;\n onRemote(event);\n });\n }\n\n stopTabSync() {\n this.bus.stop();\n }\n\n async persistConversations(userId: string, conversations: any[]) {\n const rows: StoredConversation[] = (conversations || [])\n .filter(c => c?.conversationId)\n .map(c => ({\n conversationId: c.conversationId,\n userId,\n payload: c,\n updatedAt: now(),\n }));\n await this.db.putConversations(rows);\n this.bus.publish({ type: 'conversations', userId, conversations });\n }\n\n async loadConversations(userId: string): Promise<any[]> {\n const rows = await this.db.getConversations(userId);\n return rows\n .map(r => r.payload)\n .sort((a, b) => (b?.lastMessageDetails?.updatedAt || 0) - (a?.lastMessageDetails?.updatedAt || 0));\n }\n\n async persistMessages(userId: string, conversationId: string, messages: any[]) {\n // Empty = wipe (clear chat). putMessages alone never deletes orphans.\n if (!messages?.length) {\n await this.db.clearMessages(userId, conversationId);\n this.bus.publish({ type: 'messages', userId, conversationId, messages: [] });\n return;\n }\n const rows: StoredMessage[] = (messages || [])\n .filter(m => m?.messageId)\n .map(m => ({\n messageId: m.messageId,\n conversationId,\n userId,\n payload: m,\n updatedAt: now(),\n }));\n await this.db.putMessages(rows);\n this.bus.publish({ type: 'messages', userId, conversationId, messages });\n }\n\n /** Drop cached thread after clear-chat (API already wiped server-side for this user). */\n async clearMessages(userId: string, conversationId: string) {\n await this.db.clearMessages(userId, conversationId);\n this.bus.publish({ type: 'messages', userId, conversationId, messages: [] });\n }\n\n async loadMessages(userId: string, conversationId: string): Promise<any[]> {\n const rows = await this.db.getMessages(userId, conversationId);\n return rows.map(r => r.payload);\n }\n\n async mergeAndPersistMessages(userId: string, conversationId: string, incoming: any[]) {\n const existing = await this.loadMessages(userId, conversationId);\n const merged = mergeMessagesById(existing, incoming);\n await this.persistMessages(userId, conversationId, merged);\n return merged;\n }\n\n async enqueueText(item: Omit<OutboxItem, 'status' | 'attempts' | 'createdAt' | 'updatedAt' | 'kind'> & { kind?: 'text' }) {\n const row: OutboxItem = {\n ...item,\n kind: 'text',\n status: 'pending',\n attempts: 0,\n createdAt: now(),\n updatedAt: now(),\n };\n await this.db.putOutbox(row);\n const items = await this.db.getOutbox(item.userId);\n this.bus.publish({ type: 'outbox', userId: item.userId, items });\n return row;\n }\n\n async enqueueMedia(\n item: Omit<OutboxItem, 'status' | 'attempts' | 'createdAt' | 'updatedAt' | 'kind'> & {\n mediaFiles: NonNullable<OutboxItem['mediaFiles']>;\n },\n ) {\n const row: OutboxItem = {\n ...item,\n kind: 'media',\n body: item.body || item.caption || 'AttachmentMessage:Multiple',\n status: 'pending',\n attempts: 0,\n createdAt: now(),\n updatedAt: now(),\n };\n await this.db.putOutbox(row);\n const items = await this.db.getOutbox(item.userId);\n this.bus.publish({ type: 'outbox', userId: item.userId, items });\n return row;\n }\n\n async updateOutbox(item: OutboxItem) {\n item.updatedAt = now();\n await this.db.putOutbox(item);\n }\n\n async listOutbox(userId: string) {\n return this.db.getOutbox(userId);\n }\n\n async removeOutbox(localId: string) {\n await this.db.deleteOutbox(localId);\n }\n\n async setCursor(userId: string, conversationId: string, cursor: number) {\n await this.db.putMeta({\n key: `${userId}:cursor:${conversationId}`,\n value: cursor,\n updatedAt: now(),\n });\n }\n\n async getCursor(userId: string, conversationId: string): Promise<number | undefined> {\n return this.db.getMeta<number>(`${userId}:cursor:${conversationId}`);\n }\n\n /**\n * Flush pending text outbox via `sendFn`.\n * sendFn should return server messageId on success.\n */\n async flushOutbox(\n userId: string,\n sendFn: (item: OutboxItem) => Promise<string | null>,\n ): Promise<{ sent: number; failed: number }> {\n if (this.flushing) return { sent: 0, failed: 0 };\n this.flushing = true;\n let sent = 0;\n let failed = 0;\n try {\n const items = (await this.db.getOutbox(userId)).filter(\n i => i.status === 'pending' || i.status === 'failed',\n );\n for (const item of items) {\n if (item.attempts >= 8) continue;\n item.status = 'sending';\n item.attempts += 1;\n await this.updateOutbox(item);\n try {\n const serverId = await sendFn(item);\n if (serverId) {\n await this.db.deleteOutbox(item.localId);\n sent += 1;\n } else {\n item.status = 'failed';\n item.lastError = 'send returned empty';\n await this.updateOutbox(item);\n failed += 1;\n }\n } catch (e: any) {\n item.status = 'failed';\n item.lastError = e?.message || String(e);\n await this.updateOutbox(item);\n failed += 1;\n }\n }\n const next = await this.db.getOutbox(userId);\n this.bus.publish({ type: 'outbox', userId, items: next });\n } finally {\n this.flushing = false;\n }\n return { sent, failed };\n }\n}\n\nlet singleton: OfflineClient | null = null;\n\nexport function getOfflineClient(): OfflineClient {\n if (!singleton) singleton = new OfflineClient();\n return singleton;\n}\n\n/** Tests only */\nexport function __resetOfflineClientForTests(client?: OfflineClient | null) {\n singleton = client === undefined ? null : client;\n}\n"],"mappings":"8WAOA,MAAMA,EAAU,uBAChB,MAAMC,EAAa,EAkBnB,SAASC,IACP,OAAO,IAAIC,SAAQ,CAACC,EAASC,KAC3B,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