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.
package/dist/index.js CHANGED
@@ -366,7 +366,7 @@ var TimedProgressBar_default = TimedProgressBar;
366
366
 
367
367
  // src/components/bars/ScoreBar.tsx
368
368
  var import_jsx_runtime3 = require("react/jsx-runtime");
369
- var ScoreBar = ({ score, className }) => {
369
+ var ScoreBar = ({ score, className, size }) => {
370
370
  const getProgressBarColor = (score2) => {
371
371
  if (score2 >= 70) return "bg-catchup-green";
372
372
  if (score2 >= 30) return "bg-catchup-orange";
@@ -378,15 +378,21 @@ var ScoreBar = ({ score, className }) => {
378
378
  return "text-catchup-red";
379
379
  };
380
380
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: `flex items-center gap-2 ${className}`, children: [
381
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex-1 h-5 bg-catchup-gray-100 rounded-catchup-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
381
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
382
382
  "div",
383
383
  {
384
- className: `h-full rounded-catchup-full transition-all duration-300 ${getProgressBarColor(
385
- score
386
- )}`,
387
- style: { width: `${score}%` }
384
+ className: `flex-1 ${size === "large" ? "h-7" : size === "medium" ? "h-5" : size === "small" ? "h-3" : "h-5"} bg-catchup-gray-100 rounded-catchup-full overflow-hidden`,
385
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
386
+ "div",
387
+ {
388
+ className: `h-full rounded-catchup-full transition-all duration-300 ${getProgressBarColor(
389
+ score
390
+ )}`,
391
+ style: { width: `${score}%` }
392
+ }
393
+ )
388
394
  }
389
- ) }),
395
+ ),
390
396
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
391
397
  "span",
392
398
  {
@@ -4985,7 +4991,7 @@ var FillInTheBlanksActivityMaterialContent = ({
4985
4991
  component: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4986
4992
  "div",
4987
4993
  {
4988
- className: "border-catchup-blue border-2 px-2 py-1 rounded-catchup-xlarge cursor-pointer",
4994
+ className: "border-catchup-blue border-2 px-2 rounded-catchup-xlarge cursor-pointer",
4989
4995
  onMouseDown: () => {
4990
4996
  setSelectedOption(option);
4991
4997
  setPasteOptionIndex(null);
@@ -5368,7 +5374,7 @@ var GroupingActivityMaterialContent = ({
5368
5374
  }) }),
5369
5375
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DividerLine_default, {})
5370
5376
  ] }) : null,
5371
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "overflow-y-auto max-h-[600px]", children: Object.keys(answerMap).map((answerMapKey, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-row w-full", children: [
5377
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "overflow-y-auto max-h-[500px]", children: Object.keys(answerMap).map((answerMapKey, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-row w-full", children: [
5372
5378
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "w-1/3", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5373
5379
  "div",
5374
5380
  {
@@ -5661,7 +5667,7 @@ var MatchingActivityMaterialContent = ({
5661
5667
  ),
5662
5668
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DividerLine_default, {}) })
5663
5669
  ] }) : null,
5664
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "overflow-y-auto max-h-[600px]", children: Object.keys(answerMap).map((answerMapKey, index) => {
5670
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "overflow-y-auto max-h-[500px]", children: Object.keys(answerMap).map((answerMapKey, index) => {
5665
5671
  const learnerAnswerState = checkAnswerState(
5666
5672
  materialMap[answerMapKey],
5667
5673
  answerMap[answerMapKey]
@@ -9445,10 +9451,6 @@ var retrieveSourceTypeOptionList = (coterieOnly) => {
9445
9451
  value: "CATCHXAM",
9446
9452
  text: i18n_default.t("CATCHXAM")
9447
9453
  },
9448
- // {
9449
- // value: "STANDARD_EXAM",
9450
- // text: i18n.t("STANDARD_EXAM"),
9451
- // },
9452
9454
  {
9453
9455
  value: "ETUDE",
9454
9456
  text: i18n_default.t("ETUDE")
@@ -9460,6 +9462,18 @@ var retrieveSourceTypeOptionList = (coterieOnly) => {
9460
9462
  {
9461
9463
  value: "ACTIVITY",
9462
9464
  text: i18n_default.t("ACTIVITY")
9465
+ },
9466
+ {
9467
+ value: "ACTIVITY_CORRECT",
9468
+ text: i18n_default.t("ACTIVITY_CORRECT")
9469
+ },
9470
+ {
9471
+ value: "ACTIVITY_REVIEW",
9472
+ text: i18n_default.t("ACTIVITY_REVIEW")
9473
+ },
9474
+ {
9475
+ value: "ACTIVITY_TIME_SPENT",
9476
+ text: i18n_default.t("ACTIVITY_TIME_SPENT")
9463
9477
  }
9464
9478
  ];
9465
9479
  if (!coterieOnly) {
@@ -9470,28 +9484,14 @@ var retrieveSourceTypeOptionList = (coterieOnly) => {
9470
9484
  }
9471
9485
  return currentSourceTypeOptionList;
9472
9486
  };
9473
- var retrieveBadgeTypeOptionList = (isActivity) => {
9474
- const currentBadgeTypeOptionList = [
9487
+ var retrieveTrackingTypeOptionList = () => {
9488
+ const currentTrackingTypeOptionList = [
9475
9489
  {
9476
9490
  value: "COUNT",
9477
9491
  text: i18n_default.t("COUNT")
9478
9492
  }
9479
9493
  ];
9480
- if (isActivity) {
9481
- currentBadgeTypeOptionList.push({
9482
- value: "CORRECT",
9483
- text: i18n_default.t("CORRECT")
9484
- });
9485
- currentBadgeTypeOptionList.push({
9486
- value: "REVIEW",
9487
- text: i18n_default.t("REVIEW")
9488
- });
9489
- currentBadgeTypeOptionList.push({
9490
- value: "TIME_SPENT",
9491
- text: i18n_default.t("TIME_SPENT")
9492
- });
9493
- }
9494
- return currentBadgeTypeOptionList;
9494
+ return currentTrackingTypeOptionList;
9495
9495
  };
9496
9496
  var retrieveOtherBadgeDTOList = () => {
9497
9497
  const badgeList = [];
@@ -9501,15 +9501,13 @@ var retrieveOtherBadgeDTOList = () => {
9501
9501
  );
9502
9502
  for (let i = 1; i <= 5; i++) {
9503
9503
  for (const sourceTypeOption of filteredSourceTypeOptionList) {
9504
- const badgeTypeOptionList = retrieveBadgeTypeOptionList(
9505
- sourceTypeOption.value === "ACTIVITY"
9506
- );
9507
- for (const badgeTypeOption of badgeTypeOptionList) {
9504
+ const trackingTypeOptionList = retrieveTrackingTypeOptionList();
9505
+ for (const trackingTypeOption of trackingTypeOptionList) {
9508
9506
  badgeList.push({
9509
9507
  badgeDTO: {
9510
9508
  coterieType: "MANAGEMENT",
9511
9509
  sourceType: sourceTypeOption.value,
9512
- badgeType: badgeTypeOption.value
9510
+ trackingType: trackingTypeOption.value
9513
9511
  },
9514
9512
  level: i
9515
9513
  });
@@ -9530,15 +9528,13 @@ var retrieveAllEarnedBadgeDTOListByCoterieType = (coterieType) => {
9530
9528
  const badgeList = [];
9531
9529
  for (let i = 1; i <= 5; i++) {
9532
9530
  for (const sourceTypeOption of sourceTypeOptionList) {
9533
- const badgeTypeOptionList = retrieveBadgeTypeOptionList(
9534
- sourceTypeOption.value === "ACTIVITY"
9535
- );
9536
- for (const badgeTypeOption of badgeTypeOptionList) {
9531
+ const trackingTypeOptionList = retrieveTrackingTypeOptionList();
9532
+ for (const trackingTypeOption of trackingTypeOptionList) {
9537
9533
  badgeList.push({
9538
9534
  badgeDTO: {
9539
9535
  coterieType,
9540
9536
  sourceType: sourceTypeOption.value,
9541
- badgeType: badgeTypeOption.value
9537
+ trackingType: trackingTypeOption.value
9542
9538
  },
9543
9539
  level: i
9544
9540
  });
@@ -9549,13 +9545,13 @@ var retrieveAllEarnedBadgeDTOListByCoterieType = (coterieType) => {
9549
9545
  if (a.badgeDTO.sourceType !== b.badgeDTO.sourceType) {
9550
9546
  return a.badgeDTO.sourceType.localeCompare(b.badgeDTO.sourceType);
9551
9547
  }
9552
- return a.badgeDTO.badgeType.localeCompare(b.badgeDTO.badgeType);
9548
+ return a.badgeDTO.trackingType.localeCompare(b.badgeDTO.trackingType);
9553
9549
  });
9554
9550
  };
9555
- var retrieveBadgeRuleListByParams = (coterieType, sourceType, badgeType) => {
9556
- if (coterieType === "MANAGEMENT") {
9557
- if (sourceType === "ACTIVITY") {
9558
- if (badgeType === "COUNT") {
9551
+ var retrieveBadgeRuleListByParams = (coterieType, sourceType, trackingType) => {
9552
+ if (trackingType === "COUNT") {
9553
+ if (coterieType === "MANAGEMENT") {
9554
+ if (sourceType === "ACTIVITY") {
9559
9555
  return [
9560
9556
  {
9561
9557
  level: 1,
@@ -9578,128 +9574,101 @@ var retrieveBadgeRuleListByParams = (coterieType, sourceType, badgeType) => {
9578
9574
  value: 5e3
9579
9575
  }
9580
9576
  ];
9581
- } else if (badgeType === "TIME_SPENT") {
9577
+ } else if (sourceType === "ACTIVITY_CORRECT" || sourceType === "ACTIVITY_REVIEW") {
9582
9578
  return [
9583
9579
  {
9584
9580
  level: 1,
9585
- value: 2
9581
+ value: 25
9586
9582
  },
9587
9583
  {
9588
9584
  level: 2,
9589
- value: 10
9585
+ value: 50
9590
9586
  },
9591
9587
  {
9592
9588
  level: 3,
9593
- value: 20
9589
+ value: 250
9594
9590
  },
9595
9591
  {
9596
9592
  level: 4,
9597
- value: 100
9593
+ value: 500
9598
9594
  },
9599
9595
  {
9600
9596
  level: 5,
9601
- value: 200
9597
+ value: 1e3
9602
9598
  }
9603
9599
  ];
9604
- } else {
9600
+ } else if (sourceType === "ACTIVITY_TIME_SPENT") {
9605
9601
  return [
9606
9602
  {
9607
9603
  level: 1,
9608
- value: 25
9604
+ value: 2
9609
9605
  },
9610
9606
  {
9611
9607
  level: 2,
9612
- value: 50
9608
+ value: 10
9613
9609
  },
9614
9610
  {
9615
9611
  level: 3,
9616
- value: 250
9612
+ value: 20
9617
9613
  },
9618
9614
  {
9619
9615
  level: 4,
9620
- value: 500
9616
+ value: 100
9621
9617
  },
9622
9618
  {
9623
9619
  level: 5,
9624
- value: 1e3
9620
+ value: 200
9625
9621
  }
9626
9622
  ];
9627
- }
9628
- } else if (sourceType === "LOGIN") {
9629
- return [
9630
- {
9631
- level: 1,
9632
- value: 3
9633
- },
9634
- {
9635
- level: 2,
9636
- value: 7
9637
- },
9638
- {
9639
- level: 3,
9640
- value: 15
9641
- },
9642
- {
9643
- level: 4,
9644
- value: 30
9645
- },
9646
- {
9647
- level: 5,
9648
- value: 90
9649
- }
9650
- ];
9651
- } else {
9652
- if (badgeType === "COUNT") {
9623
+ } else if (sourceType === "LOGIN") {
9653
9624
  return [
9654
9625
  {
9655
9626
  level: 1,
9656
- value: 5
9627
+ value: 3
9657
9628
  },
9658
9629
  {
9659
9630
  level: 2,
9660
- value: 10
9631
+ value: 7
9661
9632
  },
9662
9633
  {
9663
9634
  level: 3,
9664
- value: 50
9635
+ value: 15
9665
9636
  },
9666
9637
  {
9667
9638
  level: 4,
9668
- value: 100
9639
+ value: 30
9669
9640
  },
9670
9641
  {
9671
9642
  level: 5,
9672
- value: 500
9643
+ value: 90
9673
9644
  }
9674
9645
  ];
9675
9646
  } else {
9676
9647
  return [
9677
9648
  {
9678
9649
  level: 1,
9679
- value: 25
9650
+ value: 5
9680
9651
  },
9681
9652
  {
9682
9653
  level: 2,
9683
- value: 50
9654
+ value: 10
9684
9655
  },
9685
9656
  {
9686
9657
  level: 3,
9687
- value: 250
9658
+ value: 50
9688
9659
  },
9689
9660
  {
9690
9661
  level: 4,
9691
- value: 500
9662
+ value: 100
9692
9663
  },
9693
9664
  {
9694
9665
  level: 5,
9695
- value: 1e3
9666
+ value: 500
9696
9667
  }
9697
9668
  ];
9698
9669
  }
9699
- }
9700
- } else {
9701
- if (sourceType === "ACTIVITY") {
9702
- if (badgeType === "COUNT") {
9670
+ } else {
9671
+ if (sourceType === "ACTIVITY") {
9703
9672
  return [
9704
9673
  {
9705
9674
  level: 1,
@@ -9722,57 +9691,55 @@ var retrieveBadgeRuleListByParams = (coterieType, sourceType, badgeType) => {
9722
9691
  value: 1e3
9723
9692
  }
9724
9693
  ];
9725
- } else if (badgeType === "TIME_SPENT") {
9694
+ } else if (sourceType === "ACTIVITY_CORRECT" || sourceType === "ACTIVITY_REVIEW") {
9726
9695
  return [
9727
9696
  {
9728
9697
  level: 1,
9729
- value: 1
9698
+ value: 5
9730
9699
  },
9731
9700
  {
9732
9701
  level: 2,
9733
- value: 2
9702
+ value: 25
9734
9703
  },
9735
9704
  {
9736
9705
  level: 3,
9737
- value: 10
9706
+ value: 50
9738
9707
  },
9739
9708
  {
9740
9709
  level: 4,
9741
- value: 20
9710
+ value: 250
9742
9711
  },
9743
9712
  {
9744
9713
  level: 5,
9745
- value: 100
9714
+ value: 500
9746
9715
  }
9747
9716
  ];
9748
- } else {
9717
+ } else if (sourceType === "ACTIVITY_TIME_SPENT") {
9749
9718
  return [
9750
9719
  {
9751
9720
  level: 1,
9752
- value: 5
9721
+ value: 1
9753
9722
  },
9754
9723
  {
9755
9724
  level: 2,
9756
- value: 25
9725
+ value: 2
9757
9726
  },
9758
9727
  {
9759
9728
  level: 3,
9760
- value: 50
9729
+ value: 10
9761
9730
  },
9762
9731
  {
9763
9732
  level: 4,
9764
- value: 250
9733
+ value: 20
9765
9734
  },
9766
9735
  {
9767
9736
  level: 5,
9768
- value: 500
9737
+ value: 100
9769
9738
  }
9770
9739
  ];
9771
- }
9772
- } else if (sourceType === "LOGIN") {
9773
- return [];
9774
- } else {
9775
- if (badgeType === "COUNT") {
9740
+ } else if (sourceType === "LOGIN") {
9741
+ return [];
9742
+ } else {
9776
9743
  return [
9777
9744
  {
9778
9745
  level: 1,
@@ -9800,141 +9767,121 @@ var retrieveBadgeRuleListByParams = (coterieType, sourceType, badgeType) => {
9800
9767
  }
9801
9768
  return [];
9802
9769
  };
9803
- var retrieveBadgeRuleTextByParams = (coterieType, sourceType, badgeType, level) => {
9770
+ var retrieveBadgeRuleTextByParams = (coterieType, sourceType, trackingType, level) => {
9804
9771
  const badgeRuleList = retrieveBadgeRuleListByParams(
9805
9772
  coterieType,
9806
9773
  sourceType,
9807
- badgeType
9774
+ trackingType
9808
9775
  );
9809
9776
  const foundBadgeRule = badgeRuleList[level - 1];
9810
- if (coterieType === "MANAGEMENT") {
9811
- if (sourceType === "ACTIVITY") {
9812
- if (badgeType === "COUNT") {
9777
+ if (trackingType === "COUNT") {
9778
+ if (coterieType === "MANAGEMENT") {
9779
+ if (sourceType === "ACTIVITY") {
9813
9780
  if (foundBadgeRule) {
9814
- return `${i18n_default.t("total_activity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_count_text_2")}`;
9781
+ return `${i18n_default.t("total_count_activity_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_activity_text_2")}`;
9815
9782
  } else {
9816
- return i18n_default.t("none_activity_count_text");
9783
+ return i18n_default.t("none_count_activity_text");
9817
9784
  }
9818
- } else if (badgeType === "CORRECT") {
9785
+ } else if (sourceType === "ACTIVITY_CORRECT") {
9819
9786
  if (foundBadgeRule) {
9820
- return `${i18n_default.t("total_activity_correct_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_correct_text_2")}`;
9787
+ return `${i18n_default.t("total_count_activity_correct_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_activity_correct_text_2")}`;
9821
9788
  } else {
9822
- return i18n_default.t("none_activity_correct_text");
9789
+ return i18n_default.t("none_count_activity_correct_text");
9823
9790
  }
9824
- } else if (badgeType === "REVIEW") {
9791
+ } else if (sourceType === "ACTIVITY_REVIEW") {
9825
9792
  if (foundBadgeRule) {
9826
- return `${i18n_default.t("total_activity_review_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_review_text_2")}`;
9793
+ return `${i18n_default.t("total_count_activity_review_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_activity_review_text_2")}`;
9827
9794
  } else {
9828
- return i18n_default.t("none_activity_review_text");
9795
+ return i18n_default.t("none_count_activity_review_text");
9829
9796
  }
9830
- } else if (badgeType === "TIME_SPENT") {
9797
+ } else if (sourceType === "ACTIVITY_TIME_SPENT") {
9831
9798
  if (foundBadgeRule) {
9832
- return `${i18n_default.t("total_activity_time_spent_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_time_spent_text_2")}`;
9799
+ return `${i18n_default.t("coterie_count_activity_time_spent_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_activity_time_spent_text_2")}`;
9833
9800
  } else {
9834
- return i18n_default.t("none_activity_time_spent_text");
9801
+ return i18n_default.t("none_count_activity_time_spent_text");
9835
9802
  }
9836
- }
9837
- } else if (sourceType === "CATCHTIVITY") {
9838
- if (badgeType === "COUNT") {
9803
+ } else if (sourceType === "CATCHTIVITY") {
9839
9804
  if (foundBadgeRule) {
9840
- return `${i18n_default.t("total_catchtivity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_catchtivity_count_text_2")}`;
9805
+ return `${i18n_default.t("total_count_catchtivity_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_catchtivity_text_2")}`;
9841
9806
  } else {
9842
- return i18n_default.t("none_catchtivity_count_text");
9807
+ return i18n_default.t("none_count_catchtivity_text");
9843
9808
  }
9844
- }
9845
- } else if (sourceType === "CATCHXAM") {
9846
- if (badgeType === "COUNT") {
9809
+ } else if (sourceType === "CATCHXAM") {
9847
9810
  if (foundBadgeRule) {
9848
- return `${i18n_default.t("total_catchxam_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_catchxam_count_text_2")}`;
9811
+ return `${i18n_default.t("total_count_catchxam_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_catchxam_text_2")}`;
9849
9812
  } else {
9850
- return i18n_default.t("none_catchxam_count_text");
9813
+ return i18n_default.t("none_count_catchxam_text");
9851
9814
  }
9852
- }
9853
- } else if (sourceType === "ETUDE") {
9854
- if (badgeType === "COUNT") {
9815
+ } else if (sourceType === "ETUDE") {
9855
9816
  if (foundBadgeRule) {
9856
- return `${i18n_default.t("total_etude_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_etude_count_text_2")}`;
9817
+ return `${i18n_default.t("total_count_etude_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_etude_text_2")}`;
9857
9818
  } else {
9858
- return i18n_default.t("none_etude_count_text");
9819
+ return i18n_default.t("none_count_etude_text");
9859
9820
  }
9860
- }
9861
- } else if (sourceType === "CONTEST") {
9862
- if (badgeType === "COUNT") {
9821
+ } else if (sourceType === "CONTEST") {
9863
9822
  if (foundBadgeRule) {
9864
- return `${i18n_default.t("total_contest_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_contest_count_text_2")}`;
9823
+ return `${i18n_default.t("total_count_contest_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_contest_text_2")}`;
9865
9824
  } else {
9866
- return i18n_default.t("none_contest_count_text");
9825
+ return i18n_default.t("none_count_contest_text");
9867
9826
  }
9868
- }
9869
- } else if (sourceType === "LOGIN") {
9870
- if (badgeType === "COUNT") {
9827
+ } else if (sourceType === "LOGIN") {
9871
9828
  if (foundBadgeRule) {
9872
- return `${i18n_default.t("total_login_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_login_count_text_2")}`;
9829
+ return `${i18n_default.t("total_count_login_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_login_text_2")}`;
9873
9830
  } else {
9874
- return i18n_default.t("none_login_count_text");
9831
+ return i18n_default.t("none_count_login_text");
9875
9832
  }
9876
9833
  }
9877
- }
9878
- } else {
9879
- if (sourceType === "ACTIVITY") {
9880
- if (badgeType === "COUNT") {
9834
+ } else {
9835
+ if (sourceType === "ACTIVITY") {
9881
9836
  if (foundBadgeRule) {
9882
- return `${i18n_default.t("coterie_activity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_count_text_2")}`;
9837
+ return `${i18n_default.t("coterie_count_activity_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_activity_text_2")}`;
9883
9838
  } else {
9884
- return i18n_default.t("none_activity_count_text");
9839
+ return i18n_default.t("none_count_activity_text");
9885
9840
  }
9886
- } else if (badgeType === "CORRECT") {
9841
+ } else if (sourceType === "ACTIVITY_CORRECT") {
9887
9842
  if (foundBadgeRule) {
9888
- return `${i18n_default.t("coterie_activity_correct_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_correct_text_2")}`;
9843
+ return `${i18n_default.t("coterie_count_activity_correct_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_activity_correct_text_2")}`;
9889
9844
  } else {
9890
- return i18n_default.t("none_activity_correct_text");
9845
+ return i18n_default.t("none_count_activity_correct_text");
9891
9846
  }
9892
- } else if (badgeType === "REVIEW") {
9847
+ } else if (sourceType === "ACTIVITY_REVIEW") {
9893
9848
  if (foundBadgeRule) {
9894
- return `${i18n_default.t("coterie_activity_review_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_review_text_2")}`;
9849
+ return `${i18n_default.t("coterie_count_activity_review_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_activity_review_text_2")}`;
9895
9850
  } else {
9896
- return i18n_default.t("none_activity_review_text");
9851
+ return i18n_default.t("none_count_activity_review_text");
9897
9852
  }
9898
- } else if (badgeType === "TIME_SPENT") {
9853
+ } else if (sourceType === "ACTIVITY_TIME_SPENT") {
9899
9854
  if (foundBadgeRule) {
9900
- return `${i18n_default.t("coterie_activity_time_spent_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_time_spent_text_2")}`;
9855
+ return `${i18n_default.t("total_count_activity_time_spent_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_activity_time_spent_text_2")}`;
9901
9856
  } else {
9902
- return i18n_default.t("none_activity_time_spent_text");
9857
+ return i18n_default.t("none_count_activity_time_spent_text");
9903
9858
  }
9904
- }
9905
- } else if (sourceType === "CATCHTIVITY") {
9906
- if (badgeType === "COUNT") {
9859
+ } else if (sourceType === "CATCHTIVITY") {
9907
9860
  if (foundBadgeRule) {
9908
- return `${i18n_default.t("coterie_catchtivity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_catchtivity_count_text_2")}`;
9861
+ return `${i18n_default.t("coterie_count_catchtivity_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_catchtivity_text_2")}`;
9909
9862
  } else {
9910
- return i18n_default.t("none_catchtivity_count_text");
9863
+ return i18n_default.t("none_count_catchtivity_text");
9911
9864
  }
9912
- }
9913
- } else if (sourceType === "CATCHXAM") {
9914
- if (badgeType === "COUNT") {
9865
+ } else if (sourceType === "CATCHXAM") {
9915
9866
  if (foundBadgeRule) {
9916
- return `${i18n_default.t("coterie_catchxam_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_catchxam_count_text_2")}`;
9867
+ return `${i18n_default.t("coterie_count_catchxam_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_catchxam_text_2")}`;
9917
9868
  } else {
9918
- return i18n_default.t("none_catchxam_count_text");
9869
+ return i18n_default.t("none_count_catchxam_text");
9919
9870
  }
9920
- }
9921
- } else if (sourceType === "ETUDE") {
9922
- if (badgeType === "COUNT") {
9871
+ } else if (sourceType === "ETUDE") {
9923
9872
  if (foundBadgeRule) {
9924
- return `${i18n_default.t("coterie_etude_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_etude_count_text_2")}`;
9873
+ return `${i18n_default.t("coterie_count_etude_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_etude_text_2")}`;
9925
9874
  } else {
9926
- return i18n_default.t("none_etude_count_text");
9875
+ return i18n_default.t("none_count_etude_text");
9927
9876
  }
9928
- }
9929
- } else if (sourceType === "CONTEST") {
9930
- if (badgeType === "COUNT") {
9877
+ } else if (sourceType === "CONTEST") {
9931
9878
  if (foundBadgeRule) {
9932
- return `${i18n_default.t("coterie_contest_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_contest_count_text_2")}`;
9879
+ return `${i18n_default.t("coterie_count_contest_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_contest_text_2")}`;
9933
9880
  } else {
9934
- return i18n_default.t("none_contest_count_text");
9881
+ return i18n_default.t("none_count_contest_text");
9935
9882
  }
9883
+ } else if (sourceType === "LOGIN") {
9936
9884
  }
9937
- } else if (sourceType === "LOGIN") {
9938
9885
  }
9939
9886
  }
9940
9887
  return null;