@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,219 @@
1
+ export declare const DEFAULT_FLOW: {
2
+ intro: {
3
+ id: string;
4
+ questionID: string;
5
+ nextSlide: string;
6
+ };
7
+ grade: {
8
+ id: number;
9
+ questionID: string;
10
+ type: string;
11
+ question: string;
12
+ description: string;
13
+ options: ({
14
+ value: string;
15
+ label?: undefined;
16
+ } | {
17
+ label: string;
18
+ value: string;
19
+ })[];
20
+ defaultNextquestionID: string;
21
+ questionUUID: string;
22
+ };
23
+ math_perception: {
24
+ id: number;
25
+ questionID: string;
26
+ description: string;
27
+ type: string;
28
+ question: string;
29
+ options: {
30
+ value: string;
31
+ logo: string;
32
+ }[];
33
+ readonly defaultNextquestionID: string;
34
+ questionUUID: string;
35
+ };
36
+ school_performance_5_12: {
37
+ id: number;
38
+ questionID: string;
39
+ type: string;
40
+ question: string;
41
+ description: string;
42
+ options: {
43
+ value: string;
44
+ logo: string;
45
+ }[];
46
+ defaultNextquestionID: string;
47
+ questionUUID: string;
48
+ };
49
+ school_performance_kg_4: {
50
+ id: number;
51
+ questionID: string;
52
+ type: string;
53
+ question: string;
54
+ options: {
55
+ value: string;
56
+ logo: string;
57
+ }[];
58
+ defaultNextquestionID: string;
59
+ questionUUID: string;
60
+ };
61
+ key_need_l1: {
62
+ id: number;
63
+ questionID: string;
64
+ type: string;
65
+ question: string;
66
+ description: string;
67
+ readonly options: {
68
+ value: string;
69
+ nextQuestionID: string;
70
+ }[];
71
+ questionUUID: string;
72
+ };
73
+ strong_math_foundation: {
74
+ id: number;
75
+ questionID: string;
76
+ type: string;
77
+ question: string;
78
+ readonly options: {
79
+ value: string;
80
+ }[];
81
+ questionUUID: string;
82
+ };
83
+ mental_math: {
84
+ id: number;
85
+ questionID: string;
86
+ type: string;
87
+ question: string;
88
+ readonly options: {
89
+ value: string;
90
+ }[];
91
+ defaultNextquestionID: string;
92
+ questionUUID: string;
93
+ };
94
+ learning_gaps: {
95
+ id: number;
96
+ questionID: string;
97
+ type: string;
98
+ question: string;
99
+ options: {
100
+ value: string;
101
+ }[];
102
+ defaultNextquestionID: string;
103
+ questionUUID: string;
104
+ };
105
+ more_practice: {
106
+ id: number;
107
+ questionID: string;
108
+ type: string;
109
+ question: string;
110
+ options: {
111
+ value: string;
112
+ }[];
113
+ defaultNextquestionID: string;
114
+ questionUUID: string;
115
+ };
116
+ develop_interest: {
117
+ id: number;
118
+ questionID: string;
119
+ type: string;
120
+ question: string;
121
+ readonly options: {
122
+ value: string;
123
+ }[];
124
+ defaultNextquestionID: string;
125
+ questionUUID: string;
126
+ };
127
+ advanced_and_competitive_maths: {
128
+ id: number;
129
+ questionID: string;
130
+ type: string;
131
+ question: string;
132
+ options: {
133
+ value: string;
134
+ }[];
135
+ defaultNextquestionID: string;
136
+ questionUUID: string;
137
+ };
138
+ key_need_l3: {
139
+ id: number;
140
+ questionID: string;
141
+ type: string;
142
+ question: string;
143
+ defaultNextquestionID: number;
144
+ questionUUID: string;
145
+ placeholderText: string;
146
+ };
147
+ secondary_needs: {
148
+ id: number;
149
+ questionID: string;
150
+ type: string;
151
+ question: string;
152
+ description: string;
153
+ readonly options: {
154
+ value: string;
155
+ }[];
156
+ defaultNextquestionID: string;
157
+ questionUUID: string;
158
+ };
159
+ child_personality: {
160
+ id: number;
161
+ questionID: string;
162
+ type: string;
163
+ question: string;
164
+ description: string;
165
+ defaultNextquestionID: string;
166
+ questionUUID: string;
167
+ placeholderText: string;
168
+ };
169
+ child_hobbies: {
170
+ id: number;
171
+ questionID: string;
172
+ type: string;
173
+ question: string;
174
+ description: string;
175
+ questionUUID: string;
176
+ placeholderText: string;
177
+ nextSlide: string;
178
+ };
179
+ slot_pick: {
180
+ id: string;
181
+ questionID: string;
182
+ nextSlide: string;
183
+ };
184
+ parent_student_details: {
185
+ id: string;
186
+ questionID: string;
187
+ nextSlide: string;
188
+ };
189
+ other_curriculum: {
190
+ id: number;
191
+ questionID: string;
192
+ type: string;
193
+ question: string;
194
+ description: string;
195
+ placeholderText: string;
196
+ questionUUID: string;
197
+ textAreaHeight: string;
198
+ };
199
+ signup_refer: {
200
+ id: number;
201
+ questionID: string;
202
+ type: string;
203
+ question: string;
204
+ options: {
205
+ value: string;
206
+ }[];
207
+ questionUUID: string;
208
+ };
209
+ curriculum: {
210
+ id: number;
211
+ questionID: string;
212
+ type: string;
213
+ question: string;
214
+ description: string;
215
+ placeholderText: string;
216
+ questionUUID: string;
217
+ textAreaHeight: string;
218
+ };
219
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_FLOW = void 0;
4
+ const slides_1 = require("../../slides");
5
+ exports.DEFAULT_FLOW = {
6
+ intro: slides_1.intro.DEFAULT,
7
+ grade: slides_1.grade.DEFAULT,
8
+ math_perception: slides_1.math_perception.DEFAULT,
9
+ school_performance_5_12: slides_1.school_performance_5_12.DEFAULT,
10
+ school_performance_kg_4: slides_1.school_performance_kg_4.DEFAULT,
11
+ key_need_l1: slides_1.key_need_l1.DEFAULT,
12
+ strong_math_foundation: slides_1.key_need_l2.STRONG_MATH_FOUNDATION,
13
+ mental_math: slides_1.key_need_l2.MENTAL_MATH,
14
+ learning_gaps: slides_1.key_need_l2.LEARNING_GAPS,
15
+ more_practice: slides_1.key_need_l2.MORE_PRACTICE,
16
+ develop_interest: slides_1.key_need_l2.DEVELOP_INTEREST,
17
+ advanced_and_competitive_maths: slides_1.key_need_l2.ADVANCE_AND_COMPETITIVE_MATHS,
18
+ key_need_l3: slides_1.key_need_l3.DEFAULT,
19
+ secondary_needs: slides_1.secondary_needs.DEFAULT,
20
+ child_personality: slides_1.child_personality.DEFAULT,
21
+ child_hobbies: slides_1.child_hobbies.DEFAULT,
22
+ slot_pick: slides_1.slot_pick.DEFAULT,
23
+ parent_student_details: slides_1.signup.DEFAULT,
24
+ other_curriculum: slides_1.other_curriculum.DEFAULT,
25
+ signup_refer: slides_1.signup_refer.DEFAULT,
26
+ curriculum: slides_1.curriculum.DEFAULT,
27
+ };
28
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default.js","sourceRoot":"","sources":["../../../../src/e-cna/flow/variants/default.ts"],"names":[],"mappings":";;;AAAA,yCAiBsB;AAET,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,cAAK,CAAC,OAAO;IACpB,KAAK,EAAE,cAAK,CAAC,OAAO;IACpB,eAAe,EAAE,wBAAe,CAAC,OAAO;IACxC,uBAAuB,EAAE,gCAAuB,CAAC,OAAO;IACxD,uBAAuB,EAAE,gCAAuB,CAAC,OAAO;IACxD,WAAW,EAAE,oBAAW,CAAC,OAAO;IAChC,sBAAsB,EAAE,oBAAW,CAAC,sBAAsB;IAC1D,WAAW,EAAE,oBAAW,CAAC,WAAW;IACpC,aAAa,EAAE,oBAAW,CAAC,aAAa;IACxC,aAAa,EAAE,oBAAW,CAAC,aAAa;IACxC,gBAAgB,EAAE,oBAAW,CAAC,gBAAgB;IAC9C,8BAA8B,EAAE,oBAAW,CAAC,6BAA6B;IACzE,WAAW,EAAE,oBAAW,CAAC,OAAO;IAChC,eAAe,EAAE,wBAAe,CAAC,OAAO;IACxC,iBAAiB,EAAE,0BAAiB,CAAC,OAAO;IAC5C,aAAa,EAAE,sBAAa,CAAC,OAAO;IACpC,SAAS,EAAE,kBAAS,CAAC,OAAO;IAC5B,sBAAsB,EAAE,eAAM,CAAC,OAAO;IACtC,gBAAgB,EAAE,yBAAgB,CAAC,OAAO;IAC1C,YAAY,EAAE,qBAAY,CAAC,OAAO;IAClC,UAAU,EAAE,mBAAU,CAAC,OAAO;CAC/B,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './default';
@@ -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("./default"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/e-cna/flow/variants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
@@ -0,0 +1,43 @@
1
+ export declare const timeSlots: {
2
+ now: string;
3
+ anytime: string;
4
+ today: string;
5
+ tomorrow: string;
6
+ };
7
+ export declare const ecnaSlideTypeName: {
8
+ CLASS_CONFIRMED: string;
9
+ };
10
+ export declare const getSlideDetails: (path: string) => {
11
+ slideType: string;
12
+ slideId: string | number;
13
+ };
14
+ export declare function handleModalClose(path: string): string;
15
+ export declare const getSlots: (noOfDaysFromToday?: number, slotDetails?: never[]) => {
16
+ title: string;
17
+ slots: ({
18
+ key: number;
19
+ label: never;
20
+ slot: {
21
+ from: string;
22
+ to: number;
23
+ };
24
+ disabled?: undefined;
25
+ } | {
26
+ key: string;
27
+ label: string;
28
+ disabled: boolean;
29
+ slot: {
30
+ from: number;
31
+ to: number;
32
+ };
33
+ })[];
34
+ };
35
+ export declare const getOrigin: () => string;
36
+ export declare const getQueryField: (asPath: string, field: string) => string;
37
+ export declare const getCounsellorSpelling: () => "Counselor" | "Counsellor";
38
+ export declare const isOtpRequired: (cueCountryCode: string) => boolean;
39
+ export declare const getUrlWithoutHash: (asPath: string) => string;
40
+ export declare const showLaptopQuestion: () => boolean;
41
+ export declare const nonROWCountries: string[];
42
+ export declare const isROWCountry: (countryCode: string) => boolean;
43
+ export * from './flow';
@@ -0,0 +1,221 @@
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
+ exports.isROWCountry = exports.nonROWCountries = exports.showLaptopQuestion = exports.getUrlWithoutHash = exports.isOtpRequired = exports.getCounsellorSpelling = exports.getQueryField = exports.getOrigin = exports.getSlots = exports.handleModalClose = exports.getSlideDetails = exports.ecnaSlideTypeName = exports.timeSlots = void 0;
18
+ /* eslint-disable @typescript-eslint/no-explicit-any */
19
+ const constants_1 = require("../constants");
20
+ const cookie_1 = require("../cookie");
21
+ const date_time_helper_1 = require("../date-time-helper");
22
+ const showCallModalURL = [
23
+ constants_1.SLIDE_TYPES.INTRO,
24
+ constants_1.SLIDE_TYPES.QUESTION,
25
+ constants_1.SLIDE_TYPES.SLOT_PICK,
26
+ constants_1.SLIDE_TYPES.PARENT_STUDENT_DETAILS,
27
+ ];
28
+ const ignoreCallModalURL = ['otp_enabled'];
29
+ const ECNA = '#/e-cna/';
30
+ exports.timeSlots = {
31
+ now: 'Now',
32
+ anytime: 'Anytime',
33
+ today: 'Today',
34
+ tomorrow: 'Tomorrow',
35
+ };
36
+ exports.ecnaSlideTypeName = {
37
+ CLASS_CONFIRMED: constants_1.SLIDE_TYPES.CLASS_CONFIRMED,
38
+ };
39
+ const getSlideDetails = (path) => {
40
+ const hash = path?.split('#')[1] || '';
41
+ const href = hash?.split('/') || [];
42
+ const slideType = href?.[2];
43
+ let slideId = href?.[3];
44
+ if (slideType === exports.ecnaSlideTypeName.CLASS_CONFIRMED) {
45
+ slideId = 16;
46
+ }
47
+ if (slideId === 'curriculum') {
48
+ slideId = 17;
49
+ }
50
+ return {
51
+ slideType,
52
+ slideId,
53
+ };
54
+ };
55
+ exports.getSlideDetails = getSlideDetails;
56
+ function handleModalClose(path) {
57
+ // const { slideType, slideId } = getSlideDetails(path);
58
+ // parentAnalytics.ecnaModalClosed(
59
+ // slideType === SLIDE_TYPES.QUESTION ? questionsData[slideId]?.questionID : slideType,
60
+ // );
61
+ if (!path) {
62
+ return 'close';
63
+ }
64
+ const filteredData = showCallModalURL.filter(key => path.includes(`${ECNA}${key}`));
65
+ const noCallfilteredData = ignoreCallModalURL.filter(key => path.includes(key));
66
+ if (filteredData.length && !noCallfilteredData.length) {
67
+ setTimeout(() => {
68
+ // const isMobileView = (window && window.innerWidth <= 767) || false;
69
+ // Router.pushRoute(`${ECNA}exit-parent/`);
70
+ // openEcnaModal({ actions, isMobileView });
71
+ }, 500);
72
+ }
73
+ else {
74
+ // Router.pushRoute('#');
75
+ }
76
+ return 'close';
77
+ }
78
+ exports.handleModalClose = handleModalClose;
79
+ // export function openEcnaModal({ actions, isMobileView, type, id }): void {
80
+ // actions.openModal(
81
+ // 'e-cna-form',
82
+ // {
83
+ // size: 'custom',
84
+ // width: '624px',
85
+ // height: isMobileView && window ? 'auto' : '548px',
86
+ // style: {
87
+ // backgroundColor: `${COLORS.WILD_SAND}`,
88
+ // padding: '0px',
89
+ // },
90
+ // outSideCloseButton: true,
91
+ // blocking: !isMobileView,
92
+ // handleModalClose: (path, modalActions) => handleModalClose(path, modalActions),
93
+ // enableTransform: !isMobileView,
94
+ // },
95
+ // {
96
+ // type,
97
+ // id,
98
+ // },
99
+ // );
100
+ // }
101
+ // export const handleOpenEcnaModal = ({ actions, isMobileView, type, id }) => {
102
+ // openEcnaModal({ actions, isMobileView, type, id });
103
+ // };
104
+ const getTime = (baseTime, requiredTime) => {
105
+ return baseTime + requiredTime * 60 * 60;
106
+ };
107
+ const getTimeFormat = (reqtime, format = 'ha') => {
108
+ const timezone = (0, date_time_helper_1.getTimezone)();
109
+ return (0, date_time_helper_1.dateByTimezone)(reqtime, timezone, format);
110
+ };
111
+ const getTitle = (noOfDaysFromToday, requiredDay) => {
112
+ if (noOfDaysFromToday === 0) {
113
+ return exports.timeSlots.today;
114
+ }
115
+ if (noOfDaysFromToday === 1) {
116
+ return exports.timeSlots.tomorrow;
117
+ }
118
+ const timezone = (0, date_time_helper_1.getTimezone)();
119
+ return (0, date_time_helper_1.dateByTimezone)(requiredDay, timezone, 'DD/MM/YYYY');
120
+ };
121
+ const getSlots = (noOfDaysFromToday = 0, slotDetails = []) => {
122
+ const dateCon = new Date();
123
+ const requiredDay = dateCon.setDate(dateCon.getDate() + noOfDaysFromToday);
124
+ dateCon.setHours(0, 0, 0, 0); // making time 12am
125
+ const baseTime = dateCon.getTime() / 1000;
126
+ const currentTime = (0, date_time_helper_1.getCurrentTimestamp)();
127
+ const tabSlots = slotDetails?.map(({ from, to, custom }) => {
128
+ // 'Now' slot condition. Keeping it for future usage
129
+ // if (custom === timeSlots.now) {
130
+ // return ({
131
+ // key: custom,
132
+ // label: custom,
133
+ // slot: { from: currentTime }
134
+ // })
135
+ // }
136
+ const anyTimeStamp = getTime(baseTime, 20); // 8pm timestamp. choosen randomly
137
+ if (custom === exports.timeSlots.anytime) {
138
+ return {
139
+ key: anyTimeStamp,
140
+ label: custom,
141
+ slot: { from: '', to: anyTimeStamp },
142
+ };
143
+ }
144
+ const fromTime = getTime(baseTime, from);
145
+ const toTime = getTime(baseTime, to);
146
+ const fromTimeFormat = getTimeFormat(fromTime * 1000);
147
+ const toTimeFormat = getTimeFormat(toTime * 1000);
148
+ const isDisabled = currentTime - toTime > 0;
149
+ return {
150
+ key: `${fromTime}${toTime}`,
151
+ label: `${fromTimeFormat} - ${toTimeFormat}`,
152
+ disabled: isDisabled,
153
+ slot: { from: fromTime, to: toTime },
154
+ };
155
+ });
156
+ const data = { title: getTitle(noOfDaysFromToday, requiredDay), slots: tabSlots };
157
+ return data;
158
+ };
159
+ exports.getSlots = getSlots;
160
+ const getOrigin = () => {
161
+ const { origin = '' } = typeof window !== 'undefined' && window.location ? window.location : {};
162
+ return origin;
163
+ };
164
+ exports.getOrigin = getOrigin;
165
+ const getQueryField = (asPath, field) => {
166
+ let searchParams = asPath?.split('?') || [];
167
+ searchParams = searchParams.length > 2 ? searchParams[2] : searchParams[1];
168
+ const params = new URLSearchParams(searchParams);
169
+ return params.get(field) || '';
170
+ };
171
+ exports.getQueryField = getQueryField;
172
+ // export const FadeIn = keyframes`
173
+ // from {
174
+ // opacity: 0;
175
+ // transform: translateX(480px);
176
+ // }
177
+ // to {
178
+ // opacity: 1;
179
+ // transform: translateX(0);
180
+ // }
181
+ // `;
182
+ const getCounsellorSpelling = () => {
183
+ const cueCountryCode = (0, cookie_1.getCookie)('cue_country_code');
184
+ return cueCountryCode === 'US' ? 'Counselor' : 'Counsellor';
185
+ };
186
+ exports.getCounsellorSpelling = getCounsellorSpelling;
187
+ // export const uniqueTimeZones = [
188
+ // ...new Map(timezones.map(item => [item.value, item])).values(),
189
+ // ];
190
+ // export let countrySpecificTimezones = uniqueTimeZones.filter(uniqueTimezone => {
191
+ // const countryCode = getCookie('cue_country_code');
192
+ // if (countryCode) {
193
+ // return countryTimezones?.countries?.[getCookie('cue_country_code')]?.zones?.find(
194
+ // countryTimezone => {
195
+ // return countryTimezone === uniqueTimezone?.id;
196
+ // },
197
+ // );
198
+ // }
199
+ // return uniqueTimezone;
200
+ // });
201
+ const isOtpRequired = (cueCountryCode) => {
202
+ const noOtpCountrycodes = ['AU', 'NZ', 'SG'];
203
+ return !(noOtpCountrycodes.findIndex(key => key === cueCountryCode) > -1);
204
+ };
205
+ exports.isOtpRequired = isOtpRequired;
206
+ const getUrlWithoutHash = (asPath) => {
207
+ return asPath?.includes('#') ? asPath.split('#')[0] : asPath;
208
+ };
209
+ exports.getUrlWithoutHash = getUrlWithoutHash;
210
+ const showLaptopQuestion = () => {
211
+ const cueCountryCode = (0, cookie_1.getCookie)(constants_1.CUE_COUNTRY_CODE_KEY);
212
+ return cueCountryCode === 'IN';
213
+ };
214
+ exports.showLaptopQuestion = showLaptopQuestion;
215
+ exports.nonROWCountries = ['IN', 'US', 'CA'];
216
+ const isROWCountry = (countryCode) => {
217
+ return !exports.nonROWCountries.includes(countryCode);
218
+ };
219
+ exports.isROWCountry = isROWCountry;
220
+ __exportStar(require("./flow"), exports);
221
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/e-cna/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,4CAAiE;AACjE,sCAAsC;AACtC,0DAAuF;AAEvF,MAAM,gBAAgB,GAAa;IACjC,uBAAW,CAAC,KAAK;IACjB,uBAAW,CAAC,QAAQ;IACpB,uBAAW,CAAC,SAAS;IACrB,uBAAW,CAAC,sBAAsB;CACnC,CAAC;AACF,MAAM,kBAAkB,GAAa,CAAC,aAAa,CAAC,CAAC;AACrD,MAAM,IAAI,GAAG,UAAU,CAAC;AAEX,QAAA,SAAS,GAAG;IACvB,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEW,QAAA,iBAAiB,GAAG;IAC/B,eAAe,EAAE,uBAAW,CAAC,eAAe;CAC7C,CAAC;AAEK,MAAM,eAAe,GAAG,CAAC,IAAY,EAAE,EAAE;IAC9C,MAAM,IAAI,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IAEpC,MAAM,SAAS,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5B,IAAI,OAAO,GAAoB,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAEzC,IAAI,SAAS,KAAK,yBAAiB,CAAC,eAAe,EAAE;QACnD,OAAO,GAAG,EAAE,CAAC;KACd;IAED,IAAI,OAAO,KAAK,Y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B,EAAE,EAAE;IACtD,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAE7C,OAAO,CAAC,CAAC,iBAAiB,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC5E,CAAC,CAAC;AAJW,QAAA,aAAa,iBAIxB;AAEK,MAAM,iBAAiB,GAAG,CAAC,MAAc,EAAE,EAAE;IAClD,OAAO,MAAM,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AAC/D,CAAC,CAAC;AAFW,QAAA,iBAAiB,qBAE5B;AAEK,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,cAAc,GAAG,IAAA,kBAAS,EAAC,gCAAoB,CAAC,CAAC;IAEvD,OAAO,cAAc,KAAK,IAAI,CAAC;AACjC,CAAC,CAAC;AAJW,QAAA,kBAAkB,sBAI7B;AAEW,QAAA,eAAe,GAAa,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAErD,MAAM,YAAY,GAAG,CAAC,WAAmB,EAAE,EAAE;IAClD,OAAO,CAAC,uBAAe,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAChD,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB;AAEF,yCAAuB"}
@@ -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/child_hobbies/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,12 @@
1
+ export declare const child_hobbies: {
2
+ DEFAULT: {
3
+ id: number;
4
+ questionID: string;
5
+ type: string;
6
+ question: string;
7
+ description: string;
8
+ questionUUID: string;
9
+ placeholderText: string;
10
+ nextSlide: string;
11
+ };
12
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.child_hobbies = void 0;
4
+ exports.child_hobbies = {
5
+ DEFAULT: {
6
+ id: 15,
7
+ questionID: 'child_hobbies',
8
+ type: 'freeFlowingText',
9
+ question: 'What do they enjoy doing outside of school?',
10
+ description: 'Tell us what your child has fun doing and has shown strong interests in.',
11
+ questionUUID: 'ea6a29f3-c6b6-4932-b606-e828070fd6fe',
12
+ placeholderText: 'Loves reading fiction novels, Harry Potter is the favourite',
13
+ nextSlide: 'slot_pick',
14
+ },
15
+ };
16
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/child_hobbies/variants.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE;QACP,EAAE,EAAE,EAAE;QACN,UAAU,EAAE,eAAe;QAC3B,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,6CAA6C;QACvD,WAAW,EACT,0EAA0E;QAC5E,YAAY,EAAE,sCAAsC;QACpD,eAAe,EAAE,6DAA6D;QAC9E,SAAS,EAAE,WAAW;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/child_personality/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,12 @@
1
+ export declare const child_personality: {
2
+ DEFAULT: {
3
+ id: number;
4
+ questionID: string;
5
+ type: string;
6
+ question: string;
7
+ description: string;
8
+ defaultNextquestionID: string;
9
+ questionUUID: string;
10
+ placeholderText: string;
11
+ };
12
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.child_personality = void 0;
4
+ exports.child_personality = {
5
+ DEFAULT: {
6
+ id: 14,
7
+ questionID: 'child_personality',
8
+ type: 'freeFlowingText',
9
+ question: "We'd like to know a little more about your child's personality.",
10
+ description: 'This helps us better understand their math needs.',
11
+ defaultNextquestionID: 'child_hobbies',
12
+ questionUUID: 'ea6d4fd6-a819-45dd-8c6b-484db63265f3',
13
+ placeholderText: "Too fidgety, can't sit & focus continuously",
14
+ },
15
+ };
16
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../../src/e-cna/slides/child_personality/variants.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC/B,OAAO,EAAE;QACP,EAAE,EAAE,EAAE;QACN,UAAU,EAAE,mBAAmB;QAC/B,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,iEAAiE;QAC3E,WAAW,EAAE,mDAAmD;QAChE,qBAAqB,EAAE,eAAe;QACtC,YAAY,EAAE,sCAAsC;QACpD,eAAe,EAAE,6CAA6C;KAC/D;CACF,CAAC"}