mod-build 3.7.0 → 3.7.2-7.beta-5

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 (42) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/gulp-tasks/build.js +4 -4
  3. package/gulp-tasks/clean.js +8 -1
  4. package/gulp-tasks/get-default-trade-questions.js +155 -0
  5. package/gulp-tasks/grab-cdn.js +26 -21
  6. package/gulp-tasks/grab-mhsadmin-data.js +418 -0
  7. package/gulp-tasks/grab-section-deals-components.js +47 -0
  8. package/gulp-tasks/grab-shared-scripts.js +21 -5
  9. package/gulp-tasks/serve.js +5 -5
  10. package/gulp-tasks/tasks.js +36 -3
  11. package/gulp-tasks/templates.js +95 -12
  12. package/package.json +1 -1
  13. package/src/scripts/vendor/heap-addeventproperties-identify.js +1 -1
  14. package/src/scripts/vendor/heap-tracking.js +1 -1
  15. package/src/scripts/vendor/heap-vwo.js +1 -1
  16. package/src/scripts/vendor/visual-website-optimizer.js +7 -8
  17. package/src/templates/_partials/scripts/vwo-redirect-callback.html +20 -0
  18. package/src/trade-questions/alerts_medical.js +111 -0
  19. package/src/trade-questions/bathroom_refacing.js +96 -0
  20. package/src/trade-questions/cabinet_refacing.js +251 -0
  21. package/src/trade-questions/cabinets.js +35 -0
  22. package/src/trade-questions/concrete_foundation.js +57 -0
  23. package/src/trade-questions/door.js +143 -0
  24. package/src/trade-questions/flooring.js +185 -0
  25. package/src/trade-questions/garage_door.js +89 -0
  26. package/src/trade-questions/gutters.js +45 -0
  27. package/src/trade-questions/home_security.js +130 -0
  28. package/src/trade-questions/home_warranty.js +57 -0
  29. package/src/trade-questions/hot_tubs.js +92 -0
  30. package/src/trade-questions/hvac.js +179 -0
  31. package/src/trade-questions/index.js +26 -0
  32. package/src/trade-questions/insulation.js +118 -0
  33. package/src/trade-questions/plumbing.js +260 -0
  34. package/src/trade-questions/roofing.js +118 -0
  35. package/src/trade-questions/siding.js +150 -0
  36. package/src/trade-questions/solar.js +69 -0
  37. package/src/trade-questions/stair_lifts.js +47 -0
  38. package/src/trade-questions/tree_services.js +169 -0
  39. package/src/trade-questions/walk_in_tubs.js +47 -0
  40. package/src/trade-questions/water_treatment.js +48 -0
  41. package/src/trade-questions/windows.js +132 -0
  42. package/src/trade-questions-config.js +139 -0
@@ -0,0 +1,132 @@
1
+ const windows = {
2
+ WindowsProjectScope: {
3
+ fields: [
4
+ {
5
+ legend: {
6
+ text: 'What is the nature of your windows project?'
7
+ },
8
+ options: [
9
+ {
10
+ attributes: {
11
+ name: 'WindowsProjectScope',
12
+ value: 'Install',
13
+ data: {
14
+ required: 'nonempty'
15
+ }
16
+ },
17
+ text: 'Replace'
18
+ },
19
+ {
20
+ attributes: {
21
+ name: 'WindowsProjectScope',
22
+ value: 'Repair',
23
+ data: {
24
+ required: 'nonempty'
25
+ }
26
+ },
27
+ text: 'Repair'
28
+ },
29
+ {
30
+ attributes: {
31
+ name: 'WindowsProjectScope',
32
+ value: 'Install',
33
+ data: {
34
+ required: 'nonempty'
35
+ }
36
+ },
37
+ text: 'Not Sure'
38
+ }
39
+ ]
40
+ }
41
+ ]
42
+ },
43
+ NumberOfWindows: {
44
+ fields: [
45
+ {
46
+ fieldType: 'radio',
47
+ radioOptionType: 'custom',
48
+ legend: {
49
+ text: 'How many windows are involved?'
50
+ },
51
+ options: [
52
+ {
53
+ attributes: {
54
+ name: 'NumberOfWindows',
55
+ value: '6-9',
56
+ data: {
57
+ required: 'nonempty'
58
+ }
59
+ },
60
+ text: '6+'
61
+ },
62
+ {
63
+ attributes: {
64
+ name: 'NumberOfWindows',
65
+ value: '3-5',
66
+ data: {
67
+ required: 'nonempty'
68
+ }
69
+ },
70
+ text: '3-5'
71
+ },
72
+ {
73
+ attributes: {
74
+ name: 'NumberOfWindows',
75
+ value: '2',
76
+ data: {
77
+ required: 'nonempty'
78
+ }
79
+ },
80
+ text: '2'
81
+ },
82
+ {
83
+ attributes: {
84
+ name: 'NumberOfWindows',
85
+ value: '1',
86
+ data: {
87
+ required: 'nonempty'
88
+ }
89
+ },
90
+ text: '1'
91
+ }
92
+ ]
93
+ }
94
+ ],
95
+ extraQuestionBlock: {
96
+ fields: [
97
+ {
98
+ attributes: {
99
+ id: 'MultipleWindows'
100
+ },
101
+ legend: {
102
+ text: 'Would you be open to a quote for Multiple&nbsp;windows? <span class="step__subtitle">(Most contractors in your area only service projects for multiple windows)</span>'
103
+ },
104
+ options: [
105
+ {
106
+ attributes: {
107
+ name: 'MultipleWindows',
108
+ value: 'Yes',
109
+ data: {
110
+ required: 'nonempty'
111
+ }
112
+ },
113
+ text: 'Yes'
114
+ },
115
+ {
116
+ attributes: {
117
+ name: 'MultipleWindows',
118
+ value: 'No',
119
+ data: {
120
+ required: 'nonempty'
121
+ }
122
+ },
123
+ text: 'No'
124
+ }
125
+ ]
126
+ }
127
+ ]
128
+ }
129
+ }
130
+ };
131
+
132
+ module.exports = windows;
@@ -0,0 +1,139 @@
1
+ /* eslint-disable */
2
+ const {
3
+ alerts_medical,
4
+ bathroom_refacing,
5
+ cabinets,
6
+ cabinet_refacing,
7
+ concrete_foundation,
8
+ door,
9
+ flooring,
10
+ garage_door,
11
+ gutters,
12
+ home_security,
13
+ home_warranty,
14
+ hot_tubs,
15
+ hvac,
16
+ insulation,
17
+ plumbing,
18
+ roofing,
19
+ siding,
20
+ solar,
21
+ stair_lifts,
22
+ tree_services,
23
+ walk_in_tubs,
24
+ water_treatment,
25
+ windows
26
+ } = require('./trade-questions');
27
+
28
+ const tradeQuestionsConfig = {
29
+ tradeQuestions: {
30
+ alerts_medical,
31
+ bathroom_refacing,
32
+ cabinets,
33
+ cabinet_refacing,
34
+ concrete_foundation,
35
+ door,
36
+ flooring,
37
+ garage_door,
38
+ gutters,
39
+ home_security,
40
+ home_warranty,
41
+ hot_tubs,
42
+ hvac,
43
+ insulation,
44
+ plumbing,
45
+ roofing,
46
+ siding,
47
+ solar,
48
+ stair_lifts,
49
+ tree_services,
50
+ walk_in_tubs,
51
+ water_treatment,
52
+ windows
53
+ },
54
+ OwnHome: {
55
+ fields: [
56
+ {
57
+ legend: {
58
+ text: 'Do you own your&nbsp;home?'
59
+ },
60
+ options: [
61
+ {
62
+ attributes: {
63
+ name: 'OwnHome',
64
+ value: 'Yes',
65
+ data: {
66
+ required: 'nonempty'
67
+ }
68
+ },
69
+ text: 'Yes'
70
+ },
71
+ {
72
+ attributes: {
73
+ class: 'multiple-lines',
74
+ name: 'OwnHome',
75
+ value: 'Authorized',
76
+ data: {
77
+ required: 'nonempty'
78
+ }
79
+ },
80
+ text: 'No, but I\'m allowed to make changes'
81
+ },
82
+ {
83
+ attributes: {
84
+ name: 'OwnHome',
85
+ value: 'No',
86
+ data: {
87
+ required: 'nonempty'
88
+ }
89
+ },
90
+ text: 'No'
91
+ }
92
+ ]
93
+ }
94
+ ]
95
+ },
96
+ BuyTimeframe: {
97
+ fields: [
98
+ {
99
+ legend: {
100
+ text: 'When do you need to start this&nbsp;project?'
101
+ },
102
+ options: [
103
+ {
104
+ text: 'Immediately',
105
+ attributes: {
106
+ name: 'BuyTimeframe',
107
+ value: 'Immediately',
108
+ data: {
109
+ required: 'nonempty'
110
+ }
111
+ }
112
+ },
113
+ {
114
+ text: 'Within 6 months',
115
+ attributes: {
116
+ name: 'BuyTimeframe',
117
+ value: '4-6 months',
118
+ data: {
119
+ required: 'nonempty'
120
+ }
121
+ }
122
+ },
123
+ {
124
+ text: 'Not Sure',
125
+ attributes: {
126
+ name: 'BuyTimeframe',
127
+ value: 'Don\'t know',
128
+ data: {
129
+ required: 'nonempty'
130
+ }
131
+ }
132
+ }
133
+ ]
134
+ }
135
+ ]
136
+ }
137
+ };
138
+
139
+ module.exports = tradeQuestionsConfig;