@cuemath/web-utils 1.2.7 → 1.2.8-beta.0

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 (33) hide show
  1. package/dist/cjs/constants/country/country-region-map.d.ts +2 -0
  2. package/dist/cjs/constants/country/country-region-map.js +3 -1
  3. package/dist/cjs/constants/country/country-region-map.js.map +1 -1
  4. package/dist/cjs/constants/index.d.ts +1 -0
  5. package/dist/cjs/constants/index.js +1 -0
  6. package/dist/cjs/constants/index.js.map +1 -1
  7. package/dist/cjs/constants/teacher/index.d.ts +251 -0
  8. package/dist/cjs/constants/teacher/index.js +277 -0
  9. package/dist/cjs/constants/teacher/index.js.map +1 -0
  10. package/dist/cjs/country-code/index.d.ts +8 -0
  11. package/dist/cjs/country-code/index.js +23 -0
  12. package/dist/cjs/country-code/index.js.map +1 -0
  13. package/dist/cjs/index.d.ts +1 -0
  14. package/dist/cjs/index.js +1 -0
  15. package/dist/cjs/index.js.map +1 -1
  16. package/dist/cjs/website-category/utils/instrumentation.d.ts +1 -1
  17. package/dist/esm/constants/country/country-region-map.d.ts +2 -0
  18. package/dist/esm/constants/country/country-region-map.js +2 -0
  19. package/dist/esm/constants/country/country-region-map.js.map +1 -1
  20. package/dist/esm/constants/index.d.ts +1 -0
  21. package/dist/esm/constants/index.js +1 -0
  22. package/dist/esm/constants/index.js.map +1 -1
  23. package/dist/esm/constants/teacher/index.d.ts +251 -0
  24. package/dist/esm/constants/teacher/index.js +273 -0
  25. package/dist/esm/constants/teacher/index.js.map +1 -0
  26. package/dist/esm/country-code/index.d.ts +8 -0
  27. package/dist/esm/country-code/index.js +19 -0
  28. package/dist/esm/country-code/index.js.map +1 -0
  29. package/dist/esm/index.d.ts +1 -0
  30. package/dist/esm/index.js +1 -0
  31. package/dist/esm/index.js.map +1 -1
  32. package/dist/esm/website-category/utils/instrumentation.d.ts +1 -1
  33. package/package.json +2 -2
@@ -8,3 +8,5 @@ export declare const NEW_ZEALAND_COUNTRIES: string[];
8
8
  export declare const BEST_PERFORMING_COHORT_ROW_COUNTRIES: string[];
9
9
  export declare const FOCUSED_COUNTRIES: string[];
10
10
  export declare const NON_FOCUSED_ROW_COUNTRIES: string[];
11
+ export declare const ALLOWED_COUNTRIES_FOR_TEACHERS: string[];
12
+ export declare const ALLOWED_COUNTRIES_FOR_LAAM_TEACHERS: string[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NON_FOCUSED_ROW_COUNTRIES = exports.FOCUSED_COUNTRIES = exports.BEST_PERFORMING_COHORT_ROW_COUNTRIES = exports.NEW_ZEALAND_COUNTRIES = exports.INDIAN_COUNTRIES = exports.US_COUNTRIES = exports.SINGAPORE_COUNTRIES = exports.AUSTRALIAN_COUNTRIES = exports.MIDDLE_EAST_COUNTRIES = exports.EUROPEAN_COUNTRIES = void 0;
3
+ exports.ALLOWED_COUNTRIES_FOR_LAAM_TEACHERS = exports.ALLOWED_COUNTRIES_FOR_TEACHERS = exports.NON_FOCUSED_ROW_COUNTRIES = exports.FOCUSED_COUNTRIES = exports.BEST_PERFORMING_COHORT_ROW_COUNTRIES = exports.NEW_ZEALAND_COUNTRIES = exports.INDIAN_COUNTRIES = exports.US_COUNTRIES = exports.SINGAPORE_COUNTRIES = exports.AUSTRALIAN_COUNTRIES = exports.MIDDLE_EAST_COUNTRIES = exports.EUROPEAN_COUNTRIES = void 0;
4
4
  const iso_country_code_1 = require("./iso-country-code");
5
5
  exports.EUROPEAN_COUNTRIES = [
6
6
  'AL',
@@ -197,4 +197,6 @@ exports.FOCUSED_COUNTRIES = [
197
197
  ...exports.MIDDLE_EAST_COUNTRIES,
198
198
  ];
199
199
  exports.NON_FOCUSED_ROW_COUNTRIES = Object.values(iso_country_code_1.COUNTRY_NAME_COUNTRY_CODE_MAP).filter(value => !exports.FOCUSED_COUNTRIES.includes(value));
200
+ exports.ALLOWED_COUNTRIES_FOR_TEACHERS = ['IN', 'US'];
201
+ exports.ALLOWED_COUNTRIES_FOR_LAAM_TEACHERS = ['IN'];
200
202
  //# sourceMappingURL=country-region-map.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"country-region-map.js","sourceRoot":"","sources":["../../../../src/constants/country/country-region-map.ts"],"names":[],"mappings":";;;AAAA,yDAAuF;AAE1E,QAAA,kBAAkB,GAAG;IAChC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACL,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACnC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACL,CAAC;AAEW,QAAA,oBAAoB,GAAG;IAClC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI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CAC5C,CAAC;AAEW,QAAA,8BAA8B,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC9C,QAAA,mCAAmC,GAAG,CAAC,IAAI,CAAC,CAAC"}
@@ -2,3 +2,4 @@ export * from './country';
2
2
  export * from './date-time';
3
3
  export * from './currency-symbols';
4
4
  export * from './instrumentation';
5
+ export * from './teacher';
@@ -18,4 +18,5 @@ __exportStar(require("./country"), exports);
18
18
  __exportStar(require("./date-time"), exports);
19
19
  __exportStar(require("./currency-symbols"), exports);
20
20
  __exportStar(require("./instrumentation"), exports);
21
+ __exportStar(require("./teacher"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B;AAC5B,qDAAmC;AACnC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B;AAC5B,qDAAmC;AACnC,oDAAkC;AAClC,4CAA0B"}
@@ -0,0 +1,251 @@
1
+ declare const teacherSignupSteps: {
2
+ signup: string;
3
+ verifyOtp: string;
4
+ selectDegree: string;
5
+ selectStream: string;
6
+ selectGrade: string;
7
+ selectExperience: string;
8
+ watchVideo: string;
9
+ mathTestAndSop: string;
10
+ recordLesson: string;
11
+ uploadDocuments: string;
12
+ success: string;
13
+ rejected: string;
14
+ login: string;
15
+ dashboard: string;
16
+ };
17
+ declare const teacherSignupStepsConfig: {
18
+ [x: string]: {
19
+ route: string;
20
+ form: ({
21
+ id: string;
22
+ label: string;
23
+ type: string;
24
+ executeOnBlurFunction?: undefined;
25
+ restrictSearch?: undefined;
26
+ isRAinput?: undefined;
27
+ } | {
28
+ id: string;
29
+ label: string;
30
+ type: string;
31
+ executeOnBlurFunction: boolean;
32
+ restrictSearch?: undefined;
33
+ isRAinput?: undefined;
34
+ } | {
35
+ id: string;
36
+ type: string;
37
+ label: string;
38
+ executeOnBlurFunction: boolean;
39
+ restrictSearch: boolean;
40
+ isRAinput: boolean;
41
+ })[];
42
+ heading: string;
43
+ showProgressBar: boolean;
44
+ linkText: string;
45
+ linkSubmitLabel: string;
46
+ stepIndex: number;
47
+ subHeading?: undefined;
48
+ isPrivateRoute?: undefined;
49
+ title?: undefined;
50
+ desc?: undefined;
51
+ showGreeting?: undefined;
52
+ descLink?: undefined;
53
+ info?: undefined;
54
+ hideHeader?: undefined;
55
+ } | {
56
+ route: string;
57
+ heading: string;
58
+ subHeading: string;
59
+ form: {
60
+ id: string;
61
+ type: string;
62
+ label: string;
63
+ executeOnBlurFunction: boolean;
64
+ restrictSearch: boolean;
65
+ isRAinput: boolean;
66
+ }[];
67
+ linkText: string;
68
+ linkSubmitLabel: string;
69
+ stepIndex: number;
70
+ showProgressBar?: undefined;
71
+ isPrivateRoute?: undefined;
72
+ title?: undefined;
73
+ desc?: undefined;
74
+ showGreeting?: undefined;
75
+ descLink?: undefined;
76
+ info?: undefined;
77
+ hideHeader?: undefined;
78
+ } | {
79
+ form: {
80
+ id: string;
81
+ label: string;
82
+ type: string;
83
+ maxLength: number;
84
+ autoFocus: boolean;
85
+ alignResend: boolean;
86
+ }[];
87
+ route?: undefined;
88
+ heading?: undefined;
89
+ showProgressBar?: undefined;
90
+ linkText?: undefined;
91
+ linkSubmitLabel?: undefined;
92
+ stepIndex?: undefined;
93
+ subHeading?: undefined;
94
+ isPrivateRoute?: undefined;
95
+ title?: undefined;
96
+ desc?: undefined;
97
+ showGreeting?: undefined;
98
+ descLink?: undefined;
99
+ info?: undefined;
100
+ hideHeader?: undefined;
101
+ } | {
102
+ route: string;
103
+ heading: string;
104
+ form: {
105
+ id: string;
106
+ options: {
107
+ id: number;
108
+ key: string;
109
+ label: string;
110
+ value: string;
111
+ }[];
112
+ type: string;
113
+ optional: boolean;
114
+ variant: string;
115
+ flexWrap: string;
116
+ mobileWidth: string;
117
+ height: string;
118
+ justifyContent: string;
119
+ mobileJustifyContent: string;
120
+ minWidth: string;
121
+ }[];
122
+ isPrivateRoute: boolean;
123
+ showProgressBar: boolean;
124
+ linkText?: undefined;
125
+ linkSubmitLabel?: undefined;
126
+ stepIndex?: undefined;
127
+ subHeading?: undefined;
128
+ title?: undefined;
129
+ desc?: undefined;
130
+ showGreeting?: undefined;
131
+ descLink?: undefined;
132
+ info?: undefined;
133
+ hideHeader?: undefined;
134
+ } | {
135
+ route: string;
136
+ heading: string;
137
+ title: string;
138
+ desc: string;
139
+ subHeading: string;
140
+ isPrivateRoute: boolean;
141
+ form?: undefined;
142
+ showProgressBar?: undefined;
143
+ linkText?: undefined;
144
+ linkSubmitLabel?: undefined;
145
+ stepIndex?: undefined;
146
+ showGreeting?: undefined;
147
+ descLink?: undefined;
148
+ info?: undefined;
149
+ hideHeader?: undefined;
150
+ } | {
151
+ route: string;
152
+ title: string;
153
+ desc: string;
154
+ heading: string;
155
+ subHeading: string;
156
+ isPrivateRoute: boolean;
157
+ showGreeting: boolean;
158
+ form?: undefined;
159
+ showProgressBar?: undefined;
160
+ linkText?: undefined;
161
+ linkSubmitLabel?: undefined;
162
+ stepIndex?: undefined;
163
+ descLink?: undefined;
164
+ info?: undefined;
165
+ hideHeader?: undefined;
166
+ } | {
167
+ route: string;
168
+ title: string;
169
+ desc: string;
170
+ descLink: string;
171
+ isPrivateRoute: boolean;
172
+ info: {
173
+ id: number;
174
+ text: string;
175
+ }[];
176
+ form?: undefined;
177
+ heading?: undefined;
178
+ showProgressBar?: undefined;
179
+ linkText?: undefined;
180
+ linkSubmitLabel?: undefined;
181
+ stepIndex?: undefined;
182
+ subHeading?: undefined;
183
+ showGreeting?: undefined;
184
+ hideHeader?: undefined;
185
+ } | {
186
+ route: string;
187
+ title: string;
188
+ desc: string;
189
+ isPrivateRoute: boolean;
190
+ form?: undefined;
191
+ heading?: undefined;
192
+ showProgressBar?: undefined;
193
+ linkText?: undefined;
194
+ linkSubmitLabel?: undefined;
195
+ stepIndex?: undefined;
196
+ subHeading?: undefined;
197
+ showGreeting?: undefined;
198
+ descLink?: undefined;
199
+ info?: undefined;
200
+ hideHeader?: undefined;
201
+ } | {
202
+ route: string;
203
+ heading: string;
204
+ title: string;
205
+ desc: string;
206
+ isPrivateRoute: boolean;
207
+ form?: undefined;
208
+ showProgressBar?: undefined;
209
+ linkText?: undefined;
210
+ linkSubmitLabel?: undefined;
211
+ stepIndex?: undefined;
212
+ subHeading?: undefined;
213
+ showGreeting?: undefined;
214
+ descLink?: undefined;
215
+ info?: undefined;
216
+ hideHeader?: undefined;
217
+ } | {
218
+ route: string;
219
+ hideHeader: boolean;
220
+ isPrivateRoute: boolean;
221
+ form?: undefined;
222
+ heading?: undefined;
223
+ showProgressBar?: undefined;
224
+ linkText?: undefined;
225
+ linkSubmitLabel?: undefined;
226
+ stepIndex?: undefined;
227
+ subHeading?: undefined;
228
+ title?: undefined;
229
+ desc?: undefined;
230
+ showGreeting?: undefined;
231
+ descLink?: undefined;
232
+ info?: undefined;
233
+ } | {
234
+ route: string;
235
+ isPrivateRoute: boolean;
236
+ showGreeting: boolean;
237
+ form?: undefined;
238
+ heading?: undefined;
239
+ showProgressBar?: undefined;
240
+ linkText?: undefined;
241
+ linkSubmitLabel?: undefined;
242
+ stepIndex?: undefined;
243
+ subHeading?: undefined;
244
+ title?: undefined;
245
+ desc?: undefined;
246
+ descLink?: undefined;
247
+ info?: undefined;
248
+ hideHeader?: undefined;
249
+ };
250
+ };
251
+ export { teacherSignupSteps, teacherSignupStepsConfig };
@@ -0,0 +1,277 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.teacherSignupStepsConfig = exports.teacherSignupSteps = void 0;
4
+ const teacherSignupSteps = {
5
+ signup: 'sign-up',
6
+ verifyOtp: 'verify-otp',
7
+ selectDegree: 'select-degree',
8
+ selectStream: 'select-stream',
9
+ selectGrade: 'select-grade',
10
+ selectExperience: 'select-experience',
11
+ watchVideo: 'watch-video',
12
+ mathTestAndSop: 'cet-and-sop-video',
13
+ recordLesson: 'record-lesson',
14
+ uploadDocuments: 'upload-documents',
15
+ success: 'success',
16
+ rejected: 'rejected',
17
+ login: 'login',
18
+ dashboard: 'dashboard',
19
+ };
20
+ exports.teacherSignupSteps = teacherSignupSteps;
21
+ const teacherSignupForm = [
22
+ {
23
+ id: 'full_name',
24
+ label: 'Name',
25
+ type: 'text',
26
+ },
27
+ {
28
+ id: 'email',
29
+ label: 'Email ID',
30
+ type: 'email',
31
+ executeOnBlurFunction: true,
32
+ },
33
+ {
34
+ id: 'intl_mobile',
35
+ type: 'mobile',
36
+ label: 'Mobile number',
37
+ executeOnBlurFunction: true,
38
+ restrictSearch: true,
39
+ isRAinput: true,
40
+ },
41
+ ];
42
+ const teacherLoginForm = [
43
+ {
44
+ id: 'intl_mobile',
45
+ type: 'mobile',
46
+ label: 'Mobile number',
47
+ executeOnBlurFunction: true,
48
+ restrictSearch: true,
49
+ isRAinput: true,
50
+ },
51
+ ];
52
+ const teacherVerifyOtpForm = [
53
+ {
54
+ id: 'otp',
55
+ label: '4 -digit code',
56
+ type: 'otp',
57
+ maxLength: 4,
58
+ autoFocus: true,
59
+ alignResend: true,
60
+ },
61
+ ];
62
+ const teacherEdQualificationOptions = [
63
+ {
64
+ id: 1,
65
+ key: 'bachelors',
66
+ label: 'Bachelors',
67
+ value: 'bachelors',
68
+ },
69
+ {
70
+ id: 2,
71
+ key: 'masters_or_above',
72
+ label: 'Masters or above',
73
+ value: 'masters_or_above',
74
+ },
75
+ {
76
+ id: 3,
77
+ key: 'not_a_graduate',
78
+ label: 'Not a graduate',
79
+ value: 'not_a_graduate',
80
+ },
81
+ ];
82
+ const teacherSelectDegreeForm = [
83
+ {
84
+ id: 'highest_degree',
85
+ options: teacherEdQualificationOptions,
86
+ type: 'tab',
87
+ optional: false,
88
+ variant: 'btnGroup',
89
+ flexWrap: 'wrap',
90
+ mobileWidth: 'auto',
91
+ height: '48px',
92
+ justifyContent: 'flex-start',
93
+ mobileJustifyContent: 'flex-start',
94
+ minWidth: '100%',
95
+ },
96
+ ];
97
+ const teacherStreamOfEducationOptions = [
98
+ {
99
+ id: 1,
100
+ key: 'biology/chemistry',
101
+ label: 'Biology/Chemistry',
102
+ value: 'biology/chemistry',
103
+ },
104
+ {
105
+ id: 2,
106
+ key: 'physics/computer-science',
107
+ label: 'Physics/Computer science',
108
+ value: 'physics/computer-science',
109
+ },
110
+ {
111
+ id: 3,
112
+ key: 'math',
113
+ label: 'Math',
114
+ value: 'math',
115
+ },
116
+ {
117
+ id: 4,
118
+ key: 'accountancy/commerce',
119
+ label: 'Accountancy/Commerce',
120
+ value: 'accountancy/commerce',
121
+ },
122
+ {
123
+ id: 5,
124
+ key: 'others',
125
+ label: 'Others',
126
+ value: 'others',
127
+ },
128
+ ];
129
+ const teacherSelectStreamForm = [
130
+ {
131
+ id: 'stream',
132
+ options: teacherStreamOfEducationOptions,
133
+ type: 'tab',
134
+ height: '48px',
135
+ mobileWidth: 'auto',
136
+ flexWrap: 'wrap',
137
+ variant: 'btnGroup',
138
+ justifyContent: 'flex-start',
139
+ mobileJustifyContent: 'flex-start',
140
+ optional: false,
141
+ minWidth: '100%',
142
+ },
143
+ ];
144
+ const teacherExperienceOptions = [
145
+ {
146
+ id: 1,
147
+ key: 'yes',
148
+ label: 'Yes',
149
+ value: 'yes',
150
+ },
151
+ {
152
+ id: 2,
153
+ key: 'no',
154
+ label: 'No',
155
+ value: 'no',
156
+ },
157
+ ];
158
+ const teacherSelectExperienceForm = [
159
+ {
160
+ id: 'maths_experience',
161
+ options: teacherExperienceOptions,
162
+ type: 'tab',
163
+ optional: false,
164
+ variant: 'btnGroup',
165
+ flexWrap: 'wrap',
166
+ mobileWidth: 'auto',
167
+ height: '48px',
168
+ justifyContent: 'flex-start',
169
+ mobileJustifyContent: 'flex-start',
170
+ minWidth: '100%',
171
+ },
172
+ ];
173
+ const cetGuideLines = [
174
+ { id: 1, text: 'You must take the test within 72 hours of generating the link.' },
175
+ { id: 2, text: 'The test will happen only on a desktop browser.' },
176
+ { id: 3, text: 'We’ve shared a link for the Cuemath Entrance test on your mail id.' },
177
+ { id: 4, text: 'The test will be taken as per your selected grade group.' },
178
+ ];
179
+ const teacherSignupStepsConfig = {
180
+ [teacherSignupSteps.signup]: {
181
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.signup}`,
182
+ form: teacherSignupForm,
183
+ heading: 'Create an account',
184
+ showProgressBar: true,
185
+ linkText: `Don’t have an account ?`,
186
+ linkSubmitLabel: 'Sign up',
187
+ stepIndex: 1,
188
+ },
189
+ [teacherSignupSteps.login]: {
190
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.login}`,
191
+ heading: 'Login to your teacher account',
192
+ subHeading: 'You will get a verification code via SMS on your registered phone number.',
193
+ form: teacherLoginForm,
194
+ linkText: `Already have an account ?`,
195
+ linkSubmitLabel: 'Sign in',
196
+ stepIndex: 1,
197
+ },
198
+ [teacherSignupSteps.verifyOtp]: {
199
+ form: teacherVerifyOtpForm,
200
+ },
201
+ [teacherSignupSteps.selectDegree]: {
202
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.selectDegree}`,
203
+ heading: 'What is your highest educational degree?',
204
+ form: teacherSelectDegreeForm,
205
+ isPrivateRoute: true,
206
+ showProgressBar: true,
207
+ },
208
+ [teacherSignupSteps.selectStream]: {
209
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.selectStream}`,
210
+ heading: 'Select the stream of your education?',
211
+ form: teacherSelectStreamForm,
212
+ isPrivateRoute: true,
213
+ showProgressBar: true,
214
+ },
215
+ [teacherSignupSteps.selectGrade]: {
216
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.selectGrade}`,
217
+ heading: 'Pick your grade',
218
+ title: 'Select grade',
219
+ desc: 'Pick a grade group as per your expertise',
220
+ subHeading: 'Your Cuemath Eligibility Test (CET) will be based on your selected grade group.',
221
+ isPrivateRoute: true,
222
+ },
223
+ [teacherSignupSteps.selectExperience]: {
224
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.selectExperience}`,
225
+ heading: 'Do you have any prior math teaching experience?',
226
+ form: teacherSelectExperienceForm,
227
+ isPrivateRoute: true,
228
+ showProgressBar: true,
229
+ },
230
+ [teacherSignupSteps.watchVideo]: {
231
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.watchVideo}`,
232
+ title: 'Watch Info video',
233
+ desc: 'A quick video on what are the steps required to be completed to be a Cuemath teacher.',
234
+ heading: 'Cuemath follows a fast, disciplined 3 step application process.',
235
+ subHeading: 'Watch this quick video to know your next steps.',
236
+ isPrivateRoute: true,
237
+ showGreeting: true,
238
+ },
239
+ [teacherSignupSteps.mathTestAndSop]: {
240
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.mathTestAndSop}`,
241
+ title: 'Take eligibility test',
242
+ desc: 'Complete a math test and upload a SOP video both within 70 minutes.',
243
+ descLink: 'https://drive.google.com/file/d/1NsOen5p2P6cpakbeaBPvtIJi7cwEYV16/view',
244
+ isPrivateRoute: true,
245
+ info: cetGuideLines,
246
+ },
247
+ [teacherSignupSteps.recordLesson]: {
248
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.recordLesson}`,
249
+ title: 'Record a lesson',
250
+ desc: 'Use your mobile to record a live teaching lesson demonstrating your teaching style and skills',
251
+ isPrivateRoute: true,
252
+ },
253
+ [teacherSignupSteps.uploadDocuments]: {
254
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.uploadDocuments}`,
255
+ heading: 'Complete the steps to finish your assessment',
256
+ title: 'Upload documents',
257
+ desc: 'Keep your Aadhar and latest degree marksheet ready with you. We will use this information for your background verification',
258
+ isPrivateRoute: true,
259
+ },
260
+ [teacherSignupSteps.success]: {
261
+ route: `/teacher/v2/application/?status=${teacherSignupSteps.success}`,
262
+ hideHeader: true,
263
+ isPrivateRoute: true,
264
+ },
265
+ [teacherSignupSteps.rejected]: {
266
+ route: `/teacher/v2/application/?status=${teacherSignupSteps.rejected}`,
267
+ hideHeader: true,
268
+ isPrivateRoute: true,
269
+ },
270
+ [teacherSignupSteps.dashboard]: {
271
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.dashboard}`,
272
+ isPrivateRoute: true,
273
+ showGreeting: true,
274
+ },
275
+ };
276
+ exports.teacherSignupStepsConfig = teacherSignupStepsConfig;
277
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/teacher/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,kBAAkB,GAAG;IACzB,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,eAAe;IAC7B,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,cAAc;IAC3B,gBAAgB,EAAE,mBAAmB;IACrC,UAAU,EAAE,aAAa;IACzB,cAAc,EAAE,mBAAmB;IACnC,YAAY,EAAE,eAAe;IAC7B,eAAe,EAAE,kBAAkB;IACnC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;CACvB,CAAC;AA8QO,gDAAkB;AA5Q3B,MAAM,iBAAiB,GAAG;IACxB;QACE,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,MAAM;KACb;IACD;QACE,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,OAAO;QACb,qBAAqB,EAAE,IAAI;KAC5B;IACD;QACE,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,eAAe;QACtB,qBAAqB,EAAE,IAAI;QAC3B,cAAc,EAAE,IAAI;QACpB,SAAS,EAAE,IAAI;KAChB;CACF,CAAC;AAEF,MAAM,gBAAgB,GAAG;IACvB;QACE,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,QAAQ;QACd,K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AAe,CAAC,EAAE;QACpC,KAAK,EAAE,iCAAiC,kBAAkB,CAAC,eAAe,EAAE;QAC5E,OAAO,EAAE,8CAA8C;QACvD,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,4HAA4H;QAClI,cAAc,EAAE,IAAI;KACrB;IACD,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE;QAC5B,KAAK,EAAE,mCAAmC,kBAAkB,CAAC,OAAO,EAAE;QACtE,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,IAAI;KACrB;IACD,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE;QAC7B,KAAK,EAAE,mCAAmC,kBAAkB,CAAC,QAAQ,EAAE;QACvE,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,IAAI;KACrB;IACD,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAAE;QAC9B,KAAK,EAAE,iCAAiC,kBAAkB,CAAC,SAAS,EAAE;QACtE,cAAc,EAAE,IAAI;QACpB,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAE2B,4DAAwB"}
@@ -0,0 +1,8 @@
1
+ interface CountryCodeItem {
2
+ code: string;
3
+ label: string;
4
+ value: string;
5
+ geoIPCountryCode: string;
6
+ }
7
+ export declare const filterCountryCode: (list: CountryCodeItem[], value: string, exactMatch: boolean) => CountryCodeItem[];
8
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.filterCountryCode = void 0;
4
+ const filterCountryCode = (list, value, exactMatch) => {
5
+ if (!list.length) {
6
+ return [];
7
+ }
8
+ if (exactMatch) {
9
+ return list.filter(item => {
10
+ return (item.code === value ||
11
+ item.label === value ||
12
+ (item.value.toLowerCase() === value && value.toLowerCase()) ||
13
+ (item.geoIPCountryCode.toLowerCase() === value && value.toLowerCase()));
14
+ });
15
+ }
16
+ return list.filter(item => {
17
+ return (item.code.includes(value) ||
18
+ item.label.includes(value) ||
19
+ item.value.toLowerCase().includes(value.toLowerCase()));
20
+ });
21
+ };
22
+ exports.filterCountryCode = filterCountryCode;
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/country-code/index.ts"],"names":[],"mappings":";;;AAOO,MAAM,iBAAiB,GAAG,CAC/B,IAAuB,EACvB,KAAa,EACb,UAAmB,EACA,EAAE;IACrB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,CAAC;KACX;IAED,IAAI,UAAU,EAAE;QACd,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;YACxB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,KAAK;gBACnB,IAAI,CAAC,KAAK,KAAK,KAAK;gBACpB,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,KAAK,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;gBAC3D,CAAC,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,KAAK,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC,CACvE,CAAC;QACJ,CAAC,CAAC,CAAC;KACJ;IAED,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QACxB,OAAO,CACL,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;YACzB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;YAC1B,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CACvD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AA3BW,QAAA,iBAAiB,qBA2B5B"}
@@ -9,6 +9,7 @@ export * from './script';
9
9
  export * from './url';
10
10
  export * from './url-parser';
11
11
  export * from './validations';
12
+ export * from './country-code';
12
13
  export * from './growth-source';
13
14
  export * from './analytics';
14
15
  export * from './ab-experiment';
package/dist/cjs/index.js CHANGED
@@ -25,6 +25,7 @@ __exportStar(require("./script"), exports);
25
25
  __exportStar(require("./url"), exports);
26
26
  __exportStar(require("./url-parser"), exports);
27
27
  __exportStar(require("./validations"), exports);
28
+ __exportStar(require("./country-code"), exports);
28
29
  // below <package> to be removed from here and used and '@cuemath/web-utils/<package>' instead
29
30
  __exportStar(require("./growth-source"), exports);
30
31
  __exportStar(require("./analytics"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,kDAAgC;AAChC,qDAAmC;AACnC,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,wCAAsB;AACtB,+CAA6B;AAC7B,gDAA8B;AAE9B,8FAA8F;AAC9F,kDAAgC;AAChC,8CAA4B;AAC5B,kDAAgC;AAChC,qDAAmC;AACnC,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,kDAAgC;AAChC,qDAAmC;AACnC,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,wCAAsB;AACtB,+CAA6B;AAC7B,gDAA8B;AAC9B,iDAA+B;AAE/B,8FAA8F;AAC9F,kDAAgC;AAChC,8CAA4B;AAC5B,kDAAgC;AAChC,qDAAmC;AACnC,sDAAoC"}
@@ -4,5 +4,5 @@ export declare const isSEO: (path: string) => {
4
4
  currentPageName: string;
5
5
  topic: any;
6
6
  };
7
- export declare function getSubRevenueChannel(pathname?: string): "Brand" | "Intent" | "Supply" | "Referral" | "Content" | "Others";
7
+ export declare function getSubRevenueChannel(pathname?: string): "Others" | "Brand" | "Intent" | "Supply" | "Referral" | "Content";
8
8
  export declare function getIsTutorProfilePage(pathname?: string): boolean;
@@ -8,3 +8,5 @@ export declare const NEW_ZEALAND_COUNTRIES: string[];
8
8
  export declare const BEST_PERFORMING_COHORT_ROW_COUNTRIES: string[];
9
9
  export declare const FOCUSED_COUNTRIES: string[];
10
10
  export declare const NON_FOCUSED_ROW_COUNTRIES: string[];
11
+ export declare const ALLOWED_COUNTRIES_FOR_TEACHERS: string[];
12
+ export declare const ALLOWED_COUNTRIES_FOR_LAAM_TEACHERS: string[];