mod-build 3.6.71 → 4.0.0-alpha.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 (149) hide show
  1. package/.eslintignore +3 -0
  2. package/.eslintrc +18 -0
  3. package/CHANGELOG.md +2 -240
  4. package/README.md +16 -263
  5. package/gulp-tasks/build.js +1 -1
  6. package/package.json +21 -69
  7. package/siteconfig.js +38 -0
  8. package/src/accessible-components/button/_button.scss +195 -0
  9. package/src/accessible-components/button/back-button.html +4 -0
  10. package/src/accessible-components/button/button.html +17 -0
  11. package/src/accessible-components/carousel/_carousel.scss +112 -0
  12. package/src/accessible-components/carousel/carousel.html +25 -0
  13. package/src/accessible-components/checkbox/_checkbox.scss +96 -0
  14. package/src/accessible-components/checkbox/checkbox.html +8 -0
  15. package/src/accessible-components/expand-collapse/_expand-collapse.scss +122 -0
  16. package/src/accessible-components/expand-collapse/expand-collapse.html +8 -0
  17. package/src/accessible-components/expand-collapse/expand-collapse.js +52 -0
  18. package/src/accessible-components/expand-collapse/expand-collapse.min.js +2 -0
  19. package/src/accessible-components/expand-collapse/expand-collapse.min.js.map +1 -0
  20. package/src/accessible-components/featured-block/_featured-block.scss +219 -0
  21. package/src/accessible-components/featured-block/featured-block.html +54 -0
  22. package/src/accessible-components/foot-assets/foot-assets.html +92 -0
  23. package/src/accessible-components/footer/footer.html +2 -0
  24. package/src/{templates/_partials/scripts/gtm-editorials/body/google-tag-manager-body.html → accessible-components/gtm-body/gtm-body.html} +1 -2
  25. package/src/accessible-components/head/head.html +188 -0
  26. package/src/accessible-components/header/_header.scss +289 -0
  27. package/src/accessible-components/header/header.html +66 -0
  28. package/src/accessible-components/hero/_hero.scss +371 -0
  29. package/src/accessible-components/hero/hero.html +53 -0
  30. package/src/accessible-components/how-it-works/_how-it-works.scss +217 -0
  31. package/src/accessible-components/how-it-works/how-it-works-carousel.html +12 -0
  32. package/src/accessible-components/how-it-works/how-it-works-static.html +12 -0
  33. package/src/accessible-components/how-it-works/how-it-works.html +14 -0
  34. package/src/accessible-components/information/_information.scss +92 -0
  35. package/src/accessible-components/information/information.html +26 -0
  36. package/src/accessible-components/input/_input.scss +202 -0
  37. package/src/accessible-components/input/input.html +22 -0
  38. package/src/accessible-components/input/textarea.html +9 -0
  39. package/src/accessible-components/partners/_partners.scss +232 -0
  40. package/src/accessible-components/partners/partners.html +56 -0
  41. package/src/accessible-components/picture/picture.html +19 -0
  42. package/src/accessible-components/preloader/_preloader.scss +61 -0
  43. package/src/accessible-components/preloader/preloader.html +23 -0
  44. package/src/accessible-components/progress-bar/_progress-bar.scss +119 -0
  45. package/src/accessible-components/progress-bar/progress-bar.html +21 -0
  46. package/src/accessible-components/progress-bar/progress-bar.js +37 -0
  47. package/src/accessible-components/progress-bar/progress-bar.min.js +2 -0
  48. package/src/accessible-components/progress-bar/progress-bar.min.js.map +1 -0
  49. package/src/accessible-components/radio-button/_radio-button.scss +537 -0
  50. package/src/accessible-components/radio-button/radio-button.html +34 -0
  51. package/src/accessible-components/reviews/_reviews.scss +175 -0
  52. package/src/accessible-components/reviews/reviews-carousel.html +12 -0
  53. package/src/accessible-components/reviews/reviews-static.html +12 -0
  54. package/src/accessible-components/reviews/reviews.html +37 -0
  55. package/src/accessible-components/select/_select.scss +69 -0
  56. package/src/accessible-components/select/select.html +10 -0
  57. package/src/accessible-components/steps/_steps.scss +524 -0
  58. package/src/accessible-components/steps/defaultFormFieldConfig.json +109 -0
  59. package/src/accessible-components/steps/step-fields.html +33 -0
  60. package/src/accessible-components/steps/steps.html +150 -0
  61. package/src/accessible-components/tcpa/_tcpa.scss +49 -0
  62. package/src/accessible-components/tcpa/tcpa.html +9 -0
  63. package/src/accessible-components/tile/_tile.scss +117 -0
  64. package/src/accessible-components/tile/tile.html +14 -0
  65. package/src/accessible-components/value-props/_value-props.scss +100 -0
  66. package/src/accessible-components/value-props/value-props.html +17 -0
  67. package/src/accessible-components/zip-control/_zip-control.scss +78 -0
  68. package/src/accessible-components/zip-control/zip-control.html +10 -0
  69. package/src/data/footer.js +117 -0
  70. package/src/data/seasons.js +5 -7
  71. package/src/data/theme.json +164 -0
  72. package/src/index.html +18 -0
  73. package/src/main.js +45 -0
  74. package/src/resources/scripts/abandonment/abandonment-1df90ee155f6c0893d90.min.js +2 -0
  75. package/src/resources/scripts/abandonment/abandonment.min.js +2 -0
  76. package/src/resources/scripts/footer/footer-component-7b5e263f64568573ecc0.min.js +2 -0
  77. package/src/resources/scripts/footer/footer-component.min.js +2 -0
  78. package/src/resources/scripts/helpers/initNumericOnlyFields.min.js +2 -0
  79. package/src/resources/scripts/helpers/initNumericOnlyFields.min.js.map +1 -0
  80. package/src/resources/scripts/helpers/isZipCodeValid.min.js +2 -0
  81. package/src/resources/scripts/helpers/isZipCodeValid.min.js.map +1 -0
  82. package/src/resources/scripts/mod-alytics/modalytics-0ac7d7a5a72ea67a0f47.min.js +2 -0
  83. package/src/resources/scripts/mod-alytics/modalytics.min.js +2 -0
  84. package/src/resources/scripts/mod-form/form/homeowner-77a4dd439b8db412678b.min.js +2 -0
  85. package/src/resources/scripts/mod-form/form/homeowner.min.js +2 -0
  86. package/src/resources/scripts/mod-utils/modutils-8ba40d21f559171ddd36.min.js +2 -0
  87. package/src/resources/scripts/mod-utils/modutils.min.js +2 -0
  88. package/src/resources/styles/components/abandonment/abandonment-ae63aca828944411eff7.min.css +1 -0
  89. package/src/resources/styles/components/abandonment/abandonment.min.css +1 -0
  90. package/src/resources/styles/components/footer/mod-footer-3717faf57147c62c1777.min.css +1 -0
  91. package/src/resources/styles/components/footer/mod-footer.min.css +1 -0
  92. package/src/resources/styles/components/footer/qs-footer-12bf078dc614ff221c3c.min.css +1 -0
  93. package/src/resources/styles/components/footer/qs-footer.min.css +1 -0
  94. package/src/resources/templates/modals/about/index.html +9 -0
  95. package/src/resources/templates/modals/contact-us/index.html +348 -0
  96. package/src/resources/templates/modals/faq/index.html +9 -0
  97. package/src/resources/templates/modals/privacy/index.html +236 -0
  98. package/src/resources/templates/modals/terms/index.html +166 -0
  99. package/src/scripts/has-qs-params.js +6 -5
  100. package/src/scripts/url-cleaner.js +3 -3
  101. package/src/scripts/utils.js +178 -0
  102. package/src/styles/home.scss +1 -0
  103. package/src/temp/scripts/maxmind-geoip2.js +104 -0
  104. package/src/templates/_partials/scripts/deferred-styles.html +16 -16
  105. package/src/templates/_partials/scripts/vwo-redirect-callback.html +43 -45
  106. package/src/templates/components/head.html +70 -0
  107. package/tasks/clean.js +13 -0
  108. package/tasks/grab-cdn.js +107 -0
  109. package/tasks/grab-form-helpers.js +94 -0
  110. package/tasks/grab-shared-components.js +81 -0
  111. package/tasks/grab-shared-scripts.js +267 -0
  112. package/tasks/serve.js +15 -0
  113. package/tasks/templates.js +168 -0
  114. package/template.js +801 -0
  115. package/vite.config.js +56 -0
  116. package/.eslintrc.yml +0 -59
  117. package/src/data/common.js +0 -704
  118. package/src/data/components/qs-footer.js +0 -55
  119. package/src/data/components/quote-footer.js +0 -73
  120. package/src/scripts/apt-block.js +0 -919
  121. package/src/scripts/components/custom-selects.js +0 -48
  122. package/src/scripts/components/radio-panels.js +0 -45
  123. package/src/scripts/es6-1.js +0 -6
  124. package/src/scripts/es6-2.js +0 -2
  125. package/src/scripts/qs-form.js +0 -839
  126. package/src/scripts/vendor/maxmind-geoip2.js +0 -2
  127. package/src/scripts/vendor/swiper.min.js +0 -13
  128. package/src/styles/apt-block.scss +0 -888
  129. package/src/templates/_partials/apt-block.html +0 -30
  130. package/src/templates/_partials/scripts/analytics.html +0 -4
  131. package/src/templates/_partials/scripts/go-page-hiding-snippet.html +0 -8
  132. package/src/templates/_partials/scripts/google-maps.html +0 -1
  133. package/src/templates/_partials/scripts/google-optimize.html +0 -12
  134. package/src/templates/_partials/scripts/gtm-editorials/head/google-tag-manager-head.html +0 -10
  135. package/src/templates/_partials/scripts/gtm-hil/body/google-tag-manager-body.html +0 -5
  136. package/src/templates/_partials/scripts/gtm-hil/head/google-tag-manager-head.html +0 -10
  137. package/src/templates/_partials/scripts/gtm-pro/body/google-tag-manager-body.html +0 -5
  138. package/src/templates/_partials/scripts/gtm-pro/head/google-tag-manager-head.html +0 -10
  139. package/src/templates/_partials/scripts/gtm-quote/body/google-tag-manager-body.html +0 -5
  140. package/src/templates/_partials/scripts/gtm-quote/head/google-tag-manager-head.html +0 -9
  141. package/src/templates/_partials/scripts/gtm-whitelabel/body/mod-google-tag-manager-body.html +0 -5
  142. package/src/templates/_partials/scripts/gtm-whitelabel/body/non-mod-google-tag-manager-body.html +0 -5
  143. package/src/templates/_partials/scripts/gtm-whitelabel/head/mod-google-tag-manager-head.html +0 -10
  144. package/src/templates/_partials/scripts/gtm-whitelabel/head/non-mod-google-tag-manager-head.html +0 -9
  145. package/src/templates/_partials/scripts/gtm-wordpress/body/google-tag-manager-body.html +0 -5
  146. package/src/templates/_partials/scripts/gtm-wordpress/head/google-tag-manager-head.html +0 -9
  147. package/src/templates/_partials/scripts/visual-website-optimizer.html +0 -5
  148. package/src/templates/index.html +0 -46
  149. /package/{src → public}/favicon.ico +0 -0
@@ -1,30 +0,0 @@
1
- <div class="apt-block apt-block--instant" id="instant-apt-block" style="display: none">
2
- <div class="apt-block__suptitle">
3
- Next steps
4
- </div>
5
- <h2 class="apt-block__title">
6
- Set Appointments
7
- </h2>
8
- <div class="apt-block__subtitle">
9
- Request up to four appointments with contractors to receive free&nbsp;quotes.
10
- </div>
11
-
12
- <div class="apt-block__instant-matches" id="apt-block-instant-matches"> </div>
13
- </div>
14
-
15
- <div class="apt-block" id="apt-block" style="display: none">
16
- <h2 class="apt-block__title" id="apt-block-title">
17
- Loading matches...
18
- </h2>
19
-
20
- <div class="apt-block__matches" id="apt-block-matches"> </div>
21
-
22
- <div class="apt-block__loading" id="apt-block-loading">
23
- <span class="apt-block__spinner"></span>
24
- Searching for matches&hellip;
25
- </div>
26
- </div>
27
-
28
- <script>
29
- var aptBlockTCPA = '{{#x 'this.tcpa("Schedule", "Modernize")'}}{{/x}}';
30
- </script>
@@ -1,4 +0,0 @@
1
- <script>
2
- {{ fileInclude 'node_modules/mod-build/src/scripts/has-qs-params.js' }}
3
- {{ fileInclude 'node_modules/mod-build/src/scripts/url-cleaner.js' }}
4
- </script>
@@ -1,8 +0,0 @@
1
- <!-- Google Optimize Page-hiding snippet -->
2
- <style>.async-hide { opacity: 0 !important} </style>
3
- <script>(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
4
- h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
5
- (a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
6
- })(window,document.documentElement,'async-hide','dataLayer',4000,
7
- {'{{optimize_GTM}}':true});</script>
8
- <!-- End Google Optimize Page-hiding snippet -->
@@ -1 +0,0 @@
1
- <script src="//maps.googleapis.com/maps/api/js?key=AIzaSyBf4HNrR12KgZeMNsdoNIjD57pwVUsZ6e4&language=en&libraries=places&callback=modForm.initAddressAutocomplete" async defer></script>
@@ -1,12 +0,0 @@
1
- <!-- Google Optimize -->
2
- <script>
3
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
7
-
8
- ga('create', '{{ga_tracking_ID}}', 'auto');
9
- ga('require', '{{optimize_GTM}}');
10
- </script>
11
- <!-- End Google Optimize -->
12
-
@@ -1,10 +0,0 @@
1
- <!-- Google Tag Manager -->
2
- <script>
3
- (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
4
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
5
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
6
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
7
- })(window,document,'script','dataLayer','GTM-WPXKC8');
8
- </script>
9
- <!-- End Google Tag Manager -->
10
-
@@ -1,5 +0,0 @@
1
- <!-- Google Tag Manager (noscript) -->
2
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TDM5ZF6"
3
- height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
4
- <!-- End Google Tag Manager (noscript) -->
5
-
@@ -1,10 +0,0 @@
1
- <!-- Google Tag Manager -->
2
- <script>
3
- (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
4
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
5
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
6
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
7
- })(window,document,'script','dataLayer','GTM-TDM5ZF6');
8
- </script>
9
- <!-- End Google Tag Manager -->
10
-
@@ -1,5 +0,0 @@
1
- <!-- Google Tag Manager (noscript) -->
2
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WPXKC8"
3
- height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
4
- <!-- End Google Tag Manager (noscript) -->
5
-
@@ -1,10 +0,0 @@
1
- <!-- Google Tag Manager -->
2
- <script>
3
- (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
4
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
5
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
6
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
7
- })(window,document,'script','dataLayer','GTM-WPXKC8');
8
- </script>
9
- <!-- End Google Tag Manager -->
10
-
@@ -1,5 +0,0 @@
1
- <!-- Google Tag Manager (noscript) -->
2
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NVJQBK2"
3
- height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
4
- <!-- End Google Tag Manager (noscript) -->
5
-
@@ -1,9 +0,0 @@
1
- <!-- Google Tag Manager -->
2
- <script>
3
- (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
4
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
5
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
6
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
7
- })(window,document,'script','dataLayer','GTM-NVJQBK2');
8
- </script>
9
- <!-- End Google Tag Manager -->
@@ -1,5 +0,0 @@
1
- <!-- Google Tag Manager (noscript) -->
2
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TJ8BFVQ"
3
- height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
4
- <!-- End Google Tag Manager (noscript) -->
5
-
@@ -1,5 +0,0 @@
1
- <!-- Google Tag Manager (noscript) -->
2
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TBC2FVC"
3
- height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
4
- <!-- End Google Tag Manager (noscript) -->
5
-
@@ -1,10 +0,0 @@
1
- <!-- Google Tag Manager -->
2
- <script>
3
- (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
4
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
5
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
6
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
7
- })(window,document,'script','dataLayer','GTM-TJ8BFVQ');
8
- </script>
9
- <!-- End Google Tag Manager -->
10
-
@@ -1,9 +0,0 @@
1
- <!-- Google Tag Manager -->
2
- <script>
3
- (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
4
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
5
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
6
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
7
- })(window,document,'script','dataLayer','GTM-TBC2FVC');
8
- </script>
9
- <!-- End Google Tag Manager -->
@@ -1,5 +0,0 @@
1
- <!-- Google Tag Manager (noscript) -->
2
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WPXKC8"
3
- height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
4
- <!-- End Google Tag Manager (noscript) -->
5
-
@@ -1,9 +0,0 @@
1
- <!-- Google Tag Manager -->
2
- <script>
3
- (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
4
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
5
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
6
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
7
- })(window,document,'script','dataLayer','GTM-WPXKC8');
8
- </script>
9
- <!-- End Google Tag Manager -->
@@ -1,5 +0,0 @@
1
- <!-- Start Visual Website Optimizer Asynchronous Code -->
2
- <script>
3
- {{ fileInclude 'node_modules/mod-build/src/scripts/vendor/visual-website-optimizer.js' }}
4
- </script>
5
- <!-- End Visual Website Optimizer Asynchronous Code -->
@@ -1,46 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <head lang="en">
4
- <script>
5
- </script>
6
-
7
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
8
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
- <meta name="viewport" content="initial-scale=1.0, width=device-width" />
10
- <title>modSite</title>
11
-
12
- <link href="/styles/home.css" rel="stylesheet" type="text/css" />
13
- </head>
14
-
15
- <body>
16
- <h1>
17
- It works!
18
- </h1>
19
-
20
- <form id="form" class="form" novalidate="novalidate">
21
- <div id="step1" class="step step--active" data-bind="step">
22
- <input type="tel" name="zip" placeholder="Zip" maxlength="5" />
23
- </div>
24
- </form>
25
-
26
- <!-- build:js /scripts/vendor/jquery.js -->
27
- <script src="/node_modules/jquery/dist/jquery.js"></script>
28
- <!-- endbuild -->
29
-
30
- <!-- build:js /scripts/vendor/jquery.mask.min.js -->
31
- <script src="/node_modules/jquery-mask-plugin/dist/jquery.mask.min.js"></script>
32
- <!-- endbuild -->
33
-
34
- <script src="/scripts/mod-utils.js"></script>
35
-
36
- <script src="/scripts/mod-form.js"></script>
37
-
38
- <script src="/scripts/compiled/home.js"></script>
39
-
40
- <!-- build:js(src) /scripts/es6.js -->
41
- <script src="/scripts/es6-1.js"></script>
42
- <script src="/scripts/es6-2.js"></script>
43
- <!-- endbuild -->
44
- </body>
45
-
46
- </html>
File without changes