@cuemath/leap 3.2.14-as1 → 3.2.14-m

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/assets/lottie/lottie.js +1 -1
  2. package/dist/assets/lottie/lottie.js.map +1 -1
  3. package/dist/features/auth/account-selector/account-selector.js +25 -26
  4. package/dist/features/auth/account-selector/account-selector.js.map +1 -1
  5. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +14 -15
  6. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
  7. package/dist/features/auth/comps/user-list/user-item/user-item.js +31 -30
  8. package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
  9. package/dist/features/auth/comps/user-list/user-list.js +34 -35
  10. package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
  11. package/dist/features/auth/forgot-password/forgot-password-styled.js +15 -14
  12. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
  13. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +7 -6
  14. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
  15. package/dist/features/auth/login/login-styled.js +9 -8
  16. package/dist/features/auth/login/login-styled.js.map +1 -1
  17. package/dist/features/chapters-v2/utils/node-card-utils.js +7 -7
  18. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
  19. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +98 -121
  20. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
  21. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +28 -29
  22. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +1 -1
  23. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +42 -43
  24. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -1
  25. package/dist/features/circle-games/games/tutorial/tutorial.js +35 -43
  26. package/dist/features/circle-games/games/tutorial/tutorial.js.map +1 -1
  27. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js +2 -2
  28. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js.map +1 -1
  29. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js +1 -1
  30. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js.map +1 -1
  31. package/dist/features/circle-games/sign-up/comp/username-input/username-input.js +24 -26
  32. package/dist/features/circle-games/sign-up/comp/username-input/username-input.js.map +1 -1
  33. package/dist/features/circle-games/sign-up/constants.js +1 -3
  34. package/dist/features/circle-games/sign-up/constants.js.map +1 -1
  35. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js +42 -42
  36. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js.map +1 -1
  37. package/dist/features/hooks/use-viewport/use-viewport.js +22 -0
  38. package/dist/features/hooks/use-viewport/use-viewport.js.map +1 -0
  39. package/dist/features/journey/comps/coachmark/coachmark.js +27 -29
  40. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  41. package/dist/features/journey/journey-id/journey-id-student.js +2 -2
  42. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  43. package/dist/features/journey/use-journey/journey-context-provider.js +72 -73
  44. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  45. package/dist/features/journey/use-journey/journey-styled.js +4 -6
  46. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  47. package/dist/features/stickers/sticker-data.js +231 -0
  48. package/dist/features/stickers/sticker-data.js.map +1 -0
  49. package/dist/features/{ui/sticker-grid/sticker-grid-styles.js → stickers/sticker-selector/sticker-selector-styles.js} +1 -1
  50. package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +1 -0
  51. package/dist/features/stickers/sticker-selector/sticker-selector.js +25 -0
  52. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -0
  53. package/dist/features/{ui/sticker-grid → stickers/sticker-selector}/sticker.js +9 -9
  54. package/dist/features/stickers/sticker-selector/sticker.js.map +1 -0
  55. package/dist/features/{ui/stickers/stickers-effects.js → stickers/stickers-effects/effects.js} +6 -6
  56. package/dist/features/stickers/stickers-effects/effects.js.map +1 -0
  57. package/dist/features/{ui/stickers/stickers-styled.js → stickers/stickers-effects/stickers-effects-styled.js} +2 -2
  58. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -0
  59. package/dist/features/{ui/stickers/stickers-utils.js → stickers/stickers-effects/stickers-effects-utils.js} +6 -6
  60. package/dist/features/stickers/stickers-effects/stickers-effects-utils.js.map +1 -0
  61. package/dist/features/stickers/stickers-effects/stickers-effects.js +39 -0
  62. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -0
  63. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +60 -12
  64. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
  65. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +77 -72
  66. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  67. package/dist/features/ui/error/error.js +27 -65
  68. package/dist/features/ui/error/error.js.map +1 -1
  69. package/dist/features/ui/inputs/checkbox-input/checkbox-input.js +21 -21
  70. package/dist/features/ui/inputs/checkbox-input/checkbox-input.js.map +1 -1
  71. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js +5 -5
  72. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js.map +1 -1
  73. package/dist/features/ui/modals/modal-styled.js +58 -34
  74. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  75. package/dist/features/ui/modals/modal.js +14 -40
  76. package/dist/features/ui/modals/modal.js.map +1 -1
  77. package/dist/features/ui/nudge/nudge-styled.js +7 -14
  78. package/dist/features/ui/nudge/nudge-styled.js.map +1 -1
  79. package/dist/features/ui/nudge/nudge.js +12 -13
  80. package/dist/features/ui/nudge/nudge.js.map +1 -1
  81. package/dist/features/ui/streak-icon/streak-icon-styled.js +13 -13
  82. package/dist/features/ui/streak-icon/streak-icon-styled.js.map +1 -1
  83. package/dist/features/ui/streak-icon/streak-icon.js +15 -17
  84. package/dist/features/ui/streak-icon/streak-icon.js.map +1 -1
  85. package/dist/features/ui/text/text.js +36 -40
  86. package/dist/features/ui/text/text.js.map +1 -1
  87. package/dist/features/ui/theme/constants.js +2 -4
  88. package/dist/features/ui/theme/constants.js.map +1 -1
  89. package/dist/features/ui/theme/get-device.js +3 -3
  90. package/dist/features/ui/theme/get-device.js.map +1 -1
  91. package/dist/features/worksheet/worksheet/constants.js +13 -12
  92. package/dist/features/worksheet/worksheet/constants.js.map +1 -1
  93. package/dist/features/worksheet/worksheet/worksheet-helpers.js +31 -32
  94. package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
  95. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +24 -24
  96. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  97. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +260 -246
  98. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  99. package/dist/features/worksheet/worksheet/worksheet-styled.js +28 -37
  100. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  101. package/dist/features/worksheet/worksheet/worksheet.js +164 -166
  102. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  103. package/dist/index.d.ts +52 -43
  104. package/dist/index.js +525 -526
  105. package/dist/index.js.map +1 -1
  106. package/dist/static/nudge-tap.5cb30093.json +1057 -0
  107. package/package.json +1 -1
  108. package/dist/assets/line-icons/icons/hint-fill.js +0 -35
  109. package/dist/assets/line-icons/icons/hint-fill.js.map +0 -1
  110. package/dist/features/puzzles/app/puzzle-app-styled.js +0 -81
  111. package/dist/features/puzzles/app/puzzle-app-styled.js.map +0 -1
  112. package/dist/features/puzzles/app/puzzle-app-view.js +0 -120
  113. package/dist/features/puzzles/app/puzzle-app-view.js.map +0 -1
  114. package/dist/features/puzzles/app/puzzle-app.js +0 -82
  115. package/dist/features/puzzles/app/puzzle-app.js.map +0 -1
  116. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js +0 -6
  117. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js.map +0 -1
  118. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js +0 -63
  119. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js.map +0 -1
  120. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +0 -21
  121. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +0 -1
  122. package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +0 -1
  123. package/dist/features/ui/sticker-grid/sticker-grid.js +0 -24
  124. package/dist/features/ui/sticker-grid/sticker-grid.js.map +0 -1
  125. package/dist/features/ui/sticker-grid/sticker.js.map +0 -1
  126. package/dist/features/ui/stickers/constants.js +0 -6
  127. package/dist/features/ui/stickers/constants.js.map +0 -1
  128. package/dist/features/ui/stickers/stickers-effects.js.map +0 -1
  129. package/dist/features/ui/stickers/stickers-styled.js.map +0 -1
  130. package/dist/features/ui/stickers/stickers-utils.js.map +0 -1
  131. package/dist/features/ui/stickers/stickers.js +0 -40
  132. package/dist/features/ui/stickers/stickers.js.map +0 -1
  133. package/dist/features/worksheet/worksheet/mocks/activity.js +0 -6
  134. package/dist/features/worksheet/worksheet/mocks/activity.js.map +0 -1
  135. package/dist/features/worksheet/worksheet/mocks/behaviors/assessment.js +0 -38
  136. package/dist/features/worksheet/worksheet/mocks/behaviors/assessment.js.map +0 -1
  137. package/dist/features/worksheet/worksheet/mocks/behaviors/chapter_assessment.js +0 -38
  138. package/dist/features/worksheet/worksheet/mocks/behaviors/chapter_assessment.js.map +0 -1
  139. package/dist/features/worksheet/worksheet/mocks/behaviors/diagnostic.js +0 -38
  140. package/dist/features/worksheet/worksheet/mocks/behaviors/diagnostic.js.map +0 -1
  141. package/dist/features/worksheet/worksheet/mocks/behaviors/dynamic.js +0 -38
  142. package/dist/features/worksheet/worksheet/mocks/behaviors/dynamic.js.map +0 -1
  143. package/dist/features/worksheet/worksheet/mocks/behaviors/extra_practice.js +0 -38
  144. package/dist/features/worksheet/worksheet/mocks/behaviors/extra_practice.js.map +0 -1
  145. package/dist/features/worksheet/worksheet/mocks/behaviors/index.js +0 -95
  146. package/dist/features/worksheet/worksheet/mocks/behaviors/index.js.map +0 -1
  147. package/dist/features/worksheet/worksheet/mocks/behaviors/learning-v3.js +0 -38
  148. package/dist/features/worksheet/worksheet/mocks/behaviors/learning-v3.js.map +0 -1
  149. package/dist/features/worksheet/worksheet/mocks/behaviors/learning.js +0 -38
  150. package/dist/features/worksheet/worksheet/mocks/behaviors/learning.js.map +0 -1
  151. package/dist/features/worksheet/worksheet/mocks/behaviors/legacy.js +0 -38
  152. package/dist/features/worksheet/worksheet/mocks/behaviors/legacy.js.map +0 -1
  153. package/dist/features/worksheet/worksheet/mocks/behaviors/level2.js +0 -38
  154. package/dist/features/worksheet/worksheet/mocks/behaviors/level2.js.map +0 -1
  155. package/dist/features/worksheet/worksheet/mocks/behaviors/level3.js +0 -38
  156. package/dist/features/worksheet/worksheet/mocks/behaviors/level3.js.map +0 -1
  157. package/dist/features/worksheet/worksheet/mocks/behaviors/mastery.js +0 -41
  158. package/dist/features/worksheet/worksheet/mocks/behaviors/mastery.js.map +0 -1
  159. package/dist/features/worksheet/worksheet/mocks/behaviors/practice.js +0 -38
  160. package/dist/features/worksheet/worksheet/mocks/behaviors/practice.js.map +0 -1
  161. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle-card.js +0 -39
  162. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle-card.js.map +0 -1
  163. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle_easy.js +0 -39
  164. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle_easy.js.map +0 -1
  165. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle_hard.js +0 -39
  166. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle_hard.js.map +0 -1
  167. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle_medium.js +0 -39
  168. package/dist/features/worksheet/worksheet/mocks/behaviors/puzzle_medium.js.map +0 -1
  169. package/dist/features/worksheet/worksheet/mocks/behaviors/recap.js +0 -39
  170. package/dist/features/worksheet/worksheet/mocks/behaviors/recap.js.map +0 -1
  171. package/dist/features/worksheet/worksheet/mocks/behaviors/remedial.js +0 -39
  172. package/dist/features/worksheet/worksheet/mocks/behaviors/remedial.js.map +0 -1
  173. package/dist/features/worksheet/worksheet/mocks/behaviors/revision.js +0 -38
  174. package/dist/features/worksheet/worksheet/mocks/behaviors/revision.js.map +0 -1
  175. package/dist/features/worksheet/worksheet/mocks/behaviors/sat-math-assessment.js +0 -38
  176. package/dist/features/worksheet/worksheet/mocks/behaviors/sat-math-assessment.js.map +0 -1
  177. package/dist/features/worksheet/worksheet/mocks/behaviors/sat_english_learning.js +0 -38
  178. package/dist/features/worksheet/worksheet/mocks/behaviors/sat_english_learning.js.map +0 -1
  179. package/dist/features/worksheet/worksheet/mocks/behaviors/sat_math_learning.js +0 -38
  180. package/dist/features/worksheet/worksheet/mocks/behaviors/sat_math_learning.js.map +0 -1
  181. package/dist/features/worksheet/worksheet/mocks/behaviors/sat_math_recap.js +0 -39
  182. package/dist/features/worksheet/worksheet/mocks/behaviors/sat_math_recap.js.map +0 -1
  183. package/dist/features/worksheet/worksheet/mocks/behaviors/target_practice.js +0 -38
  184. package/dist/features/worksheet/worksheet/mocks/behaviors/target_practice.js.map +0 -1
  185. package/dist/features/worksheet/worksheet/mocks/behaviors/trial-diagnostic-v2.js +0 -38
  186. package/dist/features/worksheet/worksheet/mocks/behaviors/trial-diagnostic-v2.js.map +0 -1
  187. package/dist/features/worksheet/worksheet/mocks/behaviors/trial-diagnostic.js +0 -38
  188. package/dist/features/worksheet/worksheet/mocks/behaviors/trial-diagnostic.js.map +0 -1
  189. package/dist/features/worksheet/worksheet/mocks/behaviors/turing_assessment.js +0 -38
  190. package/dist/features/worksheet/worksheet/mocks/behaviors/turing_assessment.js.map +0 -1
  191. package/dist/features/worksheet/worksheet/mocks/behaviors/turing_practice.js +0 -38
  192. package/dist/features/worksheet/worksheet/mocks/behaviors/turing_practice.js.map +0 -1
  193. package/dist/features/worksheet/worksheet/mocks/signed-requests.js +0 -5
  194. package/dist/features/worksheet/worksheet/mocks/signed-requests.js.map +0 -1
  195. package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js +0 -57
  196. package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js.map +0 -1
  197. package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js +0 -231
  198. package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js.map +0 -1
  199. package/dist/features/worksheet/worksheet/stories/worksheet-student.js +0 -174
  200. package/dist/features/worksheet/worksheet/stories/worksheet-student.js.map +0 -1
  201. package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js +0 -255
  202. package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js.map +0 -1
  203. package/dist/static/nudge-tap.0591aef4.json +0 -1
  204. package/dist/types/models/worksheet.js +0 -5
  205. package/dist/types/models/worksheet.js.map +0 -1
@@ -1,18 +1,17 @@
1
- import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
- import { memo as n } from "react";
1
+ import { jsxs as n, jsx as t } from "react/jsx-runtime";
3
2
  import { LOTTIE as d } from "../../../assets/lottie/lottie.js";
4
- import p from "../lottie-animation/lottie-animation.js";
5
- import { NudgeWrapper as f, NudgeLottieContainer as s } from "./nudge-styled.js";
6
- const u = ({
7
- content: o,
8
- nudgePointerX: r = 0,
9
- nudgePointerY: e = 0,
3
+ import m from "../lottie-animation/lottie-animation.js";
4
+ import { NudgeWrapper as p, NudgeLottieContainer as s } from "./nudge-styled.js";
5
+ const f = ({
6
+ content: r,
7
+ nudgePointerX: e = 0,
8
+ nudgePointerY: o = 0,
10
9
  zIndex: i = 100
11
- }) => /* @__PURE__ */ m(f, { $top: e, $left: r, $zIndex: i, children: [
12
- /* @__PURE__ */ t(s, { $height: 60, $width: 60, children: /* @__PURE__ */ t(p, { src: d.NUDGE_TAP }) }),
13
- o
14
- ] }), N = n(u);
10
+ }) => /* @__PURE__ */ n(p, { $top: o, $left: e, $zIndex: i, children: [
11
+ /* @__PURE__ */ t(s, { $height: 64, $width: 64, children: /* @__PURE__ */ t(m, { src: d.NUDGE_TAP }) }),
12
+ r
13
+ ] }), g = f;
15
14
  export {
16
- N as default
15
+ g as default
17
16
  };
18
17
  //# sourceMappingURL=nudge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nudge.js","sources":["../../../../src/features/ui/nudge/nudge.tsx"],"sourcesContent":["import type { INudgeProps } from './nudge-types';\n\nimport React, { memo } from 'react';\n\nimport { LOTTIE } from '../../../assets/lottie/lottie';\nimport LottieAnimation from '../lottie-animation/lottie-animation';\nimport * as S from './nudge-styled';\n\nconst Nudge: React.FC<INudgeProps> = ({\n content,\n nudgePointerX = 0,\n nudgePointerY = 0,\n zIndex = 100,\n}) => {\n return (\n <S.NudgeWrapper $top={nudgePointerY} $left={nudgePointerX} $zIndex={zIndex}>\n <S.NudgeLottieContainer $height={60} $width={60}>\n <LottieAnimation src={LOTTIE.NUDGE_TAP} />\n </S.NudgeLottieContainer>\n {content}\n </S.NudgeWrapper>\n );\n};\n\nexport default memo(Nudge);\n"],"names":["Nudge","content","nudgePointerX","nudgePointerY","zIndex","jsxs","S.NudgeWrapper","jsx","S.NudgeLottieContainer","LottieAnimation","LOTTIE","Nudge$1","memo"],"mappings":";;;;;AAQA,MAAMA,IAA+B,CAAC;AAAA,EACpC,SAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,eAAAC,IAAgB;AAAA,EAChB,QAAAC,IAAS;AACX,MAEI,gBAAAC,EAACC,GAAA,EAAe,MAAMH,GAAe,OAAOD,GAAe,SAASE,GAClE,UAAA;AAAA,EAAA,gBAAAG,EAACC,GAAA,EAAuB,SAAS,IAAI,QAAQ,IAC3C,UAAA,gBAAAD,EAACE,GAAgB,EAAA,KAAKC,EAAO,UAAA,CAAW,EAC1C,CAAA;AAAA,EACCT;AACH,EAAA,CAAA,GAIWU,IAAAC,EAAKZ,CAAK;"}
1
+ {"version":3,"file":"nudge.js","sources":["../../../../src/features/ui/nudge/nudge.tsx"],"sourcesContent":["import type { INudgeProps } from './nudge-types';\n\nimport React from 'react';\n\nimport { LOTTIE } from '../../../assets/lottie/lottie';\nimport LottieAnimation from '../lottie-animation/lottie-animation';\nimport * as S from './nudge-styled';\n\nconst Nudge: React.FC<INudgeProps> = ({\n content,\n nudgePointerX = 0,\n nudgePointerY = 0,\n zIndex = 100,\n}) => {\n return (\n <S.NudgeWrapper $top={nudgePointerY} $left={nudgePointerX} $zIndex={zIndex}>\n <S.NudgeLottieContainer $height={64} $width={64}>\n <LottieAnimation src={LOTTIE.NUDGE_TAP} />\n </S.NudgeLottieContainer>\n {content}\n </S.NudgeWrapper>\n );\n};\n\nexport default Nudge;\n"],"names":["Nudge","content","nudgePointerX","nudgePointerY","zIndex","jsxs","S.NudgeWrapper","jsx","S.NudgeLottieContainer","LottieAnimation","LOTTIE","Nudge$1"],"mappings":";;;;AAQA,MAAMA,IAA+B,CAAC;AAAA,EACpC,SAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,eAAAC,IAAgB;AAAA,EAChB,QAAAC,IAAS;AACX,MAEI,gBAAAC,EAACC,GAAA,EAAe,MAAMH,GAAe,OAAOD,GAAe,SAASE,GAClE,UAAA;AAAA,EAAA,gBAAAG,EAACC,GAAA,EAAuB,SAAS,IAAI,QAAQ,IAC3C,UAAA,gBAAAD,EAACE,GAAgB,EAAA,KAAKC,EAAO,UAAA,CAAW,EAC1C,CAAA;AAAA,EACCT;AACH,EAAA,CAAA,GAIJU,IAAeX;"}
@@ -1,4 +1,4 @@
1
- import i, { keyframes as o } from "styled-components";
1
+ import t, { keyframes as o } from "styled-components";
2
2
  const n = o`
3
3
  66%{
4
4
  opacity: 0;
@@ -6,29 +6,29 @@ const n = o`
6
6
  33%{
7
7
  opacity: 1;
8
8
  }
9
- `, a = i.div`
9
+ `, a = t.div`
10
10
  height: 32px;
11
11
  width: 32px;
12
12
  display: flex;
13
13
  align-items: center;
14
14
  justify-content: center;
15
15
  position: relative;
16
- cursor: ${({ isInteractive: t }) => t ? "pointer" : "default"};
17
- `, s = i.div`
16
+ cursor: pointer;
17
+ `, s = t.div`
18
18
  height: 90%;
19
19
  width: 90%;
20
20
  position: absolute;
21
- background: ${({ theme: t }) => t.colors.BLACK_1};
21
+ background: ${({ theme: i }) => i.colors.BLACK_1};
22
22
  border-radius: 24px;
23
- `, d = i.div`
23
+ `, d = t.div`
24
24
  height: 90%;
25
25
  width: 90%;
26
26
  position: absolute;
27
- background: ${({ theme: t }) => t.colors.RED};
27
+ background: ${({ theme: i }) => i.colors.RED};
28
28
  border-radius: 32px;
29
29
  animation: ${n}
30
- ${({ $blinkDelay: t, $blinkDuration: e }) => `${e + t}ms linear infinite`};
31
- `, c = i.div`
30
+ ${({ $blinkDelay: i, $blinkDuration: e }) => `${e + i}ms linear infinite`};
31
+ `, c = t.div`
32
32
  height: 100%;
33
33
  width: 100%;
34
34
  display: flex;
@@ -38,22 +38,22 @@ const n = o`
38
38
  align-self: center;
39
39
  padding-top: 6px;
40
40
  z-index: 1;
41
- `, l = i.div`
41
+ `, p = t.div`
42
42
  position: absolute;
43
43
  top: 0;
44
44
  left: 0;
45
45
  bottom: 0;
46
46
  right: 0;
47
- `, p = i.img`
47
+ `, l = t.img`
48
48
  width: 100%;
49
49
  height: 100%;
50
50
  `;
51
51
  export {
52
52
  d as StreakBg,
53
53
  c as StreakContent,
54
- l as StreakImg,
54
+ p as StreakImg,
55
55
  s as StreakStaticBg,
56
56
  a as StreakWrapper,
57
- p as StyledImg
57
+ l as StyledImg
58
58
  };
59
59
  //# sourceMappingURL=streak-icon-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"streak-icon-styled.js","sources":["../../../../src/features/ui/streak-icon/streak-icon-styled.tsx"],"sourcesContent":["import type { IStreakWrapperProps } from './streak-icon-types';\n\nimport styled, { keyframes } from 'styled-components';\n\nconst fadeInFadeOut = keyframes`\n66%{\n opacity: 0;\n}\n33%{\n opacity: 1;\n}\n`;\n\nexport const StreakWrapper = styled.div<IStreakWrapperProps>`\n height: 32px;\n width: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n cursor: ${({ isInteractive }) => (isInteractive ? 'pointer' : 'default')};\n`;\n\nexport const StreakStaticBg = styled.div`\n height: 90%;\n width: 90%;\n position: absolute;\n background: ${({ theme }) => theme.colors.BLACK_1};\n border-radius: 24px;\n`;\n\nexport const StreakBg = styled.div<{ $blinkDuration: number; $blinkDelay: number }>`\n height: 90%;\n width: 90%;\n position: absolute;\n background: ${({ theme }) => theme.colors.RED};\n border-radius: 32px;\n animation: ${fadeInFadeOut}\n ${({ $blinkDelay, $blinkDuration }) => `${$blinkDuration + $blinkDelay}ms linear infinite`};\n`;\n\nexport const StreakContent = styled.div`\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n align-self: center;\n padding-top: 6px;\n z-index: 1;\n`;\n\nexport const StreakImg = styled.div`\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n`;\n\nexport const StyledImg = styled.img`\n width: 100%;\n height: 100%;\n`;\n"],"names":["fadeInFadeOut","keyframes","StreakWrapper","styled","isInteractive","StreakStaticBg","theme","StreakBg","$blinkDelay","$blinkDuration","StreakContent","StreakImg","StyledImg"],"mappings":";AAIA,MAAMA,IAAgBC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASTC,IAAgBC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAOxB,CAAC,EAAE,eAAAC,EAAA,MAAqBA,IAAgB,YAAY,SAAU;AAAA,GAG7DC,IAAiBF,EAAO;AAAA;AAAA;AAAA;AAAA,gBAIrB,CAAC,EAAE,OAAAG,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA,GAItCC,IAAWJ,EAAO;AAAA;AAAA;AAAA;AAAA,gBAIf,CAAC,EAAE,OAAAG,EAAA,MAAYA,EAAM,OAAO,GAAG;AAAA;AAAA,eAEhCN,CAAa;AAAA,MACtB,CAAC,EAAE,aAAAQ,GAAa,gBAAAC,QAAqB,GAAGA,IAAiBD,CAAW,oBAAoB;AAAA,GAGjFE,IAAgBP,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAYvBQ,IAAYR,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQnBS,IAAYT,EAAO;AAAA;AAAA;AAAA;"}
1
+ {"version":3,"file":"streak-icon-styled.js","sources":["../../../../src/features/ui/streak-icon/streak-icon-styled.tsx"],"sourcesContent":["import styled, { keyframes } from 'styled-components';\n\nconst fadeInFadeOut = keyframes`\n66%{\n opacity: 0;\n}\n33%{\n opacity: 1;\n}\n`;\n\nexport const StreakWrapper = styled.div`\n height: 32px;\n width: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n cursor: pointer;\n`;\n\nexport const StreakStaticBg = styled.div`\n height: 90%;\n width: 90%;\n position: absolute;\n background: ${({ theme }) => theme.colors.BLACK_1};\n border-radius: 24px;\n`;\n\nexport const StreakBg = styled.div<{ $blinkDuration: number; $blinkDelay: number }>`\n height: 90%;\n width: 90%;\n position: absolute;\n background: ${({ theme }) => theme.colors.RED};\n border-radius: 32px;\n animation: ${fadeInFadeOut}\n ${({ $blinkDelay, $blinkDuration }) => `${$blinkDuration + $blinkDelay}ms linear infinite`};\n`;\n\nexport const StreakContent = styled.div`\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n align-self: center;\n padding-top: 6px;\n z-index: 1;\n`;\n\nexport const StreakImg = styled.div`\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n`;\n\nexport const StyledImg = styled.img`\n width: 100%;\n height: 100%;\n`;\n"],"names":["fadeInFadeOut","keyframes","StreakWrapper","styled","StreakStaticBg","theme","StreakBg","$blinkDelay","$blinkDuration","StreakContent","StreakImg","StyledImg"],"mappings":";AAEA,MAAMA,IAAgBC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASTC,IAAgBC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAUvBC,IAAiBD,EAAO;AAAA;AAAA;AAAA;AAAA,gBAIrB,CAAC,EAAE,OAAAE,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA,GAItCC,IAAWH,EAAO;AAAA;AAAA;AAAA;AAAA,gBAIf,CAAC,EAAE,OAAAE,EAAA,MAAYA,EAAM,OAAO,GAAG;AAAA;AAAA,eAEhCL,CAAa;AAAA,MACtB,CAAC,EAAE,aAAAO,GAAa,gBAAAC,QAAqB,GAAGA,IAAiBD,CAAW,oBAAoB;AAAA,GAGjFE,IAAgBN,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAYvBO,IAAYP,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQnBQ,IAAYR,EAAO;AAAA;AAAA;AAAA;"}
@@ -1,22 +1,20 @@
1
1
  import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
- import { memo as i } from "react";
3
- import S from "../../../assets/illustrations/streak-green.svg.js";
4
- import l from "../../../assets/illustrations/streak-white.svg.js";
5
- import c from "../text/text.js";
6
- import { BLINK_DURATION as k, BLINK_DELAY as p } from "./constants.js";
7
- import { StreakWrapper as s, StreakStaticBg as f, StreakBg as d, StreakContent as I, StreakImg as $, StyledImg as o } from "./streak-icon-styled.js";
8
- const g = i(
9
- ({ value: a, blink: t = !1, isInteractive: m = !0, ...n }) => /* @__PURE__ */ e(s, { isInteractive: m, ...n, children: [
10
- /* @__PURE__ */ r(f, {}),
11
- t && /* @__PURE__ */ r(d, { $blinkDuration: k, $blinkDelay: p }),
12
- /* @__PURE__ */ e(I, { children: [
13
- /* @__PURE__ */ r($, { children: t ? /* @__PURE__ */ r(o, { src: l, alt: "Streak" }) : /* @__PURE__ */ r(o, { src: S, alt: "Streak" }) }),
14
- /* @__PURE__ */ r(c, { $renderAs: "ab3-bold", $color: "WHITE", $align: "center", children: a })
15
- ] })
2
+ import { memo as n } from "react";
3
+ import i from "../../../assets/illustrations/streak-green.svg.js";
4
+ import S from "../../../assets/illustrations/streak-white.svg.js";
5
+ import l from "../text/text.js";
6
+ import { BLINK_DURATION as c, BLINK_DELAY as k } from "./constants.js";
7
+ import { StreakWrapper as p, StreakStaticBg as s, StreakBg as f, StreakContent as d, StreakImg as I, StyledImg as o } from "./streak-icon-styled.js";
8
+ const $ = n(({ value: a, blink: t = !1, ...m }) => /* @__PURE__ */ e(p, { ...m, children: [
9
+ /* @__PURE__ */ r(s, {}),
10
+ t && /* @__PURE__ */ r(f, { $blinkDuration: c, $blinkDelay: k }),
11
+ /* @__PURE__ */ e(d, { children: [
12
+ /* @__PURE__ */ r(I, { children: t ? /* @__PURE__ */ r(o, { src: S, alt: "Streak" }) : /* @__PURE__ */ r(o, { src: i, alt: "Streak" }) }),
13
+ /* @__PURE__ */ r(l, { $renderAs: "ab3-bold", $color: "WHITE", $align: "center", children: a })
16
14
  ] })
17
- ), G = g;
15
+ ] })), A = $;
18
16
  export {
19
- g as StreakIcon,
20
- G as default
17
+ $ as StreakIcon,
18
+ A as default
21
19
  };
22
20
  //# sourceMappingURL=streak-icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"streak-icon.js","sources":["../../../../src/features/ui/streak-icon/streak-icon.tsx"],"sourcesContent":["import type { IStreakIconProps } from './streak-icon-types';\n\nimport React, { memo } from 'react';\n\nimport StreakGreenSVG from '../../../assets/illustrations/streak-green.svg';\nimport StreakWhiteSVG from '../../../assets/illustrations/streak-white.svg';\nimport Text from '../text/text';\nimport { BLINK_DELAY, BLINK_DURATION } from './constants';\nimport * as S from './streak-icon-styled';\n\nexport const StreakIcon: React.FC<IStreakIconProps> = memo(\n ({ value, blink = false, isInteractive = true, ...rest }) => {\n return (\n <S.StreakWrapper isInteractive={isInteractive} {...rest}>\n <S.StreakStaticBg />\n {blink && <S.StreakBg $blinkDuration={BLINK_DURATION} $blinkDelay={BLINK_DELAY} />}\n <S.StreakContent>\n <S.StreakImg>\n {blink ? (\n <S.StyledImg src={StreakWhiteSVG} alt=\"Streak\" />\n ) : (\n <S.StyledImg src={StreakGreenSVG} alt=\"Streak\" />\n )}\n </S.StreakImg>\n <Text $renderAs=\"ab3-bold\" $color=\"WHITE\" $align=\"center\">\n {value}\n </Text>\n </S.StreakContent>\n </S.StreakWrapper>\n );\n },\n);\n\nexport default StreakIcon;\n"],"names":["StreakIcon","memo","value","blink","isInteractive","rest","S.StreakWrapper","jsx","S.StreakStaticBg","S.StreakBg","BLINK_DURATION","BLINK_DELAY","jsxs","S.StreakContent","S.StreakImg","S.StyledImg","StreakWhiteSVG","StreakGreenSVG","Text","StreakIcon$1"],"mappings":";;;;;;;AAUO,MAAMA,IAAyCC;AAAA,EACpD,CAAC,EAAE,OAAAC,GAAO,OAAAC,IAAQ,IAAO,eAAAC,IAAgB,IAAM,GAAGC,0BAE7CC,GAAA,EAAgB,eAAAF,GAA+B,GAAGC,GACjD,UAAA;AAAA,IAAC,gBAAAE,EAAAC,GAAA,EAAiB;AAAA,IACjBL,uBAAUM,GAAA,EAAW,gBAAgBC,GAAgB,aAAaC,GAAa;AAAA,IAChF,gBAAAC,EAACC,GAAA,EACC,UAAA;AAAA,MAAC,gBAAAN,EAAAO,GAAA,EACE,UAAAX,sBACEY,GAAA,EAAY,KAAKC,GAAgB,KAAI,UAAS,sBAE9CD,GAAA,EAAY,KAAKE,GAAgB,KAAI,SAAS,CAAA,GAEnD;AAAA,MACA,gBAAAV,EAACW,KAAK,WAAU,YAAW,QAAO,SAAQ,QAAO,UAC9C,UACHhB,EAAA,CAAA;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAGN,GAEAiB,IAAenB;"}
1
+ {"version":3,"file":"streak-icon.js","sources":["../../../../src/features/ui/streak-icon/streak-icon.tsx"],"sourcesContent":["import type { IStreakIconProps } from './streak-icon-types';\n\nimport React, { memo } from 'react';\n\nimport StreakGreenSVG from '../../../assets/illustrations/streak-green.svg';\nimport StreakWhiteSVG from '../../../assets/illustrations/streak-white.svg';\nimport Text from '../text/text';\nimport { BLINK_DELAY, BLINK_DURATION } from './constants';\nimport * as S from './streak-icon-styled';\n\nexport const StreakIcon: React.FC<IStreakIconProps> = memo(({ value, blink = false, ...rest }) => {\n return (\n <S.StreakWrapper {...rest}>\n <S.StreakStaticBg />\n {blink && <S.StreakBg $blinkDuration={BLINK_DURATION} $blinkDelay={BLINK_DELAY} />}\n <S.StreakContent>\n <S.StreakImg>\n {blink ? (\n <S.StyledImg src={StreakWhiteSVG} alt=\"Streak\" />\n ) : (\n <S.StyledImg src={StreakGreenSVG} alt=\"Streak\" />\n )}\n </S.StreakImg>\n <Text $renderAs=\"ab3-bold\" $color=\"WHITE\" $align=\"center\">\n {value}\n </Text>\n </S.StreakContent>\n </S.StreakWrapper>\n );\n});\n\nexport default StreakIcon;\n"],"names":["StreakIcon","memo","value","blink","rest","jsxs","S.StreakWrapper","jsx","S.StreakStaticBg","S.StreakBg","BLINK_DURATION","BLINK_DELAY","S.StreakContent","S.StreakImg","S.StyledImg","StreakWhiteSVG","StreakGreenSVG","Text","StreakIcon$1"],"mappings":";;;;;;;AAUa,MAAAA,IAAyCC,EAAK,CAAC,EAAE,OAAAC,GAAO,OAAAC,IAAQ,IAAO,GAAGC,QAElF,gBAAAC,EAAAC,GAAA,EAAiB,GAAGF,GACnB,UAAA;AAAA,EAAC,gBAAAG,EAAAC,GAAA,EAAiB;AAAA,EACjBL,uBAAUM,GAAA,EAAW,gBAAgBC,GAAgB,aAAaC,GAAa;AAAA,EAChF,gBAAAN,EAACO,GAAA,EACC,UAAA;AAAA,IAAC,gBAAAL,EAAAM,GAAA,EACE,UAAAV,sBACEW,GAAA,EAAY,KAAKC,GAAgB,KAAI,UAAS,sBAE9CD,GAAA,EAAY,KAAKE,GAAgB,KAAI,SAAS,CAAA,GAEnD;AAAA,IACA,gBAAAT,EAACU,KAAK,WAAU,YAAW,QAAO,SAAQ,QAAO,UAC9C,UACHf,EAAA,CAAA;AAAA,EAAA,GACF;AACF,EAAA,CAAA,CAEH,GAEDgB,IAAelB;"}
@@ -1,54 +1,50 @@
1
- import { useMemo as C } from "react";
2
- import F from "styled-components";
3
- import { EDeviceType as y } from "../theme/constants.js";
4
- const $ = F.div(
1
+ import k from "styled-components";
2
+ const x = k.div(
5
3
  ({
6
- theme: g,
7
- $renderAs: t,
4
+ theme: f,
5
+ $renderAs: c,
8
6
  $color: n,
9
- $align: T = "left",
10
- $width: e,
11
- $widthX: f,
12
- $marginBottom: o,
13
- $marginBottomX: r,
7
+ $align: y = "left",
8
+ $width: t,
9
+ $widthX: o,
10
+ $marginBottom: e,
11
+ $marginBottomX: i,
14
12
  $alignSelf: l,
15
- $opacity: b = 1,
16
- $inline: v,
17
- $textDecoration: x,
18
- $whiteSpace: a,
19
- $renderOnMobileAs: c,
20
- $renderOnTabletAs: i
13
+ $opacity: u = 1,
14
+ $inline: m,
15
+ $textDecoration: p,
16
+ $whiteSpace: $
21
17
  }) => {
22
- const { text: E, colors: m, layout: u, device: p } = g, L = C(() => p <= y.MOBILE ? c || i || t : p <= y.TABLET && i || t, [p, t, c, i]), {
23
- fontFamily: h,
24
- fontSize: k,
25
- lineHeight: z,
18
+ const { text: b, colors: r, layout: a } = f, {
19
+ fontFamily: g,
20
+ fontSize: d,
21
+ lineHeight: T,
26
22
  letterSpacing: s,
27
- textTransform: d = "none"
28
- } = E[L];
23
+ textTransform: h = "none"
24
+ } = b[c];
29
25
  return `
30
- display: ${v ? "inline-block" : "block"};
31
- font-family: ${h};
32
- font-size: ${k}px;
33
- text-align: ${T};
34
- line-height: ${z}px;
35
- text-transform: ${d};
26
+ display: ${m ? "inline-block" : "block"};
27
+ font-family: ${g};
28
+ font-size: ${d}px;
29
+ text-align: ${y};
30
+ line-height: ${T}px;
31
+ text-transform: ${h};
36
32
  ${typeof s == "number" ? `letter-spacing: ${s}px;` : ""}
37
- color: ${n ? m[n] : m.BLACK};
38
- opacity: ${b};
39
- width: ${e ? `${e}` : "auto"}${typeof e == "number" ? "px" : ""};
40
- ${f ? `width: ${f * u.gutter}px;` : ""}
41
- margin-bottom: ${o ? `${o}` : "initial"}${typeof o == "number" ? "px" : ""};
42
- ${r ? `margin-bottom: ${r * u.gutter}px;` : ""}
33
+ color: ${n ? r[n] : r.BLACK};
34
+ opacity: ${u};
35
+ width: ${t ? `${t}` : "auto"}${typeof t == "number" ? "px" : ""};
36
+ ${o ? `width: ${o * a.gutter}px;` : ""}
37
+ margin-bottom: ${e ? `${e}` : "initial"}${typeof e == "number" ? "px" : ""};
38
+ ${i ? `margin-bottom: ${i * a.gutter}px;` : ""}
43
39
  ${l ? `align-self: ${l};` : ""}
44
- ${x ? `text-decoration: ${x};` : ""}
45
- ${a ? `white-space: ${a};` : ""}
40
+ ${p ? `text-decoration: ${p};` : ""}
41
+ ${$ ? `white-space: ${$};` : ""}
46
42
  `;
47
43
  }
48
44
  );
49
- $.displayName = "Text";
50
- const M = $;
45
+ x.displayName = "Text";
46
+ const v = x;
51
47
  export {
52
- M as default
48
+ v as default
53
49
  };
54
50
  //# sourceMappingURL=text.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.js","sources":["../../../../src/features/ui/text/text.tsx"],"sourcesContent":["import type { TColorNames, TTextVariants } from '../types';\n\nimport { useMemo } from 'react';\nimport styled from 'styled-components';\n\nimport { EDeviceType } from '../theme/constants';\n\nexport interface TextProps {\n $renderAs: TTextVariants;\n $color?: TColorNames;\n $align?: 'auto' | 'left' | 'right' | 'center' | 'justify';\n $alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n $opacity?: number | undefined;\n $width?: number | string;\n $widthX?: number;\n $marginBottom?: number;\n $marginBottomX?: number;\n $inline?: boolean;\n $textDecoration?: string;\n $whiteSpace?: 'pre-line' | 'normal' | 'pre-wrap' | 'no-wrap' | 'pre' | 'break-spaces';\n $renderOnMobileAs?: TTextVariants;\n $renderOnTabletAs?: TTextVariants;\n}\n\n/**\n * @param $renderAs (fallback for any device), @param $renderOnMobileAs, @param $renderOnTabletAs - The text variant to render as (ah1-ah4, ab1-ab3, ac1-ac4, ub1-ub3), anything else is deprecated\n */\nconst Text = styled.div<TextProps>(\n ({\n theme,\n $renderAs,\n $color,\n $align = 'left',\n $width,\n $widthX,\n $marginBottom,\n $marginBottomX,\n $alignSelf,\n $opacity = 1,\n $inline,\n $textDecoration,\n $whiteSpace,\n $renderOnMobileAs,\n $renderOnTabletAs,\n }) => {\n const { text, colors, layout, device } = theme;\n const renderAs = useMemo(() => {\n if (device <= EDeviceType.MOBILE) {\n return $renderOnMobileAs || $renderOnTabletAs || $renderAs;\n }\n\n if (device <= EDeviceType.TABLET) {\n return $renderOnTabletAs || $renderAs;\n }\n\n return $renderAs;\n }, [device, $renderAs, $renderOnMobileAs, $renderOnTabletAs]);\n\n const {\n fontFamily,\n fontSize,\n lineHeight,\n letterSpacing,\n textTransform = 'none',\n } = text[renderAs];\n\n return `\n display: ${$inline ? 'inline-block' : 'block'};\n font-family: ${fontFamily};\n font-size: ${fontSize}px;\n text-align: ${$align};\n line-height: ${lineHeight}px;\n text-transform: ${textTransform};\n ${typeof letterSpacing === 'number' ? `letter-spacing: ${letterSpacing}px;` : ''}\n color: ${$color ? colors[$color] : colors.BLACK};\n opacity: ${$opacity};\n width: ${$width ? `${$width}` : 'auto'}${typeof $width === 'number' ? 'px' : ''};\n ${$widthX ? `width: ${$widthX * layout.gutter}px;` : ''}\n margin-bottom: ${$marginBottom ? `${$marginBottom}` : 'initial'}${\n typeof $marginBottom === 'number' ? 'px' : ''\n };\n ${$marginBottomX ? `margin-bottom: ${$marginBottomX * layout.gutter}px;` : ''}\n ${$alignSelf ? `align-self: ${$alignSelf};` : ''}\n ${$textDecoration ? `text-decoration: ${$textDecoration};` : ''}\n ${$whiteSpace ? `white-space: ${$whiteSpace};` : ''}\n `;\n },\n);\n\nText.displayName = 'Text';\n\nexport default Text;\n"],"names":["Text","styled","theme","$renderAs","$color","$align","$width","$widthX","$marginBottom","$marginBottomX","$alignSelf","$opacity","$inline","$textDecoration","$whiteSpace","$renderOnMobileAs","$renderOnTabletAs","text","colors","layout","device","renderAs","useMemo","EDeviceType","fontFamily","fontSize","lineHeight","letterSpacing","textTransform","Text$1"],"mappings":";;;AA2BA,MAAMA,IAAOC,EAAO;AAAA,EAClB,CAAC;AAAA,IACC,OAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,QAAAC,IAAS;AAAA,IACT,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,eAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,SAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,mBAAAC;AAAA,EAAA,MACI;AACJ,UAAM,EAAE,MAAAC,GAAM,QAAAC,GAAQ,QAAAC,GAAQ,QAAAC,MAAWlB,GACnCmB,IAAWC,EAAQ,MACnBF,KAAUG,EAAY,SACjBR,KAAqBC,KAAqBb,IAG/CiB,KAAUG,EAAY,UACjBP,KAAqBb,GAI7B,CAACiB,GAAQjB,GAAWY,GAAmBC,CAAiB,CAAC,GAEtD;AAAA,MACJ,YAAAQ;AAAA,MACA,UAAAC;AAAA,MACA,YAAAC;AAAA,MACA,eAAAC;AAAA,MACA,eAAAC,IAAgB;AAAA,IAAA,IACdX,EAAKI,CAAQ;AAEV,WAAA;AAAA,iBACMT,IAAU,iBAAiB,OAAO;AAAA,qBAC9BY,CAAU;AAAA,mBACZC,CAAQ;AAAA,oBACPpB,CAAM;AAAA,qBACLqB,CAAU;AAAA,wBACPE,CAAa;AAAA,QAC7B,OAAOD,KAAkB,WAAW,mBAAmBA,CAAa,QAAQ,EAAE;AAAA,eACvEvB,IAASc,EAAOd,CAAM,IAAIc,EAAO,KAAK;AAAA,iBACpCP,CAAQ;AAAA,eACVL,IAAS,GAAGA,CAAM,KAAK,MAAM,GAAG,OAAOA,KAAW,WAAW,OAAO,EAAE;AAAA,QAC7EC,IAAU,UAAUA,IAAUY,EAAO,MAAM,QAAQ,EAAE;AAAA,uBACtCX,IAAgB,GAAGA,CAAa,KAAK,SAAS,GAC7D,OAAOA,KAAkB,WAAW,OAAO,EAC7C;AAAA,QACEC,IAAiB,kBAAkBA,IAAiBU,EAAO,MAAM,QAAQ,EAAE;AAAA,QAC3ET,IAAa,eAAeA,CAAU,MAAM,EAAE;AAAA,QAC9CG,IAAkB,oBAAoBA,CAAe,MAAM,EAAE;AAAA,QAC7DC,IAAc,gBAAgBA,CAAW,MAAM,EAAE;AAAA;AAAA,EAEvD;AACF;AAEAd,EAAK,cAAc;AAEnB,MAAA6B,IAAe7B;"}
1
+ {"version":3,"file":"text.js","sources":["../../../../src/features/ui/text/text.tsx"],"sourcesContent":["import type { TColorNames, TTextVariants } from '../types';\n\nimport styled from 'styled-components';\n\nexport interface TextProps {\n $renderAs: TTextVariants;\n $color?: TColorNames;\n $align?: 'auto' | 'left' | 'right' | 'center' | 'justify';\n $alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n $opacity?: number | undefined;\n $width?: number | string;\n $widthX?: number;\n $marginBottom?: number;\n $marginBottomX?: number;\n $inline?: boolean;\n $textDecoration?: string;\n $whiteSpace?: 'pre-line' | 'normal' | 'pre-wrap' | 'no-wrap' | 'pre' | 'break-spaces';\n}\n\n/**\n * @param $renderAs - The text variant to render as (ah1-ah4, ab1-ab3, ac1-ac4, ub1-ub3), anything else is deprecated\n */\nconst Text = styled.div<TextProps>(\n ({\n theme,\n $renderAs,\n $color,\n $align = 'left',\n $width,\n $widthX,\n $marginBottom,\n $marginBottomX,\n $alignSelf,\n $opacity = 1,\n $inline,\n $textDecoration,\n $whiteSpace,\n }) => {\n const { text, colors, layout } = theme;\n const {\n fontFamily,\n fontSize,\n lineHeight,\n letterSpacing,\n textTransform = 'none',\n } = text[$renderAs];\n\n return `\n display: ${$inline ? 'inline-block' : 'block'};\n font-family: ${fontFamily};\n font-size: ${fontSize}px;\n text-align: ${$align};\n line-height: ${lineHeight}px;\n text-transform: ${textTransform};\n ${typeof letterSpacing === 'number' ? `letter-spacing: ${letterSpacing}px;` : ''}\n color: ${$color ? colors[$color] : colors.BLACK};\n opacity: ${$opacity};\n width: ${$width ? `${$width}` : 'auto'}${typeof $width === 'number' ? 'px' : ''};\n ${$widthX ? `width: ${$widthX * layout.gutter}px;` : ''}\n margin-bottom: ${$marginBottom ? `${$marginBottom}` : 'initial'}${\n typeof $marginBottom === 'number' ? 'px' : ''\n };\n ${$marginBottomX ? `margin-bottom: ${$marginBottomX * layout.gutter}px;` : ''}\n ${$alignSelf ? `align-self: ${$alignSelf};` : ''}\n ${$textDecoration ? `text-decoration: ${$textDecoration};` : ''}\n ${$whiteSpace ? `white-space: ${$whiteSpace};` : ''}\n `;\n },\n);\n\nText.displayName = 'Text';\n\nexport default Text;\n"],"names":["Text","styled","theme","$renderAs","$color","$align","$width","$widthX","$marginBottom","$marginBottomX","$alignSelf","$opacity","$inline","$textDecoration","$whiteSpace","text","colors","layout","fontFamily","fontSize","lineHeight","letterSpacing","textTransform","Text$1"],"mappings":";AAsBA,MAAMA,IAAOC,EAAO;AAAA,EAClB,CAAC;AAAA,IACC,OAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,QAAAC,IAAS;AAAA,IACT,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,eAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,SAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,aAAAC;AAAA,EAAA,MACI;AACJ,UAAM,EAAE,MAAAC,GAAM,QAAAC,GAAQ,QAAAC,EAAA,IAAWf,GAC3B;AAAA,MACJ,YAAAgB;AAAA,MACA,UAAAC;AAAA,MACA,YAAAC;AAAA,MACA,eAAAC;AAAA,MACA,eAAAC,IAAgB;AAAA,IAAA,IACdP,EAAKZ,CAAS;AAEX,WAAA;AAAA,iBACMS,IAAU,iBAAiB,OAAO;AAAA,qBAC9BM,CAAU;AAAA,mBACZC,CAAQ;AAAA,oBACPd,CAAM;AAAA,qBACLe,CAAU;AAAA,wBACPE,CAAa;AAAA,QAC7B,OAAOD,KAAkB,WAAW,mBAAmBA,CAAa,QAAQ,EAAE;AAAA,eACvEjB,IAASY,EAAOZ,CAAM,IAAIY,EAAO,KAAK;AAAA,iBACpCL,CAAQ;AAAA,eACVL,IAAS,GAAGA,CAAM,KAAK,MAAM,GAAG,OAAOA,KAAW,WAAW,OAAO,EAAE;AAAA,QAC7EC,IAAU,UAAUA,IAAUU,EAAO,MAAM,QAAQ,EAAE;AAAA,uBACtCT,IAAgB,GAAGA,CAAa,KAAK,SAAS,GAC7D,OAAOA,KAAkB,WAAW,OAAO,EAC7C;AAAA,QACEC,IAAiB,kBAAkBA,IAAiBQ,EAAO,MAAM,QAAQ,EAAE;AAAA,QAC3EP,IAAa,eAAeA,CAAU,MAAM,EAAE;AAAA,QAC9CG,IAAkB,oBAAoBA,CAAe,MAAM,EAAE;AAAA,QAC7DC,IAAc,gBAAgBA,CAAW,MAAM,EAAE;AAAA;AAAA,EAEvD;AACF;AAEAd,EAAK,cAAc;AAEnB,MAAAuB,IAAevB;"}
@@ -1,13 +1,11 @@
1
- const A = {
1
+ const e = {
2
2
  tablet: 760,
3
3
  smallDesktop: 920,
4
4
  desktop: 1072,
5
5
  largeDevice: 1232,
6
6
  xlargeDevice: 1424
7
7
  };
8
- var E = /* @__PURE__ */ ((L) => (L[L.MOBILE = 0] = "MOBILE", L[L.TABLET = 1] = "TABLET", L[L.SMALL_DESKTOP = 2] = "SMALL_DESKTOP", L[L.DESKTOP = 3] = "DESKTOP", L[L.LARGE_DEVICE = 4] = "LARGE_DEVICE", L[L.XLARGE_DEVICE = 5] = "XLARGE_DEVICE", L))(E || {});
9
8
  export {
10
- A as BREAKPOINTS,
11
- E as EDeviceType
9
+ e as BREAKPOINTS
12
10
  };
13
11
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../src/features/ui/theme/constants.ts"],"sourcesContent":["export const BREAKPOINTS = {\n tablet: 760,\n smallDesktop: 920,\n desktop: 1072,\n largeDevice: 1232,\n xlargeDevice: 1424,\n};\n\nexport enum EDeviceType {\n MOBILE = 0,\n TABLET = 1,\n SMALL_DESKTOP = 2,\n DESKTOP = 3,\n LARGE_DEVICE = 4,\n XLARGE_DEVICE = 5,\n}\n"],"names":["BREAKPOINTS","EDeviceType"],"mappings":"AAAO,MAAMA,IAAc;AAAA,EACzB,QAAQ;AAAA,EACR,cAAc;AAAA,EACd,SAAS;AAAA,EACT,aAAa;AAAA,EACb,cAAc;AAChB;AAEY,IAAAC,sBAAAA,OACVA,EAAAA,EAAA,SAAS,CAAT,IAAA,UACAA,EAAAA,EAAA,SAAS,CAAT,IAAA,UACAA,EAAAA,EAAA,gBAAgB,CAAhB,IAAA,iBACAA,EAAAA,EAAA,UAAU,CAAV,IAAA,WACAA,EAAAA,EAAA,eAAe,CAAf,IAAA,gBACAA,EAAAA,EAAA,gBAAgB,CAAhB,IAAA,iBANUA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"constants.js","sources":["../../../../src/features/ui/theme/constants.ts"],"sourcesContent":["export const BREAKPOINTS = {\n tablet: 760,\n smallDesktop: 920,\n desktop: 1072,\n largeDevice: 1232,\n xlargeDevice: 1424,\n};\n"],"names":["BREAKPOINTS"],"mappings":"AAAO,MAAMA,IAAc;AAAA,EACzB,QAAQ;AAAA,EACR,cAAc;AAAA,EACd,SAAS;AAAA,EACT,aAAa;AAAA,EACb,cAAc;AAChB;"}
@@ -1,6 +1,6 @@
1
- import { BREAKPOINTS as E, EDeviceType as e } from "./constants.js";
2
- const D = (r) => r >= E.xlargeDevice ? e.XLARGE_DEVICE : r >= E.largeDevice ? e.LARGE_DEVICE : r >= E.smallDesktop ? e.SMALL_DESKTOP : r >= E.desktop ? e.DESKTOP : r >= E.tablet ? e.TABLET : e.MOBILE;
1
+ import { BREAKPOINTS as r } from "./constants.js";
2
+ const l = (e) => e >= r.xlargeDevice ? "xlarge-device" : e >= r.largeDevice ? "large-device" : e >= r.smallDesktop ? "small-desktop" : e >= r.desktop ? "desktop" : e >= r.tablet ? "tablet" : "mobile";
3
3
  export {
4
- D as getDevice
4
+ l as getDevice
5
5
  };
6
6
  //# sourceMappingURL=get-device.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-device.js","sources":["../../../../src/features/ui/theme/get-device.ts"],"sourcesContent":["import { BREAKPOINTS, EDeviceType } from './constants';\n\nexport const getDevice = (width: number): EDeviceType => {\n if (width >= BREAKPOINTS.xlargeDevice) return EDeviceType.XLARGE_DEVICE;\n\n if (width >= BREAKPOINTS.largeDevice) return EDeviceType.LARGE_DEVICE;\n\n if (width >= BREAKPOINTS.smallDesktop) return EDeviceType.SMALL_DESKTOP;\n\n if (width >= BREAKPOINTS.desktop) return EDeviceType.DESKTOP;\n\n if (width >= BREAKPOINTS.tablet) return EDeviceType.TABLET;\n\n return EDeviceType.MOBILE;\n};\n"],"names":["getDevice","width","BREAKPOINTS","EDeviceType"],"mappings":";AAEa,MAAAA,IAAY,CAACC,MACpBA,KAASC,EAAY,eAAqBC,EAAY,gBAEtDF,KAASC,EAAY,cAAoBC,EAAY,eAErDF,KAASC,EAAY,eAAqBC,EAAY,gBAEtDF,KAASC,EAAY,UAAgBC,EAAY,UAEjDF,KAASC,EAAY,SAAeC,EAAY,SAE7CA,EAAY;"}
1
+ {"version":3,"file":"get-device.js","sources":["../../../../src/features/ui/theme/get-device.ts"],"sourcesContent":["import type { TDeviceType } from '../types';\n\nimport { BREAKPOINTS } from './constants';\n\nexport const getDevice = (width: number): TDeviceType => {\n if (width >= BREAKPOINTS.xlargeDevice) return 'xlarge-device';\n\n if (width >= BREAKPOINTS.largeDevice) return 'large-device';\n\n if (width >= BREAKPOINTS.smallDesktop) return 'small-desktop';\n\n if (width >= BREAKPOINTS.desktop) return 'desktop';\n\n if (width >= BREAKPOINTS.tablet) return 'tablet';\n\n return 'mobile';\n};\n"],"names":["getDevice","width","BREAKPOINTS"],"mappings":";AAIa,MAAAA,IAAY,CAACC,MACpBA,KAASC,EAAY,eAAqB,kBAE1CD,KAASC,EAAY,cAAoB,iBAEzCD,KAASC,EAAY,eAAqB,kBAE1CD,KAASC,EAAY,UAAgB,YAErCD,KAASC,EAAY,SAAe,WAEjC;"}
@@ -1,22 +1,22 @@
1
- const t = 792, e = 1008, s = 30, T = 32, n = 28, I = 48, a = 42, c = 16, E = 56, _ = 0, o = 52, O = { left: 0, top: 56 }, N = [
1
+ const t = 792, e = 1008, s = 30, T = 32, n = 28, I = 48, E = 42, c = 16, a = 56, _ = 0, o = 360, O = 52, N = { left: 0, top: 56 }, R = [
2
2
  "practice-basic-optional",
3
3
  "practice-regular-optional",
4
4
  "advanced-we-do",
5
5
  "advanced-your-turn",
6
6
  "advanced-explore",
7
7
  "advanced-practice"
8
- ], R = 2e3, S = [
8
+ ], A = 2e3, S = [
9
9
  { name: "CORRECT", url: "https://static.qumath.in/static/intel-student/cmpress/correct-zap.mp3" },
10
10
  {
11
11
  name: "INCORRECT",
12
12
  url: "https://static.qumath.in/static/intel-student/cmpress/incorrect-zap.mp3"
13
13
  }
14
- ], A = [
14
+ ], i = [
15
15
  {
16
16
  name: "VALIDATE",
17
17
  url: "https://wmznlejcfq.s3.ap-southeast-1.amazonaws.com/static/intel-student/cmpress/validate-zap.mp3"
18
18
  }
19
- ], i = [
19
+ ], l = [
20
20
  {
21
21
  label: "Answered all the questions independently.",
22
22
  id: "E"
@@ -31,20 +31,21 @@ const t = 792, e = 1008, s = 30, T = 32, n = 28, I = 48, a = 42, c = 16, E = 56,
31
31
  }
32
32
  ];
33
33
  export {
34
- E as ACTION_BAR_HEIGHT,
35
- R as CLOZE_FORMULA_RESPONSE_LIMIT,
36
- O as DESMOS_CALC_POSITION,
37
- i as EXIT_TICKET_RATING_OPTIONS,
34
+ a as ACTION_BAR_HEIGHT,
35
+ A as CLOZE_FORMULA_RESPONSE_LIMIT,
36
+ N as DESMOS_CALC_POSITION,
37
+ l as EXIT_TICKET_RATING_OPTIONS,
38
38
  s as INTERSECTION_OBSERVER_THRESHOLD_POINTS,
39
39
  T as INTERSECTION_OBSERVER_THROTTLE_TIME,
40
- N as OPTIONAL_ITEM_TYPES,
40
+ o as LEARNOSITY_KEYBOARD_HEIGHT,
41
+ R as OPTIONAL_ITEM_TYPES,
41
42
  c as QUESTIONS_GAP,
42
43
  t as QUESTION_WIDTH,
43
- o as SIDEBAR_WIDTH,
44
+ O as SIDEBAR_WIDTH,
44
45
  e as SPLIT_QUESTION_WIDTH,
45
46
  S as SYSTEM_VALIDATION_AUDIO_LIST,
46
- A as TEACHER_VALIDATION_AUDIO_LIST,
47
- a as TOP_NAVIGATION_ARROW_WIDTH,
47
+ i as TEACHER_VALIDATION_AUDIO_LIST,
48
+ E as TOP_NAVIGATION_ARROW_WIDTH,
48
49
  I as TOP_NAVIGATION_HEIGHT,
49
50
  _ as WORKSHEET_CONTAINER_BORDER_RADIUS,
50
51
  n as WORKSHEET_NUDGE_BANNER_HEIGHT
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../src/features/worksheet/worksheet/constants.ts"],"sourcesContent":["import type { QUESTIONS_RATING, TItemType } from './worksheet-types';\n\nexport const QUESTION_WIDTH = 792;\nexport const SPLIT_QUESTION_WIDTH = 1008; // 1024 - 16\nexport const INTERSECTION_OBSERVER_THRESHOLD_POINTS = 30;\nexport const INTERSECTION_OBSERVER_THROTTLE_TIME = 32; // in ms, 2 frames\nexport const WORKSHEET_NUDGE_BANNER_HEIGHT = 28;\n\nexport const TOP_NAVIGATION_HEIGHT = 48;\nexport const TOP_NAVIGATION_ARROW_WIDTH = 42;\n\nexport const QUESTIONS_GAP = 16;\nexport const ACTION_BAR_HEIGHT = 56;\nexport const WORKSHEET_CONTAINER_BORDER_RADIUS = 0;\nexport const SIDEBAR_WIDTH = 52;\n\nexport const DESMOS_CALC_POSITION = { left: 0, top: 56 };\n\nexport const OPTIONAL_ITEM_TYPES: TItemType[] = [\n 'practice-basic-optional',\n 'practice-regular-optional',\n 'advanced-we-do',\n 'advanced-your-turn',\n 'advanced-explore',\n 'advanced-practice',\n];\nexport const CLOZE_FORMULA_RESPONSE_LIMIT = 2000;\n\nexport const SYSTEM_VALIDATION_AUDIO_LIST = [\n { name: 'CORRECT', url: 'https://static.qumath.in/static/intel-student/cmpress/correct-zap.mp3' },\n {\n name: 'INCORRECT',\n url: 'https://static.qumath.in/static/intel-student/cmpress/incorrect-zap.mp3',\n },\n];\nexport const TEACHER_VALIDATION_AUDIO_LIST = [\n {\n name: 'VALIDATE',\n url: 'https://wmznlejcfq.s3.ap-southeast-1.amazonaws.com/static/intel-student/cmpress/validate-zap.mp3',\n },\n];\n\nexport const EXIT_TICKET_RATING_OPTIONS: Array<{\n label: string;\n id: keyof typeof QUESTIONS_RATING;\n}> = [\n {\n label: 'Answered all the questions independently.',\n id: 'E',\n },\n {\n label: 'Needed some help to answer the questions.',\n id: 'S',\n },\n {\n label: 'Needed a lot of help to answer the questions.',\n id: 'H',\n },\n];\n"],"names":["QUESTION_WIDTH","SPLIT_QUESTION_WIDTH","INTERSECTION_OBSERVER_THRESHOLD_POINTS","INTERSECTION_OBSERVER_THROTTLE_TIME","WORKSHEET_NUDGE_BANNER_HEIGHT","TOP_NAVIGATION_HEIGHT","TOP_NAVIGATION_ARROW_WIDTH","QUESTIONS_GAP","ACTION_BAR_HEIGHT","WORKSHEET_CONTAINER_BORDER_RADIUS","SIDEBAR_WIDTH","DESMOS_CALC_POSITION","OPTIONAL_ITEM_TYPES","CLOZE_FORMULA_RESPONSE_LIMIT","SYSTEM_VALIDATION_AUDIO_LIST","TEACHER_VALIDATION_AUDIO_LIST","EXIT_TICKET_RATING_OPTIONS"],"mappings":"AAEO,MAAMA,IAAiB,KACjBC,IAAuB,MACvBC,IAAyC,IACzCC,IAAsC,IACtCC,IAAgC,IAEhCC,IAAwB,IACxBC,IAA6B,IAE7BC,IAAgB,IAChBC,IAAoB,IACpBC,IAAoC,GACpCC,IAAgB,IAEhBC,IAAuB,EAAE,MAAM,GAAG,KAAK,GAAG,GAE1CC,IAAmC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACaC,IAA+B,KAE/BC,IAA+B;AAAA,EAC1C,EAAE,MAAM,WAAW,KAAK,wEAAwE;AAAA,EAChG;AAAA,IACE,MAAM;AAAA,IACN,KAAK;AAAA,EACP;AACF,GACaC,IAAgC;AAAA,EAC3C;AAAA,IACE,MAAM;AAAA,IACN,KAAK;AAAA,EACP;AACF,GAEaC,IAGR;AAAA,EACH;AAAA,IACE,OAAO;AAAA,IACP,IAAI;AAAA,EACN;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,IAAI;AAAA,EACN;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,IAAI;AAAA,EACN;AACF;"}
1
+ {"version":3,"file":"constants.js","sources":["../../../../src/features/worksheet/worksheet/constants.ts"],"sourcesContent":["import type { QUESTIONS_RATING, TItemType } from './worksheet-types';\n\nexport const QUESTION_WIDTH = 792;\nexport const SPLIT_QUESTION_WIDTH = 1008; // 1024 - 16\nexport const INTERSECTION_OBSERVER_THRESHOLD_POINTS = 30;\nexport const INTERSECTION_OBSERVER_THROTTLE_TIME = 32; // in ms, 2 frames\nexport const WORKSHEET_NUDGE_BANNER_HEIGHT = 28;\n\nexport const TOP_NAVIGATION_HEIGHT = 48;\nexport const TOP_NAVIGATION_ARROW_WIDTH = 42;\n\nexport const QUESTIONS_GAP = 16;\nexport const ACTION_BAR_HEIGHT = 56;\nexport const WORKSHEET_CONTAINER_BORDER_RADIUS = 0;\nexport const LEARNOSITY_KEYBOARD_HEIGHT = 360;\nexport const SIDEBAR_WIDTH = 52;\n\nexport const DESMOS_CALC_POSITION = { left: 0, top: 56 };\n\nexport const OPTIONAL_ITEM_TYPES: TItemType[] = [\n 'practice-basic-optional',\n 'practice-regular-optional',\n 'advanced-we-do',\n 'advanced-your-turn',\n 'advanced-explore',\n 'advanced-practice',\n];\nexport const CLOZE_FORMULA_RESPONSE_LIMIT = 2000;\n\nexport const SYSTEM_VALIDATION_AUDIO_LIST = [\n { name: 'CORRECT', url: 'https://static.qumath.in/static/intel-student/cmpress/correct-zap.mp3' },\n {\n name: 'INCORRECT',\n url: 'https://static.qumath.in/static/intel-student/cmpress/incorrect-zap.mp3',\n },\n];\nexport const TEACHER_VALIDATION_AUDIO_LIST = [\n {\n name: 'VALIDATE',\n url: 'https://wmznlejcfq.s3.ap-southeast-1.amazonaws.com/static/intel-student/cmpress/validate-zap.mp3',\n },\n];\n\nexport const EXIT_TICKET_RATING_OPTIONS: Array<{\n label: string;\n id: keyof typeof QUESTIONS_RATING;\n}> = [\n {\n label: 'Answered all the questions independently.',\n id: 'E',\n },\n {\n label: 'Needed some help to answer the questions.',\n id: 'S',\n },\n {\n label: 'Needed a lot of help to answer the questions.',\n id: 'H',\n },\n];\n"],"names":["QUESTION_WIDTH","SPLIT_QUESTION_WIDTH","INTERSECTION_OBSERVER_THRESHOLD_POINTS","INTERSECTION_OBSERVER_THROTTLE_TIME","WORKSHEET_NUDGE_BANNER_HEIGHT","TOP_NAVIGATION_HEIGHT","TOP_NAVIGATION_ARROW_WIDTH","QUESTIONS_GAP","ACTION_BAR_HEIGHT","WORKSHEET_CONTAINER_BORDER_RADIUS","LEARNOSITY_KEYBOARD_HEIGHT","SIDEBAR_WIDTH","DESMOS_CALC_POSITION","OPTIONAL_ITEM_TYPES","CLOZE_FORMULA_RESPONSE_LIMIT","SYSTEM_VALIDATION_AUDIO_LIST","TEACHER_VALIDATION_AUDIO_LIST","EXIT_TICKET_RATING_OPTIONS"],"mappings":"AAEO,MAAMA,IAAiB,KACjBC,IAAuB,MACvBC,IAAyC,IACzCC,IAAsC,IACtCC,IAAgC,IAEhCC,IAAwB,IACxBC,IAA6B,IAE7BC,IAAgB,IAChBC,IAAoB,IACpBC,IAAoC,GACpCC,IAA6B,KAC7BC,IAAgB,IAEhBC,IAAuB,EAAE,MAAM,GAAG,KAAK,GAAG,GAE1CC,IAAmC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACaC,IAA+B,KAE/BC,IAA+B;AAAA,EAC1C,EAAE,MAAM,WAAW,KAAK,wEAAwE;AAAA,EAChG;AAAA,IACE,MAAM;AAAA,IACN,KAAK;AAAA,EACP;AACF,GACaC,IAAgC;AAAA,EAC3C;AAAA,IACE,MAAM;AAAA,IACN,KAAK;AAAA,EACP;AACF,GAEaC,IAGR;AAAA,EACH;AAAA,IACE,OAAO;AAAA,IACP,IAAI;AAAA,EACN;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,IAAI;AAAA,EACN;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,IAAI;AAAA,EACN;AACF;"}
@@ -1,10 +1,10 @@
1
- import S from "../../../assets/line-icons/icons/bulb2.js";
2
- import y from "../../../assets/line-icons/icons/edit-star.js";
1
+ import w from "../../../assets/line-icons/icons/bulb2.js";
2
+ import S from "../../../assets/line-icons/icons/edit-star.js";
3
3
  import A from "../../../assets/line-icons/icons/edit2.js";
4
- import L from "../../../assets/line-icons/icons/question-letter.js";
5
- import O from "../../../assets/line-icons/icons/star2.js";
4
+ import O from "../../../assets/line-icons/icons/question-letter.js";
5
+ import R from "../../../assets/line-icons/icons/star2.js";
6
6
  import b from "../constants/events.js";
7
- import { OPTIONAL_ITEM_TYPES as R, ACTION_BAR_HEIGHT as k, QUESTION_WIDTH as w, SPLIT_QUESTION_WIDTH as N, CLOZE_FORMULA_RESPONSE_LIMIT as x } from "./constants.js";
7
+ import { OPTIONAL_ITEM_TYPES as L, ACTION_BAR_HEIGHT as k, QUESTION_WIDTH as y, SPLIT_QUESTION_WIDTH as N, CLOZE_FORMULA_RESPONSE_LIMIT as x } from "./constants.js";
8
8
  import { QUESTION_TAGS as E } from "./worksheet-types.js";
9
9
  const Q = (e) => {
10
10
  switch (e) {
@@ -30,7 +30,7 @@ const Q = (e) => {
30
30
  default:
31
31
  return;
32
32
  }
33
- }, M = (e) => {
33
+ }, B = (e) => {
34
34
  if (!e)
35
35
  return !1;
36
36
  const r = e.toLowerCase();
@@ -44,16 +44,16 @@ const Q = (e) => {
44
44
  }, {}), Y = (e, { sectioned: r = !1, adaptive: t = !1 }) => {
45
45
  if (r)
46
46
  return e.reduce((s, a, c) => {
47
- var v;
47
+ var T;
48
48
  let d = !1;
49
49
  const { content: u, questions: i, itemType: o } = a, l = Q(o), m = s[s.length - 1], g = l === (m == null ? void 0 : m.section_name) && (m != null && m.item_display_number) ? m.item_display_number + 1 : 1, _ = u.match(/question-[^"]*/g), p = _ == null ? void 0 : _.map((f, h) => {
50
- const T = i.find(
50
+ const v = i.find(
51
51
  ({ response_id: I }) => I === f.replace("question-", "")
52
52
  );
53
- if (!T)
53
+ if (!v)
54
54
  throw new Error(`Question not found for the response id: ${f}`);
55
- return d = d || M(T.instructor_stimulus), {
56
- ...T,
55
+ return d = d || B(v.instructor_stimulus), {
56
+ ...v,
57
57
  // Some questions are set to limited number of attempts which can show feedback which is causing the question to be stuck in the errored state
58
58
  feedback_attempts: void 0,
59
59
  item_reference: a.reference,
@@ -61,7 +61,7 @@ const Q = (e) => {
61
61
  item_display_number: g,
62
62
  section_name: l,
63
63
  item_type: r ? o : void 0,
64
- is_optional: o ? R.includes(o) : !1,
64
+ is_optional: o ? L.includes(o) : !1,
65
65
  item_tags: a.tags ?? [],
66
66
  item_tags_map: C(a.tags ?? []),
67
67
  question_number: h - (d ? 1 : 0),
@@ -69,8 +69,8 @@ const Q = (e) => {
69
69
  };
70
70
  });
71
71
  if (d = !1, p != null && p[0] && c > 0 && e.length > 0) {
72
- const f = (v = e[c - 1]) == null ? void 0 : v.itemType, h = o != null && o.startsWith("advanced-") ? "advanced" : o, T = f != null && f.startsWith("advanced-") ? "advanced" : f;
73
- if ((h === "practice-basic" || h === "practice-regular" || h === "exit-ticket" || h === "advanced") && h !== T)
72
+ const f = (T = e[c - 1]) == null ? void 0 : T.itemType, h = o != null && o.startsWith("advanced-") ? "advanced" : o, v = f != null && f.startsWith("advanced-") ? "advanced" : f;
73
+ if ((h === "practice-basic" || h === "practice-regular" || h === "exit-ticket" || h === "advanced") && h !== v)
74
74
  return [
75
75
  ...s,
76
76
  {
@@ -186,7 +186,7 @@ const Q = (e) => {
186
186
  }
187
187
  return e.length - u;
188
188
  };
189
- function B(e, r) {
189
+ function M(e, r) {
190
190
  var n, s;
191
191
  const t = Array.isArray(e) ? e.find((a) => a.response_id === r) : e;
192
192
  if (!t)
@@ -209,7 +209,7 @@ function B(e, r) {
209
209
  const z = (e) => e.reduce(
210
210
  (r, t) => ({
211
211
  ...r,
212
- [t.response_id]: B(e, t.response_id)
212
+ [t.response_id]: M(e, t.response_id)
213
213
  }),
214
214
  {}
215
215
  ), X = (e, r) => {
@@ -217,8 +217,8 @@ const z = (e) => e.reduce(
217
217
  return {
218
218
  questionsContainerWidth: !e.some(
219
219
  (a) => a.questions.some((c) => c.stimulus_review)
220
- ) ? w : N,
221
- maxQuestionWidth: w,
220
+ ) ? y : N,
221
+ maxQuestionWidth: y,
222
222
  actionbarHeight: t === "bottom" ? k : 0
223
223
  };
224
224
  }, Z = ({
@@ -346,21 +346,21 @@ const z = (e) => e.reduce(
346
346
  }, ae = (e) => {
347
347
  switch (e) {
348
348
  case "learning":
349
- return S;
349
+ return w;
350
350
  case "practice-basic":
351
351
  return A;
352
352
  case "practice-regular":
353
- return y;
353
+ return S;
354
354
  case "exit-ticket":
355
- return L;
356
- case "advanced":
357
355
  return O;
356
+ case "advanced":
357
+ return R;
358
358
  default:
359
- return S;
359
+ return w;
360
360
  }
361
- }, ie = (e) => e === "SAT_ENGLISH_ASSESSMENT" || e === "SAT_MATH_ASSESSMENT", se = (e) => Array.isArray(e.value) ? e.value.some(
361
+ }, ie = (e) => Array.isArray(e.value) ? e.value.some(
362
362
  (t) => typeof t == "string" && t.length > x
363
- ) : !1, ce = (e, r) => {
363
+ ) : !1, se = (e, r) => {
364
364
  const t = e === "TEACHER";
365
365
  return r ? {
366
366
  bannerBackgroundColor: "GREEN_4",
@@ -369,7 +369,7 @@ const z = (e) => e.reduce(
369
369
  bannerBackgroundColor: "ORANGE_2",
370
370
  label: "Complete this with your tutor in class"
371
371
  };
372
- }, ue = ({
372
+ }, ce = ({
373
373
  isPuzzleWorksheet: e,
374
374
  isTestWorksheet: r,
375
375
  imageHue: t = "BLUE"
@@ -387,7 +387,7 @@ const z = (e) => e.reduce(
387
387
  textColor: "WHITE"
388
388
  };
389
389
  export {
390
- se as checkIsClozeFormulaResponseInvalid,
390
+ ie as checkIsClozeFormulaResponseInvalid,
391
391
  J as getInitialQuestionId,
392
392
  z as getInitialResponses,
393
393
  V as getLastUnlockedQuestionIndex,
@@ -397,15 +397,14 @@ export {
397
397
  ee as getPaperColorByQuestion,
398
398
  te as getQuestionBackgroundImage,
399
399
  re as getQuestionBorderColor,
400
- B as getQuestionMetadata,
400
+ M as getQuestionMetadata,
401
401
  Y as getQuestionsFromItems,
402
402
  Z as getRenderableQuestions,
403
403
  X as getWorksheetDimensions,
404
- ue as getWorksheetHeaderLayout,
405
- ce as getWorksheetNudgeBannerInfo,
406
- M as isConceptIntroWidget,
404
+ ce as getWorksheetHeaderLayout,
405
+ se as getWorksheetNudgeBannerInfo,
406
+ B as isConceptIntroWidget,
407
407
  W as isOkayTypeQuestion,
408
- ie as isSATAssessmentNode,
409
408
  j as scrollToQuestion,
410
409
  q as setMathJaxConfigInWindow
411
410
  };