!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;\n    if ($(this).has('img')) {\n      imgSrc = $(this).find('img').first().attr('src');\n    }\n    if (imgSrc) {\n      $(this).css('background', 'url(' + imgSrc + ')' + options);\n      if (hide === 1) {\n        $(this).find('img').first('img').hide();\n      } else {\n        $(this).find('img').parent('.image, .spotlight-image').hide();\n      }\n    } else {\n      $(this).find('img').hide();\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\n//  =================\n//  function that takes an element and applies a class when clicked\n//  -----------------\n//  example:\n//  bodyClassToggler('mobile_menu', 'mobile_menu_is_visible');\n//  -----------------\n// ==============================================================================\nfunction bodyClassToggler(element, elemClass) {\n  $(element).on('click', function () {\n    $('body').toggleClass(elemClass);\n  });\n}\n\n//# sourceURL=webpack:///./build/js/components/bodyClassToggler.js?")},"./build/js/components/fireslider_settings.js":function(module,exports){eval('// =============================================================================\n//  fireslider settings\n//= =============================================================================\n\n// --------------------------------------------------------------------------//\n// --------------------------------------------------------------------------//\n// this is what is set in the core js   //\n// --------------------------------------------------------------------------//\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\n\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}\n\n// sponsors\n// var bps = [\n//     {breakpoint: 1, show: 1, active: 1},\n//     {breakpoint: 640, show: 2, active: 1},\n//     {breakpoint: 800, show: 3, active: 1},\n//     {breakpoint: 1000, show: 4, active: 2}\n// ];\n\n// if ( $(\'.sponsors-container ul > li\').length > 1 ) {\n//   $(\'.sponsors-container ul\').fireSlider({\n//     active: 2,\n//     delay: 8000,\n//     disableLinks: false,\n//     prev:$(this).parent().siblings(".slider__controls").find(".slider-nav--prev"),\n//     next:$(this).parent().siblings(".slider__controls").find(".slider-nav--next"),\n//     breakpoints: bps\n//   });\n// }\n\n//# sourceURL=webpack:///./build/js/components/fireslider_settings.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// });\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// =============================================================================\n\n(function ($, window, document) {\n  var pluginName = 'navChecker';\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    };\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      $(window).on('load', 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          plugin.options.childrenWidth += $(this).outerWidth();\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 (plugin.options.childrenWidth >= containerWidth) {\n        plugin.updateClasses('add');\n      } else {\n        plugin.updateClasses('remove');\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/components/updatevalue.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateValue\", function() { return updateValue; });\n/* Function that updates the value field of text inputs */\nfunction updateValue(input, text) {\n  input.val(text);\n  if (input.val() === null) {\n    input.val(text);\n  }\n  input.focus(function () {\n    if (input.val() === text) {\n      input.val('');\n    }\n  });\n  input.blur(function () {\n    if (input.val() === null || input.val() === '') {\n      input.val(text);\n    }\n  });\n}\n\n//# sourceURL=webpack:///./build/js/components/updatevalue.js?")},"./build/js/site.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components_updatevalue_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./build/js/components/updatevalue.js\");\n/* harmony import */ var _components_backgroundImage_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./build/js/components/backgroundImage.js\");\n/* harmony import */ var _components_bodyClassToggler_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./build/js/components/bodyClassToggler.js\");\n/* harmony import */ var _components_placeholders_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./build/js/components/placeholders.js\");\n// =============================================================================\n// Imports\n// =============================================================================\n\n\n\n\n\n__webpack_require__(\"./build/js/components/accordianMenu.js\");\n__webpack_require__(\"./build/js/components/fireslider_settings.js\");\n__webpack_require__(\"./build/js/components/landing_page.js\");\n__webpack_require__(\"./build/js/components/navChecker.js\");\n\n// textWrapper\nfunction textWrapper(targetContainer, target, separator, wrapClass) {\n  $(targetContainer).each(function () {\n    $(this).find(target).html(function (i, html) {\n      if ($(this).text().indexOf(separator) >= 0) {\n        var splitText = $(this).text().split(separator);\n        var formattedText = splitText[0] + '<span class=\"' + wrapClass + '\">' + splitText[1] + '</span>';\n        $(this).html(formattedText);\n      }\n    });\n  });\n}\n$('.main-nav-container').navChecker({\n  activeClass: 'desktop_nav_is_too_wide'\n});\n$('.top-nav-container').navChecker({\n  activeClass: 'top_nav_is_too_wide'\n});\n\n// =============================================================================\n// document ready\n// =============================================================================\n$(document).ready(function () {\n  Object(_components_backgroundImage_js__WEBPACK_IMPORTED_MODULE_1__[\"backgroundImage\"])($('.has-bg'), 'center center / cover no-repeat', 2);\n  Object(_components_backgroundImage_js__WEBPACK_IMPORTED_MODULE_1__[\"backgroundImage\"])($('.has-bg__collection li'), 'center center / cover no-repeat', 2);\n  Object(_components_backgroundImage_js__WEBPACK_IMPORTED_MODULE_1__[\"backgroundImage\"])($('.has-bg-li__collection li .collection-item-image'), 'center center / cover no-repeat', 1);\n  Object(_components_updatevalue_js__WEBPACK_IMPORTED_MODULE_0__[\"updateValue\"])($('.search-container input'), 'Search');\n  textWrapper($('.testimonial-container'), '.collection-item-description', '*', 'collection-item-quote');\n  Object(_components_placeholders_js__WEBPACK_IMPORTED_MODULE_3__[\"placeHolders\"])($('.e2ma_signup_form form'));\n  Object(_components_bodyClassToggler_js__WEBPACK_IMPORTED_MODULE_2__[\"bodyClassToggler\"])($('.menu-toggle'), 'mobile_menu_is_visible');\n\n  // Add search button to last emma input in the footer\n  $('.email-marketing-content .e2ma_signup_form_row:last .e2ma_signup_form_element').append('<div class=\"search_button\" ><i class=\"fa fa-arrow-right\"></i><input type=\"submit\" value=\"\"></div>');\n\n  // remove class when clicking outside of mobile nav\n  $('.site-container-overlay').on('click', function (e) {\n    $('body').removeClass('mobile_menu_is_visible');\n  });\n\n  // =============================================================================\n  // featured links  if li has a link, wrap the li contents in the same a\n  // =============================================================================\n  $('.featured-container li').each(function () {\n    var aLink = $(this).find('.collection-item-label a').attr('href');\n    if (aLink) {\n      $(this).addClass('has-link').wrapInner(\"<a class='collection-item-link' href='\" + aLink + \"'></div>\");\n    }\n  });\n\n  // =============================================================================\n  //  document key up\n  //= =============================================================================\n  $(document).keyup(function (e) {\n    if (e.keyCode === 27) {\n      $('.mobile_menu_is_visible').removeClass('mobile_menu_is_visible');\n    }\n  });\n\n  // =============================================================================\n  //  spotlight arrows\n  //= =============================================================================\n  // if spotlight section has less than 2 items hide the prev and next arrows\n  var spotlightLength = $('.spotlight-container ul > li').length;\n  if (spotlightLength < 2) {\n    $('.spotlight-container .controls-container .slider--controls').css('display', 'none');\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?')}});
