@medicus.ai/medicus-report-pdf-generator 1.0.255 → 1.0.256

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.
@@ -510,7 +510,7 @@ span.speedometer-value-down {
510
510
  }
511
511
 
512
512
  .prediction-component.prediction-wrong .prediction-sub-result img {
513
- opacity: 0;
513
+ display: none;
514
514
  }
515
515
 
516
516
  .prediction-sub-result img {
@@ -190,39 +190,50 @@ let generateHTMLSanusXReport = async (data, isDebugging, clientName, language) =
190
190
  .replace("{{MindExample}}", localeService.t('mindExample'))
191
191
  .replace("{{BodyExample}}", localeService.t('bodyExample'))
192
192
 
193
- let bodyIcon = path.resolve(__dirname + '/../assets/sanusx/images/right_icon.png')
194
- let lifestyleIcon = path.resolve(__dirname + '/../assets/sanusx/images/wrong_icon.png')
195
- let mindIcon = path.resolve(__dirname + '/../assets/sanusx/images/right_icon.png')
193
+ let rightIcon = path.resolve(__dirname + '/../assets/sanusx/images/right_icon.png')
194
+ let wrongIcon = path.resolve(__dirname + '/../assets/sanusx/images/wrong_icon.png')
196
195
 
197
196
  let predictedBodyMsg, predictedLifestyleMsg, predictedHeartMsg = ''
198
197
  let finalScore = 0;
198
+ let bodyIcon, mindIcon, lifestyleIcon = ''
199
199
  if (!data.PartScoresHighestValues.body[0].isPredictiveElement) {
200
200
  predictedBodyMsg = localeService.t('youPredictedWrong').replace("{$value}", data.PartScoresHighestValues.body[0].predictiveAnswer)
201
201
  } else {
202
202
  finalScore++
203
203
  predictedBodyMsg = localeService.t('youPredictedRight').replace("{$value}", data.PartScoresHighestValues.body[0].predictiveAnswer)
204
+ bodyIcon = rightIcon
204
205
  }
205
206
  if (!data.PartScoresHighestValues.mind[0].isPredictiveElement) {
206
207
  predictedHeartMsg = localeService.t('youPredictedWrong').replace("{$value}", data.PartScoresHighestValues.mind[0].predictiveAnswer)
207
208
  } else {
208
209
  finalScore++
209
210
  predictedHeartMsg = localeService.t('youPredictedRight').replace("{$value}", data.PartScoresHighestValues.mind[0].predictiveAnswer)
211
+ mindIcon = rightIcon
210
212
  }
211
213
  if (!data.PartScoresHighestValues.lifeStyle[0].isPredictiveElement) {
212
214
  predictedLifestyleMsg = localeService.t('youPredictedWrong').replace("{$value}", data.PartScoresHighestValues.lifeStyle[0].predictiveAnswer)
213
215
  } else {
214
216
  finalScore++
215
217
  predictedLifestyleMsg = localeService.t('youPredictedRight').replace("{$value}", data.PartScoresHighestValues.lifeStyle[0].predictiveAnswer)
218
+ lifestyleIcon = rightIcon
216
219
  }
217
- let predMsg=''
220
+ let predMsg = ''
218
221
  if (finalScore == 0) {
219
- predMsg = localeService.t('predictionsDesc').replace("{$val}",finalScore)
222
+ predMsg = localeService.t('predictionsDesc').replace("{$val}", finalScore)
220
223
  } else if (finalScore == 1 || finalScore == 2) {
221
- predMsg = localeService.t('predictionsDesc2').replace("{$val}",finalScore)
224
+ predMsg = localeService.t('predictionsDesc2').replace("{$val}", finalScore)
222
225
  } else if (finalScore == 3) {
223
- predMsg = localeService.t('predictionsDesc3').replace("{$val}",finalScore)
226
+ predMsg = localeService.t('predictionsDesc3').replace("{$val}", finalScore)
224
227
  }
225
228
 
229
+ let heartIcon = data.PartScoresHighestValues.lifeStyle[0].icon.split(".png", [1]);
230
+ let heartIconImage = icons[heartIcon];
231
+
232
+ let leavesIcon = data.PartScoresHighestValues.mind[0].icon.split(".png", [1]);
233
+ let leavesIconImage = icons[leavesIcon];
234
+
235
+ let forkIcon = data.PartScoresHighestValues.body[0].icon.split(".png", [1]);
236
+ let forkIconImage = icons[forkIcon];
226
237
 
227
238
 
228
239
  predictionsSectionTemplate = predictionsSectionTemplate
@@ -234,9 +245,9 @@ let predMsg=''
234
245
  .replace("{{bodyResultPred}}", data.PartScoresHighestValues.body[0].name)
235
246
  .replace("{{lifestyleResultPred}}", data.PartScoresHighestValues.lifeStyle[0].name)
236
247
  .replace("{{mindResultPred}}", data.PartScoresHighestValues.mind[0].name)
237
- .replace("{{forkIcon}}", path.resolve(__dirname + '/../assets/sanusx/images/fork_icon.png'))
238
- .replace("{{heartIcon}}", path.resolve(__dirname + '/../assets/sanusx/images/heart_icon.png'))
239
- .replace("{{leavesIcon}}", path.resolve(__dirname + '/../assets/sanusx/images/leaves_icon.png'))
248
+ .replace("{{forkIcon}}", forkIconImage)
249
+ .replace("{{heartIcon}}", heartIconImage)
250
+ .replace("{{leavesIcon}}", leavesIconImage)
240
251
  .replace("{{predictedBodyMsg}}", predictedBodyMsg)
241
252
  .replace("{{predictedLifestyleMsg}}", predictedLifestyleMsg)
242
253
  .replace("{{predictedHeartMsg}}", predictedHeartMsg)
@@ -1,314 +1,314 @@
1
1
  {
2
- "yearsOld": {
3
- "message": "years old",
4
- "description": "After the patient old in the header"
5
- },
6
- "lifeStyle": {
7
- "message": "Lifestyle",
8
- "description": "my lifestyle part header"
9
- },
10
- "body": {
11
- "message": "Body",
12
- "description": "my body part header"
13
- },
14
- "mind": {
15
- "message": "Mind",
16
- "description": "my mind part header"
17
- },
18
- "psychological": {
19
- "message": "Psychological",
20
- "description": "Psychological title"
21
- },
22
- "physical": {
23
- "message": "Physical",
24
- "description": "Physical title"
25
- },
26
- "weRecommend": {
27
- "message": "We recommend",
28
- "description": "tips section title"
29
- },
30
- "wellbeingReport": {
31
- "message": "Wellbeing Report",
32
- "description": "Report header"
33
- },
34
- "scoresNote": {
35
- "message": "The higher the score, the healthier you are",
36
- "description": "scores note"
37
- },
38
- "reportHeaderDescription": {
39
- "message": " Your wellbeing score is within sight of a medal, and your lifestyle habits are holding you back. We can help you move up the rankings.",
40
- "description": "Text showing in the report header"
41
- },
42
- "sincerely": {
43
- "message": "Sincerely",
44
- "description": "part of message showing in email template preview in general configuration page"
45
- },
46
- "hospital": {
47
- "message": "HOSPITAL",
48
- "description": "name of field showing at add user"
49
- },
50
- "healthRisk": {
51
- "message": "Health risks",
52
- "description": "part header"
53
- },
54
- "Disclaimer": {
55
- "message": "Disclaimer:",
56
- "description": "Label showing in the footer as disclaimer title"
57
- },
58
- "Disclaimer Text": {
59
- "message": "This report, which was prepared just for you, charts your progress by comparing your current and\n past health behaviors. This information will help you stay on your path to good health. This guide is not meant\n to take the place of a physician visit nor can it diagnose illness or medical problems. It is designed to give\n you information relating to your health risks and overall wellness. This information is provided to help you\n develop a plan of action to make healthy lifestyle changes.:",
60
- "description": "text showing in the footer as disclaimer"
61
- },
62
- "January": {
63
- "message": "January",
64
- "description": "Month name"
65
- },
66
- "February": {
67
- "message": "February",
68
- "description": "Month name"
69
- },
70
- "March": {
71
- "message": "March",
72
- "description": "Month name"
73
- },
74
- "April": {
75
- "message": "April",
76
- "description": "Month name"
77
- },
78
- "May": {
79
- "message": "May",
80
- "description": "Month name"
81
- },
82
- "June": {
83
- "message": "June",
84
- "description": "Month name"
85
- },
86
- "July": {
87
- "message": "July",
88
- "description": "Month name"
89
- },
90
- "August": {
91
- "message": "August",
92
- "description": "Month name"
93
- },
94
- "September": {
95
- "message": "September",
96
- "description": "Month name"
97
- },
98
- "October": {
99
- "message": "October",
100
- "description": "Month name"
101
- },
102
- "November": {
103
- "message": "November",
104
- "description": "Month name"
105
- },
106
- "December": {
107
- "message": "December",
108
- "description": "Month name"
109
- },
110
- "recommends...": {
111
- "message": "recommends...",
112
- "description": "Title in corporate report"
113
- },
114
- "Copyright": {
115
- "message": "© Copyright NASCO Insurance 2020",
116
- "description": "Copyright text in corporate report"
117
- },
118
- "Participant Analytics": {
119
- "message": "Participant Analytics",
120
- "description": "Section title in corporate report"
121
- },
122
- "Page": {
123
- "message": "Page",
124
- "description": "page number in the corporate report PDF"
125
- },
126
- "Sources": {
127
- "message": "Sources",
128
- "descripition": "sources in the corporate report PDF"
129
- },
130
- "Hi": {
131
- "message": "Hi",
132
- "description": "Hi in the email body"
133
- },
134
- "Your Wellbeing Report": {
135
- "message": "Your Wellbeing Report",
136
- "description": "first sentence in the email body"
137
- },
138
- "Your detailed Wellbeing Report is ready!": {
139
- "message": "Your detailed Wellbeing Report is ready!",
140
- "description": "second sentence in the email body"
141
- },
142
- "Download the attached PDF to view your report.": {
143
- "message": "Download the attached PDF to view your report.",
144
- "description": "third sentence in the email body"
145
- },
146
- "Learn more about what your physical and psychological scores mean and get recommendations on how you can start improving your health and wellbeing today.": {
147
- "message": "Learn more about what your physical and psychological scores mean and get recommendations on how you can start improving your health and wellbeing today.",
148
- "description": "fourth sentence in the email body"
149
- },
150
- "Congratulations, you’ve taken the first step towards better health. Keep going!": {
151
- "message": "Congratulations, you’ve taken the first step towards better health. Keep going!",
152
- "description": "fifth sentence in the email body"
153
- },
154
- "psychologicalScore": {
155
- "message": "Psychological score",
156
- "description": "Psychological title"
157
- },
158
- "physicalScore": {
159
- "message": "Physical score",
160
- "description": "Physical title"
161
- },
162
- "tiger": {
163
- "message": "Tiger",
164
- "description": "Shows on Result page"
165
- },
166
- "monkey": {
167
- "message": "Monkey",
168
- "description": "Shows on Result page"
169
- },
170
- "owl": {
171
- "message": "Owl",
172
- "description": "Shows on Result page"
173
- },
174
- "YourHealthHero": {
175
- "message": "Your health hero is",
176
- "description": "Shows on Result page"
177
- },
178
- "tigerDesc": {
179
- "message": "Your Health Hero defines in which of the three categories Lifestyle, Body and Mind you perform best.<br/>As a <b>tiger</b>, your <b>physical fitness</b> clearly stands out.",
180
- "description": "Shows on Result page"
181
- },
182
- "owlDesc": {
183
- "message": "Your Health Hero defines in which of the three categories Lifestyle, Body and Mind you perform best.<br/>As an <b>owl</b>, your <b>Mental strength</b> clearly stands out.",
184
- "description": "Shows on Result page"
185
- },
186
- "monkeyDesc": {
187
- "message": "Your Health Hero defines in which of the three categories Lifestyle, Body and Mind you perform best.<br/>As a <b>monkey</b>, your <b>Balanced lifestyle</b> clearly stands out.",
188
- "description": "Shows on Result page"
189
- },
190
- "tigerDetails": {
191
- "message": "The Tiger is always confident and self-assured because he can rely on his strong body. Others admire the tiger for his fitness and are inspired by his determination and dedication to physical health.",
192
- "description": "Shows on Result page"
193
- },
194
- "owlDetails": {
195
- "message": "The owl is determined, as it is aware of its sharpness and wisdom. Many have been intimidated by owl's inner balance. It's resilience serves as a source of inspiration.",
196
- "description": "Shows on Result page"
197
- },
198
- "monkeyDetails": {
199
- "message": "The Monkey is joyful and optimistic, well aware of what makes for a fulfilling and healthy life. With ease, the monkey juggles pleasure, reason and self-care, receiving much admiration for it.",
200
- "description": "Shows on Result page"
201
- },
202
- "SUPERPOWER": {
203
- "message": "SUPERPOWER",
204
- "description": "Shows on Result page"
205
- },
206
- "STRENGTH": {
207
- "message": "STRENGTH",
208
- "description": "Shows on Result page"
209
- },
210
- "WEAKNESS": {
211
- "message": "WEAKNESS",
212
- "description": "Shows on Result page"
213
- },
214
- "tigerSUPERPOWER-msg": {
215
- "message": "Physical fitness",
216
- "description": "Shows on Result page"
217
- },
218
- "owlSUPERPOWER-msg": {
219
- "message": "Mental strength",
220
- "description": "Shows on Result page"
221
- },
222
- "monkeySUPERPOWER-msg": {
223
- "message": "Balanced lifestyle",
224
- "description": "Shows on Result page"
225
- },
226
- "STRENGTH-msg": {
227
- "message": "You are invincible when it comes to: ",
228
- "description": "Shows on Result page"
229
- },
230
- "WEAKNESS-msg": {
231
- "message": "Topics you should devote more attention to: ",
232
- "description": "Shows on Result page"
233
- },
234
- "predictionsTitle": {
235
- "message": "How accurate were your predictions?",
236
- "description": "Shows on Result page"
237
- },
238
- "predictionsDesc": {
239
- "message": "Great job, you got {$val} correct! Here’s your results!",
240
- "description": "Shows on Result page"
241
- },
242
- "bodyResultSanusX": {
243
- "message": "Your result in body is",
244
- "description": "Shows on Result page"
245
- },
246
- "mindResultSanusX": {
247
- "message": "Your result in mind is",
248
- "description": "Shows on Result page"
249
- },
250
- "lifeStyleResultSanusX": {
251
- "message": "Your result in lifestyle is",
252
- "description": "Shows on Result page"
253
- },
254
- "Diet": {
255
- "message": "Diet",
256
- "description": "Shows on Result page"
257
- },
258
- "Heart": {
259
- "message": "Heart",
260
- "description": "Shows on Result page"
261
- },
262
- "lifeQuality": {
263
- "message": "Life Quality",
264
- "description": "Shows on Result page"
265
- },
266
- "youPredictedRight": {
267
- "message": "You predicted <b>{$value}</b>, and you got it right!",
268
- "description": "Shows on Result page"
269
- },
270
- "youPredictedWrong": {
271
- "message": "You predicted <b>{$value}</b>, you missed this one!",
272
- "description": "Shows on Result page"
273
- },
274
- "recommendationsTitle": {
275
- "message": "Mavie recommendations",
276
- "description": "Shows on Result page"
277
- },
278
- "yourScoreIs": {
279
- "message": "Your score is ",
280
- "description": "Shows on Result page"
281
- },
282
- "sanusXReportFooter": {
283
- "message": "The information provided on this website is for general informational purposes only. While we strive to provide up-to-date and accurate information, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability, or availability with respect to the website or the information, products, services, or related graphics contained on the website for any purpose. Any reliance you place on such information is therefore strictly at your own risk.",
284
- "description": "Shows on Result page"
285
- },
286
- "closerLook":{
287
- "message": "Let’s have a closer look at the details of your personal results:",
288
- "description" : "Shows on Result page"
289
- },
290
- "bodyExample":{
291
- "message": "i.e. heart, lungs, BMI",
292
- "description" : "Shows on Result page"
293
- },
294
- "lifestyleExample":{
295
- "message": "i.e. Lifestyle, coffee, alcohol",
296
- "description" : "Shows on Result page"
297
- },
298
- "mindExample":{
299
- "message": "i.e. Life quality, resilience, daily stress",
300
- "description" : "Shows on Result page"
301
- },
302
- "predictionsDesc":{
303
- "message": "Oh dear, that wasn't on point- you got {$val} correct. It's high time to know your strengths! Here are your results.",
304
- "description" : "Shows on Result page"
305
- },
306
- "predictionsDesc2":{
307
- "message": "Not bad, you got {$val} correct! There is probably one or the other surprise for you. Here are your results",
308
- "description" : "Shows on Result page"
309
- },
310
- "predictionsDesc3":{
311
- "message": "Well done, you got {$val} right! You know exactly where your strengths lie. Here are your results",
312
- "description" : "Shows on Result page"
313
- }
2
+ "yearsOld": {
3
+ "message": "years old",
4
+ "description": "After the patient old in the header"
5
+ },
6
+ "lifeStyle": {
7
+ "message": "Lifestyle",
8
+ "description": "my lifestyle part header"
9
+ },
10
+ "body": {
11
+ "message": "Body",
12
+ "description": "my body part header"
13
+ },
14
+ "mind": {
15
+ "message": "Mind",
16
+ "description": "my mind part header"
17
+ },
18
+ "psychological": {
19
+ "message": "Psychological",
20
+ "description": "Psychological title"
21
+ },
22
+ "physical": {
23
+ "message": "Physical",
24
+ "description": "Physical title"
25
+ },
26
+ "weRecommend": {
27
+ "message": "We recommend",
28
+ "description": "tips section title"
29
+ },
30
+ "wellbeingReport": {
31
+ "message": "Wellbeing Report",
32
+ "description": "Report header"
33
+ },
34
+ "scoresNote": {
35
+ "message": "The higher the score, the healthier you are",
36
+ "description": "scores note"
37
+ },
38
+ "reportHeaderDescription": {
39
+ "message": " Your wellbeing score is within sight of a medal, and your lifestyle habits are holding you back. We can help you move up the rankings.",
40
+ "description": "Text showing in the report header"
41
+ },
42
+ "sincerely": {
43
+ "message": "Sincerely",
44
+ "description": "part of message showing in email template preview in general configuration page"
45
+ },
46
+ "hospital": {
47
+ "message": "HOSPITAL",
48
+ "description": "name of field showing at add user"
49
+ },
50
+ "healthRisk": {
51
+ "message": "Health risks",
52
+ "description": "part header"
53
+ },
54
+ "Disclaimer": {
55
+ "message": "Disclaimer:",
56
+ "description": "Label showing in the footer as disclaimer title"
57
+ },
58
+ "Disclaimer Text": {
59
+ "message": "This report, which was prepared just for you, charts your progress by comparing your current and\n past health behaviors. This information will help you stay on your path to good health. This guide is not meant\n to take the place of a physician visit nor can it diagnose illness or medical problems. It is designed to give\n you information relating to your health risks and overall wellness. This information is provided to help you\n develop a plan of action to make healthy lifestyle changes.:",
60
+ "description": "text showing in the footer as disclaimer"
61
+ },
62
+ "January": {
63
+ "message": "January",
64
+ "description": "Month name"
65
+ },
66
+ "February": {
67
+ "message": "February",
68
+ "description": "Month name"
69
+ },
70
+ "March": {
71
+ "message": "March",
72
+ "description": "Month name"
73
+ },
74
+ "April": {
75
+ "message": "April",
76
+ "description": "Month name"
77
+ },
78
+ "May": {
79
+ "message": "May",
80
+ "description": "Month name"
81
+ },
82
+ "June": {
83
+ "message": "June",
84
+ "description": "Month name"
85
+ },
86
+ "July": {
87
+ "message": "July",
88
+ "description": "Month name"
89
+ },
90
+ "August": {
91
+ "message": "August",
92
+ "description": "Month name"
93
+ },
94
+ "September": {
95
+ "message": "September",
96
+ "description": "Month name"
97
+ },
98
+ "October": {
99
+ "message": "October",
100
+ "description": "Month name"
101
+ },
102
+ "November": {
103
+ "message": "November",
104
+ "description": "Month name"
105
+ },
106
+ "December": {
107
+ "message": "December",
108
+ "description": "Month name"
109
+ },
110
+ "recommends...": {
111
+ "message": "recommends...",
112
+ "description": "Title in corporate report"
113
+ },
114
+ "Copyright": {
115
+ "message": "© Copyright NASCO Insurance 2020",
116
+ "description": "Copyright text in corporate report"
117
+ },
118
+ "Participant Analytics": {
119
+ "message": "Participant Analytics",
120
+ "description": "Section title in corporate report"
121
+ },
122
+ "Page": {
123
+ "message": "Page",
124
+ "description": "page number in the corporate report PDF"
125
+ },
126
+ "Sources": {
127
+ "message": "Sources",
128
+ "descripition": "sources in the corporate report PDF"
129
+ },
130
+ "Hi": {
131
+ "message": "Hi",
132
+ "description": "Hi in the email body"
133
+ },
134
+ "Your Wellbeing Report": {
135
+ "message": "Your Wellbeing Report",
136
+ "description": "first sentence in the email body"
137
+ },
138
+ "Your detailed Wellbeing Report is ready!": {
139
+ "message": "Your detailed Wellbeing Report is ready!",
140
+ "description": "second sentence in the email body"
141
+ },
142
+ "Download the attached PDF to view your report.": {
143
+ "message": "Download the attached PDF to view your report.",
144
+ "description": "third sentence in the email body"
145
+ },
146
+ "Learn more about what your physical and psychological scores mean and get recommendations on how you can start improving your health and wellbeing today.": {
147
+ "message": "Learn more about what your physical and psychological scores mean and get recommendations on how you can start improving your health and wellbeing today.",
148
+ "description": "fourth sentence in the email body"
149
+ },
150
+ "Congratulations, you’ve taken the first step towards better health. Keep going!": {
151
+ "message": "Congratulations, you’ve taken the first step towards better health. Keep going!",
152
+ "description": "fifth sentence in the email body"
153
+ },
154
+ "psychologicalScore": {
155
+ "message": "Psychological score",
156
+ "description": "Psychological title"
157
+ },
158
+ "physicalScore": {
159
+ "message": "Physical score",
160
+ "description": "Physical title"
161
+ },
162
+ "tiger": {
163
+ "message": "Tiger",
164
+ "description": "Shows on Result page"
165
+ },
166
+ "monkey": {
167
+ "message": "Monkey",
168
+ "description": "Shows on Result page"
169
+ },
170
+ "owl": {
171
+ "message": "Owl",
172
+ "description": "Shows on Result page"
173
+ },
174
+ "YourHealthHero": {
175
+ "message": "Your health hero is",
176
+ "description": "Shows on Result page"
177
+ },
178
+ "tigerDesc": {
179
+ "message": "Your Health Hero defines in which of the three categories Lifestyle, Body and Mind you perform best.<br/>As a <b>tiger</b>, your <b>physical fitness</b> clearly stands out.",
180
+ "description": "Shows on Result page"
181
+ },
182
+ "owlDesc": {
183
+ "message": "Your Health Hero defines in which of the three categories Lifestyle, Body and Mind you perform best.<br/>As an <b>owl</b>, your <b>Mental strength</b> clearly stands out.",
184
+ "description": "Shows on Result page"
185
+ },
186
+ "monkeyDesc": {
187
+ "message": "Your Health Hero defines in which of the three categories Lifestyle, Body and Mind you perform best.<br/>As a <b>monkey</b>, your <b>Balanced lifestyle</b> clearly stands out.",
188
+ "description": "Shows on Result page"
189
+ },
190
+ "tigerDetails": {
191
+ "message": "The Tiger is always confident and self-assured because he can rely on his strong body. Others admire the tiger for his fitness and are inspired by his determination and dedication to physical health.",
192
+ "description": "Shows on Result page"
193
+ },
194
+ "owlDetails": {
195
+ "message": "The owl is determined, as it is aware of its sharpness and wisdom. Many have been intimidated by owl's inner balance. It's resilience serves as a source of inspiration.",
196
+ "description": "Shows on Result page"
197
+ },
198
+ "monkeyDetails": {
199
+ "message": "The Monkey is joyful and optimistic, well aware of what makes for a fulfilling and healthy life. With ease, the monkey juggles pleasure, reason and self-care, receiving much admiration for it.",
200
+ "description": "Shows on Result page"
201
+ },
202
+ "SUPERPOWER": {
203
+ "message": "SUPERPOWER",
204
+ "description": "Shows on Result page"
205
+ },
206
+ "STRENGTH": {
207
+ "message": "STRENGTH",
208
+ "description": "Shows on Result page"
209
+ },
210
+ "WEAKNESS": {
211
+ "message": "WEAKNESS",
212
+ "description": "Shows on Result page"
213
+ },
214
+ "tigerSUPERPOWER-msg": {
215
+ "message": "Physical fitness",
216
+ "description": "Shows on Result page"
217
+ },
218
+ "owlSUPERPOWER-msg": {
219
+ "message": "Mental strength",
220
+ "description": "Shows on Result page"
221
+ },
222
+ "monkeySUPERPOWER-msg": {
223
+ "message": "Balanced lifestyle",
224
+ "description": "Shows on Result page"
225
+ },
226
+ "STRENGTH-msg": {
227
+ "message": "You are invincible when it comes to: ",
228
+ "description": "Shows on Result page"
229
+ },
230
+ "WEAKNESS-msg": {
231
+ "message": "Topics you should devote more attention to: ",
232
+ "description": "Shows on Result page"
233
+ },
234
+ "predictionsTitle": {
235
+ "message": "How accurate were your predictions?",
236
+ "description": "Shows on Result page"
237
+ },
238
+ "predictionsDesc": {
239
+ "message": "Oh dear, that wasn't on point- you got {$val} correct. It's high time to know your strengths! Here are your results.",
240
+ "description": "Shows on Result page"
241
+ },
242
+ "bodyResultSanusX": {
243
+ "message": "Your result in body is",
244
+ "description": "Shows on Result page"
245
+ },
246
+ "mindResultSanusX": {
247
+ "message": "Your result in mind is",
248
+ "description": "Shows on Result page"
249
+ },
250
+ "lifeStyleResultSanusX": {
251
+ "message": "Your result in lifestyle is",
252
+ "description": "Shows on Result page"
253
+ },
254
+ "Diet": {
255
+ "message": "Diet",
256
+ "description": "Shows on Result page"
257
+ },
258
+ "Heart": {
259
+ "message": "Heart",
260
+ "description": "Shows on Result page"
261
+ },
262
+ "lifeQuality": {
263
+ "message": "Life Quality",
264
+ "description": "Shows on Result page"
265
+ },
266
+ "youPredictedRight": {
267
+ "message": "You predicted <b>{$value}</b>, and you got it right!",
268
+ "description": "Shows on Result page"
269
+ },
270
+ "youPredictedWrong": {
271
+ "message": "You predicted <b>{$value}</b>, you missed this one!",
272
+ "description": "Shows on Result page"
273
+ },
274
+ "recommendationsTitle": {
275
+ "message": "Mavie recommendations",
276
+ "description": "Shows on Result page"
277
+ },
278
+ "yourScoreIs": {
279
+ "message": "Your score is ",
280
+ "description": "Shows on Result page"
281
+ },
282
+ "sanusXReportFooter": {
283
+ "message": "The information provided on this website is for general informational purposes only. While we strive to provide up-to-date and accurate information, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability, or availability with respect to the website or the information, products, services, or related graphics contained on the website for any purpose. Any reliance you place on such information is therefore strictly at your own risk.",
284
+ "description": "Shows on Result page"
285
+ },
286
+ "closerLook": {
287
+ "message": "Let’s have a closer look at the details of your personal results:",
288
+ "description": "Shows on Result page"
289
+ },
290
+ "bodyExample": {
291
+ "message": "i.e. heart, lungs, BMI",
292
+ "description": "Shows on Result page"
293
+ },
294
+ "lifestyleExample": {
295
+ "message": "i.e. Lifestyle, coffee, alcohol",
296
+ "description": "Shows on Result page"
297
+ },
298
+ "mindExample": {
299
+ "message": "i.e. Life quality, resilience, daily stress",
300
+ "description": "Shows on Result page"
301
+ },
302
+ "predictionsDesc2": {
303
+ "message": "Not bad, you got {$val} correct! There is probably one or the other surprise for you. Here are your results",
304
+ "description": "Shows on Result page"
305
+ },
306
+ "predictionsDesc3": {
307
+ "message": "Well done, you got {$val} right! You know exactly where your strengths lie. Here are your results",
308
+ "description": "Shows on Result page"
309
+ },
310
+ "": "",
311
+ "Desc": "Desc",
312
+ "Details": "Details",
313
+ "SUPERPOWER-msg": "SUPERPOWER-msg"
314
314
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medicus.ai/medicus-report-pdf-generator",
3
- "version": "1.0.255",
3
+ "version": "1.0.256",
4
4
  "description": "Nasco corporate report - latest update in 6/3/2023 - New design for SanusX PDF",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -6,8 +6,11 @@
6
6
  <div class="prediction-component lifestyle">
7
7
  <div class="prediction-container prediction-container2">
8
8
 
9
- <div class="prediction-sub-image"><img
10
- src="{{heartIcon}}"></div>
9
+ <div class="prediction-sub-image">
10
+ <svg xmlns="http://www.w3.org/2000/svg" width="45" height="45" viewBox="0 0 30 30" fill="none">
11
+ <path d="{{heartIcon}}" fill="#24BB60"/>
12
+ </svg>
13
+ </div>
11
14
  <div class="prediction-des-container">
12
15
  <div class="prediction-sub-title">{{lifestyleResultSanusX}}</div>
13
16
  <div class="prediction-sub-desc">{{lifestyleResultPred}}</div>
@@ -21,8 +24,11 @@
21
24
  <div class="prediction-component body">
22
25
  <div class="prediction-container prediction-container1">
23
26
 
24
- <div class="prediction-sub-image"><img
25
- src="{{forkIcon}}" class="ui image"></div>
27
+ <div class="prediction-sub-image">
28
+ <svg xmlns="http://www.w3.org/2000/svg" width="45" height="45" viewBox="0 0 30 30" fill="none">
29
+ <path d="{{forkIcon}}" fill="#98C6DD"/>
30
+ </svg>
31
+ </div>
26
32
  <div class="prediction-des-container">
27
33
  <div class="prediction-sub-title">{{bodyResultSanusX}}</div>
28
34
  <div class="prediction-sub-desc">{{bodyResultPred}}</div>
@@ -37,8 +43,11 @@
37
43
 
38
44
  <div class="prediction-component mind">
39
45
  <div class="prediction-container prediction-container3">
40
- <div class="prediction-sub-image"><img
41
- src="{{leavesIcon}}"></div>
46
+ <div class="prediction-sub-image">
47
+ <svg xmlns="http://www.w3.org/2000/svg" width="45" height="45" viewBox="0 0 30 30" fill="none">
48
+ <path d="{{leavesIcon}}" fill="#80A9A7"/>
49
+ </svg>
50
+ </div>
42
51
  <div class="prediction-des-container">
43
52
  <div class="prediction-sub-title">{{mindResultSanusX}}</div>
44
53
  <div class="prediction-sub-desc">{{mindResultPred}}</div>