@selfcommunity/react-ui 0.11.0-mui7.22 → 0.11.0-mui7.23

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 (190) hide show
  1. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +2 -2
  2. package/lib/cjs/components/AccountDelete/AccountDelete.js +3 -3
  3. package/lib/cjs/components/AccountRecover/AccountRecover.js +2 -4
  4. package/lib/cjs/components/BroadcastMessages/Message.js +1 -1
  5. package/lib/cjs/components/Categories/prefetchedCategories.js +115 -115
  6. package/lib/cjs/components/ChangeCover/ChangeCover.js +2 -6
  7. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +4 -8
  8. package/lib/cjs/components/CheckoutReturnDialog/CheckoutReturnDialog.js +5 -5
  9. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +1 -1
  10. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +9 -3
  11. package/lib/cjs/components/ConsentSolution/Skeleton.js +1 -1
  12. package/lib/cjs/components/CourseCompletedDialog/CourseCompletedDialog.js +1 -1
  13. package/lib/cjs/components/CourseForm/Edit.js +6 -2
  14. package/lib/cjs/components/Courses/Courses.js +1 -1
  15. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +1 -1
  16. package/lib/cjs/components/CustomAdv/Skeleton.js +1 -1
  17. package/lib/cjs/components/EditCourse/Status.js +1 -1
  18. package/lib/cjs/components/EventForm/EventForm.js +2 -2
  19. package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -1
  20. package/lib/cjs/components/Events/LocationEventsFilter.js +1 -1
  21. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +2 -2
  22. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +1 -1
  23. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -1
  24. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  25. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -1
  26. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -1
  27. package/lib/cjs/components/GroupForm/GroupForm.js +7 -7
  28. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +5 -15
  29. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +1 -1
  30. package/lib/cjs/components/Incubator/Incubator.js +2 -2
  31. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -2
  32. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
  33. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +5 -5
  34. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  35. package/lib/cjs/components/LessonCommentObjects/LessonCommentObjects.js +1 -1
  36. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +1 -1
  37. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +10 -8
  38. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -3
  39. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +1 -1
  40. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +1 -1
  41. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  42. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  43. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +3 -1
  44. package/lib/cjs/components/Notification/Comment/Comment.js +3 -3
  45. package/lib/cjs/components/Notification/Contribution/Contribution.js +1 -1
  46. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  47. package/lib/cjs/components/Notification/Course/Course.js +4 -4
  48. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +4 -2
  49. package/lib/cjs/components/Notification/Event/Event.js +4 -4
  50. package/lib/cjs/components/Notification/Group/Group.js +2 -2
  51. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  52. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +3 -1
  53. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +5 -3
  54. package/lib/cjs/components/Notification/LiveStream/LiveStream.js +3 -3
  55. package/lib/cjs/components/Notification/Mention/Mention.js +2 -2
  56. package/lib/cjs/components/Notification/Notification.js +5 -5
  57. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +3 -3
  58. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  59. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +6 -2
  60. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +6 -2
  61. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -2
  62. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -2
  63. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +10 -7
  64. package/lib/cjs/components/OnBoardingWidget/Skeleton.js +1 -1
  65. package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +9 -25
  66. package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +3 -9
  67. package/lib/cjs/components/PaymentOrder/PaymentOrder.js +1 -1
  68. package/lib/cjs/components/PaymentOrders/PaymentOrders.js +1 -1
  69. package/lib/cjs/components/PaywallsDialog/PaywallsDialog.js +1 -1
  70. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +1 -1
  71. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +2 -2
  72. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +1 -1
  73. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +1 -1
  74. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +1 -1
  75. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +5 -5
  76. package/lib/cjs/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.js +3 -3
  77. package/lib/cjs/components/UserAutocomplete/UserAutocomplete.js +1 -1
  78. package/lib/cjs/components/UserBillingInfo/UserBillingInfo.js +1 -1
  79. package/lib/cjs/components/UserChangeAddressDialog/UserChangeAddressDialog.js +1 -1
  80. package/lib/cjs/components/UserCounters/UserCounters.js +5 -13
  81. package/lib/cjs/components/UserInfo/UserInfo.js +1 -1
  82. package/lib/cjs/components/UserPaymentMethods/UserPaymentMethods.js +6 -7
  83. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +1 -1
  84. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +1 -1
  85. package/lib/cjs/shared/ContributionActionsMenu/index.js +3 -9
  86. package/lib/cjs/shared/DateTimeAgo/index.js +1 -1
  87. package/lib/cjs/shared/EmojiPicker/EmojiPicker.d.ts +1 -2
  88. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +1 -1
  89. package/lib/cjs/shared/LessonCommentActionsMenu/index.js +2 -8
  90. package/lib/cjs/shared/Lightbox/BaseLightbox.js +1 -1
  91. package/lib/cjs/shared/MessageChunkUploader/index.js +1 -1
  92. package/lib/cjs/shared/Tags/index.js +1 -1
  93. package/lib/cjs/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +2 -2
  94. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +2 -2
  95. package/lib/esm/components/AccountDelete/AccountDelete.js +3 -3
  96. package/lib/esm/components/AccountRecover/AccountRecover.js +2 -4
  97. package/lib/esm/components/BroadcastMessages/Message.js +1 -1
  98. package/lib/esm/components/Categories/prefetchedCategories.js +115 -115
  99. package/lib/esm/components/ChangeCover/ChangeCover.js +2 -6
  100. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +4 -8
  101. package/lib/esm/components/CheckoutReturnDialog/CheckoutReturnDialog.js +5 -5
  102. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +1 -1
  103. package/lib/esm/components/ConsentSolution/ConsentSolution.js +9 -3
  104. package/lib/esm/components/ConsentSolution/Skeleton.js +1 -1
  105. package/lib/esm/components/CourseCompletedDialog/CourseCompletedDialog.js +1 -1
  106. package/lib/esm/components/CourseForm/Edit.js +6 -2
  107. package/lib/esm/components/Courses/Courses.js +1 -1
  108. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +1 -1
  109. package/lib/esm/components/CustomAdv/Skeleton.js +1 -1
  110. package/lib/esm/components/EditCourse/Status.js +1 -1
  111. package/lib/esm/components/EventForm/EventForm.js +2 -2
  112. package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -1
  113. package/lib/esm/components/Events/LocationEventsFilter.js +1 -1
  114. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +2 -2
  115. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +1 -1
  116. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -1
  117. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  118. package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -1
  119. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -1
  120. package/lib/esm/components/GroupForm/GroupForm.js +7 -7
  121. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +5 -15
  122. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +1 -1
  123. package/lib/esm/components/Incubator/Incubator.js +2 -2
  124. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +2 -2
  125. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
  126. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +5 -5
  127. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  128. package/lib/esm/components/LessonCommentObjects/LessonCommentObjects.js +1 -1
  129. package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +1 -1
  130. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +10 -8
  131. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -3
  132. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +1 -1
  133. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +1 -1
  134. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  135. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  136. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +3 -1
  137. package/lib/esm/components/Notification/Comment/Comment.js +3 -3
  138. package/lib/esm/components/Notification/Contribution/Contribution.js +1 -1
  139. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  140. package/lib/esm/components/Notification/Course/Course.js +4 -4
  141. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +4 -2
  142. package/lib/esm/components/Notification/Event/Event.js +4 -4
  143. package/lib/esm/components/Notification/Group/Group.js +2 -2
  144. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  145. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +3 -1
  146. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +5 -3
  147. package/lib/esm/components/Notification/LiveStream/LiveStream.js +3 -3
  148. package/lib/esm/components/Notification/Mention/Mention.js +2 -2
  149. package/lib/esm/components/Notification/Notification.js +5 -5
  150. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +3 -3
  151. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  152. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +6 -2
  153. package/lib/esm/components/Notification/UserConnection/UserConnection.js +6 -2
  154. package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -2
  155. package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -2
  156. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +11 -8
  157. package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -1
  158. package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +9 -25
  159. package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +3 -9
  160. package/lib/esm/components/PaymentOrder/PaymentOrder.js +1 -1
  161. package/lib/esm/components/PaymentOrders/PaymentOrders.js +1 -1
  162. package/lib/esm/components/PaywallsDialog/PaywallsDialog.js +1 -1
  163. package/lib/esm/components/PlatformWidget/PlatformWidget.js +1 -1
  164. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +2 -2
  165. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -1
  166. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +1 -1
  167. package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -1
  168. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +5 -5
  169. package/lib/esm/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.js +4 -4
  170. package/lib/esm/components/UserAutocomplete/UserAutocomplete.js +1 -1
  171. package/lib/esm/components/UserBillingInfo/UserBillingInfo.js +1 -1
  172. package/lib/esm/components/UserChangeAddressDialog/UserChangeAddressDialog.js +1 -1
  173. package/lib/esm/components/UserCounters/UserCounters.js +5 -13
  174. package/lib/esm/components/UserInfo/UserInfo.js +1 -1
  175. package/lib/esm/components/UserPaymentMethods/UserPaymentMethods.js +8 -9
  176. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +1 -1
  177. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +1 -1
  178. package/lib/esm/shared/ContributionActionsMenu/index.js +3 -9
  179. package/lib/esm/shared/DateTimeAgo/index.js +1 -1
  180. package/lib/esm/shared/EmojiPicker/EmojiPicker.d.ts +1 -2
  181. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +1 -1
  182. package/lib/esm/shared/LessonCommentActionsMenu/index.js +2 -8
  183. package/lib/esm/shared/Lightbox/BaseLightbox.js +1 -1
  184. package/lib/esm/shared/MessageChunkUploader/index.js +1 -1
  185. package/lib/esm/shared/Tags/index.js +1 -1
  186. package/lib/esm/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +2 -2
  187. package/lib/umd/484.js +1 -1
  188. package/lib/umd/484.js.LICENSE.txt +1 -1
  189. package/lib/umd/react-ui.js +1 -1
  190. package/package.json +10 -10
@@ -53,7 +53,7 @@ const UserPaymentMethods = (inProps) => {
53
53
  props: inProps,
54
54
  name: constants_1.PREFIX
55
55
  });
56
- const { className = null, showBillingAddress = false } = props, rest = tslib_1.__rest(props, ["className", "showBillingAddress"]);
56
+ const { className = null, showBillingAddress = false } = props;
57
57
  // CONTEXT
58
58
  const scUserContext = (0, react_core_1.useSCUser)();
59
59
  // STATE
@@ -72,7 +72,6 @@ const UserPaymentMethods = (inProps) => {
72
72
  const [addPaymentMethodDialogOpen, setAddPaymentMethodDialogOpen] = (0, react_1.useState)(false);
73
73
  // HOOKS
74
74
  const { isPaymentsEnabled } = (0, react_core_1.useSCPaymentsEnabled)();
75
- const intl = (0, react_intl_1.useIntl)();
76
75
  const { inView } = (0, react_intersection_observer_1.useInView)({ triggerOnce: false });
77
76
  const { enqueueSnackbar } = (0, notistack_1.useSnackbar)();
78
77
  /**
@@ -81,8 +80,8 @@ const UserPaymentMethods = (inProps) => {
81
80
  const loadMore = (0, react_1.useCallback)(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
82
81
  // eslint-disable-next-line @typescript-eslint/require-await
83
82
  const loadItems = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
84
- const startingAfterId = paymentMethods.length ? paymentMethods[paymentMethods.length - 1].id : null;
85
- /* getAccountCustomerPaymentMethod(startingAfterId).then((res) => {
83
+ /* const startingAfterId = paymentMethods.length ? paymentMethods[paymentMethods.length - 1].id : null;
84
+ getAccountCustomerPaymentMethod(startingAfterId).then((res) => {
86
85
  setHasMore(res.paymentMethods.has_more);
87
86
  setPaymentMethods(paymentMethods.concat(res.paymentMethods.data));
88
87
  setIsLoadingPage(false);
@@ -330,9 +329,9 @@ const UserPaymentMethods = (inProps) => {
330
329
  if (!isPaymentsEnabled || !scUserContext.user) {
331
330
  return null;
332
331
  }
333
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, { children: isLoading ? ((0, jsx_runtime_1.jsx)(Skeleton_1.default, {})) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "baseline" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h3", className: classes.headline }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.myPaymentMethods", defaultMessage: "ui.userPaymentMethods.myPaymentMethods" }) })), paymentMethods.length > 0 && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: 'outlined', onClick: handleOpenAddPaymentMethodDialog }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.btnAdd", defaultMessage: "ui.userPaymentMethods.btnAdd" }) })))] })), paymentMethods.length > 0 ? ((0, jsx_runtime_1.jsx)(material_1.TableContainer, Object.assign({ style: { margin: 'auto', borderRadius: 0 }, component: material_1.Paper }, { children: (0, jsx_runtime_1.jsxs)(material_1.Table, Object.assign({ sx: { minWidth: 650 }, "aria-label": "simple table", stickyHeader: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.TableHead, { children: (0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.typeMethod", defaultMessage: "ui.userPaymentMethods.typeMethod" }) }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.brand", defaultMessage: "ui.userPaymentMethods.brand" }) }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.expiration", defaultMessage: "ui.userPaymentMethods.expiration" }) }), showBillingAddress && ((0, jsx_runtime_1.jsx)(material_1.TableCell, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.billingDetails", defaultMessage: "ui.userPaymentMethods.billingDetails" }) })), (0, jsx_runtime_1.jsx)(material_1.TableCell, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.default", defaultMessage: "ui.userPaymentMethods.default" }) }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.actions", defaultMessage: "ui.userPaymentMethods.actions" }) })] }) }), (0, jsx_runtime_1.jsxs)(material_1.TableBody, { children: [paymentMethods.map((method, index) => {
332
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, { children: isLoading ? ((0, jsx_runtime_1.jsx)(Skeleton_1.default, {})) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "baseline" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h3", className: classes.headline }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.myPaymentMethods", defaultMessage: "ui.userPaymentMethods.myPaymentMethods" }) })), paymentMethods.length > 0 && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: "outlined", onClick: handleOpenAddPaymentMethodDialog }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.btnAdd", defaultMessage: "ui.userPaymentMethods.btnAdd" }) })))] })), paymentMethods.length > 0 ? ((0, jsx_runtime_1.jsx)(material_1.TableContainer, Object.assign({ style: { margin: 'auto', borderRadius: 0 }, component: material_1.Paper }, { children: (0, jsx_runtime_1.jsxs)(material_1.Table, Object.assign({ sx: { minWidth: 650 }, "aria-label": "simple table", stickyHeader: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.TableHead, { children: (0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.typeMethod", defaultMessage: "ui.userPaymentMethods.typeMethod" }) }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.brand", defaultMessage: "ui.userPaymentMethods.brand" }) }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.expiration", defaultMessage: "ui.userPaymentMethods.expiration" }) }), showBillingAddress && ((0, jsx_runtime_1.jsx)(material_1.TableCell, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.billingDetails", defaultMessage: "ui.userPaymentMethods.billingDetails" }) })), (0, jsx_runtime_1.jsx)(material_1.TableCell, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.default", defaultMessage: "ui.userPaymentMethods.default" }) }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.actions", defaultMessage: "ui.userPaymentMethods.actions" }) })] }) }), (0, jsx_runtime_1.jsxs)(material_1.TableBody, { children: [paymentMethods.map((method, index) => {
334
333
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
335
- return ((0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ scope: "row" }, { children: method.type.toUpperCase() })), (0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ scope: "row" }, { children: method.type === 'card' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_svg_credit_card_payment_icons_1.PaymentIcon, { type: ((_a = method.card) === null || _a === void 0 ? void 0 : _a.brand) || 'Generic', format: "flatRounded", width: 50 }), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.paymentNumber }, { children: ["**** **** **** ", (_b = method.card) === null || _b === void 0 ? void 0 : _b.last4] }))] })) })), (0, jsx_runtime_1.jsxs)(material_1.TableCell, Object.assign({ scope: "row" }, { children: [(_c = method.card) === null || _c === void 0 ? void 0 : _c.exp_month, "/", (_d = method.card) === null || _d === void 0 ? void 0 : _d.exp_year] })), showBillingAddress && ((0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ scope: "row" }, { children: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "left", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body1' }, { children: method.billing_details.name })), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ variant: 'body1' }, { children: [(_f = (_e = method.billing_details) === null || _e === void 0 ? void 0 : _e.address) === null || _f === void 0 ? void 0 : _f.line1, (0, jsx_runtime_1.jsx)("br", {}), (_h = (_g = method.billing_details) === null || _g === void 0 ? void 0 : _g.address) === null || _h === void 0 ? void 0 : _h.line2] })), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ variant: 'body1' }, { children: [(_k = (_j = method.billing_details) === null || _j === void 0 ? void 0 : _j.address) === null || _k === void 0 ? void 0 : _k.postal_code, " - ", (_m = (_l = method.billing_details) === null || _l === void 0 ? void 0 : _l.address) === null || _m === void 0 ? void 0 : _m.city, " -", ' ', (_p = (_o = method.billing_details) === null || _o === void 0 ? void 0 : _o.address) === null || _p === void 0 ? void 0 : _p.country] }))] }), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ "aria-label": "edit", color: "primary", onClick: () => handleOpenEditAddressDialog(method) }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "edit" }) }))] })) }))), (0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ scope: "row" }, { children: defaultPaymentMethodLoading === method.id ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20 })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [method.id === defaultPaymentMethodId, (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: method.id === defaultPaymentMethodId, onClick: () => handleSetDefaultPaymentMethodId(method.id) })] })) })), (0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ scope: "row" }, { children: (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: 'contained', onClick: () => handleDelete(method.id) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.btnRemove", defaultMessage: "ui.userPaymentMethods.btnRemove" }) })) }))] }, index));
336
- }), hasMore && (0, jsx_runtime_1.jsx)(Skeleton_1.default, {})] })] })) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", mb: 2 }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.noPaymentMethods", defaultMessage: "ui.userPaymentMethods.noPaymentMethods" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: 'contained', onClick: handleOpenAddPaymentMethodDialog }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.btnAdd", defaultMessage: "ui.userPaymentMethods.btnAdd" }) }))] })), openDeleteDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openDeleteDialog, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.dialog.confirmDeleteTitle", defaultMessage: "ui.userPaymentMethods.dialog.confirmDeleteTitle" }), btnConfirm: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.dialog.confirmDeleteDescription", defaultMessage: "ui.userPaymentMethods.dialog.confirmDeleteDescription" }), onConfirm: handleConfirmDelete, onClose: handleConfirmClose, isUpdating: isDeletingPaymentMethod })), editPaymentMethodDialogOpen && editPaymentMethod !== null && ((0, jsx_runtime_1.jsx)(UserChangeAddressDialog_1.default, { open: true, defaultAddress: editPaymentMethod, handleAddress: handleAddress })), addPaymentMethodDialogOpen && (0, jsx_runtime_1.jsx)(UserAddPaymentMethodDialog_1.default, { open: true, handlePaymentMethod: handlePaymentMethodSuccess })] })) })));
334
+ return ((0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ scope: "row" }, { children: method.type.toUpperCase() })), (0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ scope: "row" }, { children: method.type === 'card' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_svg_credit_card_payment_icons_1.PaymentIcon, { type: ((_a = method.card) === null || _a === void 0 ? void 0 : _a.brand) || 'Generic', format: "flatRounded", width: 50 }), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.paymentNumber }, { children: ["**** **** **** ", (_b = method.card) === null || _b === void 0 ? void 0 : _b.last4] }))] })) })), (0, jsx_runtime_1.jsxs)(material_1.TableCell, Object.assign({ scope: "row" }, { children: [(_c = method.card) === null || _c === void 0 ? void 0 : _c.exp_month, "/", (_d = method.card) === null || _d === void 0 ? void 0 : _d.exp_year] })), showBillingAddress && ((0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ scope: "row" }, { children: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "left", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1" }, { children: method.billing_details.name })), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ variant: "body1" }, { children: [(_f = (_e = method.billing_details) === null || _e === void 0 ? void 0 : _e.address) === null || _f === void 0 ? void 0 : _f.line1, (0, jsx_runtime_1.jsx)("br", {}), (_h = (_g = method.billing_details) === null || _g === void 0 ? void 0 : _g.address) === null || _h === void 0 ? void 0 : _h.line2] })), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ variant: "body1" }, { children: [(_k = (_j = method.billing_details) === null || _j === void 0 ? void 0 : _j.address) === null || _k === void 0 ? void 0 : _k.postal_code, " - ", (_m = (_l = method.billing_details) === null || _l === void 0 ? void 0 : _l.address) === null || _m === void 0 ? void 0 : _m.city, " -", ' ', (_p = (_o = method.billing_details) === null || _o === void 0 ? void 0 : _o.address) === null || _p === void 0 ? void 0 : _p.country] }))] }), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ "aria-label": "edit", color: "primary", onClick: () => handleOpenEditAddressDialog(method) }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "edit" }) }))] })) }))), (0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ scope: "row" }, { children: defaultPaymentMethodLoading === method.id ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20 })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [method.id === defaultPaymentMethodId, (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: method.id === defaultPaymentMethodId, onClick: () => handleSetDefaultPaymentMethodId(method.id) })] })) })), (0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ scope: "row" }, { children: (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "contained", onClick: () => handleDelete(method.id) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.btnRemove", defaultMessage: "ui.userPaymentMethods.btnRemove" }) })) }))] }, index));
335
+ }), hasMore && (0, jsx_runtime_1.jsx)(Skeleton_1.default, {})] })] })) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", mb: 2 }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.noPaymentMethods", defaultMessage: "ui.userPaymentMethods.noPaymentMethods" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: "contained", onClick: handleOpenAddPaymentMethodDialog }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.btnAdd", defaultMessage: "ui.userPaymentMethods.btnAdd" }) }))] })), openDeleteDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openDeleteDialog, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.dialog.confirmDeleteTitle", defaultMessage: "ui.userPaymentMethods.dialog.confirmDeleteTitle" }), btnConfirm: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userPaymentMethods.dialog.confirmDeleteDescription", defaultMessage: "ui.userPaymentMethods.dialog.confirmDeleteDescription" }), onConfirm: handleConfirmDelete, onClose: handleConfirmClose, isUpdating: isDeletingPaymentMethod })), editPaymentMethodDialogOpen && editPaymentMethod !== null && ((0, jsx_runtime_1.jsx)(UserChangeAddressDialog_1.default, { open: true, defaultAddress: editPaymentMethod, handleAddress: handleAddress })), addPaymentMethodDialogOpen && (0, jsx_runtime_1.jsx)(UserAddPaymentMethodDialog_1.default, { open: true, handlePaymentMethod: handlePaymentMethodSuccess })] })) })));
337
336
  };
338
337
  exports.default = UserPaymentMethods;
@@ -169,6 +169,6 @@ function AccountCredentials(props) {
169
169
  }, transformOrigin: {
170
170
  vertical: 'center',
171
171
  horizontal: 'right'
172
- }, onClose: handlePopoverClose }, { children: (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { p: '10px' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', sx: { whiteSpace: 'pre-line' } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.newPassword.info", defaultMessage: "ui.userProfileEditAccountCredentials.newPassword.info" }) })) })) })), (0, jsx_runtime_1.jsx)(PasswordTextField_1.default, { name: "confirmPassword", className: classes.formField, disabled: isSubmittingPassword, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.confirmPassword", defaultMessage: "ui.userProfileEditAccountCredentials.confirmPassword" }), size: "medium", value: field.confirmPassword, onChange: handleChange, onBlur: validateInput, error: Boolean(error.confirmPassword), helperText: error.confirmPassword })] })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.confirmChangeButton, loading: isSubmittingPassword, disabled: !field.confirmPassword || Boolean(error.confirmPassword) || Boolean(error.password) || Boolean(error.newPassword), variant: "contained", onClick: handleSubmitPassword }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.changePassword", defaultMessage: "ui.userProfileEditAccountCredentials.changePassword" }) }))] })))] })));
172
+ }, onClose: handlePopoverClose }, { children: (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { p: '10px' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span", sx: { whiteSpace: 'pre-line' } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.newPassword.info", defaultMessage: "ui.userProfileEditAccountCredentials.newPassword.info" }) })) })) })), (0, jsx_runtime_1.jsx)(PasswordTextField_1.default, { name: "confirmPassword", className: classes.formField, disabled: isSubmittingPassword, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.confirmPassword", defaultMessage: "ui.userProfileEditAccountCredentials.confirmPassword" }), size: "medium", value: field.confirmPassword, onChange: handleChange, onBlur: validateInput, error: Boolean(error.confirmPassword), helperText: error.confirmPassword })] })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.confirmChangeButton, loading: isSubmittingPassword, disabled: !field.confirmPassword || Boolean(error.confirmPassword) || Boolean(error.password) || Boolean(error.newPassword), variant: "contained", onClick: handleSubmitPassword }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.changePassword", defaultMessage: "ui.userProfileEditAccountCredentials.changePassword" }) }))] })))] })));
173
173
  }
174
174
  exports.default = AccountCredentials;
@@ -232,6 +232,6 @@ function PublicInfo(props) {
232
232
  }
233
233
  return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [startActions, _fields.map((field) => {
234
234
  return renderField(field);
235
- }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.btnSave, fullWidth: true, variant: "contained", color: "secondary", onClick: handleSave, loading: saving.length > 0, disabled: saving.length > 0 || !editing.length || Object.keys(error).length > 0 }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.userInfo.button.save', defaultMessage: 'ui.userInfo.button.save' }) })), endActions] })));
235
+ }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.btnSave, fullWidth: true, variant: "contained", color: "secondary", onClick: handleSave, loading: saving.length > 0, disabled: saving.length > 0 || !editing.length || Object.keys(error).length > 0 }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userInfo.button.save", defaultMessage: "ui.userInfo.button.save" }) })), endActions] })));
236
236
  }
237
237
  exports.default = PublicInfo;
@@ -728,7 +728,7 @@ function ContributionActionsMenu(props) {
728
728
  */
729
729
  function renderFlagContributionSection() {
730
730
  const open = openSection === ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION;
731
- return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: !contributionObj.deleted && !contributionObj.collapsed && ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging, onClick: () => handleOpenSection(ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: flagType !== undefined && flagType !== null ? ((0, jsx_runtime_1.jsx)(material_1.Badge, Object.assign({ classes: { badge: classes.sectionBadge }, badgeContent: (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ className: classes.sectionWithSelectionIcon }, { children: "check" })), color: "primary" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) }))) : ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" })) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.flagContributionWithMotivation", defaultMessage: "ui.contributionActionMenu.flagContributionWithMotivation" }) }), open ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_less" }) : (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_more" })] })), (0, jsx_runtime_1.jsxs)(material_1.Collapse, Object.assign({ in: open, timeout: "auto", unmountOnExit: true }, { children: [renderReports(ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'caption', component: "div", className: classes.footerSubItems }, { children: intl.formatMessage(messages.footer) }))] }))] })) }));
731
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: !contributionObj.deleted && !contributionObj.collapsed && ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging, onClick: () => handleOpenSection(ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: flagType !== undefined && flagType !== null ? ((0, jsx_runtime_1.jsx)(material_1.Badge, Object.assign({ classes: { badge: classes.sectionBadge }, badgeContent: (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ className: classes.sectionWithSelectionIcon }, { children: "check" })), color: "primary" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) }))) : ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" })) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.flagContributionWithMotivation", defaultMessage: "ui.contributionActionMenu.flagContributionWithMotivation" }) }), open ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_less" }) : (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_more" })] })), (0, jsx_runtime_1.jsxs)(material_1.Collapse, Object.assign({ in: open, timeout: "auto", unmountOnExit: true }, { children: [renderReports(ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "caption", component: "div", className: classes.footerSubItems }, { children: intl.formatMessage(messages.footer) }))] }))] })) }));
732
732
  }
733
733
  /**
734
734
  * Renders section hide actions
@@ -808,15 +808,9 @@ function ContributionActionsMenu(props) {
808
808
  /**
809
809
  * Renders component
810
810
  */
811
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton
812
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
813
- // @ts-ignore
814
- , Object.assign({
815
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
816
- // @ts-ignore
817
- ref: (ref) => {
811
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ ref: (ref) => {
818
812
  popperRef.current = ref;
819
- }, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small" }, { children: contributionObj && (contributionObj.collapsed || contributionObj.deleted) ? ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: classes.visibilityIcons }, { children: [contributionObj.collapsed ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "visibility_off" }) : (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete" }), (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_more" })] }))) : ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "more_vert" })) })), open && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isMobile ? ((0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, Object.assign({ open: true, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, { children: renderContent() }))) : ((0, jsx_runtime_1.jsx)(PopperRoot, Object.assign({ open: true, anchorEl: popperRef.current, role: undefined, transition: true, className: classes.popperRoot }, PopperProps, { placement: "bottom-end" }, { children: ({ TransitionProps, placement }) => ((0, jsx_runtime_1.jsx)(material_1.Grow, Object.assign({}, TransitionProps, { style: { transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ variant: 'outlined', className: classes.paper }, { children: (0, jsx_runtime_1.jsx)(material_1.ClickAwayListener, Object.assign({ onClickAway: handleClose }, { children: renderContent() })) })) }))) }))) })), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, Object.assign({ open: openConfirmDialog }, (currentAction === ContributionsActionsMenu_1.DELETE_CONTRIBUTION
813
+ }, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small" }, { children: contributionObj && (contributionObj.collapsed || contributionObj.deleted) ? ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: classes.visibilityIcons }, { children: [contributionObj.collapsed ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "visibility_off" }) : (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete" }), (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_more" })] }))) : ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "more_vert" })) })), open && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isMobile ? ((0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, Object.assign({ open: true, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, { children: renderContent() }))) : ((0, jsx_runtime_1.jsx)(PopperRoot, Object.assign({ open: true, anchorEl: popperRef.current, role: undefined, transition: true, className: classes.popperRoot }, PopperProps, { placement: "bottom-end" }, { children: ({ TransitionProps, placement }) => ((0, jsx_runtime_1.jsx)(material_1.Grow, Object.assign({}, TransitionProps, { style: { transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ variant: "outlined", className: classes.paper }, { children: (0, jsx_runtime_1.jsx)(material_1.ClickAwayListener, Object.assign({ onClickAway: handleClose }, { children: renderContent() })) })) }))) }))) })), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, Object.assign({ open: openConfirmDialog }, (currentAction === ContributionsActionsMenu_1.DELETE_CONTRIBUTION
820
814
  ? {
821
815
  content: ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.deleteContributionInfo", defaultMessage: "ui.contributionActionMenu.deleteContributionInfo" }))
822
816
  }
@@ -37,7 +37,7 @@ function DateTimeAgo(props) {
37
37
  */
38
38
  if (date) {
39
39
  const formattedDate = (0, formatRelativeTime_1.getRelativeTime)(date);
40
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ as: "span", className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [showStartIcon && (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "access_time" }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: `${intl.formatDate(date, { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric' })}`, enterTouchDelay: 0 }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', component: 'span' }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedRelativeTime, { value: -formattedDate.value, unit: formattedDate.unit, numeric: "auto" }) })) }))] })));
40
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ as: "span", className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [showStartIcon && (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "access_time" }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: `${intl.formatDate(date, { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric' })}`, enterTouchDelay: 0 }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", component: "span" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedRelativeTime, { value: -formattedDate.value, unit: formattedDate.unit, numeric: "auto" }) })) }))] })));
41
41
  }
42
42
  return null;
43
43
  }
@@ -1,6 +1,5 @@
1
1
  import { PickerProps } from 'emoji-picker-react';
2
- interface EmojiPickerProps extends PickerProps {
2
+ export interface EmojiPickerProps extends PickerProps {
3
3
  className?: string;
4
4
  }
5
5
  export default function EmojiPicker(inProps: EmojiPickerProps): JSX.Element;
6
- export {};
@@ -22,6 +22,6 @@ function ScrolleableTop() {
22
22
  return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h1", { children: "demo: Infinite Scroll on top" }), (0, jsx_runtime_1.jsx)("hr", {}), (0, jsx_runtime_1.jsx)("div", Object.assign({ id: "scrollableDiv", style: {
23
23
  height: 300,
24
24
  overflow: 'auto'
25
- } }, { children: (0, jsx_runtime_1.jsx)(index_1.default, Object.assign({ dataLength: items.length, previous: fetchMoreData, hasMorePrevious: true, loaderPrevious: (0, jsx_runtime_1.jsx)("h4", { children: "Loading prev..." }), scrollableTarget: "scrollableDiv", scrollThreshold: '0px' }, { children: items.map((_, index) => ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: style }, { children: ["div - #", index] }), index))) })) }))] }));
25
+ } }, { children: (0, jsx_runtime_1.jsx)(index_1.default, Object.assign({ dataLength: items.length, previous: fetchMoreData, hasMorePrevious: true, loaderPrevious: (0, jsx_runtime_1.jsx)("h4", { children: "Loading prev..." }), scrollableTarget: "scrollableDiv", scrollThreshold: "0px" }, { children: items.map((_, index) => ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: style }, { children: ["div - #", index] }), index))) })) }))] }));
26
26
  }
27
27
  exports.default = ScrolleableTop;
@@ -181,14 +181,8 @@ function LessonCommentActionsMenu(props) {
181
181
  /**
182
182
  * Renders component
183
183
  */
184
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton
185
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
186
- // @ts-ignore
187
- , Object.assign({
188
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
189
- // @ts-ignore
190
- ref: (ref) => {
184
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ ref: (ref) => {
191
185
  popperRef.current = ref;
192
- }, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "more_vert" }) })), open && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isMobile ? ((0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, Object.assign({ open: true, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, { children: renderContent() }))) : ((0, jsx_runtime_1.jsx)(PopperRoot, Object.assign({ open: true, anchorEl: popperRef.current, role: undefined, transition: true, className: classes.popperRoot }, PopperProps, { placement: "bottom-end" }, { children: ({ TransitionProps, placement }) => ((0, jsx_runtime_1.jsx)(material_1.Grow, Object.assign({}, TransitionProps, { style: { transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ variant: 'outlined', className: classes.paper }, { children: (0, jsx_runtime_1.jsx)(material_1.ClickAwayListener, Object.assign({ onClickAway: handleClose }, { children: renderContent() })) })) }))) }))) })), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openConfirmDialog, onConfirm: handleConfirmedAction, isUpdating: Boolean(currentActionLoading), onClose: () => setOpenConfirmDialog(false) }))] })));
186
+ }, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "more_vert" }) })), open && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isMobile ? ((0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, Object.assign({ open: true, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, { children: renderContent() }))) : ((0, jsx_runtime_1.jsx)(PopperRoot, Object.assign({ open: true, anchorEl: popperRef.current, role: undefined, transition: true, className: classes.popperRoot }, PopperProps, { placement: "bottom-end" }, { children: ({ TransitionProps, placement }) => ((0, jsx_runtime_1.jsx)(material_1.Grow, Object.assign({}, TransitionProps, { style: { transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ variant: "outlined", className: classes.paper }, { children: (0, jsx_runtime_1.jsx)(material_1.ClickAwayListener, Object.assign({ onClickAway: handleClose }, { children: renderContent() })) })) }))) }))) })), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openConfirmDialog, onConfirm: handleConfirmedAction, isUpdating: Boolean(currentActionLoading), onClose: () => setOpenConfirmDialog(false) }))] })));
193
187
  }
194
188
  exports.default = LessonCommentActionsMenu;
@@ -25,7 +25,7 @@ const BaseLightbox = (props) => {
25
25
  /**
26
26
  * Renders root object
27
27
  */
28
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { className: classes.root, images: images, visible: visible && index !== -1, index: currentImageIndex, onIndexChange: handleIndexChange, onClose: onClose, afterClose: afterClose, loadingElement: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { color: 'primary' }), toolbarRender: toolbarRender
28
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { className: classes.root, images: images, visible: visible && index !== -1, index: currentImageIndex, onIndexChange: handleIndexChange, onClose: onClose, afterClose: afterClose, loadingElement: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { color: "primary" }), toolbarRender: toolbarRender
29
29
  ? toolbarRender
30
30
  : () => {
31
31
  return toolbarButtons;
@@ -178,7 +178,7 @@ exports.default = (props) => {
178
178
  return Promise.resolve({ options });
179
179
  }
180
180
  else if (isImageType(items[0].file.type)) {
181
- return new Promise((resolve, reject) => {
181
+ return new Promise((resolve) => {
182
182
  Promise.all(items.map((item) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
183
183
  return Object.assign(Object.assign({}, item), { file: item.file.type === 'image/gif' ? item.file : yield (0, thumbnailCoverter_1.createThumbnail)(item.file) });
184
184
  })))
@@ -112,7 +112,7 @@ function Tags(props) {
112
112
  }
113
113
  ] }, { children: (_a) => {
114
114
  var { TransitionProps, placement } = _a, rest = tslib_1.__rest(_a, ["TransitionProps", "placement"]);
115
- return ((0, jsx_runtime_1.jsx)(material_1.Grow, Object.assign({}, TransitionProps, { style: { transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ variant: 'outlined', className: classes.paper }, { children: (0, jsx_runtime_1.jsx)(material_1.ClickAwayListener, Object.assign({ onClickAway: handleClose }, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [renderTitle(), (0, jsx_runtime_1.jsx)(StackList, Object.assign({ spacing: 2 }, rest, { children: tags
115
+ return ((0, jsx_runtime_1.jsx)(material_1.Grow, Object.assign({}, TransitionProps, { style: { transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ variant: "outlined", className: classes.paper }, { children: (0, jsx_runtime_1.jsx)(material_1.ClickAwayListener, Object.assign({ onClickAway: handleClose }, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [renderTitle(), (0, jsx_runtime_1.jsx)(StackList, Object.assign({ spacing: 2 }, rest, { children: tags
116
116
  .filter((tag) => tag.visible)
117
117
  .map((tag) => ((0, jsx_runtime_1.jsx)(ItemList, { children: (0, jsx_runtime_1.jsx)(TagChip_1.default, Object.assign({ tag: tag, onClick: onClickTag }, TagChipProps, { showDescription: true })) }, tag.id))) }))] }) })) })) })));
118
118
  } }))] }))) : ((0, jsx_runtime_1.jsxs)(ListRoot, { children: [renderTitle(), (0, jsx_runtime_1.jsx)(StackList, Object.assign({ spacing: 1, direction: rest.direction ? rest.direction : 'column' }, { children: tags
@@ -1,5 +1,5 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
- import SCUpScalingTierBadge from './index';
3
- declare const _default: import("storybook/internal/csf").ComponentAnnotations<import("@storybook/react/dist/types-7abe74eb").R, import("./index").UpScalingTierProps>;
2
+ import SCUpScalingTierBadge, { UpScalingTierProps } from './index';
3
+ declare const _default: import("storybook/internal/csf").ComponentAnnotations<import("@storybook/react/dist/types-7abe74eb").R, UpScalingTierProps>;
4
4
  export default _default;
5
5
  export declare const Base: StoryObj<typeof SCUpScalingTierBadge>;
@@ -149,8 +149,8 @@ export default function AccountDataPortability(inProps) {
149
149
  * Renders root object
150
150
  */
151
151
  return (_jsxs(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: [_jsx(Typography, Object.assign({ variant: "h6" }, { children: _jsx(FormattedMessage, { id: "ui.accountDataPortability.title", defaultMessage: "ui.accountDataPortability.title", values: { username: capitalize(scUserContext.user.username) } }) })), _jsx(Typography, Object.assign({ variant: "body2", component: "div" }, { children: _jsx(FormattedMessage, { id: "ui.accountDataPortability.info", defaultMessage: "ui.accountDataPortability.info", values: {
152
- li: (chunks) => _jsx("li", { children: chunks }),
153
- ul: (chunks) => _jsx("ul", { children: chunks })
152
+ li: (chunks) => _jsx("li", { children: chunks }, "ui.accountDataPortability.info.li"),
153
+ ul: (chunks) => _jsx("ul", { children: chunks }, "ui.accountDataPortability.info.ul")
154
154
  } }) })), _jsx(Button, Object.assign({ size: "small", loading: (dataPortability && dataPortability.computing) || loading, disabled: !dataPortability ||
155
155
  (dataPortability &&
156
156
  (dataPortability.computing ||
@@ -108,10 +108,10 @@ export default function AccountDelete(inProps) {
108
108
  */
109
109
  return (_jsxs(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: [_jsx(Typography, Object.assign({ className: classes.message, component: Box }, { children: _jsx(FormattedMessage, { id: "ui.accountDelete.message", defaultMessage: "ui.accountDelete.message", values: {
110
110
  communityName,
111
- li: (chunks) => _jsx("li", { children: chunks }),
112
- ul: (chunks) => _jsx("ul", { children: chunks })
111
+ li: (chunks) => _jsx("li", { children: chunks }, "ui.accountDelete.message.li"),
112
+ ul: (chunks) => _jsx("ul", { children: chunks }, "ui.accountDelete.message.ul")
113
113
  } }) })), _jsxs(Typography, Object.assign({ className: classes.confirm, component: Box }, { children: [_jsx(FormattedMessage, { id: "ui.accountDelete.confirmMessage", defaultMessage: "ui.accountDelete.confirmMessage", values: {
114
114
  username: scUserContext.user.username,
115
- b: (chunks) => _jsx("b", { children: chunks })
115
+ b: (chunks) => _jsx("b", { children: chunks }, "ui.accountDelete.confirmMessage.b")
116
116
  } }), _jsx(TextField, { name: "confirm", value: confirm, onChange: handleChange, autoComplete: "off", size: "small" })] })), error && _jsx(Typography, Object.assign({ color: "error" }, { children: error })), _jsx(Button, Object.assign({ className: classes.button, size: "small", disabled: isDeleting || confirm !== scUserContext.user.username, variant: "outlined", onClick: handleDelete }, { children: _jsx(FormattedMessage, { id: "ui.accountDelete.buttonLabel", defaultMessage: "ui.accountDelete.buttonLabel" }) }))] })));
117
117
  }
@@ -18,7 +18,7 @@ const classes = {
18
18
  const Root = styled(Box, {
19
19
  name: PREFIX,
20
20
  slot: 'Root',
21
- overridesResolver: (props, styles) => styles.root
21
+ overridesResolver: (_props, styles) => styles.root
22
22
  })(({ theme }) => ({
23
23
  [`& .${classes.form} .MuiTextField-root, &.${classes.root} .MuiButton-root`]: {
24
24
  margin: theme.spacing(1, 0, 1, 0)
@@ -102,8 +102,6 @@ export default function AccountRecover(inProps) {
102
102
  // RENDER
103
103
  return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: isSucceed ? (_jsxs(Alert, Object.assign({ severity: "success", className: classes.success }, { children: [intl.formatMessage({ id: 'ui.accountRecover.success', defaultMessage: 'ui.accountRecover.success' }, {
104
104
  email,
105
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
106
- // @ts-ignore
107
- b: (chunks) => _jsx("b", { children: chunks })
105
+ b: (chunks) => _jsx("b", { children: chunks }, "ui.accountRecover.success.b")
108
106
  }), successAction] }))) : (_jsxs("form", Object.assign({ className: classes.form, onSubmit: handleSubmit }, { children: [_jsx(EmailTextField, Object.assign({ className: classes.email, disabled: isSubmitting, label: _jsx(FormattedMessage, { id: "ui.accountRecover.email.label", defaultMessage: "ui.accountRecover.email.label" }) }, TextFieldProps, { value: email, onChange: handleChange, error: Boolean(emailError), helperText: emailError && (_jsx(FormattedMessage, { id: `ui.accountRecover.email.error.${emailError}`, defaultMessage: `ui.accountRecover.email.error.${emailError}` })) })), _jsx(Button, Object.assign({ type: "submit" }, ButtonProps, { disabled: !email || Boolean(emailError) || isSubmitting }, { children: _jsx(FormattedMessage, { id: "ui.accountRecover.submit", defaultMessage: "ui.accountRecover.submit" }) }))] }))) })));
109
107
  }
@@ -93,7 +93,7 @@ export default function Message(props) {
93
93
  return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className) }, rest, { children: _jsx(Fade, Object.assign({ in: open, unmountOnExit: true }, { children: _jsxs(Box, { children: [message.viewed_at === null && !disableMarkRead && (_jsx(MarkRead, { endpoint: Endpoints.BroadcastMessagesMarkRead, data: { banner_ids: [message.id] }, callback: handleOnRead })), _jsx(CardHeader, { className: classes.header, avatar: _jsx(Avatar, { alt: preferences[SCPreferences.TEXT_APPLICATION_NAME], src: preferences[SCPreferences.LOGO_NAVBAR_LOGO_MOBILE] }), action: template === SCBroadcastMessageTemplateType.DETAIL && (_jsx(IconButton, Object.assign({ "aria-label": "close", onClick: handleClose, disabled: closing }, { children: closing ? _jsx(CircularProgress, { size: 20 }) : _jsx(Icon, { children: "close" }) }))), title: _jsx(Chip, { color: "secondary", size: "small", label: _jsx(FormattedMessage, { id: "ui.broadcastMessages.message.chip", defaultMessage: "ui.broadcastMessages.message.chip" }) }) }), renderContent(banner)] }) })) })));
94
94
  }
95
95
  // SCBroadcastMessageTemplateType.SNIPPET
96
- return (_jsx(Root, Object.assign({ id: id, className: className }, rest, { children: _jsxs(ListItem, Object.assign({ alignItems: 'center', component: 'div', classes: {
96
+ return (_jsx(Root, Object.assign({ id: id, className: className }, rest, { children: _jsxs(ListItem, Object.assign({ alignItems: "center", component: "div", classes: {
97
97
  root: classNames(classes.listItemSnippet, classes.listItemSnippetNew)
98
98
  } }, { children: [_jsx(ListItemAvatar, Object.assign({ classes: { root: classes.messageIconWrap } }, { children: _jsx(Avatar, Object.assign({ variant: "circular", classes: { root: classes.messageIconSnippet } }, { children: _jsx(Icon, { children: "info" }) })) })), _jsx(ListItemText, { disableTypography: true, primary: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) }, { children: _jsx(Typography, Object.assign({ component: "span", color: "inherit" }, { children: banner.title })) })) })] })) })));
99
99
  }
@@ -1,128 +1,128 @@
1
1
  const prefetchedCategories = [
2
2
  {
3
- "id": 12,
4
- "tags": [],
5
- "followed": true,
6
- "order": 0,
7
- "name": "Decimo",
8
- "name_synonyms": "",
9
- "slug": "decimo",
10
- "slogan": "",
11
- "html_info": null,
12
- "seo_title": "",
13
- "seo_description": "",
14
- "auto_follow": "none",
15
- "active": true,
16
- "image_original": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/original/decimo_6924.png",
17
- "image_bigger": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/bigger/decimo_8041.png",
18
- "image_big": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/big/decimo_3816.png",
19
- "image_medium": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/medium/decimo_0379.png",
20
- "image_small": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/small/decimo_2449.png",
21
- "emotional_image_original": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/e_original/decimo_6614.jpg",
22
- "emotional_image_position": 50,
23
- "lastmod_datetime": "2022-03-16T11:27:54.224553+01:00",
24
- "stream_order_by": "recent",
25
- "followers_counter": 121
3
+ id: 12,
4
+ tags: [],
5
+ followed: true,
6
+ order: 0,
7
+ name: 'Decimo',
8
+ name_synonyms: '',
9
+ slug: 'decimo',
10
+ slogan: '',
11
+ html_info: undefined,
12
+ seo_title: '',
13
+ seo_description: '',
14
+ auto_follow: 'none',
15
+ active: true,
16
+ image_original: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/original/decimo_6924.png',
17
+ image_bigger: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/bigger/decimo_8041.png',
18
+ image_big: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/big/decimo_3816.png',
19
+ image_medium: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/medium/decimo_0379.png',
20
+ image_small: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/small/decimo_2449.png',
21
+ emotional_image_original: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/e_original/decimo_6614.jpg',
22
+ emotional_image_position: 50,
23
+ lastmod_datetime: '2022-03-16T11:27:54.224553+01:00',
24
+ stream_order_by: 'recent',
25
+ followers_counter: 121
26
26
  },
27
27
  {
28
- "id": 21,
29
- "tags": [],
30
- "followed": true,
31
- "order": 0,
32
- "name": "Diciannovesimo",
33
- "name_synonyms": "",
34
- "slug": "diciannovesimo",
35
- "slogan": "",
36
- "html_info": null,
37
- "seo_title": "",
38
- "seo_description": "",
39
- "auto_follow": "none",
40
- "active": true,
41
- "image_original": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/original/diciannovesimo_3711.png",
42
- "image_bigger": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/bigger/diciannovesimo_2523.png",
43
- "image_big": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/big/diciannovesimo_0903.png",
44
- "image_medium": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/medium/diciannovesimo_8502.png",
45
- "image_small": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/small/diciannovesimo_8366.png",
46
- "emotional_image_original": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/e_original/diciannovesimo_8326.jpg",
47
- "emotional_image_position": 50,
48
- "lastmod_datetime": "2022-03-16T11:29:56.488219+01:00",
49
- "stream_order_by": "recent",
50
- "followers_counter": 128
28
+ id: 21,
29
+ tags: [],
30
+ followed: true,
31
+ order: 0,
32
+ name: 'Diciannovesimo',
33
+ name_synonyms: '',
34
+ slug: 'diciannovesimo',
35
+ slogan: '',
36
+ html_info: undefined,
37
+ seo_title: '',
38
+ seo_description: '',
39
+ auto_follow: 'none',
40
+ active: true,
41
+ image_original: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/original/diciannovesimo_3711.png',
42
+ image_bigger: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/bigger/diciannovesimo_2523.png',
43
+ image_big: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/big/diciannovesimo_0903.png',
44
+ image_medium: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/medium/diciannovesimo_8502.png',
45
+ image_small: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/small/diciannovesimo_8366.png',
46
+ emotional_image_original: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/e_original/diciannovesimo_8326.jpg',
47
+ emotional_image_position: 50,
48
+ lastmod_datetime: '2022-03-16T11:29:56.488219+01:00',
49
+ stream_order_by: 'recent',
50
+ followers_counter: 128
51
51
  },
52
52
  {
53
- "id": 19,
54
- "tags": [],
55
- "followed": true,
56
- "order": 0,
57
- "name": "Diciasettesimo",
58
- "name_synonyms": "",
59
- "slug": "diciasettesimo",
60
- "slogan": "",
61
- "html_info": null,
62
- "seo_title": "",
63
- "seo_description": "",
64
- "auto_follow": "none",
65
- "active": true,
66
- "image_original": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/original/diciasettesimo_1283.png",
67
- "image_bigger": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/bigger/diciasettesimo_5019.png",
68
- "image_big": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/big/diciasettesimo_6746.png",
69
- "image_medium": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/medium/diciasettesimo_7799.png",
70
- "image_small": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/small/diciasettesimo_7603.png",
71
- "emotional_image_original": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/e_original/diciasettesimo_0512.jpg",
72
- "emotional_image_position": 50,
73
- "lastmod_datetime": "2022-03-16T11:29:27.579942+01:00",
74
- "stream_order_by": "recent",
75
- "followers_counter": 117
53
+ id: 19,
54
+ tags: [],
55
+ followed: true,
56
+ order: 0,
57
+ name: 'Diciasettesimo',
58
+ name_synonyms: '',
59
+ slug: 'diciasettesimo',
60
+ slogan: '',
61
+ html_info: undefined,
62
+ seo_title: '',
63
+ seo_description: '',
64
+ auto_follow: 'none',
65
+ active: true,
66
+ image_original: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/original/diciasettesimo_1283.png',
67
+ image_bigger: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/bigger/diciasettesimo_5019.png',
68
+ image_big: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/big/diciasettesimo_6746.png',
69
+ image_medium: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/medium/diciasettesimo_7799.png',
70
+ image_small: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/small/diciasettesimo_7603.png',
71
+ emotional_image_original: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/e_original/diciasettesimo_0512.jpg',
72
+ emotional_image_position: 50,
73
+ lastmod_datetime: '2022-03-16T11:29:27.579942+01:00',
74
+ stream_order_by: 'recent',
75
+ followers_counter: 117
76
76
  },
77
77
  {
78
- "id": 20,
79
- "tags": [],
80
- "followed": true,
81
- "order": 0,
82
- "name": "Diciottesimo",
83
- "name_synonyms": "",
84
- "slug": "diciottesimo",
85
- "slogan": "",
86
- "html_info": null,
87
- "seo_title": "",
88
- "seo_description": "",
89
- "auto_follow": "none",
90
- "active": true,
91
- "image_original": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/original/diciottesimo_7510.png",
92
- "image_bigger": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/bigger/diciottesimo_4703.png",
93
- "image_big": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/big/diciottesimo_7082.png",
94
- "image_medium": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/medium/diciottesimo_4128.png",
95
- "image_small": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/small/diciottesimo_9547.png",
96
- "emotional_image_original": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/e_original/diciottesimo_0577.jpg",
97
- "emotional_image_position": 50,
98
- "lastmod_datetime": "2022-03-16T11:29:38.915804+01:00",
99
- "stream_order_by": "recent",
100
- "followers_counter": 117
78
+ id: 20,
79
+ tags: [],
80
+ followed: true,
81
+ order: 0,
82
+ name: 'Diciottesimo',
83
+ name_synonyms: '',
84
+ slug: 'diciottesimo',
85
+ slogan: '',
86
+ html_info: undefined,
87
+ seo_title: '',
88
+ seo_description: '',
89
+ auto_follow: 'none',
90
+ active: true,
91
+ image_original: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/original/diciottesimo_7510.png',
92
+ image_bigger: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/bigger/diciottesimo_4703.png',
93
+ image_big: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/big/diciottesimo_7082.png',
94
+ image_medium: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/medium/diciottesimo_4128.png',
95
+ image_small: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/small/diciottesimo_9547.png',
96
+ emotional_image_original: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/e_original/diciottesimo_0577.jpg',
97
+ emotional_image_position: 50,
98
+ lastmod_datetime: '2022-03-16T11:29:38.915804+01:00',
99
+ stream_order_by: 'recent',
100
+ followers_counter: 117
101
101
  },
102
102
  {
103
- "id": 14,
104
- "tags": [],
105
- "followed": true,
106
- "order": 0,
107
- "name": "Dodicesimo",
108
- "name_synonyms": "",
109
- "slug": "dodicesimo",
110
- "slogan": "",
111
- "html_info": null,
112
- "seo_title": "",
113
- "seo_description": "",
114
- "auto_follow": "none",
115
- "active": true,
116
- "image_original": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/original/dodicesimo_7967.png",
117
- "image_bigger": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/bigger/dodicesimo_2679.png",
118
- "image_big": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/big/dodicesimo_3516.png",
119
- "image_medium": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/medium/dodicesimo_2780.png",
120
- "image_small": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/small/dodicesimo_6346.png",
121
- "emotional_image_original": "https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/e_original/dodicesimo_8289.jpg",
122
- "emotional_image_position": 50,
123
- "lastmod_datetime": "2022-03-16T11:28:12.013730+01:00",
124
- "stream_order_by": "recent",
125
- "followers_counter": 122
103
+ id: 14,
104
+ tags: [],
105
+ followed: true,
106
+ order: 0,
107
+ name: 'Dodicesimo',
108
+ name_synonyms: '',
109
+ slug: 'dodicesimo',
110
+ slogan: '',
111
+ html_info: undefined,
112
+ seo_title: '',
113
+ seo_description: '',
114
+ auto_follow: 'none',
115
+ active: true,
116
+ image_original: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/original/dodicesimo_7967.png',
117
+ image_bigger: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/bigger/dodicesimo_2679.png',
118
+ image_big: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/big/dodicesimo_3516.png',
119
+ image_medium: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/medium/dodicesimo_2780.png',
120
+ image_small: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/small/dodicesimo_6346.png',
121
+ emotional_image_original: 'https://static.quentrix.com/dhpyt711mb8h2n3m/upfiles/categories/e_original/dodicesimo_8289.jpg',
122
+ emotional_image_position: 50,
123
+ lastmod_datetime: '2022-03-16T11:28:12.013730+01:00',
124
+ stream_order_by: 'recent',
125
+ followers_counter: 122
126
126
  }
127
127
  ];
128
128
  export { prefetchedCategories };
@@ -173,12 +173,8 @@ export default function ChangeCover(inProps) {
173
173
  vertical: 'bottom',
174
174
  horizontal: 'right'
175
175
  } }, { children: _jsxs(Box, Object.assign({ sx: { p: '10px' } }, { children: [_jsx(Typography, Object.assign({ component: "h3" }, { children: _jsx(FormattedMessage, { id: "ui.changeCover.button.uploadA", defaultMessage: "ui.changeCover.button.uploadA" }) })), _jsx(Divider, {}), _jsx(Typography, Object.assign({ component: "span" }, { children: _jsx(FormattedMessage, { id: "ui.changeCover.info", defaultMessage: "ui.changeCover.info", values: {
176
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
177
- // @ts-ignore
178
- li: (chunks) => _jsx("li", { children: chunks }),
179
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
180
- // @ts-ignore
181
- ul: (chunks) => _jsx("ul", { children: chunks })
176
+ li: (chunks) => _jsx("li", { children: chunks }, "ui.changeCover.info.li"),
177
+ ul: (chunks) => _jsx("ul", { children: chunks }, "ui.changeCover.info.ul")
182
178
  } }) }))] })) })))] })), openDeleteCoverDialog && (_jsx(ConfirmDialog, { open: openDeleteCoverDialog, title: _jsx(FormattedMessage, { id: "ui.changeCover.dialog.msg", defaultMessage: "ui.changeCover.dialog.msg" }), onConfirm: deleteCover, isUpdating: isDeletingCover, onClose: () => {
183
179
  setOpenDeleteCoverDialog(false);
184
180
  setAnchorEl(null);