@cuemath/leap 3.1.2-beta-0.5 → 3.1.2-j1

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 (157) hide show
  1. package/dist/assets/illustrations/illustrations.js +1 -2
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/line-icons/icons/check.js +3 -3
  4. package/dist/assets/line-icons/icons/check.js.map +1 -1
  5. package/dist/features/auth/account-selector/account-selector-styled.js +9 -0
  6. package/dist/features/auth/account-selector/account-selector-styled.js.map +1 -0
  7. package/dist/features/auth/account-selector/account-selector.js +56 -36
  8. package/dist/features/auth/account-selector/account-selector.js.map +1 -1
  9. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styled.js +21 -0
  10. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styled.js.map +1 -0
  11. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +8 -9
  12. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
  13. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +1 -1
  14. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +1 -1
  15. package/dist/features/auth/forgot-password/forgot-password-styled.js +15 -3
  16. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
  17. package/dist/features/auth/forgot-password/otp-form/otp-form.js +29 -29
  18. package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +1 -1
  19. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +14 -18
  20. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +1 -1
  21. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +23 -24
  22. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +1 -1
  23. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +4 -2
  24. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
  25. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js +85 -75
  26. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js.map +1 -1
  27. package/dist/features/auth/login/login-styled.js +13 -0
  28. package/dist/features/auth/login/login-styled.js.map +1 -0
  29. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +24 -22
  30. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +1 -1
  31. package/dist/features/auth/login/social-login-methods/social-login-methods-styled.js +9 -0
  32. package/dist/features/auth/login/social-login-methods/social-login-methods-styled.js.map +1 -0
  33. package/dist/features/auth/login/social-login-methods/social-login-methods.js +43 -34
  34. package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +1 -1
  35. package/dist/features/auth/login/username-password-form/username-password-form.js +22 -21
  36. package/dist/features/auth/login/username-password-form/username-password-form.js.map +1 -1
  37. package/dist/features/auth/user-list/user-item/user-item.js +25 -24
  38. package/dist/features/auth/user-list/user-item/user-item.js.map +1 -1
  39. package/dist/features/auth/user-list/user-list.js +60 -51
  40. package/dist/features/auth/user-list/user-list.js.map +1 -1
  41. package/dist/features/cue-canvas/cue-canvas-context.js +5 -8
  42. package/dist/features/cue-canvas/cue-canvas-context.js.map +1 -1
  43. package/dist/features/cue-canvas/cue-canvas-core.js +75 -80
  44. package/dist/features/cue-canvas/cue-canvas-core.js.map +1 -1
  45. package/dist/features/cue-canvas/cue-canvas-helpers.js +25 -31
  46. package/dist/features/cue-canvas/cue-canvas-helpers.js.map +1 -1
  47. package/dist/features/cue-canvas/cue-canvas-provider.js +12 -14
  48. package/dist/features/cue-canvas/cue-canvas-provider.js.map +1 -1
  49. package/dist/features/cue-canvas/cue-canvas.js +65 -79
  50. package/dist/features/cue-canvas/cue-canvas.js.map +1 -1
  51. package/dist/features/cue-canvas/cue-cavas-styled.js +42 -45
  52. package/dist/features/cue-canvas/cue-cavas-styled.js.map +1 -1
  53. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js +54 -61
  54. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js.map +1 -1
  55. package/dist/features/cue-canvas/hooks/use-cue-canvas-actions.js +14 -18
  56. package/dist/features/cue-canvas/hooks/use-cue-canvas-actions.js.map +1 -1
  57. package/dist/features/cue-canvas/toolbar/grid-menu.js +13 -13
  58. package/dist/features/cue-canvas/toolbar/grid-menu.js.map +1 -1
  59. package/dist/features/cue-canvas/toolbar/tool.js +20 -22
  60. package/dist/features/cue-canvas/toolbar/tool.js.map +1 -1
  61. package/dist/features/homework/styles.js +4 -5
  62. package/dist/features/homework/styles.js.map +1 -1
  63. package/dist/features/hooks/use-device-type.js +25 -0
  64. package/dist/features/hooks/use-device-type.js.map +1 -0
  65. package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js +36 -38
  66. package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js.map +1 -1
  67. package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js +22 -24
  68. package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js.map +1 -1
  69. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js +22 -23
  70. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js.map +1 -1
  71. package/dist/features/milestone/create/comps/chapters-selection-step/utils.js +47 -49
  72. package/dist/features/milestone/create/comps/chapters-selection-step/utils.js.map +1 -1
  73. package/dist/features/milestone/create/comps/class-details-step/class-details-step.js +87 -94
  74. package/dist/features/milestone/create/comps/class-details-step/class-details-step.js.map +1 -1
  75. package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js +12 -13
  76. package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js.map +1 -1
  77. package/dist/features/milestone/create/comps/test-type-step/test-type-step.js +21 -23
  78. package/dist/features/milestone/create/comps/test-type-step/test-type-step.js.map +1 -1
  79. package/dist/features/milestone/create/milestone-create-helpers.js +162 -165
  80. package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
  81. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +124 -103
  82. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  83. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js +14 -15
  84. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js.map +1 -1
  85. package/dist/features/trial-session/comps/pricing/pricing.js +35 -36
  86. package/dist/features/trial-session/comps/pricing/pricing.js.map +1 -1
  87. package/dist/features/ui/buttons/button/button-styled.js +29 -29
  88. package/dist/features/ui/buttons/button/button-styled.js.map +1 -1
  89. package/dist/features/ui/stepper/stepper.js +7 -7
  90. package/dist/features/utils/media.js +16 -0
  91. package/dist/features/utils/media.js.map +1 -0
  92. package/dist/features/worksheet/worksheet/hooks/use-s3-helper.js +19 -22
  93. package/dist/features/worksheet/worksheet/hooks/use-s3-helper.js.map +1 -1
  94. package/dist/index.d.ts +22 -78
  95. package/dist/index.js +265 -268
  96. package/dist/index.js.map +1 -1
  97. package/dist/static/cuemath-app-qr-code.7205ee79.svg +1 -0
  98. package/package.json +1 -1
  99. package/dist/assets/line-icons/icons/puzzle-icon.js +0 -51
  100. package/dist/assets/line-icons/icons/puzzle-icon.js.map +0 -1
  101. package/dist/assets/line-icons/icons/share.js +0 -48
  102. package/dist/assets/line-icons/icons/share.js.map +0 -1
  103. package/dist/assets/line-icons/icons/tile.js +0 -54
  104. package/dist/assets/line-icons/icons/tile.js.map +0 -1
  105. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js +0 -12
  106. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +0 -1
  107. package/dist/features/cue-canvas/bottombar/homework-controls.js +0 -73
  108. package/dist/features/cue-canvas/bottombar/homework-controls.js.map +0 -1
  109. package/dist/features/cue-canvas/hooks/use-upload-helper.js +0 -23
  110. package/dist/features/cue-canvas/hooks/use-upload-helper.js.map +0 -1
  111. package/dist/features/cue-canvas/sidebar/homework/helper.js +0 -20
  112. package/dist/features/cue-canvas/sidebar/homework/helper.js.map +0 -1
  113. package/dist/features/cue-canvas/sidebar/homework/homework-menu.js +0 -33
  114. package/dist/features/cue-canvas/sidebar/homework/homework-menu.js.map +0 -1
  115. package/dist/features/cue-canvas/sidebar/homework/homework-request.js +0 -68
  116. package/dist/features/cue-canvas/sidebar/homework/homework-request.js.map +0 -1
  117. package/dist/features/cue-canvas/sidebar/homework/homework-styled.js +0 -25
  118. package/dist/features/cue-canvas/sidebar/homework/homework-styled.js.map +0 -1
  119. package/dist/features/cue-canvas/sidebar/homework/homework.js +0 -39
  120. package/dist/features/cue-canvas/sidebar/homework/homework.js.map +0 -1
  121. package/dist/features/cue-canvas/sidebar/puzzles/api/get-puzzles.js +0 -13
  122. package/dist/features/cue-canvas/sidebar/puzzles/api/get-puzzles.js.map +0 -1
  123. package/dist/features/cue-canvas/sidebar/puzzles/filter-selection-menu.js +0 -60
  124. package/dist/features/cue-canvas/sidebar/puzzles/filter-selection-menu.js.map +0 -1
  125. package/dist/features/cue-canvas/sidebar/puzzles/filters-section.js +0 -44
  126. package/dist/features/cue-canvas/sidebar/puzzles/filters-section.js.map +0 -1
  127. package/dist/features/cue-canvas/sidebar/puzzles/filters.js +0 -107
  128. package/dist/features/cue-canvas/sidebar/puzzles/filters.js.map +0 -1
  129. package/dist/features/cue-canvas/sidebar/puzzles/hooks/use-fetch-cue-canvas-activity.js +0 -42
  130. package/dist/features/cue-canvas/sidebar/puzzles/hooks/use-fetch-cue-canvas-activity.js.map +0 -1
  131. package/dist/features/cue-canvas/sidebar/puzzles/launch-puzzle.js +0 -84
  132. package/dist/features/cue-canvas/sidebar/puzzles/launch-puzzle.js.map +0 -1
  133. package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu-header.js +0 -36
  134. package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu-header.js.map +0 -1
  135. package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu.js +0 -133
  136. package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu.js.map +0 -1
  137. package/dist/features/cue-canvas/sidebar/puzzles/puzzles-styled.js +0 -96
  138. package/dist/features/cue-canvas/sidebar/puzzles/puzzles-styled.js.map +0 -1
  139. package/dist/features/cue-canvas/sidebar/puzzles/puzzles.js +0 -29
  140. package/dist/features/cue-canvas/sidebar/puzzles/puzzles.js.map +0 -1
  141. package/dist/features/cue-canvas/sidebar/puzzles/utils.js +0 -120
  142. package/dist/features/cue-canvas/sidebar/puzzles/utils.js.map +0 -1
  143. package/dist/features/cue-canvas/sidebar/sidebar-styled.js +0 -32
  144. package/dist/features/cue-canvas/sidebar/sidebar-styled.js.map +0 -1
  145. package/dist/features/cue-canvas/sidebar/sidebar.js +0 -29
  146. package/dist/features/cue-canvas/sidebar/sidebar.js.map +0 -1
  147. package/dist/features/cue-canvas/sidebar/tiles/tile.js +0 -16
  148. package/dist/features/cue-canvas/sidebar/tiles/tile.js.map +0 -1
  149. package/dist/features/hooks/use-debounce.js +0 -16
  150. package/dist/features/hooks/use-debounce.js.map +0 -1
  151. package/dist/features/milestone/milestone-list-container/api/get-past-milestone-count.js +0 -18
  152. package/dist/features/milestone/milestone-list-container/api/get-past-milestone-count.js.map +0 -1
  153. package/dist/features/trial-session/comps/pricing/india-pricing/index.js +0 -96
  154. package/dist/features/trial-session/comps/pricing/india-pricing/index.js.map +0 -1
  155. package/dist/features/trial-session/comps/pricing/india-pricing/india-pricing-styled.js +0 -59
  156. package/dist/features/trial-session/comps/pricing/india-pricing/india-pricing-styled.js.map +0 -1
  157. package/dist/static/ellipse-clip.dfb25608.svg +0 -1
@@ -1,67 +1,66 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
2
  import { memo as p, useCallback as f } from "react";
3
- import c from "../../../ui/buttons/button/button.js";
4
- import g from "../../../ui/inputs/text-input/text-input.js";
5
- import h from "../../../ui/layout/flex-view.js";
3
+ import c from "../../../ui/inputs/text-input/text-input.js";
4
+ import g from "../../../ui/layout/flex-view.js";
6
5
  import b from "../../comps/input-status-icon/input-status-icon.js";
7
- import { FormWrapper as I } from "../forgot-password-styled.js";
8
- const $ = ({
9
- onSubmit: i,
6
+ import { FormWrapper as h, ButtonWrapper as I } from "../forgot-password-styled.js";
7
+ const C = ({
8
+ onSubmit: o,
10
9
  onChange: t,
11
- value: o,
10
+ value: i,
12
11
  error: r,
13
12
  isSubmitDisabled: s,
14
- isProcessing: n,
15
- isValid: a = !1,
13
+ isProcessing: a,
14
+ isValid: n = !1,
16
15
  label: m
17
16
  }) => {
18
- const d = f(
19
- (u) => {
20
- t("identifier", u.target.value);
17
+ const u = f(
18
+ (d) => {
19
+ t("identifier", d.target.value);
21
20
  },
22
21
  [t]
23
22
  );
24
23
  return /* @__PURE__ */ e(
25
- h,
24
+ g,
26
25
  {
27
- $gutterX: 2,
26
+ $gutterX: 1.5,
28
27
  $gapX: 1.5,
29
28
  $alignItems: "center",
30
29
  $justifyContent: "center",
31
30
  $background: "BLACK_2",
32
31
  $height: 308,
33
- children: /* @__PURE__ */ l(I, { onSubmit: i, children: [
32
+ children: /* @__PURE__ */ l(h, { onSubmit: o, children: [
34
33
  /* @__PURE__ */ e(
35
- g,
34
+ c,
36
35
  {
37
36
  renderAs: r ? "error-dark" : "primary-dark",
38
37
  autoFocus: !0,
39
38
  label: m,
40
- value: o,
41
- onChange: d,
42
- width: 330,
39
+ value: i,
40
+ onChange: u,
43
41
  required: !0,
44
42
  shape: "borderLess",
43
+ autoComplete: "username",
45
44
  errorMessage: r,
46
- siblingElement: /* @__PURE__ */ e(b, { isError: !!r, isValid: a, isLoading: !1 })
45
+ siblingElement: /* @__PURE__ */ e(b, { isError: !!r, isValid: n, isLoading: !1 })
47
46
  }
48
47
  ),
49
48
  /* @__PURE__ */ e(
50
- c,
49
+ I,
51
50
  {
52
51
  size: "small",
53
52
  renderAs: "secondary-dark",
54
53
  type: "submit",
54
+ width: "100%",
55
55
  label: "Get Verification Code",
56
- width: 336,
57
- busy: n,
56
+ busy: a,
58
57
  disabled: s
59
58
  }
60
59
  )
61
60
  ] })
62
61
  }
63
62
  );
64
- }, A = p($);
63
+ }, A = p(C);
65
64
  export {
66
65
  A as default
67
66
  };
@@ -1 +1 @@
1
- {"version":3,"file":"user-identifier-form.js","sources":["../../../../../src/features/auth/forgot-password/user-identifier-form/user-identifier-form.tsx"],"sourcesContent":["import type { ISingleFieldFormProps } from '../forgot-password-types';\n\nimport { memo, useCallback, type ChangeEvent } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../ui/layout/flex-view';\nimport InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\nimport * as Styled from '../forgot-password-styled';\n\nconst UserIdentifierForm = ({\n onSubmit,\n onChange,\n value,\n error,\n isSubmitDisabled,\n isProcessing,\n isValid = false,\n label,\n}: ISingleFieldFormProps) => {\n const handleInputChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('identifier', e.target.value);\n },\n [onChange],\n );\n\n return (\n <FlexView\n $gutterX={2}\n $gapX={1.5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background=\"BLACK_2\"\n $height={308}\n >\n <Styled.FormWrapper onSubmit={onSubmit}>\n <TextInput\n renderAs={error ? 'error-dark' : 'primary-dark'}\n autoFocus\n label={label}\n value={value}\n onChange={handleInputChange}\n width={330}\n required\n shape=\"borderLess\"\n errorMessage={error}\n siblingElement={<InputStatusIcon isError={!!error} isValid={isValid} isLoading={false} />}\n />\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n type=\"submit\"\n label=\"Get Verification Code\"\n width={336}\n busy={isProcessing}\n disabled={isSubmitDisabled}\n />\n </Styled.FormWrapper>\n </FlexView>\n );\n};\n\nexport default memo(UserIdentifierForm);\n"],"names":["UserIdentifierForm","onSubmit","onChange","value","error","isSubmitDisabled","isProcessing","isValid","label","handleInputChange","useCallback","e","jsx","FlexView","jsxs","Styled.FormWrapper","TextInput","InputStatusIcon","Button","userIdentifierForm","memo"],"mappings":";;;;;;;AAUA,MAAMA,IAAqB,CAAC;AAAA,EAC1B,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,OAAAC;AACF,MAA6B;AAC3B,QAAMC,IAAoBC;AAAA,IACxB,CAACC,MAAqC;AAC3B,MAAAT,EAAA,cAAcS,EAAE,OAAO,KAAK;AAAA,IACvC;AAAA,IACA,CAACT,CAAQ;AAAA,EAAA;AAIT,SAAA,gBAAAU;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,OAAO;AAAA,MACP,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,aAAY;AAAA,MACZ,SAAS;AAAA,MAET,UAAC,gBAAAC,EAAAC,GAAA,EAAmB,UAAAd,GAClB,UAAA;AAAA,QAAA,gBAAAW;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,UAAUZ,IAAQ,eAAe;AAAA,YACjC,WAAS;AAAA,YACT,OAAAI;AAAA,YACA,OAAAL;AAAA,YACA,UAAUM;AAAA,YACV,OAAO;AAAA,YACP,UAAQ;AAAA,YACR,OAAM;AAAA,YACN,cAAcL;AAAA,YACd,kCAAiBa,GAAgB,EAAA,SAAS,CAAC,CAACb,GAAO,SAAAG,GAAkB,WAAW,IAAO;AAAA,UAAA;AAAA,QACzF;AAAA,QACA,gBAAAK;AAAA,UAACM;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,UAAS;AAAA,YACT,MAAK;AAAA,YACL,OAAM;AAAA,YACN,OAAO;AAAA,YACP,MAAMZ;AAAA,YACN,UAAUD;AAAA,UAAA;AAAA,QACZ;AAAA,MAAA,GACF;AAAA,IAAA;AAAA,EAAA;AAGN,GAEec,IAAAC,EAAKpB,CAAkB;"}
1
+ {"version":3,"file":"user-identifier-form.js","sources":["../../../../../src/features/auth/forgot-password/user-identifier-form/user-identifier-form.tsx"],"sourcesContent":["import type { ISingleFieldFormProps } from '../forgot-password-types';\n\nimport { memo, useCallback, type ChangeEvent } from 'react';\n\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../ui/layout/flex-view';\nimport InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\nimport * as Styled from '../forgot-password-styled';\n\nconst UserIdentifierForm = ({\n onSubmit,\n onChange,\n value,\n error,\n isSubmitDisabled,\n isProcessing,\n isValid = false,\n label,\n}: ISingleFieldFormProps) => {\n const handleInputChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('identifier', e.target.value);\n },\n [onChange],\n );\n\n return (\n <FlexView\n $gutterX={1.5}\n $gapX={1.5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background=\"BLACK_2\"\n $height={308}\n >\n <Styled.FormWrapper onSubmit={onSubmit}>\n <TextInput\n renderAs={error ? 'error-dark' : 'primary-dark'}\n autoFocus\n label={label}\n value={value}\n onChange={handleInputChange}\n required\n shape=\"borderLess\"\n autoComplete=\"username\"\n errorMessage={error}\n siblingElement={<InputStatusIcon isError={!!error} isValid={isValid} isLoading={false} />}\n />\n <Styled.ButtonWrapper\n size=\"small\"\n renderAs=\"secondary-dark\"\n type=\"submit\"\n width=\"100%\"\n label=\"Get Verification Code\"\n busy={isProcessing}\n disabled={isSubmitDisabled}\n />\n </Styled.FormWrapper>\n </FlexView>\n );\n};\n\nexport default memo(UserIdentifierForm);\n"],"names":["UserIdentifierForm","onSubmit","onChange","value","error","isSubmitDisabled","isProcessing","isValid","label","handleInputChange","useCallback","e","jsx","FlexView","jsxs","Styled.FormWrapper","TextInput","InputStatusIcon","Styled.ButtonWrapper","userIdentifierForm","memo"],"mappings":";;;;;;AASA,MAAMA,IAAqB,CAAC;AAAA,EAC1B,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,OAAAC;AACF,MAA6B;AAC3B,QAAMC,IAAoBC;AAAA,IACxB,CAACC,MAAqC;AAC3B,MAAAT,EAAA,cAAcS,EAAE,OAAO,KAAK;AAAA,IACvC;AAAA,IACA,CAACT,CAAQ;AAAA,EAAA;AAIT,SAAA,gBAAAU;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,OAAO;AAAA,MACP,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,aAAY;AAAA,MACZ,SAAS;AAAA,MAET,UAAC,gBAAAC,EAAAC,GAAA,EAAmB,UAAAd,GAClB,UAAA;AAAA,QAAA,gBAAAW;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,UAAUZ,IAAQ,eAAe;AAAA,YACjC,WAAS;AAAA,YACT,OAAAI;AAAA,YACA,OAAAL;AAAA,YACA,UAAUM;AAAA,YACV,UAAQ;AAAA,YACR,OAAM;AAAA,YACN,cAAa;AAAA,YACb,cAAcL;AAAA,YACd,kCAAiBa,GAAgB,EAAA,SAAS,CAAC,CAACb,GAAO,SAAAG,GAAkB,WAAW,IAAO;AAAA,UAAA;AAAA,QACzF;AAAA,QACA,gBAAAK;AAAA,UAACM;AAAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,UAAS;AAAA,YACT,MAAK;AAAA,YACL,OAAM;AAAA,YACN,OAAM;AAAA,YACN,MAAMZ;AAAA,YACN,UAAUD;AAAA,UAAA;AAAA,QACZ;AAAA,MAAA,GACF;AAAA,IAAA;AAAA,EAAA;AAGN,GAEec,IAAAC,EAAKpB,CAAkB;"}
@@ -1,12 +1,14 @@
1
1
  import e from "styled-components";
2
- const t = e.form`
2
+ const o = e.form`
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  justify-content: space-between;
6
6
  margin-top: 8px;
7
7
  flex: 1;
8
+ max-width: 336px;
9
+ width: 100%;
8
10
  `;
9
11
  export {
10
- t as FormWrapper
12
+ o as FormWrapper
11
13
  };
12
14
  //# sourceMappingURL=identifier-otp-form-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"identifier-otp-form-styled.js","sources":["../../../../../src/features/auth/login/identifier-otp-form/identifier-otp-form-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nconst FormWrapper = styled.form`\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n margin-top: 8px;\n flex: 1;\n`;\n\nexport { FormWrapper };\n"],"names":["FormWrapper","styled"],"mappings":";AAEA,MAAMA,IAAcC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
1
+ {"version":3,"file":"identifier-otp-form-styled.js","sources":["../../../../../src/features/auth/login/identifier-otp-form/identifier-otp-form-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nconst FormWrapper = styled.form`\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n margin-top: 8px;\n flex: 1;\n max-width: 336px;\n width: 100%;\n`;\n\nexport { FormWrapper };\n"],"names":["FormWrapper","styled"],"mappings":";AAEA,MAAMA,IAAcC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -1,100 +1,110 @@
1
- import { jsx as e, jsxs as n, Fragment as x } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as d, Fragment as x } from "react/jsx-runtime";
2
2
  import { memo as C, useCallback as c } from "react";
3
3
  import E from "../../../ui/buttons/button/button.js";
4
4
  import u from "../../../ui/inputs/text-input/text-input.js";
5
5
  import s from "../../../ui/layout/flex-view.js";
6
6
  import l from "../../../ui/separator/separator.js";
7
- import p from "../../comps/input-status-icon/input-status-icon.js";
8
- import v from "../../comps/resend-otp/resend-otp.js";
9
- import { FormWrapper as A } from "./identifier-otp-form-styled.js";
10
- const S = ({
11
- identifier: f,
7
+ import f from "../../comps/input-status-icon/input-status-icon.js";
8
+ import j from "../../comps/resend-otp/resend-otp.js";
9
+ import { FormWrapper as v } from "./identifier-otp-form-styled.js";
10
+ const A = ({
11
+ identifier: h,
12
12
  otp: m,
13
13
  errors: r,
14
14
  isOtpVerified: i,
15
- isLoading: o,
16
- isSubmitDisabled: h,
15
+ isLoading: n,
16
+ isSubmitDisabled: g,
17
17
  showOtpInput: t,
18
18
  onChange: a,
19
- onSubmit: g,
19
+ onSubmit: p,
20
20
  onSendOtp: b
21
21
  }) => {
22
- const k = t ? "success-dark" : "primary-dark", $ = i ? "success-dark" : "primary-dark", y = c(
23
- (d) => {
24
- a("identifier", d.target.value);
22
+ const $ = t ? "success-dark" : "primary-dark", k = i ? "success-dark" : "primary-dark", y = c(
23
+ (o) => {
24
+ a("identifier", o.target.value);
25
25
  },
26
26
  [a]
27
27
  ), F = c(
28
- (d) => {
29
- a("otp", d.target.value);
28
+ (o) => {
29
+ a("otp", o.target.value);
30
30
  },
31
31
  [a]
32
32
  );
33
- return /* @__PURE__ */ e(s, { $gutterX: 2, $gapX: 1.5, $background: "BLACK_2", $height: 308, children: /* @__PURE__ */ n(A, { onSubmit: g, children: [
34
- /* @__PURE__ */ n(s, { $alignItems: "center", $justifyContent: "center", children: [
35
- /* @__PURE__ */ e(
36
- u,
37
- {
38
- renderAs: r.identifier ? "error-dark" : k,
39
- autoFocus: !0,
40
- label: "Email or Phone",
41
- value: f,
42
- onChange: y,
43
- width: 330,
44
- required: !0,
45
- shape: "borderLess",
46
- errorMessage: r.identifier,
47
- disabled: t,
48
- siblingElement: /* @__PURE__ */ e(p, { isValid: t, isError: !!r.identifier })
49
- }
50
- ),
51
- t && /* @__PURE__ */ n(x, { children: [
52
- /* @__PURE__ */ e(l, { height: 36 }),
53
- /* @__PURE__ */ e(
54
- u,
55
- {
56
- type: "password",
57
- renderAs: r.otp ? "error-dark" : $,
58
- autoComplete: "password",
59
- label: "Verification code",
60
- value: m,
61
- onChange: F,
62
- width: 330,
63
- required: !0,
64
- autoFocus: !0,
65
- shape: "borderLess",
66
- errorMessage: r.otp,
67
- disabled: i || m.length === 4 && o,
68
- siblingElement: /* @__PURE__ */ e(
69
- p,
33
+ return /* @__PURE__ */ e(
34
+ s,
35
+ {
36
+ $gutterX: 1.5,
37
+ $gapX: 1.5,
38
+ $background: "BLACK_2",
39
+ $height: 308,
40
+ $alignItems: "center",
41
+ $justifyContent: "center",
42
+ children: /* @__PURE__ */ d(v, { onSubmit: p, children: [
43
+ /* @__PURE__ */ d(s, { $alignItems: "center", $justifyContent: "center", children: [
44
+ /* @__PURE__ */ e(
45
+ u,
46
+ {
47
+ renderAs: r.identifier ? "error-dark" : $,
48
+ autoFocus: !0,
49
+ label: "Email or Phone",
50
+ value: h,
51
+ onChange: y,
52
+ required: !0,
53
+ width: "100%",
54
+ shape: "borderLess",
55
+ errorMessage: r.identifier,
56
+ disabled: t,
57
+ siblingElement: /* @__PURE__ */ e(f, { isValid: t, isError: !!r.identifier })
58
+ }
59
+ ),
60
+ t && /* @__PURE__ */ d(x, { children: [
61
+ /* @__PURE__ */ e(l, { height: 36 }),
62
+ /* @__PURE__ */ e(
63
+ u,
70
64
  {
71
- isLoading: o,
72
- isValid: i,
73
- isError: !!r.otp
65
+ type: "password",
66
+ renderAs: r.otp ? "error-dark" : k,
67
+ label: "Verification code",
68
+ value: m,
69
+ onChange: F,
70
+ width: "100%",
71
+ required: !0,
72
+ autoFocus: !0,
73
+ shape: "borderLess",
74
+ errorMessage: r.otp,
75
+ disabled: i || m.length === 4 && n,
76
+ siblingElement: /* @__PURE__ */ e(
77
+ f,
78
+ {
79
+ isLoading: n,
80
+ isValid: i,
81
+ isError: !!r.otp
82
+ }
83
+ )
74
84
  }
75
- )
85
+ ),
86
+ /* @__PURE__ */ e(l, { heightX: 1.25 }),
87
+ /* @__PURE__ */ e(s, { $alignItems: "flex-end", $width: "100%", children: /* @__PURE__ */ e(j, { onResendOTP: b, disabled: i }) }),
88
+ /* @__PURE__ */ e(l, { heightX: 2 })
89
+ ] })
90
+ ] }),
91
+ /* @__PURE__ */ e(
92
+ E,
93
+ {
94
+ size: "small",
95
+ renderAs: "secondary-dark",
96
+ type: "submit",
97
+ label: t ? "Log In" : "Get Verification Code",
98
+ width: "100%",
99
+ busy: !t && n,
100
+ disabled: g
76
101
  }
77
- ),
78
- /* @__PURE__ */ e(l, { heightX: 1.25 }),
79
- /* @__PURE__ */ e(s, { $alignItems: "flex-end", $width: "100%", children: /* @__PURE__ */ e(v, { onResendOTP: b, disabled: i }) }),
80
- /* @__PURE__ */ e(l, { heightX: 2 })
102
+ )
81
103
  ] })
82
- ] }),
83
- /* @__PURE__ */ e(
84
- E,
85
- {
86
- size: "small",
87
- renderAs: "secondary-dark",
88
- type: "submit",
89
- label: t ? "Log In" : "Get Verification Code",
90
- width: 336,
91
- busy: !t && o,
92
- disabled: h
93
- }
94
- )
95
- ] }) });
96
- }, P = C(S);
104
+ }
105
+ );
106
+ }, R = C(A);
97
107
  export {
98
- P as default
108
+ R as default
99
109
  };
100
110
  //# sourceMappingURL=identifier-otp-form.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"identifier-otp-form.js","sources":["../../../../../src/features/auth/login/identifier-otp-form/identifier-otp-form.tsx"],"sourcesContent":["// In @cuemath/leap/src/components/IdentifierOtpForm.tsx\n\nimport type { IIdentifierOtpFormProps } from './identifier-otp-form-types';\n\nimport React, { type ChangeEvent, memo, useCallback } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\nimport ResendOTP from '../../comps/resend-otp/resend-otp';\nimport * as Styled from './identifier-otp-form-styled';\n\nconst IdentifierOtpForm: React.FC<IIdentifierOtpFormProps> = ({\n identifier,\n otp,\n errors,\n isOtpVerified,\n isLoading,\n isSubmitDisabled,\n showOtpInput,\n onChange,\n onSubmit,\n onSendOtp,\n}) => {\n const identifierStatusVariant = showOtpInput ? 'success-dark' : 'primary-dark';\n const otpStatusVariant = isOtpVerified ? 'success-dark' : 'primary-dark';\n\n const handleIdentifierChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('identifier', e.target.value);\n },\n [onChange],\n );\n\n const handleOtpChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('otp', e.target.value);\n },\n [onChange],\n );\n\n return (\n <FlexView $gutterX={2} $gapX={1.5} $background=\"BLACK_2\" $height={308}>\n <Styled.FormWrapper onSubmit={onSubmit}>\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <TextInput\n renderAs={errors.identifier ? 'error-dark' : identifierStatusVariant}\n autoFocus\n label=\"Email or Phone\"\n value={identifier}\n onChange={handleIdentifierChange}\n width={330}\n required\n shape=\"borderLess\"\n errorMessage={errors.identifier}\n disabled={showOtpInput}\n siblingElement={\n <InputStatusIcon isValid={showOtpInput} isError={!!errors.identifier} />\n }\n />\n {showOtpInput && (\n <>\n <Separator height={36} />\n <TextInput\n type=\"password\"\n renderAs={errors.otp ? 'error-dark' : otpStatusVariant}\n autoComplete=\"password\"\n label=\"Verification code\"\n value={otp}\n onChange={handleOtpChange}\n width={330}\n required\n autoFocus\n shape=\"borderLess\"\n errorMessage={errors.otp}\n disabled={isOtpVerified || (otp.length === 4 && isLoading)}\n siblingElement={\n <InputStatusIcon\n isLoading={isLoading}\n isValid={isOtpVerified}\n isError={!!errors.otp}\n />\n }\n />\n <Separator heightX={1.25} />\n <FlexView $alignItems=\"flex-end\" $width=\"100%\">\n <ResendOTP onResendOTP={onSendOtp} disabled={isOtpVerified} />\n </FlexView>\n <Separator heightX={2} />\n </>\n )}\n </FlexView>\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n type=\"submit\"\n label={showOtpInput ? 'Log In' : 'Get Verification Code'}\n width={336}\n busy={!showOtpInput && isLoading}\n disabled={isSubmitDisabled}\n />\n </Styled.FormWrapper>\n </FlexView>\n );\n};\n\nexport default memo(IdentifierOtpForm);\n"],"names":["IdentifierOtpForm","identifier","otp","errors","isOtpVerified","isLoading","isSubmitDisabled","showOtpInput","onChange","onSubmit","onSendOtp","identifierStatusVariant","otpStatusVariant","handleIdentifierChange","useCallback","e","handleOtpChange","jsx","FlexView","jsxs","Styled.FormWrapper","TextInput","InputStatusIcon","Fragment","Separator","ResendOTP","Button","identifierOtpForm","memo"],"mappings":";;;;;;;;;AAcA,MAAMA,IAAuD,CAAC;AAAA,EAC5D,YAAAC;AAAA,EACA,KAAAC;AAAA,EACA,QAAAC;AAAA,EACA,eAAAC;AAAA,EACA,WAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACF,MAAM;AACE,QAAAC,IAA0BJ,IAAe,iBAAiB,gBAC1DK,IAAmBR,IAAgB,iBAAiB,gBAEpDS,IAAyBC;AAAA,IAC7B,CAACC,MAAqC;AAC3B,MAAAP,EAAA,cAAcO,EAAE,OAAO,KAAK;AAAA,IACvC;AAAA,IACA,CAACP,CAAQ;AAAA,EAAA,GAGLQ,IAAkBF;AAAA,IACtB,CAACC,MAAqC;AAC3B,MAAAP,EAAA,OAAOO,EAAE,OAAO,KAAK;AAAA,IAChC;AAAA,IACA,CAACP,CAAQ;AAAA,EAAA;AAGX,SACG,gBAAAS,EAAAC,GAAA,EAAS,UAAU,GAAG,OAAO,KAAK,aAAY,WAAU,SAAS,KAChE,UAAA,gBAAAC,EAACC,GAAA,EAAmB,UAAAX,GAClB,UAAA;AAAA,IAAA,gBAAAU,EAACD,GAAS,EAAA,aAAY,UAAS,iBAAgB,UAC7C,UAAA;AAAA,MAAA,gBAAAD;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,UAAUlB,EAAO,aAAa,eAAeQ;AAAA,UAC7C,WAAS;AAAA,UACT,OAAM;AAAA,UACN,OAAOV;AAAA,UACP,UAAUY;AAAA,UACV,OAAO;AAAA,UACP,UAAQ;AAAA,UACR,OAAM;AAAA,UACN,cAAcV,EAAO;AAAA,UACrB,UAAUI;AAAA,UACV,kCACGe,GAAgB,EAAA,SAASf,GAAc,SAAS,CAAC,CAACJ,EAAO,YAAY;AAAA,QAAA;AAAA,MAE1E;AAAA,MACCI,KAEG,gBAAAY,EAAAI,GAAA,EAAA,UAAA;AAAA,QAAC,gBAAAN,EAAAO,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,QACvB,gBAAAP;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,UAAUlB,EAAO,MAAM,eAAeS;AAAA,YACtC,cAAa;AAAA,YACb,OAAM;AAAA,YACN,OAAOV;AAAA,YACP,UAAUc;AAAA,YACV,OAAO;AAAA,YACP,UAAQ;AAAA,YACR,WAAS;AAAA,YACT,OAAM;AAAA,YACN,cAAcb,EAAO;AAAA,YACrB,UAAUC,KAAkBF,EAAI,WAAW,KAAKG;AAAA,YAChD,gBACE,gBAAAY;AAAA,cAACK;AAAA,cAAA;AAAA,gBACC,WAAAjB;AAAA,gBACA,SAASD;AAAA,gBACT,SAAS,CAAC,CAACD,EAAO;AAAA,cAAA;AAAA,YACpB;AAAA,UAAA;AAAA,QAEJ;AAAA,QACA,gBAAAc,EAACO,GAAU,EAAA,SAAS,KAAM,CAAA;AAAA,QACzB,gBAAAP,EAAAC,GAAA,EAAS,aAAY,YAAW,QAAO,QACtC,UAAC,gBAAAD,EAAAQ,GAAA,EAAU,aAAaf,GAAW,UAAUN,EAAe,CAAA,GAC9D;AAAA,QACA,gBAAAa,EAACO,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,MAAA,GACzB;AAAA,IAAA,GAEJ;AAAA,IACA,gBAAAP;AAAA,MAACS;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,UAAS;AAAA,QACT,MAAK;AAAA,QACL,OAAOnB,IAAe,WAAW;AAAA,QACjC,OAAO;AAAA,QACP,MAAM,CAACA,KAAgBF;AAAA,QACvB,UAAUC;AAAA,MAAA;AAAA,IACZ;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAEJ,GAEeqB,IAAAC,EAAK5B,CAAiB;"}
1
+ {"version":3,"file":"identifier-otp-form.js","sources":["../../../../../src/features/auth/login/identifier-otp-form/identifier-otp-form.tsx"],"sourcesContent":["// In @cuemath/leap/src/components/IdentifierOtpForm.tsx\n\nimport type { IIdentifierOtpFormProps } from './identifier-otp-form-types';\n\nimport React, { type ChangeEvent, memo, useCallback } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\nimport ResendOTP from '../../comps/resend-otp/resend-otp';\nimport * as Styled from './identifier-otp-form-styled';\n\nconst IdentifierOtpForm: React.FC<IIdentifierOtpFormProps> = ({\n identifier,\n otp,\n errors,\n isOtpVerified,\n isLoading,\n isSubmitDisabled,\n showOtpInput,\n onChange,\n onSubmit,\n onSendOtp,\n}) => {\n const identifierStatusVariant = showOtpInput ? 'success-dark' : 'primary-dark';\n const otpStatusVariant = isOtpVerified ? 'success-dark' : 'primary-dark';\n\n const handleIdentifierChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('identifier', e.target.value);\n },\n [onChange],\n );\n\n const handleOtpChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('otp', e.target.value);\n },\n [onChange],\n );\n\n return (\n <FlexView\n $gutterX={1.5}\n $gapX={1.5}\n $background=\"BLACK_2\"\n $height={308}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <Styled.FormWrapper onSubmit={onSubmit}>\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <TextInput\n renderAs={errors.identifier ? 'error-dark' : identifierStatusVariant}\n autoFocus\n label=\"Email or Phone\"\n value={identifier}\n onChange={handleIdentifierChange}\n required\n width=\"100%\"\n shape=\"borderLess\"\n errorMessage={errors.identifier}\n disabled={showOtpInput}\n siblingElement={\n <InputStatusIcon isValid={showOtpInput} isError={!!errors.identifier} />\n }\n />\n {showOtpInput && (\n <>\n <Separator height={36} />\n <TextInput\n type=\"password\"\n renderAs={errors.otp ? 'error-dark' : otpStatusVariant}\n label=\"Verification code\"\n value={otp}\n onChange={handleOtpChange}\n width=\"100%\"\n required\n autoFocus\n shape=\"borderLess\"\n errorMessage={errors.otp}\n disabled={isOtpVerified || (otp.length === 4 && isLoading)}\n siblingElement={\n <InputStatusIcon\n isLoading={isLoading}\n isValid={isOtpVerified}\n isError={!!errors.otp}\n />\n }\n />\n <Separator heightX={1.25} />\n <FlexView $alignItems=\"flex-end\" $width=\"100%\">\n <ResendOTP onResendOTP={onSendOtp} disabled={isOtpVerified} />\n </FlexView>\n <Separator heightX={2} />\n </>\n )}\n </FlexView>\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n type=\"submit\"\n label={showOtpInput ? 'Log In' : 'Get Verification Code'}\n width=\"100%\"\n busy={!showOtpInput && isLoading}\n disabled={isSubmitDisabled}\n />\n </Styled.FormWrapper>\n </FlexView>\n );\n};\n\nexport default memo(IdentifierOtpForm);\n"],"names":["IdentifierOtpForm","identifier","otp","errors","isOtpVerified","isLoading","isSubmitDisabled","showOtpInput","onChange","onSubmit","onSendOtp","identifierStatusVariant","otpStatusVariant","handleIdentifierChange","useCallback","e","handleOtpChange","jsx","FlexView","jsxs","Styled.FormWrapper","TextInput","InputStatusIcon","Fragment","Separator","ResendOTP","Button","identifierOtpForm","memo"],"mappings":";;;;;;;;;AAcA,MAAMA,IAAuD,CAAC;AAAA,EAC5D,YAAAC;AAAA,EACA,KAAAC;AAAA,EACA,QAAAC;AAAA,EACA,eAAAC;AAAA,EACA,WAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACF,MAAM;AACE,QAAAC,IAA0BJ,IAAe,iBAAiB,gBAC1DK,IAAmBR,IAAgB,iBAAiB,gBAEpDS,IAAyBC;AAAA,IAC7B,CAACC,MAAqC;AAC3B,MAAAP,EAAA,cAAcO,EAAE,OAAO,KAAK;AAAA,IACvC;AAAA,IACA,CAACP,CAAQ;AAAA,EAAA,GAGLQ,IAAkBF;AAAA,IACtB,CAACC,MAAqC;AAC3B,MAAAP,EAAA,OAAOO,EAAE,OAAO,KAAK;AAAA,IAChC;AAAA,IACA,CAACP,CAAQ;AAAA,EAAA;AAIT,SAAA,gBAAAS;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,OAAO;AAAA,MACP,aAAY;AAAA,MACZ,SAAS;AAAA,MACT,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAEhB,UAAC,gBAAAC,EAAAC,GAAA,EAAmB,UAAAX,GAClB,UAAA;AAAA,QAAA,gBAAAU,EAACD,GAAS,EAAA,aAAY,UAAS,iBAAgB,UAC7C,UAAA;AAAA,UAAA,gBAAAD;AAAA,YAACI;AAAA,YAAA;AAAA,cACC,UAAUlB,EAAO,aAAa,eAAeQ;AAAA,cAC7C,WAAS;AAAA,cACT,OAAM;AAAA,cACN,OAAOV;AAAA,cACP,UAAUY;AAAA,cACV,UAAQ;AAAA,cACR,OAAM;AAAA,cACN,OAAM;AAAA,cACN,cAAcV,EAAO;AAAA,cACrB,UAAUI;AAAA,cACV,kCACGe,GAAgB,EAAA,SAASf,GAAc,SAAS,CAAC,CAACJ,EAAO,YAAY;AAAA,YAAA;AAAA,UAE1E;AAAA,UACCI,KAEG,gBAAAY,EAAAI,GAAA,EAAA,UAAA;AAAA,YAAC,gBAAAN,EAAAO,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,YACvB,gBAAAP;AAAA,cAACI;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,UAAUlB,EAAO,MAAM,eAAeS;AAAA,gBACtC,OAAM;AAAA,gBACN,OAAOV;AAAA,gBACP,UAAUc;AAAA,gBACV,OAAM;AAAA,gBACN,UAAQ;AAAA,gBACR,WAAS;AAAA,gBACT,OAAM;AAAA,gBACN,cAAcb,EAAO;AAAA,gBACrB,UAAUC,KAAkBF,EAAI,WAAW,KAAKG;AAAA,gBAChD,gBACE,gBAAAY;AAAA,kBAACK;AAAA,kBAAA;AAAA,oBACC,WAAAjB;AAAA,oBACA,SAASD;AAAA,oBACT,SAAS,CAAC,CAACD,EAAO;AAAA,kBAAA;AAAA,gBACpB;AAAA,cAAA;AAAA,YAEJ;AAAA,YACA,gBAAAc,EAACO,GAAU,EAAA,SAAS,KAAM,CAAA;AAAA,YACzB,gBAAAP,EAAAC,GAAA,EAAS,aAAY,YAAW,QAAO,QACtC,UAAC,gBAAAD,EAAAQ,GAAA,EAAU,aAAaf,GAAW,UAAUN,EAAe,CAAA,GAC9D;AAAA,YACA,gBAAAa,EAACO,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,UAAA,GACzB;AAAA,QAAA,GAEJ;AAAA,QACA,gBAAAP;AAAA,UAACS;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,UAAS;AAAA,YACT,MAAK;AAAA,YACL,OAAOnB,IAAe,WAAW;AAAA,YACjC,OAAM;AAAA,YACN,MAAM,CAACA,KAAgBF;AAAA,YACvB,UAAUC;AAAA,UAAA;AAAA,QACZ;AAAA,MAAA,GACF;AAAA,IAAA;AAAA,EAAA;AAGN,GAEeqB,IAAAC,EAAK5B,CAAiB;"}
@@ -0,0 +1,13 @@
1
+ import t from "styled-components";
2
+ import o from "../../ui/buttons/button/button.js";
3
+ const i = t.form`
4
+ max-width: 336px;
5
+ width: 100%;
6
+ `;
7
+ t(o)`
8
+ max-width: 160px;
9
+ `;
10
+ export {
11
+ i as FormContainer
12
+ };
13
+ //# sourceMappingURL=login-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login-styled.js","sources":["../../../../src/features/auth/login/login-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport Button from '../../ui/buttons/button/button';\n\nconst FormContainer = styled.form`\n max-width: 336px;\n width: 100%;\n`;\n\nconst ButtonWrapper = styled(Button)`\n max-width: 160px;\n`;\n\nexport { FormContainer, ButtonWrapper };\n"],"names":["FormContainer","styled","Button"],"mappings":";;AAIA,MAAMA,IAAgBC,EAAO;AAAA;AAAA;AAAA;AAKPA,EAAOC,CAAM;AAAA;AAAA;"}
@@ -1,32 +1,34 @@
1
- import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
- import { memo as a } from "react";
3
- import e from "../../../ui/buttons/button/button.js";
4
- import i from "../../../ui/layout/flex-view.js";
5
- import c from "../../../ui/separator/separator.js";
6
- const s = ({ onRetryLogin: t, onGoToSignup: r }) => /* @__PURE__ */ n(i, { $alignItems: "center", $justifyContent: "center", children: [
7
- /* @__PURE__ */ o(
8
- e,
9
- {
10
- size: "small",
11
- renderAs: "secondary-dark",
12
- label: "Create a new account",
13
- width: 232,
14
- onClick: r
15
- }
16
- ),
17
- /* @__PURE__ */ o(c, { heightX: 1 }),
18
- /* @__PURE__ */ o(
19
- e,
1
+ import { jsxs as t, Fragment as a, jsx as e } from "react/jsx-runtime";
2
+ import { memo as i } from "react";
3
+ import o from "../../../ui/buttons/button/button.js";
4
+ import c from "../../../ui/layout/flex-view.js";
5
+ import l from "../../../ui/separator/separator.js";
6
+ const m = ({ onRetryLogin: n, onGoToSignup: r }) => /* @__PURE__ */ t(c, { $alignItems: "center", $justifyContent: "center", children: [
7
+ !!r && /* @__PURE__ */ t(a, { children: [
8
+ /* @__PURE__ */ e(
9
+ o,
10
+ {
11
+ size: "small",
12
+ renderAs: "secondary-dark",
13
+ label: "Create a new account",
14
+ width: 232,
15
+ onClick: r
16
+ }
17
+ ),
18
+ /* @__PURE__ */ e(l, { heightX: 1 })
19
+ ] }),
20
+ /* @__PURE__ */ e(
21
+ o,
20
22
  {
21
23
  size: "small",
22
24
  renderAs: "secondary-dark",
23
25
  label: "Try another Login method",
24
26
  width: 232,
25
- onClick: t
27
+ onClick: n
26
28
  }
27
29
  )
28
- ] }), h = a(s);
30
+ ] }), p = i(m);
29
31
  export {
30
- h as default
32
+ p as default
31
33
  };
32
34
  //# sourceMappingURL=social-account-not-found.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"social-account-not-found.js","sources":["../../../../../src/features/auth/login/social-account-not-found/social-account-not-found.tsx"],"sourcesContent":["import type { ISocialAccountNotFoundProps } from './social-account-not-found-types';\n\nimport { memo } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\n\nconst SocialAccountNotFound = ({ onRetryLogin, onGoToSignup }: ISocialAccountNotFoundProps) => {\n return (\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n label=\"Create a new account\"\n width={232}\n onClick={onGoToSignup}\n />\n <Separator heightX={1} />\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n label=\"Try another Login method\"\n width={232}\n onClick={onRetryLogin}\n />\n </FlexView>\n );\n};\n\nexport default memo(SocialAccountNotFound);\n"],"names":["SocialAccountNotFound","onRetryLogin","onGoToSignup","jsxs","FlexView","jsx","Button","Separator","socialAccountNotFound","memo"],"mappings":";;;;;AAQA,MAAMA,IAAwB,CAAC,EAAE,cAAAC,GAAc,cAAAC,QAE1C,gBAAAC,EAAAC,GAAA,EAAS,aAAY,UAAS,iBAAgB,UAC7C,UAAA;AAAA,EAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAS;AAAA,MACT,OAAM;AAAA,MACN,OAAO;AAAA,MACP,SAASJ;AAAA,IAAA;AAAA,EACX;AAAA,EACA,gBAAAG,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EACvB,gBAAAF;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAS;AAAA,MACT,OAAM;AAAA,MACN,OAAO;AAAA,MACP,SAASL;AAAA,IAAA;AAAA,EACX;AACF,EAAA,CAAA,GAIWO,IAAAC,EAAKT,CAAqB;"}
1
+ {"version":3,"file":"social-account-not-found.js","sources":["../../../../../src/features/auth/login/social-account-not-found/social-account-not-found.tsx"],"sourcesContent":["import type { ISocialAccountNotFoundProps } from './social-account-not-found-types';\n\nimport { memo } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\n\nconst SocialAccountNotFound = ({ onRetryLogin, onGoToSignup }: ISocialAccountNotFoundProps) => {\n return (\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n {!!onGoToSignup && (\n <>\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n label=\"Create a new account\"\n width={232}\n onClick={onGoToSignup}\n />\n <Separator heightX={1} />\n </>\n )}\n\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n label=\"Try another Login method\"\n width={232}\n onClick={onRetryLogin}\n />\n </FlexView>\n );\n};\n\nexport default memo(SocialAccountNotFound);\n"],"names":["SocialAccountNotFound","onRetryLogin","onGoToSignup","jsxs","FlexView","Fragment","jsx","Button","Separator","socialAccountNotFound","memo"],"mappings":";;;;;AAQA,MAAMA,IAAwB,CAAC,EAAE,cAAAC,GAAc,cAAAC,QAE1C,gBAAAC,EAAAC,GAAA,EAAS,aAAY,UAAS,iBAAgB,UAC5C,UAAA;AAAA,EAAC,CAAA,CAACF,KAEC,gBAAAC,EAAAE,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,UAAS;AAAA,QACT,OAAM;AAAA,QACN,OAAO;AAAA,QACP,SAASL;AAAA,MAAA;AAAA,IACX;AAAA,IACA,gBAAAI,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EAAA,GACzB;AAAA,EAGF,gBAAAF;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAS;AAAA,MACT,OAAM;AAAA,MACN,OAAO;AAAA,MACP,SAASN;AAAA,IAAA;AAAA,EACX;AACF,EAAA,CAAA,GAIWQ,IAAAC,EAAKV,CAAqB;"}
@@ -0,0 +1,9 @@
1
+ import r from "styled-components";
2
+ import o from "../../../ui/layout/flex-view.js";
3
+ const e = r(o)`
4
+ max-width: 336px;
5
+ `;
6
+ export {
7
+ e as Wrapper
8
+ };
9
+ //# sourceMappingURL=social-login-methods-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-login-methods-styled.js","sources":["../../../../../src/features/auth/login/social-login-methods/social-login-methods-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Wrapper = styled(FlexView)`\n max-width: 336px;\n`;\n"],"names":["Wrapper","styled","FlexView"],"mappings":";;AAIa,MAAAA,IAAUC,EAAOC,CAAQ;AAAA;AAAA;"}
@@ -1,47 +1,56 @@
1
1
  import { jsxs as a, jsx as i } from "react/jsx-runtime";
2
2
  import { memo as r } from "react";
3
3
  import c from "../../../../assets/line-icons/icons/apple-icon.js";
4
- import d from "../../../../assets/line-icons/icons/google-icon.js";
4
+ import p from "../../../../assets/line-icons/icons/google-icon.js";
5
5
  import s from "../../../ui/buttons/button/button.js";
6
- import p from "../../../ui/layout/flex-view.js";
6
+ import { Wrapper as d } from "./social-login-methods-styled.js";
7
7
  const m = ({
8
8
  onGoogleLogin: n,
9
9
  onAppleLogin: t,
10
10
  loadingProvider: o
11
11
  }) => {
12
12
  const e = o === "google", l = o === "apple";
13
- return /* @__PURE__ */ a(p, { $flexGapX: 1, $flexDirection: "row", $justifyContent: "space-between", $width: 336, children: [
14
- /* @__PURE__ */ i(
15
- s,
16
- {
17
- renderAs: "secondary-dark",
18
- Icon: d,
19
- width: 160,
20
- label: "",
21
- analyticsLabel: "google_login",
22
- onClick: n,
23
- size: "small",
24
- busy: e,
25
- disabled: e
26
- }
27
- ),
28
- /* @__PURE__ */ i(
29
- s,
30
- {
31
- renderAs: "secondary-dark",
32
- size: "small",
33
- width: 160,
34
- Icon: c,
35
- label: "",
36
- analyticsLabel: "apple_login",
37
- onClick: t,
38
- busy: l,
39
- disabled: l
40
- }
41
- )
42
- ] });
43
- }, w = r(m);
13
+ return /* @__PURE__ */ a(
14
+ d,
15
+ {
16
+ $flexGapX: 1,
17
+ $flexDirection: "row",
18
+ $justifyContent: "space-between",
19
+ $width: "100%",
20
+ children: [
21
+ /* @__PURE__ */ i(
22
+ s,
23
+ {
24
+ renderAs: "secondary-dark",
25
+ Icon: p,
26
+ label: "",
27
+ analyticsLabel: "google_login",
28
+ onClick: n,
29
+ size: "small",
30
+ width: "100%",
31
+ busy: e,
32
+ disabled: e
33
+ }
34
+ ),
35
+ /* @__PURE__ */ i(
36
+ s,
37
+ {
38
+ renderAs: "secondary-dark",
39
+ size: "small",
40
+ Icon: c,
41
+ width: "100%",
42
+ label: "",
43
+ analyticsLabel: "apple_login",
44
+ onClick: t,
45
+ busy: l,
46
+ disabled: l
47
+ }
48
+ )
49
+ ]
50
+ }
51
+ );
52
+ }, L = r(m);
44
53
  export {
45
- w as default
54
+ L as default
46
55
  };
47
56
  //# sourceMappingURL=social-login-methods.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"social-login-methods.js","sources":["../../../../../src/features/auth/login/social-login-methods/social-login-methods.tsx"],"sourcesContent":["import type { ISocialLoginMethodsProps } from './social-login-methods-types';\nimport type { FC } from 'react';\n\nimport { memo } from 'react';\n\nimport AppleIcon from '../../../../assets/line-icons/icons/apple-icon';\nimport GoogleIcon from '../../../../assets/line-icons/icons/google-icon';\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst SocialLoginMethods: FC<ISocialLoginMethodsProps> = ({\n onGoogleLogin,\n onAppleLogin,\n loadingProvider,\n}) => {\n const isLoadingGoogle = loadingProvider === 'google';\n const isLoadingApple = loadingProvider === 'apple';\n\n return (\n <FlexView $flexGapX={1} $flexDirection=\"row\" $justifyContent=\"space-between\" $width={336}>\n <Button\n renderAs=\"secondary-dark\"\n Icon={GoogleIcon}\n width={160}\n label=\"\"\n analyticsLabel=\"google_login\"\n onClick={onGoogleLogin}\n size=\"small\"\n busy={isLoadingGoogle}\n disabled={isLoadingGoogle}\n />\n <Button\n renderAs=\"secondary-dark\"\n size=\"small\"\n width={160}\n Icon={AppleIcon}\n label=\"\"\n analyticsLabel=\"apple_login\"\n onClick={onAppleLogin}\n busy={isLoadingApple}\n disabled={isLoadingApple}\n />\n </FlexView>\n );\n};\n\nexport default memo(SocialLoginMethods);\n"],"names":["SocialLoginMethods","onGoogleLogin","onAppleLogin","loadingProvider","isLoadingGoogle","isLoadingApple","jsxs","FlexView","jsx","Button","GoogleIcon","AppleIcon","socialLoginMethods","memo"],"mappings":";;;;;;AAUA,MAAMA,IAAmD,CAAC;AAAA,EACxD,eAAAC;AAAA,EACA,cAAAC;AAAA,EACA,iBAAAC;AACF,MAAM;AACJ,QAAMC,IAAkBD,MAAoB,UACtCE,IAAiBF,MAAoB;AAGzC,SAAA,gBAAAG,EAACC,KAAS,WAAW,GAAG,gBAAe,OAAM,iBAAgB,iBAAgB,QAAQ,KACnF,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,MAAMC;AAAA,QACN,OAAO;AAAA,QACP,OAAM;AAAA,QACN,gBAAe;AAAA,QACf,SAAST;AAAA,QACT,MAAK;AAAA,QACL,MAAMG;AAAA,QACN,UAAUA;AAAA,MAAA;AAAA,IACZ;AAAA,IACA,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,MAAK;AAAA,QACL,OAAO;AAAA,QACP,MAAME;AAAA,QACN,OAAM;AAAA,QACN,gBAAe;AAAA,QACf,SAAST;AAAA,QACT,MAAMG;AAAA,QACN,UAAUA;AAAA,MAAA;AAAA,IACZ;AAAA,EACF,EAAA,CAAA;AAEJ,GAEeO,IAAAC,EAAKb,CAAkB;"}
1
+ {"version":3,"file":"social-login-methods.js","sources":["../../../../../src/features/auth/login/social-login-methods/social-login-methods.tsx"],"sourcesContent":["import type { ISocialLoginMethodsProps } from './social-login-methods-types';\nimport type { FC } from 'react';\n\nimport { memo } from 'react';\n\nimport AppleIcon from '../../../../assets/line-icons/icons/apple-icon';\nimport GoogleIcon from '../../../../assets/line-icons/icons/google-icon';\nimport Button from '../../../ui/buttons/button/button';\nimport * as Styled from './social-login-methods-styled';\n\nconst SocialLoginMethods: FC<ISocialLoginMethodsProps> = ({\n onGoogleLogin,\n onAppleLogin,\n loadingProvider,\n}) => {\n const isLoadingGoogle = loadingProvider === 'google';\n const isLoadingApple = loadingProvider === 'apple';\n\n return (\n <Styled.Wrapper\n $flexGapX={1}\n $flexDirection=\"row\"\n $justifyContent=\"space-between\"\n $width=\"100%\"\n >\n <Button\n renderAs=\"secondary-dark\"\n Icon={GoogleIcon}\n label=\"\"\n analyticsLabel=\"google_login\"\n onClick={onGoogleLogin}\n size=\"small\"\n width=\"100%\"\n busy={isLoadingGoogle}\n disabled={isLoadingGoogle}\n />\n <Button\n renderAs=\"secondary-dark\"\n size=\"small\"\n Icon={AppleIcon}\n width=\"100%\"\n label=\"\"\n analyticsLabel=\"apple_login\"\n onClick={onAppleLogin}\n busy={isLoadingApple}\n disabled={isLoadingApple}\n />\n </Styled.Wrapper>\n );\n};\n\nexport default memo(SocialLoginMethods);\n"],"names":["SocialLoginMethods","onGoogleLogin","onAppleLogin","loadingProvider","isLoadingGoogle","isLoadingApple","jsxs","Styled.Wrapper","jsx","Button","GoogleIcon","AppleIcon","socialLoginMethods","memo"],"mappings":";;;;;;AAUA,MAAMA,IAAmD,CAAC;AAAA,EACxD,eAAAC;AAAA,EACA,cAAAC;AAAA,EACA,iBAAAC;AACF,MAAM;AACJ,QAAMC,IAAkBD,MAAoB,UACtCE,IAAiBF,MAAoB;AAGzC,SAAA,gBAAAG;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAW;AAAA,MACX,gBAAe;AAAA,MACf,iBAAgB;AAAA,MAChB,QAAO;AAAA,MAEP,UAAA;AAAA,QAAA,gBAAAC;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,UAAS;AAAA,YACT,MAAMC;AAAA,YACN,OAAM;AAAA,YACN,gBAAe;AAAA,YACf,SAAST;AAAA,YACT,MAAK;AAAA,YACL,OAAM;AAAA,YACN,MAAMG;AAAA,YACN,UAAUA;AAAA,UAAA;AAAA,QACZ;AAAA,QACA,gBAAAI;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,UAAS;AAAA,YACT,MAAK;AAAA,YACL,MAAME;AAAA,YACN,OAAM;AAAA,YACN,OAAM;AAAA,YACN,gBAAe;AAAA,YACf,SAAST;AAAA,YACT,MAAMG;AAAA,YACN,UAAUA;AAAA,UAAA;AAAA,QACZ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEeO,IAAAC,EAAKb,CAAkB;"}