@magmamath/students-features 0.6.5-rc-21 → 0.6.5-rc.1

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 (201) hide show
  1. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +3 -3
  2. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +1 -3
  4. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  5. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +2 -4
  6. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  7. package/dist/commonjs/features/chatbot/model/constants.js.map +1 -1
  8. package/dist/commonjs/features/chatbot/model/translation.js +0 -7
  9. package/dist/commonjs/features/chatbot/model/translation.js.map +1 -1
  10. package/dist/commonjs/features/endOfAssignment/components/Modal/ModalBackground.js +3 -17
  11. package/dist/commonjs/features/endOfAssignment/components/Modal/ModalBackground.js.map +1 -1
  12. package/dist/commonjs/features/feedback/model/comments.js +3 -5
  13. package/dist/commonjs/features/feedback/model/comments.js.map +1 -1
  14. package/dist/commonjs/features/feedback/model/model.js +9 -7
  15. package/dist/commonjs/features/feedback/model/model.js.map +1 -1
  16. package/dist/commonjs/features/gifCelebrations/GifCelebrations.js +65 -0
  17. package/dist/commonjs/features/gifCelebrations/GifCelebrations.js.map +1 -0
  18. package/dist/commonjs/features/gifCelebrations/assets/confetti.webp +0 -0
  19. package/dist/commonjs/features/gifCelebrations/components/Backdrop.js +44 -0
  20. package/dist/commonjs/features/gifCelebrations/components/Backdrop.js.map +1 -0
  21. package/dist/commonjs/features/gifCelebrations/components/ContentContainer.js +46 -0
  22. package/dist/commonjs/features/gifCelebrations/components/ContentContainer.js.map +1 -0
  23. package/dist/commonjs/features/gifCelebrations/components/Gif.js +63 -0
  24. package/dist/commonjs/features/gifCelebrations/components/Gif.js.map +1 -0
  25. package/dist/commonjs/features/gifCelebrations/components/Progress.js +102 -0
  26. package/dist/commonjs/features/gifCelebrations/components/Progress.js.map +1 -0
  27. package/dist/commonjs/features/gifCelebrations/constants.js +18 -0
  28. package/dist/commonjs/features/gifCelebrations/constants.js.map +1 -0
  29. package/dist/commonjs/features/gifCelebrations/helpers.js +67 -0
  30. package/dist/commonjs/features/gifCelebrations/helpers.js.map +1 -0
  31. package/dist/commonjs/features/gifCelebrations/index.js +20 -0
  32. package/dist/commonjs/features/gifCelebrations/index.js.map +1 -0
  33. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.cache.js +19 -0
  34. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.cache.js.map +1 -0
  35. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js +151 -0
  36. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js.map +1 -0
  37. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsApi.js +14 -0
  38. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsApi.js.map +1 -0
  39. package/dist/commonjs/features/gifCelebrations/types/model.types.js +6 -0
  40. package/dist/commonjs/features/gifCelebrations/types/model.types.js.map +1 -0
  41. package/dist/commonjs/index.js +12 -0
  42. package/dist/commonjs/index.js.map +1 -1
  43. package/dist/commonjs/shared/hooks/useImagePreloader.js +20 -0
  44. package/dist/commonjs/shared/hooks/useImagePreloader.js.map +1 -0
  45. package/dist/commonjs/shared/translation/localization/en.json +1 -2
  46. package/dist/commonjs/shared/translation/localization/gb.json +1 -2
  47. package/dist/commonjs/shared/translation/localization/sw.json +1 -2
  48. package/dist/module/features/chatbot/model/ChatBotModel.js +3 -3
  49. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  50. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +1 -3
  51. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  52. package/dist/module/features/chatbot/model/DefaultMessageCreator.js +2 -4
  53. package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  54. package/dist/module/features/chatbot/model/constants.js.map +1 -1
  55. package/dist/module/features/chatbot/model/translation.js +0 -7
  56. package/dist/module/features/chatbot/model/translation.js.map +1 -1
  57. package/dist/module/features/endOfAssignment/components/Modal/ModalBackground.js +4 -19
  58. package/dist/module/features/endOfAssignment/components/Modal/ModalBackground.js.map +1 -1
  59. package/dist/module/features/feedback/model/comments.js +3 -5
  60. package/dist/module/features/feedback/model/comments.js.map +1 -1
  61. package/dist/module/features/feedback/model/model.js +9 -7
  62. package/dist/module/features/feedback/model/model.js.map +1 -1
  63. package/dist/module/features/gifCelebrations/GifCelebrations.js +58 -0
  64. package/dist/module/features/gifCelebrations/GifCelebrations.js.map +1 -0
  65. package/dist/module/features/gifCelebrations/assets/confetti.webp +0 -0
  66. package/dist/module/features/gifCelebrations/components/Backdrop.js +36 -0
  67. package/dist/module/features/gifCelebrations/components/Backdrop.js.map +1 -0
  68. package/dist/module/features/gifCelebrations/components/ContentContainer.js +38 -0
  69. package/dist/module/features/gifCelebrations/components/ContentContainer.js.map +1 -0
  70. package/dist/module/features/gifCelebrations/components/Gif.js +56 -0
  71. package/dist/module/features/gifCelebrations/components/Gif.js.map +1 -0
  72. package/dist/module/features/gifCelebrations/components/Progress.js +94 -0
  73. package/dist/module/features/gifCelebrations/components/Progress.js.map +1 -0
  74. package/dist/module/features/gifCelebrations/constants.js +14 -0
  75. package/dist/module/features/gifCelebrations/constants.js.map +1 -0
  76. package/dist/module/features/gifCelebrations/helpers.js +61 -0
  77. package/dist/module/features/gifCelebrations/helpers.js.map +1 -0
  78. package/dist/module/features/gifCelebrations/index.js +5 -0
  79. package/dist/module/features/gifCelebrations/index.js.map +1 -0
  80. package/dist/module/features/gifCelebrations/model/GifCelebrations.cache.js +14 -0
  81. package/dist/module/features/gifCelebrations/model/GifCelebrations.cache.js.map +1 -0
  82. package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js +146 -0
  83. package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js.map +1 -0
  84. package/dist/module/features/gifCelebrations/model/GifCelebrationsApi.js +9 -0
  85. package/dist/module/features/gifCelebrations/model/GifCelebrationsApi.js.map +1 -0
  86. package/dist/module/features/gifCelebrations/types/model.types.js +4 -0
  87. package/dist/module/features/gifCelebrations/types/model.types.js.map +1 -0
  88. package/dist/module/index.js +1 -0
  89. package/dist/module/index.js.map +1 -1
  90. package/dist/module/shared/hooks/useImagePreloader.js +15 -0
  91. package/dist/module/shared/hooks/useImagePreloader.js.map +1 -0
  92. package/dist/module/shared/translation/localization/en.json +1 -2
  93. package/dist/module/shared/translation/localization/gb.json +1 -2
  94. package/dist/module/shared/translation/localization/sw.json +1 -2
  95. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  96. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
  97. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  98. package/dist/typescript/commonjs/features/chatbot/model/constants.d.ts.map +1 -1
  99. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
  100. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/ModalBackground.d.ts.map +1 -1
  101. package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts +8 -0
  102. package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts.map +1 -0
  103. package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts +9 -0
  104. package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts.map +1 -0
  105. package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts +9 -0
  106. package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts.map +1 -0
  107. package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts +7 -0
  108. package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts.map +1 -0
  109. package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts +9 -0
  110. package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts.map +1 -0
  111. package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts +12 -0
  112. package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts.map +1 -0
  113. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts +75 -0
  114. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +1 -0
  115. package/dist/typescript/commonjs/features/gifCelebrations/index.d.ts +3 -0
  116. package/dist/typescript/commonjs/features/gifCelebrations/index.d.ts.map +1 -0
  117. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.cache.d.ts +8 -0
  118. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.cache.d.ts.map +1 -0
  119. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts +23 -0
  120. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +1 -0
  121. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsApi.d.ts +6 -0
  122. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsApi.d.ts.map +1 -0
  123. package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts +32 -0
  124. package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts.map +1 -0
  125. package/dist/typescript/commonjs/index.d.ts +1 -0
  126. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  127. package/dist/typescript/commonjs/shared/hooks/useImagePreloader.d.ts +4 -0
  128. package/dist/typescript/commonjs/shared/hooks/useImagePreloader.d.ts.map +1 -0
  129. package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -3
  130. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  131. package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -2
  132. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  133. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  134. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
  135. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  136. package/dist/typescript/module/features/chatbot/model/constants.d.ts.map +1 -1
  137. package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
  138. package/dist/typescript/module/features/endOfAssignment/components/Modal/ModalBackground.d.ts.map +1 -1
  139. package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts +8 -0
  140. package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts.map +1 -0
  141. package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts +9 -0
  142. package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts.map +1 -0
  143. package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts +9 -0
  144. package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts.map +1 -0
  145. package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts +7 -0
  146. package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts.map +1 -0
  147. package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts +9 -0
  148. package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts.map +1 -0
  149. package/dist/typescript/module/features/gifCelebrations/constants.d.ts +12 -0
  150. package/dist/typescript/module/features/gifCelebrations/constants.d.ts.map +1 -0
  151. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts +75 -0
  152. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +1 -0
  153. package/dist/typescript/module/features/gifCelebrations/index.d.ts +3 -0
  154. package/dist/typescript/module/features/gifCelebrations/index.d.ts.map +1 -0
  155. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.cache.d.ts +8 -0
  156. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.cache.d.ts.map +1 -0
  157. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts +23 -0
  158. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +1 -0
  159. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsApi.d.ts +6 -0
  160. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsApi.d.ts.map +1 -0
  161. package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts +32 -0
  162. package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts.map +1 -0
  163. package/dist/typescript/module/index.d.ts +1 -0
  164. package/dist/typescript/module/index.d.ts.map +1 -1
  165. package/dist/typescript/module/shared/hooks/useImagePreloader.d.ts +4 -0
  166. package/dist/typescript/module/shared/hooks/useImagePreloader.d.ts.map +1 -0
  167. package/dist/typescript/module/shared/translation/constants.d.ts +0 -3
  168. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  169. package/dist/typescript/module/shared/translation/model.d.ts +0 -2
  170. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  171. package/package.json +1 -1
  172. package/src/features/chatbot/model/ChatBotModel.ts +1 -1
  173. package/src/features/chatbot/model/ChatBoxTextManager.ts +1 -3
  174. package/src/features/chatbot/model/DefaultMessageCreator.ts +2 -4
  175. package/src/features/chatbot/model/constants.ts +2 -0
  176. package/src/features/chatbot/model/translation.ts +0 -9
  177. package/src/features/endOfAssignment/components/Modal/ModalBackground.tsx +3 -14
  178. package/src/features/feedback/model/comments.ts +7 -7
  179. package/src/features/feedback/model/model.ts +6 -6
  180. package/src/features/gifCelebrations/GifCelebrations.tsx +75 -0
  181. package/src/features/gifCelebrations/assets/confetti.webp +0 -0
  182. package/src/features/gifCelebrations/components/Backdrop.tsx +40 -0
  183. package/src/features/gifCelebrations/components/ContentContainer.tsx +43 -0
  184. package/src/features/gifCelebrations/components/Gif.tsx +61 -0
  185. package/src/features/gifCelebrations/components/Progress.tsx +108 -0
  186. package/src/features/gifCelebrations/constants.ts +13 -0
  187. package/src/features/gifCelebrations/helpers.ts +68 -0
  188. package/src/features/gifCelebrations/index.ts +2 -0
  189. package/src/features/gifCelebrations/model/GifCelebrations.cache.ts +24 -0
  190. package/src/features/gifCelebrations/model/GifCelebrations.model.ts +177 -0
  191. package/src/features/gifCelebrations/model/GifCelebrationsApi.ts +10 -0
  192. package/src/features/gifCelebrations/types/model.types.ts +36 -0
  193. package/src/index.ts +1 -0
  194. package/src/shared/hooks/useImagePreloader.ts +15 -0
  195. package/src/shared/translation/localization/en.json +1 -2
  196. package/src/shared/translation/localization/gb.json +1 -2
  197. package/src/shared/translation/localization/sw.json +1 -2
  198. package/src/types/types.d.ts +0 -5
  199. package/dist/commonjs/features/endOfAssignment/components/Modal/assets/goblet-bg.webp +0 -0
  200. package/dist/module/features/endOfAssignment/components/Modal/assets/goblet-bg.webp +0 -0
  201. package/src/features/endOfAssignment/components/Modal/assets/goblet-bg.webp +0 -0
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, View } from 'react-native';
4
+ import React from 'react';
5
+ import { BORDER_RADIUS, COLORS, HeadingVariants, SPACING, Typography } from '@magmamath/react-native-ui';
6
+ import Animated, { useAnimatedStyle, interpolate } from 'react-native-reanimated';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ const MIN_WIDTH_FOR_ONE_DIGIT = 12;
9
+ const MIN_WIDTH_FOR_TWO_DIGITS = 15;
10
+ const ADJUSTMENT_FOR_HUNDRED_PERCENT = 1.8;
11
+ export const Progress = ({
12
+ progress,
13
+ completedPercent
14
+ }) => {
15
+ const progressLineWidth = (() => {
16
+ if (completedPercent === 100) {
17
+ return completedPercent + ADJUSTMENT_FOR_HUNDRED_PERCENT;
18
+ }
19
+ if (completedPercent <= 9) {
20
+ return MIN_WIDTH_FOR_ONE_DIGIT;
21
+ }
22
+ if (completedPercent <= 15) {
23
+ return MIN_WIDTH_FOR_TWO_DIGITS;
24
+ }
25
+ return completedPercent;
26
+ })();
27
+ const animatedStyles = useAnimatedStyle(() => ({
28
+ width: `${interpolate(progress.value, [0, 1, 2], [0, progressLineWidth, progressLineWidth])}%`
29
+ }), [progress, progressLineWidth]);
30
+ return /*#__PURE__*/_jsx(View, {
31
+ style: styles.backgroundContainer,
32
+ children: /*#__PURE__*/_jsx(View, {
33
+ style: styles.container,
34
+ children: /*#__PURE__*/_jsx(View, {
35
+ style: styles.progressContainer,
36
+ children: /*#__PURE__*/_jsx(Animated.View, {
37
+ style: [styles.progress, animatedStyles],
38
+ children: /*#__PURE__*/_jsx(Typography, {
39
+ variant: HeadingVariants.H1,
40
+ style: styles.percent,
41
+ children: `${completedPercent}%`
42
+ })
43
+ })
44
+ })
45
+ })
46
+ });
47
+ };
48
+ const styles = StyleSheet.create({
49
+ backgroundContainer: {
50
+ backgroundColor: 'rgba(255, 255, 255, 0.6)',
51
+ borderRadius: 23,
52
+ padding: SPACING[200],
53
+ width: '100%'
54
+ },
55
+ container: {
56
+ width: '100%',
57
+ height: 116,
58
+ flexDirection: 'row',
59
+ alignItems: 'center',
60
+ borderRadius: BORDER_RADIUS[400],
61
+ backgroundColor: COLORS.NEUTRAL_1,
62
+ paddingLeft: SPACING[400],
63
+ paddingRight: SPACING[200],
64
+ gap: SPACING[100]
65
+ },
66
+ progressContainer: {
67
+ height: 50,
68
+ flexGrow: 1,
69
+ backgroundColor: COLORS.NEUTRAL_5,
70
+ borderRadius: 90,
71
+ overflow: 'hidden'
72
+ },
73
+ progress: {
74
+ position: 'absolute',
75
+ left: -12,
76
+ height: '100%',
77
+ backgroundColor: COLORS.PRIMARY_BLUE,
78
+ borderRadius: BORDER_RADIUS[200],
79
+ justifyContent: 'center',
80
+ alignItems: 'flex-end',
81
+ paddingRight: 10.6,
82
+ overflow: 'hidden'
83
+ },
84
+ confetti: {
85
+ width: 75,
86
+ height: 70,
87
+ marginHorizontal: SPACING[200]
88
+ },
89
+ percent: {
90
+ color: COLORS.NEUTRAL_1,
91
+ fontWeight: '700'
92
+ }
93
+ });
94
+ //# sourceMappingURL=Progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","View","React","BORDER_RADIUS","COLORS","HeadingVariants","SPACING","Typography","Animated","useAnimatedStyle","interpolate","jsx","_jsx","MIN_WIDTH_FOR_ONE_DIGIT","MIN_WIDTH_FOR_TWO_DIGITS","ADJUSTMENT_FOR_HUNDRED_PERCENT","Progress","progress","completedPercent","progressLineWidth","animatedStyles","width","value","style","styles","backgroundContainer","children","container","progressContainer","variant","H1","percent","create","backgroundColor","borderRadius","padding","height","flexDirection","alignItems","NEUTRAL_1","paddingLeft","paddingRight","gap","flexGrow","NEUTRAL_5","overflow","position","left","PRIMARY_BLUE","justifyContent","confetti","marginHorizontal","color","fontWeight"],"sourceRoot":"../../../../../src","sources":["features/gifCelebrations/components/Progress.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,KAAK,MAAM,OAAO;AACzB,SACEC,aAAa,EACbC,MAAM,EACNC,eAAe,EACfC,OAAO,EACPC,UAAU,QACL,4BAA4B;AACnC,OAAOC,QAAQ,IAAIC,gBAAgB,EAAeC,WAAW,QAAQ,yBAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAG9F,MAAMC,uBAAuB,GAAG,EAAE;AAClC,MAAMC,wBAAwB,GAAG,EAAE;AACnC,MAAMC,8BAA8B,GAAG,GAAG;AAO1C,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAgC,CAAC,KAAK;EACzE,MAAMC,iBAAiB,GAAG,CAAC,MAAM;IAC/B,IAAID,gBAAgB,KAAK,GAAG,EAAE;MAC5B,OAAOA,gBAAgB,GAAGH,8BAA8B;IAC1D;IACA,IAAIG,gBAAgB,IAAI,CAAC,EAAE;MACzB,OAAOL,uBAAuB;IAChC;IACA,IAAIK,gBAAgB,IAAI,EAAE,EAAE;MAC1B,OAAOJ,wBAAwB;IACjC;IACA,OAAOI,gBAAgB;EACzB,CAAC,EAAE,CAAC;EAEJ,MAAME,cAAc,G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mC,SAAS;IACjCC,WAAW,EAAElC,OAAO,CAAC,GAAG,CAAC;IACzBmC,YAAY,EAAEnC,OAAO,CAAC,GAAG,CAAC;IAC1BoC,GAAG,EAAEpC,OAAO,CAAC,GAAG;EAClB,CAAC;EACDsB,iBAAiB,EAAE;IACjBQ,MAAM,EAAE,EAAE;IACVO,QAAQ,EAAE,CAAC;IACXV,eAAe,EAAE7B,MAAM,CAACwC,SAAS;IACjCV,YAAY,EAAE,EAAE;IAChBW,QAAQ,EAAE;EACZ,CAAC;EACD5B,QAAQ,EAAE;IACR6B,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC,EAAE;IACTX,MAAM,EAAE,MAAM;IACdH,eAAe,EAAE7B,MAAM,CAAC4C,YAAY;IACpCd,YAAY,EAAE/B,aAAa,CAAC,GAAG,CAAC;IAChC8C,cAAc,EAAE,QAAQ;IACxBX,UAAU,EAAE,UAAU;IACtBG,YAAY,EAAE,IAAI;IAClBI,QAAQ,EAAE;EACZ,CAAC;EACDK,QAAQ,EAAE;IACR7B,KAAK,EAAE,EAAE;IACTe,MAAM,EAAE,EAAE;IACVe,gBAAgB,EAAE7C,OAAO,CAAC,GAAG;EAC/B,CAAC;EACDyB,OAAO,EAAE;IACPqB,KAAK,EAAEhD,MAAM,CAACmC,SAAS;IACvBc,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ export const BACKDROP_COLOR = {
4
+ INITIAL: 'rgba(51, 51, 51, 0)',
5
+ FINAL: 'rgba(51, 51, 51, 0.66)'
6
+ };
7
+ export const CONTENT_CONTAINER = {
8
+ ANGLE: 5,
9
+ CONTAINER_WIDTH: 769,
10
+ SAFE_AREA: 44 // to be sure that the content is not cut off on the edges because of rotate transform
11
+ };
12
+ export const ANIMATION_DURATION = 1750;
13
+ export const MIN_PROBLEMS_TO_SHOW_GIF = 6;
14
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["BACKDROP_COLOR","INITIAL","FINAL","CONTENT_CONTAINER","ANGLE","CONTAINER_WIDTH","SAFE_AREA","ANIMATION_DURATION","MIN_PROBLEMS_TO_SHOW_GIF"],"sourceRoot":"../../../../src","sources":["features/gifCelebrations/constants.ts"],"mappings":";;AAAA,OAAO,MAAMA,cAAc,GAAG;EAC5BC,OAAO,EAAE,qBAAqB;EAC9BC,KAAK,EAAE;AACT,CAAC;AAED,OAAO,MAAMC,iBAAiB,GAAG;EAC/BC,KAAK,EAAE,CAAC;EACRC,eAAe,EAAE,GAAG;EACpBC,SAAS,EAAE,EAAE,CAAE;AACjB,CAAC;AAED,OAAO,MAAMC,kBAAkB,GAAG,IAAI;AACtC,OAAO,MAAMC,wBAAwB,GAAG,CAAC","ignoreList":[]}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ // Number of problems When we show gif
4
+ // <6 Never
5
+ // 7-12 50% completion
6
+ // 13-18 33%, 66% completion
7
+ // 19-24 25%, 50%, 75 completion
8
+ // 25-30 20%, 40%, 60%, 80% completion
9
+ // .>30 15%, 30%, 45%, 60%, 75% completion
10
+
11
+ // We are also going to have different buckets with different gifs. The logic is as follows:
12
+ // Group 1: 15%, 20%, 25%, 30% - Early celebrations
13
+ // Group 2: 33%, 40%, 45%, 50% - Mid celebrations
14
+ // Group 3: 60%, 66%, 75%, 80% - Party
15
+
16
+ export const gifSelect = ({
17
+ gifsGroups,
18
+ resolvedProblem,
19
+ totalProblems
20
+ }) => {
21
+ if (totalProblems < 7) return null;
22
+ const group = Math.ceil(resolvedProblem / totalProblems * 100);
23
+ if (group <= 20) return gifsGroups.group1[Math.floor(Math.random() * gifsGroups.group1.length)];
24
+ if (group <= 40) return gifsGroups.group2[Math.floor(Math.random() * gifsGroups.group2.length)];
25
+ if (group <= 60) return gifsGroups.group3[Math.floor(Math.random() * gifsGroups.group3.length)];
26
+ return null;
27
+ };
28
+ export const calculatePercentageTable = totalProblems => {
29
+ if (totalProblems <= 12) return {
30
+ 50: Math.ceil(totalProblems * 0.5)
31
+ };
32
+ if (totalProblems <= 18) {
33
+ return {
34
+ 33: Math.ceil(totalProblems * 0.33),
35
+ 66: Math.ceil(totalProblems * 0.66)
36
+ };
37
+ }
38
+ if (totalProblems <= 24) {
39
+ return {
40
+ 25: Math.ceil(totalProblems * 0.25),
41
+ 50: Math.ceil(totalProblems * 0.5),
42
+ 75: Math.ceil(totalProblems * 0.75)
43
+ };
44
+ }
45
+ if (totalProblems <= 30) {
46
+ return {
47
+ 20: Math.ceil(totalProblems * 0.2),
48
+ 40: Math.ceil(totalProblems * 0.4),
49
+ 60: Math.ceil(totalProblems * 0.6),
50
+ 80: Math.ceil(totalProblems * 0.8)
51
+ };
52
+ }
53
+ return {
54
+ 15: Math.ceil(totalProblems * 0.15),
55
+ 30: Math.ceil(totalProblems * 0.3),
56
+ 45: Math.ceil(totalProblems * 0.45),
57
+ 60: Math.ceil(totalProblems * 0.6),
58
+ 75: Math.ceil(totalProblems * 0.75)
59
+ };
60
+ };
61
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["gifSelect","gifsGroups","resolvedProblem","totalProblems","group","Math","ceil","group1","floor","random","length","group2","group3","calculatePercentageTable"],"sourceRoot":"../../../../src","sources":["features/gifCelebrations/helpers.ts"],"mappings":";;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,SAAS,GAAGA,CAAC;EAAEC,UAAU;EAAEC,eAAe;EAAEC;AAA8B,CAAC,KAAK;EAC3F,IAAIA,aAAa,GAAG,CAAC,EAAE,OAAO,IAAI;EAElC,MAAMC,KAAK,GAAGC,IAAI,CAACC,IAAI,CAAEJ,eAAe,GAAGC,aAAa,GAAI,GAAG,CAAC;EAEhE,IAAIC,KAAK,IAAI,EAAE,EAAE,OAAOH,UAAU,CAACM,MAAM,CAACF,IAAI,CAACG,KAAK,CAACH,IAAI,CAACI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AG,GAAG,CAAC;MAClC,EAAE,EAAEE,IAAI,CAACC,IAAI,CAACH,aAAa,GAAG,GAAG,CAAC;MAClC,EAAE,EAAEE,IAAI,CAACC,IAAI,CAACH,aAAa,GAAG,GAAG;IACnC,CAAC;EACH;EAEA,OAAO;IACL,EAAE,EAAEE,IAAI,CAACC,IAAI,CAACH,aAAa,GAAG,IAAI,CAAC;IACnC,EAAE,EAAEE,IAAI,CAACC,IAAI,CAACH,aAAa,GAAG,GAAG,CAAC;IAClC,EAAE,EAAEE,IAAI,CAACC,IAAI,CAACH,aAAa,GAAG,IAAI,CAAC;IACnC,EAAE,EAAEE,IAAI,CAACC,IAAI,CAACH,aAAa,GAAG,GAAG,CAAC;IAClC,EAAE,EAAEE,IAAI,CAACC,IAAI,CAACH,aAAa,GAAG,IAAI;EACpC,CAAC;AACH,CAAC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ export { GifCelebrations } from "./GifCelebrations.js";
4
+ export { GifCelebrationsModel } from "./model/GifCelebrations.model.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GifCelebrations","GifCelebrationsModel"],"sourceRoot":"../../../../src","sources":["features/gifCelebrations/index.ts"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,sBAAmB;AACnD,SAASC,oBAAoB,QAAQ,kCAA+B","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ import { createEvent, createStore } from 'effector';
4
+ export class GifCelebrationsCache {
5
+ initialSet = createEvent();
6
+ set = createEvent();
7
+ reset = createEvent();
8
+ $gifs = createStore(null).reset(this.reset).on(this.initialSet, (_, gifs) => Object.fromEntries(Object.entries(gifs).map(([key, value]) => [key, value.map(url => ({
9
+ url,
10
+ isShown: false,
11
+ group: key
12
+ }))]))).on(this.set, (_, gifs) => gifs);
13
+ }
14
+ //# sourceMappingURL=GifCelebrations.cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createEvent","createStore","GifCelebrationsCache","initialSet","set","reset","$gifs","on","_","gifs","Object","fromEntries","entries","map","key","value","url","isShown","group"],"sourceRoot":"../../../../../src","sources":["features/gifCelebrations/model/GifCelebrations.cache.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,WAAW,QAAQ,UAAU;AAGnD,OAAO,MAAMC,oBAAoB,CAAC;EAChBC,UAAU,GAAGH,WAAW,CAAa,CAAC;EACtCI,GAAG,GAAGJ,WAAW,CAAgB,CAAC;EAClCK,KAAK,GAAGL,WAAW,CAAC,CAAC;EAErBM,KAAK,GAAGL,WAAW,CAAuB,IAAI,CAAC,CAC5DI,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC,CACjBE,EAAE,CAAC,IAAI,CAACJ,UAAU,EAAE,CAACK,CAAC,EAAEC,IAAI,KAC3BC,MAAM,CAACC,WAAW,CAChBD,MAAM,CAACE,OAAO,CAACH,IAAI,CAAC,CAACI,GAAG,CAAC,CAAC,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK,CACzCD,GAAG,EACHC,KAAK,CAACF,GAAG,CAAEG,GAAG,KAAM;IAClBA,GAAG;IACHC,OAAO,EAAE,KAAK;IACdC,KAAK,EAAEJ;EACT,CAAC,CAAC,CAAC,CACJ,CACH,CACF,CAAC,CACAP,EAAE,CAAC,IAAI,CAACH,GAAG,EAAE,CAACI,CAAC,EAAEC,IAAI,KAAKA,IAAI,CAAC;AACpC","ignoreList":[]}
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+
3
+ import { createEffect, createEvent, createStore, sample } from 'effector';
4
+ import { GifCelebrationsApi } from "./GifCelebrationsApi.js";
5
+ import { GifCelebrationsCache } from "./GifCelebrations.cache.js";
6
+ import { calculatePercentageTable } from "../helpers.js";
7
+ import { Image } from 'react-native';
8
+ import { MIN_PROBLEMS_TO_SHOW_GIF } from "../constants.js";
9
+ const GROUPS_PERCENTAGES = {
10
+ group1: [15, 20, 25, 30],
11
+ // Early celebrations
12
+ group2: [33, 40, 45, 50],
13
+ // Mid celebrations
14
+ group3: [60, 66, 75, 80] // Party
15
+ };
16
+ export class GifCelebrationsModel {
17
+ triggerPlay = createEvent();
18
+ stop = createEvent();
19
+ resetPercentageTable = createEvent();
20
+ $problemsPercentageTable = createStore(null).reset(this.resetPercentageTable);
21
+ setActiveGif = createEvent();
22
+ $activeGif = createStore(null).reset(this.stop).on(this.setActiveGif, (_, gif) => gif);
23
+ initialize = createEvent();
24
+ resetGroupGifs = createEvent();
25
+ constructor({
26
+ api,
27
+ totalProblems,
28
+ resolvedProblems
29
+ }) {
30
+ this.api = new GifCelebrationsApi(api);
31
+ this.cache = new GifCelebrationsCache();
32
+ this.$totalProblems = totalProblems;
33
+ this.$resolvedProblems = resolvedProblems;
34
+ this.setupEventHandlers();
35
+ }
36
+ setupEventHandlers() {
37
+ sample({
38
+ source: this.api.getGifsFx.doneData,
39
+ fn: response => response.ok ? response.data : (() => {
40
+ throw new Error('Failed to fetch GIFs');
41
+ })(),
42
+ target: createEffect(data => {
43
+ Object.values(data).forEach(group => {
44
+ group.forEach(gifUrl => {
45
+ Image.prefetch(gifUrl);
46
+ });
47
+ });
48
+ console.log('data: ', data);
49
+ this.cache.initialSet(data);
50
+ })
51
+ });
52
+ sample({
53
+ clock: this.initialize,
54
+ source: this.cache.$gifs,
55
+ filter: gifs => !gifs,
56
+ target: this.api.getGifsFx
57
+ });
58
+ sample({
59
+ //todo: fix types
60
+ //@ts-ignore
61
+ clock: this.initialize,
62
+ source: this.$totalProblems,
63
+ filter: totalProblems => totalProblems && totalProblems >= MIN_PROBLEMS_TO_SHOW_GIF,
64
+ fn: totalProblems => calculatePercentageTable(totalProblems),
65
+ target: this.$problemsPercentageTable
66
+ });
67
+ sample({
68
+ clock: this.triggerPlay,
69
+ source: {
70
+ gifsGroups: this.cache.$gifs,
71
+ resolvedProblem: this.$resolvedProblems,
72
+ problemsPercentageTable: this.$problemsPercentageTable
73
+ },
74
+ filter: ({
75
+ gifsGroups,
76
+ resolvedProblem,
77
+ problemsPercentageTable
78
+ }) => !!(gifsGroups && resolvedProblem !== undefined && problemsPercentageTable),
79
+ fn: sources => sources,
80
+ target: this.handleGifSelection
81
+ });
82
+ }
83
+ handleGifSelection = createEffect(({
84
+ gifsGroups,
85
+ resolvedProblem,
86
+ problemsPercentageTable
87
+ }) => {
88
+ // Find which percentage milestone this resolved problem represents
89
+ const percentageMilestone = Object.keys(problemsPercentageTable).find(key => problemsPercentageTable[Number(key)] === resolvedProblem);
90
+ if (!percentageMilestone) return null;
91
+
92
+ // Find which group this percentage belongs to
93
+ const groupName = this.findGroupForPercentage(Number(percentageMilestone));
94
+ if (!groupName) return null;
95
+
96
+ // Get available gifs for this group
97
+ const gifsForGroup = gifsGroups[groupName];
98
+ console.log('gifsForGroup: ', gifsForGroup);
99
+ if (!gifsForGroup || gifsForGroup.length === 0) return null;
100
+
101
+ // Find the first gif that hasn't been shown yet
102
+ const unusedGifIndex = gifsForGroup.findIndex(gif => !gif.isShown);
103
+
104
+ // If all gifs have been shown, reset the group and start from the beginning
105
+ if (unusedGifIndex === -1) {
106
+ // Reset the group by setting all gifs to isShown: false
107
+ const updatedGifsGroups = {
108
+ ...gifsGroups
109
+ };
110
+ updatedGifsGroups[groupName] = gifsGroups[groupName].map(gif => ({
111
+ ...gif,
112
+ isShown: false
113
+ }));
114
+ // Select the first gif from the group
115
+ const gifObject = {
116
+ ...updatedGifsGroups[groupName][0],
117
+ isShown: true
118
+ };
119
+ updatedGifsGroups[groupName][0].isShown = true;
120
+ this.setActiveGif(gifObject);
121
+ // Update the cache with the shown gif
122
+ this.cache.set(updatedGifsGroups);
123
+ }
124
+
125
+ // Otherwise, use the first unused gif
126
+ const selectedGif = gifsForGroup[unusedGifIndex];
127
+
128
+ // Create a new gif object with isShown set to true
129
+ const gifObject = {
130
+ ...selectedGif,
131
+ isShown: true
132
+ };
133
+
134
+ // Update the cache with the shown gif
135
+ const updatedGifsGroups = {
136
+ ...gifsGroups
137
+ };
138
+ updatedGifsGroups[groupName][unusedGifIndex].isShown = true;
139
+ this.cache.set(updatedGifsGroups);
140
+ this.setActiveGif(gifObject);
141
+ });
142
+ findGroupForPercentage(percentage) {
143
+ return Object.keys(GROUPS_PERCENTAGES).find(key => GROUPS_PERCENTAGES[key].includes(percentage));
144
+ }
145
+ }
146
+ //# sourceMappingURL=GifCelebrations.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createEffect","createEvent","createStore","sample","GifCelebrationsApi","GifCelebrationsCache","calculatePercentageTable","Image","MIN_PROBLEMS_TO_SHOW_GIF","GROUPS_PERCENTAGES","group1","group2","group3","GifCelebrationsModel","triggerPlay","stop","resetPercentageTable","$problemsPercentageTable","reset","setActiveGif","$activeGif","on","_","gif","initialize","resetGroupGifs","constructor","api","totalProblems","resolvedProblems","cache","$totalProblems","$resolvedProblems","setupEventHandlers","source","getGifsFx","doneData","fn","response","ok","data","Error","target","Object","values","forEach","group","gifUrl","prefetch","console","log","initialSet","clock","$gifs","filter","gifs","gifsGroups","resolvedProblem","problemsPercentageTable","undefined","sources","handleGifSelection","percentageMilestone","keys","find","key","Number","groupName","findGroupForPercentage","gifsForGroup","length","unusedGifIndex","findIndex","isShown","updatedGifsGroups","map","gifObject","set","selectedGif","percentage","includes"],"sourceRoot":"../../../../../src","sources":["features/gifCelebrations/model/GifCelebrations.model.ts"],"mappings":";;AAAA,SAASA,YAAY,EAAEC,WAAW,EAAEC,WAAW,EAAEC,MAAM,QAAe,UAAU;AAChF,SAASC,kBAAkB,QAAQ,yBAAsB;AAQzD,SAASC,oBAAoB,QAAQ,4BAAyB;AAC9D,SAASC,wBAAwB,QAAQ,eAAY;AACrD,SAASC,KAAK,QAAQ,cAAc;AACpC,SAASC,wBAAwB,QAAQ,iBAAc;AAEvD,MAAMC,kBAAkB,GAAG;EACzBC,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;EAAE;EAC1BC,MAAM,EAAE,CAAC,EAAE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AAC,CAAC;MACH;MACA,MAAMG,SAAoB,GAAG;QAC3B,GAAGF,iBAAiB,CAACP,SAAS,CAAC,CAAC,CAAC,CAAC;QAClCM,OAAO,EAAE;MACX,CAAC;MACDC,iBAAiB,CAACP,SAAS,CAAC,CAAC,CAAC,CAAC,CAACM,OAAO,GAAG,IAAI;MAE9C,IAAI,CAACtD,YAAY,CAACyD,SAAS,CAAC;MAC5B;MACA,IAAI,CAAC9C,KAAK,CAAC+C,GAAG,CAACH,iBAAiB,CAAC;IACnC;;IAEA;IACA,MAAMI,WAAW,GAAGT,YAAY,CAACE,cAAc,CAAC;;IAEhD;IACA,MAAMK,SAAoB,GAAG;MAC3B,GAAGE,WAAW;MACdL,OAAO,EAAE;IACX,CAAC;;IAED;IACA,MAAMC,iBAAiB,GAAG;MAAE,GAAGlB;IAAW,CAAC;IAC3CkB,iBAAiB,CAACP,SAAS,CAAC,CAACI,cAAc,CAAC,CAACE,OAAO,GAAG,IAAI;IAC3D,IAAI,CAAC3C,KAAK,CAAC+C,GAAG,CAACH,iBAAiB,CAAC;IAEjC,IAAI,CAACvD,YAAY,CAACyD,SAAS,CAAC;EAC9B,CACF,CAAC;EAEOR,sBAAsBA,CAACW,UAAkB,EAAsB;IACrE,OAAOpC,MAAM,CAACoB,IAAI,CAACtD,kBAAkB,CAAC,CAACuD,IAAI,CAAEC,GAAG,IAC9CxD,kBAAkB,CAACwD,GAAG,CAAoC,CAACe,QAAQ,CAACD,UAAU,CAChF,CAAC;EACH;AACF","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ import { createControllerEffect } from "./../../../lib/effector/createControllerEffect.js";
4
+ export class GifCelebrationsApi {
5
+ constructor(api) {
6
+ this.getGifsFx = createControllerEffect(api.getGifs);
7
+ }
8
+ }
9
+ //# sourceMappingURL=GifCelebrationsApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createControllerEffect","GifCelebrationsApi","constructor","api","getGifsFx","getGifs"],"sourceRoot":"../../../../../src","sources":["features/gifCelebrations/model/GifCelebrationsApi.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,mDAAgD;AAGvF,OAAO,MAAMC,kBAAkB,CAAC;EAG9BC,WAAWA,CAACC,GAA8B,EAAE;IAC1C,IAAI,CAACC,SAAS,GAAGJ,sBAAsB,CAACG,GAAG,CAACE,OAAO,CAAC;EACtD;AACF","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=model.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["features/gifCelebrations/types/model.types.ts"],"mappings":"","ignoreList":[]}
@@ -8,4 +8,5 @@ export * from "./features/celebrations/index.js";
8
8
  export * from "./features/endOfAssignment/index.js";
9
9
  export * from "./features/formulaSheet/index.js";
10
10
  export * from "./features/problemSelector/index.js";
11
+ export * from "./features/gifCelebrations/index.js";
11
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useFeaturesLocalization","setFeaturesLocalization","Locale","generateRandomId"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,uBAAuB,EAAEC,uBAAuB,EAAEC,MAAM,QAAQ,+BAAsB;AAC/F,SAASC,gBAAgB,QAAQ,0BAAuB;AACxD,cAAc,6BAAoB;AAClC,cAAc,8BAAqB;AACnC,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,kCAAyB;AACvC,cAAc,qCAA4B","ignoreList":[]}
1
+ {"version":3,"names":["useFeaturesLocalization","setFeaturesLocalization","Locale","generateRandomId"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,uBAAuB,EAAEC,uBAAuB,EAAEC,MAAM,QAAQ,+BAAsB;AAC/F,SAASC,gBAAgB,QAAQ,0BAAuB;AACxD,cAAc,6BAAoB;AAClC,cAAc,8BAAqB;AACnC,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,qCAA4B","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ import { useEffect } from 'react';
4
+ export const useImagePreloader = imageUrls => {
5
+ useEffect(() => {
6
+ imageUrls.forEach(url => {
7
+ const img = new Image();
8
+ img.src = url;
9
+ img.onload = () => {
10
+ console.log(`Image loaded: ${url}`);
11
+ };
12
+ });
13
+ }, [imageUrls]);
14
+ };
15
+ //# sourceMappingURL=useImagePreloader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useEffect","useImagePreloader","imageUrls","forEach","url","img","Image","src","onload","console","log"],"sourceRoot":"../../../../src","sources":["shared/hooks/useImagePreloader.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,OAAO;AAIjC,OAAO,MAAMC,iBAAiB,GAAIC,SAAqB,IAAK;EAC1DF,SAAS,CAAC,MAAM;IACdE,SAAS,CAACC,OAAO,CAAEC,GAAG,IAAK;MACzB,MAAMC,GAAG,GAAG,IAAIC,KAAK,CAAC,CAAC;MACvBD,GAAG,CAACE,GAAG,GAAGH,GAAG;MACbC,GAAG,CAACG,MAAM,GAAG,MAAM;QACjBC,OAAO,CAACC,GAAG,CAAC,iBAAiBN,GAAG,EAAE,CAAC;MACrC,CAAC;IACH,CAAC,CAAC;EACJ,CAAC,EAAE,CAACF,SAAS,CAAC,CAAC;AACjB,CAAC","ignoreList":[]}
@@ -13,9 +13,8 @@
13
13
  "time.yearsAgo": "years ago",
14
14
  "chat": {
15
15
  "anotherHint": "Give me another hint",
16
- "giveHint": "Give me a hint",
17
16
  "answerAgain": "Answer again to get another hint!",
18
- "errorMessage": "Something went wrong! Try again",
17
+ "errorMessage": "Sorry, I can't help with this issue at the moment 😔.",
19
18
  "howCanIHelp": "Hi! Do you want help?",
20
19
  "showError": "Show error"
21
20
  }
@@ -13,9 +13,8 @@
13
13
  "time.yearsAgo": "years ago",
14
14
  "chat": {
15
15
  "anotherHint": "Give me another hint",
16
- "giveHint": "Give me a hint",
17
16
  "answerAgain": "Answer again to get another hint!",
18
- "errorMessage": "Something went wrong! Try again",
17
+ "errorMessage": "Sorry, I can't help with this issue at the moment 😔.",
19
18
  "howCanIHelp": "Hi! Do you want help?",
20
19
  "showError": "Show error"
21
20
  }
@@ -13,9 +13,8 @@
13
13
  "time.yearsAgo": "år sedan",
14
14
  "chat": {
15
15
  "anotherHint": "Ge mig en ledtråd",
16
- "giveHint": "Ge mig en ledtråd",
17
16
  "answerAgain": "Svara igen för att få en till ledtråd!",
18
- "errorMessage": "Något gick snett! Försök igen",
17
+ "errorMessage": "Tyvärr kan jag inte hjälpa dig just nu 😔.",
19
18
  "howCanIHelp": "Hej! Hur kan jag hjälpa dig?",
20
19
  "showError": "Visa fel"
21
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ChatBoxTextManager.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatBoxTextManager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAGtD,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAEe;IAE/C,SAAgB,QAAQ,EAAE,eAAe,CAOxC;CACF"}
1
+ {"version":3,"file":"ChatBoxTextManager.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatBoxTextManager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAGtD,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAEe;IAE/C,SAAgB,QAAQ,EAAE,eAAe,CAKxC;CACF"}
@@ -6,7 +6,6 @@ type ChatMessage = Omit<PostMessageResponse, 'threadId'> & {
6
6
  isOwnMessage: boolean;
7
7
  };
8
8
  type DefaultMessageSettings = {
9
- options?: ChatAnswer[];
10
9
  isOwn?: boolean;
11
10
  };
12
11
  type DefaultMessageCreatorProps<K extends string> = {
@@ -16,7 +15,7 @@ export declare class DefaultMessagesCreator<K extends string> {
16
15
  private readonly list;
17
16
  private readonly getter;
18
17
  constructor({ textGetter }: DefaultMessageCreatorProps<K>);
19
- createMessage(key: K, { isOwn, options }?: DefaultMessageSettings): ChatMessage;
18
+ createMessage(key: K, { isOwn }?: DefaultMessageSettings): ChatMessage;
20
19
  createOption(key: K): ChatAnswer;
21
20
  bindToLanguageChanged(event: Event<unknown>): this;
22
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultMessageCreator.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/DefaultMessageCreator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,KAAK,WAAW,GAAG,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,GAAG;IACzD,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,KAAK,sBAAsB,GAAG;IAC5B,OAAO,CAAC,EAAE,UAAU,EAAE,CAAA;IACtB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,KAAK,0BAA0B,CAAC,CAAC,SAAS,MAAM,IAAI;IAClD,UAAU,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAA;CAC/B,CAAA;AAED,qBAAa,sBAAsB,CAAC,CAAC,SAAS,MAAM;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyC;IAC9D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAA;gBAEX,EAAE,UAAU,EAAE,EAAE,0BAA0B,CAAC,CAAC,CAAC;IAIlD,aAAa,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,KAAa,EAAE,OAAY,EAAE,GAAE,sBAA2B;IAWlF,YAAY,CAAC,GAAG,EAAE,CAAC;IAUnB,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;CAYnD"}
1
+ {"version":3,"file":"DefaultMessageCreator.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/DefaultMessageCreator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,KAAK,WAAW,GAAG,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,GAAG;IACzD,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,KAAK,sBAAsB,GAAG;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,KAAK,0BAA0B,CAAC,CAAC,SAAS,MAAM,IAAI;IAClD,UAAU,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAA;CAC/B,CAAA;AAED,qBAAa,sBAAsB,CAAC,CAAC,SAAS,MAAM;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyC;IAC9D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAA;gBAEX,EAAE,UAAU,EAAE,EAAE,0BAA0B,CAAC,CAAC,CAAC;IAIlD,aAAa,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,KAAa,EAAE,GAAE,sBAA2B;IAWpE,YAAY,CAAC,GAAG,EAAE,CAAC;IASnB,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;CAYnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB;;CAEnC,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB;;CAEnC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,aAAa,EAAmB,KAAK,EAAE,MAAM,UAAU,CAAA;AAOnG,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAOzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,KAAK,uBAAuB,GAAG;IAC7B,GAAG,EAAE,UAAU,CAAA;IACf,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACnB,eAAe,EAAE,eAAe,CAAA;IAChC,QAAQ,EAAE,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACtC,iBAAiB,EAAE;QACjB,GAAG,EAAE,aAAa,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;QAClD,MAAM,EAAE,KAAK,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;KAC9C,CAAA;IACD,KAAK,EAAE,eAAe,CAAA;CACvB,CAAA;AAED,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAA;IACpB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAA;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAA;IACzB,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAA;IAChC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAA;IAElC,QAAQ,CAAC,eAAe,yBAAyB;IACjD,QAAQ,CAAC,a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AAQ,CAAC,IAAI,CAAA;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAA;IACzB,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAA;IAChC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAA;IAElC,QAAQ,CAAC,eAAe,yBAAyB;IACjD,QAAQ,CAAC,aAAa,4CAAuC;IAE7D,SAAgB,sBAAsB,gEAAA;IACtC,SAAgB,kBAAkB,iFAAA;gBAEtB,EACV,GAAG,EACH,IAAI,EACJ,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,KAAK,GACN,EAAE,uBAAuB;YAyCZ,gBAAgB;IAmB9B,OAAO,CAAC,4BAA4B;IAIpC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAgDhC;IAED,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CA4BnC;IAEM,KAAK;CAGb"}
@@ -1 +1 @@
1
- {"version":3,"file":"ModalBackground.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/Modal/ModalBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAczB,eAAO,MAAM,eAAe,yBAa3B,CAAA"}
1
+ {"version":3,"file":"ModalBackground.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/Modal/ModalBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,eAAO,MAAM,eAAe,yBAS3B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { GifCelebrationsModel } from './model/GifCelebrations.model';
3
+ type GifCelebrationsProps = {
4
+ model: GifCelebrationsModel;
5
+ };
6
+ export declare const GifCelebrations: ({ model }: GifCelebrationsProps) => React.JSX.Element | null;
7
+ export {};
8
+ //# sourceMappingURL=GifCelebrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GifCelebrations.d.ts","sourceRoot":"","sources":["../../../../../src/features/gifCelebrations/GifCelebrations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAQxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AAEpE,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,oBAAoB,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,eAAe,cAAe,oBAAoB,6BA4D9D,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { SharedValue } from 'react-native-reanimated';
3
+ type BackdropProps = {
4
+ children: React.ReactNode;
5
+ progress: SharedValue<number>;
6
+ };
7
+ export declare const Backdrop: ({ children, progress }: BackdropProps) => React.JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=Backdrop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Backdrop.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/components/Backdrop.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAiB,EAAsC,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAGnG,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,QAAQ,2BAA4B,aAAa,sBAmB7D,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { SharedValue } from 'react-native-reanimated';
3
+ type ContentContainerProps = {
4
+ children: React.ReactNode;
5
+ progress: SharedValue<number>;
6
+ };
7
+ export declare const ContentContainer: ({ children, progress }: ContentContainerProps) => React.JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=ContentContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/components/ContentContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAiB,EAAiC,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAG9F,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,gBAAgB,2BAA4B,qBAAqB,sBAsB7E,CAAA"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type GifProps = {
3
+ uri: string;
4
+ };
5
+ export declare const Gif: ({ uri }: GifProps) => React.JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=Gif.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Gif.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/components/Gif.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoC,MAAM,OAAO,CAAA;AAMxD,KAAK,QAAQ,GAAG;IACd,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAOD,eAAO,MAAM,GAAG,YAAa,QAAQ,sBA2BpC,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { SharedValue } from 'react-native-reanimated';
3
+ type ProgressProps = {
4
+ progress: SharedValue<number>;
5
+ completedPercent: number;
6
+ };
7
+ export declare const Progress: ({ progress, completedPercent }: ProgressProps) => React.JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=Progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/components/Progress.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,OAAiB,EAAoB,WAAW,EAAe,MAAM,yBAAyB,CAAA;AAO9F,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC7B,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,QAAQ,mCAAoC,aAAa,sBAuCrE,CAAA"}
@@ -0,0 +1,12 @@
1
+ export declare const BACKDROP_COLOR: {
2
+ INITIAL: string;
3
+ FINAL: string;
4
+ };
5
+ export declare const CONTENT_CONTAINER: {
6
+ ANGLE: number;
7
+ CONTAINER_WIDTH: number;
8
+ SAFE_AREA: number;
9
+ };
10
+ export declare const ANIMATION_DURATION = 1750;
11
+ export declare const MIN_PROBLEMS_TO_SHOW_GIF = 6;
12
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/gifCelebrations/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;CAG1B,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;CAI7B,CAAA;AAED,eAAO,MAAM,kBAAkB,OAAO,CAAA;AACtC,eAAO,MAAM,wBAAwB,IAAI,CAAA"}