@cuemath/leap 3.3.37-m → 3.3.37

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 (224) hide show
  1. package/dist/assets/gif/gif.js +4 -1
  2. package/dist/assets/gif/gif.js.map +1 -1
  3. package/dist/assets/illustrations/illustrations.js +1 -1
  4. package/dist/assets/illustrations/illustrations.js.map +1 -1
  5. package/dist/assets/line-icons/icons/chevron-right.js.map +1 -1
  6. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +1 -1
  7. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +1 -1
  8. package/dist/features/auth/comps/otp-input/otp-input.js +35 -29
  9. package/dist/features/auth/comps/otp-input/otp-input.js.map +1 -1
  10. package/dist/features/auth/pla-signup/pla-analytics-events.js +13 -3
  11. package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
  12. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +43 -34
  13. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -1
  14. package/dist/features/chapters-v2/chapter-details/chapter-details.js +140 -101
  15. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -1
  16. package/dist/features/chapters-v2/utils/index.js +20 -16
  17. package/dist/features/chapters-v2/utils/index.js.map +1 -1
  18. package/dist/features/circle-games/game-launcher/api/get-content-for-today/get-circle-home-api.js +6 -6
  19. package/dist/features/circle-games/game-launcher/api/get-content-for-today/get-circle-home-api.js.map +1 -1
  20. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js +20 -21
  21. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js.map +1 -1
  22. package/dist/features/circle-games/games/web-view/web-view-types.js.map +1 -1
  23. package/dist/features/circle-games/sign-up/sign-up.js +6 -6
  24. package/dist/features/circle-games/sign-up/sign-up.js.map +1 -1
  25. package/dist/features/homework/hw-card-list/hw-card-list-view.js +17 -17
  26. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-block-journey.js +86 -0
  27. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-block-journey.js.map +1 -0
  28. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-node-journey.js +140 -0
  29. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-node-journey.js.map +1 -0
  30. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  31. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  32. package/dist/features/journey/journey-id/journey-id-teacher.js +2 -2
  33. package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
  34. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +400 -0
  35. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +1 -1
  36. package/dist/features/milestone/constants.js +28 -15
  37. package/dist/features/milestone/constants.js.map +1 -1
  38. package/dist/features/milestone/create/comps/goal-completion-date-selector/goal-completion-date-selector.js +6 -6
  39. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +2 -2
  40. package/dist/features/milestone/create/comps/test-type-step/test-type-utils.js +23 -16
  41. package/dist/features/milestone/create/comps/test-type-step/test-type-utils.js.map +1 -1
  42. package/dist/features/milestone/create/milestone-create-helpers.js +13 -7
  43. package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
  44. package/dist/features/parent-dashboard/api/cancel-subscription.js +9 -0
  45. package/dist/features/parent-dashboard/api/cancel-subscription.js.map +1 -0
  46. package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js +20 -0
  47. package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js.map +1 -0
  48. package/dist/features/parent-dashboard/comps/billing-information/billing-information.js +74 -0
  49. package/dist/features/parent-dashboard/comps/billing-information/billing-information.js.map +1 -0
  50. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/next-steps/next-steps-constants.js +1 -1
  51. package/dist/features/parent-dashboard/comps/next-steps/next-steps-constants.js.map +1 -0
  52. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/next-steps/next-steps-styled.js +1 -1
  53. package/dist/features/parent-dashboard/comps/next-steps/next-steps-styled.js.map +1 -0
  54. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/next-steps/next-steps.js +5 -5
  55. package/dist/features/parent-dashboard/comps/next-steps/next-steps.js.map +1 -0
  56. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js +28 -22
  57. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js.map +1 -1
  58. package/dist/features/parent-dashboard/comps/session-status/hooks/use-countdown.js +34 -0
  59. package/dist/features/parent-dashboard/comps/session-status/hooks/use-countdown.js.map +1 -0
  60. package/dist/features/parent-dashboard/comps/session-status/hooks/use-session-status-config.js +137 -0
  61. package/dist/features/parent-dashboard/comps/session-status/hooks/use-session-status-config.js.map +1 -0
  62. package/dist/features/parent-dashboard/comps/session-status/session-status-constants.js +20 -0
  63. package/dist/features/parent-dashboard/comps/session-status/session-status-constants.js.map +1 -0
  64. package/dist/features/parent-dashboard/comps/session-status/session-status-helpers.js +19 -0
  65. package/dist/features/parent-dashboard/comps/session-status/session-status-helpers.js.map +1 -0
  66. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/session-status/session-status-styled.js +2 -2
  67. package/dist/features/parent-dashboard/comps/session-status/session-status-styled.js.map +1 -0
  68. package/dist/features/parent-dashboard/comps/session-status/session-status.js +124 -0
  69. package/dist/features/parent-dashboard/comps/session-status/session-status.js.map +1 -0
  70. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/session-summary/session-summary-constants.js +18 -12
  71. package/dist/features/parent-dashboard/comps/session-summary/session-summary-constants.js.map +1 -0
  72. package/dist/features/parent-dashboard/comps/session-summary/session-summary.js +54 -0
  73. package/dist/features/parent-dashboard/comps/session-summary/session-summary.js.map +1 -0
  74. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/session-summary/summary-card/summary-card-styled.js +1 -1
  75. package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card-styled.js.map +1 -0
  76. package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card.js +72 -0
  77. package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card.js.map +1 -0
  78. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions-constants.js.map +1 -0
  79. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/upcoming-sessions/upcoming-sessions-styled.js +1 -1
  80. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions-styled.js.map +1 -0
  81. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions-types.js.map +1 -0
  82. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/upcoming-sessions/upcoming-sessions.js +14 -14
  83. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions.js.map +1 -0
  84. package/dist/features/parent-dashboard/hooks/use-fetch-parent-home.js +1 -1
  85. package/dist/features/parent-dashboard/hooks/use-fetch-parent-home.js.map +1 -1
  86. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js +48 -46
  87. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js.map +1 -1
  88. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.js +21 -0
  89. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.js.map +1 -0
  90. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js +85 -0
  91. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js.map +1 -0
  92. package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js +23 -0
  93. package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js.map +1 -0
  94. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.js +55 -0
  95. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.js.map +1 -0
  96. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js +71 -0
  97. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js.map +1 -0
  98. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js +119 -0
  99. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js.map +1 -0
  100. package/dist/features/parent-dashboard/modals/hooks/use-pla-model-handlers.js +58 -0
  101. package/dist/features/parent-dashboard/modals/hooks/use-pla-model-handlers.js.map +1 -0
  102. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js +16 -17
  103. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js.map +1 -1
  104. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js +4 -8
  105. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js.map +1 -1
  106. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +3 -3
  107. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +1 -1
  108. package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js +76 -0
  109. package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js.map +1 -0
  110. package/dist/features/parent-dashboard/parent-dashboard-constants.js +45 -4
  111. package/dist/features/parent-dashboard/parent-dashboard-constants.js.map +1 -1
  112. package/dist/features/parent-dashboard/parent-dashboard-types.js +3 -3
  113. package/dist/features/parent-dashboard/parent-dashboard-types.js.map +1 -1
  114. package/dist/features/parent-dashboard/parent-dashboard-view.js +197 -174
  115. package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -1
  116. package/dist/features/stickers/sticker-selector/sticker-selector.js +57 -58
  117. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -1
  118. package/dist/features/stickers/stickers-effects/stickers-effects-helper.js.map +1 -1
  119. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js +17 -32
  120. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -1
  121. package/dist/features/stickers/stickers-effects/stickers-effects.js +56 -40
  122. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -1
  123. package/dist/features/student-details/class-details/class-details-utils.js +6 -6
  124. package/dist/features/trial-session/api/teacher-availability.js +9 -0
  125. package/dist/features/trial-session/api/teacher-availability.js.map +1 -0
  126. package/dist/features/trial-session/comps/class-preference/class-preference.js +74 -58
  127. package/dist/features/trial-session/comps/class-preference/class-preference.js.map +1 -1
  128. package/dist/features/trial-session/comps/class-preference/helpers.js +28 -0
  129. package/dist/features/trial-session/comps/class-preference/helpers.js.map +1 -0
  130. package/dist/features/trial-session/comps/learning-plan/index.js +47 -45
  131. package/dist/features/trial-session/comps/learning-plan/index.js.map +1 -1
  132. package/dist/features/trial-session/comps/navigation-bar/index.js +41 -40
  133. package/dist/features/trial-session/comps/navigation-bar/index.js.map +1 -1
  134. package/dist/features/trial-session/comps/school-goals/school-goals.js +59 -57
  135. package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
  136. package/dist/features/trial-session/comps/session-report/session-report.js +15 -15
  137. package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
  138. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +41 -40
  139. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
  140. package/dist/features/trial-session/comps/student-feedback/student-feedback-constants.js +5 -0
  141. package/dist/features/trial-session/comps/student-feedback/student-feedback-constants.js.map +1 -1
  142. package/dist/features/trial-session/comps/student-feedback/student-feedback.js +96 -51
  143. package/dist/features/trial-session/comps/student-feedback/student-feedback.js.map +1 -1
  144. package/dist/features/trial-session/comps/student-profile/student-profile.js +70 -63
  145. package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
  146. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +43 -44
  147. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +1 -1
  148. package/dist/features/trial-session/comps/test-prep/test-prep.js +41 -40
  149. package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
  150. package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game.js +60 -61
  151. package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game.js.map +1 -1
  152. package/dist/features/trial-session/helper.js +76 -61
  153. package/dist/features/trial-session/helper.js.map +1 -1
  154. package/dist/features/trial-session/hooks/use-slide-config-update.js +49 -0
  155. package/dist/features/trial-session/hooks/use-slide-config-update.js.map +1 -0
  156. package/dist/features/trial-session/hooks/use-trial-session-navigation.js +174 -144
  157. package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
  158. package/dist/features/trial-session/trial-session-types.js.map +1 -1
  159. package/dist/features/trial-session/trial-session-view.js +99 -110
  160. package/dist/features/trial-session/trial-session-view.js.map +1 -1
  161. package/dist/features/ui/accordion/accordion-items/accordion-items.js +13 -13
  162. package/dist/features/ui/accordion/accordion-items/accordion-items.js.map +1 -1
  163. package/dist/features/ui/modals/modal-styled.js +45 -13
  164. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  165. package/dist/features/ui/modals/modal.js +31 -31
  166. package/dist/features/ui/modals/modal.js.map +1 -1
  167. package/dist/features/utils/utils.js +1 -1
  168. package/dist/features/utils/utils.js.map +1 -1
  169. package/dist/index.d.ts +95 -144
  170. package/dist/index.js +292 -301
  171. package/dist/index.js.map +1 -1
  172. package/dist/static/learning-session-grid-bg-mobile.8d2b7258.gif +0 -0
  173. package/dist/static/way-forward-grid-bg-mobile.374043d7.gif +0 -0
  174. package/dist/static/your-goals-grid-bg-mobile.62557024.gif +0 -0
  175. package/package.json +2 -3
  176. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js +0 -12
  177. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js.map +0 -1
  178. package/dist/features/stickers/sticker-selector/hooks/use-handle-sticker-send.js +0 -32
  179. package/dist/features/stickers/sticker-selector/hooks/use-handle-sticker-send.js.map +0 -1
  180. package/dist/features/stickers/sticker-selector/hooks/use-stickers-journey/use-stickers-journey.js +0 -72
  181. package/dist/features/stickers/sticker-selector/hooks/use-stickers-journey/use-stickers-journey.js.map +0 -1
  182. package/dist/features/stickers/stickers-effects/comps/sticker-with-fallback.js +0 -34
  183. package/dist/features/stickers/stickers-effects/comps/sticker-with-fallback.js.map +0 -1
  184. package/dist/features/stickers/stickers-effects/constants.js +0 -26
  185. package/dist/features/stickers/stickers-effects/constants.js.map +0 -1
  186. package/dist/features/stickers/stickers-effects/context/sticker-provider.js +0 -28
  187. package/dist/features/stickers/stickers-effects/context/sticker-provider.js.map +0 -1
  188. package/dist/features/stickers/stickers-effects/hooks/use-stickers.js +0 -12
  189. package/dist/features/stickers/stickers-effects/hooks/use-stickers.js.map +0 -1
  190. package/dist/features/stickers/stickers-effects/stickers-effects-types.js +0 -6
  191. package/dist/features/stickers/stickers-effects/stickers-effects-types.js.map +0 -1
  192. package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js.map +0 -1
  193. package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js.map +0 -1
  194. package/dist/features/trial-session/comps/pla/next-steps/next-steps.js.map +0 -1
  195. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js +0 -29
  196. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js.map +0 -1
  197. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js +0 -132
  198. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js.map +0 -1
  199. package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js +0 -11
  200. package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js.map +0 -1
  201. package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js +0 -19
  202. package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js.map +0 -1
  203. package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js.map +0 -1
  204. package/dist/features/trial-session/comps/pla/session-status/session-status.js +0 -127
  205. package/dist/features/trial-session/comps/pla/session-status/session-status.js.map +0 -1
  206. package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js.map +0 -1
  207. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js +0 -53
  208. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js.map +0 -1
  209. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js.map +0 -1
  210. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js +0 -56
  211. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js.map +0 -1
  212. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js.map +0 -1
  213. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js.map +0 -1
  214. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js.map +0 -1
  215. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js.map +0 -1
  216. package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +0 -10
  217. package/dist/node_modules/date-fns/_lib/getRoundingMethod.js.map +0 -1
  218. package/dist/node_modules/date-fns/differenceInMilliseconds.js +0 -9
  219. package/dist/node_modules/date-fns/differenceInMilliseconds.js.map +0 -1
  220. package/dist/node_modules/date-fns/differenceInSeconds.js +0 -11
  221. package/dist/node_modules/date-fns/differenceInSeconds.js.map +0 -1
  222. package/dist/static/trophy.a8ea85ef.json +0 -6813
  223. /package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/upcoming-sessions/upcoming-sessions-constants.js +0 -0
  224. /package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/upcoming-sessions/upcoming-sessions-types.js +0 -0
@@ -1,65 +1,65 @@
1
- import { jsx as o, jsxs as b } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as b } from "react/jsx-runtime";
2
2
  import { captureException as v } from "@sentry/browser";
3
- import { memo as x, useCallback as g, Suspense as a } from "react";
3
+ import { memo as x, useCallback as g, Suspense as c } from "react";
4
4
  import { ErrorBoundary as h } from "react-error-boundary";
5
5
  import { useTheme as B } from "styled-components";
6
6
  import S from "../../../assets/line-icons/icons/cross.js";
7
- import c from "../error/error.js";
7
+ import d from "../error/error.js";
8
8
  import W from "../buttons/clickable/clickable.js";
9
9
  import w from "../layout/flex-view.js";
10
- import d from "../loader/app-loader/app-loader.js";
10
+ import s from "../loader/app-loader/app-loader.js";
11
11
  import { EDeviceType as y } from "../theme/constants.js";
12
- import { ModalContainer as m, BottomSheetModal as A, ModalLoaderWrapper as k, SpotlightModal as L, BaseModal as j, CloseButtonContainer as D, BaseModalContent as I } from "./modal-styled.js";
13
- const Q = x(({ modal: u, isClosing: r = !1, onClose: s }) => {
14
- const { device: $ } = B(), C = $ <= y.MOBILE, { renderAs: p, element: e, modalWidth: i, isDismissable: f, renderOnMobileAs: M, blocking: l = !0 } = u, t = g((n) => {
15
- v(n);
16
- }, []), E = g((n) => {
17
- n.stopPropagation();
12
+ import { ModalContainer as m, BottomSheetModal as A, ModalLoaderWrapper as k, SpotlightModal as L, TransparentModalContainer as T, BaseModal as j, CloseButtonContainer as D, BaseModalContent as I } from "./modal-styled.js";
13
+ const R = x(({ modal: u, isClosing: o = !1, onClose: p }) => {
14
+ const { device: $ } = B(), C = $ <= y.MOBILE, { renderAs: l, element: e, modalWidth: t, isDismissable: f, renderOnMobileAs: M, blocking: i = !0 } = u, n = g((a) => {
15
+ v(a);
16
+ }, []), E = g((a) => {
17
+ a.stopPropagation();
18
18
  }, []);
19
- return p === "bottom-sheet" || C && M === "bottom-sheet" ? /* @__PURE__ */ o(
19
+ return l === "bottom-sheet" || C && M === "bottom-sheet" ? /* @__PURE__ */ r(
20
20
  m,
21
21
  {
22
- $isClosing: r,
23
- $blocking: l,
24
- onClick: f ? s : () => null,
25
- children: /* @__PURE__ */ o(A, { $isClosing: r, onClick: E, children: /* @__PURE__ */ o(
22
+ $isClosing: o,
23
+ $blocking: i,
24
+ onClick: f ? p : () => null,
25
+ children: /* @__PURE__ */ r(A, { $isClosing: o, onClick: E, children: /* @__PURE__ */ r(
26
26
  h,
27
27
  {
28
- fallback: /* @__PURE__ */ o(w, { $gap: 24, children: /* @__PURE__ */ o(c, { height: "100%" }) }),
29
- onError: t,
30
- children: /* @__PURE__ */ o(a, { fallback: /* @__PURE__ */ o(d, { height: "50vh" }), children: e })
28
+ fallback: /* @__PURE__ */ r(w, { $gap: 24, children: /* @__PURE__ */ r(d, { height: "100%" }) }),
29
+ onError: n,
30
+ children: /* @__PURE__ */ r(c, { fallback: /* @__PURE__ */ r(s, { height: "50vh" }), children: e })
31
31
  }
32
32
  ) })
33
33
  }
34
- ) : p === "spotlight" ? /* @__PURE__ */ o(m, { $isClosing: r, $blocking: l, children: /* @__PURE__ */ o(
34
+ ) : l === "spotlight" ? /* @__PURE__ */ r(m, { $isClosing: o, $blocking: i, children: /* @__PURE__ */ r(
35
35
  h,
36
36
  {
37
- fallback: /* @__PURE__ */ o(k, { children: /* @__PURE__ */ o(c, { height: "100vh" }) }),
38
- onError: t,
37
+ fallback: /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(d, { height: "100vh" }) }),
38
+ onError: n,
39
39
  children: /* @__PURE__ */ b(
40
- a,
40
+ c,
41
41
  {
42
- fallback: /* @__PURE__ */ o(k, { children: /* @__PURE__ */ o(d, { height: "100vh" }) }),
42
+ fallback: /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(s, { height: "100vh" }) }),
43
43
  children: [
44
- /* @__PURE__ */ o(L, { $isClosing: r }),
44
+ /* @__PURE__ */ r(L, { $isClosing: o }),
45
45
  e
46
46
  ]
47
47
  }
48
48
  )
49
49
  }
50
- ) }) : /* @__PURE__ */ o(m, { $isClosing: r, $blocking: l, children: /* @__PURE__ */ b(j, { $isClosing: r, $width: i, children: [
51
- f !== !1 && /* @__PURE__ */ o(D, { $modalWidth: i, children: /* @__PURE__ */ o(W, { label: "Close", onClick: s, children: /* @__PURE__ */ o(S, { width: 40, height: 40 }) }) }),
52
- /* @__PURE__ */ o(I, { $modalWidth: i, children: /* @__PURE__ */ o(
50
+ ) }) : l === "fullscreen-transparent" ? /* @__PURE__ */ r(T, { $isClosing: o, $blocking: i, children: e }) : /* @__PURE__ */ r(m, { $isClosing: o, $blocking: i, children: /* @__PURE__ */ b(j, { $isClosing: o, $width: t, children: [
51
+ f !== !1 && /* @__PURE__ */ r(D, { $modalWidth: t, children: /* @__PURE__ */ r(W, { label: "Close", onClick: p, children: /* @__PURE__ */ r(S, { width: 40, height: 40 }) }) }),
52
+ /* @__PURE__ */ r(I, { $modalWidth: t, children: /* @__PURE__ */ r(
53
53
  h,
54
54
  {
55
- fallback: /* @__PURE__ */ o(c, { height: "50vh", size: "compact" }),
56
- onError: t,
57
- children: /* @__PURE__ */ o(a, { fallback: /* @__PURE__ */ o(d, { height: "50vh" }), children: e })
55
+ fallback: /* @__PURE__ */ r(d, { height: "50vh", size: "compact" }),
56
+ onError: n,
57
+ children: /* @__PURE__ */ r(c, { fallback: /* @__PURE__ */ r(s, { height: "50vh" }), children: e })
58
58
  }
59
59
  ) })
60
60
  ] }) });
61
61
  });
62
62
  export {
63
- Q as default
63
+ R as default
64
64
  };
65
65
  //# sourceMappingURL=modal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modal.js","sources":["../../../../src/features/ui/modals/modal.tsx"],"sourcesContent":["import type { IModalProps } from './modal-types';\nimport type { FC } from 'react';\n\nimport { captureException } from '@sentry/browser';\nimport { memo, Suspense, useCallback } from 'react';\nimport { ErrorBoundary } from 'react-error-boundary';\nimport { useTheme } from 'styled-components';\n\nimport CrossIcon from '../../../assets/line-icons/icons/cross';\nimport Error from '../../ui/error/error';\nimport Clickable from '../buttons/clickable/clickable';\nimport FlexView from '../layout/flex-view';\nimport AppLoader from '../loader/app-loader/app-loader';\nimport { EDeviceType } from '../theme/constants';\nimport * as Styled from './modal-styled';\n\n/**\n * Modal component that renders modal content with close button\n * Handles animation state for entry and exit transitions\n */\nconst Modal: FC<IModalProps> = memo(({ modal, isClosing = false, onClose }) => {\n const { device } = useTheme();\n const isMobile = device <= EDeviceType.MOBILE;\n const { renderAs, element, modalWidth, isDismissable, renderOnMobileAs, blocking = true } = modal;\n\n const sentryCaptureException = useCallback((error: Error) => {\n captureException(error);\n }, []);\n\n const handleStopPropagation = useCallback((e: React.MouseEvent) => {\n e.stopPropagation();\n }, []);\n\n if (renderAs === 'bottom-sheet' || (isMobile && renderOnMobileAs === 'bottom-sheet')) {\n return (\n <Styled.ModalContainer\n $isClosing={isClosing}\n $blocking={blocking}\n onClick={isDismissable ? onClose : () => null}\n >\n <Styled.BottomSheetModal $isClosing={isClosing} onClick={handleStopPropagation}>\n <ErrorBoundary\n fallback={\n <FlexView $gap={24}>\n <Error height=\"100%\" />\n </FlexView>\n }\n onError={sentryCaptureException}\n >\n <Suspense fallback={<AppLoader height=\"50vh\" />}>{element}</Suspense>\n </ErrorBoundary>\n </Styled.BottomSheetModal>\n </Styled.ModalContainer>\n );\n }\n\n if (renderAs === 'spotlight') {\n return (\n <Styled.ModalContainer $isClosing={isClosing} $blocking={blocking}>\n <ErrorBoundary\n fallback={\n <Styled.ModalLoaderWrapper>\n <Error height=\"100vh\" />\n </Styled.ModalLoaderWrapper>\n }\n onError={sentryCaptureException}\n >\n <Suspense\n fallback={\n <Styled.ModalLoaderWrapper>\n <AppLoader height=\"100vh\" />\n </Styled.ModalLoaderWrapper>\n }\n >\n <Styled.SpotlightModal $isClosing={isClosing} />\n {element}\n </Suspense>\n </ErrorBoundary>\n </Styled.ModalContainer>\n );\n }\n\n return (\n <Styled.ModalContainer $isClosing={isClosing} $blocking={blocking}>\n <Styled.BaseModal $isClosing={isClosing} $width={modalWidth}>\n {isDismissable !== false && (\n <Styled.CloseButtonContainer $modalWidth={modalWidth}>\n <Clickable label=\"Close\" onClick={onClose}>\n <CrossIcon width={40} height={40} />\n </Clickable>\n </Styled.CloseButtonContainer>\n )}\n <Styled.BaseModalContent $modalWidth={modalWidth}>\n <ErrorBoundary\n fallback={<Error height=\"50vh\" size=\"compact\" />}\n onError={sentryCaptureException}\n >\n <Suspense fallback={<AppLoader height=\"50vh\" />}>{element}</Suspense>\n </ErrorBoundary>\n </Styled.BaseModalContent>\n </Styled.BaseModal>\n </Styled.ModalContainer>\n );\n});\n\nexport default Modal;\n"],"names":["Modal","memo","modal","isClosing","onClose","device","useTheme","isMobile","EDeviceType","renderAs","element","modalWidth","isDismissable","renderOnMobileAs","blocking","sentryCaptureException","useCallback","error","captureException","handleStopPropagation","e","jsx","Styled.ModalContainer","Styled.BottomSheetModal","ErrorBoundary","FlexView","Error","Suspense","AppLoader","Styled.ModalLoaderWrapper","jsxs","Styled.SpotlightModal","Styled.BaseModal","Styled.CloseButtonContainer","Clickable","CrossIcon","Styled.BaseModalContent"],"mappings":";;;;;;;;;;;;AAoBM,MAAAA,IAAyBC,EAAK,CAAC,EAAE,OAAAC,GAAO,WAAAC,IAAY,IAAO,SAAAC,QAAc;AACvE,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAWF,KAAUG,EAAY,QACjC,EAAE,UAAAC,GAAU,SAAAC,GAAS,YAAAC,GAAY,eAAAC,GAAe,kBAAAC,GAAkB,UAAAC,IAAW,GAAS,IAAAZ,GAEtFa,IAAyBC,EAAY,CAACC,MAAiB;AAC3D,IAAAC,EAAiBD,CAAK;AAAA,EACxB,GAAG,CAAE,CAAA,GAECE,IAAwBH,EAAY,CAACI,MAAwB;AACjE,IAAAA,EAAE,gBAAgB;AAAA,EACpB,GAAG,CAAE,CAAA;AAEL,SAAIX,MAAa,kBAAmBF,KAAYM,MAAqB,iBAEjE,gBAAAQ;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,YAAYnB;AAAA,MACZ,WAAWW;AAAA,MACX,SAASF,IAAgBR,IAAU,MAAM;AAAA,MAEzC,4BAACmB,GAAA,EAAwB,YAAYpB,GAAW,SAASgB,GACvD,UAAA,gBAAAE;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,4BACGC,GAAS,EAAA,MAAM,IACd,UAAC,gBAAAJ,EAAAK,GAAA,EAAM,QAAO,OAAA,CAAO,EACvB,CAAA;AAAA,UAEF,SAASX;AAAA,UAET,UAAA,gBAAAM,EAACM,KAAS,UAAU,gBAAAN,EAACO,KAAU,QAAO,OAAO,CAAA,GAAK,UAAQlB,EAAA,CAAA;AAAA,QAAA;AAAA,MAAA,GAE9D;AAAA,IAAA;AAAA,EAAA,IAKFD,MAAa,gCAEZa,GAAA,EAAsB,YAAYnB,GAAW,WAAWW,GACvD,UAAA,gBAAAO;AAAA,IAACG;AAAA,IAAA;AAAA,MACC,4BACGK,GAAA,EACC,UAAC,gBAAAR,EAAAK,GAAA,EAAM,QAAO,QAAQ,CAAA,GACxB;AAAA,MAEF,SAASX;AAAA,MAET,UAAA,gBAAAe;AAAA,QAACH;AAAA,QAAA;AAAA,UACC,4BACGE,GAAA,EACC,UAAC,gBAAAR,EAAAO,GAAA,EAAU,QAAO,QAAQ,CAAA,GAC5B;AAAA,UAGF,UAAA;AAAA,YAAA,gBAAAP,EAACU,GAAA,EAAsB,YAAY5B,EAAW,CAAA;AAAA,YAC7CO;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAEJ,EAAA,CAAA,IAKD,gBAAAW,EAAAC,GAAA,EAAsB,YAAYnB,GAAW,WAAWW,GACvD,UAAA,gBAAAgB,EAACE,GAAA,EAAiB,YAAY7B,GAAW,QAAQQ,GAC9C,UAAA;AAAA,IAAkBC,MAAA,wBAChBqB,GAAA,EAA4B,aAAatB,GACxC,4BAACuB,GAAU,EAAA,OAAM,SAAQ,SAAS9B,GAChC,4BAAC+B,GAAU,EAAA,OAAO,IAAI,QAAQ,IAAI,GACpC,EACF,CAAA;AAAA,IAED,gBAAAd,EAAAe,GAAA,EAAwB,aAAazB,GACpC,UAAA,gBAAAU;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,UAAW,gBAAAH,EAAAK,GAAA,EAAM,QAAO,QAAO,MAAK,WAAU;AAAA,QAC9C,SAASX;AAAA,QAET,UAAA,gBAAAM,EAACM,KAAS,UAAU,gBAAAN,EAACO,KAAU,QAAO,OAAO,CAAA,GAAK,UAAQlB,EAAA,CAAA;AAAA,MAAA;AAAA,IAAA,GAE9D;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAEJ,CAAC;"}
1
+ {"version":3,"file":"modal.js","sources":["../../../../src/features/ui/modals/modal.tsx"],"sourcesContent":["import type { IModalProps } from './modal-types';\nimport type { FC } from 'react';\n\nimport { captureException } from '@sentry/browser';\nimport { memo, Suspense, useCallback } from 'react';\nimport { ErrorBoundary } from 'react-error-boundary';\nimport { useTheme } from 'styled-components';\n\nimport CrossIcon from '../../../assets/line-icons/icons/cross';\nimport Error from '../../ui/error/error';\nimport Clickable from '../buttons/clickable/clickable';\nimport FlexView from '../layout/flex-view';\nimport AppLoader from '../loader/app-loader/app-loader';\nimport { EDeviceType } from '../theme/constants';\nimport * as Styled from './modal-styled';\n\n/**\n * Modal component that renders modal content with close button\n * Handles animation state for entry and exit transitions\n */\nconst Modal: FC<IModalProps> = memo(({ modal, isClosing = false, onClose }) => {\n const { device } = useTheme();\n const isMobile = device <= EDeviceType.MOBILE;\n const { renderAs, element, modalWidth, isDismissable, renderOnMobileAs, blocking = true } = modal;\n\n const sentryCaptureException = useCallback((error: Error) => {\n captureException(error);\n }, []);\n\n const handleStopPropagation = useCallback((e: React.MouseEvent) => {\n e.stopPropagation();\n }, []);\n\n if (renderAs === 'bottom-sheet' || (isMobile && renderOnMobileAs === 'bottom-sheet')) {\n return (\n <Styled.ModalContainer\n $isClosing={isClosing}\n $blocking={blocking}\n onClick={isDismissable ? onClose : () => null}\n >\n <Styled.BottomSheetModal $isClosing={isClosing} onClick={handleStopPropagation}>\n <ErrorBoundary\n fallback={\n <FlexView $gap={24}>\n <Error height=\"100%\" />\n </FlexView>\n }\n onError={sentryCaptureException}\n >\n <Suspense fallback={<AppLoader height=\"50vh\" />}>{element}</Suspense>\n </ErrorBoundary>\n </Styled.BottomSheetModal>\n </Styled.ModalContainer>\n );\n }\n\n if (renderAs === 'spotlight') {\n return (\n <Styled.ModalContainer $isClosing={isClosing} $blocking={blocking}>\n <ErrorBoundary\n fallback={\n <Styled.ModalLoaderWrapper>\n <Error height=\"100vh\" />\n </Styled.ModalLoaderWrapper>\n }\n onError={sentryCaptureException}\n >\n <Suspense\n fallback={\n <Styled.ModalLoaderWrapper>\n <AppLoader height=\"100vh\" />\n </Styled.ModalLoaderWrapper>\n }\n >\n <Styled.SpotlightModal $isClosing={isClosing} />\n {element}\n </Suspense>\n </ErrorBoundary>\n </Styled.ModalContainer>\n );\n }\n\n if (renderAs === 'fullscreen-transparent') {\n return (\n <Styled.TransparentModalContainer $isClosing={isClosing} $blocking={blocking}>\n {element}\n </Styled.TransparentModalContainer>\n );\n }\n\n return (\n <Styled.ModalContainer $isClosing={isClosing} $blocking={blocking}>\n <Styled.BaseModal $isClosing={isClosing} $width={modalWidth}>\n {isDismissable !== false && (\n <Styled.CloseButtonContainer $modalWidth={modalWidth}>\n <Clickable label=\"Close\" onClick={onClose}>\n <CrossIcon width={40} height={40} />\n </Clickable>\n </Styled.CloseButtonContainer>\n )}\n <Styled.BaseModalContent $modalWidth={modalWidth}>\n <ErrorBoundary\n fallback={<Error height=\"50vh\" size=\"compact\" />}\n onError={sentryCaptureException}\n >\n <Suspense fallback={<AppLoader height=\"50vh\" />}>{element}</Suspense>\n </ErrorBoundary>\n </Styled.BaseModalContent>\n </Styled.BaseModal>\n </Styled.ModalContainer>\n );\n});\n\nexport default Modal;\n"],"names":["Modal","memo","modal","isClosing","onClose","device","useTheme","isMobile","EDeviceType","renderAs","element","modalWidth","isDismissable","renderOnMobileAs","blocking","sentryCaptureException","useCallback","error","captureException","handleStopPropagation","e","jsx","Styled.ModalContainer","Styled.BottomSheetModal","ErrorBoundary","FlexView","Error","Suspense","AppLoader","Styled.ModalLoaderWrapper","jsxs","Styled.SpotlightModal","Styled.TransparentModalContainer","Styled.BaseModal","Styled.CloseButtonContainer","Clickable","CrossIcon","Styled.BaseModalContent"],"mappings":";;;;;;;;;;;;AAoBM,MAAAA,IAAyBC,EAAK,CAAC,EAAE,OAAAC,GAAO,WAAAC,IAAY,IAAO,SAAAC,QAAc;AACvE,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAWF,KAAUG,EAAY,QACjC,EAAE,UAAAC,GAAU,SAAAC,GAAS,YAAAC,GAAY,eAAAC,GAAe,kBAAAC,GAAkB,UAAAC,IAAW,GAAS,IAAAZ,GAEtFa,IAAyBC,EAAY,CAACC,MAAiB;AAC3D,IAAAC,EAAiBD,CAAK;AAAA,EACxB,GAAG,CAAE,CAAA,GAECE,IAAwBH,EAAY,CAACI,MAAwB;AACjE,IAAAA,EAAE,gBAAgB;AAAA,EACpB,GAAG,CAAE,CAAA;AAEL,SAAIX,MAAa,kBAAmBF,KAAYM,MAAqB,iBAEjE,gBAAAQ;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,YAAYnB;AAAA,MACZ,WAAWW;AAAA,MACX,SAASF,IAAgBR,IAAU,MAAM;AAAA,MAEzC,4BAACmB,GAAA,EAAwB,YAAYpB,GAAW,SAASgB,GACvD,UAAA,gBAAAE;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,4BACGC,GAAS,EAAA,MAAM,IACd,UAAC,gBAAAJ,EAAAK,GAAA,EAAM,QAAO,OAAA,CAAO,EACvB,CAAA;AAAA,UAEF,SAASX;AAAA,UAET,UAAA,gBAAAM,EAACM,KAAS,UAAU,gBAAAN,EAACO,KAAU,QAAO,OAAO,CAAA,GAAK,UAAQlB,EAAA,CAAA;AAAA,QAAA;AAAA,MAAA,GAE9D;AAAA,IAAA;AAAA,EAAA,IAKFD,MAAa,gCAEZa,GAAA,EAAsB,YAAYnB,GAAW,WAAWW,GACvD,UAAA,gBAAAO;AAAA,IAACG;AAAA,IAAA;AAAA,MACC,4BACGK,GAAA,EACC,UAAC,gBAAAR,EAAAK,GAAA,EAAM,QAAO,QAAQ,CAAA,GACxB;AAAA,MAEF,SAASX;AAAA,MAET,UAAA,gBAAAe;AAAA,QAACH;AAAA,QAAA;AAAA,UACC,4BACGE,GAAA,EACC,UAAC,gBAAAR,EAAAO,GAAA,EAAU,QAAO,QAAQ,CAAA,GAC5B;AAAA,UAGF,UAAA;AAAA,YAAA,gBAAAP,EAACU,GAAA,EAAsB,YAAY5B,EAAW,CAAA;AAAA,YAC7CO;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAEJ,EAAA,CAAA,IAIAD,MAAa,2BAEb,gBAAAY,EAACW,GAAA,EAAiC,YAAY7B,GAAW,WAAWW,GACjE,UACHJ,EAAA,CAAA,IAKD,gBAAAW,EAAAC,GAAA,EAAsB,YAAYnB,GAAW,WAAWW,GACvD,UAAA,gBAAAgB,EAACG,GAAA,EAAiB,YAAY9B,GAAW,QAAQQ,GAC9C,UAAA;AAAA,IAAkBC,MAAA,wBAChBsB,GAAA,EAA4B,aAAavB,GACxC,4BAACwB,GAAU,EAAA,OAAM,SAAQ,SAAS/B,GAChC,4BAACgC,GAAU,EAAA,OAAO,IAAI,QAAQ,IAAI,GACpC,EACF,CAAA;AAAA,IAED,gBAAAf,EAAAgB,GAAA,EAAwB,aAAa1B,GACpC,UAAA,gBAAAU;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,UAAW,gBAAAH,EAAAK,GAAA,EAAM,QAAO,QAAO,MAAK,WAAU;AAAA,QAC9C,SAASX;AAAA,QAET,UAAA,gBAAAM,EAACM,KAAS,UAAU,gBAAAN,EAACO,KAAU,QAAO,OAAO,CAAA,GAAK,UAAQlB,EAAA,CAAA;AAAA,MAAA;AAAA,IAAA,GAE9D;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAEJ,CAAC;"}
@@ -1,7 +1,7 @@
1
1
  import { addYears as s } from "../../node_modules/date-fns/addYears.js";
2
2
  const i = (r) => Array.isArray(r) && r.length > 0, c = (r) => {
3
3
  const t = (a) => a.toString().padStart(2, "0"), o = Math.floor(r / 3600), e = Math.floor(r % 3600 / 60), n = r % 60;
4
- return o > 0 ? `${t(o)}:${t(e)}:${t(n)}` : `${t(e)}:${t(n)}`;
4
+ return o > 0 ? `${t(o)}:${t(e)}:${t(n)}` : `${t(e)}:${t(Math.abs(n))}`;
5
5
  }, l = (r) => {
6
6
  let t = null;
7
7
  return { promise: new Promise((e) => {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../src/features/utils/utils.ts"],"sourcesContent":["import { addYears } from 'date-fns';\n\nconst isNonEmptyArray = (array: unknown) => {\n return Array.isArray(array) && array.length > 0;\n};\n\n// format the time in HH:MM:SS\nconst formatTimeInHHMMSS = (seconds: number) => {\n const pad = (num: number) => num.toString().padStart(2, '0');\n\n const h = Math.floor(seconds / 3600);\n const m = Math.floor((seconds % 3600) / 60);\n const s = seconds % 60;\n\n return h > 0 ? `${pad(h)}:${pad(m)}:${pad(s)}` : `${pad(m)}:${pad(s)}`;\n};\n\nconst delay = (delayInMs: number) => {\n let timerId: ReturnType<typeof setTimeout> | null = null;\n const promise = new Promise(res => {\n timerId = setTimeout(() => {\n res('resolved');\n }, delayInMs);\n });\n\n return { promise, timerId };\n};\n\nconst epochTimestampAfterOneYear = () => {\n const today = new Date();\n const oneYearLater = addYears(today, 1);\n\n return Math.floor(oneYearLater.getTime() / 1000);\n};\n\nexport { isNonEmptyArray, formatTimeInHHMMSS, delay, epochTimestampAfterOneYear };\n"],"names":["isNonEmptyArray","array","formatTimeInHHMMSS","seconds","pad","num","h","m","s","delay","delayInMs","timerId","res","epochTimestampAfterOneYear","oneYearLater","addYears"],"mappings":";AAEM,MAAAA,IAAkB,CAACC,MAChB,MAAM,QAAQA,CAAK,KAAKA,EAAM,SAAS,GAI1CC,IAAqB,CAACC,MAAoB;AACxC,QAAAC,IAAM,CAACC,MAAgBA,EAAI,WAAW,SAAS,GAAG,GAAG,GAErDC,IAAI,KAAK,MAAMH,IAAU,IAAI,GAC7BI,IAAI,KAAK,MAAOJ,IAAU,OAAQ,EAAE,GACpCK,IAAIL,IAAU;AAEb,SAAAG,IAAI,IAAI,GAAGF,EAAIE,CAAC,CAAC,IAAIF,EAAIG,CAAC,CAAC,IAAIH,EAAII,CAAC,CAAC,KAAK,GAAGJ,EAAIG,CAAC,CAAC,IAAIH,EAAII,CAAC,CAAC;AACtE,GAEMC,IAAQ,CAACC,MAAsB;AACnC,MAAIC,IAAgD;AAO7C,SAAA,EAAE,SANO,IAAI,QAAQ,CAAOC,MAAA;AACjC,IAAAD,IAAU,WAAW,MAAM;AACzB,MAAAC,EAAI,UAAU;AAAA,OACbF,CAAS;AAAA,EAAA,CACb,GAEiB,SAAAC;AACpB,GAEME,IAA6B,MAAM;AAEjC,QAAAC,IAAeC,sBADH,QACmB,CAAC;AAEtC,SAAO,KAAK,MAAMD,EAAa,YAAY,GAAI;AACjD;"}
1
+ {"version":3,"file":"utils.js","sources":["../../../src/features/utils/utils.ts"],"sourcesContent":["import { addYears } from 'date-fns';\n\nconst isNonEmptyArray = (array: unknown) => {\n return Array.isArray(array) && array.length > 0;\n};\n\n// format the time in HH:MM:SS\nconst formatTimeInHHMMSS = (seconds: number) => {\n const pad = (num: number) => num.toString().padStart(2, '0');\n\n const h = Math.floor(seconds / 3600);\n const m = Math.floor((seconds % 3600) / 60);\n const s = seconds % 60;\n\n return h > 0 ? `${pad(h)}:${pad(m)}:${pad(s)}` : `${pad(m)}:${pad(Math.abs(s))}`;\n};\n\nconst delay = (delayInMs: number) => {\n let timerId: ReturnType<typeof setTimeout> | null = null;\n const promise = new Promise(res => {\n timerId = setTimeout(() => {\n res('resolved');\n }, delayInMs);\n });\n\n return { promise, timerId };\n};\n\nconst epochTimestampAfterOneYear = () => {\n const today = new Date();\n const oneYearLater = addYears(today, 1);\n\n return Math.floor(oneYearLater.getTime() / 1000);\n};\n\nexport { isNonEmptyArray, formatTimeInHHMMSS, delay, epochTimestampAfterOneYear };\n"],"names":["isNonEmptyArray","array","formatTimeInHHMMSS","seconds","pad","num","h","m","s","delay","delayInMs","timerId","res","epochTimestampAfterOneYear","oneYearLater","addYears"],"mappings":";AAEM,MAAAA,IAAkB,CAACC,MAChB,MAAM,QAAQA,CAAK,KAAKA,EAAM,SAAS,GAI1CC,IAAqB,CAACC,MAAoB;AACxC,QAAAC,IAAM,CAACC,MAAgBA,EAAI,WAAW,SAAS,GAAG,GAAG,GAErDC,IAAI,KAAK,MAAMH,IAAU,IAAI,GAC7BI,IAAI,KAAK,MAAOJ,IAAU,OAAQ,EAAE,GACpCK,IAAIL,IAAU;AAEb,SAAAG,IAAI,IAAI,GAAGF,EAAIE,CAAC,CAAC,IAAIF,EAAIG,CAAC,CAAC,IAAIH,EAAII,CAAC,CAAC,KAAK,GAAGJ,EAAIG,CAAC,CAAC,IAAIH,EAAI,KAAK,IAAII,CAAC,CAAC,CAAC;AAChF,GAEMC,IAAQ,CAACC,MAAsB;AACnC,MAAIC,IAAgD;AAO7C,SAAA,EAAE,SANO,IAAI,QAAQ,CAAOC,MAAA;AACjC,IAAAD,IAAU,WAAW,MAAM;AACzB,MAAAC,EAAI,UAAU;AAAA,OACbF,CAAS;AAAA,EAAA,CACb,GAEiB,SAAAC;AACpB,GAEME,IAA6B,MAAM;AAEjC,QAAAC,IAAeC,sBADH,QACmB,CAAC;AAEtC,SAAO,KAAK,MAAMD,EAAa,YAAY,GAAI;AACjD;"}