@cuemath/web-utils 0.0.1-beta.5 → 0.0.1-beta.6

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 (159) hide show
  1. package/.vscode/settings.json +1 -0
  2. package/dist/constants/country/index.d.ts +2 -0
  3. package/dist/constants/country/index.js +7 -0
  4. package/dist/constants/country/index.js.map +1 -0
  5. package/dist/constants/country/iso-country-code.d.ts +248 -0
  6. package/dist/constants/country/iso-country-code.js +252 -0
  7. package/dist/constants/country/iso-country-code.js.map +1 -0
  8. package/dist/constants/date-time/index.d.ts +17 -0
  9. package/dist/constants/date-time/index.js +42 -0
  10. package/dist/constants/date-time/index.js.map +1 -0
  11. package/dist/constants/date-time/international-timezones.d.ts +7 -0
  12. package/dist/constants/date-time/international-timezones.js +155 -0
  13. package/dist/constants/date-time/international-timezones.js.map +1 -0
  14. package/dist/constants/e-cna/index.d.ts +35 -0
  15. package/dist/constants/e-cna/index.js +39 -0
  16. package/dist/constants/e-cna/index.js.map +1 -0
  17. package/dist/constants/index.d.ts +2 -0
  18. package/dist/constants/index.js +19 -0
  19. package/dist/constants/index.js.map +1 -0
  20. package/dist/cookie/index.d.ts +4 -0
  21. package/dist/cookie/index.js +46 -0
  22. package/dist/cookie/index.js.map +1 -0
  23. package/dist/country/index.d.ts +1 -0
  24. package/dist/country/index.js +13 -0
  25. package/dist/country/index.js.map +1 -0
  26. package/dist/date-time-helper/e-cna.d.ts +32 -0
  27. package/dist/date-time-helper/e-cna.js +153 -0
  28. package/dist/date-time-helper/e-cna.js.map +1 -0
  29. package/dist/date-time-helper/index.d.ts +51 -0
  30. package/dist/date-time-helper/index.js +233 -0
  31. package/dist/date-time-helper/index.js.map +1 -0
  32. package/dist/e-cna/flow/aggregator.d.ts +219 -0
  33. package/dist/e-cna/flow/aggregator.js +16 -0
  34. package/dist/e-cna/flow/aggregator.js.map +1 -0
  35. package/dist/e-cna/flow/index.d.ts +1 -0
  36. package/dist/e-cna/flow/index.js +18 -0
  37. package/dist/e-cna/flow/index.js.map +1 -0
  38. package/dist/e-cna/flow/variants/default.d.ts +219 -0
  39. package/dist/e-cna/flow/variants/default.js +28 -0
  40. package/dist/e-cna/flow/variants/default.js.map +1 -0
  41. package/dist/e-cna/flow/variants/index.d.ts +1 -0
  42. package/dist/e-cna/flow/variants/index.js +18 -0
  43. package/dist/e-cna/flow/variants/index.js.map +1 -0
  44. package/dist/e-cna/index.d.ts +43 -0
  45. package/dist/e-cna/index.js +221 -0
  46. package/dist/e-cna/index.js.map +1 -0
  47. package/dist/e-cna/slides/child_hobbies/index.d.ts +1 -0
  48. package/dist/e-cna/slides/child_hobbies/index.js +18 -0
  49. package/dist/e-cna/slides/child_hobbies/index.js.map +1 -0
  50. package/dist/e-cna/slides/child_hobbies/variants.d.ts +12 -0
  51. package/dist/e-cna/slides/child_hobbies/variants.js +16 -0
  52. package/dist/e-cna/slides/child_hobbies/variants.js.map +1 -0
  53. package/dist/e-cna/slides/child_personality/index.d.ts +1 -0
  54. package/dist/e-cna/slides/child_personality/index.js +18 -0
  55. package/dist/e-cna/slides/child_personality/index.js.map +1 -0
  56. package/dist/e-cna/slides/child_personality/variants.d.ts +12 -0
  57. package/dist/e-cna/slides/child_personality/variants.js +16 -0
  58. package/dist/e-cna/slides/child_personality/variants.js.map +1 -0
  59. package/dist/e-cna/slides/curriculum/index.d.ts +1 -0
  60. package/dist/e-cna/slides/curriculum/index.js +18 -0
  61. package/dist/e-cna/slides/curriculum/index.js.map +1 -0
  62. package/dist/e-cna/slides/curriculum/variants.d.ts +12 -0
  63. package/dist/e-cna/slides/curriculum/variants.js +17 -0
  64. package/dist/e-cna/slides/curriculum/variants.js.map +1 -0
  65. package/dist/e-cna/slides/grade/index.d.ts +1 -0
  66. package/dist/e-cna/slides/grade/index.js +18 -0
  67. package/dist/e-cna/slides/grade/index.js.map +1 -0
  68. package/dist/e-cna/slides/grade/variants.d.ts +18 -0
  69. package/dist/e-cna/slides/grade/variants.js +31 -0
  70. package/dist/e-cna/slides/grade/variants.js.map +1 -0
  71. package/dist/e-cna/slides/index.d.ts +17 -0
  72. package/dist/e-cna/slides/index.js +34 -0
  73. package/dist/e-cna/slides/index.js.map +1 -0
  74. package/dist/e-cna/slides/intro/index.d.ts +1 -0
  75. package/dist/e-cna/slides/intro/index.js +18 -0
  76. package/dist/e-cna/slides/intro/index.js.map +1 -0
  77. package/dist/e-cna/slides/intro/variants.d.ts +7 -0
  78. package/dist/e-cna/slides/intro/variants.js +11 -0
  79. package/dist/e-cna/slides/intro/variants.js.map +1 -0
  80. package/dist/e-cna/slides/key_need_l1/index.d.ts +1 -0
  81. package/dist/e-cna/slides/key_need_l1/index.js +18 -0
  82. package/dist/e-cna/slides/key_need_l1/index.js.map +1 -0
  83. package/dist/e-cna/slides/key_need_l1/variants.d.ts +14 -0
  84. package/dist/e-cna/slides/key_need_l1/variants.js +45 -0
  85. package/dist/e-cna/slides/key_need_l1/variants.js.map +1 -0
  86. package/dist/e-cna/slides/key_need_l2/index.d.ts +1 -0
  87. package/dist/e-cna/slides/key_need_l2/index.js +18 -0
  88. package/dist/e-cna/slides/key_need_l2/index.js.map +1 -0
  89. package/dist/e-cna/slides/key_need_l2/variants.d.ts +67 -0
  90. package/dist/e-cna/slides/key_need_l2/variants.js +139 -0
  91. package/dist/e-cna/slides/key_need_l2/variants.js.map +1 -0
  92. package/dist/e-cna/slides/key_need_l3/index.d.ts +1 -0
  93. package/dist/e-cna/slides/key_need_l3/index.js +18 -0
  94. package/dist/e-cna/slides/key_need_l3/index.js.map +1 -0
  95. package/dist/e-cna/slides/key_need_l3/variants.d.ts +11 -0
  96. package/dist/e-cna/slides/key_need_l3/variants.js +15 -0
  97. package/dist/e-cna/slides/key_need_l3/variants.js.map +1 -0
  98. package/dist/e-cna/slides/math-perception/index.d.ts +1 -0
  99. package/dist/e-cna/slides/math-perception/index.js +18 -0
  100. package/dist/e-cna/slides/math-perception/index.js.map +1 -0
  101. package/dist/e-cna/slides/math-perception/variants.d.ts +15 -0
  102. package/dist/e-cna/slides/math-perception/variants.js +32 -0
  103. package/dist/e-cna/slides/math-perception/variants.js.map +1 -0
  104. package/dist/e-cna/slides/other_curriculum/index.d.ts +1 -0
  105. package/dist/e-cna/slides/other_curriculum/index.js +18 -0
  106. package/dist/e-cna/slides/other_curriculum/index.js.map +1 -0
  107. package/dist/e-cna/slides/other_curriculum/variants.d.ts +12 -0
  108. package/dist/e-cna/slides/other_curriculum/variants.js +17 -0
  109. package/dist/e-cna/slides/other_curriculum/variants.js.map +1 -0
  110. package/dist/e-cna/slides/school_performance_5_12/index.d.ts +1 -0
  111. package/dist/e-cna/slides/school_performance_5_12/index.js +18 -0
  112. package/dist/e-cna/slides/school_performance_5_12/index.js.map +1 -0
  113. package/dist/e-cna/slides/school_performance_5_12/variants.d.ts +15 -0
  114. package/dist/e-cna/slides/school_performance_5_12/variants.js +26 -0
  115. package/dist/e-cna/slides/school_performance_5_12/variants.js.map +1 -0
  116. package/dist/e-cna/slides/school_performance_kg_4/index.d.ts +1 -0
  117. package/dist/e-cna/slides/school_performance_kg_4/index.js +18 -0
  118. package/dist/e-cna/slides/school_performance_kg_4/index.js.map +1 -0
  119. package/dist/e-cna/slides/school_performance_kg_4/variants.d.ts +14 -0
  120. package/dist/e-cna/slides/school_performance_kg_4/variants.js +28 -0
  121. package/dist/e-cna/slides/school_performance_kg_4/variants.js.map +1 -0
  122. package/dist/e-cna/slides/secondary_needs/index.d.ts +1 -0
  123. package/dist/e-cna/slides/secondary_needs/index.js +18 -0
  124. package/dist/e-cna/slides/secondary_needs/index.js.map +1 -0
  125. package/dist/e-cna/slides/secondary_needs/variants.d.ts +14 -0
  126. package/dist/e-cna/slides/secondary_needs/variants.js +28 -0
  127. package/dist/e-cna/slides/secondary_needs/variants.js.map +1 -0
  128. package/dist/e-cna/slides/signup/index.d.ts +1 -0
  129. package/dist/e-cna/slides/signup/index.js +18 -0
  130. package/dist/e-cna/slides/signup/index.js.map +1 -0
  131. package/dist/e-cna/slides/signup/variants.d.ts +7 -0
  132. package/dist/e-cna/slides/signup/variants.js +11 -0
  133. package/dist/e-cna/slides/signup/variants.js.map +1 -0
  134. package/dist/e-cna/slides/signup_refer/index.d.ts +1 -0
  135. package/dist/e-cna/slides/signup_refer/index.js +18 -0
  136. package/dist/e-cna/slides/signup_refer/index.js.map +1 -0
  137. package/dist/e-cna/slides/signup_refer/variants.d.ts +12 -0
  138. package/dist/e-cna/slides/signup_refer/variants.js +20 -0
  139. package/dist/e-cna/slides/signup_refer/variants.js.map +1 -0
  140. package/dist/e-cna/slides/slot_pick/index.d.ts +1 -0
  141. package/dist/e-cna/slides/slot_pick/index.js +18 -0
  142. package/dist/e-cna/slides/slot_pick/index.js.map +1 -0
  143. package/dist/e-cna/slides/slot_pick/variants.d.ts +7 -0
  144. package/dist/e-cna/slides/slot_pick/variants.js +11 -0
  145. package/dist/e-cna/slides/slot_pick/variants.js.map +1 -0
  146. package/dist/e-cna/utils/index.d.ts +4 -0
  147. package/dist/e-cna/utils/index.js +28 -0
  148. package/dist/e-cna/utils/index.js.map +1 -0
  149. package/dist/index.d.ts +7 -0
  150. package/dist/index.js.map +1 -0
  151. package/dist/local-storage/index.d.ts +13 -0
  152. package/dist/local-storage/index.js +172 -0
  153. package/dist/local-storage/index.js.map +1 -0
  154. package/dist/object/index.d.ts +6 -0
  155. package/dist/object/index.js +24 -0
  156. package/dist/object/index.js.map +1 -0
  157. package/package.json +4 -8
  158. package/src/date-time-helper/e-cna.ts +1 -1
  159. package/src/date-time-helper/index.ts +26 -85
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./variants"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/math-perception/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,15 @@
1
+ export declare const math_perception: {
2
+ DEFAULT: {
3
+ id: number;
4
+ questionID: string;
5
+ description: string;
6
+ type: string;
7
+ question: string;
8
+ options: {
9
+ value: string;
10
+ logo: string;
11
+ }[];
12
+ readonly defaultNextquestionID: string;
13
+ questionUUID: string;
14
+ };
15
+ };
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.math_perception = void 0;
4
+ const utils_1 = require("../../utils");
5
+ exports.math_perception = {
6
+ DEFAULT: {
7
+ id: 2,
8
+ questionID: 'math_perception',
9
+ description: "It's okay to be anxious, glad or sad about math. We'd like to know so we can be mindful about their needs!",
10
+ type: 'options',
11
+ question: 'How does your child feel about math?',
12
+ options: [
13
+ {
14
+ value: 'ANXIOUS',
15
+ logo: '/static/e-cna-form/anxious-emoji.svg',
16
+ },
17
+ {
18
+ value: 'COMFORTABLE',
19
+ logo: '/static/e-cna-form/comfortable-emoji.svg',
20
+ },
21
+ {
22
+ value: 'LOVES IT',
23
+ logo: '/static/e-cna-form/loves-it-emoji.svg',
24
+ },
25
+ ],
26
+ get defaultNextquestionID() {
27
+ return (0, utils_1.getPerformanceQuestionAccordingToGrade)();
28
+ },
29
+ questionUUID: 'fbb26cf1-1480-4e99-b1e2-3d015bd9c334',
30
+ },
31
+ };
32
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/math-perception/variants.ts"],"names":[],"mappings":";;;AAAA,uCAAqE;AAExD,QAAA,eAAe,GAAG;IAC7B,OAAO,EAAE;QACP,EAAE,EAAE,CAAC;QACL,UAAU,EAAE,iBAAiB;QAC7B,WAAW,EACT,4GAA4G;QAC9G,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,sCAAsC;QAChD,OAAO,EAAE;YACP;gBACE,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,sCAAsC;aAC7C;YACD;gBACE,KAAK,EAAE,aAAa;gBACpB,IAAI,EAAE,0CAA0C;aACjD;YACD;gBACE,KAAK,EAAE,UAAU;gBACjB,IAAI,EAAE,uCAAuC;aAC9C;SACF;QACD,IAAI,qBAAqB;YACvB,OAAO,IAAA,8CAAsC,GAAE,CAAC;QAClD,CAAC;QACD,YAAY,EAAE,sCAAsC;KACrD;CACF,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './variants';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./variants"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/other_curriculum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,12 @@
1
+ export declare const other_curriculum: {
2
+ DEFAULT: {
3
+ id: number;
4
+ questionID: string;
5
+ type: string;
6
+ question: string;
7
+ description: string;
8
+ placeholderText: string;
9
+ questionUUID: string;
10
+ textAreaHeight: string;
11
+ };
12
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.other_curriculum = void 0;
4
+ const constants_1 = require("../../../constants");
5
+ exports.other_curriculum = {
6
+ DEFAULT: {
7
+ id: 17,
8
+ questionID: constants_1.QUESTION_ID.OTHER_CURRICULUM,
9
+ type: 'freeFlowingText',
10
+ question: 'Please enter the curriculum followed at your child’s school',
11
+ description: 'This information will help us find the right tutor for your child.',
12
+ placeholderText: 'Child’s school curriculum',
13
+ questionUUID: 'ea8f4ed7-4214-4dcd-a818-701bf1843626',
14
+ textAreaHeight: '44px',
15
+ },
16
+ };
17
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/other_curriculum/variants.ts"],"names":[],"mappings":";;;AAAA,kDAAiD;AAEpC,QAAA,gBAAgB,GAAG;IAC9B,OAAO,EAAE;QACP,EAAE,EAAE,EAAE;QACN,UAAU,EAAE,uBAAW,CAAC,gBAAgB;QACxC,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,6DAA6D;QACvE,WAAW,EAAE,oEAAoE;QACjF,eAAe,EAAE,2BAA2B;QAC5C,YAAY,EAAE,sCAAsC;QACpD,cAAc,EAAE,MAAM;KACvB;CACF,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './variants';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./variants"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/school_performance_5_12/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,15 @@
1
+ export declare const school_performance_5_12: {
2
+ DEFAULT: {
3
+ id: number;
4
+ questionID: string;
5
+ type: string;
6
+ question: string;
7
+ description: string;
8
+ options: {
9
+ value: string;
10
+ logo: string;
11
+ }[];
12
+ defaultNextquestionID: string;
13
+ questionUUID: string;
14
+ };
15
+ };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.school_performance_5_12 = void 0;
4
+ exports.school_performance_5_12 = {
5
+ DEFAULT: {
6
+ id: 3,
7
+ questionID: 'school_performance_5_12',
8
+ type: 'options',
9
+ question: 'How did they perform at school on their last assessment?',
10
+ description: "Don't worry, we're just trying to understand what would work best for your child, so we can recommend the right program!",
11
+ options: [
12
+ { value: 'BELOW 70%', logo: '/static/e-cna-form/one-star.svg' },
13
+ {
14
+ value: '70% TO 90%',
15
+ logo: '/static/e-cna-form/two-stars.svg',
16
+ },
17
+ {
18
+ value: 'ABOVE 90%',
19
+ logo: '/static/e-cna-form/three-stars.svg',
20
+ },
21
+ ],
22
+ defaultNextquestionID: 'key_need_l1',
23
+ questionUUID: 'eea3d36a-405d-47f3-ba23-ef748bc24298',
24
+ },
25
+ };
26
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/school_performance_5_12/variants.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACrC,OAAO,EAAE;QACP,EAAE,EAAE,CAAC;QACL,UAAU,EAAE,yBAAyB;QACrC,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,0DAA0D;QACpE,WAAW,EACT,0HAA0H;QAC5H,OAAO,EAAE;YACP,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,iCAAiC,EAAE;YAC/D;gBACE,KAAK,EAAE,YAAY;gBACnB,IAAI,EAAE,kCAAkC;aACzC;YACD;gBACE,KAAK,EAAE,WAAW;gBAClB,IAAI,EAAE,oCAAoC;aAC3C;SACF;QACD,qBAAqB,EAAE,aAAa;QACpC,YAAY,EAAE,sCAAsC;KACrD;CACF,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './variants';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./variants"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/school_performance_kg_4/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,14 @@
1
+ export declare const school_performance_kg_4: {
2
+ DEFAULT: {
3
+ id: number;
4
+ questionID: string;
5
+ type: string;
6
+ question: string;
7
+ options: {
8
+ value: string;
9
+ logo: string;
10
+ }[];
11
+ defaultNextquestionID: string;
12
+ questionUUID: string;
13
+ };
14
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.school_performance_kg_4 = void 0;
4
+ exports.school_performance_kg_4 = {
5
+ DEFAULT: {
6
+ id: 4,
7
+ questionID: 'school_performance_kg_4',
8
+ type: 'options_thin',
9
+ question: "What does your child's teacher say about math performance at school?",
10
+ options: [
11
+ {
12
+ value: "Can improve. You've got potential.",
13
+ logo: '/static/e-cna-form/one-star.svg',
14
+ },
15
+ {
16
+ value: 'Pretty good but you can do even better',
17
+ logo: '/static/e-cna-form/two-stars.svg',
18
+ },
19
+ {
20
+ value: "Awesome job! You're on track!",
21
+ logo: '/static/e-cna-form/three-stars.svg',
22
+ },
23
+ ],
24
+ defaultNextquestionID: 'key_need_l1',
25
+ questionUUID: 'a3fdfdf8-6d34-42b9-8bbe-d9568b797881',
26
+ },
27
+ };
28
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/school_performance_kg_4/variants.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACrC,OAAO,EAAE;QACP,EAAE,EAAE,CAAC;QACL,UAAU,EAAE,yBAAyB;QACrC,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,sEAAsE;QAChF,OAAO,EAAE;YACP;gBACE,KAAK,EAAE,oCAAoC;gBAC3C,IAAI,EAAE,iCAAiC;aACxC;YACD;gBACE,KAAK,EAAE,wCAAwC;gBAC/C,IAAI,EAAE,kCAAkC;aACzC;YACD;gBACE,KAAK,EAAE,+BAA+B;gBACtC,IAAI,EAAE,oCAAoC;aAC3C;SACF;QAED,qBAAqB,EAAE,aAAa;QACpC,YAAY,EAAE,sCAAsC;KACrD;CACF,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './variants';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./variants"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/secondary_needs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,14 @@
1
+ export declare const secondary_needs: {
2
+ DEFAULT: {
3
+ id: number;
4
+ questionID: string;
5
+ type: string;
6
+ question: string;
7
+ description: string;
8
+ readonly options: {
9
+ value: string;
10
+ }[];
11
+ defaultNextquestionID: string;
12
+ questionUUID: string;
13
+ };
14
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.secondary_needs = void 0;
4
+ const getSecondaryKeyNeeds = () => [
5
+ {
6
+ value: "I'd like them to build strong math foundation and get support for schoolwork.",
7
+ },
8
+ { value: "I'd like them to be faster at calculations / Mental math." },
9
+ { value: "I'd like them to bridge learning gaps from previous and current grades." },
10
+ { value: 'I want my child to practice math regulalry.' },
11
+ { value: "I'd like them to develop interest and start enjoying math without fear." },
12
+ { value: 'I want my child to practice advanced and competitive math.' },
13
+ ];
14
+ exports.secondary_needs = {
15
+ DEFAULT: {
16
+ id: 13,
17
+ questionID: 'secondary_needs',
18
+ type: 'options_multiselect',
19
+ question: 'Is there anything else we should focus on?',
20
+ description: 'You can select more than 1.',
21
+ get options() {
22
+ return getSecondaryKeyNeeds();
23
+ },
24
+ defaultNextquestionID: 'child_personality',
25
+ questionUUID: '4e1830f2-d37d-4c6f-9e56-1bd1e6660984',
26
+ },
27
+ };
28
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/secondary_needs/variants.ts"],"names":[],"mappings":";;;AAAA,MAAM,oBAAoB,GAAG,GAAG,EAAE,CAAC;IACjC;QACE,KAAK,EACH,+EAA+E;KAClF;IACD,EAAE,KAAK,EAAE,2DAA2D,EAAE;IACtE,EAAE,KAAK,EAAE,yEAAyE,EAAE;IACpF,EAAE,KAAK,EAAE,6CAA6C,EAAE;IACxD,EAAE,KAAK,EAAE,yEAAyE,EAAE;IACpF,EAAE,KAAK,EAAE,4DAA4D,EAAE;CACxE,CAAC;AAEW,QAAA,eAAe,GAAG;IAC7B,OAAO,EAAE;QACP,EAAE,EAAE,EAAE;QACN,UAAU,EAAE,iBAAiB;QAC7B,IAAI,EAAE,qBAAqB;QAC3B,QAAQ,EAAE,4CAA4C;QACtD,WAAW,EAAE,6BAA6B;QAC1C,IAAI,OAAO;YACT,OAAO,oBAAoB,EAAE,CAAC;QAChC,CAAC;QACD,qBAAqB,EAAE,mBAAmB;QAC1C,YAAY,EAAE,sCAAsC;KACrD;CACF,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './variants';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./variants"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/signup/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,7 @@
1
+ export declare const signup: {
2
+ DEFAULT: {
3
+ id: string;
4
+ questionID: string;
5
+ nextSlide: string;
6
+ };
7
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.signup = void 0;
4
+ exports.signup = {
5
+ DEFAULT: {
6
+ id: 'parent_student_details',
7
+ questionID: 'demo',
8
+ nextSlide: 'parent_student_details',
9
+ },
10
+ };
11
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/signup/variants.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IACpB,OAAO,EAAE;QACP,EAAE,EAAE,wBAAwB;QAC5B,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,wBAAwB;KACpC;CACF,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './variants';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./variants"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/signup_refer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,12 @@
1
+ export declare const signup_refer: {
2
+ DEFAULT: {
3
+ id: number;
4
+ questionID: string;
5
+ type: string;
6
+ question: string;
7
+ options: {
8
+ value: string;
9
+ }[];
10
+ questionUUID: string;
11
+ };
12
+ };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.signup_refer = void 0;
4
+ exports.signup_refer = {
5
+ DEFAULT: {
6
+ id: 16,
7
+ questionID: 'signup_refer',
8
+ type: 'options',
9
+ question: 'How did you learn about Cuemath?',
10
+ options: [
11
+ { value: 'Friends/Family' },
12
+ { value: 'Online Search' },
13
+ { value: 'Social Media' },
14
+ { value: 'App Store/Play Store' },
15
+ { value: 'Others' },
16
+ ],
17
+ questionUUID: 'ea8f4ed7-4214-4dcd-a818-701bf1843626',
18
+ },
19
+ };
20
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/signup_refer/variants.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE;QACP,EAAE,EAAE,EAAE;QACN,UAAU,EAAE,cAAc;QAC1B,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,kCAAkC;QAC5C,OAAO,EAAE;YACP,EAAE,KAAK,EAAE,gBAAgB,EAAE;YAC3B,EAAE,KAAK,EAAE,eAAe,EAAE;YAC1B,EAAE,KAAK,EAAE,cAAc,EAAE;YACzB,EAAE,KAAK,EAAE,sBAAsB,EAAE;YACjC,EAAE,KAAK,EAAE,QAAQ,EAAE;SACpB;QACD,YAAY,EAAE,sCAAsC;KACrD;CACF,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './variants';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./variants"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/slot_pick/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,7 @@
1
+ export declare const slot_pick: {
2
+ DEFAULT: {
3
+ id: string;
4
+ questionID: string;
5
+ nextSlide: string;
6
+ };
7
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.slot_pick = void 0;
4
+ exports.slot_pick = {
5
+ DEFAULT: {
6
+ id: 'slot_pick',
7
+ questionID: 'demo',
8
+ nextSlide: 'parent_student_details',
9
+ },
10
+ };
11
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/slot_pick/variants.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,OAAO,EAAE;QACP,EAAE,EAAE,WAAW;QACf,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,wBAAwB;KACpC;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare function checkGradeCountry(country: string[], currentGrade: string, lessThanGrade: number): boolean;
2
+ export declare function isK4Student(): boolean;
3
+ export declare function isK6Student(): boolean;
4
+ export declare function getPerformanceQuestionAccordingToGrade(): string;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPerformanceQuestionAccordingToGrade = exports.isK6Student = exports.isK4Student = exports.checkGradeCountry = void 0;
4
+ const cookie_1 = require("../../cookie");
5
+ const local_storage_1 = require("../../local-storage");
6
+ const constants_1 = require("../../constants");
7
+ const K6Countries = ['AU', 'NZ'];
8
+ function checkGradeCountry(country, currentGrade, lessThanGrade) {
9
+ if (country.includes((0, cookie_1.getCookie)(constants_1.CUE_COUNTRY_CODE_KEY)) &&
10
+ (parseInt(currentGrade, 10) <= lessThanGrade || currentGrade === 'KG')) {
11
+ return true;
12
+ }
13
+ return false;
14
+ }
15
+ exports.checkGradeCountry = checkGradeCountry;
16
+ function isK4Student() {
17
+ return checkGradeCountry(K6Countries, (0, local_storage_1.localStorageGet)(constants_1.LOCAL_STORAGE_KEYS.STUDENT_GRADE), 4);
18
+ }
19
+ exports.isK4Student = isK4Student;
20
+ function isK6Student() {
21
+ return checkGradeCountry(K6Countries, (0, local_storage_1.localStorageGet)(constants_1.LOCAL_STORAGE_KEYS.STUDENT_GRADE), 6);
22
+ }
23
+ exports.isK6Student = isK6Student;
24
+ function getPerformanceQuestionAccordingToGrade() {
25
+ return isK4Student() ? constants_1.SLIDE_TYPES.SCHOOL_PERFORMANCE_KG_4 : constants_1.SLIDE_TYPES.SCHOOL_PERFORMANCE_5_12;
26
+ }
27
+ exports.getPerformanceQuestionAccordingToGrade = getPerformanceQuestionAccordingToGrade;
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/e-cna/utils/index.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,uDAAsD;AACtD,+CAAwF;AAExF,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;AAEhC,SAAgB,iBAAiB,CAC/B,OAAiB,EACjB,YAAoB,EACpB,aAAqB;IAErB,IACE,OAAO,CAAC,QAAQ,CAAC,IAAA,kBAAS,EAAC,gCAAoB,CAAC,CAAC;QACjD,CAAC,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,aAAa,IAAI,YAAY,KAAK,IAAI,CAAC,EACtE;QACA,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAbD,8CAaC;AAED,SAAgB,WAAW;IACzB,OAAO,iBAAiB,CAAC,WAAW,EAAE,IAAA,+BAAe,EAAC,8BAAkB,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC;AAC9F,CAAC;AAFD,kCAEC;AAED,SAAgB,WAAW;IACzB,OAAO,iBAAiB,CAAC,WAAW,EAAE,IAAA,+BAAe,EAAC,8BAAkB,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC;AAC9F,CAAC;AAFD,kCAEC;AAED,SAAgB,sCAAsC;IACpD,OAAO,WAAW,EAAE,CAAC,CAAC,CAAC,uBAAW,CAAC,uBAAuB,CAAC,CAAC,CAAC,uBAAW,CAAC,uBAAuB,CAAC;AACnG,CAAC;AAFD,wFAEC"}
@@ -0,0 +1,7 @@
1
+ export * from './cookie';
2
+ export * from './constants';
3
+ export * from './local-storage';
4
+ export * from './e-cna';
5
+ export * from './date-time-helper';
6
+ export * from './country';
7
+ export * from './object';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,kDAAgC;AAChC,0CAAwB;AACxB,qDAAmC;AACnC,4CAA0B;AAC1B,2CAA0B"}
@@ -0,0 +1,13 @@
1
+ export declare const LOCAL_STORAGE_PRIMARY_KEY = "CUEMATH_WEB";
2
+ export declare const checkLocalStorageSupport: () => boolean;
3
+ export declare const removeKeyFromObject: (obj: {
4
+ [x: string]: any;
5
+ }, keyToRemove: string) => {
6
+ [x: string]: any;
7
+ } | null;
8
+ export declare const localStorageSet: (key: string | number, value: any, ttl?: number) => boolean;
9
+ export declare const localStorageGet: (key: string) => any;
10
+ export declare const localStorageGetAll: () => any;
11
+ export declare const localStorageRemove: (key: string) => boolean;
12
+ export declare const localStorageRemoveAll: () => boolean;
13
+ export declare const removeExpiredKeysOnMount: () => boolean;