@cuemath/leap 2.9.3 → 2.9.4-as10

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 (270) 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 +12 -6
  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 +205 -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 +188 -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 +3 -2
  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 +65 -57
  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 +137 -105
  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 +107 -110
  173. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  174. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js +8 -8
  175. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.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/api/test-sheet-assign.js +5 -5
  187. package/dist/features/milestone/milestone-tests/tests-creation/api/test-sheet-assign.js.map +1 -1
  188. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js +46 -51
  189. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.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 +39 -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 +332 -35
  221. package/dist/index.js +499 -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-utils.js +0 -38
  260. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +0 -1
  261. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js +0 -79
  262. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js.map +0 -1
  263. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js +0 -18
  264. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js.map +0 -1
  265. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js +0 -51
  266. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js.map +0 -1
  267. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js +0 -11
  268. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js.map +0 -1
  269. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js +0 -135
  270. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js.map +0 -1
@@ -0,0 +1,205 @@
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
+ import { useRef as oe, useState as u, useEffect as h, useCallback as n } from "react";
3
+ import te from "../../../assets/line-icons/icons/chevron-left.js";
4
+ import re from "../../../assets/line-icons/icons/chevron-right.js";
5
+ import { useJourney as ne } from "../../journey/use-journey/use-journey.js";
6
+ import $ from "../../ui/layout/flex-view.js";
7
+ import C from "../../ui/text/text.js";
8
+ import ie from "../homework-card.js";
9
+ import { useGetHomeworks as le } from "./api/get-homeworks.js";
10
+ import { ContentWrapper as ce, HoverZone as w, ScrollButton as A, ScrollContainer as se, QueueWrapper as he, QueueText as fe } from "./hw-card-list-styled.js";
11
+ const de = ({
12
+ userType: g = "STUDENT",
13
+ studentId: s,
14
+ stream: f,
15
+ onTestStart: x,
16
+ onNodeAttempt: E,
17
+ onTestPreview: S,
18
+ onNodeView: T,
19
+ onTestReview: B,
20
+ onNodeReview: I,
21
+ onNodeUnassign: W,
22
+ homeworkRef: y,
23
+ individualHomeworkRef: K,
24
+ startHomePageJourney: p,
25
+ canStartJourney: k
26
+ }) => {
27
+ const r = oe(null), [M, b] = u(!1), [N, H] = u(!1), [j, G] = u(!1), [F, Q] = u(!0), {
28
+ get: _,
29
+ data: e,
30
+ isProcessingFailed: X,
31
+ isProcessing: m,
32
+ isStale: R
33
+ } = le(s), { isJourneyActive: v } = ne();
34
+ h(() => {
35
+ e != null && e.length && p && !v && k && p({ hwDetails: e, studentId: s, stream: f, userType: g });
36
+ }, [
37
+ k,
38
+ e,
39
+ v,
40
+ p,
41
+ f,
42
+ s,
43
+ g
44
+ ]);
45
+ const O = n(() => {
46
+ r.current && r.current.scrollBy({ left: -200, behavior: "smooth" });
47
+ }, []), V = n(() => {
48
+ r.current && r.current.scrollBy({ left: 200, behavior: "smooth" });
49
+ }, []), z = n(() => {
50
+ b(!0);
51
+ }, []), P = n(() => {
52
+ b(!1);
53
+ }, []), U = n(() => {
54
+ H(!0);
55
+ }, []), Y = n(() => {
56
+ H(!1);
57
+ }, []), i = n(() => {
58
+ if (r.current) {
59
+ const { scrollLeft: t, scrollWidth: l, clientWidth: a } = r.current;
60
+ G(t > 1), Q(t < l - a - 1);
61
+ }
62
+ }, []);
63
+ h(() => {
64
+ const t = r.current;
65
+ if (t)
66
+ return t.addEventListener("scroll", i), i(), () => {
67
+ t.removeEventListener("scroll", i);
68
+ };
69
+ }, [i]), h(() => {
70
+ i();
71
+ }, [e, i]);
72
+ const d = n(() => {
73
+ _(s, void 0, { stream: f });
74
+ }, [_, f, s]);
75
+ h(() => {
76
+ !m && R && d();
77
+ }, [d, m, R]), h(() => {
78
+ d();
79
+ }, [d]);
80
+ const Z = ((e == null ? void 0 : e.filter((t) => t.state === "WAIT_FOR_REVIEW")) || []).length;
81
+ return e && e.length === 0 ? /* @__PURE__ */ c($, { $flexRowGapX: 1, children: [
82
+ /* @__PURE__ */ c(C, { $renderAs: "ac4-black", $color: "BLACK_T_60", children: [
83
+ "Homework (",
84
+ e == null ? void 0 : e.length,
85
+ ")"
86
+ ] }),
87
+ /* @__PURE__ */ o(C, { $renderAs: "ab2", $color: "BLACK_T_60", children: "No Homework assigned yet" })
88
+ ] }) : X ? null : /* @__PURE__ */ c(ce, { ref: y, $flexRowGapX: 1, $disablePointerEvents: m, children: [
89
+ !v && /* @__PURE__ */ c(C, { $renderAs: "ac4-black", $color: "BLACK_T_60", children: [
90
+ "Homework (",
91
+ Z,
92
+ "/",
93
+ e == null ? void 0 : e.length,
94
+ ")"
95
+ ] }),
96
+ /* @__PURE__ */ c($, { $position: "relative", onMouseEnter: i, children: [
97
+ j && /* @__PURE__ */ o(
98
+ w,
99
+ {
100
+ $position: "absolute",
101
+ $width: "60px",
102
+ left: "0",
103
+ right: "auto",
104
+ onMouseEnter: z,
105
+ onMouseLeave: P,
106
+ children: /* @__PURE__ */ o(
107
+ A,
108
+ {
109
+ $position: "absolute",
110
+ $background: "BLACK_T_60",
111
+ $justifyContent: "center",
112
+ $alignItems: "center",
113
+ $height: "100%",
114
+ onClick: O,
115
+ $visible: M,
116
+ left: "0px",
117
+ right: "auto",
118
+ children: /* @__PURE__ */ o(te, { width: 24, height: 24 })
119
+ }
120
+ )
121
+ },
122
+ "left-hover-zone"
123
+ ),
124
+ /* @__PURE__ */ o(se, { ref: r, children: /* @__PURE__ */ o($, { $flexDirection: "row", $flexGapX: 1, children: e == null ? void 0 : e.map((t, l) => {
125
+ const {
126
+ node_id: a,
127
+ worksheet_id: q,
128
+ node_type: J,
129
+ title: D,
130
+ subtext: ee
131
+ } = t, L = J === "DYNAMIC";
132
+ return /* @__PURE__ */ c(
133
+ $,
134
+ {
135
+ ref: l === 0 ? K : void 0,
136
+ $flexDirection: "row",
137
+ $flexGapX: 1,
138
+ children: [
139
+ e.length > 10 && l === 10 && /* @__PURE__ */ o(
140
+ he,
141
+ {
142
+ $background: "BLACK_4",
143
+ $justifyContent: "center",
144
+ $gutter: 4,
145
+ $gap: 8,
146
+ children: /* @__PURE__ */ o(fe, { $renderAs: "ac3", $color: "WHITE", children: "In Queue" })
147
+ }
148
+ ),
149
+ /* @__PURE__ */ o(
150
+ ie,
151
+ {
152
+ isInQueue: e.length > 10 && l > 9,
153
+ userType: g,
154
+ header: D,
155
+ subHeader: ee || "",
156
+ nodeData: t,
157
+ renderAs: "homework",
158
+ onNodeAttempt: L ? x : E,
159
+ shouldOpenOnRight: e.length > 3 && l === e.length - 1,
160
+ onNodeView: L ? S : T,
161
+ onNodeReview: L ? B : I,
162
+ onNodeUnassign: W
163
+ },
164
+ `${q}_${a}_${l}`
165
+ )
166
+ ]
167
+ },
168
+ a
169
+ );
170
+ }) }) }),
171
+ F && /* @__PURE__ */ o(
172
+ w,
173
+ {
174
+ $position: "absolute",
175
+ $width: "60px",
176
+ right: "0",
177
+ left: "auto",
178
+ onMouseEnter: U,
179
+ onMouseLeave: Y,
180
+ children: /* @__PURE__ */ o(
181
+ A,
182
+ {
183
+ $position: "absolute",
184
+ $width: "60px",
185
+ $height: "100%",
186
+ $background: "BLACK_T_60",
187
+ $justifyContent: "center",
188
+ $alignItems: "center",
189
+ onClick: V,
190
+ $visible: N,
191
+ left: "auto",
192
+ right: "0px",
193
+ children: /* @__PURE__ */ o(re, { width: 24, height: 24 })
194
+ }
195
+ )
196
+ },
197
+ "right-hover-zone"
198
+ )
199
+ ] })
200
+ ] });
201
+ }, be = de;
202
+ export {
203
+ be as default
204
+ };
205
+ //# 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 { IHomepageStartJourneyProps } from '../../journey/types/homepage-journey-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 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 hwDetails,\n studentId,\n stream,\n userType,\n }: IHomepageStartJourneyProps) => void;\n canStartJourney?: boolean;\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 canStartJourney,\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 && canStartJourney) {\n startHomePageJourney({ hwDetails, studentId, stream, userType });\n }\n }, [\n canStartJourney,\n hwDetails,\n isJourneyActive,\n startHomePageJourney,\n stream,\n studentId,\n userType,\n ]);\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 > 1);\n setCanScrollRight(scrollLeft < scrollWidth - clientWidth - 1);\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 node_id: nodeId,\n worksheet_id: worksheetId,\n node_type: nodeType,\n title,\n subtext,\n } = sheet;\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 $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={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","canStartJourney","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","nodeId","worksheetId","nodeType","title","subtext","isDynamicSheet","Styled.QueueWrapper","Styled.QueueText","HomeworkCard","ChevronRightIcon","HWCardList$1"],"mappings":";;;;;;;;;;AAoCA,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;AAA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AAU;AAAA,UACV,QAAO;AAAA,UACP,OAAM;AAAA,UACN,MAAK;AAAA,UACL,cAAcf;AAAA,UACd,cAAcC;AAAA,UAGd,UAAA,gBAAAa;AAAA,YAACE;AAAAA,YAAA;AAAA,cACC,WAAU;AAAA,cACV,QAAO;AAAA,cACP,SAAQ;AAAA,cACR,aAAY;AAAA,cACZ,iBAAgB;AAAA,cAChB,aAAY;AAAA,cACZ,SAASnB;AAAA,cACT,UAAUjB;AAAA,cACV,MAAK;AAAA,cACL,OAAM;AAAA,cAEN,UAAC,gBAAAkC,EAAAe,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,KAAetE;"}
@@ -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,oBAQWA,EAAM,OAAO,OAAO;AAAA;AAAA,GAGvC,GAEYC,IAAgBH,EAAOI,CAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQ3BC,IAAyBL,EAAOC,CAAQ,EAAgC,CAAC;AAAA,EACpF,oBAAAK;AAAA,EACA,UAAAC;AACF,MACS;AAAA;AAAA;AAAA;AAAA;AAAA,aAKID,IAAqB,IAAI,MAAM;AAAA;AAAA,wBAEpBC,IAAW,IAAI,CAAC;AAAA,eACzBA,IAAW,IAAI,CAAC;AAAA;AAAA;AAAA;AAAA,GAK9B,GAEYC,IAAgBR,EAAOC,CAAQ;AAAA,sBACtB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA,wBAGpC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA,GAI5CO,IAAcT,EAAOC,CAAQ,EAAqB,CAAC,EAAE,UAAAS,QAC5DA,IACK;AAAA,8BACmBA,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,QAQ7B,mBACR,GAEYC,IAAcX,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA,GAM7BW,IAAqBZ,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA,GAMpCY,IAAcb,EAAO,IAAI,CAAC,EAAE,OAAAE,QAAY;AAC7C,QAAA,EAAE,QAAAY,EAAO,IAAIZ,EAAM;AAElB,SAAA;AAAA,wBACeA,EAAM,OAAO,UAAU;AAAA,aAClCY,IAAS,CAAC;AAAA,cACTA,IAAS,CAAC;AAAA;AAAA;AAGxB,CAAC,GAEYC,IAAmBf,EAAOgB,CAAU;AAAA;AAAA,cAEnC,CAAC,EAAE,OAAAd,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA,GAIlCe,IAAajB,EAAOI,CAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBVJ,EAAOC,CAAQ;AAEnC,MAAMiB,IAAoBlB,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 {
@@ -1 +1 @@
1
- {"version":3,"file":"coachmark.js","sources":["../../../../../src/features/journey/comps/coachmark/coachmark.tsx"],"sourcesContent":["import type { IArrowTooltipProps } from '../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { INudgeProps } from '../../../ui/nudge/nudge-types';\nimport type { ICoachmarkProps } from '../../use-journey/journey-context-types';\n\nimport React, { useMemo } from 'react';\n\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport Nudge from '../../../ui/nudge/nudge';\nimport { BLUR_OVERLAY_Z_INDEX, IndicatorType } from '../../use-journey/constants';\nimport * as S from './coachmark-styled';\nimport { toolTipGetXCoordinates } from './coachmark-utils';\n\nexport const Coachmark: React.FC<{ coachmark: ICoachmarkProps }> = ({ coachmark }) => {\n const targetElement = coachmark.originalElementToHighlightRef.current;\n const { top = 0, left = 0, height = 0, width = 0 } = targetElement?.getBoundingClientRect() || {};\n\n const isAbsolute = useMemo(() => {\n return () => {\n if (!targetElement) return false;\n\n return window.getComputedStyle(targetElement).position === 'absolute';\n };\n }, [targetElement]);\n\n const tooltipProps = useMemo(() => {\n const arrowToolTipProps = coachmark.indicator as IArrowTooltipProps;\n\n return {\n width: 264, // Can be over ridden\n tooltipXCoOrdinates:\n toolTipGetXCoordinates(arrowToolTipProps.position) +\n (arrowToolTipProps.tooltipXCoOrdinates ?? 0), // For absolutely positioned elements\n zIndex: BLUR_OVERLAY_Z_INDEX + 1,\n ...arrowToolTipProps,\n tooltipItem: <S.CoachmarkBody>{arrowToolTipProps.tooltipItem}</S.CoachmarkBody>,\n alwaysVisible: true,\n renderAs: 'primary', // Deprecate this\n borderWidth: 1,\n arrowColor: 'WHITE',\n borderColor: 'WHITE',\n type: IndicatorType.TOOLTIP,\n isAnimated: true,\n } as IArrowTooltipProps;\n }, [coachmark.indicator]);\n\n const nudgeProps = useMemo(() => {\n const props: INudgeProps = coachmark.indicator as INudgeProps;\n\n return {\n ...props,\n nudgePointerX: left + (props.nudgePointerX ?? 0),\n nudgePointerY: top + (props.nudgePointerY ?? 0),\n };\n }, [coachmark.indicator, left, top]);\n\n if (!targetElement || !coachmark.isActive) {\n return null;\n }\n\n if (coachmark.type === IndicatorType.TOOLTIP) {\n if (isAbsolute()) {\n return (\n <>\n {coachmark.elementToHighlight}\n <S.ClonedElementWrapper $position=\"absolute\" $top={top} $left={left}>\n <ArrowTooltip {...tooltipProps}>\n <div style={{ height, width }} />\n </ArrowTooltip>\n </S.ClonedElementWrapper>\n </>\n );\n }\n\n return (\n <S.ClonedElementWrapper $position=\"absolute\" $top={top} $left={left}>\n <ArrowTooltip {...tooltipProps}>{coachmark.elementToHighlight}</ArrowTooltip>\n </S.ClonedElementWrapper>\n );\n }\n\n if (coachmark.type === IndicatorType.NUDGE) {\n return (\n <>\n <S.ClonedElementWrapper\n $top={isAbsolute() ? 0 : top}\n $left={isAbsolute() ? 0 : left}\n $position={isAbsolute() ? 'relative' : 'absolute'}\n >\n {coachmark.elementToHighlight}\n </S.ClonedElementWrapper>\n <Nudge zIndex={BLUR_OVERLAY_Z_INDEX + 1} {...nudgeProps} />\n </>\n );\n }\n\n return null;\n};\n"],"names":["Coachmark","coachmark","targetElement","top","left","height","width","isAbsolute","useMemo","tooltipProps","arrowToolTipProps","toolTipGetXCoordinates","BLUR_OVERLAY_Z_INDEX","jsx","S.CoachmarkBody","IndicatorType","nudgeProps","props","jsxs","Fragment","S.ClonedElementWrapper","ArrowTooltip","Nudge"],"mappings":";;;;;;;AAYO,MAAMA,IAAsD,CAAC,EAAE,WAAAC,QAAgB;AAC9E,QAAAC,IAAgBD,EAAU,8BAA8B,SACxD,EAAE,KAAAE,IAAM,GAAG,MAAAC,IAAO,GAAG,QAAAC,IAAS,GAAG,OAAAC,IAAQ,EAAE,KAAIJ,KAAA,gBAAAA,EAAe,4BAA2B,CAAA,GAEzFK,IAAaC,EAAQ,MAClB,MACAN,IAEE,OAAO,iBAAiBA,CAAa,EAAE,aAAa,aAFhC,IAI5B,CAACA,CAAa,CAAC,GAEZO,IAAeD,EAAQ,MAAM;AACjC,UAAME,IAAoBT,EAAU;AAE7B,WAAA;AAAA,MACL,OAAO;AAAA;AAAA,MACP,qBACEU,EAAuBD,EAAkB,QAAQ,KAChDA,EAAkB,uBAAuB;AAAA;AAAA,MAC5C,QAAQE,IAAuB;AAAA,MAC/B,GAAGF;AAAA,MACH,aAAc,gBAAAG,EAAAC,GAAA,EAAiB,YAAkB,aAAY;AAAA,MAC7D,eAAe;AAAA,MACf,UAAU;AAAA;AAAA,MACV,aAAa;AAAA,MACb,YAAY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.js","sources":["../../../../../src/features/journey/comps/coachmark/coachmark.tsx"],"sourcesContent":["import type { IArrowTooltipProps } from '../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { INudgeProps } from '../../../ui/nudge/nudge-types';\nimport type { ICoachmarkProps } from '../../use-journey/journey-context-types';\n\nimport React, { useMemo } from 'react';\n\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport Nudge from '../../../ui/nudge/nudge';\nimport { BLUR_OVERLAY_Z_INDEX, IndicatorType } from '../../use-journey/constants';\nimport * as S from './coachmark-styled';\nimport { toolTipGetXCoordinates } from './coachmark-utils';\n\nexport const Coachmark: React.FC<{ coachmark: ICoachmarkProps }> = ({ coachmark }) => {\n const targetElement = coachmark.originalElementToHighlightRef.current;\n const { top = 0, left = 0, height = 0, width = 0 } = targetElement?.getBoundingClientRect() || {};\n\n const isAbsolute = useMemo(() => {\n return () => {\n if (!targetElement) return false;\n\n return window.getComputedStyle(targetElement).position === 'absolute';\n };\n }, [targetElement]);\n\n const tooltipProps = useMemo(() => {\n const arrowToolTipProps = coachmark.indicator as IArrowTooltipProps;\n\n return {\n width: 264, // Can be over ridden\n tooltipXCoOrdinates:\n toolTipGetXCoordinates(arrowToolTipProps.position) +\n (arrowToolTipProps.tooltipXCoOrdinates ?? 0), // For absolutely positioned elements\n zIndex: BLUR_OVERLAY_Z_INDEX + 1,\n ...arrowToolTipProps,\n tooltipItem: <S.CoachmarkBody>{arrowToolTipProps.tooltipItem}</S.CoachmarkBody>,\n alwaysVisible: true,\n renderAs: 'primary', // Deprecate this\n borderWidth: 1,\n arrowColor: arrowToolTipProps.arrowColor || 'WHITE',\n borderColor: arrowToolTipProps.borderColor || 'WHITE',\n type: IndicatorType.TOOLTIP,\n isAnimated: true,\n } as IArrowTooltipProps;\n }, [coachmark.indicator]);\n\n const nudgeProps = useMemo(() => {\n const props: INudgeProps = coachmark.indicator as INudgeProps;\n\n return {\n ...props,\n nudgePointerX: left + (props.nudgePointerX ?? 0),\n nudgePointerY: top + (props.nudgePointerY ?? 0),\n };\n }, [coachmark.indicator, left, top]);\n\n if (!targetElement || !coachmark.isActive) {\n return null;\n }\n\n if (coachmark.type === IndicatorType.TOOLTIP) {\n if (isAbsolute()) {\n return (\n <>\n {coachmark.elementToHighlight}\n <S.ClonedElementWrapper $position=\"absolute\" $top={top} $left={left}>\n <ArrowTooltip {...tooltipProps}>\n <div style={{ height, width }} />\n </ArrowTooltip>\n </S.ClonedElementWrapper>\n </>\n );\n }\n\n return (\n <S.ClonedElementWrapper $position=\"absolute\" $top={top} $left={left}>\n <ArrowTooltip {...tooltipProps}>{coachmark.elementToHighlight}</ArrowTooltip>\n </S.ClonedElementWrapper>\n );\n }\n\n if (coachmark.type === IndicatorType.NUDGE) {\n return (\n <>\n <S.ClonedElementWrapper\n $top={isAbsolute() ? 0 : top}\n $left={isAbsolute() ? 0 : left}\n $position={isAbsolute() ? 'relative' : 'absolute'}\n >\n {coachmark.elementToHighlight}\n </S.ClonedElementWrapper>\n <Nudge zIndex={BLUR_OVERLAY_Z_INDEX + 1} {...nudgeProps} />\n </>\n );\n }\n\n return null;\n};\n"],"names":["Coachmark","coachmark","targetElement","top","left","height","width","isAbsolute","useMemo","tooltipProps","arrowToolTipProps","toolTipGetXCoordinates","BLUR_OVERLAY_Z_INDEX","jsx","S.CoachmarkBody","IndicatorType","nudgeProps","props","jsxs","Fragment","S.ClonedElementWrapper","ArrowTooltip","Nudge"],"mappings":";;;;;;;AAYO,MAAMA,IAAsD,CAAC,EAAE,WAAAC,QAAgB;AAC9E,QAAAC,IAAgBD,EAAU,8BAA8B,SACxD,EAAE,KAAAE,IAAM,GAAG,MAAAC,IAAO,GAAG,QAAAC,IAAS,GAAG,OAAAC,IAAQ,EAAE,KAAIJ,KAAA,gBAAAA,EAAe,4BAA2B,CAAA,GAEzFK,IAAaC,EAAQ,MAClB,MACAN,IAEE,OAAO,iBAAiBA,CAAa,EAAE,aAAa,aAFhC,IAI5B,CAACA,CAA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