mario-education 2.4.68-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.
package/dist/index.js CHANGED
@@ -29389,9 +29389,6 @@ var DashboardToPDF = function DashboardToPDF(props) {
29389
29389
  doc.text(filterSelectedToPDF[i].label, left, 70);
29390
29390
  doc.setFontSize(8);
29391
29391
  var topLearningStrategiesData = topLearningStrategies === null || topLearningStrategies === void 0 ? void 0 : topLearningStrategies.learningStrategies;
29392
- console.log({
29393
- topLearningStrategiesData: topLearningStrategiesData
29394
- });
29395
29392
 
29396
29393
  for (var j = 0; j < (topLearningStrategiesData === null || topLearningStrategiesData === void 0 ? void 0 : topLearningStrategiesData.length); j++) {
29397
29394
  var _topLearningStrategie, _topLearningStrategie2, _topLearningStrategie3, _topLearningStrategie4, _topLearningStrategie5, _topLearningStrategie6;
@@ -29402,7 +29399,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
29402
29399
  var avgSumPerceivedValue = sumPerceivedValue / ((_topLearningStrategie2 = topLearningStrategiesData[j]) === null || _topLearningStrategie2 === void 0 ? void 0 : (_topLearningStrategie3 = _topLearningStrategie2.usagePoint) === null || _topLearningStrategie3 === void 0 ? void 0 : _topLearningStrategie3.length) || 0;
29403
29400
 
29404
29401
  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) {
29405
- var _topLearningStrategie7, _topLearningStrategie8, _topLearningStrategie9, _topLearningStrategie10, _topLearningStrategie11, _topLearningStrategie12, _topLearningStrategie13;
29402
+ var _topLearningStrategie7, _topLearningStrategie8, _topLearningStrategie9, _topLearningStrategie10, _topLearningStrategie11, _topLearningStrategie12;
29406
29403
 
29407
29404
  doc.setFont("Helvetica", "normal", "bold");
29408
29405
  doc.text((_topLearningStrategie7 = topLearningStrategiesData[j]) === null || _topLearningStrategie7 === void 0 ? void 0 : _topLearningStrategie7.learningStrategyName, left, line + 20);
@@ -29411,9 +29408,18 @@ var DashboardToPDF = function DashboardToPDF(props) {
29411
29408
  doc.text("Total Number of Times Selected: " + (((_topLearningStrategie8 = topLearningStrategiesData[j]) === null || _topLearningStrategie8 === void 0 ? void 0 : _topLearningStrategie8.usageCount) || 0), left, line + 40);
29412
29409
  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;
29413
29410
 
29414
- if ((_topLearningStrategie11 = topLearningStrategiesData[j + 1]) !== null && _topLearningStrategie11 !== void 0 && _topLearningStrategie11.learningStrategyName && left + ((_topLearningStrategie12 = topLearningStrategiesData[j + 1]) === null || _topLearningStrategie12 === void 0 ? void 0 : (_topLearningStrategie13 = _topLearningStrategie12.learningStrategyName) === null || _topLearningStrategie13 === void 0 ? void 0 : _topLearningStrategie13.length) * 4 > WIDTH_PAPER) {
29415
- left = 20;
29416
- line += 40;
29411
+ if (((_topLearningStrategie11 = topLearningStrategiesData[j + 1]) === null || _topLearningStrategie11 === void 0 ? void 0 : (_topLearningStrategie12 = _topLearningStrategie11.learningStrategyName) === null || _topLearningStrategie12 === void 0 ? void 0 : _topLearningStrategie12.length) * 4 > 124) {
29412
+ var _topLearningStrategie13, _topLearningStrategie14;
29413
+
29414
+ 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) {
29415
+ left = 20;
29416
+ line += 40;
29417
+ }
29418
+ } else {
29419
+ if (left + 124 > WIDTH_PAPER) {
29420
+ left = 20;
29421
+ line += 40;
29422
+ }
29417
29423
  }
29418
29424
  }
29419
29425
  }