cja-phoenix 1.2.39 → 1.2.41
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/module.d.mts +6 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +29 -16
- package/dist/runtime/assets/iconia/fonts/CGG-icomoon.svg +94 -0
- package/dist/runtime/assets/iconia/fonts/CGG-icomoon.ttf +0 -0
- package/dist/runtime/assets/iconia/fonts/CGG-icomoon.woff +0 -0
- package/dist/runtime/assets/iconia/selection.json +1 -0
- package/dist/runtime/assets/iconia/style.css +281 -0
- package/dist/runtime/assets/scss/main.scss +6 -0
- package/dist/runtime/assets/scss/mixins/_funnel.scss +15 -0
- package/dist/runtime/assets/scss/mixins/_index.scss +46 -0
- package/dist/runtime/assets/scss/mixins/_media-queries.scss +109 -0
- package/dist/runtime/assets/scss/mixins/_results.scss +235 -0
- package/dist/runtime/assets/scss/tippy.scss +31 -0
- package/dist/runtime/assets/scss/variables/_breakpoints.scss +18 -0
- package/dist/runtime/assets/scss/variables/_colors.scss +100 -0
- package/dist/runtime/assets/scss/variables/_forms.scss +121 -0
- package/dist/runtime/assets/scss/variables/_grid.scss +12 -0
- package/dist/runtime/assets/scss/variables/_index.scss +6 -0
- package/dist/runtime/assets/scss/variables/_shadows.scss +7 -0
- package/dist/runtime/assets/scss/variables/_z-index.scss +6 -0
- package/dist/runtime/components/CjaButton.d.vue.ts +33 -0
- package/dist/runtime/components/CjaButton.vue +437 -0
- package/dist/runtime/components/CjaButton.vue.d.ts +33 -0
- package/dist/runtime/components/CollapseContainer.d.vue.ts +35 -0
- package/dist/runtime/components/CollapseContainer.vue +112 -0
- package/dist/runtime/components/CollapseContainer.vue.d.ts +35 -0
- package/dist/runtime/components/ContentTabs.d.vue.ts +23 -0
- package/dist/runtime/components/ContentTabs.vue +103 -0
- package/dist/runtime/components/ContentTabs.vue.d.ts +23 -0
- package/dist/runtime/components/Drawer.d.vue.ts +52 -0
- package/dist/runtime/components/Drawer.vue +169 -0
- package/dist/runtime/components/Drawer.vue.d.ts +52 -0
- package/dist/runtime/components/FixedContainer.d.vue.ts +37 -0
- package/dist/runtime/components/FixedContainer.vue +95 -0
- package/dist/runtime/components/FixedContainer.vue.d.ts +37 -0
- package/dist/runtime/components/GridContainer.d.vue.ts +13 -0
- package/dist/runtime/components/GridContainer.vue +37 -0
- package/dist/runtime/components/GridContainer.vue.d.ts +13 -0
- package/dist/runtime/components/GridItem.d.vue.ts +29 -0
- package/dist/runtime/components/GridItem.vue +93 -0
- package/dist/runtime/components/GridItem.vue.d.ts +29 -0
- package/dist/runtime/components/InfoMessage.d.vue.ts +28 -0
- package/dist/runtime/components/InfoMessage.vue +141 -0
- package/dist/runtime/components/InfoMessage.vue.d.ts +28 -0
- package/dist/runtime/components/LoadingSpinner.d.vue.ts +10 -0
- package/dist/runtime/components/LoadingSpinner.vue +39 -0
- package/dist/runtime/components/LoadingSpinner.vue.d.ts +10 -0
- package/dist/runtime/components/Modal.d.vue.ts +39 -0
- package/dist/runtime/components/Modal.vue +195 -0
- package/dist/runtime/components/Modal.vue.d.ts +39 -0
- package/dist/runtime/components/Scaffold.d.vue.ts +13 -0
- package/dist/runtime/components/Scaffold.vue +3 -0
- package/dist/runtime/components/Scaffold.vue.d.ts +13 -0
- package/dist/runtime/components/StickyContainer.d.vue.ts +21 -0
- package/dist/runtime/components/StickyContainer.vue +57 -0
- package/dist/runtime/components/StickyContainer.vue.d.ts +21 -0
- package/dist/runtime/components/form/CheckboxInput.d.vue.ts +42 -0
- package/dist/runtime/components/form/CheckboxInput.vue +163 -0
- package/dist/runtime/components/form/CheckboxInput.vue.d.ts +42 -0
- package/dist/runtime/components/form/CheckboxInputList.d.vue.ts +37 -0
- package/dist/runtime/components/form/CheckboxInputList.vue +84 -0
- package/dist/runtime/components/form/CheckboxInputList.vue.d.ts +37 -0
- package/dist/runtime/components/form/CurrencyInput.d.vue.ts +37 -0
- package/dist/runtime/components/form/CurrencyInput.vue +134 -0
- package/dist/runtime/components/form/CurrencyInput.vue.d.ts +37 -0
- package/dist/runtime/components/form/DateInput.d.vue.ts +40 -0
- package/dist/runtime/components/form/DateInput.vue +325 -0
- package/dist/runtime/components/form/DateInput.vue.d.ts +40 -0
- package/dist/runtime/components/form/FileInput.d.vue.ts +46 -0
- package/dist/runtime/components/form/FileInput.vue +202 -0
- package/dist/runtime/components/form/FileInput.vue.d.ts +46 -0
- package/dist/runtime/components/form/NumberInput.d.vue.ts +41 -0
- package/dist/runtime/components/form/NumberInput.vue +162 -0
- package/dist/runtime/components/form/NumberInput.vue.d.ts +41 -0
- package/dist/runtime/components/form/PhoneInput.d.vue.ts +44 -0
- package/dist/runtime/components/form/PhoneInput.vue +143 -0
- package/dist/runtime/components/form/PhoneInput.vue.d.ts +44 -0
- package/dist/runtime/components/form/RadioInput.d.vue.ts +42 -0
- package/dist/runtime/components/form/RadioInput.vue +181 -0
- package/dist/runtime/components/form/RadioInput.vue.d.ts +42 -0
- package/dist/runtime/components/form/RadioInputList.d.vue.ts +57 -0
- package/dist/runtime/components/form/RadioInputList.vue +130 -0
- package/dist/runtime/components/form/RadioInputList.vue.d.ts +57 -0
- package/dist/runtime/components/form/SelectInput.d.vue.ts +46 -0
- package/dist/runtime/components/form/SelectInput.vue +362 -0
- package/dist/runtime/components/form/SelectInput.vue.d.ts +46 -0
- package/dist/runtime/components/form/SelectionTiles.d.vue.ts +44 -0
- package/dist/runtime/components/form/SelectionTiles.vue +329 -0
- package/dist/runtime/components/form/SelectionTiles.vue.d.ts +44 -0
- package/dist/runtime/components/form/SliderInput.d.vue.ts +51 -0
- package/dist/runtime/components/form/SliderInput.vue +175 -0
- package/dist/runtime/components/form/SliderInput.vue.d.ts +51 -0
- package/dist/runtime/components/form/TextInput.d.vue.ts +56 -0
- package/dist/runtime/components/form/TextInput.vue +227 -0
- package/dist/runtime/components/form/TextInput.vue.d.ts +56 -0
- package/dist/runtime/components/form/TextareaInput.d.vue.ts +37 -0
- package/dist/runtime/components/form/TextareaInput.vue +76 -0
- package/dist/runtime/components/form/TextareaInput.vue.d.ts +37 -0
- package/dist/runtime/components/form/TileCheckboxInput.d.vue.ts +40 -0
- package/dist/runtime/components/form/TileCheckboxInput.vue +108 -0
- package/dist/runtime/components/form/TileCheckboxInput.vue.d.ts +40 -0
- package/dist/runtime/components/form/ToggleInput.d.vue.ts +43 -0
- package/dist/runtime/components/form/ToggleInput.vue +119 -0
- package/dist/runtime/components/form/ToggleInput.vue.d.ts +43 -0
- package/dist/runtime/components/form/structure/Container.d.vue.ts +16 -0
- package/dist/runtime/components/form/structure/Container.vue +31 -0
- package/dist/runtime/components/form/structure/Container.vue.d.ts +16 -0
- package/dist/runtime/components/form/structure/Description.d.vue.ts +9 -0
- package/dist/runtime/components/form/structure/Description.vue +26 -0
- package/dist/runtime/components/form/structure/Description.vue.d.ts +9 -0
- package/dist/runtime/components/form/structure/Error.d.vue.ts +9 -0
- package/dist/runtime/components/form/structure/Error.vue +23 -0
- package/dist/runtime/components/form/structure/Error.vue.d.ts +9 -0
- package/dist/runtime/components/form/structure/Title.d.vue.ts +12 -0
- package/dist/runtime/components/form/structure/Title.vue +43 -0
- package/dist/runtime/components/form/structure/Title.vue.d.ts +12 -0
- package/dist/runtime/components/funnel/Header.d.vue.ts +18 -0
- package/dist/runtime/components/funnel/Header.vue +62 -0
- package/dist/runtime/components/funnel/Header.vue.d.ts +18 -0
- package/dist/runtime/composables/useCjaGtm.d.ts +19 -0
- package/dist/runtime/composables/useCjaGtm.js +164 -0
- package/dist/runtime/composables/useFunnelConfig.d.ts +11 -0
- package/dist/runtime/composables/useFunnelConfig.js +51 -0
- package/dist/runtime/composables/useFunnelSummary.d.ts +14 -0
- package/dist/runtime/composables/useFunnelSummary.js +16 -0
- package/dist/runtime/composables/useHeaderHeight.d.ts +3 -0
- package/dist/runtime/composables/useHeaderHeight.js +24 -0
- package/dist/runtime/composables/useJourneyConfig.d.ts +11 -0
- package/dist/runtime/composables/useJourneyConfig.js +13 -0
- package/dist/runtime/composables/useValidateForm.d.ts +11 -0
- package/dist/runtime/composables/useValidateForm.js +33 -0
- package/dist/runtime/data/dialCodes.d.ts +7 -0
- package/dist/runtime/data/dialCodes.js +1466 -0
- package/dist/runtime/data/phoneDigits.d.ts +2 -0
- package/dist/runtime/data/phoneDigits.js +231 -0
- package/dist/runtime/plugins/tippy.d.ts +4 -0
- package/dist/runtime/plugins/tippy.js +12 -0
- package/dist/runtime/plugins/v-calendar.d.ts +3 -0
- package/dist/runtime/plugins/v-calendar.js +6 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/types/Form.d.ts +34 -0
- package/dist/runtime/types/Form.js +20 -0
- package/dist/runtime/types/Grid.d.ts +4 -0
- package/dist/runtime/types/Grid.js +0 -0
- package/dist/runtime/types/Icon.d.ts +2 -0
- package/dist/runtime/types/Icon.js +85 -0
- package/dist/runtime/types/JourneyConfig.d.ts +9 -0
- package/dist/runtime/types/JourneyConfig.js +0 -0
- package/dist/runtime/types/index.d.ts +4 -0
- package/dist/runtime/types/index.js +4 -0
- package/dist/runtime/utils/applyProductData.d.ts +10 -0
- package/dist/runtime/utils/applyProductData.js +22 -0
- package/dist/runtime/utils/convertDate.d.ts +5 -0
- package/dist/runtime/utils/convertDate.js +17 -0
- package/dist/runtime/utils/findScrollAncestor.d.ts +1 -0
- package/dist/runtime/utils/findScrollAncestor.js +14 -0
- package/dist/runtime/utils/formValidations.d.ts +78 -0
- package/dist/runtime/utils/formValidations.js +180 -0
- package/dist/runtime/utils/formatValue.d.ts +4 -0
- package/dist/runtime/utils/formatValue.js +20 -0
- package/dist/runtime/utils/getAbTestVersion.d.ts +9 -0
- package/dist/runtime/utils/getAbTestVersion.js +48 -0
- package/dist/runtime/utils/getCalendarUrl.d.ts +8 -0
- package/dist/runtime/utils/getCalendarUrl.js +24 -0
- package/dist/runtime/utils/getFromUrl.d.ts +2 -0
- package/dist/runtime/utils/getFromUrl.js +25 -0
- package/dist/runtime/utils/getStoryblokUrl.d.ts +71 -0
- package/dist/runtime/utils/getStoryblokUrl.js +35 -0
- package/dist/runtime/utils/jsonReviver.d.ts +1 -0
- package/dist/runtime/utils/jsonReviver.js +18 -0
- package/dist/runtime/utils/mediaBreakpoints.d.ts +28 -0
- package/dist/runtime/utils/mediaBreakpoints.js +28 -0
- package/dist/runtime/utils/toggleScroll.d.ts +1 -0
- package/dist/runtime/utils/toggleScroll.js +6 -0
- package/dist/runtime/utils/updateForm.d.ts +11 -0
- package/dist/runtime/utils/updateForm.js +74 -0
- package/dist/runtime/utils/updateMarketingConsent.d.ts +4 -0
- package/dist/runtime/utils/updateMarketingConsent.js +13 -0
- package/dist/runtime/utils/uploadFile.d.ts +8 -0
- package/dist/runtime/utils/uploadFile.js +13 -0
- package/dist/types.d.mts +6 -10
- package/package.json +9 -8
- package/dist/module.d.cts +0 -2
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
1: 10,
|
|
3
|
+
7: 10,
|
|
4
|
+
20: 10,
|
|
5
|
+
27: 9,
|
|
6
|
+
30: 10,
|
|
7
|
+
31: 9,
|
|
8
|
+
32: 9,
|
|
9
|
+
33: 9,
|
|
10
|
+
34: 9,
|
|
11
|
+
36: 9,
|
|
12
|
+
39: 10,
|
|
13
|
+
40: 10,
|
|
14
|
+
41: 9,
|
|
15
|
+
43: 11,
|
|
16
|
+
44: 10,
|
|
17
|
+
45: 8,
|
|
18
|
+
46: 7,
|
|
19
|
+
47: 8,
|
|
20
|
+
48: 9,
|
|
21
|
+
49: 10,
|
|
22
|
+
51: 9,
|
|
23
|
+
52: 10,
|
|
24
|
+
53: 8,
|
|
25
|
+
54: 8,
|
|
26
|
+
55: 11,
|
|
27
|
+
56: 9,
|
|
28
|
+
57: 10,
|
|
29
|
+
58: 7,
|
|
30
|
+
60: 7,
|
|
31
|
+
61: 9,
|
|
32
|
+
62: 11,
|
|
33
|
+
63: 10,
|
|
34
|
+
64: 9,
|
|
35
|
+
65: 8,
|
|
36
|
+
66: 9,
|
|
37
|
+
81: 11,
|
|
38
|
+
82: 8,
|
|
39
|
+
84: 9,
|
|
40
|
+
86: 11,
|
|
41
|
+
90: 10,
|
|
42
|
+
91: 10,
|
|
43
|
+
92: 10,
|
|
44
|
+
93: 9,
|
|
45
|
+
94: 7,
|
|
46
|
+
95: 10,
|
|
47
|
+
98: 11,
|
|
48
|
+
211: 7,
|
|
49
|
+
212: 9,
|
|
50
|
+
213: 9,
|
|
51
|
+
216: 8,
|
|
52
|
+
218: 10,
|
|
53
|
+
220: 7,
|
|
54
|
+
221: 9,
|
|
55
|
+
222: 8,
|
|
56
|
+
223: 8,
|
|
57
|
+
224: 9,
|
|
58
|
+
225: 8,
|
|
59
|
+
226: 8,
|
|
60
|
+
227: 8,
|
|
61
|
+
228: 8,
|
|
62
|
+
229: 8,
|
|
63
|
+
230: 8,
|
|
64
|
+
231: 9,
|
|
65
|
+
232: 8,
|
|
66
|
+
233: 9,
|
|
67
|
+
234: 8,
|
|
68
|
+
235: 6,
|
|
69
|
+
236: 8,
|
|
70
|
+
237: 9,
|
|
71
|
+
238: 7,
|
|
72
|
+
239: 7,
|
|
73
|
+
240: 9,
|
|
74
|
+
241: 7,
|
|
75
|
+
242: 9,
|
|
76
|
+
243: 7,
|
|
77
|
+
244: 9,
|
|
78
|
+
245: 9,
|
|
79
|
+
246: 7,
|
|
80
|
+
248: 7,
|
|
81
|
+
249: 7,
|
|
82
|
+
250: 9,
|
|
83
|
+
251: 9,
|
|
84
|
+
252: 9,
|
|
85
|
+
253: 10,
|
|
86
|
+
254: 10,
|
|
87
|
+
255: 7,
|
|
88
|
+
256: 7,
|
|
89
|
+
257: 8,
|
|
90
|
+
258: 12,
|
|
91
|
+
260: 9,
|
|
92
|
+
261: 7,
|
|
93
|
+
262: 9,
|
|
94
|
+
263: 9,
|
|
95
|
+
264: 7,
|
|
96
|
+
265: 9,
|
|
97
|
+
266: 8,
|
|
98
|
+
267: 7,
|
|
99
|
+
268: 8,
|
|
100
|
+
269: 7,
|
|
101
|
+
290: 4,
|
|
102
|
+
291: 7,
|
|
103
|
+
297: 7,
|
|
104
|
+
298: 5,
|
|
105
|
+
299: 6,
|
|
106
|
+
350: 8,
|
|
107
|
+
351: 9,
|
|
108
|
+
352: 9,
|
|
109
|
+
353: 9,
|
|
110
|
+
354: 7,
|
|
111
|
+
355: 9,
|
|
112
|
+
356: 8,
|
|
113
|
+
357: 8,
|
|
114
|
+
358: 11,
|
|
115
|
+
359: 9,
|
|
116
|
+
370: 8,
|
|
117
|
+
371: 8,
|
|
118
|
+
372: 8,
|
|
119
|
+
373: 8,
|
|
120
|
+
374: 6,
|
|
121
|
+
375: 9,
|
|
122
|
+
376: 6,
|
|
123
|
+
377: 8,
|
|
124
|
+
378: 10,
|
|
125
|
+
379: 10,
|
|
126
|
+
380: 9,
|
|
127
|
+
381: 9,
|
|
128
|
+
382: 8,
|
|
129
|
+
383: 8,
|
|
130
|
+
385: 9,
|
|
131
|
+
386: 9,
|
|
132
|
+
387: 8,
|
|
133
|
+
389: 8,
|
|
134
|
+
420: 9,
|
|
135
|
+
421: 9,
|
|
136
|
+
423: 7,
|
|
137
|
+
500: 5,
|
|
138
|
+
501: 7,
|
|
139
|
+
502: 8,
|
|
140
|
+
503: 8,
|
|
141
|
+
504: 8,
|
|
142
|
+
505: 8,
|
|
143
|
+
506: 8,
|
|
144
|
+
507: 8,
|
|
145
|
+
508: 6,
|
|
146
|
+
509: 8,
|
|
147
|
+
590: 6,
|
|
148
|
+
591: 9,
|
|
149
|
+
592: 7,
|
|
150
|
+
593: 9,
|
|
151
|
+
594: 9,
|
|
152
|
+
595: 9,
|
|
153
|
+
596: 9,
|
|
154
|
+
597: 7,
|
|
155
|
+
598: 8,
|
|
156
|
+
599: 7,
|
|
157
|
+
670: 7,
|
|
158
|
+
672: 6,
|
|
159
|
+
673: 7,
|
|
160
|
+
674: 7,
|
|
161
|
+
675: 8,
|
|
162
|
+
676: 5,
|
|
163
|
+
677: 7,
|
|
164
|
+
678: 5,
|
|
165
|
+
679: 7,
|
|
166
|
+
680: 7,
|
|
167
|
+
681: 6,
|
|
168
|
+
682: 5,
|
|
169
|
+
683: 4,
|
|
170
|
+
685: 7,
|
|
171
|
+
686: 8,
|
|
172
|
+
687: 6,
|
|
173
|
+
688: 5,
|
|
174
|
+
689: 8,
|
|
175
|
+
690: 5,
|
|
176
|
+
691: 7,
|
|
177
|
+
692: 7,
|
|
178
|
+
850: 13,
|
|
179
|
+
852: 8,
|
|
180
|
+
853: 8,
|
|
181
|
+
855: 9,
|
|
182
|
+
856: 9,
|
|
183
|
+
870: 9,
|
|
184
|
+
880: 10,
|
|
185
|
+
886: 9,
|
|
186
|
+
960: 7,
|
|
187
|
+
961: 8,
|
|
188
|
+
962: 9,
|
|
189
|
+
963: 7,
|
|
190
|
+
964: 10,
|
|
191
|
+
965: 8,
|
|
192
|
+
966: 9,
|
|
193
|
+
967: 9,
|
|
194
|
+
968: 8,
|
|
195
|
+
970: 9,
|
|
196
|
+
971: 9,
|
|
197
|
+
972: 9,
|
|
198
|
+
973: 8,
|
|
199
|
+
974: 8,
|
|
200
|
+
975: 7,
|
|
201
|
+
976: 8,
|
|
202
|
+
977: 10,
|
|
203
|
+
992: 9,
|
|
204
|
+
993: 8,
|
|
205
|
+
994: 9,
|
|
206
|
+
995: 9,
|
|
207
|
+
996: 9,
|
|
208
|
+
998: 9,
|
|
209
|
+
1242: 10,
|
|
210
|
+
1246: 10,
|
|
211
|
+
1264: 10,
|
|
212
|
+
1268: 10,
|
|
213
|
+
1284: 7,
|
|
214
|
+
1340: 10,
|
|
215
|
+
1345: 7,
|
|
216
|
+
1441: 10,
|
|
217
|
+
1473: 10,
|
|
218
|
+
1649: 10,
|
|
219
|
+
1664: 10,
|
|
220
|
+
1670: 7,
|
|
221
|
+
1671: 10,
|
|
222
|
+
1684: 10,
|
|
223
|
+
1721: 10,
|
|
224
|
+
1758: 7,
|
|
225
|
+
1767: 10,
|
|
226
|
+
1784: 7,
|
|
227
|
+
1809: 10,
|
|
228
|
+
1868: 7,
|
|
229
|
+
1869: 10,
|
|
230
|
+
1876: 10
|
|
231
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { defineNuxtPlugin } from "#app";
|
|
2
|
+
import VueTippy from "vue-tippy";
|
|
3
|
+
import "tippy.js/dist/tippy.css";
|
|
4
|
+
import "tippy.js/dist/border.css";
|
|
5
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
6
|
+
nuxtApp.vueApp.use(VueTippy, {
|
|
7
|
+
defaultProps: {
|
|
8
|
+
theme: "cja",
|
|
9
|
+
allowHTML: true
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { InputHTMLAttributes, SelectHTMLAttributes } from 'vue';
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
value: SelectHTMLAttributes['value'];
|
|
4
|
+
label: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
altLabel?: string;
|
|
7
|
+
searchTags?: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface CheckboxOption {
|
|
10
|
+
value: InputHTMLAttributes['value'];
|
|
11
|
+
label: string;
|
|
12
|
+
disabled?: InputHTMLAttributes['disabled'];
|
|
13
|
+
}
|
|
14
|
+
export interface RadioOption {
|
|
15
|
+
value: InputHTMLAttributes['value'];
|
|
16
|
+
label: string;
|
|
17
|
+
disabled?: InputHTMLAttributes['disabled'];
|
|
18
|
+
}
|
|
19
|
+
export interface TileOption {
|
|
20
|
+
value: any;
|
|
21
|
+
label: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
descriptionLong?: string;
|
|
24
|
+
tooltip?: string;
|
|
25
|
+
image?: string;
|
|
26
|
+
}
|
|
27
|
+
export type DateFormat = 'DD/MM/YYYY' | 'MM/YYYY' | 'YYYY' | 'YYYY/MM/DD' | 'YYYY/MM';
|
|
28
|
+
export declare class FileModel {
|
|
29
|
+
name?: string;
|
|
30
|
+
extension?: string;
|
|
31
|
+
src?: string;
|
|
32
|
+
file?: File;
|
|
33
|
+
constructor(raw?: string);
|
|
34
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export class FileModel {
|
|
2
|
+
name;
|
|
3
|
+
extension;
|
|
4
|
+
src;
|
|
5
|
+
file;
|
|
6
|
+
constructor(raw) {
|
|
7
|
+
if (raw) {
|
|
8
|
+
const splitString = raw?.split("/");
|
|
9
|
+
const fileName = splitString[splitString.length - 1];
|
|
10
|
+
this.name = fileName?.match(/^.+(?=\.)/g)?.[0];
|
|
11
|
+
this.extension = fileName?.match(/[^.]+$/g)?.[0];
|
|
12
|
+
this.src = raw;
|
|
13
|
+
} else {
|
|
14
|
+
this.name = void 0;
|
|
15
|
+
this.extension = void 0;
|
|
16
|
+
this.src = void 0;
|
|
17
|
+
}
|
|
18
|
+
this.file = void 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const icons: readonly ["m-cgg-icon--arrow-down", "m-cgg-icon--arrow-left", "m-cgg-icon--arrow-right", "m-cgg-icon--arrow-up", "m-cgg-icon--chevron-down", "m-cgg-icon--chevron-left", "m-cgg-icon--chevron-right", "m-cgg-icon--chevron-up", "m-cgg-icon--change", "m-cgg-icon--swap", "m-cgg-icon--sort", "m-cgg-icon--download", "m-cgg-icon--upload", "m-cgg-icon--check", "m-cgg-icon--check-fill", "m-cgg-icon--cross", "m-cgg-icon--edit-1", "m-cgg-icon--edit-2", "m-cgg-icon--edit-3", "m-cgg-icon--minus", "m-cgg-icon--plus", "m-cgg-icon--info-line", "m-cgg-icon--info-fill", "m-cgg-icon--warning-line", "m-cgg-icon--warning-fill", "m-cgg-icon--question", "m-cgg-icon--star-line", "m-cgg-icon--star-fill", "m-cgg-icon--euro-line", "m-cgg-icon--euro-fill", "m-cgg-icon--hamburger", "m-cgg-icon--reorder", "m-cgg-icon--filters", "m-cgg-icon--categories", "m-cgg-icon--save", "m-cgg-icon--search", "m-cgg-icon--not-found", "m-cgg-icon--link", "m-cgg-icon--copy", "m-cgg-icon--external-link", "m-cgg-icon--user", "m-cgg-icon--settings", "m-cgg-icon--trash", "m-cgg-icon--calendar", "m-cgg-icon--email", "m-cgg-icon--location", "m-cgg-icon--document", "m-cgg-icon--entry", "m-cgg-icon--credit-cards", "m-cgg-icon--eye", "m-cgg-icon--eye-off", "m-cgg-icon--flag", "m-cgg-icon--plane", "m-cgg-icon--electricity", "m-cgg-icon--gas", "m-cgg-icon--green-energy", "m-cgg-icon--heart", "m-cgg-icon--home", "m-cgg-icon--lock", "m-cgg-icon--open-quote", "m-cgg-icon--close-quote", "m-cgg-icon--mobile-phone", "m-cgg-icon--phone-call", "m-cgg-icon--phone", "m-cgg-icon--phone-fill", "m-cgg-icon--sim", "m-cgg-icon--monitor", "m-cgg-icon--wifi", "m-cgg-icon--education", "m-cgg-icon--ribbon", "m-cgg-icon--results", "m-cgg-icon--thumbs-up", "m-cgg-icon--time", "m-cgg-icon--comparaja", "m-cgg-icon--whatsapp", "m-cgg-icon--twitter", "m-cgg-icon--youtube", "m-cgg-icon--tiktok", "m-cgg-icon--telegram", "m-cgg-icon--reddit", "m-cgg-icon--instagram", "m-cgg-icon--linkedin", "m-cgg-icon--facebook"];
|
|
2
|
+
export type Icon = (typeof icons)[number];
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export const icons = [
|
|
2
|
+
"m-cgg-icon--arrow-down",
|
|
3
|
+
"m-cgg-icon--arrow-left",
|
|
4
|
+
"m-cgg-icon--arrow-right",
|
|
5
|
+
"m-cgg-icon--arrow-up",
|
|
6
|
+
"m-cgg-icon--chevron-down",
|
|
7
|
+
"m-cgg-icon--chevron-left",
|
|
8
|
+
"m-cgg-icon--chevron-right",
|
|
9
|
+
"m-cgg-icon--chevron-up",
|
|
10
|
+
"m-cgg-icon--change",
|
|
11
|
+
"m-cgg-icon--swap",
|
|
12
|
+
"m-cgg-icon--sort",
|
|
13
|
+
"m-cgg-icon--download",
|
|
14
|
+
"m-cgg-icon--upload",
|
|
15
|
+
"m-cgg-icon--check",
|
|
16
|
+
"m-cgg-icon--check-fill",
|
|
17
|
+
"m-cgg-icon--cross",
|
|
18
|
+
"m-cgg-icon--edit-1",
|
|
19
|
+
"m-cgg-icon--edit-2",
|
|
20
|
+
"m-cgg-icon--edit-3",
|
|
21
|
+
"m-cgg-icon--minus",
|
|
22
|
+
"m-cgg-icon--plus",
|
|
23
|
+
"m-cgg-icon--info-line",
|
|
24
|
+
"m-cgg-icon--info-fill",
|
|
25
|
+
"m-cgg-icon--warning-line",
|
|
26
|
+
"m-cgg-icon--warning-fill",
|
|
27
|
+
"m-cgg-icon--question",
|
|
28
|
+
"m-cgg-icon--star-line",
|
|
29
|
+
"m-cgg-icon--star-fill",
|
|
30
|
+
"m-cgg-icon--euro-line",
|
|
31
|
+
"m-cgg-icon--euro-fill",
|
|
32
|
+
"m-cgg-icon--hamburger",
|
|
33
|
+
"m-cgg-icon--reorder",
|
|
34
|
+
"m-cgg-icon--filters",
|
|
35
|
+
"m-cgg-icon--categories",
|
|
36
|
+
"m-cgg-icon--save",
|
|
37
|
+
"m-cgg-icon--search",
|
|
38
|
+
"m-cgg-icon--not-found",
|
|
39
|
+
"m-cgg-icon--link",
|
|
40
|
+
"m-cgg-icon--copy",
|
|
41
|
+
"m-cgg-icon--external-link",
|
|
42
|
+
"m-cgg-icon--user",
|
|
43
|
+
"m-cgg-icon--settings",
|
|
44
|
+
"m-cgg-icon--trash",
|
|
45
|
+
"m-cgg-icon--calendar",
|
|
46
|
+
"m-cgg-icon--email",
|
|
47
|
+
"m-cgg-icon--location",
|
|
48
|
+
"m-cgg-icon--document",
|
|
49
|
+
"m-cgg-icon--entry",
|
|
50
|
+
"m-cgg-icon--credit-cards",
|
|
51
|
+
"m-cgg-icon--eye",
|
|
52
|
+
"m-cgg-icon--eye-off",
|
|
53
|
+
"m-cgg-icon--flag",
|
|
54
|
+
"m-cgg-icon--plane",
|
|
55
|
+
"m-cgg-icon--electricity",
|
|
56
|
+
"m-cgg-icon--gas",
|
|
57
|
+
"m-cgg-icon--green-energy",
|
|
58
|
+
"m-cgg-icon--heart",
|
|
59
|
+
"m-cgg-icon--home",
|
|
60
|
+
"m-cgg-icon--lock",
|
|
61
|
+
"m-cgg-icon--open-quote",
|
|
62
|
+
"m-cgg-icon--close-quote",
|
|
63
|
+
"m-cgg-icon--mobile-phone",
|
|
64
|
+
"m-cgg-icon--phone-call",
|
|
65
|
+
"m-cgg-icon--phone",
|
|
66
|
+
"m-cgg-icon--phone-fill",
|
|
67
|
+
"m-cgg-icon--sim",
|
|
68
|
+
"m-cgg-icon--monitor",
|
|
69
|
+
"m-cgg-icon--wifi",
|
|
70
|
+
"m-cgg-icon--education",
|
|
71
|
+
"m-cgg-icon--ribbon",
|
|
72
|
+
"m-cgg-icon--results",
|
|
73
|
+
"m-cgg-icon--thumbs-up",
|
|
74
|
+
"m-cgg-icon--time",
|
|
75
|
+
"m-cgg-icon--comparaja",
|
|
76
|
+
"m-cgg-icon--whatsapp",
|
|
77
|
+
"m-cgg-icon--twitter",
|
|
78
|
+
"m-cgg-icon--youtube",
|
|
79
|
+
"m-cgg-icon--tiktok",
|
|
80
|
+
"m-cgg-icon--telegram",
|
|
81
|
+
"m-cgg-icon--reddit",
|
|
82
|
+
"m-cgg-icon--instagram",
|
|
83
|
+
"m-cgg-icon--linkedin",
|
|
84
|
+
"m-cgg-icon--facebook"
|
|
85
|
+
];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type VerticalCode = 'HL' | 'PL' | 'EN' | 'BB' | 'CI' | 'CC';
|
|
2
|
+
export type JourneyLocation = 'funnel' | 'results' | 'checkout' | 'contact';
|
|
3
|
+
export type StepData = {
|
|
4
|
+
index: number;
|
|
5
|
+
number: number;
|
|
6
|
+
name: string;
|
|
7
|
+
path: string;
|
|
8
|
+
fields: string[];
|
|
9
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useRoute, useRuntimeConfig } from "#imports";
|
|
2
|
+
export const applyProductData = (options) => {
|
|
3
|
+
const { apiURL } = useRuntimeConfig().public;
|
|
4
|
+
const { path } = useRoute();
|
|
5
|
+
return $fetch("/core/apis/data/applyProductData", {
|
|
6
|
+
baseURL: apiURL,
|
|
7
|
+
method: "POST",
|
|
8
|
+
body: {
|
|
9
|
+
path,
|
|
10
|
+
intent: "apply",
|
|
11
|
+
action: options.action || "OPEN_APPLICATION_FORM",
|
|
12
|
+
journeyId: options.journeyId,
|
|
13
|
+
position: options.index,
|
|
14
|
+
offerSelected: options.productName,
|
|
15
|
+
cggId: options.productId,
|
|
16
|
+
providerCggId: options.providerId,
|
|
17
|
+
category: options.category,
|
|
18
|
+
viewId: options.viewId,
|
|
19
|
+
has_been_clicked: true
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const convertDate = (date, format) => {
|
|
2
|
+
const dateObj = new Date(date.split("/").reverse().join("-"));
|
|
3
|
+
switch (format) {
|
|
4
|
+
case "datetime":
|
|
5
|
+
return dateObj;
|
|
6
|
+
case "iso":
|
|
7
|
+
return dateObj.toISOString();
|
|
8
|
+
case "milliseconds":
|
|
9
|
+
return dateObj.getTime();
|
|
10
|
+
case "object":
|
|
11
|
+
return {
|
|
12
|
+
day: dateObj.getDate(),
|
|
13
|
+
month: dateObj.getMonth(),
|
|
14
|
+
year: dateObj.getFullYear()
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const findScrollAncestor: (element: any) => any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const findScrollAncestor = (element) => {
|
|
2
|
+
if (!element) {
|
|
3
|
+
return void 0;
|
|
4
|
+
}
|
|
5
|
+
let parent = element.parentElement;
|
|
6
|
+
while (parent) {
|
|
7
|
+
const { overflowY } = window.getComputedStyle(parent);
|
|
8
|
+
if (overflowY === "auto" || overflowY === "scroll") {
|
|
9
|
+
return parent;
|
|
10
|
+
}
|
|
11
|
+
parent = parent.parentElement;
|
|
12
|
+
}
|
|
13
|
+
return document.documentElement;
|
|
14
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { DateFormat, FileModel } from '../types/Form.js';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
4
|
+
export declare const formValidation: {
|
|
5
|
+
string: (messages: {
|
|
6
|
+
required?: string;
|
|
7
|
+
minLength?: string;
|
|
8
|
+
maxLength?: string;
|
|
9
|
+
}, options?: {
|
|
10
|
+
minLength?: number;
|
|
11
|
+
maxLength?: number;
|
|
12
|
+
}) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
13
|
+
boolean: (messages: {
|
|
14
|
+
required?: string;
|
|
15
|
+
strictValue?: string;
|
|
16
|
+
}, options?: {
|
|
17
|
+
strictValue?: boolean;
|
|
18
|
+
}) => yup.BooleanSchema<boolean | undefined, yup.AnyObject, undefined, "">;
|
|
19
|
+
email: (messages: {
|
|
20
|
+
required?: string;
|
|
21
|
+
email: string;
|
|
22
|
+
}) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
23
|
+
number: (messages: {
|
|
24
|
+
required?: string;
|
|
25
|
+
min?: string;
|
|
26
|
+
max?: string;
|
|
27
|
+
lessThan?: string;
|
|
28
|
+
moreThan?: string;
|
|
29
|
+
}, options?: {
|
|
30
|
+
min?: number;
|
|
31
|
+
max?: number;
|
|
32
|
+
lessThan?: number;
|
|
33
|
+
moreThan?: number;
|
|
34
|
+
}) => yup.NumberSchema<number | undefined, yup.AnyObject, undefined, "">;
|
|
35
|
+
phone: (messages: {
|
|
36
|
+
required?: string;
|
|
37
|
+
phone: string;
|
|
38
|
+
}, options: {
|
|
39
|
+
countryCode: Ref<string>;
|
|
40
|
+
}) => yup.Lazy<string | undefined, yup.AnyObject, any>;
|
|
41
|
+
zipcode: (messages: {
|
|
42
|
+
required?: string;
|
|
43
|
+
zipcode: string;
|
|
44
|
+
}) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
45
|
+
file: (messages: {
|
|
46
|
+
required?: string;
|
|
47
|
+
extension: string;
|
|
48
|
+
size?: string;
|
|
49
|
+
}, options?: {
|
|
50
|
+
extension?: RegExp;
|
|
51
|
+
size?: {
|
|
52
|
+
value: number;
|
|
53
|
+
collectionType: "kb" | "mb";
|
|
54
|
+
};
|
|
55
|
+
}) => yup.ObjectSchema<{}, FileModel, {}, "">;
|
|
56
|
+
date: (messages: {
|
|
57
|
+
required?: string;
|
|
58
|
+
invalid: string;
|
|
59
|
+
minDate?: string;
|
|
60
|
+
maxDate?: string;
|
|
61
|
+
}, options: {
|
|
62
|
+
format: DateFormat;
|
|
63
|
+
maxDate?: Date;
|
|
64
|
+
minDate?: Date;
|
|
65
|
+
}) => yup.DateSchema<Date | undefined, yup.AnyObject, undefined, "">;
|
|
66
|
+
nif: (messages: {
|
|
67
|
+
required?: string;
|
|
68
|
+
invalid: string;
|
|
69
|
+
}) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
70
|
+
array: (messages: {
|
|
71
|
+
required?: string;
|
|
72
|
+
minLength?: string;
|
|
73
|
+
maxLength?: string;
|
|
74
|
+
}, options?: {
|
|
75
|
+
minLength?: number;
|
|
76
|
+
maxLength?: number;
|
|
77
|
+
}) => yup.ArraySchema<any[] | undefined, yup.AnyObject, undefined, "">;
|
|
78
|
+
};
|