@sendbird/uikit-react 3.1.3-rc.0 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (420) hide show
  1. package/App.js +35 -35
  2. package/CHANGELOG.md +9 -1
  3. package/Channel/components/ChannelHeader.js +19 -19
  4. package/Channel/components/ChannelUI.js +26 -26
  5. package/Channel/components/FileViewer.js +18 -18
  6. package/Channel/components/FrozenNotification.js +5 -5
  7. package/Channel/components/Message.js +23 -23
  8. package/Channel/components/MessageInput.js +20 -20
  9. package/Channel/components/MessageList.js +25 -25
  10. package/Channel/components/RemoveMessageModal.js +20 -20
  11. package/Channel/components/SuggestedMentionList.js +19 -19
  12. package/Channel/components/TypingIndicator.js +18 -18
  13. package/Channel/components/UnreadCount.js +5 -5
  14. package/Channel/context.js +17 -17
  15. package/Channel.js +26 -26
  16. package/ChannelList/components/AddChannel.js +14 -14
  17. package/ChannelList/components/ChannelListHeader.js +7 -7
  18. package/ChannelList/components/ChannelListUI.js +30 -30
  19. package/ChannelList/components/ChannelPreview.js +23 -23
  20. package/ChannelList/components/ChannelPreviewAction.js +18 -18
  21. package/ChannelList/context.js +12 -12
  22. package/ChannelList.js +30 -30
  23. package/{ChannelListProvider-6bf1e9c7.js → ChannelListProvider-0157b613.js} +9 -9
  24. package/{ChannelListProvider-6bf1e9c7.js.map → ChannelListProvider-0157b613.js.map} +1 -1
  25. package/{ChannelProvider-b68db5fd.js → ChannelProvider-57689107.js} +12 -13
  26. package/{ChannelProvider-b68db5fd.js.map → ChannelProvider-57689107.js.map} +1 -1
  27. package/ChannelSettings/components/ChannelProfile.js +12 -12
  28. package/ChannelSettings/components/ChannelSettingsUI.js +22 -22
  29. package/ChannelSettings/components/EditDetailsModal.js +12 -12
  30. package/ChannelSettings/components/LeaveChannel.js +11 -11
  31. package/ChannelSettings/components/ModerationPanel.js +19 -19
  32. package/ChannelSettings/components/UserListItem.js +14 -14
  33. package/ChannelSettings/components/UserListItem.js.map +1 -1
  34. package/ChannelSettings/components/UserPanel.js +14 -14
  35. package/ChannelSettings/context.js +3 -3
  36. package/ChannelSettings.js +22 -22
  37. package/CreateChannel/components/CreateChannelUI.js +14 -14
  38. package/CreateChannel/components/InviteUsers.js +14 -14
  39. package/CreateChannel/components/SelectChannelType.js +11 -11
  40. package/CreateChannel/context.js +4 -4
  41. package/CreateChannel.js +14 -14
  42. package/{CreateChannelProvider-9a497a91.js → CreateChannelProvider-f84fd7e5.js} +1 -1
  43. package/{CreateChannelProvider-9a497a91.js.map → CreateChannelProvider-f84fd7e5.js.map} +1 -1
  44. package/EditUserProfile/components/EditUserProfileUI.js +13 -13
  45. package/EditUserProfile.js +13 -13
  46. package/{LocalizationContext-397e33d0.js → LocalizationContext-5b475a64.js} +3 -3
  47. package/{LocalizationContext-397e33d0.js.map → LocalizationContext-5b475a64.js.map} +1 -1
  48. package/{MemberList-464926f8.js → MemberList-004dd3e6.js} +7 -7
  49. package/MemberList-004dd3e6.js.map +1 -0
  50. package/MessageSearch/components/MessageSearchUI.js +11 -11
  51. package/MessageSearch/context.js +2 -2
  52. package/MessageSearch.js +11 -11
  53. package/OpenChannel/components/FrozenChannelNotification.js +5 -5
  54. package/OpenChannel/components/OpenChannelHeader.js +17 -17
  55. package/OpenChannel/components/OpenChannelInput.js +21 -21
  56. package/OpenChannel/components/OpenChannelMessage.js +26 -26
  57. package/OpenChannel/components/OpenChannelMessageList.js +28 -28
  58. package/OpenChannel/components/OpenChannelUI.js +28 -28
  59. package/OpenChannel/context.js +14 -14
  60. package/OpenChannel.js +28 -28
  61. package/{OpenChannelProvider-b936f710.js → OpenChannelProvider-f5d504ec.js} +10 -10
  62. package/{OpenChannelProvider-b936f710.js.map → OpenChannelProvider-f5d504ec.js.map} +1 -1
  63. package/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  64. package/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  65. package/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
  66. package/OpenChannelSettings/components/OperatorUI.js +20 -20
  67. package/OpenChannelSettings/components/ParticipantUI.js +18 -18
  68. package/OpenChannelSettings/context.js +6 -6
  69. package/OpenChannelSettings.js +21 -21
  70. package/SendbirdProvider.js +14 -14
  71. package/{UserProfileContext-70f3b69e.js → UserProfileContext-a2483e23.js} +1 -1
  72. package/{UserProfileContext-70f3b69e.js.map → UserProfileContext-a2483e23.js.map} +1 -1
  73. package/{__bundle-6316ce22-a7fd8d16.js → __bundle-6316ce22-63d15802.js} +1 -1
  74. package/{__bundle-6316ce22-a7fd8d16.js.map → __bundle-6316ce22-63d15802.js.map} +1 -1
  75. package/{__bundle-7dfccc8c-85123da0.js → __bundle-7dfccc8c-d5c3938c.js} +2 -2
  76. package/{__bundle-7dfccc8c-85123da0.js.map → __bundle-7dfccc8c-d5c3938c.js.map} +1 -1
  77. package/{__bundle-fbda47dd-0157c82e.js → __bundle-fbda47dd-b1c87af3.js} +2 -2
  78. package/{__bundle-fbda47dd-0157c82e.js.map → __bundle-fbda47dd-b1c87af3.js.map} +1 -1
  79. package/{_rollupPluginBabelHelpers-67f295c6.js → _rollupPluginBabelHelpers-b2b008c2.js} +1 -1
  80. package/{_rollupPluginBabelHelpers-67f295c6.js.map → _rollupPluginBabelHelpers-b2b008c2.js.map} +1 -1
  81. package/{actionTypes-6723ddd6.js → actionTypes-3a618022.js} +1 -1
  82. package/{actionTypes-6723ddd6.js.map → actionTypes-3a618022.js.map} +1 -1
  83. package/cjs/App.js +35 -35
  84. package/cjs/Channel/components/ChannelHeader.js +19 -19
  85. package/cjs/Channel/components/ChannelUI.js +26 -26
  86. package/cjs/Channel/components/FileViewer.js +18 -18
  87. package/cjs/Channel/components/FrozenNotification.js +5 -5
  88. package/cjs/Channel/components/Message.js +23 -23
  89. package/cjs/Channel/components/MessageInput.js +20 -20
  90. package/cjs/Channel/components/MessageList.js +25 -25
  91. package/cjs/Channel/components/RemoveMessageModal.js +20 -20
  92. package/cjs/Channel/components/SuggestedMentionList.js +19 -19
  93. package/cjs/Channel/components/TypingIndicator.js +18 -18
  94. package/cjs/Channel/components/UnreadCount.js +5 -5
  95. package/cjs/Channel/context.js +17 -17
  96. package/cjs/Channel.js +26 -26
  97. package/cjs/ChannelList/components/AddChannel.js +14 -14
  98. package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
  99. package/cjs/ChannelList/components/ChannelListUI.js +30 -30
  100. package/cjs/ChannelList/components/ChannelPreview.js +23 -23
  101. package/cjs/ChannelList/components/ChannelPreviewAction.js +18 -18
  102. package/cjs/ChannelList/context.js +12 -12
  103. package/cjs/ChannelList.js +30 -30
  104. package/cjs/{ChannelListProvider-64262fd2.js → ChannelListProvider-3e882076.js} +9 -9
  105. package/cjs/{ChannelListProvider-64262fd2.js.map → ChannelListProvider-3e882076.js.map} +1 -1
  106. package/cjs/{ChannelProvider-c20e9dc3.js → ChannelProvider-b7e7f2ff.js} +12 -13
  107. package/cjs/{ChannelProvider-c20e9dc3.js.map → ChannelProvider-b7e7f2ff.js.map} +1 -1
  108. package/cjs/ChannelSettings/components/ChannelProfile.js +12 -12
  109. package/cjs/ChannelSettings/components/ChannelSettingsUI.js +22 -22
  110. package/cjs/ChannelSettings/components/EditDetailsModal.js +12 -12
  111. package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
  112. package/cjs/ChannelSettings/components/ModerationPanel.js +19 -19
  113. package/cjs/ChannelSettings/components/UserListItem.js +14 -14
  114. package/cjs/ChannelSettings/components/UserListItem.js.map +1 -1
  115. package/cjs/ChannelSettings/components/UserPanel.js +14 -14
  116. package/cjs/ChannelSettings/context.js +3 -3
  117. package/cjs/ChannelSettings.js +22 -22
  118. package/cjs/CreateChannel/components/CreateChannelUI.js +14 -14
  119. package/cjs/CreateChannel/components/InviteUsers.js +14 -14
  120. package/cjs/CreateChannel/components/SelectChannelType.js +11 -11
  121. package/cjs/CreateChannel/context.js +4 -4
  122. package/cjs/CreateChannel.js +14 -14
  123. package/cjs/{CreateChannelProvider-49506a99.js → CreateChannelProvider-cea018b0.js} +1 -1
  124. package/cjs/{CreateChannelProvider-49506a99.js.map → CreateChannelProvider-cea018b0.js.map} +1 -1
  125. package/cjs/EditUserProfile/components/EditUserProfileUI.js +13 -13
  126. package/cjs/EditUserProfile.js +13 -13
  127. package/cjs/{LocalizationContext-35942797.js → LocalizationContext-c13ae9d5.js} +3 -3
  128. package/cjs/{LocalizationContext-35942797.js.map → LocalizationContext-c13ae9d5.js.map} +1 -1
  129. package/cjs/{MemberList-c79c660f.js → MemberList-e062045b.js} +7 -7
  130. package/cjs/MemberList-e062045b.js.map +1 -0
  131. package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
  132. package/cjs/MessageSearch/context.js +2 -2
  133. package/cjs/MessageSearch.js +11 -11
  134. package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
  135. package/cjs/OpenChannel/components/OpenChannelHeader.js +17 -17
  136. package/cjs/OpenChannel/components/OpenChannelInput.js +21 -21
  137. package/cjs/OpenChannel/components/OpenChannelMessage.js +26 -26
  138. package/cjs/OpenChannel/components/OpenChannelMessageList.js +28 -28
  139. package/cjs/OpenChannel/components/OpenChannelUI.js +28 -28
  140. package/cjs/OpenChannel/context.js +14 -14
  141. package/cjs/OpenChannel.js +28 -28
  142. package/cjs/{OpenChannelProvider-174daa25.js → OpenChannelProvider-341f9a01.js} +10 -10
  143. package/cjs/{OpenChannelProvider-174daa25.js.map → OpenChannelProvider-341f9a01.js.map} +1 -1
  144. package/cjs/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  145. package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  146. package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
  147. package/cjs/OpenChannelSettings/components/OperatorUI.js +20 -20
  148. package/cjs/OpenChannelSettings/components/ParticipantUI.js +18 -18
  149. package/cjs/OpenChannelSettings/context.js +6 -6
  150. package/cjs/OpenChannelSettings.js +21 -21
  151. package/cjs/SendbirdProvider.js +14 -14
  152. package/cjs/{UserProfileContext-7fab3049.js → UserProfileContext-f7c125ca.js} +1 -1
  153. package/cjs/{UserProfileContext-7fab3049.js.map → UserProfileContext-f7c125ca.js.map} +1 -1
  154. package/cjs/{__bundle-6316ce22-bdf33468.js → __bundle-6316ce22-054c7ff6.js} +1 -1
  155. package/cjs/{__bundle-6316ce22-bdf33468.js.map → __bundle-6316ce22-054c7ff6.js.map} +1 -1
  156. package/cjs/{__bundle-7dfccc8c-8ada5946.js → __bundle-7dfccc8c-826eb0ef.js} +2 -2
  157. package/cjs/{__bundle-7dfccc8c-8ada5946.js.map → __bundle-7dfccc8c-826eb0ef.js.map} +1 -1
  158. package/cjs/{__bundle-fbda47dd-d736220d.js → __bundle-fbda47dd-4cb7267d.js} +2 -2
  159. package/cjs/{__bundle-fbda47dd-d736220d.js.map → __bundle-fbda47dd-4cb7267d.js.map} +1 -1
  160. package/cjs/{_rollupPluginBabelHelpers-082ff33d.js → _rollupPluginBabelHelpers-09706ebf.js} +1 -1
  161. package/cjs/{_rollupPluginBabelHelpers-082ff33d.js.map → _rollupPluginBabelHelpers-09706ebf.js.map} +1 -1
  162. package/cjs/{actionTypes-54af9c52.js → actionTypes-b3af2b15.js} +1 -1
  163. package/cjs/{actionTypes-54af9c52.js.map → actionTypes-b3af2b15.js.map} +1 -1
  164. package/cjs/{color-ec571f01.js → color-f0ffb253.js} +1 -1
  165. package/cjs/{color-ec571f01.js.map → color-f0ffb253.js.map} +1 -1
  166. package/cjs/{compareIds-1b11164b.js → compareIds-10371145.js} +1 -1
  167. package/cjs/{compareIds-1b11164b.js.map → compareIds-10371145.js.map} +1 -1
  168. package/cjs/{const-baaf7275.js → const-459420a0.js} +1 -1
  169. package/cjs/{const-baaf7275.js.map → const-459420a0.js.map} +1 -1
  170. package/cjs/{const-c6530407.js → const-84c58686.js} +1 -1
  171. package/cjs/{const-c6530407.js.map → const-84c58686.js.map} +1 -1
  172. package/cjs/{context-360ca291.js → context-01248097.js} +2 -2
  173. package/cjs/{context-360ca291.js.map → context-01248097.js.map} +1 -1
  174. package/cjs/dist/index.css +0 -2
  175. package/cjs/dist/index.css.map +1 -1
  176. package/cjs/{groupChannel-150632d7.js → groupChannel-4934c435.js} +4 -4
  177. package/cjs/{groupChannel-150632d7.js.map → groupChannel-4934c435.js.map} +1 -1
  178. package/cjs/handlers/ConnectionHandler.js +3 -3
  179. package/cjs/handlers/GroupChannelHandler.js +4 -4
  180. package/cjs/handlers/OpenChannelHandler.js +3 -3
  181. package/cjs/handlers/SessionHandler.js +3 -3
  182. package/cjs/handlers/UserEventHandler.js +3 -3
  183. package/cjs/{index-6a2cc1bb.js → index-0add0c83.js} +6 -6
  184. package/cjs/{index-6a2cc1bb.js.map → index-0add0c83.js.map} +1 -1
  185. package/cjs/{index-43c0e19f.js → index-243538a2.js} +2 -2
  186. package/cjs/{index-43c0e19f.js.map → index-243538a2.js.map} +1 -1
  187. package/cjs/{index-a4141b26.js → index-2d53c0e6.js} +4 -4
  188. package/cjs/{index-a4141b26.js.map → index-2d53c0e6.js.map} +1 -1
  189. package/cjs/{index-b099330e.js → index-2f58ecfc.js} +4 -4
  190. package/cjs/{index-b099330e.js.map → index-2f58ecfc.js.map} +1 -1
  191. package/cjs/{index-6fc7a50a.js → index-63b56a0e.js} +1 -1
  192. package/cjs/{index-6fc7a50a.js.map → index-63b56a0e.js.map} +1 -1
  193. package/cjs/{index-8a5ade0f.js → index-701d44c1.js} +2 -2
  194. package/cjs/{index-8a5ade0f.js.map → index-701d44c1.js.map} +1 -1
  195. package/cjs/{index-df12b2be.js → index-98e4f7b2.js} +1 -1
  196. package/cjs/{index-df12b2be.js.map → index-98e4f7b2.js.map} +1 -1
  197. package/cjs/{index-ead714db.js → index-a00a0f18.js} +9 -9
  198. package/cjs/{index-ead714db.js.map → index-a00a0f18.js.map} +1 -1
  199. package/cjs/{index-8bd2c4bb.js → index-c8f7702f.js} +2 -2
  200. package/cjs/{index-8bd2c4bb.js.map → index-c8f7702f.js.map} +1 -1
  201. package/cjs/{index-2f57e1c8.js → index-d889bc81.js} +3 -3
  202. package/cjs/{index-2f57e1c8.js.map → index-d889bc81.js.map} +1 -1
  203. package/cjs/{index-d5a50567.js → index-dad73aff.js} +3 -3
  204. package/cjs/{index-d5a50567.js.map → index-dad73aff.js.map} +1 -1
  205. package/cjs/index.js +39 -39
  206. package/cjs/{openChannel-e2adcd8a.js → openChannel-e95532d8.js} +3 -3
  207. package/cjs/{openChannel-e2adcd8a.js.map → openChannel-e95532d8.js.map} +1 -1
  208. package/cjs/{openChannelUtils-e9df94b8.js → openChannelUtils-7a336d09.js} +1 -1
  209. package/cjs/{openChannelUtils-e9df94b8.js.map → openChannelUtils-7a336d09.js.map} +1 -1
  210. package/cjs/{sendbird-211e4dae.js → sendbird-e3e5c8ae.js} +3 -3
  211. package/cjs/{sendbird-211e4dae.js.map → sendbird-e3e5c8ae.js.map} +1 -1
  212. package/cjs/sendbirdSelectors.js +2 -2
  213. package/cjs/{stringSet-59d50a66.js → stringSet-bd0c293d.js} +1 -1
  214. package/cjs/{stringSet-59d50a66.js.map → stringSet-bd0c293d.js.map} +1 -1
  215. package/cjs/{topics-8094440d.js → topics-f3fe3bf3.js} +1 -1
  216. package/cjs/{topics-8094440d.js.map → topics-f3fe3bf3.js.map} +1 -1
  217. package/cjs/{tslib.es6-f1d73fc3.js → tslib.es6-f57d0c81.js} +1 -1
  218. package/cjs/{tslib.es6-f1d73fc3.js.map → tslib.es6-f57d0c81.js.map} +1 -1
  219. package/cjs/ui/Accordion.js +4 -4
  220. package/cjs/ui/AccordionGroup.js +2 -2
  221. package/cjs/ui/AdminMessage.js +4 -4
  222. package/cjs/ui/Avatar.js +3 -3
  223. package/cjs/ui/Badge.js +6 -6
  224. package/cjs/ui/Button.js +5 -5
  225. package/cjs/ui/ChannelAvatar.js +4 -4
  226. package/cjs/ui/ChannelPreview.js +12 -12
  227. package/cjs/ui/ChatHeader.js +8 -8
  228. package/cjs/ui/ConnectionStatus.js +5 -5
  229. package/cjs/ui/ContextMenu.js +6 -6
  230. package/cjs/ui/DateSeparator.js +5 -5
  231. package/cjs/ui/EmojiReactions.js +8 -8
  232. package/cjs/ui/FileMessageItemBody.js +10 -8
  233. package/cjs/ui/FileMessageItemBody.js.map +1 -1
  234. package/cjs/ui/FileViewer.js +9 -9
  235. package/cjs/ui/Icon.js +1 -1
  236. package/cjs/ui/IconButton.js +1 -1
  237. package/cjs/ui/ImageRenderer.js +1 -1
  238. package/cjs/ui/Input.js +3 -3
  239. package/cjs/ui/Label.js +3 -3
  240. package/cjs/ui/LinkLabel.js +3 -3
  241. package/cjs/ui/Loader.js +2 -2
  242. package/cjs/ui/MentionLabel.js +11 -11
  243. package/cjs/ui/MessageContent.js +23 -18
  244. package/cjs/ui/MessageContent.js.map +1 -1
  245. package/cjs/ui/MessageInput.js +10 -10
  246. package/cjs/ui/MessageItemMenu.js +8 -8
  247. package/cjs/ui/MessageItemReactionMenu.js +6 -6
  248. package/cjs/ui/MessageSearchFileItem.js +10 -10
  249. package/cjs/ui/MessageSearchItem.js +10 -10
  250. package/cjs/ui/MessageStatus.js +8 -8
  251. package/cjs/ui/Modal.js +8 -8
  252. package/cjs/ui/MutedAvatarOverlay.js +1 -1
  253. package/cjs/ui/OGMessageItemBody.js +15 -13
  254. package/cjs/ui/OGMessageItemBody.js.map +1 -1
  255. package/cjs/ui/OpenChannelAdminMessage.js +4 -4
  256. package/cjs/ui/OpenChannelAvatar.js +7 -7
  257. package/cjs/ui/OpenchannelConversationHeader.js +7 -7
  258. package/cjs/ui/OpenchannelFileMessage.js +15 -15
  259. package/cjs/ui/OpenchannelOGMessage.js +15 -15
  260. package/cjs/ui/OpenchannelThumbnailMessage.js +14 -14
  261. package/cjs/ui/OpenchannelUserMessage.js +15 -15
  262. package/cjs/ui/PlaceHolder.js +7 -7
  263. package/cjs/ui/QuoteMessage.js +7 -7
  264. package/cjs/ui/QuoteMessageInput.js +7 -7
  265. package/cjs/ui/ReactionBadge.js +4 -4
  266. package/cjs/ui/ReactionButton.js +1 -1
  267. package/cjs/ui/SortByRow.js +2 -2
  268. package/cjs/ui/TextButton.js +2 -2
  269. package/cjs/ui/TextMessageItemBody.js +15 -13
  270. package/cjs/ui/TextMessageItemBody.js.map +1 -1
  271. package/cjs/ui/ThumbnailMessageItemBody.js +11 -9
  272. package/cjs/ui/ThumbnailMessageItemBody.js.map +1 -1
  273. package/cjs/ui/Tooltip.js +4 -4
  274. package/cjs/ui/TooltipWrapper.js +1 -1
  275. package/cjs/ui/UnknownMessageItemBody.js +11 -9
  276. package/cjs/ui/UnknownMessageItemBody.js.map +1 -1
  277. package/cjs/ui/UserListItem.js +12 -12
  278. package/cjs/ui/UserProfile.js +10 -10
  279. package/cjs/ui/Word.js +11 -11
  280. package/cjs/useSendbirdStateContext.js +1 -1
  281. package/cjs/{utils-09755f32.js → utils-438c14b6.js} +1 -1
  282. package/cjs/{utils-09755f32.js.map → utils-438c14b6.js.map} +1 -1
  283. package/cjs/{utils-c5ed90dc.js → utils-760ac018.js} +1 -1
  284. package/cjs/{utils-c5ed90dc.js.map → utils-760ac018.js.map} +1 -1
  285. package/cjs/{utils-ef8fd6ba.js → utils-959685f6.js} +1 -1
  286. package/cjs/{utils-ef8fd6ba.js.map → utils-959685f6.js.map} +1 -1
  287. package/cjs/{uuid-abe82759.js → uuid-1942f440.js} +1 -1
  288. package/cjs/{uuid-abe82759.js.map → uuid-1942f440.js.map} +1 -1
  289. package/cjs/withSendbird.js +1 -1
  290. package/{color-c5e2ab33.js → color-83cfc07a.js} +1 -1
  291. package/{color-c5e2ab33.js.map → color-83cfc07a.js.map} +1 -1
  292. package/{compareIds-7233a846.js → compareIds-9455ecb0.js} +1 -1
  293. package/{compareIds-7233a846.js.map → compareIds-9455ecb0.js.map} +1 -1
  294. package/{const-87ede7b1.js → const-71ceda85.js} +1 -1
  295. package/{const-87ede7b1.js.map → const-71ceda85.js.map} +1 -1
  296. package/{const-849d720a.js → const-7867ac6a.js} +1 -1
  297. package/{const-849d720a.js.map → const-7867ac6a.js.map} +1 -1
  298. package/{context-57c4ac55.js → context-2f6f1c17.js} +2 -2
  299. package/{context-57c4ac55.js.map → context-2f6f1c17.js.map} +1 -1
  300. package/dist/index.css +0 -2
  301. package/dist/index.css.map +1 -1
  302. package/{groupChannel-333bdda8.js → groupChannel-de6b26ee.js} +4 -4
  303. package/{groupChannel-333bdda8.js.map → groupChannel-de6b26ee.js.map} +1 -1
  304. package/handlers/ConnectionHandler.js +4 -4
  305. package/handlers/GroupChannelHandler.js +5 -5
  306. package/handlers/OpenChannelHandler.js +4 -4
  307. package/handlers/SessionHandler.js +4 -4
  308. package/handlers/UserEventHandler.js +4 -4
  309. package/{index-6bf196c4.js → index-1086dd43.js} +1 -1
  310. package/{index-6bf196c4.js.map → index-1086dd43.js.map} +1 -1
  311. package/{index-fcc0e6dc.js → index-16e14c17.js} +3 -3
  312. package/{index-fcc0e6dc.js.map → index-16e14c17.js.map} +1 -1
  313. package/{index-7e7eecb5.js → index-24a5ab49.js} +2 -2
  314. package/{index-7e7eecb5.js.map → index-24a5ab49.js.map} +1 -1
  315. package/{index-cd8f3035.js → index-25496c01.js} +1 -1
  316. package/{index-cd8f3035.js.map → index-25496c01.js.map} +1 -1
  317. package/{index-9564359d.js → index-2f85a795.js} +2 -2
  318. package/{index-9564359d.js.map → index-2f85a795.js.map} +1 -1
  319. package/{index-33e14ef9.js → index-4400a360.js} +2 -2
  320. package/{index-33e14ef9.js.map → index-4400a360.js.map} +1 -1
  321. package/{index-55ffa40a.js → index-7a790c96.js} +4 -4
  322. package/{index-55ffa40a.js.map → index-7a790c96.js.map} +1 -1
  323. package/{index-30d6338a.js → index-952d5f9b.js} +4 -4
  324. package/{index-30d6338a.js.map → index-952d5f9b.js.map} +1 -1
  325. package/{index-ce26872b.js → index-c3a36db0.js} +6 -6
  326. package/{index-ce26872b.js.map → index-c3a36db0.js.map} +1 -1
  327. package/{index-c6372f71.js → index-d545f604.js} +9 -9
  328. package/{index-c6372f71.js.map → index-d545f604.js.map} +1 -1
  329. package/{index-cc420cce.js → index-e028fd23.js} +3 -3
  330. package/{index-cc420cce.js.map → index-e028fd23.js.map} +1 -1
  331. package/index.d.ts +9 -2
  332. package/index.js +39 -39
  333. package/{openChannel-ea516c45.js → openChannel-825f8e93.js} +3 -3
  334. package/{openChannel-ea516c45.js.map → openChannel-825f8e93.js.map} +1 -1
  335. package/{openChannelUtils-5cc6b7cb.js → openChannelUtils-f64223c9.js} +1 -1
  336. package/{openChannelUtils-5cc6b7cb.js.map → openChannelUtils-f64223c9.js.map} +1 -1
  337. package/package.json +1 -1
  338. package/{sendbird-961b20e3.js → sendbird-21239b88.js} +3 -3
  339. package/{sendbird-961b20e3.js.map → sendbird-21239b88.js.map} +1 -1
  340. package/sendbirdSelectors.js +2 -2
  341. package/{stringSet-232e2ec0.js → stringSet-c4a61372.js} +1 -1
  342. package/{stringSet-232e2ec0.js.map → stringSet-c4a61372.js.map} +1 -1
  343. package/{topics-84946297.js → topics-851d221c.js} +1 -1
  344. package/{topics-84946297.js.map → topics-851d221c.js.map} +1 -1
  345. package/{tslib.es6-ea4b7876.js → tslib.es6-72a2f141.js} +1 -1
  346. package/{tslib.es6-ea4b7876.js.map → tslib.es6-72a2f141.js.map} +1 -1
  347. package/ui/Accordion.js +4 -4
  348. package/ui/AccordionGroup.js +2 -2
  349. package/ui/AdminMessage.js +4 -4
  350. package/ui/Avatar.js +3 -3
  351. package/ui/Badge.js +6 -6
  352. package/ui/Button.js +5 -5
  353. package/ui/ChannelAvatar.js +4 -4
  354. package/ui/ChannelPreview.js +12 -12
  355. package/ui/ChatHeader.js +8 -8
  356. package/ui/ConnectionStatus.js +5 -5
  357. package/ui/ContextMenu.js +6 -6
  358. package/ui/DateSeparator.js +5 -5
  359. package/ui/EmojiReactions.js +8 -8
  360. package/ui/FileMessageItemBody.js +10 -8
  361. package/ui/FileMessageItemBody.js.map +1 -1
  362. package/ui/FileViewer.js +9 -9
  363. package/ui/Icon.js +1 -1
  364. package/ui/IconButton.js +1 -1
  365. package/ui/ImageRenderer.js +1 -1
  366. package/ui/Input.js +3 -3
  367. package/ui/Label.js +3 -3
  368. package/ui/LinkLabel.js +3 -3
  369. package/ui/Loader.js +2 -2
  370. package/ui/MentionLabel.js +11 -11
  371. package/ui/MessageContent.js +23 -18
  372. package/ui/MessageContent.js.map +1 -1
  373. package/ui/MessageInput.js +10 -10
  374. package/ui/MessageItemMenu.js +8 -8
  375. package/ui/MessageItemReactionMenu.js +6 -6
  376. package/ui/MessageSearchFileItem.js +10 -10
  377. package/ui/MessageSearchItem.js +10 -10
  378. package/ui/MessageStatus.js +8 -8
  379. package/ui/Modal.js +8 -8
  380. package/ui/MutedAvatarOverlay.js +1 -1
  381. package/ui/OGMessageItemBody.js +15 -13
  382. package/ui/OGMessageItemBody.js.map +1 -1
  383. package/ui/OpenChannelAdminMessage.js +4 -4
  384. package/ui/OpenChannelAvatar.js +7 -7
  385. package/ui/OpenchannelConversationHeader.js +7 -7
  386. package/ui/OpenchannelFileMessage.js +15 -15
  387. package/ui/OpenchannelOGMessage.js +15 -15
  388. package/ui/OpenchannelThumbnailMessage.js +14 -14
  389. package/ui/OpenchannelUserMessage.js +15 -15
  390. package/ui/PlaceHolder.js +7 -7
  391. package/ui/QuoteMessage.js +7 -7
  392. package/ui/QuoteMessageInput.js +7 -7
  393. package/ui/ReactionBadge.js +4 -4
  394. package/ui/ReactionButton.js +1 -1
  395. package/ui/SortByRow.js +2 -2
  396. package/ui/TextButton.js +2 -2
  397. package/ui/TextMessageItemBody.js +15 -13
  398. package/ui/TextMessageItemBody.js.map +1 -1
  399. package/ui/ThumbnailMessageItemBody.js +11 -9
  400. package/ui/ThumbnailMessageItemBody.js.map +1 -1
  401. package/ui/Tooltip.js +4 -4
  402. package/ui/TooltipWrapper.js +1 -1
  403. package/ui/UnknownMessageItemBody.js +11 -9
  404. package/ui/UnknownMessageItemBody.js.map +1 -1
  405. package/ui/UserListItem.js +12 -12
  406. package/ui/UserProfile.js +10 -10
  407. package/ui/Word.js +11 -11
  408. package/useSendbirdStateContext.js +1 -1
  409. package/{utils-b6f36534.js → utils-12da1022.js} +1 -1
  410. package/{utils-b6f36534.js.map → utils-12da1022.js.map} +1 -1
  411. package/{utils-0cadb616.js → utils-2c4d166e.js} +1 -1
  412. package/{utils-0cadb616.js.map → utils-2c4d166e.js.map} +1 -1
  413. package/{utils-6195b8b0.js → utils-bc7d8f0c.js} +1 -1
  414. package/{utils-6195b8b0.js.map → utils-bc7d8f0c.js.map} +1 -1
  415. package/{uuid-e8af582d.js → uuid-8a4db02f.js} +1 -1
  416. package/{uuid-e8af582d.js.map → uuid-8a4db02f.js.map} +1 -1
  417. package/withSendbird.js +1 -1
  418. package/MemberList-464926f8.js.map +0 -1
  419. package/cjs/MemberList-c79c660f.js.map +0 -1
  420. package/package-lock.json +0 -60787
@@ -1,31 +1,31 @@
1
1
  import React__default, { useRef, useState, useContext } from 'react';
2
- import { a as LocalizationContext } from '../../LocalizationContext-397e33d0.js';
2
+ import { a as LocalizationContext } from '../../LocalizationContext-5b475a64.js';
3
3
  import Modal from '../../ui/Modal.js';
4
4
  import Input, { InputLabel } from '../../ui/Input.js';
5
5
  import Avatar from '../../ui/Avatar.js';
6
- import { T as Type } from '../../index-fcc0e6dc.js';
7
- import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-cc420cce.js';
6
+ import { T as Type } from '../../index-16e14c17.js';
7
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-e028fd23.js';
8
8
  import TextButton from '../../ui/TextButton.js';
9
9
  import ChannelAvatar from '../../ui/OpenChannelAvatar.js';
10
10
  import { useOpenChannelSettingsContext } from '../context.js';
11
11
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
12
- import '../../stringSet-232e2ec0.js';
13
- import '../../index-cd8f3035.js';
12
+ import '../../stringSet-c4a61372.js';
13
+ import '../../index-25496c01.js';
14
14
  import 'react-dom';
15
- import '../../index-6bf196c4.js';
15
+ import '../../index-1086dd43.js';
16
16
  import '../../ui/Icon.js';
17
- import '../../_rollupPluginBabelHelpers-67f295c6.js';
17
+ import '../../_rollupPluginBabelHelpers-b2b008c2.js';
18
18
  import 'prop-types';
19
19
  import '../../ui/IconButton.js';
20
- import '../../tslib.es6-ea4b7876.js';
20
+ import '../../tslib.es6-72a2f141.js';
21
21
  import '../../ui/ImageRenderer.js';
22
- import '../../uuid-e8af582d.js';
23
- import '../../color-c5e2ab33.js';
24
- import '../../utils-6195b8b0.js';
25
- import '../../openChannel-ea516c45.js';
26
- import '../../__bundle-6316ce22-a7fd8d16.js';
27
- import '../../__bundle-7dfccc8c-85123da0.js';
28
- import '../../UserProfileContext-70f3b69e.js';
22
+ import '../../uuid-8a4db02f.js';
23
+ import '../../color-83cfc07a.js';
24
+ import '../../utils-bc7d8f0c.js';
25
+ import '../../openChannel-825f8e93.js';
26
+ import '../../__bundle-6316ce22-63d15802.js';
27
+ import '../../__bundle-7dfccc8c-d5c3938c.js';
28
+ import '../../UserProfileContext-a2483e23.js';
29
29
  import '../../withSendbird.js';
30
30
 
31
31
  var EditDetails = function EditDetails(props) {
@@ -1,33 +1,33 @@
1
1
  import React__default, { useState, useContext } from 'react';
2
- import { a as LocalizationContext } from '../../LocalizationContext-397e33d0.js';
3
- import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-cc420cce.js';
2
+ import { a as LocalizationContext } from '../../LocalizationContext-5b475a64.js';
3
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-e028fd23.js';
4
4
  import TextButton from '../../ui/TextButton.js';
5
5
  import ChannelAvatar from '../../ui/OpenChannelAvatar.js';
6
6
  import EditDetails from './EditDetailsModal.js';
7
7
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
8
8
  import { useOpenChannelSettingsContext } from '../context.js';
9
- import '../../stringSet-232e2ec0.js';
10
- import '../../index-cd8f3035.js';
11
- import '../../_rollupPluginBabelHelpers-67f295c6.js';
9
+ import '../../stringSet-c4a61372.js';
10
+ import '../../index-25496c01.js';
11
+ import '../../_rollupPluginBabelHelpers-b2b008c2.js';
12
12
  import 'prop-types';
13
- import '../../tslib.es6-ea4b7876.js';
14
- import '../../color-c5e2ab33.js';
13
+ import '../../tslib.es6-72a2f141.js';
14
+ import '../../color-83cfc07a.js';
15
15
  import '../../ui/Avatar.js';
16
16
  import '../../ui/ImageRenderer.js';
17
17
  import '../../ui/Icon.js';
18
- import '../../uuid-e8af582d.js';
19
- import '../../utils-6195b8b0.js';
18
+ import '../../uuid-8a4db02f.js';
19
+ import '../../utils-bc7d8f0c.js';
20
20
  import '../../ui/Modal.js';
21
21
  import 'react-dom';
22
- import '../../index-6bf196c4.js';
23
- import '../../index-fcc0e6dc.js';
22
+ import '../../index-1086dd43.js';
23
+ import '../../index-16e14c17.js';
24
24
  import '../../ui/IconButton.js';
25
25
  import '../../ui/Input.js';
26
26
  import '../../withSendbird.js';
27
- import '../../openChannel-ea516c45.js';
28
- import '../../__bundle-6316ce22-a7fd8d16.js';
29
- import '../../__bundle-7dfccc8c-85123da0.js';
30
- import '../../UserProfileContext-70f3b69e.js';
27
+ import '../../openChannel-825f8e93.js';
28
+ import '../../__bundle-6316ce22-63d15802.js';
29
+ import '../../__bundle-7dfccc8c-d5c3938c.js';
30
+ import '../../UserProfileContext-a2483e23.js';
31
31
 
32
32
  function ChannelProfile() {
33
33
  var _a, _b;
@@ -1,51 +1,51 @@
1
1
  import React__default, { useContext } from 'react';
2
2
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
3
3
  import { useOpenChannelSettingsContext } from '../context.js';
4
- import { U as UserProfileProvider } from '../../UserProfileContext-70f3b69e.js';
5
- import { a as LocalizationContext } from '../../LocalizationContext-397e33d0.js';
6
- import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-cc420cce.js';
4
+ import { U as UserProfileProvider } from '../../UserProfileContext-a2483e23.js';
5
+ import { a as LocalizationContext } from '../../LocalizationContext-5b475a64.js';
6
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-e028fd23.js';
7
7
  import Icon, { IconTypes } from '../../ui/Icon.js';
8
- import { P as PlaceHolder, b as PlaceHolderTypes } from '../../index-55ffa40a.js';
8
+ import { P as PlaceHolder, b as PlaceHolderTypes } from '../../index-7a790c96.js';
9
9
  import { OperatorUI } from './OperatorUI.js';
10
- import { P as ParticipantList } from '../../index-c6372f71.js';
10
+ import { P as ParticipantList } from '../../index-d545f604.js';
11
11
  import '../../withSendbird.js';
12
- import '../../_rollupPluginBabelHelpers-67f295c6.js';
13
- import '../../openChannel-ea516c45.js';
14
- import '../../__bundle-6316ce22-a7fd8d16.js';
15
- import '../../__bundle-7dfccc8c-85123da0.js';
16
- import '../../uuid-e8af582d.js';
12
+ import '../../_rollupPluginBabelHelpers-b2b008c2.js';
13
+ import '../../openChannel-825f8e93.js';
14
+ import '../../__bundle-6316ce22-63d15802.js';
15
+ import '../../__bundle-7dfccc8c-d5c3938c.js';
16
+ import '../../uuid-8a4db02f.js';
17
17
  import 'prop-types';
18
- import '../../stringSet-232e2ec0.js';
19
- import '../../index-cd8f3035.js';
20
- import '../../tslib.es6-ea4b7876.js';
18
+ import '../../stringSet-c4a61372.js';
19
+ import '../../index-25496c01.js';
20
+ import '../../tslib.es6-72a2f141.js';
21
21
  import '../../ui/Loader.js';
22
22
  import './OpenChannelProfile.js';
23
23
  import '../../ui/TextButton.js';
24
- import '../../color-c5e2ab33.js';
24
+ import '../../color-83cfc07a.js';
25
25
  import '../../ui/OpenChannelAvatar.js';
26
26
  import '../../ui/Avatar.js';
27
27
  import '../../ui/ImageRenderer.js';
28
- import '../../utils-6195b8b0.js';
28
+ import '../../utils-bc7d8f0c.js';
29
29
  import './EditDetailsModal.js';
30
30
  import '../../ui/Modal.js';
31
31
  import 'react-dom';
32
- import '../../index-6bf196c4.js';
33
- import '../../index-fcc0e6dc.js';
32
+ import '../../index-1086dd43.js';
33
+ import '../../index-16e14c17.js';
34
34
  import '../../ui/IconButton.js';
35
35
  import '../../ui/Input.js';
36
36
  import '../../ui/Accordion.js';
37
37
  import '../../ui/AccordionGroup.js';
38
- import '../../context-57c4ac55.js';
39
- import '../../utils-0cadb616.js';
38
+ import '../../context-2f6f1c17.js';
39
+ import '../../utils-2c4d166e.js';
40
40
  import '../../ui/ContextMenu.js';
41
41
  import '../../ui/SortByRow.js';
42
- import '../../index-7e7eecb5.js';
42
+ import '../../index-24a5ab49.js';
43
43
  import '../../ui/UserListItem.js';
44
44
  import '../../ui/MutedAvatarOverlay.js';
45
45
  import '../../ui/Checkbox.js';
46
46
  import '../../ui/UserProfile.js';
47
47
  import '../../sendbirdSelectors.js';
48
- import '../../topics-84946297.js';
48
+ import '../../topics-851d221c.js';
49
49
 
50
50
  function InvalidChannel(_a) {
51
51
  var onCloseClick = _a.onCloseClick;
@@ -1,46 +1,46 @@
1
1
  import React__default, { useState, useContext, useEffect, useCallback } from 'react';
2
- import { a as LocalizationContext } from '../../LocalizationContext-397e33d0.js';
3
- import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-cc420cce.js';
2
+ import { a as LocalizationContext } from '../../LocalizationContext-5b475a64.js';
3
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-e028fd23.js';
4
4
  import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
5
5
  import { useOpenChannelSettingsContext } from '../context.js';
6
6
  import ChannelProfile from './OpenChannelProfile.js';
7
7
  import Modal from '../../ui/Modal.js';
8
8
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
9
- import { U as UserListItem$1, P as ParticipantList } from '../../index-c6372f71.js';
9
+ import { U as UserListItem$1, P as ParticipantList } from '../../index-d545f604.js';
10
10
  import Accordion, { AccordionGroup } from '../../ui/Accordion.js';
11
- import { T as Type, B as Button, a as ButtonTypes, b as ButtonSizes } from '../../index-fcc0e6dc.js';
11
+ import { T as Type, B as Button, a as ButtonTypes, b as ButtonSizes } from '../../index-16e14c17.js';
12
12
  import ContextMenu, { MenuItems, MenuItem } from '../../ui/ContextMenu.js';
13
13
  import IconButton from '../../ui/IconButton.js';
14
- import { a as __spreadArray, _ as __assign } from '../../tslib.es6-ea4b7876.js';
14
+ import { a as __spreadArray, _ as __assign } from '../../tslib.es6-72a2f141.js';
15
15
  import UserListItem from '../../ui/UserListItem.js';
16
- import { n as noop } from '../../utils-0cadb616.js';
17
- import '../../stringSet-232e2ec0.js';
18
- import '../../index-cd8f3035.js';
19
- import '../../_rollupPluginBabelHelpers-67f295c6.js';
16
+ import { n as noop } from '../../utils-2c4d166e.js';
17
+ import '../../stringSet-c4a61372.js';
18
+ import '../../index-25496c01.js';
19
+ import '../../_rollupPluginBabelHelpers-b2b008c2.js';
20
20
  import 'prop-types';
21
- import '../../openChannel-ea516c45.js';
22
- import '../../__bundle-6316ce22-a7fd8d16.js';
23
- import '../../__bundle-7dfccc8c-85123da0.js';
24
- import '../../UserProfileContext-70f3b69e.js';
25
- import '../../uuid-e8af582d.js';
21
+ import '../../openChannel-825f8e93.js';
22
+ import '../../__bundle-6316ce22-63d15802.js';
23
+ import '../../__bundle-7dfccc8c-d5c3938c.js';
24
+ import '../../UserProfileContext-a2483e23.js';
25
+ import '../../uuid-8a4db02f.js';
26
26
  import '../../withSendbird.js';
27
27
  import '../../ui/TextButton.js';
28
- import '../../color-c5e2ab33.js';
28
+ import '../../color-83cfc07a.js';
29
29
  import '../../ui/OpenChannelAvatar.js';
30
30
  import '../../ui/Avatar.js';
31
31
  import '../../ui/ImageRenderer.js';
32
- import '../../utils-6195b8b0.js';
32
+ import '../../utils-bc7d8f0c.js';
33
33
  import './EditDetailsModal.js';
34
34
  import '../../ui/Input.js';
35
35
  import 'react-dom';
36
- import '../../index-6bf196c4.js';
37
- import '../../context-57c4ac55.js';
36
+ import '../../index-1086dd43.js';
37
+ import '../../context-2f6f1c17.js';
38
38
  import '../../ui/UserProfile.js';
39
39
  import '../../sendbirdSelectors.js';
40
- import '../../topics-84946297.js';
40
+ import '../../topics-851d221c.js';
41
41
  import '../../ui/AccordionGroup.js';
42
42
  import '../../ui/SortByRow.js';
43
- import '../../index-7e7eecb5.js';
43
+ import '../../index-24a5ab49.js';
44
44
  import '../../ui/MutedAvatarOverlay.js';
45
45
  import '../../ui/Checkbox.js';
46
46
 
@@ -1,36 +1,36 @@
1
- import '../../tslib.es6-ea4b7876.js';
1
+ import '../../tslib.es6-72a2f141.js';
2
2
  import 'react';
3
- import '../../index-fcc0e6dc.js';
3
+ import '../../index-16e14c17.js';
4
4
  import '../../ui/ContextMenu.js';
5
5
  import '../../ui/Icon.js';
6
6
  import '../../ui/IconButton.js';
7
- import '../../index-cc420cce.js';
8
- export { P as default } from '../../index-c6372f71.js';
9
- import '../../LocalizationContext-397e33d0.js';
7
+ import '../../index-e028fd23.js';
8
+ export { P as default } from '../../index-d545f604.js';
9
+ import '../../LocalizationContext-5b475a64.js';
10
10
  import '../context.js';
11
11
  import '../../useSendbirdStateContext.js';
12
12
  import 'react-dom';
13
13
  import '../../ui/SortByRow.js';
14
- import '../../uuid-e8af582d.js';
15
- import '../../index-7e7eecb5.js';
16
- import '../../_rollupPluginBabelHelpers-67f295c6.js';
14
+ import '../../uuid-8a4db02f.js';
15
+ import '../../index-24a5ab49.js';
16
+ import '../../_rollupPluginBabelHelpers-b2b008c2.js';
17
17
  import 'prop-types';
18
- import '../../stringSet-232e2ec0.js';
19
- import '../../UserProfileContext-70f3b69e.js';
20
- import '../../context-57c4ac55.js';
21
- import '../../utils-0cadb616.js';
18
+ import '../../stringSet-c4a61372.js';
19
+ import '../../UserProfileContext-a2483e23.js';
20
+ import '../../context-2f6f1c17.js';
21
+ import '../../utils-2c4d166e.js';
22
22
  import '../../ui/Avatar.js';
23
23
  import '../../ui/ImageRenderer.js';
24
24
  import '../../ui/UserProfile.js';
25
25
  import '../../withSendbird.js';
26
26
  import '../../sendbirdSelectors.js';
27
- import '../../topics-84946297.js';
28
- import '../../index-cd8f3035.js';
29
- import '../../openChannel-ea516c45.js';
30
- import '../../__bundle-6316ce22-a7fd8d16.js';
31
- import '../../__bundle-7dfccc8c-85123da0.js';
27
+ import '../../topics-851d221c.js';
28
+ import '../../index-25496c01.js';
29
+ import '../../openChannel-825f8e93.js';
30
+ import '../../__bundle-6316ce22-63d15802.js';
31
+ import '../../__bundle-7dfccc8c-d5c3938c.js';
32
32
  import '../../ui/Modal.js';
33
- import '../../index-6bf196c4.js';
33
+ import '../../index-1086dd43.js';
34
34
  import '../../ui/UserListItem.js';
35
35
  import '../../ui/MutedAvatarOverlay.js';
36
36
  import '../../ui/Checkbox.js';
@@ -1,12 +1,12 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
- import { U as Un } from '../openChannel-ea516c45.js';
2
+ import { U as Un } from '../openChannel-825f8e93.js';
3
3
  import useSendbirdStateContext from '../useSendbirdStateContext.js';
4
- import { U as UserProfileProvider } from '../UserProfileContext-70f3b69e.js';
5
- import { u as uuidv4 } from '../uuid-e8af582d.js';
6
- import '../__bundle-6316ce22-a7fd8d16.js';
7
- import '../__bundle-7dfccc8c-85123da0.js';
4
+ import { U as UserProfileProvider } from '../UserProfileContext-a2483e23.js';
5
+ import { u as uuidv4 } from '../uuid-8a4db02f.js';
6
+ import '../__bundle-6316ce22-63d15802.js';
7
+ import '../__bundle-7dfccc8c-d5c3938c.js';
8
8
  import '../withSendbird.js';
9
- import '../_rollupPluginBabelHelpers-67f295c6.js';
9
+ import '../_rollupPluginBabelHelpers-b2b008c2.js';
10
10
  import 'prop-types';
11
11
 
12
12
  var OpenChannelSettingsContext = /*#__PURE__*/React__default.createContext(undefined);
@@ -3,45 +3,45 @@ import OpenChannelUI from './OpenChannelSettings/components/OpenChannelSettingsU
3
3
  import { OpenChannelSettingsProvider } from './OpenChannelSettings/context.js';
4
4
  import './useSendbirdStateContext.js';
5
5
  import './withSendbird.js';
6
- import './_rollupPluginBabelHelpers-67f295c6.js';
7
- import './UserProfileContext-70f3b69e.js';
6
+ import './_rollupPluginBabelHelpers-b2b008c2.js';
7
+ import './UserProfileContext-a2483e23.js';
8
8
  import 'prop-types';
9
- import './LocalizationContext-397e33d0.js';
10
- import './stringSet-232e2ec0.js';
11
- import './index-cd8f3035.js';
12
- import './index-cc420cce.js';
9
+ import './LocalizationContext-5b475a64.js';
10
+ import './stringSet-c4a61372.js';
11
+ import './index-25496c01.js';
12
+ import './index-e028fd23.js';
13
13
  import './ui/Icon.js';
14
- import './index-55ffa40a.js';
15
- import './tslib.es6-ea4b7876.js';
14
+ import './index-7a790c96.js';
15
+ import './tslib.es6-72a2f141.js';
16
16
  import './ui/Loader.js';
17
17
  import './OpenChannelSettings/components/OperatorUI.js';
18
18
  import './OpenChannelSettings/components/OpenChannelProfile.js';
19
19
  import './ui/TextButton.js';
20
- import './color-c5e2ab33.js';
20
+ import './color-83cfc07a.js';
21
21
  import './ui/OpenChannelAvatar.js';
22
22
  import './ui/Avatar.js';
23
23
  import './ui/ImageRenderer.js';
24
- import './uuid-e8af582d.js';
25
- import './utils-6195b8b0.js';
24
+ import './uuid-8a4db02f.js';
25
+ import './utils-bc7d8f0c.js';
26
26
  import './OpenChannelSettings/components/EditDetailsModal.js';
27
27
  import './ui/Modal.js';
28
28
  import 'react-dom';
29
- import './index-6bf196c4.js';
30
- import './index-fcc0e6dc.js';
29
+ import './index-1086dd43.js';
30
+ import './index-16e14c17.js';
31
31
  import './ui/IconButton.js';
32
32
  import './ui/Input.js';
33
- import './index-c6372f71.js';
33
+ import './index-d545f604.js';
34
34
  import './ui/ContextMenu.js';
35
35
  import './ui/SortByRow.js';
36
- import './index-7e7eecb5.js';
37
- import './context-57c4ac55.js';
38
- import './utils-0cadb616.js';
36
+ import './index-24a5ab49.js';
37
+ import './context-2f6f1c17.js';
38
+ import './utils-2c4d166e.js';
39
39
  import './ui/UserProfile.js';
40
40
  import './sendbirdSelectors.js';
41
- import './topics-84946297.js';
42
- import './openChannel-ea516c45.js';
43
- import './__bundle-6316ce22-a7fd8d16.js';
44
- import './__bundle-7dfccc8c-85123da0.js';
41
+ import './topics-851d221c.js';
42
+ import './openChannel-825f8e93.js';
43
+ import './__bundle-6316ce22-63d15802.js';
44
+ import './__bundle-7dfccc8c-d5c3938c.js';
45
45
  import './ui/UserListItem.js';
46
46
  import './ui/MutedAvatarOverlay.js';
47
47
  import './ui/Checkbox.js';
@@ -1,21 +1,21 @@
1
- import { _ as _objectSpread2, a as _slicedToArray } from './_rollupPluginBabelHelpers-67f295c6.js';
1
+ import { _ as _objectSpread2, a as _slicedToArray } from './_rollupPluginBabelHelpers-b2b008c2.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-961b20e3.js';
6
- import { N as Nn } from './openChannel-ea516c45.js';
7
- import { $ as $r } from './groupChannel-333bdda8.js';
8
- import { R as RESET_USER, I as INIT_USER, U as UPDATE_USER_INFO } from './actionTypes-6723ddd6.js';
9
- import { i as isTextuallyNull } from './index-7e7eecb5.js';
10
- import { _ as __assign } from './tslib.es6-ea4b7876.js';
5
+ import { F as Fn, P as Pe } from './sendbird-21239b88.js';
6
+ import { N as Nn } from './openChannel-825f8e93.js';
7
+ import { $ as $r } from './groupChannel-de6b26ee.js';
8
+ import { R as RESET_USER, I as INIT_USER, U as UPDATE_USER_INFO } from './actionTypes-3a618022.js';
9
+ import { i as isTextuallyNull } from './index-24a5ab49.js';
10
+ import { _ as __assign } from './tslib.es6-72a2f141.js';
11
11
  import cssVars from 'css-vars-ponyfill';
12
- import { u as uuidv4 } from './uuid-e8af582d.js';
13
- import { L as LocalizationProvider } from './LocalizationContext-397e33d0.js';
14
- import { g as getStringSet } from './stringSet-232e2ec0.js';
15
- import './__bundle-6316ce22-a7fd8d16.js';
16
- import './__bundle-fbda47dd-0157c82e.js';
17
- import './__bundle-7dfccc8c-85123da0.js';
18
- import './index-cd8f3035.js';
12
+ import { u as uuidv4 } from './uuid-8a4db02f.js';
13
+ import { L as LocalizationProvider } from './LocalizationContext-5b475a64.js';
14
+ import { g as getStringSet } from './stringSet-c4a61372.js';
15
+ import './__bundle-6316ce22-63d15802.js';
16
+ import './__bundle-fbda47dd-b1c87af3.js';
17
+ import './__bundle-7dfccc8c-d5c3938c.js';
18
+ import './index-25496c01.js';
19
19
 
20
20
  var INIT_SDK = 'INIT_SDK';
21
21
  var SET_SDK_LOADING = 'SET_SDK_LOADING';
@@ -35,4 +35,4 @@ UserProfileProvider.defaultProps = {
35
35
  };
36
36
 
37
37
  export { UserProfileProvider as U, UserProfileContext as a };
38
- //# sourceMappingURL=UserProfileContext-70f3b69e.js.map
38
+ //# sourceMappingURL=UserProfileContext-a2483e23.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserProfileContext-70f3b69e.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;;;;"}
1
+ {"version":3,"file":"UserProfileContext-a2483e23.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-a7fd8d16.js.map
20
+ //# sourceMappingURL=__bundle-6316ce22-63d15802.js.map