@sendbird/uikit-react 3.1.1 → 3.1.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +36 -35
- package/App.js.map +1 -1
- package/CHANGELOG.md +29 -0
- package/Channel/components/ChannelHeader.js +19 -19
- package/Channel/components/ChannelUI.js +26 -26
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +18 -18
- package/Channel/components/FrozenNotification.js +5 -5
- package/Channel/components/Message.js +23 -23
- package/Channel/components/MessageInput.js +20 -20
- package/Channel/components/MessageList.js +25 -25
- package/Channel/components/RemoveMessageModal.js +22 -23
- package/Channel/components/RemoveMessageModal.js.map +1 -1
- package/Channel/components/SuggestedMentionList.js +19 -19
- package/Channel/components/TypingIndicator.js +18 -18
- package/Channel/components/UnreadCount.js +5 -5
- package/Channel/context.js +17 -17
- package/Channel.js +26 -26
- package/ChannelList/components/AddChannel.js +14 -14
- package/ChannelList/components/ChannelListHeader.js +7 -7
- package/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/ChannelList/components/ChannelListUI.js +30 -30
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- package/ChannelList/components/ChannelPreview.js +23 -23
- package/ChannelList/components/ChannelPreview.js.map +1 -1
- package/ChannelList/components/ChannelPreviewAction.js +18 -18
- package/ChannelList/context.js +12 -12
- package/ChannelList.js +30 -30
- package/{ChannelListProvider-bdac2e90.js → ChannelListProvider-536de516.js} +9 -9
- package/ChannelListProvider-536de516.js.map +1 -0
- package/{ChannelProvider-0174d0f3.js → ChannelProvider-288abd6e.js} +31 -30
- package/ChannelProvider-288abd6e.js.map +1 -0
- package/ChannelSettings/components/ChannelProfile.js +13 -14
- package/ChannelSettings/components/ChannelProfile.js.map +1 -1
- package/ChannelSettings/components/ChannelSettingsUI.js +22 -22
- package/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/ChannelSettings/components/EditDetailsModal.js +14 -15
- package/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/ChannelSettings/components/LeaveChannel.js +12 -11
- package/ChannelSettings/components/LeaveChannel.js.map +1 -1
- package/ChannelSettings/components/ModerationPanel.js +19 -19
- package/ChannelSettings/components/UserListItem.js +12 -12
- package/ChannelSettings/components/UserPanel.js +14 -14
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings/context.js.map +1 -1
- package/ChannelSettings.js +23 -23
- package/CreateChannel/components/CreateChannelUI.js +16 -16
- package/CreateChannel/components/CreateChannelUI.js.map +1 -1
- package/CreateChannel/components/InviteUsers.js +16 -16
- package/CreateChannel/components/SelectChannelType.js +11 -10
- package/CreateChannel/components/SelectChannelType.js.map +1 -1
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +16 -16
- package/{CreateChannelProvider-1cf4ef27.js → CreateChannelProvider-1d4c08d8.js} +1 -1
- package/CreateChannelProvider-1d4c08d8.js.map +1 -0
- package/EditUserProfile/components/EditUserProfileUI.js +14 -14
- package/EditUserProfile/context.js.map +1 -1
- package/EditUserProfile.js +15 -15
- package/{LocalizationContext-61a4a931.js → LocalizationContext-7d740b0a.js} +3 -3
- package/LocalizationContext-7d740b0a.js.map +1 -0
- package/{MemberList-24ad6b63.js → MemberList-8bc3c1e1.js} +6 -6
- package/{MemberList-24ad6b63.js.map → MemberList-8bc3c1e1.js.map} +1 -1
- package/MessageSearch/components/MessageSearchUI.js +13 -12
- package/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/MessageSearch/context.js +4 -3
- package/MessageSearch/context.js.map +1 -1
- package/MessageSearch.js +13 -12
- package/MessageSearch.js.map +1 -1
- package/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/OpenChannel/components/OpenChannelHeader.js +17 -17
- package/OpenChannel/components/OpenChannelInput.js +21 -21
- package/OpenChannel/components/OpenChannelMessage.js +29 -29
- package/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessageList.js +28 -28
- package/OpenChannel/components/OpenChannelUI.js +28 -28
- package/OpenChannel/context.js +14 -14
- package/OpenChannel.js +28 -28
- package/{OpenChannelProvider-9b3a6eb1.js → OpenChannelProvider-2e64f2d2.js} +15 -14
- package/{OpenChannelProvider-9b3a6eb1.js.map → OpenChannelProvider-2e64f2d2.js.map} +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +18 -19
- package/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelProfile.js +16 -17
- package/OpenChannelSettings/components/OpenChannelProfile.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/OpenChannelSettings/components/OperatorUI.js +20 -20
- package/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/OpenChannelSettings/components/ParticipantUI.js +20 -20
- package/OpenChannelSettings/context.js +6 -6
- package/OpenChannelSettings/context.js.map +1 -1
- package/OpenChannelSettings.js +21 -21
- package/SendbirdProvider.js +15 -15
- package/{UserProfileContext-3524e64c.js → UserProfileContext-9b7b1d4f.js} +1 -1
- package/{UserProfileContext-3524e64c.js.map → UserProfileContext-9b7b1d4f.js.map} +1 -1
- package/{__bundle-6316ce22-b659cee1.js → __bundle-6316ce22-41ee43fe.js} +1 -1
- package/{__bundle-6316ce22-b659cee1.js.map → __bundle-6316ce22-41ee43fe.js.map} +1 -1
- package/{__bundle-7dfccc8c-37d3f8ab.js → __bundle-7dfccc8c-c1f95345.js} +2 -2
- package/{__bundle-7dfccc8c-37d3f8ab.js.map → __bundle-7dfccc8c-c1f95345.js.map} +1 -1
- package/{__bundle-fbda47dd-ef31252f.js → __bundle-fbda47dd-ee456253.js} +2 -2
- package/{__bundle-fbda47dd-ef31252f.js.map → __bundle-fbda47dd-ee456253.js.map} +1 -1
- package/{_rollupPluginBabelHelpers-30d122aa.js → _rollupPluginBabelHelpers-4e546dea.js} +2 -105
- package/_rollupPluginBabelHelpers-4e546dea.js.map +1 -0
- package/{actionTypes-d5d5ac7b.js → actionTypes-f1946e3f.js} +1 -1
- package/{actionTypes-d5d5ac7b.js.map → actionTypes-f1946e3f.js.map} +1 -1
- package/cjs/App.js +36 -35
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +19 -19
- package/cjs/Channel/components/ChannelUI.js +26 -26
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +18 -18
- package/cjs/Channel/components/FrozenNotification.js +5 -5
- package/cjs/Channel/components/Message.js +23 -23
- package/cjs/Channel/components/MessageInput.js +20 -20
- package/cjs/Channel/components/MessageList.js +25 -25
- package/cjs/Channel/components/RemoveMessageModal.js +22 -23
- package/cjs/Channel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/Channel/components/SuggestedMentionList.js +19 -19
- package/cjs/Channel/components/TypingIndicator.js +18 -18
- package/cjs/Channel/components/UnreadCount.js +5 -5
- package/cjs/Channel/context.js +17 -17
- package/cjs/Channel.js +26 -26
- package/cjs/ChannelList/components/AddChannel.js +14 -14
- package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
- package/cjs/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/cjs/ChannelList/components/ChannelListUI.js +30 -30
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreview.js +23 -23
- package/cjs/ChannelList/components/ChannelPreview.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreviewAction.js +18 -18
- package/cjs/ChannelList/context.js +12 -12
- package/cjs/ChannelList.js +30 -30
- package/cjs/{ChannelListProvider-e7756677.js → ChannelListProvider-40eb170c.js} +9 -9
- package/cjs/ChannelListProvider-40eb170c.js.map +1 -0
- package/cjs/{ChannelProvider-c179835a.js → ChannelProvider-e1a06efe.js} +31 -30
- package/cjs/ChannelProvider-e1a06efe.js.map +1 -0
- package/cjs/ChannelSettings/components/ChannelProfile.js +13 -14
- package/cjs/ChannelSettings/components/ChannelProfile.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +22 -22
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -15
- package/cjs/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/ChannelSettings/components/LeaveChannel.js +12 -11
- package/cjs/ChannelSettings/components/LeaveChannel.js.map +1 -1
- package/cjs/ChannelSettings/components/ModerationPanel.js +19 -19
- package/cjs/ChannelSettings/components/UserListItem.js +12 -12
- package/cjs/ChannelSettings/components/UserPanel.js +14 -14
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings/context.js.map +1 -1
- package/cjs/ChannelSettings.js +23 -23
- package/cjs/CreateChannel/components/CreateChannelUI.js +16 -16
- package/cjs/CreateChannel/components/CreateChannelUI.js.map +1 -1
- package/cjs/CreateChannel/components/InviteUsers.js +16 -16
- package/cjs/CreateChannel/components/SelectChannelType.js +11 -10
- package/cjs/CreateChannel/components/SelectChannelType.js.map +1 -1
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +16 -16
- package/cjs/{CreateChannelProvider-a7ca5511.js → CreateChannelProvider-4acaac2e.js} +1 -1
- package/cjs/CreateChannelProvider-4acaac2e.js.map +1 -0
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +14 -14
- package/cjs/EditUserProfile/context.js.map +1 -1
- package/cjs/EditUserProfile.js +15 -15
- package/cjs/{LocalizationContext-f05328b8.js → LocalizationContext-a4d8d6fa.js} +3 -3
- package/cjs/LocalizationContext-a4d8d6fa.js.map +1 -0
- package/cjs/{MemberList-bfaafb40.js → MemberList-b5653b8e.js} +6 -6
- package/cjs/{MemberList-bfaafb40.js.map → MemberList-b5653b8e.js.map} +1 -1
- package/cjs/MessageSearch/components/MessageSearchUI.js +13 -12
- package/cjs/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/cjs/MessageSearch/context.js +4 -3
- package/cjs/MessageSearch/context.js.map +1 -1
- package/cjs/MessageSearch.js +13 -12
- package/cjs/MessageSearch.js.map +1 -1
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/cjs/OpenChannel/components/OpenChannelHeader.js +17 -17
- package/cjs/OpenChannel/components/OpenChannelInput.js +21 -21
- package/cjs/OpenChannel/components/OpenChannelMessage.js +29 -29
- package/cjs/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +28 -28
- package/cjs/OpenChannel/components/OpenChannelUI.js +28 -28
- package/cjs/OpenChannel/context.js +14 -14
- package/cjs/OpenChannel.js +28 -28
- package/cjs/{OpenChannelProvider-12e0412f.js → OpenChannelProvider-3d3298fd.js} +15 -14
- package/cjs/{OpenChannelProvider-12e0412f.js.map → OpenChannelProvider-3d3298fd.js.map} +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +18 -19
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +16 -17
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OperatorUI.js +20 -20
- package/cjs/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +20 -20
- package/cjs/OpenChannelSettings/context.js +6 -6
- package/cjs/OpenChannelSettings/context.js.map +1 -1
- package/cjs/OpenChannelSettings.js +21 -21
- package/cjs/SendbirdProvider.js +15 -15
- package/cjs/{UserProfileContext-87ebb4a4.js → UserProfileContext-9fb4f747.js} +1 -1
- package/cjs/{UserProfileContext-87ebb4a4.js.map → UserProfileContext-9fb4f747.js.map} +1 -1
- package/cjs/{__bundle-6316ce22-c57c6fe0.js → __bundle-6316ce22-e09a7a94.js} +1 -1
- package/cjs/{__bundle-6316ce22-c57c6fe0.js.map → __bundle-6316ce22-e09a7a94.js.map} +1 -1
- package/cjs/{__bundle-7dfccc8c-205c0e66.js → __bundle-7dfccc8c-3af98778.js} +2 -2
- package/cjs/{__bundle-7dfccc8c-205c0e66.js.map → __bundle-7dfccc8c-3af98778.js.map} +1 -1
- package/cjs/{__bundle-fbda47dd-f6e08be2.js → __bundle-fbda47dd-a50b4334.js} +2 -2
- package/cjs/{__bundle-fbda47dd-f6e08be2.js.map → __bundle-fbda47dd-a50b4334.js.map} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-92e5e012.js → _rollupPluginBabelHelpers-e3f84a90.js} +1 -110
- package/cjs/_rollupPluginBabelHelpers-e3f84a90.js.map +1 -0
- package/cjs/{actionTypes-331e63c2.js → actionTypes-8907b806.js} +1 -1
- package/cjs/{actionTypes-331e63c2.js.map → actionTypes-8907b806.js.map} +1 -1
- package/cjs/color-047cfbdf.js +45 -0
- package/cjs/color-047cfbdf.js.map +1 -0
- package/cjs/{compareIds-2df40a8f.js → compareIds-a4c74921.js} +1 -1
- package/cjs/{compareIds-2df40a8f.js.map → compareIds-a4c74921.js.map} +1 -1
- package/cjs/{const-77f608c8.js → const-66e78150.js} +1 -1
- package/cjs/{const-77f608c8.js.map → const-66e78150.js.map} +1 -1
- package/cjs/{const-e0dbad82.js → const-b4516fd9.js} +1 -1
- package/cjs/{const-e0dbad82.js.map → const-b4516fd9.js.map} +1 -1
- package/cjs/{context-5e7ba41f.js → context-24f7ccd5.js} +2 -2
- package/cjs/{context-5e7ba41f.js.map → context-24f7ccd5.js.map} +1 -1
- package/cjs/dist/index.css +50 -72
- package/cjs/dist/index.css.map +1 -1
- package/cjs/{groupChannel-ddd470ad.js → groupChannel-ab450f40.js} +4 -4
- package/cjs/{groupChannel-ddd470ad.js.map → groupChannel-ab450f40.js.map} +1 -1
- package/cjs/handlers/ConnectionHandler.js +3 -3
- package/cjs/handlers/GroupChannelHandler.js +4 -4
- package/cjs/handlers/OpenChannelHandler.js +3 -3
- package/cjs/handlers/UserEventHandler.js +3 -3
- package/cjs/{index-cce2b8c0.js → index-13532266.js} +3 -3
- package/cjs/{index-cce2b8c0.js.map → index-13532266.js.map} +1 -1
- package/cjs/{index-1c009ee9.js → index-4f96bea7.js} +15 -27
- package/cjs/{index-1c009ee9.js.map → index-4f96bea7.js.map} +1 -1
- package/cjs/index-65aaad9e.js +90 -0
- package/cjs/index-65aaad9e.js.map +1 -0
- package/cjs/{index-4bebe375.js → index-6d74425b.js} +1 -1
- package/cjs/{index-4bebe375.js.map → index-6d74425b.js.map} +1 -1
- package/cjs/{index-4911c708.js → index-83f6a684.js} +2 -2
- package/cjs/{index-4911c708.js.map → index-83f6a684.js.map} +1 -1
- package/cjs/{index-52631939.js → index-9a12fc25.js} +11 -10
- package/cjs/{index-52631939.js.map → index-9a12fc25.js.map} +1 -1
- package/cjs/{index-39372722.js → index-9aaba1c0.js} +2 -2
- package/cjs/{index-39372722.js.map → index-9aaba1c0.js.map} +1 -1
- package/cjs/{index-10b68ab4.js → index-bf23b757.js} +2 -2
- package/cjs/{index-10b68ab4.js.map → index-bf23b757.js.map} +1 -1
- package/cjs/{index-2dacade8.js → index-df5b04e6.js} +1 -1
- package/cjs/{index-2dacade8.js.map → index-df5b04e6.js.map} +1 -1
- package/cjs/{index-b1ed74bd.js → index-f4dec25b.js} +4 -4
- package/cjs/{index-b1ed74bd.js.map → index-f4dec25b.js.map} +1 -1
- package/cjs/{index-edd379fd.js → index-f6ccdc07.js} +7 -7
- package/cjs/index-f6ccdc07.js.map +1 -0
- package/cjs/index.js +40 -39
- package/cjs/index.js.map +1 -1
- package/cjs/{openChannel-865f6910.js → openChannel-bb5e32ba.js} +3 -3
- package/cjs/{openChannel-865f6910.js.map → openChannel-bb5e32ba.js.map} +1 -1
- package/cjs/{openChannelUtils-341c5ad7.js → openChannelUtils-ea9b884a.js} +1 -1
- package/cjs/{openChannelUtils-341c5ad7.js.map → openChannelUtils-ea9b884a.js.map} +1 -1
- package/cjs/{sendbird-313241e2.js → sendbird-f219ad11.js} +3 -3
- package/cjs/{sendbird-313241e2.js.map → sendbird-f219ad11.js.map} +1 -1
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/{stringSet-afc1ff3b.js → stringSet-0e48356d.js} +3 -2
- package/cjs/stringSet-0e48356d.js.map +1 -0
- package/cjs/{topics-57ad0394.js → topics-6314d5b3.js} +1 -1
- package/cjs/{topics-57ad0394.js.map → topics-6314d5b3.js.map} +1 -1
- package/cjs/{tslib.es6-12c25052.js → tslib.es6-4d92f5f1.js} +1 -1
- package/cjs/{tslib.es6-12c25052.js.map → tslib.es6-4d92f5f1.js.map} +1 -1
- package/cjs/ui/Accordion.js +4 -4
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +14 -24
- package/cjs/ui/AdminMessage.js.map +1 -1
- package/cjs/ui/Avatar.js +3 -3
- package/cjs/ui/Avatar.js.map +1 -1
- package/cjs/ui/Badge.js +15 -25
- package/cjs/ui/Badge.js.map +1 -1
- package/cjs/ui/Button.js +5 -4
- package/cjs/ui/Button.js.map +1 -1
- package/cjs/ui/ChannelAvatar.js +4 -4
- package/cjs/ui/ChannelPreview.js +16 -12
- package/cjs/ui/ChannelPreview.js.map +1 -1
- package/cjs/ui/ChatHeader.js +42 -74
- package/cjs/ui/ChatHeader.js.map +1 -1
- package/cjs/ui/ConnectionStatus.js +6 -8
- package/cjs/ui/ConnectionStatus.js.map +1 -1
- package/cjs/ui/ContextMenu.js +186 -290
- package/cjs/ui/ContextMenu.js.map +1 -1
- package/cjs/ui/DateSeparator.js +18 -25
- package/cjs/ui/DateSeparator.js.map +1 -1
- package/cjs/ui/EmojiReactions.js +8 -7
- package/cjs/ui/EmojiReactions.js.map +1 -1
- package/cjs/ui/FileMessageItemBody.js +7 -7
- package/cjs/ui/FileMessageItemBody.js.map +1 -1
- package/cjs/ui/FileViewer.js +46 -83
- package/cjs/ui/FileViewer.js.map +1 -1
- package/cjs/ui/Icon.js +1 -1
- package/cjs/ui/IconButton.js +45 -68
- package/cjs/ui/IconButton.js.map +1 -1
- package/cjs/ui/ImageRenderer.js +43 -78
- package/cjs/ui/ImageRenderer.js.map +1 -1
- package/cjs/ui/Input.js +11 -30
- package/cjs/ui/Input.js.map +1 -1
- package/cjs/ui/Label.js +3 -3
- package/cjs/ui/LinkLabel.js +3 -3
- package/cjs/ui/Loader.js +15 -24
- package/cjs/ui/Loader.js.map +1 -1
- package/cjs/ui/MentionLabel.js +12 -12
- package/cjs/ui/MessageContent.js +15 -15
- package/cjs/ui/MessageInput.js +10 -10
- package/cjs/ui/MessageItemMenu.js +9 -8
- package/cjs/ui/MessageItemMenu.js.map +1 -1
- package/cjs/ui/MessageItemReactionMenu.js +7 -6
- package/cjs/ui/MessageItemReactionMenu.js.map +1 -1
- package/cjs/ui/MessageSearchFileItem.js +10 -10
- package/cjs/ui/MessageSearchItem.js +11 -11
- package/cjs/ui/MessageStatus.js +8 -8
- package/cjs/ui/Modal.js +36 -68
- package/cjs/ui/Modal.js.map +1 -1
- package/cjs/ui/MutedAvatarOverlay.js +1 -1
- package/cjs/ui/OGMessageItemBody.js +11 -11
- package/cjs/ui/OpenChannelAdminMessage.js +4 -4
- package/cjs/ui/OpenChannelAvatar.js +8 -8
- package/cjs/ui/OpenchannelConversationHeader.js +7 -7
- package/cjs/ui/OpenchannelFileMessage.js +15 -15
- package/cjs/ui/OpenchannelOGMessage.js +15 -15
- package/cjs/ui/OpenchannelThumbnailMessage.js +14 -14
- package/cjs/ui/OpenchannelUserMessage.js +15 -15
- package/cjs/ui/PlaceHolder.js +8 -7
- package/cjs/ui/PlaceHolder.js.map +1 -1
- package/cjs/ui/QuoteMessage.js +7 -7
- package/cjs/ui/QuoteMessageInput.js +7 -7
- package/cjs/ui/ReactionBadge.js +16 -26
- package/cjs/ui/ReactionBadge.js.map +1 -1
- package/cjs/ui/ReactionButton.js +4 -21
- package/cjs/ui/ReactionButton.js.map +1 -1
- package/cjs/ui/SortByRow.js +16 -26
- package/cjs/ui/SortByRow.js.map +1 -1
- package/cjs/ui/TextButton.js +22 -29
- package/cjs/ui/TextButton.js.map +1 -1
- package/cjs/ui/TextMessageItemBody.js +11 -11
- package/cjs/ui/ThumbnailMessageItemBody.js +3 -3
- package/cjs/ui/Tooltip.js +11 -17
- package/cjs/ui/Tooltip.js.map +1 -1
- package/cjs/ui/TooltipWrapper.js +10 -20
- package/cjs/ui/TooltipWrapper.js.map +1 -1
- package/cjs/ui/UnknownMessageItemBody.js +7 -7
- package/cjs/ui/UserListItem.js +12 -12
- package/cjs/ui/UserProfile.js +11 -11
- package/cjs/ui/Word.js +11 -11
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/{utils-1a8a0b72.js → utils-1cdb42c0.js} +1 -1
- package/cjs/{utils-1a8a0b72.js.map → utils-1cdb42c0.js.map} +1 -1
- package/cjs/{utils-71bd80e8.js → utils-b6436b0d.js} +1 -1
- package/cjs/{utils-71bd80e8.js.map → utils-b6436b0d.js.map} +1 -1
- package/cjs/{utils-6f828dbd.js → utils-b8eff714.js} +1 -1
- package/cjs/{utils-6f828dbd.js.map → utils-b8eff714.js.map} +1 -1
- package/cjs/{uuid-920ae00d.js → uuid-6fae7fc4.js} +1 -1
- package/cjs/{uuid-920ae00d.js.map → uuid-6fae7fc4.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-f6548425.js → color-7a9e9046.js} +16 -12
- package/color-7a9e9046.js.map +1 -0
- package/{compareIds-8402fa74.js → compareIds-b5421ba2.js} +1 -1
- package/{compareIds-8402fa74.js.map → compareIds-b5421ba2.js.map} +1 -1
- package/{const-c81e2d08.js → const-2017fde0.js} +1 -1
- package/{const-c81e2d08.js.map → const-2017fde0.js.map} +1 -1
- package/{const-9039e539.js → const-43ed4c6f.js} +1 -1
- package/{const-9039e539.js.map → const-43ed4c6f.js.map} +1 -1
- package/{context-3629064f.js → context-d85e90c3.js} +2 -2
- package/{context-3629064f.js.map → context-d85e90c3.js.map} +1 -1
- package/dist/index.css +50 -72
- package/dist/index.css.map +1 -1
- package/{groupChannel-fc842dca.js → groupChannel-1ce183d5.js} +4 -4
- package/{groupChannel-fc842dca.js.map → groupChannel-1ce183d5.js.map} +1 -1
- package/handlers/ConnectionHandler.js +4 -4
- package/handlers/GroupChannelHandler.js +5 -5
- package/handlers/OpenChannelHandler.js +4 -4
- package/handlers/UserEventHandler.js +4 -4
- package/{index-2034978f.js → index-00ac1d60.js} +15 -26
- package/index-00ac1d60.js.map +1 -0
- package/{index-191d1d43.js → index-3d519005.js} +1 -1
- package/{index-191d1d43.js.map → index-3d519005.js.map} +1 -1
- package/{index-5428ab4f.js → index-47b8d0ce.js} +2 -2
- package/{index-5428ab4f.js.map → index-47b8d0ce.js.map} +1 -1
- package/{index-07cd4778.js → index-5efc096b.js} +3 -3
- package/{index-07cd4778.js.map → index-5efc096b.js.map} +1 -1
- package/{index-b1f9e3f9.js → index-62f1a209.js} +4 -4
- package/{index-b1f9e3f9.js.map → index-62f1a209.js.map} +1 -1
- package/{index-fc480728.js → index-6e4da943.js} +11 -10
- package/{index-fc480728.js.map → index-6e4da943.js.map} +1 -1
- package/{index-42b2527f.js → index-7965b338.js} +1 -1
- package/{index-42b2527f.js.map → index-7965b338.js.map} +1 -1
- package/index-9ba00bc1.js +82 -0
- package/index-9ba00bc1.js.map +1 -0
- package/{index-17024830.js → index-cdcfdf8f.js} +7 -7
- package/index-cdcfdf8f.js.map +1 -0
- package/{index-aa2d32cc.js → index-d4e18807.js} +2 -2
- package/{index-aa2d32cc.js.map → index-d4e18807.js.map} +1 -1
- package/{index-65007eeb.js → index-f37bc955.js} +2 -2
- package/{index-65007eeb.js.map → index-f37bc955.js.map} +1 -1
- package/index.d.ts +116 -109
- package/index.js +40 -39
- package/index.js.map +1 -1
- package/{openChannel-2b51e3d3.js → openChannel-654409d7.js} +3 -3
- package/{openChannel-2b51e3d3.js.map → openChannel-654409d7.js.map} +1 -1
- package/{openChannelUtils-6a414996.js → openChannelUtils-1ae6ef95.js} +1 -1
- package/{openChannelUtils-6a414996.js.map → openChannelUtils-1ae6ef95.js.map} +1 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/{sendbird-d625a809.js → sendbird-ae433167.js} +3 -3
- package/{sendbird-d625a809.js.map → sendbird-ae433167.js.map} +1 -1
- package/sendbirdSelectors.js +2 -2
- package/{stringSet-92f53c6e.js → stringSet-53204a58.js} +3 -2
- package/stringSet-53204a58.js.map +1 -0
- package/{topics-71b67878.js → topics-3dbd69e2.js} +1 -1
- package/{topics-71b67878.js.map → topics-3dbd69e2.js.map} +1 -1
- package/{tslib.es6-c793443a.js → tslib.es6-5c8a20bb.js} +1 -1
- package/{tslib.es6-c793443a.js.map → tslib.es6-5c8a20bb.js.map} +1 -1
- package/ui/Accordion.js +4 -4
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +14 -23
- package/ui/AdminMessage.js.map +1 -1
- package/ui/Avatar.js +3 -3
- package/ui/Avatar.js.map +1 -1
- package/ui/Badge.js +15 -24
- package/ui/Badge.js.map +1 -1
- package/ui/Button.js +5 -4
- package/ui/Button.js.map +1 -1
- package/ui/ChannelAvatar.js +4 -4
- package/ui/ChannelPreview.js +17 -13
- package/ui/ChannelPreview.js.map +1 -1
- package/ui/ChatHeader.js +43 -74
- package/ui/ChatHeader.js.map +1 -1
- package/ui/ConnectionStatus.js +6 -8
- package/ui/ConnectionStatus.js.map +1 -1
- package/ui/ContextMenu.js +188 -291
- package/ui/ContextMenu.js.map +1 -1
- package/ui/DateSeparator.js +18 -24
- package/ui/DateSeparator.js.map +1 -1
- package/ui/EmojiReactions.js +8 -7
- package/ui/EmojiReactions.js.map +1 -1
- package/ui/FileMessageItemBody.js +7 -7
- package/ui/FileMessageItemBody.js.map +1 -1
- package/ui/FileViewer.js +47 -83
- package/ui/FileViewer.js.map +1 -1
- package/ui/Icon.js +1 -1
- package/ui/IconButton.js +43 -65
- package/ui/IconButton.js.map +1 -1
- package/ui/ImageRenderer.js +43 -77
- package/ui/ImageRenderer.js.map +1 -1
- package/ui/Input.js +11 -29
- package/ui/Input.js.map +1 -1
- package/ui/Label.js +3 -3
- package/ui/LinkLabel.js +3 -3
- package/ui/Loader.js +15 -23
- package/ui/Loader.js.map +1 -1
- package/ui/MentionLabel.js +12 -12
- package/ui/MessageContent.js +15 -15
- package/ui/MessageInput.js +10 -10
- package/ui/MessageItemMenu.js +9 -8
- package/ui/MessageItemMenu.js.map +1 -1
- package/ui/MessageItemReactionMenu.js +7 -6
- package/ui/MessageItemReactionMenu.js.map +1 -1
- package/ui/MessageSearchFileItem.js +10 -10
- package/ui/MessageSearchItem.js +11 -11
- package/ui/MessageStatus.js +8 -8
- package/ui/Modal.js +36 -67
- package/ui/Modal.js.map +1 -1
- package/ui/MutedAvatarOverlay.js +1 -1
- package/ui/OGMessageItemBody.js +11 -11
- package/ui/OpenChannelAdminMessage.js +4 -4
- package/ui/OpenChannelAvatar.js +8 -8
- package/ui/OpenchannelConversationHeader.js +7 -7
- package/ui/OpenchannelFileMessage.js +15 -15
- package/ui/OpenchannelOGMessage.js +15 -15
- package/ui/OpenchannelThumbnailMessage.js +14 -14
- package/ui/OpenchannelUserMessage.js +15 -15
- package/ui/PlaceHolder.js +8 -7
- package/ui/PlaceHolder.js.map +1 -1
- package/ui/QuoteMessage.js +7 -7
- package/ui/QuoteMessageInput.js +7 -7
- package/ui/ReactionBadge.js +16 -25
- package/ui/ReactionBadge.js.map +1 -1
- package/ui/ReactionButton.js +4 -20
- package/ui/ReactionButton.js.map +1 -1
- package/ui/SortByRow.js +15 -24
- package/ui/SortByRow.js.map +1 -1
- package/ui/TextButton.js +22 -28
- package/ui/TextButton.js.map +1 -1
- package/ui/TextMessageItemBody.js +11 -11
- package/ui/ThumbnailMessageItemBody.js +3 -3
- package/ui/Tooltip.js +11 -16
- package/ui/Tooltip.js.map +1 -1
- package/ui/TooltipWrapper.js +10 -19
- package/ui/TooltipWrapper.js.map +1 -1
- package/ui/UnknownMessageItemBody.js +7 -7
- package/ui/UserListItem.js +12 -12
- package/ui/UserProfile.js +11 -11
- package/ui/Word.js +11 -11
- package/useSendbirdStateContext.js +1 -1
- package/{utils-b69f7583.js → utils-e0115d03.js} +1 -1
- package/{utils-b69f7583.js.map → utils-e0115d03.js.map} +1 -1
- package/{utils-972c4edb.js → utils-ea818d4c.js} +1 -1
- package/{utils-972c4edb.js.map → utils-ea818d4c.js.map} +1 -1
- package/{utils-b37c6db3.js → utils-edeb25c5.js} +1 -1
- package/{utils-b37c6db3.js.map → utils-edeb25c5.js.map} +1 -1
- package/{uuid-7c3f59a3.js → uuid-8d849862.js} +1 -1
- package/{uuid-7c3f59a3.js.map → uuid-8d849862.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/ChannelListProvider-bdac2e90.js.map +0 -1
- package/ChannelProvider-0174d0f3.js.map +0 -1
- package/CreateChannelProvider-1cf4ef27.js.map +0 -1
- package/LocalizationContext-61a4a931.js.map +0 -1
- package/_rollupPluginBabelHelpers-30d122aa.js.map +0 -1
- package/cjs/ChannelListProvider-e7756677.js.map +0 -1
- package/cjs/ChannelProvider-c179835a.js.map +0 -1
- package/cjs/CreateChannelProvider-a7ca5511.js.map +0 -1
- package/cjs/LocalizationContext-f05328b8.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-92e5e012.js.map +0 -1
- package/cjs/color-2f811855.js +0 -42
- package/cjs/color-2f811855.js.map +0 -1
- package/cjs/index-188e8e7f.js +0 -97
- package/cjs/index-188e8e7f.js.map +0 -1
- package/cjs/index-edd379fd.js.map +0 -1
- package/cjs/stringSet-afc1ff3b.js.map +0 -1
- package/cjs/ui/Dropdown.js +0 -107
- package/cjs/ui/Dropdown.js.map +0 -1
- package/color-f6548425.js.map +0 -1
- package/index-17024830.js.map +0 -1
- package/index-2034978f.js.map +0 -1
- package/index-d3358aa9.js +0 -87
- package/index-d3358aa9.js.map +0 -1
- package/stringSet-92f53c6e.js.map +0 -1
- package/ui/Dropdown.js +0 -97
- package/ui/Dropdown.js.map +0 -1
package/SendbirdProvider.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { _ as _objectSpread2, a as _slicedToArray } from './_rollupPluginBabelHelpers-
|
|
1
|
+
import { _ as _objectSpread2, a as _slicedToArray } from './_rollupPluginBabelHelpers-4e546dea.js';
|
|
2
2
|
import React__default, { useLayoutEffect, useState, useEffect, useReducer } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { SendbirdSdkContext } from './withSendbird.js';
|
|
5
|
-
import { F as Fn, P as Pe } from './sendbird-
|
|
6
|
-
import { N as Nn } from './openChannel-
|
|
7
|
-
import { $ as $r } from './groupChannel-
|
|
8
|
-
import { R as RESET_USER, I as INIT_USER, U as UPDATE_USER_INFO } from './actionTypes-
|
|
9
|
-
import { i as isTextuallyNull } from './index-
|
|
10
|
-
import { _ as __assign } from './tslib.es6-
|
|
5
|
+
import { F as Fn, P as Pe } from './sendbird-ae433167.js';
|
|
6
|
+
import { N as Nn } from './openChannel-654409d7.js';
|
|
7
|
+
import { $ as $r } from './groupChannel-1ce183d5.js';
|
|
8
|
+
import { R as RESET_USER, I as INIT_USER, U as UPDATE_USER_INFO } from './actionTypes-f1946e3f.js';
|
|
9
|
+
import { i as isTextuallyNull } from './index-f37bc955.js';
|
|
10
|
+
import { _ as __assign } from './tslib.es6-5c8a20bb.js';
|
|
11
11
|
import cssVars from 'css-vars-ponyfill';
|
|
12
|
-
import { u as uuidv4 } from './uuid-
|
|
13
|
-
import { L as LocalizationProvider } from './LocalizationContext-
|
|
14
|
-
import { g as getStringSet } from './stringSet-
|
|
15
|
-
import './__bundle-6316ce22-
|
|
16
|
-
import './__bundle-fbda47dd-
|
|
17
|
-
import './__bundle-7dfccc8c-
|
|
18
|
-
import './index-
|
|
12
|
+
import { u as uuidv4 } from './uuid-8d849862.js';
|
|
13
|
+
import { L as LocalizationProvider } from './LocalizationContext-7d740b0a.js';
|
|
14
|
+
import { g as getStringSet } from './stringSet-53204a58.js';
|
|
15
|
+
import './__bundle-6316ce22-41ee43fe.js';
|
|
16
|
+
import './__bundle-fbda47dd-ee456253.js';
|
|
17
|
+
import './__bundle-7dfccc8c-c1f95345.js';
|
|
18
|
+
import './index-3d519005.js';
|
|
19
19
|
|
|
20
20
|
var INIT_SDK = 'INIT_SDK';
|
|
21
21
|
var SET_SDK_LOADING = 'SET_SDK_LOADING';
|
|
22
22
|
var RESET_SDK = 'RESET_SDK';
|
|
23
23
|
var SDK_ERROR = 'SDK_ERROR';
|
|
24
24
|
|
|
25
|
-
var APP_VERSION_STRING = '3.1.
|
|
25
|
+
var APP_VERSION_STRING = '3.1.2';
|
|
26
26
|
var disconnectSdk = function disconnectSdk(_ref) {
|
|
27
27
|
var sdkDispatcher = _ref.sdkDispatcher,
|
|
28
28
|
userDispatcher = _ref.userDispatcher,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserProfileContext-
|
|
1
|
+
{"version":3,"file":"UserProfileContext-9b7b1d4f.js","sources":["../src/lib/UserProfileContext.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\n/**\n * user profile goes deep inside the component tree\n * use this context as a short circuit to send in values\n */\nconst UserProfileContext = React.createContext({\n disableUserProfile: true,\n isOpenChannel: false,\n renderUserProfile: null,\n});\n\nconst UserProfileProvider = (props) => {\n const { children } = props;\n return (\n <UserProfileContext.Provider value={props}>\n {children}\n </UserProfileContext.Provider>\n );\n};\n\nUserProfileProvider.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.element,\n PropTypes.arrayOf(PropTypes.element),\n PropTypes.any,\n ]).isRequired,\n // eslint-disable-next-line react/no-unused-prop-types\n isOpenChannel: PropTypes.bool,\n // eslint-disable-next-line react/no-unused-prop-types\n disableUserProfile: PropTypes.bool,\n // eslint-disable-next-line react/no-unused-prop-types\n renderUserProfile: PropTypes.func,\n};\n\nUserProfileProvider.defaultProps = {\n isOpenChannel: false,\n disableUserProfile: false,\n renderUserProfile: null,\n};\n\nexport { UserProfileContext, UserProfileProvider };\n"],"names":["UserProfileContext","React","createContext","disableUserProfile","isOpenChannel","renderUserProfile","UserProfileProvider","props","children","propTypes","PropTypes","oneOfType","element","arrayOf","any","isRequired","bool","func","defaultProps"],"mappings":";;;AAGA;AACA;AACA;AACA;;IACMA,kBAAkB,gBAAGC,cAAK,CAACC,aAAN,CAAoB;AAC7CC,EAAAA,kBAAkB,EAAE,IADyB;AAE7CC,EAAAA,aAAa,EAAE,KAF8B;AAG7CC,EAAAA,iBAAiB,EAAE;AAH0B,CAApB;;IAMrBC,mBAAmB,GAAG,SAAtBA,mBAAsB,CAACC,KAAD,EAAW;AACrC,MAAQC,QAAR,GAAqBD,KAArB,CAAQC,QAAR;AACA,sBACEP,6BAAC,kBAAD,CAAoB,QAApB;AAA6B,IAAA,KAAK,EAAEM;AAApC,KACGC,QADH,CADF;AAKD;;AAEDF,mBAAmB,CAACG,SAApB,GAAgC;AAC9BD,EAAAA,QAAQ,EAAEE,SAAS,CAACC,SAAV,CAAoB,CAC5BD,SAAS,CAACE,OADkB,EAE5BF,SAAS,CAACG,OAAV,CAAkBH,SAAS,CAACE,OAA5B,CAF4B,EAG5BF,SAAS,CAACI,GAHkB,CAApB,EAIPC,UAL2B;AAM9B;AACAX,EAAAA,aAAa,EAAEM,SAAS,CAACM,IAPK;AAQ9B;AACAb,EAAAA,kBAAkB,EAAEO,SAAS,CAACM,IATA;AAU9B;AACAX,EAAAA,iBAAiB,EAAEK,SAAS,CAACO;AAXC,CAAhC;AAcAX,mBAAmB,CAACY,YAApB,GAAmC;AACjCd,EAAAA,aAAa,EAAE,KADkB;AAEjCD,EAAAA,kBAAkB,EAAE,KAFa;AAGjCE,EAAAA,iBAAiB,EAAE;AAHc,CAAnC;;;;"}
|
|
@@ -17,4 +17,4 @@ var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
|
|
|
17
17
|
var oe,ue={data:null,customType:null,mentionType:ae.USERS,mentionedUserIds:null,mentionedUsers:null,mentionedMessageTemplate:null,metaArrays:null,parentMessageId:null,isReplyToChannel:!1,pushNotificationDeliveryOption:null,appleCriticalAlertOptions:null},ce=function(u){return y("string",u.data,!0)&&y("string",u.customType,!0)&&m(ae,u.mentionType)&&E("string",u.mentionedUserIds,!0)&&E(ct$1,u.mentionedUsers,!0)&&y("string",u.mentionedMessageTemplate,!0)&&E(Dt$1,u.metaArrays,!0)&&y("number",u.parentMessageId,!0)&&y("boolean",u.isReplyToChannel)&&m(ce$1,u.pushNotificationDeliveryOption,!0)&&y(Lt,u.appleCriticalAlertOptions,!0)},le=function(e){return e?{isReplyToChannel:e.isReplyToChannel,pushNotificationDeliveryOption:e.pushNotificationDeliveryOption}:null},de=n(n({},ue),{message:null,translationTargetLanguages:null}),he=function(e){return ce(e)&&y("string",e.message)&&E("string",e.translationTargetLanguages,!0)};!function(e){e.FILE="file",e.BLOB="blob",e.BLOB_LIKE_OBJECT="blobLikeObject",e.URL="url";}(oe||(oe={}));var pe,fe=function(e){return "undefined"!=typeof window&&"Blob"in window&&"undefined"!=typeof Blob&&e instanceof Blob},me=function(e){return e===oe.BLOB||e===oe.FILE},ve=function(e){return e?{file:e.file,fileKey:e.fileKey,fileType:e.fileType,isReplyToChannel:e.isReplyToChannel,pushNotificationDeliveryOption:e.pushNotificationDeliveryOption}:null},ye=n(n({},ue),{file:null,fileKey:null,fileUrl:null,fileName:null,fileType:null,fileSize:null,mimeType:null,thumbnailSizes:null,requireAuth:!1}),ge=function(e){return ce(e)&&(S(e.file)||y("string",e.fileUrl))&&y("string",e.fileName,!0)&&y("string",e.mimeType,!0)&&y("number",e.fileSize,!0)&&(null===e.thumbnailSizes||Array.isArray(e.thumbnailSizes)&&e.thumbnailSizes.every((function(e){return y("object",e)&&e.maxWidth>0&&e.maxHeight>0})))};!function(e){e.MUTED="muted",e.BANNED="banned";}(pe||(pe={}));var _e,Te=function(){function e(e){var t,r,i;this.restrictionType=null,this.description=null,this.endAt=-1,m(pe,e.restriction_type)&&(this.restrictionType=e.restriction_type),this.description=null!==(t=e.description)&&void 0!==t?t:null,this.endAt=null!==(i=null!==(r=e.end_at)&&void 0!==r?r:e.muted_end_at)&&void 0!==i?i:-1;}return e.payloadify=function(e){return e?U({restriction_type:e.restrictionType,description:e.description,end_at:e.endAt}):null},e}(),Ue=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;return r.restrictionInfo=null,r.restrictionInfo=new Te(n),r}return t(t$1,e),t$1.payloadify=function(t){return t?U(n(n({},e.payloadify.call(this,t)),Te.payloadify(t.restrictionInfo))):null},t$1}(ct$1),Ie={data:null,customType:null,mentionType:ae.USERS,mentionedUserIds:null,mentionedUsers:null,mentionedMessageTemplate:null,metaArrays:null,pushNotificationDeliveryOption:null,appleCriticalAlertOptions:null},Ee=function(u){return y("string",u.data,!0)&&y("string",u.customType,!0)&&m(ae,u.mentionType)&&E("string",u.mentionedUserIds,!0)&&E(ct$1,u.mentionedUsers,!0)&&y("string",u.mentionedMessageTemplate,!0)&&E(Dt$1,u.metaArrays,!0)&&m(ce$1,u.pushNotificationDeliveryOption,!0)&&y(Lt,u.appleCriticalAlertOptions,!0)},we=n(n({},Ie),{message:null,translationTargetLanguages:null}),Me=function(e){return Ee(e)&&y("string",e.message,!0)&&E("string",e.translationTargetLanguages,!0)},Se=n({},Ie),Ce=function(e){function t$1(t){var n=t.channelUrl,r=t.channelType,i=t.token,a=t.limit,s=e.call(this)||this;return s.method=d.GET,s.path="".concat(We$1(r),"/").concat(encodeURIComponent(n),"/operators"),s.params={token:i,limit:a},s}return t(t$1,e),t$1}(q),be=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;return r.operators=n.operators.map((function(e){return new ct$1(t,e)})),r.token=n.next,r}return t(t$1,e),t$1}(F),Ae=function(e){function t$1(t,n,r,i){return e.call(this,t,n,r,i)||this}return t(t$1,e),t$1.prototype._validate=function(){return e.prototype._validate.call(this)},t$1.prototype.next=function(){return r(this,void 0,void 0,(function(){var e,t,n$1,r,i$1,a,s;return i(this,(function(o){switch(o.label){case 0:return this._validate()?this._isLoading?[3,3]:(e=[],this._hasNext?(this._isLoading=!0,t=St$1.of(this._iid).requestQueue,n$1=new Ce(n(n({},this),{channelUrl:this.channelUrl,token:this._token})),[4,t.send(n$1)]):[3,2]):[3,5];case 1:return r=o.sent(),i$1=r.as(be),a=i$1.operators,s=i$1.token,this._token=s,this._hasNext=!!s,this._isLoading=!1,[2,a];case 2:return [2,e];case 3:throw p.queryInProgress;case 4:return [3,6];case 5:throw p.invalidParameters;case 6:return [2]}}))}))},t$1}(On),Pe=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.limit,s=t.token;return (n=e.call(this)||this).method=d.GET,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/mute"),n.params={limit:a,token:s},n}return t(t$1,e),t$1}(q),De=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;r.token=null,r.mutedUsers=[];var i=n.next,a=n.muted_list;return r.token=i,a&&a.length>0&&(r.mutedUsers=a.map((function(e){return new Ue(t,e)}))),r}return t(t$1,e),t$1}(F),Re=function(e){function t$1(t,n,r,i){return e.call(this,t,n,r,i)||this}return t(t$1,e),t$1.prototype.next=function(){return r(this,void 0,void 0,(function(){var e,t,n$1,r,i$1,a;return i(this,(function(s){switch(s.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=St$1.of(this._iid).requestQueue,t=new Pe(n(n({},this),{token:this._token})),[4,e.send(t)]):[3,2]:[3,5];case 1:return n$1=s.sent(),r=n$1.as(De),i$1=r.mutedUsers,a=r.token,this._token=a,this._hasNext=!!a,this._isLoading=!1,[2,i$1];case 2:return [2,[]];case 3:throw p.queryInProgress;case 4:return [3,6];case 5:throw p.invalidParameters;case 6:return [2]}}))}))},t$1}(On),Ne=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.limit,s=t.token;return (n=e.call(this)||this).method=d.GET,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/ban"),n.params=U({limit:a,token:s}),n}return t(t$1,e),t$1}(q),qe=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;r.token=null,r.bannedUsers=[];var i=n.next,a=n.banned_list;return r.token=i,a&&a.length>0&&(r.bannedUsers=a.map((function(e){return new Ue(t,e.user)}))),r}return t(t$1,e),t$1}(F),Oe=function(e){function t$1(t,n,r,i){return e.call(this,t,n,r,i)||this}return t(t$1,e),t$1.prototype._validate=function(){return e.prototype._validate.call(this)},t$1.prototype.next=function(){return r(this,void 0,void 0,(function(){var e,t,n$1,r,i$1,a;return i(this,(function(s){switch(s.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=St$1.of(this._iid).requestQueue,t=new Ne(n(n({},this),{token:this._token})),[4,e.send(t)]):[3,2]:[3,5];case 1:return n$1=s.sent(),r=n$1.as(qe),i$1=r.bannedUsers,a=r.token,this._token=a,this._hasNext=!!a,this._isLoading=!1,[2,i$1];case 2:return [2,[]];case 3:throw p.queryInProgress;case 4:return [3,6];case 5:throw p.invalidParameters;case 6:return [2]}}))}))},t$1}(On);!function(e){e.SPAM="spam",e.HARASSING="harassing",e.SUSPICIOUS="suspicious",e.INAPPROPRIATE="inappropriate";}(_e||(_e={}));var ke=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.operatorUserIds;return (n=e.call(this)||this).method=d.POST,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/operators"),n.params={operator_ids:a},n}return t(t$1,e),t$1}(q);!function(e){function t$1(){return null!==e&&e.apply(this,arguments)||this}t(t$1,e);}(F);var Fe=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.operatorUserIds;return (n=e.call(this)||this).method=d.DELETE,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/operators"),n.params={operator_ids:a},n}return t(t$1,e),t$1}(q);!function(e){function t$1(t,n){return e.call(this,t,n)||this}t(t$1,e);}(F);var Le=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.userId;return (n=e.call(this)||this).method=d.GET,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/mute/").concat(a),n}return t(t$1,e),t$1}(q),Qe=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;r.isMuted=!1,r.startAt=null,r.endAt=null,r.remainingDuration=null,r.description=null;var i=n.is_muted,a=n.start_at,s=n.end_at,o=n.remaining_duration,u=n.description;return r.isMuted=i,r.startAt=a,r.endAt=s,r.remainingDuration=o,r.description=u,r}return t(t$1,e),t$1}(F),ze=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.keys;return (n=e.call(this)||this).method=d.GET,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/metadata"),n.params={keys:a,include_ts:!0},n}return t(t$1,e),t$1}(q),Ge=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;r.ts=null;var i=n.metadata,a=n.ts;return r.metadata=i,r.ts=null!=a?a:null,r}return t(t$1,e),t$1}(F),xe=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.metadata,s=t.upsert;return (n=e.call(this)||this).method=d.PUT,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/metadata"),n.params={metadata:a,include_ts:!0,upsert:null!=s&&s},n}return t(t$1,e),t$1}(q),Ve=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;r.ts=null;var i=n.metadata,a=n.ts;return r.metadata=i,r.ts=null!=a?a:null,r}return t(t$1,e),t$1}(F),je=function(e){function t$1(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return i.created=null,i.updated=null,i.deleted=null,r.data&&(i.created=r.data.created,i.updated=r.data.updated,i.deleted=r.data.deleted),i}return t(t$1,e),t$1}(B),Be=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.key;return (n=e.call(this)||this).method=d.DELETE,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/metadata/").concat(a),n.params={include_ts:!0},n}return t(t$1,e),t$1}(q),We=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;r.ts=null;var i=n.ts;return r.ts=null!=i?i:null,r}return t(t$1,e),t$1}(F),Ke=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType;return (n=e.call(this)||this).method=d.PUT,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/metadata"),n.params={include_ts:!0},n}return t(t$1,e),t$1}(q),Ye=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;r.ts=null;var i=n.ts;return r.ts=null!=i?i:null,r}return t(t$1,e),t$1}(F),He=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.keys;return (n=e.call(this)||this).method=d.GET,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/metacounter"),n.params={keys:a},n}return t(t$1,e),t$1}(q),Je=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;return r.metaCounter=n,r}return t(t$1,e),t$1}(F),Xe=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.metaCounter;return (n=e.call(this)||this).method=d.POST,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/metacounter"),n.params={metacounter:a},n}return t(t$1,e),t$1}(q),Ze=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;return r.metaCounter=n,r}return t(t$1,e),t$1}(F),$e=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.metaCounter,s=t.upsert,o=void 0!==s&&s,u=t.mode,c=void 0===u?"set":u;return (n=e.call(this)||this).method=d.PUT,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/metacounter"),n.params={metacounter:a,upsert:o,mode:c},n}return t(t$1,e),t$1}(q),et=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;return r.metaCounter=n,r}return t(t$1,e),t$1}(F),tt=function(e){function t$1(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return i.created=null,i.updated=null,i.deleted=null,r.data&&(i.created=r.data.created,i.updated=r.data.updated,i.deleted=r.data.deleted),i}return t(t$1,e),t$1}(B),nt=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.key;return (n=e.call(this)||this).method=d.DELETE,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/metacounter/").concat(a),n.params=null,n}return t(t$1,e),t$1}(q);!function(e){function t$1(t,n){return e.call(this,t,n)||this}t(t$1,e);}(F);var rt=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType;return (n=e.call(this)||this).method=d.DELETE,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/metacounter"),n.params=null,n}return t(t$1,e),t$1}(q);!function(e){function t$1(){return null!==e&&e.apply(this,arguments)||this}t(t$1,e);}(F);var it=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.userId,s=t.seconds,o=t.description;return (n=e.call(this)||this).method=d.POST,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/mute"),n.params={user_id:a,seconds:s,description:o},n}return t(t$1,e),t$1}(q);!function(e){function t$1(t,n){return e.call(this,t,n)||this}t(t$1,e);}(F);var at=function(e){function t$1(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return i.user=new Ue(t,r.data),i}return t(t$1,e),t$1}(B),st=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.userId;return (n=e.call(this)||this).method=d.DELETE,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/mute/").concat(encodeURIComponent(a)),n}return t(t$1,e),t$1}(q);!function(e){function t$1(){return null!==e&&e.apply(this,arguments)||this}t(t$1,e);}(F);var ot=function(e){function t$1(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return i.user=new Ue(t,r.data),i}return t(t$1,e),t$1}(B),ut=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.userId,s=t.seconds,o=t.description;return (n=e.call(this)||this).method=d.POST,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/ban"),n.params=U({user_id:a,seconds:s,description:o}),n}return t(t$1,e),t$1}(q);!function(e){function t$1(){return null!==e&&e.apply(this,arguments)||this}t(t$1,e);}(F);var ct=function(e){function t$1(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return i.memberCount=null,i.joinedMemberCount=null,i.user=new Ue(t,r.data),r.data.member_count&&(i.memberCount=r.data.member_count),r.data.joined_member_count&&(i.joinedMemberCount=r.data.joined_member_count),i}return t(t$1,e),t$1}(B),lt=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.userId;return (n=e.call(this)||this).method=d.DELETE,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/ban/").concat(encodeURIComponent(a)),n}return t(t$1,e),t$1}(q);!function(e){function t$1(){return null!==e&&e.apply(this,arguments)||this}t(t$1,e);}(F);var dt=function(e){function t$1(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return i.user=new Ue(t,r.data),i}return t(t$1,e),t$1}(B),ht=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.freezing;return (n=e.call(this)||this).method=d.PUT,n.path="".concat(We$1(i),"/").concat(encodeURIComponent(r),"/freeze"),n.params={freeze:a},n}return t(t$1,e),t$1}(q);!function(e){function t$1(){return null!==e&&e.apply(this,arguments)||this}t(t$1,e);}(F);var pt=function(e){function t$1(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return i.freeze=r.data.freeze,i}return t(t$1,e),t$1}(B),ft=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.category,s=t.userId,o=t.description;return (n=e.call(this)||this).method=d.POST,n.path="".concat(Xe$1(i),"/").concat(encodeURIComponent(r)),n.params={report_category:a,reporting_user_id:s,report_description:o},n}return t(t$1,e),t$1}(q),mt=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.category,s=t.userId,o=t.offendingUserId,u=t.description;return (n=e.call(this)||this).method=d.POST,n.path="/report/users/".concat(o),n.params={channel_url:r,channel_type:i===ne.OPEN?"open_channels":"group_channels",report_category:a,reporting_user_id:s,report_description:u},n}return t(t$1,e),t$1}(q),vt=function(e){function t$1(t){var n=this,r=t.channelUrl,i=t.channelType,a=t.category,s=t.userId,o=t.offendingUserId,u=t.messageId,c=t.description;return (n=e.call(this)||this).method=d.POST,n.path="".concat(Xe$1(i),"/").concat(encodeURIComponent(r),"/messages/").concat(u),n.params={report_category:a,reporting_user_id:s,report_description:c,offending_user_id:o},n}return t(t$1,e),t$1}(q),yt=function(t$1){function n(n){var r=[];return n.mentionType===ae.USERS&&(n.mentionedUserIds?r=n.mentionedUserIds:n.mentionedUsers&&(r=n.mentionedUsers.map((function(e){return e.userId})))),t$1.call(this,{code:"MESG",ackRequired:!0,payload:U({channel_url:n.channelUrl,message:n.message,data:n.data,custom_type:n.customType,metaarray:n.metaArrays,mention_type:n.mentionType,mentioned_user_ids:r,mentioned_message_template:n.mentionedMessageTemplate,target_langs:n.translationTargetLanguages,push_option:n.pushNotificationDeliveryOption&&n.pushNotificationDeliveryOption!==ce$1.DEFAULT?n.pushNotificationDeliveryOption:void 0,apple_critical_alert_options:n.appleCriticalAlertOptions,silent:n.silent,reply_to_channel:n.isReplyToChannel,parent_message_id:n.parentMessageId>0?n.parentMessageId:null,req_id:n.reqId})})||this}return t(n,t$1),n}(H),gt=function(e){function t$1(t,n,r){var i,a,s,o=this;(o=e.call(this,t,"MESG",r)||this).message=new Vt(t,r);var u=St$1.of(t).sdkState;return o.isMentioned=Ye$1(o.message.mentionType,null!==(i=o.message.mentionedUserIds)&&void 0!==i?i:null===(a=o.message.mentionedUsers)||void 0===a?void 0:a.map((function(e){return e.userId})),u.userId),o.forceUpdateLastMessage=null!==(s=r.force_update_last_message)&&void 0!==s&&s,o}return t(t$1,e),t$1}(B),_t=function(t$1){function n(n){var r=[];return n.mentionType===ae.USERS&&(n.mentionedUserIds?r=n.mentionedUserIds:n.mentionedUsers&&(r=n.mentionedUsers.map((function(e){return e.userId})))),t$1.call(this,{code:"MEDI",ackRequired:!0,payload:U({channel_url:n.channelUrl,msg_id:n.messageId,message:n.message,data:n.data,custom_type:n.customType,metaarray:n.metaArrayParams,mention_type:n.mentionType,mentioned_user_ids:r,mentioned_message_template:n.mentionedMessageTemplate,apple_critical_alert_options:n.appleCriticalAlertOptions})})||this}return t(n,t$1),n}(H),Tt=function(e){function t$1(t,n,r){var i,a,s,o,u,c,l=this;(l=e.call(this,t,"MEDI",r)||this).message=new Vt(t,r);var d=St$1.of(t).sdkState;return l.mentionCountChange=Je$1({mentionType:null!==(a=null===(i=r.old_values)||void 0===i?void 0:i.mention_type)&&void 0!==a?a:null,mentionedUserIds:null!==(o=null===(s=r.old_values)||void 0===s?void 0:s.mentioned_user_ids)&&void 0!==o?o:[]},{mentionType:l.message.mentionType,mentionedUserIds:null!==(u=l.message.mentionedUserIds)&&void 0!==u?u:null===(c=l.message.mentionedUsers)||void 0===c?void 0:c.map((function(e){return e.userId}))},d.userId),l}return t(t$1,e),t$1}(B),Ut=function(t$1){function n(n){var r=[];return n.mentionType===ae.USERS&&(n.mentionedUserIds?r=n.mentionedUserIds:n.mentionedUsers&&(r=n.mentionedUsers.map((function(e){return e.userId})))),t$1.call(this,{code:"FEDI",ackRequired:!0,payload:U({channel_url:n.channelUrl,msg_id:n.messageId,data:n.data,custom_type:n.customType,metaarray:n.metaArrayParams,mention_type:n.mentionType,mentioned_user_ids:r,apple_critical_alert_options:n.appleCriticalAlertOptions})})||this}return t(n,t$1),n}(H),It=function(e){function t$1(t,n,r){var i,a,s,o,u,c,l=this;(l=e.call(this,t,"FEDI",r)||this).message=new Wt(t,r);var d=St$1.of(t).sdkState;return l.mentionCountChange=Je$1({mentionType:null!==(a=null===(i=r.old_values)||void 0===i?void 0:i.mention_type)&&void 0!==a?a:null,mentionedUserIds:null!==(o=null===(s=r.old_values)||void 0===s?void 0:s.mentioned_user_ids)&&void 0!==o?o:[]},{mentionType:l.message.mentionType,mentionedUserIds:null!==(u=l.message.mentionedUserIds)&&void 0!==u?u:null===(c=l.message.mentionedUsers)||void 0===c?void 0:c.map((function(e){return e.userId}))},d.userId),l}return t(t$1,e),t$1}(B),Et=function(e){function t$1(t){var n=e.call(this)||this;return n.method=d.DELETE,n.path="".concat(We$1(t.channelType),"/").concat(t.channelUrl,"/messages/").concat(t.messageId),n}return t(t$1,e),t$1}(q);!function(e){function t$1(){return null!==e&&e.apply(this,arguments)||this}t(t$1,e);}(F);var wt=function(e){function t$1(t,n,r){var i=e.call(this,t,"DELM",r)||this;return i.channelUrl=r.channel_url,i.channelType=r.channel_type,i.messageId=Number(r.msg_id),i}return t(t$1,e),t$1}(B),Mt=function(e){function t$1(t){var n=t.channelType,r=t.channelUrl,i=t.messageId,a=t.reactionKey,s=e.call(this)||this;return s.method=d.POST,s.path="".concat(We$1(n),"/").concat(encodeURIComponent(r),"/messages/").concat(i,"/reactions"),s.params={reaction:a},s}return t(t$1,e),t$1}(q),St=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;return r.reactionEvent=new wt$1(n),r}return t(t$1,e),t$1}(F),Ct=function(e){function t$1(t){var n=t.channelType,r=t.channelUrl,i=t.messageId,a=t.reactionKey,s=e.call(this)||this;return s.method=d.DELETE,s.path="".concat(We$1(n),"/").concat(encodeURIComponent(r),"/messages/").concat(i,"/reactions"),s.params={reaction:a},s}return t(t$1,e),t$1}(q),bt=function(e){function t$1(t,n$1){var r=e.call(this,t,n$1)||this;return r.reactionEvent=new wt$1(n({},n$1)),r}return t(t$1,e),t$1}(F),At=function(e){function t$1(t){var n=t.channelType,r=t.channelUrl,i=t.messageId,a=t.translationTargetLanguages,s=e.call(this)||this;return s.method=d.POST,s.path="".concat(We$1(n),"/").concat(encodeURIComponent(r),"/messages/").concat(encodeURIComponent(i),"/translation"),s.params={target_langs:a},s}return t(t$1,e),t$1}(q),Pt=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;return r.message=new Vt(t,n),r}return t(t$1,e),t$1}(F),Dt=function(t$1){function n(n){var r,i=this;i=t$1.call(this)||this;var s=[];n.mentionType===ae.USERS&&(n.mentionedUserIds?s=n.mentionedUserIds:n.mentionedUsers&&(s=n.mentionedUsers.map((function(e){return e.userId}))));var u=n.channelType,c=n.channelUrl;return i.method=d.POST,i.path="".concat(We$1(u),"/").concat(encodeURIComponent(c),"/scheduled_messages"),i.params={req_id:n.reqId,scheduled_at:n.scheduledAt,message_type:oe$1.USER,message:n.message,custom_type:n.customType,data:n.data,mention_type:n.mentionType,mentioned_user_ids:s,sorted_metaarray:null===(r=n.metaArrays)||void 0===r?void 0:r.map((function(e){return Dt$1.payloadify(e)})),apple_critical_alert_options:Lt.payloadify(n.appleCriticalAlertOptions),target_langs:n.translationTargetLanguages,push_option:n.pushNotificationDeliveryOption},i}return t(n,t$1),n}(q),Rt=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;return r.message=new Vt(t,n),r}return t(t$1,e),t$1}(F),Nt=function(t$1){function n(n){var r,i=this;i=t$1.call(this)||this;var s=[];n.mentionType===ae.USERS&&(n.mentionedUserIds?s=n.mentionedUserIds:n.mentionedUsers&&(s=n.mentionedUsers.map((function(e){return e.userId}))));var u=n.channelType,c=n.channelUrl;return i.method=d.POST,i.path="".concat(We$1(u),"/").concat(encodeURIComponent(c),"/scheduled_messages"),i.params={req_id:n.reqId,scheduled_at:n.scheduledAt,message_type:oe$1.FILE,url:n.fileUrl,file_name:n.fileName,file_size:n.fileSize,file_type:n.mimeType,thumbnails:n.thumbnailSizes?n.thumbnailSizes.map((function(e){return Gt.payloadify(e)})):[],custom_type:n.customType,data:n.data,require_auth:n.requireAuth,mention_type:n.mentionType,mentioned_user_ids:s,sorted_metaarray:null===(r=n.metaArrays)||void 0===r?void 0:r.map((function(e){return Dt$1.payloadify(e)})),apple_critical_alert_options:Lt.payloadify(n.appleCriticalAlertOptions),push_option:n.pushNotificationDeliveryOption},i}return t(n,t$1),n}(q),qt=function(e){function t$1(t,n){var r=e.call(this,t,n)||this;return r.message=new Wt(t,n),r}return t(t$1,e),t$1}(F),Ot=2,kt=function(e){function l(n,r){var a,s,o,u,c=this;return (c=e.call(this,n)||this).url="",c.channelType=ne.BASE,c.name="",c.coverUrl="",c.customType="",c.data="",c.isFrozen=!1,c.isEphemeral=!1,c.creator=null,c.createdAt=0,c.url=r.channel_url,c.name=null!==(a=r.name)&&void 0!==a?a:"",c.coverUrl=null!==(s=r.cover_url)&&void 0!==s?s:"",c.customType=null!==(o=r.custom_type)&&void 0!==o?o:"",c.data=null!==(u=r.data)&&void 0!==u?u:"",c.isFrozen=!!y("boolean",r.freeze)&&r.freeze,c.isEphemeral=!!y("boolean",r.is_ephemeral)&&r.is_ephemeral,c.creator=r.created_by?new ct$1(c._iid,r.created_by):null,c.createdAt=1e3*r.created_at,c._cachedMetaData=new Map,r.metadata&&r.ts&&Object.keys(r.metadata).forEach((function(e){c._cachedMetaData.set(e,{value:r.metadata[e],isRemoved:!1,updatedAt:r.ts});})),c}return t(l,e),l.payloadify=function(t){return U(n(n({},e.payloadify.call(this,t)),{channel_url:t.url,name:t.name,cover_url:t.coverUrl,custom_type:t.customType,data:t.data,freeze:t.isFrozen,is_ephemeral:t.isEphemeral,created_by:ct$1.payloadify(t.creator),created_at:t.createdAt/1e3}))},l.prototype.isGroupChannel=function(){return this.channelType===ne.GROUP},l.prototype.isOpenChannel=function(){return this.channelType===ne.OPEN},Object.defineProperty(l.prototype,"cachedMetaData",{get:function(){var e={};return this._cachedMetaData.forEach((function(t,n){t.isRemoved||(e[n]=t.value);})),e},enumerable:!1,configurable:!0}),l.prototype._upsertCachedMetaData=function(e,t){var n=this;Object.keys(e).forEach((function(r){var i=n._cachedMetaData.get(r);(!i||i.updatedAt<=t)&&n._cachedMetaData.set(r,{value:e[r],isRemoved:!1,updatedAt:t});}));},l.prototype._removeFromCachedMetaData=function(e,t){var n=this;e.forEach((function(e){var r=n._cachedMetaData.get(e);r&&r.updatedAt<t&&(r.isRemoved=!1,r.updatedAt=t);}));},l.prototype._generateRequestId=function(){return "rq-".concat(R())},l.prototype.isIdentical=function(e){return e&&this.url===e.url},l.prototype.isEqual=function(e){return g(this,e)},l.prototype.createOperatorListQuery=function(e){return void 0===e&&(e={}),new Ae(this._iid,this.url,this.channelType,e)},l.prototype.createMutedUserListQuery=function(e){return void 0===e&&(e={}),new Re(this._iid,this.url,this.channelType,e)},l.prototype.createBannedUserListQuery=function(e){return void 0===e&&(e={}),new Oe(this._iid,this.url,this.channelType,e)},l.prototype.createPreviousMessageListQuery=function(e){return void 0===e&&(e={}),new wn(this._iid,this.url,this.channelType,e)},l.prototype.addOperators=function(e){return r(this,void 0,void 0,(function(){var t,n;return i(this,(function(i){switch(i.label){case 0:return at$1(E("string",e)).throw(p.invalidParameters),t=St$1.of(this._iid).requestQueue,n=new ke({channelUrl:this.url,channelType:this.channelType,operatorUserIds:e}),[4,t.send(n)];case 1:return i.sent(),[2]}}))}))},l.prototype.removeOperators=function(e){return r(this,void 0,void 0,(function(){var t,n;return i(this,(function(i){switch(i.label){case 0:return at$1(E("string",e)).throw(p.invalidParameters),t=St$1.of(this._iid).requestQueue,n=new Fe({channelUrl:this.url,channelType:this.channelType,operatorUserIds:e}),[4,t.send(n)];case 1:return i.sent(),[2]}}))}))},l.prototype.getMyMutedInfo=function(){return r(this,void 0,void 0,(function(){var e,t,n,r,i$1,a,s,o,u,c,l;return i(this,(function(d){switch(d.label){case 0:return e=St$1.of(this._iid),t=e.sdkState,n=e.requestQueue,r=new Le({channelUrl:this.url,channelType:this.channelType,userId:t.userId}),[4,n.send(r)];case 1:return i$1=d.sent(),a=i$1.as(Qe),s=a.isMuted,o=a.startAt,u=a.endAt,c=a.remainingDuration,l=a.description,[2,{isMuted:s,startAt:o,endAt:u,remainingDuration:c,description:l}]}}))}))},l.prototype.getMetaData=function(e){return r(this,void 0,void 0,(function(){var t,n,i$1,a,s,o;return i(this,(function(u){switch(u.label){case 0:return at$1(E("string",e)).throw(p.invalidParameters),t=St$1.of(this._iid).requestQueue,n=new ze({channelUrl:this.url,channelType:this.channelType,keys:e}),[4,t.send(n)];case 1:return i$1=u.sent(),a=i$1.as(Ge),s=a.metadata,o=a.ts,this._upsertCachedMetaData(s,o),[2,s]}}))}))},l.prototype.getAllMetaData=function(){return r(this,void 0,void 0,(function(){var e,t,n,r,i$1,a;return i(this,(function(s){switch(s.label){case 0:return e=St$1.of(this._iid).requestQueue,t=new ze({channelUrl:this.url,channelType:this.channelType,keys:[]}),[4,e.send(t)];case 1:return n=s.sent(),r=n.as(Ge),i$1=r.metadata,a=r.ts,this._upsertCachedMetaData(i$1,a),[2,i$1]}}))}))},l.prototype.createMetaData=function(e){return r(this,void 0,void 0,(function(){var t,n,r,i$1;return i(this,(function(a){switch(a.label){case 0:return t=St$1.of(this._iid).requestQueue,n=new Ze$1({channelUrl:this.url,channelType:this.channelType,metadata:e}),[4,t.send(n)];case 1:return r=a.sent(),i$1=r.as($e$1).metaData,this._upsertCachedMetaData(i$1,0),[2,i$1]}}))}))},l.prototype.updateMetaData=function(e,t){return void 0===t&&(t=!1),r(this,void 0,void 0,(function(){var n,r,i$1,a,s,o;return i(this,(function(u){switch(u.label){case 0:return n=St$1.of(this._iid).requestQueue,r=new xe({channelUrl:this.url,channelType:this.channelType,metadata:e,upsert:t}),[4,n.send(r)];case 1:return i$1=u.sent(),a=i$1.as(Ve),s=a.metadata,o=a.ts,this._upsertCachedMetaData(s,o),[2,s]}}))}))},l.prototype.deleteMetaData=function(e){return r(this,void 0,void 0,(function(){var n,r,i$1,a;return i(this,(function(s){switch(s.label){case 0:return at$1(y("string",e)).throw(p.invalidParameters),n=St$1.of(this._iid).requestQueue,r=new Be({channelUrl:this.url,channelType:this.channelType,key:e}),[4,n.send(r)];case 1:return i$1=s.sent(),a=i$1.as(We).ts,this._removeFromCachedMetaData([e],a),[2]}}))}))},l.prototype.deleteAllMetaData=function(){return r(this,void 0,void 0,(function(){var e,t,n,r;return i(this,(function(i){switch(i.label){case 0:return e=St$1.of(this._iid).requestQueue,t=new Ke({channelUrl:this.url,channelType:this.channelType}),[4,e.send(t)];case 1:return n=i.sent(),r=n.as(Ye).ts,this._removeFromCachedMetaData(a([],o(this._cachedMetaData.keys()),!1),r),[2]}}))}))},l.prototype.getMetaCounters=function(e){return r(this,void 0,void 0,(function(){var t,n,i$1;return i(this,(function(a){switch(a.label){case 0:return at$1(E("string",e)).throw(p.invalidParameters),t=St$1.of(this._iid).requestQueue,n=new He({channelUrl:this.url,channelType:this.channelType,keys:e}),[4,t.send(n)];case 1:return i$1=a.sent(),[2,i$1.as(Je).metaCounter]}}))}))},l.prototype.getAllMetaCounters=function(){return r(this,void 0,void 0,(function(){var e,t,n;return i(this,(function(r){switch(r.label){case 0:return e=St$1.of(this._iid).requestQueue,t=new He({channelUrl:this.url,channelType:this.channelType,keys:[]}),[4,e.send(t)];case 1:return n=r.sent(),[2,n.as(Je).metaCounter]}}))}))},l.prototype.createMetaCounters=function(e){return r(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(i){switch(i.label){case 0:return t=St$1.of(this._iid).requestQueue,n=new Xe({channelUrl:this.url,channelType:this.channelType,metaCounter:e}),[4,t.send(n)];case 1:return r=i.sent(),[2,r.as(Ze).metaCounter]}}))}))},l.prototype.updateMetaCounters=function(e,t){return void 0===t&&(t=!1),r(this,void 0,void 0,(function(){var n,r,i$1;return i(this,(function(a){switch(a.label){case 0:return n=St$1.of(this._iid).requestQueue,r=new $e({channelUrl:this.url,channelType:this.channelType,metaCounter:e,upsert:t}),[4,n.send(r)];case 1:return i$1=a.sent(),[2,i$1.as(et).metaCounter]}}))}))},l.prototype.increaseMetaCounters=function(e){return r(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(i){switch(i.label){case 0:return t=St$1.of(this._iid).requestQueue,n=new $e({channelUrl:this.url,channelType:this.channelType,metaCounter:e,upsert:!1,mode:"increase"}),[4,t.send(n)];case 1:return r=i.sent(),[2,r.as(et).metaCounter]}}))}))},l.prototype.decreaseMetaCounters=function(e){return r(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(i){switch(i.label){case 0:return t=St$1.of(this._iid).requestQueue,n=new $e({channelUrl:this.url,channelType:this.channelType,metaCounter:e,upsert:!1,mode:"decrease"}),[4,t.send(n)];case 1:return r=i.sent(),[2,r.as(et).metaCounter]}}))}))},l.prototype.deleteMetaCounter=function(e){return r(this,void 0,void 0,(function(){var n,r;return i(this,(function(i){switch(i.label){case 0:return at$1(y("string",e)).throw(p.invalidParameters),n=St$1.of(this._iid).requestQueue,r=new nt({channelUrl:this.url,channelType:this.channelType,key:e}),[4,n.send(r)];case 1:return i.sent(),[2]}}))}))},l.prototype.deleteAllMetaCounters=function(){return r(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:return e=St$1.of(this._iid).requestQueue,t=new rt({channelUrl:this.url,channelType:this.channelType}),[4,e.send(t)];case 1:return n.sent(),[2]}}))}))},l.prototype.muteUser=function(e,t,n){return r(this,void 0,void 0,(function(){return i(this,(function(r){return [2,this.muteUserWithUserId(e.userId,t,n)]}))}))},l.prototype.muteUserWithUserId=function(e,n,r$1){return r(this,void 0,void 0,(function(){var i$1,a;return i(this,(function(s){switch(s.label){case 0:return at$1(y("string",e)&&y("number",n,!0)&&y("string",r$1,!0)).throw(p.invalidParameters),i$1=St$1.of(this._iid).requestQueue,a=new it({channelUrl:this.url,channelType:this.channelType,userId:e,seconds:n,description:r$1}),[4,i$1.send(a)];case 1:return s.sent(),[2]}}))}))},l.prototype.unmuteUser=function(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){return [2,this.unmuteUserWithUserId(e.userId)]}))}))},l.prototype.unmuteUserWithUserId=function(e){return r(this,void 0,void 0,(function(){var n,r;return i(this,(function(i){switch(i.label){case 0:return at$1(y("string",e)).throw(p.invalidParameters),n=St$1.of(this._iid).requestQueue,r=new st({channelUrl:this.url,channelType:this.channelType,userId:e}),[4,n.send(r)];case 1:return i.sent(),[2]}}))}))},l.prototype.banUser=function(e,t,n){return r(this,void 0,void 0,(function(){return i(this,(function(r){return [2,this.banUserWithUserId(e.userId,t,n)]}))}))},l.prototype.banUserWithUserId=function(e,n,r$1){return r(this,void 0,void 0,(function(){var i$1,a;return i(this,(function(s){switch(s.label){case 0:return at$1(y("string",e)&&y("number",n,!0)&&y("string",r$1,!0)).throw(p.invalidParameters),i$1=St$1.of(this._iid).requestQueue,a=new ut({channelUrl:this.url,channelType:this.channelType,userId:e,seconds:n,description:r$1}),[4,i$1.send(a)];case 1:return s.sent(),[2]}}))}))},l.prototype.unbanUser=function(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){return [2,this.unbanUserWithUserId(e.userId)]}))}))},l.prototype.unbanUserWithUserId=function(e){return r(this,void 0,void 0,(function(){var n,r;return i(this,(function(i){switch(i.label){case 0:return at$1(y("string",e)).throw(p.invalidParameters),n=St$1.of(this._iid).requestQueue,r=new lt({channelUrl:this.url,channelType:this.channelType,userId:e}),[4,n.send(r)];case 1:return i.sent(),[2]}}))}))},l.prototype.freeze=function(){return r(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:return e=St$1.of(this._iid).requestQueue,t=new ht({channelUrl:this.url,channelType:this.channelType,freezing:!0}),[4,e.send(t)];case 1:return n.sent(),this.isFrozen=!0,[2]}}))}))},l.prototype.unfreeze=function(){return r(this,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:return e=St$1.of(this._iid).requestQueue,t=new ht({channelUrl:this.url,channelType:this.channelType,freezing:!1}),[4,e.send(t)];case 1:return n.sent(),this.isFrozen=!1,[2]}}))}))},l.prototype.getMessagesByTimestamp=function(e,n$1){return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return n$1=n(n({},tn),n$1),at$1(y("number",e)&&nn(n$1)).throw(p.invalidParameters),[4,En.of(this._iid).getMessagesByTimestamp(this.url,this.channelType,e,n$1)];case 1:return [2,r.sent()]}}))}))},l.prototype.getMessageChangeLogsSinceTimestamp=function(e,n$1){return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return n$1=n(n({},rn),n$1),at$1(y("number",e)&&sn(n$1)).throw(p.invalidParameters),[4,En.of(this._iid).getMessageChangelogs(this.url,this.channelType,e,n$1)];case 1:return [2,r.sent()]}}))}))},l.prototype.getMessageChangeLogsSinceToken=function(e,n$1){return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return n$1=n(n({},rn),n$1),at$1(y("string",e)&&sn(n$1)).throw(p.invalidParameters),[4,En.of(this._iid).getMessageChangelogs(this.url,this.channelType,e,n$1)];case 1:return [2,r.sent()]}}))}))},l.prototype._createPendingSendableMessagePayload=function(e,t,n){var r=St$1.of(this._iid).sessionManager;return U({channel_url:this.url,channel_type:this.channelType,msg_id:0,parent_message_id:e.parentMessageId,data:e.data,custom_type:e.customType,mention_type:e.mentionType,sorted_metaarray:e.metaArrays?e.metaArrays.map((function(e){return Dt$1.payloadify(e)})):null,apple_critical_alert_options:e.appleCriticalAlertOptions?Lt.payloadify(e.appleCriticalAlertOptions):null,created_at:n,user:Ft.payloadify(r.currentUser),req_id:t,request_state:le$1.PENDING,mentioned_user_ids:e.mentionedUserIds,mentioned_users:e.mentionedUsers})},l.prototype._createPendingUserMessage=function(e,t,n$1){var r,i,a={};if(e.translationTargetLanguages)try{for(var s$1=s(e.translationTargetLanguages),o=s$1.next();!o.done;o=s$1.next()){a[o.value]="";}}catch(e){r={error:e};}finally{try{o&&!o.done&&(i=s$1.return)&&i.call(s$1);}finally{if(r)throw r.error}}var l=U(n(n({},this._createPendingSendableMessagePayload(e,t,n$1)),{type:ie.USER,message:e.message,translations:a})),d=new Vt(this._iid,l);return d.messageParams=e,d},l.prototype._createPendingScheduledUserMessage=function(e,t,n){var r=this._createPendingUserMessage(e,t,n);return r.scheduledInfo={scheduledMessageId:0,scheduledAt:e.scheduledAt,scheduledMessageParams:e},r},l.prototype._createPendingFileMessage=function(e,t,n$1){var r=U(n(n({},this._createPendingSendableMessagePayload(e,t,n$1)),{type:ie.FILE,url:e.fileUrl,file:{name:e.fileName,size:e.fileSize,type:e.mimeType,data:e.data},thumbnails:e.thumbnailSizes?e.thumbnailSizes.map((function(e){return {url:"",width:e.maxWidth,height:e.maxHeight}})):[]})),i=new Wt(this._iid,r);return i.messageParams=e,i},l.prototype._createPendingScheduledFileMessage=function(e,t,n){var r=this._createPendingFileMessage(e,t,n);return r.scheduledInfo={scheduledMessageId:0,scheduledAt:e.scheduledAt,scheduledMessageParams:e},r},l.prototype._markMessageAsFailed=function(e,t,n){void 0===n&&(n=!1),e.errorCode=t.code,t.code===u.REQUEST_CANCELED?e.sendingStatus=le$1.CANCELED:n||(e.sendingStatus=le$1.FAILED);},l.prototype.sendUserMessage=function(e){return e=n(n({},de),e),at$1(he(e)).throw(p.invalidParameters),this._sendUserMessage(e)},l.prototype._sendUserMessage=function(e,t,n$1){var r$1=this;void 0===t&&(t=Date.now()),void 0===n$1&&(n$1=null);var i$1=St$1.of(this._iid),a=i$1.dispatcher,s=i$1.requestQueue,o=n$1,c=new In;if(!o){o=this._generateRequestId();var l=St$1.of(this._iid).dispatcher;me$1(2).then((function(){var n=r$1._createPendingUserMessage(e,o,t);l.dispatch(new un({messages:[n],source:$t.EVENT_MESSAGE_SENT_PENDING})),Ie$1((function(){return r(r$1,void 0,void 0,(function(){return i(this,(function(e){return [2,c._trigger(null,n)]}))}))}));}));}var d=new yt(n({channelUrl:this.url,channelType:this.channelType,reqId:o},e));return s.send(d).then((function(e){var t=e.as(gt).message;a.dispatch(new un({messages:[t],source:$t.EVENT_MESSAGE_SENT_SUCCESS})),Ie$1((function(){return r(r$1,void 0,void 0,(function(){return i(this,(function(e){return [2,c._trigger(null,t)]}))}))}));})).catch((function(n){if(h(n))throw n;me$1(2).then((function(){var i$1=r$1._createPendingUserMessage(e,o,t),s=St$1.of(r$1._iid).cacheContext.localCacheEnabled&&I(n.code);r$1._markMessageAsFailed(i$1,n,s),a.dispatch(new un({messages:[i$1],source:i$1.sendingStatus===le$1.PENDING?$t.REQUEST_RESEND_MESSAGE:$t.EVENT_MESSAGE_SENT_FAILED})),Ie$1((function(){return r(r$1,void 0,void 0,(function(){return i(this,(function(e){return [2,c._trigger(n,i$1)]}))}))}));}));})),c},l.prototype._autoResendUserMessage=function(e){return at$1(e instanceof Vt).throw(p.invalidParameters),this._sendUserMessage(e.messageParams,e.createdAt,e.reqId)},l.prototype.resendUserMessage=function(e){var t;return r(this,void 0,void 0,(function(){var n,r;return i(this,(function(i){var a;return at$1(e instanceof Vt&&!e.scheduledInfo).throw(p.invalidParameters),n=new ee,r=null!==(t=e.messageParams)&&void 0!==t?t:U({data:(a=e).data,customType:a.customType,mentionType:a.mentionType,mentionedUsers:a.mentionedUsers,mentionedUserIds:a.mentionedUserIds,mentionedMessageTemplate:a.mentionedMessageTemplate,metaArrays:a.metaArrays,parentMessageId:a.parentMessageId,appleCriticalAlertOptions:a.appleCriticalAlertOptions,message:a.message,translationTargetLanguages:Object.keys(a.translations)}),this._sendUserMessage(r).onFailed((function(e){return n.reject(e)})).onSucceeded((function(e){return n.resolve(e)})),[2,n.promise]}))}))},l.prototype.updateUserMessage=function(e,n$1){return r(this,void 0,void 0,(function(){var r,i$1,a,s,o,c;return i(this,(function(l){switch(l.label){case 0:return n$1=n(n({},we),n$1),at$1(y("number",e)&&Me(n$1)).throw(p.invalidParameters),r=St$1.of(this._iid),i$1=r.dispatcher,a=r.requestQueue,s=new _t(n({channelType:this.channelType,channelUrl:this.url,messageId:e},n$1)),[4,a.send(s)];case 1:return o=l.sent(),c=o.as(Tt).message,i$1.dispatch(new un({messages:[c],source:$t.EVENT_MESSAGE_UPDATED})),[2,c]}}))}))},l.prototype.copyUserMessage=function(e,t){var n$1,r$1,i$1;return r(this,void 0,void 0,(function(){var a,o;return i(this,(function(c){return at$1(e instanceof l&&t instanceof Vt&&t.sendingStatus===le$1.SUCCEEDED&&e.url===t.channelUrl&&!t.scheduledInfo).throw(p.invalidParameters),a=new ee,o=null!==(n$1=t.messageParams)&&void 0!==n$1?n$1:n(n({},t),{mentionType:t.mentionType,mentionedUserIds:null!==(r$1=t.mentionedUserIds)&&void 0!==r$1?r$1:null===(i$1=t.mentionedUsers)||void 0===i$1?void 0:i$1.map((function(e){return e.userId})),translationTargetLanguages:Object.keys(t.translations),pushNotificationDeliveryOption:ce$1.DEFAULT,parentMessageId:null,isReplyToChannel:!1}),e._sendUserMessage(o).onSucceeded((function(e){return a.resolve(e)})).onFailed((function(e){return a.reject(e)})),[2,a.promise]}))}))},l.prototype.translateUserMessage=function(e,t){return r(this,void 0,void 0,(function(){var n,i$1,a;return i(this,(function(s){switch(s.label){case 0:return at$1(e instanceof Vt&&e.messageId>0&&E("string",t)).throw(p.invalidParameters),n=St$1.of(this._iid).requestQueue,i$1=new At({channelType:this.channelType,channelUrl:this.url,messageId:e.messageId,translationTargetLanguages:t}),[4,n.send(i$1)];case 1:return a=s.sent(),[2,a.as(Pt).message]}}))}))},l.prototype._createScheduledUserMessage=function(e,t){var n$1=this,r$1=St$1.of(this._iid),i$1=r$1.dispatcher,a=r$1.requestQueue,s=Date.now(),o=this._generateRequestId();me$1(2).then((function(){var r$1=n$1._createPendingScheduledUserMessage(e,o,s);i$1.dispatch(new un({messages:[r$1],source:$t.EVENT_MESSAGE_SENT_PENDING})),Ie$1((function(){return r(n$1,void 0,void 0,(function(){return i(this,(function(e){return [2,t._trigger(null,r$1)]}))}))}));}));var c=new Dt(n({reqId:o,channelType:this.channelType,channelUrl:this.url},e));a.send(c).then((function(e){var r$1=e.as(Rt).message;i$1.dispatch(new un({messages:[r$1],source:$t.EVENT_MESSAGE_SENT_SUCCESS})),Ie$1((function(){return r(n$1,void 0,void 0,(function(){return i(this,(function(e){return [2,t._trigger(null,r$1)]}))}))}));})).catch((function(r$1){if(h(r$1))throw r$1;me$1(2).then((function(){var a=n$1._createPendingScheduledUserMessage(e,o,s);n$1._markMessageAsFailed(a,r$1),i$1.dispatch(new un({messages:[a],source:$t.EVENT_MESSAGE_SENT_FAILED})),Ie$1((function(){return r(n$1,void 0,void 0,(function(){return i(this,(function(e){return [2,t._trigger(r$1,a)]}))}))}));}));}));},l.prototype.sendFileMessage=function(e){return e=n(n({},ye),e),at$1(ge(e)).throw(p.invalidParameters),this._sendFileMessage(e)},l.prototype._sendFileMessage=function(e,t,n){var r$1=this;void 0===t&&(t=Date.now()),void 0===n&&(n=null);var i$1=St$1.of(this._iid).dispatcher,a=En.of(this._iid).fileMessageQueue,s=n,o=new In;return s||(s=this._generateRequestId(),me$1(2).then((function(){var n=r$1._createPendingFileMessage(e,s,t);i$1.dispatch(new un({messages:[n],source:$t.EVENT_MESSAGE_SENT_PENDING})),Ie$1((function(){return r(r$1,void 0,void 0,(function(){return i(this,(function(e){return [2,o._trigger(null,n)]}))}))}));}))),a.request(this,s,e).then((function(e){i$1.dispatch(new un({messages:[e],source:$t.EVENT_MESSAGE_SENT_SUCCESS})),Ie$1((function(){return r(r$1,void 0,void 0,(function(){return i(this,(function(t){return [2,o._trigger(null,e)]}))}))}));})).catch((function(n){if(h(n))throw n;me$1(2).then((function(){var a=r$1._createPendingFileMessage(e,s,t),u=St$1.of(r$1._iid).cacheContext.localCacheEnabled&&I(n.code);r$1._markMessageAsFailed(a,n,u),i$1.dispatch(new un({messages:[a],source:a.sendingStatus===le$1.PENDING?$t.REQUEST_RESEND_MESSAGE:$t.EVENT_MESSAGE_SENT_FAILED})),Ie$1((function(){return r(r$1,void 0,void 0,(function(){return i(this,(function(e){return [2,o._trigger(n,a)]}))}))}));}));})),o},l.prototype._autoResendFileMessage=function(e){at$1(e instanceof Wt).throw(p.invalidParameters);var t=St$1.of(this._iid).logger;return t.debug("autoResendFileMessage pending",e),this._sendFileMessage(e.messageParams,e.createdAt,e.reqId).onFailed((function(e){t.debug("autoResendFileMessage failed",e);})).onSucceeded((function(e){t.debug("autoResendFileMessage success",e);}))},l.prototype._createScheduledFileMessage=function(e,t,n$1,r$1){var i$1=this,a=St$1.of(this._iid),s=a.dispatcher,o=a.requestQueue,c=new Nt(n(n({reqId:n$1,channelType:this.channelType,channelUrl:this.url},e),{fileUrl:e.fileUrl,requireAuth:e.requireAuth}));o.send(c).then((function(e){var n=e.as(qt).message;s.dispatch(new un({messages:[n],source:$t.EVENT_MESSAGE_SENT_SUCCESS})),Ie$1((function(){return r(i$1,void 0,void 0,(function(){return i(this,(function(e){return [2,t._trigger(null,n)]}))}))}));})).catch((function(a){if(h(a))throw a;me$1(2).then((function(){var o=i$1._createPendingScheduledFileMessage(e,n$1,r$1);i$1._markMessageAsFailed(o,a),s.dispatch(new un({messages:[o],source:$t.EVENT_MESSAGE_SENT_FAILED})),Ie$1((function(){return r(i$1,void 0,void 0,(function(){return i(this,(function(e){return [2,t._trigger(a,o)]}))}))}));}));}));},l.prototype.sendFileMessages=function(e){var t,n$1;at$1(e.every((function(e){return ge(n(n({},ye),e))}))).throw(p.invalidParameters);var r=new In;try{for(var i=s(e),a=i.next();!a.done;a=i.next()){var s$1=a.value;this.sendFileMessage(s$1).onPending((function(e){return r._trigger(null,e)})).onFailed((function(e,t){return r._trigger(e,t)})).onSucceeded((function(e){return r._trigger(null,e)}));}}catch(e){t={error:e};}finally{try{a&&!a.done&&(n$1=i.return)&&n$1.call(i);}finally{if(t)throw t.error}}return r},l.prototype.resendFileMessage=function(e,t){var n;return r(this,void 0,void 0,(function(){var r,i$1;return i(this,(function(a){return at$1(e instanceof Wt&&t instanceof Blob&&!e.scheduledInfo).throw(p.invalidParameters),r=new ee,i$1=null!==(n=e.messageParams)&&void 0!==n?n:function(e,t){return void 0===t&&(t=null),U({data:e.data,customType:e.customType,mentionType:e.mentionType,mentionedUsers:e.mentionedUsers,mentionedUserIds:e.mentionedUserIds,metaArrays:e.metaArrays,parentMessageId:e.parentMessageId,appleCriticalAlertOptions:e.appleCriticalAlertOptions,file:t,fileUrl:e.url,fileName:e.name,fileSize:e.size,mimeType:e.type,thumbnailSizes:e.thumbnails.map((function(e){return {maxWidth:e.width,maxHeight:e.height}}))})}(e,t),this._sendFileMessage(i$1).onFailed((function(e){return r.reject(e)})).onSucceeded((function(e){return r.resolve(e)})),[2,r.promise]}))}))},l.prototype.updateFileMessage=function(e,n$1){return r(this,void 0,void 0,(function(){var r,i$1,a,s,o,c;return i(this,(function(l){switch(l.label){case 0:return n$1=n(n({},Se),n$1),at$1(y("number",e)&&function(e){return Ee(e)}(n$1)).throw(p.invalidParameters),r=St$1.of(this._iid),i$1=r.dispatcher,a=r.requestQueue,s=new Ut(n({channelType:this.channelType,channelUrl:this.url,messageId:e},n$1)),[4,a.send(s)];case 1:return o=l.sent(),c=o.as(It).message,i$1.dispatch(new un({messages:[c],source:$t.EVENT_MESSAGE_UPDATED})),[2,c]}}))}))},l.prototype.cancelUploadingFileMessage=function(e){return r(this,void 0,void 0,(function(){return i(this,(function(n){return at$1(y("string",e)).throw(p.invalidParameters),En.of(this._iid).fileMessageQueue.cancel(this,e),[2,!0]}))}))},l.prototype.copyFileMessage=function(e,t){var n$1,r$1;return r(this,void 0,void 0,(function(){var i$1,a;return i(this,(function(o){return at$1(e instanceof l&&t instanceof Wt&&t.sendingStatus===le$1.SUCCEEDED&&e.url===t.channelUrl&&!t.scheduledInfo).throw(p.invalidParameters),i$1=new ee,a=n(n({},t),{fileUrl:t.url,fileName:t.name,fileSize:t.size,mimeType:t.type,mentionType:t.mentionType,mentionedUserIds:null!==(n$1=t.mentionedUserIds)&&void 0!==n$1?n$1:null===(r$1=t.mentionedUsers)||void 0===r$1?void 0:r$1.map((function(e){return e.userId})),pushNotificationDeliveryOption:ce$1.DEFAULT,parentMessageId:null,isReplyToChannel:!1,thumbnailSizes:t.thumbnails.map((function(e){return {maxWidth:e.width,maxHeight:e.height}})),requireAuth:t.requireAuth}),e._sendFileMessage(a).onSucceeded((function(e){return i$1.resolve(e)})).onFailed((function(e){return i$1.reject(e)})),[2,i$1.promise]}))}))},l.prototype.deleteMessage=function(e){return r(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return at$1(e instanceof xt).throw(p.invalidParameters),e.messageId>0?(t=St$1.of(this._iid).requestQueue,n=new Et({channelType:this.channelType,channelUrl:this.url,messageId:e.messageId}),[4,t.send(n)]):[3,2];case 1:r.sent(),r.label=2;case 2:return [2]}}))}))},l.prototype.addReaction=function(e,n){return r(this,void 0,void 0,(function(){var r,i$1,a;return i(this,(function(s){switch(s.label){case 0:return at$1(e instanceof qt$1&&e.messageId>0&&y("string",n)).throw(p.invalidParameters),r=St$1.of(this._iid).requestQueue,i$1=new Mt({channelType:this.channelType,channelUrl:this.url,messageId:e.messageId,reactionKey:n}),[4,r.send(i$1)];case 1:return a=s.sent(),[2,a.as(St).reactionEvent]}}))}))},l.prototype.deleteReaction=function(e,n){return r(this,void 0,void 0,(function(){var r,i$1,a;return i(this,(function(s){switch(s.label){case 0:return at$1(e instanceof qt$1&&e.messageId>0&&y("string",n)).throw(p.invalidParameters),r=St$1.of(this._iid).requestQueue,i$1=new Ct({channelType:this.channelType,channelUrl:this.url,messageId:e.messageId,reactionKey:n}),[4,r.send(i$1)];case 1:return a=s.sent(),[2,a.as(bt).reactionEvent]}}))}))},l.prototype._updateMessageMetaArray=function(e,t,n,r$1){return r(this,void 0,void 0,(function(){var i$1,a,s,o,u,c;return i(this,(function(l){switch(l.label){case 0:return i$1=St$1.of(this._iid),a=i$1.dispatcher,s=i$1.requestQueue,o=new _t({channelType:this.channelType,channelUrl:this.url,messageId:e,metaArrayParams:{array:t,mode:n,upsert:r$1}}),[4,s.send(o)];case 1:return u=l.sent(),c=u.as(Tt).message,a.dispatch(new un({messages:[c],source:$t.EVENT_MESSAGE_UPDATED})),[2,c]}}))}))},l.prototype.createMessageMetaArrayKeys=function(e,t){return r(this,void 0,void 0,(function(){var n;return i(this,(function(i){return at$1(e instanceof xt&&e.messageId>0&&E("string",t)).throw(p.invalidParameters),n=t.map((function(e){return new Dt$1({key:e})})),[2,this._updateMessageMetaArray(e.messageId,n,"add",!0)]}))}))},l.prototype.deleteMessageMetaArrayKeys=function(e,t){return r(this,void 0,void 0,(function(){var n;return i(this,(function(i){return at$1(e instanceof xt&&e.messageId>0&&E("string",t)).throw(p.invalidParameters),n=t.map((function(e){return new Dt$1({key:e})})),[2,this._updateMessageMetaArray(e.messageId,n,"remove",!0)]}))}))},l.prototype.addMessageMetaArrayValues=function(e,t){return r(this,void 0,void 0,(function(){return i(this,(function(n){return at$1(e instanceof xt&&e.messageId>0&&t.every((function(e){return e instanceof Dt$1}))).throw(p.invalidParameters),[2,this._updateMessageMetaArray(e.messageId,t,"add",!0)]}))}))},l.prototype.removeMessageMetaArrayValues=function(e,t){return r(this,void 0,void 0,(function(){return i(this,(function(n){return at$1(e instanceof xt&&e.messageId>0&&t.every((function(e){return e instanceof Dt$1}))).throw(p.invalidParameters),[2,this._updateMessageMetaArray(e.messageId,t,"remove",!0)]}))}))},l.prototype.report=function(e,r$1){return r(this,void 0,void 0,(function(){var i$1,a,s,o;return i(this,(function(u){switch(u.label){case 0:return at$1(m(_e,e)&&y("string",r$1)).throw(p.invalidParameters),i$1=St$1.of(this._iid),a=i$1.sdkState,s=i$1.requestQueue,o=new ft({channelUrl:this.url,channelType:this.channelType,userId:a.userId,category:e,description:r$1}),[4,s.send(o)];case 1:return u.sent(),[2]}}))}))},l.prototype.reportUser=function(e,r$1,a){return r(this,void 0,void 0,(function(){var s,o,u,c;return i(this,(function(l){switch(l.label){case 0:return at$1(e instanceof ct$1&&m(_e,r$1)&&y("string",a)).throw(p.invalidParameters),s=St$1.of(this._iid),o=s.sdkState,u=s.requestQueue,c=new mt({channelUrl:this.url,channelType:this.channelType,userId:o.userId,offendingUserId:e.userId,category:r$1,description:a}),[4,u.send(c)];case 1:return l.sent(),[2]}}))}))},l.prototype.reportMessage=function(e,r$1,i$1){return r(this,void 0,void 0,(function(){var a,s,o,u;return i(this,(function(c){switch(c.label){case 0:return at$1(e instanceof xt&&m(_e,r$1)&&y("string",i$1)).throw(p.invalidParameters),a=St$1.of(this._iid),s=a.sdkState,o=a.requestQueue,u=new vt({channelUrl:this.url,channelType:this.channelType,userId:s.userId,offendingUserId:e.sender.userId,messageId:e.messageId,category:r$1,description:i$1}),[4,o.send(u)];case 1:return c.sent(),[2]}}))}))},l}(Le$1);
|
|
18
18
|
|
|
19
19
|
export { $, A, B, Cn as C, Dn as D, E, F, m as G, st$1 as H, Ie$1 as I, Ge$1 as J, Ke$1 as K, Le$1 as L, Me$1 as M, N, On as O, xe$1 as P, H as Q, R, St$1 as S, Tt$1 as T, Ue$1 as U, kt as V, de$1 as W, J as X, Y, h as Z, tt as _, n as a, ie as a$, je as a0, pt as a1, ct as a2, dt as a3, at as a4, ot as a5, wt as a6, Tt as a7, It as a8, gt as a9, Gt as aA, Dt$1 as aB, Lt as aC, Wt as aD, In as aE, Vt as aF, cn as aG, Se$1 as aH, Ee$1 as aI, ln as aJ, Rt as aK, Me as aL, Ot as aM, Ee as aN, Nt$1 as aO, bt$1 as aP, de as aQ, ue as aR, le as aS, ve as aT, he as aU, ce as aV, I as aW, me as aX, oe as aY, fe as aZ, u as a_, Jt as aa, En as ab, T as ac, se as ad, z as ae, le$1 as af, xt as ag, an as ah, $t as ai, Ie as aj, we as ak, Bt as al, me$1 as am, un as an, Ct$1 as ao, re as ap, Ue as aq, L as ar, Fe$1 as as, qe$1 as at, Ve$1 as au, Ot$1 as av, We$1 as aw, Ht as ax, ae as ay, oe$1 as az, bn as b, Kt as b0, Ye$1 as b1, Je$1 as b2, wt$1 as b3, Sn as b4, c, at$1 as d, ct$1 as e, M as f, d as g, U as h, i, j, a as k, o as l, lt$1 as m, ne as n, ot$1 as o, p, q, r, s, t, ue$1 as u, dt$1 as v, b as w, S as x, y, ze$1 as z };
|
|
20
|
-
//# sourceMappingURL=__bundle-6316ce22-
|
|
20
|
+
//# sourceMappingURL=__bundle-6316ce22-41ee43fe.js.map
|