@cuemath/leap 3.2.28 → 3.2.29-m

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 (192) hide show
  1. package/dist/assets/illustrations/illustrations.js +5 -6
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lottie/lottie.js +1 -6
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/analytics-events/platform-events-student.js +1 -2
  6. package/dist/features/analytics-events/platform-events-student.js.map +1 -1
  7. package/dist/features/analytics-events/platform-events-teacher.js +4 -6
  8. package/dist/features/analytics-events/platform-events-teacher.js.map +1 -1
  9. package/dist/features/analytics-events/whitelist-events.js +16 -20
  10. package/dist/features/analytics-events/whitelist-events.js.map +1 -1
  11. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js +1 -2
  12. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js.map +1 -1
  13. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +8 -8
  14. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +1 -1
  15. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +60 -82
  16. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +1 -1
  17. package/dist/features/auth/comps/pill-button/pill-button.js +38 -41
  18. package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
  19. package/dist/features/auth/comps/resend-otp/resend-otp.js +14 -18
  20. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
  21. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +26 -32
  22. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +1 -1
  23. package/dist/features/auth/pla-signup/signup-options/signup-options.js +35 -42
  24. package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +1 -1
  25. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js +43 -43
  26. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js.map +1 -1
  27. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.js +1 -1
  28. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.js.map +1 -1
  29. package/dist/features/chapters-v2/utils/node-card-utils.js +2 -2
  30. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
  31. package/dist/features/communication/pub-sub/constants.js +4 -7
  32. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  33. package/dist/features/homework/homework-card-view.js +97 -85
  34. package/dist/features/homework/homework-card-view.js.map +1 -1
  35. package/dist/features/homework/homework-card.js +42 -44
  36. package/dist/features/homework/homework-card.js.map +1 -1
  37. package/dist/features/homework/hw-card-list/hw-card-list-view.js +29 -31
  38. package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
  39. package/dist/features/homework/hw-card-list/hw-card-list.js +48 -54
  40. package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
  41. package/dist/features/homework/utils.js +27 -33
  42. package/dist/features/homework/utils.js.map +1 -1
  43. package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js +11 -17
  44. package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js.map +1 -1
  45. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  46. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  47. package/dist/features/journey/journey-id/journey-id-teacher.js +2 -2
  48. package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
  49. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapters-list.js +53 -68
  50. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapters-list.js.map +1 -1
  51. package/dist/features/puzzles/app/puzzle-app-styled.js +6 -10
  52. package/dist/features/puzzles/app/puzzle-app-styled.js.map +1 -1
  53. package/dist/features/puzzles/comps/puzzle-card-styled.js +69 -24
  54. package/dist/features/puzzles/comps/puzzle-card-styled.js.map +1 -1
  55. package/dist/features/puzzles/comps/puzzle-card.js +30 -79
  56. package/dist/features/puzzles/comps/puzzle-card.js.map +1 -1
  57. package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js +25 -55
  58. package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js.map +1 -1
  59. package/dist/features/puzzles/puzzle-container/puzzle-container.js +107 -100
  60. package/dist/features/puzzles/puzzle-container/puzzle-container.js.map +1 -1
  61. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +1 -1
  62. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js.map +1 -1
  63. package/dist/features/puzzles/utils/puzzle-pattern.js +13 -28
  64. package/dist/features/puzzles/utils/puzzle-pattern.js.map +1 -1
  65. package/dist/features/stickers/sticker-data.js +234 -0
  66. package/dist/features/stickers/sticker-data.js.map +1 -0
  67. package/dist/features/{ui/sticker-grid/sticker-grid-styles.js → stickers/sticker-selector/sticker-selector-styles.js} +23 -31
  68. package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +1 -0
  69. package/dist/features/stickers/sticker-selector/sticker-selector.js +39 -0
  70. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -0
  71. package/dist/features/stickers/sticker-selector/sticker.js +56 -0
  72. package/dist/features/stickers/sticker-selector/sticker.js.map +1 -0
  73. package/dist/features/{ui/stickers/stickers-effects.js → stickers/stickers-effects/effects.js} +6 -6
  74. package/dist/features/stickers/stickers-effects/effects.js.map +1 -0
  75. package/dist/features/stickers/stickers-effects/stickers-cache.js +19 -0
  76. package/dist/features/stickers/stickers-effects/stickers-cache.js.map +1 -0
  77. package/dist/features/stickers/stickers-effects/stickers-effects-helper.js +105 -0
  78. package/dist/features/stickers/stickers-effects/stickers-effects-helper.js.map +1 -0
  79. package/dist/features/{ui/stickers/stickers-styled.js → stickers/stickers-effects/stickers-effects-styled.js} +2 -2
  80. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -0
  81. package/dist/features/stickers/stickers-effects/stickers-effects.js +54 -0
  82. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -0
  83. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +8 -3
  84. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
  85. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +40 -40
  86. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  87. package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js +88 -75
  88. package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js.map +1 -1
  89. package/dist/features/ui/lottie-animation/lottie-animation.js +45 -43
  90. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  91. package/dist/features/ui/modals/modal-styled.js +39 -8
  92. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  93. package/dist/features/ui/modals/modal.js +31 -31
  94. package/dist/features/ui/modals/modal.js.map +1 -1
  95. package/dist/features/ui/theme/layout.js +3 -3
  96. package/dist/features/ui/theme/layout.js.map +1 -1
  97. package/dist/features/worksheet/worksheet/worksheet-helpers.js +19 -20
  98. package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
  99. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +12 -16
  100. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  101. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js +47 -101
  102. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
  103. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +163 -166
  104. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  105. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +207 -242
  106. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
  107. package/dist/features/worksheet/worksheet/worksheet-styled.js +34 -34
  108. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  109. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  110. package/dist/features/worksheet/worksheet/worksheet.js +309 -303
  111. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  112. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +1 -1
  113. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  114. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +35 -44
  115. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
  116. package/dist/index.d.ts +84 -149
  117. package/dist/index.js +418 -430
  118. package/dist/index.js.map +1 -1
  119. package/dist/static/animated-avatar.1ad58b1d.json +1 -0
  120. package/dist/static/animated-avatar.69b07505.json +1 -0
  121. package/dist/static/animated-avatar.9c560b46.json +1 -0
  122. package/dist/static/cuemath-app-qr-code.4beefe48.svg +1 -0
  123. package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +1 -0
  124. package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
  125. package/dist/static/otp.2d08f874.json +1 -0
  126. package/dist/static/phone-number.84f55562.json +1 -0
  127. package/dist/static/puzzle-pattern-blue.f4bea1ee.svg +1 -0
  128. package/dist/static/puzzle-pattern-green.c9f84bbc.svg +1 -0
  129. package/dist/static/puzzle-pattern-orange.3da09665.svg +1 -0
  130. package/dist/static/puzzle-pattern-purple.5fb5a319.svg +1 -0
  131. package/dist/static/puzzle-pattern-yellow.aadbf457.svg +1 -0
  132. package/dist/static/target-achieved-text.053bd142.json +2830 -0
  133. package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +1 -0
  134. package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +1 -0
  135. package/package.json +1 -1
  136. package/dist/features/auth/pla-signup/pla-analytics-events.js +0 -23
  137. package/dist/features/auth/pla-signup/pla-analytics-events.js.map +0 -1
  138. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js +0 -72
  139. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js.map +0 -1
  140. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js +0 -59
  141. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js.map +0 -1
  142. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +0 -63
  143. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +0 -1
  144. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js +0 -67
  145. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js.map +0 -1
  146. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js +0 -70
  147. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js.map +0 -1
  148. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js +0 -59
  149. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js.map +0 -1
  150. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js +0 -59
  151. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js.map +0 -1
  152. package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js +0 -70
  153. package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js.map +0 -1
  154. package/dist/features/puzzles/api/puzzle-dashboard.js +0 -10
  155. package/dist/features/puzzles/api/puzzle-dashboard.js.map +0 -1
  156. package/dist/features/puzzles/constants/puzzle-container.js +0 -8
  157. package/dist/features/puzzles/constants/puzzle-container.js.map +0 -1
  158. package/dist/features/puzzles/puzzle-analytics-events.js +0 -11
  159. package/dist/features/puzzles/puzzle-analytics-events.js.map +0 -1
  160. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +0 -55
  161. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +0 -1
  162. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js +0 -37
  163. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js.map +0 -1
  164. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +0 -107
  165. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +0 -1
  166. package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +0 -1
  167. package/dist/features/ui/sticker-grid/sticker-grid.js +0 -24
  168. package/dist/features/ui/sticker-grid/sticker-grid.js.map +0 -1
  169. package/dist/features/ui/sticker-grid/sticker.js +0 -57
  170. package/dist/features/ui/sticker-grid/sticker.js.map +0 -1
  171. package/dist/features/ui/stickers/constants.js +0 -6
  172. package/dist/features/ui/stickers/constants.js.map +0 -1
  173. package/dist/features/ui/stickers/stickers-effects.js.map +0 -1
  174. package/dist/features/ui/stickers/stickers-styled.js.map +0 -1
  175. package/dist/features/ui/stickers/stickers-utils.js +0 -91
  176. package/dist/features/ui/stickers/stickers-utils.js.map +0 -1
  177. package/dist/features/ui/stickers/stickers.js +0 -40
  178. package/dist/features/ui/stickers/stickers.js.map +0 -1
  179. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js +0 -28
  180. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js.map +0 -1
  181. package/dist/static/animated-avatar.c3a0fa98.json +0 -1
  182. package/dist/static/puzzle-blue-lottie.bf64ebc5.json +0 -12760
  183. package/dist/static/puzzle-dashboard-banner.b7956519.svg +0 -1
  184. package/dist/static/puzzle-green-lottie.1da90698.json +0 -1
  185. package/dist/static/puzzle-orange-lottie.0a105c42.json +0 -21206
  186. package/dist/static/puzzle-pattern-blue.abff0164.svg +0 -1
  187. package/dist/static/puzzle-pattern-green.b8ba1840.svg +0 -1
  188. package/dist/static/puzzle-pattern-orange.3f5a17ff.svg +0 -1
  189. package/dist/static/puzzle-pattern-purple.14b09759.svg +0 -1
  190. package/dist/static/puzzle-pattern-yellow.50917fab.svg +0 -1
  191. package/dist/static/puzzle-purple-lottie.e70de110.json +0 -9860
  192. package/dist/static/puzzle-yellow-lottie.275b5cf4.json +0 -1
@@ -1,77 +1,74 @@
1
- import { jsx as o, jsxs as R } from "react/jsx-runtime";
2
- import { memo as _, useState as L, useCallback as l, useEffect as j } from "react";
3
- import { useTheme as k } from "styled-components";
4
- import y from "../../../ui/arrow-tooltip/arrow-tooltip.js";
5
- import B from "../../../ui/hooks/use-click-handler.js";
6
- import O from "../../../ui/layout/flex-view.js";
7
- import P from "../../../ui/lottie-animation/lottie-animation.js";
8
- import { Wrapper as S, IconWrapper as X, Label as Y } from "./pill-button-styled.js";
9
- const D = {
1
+ import { jsx as o, jsxs as b } from "react/jsx-runtime";
2
+ import { memo as H, useState as L, useCallback as l, useEffect as M } from "react";
3
+ import { useTheme as R } from "styled-components";
4
+ import _ from "../../../ui/arrow-tooltip/arrow-tooltip.js";
5
+ import j from "../../../ui/layout/flex-view.js";
6
+ import y from "../../../ui/lottie-animation/lottie-animation.js";
7
+ import { Wrapper as B, IconWrapper as O, Label as P } from "./pill-button-styled.js";
8
+ const X = {
10
9
  autoplay: !0,
11
10
  loop: !0,
12
11
  renderer: "canvas"
13
- }, F = ({
12
+ }, k = ({
14
13
  id: i,
15
- label: u,
14
+ label: d,
16
15
  selected: t = !1,
17
16
  disabled: e = !1,
18
- animatedLabel: a = "",
17
+ animatedLabel: u = "",
19
18
  icon: r,
20
- onClick: c,
21
- tooltip: f,
22
- width: A,
23
- analyticsLabel: g,
24
- analyticsProps: v
19
+ onClick: a,
20
+ tooltip: c,
21
+ width: A
25
22
  }) => {
26
- const [C, h] = L(!1), [n, $] = L(!1), { colors: m } = k(), s = !!a, E = l(() => {
27
- c(i);
28
- }, [i, c]), { handleClick: I } = B({ label: u, analyticsLabel: g, analyticsProps: v }, E);
29
- j(() => {
23
+ const [g, f] = L(!1), [n, v] = L(!1), { colors: h } = R(), s = !!u, $ = l(() => {
24
+ a(i);
25
+ }, [i, a]), C = l(() => f(!0), []), E = l(() => f(!1), []);
26
+ M(() => {
30
27
  if (!s || e) return;
31
- const b = setInterval(() => {
32
- $((M) => !M);
28
+ const T = setInterval(() => {
29
+ v((W) => !W);
33
30
  }, 1e3);
34
- return () => clearInterval(b);
31
+ return () => clearInterval(T);
35
32
  }, [e, s]);
36
- const w = l(() => h(!0), []), H = l(() => h(!1), []), p = !!r && !e && (s || t || C), T = m[n ? "YELLOW_4" : "WHITE_1"], W = m[n && !t ? "YELLOW_4" : "WHITE_1"], d = n ? a : u, x = /* @__PURE__ */ o(
37
- S,
33
+ const m = !!r && !e && (s || t || g), I = h[n ? "YELLOW_4" : "WHITE_1"], w = h[n && !t ? "YELLOW_4" : "WHITE_1"], p = n ? u : d, x = /* @__PURE__ */ o(
34
+ B,
38
35
  {
39
36
  selected: t,
40
37
  disabled: e,
41
- onClick: I,
42
- onMouseEnter: w,
43
- onMouseLeave: H,
38
+ onClick: $,
39
+ onMouseEnter: C,
40
+ onMouseLeave: E,
44
41
  width: A,
45
- borderColor: T,
46
- children: /* @__PURE__ */ R(
47
- O,
42
+ borderColor: I,
43
+ children: /* @__PURE__ */ b(
44
+ j,
48
45
  {
49
46
  $flexDirection: "row",
50
47
  $alignItems: "center",
51
48
  $justifyContent: "center",
52
49
  $flexColumnGapX: 0.25,
53
50
  children: [
54
- r && /* @__PURE__ */ o(X, { $widthX: 1, $heightX: 1, $showLottie: p, children: /* @__PURE__ */ o(P, { src: r, settings: D }) }),
51
+ r && /* @__PURE__ */ o(O, { $widthX: 1, $heightX: 1, $showLottie: m, children: /* @__PURE__ */ o(y, { src: r, settings: X }) }),
55
52
  /* @__PURE__ */ o(
56
- Y,
53
+ P,
57
54
  {
58
- shouldOffsetLabel: p || !r,
55
+ shouldOffsetLabel: m || !r,
59
56
  selected: t,
60
57
  disabled: e,
61
58
  $renderAs: n ? t ? "ub3-bold" : "ub3" : t ? "ub2-bold" : "ub2",
62
- textColor: W,
63
- children: d
59
+ textColor: w,
60
+ children: p
64
61
  },
65
- d
62
+ p
66
63
  )
67
64
  ]
68
65
  }
69
66
  )
70
67
  }
71
68
  );
72
- return e && f ? /* @__PURE__ */ o(y, { renderAs: "primary", tooltipItem: f, position: "top", children: x }) : x;
73
- }, tt = _(F);
69
+ return e && c ? /* @__PURE__ */ o(_, { renderAs: "primary", tooltipItem: c, position: "top", children: x }) : x;
70
+ }, K = H(k);
74
71
  export {
75
- tt as default
72
+ K as default
76
73
  };
77
74
  //# sourceMappingURL=pill-button.js.map
@@ -1 +1 @@
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 useClickHandler from '../../../ui/hooks/use-click-handler';\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 analyticsLabel,\n analyticsProps,\n}) => {\n const [isHovered, setHovered] = useState(false);\n const [highlightPhase, setHighlightPhase] = useState(false);\n const { colors } = useTheme();\n const shouldAnimate = !!animatedLabel;\n\n const handleSelect = useCallback(() => {\n onClick(id);\n }, [id, onClick]);\n\n const { handleClick } = useClickHandler({ label, analyticsLabel, analyticsProps }, handleSelect);\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 width={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","analyticsLabel","analyticsProps","isHovered","setHovered","useState","highlightPhase","setHighlightPhase","colors","useTheme","shouldAnimate","handleSelect","useCallback","handleClick","useClickHandler","useEffect","interval","prev","handleMouseEnter","handleMouseLeave","showLottie","borderColor","textColor","currentLabel","ButtonContent","jsx","Styled.Wrapper","jsxs","FlexView","Styled.IconWrapper","LottieAnimation","Styled.Label","ArrowTooltip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B,IAAejB,IAAiBV,IAAgBH,GAIhD+B,IACJ,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,UAAAhC;AAAA,MACA,UAAAC;AAAA,MACA,SAASkB;AAAA,MACT,cAAcK;AAAA,MACd,cAAcC;AAAA,MACd,OAAAnB;AAAA,MACA,aAAAqB;AAAA,MAEA,UAAA,gBAAAM;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,gBAAe;AAAA,UACf,aAAY;AAAA,UACZ,iBAAgB;AAAA,UAChB,iBAAiB;AAAA,UAEhB,UAAA;AAAA,YAAA/B,uBACEgC,GAAA,EAAmB,SAAS,GAAG,UAAU,GAAG,aAAaT,GACxD,4BAACU,GAAgB,EAAA,KAAKjC,GAAM,UAAUP,EAAgB,CAAA,GACxD;AAAA,YAEF,gBAAAmC;AAAA,cAACM;AAAAA,cAAA;AAAA,gBAEC,mBAAmBX,KAAc,CAACvB;AAAA,gBAClC,UAAAH;AAAA,gBACA,UAAAC;AAAA,gBACA,WA5BaW,IAAkBZ,IAAW,aAAa,QADnCA,IAAW,aAAa;AAAA,gBA8B5C,WAAA4B;AAAA,gBAEC,UAAAC;AAAA,cAAA;AAAA,cAPIA;AAAA,YAQP;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAIG,SAAA5B,KAAYI,IACjB,gBAAA0B,EAACO,GAAa,EAAA,UAAS,WAAU,aAAajC,GAAS,UAAS,OAC7D,UAAAyB,EAAA,CACH,IAEAA;AAEJ,GAEeS,KAAAC,EAAK3C,CAAU;"}
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 const handleMouseEnter = useCallback(() => setHovered(true), []);\n const handleMouseLeave = useCallback(() => setHovered(false), []);\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 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 width={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","handleMouseEnter","handleMouseLeave","useEffect","interval","prev","showLottie","borderColor","textColor","currentLabel","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,GAEVa,IAAmBD,EAAY,MAAMR,EAAW,EAAI,GAAG,CAAA,CAAE,GACzDU,IAAmBF,EAAY,MAAMR,EAAW,EAAK,GAAG,CAAA,CAAE;AAEhE,EAAAW,EAAU,MAAM;AACV,QAAA,CAACL,KAAiBb,EAAU;AAE1B,UAAAmB,I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7D,UAAAqB,EAAA,CACH,IAEAA;AAEJ,GAEeS,IAAAC,EAAKvC,CAAU;"}
@@ -1,11 +1,11 @@
1
- import { jsx as r, jsxs as n, Fragment as w } from "react/jsx-runtime";
2
- import { memo as A, useCallback as f } from "react";
3
- import I from "../../../ui/buttons/button/button.js";
1
+ import { jsx as r, jsxs as n, Fragment as C } from "react/jsx-runtime";
2
+ import { memo as g, useCallback as f } from "react";
3
+ import w from "../../../ui/buttons/button/button.js";
4
4
  import $ from "../../../ui/buttons/text-button/text-button.js";
5
5
  import m from "../../../ui/layout/flex-view.js";
6
6
  import a from "../../../ui/text/text.js";
7
- import { useResendTimer as E } from "./hooks/use-resend-timer.js";
8
- const H = ({
7
+ import { useResendTimer as A } from "./hooks/use-resend-timer.js";
8
+ const I = ({
9
9
  onResendOTP: l,
10
10
  onResendVoiceOTP: i,
11
11
  timerSeconds: h = 15,
@@ -14,20 +14,18 @@ const H = ({
14
14
  renderAs: x = "text",
15
15
  width: k,
16
16
  textButtonColor: s = "WHITE_T_60",
17
- size: d = "small",
18
- analyticsLabel: _,
19
- analyticsProps: C
17
+ size: d = "small"
20
18
  }) => {
21
- const { canResend: c, resetTimer: t, timeLeft: u } = E({
19
+ const { canResend: c, resetTimer: t, timeLeft: u } = A({
22
20
  initialSeconds: h
23
21
  }), b = f(() => {
24
22
  l == null || l(), t();
25
- }, [l, t]), g = f(() => {
23
+ }, [l, t]), _ = f(() => {
26
24
  i == null || i(), t();
27
25
  }, [i, t]);
28
26
  if (x === "submit")
29
27
  return /* @__PURE__ */ r(
30
- I,
28
+ w,
31
29
  {
32
30
  size: d,
33
31
  renderAs: "secondary-dark",
@@ -47,12 +45,10 @@ const H = ({
47
45
  label: "Resend",
48
46
  size: e ? "small" : "regular",
49
47
  color: s,
50
- onClick: b,
51
- analyticsLabel: _,
52
- analyticsProps: C
48
+ onClick: b
53
49
  }
54
50
  ),
55
- p && /* @__PURE__ */ n(w, { children: [
51
+ p && /* @__PURE__ */ n(C, { children: [
56
52
  /* @__PURE__ */ r(a, { $renderAs: e ? "ub3" : "ub2", $color: s, children: "or" }),
57
53
  /* @__PURE__ */ r(m, { $width: 116, children: /* @__PURE__ */ r(
58
54
  $,
@@ -60,7 +56,7 @@ const H = ({
60
56
  label: "Get code via call",
61
57
  size: e ? "small" : "regular",
62
58
  color: s,
63
- onClick: g
59
+ onClick: _
64
60
  }
65
61
  ) })
66
62
  ] })
@@ -69,8 +65,8 @@ const H = ({
69
65
  " ",
70
66
  /* @__PURE__ */ r(a, { $renderAs: e ? "ub3-bold" : "ub2-bold", $inline: !0, $color: "WHITE_T_60", children: u })
71
67
  ] }) }) });
72
- }, X = A(H);
68
+ }, F = g(I);
73
69
  export {
74
- X as default
70
+ F as default
75
71
  };
76
72
  //# sourceMappingURL=resend-otp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resend-otp.js","sources":["../../../../../src/features/auth/comps/resend-otp/resend-otp.tsx"],"sourcesContent":["import type { IOTPResendProps } from './resend-otp-types';\n\nimport { useCallback, memo } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { useResendTimer } from './hooks/use-resend-timer';\n\nconst ResendOTP: React.FC<IOTPResendProps> = ({\n onResendOTP,\n onResendVoiceOTP,\n timerSeconds = 15,\n showVoiceOTP = false,\n disabled,\n renderAs = 'text',\n width,\n textButtonColor = 'WHITE_T_60',\n size = 'small',\n analyticsLabel,\n analyticsProps,\n}) => {\n const { canResend, resetTimer, timeLeft } = useResendTimer({\n initialSeconds: timerSeconds,\n });\n\n const handleResendClick = useCallback(() => {\n onResendOTP?.();\n resetTimer();\n }, [onResendOTP, resetTimer]);\n\n const handleVoiceResendClick = useCallback(() => {\n onResendVoiceOTP?.();\n resetTimer();\n }, [onResendVoiceOTP, resetTimer]);\n\n if (renderAs === 'submit') {\n return (\n <Button\n size={size}\n renderAs=\"secondary-dark\"\n type=\"submit\"\n label={canResend ? 'Resend' : `Resend in ${timeLeft}`}\n width={width}\n onClick={handleResendClick}\n disabled={!canResend || disabled}\n />\n );\n }\n\n const isXSmallSize = size === 'xsmall';\n\n return (\n <FlexView>\n {!canResend ? (\n <FlexView $width={105}>\n <Text $renderAs={isXSmallSize ? 'ub3' : 'ub2'} $color=\"WHITE_T_60\">\n Resend in{' '}\n <Text $renderAs={isXSmallSize ? 'ub3-bold' : 'ub2-bold'} $inline $color=\"WHITE_T_60\">\n {timeLeft}\n </Text>\n </Text>\n </FlexView>\n ) : (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexColumnGapX={0.5}>\n <TextButton\n disabled={disabled}\n label=\"Resend\"\n size={isXSmallSize ? 'small' : 'regular'}\n color={textButtonColor}\n onClick={handleResendClick}\n analyticsLabel={analyticsLabel}\n analyticsProps={analyticsProps}\n />\n {showVoiceOTP && (\n <>\n <Text $renderAs={isXSmallSize ? 'ub3' : 'ub2'} $color={textButtonColor}>\n or\n </Text>\n <FlexView $width={116}>\n <TextButton\n label=\"Get code via call\"\n size={isXSmallSize ? 'small' : 'regular'}\n color={textButtonColor}\n onClick={handleVoiceResendClick}\n />\n </FlexView>\n </>\n )}\n </FlexView>\n )}\n </FlexView>\n );\n};\n\nexport default memo(ResendOTP);\n"],"names":["ResendOTP","onResendOTP","onResendVoiceOTP","timerSeconds","showVoiceOTP","disabled","renderAs","width","textButtonColor","size","analyticsLabel","analyticsProps","canResend","resetTimer","timeLeft","useResendTimer","handleResendClick","useCallback","handleVoiceResendClick","jsx","Button","isXSmallSize","FlexView","jsxs","TextButton","Fragment","Text","ResendOtp","memo"],"mappings":";;;;;;;AAUA,MAAMA,IAAuC,CAAC;AAAA,EAC5C,aAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,cAAAC,IAAe;AAAA,EACf,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,OAAAC;AAAA,EACA,iB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,QAACK;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,MAAMH,IAAe,UAAU;AAAA,UAC/B,OAAOb;AAAA,UACP,SAASU;AAAA,QAAA;AAAA,MAAA,GAEb;AAAA,IAAA,GACF;AAAA,EAAA,EAEJ,CAAA,sBAlCCI,GAAS,EAAA,QAAQ,KAChB,UAAA,gBAAAC,EAACG,KAAK,WAAWL,IAAe,QAAQ,OAAO,QAAO,cAAa,UAAA;AAAA,IAAA;AAAA,IACvD;AAAA,IACV,gBAAAF,EAACO,GAAK,EAAA,WAAWL,IAAe,aAAa,YAAY,SAAO,IAAC,QAAO,cACrE,UACHP,EAAA,CAAA;AAAA,EACF,EAAA,CAAA,EACF,CAAA,EA6BJ,CAAA;AAEJ,GAEea,IAAAC,EAAK5B,CAAS;"}
1
+ {"version":3,"file":"resend-otp.js","sources":["../../../../../src/features/auth/comps/resend-otp/resend-otp.tsx"],"sourcesContent":["import type { IOTPResendProps } from './resend-otp-types';\n\nimport { useCallback, memo } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { useResendTimer } from './hooks/use-resend-timer';\n\nconst ResendOTP: React.FC<IOTPResendProps> = ({\n onResendOTP,\n onResendVoiceOTP,\n timerSeconds = 15,\n showVoiceOTP = false,\n disabled,\n renderAs = 'text',\n width,\n textButtonColor = 'WHITE_T_60',\n size = 'small',\n}) => {\n const { canResend, resetTimer, timeLeft } = useResendTimer({\n initialSeconds: timerSeconds,\n });\n\n const handleResendClick = useCallback(() => {\n onResendOTP?.();\n resetTimer();\n }, [onResendOTP, resetTimer]);\n\n const handleVoiceResendClick = useCallback(() => {\n onResendVoiceOTP?.();\n resetTimer();\n }, [onResendVoiceOTP, resetTimer]);\n\n if (renderAs === 'submit') {\n return (\n <Button\n size={size}\n renderAs=\"secondary-dark\"\n type=\"submit\"\n label={canResend ? 'Resend' : `Resend in ${timeLeft}`}\n width={width}\n onClick={handleResendClick}\n disabled={!canResend || disabled}\n />\n );\n }\n\n const isXSmallSize = size === 'xsmall';\n\n return (\n <FlexView>\n {!canResend ? (\n <FlexView $width={105}>\n <Text $renderAs={isXSmallSize ? 'ub3' : 'ub2'} $color=\"WHITE_T_60\">\n Resend in{' '}\n <Text $renderAs={isXSmallSize ? 'ub3-bold' : 'ub2-bold'} $inline $color=\"WHITE_T_60\">\n {timeLeft}\n </Text>\n </Text>\n </FlexView>\n ) : (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexColumnGapX={0.5}>\n <TextButton\n disabled={disabled}\n label=\"Resend\"\n size={isXSmallSize ? 'small' : 'regular'}\n color={textButtonColor}\n onClick={handleResendClick}\n />\n {showVoiceOTP && (\n <>\n <Text $renderAs={isXSmallSize ? 'ub3' : 'ub2'} $color={textButtonColor}>\n or\n </Text>\n <FlexView $width={116}>\n <TextButton\n label=\"Get code via call\"\n size={isXSmallSize ? 'small' : 'regular'}\n color={textButtonColor}\n onClick={handleVoiceResendClick}\n />\n </FlexView>\n </>\n )}\n </FlexView>\n )}\n </FlexView>\n );\n};\n\nexport default memo(ResendOTP);\n"],"names":["ResendOTP","onResendOTP","onResendVoiceOTP","timerSeconds","showVoiceOTP","disabled","renderAs","width","textButtonColor","size","canResend","resetTimer","timeLeft","useResendTimer","handleResendClick","useCallback","handleVoiceResendClick","jsx","Button","isXSmallSize","FlexView","jsxs","TextButton","Fragment","Text","ResendOtp","memo"],"mappings":";;;;;;;AAUA,MAAMA,IAAuC,CAAC;AAAA,EAC5C,aAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,cAAAC,IAAe;AAAA,EACf,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,OAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,MAAAC,IAAO;AACT,MAAM;AACJ,QAAM,EAAE,WAAAC,GAAW,YAAAC,GAAY,UAA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CCI,GAAS,EAAA,QAAQ,KAChB,UAAA,gBAAAC,EAACG,KAAK,WAAWL,IAAe,QAAQ,OAAO,QAAO,cAAa,UAAA;AAAA,IAAA;AAAA,IACvD;AAAA,IACV,gBAAAF,EAACO,GAAK,EAAA,WAAWL,IAAe,aAAa,YAAY,SAAO,IAAC,QAAO,cACrE,UACHP,EAAA,CAAA;AAAA,EACF,EAAA,CAAA,EACF,CAAA,EA2BJ,CAAA;AAEJ,GAEea,IAAAC,EAAK1B,CAAS;"}
@@ -1,32 +1,26 @@
1
- import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
- import { memo as g, useRef as x, useCallback as t, useMemo as I } from "react";
3
- import T from "../../../ui/hooks/use-click-handler.js";
4
- import _ from "../../../ui/layout/flex-view.js";
5
- import A from "../../../ui/lottie-animation/lottie-animation.js";
6
- import u from "../../../ui/text/text.js";
7
- import { Wrapper as E } from "./selectable-info-card-styled.js";
8
- const L = ({
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 = ({
9
8
  id: a,
10
- title: l,
9
+ title: u,
11
10
  description: c,
12
11
  icon: i,
13
12
  selected: r,
14
- onClick: s,
15
- analyticsLabel: f,
16
- analyticsProps: p
13
+ onClick: l
17
14
  }) => {
18
- const e = x(null), d = t(() => {
19
- s(a);
20
- }, [a, s]), { handleClick: h } = T(
21
- { label: l, analyticsLabel: f, analyticsProps: p },
22
- d
23
- ), $ = t(() => {
15
+ const e = C(null), f = t(() => {
16
+ l(a);
17
+ }, [a, l]), p = t(() => {
24
18
  var o;
25
19
  (o = e.current) == null || o.play();
26
- }, []), C = t(() => {
20
+ }, []), $ = t(() => {
27
21
  var o;
28
22
  r || (o = e.current) == null || o.stop();
29
- }, [r]), b = I(
23
+ }, [r]), h = b(
30
24
  () => ({
31
25
  autoplay: r,
32
26
  loop: !0,
@@ -34,40 +28,40 @@ const L = ({
34
28
  }),
35
29
  [r]
36
30
  );
37
- return /* @__PURE__ */ m(
38
- E,
31
+ return /* @__PURE__ */ s(
32
+ I,
39
33
  {
40
34
  $gutterX: 1,
41
35
  $gapX: 1,
42
36
  $borderColor: "WHITE",
43
37
  $flexDirection: "row",
44
38
  $background: r ? "WHITE_1" : "BLACK_1",
45
- onMouseEnter: $,
46
- onMouseLeave: C,
47
- onClick: h,
39
+ onMouseEnter: p,
40
+ onMouseLeave: $,
41
+ onClick: f,
48
42
  $flexColumnGapX: 0.5,
49
43
  selected: r,
50
44
  $alignItems: "center",
51
45
  children: [
52
46
  i && /* @__PURE__ */ n(
53
- A,
47
+ x,
54
48
  {
55
49
  src: i,
56
50
  ref: e,
57
- settings: b,
51
+ settings: h,
58
52
  width: 40,
59
53
  height: 40
60
54
  }
61
55
  ),
62
- /* @__PURE__ */ m(_, { children: [
63
- /* @__PURE__ */ n(u, { $renderAs: "ab3", $color: r ? "BLACK_1" : "WHITE", children: l }),
64
- /* @__PURE__ */ n(u, { $renderAs: "ub3", $color: r ? "BLACK_T_60" : "WHITE_T_60", children: c })
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 })
65
59
  ] })
66
60
  ]
67
61
  }
68
62
  );
69
- }, K = g(L);
63
+ }, H = d(T);
70
64
  export {
71
- K as default
65
+ H as default
72
66
  };
73
67
  //# sourceMappingURL=selectable-info-card.js.map
@@ -1 +1 @@
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 useClickHandler from '../../../ui/hooks/use-click-handler';\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 analyticsLabel,\n analyticsProps,\n}: ISelectableInfoCardProps) => {\n const animationRef = useRef<ILottieAnimationRef | null>(null);\n\n const handleSelect = useCallback(() => {\n onClick(id);\n }, [id, onClick]);\n\n const { handleClick } = useClickHandler(\n { label: title, analyticsLabel, analyticsProps },\n handleSelect,\n );\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","analyticsLabel","analyticsProps","animationRef","useRef","handleSelect","useCallback","handleClick","useClickHandler","handleOnMouseEnter","_a","handleOnMouseLeave","renderSettings","useMemo","jsxs","Styled.Wrapper","jsx","LottieAnimation","FlexView","Text","selectableInfoCard","memo"],"mappings":";;;;;;;AAWA,MAAMA,IAAqB,CAAC;AAAA,EAC1B,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,gBAAAC;AACF,MAAgC;AACxB,QAAAC,IAAeC,EAAmC,IAAI,GAEtDC,IAAeC,EAAY,MAAM;AACrC,IAAAN,EAAQL,CAAE;AAAA,EAAA,GACT,CAACA,GAAIK,CAAO,CAAC,GAEV,EAAE,aAAAO,MAAgBC;AAAA,IACtB,EAAE,OAAOZ,GAAO,gBAAAK,GAAgB,gBAAAC,EAAe;AAAA,IAC/CG;AAAA,EAAA,GAGII,IAAqBH,EAAY,MAAM;;AAC3C,KAAAI,IAAAP,EAAa,YAAb,QAAAO,EAAsB;AAAA,EACxB,GAAG,CAAE,CAAA,GAECC,IAAqBL,EAAY,MAAM;;AAC3C,IAAIP,MACJW,IAAAP,EAAa,YAAb,QAAAO,EAAsB;AAAA,EAAK,GAC1B,CAACX,CAAQ,CAAC,GAEPa,IAAiBC;AAAA,IACrB,OAAO;AAAA,MACL,UAAUd;AAAA,MACV,MAAM;AAAA,MACN,UAAU;AAAA,IAAA;AAAA,IAEZ,CAACA,CAAQ;AAAA,EAAA;AAIT,SAAA,gBAAAe;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,OAAO;AAAA,MACP,cAAa;AAAA,MACb,gBAAe;AAAA,MACf,aAAahB,IAAW,YAAY;AAAA,MACpC,cAAcU;AAAA,MACd,cAAcE;AAAA,MACd,SAASJ;AAAA,MACT,iBAAiB;AAAA,MACjB,UAAAR;AAAA,MACA,aAAY;AAAA,MAEX,UAAA;AAAA,QACCD,KAAA,gBAAAkB;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,KAAKnB;AAAA,YACL,KAAKK;AAAA,YACL,UAAUS;AAAA,YACV,OAAO;AAAA,YACP,QAAQ;AAAA,UAAA;AAAA,QACV;AAAA,0BAGDM,GACC,EAAA,UAAA;AAAA,UAAA,gBAAAF,EAACG,KAAK,WAAU,OAAM,QAAQpB,IAAW,YAAY,SAClD,UACHH,EAAA,CAAA;AAAA,UACA,gBAAAoB,EAACG,KAAK,WAAU,OAAM,QAAQpB,IAAW,eAAe,cACrD,UACHF,EAAA,CAAA;AAAA,QAAA,GACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEeuB,IAAAC,EAAK3B,CAAkB;"}
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,29 +1,28 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import { memo as b } from "react";
3
- import { useTheme as g } from "styled-components";
4
- import I from "../../../../assets/line-icons/icons/apple-icon-white.js";
5
- import C from "../../../../assets/line-icons/icons/google-icon.js";
6
- import l from "../../../ui/buttons/button/button.js";
7
- import u from "../../../ui/buttons/text-button/text-button.js";
8
- import r from "../../../ui/layout/flex-view.js";
9
- import p from "../../../ui/separator/separator.js";
3
+ import { useTheme as u } from "styled-components";
4
+ import $ from "../../../../assets/line-icons/icons/apple-icon-white.js";
5
+ import x from "../../../../assets/line-icons/icons/google-icon.js";
6
+ import r from "../../../ui/buttons/button/button.js";
7
+ import A from "../../../ui/buttons/text-button/text-button.js";
8
+ import t from "../../../ui/layout/flex-view.js";
9
+ import a from "../../../ui/separator/separator.js";
10
10
  import c from "../../../ui/text/text.js";
11
- import { EDeviceType as $ } from "../../../ui/theme/constants.js";
12
- import { PLA_ANALYTICS_EVENTS as t } from "../pla-analytics-events.js";
13
- const S = ({
11
+ import { EDeviceType as I } from "../../../ui/theme/constants.js";
12
+ const k = ({
14
13
  onEmailSignup: m,
15
- onAppleSignup: d,
16
- onGoogleSignup: h,
17
- loadingProvider: n,
18
- onGoToLogin: A,
19
- title: T
14
+ onAppleSignup: p,
15
+ onGoogleSignup: d,
16
+ loadingProvider: l,
17
+ onGoToLogin: h,
18
+ title: f
20
19
  }) => {
21
- const { device: f } = g(), o = f <= $.TABLET, a = n === "google", s = n === "apple";
22
- return /* @__PURE__ */ i(r, { $alignItems: "flex-start", children: [
23
- /* @__PURE__ */ e(c, { $renderAs: "ah3-bold", $renderOnMobileAs: "ah4-bold", $color: "WHITE", $whiteSpace: "pre", children: T }),
24
- /* @__PURE__ */ e(p, { heightX: o ? 1.5 : 2.5 }),
20
+ const { device: g } = u(), o = g <= I.TABLET, n = l === "google", s = l === "apple";
21
+ return /* @__PURE__ */ i(t, { $alignItems: "flex-start", children: [
22
+ /* @__PURE__ */ e(c, { $renderAs: "ah3-bold", $renderOnMobileAs: "ah4-bold", $color: "WHITE", $whiteSpace: "pre", children: f }),
23
+ /* @__PURE__ */ e(a, { heightX: o ? 1.5 : 2.5 }),
25
24
  /* @__PURE__ */ i(
26
- r,
25
+ t,
27
26
  {
28
27
  $flexGapX: 1,
29
28
  $flex: 1,
@@ -32,59 +31,53 @@ const S = ({
32
31
  $width: "100%",
33
32
  children: [
34
33
  /* @__PURE__ */ e(
35
- l,
34
+ r,
36
35
  {
37
36
  renderAs: "black-dark",
38
- Icon: C,
37
+ Icon: x,
39
38
  width: o ? "100%" : 320,
40
39
  label: "Signup with Google",
41
- onClick: h,
40
+ onClick: d,
42
41
  size: "small",
43
- busy: a,
44
- disabled: a,
45
- analyticsLabel: t.START_SIGNUP_CTA_CLICKED,
46
- analyticsProps: { provider: "google" }
42
+ busy: n,
43
+ disabled: n
47
44
  }
48
45
  ),
49
46
  /* @__PURE__ */ e(
50
- l,
47
+ r,
51
48
  {
52
49
  renderAs: "black-dark",
53
50
  size: "small",
54
51
  width: o ? "100%" : 320,
55
- Icon: I,
52
+ Icon: $,
56
53
  label: "Signup with Apple",
57
- onClick: d,
54
+ onClick: p,
58
55
  busy: s,
59
- disabled: s,
60
- analyticsLabel: t.START_SIGNUP_CTA_CLICKED,
61
- analyticsProps: { provider: "apple" }
56
+ disabled: s
62
57
  }
63
58
  ),
64
59
  /* @__PURE__ */ e(
65
- l,
60
+ r,
66
61
  {
67
62
  renderAs: "black-dark",
68
63
  size: "small",
69
64
  width: o ? "100%" : 320,
70
65
  label: "Continue with Email",
71
- onClick: m,
72
- analyticsLabel: t.START_SIGNUP_CTA_CLICKED,
73
- analyticsProps: { provider: "email" }
66
+ onClick: m
74
67
  }
75
68
  )
76
69
  ]
77
70
  }
78
71
  ),
79
- /* @__PURE__ */ e(p, { heightX: 1.5 }),
80
- /* @__PURE__ */ i(r, { $flexDirection: "row", $alignItems: "center", children: [
72
+ /* @__PURE__ */ e(a, { heightX: 1.5 }),
73
+ /* @__PURE__ */ i(t, { $flexDirection: "row", $alignItems: "center", children: [
81
74
  /* @__PURE__ */ e(c, { $renderAs: "ub3", $color: "WHITE", children: "Already have an account?" }),
82
75
  " ",
83
- /* @__PURE__ */ e(u, { size: "small", label: "Log In", color: "WHITE", onClick: A })
76
+ /* @__PURE__ */ e(A, { size: "small", label: "Log In", color: "WHITE", onClick: h })
84
77
  ] })
85
78
  ] });
86
- }, z = b(S);
79
+ }, B = b(k);
87
80
  export {
88
- z as default
81
+ B as default
89
82
  };
90
83
  //# sourceMappingURL=signup-options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"signup-options.js","sources":["../../../../../src/features/auth/pla-signup/signup-options/signup-options.tsx"],"sourcesContent":["import type { ISignupOptionsProps } from './signup-options-types';\n\nimport { memo, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport AppleIcon from '../../../../assets/line-icons/icons/apple-icon-white';\nimport GoogleIcon from '../../../../assets/line-icons/icons/google-icon';\nimport Button from '../../../ui/buttons/button/button';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport { PLA_ANALYTICS_EVENTS } from '../pla-analytics-events';\n\nconst SignupOptions: FC<ISignupOptionsProps> = ({\n onEmailSignup,\n onAppleSignup,\n onGoogleSignup,\n loadingProvider,\n onGoToLogin,\n title,\n}) => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n const isLoadingGoogle = loadingProvider === 'google';\n const isLoadingApple = loadingProvider === 'apple';\n\n return (\n <FlexView $alignItems=\"flex-start\">\n <Text $renderAs=\"ah3-bold\" $renderOnMobileAs=\"ah4-bold\" $color=\"WHITE\" $whiteSpace=\"pre\">\n {title}\n </Text>\n <Separator heightX={isCompact ? 1.5 : 2.5} />\n <FlexView\n $flexGapX={1}\n $flex={1}\n $justifyContent=\"center\"\n $alignItems=\"flex-start\"\n $width=\"100%\"\n >\n <Button\n renderAs=\"black-dark\"\n Icon={GoogleIcon}\n width={isCompact ? '100%' : 320}\n label=\"Signup with Google\"\n onClick={onGoogleSignup}\n size=\"small\"\n busy={isLoadingGoogle}\n disabled={isLoadingGoogle}\n analyticsLabel={PLA_ANALYTICS_EVENTS.START_SIGNUP_CTA_CLICKED}\n analyticsProps={{ provider: 'google' }}\n />\n <Button\n renderAs=\"black-dark\"\n size=\"small\"\n width={isCompact ? '100%' : 320}\n Icon={AppleIcon}\n label=\"Signup with Apple\"\n onClick={onAppleSignup}\n busy={isLoadingApple}\n disabled={isLoadingApple}\n analyticsLabel={PLA_ANALYTICS_EVENTS.START_SIGNUP_CTA_CLICKED}\n analyticsProps={{ provider: 'apple' }}\n />\n <Button\n renderAs=\"black-dark\"\n size=\"small\"\n width={isCompact ? '100%' : 320}\n label=\"Continue with Email\"\n onClick={onEmailSignup}\n analyticsLabel={PLA_ANALYTICS_EVENTS.START_SIGNUP_CTA_CLICKED}\n analyticsProps={{ provider: 'email' }}\n />\n </FlexView>\n <Separator heightX={1.5} />\n <FlexView $flexDirection=\"row\" $alignItems=\"center\">\n <Text $renderAs=\"ub3\" $color=\"WHITE\">\n Already have an account?\n </Text>\n &nbsp;\n <TextButton size=\"small\" label=\"Log In\" color=\"WHITE\" onClick={onGoToLogin} />\n </FlexView>\n </FlexView>\n );\n};\n\nexport default memo(SignupOptions);\n"],"names":["SignupOptions","onEmailSignup","onAppleSignup","onGoogleSignup","loadingProvider","onGoToLogin","title","device","useTheme","isCompact","EDeviceType","isLoadingGoogle","isLoadingApple","jsxs","FlexView","jsx","Text","Separator","Button","GoogleIcon","PLA_ANALYTICS_EVENTS","AppleIcon","TextButton","signupOptions","memo"],"mappings":";;;;;;;;;;;;AAeA,MAAMA,IAAyC,CAAC;AAAA,EAC9C,eAAAC;AAAA,EACA,eAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AACF,MAAM;AACE,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAYF,KAAUG,EAAY,QAClCC,IAAkBP,MAAoB,UACtCQ,IAAiBR,MAAoB;AAGzC,SAAA,gBAAAS,EAACC,GAAS,EAAA,aAAY,cACpB,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,YAAW,mBAAkB,YAAW,QAAO,SAAQ,aAAY,OAChF,UACHV,EAAA,CAAA;AAAA,IACC,gBAAAS,EAAAE,GAAA,EAAU,SAASR,IAAY,MAAM,KAAK;AAAA,IAC3C,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAW;AAAA,QACX,OAAO;AAAA,QACP,iBAAgB;AAAA,QAChB,a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AAA,CAAA;AAEJ,GAEekB,IAAAC,EAAKxB,CAAa;"}
1
+ {"version":3,"file":"signup-options.js","sources":["../../../../../src/features/auth/pla-signup/signup-options/signup-options.tsx"],"sourcesContent":["import type { ISignupOptionsProps } from './signup-options-types';\n\nimport { memo, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport AppleIcon from '../../../../assets/line-icons/icons/apple-icon-white';\nimport GoogleIcon from '../../../../assets/line-icons/icons/google-icon';\nimport Button from '../../../ui/buttons/button/button';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\n\nconst SignupOptions: FC<ISignupOptionsProps> = ({\n onEmailSignup,\n onAppleSignup,\n onGoogleSignup,\n loadingProvider,\n onGoToLogin,\n title,\n}) => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n const isLoadingGoogle = loadingProvider === 'google';\n const isLoadingApple = loadingProvider === 'apple';\n\n return (\n <FlexView $alignItems=\"flex-start\">\n <Text $renderAs=\"ah3-bold\" $renderOnMobileAs=\"ah4-bold\" $color=\"WHITE\" $whiteSpace=\"pre\">\n {title}\n </Text>\n <Separator heightX={isCompact ? 1.5 : 2.5} />\n <FlexView\n $flexGapX={1}\n $flex={1}\n $justifyContent=\"center\"\n $alignItems=\"flex-start\"\n $width=\"100%\"\n >\n <Button\n renderAs=\"black-dark\"\n Icon={GoogleIcon}\n width={isCompact ? '100%' : 320}\n label=\"Signup with Google\"\n onClick={onGoogleSignup}\n size=\"small\"\n busy={isLoadingGoogle}\n disabled={isLoadingGoogle}\n />\n <Button\n renderAs=\"black-dark\"\n size=\"small\"\n width={isCompact ? '100%' : 320}\n Icon={AppleIcon}\n label=\"Signup with Apple\"\n onClick={onAppleSignup}\n busy={isLoadingApple}\n disabled={isLoadingApple}\n />\n <Button\n renderAs=\"black-dark\"\n size=\"small\"\n width={isCompact ? '100%' : 320}\n label=\"Continue with Email\"\n onClick={onEmailSignup}\n />\n </FlexView>\n <Separator heightX={1.5} />\n <FlexView $flexDirection=\"row\" $alignItems=\"center\">\n <Text $renderAs=\"ub3\" $color=\"WHITE\">\n Already have an account?\n </Text>\n &nbsp;\n <TextButton size=\"small\" label=\"Log In\" color=\"WHITE\" onClick={onGoToLogin} />\n </FlexView>\n </FlexView>\n );\n};\n\nexport default memo(SignupOptions);\n"],"names":["SignupOptions","onEmailSignup","onAppleSignup","onGoogleSignup","loadingProvider","onGoToLogin","title","device","useTheme","isCompact","EDeviceType","isLoadingGoogle","isLoadingApple","jsxs","FlexView","jsx","Text","Separator","Button","GoogleIcon","AppleIcon","TextButton","signupOptions","memo"],"mappings":";;;;;;;;;;;AAcA,MAAMA,IAAyC,CAAC;AAAA,EAC9C,eAAAC;AAAA,EACA,eAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AACF,MAAM;AACE,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAYF,KAAUG,EAAY,QAClCC,IAAkBP,MAAoB,UACtCQ,IAAiBR,MAAoB;AAGzC,SAAA,gBAAAS,EAACC,GAAS,EAAA,aAAY,cACpB,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,YAAW,mBAAkB,YAAW,QAAO,SAAQ,aAAY,OAChF,UACHV,EAAA,CAAA;AAAA,IACC,gBAAAS,EAAAE,GAAA,EAAU,SAASR,IAAY,MAAM,KAAK;AAAA,IAC3C,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAW;AAAA,QACX,OAAO;AAAA,QACP,iBAAgB;AAAA,QAChB,aAAY;AAAA,QACZ,QAAO;AAAA,QAEP,UAAA;AAAA,UAAA,gBAAAC;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,UAAS;AAAA,cACT,MAAMC;AAAA,cACN,OAAOV,IAAY,SAAS;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