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AC,UAAU;YACpC;QACF;IACF;AACF,CAAA,EAAG,QAAQ,QAAQ,QAAQ","sources":["src/060_blocks/spacer/spacer.js"],"sourcesContent":["(function ($, Drupal) {\n Drupal.behaviors.spacer = {\n attach: function spacer(context, settings) {\n if (typeof context['location'] !== 'undefined') {\n function setMinHeight() {\n var screenWidth = $(window).width();\n var spacerBlocks = $('.block--spacer');\n var spacing = 0;\n\n // These values should always match the values from web/themes/custom/mount_allison/src/010_sass-config/layout/_breakpoints.scss.\n var breakpoints = {\n fallback: 0,\n small: 320,\n land: 568,\n med: 768,\n large: 1024,\n larger: 1366,\n wide: 1500\n };\n\n $.each(spacerBlocks, function (index) {\n if (screenWidth >= breakpoints.fallback && screenWidth < breakpoints.small) {\n spacing = $(this).attr('data-fallback');\n }\n else if (screenWidth >= breakpoints.small && screenWidth < breakpoints.land) {\n spacing = $(this).attr('data-small');\n }\n else if (screenWidth >= breakpoints.land && screenWidth < breakpoints.med) {\n spacing = $(this).attr('data-land');\n }\n else if (screenWidth >= breakpoints.med && screenWidth < breakpoints.large) {\n spacing = $(this).attr('data-med');\n }\n else if (screenWidth >= breakpoints.large && screenWidth < breakpoints.larger) {\n spacing = $(this).attr('data-large');\n }\n else if (screenWidth >= breakpoints.larger && screenWidth < breakpoints.wide) {\n spacing = $(this).attr('data-larger');\n }\n else {\n spacing = $(this).attr('data-wide');\n }\n\n $(this).css(\"min-height\", spacing);\n });\n }\n\n setMinHeight();\n var minHeightDebounce = Drupal.debounce(function() {\n setMinHeight();\n }, 250);\n window.addEventListener('resize', minHeightDebounce);\n }\n }\n };\n})(jQuery, Drupal, window, document);\n"],"names":[],"version":3,"file":"spacer.js.map"}