@cuemath/leap 3.2.15-link.1 → 3.2.16-as1

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 (222) hide show
  1. package/dist/assets/illustrations/illustrations.js +0 -6
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/line-icons/icons/hint-fill.js +35 -0
  4. package/dist/assets/line-icons/icons/hint-fill.js.map +1 -0
  5. package/dist/assets/lottie/lottie.js +1 -11
  6. package/dist/assets/lottie/lottie.js.map +1 -1
  7. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +13 -18
  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/chapters-v2/utils/node-card-utils.js +7 -7
  18. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
  19. package/dist/features/journey/comps/coachmark/coachmark.js +29 -28
  20. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  21. package/dist/features/journey/journey-id/journey-id-student.js +2 -2
  22. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  23. package/dist/features/journey/use-journey/journey-context-provider.js +73 -72
  24. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  25. package/dist/features/journey/use-journey/journey-styled.js +6 -4
  26. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  27. package/dist/features/puzzles/app/puzzle-app-styled.js +81 -0
  28. package/dist/features/puzzles/app/puzzle-app-styled.js.map +1 -0
  29. package/dist/features/puzzles/app/puzzle-app-view.js +120 -0
  30. package/dist/features/puzzles/app/puzzle-app-view.js.map +1 -0
  31. package/dist/features/puzzles/app/puzzle-app.js +82 -0
  32. package/dist/features/puzzles/app/puzzle-app.js.map +1 -0
  33. package/dist/features/trial-session/comps/teacher-intro/teacher-intro-styled.js +50 -7
  34. package/dist/features/trial-session/comps/teacher-intro/teacher-intro-styled.js.map +1 -1
  35. package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js +69 -15
  36. package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js.map +1 -1
  37. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js +6 -0
  38. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js.map +1 -0
  39. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +12 -60
  40. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
  41. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +72 -77
  42. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  43. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js +63 -0
  44. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js.map +1 -0
  45. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +21 -0
  46. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +1 -0
  47. package/dist/features/ui/image/image.js +1 -1
  48. package/dist/features/ui/image/image.js.map +1 -1
  49. package/dist/features/ui/inputs/base-input/base-input.js +11 -11
  50. package/dist/features/ui/inputs/base-input/base-input.js.map +1 -1
  51. package/dist/features/ui/inputs/base-select-input/base-select-input.js +57 -55
  52. package/dist/features/ui/inputs/base-select-input/base-select-input.js.map +1 -1
  53. package/dist/features/ui/inputs/checkbox-input/checkbox-input.js +21 -21
  54. package/dist/features/ui/inputs/checkbox-input/checkbox-input.js.map +1 -1
  55. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js +5 -5
  56. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js.map +1 -1
  57. package/dist/features/ui/inputs/text-input/text-input.js +18 -19
  58. package/dist/features/ui/inputs/text-input/text-input.js.map +1 -1
  59. package/dist/features/ui/modals/modal-styled.js +8 -43
  60. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  61. package/dist/features/ui/modals/modal.js +27 -37
  62. package/dist/features/ui/modals/modal.js.map +1 -1
  63. package/dist/features/ui/nudge/nudge-styled.js +14 -7
  64. package/dist/features/ui/nudge/nudge-styled.js.map +1 -1
  65. package/dist/features/ui/nudge/nudge.js +13 -12
  66. package/dist/features/ui/nudge/nudge.js.map +1 -1
  67. package/dist/features/ui/text/text.js +29 -31
  68. package/dist/features/ui/text/text.js.map +1 -1
  69. package/dist/features/ui/theme/button.js +78 -78
  70. package/dist/features/ui/theme/button.js.map +1 -1
  71. package/dist/features/worksheet/worksheet/mocks/activity.js +6 -0
  72. package/dist/features/worksheet/worksheet/mocks/activity.js.map +1 -0
  73. package/dist/features/worksheet/worksheet/mocks/behaviors/assessment.js +38 -0
  74. package/dist/features/worksheet/worksheet/mocks/behaviors/assessment.js.map +1 -0
  75. package/dist/features/worksheet/worksheet/mocks/behaviors/chapter_assessment.js +38 -0
  76. package/dist/features/worksheet/worksheet/mocks/behaviors/chapter_assessment.js.map +1 -0
  77. package/dist/features/worksheet/worksheet/mocks/behaviors/diagnostic.js +38 -0
  78. package/dist/features/worksheet/worksheet/mocks/behaviors/diagnostic.js.map +1 -0
  79. package/dist/features/worksheet/worksheet/mocks/behaviors/dynamic.js +38 -0
  80. package/dist/features/worksheet/worksheet/mocks/behaviors/dynamic.js.map +1 -0
  81. package/dist/features/worksheet/worksheet/mocks/behaviors/extra_practice.js +38 -0
  82. package/dist/features/worksheet/worksheet/mocks/behaviors/extra_practice.js.map +1 -0
  83. package/dist/features/worksheet/worksheet/mocks/behaviors/index.js +95 -0
  84. package/dist/features/worksheet/worksheet/mocks/behaviors/index.js.map +1 -0
  85. package/dist/features/worksheet/worksheet/mocks/behaviors/learning-v3.js +38 -0
  86. package/dist/features/worksheet/worksheet/mocks/behaviors/learning-v3.js.map +1 -0
  87. package/dist/features/worksheet/worksheet/mocks/behaviors/learning.js +38 -0
  88. package/dist/features/worksheet/worksheet/mocks/behaviors/learning.js.map +1 -0
  89. package/dist/features/worksheet/worksheet/mocks/behaviors/legacy.js +38 -0
  90. package/dist/features/worksheet/worksheet/mocks/behaviors/legacy.js.map +1 -0
  91. package/dist/features/worksheet/worksheet/mocks/behaviors/level2.js +38 -0
  92. package/dist/features/worksheet/worksheet/mocks/behaviors/level2.js.map +1 -0
  93. package/dist/features/worksheet/worksheet/mocks/behaviors/level3.js +38 -0
  94. package/dist/features/worksheet/worksheet/mocks/behaviors/level3.js.map +1 -0
  95. package/dist/features/worksheet/worksheet/mocks/behaviors/mastery.js +41 -0
  96. package/dist/features/worksheet/worksheet/mocks/behaviors/mastery.js.map +1 -0
  97. package/dist/features/worksheet/worksheet/mocks/behaviors/practice.js +38 -0
  98. package/dist/features/worksheet/worksheet/mocks/behaviors/practice.js.map +1 -0
  99. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle-card.js +39 -0
  100. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle-card.js.map +1 -0
  101. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle_easy.js +39 -0
  102. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle_easy.js.map +1 -0
  103. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle_hard.js +39 -0
  104. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle_hard.js.map +1 -0
  105. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle_medium.js +39 -0
  106. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle_medium.js.map +1 -0
  107. package/dist/features/worksheet/worksheet/mocks/behaviors/recap.js +39 -0
  108. package/dist/features/worksheet/worksheet/mocks/behaviors/recap.js.map +1 -0
  109. package/dist/features/worksheet/worksheet/mocks/behaviors/remedial.js +39 -0
  110. package/dist/features/worksheet/worksheet/mocks/behaviors/remedial.js.map +1 -0
  111. package/dist/features/worksheet/worksheet/mocks/behaviors/revision.js +38 -0
  112. package/dist/features/worksheet/worksheet/mocks/behaviors/revision.js.map +1 -0
  113. package/dist/features/worksheet/worksheet/mocks/behaviors/sat-math-assessment.js +38 -0
  114. package/dist/features/worksheet/worksheet/mocks/behaviors/sat-math-assessment.js.map +1 -0
  115. package/dist/features/worksheet/worksheet/mocks/behaviors/sat_english_learning.js +38 -0
  116. package/dist/features/worksheet/worksheet/mocks/behaviors/sat_english_learning.js.map +1 -0
  117. package/dist/features/worksheet/worksheet/mocks/behaviors/sat_math_learning.js +38 -0
  118. package/dist/features/worksheet/worksheet/mocks/behaviors/sat_math_learning.js.map +1 -0
  119. package/dist/features/worksheet/worksheet/mocks/behaviors/sat_math_recap.js +39 -0
  120. package/dist/features/worksheet/worksheet/mocks/behaviors/sat_math_recap.js.map +1 -0
  121. package/dist/features/worksheet/worksheet/mocks/behaviors/target_practice.js +38 -0
  122. package/dist/features/worksheet/worksheet/mocks/behaviors/target_practice.js.map +1 -0
  123. package/dist/features/worksheet/worksheet/mocks/behaviors/trial-diagnostic-v2.js +38 -0
  124. package/dist/features/worksheet/worksheet/mocks/behaviors/trial-diagnostic-v2.js.map +1 -0
  125. package/dist/features/worksheet/worksheet/mocks/behaviors/trial-diagnostic.js +38 -0
  126. package/dist/features/worksheet/worksheet/mocks/behaviors/trial-diagnostic.js.map +1 -0
  127. package/dist/features/worksheet/worksheet/mocks/behaviors/turing_assessment.js +38 -0
  128. package/dist/features/worksheet/worksheet/mocks/behaviors/turing_assessment.js.map +1 -0
  129. package/dist/features/worksheet/worksheet/mocks/behaviors/turing_practice.js +38 -0
  130. package/dist/features/worksheet/worksheet/mocks/behaviors/turing_practice.js.map +1 -0
  131. package/dist/features/worksheet/worksheet/mocks/signed-requests.js +5 -0
  132. package/dist/features/worksheet/worksheet/mocks/signed-requests.js.map +1 -0
  133. package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js +57 -0
  134. package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js.map +1 -0
  135. package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js +231 -0
  136. package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js.map +1 -0
  137. package/dist/features/worksheet/worksheet/stories/worksheet-student.js +174 -0
  138. package/dist/features/worksheet/worksheet/stories/worksheet-student.js.map +1 -0
  139. package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js +255 -0
  140. package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js.map +1 -0
  141. package/dist/features/worksheet/worksheet/worksheet-helpers.js +32 -31
  142. package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
  143. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +24 -24
  144. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  145. package/dist/index.d.ts +18 -152
  146. package/dist/index.js +496 -522
  147. package/dist/index.js.map +1 -1
  148. package/dist/static/nudge-tap.0591aef4.json +1 -0
  149. package/dist/types/models/worksheet.js +5 -0
  150. package/dist/types/models/worksheet.js.map +1 -0
  151. package/package.json +3 -2
  152. package/dist/assets/line-icons/icons/after-noon.js +0 -34
  153. package/dist/assets/line-icons/icons/after-noon.js.map +0 -1
  154. package/dist/assets/line-icons/icons/apple-icon-white.js +0 -42
  155. package/dist/assets/line-icons/icons/apple-icon-white.js.map +0 -1
  156. package/dist/assets/line-icons/icons/evening.js +0 -35
  157. package/dist/assets/line-icons/icons/evening.js.map +0 -1
  158. package/dist/assets/line-icons/icons/morning.js +0 -35
  159. package/dist/assets/line-icons/icons/morning.js.map +0 -1
  160. package/dist/assets/line-icons/icons/star3.js +0 -32
  161. package/dist/assets/line-icons/icons/star3.js.map +0 -1
  162. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js +0 -9
  163. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js.map +0 -1
  164. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +0 -65
  165. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +0 -1
  166. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +0 -92
  167. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +0 -1
  168. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js +0 -12
  169. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js.map +0 -1
  170. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js +0 -34
  171. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js.map +0 -1
  172. package/dist/features/auth/comps/otp-input/otp-input-styled.js +0 -22
  173. package/dist/features/auth/comps/otp-input/otp-input-styled.js.map +0 -1
  174. package/dist/features/auth/comps/otp-input/otp-input.js +0 -51
  175. package/dist/features/auth/comps/otp-input/otp-input.js.map +0 -1
  176. package/dist/features/auth/comps/pill-button/pill-button-styled.js +0 -44
  177. package/dist/features/auth/comps/pill-button/pill-button-styled.js.map +0 -1
  178. package/dist/features/auth/comps/pill-button/pill-button.js +0 -75
  179. package/dist/features/auth/comps/pill-button/pill-button.js.map +0 -1
  180. package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js +0 -17
  181. package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js.map +0 -1
  182. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +0 -67
  183. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +0 -1
  184. package/dist/features/auth/signup-v2/onboarding-guide/onboarding-guide-constants.js +0 -19
  185. package/dist/features/auth/signup-v2/onboarding-guide/onboarding-guide-constants.js.map +0 -1
  186. package/dist/features/auth/signup-v2/onboarding-guide/onboarding-guide-styled.js +0 -32
  187. package/dist/features/auth/signup-v2/onboarding-guide/onboarding-guide-styled.js.map +0 -1
  188. package/dist/features/auth/signup-v2/onboarding-guide/onboarding-guide.js +0 -44
  189. package/dist/features/auth/signup-v2/onboarding-guide/onboarding-guide.js.map +0 -1
  190. package/dist/features/auth/signup-v2/signup-header/signup-header.js +0 -54
  191. package/dist/features/auth/signup-v2/signup-header/signup-header.js.map +0 -1
  192. package/dist/features/auth/signup-v2/signup-options/signup-options.js +0 -83
  193. package/dist/features/auth/signup-v2/signup-options/signup-options.js.map +0 -1
  194. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js +0 -49
  195. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js.map +0 -1
  196. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +0 -64
  197. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +0 -1
  198. package/dist/features/ui/accordion/accordion-items/accordion-items-styled.js +0 -28
  199. package/dist/features/ui/accordion/accordion-items/accordion-items-styled.js.map +0 -1
  200. package/dist/features/ui/accordion/accordion-items/accordion-items.js +0 -83
  201. package/dist/features/ui/accordion/accordion-items/accordion-items.js.map +0 -1
  202. package/dist/features/ui/accordion/accordion.js +0 -62
  203. package/dist/features/ui/accordion/accordion.js.map +0 -1
  204. package/dist/static/animated-avatar.1ad58b1d.json +0 -1
  205. package/dist/static/animated-avatar.69b07505.json +0 -1
  206. package/dist/static/animated-avatar.9c560b46.json +0 -1
  207. package/dist/static/calendar-purple.1a840b41.svg +0 -1
  208. package/dist/static/flying-disk.c7f6ed39.json +0 -1
  209. package/dist/static/graduation-cap.3be3340a.json +0 -1
  210. package/dist/static/handshake.287e7dfb.svg +0 -1
  211. package/dist/static/light-bulb.c6db0b23.json +0 -1
  212. package/dist/static/money.332aacf1.svg +0 -1
  213. package/dist/static/muscle.9bcfb8a7.json +0 -1
  214. package/dist/static/nudge-tap.5cb30093.json +0 -1057
  215. package/dist/static/parent-avatar.822c7b9b.svg +0 -1
  216. package/dist/static/pencil.23df9da0.json +0 -1
  217. package/dist/static/plus-sign.de6af957.json +0 -1
  218. package/dist/static/racing-car.2cbf864e.json +0 -1
  219. package/dist/static/rocket.0a3ccab0.json +0 -1
  220. package/dist/static/shovel.abeec04c.json +0 -1
  221. package/dist/static/stripe-blurple.6abf422f.svg +0 -1
  222. package/dist/static/trustpilot.bd3d79e1.svg +0 -1
@@ -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;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AAK,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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BAAmBZ,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","LottieAnim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AAA,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/signup-v2/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/signup-v2/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;"}
@@ -1,44 +0,0 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { useTheme as m } from "styled-components";
3
- import t from "../../../ui/layout/flex-view.js";
4
- import a from "../../../ui/separator/separator.js";
5
- import l from "../../../ui/text/text.js";
6
- import { EDeviceType as p } from "../../../ui/theme/constants.js";
7
- import { onboardingGuideSteps as s } from "./onboarding-guide-constants.js";
8
- import { StepItem as $ } from "./onboarding-guide-styled.js";
9
- const d = () => {
10
- const { device: c } = m(), r = c <= p.TABLET;
11
- return /* @__PURE__ */ n(t, { $flex: 1, $alignItems: "center", $justifyContent: "center", children: [
12
- /* @__PURE__ */ e(l, { $whiteSpace: "pre-line", $renderAs: "ah4", $color: "WHITE", $renderOnTabletAs: "ab1", children: "Get started in 3 easy steps!" }),
13
- /* @__PURE__ */ e(a, { heightX: r ? 1 : 2.75 }),
14
- /* @__PURE__ */ e(t, { $flexDirection: r ? "row" : "column", $flexColumnGapX: 1.5, children: s.map((i, o) => /* @__PURE__ */ n(
15
- $,
16
- {
17
- $flex: 1,
18
- $flexDirection: r ? "column" : "row",
19
- $flexColumnGapX: 1.5,
20
- $flexRowGapX: 0.5,
21
- $alignItems: "center",
22
- children: [
23
- /* @__PURE__ */ e("img", { src: i.icon, alt: `Step ${o + 1}`, width: 56, height: 56 }),
24
- /* @__PURE__ */ e(t, { $width: r ? 101 : 210, children: /* @__PURE__ */ e(
25
- l,
26
- {
27
- $whiteSpace: "pre-line",
28
- $renderAs: "ab2",
29
- $renderOnTabletAs: "ab3",
30
- $color: "WHITE",
31
- $align: r ? "center" : "left",
32
- children: i.title
33
- }
34
- ) })
35
- ]
36
- },
37
- o
38
- )) })
39
- ] });
40
- }, G = d;
41
- export {
42
- G as default
43
- };
44
- //# sourceMappingURL=onboarding-guide.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onboarding-guide.js","sources":["../../../../../src/features/auth/signup-v2/onboarding-guide/onboarding-guide.tsx"],"sourcesContent":["import { useTheme } from 'styled-components';\n\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 { onboardingGuideSteps } from './onboarding-guide-constants';\nimport * as Styled from './onboarding-guide-styled';\n\nconst OnboardingGuide = () => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n\n return (\n <FlexView $flex={1} $alignItems=\"center\" $justifyContent=\"center\">\n <Text $whiteSpace=\"pre-line\" $renderAs=\"ah4\" $color=\"WHITE\" $renderOnTabletAs=\"ab1\">\n Get started in 3 easy steps!\n </Text>\n <Separator heightX={isCompact ? 1 : 2.75} />\n <FlexView $flexDirection={isCompact ? 'row' : 'column'} $flexColumnGapX={1.5}>\n {onboardingGuideSteps.map((step, index) => (\n <Styled.StepItem\n key={index}\n $flex={1}\n $flexDirection={isCompact ? 'column' : 'row'}\n $flexColumnGapX={1.5}\n $flexRowGapX={0.5}\n $alignItems={'center'}\n >\n <img src={step.icon} alt={`Step ${index + 1}`} width={56} height={56} />\n <FlexView $width={isCompact ? 101 : 210}>\n <Text\n $whiteSpace=\"pre-line\"\n $renderAs=\"ab2\"\n $renderOnTabletAs=\"ab3\"\n $color=\"WHITE\"\n $align={isCompact ? 'center' : 'left'}\n >\n {step.title}\n </Text>\n </FlexView>\n </Styled.StepItem>\n ))}\n </FlexView>\n </FlexView>\n );\n};\n\nexport default OnboardingGuide;\n"],"names":["OnboardingGuide","device","useTheme","isCompact","EDeviceType","FlexView","jsx","Text","Separator","onboardingGuideSteps","step","index","jsxs","Styled.StepItem","OnboardingGuide$1"],"mappings":";;;;;;;;AASA,MAAMA,IAAkB,MAAM;AACtB,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAYF,KAAUG,EAAY;AAExC,2BACGC,GAAS,EAAA,OAAO,GAAG,aAAY,UAAS,iBAAgB,UACvD,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAK,aAAY,YAAW,WAAU,OAAM,QAAO,SAAQ,mBAAkB,OAAM,UAEpF,+BAAA,CAAA;AAAA,IACC,gBAAAD,EAAAE,GAAA,EAAU,SAASL,IAAY,IAAI,MAAM;AAAA,IACzC,gBAAAG,EAAAD,GAAA,EAAS,gBAAgBF,IAAY,QAAQ,UAAU,iBAAiB,KACtE,UAAqBM,EAAA,IAAI,CAACC,GAAMC,MAC/B,gBAAAC;AAAA,MAACC;AAAAA,MAAA;AAAA,QAEC,OAAO;AAAA,QACP,gBAAgBV,IAAY,WAAW;AAAA,QACvC,iBAAiB;AAAA,QACjB,cAAc;AAAA,QACd,aAAa;AAAA,QAEb,UAAA;AAAA,UAAA,gBAAAG,EAAC,OAAI,EAAA,KAAKI,EAAK,MAAM,KAAK,QAAQC,IAAQ,CAAC,IAAI,OAAO,IAAI,QAAQ,IAAI;AAAA,UACrE,gBAAAL,EAAAD,GAAA,EAAS,QAAQF,IAAY,MAAM,KAClC,UAAA,gBAAAG;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,aAAY;AAAA,cACZ,WAAU;AAAA,cACV,mBAAkB;AAAA,cAClB,QAAO;AAAA,cACP,QAAQJ,IAAY,WAAW;AAAA,cAE9B,UAAKO,EAAA;AAAA,YAAA;AAAA,UAAA,GAEV;AAAA,QAAA;AAAA,MAAA;AAAA,MAlBKC;AAAA,IAoBR,CAAA,GACH;AAAA,EACF,EAAA,CAAA;AAEJ,GAEAG,IAAed;"}
@@ -1,54 +0,0 @@
1
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import { useTheme as s } from "styled-components";
3
- import { ILLUSTRATIONS as o } from "../../../../assets/illustrations/illustrations.js";
4
- import i from "../../../ui/image/image.js";
5
- import n from "../../../ui/layout/flex-view.js";
6
- import c from "../../../ui/separator/separator.js";
7
- import l from "../../../ui/text/text.js";
8
- import { EDeviceType as a } from "../../../ui/theme/constants.js";
9
- const d = () => {
10
- const { device: m } = s(), e = m <= a.TABLET;
11
- return /* @__PURE__ */ t(
12
- n,
13
- {
14
- $flexDirection: e ? "row" : "column",
15
- $alignItems: e ? "center" : "flex-start",
16
- $width: "100%",
17
- $flexColumnGapX: 1,
18
- $justifyContent: e ? "space-between" : "flex-start",
19
- children: [
20
- /* @__PURE__ */ r(
21
- i,
22
- {
23
- width: e ? 80 : 107,
24
- src: o.CIRCLE_CUEMATH_LOGO_WHITE,
25
- height: e ? 12 : 16
26
- }
27
- ),
28
- !e && /* @__PURE__ */ r(c, { heightX: 1 }),
29
- /* @__PURE__ */ t(n, { $flexDirection: "row", $alignItems: "flex-end", children: [
30
- /* @__PURE__ */ t(l, { $renderAs: "ab2", $renderOnTabletAs: "ub3", $color: "WHITE", children: [
31
- "Rated",
32
- " ",
33
- /* @__PURE__ */ r(l, { $inline: !0, $renderAs: "ab2-bold", $renderOnTabletAs: "ub3-bold", $color: "WHITE", children: "4.8+" }),
34
- " ",
35
- "on"
36
- ] }),
37
- " ",
38
- /* @__PURE__ */ r(
39
- i,
40
- {
41
- src: o.TRUSTPILOT,
42
- width: e ? 80 : 99,
43
- height: e ? 20 : 25
44
- }
45
- )
46
- ] })
47
- ]
48
- }
49
- );
50
- }, b = d;
51
- export {
52
- b as default
53
- };
54
- //# sourceMappingURL=signup-header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signup-header.js","sources":["../../../../../src/features/auth/signup-v2/signup-header/signup-header.tsx"],"sourcesContent":["import { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Image from '../../../ui/image/image';\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 SignupHeader = () => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n\n return (\n <FlexView\n $flexDirection={isCompact ? 'row' : 'column'}\n $alignItems={isCompact ? 'center' : 'flex-start'}\n $width=\"100%\"\n $flexColumnGapX={1}\n $justifyContent={isCompact ? 'space-between' : 'flex-start'}\n >\n <Image\n width={isCompact ? 80 : 107}\n src={ILLUSTRATIONS.CIRCLE_CUEMATH_LOGO_WHITE}\n height={isCompact ? 12 : 16}\n />\n {!isCompact && <Separator heightX={1} />}\n <FlexView $flexDirection=\"row\" $alignItems=\"flex-end\">\n <Text $renderAs=\"ab2\" $renderOnTabletAs=\"ub3\" $color=\"WHITE\">\n Rated{' '}\n <Text $inline $renderAs=\"ab2-bold\" $renderOnTabletAs=\"ub3-bold\" $color=\"WHITE\">\n 4.8+\n </Text>{' '}\n on\n </Text>\n &nbsp;\n <Image\n src={ILLUSTRATIONS.TRUSTPILOT}\n width={isCompact ? 80 : 99}\n height={isCompact ? 20 : 25}\n />\n </FlexView>\n </FlexView>\n );\n};\n\nexport default SignupHeader;\n"],"names":["SignupHeader","device","useTheme","isCompact","EDeviceType","jsxs","FlexView","jsx","Image","ILLUSTRATIONS","Separator","Text","SignupHeader$1"],"mappings":";;;;;;;;AASA,MAAMA,IAAe,MAAM;AACnB,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAYF,KAAUG,EAAY;AAGtC,SAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAgBH,IAAY,QAAQ;AAAA,MACpC,aAAaA,IAAY,WAAW;AAAA,MACpC,QAAO;AAAA,MACP,iBAAiB;AAAA,MACjB,iBAAiBA,IAAY,kBAAkB;AAAA,MAE/C,UAAA;AAAA,QAAA,gBAAAI;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,OAAOL,IAAY,KAAK;AAAA,YACxB,KAAKM,EAAc;AAAA,YACnB,QAAQN,IAAY,KAAK;AAAA,UAAA;AAAA,QAC3B;AAAA,QACC,CAACA,KAAc,gBAAAI,EAAAG,GAAA,EAAU,SAAS,EAAG,CAAA;AAAA,QACrC,gBAAAL,EAAAC,GAAA,EAAS,gBAAe,OAAM,aAAY,YACzC,UAAA;AAAA,UAAA,gBAAAD,EAACM,KAAK,WAAU,OAAM,mBAAkB,OAAM,QAAO,SAAQ,UAAA;AAAA,YAAA;AAAA,YACrD;AAAA,YACN,gBAAAJ,EAACI,GAAK,EAAA,SAAO,IAAC,WAAU,YAAW,mBAAkB,YAAW,QAAO,SAAQ,UAE/E,OAAA,CAAA;AAAA,YAAQ;AAAA,YAAI;AAAA,UAAA,GAEd;AAAA,UAAO;AAAA,UAEP,gBAAAJ;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,KAAKC,EAAc;AAAA,cACnB,OAAON,IAAY,KAAK;AAAA,cACxB,QAAQA,IAAY,KAAK;AAAA,YAAA;AAAA,UAC3B;AAAA,QAAA,GACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEAS,IAAeZ;"}
@@ -1,83 +0,0 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { memo as b } from "react";
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
- import c from "../../../ui/text/text.js";
11
- import { EDeviceType as I } from "../../../ui/theme/constants.js";
12
- const k = ({
13
- onEmailSignup: m,
14
- onAppleSignup: p,
15
- onGoogleSignup: d,
16
- loadingProvider: l,
17
- onGoToLogin: h,
18
- title: f
19
- }) => {
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 }),
24
- /* @__PURE__ */ i(
25
- t,
26
- {
27
- $flexGapX: 1,
28
- $flex: 1,
29
- $justifyContent: "center",
30
- $alignItems: "flex-start",
31
- $width: "100%",
32
- children: [
33
- /* @__PURE__ */ e(
34
- r,
35
- {
36
- renderAs: "black-dark",
37
- Icon: x,
38
- width: o ? "100%" : 320,
39
- label: "Signup with Google",
40
- onClick: d,
41
- size: "small",
42
- busy: n,
43
- disabled: n
44
- }
45
- ),
46
- /* @__PURE__ */ e(
47
- r,
48
- {
49
- renderAs: "black-dark",
50
- size: "small",
51
- width: o ? "100%" : 320,
52
- Icon: $,
53
- label: "Signup with Apple",
54
- onClick: p,
55
- busy: s,
56
- disabled: s
57
- }
58
- ),
59
- /* @__PURE__ */ e(
60
- r,
61
- {
62
- renderAs: "black-dark",
63
- size: "small",
64
- width: o ? "100%" : 320,
65
- label: "Continue with Email",
66
- onClick: m
67
- }
68
- )
69
- ]
70
- }
71
- ),
72
- /* @__PURE__ */ e(a, { heightX: 1.5 }),
73
- /* @__PURE__ */ i(t, { $flexDirection: "row", $alignItems: "center", children: [
74
- /* @__PURE__ */ e(c, { $renderAs: "ub3", $color: "WHITE", children: "Already have an account?" }),
75
- " ",
76
- /* @__PURE__ */ e(A, { size: "small", label: "Log In", color: "WHITE", onClick: h })
77
- ] })
78
- ] });
79
- }, B = b(k);
80
- export {
81
- B as default
82
- };
83
- //# sourceMappingURL=signup-options.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signup-options.js","sources":["../../../../../src/features/auth/signup-v2/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","signupO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,OAAM;AAAA,cACN,SAASR;AAAA,YAAA;AAAA,UACX;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,IACA,gBAAAc,EAACE,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,IACxB,gBAAAJ,EAAAC,GAAA,EAAS,gBAAe,OAAM,aAAY,UACzC,UAAA;AAAA,MAAA,gBAAAC,EAACC,GAAK,EAAA,WAAU,OAAM,QAAO,SAAQ,UAErC,4BAAA;AAAA,MAAO;AAAA,MAEP,gBAAAD,EAACM,KAAW,MAAK,SAAQ,OAAM,UAAS,OAAM,SAAQ,SAAShB,EAAa,CAAA;AAAA,IAAA,GAC9E;AAAA,EACF,EAAA,CAAA;AAEJ,GAEeiB,IAAAC,EAAKvB,CAAa;"}
@@ -1,49 +0,0 @@
1
- import r from "styled-components";
2
- import e from "../../../../ui/image/image.js";
3
- import t from "../../../../ui/layout/flex-view.js";
4
- const l = r(e)`
5
- object-fit: cover;
6
- `, c = r.div(
7
- ({ theme: o }) => `
8
- flex: 1;
9
- display: grid;
10
- border-left: 1px solid ${o.colors.BLACK_T_87};
11
- grid-template-columns: repeat(2, 1fr);
12
- grid-template-rows: auto auto auto;
13
- `
14
- ), h = r(t)(
15
- ({ theme: o }) => `
16
- border: 0.5px solid ${o.colors.WHITE_5};
17
- &:first-child,
18
- &:nth-child(2) {
19
- grid-column: span 1;
20
- }
21
- &:nth-child(3),
22
- &:nth-child(4) {
23
- grid-column: span 2;
24
- }
25
- &:first-child {
26
- border-left: none;
27
- border-top: none;
28
- }
29
- &:nth-child(2) {
30
- border-right: none;
31
- border-top: none;
32
- }
33
- &:nth-child(3) {
34
- border-left: none;
35
- border-right: none;
36
- }
37
- &:nth-child(4) {
38
- border-left: none;
39
- border-right: none;
40
- border-bottom: none;
41
- }
42
- `
43
- );
44
- export {
45
- c as GridContainer,
46
- h as GridItem,
47
- l as ProfilePicture
48
- };
49
- //# sourceMappingURL=teacher-profile-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"teacher-profile-styled.js","sources":["../../../../../../src/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport Image from '../../../../ui/image/image';\nimport FlexView from '../../../../ui/layout/flex-view';\n\nconst ProfilePicture = styled(Image)`\n object-fit: cover;\n`;\n\nconst GridContainer = styled.div(\n ({ theme }) => `\n flex: 1;\n display: grid;\n border-left: 1px solid ${theme.colors.BLACK_T_87};\n grid-template-columns: repeat(2, 1fr);\n grid-template-rows: auto auto auto;\n`,\n);\n\nconst GridItem = styled(FlexView)(\n ({ theme }) => `\n border: 0.5px solid ${theme.colors.WHITE_5};\n &:first-child,\n &:nth-child(2) {\n grid-column: span 1;\n }\n &:nth-child(3),\n &:nth-child(4) {\n grid-column: span 2;\n }\n &:first-child {\n border-left: none;\n border-top: none;\n }\n &:nth-child(2) {\n border-right: none;\n border-top: none;\n }\n &:nth-child(3) {\n border-left: none;\n border-right: none;\n }\n &:nth-child(4) {\n border-left: none;\n border-right: none;\n border-bottom: none;\n }\n`,\n);\n\nexport { ProfilePicture, GridContainer, GridItem };\n"],"names":["ProfilePicture","styled","Image","GridContainer","theme","GridItem","FlexView"],"mappings":";;;AAKM,MAAAA,IAAiBC,EAAOC,CAAK;AAAA;AAAA,GAI7BC,IAAgBF,EAAO;AAAA,EAC3B,CAAC,EAAE,OAAAG,EAAA,MAAY;AAAA;AAAA;AAAA,2BAGUA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAIlD,GAEMC,IAAWJ,EAAOK,CAAQ;AAAA,EAC9B,CAAC,EAAE,OAAAF,EAAA,MAAY;AAAA,wBACOA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2B5C;"}