@cuemath/leap 2.9.2 → 2.9.4-as2

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 (269) 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/lib/lib.js +1 -1
  4. package/dist/assets/lib/lib.js.map +1 -1
  5. package/dist/assets/line-icons/icons/alarm.js +41 -0
  6. package/dist/assets/line-icons/icons/alarm.js.map +1 -0
  7. package/dist/assets/line-icons/icons/bin2.js +7 -8
  8. package/dist/assets/line-icons/icons/bin2.js.map +1 -1
  9. package/dist/assets/line-icons/icons/chevron-left.js.map +1 -1
  10. package/dist/assets/line-icons/icons/dart.js +23 -0
  11. package/dist/assets/line-icons/icons/dart.js.map +1 -0
  12. package/dist/assets/line-icons/icons/exclamation.js +26 -0
  13. package/dist/assets/line-icons/icons/exclamation.js.map +1 -0
  14. package/dist/assets/line-icons/icons/home2.js +25 -0
  15. package/dist/assets/line-icons/icons/home2.js.map +1 -0
  16. package/dist/assets/line-icons/icons/important.js +23 -0
  17. package/dist/assets/line-icons/icons/important.js.map +1 -0
  18. package/dist/assets/line-icons/icons/puzzle.js +25 -0
  19. package/dist/assets/line-icons/icons/puzzle.js.map +1 -0
  20. package/dist/assets/line-icons/icons/recap.js +32 -0
  21. package/dist/assets/line-icons/icons/recap.js.map +1 -0
  22. package/dist/assets/line-icons/icons/skip-colored.js +43 -0
  23. package/dist/assets/line-icons/icons/skip-colored.js.map +1 -0
  24. package/dist/assets/line-icons/icons/status.js +41 -0
  25. package/dist/assets/line-icons/icons/status.js.map +1 -0
  26. package/dist/assets/line-icons/icons/testtube.js +33 -0
  27. package/dist/assets/line-icons/icons/testtube.js.map +1 -0
  28. package/dist/assets/lottie/lottie.js +9 -1
  29. package/dist/assets/lottie/lottie.js.map +1 -1
  30. package/dist/constants/api.js +3 -2
  31. package/dist/constants/api.js.map +1 -1
  32. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +99 -33
  33. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
  34. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +92 -49
  35. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
  36. package/dist/features/chapters/chapters-list/chapters-list-styled.js +5 -5
  37. package/dist/features/chapters/chapters-list/chapters-list-styled.js.map +1 -1
  38. package/dist/features/chapters/chapters-list/chapters-list.js +64 -70
  39. package/dist/features/chapters/chapters-list/chapters-list.js.map +1 -1
  40. package/dist/features/chapters-v2/api/chapter.js +10 -0
  41. package/dist/features/chapters-v2/api/chapter.js.map +1 -0
  42. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +112 -0
  43. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -0
  44. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js +26 -0
  45. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js.map +1 -0
  46. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +73 -0
  47. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -0
  48. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js +90 -0
  49. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js.map +1 -0
  50. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js +97 -0
  51. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js.map +1 -0
  52. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js +52 -0
  53. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js.map +1 -0
  54. package/dist/features/chapters-v2/chapter-details/chapter-details.js +103 -0
  55. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -0
  56. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js +13 -0
  57. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js.map +1 -0
  58. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +153 -0
  59. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +1 -0
  60. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js +16 -0
  61. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +1 -0
  62. package/dist/features/chapters-v2/comps/node-card/node-card.js +12 -0
  63. package/dist/features/chapters-v2/comps/node-card/node-card.js.map +1 -0
  64. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js +32 -0
  65. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js.map +1 -0
  66. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js +31 -0
  67. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js.map +1 -0
  68. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +171 -0
  69. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +1 -0
  70. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +192 -0
  71. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -0
  72. package/dist/features/chapters-v2/comps/tag/tag-styled.js +13 -0
  73. package/dist/features/chapters-v2/comps/tag/tag-styled.js.map +1 -0
  74. package/dist/features/chapters-v2/comps/tag/tag.js +28 -0
  75. package/dist/features/chapters-v2/comps/tag/tag.js.map +1 -0
  76. package/dist/features/chapters-v2/constants/block-constants.js +20 -0
  77. package/dist/features/chapters-v2/constants/block-constants.js.map +1 -0
  78. package/dist/features/chapters-v2/constants/node-constants.js +14 -0
  79. package/dist/features/chapters-v2/constants/node-constants.js.map +1 -0
  80. package/dist/features/chapters-v2/utils/index.js +41 -0
  81. package/dist/features/chapters-v2/utils/index.js.map +1 -0
  82. package/dist/features/chapters-v2/utils/node-card-utils.js +144 -0
  83. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -0
  84. package/dist/features/communication/pub-sub/constants.js +5 -2
  85. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  86. package/dist/features/homework/card-menu-options.js +38 -0
  87. package/dist/features/homework/card-menu-options.js.map +1 -0
  88. package/dist/features/homework/card-title.js +15 -0
  89. package/dist/features/homework/card-title.js.map +1 -0
  90. package/dist/features/homework/homework-card-view.js +131 -0
  91. package/dist/features/homework/homework-card-view.js.map +1 -0
  92. package/dist/features/homework/homework-card.js +205 -0
  93. package/dist/features/homework/homework-card.js.map +1 -0
  94. package/dist/features/homework/hw-card-list/api/get-homeworks.js +10 -0
  95. package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -0
  96. package/dist/features/homework/hw-card-list/hw-card-list-styled.js +71 -0
  97. package/dist/features/homework/hw-card-list/hw-card-list-styled.js.map +1 -0
  98. package/dist/features/homework/hw-card-list/hw-card-list.js +199 -0
  99. package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -0
  100. package/dist/features/homework/node-progress.js +29 -0
  101. package/dist/features/homework/node-progress.js.map +1 -0
  102. package/dist/features/homework/styles.js +130 -0
  103. package/dist/features/homework/styles.js.map +1 -0
  104. package/dist/features/journey/comps/coachmark/coachmark-styled.js +12 -5
  105. package/dist/features/journey/comps/coachmark/coachmark-styled.js.map +1 -1
  106. package/dist/features/journey/comps/coachmark/coachmark.js +24 -24
  107. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  108. package/dist/features/journey/hooks/use-home-page-journey.js +145 -0
  109. package/dist/features/journey/hooks/use-home-page-journey.js.map +1 -0
  110. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  111. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  112. package/dist/features/journey/use-journey/journey-context-provider.js +36 -28
  113. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  114. package/dist/features/journey/use-journey/journey-styled.js +10 -5
  115. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  116. package/dist/features/milestone/create/api/goal-submit.js +1 -1
  117. package/dist/features/milestone/create/api/goal-submit.js.map +1 -1
  118. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js +42 -49
  119. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js.map +1 -1
  120. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js +12 -4
  121. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js.map +1 -1
  122. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +128 -105
  123. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
  124. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +14 -20
  125. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js.map +1 -1
  126. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js +26 -50
  127. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js.map +1 -1
  128. package/dist/features/milestone/create/milestone-create.js +49 -43
  129. package/dist/features/milestone/create/milestone-create.js.map +1 -1
  130. package/dist/features/milestone/create/utils/index.js +33 -38
  131. package/dist/features/milestone/create/utils/index.js.map +1 -1
  132. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js +1 -1
  133. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js.map +1 -1
  134. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js +1 -1
  135. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js.map +1 -1
  136. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js +51 -53
  137. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js.map +1 -1
  138. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js +42 -40
  139. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js.map +1 -1
  140. package/dist/features/milestone/edit/goal-edit-container.js +64 -62
  141. package/dist/features/milestone/edit/goal-edit-container.js.map +1 -1
  142. package/dist/features/milestone/edit/goal-edit-helpers.js +50 -53
  143. package/dist/features/milestone/edit/goal-edit-helpers.js.map +1 -1
  144. package/dist/features/milestone/edit/milestone-edit-container.js +54 -52
  145. package/dist/features/milestone/edit/milestone-edit-container.js.map +1 -1
  146. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js +1 -1
  147. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js.map +1 -1
  148. package/dist/features/milestone/milestone-list-container/api/get-milestones.js +9 -17
  149. package/dist/features/milestone/milestone-list-container/api/get-milestones.js.map +1 -1
  150. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js +1 -1
  151. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js.map +1 -1
  152. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +136 -104
  153. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  154. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js +107 -123
  155. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js.map +1 -1
  156. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +155 -175
  157. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
  158. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js +24 -10
  159. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js.map +1 -1
  160. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +80 -86
  161. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  162. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js +10 -22
  163. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js.map +1 -1
  164. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js +70 -37
  165. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js.map +1 -1
  166. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +114 -176
  167. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
  168. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js +29 -16
  169. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js.map +1 -1
  170. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js +19 -23
  171. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js.map +1 -1
  172. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js +23 -35
  173. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js.map +1 -1
  174. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +96 -100
  175. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  176. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js +1 -1
  177. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js.map +1 -1
  178. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +114 -112
  179. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
  180. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +165 -0
  181. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -0
  182. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js +25 -0
  183. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js.map +1 -0
  184. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +85 -0
  185. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +1 -0
  186. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js +16 -18
  187. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js.map +1 -1
  188. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js +6 -34
  189. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +1 -1
  190. package/dist/features/recent-chapters/api/get-recent-chapters.js +9 -0
  191. package/dist/features/recent-chapters/api/get-recent-chapters.js.map +1 -0
  192. package/dist/features/recent-chapters/recent-chapters-styled.js +16 -0
  193. package/dist/features/recent-chapters/recent-chapters-styled.js.map +1 -0
  194. package/dist/features/recent-chapters/recent-chapters.js +85 -0
  195. package/dist/features/recent-chapters/recent-chapters.js.map +1 -0
  196. package/dist/features/sheet-v2/resource-list/resource-list.js +39 -0
  197. package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -0
  198. package/dist/features/sheets/resources-list/resource-item/styled.js +1 -1
  199. package/dist/features/sheets/resources-list/resource-item/styled.js.map +1 -1
  200. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js +4 -3
  201. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js.map +1 -1
  202. package/dist/features/trial-session/api/trial-pricing.js +1 -1
  203. package/dist/features/trial-session/api/trial-pricing.js.map +1 -1
  204. package/dist/features/trial-session/comps/offering-information/offering-information.js +21 -21
  205. package/dist/features/trial-session/comps/offering-information/offering-information.js.map +1 -1
  206. package/dist/features/trial-session/comps/pricing/pricing-cards.js +144 -0
  207. package/dist/features/trial-session/comps/pricing/pricing-cards.js.map +1 -0
  208. package/dist/features/trial-session/comps/pricing/pricing.js +51 -128
  209. package/dist/features/trial-session/comps/pricing/pricing.js.map +1 -1
  210. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +30 -29
  211. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  212. package/dist/features/ui/constants/z-index.js +1 -1
  213. package/dist/features/ui/constants/z-index.js.map +1 -1
  214. package/dist/features/ui/context-menu/context-menu-styled.js +28 -14
  215. package/dist/features/ui/context-menu/context-menu-styled.js.map +1 -1
  216. package/dist/features/ui/context-menu/context-menu.js +30 -15
  217. package/dist/features/ui/context-menu/context-menu.js.map +1 -1
  218. package/dist/features/ui/theme/button.js +22 -107
  219. package/dist/features/ui/theme/button.js.map +1 -1
  220. package/dist/index.d.ts +299 -32
  221. package/dist/index.js +498 -470
  222. package/dist/index.js.map +1 -1
  223. package/dist/node_modules/date-fns/differenceInDays.js +17 -0
  224. package/dist/node_modules/date-fns/differenceInDays.js.map +1 -0
  225. package/dist/static/chapter-header-bg-2.c8d96894.svg +1 -0
  226. package/dist/static/competitive-arena.b9c40801.json +1 -0
  227. package/dist/static/learn.71b13323.json +1 -0
  228. package/dist/static/node-custom-test-bg.d3b757be.svg +1 -0
  229. package/dist/static/node-learn-bg.b61f815c.svg +1 -0
  230. package/dist/static/node-practice-bg.16cbaf2a.svg +1 -0
  231. package/dist/static/node-project-bg.e6a33e28.svg +1 -0
  232. package/dist/static/node-puzzle-bg.3422135c.svg +1 -0
  233. package/dist/static/node-recap-bg.546154e4.svg +1 -0
  234. package/dist/static/node-test-prep-bg.42c0b9c4.svg +1 -0
  235. package/dist/static/node-video-bg.3df3f73a.svg +1 -0
  236. package/dist/static/practice.158dd488.json +1 -0
  237. package/dist/static/project.eb665827.json +1 -0
  238. package/dist/static/puzzle.b298c7e4.json +1 -0
  239. package/dist/static/recap.0dd2c1e2.json +1 -0
  240. package/dist/static/test.803d6036.json +1 -0
  241. package/dist/static/video.b41451e2.json +1 -0
  242. package/package.json +1 -1
  243. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js +0 -92
  244. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js.map +0 -1
  245. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js +0 -25
  246. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js.map +0 -1
  247. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js +0 -13
  248. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js.map +0 -1
  249. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js +0 -38
  250. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js.map +0 -1
  251. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js +0 -53
  252. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js.map +0 -1
  253. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js +0 -25
  254. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js.map +0 -1
  255. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js +0 -71
  256. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js.map +0 -1
  257. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js +0 -31
  258. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js.map +0 -1
  259. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js +0 -79
  260. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js.map +0 -1
  261. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js +0 -18
  262. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js.map +0 -1
  263. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js +0 -51
  264. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js.map +0 -1
  265. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js +0 -11
  266. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js.map +0 -1
  267. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js +0 -135
  268. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js.map +0 -1
  269. /package/dist/static/lib/{polypad.js → polypad-4.5.4.js} +0 -0
@@ -0,0 +1,10 @@
1
+ import { createGetAPI as r } from "@cuemath/rest-api";
2
+ import { BASE_URL_V3 as t } from "../../../../constants/api.js";
3
+ const { useGet: i, invalidate: u } = r({
4
+ getURL: (e, s, { stream: o }) => `${t}/users/${e}/course-streams/${o}/homework`
5
+ });
6
+ export {
7
+ u as invalidateHomeworks,
8
+ i as useGetHomeworks
9
+ };
10
+ //# sourceMappingURL=get-homeworks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-homeworks.js","sources":["../../../../../src/features/homework/hw-card-list/api/get-homeworks.ts"],"sourcesContent":["import type { INodeDataProps } from '../../../chapters-v2/comps/node-card/node-card-types';\n\nimport { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V3 } from '../../../../constants/api';\n\ninterface IHomeworkData extends INodeDataProps {\n homework_id: string;\n chapter_name: string;\n}\n\nconst { useGet: useGetHomeworks, invalidate: invalidateHomeworks } = createGetAPI<\n IHomeworkData[],\n void,\n { stream: string }\n>({\n getURL: (studentId: string, _, { stream }) =>\n `${BASE_URL_V3}/users/${studentId}/course-streams/${stream}/homework`,\n});\n\nexport { useGetHomeworks, invalidateHomeworks };\nexport type { IHomeworkData };\n"],"names":["useGetHomeworks","invalidateHomeworks","createGetAPI","studentId","_","stream","BASE_URL_V3"],"mappings":";;AAWA,MAAM,EAAE,QAAQA,GAAiB,YAAYC,EAAA,IAAwBC,EAInE;AAAA,EACA,QAAQ,CAACC,GAAmBC,GAAG,EAAE,QAAAC,EAAA,MAC/B,GAAGC,CAAW,UAAUH,CAAS,mBAAmBE,CAAM;AAC9D,CAAC;"}
@@ -0,0 +1,71 @@
1
+ import o, { css as n } from "styled-components";
2
+ import e from "../../ui/layout/flex-view.js";
3
+ import i from "../../ui/text/text.js";
4
+ const l = o(e)`
5
+ overflow-x: hidden;
6
+ overflow-y: visible;
7
+ padding: 16px 0px 92px 0px;
8
+ margin-bottom: -92px;
9
+ margin-top: -16px;
10
+ `, c = o(e)`
11
+ right: ${({ right: t }) => t};
12
+ left: ${({ left: t }) => t};
13
+ width: 32px;
14
+ cursor: pointer;
15
+ transition: opacity 0.3s ease-in-out;
16
+ opacity: ${({ $visible: t }) => t ? 1 : 0};
17
+ pointer-events: ${({ $visible: t }) => t ? "auto" : "none"};
18
+ z-index: 10;
19
+ path {
20
+ fill: ${({ theme: t }) => t.colors.WHITE};
21
+ }
22
+ `, x = o(e)(
23
+ ({ $disablePointerEvents: t, theme: r }) => `
24
+ position: relative;
25
+ pointer-events: auto;
26
+ ${t && n`
27
+ pointer-events: none;
28
+ :after {
29
+ content: '';
30
+ position: absolute;
31
+ top: 0;
32
+ left: 0;
33
+ right: 0;
34
+ bottom: 0;
35
+ background: ${r.colors.GREY_3};
36
+ }
37
+ `}
38
+ `
39
+ ), d = o(i)`
40
+ writing-mode: sideways-lr;
41
+ `, g = o(e)`
42
+ position: relative;
43
+
44
+ &::after {
45
+ content: '';
46
+ position: absolute;
47
+ height: 8px;
48
+ width: 8px;
49
+ clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
50
+ background-color: ${({ theme: t }) => t.colors.BLACK_4};
51
+ top: 50%;
52
+ right: 0;
53
+ transform: translate(50%, calc(-50% + 0px)) rotate(225deg);
54
+ }
55
+ `, u = o(e)`
56
+ cursor: pointer;
57
+ height: 100%;
58
+ right: ${({ right: t }) => t};
59
+ left: ${({ left: t }) => t};
60
+ pointer-events: all;
61
+ z-index: 5;
62
+ `;
63
+ export {
64
+ x as ContentWrapper,
65
+ u as HoverZone,
66
+ d as QueueText,
67
+ g as QueueWrapper,
68
+ c as ScrollButton,
69
+ l as ScrollContainer
70
+ };
71
+ //# sourceMappingURL=hw-card-list-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hw-card-list-styled.js","sources":["../../../../src/features/homework/hw-card-list/hw-card-list-styled.tsx"],"sourcesContent":["import styled, { css } from 'styled-components';\n\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\n\nexport const ScrollContainer = styled(FlexView)`\n overflow-x: hidden;\n overflow-y: visible;\n padding: 16px 0px 92px 0px;\n margin-bottom: -92px;\n margin-top: -16px;\n`;\n\nexport const ScrollButton = styled(FlexView)<{ $visible: boolean; right: string; left: string }>`\n right: ${({ right }) => right};\n left: ${({ left }) => left};\n width: 32px;\n cursor: pointer;\n transition: opacity 0.3s ease-in-out;\n opacity: ${({ $visible }) => ($visible ? 1 : 0)};\n pointer-events: ${({ $visible }) => ($visible ? 'auto' : 'none')};\n z-index: 10;\n path {\n fill: ${({ theme }) => theme.colors.WHITE};\n }\n`;\n\nexport const ContentWrapper = styled(FlexView)<{ $disablePointerEvents: boolean }>(\n ({ $disablePointerEvents, theme }) => `\n position: relative;\n pointer-events: auto;\n ${\n $disablePointerEvents &&\n css`\n pointer-events: none;\n :after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: ${theme.colors.GREY_3};\n }\n `\n }\n `,\n);\n\nexport const QueueText = styled(Text)`\n writing-mode: sideways-lr;\n`;\n\nexport const QueueWrapper = styled(FlexView)`\n position: relative;\n\n &::after {\n content: '';\n position: absolute;\n height: 8px;\n width: 8px;\n clip-path: polygon(0% 0%, 100% 100%, 0% 100%);\n background-color: ${({ theme }) => theme.colors.BLACK_4};\n top: 50%;\n right: 0;\n transform: translate(50%, calc(-50% + 0px)) rotate(225deg);\n }\n`;\nexport const HoverZone = styled(FlexView)<{ right: string; left: string }>`\n cursor: pointer;\n height: 100%;\n right: ${({ right }) => right};\n left: ${({ left }) => left};\n pointer-events: all;\n z-index: 5;\n`;\n"],"names":["ScrollContainer","styled","FlexView","ScrollButton","right","left","$visible","theme","ContentWrapper","$disablePointerEvents","css","QueueText","Text","QueueWrapper","HoverZone"],"mappings":";;;AAKa,MAAAA,IAAkBC,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQjCC,IAAeF,EAAOC,CAAQ;AAAA,WAChC,CAAC,EAAE,OAAAE,EAAM,MAAMA,CAAK;AAAA,UACrB,CAAC,EAAE,MAAAC,EAAK,MAAMA,CAAI;AAAA;AAAA;AAAA;AAAA,aAIf,CAAC,EAAE,UAAAC,EAAA,MAAgBA,IAAW,IAAI,CAAE;AAAA,oBAC7B,CAAC,EAAE,UAAAA,EAAA,MAAgBA,IAAW,SAAS,MAAO;AAAA;AAAA;AAAA,YAGtD,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA,GAIhCC,IAAiBP,EAAOC,CAAQ;AAAA,EAC3C,CAAC,EAAE,uBAAAO,GAAuB,OAAAF,EAAA,MAAY;AAAA;AAAA;AAAA,MAIlCE,KACAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBASkBH,EAAM,OAAO,MAAM;AAAA;AAAA,OAGvC;AAAA;AAEJ,GAEaI,IAAYV,EAAOW,CAAI;AAAA;AAAA,GAIvBC,IAAeZ,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBASnB,CAAC,EAAE,OAAAK,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAM9CO,IAAYb,EAAOC,CAAQ;AAAA;AAAA;AAAA,WAG7B,CAAC,EAAE,OAAAE,EAAM,MAAMA,CAAK;AAAA,UACrB,CAAC,EAAE,MAAAC,EAAK,MAAMA,CAAI;AAAA;AAAA;AAAA;"}
@@ -0,0 +1,199 @@
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
+ import { useRef as te, useState as u, useEffect as h, useCallback as n } from "react";
3
+ import re from "../../../assets/line-icons/icons/chevron-left.js";
4
+ import ne from "../../../assets/line-icons/icons/chevron-right.js";
5
+ import { useJourney as ie } from "../../journey/use-journey/use-journey.js";
6
+ import { getTopicsFromItems as le } from "../../milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js";
7
+ import $ from "../../ui/layout/flex-view.js";
8
+ import C from "../../ui/text/text.js";
9
+ import ce from "../homework-card.js";
10
+ import { useGetHomeworks as se } from "./api/get-homeworks.js";
11
+ import { ContentWrapper as he, HoverZone as R, ScrollButton as w, ScrollContainer as fe, QueueWrapper as ae, QueueText as de } from "./hw-card-list-styled.js";
12
+ const ue = ({
13
+ userType: A = "STUDENT",
14
+ studentId: s,
15
+ stream: f,
16
+ onTestStart: x,
17
+ onNodeAttempt: E,
18
+ onTestPreview: S,
19
+ onNodeView: T,
20
+ onTestReview: I,
21
+ onNodeReview: y,
22
+ onNodeUnassign: B,
23
+ homeworkRef: W,
24
+ individualHomeworkRef: N,
25
+ startHomePageJourney: p
26
+ }) => {
27
+ const r = te(null), [j, L] = u(!1), [K, k] = u(!1), [M, F] = u(!1), [G, X] = u(!0), {
28
+ get: b,
29
+ data: e,
30
+ isProcessingFailed: Q,
31
+ isProcessing: g,
32
+ isStale: H
33
+ } = se(s), { isJourneyActive: m } = ie();
34
+ h(() => {
35
+ e != null && e.length && p && !m && p(e, s, f);
36
+ }, [e, m, p, f, s]);
37
+ const O = n(() => {
38
+ r.current && r.current.scrollBy({ left: -200, behavior: "smooth" });
39
+ }, []), V = n(() => {
40
+ r.current && r.current.scrollBy({ left: 200, behavior: "smooth" });
41
+ }, []), z = n(() => {
42
+ L(!0);
43
+ }, []), P = n(() => {
44
+ L(!1);
45
+ }, []), U = n(() => {
46
+ k(!0);
47
+ }, []), Y = n(() => {
48
+ k(!1);
49
+ }, []), i = n(() => {
50
+ if (r.current) {
51
+ const { scrollLeft: t, scrollWidth: l, clientWidth: v } = r.current;
52
+ F(t > 10), X(t < l - v - 10);
53
+ }
54
+ }, []);
55
+ h(() => {
56
+ const t = r.current;
57
+ if (t)
58
+ return t.addEventListener("scroll", i), i(), () => {
59
+ t.removeEventListener("scroll", i);
60
+ };
61
+ }, [i]), h(() => {
62
+ i();
63
+ }, [e, i]);
64
+ const a = n(() => {
65
+ b(s, void 0, { stream: f });
66
+ }, [b, f, s]);
67
+ h(() => {
68
+ !g && H && a();
69
+ }, [a, g, H]), h(() => {
70
+ a();
71
+ }, [a]);
72
+ const Z = ((e == null ? void 0 : e.filter((t) => t.state === "WAIT_FOR_REVIEW")) || []).length;
73
+ return e && e.length === 0 ? /* @__PURE__ */ c($, { $flexRowGapX: 1, children: [
74
+ /* @__PURE__ */ c(C, { $renderAs: "ac4-black", $color: "BLACK_T_60", children: [
75
+ "Homework (",
76
+ e == null ? void 0 : e.length,
77
+ ")"
78
+ ] }),
79
+ /* @__PURE__ */ o(C, { $renderAs: "ab2", $color: "BLACK_T_60", children: "No Homework assigned yet" })
80
+ ] }) : Q ? null : /* @__PURE__ */ c(he, { ref: W, $flexRowGapX: 1, $disablePointerEvents: g, children: [
81
+ !m && /* @__PURE__ */ c(C, { $renderAs: "ac4-black", $color: "BLACK_T_60", children: [
82
+ "Homework (",
83
+ Z,
84
+ "/",
85
+ e == null ? void 0 : e.length,
86
+ ")"
87
+ ] }),
88
+ /* @__PURE__ */ c($, { $position: "relative", onMouseEnter: i, children: [
89
+ M && /* @__PURE__ */ o(
90
+ R,
91
+ {
92
+ $position: "absolute",
93
+ $width: "60px",
94
+ left: "0",
95
+ right: "auto",
96
+ onMouseEnter: z,
97
+ onMouseLeave: P,
98
+ children: /* @__PURE__ */ o(
99
+ w,
100
+ {
101
+ $position: "absolute",
102
+ $background: "BLACK_T_60",
103
+ $justifyContent: "center",
104
+ $alignItems: "center",
105
+ $height: "100%",
106
+ onClick: O,
107
+ $visible: j,
108
+ left: "0px",
109
+ right: "auto",
110
+ children: /* @__PURE__ */ o(re, { width: 24, height: 24 })
111
+ }
112
+ )
113
+ },
114
+ "left-hover-zone"
115
+ ),
116
+ /* @__PURE__ */ o(fe, { ref: r, children: /* @__PURE__ */ o($, { $flexDirection: "row", $flexGapX: 1, children: e == null ? void 0 : e.map((t, l) => {
117
+ const {
118
+ items: v,
119
+ node_id: _,
120
+ worksheet_id: q,
121
+ node_type: J,
122
+ title: D,
123
+ subtext: ee
124
+ } = t, oe = le(v).join(", "), d = J === "DYNAMIC";
125
+ return /* @__PURE__ */ c(
126
+ $,
127
+ {
128
+ ref: l === 0 ? N : void 0,
129
+ $flexDirection: "row",
130
+ $flexGapX: 1,
131
+ children: [
132
+ e.length > 10 && l === 10 && /* @__PURE__ */ o(
133
+ ae,
134
+ {
135
+ $widthX: 9.5,
136
+ $background: "BLACK_4",
137
+ $justifyContent: "center",
138
+ $gutter: 4,
139
+ $gap: 8,
140
+ children: /* @__PURE__ */ o(de, { $renderAs: "ac3", $color: "WHITE", children: "In Queue" })
141
+ }
142
+ ),
143
+ /* @__PURE__ */ o(
144
+ ce,
145
+ {
146
+ isInQueue: e.length > 10 && l > 9,
147
+ userType: A,
148
+ header: d ? oe : D,
149
+ subHeader: ee || "",
150
+ nodeData: t,
151
+ renderAs: "homework",
152
+ onNodeAttempt: d ? x : E,
153
+ shouldOpenOnRight: e.length > 3 && l === e.length - 1,
154
+ onNodeView: d ? S : T,
155
+ onNodeReview: d ? I : y,
156
+ onNodeUnassign: B
157
+ },
158
+ `${q}_${_}_${l}`
159
+ )
160
+ ]
161
+ },
162
+ _
163
+ );
164
+ }) }) }),
165
+ G && /* @__PURE__ */ o(
166
+ R,
167
+ {
168
+ $position: "absolute",
169
+ $width: "60px",
170
+ right: "0",
171
+ left: "auto",
172
+ onMouseEnter: U,
173
+ onMouseLeave: Y,
174
+ children: /* @__PURE__ */ o(
175
+ w,
176
+ {
177
+ $position: "absolute",
178
+ $width: "60px",
179
+ $height: "100%",
180
+ $background: "BLACK_T_60",
181
+ $justifyContent: "center",
182
+ $alignItems: "center",
183
+ onClick: V,
184
+ $visible: K,
185
+ left: "auto",
186
+ right: "0px",
187
+ children: /* @__PURE__ */ o(ne, { width: 24, height: 24 })
188
+ }
189
+ )
190
+ },
191
+ "right-hover-zone"
192
+ )
193
+ ] })
194
+ ] });
195
+ }, we = ue;
196
+ export {
197
+ we as default
198
+ };
199
+ //# sourceMappingURL=hw-card-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hw-card-list.js","sources":["../../../../src/features/homework/hw-card-list/hw-card-list.tsx"],"sourcesContent":["import type {\n INodeCardCallbacks,\n INodeDataProps,\n} from '../../chapters-v2/comps/node-card/node-card-types';\nimport type { TUserTypes } from '../../ui/types';\n\nimport React, { useCallback, useEffect, useRef, useState } from 'react';\n\nimport ChevronLeftIcon from '../../../assets/line-icons/icons/chevron-left';\nimport ChevronRightIcon from '../../../assets/line-icons/icons/chevron-right';\nimport { useJourney } from '../../journey/use-journey/use-journey';\nimport { getTopicsFromItems } from '../../milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils';\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport HomeworkCard from '../homework-card';\nimport { useGetHomeworks } from './api/get-homeworks';\nimport * as Styled from './hw-card-list-styled';\n\ninterface HWCardListProps extends INodeCardCallbacks {\n userType: TUserTypes;\n studentId: string;\n stream: string;\n onTestPreview?: (sheetData: INodeDataProps, milestoneId?: string) => void;\n onTestStart?: (sheetData: INodeDataProps) => void;\n onTestReview?: (sheetData: INodeDataProps, milestoneId?: string) => void;\n homeworkRef?: React.RefObject<HTMLDivElement>;\n individualHomeworkRef?: React.RefObject<HTMLDivElement>;\n startHomePageJourney?: (\n homeworkDetails: INodeDataProps[],\n studentId: string,\n stream: string,\n ) => void;\n}\n\nconst HWCardList: React.FC<HWCardListProps> = ({\n userType = 'STUDENT',\n studentId,\n stream,\n onTestStart,\n onNodeAttempt,\n onTestPreview,\n onNodeView,\n onTestReview,\n onNodeReview,\n onNodeUnassign,\n homeworkRef,\n individualHomeworkRef,\n startHomePageJourney,\n}) => {\n const scrollRef = useRef<HTMLDivElement>(null);\n const [isLeftHovered, setIsLeftHovered] = useState(false);\n const [isRightHovered, setIsRightHovered] = useState(false);\n const [canScrollLeft, setCanScrollLeft] = useState(false);\n const [canScrollRight, setCanScrollRight] = useState(true);\n const {\n get: getHomeworks,\n data: hwDetails,\n isProcessingFailed,\n isProcessing,\n isStale,\n } = useGetHomeworks(studentId);\n const { isJourneyActive } = useJourney();\n\n useEffect(() => {\n if (hwDetails?.length && startHomePageJourney && !isJourneyActive) {\n startHomePageJourney(hwDetails, studentId, stream);\n }\n }, [hwDetails, isJourneyActive, startHomePageJourney, stream, studentId]);\n\n const handleScrollLeft = useCallback(() => {\n if (scrollRef.current) {\n scrollRef.current.scrollBy({ left: -200, behavior: 'smooth' });\n }\n }, []);\n\n const handleScrollRight = useCallback(() => {\n if (scrollRef.current) {\n scrollRef.current.scrollBy({ left: 200, behavior: 'smooth' });\n }\n }, []);\n\n const handleLeftHoverEnter = useCallback(() => {\n setIsLeftHovered(true);\n }, []);\n\n const handleLeftHoverLeave = useCallback(() => {\n setIsLeftHovered(false);\n }, []);\n\n const handleRightHoverEnter = useCallback(() => {\n setIsRightHovered(true);\n }, []);\n\n const handleRightHoverLeave = useCallback(() => {\n setIsRightHovered(false);\n }, []);\n\n const checkScrollPosition = useCallback(() => {\n if (scrollRef.current) {\n const { scrollLeft, scrollWidth, clientWidth } = scrollRef.current;\n\n setCanScrollLeft(scrollLeft > 10);\n setCanScrollRight(scrollLeft < scrollWidth - clientWidth - 10);\n }\n }, []);\n\n useEffect(() => {\n const scrollElement = scrollRef.current;\n\n if (scrollElement) {\n scrollElement.addEventListener('scroll', checkScrollPosition);\n checkScrollPosition();\n\n return () => {\n scrollElement.removeEventListener('scroll', checkScrollPosition);\n };\n }\n }, [checkScrollPosition]);\n\n // Also check when content changes\n useEffect(() => {\n checkScrollPosition();\n }, [hwDetails, checkScrollPosition]);\n\n const fetchHomeworks = useCallback(() => {\n getHomeworks(studentId, undefined, { stream });\n }, [getHomeworks, stream, studentId]);\n\n useEffect(() => {\n if (!isProcessing && isStale) {\n fetchHomeworks();\n }\n }, [fetchHomeworks, isProcessing, isStale]);\n\n useEffect(() => {\n fetchHomeworks();\n }, [fetchHomeworks]);\n\n const waitForReviewSheets = (hwDetails?.filter(sheet => sheet.state === 'WAIT_FOR_REVIEW') || [])\n .length;\n\n if (hwDetails && hwDetails.length === 0) {\n return (\n <FlexView $flexRowGapX={1}>\n <Text $renderAs=\"ac4-black\" $color=\"BLACK_T_60\">\n Homework ({hwDetails?.length})\n </Text>\n <Text $renderAs=\"ab2\" $color=\"BLACK_T_60\">\n No Homework assigned yet\n </Text>\n </FlexView>\n );\n }\n\n if (isProcessingFailed) {\n return null;\n }\n\n return (\n <Styled.ContentWrapper ref={homeworkRef} $flexRowGapX={1} $disablePointerEvents={isProcessing}>\n {!isJourneyActive && (\n <Text $renderAs=\"ac4-black\" $color=\"BLACK_T_60\">\n Homework ({waitForReviewSheets}/{hwDetails?.length})\n </Text>\n )}\n <FlexView $position=\"relative\" onMouseEnter={checkScrollPosition}>\n {/* Left hover zone */}\n {canScrollLeft && (\n <Styled.HoverZone\n key=\"left-hover-zone\"\n $position=\"absolute\"\n $width=\"60px\"\n left=\"0\"\n right=\"auto\"\n onMouseEnter={handleLeftHoverEnter}\n onMouseLeave={handleLeftHoverLeave}\n >\n {/* Left scroll button - only visible when hovered */}\n <Styled.ScrollButton\n $position=\"absolute\"\n $background=\"BLACK_T_60\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $height=\"100%\"\n onClick={handleScrollLeft}\n $visible={isLeftHovered}\n left=\"0px\"\n right=\"auto\"\n >\n <ChevronLeftIcon width={24} height={24} />\n </Styled.ScrollButton>\n </Styled.HoverZone>\n )}\n\n <Styled.ScrollContainer ref={scrollRef}>\n <FlexView $flexDirection=\"row\" $flexGapX={1}>\n {hwDetails?.map((sheet, idx) => {\n const {\n items,\n node_id: nodeId,\n worksheet_id: worksheetId,\n node_type: nodeType,\n title,\n subtext,\n } = sheet;\n const topics = getTopicsFromItems(items);\n const testChapterName = topics.join(', ');\n const isDynamicSheet = nodeType === 'DYNAMIC';\n\n return (\n <FlexView\n ref={idx === 0 ? individualHomeworkRef : undefined}\n key={nodeId}\n $flexDirection=\"row\"\n $flexGapX={1}\n >\n {hwDetails.length > 10 && idx === 10 && (\n <Styled.QueueWrapper\n $widthX={9.5}\n $background=\"BLACK_4\"\n $justifyContent=\"center\"\n $gutter={4}\n $gap={8}\n >\n <Styled.QueueText $renderAs=\"ac3\" $color=\"WHITE\">\n In Queue\n </Styled.QueueText>\n </Styled.QueueWrapper>\n )}\n <HomeworkCard\n isInQueue={hwDetails.length > 10 && idx > 9}\n key={`${worksheetId}_${nodeId}_${idx}`}\n userType={userType}\n header={isDynamicSheet ? testChapterName : title}\n subHeader={subtext || ''}\n nodeData={sheet}\n renderAs=\"homework\"\n onNodeAttempt={isDynamicSheet ? onTestStart : onNodeAttempt}\n shouldOpenOnRight={hwDetails.length > 3 && idx === hwDetails.length - 1}\n onNodeView={isDynamicSheet ? onTestPreview : onNodeView}\n onNodeReview={isDynamicSheet ? onTestReview : onNodeReview}\n onNodeUnassign={onNodeUnassign}\n />\n </FlexView>\n );\n })}\n </FlexView>\n </Styled.ScrollContainer>\n\n {/* Right hover zone */}\n {canScrollRight && (\n <Styled.HoverZone\n key=\"right-hover-zone\"\n $position=\"absolute\"\n $width=\"60px\"\n right=\"0\"\n left=\"auto\"\n onMouseEnter={handleRightHoverEnter}\n onMouseLeave={handleRightHoverLeave}\n >\n {/* Right scroll button - only visible when hovered */}\n <Styled.ScrollButton\n $position=\"absolute\"\n $width=\"60px\"\n $height=\"100%\"\n $background=\"BLACK_T_60\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n onClick={handleScrollRight}\n $visible={isRightHovered}\n left=\"auto\"\n right=\"0px\"\n >\n <ChevronRightIcon width={24} height={24} />\n </Styled.ScrollButton>\n </Styled.HoverZone>\n )}\n </FlexView>\n </Styled.ContentWrapper>\n );\n};\n\nexport default HWCardList;\n"],"names":["HWCardList","userType","studentId","stream","onTestStart","onNodeAttempt","onTestPreview","onNodeView","onTestReview","onNodeReview","onNodeUnassign","homeworkRef","individualHomeworkRef","startHomePageJourney","scrollRef","useRef","isLeftHovered","setIsLeftHovered","useState","isRightHovered","setIsRightHovered","canScrollLeft","setCanScrollLeft","canScrollRight","setCanScrollRight","getHomeworks","hwDetails","isProcessingFailed","isProcessing","isStale","useGetHomeworks","isJourneyActive","useJourney","useEffect","handleScrollLeft","useCallback","handleScrollRight","handleLeftHoverEnter","handleLeftHoverLeave","handleRightHoverEnter","handleRightHoverLeave","checkScrollPosition","scrollLeft","scrollWidth","clientWidth","scrollElement","fetchHomeworks","waitForReviewSheets","sheet","jsxs","FlexView","Text","Styled.ContentWrapper","jsx","Styled.HoverZone","Styled.ScrollButton","ChevronLeftIcon","Styled.ScrollContainer","idx","items","nodeId","worksheetId","nodeType","title","subtext","testChapterName","getTopicsFromItems","isDynamicSheet","Styled.QueueWrapper","Styled.QueueText","HomeworkCard","ChevronRightIcon","HWCardList$1"],"mappings":";;;;;;;;;;;AAkCA,MAAMA,KAAwC,CAAC;AAAA,EAC7C,UAAAC,IAAW;AAAA,EACX,WAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,eAAAC;AAAA,EACA,YAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,sBAAAC;AACF,MAAM;AACE,QAAAC,IAAYC,GAAuB,IAAI,GACvC,CAACC,GAAeC,CAAgB,IAAIC,EAAS,EAAK,GAClD,CAACC,GAAgBC,CAAiB,IAAIF,EAAS,EAAK,GACpD,CAACG,GAAeC,CAAgB,IAAIJ,EAAS,EAAK,GAClD,CAACK,GAAgBC,CAAiB,IAAIN,EAAS,EAAI,GAC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IAAA,EAAiB,OAAO,IAAI,QAAQ,IAAI;AAAA,YAAA;AAAA,UAC3C;AAAA,QAAA;AAAA,QAtBI;AAAA,MAuBN;AAAA,IAAA,GAEJ;AAAA,EACF,EAAA,CAAA;AAEJ,GAEAC,KAAexE;"}
@@ -0,0 +1,29 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { memo as m } from "react";
3
+ import a from "styled-components";
4
+ import n from "../ui/layout/flex-view.js";
5
+ import { differenceInDays as e } from "../../node_modules/date-fns/differenceInDays.js";
6
+ const g = a(n)`
7
+ height: 100%;
8
+ border-radius: 4px;
9
+ transition: all 300ms;
10
+ width: ${(r) => r.progress}%;
11
+ `, d = a(n)`
12
+ position: absolute;
13
+ top: -1px;
14
+ right: 0px;
15
+ width: 100%;
16
+ height: 2px;
17
+ background-color: ${(r) => r.theme.colors.BLACK};
18
+ z-index: 2;
19
+ `, l = ({ unlockedOn: r, dueDate: i, progressBg: c }) => {
20
+ const p = (() => {
21
+ const o = e(i, r), s = e(/* @__PURE__ */ new Date(), r);
22
+ return s > o ? 100 : Math.min(Math.max(s / o * 100, 0), 100);
23
+ })();
24
+ return /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(g, { progress: p, $background: c }) });
25
+ }, y = m(l);
26
+ export {
27
+ y as default
28
+ };
29
+ //# sourceMappingURL=node-progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-progress.js","sources":["../../../src/features/homework/node-progress.tsx"],"sourcesContent":["import type { TColorNames } from '../ui/types';\n\nimport { differenceInDays } from 'date-fns';\nimport React, { memo } from 'react';\nimport styled from 'styled-components';\n\nimport FlexView from '../ui/layout/flex-view';\n\ninterface NodeProgressProps {\n unlockedOn: number | string | Date;\n dueDate: number | string | Date;\n progressBg: TColorNames;\n}\n\nconst ProgressBar = styled(FlexView)<{ progress: number }>`\n height: 100%;\n border-radius: 4px;\n transition: all 300ms;\n width: ${props => props.progress}%;\n`;\n\nconst ProgressContainer = styled(FlexView)`\n position: absolute;\n top: -1px;\n right: 0px;\n width: 100%;\n height: 2px;\n background-color: ${props => props.theme.colors.BLACK};\n z-index: 2;\n`;\n\nconst NodeProgress: React.FC<NodeProgressProps> = ({ unlockedOn, dueDate, progressBg }) => {\n const calculateProgress = () => {\n const totalDays = differenceInDays(dueDate, unlockedOn);\n const daysElapsed = differenceInDays(new Date(), unlockedOn);\n\n if (daysElapsed > totalDays) return 100;\n\n const progress = Math.min(Math.max((daysElapsed / totalDays) * 100, 0), 100);\n\n return progress;\n };\n\n const progress = calculateProgress();\n\n return (\n <ProgressContainer>\n <ProgressBar progress={progress} $background={progressBg} />\n </ProgressContainer>\n );\n};\n\nexport default memo(NodeProgress);\n"],"names":["ProgressBar","styled","FlexView","props","ProgressContainer","NodeProgress","unlockedOn","dueDate","progressBg","progress","totalDays","differenceInDays","daysElapsed","jsx","NodeProgress$1","memo"],"mappings":";;;;;AAcA,MAAMA,IAAcC,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA,WAIxB,CAAAC,MAASA,EAAM,QAAQ;AAAA,GAG5BC,IAAoBH,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAMnB,CAASC,MAAAA,EAAM,MAAM,OAAO,KAAK;AAAA;AAAA,GAIjDE,IAA4C,CAAC,EAAE,YAAAC,GAAY,SAAAC,GAAS,YAAAC,QAAiB;AAYzF,QAAMC,KAXoB,MAAM;AACxB,UAAAC,IAAYC,EAAiBJ,GAASD,CAAU,GAChDM,IAAcD,EAAqB,oBAAA,QAAQL,CAAU;AAEvD,WAAAM,IAAcF,IAAkB,MAEnB,KAAK,IAAI,KAAK,IAAKE,IAAcF,IAAa,KAAK,CAAC,GAAG,GAAG;AAAA,EAEpE;AAKT,2BACGN,GACC,EAAA,UAAA,gBAAAS,EAACb,KAAY,UAAAS,GAAoB,aAAaD,EAAY,CAAA,EAC5D,CAAA;AAEJ,GAEeM,IAAAC,EAAKV,CAAY;"}
@@ -0,0 +1,130 @@
1
+ import r from "styled-components";
2
+ import n from "../../assets/line-icons/icons/minus2.js";
3
+ import e from "../ui/layout/flex-view.js";
4
+ import i from "../ui/text/text.js";
5
+ const l = r(e)(({ theme: o }) => `
6
+ cursor: pointer;
7
+ width: 24px;
8
+ height: 24px;
9
+
10
+
11
+ &:hover {
12
+ border-radius: 50%;
13
+ background: ${o.colors.WHITE_5};
14
+ }
15
+ `), d = r(i)`
16
+ display: -webkit-box;
17
+ -webkit-line-clamp: 1;
18
+ -webkit-box-orient: vertical;
19
+ overflow: hidden;
20
+ text-overflow: ellipsis;
21
+ `, u = r(e)(({
22
+ $shouldopenonright: o,
23
+ $visible: t
24
+ }) => `
25
+ cursor: pointer;
26
+ position: absolute;
27
+ z-index: 6;
28
+ top: calc(100% + 4px);
29
+ right: ${o ? 0 : "auto"};
30
+ transform-origin: top;
31
+ transform: scaleY(${t ? 1 : 0});
32
+ opacity: ${t ? 1 : 0};
33
+ transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
34
+ box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.4);
35
+ z-index: 10;
36
+ `), x = r(e)`
37
+ border: 1px solid ${({ theme: o }) => o.colors.BLACK_T_15};
38
+
39
+ &:hover {
40
+ border: 1px solid ${({ theme: o }) => o.colors.BLACK};
41
+ }
42
+ `, b = r(e)(({ $bgImage: o }) => o ? `
43
+ background-image: url(${o});
44
+ background-repeat: no-repeat;
45
+ background-size: cover;
46
+ background-position: center;
47
+ overflow: hidden;
48
+ ` : "overflow: hidden;"), h = r(e)`
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ `, w = r(e)`
53
+ position: absolute;
54
+ right: -18px;
55
+ top: -4px;
56
+ `, f = r.img(({ theme: o }) => {
57
+ const { gutter: t } = o.layout;
58
+ return `
59
+ border: 1px solid ${o.colors.BLACK_T_15};
60
+ width: ${t * 4}px;
61
+ height: ${t * 4}px;
62
+ border-radius: 50%;
63
+ `;
64
+ }), g = r(n)`
65
+ path {
66
+ stroke: ${({ theme: o }) => o.colors.WHITE};
67
+ }
68
+ `, m = r(i)`
69
+ display: -webkit-box;
70
+ -webkit-line-clamp: 2;
71
+ -webkit-box-orient: vertical;
72
+ overflow: hidden;
73
+ text-overflow: ellipsis;
74
+ white-space: break-spaces;
75
+ `;
76
+ r(e)``;
77
+ const k = r(e)(({
78
+ theme: o,
79
+ $disabled: t
80
+ }) => `
81
+ cursor: ${t ? "not-allowed" : "pointer"};
82
+
83
+ &:hover {
84
+ background: ${t ? "transparent" : o.colors.BLACK};
85
+ };
86
+
87
+ path {
88
+ fill: ${o.colors.WHITE_1};
89
+ }
90
+ `), v = r(i)`
91
+ white-space: nowrap;
92
+ overflow: hidden;
93
+ text-overflow: ellipsis;
94
+ `, C = r(e)`
95
+ position: absolute;
96
+ z-index: 6;
97
+ top: calc(100% - 36px);
98
+ right: 12px;
99
+ transform-origin: top;
100
+ transform: scaleY(1);
101
+ `, $ = r(e)`
102
+ position: absolute;
103
+ top: 0;
104
+ left: 0;
105
+ width: 100%;
106
+ height: 100%;
107
+ opacity: 0.5;
108
+ `, y = r(e)`
109
+ position: absolute;
110
+ right: 42px;
111
+ top: 24px;
112
+ `;
113
+ export {
114
+ f as BannerImage,
115
+ w as BannerImageWrapper,
116
+ $ as BlurContainer,
117
+ y as BlurFlexView,
118
+ x as CardContainer,
119
+ l as CardKebabMenuWrapper,
120
+ u as CardMenuOptionsWrapper,
121
+ k as CardOptionWrapper,
122
+ b as CardWrapper,
123
+ m as HeaderText,
124
+ h as IconWrapper,
125
+ C as MenuWrapper,
126
+ v as OptionText,
127
+ g as StyledMinus2Icon,
128
+ d as SubHeaderText
129
+ };
130
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sources":["../../../src/features/homework/styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport Minus2Icon from '../../assets/line-icons/icons/minus2';\nimport FlexView from '../ui/layout/flex-view';\nimport Text from '../ui/text/text';\n\ninterface ICardWrapperProps {\n $bgImage: string;\n}\ninterface ICardOptionsMenuWrapperProps {\n $visible: boolean;\n $shouldopenonright: boolean;\n}\n\nexport const CardKebabMenuWrapper = styled(FlexView)(({ theme }) => {\n return `\n cursor: pointer;\n width: 24px;\n height: 24px;\n \n \n &:hover {\n border-radius: 50%;\n background: ${theme.colors.WHITE_5}; \n }\n `;\n});\n\nexport const SubHeaderText = styled(Text)`\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport const CardMenuOptionsWrapper = styled(FlexView)<ICardOptionsMenuWrapperProps>(({\n $shouldopenonright,\n $visible,\n}) => {\n return `\n cursor: pointer;\n position: absolute;\n z-index: 6;\n top: calc(100% + 4px);\n right: ${$shouldopenonright ? 0 : 'auto'};\n transform-origin: top;\n transform: scaleY(${$visible ? 1 : 0});\n opacity: ${$visible ? 1 : 0};\n transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;\n box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.4);\n z-index: 10;\n `;\n});\n\nexport const CardContainer = styled(FlexView)`\n border: 1px solid ${({ theme }) => theme.colors.BLACK_T_15};\n\n &:hover {\n border: 1px solid ${({ theme }) => theme.colors.BLACK};\n }\n`;\n\nexport const CardWrapper = styled(FlexView)<ICardWrapperProps>(({ $bgImage }) => {\n if ($bgImage) {\n return `\n background-image: url(${$bgImage});\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n overflow: hidden;\n `;\n }\n\n return 'overflow: hidden;';\n});\n\nexport const IconWrapper = styled(FlexView)`\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const BannerImageWrapper = styled(FlexView)`\n position: absolute;\n right: -18px;\n top: -4px;\n`;\n\nexport const BannerImage = styled.img(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n border: 1px solid ${theme.colors.BLACK_T_15};\n width: ${gutter * 4}px;\n height: ${gutter * 4}px;\n border-radius: 50%;\n `;\n});\n\nexport const StyledMinus2Icon = styled(Minus2Icon)`\n path {\n stroke: ${({ theme }) => theme.colors.WHITE};\n }\n`;\n\nexport const HeaderText = styled(Text)`\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n`;\n\ninterface ICardOptionWrapperProps {\n $disabled?: boolean;\n}\ninterface ICardOptionsProps {\n $top: number;\n $left: number;\n}\n\nexport const CardOptions = styled(FlexView)<ICardOptionsProps>``;\n\nexport const CardOptionWrapper = styled(FlexView)<ICardOptionWrapperProps>(({\n theme,\n $disabled,\n}) => {\n return `\n cursor: ${$disabled ? 'not-allowed' : 'pointer'};\n \n &:hover {\n background: ${$disabled ? 'transparent' : theme.colors.BLACK};\n };\n \n path {\n fill: ${theme.colors.WHITE_1};\n }\n `;\n});\n\nexport const OptionText = styled(Text)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport const MenuWrapper = styled(FlexView)`\n position: absolute;\n z-index: 6;\n top: calc(100% - 36px);\n right: 12px;\n transform-origin: top;\n transform: scaleY(1);\n`;\n\nexport const BlurContainer = styled(FlexView)`\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0.5;\n`;\n\nexport const BlurFlexView = styled(FlexView)`\n position: absolute;\n right: 42px;\n top: 24px;\n`;\n"],"names":["CardKebabMenuWrapper","styled","FlexView","theme","SubHeaderText","Text","CardMenuOptionsWrapper","$shouldopenonright","$visible","CardContainer","CardWrapper","$bgImage","IconWrapper","BannerImageWrapper","BannerImage","gutter","StyledMinus2Icon","Minus2Icon","HeaderText","CardOptionWrapper","$disabled","OptionText","MenuWrapper","BlurContainer","BlurFlexView"],"mappings":";;;;AAcO,MAAMA,IAAuBC,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAC/C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oB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oBlB,EAAOC,CAAQ,EAA2B,CAAC;AAAA,EAC1E,OAAAC;AAAA,EACA,WAAAiB;AACF,MACS;AAAA,cACKA,IAAY,gBAAgB,SAAS;AAAA;AAAA;AAAA,oBAG/BA,IAAY,gBAAgBjB,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA,cAIpDA,EAAM,OAAO,OAAO;AAAA;AAAA,GAGjC,GAEYkB,IAAapB,EAAOI,CAAI;AAAA;AAAA;AAAA;AAAA,GAMxBiB,IAAcrB,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAS7BqB,IAAgBtB,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAS/BsB,IAAevB,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;"}
@@ -1,17 +1,24 @@
1
1
  import e from "styled-components";
2
- import p from "../../../ui/layout/flex-view.js";
3
- const d = e(p)`
2
+ import r from "../../../ui/layout/flex-view.js";
3
+ const d = e(r)`
4
4
  top: ${({ $top: t }) => t}px;
5
5
  left: ${({ $left: t }) => t}px;
6
- `, l = e(p)(({ theme: t }) => {
6
+ `, a = e(r)(({ theme: t }) => {
7
7
  const { gutter: o } = t.layout;
8
8
  return `
9
9
  width: 100%;
10
10
  padding: ${o * 0.75}px ${o * 0.5}px;
11
11
  `;
12
- });
12
+ }), i = e.div`
13
+ pointer-events: none;
14
+ width: 720px;
15
+ overflow: hidden;
16
+ padding: 30px;
17
+ background-color: transparent;
18
+ `;
13
19
  export {
14
20
  d as ClonedElementWrapper,
15
- l as CoachmarkBody
21
+ a as CoachmarkBody,
22
+ i as ELementWrapper
16
23
  };
17
24
  //# sourceMappingURL=coachmark-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"coachmark-styled.js","sources":["../../../../../src/features/journey/comps/coachmark/coachmark-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const ClonedElementWrapper = styled(FlexView)<{\n $top: number;\n $left: number;\n}>`\n top: ${({ $top }) => $top}px;\n left: ${({ $left }) => $left}px;\n`;\n\nexport const CoachmarkBody = styled(FlexView)(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n width: 100%;\n padding: ${gutter * 0.75}px ${gutter * 0.5}px;\n `;\n});\n"],"names":["ClonedElementWrapper","styled","FlexView","$top","$left","CoachmarkBody","theme","gutter"],"mappings":";;AAIa,MAAAA,IAAuBC,EAAOC,CAAQ;AAAA,SAI1C,CAAC,EAAE,MAAAC,EAAK,MAAMA,CAAI;AAAA,UACjB,CAAC,EAAE,OAAAC,EAAM,MAAMA,CAAK;AAAA,GAGjBC,IAAgBJ,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAI,QAAY;AACrD,QAAA,EAAE,QAAAC,EAAO,IAAID,EAAM;AAElB,SAAA;AAAA;AAAA,eAEMC,IAAS,IAAI,MAAMA,IAAS,GAAG;AAAA;AAE9C,CAAC;"}
1
+ {"version":3,"file":"coachmark-styled.js","sources":["../../../../../src/features/journey/comps/coachmark/coachmark-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const ClonedElementWrapper = styled(FlexView)<{\n $top: number;\n $left: number;\n}>`\n top: ${({ $top }) => $top}px;\n left: ${({ $left }) => $left}px;\n`;\n\nexport const CoachmarkBody = styled(FlexView)(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n width: 100%;\n padding: ${gutter * 0.75}px ${gutter * 0.5}px;\n `;\n});\n\nexport const ELementWrapper = styled.div`\n pointer-events: none;\n width: 720px;\n overflow: hidden;\n padding: 30px;\n background-color: transparent;\n`;\n"],"names":["ClonedElementWrapper","styled","FlexView","$top","$left","CoachmarkBody","theme","gutter","ELementWrapper"],"mappings":";;AAIa,MAAAA,IAAuBC,EAAOC,CAAQ;AAAA,SAI1C,CAAC,EAAE,MAAAC,EAAK,MAAMA,CAAI;AAAA,UACjB,CAAC,EAAE,OAAAC,EAAM,MAAMA,CAAK;AAAA,GAGjBC,IAAgBJ,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAI,QAAY;AACrD,QAAA,EAAE,QAAAC,EAAO,IAAID,EAAM;AAElB,SAAA;AAAA;AAAA,eAEMC,IAAS,IAAI,MAAMA,IAAS,GAAG;AAAA;AAE9C,CAAC,GAEYC,IAAiBP,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -1,43 +1,43 @@
1
- import { jsx as o, jsxs as g, Fragment as f } from "react/jsx-runtime";
2
- import { useMemo as p } from "react";
1
+ import { jsx as e, jsxs as g, Fragment as f } from "react/jsx-runtime";
2
+ import { useMemo as d } from "react";
3
3
  import m from "../../../ui/arrow-tooltip/arrow-tooltip.js";
4
- import y from "../../../ui/nudge/nudge.js";
5
- import { BLUR_OVERLAY_Z_INDEX as T, IndicatorType as d } from "../../use-journey/constants.js";
6
- import { CoachmarkBody as P, ClonedElementWrapper as s } from "./coachmark-styled.js";
7
- import { toolTipGetXCoordinates as $ } from "./coachmark-utils.js";
4
+ import b from "../../../ui/nudge/nudge.js";
5
+ import { BLUR_OVERLAY_Z_INDEX as T, IndicatorType as p } from "../../use-journey/constants.js";
6
+ import { CoachmarkBody as w, ClonedElementWrapper as s } from "./coachmark-styled.js";
7
+ import { toolTipGetXCoordinates as y } from "./coachmark-utils.js";
8
8
  const H = ({ coachmark: t }) => {
9
- const i = t.originalElementToHighlightRef.current, { top: r = 0, left: n = 0, height: h = 0, width: C = 0 } = (i == null ? void 0 : i.getBoundingClientRect()) || {}, l = p(() => () => i ? window.getComputedStyle(i).position === "absolute" : !1, [i]), u = p(() => {
10
- const e = t.indicator;
9
+ const i = t.originalElementToHighlightRef.current, { top: r = 0, left: n = 0, height: h = 0, width: C = 0 } = (i == null ? void 0 : i.getBoundingClientRect()) || {}, l = d(() => () => i ? window.getComputedStyle(i).position === "absolute" : !1, [i]), u = d(() => {
10
+ const o = t.indicator;
11
11
  return {
12
12
  width: 264,
13
13
  // Can be over ridden
14
- tooltipXCoOrdinates: $(e.position) + (e.tooltipXCoOrdinates ?? 0),
14
+ tooltipXCoOrdinates: y(o.position) + (o.tooltipXCoOrdinates ?? 0),
15
15
  // For absolutely positioned elements
16
16
  zIndex: T + 1,
17
- ...e,
18
- tooltipItem: /* @__PURE__ */ o(P, { children: e.tooltipItem }),
17
+ ...o,
18
+ tooltipItem: /* @__PURE__ */ e(w, { children: o.tooltipItem }),
19
19
  alwaysVisible: !0,
20
20
  renderAs: "primary",
21
21
  // Deprecate this
22
22
  borderWidth: 1,
23
- arrowColor: "WHITE",
24
- borderColor: "WHITE",
25
- type: d.TOOLTIP,
23
+ arrowColor: o.arrowColor || "WHITE",
24
+ borderColor: o.borderColor || "WHITE",
25
+ type: p.TOOLTIP,
26
26
  isAnimated: !0
27
27
  };
28
- }, [t.indicator]), I = p(() => {
29
- const e = t.indicator;
28
+ }, [t.indicator]), I = d(() => {
29
+ const o = t.indicator;
30
30
  return {
31
- ...e,
32
- nudgePointerX: n + (e.nudgePointerX ?? 0),
33
- nudgePointerY: r + (e.nudgePointerY ?? 0)
31
+ ...o,
32
+ nudgePointerX: n + (o.nudgePointerX ?? 0),
33
+ nudgePointerY: r + (o.nudgePointerY ?? 0)
34
34
  };
35
35
  }, [t.indicator, n, r]);
36
- return !i || !t.isActive ? null : t.type === d.TOOLTIP ? l() ? /* @__PURE__ */ g(f, { children: [
36
+ return !i || !t.isActive ? null : t.type === p.TOOLTIP ? l() ? /* @__PURE__ */ g(f, { children: [
37
37
  t.elementToHighlight,
38
- /* @__PURE__ */ o(s, { $position: "absolute", $top: r, $left: n, children: /* @__PURE__ */ o(m, { ...u, children: /* @__PURE__ */ o("div", { style: { height: h, width: C } }) }) })
39
- ] }) : /* @__PURE__ */ o(s, { $position: "absolute", $top: r, $left: n, children: /* @__PURE__ */ o(m, { ...u, children: t.elementToHighlight }) }) : t.type === d.NUDGE ? /* @__PURE__ */ g(f, { children: [
40
- /* @__PURE__ */ o(
38
+ /* @__PURE__ */ e(s, { $position: "absolute", $top: r, $left: n, children: /* @__PURE__ */ e(m, { ...u, children: /* @__PURE__ */ e("div", { style: { height: h, width: C } }) }) })
39
+ ] }) : /* @__PURE__ */ e(s, { $position: "absolute", $top: r, $left: n, children: /* @__PURE__ */ e(m, { ...u, children: t.elementToHighlight }) }) : t.type === p.NUDGE ? /* @__PURE__ */ g(f, { children: [
40
+ /* @__PURE__ */ e(
41
41
  s,
42
42
  {
43
43
  $top: l() ? 0 : r,
@@ -46,7 +46,7 @@ const H = ({ coachmark: t }) => {
46
46
  children: t.elementToHighlight
47
47
  }
48
48
  ),
49
- /* @__PURE__ */ o(y, { zIndex: T + 1, ...I })
49
+ /* @__PURE__ */ e(b, { zIndex: T + 1, ...I })
50
50
  ] }) : null;
51
51
  };
52
52
  export {