mod-build 4.0.0 → 4.0.1-beta.2

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 (165) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/package.json +1 -1
  3. package/src/scripts/default/index.js +9 -0
  4. package/src/scripts/default/update-link-paths.js +7 -13
  5. package/src/scripts/default/use-dynamic-gtm.js +4 -5
  6. package/src/scripts/plugins.js +109 -0
  7. package/src/scripts/utils.js +12 -52
  8. package/tasks/serve.js +1 -1
  9. package/vite.config.js +3 -51
  10. package/src/accessible-components/button/_button.scss +0 -308
  11. package/src/accessible-components/button/back-button.html +0 -8
  12. package/src/accessible-components/button/button.html +0 -17
  13. package/src/accessible-components/carousel/_carousel.scss +0 -112
  14. package/src/accessible-components/carousel/carousel.html +0 -25
  15. package/src/accessible-components/carousel/carousel.js +0 -3426
  16. package/src/accessible-components/carousel/carousel.js.map +0 -1
  17. package/src/accessible-components/carousel/carousel.min.js +0 -6
  18. package/src/accessible-components/carousel/carousel.min.js.map +0 -1
  19. package/src/accessible-components/checkbox/_checkbox.scss +0 -153
  20. package/src/accessible-components/checkbox/checkbox-group.html +0 -18
  21. package/src/accessible-components/checkbox/checkbox.html +0 -8
  22. package/src/accessible-components/expand-collapse/_expand-collapse.scss +0 -129
  23. package/src/accessible-components/expand-collapse/expand-collapse.html +0 -14
  24. package/src/accessible-components/expand-collapse/expand-collapse.js +0 -52
  25. package/src/accessible-components/expand-collapse/expand-collapse.min.js +0 -2
  26. package/src/accessible-components/expand-collapse/expand-collapse.min.js.map +0 -1
  27. package/src/accessible-components/featured-block/_featured-block.scss +0 -221
  28. package/src/accessible-components/featured-block/featured-block.html +0 -54
  29. package/src/accessible-components/foot-assets/foot-assets.html +0 -112
  30. package/src/accessible-components/footer/footer.html +0 -2
  31. package/src/accessible-components/gtm-body/gtm-body.html +0 -4
  32. package/src/accessible-components/head/head.html +0 -187
  33. package/src/accessible-components/header/_header.scss +0 -287
  34. package/src/accessible-components/header/header.html +0 -66
  35. package/src/accessible-components/hero/_hero.scss +0 -405
  36. package/src/accessible-components/hero/hero.html +0 -53
  37. package/src/accessible-components/how-it-works/_how-it-works.scss +0 -217
  38. package/src/accessible-components/how-it-works/how-it-works-carousel.html +0 -12
  39. package/src/accessible-components/how-it-works/how-it-works-static.html +0 -12
  40. package/src/accessible-components/how-it-works/how-it-works.html +0 -14
  41. package/src/accessible-components/information/_information.scss +0 -96
  42. package/src/accessible-components/information/information.html +0 -32
  43. package/src/accessible-components/input/_input.scss +0 -204
  44. package/src/accessible-components/input/input.html +0 -22
  45. package/src/accessible-components/input/textarea.html +0 -9
  46. package/src/accessible-components/partners/_partners.scss +0 -234
  47. package/src/accessible-components/partners/partners.html +0 -56
  48. package/src/accessible-components/picture/picture.html +0 -19
  49. package/src/accessible-components/preloader/_preloader.scss +0 -61
  50. package/src/accessible-components/preloader/preloader.html +0 -23
  51. package/src/accessible-components/progress-bar/_progress-bar.scss +0 -140
  52. package/src/accessible-components/progress-bar/progress-bar.html +0 -21
  53. package/src/accessible-components/progress-bar/progress-bar.js +0 -37
  54. package/src/accessible-components/progress-bar/progress-bar.min.js +0 -2
  55. package/src/accessible-components/progress-bar/progress-bar.min.js.map +0 -1
  56. package/src/accessible-components/radio-button/_radio-button.scss +0 -586
  57. package/src/accessible-components/radio-button/radio-button.html +0 -33
  58. package/src/accessible-components/reviews/_reviews.scss +0 -175
  59. package/src/accessible-components/reviews/reviews-carousel.html +0 -12
  60. package/src/accessible-components/reviews/reviews-static.html +0 -12
  61. package/src/accessible-components/reviews/reviews.html +0 -37
  62. package/src/accessible-components/select/_select.scss +0 -69
  63. package/src/accessible-components/select/select.html +0 -10
  64. package/src/accessible-components/steps/_steps.scss +0 -636
  65. package/src/accessible-components/steps/defaultFormFieldConfig.json +0 -109
  66. package/src/accessible-components/steps/step-fields.html +0 -38
  67. package/src/accessible-components/steps/steps.html +0 -160
  68. package/src/accessible-components/tcpa/_tcpa.scss +0 -49
  69. package/src/accessible-components/tcpa/tcpa.html +0 -9
  70. package/src/accessible-components/tile/_tile.scss +0 -117
  71. package/src/accessible-components/tile/tile.html +0 -14
  72. package/src/accessible-components/value-props/_value-props.scss +0 -102
  73. package/src/accessible-components/value-props/value-props.html +0 -17
  74. package/src/accessible-components/zip-control/_zip-control.scss +0 -79
  75. package/src/accessible-components/zip-control/zip-control.html +0 -10
  76. package/src/resources/data/tcpa.json +0 -3
  77. package/src/resources/scripts/abandonment/abandonment-e099a424bf17408f1db2.min.js +0 -2
  78. package/src/resources/scripts/abandonment/abandonment.min.js +0 -2
  79. package/src/resources/scripts/footer/footer-component-7b5e263f64568573ecc0.min.js +0 -2
  80. package/src/resources/scripts/footer/footer-component.min.js +0 -2
  81. package/src/resources/scripts/helpers/initNumericOnlyFields.min.js +0 -2
  82. package/src/resources/scripts/helpers/initNumericOnlyFields.min.js.map +0 -1
  83. package/src/resources/scripts/helpers/isZipCodeValid.min.js +0 -2
  84. package/src/resources/scripts/helpers/isZipCodeValid.min.js.map +0 -1
  85. package/src/resources/scripts/mod-alytics/modalytics-0ac7d7a5a72ea67a0f47.min.js +0 -2
  86. package/src/resources/scripts/mod-alytics/modalytics.min.js +0 -2
  87. package/src/resources/scripts/mod-form/form/homeowner-f395431201f7a6e56690.min.js +0 -2
  88. package/src/resources/scripts/mod-form/form/homeowner.min.js +0 -2
  89. package/src/resources/scripts/mod-utils/modutils-a08fecfbb83afad1a9f8.min.js +0 -2
  90. package/src/resources/scripts/mod-utils/modutils.min.js +0 -2
  91. package/src/resources/styles/components/abandonment/abandonment-a8571a9e32ed6ef9acb4.min.css +0 -1
  92. package/src/resources/styles/components/abandonment/abandonment.min.css +0 -1
  93. package/src/resources/styles/components/footer/mod-footer-1fb2cec3278f29df57d0.min.css +0 -1
  94. package/src/resources/styles/components/footer/mod-footer.min.css +0 -1
  95. package/src/resources/styles/components/footer/qs-footer-9a3b0ab00428b03e6e9e.min.css +0 -1
  96. package/src/resources/styles/components/footer/qs-footer.min.css +0 -1
  97. package/src/resources/templates/modals/about/index.hbs +0 -9
  98. package/src/resources/templates/modals/about/index.html +0 -9
  99. package/src/resources/templates/modals/contact-us/index.hbs +0 -348
  100. package/src/resources/templates/modals/contact-us/index.html +0 -348
  101. package/src/resources/templates/modals/faq/index.hbs +0 -9
  102. package/src/resources/templates/modals/faq/index.html +0 -9
  103. package/src/resources/templates/modals/privacy/index.hbs +0 -236
  104. package/src/resources/templates/modals/privacy/index.html +0 -236
  105. package/src/resources/templates/modals/terms/index.hbs +0 -166
  106. package/src/resources/templates/modals/terms/index.html +0 -166
  107. package/src/shared-components/card-button/_card-button.scss +0 -49
  108. package/src/shared-components/card-button/card-button.html +0 -9
  109. package/src/shared-components/carousel/_carousel.scss +0 -106
  110. package/src/shared-components/carousel/carousel.html +0 -22
  111. package/src/shared-components/carousel/carousel.js +0 -3427
  112. package/src/shared-components/carousel/carousel.js.map +0 -1
  113. package/src/shared-components/carousel/carousel.min.js +0 -6
  114. package/src/shared-components/carousel/carousel.min.js.map +0 -1
  115. package/src/shared-components/carousel/carousel.min.min.js +0 -6
  116. package/src/shared-components/carousel/carousel.min.min.js.map +0 -1
  117. package/src/shared-components/checkbox/_checkbox.scss +0 -104
  118. package/src/shared-components/checkbox/checkbox.html +0 -6
  119. package/src/shared-components/expand-collapse/_expand-collapse.scss +0 -93
  120. package/src/shared-components/expand-collapse/expand-collapse.html +0 -8
  121. package/src/shared-components/expand-collapse/expand-collapse.js +0 -40
  122. package/src/shared-components/expand-collapse/expand-collapse.min.js +0 -2
  123. package/src/shared-components/expand-collapse/expand-collapse.min.js.map +0 -1
  124. package/src/shared-components/featured-block/_featured-block.scss +0 -185
  125. package/src/shared-components/featured-block/featured-block.html +0 -62
  126. package/src/shared-components/foot-assets/foot-assets.html +0 -107
  127. package/src/shared-components/form-tcpa/form-tcpa.html +0 -12
  128. package/src/shared-components/gtm-body/gtm-body.html +0 -4
  129. package/src/shared-components/head/head.html +0 -192
  130. package/src/shared-components/header/_header.scss +0 -200
  131. package/src/shared-components/header/header.html +0 -71
  132. package/src/shared-components/hero/_hero.scss +0 -253
  133. package/src/shared-components/hero/hero.html +0 -126
  134. package/src/shared-components/how-it-works/_how-it-works.scss +0 -138
  135. package/src/shared-components/how-it-works/how-it-works.html +0 -19
  136. package/src/shared-components/input/_input.scss +0 -229
  137. package/src/shared-components/input/input.html +0 -30
  138. package/src/shared-components/preloader/_preloader.scss +0 -61
  139. package/src/shared-components/preloader/preloader.html +0 -49
  140. package/src/shared-components/progress-bar/_progress-bar.scss +0 -105
  141. package/src/shared-components/progress-bar/progress-bar.html +0 -20
  142. package/src/shared-components/progress-bar/progress-bar.js +0 -25
  143. package/src/shared-components/progress-bar/progress-bar.min.js +0 -2
  144. package/src/shared-components/progress-bar/progress-bar.min.js.map +0 -1
  145. package/src/shared-components/radio-button/_radio-button.scss +0 -554
  146. package/src/shared-components/radio-button/radio-button.html +0 -25
  147. package/src/shared-components/reviews/_reviews.scss +0 -79
  148. package/src/shared-components/reviews/reviews.html +0 -27
  149. package/src/shared-components/select/_select.scss +0 -61
  150. package/src/shared-components/select/select.html +0 -8
  151. package/src/shared-components/steps/_steps.scss +0 -334
  152. package/src/shared-components/steps/defaultFormFieldConfig.json +0 -64
  153. package/src/shared-components/steps/step-fields.html +0 -36
  154. package/src/shared-components/steps/steps.html +0 -131
  155. package/src/shared-components/textarea/_textarea.scss +0 -96
  156. package/src/shared-components/textarea/textarea.html +0 -13
  157. package/src/shared-components/theme-toggle/_theme-toggle.scss +0 -68
  158. package/src/shared-components/theme-toggle/theme-toggle.html +0 -34
  159. package/src/shared-components/tile/_tile.scss +0 -117
  160. package/src/shared-components/tile/tile.html +0 -27
  161. package/src/shared-components/value-props/_value-props.scss +0 -98
  162. package/src/shared-components/value-props/value-props.html +0 -17
  163. package/src/shared-components/zip-control/_zip-control.scss +0 -42
  164. package/src/shared-components/zip-control/zip-control.html +0 -21
  165. package/src/temp/scripts/maxmind-geoip2.js +0 -104
@@ -1,112 +0,0 @@
1
- {{#unless this.page.footAssetsConfig.disableJquery}}
2
- <!-- build:js {{#if this.buildRootPath}}{{this.buildRootPath}}{{else}}{{#unless this.useRelativeBuildPath}}/{{/unless}}{{/if}}scripts/vendor/jquery.js -->
3
- <script src="{{#if this.nodeModulesPath}}{{this.nodeModulesPath}}{{/if}}node_modules/jquery/dist/jquery.js" {{#if this.page.footAssetsConfig.deferJquery}}defer{{/if}} {{#if this.page.footAssetsConfig.asyncJquery}}async{{/if}}></script>
4
- <!-- endbuild -->
5
- {{/unless}}
6
-
7
- {{#unless this.page.footAssetsConfig.disableModUtils}}
8
- <script src="https://{{nodeEnv}}/quote/resources/mod-utils/modutils.min.js" {{#if this.page.footAssetsConfig.deferModUtils}}defer{{/if}} {{#if this.page.footAssetsConfig.asyncModUtils}}async{{/if}}></script>
9
- {{/unless}}
10
-
11
- <!-- load additionalAssets only from node_modules -->
12
- {{#unless @root.isVite}}
13
- {{#if page.footAssetsConfig.additionalAssets}}
14
- {{#each page.footAssetsConfig.additionalAssets}}
15
- {{#xif "!this.bundleInAllJSChunk && this.isNodeModule"}}
16
- <!-- build:js {{#if this.buildPath}}{{this.buildPath}}{{else}}{{#unless ../this.useRelativeBuildPath}}/{{/unless}}scripts/vendor{{/if}}/{{this.chunkName}} -->
17
- <script src="{{#if ../this.nodeModulesPath}}{{../this.nodeModulesPath}}{{/if}}node_modules/{{this.src}}" {{#if this.defer}}defer{{/if}} {{#if this.async}}async{{/if}}></script>
18
- <!-- endbuild -->
19
- {{/xif}}
20
- {{/each}}
21
- {{/if}}
22
- {{/unless}}
23
-
24
- {{#unless this.page.footAssetsConfig.disableModCarousel}}
25
- {{#xif " this.path !== 'thankyou' && this.path !== 'sorry' "}}
26
- <script src="{{#if this.nodeModulesPath}}{{this.nodeModulesPath}}{{else}}{{#unless this.useRelativeBuildPath}}/{{/unless}}{{/if}}accessible-components/carousel/carousel.min.js" {{#if this.page.footAssetsConfig.deferModCarousel}}defer{{/if}} {{#if this.page.footAssetsConfig.asyncModCarousel}}async{{/if}}></script>
27
- {{/xif}}
28
- {{/unless}}
29
-
30
- {{#if this.page.footAssetsConfig.includeCallrailJs}}
31
- <script src="https://{{nodeEnv}}/quote/resources/shared-resources/scripts/callrail/callrail.min.js" defer></script>
32
- {{/if}}
33
-
34
- <!-- load additionalAssets from site-level, CDN or third party CDN -->
35
- {{#unless @root.isVite}}
36
- {{#if page.footAssetsConfig.additionalAssets}}
37
- {{#each page.footAssetsConfig.additionalAssets}}
38
- {{#xif "!this.bundleInAllJSChunk && !this.isNodeModule"}}
39
- <script src="
40
- {{#if ../this.isLocal}}
41
- {{#if this.localSrc}}
42
- {{this.localSrc}}
43
- {{else}}
44
- {{#if this.useModCdn}}
45
- https://{{../nodeEnv}}/{{this.src}}
46
- {{else}}
47
- {{this.src}}
48
- {{/if}}
49
- {{/if}}
50
- {{else}}
51
- {{#if this.useModCdn}}
52
- https://{{../nodeEnv}}/{{this.src}}
53
- {{else}}
54
- {{this.src}}
55
- {{/if}}
56
- {{/if}}" {{#if this.defer}}defer{{/if}} {{#if this.async}}async{{/if}}></script>
57
- {{/xif}}
58
- {{/each}}
59
- {{/if}}
60
- {{/unless}}
61
-
62
- {{#unless this.page.footAssetsConfig.disableProgressBarJs}}
63
- {{#xif " this.path !== 'thankyou' && this.path !== 'sorry' "}}
64
- <script src="{{#if this.nodeModulesPath}}{{this.nodeModulesPath}}{{else}}{{#unless this.useRelativeBuildPath}}/{{/unless}}{{/if}}accessible-components/progress-bar/progress-bar.min.js" defer></script>
65
- {{/xif}}
66
- {{/unless}}
67
-
68
- {{#unless this.page.footAssetsConfig.disableExpandCollapseJs}}
69
- {{#xif " this.path !== 'thankyou' && this.path !== 'sorry' "}}
70
- <script src="{{#if this.nodeModulesPath}}{{this.nodeModulesPath}}{{else}}{{#unless this.useRelativeBuildPath}}/{{/unless}}{{/if}}accessible-components/expand-collapse/expand-collapse.min.js" defer></script>
71
- {{/xif}}
72
- {{/unless}}
73
-
74
- {{#xif "(this.includeModFormIncludes || (this.path !== 'thankyou' && this.path !== 'sorry'))" }}
75
- {{#unless this.page.footAssetsConfig.disableNewModForm}}
76
- <script src="https://{{nodeEnv}}/quote/resources/mod-form/form/homeowner.min.js" {{#if this.page.footAssetsConfig.deferNewModForm}}defer{{/if}} {{#if this.page.footAssetsConfig.asyncNewModForm}}async{{/if}}></script>
77
- {{/unless}}
78
- {{/xif}}
79
-
80
- <!-- QS white label assets -->
81
- {{#xif "this.path !== 'thankyou' && this.path !== 'sorry' && this.isQSPage === true" }}
82
- <!-- build:js(src) {{#if this.buildRootPath}}{{this.buildRootPath}}{{else}}{{#unless this.useRelativeBuildPath}}/{{/unless}}{{/if}}scripts/components/all.js -->
83
- {{#unless this.page.footAssetsConfig.disableFormJs}}
84
- <script src="/scripts/components/form.js" defer></script>
85
- {{/unless}}
86
- {{#if page.footAssetsConfig.additionalAssets}}
87
- {{#each page.footAssetsConfig.additionalAssets}}
88
- {{#xif "this.bundleInAllJSChunk && !this.isNodeModule"}}
89
- <script src="{{this.src}}" {{#if this.defer}}defer{{/if}} {{#if this.async}}async{{/if}}></script>
90
- {{/xif}}
91
- {{/each}}
92
- {{/if}}
93
- <!-- endbuild -->
94
- {{/xif}}
95
-
96
-
97
- {{#if this.path}}
98
- {{#if @root.isVite}}
99
- <script type="module" src="/src{{#if this.src}}{{this.src}}{{else}}scripts{{/if}}/{{this.path}}.js"></script>
100
- {{else}}
101
- <script src="{{#if this.src}}{{this.src}}{{else}}scripts{{/if}}/{{this.path}}.js" defer></script>
102
- {{/if}}
103
- {{/if}}
104
-
105
- {{#unless this.page.footAssetsConfig.disableFooter}}
106
- <script src="https://{{nodeEnv}}/quote/resources/shared-resources/scripts/footer/footer-component.min.js" data-type="{{#if isQSPage}}qs{{else}}mod{{/if}}" async defer></script>
107
- {{/unless}}
108
-
109
- {{#if this.page.footAssetsConfig.devOpsTrackingId}}
110
- <!-- {{uppercase this.page.footAssetsConfig.devOpsTrackingId}} -->
111
- {{/if}}
112
-
@@ -1,2 +0,0 @@
1
- <div id="footer-component" {{#if this.footer}}{{{addAttributes this.footer}}}{{/if}}></div>
2
- {{{jsonVarScriptTag this.siteData 'siteData'}}}
@@ -1,4 +0,0 @@
1
- <!-- Google Tag Manager (noscript) -->
2
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{gtm_container_ID}}"
3
- height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
4
- <!-- End Google Tag Manager (noscript) -->
@@ -1,187 +0,0 @@
1
- <head>
2
- {{#unless @root.isVite}}
3
- {{#if page.headConfig.useDynamicGtm}}
4
- <script>
5
- {{ fileInclude 'node_modules/mod-build/src/scripts/has-qs-params.js' }}
6
- var gtm_container_ID = window.isQSPage ? '{{qs_gtm_container_ID}}' : '{{gtm_container_ID}}';
7
- </script>
8
- {{/if}}
9
- {{/unless}}
10
-
11
- <!-- assets links afterBegin -->
12
- {{#if page.headConfig.useModAnalytics}}
13
- <script src="https://{{nodeEnv}}/quote/resources/mod-alytics/modalytics.min.js" {{#if page.headConfig.deferModAnalytics}}defer{{/if}} {{#if page.headConfig.asyncModAnalytics}}async{{/if}}></script>
14
- {{/if}}
15
-
16
- {{#unless @root.isVite}}
17
- {{#if page.headConfig.additionalAssets.afterBegin}}
18
- {{#each page.headConfig.additionalAssets.afterBegin}}
19
- {{#xif "this.type === 'style' "}}
20
- <link href="{{#if isLocal}}
21
- {{#if this.localSrc}}
22
- {{this.localSrc}}
23
- {{else}}
24
- {{#if this.useModCdn}}
25
- https://{{../nodeEnv}}/{{this.src}}
26
- {{else}}
27
- {{this.src}}
28
- {{/if}}
29
- {{/if}}
30
- {{else}}
31
- {{#if this.useModCdn}}
32
- https://{{../nodeEnv}}/{{this.src}}
33
- {{else}}
34
- {{this.src}}
35
- {{/if}}
36
- {{/if}}" rel="stylesheet" type="text/css" />
37
- {{/xif}}
38
- {{#xif "this.type === 'script' "}}
39
- <script
40
- src="{{#if isLocal}}
41
- {{#if this.localSrc}}
42
- {{this.localSrc}}
43
- {{else}}
44
- {{#if this.useModCdn}}
45
- https://{{../nodeEnv}}/{{this.src}}
46
- {{else}}
47
- {{this.src}}
48
- {{/if}}
49
- {{/if}}
50
- {{else}}
51
- {{#if this.useModCdn}}
52
- https://{{../nodeEnv}}/{{this.src}}
53
- {{else}}
54
- {{this.src}}
55
- {{/if}}
56
- {{/if}}"
57
- {{#if this.defer}}defer{{/if}}
58
- {{#if this.async}}async{{/if}}
59
- ></script>
60
- {{/xif}}
61
- {{/each}}
62
- {{/if}}
63
- {{/unless}}
64
-
65
- <!-- Include vwo setup -->
66
- {{#unless @root.isVite}}
67
- {{#xif "this.page.headConfig.vwoSetup.vwoPathArray.indexOf(this.path) > -1" }}
68
- <link rel="preconnect" href="https://dev.visualwebsiteoptimizer.com">
69
- <!-- Do not double hit our analytical resources (Heap/Google Analytics) if the page is going to be redirected by a VWO a/b test-->
70
- {{ fileInclude 'node_modules/mod-build/src/templates/_partials/scripts/vwo-redirect-callback.html' }}
71
- {{else}}
72
- {{ fileInclude 'node_modules/mod-build/src/templates/_partials/scripts/analytics.html' }}
73
- {{/xif}}
74
- {{/unless}}
75
-
76
-
77
- <!-- meta tags -->
78
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
79
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
80
- <meta name="viewport" content="initial-scale=1.0, width=device-width" />
81
-
82
- {{#unless page.headConfig.disableRobots}}
83
- <meta name="robots" content="{{#if page.headConfig.robotsCsv}}{{page.headConfig.robotsCsv}}{{else}}noindex,nofollow{{/if}}"/>
84
- {{/unless}}
85
-
86
- {{#unless page.headConfig.disableOgTags}}
87
- <meta property="og:title" content="{{page.headConfig.title}}" />
88
- <meta property="og:description" content="{{page.headConfig.description}}" />
89
- {{/unless}}
90
-
91
- <meta name="description" property="description" content="{{page.headConfig.description}}" />
92
- <meta name="keywords" property="keywords" content="{{page.headConfig.keywords}}" />
93
-
94
- <!-- preconnect google fonts -->
95
- <link rel="preconnect" href="https://fonts.googleapis.com">
96
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
97
- {{#if page.headConfig.preConnect}}
98
- {{#each page.headConfig.preConnect}}
99
- <link
100
- {{#if this.rel}}rel="{{this.rel}}"{{/if}}
101
- {{#if this.href}}href="{{this.href}}"{{/if}}
102
- {{#if this.as}}as="{{this.as}}"{{/if}}
103
- {{#if this.crossorigin}}crossorigin="{{this.crossorigin}}"{{/if}}
104
- {{#if this.media}}media="{{this.media}}"{{/if}}
105
- {{#if this.type}}type="{{this.type}}"{{/if}}
106
- {{#if this.fetchpriority}}fetchpriority="{{this.fetchpriority}}"{{/if}}
107
- >
108
- {{/each}}
109
- {{/if}}
110
- <!-- site title -->
111
- <title>
112
- {{#if page.headConfig.inverseTitle}}
113
- {{#unless page.headConfig.hideTitleCompanyName}}{{company_name}} | {{/unless}}
114
- {{#if this.pageTitle}}
115
- {{this.pageTitle}}
116
- {{else}}
117
- {{#if page.headConfig.title}}
118
- {{page.headConfig.title}}
119
- {{/if}}
120
- {{/if}}
121
- {{else}}
122
- {{#if this.pageTitle}}
123
- {{this.pageTitle}}
124
- {{else}}
125
- {{#if page.headConfig.title}}
126
- {{page.headConfig.title}}
127
- {{/if}}
128
- {{/if}}
129
- {{#unless page.headConfig.hideTitleCompanyName}} | {{company_name}}{{/unless}}
130
- {{/if}}
131
- </title>
132
-
133
- {{#if page.headConfig.faviconPath}}
134
- <!-- favicon link -->
135
- <link href="{{page.headConfig.faviconPath}}" rel="shortcut icon" type="image/x-icon" />
136
- {{/if}}
137
-
138
- {{#unless @root.isVite}}
139
- {{#if page.headConfig.additionalAssets.beforeEnd}}
140
- {{#each page.headConfig.additionalAssets.beforeEnd}}
141
- {{#xif "this.type === 'style' "}}
142
- <link href="{{#if isLocal}}
143
- {{#if this.localSrc}}
144
- {{this.localSrc}}
145
- {{else}}
146
- {{#if this.useModCdn}}
147
- https://{{../nodeEnv}}/{{this.src}}
148
- {{else}}
149
- {{this.src}}
150
- {{/if}}
151
- {{/if}}
152
- {{else}}
153
- {{#if this.useModCdn}}
154
- https://{{../nodeEnv}}/{{this.src}}
155
- {{else}}
156
- {{this.src}}
157
- {{/if}}
158
- {{/if}}" rel="stylesheet" type="text/css" />
159
- {{/xif}}
160
- {{#xif "this.type === 'script' "}}
161
- <script src="{{#if isLocal}}
162
- {{#if this.localSrc}}
163
- {{this.localSrc}}
164
- {{else}}
165
- {{#if this.useModCdn}}
166
- https://{{../nodeEnv}}/{{this.src}}
167
- {{else}}
168
- {{this.src}}
169
- {{/if}}
170
- {{/if}}
171
- {{else}}
172
- {{#if this.useModCdn}}
173
- https://{{../nodeEnv}}/{{this.src}}
174
- {{else}}
175
- {{this.src}}
176
- {{/if}}
177
- {{/if}}" {{#if this.defer}}defer{{/if}} {{#if this.async}}async{{/if}}></script>
178
- {{/xif}}
179
- {{/each}}
180
- {{/if}}
181
- {{/unless}}
182
-
183
- <!-- load styles based on path name -->
184
- {{#unless @root.isVite}}
185
- <link href="{{#if this.src}}{{this.src}}{{else}}{{#unless this.useRelativePath}}/{{/unless}}{{/if}}styles/{{this.path}}.css" rel="stylesheet" type="text/css" />
186
- {{/unless}}
187
- </head>
@@ -1,287 +0,0 @@
1
- $header-background-color: $color-white !default;
2
- $header-padding: 10px 0 !default;
3
- $header-padding-desktop: 15px 0 !default;
4
- $header-position: relative !default;
5
- $header-position-top: 0 !default;
6
- $header-z-index: 2 !default;
7
-
8
- $header-container-padding: 0 15px !default;
9
-
10
- $header-content-align-items: center !default;
11
- $header-content-display: flex !default;
12
- $header-content-justify-content: center !default;
13
- $header-content-justify-content-desktop: space-between !default;
14
-
15
- $header-logo-display: inline-block !default;
16
- $header-logo-height: auto !default;
17
- $header-logo-width: 195px !default;
18
- $header-logo-margin: 0 !default;
19
- $header-logo-height-desktop: auto !default;
20
- $header-logo-width-desktop: 245px !default;
21
- $header-logo-margin-desktop: $header-logo-margin !default;
22
- $header-logo-vertical-align: middle !default;
23
-
24
- $header-secondary-logo-display: $header-logo-display !default;
25
- $header-secondary-logo-height: auto !default;
26
- $header-secondary-logo-width: 73px !default;
27
- $header-secondary-logo-height-desktop: auto !default;
28
- $header-secondary-logo-width-desktop: 113px !default;
29
- $header-secondary-logo-vertical-align: middle !default;
30
-
31
- $header-secondary-logo-padding-left: 20px !default;
32
- $header-secondary-logo-padding-left-desktop: 40px !default;
33
- $header-secondary-logo-divider-background-color: $color-charcoal3 !default;
34
- $header-secondary-logo-divider-height: calc(100% + 10px) !default;
35
- $header-secondary-logo-divider-position: absolute !default;
36
- $header-secondary-logo-divider-position-left: 10px !default;
37
- $header-secondary-logo-divider-position-left-desktop: 20px !default;
38
- $header-secondary-logo-divider-width: 1px !default;
39
-
40
- $header-back-button-background-color: transparent !default;
41
- $header-back-button-border-right: 1px solid darken($color-charcoal3, 5%) !default;
42
- $header-back-button-color: darken($color-charcoal3, 5%) !default;
43
- $header-back-button-font-size: 1.125rem !default;
44
- $header-back-button-line-height: 1 !default;
45
- $header-back-button-padding: 18px 0 !default;
46
-
47
- $header-show-button-button-flex: 0 15% !default;
48
- $header-show-button-logo-flex: 0 85% !default;
49
- $header-show-button-padding: 0 !default;
50
- $header-show-button-container-padding: 0 !default;
51
- $header-show-button-content-min-height: 55px !default;
52
-
53
- $header-bbb-logo-height: 30px !default;
54
- $header-bbb-logo-width: 82.5px !default;
55
- $header-bbb-logo-height-desktop: 42px !default;
56
- $header-bbb-logo-width-desktop: 115px !default;
57
-
58
- $header-tagline-color: $color-white !default;
59
- $header-tagline-font-size: 1.125rem !default;
60
- $header-tagline-font-weight: 700 !default;
61
-
62
- $callrail-display: none !default;
63
- $call-color: $color-black !default;
64
- $call-font-size: 1.125rem !default;
65
- $call-font-weight: 400 !default;
66
- $call-number-font-weight: 700 !default;
67
- $call-link-color: inherit !default;
68
- $call-link-text-decoration: none !default;
69
- $call-icon-width: 12px !default;
70
- $call-icon-width-desktop: 20px !default;
71
-
72
- $call-button-align-self: center !default;
73
- $call-button-background-color: $color-white !default;
74
- $call-button-border: 1px solid $call-color !default;
75
- $call-button-border-radius: 15px !default;
76
- $call-button-color: $call-color !default;
77
- $call-button-hover-color: $call-button-color !default;
78
- $call-button-font-size: .75rem !default;
79
- $call-button-font-size-desktop: $call-font-size !default;
80
- $call-button-font-weight: $call-font-weight !default;
81
- $call-button-margin: 0 0 0 15px !default;
82
- $call-button-padding: 4px 12px !default;
83
- $call-button-text-transform: uppercase !default;
84
- $call-button-transition: $base-transition !default;
85
-
86
- .header {
87
- background-color: $header-background-color;
88
- padding: $header-padding;
89
- position: $header-position;
90
- top: $header-position-top;
91
- z-index: $header-z-index;
92
-
93
- .container {
94
- padding: $header-container-padding;
95
- }
96
-
97
- &__content {
98
- align-items: $header-content-align-items;
99
- display: $header-content-display;
100
- justify-content: $header-content-justify-content;
101
- }
102
-
103
- &__logo {
104
- img, svg {
105
- display: $header-logo-display;
106
- height: $header-logo-height;
107
- margin: $header-logo-margin;
108
- vertical-align: $header-logo-vertical-align;
109
- width: $header-logo-width;
110
- }
111
- }
112
-
113
- &__secondary-logo {
114
- display: $header-secondary-logo-display;
115
- padding-left: $header-secondary-logo-padding-left;
116
- position: relative;
117
- vertical-align: $header-secondary-logo-vertical-align;
118
-
119
- img, svg {
120
- height: $header-secondary-logo-height;
121
- width: $header-secondary-logo-width;
122
- }
123
-
124
- &:before {
125
- background-color: $header-secondary-logo-divider-background-color;
126
- content: '';
127
- height: $header-secondary-logo-divider-height;
128
- position: $header-secondary-logo-divider-position;
129
- left: $header-secondary-logo-divider-position-left;
130
- top: 50%;
131
- transform: translateY(-50%);
132
- width: $header-secondary-logo-divider-width;
133
- }
134
- }
135
-
136
- &__bbb-logo {
137
- height: $header-bbb-logo-height;
138
- width: $header-bbb-logo-width;
139
- }
140
-
141
- &__back-button {
142
- background-color: $header-back-button-background-color;
143
- border: 0;
144
- border-right: $header-back-button-border-right;
145
- color: $header-back-button-color;
146
- display: none;
147
- font-size: $header-back-button-font-size;
148
- line-height: $header-back-button-line-height;
149
- padding: $header-back-button-padding;
150
- }
151
-
152
- &__tagline {
153
- color: $header-tagline-color;
154
- font-size: $header-tagline-font-size;
155
- font-weight: $header-tagline-font-weight;
156
- }
157
-
158
- &__call {
159
- color: $call-color;
160
- font-size: $call-font-size;
161
- font-weight: $call-font-weight;
162
-
163
- .header__call-icon {
164
- width: $call-icon-width-desktop;
165
- }
166
- }
167
-
168
- &__call-link {
169
- color: $call-link-color;
170
- text-decoration: $call-link-text-decoration;
171
- }
172
-
173
- &__call-number {
174
- font-weight: $call-number-font-weight;
175
- }
176
-
177
- &__call-icon {
178
- width: $call-icon-width;
179
- }
180
-
181
- &__call-button {
182
- align-self: $call-button-align-self;
183
- background-color: $call-button-background-color;
184
- border: $call-button-border;
185
- border-radius: $call-button-border-radius;
186
- color: $call-button-color;
187
- font-size: $call-button-font-size;
188
- font-weight: $call-button-font-weight;
189
- margin: $call-button-margin;
190
- padding: $call-button-padding;
191
- text-transform: $call-button-text-transform;
192
- transition: $call-button-transition;
193
-
194
- &:hover,
195
- &:focus {
196
- color: $call-button-hover-color;
197
- }
198
- }
199
- }
200
-
201
- .callNowControls {
202
- display: $callrail-display;
203
- }
204
-
205
- @include breakpoint-phone {
206
- .header {
207
- &--transparent {
208
- background-color: transparent;
209
- }
210
-
211
- &--show-back-button {
212
- padding: $header-show-button-padding;
213
-
214
- .header__content {
215
- min-height: $header-show-button-content-min-height;
216
- }
217
-
218
- .container {
219
- padding: $header-show-button-container-padding;
220
- }
221
-
222
- .header__back-button {
223
- flex: $header-show-button-button-flex;
224
- }
225
- .header__logo {
226
- flex: $header-show-button-logo-flex;
227
- text-align: center;
228
- }
229
- }
230
- }
231
-
232
- .form-in-progress {
233
- .header--show-back-button {
234
- .header__back-button {
235
- display: block;
236
- }
237
- }
238
- }
239
- }
240
-
241
- @include breakpoint-md {
242
- .header {
243
- padding: $header-padding-desktop;
244
-
245
- &__content {
246
- justify-content: $header-content-justify-content-desktop;
247
- }
248
-
249
- &__back-button {
250
- display: none;
251
- }
252
-
253
- &__logo {
254
- img, svg {
255
- height: $header-logo-height-desktop;
256
- margin: $header-logo-margin-desktop;
257
- width: $header-logo-width-desktop;
258
- }
259
- }
260
-
261
- &__secondary-logo {
262
- padding-left: $header-secondary-logo-padding-left-desktop;
263
-
264
- img, svg {
265
- height: $header-secondary-logo-height-desktop;
266
- width: $header-secondary-logo-width-desktop;
267
- }
268
-
269
- &:before {
270
- left: $header-secondary-logo-divider-position-left-desktop;
271
- }
272
- }
273
-
274
- &__bbb-logo {
275
- height: $header-bbb-logo-height-desktop;
276
- width: $header-bbb-logo-width-desktop;
277
- }
278
- }
279
- }
280
-
281
- @include breakpoint-lg {
282
- .header {
283
- &__call-button {
284
- font-size: $call-button-font-size-desktop;
285
- }
286
- }
287
- }
@@ -1,66 +0,0 @@
1
- <header class="header{{#if this.header.attributes.class}} {{this.header.attributes.class}}{{/if}}{{#xif 'this.header.includeBackButton === true'}} header--show-back-button{{/xif}}" {{{addAttributes this.header 'class'}}}>
2
- <div class="container">
3
- <div class="header__content">
4
- {{#xif "this.header.includeBackButton === true"}}
5
- <button class="header__back-button" data-btn="back">
6
- <i class="icon-caret-left">
7
- <span class="visually-hidden">Back</span>
8
- </i>
9
- </button>
10
- {{/xif}}
11
- {{#if this.header.logo}}
12
- <div class="header__logo">
13
- {{ fileInclude 'src/accessible-components/picture/picture.html'
14
- picture = this.header.logo.picture
15
- }}
16
- {{#if this.header.logo.secondaryLogo}}
17
- <span class="header__secondary-logo">
18
- {{ fileInclude 'src/accessible-components/picture/picture.html'
19
- picture = this.header.logo.secondaryLogo.picture
20
- }}
21
- </span>
22
- {{/if}}
23
- </div>
24
- {{/if}}
25
- {{#if this.header.callRail}}
26
- <div class="callNowControls">
27
- {{#if this.header.callRail.showButtonSmallDevices}}
28
- <div class="header__call hidden visible-lg-up">
29
- {{#if this.header.callRail.picture}}
30
- {{ fileInclude 'src/accessible-components/picture/picture.html'
31
- picture = this.header.callRail.picture
32
- class = 'header__call-icon'
33
- }}
34
- {{/if}}
35
- {{{this.header.callRail.text}}}
36
- <a class="header__call-link" href="tel:{{this.header.callRail.phoneNumber}}"><span class="header__call-number">{{formatPhoneNo this.header.callRail.phoneNumber}}</span></a>
37
- </div>
38
- {{/if}}
39
- <a class="header__call-button {{#if this.header.callRail.showButtonSmallDevices}} visible-sm-down visible-md{{/if}}" href="tel:{{this.header.callRail.phoneNumber}}">
40
- {{#if this.header.callRail.picture}}
41
- {{ fileInclude 'src/accessible-components/picture/picture.html'
42
- picture = this.header.callRail.picture
43
- class = 'header__call-icon'
44
- }}
45
- {{/if}}
46
- {{{this.header.callRail.mobileText}}}
47
- </a>
48
- </div>
49
- {{/if}}
50
- {{#if this.header.additionalLogos}}
51
- <div class="header__additional-logos">
52
- {{#each this.header.additionalLogos}}
53
- {{ fileInclude 'src/accessible-components/picture/picture.html'
54
- picture = this.picture
55
- }}
56
- {{/each}}
57
- </div>
58
- {{/if}}
59
- {{#if this.header.tagline.text}}
60
- <p class="header__tagline{{#if this.header.tagline.attributes.class}} {{this.header.tagline.attributes.class}}{{/if}}" {{{addAttributes this.header.tagline 'class'}}}>
61
- {{{this.header.tagline.text}}}
62
- </p>
63
- {{/if}}
64
- </div>
65
- </div>
66
- </header>