@cuemath/leap 3.2.16-link.2 → 3.2.16-mb

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 (243) hide show
  1. package/dist/assets/illustrations/illustrations.js +0 -6
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lottie/lottie.js +1 -11
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/auth/account-selector/account-selector.js +25 -26
  6. package/dist/features/auth/account-selector/account-selector.js.map +1 -1
  7. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +14 -20
  8. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
  9. package/dist/features/auth/comps/resend-otp/resend-otp.js +47 -54
  10. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
  11. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +17 -29
  12. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +1 -1
  13. package/dist/features/auth/comps/tabs/tabs-styled.js +10 -22
  14. package/dist/features/auth/comps/tabs/tabs-styled.js.map +1 -1
  15. package/dist/features/auth/comps/tabs/tabs.js +5 -5
  16. package/dist/features/auth/comps/tabs/tabs.js.map +1 -1
  17. package/dist/features/auth/comps/user-list/user-item/user-item.js +31 -30
  18. package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
  19. package/dist/features/auth/comps/user-list/user-list.js +34 -35
  20. package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
  21. package/dist/features/auth/forgot-password/forgot-password-styled.js +15 -14
  22. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
  23. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +7 -6
  24. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
  25. package/dist/features/auth/login/login-styled.js +9 -8
  26. package/dist/features/auth/login/login-styled.js.map +1 -1
  27. package/dist/features/chapters-v2/utils/node-card-utils.js +7 -7
  28. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
  29. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +98 -121
  30. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
  31. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +28 -29
  32. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +1 -1
  33. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +42 -43
  34. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -1
  35. package/dist/features/circle-games/games/tutorial/tutorial.js +35 -43
  36. package/dist/features/circle-games/games/tutorial/tutorial.js.map +1 -1
  37. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js +2 -2
  38. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js.map +1 -1
  39. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js +1 -1
  40. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js.map +1 -1
  41. package/dist/features/circle-games/sign-up/comp/username-input/username-input.js +24 -26
  42. package/dist/features/circle-games/sign-up/comp/username-input/username-input.js.map +1 -1
  43. package/dist/features/circle-games/sign-up/constants.js +1 -3
  44. package/dist/features/circle-games/sign-up/constants.js.map +1 -1
  45. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js +42 -42
  46. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js.map +1 -1
  47. package/dist/features/hooks/use-viewport/use-viewport.js +22 -0
  48. package/dist/features/hooks/use-viewport/use-viewport.js.map +1 -0
  49. package/dist/features/journey/comps/coachmark/coachmark.js +27 -29
  50. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  51. package/dist/features/journey/journey-id/journey-id-student.js +2 -2
  52. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  53. package/dist/features/journey/use-journey/journey-context-provider.js +72 -73
  54. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  55. package/dist/features/journey/use-journey/journey-styled.js +4 -6
  56. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  57. package/dist/features/stickers/sticker-data.js +234 -0
  58. package/dist/features/stickers/sticker-data.js.map +1 -0
  59. package/dist/features/{ui/sticker-grid/sticker-grid-styles.js → stickers/sticker-selector/sticker-selector-styles.js} +4 -3
  60. package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +1 -0
  61. package/dist/features/stickers/sticker-selector/sticker-selector.js +25 -0
  62. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -0
  63. package/dist/features/stickers/sticker-selector/sticker.js +57 -0
  64. package/dist/features/stickers/sticker-selector/sticker.js.map +1 -0
  65. package/dist/features/{ui/stickers/stickers-effects.js → stickers/stickers-effects/effects.js} +6 -6
  66. package/dist/features/stickers/stickers-effects/effects.js.map +1 -0
  67. package/dist/features/{ui/stickers/stickers-styled.js → stickers/stickers-effects/stickers-effects-styled.js} +2 -2
  68. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -0
  69. package/dist/features/{ui/stickers/stickers-utils.js → stickers/stickers-effects/stickers-effects-utils.js} +6 -6
  70. package/dist/features/stickers/stickers-effects/stickers-effects-utils.js.map +1 -0
  71. package/dist/features/stickers/stickers-effects/stickers-effects.js +39 -0
  72. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -0
  73. package/dist/features/trial-session/comps/student-profile/student-profile.js +1 -1
  74. package/dist/features/trial-session/comps/teacher-intro/teacher-intro-styled.js +50 -7
  75. package/dist/features/trial-session/comps/teacher-intro/teacher-intro-styled.js.map +1 -1
  76. package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js +69 -15
  77. package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js.map +1 -1
  78. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +60 -12
  79. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
  80. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +77 -72
  81. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  82. package/dist/features/ui/error/error.js +27 -65
  83. package/dist/features/ui/error/error.js.map +1 -1
  84. package/dist/features/ui/image/image.js +1 -1
  85. package/dist/features/ui/image/image.js.map +1 -1
  86. package/dist/features/ui/inputs/base-input/base-input.js +11 -11
  87. package/dist/features/ui/inputs/base-input/base-input.js.map +1 -1
  88. package/dist/features/ui/inputs/text-input/text-input.js +18 -19
  89. package/dist/features/ui/inputs/text-input/text-input.js.map +1 -1
  90. package/dist/features/ui/lottie-animation/lottie-animation.js +29 -25
  91. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  92. package/dist/features/ui/modals/modal-styled.js +58 -69
  93. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  94. package/dist/features/ui/modals/modal.js +14 -50
  95. package/dist/features/ui/modals/modal.js.map +1 -1
  96. package/dist/features/ui/nudge/nudge-styled.js +7 -14
  97. package/dist/features/ui/nudge/nudge-styled.js.map +1 -1
  98. package/dist/features/ui/nudge/nudge.js +12 -13
  99. package/dist/features/ui/nudge/nudge.js.map +1 -1
  100. package/dist/features/ui/streak-icon/streak-icon-styled.js +13 -13
  101. package/dist/features/ui/streak-icon/streak-icon-styled.js.map +1 -1
  102. package/dist/features/ui/streak-icon/streak-icon.js +15 -17
  103. package/dist/features/ui/streak-icon/streak-icon.js.map +1 -1
  104. package/dist/features/ui/text/text.js +38 -44
  105. package/dist/features/ui/text/text.js.map +1 -1
  106. package/dist/features/ui/theme/button.js +78 -78
  107. package/dist/features/ui/theme/button.js.map +1 -1
  108. package/dist/features/ui/theme/constants.js +2 -4
  109. package/dist/features/ui/theme/constants.js.map +1 -1
  110. package/dist/features/ui/theme/get-device.js +3 -3
  111. package/dist/features/ui/theme/get-device.js.map +1 -1
  112. package/dist/features/worksheet/worksheet/constants.js +13 -12
  113. package/dist/features/worksheet/worksheet/constants.js.map +1 -1
  114. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +24 -24
  115. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  116. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +260 -246
  117. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  118. package/dist/features/worksheet/worksheet/worksheet-styled.js +28 -37
  119. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  120. package/dist/features/worksheet/worksheet/worksheet.js +164 -166
  121. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  122. package/dist/index.d.ts +53 -247
  123. package/dist/index.js +585 -633
  124. package/dist/index.js.map +1 -1
  125. package/dist/static/nudge-tap.5cb30093.json +1057 -0
  126. package/package.json +3 -2
  127. package/dist/assets/line-icons/icons/after-noon.js +0 -34
  128. package/dist/assets/line-icons/icons/after-noon.js.map +0 -1
  129. package/dist/assets/line-icons/icons/apple-icon-white.js +0 -42
  130. package/dist/assets/line-icons/icons/apple-icon-white.js.map +0 -1
  131. package/dist/assets/line-icons/icons/cue-board-filled.js +0 -33
  132. package/dist/assets/line-icons/icons/cue-board-filled.js.map +0 -1
  133. package/dist/assets/line-icons/icons/cue-board.js +0 -23
  134. package/dist/assets/line-icons/icons/cue-board.js.map +0 -1
  135. package/dist/assets/line-icons/icons/evening.js +0 -35
  136. package/dist/assets/line-icons/icons/evening.js.map +0 -1
  137. package/dist/assets/line-icons/icons/hint-fill.js +0 -35
  138. package/dist/assets/line-icons/icons/hint-fill.js.map +0 -1
  139. package/dist/assets/line-icons/icons/morning.js +0 -35
  140. package/dist/assets/line-icons/icons/morning.js.map +0 -1
  141. package/dist/assets/line-icons/icons/screen-grab-filled.js +0 -35
  142. package/dist/assets/line-icons/icons/screen-grab-filled.js.map +0 -1
  143. package/dist/assets/line-icons/icons/screen-grab.js +0 -23
  144. package/dist/assets/line-icons/icons/screen-grab.js.map +0 -1
  145. package/dist/assets/line-icons/icons/star3.js +0 -32
  146. package/dist/assets/line-icons/icons/star3.js.map +0 -1
  147. package/dist/assets/line-icons/icons/sticker-filled.js +0 -64
  148. package/dist/assets/line-icons/icons/sticker-filled.js.map +0 -1
  149. package/dist/assets/line-icons/icons/sticker.js +0 -46
  150. package/dist/assets/line-icons/icons/sticker.js.map +0 -1
  151. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js +0 -9
  152. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js.map +0 -1
  153. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +0 -52
  154. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +0 -1
  155. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +0 -95
  156. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +0 -1
  157. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text-styled.js +0 -10
  158. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text-styled.js.map +0 -1
  159. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js +0 -17
  160. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js.map +0 -1
  161. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js +0 -12
  162. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js.map +0 -1
  163. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js +0 -34
  164. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js.map +0 -1
  165. package/dist/features/auth/comps/otp-input/otp-input-styled.js +0 -22
  166. package/dist/features/auth/comps/otp-input/otp-input-styled.js.map +0 -1
  167. package/dist/features/auth/comps/otp-input/otp-input.js +0 -51
  168. package/dist/features/auth/comps/otp-input/otp-input.js.map +0 -1
  169. package/dist/features/auth/comps/pill-button/pill-button-styled.js +0 -44
  170. package/dist/features/auth/comps/pill-button/pill-button-styled.js.map +0 -1
  171. package/dist/features/auth/comps/pill-button/pill-button.js +0 -75
  172. package/dist/features/auth/comps/pill-button/pill-button.js.map +0 -1
  173. package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js +0 -17
  174. package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js.map +0 -1
  175. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +0 -67
  176. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +0 -1
  177. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js +0 -19
  178. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js.map +0 -1
  179. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js +0 -32
  180. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js.map +0 -1
  181. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js +0 -44
  182. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js.map +0 -1
  183. package/dist/features/auth/pla-signup/signup-header/signup-header.js +0 -54
  184. package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +0 -1
  185. package/dist/features/auth/pla-signup/signup-options/signup-options.js +0 -83
  186. package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +0 -1
  187. package/dist/features/puzzles/app/puzzle-app-styled.js +0 -81
  188. package/dist/features/puzzles/app/puzzle-app-styled.js.map +0 -1
  189. package/dist/features/puzzles/app/puzzle-app-view.js +0 -120
  190. package/dist/features/puzzles/app/puzzle-app-view.js.map +0 -1
  191. package/dist/features/puzzles/app/puzzle-app.js +0 -62
  192. package/dist/features/puzzles/app/puzzle-app.js.map +0 -1
  193. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js +0 -49
  194. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js.map +0 -1
  195. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +0 -64
  196. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +0 -1
  197. package/dist/features/ui/accordion/accordion-items/accordion-items-styled.js +0 -28
  198. package/dist/features/ui/accordion/accordion-items/accordion-items-styled.js.map +0 -1
  199. package/dist/features/ui/accordion/accordion-items/accordion-items.js +0 -83
  200. package/dist/features/ui/accordion/accordion-items/accordion-items.js.map +0 -1
  201. package/dist/features/ui/accordion/accordion.js +0 -62
  202. package/dist/features/ui/accordion/accordion.js.map +0 -1
  203. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js +0 -6
  204. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js.map +0 -1
  205. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js +0 -63
  206. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js.map +0 -1
  207. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +0 -21
  208. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +0 -1
  209. package/dist/features/ui/drawer/drawer-styled.js +0 -34
  210. package/dist/features/ui/drawer/drawer-styled.js.map +0 -1
  211. package/dist/features/ui/drawer/drawer.js +0 -42
  212. package/dist/features/ui/drawer/drawer.js.map +0 -1
  213. package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +0 -1
  214. package/dist/features/ui/sticker-grid/sticker-grid.js +0 -24
  215. package/dist/features/ui/sticker-grid/sticker-grid.js.map +0 -1
  216. package/dist/features/ui/sticker-grid/sticker.js +0 -57
  217. package/dist/features/ui/sticker-grid/sticker.js.map +0 -1
  218. package/dist/features/ui/stickers/constants.js +0 -6
  219. package/dist/features/ui/stickers/constants.js.map +0 -1
  220. package/dist/features/ui/stickers/stickers-effects.js.map +0 -1
  221. package/dist/features/ui/stickers/stickers-styled.js.map +0 -1
  222. package/dist/features/ui/stickers/stickers-utils.js.map +0 -1
  223. package/dist/features/ui/stickers/stickers.js +0 -40
  224. package/dist/features/ui/stickers/stickers.js.map +0 -1
  225. package/dist/static/animated-avatar.1ad58b1d.json +0 -1
  226. package/dist/static/animated-avatar.69b07505.json +0 -1
  227. package/dist/static/animated-avatar.9c560b46.json +0 -1
  228. package/dist/static/calendar-purple.1a840b41.svg +0 -1
  229. package/dist/static/flying-disk.c7f6ed39.json +0 -1
  230. package/dist/static/graduation-cap.3be3340a.json +0 -1
  231. package/dist/static/handshake.287e7dfb.svg +0 -1
  232. package/dist/static/light-bulb.c6db0b23.json +0 -1
  233. package/dist/static/money.332aacf1.svg +0 -1
  234. package/dist/static/muscle.9bcfb8a7.json +0 -1
  235. package/dist/static/nudge-tap.0591aef4.json +0 -1
  236. package/dist/static/parent-avatar.822c7b9b.svg +0 -1
  237. package/dist/static/pencil.23df9da0.json +0 -1
  238. package/dist/static/plus-sign.de6af957.json +0 -1
  239. package/dist/static/racing-car.2cbf864e.json +0 -1
  240. package/dist/static/rocket.0a3ccab0.json +0 -1
  241. package/dist/static/shovel.abeec04c.json +0 -1
  242. package/dist/static/stripe-blurple.6abf422f.svg +0 -1
  243. package/dist/static/trustpilot.bd3d79e1.svg +0 -1
@@ -1,32 +1,32 @@
1
- import { jsx as E } from "react/jsx-runtime";
2
- import g from "lottie-web";
3
- import { memo as w, forwardRef as A, useRef as u, useImperativeHandle as b, useEffect as I } from "react";
4
- import $ from "../layout/flex-view.js";
5
- import { fetchLottie as x } from "./helper.js";
6
- const O = A((v, L) => {
1
+ import { jsx as y } from "react/jsx-runtime";
2
+ import E from "lottie-web";
3
+ import { memo as A, forwardRef as w, useRef as u, useImperativeHandle as b, useEffect as I } from "react";
4
+ import S from "../layout/flex-view.js";
5
+ import { fetchLottie as $ } from "./helper.js";
6
+ const x = w((v, L) => {
7
7
  const {
8
8
  src: m,
9
9
  width: h = "100%",
10
- height: y = "100%",
10
+ height: g = "100%",
11
11
  settings: l,
12
- eventListener: n,
13
- onRender: o,
12
+ eventListener: o,
13
+ onRender: i,
14
14
  animateOnIntersect: c
15
15
  } = v, a = u(null), r = u(null), s = u(null);
16
16
  return b(
17
17
  L,
18
18
  () => ({
19
- playSegments: (t, i) => {
19
+ playSegments: (t, n) => {
20
20
  var e;
21
- return (e = r.current) == null ? void 0 : e.playSegments(t, i);
21
+ return (e = r.current) == null ? void 0 : e.playSegments(t, n);
22
22
  },
23
- addEventListener: (t, i) => {
23
+ addEventListener: (t, n) => {
24
24
  var e;
25
- return (e = r.current) == null ? void 0 : e.addEventListener(t, i);
25
+ return (e = r.current) == null ? void 0 : e.addEventListener(t, n);
26
26
  },
27
- removeEventListener: (t, i) => {
27
+ removeEventListener: (t, n) => {
28
28
  var e;
29
- return (e = r.current) == null ? void 0 : e.removeEventListener(t, i);
29
+ return (e = r.current) == null ? void 0 : e.removeEventListener(t, n);
30
30
  },
31
31
  play: () => {
32
32
  var t;
@@ -35,6 +35,10 @@ const O = A((v, L) => {
35
35
  stop: () => {
36
36
  var t;
37
37
  return (t = r.current) == null ? void 0 : t.stop();
38
+ },
39
+ goToAndStop: (t, n) => {
40
+ var e;
41
+ return (e = r.current) == null ? void 0 : e.goToAndStop(t, n);
38
42
  }
39
43
  }),
40
44
  []
@@ -42,32 +46,32 @@ const O = A((v, L) => {
42
46
  let t = !1;
43
47
  return (async () => {
44
48
  try {
45
- const e = await x(m);
49
+ const e = await $(m);
46
50
  requestAnimationFrame(() => {
47
- !a.current || t || (r.current = g.loadAnimation({
51
+ !a.current || t || (r.current = E.loadAnimation({
48
52
  container: a.current,
49
53
  animationData: e,
50
54
  loop: !0,
51
55
  autoplay: !0,
52
56
  ...l
53
57
  }), c && (s.current = new IntersectionObserver(
54
- ([f]) => {
55
- var d, p;
56
- f && f.isIntersecting ? (d = r.current) == null || d.play() : (p = r.current) == null || p.pause();
58
+ ([d]) => {
59
+ var f, p;
60
+ d && d.isIntersecting ? (f = r.current) == null || f.play() : (p = r.current) == null || p.pause();
57
61
  },
58
62
  { threshold: 0 }
59
- ), s.current.observe(a.current)), o == null || o(), n && r.current.addEventListener(n.name, n.callback));
63
+ ), s.current.observe(a.current)), i == null || i(), o && r.current.addEventListener(o.name, o.callback));
60
64
  });
61
65
  } catch (e) {
62
66
  throw Error(`Error loading Lottie animation: ${e}`);
63
67
  }
64
68
  })(), () => {
65
69
  var e;
66
- t = !0, r.current && (n && r.current.removeEventListener(n.name, n.callback), c && ((e = s.current) == null || e.disconnect()), r.current.destroy());
70
+ t = !0, r.current && (o && r.current.removeEventListener(o.name, o.callback), c && ((e = s.current) == null || e.disconnect()), r.current.destroy());
67
71
  };
68
- }, [m, n, o, c, l]), /* @__PURE__ */ E($, { ref: a, $width: h, $height: y });
69
- }), D = w(O);
72
+ }, [m, o, i, c, l]), /* @__PURE__ */ y(S, { ref: a, $width: h, $height: g });
73
+ }), q = A(x);
70
74
  export {
71
- D as default
75
+ q as default
72
76
  };
73
77
  //# sourceMappingURL=lottie-animation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lottie-animation.js","sources":["../../../../src/features/ui/lottie-animation/lottie-animation.tsx"],"sourcesContent":["import type { ILottieAnimationProps, ILottieAnimationRef } from './types';\nimport type { AnimationEventName, AnimationItem, AnimationSegment } from 'lottie-web';\n\nimport lottie from 'lottie-web';\nimport { forwardRef, memo, useEffect, useImperativeHandle, useRef } from 'react';\n\nimport FlexView from '../layout/flex-view';\nimport { fetchLottie } from './helper';\n\nconst LottieAnimation = forwardRef<ILottieAnimationRef, ILottieAnimationProps>((props, ref) => {\n const {\n src,\n width = '100%',\n height = '100%',\n settings,\n eventListener,\n onRender,\n animateOnIntersect,\n } = props;\n\n const container = useRef<HTMLDivElement>(null);\n const animationInstance = useRef<AnimationItem | null>(null);\n const intersectionObserver = useRef<IntersectionObserver | null>(null);\n\n useImperativeHandle(\n ref,\n () => ({\n playSegments: (segments: AnimationSegment, forceFlag?: boolean) =>\n animationInstance.current?.playSegments(segments, forceFlag),\n addEventListener: (eventName: string, callback: () => void) =>\n animationInstance.current?.addEventListener(eventName as AnimationEventName, callback),\n removeEventListener: (eventName: string, callback: () => void) =>\n animationInstance.current?.removeEventListener(eventName as AnimationEventName, callback),\n play: () => animationInstance.current?.play(),\n stop: () => animationInstance.current?.stop(),\n }),\n [],\n );\n\n useEffect(() => {\n let destroyed = false;\n\n const loadAnimation = async () => {\n try {\n const animationData = await fetchLottie(src);\n\n // Wait for layout\n // NOTE: Do not remove this as this is needed to fix canvas rendering on first layout.\n requestAnimationFrame(() => {\n if (!container.current || destroyed) return;\n\n animationInstance.current = lottie.loadAnimation({\n container: container.current,\n animationData,\n loop: true,\n autoplay: true,\n ...settings,\n });\n\n if (animateOnIntersect) {\n intersectionObserver.current = new IntersectionObserver(\n ([entry]) => {\n if (entry && entry.isIntersecting) {\n animationInstance.current?.play();\n } else {\n animationInstance.current?.pause();\n }\n },\n { threshold: 0 },\n );\n\n intersectionObserver.current.observe(container.current);\n }\n\n onRender?.();\n if (eventListener) {\n animationInstance.current.addEventListener(eventListener.name, eventListener.callback);\n }\n });\n } catch (error) {\n throw Error(`Error loading Lottie animation: ${error}`);\n }\n };\n\n loadAnimation();\n\n return () => {\n destroyed = true;\n if (animationInstance.current) {\n if (eventListener) {\n animationInstance.current.removeEventListener(eventListener.name, eventListener.callback);\n }\n\n if (animateOnIntersect) {\n intersectionObserver.current?.disconnect();\n }\n animationInstance.current.destroy();\n }\n };\n }, [src, eventListener, onRender, animateOnIntersect, settings]);\n\n return <FlexView ref={container} $width={width} $height={height} />;\n});\n\nexport default memo(LottieAnimation);\n"],"names":["LottieAnimation","forwardRef","props","ref","src","width","height","settings","eventListener","onRender","animateOnIntersect","container","useRef","animationInstance","intersectionObserver","useImperativeHandle","segments","forceFlag","_a","eventName","callback","useEffect","destroyed","animationData","fetchLottie","lottie","entry","_b","error","FlexView","LottieAnimation$1","memo"],"mappings":";;;;;AASA,MAAMA,IAAkBC,EAAuD,CAACC,GAAOC,MAAQ;AACvF,QAAA;AAAA,IACJ,KAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,QAAAC,IAAS;AAAA,IACT,UAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,oBAAAC;AAAA,EACE,IAAAR,GAEES,IAAYC,EAAuB,IAAI,GACvCC,IAAoBD,EAA6B,IAAI,GACrDE,IAAuBF,EAAoC,IAAI;AAErE,SAAAG;AAAA,IACEZ;AAAA,IACA,OAAO;AAAA,MACL,cAAc,CAACa,GAA4BC,MACzC;;AAAA,gBAAAC,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,aAAaF,GAAUC;AAAA;AAAA,MACpD,kBAAkB,CAACE,GAAmBC,MACpC;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,iBAAiBC,GAAiCC;AAAA;AAAA,MAC/E,qBAAqB,CAACD,GAAmBC,MACvC;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,oBAAoBC,GAAiCC;AAAA;AAAA,MAClF,MAAM,MAAM;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B;AAAA;AAAA,MACvC,MAAM,MAAM;;AAAA,gBAAAA,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B;AAAA;AAAA,IAAK;AAAA,IAE9C,CAAC;AAAA,EAAA,GAGHG,EAAU,MAAM;AACd,QAAIC,IAAY;AA4CF,YA1CQ,YAAY;AAC5B,UAAA;AACI,cAAAC,IAAgB,MAAMC,EAAYpB,CAAG;AAI3C,8BAAsB,MAAM;AACtB,UAAA,CAACO,EAAU,WAAWW,MAERT,EAAA,UAAUY,EAAO,cAAc;AAAA,YAC/C,WAAWd,EAAU;AAAA,YACrB,eAAAY;AAAA,YACA,MAAM;AAAA,YACN,UAAU;AAAA,YACV,GAAGhB;AAAA,UAAA,CACJ,GAEGG,MACFI,EAAqB,UAAU,IAAI;AAAA,YACjC,CAAC,CAACY,CAAK,MAAM;;AACP,cAAAA,KAASA,EAAM,kBACjBR,IAAAL,EAAkB,YAAlB,QAAAK,EAA2B,UAE3BS,IAAAd,EAAkB,YAAlB,QAAAc,EAA2B;AAAA,YAE/B;AAAA,YACA,EAAE,WAAW,EAAE;AAAA,UAAA,GAGIb,EAAA,QAAQ,QAAQH,EAAU,OAAO,IAG7CF,KAAA,QAAAA,KACPD,KACFK,EAAkB,QAAQ,iBAAiBL,EAAc,MAAMA,EAAc,QAAQ;AAAA,QACvF,CACD;AAAA,eACMoB,GAAO;AACR,cAAA,MAAM,mCAAmCA,CAAK,EAAE;AAAA,MACxD;AAAA,IAAA,MAKK,MAAM;;AACC,MAAAN,IAAA,IACRT,EAAkB,YAChBL,KACFK,EAAkB,QAAQ,oBAAoBL,EAAc,MAAMA,EAAc,QAAQ,GAGtFE,OACFQ,IAAAJ,EAAqB,YAArB,QAAAI,EAA8B,eAEhCL,EAAkB,QAAQ;IAC5B;AAAA,EACF,GACC,CAACT,GAAKI,GAAeC,GAAUC,GAAoBH,CAAQ,CAAC,qBAEvDsB,GAAS,EAAA,KAAKlB,GAAW,QAAQN,GAAO,SAASC,EAAQ,CAAA;AACnE,CAAC,GAEcwB,IAAAC,EAAK/B,CAAe;"}
1
+ {"version":3,"file":"lottie-animation.js","sources":["../../../../src/features/ui/lottie-animation/lottie-animation.tsx"],"sourcesContent":["import type { ILottieAnimationProps, ILottieAnimationRef } from './types';\nimport type { AnimationEventName, AnimationItem, AnimationSegment } from 'lottie-web';\n\nimport lottie from 'lottie-web';\nimport { forwardRef, memo, useEffect, useImperativeHandle, useRef } from 'react';\n\nimport FlexView from '../layout/flex-view';\nimport { fetchLottie } from './helper';\n\nconst LottieAnimation = forwardRef<ILottieAnimationRef, ILottieAnimationProps>((props, ref) => {\n const {\n src,\n width = '100%',\n height = '100%',\n settings,\n eventListener,\n onRender,\n animateOnIntersect,\n } = props;\n\n const container = useRef<HTMLDivElement>(null);\n const animationInstance = useRef<AnimationItem | null>(null);\n const intersectionObserver = useRef<IntersectionObserver | null>(null);\n\n useImperativeHandle(\n ref,\n () => ({\n playSegments: (segments: AnimationSegment, forceFlag?: boolean) =>\n animationInstance.current?.playSegments(segments, forceFlag),\n addEventListener: (eventName: string, callback: () => void) =>\n animationInstance.current?.addEventListener(eventName as AnimationEventName, callback),\n removeEventListener: (eventName: string, callback: () => void) =>\n animationInstance.current?.removeEventListener(eventName as AnimationEventName, callback),\n play: () => animationInstance.current?.play(),\n stop: () => animationInstance.current?.stop(),\n goToAndStop: (v, f) => animationInstance.current?.goToAndStop(v, f),\n }),\n [],\n );\n\n useEffect(() => {\n let destroyed = false;\n\n const loadAnimation = async () => {\n try {\n const animationData = await fetchLottie(src);\n\n // Wait for layout\n // NOTE: Do not remove this as this is needed to fix canvas rendering on first layout.\n requestAnimationFrame(() => {\n if (!container.current || destroyed) return;\n\n animationInstance.current = lottie.loadAnimation({\n container: container.current,\n animationData,\n loop: true,\n autoplay: true,\n ...settings,\n });\n\n if (animateOnIntersect) {\n intersectionObserver.current = new IntersectionObserver(\n ([entry]) => {\n if (entry && entry.isIntersecting) {\n animationInstance.current?.play();\n } else {\n animationInstance.current?.pause();\n }\n },\n { threshold: 0 },\n );\n\n intersectionObserver.current.observe(container.current);\n }\n\n onRender?.();\n if (eventListener) {\n animationInstance.current.addEventListener(eventListener.name, eventListener.callback);\n }\n });\n } catch (error) {\n throw Error(`Error loading Lottie animation: ${error}`);\n }\n };\n\n loadAnimation();\n\n return () => {\n destroyed = true;\n if (animationInstance.current) {\n if (eventListener) {\n animationInstance.current.removeEventListener(eventListener.name, eventListener.callback);\n }\n\n if (animateOnIntersect) {\n intersectionObserver.current?.disconnect();\n }\n animationInstance.current.destroy();\n }\n };\n }, [src, eventListener, onRender, animateOnIntersect, settings]);\n\n return <FlexView ref={container} $width={width} $height={height} />;\n});\n\nexport default memo(LottieAnimation);\n"],"names":["LottieAnimation","forwardRef","props","ref","src","width","height","settings","eventListener","onRender","animateOnIntersect","container","useRef","animationInstance","intersectionObserver","useImperativeHandle","segments","forceFlag","_a","eventName","callback","v","f","useEffect","destroyed","animationData","fetchLottie","lottie","entry","_b","error","FlexView","LottieAnimation$1","memo"],"mappings":";;;;;AASA,MAAMA,IAAkBC,EAAuD,CAACC,GAAOC,MAAQ;AACvF,QAAA;AAAA,IACJ,KAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,QAAAC,IAAS;AAAA,IACT,UAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,oBAAAC;AAAA,EACE,IAAAR,GAEES,IAAYC,EAAuB,IAAI,GACvCC,IAAoBD,EAA6B,IAAI,GACrDE,IAAuBF,EAAoC,IAAI;AAErE,SAAAG;AAAA,IACEZ;AAAA,IACA,OAAO;AAAA,MACL,cAAc,CAACa,GAA4BC,MACzC;;AAAA,gBAAAC,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,aAAaF,GAAUC;AAAA;AAAA,MACpD,kBAAkB,CAACE,GAAmBC,MACpC;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,iBAAiBC,GAAiCC;AAAA;AAAA,MAC/E,qBAAqB,CAACD,GAAmBC,MACvC;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,oBAAoBC,GAAiCC;AAAA;AAAA,MAClF,MAAM,MAAM;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B;AAAA;AAAA,MACvC,MAAM,MAAM;;AAAA,gBAAAA,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B;AAAA;AAAA,MACvC,aAAa,CAACG,GAAGC,MAAM;;AAAA,gBAAAJ,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,YAAYG,GAAGC;AAAA;AAAA,IAAC;AAAA,IAEpE,CAAC;AAAA,EAAA,GAGHC,EAAU,MAAM;AACd,QAAIC,IAAY;AA4CF,YA1CQ,YAAY;AAC5B,UAAA;AACI,cAAAC,IAAgB,MAAMC,EAAYtB,CAAG;AAI3C,8BAAsB,MAAM;AACtB,UAAA,CAACO,EAAU,WAAWa,MAERX,EAAA,UAAUc,EAAO,cAAc;AAAA,YAC/C,WAAWhB,EAAU;AAAA,YACrB,eAAAc;AAAA,YACA,MAAM;AAAA,YACN,UAAU;AAAA,YACV,GAAGlB;AAAA,UAAA,CACJ,GAEGG,MACFI,EAAqB,UAAU,IAAI;AAAA,YACjC,CAAC,CAACc,CAAK,MAAM;;AACP,cAAAA,KAASA,EAAM,kBACjBV,IAAAL,EAAkB,YAAlB,QAAAK,EAA2B,UAE3BW,IAAAhB,EAAkB,YAAlB,QAAAgB,EAA2B;AAAA,YAE/B;AAAA,YACA,EAAE,WAAW,EAAE;AAAA,UAAA,GAGIf,EAAA,QAAQ,QAAQH,EAAU,OAAO,IAG7CF,KAAA,QAAAA,KACPD,KACFK,EAAkB,QAAQ,iBAAiBL,EAAc,MAAMA,EAAc,QAAQ;AAAA,QACvF,CACD;AAAA,eACMsB,GAAO;AACR,cAAA,MAAM,mCAAmCA,CAAK,EAAE;AAAA,MACxD;AAAA,IAAA,MAKK,MAAM;;AACC,MAAAN,IAAA,IACRX,EAAkB,YAChBL,KACFK,EAAkB,QAAQ,oBAAoBL,EAAc,MAAMA,EAAc,QAAQ,GAGtFE,OACFQ,IAAAJ,EAAqB,YAArB,QAAAI,EAA8B,eAEhCL,EAAkB,QAAQ;IAC5B;AAAA,EACF,GACC,CAACT,GAAKI,GAAeC,GAAUC,GAAoBH,CAAQ,CAAC,qBAEvDwB,GAAS,EAAA,KAAKpB,GAAW,QAAQN,GAAO,SAASC,EAAQ,CAAA;AACnE,CAAC,GAEc0B,IAAAC,EAAKjC,CAAe;"}
@@ -1,16 +1,16 @@
1
- import a from "styled-components";
2
- const p = a.div(
3
- ({ theme: { colors: t, zIndex: o }, $isClosing: e }) => `
1
+ import e from "styled-components";
2
+ const s = e.div(
3
+ ({ theme: { colors: a, zIndex: t }, $isClosing: o }) => `
4
4
  position: fixed;
5
5
  top: 0;
6
6
  left: 0;
7
7
  right: 0;
8
8
  bottom: 0;
9
- background-color: ${t.BLACK_T_60};
9
+ background-color: ${a.BLACK_T_60};
10
10
  backdrop-filter: blur(40px);
11
11
  display: flex;
12
- animation: ${e ? "backdropFadeOut" : "backdropFadeIn"} 0.2s ease-out forwards;
13
- z-index: ${o.MODAL};
12
+ animation: ${o ? "backdropFadeOut" : "backdropFadeIn"} 0.2s ease-out forwards;
13
+ z-index: ${t.MODAL};
14
14
 
15
15
  @keyframes backdropFadeIn {
16
16
  from {
@@ -30,20 +30,20 @@ const p = a.div(
30
30
  }
31
31
  }
32
32
  `
33
- ), l = a.div(
34
- ({ theme: { colors: t }, $isClosing: o, $width: e }) => `
33
+ ), c = e.div(
34
+ ({ theme: { colors: a }, $isClosing: t, $width: o }) => `
35
35
  position: relative;
36
36
  align-self: center;
37
37
  margin: 0 auto;
38
- width: ${e};
39
- background-color: ${t.WHITE_1};
40
- border: 1px solid ${t.BLACK_1};
38
+ width: ${o};
39
+ background-color: ${a.WHITE_1};
40
+ border: 1px solid ${a.BLACK_1};
41
41
  transform-origin: center center;
42
- animation: ${o ? "modalDisappear" : "modalAppear"} 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
42
+ animation: ${t ? "modalDisappear" : "modalAppear"} 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
43
43
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.20);
44
44
 
45
45
  /* Responsive behavior for smaller screens */
46
- @media (max-width: calc(${e} + 80px)) {
46
+ @media (max-width: calc(${o} + 80px)) {
47
47
  width: 100%;
48
48
  max-width: 100%;
49
49
  height: 100%;
@@ -73,41 +73,35 @@ const p = a.div(
73
73
  }
74
74
  }
75
75
  `
76
- ), c = a.div(
77
- ({ $modalWidth: t }) => `
76
+ ), l = e.div(
77
+ ({ $modalWidth: a }) => `
78
78
  max-height: calc(100vh - 142px);
79
79
  overflow-y: auto;
80
80
 
81
- @media (max-width: calc(${t} + 80px)) {
81
+ @media (max-width: calc(${a} + 80px)) {
82
82
  max-height: 100vh;
83
83
  }
84
84
  }`
85
- ), m = a.div(
86
- ({ theme: { colors: t }, $modalWidth: o }) => `
85
+ ), d = e.div(
86
+ ({ theme: { colors: a }, $modalWidth: t }) => `
87
87
  position: absolute;
88
88
  top: -56px;
89
89
  right: -40px;
90
- color: ${t.WHITE_1};
90
+ color: ${a.WHITE_1};
91
91
  transition: all 0.2s ease;
92
92
 
93
93
  &:hover {
94
94
  transform: scale(1.05);
95
95
  }
96
96
 
97
- @media (max-width: calc(${o} + 80px)) {
97
+ @media (max-width: calc(${t} + 80px)) {
98
98
  top: 16px;
99
99
  right: 16px;
100
- color: ${t.BLACK_1};
100
+ color: ${a.BLACK_1};
101
101
  }
102
102
  `
103
- ), d = a.div`
104
- display: flex;
105
- align-items: center;
106
- justify-content: center;
107
- height: 100vh;
108
- width: 100%;
109
- `, i = 720, r = 800, n = 500, f = a.div(
110
- ({ $isClosing: t }) => `
103
+ ), i = 720, r = 800, n = 500, m = e.div(
104
+ ({ $isClosing: a }) => `
111
105
  position: absolute;
112
106
  width: ${i}px;
113
107
  height: 100%;
@@ -124,7 +118,7 @@ const p = a.div(
124
118
  animation-timing-function: linear;
125
119
  animation-fill-mode: forwards;
126
120
  opacity: 0;
127
- ${t ? `
121
+ ${a ? `
128
122
  animation: closeSpotlight;
129
123
  animation-duration: ${n}ms;
130
124
  animation-timing-function: linear;
@@ -150,48 +144,43 @@ const p = a.div(
150
144
  }
151
145
  }
152
146
  `
153
- ), h = a.div(
154
- ({ $isClosing: t }) => `
155
- width: 100%;
156
- height: max-content;
157
- background: white; // Remove
158
- overflow: scroll;
159
- position: fixed;
160
- left: 0;
161
- right: 0;
162
- bottom: 0;
163
- animation: ${t ? "slideOut" : "slideIn"} 0.3s forwards;
147
+ ), f = e.div(
148
+ ({ theme: { colors: a, zIndex: t }, $isClosing: o }) => `
149
+ position: fixed;
150
+ top: 0;
151
+ left: 0;
152
+ right: 0;
153
+ bottom: 0;
154
+ background-color: ${a.TRANSPARENT};
155
+ display: flex;
156
+ animation: ${o ? "backdropFadeOut" : "backdropFadeIn"} 0.2s ease-out forwards;
157
+ z-index: ${t.MODAL};
164
158
 
165
- @keyframes slideIn {
166
- from {
167
- transform: translateY(100%);
168
- opacity: 0;
169
- }
170
- to {
171
- transform: translateY(0%);
172
- opacity: 1;
173
- }
159
+ @keyframes backdropFadeIn {
160
+ from {
161
+ opacity: 0;
174
162
  }
175
-
176
- @keyframes slideOut {
177
- from {
178
- transform: translateY(0%);
179
- opacity: 1;
180
- }
181
- to {
182
- transform: translateY(100%);
183
- opacity: 0;
184
- }
185
- }
186
- `
163
+ to {
164
+ opacity: 1;
165
+ }
166
+ }
167
+
168
+ @keyframes backdropFadeOut {
169
+ from {
170
+ opacity: 1;
171
+ }
172
+ to {
173
+ opacity: 0;
174
+ }
175
+ }
176
+ `
187
177
  );
188
178
  export {
189
- l as BaseModal,
190
- c as BaseModalContent,
191
- h as BottomSheetModal,
192
- m as CloseButtonContainer,
193
- p as ModalContainer,
194
- d as ModalLoaderWrapper,
195
- f as SpotlightModal
179
+ c as BaseModal,
180
+ l as BaseModalContent,
181
+ d as CloseButtonContainer,
182
+ s as ModalContainer,
183
+ m as SpotlightModal,
184
+ f as TransparentModalContainer
196
185
  };
197
186
  //# sourceMappingURL=modal-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modal-styled.js","sources":["../../../../src/features/ui/modals/modal-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nconst ModalContainer = styled.div<{ $isClosing?: boolean }>(\n ({ theme: { colors, zIndex }, $isClosing }) => `\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: ${colors.BLACK_T_60};\n backdrop-filter: blur(40px);\n display: flex;\n animation: ${$isClosing ? 'backdropFadeOut' : 'backdropFadeIn'} 0.2s ease-out forwards;\n z-index: ${zIndex.MODAL};\n\n @keyframes backdropFadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n \n @keyframes backdropFadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n }\n`,\n);\n\n/**\n * Base modal container with customizable width and animation state\n */\nconst BaseModal = styled.div<{\n $isClosing?: boolean;\n $width: string;\n}>(\n ({ theme: { colors }, $isClosing, $width }) => `\n position: relative;\n align-self: center;\n margin: 0 auto;\n width: ${$width};\n background-color: ${colors.WHITE_1};\n border: 1px solid ${colors.BLACK_1};\n transform-origin: center center;\n animation: ${\n $isClosing ? 'modalDisappear' : 'modalAppear'\n } 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;\n box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.20);\n \n /* Responsive behavior for smaller screens */\n @media (max-width: calc(${$width} + 80px)) {\n width: 100%;\n max-width: 100%;\n height: 100%;\n max-height: 100%;\n border: none;\n }\n \n @keyframes modalAppear {\n 0% {\n opacity: 0;\n transform: perspective(1200px) translateZ(-50px) translateY(10px) scale(0.98);\n }\n 100% {\n opacity: 1;\n transform: perspective(1200px) translateZ(0) translateY(0) scale(1);\n }\n }\n \n @keyframes modalDisappear {\n 0% {\n opacity: 1;\n transform: perspective(1200px) translateZ(0) translateY(0) scale(1);\n }\n 100% {\n opacity: 0;\n transform: perspective(1200px) translateZ(-50px) translateY(10px) scale(0.98);\n }\n }\n`,\n);\n\n/**\n * Scrollable content container inside the modal\n */\nconst BaseModalContent = styled.div<{ $modalWidth: string }>(\n ({ $modalWidth }) => `\n max-height: calc(100vh - 142px);\n overflow-y: auto;\n\n @media (max-width: calc(${$modalWidth} + 80px)) {\n max-height: 100vh;\n }\n}`,\n);\n\n/**\n * Container for the close button with responsive positioning\n */\nconst CloseButtonContainer = styled.div<{ $modalWidth: string }>(\n ({ theme: { colors }, $modalWidth }) => `\n position: absolute;\n top: -56px;\n right: -40px;\n color: ${colors.WHITE_1};\n transition: all 0.2s ease;\n \n &:hover {\n transform: scale(1.05);\n }\n\n @media (max-width: calc(${$modalWidth} + 80px)) {\n top: 16px;\n right: 16px;\n color: ${colors.BLACK_1};\n }\n`,\n);\n\nconst ModalLoaderWrapper = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100vh;\n width: 100%;\n`;\n\nconst spotlightWidth = 720;\nconst spotlightAnimationStartDuration = 800;\nconst spotlightAnimationEndDuration = 500;\n\nconst SpotlightModal = styled.div<{\n $isClosing?: boolean;\n}>(\n ({ $isClosing }) => `\n position: absolute;\n width: ${spotlightWidth}px;\n height: 100%;\n left: 50%;\n margin-left: ${-(spotlightWidth / 2)}px;\n clip-path: polygon(calc(50% - 100px) 0, calc(50% + 100px) 0, 100% 100%, 0 100%);\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 1) 0%,\n rgba(0, 0, 0, 0) 100%\n );\n animation: openSpotlight;\n animation-duration: ${spotlightAnimationStartDuration}ms;\n animation-timing-function: linear;\n animation-fill-mode: forwards;\n opacity: 0;\n ${\n $isClosing\n ? `\n animation: closeSpotlight;\n animation-duration: ${spotlightAnimationEndDuration}ms;\n animation-timing-function: linear;\n animation-fill-mode: forwards;\n opacity: 1;\n `\n : ''\n }\n\n @keyframes openSpotlight {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n @keyframes closeSpotlight {\n from {\n transform: rotateY(0);\n }\n to {\n transform: rotateY(90deg);\n }\n }\n`,\n);\n\nconst BottomSheetModal = styled.div<{ $isClosing?: boolean }>(\n ({ $isClosing }) => `\n width: 100%;\n height: max-content;\n background: white; // Remove\n overflow: scroll;\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n animation: ${$isClosing ? 'slideOut' : 'slideIn'} 0.3s forwards;\n\n @keyframes slideIn {\n from {\n transform: translateY(100%);\n opacity: 0;\n }\n to {\n transform: translateY(0%);\n opacity: 1;\n }\n }\n\n @keyframes slideOut {\n from {\n transform: translateY(0%);\n opacity: 1;\n }\n to {\n transform: translateY(100%);\n opacity: 0;\n }\n }\n `,\n);\n\nexport {\n ModalContainer,\n BaseModal,\n BaseModalContent,\n CloseButtonContainer,\n SpotlightModal,\n ModalLoaderWrapper,\n BottomSheetModal,\n};\n"],"names":["ModalContainer","styled","colors","zIndex","$isClosing","BaseModal","$width","BaseModalContent","$modalWidth","CloseButtonContainer","ModalLoaderWrapper","spotlightWidth","spotlightAnimationStartDuration","spotlightAnimationEndDuration","SpotlightModal","BottomSheetModal"],"mappings":";AAEA,MAAMA,IAAiBC,EAAO;AAAA,EAC5B,CAAC,EAAE,OAAO,EAAE,QAAAC,GAAQ,QAAAC,EAAO,GAAG,YAAAC,QAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAM3BF,EAAO,UAAU;AAAA;AAAA;AAAA,eAGxBE,IAAa,oBAAoB,gBAAgB;AAAA,aACnDD,EAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBzB,GAKME,IAAYJ,EAAO;AAAA,EAIvB,CAAC,EAAE,OAAO,EAAE,QAAAC,EAAU,GAAA,YAAAE,GAAY,QAAAE,QAAa;AAAA;AAAA;AAAA;AAAA,WAItCA,CAAM;AAAA,sBACKJ,EAAO,OAAO;AAAA,sBACdA,EAAO,OAAO;AAAA;AAAA,eAGhCE,IAAa,mBAAmB,aAClC;AAAA;AAAA;AAAA;AAAA,4BAI0BE,CAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA8BlC,GAKMC,IAAmBN,EAAO;AAAA,EAC9B,CAAC,EAAE,aAAAO,EAAA,MAAkB;AAAA;AAAA;AAAA;AAAA,4BAIKA,CAAW;AAAA;AAAA;AAAA;AAIvC,GAKMC,IAAuBR,EAAO;AAAA,EAClC,CAAC,EAAE,OAAO,EAAE,QAAAC,EAAO,GAAG,aAAAM,EAAkB,MAAA;AAAA;AAAA;AAAA;AAAA,WAI/BN,EAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAOGM,CAAW;AAAA;AAAA;AAAA,aAG1BN,EAAO,OAAO;AAAA;AAAA;AAG3B,GAEMQ,IAAqBT,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQ5BU,IAAiB,KACjBC,IAAkC,KAClCC,IAAgC,KAEhCC,IAAiBb,EAAO;AAAA,EAG5B,CAAC,EAAE,YAAAG,EAAA,MAAiB;AAAA;AAAA,WAEXO,CAAc;AAAA;AAAA;AAAA,iBAGR,EAAEA,IAAiB,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAQdC,CAA+B;AAAA;AAAA;AAAA;AAAA,IAKnDR,IACI;AAAA;AAAA,4BAEoBS,CAA6B;AAAA;AAAA;AAAA;AAAA,QAKjD,EACN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBF,GAEME,IAAmBd,EAAO;AAAA,EAC9B,CAAC,EAAE,YAAAG,EAAA,MAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBASLA,IAAa,aAAa,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBpD;"}
1
+ {"version":3,"file":"modal-styled.js","sources":["../../../../src/features/ui/modals/modal-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nconst ModalContainer = styled.div<{ $isClosing?: boolean }>(\n ({ theme: { colors, zIndex }, $isClosing }) => `\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: ${colors.BLACK_T_60};\n backdrop-filter: blur(40px);\n display: flex;\n animation: ${$isClosing ? 'backdropFadeOut' : 'backdropFadeIn'} 0.2s ease-out forwards;\n z-index: ${zIndex.MODAL};\n\n @keyframes backdropFadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n \n @keyframes backdropFadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n }\n`,\n);\n\n/**\n * Base modal container with customizable width and animation state\n */\nconst BaseModal = styled.div<{\n $isClosing?: boolean;\n $width: string;\n}>(\n ({ theme: { colors }, $isClosing, $width }) => `\n position: relative;\n align-self: center;\n margin: 0 auto;\n width: ${$width};\n background-color: ${colors.WHITE_1};\n border: 1px solid ${colors.BLACK_1};\n transform-origin: center center;\n animation: ${\n $isClosing ? 'modalDisappear' : 'modalAppear'\n } 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;\n box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.20);\n \n /* Responsive behavior for smaller screens */\n @media (max-width: calc(${$width} + 80px)) {\n width: 100%;\n max-width: 100%;\n height: 100%;\n max-height: 100%;\n border: none;\n }\n \n @keyframes modalAppear {\n 0% {\n opacity: 0;\n transform: perspective(1200px) translateZ(-50px) translateY(10px) scale(0.98);\n }\n 100% {\n opacity: 1;\n transform: perspective(1200px) translateZ(0) translateY(0) scale(1);\n }\n }\n \n @keyframes modalDisappear {\n 0% {\n opacity: 1;\n transform: perspective(1200px) translateZ(0) translateY(0) scale(1);\n }\n 100% {\n opacity: 0;\n transform: perspective(1200px) translateZ(-50px) translateY(10px) scale(0.98);\n }\n }\n`,\n);\n\n/**\n * Scrollable content container inside the modal\n */\nconst BaseModalContent = styled.div<{ $modalWidth: string }>(\n ({ $modalWidth }) => `\n max-height: calc(100vh - 142px);\n overflow-y: auto;\n\n @media (max-width: calc(${$modalWidth} + 80px)) {\n max-height: 100vh;\n }\n}`,\n);\n\n/**\n * Container for the close button with responsive positioning\n */\nconst CloseButtonContainer = styled.div<{ $modalWidth: string }>(\n ({ theme: { colors }, $modalWidth }) => `\n position: absolute;\n top: -56px;\n right: -40px;\n color: ${colors.WHITE_1};\n transition: all 0.2s ease;\n \n &:hover {\n transform: scale(1.05);\n }\n\n @media (max-width: calc(${$modalWidth} + 80px)) {\n top: 16px;\n right: 16px;\n color: ${colors.BLACK_1};\n }\n`,\n);\n\nconst spotlightWidth = 720;\nconst spotlightAnimationStartDuration = 800;\nconst spotlightAnimationEndDuration = 500;\n\nconst SpotlightModal = styled.div<{\n $isClosing?: boolean;\n}>(\n ({ $isClosing }) => `\n position: absolute;\n width: ${spotlightWidth}px;\n height: 100%;\n left: 50%;\n margin-left: ${-(spotlightWidth / 2)}px;\n clip-path: polygon(calc(50% - 100px) 0, calc(50% + 100px) 0, 100% 100%, 0 100%);\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 1) 0%,\n rgba(0, 0, 0, 0) 100%\n );\n animation: openSpotlight;\n animation-duration: ${spotlightAnimationStartDuration}ms;\n animation-timing-function: linear;\n animation-fill-mode: forwards;\n opacity: 0;\n ${\n $isClosing\n ? `\n animation: closeSpotlight;\n animation-duration: ${spotlightAnimationEndDuration}ms;\n animation-timing-function: linear;\n animation-fill-mode: forwards;\n opacity: 1;\n `\n : ''\n }\n\n @keyframes openSpotlight {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n @keyframes closeSpotlight {\n from {\n transform: rotateY(0);\n }\n to {\n transform: rotateY(90deg);\n }\n }\n`,\n);\n\nconst TransparentModalContainer = styled.div<{ $isClosing?: boolean }>(\n ({ theme: { colors, zIndex }, $isClosing }) => `\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: ${colors.TRANSPARENT};\n display: flex;\n animation: ${$isClosing ? 'backdropFadeOut' : 'backdropFadeIn'} 0.2s ease-out forwards;\n z-index: ${zIndex.MODAL};\n\n @keyframes backdropFadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n \n @keyframes backdropFadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n }\n`,\n);\n\nexport {\n ModalContainer,\n BaseModal,\n BaseModalContent,\n CloseButtonContainer,\n SpotlightModal,\n TransparentModalContainer,\n};\n"],"names":["ModalContainer","styled","colors","zIndex","$isClosing","BaseModal","$width","BaseModalContent","$modalWidth","CloseButtonContainer","spotlightWidth","spotlightAnimationStartDuration","spotlightAnimationEndDuration","SpotlightModal","TransparentModalContainer"],"mappings":";AAEA,MAAMA,IAAiBC,EAAO;AAAA,EAC5B,CAAC,EAAE,OAAO,EAAE,QAAAC,GAAQ,QAAAC,EAAO,GAAG,YAAAC,QAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAM3BF,EAAO,UAAU;AAAA;AAAA;AAAA,eAGxBE,IAAa,oBAAoB,gBAAgB;AAAA,aACnDD,EAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBzB,GAKME,IAAYJ,EAAO;AAAA,EAIvB,CAAC,EAAE,OAAO,EAAE,QAAAC,EAAU,GAAA,YAAAE,GAAY,QAAAE,QAAa;AAAA;AAAA;AAAA;AAAA,WAItCA,CAAM;AAAA,sBACKJ,EAAO,OAAO;AAAA,sBACdA,EAAO,OAAO;AAAA;AAAA,eAGhCE,IAAa,mBAAmB,aAClC;AAAA;AAAA;AAAA;AAAA,4BAI0BE,CAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA8BlC,GAKMC,IAAmBN,EAAO;AAAA,EAC9B,CAAC,EAAE,aAAAO,EAAA,MAAkB;AAAA;AAAA;AAAA;AAAA,4BAIKA,CAAW;AAAA;AAAA;AAAA;AAIvC,GAKMC,IAAuBR,EAAO;AAAA,EAClC,CAAC,EAAE,OAAO,EAAE,QAAAC,EAAO,GAAG,aAAAM,EAAkB,MAAA;AAAA;AAAA;AAAA;AAAA,WAI/BN,EAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAOGM,CAAW;AAAA;AAAA;AAAA,aAG1BN,EAAO,OAAO;AAAA;AAAA;AAG3B,GAEMQ,IAAiB,KACjBC,IAAkC,KAClCC,IAAgC,KAEhCC,IAAiBZ,EAAO;AAAA,EAG5B,CAAC,EAAE,YAAAG,EAAA,MAAiB;AAAA;AAAA,WAEXM,CAAc;AAAA;AAAA;AAAA,iBAGR,EAAEA,IAAiB,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAQdC,CAA+B;AAAA;AAAA;AAAA;AAAA,IAKnDP,IACI;AAAA;AAAA,4BAEoBQ,CAA6B;AAAA;AAAA;AAAA;AAAA,QAKjD,EACN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBF,GAEME,IAA4Bb,EAAO;AAAA,EACvC,CAAC,EAAE,OAAO,EAAE,QAAAC,GAAQ,QAAAC,EAAO,GAAG,YAAAC,QAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAM3BF,EAAO,WAAW;AAAA;AAAA,eAEzBE,IAAa,oBAAoB,gBAAgB;AAAA,aACnDD,EAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBzB;"}
@@ -1,55 +1,19 @@
1
- import { jsx as r, jsxs as f } from "react/jsx-runtime";
2
- import { captureException as u } from "@sentry/browser";
3
- import { memo as $, useCallback as g, Suspense as n } from "react";
4
- import { ErrorBoundary as a } from "react-error-boundary";
5
- import E from "../../../assets/line-icons/icons/cross.js";
6
- import h from "../error/error.js";
7
- import M from "../buttons/clickable/clickable.js";
8
- import x from "../layout/flex-view.js";
9
- import c from "../loader/app-loader/app-loader.js";
10
- import { ModalContainer as d, BottomSheetModal as v, ModalLoaderWrapper as C, SpotlightModal as B, BaseModal as S, CloseButtonContainer as W, BaseModalContent as w } from "./modal-styled.js";
11
- const q = $(({ modal: b, isClosing: o = !1, onClose: m }) => {
12
- const { renderAs: s, element: e, modalWidth: l, isDismissable: p } = b, i = g((t) => {
13
- u(t);
14
- }, []), k = g((t) => {
15
- t.stopPropagation();
16
- }, []);
17
- return s === "bottom-sheet" ? /* @__PURE__ */ r(d, { $isClosing: o, onClick: p ? m : () => null, children: /* @__PURE__ */ r(v, { $isClosing: o, onClick: k, children: /* @__PURE__ */ r(
18
- a,
19
- {
20
- fallback: /* @__PURE__ */ r(x, { $gap: 24, children: /* @__PURE__ */ r(h, { height: "100%" }) }),
21
- onError: i,
22
- children: /* @__PURE__ */ r(n, { fallback: /* @__PURE__ */ r(c, { height: "50vh" }), children: e })
23
- }
24
- ) }) }) : s === "spotlight" ? /* @__PURE__ */ r(d, { $isClosing: o, children: /* @__PURE__ */ r(
25
- a,
26
- {
27
- fallback: /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(h, { height: "100vh" }) }),
28
- onError: i,
29
- children: /* @__PURE__ */ f(
30
- n,
31
- {
32
- fallback: /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(c, { height: "100vh" }) }),
33
- children: [
34
- /* @__PURE__ */ r(B, { $isClosing: o }),
35
- e
36
- ]
37
- }
38
- )
39
- }
40
- ) }) : /* @__PURE__ */ r(d, { $isClosing: o, children: /* @__PURE__ */ f(S, { $isClosing: o, $width: l, children: [
41
- p !== !1 && /* @__PURE__ */ r(W, { $modalWidth: l, children: /* @__PURE__ */ r(M, { label: "Close", onClick: m, children: /* @__PURE__ */ r(E, { width: 40, height: 40 }) }) }),
42
- /* @__PURE__ */ r(w, { $modalWidth: l, children: /* @__PURE__ */ r(
43
- a,
44
- {
45
- fallback: /* @__PURE__ */ r(h, { height: "50vh", size: "compact" }),
46
- onError: i,
47
- children: /* @__PURE__ */ r(n, { fallback: /* @__PURE__ */ r(c, { height: "50vh" }), children: e })
48
- }
49
- ) })
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { memo as m } from "react";
3
+ import h from "../../../assets/line-icons/icons/cross.js";
4
+ import c from "../buttons/clickable/clickable.js";
5
+ import { ModalContainer as n, SpotlightModal as f, TransparentModalContainer as p, BaseModal as C, CloseButtonContainer as $, BaseModalContent as u } from "./modal-styled.js";
6
+ const W = m(({ modal: a, isClosing: o = !1, onClose: s }) => {
7
+ const { renderAs: t, element: r, modalWidth: l, isDismissable: d } = a;
8
+ return t === "spotlight" ? /* @__PURE__ */ i(n, { $isClosing: o, children: [
9
+ /* @__PURE__ */ e(f, { $isClosing: o }),
10
+ r
11
+ ] }) : t === "fullscreen-transparent" ? /* @__PURE__ */ e(p, { $isClosing: o, children: r }) : /* @__PURE__ */ e(n, { $isClosing: o, children: /* @__PURE__ */ i(C, { $isClosing: o, $width: l, children: [
12
+ d !== !1 && /* @__PURE__ */ e($, { $modalWidth: l, children: /* @__PURE__ */ e(c, { label: "Close", onClick: s, children: /* @__PURE__ */ e(h, { width: 40, height: 40 }) }) }),
13
+ /* @__PURE__ */ e(u, { $modalWidth: l, children: r })
50
14
  ] }) });
51
15
  });
52
16
  export {
53
- q as default
17
+ W as default
54
18
  };
55
19
  //# 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';\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 * 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 { renderAs, element, modalWidth, isDismissable } = 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') {\n return (\n <Styled.ModalContainer $isClosing={isClosing} onClick={isDismissable ? onClose : () => null}>\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}>\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}>\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","renderAs","element","modalWidth","isDismissable","sentryCaptureException","useCallback","error","captureException","handleStopPropagation","e","Styled.ModalContainer","Styled.BottomSheetModal","jsx","ErrorBoundary","FlexView","Error","Suspense","AppLoader","Styled.ModalLoaderWrapper","jsxs","Styled.SpotlightModal","Styled.BaseModal","Styled.CloseButtonContainer","Clickable","CrossIcon","Styled.BaseModalContent"],"mappings":";;;;;;;;;;AAkBM,MAAAA,IAAyBC,EAAK,CAAC,EAAE,OAAAC,GAAO,WAAAC,IAAY,IAAO,SAAAC,QAAc;AAC7E,QAAM,EAAE,UAAAC,GAAU,SAAAC,GAAS,YAAAC,GAAY,eAAAC,MAAkBN,GAEnDO,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,SAAIT,MAAa,mCAEZU,GAAA,EAAsB,YAAYZ,GAAW,SAASK,IAAgBJ,IAAU,MAAM,MACrF,4BAACY,GAAA,EAAwB,YAAYb,GAAW,SAASU,GACvD,UAAA,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,4BACGC,GAAS,EAAA,MAAM,IACd,UAAC,gBAAAF,EAAAG,GAAA,EAAM,QAAO,OAAA,CAAO,EACvB,CAAA;AAAA,MAEF,SAASX;AAAA,MAET,UAAA,gBAAAQ,EAACI,KAAS,UAAU,gBAAAJ,EAACK,KAAU,QAAO,OAAO,CAAA,GAAK,UAAQhB,EAAA,CAAA;AAAA,IAAA;AAAA,EAAA,EAE9D,CAAA,EACF,CAAA,IAIAD,MAAa,cAEZ,gBAAAY,EAAAF,GAAA,EAAsB,YAAYZ,GACjC,UAAA,gBAAAc;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,4BACGK,GAAA,EACC,UAAC,gBAAAN,EAAAG,GAAA,EAAM,QAAO,QAAQ,CAAA,GACxB;AAAA,MAEF,SAASX;AAAA,MAET,UAAA,gBAAAe;AAAA,QAACH;AAAA,QAAA;AAAA,UACC,4BACGE,GAAA,EACC,UAAC,gBAAAN,EAAAK,GAAA,EAAU,QAAO,QAAQ,CAAA,GAC5B;AAAA,UAGF,UAAA;AAAA,YAAA,gBAAAL,EAACQ,GAAA,EAAsB,YAAYtB,EAAW,CAAA;AAAA,YAC7CG;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAEJ,EAAA,CAAA,IAKD,gBAAAW,EAAAF,GAAA,EAAsB,YAAYZ,GACjC,UAAC,gBAAAqB,EAAAE,GAAA,EAAiB,YAAYvB,GAAW,QAAQI,GAC9C,UAAA;AAAA,IAAkBC,MAAA,wBAChBmB,GAAA,EAA4B,aAAapB,GACxC,4BAACqB,GAAU,EAAA,OAAM,SAAQ,SAASxB,GAChC,4BAACyB,GAAU,EAAA,OAAO,IAAI,QAAQ,IAAI,GACpC,EACF,CAAA;AAAA,IAED,gBAAAZ,EAAAa,GAAA,EAAwB,aAAavB,GACpC,UAAA,gBAAAU;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAW,gBAAAD,EAAAG,GAAA,EAAM,QAAO,QAAO,MAAK,WAAU;AAAA,QAC9C,SAASX;AAAA,QAET,UAAA,gBAAAQ,EAACI,KAAS,UAAU,gBAAAJ,EAACK,KAAU,QAAO,OAAO,CAAA,GAAK,UAAQhB,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 { memo } from 'react';\n\nimport CrossIcon from '../../../assets/line-icons/icons/cross';\nimport Clickable from '../buttons/clickable/clickable';\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 { renderAs, element, modalWidth, isDismissable } = modal;\n\n if (renderAs === 'spotlight') {\n return (\n <Styled.ModalContainer $isClosing={isClosing}>\n <Styled.SpotlightModal $isClosing={isClosing} />\n {element}\n </Styled.ModalContainer>\n );\n }\n\n if (renderAs === 'fullscreen-transparent') {\n return (\n <Styled.TransparentModalContainer $isClosing={isClosing}>\n {element}\n </Styled.TransparentModalContainer>\n );\n }\n\n return (\n <Styled.ModalContainer $isClosing={isClosing}>\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}>{element}</Styled.BaseModalContent>\n </Styled.BaseModal>\n </Styled.ModalContainer>\n );\n});\n\nexport default Modal;\n"],"names":["Modal","memo","modal","isClosing","onClose","renderAs","element","modalWidth","isDismissable","jsxs","Styled.ModalContainer","jsx","Styled.SpotlightModal","Styled.TransparentModalContainer","Styled.BaseModal","Styled.CloseButtonContainer","Clickable","CrossIcon","Styled.BaseModalContent"],"mappings":";;;;;AAaM,MAAAA,IAAyBC,EAAK,CAAC,EAAE,OAAAC,GAAO,WAAAC,IAAY,IAAO,SAAAC,QAAc;AAC7E,QAAM,EAAE,UAAAC,GAAU,SAAAC,GAAS,YAAAC,GAAY,eAAAC,MAAkBN;AAEzD,SAAIG,MAAa,cAEZ,gBAAAI,EAAAC,GAAA,EAAsB,YAAYP,GACjC,UAAA;AAAA,IAAA,gBAAAQ,EAACC,GAAA,EAAsB,YAAYT,EAAW,CAAA;AAAA,IAC7CG;AAAA,EACH,EAAA,CAAA,IAIAD,MAAa,6CAEZQ,GAAA,EAAiC,YAAYV,GAC3C,UACHG,EAAA,CAAA,IAKD,gBAAAK,EAAAD,GAAA,EAAsB,YAAYP,GACjC,UAAC,gBAAAM,EAAAK,GAAA,EAAiB,YAAYX,GAAW,QAAQI,GAC9C,UAAA;AAAA,IAAkBC,MAAA,wBAChBO,GAAA,EAA4B,aAAaR,GACxC,4BAACS,GAAU,EAAA,OAAM,SAAQ,SAASZ,GAChC,4BAACa,GAAU,EAAA,OAAO,IAAI,QAAQ,IAAI,GACpC,EACF,CAAA;AAAA,sBAEDC,GAAA,EAAwB,aAAaX,GAAa,UAAQD,GAAA;AAAA,EAAA,EAC7D,CAAA,EACF,CAAA;AAEJ,CAAC;"}
@@ -1,6 +1,6 @@
1
1
  import e from "styled-components";
2
2
  import n from "../layout/flex-view.js";
3
- const p = e.div`
3
+ const r = e.div`
4
4
  position: absolute;
5
5
  top: ${({ $top: t }) => t}px;
6
6
  left: ${({ $left: t }) => t}px;
@@ -11,22 +11,15 @@ const p = e.div`
11
11
  align-items: end;
12
12
  z-index: ${({ $zIndex: t }) => t};
13
13
  pointer-events: none;
14
- `, r = e(n)`
15
- div {
16
- // Inner container of Lottie Component
17
- display: flex;
18
- justify-content: center;
19
- align-items: center;
20
- }
14
+ `, p = e(n)`
15
+ overflow: hidden;
21
16
 
22
- svg {
23
- width: 33.84px !important;
24
- height: 47.27px !important;
25
- display: block;
17
+ & svg {
18
+ transform: scale(3.5) !important;
26
19
  }
27
20
  `;
28
21
  export {
29
- r as NudgeLottieContainer,
30
- p as NudgeWrapper
22
+ p as NudgeLottieContainer,
23
+ r as NudgeWrapper
31
24
  };
32
25
  //# sourceMappingURL=nudge-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nudge-styled.js","sources":["../../../../src/features/ui/nudge/nudge-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../layout/flex-view';\n\ninterface NudgeWrapperProps {\n $top: number;\n $left: number;\n $zIndex: number;\n}\n\nexport const NudgeWrapper = styled.div<NudgeWrapperProps>`\n position: absolute;\n top: ${({ $top }) => $top}px;\n left: ${({ $left }) => $left}px;\n height: max-content;\n width: max-content;\n display: flex;\n justify-content: center;\n align-items: end;\n z-index: ${({ $zIndex }) => $zIndex};\n pointer-events: none;\n`;\n\nexport const NudgeLottieContainer = styled(FlexView)`\n div {\n // Inner container of Lottie Component\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n svg {\n width: 33.84px !important;\n height: 47.27px !important;\n display: block;\n }\n`;\n"],"names":["NudgeWrapper","styled","$top","$left","$zIndex","NudgeLottieContainer","FlexView"],"mappings":";;AAUO,MAAMA,IAAeC,EAAO;AAAA;AAAA,SAE1B,CAAC,EAAE,MAAAC,EAAK,MAAMA,CAAI;AAAA,UACjB,CAAC,EAAE,OAAAC,EAAM,MAAMA,CAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAMjB,CAAC,EAAE,SAAAC,EAAQ,MAAMA,CAAO;AAAA;AAAA,GAIxBC,IAAuBJ,EAAOK,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
1
+ {"version":3,"file":"nudge-styled.js","sources":["../../../../src/features/ui/nudge/nudge-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../layout/flex-view';\n\ninterface NudgeWrapperProps {\n $top: number;\n $left: number;\n $zIndex: number;\n}\n\nexport const NudgeWrapper = styled.div<NudgeWrapperProps>`\n position: absolute;\n top: ${({ $top }) => $top}px;\n left: ${({ $left }) => $left}px;\n height: max-content;\n width: max-content;\n display: flex;\n justify-content: center;\n align-items: end;\n z-index: ${({ $zIndex }) => $zIndex};\n pointer-events: none;\n`;\n\nexport const NudgeLottieContainer = styled(FlexView)`\n overflow: hidden;\n\n & svg {\n transform: scale(3.5) !important;\n }\n`;\n"],"names":["NudgeWrapper","styled","$top","$left","$zIndex","NudgeLottieContainer","FlexView"],"mappings":";;AAUO,MAAMA,IAAeC,EAAO;AAAA;AAAA,SAE1B,CAAC,EAAE,MAAAC,EAAK,MAAMA,CAAI;AAAA,UACjB,CAAC,EAAE,OAAAC,EAAM,MAAMA,CAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAMjB,CAAC,EAAE,SAAAC,EAAQ,MAAMA,CAAO;AAAA;AAAA,GAIxBC,IAAuBJ,EAAOK,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -1,18 +1,17 @@
1
- import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
- import { memo as n } from "react";
1
+ import { jsxs as n, jsx as t } from "react/jsx-runtime";
3
2
  import { LOTTIE as d } from "../../../assets/lottie/lottie.js";
4
- import p from "../lottie-animation/lottie-animation.js";
5
- import { NudgeWrapper as f, NudgeLottieContainer as s } from "./nudge-styled.js";
6
- const u = ({
7
- content: o,
8
- nudgePointerX: r = 0,
9
- nudgePointerY: e = 0,
3
+ import m from "../lottie-animation/lottie-animation.js";
4
+ import { NudgeWrapper as p, NudgeLottieContainer as s } from "./nudge-styled.js";
5
+ const f = ({
6
+ content: r,
7
+ nudgePointerX: e = 0,
8
+ nudgePointerY: o = 0,
10
9
  zIndex: i = 100
11
- }) => /* @__PURE__ */ m(f, { $top: e, $left: r, $zIndex: i, children: [
12
- /* @__PURE__ */ t(s, { $height: 60, $width: 60, children: /* @__PURE__ */ t(p, { src: d.NUDGE_TAP }) }),
13
- o
14
- ] }), N = n(u);
10
+ }) => /* @__PURE__ */ n(p, { $top: o, $left: e, $zIndex: i, children: [
11
+ /* @__PURE__ */ t(s, { $height: 64, $width: 64, children: /* @__PURE__ */ t(m, { src: d.NUDGE_TAP }) }),
12
+ r
13
+ ] }), g = f;
15
14
  export {
16
- N as default
15
+ g as default
17
16
  };
18
17
  //# sourceMappingURL=nudge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nudge.js","sources":["../../../../src/features/ui/nudge/nudge.tsx"],"sourcesContent":["import type { INudgeProps } from './nudge-types';\n\nimport React, { memo } from 'react';\n\nimport { LOTTIE } from '../../../assets/lottie/lottie';\nimport LottieAnimation from '../lottie-animation/lottie-animation';\nimport * as S from './nudge-styled';\n\nconst Nudge: React.FC<INudgeProps> = ({\n content,\n nudgePointerX = 0,\n nudgePointerY = 0,\n zIndex = 100,\n}) => {\n return (\n <S.NudgeWrapper $top={nudgePointerY} $left={nudgePointerX} $zIndex={zIndex}>\n <S.NudgeLottieContainer $height={60} $width={60}>\n <LottieAnimation src={LOTTIE.NUDGE_TAP} />\n </S.NudgeLottieContainer>\n {content}\n </S.NudgeWrapper>\n );\n};\n\nexport default memo(Nudge);\n"],"names":["Nudge","content","nudgePointerX","nudgePointerY","zIndex","jsxs","S.NudgeWrapper","jsx","S.NudgeLottieContainer","LottieAnimation","LOTTIE","Nudge$1","memo"],"mappings":";;;;;AAQA,MAAMA,IAA+B,CAAC;AAAA,EACpC,SAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,eAAAC,IAAgB;AAAA,EAChB,QAAAC,IAAS;AACX,MAEI,gBAAAC,EAACC,GAAA,EAAe,MAAMH,GAAe,OAAOD,GAAe,SAASE,GAClE,UAAA;AAAA,EAAA,gBAAAG,EAACC,GAAA,EAAuB,SAAS,IAAI,QAAQ,IAC3C,UAAA,gBAAAD,EAACE,GAAgB,EAAA,KAAKC,EAAO,UAAA,CAAW,EAC1C,CAAA;AAAA,EACCT;AACH,EAAA,CAAA,GAIWU,IAAAC,EAAKZ,CAAK;"}
1
+ {"version":3,"file":"nudge.js","sources":["../../../../src/features/ui/nudge/nudge.tsx"],"sourcesContent":["import type { INudgeProps } from './nudge-types';\n\nimport React from 'react';\n\nimport { LOTTIE } from '../../../assets/lottie/lottie';\nimport LottieAnimation from '../lottie-animation/lottie-animation';\nimport * as S from './nudge-styled';\n\nconst Nudge: React.FC<INudgeProps> = ({\n content,\n nudgePointerX = 0,\n nudgePointerY = 0,\n zIndex = 100,\n}) => {\n return (\n <S.NudgeWrapper $top={nudgePointerY} $left={nudgePointerX} $zIndex={zIndex}>\n <S.NudgeLottieContainer $height={64} $width={64}>\n <LottieAnimation src={LOTTIE.NUDGE_TAP} />\n </S.NudgeLottieContainer>\n {content}\n </S.NudgeWrapper>\n );\n};\n\nexport default Nudge;\n"],"names":["Nudge","content","nudgePointerX","nudgePointerY","zIndex","jsxs","S.NudgeWrapper","jsx","S.NudgeLottieContainer","LottieAnimation","LOTTIE","Nudge$1"],"mappings":";;;;AAQA,MAAMA,IAA+B,CAAC;AAAA,EACpC,SAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,eAAAC,IAAgB;AAAA,EAChB,QAAAC,IAAS;AACX,MAEI,gBAAAC,EAACC,GAAA,EAAe,MAAMH,GAAe,OAAOD,GAAe,SAASE,GAClE,UAAA;AAAA,EAAA,gBAAAG,EAACC,GAAA,EAAuB,SAAS,IAAI,QAAQ,IAC3C,UAAA,gBAAAD,EAACE,GAAgB,EAAA,KAAKC,EAAO,UAAA,CAAW,EAC1C,CAAA;AAAA,EACCT;AACH,EAAA,CAAA,GAIJU,IAAeX;"}
@@ -1,4 +1,4 @@
1
- import i, { keyframes as o } from "styled-components";
1
+ import t, { keyframes as o } from "styled-components";
2
2
  const n = o`
3
3
  66%{
4
4
  opacity: 0;
@@ -6,29 +6,29 @@ const n = o`
6
6
  33%{
7
7
  opacity: 1;
8
8
  }
9
- `, a = i.div`
9
+ `, a = t.div`
10
10
  height: 32px;
11
11
  width: 32px;
12
12
  display: flex;
13
13
  align-items: center;
14
14
  justify-content: center;
15
15
  position: relative;
16
- cursor: ${({ isInteractive: t }) => t ? "pointer" : "default"};
17
- `, s = i.div`
16
+ cursor: pointer;
17
+ `, s = t.div`
18
18
  height: 90%;
19
19
  width: 90%;
20
20
  position: absolute;
21
- background: ${({ theme: t }) => t.colors.BLACK_1};
21
+ background: ${({ theme: i }) => i.colors.BLACK_1};
22
22
  border-radius: 24px;
23
- `, d = i.div`
23
+ `, d = t.div`
24
24
  height: 90%;
25
25
  width: 90%;
26
26
  position: absolute;
27
- background: ${({ theme: t }) => t.colors.RED};
27
+ background: ${({ theme: i }) => i.colors.RED};
28
28
  border-radius: 32px;
29
29
  animation: ${n}
30
- ${({ $blinkDelay: t, $blinkDuration: e }) => `${e + t}ms linear infinite`};
31
- `, c = i.div`
30
+ ${({ $blinkDelay: i, $blinkDuration: e }) => `${e + i}ms linear infinite`};
31
+ `, c = t.div`
32
32
  height: 100%;
33
33
  width: 100%;
34
34
  display: flex;
@@ -38,22 +38,22 @@ const n = o`
38
38
  align-self: center;
39
39
  padding-top: 6px;
40
40
  z-index: 1;
41
- `, l = i.div`
41
+ `, p = t.div`
42
42
  position: absolute;
43
43
  top: 0;
44
44
  left: 0;
45
45
  bottom: 0;
46
46
  right: 0;
47
- `, p = i.img`
47
+ `, l = t.img`
48
48
  width: 100%;
49
49
  height: 100%;
50
50
  `;
51
51
  export {
52
52
  d as StreakBg,
53
53
  c as StreakContent,
54
- l as StreakImg,
54
+ p as StreakImg,
55
55
  s as StreakStaticBg,
56
56
  a as StreakWrapper,
57
- p as StyledImg
57
+ l as StyledImg
58
58
  };
59
59
  //# sourceMappingURL=streak-icon-styled.js.map