waha-shared 1.0.83 → 1.0.85
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.
|
@@ -6108,36 +6108,36 @@
|
|
|
6108
6108
|
},
|
|
6109
6109
|
"ase": {
|
|
6110
6110
|
"questions": {
|
|
6111
|
-
"ase.a.001.mp4":
|
|
6112
|
-
"ase.a.002.mp4":
|
|
6113
|
-
"ase.a.003.mp4":
|
|
6114
|
-
"ase.a.004.mp4":
|
|
6115
|
-
"ase.a.005.mp4":
|
|
6116
|
-
"ase.a.006.mp4":
|
|
6117
|
-
"ase.a.007.mp4":
|
|
6118
|
-
"ase.a.008.mp4":
|
|
6119
|
-
"ase.a.009.mp4":
|
|
6120
|
-
"ase.a.010.mp4":
|
|
6121
|
-
"ase.a.011.mp4":
|
|
6122
|
-
"ase.a.012.mp4":
|
|
6123
|
-
"ase.a.013.mp4": 8.
|
|
6124
|
-
"ase.a.014.mp4":
|
|
6125
|
-
"ase.a.015.mp4":
|
|
6126
|
-
"ase.a.016.mp4":
|
|
6127
|
-
"ase.a.017.mp4":
|
|
6128
|
-
"ase.f.001.mp4":
|
|
6129
|
-
"ase.f.002.mp4":
|
|
6130
|
-
"ase.f.003.mp4":
|
|
6131
|
-
"ase.f.004.mp4":
|
|
6132
|
-
"ase.f.005.mp4":
|
|
6133
|
-
"ase.f.006.mp4":
|
|
6134
|
-
"ase.f.007.mp4":
|
|
6135
|
-
"ase.f.008.mp4":
|
|
6136
|
-
"ase.f.009.mp4":
|
|
6137
|
-
"ase.f.010.mp4":
|
|
6138
|
-
"ase.f.011.mp4":
|
|
6139
|
-
"ase.f.012.mp4":
|
|
6140
|
-
"ase.f.013.mp4":
|
|
6111
|
+
"ase.a.001.mp4": 34.667967,
|
|
6112
|
+
"ase.a.002.mp4": 13.246567,
|
|
6113
|
+
"ase.a.003.mp4": 11.878542,
|
|
6114
|
+
"ase.a.004.mp4": 17.884542,
|
|
6115
|
+
"ase.a.005.mp4": 25.592233,
|
|
6116
|
+
"ase.a.006.mp4": 16.583233,
|
|
6117
|
+
"ase.a.007.mp4": 40.04,
|
|
6118
|
+
"ase.a.008.mp4": 9.175833,
|
|
6119
|
+
"ase.a.009.mp4": 7.107104,
|
|
6120
|
+
"ase.a.010.mp4": 7.540875,
|
|
6121
|
+
"ase.a.011.mp4": 9.709708,
|
|
6122
|
+
"ase.a.012.mp4": 16.683333,
|
|
6123
|
+
"ase.a.013.mp4": 8.274938,
|
|
6124
|
+
"ase.a.014.mp4": 12.779438,
|
|
6125
|
+
"ase.a.015.mp4": 14.714708,
|
|
6126
|
+
"ase.a.016.mp4": 23.4234,
|
|
6127
|
+
"ase.a.017.mp4": 13.013,
|
|
6128
|
+
"ase.f.001.mp4": 24.491133,
|
|
6129
|
+
"ase.f.002.mp4": 11.111104,
|
|
6130
|
+
"ase.f.003.mp4": 17.283938,
|
|
6131
|
+
"ase.f.004.mp4": 10.443771,
|
|
6132
|
+
"ase.f.005.mp4": 16.716708,
|
|
6133
|
+
"ase.f.006.mp4": 10.877542,
|
|
6134
|
+
"ase.f.007.mp4": 15.248567,
|
|
6135
|
+
"ase.f.008.mp4": 7.107104,
|
|
6136
|
+
"ase.f.009.mp4": 23.990633,
|
|
6137
|
+
"ase.f.010.mp4": 19.619604,
|
|
6138
|
+
"ase.f.011.mp4": 18.4184,
|
|
6139
|
+
"ase.f.012.mp4": 6.3063,
|
|
6140
|
+
"ase.f.013.mp4": 6.773438
|
|
6141
6141
|
},
|
|
6142
6142
|
"ftbs": {},
|
|
6143
6143
|
"lessons": {
|
package/dist/functions/sets.js
CHANGED
|
@@ -24,17 +24,24 @@ function getSetInfo({ setId, meetLanguageId, setIds, t, }) {
|
|
|
24
24
|
const setNumber = (setIds
|
|
25
25
|
.filter((set) => set.split('.')[0] === idComponents[0])
|
|
26
26
|
.findIndex((set) => set === setId) + 1).toString();
|
|
27
|
-
|
|
27
|
+
let thisSetTranslations;
|
|
28
|
+
const thisSet = sets_1.sets.find((set) => set.setId === setId);
|
|
29
|
+
if (!thisSet)
|
|
30
|
+
return;
|
|
31
|
+
if (meetLanguageId === 'ase') {
|
|
32
|
+
const englishEquivalent = sets_1.sets.find((set) => set.name === thisSet.name && !set.comment);
|
|
33
|
+
thisSetTranslations = t.sets.find((setTranslations) => setTranslations.setId === englishEquivalent?.setId);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
thisSetTranslations = t.sets.find((set) => set.setId === setId);
|
|
37
|
+
}
|
|
28
38
|
const categoryName = idComponents[0] === '01'
|
|
29
39
|
? t.foundations
|
|
30
40
|
: idComponents[0] === '02'
|
|
31
41
|
? t.topics
|
|
32
42
|
: t.training;
|
|
33
|
-
const set = sets_1.sets.find((set) => set.setId === setId);
|
|
34
|
-
if (!set)
|
|
35
|
-
return;
|
|
36
43
|
const toReturn = {
|
|
37
|
-
...
|
|
44
|
+
...thisSet,
|
|
38
45
|
...thisSetTranslations,
|
|
39
46
|
setSubtitle: category === 'Topics'
|
|
40
47
|
? (thisSetTranslations?.setTag ?? '')
|
|
@@ -68,8 +75,18 @@ function getLessonInfo({ lessonId, meetLanguageInfo, setInfo, t, useSpokenQuesti
|
|
|
68
75
|
const lesson = setInfo.lessons.find((lesson) => lesson.lessonId === lessonId);
|
|
69
76
|
if (!lesson)
|
|
70
77
|
return;
|
|
71
|
-
|
|
72
|
-
|
|
78
|
+
let thisSetTranslations;
|
|
79
|
+
let lessonTitle;
|
|
80
|
+
if (meetLanguageId === 'ase') {
|
|
81
|
+
const englishEquivalent = sets_1.sets.find((set) => set.name === setInfo.name && !set.comment);
|
|
82
|
+
thisSetTranslations = t.sets.find((setTranslations) => setTranslations.setId === englishEquivalent?.setId);
|
|
83
|
+
lessonTitle =
|
|
84
|
+
thisSetTranslations?.lessonTitles?.[`${englishEquivalent?.setId}.${lessonNumber}`];
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
thisSetTranslations = t.sets.find((setTranslations) => setTranslations.setId === setInfo?.setId);
|
|
88
|
+
lessonTitle = thisSetTranslations?.lessonTitles?.[lessonId];
|
|
89
|
+
}
|
|
73
90
|
const fellowshipQuestions = meetLanguageInfo.questionSets.find((questionSet) => questionSet.questionSetId === lesson.f)?.questions ?? [];
|
|
74
91
|
const fellowshipQuestionsText = fellowshipQuestions.map((questionId) => useSpokenQuestions ? t.questionsSpoken[questionId] : t.questions[questionId]);
|
|
75
92
|
const applicationQuestions = meetLanguageInfo.questionSets.find((questionSet) => questionSet.questionSetId === lesson.a)?.questions ?? [];
|