@cuemath/leap 2.9.1-j2 → 2.9.2-as1

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 (663) hide show
  1. package/dist/assets/illustrations/illustrations.js +9 -3
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lib/lib.js +7 -0
  4. package/dist/assets/lib/lib.js.map +1 -0
  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/chevron-right.js.map +1 -1
  11. package/dist/assets/line-icons/icons/dart.js +23 -0
  12. package/dist/assets/line-icons/icons/dart.js.map +1 -0
  13. package/dist/assets/line-icons/icons/exclamation.js +26 -0
  14. package/dist/assets/line-icons/icons/exclamation.js.map +1 -0
  15. package/dist/assets/line-icons/icons/home2.js +25 -0
  16. package/dist/assets/line-icons/icons/home2.js.map +1 -0
  17. package/dist/assets/line-icons/icons/important.js +23 -0
  18. package/dist/assets/line-icons/icons/important.js.map +1 -0
  19. package/dist/assets/line-icons/icons/puzzle.js +25 -0
  20. package/dist/assets/line-icons/icons/puzzle.js.map +1 -0
  21. package/dist/assets/line-icons/icons/recap.js +32 -0
  22. package/dist/assets/line-icons/icons/recap.js.map +1 -0
  23. package/dist/assets/line-icons/icons/skip-colored.js +43 -0
  24. package/dist/assets/line-icons/icons/skip-colored.js.map +1 -0
  25. package/dist/assets/line-icons/icons/status.js +41 -0
  26. package/dist/assets/line-icons/icons/status.js.map +1 -0
  27. package/dist/assets/line-icons/icons/testtube.js +33 -0
  28. package/dist/assets/line-icons/icons/testtube.js.map +1 -0
  29. package/dist/assets/lottie/lottie.js +8 -10
  30. package/dist/assets/lottie/lottie.js.map +1 -1
  31. package/dist/constants/api.js +3 -2
  32. package/dist/constants/api.js.map +1 -1
  33. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +99 -33
  34. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
  35. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +92 -49
  36. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
  37. package/dist/features/chapters/chapters-list/chapters-list-styled.js +5 -5
  38. package/dist/features/chapters/chapters-list/chapters-list-styled.js.map +1 -1
  39. package/dist/features/chapters/chapters-list/chapters-list.js +64 -70
  40. package/dist/features/chapters/chapters-list/chapters-list.js.map +1 -1
  41. package/dist/features/chapters/lpar-chapter/block-section/sheet-item/rewards-n-actions/student-actions/student-actions.js +45 -46
  42. package/dist/features/chapters/lpar-chapter/block-section/sheet-item/rewards-n-actions/student-actions/student-actions.js.map +1 -1
  43. package/dist/features/chapters/lpar-chapter/block-section/sheet-item/rewards-n-actions/teacher-actions/teacher-actions.js +25 -26
  44. package/dist/features/chapters/lpar-chapter/block-section/sheet-item/rewards-n-actions/teacher-actions/teacher-actions.js.map +1 -1
  45. package/dist/features/chapters-v2/api/chapter.js +10 -0
  46. package/dist/features/chapters-v2/api/chapter.js.map +1 -0
  47. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +112 -0
  48. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -0
  49. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js +26 -0
  50. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js.map +1 -0
  51. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +73 -0
  52. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -0
  53. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js +90 -0
  54. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js.map +1 -0
  55. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js +97 -0
  56. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js.map +1 -0
  57. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js +52 -0
  58. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js.map +1 -0
  59. package/dist/features/chapters-v2/chapter-details/chapter-details.js +103 -0
  60. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -0
  61. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js +13 -0
  62. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js.map +1 -0
  63. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +153 -0
  64. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +1 -0
  65. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js +16 -0
  66. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +1 -0
  67. package/dist/features/chapters-v2/comps/node-card/node-card.js +12 -0
  68. package/dist/features/chapters-v2/comps/node-card/node-card.js.map +1 -0
  69. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js +32 -0
  70. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js.map +1 -0
  71. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js +31 -0
  72. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js.map +1 -0
  73. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +171 -0
  74. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +1 -0
  75. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +192 -0
  76. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -0
  77. package/dist/features/chapters-v2/comps/tag/tag-styled.js +13 -0
  78. package/dist/features/chapters-v2/comps/tag/tag-styled.js.map +1 -0
  79. package/dist/features/chapters-v2/comps/tag/tag.js +28 -0
  80. package/dist/features/chapters-v2/comps/tag/tag.js.map +1 -0
  81. package/dist/features/chapters-v2/constants/block-constants.js +20 -0
  82. package/dist/features/chapters-v2/constants/block-constants.js.map +1 -0
  83. package/dist/features/chapters-v2/constants/node-constants.js +14 -0
  84. package/dist/features/chapters-v2/constants/node-constants.js.map +1 -0
  85. package/dist/features/chapters-v2/utils/index.js +41 -0
  86. package/dist/features/chapters-v2/utils/index.js.map +1 -0
  87. package/dist/features/chapters-v2/utils/node-card-utils.js +144 -0
  88. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -0
  89. package/dist/features/communication/pub-sub/constants.js +5 -2
  90. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  91. package/dist/features/cue-canvas/cue-canvas-provider.js.map +1 -1
  92. package/dist/features/homework/card-menu-options.js +38 -0
  93. package/dist/features/homework/card-menu-options.js.map +1 -0
  94. package/dist/features/homework/card-title.js +21 -0
  95. package/dist/features/homework/card-title.js.map +1 -0
  96. package/dist/features/homework/homework-card-view.js +133 -0
  97. package/dist/features/homework/homework-card-view.js.map +1 -0
  98. package/dist/features/homework/homework-card.js +206 -0
  99. package/dist/features/homework/homework-card.js.map +1 -0
  100. package/dist/features/homework/hw-card-list/api/get-homeworks.js +10 -0
  101. package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -0
  102. package/dist/features/homework/hw-card-list/hw-card-list-styled.js +71 -0
  103. package/dist/features/homework/hw-card-list/hw-card-list-styled.js.map +1 -0
  104. package/dist/features/homework/hw-card-list/hw-card-list.js +182 -0
  105. package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -0
  106. package/dist/features/homework/node-progress.js +29 -0
  107. package/dist/features/homework/node-progress.js.map +1 -0
  108. package/dist/features/homework/styles.js +130 -0
  109. package/dist/features/homework/styles.js.map +1 -0
  110. package/dist/features/milestone/create/api/goal-submit.js +1 -1
  111. package/dist/features/milestone/create/api/goal-submit.js.map +1 -1
  112. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js +42 -49
  113. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js.map +1 -1
  114. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js +12 -4
  115. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js.map +1 -1
  116. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +128 -105
  117. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
  118. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +14 -20
  119. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js.map +1 -1
  120. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js +26 -50
  121. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js.map +1 -1
  122. package/dist/features/milestone/create/milestone-create.js +49 -43
  123. package/dist/features/milestone/create/milestone-create.js.map +1 -1
  124. package/dist/features/milestone/create/utils/index.js +33 -38
  125. package/dist/features/milestone/create/utils/index.js.map +1 -1
  126. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js +1 -1
  127. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js.map +1 -1
  128. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js +1 -1
  129. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js.map +1 -1
  130. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js +51 -53
  131. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js.map +1 -1
  132. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js +42 -40
  133. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js.map +1 -1
  134. package/dist/features/milestone/edit/goal-edit-container.js +64 -62
  135. package/dist/features/milestone/edit/goal-edit-container.js.map +1 -1
  136. package/dist/features/milestone/edit/goal-edit-helpers.js +50 -53
  137. package/dist/features/milestone/edit/goal-edit-helpers.js.map +1 -1
  138. package/dist/features/milestone/edit/milestone-edit-container.js +54 -52
  139. package/dist/features/milestone/edit/milestone-edit-container.js.map +1 -1
  140. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js +1 -1
  141. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js.map +1 -1
  142. package/dist/features/milestone/milestone-list-container/api/get-milestones.js +9 -17
  143. package/dist/features/milestone/milestone-list-container/api/get-milestones.js.map +1 -1
  144. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js +1 -1
  145. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js.map +1 -1
  146. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +136 -104
  147. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  148. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js +107 -123
  149. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js.map +1 -1
  150. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +155 -175
  151. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
  152. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js +24 -10
  153. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js.map +1 -1
  154. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +80 -86
  155. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  156. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js +10 -22
  157. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js.map +1 -1
  158. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js +70 -37
  159. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js.map +1 -1
  160. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +114 -176
  161. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
  162. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js +29 -16
  163. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js.map +1 -1
  164. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js +19 -23
  165. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js.map +1 -1
  166. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js +23 -35
  167. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js.map +1 -1
  168. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +96 -100
  169. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  170. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js +1 -1
  171. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js.map +1 -1
  172. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +114 -112
  173. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
  174. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +165 -0
  175. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -0
  176. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js +25 -0
  177. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js.map +1 -0
  178. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +85 -0
  179. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +1 -0
  180. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js +16 -18
  181. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js.map +1 -1
  182. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js +6 -34
  183. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +1 -1
  184. package/dist/features/recent-chapters/api/get-recent-chapters.js +9 -0
  185. package/dist/features/recent-chapters/api/get-recent-chapters.js.map +1 -0
  186. package/dist/features/recent-chapters/recent-chapters-styled.js +16 -0
  187. package/dist/features/recent-chapters/recent-chapters-styled.js.map +1 -0
  188. package/dist/features/recent-chapters/recent-chapters.js +34 -0
  189. package/dist/features/recent-chapters/recent-chapters.js.map +1 -0
  190. package/dist/features/sheet-v2/resource-list/resource-list.js +39 -0
  191. package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -0
  192. package/dist/features/sheets/lessons-list/lesson-item/lesson-item-cta-info.js +59 -60
  193. package/dist/features/sheets/lessons-list/lesson-item/lesson-item-cta-info.js.map +1 -1
  194. package/dist/features/sheets/resources-list/resource-item/resource-item.js +89 -90
  195. package/dist/features/sheets/resources-list/resource-item/resource-item.js.map +1 -1
  196. package/dist/features/sheets/resources-list/resource-item/styled.js +1 -1
  197. package/dist/features/sheets/resources-list/resource-item/styled.js.map +1 -1
  198. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/student-actions/student-actions.js +60 -61
  199. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/student-actions/student-actions.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/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions.js +63 -64
  203. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions.js.map +1 -1
  204. package/dist/features/sheets/utils/is-v3-worksheet.js +4 -14
  205. package/dist/features/sheets/utils/is-v3-worksheet.js.map +1 -1
  206. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +30 -29
  207. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  208. package/dist/features/ui/constants/z-index.js +1 -1
  209. package/dist/features/ui/constants/z-index.js.map +1 -1
  210. package/dist/features/ui/context-menu/context-menu-styled.js +28 -14
  211. package/dist/features/ui/context-menu/context-menu-styled.js.map +1 -1
  212. package/dist/features/ui/context-menu/context-menu.js +32 -19
  213. package/dist/features/ui/context-menu/context-menu.js.map +1 -1
  214. package/dist/features/ui/image/image.js +12 -12
  215. package/dist/features/ui/image/image.js.map +1 -1
  216. package/dist/features/ui/lottie-animation/helper.js +5 -6
  217. package/dist/features/ui/lottie-animation/helper.js.map +1 -1
  218. package/dist/features/ui/lottie-animation/lottie-animation.js +28 -37
  219. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  220. package/dist/features/ui/text/text.js +27 -29
  221. package/dist/features/ui/text/text.js.map +1 -1
  222. package/dist/features/ui/theme/button.js +22 -107
  223. package/dist/features/ui/theme/button.js.map +1 -1
  224. package/dist/features/worksheet/constants/events.js +3 -0
  225. package/dist/features/worksheet/constants/events.js.map +1 -1
  226. package/dist/features/worksheet/learnosity-preloader/learnosity-preloader.js +69 -50
  227. package/dist/features/worksheet/learnosity-preloader/learnosity-preloader.js.map +1 -1
  228. package/dist/index.d.ts +290 -213
  229. package/dist/index.js +500 -507
  230. package/dist/index.js.map +1 -1
  231. package/dist/node_modules/date-fns/differenceInDays.js +17 -0
  232. package/dist/node_modules/date-fns/differenceInDays.js.map +1 -0
  233. package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
  234. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
  235. package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
  236. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  237. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
  238. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  239. package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -12
  240. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  241. package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
  242. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
  243. package/dist/static/chapter-header-bg-2.c8d96894.svg +1 -0
  244. package/dist/static/competitive-arena.b9c40801.json +1 -0
  245. package/dist/static/learn.71b13323.json +1 -0
  246. package/dist/static/lib/polypad.js +34463 -0
  247. package/dist/static/node-custom-test-bg.d3b757be.svg +1 -0
  248. package/dist/static/node-learn-bg.b61f815c.svg +1 -0
  249. package/dist/static/node-practice-bg.16cbaf2a.svg +1 -0
  250. package/dist/static/node-project-bg.e6a33e28.svg +1 -0
  251. package/dist/static/node-puzzle-bg.3422135c.svg +1 -0
  252. package/dist/static/node-recap-bg.546154e4.svg +1 -0
  253. package/dist/static/node-test-prep-bg.42c0b9c4.svg +1 -0
  254. package/dist/static/node-video-bg.3df3f73a.svg +1 -0
  255. package/dist/static/practice.158dd488.json +1 -0
  256. package/dist/static/project.eb665827.json +1 -0
  257. package/dist/static/puzzle.b298c7e4.json +1 -0
  258. package/dist/static/recap.0dd2c1e2.json +1 -0
  259. package/dist/static/test.803d6036.json +1 -0
  260. package/dist/static/video.b41451e2.json +1 -0
  261. package/package.json +2 -3
  262. package/dist/assets/line-icons/icons/apple-icon.js +0 -48
  263. package/dist/assets/line-icons/icons/apple-icon.js.map +0 -1
  264. package/dist/assets/line-icons/icons/google-icon.js +0 -42
  265. package/dist/assets/line-icons/icons/google-icon.js.map +0 -1
  266. package/dist/features/auth/account-selector/account-selector-styled.js +0 -26
  267. package/dist/features/auth/account-selector/account-selector-styled.js.map +0 -1
  268. package/dist/features/auth/account-selector/account-selector.js +0 -75
  269. package/dist/features/auth/account-selector/account-selector.js.map +0 -1
  270. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js +0 -12
  271. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +0 -1
  272. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +0 -11
  273. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +0 -1
  274. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +0 -24
  275. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +0 -1
  276. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js +0 -29
  277. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js.map +0 -1
  278. package/dist/features/auth/comps/overlay-loader/overlay-loader.js +0 -8
  279. package/dist/features/auth/comps/overlay-loader/overlay-loader.js.map +0 -1
  280. package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js +0 -26
  281. package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js.map +0 -1
  282. package/dist/features/auth/comps/resend-otp/resend-otp.js +0 -41
  283. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +0 -1
  284. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +0 -48
  285. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +0 -1
  286. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +0 -115
  287. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +0 -1
  288. package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js +0 -16
  289. package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js.map +0 -1
  290. package/dist/features/auth/signup/claim-user-account/claim-user-account.js +0 -71
  291. package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +0 -1
  292. package/dist/features/auth/signup/custom-input/custom-input-styled.js +0 -38
  293. package/dist/features/auth/signup/custom-input/custom-input-styled.js.map +0 -1
  294. package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input-styled.js +0 -79
  295. package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input-styled.js.map +0 -1
  296. package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input.js +0 -54
  297. package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input.js.map +0 -1
  298. package/dist/features/auth/signup/custom-input/email-input/email-input.js +0 -30
  299. package/dist/features/auth/signup/custom-input/email-input/email-input.js.map +0 -1
  300. package/dist/features/auth/signup/custom-input/grade-input/grade-input-styled.js +0 -31
  301. package/dist/features/auth/signup/custom-input/grade-input/grade-input-styled.js.map +0 -1
  302. package/dist/features/auth/signup/custom-input/grade-input/grade-input.js +0 -30
  303. package/dist/features/auth/signup/custom-input/grade-input/grade-input.js.map +0 -1
  304. package/dist/features/auth/signup/custom-input/input-wrapper/input-wrapper-styled.js +0 -19
  305. package/dist/features/auth/signup/custom-input/input-wrapper/input-wrapper-styled.js.map +0 -1
  306. package/dist/features/auth/signup/custom-input/input-wrapper/input-wrapper.js +0 -33
  307. package/dist/features/auth/signup/custom-input/input-wrapper/input-wrapper.js.map +0 -1
  308. package/dist/features/auth/signup/custom-input/otp-input/otp-input.js +0 -41
  309. package/dist/features/auth/signup/custom-input/otp-input/otp-input.js.map +0 -1
  310. package/dist/features/auth/signup/custom-input/phone-input/country-selector/country-code-button.js +0 -33
  311. package/dist/features/auth/signup/custom-input/phone-input/country-selector/country-code-button.js.map +0 -1
  312. package/dist/features/auth/signup/custom-input/phone-input/country-selector/country-list-menu.js +0 -28
  313. package/dist/features/auth/signup/custom-input/phone-input/country-selector/country-list-menu.js.map +0 -1
  314. package/dist/features/auth/signup/custom-input/phone-input/phone-input-styled.js +0 -29
  315. package/dist/features/auth/signup/custom-input/phone-input/phone-input-styled.js.map +0 -1
  316. package/dist/features/auth/signup/custom-input/phone-input/phone-input.js +0 -64
  317. package/dist/features/auth/signup/custom-input/phone-input/phone-input.js.map +0 -1
  318. package/dist/features/auth/signup/custom-input/student-password/student-password.js +0 -53
  319. package/dist/features/auth/signup/custom-input/student-password/student-password.js.map +0 -1
  320. package/dist/features/auth/signup/custom-input/student-username/student-username.js +0 -38
  321. package/dist/features/auth/signup/custom-input/student-username/student-username.js.map +0 -1
  322. package/dist/features/auth/signup/signup-constants.js +0 -1022
  323. package/dist/features/auth/signup/signup-constants.js.map +0 -1
  324. package/dist/features/auth/signup/signup-methods/signup-methods.js +0 -58
  325. package/dist/features/auth/signup/signup-methods/signup-methods.js.map +0 -1
  326. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js +0 -19
  327. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js.map +0 -1
  328. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js +0 -61
  329. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js.map +0 -1
  330. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js +0 -24
  331. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js.map +0 -1
  332. package/dist/features/auth/signup/user-type-selector/user-type-selector.js +0 -87
  333. package/dist/features/auth/signup/user-type-selector/user-type-selector.js.map +0 -1
  334. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js +0 -92
  335. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js.map +0 -1
  336. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js +0 -25
  337. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js.map +0 -1
  338. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js +0 -13
  339. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js.map +0 -1
  340. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js +0 -38
  341. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js.map +0 -1
  342. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js +0 -53
  343. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js.map +0 -1
  344. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js +0 -25
  345. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js.map +0 -1
  346. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js +0 -71
  347. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js.map +0 -1
  348. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js +0 -31
  349. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js.map +0 -1
  350. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js +0 -79
  351. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js.map +0 -1
  352. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js +0 -18
  353. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js.map +0 -1
  354. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js +0 -51
  355. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js.map +0 -1
  356. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js +0 -11
  357. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js.map +0 -1
  358. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js +0 -135
  359. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js.map +0 -1
  360. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -332
  361. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  362. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -370
  363. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  364. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -252
  365. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js.map +0 -1
  366. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +0 -24
  367. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js.map +0 -1
  368. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -192
  369. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  370. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -19
  371. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  372. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -129
  373. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  374. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
  375. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  376. package/dist/node_modules/clsx/dist/clsx.js +0 -18
  377. package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
  378. package/dist/node_modules/date-fns/subYears.js +0 -9
  379. package/dist/node_modules/date-fns/subYears.js.map +0 -1
  380. package/dist/node_modules/react-datepicker/dist/index.es.js +0 -2700
  381. package/dist/node_modules/react-datepicker/dist/index.es.js.map +0 -1
  382. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
  383. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
  384. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js +0 -8
  385. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
  386. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js +0 -518
  387. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
  388. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js +0 -60
  389. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
  390. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js +0 -53
  391. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
  392. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -19
  393. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
  394. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js +0 -12
  395. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
  396. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js +0 -21
  397. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
  398. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js +0 -11
  399. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js.map +0 -1
  400. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js +0 -10
  401. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js.map +0 -1
  402. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js +0 -10
  403. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js.map +0 -1
  404. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js +0 -11
  405. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js.map +0 -1
  406. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js +0 -21
  407. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js.map +0 -1
  408. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js +0 -9
  409. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js.map +0 -1
  410. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js +0 -9
  411. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js.map +0 -1
  412. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js +0 -9
  413. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js.map +0 -1
  414. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js +0 -9
  415. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js.map +0 -1
  416. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js +0 -10
  417. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js.map +0 -1
  418. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js +0 -9
  419. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js.map +0 -1
  420. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js +0 -17
  421. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
  422. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js +0 -14
  423. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js.map +0 -1
  424. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js +0 -15
  425. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js.map +0 -1
  426. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js +0 -14
  427. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js.map +0 -1
  428. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js +0 -23
  429. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js.map +0 -1
  430. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js +0 -10
  431. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js.map +0 -1
  432. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js +0 -10
  433. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js.map +0 -1
  434. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js +0 -12
  435. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js.map +0 -1
  436. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js +0 -10
  437. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js.map +0 -1
  438. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js +0 -60
  439. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js.map +0 -1
  440. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js +0 -9
  441. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js.map +0 -1
  442. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js +0 -9
  443. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js.map +0 -1
  444. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js +0 -12
  445. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js.map +0 -1
  446. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js +0 -11
  447. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js.map +0 -1
  448. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js +0 -9
  449. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js.map +0 -1
  450. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js +0 -9
  451. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js.map +0 -1
  452. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js +0 -10
  453. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js.map +0 -1
  454. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js +0 -13
  455. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js.map +0 -1
  456. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js +0 -16
  457. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js.map +0 -1
  458. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js +0 -9
  459. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js.map +0 -1
  460. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js +0 -9
  461. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js.map +0 -1
  462. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js +0 -10
  463. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js.map +0 -1
  464. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js +0 -9
  465. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js.map +0 -1
  466. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js +0 -9
  467. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js.map +0 -1
  468. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js +0 -13
  469. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js.map +0 -1
  470. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js +0 -18
  471. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js.map +0 -1
  472. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js +0 -9
  473. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js.map +0 -1
  474. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js +0 -9
  475. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js.map +0 -1
  476. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js +0 -9
  477. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js.map +0 -1
  478. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js +0 -8
  479. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js.map +0 -1
  480. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js +0 -9
  481. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js.map +0 -1
  482. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js +0 -15
  483. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js.map +0 -1
  484. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js +0 -14
  485. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js.map +0 -1
  486. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js +0 -15
  487. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js.map +0 -1
  488. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js +0 -14
  489. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js.map +0 -1
  490. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js +0 -10
  491. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js.map +0 -1
  492. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js +0 -13
  493. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js.map +0 -1
  494. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
  495. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -1
  496. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -19
  497. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -1
  498. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -32
  499. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -1
  500. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -16
  501. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -1
  502. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -71
  503. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
  504. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -34
  505. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
  506. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -12
  507. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
  508. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -156
  509. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
  510. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js +0 -111
  511. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
  512. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js +0 -22
  513. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js.map +0 -1
  514. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js +0 -15
  515. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js.map +0 -1
  516. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js +0 -15
  517. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js.map +0 -1
  518. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js +0 -23
  519. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js.map +0 -1
  520. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js +0 -42
  521. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js.map +0 -1
  522. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js +0 -50
  523. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js.map +0 -1
  524. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -50
  525. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +0 -1
  526. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -50
  527. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +0 -1
  528. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -62
  529. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +0 -1
  530. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -52
  531. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +0 -1
  532. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -46
  533. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +0 -1
  534. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -50
  535. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +0 -1
  536. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -31
  537. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +0 -1
  538. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -22
  539. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +0 -1
  540. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -23
  541. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +0 -1
  542. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -33
  543. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +0 -1
  544. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -33
  545. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +0 -1
  546. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -34
  547. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +0 -1
  548. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -34
  549. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +0 -1
  550. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -100
  551. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +0 -1
  552. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -49
  553. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +0 -1
  554. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -49
  555. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +0 -1
  556. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -50
  557. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +0 -1
  558. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -41
  559. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +0 -1
  560. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -75
  561. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +0 -1
  562. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -49
  563. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +0 -1
  564. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -70
  565. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +0 -1
  566. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -33
  567. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +0 -1
  568. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -72
  569. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +0 -1
  570. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -71
  571. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +0 -1
  572. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -33
  573. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +0 -1
  574. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -75
  575. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +0 -1
  576. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -72
  577. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +0 -1
  578. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -71
  579. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +0 -1
  580. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -23
  581. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +0 -1
  582. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -23
  583. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +0 -1
  584. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -50
  585. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +0 -1
  586. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js +0 -68
  587. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js.map +0 -1
  588. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js +0 -104
  589. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js.map +0 -1
  590. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js +0 -88
  591. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js.map +0 -1
  592. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js +0 -123
  593. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js.map +0 -1
  594. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js +0 -13
  595. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js.map +0 -1
  596. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js +0 -10
  597. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js.map +0 -1
  598. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js +0 -12
  599. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js.map +0 -1
  600. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js +0 -11
  601. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js.map +0 -1
  602. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js +0 -10
  603. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js.map +0 -1
  604. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js +0 -14
  605. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js.map +0 -1
  606. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js +0 -11
  607. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js.map +0 -1
  608. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js +0 -10
  609. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js.map +0 -1
  610. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js +0 -11
  611. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js.map +0 -1
  612. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js +0 -11
  613. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js.map +0 -1
  614. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js +0 -10
  615. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js.map +0 -1
  616. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js +0 -9
  617. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js.map +0 -1
  618. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js +0 -12
  619. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
  620. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js +0 -10
  621. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js.map +0 -1
  622. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js +0 -10
  623. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js.map +0 -1
  624. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js +0 -12
  625. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js.map +0 -1
  626. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js +0 -14
  627. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js.map +0 -1
  628. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js +0 -10
  629. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js.map +0 -1
  630. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js +0 -9
  631. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js.map +0 -1
  632. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js +0 -9
  633. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js.map +0 -1
  634. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js +0 -9
  635. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js.map +0 -1
  636. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js +0 -9
  637. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js.map +0 -1
  638. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js +0 -9
  639. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js.map +0 -1
  640. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js +0 -9
  641. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js.map +0 -1
  642. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js +0 -19
  643. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js.map +0 -1
  644. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
  645. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
  646. package/dist/static/avatar-selected.860ee923.json +0 -1
  647. package/dist/static/circle-cuemath-logo-white.e9fafb91.svg +0 -1
  648. package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +0 -1
  649. package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
  650. package/dist/static/dob.9ce3c15b.json +0 -1
  651. package/dist/static/grade.b3730524.json +0 -1
  652. package/dist/static/key.d6846476.json +0 -1
  653. package/dist/static/mail.c30e8708.json +0 -1
  654. package/dist/static/otp.2d08f874.json +0 -1
  655. package/dist/static/otp.a3029760.json +0 -1
  656. package/dist/static/parent-avatar.772d53e0.json +0 -1
  657. package/dist/static/phone-number.0be312ea.json +0 -1
  658. package/dist/static/phone-number.84f55562.json +0 -1
  659. package/dist/static/student-avatar.524226bd.json +0 -1
  660. package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +0 -1
  661. package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +0 -1
  662. package/dist/static/user-type-selector-grid-bg.aad0b059.svg +0 -1
  663. package/dist/static/username.9e034d51.json +0 -1
@@ -1,12 +1,12 @@
1
1
  import { NODE_TYPE as E } from "../constants/sheet.js";
2
- const A = [
2
+ const S = [
3
3
  "SAT_MATH_ASSESSMENT",
4
4
  "SAT_ENGLISH_ASSESSMENT",
5
5
  "SAT_MATH_RECAP",
6
6
  "SAT_MATH_LEARNING",
7
7
  "SAT_ENGLISH_LEARNING"
8
8
  ], T = [
9
- ...A,
9
+ ...S,
10
10
  E.REMEDIAL,
11
11
  E.LEGACY,
12
12
  E.RECAP,
@@ -31,18 +31,8 @@ const A = [
31
31
  E.DIAGNOSTIC,
32
32
  E.SUBJECTIVE,
33
33
  E.TURING_SUBJECTIVE
34
- ], I = (_, t) => {
35
- const { node_type: n, is_worksheet_v3: S, is_lesson_v3_enabled: e } = _;
36
- if (t === "review")
37
- return T.includes(n);
38
- const r = "can_start" in _ ? _.can_start : _.permissions.can_start, s = "can_reattempt" in _ ? _.can_reattempt : _.permissions.can_reattempt, o = "can_redo" in _ ? _.can_redo : !1;
39
- return S || e ? !0 : r || s || o ? T.includes(n) : !!A.includes(n);
40
- }, N = (_) => {
41
- const { node_type: t, is_worksheet_v3: n, is_lesson_v3_enabled: S } = _;
42
- return n || S || A.includes(t);
43
- };
34
+ ];
44
35
  export {
45
- I as isV3Worksheet,
46
- N as isV3WorksheetAttempt
36
+ T as WORKSHEET_V3_NODE_TYPES
47
37
  };
48
38
  //# sourceMappingURL=is-v3-worksheet.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-v3-worksheet.js","sources":["../../../../src/features/sheets/utils/is-v3-worksheet.ts"],"sourcesContent":["import type { IWorksheetAttemptModel } from '../../../types/models/worksheet';\nimport type { TLPARSheetData } from '../../chapters/lpar-chapter/block-section/sheet-item/sheet-item-type';\nimport type { ISheetDataProps, TNodeTypeProps } from '../sheets-list/sheet-item/sheet-item-types';\n\nimport { NODE_TYPE } from '../constants/sheet';\n\nconst SAT_V3_NODE_TYPES: TNodeTypeProps[] = [\n 'SAT_MATH_ASSESSMENT',\n 'SAT_ENGLISH_ASSESSMENT',\n 'SAT_MATH_RECAP',\n 'SAT_MATH_LEARNING',\n 'SAT_ENGLISH_LEARNING',\n];\nconst WORKSHEET_V3_NODE_TYPES: TNodeTypeProps[] = [\n ...SAT_V3_NODE_TYPES,\n NODE_TYPE.REMEDIAL,\n NODE_TYPE.LEGACY,\n NODE_TYPE.RECAP,\n NODE_TYPE.GENERAL,\n NODE_TYPE.LEVEL3,\n NODE_TYPE.LEVEL2,\n NODE_TYPE.REVISION,\n NODE_TYPE.TARGET_PRACTICE,\n NODE_TYPE.EXTRA_PRACTICE,\n NODE_TYPE.PRACTICE,\n NODE_TYPE.LEARNING,\n NODE_TYPE.PUZZLE_EASY,\n NODE_TYPE.PUZZLE_MEDIUM,\n NODE_TYPE.PUZZLE_HARD,\n NODE_TYPE.CHAPTER_ASSESSMENT,\n NODE_TYPE.ASSESSMENT,\n NODE_TYPE.MASTERY,\n NODE_TYPE.TRIAL_DIAGNOSTIC,\n NODE_TYPE.DYNAMIC,\n NODE_TYPE.TURING_ASSESSMENT,\n NODE_TYPE.TURING_PRACTICE,\n NODE_TYPE.DIAGNOSTIC,\n NODE_TYPE.SUBJECTIVE,\n NODE_TYPE.TURING_SUBJECTIVE,\n];\n\nconst isV3Worksheet = (\n sheet: ISheetDataProps | TLPARSheetData,\n mode?: 'resume' | 'review',\n): boolean => {\n const { node_type, is_worksheet_v3, is_lesson_v3_enabled } = sheet;\n\n if (mode === 'review') {\n return WORKSHEET_V3_NODE_TYPES.includes(node_type);\n }\n\n const canStart = 'can_start' in sheet ? sheet.can_start : sheet.permissions.can_start;\n const canReattempt =\n 'can_reattempt' in sheet ? sheet.can_reattempt : sheet.permissions.can_reattempt;\n const canRedo = 'can_redo' in sheet ? sheet.can_redo : false;\n\n if (is_worksheet_v3 || is_lesson_v3_enabled) {\n return true;\n }\n\n // For new and reattemptable worksheets start the worksheet in v3 mode\n if (canStart || canReattempt || canRedo) {\n return WORKSHEET_V3_NODE_TYPES.includes(node_type);\n }\n\n // For SAT assessments start the worksheet in v3 mode\n if (SAT_V3_NODE_TYPES.includes(node_type)) {\n return true;\n }\n\n return false;\n};\n\nconst isV3WorksheetAttempt = (attempt: IWorksheetAttemptModel): boolean => {\n const { node_type, is_worksheet_v3, is_lesson_v3_enabled } = attempt;\n\n return (\n is_worksheet_v3 ||\n is_lesson_v3_enabled ||\n SAT_V3_NODE_TYPES.includes(node_type as TNodeTypeProps)\n );\n};\n\nexport { isV3Worksheet, isV3WorksheetAttempt };\n"],"names":["SAT_V3_NODE_TYPES","WORKSHEET_V3_NODE_TYPES","NODE_TYPE","isV3Worksheet","sheet","mode","node_type","is_worksheet_v3","is_lesson_v3_enabled","canStart","canReattempt","canRedo","isV3WorksheetAttempt","attempt"],"mappings":";AAMA,MAAMA,IAAsC;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACMC,IAA4C;AAAA,EAChD,GAAGD;AAAA,EACHE,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AACZ,GAEMC,IAAgB,CACpBC,GACAC,MACY;AACZ,QAAM,EAAE,WAAAC,GAAW,iBAAAC,GAAiB,sBAAAC,EAAA,IAAyBJ;AAE7D,MAAIC,MAAS;AACJ,WAAAJ,EAAwB,SAASK,CAAS;AAGnD,QAAMG,IAAW,eAAeL,IAAQA,EAAM,YAAYA,EAAM,YAAY,WACtEM,IACJ,mBAAmBN,IAAQA,EAAM,gBAAgBA,EAAM,YAAY,eAC/DO,IAAU,cAAcP,IAAQA,EAAM,WAAW;AAEvD,SAAIG,KAAmBC,IACd,KAILC,KAAYC,KAAgBC,IACvBV,EAAwB,SAASK,CAAS,IAI/C,EAAAN,EAAkB,SAASM,CAAS;AAK1C,GAEMM,IAAuB,CAACC,MAA6C;AACzE,QAAM,EAAE,WAAAP,GAAW,iBAAAC,GAAiB,sBAAAC,EAAA,IAAyBK;AAE7D,SACEN,KACAC,KACAR,EAAkB,SAASM,CAA2B;AAE1D;"}
1
+ {"version":3,"file":"is-v3-worksheet.js","sources":["../../../../src/features/sheets/utils/is-v3-worksheet.ts"],"sourcesContent":["import type { TNodeTypeProps } from '../sheets-list/sheet-item/sheet-item-types';\n\nimport { NODE_TYPE } from '../constants/sheet';\n\nconst SAT_V3_NODE_TYPES: TNodeTypeProps[] = [\n 'SAT_MATH_ASSESSMENT',\n 'SAT_ENGLISH_ASSESSMENT',\n 'SAT_MATH_RECAP',\n 'SAT_MATH_LEARNING',\n 'SAT_ENGLISH_LEARNING',\n];\nconst WORKSHEET_V3_NODE_TYPES: TNodeTypeProps[] = [\n ...SAT_V3_NODE_TYPES,\n NODE_TYPE.REMEDIAL,\n NODE_TYPE.LEGACY,\n NODE_TYPE.RECAP,\n NODE_TYPE.GENERAL,\n NODE_TYPE.LEVEL3,\n NODE_TYPE.LEVEL2,\n NODE_TYPE.REVISION,\n NODE_TYPE.TARGET_PRACTICE,\n NODE_TYPE.EXTRA_PRACTICE,\n NODE_TYPE.PRACTICE,\n NODE_TYPE.LEARNING,\n NODE_TYPE.PUZZLE_EASY,\n NODE_TYPE.PUZZLE_MEDIUM,\n NODE_TYPE.PUZZLE_HARD,\n NODE_TYPE.CHAPTER_ASSESSMENT,\n NODE_TYPE.ASSESSMENT,\n NODE_TYPE.MASTERY,\n NODE_TYPE.TRIAL_DIAGNOSTIC,\n NODE_TYPE.DYNAMIC,\n NODE_TYPE.TURING_ASSESSMENT,\n NODE_TYPE.TURING_PRACTICE,\n NODE_TYPE.DIAGNOSTIC,\n NODE_TYPE.SUBJECTIVE,\n NODE_TYPE.TURING_SUBJECTIVE,\n];\n\nexport { WORKSHEET_V3_NODE_TYPES };\n"],"names":["SAT_V3_NODE_TYPES","WORKSHEET_V3_NODE_TYPES","NODE_TYPE"],"mappings":";AAIA,MAAMA,IAAsC;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACMC,IAA4C;AAAA,EAChD,GAAGD;AAAA,EACHE,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AAAA,EACVA,EAAU;AACZ;"}
@@ -1,17 +1,17 @@
1
- import { jsxs as D, Fragment as I, jsx as r } from "react/jsx-runtime";
2
- import U from "../../../node_modules/lodash.throttle/index.js";
3
- import { useRef as W, useState as m, useCallback as $, useEffect as Y } from "react";
4
- import { useTheme as H } from "styled-components";
1
+ import { jsxs as I, Fragment as U, jsx as r } from "react/jsx-runtime";
2
+ import W from "../../../node_modules/lodash.throttle/index.js";
3
+ import { useRef as Y, useState as m, useCallback as $, useEffect as H } from "react";
4
+ import { useTheme as P } from "styled-components";
5
5
  import C from "../layout/flex-view.js";
6
- import P from "../portal/portal.js";
7
- import V from "../text/text.js";
8
- import { TooltipBody as Z } from "./arrow-tooltip-styled.js";
9
- import { computeTooltipNewCoOrdinates as q } from "./arrow-tooltip-util.js";
10
- const y = 8, G = 100, J = ({
6
+ import V from "../portal/portal.js";
7
+ import Z from "../text/text.js";
8
+ import { TooltipBody as q } from "./arrow-tooltip-styled.js";
9
+ import { computeTooltipNewCoOrdinates as y } from "./arrow-tooltip-util.js";
10
+ const G = 8, J = 100, K = ({
11
11
  isAnimated: O,
12
12
  alwaysVisible: o = !1,
13
13
  arrowColor: T,
14
- arrowSize: h = y,
14
+ arrowSize: h = G,
15
15
  arrowXCoOrdinates: g,
16
16
  arrowYCoOrdinates: w,
17
17
  backgroundColor: R,
@@ -27,61 +27,62 @@ const y = 8, G = 100, J = ({
27
27
  tooltipYCoOrdinates: k,
28
28
  width: F,
29
29
  widthX: L,
30
- zIndex: M
30
+ zIndex: M,
31
+ parentWidth: S
31
32
  }) => {
32
- const { arrowTooltip: S } = H(), { tooltipVariants: a } = S, { backgroundColorName: X } = a[i], u = W(null), [_, p] = m(o), [j, v] = m(
33
+ const { arrowTooltip: X } = P(), { tooltipVariants: a } = X, { backgroundColorName: _ } = a[i], u = Y(null), [j, p] = m(o), [v, z] = m(
33
34
  null
34
35
  ), s = $(
35
36
  (e, n) => {
36
- v(e), p(n);
37
+ z(e), p(n);
37
38
  },
38
39
  []
39
- ), z = $(() => {
40
+ ), B = $(() => {
40
41
  if (t || o)
41
42
  return null;
42
43
  s(null, !1);
43
- }, [o, s, t]), d = U(() => {
44
+ }, [o, s, t]), d = W(() => {
44
45
  var f;
45
46
  const { current: e } = u;
46
47
  if (t || !e) return null;
47
- const n = (f = e.children[0]) == null ? void 0 : f.getBoundingClientRect(), B = n ? q(c, n) : null;
48
- return s(B, !0), null;
49
- }, G);
50
- return Y(() => {
48
+ const n = (f = e.children[0]) == null ? void 0 : f.getBoundingClientRect(), D = n ? y(c, n) : null;
49
+ return s(D, !0), null;
50
+ }, J);
51
+ return H(() => {
51
52
  t && p(!1), o && d();
52
- }, [o, t]), /* @__PURE__ */ D(I, { children: [
53
+ }, [o, t]), /* @__PURE__ */ I(U, { children: [
53
54
  /* @__PURE__ */ r(
54
55
  C,
55
56
  {
56
- $width: "fit-content",
57
+ $width: S || "fit-content",
57
58
  ref: u,
58
59
  onMouseEnter: d,
59
- onMouseLeave: z,
60
+ onMouseLeave: B,
60
61
  children: /* @__PURE__ */ r(C, { children: x })
61
62
  }
62
63
  ),
63
- _ && /* @__PURE__ */ r(P, { portalId: "tooltip-root", children: /* @__PURE__ */ r(
64
- Z,
64
+ j && /* @__PURE__ */ r(V, { portalId: "tooltip-root", children: /* @__PURE__ */ r(
65
+ q,
65
66
  {
66
67
  $arrowSize: h,
67
68
  $arrowXCoOrdinates: g,
68
69
  $arrowYCoOrdinates: w,
69
70
  $position: c,
70
71
  $renderAs: i,
71
- $tooltipCoOrdinates: j,
72
+ $tooltipCoOrdinates: v,
72
73
  $tooltipOffset: E,
73
74
  $tooltipXCoOrdinates: N,
74
75
  $tooltipYCoOrdinates: k,
75
76
  $width: F,
76
77
  $widthX: L,
77
78
  $zIndex: M,
78
- $background: X,
79
+ $background: _,
79
80
  $backgroundColor: R,
80
81
  $arrowColor: T,
81
82
  $borderColor: b,
82
83
  $isAnimated: O,
83
84
  children: typeof l == "string" ? /* @__PURE__ */ r(
84
- V,
85
+ Z,
85
86
  {
86
87
  $renderAs: A || "body3",
87
88
  $color: a[i].textColorName,
@@ -92,8 +93,8 @@ const y = 8, G = 100, J = ({
92
93
  }
93
94
  ) })
94
95
  ] });
95
- }, so = J;
96
+ }, co = K;
96
97
  export {
97
- so as default
98
+ co as default
98
99
  };
99
100
  //# sourceMappingURL=arrow-tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"arrow-tooltip.js","sources":["../../../../src/features/ui/arrow-tooltip/arrow-tooltip.tsx"],"sourcesContent":["import type {\n IArrowTooltipProps,\n THandleVisibleNCoOrdinatesProps,\n TTooltipCoOrdinatesProps,\n} from './arrow-tooltip-types';\n\nimport throttle from 'lodash.throttle';\nimport { useState, type FC, useCallback, useRef, useEffect } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport FlexView from '../layout/flex-view';\nimport Portal from '../portal/portal';\nimport Text from '../text/text';\nimport * as Styled from './arrow-tooltip-styled';\nimport { computeTooltipNewCoOrdinates } from './arrow-tooltip-util';\n\nconst DEFAULT_ARROW_SIZE = 8;\nconst THROTTLE_DURATION = 100;\n\nconst ArrowTooltip: FC<IArrowTooltipProps> = ({\n isAnimated,\n alwaysVisible = false,\n arrowColor,\n arrowSize = DEFAULT_ARROW_SIZE,\n arrowXCoOrdinates,\n arrowYCoOrdinates,\n backgroundColor,\n borderColor,\n children,\n hidden,\n position,\n renderAs,\n textVariant,\n tooltipItem,\n tooltipOffset,\n tooltipXCoOrdinates,\n tooltipYCoOrdinates,\n width,\n widthX,\n zIndex,\n}) => {\n const { arrowTooltip } = useTheme();\n const { tooltipVariants } = arrowTooltip;\n const { backgroundColorName } = tooltipVariants[renderAs];\n\n const tooltipWrapperRef = useRef<HTMLDivElement>(null);\n const [visible, setVisible] = useState(alwaysVisible);\n const [tooltipCoOrdinates, setTooltipCoOrdinates] = useState<TTooltipCoOrdinatesProps | null>(\n null,\n );\n\n const handleVisibleNCoOrdinates: THandleVisibleNCoOrdinatesProps = useCallback(\n (newCoOrdinates, visibility) => {\n setTooltipCoOrdinates(newCoOrdinates);\n setVisible(visibility);\n },\n [],\n );\n\n const handleVisibility = useCallback(() => {\n if (hidden || alwaysVisible) {\n return null;\n }\n\n handleVisibleNCoOrdinates(null, false);\n\n return;\n }, [alwaysVisible, handleVisibleNCoOrdinates, hidden]);\n\n const handleOnMouseEnter = throttle(() => {\n const { current } = tooltipWrapperRef;\n\n if (hidden || !current) return null;\n\n const boundingClientRect = current.children[0]?.getBoundingClientRect();\n const newCoOrdinates = boundingClientRect\n ? computeTooltipNewCoOrdinates(position, boundingClientRect)\n : null;\n\n handleVisibleNCoOrdinates(newCoOrdinates, true);\n\n return null;\n }, THROTTLE_DURATION);\n\n useEffect(() => {\n if (hidden) {\n setVisible(false);\n }\n\n if (alwaysVisible) {\n handleOnMouseEnter();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [alwaysVisible, hidden]);\n\n return (\n <>\n <FlexView\n $width=\"fit-content\"\n ref={tooltipWrapperRef}\n onMouseEnter={handleOnMouseEnter}\n onMouseLeave={handleVisibility}\n >\n <FlexView>{children}</FlexView>\n </FlexView>\n {visible && (\n <Portal portalId=\"tooltip-root\">\n <Styled.TooltipBody\n $arrowSize={arrowSize}\n $arrowXCoOrdinates={arrowXCoOrdinates}\n $arrowYCoOrdinates={arrowYCoOrdinates}\n $position={position}\n $renderAs={renderAs}\n $tooltipCoOrdinates={tooltipCoOrdinates}\n $tooltipOffset={tooltipOffset}\n $tooltipXCoOrdinates={tooltipXCoOrdinates}\n $tooltipYCoOrdinates={tooltipYCoOrdinates}\n $width={width}\n $widthX={widthX}\n $zIndex={zIndex}\n $background={backgroundColorName}\n $backgroundColor={backgroundColor}\n $arrowColor={arrowColor}\n $borderColor={borderColor}\n $isAnimated={isAnimated}\n >\n {typeof tooltipItem === 'string' ? (\n <Text\n $renderAs={textVariant || 'body3'}\n $color={tooltipVariants[renderAs].textColorName}\n $align=\"center\"\n >\n {tooltipItem}\n </Text>\n ) : (\n tooltipItem\n )}\n </Styled.TooltipBody>\n </Portal>\n )}\n </>\n );\n};\n\nexport default ArrowTooltip;\n"],"names":["DEFAULT_ARROW_SIZE","THROTTLE_DURATION","ArrowTooltip","isAnimated","alwaysVisible","arrowColor","arrowSize","arrowXCoOrdinates","arrowYCoOrdinates","backgroundColor","borderColor","children","hidden","position","renderAs","textVariant","tooltipItem","tooltipOffset","tooltipXCoOrdinates","tooltipYCoOrdinates","width","widthX","zIndex","arrowTooltip","useTheme","tooltipVariants","backgroundColorName","tooltipWrapperRef","useRef","visible","setVisible","useState","tooltipCoOrdinates","setTooltipCoOrdinates","handleVisibleNCoOrdinates","useCallback","newCoOrdinates","visibility","handleVisibility","handleOnMouseEnter","throttle","current","boundingClientRect","_a","computeTooltipNewCoOrdinates","useEffect","jsxs","Fragment","jsx","FlexView","Portal","Styled.TooltipBody","Text","ArrowTooltip$1"],"mappings":";;;;;;;;;AAgBA,MAAMA,IAAqB,GACrBC,IAAoB,KAEpBC,IAAuC,CAAC;AAAA,EAC5C,YAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,YAAAC;AAAA,EACA,WAAAC,IAAYN;AAAA,EACZ,mBAAAO;AAAA,EACA,mBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AACF,MAAM;AACE,QAAA,EAAE,cAAAC,MAAiBC,KACnB,EAAE,iBAAAC,EAAoB,IAAAF,GACtB,EAAE,qBAAAG,EAAA,IAAwBD,EAAgBX,CAAQ,GAElDa,IAAoBC,EAAuB,IAAI,GAC/C,CAACC,GAASC,CAAU,IAAIC,EAAS3B,CAAa,GAC9C,CAAC4B,GAAoBC,CAAqB,IAAIF;AAAA,IAClD;AAAA,EAAA,GAGIG,IAA6DC;AAAA,IACjE,CAACC,GAAgBC,MAAe;AAC9B,MAAAJ,EAAsBG,CAAc,GACpCN,EAAWO,CAAU;AAAA,IACvB;AAAA,IACA,CAAC;AAAA,EAAA,GAGGC,IAAmBH,EAAY,MAAM;AACzC,QAAIvB,KAAUR;AACL,aAAA;AAGT,IAAA8B,EAA0B,MAAM,EAAK;AAAA,EAGpC,GAAA,CAAC9B,GAAe8B,GAA2BtB,CAAM,CAAC,GAE/C2B,IAAqBC,EAAS,MAAM;;AAClC,UAAA,EAAE,SAAAC,EAAY,IAAAd;AAEhB,QAAAf,KAAU,CAAC6B,EAAgB,QAAA;AAE/B,UAAMC,KAAqBC,IAAAF,EAAQ,SAAS,CAAC,MAAlB,gBAAAE,EAAqB,yBAC1CP,IAAiBM,IACnBE,EAA6B/B,GAAU6B,CAAkB,IACzD;AAEJ,WAAAR,EAA0BE,GAAgB,EAAI,GAEvC;AAAA,KACNnC,CAAiB;AAEpB,SAAA4C,EAAU,MAAM;AACd,IAAIjC,KACFkB,EAAW,EAAK,GAGd1B,KACiBmC;EACrB,GAEC,CAACnC,GAAeQ,CAAM,CAAC,GAItB,gBAAAkC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,QAAO;AAAA,QACP,KAAKtB;AAAA,QACL,cAAcY;AAAA,QACd,cAAcD;AAAA,QAEd,UAAA,gBAAAU,EAACC,KAAU,UAAAtC,EAAS,CAAA;AAAA,MAAA;AAAA,IACtB;AAAA,IACCkB,KACC,gBAAAmB,EAACE,GAAO,EAAA,UAAS,gBACf,UAAA,gBAAAF;AAAA,MAACG;AAAAA,MAAA;AAAA,QACC,YAAY7C;AAAA,QACZ,oBAAoBC;AAAA,QACpB,oBAAoBC;AAAA,QACpB,WAAWK;AAAA,QACX,WAAWC;AAAA,QACX,qBAAqBkB;AAAA,QACrB,gBAAgBf;AAAA,QAChB,sBAAsBC;AAAA,QACtB,sBAAsBC;AAAA,QACtB,QAAQC;AAAA,QACR,SAASC;AAAA,QACT,SAASC;AAAA,QACT,aAAaI;AAAA,QACb,kBAAkBjB;AAAA,QAClB,aAAaJ;AAAA,QACb,cAAcK;AAAA,QACd,aAAaP;AAAA,QAEZ,UAAA,OAAOa,KAAgB,WACtB,gBAAAgC;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,WAAWrC,KAAe;AAAA,YAC1B,QAAQU,EAAgBX,CAAQ,EAAE;AAAA,YAClC,QAAO;AAAA,YAEN,UAAAE;AAAA,UAAA;AAAA,QAAA,IAGHA;AAAA,MAAA;AAAA,IAAA,GAGN;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEAqC,KAAenD;"}
1
+ {"version":3,"file":"arrow-tooltip.js","sources":["../../../../src/features/ui/arrow-tooltip/arrow-tooltip.tsx"],"sourcesContent":["import type {\n IArrowTooltipProps,\n THandleVisibleNCoOrdinatesProps,\n TTooltipCoOrdinatesProps,\n} from './arrow-tooltip-types';\n\nimport throttle from 'lodash.throttle';\nimport { useState, type FC, useCallback, useRef, useEffect } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport FlexView from '../layout/flex-view';\nimport Portal from '../portal/portal';\nimport Text from '../text/text';\nimport * as Styled from './arrow-tooltip-styled';\nimport { computeTooltipNewCoOrdinates } from './arrow-tooltip-util';\n\nconst DEFAULT_ARROW_SIZE = 8;\nconst THROTTLE_DURATION = 100;\n\nconst ArrowTooltip: FC<IArrowTooltipProps> = ({\n isAnimated,\n alwaysVisible = false,\n arrowColor,\n arrowSize = DEFAULT_ARROW_SIZE,\n arrowXCoOrdinates,\n arrowYCoOrdinates,\n backgroundColor,\n borderColor,\n children,\n hidden,\n position,\n renderAs,\n textVariant,\n tooltipItem,\n tooltipOffset,\n tooltipXCoOrdinates,\n tooltipYCoOrdinates,\n width,\n widthX,\n zIndex,\n parentWidth,\n}) => {\n const { arrowTooltip } = useTheme();\n const { tooltipVariants } = arrowTooltip;\n const { backgroundColorName } = tooltipVariants[renderAs];\n\n const tooltipWrapperRef = useRef<HTMLDivElement>(null);\n const [visible, setVisible] = useState(alwaysVisible);\n const [tooltipCoOrdinates, setTooltipCoOrdinates] = useState<TTooltipCoOrdinatesProps | null>(\n null,\n );\n\n const handleVisibleNCoOrdinates: THandleVisibleNCoOrdinatesProps = useCallback(\n (newCoOrdinates, visibility) => {\n setTooltipCoOrdinates(newCoOrdinates);\n setVisible(visibility);\n },\n [],\n );\n\n const handleVisibility = useCallback(() => {\n if (hidden || alwaysVisible) {\n return null;\n }\n\n handleVisibleNCoOrdinates(null, false);\n\n return;\n }, [alwaysVisible, handleVisibleNCoOrdinates, hidden]);\n\n const handleOnMouseEnter = throttle(() => {\n const { current } = tooltipWrapperRef;\n\n if (hidden || !current) return null;\n\n const boundingClientRect = current.children[0]?.getBoundingClientRect();\n const newCoOrdinates = boundingClientRect\n ? computeTooltipNewCoOrdinates(position, boundingClientRect)\n : null;\n\n handleVisibleNCoOrdinates(newCoOrdinates, true);\n\n return null;\n }, THROTTLE_DURATION);\n\n useEffect(() => {\n if (hidden) {\n setVisible(false);\n }\n\n if (alwaysVisible) {\n handleOnMouseEnter();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [alwaysVisible, hidden]);\n\n return (\n <>\n <FlexView\n $width={parentWidth || 'fit-content'}\n ref={tooltipWrapperRef}\n onMouseEnter={handleOnMouseEnter}\n onMouseLeave={handleVisibility}\n >\n <FlexView>{children}</FlexView>\n </FlexView>\n {visible && (\n <Portal portalId=\"tooltip-root\">\n <Styled.TooltipBody\n $arrowSize={arrowSize}\n $arrowXCoOrdinates={arrowXCoOrdinates}\n $arrowYCoOrdinates={arrowYCoOrdinates}\n $position={position}\n $renderAs={renderAs}\n $tooltipCoOrdinates={tooltipCoOrdinates}\n $tooltipOffset={tooltipOffset}\n $tooltipXCoOrdinates={tooltipXCoOrdinates}\n $tooltipYCoOrdinates={tooltipYCoOrdinates}\n $width={width}\n $widthX={widthX}\n $zIndex={zIndex}\n $background={backgroundColorName}\n $backgroundColor={backgroundColor}\n $arrowColor={arrowColor}\n $borderColor={borderColor}\n $isAnimated={isAnimated}\n >\n {typeof tooltipItem === 'string' ? (\n <Text\n $renderAs={textVariant || 'body3'}\n $color={tooltipVariants[renderAs].textColorName}\n $align=\"center\"\n >\n {tooltipItem}\n </Text>\n ) : (\n tooltipItem\n )}\n </Styled.TooltipBody>\n </Portal>\n )}\n </>\n );\n};\n\nexport default ArrowTooltip;\n"],"names":["DEFAULT_ARROW_SIZE","THROTTLE_DURATION","ArrowTooltip","isAnimated","alwaysVisible","arrowColor","arrowSize","arrowXCoOrdinates","arrowYCoOrdinates","backgroundColor","borderColor","children","hidden","position","renderAs","textVariant","tooltipItem","tooltipOffset","tooltipXCoOrdinates","tooltipYCoOrdinates","width","widthX","zIndex","parentWidth","arrowTooltip","useTheme","tooltipVariants","backgroundColorName","tooltipWrapperRef","useRef","visible","setVisible","useState","tooltipCoOrdinates","setTooltipCoOrdinates","handleVisibleNCoOrdinates","useCallback","newCoOrdinates","visibility","handleVisibility","handleOnMouseEnter","throttle","current","boundingClientRect","_a","computeTooltipNewCoOrdinates","useEffect","jsxs","Fragment","jsx","FlexView","Portal","Styled.TooltipBody","Text","ArrowTooltip$1"],"mappings":";;;;;;;;;AAgBA,MAAMA,IAAqB,GACrBC,IAAoB,KAEpBC,IAAuC,CAAC;AAAA,EAC5C,YAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,YAAAC;AAAA,EACA,WAAAC,IAAYN;AAAA,EACZ,mBAAAO;AAAA,EACA,mBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC;AACF,MAAM;AACE,QAAA,EAAE,cAAAC,MAAiBC,KACnB,EAAE,iBAAAC,EAAoB,IAAAF,GACtB,EAAE,qBAAAG,EAAA,IAAwBD,EAAgBZ,CAAQ,GAElDc,IAAoBC,EAAuB,IAAI,GAC/C,CAACC,GAASC,CAAU,IAAIC,EAAS5B,CAAa,GAC9C,CAAC6B,GAAoBC,CAAqB,IAAIF;AAAA,IAClD;AAAA,EAAA,GAGIG,IAA6DC;AAAA,IACjE,CAACC,GAAgBC,MAAe;AAC9B,MAAAJ,EAAsBG,CAAc,GACpCN,EAAWO,CAAU;AAAA,IACvB;AAAA,IACA,CAAC;AAAA,EAAA,GAGGC,IAAmBH,EAAY,MAAM;AACzC,QAAIxB,KAAUR;AACL,aAAA;AAGT,IAAA+B,EAA0B,MAAM,EAAK;AAAA,EAGpC,GAAA,CAAC/B,GAAe+B,GAA2BvB,CAAM,CAAC,GAE/C4B,IAAqBC,EAAS,MAAM;;AAClC,UAAA,EAAE,SAAAC,EAAY,IAAAd;AAEhB,QAAAhB,KAAU,CAAC8B,EAAgB,QAAA;AAE/B,UAAMC,KAAqBC,IAAAF,EAAQ,SAAS,CAAC,MAAlB,gBAAAE,EAAqB,yBAC1CP,IAAiBM,IACnBE,EAA6BhC,GAAU8B,CAAkB,IACzD;AAEJ,WAAAR,EAA0BE,GAAgB,EAAI,GAEvC;AAAA,KACNpC,CAAiB;AAEpB,SAAA6C,EAAU,MAAM;AACd,IAAIlC,KACFmB,EAAW,EAAK,GAGd3B,KACiBoC;EACrB,GAEC,CAACpC,GAAeQ,CAAM,CAAC,GAItB,gBAAAmC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,QAAQ3B,KAAe;AAAA,QACvB,KAAKK;AAAA,QACL,cAAcY;AAAA,QACd,cAAcD;AAAA,QAEd,UAAA,gBAAAU,EAACC,KAAU,UAAAvC,EAAS,CAAA;AAAA,MAAA;AAAA,IACtB;AAAA,IACCmB,KACC,gBAAAmB,EAACE,GAAO,EAAA,UAAS,gBACf,UAAA,gBAAAF;AAAA,MAACG;AAAAA,MAAA;AAAA,QACC,YAAY9C;AAAA,QACZ,oBAAoBC;AAAA,QACpB,oBAAoBC;AAAA,QACpB,WAAWK;AAAA,QACX,WAAWC;AAAA,QACX,qBAAqBmB;AAAA,QACrB,gBAAgBhB;AAAA,QAChB,sBAAsBC;AAAA,QACtB,sBAAsBC;AAAA,QACtB,QAAQC;AAAA,QACR,SAASC;AAAA,QACT,SAASC;AAAA,QACT,aAAaK;AAAA,QACb,kBAAkBlB;AAAA,QAClB,aAAaJ;AAAA,QACb,cAAcK;AAAA,QACd,aAAaP;AAAA,QAEZ,UAAA,OAAOa,KAAgB,WACtB,gBAAAiC;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,WAAWtC,KAAe;AAAA,YAC1B,QAAQW,EAAgBZ,CAAQ,EAAE;AAAA,YAClC,QAAO;AAAA,YAEN,UAAAE;AAAA,UAAA;AAAA,QAAA,IAGHA;AAAA,MAAA;AAAA,IAAA,GAGN;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEAsC,KAAepD;"}
@@ -1,7 +1,7 @@
1
1
  const _ = {
2
2
  CHAPTER_CROWN_ICON: 4,
3
3
  CHAPTER_PLUS_ICON: 2,
4
- CHAPTER_PROGRESS_SVG: 1,
4
+ CHAPTER_PROGRESS_SVG: 2,
5
5
  LPAR_SHEET_ITEM_BOTTOM_DASH_BOX: 1,
6
6
  LPAR_SHEET_ITEM_TOP_VERTICAL_ICON: 2,
7
7
  MODAL: 20,
@@ -1 +1 @@
1
- {"version":3,"file":"z-index.js","sources":["../../../../src/features/ui/constants/z-index.ts"],"sourcesContent":["const ZINDEX = {\n CHAPTER_CROWN_ICON: 4,\n CHAPTER_PLUS_ICON: 2,\n CHAPTER_PROGRESS_SVG: 1,\n LPAR_SHEET_ITEM_BOTTOM_DASH_BOX: 1,\n LPAR_SHEET_ITEM_TOP_VERTICAL_ICON: 2,\n MODAL: 20,\n SAT_SUMMARY_SCORE: 25, //* SAT_SUMMARY_SCORE > MODAL\n CANVAS_SCRIBBLING: 26, //* CANVAS_SCRIBBLING > Learnosity\n TILE_CONTAINER: 30, //whiteboard\n QUESTION_TIPS: -1,\n DESMOS_CALCULATOR: 2,\n GOAL_CHAPTER_SHEETS_MENU: 4,\n} as const;\n\nexport { ZINDEX };\n"],"names":["ZINDEX"],"mappings":"AAAA,MAAMA,IAAS;AAAA,EACb,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,EACnB,sBAAsB;AAAA,EACtB,iCAAiC;AAAA,EACjC,mCAAmC;AAAA,EACnC,OAAO;AAAA,EACP,mBAAmB;AAAA;AAAA,EACnB,mBAAmB;AAAA;AAAA,EACnB,gBAAgB;AAAA;AAAA,EAChB,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,0BAA0B;AAC5B;"}
1
+ {"version":3,"file":"z-index.js","sources":["../../../../src/features/ui/constants/z-index.ts"],"sourcesContent":["const ZINDEX = {\n CHAPTER_CROWN_ICON: 4,\n CHAPTER_PLUS_ICON: 2,\n CHAPTER_PROGRESS_SVG: 2,\n LPAR_SHEET_ITEM_BOTTOM_DASH_BOX: 1,\n LPAR_SHEET_ITEM_TOP_VERTICAL_ICON: 2,\n MODAL: 20,\n SAT_SUMMARY_SCORE: 25, //* SAT_SUMMARY_SCORE > MODAL\n CANVAS_SCRIBBLING: 26, //* CANVAS_SCRIBBLING > Learnosity\n TILE_CONTAINER: 30, //whiteboard\n QUESTION_TIPS: -1,\n DESMOS_CALCULATOR: 2,\n GOAL_CHAPTER_SHEETS_MENU: 4,\n} as const;\n\nexport { ZINDEX };\n"],"names":["ZINDEX"],"mappings":"AAAA,MAAMA,IAAS;AAAA,EACb,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,EACnB,sBAAsB;AAAA,EACtB,iCAAiC;AAAA,EACjC,mCAAmC;AAAA,EACnC,OAAO;AAAA,EACP,mBAAmB;AAAA;AAAA,EACnB,mBAAmB;AAAA;AAAA,EACnB,gBAAgB;AAAA;AAAA,EAChB,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,0BAA0B;AAC5B;"}
@@ -1,27 +1,41 @@
1
- import e from "styled-components";
2
- const s = e.div`
3
- width: fit-content;
1
+ import o from "styled-components";
2
+ const d = o.div`
3
+ width: auto;
4
4
  height: fit-content;
5
5
  position: relative;
6
6
  border-radius: 50%;
7
- `, p = e.div(
8
- ({ $visible: t, $menuOffset: o, $startLeft: n, $menuZIndex: i, $placeTop: r }) => `
7
+ `, f = o.div(
8
+ ({
9
+ $visible: t,
10
+ $menuOffset: a,
11
+ $startLeft: i,
12
+ $menuZIndex: s,
13
+ $placeTop: e,
14
+ $menuWidth: r,
15
+ $menuWidthX: n,
16
+ theme: p
17
+ }) => {
18
+ const { layout: u } = p;
19
+ return `
9
20
  position: absolute;
10
- top: calc(${r ? "0% -" : "100% +"} ${o ?? 0}px);
11
- ${n ? "left: 0" : "right: 0"};
12
- z-index: ${i ?? "unset"};
21
+ width: ${r ? `${r}` : "auto"}${typeof r == "number" ? "px" : ""};
22
+ ${n ? `width: ${n * u.gutter}px;` : ""}
23
+ top: calc(${e ? "0% -" : "100% +"} ${a ?? 0}px);
24
+ ${i ? "left: 0" : "right: 0"};
25
+ z-index: ${s ?? "unset"};
13
26
 
14
27
  transform-origin: top;
15
- transform: scaleY(${t ? 1 : 0}) rotate(${r ? 180 : 0}deg);
28
+ transform: scaleY(${t ? 1 : 0}) rotate(${e ? 180 : 0}deg);
16
29
  opacity: ${t ? 1 : 0};
17
30
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
18
- `
19
- ), d = e.div(({ $placeTop: t }) => `
31
+ `;
32
+ }
33
+ ), $ = o.div(({ $placeTop: t }) => `
20
34
  transform: rotate(${t ? 180 : 0}deg);
21
35
  `);
22
36
  export {
23
- d as MenuElementWrapper,
24
- p as OptionsMenuWrapper,
25
- s as TargetElementWrapper
37
+ $ as MenuElementWrapper,
38
+ f as OptionsMenuWrapper,
39
+ d as TargetElementWrapper
26
40
  };
27
41
  //# sourceMappingURL=context-menu-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-menu-styled.js","sources":["../../../../src/features/ui/context-menu/context-menu-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nconst TargetElementWrapper = styled.div`\n width: fit-content;\n height: fit-content;\n position: relative;\n border-radius: 50%;\n`;\n\ninterface IOptionsMenuWrapperProps {\n $visible: boolean;\n $startLeft?: boolean;\n $menuOffset?: number;\n $menuZIndex?: number;\n $placeTop?: boolean;\n}\n\nconst OptionsMenuWrapper = styled.div<IOptionsMenuWrapperProps>(\n ({ $visible, $menuOffset, $startLeft, $menuZIndex, $placeTop }) => {\n return `\n position: absolute;\n top: calc(${$placeTop ? '0% -' : '100% +'} ${$menuOffset ?? 0}px);\n ${$startLeft ? 'left: 0' : 'right: 0'};\n z-index: ${$menuZIndex ?? 'unset'};\n\n transform-origin: top;\n transform: scaleY(${$visible ? 1 : 0}) rotate(${$placeTop ? 180 : 0}deg);\n opacity: ${$visible ? 1 : 0};\n transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;\n `;\n },\n);\n\ninterface IMenuElementWrapperProps {\n $placeTop?: boolean;\n}\n\nconst MenuElementWrapper = styled.div<IMenuElementWrapperProps>(({ $placeTop }) => {\n return `\n transform: rotate(${$placeTop ? 180 : 0}deg);\n `;\n});\n\nexport { TargetElementWrapper, OptionsMenuWrapper, MenuElementWrapper };\n"],"names":["TargetElementWrapper","styled","OptionsMenuWrapper","$visible","$menuOffset","$startLeft","$menuZIndex","$placeTop","MenuElementWrapper"],"mappings":";AAEA,MAAMA,IAAuBC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAe9BC,IAAqBD,EAAO;AAAA,EAChC,CAAC,EAAE,UAAAE,GAAU,aAAAC,GAAa,YAAAC,GAAY,aAAAC,GAAa,WAAAC,QAC1C;AAAA;AAAA,gBAEKA,IAAY,SAAS,QAAQ,IAAIH,KAAe,CAAC;AAAA,MAC3DC,IAAa,YAAY,UAAU;AAAA,eAC1BC,KAAe,OAAO;AAAA;AAAA;AAAA,wBAGbH,IAAW,IAAI,CAAC,YAAYI,IAAY,MAAM,CAAC;AAAA,eACxDJ,IAAW,IAAI,CAAC;AAAA;AAAA;AAI/B,GAMMK,IAAqBP,EAAO,IAA8B,CAAC,EAAE,WAAAM,QAC1D;AAAA,wBACeA,IAAY,MAAM,CAAC;AAAA,GAE1C;"}
1
+ {"version":3,"file":"context-menu-styled.js","sources":["../../../../src/features/ui/context-menu/context-menu-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nconst TargetElementWrapper = styled.div`\n width: auto;\n height: fit-content;\n position: relative;\n border-radius: 50%;\n`;\n\ninterface IOptionsMenuWrapperProps {\n $visible: boolean;\n $startLeft?: boolean;\n $menuOffset?: number;\n $menuZIndex?: number;\n $placeTop?: boolean;\n $menuWidth?: number | string;\n $menuWidthX?: number;\n}\n\nconst OptionsMenuWrapper = styled.div<IOptionsMenuWrapperProps>(\n ({\n $visible,\n $menuOffset,\n $startLeft,\n $menuZIndex,\n $placeTop,\n $menuWidth,\n $menuWidthX,\n theme,\n }) => {\n const { layout } = theme;\n\n return `\n position: absolute;\n width: ${$menuWidth ? `${$menuWidth}` : 'auto'}${typeof $menuWidth === 'number' ? 'px' : ''};\n ${$menuWidthX ? `width: ${$menuWidthX * layout.gutter}px;` : ''}\n top: calc(${$placeTop ? '0% -' : '100% +'} ${$menuOffset ?? 0}px);\n ${$startLeft ? 'left: 0' : 'right: 0'};\n z-index: ${$menuZIndex ?? 'unset'};\n\n transform-origin: top;\n transform: scaleY(${$visible ? 1 : 0}) rotate(${$placeTop ? 180 : 0}deg);\n opacity: ${$visible ? 1 : 0};\n transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;\n `;\n },\n);\n\ninterface IMenuElementWrapperProps {\n $placeTop?: boolean;\n}\n\nconst MenuElementWrapper = styled.div<IMenuElementWrapperProps>(({ $placeTop }) => {\n return `\n transform: rotate(${$placeTop ? 180 : 0}deg);\n `;\n});\n\nexport { TargetElementWrapper, OptionsMenuWrapper, MenuElementWrapper };\n"],"names":["TargetElementWrapper","styled","OptionsMenuWrapper","$visible","$menuOffset","$startLeft","$menuZIndex","$placeTop","$menuWidth","$menuWidthX","theme","layout","MenuElementWrapper"],"mappings":";AAEA,MAAMA,IAAuBC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAiB9BC,IAAqBD,EAAO;AAAA,EAChC,CAAC;AAAA,IACC,UAAAE;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,aAAAC;AAAA,IACA,OAAAC;AAAA,EAAA,MACI;AACE,UAAA,EAAE,QAAAC,EAAW,IAAAD;AAEZ,WAAA;AAAA;AAAA,aAEEF,IAAa,GAAGA,CAAU,KAAK,MAAM,GAAG,OAAOA,KAAe,WAAW,OAAO,EAAE;AAAA,MACzFC,IAAc,UAAUA,IAAcE,EAAO,MAAM,QAAQ,EAAE;AAAA,gBACnDJ,IAAY,SAAS,QAAQ,IAAIH,KAAe,CAAC;AAAA,MAC3DC,IAAa,YAAY,UAAU;AAAA,eAC1BC,KAAe,OAAO;AAAA;AAAA;AAAA,wBAGbH,IAAW,IAAI,CAAC,YAAYI,IAAY,MAAM,CAAC;AAAA,eACxDJ,IAAW,IAAI,CAAC;AAAA;AAAA;AAAA,EAG7B;AACF,GAMMS,IAAqBX,EAAO,IAA8B,CAAC,EAAE,WAAAM,QAC1D;AAAA,wBACeA,IAAY,MAAM,CAAC;AAAA,GAE1C;"}
@@ -1,29 +1,42 @@
1
- import { jsxs as u, jsx as r } from "react/jsx-runtime";
2
- import { memo as a, useRef as f, isValidElement as d, cloneElement as x } from "react";
3
- import $ from "../hooks/use-context-menu-click-handler.js";
1
+ import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
+ import { memo as $, useRef as d } from "react";
3
+ import x from "../hooks/use-context-menu-click-handler.js";
4
4
  import { TargetElementWrapper as C, OptionsMenuWrapper as M, MenuElementWrapper as h } from "./context-menu-styled.js";
5
- const k = a(
6
- ({ targetElement: e, menuElement: i, menuOffset: l, startLeft: s, menuZIndex: m, placeTop: n }) => {
7
- const t = f(null), { menuVisible: o, onMenuClick: c } = $(t), p = d(e) ? x(e, {
8
- menuVisible: o
9
- }) : e;
10
- return /* @__PURE__ */ u(C, { ref: t, onClick: c, children: [
11
- p,
12
- /* @__PURE__ */ r(
5
+ const W = $(
6
+ ({
7
+ targetElement: r,
8
+ menuElement: o,
9
+ menuOffset: i,
10
+ startLeft: m,
11
+ menuZIndex: u,
12
+ placeTop: e,
13
+ menuWidth: l,
14
+ menuWidthX: s,
15
+ handleOnMenuClick: p
16
+ }) => {
17
+ const n = d(null), { menuVisible: c, onMenuClick: f } = x(
18
+ n,
19
+ p
20
+ );
21
+ return /* @__PURE__ */ a(C, { ref: n, onClick: f, children: [
22
+ r,
23
+ /* @__PURE__ */ t(
13
24
  M,
14
25
  {
15
- $menuOffset: l,
16
- $visible: o,
17
- $startLeft: s,
18
- $menuZIndex: m,
19
- $placeTop: n,
20
- children: /* @__PURE__ */ r(h, { $placeTop: n, children: i })
26
+ $menuOffset: i,
27
+ $visible: c,
28
+ $startLeft: m,
29
+ $menuZIndex: u,
30
+ $placeTop: e,
31
+ $menuWidth: l,
32
+ $menuWidthX: s,
33
+ children: /* @__PURE__ */ t(h, { $placeTop: e, children: o })
21
34
  }
22
35
  )
23
36
  ] });
24
37
  }
25
- ), j = k;
38
+ ), O = W;
26
39
  export {
27
- j as default
40
+ O as default
28
41
  };
29
42
  //# sourceMappingURL=context-menu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-menu.js","sources":["../../../../src/features/ui/context-menu/context-menu.tsx"],"sourcesContent":["import type { IContextMenuProps } from './context-menu-types';\nimport type { FC } from 'react';\n\nimport { cloneElement, isValidElement, memo, useRef } from 'react';\n\nimport useContextMenuClickHandler from '../hooks/use-context-menu-click-handler';\nimport * as Styled from './context-menu-styled';\n\nconst ContextMenu: FC<IContextMenuProps> = memo(\n ({ targetElement, menuElement, menuOffset, startLeft, menuZIndex, placeTop }) => {\n const containerRef = useRef<HTMLDivElement>(null);\n\n const { menuVisible, onMenuClick } = useContextMenuClickHandler(containerRef);\n\n const enhancedTargetElement = isValidElement(targetElement)\n ? cloneElement(targetElement as React.ReactElement<{ menuVisible?: boolean }>, {\n menuVisible,\n })\n : targetElement;\n\n return (\n <Styled.TargetElementWrapper ref={containerRef} onClick={onMenuClick}>\n {enhancedTargetElement}\n\n <Styled.OptionsMenuWrapper\n $menuOffset={menuOffset}\n $visible={menuVisible}\n $startLeft={startLeft}\n $menuZIndex={menuZIndex}\n $placeTop={placeTop}\n >\n <Styled.MenuElementWrapper $placeTop={placeTop}>{menuElement}</Styled.MenuElementWrapper>\n </Styled.OptionsMenuWrapper>\n </Styled.TargetElementWrapper>\n );\n },\n);\n\nexport default ContextMenu;\n"],"names":["ContextMenu","memo","targetElement","menuElement","menuOffset","startLeft","menuZIndex","placeTop","containerRef","useRef","menuVisible","onMenuClick","useContextMenuClickHandler","enhancedTargetElement","isValidElement","cloneElement","Styled.TargetElementWrapper","jsx","Styled.OptionsMenuWrapper","Styled.MenuElementWrapper","ContextMenu$1"],"mappings":";;;;AAQA,MAAMA,IAAqCC;AAAA,EACzC,CAAC,EAAE,eAAAC,GAAe,aAAAC,GAAa,YAAAC,GAAY,WAAAC,GAAW,YAAAC,GAAY,UAAAC,QAAe;AACzE,UAAAC,IAAeC,EAAuB,IAAI,GAE1C,EAAE,aAAAC,GAAa,aAAAC,EAAY,IAAIC,EAA2BJ,CAAY,GAEtEK,IAAwBC,EAAeZ,CAAa,IACtDa,EAAab,GAAgE;AAAA,MAC3E,aAAAQ;AAAA,IACD,CAAA,IACDR;AAEJ,6BACGc,GAAA,EAA4B,KAAKR,GAAc,SAASG,GACtD,UAAA;AAAA,MAAAE;AAAA,MAED,gBAAAI;AAAA,QAACC;AAAAA,QAAA;AAAA,UACC,aAAad;AAAA,UACb,UAAUM;AAAA,UACV,YAAYL;AAAA,UACZ,aAAaC;AAAA,UACb,WAAWC;AAAA,UAEX,4BAACY,GAAA,EAA0B,WAAWZ,GAAW,UAAYJ,GAAA;AAAA,QAAA;AAAA,MAC/D;AAAA,IACF,EAAA,CAAA;AAAA,EAEJ;AACF,GAEAiB,IAAepB;"}
1
+ {"version":3,"file":"context-menu.js","sources":["../../../../src/features/ui/context-menu/context-menu.tsx"],"sourcesContent":["import type { IContextMenuProps } from './context-menu-types';\nimport type { FC } from 'react';\n\nimport { memo, useRef } from 'react';\n\nimport useContextMenuClickHandler from '../hooks/use-context-menu-click-handler';\nimport * as Styled from './context-menu-styled';\n\nconst ContextMenu: FC<IContextMenuProps> = memo(\n ({\n targetElement,\n menuElement,\n menuOffset,\n startLeft,\n menuZIndex,\n placeTop,\n menuWidth,\n menuWidthX,\n handleOnMenuClick,\n }) => {\n const containerRef = useRef<HTMLDivElement>(null);\n\n const { menuVisible, onMenuClick } = useContextMenuClickHandler(\n containerRef,\n handleOnMenuClick,\n );\n\n return (\n <Styled.TargetElementWrapper ref={containerRef} onClick={onMenuClick}>\n {targetElement}\n\n <Styled.OptionsMenuWrapper\n $menuOffset={menuOffset}\n $visible={menuVisible}\n $startLeft={startLeft}\n $menuZIndex={menuZIndex}\n $placeTop={placeTop}\n $menuWidth={menuWidth}\n $menuWidthX={menuWidthX}\n >\n <Styled.MenuElementWrapper $placeTop={placeTop}>{menuElement}</Styled.MenuElementWrapper>\n </Styled.OptionsMenuWrapper>\n </Styled.TargetElementWrapper>\n );\n },\n);\n\nexport default ContextMenu;\n"],"names":["ContextMenu","memo","targetElement","menuElement","menuOffset","startLeft","menuZIndex","placeTop","menuWidth","menuWidthX","handleOnMenuClick","containerRef","useRef","menuVisible","onMenuClick","useContextMenuClickHandler","Styled.TargetElementWrapper","jsx","Styled.OptionsMenuWrapper","Styled.MenuElementWrapper","ContextMenu$1"],"mappings":";;;;AAQA,MAAMA,IAAqCC;AAAA,EACzC,CAAC;AAAA,IACC,eAAAC;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,mBAAAC;AAAA,EAAA,MACI;AACE,UAAAC,IAAeC,EAAuB,IAAI,GAE1C,EAAE,aAAAC,GAAa,aAAAC,EAAA,IAAgBC;AAAA,MACnCJ;AAAA,MACAD;AAAA,IAAA;AAGF,6BACGM,GAAA,EAA4B,KAAKL,GAAc,SAASG,GACtD,UAAA;AAAA,MAAAZ;AAAA,MAED,gBAAAe;AAAA,QAACC;AAAAA,QAAA;AAAA,UACC,aAAad;AAAA,UACb,UAAUS;AAAA,UACV,YAAYR;AAAA,UACZ,aAAaC;AAAA,UACb,WAAWC;AAAA,UACX,YAAYC;AAAA,UACZ,aAAaC;AAAA,UAEb,4BAACU,GAAA,EAA0B,WAAWZ,GAAW,UAAYJ,GAAA;AAAA,QAAA;AAAA,MAC/D;AAAA,IACF,EAAA,CAAA;AAAA,EAEJ;AACF,GAEAiB,IAAepB;"}
@@ -1,30 +1,30 @@
1
1
  import { jsxs as h, jsx as e } from "react/jsx-runtime";
2
2
  import { memo as g, useState as f } from "react";
3
3
  import t from "styled-components";
4
- import { skeletonLoadingAnimation as c } from "../constants/style.js";
4
+ import { skeletonLoadingAnimation as p } from "../constants/style.js";
5
5
  import i from "../layout/flex-view.js";
6
- const p = t(i)`
7
- animation: ${c} 2s linear infinite;
6
+ const L = t(i)`
7
+ animation: ${p} 2s linear infinite;
8
8
  position: absolute;
9
9
  left: 0;
10
10
  right: 0;
11
11
  top: 0;
12
12
  bottom: 0;
13
- `, L = t(i)`
13
+ `, c = t(i)`
14
14
  overflow: hidden;
15
15
  position: relative;
16
- `, u = g(
17
- ({ borderRadius: n = 0, borderColor: r, withLoader: a, ...o }) => {
16
+ `, v = g(
17
+ ({ borderRadius: r = 0, borderColor: n, withLoader: a, ...o }) => {
18
18
  const { width: s, height: d } = o, [m, l] = f(!0);
19
19
  return /* @__PURE__ */ h(
20
- L,
20
+ c,
21
21
  {
22
22
  $width: s,
23
23
  $height: d,
24
- $borderColor: r,
25
- $borderRadius: n,
24
+ $borderColor: n,
25
+ $borderRadius: r,
26
26
  children: [
27
- m && a && /* @__PURE__ */ e(p, { $inherit: !0 }),
27
+ m && a && /* @__PURE__ */ e(L, { $inherit: !0 }),
28
28
  /* @__PURE__ */ e("img", { onLoad: () => {
29
29
  l(!1);
30
30
  }, ...o })
@@ -32,8 +32,8 @@ const p = t(i)`
32
32
  }
33
33
  );
34
34
  }
35
- ), F = u;
35
+ );
36
36
  export {
37
- F as default
37
+ v as default
38
38
  };
39
39
  //# sourceMappingURL=image.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"image.js","sources":["../../../../src/features/ui/image/image.tsx"],"sourcesContent":["import type { IImageProps } from './image-types';\n\nimport { useState, memo } from 'react';\nimport styled from 'styled-components';\n\nimport { skeletonLoadingAnimation } from '../constants/style';\nimport FlexView from '../layout/flex-view';\n\nconst LoadingFlexView = styled(FlexView)`\n animation: ${skeletonLoadingAnimation} 2s linear infinite;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n`;\n\nconst ImageWrapper = styled(FlexView)`\n overflow: hidden;\n position: relative;\n`;\n\nconst Image: React.FC<IImageProps> = memo(\n ({ borderRadius = 0, borderColor, withLoader, ...props }) => {\n const { width, height } = props;\n const [isLoading, setIsLoading] = useState(true);\n const handleImgLoaded = () => {\n setIsLoading(false);\n };\n const showLoader = isLoading && withLoader;\n\n return (\n <ImageWrapper\n $width={width}\n $height={height}\n $borderColor={borderColor}\n $borderRadius={borderRadius}\n >\n {showLoader && <LoadingFlexView $inherit={true} />}\n <img onLoad={handleImgLoaded} {...props} />\n </ImageWrapper>\n );\n },\n);\n\nexport default Image;\n"],"names":["LoadingFlexView","styled","FlexView","skeletonLoadingAnimation","ImageWrapper","Image","memo","borderRadius","borderColor","withLoader","props","width","height","isLoading","setIsLoading","useState","jsxs","jsx","Image$1"],"mappings":";;;;;AAQA,MAAMA,IAAkBC,EAAOC,CAAQ;AAAA,eACxBC,CAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQjCC,IAAeH,EAAOC,CAAQ;AAAA;AAAA;AAAA,GAK9BG,IAA+BC;AAAA,EACnC,CAAC,EAAE,cAAAC,IAAe,GAAG,aAAAC,GAAa,YAAAC,GAAY,GAAGC,QAAY;AACrD,UAAA,EAAE,OAAAC,GAAO,QAAAC,EAAW,IAAAF,GACpB,CAACG,GAAWC,CAAY,IAAIC,EAAS,EAAI;AAO7C,WAAA,gBAAAC;AAAA,MAACZ;AAAA,MAAA;AAAA,QACC,QAAQO;AAAA,QACR,SAASC;AAAA,QACT,cAAcJ;AAAA,QACd,eAAeD;AAAA,QAEd,UAAA;AAAA,UATcM,KAAaJ,KASb,gBAAAQ,EAACjB,GAAgB,EAAA,UAAU,GAAM,CAAA;AAAA,UAC/C,gBAAAiB,EAAA,OAAA,EAAI,QAbe,MAAM;AAC5B,YAAAH,EAAa,EAAK;AAAA,UAAA,GAYe,GAAGJ,EAAO,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAG/C;AACF,GAEAQ,IAAeb;"}
1
+ {"version":3,"file":"image.js","sources":["../../../../src/features/ui/image/image.tsx"],"sourcesContent":["import type { IImageProps } from './image-types';\n\nimport { useState, memo } from 'react';\nimport styled from 'styled-components';\n\nimport { skeletonLoadingAnimation } from '../constants/style';\nimport FlexView from '../layout/flex-view';\n\nconst LoadingFlexView = styled(FlexView)`\n animation: ${skeletonLoadingAnimation} 2s linear infinite;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n`;\n\nconst ImageWrapper = styled(FlexView)`\n overflow: hidden;\n position: relative;\n`;\n\nconst Image: React.FC<IImageProps> = memo(\n ({ borderRadius = 0, borderColor, withLoader, ...props }) => {\n const { width, height } = props;\n const [isLoading, setIsLoading] = useState(true);\n const handleImgLoaded = () => {\n setIsLoading(false);\n };\n const showLoader = isLoading && withLoader;\n\n return (\n <ImageWrapper\n $width={width}\n $height={height}\n $borderColor={borderColor}\n $borderRadius={borderRadius}\n >\n {showLoader && <LoadingFlexView $inherit={true} />}\n <img onLoad={handleImgLoaded} {...props} />\n </ImageWrapper>\n );\n },\n);\n\nexport default Image;\n"],"names":["LoadingFlexView","styled","FlexView","skeletonLoadingAnimation","ImageWrapper","Image","memo","borderRadius","borderColor","withLoader","props","width","height","isLoading","setIsLoading","useState","jsxs","jsx"],"mappings":";;;;;AAQA,MAAMA,IAAkBC,EAAOC,CAAQ;AAAA,eACxBC,CAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQjCC,IAAeH,EAAOC,CAAQ;AAAA;AAAA;AAAA,GAK9BG,IAA+BC;AAAA,EACnC,CAAC,EAAE,cAAAC,IAAe,GAAG,aAAAC,GAAa,YAAAC,GAAY,GAAGC,QAAY;AACrD,UAAA,EAAE,OAAAC,GAAO,QAAAC,EAAW,IAAAF,GACpB,CAACG,GAAWC,CAAY,IAAIC,EAAS,EAAI;AAO7C,WAAA,gBAAAC;AAAA,MAACZ;AAAA,MAAA;AAAA,QACC,QAAQO;AAAA,QACR,SAASC;AAAA,QACT,cAAcJ;AAAA,QACd,eAAeD;AAAA,QAEd,UAAA;AAAA,UATcM,KAAaJ,KASb,gBAAAQ,EAACjB,GAAgB,EAAA,UAAU,GAAM,CAAA;AAAA,UAC/C,gBAAAiB,EAAA,OAAA,EAAI,QAbe,MAAM;AAC5B,YAAAH,EAAa,EAAK;AAAA,UAAA,GAYe,GAAGJ,EAAO,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAG/C;AACF;"}
@@ -1,14 +1,13 @@
1
- const o = /* @__PURE__ */ new Map(), h = async (t) => {
2
- if (o.has(t)) return o.get(t);
1
+ const c = async (o) => {
3
2
  let e = null;
4
3
  try {
5
- e = await fetch(t).then((n) => n.json()).catch(() => null), e && o.set(t, e);
6
- } catch (n) {
7
- console.log("Error while fetching the lottie: ", n);
4
+ e = await fetch(o).then((t) => t.json()).catch(() => null);
5
+ } catch (t) {
6
+ console.log("Error while fetching the lottie: ", t);
8
7
  }
9
8
  return e;
10
9
  };
11
10
  export {
12
- h as fetchLottie
11
+ c as fetchLottie
13
12
  };
14
13
  //# sourceMappingURL=helper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.js","sources":["../../../../src/features/ui/lottie-animation/helper.ts"],"sourcesContent":["import type { AnimationItem } from 'lottie-web';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst lottieCache = new Map<string, any>();\n\nexport const fetchLottie = async (lottieSrc: string): Promise<AnimationItem | null> => {\n if (lottieCache.has(lottieSrc)) return lottieCache.get(lottieSrc);\n\n let lottieJson: AnimationItem | null = null;\n\n try {\n lottieJson = await fetch(lottieSrc)\n .then(res => res.json())\n .catch(() => null);\n if (lottieJson) {\n lottieCache.set(lottieSrc, lottieJson);\n }\n } catch (error) {\n /* eslint-disable no-console */\n console.log('Error while fetching the lottie: ', error);\n }\n\n return lottieJson;\n};\n"],"names":["lottieCache","fetchLottie","lottieSrc","lottieJson","res","error"],"mappings":"AAGA,MAAMA,wBAAkB,OAEXC,IAAc,OAAOC,MAAqD;AACrF,MAAIF,EAAY,IAAIE,CAAS,EAAU,QAAAF,EAAY,IAAIE,CAAS;AAEhE,MAAIC,IAAmC;AAEnC,MAAA;AACF,IAAAA,IAAa,MAAM,MAAMD,CAAS,EAC/B,KAAK,CAAAE,MAAOA,EAAI,KAAA,CAAM,EACtB,MAAM,MAAM,IAAI,GACfD,KACUH,EAAA,IAAIE,GAAWC,CAAU;AAAA,WAEhCE,GAAO;AAEN,YAAA,IAAI,qCAAqCA,CAAK;AAAA,EACxD;AAEO,SAAAF;AACT;"}
1
+ {"version":3,"file":"helper.js","sources":["../../../../src/features/ui/lottie-animation/helper.ts"],"sourcesContent":["import type { AnimationItem } from 'lottie-web';\n\nexport const fetchLottie = async (lottieSrc: string): Promise<AnimationItem | null> => {\n let lottieJson: AnimationItem | null = null;\n\n try {\n lottieJson = await fetch(lottieSrc)\n .then(res => res.json())\n .catch(() => null);\n } catch (error) {\n /* eslint-disable no-console */\n console.log('Error while fetching the lottie: ', error);\n }\n\n return lottieJson;\n};\n"],"names":["fetchLottie","lottieSrc","lottieJson","res","error"],"mappings":"AAEa,MAAAA,IAAc,OAAOC,MAAqD;AACrF,MAAIC,IAAmC;AAEnC,MAAA;AACF,IAAAA,IAAa,MAAM,MAAMD,CAAS,EAC/B,KAAK,CAAAE,MAAOA,EAAI,KAAA,CAAM,EACtB,MAAM,MAAM,IAAI;AAAA,WACZC,GAAO;AAEN,YAAA,IAAI,qCAAqCA,CAAK;AAAA,EACxD;AAEO,SAAAF;AACT;"}
@@ -1,60 +1,51 @@
1
- import { jsx as E } from "react/jsx-runtime";
2
- import g from "lottie-web";
3
- import { memo as w, forwardRef as y, useRef as u, useImperativeHandle as b, useEffect as A } from "react";
1
+ import { jsx as L } from "react/jsx-runtime";
2
+ import w from "lottie-web";
3
+ import { memo as y, forwardRef as b, useRef as c, useImperativeHandle as A, useEffect as E } from "react";
4
4
  import I from "../layout/flex-view.js";
5
5
  import { fetchLottie as $ } from "./helper.js";
6
- const x = y((v, p) => {
6
+ const x = b((p, h) => {
7
7
  const {
8
- src: m,
9
- width: L = "100%",
10
- height: h = "100%",
11
- settings: l,
12
- eventListener: n,
13
- onRender: a,
14
- animateOnIntersect: c
15
- } = v, o = u(null), r = u(null), s = u(null);
16
- return b(
17
- p,
8
+ src: s,
9
+ width: v = "100%",
10
+ height: g = "100%",
11
+ settings: u,
12
+ eventListener: r,
13
+ onRender: i,
14
+ animateOnIntersect: o
15
+ } = p, n = c(null), t = c(null), a = c(null);
16
+ return A(
17
+ h,
18
18
  () => ({
19
- playSegments: (i, e) => {
20
- var t;
21
- return (t = r.current) == null ? void 0 : t.playSegments(i, e);
22
- },
23
- addEventListener: (i, e) => {
24
- var t;
25
- return (t = r.current) == null ? void 0 : t.addEventListener(i, e);
26
- },
27
- removeEventListener: (i, e) => {
28
- var t;
29
- return (t = r.current) == null ? void 0 : t.removeEventListener(i, e);
19
+ playSegments: (m, e) => {
20
+ t.current && t.current.playSegments(m, e);
30
21
  }
31
22
  }),
32
23
  []
33
- ), A(() => ((async () => {
24
+ ), E(() => ((async () => {
34
25
  try {
35
- const e = await $(m);
36
- o.current && (r.current = g.loadAnimation({
37
- container: o.current,
26
+ const e = await $(s);
27
+ n.current && (t.current = w.loadAnimation({
28
+ container: n.current,
38
29
  animationData: e,
39
30
  renderer: "svg",
40
31
  loop: !0,
41
32
  autoplay: !0,
42
- ...l
43
- }), c && (s.current = new IntersectionObserver(
44
- ([t]) => {
33
+ ...u
34
+ }), o && (a.current = new IntersectionObserver(
35
+ ([l]) => {
45
36
  var f, d;
46
- t && t.isIntersecting ? (f = r.current) == null || f.play() : (d = r.current) == null || d.pause();
37
+ l && l.isIntersecting ? (f = t.current) == null || f.play() : (d = t.current) == null || d.pause();
47
38
  },
48
39
  { threshold: 0 }
49
- ), o.current && s.current.observe(o.current)), a == null || a(), n && r.current.addEventListener(n.name, n.callback));
40
+ ), n.current && a.current.observe(n.current)), i == null || i(), r && t.current.addEventListener(r.name, r.callback));
50
41
  } catch (e) {
51
42
  throw Error(`Error loading Lottie animation: ${e}`);
52
43
  }
53
44
  })(), () => {
54
45
  var e;
55
- r.current && (n && r.current.removeEventListener(n.name, n.callback), c && ((e = s.current) == null || e.disconnect()), r.current.destroy());
56
- }), [m, n, a, c, l]), /* @__PURE__ */ E(I, { ref: o, $width: L, $height: h });
57
- }), F = w(x);
46
+ t.current && (r && t.current.removeEventListener(r.name, r.callback), o && ((e = a.current) == null || e.disconnect()), t.current.destroy());
47
+ }), [s, r, i, o, u]), /* @__PURE__ */ L(I, { ref: n, $width: v, $height: g });
48
+ }), F = y(x);
58
49
  export {
59
50
  F as default
60
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"lottie-animation.js","sources":["../../../../src/features/ui/lottie-animation/lottie-animation.tsx"],"sourcesContent":["import type { ILottieAnimationProps, ILottieAnimationRef } from './types';\nimport type { AnimationEventName, AnimationItem } from 'lottie-web';\n\nimport lottie from 'lottie-web';\nimport { forwardRef, memo, useEffect, useImperativeHandle, useRef } from 'react';\n\nimport FlexView from '../layout/flex-view';\nimport { fetchLottie } from './helper';\n\nconst LottieAnimation = forwardRef<ILottieAnimationRef, ILottieAnimationProps>((props, ref) => {\n const {\n src,\n width = '100%',\n height = '100%',\n settings,\n eventListener,\n onRender,\n animateOnIntersect,\n } = props;\n\n const container = useRef<HTMLDivElement>(null);\n const animationInstance = useRef<AnimationItem | null>(null);\n const intersectionObserver = useRef<IntersectionObserver | null>(null);\n\n useImperativeHandle(\n ref,\n () => ({\n playSegments: (segments: [number, number], forceFlag?: boolean) =>\n animationInstance.current?.playSegments(segments, forceFlag),\n addEventListener: (eventName: string, callback: () => void) =>\n animationInstance.current?.addEventListener(eventName as AnimationEventName, callback),\n removeEventListener: (eventName: string, callback: () => void) =>\n animationInstance.current?.removeEventListener(eventName as AnimationEventName, callback),\n }),\n [],\n );\n\n useEffect(() => {\n const loadAnimation = async () => {\n try {\n const animationData = await fetchLottie(src);\n\n if (container.current) {\n animationInstance.current = lottie.loadAnimation({\n container: container.current,\n animationData,\n renderer: 'svg',\n loop: true,\n autoplay: true,\n ...settings,\n });\n\n if (animateOnIntersect) {\n intersectionObserver.current = new IntersectionObserver(\n ([entry]) => {\n if (entry && entry.isIntersecting) {\n animationInstance.current?.play();\n } else {\n animationInstance.current?.pause();\n }\n },\n { threshold: 0 },\n );\n\n if (container.current) {\n intersectionObserver.current.observe(container.current);\n }\n }\n\n onRender?.();\n if (eventListener) {\n animationInstance.current.addEventListener(eventListener.name, eventListener.callback);\n }\n }\n } catch (error) {\n throw Error(`Error loading Lottie animation: ${error}`);\n }\n };\n\n loadAnimation();\n\n return () => {\n if (animationInstance.current) {\n if (eventListener) {\n animationInstance.current.removeEventListener(eventListener.name, eventListener.callback);\n }\n\n if (animateOnIntersect) {\n intersectionObserver.current?.disconnect();\n }\n animationInstance.current.destroy();\n }\n };\n }, [src, eventListener, onRender, animateOnIntersect, settings]);\n\n return <FlexView ref={container} $width={width} $height={height} />;\n});\n\nexport default memo(LottieAnimation);\n"],"names":["LottieAnimation","forwardRef","props","ref","src","width","height","settings","eventListener","onRender","animateOnIntersect","container","useRef","animationInstance","intersectionObserver","useImperativeHandle","segments","forceFlag","_a","eventName","callback","useEffect","animationData","fetchLottie","lottie","entry","_b","error","FlexView","LottieAnimation$1","memo"],"mappings":";;;;;AASA,MAAMA,IAAkBC,EAAuD,CAACC,GAAOC,MAAQ;AACvF,QAAA;AAAA,IACJ,KAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,QAAAC,IAAS;AAAA,IACT,UAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,oBAAAC;AAAA,EACE,IAAAR,GAEES,IAAYC,EAAuB,IAAI,GACvCC,IAAoBD,EAA6B,IAAI,GACrDE,IAAuBF,EAAoC,IAAI;AAErE,SAAAG;AAAA,IACEZ;AAAA,IACA,OAAO;AAAA,MACL,cAAc,CAACa,GAA4BC,MACzC;;AAAA,gBAAAC,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,aAAaF,GAAUC;AAAA;AAAA,MACpD,kBAAkB,CAACE,GAAmBC,MACpC;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,iBAAiBC,GAAiCC;AAAA;AAAA,MAC/E,qBAAqB,CAACD,GAAmBC,MACvC;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,oBAAoBC,GAAiCC;AAAA;AAAA,IAAQ;AAAA,IAE5F,CAAC;AAAA,EAAA,GAGHC,EAAU,QACc,YAAY;AAC5B,QAAA;AACI,YAAAC,IAAgB,MAAMC,EAAYnB,CAAG;AAE3C,MAAIO,EAAU,YACME,EAAA,UAAUW,EAAO,cAAc;AAAA,QAC/C,WAAWb,EAAU;AAAA,QACrB,eAAAW;AAAA,QACA,UAAU;AAAA,QACV,MAAM;AAAA,QACN,UAAU;AAAA,QACV,GAAGf;AAAA,MAAA,CACJ,GAEGG,MACFI,EAAqB,UAAU,IAAI;AAAA,QACjC,CAAC,CAACW,CAAK,MAAM;;AACP,UAAAA,KAASA,EAAM,kBACjBP,IAAAL,EAAkB,YAAlB,QAAAK,EAA2B,UAE3BQ,IAAAb,EAAkB,YAAlB,QAAAa,EAA2B;AAAA,QAE/B;AAAA,QACA,EAAE,WAAW,EAAE;AAAA,MAAA,GAGbf,EAAU,WACSG,EAAA,QAAQ,QAAQH,EAAU,OAAO,IAI/CF,KAAA,QAAAA,KACPD,KACFK,EAAkB,QAAQ,iBAAiBL,EAAc,MAAMA,EAAc,QAAQ;AAAA,aAGlFmB,GAAO;AACR,YAAA,MAAM,mCAAmCA,CAAK,EAAE;AAAA,IACxD;AAAA,EAAA,MAKK,MAAM;;AACX,IAAId,EAAkB,YAChBL,KACFK,EAAkB,QAAQ,oBAAoBL,EAAc,MAAMA,EAAc,QAAQ,GAGtFE,OACFQ,IAAAJ,EAAqB,YAArB,QAAAI,EAA8B,eAEhCL,EAAkB,QAAQ;EAC5B,IAED,CAACT,GAAKI,GAAeC,GAAUC,GAAoBH,CAAQ,CAAC,qBAEvDqB,GAAS,EAAA,KAAKjB,GAAW,QAAQN,GAAO,SAASC,EAAQ,CAAA;AACnE,CAAC,GAEcuB,IAAAC,EAAK9B,CAAe;"}
1
+ {"version":3,"file":"lottie-animation.js","sources":["../../../../src/features/ui/lottie-animation/lottie-animation.tsx"],"sourcesContent":["import type { ILottieAnimationProps, ILottieAnimationRef } from './types';\nimport type { AnimationItem, AnimationSegment } from 'lottie-web';\n\nimport lottie from 'lottie-web';\nimport { forwardRef, memo, useEffect, useImperativeHandle, useRef } from 'react';\n\nimport FlexView from '../layout/flex-view';\nimport { fetchLottie } from './helper';\n\nconst LottieAnimation = forwardRef<ILottieAnimationRef, ILottieAnimationProps>((props, ref) => {\n const {\n src,\n width = '100%',\n height = '100%',\n settings,\n eventListener,\n onRender,\n animateOnIntersect,\n } = props;\n\n const container = useRef<HTMLDivElement>(null);\n const animationInstance = useRef<AnimationItem | null>(null);\n const intersectionObserver = useRef<IntersectionObserver | null>(null);\n\n useImperativeHandle(\n ref,\n () => ({\n playSegments: (segments: AnimationSegment, forceFlag?: boolean) => {\n if (animationInstance.current) {\n animationInstance.current.playSegments(segments, forceFlag);\n }\n },\n }),\n [],\n );\n\n useEffect(() => {\n const loadAnimation = async () => {\n try {\n const animationData = await fetchLottie(src);\n\n if (container.current) {\n animationInstance.current = lottie.loadAnimation({\n container: container.current,\n animationData,\n renderer: 'svg',\n loop: true,\n autoplay: true,\n ...settings,\n });\n\n if (animateOnIntersect) {\n intersectionObserver.current = new IntersectionObserver(\n ([entry]) => {\n if (entry && entry.isIntersecting) {\n animationInstance.current?.play();\n } else {\n animationInstance.current?.pause();\n }\n },\n { threshold: 0 },\n );\n\n if (container.current) {\n intersectionObserver.current.observe(container.current);\n }\n }\n\n onRender?.();\n if (eventListener) {\n animationInstance.current.addEventListener(eventListener.name, eventListener.callback);\n }\n }\n } catch (error) {\n throw Error(`Error loading Lottie animation: ${error}`);\n }\n };\n\n loadAnimation();\n\n return () => {\n if (animationInstance.current) {\n if (eventListener) {\n animationInstance.current.removeEventListener(eventListener.name, eventListener.callback);\n }\n\n if (animateOnIntersect) {\n intersectionObserver.current?.disconnect();\n }\n animationInstance.current.destroy();\n }\n };\n }, [src, eventListener, onRender, animateOnIntersect, settings]);\n\n return <FlexView ref={container} $width={width} $height={height} />;\n});\n\nexport default memo(LottieAnimation);\n"],"names":["LottieAnimation","forwardRef","props","ref","src","width","height","settings","eventListener","onRender","animateOnIntersect","container","useRef","animationInstance","intersectionObserver","useImperativeHandle","segments","forceFlag","useEffect","animationData","fetchLottie","lottie","entry","_a","_b","error","FlexView","LottieAnimation$1","memo"],"mappings":";;;;;AASA,MAAMA,IAAkBC,EAAuD,CAACC,GAAOC,MAAQ;AACvF,QAAA;AAAA,IACJ,KAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,QAAAC,IAAS;AAAA,IACT,UAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,oBAAAC;AAAA,EACE,IAAAR,GAEES,IAAYC,EAAuB,IAAI,GACvCC,IAAoBD,EAA6B,IAAI,GACrDE,IAAuBF,EAAoC,IAAI;AAErE,SAAAG;AAAA,IACEZ;AAAA,IACA,OAAO;AAAA,MACL,cAAc,CAACa,GAA4BC,MAAwB;AACjE,QAAIJ,EAAkB,WACFA,EAAA,QAAQ,aAAaG,GAAUC,CAAS;AAAA,MAE9D;AAAA,IAAA;AAAA,IAEF,CAAC;AAAA,EAAA,GAGHC,EAAU,QACc,YAAY;AAC5B,QAAA;AACI,YAAAC,IAAgB,MAAMC,EAAYhB,CAAG;AAE3C,MAAIO,EAAU,YACME,EAAA,UAAUQ,EAAO,cAAc;AAAA,QAC/C,WAAWV,EAAU;AAAA,QACrB,eAAAQ;AAAA,QACA,UAAU;AAAA,QACV,MAAM;AAAA,QACN,UAAU;AAAA,QACV,GAAGZ;AAAA,MAAA,CACJ,GAEGG,MACFI,EAAqB,UAAU,IAAI;AAAA,QACjC,CAAC,CAACQ,CAAK,MAAM;;AACP,UAAAA,KAASA,EAAM,kBACjBC,IAAAV,EAAkB,YAAlB,QAAAU,EAA2B,UAE3BC,IAAAX,EAAkB,YAAlB,QAAAW,EAA2B;AAAA,QAE/B;AAAA,QACA,EAAE,WAAW,EAAE;AAAA,MAAA,GAGbb,EAAU,WACSG,EAAA,QAAQ,QAAQH,EAAU,OAAO,IAI/CF,KAAA,QAAAA,KACPD,KACFK,EAAkB,QAAQ,iBAAiBL,EAAc,MAAMA,EAAc,QAAQ;AAAA,aAGlFiB,GAAO;AACR,YAAA,MAAM,mCAAmCA,CAAK,EAAE;AAAA,IACxD;AAAA,EAAA,MAKK,MAAM;;AACX,IAAIZ,EAAkB,YAChBL,KACFK,EAAkB,QAAQ,oBAAoBL,EAAc,MAAMA,EAAc,QAAQ,GAGtFE,OACFa,IAAAT,EAAqB,YAArB,QAAAS,EAA8B,eAEhCV,EAAkB,QAAQ;EAC5B,IAED,CAACT,GAAKI,GAAeC,GAAUC,GAAoBH,CAAQ,CAAC,qBAEvDmB,GAAS,EAAA,KAAKf,GAAW,QAAQN,GAAO,SAASC,EAAQ,CAAA;AACnE,CAAC,GAEcqB,IAAAC,EAAK5B,CAAe;"}