!function(n){var e={};function t(i){var s;return(e[i]||(s=e[i]={i:i,l:!1,exports:{}},n[i].call(s.exports,s,s.exports,t),s.l=!0,s)).exports}t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:i})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var s in n)t.d(i,s,function(e){return n[e]}.bind(null,s));return i},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}({"./build/js/components/accordianMenu.js":function(module,exports){eval("// ================================================================================================\n//  Accordian Menu\n//  =================\n//  applies accordian functionality to any nav with class accordian\n// ================================================================================================\n$(document).ready(function () {\n  if ($('nav.accordian').length > 0) {\n    $('nav.accordian').find('ul').children('li').has('ul').each(function () {\n      $(this).children('a').append('<span class=\"accordian_toggle\"></span>');\n      if ($(this).hasClass('nav__list--here')) {\n        $(this).addClass('accordian_open');\n        $(this).closest('li').children('ul').slideDown();\n      }\n    });\n    $('span.accordian_toggle').click(function (n) {\n      n.preventDefault();\n      if (!$(this).closest('li').hasClass('accordian_open')) {\n        $(this).closest('li').siblings().removeClass('accordian_open').children('ul').slideUp();\n        $(this).closest('li').addClass('accordian_open');\n        $(this).closest('li').children('ul').slideDown();\n      } else {\n        $(this).closest('li').removeClass('accordian_open').children('ul').slideUp();\n      }\n    });\n  }\n});\n\n//# sourceURL=webpack:///./build/js/components/accordianMenu.js?")},"./build/js/components/backgroundImage.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"backgroundImage\", function() { return backgroundImage; });\n// =============================================================================\n//  Background Image\n//  =================\n//  Function that applies the first image to the background of the element with options\n//  -----------------\n/*\n\nelement: class to target\noptions: background options\nhide: 1 for <img> only, 2 for entire .image div\n\nexamples:\nbackgroundImage($(\".has-bg\"), \"center center / cover no-repeat\", 2);\nbackgroundImage($(\".has-bg__collection li\"), \"center center / cover no-repeat\", 2);\nbackgroundImage($(\".has-bg-li__collection li .collection-item-image\"), \"center center / cover no-repeat\", 1);\n\n*/\n//  -----------------\n// ==============================================================================\nfunction backgroundImage(element, options, hide) {\n  $(element).each(function () {\n    var imgSrc = $(this).find('img').first().attr('src');\n    if (imgSrc) {\n      if (hide === 1) {\n        $(this).find('img').first('img').hide();\n      } else {\n        $(this).find('img').parent('.image, .spotlight-image').hide();\n      }\n      $(this).css('background', 'url(' + imgSrc + ')' + options);\n    }\n  });\n}\n\n//# sourceURL=webpack:///./build/js/components/backgroundImage.js?")},"./build/js/components/bodyClassToggler.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"bodyClassToggler\", function() { return bodyClassToggler; });\n// =============================================================================\n//  Body Class Toggler 2.0\n//  =================\n//  function that takes an element and applies a class when clicked\n//  -----------------\n//  example:\n//  bodyClassToggler('mobile_menu', 'mobile_menu_is_visible', 'add');\n//  bodyClassToggler('mobile_menu', 'mobile_menu_is_visible', 'remove');\n\n//  note: 'toggle' is default\n//  the following 2 examples yeild the same results\n//  bodyClassToggler('mobile_menu', 'mobile_menu_is_visible', 'toggle');\n//  bodyClassToggler('mobile_menu', 'mobile_menu_is_visible');\n//  -----------------\n// ==============================================================================\nfunction bodyClassToggler(element, elemClass, condition) {\n  $(element).on('click', function () {\n    switch (condition) {\n      case 'add':\n        $('body').addClass(elemClass);\n        break;\n      case 'remove':\n        $('body').removeClass(elemClass);\n        break;\n      default:\n        $('body').toggleClass(elemClass);\n        break;\n    }\n  });\n\n  // keypress for ada\n  $(element).keypress(function (e) {\n    if (e.keyCode === 13) {\n      switch (condition) {\n        case 'add':\n          $('body').addClass(elemClass);\n          break;\n        case 'remove':\n          $('body').removeClass(elemClass);\n          break;\n        default:\n          $('body').toggleClass(elemClass);\n          break;\n      }\n    }\n  });\n}\n\n//# sourceURL=webpack:///./build/js/components/bodyClassToggler.js?")},"./build/js/components/counter.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"counter\", function() { return counter; });\n//= ============================================\n/* counter('div');\nrestrictions:\ncannot use spaces,\ncannot use decimals\ncannot use text AND integers in the same label\n\nfunction WILL add commas to all numbers longer 4+ digit numbers\n\n//============================================= */\n// FF Font sizer\nfunction ffFontSizer() {\n  $('.fast-facts-container li').each(function (i) {\n    if ($(this).is(':visible')) {\n      // config vars\n      var padding = 10;\n      var defaultFontSize = 56;\n      // setup all vars in inital states\n      var initialFontSize = parseInt($(this).find('.collection-item-description p').css('font-size'));\n      var fontSize = initialFontSize;\n      var textWidth = $(this).find('.collection-item-description p').width();\n      var containerWidth = $(this).find('.collection-item-description').width();\n      // decrease font size when too large\n      while (textWidth > containerWidth - padding) {\n        // reduce font size by 1\n        fontSize = fontSize - 1;\n        $(this).find('.collection-item-description p').css('font-size', fontSize);\n        // check widths again\n        fontSize = parseInt($(this).find('.collection-item-description p').css('font-size'));\n        textWidth = $(this).find('.collection-item-description p').width();\n        containerWidth = $(this).find('.collection-item-description').width();\n      }\n      // increase font size when too small\n      // padding * 2 so there is double the space for the \"safe\" size\n      while (textWidth < containerWidth - padding * 2 && fontSize < defaultFontSize) {\n        // increase font size by 1\n        fontSize = fontSize + 1;\n        $(this).find('.collection-item-description p').css('font-size', fontSize);\n        // check widths again\n        fontSize = parseInt($(this).find('.collection-item-description p').css('font-size'));\n        textWidth = $(this).find('.collection-item-description p').width();\n        containerWidth = $(this).find('.collection-item-description').width();\n      }\n    }\n  });\n}\n// end ffFontSizer\nfunction initCounter() {\n  $('.fast-facts-container .collection-item-description p').each(function () {\n    if ($(this).html().indexOf('%') !== -1) {\n      $(this).attr('data-type', 'percent');\n      $(this).attr('data-number', $(this).html().replace('%', ''));\n      $(this).html('0');\n    } else if ($(this).html().indexOf('$') !== -1) {\n      $(this).attr('data-type', 'dollar');\n      $(this).attr('data-number', $(this).html().replace('$', ''));\n      $(this).html('0');\n    } else if ($(this).html().match(/^([a-z()]+)$/i)) {\n      $(this).attr('data-type', 'alpha');\n    } else {\n      $(this).attr('data-type', 'none');\n      $(this).attr('data-number', $(this).html().replace(/,|$/g, ''));\n      $(this).html('0');\n    }\n  });\n}\ninitCounter();\nfunction counter(element) {\n  var counter = $('.collection-item-description p');\n  var speed;\n  if ($(window).width() > 674) {\n    speed = 1000;\n  } else {\n    speed = 0;\n  }\n  element.each(function () {\n    counter.each(function () {\n      var $this = $(this);\n      var data = $this.attr('data-number');\n      var type = $this.attr('data-type');\n      $({\n        value: 0\n      }).animate({\n        value: data\n      }, {\n        duration: speed,\n        easing: 'swing',\n        step: function step(now, fx) {\n          // resize the text\n          ffFontSizer();\n          var num = Math.round(now);\n          if (type === 'dollar' || type === 'none') {\n            var numCurr = num.toString().replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, '$1,');\n            if (type === 'none') {\n              $this.html(numCurr);\n            } else if (type === 'dollar') {\n              $this.html('$' + numCurr);\n            }\n          } else if (type === 'percent') {\n            $this.html(num + '%');\n          }\n        }\n      });\n    });\n  });\n}\n$(window).on('resize', function () {\n  ffFontSizer();\n});\n\n//# sourceURL=webpack:///./build/js/components/counter.js?")},"./build/js/components/fireslider_settings.js":function(module,exports){eval('// =============================================================================\n//  fireslider settings\n//= =============================================================================\n\n// -------------------------------------\n//  carousel\n// -------------------------------------\n// $(".js-slider--carousel .js-slider__contents > ul").each(function(){\n//   $(this).fireSlider({\n//     delay:7500,\n//     disableLinks:false,\n//     show:3,\n//     active:2,\n//     effect:"fadeInOut",\n//     activeSlideClass:"slide--active",\n//     activePagerClass:"slider__pager--active",\n//     breakpoints:sliderCarouselBreakpoints,\n//     pager:$(this).parents(".slider__contents").siblings(".slider__pager"),\n//     prev:$(this).parents(".slider__contents").siblings(".slider__nav").find(".slider-nav--prev"),\n//     next:$(this).parents(".slider__contents").siblings(".slider__nav").find(".slider-nav--next")\n//   })\n// });\n\n// -------------------------------------\n//  NO carousel\n// -------------------------------------\n// $(".js-slider--no-carousel .js-slider__contents > ul").each(function(){\n//   $(this).fireSlider({\n//     delay:7500,\n//     disableLinks:false,\n//     show:1,\n//     active:1,\n//     effect:"fadeInOut",\n//     activeSlideClass:"slide--active",\n//     activePagerClass:"slider__pager--active",\n//     pager:$(this).parents(".slider__contents").siblings(".slider__pager"),\n//     prev:$(this).parents(".slider__contents").siblings(".slider__nav").find(".slider-nav--prev"),\n//     next:$(this).parents(".slider__contents").siblings(".slider__nav").find(".slider-nav--next")\n//   })\n// });\n\n// -------------------------------------\n//  breakpoints example\n// -------------------------------------\n// var bps = [\n//     {breakpoint: 1, show: 1, active: 1},\n//     {breakpoint: 640, show: 2, active: 1},\n//     {breakpoint: 1000, show: 4, active: 2}\n// ];\n\n// Spotlight Slider\nif ($(\'.spotlight-container ul > li\').length > 1) {\n  $(\'.spotlight-container ul\').each(function () {\n    $(this).fireSlider({\n      delay: 8000,\n      hoverPause: true,\n      pager: $(\'.spotlight-container .slider-controls-pager\'),\n      prev: $(this).parents(\'.slider__contents\').siblings(\'.slider__controls\').find(\'.slider-nav--prev\'),\n      next: $(this).parents(\'.slider__contents\').siblings(\'.slider__controls\').find(\'.slider-nav--next\')\n    });\n  });\n} else {\n  $(\'.spotlight-container\').addClass(\'single-slide\');\n}\n\n// Logos Slider\nvar bps = [{\n  breakpoint: 1,\n  show: 1,\n  active: 1\n}, {\n  breakpoint: 640,\n  show: 2,\n  active: 1\n}, {\n  breakpoint: 980,\n  show: 3,\n  active: 1\n}, {\n  breakpoint: 1024,\n  show: 4,\n  active: 1\n}, {\n  breakpoint: 1440,\n  show: 5,\n  active: 2\n}];\nif ($(\'.logos-container .collection--list ul > li\').length > 1) {\n  $(\'.logos-container .collection--list ul\').fireSlider({\n    active: 2,\n    delay: 8000,\n    hoverPause: true,\n    disableLinks: false,\n    prev: $(\'.logos-container\').find(\'.slider-nav--prev\'),\n    next: $(\'.logos-container\').find(\'.slider-nav--next\'),\n    breakpoints: bps\n  });\n}\n\n//# sourceURL=webpack:///./build/js/components/fireslider_settings.js?')},"./build/js/components/focusr.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"focusr\", function() { return focusr; });\n/// /////////////////////////////////////////////////////////////////////////////\n// Focusr.js\n// when any <triggerElement> element is clicked <targetElement> is gived focus\n// usage:\n// focusr($('.search-trigger'), $('.search-input input'));\n/// /////////////////////////////////////////////////////////////////////////////\nfunction focusr(triggerElement, targetElement) {\n  triggerElement.on('click', function () {\n    targetElement.focus();\n  });\n}\n\n//# sourceURL=webpack:///./build/js/components/focusr.js?")},"./build/js/components/landing_page.js":function(module,exports){eval("function landingImage(element, options) {\n  $(element).each(function () {\n    var imgSrc = $(this).find('.masthead-container img').first().attr('src');\n    $(this).find('.masthead-container').hide();\n    $(this).css('background', 'url(' + imgSrc + ')' + options);\n  });\n}\n$(document).ready(function () {\n  landingImage($('.has-bg-landing'), 'center center / cover no-repeat');\n});\n\n//# sourceURL=webpack:///./build/js/components/landing_page.js?")},"./build/js/components/navChecker.js":function(module,exports){eval("// =============================================================================\n// Nav Checker\n// =============\n// get the combined widths of mutlitple elements and\n// check to see if it is greater than the containers width\n// =============================================================================\n\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n// call function outside of $(document).ready\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n// examples\n//= =======================================\n// $('header .wrap').navChecker({\n//   activeClass: 'added-class',\n//   children: [$('nav.dropdown > ul > li')],\n//   targets: [$('body'), $('.search-block')],\n//   minWidth: 1024\n// });\n//= =======================================\n\n// default settings\n//= =======================================\n// $('header .wrap').navChecker();\n//= =======================================\n\n// =============================================================================\n// activeClass: the class that is added to 'targets', default \"desktop-nav-is-too-wide\"\n// children: array of jquery elements to calc widths, defaults to all direct children\n// targets: array of jquery elements that 'activeClass' is applied\n// minWidth: minimum width of window. if window is less than this number the activeClass will be applied.\n// =============================================================================\n\n(function ($, window, document) {\n  var pluginName = 'navChecker';\n\n  // TODO: turn debug off\n  var debug = false;\n  function NavChecker(el, options, sel) {\n    this.$el = $(el);\n    this.selector = sel;\n    var defaults = {\n      activeClass: 'desktop-nav-is-too-wide',\n      children: [],\n      childrenWidth: 0,\n      targets: [$('body')],\n      minWidth: 0\n    };\n    this.options = $.extend({}, defaults, options);\n    this.init();\n  }\n  NavChecker.prototype = {\n    // Initialize children and events\n    init: function init() {\n      var plugin = this;\n\n      // If children are not set, get this elements direct children'\n      if (plugin.options.children.length === 0) {\n        plugin.options.children.push(plugin.$el.children());\n      }\n      plugin.initEvents();\n      plugin.checkSize();\n    },\n    // Events here\n    initEvents: function initEvents() {\n      var plugin = this;\n      $(window).resize(function () {\n        plugin.checkSize();\n      });\n      $(window).on('load', function () {\n        plugin.checkSize();\n      });\n      $(document).ready(function () {\n        plugin.getChildren();\n        plugin.checkSize();\n      });\n    },\n    // add all children widths together\n    getChildren: function getChildren() {\n      var plugin = this;\n      plugin.options.childrenWidth = 0;\n      $.each(plugin.options.children, function (index, child) {\n        child.each(function () {\n          if (debug === true) {\n            console.log('get child: ' + plugin.options.childrenWidth);\n            console.log(index + 'child width: ' + child.outerWidth(true));\n          }\n          plugin.options.childrenWidth += $(this).outerWidth(true);\n        });\n      });\n    },\n    // run comparison of childrenWidth and containerWidth\n    checkSize: function checkSize() {\n      var plugin = this;\n      var containerWidth = plugin.$el.width();\n      if (debug === true) {\n        console.log('container: ' + containerWidth);\n        console.log('childrenWidth:  ' + plugin.options.childrenWidth);\n      }\n      if ($(window).width() > plugin.options.minWidth) {\n        if (plugin.options.childrenWidth >= containerWidth) {\n          plugin.updateClasses('add');\n        } else {\n          plugin.updateClasses('remove');\n        }\n      } else {\n        plugin.updateClasses('add');\n      }\n    },\n    // Add or remove 'activeClass' to 'targets'\n    updateClasses: function updateClasses(operation) {\n      var plugin = this;\n      $.each(plugin.options.targets, function (index, target) {\n        if (operation === 'remove') {\n          target.removeClass(plugin.options.activeClass);\n        } else {\n          target.addClass(plugin.options.activeClass);\n        }\n      });\n    }\n  };\n  $.fn[pluginName] = function (options) {\n    var sel = this.selector;\n    return this.each(function () {\n      if (!$.data(this, pluginName)) {\n        $.data(this, pluginName, new NavChecker(this, options, sel));\n      }\n    });\n  };\n})(jQuery, window, document);\n\n//# sourceURL=webpack:///./build/js/components/navChecker.js?")},"./build/js/components/placeholders.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"placeHolders\", function() { return placeHolders; });\n/* Placeholders function that puts the label as a placeholder in input type text, textarea, and option\n/* To use replace 'form' with whatever you want to target, 'form' will do all forms on site:\n//=============================================\n/* placeHolders('form');\n//============================================= */\n\nfunction placeHolders(form) {\n  $(form).find('.e2ma_signup_form_row').each(function () {\n    // if form has class\n    if ($(form).hasClass('fdpc_designready_order_form')) {\n      return;\n    }\n\n    // if 'this' has class\n    if ($(this).hasClass('form-row--sub-options')) {\n      return;\n    }\n    if ($(this).hasClass('form-row--file')) {\n      return;\n    }\n    if ($(this).hasClass('form-row--date')) {\n      return;\n    }\n    if ($(this).hasClass('form-row--datetime')) {\n      return;\n    }\n    if ($(this).hasClass('form-row--time')) {\n      return;\n    }\n    if ($(this).hasClass('payment--cc-exp')) {\n      return;\n    }\n\n    // if any parents have classes\n    if ($(this).parents('.checkout_process, .event-calendar-search__jump, .catalogs--pageflex').length) {\n      return;\n    }\n    var label = $(this).find('.form-row__label label, .e2ma_signup_form_label');\n    var input = $(this).find('.form-row__controls input[type=\"text\"], .form-row__controls input[type=\"email\"], .form-row__controls input[type=\"password\"], .e2ma_signup_form_element input[type=\"text\"], .e2ma_signup_form_element input[type=\"email\"]');\n    var textarea = $(this).find('textarea');\n    var text = $.trim(label.text()).replace(/ +(?= )/g, '');\n    var isRequired = false;\n    if ($(this).hasClass('form-row--required')) {\n      isRequired = true;\n    }\n    if (isRequired) {\n      text = text + ' *';\n    }\n    if (!text) {\n      return;\n    }\n    if (input.length) {\n      $(input).attr('placeholder', text);\n      label.hide();\n      $(this).find('.form-row__label').hide();\n    }\n    if (textarea.length) {\n      $(textarea).attr('placeholder', text);\n      label.hide();\n      $(this).find('.form-row__label').hide();\n    }\n\n    // show things that should be showing\n    if ($(this).hasClass('payment--cc-csc')) {\n      $(this).find('.form-row__label').show();\n    }\n  });\n}\n\n//# sourceURL=webpack:///./build/js/components/placeholders.js?")},"./build/js/site.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components_backgroundImage_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./build/js/components/backgroundImage.js\");\n/* harmony import */ var _components_bodyClassToggler_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./build/js/components/bodyClassToggler.js\");\n/* harmony import */ var _components_counter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./build/js/components/counter.js\");\n/* harmony import */ var _components_focusr_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./build/js/components/focusr.js\");\n/* harmony import */ var _components_placeholders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./build/js/components/placeholders.js\");\n// =============================================================================\n// Imports\n// =============================================================================\n\n\n\n\n\n\n__webpack_require__(\"./build/js/components/accordianMenu.js\");\n__webpack_require__(\"./build/js/components/navChecker.js\");\n__webpack_require__(\"./build/js/components/fireslider_settings.js\");\n__webpack_require__(\"./build/js/components/landing_page.js\");\n\n// stop animating if user scrolls\n$('html, body').bind('scroll mousedown DOMMouseScroll mousewheel keyup', function () {\n  $('main').velocity('stop');\n});\nfunction autoSizer(element, container) {\n  var elementFontSize = parseInt(element.css('font-size'));\n  var elementWidth = element.width();\n  var containerWidth = container.width();\n  while (elementWidth > containerWidth + 1) {\n    elementWidth = element.width();\n    containerWidth = container.width();\n    elementFontSize = elementFontSize - 2;\n    element.css('font-size', elementFontSize);\n  }\n}\n$(document).ready(function () {\n  autoSizer($('.intro-text h1'), $('.intro-text'));\n});\n$(window).resize(function () {\n  autoSizer($('.intro-text h1'), $('.intro-text'));\n});\n/// /////////////////////////////////////////////////////////////////////////////\n// scroll\n/// /////////////////////////////////////////////////////////////////////////////\n$(window, document).on('scroll', function () {\n  $('.featured-buttons-container').addClass('is-visible');\n});\n/// /////////////////////////////////////////////////////////////////////////////\n// ready\n/// /////////////////////////////////////////////////////////////////////////////\n$(document).ready(function () {\n  if ($(document).scrollTop() > 10) {\n    $('.featured-buttons-container').addClass('is-visible');\n  }\n  // Background Images\n  /// /////////////////////////////////////////////////////////////////////////////\n  Object(_components_backgroundImage_js__WEBPACK_IMPORTED_MODULE_0__[\"backgroundImage\"])($('.has-bg'), 'center center / cover no-repeat', 2);\n  Object(_components_backgroundImage_js__WEBPACK_IMPORTED_MODULE_0__[\"backgroundImage\"])($('.has-bg__collection li'), 'center center / cover no-repeat', 2);\n  Object(_components_backgroundImage_js__WEBPACK_IMPORTED_MODULE_0__[\"backgroundImage\"])($('.has-bg-li__collection li .collection-item-image'), 'center center / cover no-repeat', 1);\n  Object(_components_backgroundImage_js__WEBPACK_IMPORTED_MODULE_0__[\"backgroundImage\"])($('.has-bg-li__spotlight li .spotlight-image'), 'center center / cover no-repeat', 2);\n  /// /////////////////////////////////////////////////////////////////////////////\n  // featured background and parallax\n  /// /////////////////////////////////////////////////////////////////////////////\n  $('.featured-container').each(function () {\n    var $this = $(this);\n    var imgSrc = $(this).find('img').first().attr('src');\n    $(this).find('img').first().hide();\n    if (imgSrc) {\n      $(this).find('.background-holder').css('background', 'url(' + imgSrc + ')' + 'center center / cover no-repeat');\n    }\n    $(window).on('scroll', function () {\n      var scrolltop = $(window).scrollTop();\n      var delta = scrolltop / 4;\n      $this.find('.background-holder').css('top', delta);\n    });\n  });\n  /// /////////////////////////////////////////////////////////////////////////////\n  // spotlight parallax\n  /// /////////////////////////////////////////////////////////////////////////////\n  $('.spotlight-container').each(function () {\n    var $this = $(this);\n    var imgSrc = $(this).find('.image img').first().attr('src');\n    $(this).find('.image img').first().parent('.image').hide();\n    if (imgSrc) {\n      $this.find('.background-holder').css('background', 'url(' + imgSrc + ')' + 'center center / cover no-repeat');\n    }\n    $(window).on('scroll', function () {\n      var scrolltop = $(window).scrollTop() - $this.find('.background-holder').offset().top;\n      var delta = scrolltop / 4;\n      $this.find('.background-holder').css('top', delta);\n    });\n  });\n  /// /////////////////////////////////////////////////////////////////////////////\n  // internal masthead\n  /// /////////////////////////////////////////////////////////////////////////////\n  $('.masthead-container').each(function () {\n    var $this = $(this);\n    var imgSrc = $(this).find('img').first().attr('src');\n    $(this).find('img').first().parent('.image').hide();\n    if (imgSrc) {\n      $this.find('.background-holder').css('background', 'url(' + imgSrc + ')' + 'center center / cover no-repeat');\n    }\n    // parallax\n    $(window).on('scroll', function () {\n      var scrolltop = $(window).scrollTop() - $this.find('.background-holder').offset().top;\n      var delta = scrolltop / 4;\n      if (delta > 0) {\n        $this.find('.background-holder').css('top', delta);\n      }\n    });\n  });\n  // Update emma form button\n  /// /////////////////////////////////////////////////////////////////////////////\n  $('#e2ma_signup_submit_button').attr('value', 'Sign Up');\n  // Placeholders\n  /// /////////////////////////////////////////////////////////////////////////////\n  Object(_components_placeholders_js__WEBPACK_IMPORTED_MODULE_4__[\"placeHolders\"])('.email-marketing-block form');\n  // updatevalue\n  /// /////////////////////////////////////////////////////////////////////////////\n  $('.search-block input').attr('placeholder', 'Search...');\n  // Nav Checker\n  /// /////////////////////////////////////////////////////////////////////////////\n  // $('header .wrap').navChecker();\n  $('.bottom-footer .wrap').navChecker({\n    activeClass: 'bottom-footer-is-too-wide',\n    children: [$('.bottom-footer .copy-container'), $('.bottom-footer .policy-container'), $('.bottom-footer .powered-by-block')]\n  });\n  // Body Class Toggler\n  /// /////////////////////////////////////////////////////////////////////////////\n  Object(_components_bodyClassToggler_js__WEBPACK_IMPORTED_MODULE_1__[\"bodyClassToggler\"])('.menu-trigger', 'menu-is-visible');\n  Object(_components_bodyClassToggler_js__WEBPACK_IMPORTED_MODULE_1__[\"bodyClassToggler\"])('.search-trigger', 'search-is-visible');\n  Object(_components_bodyClassToggler_js__WEBPACK_IMPORTED_MODULE_1__[\"bodyClassToggler\"])('.sidebar-trigger', 'sidebar-is-visible');\n  // Escapr\n  /// /////////////////////////////////////////////////////////////////////////////\n  $(document).keyup(function (e) {\n    if (e.keyCode === 27) {\n      $('body.search-is-visible').removeClass('search-is-visible');\n      $('body.menu-is-visible').removeClass('menu-is-visible');\n      $('body.sidebar-is-visible').removeClass('sidebar-is-visible');\n    }\n  });\n  // Focusr\n  /// /////////////////////////////////////////////////////////////////////////////\n  Object(_components_focusr_js__WEBPACK_IMPORTED_MODULE_3__[\"focusr\"])($('.search-trigger'), $('.search-block input'));\n  // scroll down button\n  /// /////////////////////////////////////////////////////////////////////////////\n  $('.continue-scrolling-arrow').on('click', function (e) {\n    e.preventDefault();\n    var headerHeight = $('header').outerHeight();\n    // console.log(headerHeight);\n    // $('main').velocity(\"scroll\", {duration: 1000, offset: -headerHeight});\n    var featuredHeight = $('.featured-buttons-container').outerHeight();\n    $('.featured-buttons-container').velocity('scroll', {\n      duration: 1000,\n      offset: -headerHeight + -featuredHeight / 2\n    });\n  });\n\n  //  fast facts counter\n  /// /////////////////////////////////////////////////////////////////////////////\n  function ffSizer() {\n    $('.fast-facts-container li').each(function () {\n      var width = $(this).find('.collection-item-description').width();\n      $(this).find('.collection-item-description').height(width);\n    });\n  }\n  ffSizer();\n  // WINDOW resize ready load\n  $(window).on('resize ready load', function () {\n    ffSizer();\n  });\n  // fast facts counter func\n  if ($('.fast-facts-container').length > 0 && $(window).width() > 674) {\n    var featTop = $('.end-fast-facts').offset().top - $(window).innerHeight();\n    var triggered = false;\n    $(function () {\n      $(window).bind('scroll load', function () {\n        var bodyTop = $(window).scrollTop();\n        if (triggered === false) {\n          if (bodyTop > featTop) {\n            triggered = true;\n            Object(_components_counter_js__WEBPACK_IMPORTED_MODULE_2__[\"counter\"])($('.fast-facts-container'));\n          }\n        }\n      });\n    });\n  } else {\n    Object(_components_counter_js__WEBPACK_IMPORTED_MODULE_2__[\"counter\"])($('.fast-facts-container'));\n  }\n  // Spotlight nav markup\n  /// /////////////////////////////////////////////////////////////////////////////\n  if ($('.spotlight-container').length > 0) {\n    $('.spotlight-container li').each(function () {\n      var pager = $(this).parents('ul').parents('.slider__contents').siblings('.slider__controls').clone(true, true);\n      $(this).find('.spotlight-text').after(pager);\n      $(this).find('.spotlight-content .slider__controls, .spotlight-content .spotlight-button').wrapAll('<div class=\"spotlight-custom-container\"/>');\n    });\n  }\n  // news date abbrev\n  /// /////////////////////////////////////////////////////////////////////////////\n  $('.news-article-meta .date-month').each(function () {\n    var month = $(this).text();\n    var monthNew = month.substring(0, 3);\n    $(this).text(monthNew);\n  });\n  $('.news-article-meta .date-day').each(function () {\n    var month = parseInt($(this).text());\n    if (month < 10) {\n      month = '0' + month.toString();\n      $(this).text(month);\n    }\n  });\n  /// /////////////////////////////////////////////////////////////////////////////\n  // News functionality\n  /// /////////////////////////////////////////////////////////////////////////////\n  if ($('.news-container').length > 0) {\n    $('.news-container .news-list').each(function () {\n      $('.news-main .news-articles').remove();\n      $(this).find('>*:not(.news-articles)').wrap('<div class=\"other-stuff-container\"></div>');\n    });\n    $('.news-list .news-article').hover(function () {\n      if (!$(this).hasClass('active')) {\n        $(this).siblings().removeClass('active');\n        $('.news-main-content').empty();\n        // var link = $(this).find('.news-article-title a').attr('href');\n        var title = $(this).find('.news-article-title').html();\n        var descr = $(this).find('.news-article-description').html();\n        var image = $(this).find('.news-article-image img').attr('src');\n        var date = $(this).find('.news-article-meta--date').html();\n        var author = $(this).find('.news-article-meta--author').html();\n        var titleHTML = '';\n        var descHTML = '';\n        // var linkHTML = '';\n        var dateHTML = '';\n        var authorHTML = '';\n        if (image) {\n          $('.news-main .background-holder:not(.active)').css('background-image', 'url(' + image + ')');\n          $('.news-main .background-holder').toggleClass('active');\n          $('.news-main').removeClass('no-overlay');\n        } else {\n          $('.news-main .background-holder:not(.active)').css('background-image', 'none');\n          $('.news-main .background-holder').toggleClass('active');\n          $('.news-main').addClass('no-overlay');\n        }\n        $(this).addClass('active');\n        if (title) {\n          titleHTML = '<div class=\"news-article-title\">' + title + '</div>';\n        }\n        if (descr) {\n          descHTML = '<div class=\"news-article-description\">' + descr + '</div>';\n        }\n        if (date) {\n          dateHTML = '<div class=\"news-article-meta news-article-meta--date\">' + date + '</div>';\n        }\n        if (author) {\n          authorHTML = '<div class=\"news-article-meta news-article-meta--author\">' + author + '</div>';\n        }\n        // limit description length\n        var limit = 300;\n        var descTemp = descHTML.substr(0, limit);\n        var descLength = descHTML.length;\n        if (descLength > 300) {\n          descHTML = descTemp + '<span class=\"ellipses\">...</span>';\n        }\n        $('.news-main-content').append('<div class=\"news-article-meta-container\">' + dateHTML + authorHTML + '</div>' + titleHTML + descHTML);\n      }\n    });\n    $('.news-list .news-articles--list .news-article:first').trigger('mouseover');\n  }\n  // =============================================================================\n  //  limit character\n  //= =============================================================================\n  $.fn.textlimit = function () {\n    return this.each(function () {\n      var $elem = $(this);\n      var $limit = 160;\n      var $str = $elem.html();\n      var $strtemp = $str.substr(0, $limit);\n      // only add ellipses if str > limit\n      if ($str.length > $limit) {\n        $str = $strtemp + '<span class=\"ellipses\">...</span>';\n        $elem.html($str);\n      }\n    });\n  };\n  // spotlight description\n  $('.spotlight-content .spotlight-text__content p').textlimit();\n  // =============================================================================\n  //  toggle description length\n  //= =============================================================================\n  // $(\"span.hide\").hide();\n  if ($('.news-container').length > 0) {\n    $('.news-container .news-article').each(function () {\n      var elipses = $(this).find('.news-article-description .elipses');\n      if (elipses) {\n        $(elipses).on('click', function () {\n          $(this).siblings('.news-article-description span').slideDown({\n            complete: function complete() {\n              $(this).addClass('show').removeClass('hide');\n            }\n          });\n          $(this).hide();\n        });\n      }\n    });\n  }\n}); // end document ready\n\n//# sourceURL=webpack:///./build/js/site.js?")},0:function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__("./build/js/site.js");\n\n\n//# sourceURL=webpack:///multi_./build/js/site.js?')}});
