@cuemath/leap 3.3.32 → 3.3.33-m

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/assets/line-icons/icons/chevron-right.js.map +1 -1
  2. package/dist/features/auth/pla-signup/pla-analytics-events.js +2 -4
  3. package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
  4. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +34 -43
  5. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -1
  6. package/dist/features/chapters-v2/chapter-details/chapter-details.js +101 -140
  7. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -1
  8. package/dist/features/chapters-v2/utils/index.js +16 -20
  9. package/dist/features/chapters-v2/utils/index.js.map +1 -1
  10. package/dist/features/circle-games/game-launcher/api/get-content-for-today/get-circle-home-api.js +6 -6
  11. package/dist/features/circle-games/game-launcher/api/get-content-for-today/get-circle-home-api.js.map +1 -1
  12. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js +21 -20
  13. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js.map +1 -1
  14. package/dist/features/circle-games/games/web-view/web-view-types.js.map +1 -1
  15. package/dist/features/circle-games/sign-up/sign-up.js +6 -6
  16. package/dist/features/circle-games/sign-up/sign-up.js.map +1 -1
  17. package/dist/features/homework/hw-card-list/hw-card-list-view.js +17 -17
  18. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  19. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  20. package/dist/features/journey/journey-id/journey-id-teacher.js +2 -2
  21. package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
  22. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +0 -400
  23. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +1 -1
  24. package/dist/features/milestone/constants.js +15 -28
  25. package/dist/features/milestone/constants.js.map +1 -1
  26. package/dist/features/milestone/create/comps/goal-completion-date-selector/goal-completion-date-selector.js +6 -6
  27. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +2 -2
  28. package/dist/features/milestone/create/comps/test-type-step/test-type-utils.js +16 -23
  29. package/dist/features/milestone/create/comps/test-type-step/test-type-utils.js.map +1 -1
  30. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js +22 -28
  31. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js.map +1 -1
  32. package/dist/features/parent-dashboard/hooks/use-fetch-parent-home.js +1 -1
  33. package/dist/features/parent-dashboard/hooks/use-fetch-parent-home.js.map +1 -1
  34. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js +46 -48
  35. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js.map +1 -1
  36. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js +12 -0
  37. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js.map +1 -0
  38. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js +17 -16
  39. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js.map +1 -1
  40. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js +8 -4
  41. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js.map +1 -1
  42. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +3 -3
  43. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +1 -1
  44. package/dist/features/parent-dashboard/parent-dashboard-constants.js +4 -45
  45. package/dist/features/parent-dashboard/parent-dashboard-constants.js.map +1 -1
  46. package/dist/features/parent-dashboard/parent-dashboard-types.js +3 -3
  47. package/dist/features/parent-dashboard/parent-dashboard-types.js.map +1 -1
  48. package/dist/features/parent-dashboard/parent-dashboard-view.js +174 -197
  49. package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -1
  50. package/dist/features/stickers/sticker-selector/hooks/use-handle-sticker-send.js +36 -0
  51. package/dist/features/stickers/sticker-selector/hooks/use-handle-sticker-send.js.map +1 -0
  52. package/dist/features/stickers/sticker-selector/hooks/use-stickers-journey/use-stickers-journey.js +72 -0
  53. package/dist/features/stickers/sticker-selector/hooks/use-stickers-journey/use-stickers-journey.js.map +1 -0
  54. package/dist/features/stickers/sticker-selector/sticker-selector.js +58 -57
  55. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -1
  56. package/dist/features/stickers/stickers-effects/comps/sticker-with-fallback.js +34 -0
  57. package/dist/features/stickers/stickers-effects/comps/sticker-with-fallback.js.map +1 -0
  58. package/dist/features/stickers/stickers-effects/constants.js +26 -0
  59. package/dist/features/stickers/stickers-effects/constants.js.map +1 -0
  60. package/dist/features/stickers/stickers-effects/context/sticker-provider.js +28 -0
  61. package/dist/features/stickers/stickers-effects/context/sticker-provider.js.map +1 -0
  62. package/dist/features/stickers/stickers-effects/hooks/use-stickers.js +12 -0
  63. package/dist/features/stickers/stickers-effects/hooks/use-stickers.js.map +1 -0
  64. package/dist/features/stickers/stickers-effects/stickers-effects-helper.js.map +1 -1
  65. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js +32 -17
  66. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -1
  67. package/dist/features/stickers/stickers-effects/stickers-effects-types.js +6 -0
  68. package/dist/features/stickers/stickers-effects/stickers-effects-types.js.map +1 -0
  69. package/dist/features/stickers/stickers-effects/stickers-effects.js +40 -56
  70. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -1
  71. package/dist/features/student-details/class-details/class-details-utils.js +6 -6
  72. package/dist/features/{parent-dashboard/comps → trial-session/comps/pla}/next-steps/next-steps-constants.js +1 -1
  73. package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js.map +1 -0
  74. package/dist/features/{parent-dashboard/comps → trial-session/comps/pla}/next-steps/next-steps-styled.js +1 -1
  75. package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js.map +1 -0
  76. package/dist/features/{parent-dashboard/comps → trial-session/comps/pla}/next-steps/next-steps.js +5 -5
  77. package/dist/features/trial-session/comps/pla/next-steps/next-steps.js.map +1 -0
  78. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js +29 -0
  79. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js.map +1 -0
  80. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js +132 -0
  81. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js.map +1 -0
  82. package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js +11 -0
  83. package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js.map +1 -0
  84. package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js +19 -0
  85. package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js.map +1 -0
  86. package/dist/features/{parent-dashboard/comps → trial-session/comps/pla}/session-status/session-status-styled.js +2 -2
  87. package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js.map +1 -0
  88. package/dist/features/trial-session/comps/pla/session-status/session-status.js +127 -0
  89. package/dist/features/trial-session/comps/pla/session-status/session-status.js.map +1 -0
  90. package/dist/features/{parent-dashboard/comps → trial-session/comps/pla}/session-summary/session-summary-constants.js +2 -2
  91. package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js.map +1 -0
  92. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js +53 -0
  93. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js.map +1 -0
  94. package/dist/features/{parent-dashboard/comps → trial-session/comps/pla}/session-summary/summary-card/summary-card-styled.js +1 -1
  95. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js.map +1 -0
  96. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js +56 -0
  97. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js.map +1 -0
  98. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js.map +1 -0
  99. package/dist/features/{parent-dashboard/comps → trial-session/comps/pla}/upcoming-sessions/upcoming-sessions-styled.js +1 -1
  100. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js.map +1 -0
  101. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js.map +1 -0
  102. package/dist/features/{parent-dashboard/comps → trial-session/comps/pla}/upcoming-sessions/upcoming-sessions.js +14 -14
  103. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js.map +1 -0
  104. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +44 -43
  105. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +1 -1
  106. package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game.js +61 -60
  107. package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game.js.map +1 -1
  108. package/dist/features/trial-session/trial-session-types.js.map +1 -1
  109. package/dist/features/trial-session/trial-session-view.js +73 -71
  110. package/dist/features/trial-session/trial-session-view.js.map +1 -1
  111. package/dist/features/ui/modals/modal-styled.js +13 -45
  112. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  113. package/dist/features/ui/modals/modal.js +31 -31
  114. package/dist/features/ui/modals/modal.js.map +1 -1
  115. package/dist/index.d.ts +144 -81
  116. package/dist/index.js +301 -292
  117. package/dist/index.js.map +1 -1
  118. package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +10 -0
  119. package/dist/node_modules/date-fns/_lib/getRoundingMethod.js.map +1 -0
  120. package/dist/node_modules/date-fns/differenceInMilliseconds.js +9 -0
  121. package/dist/node_modules/date-fns/differenceInMilliseconds.js.map +1 -0
  122. package/dist/node_modules/date-fns/differenceInSeconds.js +11 -0
  123. package/dist/node_modules/date-fns/differenceInSeconds.js.map +1 -0
  124. package/package.json +1 -1
  125. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-block-journey.js +0 -86
  126. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-block-journey.js.map +0 -1
  127. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-node-journey.js +0 -140
  128. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-node-journey.js.map +0 -1
  129. package/dist/features/parent-dashboard/api/cancel-subscription.js +0 -9
  130. package/dist/features/parent-dashboard/api/cancel-subscription.js.map +0 -1
  131. package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js +0 -20
  132. package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js.map +0 -1
  133. package/dist/features/parent-dashboard/comps/billing-information/billing-information.js +0 -74
  134. package/dist/features/parent-dashboard/comps/billing-information/billing-information.js.map +0 -1
  135. package/dist/features/parent-dashboard/comps/next-steps/next-steps-constants.js.map +0 -1
  136. package/dist/features/parent-dashboard/comps/next-steps/next-steps-styled.js.map +0 -1
  137. package/dist/features/parent-dashboard/comps/next-steps/next-steps.js.map +0 -1
  138. package/dist/features/parent-dashboard/comps/session-status/hooks/use-countdown.js +0 -34
  139. package/dist/features/parent-dashboard/comps/session-status/hooks/use-countdown.js.map +0 -1
  140. package/dist/features/parent-dashboard/comps/session-status/hooks/use-session-status-config.js +0 -137
  141. package/dist/features/parent-dashboard/comps/session-status/hooks/use-session-status-config.js.map +0 -1
  142. package/dist/features/parent-dashboard/comps/session-status/session-status-constants.js +0 -20
  143. package/dist/features/parent-dashboard/comps/session-status/session-status-constants.js.map +0 -1
  144. package/dist/features/parent-dashboard/comps/session-status/session-status-helpers.js +0 -19
  145. package/dist/features/parent-dashboard/comps/session-status/session-status-helpers.js.map +0 -1
  146. package/dist/features/parent-dashboard/comps/session-status/session-status-styled.js.map +0 -1
  147. package/dist/features/parent-dashboard/comps/session-status/session-status.js +0 -124
  148. package/dist/features/parent-dashboard/comps/session-status/session-status.js.map +0 -1
  149. package/dist/features/parent-dashboard/comps/session-summary/session-summary-constants.js.map +0 -1
  150. package/dist/features/parent-dashboard/comps/session-summary/session-summary.js +0 -53
  151. package/dist/features/parent-dashboard/comps/session-summary/session-summary.js.map +0 -1
  152. package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card-styled.js.map +0 -1
  153. package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card.js +0 -63
  154. package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card.js.map +0 -1
  155. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions-constants.js.map +0 -1
  156. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions-styled.js.map +0 -1
  157. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions-types.js.map +0 -1
  158. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions.js.map +0 -1
  159. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.js +0 -21
  160. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.js.map +0 -1
  161. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js +0 -85
  162. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js.map +0 -1
  163. package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js +0 -23
  164. package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js.map +0 -1
  165. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.js +0 -55
  166. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.js.map +0 -1
  167. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js +0 -71
  168. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js.map +0 -1
  169. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js +0 -119
  170. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js.map +0 -1
  171. package/dist/features/parent-dashboard/modals/hooks/use-pla-model-handlers.js +0 -58
  172. package/dist/features/parent-dashboard/modals/hooks/use-pla-model-handlers.js.map +0 -1
  173. package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js +0 -76
  174. package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js.map +0 -1
  175. /package/dist/features/{parent-dashboard/comps → trial-session/comps/pla}/upcoming-sessions/upcoming-sessions-constants.js +0 -0
  176. /package/dist/features/{parent-dashboard/comps → trial-session/comps/pla}/upcoming-sessions/upcoming-sessions-types.js +0 -0
@@ -1,9 +1,13 @@
1
- import o from "styled-components";
2
- import t from "../../../ui/layout/flex-view.js";
3
- const i = o(t)`
1
+ import t from "styled-components";
2
+ import e from "../../../ui/layout/flex-view.js";
3
+ const r = t(e)`
4
+ width: 100%;
4
5
  max-height: 90vh;
6
+ ${({ theme: i }) => i.mediaQueries.minWidthTablet} {
7
+ max-width: 720px;
8
+ }
5
9
  `;
6
10
  export {
7
- i as Container
11
+ r as Container
8
12
  };
9
13
  //# sourceMappingURL=trial-report-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"trial-report-styled.js","sources":["../../../../../src/features/parent-dashboard/modals/trial-report/trial-report-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Container = styled(FlexView)`\n max-height: 90vh;\n`;\n"],"names":["Container","styled","FlexView"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA;"}
1
+ {"version":3,"file":"trial-report-styled.js","sources":["../../../../../src/features/parent-dashboard/modals/trial-report/trial-report-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Container = styled(FlexView)`\n width: 100%;\n max-height: 90vh;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-width: 720px;\n }\n`;\n"],"names":["Container","styled","FlexView","theme"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA;AAAA,IAGpC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;"}
@@ -11,19 +11,19 @@ const s = o(t)`
11
11
  ${({ theme: e }) => e.mediaQueries.minWidthTablet} {
12
12
  max-height: unset;
13
13
  overflow-y: hidden;
14
- }
14
+ })}
15
15
  `, m = o(t)`
16
16
  padding-top: 0;
17
17
  ${({ theme: e }) => e.mediaQueries.minWidthTablet} {
18
18
  max-height: 300px;
19
19
  overflow-y: auto;
20
- }
20
+ })}
21
21
  `, x = o(t)`
22
22
  padding-bottom: 24px;
23
23
  ${({ theme: e }) => e.mediaQueries.minWidthTablet} {
24
24
  border-top: ${({ theme: e }) => `1px solid ${e.colors.BLACK_5}`};
25
25
  padding-bottom: 40px;
26
- }
26
+ })}
27
27
  `, c = o.textarea(({ theme: e }) => {
28
28
  const {
29
29
  colors: { WHITE: i, WHITE_T_38: r, BLACK_2: n, BLACK_5: a },
@@ -1 +1 @@
1
- {"version":3,"file":"tutor-change-styled.js","sources":["../../../../../src/features/parent-dashboard/modals/tutor-change/tutor-change-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Container = styled(FlexView)`\n border: ${({ theme }) => `1px solid ${theme.colors.BLACK_5}`};\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-width: 560px;\n }\n`;\n\nexport const OuterWrapper = styled(FlexView)`\n overflow-y: auto;\n max-height: 468px;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-height: unset;\n overflow-y: hidden;\n }\n`;\n\nexport const ContentWrapper = styled(FlexView)`\n padding-top: 0;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-height: 300px;\n overflow-y: auto;\n }\n`;\n\nexport const FooterWrapper = styled(FlexView)`\n padding-bottom: 24px;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n border-top: ${({ theme }) => `1px solid ${theme.colors.BLACK_5}`};\n padding-bottom: 40px;\n }\n`;\n\nexport const StyledTextArea = styled.textarea(({ theme }) => {\n const {\n colors: { WHITE, WHITE_T_38, BLACK_2, BLACK_5 },\n layout: { gutter },\n } = theme;\n\n return `border: 1px solid ${BLACK_5};\n width: 100%;\n min-height: ${gutter * 5}px;\n padding: 16px;\n background-color: ${BLACK_2};\n white-space: pre-line;\n font-family: 'Untitled Sans Regular';\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n color: ${WHITE};\n resize: none;\n outline: none;\n &::placeholder {\n color: ${WHITE_T_38};\n }\n\n &:focus {\n outline: none;\n }\n`;\n});\n"],"names":["Container","styled","FlexView","theme","OuterWrapper","ContentWrapper","FooterWrapper","StyledTextArea","WHITE","WHITE_T_38","BLACK_2","BLACK_5","gutter"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA,YAC5B,CAAC,EAAE,OAAAC,EAAM,MAAM,aAAaA,EAAM,OAAO,OAAO,EAAE;AAAA,IAC1D,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA,GAKvCC,IAAeH,EAAOC,CAAQ;AAAA;AAAA;AAAA,IAGvC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;AAAA,GAMvCE,IAAiBJ,EAAOC,CAAQ;AAAA;AAAA,IAEzC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;AAAA,GAMvCG,IAAgBL,EAAOC,CAAQ;AAAA;AAAA,IAExC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA,kBAClC,CAAC,EAAE,OAAAA,EAAM,MAAM,aAAaA,EAAM,OAAO,OAAO,EAAE;AAAA;AAAA;AAAA,GAKvDI,IAAiBN,EAAO,SAAS,CAAC,EAAE,OAAAE,QAAY;AACrD,QAAA;AAAA,IACJ,QAAQ,EAAE,OAAAK,GAAO,YAAAC,GAAY,SAAAC,GAAS,SAAAC,EAAQ;AAAA,IAC9C,QAAQ,EAAE,QAAAC,EAAO;AAAA,EACf,IAAAT;AAEJ,SAAO,qBAAqBQ,CAAO;AAAA;AAAA,gBAErBC,IAAS,CAAC;AAAA;AAAA,sBAEJF,CAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAMlBF,CAAK;AAAA;AAAA;AAAA;AAAA,aAIHC,CAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOvB,CAAC;"}
1
+ {"version":3,"file":"tutor-change-styled.js","sources":["../../../../../src/features/parent-dashboard/modals/tutor-change/tutor-change-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Container = styled(FlexView)`\n border: ${({ theme }) => `1px solid ${theme.colors.BLACK_5}`};\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-width: 560px;\n }\n`;\n\nexport const OuterWrapper = styled(FlexView)`\n overflow-y: auto;\n max-height: 468px;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-height: unset;\n overflow-y: hidden;\n })}\n`;\n\nexport const ContentWrapper = styled(FlexView)`\n padding-top: 0;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-height: 300px;\n overflow-y: auto;\n })}\n`;\n\nexport const FooterWrapper = styled(FlexView)`\n padding-bottom: 24px;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n border-top: ${({ theme }) => `1px solid ${theme.colors.BLACK_5}`};\n padding-bottom: 40px;\n })}\n`;\n\nexport const StyledTextArea = styled.textarea(({ theme }) => {\n const {\n colors: { WHITE, WHITE_T_38, BLACK_2, BLACK_5 },\n layout: { gutter },\n } = theme;\n\n return `border: 1px solid ${BLACK_5};\n width: 100%;\n min-height: ${gutter * 5}px;\n padding: 16px;\n background-color: ${BLACK_2};\n white-space: pre-line;\n font-family: 'Untitled Sans Regular';\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n color: ${WHITE};\n resize: none;\n outline: none;\n &::placeholder {\n color: ${WHITE_T_38};\n }\n\n &:focus {\n outline: none;\n }\n`;\n});\n"],"names":["Container","styled","FlexView","theme","OuterWrapper","ContentWrapper","FooterWrapper","StyledTextArea","WHITE","WHITE_T_38","BLACK_2","BLACK_5","gutter"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA,YAC5B,CAAC,EAAE,OAAAC,EAAM,MAAM,aAAaA,EAAM,OAAO,OAAO,EAAE;AAAA,IAC1D,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA,GAKvCC,IAAeH,EAAOC,CAAQ;AAAA;AAAA;AAAA,IAGvC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;AAAA,GAMvCE,IAAiBJ,EAAOC,CAAQ;AAAA;AAAA,IAEzC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;AAAA,GAMvCG,IAAgBL,EAAOC,CAAQ;AAAA;AAAA,IAExC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA,kBAClC,CAAC,EAAE,OAAAA,EAAM,MAAM,aAAaA,EAAM,OAAO,OAAO,EAAE;AAAA;AAAA;AAAA,GAKvDI,IAAiBN,EAAO,SAAS,CAAC,EAAE,OAAAE,QAAY;AACrD,QAAA;AAAA,IACJ,QAAQ,EAAE,OAAAK,GAAO,YAAAC,GAAY,SAAAC,GAAS,SAAAC,EAAQ;AAAA,IAC9C,QAAQ,EAAE,QAAAC,EAAO;AAAA,EACf,IAAAT;AAEJ,SAAO,qBAAqBQ,CAAO;AAAA;AAAA,gBAErBC,IAAS,CAAC;AAAA;AAAA,sBAEJF,CAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAMlBF,CAAK;AAAA;AAAA;AAAA;AAAA,aAIHC,CAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOvB,CAAC;"}
@@ -1,5 +1,4 @@
1
- import { EPLAState as e } from "./parent-dashboard-types.js";
2
- const l = {
1
+ const a = {
3
2
  small: 40,
4
3
  medium: 40,
5
4
  large: 80,
@@ -9,7 +8,7 @@ const l = {
9
8
  large: 24,
10
9
  extraLarge: 80
11
10
  }
12
- }, E = {
11
+ }, e = {
13
12
  small: 16,
14
13
  medium: 24,
15
14
  large: 40,
@@ -19,49 +18,9 @@ const l = {
19
18
  large: 22,
20
19
  extraLarge: 40
21
20
  }
22
- }, t = [
23
- e.SUBSCRIPTION_CANCELLED_AFTER_PAYMENT,
24
- e.SUBSCRIPTION_CANCELLED_AFTER_TRIAL_BEFORE_PAYMENT,
25
- e.SUBSCRIPTION_CANCELLED_BEFORE_TRIAL
26
- ], s = [
27
- e.TRIAL_COMPLETED_PAYMENT_PENDING,
28
- e.TRIAL_COMPLETED_PAYMENT_SUCCESSFUL,
29
- e.REGULAR_CLASS_COMPLETED
30
- ], T = [
31
- e.CARD_ADDED_SEARCHING_TUTOR,
32
- e.CARD_ADDED_TUTOR_ASSIGNED,
33
- ...s
34
- ], S = {
35
- plaState: null,
36
- sessionDetails: null,
37
- teacherDetails: null,
38
- billingDetails: null,
39
- isOnlyTrialDone: !1,
40
- isRegularClassDone: !1,
41
- isTrialDone: !1,
42
- isSubscriptionCancelled: !1,
43
- isCardDeclined: !1,
44
- cardOnFileNotAvailable: !1,
45
- isTutorNoShow: !1,
46
- isStudentNoShow: !1,
47
- completedSessions: 0,
48
- nextSessionEnd: 0,
49
- nextSessionStart: 0,
50
- upcomingSessions: [],
51
- teacherName: "",
52
- showLoading: !0,
53
- demoId: "",
54
- userAttemptId: "",
55
- isProcessingFailed: !1,
56
- canChangeTutor: !1,
57
- showPLAIntroduction: !1
58
21
  };
59
22
  export {
60
- S as DEFAULT_LOADING_STATE,
61
- l as DESKTOP_SPACING,
62
- E as MOBILE_SPACING,
63
- T as PLA_INTRO_ELIGIBLE_STATES,
64
- t as SUBSCRIPTION_CANCELLED_STATES,
65
- s as TRIAL_COMPLETED_STATES
23
+ a as DESKTOP_SPACING,
24
+ e as MOBILE_SPACING
66
25
  };
67
26
  //# sourceMappingURL=parent-dashboard-constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parent-dashboard-constants.js","sources":["../../../src/features/parent-dashboard/parent-dashboard-constants.ts"],"sourcesContent":["import { EPLAState, type IUseParentHomeDataReturn } from './parent-dashboard-types';\n\nexport const MODAL_KEYS = {\n STUDENT_PROFILE: 'studentProfile',\n INSIGHTS: 'insights',\n LEARNING_PLAN: 'learningPlan',\n CHANGE_TUTOR: 'pla-change-tutor',\n STUDENT_PROFILE_SUMMARY: 'student-profile-summary',\n} as const;\n\nexport const DESKTOP_SPACING = {\n small: 40,\n medium: 40,\n large: 80,\n separator: {\n small: 12,\n medium: 20,\n large: 24,\n extraLarge: 80,\n },\n} as const;\n\nexport const MOBILE_SPACING = {\n small: 16,\n medium: 24,\n large: 40,\n separator: {\n small: 8,\n medium: 16,\n large: 22,\n extraLarge: 40,\n },\n} as const;\n\nexport const SUBSCRIPTION_CANCELLED_STATES = [\n EPLAState.SUBSCRIPTION_CANCELLED_AFTER_PAYMENT,\n EPLAState.SUBSCRIPTION_CANCELLED_AFTER_TRIAL_BEFORE_PAYMENT,\n EPLAState.SUBSCRIPTION_CANCELLED_BEFORE_TRIAL,\n];\n\nexport const TRIAL_COMPLETED_STATES = [\n EPLAState.TRIAL_COMPLETED_PAYMENT_PENDING,\n EPLAState.TRIAL_COMPLETED_PAYMENT_SUCCESSFUL,\n EPLAState.REGULAR_CLASS_COMPLETED,\n];\n\nexport const PLA_INTRO_ELIGIBLE_STATES = [\n EPLAState.CARD_ADDED_SEARCHING_TUTOR,\n EPLAState.CARD_ADDED_TUTOR_ASSIGNED,\n ...TRIAL_COMPLETED_STATES,\n];\n\nexport const DEFAULT_LOADING_STATE: IUseParentHomeDataReturn = {\n plaState: null,\n sessionDetails: null,\n teacherDetails: null,\n billingDetails: null,\n isOnlyTrialDone: false,\n isRegularClassDone: false,\n isTrialDone: false,\n isSubscriptionCancelled: false,\n isCardDeclined: false,\n cardOnFileNotAvailable: false,\n isTutorNoShow: false,\n isStudentNoShow: false,\n completedSessions: 0,\n nextSessionEnd: 0,\n nextSessionStart: 0,\n upcomingSessions: [],\n teacherName: '',\n showLoading: true,\n demoId: '',\n userAttemptId: '',\n isProcessingFailed: false,\n canChangeTutor: false,\n showPLAIntroduction: false,\n};\n"],"names":["DESKTOP_SPACING","MOBILE_SPACING","SUBSCRIPTION_CANCELLED_STATES","EPLAState","TRIAL_COMPLETED_STATES","PLA_INTRO_ELIGIBLE_STATES","DEFAULT_LOADING_STATE"],"mappings":";AAUO,MAAMA,IAAkB;AAAA,EAC7B,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,WAAW;AAAA,IACT,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,YAAY;AAAA,EACd;AACF,GAEaC,IAAiB;AAAA,EAC5B,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,WAAW;AAAA,IACT,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,YAAY;AAAA,EACd;AACF,GAEaC,IAAgC;AAAA,EAC3CC,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AACZ,GAEaC,IAAyB;AAAA,EACpCD,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AACZ,GAEaE,IAA4B;AAAA,EACvCF,EAAU;AAAA,EACVA,EAAU;AAAA,EACV,GAAGC;AACL,GAEaE,IAAkD;AAAA,EAC7D,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,oBAAoB;AAAA,EACpB,aAAa;AAAA,EACb,yBAAyB;AAAA,EACzB,gBAAgB;AAAA,EAChB,wBAAwB;AAAA,EACxB,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EACnB,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,kBAAkB,CAAC;AAAA,EACnB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,oBAAoB;AAAA,EACpB,gBAAgB;AAAA,EAChB,qBAAqB;AACvB;"}
1
+ {"version":3,"file":"parent-dashboard-constants.js","sources":["../../../src/features/parent-dashboard/parent-dashboard-constants.ts"],"sourcesContent":["export const MODAL_KEYS = {\n STUDENT_PROFILE: 'studentProfile',\n INSIGHTS: 'insights',\n LEARNING_PLAN: 'learningPlan',\n CHANGE_TUTOR: 'pla-change-tutor',\n STUDENT_PROFILE_SUMMARY: 'student-profile-summary',\n} as const;\n\nexport const DESKTOP_SPACING = {\n small: 40,\n medium: 40,\n large: 80,\n separator: {\n small: 12,\n medium: 20,\n large: 24,\n extraLarge: 80,\n },\n} as const;\n\nexport const MOBILE_SPACING = {\n small: 16,\n medium: 24,\n large: 40,\n separator: {\n small: 8,\n medium: 16,\n large: 22,\n extraLarge: 40,\n },\n} as const;\n"],"names":["DESKTOP_SPACING","MOBILE_SPACING"],"mappings":"AAQO,MAAMA,IAAkB;AAAA,EAC7B,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,WAAW;AAAA,IACT,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,YAAY;AAAA,EACd;AACF,GAEaC,IAAiB;AAAA,EAC5B,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,WAAW;AAAA,IACT,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,YAAY;AAAA,EACd;AACF;"}
@@ -1,6 +1,6 @@
1
- var T = /* @__PURE__ */ ((_) => (_.STUDENT_PROFILE = "studentProfile", _.INSIGHTS = "insights", _.LEARNING_PLAN = "learningPlan", _))(T || {}), e = /* @__PURE__ */ ((_) => (_.NO_CARD_ON_FILE = "no_card_on_file", _.CARD_ADDED_SEARCHING_TUTOR = "card_added_searching_tutor", _.CARD_ADDED_TUTOR_ASSIGNED = "card_added_tutor_assigned", _.TRIAL_TUTOR_NO_SHOW = "trial_tutor_no_show", _.TRIAL_STUDENT_NO_SHOW = "trial_student_no_show", _.TRIAL_COMPLETED_PAYMENT_PENDING = "trial_completed_payment_pending", _.TRIAL_COMPLETED_CARD_DECLINED = "trial_completed_card_declined", _.TRIAL_COMPLETED_PAYMENT_SUCCESSFUL = "trial_completed_payment_successful", _.REGULAR_CLASS_COMPLETED = "regular_class_completed", _.SUBSCRIPTION_CANCELLED_BEFORE_TRIAL = "cancelled_before_trial", _.SUBSCRIPTION_CANCELLED_AFTER_TRIAL_BEFORE_PAYMENT = "cancelled_after_trial_before_payment", _.SUBSCRIPTION_CANCELLED_AFTER_PAYMENT = "cancelled_after_payment", _))(e || {});
1
+ var N = /* @__PURE__ */ ((_) => (_.S_NO_SHOW = "S_NO_SHOW", _.T_NO_SHOW = "T_NO_SHOW", _))(N || {}), O = /* @__PURE__ */ ((_) => (_.STUDENT_PROFILE = "studentProfile", _.INSIGHTS = "insights", _.LEARNING_PLAN = "learningPlan", _))(O || {});
2
2
  export {
3
- e as EPLAState,
4
- T as ESummaryType
3
+ N as EClassStatus,
4
+ O as ESummaryType
5
5
  };
6
6
  //# sourceMappingURL=parent-dashboard-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parent-dashboard-types.js","sources":["../../../src/features/parent-dashboard/parent-dashboard-types.ts"],"sourcesContent":["import type { TSession } from './comps/upcoming-sessions/upcoming-sessions-types';\nimport type { ReactElement } from 'react';\n\nexport interface ISessionDetails {\n completed_sessions: number;\n next_session_start: number;\n next_session_end: number;\n student_demo_id: string;\n upcoming_sessions: TSession[];\n user_attempt_id?: string;\n}\n\ninterface IDegreeInfo {\n degree_name: string;\n degree_code: string;\n field_of_study: string;\n}\nexport interface ITeacherDetails {\n first_name: string;\n last_name: string;\n years_of_experience: number;\n number_of_students_taught: number;\n lower_grade: string;\n higher_grade: string;\n degree: IDegreeInfo;\n countries: string[];\n teacher_profile_url: string;\n header_image: string;\n}\n\nexport interface IPaymentMethodDetails {\n brand: string;\n last_4_digits: string;\n type: string;\n exp_month: number;\n exp_year: number;\n}\n\nexport interface IBillingDetails {\n amount: number;\n cycle_frequency: string;\n next_due_date: string;\n payment_method_details: IPaymentMethodDetails;\n}\n\nexport interface IParentHome {\n pla_state: EPLAState;\n session_details: ISessionDetails;\n teacher_details: ITeacherDetails | null;\n billing_details: IBillingDetails;\n}\n\nexport interface IStudentProfileSummary {\n studentLevel: string;\n studentObjectives: string[] | string;\n learningPlan: string[] | string;\n levelPreference?: string;\n}\n\nexport interface IOnViewSummaryParams extends IStudentProfileSummary {\n userAttemptId?: string | null;\n}\nexport enum ESummaryType {\n STUDENT_PROFILE = 'studentProfile',\n INSIGHTS = 'insights',\n LEARNING_PLAN = 'learningPlan',\n}\n\nexport interface IParentDashboardProps {\n studentName: string;\n studentId: string;\n onRescheduleDemo: (demoId?: string | null) => void;\n onChangeTutor: (demoId?: string | null) => void;\n onGetStartedAgain?: () => void;\n onViewSummary?: (key: ESummaryType, summaryData: IOnViewSummaryParams) => void;\n onSwitchUser?: () => void;\n HeaderAvatar: ReactElement;\n}\n\nexport interface ISpacingConfig {\n small: number;\n medium: number;\n large: number;\n separator: {\n small: number;\n medium: number;\n large: number;\n extraLarge: number;\n };\n}\n\nexport enum EPLAState {\n // Initial Setup Phase\n NO_CARD_ON_FILE = 'no_card_on_file',\n CARD_ADDED_SEARCHING_TUTOR = 'card_added_searching_tutor',\n CARD_ADDED_TUTOR_ASSIGNED = 'card_added_tutor_assigned',\n TRIAL_TUTOR_NO_SHOW = 'trial_tutor_no_show',\n TRIAL_STUDENT_NO_SHOW = 'trial_student_no_show',\n\n // Post-Trial Payment Phase\n TRIAL_COMPLETED_PAYMENT_PENDING = 'trial_completed_payment_pending',\n TRIAL_COMPLETED_CARD_DECLINED = 'trial_completed_card_declined',\n TRIAL_COMPLETED_PAYMENT_SUCCESSFUL = 'trial_completed_payment_successful',\n\n // Active Subscription Phase\n REGULAR_CLASS_COMPLETED = 'regular_class_completed',\n\n // Cancellation States\n SUBSCRIPTION_CANCELLED_BEFORE_TRIAL = 'cancelled_before_trial',\n SUBSCRIPTION_CANCELLED_AFTER_TRIAL_BEFORE_PAYMENT = 'cancelled_after_trial_before_payment',\n SUBSCRIPTION_CANCELLED_AFTER_PAYMENT = 'cancelled_after_payment',\n}\n\nexport interface IUseParentHomeDataReturn {\n plaState: EPLAState | null;\n sessionDetails: ISessionDetails | null;\n teacherDetails: ITeacherDetails | null;\n billingDetails: IBillingDetails | null;\n completedSessions: number;\n nextSessionEnd: number;\n nextSessionStart: number;\n teacherName: string;\n upcomingSessions: TSession[];\n isTrialDone: boolean;\n isOnlyTrialDone: boolean;\n isRegularClassDone: boolean;\n isCardDeclined: boolean;\n isSubscriptionCancelled: boolean;\n cardOnFileNotAvailable: boolean;\n isTutorNoShow: boolean;\n isStudentNoShow: boolean;\n showLoading: boolean;\n demoId: string | null;\n userAttemptId: string | null;\n isProcessingFailed: boolean;\n canChangeTutor: boolean;\n showPLAIntroduction?: boolean;\n}\n"],"names":["ESummaryType","EPLAState"],"mappings":"AA8DY,IAAAA,sBAAAA,OACVA,EAAA,kBAAkB,kBAClBA,EAAA,WAAW,YACXA,EAAA,gBAAgB,gBAHNA,IAAAA,KAAA,CAAA,CAAA,GA6BAC,sBAAAA,OAEVA,EAAA,kBAAkB,mBAClBA,EAAA,6BAA6B,8BAC7BA,EAAA,4BAA4B,6BAC5BA,EAAA,sBAAsB,uBACtBA,EAAA,wBAAwB,yBAGxBA,EAAA,kCAAkC,mCAClCA,EAAA,gCAAgC,iCAChCA,EAAA,qCAAqC,sCAGrCA,EAAA,0BAA0B,2BAG1BA,EAAA,sCAAsC,0BACtCA,EAAA,oDAAoD,wCACpDA,EAAA,uCAAuC,2BAnB7BA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"parent-dashboard-types.js","sources":["../../../src/features/parent-dashboard/parent-dashboard-types.ts"],"sourcesContent":["import type { TSession } from '../trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types';\nimport type { ReactElement } from 'react';\n\nexport enum EClassStatus {\n S_NO_SHOW = 'S_NO_SHOW',\n T_NO_SHOW = 'T_NO_SHOW',\n}\nexport interface ISessionDetails {\n completed_sessions: number;\n next_session_start: number;\n next_session_end: number;\n student_demo_id: string;\n upcoming_sessions: TSession[];\n demo_class_status: EClassStatus | null;\n user_attempt_id?: string;\n}\n\ninterface IDegreeInfo {\n degree_name: string;\n degree_code: string;\n field_of_study: string;\n}\nexport interface ITeacherDetails {\n first_name: string;\n last_name: string;\n years_of_experience: number;\n number_of_students_taught: number;\n lower_grade: string;\n higher_grade: string;\n degree: IDegreeInfo;\n countries: string[];\n teacher_profile_url: string;\n header_image: string;\n}\n\ninterface PaymentMethodDetails {\n brand: string;\n last_4_digits: string;\n type: string;\n exp_month: number;\n exp_year: number;\n}\n\ninterface IBillingDetails {\n amount: number;\n next_due_date: string;\n payment_method_details: PaymentMethodDetails;\n}\n\nexport interface IParentHome {\n session_details: ISessionDetails;\n teacher_details: ITeacherDetails | null;\n billing_details: IBillingDetails;\n}\n\nexport interface IStudentProfileSummary {\n studentLevel: string;\n studentObjectives: string[] | string;\n learningPlan: string[] | string;\n levelPreference?: string;\n}\n\nexport interface IOnViewSummaryParams extends IStudentProfileSummary {\n userAttemptId?: string | null;\n}\nexport enum ESummaryType {\n STUDENT_PROFILE = 'studentProfile',\n INSIGHTS = 'insights',\n LEARNING_PLAN = 'learningPlan',\n}\n\nexport interface IParentDashboardProps {\n studentName: string;\n studentId: string;\n onRescheduleDemo: (demoId?: string | null) => void;\n onChangeTutor: (demoId?: string | null) => void;\n onGetStartedAgain?: () => void;\n onViewSummary?: (key: ESummaryType, summaryData: IOnViewSummaryParams) => void;\n onSwitchUser?: () => void;\n canChangeTutor: boolean;\n isSubscriptionCancelled: boolean;\n HeaderAvatar: ReactElement;\n}\n\nexport interface ISpacingConfig {\n small: number;\n medium: number;\n large: number;\n separator: {\n small: number;\n medium: number;\n large: number;\n extraLarge: number;\n };\n}\n"],"names":["EClassStatus","ESummaryType"],"mappings":"AAGY,IAAAA,sBAAAA,OACVA,EAAA,YAAY,aACZA,EAAA,YAAY,aAFFA,IAAAA,KAAA,CAAA,CAAA,GA8DAC,sBAAAA,OACVA,EAAA,kBAAkB,kBAClBA,EAAA,WAAW,YACXA,EAAA,gBAAgB,gBAHNA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1,231 +1,208 @@
1
- import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import { memo as hr, useMemo as t, useCallback as g } from "react";
3
- import { useTheme as pr } from "styled-components";
4
- import ur from "../auth/pla-signup/onboarding-guide/onboarding-guide.js";
5
- import dr from "../auth/pla-signup/signup-header/signup-header.js";
6
- import Z from "../trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js";
7
- import fr from "../ui/buttons/button/button.js";
8
- import gr from "../ui/buttons/text-button/text-button.js";
9
- import Sr from "../ui/error/error.js";
10
- import i from "../ui/layout/flex-view.js";
11
- import xr from "../ui/loader/app-loader/app-loader.js";
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { memo as Z, useCallback as t, useMemo as ee } from "react";
3
+ import { useTheme as re } from "styled-components";
4
+ import te from "../auth/pla-signup/onboarding-guide/onboarding-guide.js";
5
+ import oe from "../auth/pla-signup/signup-header/signup-header.js";
6
+ import ne from "../trial-session/comps/pla/next-steps/next-steps.js";
7
+ import ae from "../trial-session/comps/pla/session-status/session-status.js";
8
+ import ie from "../trial-session/comps/pla/session-summary/session-summary.js";
9
+ import se from "../trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js";
10
+ import q from "../trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js";
11
+ import le from "../ui/buttons/button/button.js";
12
+ import me from "../ui/buttons/text-button/text-button.js";
13
+ import ce from "../ui/error/error.js";
14
+ import n from "../ui/layout/flex-view.js";
15
+ import he from "../ui/loader/app-loader/app-loader.js";
12
16
  import a from "../ui/separator/separator.js";
13
- import rr from "../ui/text/text.js";
14
- import { EDeviceType as Tr } from "../ui/theme/constants.js";
15
- import { invalidateParentHome as br } from "./api/parent-home.js";
16
- import Cr from "./comps/billing-information/billing-information.js";
17
- import Lr from "./comps/compact-header/compact-header.js";
18
- import Pr from "./comps/cuemath-app-features/cuemath-app-features.js";
19
- import Dr from "./comps/math-practice/math-practice.js";
20
- import $r from "./comps/next-steps/next-steps.js";
21
- import Ar from "./comps/parent-dashboard-faqs/parent-dashboard-faqs.js";
22
- import yr from "./comps/session-status/session-status.js";
23
- import Mr from "./comps/session-summary/session-summary.js";
24
- import Er from "./comps/upcoming-sessions/upcoming-sessions.js";
25
- import Ir from "./hooks/use-parent-home-data.js";
26
- import Or from "./hooks/use-student-profile-summary-data.js";
27
- import { usePLAModalHandlers as wr } from "./modals/hooks/use-pla-model-handlers.js";
28
- import { MOBILE_SPACING as Hr, DESKTOP_SPACING as kr } from "./parent-dashboard-constants.js";
29
- import { MathPracticeWrapper as Br, Container as Fr, ContentWrapper as Wr } from "./parent-dashboard-styled.js";
30
- const de = hr(
17
+ import G from "../ui/text/text.js";
18
+ import { EDeviceType as pe } from "../ui/theme/constants.js";
19
+ import { invalidateParentHome as de } from "./api/parent-home.js";
20
+ import ue from "./comps/compact-header/compact-header.js";
21
+ import fe from "./comps/cuemath-app-features/cuemath-app-features.js";
22
+ import ge from "./comps/math-practice/math-practice.js";
23
+ import Se from "./comps/parent-dashboard-faqs/parent-dashboard-faqs.js";
24
+ import xe from "./hooks/use-parent-home-data.js";
25
+ import be from "./hooks/use-student-profile-summary-data.js";
26
+ import { MOBILE_SPACING as Le, DESKTOP_SPACING as Ce } from "./parent-dashboard-constants.js";
27
+ import { MathPracticeWrapper as Te, Container as $e, ContentWrapper as Pe } from "./parent-dashboard-styled.js";
28
+ const Ye = Z(
31
29
  ({
32
30
  studentName: l,
33
- studentId: c,
34
- onRescheduleDemo: C,
35
- onViewSummary: h,
36
- onGetStartedAgain: S,
37
- onChangeTutor: L,
38
- onSwitchUser: P,
39
- HeaderAvatar: er
31
+ studentId: m,
32
+ onRescheduleDemo: f,
33
+ onViewSummary: c,
34
+ onGetStartedAgain: d,
35
+ onChangeTutor: g,
36
+ canChangeTutor: S,
37
+ onSwitchUser: x,
38
+ isSubscriptionCancelled: K,
39
+ HeaderAvatar: z
40
40
  }) => {
41
- const { device: tr } = pr(), p = tr <= Tr.MOBILE, or = Ir(c), {
42
- isStudentNoShow: D,
43
- isTutorNoShow: $,
44
- teacherDetails: s,
45
- billingDetails: u,
46
- teacherName: x,
47
- completedSessions: A,
48
- nextSessionStart: y,
49
- nextSessionEnd: M,
50
- upcomingSessions: E,
51
- isTrialDone: n,
52
- isOnlyTrialDone: d,
53
- isRegularClassDone: f,
54
- showLoading: I = !1,
55
- demoId: m,
56
- isProcessingFailed: ir,
57
- userAttemptId: O,
58
- isSubscriptionCancelled: ar,
59
- canChangeTutor: w,
60
- sessionDetails: H,
61
- cardOnFileNotAvailable: k,
62
- isCardDeclined: B
63
- } = or, { summaryInfo: F, fetchSummaryData: W } = Or(c), e = t(
64
- () => p ? Hr : kr,
65
- [p]
66
- ), v = t(() => p ? "100%" : 200, [p]), nr = g(() => {
67
- br(c), W();
68
- }, [W, c]), T = g(() => {
69
- C(m);
70
- }, [m, C]), b = g(() => {
71
- L(m);
72
- }, [m, L]), { onCancelSubscription: N, onViewPaymentMethod: _ } = wr({
73
- demoId: m,
74
- studentId: c,
75
- isTrialDone: n,
76
- studentName: l,
77
- billingDetails: u,
78
- withTutor: !!x,
79
- onChangeTutor: b,
80
- onRescheduleDemo: T
81
- }), j = g(
82
- (mr) => {
83
- h == null || h(mr, { ...F, userAttemptId: O ?? null });
41
+ const { device: N } = re(), u = N <= pe.MOBILE, {
42
+ teacherDetails: i,
43
+ teacherName: b,
44
+ completedSessions: L,
45
+ nextSessionStart: C,
46
+ nextSessionEnd: T,
47
+ classStatus: $,
48
+ upcomingSessions: P,
49
+ isDemoDone: s,
50
+ isOnlyOneSessionCompleted: A,
51
+ isMoreThanOneSessionCompleted: h,
52
+ showLoading: R = !1,
53
+ demoId: p,
54
+ isProcessingFailed: X,
55
+ userAttemptId: y
56
+ } = xe(m), { summaryInfo: D, fetchSummaryData: M } = be(m), J = t(() => {
57
+ de(m), M();
58
+ }, [M, m]), O = t(() => {
59
+ f(p);
60
+ }, [p, f]), E = t(() => {
61
+ g(p);
62
+ }, [p, g]), r = ee(
63
+ () => u ? Le : Ce,
64
+ [u]
65
+ ), I = t(
66
+ (Y) => {
67
+ c == null || c(Y, { ...D, userAttemptId: y ?? null });
84
68
  },
85
- [h, F, O]
86
- ), q = t(
87
- () => ({
88
- completedSessions: A,
89
- nextSessionStartTime: y,
90
- teacherName: x,
91
- isTutorNoShow: $,
92
- isStudentNoShow: D,
93
- nextSessionEndTime: M,
94
- studentName: l,
95
- onRescheduleClick: T,
96
- isTrialDone: n,
97
- isOnlyTrialDone: d
98
- }),
99
- [
100
- A,
101
- y,
102
- x,
103
- $,
104
- D,
105
- M,
106
- l,
107
- T,
108
- n,
109
- d
110
- ]
111
- ), z = t(
112
- () => ({
113
- isTrialDone: n,
114
- studentName: l,
115
- onViewSummary: j
116
- }),
117
- [n, l, j]
118
- ), sr = t(
119
- () => /* @__PURE__ */ o(i, { children: [
120
- /* @__PURE__ */ r(dr, {}),
121
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
122
- /* @__PURE__ */ r(ur, { orientation: "horizontal" }),
123
- S && /* @__PURE__ */ o(i, { children: [
124
- /* @__PURE__ */ r(a, { height: e.medium }),
125
- /* @__PURE__ */ r(
126
- fr,
69
+ [c, D, y]
70
+ ), k = u ? "100%" : 200, Q = t(
71
+ () => /* @__PURE__ */ o(n, { children: [
72
+ /* @__PURE__ */ e(oe, {}),
73
+ /* @__PURE__ */ e(a, { height: r.separator.extraLarge }),
74
+ /* @__PURE__ */ e(te, { orientation: "horizontal" }),
75
+ d && /* @__PURE__ */ o(n, { children: [
76
+ /* @__PURE__ */ e(a, { height: r.medium }),
77
+ /* @__PURE__ */ e(
78
+ le,
127
79
  {
128
80
  label: "Get Started",
129
81
  renderAs: "yellow-dark",
130
82
  shape: "square",
131
- size: "small",
132
- width: v,
133
- onClick: S
83
+ width: k,
84
+ onClick: d
134
85
  }
135
86
  )
136
87
  ] })
137
88
  ] }),
138
- [e, v, S]
139
- ), G = t(
140
- () => /* @__PURE__ */ r(yr, { ...q }),
141
- [q]
142
- ), K = t(() => !s || n ? null : /* @__PURE__ */ o(i, { children: [
143
- /* @__PURE__ */ r(a, { height: e.separator.large }),
144
- /* @__PURE__ */ r(Z, { teacherProfile: s })
145
- ] }), [s, n, e.separator.large]), R = t(() => f ? null : /* @__PURE__ */ o(i, { children: [
146
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
147
- /* @__PURE__ */ r(Mr, { ...z })
148
- ] }), [f, e.separator.extraLarge, z]), V = t(() => w ? /* @__PURE__ */ o(i, { children: [
149
- /* @__PURE__ */ r(a, { height: e.separator.small }),
150
- /* @__PURE__ */ o(i, { $flexDirection: "row", $flexColumnGapX: 0.25, children: [
151
- /* @__PURE__ */ r(rr, { $renderAs: "ub1", $renderOnMobileAs: "ub2", $color: "WHITE", children: "Not the right fit for your child?" }),
152
- /* @__PURE__ */ r(
153
- gr,
89
+ [r, k, d]
90
+ ), H = t(
91
+ () => /* @__PURE__ */ e(
92
+ ae,
93
+ {
94
+ completedSessions: L,
95
+ nextSessionStartTime: C,
96
+ teacherName: b,
97
+ status: $,
98
+ nextSessionEndTime: T,
99
+ studentName: l,
100
+ onRescheduleClick: O
101
+ }
102
+ ),
103
+ [
104
+ L,
105
+ C,
106
+ b,
107
+ $,
108
+ T,
109
+ l,
110
+ O
111
+ ]
112
+ ), F = t(() => !i || s ? null : /* @__PURE__ */ o(n, { children: [
113
+ /* @__PURE__ */ e(a, { height: r.separator.large }),
114
+ /* @__PURE__ */ e(q, { teacherProfile: i })
115
+ ] }), [i, s, r.separator.large]), W = t(() => h ? null : /* @__PURE__ */ o(n, { children: [
116
+ /* @__PURE__ */ e(a, { height: r.separator.extraLarge }),
117
+ /* @__PURE__ */ e(
118
+ ie,
119
+ {
120
+ isDemoDone: s,
121
+ studentName: l,
122
+ onViewSummary: I
123
+ }
124
+ )
125
+ ] }), [
126
+ h,
127
+ r.separator.extraLarge,
128
+ s,
129
+ l,
130
+ I
131
+ ]), w = t(() => S ? /* @__PURE__ */ o(n, { children: [
132
+ /* @__PURE__ */ e(a, { height: r.separator.small }),
133
+ /* @__PURE__ */ o(n, { $flexDirection: "row", $flexColumnGapX: 0.25, children: [
134
+ /* @__PURE__ */ e(G, { $renderAs: "ub1", $renderOnMobileAs: "ub2", $color: "WHITE", children: "Not the right fit for your child?" }),
135
+ /* @__PURE__ */ e(
136
+ me,
154
137
  {
155
138
  color: "WHITE_1",
156
139
  sizeOnMobile: "small",
157
140
  label: "Try another tutor",
158
- onClick: b
141
+ onClick: E
159
142
  }
160
143
  )
161
144
  ] })
162
- ] }) : null, [w, e.separator.small, b]), X = t(() => s ? /* @__PURE__ */ o(i, { children: [
163
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
164
- /* @__PURE__ */ r(rr, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "Know your tutor" }),
165
- /* @__PURE__ */ r(a, { height: e.separator.medium }),
166
- /* @__PURE__ */ r(Z, { teacherProfile: s }),
167
- V
168
- ] }) : null, [s, e.separator, V]), J = t(() => d ? /* @__PURE__ */ o(i, { children: [
169
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
170
- /* @__PURE__ */ r($r, {}),
171
- /* @__PURE__ */ r(Er, { sessions: E }),
172
- X
173
- ] }) : null, [d, e.separator.extraLarge, E, X]), Q = t(() => n ? /* @__PURE__ */ o(i, { children: [
174
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
175
- /* @__PURE__ */ r(Pr, {})
176
- ] }) : null, [n, e.separator.extraLarge]), U = t(() => f ? null : /* @__PURE__ */ o(i, { children: [
177
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
178
- /* @__PURE__ */ r(Br, { children: /* @__PURE__ */ r(Dr, { onSwitchUser: P }) })
179
- ] }), [f, e.separator.extraLarge, P]), Y = t(() => u ? /* @__PURE__ */ o(i, { children: [
180
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
181
- /* @__PURE__ */ r(
182
- Cr,
183
- {
184
- billingDetails: u,
185
- onViewPaymentMethod: _,
186
- onCancelSubscription: N
187
- }
188
- )
189
- ] }) : null, [u, e.separator.extraLarge, _, N]), lr = t(
190
- () => /* @__PURE__ */ o(i, { children: [
191
- G,
192
- K,
193
- R,
194
- J,
195
- Q,
196
- U,
197
- Y
145
+ ] }) : null, [S, r.separator.small, E]), B = t(() => i ? /* @__PURE__ */ o(n, { children: [
146
+ /* @__PURE__ */ e(a, { height: r.separator.extraLarge }),
147
+ /* @__PURE__ */ e(G, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "Know your tutor" }),
148
+ /* @__PURE__ */ e(a, { height: r.separator.medium }),
149
+ /* @__PURE__ */ e(q, { teacherProfile: i }),
150
+ w()
151
+ ] }) : null, [i, r.separator, w]), v = t(() => A ? /* @__PURE__ */ o(n, { children: [
152
+ /* @__PURE__ */ e(a, { height: r.separator.extraLarge }),
153
+ /* @__PURE__ */ e(ne, {}),
154
+ /* @__PURE__ */ e(se, { sessions: P }),
155
+ B()
156
+ ] }) : null, [
157
+ A,
158
+ r.separator.extraLarge,
159
+ P,
160
+ B
161
+ ]), _ = t(() => s ? /* @__PURE__ */ o(n, { children: [
162
+ /* @__PURE__ */ e(a, { height: r.separator.extraLarge }),
163
+ /* @__PURE__ */ e(fe, {})
164
+ ] }) : null, [s, r.separator.extraLarge]), j = t(() => h ? null : /* @__PURE__ */ o(n, { children: [
165
+ /* @__PURE__ */ e(a, { height: r.separator.extraLarge }),
166
+ /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(ge, { onSwitchUser: x }) })
167
+ ] }), [h, r.separator.extraLarge, x]), U = t(
168
+ () => /* @__PURE__ */ o(n, { children: [
169
+ H(),
170
+ F(),
171
+ W(),
172
+ v(),
173
+ _(),
174
+ j()
198
175
  ] }),
199
176
  [
200
- G,
201
- K,
202
- R,
203
- J,
204
- Q,
205
- U,
206
- Y
177
+ H,
178
+ F,
179
+ W,
180
+ v,
181
+ _,
182
+ j
207
183
  ]
208
- ), cr = t(
209
- () => /* @__PURE__ */ o(i, { children: [
210
- /* @__PURE__ */ r(a, { height: e.separator.extraLarge }),
211
- /* @__PURE__ */ r(Ar, {})
184
+ ), V = t(
185
+ () => /* @__PURE__ */ o(n, { children: [
186
+ /* @__PURE__ */ e(a, { height: r.separator.extraLarge }),
187
+ /* @__PURE__ */ e(Se, {}),
188
+ /* @__PURE__ */ e(a, { height: r.separator.extraLarge })
212
189
  ] }),
213
- [e.separator.extraLarge]
190
+ [r.separator.extraLarge]
214
191
  );
215
- return t(() => B || k || !H || I, [k, B, H, I]) ? /* @__PURE__ */ r(xr, { height: "100dvh" }) : ir ? /* @__PURE__ */ r(i, { $flex: 1, $alignItems: "center", $justifyContent: "center", children: /* @__PURE__ */ r(Sr, { theme: "dark", onTryAgain: nr }) }) : /* @__PURE__ */ o(Fr, { children: [
216
- /* @__PURE__ */ r(Lr, { HeaderAvatar: er }),
192
+ return R ? /* @__PURE__ */ e(he, { height: "100dvh" }) : X ? /* @__PURE__ */ e(n, { $flex: 1, $alignItems: "center", $justifyContent: "center", children: /* @__PURE__ */ e(ce, { theme: "dark", onTryAgain: J }) }) : /* @__PURE__ */ o($e, { children: [
193
+ /* @__PURE__ */ e(ue, { HeaderAvatar: z }),
217
194
  /* @__PURE__ */ o(
218
- Wr,
195
+ Pe,
219
196
  {
220
197
  $flex: 1,
221
198
  $width: "100%",
222
199
  $height: "100%",
223
200
  $background: "BLACK_1",
224
- $gap: e.medium,
225
- $gutter: e.small,
201
+ $gap: r.medium,
202
+ $gutter: r.small,
226
203
  children: [
227
- ar ? sr : lr,
228
- cr
204
+ K ? Q() : U(),
205
+ V()
229
206
  ]
230
207
  }
231
208
  )
@@ -233,6 +210,6 @@ const de = hr(
233
210
  }
234
211
  );
235
212
  export {
236
- de as default
213
+ Ye as default
237
214
  };
238
215
  //# sourceMappingURL=parent-dashboard-view.js.map