@cuemath/leap 2.9.3 → 2.9.4-as3

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 (266) hide show
  1. package/dist/assets/illustrations/illustrations.js +9 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/line-icons/icons/alarm.js +41 -0
  4. package/dist/assets/line-icons/icons/alarm.js.map +1 -0
  5. package/dist/assets/line-icons/icons/bin2.js +7 -8
  6. package/dist/assets/line-icons/icons/bin2.js.map +1 -1
  7. package/dist/assets/line-icons/icons/chevron-left.js.map +1 -1
  8. package/dist/assets/line-icons/icons/dart.js +23 -0
  9. package/dist/assets/line-icons/icons/dart.js.map +1 -0
  10. package/dist/assets/line-icons/icons/exclamation.js +26 -0
  11. package/dist/assets/line-icons/icons/exclamation.js.map +1 -0
  12. package/dist/assets/line-icons/icons/home2.js +25 -0
  13. package/dist/assets/line-icons/icons/home2.js.map +1 -0
  14. package/dist/assets/line-icons/icons/important.js +23 -0
  15. package/dist/assets/line-icons/icons/important.js.map +1 -0
  16. package/dist/assets/line-icons/icons/puzzle.js +25 -0
  17. package/dist/assets/line-icons/icons/puzzle.js.map +1 -0
  18. package/dist/assets/line-icons/icons/recap.js +32 -0
  19. package/dist/assets/line-icons/icons/recap.js.map +1 -0
  20. package/dist/assets/line-icons/icons/skip-colored.js +43 -0
  21. package/dist/assets/line-icons/icons/skip-colored.js.map +1 -0
  22. package/dist/assets/line-icons/icons/status.js +41 -0
  23. package/dist/assets/line-icons/icons/status.js.map +1 -0
  24. package/dist/assets/line-icons/icons/testtube.js +33 -0
  25. package/dist/assets/line-icons/icons/testtube.js.map +1 -0
  26. package/dist/assets/lottie/lottie.js +9 -1
  27. package/dist/assets/lottie/lottie.js.map +1 -1
  28. package/dist/constants/api.js +3 -2
  29. package/dist/constants/api.js.map +1 -1
  30. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +99 -33
  31. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
  32. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +92 -49
  33. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
  34. package/dist/features/chapters/chapters-list/chapters-list-styled.js +5 -5
  35. package/dist/features/chapters/chapters-list/chapters-list-styled.js.map +1 -1
  36. package/dist/features/chapters/chapters-list/chapters-list.js +64 -70
  37. package/dist/features/chapters/chapters-list/chapters-list.js.map +1 -1
  38. package/dist/features/chapters-v2/api/chapter.js +10 -0
  39. package/dist/features/chapters-v2/api/chapter.js.map +1 -0
  40. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +112 -0
  41. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -0
  42. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js +26 -0
  43. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js.map +1 -0
  44. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +73 -0
  45. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -0
  46. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js +90 -0
  47. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js.map +1 -0
  48. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js +97 -0
  49. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js.map +1 -0
  50. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js +52 -0
  51. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js.map +1 -0
  52. package/dist/features/chapters-v2/chapter-details/chapter-details.js +103 -0
  53. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -0
  54. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js +13 -0
  55. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js.map +1 -0
  56. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +153 -0
  57. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +1 -0
  58. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js +16 -0
  59. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +1 -0
  60. package/dist/features/chapters-v2/comps/node-card/node-card.js +12 -0
  61. package/dist/features/chapters-v2/comps/node-card/node-card.js.map +1 -0
  62. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js +32 -0
  63. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js.map +1 -0
  64. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js +31 -0
  65. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js.map +1 -0
  66. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +171 -0
  67. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +1 -0
  68. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +192 -0
  69. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -0
  70. package/dist/features/chapters-v2/comps/tag/tag-styled.js +13 -0
  71. package/dist/features/chapters-v2/comps/tag/tag-styled.js.map +1 -0
  72. package/dist/features/chapters-v2/comps/tag/tag.js +28 -0
  73. package/dist/features/chapters-v2/comps/tag/tag.js.map +1 -0
  74. package/dist/features/chapters-v2/constants/block-constants.js +20 -0
  75. package/dist/features/chapters-v2/constants/block-constants.js.map +1 -0
  76. package/dist/features/chapters-v2/constants/node-constants.js +14 -0
  77. package/dist/features/chapters-v2/constants/node-constants.js.map +1 -0
  78. package/dist/features/chapters-v2/utils/index.js +41 -0
  79. package/dist/features/chapters-v2/utils/index.js.map +1 -0
  80. package/dist/features/chapters-v2/utils/node-card-utils.js +144 -0
  81. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -0
  82. package/dist/features/communication/pub-sub/constants.js +5 -2
  83. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  84. package/dist/features/homework/card-menu-options.js +38 -0
  85. package/dist/features/homework/card-menu-options.js.map +1 -0
  86. package/dist/features/homework/card-title.js +15 -0
  87. package/dist/features/homework/card-title.js.map +1 -0
  88. package/dist/features/homework/homework-card-view.js +131 -0
  89. package/dist/features/homework/homework-card-view.js.map +1 -0
  90. package/dist/features/homework/homework-card.js +205 -0
  91. package/dist/features/homework/homework-card.js.map +1 -0
  92. package/dist/features/homework/hw-card-list/api/get-homeworks.js +10 -0
  93. package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -0
  94. package/dist/features/homework/hw-card-list/hw-card-list-styled.js +71 -0
  95. package/dist/features/homework/hw-card-list/hw-card-list-styled.js.map +1 -0
  96. package/dist/features/homework/hw-card-list/hw-card-list.js +199 -0
  97. package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -0
  98. package/dist/features/homework/node-progress.js +29 -0
  99. package/dist/features/homework/node-progress.js.map +1 -0
  100. package/dist/features/homework/styles.js +130 -0
  101. package/dist/features/homework/styles.js.map +1 -0
  102. package/dist/features/journey/comps/coachmark/coachmark-styled.js +12 -5
  103. package/dist/features/journey/comps/coachmark/coachmark-styled.js.map +1 -1
  104. package/dist/features/journey/comps/coachmark/coachmark.js +24 -24
  105. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  106. package/dist/features/journey/hooks/use-home-page-journey.js +189 -0
  107. package/dist/features/journey/hooks/use-home-page-journey.js.map +1 -0
  108. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  109. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  110. package/dist/features/journey/use-journey/journey-context-provider.js +36 -28
  111. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  112. package/dist/features/journey/use-journey/journey-styled.js +10 -5
  113. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  114. package/dist/features/milestone/create/api/goal-submit.js +1 -1
  115. package/dist/features/milestone/create/api/goal-submit.js.map +1 -1
  116. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js +42 -49
  117. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js.map +1 -1
  118. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js +12 -4
  119. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js.map +1 -1
  120. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +128 -105
  121. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
  122. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +14 -20
  123. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js.map +1 -1
  124. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js +26 -50
  125. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js.map +1 -1
  126. package/dist/features/milestone/create/milestone-create.js +49 -43
  127. package/dist/features/milestone/create/milestone-create.js.map +1 -1
  128. package/dist/features/milestone/create/utils/index.js +33 -38
  129. package/dist/features/milestone/create/utils/index.js.map +1 -1
  130. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js +1 -1
  131. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js.map +1 -1
  132. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js +1 -1
  133. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js.map +1 -1
  134. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js +51 -53
  135. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js.map +1 -1
  136. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js +42 -40
  137. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js.map +1 -1
  138. package/dist/features/milestone/edit/goal-edit-container.js +64 -62
  139. package/dist/features/milestone/edit/goal-edit-container.js.map +1 -1
  140. package/dist/features/milestone/edit/goal-edit-helpers.js +50 -53
  141. package/dist/features/milestone/edit/goal-edit-helpers.js.map +1 -1
  142. package/dist/features/milestone/edit/milestone-edit-container.js +54 -52
  143. package/dist/features/milestone/edit/milestone-edit-container.js.map +1 -1
  144. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js +1 -1
  145. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js.map +1 -1
  146. package/dist/features/milestone/milestone-list-container/api/get-milestones.js +9 -17
  147. package/dist/features/milestone/milestone-list-container/api/get-milestones.js.map +1 -1
  148. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js +1 -1
  149. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js.map +1 -1
  150. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +136 -104
  151. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  152. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js +107 -123
  153. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js.map +1 -1
  154. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +155 -175
  155. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
  156. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js +24 -10
  157. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js.map +1 -1
  158. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +80 -86
  159. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  160. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js +10 -22
  161. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js.map +1 -1
  162. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js +70 -37
  163. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js.map +1 -1
  164. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +114 -176
  165. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
  166. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js +29 -16
  167. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js.map +1 -1
  168. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js +19 -23
  169. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js.map +1 -1
  170. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js +23 -35
  171. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js.map +1 -1
  172. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +96 -100
  173. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  174. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js +1 -1
  175. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js.map +1 -1
  176. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +114 -112
  177. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
  178. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +165 -0
  179. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -0
  180. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js +25 -0
  181. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js.map +1 -0
  182. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +85 -0
  183. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +1 -0
  184. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js +16 -18
  185. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js.map +1 -1
  186. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js +6 -34
  187. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +1 -1
  188. package/dist/features/recent-chapters/api/get-recent-chapters.js +9 -0
  189. package/dist/features/recent-chapters/api/get-recent-chapters.js.map +1 -0
  190. package/dist/features/recent-chapters/recent-chapters-styled.js +16 -0
  191. package/dist/features/recent-chapters/recent-chapters-styled.js.map +1 -0
  192. package/dist/features/recent-chapters/recent-chapters.js +39 -0
  193. package/dist/features/recent-chapters/recent-chapters.js.map +1 -0
  194. package/dist/features/sheet-v2/resource-list/resource-list.js +39 -0
  195. package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -0
  196. package/dist/features/sheets/resources-list/resource-item/styled.js +1 -1
  197. package/dist/features/sheets/resources-list/resource-item/styled.js.map +1 -1
  198. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js +4 -3
  199. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js.map +1 -1
  200. package/dist/features/trial-session/api/trial-pricing.js +1 -1
  201. package/dist/features/trial-session/api/trial-pricing.js.map +1 -1
  202. package/dist/features/trial-session/comps/offering-information/offering-information.js +21 -21
  203. package/dist/features/trial-session/comps/offering-information/offering-information.js.map +1 -1
  204. package/dist/features/trial-session/comps/pricing/pricing-cards.js +144 -0
  205. package/dist/features/trial-session/comps/pricing/pricing-cards.js.map +1 -0
  206. package/dist/features/trial-session/comps/pricing/pricing.js +51 -128
  207. package/dist/features/trial-session/comps/pricing/pricing.js.map +1 -1
  208. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +30 -29
  209. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  210. package/dist/features/ui/constants/z-index.js +1 -1
  211. package/dist/features/ui/constants/z-index.js.map +1 -1
  212. package/dist/features/ui/context-menu/context-menu-styled.js +28 -14
  213. package/dist/features/ui/context-menu/context-menu-styled.js.map +1 -1
  214. package/dist/features/ui/context-menu/context-menu.js +30 -15
  215. package/dist/features/ui/context-menu/context-menu.js.map +1 -1
  216. package/dist/features/ui/theme/button.js +22 -107
  217. package/dist/features/ui/theme/button.js.map +1 -1
  218. package/dist/index.d.ts +307 -32
  219. package/dist/index.js +498 -470
  220. package/dist/index.js.map +1 -1
  221. package/dist/node_modules/date-fns/differenceInDays.js +17 -0
  222. package/dist/node_modules/date-fns/differenceInDays.js.map +1 -0
  223. package/dist/static/chapter-header-bg-2.c8d96894.svg +1 -0
  224. package/dist/static/competitive-arena.b9c40801.json +1 -0
  225. package/dist/static/learn.71b13323.json +1 -0
  226. package/dist/static/node-custom-test-bg.d3b757be.svg +1 -0
  227. package/dist/static/node-learn-bg.b61f815c.svg +1 -0
  228. package/dist/static/node-practice-bg.16cbaf2a.svg +1 -0
  229. package/dist/static/node-project-bg.e6a33e28.svg +1 -0
  230. package/dist/static/node-puzzle-bg.3422135c.svg +1 -0
  231. package/dist/static/node-recap-bg.546154e4.svg +1 -0
  232. package/dist/static/node-test-prep-bg.42c0b9c4.svg +1 -0
  233. package/dist/static/node-video-bg.3df3f73a.svg +1 -0
  234. package/dist/static/practice.158dd488.json +1 -0
  235. package/dist/static/project.eb665827.json +1 -0
  236. package/dist/static/puzzle.b298c7e4.json +1 -0
  237. package/dist/static/recap.0dd2c1e2.json +1 -0
  238. package/dist/static/test.803d6036.json +1 -0
  239. package/dist/static/video.b41451e2.json +1 -0
  240. package/package.json +1 -1
  241. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js +0 -92
  242. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js.map +0 -1
  243. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js +0 -25
  244. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js.map +0 -1
  245. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js +0 -13
  246. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js.map +0 -1
  247. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js +0 -38
  248. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js.map +0 -1
  249. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js +0 -53
  250. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js.map +0 -1
  251. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js +0 -25
  252. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js.map +0 -1
  253. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js +0 -71
  254. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js.map +0 -1
  255. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js +0 -31
  256. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js.map +0 -1
  257. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js +0 -79
  258. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js.map +0 -1
  259. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js +0 -18
  260. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js.map +0 -1
  261. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js +0 -51
  262. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js.map +0 -1
  263. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js +0 -11
  264. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js.map +0 -1
  265. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js +0 -135
  266. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recent-chapters-styled.js","sources":["../../../src/features/recent-chapters/recent-chapters-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nconst ChaptersWrapper = styled.div(({ theme }) => {\n const { WHITE_5, WHITE_2 } = theme.colors;\n\n return `\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n align-content: start;\n background: ${WHITE_2};\n background-image: linear-gradient(${WHITE_5} 0.5px, transparent 0.5px), linear-gradient(90deg, ${WHITE_5} 0.5px, transparent 0.5px);\n background-size: 45px 45px;\n `;\n});\n\nexport { ChaptersWrapper };\n"],"names":["ChaptersWrapper","styled","theme","WHITE_5","WHITE_2"],"mappings":";AAEA,MAAMA,IAAkBC,EAAO,IAAI,CAAC,EAAE,OAAAC,QAAY;AAChD,QAAM,EAAE,SAAAC,GAAS,SAAAC,MAAYF,EAAM;AAE5B,SAAA;AAAA;AAAA;AAAA;AAAA,kBAISE,CAAO;AAAA,wCACeD,CAAO,sDAAsDA,CAAO;AAAA;AAAA;AAG5G,CAAC;"}
@@ -0,0 +1,39 @@
1
+ import { jsxs as s, jsx as l } from "react/jsx-runtime";
2
+ import { useCallback as f, useEffect as h } from "react";
3
+ import C from "../chapters/chapters-list/chapter-item/chapter-item.js";
4
+ import d from "../ui/layout/flex-view.js";
5
+ import u from "../ui/text/text.js";
6
+ import { useGetRecentChapters as x } from "./api/get-recent-chapters.js";
7
+ import { ChaptersWrapper as g } from "./recent-chapters-styled.js";
8
+ const R = ({
9
+ studentId: r,
10
+ courseStream: t,
11
+ onChapterClick: p,
12
+ recentChaptersRef: a
13
+ }) => {
14
+ const { get: o, data: e, isProcessingFailed: m } = x(), i = f(() => {
15
+ o(r, void 0, { courseStream: t });
16
+ }, [t, o, r]);
17
+ return h(() => {
18
+ i();
19
+ }, [i]), m ? null : e && e.length > 0 ? /* @__PURE__ */ s(d, { $flexRowGapX: 1, ref: a, children: [
20
+ /* @__PURE__ */ s(u, { $renderAs: "ac4-black", $color: "BLACK_T_60", children: [
21
+ "Recent Chapters (",
22
+ e == null ? void 0 : e.length,
23
+ ")"
24
+ ] }),
25
+ /* @__PURE__ */ l(g, { children: e.map((n, c) => /* @__PURE__ */ l(
26
+ C,
27
+ {
28
+ chapter: n,
29
+ onChapterClick: p,
30
+ itemIndex: c
31
+ },
32
+ n.id
33
+ )) })
34
+ ] }) : null;
35
+ }, G = R;
36
+ export {
37
+ G as default
38
+ };
39
+ //# sourceMappingURL=recent-chapters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recent-chapters.js","sources":["../../../src/features/recent-chapters/recent-chapters.tsx"],"sourcesContent":["import type { IChaptersListProps } from '../chapters/chapters-list/chapters-list-types';\nimport type { TCourseStream } from '../milestone/create/milestone-create-types';\nimport type { TUserTypes } from '../ui/types';\nimport type { FC } from 'react';\n\nimport { useCallback, useEffect } from 'react';\n\nimport ChapterItem from '../chapters/chapters-list/chapter-item/chapter-item';\nimport FlexView from '../ui/layout/flex-view';\nimport Text from '../ui/text/text';\nimport { useGetRecentChapters } from './api/get-recent-chapters';\nimport * as Styled from './recent-chapters-styled';\n\ninterface RecentChaptersProps {\n studentId: string;\n courseStream: TCourseStream;\n userType: TUserTypes;\n onChapterClick: IChaptersListProps['onChapterClick'];\n recentChaptersRef?: React.RefObject<HTMLDivElement>;\n}\n\nconst RecentChapters: FC<RecentChaptersProps> = ({\n studentId,\n courseStream,\n onChapterClick,\n recentChaptersRef,\n}) => {\n const { get: getChapters, data: chapterData, isProcessingFailed } = useGetRecentChapters();\n\n const fetchChapterDetails = useCallback(() => {\n getChapters(studentId, undefined, { courseStream });\n }, [courseStream, getChapters, studentId]);\n\n useEffect(() => {\n fetchChapterDetails();\n }, [fetchChapterDetails]);\n\n if (isProcessingFailed) {\n return null;\n }\n\n if (chapterData && chapterData.length > 0) {\n return (\n <FlexView $flexRowGapX={1} ref={recentChaptersRef}>\n <Text $renderAs=\"ac4-black\" $color=\"BLACK_T_60\">\n Recent Chapters ({chapterData?.length})\n </Text>\n <Styled.ChaptersWrapper>\n {chapterData.map((chapter, idx) => (\n <ChapterItem\n key={chapter.id}\n chapter={chapter}\n onChapterClick={onChapterClick}\n itemIndex={idx}\n />\n ))}\n </Styled.ChaptersWrapper>\n </FlexView>\n );\n }\n\n return null;\n};\n\nexport default RecentChapters;\n"],"names":["RecentChapters","studentId","courseStream","onChapterClick","recentChaptersRef","getChapters","chapterData","isProcessingFailed","useGetRecentChapters","fetchChapterDetails","useCallback","useEffect","jsxs","FlexView","Text","jsx","Styled.ChaptersWrapper","chapter","idx","ChapterItem","RecentChapters$1"],"mappings":";;;;;;;AAqBA,MAAMA,IAA0C,CAAC;AAAA,EAC/C,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,mBAAAC;AACF,MAAM;AACJ,QAAM,EAAE,KAAKC,GAAa,MAAMC,GAAa,oBAAAC,EAAA,IAAuBC,KAE9DC,IAAsBC,EAAY,MAAM;AAC5C,IAAAL,EAAYJ,GAAW,QAAW,EAAE,cAAAC,EAAc,CAAA;AAAA,EACjD,GAAA,CAACA,GAAcG,GAAaJ,CAAS,CAAC;AAMzC,SAJAU,EAAU,MAAM;AACM,IAAAF;EAAA,GACnB,CAACA,CAAmB,CAAC,GAEpBF,IACK,OAGLD,KAAeA,EAAY,SAAS,IAEnC,gBAAAM,EAAAC,GAAA,EAAS,cAAc,GAAG,KAAKT,GAC9B,UAAA;AAAA,IAAA,gBAAAQ,EAACE,GAAK,EAAA,WAAU,aAAY,QAAO,cAAa,UAAA;AAAA,MAAA;AAAA,MAC5BR,KAAA,gBAAAA,EAAa;AAAA,MAAO;AAAA,IAAA,GACxC;AAAA,IACA,gBAAAS,EAACC,GAAA,EACE,YAAY,IAAI,CAACC,GAASC,MACzB,gBAAAH;AAAA,MAACI;AAAA,MAAA;AAAA,QAEC,SAAAF;AAAA,QACA,gBAAAd;AAAA,QACA,WAAWe;AAAA,MAAA;AAAA,MAHND,EAAQ;AAAA,IAKhB,CAAA,GACH;AAAA,EACF,EAAA,CAAA,IAIG;AACT,GAEAG,IAAepB;"}
@@ -0,0 +1,39 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { h as f } from "../../../node_modules/humanize-plus/dist/humanize.js";
3
+ import { memo as $ } from "react";
4
+ import x from "styled-components";
5
+ import _ from "../../homework/homework-card.js";
6
+ import g from "../../ui/layout/flex-view.js";
7
+ const w = x.div`
8
+ display: grid;
9
+ grid-template-columns: repeat(3, 200px);
10
+ grid-gap: 32px;
11
+ justify-content: center;
12
+ padding: 32px 0;
13
+ `, R = ({ sheets: r, userType: n, ...m }) => /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(w, { children: r.map((o, s) => {
14
+ const {
15
+ title: d,
16
+ node_id: a,
17
+ worksheet_id: p,
18
+ is_timed: l,
19
+ sheet_time: c,
20
+ total_questions: e
21
+ } = o, u = Math.ceil((c || 0) / 60), i = e ? `${e} ${f.pluralize(e, "Question")}` : "", h = l ? `${i} ${u} Mins` : i;
22
+ return /* @__PURE__ */ t(
23
+ _,
24
+ {
25
+ header: d,
26
+ subHeader: h,
27
+ userType: n,
28
+ nodeData: o,
29
+ renderAs: "milestone",
30
+ shouldOpenOnRight: (s + 1) % 3 === 0,
31
+ ...m
32
+ },
33
+ `${p}_${a}_${s}`
34
+ );
35
+ }) }) }), j = $(R);
36
+ export {
37
+ j as default
38
+ };
39
+ //# sourceMappingURL=resource-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource-list.js","sources":["../../../../src/features/sheet-v2/resource-list/resource-list.tsx"],"sourcesContent":["import type { IResourcesListProps } from './types';\nimport type { FC } from 'react';\n\nimport { pluralize } from 'humanize-plus';\nimport { memo } from 'react';\nimport styled from 'styled-components';\n\nimport HomeworkCard from '../../homework/homework-card';\nimport FlexView from '../../ui/layout/flex-view';\n\nconst ResourceItemListWrapper = styled.div`\n display: grid;\n grid-template-columns: repeat(3, 200px);\n grid-gap: 32px;\n justify-content: center;\n padding: 32px 0;\n`;\n\nconst ResourcesList: FC<IResourcesListProps> = ({ sheets, userType, ...sheetCallBacks }) => (\n <FlexView>\n <ResourceItemListWrapper>\n {sheets.map((sheet, idx) => {\n const {\n title,\n node_id: nodeId,\n worksheet_id: worksheetId,\n is_timed: isTimed,\n sheet_time: sheetTime,\n total_questions: totalQuestions,\n } = sheet;\n const totalSheetTime = Math.ceil((sheetTime || 0) / 60);\n const totalQuestionsText = totalQuestions\n ? `${totalQuestions} ${pluralize(totalQuestions, 'Question')}`\n : '';\n const subHeader = isTimed\n ? `${totalQuestionsText} ${totalSheetTime} Mins`\n : totalQuestionsText;\n\n return (\n <HomeworkCard\n key={`${worksheetId}_${nodeId}_${idx}`}\n header={title}\n subHeader={subHeader}\n userType={userType}\n nodeData={sheet}\n renderAs=\"milestone\"\n shouldOpenOnRight={(idx + 1) % 3 === 0}\n {...sheetCallBacks}\n />\n );\n })}\n </ResourceItemListWrapper>\n </FlexView>\n);\n\nexport default memo(ResourcesList);\n"],"names":["ResourceItemListWrapper","styled","ResourcesList","sheets","userType","sheetCallBacks","jsx","FlexView","sheet","idx","title","nodeId","worksheetId","isTimed","sheetTime","totalQuestions","totalSheetTime","totalQuestionsText","pluralize","subHeader","HomeworkCard","ResourcesList$1","memo"],"mappings":";;;;;;AAUA,MAAMA,IAA0BC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQjCC,IAAyC,CAAC,EAAE,QAAAC,GAAQ,UAAAC,GAAU,GAAGC,EAAe,MACnF,gBAAAC,EAAAC,GAAA,EACC,4BAACP,GACE,EAAA,UAAAG,EAAO,IAAI,CAACK,GAAOC,MAAQ;AACpB,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,SAASC;AAAA,IACT,cAAcC;AAAA,IACd,UAAUC;AAAA,IACV,YAAYC;AAAA,IACZ,iBAAiBC;AAAA,EACf,IAAAP,GACEQ,IAAiB,KAAK,MAAMF,KAAa,KAAK,EAAE,GAChDG,IAAqBF,IACvB,GAAGA,CAAc,IAAIG,EAAU,UAAAH,GAAgB,UAAU,CAAC,KAC1D,IACEI,IAAYN,IACd,GAAGI,CAAkB,IAAID,CAAc,UACvCC;AAGF,SAAA,gBAAAX;AAAA,IAACc;AAAA,IAAA;AAAA,MAEC,QAAQV;AAAA,MACR,WAAAS;AAAA,MACA,UAAAf;AAAA,MACA,UAAUI;AAAA,MACV,UAAS;AAAA,MACT,oBAAoBC,IAAM,KAAK,MAAM;AAAA,MACpC,GAAGJ;AAAA,IAAA;AAAA,IAPC,GAAGO,CAAW,IAAID,CAAM,IAAIF,CAAG;AAAA,EAAA;AAU1C,CAAC,GACH,EACF,CAAA,GAGaY,IAAAC,EAAKpB,CAAa;"}
@@ -8,7 +8,7 @@ const c = e(i)(({ theme: r, $isMilestoneWidget: o }) => {
8
8
  ${o && `
9
9
  border-top-width: 0;
10
10
  border-left-width: 0;
11
-
11
+
12
12
  &:nth-child(even) {
13
13
  border-right-width: 0;
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","sources":["../../../../../src/features/sheets/resources-list/resource-item/styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\n\ninterface IResourceItemCard {\n $isMilestoneWidget?: boolean;\n}\n\nconst ResourceItemCard = styled(FlexView)<IResourceItemCard>(({ theme, $isMilestoneWidget }) => {\n const { WHITE_5 } = theme.colors;\n\n return `\n border: 1px solid ${WHITE_5};\n ${\n $isMilestoneWidget &&\n `\n border-top-width: 0;\n border-left-width: 0;\n\n &:nth-child(even) {\n border-right-width: 0;\n }\n `\n }\n `;\n});\n\nconst ResourceItemTitle = styled(Text)(() => {\n return `\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n text-overflow: ellipsis;\n overflow: hidden;\n `;\n});\n\nconst IconButtonWrapper = styled(FlexView)(({ theme }) => {\n const { gutter } = theme.layout;\n const { BLACK_T_87 } = theme.colors;\n\n return `\n width: ${gutter * 2}px;\n height: ${gutter * 2}px;\n border: 1px solid ${BLACK_T_87};\n border-radius: 50%;\n cursor: pointer;\n `;\n});\n\nexport { ResourceItemCard, ResourceItemTitle, IconButtonWrapper };\n"],"names":["ResourceItemCard","styled","FlexView","theme","$isMilestoneWidget","WHITE_5","ResourceItemTitle","Text","IconButtonWrapper","gutter","BLACK_T_87"],"mappings":";;;AASM,MAAAA,IAAmBC,EAAOC,CAAQ,EAAqB,CAAC,EAAE,OAAAC,GAAO,oBAAAC,QAAyB;AACxF,QAAA,EAAE,SAAAC,EAAQ,IAAIF,EAAM;AAEnB,SAAA;AAAA,0BACiBE,CAAO;AAAA,QAEzBD,KACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAQF;AAAA;AAEN,CAAC,GAEKE,IAAoBL,EAAOM,CAAI,EAAE,MAC9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAOR,GAEKC,IAAoBP,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAAY;AAClD,QAAA,EAAE,QAAAM,EAAO,IAAIN,EAAM,QACnB,EAAE,YAAAO,EAAW,IAAIP,EAAM;AAEtB,SAAA;AAAA,eACMM,IAAS,CAAC;AAAA,gBACTA,IAAS,CAAC;AAAA,0BACAC,CAAU;AAAA;AAAA;AAAA;AAIpC,CAAC;"}
1
+ {"version":3,"file":"styled.js","sources":["../../../../../src/features/sheets/resources-list/resource-item/styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\n\ninterface IResourceItemCard {\n $isMilestoneWidget?: boolean;\n}\n\nconst ResourceItemCard = styled(FlexView)<IResourceItemCard>(({ theme, $isMilestoneWidget }) => {\n const { WHITE_5 } = theme.colors;\n\n return `\n border: 1px solid ${WHITE_5};\n ${\n $isMilestoneWidget &&\n `\n border-top-width: 0;\n border-left-width: 0;\n \n &:nth-child(even) {\n border-right-width: 0;\n }\n `\n }\n `;\n});\n\nconst ResourceItemTitle = styled(Text)(() => {\n return `\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n text-overflow: ellipsis;\n overflow: hidden;\n `;\n});\n\nconst IconButtonWrapper = styled(FlexView)(({ theme }) => {\n const { gutter } = theme.layout;\n const { BLACK_T_87 } = theme.colors;\n\n return `\n width: ${gutter * 2}px;\n height: ${gutter * 2}px;\n border: 1px solid ${BLACK_T_87};\n border-radius: 50%;\n cursor: pointer;\n `;\n});\n\nexport { ResourceItemCard, ResourceItemTitle, IconButtonWrapper };\n"],"names":["ResourceItemCard","styled","FlexView","theme","$isMilestoneWidget","WHITE_5","ResourceItemTitle","Text","IconButtonWrapper","gutter","BLACK_T_87"],"mappings":";;;AASM,MAAAA,IAAmBC,EAAOC,CAAQ,EAAqB,CAAC,EAAE,OAAAC,GAAO,oBAAAC,QAAyB;AACxF,QAAA,EAAE,SAAAC,EAAQ,IAAIF,EAAM;AAEnB,SAAA;AAAA,0BACiBE,CAAO;AAAA,QAEzBD,KACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAQF;AAAA;AAEN,CAAC,GAEKE,IAAoBL,EAAOM,CAAI,EAAE,MAC9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAOR,GAEKC,IAAoBP,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAAY;AAClD,QAAA,EAAE,QAAAM,EAAO,IAAIN,EAAM,QACnB,EAAE,YAAAO,EAAW,IAAIP,EAAM;AAEtB,SAAA;AAAA,eACMM,IAAS,CAAC;AAAA,gBACTA,IAAS,CAAC;AAAA,0BACAC,CAAU;AAAA;AAAA;AAAA;AAIpC,CAAC;"}
@@ -1,4 +1,4 @@
1
- const E = {
1
+ const A = {
2
2
  CHANGE_LOCATION: "Change location",
3
3
  RESET_PROGRESS: "Reset progress",
4
4
  MARK_AS_FAMILIAR: "Mark as learned",
@@ -11,9 +11,10 @@ const E = {
11
11
  MARK_AS_DONE: "Mark as Done",
12
12
  SKIP: "Skip",
13
13
  REVERT_SKIP: "Revert Skip",
14
- REDO: "Redo"
14
+ REDO: "Redo",
15
+ ASSIGN_AS_HW: "Assign as HW"
15
16
  };
16
17
  export {
17
- E as TEACHER_MENU_OPTIONS
18
+ A as TEACHER_MENU_OPTIONS
18
19
  };
19
20
  //# sourceMappingURL=teacher-actions-constant.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"teacher-actions-constant.js","sources":["../../../../../../../src/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.ts"],"sourcesContent":["export const TEACHER_MENU_OPTIONS = {\n CHANGE_LOCATION: 'Change location',\n RESET_PROGRESS: 'Reset progress',\n MARK_AS_FAMILIAR: 'Mark as learned',\n MARK_BACK_AS_RELEVANT: 'Mark back as relevant',\n MARK_AS_NOT_NEEDED: 'Mark as not needed',\n UNASSIGN: 'Unassign',\n //* New options\n ENABLE_AS_HW: 'Enable as HW',\n REVERT_TO_CW: 'Revert to CW',\n MARK_AS_DONE: 'Mark as Done',\n SKIP: 'Skip',\n REVERT_SKIP: 'Revert Skip',\n REDO: 'Redo',\n} as const;\n"],"names":["TEACHER_MENU_OPTIONS"],"mappings":"AAAO,MAAMA,IAAuB;AAAA,EAClC,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,uBAAuB;AAAA,EACvB,oBAAoB;AAAA,EACpB,UAAU;AAAA;AAAA,EAEV,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,MAAM;AAAA,EACN,aAAa;AAAA,EACb,MAAM;AACR;"}
1
+ {"version":3,"file":"teacher-actions-constant.js","sources":["../../../../../../../src/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.ts"],"sourcesContent":["export const TEACHER_MENU_OPTIONS = {\n CHANGE_LOCATION: 'Change location',\n RESET_PROGRESS: 'Reset progress',\n MARK_AS_FAMILIAR: 'Mark as learned',\n MARK_BACK_AS_RELEVANT: 'Mark back as relevant',\n MARK_AS_NOT_NEEDED: 'Mark as not needed',\n UNASSIGN: 'Unassign',\n //* New options\n ENABLE_AS_HW: 'Enable as HW',\n REVERT_TO_CW: 'Revert to CW',\n MARK_AS_DONE: 'Mark as Done',\n SKIP: 'Skip',\n REVERT_SKIP: 'Revert Skip',\n REDO: 'Redo',\n ASSIGN_AS_HW: 'Assign as HW',\n} as const;\n"],"names":["TEACHER_MENU_OPTIONS"],"mappings":"AAAO,MAAMA,IAAuB;AAAA,EAClC,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,uBAAuB;AAAA,EACvB,oBAAoB;AAAA,EACpB,UAAU;AAAA;AAAA,EAEV,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,MAAM;AAAA,EACN,aAAa;AAAA,EACb,MAAM;AAAA,EACN,cAAc;AAChB;"}
@@ -2,7 +2,7 @@ import { createGetAPI as t } from "@cuemath/rest-api";
2
2
  import { BASE_URL_V1 as i } from "../../../constants/api.js";
3
3
  import { stringify as e } from "../../../helpers/query-string.js";
4
4
  const { useGet: f } = t({
5
- getURL: (o, r) => `${i}/trial/pricing/?${e(r)}`
5
+ getURL: (o, r) => `${i}/trial/pricing/v2/?${e(r)}`
6
6
  });
7
7
  export {
8
8
  f as useGetTrialPricing
@@ -1 +1 @@
1
- {"version":3,"file":"trial-pricing.js","sources":["../../../../src/features/trial-session/api/trial-pricing.ts"],"sourcesContent":["import { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../constants/api';\nimport { stringify } from '../../../helpers/query-string';\n\ninterface IGetPricingQuery {\n student_id: string;\n}\n\ntype TDiscountDetails = {\n discount_duration: number;\n original_plan_details: { duration: number };\n};\n\ntype TPricingDetails = {\n amount: number;\n amount_after_coupon: number;\n classes_per_week: number;\n currency_symbol: string;\n discount_details: TDiscountDetails;\n fee_per_class_after_discount: number;\n meta_text: string;\n no_of_classes: number;\n duration: number;\n}[];\n\nconst { useGet: useGetTrialPricing } = createGetAPI<TPricingDetails, IGetPricingQuery>({\n getURL: (_, query) => `${BASE_URL_V1}/trial/pricing/?${stringify(query)}`,\n});\n\nexport { useGetTrialPricing };\n"],"names":["useGetTrialPricing","createGetAPI","_","query","BASE_URL_V1","stringify"],"mappings":";;;AA0BA,MAAM,EAAE,QAAQA,EAAmB,IAAIC,EAAgD;AAAA,EACrF,QAAQ,CAACC,GAAGC,MAAU,GAAGC,CAAW,mBAAmBC,EAAUF,CAAK,CAAC;AACzE,CAAC;"}
1
+ {"version":3,"file":"trial-pricing.js","sources":["../../../../src/features/trial-session/api/trial-pricing.ts"],"sourcesContent":["import type { ITrialPricingPlan } from '../comps/pricing/pricing-typed';\n\nimport { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../constants/api';\nimport { stringify } from '../../../helpers/query-string';\n\ninterface IGetPricingQuery {\n student_id: string;\n}\n\nconst { useGet: useGetTrialPricing } = createGetAPI<ITrialPricingPlan, IGetPricingQuery>({\n getURL: (_, query) => `${BASE_URL_V1}/trial/pricing/v2/?${stringify(query)}`,\n});\n\nexport { useGetTrialPricing };\n"],"names":["useGetTrialPricing","createGetAPI","_","query","BASE_URL_V1","stringify"],"mappings":";;;AAWA,MAAM,EAAE,QAAQA,EAAmB,IAAIC,EAAkD;AAAA,EACvF,QAAQ,CAACC,GAAGC,MAAU,GAAGC,CAAW,sBAAsBC,EAAUF,CAAK,CAAC;AAC5E,CAAC;"}
@@ -1,7 +1,7 @@
1
1
  import { jsxs as e, jsx as r, Fragment as _ } from "react/jsx-runtime";
2
2
  import { memo as P, useMemo as b } from "react";
3
3
  import { ILLUSTRATIONS as w } from "../../../../assets/illustrations/illustrations.js";
4
- import m from "../../../ui/image/image.js";
4
+ import c from "../../../ui/image/image.js";
5
5
  import D from "../../../ui/layout/flex-view.js";
6
6
  import n from "../../../ui/separator/separator.js";
7
7
  import x from "../../../ui/text/text.js";
@@ -9,9 +9,9 @@ import { useTrialSessionContext as O } from "../../context/use-trial-session-con
9
9
  import { TrialPageId as t } from "../../trial-session-constants.js";
10
10
  import N from "../slide-header/index.js";
11
11
  import { goalDetails as R, parentAppDetails as S, circleDetails as k } from "./offering-information-constants.js";
12
- import { Container as W, Wrapper as c, AnimationWrapper as B, DetailsWrapper as j, TextElement as d, RefundImageWrapper as F } from "./offering-information-styled.js";
12
+ import { Container as W, Wrapper as d, AnimationWrapper as B, DetailsWrapper as j, TextElement as p, RefundImageWrapper as F } from "./offering-information-styled.js";
13
13
  const J = P(() => {
14
- const { slideConfig: p } = O(), { id: i } = p, a = b(() => {
14
+ const { slideConfig: h } = O(), { id: i } = h, a = b(() => {
15
15
  switch (i) {
16
16
  case t.CIRCLE_INFORMATION:
17
17
  return k;
@@ -26,16 +26,16 @@ const J = P(() => {
26
26
  return /* @__PURE__ */ e(W, { children: [
27
27
  /* @__PURE__ */ r(n, { height: 60 }),
28
28
  /* @__PURE__ */ r(N, {}),
29
- /* @__PURE__ */ r(c, { $width: 750, $flexDirection: "row", $justifyContent: "center", children: a.length > 0 ? a.map((h, l, g) => {
29
+ /* @__PURE__ */ r(d, { $width: 750, $flexDirection: "row", $justifyContent: "center", children: a.length > 0 ? a.map((g, l, f) => {
30
30
  const {
31
- title: f,
31
+ title: u,
32
32
  description: o,
33
- animationBackground: u,
34
- infoBackground: $,
35
- animationSource: A,
36
- animationPadding: L,
37
- dimension: C
38
- } = h || {}, [I, E] = C || [], s = l === g.length - 1;
33
+ animationBackground: $,
34
+ infoBackground: A,
35
+ animationSource: L,
36
+ animationPadding: C,
37
+ dimension: I
38
+ } = g || {}, [E, T] = I || [], m = l === f.length - 1;
39
39
  return /* @__PURE__ */ e(D, { $flex: 1, children: [
40
40
  /* @__PURE__ */ r(
41
41
  B,
@@ -43,25 +43,25 @@ const J = P(() => {
43
43
  $justifyContent: "center",
44
44
  $alignItems: "center",
45
45
  $borderColor: "BLACK_1",
46
- $background: u,
47
- $gap: L,
48
- $isLastElement: s,
49
- children: /* @__PURE__ */ r(m, { src: A, width: I, height: E, withLoader: !0 })
46
+ $background: $,
47
+ $gap: C,
48
+ $isLastElement: m,
49
+ children: /* @__PURE__ */ r(c, { src: L, width: E, height: T, withLoader: !0 })
50
50
  }
51
51
  ),
52
52
  /* @__PURE__ */ e(
53
53
  j,
54
54
  {
55
- $background: $,
55
+ $background: A,
56
56
  $gapX: 1.375,
57
57
  $gutterX: 2,
58
58
  $borderColor: "BLACK_1",
59
- $isLastElement: s,
59
+ $isLastElement: m,
60
60
  $inherit: !0,
61
61
  children: [
62
- /* @__PURE__ */ r(d, { $renderAs: "ac2-black", children: f }),
62
+ /* @__PURE__ */ r(p, { $renderAs: "ac2-black", children: u }),
63
63
  /* @__PURE__ */ r(n, { heightX: 1 }),
64
- /* @__PURE__ */ r(d, { $renderAs: "ab3", children: typeof o == "string" ? o : o.map((T) => /* @__PURE__ */ r("li", { children: T })) })
64
+ /* @__PURE__ */ r(p, { $renderAs: "ab3", children: typeof o == "string" ? o : o.map((s) => /* @__PURE__ */ r("li", { children: s }, s)) })
65
65
  ]
66
66
  }
67
67
  )
@@ -70,7 +70,7 @@ const J = P(() => {
70
70
  i === t.PARENT_APP && /* @__PURE__ */ e(_, { children: [
71
71
  /* @__PURE__ */ r(n, { height: 50 }),
72
72
  /* @__PURE__ */ e(
73
- c,
73
+ d,
74
74
  {
75
75
  $width: 450,
76
76
  $gap: 14,
@@ -81,7 +81,7 @@ const J = P(() => {
81
81
  children: [
82
82
  /* @__PURE__ */ r(x, { $renderAs: "ab2", children: "Get 24/7 customer support through this app." }),
83
83
  /* @__PURE__ */ r(F, { children: /* @__PURE__ */ r(
84
- m,
84
+ c,
85
85
  {
86
86
  src: w.REFUND_POLICY_WITH_HEADPHONE,
87
87
  width: 135,
@@ -1 +1 @@
1
- {"version":3,"file":"offering-information.js","sources":["../../../../../src/features/trial-session/comps/offering-information/offering-information.tsx"],"sourcesContent":["import { memo, useMemo } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { TrialPageId } from '../../trial-session-constants';\nimport SlideHeader from '../slide-header';\nimport { circleDetails, goalDetails, parentAppDetails } from './offering-information-constants';\nimport * as Styled from './offering-information-styled';\n\nconst OfferingInformation = memo(() => {\n const { slideConfig } = useTrialSessionContext();\n const { id } = slideConfig;\n\n const offeringDetails = useMemo(() => {\n switch (id) {\n case TrialPageId.CIRCLE_INFORMATION:\n return circleDetails;\n case TrialPageId.PARENT_APP:\n return parentAppDetails;\n case TrialPageId.GOAL_DETAILS:\n return goalDetails;\n default:\n return [];\n }\n }, [id]);\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <Styled.Wrapper $width={750} $flexDirection=\"row\" $justifyContent=\"center\">\n {offeringDetails.length > 0\n ? offeringDetails.map((details, index, detailsArray) => {\n const {\n title,\n description,\n animationBackground,\n infoBackground,\n animationSource,\n animationPadding,\n dimension,\n } = details || {};\n const [width, height] = dimension || [];\n const lastElement = index === detailsArray.length - 1;\n\n return (\n <FlexView key={`offering-${index}`} $flex={1}>\n <Styled.AnimationWrapper\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $borderColor=\"BLACK_1\"\n $background={animationBackground}\n $gap={animationPadding}\n $isLastElement={lastElement}\n >\n <Image src={animationSource} width={width} height={height} withLoader />\n </Styled.AnimationWrapper>\n <Styled.DetailsWrapper\n $background={infoBackground}\n $gapX={1.375}\n $gutterX={2}\n $borderColor=\"BLACK_1\"\n $isLastElement={lastElement}\n $inherit\n >\n <Styled.TextElement $renderAs=\"ac2-black\">{title}</Styled.TextElement>\n <Separator heightX={1} />\n <Styled.TextElement $renderAs=\"ab3\">\n {typeof description === 'string'\n ? description\n : description.map(desc => <li>{desc}</li>)}\n </Styled.TextElement>\n </Styled.DetailsWrapper>\n </FlexView>\n );\n })\n : null}\n </Styled.Wrapper>\n {id === TrialPageId.PARENT_APP && (\n <>\n <Separator height={50} />\n <Styled.Wrapper\n $width={450}\n $gap={14}\n $gutter={30}\n $background=\"YELLOW_1\"\n $borderColor=\"BLACK_T_15\"\n $position=\"relative\"\n >\n <Text $renderAs=\"ab2\">Get 24/7 customer support through this app.</Text>\n <Styled.RefundImageWrapper>\n <Image\n src={ILLUSTRATIONS.REFUND_POLICY_WITH_HEADPHONE}\n width={135}\n height={80}\n withLoader\n />\n </Styled.RefundImageWrapper>\n </Styled.Wrapper>\n </>\n )}\n </Styled.Container>\n );\n});\n\nexport default OfferingInformation;\n"],"names":["OfferingInformation","memo","slideConfig","useTrialSessionContext","id","offeringDetails","useMemo","TrialPageId","circleDetails","parentAppDetails","goalDetails","jsxs","Styled.Container","jsx","Separator","SlideHeader","Styled.Wrapper","details","index","detailsArray","title","description","animationBackground","infoBackground","animationSource","animationPadding","dimension","width","height","lastElement","FlexView","Styled.AnimationWrapper","Image","Styled.DetailsWrapper","Styled.TextElement","desc","Fragment","Text","Styled.RefundImageWrapper","ILLUSTRATIONS"],"mappings":";;;;;;;;;;;;AAaM,MAAAA,IAAsBC,EAAK,MAAM;AAC/B,QAAA,EAAE,aAAAC,MAAgBC,KAClB,EAAE,IAAAC,EAAO,IAAAF,GAETG,IAAkBC,EAAQ,MAAM;AACpC,YAAQF,GAAI;AAAA,MACV,KAAKG,EAAY;AACR,eAAAC;AAAA,MACT,KAAKD,EAAY;AACR,eAAAE;AAAA,MACT,KAAKF,EAAY;AACR,eAAAG;AAAA,MACT;AACE,eAAO;IACX;AAAA,EAAA,GACC,CAACN,CAAE,CAAC;AAGL,SAAA,gBAAAO,EAACC,GAAA,EACC,UAAA;AAAA,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C;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MA1Ba,EAAA,GAAA,YAAYjB,CAAK,EA2BhC;AAAA,IAAA,CAEH,IACD,KACN,CAAA;AAAA,IACCd,MAAOG,EAAY,cAEhB,gBAAAI,EAAAyB,GAAA,EAAA,UAAA;AAAA,MAAC,gBAAAvB,EAAAC,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,MACvB,gBAAAH;AAAA,QAACK;AAAAA,QAAA;AAAA,UACC,QAAQ;AAAA,UACR,MAAM;AAAA,UACN,SAAS;AAAA,UACT,aAAY;AAAA,UACZ,cAAa;AAAA,UACb,WAAU;AAAA,UAEV,UAAA;AAAA,YAAC,gBAAAH,EAAAwB,GAAA,EAAK,WAAU,OAAM,UAA2C,+CAAA;AAAA,YACjE,gBAAAxB,EAACyB,GAAA,EACC,UAAA,gBAAAzB;AAAA,cAACmB;AAAA,cAAA;AAAA,gBACC,KAAKO,EAAc;AAAA,gBACnB,OAAO;AAAA,gBACP,QAAQ;AAAA,gBACR,YAAU;AAAA,cAAA;AAAA,YAAA,GAEd;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA,GACF;AAAA,EAEJ,EAAA,CAAA;AAEJ,CAAC;"}
1
+ {"version":3,"file":"offering-information.js","sources":["../../../../../src/features/trial-session/comps/offering-information/offering-information.tsx"],"sourcesContent":["import { memo, useMemo } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { TrialPageId } from '../../trial-session-constants';\nimport SlideHeader from '../slide-header';\nimport { circleDetails, goalDetails, parentAppDetails } from './offering-information-constants';\nimport * as Styled from './offering-information-styled';\n\nconst OfferingInformation = memo(() => {\n const { slideConfig } = useTrialSessionContext();\n const { id } = slideConfig;\n\n const offeringDetails = useMemo(() => {\n switch (id) {\n case TrialPageId.CIRCLE_INFORMATION:\n return circleDetails;\n case TrialPageId.PARENT_APP:\n return parentAppDetails;\n case TrialPageId.GOAL_DETAILS:\n return goalDetails;\n default:\n return [];\n }\n }, [id]);\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <Styled.Wrapper $width={750} $flexDirection=\"row\" $justifyContent=\"center\">\n {offeringDetails.length > 0\n ? offeringDetails.map((details, index, detailsArray) => {\n const {\n title,\n description,\n animationBackground,\n infoBackground,\n animationSource,\n animationPadding,\n dimension,\n } = details || {};\n const [width, height] = dimension || [];\n const lastElement = index === detailsArray.length - 1;\n\n return (\n <FlexView key={`offering-${index}`} $flex={1}>\n <Styled.AnimationWrapper\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $borderColor=\"BLACK_1\"\n $background={animationBackground}\n $gap={animationPadding}\n $isLastElement={lastElement}\n >\n <Image src={animationSource} width={width} height={height} withLoader />\n </Styled.AnimationWrapper>\n <Styled.DetailsWrapper\n $background={infoBackground}\n $gapX={1.375}\n $gutterX={2}\n $borderColor=\"BLACK_1\"\n $isLastElement={lastElement}\n $inherit\n >\n <Styled.TextElement $renderAs=\"ac2-black\">{title}</Styled.TextElement>\n <Separator heightX={1} />\n <Styled.TextElement $renderAs=\"ab3\">\n {typeof description === 'string'\n ? description\n : description.map(desc => <li key={desc}>{desc}</li>)}\n </Styled.TextElement>\n </Styled.DetailsWrapper>\n </FlexView>\n );\n })\n : null}\n </Styled.Wrapper>\n {id === TrialPageId.PARENT_APP && (\n <>\n <Separator height={50} />\n <Styled.Wrapper\n $width={450}\n $gap={14}\n $gutter={30}\n $background=\"YELLOW_1\"\n $borderColor=\"BLACK_T_15\"\n $position=\"relative\"\n >\n <Text $renderAs=\"ab2\">Get 24/7 customer support through this app.</Text>\n <Styled.RefundImageWrapper>\n <Image\n src={ILLUSTRATIONS.REFUND_POLICY_WITH_HEADPHONE}\n width={135}\n height={80}\n withLoader\n />\n </Styled.RefundImageWrapper>\n </Styled.Wrapper>\n </>\n )}\n </Styled.Container>\n );\n});\n\nexport default OfferingInformation;\n"],"names":["OfferingInformation","memo","slideConfig","useTrialSessionContext","id","offeringDetails","useMemo","TrialPageId","circleDetails","parentAppDetails","goalDetails","jsxs","Styled.Container","jsx","Separator","SlideHeader","Styled.Wrapper","details","index","detailsArray","title","description","animationBackground","infoBackground","animationSource","animationPadding","dimension","width","height","lastElement","FlexView","Styled.AnimationWrapper","Image","Styled.DetailsWrapper","Styled.TextElement","desc","Fragment","Text","Styled.RefundImageWrapper","ILLUSTRATIONS"],"mappings":";;;;;;;;;;;;AAaM,MAAAA,IAAsBC,EAAK,MAAM;AAC/B,QAAA,EAAE,aAAAC,MAAgBC,KAClB,EAAE,IAAAC,EAAO,IAAAF,GAETG,IAAkBC,EAAQ,MAAM;AACpC,YAAQF,GAAI;AAAA,MACV,KAAKG,EAAY;AACR,eAAAC;AAAA,MACT,KAAKD,EAAY;AACR,eAAAE;AAAA,MACT,KAAKF,EAAY;AACR,eAAAG;AAAA,MACT;AACE,eAAO;IACX;AAAA,EAAA,GACC,CAACN,CAAE,CAAC;AAGL,SAAA,gBAAAO,EAACC,GAAA,EACC,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,sBACtBC,GAAY,EAAA;AAAA,sBACZC,GAAA,EAAe,QAAQ,KAAK,gBAAe,OAAM,iBAAgB,UAC/D,UAAAX,EAAgB,SAAS,IACtBA,EAAgB,IAAI,CAACY,GAASC,GAAOC,MAAiB;AAC9C,YAAA;AAAA,QACJ,OAAAC;AAAA,QACA,aAAAC;AAAA,QACA,qBAAAC;AAAA,QACA,gBAAAC;AAAA,QACA,iBAAAC;AAAA,QACA,kBAAAC;AAAA,QACA,WAAAC;AAAA,MAAA,IACET,KAAW,CAAA,GACT,CAACU,GAAOC,CAAM,IAAIF,KAAa,CAAA,GAC/BG,IAAcX,MAAUC,EAAa,SAAS;A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AAK,WAAU,OAAM,UAA2C,+CAAA;AAAA,YACjE,gBAAAxB,EAACyB,GAAA,EACC,UAAA,gBAAAzB;AAAA,cAACmB;AAAA,cAAA;AAAA,gBACC,KAAKO,EAAc;AAAA,gBACnB,OAAO;AAAA,gBACP,QAAQ;AAAA,gBACR,YAAU;AAAA,cAAA;AAAA,YAAA,GAEd;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA,GACF;AAAA,EAEJ,EAAA,CAAA;AAEJ,CAAC;"}
@@ -0,0 +1,144 @@
1
+ import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
+ import d from "../../../ui/layout/flex-view.js";
3
+ import t from "../../../ui/separator/separator.js";
4
+ import n from "../../../ui/text/text.js";
5
+ import p from "./board-comp.js";
6
+ import { PricingBoard as f, ImageWrapper as y, OfferText as h } from "./pricing-styled.js";
7
+ const c = {
8
+ 0: "WHITE_4",
9
+ 1: "GREEN_1"
10
+ }, F = ({ pricingConfig: u, intentType: A, colorIndex: i }) => {
11
+ if (A === "LOW") {
12
+ const {
13
+ plan_name: W,
14
+ original_price: o,
15
+ discounted_price: _,
16
+ price_per_class: D,
17
+ classes_per_cycle: H,
18
+ billing_cycle: I,
19
+ offer: g,
20
+ currency_symbol: a
21
+ } = u || {};
22
+ return /* @__PURE__ */ e(f, { $width: 287, $height: 393, $gutterX: 2.5, $gapX: 2.125, children: [
23
+ /* @__PURE__ */ r(y, { $color: c[i % 2] ?? "WHITE_4", children: /* @__PURE__ */ r(p, { width: 287, height: 393 }) }),
24
+ /* @__PURE__ */ e(d, { $height: "100%", $justifyContent: "space-between", children: [
25
+ /* @__PURE__ */ e("div", { children: [
26
+ /* @__PURE__ */ r(t, { height: 50 }),
27
+ /* @__PURE__ */ r(n, { $renderAs: "ac2-black", children: W }),
28
+ /* @__PURE__ */ r(t, { height: 20 }),
29
+ /* @__PURE__ */ e(d, { $flexDirection: "row", $alignItems: "center", children: [
30
+ o && o !== _ ? /* @__PURE__ */ r(n, { $renderAs: "ub3-bold", $textDecoration: "line-through", children: a + o }) : null,
31
+ /* @__PURE__ */ e(d, { $flexDirection: "row", $alignItems: "end", children: [
32
+ /* @__PURE__ */ r(n, { $renderAs: "ah3-bold", children: a + _ }),
33
+ /* @__PURE__ */ e(n, { $renderAs: "ab1-bold", children: [
34
+ "/",
35
+ I === "yearly" ? "year" : "month"
36
+ ] })
37
+ ] })
38
+ ] }),
39
+ /* @__PURE__ */ r(t, { height: 4 }),
40
+ /* @__PURE__ */ e(n, { $renderAs: "ub3", children: [
41
+ "(",
42
+ a + D,
43
+ "/class)"
44
+ ] }),
45
+ /* @__PURE__ */ r(t, { height: 4 }),
46
+ /* @__PURE__ */ e(n, { $renderAs: "ub3", children: [
47
+ "(",
48
+ H,
49
+ " classes/mo)"
50
+ ] })
51
+ ] }),
52
+ g && /* @__PURE__ */ r(
53
+ h,
54
+ {
55
+ $renderAs: "ub3-bold",
56
+ $background: c[i % 2] ?? "WHITE_4",
57
+ children: g
58
+ }
59
+ )
60
+ ] })
61
+ ] });
62
+ }
63
+ const {
64
+ amount: $,
65
+ duration: C,
66
+ amount_after_coupon: l,
67
+ classes_per_week: k,
68
+ currency_symbol: s,
69
+ discount_details: w,
70
+ fee_per_class_after_discount: x,
71
+ meta_text: b,
72
+ no_of_classes: E
73
+ } = u || {}, { discount_duration: m, original_plan_details: P } = w || {}, { duration: T } = P || {};
74
+ return /* @__PURE__ */ e(
75
+ f,
76
+ {
77
+ $width: 287,
78
+ $height: 393,
79
+ $gutterX: 2.5,
80
+ $gapX: 2.125,
81
+ $justifyContent: "space-between",
82
+ children: [
83
+ /* @__PURE__ */ r(y, { $color: c[i % 2] ?? "WHITE_4", children: /* @__PURE__ */ r(p, { width: 287, height: 393 }) }),
84
+ /* @__PURE__ */ e("div", { children: [
85
+ /* @__PURE__ */ r(t, { height: 30 }),
86
+ /* @__PURE__ */ e(n, { $renderAs: "ah2-black", children: [
87
+ T || C,
88
+ " ",
89
+ /* @__PURE__ */ r(n, { $renderAs: "ac2-black", $inline: !0, children: "Months" })
90
+ ] }),
91
+ m && /* @__PURE__ */ e(
92
+ h,
93
+ {
94
+ $renderAs: "ub3-bold",
95
+ $background: c[i % 2] ?? "WHITE_4",
96
+ children: [
97
+ "Get extra ",
98
+ m,
99
+ " Months FREE"
100
+ ]
101
+ }
102
+ )
103
+ ] }),
104
+ /* @__PURE__ */ e("div", { children: [
105
+ l !== $ ? /* @__PURE__ */ e(n, { $renderAs: "ab1", $textDecoration: "line-through", children: [
106
+ s + $,
107
+ /* @__PURE__ */ e(n, { $renderAs: "ab1-black", $inline: !0, children: [
108
+ " ",
109
+ s + l
110
+ ] })
111
+ ] }) : /* @__PURE__ */ r(n, { $renderAs: "ab1-black", $inline: !0, children: s + l }),
112
+ /* @__PURE__ */ e(n, { $renderAs: "ub3", children: [
113
+ "(",
114
+ x,
115
+ "/class)"
116
+ ] })
117
+ ] }),
118
+ /* @__PURE__ */ e("div", { children: [
119
+ /* @__PURE__ */ e(n, { $renderAs: "ab1", children: [
120
+ E,
121
+ " classes"
122
+ ] }),
123
+ /* @__PURE__ */ e(n, { $renderAs: "ub2", children: [
124
+ "(",
125
+ k * 4,
126
+ " classes/mo)"
127
+ ] })
128
+ ] }),
129
+ b && /* @__PURE__ */ r(
130
+ h,
131
+ {
132
+ $renderAs: "ub3-bold",
133
+ $background: c[i % 2] ?? "WHITE_4",
134
+ children: b
135
+ }
136
+ )
137
+ ]
138
+ }
139
+ );
140
+ };
141
+ export {
142
+ F as default
143
+ };
144
+ //# sourceMappingURL=pricing-cards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pricing-cards.js","sources":["../../../../../src/features/trial-session/comps/pricing/pricing-cards.tsx"],"sourcesContent":["import type { TColorNames } from '../../../ui/types';\nimport type {\n IPricingCardsProps,\n TLowIntentPricingDetails,\n TPricingDetails,\n} from './pricing-typed';\nimport type { FC } from 'react';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport HangingBoardComp from './board-comp';\nimport * as Styled from './pricing-styled';\n\nconst layoutPrimaryColor: Record<number, TColorNames> = {\n 0: 'WHITE_4',\n 1: 'GREEN_1',\n};\n\nconst PricingCards: FC<IPricingCardsProps> = ({ pricingConfig, intentType, colorIndex }) => {\n if (intentType === 'LOW') {\n const {\n plan_name: pricingName,\n original_price: originalPrice,\n discounted_price: discountedPrice,\n price_per_class: pricePerClass,\n classes_per_cycle: classesPerCycle,\n billing_cycle: billingCycle,\n offer: metaText,\n currency_symbol: currencySymbol,\n } = (pricingConfig as TLowIntentPricingDetails) || {};\n\n return (\n <Styled.PricingBoard $width={287} $height={393} $gutterX={2.5} $gapX={2.125}>\n <Styled.ImageWrapper $color={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}>\n <HangingBoardComp width={287} height={393} />\n </Styled.ImageWrapper>\n <FlexView $height=\"100%\" $justifyContent=\"space-between\">\n <div>\n <Separator height={50} />\n <Text $renderAs=\"ac2-black\">{pricingName}</Text>\n <Separator height={20} />\n <FlexView $flexDirection=\"row\" $alignItems=\"center\">\n {originalPrice && originalPrice !== discountedPrice ? (\n <Text $renderAs=\"ub3-bold\" $textDecoration=\"line-through\">\n {currencySymbol + originalPrice}\n </Text>\n ) : null}\n <FlexView $flexDirection=\"row\" $alignItems=\"end\">\n <Text $renderAs=\"ah3-bold\">{currencySymbol + discountedPrice}</Text>\n <Text $renderAs=\"ab1-bold\">/{billingCycle === 'yearly' ? 'year' : 'month'}</Text>\n </FlexView>\n </FlexView>\n <Separator height={4} />\n <Text $renderAs=\"ub3\">({currencySymbol + pricePerClass}/class)</Text>\n <Separator height={4} />\n <Text $renderAs=\"ub3\">({classesPerCycle} classes/mo)</Text>\n </div>\n\n {metaText && (\n <Styled.OfferText\n $renderAs=\"ub3-bold\"\n $background={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}\n >\n {metaText}\n </Styled.OfferText>\n )}\n </FlexView>\n </Styled.PricingBoard>\n );\n }\n\n const {\n amount,\n duration: durationWithoutCoupon,\n amount_after_coupon: amountAfterCoupon,\n classes_per_week: classesPerWeek,\n currency_symbol: currencySymbol,\n discount_details: discountDetails,\n fee_per_class_after_discount: feePerClassAfterDiscount,\n meta_text: metaText,\n no_of_classes: noOfClasses,\n } = (pricingConfig as TPricingDetails) || {};\n const { discount_duration: discountDuration, original_plan_details: originalPlanDetails } =\n discountDetails || {};\n const { duration } = originalPlanDetails || {};\n\n return (\n <Styled.PricingBoard\n $width={287}\n $height={393}\n $gutterX={2.5}\n $gapX={2.125}\n $justifyContent=\"space-between\"\n >\n <Styled.ImageWrapper $color={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}>\n <HangingBoardComp width={287} height={393} />\n </Styled.ImageWrapper>\n <div>\n <Separator height={30} />\n <Text $renderAs=\"ah2-black\">\n {duration || durationWithoutCoupon}&nbsp;\n <Text $renderAs=\"ac2-black\" $inline>\n Months\n </Text>\n </Text>\n {discountDuration && (\n <Styled.OfferText\n $renderAs=\"ub3-bold\"\n $background={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}\n >\n Get extra {discountDuration} Months FREE\n </Styled.OfferText>\n )}\n </div>\n\n <div>\n {amountAfterCoupon !== amount ? (\n <Text $renderAs=\"ab1\" $textDecoration=\"line-through\">\n {currencySymbol + amount}\n <Text $renderAs=\"ab1-black\" $inline>\n &nbsp;\n {currencySymbol + amountAfterCoupon}\n </Text>\n </Text>\n ) : (\n <Text $renderAs=\"ab1-black\" $inline>\n {currencySymbol + amountAfterCoupon}\n </Text>\n )}\n <Text $renderAs=\"ub3\">({feePerClassAfterDiscount}/class)</Text>\n </div>\n\n <div>\n <Text $renderAs=\"ab1\">{noOfClasses} classes</Text>\n <Text $renderAs=\"ub2\">({classesPerWeek * 4} classes/mo)</Text>\n </div>\n\n {metaText && (\n <Styled.OfferText\n $renderAs=\"ub3-bold\"\n $background={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}\n >\n {metaText}\n </Styled.OfferText>\n )}\n </Styled.PricingBoard>\n );\n};\n\nexport default PricingCards;\n"],"names":["layoutPrimaryColor","PricingCards","pricingConfig","intentType","colorIndex","pricingName","originalPrice","discountedPrice","pricePerClass","classesPerCycle","billingCycle","metaText","currencySymbol","jsxs","Styled.PricingBoard","jsx","Styled.ImageWrapper","HangingBoardComp","FlexView","Separator","Text","Styled.OfferText","amount","durationWithoutCoupon","amountAfterCoupon","classesPerWeek","discountDetails","feePerClassAfterDiscount","noOfClasses","discountDuration","originalPlanDetails","duration"],"mappings":";;;;;;AAcA,MAAMA,IAAkD;AAAA,EACtD,GAAG;AAAA,EACH,GAAG;AACL,GAEMC,IAAuC,CAAC,EAAE,eAAAC,GAAe,YAAAC,GAAY,YAAAC,QAAiB;AAC1F,MAAID,MAAe,OAAO;AAClB,UAAA;AAAA,MACJ,WAAWE;AAAA,MACX,gBAAgBC;AAAA,MAChB,kBAAkBC;AAAA,MAClB,iBAAiBC;AAAA,MACjB,mBAAmBC;AAAA,MACnB,eAAeC;AAAA,MACf,OAAOC;AAAAA,MACP,iBAAiBC;AAAAA,IAAA,IACdV,KAA8C,CAAA;AAGjD,WAAA,gBAAAW,EAACC,GAAA,EAAoB,QAAQ,KAAK,SAAS,KAAK,UAAU,KAAK,OAAO,OACpE,UAAA;AAAA,MAAA,gBAAAC,EAACC,GAAA,EAAoB,QAAQhB,EAAmBI,IAAa,CAAC,KAAK,WACjE,4BAACa,GAAiB,EAAA,OAAO,KAAK,QAAQ,IAAK,CAAA,GAC7C;AAAA,MACC,gBAAAJ,EAAAK,GAAA,EAAS,SAAQ,QAAO,iBAAgB,iBACvC,UAAA;AAAA,QAAA,gBAAAL,EAAC,OACC,EAAA,UAAA;AAAA,UAAC,gBAAAE,EAAAI,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,UACtB,gBAAAJ,EAAAK,GAAA,EAAK,WAAU,aAAa,UAAYf,GAAA;AAAA,UACzC,gBAAAU,EAACI,GA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