@cuemath/web-utils 1.2.7 → 1.2.8

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
@@ -194,4 +194,6 @@ export const FOCUSED_COUNTRIES = [
194
194
  ...MIDDLE_EAST_COUNTRIES,
195
195
  ];
196
196
  export const NON_FOCUSED_ROW_COUNTRIES = Object.values(ISO_COUNTRY_CODE).filter(value => !FOCUSED_COUNTRIES.includes(value));
197
+ export const ALLOWED_COUNTRIES_FOR_TEACHERS = ['IN', 'US'];
198
+ export const ALLOWED_COUNTRIES_FOR_LAAM_TEACHERS = ['IN'];
197
199
  //# 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,OAAO,EAAE,6BAA6B,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvF,MAAM,CAAC,MAAM,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;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;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AAEvE,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,gBAAgB,CAAC,gBAAgB,CAAC;IAClC,gBAAgB,CAAC,SAAS;IAC1B,gBAAgB,CAAC,aAAa,CAAC;IAC/B,gBAAgB,CAAC,SAAS;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,gBAAgB,CAAC,KAAK;IACtB,gBAAgB,CAAC,eAAe,CAAC;IACjC,gBAAgB,CAAC,MAAM;IACvB,GAAG,oCAAoC;IACvC,GAAG,qBAAqB;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAC7E,KAAK,CAAC,EAAE,CAAC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,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';
@@ -2,4 +2,5 @@ export * from './country';
2
2
  export * from './date-time';
3
3
  export * from './currency-symbols';
4
4
  export * from './instrumentation';
5
+ export * from './teacher';
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
@@ -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,273 @@
1
+ const teacherSignupSteps = {
2
+ signup: 'sign-up',
3
+ verifyOtp: 'verify-otp',
4
+ selectDegree: 'select-degree',
5
+ selectStream: 'select-stream',
6
+ selectGrade: 'select-grade',
7
+ selectExperience: 'select-experience',
8
+ watchVideo: 'watch-video',
9
+ mathTestAndSop: 'cet-and-sop-video',
10
+ recordLesson: 'record-lesson',
11
+ uploadDocuments: 'upload-documents',
12
+ success: 'success',
13
+ rejected: 'rejected',
14
+ login: 'login',
15
+ dashboard: 'dashboard',
16
+ };
17
+ const teacherSignupForm = [
18
+ {
19
+ id: 'full_name',
20
+ label: 'Name',
21
+ type: 'text',
22
+ },
23
+ {
24
+ id: 'email',
25
+ label: 'Email ID',
26
+ type: 'email',
27
+ executeOnBlurFunction: true,
28
+ },
29
+ {
30
+ id: 'intl_mobile',
31
+ type: 'mobile',
32
+ label: 'Mobile number',
33
+ executeOnBlurFunction: true,
34
+ restrictSearch: true,
35
+ isRAinput: true,
36
+ },
37
+ ];
38
+ const teacherLoginForm = [
39
+ {
40
+ id: 'intl_mobile',
41
+ type: 'mobile',
42
+ label: 'Mobile number',
43
+ executeOnBlurFunction: true,
44
+ restrictSearch: true,
45
+ isRAinput: true,
46
+ },
47
+ ];
48
+ const teacherVerifyOtpForm = [
49
+ {
50
+ id: 'otp',
51
+ label: '4 -digit code',
52
+ type: 'otp',
53
+ maxLength: 4,
54
+ autoFocus: true,
55
+ alignResend: true,
56
+ },
57
+ ];
58
+ const teacherEdQualificationOptions = [
59
+ {
60
+ id: 1,
61
+ key: 'bachelors',
62
+ label: 'Bachelors',
63
+ value: 'bachelors',
64
+ },
65
+ {
66
+ id: 2,
67
+ key: 'masters_or_above',
68
+ label: 'Masters or above',
69
+ value: 'masters_or_above',
70
+ },
71
+ {
72
+ id: 3,
73
+ key: 'not_a_graduate',
74
+ label: 'Not a graduate',
75
+ value: 'not_a_graduate',
76
+ },
77
+ ];
78
+ const teacherSelectDegreeForm = [
79
+ {
80
+ id: 'highest_degree',
81
+ options: teacherEdQualificationOptions,
82
+ type: 'tab',
83
+ optional: false,
84
+ variant: 'btnGroup',
85
+ flexWrap: 'wrap',
86
+ mobileWidth: 'auto',
87
+ height: '48px',
88
+ justifyContent: 'flex-start',
89
+ mobileJustifyContent: 'flex-start',
90
+ minWidth: '100%',
91
+ },
92
+ ];
93
+ const teacherStreamOfEducationOptions = [
94
+ {
95
+ id: 1,
96
+ key: 'biology/chemistry',
97
+ label: 'Biology/Chemistry',
98
+ value: 'biology/chemistry',
99
+ },
100
+ {
101
+ id: 2,
102
+ key: 'physics/computer-science',
103
+ label: 'Physics/Computer science',
104
+ value: 'physics/computer-science',
105
+ },
106
+ {
107
+ id: 3,
108
+ key: 'math',
109
+ label: 'Math',
110
+ value: 'math',
111
+ },
112
+ {
113
+ id: 4,
114
+ key: 'accountancy/commerce',
115
+ label: 'Accountancy/Commerce',
116
+ value: 'accountancy/commerce',
117
+ },
118
+ {
119
+ id: 5,
120
+ key: 'others',
121
+ label: 'Others',
122
+ value: 'others',
123
+ },
124
+ ];
125
+ const teacherSelectStreamForm = [
126
+ {
127
+ id: 'stream',
128
+ options: teacherStreamOfEducationOptions,
129
+ type: 'tab',
130
+ height: '48px',
131
+ mobileWidth: 'auto',
132
+ flexWrap: 'wrap',
133
+ variant: 'btnGroup',
134
+ justifyContent: 'flex-start',
135
+ mobileJustifyContent: 'flex-start',
136
+ optional: false,
137
+ minWidth: '100%',
138
+ },
139
+ ];
140
+ const teacherExperienceOptions = [
141
+ {
142
+ id: 1,
143
+ key: 'yes',
144
+ label: 'Yes',
145
+ value: 'yes',
146
+ },
147
+ {
148
+ id: 2,
149
+ key: 'no',
150
+ label: 'No',
151
+ value: 'no',
152
+ },
153
+ ];
154
+ const teacherSelectExperienceForm = [
155
+ {
156
+ id: 'maths_experience',
157
+ options: teacherExperienceOptions,
158
+ type: 'tab',
159
+ optional: false,
160
+ variant: 'btnGroup',
161
+ flexWrap: 'wrap',
162
+ mobileWidth: 'auto',
163
+ height: '48px',
164
+ justifyContent: 'flex-start',
165
+ mobileJustifyContent: 'flex-start',
166
+ minWidth: '100%',
167
+ },
168
+ ];
169
+ const cetGuideLines = [
170
+ { id: 1, text: 'You must take the test within 72 hours of generating the link.' },
171
+ { id: 2, text: 'The test will happen only on a desktop browser.' },
172
+ { id: 3, text: 'We’ve shared a link for the Cuemath Entrance test on your mail id.' },
173
+ { id: 4, text: 'The test will be taken as per your selected grade group.' },
174
+ ];
175
+ const teacherSignupStepsConfig = {
176
+ [teacherSignupSteps.signup]: {
177
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.signup}`,
178
+ form: teacherSignupForm,
179
+ heading: 'Create an account',
180
+ showProgressBar: true,
181
+ linkText: `Don’t have an account ?`,
182
+ linkSubmitLabel: 'Sign up',
183
+ stepIndex: 1,
184
+ },
185
+ [teacherSignupSteps.login]: {
186
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.login}`,
187
+ heading: 'Login to your teacher account',
188
+ subHeading: 'You will get a verification code via SMS on your registered phone number.',
189
+ form: teacherLoginForm,
190
+ linkText: `Already have an account ?`,
191
+ linkSubmitLabel: 'Sign in',
192
+ stepIndex: 1,
193
+ },
194
+ [teacherSignupSteps.verifyOtp]: {
195
+ form: teacherVerifyOtpForm,
196
+ },
197
+ [teacherSignupSteps.selectDegree]: {
198
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.selectDegree}`,
199
+ heading: 'What is your highest educational degree?',
200
+ form: teacherSelectDegreeForm,
201
+ isPrivateRoute: true,
202
+ showProgressBar: true,
203
+ },
204
+ [teacherSignupSteps.selectStream]: {
205
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.selectStream}`,
206
+ heading: 'Select the stream of your education?',
207
+ form: teacherSelectStreamForm,
208
+ isPrivateRoute: true,
209
+ showProgressBar: true,
210
+ },
211
+ [teacherSignupSteps.selectGrade]: {
212
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.selectGrade}`,
213
+ heading: 'Pick your grade',
214
+ title: 'Select grade',
215
+ desc: 'Pick a grade group as per your expertise',
216
+ subHeading: 'Your Cuemath Eligibility Test (CET) will be based on your selected grade group.',
217
+ isPrivateRoute: true,
218
+ },
219
+ [teacherSignupSteps.selectExperience]: {
220
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.selectExperience}`,
221
+ heading: 'Do you have any prior math teaching experience?',
222
+ form: teacherSelectExperienceForm,
223
+ isPrivateRoute: true,
224
+ showProgressBar: true,
225
+ },
226
+ [teacherSignupSteps.watchVideo]: {
227
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.watchVideo}`,
228
+ title: 'Watch Info video',
229
+ desc: 'A quick video on what are the steps required to be completed to be a Cuemath teacher.',
230
+ heading: 'Cuemath follows a fast, disciplined 3 step application process.',
231
+ subHeading: 'Watch this quick video to know your next steps.',
232
+ isPrivateRoute: true,
233
+ showGreeting: true,
234
+ },
235
+ [teacherSignupSteps.mathTestAndSop]: {
236
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.mathTestAndSop}`,
237
+ title: 'Take eligibility test',
238
+ desc: 'Complete a math test and upload a SOP video both within 70 minutes.',
239
+ descLink: 'https://drive.google.com/file/d/1NsOen5p2P6cpakbeaBPvtIJi7cwEYV16/view',
240
+ isPrivateRoute: true,
241
+ info: cetGuideLines,
242
+ },
243
+ [teacherSignupSteps.recordLesson]: {
244
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.recordLesson}`,
245
+ title: 'Record a lesson',
246
+ desc: 'Use your mobile to record a live teaching lesson demonstrating your teaching style and skills',
247
+ isPrivateRoute: true,
248
+ },
249
+ [teacherSignupSteps.uploadDocuments]: {
250
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.uploadDocuments}`,
251
+ heading: 'Complete the steps to finish your assessment',
252
+ title: 'Upload documents',
253
+ desc: 'Keep your Aadhar and latest degree marksheet ready with you. We will use this information for your background verification',
254
+ isPrivateRoute: true,
255
+ },
256
+ [teacherSignupSteps.success]: {
257
+ route: `/teacher/v2/application/?status=${teacherSignupSteps.success}`,
258
+ hideHeader: true,
259
+ isPrivateRoute: true,
260
+ },
261
+ [teacherSignupSteps.rejected]: {
262
+ route: `/teacher/v2/application/?status=${teacherSignupSteps.rejected}`,
263
+ hideHeader: true,
264
+ isPrivateRoute: true,
265
+ },
266
+ [teacherSignupSteps.dashboard]: {
267
+ route: `/teacher/v2/application/?step=${teacherSignupSteps.dashboard}`,
268
+ isPrivateRoute: true,
269
+ showGreeting: true,
270
+ },
271
+ };
272
+ export { teacherSignupSteps, teacherSignupStepsConfig };
273
+ //# 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;AAEF,MAAM,iBAAiB,GAAG;IACxB;QACE,EAAE,EAAE,WAAW;QACf,KAAK,EAA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;QACnC,KAAK,EAAE,iCAAiC,kBAAkB,CAAC,cAAc,EAAE;QAC3E,KAAK,EAAE,uBAAuB;QAC9B,IAAI,EAAE,qEAAqE;QAC3E,QAAQ,EAAE,wEAAwE;QAClF,cAAc,EAAE,IAAI;QACpB,IAAI,EAAE,aAAa;KACpB;IACD,CAAC,kBAAkB,CAAC,YAAY,CAAC,EAAE;QACjC,KAAK,EAAE,iCAAiC,kBAAkB,CAAC,YAAY,EAAE;QACzE,KAAK,EAAE,iBAAiB;QACxB,IAAI,EAAE,+FAA+F;QACrG,cAAc,EAAE,IAAI;KACrB;IACD,CAAC,kBAAkB,CAAC,eAAe,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;AAEF,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,CAAC"}
@@ -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,19 @@
1
+ export const filterCountryCode = (list, value, exactMatch) => {
2
+ if (!list.length) {
3
+ return [];
4
+ }
5
+ if (exactMatch) {
6
+ return list.filter(item => {
7
+ return (item.code === value ||
8
+ item.label === value ||
9
+ (item.value.toLowerCase() === value && value.toLowerCase()) ||
10
+ (item.geoIPCountryCode.toLowerCase() === value && value.toLowerCase()));
11
+ });
12
+ }
13
+ return list.filter(item => {
14
+ return (item.code.includes(value) ||
15
+ item.label.includes(value) ||
16
+ item.value.toLowerCase().includes(value.toLowerCase()));
17
+ });
18
+ };
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/country-code/index.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,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"}
@@ -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/esm/index.js CHANGED
@@ -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
  // below <package> to be removed from here and used and '@cuemath/web-utils/<package>' instead
13
14
  export * from './growth-source';
14
15
  export * from './analytics';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAE9B,8FAA8F;AAC9F,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAE/B,8FAA8F;AAC9F,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/web-utils",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Shared web utils package",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -53,4 +53,4 @@
53
53
  "@types/node": "^18.11.18",
54
54
  "dayjs": "1.11.15"
55
55
  }
56
- }
56
+ }