@cuemath/leap 3.3.24 → 3.3.25-af-1

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 (171) hide show
  1. package/dist/assets/lottie/lottie.js +2 -2
  2. package/dist/assets/lottie/lottie.js.map +1 -1
  3. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +6 -6
  4. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
  5. package/dist/features/auth/comps/pill-button/pill-button.js +19 -19
  6. package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
  7. package/dist/features/auth/pla-signup/pla-analytics-events.js +4 -5
  8. package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
  9. package/dist/features/auth/pla-signup/signup-header/signup-header.js +1 -1
  10. package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +1 -1
  11. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +24 -24
  12. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
  13. package/dist/features/circle-games/hooks/use-circle-sounds/constants.js +5 -7
  14. package/dist/features/circle-games/hooks/use-circle-sounds/constants.js.map +1 -1
  15. package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js +73 -72
  16. package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js.map +1 -1
  17. package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps.js +12 -12
  18. package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps.js.map +1 -1
  19. package/dist/features/circle-games/sign-up/sign-up-types.js.map +1 -1
  20. package/dist/features/circle-games/sign-up/sign-up.js +128 -156
  21. package/dist/features/circle-games/sign-up/sign-up.js.map +1 -1
  22. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +29 -23
  23. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +1 -1
  24. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  25. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  26. package/dist/features/milestone/create/comps/add-custom-chapter/add-custom-chapter.js +40 -42
  27. package/dist/features/milestone/create/comps/add-custom-chapter/add-custom-chapter.js.map +1 -1
  28. package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js +64 -70
  29. package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js.map +1 -1
  30. package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js +29 -54
  31. package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js.map +1 -1
  32. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js +28 -48
  33. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js.map +1 -1
  34. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +76 -79
  35. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
  36. package/dist/features/milestone/create/comps/chapters-selection-step/utils.js +94 -97
  37. package/dist/features/milestone/create/comps/chapters-selection-step/utils.js.map +1 -1
  38. package/dist/features/milestone/create/comps/class-details-step/class-details-step.js +143 -160
  39. package/dist/features/milestone/create/comps/class-details-step/class-details-step.js.map +1 -1
  40. package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js +12 -22
  41. package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js.map +1 -1
  42. package/dist/features/milestone/create/comps/test-type-step/test-type-step.js +59 -64
  43. package/dist/features/milestone/create/comps/test-type-step/test-type-step.js.map +1 -1
  44. package/dist/features/milestone/create/milestone-create-container.js +15 -17
  45. package/dist/features/milestone/create/milestone-create-container.js.map +1 -1
  46. package/dist/features/milestone/create/milestone-create-helpers.js +153 -170
  47. package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
  48. package/dist/features/milestone/create/milestone-create-styled.js +1 -1
  49. package/dist/features/milestone/create/milestone-create-styled.js.map +1 -1
  50. package/dist/features/milestone/create/milestone-create.js +17 -19
  51. package/dist/features/milestone/create/milestone-create.js.map +1 -1
  52. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js +42 -45
  53. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js.map +1 -1
  54. package/dist/features/parent-dashboard/parent-dashboard-types.js +2 -3
  55. package/dist/features/parent-dashboard/parent-dashboard-types.js.map +1 -1
  56. package/dist/features/parent-dashboard/parent-dashboard-view.js +127 -139
  57. package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -1
  58. package/dist/features/sentry/constants/ignored.js +6 -10
  59. package/dist/features/sentry/constants/ignored.js.map +1 -1
  60. package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js +7 -8
  61. package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js.map +1 -1
  62. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js +26 -27
  63. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js.map +1 -1
  64. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js +16 -16
  65. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js.map +1 -1
  66. package/dist/features/trial-session/comps/school-goals/school-goals.js +24 -25
  67. package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
  68. package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js +13 -15
  69. package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js.map +1 -1
  70. package/dist/features/trial-session/comps/session-report/report-information/report-information.js +1 -1
  71. package/dist/features/trial-session/comps/session-report/report-information/report-information.js.map +1 -1
  72. package/dist/features/trial-session/comps/worksheet/worksheet.js +23 -23
  73. package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
  74. package/dist/features/trial-session/trial-session-types.js.map +1 -1
  75. package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js +75 -88
  76. package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js.map +1 -1
  77. package/dist/features/ui/lottie-animation/lottie-animation.js +46 -55
  78. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  79. package/dist/features/ui/modals/modal-styled.js +15 -48
  80. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  81. package/dist/features/ui/modals/modal.js +38 -46
  82. package/dist/features/ui/modals/modal.js.map +1 -1
  83. package/dist/features/{stickers/sticker-selector/comps/sticker/sticker-styled.js → ui/sticker-grid/sticker-grid-styles.js} +45 -15
  84. package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +1 -0
  85. package/dist/features/ui/sticker-grid/sticker-grid.js +24 -0
  86. package/dist/features/ui/sticker-grid/sticker-grid.js.map +1 -0
  87. package/dist/features/ui/sticker-grid/sticker.js +57 -0
  88. package/dist/features/ui/sticker-grid/sticker.js.map +1 -0
  89. package/dist/features/ui/stickers/constants.js +6 -0
  90. package/dist/features/ui/stickers/constants.js.map +1 -0
  91. package/dist/features/ui/stickers/stickers-effects.js +64 -0
  92. package/dist/features/ui/stickers/stickers-effects.js.map +1 -0
  93. package/dist/features/ui/stickers/stickers-styled.js +29 -0
  94. package/dist/features/ui/stickers/stickers-styled.js.map +1 -0
  95. package/dist/features/ui/stickers/stickers-utils.js +91 -0
  96. package/dist/features/ui/stickers/stickers-utils.js.map +1 -0
  97. package/dist/features/ui/stickers/stickers.js +40 -0
  98. package/dist/features/ui/stickers/stickers.js.map +1 -0
  99. package/dist/index.d.ts +59 -138
  100. package/dist/index.js +467 -485
  101. package/dist/index.js.map +1 -1
  102. package/dist/static/error.cbe1ddde.json +1 -0
  103. package/dist/static/username.9e034d51.json +1 -0
  104. package/package.json +1 -1
  105. package/dist/features/auth/signup-unavailable/signup-unavailable-styled.js +0 -16
  106. package/dist/features/auth/signup-unavailable/signup-unavailable-styled.js.map +0 -1
  107. package/dist/features/auth/signup-unavailable/signup-unavailable-view.js +0 -62
  108. package/dist/features/auth/signup-unavailable/signup-unavailable-view.js.map +0 -1
  109. package/dist/features/auth/signup-unavailable/signup-unavailable.js +0 -17
  110. package/dist/features/auth/signup-unavailable/signup-unavailable.js.map +0 -1
  111. package/dist/features/circle-games/hooks/use-circle-sounds/helper.js +0 -19
  112. package/dist/features/circle-games/hooks/use-circle-sounds/helper.js.map +0 -1
  113. package/dist/features/circle-games/sign-up/api/use-update-username-api/use-update-username-api.js +0 -9
  114. package/dist/features/circle-games/sign-up/api/use-update-username-api/use-update-username-api.js.map +0 -1
  115. package/dist/features/circle-games/sign-up/dal/update-username-dal/update-username-dal.js +0 -38
  116. package/dist/features/circle-games/sign-up/dal/update-username-dal/update-username-dal.js.map +0 -1
  117. package/dist/features/parent-dashboard/api/get-student-profile-summary.js +0 -9
  118. package/dist/features/parent-dashboard/api/get-student-profile-summary.js.map +0 -1
  119. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js +0 -10
  120. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js.map +0 -1
  121. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js +0 -42
  122. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js.map +0 -1
  123. package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js +0 -24
  124. package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js.map +0 -1
  125. package/dist/features/parent-dashboard/hooks/use-switch-user-journey.js +0 -71
  126. package/dist/features/parent-dashboard/hooks/use-switch-user-journey.js.map +0 -1
  127. package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js +0 -40
  128. package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js.map +0 -1
  129. package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js +0 -44
  130. package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js.map +0 -1
  131. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js +0 -32
  132. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js.map +0 -1
  133. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js +0 -12
  134. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js.map +0 -1
  135. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js +0 -44
  136. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js.map +0 -1
  137. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js +0 -13
  138. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js.map +0 -1
  139. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +0 -28
  140. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +0 -1
  141. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js +0 -43
  142. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js.map +0 -1
  143. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +0 -59
  144. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +0 -1
  145. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js +0 -86
  146. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js.map +0 -1
  147. package/dist/features/stickers/constants.js +0 -235
  148. package/dist/features/stickers/constants.js.map +0 -1
  149. package/dist/features/stickers/sticker-selector/comps/sticker/sticker-styled.js.map +0 -1
  150. package/dist/features/stickers/sticker-selector/comps/sticker/sticker.js +0 -49
  151. package/dist/features/stickers/sticker-selector/comps/sticker/sticker.js.map +0 -1
  152. package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid-styled.js +0 -28
  153. package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid-styled.js.map +0 -1
  154. package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid.js +0 -26
  155. package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid.js.map +0 -1
  156. package/dist/features/stickers/sticker-selector/sticker-selector-styled.js +0 -13
  157. package/dist/features/stickers/sticker-selector/sticker-selector-styled.js.map +0 -1
  158. package/dist/features/stickers/sticker-selector/sticker-selector.js +0 -86
  159. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +0 -1
  160. package/dist/features/stickers/stickers-effects/stickers-effects-animations.js +0 -82
  161. package/dist/features/stickers/stickers-effects/stickers-effects-animations.js.map +0 -1
  162. package/dist/features/stickers/stickers-effects/stickers-effects-cache.js +0 -19
  163. package/dist/features/stickers/stickers-effects/stickers-effects-cache.js.map +0 -1
  164. package/dist/features/stickers/stickers-effects/stickers-effects-helper.js +0 -105
  165. package/dist/features/stickers/stickers-effects/stickers-effects-helper.js.map +0 -1
  166. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js +0 -37
  167. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +0 -1
  168. package/dist/features/stickers/stickers-effects/stickers-effects.js +0 -67
  169. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +0 -1
  170. package/dist/static/error.dd744fa5.json +0 -1
  171. package/dist/static/username.2c755605.json +0 -1
@@ -1,65 +1,61 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { memo as k, useContext as w, useCallback as A } from "react";
3
- import B from "../../../../ui/context/use-tracking-context.js";
4
- import f from "../../../../ui/layout/flex-view.js";
5
- import D from "../../../../ui/selection-cards/selection-cards.js";
6
- import P from "../../../../ui/text/text.js";
7
- import S from "../../milestone-create-context.js";
8
- import { getCurriculumStandardsFromConfig as F, getDefaultBoard as O, appendPrimaryGoalCategoryToFormState as X } from "../../milestone-create-helpers.js";
9
- import j from "../body-layout/body-layout.js";
10
- import { getCategorizedCurriculumStandards as z } from "../class-details-step/class-details-utils.js";
11
- import { getGoalCategories as M, getTestTypeBasedCategory as C } from "./test-type-utils.js";
12
- const T = k(
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { memo as _, useContext as L, useCallback as k } from "react";
3
+ import w from "../../../../ui/context/use-tracking-context.js";
4
+ import y from "../../../../ui/layout/flex-view.js";
5
+ import B from "../../../../ui/selection-cards/selection-cards.js";
6
+ import D from "../../../../ui/text/text.js";
7
+ import P from "../../milestone-create-context.js";
8
+ import { getCurriculumStandardsFromConfig as S, getDefaultBoard as F, appendPrimaryGoalCategoryToFormState as O } from "../../milestone-create-helpers.js";
9
+ import T from "../body-layout/body-layout.js";
10
+ import { getCategorizedCurriculumStandards as X } from "../class-details-step/class-details-utils.js";
11
+ import { getGoalCategories as j, getTestTypeBasedCategory as l } from "./test-type-utils.js";
12
+ const Z = _(
13
13
  ({
14
- currentStep: b,
15
- formData: x,
14
+ currentStep: f,
15
+ formData: b,
16
16
  config: t,
17
17
  courseStream: o,
18
- classRatio: s,
19
- onFormDataChange: p,
20
- enrollmentType: r,
21
- isTeacherTrainingAccount: l
18
+ classRatio: d,
19
+ onFormDataChange: C,
20
+ enrollmentType: r
22
21
  }) => {
23
- const { name: u, title: h } = b, E = {
24
- step: u
25
- }, { testType: g, grade: m, board: n, region: d } = x, { flow: a } = w(S), { onEvent: y } = B(E), G = M(g, t, o, r), $ = A(
26
- (e) => {
27
- const v = z(t, {
28
- grade: m ?? "",
29
- goalCategory: C(e),
30
- countryCode: d ?? "",
22
+ const { name: p, title: h } = f, x = {
23
+ step: p
24
+ }, { testType: g, grade: i, board: n, region: m } = b, { flow: s } = L(P), { onEvent: c } = w(x), E = j(g, t, o, r), G = k(
25
+ (a) => {
26
+ const $ = X(t, {
27
+ grade: i ?? "",
28
+ goalCategory: l(a),
29
+ countryCode: m ?? "",
31
30
  courseStream: o,
32
- classRatio: s,
31
+ classRatio: d,
33
32
  enrollmentType: r,
34
- flow: a,
35
- isTeacherTrainingAccount: l
36
- }), I = F(t, {
37
- grade: m ?? "",
38
- goalCategory: C(e),
39
- countryCode: d ?? "",
33
+ flow: s
34
+ }), v = S(t, {
35
+ grade: i ?? "",
36
+ goalCategory: l(a),
37
+ countryCode: m ?? "",
40
38
  courseStream: o,
41
- classRatio: s,
39
+ classRatio: d,
42
40
  enrollmentType: r,
43
- flow: a,
44
- isTeacherTrainingAccount: l
45
- }), c = n && I.some((L) => L.id === n) ? n : O(v), _ = X(
41
+ flow: s
42
+ }), u = n && v.some((I) => I.id === n) ? n : F($), A = O(
46
43
  t,
47
- e,
48
- m,
44
+ a,
45
+ i,
49
46
  o,
50
47
  r,
51
- c,
52
- d,
53
- a
48
+ u,
49
+ m
54
50
  );
55
- y("SELECTED_GOAL_CATEGORY", {
56
- goal_category: C(e),
57
- flow: a
58
- }), p({
59
- testType: e,
60
- board: c,
51
+ c("SELECTED_GOAL_CATEGORY", {
52
+ goal_category: l(a),
53
+ flow: s
54
+ }), C({
55
+ testType: a,
56
+ board: u,
61
57
  chapterGoalCategory: {
62
- primaryGoalCategory: _
58
+ primaryGoalCategory: A
63
59
  },
64
60
  committed: {
65
61
  testType: !0,
@@ -70,28 +66,27 @@ const T = k(
70
66
  [
71
67
  r,
72
68
  n,
73
- s,
69
+ d,
74
70
  t,
75
71
  o,
76
- a,
77
- l,
72
+ s,
73
+ i,
74
+ C,
78
75
  m,
79
- p,
80
- d,
81
- y
76
+ c
82
77
  ]
83
78
  );
84
- return /* @__PURE__ */ i(
85
- j,
79
+ return /* @__PURE__ */ e(
80
+ T,
86
81
  {
87
- stepName: u,
88
- headerElement: /* @__PURE__ */ i(P, { $renderAs: "ab2", children: h }),
89
- bodyElement: /* @__PURE__ */ i(f, { $alignItems: "center", $height: "100%", $gapX: 5, children: /* @__PURE__ */ i(f, { $flexDirection: "row", $flexGapX: 1.5, children: /* @__PURE__ */ i(
90
- D,
82
+ stepName: p,
83
+ headerElement: /* @__PURE__ */ e(D, { $renderAs: "ab2", children: h }),
84
+ bodyElement: /* @__PURE__ */ e(y, { $alignItems: "center", $height: "100%", $gapX: 5, children: /* @__PURE__ */ e(y, { $flexDirection: "row", $flexGapX: 1.5, children: /* @__PURE__ */ e(
85
+ B,
91
86
  {
92
- options: G,
87
+ options: E,
93
88
  value: g,
94
- onChange: $,
89
+ onChange: G,
95
90
  analyticsLabel: "goal_category",
96
91
  analyticsProps: { test_type: g },
97
92
  type: "radio"
@@ -102,6 +97,6 @@ const T = k(
102
97
  }
103
98
  );
104
99
  export {
105
- T as default
100
+ Z as default
106
101
  };
107
102
  //# sourceMappingURL=test-type-step.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"test-type-step.js","sources":["../../../../../../src/features/milestone/create/comps/test-type-step/test-type-step.tsx"],"sourcesContent":["import type { IFormStepProps, IMileStoneFormFields } from '../../milestone-create-types';\n\nimport React, { memo, useCallback, useContext } from 'react';\n\nimport useTrackingContext from '../../../../ui/context/use-tracking-context';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport SelectionCards from '../../../../ui/selection-cards/selection-cards';\nimport Text from '../../../../ui/text/text';\nimport MilestoneCreateContext from '../../milestone-create-context';\nimport {\n appendPrimaryGoalCategoryToFormState,\n getCurriculumStandardsFromConfig,\n getDefaultBoard,\n} from '../../milestone-create-helpers';\nimport BodyLayout from '../body-layout/body-layout';\nimport { getCategorizedCurriculumStandards } from '../class-details-step/class-details-utils';\nimport { getGoalCategories, getTestTypeBasedCategory } from './test-type-utils';\n\nconst TestTypeStep: React.FC<IFormStepProps> = memo(\n ({\n currentStep,\n formData,\n config,\n courseStream,\n classRatio,\n onFormDataChange,\n enrollmentType,\n isTeacherTrainingAccount,\n }) => {\n const { name, title } = currentStep;\n const analyticsProps = {\n step: name,\n };\n const { testType, grade, board, region } = formData;\n\n const { flow } = useContext(MilestoneCreateContext);\n const { onEvent: trackEvent } = useTrackingContext(analyticsProps);\n\n const goalCategories = getGoalCategories(testType, config, courseStream, enrollmentType);\n\n const handleTestTypeChange = useCallback(\n (selectedTestType: NonNullable<IMileStoneFormFields['testType']>) => {\n //* This is to compensate for kids with no board.\n //* ref: https://www.notion.so/cuemath/FE-Goal-Creator-15a8897caec780f3ae21e34ce6f34371?p=1758897caec7803689f8cfc7acf5f5fc&pm=s\n const boards = getCategorizedCurriculumStandards(config, {\n grade: grade ?? '',\n goalCategory: getTestTypeBasedCategory(selectedTestType),\n countryCode: region ?? '',\n courseStream,\n classRatio,\n enrollmentType,\n flow,\n isTeacherTrainingAccount,\n });\n\n const curriculumStandards = getCurriculumStandardsFromConfig(config, {\n grade: grade ?? '',\n goalCategory: getTestTypeBasedCategory(selectedTestType),\n countryCode: region ?? '',\n courseStream,\n classRatio,\n enrollmentType,\n flow,\n isTeacherTrainingAccount,\n });\n\n const boardIsAvailableInCurriculum =\n board && curriculumStandards.some(boardData => boardData.id === board);\n\n const boardData = boardIsAvailableInCurriculum ? board : getDefaultBoard(boards);\n\n const primaryGoalCategory = appendPrimaryGoalCategoryToFormState(\n config,\n selectedTestType,\n grade,\n courseStream,\n enrollmentType,\n boardData,\n region,\n flow,\n );\n\n trackEvent('SELECTED_GOAL_CATEGORY', {\n goal_category: getTestTypeBasedCategory(selectedTestType),\n flow,\n });\n\n onFormDataChange({\n testType: selectedTestType,\n board: boardData,\n chapterGoalCategory: {\n primaryGoalCategory,\n },\n committed: {\n testType: true,\n chapterGoalCategory: true,\n },\n });\n },\n [\n enrollmentType,\n board,\n classRatio,\n config,\n courseStream,\n flow,\n isTeacherTrainingAccount,\n grade,\n onFormDataChange,\n region,\n trackEvent,\n ],\n );\n\n return (\n <BodyLayout\n stepName={name}\n headerElement={<Text $renderAs=\"ab2\">{title}</Text>}\n bodyElement={\n <FlexView $alignItems=\"center\" $height=\"100%\" $gapX={5}>\n <FlexView $flexDirection=\"row\" $flexGapX={1.5}>\n <SelectionCards\n options={goalCategories}\n value={testType}\n onChange={handleTestTypeChange}\n analyticsLabel=\"goal_category\"\n analyticsProps={{ test_type: testType }}\n type=\"radio\"\n />\n </FlexView>\n </FlexView>\n }\n />\n );\n },\n);\n\nexport default TestTypeStep;\n"],"names":["TestTypeStep","memo","currentStep","formData","config","courseStream","classRatio","onFormDataChange","enrollmentType","isTeacherTrainingAccount","name","title","analyticsProps","testType","grade","board","region","flow","useContext","MilestoneCreateContext","trackEvent","useTrackingContext","goalCategories","getGoalCategories","handleTestTypeChange","useCallback","selectedTestType","boards","getCategorizedCurriculumStandards","getTestTypeBasedCategory","curriculumStandards","getCurriculumStandardsFromConfig","boardData","getDefaultBoard","primaryGoalCategory","appendPrimaryGoalCategoryToFormState","jsx","BodyLayout","Text","FlexView","SelectionCards"],"mappings":";;;;;;;;;;;AAkBA,MAAMA,IAAyCC;AAAA,EAC7C,CAAC;AAAA,IACC,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,0BAAAC;AAAA,EAAA,MACI;AACE,UAAA,EAAE,MAAAC,GAAM,OAAAC,EAAU,IAAAT,GAClBU,IAAiB;AAAA,MACrB,MAAMF;AAAA,IAAA,GAEF,EAAE,UAAAG,GAAU,OAAAC,GAAO,OAAAC,GAAO,QAAAC,MAAWb,GAErC,EAAE,MAAAc,EAAA,IAASC,EAAWC,CAAsB,GAC5C,EAAE,SAASC,EAAW,IAAIC,EAAmBT,CAAc,GAE3DU,IAAiBC,EAAkBV,GAAUT,GAAQC,GAAcG,CAAc,GAEjFgB,IAAuBC;AAAA,MAC3B,CAACC,MAAoE;AAG7D,cAAAC,IAASC,EAAkCxB,GAAQ;AAAA,UACvD,OAAOU,KAAS;AAAA,UAChB,cAAce,EAAyBH,CAAgB;AAAA,UACvD,aAAaV,KAAU;AAAA,UACvB,cAAAX;AAAA,UACA,YAAAC;AAAA,UACA,gBAAAE;AAAA,UACA,MAAAS;AAAA,UACA,0BAAAR;AAAA,QAAA,CACD,GAEKqB,IAAsBC,EAAiC3B,GAAQ;AAAA,UACnE,OAAOU,KAAS;AAAA,UAChB,cAAce,EAAyBH,CAAgB;AAAA,UACvD,aAAaV,KAAU;AAAA,UACvB,cAAAX;AAAA,UACA,YAAAC;AAAA,UACA,gBAAAE;AAAA,UACA,MAAAS;AAAA,UACA,0BAAAR;AAAA,QAAA,CACD,GAKKuB,IAFJjB,KAASe,EAAoB,KAAK,CAAAE,MAAaA,EAAU,OAAOjB,CAAK,IAEtBA,IAAQkB,EAAgBN,CAAM,GAEzEO,IAAsBC;AAAA,UAC1B/B;AAAA,UACAsB;AAAA,UACAZ;AAAA,UACAT;AAAA,UACAG;AAAA,UACAwB;AAAA,UACAhB;AAAA,UACAC;AAAA,QAAA;AAGF,QAAAG,EAAW,0BAA0B;AAAA,UACnC,eAAeS,EAAyBH,CAAgB;AAAA,UACxD,MAAAT;AAAA,QAAA,CACD,GAEgBV,EAAA;AAAA,UACf,UAAUmB;AAAA,UACV,OAAOM;AAAA,UACP,qBAAqB;AAAA,YACnB,qBAAAE;AAAA,UACF;AAAA,UACA,WAAW;AAAA,YACT,UAAU;AAAA,YACV,qBAAqB;AAAA,UACvB;AAAA,QAAA,CACD;AAAA,MACH;AAAA,MACA;AAAA,QACE1B;AAAA,QACAO;AAAA,QACAT;AAAA,QACAF;AAAA,QACAC;AAAA,QACAY;AAAA,QACAR;AAAA,QACAK;AAAA,QACAP;AAAA,QACAS;AAAA,QACAI;AAAA,MACF;AAAA,IAAA;AAIA,WAAA,gBAAAgB;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAU3B;AAAA,QACV,eAAe,gBAAA0B,EAACE,GAAK,EAAA,WAAU,OAAO,UAAM3B,GAAA;AAAA,QAC5C,aACE,gBAAAyB,EAACG,GAAS,EAAA,aAAY,UAAS,SAAQ,QAAO,OAAO,GACnD,UAAC,gBAAAH,EAAAG,GAAA,EAAS,gBAAe,OAAM,WAAW,KACxC,UAAA,gBAAAH;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,SAASlB;AAAA,YACT,OAAOT;AAAA,YACP,UAAUW;AAAA,YACV,gBAAe;AAAA,YACf,gBAAgB,EAAE,WAAWX,EAAS;AAAA,YACtC,MAAK;AAAA,UAAA;AAAA,WAET,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;"}
1
+ {"version":3,"file":"test-type-step.js","sources":["../../../../../../src/features/milestone/create/comps/test-type-step/test-type-step.tsx"],"sourcesContent":["import type { IFormStepProps, IMileStoneFormFields } from '../../milestone-create-types';\n\nimport React, { memo, useCallback, useContext } from 'react';\n\nimport useTrackingContext from '../../../../ui/context/use-tracking-context';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport SelectionCards from '../../../../ui/selection-cards/selection-cards';\nimport Text from '../../../../ui/text/text';\nimport MilestoneCreateContext from '../../milestone-create-context';\nimport {\n appendPrimaryGoalCategoryToFormState,\n getCurriculumStandardsFromConfig,\n getDefaultBoard,\n} from '../../milestone-create-helpers';\nimport BodyLayout from '../body-layout/body-layout';\nimport { getCategorizedCurriculumStandards } from '../class-details-step/class-details-utils';\nimport { getGoalCategories, getTestTypeBasedCategory } from './test-type-utils';\n\nconst TestTypeStep: React.FC<IFormStepProps> = memo(\n ({\n currentStep,\n formData,\n config,\n courseStream,\n classRatio,\n onFormDataChange,\n enrollmentType,\n }) => {\n const { name, title } = currentStep;\n const analyticsProps = {\n step: name,\n };\n const { testType, grade, board, region } = formData;\n\n const { flow } = useContext(MilestoneCreateContext);\n const { onEvent: trackEvent } = useTrackingContext(analyticsProps);\n\n const goalCategories = getGoalCategories(testType, config, courseStream, enrollmentType);\n\n const handleTestTypeChange = useCallback(\n (selectedTestType: NonNullable<IMileStoneFormFields['testType']>) => {\n //* This is to compensate for kids with no board.\n //* ref: https://www.notion.so/cuemath/FE-Goal-Creator-15a8897caec780f3ae21e34ce6f34371?p=1758897caec7803689f8cfc7acf5f5fc&pm=s\n const boards = getCategorizedCurriculumStandards(config, {\n grade: grade ?? '',\n goalCategory: getTestTypeBasedCategory(selectedTestType),\n countryCode: region ?? '',\n courseStream,\n classRatio,\n enrollmentType,\n flow,\n });\n\n const curriculumStandards = getCurriculumStandardsFromConfig(config, {\n grade: grade ?? '',\n goalCategory: getTestTypeBasedCategory(selectedTestType),\n countryCode: region ?? '',\n courseStream,\n classRatio,\n enrollmentType,\n flow,\n });\n\n const boardIsAvailableInCurriculum =\n board && curriculumStandards.some(boardData => boardData.id === board);\n\n const boardData = boardIsAvailableInCurriculum ? board : getDefaultBoard(boards);\n\n const primaryGoalCategory = appendPrimaryGoalCategoryToFormState(\n config,\n selectedTestType,\n grade,\n courseStream,\n enrollmentType,\n boardData,\n region,\n );\n\n trackEvent('SELECTED_GOAL_CATEGORY', {\n goal_category: getTestTypeBasedCategory(selectedTestType),\n flow,\n });\n\n onFormDataChange({\n testType: selectedTestType,\n board: boardData,\n chapterGoalCategory: {\n primaryGoalCategory,\n },\n committed: {\n testType: true,\n chapterGoalCategory: true,\n },\n });\n },\n [\n enrollmentType,\n board,\n classRatio,\n config,\n courseStream,\n flow,\n grade,\n onFormDataChange,\n region,\n trackEvent,\n ],\n );\n\n return (\n <BodyLayout\n stepName={name}\n headerElement={<Text $renderAs=\"ab2\">{title}</Text>}\n bodyElement={\n <FlexView $alignItems=\"center\" $height=\"100%\" $gapX={5}>\n <FlexView $flexDirection=\"row\" $flexGapX={1.5}>\n <SelectionCards\n options={goalCategories}\n value={testType}\n onChange={handleTestTypeChange}\n analyticsLabel=\"goal_category\"\n analyticsProps={{ test_type: testType }}\n type=\"radio\"\n />\n </FlexView>\n </FlexView>\n }\n />\n );\n },\n);\n\nexport default TestTypeStep;\n"],"names":["TestTypeStep","memo","currentStep","formData","config","courseStream","classRatio","onFormDataChange","enrollmentType","name","title","analyticsProps","testType","grade","board","region","flow","useContext","MilestoneCreateContext","trackEvent","useTrackingContext","goalCategories","getGoalCategories","handleTestTypeChange","useCallback","selectedTestType","boards","getCategorizedCurriculumStandards","getTestTypeBasedCategory","curriculumStandards","getCurriculumStandardsFromConfig","boardData","getDefaultBoard","primaryGoalCategory","appendPrimaryGoalCategoryToFormState","jsx","BodyLayout","Text","FlexView","SelectionCards"],"mappings":";;;;;;;;;;;AAkBA,MAAMA,IAAyCC;AAAA,EAC7C,CAAC;AAAA,IACC,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,gBAAAC;AAAA,EAAA,MACI;AACE,UAAA,EAAE,MAAAC,GAAM,OAAAC,EAAU,IAAAR,GAClBS,IAAiB;AAAA,MACrB,MAAMF;AAAA,IAAA,GAEF,EAAE,UAAAG,GAAU,OAAAC,GAAO,OAAAC,GAAO,QAAAC,MAAWZ,GAErC,EAAE,MAAAa,EAAA,IAASC,EAAWC,CAAsB,GAC5C,EAAE,SAASC,EAAW,IAAIC,EAAmBT,CAAc,GAE3DU,IAAiBC,EAAkBV,GAAUR,GAAQC,GAAcG,CAAc,GAEjFe,IAAuBC;AAAA,MAC3B,CAACC,MAAoE;AAG7D,cAAAC,IAASC,EAAkCvB,GAAQ;AAAA,UACvD,OAAOS,KAAS;AAAA,UAChB,cAAce,EAAyBH,CAAgB;AAAA,UACvD,aAAaV,KAAU;AAAA,UACvB,cAAAV;AAAA,UACA,YAAAC;AAAA,UACA,gBAAAE;AAAA,UACA,MAAAQ;AAAA,QAAA,CACD,GAEKa,IAAsBC,EAAiC1B,GAAQ;AAAA,UACnE,OAAOS,KAAS;AAAA,UAChB,cAAce,EAAyBH,CAAgB;AAAA,UACvD,aAAaV,KAAU;AAAA,UACvB,cAAAV;AAAA,UACA,YAAAC;AAAA,UACA,gBAAAE;AAAA,UACA,MAAAQ;AAAA,QAAA,CACD,GAKKe,IAFJjB,KAASe,EAAoB,KAAK,CAAAE,MAAaA,EAAU,OAAOjB,CAAK,IAEtBA,IAAQkB,EAAgBN,CAAM,GAEzEO,IAAsBC;AAAA,UAC1B9B;AAAA,UACAqB;AAAA,UACAZ;AAAA,UACAR;AAAA,UACAG;AAAA,UACAuB;AAAA,UACAhB;AAAA,QAAA;AAGF,QAAAI,EAAW,0BAA0B;AAAA,UACnC,eAAeS,EAAyBH,CAAgB;AAAA,UACxD,MAAAT;AAAA,QAAA,CACD,GAEgBT,EAAA;AAAA,UACf,UAAUkB;AAAA,UACV,OAAOM;AAAA,UACP,qBAAqB;AAAA,YACnB,qBAAAE;AAAA,UACF;AAAA,UACA,WAAW;AAAA,YACT,UAAU;AAAA,YACV,qBAAqB;AAAA,UACvB;AAAA,QAAA,CACD;AAAA,MACH;AAAA,MACA;AAAA,QACEzB;AAAA,QACAM;AAAA,QACAR;AAAA,QACAF;AAAA,QACAC;AAAA,QACAW;AAAA,QACAH;AAAA,QACAN;AAAA,QACAQ;AAAA,QACAI;AAAA,MACF;AAAA,IAAA;AAIA,WAAA,gBAAAgB;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAU3B;AAAA,QACV,eAAe,gBAAA0B,EAACE,GAAK,EAAA,WAAU,OAAO,UAAM3B,GAAA;AAAA,QAC5C,aACE,gBAAAyB,EAACG,GAAS,EAAA,aAAY,UAAS,SAAQ,QAAO,OAAO,GACnD,UAAC,gBAAAH,EAAAG,GAAA,EAAS,gBAAe,OAAM,WAAW,KACxC,UAAA,gBAAAH;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,SAASlB;AAAA,YACT,OAAOT;AAAA,YACP,UAAUW;AAAA,YACV,gBAAe;AAAA,YACf,gBAAgB,EAAE,WAAWX,EAAS;AAAA,YACtC,MAAK;AAAA,UAAA;AAAA,WAET,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;"}
@@ -1,10 +1,10 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { h as S } from "../../../node_modules/humanize-plus/dist/humanize.js";
3
- import { memo as b, useEffect as A } from "react";
4
- import F from "../../ui/loader/app-loader/app-loader.js";
5
- import { useGetMileStoneConfig as j } from "./api/milestone-config.js";
6
- import v from "./milestone-create.js";
7
- const w = b(
2
+ import { h as P } from "../../../node_modules/humanize-plus/dist/humanize.js";
3
+ import { memo as S, useEffect as b } from "react";
4
+ import A from "../../ui/loader/app-loader/app-loader.js";
5
+ import { useGetMileStoneConfig as F } from "./api/milestone-config.js";
6
+ import j from "./milestone-create.js";
7
+ const v = S(
8
8
  ({
9
9
  studentName: n,
10
10
  studentId: r,
@@ -23,20 +23,19 @@ const w = b(
23
23
  isGoalCreation: E,
24
24
  courseStream: d,
25
25
  classRatio: x,
26
- enrollmentType: M,
27
- isTeacherTrainingAccount: D
26
+ enrollmentType: M
28
27
  }) => {
29
- const { get: o, data: t, isProcessing: P } = j();
30
- return A(() => {
28
+ const { get: o, data: t, isProcessing: D } = F();
29
+ return b(() => {
31
30
  o("", void 0);
32
- }, [o]), P ? /* @__PURE__ */ e(F, { height: "100%" }) : t ? /* @__PURE__ */ e(
33
- v,
31
+ }, [o]), D ? /* @__PURE__ */ e(A, { height: "100%" }) : t ? /* @__PURE__ */ e(
32
+ j,
34
33
  {
35
34
  flow: "CREATE",
36
35
  board: u,
37
36
  schoolData: l,
38
37
  studentId: r,
39
- studentName: S.titleCase(n),
38
+ studentName: P.titleCase(n),
40
39
  height: i,
41
40
  minHeight: a,
42
41
  formData: m,
@@ -51,13 +50,12 @@ const w = b(
51
50
  isGoalCreation: E,
52
51
  courseStream: d,
53
52
  classRatio: x,
54
- enrollmentType: M,
55
- isTeacherTrainingAccount: D
53
+ enrollmentType: M
56
54
  }
57
55
  ) : null;
58
56
  }
59
- ), $ = w;
57
+ ), T = v;
60
58
  export {
61
- $ as default
59
+ T as default
62
60
  };
63
61
  //# sourceMappingURL=milestone-create-container.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"milestone-create-container.js","sources":["../../../../src/features/milestone/create/milestone-create-container.tsx"],"sourcesContent":["import type { IMileStoneCreateContainerProps } from './milestone-create-types';\n\nimport { titleCase } from 'humanize-plus';\nimport { memo, useEffect } from 'react';\n\nimport AppLoader from '../../ui/loader/app-loader/app-loader';\nimport { useGetMileStoneConfig } from './api/milestone-config';\nimport MilestoneCreate from './milestone-create';\n\nconst MilestoneCreateContainer: React.FC<IMileStoneCreateContainerProps> = memo(\n ({\n studentName,\n studentId,\n height,\n minHeight,\n formData,\n onChapterExitWarning,\n onFormDataChange: handleFormDataChange,\n onPreSubmit: handlePreSubmit,\n onExit: handleExit,\n userType,\n board,\n schoolData,\n grade,\n currentCountryCode,\n isGoalCreation,\n courseStream,\n classRatio,\n enrollmentType,\n isTeacherTrainingAccount,\n }) => {\n const { get: getConfig, data: configData, isProcessing } = useGetMileStoneConfig();\n\n useEffect(() => {\n getConfig('', undefined);\n }, [getConfig]);\n\n if (isProcessing) return <AppLoader height=\"100%\" />;\n\n return configData ? (\n <MilestoneCreate\n flow=\"CREATE\"\n board={board}\n schoolData={schoolData}\n studentId={studentId}\n studentName={titleCase(studentName)}\n height={height}\n minHeight={minHeight}\n formData={formData}\n config={configData}\n currentCountryCode={currentCountryCode}\n onFormDataChange={handleFormDataChange}\n onChapterExitWarning={onChapterExitWarning}\n onPreSubmit={handlePreSubmit}\n onExit={handleExit}\n userType={userType}\n grade={grade}\n isGoalCreation={isGoalCreation}\n courseStream={courseStream}\n classRatio={classRatio}\n enrollmentType={enrollmentType}\n isTeacherTrainingAccount={isTeacherTrainingAccount}\n />\n ) : null;\n },\n);\n\nexport default MilestoneCreateContainer;\n"],"names":["MilestoneCreateContainer","memo","studentName","studentId","height","minHeight","formData","onChapterExitWarning","handleFormDataChange","handlePreSubmit","handleExit","userType","board","schoolData","grade","currentCountryCode","isGoalCreation","courseStream","classRatio","enrollmentType","isTeacherTrainingAccount","getConfig","configData","isProcessing","useGetMileStoneConfig","useEffect","jsx","AppLoader","MilestoneCreate","titleCase","MilestoneCreateContainer$1"],"mappings":";;;;;;AASA,MAAMA,IAAqEC;AAAA,EACzE,CAAC;AAAA,IACC,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,kBAAkBC;AAAA,IAClB,aAAaC;AAAA,IACb,QAAQC;AAAA,IACR,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,0BAAAC;AAAA,EAAA,MACI;AACJ,UAAM,EAAE,KAAKC,GAAW,MAAMC,GAAY,cAAAC,EAAA,IAAiBC;AAM3D,WAJAC,EAAU,MAAM;AACd,MAAAJ,EAAU,IAAI,MAAS;AAAA,IAAA,GACtB,CAACA,CAAS,CAAC,GAEVE,IAAsB,gBAAAG,EAAAC,GAAA,EAAU,QAAO,OAAO,CAAA,IAE3CL,IACL,gBAAAI;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAAhB;AAAA,QACA,YAAAC;AAAA,QACA,WAAAV;AAAA,QACA,aAAa0B,YAAU3B,CAAW;AAAA,QAClC,QAAAE;AAAA,QACA,WAAAC;AAAA,QACA,UAAAC;AAAA,QACA,QAAQgB;AAAA,QACR,oBAAAP;AAAA,QACA,kBAAkBP;AAAA,QAClB,sBAAAD;AAAA,QACA,aAAaE;AAAA,QACb,QAAQC;AAAA,QACR,UAAAC;AAAA,QACA,OAAAG;AAAA,QACA,gBAAAE;AAAA,QACA,cAAAC;AAAA,QACA,YAAAC;AAAA,QACA,gBAAAC;AAAA,QACA,0BAAAC;AAAA,MAAA;AAAA,IAEA,IAAA;AAAA,EACN;AACF,GAEAU,IAAe9B;"}
1
+ {"version":3,"file":"milestone-create-container.js","sources":["../../../../src/features/milestone/create/milestone-create-container.tsx"],"sourcesContent":["import type { IMileStoneCreateContainerProps } from './milestone-create-types';\n\nimport { titleCase } from 'humanize-plus';\nimport { memo, useEffect } from 'react';\n\nimport AppLoader from '../../ui/loader/app-loader/app-loader';\nimport { useGetMileStoneConfig } from './api/milestone-config';\nimport MilestoneCreate from './milestone-create';\n\nconst MilestoneCreateContainer: React.FC<IMileStoneCreateContainerProps> = memo(\n ({\n studentName,\n studentId,\n height,\n minHeight,\n formData,\n onChapterExitWarning,\n onFormDataChange: handleFormDataChange,\n onPreSubmit: handlePreSubmit,\n onExit: handleExit,\n userType,\n board,\n schoolData,\n grade,\n currentCountryCode,\n isGoalCreation,\n courseStream,\n classRatio,\n enrollmentType,\n }) => {\n const { get: getConfig, data: configData, isProcessing } = useGetMileStoneConfig();\n\n useEffect(() => {\n getConfig('', undefined);\n }, [getConfig]);\n\n if (isProcessing) return <AppLoader height=\"100%\" />;\n\n return configData ? (\n <MilestoneCreate\n flow=\"CREATE\"\n board={board}\n schoolData={schoolData}\n studentId={studentId}\n studentName={titleCase(studentName)}\n height={height}\n minHeight={minHeight}\n formData={formData}\n config={configData}\n currentCountryCode={currentCountryCode}\n onFormDataChange={handleFormDataChange}\n onChapterExitWarning={onChapterExitWarning}\n onPreSubmit={handlePreSubmit}\n onExit={handleExit}\n userType={userType}\n grade={grade}\n isGoalCreation={isGoalCreation}\n courseStream={courseStream}\n classRatio={classRatio}\n enrollmentType={enrollmentType}\n />\n ) : null;\n },\n);\n\nexport default MilestoneCreateContainer;\n"],"names":["MilestoneCreateContainer","memo","studentName","studentId","height","minHeight","formData","onChapterExitWarning","handleFormDataChange","handlePreSubmit","handleExit","userType","board","schoolData","grade","currentCountryCode","isGoalCreation","courseStream","classRatio","enrollmentType","getConfig","configData","isProcessing","useGetMileStoneConfig","useEffect","jsx","AppLoader","MilestoneCreate","titleCase","MilestoneCreateContainer$1"],"mappings":";;;;;;AASA,MAAMA,IAAqEC;AAAA,EACzE,CAAC;AAAA,IACC,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,kBAAkBC;AAAA,IAClB,aAAaC;AAAA,IACb,QAAQC;AAAA,IACR,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,gBAAAC;AAAA,EAAA,MACI;AACJ,UAAM,EAAE,KAAKC,GAAW,MAAMC,GAAY,cAAAC,EAAA,IAAiBC;AAM3D,WAJAC,EAAU,MAAM;AACd,MAAAJ,EAAU,IAAI,MAAS;AAAA,IAAA,GACtB,CAACA,CAAS,CAAC,GAEVE,IAAsB,gBAAAG,EAAAC,GAAA,EAAU,QAAO,OAAO,CAAA,IAE3CL,IACL,gBAAAI;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAAf;AAAA,QACA,YAAAC;AAAA,QACA,WAAAV;AAAA,QACA,aAAayB,YAAU1B,CAAW;AAAA,QAClC,QAAAE;AAAA,QACA,WAAAC;AAAA,QACA,UAAAC;AAAA,QACA,QAAQe;AAAA,QACR,oBAAAN;AAAA,QACA,kBAAkBP;AAAA,QAClB,sBAAAD;AAAA,QACA,aAAaE;AAAA,QACb,QAAQC;AAAA,QACR,UAAAC;AAAA,QACA,OAAAG;AAAA,QACA,gBAAAE;AAAA,QACA,cAAAC;AAAA,QACA,YAAAC;AAAA,QACA,gBAAAC;AAAA,MAAA;AAAA,IAEA,IAAA;AAAA,EACN;AACF,GAEAU,IAAe7B;"}