@selfcommunity/react-ui 0.11.0-mui7.21 → 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 (198) 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/CourseDashboard/Teacher.js +1 -1
  14. package/lib/cjs/components/CourseForm/Edit.js +6 -2
  15. package/lib/cjs/components/Courses/Courses.js +1 -1
  16. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +1 -1
  17. package/lib/cjs/components/CustomAdv/Skeleton.js +1 -1
  18. package/lib/cjs/components/EditCourse/EditCourse.js +1 -1
  19. package/lib/cjs/components/EditCourse/Status.js +1 -1
  20. package/lib/cjs/components/EventForm/EventForm.js +2 -2
  21. package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -1
  22. package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +3 -3
  23. package/lib/cjs/components/EventMembersWidget/Skeleton.js +1 -1
  24. package/lib/cjs/components/Events/LocationEventsFilter.js +1 -1
  25. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +2 -2
  26. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +1 -1
  27. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -1
  28. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  29. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -1
  30. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -1
  31. package/lib/cjs/components/GroupForm/GroupForm.js +7 -7
  32. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +5 -15
  33. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +1 -1
  34. package/lib/cjs/components/Incubator/Incubator.js +2 -2
  35. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -2
  36. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
  37. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +5 -5
  38. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  39. package/lib/cjs/components/LessonCommentObjects/LessonCommentObjects.js +1 -1
  40. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +1 -1
  41. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +10 -8
  42. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -3
  43. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +1 -1
  44. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +1 -1
  45. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  46. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  47. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +3 -1
  48. package/lib/cjs/components/Notification/Comment/Comment.js +3 -3
  49. package/lib/cjs/components/Notification/Contribution/Contribution.js +1 -1
  50. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  51. package/lib/cjs/components/Notification/Course/Course.js +4 -4
  52. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +4 -2
  53. package/lib/cjs/components/Notification/Event/Event.js +4 -4
  54. package/lib/cjs/components/Notification/Group/Group.js +2 -2
  55. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  56. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +3 -1
  57. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +5 -3
  58. package/lib/cjs/components/Notification/LiveStream/LiveStream.js +3 -3
  59. package/lib/cjs/components/Notification/Mention/Mention.js +2 -2
  60. package/lib/cjs/components/Notification/Notification.js +5 -5
  61. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +3 -3
  62. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  63. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +6 -2
  64. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +6 -2
  65. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -2
  66. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -2
  67. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +10 -7
  68. package/lib/cjs/components/OnBoardingWidget/Skeleton.js +1 -1
  69. package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +9 -25
  70. package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +3 -9
  71. package/lib/cjs/components/PaymentOrder/PaymentOrder.js +1 -1
  72. package/lib/cjs/components/PaymentOrders/PaymentOrders.js +1 -1
  73. package/lib/cjs/components/PaywallsDialog/PaywallsDialog.js +1 -1
  74. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +1 -1
  75. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +2 -2
  76. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +1 -1
  77. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +1 -1
  78. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +1 -1
  79. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +5 -5
  80. package/lib/cjs/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.js +3 -3
  81. package/lib/cjs/components/UserAutocomplete/UserAutocomplete.js +1 -1
  82. package/lib/cjs/components/UserBillingInfo/UserBillingInfo.js +1 -1
  83. package/lib/cjs/components/UserChangeAddressDialog/UserChangeAddressDialog.js +1 -1
  84. package/lib/cjs/components/UserCounters/UserCounters.js +5 -13
  85. package/lib/cjs/components/UserInfo/UserInfo.js +1 -1
  86. package/lib/cjs/components/UserPaymentMethods/UserPaymentMethods.js +6 -7
  87. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +1 -1
  88. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +2 -2
  89. package/lib/cjs/shared/ContributionActionsMenu/index.js +3 -9
  90. package/lib/cjs/shared/DateTimeAgo/index.js +1 -1
  91. package/lib/cjs/shared/EmojiPicker/EmojiPicker.d.ts +1 -2
  92. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +1 -1
  93. package/lib/cjs/shared/LessonCommentActionsMenu/index.js +2 -8
  94. package/lib/cjs/shared/Lightbox/BaseLightbox.js +1 -1
  95. package/lib/cjs/shared/MessageChunkUploader/index.js +1 -1
  96. package/lib/cjs/shared/Tags/index.js +1 -1
  97. package/lib/cjs/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +2 -2
  98. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +2 -2
  99. package/lib/esm/components/AccountDelete/AccountDelete.js +3 -3
  100. package/lib/esm/components/AccountRecover/AccountRecover.js +2 -4
  101. package/lib/esm/components/BroadcastMessages/Message.js +1 -1
  102. package/lib/esm/components/Categories/prefetchedCategories.js +115 -115
  103. package/lib/esm/components/ChangeCover/ChangeCover.js +2 -6
  104. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +4 -8
  105. package/lib/esm/components/CheckoutReturnDialog/CheckoutReturnDialog.js +5 -5
  106. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +1 -1
  107. package/lib/esm/components/ConsentSolution/ConsentSolution.js +9 -3
  108. package/lib/esm/components/ConsentSolution/Skeleton.js +1 -1
  109. package/lib/esm/components/CourseCompletedDialog/CourseCompletedDialog.js +1 -1
  110. package/lib/esm/components/CourseDashboard/Teacher.js +1 -1
  111. package/lib/esm/components/CourseForm/Edit.js +6 -2
  112. package/lib/esm/components/Courses/Courses.js +1 -1
  113. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +1 -1
  114. package/lib/esm/components/CustomAdv/Skeleton.js +1 -1
  115. package/lib/esm/components/EditCourse/EditCourse.js +1 -1
  116. package/lib/esm/components/EditCourse/Status.js +1 -1
  117. package/lib/esm/components/EventForm/EventForm.js +2 -2
  118. package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -1
  119. package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +3 -3
  120. package/lib/esm/components/EventMembersWidget/Skeleton.js +1 -1
  121. package/lib/esm/components/Events/LocationEventsFilter.js +1 -1
  122. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +2 -2
  123. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +1 -1
  124. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -1
  125. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  126. package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -1
  127. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -1
  128. package/lib/esm/components/GroupForm/GroupForm.js +7 -7
  129. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +5 -15
  130. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +1 -1
  131. package/lib/esm/components/Incubator/Incubator.js +2 -2
  132. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +2 -2
  133. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
  134. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +5 -5
  135. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  136. package/lib/esm/components/LessonCommentObjects/LessonCommentObjects.js +1 -1
  137. package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +1 -1
  138. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +10 -8
  139. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -3
  140. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +1 -1
  141. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +1 -1
  142. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  143. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  144. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +3 -1
  145. package/lib/esm/components/Notification/Comment/Comment.js +3 -3
  146. package/lib/esm/components/Notification/Contribution/Contribution.js +1 -1
  147. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  148. package/lib/esm/components/Notification/Course/Course.js +4 -4
  149. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +4 -2
  150. package/lib/esm/components/Notification/Event/Event.js +4 -4
  151. package/lib/esm/components/Notification/Group/Group.js +2 -2
  152. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  153. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +3 -1
  154. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +5 -3
  155. package/lib/esm/components/Notification/LiveStream/LiveStream.js +3 -3
  156. package/lib/esm/components/Notification/Mention/Mention.js +2 -2
  157. package/lib/esm/components/Notification/Notification.js +5 -5
  158. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +3 -3
  159. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  160. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +6 -2
  161. package/lib/esm/components/Notification/UserConnection/UserConnection.js +6 -2
  162. package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -2
  163. package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -2
  164. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +11 -8
  165. package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -1
  166. package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +9 -25
  167. package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +3 -9
  168. package/lib/esm/components/PaymentOrder/PaymentOrder.js +1 -1
  169. package/lib/esm/components/PaymentOrders/PaymentOrders.js +1 -1
  170. package/lib/esm/components/PaywallsDialog/PaywallsDialog.js +1 -1
  171. package/lib/esm/components/PlatformWidget/PlatformWidget.js +1 -1
  172. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +2 -2
  173. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -1
  174. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +1 -1
  175. package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -1
  176. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +5 -5
  177. package/lib/esm/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.js +4 -4
  178. package/lib/esm/components/UserAutocomplete/UserAutocomplete.js +1 -1
  179. package/lib/esm/components/UserBillingInfo/UserBillingInfo.js +1 -1
  180. package/lib/esm/components/UserChangeAddressDialog/UserChangeAddressDialog.js +1 -1
  181. package/lib/esm/components/UserCounters/UserCounters.js +5 -13
  182. package/lib/esm/components/UserInfo/UserInfo.js +1 -1
  183. package/lib/esm/components/UserPaymentMethods/UserPaymentMethods.js +8 -9
  184. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +1 -1
  185. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +2 -2
  186. package/lib/esm/shared/ContributionActionsMenu/index.js +3 -9
  187. package/lib/esm/shared/DateTimeAgo/index.js +1 -1
  188. package/lib/esm/shared/EmojiPicker/EmojiPicker.d.ts +1 -2
  189. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +1 -1
  190. package/lib/esm/shared/LessonCommentActionsMenu/index.js +2 -8
  191. package/lib/esm/shared/Lightbox/BaseLightbox.js +1 -1
  192. package/lib/esm/shared/MessageChunkUploader/index.js +1 -1
  193. package/lib/esm/shared/Tags/index.js +1 -1
  194. package/lib/esm/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +2 -2
  195. package/lib/umd/484.js +1 -1
  196. package/lib/umd/484.js.LICENSE.txt +1 -1
  197. package/lib/umd/react-ui.js +1 -1
  198. package/package.json +10 -10
@@ -76,7 +76,7 @@ function UserChangeAddressDialog(inProps) {
76
76
  if (!isPaymentsEnabled || !scUserContext.user) {
77
77
  return null;
78
78
  }
79
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.userChangeAddressDialog.title", id: "component.userChangeAddressDialog.title" }), open: open, actions: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: 'outlined', onClick: handleClose }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.userChangeAddressDialog.btnClose", id: "component.userChangeAddressDialog.btnClose" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ loading: loading, disabled: loading, variant: 'contained', onClick: handleSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.userChangeAddressDialog.btnSave", id: "component.userChangeAddressDialog.btnSave" }) }))] }) }, rest, { children: (0, jsx_runtime_1.jsx)(react_stripe_js_1.Elements, Object.assign({ stripe: stripePromise, options: elementsOptions }, { children: (0, jsx_runtime_1.jsx)(react_stripe_js_1.AddressElement, { onChange: handleChangeAddress, options: {
79
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.userChangeAddressDialog.title", id: "component.userChangeAddressDialog.title" }), open: open, actions: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "outlined", onClick: handleClose }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.userChangeAddressDialog.btnClose", id: "component.userChangeAddressDialog.btnClose" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ loading: loading, disabled: loading, variant: "contained", onClick: handleSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.userChangeAddressDialog.btnSave", id: "component.userChangeAddressDialog.btnSave" }) }))] }) }, rest, { children: (0, jsx_runtime_1.jsx)(react_stripe_js_1.Elements, Object.assign({ stripe: stripePromise, options: elementsOptions }, { children: (0, jsx_runtime_1.jsx)(react_stripe_js_1.AddressElement, { onChange: handleChangeAddress, options: {
80
80
  mode: 'billing',
81
81
  defaultValues: addressState
82
82
  } }) })) })));
@@ -18,7 +18,7 @@ const classes = {
18
18
  const Root = (0, material_1.styled)(material_1.Box, {
19
19
  name: PREFIX,
20
20
  slot: 'Root',
21
- overridesResolver: (props, styles) => styles.root
21
+ overridesResolver: (_props, styles) => styles.root
22
22
  })(() => ({}));
23
23
  /**
24
24
  * > API documentation for the Community-JS User Counters component. Learn about the available props and the CSS API.
@@ -93,24 +93,16 @@ function UserCounters(inProps) {
93
93
  return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (followEnabled || connectionEnabled) &&
94
94
  (followEnabled ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.button, variant: "text", component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWINGS_ROUTE_NAME, scUser) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userCounters.followings", defaultMessage: "ui.userCounters.followings", values: {
95
95
  count: scUser === null || scUser === void 0 ? void 0 : scUser.followings_counter,
96
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
97
- // @ts-ignore
98
- b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
96
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }, "ui.userCounters.followings.b")
99
97
  } }) })), (0, jsx_runtime_1.jsx)(Bullet_1.default, {}), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.button, variant: "text", component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWERS_ROUTE_NAME, scUser) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userCounters.followers", defaultMessage: "ui.userCounters.followers", values: {
100
98
  count: scUser === null || scUser === void 0 ? void 0 : scUser.followers_counter,
101
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
102
- // @ts-ignore
103
- b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
99
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }, "ui.userCounters.followers.b")
104
100
  } }) }))] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.button, variant: "text", component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_CONNECTIONS_ROUTE_NAME, scUser) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userCounters.connections", defaultMessage: "ui.userCounters.connections", values: {
105
101
  count: scUser === null || scUser === void 0 ? void 0 : scUser.connections_counter,
106
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
107
- // @ts-ignore
108
- b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
102
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }, "ui.userCounters.connections.b")
109
103
  } }) })), (0, jsx_runtime_1.jsx)(Bullet_1.default, {})] }))) }), categoryFollowEnabled && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.button, variant: "text", component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_CATEGORIES_ROUTE_NAME, scUser) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userCounters.categories", defaultMessage: "ui.userCounters.categories", values: {
110
104
  count: scUser === null || scUser === void 0 ? void 0 : scUser.categories_counter,
111
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
112
- // @ts-ignore
113
- b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
105
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }, "ui.userCounters.categories.b")
114
106
  } }) })))] })));
115
107
  }
116
108
  exports.default = UserCounters;
@@ -122,7 +122,7 @@ function UserInfo(inProps) {
122
122
  case types_1.SCUserProfileFields.DATE_OF_BIRTH:
123
123
  return `${intl.formatDate(user[field], { year: 'numeric', month: 'numeric', day: 'numeric' })}`;
124
124
  case types_1.SCUserProfileFields.TAGS:
125
- return ((0, jsx_runtime_1.jsx)(Tags_1.default, { tags: user.tags.filter((t) => t.visible), type: Tags_1.TagsComponentType.LIST, direction: 'row', TagChipProps: { clickable: false, disposable: false } }));
125
+ return ((0, jsx_runtime_1.jsx)(Tags_1.default, { tags: user.tags.filter((t) => t.visible), type: Tags_1.TagsComponentType.LIST, direction: "row", TagChipProps: { clickable: false, disposable: false } }));
126
126
  case types_1.SCUserProfileFields.WEBSITE:
127
127
  return ((0, jsx_runtime_1.jsx)("a", Object.assign({ href: user[field], target: '_blank' }, { children: user[field] })));
128
128
  default:
@@ -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;
@@ -188,7 +188,7 @@ function PublicInfo(props) {
188
188
  // eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
189
189
  // @ts-ignore
190
190
  const _a = params.children.props, { children } = _a, rest = tslib_1.__rest(_a, ["children"]);
191
- return ((0, jsx_runtime_1.jsxs)(material_1.InputAdornment, Object.assign({ position: 'end' }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({}, rest, { children: children })), isSaving && (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 10 })] })));
191
+ return ((0, jsx_runtime_1.jsxs)(material_1.InputAdornment, Object.assign({ position: "end" }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({}, rest, { children: children })), isSaving && (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 10 })] })));
192
192
  }
193
193
  },
194
194
  // onAccept={isMobile ? handleSave(SCUserProfileFields.DATE_OF_BIRTH) : null}
@@ -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
  }