@cuemath/leap 3.0.15 → 3.0.17-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 (422) hide show
  1. package/dist/assets/illustrations/illustrations.js +3 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/illustrations/loader-1.svg.js +6 -0
  4. package/dist/assets/illustrations/loader-1.svg.js.map +1 -0
  5. package/dist/assets/line-icons/icons/apple-icon.js +48 -0
  6. package/dist/assets/line-icons/icons/apple-icon.js.map +1 -0
  7. package/dist/assets/line-icons/icons/google-icon.js +42 -0
  8. package/dist/assets/line-icons/icons/google-icon.js.map +1 -0
  9. package/dist/assets/lottie/lottie.js +11 -0
  10. package/dist/assets/lottie/lottie.js.map +1 -1
  11. package/dist/features/auth/account-selector/account-selector.js +43 -0
  12. package/dist/features/auth/account-selector/account-selector.js.map +1 -0
  13. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js +12 -0
  14. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +1 -0
  15. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +12 -0
  16. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -0
  17. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +18 -0
  18. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +1 -0
  19. package/dist/features/auth/comps/input-status-icon/input-status-icon.js +21 -0
  20. package/dist/features/auth/comps/input-status-icon/input-status-icon.js.map +1 -0
  21. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js +29 -0
  22. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js.map +1 -0
  23. package/dist/features/auth/comps/overlay-loader/overlay-loader.js +9 -0
  24. package/dist/features/auth/comps/overlay-loader/overlay-loader.js.map +1 -0
  25. package/dist/features/auth/comps/resend-otp/hooks/use-resend-timer.js +24 -0
  26. package/dist/features/auth/comps/resend-otp/hooks/use-resend-timer.js.map +1 -0
  27. package/dist/features/auth/comps/resend-otp/resend-otp.js +65 -0
  28. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -0
  29. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +23 -0
  30. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +1 -0
  31. package/dist/features/auth/comps/tabs/tabs-styled.js +23 -0
  32. package/dist/features/auth/comps/tabs/tabs-styled.js.map +1 -0
  33. package/dist/features/auth/comps/tabs/tabs.js +9 -0
  34. package/dist/features/auth/comps/tabs/tabs.js.map +1 -0
  35. package/dist/features/auth/forgot-password/forgot-password-styled.js +12 -0
  36. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -0
  37. package/dist/features/auth/forgot-password/otp-form/otp-form.js +66 -0
  38. package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +1 -0
  39. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +101 -0
  40. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +1 -0
  41. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +68 -0
  42. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +1 -0
  43. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +12 -0
  44. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -0
  45. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js +100 -0
  46. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js.map +1 -0
  47. package/dist/features/auth/login/login-constants.js +14 -0
  48. package/dist/features/auth/login/login-constants.js.map +1 -0
  49. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +32 -0
  50. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +1 -0
  51. package/dist/features/auth/login/social-login-methods/social-login-methods.js +47 -0
  52. package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +1 -0
  53. package/dist/features/auth/login/username-password-form/username-password-form.js +98 -0
  54. package/dist/features/auth/login/username-password-form/username-password-form.js.map +1 -0
  55. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +56 -0
  56. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +1 -0
  57. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +131 -0
  58. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -0
  59. package/dist/features/auth/signup/claim-user-account/claim-user-account.js +53 -0
  60. package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +1 -0
  61. package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js +34 -0
  62. package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js.map +1 -0
  63. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js +98 -0
  64. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js.map +1 -0
  65. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js +57 -0
  66. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js.map +1 -0
  67. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js +26 -0
  68. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js.map +1 -0
  69. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js +30 -0
  70. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js.map +1 -0
  71. package/dist/features/auth/signup/custom-input-field/custom-input-field.js +100 -0
  72. package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +1 -0
  73. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js +88 -0
  74. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js.map +1 -0
  75. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js +43 -0
  76. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js.map +1 -0
  77. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js +31 -0
  78. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js.map +1 -0
  79. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js +31 -0
  80. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js.map +1 -0
  81. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js +11 -0
  82. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js.map +1 -0
  83. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +29 -0
  84. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +1 -0
  85. package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js +9 -0
  86. package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js.map +1 -0
  87. package/dist/features/auth/signup/signup-constants.js +1031 -0
  88. package/dist/features/auth/signup/signup-constants.js.map +1 -0
  89. package/dist/features/auth/signup/signup-methods/signup-methods.js +69 -0
  90. package/dist/features/auth/signup/signup-methods/signup-methods.js.map +1 -0
  91. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js +19 -0
  92. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js.map +1 -0
  93. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js +62 -0
  94. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js.map +1 -0
  95. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js +24 -0
  96. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js.map +1 -0
  97. package/dist/features/auth/signup/user-type-selector/user-type-selector.js +85 -0
  98. package/dist/features/auth/signup/user-type-selector/user-type-selector.js.map +1 -0
  99. package/dist/features/auth/user-list/user-item/user-item-styled.js +21 -0
  100. package/dist/features/auth/user-list/user-item/user-item-styled.js.map +1 -0
  101. package/dist/features/auth/user-list/user-item/user-item.js +48 -0
  102. package/dist/features/auth/user-list/user-item/user-item.js.map +1 -0
  103. package/dist/features/auth/user-list/user-list-styled.js +19 -0
  104. package/dist/features/auth/user-list/user-list-styled.js.map +1 -0
  105. package/dist/features/auth/user-list/user-list.js +56 -0
  106. package/dist/features/auth/user-list/user-list.js.map +1 -0
  107. package/dist/features/communication/pub-sub/constants.js +1 -0
  108. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  109. package/dist/features/homework/homework-card.js +135 -143
  110. package/dist/features/homework/homework-card.js.map +1 -1
  111. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +65 -64
  112. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  113. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +20 -20
  114. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -1
  115. package/dist/index.d.ts +294 -2
  116. package/dist/index.js +367 -321
  117. package/dist/index.js.map +1 -1
  118. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +332 -0
  119. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
  120. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +370 -0
  121. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
  122. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +252 -0
  123. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js.map +1 -0
  124. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +24 -0
  125. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js.map +1 -0
  126. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +192 -0
  127. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
  128. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +19 -0
  129. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
  130. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +129 -0
  131. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
  132. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +129 -0
  133. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
  134. package/dist/node_modules/clsx/dist/clsx.js +18 -0
  135. package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
  136. package/dist/node_modules/date-fns/subYears.js +9 -0
  137. package/dist/node_modules/date-fns/subYears.js.map +1 -0
  138. package/dist/node_modules/react-datepicker/dist/index.es.js +2700 -0
  139. package/dist/node_modules/react-datepicker/dist/index.es.js.map +1 -0
  140. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
  141. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
  142. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js +8 -0
  143. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
  144. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js +518 -0
  145. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
  146. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js +60 -0
  147. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
  148. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js +53 -0
  149. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
  150. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +19 -0
  151. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
  152. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js +12 -0
  153. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
  154. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js +21 -0
  155. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
  156. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js +11 -0
  157. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js.map +1 -0
  158. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js +10 -0
  159. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js.map +1 -0
  160. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js +10 -0
  161. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js.map +1 -0
  162. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js +11 -0
  163. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js.map +1 -0
  164. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js +21 -0
  165. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js.map +1 -0
  166. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js +9 -0
  167. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js.map +1 -0
  168. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js +9 -0
  169. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js.map +1 -0
  170. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js +9 -0
  171. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js.map +1 -0
  172. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js +9 -0
  173. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js.map +1 -0
  174. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js +10 -0
  175. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js.map +1 -0
  176. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js +9 -0
  177. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js.map +1 -0
  178. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js +17 -0
  179. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
  180. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js +14 -0
  181. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js.map +1 -0
  182. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js +15 -0
  183. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js.map +1 -0
  184. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js +14 -0
  185. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js.map +1 -0
  186. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js +23 -0
  187. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js.map +1 -0
  188. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js +10 -0
  189. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js.map +1 -0
  190. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js +10 -0
  191. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js.map +1 -0
  192. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js +12 -0
  193. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js.map +1 -0
  194. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js +10 -0
  195. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js.map +1 -0
  196. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js +60 -0
  197. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js.map +1 -0
  198. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js +9 -0
  199. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js.map +1 -0
  200. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js +9 -0
  201. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js.map +1 -0
  202. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js +12 -0
  203. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js.map +1 -0
  204. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js +11 -0
  205. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js.map +1 -0
  206. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js +9 -0
  207. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js.map +1 -0
  208. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js +9 -0
  209. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js.map +1 -0
  210. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js +10 -0
  211. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js.map +1 -0
  212. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js +13 -0
  213. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js.map +1 -0
  214. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js +16 -0
  215. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js.map +1 -0
  216. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js +9 -0
  217. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js.map +1 -0
  218. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js +9 -0
  219. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js.map +1 -0
  220. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js +10 -0
  221. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js.map +1 -0
  222. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js +9 -0
  223. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js.map +1 -0
  224. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js +9 -0
  225. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js.map +1 -0
  226. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js +13 -0
  227. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js.map +1 -0
  228. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js +18 -0
  229. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js.map +1 -0
  230. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js +9 -0
  231. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js.map +1 -0
  232. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js +9 -0
  233. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js.map +1 -0
  234. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js +9 -0
  235. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js.map +1 -0
  236. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js +8 -0
  237. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js.map +1 -0
  238. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js +9 -0
  239. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js.map +1 -0
  240. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js +15 -0
  241. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js.map +1 -0
  242. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js +14 -0
  243. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js.map +1 -0
  244. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js +15 -0
  245. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js.map +1 -0
  246. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js +14 -0
  247. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js.map +1 -0
  248. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js +10 -0
  249. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js.map +1 -0
  250. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js +13 -0
  251. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js.map +1 -0
  252. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +10 -0
  253. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
  254. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +19 -0
  255. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
  256. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js +32 -0
  257. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
  258. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +16 -0
  259. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
  260. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +71 -0
  261. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
  262. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js +34 -0
  263. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
  264. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +12 -0
  265. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
  266. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js +156 -0
  267. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
  268. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js +111 -0
  269. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
  270. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js +22 -0
  271. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js.map +1 -0
  272. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js +15 -0
  273. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js.map +1 -0
  274. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js +15 -0
  275. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js.map +1 -0
  276. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js +23 -0
  277. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js.map +1 -0
  278. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js +42 -0
  279. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js.map +1 -0
  280. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js +50 -0
  281. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js.map +1 -0
  282. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +50 -0
  283. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +1 -0
  284. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +50 -0
  285. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +1 -0
  286. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js +62 -0
  287. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +1 -0
  288. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +52 -0
  289. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +1 -0
  290. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js +46 -0
  291. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +1 -0
  292. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +50 -0
  293. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +1 -0
  294. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js +31 -0
  295. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +1 -0
  296. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +22 -0
  297. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +1 -0
  298. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +23 -0
  299. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +1 -0
  300. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +33 -0
  301. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +1 -0
  302. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +33 -0
  303. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +1 -0
  304. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +34 -0
  305. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +1 -0
  306. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +34 -0
  307. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +1 -0
  308. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +100 -0
  309. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +1 -0
  310. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +49 -0
  311. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +1 -0
  312. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +49 -0
  313. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +1 -0
  314. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +50 -0
  315. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +1 -0
  316. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +41 -0
  317. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +1 -0
  318. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +75 -0
  319. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +1 -0
  320. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +49 -0
  321. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +1 -0
  322. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +70 -0
  323. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +1 -0
  324. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +33 -0
  325. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +1 -0
  326. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +72 -0
  327. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +1 -0
  328. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
  329. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +1 -0
  330. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +33 -0
  331. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +1 -0
  332. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +75 -0
  333. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +1 -0
  334. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +72 -0
  335. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +1 -0
  336. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
  337. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +1 -0
  338. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +23 -0
  339. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +1 -0
  340. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +23 -0
  341. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +1 -0
  342. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js +50 -0
  343. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +1 -0
  344. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js +68 -0
  345. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js.map +1 -0
  346. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js +104 -0
  347. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js.map +1 -0
  348. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js +88 -0
  349. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js.map +1 -0
  350. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js +123 -0
  351. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js.map +1 -0
  352. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js +13 -0
  353. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js.map +1 -0
  354. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js +10 -0
  355. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js.map +1 -0
  356. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js +12 -0
  357. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js.map +1 -0
  358. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js +11 -0
  359. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js.map +1 -0
  360. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js +10 -0
  361. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js.map +1 -0
  362. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js +14 -0
  363. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js.map +1 -0
  364. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js +11 -0
  365. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js.map +1 -0
  366. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js +10 -0
  367. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js.map +1 -0
  368. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js +11 -0
  369. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js.map +1 -0
  370. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js +11 -0
  371. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js.map +1 -0
  372. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js +10 -0
  373. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js.map +1 -0
  374. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js +9 -0
  375. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js.map +1 -0
  376. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js +12 -0
  377. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
  378. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js +10 -0
  379. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js.map +1 -0
  380. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js +10 -0
  381. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js.map +1 -0
  382. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js +12 -0
  383. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js.map +1 -0
  384. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js +14 -0
  385. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js.map +1 -0
  386. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js +10 -0
  387. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js.map +1 -0
  388. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js +9 -0
  389. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js.map +1 -0
  390. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js +9 -0
  391. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js.map +1 -0
  392. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js +9 -0
  393. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js.map +1 -0
  394. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js +9 -0
  395. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js.map +1 -0
  396. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js +9 -0
  397. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js.map +1 -0
  398. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js +9 -0
  399. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js.map +1 -0
  400. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js +19 -0
  401. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js.map +1 -0
  402. package/dist/static/avatar-selected.860ee923.json +1 -0
  403. package/dist/static/circle-cuemath-logo-white.e9fafb91.svg +1 -0
  404. package/dist/static/cuemath-app-qr-code.4beefe48.svg +1 -0
  405. package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +1 -0
  406. package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
  407. package/dist/static/dob.9ce3c15b.json +1 -0
  408. package/dist/static/error.cbe1ddde.json +1 -0
  409. package/dist/static/grade.b3730524.json +1 -0
  410. package/dist/static/key.d6846476.json +1 -0
  411. package/dist/static/mail.c30e8708.json +1 -0
  412. package/dist/static/otp.2d08f874.json +1 -0
  413. package/dist/static/otp.a3029760.json +1 -0
  414. package/dist/static/parent-avatar.772d53e0.json +1 -0
  415. package/dist/static/phone-number.0be312ea.json +1 -0
  416. package/dist/static/phone-number.84f55562.json +1 -0
  417. package/dist/static/student-avatar.524226bd.json +1 -0
  418. package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +1 -0
  419. package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +1 -0
  420. package/dist/static/user-type-selector-grid-bg.aad0b059.svg +1 -0
  421. package/dist/static/username.9e034d51.json +1 -0
  422. package/package.json +3 -2
@@ -0,0 +1,131 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { memo as b, forwardRef as E, useRef as c, useState as $, useCallback as H, useEffect as B, useImperativeHandle as T, useLayoutEffect as j } from "react";
3
+ import P from "../../../../assets/line-icons/icons/back2.js";
4
+ import z from "../../../../assets/line-icons/icons/next2.js";
5
+ import F from "../../../ui/animated-arc/animated-arc.js";
6
+ import g from "../../../ui/buttons/icon-button/icon-button.js";
7
+ import M from "../../../ui/layout/flex-view.js";
8
+ import N from "../../../ui/lottie-animation/lottie-animation.js";
9
+ import O from "../../../ui/separator/separator.js";
10
+ import V from "../../../ui/text/text.js";
11
+ import { Container as X, CircularStepContainer as D, ContentWrapper as K, InputContainer as Y, PrevButtonWrapper as _, NextButtonWrapper as q } from "./circular-step-wrapper-styled.js";
12
+ const G = {
13
+ autoplay: !1,
14
+ loop: !1,
15
+ renderer: "canvas",
16
+ rendererSettings: {
17
+ preserveAspectRatio: "xMidYMin slice"
18
+ }
19
+ }, J = E(
20
+ ({
21
+ children: C,
22
+ onGoBack: y,
23
+ onNext: I,
24
+ label: a,
25
+ showNext: x,
26
+ showPrevious: A,
27
+ animation: r,
28
+ introFrames: S,
29
+ outroFrames: w,
30
+ isNextLoading: s,
31
+ progressAngle: l
32
+ }, R) => {
33
+ const t = c(null), o = c(null), [u, k] = $(), [v, m] = $(!1), i = c(null), L = H(() => {
34
+ r && t.current && (t.current.playSegments(S, !0), m(!0));
35
+ }, [r]);
36
+ return B(() => () => {
37
+ i.current && clearTimeout(i.current);
38
+ }, [r]), T(R, () => ({
39
+ playOutroAndFadeOut: async () => new Promise((W) => {
40
+ var f, p;
41
+ const d = () => {
42
+ var h;
43
+ W(), (h = t.current) == null || h.removeEventListener("complete", d);
44
+ };
45
+ (f = t.current) == null || f.playSegments(w, !0), i.current = setTimeout(() => m(!1), 400), (p = t.current) == null || p.addEventListener("complete", d);
46
+ })
47
+ })), j(() => {
48
+ o.current && k(o.current.offsetHeight);
49
+ }, []), /* @__PURE__ */ n(
50
+ X,
51
+ {
52
+ $flex: 1,
53
+ $flexDirection: "column",
54
+ $alignItems: "center",
55
+ $justifyContent: "center",
56
+ $width: "100%",
57
+ $height: "100%",
58
+ ref: o,
59
+ children: [
60
+ u && /* @__PURE__ */ e(
61
+ N,
62
+ {
63
+ width: 1280,
64
+ height: u,
65
+ src: r,
66
+ ref: t,
67
+ onRender: L,
68
+ settings: G
69
+ }
70
+ ),
71
+ /* @__PURE__ */ n(
72
+ D,
73
+ {
74
+ $width: 400,
75
+ $height: 400,
76
+ $background: "REAL_BLACK",
77
+ $alignItems: "center",
78
+ $justifyContent: "center",
79
+ children: [
80
+ l && /* @__PURE__ */ e(
81
+ F,
82
+ {
83
+ radius: 200,
84
+ strokeWidth: 2,
85
+ color: "WHITE",
86
+ targetAngle: l,
87
+ mode: "fade",
88
+ duration: 1
89
+ }
90
+ ),
91
+ /* @__PURE__ */ n(K, { $isVisible: v, $width: "100%", children: [
92
+ a && /* @__PURE__ */ n(M, { $gutterX: 3.5, children: [
93
+ /* @__PURE__ */ e(V, { $renderAs: "ab2", $color: "WHITE", $align: "center", children: a }),
94
+ /* @__PURE__ */ e(O, { heightX: 1 })
95
+ ] }),
96
+ /* @__PURE__ */ e(Y, { children: C })
97
+ ] })
98
+ ]
99
+ }
100
+ ),
101
+ A && /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(
102
+ g,
103
+ {
104
+ Icon: P,
105
+ renderAs: "secondary-dark",
106
+ analyticsLabel: "Prev",
107
+ onClick: y,
108
+ disabled: s,
109
+ size: "small"
110
+ }
111
+ ) }),
112
+ x && /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(
113
+ g,
114
+ {
115
+ size: "small",
116
+ Icon: z,
117
+ renderAs: "secondary-dark",
118
+ analyticsLabel: "Next",
119
+ onClick: I,
120
+ busy: s
121
+ }
122
+ ) })
123
+ ]
124
+ }
125
+ );
126
+ }
127
+ ), se = b(J);
128
+ export {
129
+ se as default
130
+ };
131
+ //# sourceMappingURL=circular-step-wrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circular-step-wrapper.js","sources":["../../../../../src/features/auth/signup/circular-step-wrapper/circular-step-wrapper.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../../ui/lottie-animation/types';\nimport type { ICircularStepRef, ICircularStepWrapperProps } from './circular-step-wrapper-types';\n\nimport {\n forwardRef,\n useCallback,\n useEffect,\n useImperativeHandle,\n useLayoutEffect,\n useRef,\n useState,\n memo,\n type Ref,\n} from 'react';\n\nimport Back2Icon from '../../../../assets/line-icons/icons/back2';\nimport Next2Icon from '../../../../assets/line-icons/icons/next2';\nimport AnimatedArc from '../../../ui/animated-arc/animated-arc';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport * as Styled from './circular-step-wrapper-styled';\n\nconst animationSettings = {\n autoplay: false,\n loop: false,\n renderer: 'canvas',\n rendererSettings: {\n preserveAspectRatio: 'xMidYMin slice',\n },\n};\n\nconst CircularStepWrapper = forwardRef<ICircularStepRef, ICircularStepWrapperProps>(\n (\n {\n children,\n onGoBack,\n onNext,\n label,\n showNext,\n showPrevious,\n animation,\n introFrames,\n outroFrames,\n isNextLoading,\n progressAngle,\n },\n ref: Ref<ICircularStepRef>,\n ) => {\n const animationRef = useRef<ILottieAnimationRef | null>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const [containerHeight, setContainerHeight] = useState<number | undefined>();\n const [showContent, setShowContent] = useState(false);\n const timeoutRef = useRef<NodeJS.Timeout | null>(null);\n\n const onLottieRender = useCallback(() => {\n if (animation && animationRef.current) {\n animationRef.current.playSegments(introFrames, true);\n setShowContent(true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [animation]);\n\n useEffect(() => {\n return () => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n };\n }, [animation]);\n\n useImperativeHandle(ref, () => ({\n playOutroAndFadeOut: async () => {\n return new Promise<void>(resolve => {\n const handleComplete = () => {\n resolve();\n animationRef.current?.removeEventListener('complete', handleComplete);\n };\n\n animationRef.current?.playSegments(outroFrames, true);\n timeoutRef.current = setTimeout(() => setShowContent(false), 400);\n animationRef.current?.addEventListener('complete', handleComplete);\n });\n },\n }));\n\n useLayoutEffect(() => {\n if (containerRef.current) {\n setContainerHeight(containerRef.current.offsetHeight);\n }\n }, []);\n\n return (\n <Styled.Container\n $flex={1}\n $flexDirection=\"column\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $width=\"100%\"\n $height=\"100%\"\n ref={containerRef}\n >\n {containerHeight && (\n <LottieAnimation\n width={1280}\n height={containerHeight}\n src={animation}\n ref={animationRef}\n onRender={onLottieRender}\n settings={animationSettings}\n />\n )}\n <Styled.CircularStepContainer\n $width={400}\n $height={400}\n $background=\"REAL_BLACK\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n {progressAngle && (\n <AnimatedArc\n radius={200}\n strokeWidth={2}\n color=\"WHITE\"\n targetAngle={progressAngle}\n mode=\"fade\"\n duration={1}\n />\n )}\n <Styled.ContentWrapper $isVisible={showContent} $width=\"100%\">\n {label && (\n <FlexView $gutterX={3.5}>\n <Text $renderAs=\"ab2\" $color=\"WHITE\" $align=\"center\">\n {label}\n </Text>\n <Separator heightX={1} />\n </FlexView>\n )}\n <Styled.InputContainer>{children}</Styled.InputContainer>\n </Styled.ContentWrapper>\n </Styled.CircularStepContainer>\n {showPrevious && (\n <Styled.PrevButtonWrapper>\n <IconButton\n Icon={Back2Icon}\n renderAs=\"secondary-dark\"\n analyticsLabel=\"Prev\"\n onClick={onGoBack}\n disabled={isNextLoading}\n size=\"small\"\n />\n </Styled.PrevButtonWrapper>\n )}\n {showNext && (\n <Styled.NextButtonWrapper>\n <IconButton\n size=\"small\"\n Icon={Next2Icon}\n renderAs=\"secondary-dark\"\n analyticsLabel=\"Next\"\n onClick={onNext}\n busy={isNextLoading}\n />\n </Styled.NextButtonWrapper>\n )}\n </Styled.Container>\n );\n },\n);\n\nexport default memo(CircularStepWrapper);\n"],"names":["animationSettings","CircularStepWrapper","forwardRef","children","onGoBack","onNext","label","showNext","showPrevious","animation","introFrames","outroFrames","isNextLoading","progressAngle","ref","animationRef","useRef","containerRef","containerHeight","setContainerHeight","useState","showContent","setShowContent","timeoutRef","onLottieRender","useCallback","useEffect","useImperativeHandle","resolve","handleComplete","_a","_b","useLayoutEffect","jsxs","Styled.Container","jsx","LottieAnimation","Styled.CircularStepContainer","AnimatedArc","Styled.ContentWrapper","FlexView","Text","Separator","Styled.InputContainer","Styled.PrevButtonWrapper","IconButton","Back2Icon","Styled.NextButtonWrapper","Next2Icon","circularStepWrapper","memo"],"mappings":";;;;;;;;;;;AAyBA,MAAMA,IAAoB;AAAA,EACxB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AAAA,EACV,kBAAkB;AAAA,IAChB,qBAAqB;AAAA,EACvB;AACF,GAEMC,IAAsBC;AAAA,EAC1B,CACE;AAAA,IACE,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,IACA,eAAAC;AAAA,KAEFC,MACG;AACG,UAAAC,IAAeC,EAAmC,IAAI,GACtDC,IAAeD,EAAuB,IAAI,GAC1C,CAACE,GAAiBC,CAAkB,IAAIC,EAA6B,GACrE,CAACC,GAAaC,CAAc,IAAIF,EAAS,EAAK,GAC9CG,IAAaP,EAA8B,IAAI,GAE/CQ,IAAiBC,EAAY,MAAM;AACnC,MAAAhB,KAAaM,EAAa,YACfA,EAAA,QAAQ,aAAaL,GAAa,EAAI,GACnDY,EAAe,EAAI;AAAA,IACrB,GAEC,CAACb,CAAS,CAAC;AAEd,WAAAiB,EAAU,MACD,MAAM;AACX,MAAIH,EAAW,WACb,aAAaA,EAAW,OAAO;AAAA,IACjC,GAED,CAACd,CAAS,CAAC,GAEdkB,EAAoBb,GAAK,OAAO;AAAA,MAC9B,qBAAqB,YACZ,IAAI,QAAc,CAAWc,MAAA;;AAClC,cAAMC,IAAiB,MAAM;;AACnB,UAAAD,MACKE,IAAAf,EAAA,YAAA,QAAAe,EAAS,oBAAoB,YAAYD;AAAA,QAAc;AAGzD,SAAAC,IAAAf,EAAA,YAAA,QAAAe,EAAS,aAAanB,GAAa,KAChDY,EAAW,UAAU,WAAW,MAAMD,EAAe,EAAK,GAAG,GAAG,IACnDS,IAAAhB,EAAA,YAAA,QAAAgB,EAAS,iBAAiB,YAAYF;AAAA,MAAc,CAClE;AAAA,IAEH,EAAA,GAEFG,EAAgB,MAAM;AACpB,MAAIf,EAAa,WACIE,EAAAF,EAAa,QAAQ,YAAY;AAAA,IAExD,GAAG,CAAE,CAAA,GAGH,gBAAAgB;AAAA,MAACC;AAAAA,MAAA;AAAA,QACC,OAAO;AAAA,QACP,gBAAe;AAAA,QACf,aAAY;AAAA,QACZ,iBAAgB;AAAA,QAChB,QAAO;AAAA,QACP,SAAQ;AAAA,QACR,KAAKjB;AAAA,QAEJ,UAAA;AAAA,UACCC,KAAA,gBAAAiB;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,OAAO;AAAA,cACP,QAAQlB;AAAA,cACR,KAAKT;AAAA,cACL,KAAKM;AAAA,cACL,UAAUS;AAAA,cACV,UAAUxB;AAAA,YAAA;AAAA,UACZ;AAAA,UAEF,gBAAAiC;AAAA,YAACI;AAAAA,YAAA;AAAA,cACC,QAAQ;AAAA,cACR,SAAS;AAAA,cACT,aAAY;AAAA,cACZ,aAAY;AAAA,cACZ,iBAAgB;AAAA,cAEf,UAAA;AAAA,gBACCxB,KAAA,gBAAAsB;AAAA,kBAACG;AAAA,kBAAA;AAAA,oBACC,QAAQ;AAAA,oBACR,aAAa;AAAA,oBACb,OAAM;AAAA,oBACN,aAAazB;AAAA,oBACb,MAAK;AAAA,oBACL,UAAU;AAAA,kBAAA;AAAA,gBACZ;AAAA,kCAED0B,GAAA,EAAsB,YAAYlB,GAAa,QAAO,QACpD,UAAA;AAAA,kBACCf,KAAA,gBAAA2B,EAACO,GAAS,EAAA,UAAU,KAClB,UAAA;AAAA,oBAAA,gBAAAL,EAACM,KAAK,WAAU,OAAM,QAAO,SAAQ,QAAO,UACzC,UACHnC,EAAA,CAAA;AAAA,oBACA,gBAAA6B,EAACO,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,kBAAA,GACzB;AAAA,kBAED,gBAAAP,EAAAQ,GAAA,EAAuB,UAAAxC,GAAS;AAAA,gBAAA,GACnC;AAAA,cAAA;AAAA,YAAA;AAAA,UACF;AAAA,UACCK,KACC,gBAAA2B,EAACS,GAAA,EACC,UAAA,gBAAAT;AAAA,YAACU;AAAA,YAAA;AAAA,cACC,MAAMC;AAAA,cACN,UAAS;AAAA,cACT,gBAAe;AAAA,cACf,SAAS1C;AAAA,cACT,UAAUQ;AAAA,cACV,MAAK;AAAA,YAAA;AAAA,UAAA,GAET;AAAA,UAEDL,KACC,gBAAA4B,EAACY,GAAA,EACC,UAAA,gBAAAZ;AAAA,YAACU;AAAA,YAAA;AAAA,cACC,MAAK;AAAA,cACL,MAAMG;AAAA,cACN,UAAS;AAAA,cACT,gBAAe;AAAA,cACf,SAAS3C;AAAA,cACT,MAAMO;AAAA,YAAA;AAAA,UAAA,GAEV;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF,GAEeqC,KAAAC,EAAKjD,CAAmB;"}
@@ -0,0 +1,53 @@
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { memo as d } from "react";
3
+ import { ILLUSTRATIONS as h } from "../../../../assets/illustrations/illustrations.js";
4
+ import $ from "../../../ui/buttons/button/button.js";
5
+ import f from "../../../ui/image/image.js";
6
+ import i from "../../../ui/layout/flex-view.js";
7
+ import o from "../../../ui/separator/separator.js";
8
+ import t from "../../../ui/text/text.js";
9
+ import u from "../../comps/overlay-loader/overlay-loader.js";
10
+ import p from "../../user-list/user-list.js";
11
+ const g = ({
12
+ email: l,
13
+ onSelectAccount: c,
14
+ userAccounts: s,
15
+ onCreateNewAccount: m,
16
+ isCreatingAccount: n,
17
+ isLoading: a
18
+ }) => /* @__PURE__ */ r(i, { $flex: 1, $alignItems: "center", $justifyContent: "center", $width: "100%", $height: "100%", children: [
19
+ /* @__PURE__ */ e(u, { isLoading: a }),
20
+ /* @__PURE__ */ e(f, { src: h.CIRCLE_CUEMATH_LOGO_WHITE, alt: "Parent Signup", withLoader: !1 }),
21
+ /* @__PURE__ */ e(o, { heightX: 1 }),
22
+ /* @__PURE__ */ r(i, { children: [
23
+ /* @__PURE__ */ r(t, { $renderAs: "ab1", $color: "WHITE", $align: "center", children: [
24
+ "We found multiple profiles linked to",
25
+ " ",
26
+ /* @__PURE__ */ e(t, { $color: "WHITE", $inline: !0, $renderAs: "ab1-bold", children: l })
27
+ ] }),
28
+ /* @__PURE__ */ e(t, { $renderAs: "ab1", $color: "WHITE", $align: "center", children: "Which one would you like to proceed with?" })
29
+ ] }),
30
+ /* @__PURE__ */ e(o, { heightX: 5 }),
31
+ /* @__PURE__ */ e(p, { users: s, onSelect: c }),
32
+ /* @__PURE__ */ e(o, { heightX: 5 }),
33
+ /* @__PURE__ */ r(i, { $alignItems: "center", $justifyContent: "center", children: [
34
+ /* @__PURE__ */ e(t, { $renderAs: "ub2", $color: "WHITE", children: "Don't recognize these accounts?" }),
35
+ /* @__PURE__ */ e(o, { heightX: 1 }),
36
+ /* @__PURE__ */ e(
37
+ $,
38
+ {
39
+ width: 232,
40
+ size: "small",
41
+ label: "Create new account",
42
+ renderAs: "secondary-dark",
43
+ onClick: m,
44
+ busy: n,
45
+ disabled: n
46
+ }
47
+ )
48
+ ] })
49
+ ] }), y = d(g);
50
+ export {
51
+ y as default
52
+ };
53
+ //# sourceMappingURL=claim-user-account.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claim-user-account.js","sources":["../../../../../src/features/auth/signup/claim-user-account/claim-user-account.tsx"],"sourcesContent":["import type { IClaimUserAccountProps } from './claim-user-account-types';\n\nimport { memo } from 'react';\nimport { type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Button from '../../../ui/buttons/button/button';\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 OverlayLoader from '../../comps/overlay-loader/overlay-loader';\nimport UserList from '../../user-list/user-list';\n\nconst ClaimUserAccount: FC<IClaimUserAccountProps> = ({\n email,\n onSelectAccount,\n userAccounts,\n onCreateNewAccount,\n isCreatingAccount,\n isLoading,\n}) => {\n return (\n <FlexView $flex={1} $alignItems=\"center\" $justifyContent=\"center\" $width=\"100%\" $height=\"100%\">\n <OverlayLoader isLoading={isLoading} />\n <Image src={ILLUSTRATIONS.CIRCLE_CUEMATH_LOGO_WHITE} alt=\"Parent Signup\" withLoader={false} />\n <Separator heightX={1} />\n <FlexView>\n <Text $renderAs=\"ab1\" $color=\"WHITE\" $align=\"center\">\n We found multiple profiles linked to{' '}\n <Text $color=\"WHITE\" $inline $renderAs=\"ab1-bold\">\n {email}\n </Text>\n </Text>\n <Text $renderAs=\"ab1\" $color=\"WHITE\" $align=\"center\">\n Which one would you like to proceed with?\n </Text>\n </FlexView>\n <Separator heightX={5} />\n <UserList users={userAccounts} onSelect={onSelectAccount} />\n <Separator heightX={5} />\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <Text $renderAs=\"ub2\" $color=\"WHITE\">\n Don't recognize these accounts?\n </Text>\n <Separator heightX={1} />\n <Button\n width={232}\n size=\"small\"\n label=\"Create new account\"\n renderAs=\"secondary-dark\"\n onClick={onCreateNewAccount}\n busy={isCreatingAccount}\n disabled={isCreatingAccount}\n />\n </FlexView>\n </FlexView>\n );\n};\n\nexport default memo(ClaimUserAccount);\n"],"names":["ClaimUserAccount","email","onSelectAccount","userAccounts","onCreateNewAccount","isCreatingAccount","isLoading","jsxs","FlexView","jsx","OverlayLoader","Image","ILLUSTRATIONS","Separator","Text","UserList","Button","claimUserAccount","memo"],"mappings":";;;;;;;;;;AAcA,MAAMA,IAA+C,CAAC;AAAA,EACpD,OAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,WAAAC;AACF,MAEI,gBAAAC,EAACC,GAAS,EAAA,OAAO,GAAG,aAAY,UAAS,iBAAgB,UAAS,QAAO,QAAO,SAAQ,QACtF,UAAA;AAAA,EAAA,gBAAAC,EAACC,KAAc,WAAAJ,GAAsB;AAAA,EACrC,gBAAAG,EAACE,KAAM,KAAKC,EAAc,2BAA2B,KAAI,iBAAgB,YAAY,IAAO;AAAA,EAC5F,gBAAAH,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,oBACtBL,GACC,EAAA,UAAA;AAAA,IAAA,gBAAAD,EAACO,KAAK,WAAU,OAAM,QAAO,SAAQ,QAAO,UAAS,UAAA;AAAA,MAAA;AAAA,MACd;AAAA,MACrC,gBAAAL,EAACK,KAAK,QAAO,SAAQ,SAAO,IAAC,WAAU,YACpC,UACHb,EAAA,CAAA;AAAA,IAAA,GACF;AAAA,IACA,gBAAAQ,EAACK,KAAK,WAAU,OAAM,QAAO,SAAQ,QAAO,UAAS,UAErD,4CAAA,CAAA;AAAA,EAAA,GACF;AAAA,EACA,gBAAAL,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EACtB,gBAAAJ,EAAAM,GAAA,EAAS,OAAOZ,GAAc,UAAUD,GAAiB;AAAA,EAC1D,gBAAAO,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EACtB,gBAAAN,EAAAC,GAAA,EAAS,aAAY,UAAS,iBAAgB,UAC7C,UAAA;AAAA,IAAA,gBAAAC,EAACK,GAAK,EAAA,WAAU,OAAM,QAAO,SAAQ,UAErC,mCAAA;AAAA,IACA,gBAAAL,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,IACvB,gBAAAJ;AAAA,MAACO;AAAA,MAAA;AAAA,QACC,OAAO;AAAA,QACP,MAAK;AAAA,QACL,OAAM;AAAA,QACN,UAAS;AAAA,QACT,SAASZ;AAAA,QACT,MAAMC;AAAA,QACN,UAAUA;AAAA,MAAA;AAAA,IACZ;AAAA,EAAA,GACF;AACF,EAAA,CAAA,GAIWY,IAAAC,EAAKlB,CAAgB;"}
@@ -0,0 +1,34 @@
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
+ import { memo as n } from "react";
3
+ import i from "../../../../../assets/line-icons/icons/chevron-down.js";
4
+ import d from "../../../../ui/layout/flex-view.js";
5
+ import m from "../../../../ui/text/text.js";
6
+ import { CountryCodeButton as u } from "./country-selector-styled.js";
7
+ const $ = ({
8
+ value: t,
9
+ menuVisible: e
10
+ }) => /* @__PURE__ */ o(
11
+ u,
12
+ {
13
+ $background: "BLACK_5",
14
+ $borderRadius: 4,
15
+ $gutterX: 0.5,
16
+ $gap: 5,
17
+ $alignItems: "center",
18
+ $justifyContent: "space-between",
19
+ $borderColor: e ? "WHITE_T_38" : "BLACK_5",
20
+ $flexDirection: "row",
21
+ $flexGap: 2,
22
+ children: [
23
+ /* @__PURE__ */ o(m, { $renderAs: "ab1", $color: "WHITE", children: [
24
+ "+",
25
+ t
26
+ ] }),
27
+ /* @__PURE__ */ r(d, { $width: 20, children: /* @__PURE__ */ r(i, { width: 20, height: 20, color: "WHITE" }) })
28
+ ]
29
+ }
30
+ ), p = n($);
31
+ export {
32
+ p as default
33
+ };
34
+ //# sourceMappingURL=country-code-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country-code-button.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/country-selector/country-code-button.tsx"],"sourcesContent":["import type { FC } from 'react';\n\nimport { memo } from 'react';\n\nimport ChevronDownIcon from '../../../../../assets/line-icons/icons/chevron-down';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport * as Styled from './country-selector-styled';\n\nconst CountryCodeButton: FC<{ value?: string; menuVisible?: boolean }> = ({\n value,\n menuVisible,\n}) => {\n return (\n <Styled.CountryCodeButton\n $background=\"BLACK_5\"\n $borderRadius={4}\n $gutterX={0.5}\n $gap={5}\n $alignItems=\"center\"\n $justifyContent=\"space-between\"\n $borderColor={menuVisible ? 'WHITE_T_38' : 'BLACK_5'}\n $flexDirection=\"row\"\n $flexGap={2}\n >\n <Text $renderAs=\"ab1\" $color=\"WHITE\">\n +{value}\n </Text>\n <FlexView $width={20}>\n <ChevronDownIcon width={20} height={20} color=\"WHITE\" />\n </FlexView>\n </Styled.CountryCodeButton>\n );\n};\n\nexport default memo(CountryCodeButton);\n"],"names":["CountryCodeButton","value","menuVisible","jsxs","Styled.CountryCodeButton","Text","jsx","FlexView","ChevronDownIcon","CountryCodeButton$1","memo"],"mappings":";;;;;;AASA,MAAMA,IAAmE,CAAC;AAAA,EACxE,OAAAC;AAAA,EACA,aAAAC;AACF,MAEI,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,aAAY;AAAA,IACZ,eAAe;AAAA,IACf,UAAU;AAAA,IACV,MAAM;AAAA,IACN,aAAY;AAAA,IACZ,iBAAgB;AAAA,IAChB,cAAcF,IAAc,eAAe;AAAA,IAC3C,gBAAe;AAAA,IACf,UAAU;AAAA,IAEV,UAAA;AAAA,MAAA,gBAAAC,EAACE,GAAK,EAAA,WAAU,OAAM,QAAO,SAAQ,UAAA;AAAA,QAAA;AAAA,QACjCJ;AAAA,MAAA,GACJ;AAAA,MACC,gBAAAK,EAAAC,GAAA,EAAS,QAAQ,IAChB,UAAC,gBAAAD,EAAAE,GAAA,EAAgB,OAAO,IAAI,QAAQ,IAAI,OAAM,QAAQ,CAAA,GACxD;AAAA,IAAA;AAAA,EAAA;AAAA,GAKSC,IAAAC,EAAKV,CAAiB;"}
@@ -0,0 +1,98 @@
1
+ import { jsxs as h, jsx as a } from "react/jsx-runtime";
2
+ import { memo as k, useState as I, useRef as p, useEffect as $, useCallback as A } from "react";
3
+ import b from "../../../../ui/separator/separator.js";
4
+ import T from "../../../../ui/text/text.js";
5
+ import { COUNTRY_CODE_MAP as i } from "../../signup-constants.js";
6
+ import { MenuWrapper as y, MenuItem as X, FlagIcon as D, Instructions as M } from "./country-selector-styled.js";
7
+ const R = ({ selectedCountry: g, onChange: u, menuVisible: w }) => {
8
+ const [s, d] = I(""), [o, l] = I(-1), c = p(null), f = p(null), E = p([]);
9
+ $(() => {
10
+ var e;
11
+ o >= 0 && ((e = E.current[o]) == null || e.scrollIntoView({
12
+ behavior: "smooth",
13
+ block: "nearest"
14
+ }));
15
+ }, [o]), $(() => {
16
+ if (s) {
17
+ const e = i.findIndex(
18
+ (t) => t.value.toLowerCase().includes(s.toLowerCase()) || t.code.startsWith(s)
19
+ );
20
+ l(e), c.current && clearTimeout(c.current), c.current = setTimeout(() => {
21
+ d("");
22
+ }, 1e3);
23
+ }
24
+ return () => {
25
+ c.current && clearTimeout(c.current);
26
+ };
27
+ }, [s]);
28
+ const m = A(
29
+ (e) => {
30
+ var n;
31
+ const { key: t } = e;
32
+ if (e.preventDefault(), e.stopPropagation(), t.length === 1 && /[a-zA-Z0-9\s]/.test(t)) {
33
+ d((r) => r + t.toLowerCase());
34
+ return;
35
+ }
36
+ if (t === "ArrowDown")
37
+ l((r) => r < i.length - 1 ? r + 1 : 0);
38
+ else if (t === "ArrowUp")
39
+ l((r) => r > 0 ? r - 1 : i.length - 1);
40
+ else if (t === "Enter" && o >= 0) {
41
+ const r = i[o];
42
+ r && u({ code: r.code, id: r.id }), (n = f.current) == null || n.click();
43
+ } else t === "Escape" && (d(""), l(-1));
44
+ },
45
+ [o, u]
46
+ );
47
+ return $(() => {
48
+ const e = f.current;
49
+ if (!(!e || !w))
50
+ return e.focus(), e.addEventListener("keydown", m), () => {
51
+ e.removeEventListener("keydown", m);
52
+ };
53
+ }, [w, m, g.id]), /* @__PURE__ */ h(
54
+ y,
55
+ {
56
+ ref: f,
57
+ tabIndex: 0,
58
+ $widthX: 10,
59
+ $gapX: 0.5,
60
+ $background: "BLACK_2",
61
+ $borderColor: "BLACK_5",
62
+ children: [
63
+ i.map((e, t) => {
64
+ const { id: n, value: r, icon: x, code: C } = e;
65
+ return /* @__PURE__ */ h(
66
+ X,
67
+ {
68
+ ref: (L) => E.current[t] = L,
69
+ "data-country-id": n,
70
+ onClick: () => u({ code: C, id: n }),
71
+ $gutterX: 0.5,
72
+ $gapX: 0.75,
73
+ $width: "100%",
74
+ $flexDirection: "row",
75
+ $alignItems: "center",
76
+ $flexGap: 8,
77
+ $isSelected: g.id === n,
78
+ $isHighlighted: o === t,
79
+ children: [
80
+ /* @__PURE__ */ a(D, { src: x }),
81
+ /* @__PURE__ */ a(T, { $renderAs: "ab3", $color: "WHITE", children: r })
82
+ ]
83
+ },
84
+ n
85
+ );
86
+ }),
87
+ /* @__PURE__ */ h(M, { $gutterX: 0.5, children: [
88
+ /* @__PURE__ */ a(b, { heightX: 0.5 }),
89
+ /* @__PURE__ */ a(T, { $renderAs: "ab3", $color: "WHITE", children: "Type to search • ↑↓ to navigate • Enter to select • Esc to clear" })
90
+ ] })
91
+ ]
92
+ }
93
+ );
94
+ }, O = k(R);
95
+ export {
96
+ O as default
97
+ };
98
+ //# sourceMappingURL=country-list-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country-list-menu.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/country-selector/country-list-menu.tsx"],"sourcesContent":["import type { ICountryListMenuProps } from './country-selector-types';\nimport type { FC } from 'react';\n\nimport { useState, useEffect, useRef, useCallback, memo } from 'react';\n\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport { COUNTRY_CODE_MAP } from '../../signup-constants';\nimport * as Styled from './country-selector-styled';\n\nconst CountryListMenu: FC<ICountryListMenuProps> = ({ selectedCountry, onChange, menuVisible }) => {\n const [searchTerm, setSearchTerm] = useState('');\n const [highlightedIndex, setHighlightedIndex] = useState(-1);\n const searchTimeoutRef = useRef<NodeJS.Timeout | null>(null);\n const menuRef = useRef<HTMLDivElement>(null);\n const itemRefs = useRef<(HTMLDivElement | null)[]>([]);\n\n useEffect(() => {\n if (highlightedIndex >= 0) {\n itemRefs.current[highlightedIndex]?.scrollIntoView({\n behavior: 'smooth',\n block: 'nearest',\n });\n }\n }, [highlightedIndex]);\n\n useEffect(() => {\n if (searchTerm) {\n const index = COUNTRY_CODE_MAP.findIndex(\n c =>\n c.value.toLowerCase().includes(searchTerm.toLowerCase()) || c.code.startsWith(searchTerm),\n );\n\n setHighlightedIndex(index);\n if (searchTimeoutRef.current) clearTimeout(searchTimeoutRef.current);\n searchTimeoutRef.current = setTimeout(() => {\n setSearchTerm('');\n }, 1000);\n }\n\n return () => {\n if (searchTimeoutRef.current) clearTimeout(searchTimeoutRef.current);\n };\n }, [searchTerm]);\n\n const handleKeyDown = useCallback(\n (event: globalThis.KeyboardEvent) => {\n const { key } = event;\n\n event.preventDefault();\n event.stopPropagation();\n if (key.length === 1 && /[a-zA-Z0-9\\s]/.test(key)) {\n setSearchTerm(prev => prev + key.toLowerCase());\n\n return;\n }\n\n if (key === 'ArrowDown') {\n setHighlightedIndex(prev => (prev < COUNTRY_CODE_MAP.length - 1 ? prev + 1 : 0));\n } else if (key === 'ArrowUp') {\n setHighlightedIndex(prev => (prev > 0 ? prev - 1 : COUNTRY_CODE_MAP.length - 1));\n } else if (key === 'Enter' && highlightedIndex >= 0) {\n const selectedOption = COUNTRY_CODE_MAP[highlightedIndex];\n\n selectedOption && onChange({ code: selectedOption.code, id: selectedOption.id });\n menuRef.current?.click();\n } else if (key === 'Escape') {\n setSearchTerm('');\n setHighlightedIndex(-1);\n }\n },\n [highlightedIndex, onChange],\n );\n\n useEffect(() => {\n const menuElement = menuRef.current;\n\n if (!menuElement || !menuVisible) return;\n\n menuElement.focus();\n menuElement.addEventListener('keydown', handleKeyDown);\n\n return () => {\n menuElement.removeEventListener('keydown', handleKeyDown);\n };\n }, [menuVisible, handleKeyDown, selectedCountry.id]);\n\n return (\n <Styled.MenuWrapper\n ref={menuRef}\n tabIndex={0}\n $widthX={10}\n $gapX={0.5}\n $background=\"BLACK_2\"\n $borderColor=\"BLACK_5\"\n >\n {COUNTRY_CODE_MAP.map((option, index) => {\n const { id, value, icon, code } = option;\n\n return (\n <Styled.MenuItem\n key={id}\n ref={el => (itemRefs.current[index] = el)}\n data-country-id={id}\n onClick={() => onChange({ code, id })}\n $gutterX={0.5}\n $gapX={0.75}\n $width=\"100%\"\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $flexGap={8}\n $isSelected={selectedCountry.id === id}\n $isHighlighted={highlightedIndex === index}\n >\n <Styled.FlagIcon src={icon} />\n <Text $renderAs=\"ab3\" $color=\"WHITE\">\n {value}\n </Text>\n </Styled.MenuItem>\n );\n })}\n\n <Styled.Instructions $gutterX={0.5}>\n <Separator heightX={0.5} />\n <Text $renderAs=\"ab3\" $color=\"WHITE\">\n Type to search • ↑↓ to navigate • Enter to select • Esc to clear\n </Text>\n </Styled.Instructions>\n </Styled.MenuWrapper>\n );\n};\n\nexport default memo(CountryListMenu);\n"],"names":["CountryListMenu","selectedCountry","onChange","menuVisible","searchTerm","setSearchTerm","useState","highlightedIndex","setHighlightedIndex","searchTimeoutRef","useRef","menuRef","itemRefs","useEffect","_a","index","COUNTRY_CODE_MAP","c","handleKeyDown","useCallback","event","key","prev","selectedOption","menuElement","jsxs","Styled.MenuWrapper","option","id","value","icon","code","Styled.MenuItem","el","jsx","Styled.FlagIcon","Text","Styled.Instructions","Separator","CountryListMenu$1","memo"],"mappings":"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"}
@@ -0,0 +1,57 @@
1
+ import r from "styled-components";
2
+ import t from "../../../../ui/layout/flex-view.js";
3
+ const l = r(t)`
4
+ border-radius: 2px;
5
+ max-height: 220px;
6
+ overflow-y: scroll;
7
+ width: 271px;
8
+ max-height: 300px;
9
+ overflow-y: auto;
10
+
11
+ &:focus {
12
+ outline: none;
13
+ }
14
+ &::-webkit-scrollbar {
15
+ width: 6px;
16
+ }
17
+
18
+ &::-webkit-scrollbar-track {
19
+ background: ${({ theme: o }) => o.colors.BLACK_4};
20
+ }
21
+
22
+ &::-webkit-scrollbar-thumb {
23
+ background: ${({ theme: o }) => o.colors.BLACK_2};
24
+ border-radius: 3px;
25
+ }
26
+ `, p = r(t)(({
27
+ theme: o,
28
+ $isSelected: n,
29
+ $isHighlighted: c
30
+ }) => {
31
+ const s = c ? o.colors.BLACK_4 : "transparent";
32
+ return `
33
+ cursor: pointer;
34
+ background: ${n ? o.colors.BLACK_5 : s};
35
+ &:hover {
36
+ background: ${o.colors.BLACK_5};
37
+ }
38
+ `;
39
+ }), a = r.img`
40
+ width: 20px;
41
+ height: 20px;
42
+ `, d = r(t)`
43
+ cursor: pointer;
44
+ padding-right: 4px;
45
+ max-width: 100px;
46
+ min-width: 82px;
47
+ `, u = r(t)`
48
+ border-top: 1px solid ${({ theme: o }) => o.colors.BLACK_5};
49
+ `;
50
+ export {
51
+ d as CountryCodeButton,
52
+ a as FlagIcon,
53
+ u as Instructions,
54
+ p as MenuItem,
55
+ l as MenuWrapper
56
+ };
57
+ //# sourceMappingURL=country-selector-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country-selector-styled.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/country-selector/country-selector-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../../ui/layout/flex-view';\n\nexport const MenuWrapper = styled(FlexView)`\n border-radius: 2px;\n max-height: 220px;\n overflow-y: scroll;\n width: 271px;\n max-height: 300px;\n overflow-y: auto;\n\n &:focus {\n outline: none;\n }\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: ${({ theme }) => theme.colors.BLACK_4};\n }\n\n &::-webkit-scrollbar-thumb {\n background: ${({ theme }) => theme.colors.BLACK_2};\n border-radius: 3px;\n }\n`;\n\nexport const MenuItem = styled(FlexView)<{ $isSelected: boolean; $isHighlighted?: boolean }>(({\n theme,\n $isSelected,\n $isHighlighted,\n}) => {\n const bgColor = $isHighlighted ? theme.colors.BLACK_4 : 'transparent';\n\n return `\n cursor: pointer;\n background: ${$isSelected ? theme.colors.BLACK_5 : bgColor};\n &:hover {\n background: ${theme.colors.BLACK_5};\n }\n `;\n});\n\nexport const FlagIcon = styled.img`\n width: 20px;\n height: 20px;\n`;\n\nexport const CountryCodeButton = styled(FlexView)`\n cursor: pointer;\n padding-right: 4px;\n max-width: 100px;\n min-width: 82px;\n`;\n\nexport const Instructions = styled(FlexView)`\n border-top: 1px solid ${({ theme }) => theme.colors.BLACK_5};\n`;\n"],"names":["MenuWrapper","styled","FlexView","theme","MenuItem","$isSelected","$isHighlighted","bgColor","FlagIcon","CountryCodeButton","Instructions"],"mappings":";;AAIa,MAAAA,IAAcC,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAgBxB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA,kBAInC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,GAKxCC,IAAWH,EAAOC,CAAQ,EAAsD,CAAC;AAAA,EAC5F,OAAAC;AAAA,EACA,aAAAE;AAAA,EACA,gBAAAC;AACF,MAAM;AACJ,QAAMC,IAAUD,IAAiBH,EAAM,OAAO,UAAU;AAEjD,SAAA;AAAA;AAAA,oBAEWE,IAAcF,EAAM,OAAO,UAAUI,CAAO;AAAA;AAAA,wBAExCJ,EAAM,OAAO,OAAO;AAAA;AAAA;AAG5C,CAAC,GAEYK,IAAWP,EAAO;AAAA;AAAA;AAAA,GAKlBQ,IAAoBR,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,GAOnCQ,IAAeT,EAAOC,CAAQ;AAAA,0BACjB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;"}
@@ -0,0 +1,26 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { memo as s, useState as u, useCallback as l } from "react";
3
+ import f from "../../../../ui/context-menu/context-menu.js";
4
+ import c from "../../../../ui/layout/flex-view.js";
5
+ import C from "./country-code-button.js";
6
+ import d from "./country-list-menu.js";
7
+ const p = ({ value: e, onChange: o }) => {
8
+ const [n, r] = u(!1), i = l((m) => {
9
+ r(m);
10
+ }, []);
11
+ return !e || !o ? null : /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
12
+ f,
13
+ {
14
+ startLeft: !0,
15
+ targetElement: /* @__PURE__ */ t(C, { value: e == null ? void 0 : e.code, menuVisible: n }),
16
+ menuElement: /* @__PURE__ */ t(d, { onChange: o, selectedCountry: e, menuVisible: n }),
17
+ menuOffset: 5,
18
+ menuZIndex: 1,
19
+ onMenuVisibilityChange: i
20
+ }
21
+ ) });
22
+ }, h = s(p);
23
+ export {
24
+ h as default
25
+ };
26
+ //# sourceMappingURL=country-selector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country-selector.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/country-selector/country-selector.tsx"],"sourcesContent":["import type { IPhoneCountrySelectorProps } from './country-selector-types';\n\nimport { useCallback, useState, type FC, memo } from 'react';\n\nimport ContextMenu from '../../../../ui/context-menu/context-menu';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport CountryCodeButton from './country-code-button';\nimport CountryListMenu from './country-list-menu';\n\nconst PhoneCountrySelector: FC<IPhoneCountrySelectorProps> = ({ value, onChange }) => {\n const [menuVisible, setMenuVisible] = useState(false);\n\n const handleMenuVisibility = useCallback((visible: boolean) => {\n setMenuVisible(visible);\n }, []);\n\n if (!value || !onChange) return null;\n\n return (\n <FlexView>\n <ContextMenu\n startLeft\n targetElement={<CountryCodeButton value={value?.code} menuVisible={menuVisible} />}\n menuElement={\n <CountryListMenu onChange={onChange} selectedCountry={value} menuVisible={menuVisible} />\n }\n menuOffset={5}\n menuZIndex={1}\n onMenuVisibilityChange={handleMenuVisibility}\n />\n </FlexView>\n );\n};\n\nexport default memo(PhoneCountrySelector);\n"],"names":["PhoneCountrySelector","value","onChange","menuVisible","setMenuVisible","useState","handleMenuVisibility","useCallback","visible","FlexView","jsx","ContextMenu","CountryCodeButton","CountryListMenu","PhoneCountrySelector$1","memo"],"mappings":";;;;;;AASA,MAAMA,IAAuD,CAAC,EAAE,OAAAC,GAAO,UAAAC,QAAe;AACpF,QAAM,CAACC,GAAaC,CAAc,IAAIC,EAAS,EAAK,GAE9CC,IAAuBC,EAAY,CAACC,MAAqB;AAC7D,IAAAJ,EAAeI,CAAO;AAAA,EACxB,GAAG,CAAE,CAAA;AAEL,SAAI,CAACP,KAAS,CAACC,IAAiB,yBAG7BO,GACC,EAAA,UAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAS;AAAA,MACT,eAAgB,gBAAAD,EAAAE,GAAA,EAAkB,OAAOX,KAAA,gBAAAA,EAAO,MAAM,aAAAE,GAA0B;AAAA,MAChF,aACG,gBAAAO,EAAAG,GAAA,EAAgB,UAAAX,GAAoB,iBAAiBD,GAAO,aAAAE,GAA0B;AAAA,MAEzF,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,wBAAwBG;AAAA,IAAA;AAAA,EAE5B,EAAA,CAAA;AAEJ,GAEeQ,IAAAC,EAAKf,CAAoB;"}
@@ -0,0 +1,30 @@
1
+ import o from "styled-components";
2
+ const e = o.input`
3
+ width: 100%;
4
+ max-width: 330px;
5
+ padding: 0;
6
+ line-height: 40px;
7
+ text-transform: ${({ textTransform: t }) => t || "none"};
8
+ border: none;
9
+ outline: none;
10
+ background-color: transparent;
11
+ font-size: ${({ fontSize: t }) => t}px;
12
+ text-align: ${({ align: t }) => t};
13
+ caret-color: ${({ theme: t }) => t.colors.WHITE};
14
+ color: ${({ theme: t }) => t.colors.WHITE};
15
+ font-family: 'Athletics-Light';
16
+ color: ${({ color: t }) => t};
17
+ transition: all 0.3s ease;
18
+ &::placeholder {
19
+ font-family: 'Athletics-Light';
20
+ font-size: 32px;
21
+ }
22
+ &::-webkit-outer-spin-button,
23
+ &::-webkit-inner-spin-button {
24
+ -webkit-appearance: none;
25
+ }
26
+ `;
27
+ export {
28
+ e as CustomInput
29
+ };
30
+ //# sourceMappingURL=custom-input-field-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-input-field-styled.js","sources":["../../../../../src/features/auth/signup/custom-input-field/custom-input-field-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const CustomInput = styled.input<{\n color: string;\n align?: string;\n textTransform?: string;\n fontSize?: number;\n}>`\n width: 100%;\n max-width: 330px;\n padding: 0;\n line-height: 40px;\n text-transform: ${({ textTransform }) => textTransform || 'none'};\n border: none;\n outline: none;\n background-color: transparent;\n font-size: ${({ fontSize }) => fontSize}px;\n text-align: ${({ align }) => align};\n caret-color: ${({ theme }) => theme.colors.WHITE};\n color: ${({ theme }) => theme.colors.WHITE};\n font-family: 'Athletics-Light';\n color: ${({ color }) => color};\n transition: all 0.3s ease;\n &::placeholder {\n font-family: 'Athletics-Light';\n font-size: 32px;\n }\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n`;\n"],"names":["CustomInput","styled","textTransform","fontSize","align","theme","color"],"mappings":";AAEO,MAAMA,IAAcC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,oBAUd,CAAC,EAAE,eAAAC,QAAoBA,KAAiB,MAAM;AAAA;AAAA;AAAA;AAAA,eAInD,CAAC,EAAE,UAAAC,EAAS,MAAMA,CAAQ;AAAA,gBACzB,CAAC,EAAE,OAAAC,EAAM,MAAMA,CAAK;AAAA,iBACnB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,WACvC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA,WAEjC,CAAC,EAAE,OAAAC,EAAM,MAAMA,CAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -0,0 +1,100 @@
1
+ import { jsx as c, jsxs as y } from "react/jsx-runtime";
2
+ import { memo as A, useState as g, useRef as C, useCallback as a, useMemo as I, useEffect as T } from "react";
3
+ import { useTheme as H } from "styled-components";
4
+ import L from "../../../ui/layout/flex-view.js";
5
+ import M from "./country-selector/country-selector.js";
6
+ import { CustomInput as N } from "./custom-input-field-styled.js";
7
+ import X from "./input-wrapper/input-wrapper.js";
8
+ import _ from "./password-toggle/password-toggle.js";
9
+ const q = ({
10
+ value: o,
11
+ onChange: m,
12
+ error: u,
13
+ helperText: W,
14
+ onEnter: n,
15
+ isLoading: b,
16
+ isValid: p,
17
+ type: e = "text",
18
+ placeholder: F,
19
+ actionElement: R,
20
+ maxLength: $,
21
+ width: D,
22
+ textTransform: P,
23
+ textAlign: S = "center",
24
+ selectedCountry: V,
25
+ onCountryChange: j,
26
+ autoSize: d = !1
27
+ }) => {
28
+ const r = H(), [l, k] = g(!1), [z, h] = g(32), f = C(null), s = C(null), E = a(
29
+ (t) => {
30
+ t.key === "Enter" && (n == null || n());
31
+ },
32
+ [n]
33
+ ), G = I(() => e === "password" ? l ? "text" : "password" : e === "phone" ? "number" : e, [e, l]), K = I(() => u ? r.colors.RED : p ? r.colors.GREEN_4 : r.colors.WHITE, [u, p, r.colors]), x = a((t, w) => {
34
+ s.current || (s.current = document.createElement("canvas"));
35
+ const i = s.current.getContext("2d");
36
+ return i ? (i.font = w, i.measureText(t).width) : 0;
37
+ }, []);
38
+ T(() => {
39
+ if (!f.current || !o || !d)
40
+ return;
41
+ const t = f.current.clientWidth;
42
+ x(o, "32px 'Athletics-Light'") > t ? h(24) : h(32);
43
+ }, [o, x, d]), T(() => () => {
44
+ s.current = null;
45
+ }, []);
46
+ const v = a(
47
+ (t) => m(t.target.value),
48
+ [m]
49
+ );
50
+ return /* @__PURE__ */ c(
51
+ X,
52
+ {
53
+ helperText: u || W,
54
+ isLoading: b,
55
+ actionElement: R,
56
+ children: /* @__PURE__ */ y(
57
+ L,
58
+ {
59
+ $width: D ?? "100%",
60
+ $flex: 1,
61
+ $alignItems: "center",
62
+ $flexDirection: "row",
63
+ $flexGapX: 0.5,
64
+ children: [
65
+ e === "phone" && /* @__PURE__ */ c(M, { onChange: j, value: V }),
66
+ /* @__PURE__ */ c(
67
+ N,
68
+ {
69
+ ref: f,
70
+ value: o,
71
+ onChange: v,
72
+ autoFocus: !0,
73
+ placeholder: F,
74
+ color: K,
75
+ autoCapitalize: "none",
76
+ textTransform: P,
77
+ type: G,
78
+ onKeyDown: E,
79
+ maxLength: $,
80
+ align: S,
81
+ fontSize: z
82
+ }
83
+ ),
84
+ e === "password" && /* @__PURE__ */ c(
85
+ _,
86
+ {
87
+ isVisible: l,
88
+ onToggle: () => k((t) => !t)
89
+ }
90
+ )
91
+ ]
92
+ }
93
+ )
94
+ }
95
+ );
96
+ }, et = A(q);
97
+ export {
98
+ et as default
99
+ };
100
+ //# sourceMappingURL=custom-input-field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-input-field.js","sources":["../../../../../src/features/auth/signup/custom-input-field/custom-input-field.tsx"],"sourcesContent":["import type { ICustomInputFieldProps } from './custom-input-field-types';\n\nimport {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n memo,\n type FC,\n type KeyboardEvent,\n type ChangeEvent,\n} from 'react';\nimport { useTheme } from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport PhoneCountrySelector from './country-selector/country-selector';\nimport * as Styled from './custom-input-field-styled';\nimport InputWrapper from './input-wrapper/input-wrapper';\nimport PasswordToggleIcon from './password-toggle/password-toggle';\n\nconst CustomInputField: FC<ICustomInputFieldProps> = ({\n value,\n onChange,\n error,\n helperText,\n onEnter,\n isLoading,\n isValid,\n type = 'text',\n placeholder,\n actionElement,\n maxLength,\n width,\n textTransform,\n textAlign = 'center',\n selectedCountry,\n onCountryChange,\n autoSize = false,\n}) => {\n const theme = useTheme();\n const [isPasswordVisible, setIsPasswordVisible] = useState(false);\n const [fontSize, setFontSize] = useState(32);\n const inputRef = useRef<HTMLInputElement>(null);\n const canvasRef = useRef<HTMLCanvasElement | null>(null);\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === 'Enter') {\n onEnter?.();\n }\n },\n [onEnter],\n );\n\n const inputType = useMemo(() => {\n if (type === 'password') return isPasswordVisible ? 'text' : 'password';\n\n if (type === 'phone') return 'number';\n\n return type;\n }, [type, isPasswordVisible]);\n\n const inputColor = useMemo(() => {\n if (error) return theme.colors.RED;\n\n if (isValid) return theme.colors.GREEN_4;\n\n return theme.colors.WHITE;\n }, [error, isValid, theme.colors]);\n\n const measureTextWidth = useCallback((text: string, font: string): number => {\n if (!canvasRef.current) {\n canvasRef.current = document.createElement('canvas');\n }\n\n const context = canvasRef.current.getContext('2d');\n\n if (!context) return 0;\n\n context.font = font;\n\n return context.measureText(text).width;\n }, []);\n\n useEffect(() => {\n if (!inputRef.current || !value || !autoSize) {\n return;\n }\n\n const inputWidth = inputRef.current.clientWidth;\n\n const font32 = \"32px 'Athletics-Light'\";\n\n const textWidth32 = measureTextWidth(value, font32);\n\n if (textWidth32 > inputWidth) {\n setFontSize(24);\n } else {\n setFontSize(32);\n }\n }, [value, measureTextWidth, autoSize]);\n\n useEffect(() => {\n return () => {\n canvasRef.current = null;\n };\n }, []);\n\n const handleChange = useCallback(\n (event: ChangeEvent<HTMLInputElement>) => onChange(event.target.value),\n [onChange],\n );\n\n return (\n <InputWrapper\n helperText={error || helperText}\n isLoading={isLoading}\n actionElement={actionElement}\n >\n <FlexView\n $width={width ?? '100%'}\n $flex={1}\n $alignItems=\"center\"\n $flexDirection=\"row\"\n $flexGapX={0.5}\n >\n {type === 'phone' && (\n <PhoneCountrySelector onChange={onCountryChange} value={selectedCountry} />\n )}\n <Styled.CustomInput\n ref={inputRef}\n value={value}\n onChange={handleChange}\n autoFocus\n placeholder={placeholder}\n color={inputColor}\n autoCapitalize=\"none\"\n textTransform={textTransform}\n type={inputType}\n onKeyDown={handleKeyDown}\n maxLength={maxLength}\n align={textAlign}\n fontSize={fontSize}\n />\n {type === 'password' && (\n <PasswordToggleIcon\n isVisible={isPasswordVisible}\n onToggle={() => setIsPasswordVisible(prev => !prev)}\n />\n )}\n </FlexView>\n </InputWrapper>\n );\n};\n\nexport default memo(CustomInputField);\n"],"names":["CustomInputField","value","onChange","error","helperText","onEnter","isLoading","isValid","type","placeholder","actionElement","maxLength","width","textTransform","textAlign","selectedCountry","onCountryChange","autoSize","theme","useTheme","isPasswordVisible","setIsPasswordVisible","useState","fontSize","setFontSize","inputRef","useRef","canvasRef","handleKeyDown","useCallback","event","inputType","useMemo","inputColor","measureTextWidth","text","font","context","useEffect","inputWidth","handleChange","jsx","InputWrapper","jsxs","FlexView","PhoneCountrySelector","Styled.CustomInput","PasswordToggleIcon","prev","customInputField","memo"],"mappings":"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"}