mod-build 3.6.75-beta.2 → 4.0.0-alpha.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 (62) hide show
  1. package/.eslintignore +3 -0
  2. package/.eslintrc +18 -0
  3. package/CHANGELOG.md +2 -252
  4. package/README.md +16 -263
  5. package/gulp-tasks/grab-cdn.js +0 -10
  6. package/package.json +18 -68
  7. package/siteconfig.js +38 -0
  8. package/src/data/footer.js +117 -0
  9. package/src/data/seasons.js +5 -7
  10. package/src/index.html +18 -0
  11. package/src/main.js +45 -0
  12. package/src/scripts/has-qs-params.js +6 -5
  13. package/src/scripts/url-cleaner.js +3 -3
  14. package/src/scripts/utils.js +178 -0
  15. package/src/styles/home.scss +1 -0
  16. package/src/templates/_partials/scripts/deferred-styles.html +16 -16
  17. package/src/templates/_partials/scripts/vwo-redirect-callback.html +43 -45
  18. package/src/templates/components/head.html +70 -0
  19. package/tasks/clean.js +13 -0
  20. package/tasks/grab-cdn.js +107 -0
  21. package/tasks/grab-form-helpers.js +94 -0
  22. package/tasks/grab-shared-components.js +81 -0
  23. package/tasks/grab-shared-scripts.js +267 -0
  24. package/tasks/serve.js +15 -0
  25. package/tasks/templates.js +168 -0
  26. package/template.js +801 -0
  27. package/vite.config.js +56 -0
  28. package/.eslintrc.yml +0 -59
  29. package/src/data/common.js +0 -704
  30. package/src/data/components/qs-footer.js +0 -55
  31. package/src/data/components/quote-footer.js +0 -73
  32. package/src/scripts/apt-block.js +0 -919
  33. package/src/scripts/components/custom-selects.js +0 -48
  34. package/src/scripts/components/radio-panels.js +0 -45
  35. package/src/scripts/es6-1.js +0 -6
  36. package/src/scripts/es6-2.js +0 -2
  37. package/src/scripts/qs-form.js +0 -839
  38. package/src/scripts/vendor/maxmind-geoip2.js +0 -2
  39. package/src/scripts/vendor/swiper.min.js +0 -13
  40. package/src/styles/apt-block.scss +0 -888
  41. package/src/templates/_partials/apt-block.html +0 -30
  42. package/src/templates/_partials/scripts/analytics.html +0 -4
  43. package/src/templates/_partials/scripts/go-page-hiding-snippet.html +0 -8
  44. package/src/templates/_partials/scripts/google-maps.html +0 -1
  45. package/src/templates/_partials/scripts/google-optimize.html +0 -12
  46. package/src/templates/_partials/scripts/gtm-editorials/body/google-tag-manager-body.html +0 -5
  47. package/src/templates/_partials/scripts/gtm-editorials/head/google-tag-manager-head.html +0 -10
  48. package/src/templates/_partials/scripts/gtm-hil/body/google-tag-manager-body.html +0 -5
  49. package/src/templates/_partials/scripts/gtm-hil/head/google-tag-manager-head.html +0 -10
  50. package/src/templates/_partials/scripts/gtm-pro/body/google-tag-manager-body.html +0 -5
  51. package/src/templates/_partials/scripts/gtm-pro/head/google-tag-manager-head.html +0 -10
  52. package/src/templates/_partials/scripts/gtm-quote/body/google-tag-manager-body.html +0 -5
  53. package/src/templates/_partials/scripts/gtm-quote/head/google-tag-manager-head.html +0 -9
  54. package/src/templates/_partials/scripts/gtm-whitelabel/body/mod-google-tag-manager-body.html +0 -5
  55. package/src/templates/_partials/scripts/gtm-whitelabel/body/non-mod-google-tag-manager-body.html +0 -5
  56. package/src/templates/_partials/scripts/gtm-whitelabel/head/mod-google-tag-manager-head.html +0 -10
  57. package/src/templates/_partials/scripts/gtm-whitelabel/head/non-mod-google-tag-manager-head.html +0 -9
  58. package/src/templates/_partials/scripts/gtm-wordpress/body/google-tag-manager-body.html +0 -5
  59. package/src/templates/_partials/scripts/gtm-wordpress/head/google-tag-manager-head.html +0 -9
  60. package/src/templates/_partials/scripts/visual-website-optimizer.html +0 -5
  61. package/src/templates/index.html +0 -46
  62. /package/{src → public}/favicon.ico +0 -0
@@ -1,48 +0,0 @@
1
- /**
2
- * Handles custom selects: add or remove placeholder class on change
3
- */
4
-
5
- /* eslint brace-style: 0 */
6
-
7
- // eslint-disable-next-line no-unused-vars
8
- var modCustomSelects = (function($) {
9
- /**
10
- * Default options
11
- */
12
- var opts = {
13
- customSelectsSelector: '.form-select-wrapper select',
14
- customSelectPlaceholderCls: 'placeholder'
15
- };
16
-
17
- /**
18
- * Check the state of a select
19
- * @param {Object} $select - jQuery selects object
20
- */
21
- function checkState($select) {
22
- if ($select.val() !== '') {
23
- $select.removeClass(opts.customSelectPlaceholderCls);
24
- }
25
- else {
26
- $select.addClass(opts.customSelectPlaceholderCls);
27
- }
28
- }
29
-
30
- /**
31
- * Start the component
32
- * @param {Object} options - component options
33
- */
34
- function init(options) {
35
- jQuery.extend(opts, options);
36
-
37
- $('body').on('change', opts.customSelectsSelector, function() {
38
- checkState($(this));
39
- });
40
- $.each($(opts.customSelectsSelector), function() {
41
- checkState($(this));
42
- });
43
- }
44
-
45
- return {
46
- init: init
47
- };
48
- })(jQuery);
@@ -1,45 +0,0 @@
1
- /**
2
- * Radio panels (e.g. Homeowner Yes/No selection)
3
- */
4
-
5
- // eslint-disable-next-line no-unused-vars
6
- var modRadioPanels = (function($) {
7
- /**
8
- * Default options
9
- */
10
- var opts = {
11
- radioPanelSelector: '[data-bind="radio-panel"]',
12
- activeCls: 'radio-panel--active'
13
- };
14
-
15
- /**
16
- * Check the state of a select
17
- * @param {Object} $input - jQuery inputs object
18
- */
19
- function checkState($input) {
20
- var name = $input.attr('name');
21
-
22
- $(opts.radioPanelSelector + ' input[name="' + name + '"]').parents(opts.radioPanelSelector).removeClass(opts.activeCls);
23
-
24
- if ($input.is(':checked')) {
25
- $input.parents(opts.radioPanelSelector).addClass(opts.activeCls);
26
- }
27
- }
28
-
29
- /**
30
- * Start the component
31
- * @param {Object} options - component options
32
- */
33
- function init(options) {
34
- jQuery.extend(opts, options);
35
-
36
- $(opts.radioPanelSelector + ' input').on('change', function() {
37
- checkState($(this));
38
- });
39
- checkState($(opts.radioPanelSelector + ' input:checked'));
40
- }
41
-
42
- return {
43
- init: init
44
- };
45
- })(jQuery);
@@ -1,6 +0,0 @@
1
- const es61 = true;
2
- console.log('es61', es61);
3
-
4
- let param1 = '123';
5
- param1 += '4';
6
- console.log(`param1: ${param1}`);
@@ -1,2 +0,0 @@
1
- const es62 = true;
2
- console.log('es62', es62);