@cuemath/leap 3.2.17-j1 → 3.2.17-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 (241) hide show
  1. package/dist/assets/illustrations/illustrations.js +0 -5
  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/comps/tables-card/tables-card-styled.js +4 -4
  30. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js.map +1 -1
  31. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js +85 -85
  32. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js.map +1 -1
  33. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +98 -121
  34. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
  35. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +28 -29
  36. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +1 -1
  37. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +42 -43
  38. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -1
  39. package/dist/features/circle-games/games/tutorial/tutorial.js +35 -43
  40. package/dist/features/circle-games/games/tutorial/tutorial.js.map +1 -1
  41. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js +2 -2
  42. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js.map +1 -1
  43. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js +1 -1
  44. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js.map +1 -1
  45. package/dist/features/circle-games/sign-up/comp/username-input/username-input.js +24 -26
  46. package/dist/features/circle-games/sign-up/comp/username-input/username-input.js.map +1 -1
  47. package/dist/features/circle-games/sign-up/constants.js +1 -3
  48. package/dist/features/circle-games/sign-up/constants.js.map +1 -1
  49. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js +42 -42
  50. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js.map +1 -1
  51. package/dist/features/hooks/use-viewport/use-viewport.js +22 -0
  52. package/dist/features/hooks/use-viewport/use-viewport.js.map +1 -0
  53. package/dist/features/journey/comps/coachmark/coachmark.js +27 -29
  54. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  55. package/dist/features/journey/journey-id/journey-id-student.js +2 -2
  56. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  57. package/dist/features/journey/use-journey/journey-context-provider.js +72 -73
  58. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  59. package/dist/features/journey/use-journey/journey-styled.js +4 -6
  60. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  61. package/dist/features/stickers/sticker-data.js +234 -0
  62. package/dist/features/stickers/sticker-data.js.map +1 -0
  63. package/dist/features/{ui/sticker-grid/sticker-grid-styles.js → stickers/sticker-selector/sticker-selector-styles.js} +4 -3
  64. package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +1 -0
  65. package/dist/features/stickers/sticker-selector/sticker-selector.js +25 -0
  66. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -0
  67. package/dist/features/stickers/sticker-selector/sticker.js +57 -0
  68. package/dist/features/stickers/sticker-selector/sticker.js.map +1 -0
  69. package/dist/features/{ui/stickers/stickers-effects.js → stickers/stickers-effects/effects.js} +6 -6
  70. package/dist/features/stickers/stickers-effects/effects.js.map +1 -0
  71. package/dist/features/{ui/stickers/stickers-styled.js → stickers/stickers-effects/stickers-effects-styled.js} +2 -2
  72. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -0
  73. package/dist/features/{ui/stickers/stickers-utils.js → stickers/stickers-effects/stickers-effects-utils.js} +6 -6
  74. package/dist/features/stickers/stickers-effects/stickers-effects-utils.js.map +1 -0
  75. package/dist/features/stickers/stickers-effects/stickers-effects.js +39 -0
  76. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -0
  77. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +60 -12
  78. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
  79. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +77 -72
  80. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  81. package/dist/features/ui/error/error.js +27 -65
  82. package/dist/features/ui/error/error.js.map +1 -1
  83. package/dist/features/ui/image/image.js +1 -1
  84. package/dist/features/ui/image/image.js.map +1 -1
  85. package/dist/features/ui/lottie-animation/lottie-animation.js +29 -25
  86. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  87. package/dist/features/ui/modals/modal-styled.js +58 -34
  88. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  89. package/dist/features/ui/modals/modal.js +14 -40
  90. package/dist/features/ui/modals/modal.js.map +1 -1
  91. package/dist/features/ui/nudge/nudge-styled.js +7 -14
  92. package/dist/features/ui/nudge/nudge-styled.js.map +1 -1
  93. package/dist/features/ui/nudge/nudge.js +12 -13
  94. package/dist/features/ui/nudge/nudge.js.map +1 -1
  95. package/dist/features/ui/streak-icon/streak-icon-styled.js +13 -13
  96. package/dist/features/ui/streak-icon/streak-icon-styled.js.map +1 -1
  97. package/dist/features/ui/streak-icon/streak-icon.js +15 -17
  98. package/dist/features/ui/streak-icon/streak-icon.js.map +1 -1
  99. package/dist/features/ui/text/text.js +36 -40
  100. package/dist/features/ui/text/text.js.map +1 -1
  101. package/dist/features/ui/theme/button.js +78 -78
  102. package/dist/features/ui/theme/button.js.map +1 -1
  103. package/dist/features/ui/theme/constants.js +2 -4
  104. package/dist/features/ui/theme/constants.js.map +1 -1
  105. package/dist/features/ui/theme/get-device.js +3 -3
  106. package/dist/features/ui/theme/get-device.js.map +1 -1
  107. package/dist/features/worksheet/worksheet/constants.js +13 -12
  108. package/dist/features/worksheet/worksheet/constants.js.map +1 -1
  109. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +24 -24
  110. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  111. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +260 -246
  112. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  113. package/dist/features/worksheet/worksheet/worksheet-styled.js +28 -37
  114. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  115. package/dist/features/worksheet/worksheet/worksheet.js +164 -166
  116. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  117. package/dist/index.d.ts +55 -184
  118. package/dist/index.js +541 -579
  119. package/dist/index.js.map +1 -1
  120. package/dist/node_modules/query-string/base.js +1 -1
  121. package/dist/node_modules/query-string/node_modules/decode-uri-component/index.js.map +1 -0
  122. package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
  123. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
  124. package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
  125. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  126. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
  127. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  128. package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -12
  129. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  130. package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
  131. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
  132. package/dist/static/nudge-tap.5cb30093.json +1057 -0
  133. package/package.json +1 -1
  134. package/dist/assets/line-icons/icons/after-noon.js +0 -34
  135. package/dist/assets/line-icons/icons/after-noon.js.map +0 -1
  136. package/dist/assets/line-icons/icons/apple-icon-white.js +0 -42
  137. package/dist/assets/line-icons/icons/apple-icon-white.js.map +0 -1
  138. package/dist/assets/line-icons/icons/cue-board-filled.js +0 -33
  139. package/dist/assets/line-icons/icons/cue-board-filled.js.map +0 -1
  140. package/dist/assets/line-icons/icons/cue-board.js +0 -23
  141. package/dist/assets/line-icons/icons/cue-board.js.map +0 -1
  142. package/dist/assets/line-icons/icons/evening.js +0 -35
  143. package/dist/assets/line-icons/icons/evening.js.map +0 -1
  144. package/dist/assets/line-icons/icons/hint-fill.js +0 -35
  145. package/dist/assets/line-icons/icons/hint-fill.js.map +0 -1
  146. package/dist/assets/line-icons/icons/morning.js +0 -35
  147. package/dist/assets/line-icons/icons/morning.js.map +0 -1
  148. package/dist/assets/line-icons/icons/screen-grab-filled.js +0 -35
  149. package/dist/assets/line-icons/icons/screen-grab-filled.js.map +0 -1
  150. package/dist/assets/line-icons/icons/screen-grab.js +0 -23
  151. package/dist/assets/line-icons/icons/screen-grab.js.map +0 -1
  152. package/dist/assets/line-icons/icons/sticker-filled.js +0 -64
  153. package/dist/assets/line-icons/icons/sticker-filled.js.map +0 -1
  154. package/dist/assets/line-icons/icons/sticker.js +0 -46
  155. package/dist/assets/line-icons/icons/sticker.js.map +0 -1
  156. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js +0 -9
  157. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js.map +0 -1
  158. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +0 -52
  159. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +0 -1
  160. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +0 -95
  161. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +0 -1
  162. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text-styled.js +0 -10
  163. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text-styled.js.map +0 -1
  164. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js +0 -17
  165. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js.map +0 -1
  166. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js +0 -12
  167. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js.map +0 -1
  168. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js +0 -34
  169. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js.map +0 -1
  170. package/dist/features/auth/comps/otp-input/otp-input-styled.js +0 -22
  171. package/dist/features/auth/comps/otp-input/otp-input-styled.js.map +0 -1
  172. package/dist/features/auth/comps/otp-input/otp-input.js +0 -51
  173. package/dist/features/auth/comps/otp-input/otp-input.js.map +0 -1
  174. package/dist/features/auth/comps/pill-button/pill-button-styled.js +0 -44
  175. package/dist/features/auth/comps/pill-button/pill-button-styled.js.map +0 -1
  176. package/dist/features/auth/comps/pill-button/pill-button.js +0 -75
  177. package/dist/features/auth/comps/pill-button/pill-button.js.map +0 -1
  178. package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js +0 -17
  179. package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js.map +0 -1
  180. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +0 -67
  181. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +0 -1
  182. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js +0 -19
  183. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js.map +0 -1
  184. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js +0 -32
  185. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js.map +0 -1
  186. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js +0 -44
  187. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js.map +0 -1
  188. package/dist/features/auth/pla-signup/signup-header/signup-header.js +0 -54
  189. package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +0 -1
  190. package/dist/features/auth/pla-signup/signup-options/signup-options.js +0 -83
  191. package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +0 -1
  192. package/dist/features/puzzles/app/puzzle-app-styled.js +0 -81
  193. package/dist/features/puzzles/app/puzzle-app-styled.js.map +0 -1
  194. package/dist/features/puzzles/app/puzzle-app-view.js +0 -120
  195. package/dist/features/puzzles/app/puzzle-app-view.js.map +0 -1
  196. package/dist/features/puzzles/app/puzzle-app.js +0 -62
  197. package/dist/features/puzzles/app/puzzle-app.js.map +0 -1
  198. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js +0 -6
  199. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js.map +0 -1
  200. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js +0 -63
  201. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js.map +0 -1
  202. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +0 -21
  203. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +0 -1
  204. package/dist/features/ui/drawer/drawer-styled.js +0 -34
  205. package/dist/features/ui/drawer/drawer-styled.js.map +0 -1
  206. package/dist/features/ui/drawer/drawer.js +0 -42
  207. package/dist/features/ui/drawer/drawer.js.map +0 -1
  208. package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +0 -1
  209. package/dist/features/ui/sticker-grid/sticker-grid.js +0 -24
  210. package/dist/features/ui/sticker-grid/sticker-grid.js.map +0 -1
  211. package/dist/features/ui/sticker-grid/sticker.js +0 -57
  212. package/dist/features/ui/sticker-grid/sticker.js.map +0 -1
  213. package/dist/features/ui/stickers/constants.js +0 -6
  214. package/dist/features/ui/stickers/constants.js.map +0 -1
  215. package/dist/features/ui/stickers/stickers-effects.js.map +0 -1
  216. package/dist/features/ui/stickers/stickers-styled.js.map +0 -1
  217. package/dist/features/ui/stickers/stickers-utils.js.map +0 -1
  218. package/dist/features/ui/stickers/stickers.js +0 -40
  219. package/dist/features/ui/stickers/stickers.js.map +0 -1
  220. package/dist/node_modules/decode-uri-component/index.js.map +0 -1
  221. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
  222. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
  223. package/dist/static/animated-avatar.1ad58b1d.json +0 -1
  224. package/dist/static/animated-avatar.69b07505.json +0 -1
  225. package/dist/static/animated-avatar.9c560b46.json +0 -1
  226. package/dist/static/calendar-purple.1a840b41.svg +0 -1
  227. package/dist/static/flying-disk.c7f6ed39.json +0 -1
  228. package/dist/static/graduation-cap.3be3340a.json +0 -1
  229. package/dist/static/handshake.287e7dfb.svg +0 -1
  230. package/dist/static/light-bulb.c6db0b23.json +0 -1
  231. package/dist/static/money.332aacf1.svg +0 -1
  232. package/dist/static/muscle.9bcfb8a7.json +0 -1
  233. package/dist/static/nudge-tap.0591aef4.json +0 -1
  234. package/dist/static/parent-avatar.822c7b9b.svg +0 -1
  235. package/dist/static/pencil.23df9da0.json +0 -1
  236. package/dist/static/plus-sign.de6af957.json +0 -1
  237. package/dist/static/racing-car.2cbf864e.json +0 -1
  238. package/dist/static/rocket.0a3ccab0.json +0 -1
  239. package/dist/static/shovel.abeec04c.json +0 -1
  240. package/dist/static/trustpilot.bd3d79e1.svg +0 -1
  241. /package/dist/node_modules/{decode-uri-component → query-string/node_modules/decode-uri-component}/index.js +0 -0
@@ -1,95 +0,0 @@
1
- import { jsxs as b, jsx as l } from "react/jsx-runtime";
2
- import { memo as N, useRef as T, useState as $, useEffect as o, useCallback as R, useImperativeHandle as V, useMemo as _ } from "react";
3
- import { LOTTIE as O } from "../../../../assets/lottie/lottie.js";
4
- import x from "../../../ui/layout/flex-view.js";
5
- import j from "../../../ui/lottie-animation/lottie-animation.js";
6
- import { ANIMATION_SEGMENTS as E, FADE_TIMEOUT as L } from "./animated-avatar-message-constants.js";
7
- import { Wrapper as C, MessageWrapper as D } from "./animated-avatar-message-styled.js";
8
- import F from "./animated-text/animated-text.js";
9
- const X = {
10
- autoplay: !1,
11
- loop: !1,
12
- renderer: "canvas"
13
- }, k = ({
14
- message: n,
15
- confirmationMessage: e,
16
- onShowContent: t,
17
- confirmationFrames: c,
18
- isConfirmationVisible: m,
19
- ref: M,
20
- height: h = "auto"
21
- }) => {
22
- const r = T(null), u = T(null), [p, i] = $(!1), [f, d] = $(m);
23
- o(() => () => {
24
- u.current && clearTimeout(u.current);
25
- }, []), o(() => {
26
- d(m);
27
- }, [m]), o(() => {
28
- i(!0), t(!0);
29
- }, [n, t]);
30
- const v = R(() => {
31
- var a, A;
32
- (a = r.current) == null || a.playSegments(E.INITIAL, !0);
33
- const s = () => {
34
- var g, I;
35
- (g = r.current) == null || g.removeEventListener("complete", s), i(!0), t(!0), (I = r.current) == null || I.playSegments(E.FINAL, !0);
36
- };
37
- (A = r.current) == null || A.addEventListener("complete", s);
38
- }, [t]);
39
- V(
40
- M,
41
- () => ({
42
- fadeOutMessage: () => new Promise((s) => {
43
- t(!1), u.current = setTimeout(() => {
44
- i(!1), s();
45
- }, L);
46
- }),
47
- playConfirmationFrames: () => new Promise((s) => {
48
- var a;
49
- (a = r.current) == null || a.playSegments(c, !0), e && i(!1), u.current = setTimeout(() => {
50
- e && d(!0), i(!0), s();
51
- }, L);
52
- })
53
- }),
54
- [c, e, t]
55
- );
56
- const y = _(() => f && e ? e : n, [f, e, n]);
57
- return /* @__PURE__ */ b(
58
- C,
59
- {
60
- $flexDirection: "row",
61
- $justifyContent: "flex-start",
62
- $alignItems: "center",
63
- $flexColumnGapX: 0.5,
64
- $height: h,
65
- children: [
66
- /* @__PURE__ */ l(x, { $width: 80, $height: 80, children: /* @__PURE__ */ l(
67
- j,
68
- {
69
- width: 80,
70
- height: 80,
71
- src: O.ANIMATED_AVATAR,
72
- ref: r,
73
- onRender: v,
74
- settings: X
75
- }
76
- ) }),
77
- p && /* @__PURE__ */ l(x, { $flex: 1, children: /* @__PURE__ */ l(
78
- D,
79
- {
80
- $gutterX: 1,
81
- $gapX: 0.5,
82
- $background: "BLACK_3",
83
- $borderColor: "BLACK_5",
84
- isVisible: p,
85
- children: /* @__PURE__ */ l(F, { text: y, speed: 20 })
86
- }
87
- ) })
88
- ]
89
- }
90
- );
91
- }, U = N(k);
92
- export {
93
- U as default
94
- };
95
- //# sourceMappingURL=animated-avatar-message.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"animated-avatar-message.js","sources":["../../../../../src/features/auth/comps/animated-avatar-message/animated-avatar-message.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../../ui/lottie-animation/types';\nimport type { IAnimatedAvatarMessageProps } from './animated-avatar-message-types';\n\nimport {\n useCallback,\n useImperativeHandle,\n useRef,\n useState,\n useEffect,\n type FC,\n useMemo,\n memo,\n} from 'react';\n\nimport { LOTTIE } from '../../../../assets/lottie/lottie';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport { ANIMATION_SEGMENTS, FADE_TIMEOUT } from './animated-avatar-message-constants';\nimport * as Styled from './animated-avatar-message-styled';\nimport AnimatedText from './animated-text/animated-text';\n\nconst animationSettings = {\n autoplay: false,\n loop: false,\n renderer: 'canvas',\n};\n\nconst AnimatedAvatarMessage: FC<IAnimatedAvatarMessageProps> = ({\n message,\n confirmationMessage,\n onShowContent,\n confirmationFrames,\n isConfirmationVisible,\n ref,\n height = 'auto',\n}) => {\n const animationRef = useRef<ILottieAnimationRef | null>(null);\n const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n const [isMessageVisible, setIsMessageVisible] = useState(false);\n const [isConfirmationMessageVisible, setIsConfirmationMessageVisible] =\n useState(isConfirmationVisible);\n\n useEffect(() => {\n return () => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n };\n }, []);\n\n useEffect(() => {\n setIsConfirmationMessageVisible(isConfirmationVisible);\n }, [isConfirmationVisible]);\n\n useEffect(() => {\n setIsMessageVisible(true);\n onShowContent(true);\n }, [message, onShowContent]);\n\n const handleLottieRender = useCallback(() => {\n animationRef.current?.playSegments(ANIMATION_SEGMENTS.INITIAL, true);\n const onComplete = () => {\n animationRef.current?.removeEventListener('complete', onComplete);\n setIsMessageVisible(true);\n onShowContent(true);\n\n animationRef.current?.playSegments(ANIMATION_SEGMENTS.FINAL, true);\n };\n\n animationRef.current?.addEventListener('complete', onComplete);\n }, [onShowContent]);\n\n useImperativeHandle(\n ref,\n () => ({\n fadeOutMessage: () =>\n new Promise<void>(resolve => {\n onShowContent(false);\n timeoutRef.current = setTimeout(() => {\n setIsMessageVisible(false);\n resolve();\n }, FADE_TIMEOUT);\n }),\n\n playConfirmationFrames: () =>\n new Promise<void>(resolve => {\n animationRef.current?.playSegments(confirmationFrames, true);\n if (confirmationMessage) {\n setIsMessageVisible(false);\n }\n timeoutRef.current = setTimeout(() => {\n if (confirmationMessage) {\n setIsConfirmationMessageVisible(true);\n }\n setIsMessageVisible(true);\n resolve();\n }, FADE_TIMEOUT);\n }),\n }),\n [confirmationFrames, confirmationMessage, onShowContent],\n );\n\n const displayMessage = useMemo(() => {\n return isConfirmationMessageVisible && confirmationMessage ? confirmationMessage : message;\n }, [isConfirmationMessageVisible, confirmationMessage, message]);\n\n return (\n <Styled.Wrapper\n $flexDirection=\"row\"\n $justifyContent=\"flex-start\"\n $alignItems=\"center\"\n $flexColumnGapX={0.5}\n $height={height}\n >\n <FlexView $width={80} $height={80}>\n <LottieAnimation\n width={80}\n height={80}\n src={LOTTIE.ANIMATED_AVATAR}\n ref={animationRef}\n onRender={handleLottieRender}\n settings={animationSettings}\n />\n </FlexView>\n {isMessageVisible && (\n <FlexView $flex={1}>\n <Styled.MessageWrapper\n $gutterX={1}\n $gapX={0.5}\n $background=\"BLACK_3\"\n $borderColor=\"BLACK_5\"\n isVisible={isMessageVisible}\n >\n <AnimatedText text={displayMessage} speed={20} />\n </Styled.MessageWrapper>\n </FlexView>\n )}\n </Styled.Wrapper>\n );\n};\n\nexport default memo(AnimatedAvatarMessage);\n"],"names":["animationSettings","AnimatedAvatarMessage","message","confirmationMessage","onShowContent","confirmationFrames","isConfirmationVisible","ref","height","animationRef","useRef","timeoutRef","isMessageVisible","setIsMessageVisible","useState","isConfirmationMessageVisible","setIsConfirmationMessageVisible","useEffect","handleLottieRender","useCallback","_a","ANIMATION_SEGMENTS","onComplete","_b","useImperativeHandle","resolve","FADE_TIMEOUT","displayMessage","useMemo","jsxs","Styled.Wrapper","jsx","FlexView","LottieAnimation","LOTTIE","Styled.MessageWrapper","AnimatedText","animatedAvatarMessage","memo"],"mappings":";;;;;;;;AAqBA,MAAMA,IAAoB;AAAA,EACxB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AACZ,GAEMC,IAAyD,CAAC;AAAA,EAC9D,SAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,eAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,KAAAC;AAAA,EACA,QAAAC,IAAS;AACX,MAAM;AACE,QAAAC,IAAeC,EAAmC,IAAI,GACtDC,IAAaD,EAA6C,IAAI,GAC9D,CAACE,GAAkBC,CAAmB,IAAIC,EAAS,EAAK,GACxD,CAACC,GAA8BC,CAA+B,IAClEF,EAASR,CAAqB;AAEhC,EAAAW,EAAU,MACD,MAAM;AACX,IAAIN,EAAW,WACb,aAAaA,EAAW,OAAO;AAAA,EACjC,GAED,CAAE,CAAA,GAELM,EAAU,MAAM;AACd,IAAAD,EAAgCV,CAAqB;AAAA,EAAA,GACpD,CAACA,CAAqB,CAAC,GAE1BW,EAAU,MAAM;AACd,IAAAJ,EAAoB,EAAI,GACxBT,EAAc,EAAI;AAAA,EAAA,GACjB,CAACF,GAASE,CAAa,CAAC;AAErB,QAAAc,IAAqBC,EAAY,MAAM;;AAC3C,KAAAC,IAAAX,EAAa,YAAb,QAAAW,EAAsB,aAAaC,EAAmB,SAAS;AAC/D,UAAMC,IAAa,MAAM;;AACV,OAAAF,IAAAX,EAAA,YAAA,QAAAW,EAAS,oBAAoB,YAAYE,IACtDT,EAAoB,EAAI,GACxBT,EAAc,EAAI,IAElBmB,IAAAd,EAAa,YAAb,QAAAc,EAAsB,aAAaF,EAAmB,OAAO;AAAA,IAAI;AAGtD,KAAAE,IAAAd,EAAA,YAAA,QAAAc,EAAS,iBAAiB,YAAYD;AAAA,EAAU,GAC5D,CAAClB,CAAa,CAAC;AAElB,EAAAoB;AAAA,IACEjB;AAAA,IACA,OAAO;AAAA,MACL,gBAAgB,MACd,IAAI,QAAc,CAAWkB,MAAA;AAC3B,QAAArB,EAAc,EAAK,GACRO,EAAA,UAAU,WAAW,MAAM;AACpC,UAAAE,EAAoB,EAAK,GACjBY;WACPC,CAAY;AAAA,MAAA,CAChB;AAAA,MAEH,wBAAwB,MACtB,IAAI,QAAc,CAAWD,MAAA;;AACd,SAAAL,IAAAX,EAAA,YAAA,QAAAW,EAAS,aAAaf,GAAoB,KACnDF,KACFU,EAAoB,EAAK,GAEhBF,EAAA,UAAU,WAAW,MAAM;AACpC,UAAIR,KACFa,EAAgC,EAAI,GAEtCH,EAAoB,EAAI,GAChBY;WACPC,CAAY;AAAA,MAAA,CAChB;AAAA,IAAA;AAAA,IAEL,CAACrB,GAAoBF,GAAqBC,CAAa;AAAA,EAAA;AAGnD,QAAAuB,IAAiBC,EAAQ,MACtBb,KAAgCZ,IAAsBA,IAAsBD,GAClF,CAACa,GAA8BZ,GAAqBD,CAAO,CAAC;AAG7D,SAAA,gBAAA2B;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,gBAAe;AAAA,MACf,iBAAgB;AAAA,MAChB,aAAY;AAAA,MACZ,iBAAiB;AAAA,MACjB,SAAStB;AAAA,MAET,UAAA;AAAA,QAAA,gBAAAuB,EAACC,GAAS,EAAA,QAAQ,IAAI,SAAS,IAC7B,UAAA,gBAAAD;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,OAAO;AAAA,YACP,QAAQ;AAAA,YACR,KAAKC,EAAO;AAAA,YACZ,KAAKzB;AAAA,YACL,UAAUS;AAAA,YACV,UAAUlB;AAAA,UAAA;AAAA,QAAA,GAEd;AAAA,QACCY,KACC,gBAAAmB,EAACC,GAAS,EAAA,OAAO,GACf,UAAA,gBAAAD;AAAA,UAACI;AAAAA,UAAA;AAAA,YACC,UAAU;AAAA,YACV,OAAO;AAAA,YACP,aAAY;AAAA,YACZ,cAAa;AAAA,YACb,WAAWvB;AAAA,YAEX,UAAC,gBAAAmB,EAAAK,GAAA,EAAa,MAAMT,GAAgB,OAAO,IAAI;AAAA,UAAA;AAAA,QAAA,GAEnD;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR,GAEeU,IAAAC,EAAKrC,CAAqB;"}
@@ -1,10 +0,0 @@
1
- import r from "styled-components";
2
- import e from "../../../../ui/text/text.js";
3
- const p = r(e)`
4
- white-space: pre-wrap;
5
- word-break: break-word;
6
- `;
7
- export {
8
- p as AnimatedText
9
- };
10
- //# sourceMappingURL=animated-text-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"animated-text-styled.js","sources":["../../../../../../src/features/auth/comps/animated-avatar-message/animated-text/animated-text-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport Text from '../../../../ui/text/text';\n\nexport const AnimatedText = styled(Text)`\n white-space: pre-wrap;\n word-break: break-word;\n`;\n"],"names":["AnimatedText","styled","Text"],"mappings":";;AAIa,MAAAA,IAAeC,EAAOC,CAAI;AAAA;AAAA;AAAA;"}
@@ -1,17 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { memo as o, useState as l, useEffect as m } from "react";
3
- import { AnimatedText as c } from "./animated-text-styled.js";
4
- const f = ({ text: e, speed: r = 30 }) => {
5
- const [s, n] = l(0);
6
- return m(() => {
7
- n(0);
8
- const a = setInterval(() => {
9
- n((t) => t >= e.length ? (clearInterval(a), t) : t + 1);
10
- }, r);
11
- return () => clearInterval(a);
12
- }, [e, r]), /* @__PURE__ */ i(c, { $renderAs: "ab2", $color: "WHITE", children: e.slice(0, s) });
13
- }, T = o(f);
14
- export {
15
- T as default
16
- };
17
- //# sourceMappingURL=animated-text.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"animated-text.js","sources":["../../../../../../src/features/auth/comps/animated-avatar-message/animated-text/animated-text.tsx"],"sourcesContent":["import type { IAnimatedTextProps } from './animated-text-types';\n\nimport React, { useEffect, useState, memo } from 'react';\n\nimport * as Styled from './animated-text-styled';\n\nconst AnimatedText: React.FC<IAnimatedTextProps> = ({ text, speed = 30 }) => {\n const [visibleChars, setVisibleChars] = useState(0);\n\n useEffect(() => {\n setVisibleChars(0);\n\n const interval = setInterval(() => {\n setVisibleChars(prev => {\n if (prev >= text.length) {\n clearInterval(interval);\n\n return prev;\n }\n\n return prev + 1;\n });\n }, speed);\n\n return () => clearInterval(interval);\n }, [text, speed]);\n\n return (\n <Styled.AnimatedText $renderAs=\"ab2\" $color=\"WHITE\">\n {text.slice(0, visibleChars)}\n </Styled.AnimatedText>\n );\n};\n\nexport default memo(AnimatedText);\n"],"names":["AnimatedText","text","speed","visibleChars","setVisibleChars","useState","useEffect","interval","prev","jsx","Styled.AnimatedText","AnimatedText$1","memo"],"mappings":";;;AAMA,MAAMA,IAA6C,CAAC,EAAE,MAAAC,GAAM,OAAAC,IAAQ,SAAS;AAC3E,QAAM,CAACC,GAAcC,CAAe,IAAIC,EAAS,CAAC;AAElD,SAAAC,EAAU,MAAM;AACd,IAAAF,EAAgB,CAAC;AAEX,UAAAG,IAAW,YAAY,MAAM;AACjC,MAAAH,EAAgB,CAAQI,MAClBA,KAAQP,EAAK,UACf,cAAcM,CAAQ,GAEfC,KAGFA,IAAO,CACf;AAAA,OACAN,CAAK;AAED,WAAA,MAAM,cAAcK,CAAQ;AAAA,EAAA,GAClC,CAACN,GAAMC,CAAK,CAAC,GAGb,gBAAAO,EAAAC,GAAA,EAAoB,WAAU,OAAM,QAAO,SACzC,UAAKT,EAAA,MAAM,GAAGE,CAAY,EAC7B,CAAA;AAEJ,GAEeQ,IAAAC,EAAKZ,CAAY;"}
@@ -1,12 +0,0 @@
1
- import o from "styled-components";
2
- import t from "../../../ui/layout/flex-view.js";
3
- const r = o(t)`
4
- overflow: hidden;
5
- `, n = o(t)`
6
- transition: width 0.3s ease-in-out;
7
- `;
8
- export {
9
- r as Container,
10
- n as Filler
11
- };
12
- //# sourceMappingURL=linear-progress-bar-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linear-progress-bar-styled.js","sources":["../../../../../src/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Container = styled(FlexView)`\n overflow: hidden;\n`;\n\nexport const Filler = styled(FlexView)`\n transition: width 0.3s ease-in-out;\n`;\n"],"names":["Container","styled","FlexView","Filler"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA,GAI3BC,IAASF,EAAOC,CAAQ;AAAA;AAAA;"}
@@ -1,34 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { memo as s } from "react";
3
- import { Container as m, Filler as h } from "./linear-progress-bar-styled.js";
4
- const $ = ({
5
- percentage: o,
6
- height: t = 8,
7
- backgroundColor: a = "WHITE_T_10",
8
- fillColor: i = "YELLOW_4",
9
- borderRadius: r = 0
10
- }) => {
11
- const n = Math.min(Math.max(o, 0), 100);
12
- return /* @__PURE__ */ e(
13
- m,
14
- {
15
- $width: "100%",
16
- $height: t,
17
- $borderRadius: r,
18
- $background: a,
19
- children: /* @__PURE__ */ e(
20
- h,
21
- {
22
- $width: `${n}%`,
23
- $background: i,
24
- $height: "100%",
25
- $borderRadius: r
26
- }
27
- )
28
- }
29
- );
30
- }, f = s($);
31
- export {
32
- f as default
33
- };
34
- //# sourceMappingURL=linear-progress-bar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linear-progress-bar.js","sources":["../../../../../src/features/auth/comps/linear-progress-bar/linear-progress-bar.tsx"],"sourcesContent":["import type { ILinearProgressBarProps } from './linear-progress-bar-props';\n\nimport { memo, type FC } from 'react';\n\nimport * as Styled from './linear-progress-bar-styled';\n\nconst LinearProgressBar: FC<ILinearProgressBarProps> = ({\n percentage,\n height = 8,\n backgroundColor = 'WHITE_T_10',\n fillColor = 'YELLOW_4',\n borderRadius = 0,\n}) => {\n const safePercentage = Math.min(Math.max(percentage, 0), 100);\n\n return (\n <Styled.Container\n $width=\"100%\"\n $height={height}\n $borderRadius={borderRadius}\n $background={backgroundColor}\n >\n <Styled.Filler\n $width={`${safePercentage}%`}\n $background={fillColor}\n $height=\"100%\"\n $borderRadius={borderRadius}\n />\n </Styled.Container>\n );\n};\n\nexport default memo(LinearProgressBar);\n"],"names":["LinearProgressBar","percentage","height","backgroundColor","fillColor","borderRadius","safePercentage","jsx","Styled.Container","Styled.Filler","linearProgressBar","memo"],"mappings":";;;AAMA,MAAMA,IAAiD,CAAC;AAAA,EACtD,YAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,iBAAAC,IAAkB;AAAA,EAClB,WAAAC,IAAY;AAAA,EACZ,cAAAC,IAAe;AACjB,MAAM;AACE,QAAAC,IAAiB,KAAK,IAAI,KAAK,IAAIL,GAAY,CAAC,GAAG,GAAG;AAG1D,SAAA,gBAAAM;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,QAAO;AAAA,MACP,SAASN;AAAA,MACT,eAAeG;AAAA,MACf,aAAaF;AAAA,MAEb,UAAA,gBAAAI;AAAA,QAACE;AAAAA,QAAA;AAAA,UACC,QAAQ,GAAGH,CAAc;AAAA,UACzB,aAAaF;AAAA,UACb,SAAQ;AAAA,UACR,eAAeC;AAAA,QAAA;AAAA,MACjB;AAAA,IAAA;AAAA,EAAA;AAGN,GAEeK,IAAAC,EAAKX,CAAiB;"}
@@ -1,22 +0,0 @@
1
- import r, { css as e } from "styled-components";
2
- import l from "../../../ui/layout/flex-view.js";
3
- const n = r(l)``, c = r.input`
4
- width: 56px;
5
- height: 56px;
6
- font-size: 24px;
7
- text-align: center;
8
- font-family: 'Athletics-Light';
9
- border: ${({ theme: o }) => `2px solid ${o.colors.BLACK_5}`};
10
- color: ${({ theme: o }) => o.colors.WHITE};
11
- background-color: ${({ theme: o }) => o.colors.BLACK_3};
12
- outline: none;
13
- transition: all 0.3s ease;
14
- ${({ $hasError: o }) => o && e`
15
- border-color: ${({ theme: t }) => t.colors.ORANGE_4};
16
- `}
17
- `;
18
- export {
19
- c as InputBox,
20
- n as Wrapper
21
- };
22
- //# sourceMappingURL=otp-input-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"otp-input-styled.js","sources":["../../../../../src/features/auth/comps/otp-input/otp-input-styled.tsx"],"sourcesContent":["import styled, { css } from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Wrapper = styled(FlexView)``;\n\nexport const InputBox = styled.input<{ $hasError: boolean }>`\n width: 56px;\n height: 56px;\n font-size: 24px;\n text-align: center;\n font-family: 'Athletics-Light';\n border: ${({ theme }) => `2px solid ${theme.colors.BLACK_5}`};\n color: ${({ theme }) => theme.colors.WHITE};\n background-color: ${({ theme }) => theme.colors.BLACK_3};\n outline: none;\n transition: all 0.3s ease;\n ${({ $hasError }) =>\n $hasError &&\n css`\n border-color: ${({ theme }) => theme.colors.ORANGE_4};\n `}\n`;\n"],"names":["Wrapper","styled","FlexView","InputBox","theme","$hasError","css"],"mappings":";;AAIa,MAAAA,IAAUC,EAAOC,CAAQ,KAEzBC,IAAWF,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAMnB,CAAC,EAAE,OAAAG,EAAM,MAAM,aAAaA,EAAM,OAAO,OAAO,EAAE;AAAA,WACnD,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,sBACtB,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,IAGrD,CAAC,EAAE,WAAAC,QACHA,KACAC;AAAA,sBACkB,CAAC,EAAE,OAAAF,EAAA,MAAYA,EAAM,OAAO,QAAQ;AAAA,KACrD;AAAA;"}
@@ -1,51 +0,0 @@
1
- import { jsxs as l, jsx as m } from "react/jsx-runtime";
2
- import { memo as I, useRef as w, useCallback as p } from "react";
3
- import { LOTTIE as y } from "../../../../assets/lottie/lottie.js";
4
- import $ from "../../../ui/lottie-animation/lottie-animation.js";
5
- import { Wrapper as g, InputBox as E } from "./otp-input-styled.js";
6
- const T = ({
7
- length: s = 4,
8
- value: e,
9
- onChange: c,
10
- error: a,
11
- isBusy: u = !1
12
- }) => {
13
- const n = w([]), i = p(
14
- (o, r) => {
15
- var f;
16
- if (!/^\d?$/.test(r)) return;
17
- const t = e.split("");
18
- t[o] = r, c(t.join("")), r && o < s - 1 && ((f = n.current[o + 1]) == null || f.focus());
19
- },
20
- [s, c, e]
21
- ), h = p(
22
- (o, r) => {
23
- var t;
24
- o.key === "Backspace" && !e[r] && r > 0 && ((t = n.current[r - 1]) == null || t.focus());
25
- },
26
- [e]
27
- );
28
- return /* @__PURE__ */ l(g, { $flexDirection: "row", $flexColumnGapX: 1, $alignItems: "center", children: [
29
- Array.from({ length: s }).map((o, r) => /* @__PURE__ */ m(
30
- E,
31
- {
32
- type: "text",
33
- maxLength: 1,
34
- value: e[r] || "",
35
- onChange: (t) => i(r, t.target.value),
36
- onFocus: (t) => t.target.select(),
37
- onKeyDown: (t) => h(t, r),
38
- $hasError: !!a,
39
- ref: (t) => {
40
- t && (n.current[r] = t);
41
- }
42
- },
43
- r
44
- )),
45
- u && /* @__PURE__ */ m($, { src: y.SPINNER_WHITE, height: 24, width: 24 })
46
- ] });
47
- }, R = I(T);
48
- export {
49
- R as default
50
- };
51
- //# sourceMappingURL=otp-input.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"otp-input.js","sources":["../../../../../src/features/auth/comps/otp-input/otp-input.tsx"],"sourcesContent":["import type { IOTPInputProps } from './otp-input-types';\n\nimport { useCallback, useRef, memo } from 'react';\n\nimport { LOTTIE } from '../../../../assets/lottie/lottie';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport * as styled from './otp-input-styled';\n\nconst OTPInput: React.FC<IOTPInputProps> = ({\n length = 4,\n value,\n onChange,\n error,\n isBusy = false,\n}) => {\n const inputsRef = useRef<HTMLInputElement[]>([]);\n\n const handleChange = useCallback(\n (index: number, val: string) => {\n if (!/^\\d?$/.test(val)) return;\n\n const newValue = value.split('');\n\n newValue[index] = val;\n onChange(newValue.join(''));\n\n if (val && index < length - 1) {\n inputsRef.current[index + 1]?.focus();\n }\n },\n [length, onChange, value],\n );\n\n const handleKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLInputElement>, index: number) => {\n if (e.key === 'Backspace' && !value[index] && index > 0) {\n inputsRef.current[index - 1]?.focus();\n }\n },\n [value],\n );\n\n return (\n <styled.Wrapper $flexDirection=\"row\" $flexColumnGapX={1} $alignItems=\"center\">\n {Array.from({ length }).map((_, index) => (\n <styled.InputBox\n key={index}\n type=\"text\"\n maxLength={1}\n value={value[index] || ''}\n onChange={e => handleChange(index, e.target.value)}\n onFocus={e => e.target.select()}\n onKeyDown={e => handleKeyDown(e, index)}\n $hasError={!!error}\n ref={el => {\n if (el) inputsRef.current[index] = el;\n }}\n />\n ))}\n {isBusy && <LottieAnimation src={LOTTIE.SPINNER_WHITE} height={24} width={24} />}\n </styled.Wrapper>\n );\n};\n\nexport default memo(OTPInput);\n"],"names":["OTPInput","length","value","onChange","error","isBusy","inputsRef","useRef","handleChange","useCallback","index","val","newValue","_a","handleKeyDown","e","jsxs","styled.Wrapper","_","jsx","styled.InputBox","el","LottieAnimation","LOTTIE","otpInput","memo"],"mappings":";;;;;AAQA,MAAMA,IAAqC,CAAC;AAAA,EAC1C,QAAAC,IAAS;AAAA,EACT,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC,IAAS;AACX,MAAM;AACE,QAAAC,IAAYC,EAA2B,CAAA,CAAE,GAEzCC,IAAeC;AAAA,IACnB,CAACC,GAAeC,MAAgB;;AAC9B,UAAI,CAAC,QAAQ,KAAKA,CAAG,EAAG;AAElB,YAAAC,IAAWV,EAAM,MAAM,EAAE;AAE/B,MAAAU,EAASF,CAAK,IAAIC,GACTR,EAAAS,EAAS,KAAK,EAAE,CAAC,GAEtBD,KAAOD,IAAQT,IAAS,OAC1BY,IAAAP,EAAU,QAAQI,IAAQ,CAAC,MAA3B,QAAAG,EAA8B;AAAA,IAElC;AAAA,IACA,CAACZ,GAAQE,GAAUD,CAAK;AAAA,EAAA,GAGpBY,IAAgBL;AAAA,IACpB,CAACM,GAA0CL,MAAkB;;AACvD,MAAAK,EAAE,QAAQ,eAAe,CAACb,EAAMQ,CAAK,KAAKA,IAAQ,OACpDG,IAAAP,EAAU,QAAQI,IAAQ,CAAC,MAA3B,QAAAG,EAA8B;AAAA,IAElC;AAAA,IACA,CAACX,CAAK;AAAA,EAAA;AAIN,SAAA,gBAAAc,EAACC,GAAA,EAAe,gBAAe,OAAM,iBAAiB,GAAG,aAAY,UAClE,UAAA;AAAA,IAAM,MAAA,KAAK,EAAE,QAAAhB,EAAQ,CAAA,EAAE,IAAI,CAACiB,GAAGR,MAC9B,gBAAAS;AAAA,MAACC;AAAAA,MAAA;AAAA,QAEC,MAAK;AAAA,QACL,WAAW;AAAA,QACX,OAAOlB,EAAMQ,CAAK,KAAK;AAAA,QACvB,UAAU,CAAKK,MAAAP,EAAaE,GAAOK,EAAE,OAAO,KAAK;AAAA,QACjD,SAAS,CAAAA,MAAKA,EAAE,OAAO,OAAO;AAAA,QAC9B,WAAW,CAAAA,MAAKD,EAAcC,GAAGL,CAAK;AAAA,QACtC,WAAW,CAAC,CAACN;AAAA,QACb,KAAK,CAAMiB,MAAA;AACT,UAAIA,MAAIf,EAAU,QAAQI,CAAK,IAAIW;AAAA,QACrC;AAAA,MAAA;AAAA,MAVKX;AAAA,IAAA,CAYR;AAAA,IACAL,uBAAWiB,GAAgB,EAAA,KAAKC,EAAO,eAAe,QAAQ,IAAI,OAAO,GAAI,CAAA;AAAA,EAChF,EAAA,CAAA;AAEJ,GAEeC,IAAAC,EAAKzB,CAAQ;"}
@@ -1,44 +0,0 @@
1
- import n, { css as a } from "styled-components";
2
- import e from "../../../ui/layout/flex-view.js";
3
- import $ from "../../../ui/text/text.js";
4
- const T = n.button`
5
- ${({ selected: o, disabled: r, width: i, height: l, borderColor: s, theme: t }) => {
6
- const c = r ? t.colors.WHITE_T_10 : o ? t.colors.WHITE_1 : t.colors.BLACK_1, p = r ? t.colors.WHITE_T_15 : s;
7
- return a`
8
- position: relative;
9
- display: inline-flex;
10
- align-items: center;
11
- justify-content: center;
12
- cursor: ${r ? "not-allowed" : "pointer"};
13
- transition: all 0.3s ease;
14
- padding: 7.5px 16px;
15
- border-radius: 40px;
16
- border: 1px solid ${p};
17
- width: ${i ? `${i}px` : "auto"};
18
- height: ${l ? `${l}px` : "auto"};
19
- background-color: ${c};
20
- &:hover {
21
- background-color: ${!o && !r ? t.colors.WHITE_T_10 : void 0};
22
- }
23
- `;
24
- }}
25
- `, d = n(e)`
26
- visibility: ${({ $showLottie: o }) => o ? "visible" : "hidden"};
27
- `, f = n($)`
28
- transition: all 0.3s ease-in-out;
29
- position: relative;
30
-
31
- ${({ shouldOffsetLabel: o }) => `
32
- left: ${o ? "0" : "-10px"};
33
- `};
34
-
35
- ${({ selected: o, disabled: r, theme: i, textColor: l }) => `
36
- color: ${r ? i.colors.WHITE_T_38 : o ? i.colors.BLACK_1 : l};
37
- `};
38
- `;
39
- export {
40
- d as IconWrapper,
41
- f as Label,
42
- T as Wrapper
43
- };
44
- //# sourceMappingURL=pill-button-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pill-button-styled.js","sources":["../../../../../src/features/auth/comps/pill-button/pill-button-styled.tsx"],"sourcesContent":["import styled, { css } from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\n\nexport const Wrapper = styled.button<{\n selected: boolean;\n disabled: boolean;\n width?: number;\n height?: number;\n borderColor?: string;\n}>`\n ${({ selected, disabled, width, height, borderColor, theme }) => {\n const defaultBgColor = disabled\n ? theme.colors.WHITE_T_10\n : selected\n ? theme.colors.WHITE_1\n : theme.colors.BLACK_1;\n\n const borderColorVal = disabled ? theme.colors.WHITE_T_15 : borderColor;\n\n return css`\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: ${disabled ? 'not-allowed' : 'pointer'};\n transition: all 0.3s ease;\n padding: 7.5px 16px;\n border-radius: 40px;\n border: 1px solid ${borderColorVal};\n width: ${width ? `${width}px` : 'auto'};\n height: ${height ? `${height}px` : 'auto'};\n background-color: ${defaultBgColor};\n &:hover {\n background-color: ${!selected && !disabled ? theme.colors.WHITE_T_10 : undefined};\n }\n `;\n }}\n`;\n\nexport const IconWrapper = styled(FlexView)<{\n $showLottie: boolean;\n}>`\n visibility: ${({ $showLottie }) => ($showLottie ? 'visible' : 'hidden')};\n`;\n\nexport const Label = styled(Text)<{\n selected: boolean;\n disabled: boolean;\n shouldOffsetLabel: boolean;\n textColor: string;\n}>`\n transition: all 0.3s ease-in-out;\n position: relative;\n\n ${({ shouldOffsetLabel }) => `\n left: ${shouldOffsetLabel ? '0' : '-10px'};\n `};\n\n ${({ selected, disabled, theme, textColor }) => `\n color: ${disabled ? theme.colors.WHITE_T_38 : selected ? theme.colors.BLACK_1 : textColor};\n `};\n`;\n"],"names":["Wrapper","styled","selected","disabled","width","height","borderColor","theme","defaultBgColor","borderColorVal","css","IconWrapper","FlexView","$showLottie","Label","Text","shouldOffsetLabel","textColor"],"mappings":";;;AAKO,MAAMA,IAAUC,EAAO;AAAA,IAO1B,CAAC,EAAE,UAAAC,GAAU,UAAAC,GAAU,OAAAC,GAAO,QAAAC,GAAQ,aAAAC,GAAa,OAAAC,QAAY;AACzD,QAAAC,IAAiBL,IACnBI,EAAM,OAAO,aACbL,IACEK,EAAM,OAAO,UACbA,EAAM,OAAO,SAEbE,IAAiBN,IAAWI,EAAM,OAAO,aAAaD;AAErD,SAAAI;AAAA;AAAA;AAAA;AAAA;AAAA,gBAKKP,IAAW,gBAAgB,SAAS;AAAA;AAAA;AAAA;AAAA,0BAI1BM,CAAc;AAAA,eACzBL,IAAQ,GAAGA,CAAK,OAAO,MAAM;AAAA,gBAC5BC,IAAS,GAAGA,CAAM,OAAO,MAAM;AAAA,0BACrBG,CAAc;AAAA;AAAA,4BAEZ,CAACN,KAAY,CAACC,IAAWI,EAAM,OAAO,aAAa,MAAS;AAAA;AAAA;AAGtF,CAAC;AAAA,GAGUI,IAAcV,EAAOW,CAAQ;AAAA,gBAG1B,CAAC,EAAE,aAAAC,EAAA,MAAmBA,IAAc,YAAY,QAAS;AAAA,GAG5DC,IAAQb,EAAOc,CAAI;AAAA;AAAA;AAAA;AAAA,IAS5B,CAAC,EAAE,mBAAAC,EAAA,MAAwB;AAAA,YACnBA,IAAoB,MAAM,OAAO;AAAA,GAC1C;AAAA;AAAA,IAEC,CAAC,EAAE,UAAAd,GAAU,UAAAC,GAAU,OAAAI,GAAO,WAAAU,EAAgB,MAAA;AAAA,aACrCd,IAAWI,EAAM,OAAO,aAAaL,IAAWK,EAAM,OAAO,UAAUU,CAAS;AAAA,GAC1F;AAAA;"}
@@ -1,75 +0,0 @@
1
- import { jsx as o, jsxs as H } from "react/jsx-runtime";
2
- import { memo as M, useState as x, useCallback as l, useEffect as _ } from "react";
3
- import { useTheme as j } from "styled-components";
4
- import y from "../../../ui/arrow-tooltip/arrow-tooltip.js";
5
- import B from "../../../ui/layout/flex-view.js";
6
- import O from "../../../ui/lottie-animation/lottie-animation.js";
7
- import { Wrapper as P, IconWrapper as R, Label as X } from "./pill-button-styled.js";
8
- const k = {
9
- autoplay: !0,
10
- loop: !0,
11
- renderer: "canvas"
12
- }, S = ({
13
- id: i,
14
- label: d,
15
- selected: t = !1,
16
- disabled: e = !1,
17
- animatedLabel: u = "",
18
- icon: r,
19
- onClick: a,
20
- tooltip: c,
21
- width: g
22
- }) => {
23
- const [v, h] = x(!1), [n, A] = x(!1), { colors: f } = j(), s = !!u, $ = l(() => {
24
- a(i);
25
- }, [i, a]);
26
- _(() => {
27
- if (!s || e) return;
28
- const T = setInterval(() => {
29
- A((W) => !W);
30
- }, 1e3);
31
- return () => clearInterval(T);
32
- }, [e, s]);
33
- const w = l(() => h(!0), []), C = l(() => h(!1), []), m = !!r && !e && (s || t || v), E = f[n ? "YELLOW_4" : "WHITE_1"], I = f[n && !t ? "YELLOW_4" : "WHITE_1"], p = n ? u : d, b = n ? t ? "ub3-bold" : "ub3" : t ? "ub2-bold" : "ub2", L = /* @__PURE__ */ o(
34
- P,
35
- {
36
- selected: t,
37
- disabled: e,
38
- onClick: $,
39
- onMouseEnter: w,
40
- onMouseLeave: C,
41
- height: 36,
42
- width: Number(g),
43
- borderColor: E,
44
- children: /* @__PURE__ */ H(
45
- B,
46
- {
47
- $flexDirection: "row",
48
- $alignItems: "center",
49
- $justifyContent: "center",
50
- $flexColumnGapX: 0.25,
51
- children: [
52
- r && /* @__PURE__ */ o(R, { $widthX: 1, $heightX: 1, $showLottie: m, children: /* @__PURE__ */ o(O, { src: r, settings: k }) }),
53
- /* @__PURE__ */ o(
54
- X,
55
- {
56
- shouldOffsetLabel: m || !r,
57
- selected: t,
58
- disabled: e,
59
- $renderAs: b,
60
- textColor: I,
61
- children: p
62
- },
63
- p
64
- )
65
- ]
66
- }
67
- )
68
- }
69
- );
70
- return e && c ? /* @__PURE__ */ o(y, { renderAs: "primary", tooltipItem: c, position: "top", children: L }) : L;
71
- }, J = M(S);
72
- export {
73
- J as default
74
- };
75
- //# sourceMappingURL=pill-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pill-button.js","sources":["../../../../../src/features/auth/comps/pill-button/pill-button.tsx"],"sourcesContent":["import type { IPillButtonProps } from './pill-button-types';\n\nimport { useCallback, useEffect, useState, type FC, memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport * as Styled from './pill-button-styled';\n\nconst lottieSettings = {\n autoplay: true,\n loop: true,\n renderer: 'canvas',\n};\n\nconst PillButton: FC<IPillButtonProps> = ({\n id,\n label,\n selected = false,\n disabled = false,\n animatedLabel = '',\n icon,\n onClick,\n tooltip,\n width,\n}) => {\n const [isHovered, setHovered] = useState(false);\n const [highlightPhase, setHighlightPhase] = useState(false);\n const { colors } = useTheme();\n const shouldAnimate = !!animatedLabel;\n\n const handleClick = useCallback(() => {\n onClick(id);\n }, [id, onClick]);\n\n useEffect(() => {\n if (!shouldAnimate || disabled) return;\n\n const interval = setInterval(() => {\n setHighlightPhase(prev => !prev);\n }, 1000);\n\n return () => clearInterval(interval);\n }, [disabled, shouldAnimate]);\n\n const handleMouseEnter = useCallback(() => setHovered(true), []);\n const handleMouseLeave = useCallback(() => setHovered(false), []);\n\n const showLottie = !!icon && !disabled && (shouldAnimate || selected || isHovered);\n\n const borderColor = colors[highlightPhase ? 'YELLOW_4' : 'WHITE_1'];\n const textColor = colors[highlightPhase && !selected ? 'YELLOW_4' : 'WHITE_1'];\n const currentLabel = highlightPhase ? animatedLabel : label;\n const defaultTextRenderAs = selected ? 'ub2-bold' : 'ub2';\n const textRenderAs = highlightPhase ? (selected ? 'ub3-bold' : 'ub3') : defaultTextRenderAs;\n\n const ButtonContent = (\n <Styled.Wrapper\n selected={selected}\n disabled={disabled}\n onClick={handleClick}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n height={36}\n width={Number(width)}\n borderColor={borderColor}\n >\n <FlexView\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $flexColumnGapX={0.25}\n >\n {icon && (\n <Styled.IconWrapper $widthX={1} $heightX={1} $showLottie={showLottie}>\n <LottieAnimation src={icon} settings={lottieSettings} />\n </Styled.IconWrapper>\n )}\n <Styled.Label\n key={currentLabel}\n shouldOffsetLabel={showLottie || !icon}\n selected={selected}\n disabled={disabled}\n $renderAs={textRenderAs}\n textColor={textColor}\n >\n {currentLabel}\n </Styled.Label>\n </FlexView>\n </Styled.Wrapper>\n );\n\n return disabled && tooltip ? (\n <ArrowTooltip renderAs=\"primary\" tooltipItem={tooltip} position=\"top\">\n {ButtonContent}\n </ArrowTooltip>\n ) : (\n ButtonContent\n );\n};\n\nexport default memo(PillButton);\n"],"names":["lottieSettings","PillButton","id","label","selected","disabled","animatedLabel","icon","onClick","tooltip","width","isHovered","setHovered","useState","highlightPhase","setHighlightPhase","colors","useTheme","shouldAnimate","handleClick","useCallback","useEffect","interval","prev","handleMouseEnter","handleMouseLeave","showLottie","borderColor","textColor","currentLabel","textRenderAs","ButtonContent","jsx","Styled.Wrapper","jsxs","FlexView","Styled.IconWrapper","LottieAnimation","Styled.Label","ArrowTooltip","pillButton","memo"],"mappings":";;;;;;;AAUA,MAAMA,IAAiB;AAAA,EACrB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AACZ,GAEMC,IAAmC,CAAC;AAAA,EACxC,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,UAAAC,IAAW;AAAA,EACX,eAAAC,IAAgB;AAAA,EAChB,MAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,OAAAC;AACF,MAAM;AACJ,QAAM,CAACC,GAAWC,CAAU,IAAIC,EAAS,EAAK,GACxC,CAACC,GAAgBC,CAAiB,IAAIF,EAAS,EAAK,GACpD,EAAE,QAAAG,MAAWC,KACbC,IAAgB,CAAC,CAACZ,GAElBa,IAAcC,EAAY,MAAM;AACpC,IAAAZ,EAAQN,CAAE;AAAA,EAAA,GACT,CAACA,GAAIM,CAAO,CAAC;AAEhB,EAAAa,EAAU,MAAM;AACV,QAAA,CAACH,KAAiBb,EAAU;AAE1B,UAAAiB,IAAW,YAAY,MAAM;AACf,MAAAP,EAAA,CAAAQ,MAAQ,CAACA,CAAI;AAAA,OAC9B,GAAI;AAEA,WAAA,MAAM,cAAcD,CAAQ;AAAA,EAAA,GAClC,CAACjB,GAAUa,CAAa,CAAC;AAE5B,QAAMM,IAAmBJ,EAAY,MAAMR,EAAW,EAAI,GAAG,CAAA,CAAE,GACzDa,IAAmBL,EAAY,MAAMR,EAAW,EAAK,GAAG,CAAA,CAAE,GAE1Dc,IAAa,CAAC,CAACnB,KAAQ,CAACF,MAAaa,KAAiBd,KAAYO,IAElEgB,IAAcX,EAAOF,IAAiB,aAAa,SAAS,GAC5Dc,IAAYZ,EAAOF,KAAkB,CAACV,IAAW,aAAa,SAAS,GACvEyB,IAAef,IAAiBR,IAAgBH,GAEhD2B,IAAehB,IAAkBV,IAAW,aAAa,QADnCA,IAAW,aAAa,OAG9C2B,IACJ,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,UAAA7B;AAAA,MACA,UAAAC;AAAA,MACA,SAASc;AAAA,MACT,cAAcK;AAAA,MACd,cAAcC;AAAA,MACd,QAAQ;AAAA,MACR,OAAO,OAAOf,CAAK;AAAA,MACnB,aAAAiB;AAAA,MAEA,UAAA,gBAAAO;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,gBAAe;AAAA,UACf,aAAY;AAAA,UACZ,iBAAgB;AAAA,UAChB,iBAAiB;AAAA,UAEhB,UAAA;AAAA,YAAA5B,uBACE6B,GAAA,EAAmB,SAAS,GAAG,UAAU,GAAG,aAAaV,GACxD,4BAACW,GAAgB,EAAA,KAAK9B,GAAM,UAAUP,EAAgB,CAAA,GACxD;AAAA,YAEF,gBAAAgC;AAAA,cAACM;AAAAA,cAAA;AAAA,gBAEC,mBAAmBZ,KAAc,CAACnB;AAAA,gBAClC,UAAAH;AAAA,gBACA,UAAAC;AAAA,gBACA,WAAWyB;AAAA,gBACX,WAAAF;AAAA,gBAEC,UAAAC;AAAA,cAAA;AAAA,cAPIA;AAAA,YAQP;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAIG,SAAAxB,KAAYI,IACjB,gBAAAuB,EAACO,GAAa,EAAA,UAAS,WAAU,aAAa9B,GAAS,UAAS,OAC7D,UAAAsB,EAAA,CACH,IAEAA;AAEJ,GAEeS,IAAAC,EAAKxC,CAAU;"}
@@ -1,17 +0,0 @@
1
- import e from "styled-components";
2
- import t from "../../../ui/layout/flex-view.js";
3
- const s = e(t)`
4
- ${({ selected: r, theme: o }) => `
5
- cursor: pointer;
6
- transition: all 0.3s ease;
7
- border-width: 2px;
8
-
9
- &:hover {
10
- background-color: ${r ? void 0 : o.colors.BLACK_5};
11
- }
12
- `}
13
- `;
14
- export {
15
- s as Wrapper
16
- };
17
- //# sourceMappingURL=selectable-info-card-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectable-info-card-styled.js","sources":["../../../../../src/features/auth/comps/selectable-info-card/selectable-info-card-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Wrapper = styled(FlexView)<{ selected: boolean }>`\n ${({ selected, theme }) => {\n return `\n cursor: pointer;\n transition: all 0.3s ease;\n border-width: 2px;\n\n &:hover {\n background-color: ${!selected ? theme.colors.BLACK_5 : undefined};\n }\n `;\n }}\n`;\n"],"names":["Wrapper","styled","FlexView","selected","theme"],"mappings":";;AAIa,MAAAA,IAAUC,EAAOC,CAAQ;AAAA,IAClC,CAAC,EAAE,UAAAC,GAAU,OAAAC,QACN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAMkBD,IAAkC,SAAvBC,EAAM,OAAO,OAAmB;AAAA;AAAA,GAGrE;AAAA;"}
@@ -1,67 +0,0 @@
1
- import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
- import { memo as d, useRef as C, useCallback as t, useMemo as b } from "react";
3
- import g from "../../../ui/layout/flex-view.js";
4
- import x from "../../../ui/lottie-animation/lottie-animation.js";
5
- import m from "../../../ui/text/text.js";
6
- import { Wrapper as I } from "./selectable-info-card-styled.js";
7
- const T = ({
8
- id: a,
9
- title: u,
10
- description: c,
11
- icon: i,
12
- selected: r,
13
- onClick: l
14
- }) => {
15
- const e = C(null), f = t(() => {
16
- l(a);
17
- }, [a, l]), p = t(() => {
18
- var o;
19
- (o = e.current) == null || o.play();
20
- }, []), $ = t(() => {
21
- var o;
22
- r || (o = e.current) == null || o.stop();
23
- }, [r]), h = b(
24
- () => ({
25
- autoplay: r,
26
- loop: !0,
27
- renderer: "canvas"
28
- }),
29
- [r]
30
- );
31
- return /* @__PURE__ */ s(
32
- I,
33
- {
34
- $gutterX: 1,
35
- $gapX: 1,
36
- $borderColor: "WHITE",
37
- $flexDirection: "row",
38
- $background: r ? "WHITE_1" : "BLACK_1",
39
- onMouseEnter: p,
40
- onMouseLeave: $,
41
- onClick: f,
42
- $flexColumnGapX: 0.5,
43
- selected: r,
44
- $alignItems: "center",
45
- children: [
46
- i && /* @__PURE__ */ n(
47
- x,
48
- {
49
- src: i,
50
- ref: e,
51
- settings: h,
52
- width: 40,
53
- height: 40
54
- }
55
- ),
56
- /* @__PURE__ */ s(g, { children: [
57
- /* @__PURE__ */ n(m, { $renderAs: "ab3", $color: r ? "BLACK_1" : "WHITE", children: u }),
58
- /* @__PURE__ */ n(m, { $renderAs: "ub3", $color: r ? "BLACK_T_60" : "WHITE_T_60", children: c })
59
- ] })
60
- ]
61
- }
62
- );
63
- }, H = d(T);
64
- export {
65
- H as default
66
- };
67
- //# sourceMappingURL=selectable-info-card.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectable-info-card.js","sources":["../../../../../src/features/auth/comps/selectable-info-card/selectable-info-card.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../../ui/lottie-animation/types';\nimport type { ISelectableInfoCardProps } from './selectable-info-card-types';\n\nimport { useCallback, useMemo, useRef, memo } from 'react';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport Text from '../../../ui/text/text';\nimport * as Styled from './selectable-info-card-styled';\n\nconst SelectableInfoCard = ({\n id,\n title,\n description,\n icon,\n selected,\n onClick,\n}: ISelectableInfoCardProps) => {\n const animationRef = useRef<ILottieAnimationRef | null>(null);\n\n const handleClick = useCallback(() => {\n onClick(id);\n }, [id, onClick]);\n\n const handleOnMouseEnter = useCallback(() => {\n animationRef.current?.play();\n }, []);\n\n const handleOnMouseLeave = useCallback(() => {\n if (selected) return;\n animationRef.current?.stop();\n }, [selected]);\n\n const renderSettings = useMemo(\n () => ({\n autoplay: selected,\n loop: true,\n renderer: 'canvas',\n }),\n [selected],\n );\n\n return (\n <Styled.Wrapper\n $gutterX={1}\n $gapX={1}\n $borderColor=\"WHITE\"\n $flexDirection=\"row\"\n $background={selected ? 'WHITE_1' : 'BLACK_1'}\n onMouseEnter={handleOnMouseEnter}\n onMouseLeave={handleOnMouseLeave}\n onClick={handleClick}\n $flexColumnGapX={0.5}\n selected={selected}\n $alignItems=\"center\"\n >\n {icon && (\n <LottieAnimation\n src={icon}\n ref={animationRef}\n settings={renderSettings}\n width={40}\n height={40}\n />\n )}\n\n <FlexView>\n <Text $renderAs=\"ab3\" $color={selected ? 'BLACK_1' : 'WHITE'}>\n {title}\n </Text>\n <Text $renderAs=\"ub3\" $color={selected ? 'BLACK_T_60' : 'WHITE_T_60'}>\n {description}\n </Text>\n </FlexView>\n </Styled.Wrapper>\n );\n};\n\nexport default memo(SelectableInfoCard);\n"],"names":["SelectableInfoCard","id","title","description","icon","selected","onClick","animationRef","useRef","handleClick","useCallback","handleOnMouseEnter","_a","handleOnMouseLeave","renderSettings","useMemo","jsxs","Styled.Wrapper","jsx","LottieAnimation","FlexView","Text","selectableInfoCard","memo"],"mappings":";;;;;;AAUA,MAAMA,IAAqB,CAAC;AAAA,EAC1B,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC;AACF,MAAgC;AACxB,QAAAC,IAAeC,EAAmC,IAAI,GAEtDC,IAAcC,EAAY,MAAM;AACpC,IAAAJ,EAAQL,CAAE;AAAA,EAAA,GACT,CAACA,GAAIK,CAAO,CAAC,GAEVK,IAAqBD,EAAY,MAAM;;AAC3C,KAAAE,IAAAL,EAAa,YAAb,QAAAK,EAAsB;AAAA,EACxB,GAAG,CAAE,CAAA,GAECC,IAAqBH,EAAY,MAAM;;AAC3C,IAAIL,MACJO,IAAAL,EAAa,YAAb,QAAAK,EAAsB;AAAA,EAAK,GAC1B,CAACP,CAAQ,CAAC,GAEPS,IAAiBC;AAAA,IACrB,OAAO;AAAA,MACL,UAAUV;AAAA,MACV,MAAM;AAAA,MACN,UAAU;AAAA,IAAA;AAAA,IAEZ,CAACA,CAAQ;AAAA,EAAA;AAIT,SAAA,gBAAAW;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,OAAO;AAAA,MACP,cAAa;AAAA,MACb,gBAAe;AAAA,MACf,aAAaZ,IAAW,YAAY;AAAA,MACpC,cAAcM;AAAA,MACd,cAAcE;AAAA,MACd,SAASJ;AAAA,MACT,iBAAiB;AAAA,MACjB,UAAAJ;AAAA,MACA,aAAY;AAAA,MAEX,UAAA;AAAA,QACCD,KAAA,gBAAAc;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,KAAKf;AAAA,YACL,KAAKG;AAAA,YACL,UAAUO;AAAA,YACV,OAAO;AAAA,YACP,QAAQ;AAAA,UAAA;AAAA,QACV;AAAA,0BAGDM,GACC,EAAA,UAAA;AAAA,UAAA,gBAAAF,EAACG,KAAK,WAAU,OAAM,QAAQhB,IAAW,YAAY,SAClD,UACHH,EAAA,CAAA;AAAA,UACA,gBAAAgB,EAACG,KAAK,WAAU,OAAM,QAAQhB,IAAW,eAAe,cACrD,UACHF,EAAA,CAAA;AAAA,QAAA,GACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEemB,IAAAC,EAAKvB,CAAkB;"}
@@ -1,19 +0,0 @@
1
- import { ILLUSTRATIONS as t } from "../../../../assets/illustrations/illustrations.js";
2
- const o = [
3
- {
4
- icon: t.HANDSHAKE,
5
- title: "Help us find the right tutor for your child"
6
- },
7
- {
8
- icon: t.CALENDAR_PURPLE,
9
- title: "Schedule your FREE class with the tutor"
10
- },
11
- {
12
- icon: t.MONEY,
13
- title: "Pay & continue with our flexible classes"
14
- }
15
- ];
16
- export {
17
- o as onboardingGuideSteps
18
- };
19
- //# sourceMappingURL=onboarding-guide-constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onboarding-guide-constants.js","sources":["../../../../../src/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.ts"],"sourcesContent":["import { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\n\nexport const onboardingGuideSteps = [\n {\n icon: ILLUSTRATIONS.HANDSHAKE,\n title: `Help us find the right tutor for your child`,\n },\n {\n icon: ILLUSTRATIONS.CALENDAR_PURPLE,\n title: `Schedule your FREE class with the tutor`,\n },\n {\n icon: ILLUSTRATIONS.MONEY,\n title: `Pay & continue with our flexible classes`,\n },\n];\n"],"names":["onboardingGuideSteps","ILLUSTRATIONS"],"mappings":";AAEO,MAAMA,IAAuB;AAAA,EAClC;AAAA,IACE,MAAMC,EAAc;AAAA,IACpB,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAMA,EAAc;AAAA,IACpB,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,MAAMA,EAAc;AAAA,IACpB,OAAO;AAAA,EACT;AACF;"}
@@ -1,32 +0,0 @@
1
- import e from "styled-components";
2
- import i from "../../../ui/layout/flex-view.js";
3
- const l = e(i)(({ theme: { colors: t, mediaQueries: o } }) => `
4
- position: relative;
5
- &:not(:last-child)::after {
6
- content: '';
7
- width: 37px;
8
- height: 2px;
9
- right: -32px;
10
- top: 25px;
11
- position: absolute;
12
- background-color: ${t.WHITE_T_15};
13
- }
14
- &:last-child {
15
- margin-bottom: 0;
16
- }
17
- ${o.minWidthSmallDesktop} {
18
- margin-bottom: 48px;
19
- &:not(:last-child)::after {
20
- left: 28px;
21
- bottom: -36px;
22
- right: unset;
23
- top: unset;
24
- width: 2px;
25
- height: 24px;
26
- }
27
- }
28
- `);
29
- export {
30
- l as StepItem
31
- };
32
- //# sourceMappingURL=onboarding-guide-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onboarding-guide-styled.js","sources":["../../../../../src/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const StepItem = styled(FlexView)(({ theme: { colors, mediaQueries } }) => {\n return `\n position: relative;\n &:not(:last-child)::after {\n content: '';\n width: 37px;\n height: 2px;\n right: -32px;\n top: 25px;\n position: absolute;\n background-color: ${colors.WHITE_T_15};\n }\n &:last-child {\n margin-bottom: 0;\n }\n ${mediaQueries.minWidthSmallDesktop} {\n margin-bottom: 48px;\n &:not(:last-child)::after {\n left: 28px;\n bottom: -36px;\n right: unset;\n top: unset;\n width: 2px;\n height: 24px;\n }\n }\n`;\n});\n"],"names":["StepItem","styled","FlexView","colors","mediaQueries"],"mappings":";;AAIa,MAAAA,IAAWC,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,QAAAC,GAAQ,cAAAC,EAAa,QACjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBASeD,EAAO,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA,IAKrCC,EAAa,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAYpC;"}