project-booster-vue 10.2.4 → 10.3.1

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.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/src/components/mozaic/text-input/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-mozaic-components-m-text-input-/342/232/233/357/270/217-showcase-type-1-snap.png +0 -0
  3. package/src/components/projects/project-attributes/PbProjectAttributes.vue +0 -4
  4. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-project-attributes-showcase-with-project-attributes-1-snap.png +0 -0
  5. package/src/components/projects/projects/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-projects-/360/237/246/240-showcase-autoscroll-to-estimates-1-snap.png +0 -0
  6. package/src/components/rework/alert/MPbAlert.vue +17 -13
  7. package/src/components/rework/alert/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-alert-m-pb-alert-/360/237/246/240-101-sandbox-1-snap.png +0 -0
  8. package/src/components/rework/cards/MPbCards.vue +17 -8
  9. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-align-horizontal-1-snap.png +0 -0
  10. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-align-text-1-snap.png +0 -0
  11. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-align-vertical-1-snap.png +0 -0
  12. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-degradations-1-snap.png +0 -0
  13. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-disabled-1-snap.png +0 -0
  14. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-flag-theme-1-snap.png +0 -0
  15. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-hero-1-snap.png +0 -0
  16. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-image-1-snap.png +0 -0
  17. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-image-ratio-1-snap.png +0 -0
  18. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-image-title-1-snap.png +0 -0
  19. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-min-card-ratio-1-snap.png +0 -0
  20. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-selectable-1-snap.png +0 -0
  21. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-selected-1-snap.png +0 -0
  22. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-text-1-snap.png +0 -0
  23. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-title-1-snap.png +0 -0
  24. package/src/components/rework/question/MPbQuestion.vue +11 -8
  25. package/src/components/rework/question/configurations-import/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-questions-m-pb-configurations-import-/360/237/246/240-with-simulations-linked-1-snap.png +0 -0
  26. package/src/components/rework/styles/global.scss +8 -0
  27. package/src/components/rework/types/genericPayload.ts +1 -0
  28. package/src/components/scenario/PbScenario.vue +9 -0
  29. package/src/components/scenario/scenarii/appointment-qualification-bathroom.json +8 -7
  30. package/src/components/trezor/PbTrezor.vue +80 -2
  31. package/src/stores/modules/trezorStore.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "10.2.4",
3
+ "version": "10.3.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -105,10 +105,6 @@
105
105
 
106
106
  <ul class="pb-project-attributes__works">
107
107
  <template v-for="[attributeId, attribute] of displayedProjectAttributes" :key="attributeId">
108
- <template v-if="attributeId === 'works'">
109
- <li v-if="isArray(attribute.value)" v-for="value in JSON.parse(attribute.value)">{{ works[value] }}</li>
110
- <li v-else>{{ works[attribute.value] }}</li>
111
- </template>
112
108
  <template v-if="attributeId === 'bathroomStyle'">
113
109
  <li v-if="isArray(attribute.value)" v-for="value in JSON.parse(attribute.value)">
114
110
  Style: {{ bathroomStyle[value] }}
@@ -103,11 +103,13 @@ const handleCloseModal = () => {
103
103
  };
104
104
 
105
105
  const handleShowModal = (option: any) => {
106
- sendAnalyticEvent(store, EventName.CLICK, {
107
- button_name: option.viewModel.button.label || '',
108
- button_location: '',
109
- button_type: ButtonType.ACTION,
110
- });
106
+ if (props.payload.viewModel.analytics.funnel_name) {
107
+ sendAnalyticEvent(store, EventName.CLICK, {
108
+ button_name: option.viewModel.button.label || '',
109
+ button_location: props.payload.viewModel.analytics.funnel_name,
110
+ button_type: ButtonType.ACTION,
111
+ });
112
+ }
111
113
 
112
114
  if (option.viewModel.button.dialog) {
113
115
  showModal.value = true;
@@ -123,17 +125,19 @@ const handleShowModal = (option: any) => {
123
125
  * @param action
124
126
  */
125
127
  const callAction = (button: PayloadAction) => {
126
- sendAnalyticEvent(store, EventName.CLICK, {
127
- button_name: button.label || '',
128
- button_location: '',
129
- button_type: ButtonType.ACTION,
130
- });
131
-
132
- if (button.code != '__BACK__') {
128
+ if (button.nextStep.code != '__BACK__') {
133
129
  emit('step-completed', {
134
130
  answers: null,
135
- nextStep: button,
131
+ nextStep: button.code,
136
132
  });
133
+
134
+ if (props.payload.viewModel.analytics.funnel_name) {
135
+ sendAnalyticEvent(store, EventName.CLICK, {
136
+ button_name: button.label || '',
137
+ button_location: props.payload.viewModel.analytics.funnel_name,
138
+ button_type: ButtonType.ACTION,
139
+ });
140
+ }
137
141
  } else {
138
142
  emit('go-back');
139
143
  }
@@ -5,7 +5,7 @@
5
5
  disabled ? 'pb-card--disabled' : ''
6
6
  }${flattened ? 'pb-card--no-pointer-events' : ''} ${
7
7
  cardMinRatio && cardMinRatio !== 'auto' ? 'm-ratio-container--' + cardMinRatio : ''
8
- }${borderTop ? 'pb-card--border-top' : ''} ${selected ? 'select' : ''}`"
8
+ }${borderTop ? 'pb-card--border-top' : ''} ${selected ? 'select' : ''} ${image ? '' : 'no-image'}`"
9
9
  :role="!buttonLabel ? 'button' : 'article'"
10
10
  :style="`min-height: ${cardMinHeight};`"
11
11
  @click="handleCardClick"
@@ -354,10 +354,14 @@ $responsive-breakpoint: 's';
354
354
  background-color: white;
355
355
  overflow: hidden;
356
356
  position: relative;
357
- border: 2px solid #bab6bc;
357
+ border: 1px solid #bab6bc;
358
358
 
359
359
  &.select {
360
- border-color: $color-primary-01-500;
360
+ box-shadow: 0 0 0 4px #ebf5de, inset 0 0 0 2px #46a610;
361
+ }
362
+
363
+ &.no-image {
364
+ padding-right: $mu250;
361
365
  }
362
366
 
363
367
  &--border-top {
@@ -381,6 +385,16 @@ $responsive-breakpoint: 's';
381
385
  }
382
386
  }
383
387
 
388
+ &__image-container {
389
+ padding: $mu050 $mu050 0 $mu050;
390
+ position: relative;
391
+ width: 100%;
392
+
393
+ & > div {
394
+ border-radius: 5px;
395
+ }
396
+ }
397
+
384
398
  &__items-container:empty ~ &__image-container {
385
399
  height: 100%;
386
400
 
@@ -407,11 +421,6 @@ $responsive-breakpoint: 's';
407
421
  filter: grayscale(100%);
408
422
  }
409
423
 
410
- &-container {
411
- position: relative;
412
- width: 100%;
413
- }
414
-
415
424
  &-title-container {
416
425
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 41%, rgba(0, 0, 0, 0.7));
417
426
  background-position: center;
@@ -27,12 +27,14 @@
27
27
 
28
28
  <m-flexy class="pb-question__answers-container-flexy">
29
29
  <transition-group :class="`pb-question__answers`" :name="showMoreAnimation" tag="div">
30
- <m-flexy-col
30
+ <div
31
31
  v-for="answer in displayedAnswers"
32
32
  :key="`pb-question__answers-${answer.code}`"
33
- :width="payload.viewModel.forceOneCardPerLineOnMobile ? 'full' : '1of3'"
34
- :width-from-m="payload.viewModel.widthFromM ? payload.viewModel.widthFromM : '1of3'"
35
- :width-from-l="payload.viewModel.widthFromL ? payload.viewModel.widthFromL : '1of4'"
33
+ :class="`
34
+ ${payload.viewModel.forceOneCardPerLineOnMobile ? 'column-full' : 'column-1of3'}
35
+ ${payload.viewModel.widthFromM ? 'column-' + payload.viewModel.widthFromM : 'column-1of3'}
36
+ ${payload.viewModel.widthFromL ? 'column-' + payload.viewModel.widthFromL : 'column-1of4'}
37
+ `"
36
38
  >
37
39
  <div class="pb-question__answer">
38
40
  <component
@@ -111,7 +113,7 @@
111
113
  @click="selectAnswer(payload.code, answer)"
112
114
  />
113
115
  </div>
114
- </m-flexy-col>
116
+ </div>
115
117
  </transition-group>
116
118
  <m-flex v-if="showMoreButtonDisplayed" class="pb-question__show-more-container" justify-content="center">
117
119
  <m-button
@@ -230,7 +232,7 @@
230
232
  size-from-l="l"
231
233
  icon="ArrowNext48"
232
234
  iconPosition="right"
233
- label="Etape suivante"
235
+ label="Étape suivante"
234
236
  @click="nextStepHandler"
235
237
  :disabled="!hasAnswersSelected"
236
238
  />
@@ -1092,6 +1094,7 @@ $answers-apparition-duration: '0.5s';
1092
1094
  margin: 0 auto;
1093
1095
  max-width: 1024px;
1094
1096
  width: 100%;
1097
+ padding: 0 $mu050;
1095
1098
 
1096
1099
  &--centered {
1097
1100
  @include set-from-screen($responsive-breakpoint) {
@@ -1117,7 +1120,7 @@ $answers-apparition-duration: '0.5s';
1117
1120
  padding: $mu050;
1118
1121
 
1119
1122
  @include set-from-screen($responsive-breakpoint) {
1120
- padding: $mu100;
1123
+ padding: $mu050;
1121
1124
  }
1122
1125
 
1123
1126
  :deep(.pb-question__answer__component) {
@@ -1193,7 +1196,7 @@ $answers-apparition-duration: '0.5s';
1193
1196
  }
1194
1197
 
1195
1198
  &__sticky-footer {
1196
- margin: 0 #{-$mu050};
1199
+ margin: $mu200 #{-$mu050} 0 #{-$mu050};
1197
1200
  width: calc(100% + 2 * #{$mu050});
1198
1201
  }
1199
1202
 
@@ -16,4 +16,12 @@
16
16
  &.column-reverse {
17
17
  flex-direction: column-reverse;
18
18
  }
19
+ }
20
+
21
+ .column-1of3{
22
+ width: calc(100% / 3);
23
+ }
24
+
25
+ .column-auto{
26
+ width: auto;
19
27
  }
@@ -3,6 +3,7 @@ export interface PayloadAction {
3
3
  code: string;
4
4
  component?: string;
5
5
  label?: string;
6
+ nextStep?: any;
6
7
  payload?: {
7
8
  link: string;
8
9
  };
@@ -63,6 +63,7 @@
63
63
  completed-event-name="step-completed"
64
64
  :sticky-bottom-offset="stickyBottomOffset()"
65
65
  :min-height="minHeight"
66
+ :is-collaborator="isCollaborator"
66
67
  @step-completed="handleStepCompleted"
67
68
  @update-selected="handleSemiUpdateSelected"
68
69
  @redirection="handleRedirection"
@@ -235,6 +236,14 @@ export default defineComponent({
235
236
  type: Object,
236
237
  default: () => ({}),
237
238
  },
239
+ /**
240
+ * Indicates whether the authenticated user is a collaborator
241
+ */
242
+ isCollaborator: {
243
+ type: Boolean,
244
+ default: false,
245
+ required: false,
246
+ },
238
247
  },
239
248
 
240
249
  setup(props, { emit }) {
@@ -45,7 +45,7 @@
45
45
  "label": "Que souhaitez-vous installer ou remplacer dans votre salle de bains ?",
46
46
  "answersComponent": "MPbCard",
47
47
  "progressBar": true,
48
- "widthFromL": "1of3",
48
+ "widthFromL": "auto",
49
49
  "widthXlSize": true,
50
50
  "hideBackButton": true,
51
51
  "forceOneCardPerLineOnMobile": true,
@@ -140,7 +140,7 @@
140
140
  "SHOWER": {
141
141
  "code": "SHOWER",
142
142
  "viewModel": {
143
- "title": "Douche & colonne"
143
+ "title": "Douche"
144
144
  },
145
145
  "meta": {
146
146
  "ranking": 2
@@ -185,7 +185,7 @@
185
185
  "REPLACE_BATHTUB_TO_SHOWER": {
186
186
  "code": "REPLACE_BATHTUB_TO_SHOWER",
187
187
  "viewModel": {
188
- "title": "Une douche à la <br> place d’une baignoire"
188
+ "title": "Une douche à la place d’une baignoire"
189
189
  },
190
190
  "meta": {
191
191
  "ranking": 7
@@ -844,10 +844,11 @@
844
844
  "progressBar": true,
845
845
  "forceOneCardPerLineOnMobile": true,
846
846
  "widthXlSize": true,
847
- "widthFromL": "1of3",
847
+ "widthFromL": "auto",
848
848
  "label": "Partagez votre plan de salle de bains",
849
849
  "subtitle": "Le plan de votre salle de bains est indispensable en amont du RDV. Cela permettra à votre conseiller de préparer au mieux votre projet. Formats acceptés : .jpg .jpeg .pdf .png 56Go max."
850
850
  },
851
+
851
852
  "answers": {
852
853
  "DOWNLOAD_PLAN": {
853
854
  "code": "DOWNLOAD_PLAN",
@@ -1214,7 +1215,7 @@
1214
1215
  "IN_MORE_THAN_SIX_MONTHS": {
1215
1216
  "code": "IN_MORE_THAN_SIX_MONTHS",
1216
1217
  "viewModel": {
1217
- "title": "Plus de 6 mois"
1218
+ "title": "Dans plus de 6 mois"
1218
1219
  },
1219
1220
  "meta": {
1220
1221
  "ranking": 2
@@ -1343,7 +1344,7 @@
1343
1344
  "widthFromL": "1of3",
1344
1345
  "widthXlSize": true,
1345
1346
  "label": "Quel budget souhaitez-vous investir dans les travaux ?",
1346
- "subtitle": "Ces tranches de budgets ne couvrent que le coût des matériaux pour votre projet. Les frais de main d’oeuvre, ou tout autre coût associé, ne sont pas couverts ici. "
1347
+ "subtitle": "Il s’agit du coût total de votre projet, y compris les frais de main d’oeuvre et le coût des matériaux. La main d’oeuvre représente pour plus de 60% du budget total."
1347
1348
  },
1348
1349
  "answers": {
1349
1350
  "BETWEEN_5000_AND_7000_EUROS_BY_A_PROFESSIONAL": {
@@ -1385,7 +1386,7 @@
1385
1386
  "code": "MORE_THAN_6000_EUROS",
1386
1387
  "conditions": ["isAnswerContaining('LMFR_QUESTION_INSTALLATION', 'BY_MYSELF')"],
1387
1388
  "viewModel": {
1388
- "title": "Plus de 10 000€"
1389
+ "title": "Plus de 6 000€"
1389
1390
  }
1390
1391
  },
1391
1392
  "BETWEEN_5000_AND_7000_EUROS_BY_A_LEROYMERLIN_PARTNER": {
@@ -136,6 +136,36 @@
136
136
 
137
137
  <div class="ml-flexy">
138
138
  <div class="pb-trezor__form__col ml-flexy__col--5of6 no-padding">
139
+ <m-flex v-if="isCollaborator" class="pb-trezor__form__row space" direction="column">
140
+ <label class="pb-trezor__form__label"
141
+ >Partenaire à privilégier<span> *sous réserve de disponibilité</span></label
142
+ >
143
+ <div class="pb-trezor__form__cards-container">
144
+ <m-pb-card
145
+ v-for="partner in partners"
146
+ :key="partner.id"
147
+ :title="partner.name"
148
+ :selected="formData.values.selectedPreferredPartner == partner.id"
149
+ @card-click="handleSelectPartner(partner)"
150
+ />
151
+ </div>
152
+ </m-flex>
153
+
154
+ <m-flex v-if="isCollaborator" class="pb-trezor__form__row space" direction="column">
155
+ <label class="pb-trezor__form__label"
156
+ >Commentaire du collaborateur<span> *minimum 10 caractères</span></label
157
+ >
158
+ <div class="pb-trezor__form__textarea-container">
159
+ <textarea
160
+ class="pb-trezor__textarea"
161
+ v-model="formData.values.comment"
162
+ placeholder="Votre texte ici.."
163
+ :required="false"
164
+ rows="5"
165
+ />
166
+ </div>
167
+ </m-flex>
168
+
139
169
  <m-flex class="pb-trezor__form__row space" direction="column">
140
170
  <label class="pb-trezor__form__label"><span>obligatoire</span></label>
141
171
  <div class="pb-trezor__form__checkbox-container">
@@ -207,7 +237,7 @@
207
237
  <template #default>
208
238
  <h4>Nos partenaires sont :</h4>
209
239
  <ul>
210
- <li v-for="(partner, i) in partners" :key="'partner_' + i">{{ partner }}</li>
240
+ <li v-for="(partner, i) in partners" :key="'partner_' + i">{{ partner.name }}</li>
211
241
  </ul>
212
242
  </template>
213
243
  <template #footer>
@@ -225,6 +255,7 @@ import MCheckbox from '../mozaic/checkbox/MCheckbox.vue';
225
255
  import MLink from '../mozaic/link/MLink.vue';
226
256
  import MTextInput from '../mozaic/text-input/MTextInput.vue';
227
257
  import MRadio from '../mozaic/radio/MRadio.vue';
258
+ import MPbCard from '../rework/cards/MPbCards.vue';
228
259
  import { ScenarioStepAnswer } from '@/types/pb/Scenario';
229
260
  import { object, string, boolean, number } from 'yup';
230
261
  import { TrezorInterface } from './PbTrezorInterface';
@@ -246,6 +277,7 @@ export default defineComponent({
246
277
  MLink,
247
278
  MRadio,
248
279
  MModal,
280
+ MPbCard,
249
281
  },
250
282
  props: {
251
283
  /**
@@ -285,6 +317,14 @@ export default defineComponent({
285
317
  type: Object as PropType<Map<string, ScenarioStepAnswer[]>>,
286
318
  default: () => new Map<string, ScenarioStepAnswer[]>(),
287
319
  },
320
+ /**
321
+ * Indicates whether the authenticated user is a collaborator
322
+ */
323
+ isCollaborator: {
324
+ type: Boolean,
325
+ default: false,
326
+ required: false,
327
+ },
288
328
  },
289
329
  setup(props, { emit }) {
290
330
  const store = useStore();
@@ -350,6 +390,8 @@ export default defineComponent({
350
390
  optin: false,
351
391
  optinPartners: false,
352
392
  optinOffers: false,
393
+ selectedPreferredPartner: null,
394
+ comment: undefined,
353
395
  },
354
396
  errors: {},
355
397
  });
@@ -377,6 +419,8 @@ export default defineComponent({
377
419
  return formData.value.values.optinPartners === true;
378
420
  }),
379
421
  optinOffers: boolean(),
422
+ selectedPreferredPartner: number().integer().min(1).nullable(true),
423
+ comment: string().notRequired().nullable(true),
380
424
  });
381
425
 
382
426
  const isSubmitDisabled = ref(false);
@@ -405,6 +449,8 @@ export default defineComponent({
405
449
  optinPartners: formData.value.values.optinPartners,
406
450
  optinOffers: formData.value.values.optinOffers,
407
451
  metadata: sendingMetadata,
452
+ description: formData.values.comment,
453
+ preferredCompany: formData.values.selectedPreferredPartner,
408
454
  },
409
455
  typeLead: props.payload.viewModel.typeLead,
410
456
  });
@@ -437,7 +483,7 @@ export default defineComponent({
437
483
  }
438
484
  };
439
485
 
440
- // MODAL
486
+ // Partners
441
487
  let showModal = ref(false);
442
488
 
443
489
  store.dispatch('trezor/loadPartners', {
@@ -446,6 +492,10 @@ export default defineComponent({
446
492
 
447
493
  const partners = computed(() => store.getters['trezor/getPartners']);
448
494
 
495
+ const handleSelectPartner = (partner: any) => {
496
+ formData.value.values.selectedPreferredPartner = partner.id;
497
+ };
498
+
449
499
  return {
450
500
  formData,
451
501
  callAction,
@@ -454,6 +504,7 @@ export default defineComponent({
454
504
  showModal,
455
505
  partners,
456
506
  isSubmitDisabled,
507
+ handleSelectPartner,
457
508
  };
458
509
  },
459
510
  });
@@ -503,6 +554,10 @@ $responsive-breakpoint: 'm';
503
554
  width: 100%;
504
555
  }
505
556
 
557
+ &__textarea {
558
+ width: 100%;
559
+ }
560
+
506
561
  &__form {
507
562
  padding: 30px;
508
563
  width: calc(100% - 60px);
@@ -529,6 +584,29 @@ $responsive-breakpoint: 'm';
529
584
  }
530
585
  }
531
586
 
587
+ &__textarea-container {
588
+ display: flex;
589
+ flex-direction: row;
590
+ width: 100%;
591
+
592
+ &__label {
593
+ font-family: LeroyMerlin, sans-serif;
594
+ margin-left: 0.5rem;
595
+ }
596
+ }
597
+
598
+ &__cards-container {
599
+ display: flex;
600
+ flex-direction: row;
601
+ flex-wrap: wrap;
602
+ gap: 1.5rem;
603
+
604
+ &__label {
605
+ font-family: LeroyMerlin, sans-serif;
606
+ margin-left: 0.5rem;
607
+ }
608
+ }
609
+
532
610
  &__radio {
533
611
  margin-right: 15px;
534
612
  }
@@ -50,8 +50,8 @@ export default {
50
50
  if (response.data.status == 998) {
51
51
  return 'LEAD_DUPLICATED';
52
52
  }
53
-
54
53
  return 'LEAD_CREATED_SUCCESSFULLY';
54
+
55
55
  case 400:
56
56
  return 'LEAD_CREATION_FAILED_DUE_TO_QUOTA';
57
57