catchup-library-web 1.20.17 → 1.20.19

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.
@@ -1,6 +1,6 @@
1
1
  import { IScoreBarProperties } from "../../properties/BarProperties";
2
2
 
3
- const ScoreBar = ({ score, className }: IScoreBarProperties) => {
3
+ const ScoreBar = ({ score, className, size }: IScoreBarProperties) => {
4
4
  const getProgressBarColor = (score: number) => {
5
5
  if (score >= 70) return "bg-catchup-green";
6
6
  if (score >= 30) return "bg-catchup-orange";
@@ -15,7 +15,17 @@ const ScoreBar = ({ score, className }: IScoreBarProperties) => {
15
15
 
16
16
  return (
17
17
  <div className={`flex items-center gap-2 ${className}`}>
18
- <div className="flex-1 h-5 bg-catchup-gray-100 rounded-catchup-full overflow-hidden">
18
+ <div
19
+ className={`flex-1 ${
20
+ size === "large"
21
+ ? "h-7"
22
+ : size === "medium"
23
+ ? "h-5"
24
+ : size === "small"
25
+ ? "h-3"
26
+ : "h-5"
27
+ } bg-catchup-gray-100 rounded-catchup-full overflow-hidden`}
28
+ >
19
29
  <div
20
30
  className={`h-full rounded-catchup-full transition-all duration-300 ${getProgressBarColor(
21
31
  score
@@ -20,4 +20,5 @@ export interface ITimedProgressBarProperties {
20
20
  export interface IScoreBarProperties {
21
21
  score: number;
22
22
  className?: string;
23
+ size?: string;
23
24
  }
@@ -10,10 +10,6 @@ const retrieveSourceTypeOptionList = (coterieOnly: boolean) => {
10
10
  value: "CATCHXAM",
11
11
  text: i18n.t("CATCHXAM"),
12
12
  },
13
- // {
14
- // value: "STANDARD_EXAM",
15
- // text: i18n.t("STANDARD_EXAM"),
16
- // },
17
13
  {
18
14
  value: "ETUDE",
19
15
  text: i18n.t("ETUDE"),
@@ -26,6 +22,18 @@ const retrieveSourceTypeOptionList = (coterieOnly: boolean) => {
26
22
  value: "ACTIVITY",
27
23
  text: i18n.t("ACTIVITY"),
28
24
  },
25
+ {
26
+ value: "ACTIVITY_CORRECT",
27
+ text: i18n.t("ACTIVITY_CORRECT"),
28
+ },
29
+ {
30
+ value: "ACTIVITY_REVIEW",
31
+ text: i18n.t("ACTIVITY_REVIEW"),
32
+ },
33
+ {
34
+ value: "ACTIVITY_TIME_SPENT",
35
+ text: i18n.t("ACTIVITY_TIME_SPENT"),
36
+ },
29
37
  ];
30
38
  if (!coterieOnly) {
31
39
  currentSourceTypeOptionList.push({
@@ -36,32 +44,14 @@ const retrieveSourceTypeOptionList = (coterieOnly: boolean) => {
36
44
  return currentSourceTypeOptionList;
37
45
  };
38
46
 
39
- const retrieveBadgeTypeOptionList = (isActivity: boolean) => {
40
- const currentBadgeTypeOptionList = [
47
+ const retrieveTrackingTypeOptionList = () => {
48
+ const currentTrackingTypeOptionList = [
41
49
  {
42
50
  value: "COUNT",
43
51
  text: i18n.t("COUNT"),
44
52
  },
45
53
  ];
46
- if (isActivity) {
47
- currentBadgeTypeOptionList.push({
48
- value: "CORRECT",
49
- text: i18n.t("CORRECT"),
50
- });
51
- // currentBadgeTypeOptionList.push({
52
- // value: "INCORRECT",
53
- // text: i18n.t("INCORRECT"),
54
- // });
55
- currentBadgeTypeOptionList.push({
56
- value: "REVIEW",
57
- text: i18n.t("REVIEW"),
58
- });
59
- currentBadgeTypeOptionList.push({
60
- value: "TIME_SPENT",
61
- text: i18n.t("TIME_SPENT"),
62
- });
63
- }
64
- return currentBadgeTypeOptionList;
54
+ return currentTrackingTypeOptionList;
65
55
  };
66
56
 
67
57
  export const retrieveOtherBadgeDTOList = () => {
@@ -72,15 +62,13 @@ export const retrieveOtherBadgeDTOList = () => {
72
62
  );
73
63
  for (let i = 1; i <= 5; i++) {
74
64
  for (const sourceTypeOption of filteredSourceTypeOptionList) {
75
- const badgeTypeOptionList = retrieveBadgeTypeOptionList(
76
- sourceTypeOption.value === "ACTIVITY"
77
- );
78
- for (const badgeTypeOption of badgeTypeOptionList) {
65
+ const trackingTypeOptionList = retrieveTrackingTypeOptionList();
66
+ for (const trackingTypeOption of trackingTypeOptionList) {
79
67
  badgeList.push({
80
68
  badgeDTO: {
81
69
  coterieType: "MANAGEMENT",
82
70
  sourceType: sourceTypeOption.value,
83
- badgeType: badgeTypeOption.value,
71
+ trackingType: trackingTypeOption.value,
84
72
  },
85
73
  level: i,
86
74
  });
@@ -107,15 +95,13 @@ export const retrieveAllEarnedBadgeDTOListByCoterieType = (
107
95
  const badgeList = [];
108
96
  for (let i = 1; i <= 5; i++) {
109
97
  for (const sourceTypeOption of sourceTypeOptionList) {
110
- const badgeTypeOptionList = retrieveBadgeTypeOptionList(
111
- sourceTypeOption.value === "ACTIVITY"
112
- );
113
- for (const badgeTypeOption of badgeTypeOptionList) {
98
+ const trackingTypeOptionList = retrieveTrackingTypeOptionList();
99
+ for (const trackingTypeOption of trackingTypeOptionList) {
114
100
  badgeList.push({
115
101
  badgeDTO: {
116
102
  coterieType,
117
103
  sourceType: sourceTypeOption.value,
118
- badgeType: badgeTypeOption.value,
104
+ trackingType: trackingTypeOption.value,
119
105
  },
120
106
  level: i,
121
107
  });
@@ -126,18 +112,18 @@ export const retrieveAllEarnedBadgeDTOListByCoterieType = (
126
112
  if (a.badgeDTO.sourceType !== b.badgeDTO.sourceType) {
127
113
  return a.badgeDTO.sourceType.localeCompare(b.badgeDTO.sourceType);
128
114
  }
129
- return a.badgeDTO.badgeType.localeCompare(b.badgeDTO.badgeType);
115
+ return a.badgeDTO.trackingType.localeCompare(b.badgeDTO.trackingType);
130
116
  });
131
117
  };
132
118
 
133
119
  export const retrieveBadgeRuleListByParams = (
134
120
  coterieType: string,
135
121
  sourceType: string,
136
- badgeType: string
122
+ trackingType: string
137
123
  ) => {
138
- if (coterieType === "MANAGEMENT") {
139
- if (sourceType === "ACTIVITY") {
140
- if (badgeType === "COUNT") {
124
+ if (trackingType === "COUNT") {
125
+ if (coterieType === "MANAGEMENT") {
126
+ if (sourceType === "ACTIVITY") {
141
127
  return [
142
128
  {
143
129
  level: 1,
@@ -160,128 +146,104 @@ export const retrieveBadgeRuleListByParams = (
160
146
  value: 5000,
161
147
  },
162
148
  ];
163
- } else if (badgeType === "TIME_SPENT") {
149
+ } else if (
150
+ sourceType === "ACTIVITY_CORRECT" ||
151
+ sourceType === "ACTIVITY_REVIEW"
152
+ ) {
164
153
  return [
165
154
  {
166
155
  level: 1,
167
- value: 2,
156
+ value: 25,
168
157
  },
169
158
  {
170
159
  level: 2,
171
- value: 10,
160
+ value: 50,
172
161
  },
173
162
  {
174
163
  level: 3,
175
- value: 20,
164
+ value: 250,
176
165
  },
177
166
  {
178
167
  level: 4,
179
- value: 100,
168
+ value: 500,
180
169
  },
181
170
  {
182
171
  level: 5,
183
- value: 200,
172
+ value: 1000,
184
173
  },
185
174
  ];
186
- } else {
175
+ } else if (sourceType === "ACTIVITY_TIME_SPENT") {
187
176
  return [
188
177
  {
189
178
  level: 1,
190
- value: 25,
179
+ value: 2,
191
180
  },
192
181
  {
193
182
  level: 2,
194
- value: 50,
183
+ value: 10,
195
184
  },
196
185
  {
197
186
  level: 3,
198
- value: 250,
187
+ value: 20,
199
188
  },
200
189
  {
201
190
  level: 4,
202
- value: 500,
191
+ value: 100,
203
192
  },
204
193
  {
205
194
  level: 5,
206
- value: 1000,
195
+ value: 200,
207
196
  },
208
197
  ];
209
- }
210
- } else if (sourceType === "LOGIN") {
211
- return [
212
- {
213
- level: 1,
214
- value: 3,
215
- },
216
- {
217
- level: 2,
218
- value: 7,
219
- },
220
- {
221
- level: 3,
222
- value: 15,
223
- },
224
- {
225
- level: 4,
226
- value: 30,
227
- },
228
- {
229
- level: 5,
230
- value: 90,
231
- },
232
- ];
233
- } else {
234
- if (badgeType === "COUNT") {
198
+ } else if (sourceType === "LOGIN") {
235
199
  return [
236
200
  {
237
201
  level: 1,
238
- value: 5,
202
+ value: 3,
239
203
  },
240
204
  {
241
205
  level: 2,
242
- value: 10,
206
+ value: 7,
243
207
  },
244
208
  {
245
209
  level: 3,
246
- value: 50,
210
+ value: 15,
247
211
  },
248
212
  {
249
213
  level: 4,
250
- value: 100,
214
+ value: 30,
251
215
  },
252
216
  {
253
217
  level: 5,
254
- value: 500,
218
+ value: 90,
255
219
  },
256
220
  ];
257
221
  } else {
258
222
  return [
259
223
  {
260
224
  level: 1,
261
- value: 25,
225
+ value: 5,
262
226
  },
263
227
  {
264
228
  level: 2,
265
- value: 50,
229
+ value: 10,
266
230
  },
267
231
  {
268
232
  level: 3,
269
- value: 250,
233
+ value: 50,
270
234
  },
271
235
  {
272
236
  level: 4,
273
- value: 500,
237
+ value: 100,
274
238
  },
275
239
  {
276
240
  level: 5,
277
- value: 1000,
241
+ value: 500,
278
242
  },
279
243
  ];
280
244
  }
281
- }
282
- } else {
283
- if (sourceType === "ACTIVITY") {
284
- if (badgeType === "COUNT") {
245
+ } else {
246
+ if (sourceType === "ACTIVITY") {
285
247
  return [
286
248
  {
287
249
  level: 1,
@@ -304,57 +266,58 @@ export const retrieveBadgeRuleListByParams = (
304
266
  value: 1000,
305
267
  },
306
268
  ];
307
- } else if (badgeType === "TIME_SPENT") {
269
+ } else if (
270
+ sourceType === "ACTIVITY_CORRECT" ||
271
+ sourceType === "ACTIVITY_REVIEW"
272
+ ) {
308
273
  return [
309
274
  {
310
275
  level: 1,
311
- value: 1,
276
+ value: 5,
312
277
  },
313
278
  {
314
279
  level: 2,
315
- value: 2,
280
+ value: 25,
316
281
  },
317
282
  {
318
283
  level: 3,
319
- value: 10,
284
+ value: 50,
320
285
  },
321
286
  {
322
287
  level: 4,
323
- value: 20,
288
+ value: 250,
324
289
  },
325
290
  {
326
291
  level: 5,
327
- value: 100,
292
+ value: 500,
328
293
  },
329
294
  ];
330
- } else {
295
+ } else if (sourceType === "ACTIVITY_TIME_SPENT") {
331
296
  return [
332
297
  {
333
298
  level: 1,
334
- value: 5,
299
+ value: 1,
335
300
  },
336
301
  {
337
302
  level: 2,
338
- value: 25,
303
+ value: 2,
339
304
  },
340
305
  {
341
306
  level: 3,
342
- value: 50,
307
+ value: 10,
343
308
  },
344
309
  {
345
310
  level: 4,
346
- value: 250,
311
+ value: 20,
347
312
  },
348
313
  {
349
314
  level: 5,
350
- value: 500,
315
+ value: 100,
351
316
  },
352
317
  ];
353
- }
354
- } else if (sourceType === "LOGIN") {
355
- return [];
356
- } else {
357
- if (badgeType === "COUNT") {
318
+ } else if (sourceType === "LOGIN") {
319
+ return [];
320
+ } else {
358
321
  return [
359
322
  {
360
323
  level: 1,
@@ -386,179 +349,160 @@ export const retrieveBadgeRuleListByParams = (
386
349
  export const retrieveBadgeRuleTextByParams = (
387
350
  coterieType: string,
388
351
  sourceType: string,
389
- badgeType: string,
352
+ trackingType: string,
390
353
  level: number
391
354
  ) => {
392
355
  const badgeRuleList = retrieveBadgeRuleListByParams(
393
356
  coterieType,
394
357
  sourceType,
395
- badgeType
358
+ trackingType
396
359
  );
397
360
  const foundBadgeRule = badgeRuleList[level - 1];
398
361
 
399
- if (coterieType === "MANAGEMENT") {
400
- if (sourceType === "ACTIVITY") {
401
- if (badgeType === "COUNT") {
362
+ if (trackingType === "COUNT") {
363
+ if (coterieType === "MANAGEMENT") {
364
+ if (sourceType === "ACTIVITY") {
402
365
  if (foundBadgeRule) {
403
- return `${i18n.t("total_activity_count_text_1")}${
366
+ return `${i18n.t("total_count_activity_text_1")}${
404
367
  foundBadgeRule.value
405
- }${i18n.t("total_activity_count_text_2")}`;
368
+ }${i18n.t("total_count_activity_text_2")}`;
406
369
  } else {
407
- return i18n.t("none_activity_count_text");
370
+ return i18n.t("none_count_activity_text");
408
371
  }
409
- } else if (badgeType === "CORRECT") {
372
+ } else if (sourceType === "ACTIVITY_CORRECT") {
410
373
  if (foundBadgeRule) {
411
- return `${i18n.t("total_activity_correct_text_1")}${
374
+ return `${i18n.t("total_count_activity_correct_text_1")}${
412
375
  foundBadgeRule.value
413
- }${i18n.t("total_activity_correct_text_2")}`;
376
+ }${i18n.t("total_count_activity_correct_text_2")}`;
414
377
  } else {
415
- return i18n.t("none_activity_correct_text");
378
+ return i18n.t("none_count_activity_correct_text");
416
379
  }
417
- } else if (badgeType === "REVIEW") {
380
+ } else if (sourceType === "ACTIVITY_REVIEW") {
418
381
  if (foundBadgeRule) {
419
- return `${i18n.t("total_activity_review_text_1")}${
382
+ return `${i18n.t("total_count_activity_review_text_1")}${
420
383
  foundBadgeRule.value
421
- }${i18n.t("total_activity_review_text_2")}`;
384
+ }${i18n.t("total_count_activity_review_text_2")}`;
422
385
  } else {
423
- return i18n.t("none_activity_review_text");
386
+ return i18n.t("none_count_activity_review_text");
424
387
  }
425
- } else if (badgeType === "TIME_SPENT") {
388
+ } else if (sourceType === "ACTIVITY_TIME_SPENT") {
426
389
  if (foundBadgeRule) {
427
- return `${i18n.t("total_activity_time_spent_text_1")}${
390
+ return `${i18n.t("coterie_count_activity_time_spent_text_1")}${
428
391
  foundBadgeRule.value
429
- }${i18n.t("total_activity_time_spent_text_2")}`;
392
+ }${i18n.t("coterie_count_activity_time_spent_text_2")}`;
430
393
  } else {
431
- return i18n.t("none_activity_time_spent_text");
394
+ return i18n.t("none_count_activity_time_spent_text");
432
395
  }
433
- }
434
- } else if (sourceType === "CATCHTIVITY") {
435
- if (badgeType === "COUNT") {
396
+ } else if (sourceType === "CATCHTIVITY") {
436
397
  if (foundBadgeRule) {
437
- return `${i18n.t("total_catchtivity_count_text_1")}${
398
+ return `${i18n.t("total_count_catchtivity_text_1")}${
438
399
  foundBadgeRule.value
439
- }${i18n.t("total_catchtivity_count_text_2")}`;
400
+ }${i18n.t("total_count_catchtivity_text_2")}`;
440
401
  } else {
441
- return i18n.t("none_catchtivity_count_text");
402
+ return i18n.t("none_count_catchtivity_text");
442
403
  }
443
- }
444
- } else if (sourceType === "CATCHXAM") {
445
- if (badgeType === "COUNT") {
404
+ } else if (sourceType === "CATCHXAM") {
446
405
  if (foundBadgeRule) {
447
- return `${i18n.t("total_catchxam_count_text_1")}${
406
+ return `${i18n.t("total_count_catchxam_text_1")}${
448
407
  foundBadgeRule.value
449
- }${i18n.t("total_catchxam_count_text_2")}`;
408
+ }${i18n.t("total_count_catchxam_text_2")}`;
450
409
  } else {
451
- return i18n.t("none_catchxam_count_text");
410
+ return i18n.t("none_count_catchxam_text");
452
411
  }
453
- }
454
- } else if (sourceType === "ETUDE") {
455
- if (badgeType === "COUNT") {
412
+ } else if (sourceType === "ETUDE") {
456
413
  if (foundBadgeRule) {
457
- return `${i18n.t("total_etude_count_text_1")}${
414
+ return `${i18n.t("total_count_etude_text_1")}${
458
415
  foundBadgeRule.value
459
- }${i18n.t("total_etude_count_text_2")}`;
416
+ }${i18n.t("total_count_etude_text_2")}`;
460
417
  } else {
461
- return i18n.t("none_etude_count_text");
418
+ return i18n.t("none_count_etude_text");
462
419
  }
463
- }
464
- } else if (sourceType === "CONTEST") {
465
- if (badgeType === "COUNT") {
420
+ } else if (sourceType === "CONTEST") {
466
421
  if (foundBadgeRule) {
467
- return `${i18n.t("total_contest_count_text_1")}${
422
+ return `${i18n.t("total_count_contest_text_1")}${
468
423
  foundBadgeRule.value
469
- }${i18n.t("total_contest_count_text_2")}`;
424
+ }${i18n.t("total_count_contest_text_2")}`;
470
425
  } else {
471
- return i18n.t("none_contest_count_text");
426
+ return i18n.t("none_count_contest_text");
472
427
  }
473
- }
474
- } else if (sourceType === "LOGIN") {
475
- if (badgeType === "COUNT") {
428
+ } else if (sourceType === "LOGIN") {
476
429
  if (foundBadgeRule) {
477
- return `${i18n.t("total_login_count_text_1")}${
430
+ return `${i18n.t("total_count_login_text_1")}${
478
431
  foundBadgeRule.value
479
- }${i18n.t("total_login_count_text_2")}`;
432
+ }${i18n.t("total_count_login_text_2")}`;
480
433
  } else {
481
- return i18n.t("none_login_count_text");
434
+ return i18n.t("none_count_login_text");
482
435
  }
483
436
  }
484
- }
485
- } else {
486
- if (sourceType === "ACTIVITY") {
487
- if (badgeType === "COUNT") {
437
+ } else {
438
+ if (sourceType === "ACTIVITY") {
488
439
  if (foundBadgeRule) {
489
- return `${i18n.t("coterie_activity_count_text_1")}${
440
+ return `${i18n.t("coterie_count_activity_text_1")}${
490
441
  foundBadgeRule.value
491
- }${i18n.t("coterie_activity_count_text_2")}`;
442
+ }${i18n.t("coterie_count_activity_text_2")}`;
492
443
  } else {
493
- return i18n.t("none_activity_count_text");
444
+ return i18n.t("none_count_activity_text");
494
445
  }
495
- } else if (badgeType === "CORRECT") {
446
+ } else if (sourceType === "ACTIVITY_CORRECT") {
496
447
  if (foundBadgeRule) {
497
- return `${i18n.t("coterie_activity_correct_text_1")}${
448
+ return `${i18n.t("coterie_count_activity_correct_text_1")}${
498
449
  foundBadgeRule.value
499
- }${i18n.t("coterie_activity_correct_text_2")}`;
450
+ }${i18n.t("coterie_count_activity_correct_text_2")}`;
500
451
  } else {
501
- return i18n.t("none_activity_correct_text");
452
+ return i18n.t("none_count_activity_correct_text");
502
453
  }
503
- } else if (badgeType === "REVIEW") {
454
+ } else if (sourceType === "ACTIVITY_REVIEW") {
504
455
  if (foundBadgeRule) {
505
- return `${i18n.t("coterie_activity_review_text_1")}${
456
+ return `${i18n.t("coterie_count_activity_review_text_1")}${
506
457
  foundBadgeRule.value
507
- }${i18n.t("coterie_activity_review_text_2")}`;
458
+ }${i18n.t("coterie_count_activity_review_text_2")}`;
508
459
  } else {
509
- return i18n.t("none_activity_review_text");
460
+ return i18n.t("none_count_activity_review_text");
510
461
  }
511
- } else if (badgeType === "TIME_SPENT") {
462
+ } else if (sourceType === "ACTIVITY_TIME_SPENT") {
512
463
  if (foundBadgeRule) {
513
- return `${i18n.t("coterie_activity_time_spent_text_1")}${
464
+ return `${i18n.t("total_count_activity_time_spent_text_1")}${
514
465
  foundBadgeRule.value
515
- }${i18n.t("coterie_activity_time_spent_text_2")}`;
466
+ }${i18n.t("total_count_activity_time_spent_text_2")}`;
516
467
  } else {
517
- return i18n.t("none_activity_time_spent_text");
468
+ return i18n.t("none_count_activity_time_spent_text");
518
469
  }
519
- }
520
- } else if (sourceType === "CATCHTIVITY") {
521
- if (badgeType === "COUNT") {
470
+ } else if (sourceType === "CATCHTIVITY") {
522
471
  if (foundBadgeRule) {
523
- return `${i18n.t("coterie_catchtivity_count_text_1")}${
472
+ return `${i18n.t("coterie_count_catchtivity_text_1")}${
524
473
  foundBadgeRule.value
525
- }${i18n.t("coterie_catchtivity_count_text_2")}`;
474
+ }${i18n.t("coterie_count_catchtivity_text_2")}`;
526
475
  } else {
527
- return i18n.t("none_catchtivity_count_text");
476
+ return i18n.t("none_count_catchtivity_text");
528
477
  }
529
- }
530
- } else if (sourceType === "CATCHXAM") {
531
- if (badgeType === "COUNT") {
478
+ } else if (sourceType === "CATCHXAM") {
532
479
  if (foundBadgeRule) {
533
- return `${i18n.t("coterie_catchxam_count_text_1")}${
480
+ return `${i18n.t("coterie_count_catchxam_text_1")}${
534
481
  foundBadgeRule.value
535
- }${i18n.t("coterie_catchxam_count_text_2")}`;
482
+ }${i18n.t("coterie_count_catchxam_text_2")}`;
536
483
  } else {
537
- return i18n.t("none_catchxam_count_text");
484
+ return i18n.t("none_count_catchxam_text");
538
485
  }
539
- }
540
- } else if (sourceType === "ETUDE") {
541
- if (badgeType === "COUNT") {
486
+ } else if (sourceType === "ETUDE") {
542
487
  if (foundBadgeRule) {
543
- return `${i18n.t("coterie_etude_count_text_1")}${
488
+ return `${i18n.t("coterie_count_etude_text_1")}${
544
489
  foundBadgeRule.value
545
- }${i18n.t("coterie_etude_count_text_2")}`;
490
+ }${i18n.t("coterie_count_etude_text_2")}`;
546
491
  } else {
547
- return i18n.t("none_etude_count_text");
492
+ return i18n.t("none_count_etude_text");
548
493
  }
549
- }
550
- } else if (sourceType === "CONTEST") {
551
- if (badgeType === "COUNT") {
494
+ } else if (sourceType === "CONTEST") {
552
495
  if (foundBadgeRule) {
553
- return `${i18n.t("coterie_contest_count_text_1")}${
496
+ return `${i18n.t("coterie_count_contest_text_1")}${
554
497
  foundBadgeRule.value
555
- }${i18n.t("coterie_contest_count_text_2")}`;
498
+ }${i18n.t("coterie_count_contest_text_2")}`;
556
499
  } else {
557
- return i18n.t("none_contest_count_text");
500
+ return i18n.t("none_count_contest_text");
558
501
  }
502
+ } else if (sourceType === "LOGIN") {
559
503
  }
560
- } else if (sourceType === "LOGIN") {
561
504
  }
562
505
  }
506
+
563
507
  return null;
564
508
  };