quickblox-react-ui-kit 0.4.1 → 0.4.2-beta.2

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 (1013) hide show
  1. package/dist/Presentation/ui-components/TextField/TextField.d.ts +1 -1
  2. package/dist/index-ui.d.ts +2 -1
  3. package/dist/index-ui.js +21 -0
  4. package/dist/index-ui.js.map +1 -1
  5. package/package.json +2 -2
  6. package/.storybook/main.ts +0 -26
  7. package/.storybook/preview.ts +0 -16
  8. package/public/favicon.ico +0 -0
  9. package/public/index.html +0 -47
  10. package/public/logo192.png +0 -0
  11. package/public/logo512.png +0 -0
  12. package/public/manifest.json +0 -25
  13. package/public/quickblox.js +0 -54609
  14. package/public/robots.txt +0 -3
  15. package/src/App.scss +0 -3
  16. package/src/App.tsx +0 -232
  17. package/src/CommonTypes/BaseViewModel.ts +0 -95
  18. package/src/CommonTypes/CommonTypes.ts +0 -260
  19. package/src/CommonTypes/FunctionResult.ts +0 -7
  20. package/src/Data/Creator.ts +0 -105
  21. package/src/Data/DefaultConfigurations.ts +0 -277
  22. package/src/Data/Stubs.ts +0 -1241
  23. package/src/Data/dto/dialog/LocalDialogDTO.ts +0 -42
  24. package/src/Data/dto/dialog/LocalDialogsDTO.ts +0 -21
  25. package/src/Data/dto/dialog/RemoteDialogDTO.ts +0 -58
  26. package/src/Data/dto/dialog/RemoteDialogsDTO.ts +0 -21
  27. package/src/Data/dto/file/LocalFileDTO.ts +0 -26
  28. package/src/Data/dto/file/RemoteFileDTO.ts +0 -26
  29. package/src/Data/dto/message/LocalMessageDTO.ts +0 -49
  30. package/src/Data/dto/message/LocalMessagesDTO.ts +0 -21
  31. package/src/Data/dto/message/RemoteMessageDTO.ts +0 -57
  32. package/src/Data/dto/message/RemoteMessagesDTO.ts +0 -21
  33. package/src/Data/dto/user/LocalUserDTO.ts +0 -37
  34. package/src/Data/dto/user/LocalUsersDTO.ts +0 -21
  35. package/src/Data/dto/user/RemoteUserDTO.ts +0 -37
  36. package/src/Data/dto/user/RemoteUsersDTO.ts +0 -21
  37. package/src/Data/mapper/DialogLocalDTOMapper.ts +0 -736
  38. package/src/Data/mapper/DialogRemoteDTOMapper.ts +0 -736
  39. package/src/Data/mapper/FileLocalDTOMapper.ts +0 -216
  40. package/src/Data/mapper/FileRemoteDTOMapper.ts +0 -230
  41. package/src/Data/mapper/IMapper.ts +0 -4
  42. package/src/Data/mapper/MessageLocalDTOMapper.ts +0 -426
  43. package/src/Data/mapper/MessageRemoteDTOMapper.ts +0 -465
  44. package/src/Data/mapper/UserLocalDTOMapper.ts +0 -387
  45. package/src/Data/mapper/UserRemoteDTOMapper.ts +0 -398
  46. package/src/Data/repository/ConnectionRepository.ts +0 -135
  47. package/src/Data/repository/DialogsRepository.ts +0 -374
  48. package/src/Data/repository/EventMessagesRepository.ts +0 -325
  49. package/src/Data/repository/FileRepository.ts +0 -107
  50. package/src/Data/repository/MessagesRepository.ts +0 -291
  51. package/src/Data/repository/UsersRepository.ts +0 -297
  52. package/src/Data/source/AISource.ts +0 -133
  53. package/src/Data/source/exception/LocalDataSourceException.ts +0 -17
  54. package/src/Data/source/exception/MapperDTOException.ts +0 -22
  55. package/src/Data/source/exception/RemoteDataSourceException.ts +0 -28
  56. package/src/Data/source/exception/RepositoryException.ts +0 -27
  57. package/src/Data/source/local/ChatLocalStorageDataSource.ts +0 -260
  58. package/src/Data/source/local/ILocalDataSource.ts +0 -41
  59. package/src/Data/source/local/ILocalFileDataSource.ts +0 -11
  60. package/src/Data/source/local/LocalDataSource.ts +0 -353
  61. package/src/Data/source/local/LocalFileDataSource.ts +0 -20
  62. package/src/Data/source/remote/IRemoteDataSource.ts +0 -127
  63. package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +0 -443
  64. package/src/Data/source/remote/Mapper/FileDTOMapper.ts +0 -274
  65. package/src/Data/source/remote/Mapper/IDTOMapper.ts +0 -4
  66. package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +0 -608
  67. package/src/Data/source/remote/Mapper/UserDTOMapper.ts +0 -344
  68. package/src/Data/source/remote/RemoteDataSource.ts +0 -1503
  69. package/src/Domain/entity/Chat.ts +0 -4
  70. package/src/Domain/entity/ChatMessageAttachmentEntity.ts +0 -15
  71. package/src/Domain/entity/CustomDataEntity.ts +0 -3
  72. package/src/Domain/entity/DialogEntity.ts +0 -15
  73. package/src/Domain/entity/DialogEventInfo.ts +0 -19
  74. package/src/Domain/entity/DialogTypes.ts +0 -7
  75. package/src/Domain/entity/EventMessageType.ts +0 -7
  76. package/src/Domain/entity/FileEntity.ts +0 -11
  77. package/src/Domain/entity/FileTypes.ts +0 -9
  78. package/src/Domain/entity/GroupDialogEntity.ts +0 -54
  79. package/src/Domain/entity/LastMessageEntity.ts +0 -5
  80. package/src/Domain/entity/MessageEntity.ts +0 -25
  81. package/src/Domain/entity/NotificationTypes.ts +0 -9
  82. package/src/Domain/entity/PrivateDialogEntity.ts +0 -46
  83. package/src/Domain/entity/PublicDialogEntity.ts +0 -80
  84. package/src/Domain/entity/UserEntity.ts +0 -13
  85. package/src/Domain/exception/domain/DomainExecption.ts +0 -5
  86. package/src/Domain/repository/IDialogsRepository.ts +0 -42
  87. package/src/Domain/repository/IFileRepository.ts +0 -9
  88. package/src/Domain/repository/IMessagesRepository.ts +0 -28
  89. package/src/Domain/repository/IUsersRepository.ts +0 -13
  90. package/src/Domain/repository/Pagination.ts +0 -48
  91. package/src/Domain/use_cases/CreateDialogUseCase.ts +0 -79
  92. package/src/Domain/use_cases/ForwardMessagesUseCase.ts +0 -73
  93. package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -20
  94. package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -40
  95. package/src/Domain/use_cases/GetAllMessagesForDialog.ts +0 -61
  96. package/src/Domain/use_cases/GetAllUsersUseCase.ts +0 -34
  97. package/src/Domain/use_cases/GetDialogByIdUseCase.ts +0 -32
  98. package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +0 -22
  99. package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -116
  100. package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -118
  101. package/src/Domain/use_cases/ReplyMessagesUseCase.ts +0 -35
  102. package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -27
  103. package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -160
  104. package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -68
  105. package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCaseWithMock.ts +0 -45
  106. package/src/Domain/use_cases/SyncDialogsUseCase.ts +0 -177
  107. package/src/Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase.ts +0 -31
  108. package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -77
  109. package/src/Domain/use_cases/UploadFileUseCase.ts +0 -24
  110. package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -50
  111. package/src/Domain/use_cases/ai/AIAnswerAssistUseCase.ts +0 -69
  112. package/src/Domain/use_cases/ai/AIAnswerAssistWithProxyUseCase.ts +0 -57
  113. package/src/Domain/use_cases/ai/AIAnswerAssistWithSDKUseCase.ts +0 -50
  114. package/src/Domain/use_cases/ai/AIRephraseUseCase.ts +0 -89
  115. package/src/Domain/use_cases/ai/AIRephraseWithProxyUseCase.ts +0 -62
  116. package/src/Domain/use_cases/ai/AITranslateUseCase.ts +0 -76
  117. package/src/Domain/use_cases/ai/AITranslateWithProxyUseCase.ts +0 -63
  118. package/src/Domain/use_cases/ai/AITranslateWithSDKUseCase.ts +0 -107
  119. package/src/Domain/use_cases/base/BaseUseCase.ts +0 -77
  120. package/src/Domain/use_cases/base/IUseCase.ts +0 -5
  121. package/src/Domain/use_cases/base/Subscribable/ISubscribable.ts +0 -6
  122. package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +0 -144
  123. package/src/Presentation/.gitkeep +0 -0
  124. package/src/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.scss +0 -39
  125. package/src/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.tsx +0 -71
  126. package/src/Presentation/Views/Dialog/AIComponents/AIAssistComponent/AIAssistComponent.scss +0 -32
  127. package/src/Presentation/Views/Dialog/AIComponents/AIAssistComponent/AIAssistComponent.tsx +0 -28
  128. package/src/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.scss +0 -77
  129. package/src/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.tsx +0 -126
  130. package/src/Presentation/Views/Dialog/AIComponents/AITranslateComponent/AITranslateComponent.scss +0 -47
  131. package/src/Presentation/Views/Dialog/AIComponents/AITranslateComponent/AITranslateComponent.tsx +0 -78
  132. package/src/Presentation/Views/Dialog/AIWidgets/AIMessageWidget.ts +0 -40
  133. package/src/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.scss +0 -25
  134. package/src/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.tsx +0 -186
  135. package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.scss +0 -55
  136. package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.tsx +0 -122
  137. package/src/Presentation/Views/Dialog/AIWidgets/ErrorMessageIcon.tsx +0 -98
  138. package/src/Presentation/Views/Dialog/AIWidgets/SliderMenu.tsx +0 -172
  139. package/src/Presentation/Views/Dialog/AIWidgets/Tone.ts +0 -21
  140. package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAIAssistAnswerWidget.tsx +0 -72
  141. package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAIAssistAnswerWidgetWithProxy.tsx +0 -72
  142. package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAIAssistAnswerWidgetWithSDK.tsx +0 -74
  143. package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAIRephraseMessageWidget.tsx +0 -96
  144. package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAIRephraseMessageWidgetWithProxy.tsx +0 -94
  145. package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAITranslateWidget.tsx +0 -78
  146. package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAITranslateWidgetWithProxy.tsx +0 -78
  147. package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAITranslateWidgetWithSDK.tsx +0 -70
  148. package/src/Presentation/Views/Dialog/AIWidgets/useDefaultVoiceInputWidget.tsx +0 -88
  149. package/src/Presentation/Views/Dialog/ContextMenu/ContextMenu.scss +0 -58
  150. package/src/Presentation/Views/Dialog/ContextMenu/ContextMenu.tsx +0 -93
  151. package/src/Presentation/Views/Dialog/Dialog.scss +0 -368
  152. package/src/Presentation/Views/Dialog/Dialog.tsx +0 -100
  153. package/src/Presentation/Views/Dialog/DialogHeader/DialogBackIcon/DialogBackIcon.scss +0 -29
  154. package/src/Presentation/Views/Dialog/DialogHeader/DialogBackIcon/DialogBackIcon.tsx +0 -34
  155. package/src/Presentation/Views/Dialog/DialogHeader/DialogHeader.scss +0 -114
  156. package/src/Presentation/Views/Dialog/DialogHeader/DialogHeader.tsx +0 -51
  157. package/src/Presentation/Views/Dialog/DialogHeader/DialogInfoIcon/DialogInfoIcon.scss +0 -53
  158. package/src/Presentation/Views/Dialog/DialogHeader/DialogInfoIcon/DialogInfoIcon.tsx +0 -58
  159. package/src/Presentation/Views/Dialog/DialogViewModel.ts +0 -26
  160. package/src/Presentation/Views/Dialog/DropDownMenu/DropDownMenu.scss +0 -84
  161. package/src/Presentation/Views/Dialog/DropDownMenu/DropDownMenu.tsx +0 -105
  162. package/src/Presentation/Views/Dialog/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.scss +0 -50
  163. package/src/Presentation/Views/Dialog/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.tsx +0 -43
  164. package/src/Presentation/Views/Dialog/ErrorToast/ErrorToast.scss +0 -26
  165. package/src/Presentation/Views/Dialog/ErrorToast/ErrorToast.tsx +0 -23
  166. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.scss +0 -74
  167. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.tsx +0 -96
  168. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogsWithSearch.scss +0 -50
  169. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogsWithSearch.tsx +0 -97
  170. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/SearchComponent/SearchComponent.scss +0 -98
  171. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/SearchComponent/SearchComponent.tsx +0 -65
  172. package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.scss +0 -159
  173. package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.tsx +0 -122
  174. package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessagePreview/ForwardMessagePreview.scss +0 -100
  175. package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessagePreview/ForwardMessagePreview.tsx +0 -90
  176. package/src/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.scss +0 -95
  177. package/src/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.tsx +0 -47
  178. package/src/Presentation/Views/Dialog/InputMessage/InputMessage.scss +0 -92
  179. package/src/Presentation/Views/Dialog/InputMessage/InputMessage.tsx +0 -145
  180. package/src/Presentation/Views/Dialog/Message/HighLightLink/HighLightLink.scss +0 -97
  181. package/src/Presentation/Views/Dialog/Message/HighLightLink/HighLightLink.tsx +0 -114
  182. package/src/Presentation/Views/Dialog/Message/IncomingForwardedMessage/IncomingForwardedMessage.scss +0 -250
  183. package/src/Presentation/Views/Dialog/Message/IncomingForwardedMessage/IncomingForwardedMessage.tsx +0 -290
  184. package/src/Presentation/Views/Dialog/Message/IncomingMessage/AvatarContentIncomingUser/AvatarContentIncomingUser.scss +0 -22
  185. package/src/Presentation/Views/Dialog/Message/IncomingMessage/AvatarContentIncomingUser/AvatarContentIncomingUser.tsx +0 -32
  186. package/src/Presentation/Views/Dialog/Message/IncomingMessage/IncomingMessage.scss +0 -241
  187. package/src/Presentation/Views/Dialog/Message/IncomingMessage/IncomingMessage.tsx +0 -316
  188. package/src/Presentation/Views/Dialog/Message/IncomingMessage/MessageContentComponent/MessageContentComponent.scss +0 -4
  189. package/src/Presentation/Views/Dialog/Message/IncomingMessage/MessageContentComponent/MessageContentComponent.tsx +0 -67
  190. package/src/Presentation/Views/Dialog/Message/IncomingRepliedMessage/IncomingRepliedMessage.scss +0 -250
  191. package/src/Presentation/Views/Dialog/Message/IncomingRepliedMessage/IncomingRepliedMessage.tsx +0 -298
  192. package/src/Presentation/Views/Dialog/Message/Message.tsx +0 -378
  193. package/src/Presentation/Views/Dialog/Message/MessageAttachment/AudioAttachment/AudioAttachment.scss +0 -31
  194. package/src/Presentation/Views/Dialog/Message/MessageAttachment/AudioAttachment/AudioAttachment.tsx +0 -155
  195. package/src/Presentation/Views/Dialog/Message/MessageAttachment/DefaultAttachment/DefaultAttachment.scss +0 -76
  196. package/src/Presentation/Views/Dialog/Message/MessageAttachment/DefaultAttachment/DefaultAttachment.tsx +0 -50
  197. package/src/Presentation/Views/Dialog/Message/MessageAttachment/ImageAttachment/ImageAttachment.scss +0 -14
  198. package/src/Presentation/Views/Dialog/Message/MessageAttachment/ImageAttachment/ImageAttachment.tsx +0 -50
  199. package/src/Presentation/Views/Dialog/Message/MessageAttachment/MessageAttachment.tsx +0 -92
  200. package/src/Presentation/Views/Dialog/Message/MessageAttachment/VideoAttachment/VideoAttachment.scss +0 -18
  201. package/src/Presentation/Views/Dialog/Message/MessageAttachment/VideoAttachment/VideoAttachment.tsx +0 -58
  202. package/src/Presentation/Views/Dialog/Message/MessageContextMenu/MessageContextMenu.scss +0 -10
  203. package/src/Presentation/Views/Dialog/Message/MessageContextMenu/MessageContextMenu.tsx +0 -61
  204. package/src/Presentation/Views/Dialog/Message/OutgoinForwardedMessage/OutgoinForwardedMessage.scss +0 -160
  205. package/src/Presentation/Views/Dialog/Message/OutgoinForwardedMessage/OutgoinForwardedMessage.tsx +0 -133
  206. package/src/Presentation/Views/Dialog/Message/OutgoingMessage/OutgoingMessage.scss +0 -122
  207. package/src/Presentation/Views/Dialog/Message/OutgoingMessage/OutgoingMessage.tsx +0 -104
  208. package/src/Presentation/Views/Dialog/Message/OutgoingRepliedMessage/OutgoingRepliedMessage.scss +0 -155
  209. package/src/Presentation/Views/Dialog/Message/OutgoingRepliedMessage/OutgoingRepliedMessage.tsx +0 -103
  210. package/src/Presentation/Views/Dialog/MessageContextMenu/MessageContextMenu.scss +0 -19
  211. package/src/Presentation/Views/Dialog/MessageContextMenu/MessageContextMenu.tsx +0 -78
  212. package/src/Presentation/Views/Dialog/MessageItem/MessageItem.scss +0 -21
  213. package/src/Presentation/Views/Dialog/MessageItem/MessageItem.tsx +0 -378
  214. package/src/Presentation/Views/Dialog/SystemDateBanner/SystemDateBanner.scss +0 -23
  215. package/src/Presentation/Views/Dialog/SystemDateBanner/SystemDateBanner.tsx +0 -17
  216. package/src/Presentation/Views/Dialog/SystemMessageBanner/SystemMessageBanner.scss +0 -21
  217. package/src/Presentation/Views/Dialog/SystemMessageBanner/SystemMessageBanner.tsx +0 -17
  218. package/src/Presentation/Views/Dialog/VoiceMessage/VoiceMessage.tsx +0 -21
  219. package/src/Presentation/Views/Dialog/useDialogViewModel.ts +0 -765
  220. package/src/Presentation/Views/DialogInfo/DialogInfo.scss +0 -237
  221. package/src/Presentation/Views/DialogInfo/DialogInfo.tsx +0 -495
  222. package/src/Presentation/Views/DialogInfo/DialogMemberButton/DialogMembersButton.scss +0 -42
  223. package/src/Presentation/Views/DialogInfo/DialogMemberButton/DialogMembersButton.tsx +0 -26
  224. package/src/Presentation/Views/DialogInfo/MembersList/MembersList.scss +0 -85
  225. package/src/Presentation/Views/DialogInfo/MembersList/MembersList.tsx +0 -74
  226. package/src/Presentation/Views/DialogInfo/UsersList/SingleUser/SingleUser.scss +0 -66
  227. package/src/Presentation/Views/DialogInfo/UsersList/SingleUser/SingleUser.tsx +0 -71
  228. package/src/Presentation/Views/DialogInfo/UsersList/UsersList.scss +0 -0
  229. package/src/Presentation/Views/DialogInfo/UsersList/UsersList.tsx +0 -71
  230. package/src/Presentation/Views/DialogInfo/UsersList/UsersListViewModel.ts +0 -15
  231. package/src/Presentation/Views/DialogInfo/UsersList/useUsersListViewModel.ts +0 -125
  232. package/src/Presentation/Views/DialogList/DialogList.scss +0 -150
  233. package/src/Presentation/Views/DialogList/DialogList.tsx +0 -407
  234. package/src/Presentation/Views/DialogList/DialogListViewModel.ts +0 -25
  235. package/src/Presentation/Views/DialogList/useDialogListViewModel.ts +0 -579
  236. package/src/Presentation/Views/DialogListHeader/DialogListHeader.scss +0 -68
  237. package/src/Presentation/Views/DialogListHeader/DialogListHeader.tsx +0 -90
  238. package/src/Presentation/Views/EditDialog/EditDialog.scss +0 -175
  239. package/src/Presentation/Views/EditDialog/EditDialog.tsx +0 -273
  240. package/src/Presentation/Views/EditDialog/UserAvatar/UserAvatar.scss +0 -32
  241. package/src/Presentation/Views/EditDialog/UserAvatar/UserAvatar.tsx +0 -59
  242. package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.scss +0 -93
  243. package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.tsx +0 -69
  244. package/src/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.tsx +0 -191
  245. package/src/Presentation/Views/Flow/LeaveDialogFlow/LeaveDialogFlow.tsx +0 -37
  246. package/src/Presentation/Views/InviteMembers/InviteMembers.scss +0 -202
  247. package/src/Presentation/Views/InviteMembers/InviteMembers.tsx +0 -316
  248. package/src/Presentation/Views/InviteMembers/InviteMembersViewModel.ts +0 -18
  249. package/src/Presentation/Views/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.scss +0 -90
  250. package/src/Presentation/Views/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.tsx +0 -122
  251. package/src/Presentation/Views/InviteMembers/InviteUsersResultViewModel.ts +0 -12
  252. package/src/Presentation/Views/InviteMembers/NotFoundContent/NotFoundContent.scss +0 -38
  253. package/src/Presentation/Views/InviteMembers/NotFoundContent/NotFoundContent.tsx +0 -22
  254. package/src/Presentation/Views/InviteMembers/useInviteMembersViewModel.ts +0 -146
  255. package/src/Presentation/Views/Navigation/More.svg +0 -7
  256. package/src/Presentation/Views/PreviewDialog/PreviewDialog.scss +0 -211
  257. package/src/Presentation/Views/PreviewDialog/PreviewDialog.tsx +0 -332
  258. package/src/Presentation/Views/PreviewDialog/PreviewDialogContextMenu/PreviewDialogContextMenu.scss +0 -9
  259. package/src/Presentation/Views/PreviewDialog/PreviewDialogContextMenu/PreviewDialogContextMenu.tsx +0 -59
  260. package/src/Presentation/Views/PreviewDialog/PreviewDialogViewModel.ts +0 -42
  261. package/src/Presentation/Views/YesNoQuestion/YesNoQuestion.scss +0 -11
  262. package/src/Presentation/Views/YesNoQuestion/YesNoQuestion.tsx +0 -48
  263. package/src/Presentation/assets/fonts/.gitkeep +0 -0
  264. package/src/Presentation/assets/fonts/Roboto-Bold.eot +0 -0
  265. package/src/Presentation/assets/fonts/Roboto-Bold.ttf +0 -0
  266. package/src/Presentation/assets/fonts/Roboto-Bold.woff +0 -0
  267. package/src/Presentation/assets/fonts/Roboto-Bold.woff2 +0 -0
  268. package/src/Presentation/assets/fonts/Roboto-Medium.eot +0 -0
  269. package/src/Presentation/assets/fonts/Roboto-Medium.ttf +0 -0
  270. package/src/Presentation/assets/fonts/Roboto-Medium.woff +0 -0
  271. package/src/Presentation/assets/fonts/Roboto-Medium.woff2 +0 -0
  272. package/src/Presentation/assets/fonts/Roboto-Regular.eot +0 -0
  273. package/src/Presentation/assets/fonts/Roboto-Regular.ttf +0 -0
  274. package/src/Presentation/assets/fonts/Roboto-Regular.woff +0 -0
  275. package/src/Presentation/assets/fonts/Roboto-Regular.woff2 +0 -0
  276. package/src/Presentation/assets/img/Artem_Koltunov_Selfi.png +0 -0
  277. package/src/Presentation/assets/img/bee-img.png +0 -0
  278. package/src/Presentation/assets/img/web-doc.png +0 -0
  279. package/src/Presentation/components/Button.js +0 -5
  280. package/src/Presentation/components/Navbar.tsx +0 -45
  281. package/src/Presentation/components/TextInput.js +0 -10
  282. package/src/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.tsx +0 -40
  283. package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.scss +0 -0
  284. package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.tsx +0 -30
  285. package/src/Presentation/components/UI/Buttons/MainButton/MainButton.css +0 -103
  286. package/src/Presentation/components/UI/Buttons/MainButton/MainButton.tsx +0 -62
  287. package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.scss +0 -61
  288. package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.tsx +0 -48
  289. package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.scss +0 -74
  290. package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.tsx +0 -52
  291. package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss +0 -21
  292. package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.tsx +0 -44
  293. package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.scss +0 -3
  294. package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.tsx +0 -45
  295. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/AIWidget/Send.svg +0 -3
  296. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/AIWidget/index.tsx +0 -39
  297. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/BookIcon/BookIcon.tsx +0 -7
  298. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/BotIcon/BotIcon.svg +0 -5
  299. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/BotIcon/BotIcon.tsx +0 -50
  300. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/HammerIcon/index.tsx +0 -7
  301. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/HandshakeIcon/index.tsx +0 -7
  302. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/MuscleIcon/index.tsx +0 -7
  303. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/NecktieIcon/index.tsx +0 -7
  304. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/NeutralFaceIcon/index.tsx +0 -7
  305. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/PalmsUpTogetherIcon/index.tsx +0 -7
  306. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/PerformingArtsIcon/index.tsx +0 -7
  307. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/PointUpIcon/index.tsx +0 -7
  308. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/SmileyIcon/index.tsx +0 -20
  309. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/SmirkIcon/index.tsx +0 -7
  310. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/WhiteCheckMarkIcon/index.tsx +0 -7
  311. package/src/Presentation/components/UI/svgs/Icons/Actions/Add/Add.svg +0 -3
  312. package/src/Presentation/components/UI/svgs/Icons/Actions/Add/index.tsx +0 -22
  313. package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/Add contact.svg +0 -3
  314. package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/index.tsx +0 -22
  315. package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/Archive.svg +0 -3
  316. package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/index.tsx +0 -22
  317. package/src/Presentation/components/UI/svgs/Icons/Actions/AssistAnswer/AssistAnswer.svg +0 -3
  318. package/src/Presentation/components/UI/svgs/Icons/Actions/AssistAnswer/index.tsx +0 -93
  319. package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/Copy.svg +0 -3
  320. package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/index.tsx +0 -22
  321. package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/Delete.svg +0 -3
  322. package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/index.tsx +0 -22
  323. package/src/Presentation/components/UI/svgs/Icons/Actions/Download/Download.svg +0 -3
  324. package/src/Presentation/components/UI/svgs/Icons/Actions/Download/index.tsx +0 -22
  325. package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/Edit.svg +0 -3
  326. package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/index.tsx +0 -22
  327. package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/EditDots.svg +0 -3
  328. package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/index.tsx +0 -35
  329. package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/Emoji.svg +0 -3
  330. package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/index.tsx +0 -22
  331. package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/Forward filled.svg +0 -3
  332. package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/index.tsx +0 -22
  333. package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/Hungup.svg +0 -3
  334. package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/index.tsx +0 -22
  335. package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/Income call.svg +0 -3
  336. package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/index.tsx +0 -22
  337. package/src/Presentation/components/UI/svgs/Icons/Actions/Like/Like.svg +0 -3
  338. package/src/Presentation/components/UI/svgs/Icons/Actions/Like/index.tsx +0 -22
  339. package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/New chat.svg +0 -3
  340. package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/index.tsx +0 -22
  341. package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/Outcome call.svg +0 -3
  342. package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/index.tsx +0 -22
  343. package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/Phone.svg +0 -3
  344. package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/index.tsx +0 -35
  345. package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/Phone filled.svg +0 -3
  346. package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/index.tsx +0 -22
  347. package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/Remove.svg +0 -3
  348. package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/index.tsx +0 -22
  349. package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/Remove2.svg +0 -3
  350. package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/index.tsx +0 -22
  351. package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/Reply filled.svg +0 -3
  352. package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.tsx +0 -22
  353. package/src/Presentation/components/UI/svgs/Icons/Actions/Send/Send.svg +0 -3
  354. package/src/Presentation/components/UI/svgs/Icons/Actions/Send/index.tsx +0 -38
  355. package/src/Presentation/components/UI/svgs/Icons/Actions/Share/Share.svg +0 -3
  356. package/src/Presentation/components/UI/svgs/Icons/Actions/Share/index.tsx +0 -22
  357. package/src/Presentation/components/UI/svgs/Icons/Actions/Summarize/Summarize.svg +0 -6
  358. package/src/Presentation/components/UI/svgs/Icons/Actions/Summarize/index.tsx +0 -58
  359. package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/Swap camera.svg +0 -3
  360. package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/index.tsx +0 -22
  361. package/src/Presentation/components/UI/svgs/Icons/Actions/Tone/Tone.svg +0 -3
  362. package/src/Presentation/components/UI/svgs/Icons/Actions/Tone/index.tsx +0 -34
  363. package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/Unarchive.svg +0 -3
  364. package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/index.tsx +0 -22
  365. package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/Video.svg +0 -3
  366. package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/index.tsx +0 -22
  367. package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/Voice.svg +0 -3
  368. package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/index.tsx +0 -35
  369. package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/Broadcast.svg +0 -7
  370. package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/index.tsx +0 -38
  371. package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/Chat.svg +0 -3
  372. package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/index.tsx +0 -35
  373. package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/Chat filled.svg +0 -3
  374. package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/index.tsx +0 -22
  375. package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/Conference.svg +0 -3
  376. package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/index.tsx +0 -22
  377. package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/Contact.svg +0 -3
  378. package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/index.tsx +0 -22
  379. package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/Contact filled.svg +0 -3
  380. package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/index.tsx +0 -22
  381. package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/Group chat.svg +0 -3
  382. package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/index.tsx +0 -35
  383. package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/Notifications.svg +0 -3
  384. package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/index.tsx +0 -22
  385. package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/Private chat.svg +0 -3
  386. package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/index.tsx +0 -22
  387. package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/Public channel.svg +0 -7
  388. package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/index.tsx +0 -67
  389. package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/Stream.svg +0 -3
  390. package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/index.tsx +0 -22
  391. package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/Stream filled.svg +0 -3
  392. package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/index.tsx +0 -22
  393. package/src/Presentation/components/UI/svgs/Icons/Contents/User/User.svg +0 -3
  394. package/src/Presentation/components/UI/svgs/Icons/Contents/User/index.tsx +0 -35
  395. package/src/Presentation/components/UI/svgs/Icons/IconsCommonTypes.ts +0 -6
  396. package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/Attachment.svg +0 -3
  397. package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/index.tsx +0 -22
  398. package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/Audio file.svg +0 -3
  399. package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/index.tsx +0 -22
  400. package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/Broken file.svg +0 -3
  401. package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/index.tsx +0 -22
  402. package/src/Presentation/components/UI/svgs/Icons/Media/Camera/Camera.svg +0 -3
  403. package/src/Presentation/components/UI/svgs/Icons/Media/Camera/index.tsx +0 -22
  404. package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/GIF file.svg +0 -3
  405. package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/index.tsx +0 -22
  406. package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/Image.svg +0 -3
  407. package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/index.tsx +0 -22
  408. package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/File.svg +0 -3
  409. package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/index.tsx +0 -35
  410. package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/Image filled.svg +0 -3
  411. package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/index.tsx +0 -22
  412. package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/Link.svg +0 -3
  413. package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/index.tsx +0 -22
  414. package/src/Presentation/components/UI/svgs/Icons/Media/Location/Location.svg +0 -4
  415. package/src/Presentation/components/UI/svgs/Icons/Media/Location/index.tsx +0 -26
  416. package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/Text document.svg +0 -3
  417. package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.tsx +0 -22
  418. package/src/Presentation/components/UI/svgs/Icons/Media/Translate/Translate.svg +0 -3
  419. package/src/Presentation/components/UI/svgs/Icons/Media/Translate/index.tsx +0 -35
  420. package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/Video file.svg +0 -3
  421. package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/index.tsx +0 -22
  422. package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/Admin.svg +0 -3
  423. package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/index.tsx +0 -22
  424. package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/Banned.svg +0 -3
  425. package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/index.tsx +0 -22
  426. package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/Freeze.svg +0 -3
  427. package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/index.tsx +0 -22
  428. package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/Moderations.svg +0 -3
  429. package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/index.tsx +0 -22
  430. package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/Muted.svg +0 -3
  431. package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/index.tsx +0 -22
  432. package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/Arrow left.svg +0 -3
  433. package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/index.tsx +0 -22
  434. package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/Arrow right.svg +0 -3
  435. package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/index.tsx +0 -22
  436. package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/Back.svg +0 -3
  437. package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/index.tsx +0 -34
  438. package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/Close.svg +0 -3
  439. package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/index.tsx +0 -35
  440. package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/Down.svg +0 -3
  441. package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/index.tsx +0 -35
  442. package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/Leave.svg +0 -3
  443. package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/index.tsx +0 -35
  444. package/src/Presentation/components/UI/svgs/Icons/Navigation/More/More.svg +0 -7
  445. package/src/Presentation/components/UI/svgs/Icons/Navigation/More/index.tsx +0 -22
  446. package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/Next.svg +0 -3
  447. package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/index.tsx +0 -35
  448. package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/Plus.svg +0 -3
  449. package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/index.tsx +0 -22
  450. package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/Refresh.svg +0 -3
  451. package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/index.tsx +0 -36
  452. package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/Search.svg +0 -3
  453. package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/index.tsx +0 -35
  454. package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/Settings.svg +0 -3
  455. package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/index.tsx +0 -22
  456. package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/Settings filled.svg +0 -3
  457. package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/index.tsx +0 -22
  458. package/src/Presentation/components/UI/svgs/Icons/Status/Error/Error.svg +0 -3
  459. package/src/Presentation/components/UI/svgs/Icons/Status/Error/index.tsx +0 -36
  460. package/src/Presentation/components/UI/svgs/Icons/Status/Help/Help.svg +0 -3
  461. package/src/Presentation/components/UI/svgs/Icons/Status/Help/index.tsx +0 -22
  462. package/src/Presentation/components/UI/svgs/Icons/Status/Information/Information.svg +0 -3
  463. package/src/Presentation/components/UI/svgs/Icons/Status/Information/index.tsx +0 -22
  464. package/src/Presentation/components/UI/svgs/Icons/Status/InformationFill/index.tsx +0 -40
  465. package/src/Presentation/components/UI/svgs/Icons/Status/Loader/Loader.svg +0 -3
  466. package/src/Presentation/components/UI/svgs/Icons/Status/Loader/index.tsx +0 -22
  467. package/src/Presentation/components/UI/svgs/Icons/Status/Mention/Mention.svg +0 -3
  468. package/src/Presentation/components/UI/svgs/Icons/Status/Mention/index.tsx +0 -22
  469. package/src/Presentation/components/UI/svgs/Icons/Status/Sent/Sent.svg +0 -3
  470. package/src/Presentation/components/UI/svgs/Icons/Status/Sent/index.tsx +0 -22
  471. package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/Viewed_Delivered.svg +0 -3
  472. package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/index.tsx +0 -38
  473. package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/Camera off.svg +0 -3
  474. package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/index.tsx +0 -22
  475. package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/Camera on.svg +0 -3
  476. package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/index.tsx +0 -22
  477. package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/Check off.svg +0 -3
  478. package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/index.tsx +0 -22
  479. package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/Check on.svg +0 -3
  480. package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/index.tsx +0 -24
  481. package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/Favourite.svg +0 -3
  482. package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/index.tsx +0 -22
  483. package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/Favourite filled.svg +0 -3
  484. package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/index.tsx +0 -22
  485. package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/Full screen.svg +0 -3
  486. package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/inex.tsx +0 -22
  487. package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/Hide.svg +0 -3
  488. package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/index.tsx +0 -22
  489. package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/Play.svg +0 -3
  490. package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/index.tsx +0 -22
  491. package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/Louder.svg +0 -3
  492. package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/index.tsx +0 -22
  493. package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/Mic off.svg +0 -3
  494. package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/index.tsx +0 -22
  495. package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/Mic on.svg +0 -4
  496. package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/index.tsx +0 -26
  497. package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/Minimize.svg +0 -3
  498. package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/index.tsx +0 -22
  499. package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/Notify off.svg +0 -3
  500. package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/index.tsx +0 -35
  501. package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/Notify on.svg +0 -3
  502. package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/index.tsx +0 -35
  503. package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/Pause.svg +0 -3
  504. package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/index.tsx +0 -22
  505. package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/Quite.svg +0 -3
  506. package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/index.tsx +0 -22
  507. package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/Record.svg +0 -3
  508. package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/index.tsx +0 -22
  509. package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/Screenshare.svg +0 -3
  510. package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/index.tsx +0 -22
  511. package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/Show.svg +0 -3
  512. package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/index.tsx +0 -22
  513. package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/Speaker.svg +0 -3
  514. package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/index.tsx +0 -22
  515. package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/Speaker off.svg +0 -3
  516. package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/index.tsx +0 -22
  517. package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/Stop record.svg +0 -3
  518. package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/index.tsx +0 -22
  519. package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/Stop share.svg +0 -3
  520. package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/index.tsx +0 -22
  521. package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.scss +0 -16
  522. package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.tsx +0 -27
  523. package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.scss +0 -45
  524. package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.tsx +0 -88
  525. package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.scss +0 -45
  526. package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.tsx +0 -90
  527. package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.scss +0 -46
  528. package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.tsx +0 -90
  529. package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.scss +0 -45
  530. package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.tsx +0 -102
  531. package/src/Presentation/components/containers/SectionList/hooks/createUseComponent.ts +0 -20
  532. package/src/Presentation/components/containers/SectionList/hooks/index.ts +0 -4
  533. package/src/Presentation/components/containers/SectionList/hooks/useMobileLayout.ts +0 -27
  534. package/src/Presentation/components/containers/SectionList/hooks/usePrevious.ts +0 -11
  535. package/src/Presentation/components/containers/SectionList/hooks/useVisibility.ts +0 -17
  536. package/src/Presentation/components/containers/SectionList/index.tsx +0 -52
  537. package/src/Presentation/components/containers/SectionList/styles.css +0 -50
  538. package/src/Presentation/components/containers/SectionList/useComponent.ts +0 -136
  539. package/src/Presentation/icons/actions/add-contact.svg +0 -3
  540. package/src/Presentation/icons/actions/add.svg +0 -3
  541. package/src/Presentation/icons/actions/archive.svg +0 -3
  542. package/src/Presentation/icons/actions/copy.svg +0 -3
  543. package/src/Presentation/icons/actions/delete.svg +0 -3
  544. package/src/Presentation/icons/actions/download.svg +0 -3
  545. package/src/Presentation/icons/actions/edit.svg +0 -3
  546. package/src/Presentation/icons/actions/emoji.svg +0 -3
  547. package/src/Presentation/icons/actions/forward-filled.svg +0 -3
  548. package/src/Presentation/icons/actions/hungup.svg +0 -3
  549. package/src/Presentation/icons/actions/income-call.svg +0 -3
  550. package/src/Presentation/icons/actions/index.ts +0 -26
  551. package/src/Presentation/icons/actions/like.svg +0 -3
  552. package/src/Presentation/icons/actions/new-chat.svg +0 -3
  553. package/src/Presentation/icons/actions/outcome-call.svg +0 -3
  554. package/src/Presentation/icons/actions/phone-filled.svg +0 -3
  555. package/src/Presentation/icons/actions/phone.svg +0 -3
  556. package/src/Presentation/icons/actions/remove-2.svg +0 -3
  557. package/src/Presentation/icons/actions/remove.svg +0 -3
  558. package/src/Presentation/icons/actions/rephrase.svg +0 -6
  559. package/src/Presentation/icons/actions/reply-filled.svg +0 -3
  560. package/src/Presentation/icons/actions/robot.svg +0 -5
  561. package/src/Presentation/icons/actions/send.svg +0 -3
  562. package/src/Presentation/icons/actions/share.svg +0 -3
  563. package/src/Presentation/icons/actions/swap-camera.svg +0 -3
  564. package/src/Presentation/icons/actions/translate.svg +0 -3
  565. package/src/Presentation/icons/actions/unarchive.svg +0 -3
  566. package/src/Presentation/icons/actions/video.svg +0 -3
  567. package/src/Presentation/icons/actions/voice.svg +0 -3
  568. package/src/Presentation/icons/contents/broadcast.svg +0 -7
  569. package/src/Presentation/icons/contents/chat-filled.svg +0 -3
  570. package/src/Presentation/icons/contents/chat.svg +0 -3
  571. package/src/Presentation/icons/contents/conference.svg +0 -3
  572. package/src/Presentation/icons/contents/contact-filled.svg +0 -3
  573. package/src/Presentation/icons/contents/contact.svg +0 -3
  574. package/src/Presentation/icons/contents/group-chat.svg +0 -3
  575. package/src/Presentation/icons/contents/index.ts +0 -13
  576. package/src/Presentation/icons/contents/notifications.svg +0 -3
  577. package/src/Presentation/icons/contents/private-chat.svg +0 -3
  578. package/src/Presentation/icons/contents/public-channel.svg +0 -7
  579. package/src/Presentation/icons/contents/stream-filled.svg +0 -3
  580. package/src/Presentation/icons/contents/stream.svg +0 -3
  581. package/src/Presentation/icons/contents/user.svg +0 -3
  582. package/src/Presentation/icons/index.ts +0 -7
  583. package/src/Presentation/icons/media/attachment.svg +0 -3
  584. package/src/Presentation/icons/media/audio-file.svg +0 -3
  585. package/src/Presentation/icons/media/broken-file.svg +0 -3
  586. package/src/Presentation/icons/media/camera.svg +0 -3
  587. package/src/Presentation/icons/media/file.svg +0 -3
  588. package/src/Presentation/icons/media/gif-file.svg +0 -3
  589. package/src/Presentation/icons/media/image-filled.svg +0 -3
  590. package/src/Presentation/icons/media/image.svg +0 -3
  591. package/src/Presentation/icons/media/index.ts +0 -12
  592. package/src/Presentation/icons/media/link.svg +0 -3
  593. package/src/Presentation/icons/media/location.svg +0 -4
  594. package/src/Presentation/icons/media/text-document.svg +0 -3
  595. package/src/Presentation/icons/media/video-file.svg +0 -3
  596. package/src/Presentation/icons/moderation/admin.svg +0 -3
  597. package/src/Presentation/icons/moderation/banned.svg +0 -3
  598. package/src/Presentation/icons/moderation/freeze.svg +0 -3
  599. package/src/Presentation/icons/moderation/index.ts +0 -5
  600. package/src/Presentation/icons/moderation/moderations.svg +0 -3
  601. package/src/Presentation/icons/moderation/muted.svg +0 -3
  602. package/src/Presentation/icons/navigation/arrow-left.svg +0 -3
  603. package/src/Presentation/icons/navigation/arrow-right.svg +0 -3
  604. package/src/Presentation/icons/navigation/back.svg +0 -3
  605. package/src/Presentation/icons/navigation/close.svg +0 -3
  606. package/src/Presentation/icons/navigation/down.svg +0 -3
  607. package/src/Presentation/icons/navigation/index.ts +0 -12
  608. package/src/Presentation/icons/navigation/leave.svg +0 -3
  609. package/src/Presentation/icons/navigation/more.svg +0 -3
  610. package/src/Presentation/icons/navigation/next.svg +0 -3
  611. package/src/Presentation/icons/navigation/plus.svg +0 -3
  612. package/src/Presentation/icons/navigation/refresh.svg +0 -3
  613. package/src/Presentation/icons/navigation/search.svg +0 -3
  614. package/src/Presentation/icons/navigation/settings-filled.svg +0 -3
  615. package/src/Presentation/icons/navigation/settings.svg +0 -3
  616. package/src/Presentation/icons/status/error.svg +0 -3
  617. package/src/Presentation/icons/status/help.svg +0 -3
  618. package/src/Presentation/icons/status/index.ts +0 -7
  619. package/src/Presentation/icons/status/information.svg +0 -3
  620. package/src/Presentation/icons/status/loader.svg +0 -3
  621. package/src/Presentation/icons/status/mention.svg +0 -3
  622. package/src/Presentation/icons/status/sent.svg +0 -3
  623. package/src/Presentation/icons/status/viewed-delivered.svg +0 -3
  624. package/src/Presentation/icons/toggle/camera-off.svg +0 -3
  625. package/src/Presentation/icons/toggle/camera-on.svg +0 -3
  626. package/src/Presentation/icons/toggle/check-off.svg +0 -3
  627. package/src/Presentation/icons/toggle/check-on.svg +0 -3
  628. package/src/Presentation/icons/toggle/favorite.svg +0 -3
  629. package/src/Presentation/icons/toggle/favourite.svg +0 -3
  630. package/src/Presentation/icons/toggle/full-screen.svg +0 -3
  631. package/src/Presentation/icons/toggle/hide.svg +0 -3
  632. package/src/Presentation/icons/toggle/index.ts +0 -23
  633. package/src/Presentation/icons/toggle/louder.svg +0 -3
  634. package/src/Presentation/icons/toggle/mic-off.svg +0 -3
  635. package/src/Presentation/icons/toggle/mic-on.svg +0 -4
  636. package/src/Presentation/icons/toggle/minimize.svg +0 -3
  637. package/src/Presentation/icons/toggle/notify-off.svg +0 -3
  638. package/src/Presentation/icons/toggle/notify-on.svg +0 -3
  639. package/src/Presentation/icons/toggle/pause.svg +0 -3
  640. package/src/Presentation/icons/toggle/play.svg +0 -3
  641. package/src/Presentation/icons/toggle/quite.svg +0 -3
  642. package/src/Presentation/icons/toggle/record.svg +0 -3
  643. package/src/Presentation/icons/toggle/screenshare.svg +0 -3
  644. package/src/Presentation/icons/toggle/show.svg +0 -3
  645. package/src/Presentation/icons/toggle/speaker off.svg +0 -3
  646. package/src/Presentation/icons/toggle/speaker-off.svg +0 -3
  647. package/src/Presentation/icons/toggle/speaker.svg +0 -3
  648. package/src/Presentation/icons/toggle/stop-record.svg +0 -3
  649. package/src/Presentation/icons/toggle/stop-share.svg +0 -3
  650. package/src/Presentation/layouts/Desktop/DesktopLayout.scss +0 -62
  651. package/src/Presentation/layouts/Desktop/DesktopLayout.tsx +0 -89
  652. package/src/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +0 -1354
  653. package/src/Presentation/layouts/LayoutCommonTypes.ts +0 -7
  654. package/src/Presentation/layouts/TestStage/CompanyLogo/CompanyLogo.tsx +0 -27
  655. package/src/Presentation/layouts/TestStage/LoginView/Login.scss +0 -72
  656. package/src/Presentation/layouts/TestStage/LoginView/Login.tsx +0 -91
  657. package/src/Presentation/providers/ProviderProps.ts +0 -5
  658. package/src/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +0 -375
  659. package/src/Presentation/providers/QuickBloxUIKitProvider/useEventMessagesRepository.ts +0 -10
  660. package/src/Presentation/providers/QuickBloxUIKitProvider/useQBConnection.ts +0 -54
  661. package/src/Presentation/providers/QuickBloxUIKitProvider/useQbInitializedDataContext.ts +0 -83
  662. package/src/Presentation/providers/QuickBloxUIKitProvider/useQbUIKitDataContext.ts +0 -11
  663. package/src/Presentation/themes/DarkTheme.ts +0 -58
  664. package/src/Presentation/themes/DefaultThemes/CustomTheme.ts +0 -58
  665. package/src/Presentation/themes/DefaultThemes/DefaultTheme.ts +0 -58
  666. package/src/Presentation/themes/LightTheme.ts +0 -58
  667. package/src/Presentation/themes/ThemeScheme.ts +0 -83
  668. package/src/Presentation/themes/UiKitTheme.ts +0 -37
  669. package/src/Presentation/themes/styles/_fonts.scss +0 -32
  670. package/src/Presentation/themes/styles/_mixins.scss +0 -6
  671. package/src/Presentation/themes/styles/_theme_colors_scheme.scss +0 -56
  672. package/src/Presentation/themes/styles/_theme_colors_scheme_green.scss +0 -57
  673. package/src/Presentation/themes/styles/_theme_colors_scheme_pink.scss +0 -72
  674. package/src/Presentation/themes/styles/_theme_dark.scss +0 -37
  675. package/src/Presentation/themes/styles/_theme_light.scss +0 -38
  676. package/src/Presentation/themes/styles/_variables.scss +0 -54
  677. package/src/Presentation/ui-components/Avatar/Avatar.scss +0 -58
  678. package/src/Presentation/ui-components/Avatar/Avatar.tsx +0 -30
  679. package/src/Presentation/ui-components/Avatar/avatar.stories.tsx +0 -78
  680. package/src/Presentation/ui-components/Badge/Badge.scss +0 -23
  681. package/src/Presentation/ui-components/Badge/Badge.stories.ts +0 -64
  682. package/src/Presentation/ui-components/Badge/Badge.tsx +0 -23
  683. package/src/Presentation/ui-components/Button/Button.scss +0 -133
  684. package/src/Presentation/ui-components/Button/Button.stories.ts +0 -93
  685. package/src/Presentation/ui-components/Button/Button.tsx +0 -49
  686. package/src/Presentation/ui-components/CheckBox/CheckBox.scss +0 -10
  687. package/src/Presentation/ui-components/CheckBox/CheckBox.tsx +0 -23
  688. package/src/Presentation/ui-components/DialogBanner/DialogBanner.scss +0 -29
  689. package/src/Presentation/ui-components/DialogBanner/DialogBanner.stories.ts +0 -39
  690. package/src/Presentation/ui-components/DialogBanner/DialogBanner.tsx +0 -16
  691. package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.scss +0 -71
  692. package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.stories.tsx +0 -194
  693. package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.tsx +0 -73
  694. package/src/Presentation/ui-components/DialogWindow/DialogWindow.scss +0 -56
  695. package/src/Presentation/ui-components/DialogWindow/DialogWindow.stories.tsx +0 -107
  696. package/src/Presentation/ui-components/DialogWindow/DialogWindow.tsx +0 -44
  697. package/src/Presentation/ui-components/Dropdown/Dropdown.scss +0 -82
  698. package/src/Presentation/ui-components/Dropdown/Dropdown.stories.tsx +0 -150
  699. package/src/Presentation/ui-components/Dropdown/Dropdown.tsx +0 -92
  700. package/src/Presentation/ui-components/Dropdown/DropdownOption.tsx +0 -38
  701. package/src/Presentation/ui-components/Header/Header.scss +0 -72
  702. package/src/Presentation/ui-components/Header/Header.stories.tsx +0 -117
  703. package/src/Presentation/ui-components/Header/Header.tsx +0 -51
  704. package/src/Presentation/ui-components/Loader/Loader.scss +0 -27
  705. package/src/Presentation/ui-components/Loader/Loader.stories.ts +0 -42
  706. package/src/Presentation/ui-components/Loader/Loader.tsx +0 -15
  707. package/src/Presentation/ui-components/Message/Bubble/AttachmentBubble/AttachmentBubble.tsx +0 -71
  708. package/src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.scss +0 -84
  709. package/src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.tsx +0 -162
  710. package/src/Presentation/ui-components/Message/Bubble/FileBubble/FileBubble.scss +0 -29
  711. package/src/Presentation/ui-components/Message/Bubble/FileBubble/FileBubble.tsx +0 -16
  712. package/src/Presentation/ui-components/Message/Bubble/ImageBubble/ImageBubble.scss +0 -16
  713. package/src/Presentation/ui-components/Message/Bubble/ImageBubble/ImageBubble.tsx +0 -25
  714. package/src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.scss +0 -40
  715. package/src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.tsx +0 -22
  716. package/src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.scss +0 -27
  717. package/src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.tsx +0 -34
  718. package/src/Presentation/ui-components/Message/FileUrl/FileUrl.scss +0 -58
  719. package/src/Presentation/ui-components/Message/FileUrl/FileUrl.tsx +0 -43
  720. package/src/Presentation/ui-components/Message/Message.scss +0 -136
  721. package/src/Presentation/ui-components/Message/Message.stories.tsx +0 -328
  722. package/src/Presentation/ui-components/Message/Message.tsx +0 -85
  723. package/src/Presentation/ui-components/Message/MessageCaption/MessageCaption.scss +0 -90
  724. package/src/Presentation/ui-components/Message/MessageCaption/MessageCaption.tsx +0 -46
  725. package/src/Presentation/ui-components/Message/TimeAndStatus/TimeAndStatus.scss +0 -51
  726. package/src/Presentation/ui-components/Message/TimeAndStatus/TimeAndStatus.tsx +0 -32
  727. package/src/Presentation/ui-components/MessageInput/AttachmentUploader/AttachmentUploader.tsx +0 -38
  728. package/src/Presentation/ui-components/MessageInput/MessageInput.scss +0 -137
  729. package/src/Presentation/ui-components/MessageInput/MessageInput.stories.tsx +0 -145
  730. package/src/Presentation/ui-components/MessageInput/MessageInput.tsx +0 -161
  731. package/src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.scss +0 -16
  732. package/src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.tsx +0 -27
  733. package/src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyMessagePreview.scss +0 -140
  734. package/src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyMessagePreview.tsx +0 -101
  735. package/src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.scss +0 -35
  736. package/src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.tsx +0 -79
  737. package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.scss +0 -30
  738. package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.stories.ts +0 -160
  739. package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.tsx +0 -34
  740. package/src/Presentation/ui-components/Placeholder/Placeholder.scss +0 -51
  741. package/src/Presentation/ui-components/Placeholder/Placeholder.stories.tsx +0 -91
  742. package/src/Presentation/ui-components/Placeholder/Placeholder.tsx +0 -38
  743. package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss +0 -30
  744. package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.stories.ts +0 -77
  745. package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx +0 -38
  746. package/src/Presentation/ui-components/SettingsItem/SettingsItem.scss +0 -69
  747. package/src/Presentation/ui-components/SettingsItem/SettingsItem.stories.tsx +0 -184
  748. package/src/Presentation/ui-components/SettingsItem/SettingsItem.tsx +0 -56
  749. package/src/Presentation/ui-components/TextField/TextField.scss +0 -91
  750. package/src/Presentation/ui-components/TextField/TextField.stories.ts +0 -108
  751. package/src/Presentation/ui-components/TextField/TextField.tsx +0 -88
  752. package/src/Presentation/ui-components/Toast/Toast.scss +0 -22
  753. package/src/Presentation/ui-components/Toast/Toast.stories.tsx +0 -50
  754. package/src/Presentation/ui-components/Toast/ToastProvider.tsx +0 -29
  755. package/src/Presentation/ui-components/UserListItem/UserListItem.scss +0 -33
  756. package/src/Presentation/ui-components/UserListItem/UserListItem.stories.tsx +0 -130
  757. package/src/Presentation/ui-components/UserListItem/UserListItem.tsx +0 -43
  758. package/src/Presentation/ui-components/index.ts +0 -19
  759. package/src/QBconfig.ts +0 -151
  760. package/src/hooks/useModal.ts +0 -13
  761. package/src/index-ui.ts +0 -87
  762. package/src/index.scss +0 -28
  763. package/src/index.tsx +0 -25
  764. package/src/logo.svg +0 -1
  765. package/src/package_artan_react_ui.json +0 -91
  766. package/src/package_original.json +0 -115
  767. package/src/qb-api-calls/index.ts +0 -670
  768. package/src/react-app-env.d.ts +0 -1
  769. package/src/setupTests.ts +0 -5
  770. package/src/utils/DateTimeFormatter.ts +0 -90
  771. package/src/utils/formatFileSize.ts +0 -8
  772. package/src/utils/parse.ts +0 -76
  773. package/src/utils/utils.ts +0 -102
  774. package/storybook-static/426.be971fb5.iframe.bundle.js +0 -157
  775. package/storybook-static/426.be971fb5.iframe.bundle.js.map +0 -1
  776. package/storybook-static/433.dffc897e.iframe.bundle.js +0 -1
  777. package/storybook-static/603.4cf0423b.iframe.bundle.js +0 -1
  778. package/storybook-static/607.b04b9f0b.iframe.bundle.js +0 -1
  779. package/storybook-static/703.f12f2e71.iframe.bundle.js +0 -33
  780. package/storybook-static/703.f12f2e71.iframe.bundle.js.map +0 -1
  781. package/storybook-static/729.734b4ae4.iframe.bundle.js +0 -1
  782. package/storybook-static/768.e44c05aa.iframe.bundle.js +0 -351
  783. package/storybook-static/768.e44c05aa.iframe.bundle.js.map +0 -1
  784. package/storybook-static/797.b3873e04.iframe.bundle.js +0 -1
  785. package/storybook-static/926.f5308089.iframe.bundle.js +0 -508
  786. package/storybook-static/926.f5308089.iframe.bundle.js.map +0 -1
  787. package/storybook-static/938.56e9d83c.iframe.bundle.js +0 -1
  788. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.1b74ae55.iframe.bundle.js +0 -14
  789. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.1b74ae55.iframe.bundle.js.map +0 -1
  790. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.9449e470.iframe.bundle.js +0 -14
  791. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.9449e470.iframe.bundle.js.map +0 -1
  792. package/storybook-static/Presentation-ui-components-Button-Button-stories.84103f20.iframe.bundle.js +0 -14
  793. package/storybook-static/Presentation-ui-components-Button-Button-stories.84103f20.iframe.bundle.js.map +0 -1
  794. package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.fa91d2c7.iframe.bundle.js +0 -10
  795. package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.fa91d2c7.iframe.bundle.js.map +0 -1
  796. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.bf9005d3.iframe.bundle.js +0 -14
  797. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.bf9005d3.iframe.bundle.js.map +0 -1
  798. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.f81a8e38.iframe.bundle.js +0 -14
  799. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.f81a8e38.iframe.bundle.js.map +0 -1
  800. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.141a3ae7.iframe.bundle.js +0 -14
  801. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.141a3ae7.iframe.bundle.js.map +0 -1
  802. package/storybook-static/Presentation-ui-components-Header-Header-stories.9f45c30e.iframe.bundle.js +0 -14
  803. package/storybook-static/Presentation-ui-components-Header-Header-stories.9f45c30e.iframe.bundle.js.map +0 -1
  804. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.af01e15d.iframe.bundle.js +0 -14
  805. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.af01e15d.iframe.bundle.js.map +0 -1
  806. package/storybook-static/Presentation-ui-components-Message-Message-stories.264d251d.iframe.bundle.js +0 -14
  807. package/storybook-static/Presentation-ui-components-Message-Message-stories.264d251d.iframe.bundle.js.map +0 -1
  808. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.0d1800d9.iframe.bundle.js +0 -1
  809. package/storybook-static/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.a7d43c0b.iframe.bundle.js +0 -10
  810. package/storybook-static/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.a7d43c0b.iframe.bundle.js.map +0 -1
  811. package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.97287936.iframe.bundle.js +0 -14
  812. package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.97287936.iframe.bundle.js.map +0 -1
  813. package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.a9f5cd67.iframe.bundle.js +0 -14
  814. package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.a9f5cd67.iframe.bundle.js.map +0 -1
  815. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.429a72d5.iframe.bundle.js +0 -14
  816. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.429a72d5.iframe.bundle.js.map +0 -1
  817. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.fd8caf6c.iframe.bundle.js +0 -14
  818. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.fd8caf6c.iframe.bundle.js.map +0 -1
  819. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.1b8758fc.iframe.bundle.js +0 -14
  820. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.1b8758fc.iframe.bundle.js.map +0 -1
  821. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.8781472b.iframe.bundle.js +0 -14
  822. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.8781472b.iframe.bundle.js.map +0 -1
  823. package/storybook-static/docs-Introduction-mdx.9dc275f1.iframe.bundle.js +0 -10
  824. package/storybook-static/docs-Introduction-mdx.9dc275f1.iframe.bundle.js.map +0 -1
  825. package/storybook-static/docs-Styling-mdx.72149f36.iframe.bundle.js +0 -10
  826. package/storybook-static/docs-Styling-mdx.72149f36.iframe.bundle.js.map +0 -1
  827. package/storybook-static/favicon.ico +0 -0
  828. package/storybook-static/favicon.svg +0 -7
  829. package/storybook-static/iframe.html +0 -355
  830. package/storybook-static/index.html +0 -127
  831. package/storybook-static/index.json +0 -1
  832. package/storybook-static/logo192.png +0 -0
  833. package/storybook-static/logo512.png +0 -0
  834. package/storybook-static/main.2f6d7582.iframe.bundle.js +0 -1
  835. package/storybook-static/manifest.json +0 -25
  836. package/storybook-static/project.json +0 -1
  837. package/storybook-static/quickblox.js +0 -54609
  838. package/storybook-static/robots.txt +0 -3
  839. package/storybook-static/runtime~main.72d6302b.iframe.bundle.js +0 -1
  840. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
  841. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  842. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
  843. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  844. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -63
  845. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -18
  846. package/storybook-static/sb-addons/essentials-measure-5/manager-bundle.js +0 -3
  847. package/storybook-static/sb-addons/essentials-measure-5/manager-bundle.js.LEGAL.txt +0 -0
  848. package/storybook-static/sb-addons/essentials-outline-6/manager-bundle.js +0 -3
  849. package/storybook-static/sb-addons/essentials-outline-6/manager-bundle.js.LEGAL.txt +0 -0
  850. package/storybook-static/sb-addons/essentials-toolbars-4/manager-bundle.js +0 -3
  851. package/storybook-static/sb-addons/essentials-toolbars-4/manager-bundle.js.LEGAL.txt +0 -0
  852. package/storybook-static/sb-addons/interactions-7/manager-bundle.js +0 -12
  853. package/storybook-static/sb-addons/interactions-7/manager-bundle.js.LEGAL.txt +0 -0
  854. package/storybook-static/sb-addons/links-0/manager-bundle.js +0 -3
  855. package/storybook-static/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
  856. package/storybook-static/sb-addons/viewport-8/manager-bundle.js +0 -3
  857. package/storybook-static/sb-addons/viewport-8/manager-bundle.js.LEGAL.txt +0 -0
  858. package/storybook-static/sb-common-assets/fonts.css +0 -31
  859. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  860. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  861. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  862. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  863. package/storybook-static/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js +0 -1
  864. package/storybook-static/sb-manager/chunk-2IXBUOFS.js +0 -7
  865. package/storybook-static/sb-manager/chunk-INSKDKQB.js +0 -348
  866. package/storybook-static/sb-manager/chunk-NGTUFCUO.js +0 -9
  867. package/storybook-static/sb-manager/chunk-NMB3SATH.js +0 -406
  868. package/storybook-static/sb-manager/chunk-ZEU7PDD3.js +0 -1
  869. package/storybook-static/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +0 -156
  870. package/storybook-static/sb-manager/globals-module-info.js +0 -1
  871. package/storybook-static/sb-manager/globals.js +0 -1
  872. package/storybook-static/sb-manager/index.js +0 -1
  873. package/storybook-static/sb-manager/runtime.js +0 -1
  874. package/storybook-static/sb-manager/syntaxhighlighter-V7JZZA35-DXZCI2WR.js +0 -1
  875. package/storybook-static/sb-preview/globals.js +0 -1
  876. package/storybook-static/sb-preview/runtime.js +0 -112
  877. package/storybook-static/static/css/Presentation-ui-components-Avatar-avatar-stories.7b228eb0.chunk.css +0 -3
  878. package/storybook-static/static/css/Presentation-ui-components-Avatar-avatar-stories.7b228eb0.chunk.css.map +0 -1
  879. package/storybook-static/static/css/Presentation-ui-components-Badge-Badge-stories.7b8317f8.chunk.css +0 -3
  880. package/storybook-static/static/css/Presentation-ui-components-Badge-Badge-stories.7b8317f8.chunk.css.map +0 -1
  881. package/storybook-static/static/css/Presentation-ui-components-Button-Button-stories.1b6e1c55.chunk.css +0 -4
  882. package/storybook-static/static/css/Presentation-ui-components-Button-Button-stories.1b6e1c55.chunk.css.map +0 -1
  883. package/storybook-static/static/css/Presentation-ui-components-DialogBanner-DialogBanner-stories.bd07fad3.chunk.css +0 -3
  884. package/storybook-static/static/css/Presentation-ui-components-DialogBanner-DialogBanner-stories.bd07fad3.chunk.css.map +0 -1
  885. package/storybook-static/static/css/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.6d563072.chunk.css +0 -7
  886. package/storybook-static/static/css/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.6d563072.chunk.css.map +0 -1
  887. package/storybook-static/static/css/Presentation-ui-components-DialogWindow-DialogWindow-stories.4f813450.chunk.css +0 -6
  888. package/storybook-static/static/css/Presentation-ui-components-DialogWindow-DialogWindow-stories.4f813450.chunk.css.map +0 -1
  889. package/storybook-static/static/css/Presentation-ui-components-Dropdown-Dropdown-stories.e37f549d.chunk.css +0 -5
  890. package/storybook-static/static/css/Presentation-ui-components-Dropdown-Dropdown-stories.e37f549d.chunk.css.map +0 -1
  891. package/storybook-static/static/css/Presentation-ui-components-Header-Header-stories.fb1001e7.chunk.css +0 -4
  892. package/storybook-static/static/css/Presentation-ui-components-Header-Header-stories.fb1001e7.chunk.css.map +0 -1
  893. package/storybook-static/static/css/Presentation-ui-components-Loader-Loader-stories.dab34da1.chunk.css +0 -3
  894. package/storybook-static/static/css/Presentation-ui-components-Loader-Loader-stories.dab34da1.chunk.css.map +0 -1
  895. package/storybook-static/static/css/Presentation-ui-components-Message-Message-stories.4c915c89.chunk.css +0 -14
  896. package/storybook-static/static/css/Presentation-ui-components-Message-Message-stories.4c915c89.chunk.css.map +0 -1
  897. package/storybook-static/static/css/Presentation-ui-components-MessageInput-MessageInput-stories.7eb916fc.chunk.css +0 -7
  898. package/storybook-static/static/css/Presentation-ui-components-MessageInput-MessageInput-stories.7eb916fc.chunk.css.map +0 -1
  899. package/storybook-static/static/css/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.34aa36b2.chunk.css +0 -3
  900. package/storybook-static/static/css/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.34aa36b2.chunk.css.map +0 -1
  901. package/storybook-static/static/css/Presentation-ui-components-Placeholder-Placeholder-stories.cb7fb80a.chunk.css +0 -3
  902. package/storybook-static/static/css/Presentation-ui-components-Placeholder-Placeholder-stories.cb7fb80a.chunk.css.map +0 -1
  903. package/storybook-static/static/css/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.31cd021e.chunk.css +0 -3
  904. package/storybook-static/static/css/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.31cd021e.chunk.css.map +0 -1
  905. package/storybook-static/static/css/Presentation-ui-components-SettingsItem-SettingsItem-stories.b67b748b.chunk.css +0 -5
  906. package/storybook-static/static/css/Presentation-ui-components-SettingsItem-SettingsItem-stories.b67b748b.chunk.css.map +0 -1
  907. package/storybook-static/static/css/Presentation-ui-components-TextField-TextField-stories.412027f8.chunk.css +0 -4
  908. package/storybook-static/static/css/Presentation-ui-components-TextField-TextField-stories.412027f8.chunk.css.map +0 -1
  909. package/storybook-static/static/css/Presentation-ui-components-Toast-Toast-stories.a5b284f4.chunk.css +0 -754
  910. package/storybook-static/static/css/Presentation-ui-components-Toast-Toast-stories.a5b284f4.chunk.css.map +0 -1
  911. package/storybook-static/static/css/Presentation-ui-components-UserListItem-UserListItem-stories.655aa6c1.chunk.css +0 -7
  912. package/storybook-static/static/css/Presentation-ui-components-UserListItem-UserListItem-stories.655aa6c1.chunk.css.map +0 -1
  913. package/storybook-static/static/css/main.a921485c.css +0 -5
  914. package/storybook-static/static/css/main.a921485c.css.map +0 -1
  915. package/storybook-static/static/media/add-contact.e7e7b8b15edebe99cae9c46963126e7c.svg +0 -3
  916. package/storybook-static/static/media/add.5cbe1f2c489b81396863f7128e3d26e7.svg +0 -3
  917. package/storybook-static/static/media/admin.476c2854d7ad23f2afdedac2d9bd6815.svg +0 -3
  918. package/storybook-static/static/media/archive.d0a72898f3c47a4194d18f560a54e109.svg +0 -3
  919. package/storybook-static/static/media/arrow-left.5005351d4fa6a7c074dd9780fb49dcc8.svg +0 -3
  920. package/storybook-static/static/media/arrow-right.1be3b599e21158807fdf72f4976179a2.svg +0 -3
  921. package/storybook-static/static/media/attachment.a58b8549f46ae5bbe93be779cd9f2037.svg +0 -3
  922. package/storybook-static/static/media/audio-file.40179c472f715fc74d4da607da96aa5e.svg +0 -3
  923. package/storybook-static/static/media/back.b541e72fe05542e145575c8851558998.svg +0 -3
  924. package/storybook-static/static/media/banned.c7c74bfa1c833263f3ab42d0529132d1.svg +0 -3
  925. package/storybook-static/static/media/broadcast.55273926379e5f486ccfdfab1a310b2d.svg +0 -7
  926. package/storybook-static/static/media/broken-file.bc084278a0d284b7901b47f24001caa6.svg +0 -3
  927. package/storybook-static/static/media/camera-off.8e01960815ce7620a1039d0fc5f758b2.svg +0 -3
  928. package/storybook-static/static/media/camera-on.ddd56e36fa505d618ab772e23c8381e6.svg +0 -3
  929. package/storybook-static/static/media/camera.a5a215695fba60146e649094188f37e2.svg +0 -3
  930. package/storybook-static/static/media/chat-filled.aaf0b778d198e7b8f632a68299a8fd13.svg +0 -3
  931. package/storybook-static/static/media/chat.59cd437f21fe7043682dd04cbe6377be.svg +0 -3
  932. package/storybook-static/static/media/check-off.0c0256f00eeb75770ffc2fbd2b59eab0.svg +0 -3
  933. package/storybook-static/static/media/check-on.80442753ef6922df1913453f50099315.svg +0 -3
  934. package/storybook-static/static/media/close.c145af996de81b25f3930bf36d88b161.svg +0 -3
  935. package/storybook-static/static/media/conference.ffbdf37c0510c796138f18e6c1205204.svg +0 -3
  936. package/storybook-static/static/media/contact-filled.f04f56ba3f98ade5d7ced7814d8a5fa8.svg +0 -3
  937. package/storybook-static/static/media/contact.40a8b8104c3a448b81108ffede850963.svg +0 -3
  938. package/storybook-static/static/media/copy.100bd0fff933cbde8ad4bc2ac281c845.svg +0 -3
  939. package/storybook-static/static/media/delete.287c9b4b3b0e58cb081c6e388e68b409.svg +0 -3
  940. package/storybook-static/static/media/down.7a43a3d78885f40616ce111c86c108a4.svg +0 -3
  941. package/storybook-static/static/media/download.43c26d404dd023e42aaacc52151f7a59.svg +0 -3
  942. package/storybook-static/static/media/edit.8d813af82ecab84303ee3c97bd7bc562.svg +0 -3
  943. package/storybook-static/static/media/emoji.9a202cbb16735f3c83ba8772f0218aa4.svg +0 -3
  944. package/storybook-static/static/media/error.ec60e2052661b82f27b7ce270ae133a7.svg +0 -3
  945. package/storybook-static/static/media/favorite.194d78057be6cd7968c85e7b5822f82a.svg +0 -3
  946. package/storybook-static/static/media/file.e537292693b3c89c023fd383c70bd221.svg +0 -3
  947. package/storybook-static/static/media/forward-filled.43120a68057427c89c88b28d9b20dd90.svg +0 -3
  948. package/storybook-static/static/media/freeze.35619771e645b649c38e0427d9b39a25.svg +0 -3
  949. package/storybook-static/static/media/full-screen.6b01c93e069421c69bda2bbde5d01336.svg +0 -3
  950. package/storybook-static/static/media/gif-file.2c46a5df6c8397f5b9088e66aee3fd44.svg +0 -3
  951. package/storybook-static/static/media/group-chat.19d5305cab6017d494ac35ecb285a9fe.svg +0 -3
  952. package/storybook-static/static/media/help.786f48518c96c8e7098296d68245c339.svg +0 -3
  953. package/storybook-static/static/media/hide.2785264246d70868717984a5ad44d4c9.svg +0 -3
  954. package/storybook-static/static/media/hungup.e5d2289a9e8cd755bd1ee36b738305a2.svg +0 -3
  955. package/storybook-static/static/media/image-filled.8afb62b142d786e90102f1cac73a9c13.svg +0 -3
  956. package/storybook-static/static/media/image.64092dadd5215c8d3ba99ccac753d743.svg +0 -3
  957. package/storybook-static/static/media/income-call.60ca2d367a00d582f4b6f4a5f2047e27.svg +0 -3
  958. package/storybook-static/static/media/information.8217e163c334852f143e7199c97fab1d.svg +0 -3
  959. package/storybook-static/static/media/leave.ae5422a12edec1b61484ff2932819c77.svg +0 -3
  960. package/storybook-static/static/media/like.45662989373aa524cd580fb42432e0bc.svg +0 -3
  961. package/storybook-static/static/media/link.74f567c3ee4366d79fb81d73eb8c0919.svg +0 -3
  962. package/storybook-static/static/media/loader.2eb72391c5267453edb4106528c075ad.svg +0 -3
  963. package/storybook-static/static/media/location.cab52453404524c345ec7efdd86fa66b.svg +0 -4
  964. package/storybook-static/static/media/louder.133519141541a9cd2f0e898534b39732.svg +0 -3
  965. package/storybook-static/static/media/mention.6c4885bb0ea5ca85c8962f6f51ac1cb4.svg +0 -3
  966. package/storybook-static/static/media/mic-off.43e60427600bcf7fd78fb840ff50d804.svg +0 -3
  967. package/storybook-static/static/media/mic-on.5a52100de3770550b3a57a76827843c2.svg +0 -4
  968. package/storybook-static/static/media/minimize.a849dd3a36ece08b992a773d135a0c3f.svg +0 -3
  969. package/storybook-static/static/media/moderations.07c8d1fe96b0b8bb5911f6cc37f764c6.svg +0 -3
  970. package/storybook-static/static/media/more.4ed9ad54ae110d9760b6e9698d821960.svg +0 -3
  971. package/storybook-static/static/media/muted.cb37ac3c577c87c800466aa7aee65af2.svg +0 -3
  972. package/storybook-static/static/media/new-chat.124e0351bd0e19ff4c5fdbabbe5c6027.svg +0 -3
  973. package/storybook-static/static/media/next.97a0eeea1f8daa2d31c8452f29908bf1.svg +0 -3
  974. package/storybook-static/static/media/notifications.ab8e847ae04e2bec9209dbdd1054b0f2.svg +0 -3
  975. package/storybook-static/static/media/notify-off.4a669a3a8cbd38b3309dbc4c909f6089.svg +0 -3
  976. package/storybook-static/static/media/notify-on.ea9ffc856ad6cdbe87184af558c78eec.svg +0 -3
  977. package/storybook-static/static/media/outcome-call.9f5fec07823796ad78963a06cdcf629e.svg +0 -3
  978. package/storybook-static/static/media/pause.27eb8c32999f10d05d6a200165d798a9.svg +0 -3
  979. package/storybook-static/static/media/phone-filled.e969511d74935af26ef366f575929f68.svg +0 -3
  980. package/storybook-static/static/media/phone.6355580a064a488b6317372d71f84c00.svg +0 -3
  981. package/storybook-static/static/media/play.00bfe0e9c94dc6dfb230262e45b2f860.svg +0 -3
  982. package/storybook-static/static/media/plus.d3953cb1cf830bcfc41c8cc6133b13b1.svg +0 -3
  983. package/storybook-static/static/media/private-chat.c68f36baf025b9d20ad1f801a2396e7a.svg +0 -3
  984. package/storybook-static/static/media/public-channel.7a6ada7f30c44fb4a99021df0eb0e996.svg +0 -7
  985. package/storybook-static/static/media/quite.9f45e2152fe6c499a776cb387ee4859f.svg +0 -3
  986. package/storybook-static/static/media/record.e49ee7da793b2ce446a4e7128970c0cc.svg +0 -3
  987. package/storybook-static/static/media/refresh.6e955728d9ec086f34e9adaaaafacf3e.svg +0 -3
  988. package/storybook-static/static/media/remove-2.8a7700757f02c941f03c37c7e495bf63.svg +0 -3
  989. package/storybook-static/static/media/remove.831e69b70db1b3eb72a49444b8aa1e16.svg +0 -3
  990. package/storybook-static/static/media/rephrase.551171aa8903b31746a58a95528b1f68.svg +0 -6
  991. package/storybook-static/static/media/reply-filled.17ed65506e902f17bb22e87ffac93314.svg +0 -3
  992. package/storybook-static/static/media/screenshare.c2f94264a7640ea1bbb2a22f7d570038.svg +0 -3
  993. package/storybook-static/static/media/search.25663e60d71e01c64fdfc83df7460ab0.svg +0 -3
  994. package/storybook-static/static/media/send.d298db52aafdb846a46c9d180ad45946.svg +0 -3
  995. package/storybook-static/static/media/sent.f427753e5502fd7783a08e5f0e0d2f35.svg +0 -3
  996. package/storybook-static/static/media/settings-filled.bd9b60ff4e9eae911e4e2bc69e8e79ca.svg +0 -3
  997. package/storybook-static/static/media/share.7ce8283aa267fb065c568d65b482e211.svg +0 -3
  998. package/storybook-static/static/media/show.de1782527c4a7fa14101dffbfba8aea6.svg +0 -3
  999. package/storybook-static/static/media/speaker-off.fe84597c4b68f4f761e12f789dc58718.svg +0 -3
  1000. package/storybook-static/static/media/speaker.e7ff48a73ca43188703b36dfecd932b5.svg +0 -3
  1001. package/storybook-static/static/media/stop-record.a2e9d50a0930c24af43d7f357093be81.svg +0 -3
  1002. package/storybook-static/static/media/stop-share.d1be236e01dd924ba711e1e17f41054c.svg +0 -3
  1003. package/storybook-static/static/media/stream-filled.c40bae61fea25455602a61db5e77fa71.svg +0 -3
  1004. package/storybook-static/static/media/stream.700f4f8ce0cee0ae1ef56132867427fe.svg +0 -3
  1005. package/storybook-static/static/media/swap-camera.bc3a4652106f5c57d14b4dcbffff08a5.svg +0 -3
  1006. package/storybook-static/static/media/text-document.cad7e87368501b96de2a939d08852dcd.svg +0 -3
  1007. package/storybook-static/static/media/unarchive.1b1a7438cd8eb6fee80e6ac89baa195b.svg +0 -3
  1008. package/storybook-static/static/media/user.911c7ae778615185b285ce0ae4068486.svg +0 -3
  1009. package/storybook-static/static/media/video-file.dbd1f8c63a3769f9e9a027f0922d56b2.svg +0 -3
  1010. package/storybook-static/static/media/video.bbcc2109285c18eea02ede86920de0dd.svg +0 -3
  1011. package/storybook-static/static/media/viewed-delivered.f43360dc87235a6cf574ff53f73dd777.svg +0 -3
  1012. package/storybook-static/static/media/voice.b937c8a1f744050bec2cd389ad2a1f3a.svg +0 -3
  1013. package/storybook-static/stories.json +0 -1
@@ -1,14 +0,0 @@
1
- (self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[356],{"./src/Presentation/ui-components/Loader/Loader.stories.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{LoaderDefault:()=>LoaderDefault,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});let __WEBPACK_DEFAULT_EXPORT__={title:"@quickblox-react-ui-kit/Presentation/ui-components/Loader",component:__webpack_require__("./src/Presentation/ui-components/Loader/Loader.tsx").Z,tags:["autodocs"],parameters:{layout:"centered"},args:{className:""},argTypes:{size:{options:["sm","md","lg"],control:{type:"select"},table:{defaultValue:{summary:"md"},type:{summary:"string"}},description:"Size"},className:{table:{defaultValue:{summary:"string"},type:{summary:"string"}},description:"Additional classes"}}},LoaderDefault={};LoaderDefault.parameters={...LoaderDefault.parameters,docs:{...LoaderDefault.parameters?.docs,source:{originalSource:"{}",...LoaderDefault.parameters?.docs?.source}}};let __namedExportsOrder=["LoaderDefault"]},"./src/Presentation/ui-components/Loader/Loader.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>Loader_Loader});var classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function Loader_Loader(_ref){let{className,size="md"}=_ref;return(0,jsx_runtime.jsx)(icons.t$,{className:classnames_default()("loader",size&&"loader--".concat(size),className)})}try{Loader_Loader.displayName="Loader",Loader_Loader.__docgenInfo={description:"",displayName:"Loader",props:{size:{defaultValue:{value:"md"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Loader/Loader.tsx#Loader"]={docgenInfo:Loader_Loader.__docgenInfo,name:"Loader",path:"src/Presentation/ui-components/Loader/Loader.tsx#Loader"})}catch(__react_docgen_typescript_loader_error){}},"./node_modules/classnames/index.js":(module,exports)=>{var __WEBPACK_AMD_DEFINE_RESULT__;/*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */!function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(arg){var argType=typeof arg;if("string"===argType||"number"===argType)classes.push(arg);else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}}else if("object"===argType){if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]")){classes.push(arg.toString());continue}for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key)}}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=(function(){return classNames}).apply(exports,[]))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}()},"./node_modules/react/cjs/react-jsx-runtime.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";/**
6
- * @license React
7
- * react-jsx-runtime.production.min.js
8
- *
9
- * Copyright (c) Facebook, Inc. and its affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */var f=__webpack_require__("./node_modules/react/index.js"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function q(c,a,g){var b,d={},e=null,h=null;for(b in void 0!==g&&(e=""+g),void 0!==a.key&&(e=""+a.key),void 0!==a.ref&&(h=a.ref),a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l,exports.jsx=q,exports.jsxs=q},"./node_modules/react/jsx-runtime.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__("./node_modules/react/cjs/react-jsx-runtime.production.min.js")}}]);
14
- //# sourceMappingURL=Presentation-ui-components-Loader-Loader-stories.af01e15d.iframe.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Presentation-ui-components-Loader-Loader-stories.af01e15d.iframe.bundle.js","mappings":";;;;AAIA;;;;;;;;ACIA","sources":["webpack://quickblox-react-ui-kit/./node_modules/classnames/index.js","webpack://quickblox-react-ui-kit/./node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":[],"sourceRoot":""}
@@ -1,14 +0,0 @@
1
- (self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[687],{"./node_modules/@storybook/addon-viewport/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>INITIAL_VIEWPORTS});var INITIAL_VIEWPORTS={iphone5:{name:"iPhone 5",styles:{height:"568px",width:"320px"},type:"mobile"},iphone6:{name:"iPhone 6",styles:{height:"667px",width:"375px"},type:"mobile"},iphone6p:{name:"iPhone 6 Plus",styles:{height:"736px",width:"414px"},type:"mobile"},iphone8p:{name:"iPhone 8 Plus",styles:{height:"736px",width:"414px"},type:"mobile"},iphonex:{name:"iPhone X",styles:{height:"812px",width:"375px"},type:"mobile"},iphonexr:{name:"iPhone XR",styles:{height:"896px",width:"414px"},type:"mobile"},iphonexsmax:{name:"iPhone XS Max",styles:{height:"896px",width:"414px"},type:"mobile"},iphonese2:{name:"iPhone SE (2nd generation)",styles:{height:"667px",width:"375px"},type:"mobile"},iphone12mini:{name:"iPhone 12 mini",styles:{height:"812px",width:"375px"},type:"mobile"},iphone12:{name:"iPhone 12",styles:{height:"844px",width:"390px"},type:"mobile"},iphone12promax:{name:"iPhone 12 Pro Max",styles:{height:"926px",width:"428px"},type:"mobile"},iphoneSE3:{name:"iPhone SE 3rd generation",styles:{height:"667px",width:"375px"},type:"mobile"},iphone13:{name:"iPhone 13",styles:{height:"844px",width:"390px"},type:"mobile"},iphone13pro:{name:"iPhone 13 Pro",styles:{height:"844px",width:"390px"},type:"mobile"},iphone13promax:{name:"iPhone 13 Pro Max",styles:{height:"926px",width:"428px"},type:"mobile"},iphone14:{name:"iPhone 14",styles:{height:"844px",width:"390px"},type:"mobile"},iphone14pro:{name:"iPhone 14 Pro",styles:{height:"852px",width:"393px"},type:"mobile"},iphone14promax:{name:"iPhone 14 Pro Max",styles:{height:"932px",width:"430px"},type:"mobile"},ipad:{name:"iPad",styles:{height:"1024px",width:"768px"},type:"tablet"},ipad10p:{name:"iPad Pro 10.5-in",styles:{height:"1112px",width:"834px"},type:"tablet"},ipad11p:{name:"iPad Pro 11-in",styles:{height:"1194px",width:"834px"},type:"tablet"},ipad12p:{name:"iPad Pro 12.9-in",styles:{height:"1366px",width:"1024px"},type:"tablet"},galaxys5:{name:"Galaxy S5",styles:{height:"640px",width:"360px"},type:"mobile"},galaxys9:{name:"Galaxy S9",styles:{height:"740px",width:"360px"},type:"mobile"},nexus5x:{name:"Nexus 5X",styles:{height:"660px",width:"412px"},type:"mobile"},nexus6p:{name:"Nexus 6P",styles:{height:"732px",width:"412px"},type:"mobile"},pixel:{name:"Pixel",styles:{height:"960px",width:"540px"},type:"mobile"},pixelxl:{name:"Pixel XL",styles:{height:"1280px",width:"720px"},type:"mobile"}}},"./src/Presentation/ui-components/Message/Message.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{MessageFile:()=>MessageFile,MessageImage:()=>MessageImage,MessageText:()=>MessageText,__namedExportsOrder:()=>__namedExportsOrder,default:()=>Message_stories});var react=__webpack_require__("./node_modules/react/index.js"),dist=__webpack_require__("./node_modules/@storybook/addon-viewport/dist/index.mjs"),Avatar=__webpack_require__("./src/Presentation/ui-components/Avatar/Avatar.tsx"),CheckBox=__webpack_require__("./src/Presentation/ui-components/CheckBox/CheckBox.tsx"),forward_filled=__webpack_require__("./src/Presentation/icons/actions/forward-filled.svg"),reply_filled=__webpack_require__("./src/Presentation/icons/actions/reply-filled.svg"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");let subtypeIconDictionary={forward:forward_filled.r,reply:reply_filled.r},renderSubtype=subtype=>{let SubTypeIcon=subtypeIconDictionary[subtype];return(0,jsx_runtime.jsx)(SubTypeIcon,{className:"message-caption__forward-reply--".concat(subtype)})};function MessageCaption_MessageCaption(_ref){let{type,subtype,userName}=_ref;return(0,jsx_runtime.jsxs)("div",{className:"message-caption__user__caption",children:[(0,jsx_runtime.jsxs)("div",{className:"message-caption__forward-reply",children:[subtype&&renderSubtype(subtype),(0,jsx_runtime.jsxs)("span",{className:"message-caption__forward-reply__from",children:["forward"===subtype&&"Forwarded from ","reply"===subtype&&"Replied to "]})]}),("incoming"===type||"reply"===subtype||"forward"===subtype)&&(0,jsx_runtime.jsx)("div",{className:"message-caption__user__caption__name",children:userName})]})}try{MessageCaption_MessageCaption.displayName="MessageCaption",MessageCaption_MessageCaption.__docgenInfo={description:"",displayName:"MessageCaption",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"outgoing"'},{value:'"incoming"'}]}},subtype:{defaultValue:null,description:"",name:"subtype",required:!1,type:{name:"enum",value:[{value:'"reply"'},{value:'"forward"'}]}},userName:{defaultValue:null,description:"",name:"userName",required:!0,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Message/MessageCaption/MessageCaption.tsx#MessageCaption"]={docgenInfo:MessageCaption_MessageCaption.__docgenInfo,name:"MessageCaption",path:"src/Presentation/ui-components/Message/MessageCaption/MessageCaption.tsx#MessageCaption"})}catch(__react_docgen_typescript_loader_error){}var sent=__webpack_require__("./src/Presentation/icons/status/sent.svg"),viewed_delivered=__webpack_require__("./src/Presentation/icons/status/viewed-delivered.svg"),error=__webpack_require__("./src/Presentation/icons/status/error.svg");let statusIconDictionary={sent:sent.r,delivered:viewed_delivered.r,viewed:viewed_delivered.r,error:error.r};function TimeAndStatus_TimeAndStatus(_ref){let{status,time}=_ref,StatusIcon=statusIconDictionary[status];return(0,jsx_runtime.jsxs)("div",{className:"time-status__caption",children:[status&&(0,jsx_runtime.jsx)("div",{className:"time-status__caption__status",children:(0,jsx_runtime.jsx)(StatusIcon,{className:"status-message--".concat(status)})}),(0,jsx_runtime.jsx)("div",{className:"time-status__time",children:time})]})}try{TimeAndStatus_TimeAndStatus.displayName="TimeAndStatus",TimeAndStatus_TimeAndStatus.__docgenInfo={description:"",displayName:"TimeAndStatus",props:{status:{defaultValue:null,description:"",name:"status",required:!1,type:{name:"enum",value:[{value:'"sent"'},{value:'"delivered"'},{value:'"viewed"'},{value:'"error"'}]}},time:{defaultValue:null,description:"",name:"time",required:!0,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Message/TimeAndStatus/TimeAndStatus.tsx#TimeAndStatus"]={docgenInfo:TimeAndStatus_TimeAndStatus.__docgenInfo,name:"TimeAndStatus",path:"src/Presentation/ui-components/Message/TimeAndStatus/TimeAndStatus.tsx#TimeAndStatus"})}catch(__react_docgen_typescript_loader_error){}function Message_Message(_ref){let{userName,avatar=(0,jsx_runtime.jsx)(Avatar.Z,{}),time,type,status,subtype,enableSelect=!1,isSelect=!1,disabled=!1,onSelect,bottomPart,additionalPart,children}=_ref;return(0,jsx_runtime.jsxs)("div",{className:"message-item",children:[enableSelect&&(0,jsx_runtime.jsx)(CheckBox.Z,{disabled:disabled,checked:isSelect,onChange:onSelect}),"outgoing"===type?(0,jsx_runtime.jsx)("div",{className:"message-item__right",children:(0,jsx_runtime.jsxs)("div",{className:"message-item__outgoing",children:[(0,jsx_runtime.jsx)(TimeAndStatus_TimeAndStatus,{status:status,time:time}),additionalPart,(0,jsx_runtime.jsxs)("div",{className:"message-item__outgoing__chat",children:[(0,jsx_runtime.jsx)(MessageCaption_MessageCaption,{type:type,subtype:subtype,userName:userName}),children]})]})}):(0,jsx_runtime.jsx)("div",{children:(0,jsx_runtime.jsxs)("div",{className:"message-item__incoming-mes",children:[avatar,(0,jsx_runtime.jsxs)("div",{className:"message-item__incoming",children:[(0,jsx_runtime.jsx)(MessageCaption_MessageCaption,{type:type,subtype:subtype,userName:userName}),(0,jsx_runtime.jsxs)("div",{className:"message-item__incoming__chat",children:[(0,jsx_runtime.jsxs)("div",{className:"message-item__incoming__chat__bubble",children:[children,bottomPart]}),additionalPart,(0,jsx_runtime.jsx)(TimeAndStatus_TimeAndStatus,{time:time})]})]})]})})]})}try{Message_Message.displayName="Message",Message_Message.__docgenInfo={description:"",displayName:"Message",props:{userName:{defaultValue:null,description:"",name:"userName",required:!0,type:{name:"string"}},avatar:{defaultValue:{value:"<Avatar />"},description:"",name:"avatar",required:!1,type:{name:"ReactElement<any, string | JSXElementConstructor<any>>"}},time:{defaultValue:null,description:"",name:"time",required:!0,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"outgoing"'},{value:'"incoming"'}]}},subtype:{defaultValue:null,description:"",name:"subtype",required:!1,type:{name:"enum",value:[{value:'"reply"'},{value:'"forward"'}]}},status:{defaultValue:null,description:"",name:"status",required:!1,type:{name:"enum",value:[{value:'"sent"'},{value:'"delivered"'},{value:'"viewed"'},{value:'"error"'}]}},enableSelect:{defaultValue:{value:"false"},description:"",name:"enableSelect",required:!1,type:{name:"boolean"}},isSelect:{defaultValue:{value:"false"},description:"",name:"isSelect",required:!1,type:{name:"boolean"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!1,type:{name:"((isSelected: boolean) => void)"}},bottomPart:{defaultValue:null,description:"",name:"bottomPart",required:!1,type:{name:"ReactElement<any, string | JSXElementConstructor<any>>"}},additionalPart:{defaultValue:null,description:"",name:"additionalPart",required:!1,type:{name:"ReactElement<any, string | JSXElementConstructor<any>>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Message/Message.tsx#Message"]={docgenInfo:Message_Message.__docgenInfo,name:"Message",path:"src/Presentation/ui-components/Message/Message.tsx#Message"})}catch(__react_docgen_typescript_loader_error){}let pattern=/(https?:\/\/)?([\p{L}\p{N}_-]+(?:(?:\.[\p{L}\p{N}_-]+)+)[\p{L}\p{N}.,@?^=%&:/~+#-]*[\p{L}\p{N}@?^=%&/~+#-])/gu;function removeLastPunctuation(str){if(str.length>0){let lastChar=str.charAt(str.length-1);if(/[!;%:?*_.,:-]/.test(lastChar)||/[.,]/.test(lastChar))return str.slice(0,-1)}return str}let isURL=str=>{let regex=new RegExp(pattern);return regex.test(str)||regex.test(removeLastPunctuation(str))},getURIParts=url=>{let matches=url.match(/^(\w+?:\/\/)?([\w-\\.]+(?=\/?))?:?(\d*)?([^:]*)/);return{scheme:matches?matches[1]:void 0,host:matches?matches[2]:"",port:matches?matches[3]:void 0,pathname:matches?matches[4]:""}},getRuleUrl=url=>{let uriParts=getURIParts(url),result=url;return void 0===uriParts.scheme&&(result="http://".concat(url)),result},messageHasUrls=message=>{let result=0;return message.split(/\n| /).forEach(s=>{(s.match(pattern)||removeLastPunctuation(s).match(pattern))&&(result+=1)}),result>0},HighLightLink_HighLightLink=_ref=>{let{messageText}=_ref,elements=messageText.split(/\n| /).map((item,index)=>isURL(item)?(0,jsx_runtime.jsx)("div",{className:"message-urls",children:(0,jsx_runtime.jsxs)("span",{children:[(0,jsx_runtime.jsx)("a",{href:"".concat(getRuleUrl(item)),target:"_blank",rel:"noreferrer",children:item},index)," "]})}):(0,jsx_runtime.jsxs)("span",{children:[item," "]}));return(0,jsx_runtime.jsx)("div",{children:elements})};try{isURL.displayName="isURL",isURL.__docgenInfo={description:"",displayName:"isURL",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/Views/Dialog/Message/HighLightLink/HighLightLink.tsx#isURL"]={docgenInfo:isURL.__docgenInfo,name:"isURL",path:"src/Presentation/Views/Dialog/Message/HighLightLink/HighLightLink.tsx#isURL"})}catch(__react_docgen_typescript_loader_error){}try{messageHasUrls.displayName="messageHasUrls",messageHasUrls.__docgenInfo={description:"",displayName:"messageHasUrls",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/Views/Dialog/Message/HighLightLink/HighLightLink.tsx#messageHasUrls"]={docgenInfo:messageHasUrls.__docgenInfo,name:"messageHasUrls",path:"src/Presentation/Views/Dialog/Message/HighLightLink/HighLightLink.tsx#messageHasUrls"})}catch(__react_docgen_typescript_loader_error){}try{HighLightLink_HighLightLink.displayName="HighLightLink",HighLightLink_HighLightLink.__docgenInfo={description:"",displayName:"HighLightLink",props:{messageText:{defaultValue:null,description:"",name:"messageText",required:!0,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/Views/Dialog/Message/HighLightLink/HighLightLink.tsx#HighLightLink"]={docgenInfo:HighLightLink_HighLightLink.__docgenInfo,name:"HighLightLink",path:"src/Presentation/Views/Dialog/Message/HighLightLink/HighLightLink.tsx#HighLightLink"})}catch(__react_docgen_typescript_loader_error){}function TextBubble_TextBubble(_ref){let{text,type}=_ref;return(0,jsx_runtime.jsx)("div",{className:"text-bubble-background__".concat(type),children:(0,jsx_runtime.jsx)("div",{className:"bubble-content-text",children:messageHasUrls(text)?(0,jsx_runtime.jsx)(HighLightLink_HighLightLink,{messageText:text}):text})})}try{TextBubble_TextBubble.displayName="TextBubble",TextBubble_TextBubble.__docgenInfo={description:"",displayName:"TextBubble",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"outgoing"'},{value:'"incoming"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.tsx#TextBubble"]={docgenInfo:TextBubble_TextBubble.__docgenInfo,name:"TextBubble",path:"src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.tsx#TextBubble"})}catch(__react_docgen_typescript_loader_error){}var file=__webpack_require__("./src/Presentation/icons/media/file.svg");let trimFileName=fileName=>fileName.length>10?"".concat(fileName.substring(0,9),"... .").concat(fileName.slice((Math.max(0,fileName.lastIndexOf("."))||1/0)+1)):fileName;function FileUrl_FileUrl(_ref){let{title,href}=_ref;return(0,jsx_runtime.jsxs)("div",{className:"file-attachment",children:[(0,jsx_runtime.jsxs)("div",{className:"file-attachment__placeholder",children:[(0,jsx_runtime.jsx)("div",{className:"file-attachment__placeholder__bg"}),href?(0,jsx_runtime.jsx)("a",{href:href,target:"_blank",download:!0,rel:"noreferrer",className:"file-attachment__placeholder__bg__icon",children:(0,jsx_runtime.jsx)(file.r,{className:"message-icon-file"})}):(0,jsx_runtime.jsx)("div",{className:"file-attachment__placeholder__bg__icon",children:(0,jsx_runtime.jsx)(file.r,{className:"message-icon-file"})})]}),(0,jsx_runtime.jsx)("div",{className:"file-attachment__file-name",children:trimFileName(title)})]})}try{FileUrl_FileUrl.displayName="FileUrl",FileUrl_FileUrl.__docgenInfo={description:"",displayName:"FileUrl",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},href:{defaultValue:null,description:"",name:"href",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Message/FileUrl/FileUrl.tsx#FileUrl"]={docgenInfo:FileUrl_FileUrl.__docgenInfo,name:"FileUrl",path:"src/Presentation/ui-components/Message/FileUrl/FileUrl.tsx#FileUrl"})}catch(__react_docgen_typescript_loader_error){}function FileBubble_FileBubble(_ref){let{type,title,href}=_ref;return(0,jsx_runtime.jsx)("div",{className:"file-bubble-background__".concat(type),children:(0,jsx_runtime.jsx)(FileUrl_FileUrl,{title:title,href:href})})}try{FileBubble_FileBubble.displayName="FileBubble",FileBubble_FileBubble.__docgenInfo={description:"",displayName:"FileBubble",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"outgoing"'},{value:'"incoming"'}]}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},href:{defaultValue:null,description:"",name:"href",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Message/Bubble/FileBubble/FileBubble.tsx#FileBubble"]={docgenInfo:FileBubble_FileBubble.__docgenInfo,name:"FileBubble",path:"src/Presentation/ui-components/Message/Bubble/FileBubble/FileBubble.tsx#FileBubble"})}catch(__react_docgen_typescript_loader_error){}function ImageBubble_ImageBubble(_ref){let{title,href}=_ref;return(0,jsx_runtime.jsx)("a",{href:href,download:"file",target:"_blank",rel:"noreferrer",className:"message-attachment-image",children:(0,jsx_runtime.jsx)("img",{className:"message-attachment-image-body",src:href,alt:title||"attached image"},href)})}try{ImageBubble_ImageBubble.displayName="ImageBubble",ImageBubble_ImageBubble.__docgenInfo={description:"",displayName:"ImageBubble",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},href:{defaultValue:null,description:"",name:"href",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Message/Bubble/ImageBubble/ImageBubble.tsx#ImageBubble"]={docgenInfo:ImageBubble_ImageBubble.__docgenInfo,name:"ImageBubble",path:"src/Presentation/ui-components/Message/Bubble/ImageBubble/ImageBubble.tsx#ImageBubble"})}catch(__react_docgen_typescript_loader_error){}var play=__webpack_require__("./src/Presentation/icons/toggle/play.svg"),pause=__webpack_require__("./src/Presentation/icons/toggle/pause.svg");function AudioBubble_AudioBubble(_ref){let{type,title,href,fileUid,audioFileType}=_ref,[isPlaying,setIsPlaying]=(0,react.useState)(!1),audioRef=(0,react.useRef)(null),[secondsElapsed,setSecondsElapsed]=(0,react.useState)(0),handleAudioEnd=()=>{setIsPlaying(!1),setSecondsElapsed(0)};(0,react.useEffect)(()=>{let audio=audioRef.current;if(audio)return audio.addEventListener("ended",handleAudioEnd),()=>{audio.removeEventListener("ended",handleAudioEnd)}},[]),(0,react.useEffect)(()=>{let intervalId;return isPlaying&&(intervalId=setInterval(()=>{setSecondsElapsed(prevSeconds=>prevSeconds+1)},100)),()=>{clearInterval(intervalId)}},[isPlaying]);let generateUniqueNumbers=(inputString,count)=>{let uniqueNumbers=[];for(let i=0;i<count;i+=1)uniqueNumbers.push(Math.abs(inputString.charCodeAt(i)%11)+2);return uniqueNumbers};return(0,jsx_runtime.jsxs)("div",{className:"audio-bubble-background__".concat(type),children:[(0,jsx_runtime.jsxs)("audio",{ref:audioRef,className:"audio-body",preload:"auto",children:[(0,jsx_runtime.jsx)("source",{src:href,type:audioFileType}),(0,jsx_runtime.jsx)("source",{src:href,type:"audio/mpeg"}),(0,jsx_runtime.jsx)("source",{src:href,type:"audio/ogg"}),"Your browser does not support the audio element."]}),(0,jsx_runtime.jsxs)("div",{className:"audio-player",children:[(0,jsx_runtime.jsx)("div",{className:"audio-body__controls",onClick:()=>{let audio=audioRef.current;audio?(isPlaying?audio.pause():audio.play(),setIsPlaying(!isPlaying)):console.error("Audio element not found")},children:isPlaying?(0,jsx_runtime.jsx)(pause.r,{className:"audio-body__controls--color"}):(0,jsx_runtime.jsx)(play.r,{className:"audio-body__controls--color"})}),(0,jsx_runtime.jsxs)("div",{className:"audio-player__equalizer-time",children:[(0,jsx_runtime.jsx)("div",{className:"equalizer",children:isPlaying?(()=>{let divElements=[];for(let i=0;i<30;i+=1){let randomHeight=Math.floor(12*Math.random())+1,divStyle={height:"".concat(randomHeight,"px")};divElements.push((0,jsx_runtime.jsx)("div",{className:"equalizer__rectangle",style:divStyle},i))}return divElements})():(uid=>{let divElements=[],nums=generateUniqueNumbers(uid,30);for(let i=0;i<30;i+=1){let divStyle={height:"".concat(nums[i],"px")};divElements.push((0,jsx_runtime.jsx)("div",{className:"equalizer__rectangle",style:divStyle},i))}return divElements})(fileUid)}),(0,jsx_runtime.jsx)("div",{className:"time-play",children:(time=>{let formattedMinutes=Math.floor(time%3600/60).toString().padStart(2,"0"),formattedSeconds=Math.floor(time%60).toString().padStart(2,"0");return"".concat(formattedMinutes,":").concat(formattedSeconds)})(secondsElapsed)})]})]})]})}try{AudioBubble_AudioBubble.displayName="AudioBubble",AudioBubble_AudioBubble.__docgenInfo={description:"",displayName:"AudioBubble",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"outgoing"'},{value:'"incoming"'}]}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},href:{defaultValue:null,description:"",name:"href",required:!1,type:{name:"string"}},fileUid:{defaultValue:null,description:"",name:"fileUid",required:!1,type:{name:"string"}},audioFileType:{defaultValue:null,description:"",name:"audioFileType",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.tsx#AudioBubble"]={docgenInfo:AudioBubble_AudioBubble.__docgenInfo,name:"AudioBubble",path:"src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.tsx#AudioBubble"})}catch(__react_docgen_typescript_loader_error){}function VideoBubble_VideoBubble(_ref){let{title,href,className}=_ref;return(0,jsx_runtime.jsxs)("div",{className:className,children:[(0,jsx_runtime.jsx)("div",{className:"message-attachment-video",children:(0,jsx_runtime.jsx)("video",{className:"message-attachment-video-body",controls:!0,playsInline:!0,src:href,children:(0,jsx_runtime.jsx)("a",{href:href,download:!0,children:"Download"})},title)}),(0,jsx_runtime.jsx)("a",{href:href,download:!0,className:"message-attachment-video-body__link",children:"Download"})]})}try{VideoBubble_VideoBubble.displayName="VideoBubble",VideoBubble_VideoBubble.__docgenInfo={description:"",displayName:"VideoBubble",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},href:{defaultValue:null,description:"",name:"href",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.tsx#VideoBubble"]={docgenInfo:VideoBubble_VideoBubble.__docgenInfo,name:"VideoBubble",path:"src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.tsx#VideoBubble"})}catch(__react_docgen_typescript_loader_error){}function createBubbleByType(type,children){let isTextBubbleType=(null==children?void 0:children.type)===TextBubble_TextBubble,isFileBubbleType=(null==children?void 0:children.type)===FileBubble_FileBubble,isImageBubbleType=(null==children?void 0:children.type)===ImageBubble_ImageBubble,isAudioBubbleType=(null==children?void 0:children.type)===AudioBubble_AudioBubble,isVideoBubbleType=(null==children?void 0:children.type)===VideoBubble_VideoBubble;return isTextBubbleType?(0,jsx_runtime.jsx)(TextBubble_TextBubble,{text:"The QuickBlox UIKit for React is a comprehensive user interface kit specifically designed for building chat applications. It provides a collection of pre-built components, modules, and utilities that simplify the process of creating chat applications.",type:type}):isFileBubbleType?(0,jsx_runtime.jsx)(FileBubble_FileBubble,{title:"00b5563-small-qb-logo-docs-white-9px.png",href:"https://files.readme.io/00b5563-small-qb-logo-docs-white-9px.png",type:type}):isImageBubbleType?(0,jsx_runtime.jsx)(ImageBubble_ImageBubble,{title:"QuickBlox",href:"https://files.readme.io/00b5563-small-qb-logo-docs-white-9px.png"}):isAudioBubbleType?(0,jsx_runtime.jsx)(AudioBubble_AudioBubble,{title:"1.mp3",href:"//samplelib.com/lib/preview/mp3/sample-3s.mp3",audioFileType:"mp3",fileUid:"12345678901234544",type:type}):isVideoBubbleType?(0,jsx_runtime.jsx)(VideoBubble_VideoBubble,{title:"QuickBlox",href:"https://www.youtube.com/watch?v=0QFqNjhP-wM"}):void 0}function getChildrenByType(type,children){if(("incoming"===type||"outgoing"===type)&&children)return createBubbleByType(type,children)}let Message_stories={tags:["autodocs"],title:"@quickblox-react-ui-kit/Presentation/ui-components/Message",component:Message_Message,decorators:[(StoryFn,context)=>{let{type,children}=context.args,modifiedArgs={...context.args,children:getChildrenByType(type,children)};return(0,jsx_runtime.jsx)(StoryFn,{...context,args:modifiedArgs})}],parameters:{viewport:{viewports:dist.p}},args:{userName:"Nate",time:"16:58",type:"incoming",status:void 0,enableSelect:!0,isSelect:!1,disabled:!1},argTypes:{userName:{table:{type:{summary:"string"},defaultValue:{summary:""}},description:"User name"},avatar:{control:!1,table:{type:{summary:"ReactElement"}},description:"Message sender avatar"},time:{table:{type:{summary:"string"},defaultValue:{summary:""}},description:"Time of sending the message"},type:{table:{type:{summary:"outgoing | incoming"},defaultValue:{summary:"incoming"}},control:"radio",options:["incoming","outgoing"],description:"The type of message can be either outgoing or incoming"},enableSelect:{description:"Enables the option to select a message"},isSelect:{description:"The status of message selection"},disabled:{description:"Active"},status:{table:{type:{summary:"sent | delivered | viewed | error"},defaultValue:{summary:""}},control:"select",options:["sent","delivered","viewed","error"],description:"The status of the message"},children:{table:{type:{summary:"ReactElement"}},description:"Message bubble",control:"select",options:["TextMessage","FileMessage","ImageMessage","AudioMessage","VideoMessage"],mapping:{TextMessage:(0,jsx_runtime.jsx)(TextBubble_TextBubble,{text:"The QuickBlox UIKit for React is a comprehensive user interface kit specifically designed for building chat applications. It provides a collection of pre-built components, modules, and utilities that simplify the process of creating chat applications.",type:"incoming"}),FileMessage:(0,jsx_runtime.jsx)(FileBubble_FileBubble,{title:"00b5563-small-qb-logo-docs-white-9px.png",href:"https://files.readme.io/00b5563-small-qb-logo-docs-white-9px.png",type:"incoming"}),ImageMessage:(0,jsx_runtime.jsx)(ImageBubble_ImageBubble,{title:"QuickBlox",href:"https://files.readme.io/00b5563-small-qb-logo-docs-white-9px.png"}),AudioMessage:(0,jsx_runtime.jsx)(AudioBubble_AudioBubble,{title:"1.mp3",href:"//samplelib.com/lib/preview/mp3/sample-3s.mp3",audioFileType:"mp3",fileUid:"12345678901234544",type:"incoming"}),VideoMessage:(0,jsx_runtime.jsx)(VideoBubble_VideoBubble,{title:"QuickBlox",href:"https://www.youtube.com/watch?v=0QFqNjhP-wM"})}},subtype:{description:"Additional message subtype"},onSelect:{table:{type:{summary:"function"}},description:"The function responsible for message selection"},bottomPart:{table:{type:{summary:"ReactElement"}},control:!1,description:"The bottom part of the message layout"},additionalPart:{table:{type:{summary:"ReactElement"}},control:!1,description:"Additional section of the message layout"}}},MessageText={args:{children:(0,jsx_runtime.jsx)(TextBubble_TextBubble,{text:"Test Message",type:"incoming"})}},MessageImage={args:{children:(0,jsx_runtime.jsx)(ImageBubble_ImageBubble,{title:"QuickBlox",href:"https://files.readme.io/0a66fe7-SreenModulesDialogList.png"})}},MessageFile={args:{children:(0,jsx_runtime.jsx)(FileBubble_FileBubble,{type:"incoming",title:"QuickBlox",href:"https://raw.githubusercontent.com/QuickBlox/react-ui-kit/main/README.md"})}};MessageText.parameters={...MessageText.parameters,docs:{...MessageText.parameters?.docs,source:{originalSource:'{\n args: {\n children: <TextBubble text="Test Message" type="incoming" />\n }\n}',...MessageText.parameters?.docs?.source}}},MessageImage.parameters={...MessageImage.parameters,docs:{...MessageImage.parameters?.docs,source:{originalSource:'{\n args: {\n children: <ImageBubble title="QuickBlox" href="https://files.readme.io/0a66fe7-SreenModulesDialogList.png" />\n }\n}',...MessageImage.parameters?.docs?.source}}},MessageFile.parameters={...MessageFile.parameters,docs:{...MessageFile.parameters?.docs,source:{originalSource:'{\n args: {\n children: <FileBubble type="incoming" title="QuickBlox" href="https://raw.githubusercontent.com/QuickBlox/react-ui-kit/main/README.md" />\n }\n}',...MessageFile.parameters?.docs?.source}}};let __namedExportsOrder=["MessageText","MessageImage","MessageFile"]},"./src/Presentation/ui-components/Avatar/Avatar.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>Avatar_Avatar});var classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function Avatar_Avatar(_ref){let{icon=(0,jsx_runtime.jsx)(icons.vw,{}),size="md",className,src}=_ref;return src?(0,jsx_runtime.jsx)("div",{className:classnames_default()("avatar","avatar--".concat(size),className),children:(0,jsx_runtime.jsx)("img",{src:src,className:"avatar__image",alt:"Avatar"})}):(0,jsx_runtime.jsx)("div",{className:classnames_default()("avatar","avatar--".concat(size),className),children:icon})}try{Avatar_Avatar.displayName="Avatar",Avatar_Avatar.__docgenInfo={description:"",displayName:"Avatar",props:{size:{defaultValue:{value:"md"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},icon:{defaultValue:{value:"<UserSvg />"},description:"",name:"icon",required:!1,type:{name:"ReactElement<any, string | JSXElementConstructor<any>>"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Avatar/Avatar.tsx#Avatar"]={docgenInfo:Avatar_Avatar.__docgenInfo,name:"Avatar",path:"src/Presentation/ui-components/Avatar/Avatar.tsx#Avatar"})}catch(__react_docgen_typescript_loader_error){}},"./src/Presentation/ui-components/CheckBox/CheckBox.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>CheckBox_CheckBox});var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function CheckBox_CheckBox(_ref){let{disabled,checked,onChange}=_ref;return(0,jsx_runtime.jsx)("input",{className:"checkbox",type:"checkbox",checked:checked,disabled:disabled,onChange:()=>null==onChange?void 0:onChange(!checked)})}try{CheckBox_CheckBox.displayName="CheckBox",CheckBox_CheckBox.__docgenInfo={description:"",displayName:"CheckBox",props:{disabled:{defaultValue:null,description:"",name:"disabled",required:!0,type:{name:"boolean"}},checked:{defaultValue:null,description:"",name:"checked",required:!0,type:{name:"boolean"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((isSelected: boolean) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/CheckBox/CheckBox.tsx#CheckBox"]={docgenInfo:CheckBox_CheckBox.__docgenInfo,name:"CheckBox",path:"src/Presentation/ui-components/CheckBox/CheckBox.tsx#CheckBox"})}catch(__react_docgen_typescript_loader_error){}},"./node_modules/classnames/index.js":(module,exports)=>{var __WEBPACK_AMD_DEFINE_RESULT__;/*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */!function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(arg){var argType=typeof arg;if("string"===argType||"number"===argType)classes.push(arg);else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}}else if("object"===argType){if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]")){classes.push(arg.toString());continue}for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key)}}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=(function(){return classNames}).apply(exports,[]))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}()},"./node_modules/react/cjs/react-jsx-runtime.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";/**
6
- * @license React
7
- * react-jsx-runtime.production.min.js
8
- *
9
- * Copyright (c) Facebook, Inc. and its affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */var f=__webpack_require__("./node_modules/react/index.js"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function q(c,a,g){var b,d={},e=null,h=null;for(b in void 0!==g&&(e=""+g),void 0!==a.key&&(e=""+a.key),void 0!==a.ref&&(h=a.ref),a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l,exports.jsx=q,exports.jsxs=q},"./node_modules/react/jsx-runtime.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__("./node_modules/react/cjs/react-jsx-runtime.production.min.js")}}]);
14
- //# sourceMappingURL=Presentation-ui-components-Message-Message-stories.264d251d.iframe.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Presentation-ui-components-Message-Message-stories.264d251d.iframe.bundle.js","mappings":";;;;AAIA;;;;;;;;ACIA","sources":["webpack://quickblox-react-ui-kit/./node_modules/classnames/index.js","webpack://quickblox-react-ui-kit/./node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":[],"sourceRoot":""}
@@ -1 +0,0 @@
1
- (self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[119],{"./src/Presentation/ui-components/MessageInput/MessageInput.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{MessageInputDefault:()=>MessageInputDefault,MessageInputLoadingState:()=>MessageInputLoadingState,MessageInputWithPreview:()=>MessageInputWithPreview,MessageInputWithVoiceMessage:()=>MessageInputWithVoiceMessage,__namedExportsOrder:()=>__namedExportsOrder,default:()=>MessageInput_stories});var react=__webpack_require__("./node_modules/react/index.js"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");let VoiceRecordingProgress_VoiceRecordingProgress=_ref=>{let timerId,{startStatus,longRecInSec,onClick,onTouch}=_ref,[currentTime,setCurrentTime]=(0,react.useState)(Date.now()),[timeString,setTimeString]=(0,react.useState)("00:00:00"),[startTime]=(0,react.useState)(Date.now());(0,react.useEffect)(()=>{let valueToCalc=Math.round((currentTime-(startTime||0))/1e3),sec=valueToCalc%60,min=Math.round(valueToCalc/60),secStr=sec<=9?"0".concat(sec.toString()):sec,minStr=min<=9?"0".concat(min.toString()):min;setTimeString("00:".concat(minStr,":").concat(secStr))},[currentTime]);let stopTimer=()=>{timerId&&(clearTimeout(timerId),timerId=void 0),onClick&&onClick(),onTouch&&onTouch()},startTimer=()=>{setTimeout(()=>{stopTimer()},1e3*(longRecInSec<=60&&longRecInSec>0?longRecInSec:10)),void 0===timerId&&(timerId=setInterval(()=>{setCurrentTime(Date.now())},1e3))};return(0,react.useEffect)(()=>{startStatus&&startTimer()},[startStatus]),(0,jsx_runtime.jsxs)("div",{className:"chat-message-text-container",children:[(0,jsx_runtime.jsx)("div",{onClick:()=>{stopTimer()},onTouchStart:()=>{stopTimer()},className:"chat-message-text-container__stop_record_button"}),(0,jsx_runtime.jsx)("div",{children:timeString})]})};try{VoiceRecordingProgress_VoiceRecordingProgress.displayName="VoiceRecordingProgress",VoiceRecordingProgress_VoiceRecordingProgress.__docgenInfo={description:"",displayName:"VoiceRecordingProgress",props:{startStatus:{defaultValue:null,description:"",name:"startStatus",required:!0,type:{name:"boolean"}},longRecInSec:{defaultValue:null,description:"",name:"longRecInSec",required:!0,type:{name:"number"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"FunctionTypeVoidToVoid"}},onTouch:{defaultValue:null,description:"",name:"onTouch",required:!1,type:{name:"FunctionTypeVoidToVoid"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.tsx#VoiceRecordingProgress"]={docgenInfo:VoiceRecordingProgress_VoiceRecordingProgress.__docgenInfo,name:"VoiceRecordingProgress",path:"src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.tsx#VoiceRecordingProgress"})}catch(__react_docgen_typescript_loader_error){}let AttachmentUploader=_ref=>{let{icon,onChangeFile,disableAction}=_ref;return(0,jsx_runtime.jsxs)("label",{htmlFor:"btnUploadAttachment",style:{cursor:"pointer"},children:[(0,jsx_runtime.jsx)("div",{children:icon}),(0,jsx_runtime.jsx)("input",{id:"btnUploadAttachment",type:"file",accept:"image/*, audio/*, video/*, .pdf, .txt, .apk, .zip, .ipa, .ppt, .pptx, .doc, .docx, .xls, .xlsx, .json, .log",style:{display:"none"},onChange:event=>{onChangeFile(event),event.target.value=""},disabled:disableAction})]})};try{AttachmentUploader.displayName="AttachmentUploader",AttachmentUploader.__docgenInfo={description:"",displayName:"AttachmentUploader",props:{icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:"ReactNode"}},onChangeFile:{defaultValue:null,description:"",name:"onChangeFile",required:!0,type:{name:"(event: ChangeEvent<HTMLInputElement>) => void"}},disableAction:{defaultValue:null,description:"",name:"disableAction",required:!0,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/MessageInput/AttachmentUploader/AttachmentUploader.tsx#AttachmentUploader"]={docgenInfo:AttachmentUploader.__docgenInfo,name:"AttachmentUploader",path:"src/Presentation/ui-components/MessageInput/AttachmentUploader/AttachmentUploader.tsx#AttachmentUploader"})}catch(__react_docgen_typescript_loader_error){}var icons=__webpack_require__("./src/Presentation/icons/index.ts"),Loader=__webpack_require__("./src/Presentation/ui-components/Loader/Loader.tsx");let MessageInput_MessageInput=_ref=>{let{value,onChange,onChanging,onSend,enableVoice,onVoice,disableAttachment,onAttachment,previewMessage,rephrase,loading,placeholder,disableActions=!1,className}=_ref,[isVoiceMessage,setVoiceMessage]=(0,react.useState)(!0);function sendTextMessageActions(){value&&onSend&&(onSend(value),onChange&&!disableActions&&onChange(""))}return(0,jsx_runtime.jsxs)("div",{className:classnames_default()("chat-container",className),children:[previewMessage,(0,jsx_runtime.jsxs)("div",{onBlur:()=>{value&&value.length>0||setVoiceMessage(!0)},className:"chat-input",children:[(0,jsx_runtime.jsx)(AttachmentUploader,{disableAction:disableActions,icon:(0,jsx_runtime.jsx)(icons.EO,{className:classnames_default()("chat-container__icon",{"chat-container__icon--mute":disableAttachment||loading,"chat-container__icon--disable":disableActions})}),onChangeFile:onAttachment}),!enableVoice&&(0,jsx_runtime.jsxs)("div",{className:"input-text-message type-message",children:[(0,jsx_runtime.jsx)("textarea",{disabled:loading,value:value,onFocus:()=>{setVoiceMessage(!1)},onChange:event=>{onChange&&onChange(event.target.value)},onInput:event=>{onChanging&&onChanging(event.target.value)},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.ctrlKey||sendTextMessageActions()},placeholder:placeholder||"Type message"}),rephrase]}),enableVoice&&(0,jsx_runtime.jsx)(VoiceRecordingProgress_VoiceRecordingProgress,{startStatus:enableVoice,longRecInSec:60,onClick:()=>{onVoice&&onVoice()}}),!isVoiceMessage&&!loading&&(0,jsx_runtime.jsx)("div",{children:(0,jsx_runtime.jsx)(icons.bf,{className:classnames_default()("chat-container__icon__send",{"chat-container__icon--mute":loading,"chat-container__icon--disable":disableActions}),onClick:()=>{sendTextMessageActions()}})}),loading?(0,jsx_runtime.jsx)(Loader.Z,{size:"sm",className:"chat-container__loader"}):isVoiceMessage&&(0,jsx_runtime.jsx)(icons.ye,{className:classnames_default()("chat-container__icon",{"chat-container__icon--red":enableVoice,"chat-container__icon--disable":disableActions}),onClick:()=>{onVoice&&onVoice()}})]})]})};try{MessageInput_MessageInput.displayName="MessageInput",MessageInput_MessageInput.__docgenInfo={description:"",displayName:"MessageInput",props:{value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"FunctionTypeStringToVoid"}},onChanging:{defaultValue:null,description:"",name:"onChanging",required:!1,type:{name:"FunctionTypeStringToVoid"}},onSend:{defaultValue:null,description:"",name:"onSend",required:!1,type:{name:"FunctionTypeStringToVoid"}},enableVoice:{defaultValue:null,description:"",name:"enableVoice",required:!1,type:{name:"boolean"}},onVoice:{defaultValue:null,description:"",name:"onVoice",required:!1,type:{name:"FunctionTypeVoidToVoid"}},disableAttachment:{defaultValue:null,description:"",name:"disableAttachment",required:!1,type:{name:"boolean"}},onAttachment:{defaultValue:null,description:"",name:"onAttachment",required:!0,type:{name:"(event: ChangeEvent<HTMLInputElement>) => void"}},previewMessage:{defaultValue:null,description:"",name:"previewMessage",required:!1,type:{name:"ReactElement<any, string | JSXElementConstructor<any>>"}},rephrase:{defaultValue:null,description:"",name:"rephrase",required:!1,type:{name:"ReactElement<any, string | JSXElementConstructor<any>>"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},disableActions:{defaultValue:{value:"false"},description:"",name:"disableActions",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/MessageInput/MessageInput.tsx#MessageInput"]={docgenInfo:MessageInput_MessageInput.__docgenInfo,name:"MessageInput",path:"src/Presentation/ui-components/MessageInput/MessageInput.tsx#MessageInput"})}catch(__react_docgen_typescript_loader_error){}function ReplyField(){let theme=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,jsx_runtime.jsx)("svg",{width:theme&&theme.width?theme.width:"44",height:theme&&theme.height?theme.height:"44",viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,jsx_runtime.jsx)("path",{d:"M18.3333 15.5833V8.25L5.5 21.0833L18.3333 33.9167V26.4C27.5 26.4 33.9167 29.3333 38.5 35.75C36.6667 26.5833 31.1667 17.4167 18.3333 15.5833Z",id:"ReplyField",fill:theme&&theme.color?theme.color:"var(--color-icon)"})})}let ReplyFilled=ReplyField;try{ReplyField.displayName="ReplyField",ReplyField.__docgenInfo={description:"",displayName:"ReplyField",props:{color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"string"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"string"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"string"}},applyZoom:{defaultValue:null,description:"",name:"applyZoom",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.tsx#ReplyField"]={docgenInfo:ReplyField.__docgenInfo,name:"ReplyField",path:"src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.tsx#ReplyField"})}catch(__react_docgen_typescript_loader_error){}class FileType{}FileType.audio="audio",FileType.video="video",FileType.image="image",FileType.text="text";let ReplyImagePreviewAttachment_ReplyImagePreviewAttachment=_ref=>{let{imageFile}=_ref;return(0,jsx_runtime.jsx)("div",{children:(0,jsx_runtime.jsx)("a",{href:imageFile.url,download:"file",target:"_blank",rel:"noreferrer",children:(0,jsx_runtime.jsx)("img",{className:"reply-preview-image-body",src:imageFile.url,alt:imageFile.name||"attached image"},imageFile.id)})})};try{ReplyImagePreviewAttachment_ReplyImagePreviewAttachment.displayName="ReplyImagePreviewAttachment",ReplyImagePreviewAttachment_ReplyImagePreviewAttachment.__docgenInfo={description:"",displayName:"ReplyImagePreviewAttachment",props:{imageFile:{defaultValue:null,description:"",name:"imageFile",required:!0,type:{name:"FileEntity"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.tsx#ReplyImagePreviewAttachment"]={docgenInfo:ReplyImagePreviewAttachment_ReplyImagePreviewAttachment.__docgenInfo,name:"ReplyImagePreviewAttachment",path:"src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.tsx#ReplyImagePreviewAttachment"})}catch(__react_docgen_typescript_loader_error){}function TextDocument(){let theme=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,jsx_runtime.jsx)("svg",{width:theme&&theme.width?theme.width:"44",height:theme&&theme.height?theme.height:"44",viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,jsx_runtime.jsx)("path",{d:"M25.6668 3.66675H11.0002C8.9835 3.66675 7.35183 5.31675 7.35183 7.33341L7.3335 36.6667C7.3335 38.6834 8.96516 40.3334 10.9818 40.3334H33.0002C35.0168 40.3334 36.6668 38.6834 36.6668 36.6667V14.6667L25.6668 3.66675ZM29.3335 33.0001H14.6668V29.3334H29.3335V33.0001ZM29.3335 25.6667H14.6668V22.0001H29.3335V25.6667ZM23.8335 16.5001V6.41675L33.9168 16.5001H23.8335Z",id:"TextDocument",fill:theme&&theme.color?theme.color:"var(--color-icon)"})})}let Media_TextDocument=TextDocument;try{TextDocument.displayName="TextDocument",TextDocument.__docgenInfo={description:"",displayName:"TextDocument",props:{color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"string"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"string"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"string"}},applyZoom:{defaultValue:null,description:"",name:"applyZoom",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.tsx#TextDocument"]={docgenInfo:TextDocument.__docgenInfo,name:"TextDocument",path:"src/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.tsx#TextDocument"})}catch(__react_docgen_typescript_loader_error){}var quickblox=__webpack_require__("./node_modules/quickblox/quickblox.js"),quickblox_default=__webpack_require__.n(quickblox);class RemoteMessageDTO{constructor(){this.id=void 0,this.dialogId=void 0,this.message=void 0,this.created_at=void 0,this.date_sent=void 0,this.delivered_ids=void 0,this.read_ids=void 0,this.read=void 0,this.recipient_id=void 0,this.sender_id=void 0,this.updated_at=void 0,this.notification_type=void 0,this.dialog_type=void 0,this.markable=void 0,this.attachments=void 0,this.qb_message_action=void 0,this.origin_sender_name=void 0,this.qb_original_messages=void 0,this.id=new Date().getTime().toString(),this.dialogId="",this.message="",this.created_at=new Date().toString(),this.date_sent=new Date().getTime(),this.delivered_ids=[],this.read_ids=[],this.recipient_id=0,this.read=0,this.sender_id=0,this.updated_at=new Date().toString(),this.notification_type="",this.attachments=[]}}class RepositoryException extends Error{constructor(message,code){super(message),this.message=message,this.code=void 0,this.code=code}}let UNEXPECTED_MAPPER_DTO_EXCEPTION_MESSAGE="Error. Mapper DTO Unexpected exception .",INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE="Error. Mapper DTO Incorrect data exception .";class MapperDTOException extends RepositoryException{constructor(message,code){let description=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";super(message,code),this._description=void 0,this._description=description,this._description&&(this.message+=" ".concat(this._description))}}class MessageDTOMapper{fromDTO(dto){return MessageDTOMapper.validateDTO(dto),Promise.resolve({_id:"",attachments:[],chat_dialog_id:"",created_at:"",date_sent:0,delivered_ids:[],message:"",read:0,read_ids:[],recipient_id:0,sender_id:0,updated_at:""})}static transformAttachment(qbMessage,qbAtts){return qbAtts.map(item=>{let newItem={id:item.id,name:item.name,size:item.size,type:item.type,uid:item.uid,url:item.uid&&quickblox_default().content.privateUrl(item.uid),file:{id:item.id,name:item.name,size:item.size,type:item.type,uid:item.uid||"",url:item.uid&&quickblox_default().content.privateUrl(item.uid)}},messageParts=MessageDTOMapper.getMessageParts(qbMessage);return messageParts&&messageParts.length>3&&(newItem.uid=messageParts[2],newItem.name=messageParts[1],newItem.type=messageParts[3],newItem.url=newItem.uid&&quickblox_default().content.privateUrl(newItem.uid),newItem.file&&(newItem.file.uid=newItem.uid,newItem.file.name=newItem.name,newItem.file.url=newItem.uid&&quickblox_default().content.privateUrl(newItem.uid),newItem.file.type=newItem.type)),newItem})}toTDO(entity){var _MessageDTOMapper$tra;let dto=this.QBChatMessageToRemoteMessageDTO(entity),operationResult=!0;return dto.qb_original_messages=null===(_MessageDTOMapper$tra=MessageDTOMapper.translateJSONToOriginalData(entity.qb_original_messages))||void 0===_MessageDTOMapper$tra?void 0:_MessageDTOMapper$tra.map(item=>{let result;try{result=this.QBChatMessageToRemoteMessageDTO(item,!0)}catch(e){operationResult=!1,console.log(e)}return result}),dto.qb_message_action=entity.qb_message_action,dto.origin_sender_name=entity.origin_sender_name,operationResult||(dto.qb_original_messages=void 0,dto.qb_message_action=void 0,dto.origin_sender_name=void 0),Promise.resolve(dto)}QBChatMessageToRemoteMessageDTO(qbMessage){let offValidate=arguments.length>1&&void 0!==arguments[1]&&arguments[1],dto=new RemoteMessageDTO;return offValidate?(dto.id=qbMessage._id,dto.dialogId=qbMessage.chat_dialog_id,dto.message=qbMessage.message,dto.created_at=qbMessage.created_at||Date.now().toString(),dto.date_sent=qbMessage.date_sent||1e3*Date.now(),dto.delivered_ids=qbMessage.delivered_ids||[],dto.read_ids=qbMessage.read_ids||[],dto.recipient_id=qbMessage.recipient_id||0,dto.attachments=MessageDTOMapper.transformAttachment(qbMessage.message||"",qbMessage.attachments||[]),dto.read=qbMessage.read||1,dto.sender_id=qbMessage.sender_id,dto.updated_at=qbMessage.updated_at||Date.now().toString()):(MessageDTOMapper.validateQBMessage(qbMessage),dto.id=qbMessage._id,dto.dialogId=qbMessage.chat_dialog_id,dto.message=qbMessage.message,dto.created_at=qbMessage.created_at,dto.date_sent=1e3*qbMessage.date_sent,dto.delivered_ids=qbMessage.delivered_ids||[],dto.read_ids=qbMessage.read_ids||[],dto.recipient_id=qbMessage.recipient_id||0,dto.attachments=MessageDTOMapper.transformAttachment(qbMessage.message||"",qbMessage.attachments||[]),dto.read=qbMessage.read,dto.sender_id=qbMessage.sender_id,dto.updated_at=qbMessage.updated_at),dto.notification_type=qbMessage.notification_type||"",dto.markable=qbMessage.notification_type||"",dto}static convertAttachment(attachment){return{id:attachment.id.toString(),uid:attachment.uid||"",type:attachment.type.toString(),url:attachment.url||"",name:attachment.name||"",size:attachment.size||0}}static convertToQBChatNewMessage(messages){return messages.map(message=>{var _message$attachments;return{_id:message.id,attachments:(null===(_message$attachments=message.attachments)||void 0===_message$attachments?void 0:_message$attachments.map(attachment=>MessageDTOMapper.convertAttachment(attachment)))||[],chat_dialog_id:message.dialogId,created_at:message.created_at,date_sent:message.date_sent,delivered_ids:message.delivered_ids,message:message.message,read_ids:message.read_ids,read:message.read,recipient_id:message.recipient_id,sender_id:message.sender_id,updated_at:message.updated_at,notification_type:message.notification_type,qb_message_action:message.qb_message_action,origin_sender_name:message.origin_sender_name,qb_original_messages:message.qb_original_messages?MessageDTOMapper.translateOriginalDataToJSON(MessageDTOMapper.convertToQBChatNewMessage(message.qb_original_messages||[])||[]):void 0}})}static translateOriginalDataToJSON(qb_original_message){return qb_original_message&&qb_original_message.length>0?JSON.stringify(qb_original_message):""}static translateJSONToOriginalData(json_data){if(json_data)try{let originalData=JSON.parse(json_data);if(Array.isArray(originalData)&&originalData.every(item=>item instanceof Object))return originalData}catch(error){console.error("Error parsing JSON:",error)}}static isForwardedOrRepliedMessage(qbMessage){return qbMessage.includes(MessageDTOMapper.FORWARD_MESSAGE_PREFIX)||qbMessage.includes(MessageDTOMapper.REPLY_MESSAGE_PREFIX)}static isMediaOrAttachmentMessage(message){return message.includes(MessageDTOMapper.MEDIA_CONTENT_ENTITY_PREFIX)||message.includes(MessageDTOMapper.ATTACHMENT_PREFIX)}static formatMessage(qbMessage){return MessageDTOMapper.isMediaOrAttachmentMessage(qbMessage)?this.splitMessageParts(qbMessage)[1]||"":MessageDTOMapper.isForwardedOrRepliedMessage(qbMessage)?"":qbMessage}static getMessageParts(qbMessage){return MessageDTOMapper.isMediaOrAttachmentMessage(qbMessage)?MessageDTOMapper.splitMessageParts(qbMessage):[]}static splitMessageParts(message){return message.split("|")}static validateDTO(messageDTO){let messageDTOValidator={created_at(v){let{created_at}=v;return null!=created_at&&created_at.length>0},date_sent(v){let{date_sent}=v;return null!=date_sent},delivered_ids(v){let{delivered_ids}=v;return null!=delivered_ids},dialogId(v){let{dialogId}=v;return null!=dialogId&&dialogId.length>0},id(v){let{id}=v;return null!=id},message(v){let{message}=v;return null!=message&&message.length>0},read(v){let{read}=v;return null!=read},read_ids(v){let{read_ids}=v;return null!=read_ids},recipient_id(v){let{recipient_id}=v;return null!=recipient_id},sender_id(v){let{sender_id}=v;return null!=sender_id},updated_at(v){let{updated_at}=v;return null!=updated_at&&updated_at.length>0},attachments(v){let{attachments}=v;return null!=attachments}};if(!messageDTOValidator.created_at(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {created_at} does not exist or empty");if(!messageDTOValidator.date_sent(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {date_sent} does not exist or empty");if(!messageDTOValidator.delivered_ids(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {delivered_ids} does not exist or empty");if(!messageDTOValidator.dialogId(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {dialogId} does not exist or empty");if(!messageDTOValidator.id(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!messageDTOValidator.message(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {message} does not exist or empty");if(!messageDTOValidator.read(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read} does not exist or empty");if(!messageDTOValidator.read_ids(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read_ids} does not exist or empty");if(!messageDTOValidator.recipient_id(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {recipient_id} does not exist or empty");if(!messageDTOValidator.sender_id(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {sender_id} does not exist or empty");if(!messageDTOValidator.updated_at(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updated_at} does not exist or empty")}static validateQBMessage(qbMessage){let qbMessageValidator={delivered_ids(v){let{delivered_ids}=v;return null!=delivered_ids},read_ids(v){let{read_ids}=v;return null!=read_ids},_id(v){let{_id}=v;return null!=_id&&_id.length>0},attachments(v){let{attachments}=v;return null!=attachments},chat_dialog_id(v){let{chat_dialog_id}=v;return null!=chat_dialog_id&&chat_dialog_id.length>0},created_at(v){let{created_at}=v;return null!=created_at&&created_at.length>0},date_sent(v){let{date_sent}=v;return null!=date_sent},message(v){let{message}=v;return null!=message&&message.length>0},read(v){let{read}=v;return null!=read},recipient_id(v){let{recipient_id}=v;return null!=recipient_id},sender_id(v){let{sender_id}=v;return null!=sender_id},updated_at(v){let{updated_at}=v;return null!=updated_at&&updated_at.length>0}};if(!qbMessageValidator._id(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {_id} does not exist or empty");if(!qbMessageValidator.chat_dialog_id(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {chat_dialog_id} does not exist or empty");if(!qbMessageValidator.created_at(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {created_at} does not exist or empty");if(!qbMessageValidator.date_sent(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {date_sent} does not exist or empty");if(!qbMessageValidator.message(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {message} does not exist or empty");if(!qbMessageValidator.read(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read} does not exist or empty");if(!qbMessageValidator.recipient_id(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {recipient_id} does not exist or empty");if(!qbMessageValidator.sender_id(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {sender_id} does not exist or empty");if(!qbMessageValidator.updated_at(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updated_at} does not exist or empty")}}function trimMessage(messageText){return"".concat(messageText.substring(0,39)," ...")}MessageDTOMapper.FORWARD_MESSAGE_PREFIX="[Forwarded_Message]",MessageDTOMapper.REPLY_MESSAGE_PREFIX="[Replied_Message]",MessageDTOMapper.ATTACHMENT_PREFIX="[Attachment]",MessageDTOMapper.MEDIA_CONTENT_ENTITY_PREFIX="MediaContentEntity";let ReplyMessagePreview_ReplyMessagePreview=_ref=>{var _messages$;let{messages,userNameSentMessage,onClose}=_ref,[messageTextValue,setMessageTextValue]=react.useState("");return(0,react.useEffect)(()=>{setMessageTextValue(MessageDTOMapper.formatMessage(messages[0].message))},[null===(_messages$=messages[0])||void 0===_messages$?void 0:_messages$.message]),(0,jsx_runtime.jsxs)("div",{className:"reply-message-preview-row",children:[(0,jsx_runtime.jsxs)("div",{className:"reply-message-preview-row-card",children:[messages.length>0&&messages[0].attachments&&messages[0].attachments.length>0?(0,jsx_runtime.jsx)("div",{className:"reply-message-preview-placeholder",children:(0,jsx_runtime.jsx)("div",{className:"reply-message-preview-placeholder-icon",children:messages&&messages[0].attachments&&messages[0].attachments.length>0&&messages[0].attachments[0].type.toString().includes(FileType.image)&&messages[0].attachments[0].file?(0,jsx_runtime.jsx)(ReplyImagePreviewAttachment_ReplyImagePreviewAttachment,{imageFile:messages[0].attachments[0].file}):(0,jsx_runtime.jsx)(Media_TextDocument,{width:"24",height:"24",color:"var(--caption)"})})}):null,(0,jsx_runtime.jsxs)("div",{className:"reply-message-preview-message",children:[(0,jsx_runtime.jsx)("div",{className:"reply-message-preview-message-caption",children:(0,jsx_runtime.jsxs)("div",{className:"reply-message-preview-message-caption-info",children:[(0,jsx_runtime.jsx)("div",{className:"reply-message-preview-message-caption-info-icon",children:(0,jsx_runtime.jsx)(ReplyFilled,{width:"16",height:"16",color:"var(--caption)"})}),(0,jsx_runtime.jsxs)("div",{className:"reply-message-preview-message-caption-info-replied-to-name",children:["Reply to ",userNameSentMessage]})]})}),messages.length>0&&(!messages[0].attachments||messages[0].attachments&&0===messages[0].attachments.length)?(0,jsx_runtime.jsx)("div",{className:"reply-message-preview-message-caption-info-text",children:messages.length>1?"2 messages":trimMessage(messageTextValue)}):(0,jsx_runtime.jsx)("div",{className:"reply-message-preview-message-caption-info-file",children:messages.length>1?"2 messages":trimMessage(messageTextValue)})]})]}),(0,jsx_runtime.jsx)("div",{className:"reply-message-preview-message-navigation-close",onClick:onClose,children:(0,jsx_runtime.jsx)(icons.sZ,{className:"reply-message-icon"})})]})};try{ReplyMessagePreview_ReplyMessagePreview.displayName="ReplyMessagePreview",ReplyMessagePreview_ReplyMessagePreview.__docgenInfo={description:"",displayName:"ReplyMessagePreview",props:{messages:{defaultValue:null,description:"",name:"messages",required:!0,type:{name:"MessageEntity[]"}},userNameSentMessage:{defaultValue:null,description:"",name:"userNameSentMessage",required:!0,type:{name:"string"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"FunctionTypeVoidToVoid"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyMessagePreview.tsx#ReplyMessagePreview"]={docgenInfo:ReplyMessagePreview_ReplyMessagePreview.__docgenInfo,name:"ReplyMessagePreview",path:"src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyMessagePreview.tsx#ReplyMessagePreview"})}catch(__react_docgen_typescript_loader_error){}class DialogType{}DialogType.private=3,DialogType.public=1,DialogType.group=2;class PublicDialogEntity{constructor(customData,id,lastMessage,ownerId,type,unreadMessageCount,updatedAt,name,photo){this.customData=void 0,this.id=void 0,this.lastMessage=void 0,this.ownerId=void 0,this.type=void 0,this.unreadMessageCount=void 0,this.updatedAt=void 0,this.name=void 0,this.photo=void 0,this.customData=customData,this.id=id,this.lastMessage=lastMessage,this.ownerId=ownerId,this.type=type,this.unreadMessageCount=unreadMessageCount,this.updatedAt=updatedAt,this.name=name,this.photo=photo}}PublicDialogEntity.getParticipants=d=>d.type===DialogType.group?d.participantIds:d.type===DialogType.private&&d.participantIds&&d.participantIds.length>0?[d.participantIds[0]]:d.type===DialogType.private&&d.participantId?[d.participantId]:[],PublicDialogEntity.getNewParticipants=d=>d.type===DialogType.group&&d.newParticipantIds||[];class PrivateDialogEntity{constructor(customData,id,name,lastMessage,ownerId,type,unreadMessageCount,updatedAt,participantId){this.customData=void 0,this.id=void 0,this.name=void 0,this.lastMessage=void 0,this.ownerId=void 0,this.type=void 0,this.unreadMessageCount=void 0,this.updatedAt=void 0,this.participantId=void 0,this.customData=customData,this.id=id,this.name=name,this.lastMessage=lastMessage,this.ownerId=ownerId,this.type=type,this.unreadMessageCount=unreadMessageCount,this.updatedAt=updatedAt,this.participantId=participantId}}class GroupDialogEntity{constructor(customData,id,lastMessage,ownerId,type,unreadMessageCount,updatedAt,participantIds,name,photo){this.customData=void 0,this.id=void 0,this.lastMessage=void 0,this.ownerId=void 0,this.type=void 0,this.unreadMessageCount=void 0,this.updatedAt=void 0,this.participantIds=void 0,this.newParticipantIds=void 0,this.participantsToRemoveIds=void 0,this.name=void 0,this.photo=void 0,this.customData=customData,this.id=id,this.lastMessage=lastMessage,this.ownerId=ownerId,this.type=type,this.unreadMessageCount=unreadMessageCount,this.updatedAt=updatedAt,this.participantIds=participantIds,this.name=name,this.photo=photo}}class RemoteDialogDTO{constructor(){this.id=void 0,this.type=void 0,this.ownerId=void 0,this.participantId=void 0,this.participantsIds=void 0,this.newParticipantsIds=void 0,this.updatedAt=void 0,this.lastMessageText=void 0,this.lastMessageUserId=void 0,this.lastMessageDateSent=void 0,this.lastMessageId=void 0,this.unreadMessageCount=void 0,this.name=void 0,this.photo=void 0,this.id="",this.type=0,this.ownerId="",this.participantId="",this.participantsIds=[],this.updatedAt="",this.lastMessageText="",this.lastMessageUserId=0,this.lastMessageDateSent=0,this.lastMessageId="",this.unreadMessageCount=0,this.name="",this.photo=""}}class RemoteUserDTO{constructor(){this.id=void 0,this.name=void 0,this.full_name=void 0,this.email=void 0,this.login=void 0,this.created_at=void 0,this.updated_at=void 0,this.last_request_at=void 0,this.custom_data=void 0,this.user_tags=void 0,this.blob_id=void 0,this.id="",this.name="",this.full_name="",this.email="",this.login="",this.created_at="",this.updated_at="",this.last_request_at="",this.custom_data="",this.user_tags="",this.blob_id=0}}class Creator{static async createBlobFromUrl(imageSrc){let imgSrc="",setBlob=async function(response){let blob=await (null==response?void 0:response.blob());imgSrc=URL.createObjectURL(blob)},blobFile=await fetch(imageSrc).catch(async function(){let response=await fetch(imageSrc);response.ok&&await setBlob(response)}).then(function(response){return null==response?void 0:response.blob()});return{imgSrc,blobFile}}static async getInfoPromise(fileId){return new Promise((resolve,reject)=>{quickblox_default().content.getInfo(fileId,function(error,result){error?reject(error):resolve(result.blob.uid)})})}static createMessageEntity(params){return{id:params.id||"",dialogId:params.dialogId,message:params.message,created_at:params.created_at||new Date().toISOString(),date_sent:params.date_sent||Date.now(),updated_at:params.updated_at||new Date().toISOString(),delivered_ids:params.delivered_ids||[],read_ids:params.read_ids||[],read:params.read||1,sender_id:params.sender_id,recipient_id:params.recipient_id,attachments:params.attachments,notification_type:params.notification_type,dialogType:params.dialog_type}}static createFileEntity(){return{id:"0",uid:"",url:"",name:"",size:0,type:FileType.image}}}Creator.createPhotoByBlob=async blob_id=>{let file_uid=await Creator.getInfoPromise(blob_id||0),imageSrc=quickblox_default().content.privateUrl(file_uid),{imgSrc,blobFile}=await Creator.createBlobFromUrl(imageSrc);return blobFile?URL.createObjectURL(blobFile):imgSrc||""};class UserRemoteDTOMapper{fromEntity(entity){if(null==entity)throw new MapperDTOException(UNEXPECTED_MAPPER_DTO_EXCEPTION_MESSAGE,131,"entity is null or undefined");let userDTO=new RemoteUserDTO;return UserRemoteDTOMapper.validateEntity(entity),userDTO.id=entity.id.toString(),userDTO.full_name=entity.full_name,userDTO.email=entity.email,userDTO.login=entity.login,userDTO.created_at=entity.created_at,userDTO.updated_at=entity.updated_at,userDTO.last_request_at=entity.last_request_at,userDTO.custom_data=entity.custom_data,userDTO.user_tags=entity.user_tags,Promise.resolve(userDTO)}async toEntity(data){if(null==data)throw new MapperDTOException(UNEXPECTED_MAPPER_DTO_EXCEPTION_MESSAGE,131,"userDTO is null or undefined");UserRemoteDTOMapper.validateDTO(data);let userEntity=UserRemoteDTOMapper.createDefaultUserEntity();return userEntity.id=parseInt(data.id,10),userEntity.full_name=data.full_name,userEntity.email=data.email,userEntity.login=data.login,userEntity.created_at=data.created_at,userEntity.updated_at=data.updated_at,userEntity.last_request_at=data.last_request_at,userEntity.custom_data=data.custom_data,userEntity.user_tags=data.user_tags,data.blob_id&&(userEntity.photo=await Creator.createPhotoByBlob(data.blob_id)),Promise.resolve(userEntity)}static validateEntity(userEntity){let userEntityValidator={blob_id(v){let{blob_id}=v;return(blob_id||"").length>=0},photo(v){let{photo}=v;return null!=photo&&photo.length>0},created_at(v){let{created_at}=v;return null!=created_at&&created_at.length>0},custom_data(v){let{custom_data}=v;return custom_data||!0},email(v){let{email}=v;return null!=email&&email.length>0},full_name(v){let{full_name}=v;return null!=full_name&&full_name.length>0},id(v){let{id}=v;return null!=id},last_request_at(v){let{last_request_at}=v;return null!=last_request_at&&last_request_at.length>0},login(v){let{login}=v;return null!=login&&login.length>0},updated_at(v){let{updated_at}=v;return null!=updated_at&&updated_at.length>0},user_tags(v){let{user_tags}=v;return user_tags||!0}};if(!userEntityValidator.blob_id(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {blob_id} does not exists or empty");if(!userEntityValidator.created_at(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {created_at} does not exist or empty");if(!userEntityValidator.custom_data(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {custom_data} does not exist or empty");if(!userEntityValidator.email(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {email} does not exist or empty");if(!userEntityValidator.full_name(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {full_name} does not exist or empty");if(!userEntityValidator.id(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!userEntityValidator.last_request_at(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {last_request_at} does not exist or empty");if(!userEntityValidator.id(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!userEntityValidator.updated_at(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updated_at} does not exist or empty");if(!userEntityValidator.user_tags(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {user_tags} does not exist or empty")}static validateDTO(userDTO){let dtoValidator={blob_id(v){let{blob_id}=v,result=blob_id||"";return result&&result.length&&result.length>=0||!0},created_at(v){let{created_at}=v;return void 0!==created_at},custom_data(v){let{created_at}=v;return void 0!==created_at},email(v){let{email}=v;return void 0!==email},full_name(v){let{full_name}=v;return void 0!==full_name},id(v){let{id}=v;return void 0!==id},last_request_at(v){let{last_request_at}=v;return void 0!==last_request_at},login(v){let{login}=v;return void 0!==login},name(v){let{name}=v;return void 0!==name},updated_at(v){let{updated_at}=v;return void 0!==updated_at},user_tags(v){let{user_tags}=v;return void 0!==user_tags}};if(!dtoValidator.blob_id(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {blob_id} does not exists or empty in DTO");if(!dtoValidator.created_at(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {created_at} does not exist or empty in DTO");if(!dtoValidator.custom_data(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {custom_data} does not exist or empty in DTO");if(!dtoValidator.email(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {email} does not exist or empty in DTO");if(!dtoValidator.full_name(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {full_name} does not exist or empty in DTO");if(!dtoValidator.id(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty in DTO");if(!dtoValidator.last_request_at(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {last_request_at} does not exist or empty in DTO");if(!dtoValidator.login(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {login} does not exist or empty in DTO");if(!dtoValidator.name(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {name} does not exist or empty in DTO");if(!dtoValidator.updated_at(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updated_at} does not exist or empty in DTO");if(!dtoValidator.user_tags(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {user_tags} does not exist or empty in DTO")}static createDefaultUserEntity(){return{created_at:"",custom_data:"",email:"",full_name:"",id:0,last_request_at:"",login:"",updated_at:"",user_tags:"",blob_id:"",photo:""}}}class LocalDialogDTO{constructor(){this.id=void 0,this.type=void 0,this.ownerId=void 0,this.participantId=void 0,this.participantsIds=void 0,this.updatedAt=void 0,this.lastMessageText=void 0,this.lastMessageDateSent=void 0,this.lastMessageUserId=void 0,this.unreadMessageCount=void 0,this.name=void 0,this.photo=void 0,this.id="",this.type=0,this.ownerId="",this.participantId="",this.participantsIds=[],this.updatedAt="",this.lastMessageText="",this.lastMessageDateSent=0,this.lastMessageUserId="",this.unreadMessageCount=0,this.name="",this.photo=""}}class DialogLocalDTOMapper{fromEntity(entity){let dialog=new LocalDialogDTO,dialogEntity=this.defineType(entity);return DialogLocalDTOMapper.validateEntity(dialogEntity),dialog.id=dialogEntity.id,dialog.type=dialogEntity.type,dialog.ownerId=dialogEntity.ownerId,dialog.participantsIds=DialogLocalDTOMapper.getParticipantsIds(dialogEntity),dialog.participantId=DialogLocalDTOMapper.getParticipantId(dialogEntity),dialog.updatedAt=dialogEntity.updatedAt,dialog.lastMessageText=dialogEntity.lastMessage.text,dialog.lastMessageUserId=dialogEntity.lastMessage.userId.toString(),dialog.lastMessageDateSent=dialogEntity.lastMessage.dateSent,dialog.unreadMessageCount=dialogEntity.unreadMessageCount,dialog.name=DialogLocalDTOMapper.getDialogName(dialogEntity),dialog.photo=DialogLocalDTOMapper.getPhoto(dialogEntity),Promise.resolve(dialog)}toEntity(data){DialogLocalDTOMapper.validateLocalDTO(data);let entity=DialogLocalDTOMapper.createDefaultDialogEntity(data.ownerId);switch(data.type){case DialogType.private:entity=new PrivateDialogEntity({todo:""},data.id,data.name,{dateSent:data.lastMessageDateSent,text:data.lastMessageText?data.lastMessageText:"",userId:parseInt(data.lastMessageUserId,10)},data.ownerId,data.type,data.unreadMessageCount,data.updatedAt,parseInt(data.participantId,10));break;case DialogType.public:entity=new PublicDialogEntity({todo:""},data.id,{dateSent:data.lastMessageDateSent,text:data.lastMessageText?data.lastMessageText:"",userId:parseInt(data.lastMessageUserId,10)},data.ownerId,data.type,data.unreadMessageCount,data.updatedAt,data.name,data.photo);break;case DialogType.group:entity=new GroupDialogEntity({todo:""},data.id,{dateSent:data.lastMessageDateSent,text:data.lastMessageText?data.lastMessageText:"",userId:parseInt(data.lastMessageUserId,10)},data.ownerId,data.type,data.unreadMessageCount,data.updatedAt,data.participantsIds,data.name,data.photo);break;default:return Promise.reject(new MapperDTOException(UNEXPECTED_MAPPER_DTO_EXCEPTION_MESSAGE,131,"undefinded type dialog in DTO"))}return Promise.resolve(entity)}defineType(entity){let dialogEntity=entity;switch(dialogEntity.type){case DialogType.private:dialogEntity=entity instanceof PrivateDialogEntity?entity:null;break;case DialogType.public:dialogEntity=entity instanceof PublicDialogEntity?entity:null;break;case DialogType.group:dialogEntity=entity instanceof GroupDialogEntity?entity:null;break;default:dialogEntity=null}if(!dialogEntity)throw new MapperDTOException(UNEXPECTED_MAPPER_DTO_EXCEPTION_MESSAGE,131,"wrong type");return dialogEntity}static getPhoto(dialogEntity){return(dialogEntity instanceof GroupDialogEntity||dialogEntity instanceof PublicDialogEntity)&&dialogEntity.photo||""}static getDialogName(dialogEntity){return dialogEntity instanceof GroupDialogEntity||dialogEntity instanceof PublicDialogEntity||dialogEntity instanceof PrivateDialogEntity?dialogEntity.name:""}static getParticipantId(dialogEntity){return dialogEntity instanceof PrivateDialogEntity?dialogEntity.participantId.toString():""}static getParticipantsIds(dialogEntity){return dialogEntity instanceof GroupDialogEntity?dialogEntity.participantIds:[]}static validateEntity(dialogEntity){return dialogEntity instanceof PrivateDialogEntity?DialogLocalDTOMapper.validateIsPrivateDialogCorrect(dialogEntity):dialogEntity instanceof PublicDialogEntity?DialogLocalDTOMapper.validateIsPublicDialogCorrect(dialogEntity):dialogEntity instanceof GroupDialogEntity?DialogLocalDTOMapper.validateIsGroupDialogCorrect(dialogEntity):Promise.resolve()}static validateIsPrivateDialogCorrect(dialogEntity){let privateDialogEntityValidator={name(v){let{name}=v;return null!=name&&name.length>0},customData(v){let{customData}=v;return void 0!==customData&&void 0!==customData.todo},id(v){let{id}=v;return null!=id},lastMessage(v){let{lastMessage}=v;return null!=lastMessage&&void 0!==lastMessage.dateSent&&void 0!==lastMessage.text&&void 0!==lastMessage.userId},ownerId(v){let{ownerId}=v;return null!=ownerId},participantId(v){let{participantId}=v;return null!=participantId},type(v){let{type}=v;return null!=type},unreadMessageCount(v){let{unreadMessageCount}=v;return null!=unreadMessageCount},updatedAt(v){let{updatedAt}=v;return null!=updatedAt}};if(!privateDialogEntityValidator.id(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!privateDialogEntityValidator.name(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {name} does not exist or empty");if(!privateDialogEntityValidator.customData(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {customData} does not exist or empty");if(!privateDialogEntityValidator.lastMessage(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {lastMessage} does not exist or empty");if(!privateDialogEntityValidator.ownerId(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {ownerId} does not exist or empty");if(!privateDialogEntityValidator.participantId(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {participantId} does not exist or empty");if(!privateDialogEntityValidator.type(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {type} does not exist or empty");if(!privateDialogEntityValidator.unreadMessageCount(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {unreadMessageCount} does not exist or empty");if(!privateDialogEntityValidator.updatedAt(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updatedAt} does not exist or empty")}static validateIsPublicDialogCorrect(dialogEntity){let publicDialogEntityValidator={customData(v){let{customData}=v;return void 0!==customData&&void 0!==customData.todo},id(v){let{id}=v;return null!=id},lastMessage(v){let{lastMessage}=v;return null!=lastMessage&&void 0!==lastMessage.dateSent&&void 0!==lastMessage.text&&void 0!==lastMessage.userId},ownerId(v){let{ownerId}=v;return null!=ownerId},type(v){let{type}=v;return null!=type},unreadMessageCount(v){let{unreadMessageCount}=v;return null!=unreadMessageCount},updatedAt(v){let{updatedAt}=v;return null!=updatedAt},name(v){let{name}=v;return null!=name&&name.length>0},photo(v){let{photo}=v;return null!=photo}};if(!publicDialogEntityValidator.id(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!publicDialogEntityValidator.customData(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {customData} does not exist or empty");if(!publicDialogEntityValidator.lastMessage(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {lastMessage} does not exist or empty");if(!publicDialogEntityValidator.ownerId(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {ownerId} does not exist or empty");if(!publicDialogEntityValidator.type(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {type} does not exist or empty");if(!publicDialogEntityValidator.unreadMessageCount(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {unreadMessageCount} does not exist or empty");if(!publicDialogEntityValidator.updatedAt(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updatedAt} does not exist or empty");if(!publicDialogEntityValidator.name(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {name} does not exist or empty");if(!publicDialogEntityValidator.photo(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {photo} does not exist or empty")}static validateIsGroupDialogCorrect(dialogEntity){let groupDialogEntityValidator={customData(v){let{customData}=v;return void 0!==customData&&void 0!==customData.todo},id(v){let{id}=v;return null!=id},lastMessage(v){let{lastMessage}=v;return null!=lastMessage&&void 0!==lastMessage.dateSent&&void 0!==lastMessage.text&&void 0!==lastMessage.userId},ownerId(v){let{ownerId}=v;return null!=ownerId},type(v){let{type}=v;return null!=type},unreadMessageCount(v){let{unreadMessageCount}=v;return null!=unreadMessageCount},updatedAt(v){let{updatedAt}=v;return null!=updatedAt},name(v){let{name}=v;return null!=name},photo(v){let{photo}=v;return null!=photo},participantIds(v){let{participantIds}=v;return null!=participantIds}};if(!groupDialogEntityValidator.id(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!groupDialogEntityValidator.customData(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {customData} does not exist or empty");if(!groupDialogEntityValidator.lastMessage(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {lastMessage} does not exist or empty");if(!groupDialogEntityValidator.ownerId(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {ownerId} does not exist or empty");if(!groupDialogEntityValidator.type(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {type} does not exist or empty");if(!groupDialogEntityValidator.unreadMessageCount(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {unreadMessageCount} does not exist or empty");if(!groupDialogEntityValidator.updatedAt(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updatedAt} does not exist or empty");if(!groupDialogEntityValidator.name(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {name} does not exist or empty");if(!groupDialogEntityValidator.photo(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {photo} does not exist or empty");if(!groupDialogEntityValidator.participantIds(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {participantIds} does not exist or empty")}static validateLocalDTO(data){let dtoValidator={id(v){let{id}=v;return void 0!==id},lastMessageDateSent(v){let{lastMessageDateSent}=v;return void 0!==lastMessageDateSent},lastMessageText(v){let{lastMessageText}=v;return void 0!==lastMessageText},lastMessageUserId(v){let{lastMessageUserId}=v;return void 0!==lastMessageUserId},name(v){let{name}=v;return void 0!==name},ownerId(v){let{ownerId}=v;return void 0!==ownerId},participantId(v){let{participantId}=v;return void 0!==participantId},participantsIds(v){let{participantsIds}=v;return void 0!==participantsIds},photo(v){let{photo}=v;return void 0!==photo},type(v){let{type}=v;return void 0!==type},unreadMessageCount(v){let{unreadMessageCount}=v;return void 0!==unreadMessageCount},updatedAt(v){let{updatedAt}=v;return void 0!==updatedAt}};if(!dtoValidator.id(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty in DTO");if(!dtoValidator.lastMessageDateSent(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {lastMessageDateSent} does not exist or empty in DTO");if(!dtoValidator.lastMessageText(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {lastMessageText} does not exist or empty in DTO");if(!dtoValidator.name(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {name} does not exist or empty in DTO");if(!dtoValidator.ownerId(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {ownerId} does not exist or empty in DTO");if(!dtoValidator.participantId(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {participantId} does not exist or empty in DTO");if(!dtoValidator.participantsIds(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {participantsIds} does not exist or empty in DTO");if(!dtoValidator.photo(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {photo} does not exist or empty in DTO");if(!dtoValidator.type(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {type} does not exist or empty in DTO");if(!dtoValidator.unreadMessageCount(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {unreadMessageCount} does not exist or empty in DTO");if(!dtoValidator.updatedAt(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updatedAt} does not exist or empty in DTO")}static createDefaultDialogEntity(owner_id){return{customData:{todo:""},lastMessage:{dateSent:0,text:"",userId:0},ownerId:owner_id,type:DialogType.public,unreadMessageCount:0,updatedAt:"",id:"",name:"_"}}}class LocalMessageDTO{constructor(){this.id=void 0,this.dialogId=void 0,this.dialog_type=void 0,this.message=void 0,this.created_at=void 0,this.date_sent=void 0,this.delivered_ids=void 0,this.read_ids=void 0,this.read=void 0,this.recipient_id=void 0,this.sender_id=void 0,this.updated_at=void 0,this.attachments=void 0,this.notification_type=void 0,this.markable=void 0,this.id="",this.dialogId="",this.message="",this.created_at="",this.date_sent=0,this.delivered_ids=[],this.read_ids=[],this.recipient_id=0,this.read=0,this.sender_id=0,this.updated_at="",this.attachments=[]}}class MessageLocalDTOMapper{fromEntity(entity){let messageDTO=new LocalMessageDTO;if(null==entity)throw new MapperDTOException(UNEXPECTED_MAPPER_DTO_EXCEPTION_MESSAGE,131,"entity is null or undefined");return MessageLocalDTOMapper.validateEntity(entity),messageDTO.id=entity.id.toString(),messageDTO.dialogId=entity.dialogId,messageDTO.created_at=entity.created_at,messageDTO.date_sent=entity.date_sent,messageDTO.delivered_ids=entity.delivered_ids,messageDTO.message=entity.message,messageDTO.read_ids=entity.read_ids,messageDTO.read=entity.read?1:0,null!==entity.recipient_id&&(messageDTO.recipient_id=entity.recipient_id),messageDTO.notification_type=entity.notification_type,messageDTO.dialog_type=entity.dialogType,messageDTO.sender_id=entity.sender_id,messageDTO.updated_at=entity.updated_at,entity.attachments&&entity.attachments.length&&entity.attachments.forEach(att=>{let newAtt={...att};messageDTO.attachments.push(newAtt)}),Promise.resolve(messageDTO)}toEntity(data){MessageLocalDTOMapper.validateLocalDTO(data);let messageEntity=MessageLocalDTOMapper.createDefaultMessageEntity();return messageEntity.id=data.id,messageEntity.dialogId=data.dialogId,messageEntity.created_at=data.created_at,messageEntity.date_sent=data.date_sent,messageEntity.delivered_ids=data.delivered_ids,messageEntity.message=data.message,messageEntity.read_ids=data.read_ids,messageEntity.read=data.read,messageEntity.recipient_id=data.recipient_id,messageEntity.sender_id=data.sender_id,messageEntity.updated_at=data.updated_at,data.attachments&&data.attachments.length&&(messageEntity.attachments=[],data.attachments.forEach(att=>{var _messageEntity$attach;let newAtt={...att};null===(_messageEntity$attach=messageEntity.attachments)||void 0===_messageEntity$attach||_messageEntity$attach.push(newAtt)})),messageEntity.notification_type=null!=data&&data.notification_type?null==data?void 0:data.notification_type:"",messageEntity.markable=null!=data&&data.markable?null==data?void 0:data.markable:"",Promise.resolve(messageEntity)}static validateEntity(messageEntity){let messageEntityValidator={created_at(v){let{created_at}=v;return null!=created_at&&created_at.length>0},date_sent(v){let{date_sent}=v;return null!=date_sent},delivered_ids(v){let{delivered_ids}=v;return null!=delivered_ids},dialogId(v){let{dialogId}=v;return null!=dialogId&&dialogId.length>0},id(v){let{id}=v;return null!=id},message(v){let{message}=v;return null!=message&&message.length>0},read(v){let{read}=v;return null!=read},read_ids(v){let{read_ids}=v;return null!=read_ids},recipient_id(v){let{recipient_id}=v;return null!=recipient_id},sender_id(v){let{sender_id}=v;return null!=sender_id},updated_at(v){let{updated_at}=v;return null!=updated_at&&updated_at.length>0}};if(!messageEntityValidator.created_at(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {created_at} does not exist or empty");if(!messageEntityValidator.date_sent(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {date_sent} does not exist or empty");if(!messageEntityValidator.delivered_ids(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {delivered_ids} does not exist or empty");if(!messageEntityValidator.dialogId(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {dialogId} does not exist or empty");if(!messageEntityValidator.id(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!messageEntityValidator.message(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {message} does not exist or empty");if(!messageEntityValidator.read(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read} does not exist or empty");if(!messageEntityValidator.read_ids(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read_ids} does not exist or empty");if(!messageEntityValidator.recipient_id(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {recipient_id} does not exist or empty");if(!messageEntityValidator.sender_id(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {sender_id} does not exist or empty");if(!messageEntityValidator.updated_at(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updated_at} does not exist or empty");return Promise.resolve()}static validateLocalDTO(messageDTO){let dtoValidator={created_at(v){let{created_at}=v;return null!=created_at&&created_at.length>0},date_sent(v){let{date_sent}=v;return null!=date_sent},delivered_ids(v){let{delivered_ids}=v;return null!=delivered_ids},dialogId(v){let{dialogId}=v;return null!=dialogId&&dialogId.length>0},id(v){let{id}=v;return null!=id},message(v){let{message}=v;return null!=message&&message.length>0},read(v){let{read}=v;return null!=read},read_ids(v){let{read_ids}=v;return null!=read_ids},recipient_id(v){let{recipient_id}=v;return null!=recipient_id},sender_id(v){let{sender_id}=v;return null!=sender_id},updated_at(v){let{updated_at}=v;return null!=updated_at&&updated_at.length>0},attachments(v){let{attachments}=v;return null!=attachments}};if(!dtoValidator.created_at(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {created_at} does not exist or empty");if(!dtoValidator.date_sent(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {date_sent} does not exist or empty");if(!dtoValidator.delivered_ids(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {delivered_ids} does not exist or empty");if(!dtoValidator.dialogId(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {dialogId} does not exist or empty");if(!dtoValidator.id(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!dtoValidator.message(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {message} does not exist or empty");if(!dtoValidator.read(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read} does not exist or empty");if(!dtoValidator.read_ids(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read_ids} does not exist or empty");if(!dtoValidator.recipient_id(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {recipient_id} does not exist or empty");if(!dtoValidator.sender_id(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {sender_id} does not exist or empty");if(!dtoValidator.updated_at(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updated_at} does not exist or empty")}static createDefaultMessageEntity(){return{id:"",dialogId:"",created_at:"",date_sent:0,delivered_ids:[],message:"",read_ids:[],read:0,recipient_id:0,sender_id:0,updated_at:""}}}class Stubs{static createMessageEntityWithParams(id,dialogId,message,created_at,date_sent,updated_at,delivered_ids,read_ids,read,sender_id,recipient_id,attachments,notification_type,dialog_type){return{created_at,date_sent,delivered_ids,dialogId,id,message,read,read_ids,recipient_id,sender_id,updated_at,attachments,notification_type,dialogType:dialog_type}}static createFileEntityWithDefaultValues(){return{id:"0",uid:"",url:"",name:"",size:0,type:FileType.image}}static async initializeWithUsersMockData(ds){console.log("local datasource sync status: ",ds.isLocalSynced());let userEntities=Stubs.createUsersForTest(),userEntityToDTOMapper=new UserRemoteDTOMapper;for(let entity of userEntities)try{let userDTO=await userEntityToDTOMapper.fromEntity(entity);await ds.saveUser(userDTO)}catch(e){console.log("EXCEPTION UserEntity perform: ",JSON.stringify(entity)),console.log(e.message),console.log(e._description)}}static async initializeWithDialogsMockData(ds){console.log("local datasource sync status: ",ds.isLocalSynced());let dialogsDTOtoEntityMapper=new DialogLocalDTOMapper;for(let item of Stubs.createDialogsForTest()){let dialogDTO=await dialogsDTOtoEntityMapper.fromEntity(item);ds.saveDialog(dialogDTO).then(_=>{console.log("added mock item ".concat(JSON.stringify(dialogDTO)))}).catch(e=>{console.log("EXCEPTION:",e.message)})}}static async initializeWithMessagesMockData(ds){console.log("call initializeWithMessagesMockData");let initFirstPageMessages=[],photoAttachments=[{id:"10231",type:FileType.image,uid:"10231",url:"https://via.placeholder.com/600/92c952",file:{id:"10231",uid:"",type:FileType.image,url:"https://via.placeholder.com/600/92c952"}}],videoAttachments=[{id:"10232",type:FileType.video,uid:"10232",url:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4",file:{id:"10232",uid:"",type:FileType.video,url:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4"}}];FileType.audio,FileType.audio;let textAttachments=[{id:"10233",type:FileType.text,uid:"10233",url:"https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt",file:{id:"10233",uid:"",type:FileType.text,url:"https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt"},name:"textFile.txt"}];for(let i=0;i<47;i+=1){let newMessageEntity=Stubs.createMessageEntityWithParams(i.toString(),"103",i%9==0?"".concat(i+1," very very very long test text message for dialog 103. The text message with huge text: bla-bla-bla long long long long, bla-bla-bla, very very very long test text message for dialog 103. very very very long test text message for dialog 103. etc"):"".concat(i+1," test message for dialog 103"),"31.03.2023",Date.now(),"31.03.2023",[134885168,12,13],[134885168,12,13],1,i%2==0?134885168:12,i%2==0?12:134885168,4===i?photoAttachments:5===i?videoAttachments:void 0,i%7==0?"3":void 0);initFirstPageMessages.push(newMessageEntity)}for(let i=47;i<100;i+=1){let newMessageEntity=Stubs.createMessageEntityWithParams(i.toString(),"103","".concat(i+1," test message for dialog 103"),"31.03.2023",Date.now(),"31.03.2023",[134885168,12,13],[134885168,12,13],1,134885168,12,textAttachments);initFirstPageMessages.push(newMessageEntity)}let messageEntityToDTOMapper=new MessageLocalDTOMapper;for(let entity of initFirstPageMessages)try{let messageDTO=await messageEntityToDTOMapper.fromEntity(entity);await ds.saveMessage(messageDTO)}catch(e){console.log("EXCEPTION MessageEntity perform: ",JSON.stringify(entity)),console.log(e.message),console.log(e._description)}}static initializeMessagesWithMockData(){let initFirstPageMessages=[],photoAttachments=[{id:"10231",type:FileType.image,uid:"10231",url:"https://via.placeholder.com/600/92c952",file:{id:"10231",uid:"",type:FileType.image,url:"https://via.placeholder.com/600/92c952"}}],videoAttachments=[{id:"10232",type:FileType.video,uid:"10232",url:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4",file:{id:"10232",uid:"",type:FileType.video,url:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4"}}],audioAttachments=[{id:"10233",type:FileType.audio,uid:"10233",url:"https://cdn.freesound.org/previews/681/681715_1648170-lq.mp3",file:{id:"10233",uid:"",type:FileType.audio,url:"https://cdn.freesound.org/previews/681/681715_1648170-lq.mp3"}}],textAttachments=[{id:"10233",type:FileType.text,uid:"10233",url:"https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt",file:{id:"10233",uid:"",type:FileType.text,url:"https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt"},name:"textFile.txt"}],createAttachment=i=>{switch(i){case 1:return photoAttachments;case 2:return videoAttachments;case 3:return audioAttachments;case 4:return textAttachments;default:return[]}};for(let i=1;i<=4;i+=1){let newMessageEntity=Stubs.createMessageEntityWithParams(i.toString(),"103",i%3==0?"".concat(i+1," very very very long test text message for dialog 103. The text message with huge text: bla-bla-bla long long long long, bla-bla-bla, very very very long test text message for dialog 103. very very very long test text message for dialog 103. etc"):"".concat(i+1," test message for dialog 103"),"31.03.2023",Date.now(),"31.03.2023",[134885168,12,13],[134885168,12,13],1,i%2==0?134885168:12,i%2==0?12:134885168,createAttachment(i),i%7==0?"3":void 0);initFirstPageMessages.push(newMessageEntity)}return initFirstPageMessages}static createDialogEntityByTypeWithEmptyValues(dialogType){let dialogEntity;switch(dialogType){case DialogType.private:dialogEntity=new PrivateDialogEntity({todo:""},"","_",{dateSent:0,text:"",userId:0},"",DialogType.private,0,"",0);break;case DialogType.public:dialogEntity=new PublicDialogEntity({todo:""},"",{dateSent:0,text:"",userId:0},"",DialogType.public,0,"","","");break;case DialogType.group:dialogEntity=new GroupDialogEntity({todo:""},"",{dateSent:0,text:"",userId:0},"",DialogType.group,0,"",[],"","");break;default:dialogEntity={customData:{todo:""},id:"",name:"_",lastMessage:{dateSent:0,text:"",userId:0},ownerId:"",type:-1,unreadMessageCount:0,updatedAt:""}}return dialogEntity}static createDialogEntityWithError(){return Stubs.createDialogEntityByTypeWithEmptyValues(-1)}static createDialogEntityByTypeWithDefaultValues(dialogType){let dialogEntity;switch(dialogType){case DialogType.private:dialogEntity=new PrivateDialogEntity({todo:""},"111","_111",{dateSent:0,text:"text test",userId:777},"999",DialogType.private,555,"02.02.2023",333);break;case DialogType.public:dialogEntity=new PublicDialogEntity({todo:""},"111",{dateSent:0,text:"text test",userId:777},"999",DialogType.public,555,"02.02.2023","test public dialog","no photo public dialog");break;case DialogType.group:dialogEntity=new GroupDialogEntity({todo:""},"111",{dateSent:0,text:"text test",userId:777},"999",DialogType.group,555,"02.02.2023",[],"test group dialog","no photo group dialog");break;default:dialogEntity={customData:{todo:""},id:"111",name:"_111",lastMessage:{dateSent:0,text:"text test",userId:777},ownerId:"999",type:-1,unreadMessageCount:555,updatedAt:"03.02.2023"}}return dialogEntity}static createDialogDTOByTypeWithDefaultValues(dialogType){let dto=new RemoteDialogDTO;switch(dialogType){case DialogType.private:dto.id="111",dto.lastMessageDateSent=0,dto.lastMessageText="text test",dto.lastMessageUserId=777,dto.ownerId="999",dto.type=dialogType,dto.unreadMessageCount=555,dto.updatedAt="02.02.2023",dto.participantId="333";break;case DialogType.public:dto.id="111",dto.lastMessageDateSent=0,dto.lastMessageText="text test",dto.lastMessageUserId=777,dto.ownerId="999",dto.type=dialogType,dto.unreadMessageCount=555,dto.updatedAt="02.02.2023",dto.name="test public dialog",dto.photo="no photo public dialog";break;case DialogType.group:dto.id="111",dto.lastMessageDateSent=0,dto.lastMessageText="text test",dto.lastMessageUserId=777,dto.ownerId="999",dto.type=dialogType,dto.unreadMessageCount=555,dto.updatedAt="02.02.2023",dto.participantsIds=[],dto.name="test group dialog",dto.photo="no photo group dialog"}return dto}static createArrayDialogDTOByTypeWithDefaultValues(count,dialogType){let arrayDialogs=[];for(let i=0;i<count;i+=1)Stubs.createDialogDTOByTypeWithDefaultValues(dialogType).id=(1e3+i).toString(),arrayDialogs.push();return arrayDialogs}static createArrayPublicDialogDTO(){return console.log("call createArrayPublicDialogDTO"),[{id:"1",name:"Cash Chat 1",ownerId:"1",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""},{id:"2",name:"Cash Chat 2",ownerId:"2",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""},{id:"3",name:"Chat 3 from Cash",ownerId:"3",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""},{id:"4",name:"Chat 4 from Cash",ownerId:"4",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""},{id:"5",name:"Chat 5 from Cash",ownerId:"5",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""},{id:"6",name:"Chat 6 from Cash",ownerId:"6",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""},{id:"7",name:"Chat 7 Lucky Room",ownerId:"7",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""}]}static createPublicDialogQBWithEmptyValues(){return{_id:"111",created_at:"01.03.2023",last_message:"test message",last_message_date_sent:0,last_message_id:"100",last_message_user_id:112,name:"",occupants_ids:[],new_occupants_ids:[],photo:null,type:DialogType.public,unread_messages_count:0,updated_at:"02.03.2023",user_id:0,xmpp_room_jid:null}}static createPrivateDialogQBWithEmptyValues(){return{_id:"111",created_at:"01.03.2023",last_message:"test message",last_message_date_sent:0,last_message_id:"100",last_message_user_id:112,name:"",occupants_ids:[],new_occupants_ids:[],photo:null,type:DialogType.private,unread_messages_count:0,updated_at:"02.03.2023",user_id:0,xmpp_room_jid:null}}static createGroupDialogQBWithEmptyValues(){return{_id:"111",created_at:"01.03.2023",last_message:"test message",last_message_date_sent:0,last_message_id:"100",last_message_user_id:112,name:"",occupants_ids:[],new_occupants_ids:[],photo:null,type:DialogType.group,unread_messages_count:0,updated_at:"02.03.2023",user_id:0,xmpp_room_jid:null}}static createDialogEntityWithParams(dialogType,id,name,dateSentLastMessage,textLastMessage,userIdLastMessage,ownerId,unreadMessageCount,updatedAt,participantId){let dialogEntity,photo=arguments.length>10&&void 0!==arguments[10]?arguments[10]:"",participantIds=arguments.length>11&&void 0!==arguments[11]?arguments[11]:[];switch(dialogType){case DialogType.private:dialogEntity=new PrivateDialogEntity({todo:""},id,name,{dateSent:dateSentLastMessage,text:textLastMessage,userId:userIdLastMessage},ownerId,DialogType.private,unreadMessageCount,updatedAt,participantId);break;case DialogType.public:dialogEntity=new PublicDialogEntity({todo:""},id,{dateSent:dateSentLastMessage,text:textLastMessage,userId:userIdLastMessage},ownerId,DialogType.public,unreadMessageCount,updatedAt,name,photo);break;case DialogType.group:dialogEntity=new GroupDialogEntity({todo:""},id,{dateSent:dateSentLastMessage,text:textLastMessage,userId:userIdLastMessage},ownerId,DialogType.group,unreadMessageCount,updatedAt,participantIds,name,photo);break;default:dialogEntity={customData:{todo:""},id:"012345",name:"error dialog",lastMessage:{dateSent:0,text:"text test",userId:12345},ownerId:"12345",type:-1,unreadMessageCount:0,updatedAt:"31.03.2023"}}return dialogEntity}static createUserEntityWithParams(id,full_name,email,login,created_at,updated_at,last_request_at){let custom_data=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,user_tags=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,blob_id=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"",photo=arguments.length>10&&void 0!==arguments[10]?arguments[10]:"";return{id,full_name,email,login,created_at,updated_at,last_request_at,blob_id,photo,custom_data,user_tags}}static createDialogsForTest(){let dialogs=[];return dialogs.push(Stubs.createDialogEntityWithParams(DialogType.private,"101","Stub1 Private Dialog",0,"Test text message for private dialog",11,"11",1,"31.03.20223",12)),dialogs.push(Stubs.createDialogEntityWithParams(DialogType.public,"102","Stub2 Public Dialog",0,"Test text message for public dialog",12,"12",1,"31.03.20223",12,"no photo",[11,12,13])),dialogs.push(Stubs.createDialogEntityWithParams(DialogType.group,"103","Stub 3 Group Dialog",0,"Test text message for group dialog",13,"13",1,"31.03.20223",13,"no photo",[11,12,13])),dialogs}static createUsersForTest(){let users=[],user11=Stubs.createUserEntityWithParams(11,"fl_user11","fl_user11@q.ua","login_user11","31.03.2023","31.03.2023",""),user12=Stubs.createUserEntityWithParams(12,"fl_user12","fl_user12@q.ua","login_user12","31.03.2023","31.03.2023",""),user13=Stubs.createUserEntityWithParams(13,"fl_user13","fl_user13@q.ua","login_user13","31.03.2023","31.03.2023","");return users.push(user11),users.push(user12),users.push(user13),users}static createMessagesForTest(){let messages=[],message102_1=Stubs.createMessageEntityWithParams("1021","102","1 test message for dialog 102","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12),message102_2=Stubs.createMessageEntityWithParams("1022","102","2 test message for dialog 102","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12),photo={id:"10231",type:FileType.image,uid:"10231",url:"https://via.placeholder.com/600/92c952",file:{id:"10231",uid:"",type:FileType.image,url:"https://via.placeholder.com/600/92c952"}},message102_3=Stubs.createMessageEntityWithParams("1023","102","3 test message for dialog 102","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12,[photo]),video={id:"10232",type:FileType.video,uid:"10232",url:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4",file:{id:"10232",uid:"",type:FileType.video,url:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4"}},message102_4=Stubs.createMessageEntityWithParams("1024","102","3 test message for dialog 102","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12,[video]),audio={id:"10233",type:FileType.audio,uid:"10233",url:"https://cdn.freesound.org/previews/681/681715_1648170-lq.mp3",file:{id:"10233",uid:"",type:FileType.audio,url:"https://cdn.freesound.org/previews/681/681715_1648170-lq.mp3"}},message102_5=Stubs.createMessageEntityWithParams("1025","102","3 test message for dialog 102","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12,[audio]),text={id:"10233",type:FileType.text,uid:"10233",url:"https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt",file:{id:"10233",uid:"",type:FileType.text,url:"https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt"}},message102_6=Stubs.createMessageEntityWithParams("1026","102","3 test message for dialog 102","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12,[text]);messages.push(message102_1),messages.push(message102_2),messages.push(message102_3),messages.push(message102_4),messages.push(message102_5),messages.push(message102_6);let message112_1=Stubs.createMessageEntityWithParams("1121","112","1 test message for dialog 112","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12),message112_2=Stubs.createMessageEntityWithParams("1122","112","2 test message for dialog 112","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12),message112_3=Stubs.createMessageEntityWithParams("1123","112","3 test message for dialog 112","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12);messages.push(message112_1),messages.push(message112_2),messages.push(message112_3);let message113_1=Stubs.createMessageEntityWithParams("1131","113","1 test message for dialog 113","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12),message113_2=Stubs.createMessageEntityWithParams("1132","113","2 test message for dialog 113","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12),message113_3=Stubs.createMessageEntityWithParams("1133","113","3 test message for dialog 113","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12);return messages.push(message113_1),messages.push(message113_2),messages.push(message113_3),messages}}let MessageInput_stories={title:"@quickblox-react-ui-kit/Presentation/ui-components/MessageInput",component:MessageInput_MessageInput,tags:["autodocs"],parameters:{layout:"centered"},argTypes:{rephrase:{control:!1},value:{control:"text",description:"Input value"},onChange:{action:"changed",description:"Change event handler"},onSend:{action:"sent",description:"Send event handler"},enableVoice:{control:"boolean",description:"Enable voice message option"},onVoice:{action:"voice activated",description:"Voice event handler"},disableAttachment:{control:"boolean",description:"Disable attachment option"},onAttachment:{action:"attachment added",description:"Attachment event handler"},loading:{control:"boolean",description:"Enable loading state"},previewMessage:{description:"Last message by type",control:"select",options:["Text","Image","Video","Audio","None"],mapping:{Text:(0,jsx_runtime.jsx)(ReplyMessagePreview_ReplyMessagePreview,{messages:[Stubs.initializeMessagesWithMockData()[3]],userNameSentMessage:"",onClose:()=>{console.log("closed")}}),Image:(0,jsx_runtime.jsx)(ReplyMessagePreview_ReplyMessagePreview,{messages:[Stubs.initializeMessagesWithMockData()[0]],userNameSentMessage:"",onClose:()=>{console.log("closed")}}),Video:(0,jsx_runtime.jsx)(ReplyMessagePreview_ReplyMessagePreview,{messages:[Stubs.initializeMessagesWithMockData()[1]],userNameSentMessage:"",onClose:()=>{console.log("closed")}}),Audio:(0,jsx_runtime.jsx)(ReplyMessagePreview_ReplyMessagePreview,{messages:[Stubs.initializeMessagesWithMockData()[2]],userNameSentMessage:"",onClose:()=>{console.log("closed")}}),None:void 0}},className:{control:"text",description:"CSS class"}}},MessageInputDefault={name:"MessageInput Default",args:{value:"",enableVoice:!1,disableAttachment:!1,loading:!1}},MessageInputWithVoiceMessage={name:"MessageInput With Voice Message",args:{...MessageInputDefault.args,enableVoice:!0}},MessageInputWithPreview={name:"MessageInput With Preview",args:{...MessageInputDefault.args,previewMessage:(0,jsx_runtime.jsx)(ReplyMessagePreview_ReplyMessagePreview,{messages:[Stubs.initializeMessagesWithMockData()[0]],userNameSentMessage:"",onClose:()=>{console.log("closed")}})}},MessageInputLoadingState={name:"MessageInput Loading State",args:{...MessageInputDefault.args,loading:!0}};MessageInputDefault.parameters={...MessageInputDefault.parameters,docs:{...MessageInputDefault.parameters?.docs,source:{originalSource:"{\n name: 'MessageInput Default',\n args: {\n value: '',\n enableVoice: false,\n disableAttachment: false,\n loading: false\n }\n}",...MessageInputDefault.parameters?.docs?.source}}},MessageInputWithVoiceMessage.parameters={...MessageInputWithVoiceMessage.parameters,docs:{...MessageInputWithVoiceMessage.parameters?.docs,source:{originalSource:"{\n name: 'MessageInput With Voice Message',\n args: {\n ...MessageInputDefault.args,\n enableVoice: true\n }\n}",...MessageInputWithVoiceMessage.parameters?.docs?.source}}},MessageInputWithPreview.parameters={...MessageInputWithPreview.parameters,docs:{...MessageInputWithPreview.parameters?.docs,source:{originalSource:"{\n name: 'MessageInput With Preview',\n args: {\n ...MessageInputDefault.args,\n previewMessage: <ReplyMessagePreview messages={[Stubs.initializeMessagesWithMockData()[0]]} userNameSentMessage=\"\" onClose={() => {\n console.log('closed');\n }} />\n }\n}",...MessageInputWithPreview.parameters?.docs?.source}}},MessageInputLoadingState.parameters={...MessageInputLoadingState.parameters,docs:{...MessageInputLoadingState.parameters?.docs,source:{originalSource:"{\n name: 'MessageInput Loading State',\n args: {\n ...MessageInputDefault.args,\n loading: true\n }\n}",...MessageInputLoadingState.parameters?.docs?.source}}};let __namedExportsOrder=["MessageInputDefault","MessageInputWithVoiceMessage","MessageInputWithPreview","MessageInputLoadingState"]},"./src/Presentation/ui-components/Loader/Loader.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>Loader_Loader});var classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function Loader_Loader(_ref){let{className,size="md"}=_ref;return(0,jsx_runtime.jsx)(icons.t$,{className:classnames_default()("loader",size&&"loader--".concat(size),className)})}try{Loader_Loader.displayName="Loader",Loader_Loader.__docgenInfo={description:"",displayName:"Loader",props:{size:{defaultValue:{value:"md"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Loader/Loader.tsx#Loader"]={docgenInfo:Loader_Loader.__docgenInfo,name:"Loader",path:"src/Presentation/ui-components/Loader/Loader.tsx#Loader"})}catch(__react_docgen_typescript_loader_error){}},"./node_modules/quickblox sync recursive":module=>{function webpackEmptyContext(req){var e=Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/quickblox sync recursive",module.exports=webpackEmptyContext}}]);
@@ -1,10 +0,0 @@
1
- "use strict";(self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[658],{"./src/Presentation/ui-components/MessageSeparator/MessageSeparator.stories.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{MessageSeparatorDate:()=>MessageSeparatorDate,MessageSeparatorSystem:()=>MessageSeparatorSystem,__namedExportsOrder:()=>__namedExportsOrder,default:()=>MessageSeparator_stories});var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");let parseDate=inputDate=>{let date=new Date(inputDate),currentDate=new Date,weekday=date.toLocaleString("default",{weekday:"short"});if(currentDate.toDateString()===date.toDateString())return"Today, ".concat(weekday);if(currentDate.getDate()-date.getDate()==1)return"Yesterday, ".concat(weekday);let day=date.getDate(),month=date.toLocaleString("default",{month:"short"});return"".concat(month," ").concat(day,", ").concat(weekday)};function MessageSeparator_MessageSeparator(_ref){let{text,type="date"}=_ref;return"date"===type?(0,jsx_runtime.jsx)("div",{className:"system-date-banner-chat-banner",children:parseDate(text)}):(0,jsx_runtime.jsx)("div",{className:"system-message-chat-banner",children:text})}try{MessageSeparator_MessageSeparator.displayName="MessageSeparator",MessageSeparator_MessageSeparator.__docgenInfo={description:"",displayName:"MessageSeparator",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},type:{defaultValue:{value:"date"},description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'"date"'},{value:'"system"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/MessageSeparator/MessageSeparator.tsx#MessageSeparator"]={docgenInfo:MessageSeparator_MessageSeparator.__docgenInfo,name:"MessageSeparator",path:"src/Presentation/ui-components/MessageSeparator/MessageSeparator.tsx#MessageSeparator"})}catch(__react_docgen_typescript_loader_error){}let MessageSeparator_stories={title:"@quickblox-react-ui-kit/Presentation/ui-components/MessageSeparator",component:MessageSeparator_MessageSeparator,tags:["autodocs"],parameters:{layout:"centered"},args:{text:"",type:"date"},argTypes:{text:{table:{defaultValue:{summary:""}},description:"Text content"},type:{description:"type content",type:"function",options:["none","date","system"],control:{type:"select"},table:{defaultValue:{summary:"'date'"},type:{summary:"string"}}}}},MessageSeparatorDate={name:"MessageSeparator Date",args:{text:"2024-01-26T00:00:00.000Z",type:"date"}},MessageSeparatorSystem={name:"MessageSeparator System",args:{text:"User created chat",type:"system"}};MessageSeparatorDate.parameters={...MessageSeparatorDate.parameters,docs:{...MessageSeparatorDate.parameters?.docs,source:{originalSource:"{\n name: 'MessageSeparator Date',\n args: {\n text: '2024-01-26T00:00:00.000Z',\n type: 'date'\n }\n}",...MessageSeparatorDate.parameters?.docs?.source}}},MessageSeparatorSystem.parameters={...MessageSeparatorSystem.parameters,docs:{...MessageSeparatorSystem.parameters?.docs,source:{originalSource:"{\n name: 'MessageSeparator System',\n args: {\n text: 'User created chat',\n type: 'system'\n }\n}",...MessageSeparatorSystem.parameters?.docs?.source}}};let __namedExportsOrder=["MessageSeparatorDate","MessageSeparatorSystem"]},"./node_modules/react/cjs/react-jsx-runtime.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var f=__webpack_require__("./node_modules/react/index.js"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function q(c,a,g){var b,d={},e=null,h=null;for(b in void 0!==g&&(e=""+g),void 0!==a.key&&(e=""+a.key),void 0!==a.ref&&(h=a.ref),a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l,exports.jsx=q,exports.jsxs=q},"./node_modules/react/jsx-runtime.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/react/cjs/react-jsx-runtime.production.min.js")}}]);
10
- //# sourceMappingURL=Presentation-ui-components-MessageSeparator-MessageSeparator-stories.a7d43c0b.iframe.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Presentation-ui-components-MessageSeparator-MessageSeparator-stories.a7d43c0b.iframe.bundle.js","mappings":";;;;;;;;AAQA","sources":["webpack://quickblox-react-ui-kit/./node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":[],"sourceRoot":""}
@@ -1,14 +0,0 @@
1
- (self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[874],{"./src/Presentation/ui-components/Placeholder/Placeholder.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{PlaceholderDefault:()=>PlaceholderDefault,PlaceholderError:()=>PlaceholderError,__namedExportsOrder:()=>__namedExportsOrder,default:()=>Placeholder_stories});var classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function Placeholder_Placeholder(_ref){let{icon,text,onRetry,className}=_ref,renderText=(content,index)=>(0,jsx_runtime.jsx)("span",{className:"placeholder__text",children:content},index);return(0,jsx_runtime.jsxs)("div",{className:classnames_default()("placeholder",className),children:[icon&&(0,jsx_runtime.jsx)("div",{className:"placeholder__icon",children:icon}),Array.isArray(text)?text.map(renderText):renderText(text),onRetry&&(0,jsx_runtime.jsxs)("div",{className:"placeholder__retry",children:[(0,jsx_runtime.jsx)(icons.Sv,{className:"placeholder__retry-icon",onClick:onRetry}),"Retry"]})]})}try{Placeholder_Placeholder.displayName="Placeholder",Placeholder_Placeholder.__docgenInfo={description:"",displayName:"Placeholder",props:{icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"ReactElement<any, string | JSXElementConstructor<any>>"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string | string[]"}},onRetry:{defaultValue:null,description:"",name:"onRetry",required:!1,type:{name:"VoidFunction"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Placeholder/Placeholder.tsx#Placeholder"]={docgenInfo:Placeholder_Placeholder.__docgenInfo,name:"Placeholder",path:"src/Presentation/ui-components/Placeholder/Placeholder.tsx#Placeholder"})}catch(__react_docgen_typescript_loader_error){}let Placeholder_stories={title:"@quickblox-react-ui-kit/Presentation/ui-components/Placeholder",component:Placeholder_Placeholder,tags:["autodocs"],parameters:{layout:"centered"},args:{text:["Text for placeholder"],className:"",onRetry:void 0,icon:void 0},argTypes:{icon:{options:["Public","Message","Members","Muted","Banned","Search","Error"],control:"select",mapping:{Public:(0,jsx_runtime.jsx)(icons.UZ,{}),Message:(0,jsx_runtime.jsx)(icons.OR,{}),Members:(0,jsx_runtime.jsx)(icons.Av,{}),Muted:(0,jsx_runtime.jsx)(icons.vg,{}),Banned:(0,jsx_runtime.jsx)(icons.GT,{}),Search:(0,jsx_runtime.jsx)(icons.K1,{}),Error:(0,jsx_runtime.jsx)(icons.iZ,{})},table:{type:{summary:"svg"}},description:"Format plug svg"},onRetry:{table:{type:{summary:"function"}},description:"Action on re-try"},text:{defaultValue:{summary:[""]},table:{type:{summary:"array"}},description:"Placeholder text"},className:{table:{type:{summary:"string"}},description:"Additional classes"}}},PlaceholderDefault={args:{icon:(0,jsx_runtime.jsx)(icons.UZ,{})}},PlaceholderError={args:{icon:(0,jsx_runtime.jsx)(icons.iZ,{}),onRetry:()=>void 0}};PlaceholderDefault.parameters={...PlaceholderDefault.parameters,docs:{...PlaceholderDefault.parameters?.docs,source:{originalSource:"{\n args: {\n icon: <PublicChannelSvg />\n }\n}",...PlaceholderDefault.parameters?.docs?.source}}},PlaceholderError.parameters={...PlaceholderError.parameters,docs:{...PlaceholderError.parameters?.docs,source:{originalSource:"{\n args: {\n icon: <ErrorSvg />,\n onRetry: () => undefined\n }\n}",...PlaceholderError.parameters?.docs?.source}}};let __namedExportsOrder=["PlaceholderDefault","PlaceholderError"]},"./node_modules/classnames/index.js":(module,exports)=>{var __WEBPACK_AMD_DEFINE_RESULT__;/*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */!function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(arg){var argType=typeof arg;if("string"===argType||"number"===argType)classes.push(arg);else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}}else if("object"===argType){if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]")){classes.push(arg.toString());continue}for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key)}}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=(function(){return classNames}).apply(exports,[]))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}()},"./node_modules/react/cjs/react-jsx-runtime.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";/**
6
- * @license React
7
- * react-jsx-runtime.production.min.js
8
- *
9
- * Copyright (c) Facebook, Inc. and its affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */var f=__webpack_require__("./node_modules/react/index.js"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function q(c,a,g){var b,d={},e=null,h=null;for(b in void 0!==g&&(e=""+g),void 0!==a.key&&(e=""+a.key),void 0!==a.ref&&(h=a.ref),a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l,exports.jsx=q,exports.jsxs=q},"./node_modules/react/jsx-runtime.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__("./node_modules/react/cjs/react-jsx-runtime.production.min.js")}}]);
14
- //# sourceMappingURL=Presentation-ui-components-Placeholder-Placeholder-stories.97287936.iframe.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Presentation-ui-components-Placeholder-Placeholder-stories.97287936.iframe.bundle.js","mappings":";;;;AAIA;;;;;;;;ACIA","sources":["webpack://quickblox-react-ui-kit/./node_modules/classnames/index.js","webpack://quickblox-react-ui-kit/./node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":[],"sourceRoot":""}
@@ -1,14 +0,0 @@
1
- (self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[594],{"./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.stories.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{PreviewFileMessageAudio:()=>PreviewFileMessageAudio,PreviewFileMessageDefault:()=>PreviewFileMessageDefault,PreviewFileMessageImage:()=>PreviewFileMessageImage,PreviewFileMessageVideo:()=>PreviewFileMessageVideo,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});let __WEBPACK_DEFAULT_EXPORT__={title:"@quickblox-react-ui-kit/Presentation/ui-components/PreviewFileMessage",tags:["autodocs"],component:__webpack_require__("./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx").Z,parameters:{layout:"centered"},argTypes:{type:{options:["document","audio","video"],control:{type:"select"},table:{defaultValue:{summary:"document"},type:{summary:"string"}},description:"File type"},name:{table:{type:{summary:"string"}},description:"Name of the file"},className:{table:{type:{summary:"string"}},description:"Additional classes"},src:{table:{type:{summary:"string"}},description:"Source file"}}},PreviewFileMessageDefault={name:"PreviewFileMessage Default",args:{name:"text document.txt"}},PreviewFileMessageAudio={name:"PreviewFileMessage Audio",args:{type:"audio",name:"audio.mp3"}},PreviewFileMessageVideo={name:"PreviewFileMessage Video",args:{type:"video",name:"video.mp4"}},PreviewFileMessageImage={name:"PreviewFileMessage Image",args:{src:"https://quickblox.com/wp-content/themes/QuickbloxTheme2021/img/chat-messaging.svg",name:"screenshot.jpg"}};PreviewFileMessageDefault.parameters={...PreviewFileMessageDefault.parameters,docs:{...PreviewFileMessageDefault.parameters?.docs,source:{originalSource:"{\n name: 'PreviewFileMessage Default',\n args: {\n name: 'text document.txt'\n }\n}",...PreviewFileMessageDefault.parameters?.docs?.source}}},PreviewFileMessageAudio.parameters={...PreviewFileMessageAudio.parameters,docs:{...PreviewFileMessageAudio.parameters?.docs,source:{originalSource:"{\n name: 'PreviewFileMessage Audio',\n args: {\n type: 'audio',\n name: 'audio.mp3'\n }\n}",...PreviewFileMessageAudio.parameters?.docs?.source}}},PreviewFileMessageVideo.parameters={...PreviewFileMessageVideo.parameters,docs:{...PreviewFileMessageVideo.parameters?.docs,source:{originalSource:"{\n name: 'PreviewFileMessage Video',\n args: {\n type: 'video',\n name: 'video.mp4'\n }\n}",...PreviewFileMessageVideo.parameters?.docs?.source}}},PreviewFileMessageImage.parameters={...PreviewFileMessageImage.parameters,docs:{...PreviewFileMessageImage.parameters?.docs,source:{originalSource:"{\n name: 'PreviewFileMessage Image',\n args: {\n src: 'https://quickblox.com/wp-content/themes/QuickbloxTheme2021/img/chat-messaging.svg',\n name: 'screenshot.jpg'\n }\n}",...PreviewFileMessageImage.parameters?.docs?.source}}};let __namedExportsOrder=["PreviewFileMessageDefault","PreviewFileMessageAudio","PreviewFileMessageVideo","PreviewFileMessageImage"]},"./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>PreviewFileMessage_PreviewFileMessage});var classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");let iconDictionary={document:icons.K,audio:icons.rR,video:icons.Hd};function PreviewFileMessage_PreviewFileMessage(_ref){let{type="document",name,src,className}=_ref,Icon=iconDictionary[type];return(0,jsx_runtime.jsxs)("div",{className:classnames_default()("preview-file-message",className),children:[src?(0,jsx_runtime.jsx)("img",{src:src,alt:"",className:"preview-file-message__image"}):(0,jsx_runtime.jsx)("span",{className:"preview-file-message__image",children:(0,jsx_runtime.jsx)(Icon,{className:"preview-file-message__icon"})}),(0,jsx_runtime.jsx)("span",{className:"preview-file-message__name",children:name})]})}try{PreviewFileMessage_PreviewFileMessage.displayName="PreviewFileMessage",PreviewFileMessage_PreviewFileMessage.__docgenInfo={description:"",displayName:"PreviewFileMessage",props:{type:{defaultValue:{value:"document"},description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'"document"'},{value:'"audio"'},{value:'"video"'}]}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx#PreviewFileMessage"]={docgenInfo:PreviewFileMessage_PreviewFileMessage.__docgenInfo,name:"PreviewFileMessage",path:"src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx#PreviewFileMessage"})}catch(__react_docgen_typescript_loader_error){}},"./node_modules/classnames/index.js":(module,exports)=>{var __WEBPACK_AMD_DEFINE_RESULT__;/*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */!function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(arg){var argType=typeof arg;if("string"===argType||"number"===argType)classes.push(arg);else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}}else if("object"===argType){if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]")){classes.push(arg.toString());continue}for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key)}}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=(function(){return classNames}).apply(exports,[]))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}()},"./node_modules/react/cjs/react-jsx-runtime.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";/**
6
- * @license React
7
- * react-jsx-runtime.production.min.js
8
- *
9
- * Copyright (c) Facebook, Inc. and its affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */var f=__webpack_require__("./node_modules/react/index.js"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function q(c,a,g){var b,d={},e=null,h=null;for(b in void 0!==g&&(e=""+g),void 0!==a.key&&(e=""+a.key),void 0!==a.ref&&(h=a.ref),a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l,exports.jsx=q,exports.jsxs=q},"./node_modules/react/jsx-runtime.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__("./node_modules/react/cjs/react-jsx-runtime.production.min.js")}}]);
14
- //# sourceMappingURL=Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.a9f5cd67.iframe.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.a9f5cd67.iframe.bundle.js","mappings":";;;;AAIA;;;;;;;;ACIA","sources":["webpack://quickblox-react-ui-kit/./node_modules/classnames/index.js","webpack://quickblox-react-ui-kit/./node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":[],"sourceRoot":""}
@@ -1,14 +0,0 @@
1
- (self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[231],{"./src/Presentation/ui-components/SettingsItem/SettingsItem.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SettingsItemDefault:()=>SettingsItemDefault,SettingsItemMembers:()=>SettingsItemMembers,SettingsItemNotification:()=>SettingsItemNotification,__namedExportsOrder:()=>__namedExportsOrder,default:()=>SettingsItem_stories});var react=__webpack_require__("./node_modules/react/index.js"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function SettingsItem_SettingsItem(_ref){let{icon,title,rightSection,children,className,onClick}=_ref,[isShow,setIsShow]=(0,react.useState)(!1);return(0,jsx_runtime.jsxs)("div",{onClick:onClick,className:classnames_default()("settings-item",className),children:[(0,jsx_runtime.jsxs)("div",{className:"settings-item__body",children:[(0,jsx_runtime.jsxs)("div",{className:"settings-item__left-section",children:[(0,jsx_runtime.jsx)("span",{className:"settings-item__icon",children:icon}),(0,jsx_runtime.jsx)("span",{className:"settings-item__title",children:title})]}),(0,jsx_runtime.jsxs)("div",{className:"settings-item__right-section",children:[rightSection,children&&(0,jsx_runtime.jsx)(icons.PB,{className:classnames_default()("settings-item__arrow",{"settings-item__arrow--opened":isShow}),onClick:()=>setIsShow(!isShow)})]})]}),children&&(0,jsx_runtime.jsx)("div",{className:classnames_default()("settings-item__children",{"settings-item__children--opened":isShow}),children:children})]})}try{SettingsItem_SettingsItem.displayName="SettingsItem",SettingsItem_SettingsItem.__docgenInfo={description:"",displayName:"SettingsItem",props:{icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:"ReactElement<any, string | JSXElementConstructor<any>>"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},rightSection:{defaultValue:null,description:"",name:"rightSection",required:!1,type:{name:"ReactElement<any, string | JSXElementConstructor<any>> | ReactElement<any, string | JSXElementConstructor<any>>[]"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"VoidFunction"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/SettingsItem/SettingsItem.tsx#SettingsItem"]={docgenInfo:SettingsItem_SettingsItem.__docgenInfo,name:"SettingsItem",path:"src/Presentation/ui-components/SettingsItem/SettingsItem.tsx#SettingsItem"})}catch(__react_docgen_typescript_loader_error){}var Badge=__webpack_require__("./src/Presentation/ui-components/Badge/Badge.tsx"),Avatar=__webpack_require__("./src/Presentation/ui-components/Avatar/Avatar.tsx");let SettingsItem_stories={title:"@quickblox-react-ui-kit/Presentation/ui-components/SettingsItem",component:SettingsItem_SettingsItem,tags:["autodocs"],parameters:{layout:"centered"},argTypes:{title:{table:{defaultValue:{summary:""},type:{summary:"string"}},description:"Name Setting item "},className:{table:{defaultValue:{summary:""},type:{summary:"string"}},description:"Additional classes"},icon:{control:!1,table:{defaultValue:{summary:"svg | ReactElement"},type:{summary:"svg | ReactElement"}},description:"Format plug svg or React element "},rightSection:{control:!1,table:{defaultValue:{summary:"ReactElement | ReactElement[]"},type:{summary:"ReactElement | ReactElement[]"}},description:"Elements for the right section"},onClick:{control:!1,table:{defaultValue:{summary:"VoidFunction"},type:{summary:"VoidFunction"}},description:"function onClick for icon"},children:{control:!1,table:{defaultValue:{summary:"ReactElement | ReactElement[]"},type:{summary:"ReactElement | ReactElement[]"}},description:"Elements that will be contained in the additional section"}}},SettingsItemDefault={name:"SettingsItem Default",args:{title:"Search in dialog",icon:(0,jsx_runtime.jsx)(icons.K1,{style:{fill:"#3978FC"}})}},SettingsItemNotification={name:"SettingsItem Notification",args:{title:"Notification",icon:(0,jsx_runtime.jsx)(icons.Dn,{style:{fill:"#3978FC"}}),rightSection:(0,jsx_runtime.jsx)(icons.sZ,{style:{cursor:"pointer"}})}},SettingsItemMembers={name:"SettingsItem Members",args:{title:"Notification",icon:(0,jsx_runtime.jsx)(icons.Av,{style:{fill:"#3978FC"}}),rightSection:(0,jsx_runtime.jsx)(Badge.Z,{count:10,limit:99,mute:!0}),children:(0,jsx_runtime.jsxs)("ul",{style:{listStyle:"none",overflow:"hidden",margin:"0",padding:"0"},children:[(0,jsx_runtime.jsxs)("li",{style:{display:"flex",alignItems:"center",padding:"8px 16px",gap:"16px"},children:[(0,jsx_runtime.jsx)(Avatar.Z,{size:"sm"})," Name"]}),(0,jsx_runtime.jsxs)("li",{style:{display:"flex",alignItems:"center",padding:"8px 16px",gap:"16px"},children:[(0,jsx_runtime.jsx)(Avatar.Z,{size:"sm"})," Name"]}),(0,jsx_runtime.jsxs)("li",{style:{display:"flex",alignItems:"center",padding:"8px 16px",gap:"16px"},children:[(0,jsx_runtime.jsx)(Avatar.Z,{size:"sm"})," Name"]}),(0,jsx_runtime.jsxs)("li",{style:{display:"flex",alignItems:"center",padding:"8px 16px",gap:"16px"},children:[(0,jsx_runtime.jsx)(Avatar.Z,{size:"sm"})," Name"]})]})}};SettingsItemDefault.parameters={...SettingsItemDefault.parameters,docs:{...SettingsItemDefault.parameters?.docs,source:{originalSource:"{\n name: 'SettingsItem Default',\n args: {\n title: 'Search in dialog',\n icon: <SearchSvg style={{\n fill: '#3978FC'\n }} />\n }\n}",...SettingsItemDefault.parameters?.docs?.source}}},SettingsItemNotification.parameters={...SettingsItemNotification.parameters,docs:{...SettingsItemNotification.parameters?.docs,source:{originalSource:"{\n name: 'SettingsItem Notification',\n args: {\n title: 'Notification',\n icon: <NotificationsSvg style={{\n fill: '#3978FC'\n }} />,\n rightSection: <CloseSvg style={{\n cursor: 'pointer'\n }} />\n }\n}",...SettingsItemNotification.parameters?.docs?.source}}},SettingsItemMembers.parameters={...SettingsItemMembers.parameters,docs:{...SettingsItemMembers.parameters?.docs,source:{originalSource:"{\n name: 'SettingsItem Members',\n args: {\n title: 'Notification',\n icon: <GroupChatSvg style={{\n fill: '#3978FC'\n }} />,\n rightSection: <Badge count={10} limit={99} mute />,\n children: <ul style={{\n listStyle: 'none',\n overflow: 'hidden',\n margin: '0',\n padding: '0'\n }}>\n <li style={{\n display: 'flex',\n alignItems: 'center',\n padding: '8px 16px',\n gap: '16px'\n }}>\n <Avatar size=\"sm\" /> Name\n </li>\n <li style={{\n display: 'flex',\n alignItems: 'center',\n padding: '8px 16px',\n gap: '16px'\n }}>\n <Avatar size=\"sm\" /> Name\n </li>\n <li style={{\n display: 'flex',\n alignItems: 'center',\n padding: '8px 16px',\n gap: '16px'\n }}>\n <Avatar size=\"sm\" /> Name\n </li>\n <li style={{\n display: 'flex',\n alignItems: 'center',\n padding: '8px 16px',\n gap: '16px'\n }}>\n <Avatar size=\"sm\" /> Name\n </li>\n </ul>\n }\n}",...SettingsItemMembers.parameters?.docs?.source}}};let __namedExportsOrder=["SettingsItemDefault","SettingsItemNotification","SettingsItemMembers"]},"./src/Presentation/ui-components/Avatar/Avatar.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>Avatar_Avatar});var classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function Avatar_Avatar(_ref){let{icon=(0,jsx_runtime.jsx)(icons.vw,{}),size="md",className,src}=_ref;return src?(0,jsx_runtime.jsx)("div",{className:classnames_default()("avatar","avatar--".concat(size),className),children:(0,jsx_runtime.jsx)("img",{src:src,className:"avatar__image",alt:"Avatar"})}):(0,jsx_runtime.jsx)("div",{className:classnames_default()("avatar","avatar--".concat(size),className),children:icon})}try{Avatar_Avatar.displayName="Avatar",Avatar_Avatar.__docgenInfo={description:"",displayName:"Avatar",props:{size:{defaultValue:{value:"md"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},icon:{defaultValue:{value:"<UserSvg />"},description:"",name:"icon",required:!1,type:{name:"ReactElement<any, string | JSXElementConstructor<any>>"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Avatar/Avatar.tsx#Avatar"]={docgenInfo:Avatar_Avatar.__docgenInfo,name:"Avatar",path:"src/Presentation/ui-components/Avatar/Avatar.tsx#Avatar"})}catch(__react_docgen_typescript_loader_error){}},"./src/Presentation/ui-components/Badge/Badge.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>Badge_Badge});var classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function Badge_Badge(_ref){let{count,limit,mute=!1,classNames}=_ref;return(0,jsx_runtime.jsx)("div",{className:classnames_default()("badge",{"badge--mute":mute},classNames),children:limit&&count>limit?"".concat(limit,"+"):count})}try{Badge_Badge.displayName="Badge",Badge_Badge.__docgenInfo={description:"",displayName:"Badge",props:{count:{defaultValue:null,description:"",name:"count",required:!0,type:{name:"number"}},limit:{defaultValue:null,description:"",name:"limit",required:!1,type:{name:"number"}},mute:{defaultValue:{value:"false"},description:"",name:"mute",required:!1,type:{name:"boolean"}},classNames:{defaultValue:null,description:"",name:"classNames",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/Presentation/ui-components/Badge/Badge.tsx#Badge"]={docgenInfo:Badge_Badge.__docgenInfo,name:"Badge",path:"src/Presentation/ui-components/Badge/Badge.tsx#Badge"})}catch(__react_docgen_typescript_loader_error){}},"./node_modules/classnames/index.js":(module,exports)=>{var __WEBPACK_AMD_DEFINE_RESULT__;/*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */!function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(arg){var argType=typeof arg;if("string"===argType||"number"===argType)classes.push(arg);else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}}else if("object"===argType){if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]")){classes.push(arg.toString());continue}for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key)}}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=(function(){return classNames}).apply(exports,[]))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}()},"./node_modules/react/cjs/react-jsx-runtime.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";/**
6
- * @license React
7
- * react-jsx-runtime.production.min.js
8
- *
9
- * Copyright (c) Facebook, Inc. and its affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */var f=__webpack_require__("./node_modules/react/index.js"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function q(c,a,g){var b,d={},e=null,h=null;for(b in void 0!==g&&(e=""+g),void 0!==a.key&&(e=""+a.key),void 0!==a.ref&&(h=a.ref),a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l,exports.jsx=q,exports.jsxs=q},"./node_modules/react/jsx-runtime.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__("./node_modules/react/cjs/react-jsx-runtime.production.min.js")}}]);
14
- //# sourceMappingURL=Presentation-ui-components-SettingsItem-SettingsItem-stories.429a72d5.iframe.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Presentation-ui-components-SettingsItem-SettingsItem-stories.429a72d5.iframe.bundle.js","mappings":";;;;AAIA;;;;;;;;ACIA","sources":["webpack://quickblox-react-ui-kit/./node_modules/classnames/index.js","webpack://quickblox-react-ui-kit/./node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":[],"sourceRoot":""}