mario-education 2.4.67-admin → 2.4.69-admin

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.
@@ -28669,7 +28669,7 @@ var TotalCard = function TotalCard(_ref) {
28669
28669
  }, value)));
28670
28670
  };
28671
28671
 
28672
- var headerLogo = "../images/logoV1-2.png";
28672
+ var headerLogo = "../images/main-logo-blue.png";
28673
28673
 
28674
28674
  var DashboardToPDF = function DashboardToPDF(props) {
28675
28675
  var startTime = props.startTime,
@@ -29396,18 +29396,27 @@ var DashboardToPDF = function DashboardToPDF(props) {
29396
29396
  var avgSumPerceivedValue = sumPerceivedValue / ((_topLearningStrategie2 = topLearningStrategiesData[j]) === null || _topLearningStrategie2 === void 0 ? void 0 : (_topLearningStrategie3 = _topLearningStrategie2.usagePoint) === null || _topLearningStrategie3 === void 0 ? void 0 : _topLearningStrategie3.length) || 0;
29397
29397
 
29398
29398
  if (((_topLearningStrategie4 = topLearningStrategiesData[j]) === null || _topLearningStrategie4 === void 0 ? void 0 : _topLearningStrategie4.usageCount) != 0 || ((_topLearningStrategie5 = topLearningStrategiesData[j]) === null || _topLearningStrategie5 === void 0 ? void 0 : (_topLearningStrategie6 = _topLearningStrategie5.usageCountList) === null || _topLearningStrategie6 === void 0 ? void 0 : _topLearningStrategie6.length) > 0) {
29399
- var _topLearningStrategie7, _topLearningStrategie8, _topLearningStrategie9, _topLearningStrategie10;
29399
+ var _topLearningStrategie7, _topLearningStrategie8, _topLearningStrategie9, _topLearningStrategie10, _topLearningStrategie11, _topLearningStrategie12;
29400
29400
 
29401
29401
  doc.setFont("Helvetica", "normal", "bold");
29402
- doc.text(topLearningStrategiesData[j].learningStrategyName, left, line + 20);
29402
+ doc.text((_topLearningStrategie7 = topLearningStrategiesData[j]) === null || _topLearningStrategie7 === void 0 ? void 0 : _topLearningStrategie7.learningStrategyName, left, line + 20);
29403
29403
  doc.setFont("Helvetica", "normal", "normal");
29404
29404
  doc.text("Perceived Value: " + avgSumPerceivedValue.toFixed(2), left, line + 30);
29405
- doc.text("Total Number of Times Selected: " + (((_topLearningStrategie7 = topLearningStrategiesData[j]) === null || _topLearningStrategie7 === void 0 ? void 0 : _topLearningStrategie7.usageCount) || 0), left, line + 40);
29406
- left += ((_topLearningStrategie8 = topLearningStrategiesData[j].learningStrategyName) === null || _topLearningStrategie8 === void 0 ? void 0 : _topLearningStrategie8.length) * 4 > 124 ? ((_topLearningStrategie9 = topLearningStrategiesData[j].learningStrategyName) === null || _topLearningStrategie9 === void 0 ? void 0 : _topLearningStrategie9.length) * 4 : 124;
29405
+ doc.text("Total Number of Times Selected: " + (((_topLearningStrategie8 = topLearningStrategiesData[j]) === null || _topLearningStrategie8 === void 0 ? void 0 : _topLearningStrategie8.usageCount) || 0), left, line + 40);
29406
+ left += ((_topLearningStrategie9 = topLearningStrategiesData[j].learningStrategyName) === null || _topLearningStrategie9 === void 0 ? void 0 : _topLearningStrategie9.length) * 4 > 124 ? ((_topLearningStrategie10 = topLearningStrategiesData[j].learningStrategyName) === null || _topLearningStrategie10 === void 0 ? void 0 : _topLearningStrategie10.length) * 4 : 124;
29407
29407
 
29408
- if (left + ((_topLearningStrategie10 = topLearningStrategiesData[j + 1].learningStrategyName) === null || _topLearningStrategie10 === void 0 ? void 0 : _topLearningStrategie10.length) * 4 > WIDTH_PAPER) {
29409
- left = 20;
29410
- line += 40;
29408
+ if (((_topLearningStrategie11 = topLearningStrategiesData[j + 1]) === null || _topLearningStrategie11 === void 0 ? void 0 : (_topLearningStrategie12 = _topLearningStrategie11.learningStrategyName) === null || _topLearningStrategie12 === void 0 ? void 0 : _topLearningStrategie12.length) * 4 > 124) {
29409
+ var _topLearningStrategie13, _topLearningStrategie14;
29410
+
29411
+ if (left + ((_topLearningStrategie13 = topLearningStrategiesData[j + 1]) === null || _topLearningStrategie13 === void 0 ? void 0 : (_topLearningStrategie14 = _topLearningStrategie13.learningStrategyName) === null || _topLearningStrategie14 === void 0 ? void 0 : _topLearningStrategie14.length) * 4 > WIDTH_PAPER) {
29412
+ left = 20;
29413
+ line += 40;
29414
+ }
29415
+ } else {
29416
+ if (left + 124 > WIDTH_PAPER) {
29417
+ left = 20;
29418
+ line += 40;
29419
+ }
29411
29420
  }
29412
29421
  }
29413
29422
  }