project-booster-vue 9.17.1 → 9.17.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "9.17.1",
3
+ "version": "9.17.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -346,7 +346,7 @@ export const doEval = (
346
346
  return new Function('getAnswerValue', 'answers', 'defaultValue', 'runtimeOptions', `return ${valueToEval}`).call(
347
347
  this,
348
348
  getAnswerValue(answers),
349
- answers,
349
+ Object.fromEntries(answers),
350
350
  defaultValue,
351
351
  runtimeOptions,
352
352
  );
@@ -358,15 +358,16 @@ export const decorate = (
358
358
  valueToDecorate: string,
359
359
  defaultValue = '',
360
360
  ) => {
361
+ let decoratedValue = valueToDecorate;
361
362
  if (valueToDecorate) {
362
- valueToDecorate = `\`${valueToDecorate}\``;
363
+ const stringToEval = `\`${valueToDecorate}\``;
363
364
  try {
364
- return doEval(answers, valueToDecorate, defaultValue, runtimeOptions);
365
+ decoratedValue = doEval(answers, stringToEval, defaultValue, runtimeOptions);
365
366
  } catch (error) {
366
- return valueToDecorate || defaultValue;
367
+ decoratedValue = valueToDecorate || defaultValue;
367
368
  }
368
369
  }
369
- return valueToDecorate;
370
+ return decoratedValue;
370
371
  };
371
372
 
372
373
  export default defineComponent({
@@ -17,84 +17,7 @@
17
17
  "MAIN_SCENARIO": {
18
18
  "code": "MAIN_SCENARIO",
19
19
  "type": "SCENARIO",
20
- "stepCode": "START_SCENARIO"
21
- },
22
- "START_SCENARIO": {
23
- "code": "START_SCENARIO",
24
- "type": "STEP",
25
- "component": "PbAppointmentStartSection",
26
- "payload": {
27
- "viewModel": {
28
- "title": "${runtimeOptions.postQualificationAppointment === false ? 'Gagnez du temps en préparant votre rendez-vous' : 'Préparez votre Rendez-vous.'}"
29
- },
30
- "answers": {
31
- "CONTINUE": {
32
- "code": "CONTINUE",
33
- "viewModel": {
34
- "label": "Continuer"
35
- }
36
- },
37
- "LATER": {
38
- "code": "LATER",
39
- "viewModel": {
40
- "label": "Préparer plus tard",
41
- "theme": "text-primary"
42
- }
43
- }
44
- },
45
- "items": [
46
- {
47
- "code": "ITEM-1",
48
- "viewModel": {
49
- "title": "Les informations sur votre projet",
50
- "image": "https://storage.googleapis.com/project-booster-media/vad/liste-etapes/picto_planner-bien-choisir_small_40.svg",
51
- "imageSize": "small"
52
- }
53
- },
54
- {
55
- "code": "ITEM-2",
56
- "viewModel": {
57
- "title": "Un plan aux mesures de votre pièce (dessin, document, plan 3D...)",
58
- "image": "https://storage.googleapis.com/project-booster-media/vad/liste-etapes/picto_planner-plan_40.svg",
59
- "imageSize": "small"
60
- }
61
- },
62
- {
63
- "code": "ITEM-3",
64
- "viewModel": {
65
- "title": "Des photos de votre cuisine",
66
- "image": "https://storage.googleapis.com/project-booster-media/vad/picto_planner-penser_photo-small.svg",
67
- "imageSize": "small"
68
- }
69
- }
70
- ]
71
- },
72
- "nextStep": {
73
- "conditionals": [
74
- {
75
- "conditions": ["isAnswerMatching('START_SCENARIO', 'CONTINUE')"],
76
- "nextStep": {
77
- "code": "LMFR_QUESTION_SCENARIO"
78
- }
79
- },
80
- {
81
- "conditions": [
82
- "isAnswerMatching('START_SCENARIO', 'LATER') && runtimeOptions.postQualificationAppointment === true"
83
- ],
84
- "nextStep": {
85
- "code": "START_LATER"
86
- }
87
- },
88
- {
89
- "conditions": [
90
- "isAnswerMatching('START_SCENARIO', 'LATER') && runtimeOptions.postQualificationAppointment === false"
91
- ],
92
- "nextStep": {
93
- "code": "LMFR_QUESTION_QUALIFICATION_EXIT"
94
- }
95
- }
96
- ]
97
- }
20
+ "stepCode": "LMFR_QUESTION_WORK_START_DATE"
98
21
  },
99
22
  "LMFR_QUESTION_QUALIFICATION_EXIT": {
100
23
  "code": "LMFR_QUESTION_QUALIFICATION_EXIT",