mod-build 4.0.41 → 4.0.42-beta-3

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 (33) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +1 -1
  3. package/public/resources/scripts/geolocation/geolocation.min.js +2 -0
  4. package/src/data/trade-questions/alerts_medical.js +109 -0
  5. package/src/data/trade-questions/bathroom_refacing.js +94 -0
  6. package/src/data/trade-questions/cabinet_refacing.js +249 -0
  7. package/src/data/trade-questions/cabinets.js +34 -0
  8. package/src/data/trade-questions/concrete_foundation.js +55 -0
  9. package/src/data/trade-questions/door.js +141 -0
  10. package/src/data/trade-questions/flooring.js +184 -0
  11. package/src/data/trade-questions/garage_door.js +87 -0
  12. package/src/data/trade-questions/gutters.js +44 -0
  13. package/src/data/trade-questions/home_security.js +129 -0
  14. package/src/data/trade-questions/home_warranty.js +55 -0
  15. package/src/data/trade-questions/hot_tubs.js +90 -0
  16. package/src/data/trade-questions/hvac.js +174 -0
  17. package/src/data/trade-questions/index.js +23 -0
  18. package/src/data/trade-questions/insulation.js +116 -0
  19. package/src/data/trade-questions/plumbing.js +258 -0
  20. package/src/data/trade-questions/roofing.js +116 -0
  21. package/src/data/trade-questions/siding.js +145 -0
  22. package/src/data/trade-questions/solar.js +67 -0
  23. package/src/data/trade-questions/stair_lifts.js +45 -0
  24. package/src/data/trade-questions/tree_services.js +159 -0
  25. package/src/data/trade-questions/walk_in_tubs.js +45 -0
  26. package/src/data/trade-questions/water_treatment.js +44 -0
  27. package/src/data/trade-questions/windows.js +130 -0
  28. package/src/data/trade-questions-config.js +137 -0
  29. package/src/resources/templates/modals/e-sign-consent/index.hbs +35 -0
  30. package/src/resources/templates/modals/e-sign-consent/index.html +35 -0
  31. package/tasks/get-default-trade-questions.js +153 -0
  32. package/tasks/serve.js +2 -0
  33. package/vite.config.js +3 -0
@@ -0,0 +1,145 @@
1
+ export const siding = {
2
+ ProjectPlan: {
3
+ fields: [
4
+ {
5
+ legend: {
6
+ text: 'What type of service do you need?'
7
+ },
8
+ options: [
9
+ {
10
+ text: 'Replace',
11
+ attributes: {
12
+ name: 'ProjectPlan',
13
+ value: 'Replace existing siding',
14
+ checked: '',
15
+ data: {
16
+ required: 'nonempty'
17
+ }
18
+ }
19
+ },
20
+ {
21
+ text: 'Repair',
22
+ attributes: {
23
+ name: 'ProjectPlan',
24
+ value: 'Repair section(s) of siding',
25
+ data: {
26
+ required: 'nonempty'
27
+ }
28
+ }
29
+ }
30
+ ]
31
+ }
32
+ ]
33
+ },
34
+ ProductService: {
35
+ fields: [
36
+ {
37
+ legend: {
38
+ text: 'What type of siding are you looking for?'
39
+ },
40
+ options: [
41
+ {
42
+ text: 'Vinyl',
43
+ attributes: {
44
+ name: 'ProductService',
45
+ value: 'SIDING_VINYL',
46
+ checked: '',
47
+ data: {
48
+ required: 'nonempty'
49
+ }
50
+ }
51
+ },
52
+ {
53
+ text: 'Fiber cement',
54
+ attributes: {
55
+ name: 'ProductService',
56
+ value: 'SIDING_COMPOSITE_WOOD',
57
+ data: {
58
+ required: 'nonempty'
59
+ }
60
+ }
61
+ },
62
+ {
63
+ text: 'Aluminum',
64
+ attributes: {
65
+ name: 'ProductService',
66
+ value: 'SIDING_ALUMINIUM',
67
+ data: {
68
+ required: 'nonempty'
69
+ }
70
+ }
71
+ },
72
+ {
73
+ text: 'Brickface',
74
+ attributes: {
75
+ name: 'ProductService',
76
+ value: 'SIDING_BRICKFACE',
77
+ data: {
78
+ required: 'nonempty'
79
+ }
80
+ }
81
+ },
82
+ {
83
+ text: 'Stoneface',
84
+ attributes: {
85
+ name: 'ProductService',
86
+ value: 'SIDING_STONEFACE',
87
+ data: {
88
+ required: 'nonempty'
89
+ }
90
+ }
91
+ },
92
+ {
93
+ text: 'Stucco',
94
+ attributes: {
95
+ name: 'ProductService',
96
+ value: 'STUCCO_EXTERIOR',
97
+ data: {
98
+ required: 'nonempty'
99
+ }
100
+ }
101
+ }
102
+ ]
103
+ }
104
+ ]
105
+ },
106
+ stories: {
107
+ fields: [
108
+ {
109
+ legend: {
110
+ text: 'How many stories is your home?'
111
+ },
112
+ options: [
113
+ {
114
+ attributes: {
115
+ value: 'One story',
116
+ checked: '',
117
+ data: {
118
+ required: 'nonempty'
119
+ }
120
+ },
121
+ text: 'One story'
122
+ },
123
+ {
124
+ attributes: {
125
+ value: 'Two story',
126
+ data: {
127
+ required: 'nonempty'
128
+ }
129
+ },
130
+ text: 'Two story'
131
+ },
132
+ {
133
+ attributes: {
134
+ value: 'Three stories or more',
135
+ data: {
136
+ required: 'nonempty'
137
+ }
138
+ },
139
+ text: 'Three stories or more'
140
+ }
141
+ ]
142
+ }
143
+ ]
144
+ }
145
+ };
@@ -0,0 +1,67 @@
1
+ export const solar = {
2
+ ElectricBill: {
3
+ fields: [
4
+ {
5
+ legend: {
6
+ text: 'What\'s your monthly electric bill?'
7
+ },
8
+ options: [
9
+ {
10
+ text: '$300+',
11
+ attributes: {
12
+ name: 'ElectricBill',
13
+ value: '$300+',
14
+ data: {
15
+ required: 'nonempty'
16
+ }
17
+ }
18
+ },
19
+ {
20
+ text: '$200 - $300',
21
+ attributes: {
22
+ name: 'ElectricBill',
23
+ value: '$200 - $300',
24
+ checked: '',
25
+ data: {
26
+ required: 'nonempty'
27
+ }
28
+ }
29
+ },
30
+ {
31
+ text: '$100 - $200',
32
+ attributes: {
33
+ name: 'ElectricBill',
34
+ value: '$100 - $200',
35
+ data: {
36
+ required: 'nonempty'
37
+ }
38
+ }
39
+ },
40
+ {
41
+ text: 'Under $100',
42
+ attributes: {
43
+ name: 'ElectricBill',
44
+ value: 'Under $100',
45
+ data: {
46
+ required: 'nonempty'
47
+ }
48
+ }
49
+ }
50
+ ]
51
+ }
52
+ ]
53
+ },
54
+ UtilityProvider: {
55
+ fields: [
56
+ {
57
+ fieldType: 'select',
58
+ errorMessage: 'Please select a provider.',
59
+ attributes: {
60
+ data: {
61
+ required: 'nonempty'
62
+ }
63
+ }
64
+ }
65
+ ]
66
+ }
67
+ };
@@ -0,0 +1,45 @@
1
+ /* eslint-disable */
2
+ export const stair_lifts = {
3
+ ReasonForStairLift: {
4
+ fields: [
5
+ {
6
+ legend: {
7
+ text: 'Why are you considering a stair lift?'
8
+ },
9
+ options: [
10
+ {
11
+ attributes: {
12
+ name: 'ReasonForStairLift',
13
+ value: 'Safety',
14
+ checked: '',
15
+ data: {
16
+ required: 'nonempty'
17
+ }
18
+ },
19
+ text: 'Safety'
20
+ },
21
+ {
22
+ attributes: {
23
+ name: 'ReasonForStairLift',
24
+ value: 'Mobility',
25
+ data: {
26
+ required: 'nonempty'
27
+ }
28
+ },
29
+ text: 'Mobility'
30
+ },
31
+ {
32
+ attributes: {
33
+ name: 'ReasonForStairLift',
34
+ value: 'Other',
35
+ data: {
36
+ required: 'nonempty'
37
+ }
38
+ },
39
+ text: 'Other'
40
+ },
41
+ ]
42
+ }
43
+ ]
44
+ }
45
+ };
@@ -0,0 +1,159 @@
1
+ /* eslint-disable */
2
+ export const tree_services = {
3
+ JobType: {
4
+ fields: [
5
+ {
6
+ legend: {
7
+ text: 'Which tree service do you need?'
8
+ },
9
+ options: [
10
+ {
11
+ text: 'Tree Removal',
12
+ attributes: {
13
+ name: 'JobType',
14
+ value: 'Tree Removal',
15
+
16
+ }
17
+ },
18
+ {
19
+ text: 'Tree Trimming',
20
+ attributes: {
21
+ name: 'JobType',
22
+ value: 'Tree Trimming',
23
+
24
+ }
25
+ },
26
+ {
27
+ text: 'Stump Removal',
28
+ attributes: {
29
+ name: 'JobType',
30
+ value: 'Stump Removal',
31
+
32
+ }
33
+ },
34
+ {
35
+ text: 'Other',
36
+ attributes: {
37
+ name: 'JobType',
38
+ value: 'Other',
39
+
40
+ }
41
+ }
42
+ ]
43
+ }
44
+ ]
45
+ },
46
+ NumberOfTrees: {
47
+ fields: [
48
+ {
49
+ legend: {
50
+ text: 'How many trees/stumps are involved?'
51
+ },
52
+ options: [
53
+ {
54
+ text: '1',
55
+ attributes: {
56
+ name: 'NumberOfTrees',
57
+ value: '1',
58
+ data: {
59
+ required: 'nonempty'
60
+ }
61
+ }
62
+ },
63
+ {
64
+ text: '2',
65
+ attributes: {
66
+ name: 'NumberOfTrees',
67
+ value: '2',
68
+ data: {
69
+ required: 'nonempty'
70
+ }
71
+ }
72
+ },
73
+ {
74
+ text: '3',
75
+ attributes: {
76
+ name: 'NumberOfTrees',
77
+ value: '3',
78
+ data: {
79
+ required: 'nonempty'
80
+ }
81
+ }
82
+ },
83
+ {
84
+ text: '4+',
85
+
86
+ attributes: {
87
+ name: 'NumberOfTrees',
88
+ value: '4+',
89
+ data: {
90
+ required: 'nonempty'
91
+ }
92
+ }
93
+ }
94
+ ]
95
+ }
96
+ ]
97
+ },
98
+ TreeSize: {
99
+ fields: [
100
+ {
101
+ legend: {
102
+ text: 'What are the tree sizes?'
103
+ },
104
+ options: [
105
+ {
106
+ text: '<1 Story',
107
+ attributes: {
108
+ name: 'TreeSize',
109
+ value: '<1 story',
110
+ data: {
111
+ required: 'nonempty'
112
+ }
113
+ }
114
+ },
115
+ {
116
+ text: '1 Story',
117
+ attributes: {
118
+ name: 'TreeSize',
119
+ value: '1 story',
120
+ data: {
121
+ required: 'nonempty'
122
+ }
123
+ }
124
+ },
125
+ {
126
+ text: '2 Stories',
127
+ attributes: {
128
+ name: 'TreeSize',
129
+ value: '2 stories',
130
+ data: {
131
+ required: 'nonempty'
132
+ }
133
+ }
134
+ },
135
+ {
136
+ text: '3 Stories',
137
+ attributes: {
138
+ name: 'TreeSize',
139
+ value: '3 stories',
140
+ data: {
141
+ required: 'nonempty'
142
+ }
143
+ }
144
+ },
145
+ {
146
+ text: 'Mix of Sizes',
147
+ attributes: {
148
+ name: 'TreeSize',
149
+ value: 'mix of sizes',
150
+ data: {
151
+ required: 'nonempty'
152
+ }
153
+ }
154
+ }
155
+ ]
156
+ }
157
+ ]
158
+ }
159
+ };
@@ -0,0 +1,45 @@
1
+ /* eslint-disable */
2
+ export const walk_in_tubs = {
3
+ Interest: {
4
+ fields: [
5
+ {
6
+ legend: {
7
+ text: 'What\'s the biggest reason you are considering&nbsp;a walk-in tub?'
8
+ },
9
+ options: [
10
+ {
11
+ text: 'For Safety',
12
+ attributes: {
13
+ name: 'Interest',
14
+ value: 'Safety',
15
+ checked: '',
16
+ data: {
17
+ required: 'nonempty'
18
+ }
19
+ }
20
+ },
21
+ {
22
+ text: 'For Therapeutic Reasons',
23
+ attributes: {
24
+ name: 'Interest',
25
+ value: 'Therapeutic',
26
+ data: {
27
+ required: 'nonempty'
28
+ }
29
+ }
30
+ },
31
+ {
32
+ text: 'Other Reasons',
33
+ attributes: {
34
+ name: 'Interest',
35
+ value: 'Other',
36
+ data: {
37
+ required: 'nonempty'
38
+ }
39
+ }
40
+ }
41
+ ]
42
+ }
43
+ ]
44
+ }
45
+ };
@@ -0,0 +1,44 @@
1
+
2
+ /* eslint-disable */
3
+ export const water_treatment = {
4
+ fields: [
5
+ {
6
+ legend: {
7
+ text: 'What type of water do&nbsp;you have?'
8
+ },
9
+ options: [
10
+ {
11
+ attributes: {
12
+ name: 'ServiceType',
13
+ value: 'CITY_WATER',
14
+ checked: '',
15
+ data: {
16
+ required: 'nonempty'
17
+ }
18
+ },
19
+ text: 'City Water'
20
+ },
21
+ {
22
+ attributes: {
23
+ name: 'ServiceType',
24
+ value: 'WELL_WATER',
25
+ data: {
26
+ required: 'nonempty'
27
+ }
28
+ },
29
+ text: 'Well Water'
30
+ },
31
+ {
32
+ attributes: {
33
+ name: 'ServiceType',
34
+ value: 'UNSURE',
35
+ data: {
36
+ required: 'nonempty'
37
+ }
38
+ },
39
+ text: 'Unsure'
40
+ }
41
+ ]
42
+ }
43
+ ]
44
+ };
@@ -0,0 +1,130 @@
1
+ export const windows = {
2
+ WindowsProjectScope: {
3
+ fields: [
4
+ {
5
+ legend: {
6
+ text: 'What is the nature of your&nbsp;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&nbsp;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&nbsp;Multiple 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
+ };