mod-build 4.0.102 → 4.0.104

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 (75) hide show
  1. package/CHANGELOG.md +7 -2
  2. package/package.json +1 -1
  3. package/src/scripts/globals.js +1 -3
  4. package/src/scripts/plugins.js +0 -3
  5. package/tasks/templates.js +2 -4
  6. package/gulp-tasks/add-path-subdirectories.js +0 -34
  7. package/gulp-tasks/build-stat.js +0 -9
  8. package/gulp-tasks/build.js +0 -28
  9. package/gulp-tasks/cache-bust.js +0 -19
  10. package/gulp-tasks/check-seasonal-variations.js +0 -21
  11. package/gulp-tasks/clean.js +0 -10
  12. package/gulp-tasks/combine-files.js +0 -7
  13. package/gulp-tasks/compile.js +0 -44
  14. package/gulp-tasks/copy-files-to-build-path.js +0 -8
  15. package/gulp-tasks/copy-fonts.js +0 -6
  16. package/gulp-tasks/copy-json.js +0 -6
  17. package/gulp-tasks/copy-resources-to-dist.js +0 -6
  18. package/gulp-tasks/copy-videos.js +0 -6
  19. package/gulp-tasks/extras.js +0 -22
  20. package/gulp-tasks/grab-cdn.js +0 -74
  21. package/gulp-tasks/grab-form-helpers.js +0 -55
  22. package/gulp-tasks/grab-global-images.js +0 -121
  23. package/gulp-tasks/grab-images.js +0 -79
  24. package/gulp-tasks/grab-shared-components.js +0 -46
  25. package/gulp-tasks/grab-shared-scripts.js +0 -275
  26. package/gulp-tasks/grab-theme-json.js +0 -24
  27. package/gulp-tasks/grab-tooltips-json.js +0 -33
  28. package/gulp-tasks/js-lint-husky.js +0 -35
  29. package/gulp-tasks/js-lint.js +0 -24
  30. package/gulp-tasks/minify.js +0 -131
  31. package/gulp-tasks/sass-lint.js +0 -15
  32. package/gulp-tasks/serve.js +0 -74
  33. package/gulp-tasks/settings.js +0 -22
  34. package/gulp-tasks/styles.js +0 -42
  35. package/gulp-tasks/tasks.js +0 -475
  36. package/gulp-tasks/templates.js +0 -288
  37. package/src/data/footer.js +0 -119
  38. package/src/resources/data/tcpa.json +0 -4
  39. package/src/resources/templates/modals/about/index.hbs +0 -9
  40. package/src/resources/templates/modals/about/index.html +0 -9
  41. package/src/resources/templates/modals/contact-us/index.hbs +0 -348
  42. package/src/resources/templates/modals/contact-us/index.html +0 -348
  43. package/src/resources/templates/modals/e-sign-consent/index.hbs +0 -35
  44. package/src/resources/templates/modals/e-sign-consent/index.html +0 -35
  45. package/src/resources/templates/modals/faq/index.hbs +0 -9
  46. package/src/resources/templates/modals/faq/index.html +0 -9
  47. package/src/resources/templates/modals/privacy/index.hbs +0 -238
  48. package/src/resources/templates/modals/privacy/index.html +0 -238
  49. package/src/resources/templates/modals/terms/index.hbs +0 -166
  50. package/src/resources/templates/modals/terms/index.html +0 -166
  51. package/src/scripts/default/additional-assets.js +0 -60
  52. package/src/scripts/default/rage-clicking.js +0 -54
  53. package/src/scripts/default/show-utility-providers.js +0 -28
  54. package/src/scripts/url-cleaner.js +0 -8
  55. package/src/scripts/vendor/google-tag-manager-head.js +0 -6
  56. package/src/scripts/vendor/heap-addeventproperties-identify.js +0 -262
  57. package/src/scripts/vendor/heap-tracking.js +0 -9
  58. package/src/styles/partials/_contact-us.scss +0 -196
  59. package/src/styles/partials/_google-address-autocomplete.scss +0 -52
  60. package/src/styles/partials/_mixins.scss +0 -39
  61. package/src/styles/partials/_modal-pages.scss +0 -125
  62. package/src/styles/partials/_modernize-colors.scss +0 -128
  63. package/src/styles/partials/_qs-footer.scss +0 -68
  64. package/src/styles/partials/_quote-footer-v1.scss +0 -79
  65. package/src/styles/partials/_quote-footer-v2.scss +0 -64
  66. package/src/styles/partials/_quote-footer-v3.scss +0 -65
  67. package/src/templates/_partials/scripts/deferred-styles.html +0 -16
  68. package/src/templates/_partials/scripts/heap-bundle.html +0 -5
  69. package/src/templates/_partials/scripts/heap.html +0 -4
  70. package/src/templates/_partials/scripts/utm-params.html +0 -9
  71. package/src/templates/components/qs-footer.html +0 -55
  72. package/src/templates/components/quote-footer-v1.html +0 -148
  73. package/src/templates/components/quote-footer-v2.html +0 -169
  74. /package/tasks/{addSeasonalchanges.js → add-seasonal-changes.js} +0 -0
  75. /package/tasks/{setupDevOpsTrackingId.js → setup-dev-ops-tracking-id.js} +0 -0
@@ -1,348 +0,0 @@
1
- <div class="contact-us">
2
- <div class="contact-us__container">
3
- <form class="contact-us__form">
4
- <div class="step step--active" aria-hidden="false" tabindex="-1" aria-labelledby="contact-step-one-header">
5
- <span id="contact-step-one-header" class="visually-hidden">Step 1: Select the radio button option that suits your inquiry.</span>
6
- <div class="step__header">
7
- <p class="step__header-number">
8
- Step 1
9
- </p>
10
- <p class="step__header-text">
11
- Select an option that suits your inquiry
12
- </p>
13
- </div>
14
- <div class="step__content">
15
- <div class="step__content-item">
16
- <picture>
17
- <source srcset="https://modernize.com/quote/resources/assets/images/illustrations/misc/handshake.webp" type="image/webp">
18
- <img class="step__image" src="https://modernize.com/quote/resources/assets/images/illustrations/misc/handshake.jpg" alt="">
19
- </picture>
20
- <div class="step__fieldset">
21
- <fieldset>
22
- <legend>Partnerships</legend>
23
- <div class="field">
24
- <input type="radio" name="topic" value="SF_partnerships" id="SF_partnerships">
25
- <label for="SF_partnerships">Publisher/Media Partnership</label>
26
- </div>
27
- <div class="field">
28
- <input type="radio" name="topic" value="SF_advertisers" id="SF_advertisers">
29
- <label for="SF_advertisers">Advertisers</label>
30
- </div>
31
- </fieldset>
32
- </div>
33
- </div>
34
- <div class="step__content-item">
35
- <picture>
36
- <source srcset="https://modernize.com/quote/resources/assets/images/illustrations/misc/presentation.webp" type="image/webp">
37
- <img class="step__image" src="https://modernize.com/quote/resources/assets/images/illustrations/misc/presentation.jpg" alt="">
38
- </picture>
39
- <div class="step__fieldset">
40
- <fieldset>
41
- <legend>Website Content, Data, Technical Issues</legend>
42
- <div class="field">
43
- <input type="radio" name="topic" value="reprint-permissions" id="reprint-permissions">
44
- <label for="reprint-permissions">Reprint Permissions</label>
45
- </div>
46
- <div class="field">
47
- <input type="radio" name="topic" value="technical-site-issue" id="technical-site-issue">
48
- <label for="technical-site-issue">Technical Issues with Website</label>
49
- </div>
50
- </fieldset>
51
- </div>
52
- </div>
53
- <div class="step__content-item">
54
- <picture>
55
- <source srcset="https://modernize.com/quote/resources/assets/images/illustrations/misc/man-on-couch.webp" type="image/webp">
56
- <img class="step__image" src="https://modernize.com/quote/resources/assets/images/illustrations/misc/man-on-couch.jpg" alt="">
57
- </picture>
58
- <div class="step__fieldset">
59
- <fieldset>
60
- <legend>Unsubscribe Requests</legend>
61
- <div class="field">
62
- <input type="radio" name="topic" value="email-opt-out" id="email-opt-out">
63
- <label for="email-opt-out">Consumer Email Unsubscribe</label>
64
- </div>
65
- <div class="field">
66
- <input type="radio" name="topic" value="phone-opt-out" id="phone-opt-out">
67
- <label for="phone-opt-out">Consumer Phone Calls/Text Message Unsubscribe</label>
68
- </div>
69
- <div class="field">
70
- <input type="radio" name="topic" value="general-inquiry" id="general-inquiry">
71
- <label for="general-inquiry">Other Consumer Issues</label>
72
- </div>
73
- </fieldset>
74
- </div>
75
- <ul class="step__list">
76
- <li>
77
- <a href="https://privacy-central.securiti.ai/#/dsr/edc7a01c-b34c-43d4-8da8-127895e8bd71" target="_parent">California - Request to Know</a>
78
- <a href="tel:8448727854">(844) 872-7854</a>
79
- </li>
80
- <li>
81
- <a href="https://privacy-central.securiti.ai/#/dsr/edc7a01c-b34c-43d4-8da8-127895e8bd71" target="_parent">California - Request to Delete</a>
82
- </li>
83
- </ul>
84
- </div>
85
- </div>
86
- </div>
87
- <div class="step" aria-hidden="true" tabindex="-1" aria-labelledby="contact-step-two-header">
88
- <span id="contact-step-two-header" class="visually-hidden">Step 2: Submit your contact info and we'll address your request ASAP. Press tab to begin entering your information.</span>
89
- <div class="step__header">
90
- <p class="step__header-number">
91
- Step 2
92
- </p>
93
- <p class="step__header-text">
94
- Submit your contact info and we'll address your request ASAP
95
- </p>
96
- </div>
97
- <div class="step__content">
98
- <div class="step__error"></div>
99
- <div class="form-group parent-error">
100
- <label for="contact-name">Name</label>
101
- <input class="form-control" type="text" name="name" id="contact-name">
102
- <span class="step__error-message" id="error-contact-name">Please enter your name.</span>
103
- </div>
104
- <div class="form-group parent-error">
105
- <label for="contact-phone">Phone</label>
106
- <input class="form-control" type="tel" name="phone" id="contact-phone">
107
- <span class="step__error-message" id="error-contact-phone">Please enter a valid phone number.</span>
108
- </div>
109
- <div class="form-group parent-error">
110
- <label for="contact-email">Email</label>
111
- <input class="form-control" type="email" name="email" id="contact-email">
112
- <span class="step__error-message" id="error-contact-email">Please enter a valid email address.</span>
113
- </div>
114
- <div class="form-group parent-error">
115
- <label for="contact-message">Message</label>
116
- <textarea class="form-control" name="message" id="contact-message"></textarea>
117
- <span class="step__error-message" id="error-contact-message">Please enter your message.</span>
118
- </div>
119
- <div>
120
- <input type="hidden" name="domain" value="{{domain}}">
121
- <input type="hidden" name="date">
122
- <input type="hidden" name="time">
123
- <input type="hidden" name="vertical" value="HomeServices">
124
- <input type="hidden" name="g-recaptcha-response" value="">
125
- </div>
126
- </div>
127
- <div class="captcha-container captcha-body">
128
- <div class="g-recaptcha" data-callback="captcha_submit" data-sitekey="6LcsGEkUAAAAAHekw-AS_6Vcu_WeYk7LiPJB1mrR"></div>
129
- </div>
130
- <div class="form-controls">
131
- <button class="btn btn-secondary btn-back" type="button" aria-label="Back"></button>
132
- <button class="btn btn-submit" type="submit">
133
- <span class="btn__text">Submit</span>
134
- <span class="btn__spinner"></span>
135
- </button>
136
- </div>
137
- </div>
138
- </form>
139
- <div class="contact-us__thankyou" aria-hidden="true" tabindex="-1" aria-labelledby="contact-success-header">
140
- <span id="contact-success-header" class="visually-hidden"> Thank you. We'll address your request as soon as possible.</span>
141
- <picture>
142
- <source srcset="https://modernize.com/quote/resources/assets/images/illustrations/misc/laptop.webp" type="image/webp">
143
- <img class="contact-us__thankyou-img" src="https://modernize.com/quote/resources/assets/images/illustrations/misc/laptop.jpg" alt="">
144
- </picture>
145
- <p class="contact-us__thankyou-title">Thank You!</p>
146
- <p class="contact-us__thankyou-subtitle">We'll address your request as soon as possible.</p>
147
- </div>
148
- </div>
149
- </div>
150
- <script src="https://www.google.com/recaptcha/api.js"></script>
151
- <script>
152
- window.captcha_submit = function(response) {
153
- document.querySelector('input[name="g-recaptcha-response"]').value = response;
154
- }
155
- </script>
156
-
157
- <script>
158
- var contactUs = {
159
- $modal: document.getElementById('info-modal'),
160
- $form: document.querySelector('.contact-us__form'),
161
- $thankyou: document.querySelector('.contact-us__thankyou'),
162
- url: 'https://contact.formfetch.com/v2_submit',
163
- getFormData: function() {
164
- const date = new Date();
165
- const data = {};
166
- const inputs = this.$form.elements;
167
- if (inputs) {
168
- for (let i = 0; i < inputs.length; i++) {
169
- const input = inputs[i];
170
- if (input.name) {
171
- data[input.name] = input.value;
172
- }
173
- }
174
- }
175
-
176
- data.time = date.toLocaleTimeString();
177
- data.date = date.toLocaleDateString();
178
- return data;
179
- },
180
- validateData: function(data) {
181
- const _this = this;
182
- var isFormValid = true;
183
- const emailPattern = /^([\w\+-]+(?:\.[\w\+-]+)*)(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)/i;
184
-
185
- Object.keys(data).forEach(function(key) {
186
- var isValid = true;
187
- const value = data[key];
188
- switch (key) {
189
- case 'email':
190
- isValid = emailPattern.test(value);
191
- break;
192
- default:
193
- isValid = value !== '';
194
- break;
195
- }
196
-
197
- if (!isValid) {
198
- _this.markFieldAsInvalid(key);
199
- _this.focusOnFirstError();
200
- isFormValid = false;
201
- }
202
- });
203
-
204
- return isFormValid;
205
- },
206
- focusOnFirstError: function() {
207
- const $error = this.$form.querySelectorAll('.has-error');
208
-
209
- if ($error.length > 0) {
210
- const firstError = $error[0];
211
- const $field = firstError.querySelector('input[type="text"], input[type="tel"], input[type="email"], textarea');
212
- if ($field) {
213
- $field.focus();
214
- }
215
- }
216
- },
217
- markFieldAsInvalid: function(fieldName) {
218
- const $invalidField = this.$form.querySelector('#contact-' + fieldName);
219
- if ($invalidField) {
220
- $invalidField.parentElement.classList.add('has-error');
221
- }
222
-
223
- const $field = this.$form.querySelector('input[name="' + fieldName + '"]');
224
- if ($field) {
225
- $field.setAttribute('aria-invalid', 'true');
226
- $field.setAttribute('aria-describedby', 'error-contact' + fieldName);
227
- }
228
- },
229
- submit: function() {
230
- this.$form.classList.add('form--loading');
231
-
232
- const _this = this;
233
- const data = this.getFormData();
234
- const isFormValid = this.validateData(data);
235
- const formData = Object.keys(data).map(function(key) {
236
- return encodeURIComponent(key) + '=' + encodeURIComponent(data[key]).replace(/%20/g, '+');
237
- }).join('&');
238
-
239
- if (isFormValid) {
240
- // Submit Form
241
- var request = new XMLHttpRequest();
242
- request.onreadystatechange = function() {
243
- if (request.readyState === 4) {
244
- if (request.status === 200) {
245
- var response = JSON.parse(request.responseText);
246
- if (response.success) {
247
- _this.$form.style.display = 'none';
248
- _this.$thankyou.style.display = 'block';
249
- } else {
250
- _this.$form.classList.remove('form--loading');
251
- document.querySelector('.step__error').innerHTML = response.message;
252
- }
253
- } else {
254
- console.error('Request failed with status:', request.status);
255
- }
256
- }
257
- };
258
-
259
- request.open('POST', _this.url, true);
260
- request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
261
- request.send(formData);
262
- } else {
263
- _this.$form.classList.remove('form--loading');
264
- }
265
- },
266
- changeStep: function(direction) {
267
- const $activeStep = this.$form.querySelector('.step--active');
268
- const $nextStep = $activeStep.nextElementSibling;
269
- const $prevStep = $activeStep.previousElementSibling;
270
-
271
- $activeStep.classList.remove('step--active');
272
- $activeStep.setAttribute('aria-hidden', 'true');
273
- if (direction === 'next') {
274
- $nextStep.classList.add('step--active');
275
- $nextStep.setAttribute('aria-hidden', 'false');
276
- $nextStep.focus();
277
- } else {
278
- $prevStep.classList.add('step--active');
279
- $prevStep.setAttribute('aria-hidden', 'false');
280
- $prevStep.focus();
281
- }
282
- },
283
- watch: function() {
284
- const _this = this;
285
- var radioChangedWithMouse = false;
286
-
287
- // Watch form submission
288
- _this.$form.addEventListener('submit', function(e) {
289
- e.preventDefault();
290
- if (!_this.$form.classList.contains('form--loading')) {
291
- _this.submit();
292
- }
293
- });
294
-
295
- // Watch radio click with mouse only
296
- const $radioLabelsAndInputs = _this.$form.querySelectorAll('fieldset label, input[type="radio"]');
297
- $radioLabelsAndInputs.forEach(function(input) {
298
- input.addEventListener('mouseup', function() {
299
- radioChangedWithMouse = true;
300
- });
301
- })
302
-
303
- const $radioInputs = _this.$form.querySelectorAll('input[type="radio"]');
304
- $radioInputs.forEach(function(input) {
305
- input.addEventListener('click', function(e) {
306
- if (radioChangedWithMouse) {
307
- _this.changeStep('next');
308
- radioChangedWithMouse = false;
309
- }
310
- });
311
- input.addEventListener('keypress', function(e) {
312
- if(e.which == 13){
313
- e.preventDefault();
314
- _this.changeStep('next');
315
-
316
- // Making sure radio button is actually selected on Enter
317
- var focused = e.target;
318
- if (!focused.checked) {
319
- focused.checked = true;
320
- }
321
- }
322
- })
323
- });
324
-
325
- // Watch back button
326
- const $backBtn = _this.$form.querySelector('.btn-back');
327
- if ($backBtn) {
328
- $backBtn.addEventListener('click', function() {
329
- _this.changeStep('prev');
330
- });
331
- }
332
-
333
- // Remove error state when input/textarea changes
334
- const $formInputs = _this.$form.querySelectorAll('input, textarea');
335
- $formInputs.forEach(function(input) {
336
- input.addEventListener('change', function() {
337
- input.parentElement.classList.remove('has-error');
338
- input.setAttribute('aria-invalid', 'false');
339
- input.removeAttribute('aria-describedby');
340
- });
341
- });
342
- },
343
- init: function() {
344
- this.watch();
345
- }
346
- };
347
- contactUs.init();
348
- </script>