foundation-rails 6.6.2.0 → 6.9.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +2 -0
  4. data/Appraisals +4 -0
  5. data/Gemfile +1 -1
  6. data/Gemfile.lock +198 -145
  7. data/bower.json +3 -3
  8. data/foundation-rails.gemspec +4 -4
  9. data/gemfiles/rails_7.1.gemfile +10 -0
  10. data/gemfiles/rails_7.1.gemfile.lock +261 -0
  11. data/lib/foundation/rails/version.rb +1 -1
  12. data/lib/generators/foundation/templates/_settings.scss +32 -28
  13. data/vendor/assets/js/foundation.cjs.js +1996 -3162
  14. data/vendor/assets/js/foundation.cjs.js.map +1 -1
  15. data/vendor/assets/js/foundation.es6.js +385 -292
  16. data/vendor/assets/js/foundation.es6.js.map +1 -1
  17. data/vendor/assets/js/foundation.esm.js +1663 -2832
  18. data/vendor/assets/js/foundation.esm.js.map +1 -1
  19. data/vendor/assets/js/foundation.js +2440 -3870
  20. data/vendor/assets/js/foundation.js.map +1 -1
  21. data/vendor/assets/js/foundation.min.js +1 -1
  22. data/vendor/assets/js/foundation.min.js.map +1 -1
  23. data/vendor/assets/js/plugins/foundation.abide.js +238 -344
  24. data/vendor/assets/js/plugins/foundation.abide.js.map +1 -1
  25. data/vendor/assets/js/plugins/foundation.abide.min.js +1 -1
  26. data/vendor/assets/js/plugins/foundation.abide.min.js.map +1 -1
  27. data/vendor/assets/js/plugins/foundation.accordion.js +197 -275
  28. data/vendor/assets/js/plugins/foundation.accordion.js.map +1 -1
  29. data/vendor/assets/js/plugins/foundation.accordion.min.js +1 -1
  30. data/vendor/assets/js/plugins/foundation.accordion.min.js.map +1 -1
  31. data/vendor/assets/js/plugins/foundation.accordionMenu.js +174 -260
  32. data/vendor/assets/js/plugins/foundation.accordionMenu.js.map +1 -1
  33. data/vendor/assets/js/plugins/foundation.accordionMenu.min.js +1 -1
  34. data/vendor/assets/js/plugins/foundation.accordionMenu.min.js.map +1 -1
  35. data/vendor/assets/js/plugins/foundation.core.js +308 -447
  36. data/vendor/assets/js/plugins/foundation.core.js.map +1 -1
  37. data/vendor/assets/js/plugins/foundation.core.min.js +1 -1
  38. data/vendor/assets/js/plugins/foundation.core.min.js.map +1 -1
  39. data/vendor/assets/js/plugins/foundation.drilldown.js +258 -358
  40. data/vendor/assets/js/plugins/foundation.drilldown.js.map +1 -1
  41. data/vendor/assets/js/plugins/foundation.drilldown.min.js +1 -1
  42. data/vendor/assets/js/plugins/foundation.drilldown.min.js.map +1 -1
  43. data/vendor/assets/js/plugins/foundation.dropdown.js +289 -457
  44. data/vendor/assets/js/plugins/foundation.dropdown.js.map +1 -1
  45. data/vendor/assets/js/plugins/foundation.dropdown.min.js +1 -1
  46. data/vendor/assets/js/plugins/foundation.dropdown.min.js.map +1 -1
  47. data/vendor/assets/js/plugins/foundation.dropdownMenu.js +246 -346
  48. data/vendor/assets/js/plugins/foundation.dropdownMenu.js.map +1 -1
  49. data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js +1 -1
  50. data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js.map +1 -1
  51. data/vendor/assets/js/plugins/foundation.equalizer.js +178 -261
  52. data/vendor/assets/js/plugins/foundation.equalizer.js.map +1 -1
  53. data/vendor/assets/js/plugins/foundation.equalizer.min.js +1 -1
  54. data/vendor/assets/js/plugins/foundation.equalizer.min.js.map +1 -1
  55. data/vendor/assets/js/plugins/foundation.interchange.js +227 -326
  56. data/vendor/assets/js/plugins/foundation.interchange.js.map +1 -1
  57. data/vendor/assets/js/plugins/foundation.interchange.min.js +1 -1
  58. data/vendor/assets/js/plugins/foundation.interchange.min.js.map +1 -1
  59. data/vendor/assets/js/plugins/foundation.magellan.js +225 -336
  60. data/vendor/assets/js/plugins/foundation.magellan.js.map +1 -1
  61. data/vendor/assets/js/plugins/foundation.magellan.min.js +1 -1
  62. data/vendor/assets/js/plugins/foundation.magellan.min.js.map +1 -1
  63. data/vendor/assets/js/plugins/foundation.offcanvas.js +326 -471
  64. data/vendor/assets/js/plugins/foundation.offcanvas.js.map +1 -1
  65. data/vendor/assets/js/plugins/foundation.offcanvas.min.js +1 -1
  66. data/vendor/assets/js/plugins/foundation.offcanvas.min.js.map +1 -1
  67. data/vendor/assets/js/plugins/foundation.orbit.js +244 -347
  68. data/vendor/assets/js/plugins/foundation.orbit.js.map +1 -1
  69. data/vendor/assets/js/plugins/foundation.orbit.min.js +1 -1
  70. data/vendor/assets/js/plugins/foundation.orbit.min.js.map +1 -1
  71. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js +203 -278
  72. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js.map +1 -1
  73. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js +1 -1
  74. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js.map +1 -1
  75. data/vendor/assets/js/plugins/foundation.responsiveMenu.js +205 -255
  76. data/vendor/assets/js/plugins/foundation.responsiveMenu.js.map +1 -1
  77. data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js +1 -1
  78. data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js.map +1 -1
  79. data/vendor/assets/js/plugins/foundation.responsiveToggle.js +170 -226
  80. data/vendor/assets/js/plugins/foundation.responsiveToggle.js.map +1 -1
  81. data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js +1 -1
  82. data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js.map +1 -1
  83. data/vendor/assets/js/plugins/foundation.reveal.js +284 -444
  84. data/vendor/assets/js/plugins/foundation.reveal.js.map +1 -1
  85. data/vendor/assets/js/plugins/foundation.reveal.min.js +1 -1
  86. data/vendor/assets/js/plugins/foundation.reveal.min.js.map +1 -1
  87. data/vendor/assets/js/plugins/foundation.slider.js +322 -483
  88. data/vendor/assets/js/plugins/foundation.slider.js.map +1 -1
  89. data/vendor/assets/js/plugins/foundation.slider.min.js +1 -1
  90. data/vendor/assets/js/plugins/foundation.slider.min.js.map +1 -1
  91. data/vendor/assets/js/plugins/foundation.smoothScroll.js +138 -188
  92. data/vendor/assets/js/plugins/foundation.smoothScroll.js.map +1 -1
  93. data/vendor/assets/js/plugins/foundation.smoothScroll.min.js +1 -1
  94. data/vendor/assets/js/plugins/foundation.smoothScroll.min.js.map +1 -1
  95. data/vendor/assets/js/plugins/foundation.sticky.js +253 -394
  96. data/vendor/assets/js/plugins/foundation.sticky.js.map +1 -1
  97. data/vendor/assets/js/plugins/foundation.sticky.min.js +1 -1
  98. data/vendor/assets/js/plugins/foundation.sticky.min.js.map +1 -1
  99. data/vendor/assets/js/plugins/foundation.tabs.js +228 -317
  100. data/vendor/assets/js/plugins/foundation.tabs.js.map +1 -1
  101. data/vendor/assets/js/plugins/foundation.tabs.min.js +1 -1
  102. data/vendor/assets/js/plugins/foundation.tabs.min.js.map +1 -1
  103. data/vendor/assets/js/plugins/foundation.toggler.js +207 -294
  104. data/vendor/assets/js/plugins/foundation.toggler.js.map +1 -1
  105. data/vendor/assets/js/plugins/foundation.toggler.min.js +1 -1
  106. data/vendor/assets/js/plugins/foundation.toggler.min.js.map +1 -1
  107. data/vendor/assets/js/plugins/foundation.tooltip.js +275 -434
  108. data/vendor/assets/js/plugins/foundation.tooltip.js.map +1 -1
  109. data/vendor/assets/js/plugins/foundation.tooltip.min.js +1 -1
  110. data/vendor/assets/js/plugins/foundation.tooltip.min.js.map +1 -1
  111. data/vendor/assets/js/plugins/foundation.util.box.js +130 -186
  112. data/vendor/assets/js/plugins/foundation.util.box.js.map +1 -1
  113. data/vendor/assets/js/plugins/foundation.util.box.min.js +1 -1
  114. data/vendor/assets/js/plugins/foundation.util.box.min.js.map +1 -1
  115. data/vendor/assets/js/plugins/foundation.util.imageLoader.js +110 -150
  116. data/vendor/assets/js/plugins/foundation.util.imageLoader.js.map +1 -1
  117. data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js +1 -1
  118. data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js.map +1 -1
  119. data/vendor/assets/js/plugins/foundation.util.keyboard.js +157 -172
  120. data/vendor/assets/js/plugins/foundation.util.keyboard.js.map +1 -1
  121. data/vendor/assets/js/plugins/foundation.util.keyboard.min.js +1 -1
  122. data/vendor/assets/js/plugins/foundation.util.keyboard.min.js.map +1 -1
  123. data/vendor/assets/js/plugins/foundation.util.mediaQuery.js +167 -233
  124. data/vendor/assets/js/plugins/foundation.util.mediaQuery.js.map +1 -1
  125. data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js +1 -1
  126. data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js.map +1 -1
  127. data/vendor/assets/js/plugins/foundation.util.motion.js +123 -161
  128. data/vendor/assets/js/plugins/foundation.util.motion.js.map +1 -1
  129. data/vendor/assets/js/plugins/foundation.util.motion.min.js +1 -1
  130. data/vendor/assets/js/plugins/foundation.util.motion.min.js.map +1 -1
  131. data/vendor/assets/js/plugins/foundation.util.nest.js +123 -160
  132. data/vendor/assets/js/plugins/foundation.util.nest.js.map +1 -1
  133. data/vendor/assets/js/plugins/foundation.util.nest.min.js +1 -1
  134. data/vendor/assets/js/plugins/foundation.util.nest.min.js.map +1 -1
  135. data/vendor/assets/js/plugins/foundation.util.timer.js +116 -171
  136. data/vendor/assets/js/plugins/foundation.util.timer.js.map +1 -1
  137. data/vendor/assets/js/plugins/foundation.util.timer.min.js +1 -1
  138. data/vendor/assets/js/plugins/foundation.util.timer.min.js.map +1 -1
  139. data/vendor/assets/js/plugins/foundation.util.touch.js +172 -228
  140. data/vendor/assets/js/plugins/foundation.util.touch.js.map +1 -1
  141. data/vendor/assets/js/plugins/foundation.util.touch.min.js +1 -1
  142. data/vendor/assets/js/plugins/foundation.util.touch.min.js.map +1 -1
  143. data/vendor/assets/js/plugins/foundation.util.triggers.js +158 -222
  144. data/vendor/assets/js/plugins/foundation.util.triggers.js.map +1 -1
  145. data/vendor/assets/js/plugins/foundation.util.triggers.min.js +1 -1
  146. data/vendor/assets/js/plugins/foundation.util.triggers.min.js.map +1 -1
  147. data/vendor/assets/scss/_global.scss +18 -5
  148. data/vendor/assets/scss/components/_accordion-menu.scss +2 -2
  149. data/vendor/assets/scss/components/_badge.scss +1 -1
  150. data/vendor/assets/scss/components/_breadcrumbs.scss +2 -1
  151. data/vendor/assets/scss/components/_button-group.scss +13 -8
  152. data/vendor/assets/scss/components/_button.scss +13 -13
  153. data/vendor/assets/scss/components/_callout.scss +2 -2
  154. data/vendor/assets/scss/components/_close-button.scss +5 -4
  155. data/vendor/assets/scss/components/_dropdown-menu.scss +1 -1
  156. data/vendor/assets/scss/components/_label.scss +1 -1
  157. data/vendor/assets/scss/components/_menu.scss +54 -19
  158. data/vendor/assets/scss/components/_off-canvas.scss +18 -16
  159. data/vendor/assets/scss/components/_orbit.scss +3 -3
  160. data/vendor/assets/scss/components/_pagination.scss +1 -1
  161. data/vendor/assets/scss/components/_progress-bar.scss +1 -1
  162. data/vendor/assets/scss/components/_responsive-embed.scss +1 -1
  163. data/vendor/assets/scss/components/_reveal.scss +8 -3
  164. data/vendor/assets/scss/components/_slider.scss +5 -2
  165. data/vendor/assets/scss/components/_switch.scss +25 -2
  166. data/vendor/assets/scss/components/_table.scss +8 -7
  167. data/vendor/assets/scss/components/_tabs.scss +2 -2
  168. data/vendor/assets/scss/components/_top-bar.scss +7 -5
  169. data/vendor/assets/scss/components/_visibility.scss +45 -2
  170. data/vendor/assets/scss/forms/_label.scss +2 -1
  171. data/vendor/assets/scss/forms/_progress.scss +1 -1
  172. data/vendor/assets/scss/forms/_range.scss +1 -1
  173. data/vendor/assets/scss/forms/_select.scss +5 -4
  174. data/vendor/assets/scss/forms/_text.scss +2 -2
  175. data/vendor/assets/scss/foundation.scss +1 -1
  176. data/vendor/assets/scss/grid/_classes.scss +1 -1
  177. data/vendor/assets/scss/grid/_column.scss +3 -2
  178. data/vendor/assets/scss/grid/_flex-grid.scss +7 -6
  179. data/vendor/assets/scss/grid/_gutter.scss +1 -1
  180. data/vendor/assets/scss/grid/_layout.scss +5 -5
  181. data/vendor/assets/scss/grid/_position.scss +4 -4
  182. data/vendor/assets/scss/grid/_row.scss +1 -1
  183. data/vendor/assets/scss/motion-ui/util/_animation.scss +1 -1
  184. data/vendor/assets/scss/motion-ui/util/_series.scss +1 -1
  185. data/vendor/assets/scss/motion-ui/util/_unit.scss +54 -1
  186. data/vendor/assets/scss/prototype/_border-none.scss +1 -1
  187. data/vendor/assets/scss/prototype/_font-styling.scss +2 -2
  188. data/vendor/assets/scss/prototype/_overflow.scss +9 -0
  189. data/vendor/assets/scss/prototype/_rotate.scss +7 -5
  190. data/vendor/assets/scss/prototype/_separator.scss +5 -5
  191. data/vendor/assets/scss/prototype/_shadow.scss +1 -2
  192. data/vendor/assets/scss/prototype/_spacing.scss +33 -33
  193. data/vendor/assets/scss/prototype/_text-transformation.scss +3 -3
  194. data/vendor/assets/scss/settings/_settings.scss +32 -28
  195. data/vendor/assets/scss/typography/_base.scss +6 -6
  196. data/vendor/assets/scss/typography/_helpers.scss +10 -2
  197. data/vendor/assets/scss/typography/_print.scss +2 -2
  198. data/vendor/assets/scss/util/_breakpoint.scss +21 -18
  199. data/vendor/assets/scss/util/_color.scss +20 -8
  200. data/vendor/assets/scss/util/_direction.scss +1 -1
  201. data/vendor/assets/scss/util/_flex.scss +1 -1
  202. data/vendor/assets/scss/util/_math.scss +61 -9
  203. data/vendor/assets/scss/util/_mixins.scss +18 -14
  204. data/vendor/assets/scss/util/_selector.scss +1 -15
  205. data/vendor/assets/scss/util/_typography.scss +6 -6
  206. data/vendor/assets/scss/util/_unit.scss +14 -8
  207. data/vendor/assets/scss/util/_value.scss +3 -18
  208. data/vendor/assets/scss/vendor/normalize.scss +19 -2
  209. data/vendor/assets/scss/xy-grid/_cell.scss +16 -5
  210. data/vendor/assets/scss/xy-grid/_classes.scss +8 -8
  211. data/vendor/assets/scss/xy-grid/_frame.scss +12 -0
  212. data/vendor/assets/scss/xy-grid/_grid.scss +2 -2
  213. data/vendor/assets/scss/xy-grid/_gutters.scss +2 -2
  214. data/vendor/assets/scss/xy-grid/_layout.scss +1 -1
  215. data/vendor/assets/scss/xy-grid/_position.scss +12 -7
  216. data/vendor/assets/scss/xy-grid/_xy-grid.scss +2 -2
  217. metadata +21 -19
@@ -1,193 +1,47 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("./foundation.core"), require("./foundation.util.mediaQuery"), require("./foundation.util.motion"), require("jquery"));
3
+ module.exports = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.mediaQuery"), require("./foundation.util.motion"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["./foundation.core", "./foundation.util.mediaQuery", "./foundation.util.motion", "jquery"], factory);
5
+ define(["./foundation.core", "jquery", "./foundation.util.mediaQuery", "./foundation.util.motion"], factory);
6
6
  else if(typeof exports === 'object')
7
- exports["foundation.interchange"] = factory(require("./foundation.core"), require("./foundation.util.mediaQuery"), require("./foundation.util.motion"), require("jquery"));
7
+ exports["__FOUNDATION_EXTERNAL__"] = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.mediaQuery"), require("./foundation.util.motion"));
8
8
  else
9
- root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.interchange"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.mediaQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"], root["jQuery"]);
10
- })(window, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__, __WEBPACK_EXTERNAL_MODULE_jquery__) {
11
- return /******/ (function(modules) { // webpackBootstrap
12
- /******/ // The module cache
13
- /******/ var installedModules = {};
14
- /******/
15
- /******/ // The require function
16
- /******/ function __webpack_require__(moduleId) {
17
- /******/
18
- /******/ // Check if module is in cache
19
- /******/ if(installedModules[moduleId]) {
20
- /******/ return installedModules[moduleId].exports;
21
- /******/ }
22
- /******/ // Create a new module (and put it into the cache)
23
- /******/ var module = installedModules[moduleId] = {
24
- /******/ i: moduleId,
25
- /******/ l: false,
26
- /******/ exports: {}
27
- /******/ };
28
- /******/
29
- /******/ // Execute the module function
30
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
- /******/
32
- /******/ // Flag the module as loaded
33
- /******/ module.l = true;
34
- /******/
35
- /******/ // Return the exports of the module
36
- /******/ return module.exports;
37
- /******/ }
38
- /******/
39
- /******/
40
- /******/ // expose the modules object (__webpack_modules__)
41
- /******/ __webpack_require__.m = modules;
42
- /******/
43
- /******/ // expose the module cache
44
- /******/ __webpack_require__.c = installedModules;
45
- /******/
46
- /******/ // define getter function for harmony exports
47
- /******/ __webpack_require__.d = function(exports, name, getter) {
48
- /******/ if(!__webpack_require__.o(exports, name)) {
49
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50
- /******/ }
51
- /******/ };
52
- /******/
53
- /******/ // define __esModule on exports
54
- /******/ __webpack_require__.r = function(exports) {
55
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57
- /******/ }
58
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
59
- /******/ };
60
- /******/
61
- /******/ // create a fake namespace object
62
- /******/ // mode & 1: value is a module id, require it
63
- /******/ // mode & 2: merge all properties of value into the ns
64
- /******/ // mode & 4: return value when already ns object
65
- /******/ // mode & 8|1: behave like require
66
- /******/ __webpack_require__.t = function(value, mode) {
67
- /******/ if(mode & 1) value = __webpack_require__(value);
68
- /******/ if(mode & 8) return value;
69
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70
- /******/ var ns = Object.create(null);
71
- /******/ __webpack_require__.r(ns);
72
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74
- /******/ return ns;
75
- /******/ };
76
- /******/
77
- /******/ // getDefaultExport function for compatibility with non-harmony modules
78
- /******/ __webpack_require__.n = function(module) {
79
- /******/ var getter = module && module.__esModule ?
80
- /******/ function getDefault() { return module['default']; } :
81
- /******/ function getModuleExports() { return module; };
82
- /******/ __webpack_require__.d(getter, 'a', getter);
83
- /******/ return getter;
84
- /******/ };
85
- /******/
86
- /******/ // Object.prototype.hasOwnProperty.call
87
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
- /******/
89
- /******/ // __webpack_public_path__
90
- /******/ __webpack_require__.p = "";
91
- /******/
92
- /******/
93
- /******/ // Load entry module and return exports
94
- /******/ return __webpack_require__(__webpack_require__.s = 7);
95
- /******/ })
96
- /************************************************************************/
97
- /******/ ({
98
-
99
- /***/ "./foundation.core":
100
- /*!****************************************************************************************************************************************************************!*\
101
- !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
102
- \****************************************************************************************************************************************************************/
103
- /*! no static exports found */
104
- /***/ (function(module, exports) {
105
-
106
- module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
107
-
108
- /***/ }),
109
-
110
- /***/ "./foundation.util.mediaQuery":
111
- /*!************************************************************************************************************************************************************************************************************!*\
112
- !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.mediaQuery"],"amd":"./foundation.util.mediaQuery","commonjs":"./foundation.util.mediaQuery","commonjs2":"./foundation.util.mediaQuery"} ***!
113
- \************************************************************************************************************************************************************************************************************/
114
- /*! no static exports found */
115
- /***/ (function(module, exports) {
116
-
117
- module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
118
-
119
- /***/ }),
120
-
121
- /***/ "./foundation.util.motion":
122
- /*!********************************************************************************************************************************************************************************************!*\
123
- !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.motion"],"amd":"./foundation.util.motion","commonjs":"./foundation.util.motion","commonjs2":"./foundation.util.motion"} ***!
124
- \********************************************************************************************************************************************************************************************/
125
- /*! no static exports found */
126
- /***/ (function(module, exports) {
127
-
128
- module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
129
-
130
- /***/ }),
131
-
132
- /***/ "./js/entries/plugins/foundation.interchange.js":
133
- /*!******************************************************!*\
134
- !*** ./js/entries/plugins/foundation.interchange.js ***!
135
- \******************************************************/
136
- /*! exports provided: Foundation, Interchange */
137
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
138
-
139
- "use strict";
140
- __webpack_require__.r(__webpack_exports__);
141
- /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
142
- /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
143
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; });
144
-
145
- /* harmony import */ var _foundation_interchange__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.interchange */ "./js/foundation.interchange.js");
146
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Interchange", function() { return _foundation_interchange__WEBPACK_IMPORTED_MODULE_1__["Interchange"]; });
147
-
148
-
149
-
150
- _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_interchange__WEBPACK_IMPORTED_MODULE_1__["Interchange"], 'Interchange');
151
-
152
-
153
- /***/ }),
9
+ root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.interchange"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["jQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.mediaQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"]);
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__) {
11
+ return /******/ (function() { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
154
14
 
155
15
  /***/ "./js/foundation.interchange.js":
156
16
  /*!**************************************!*\
157
17
  !*** ./js/foundation.interchange.js ***!
158
18
  \**************************************/
159
- /*! exports provided: Interchange */
160
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
19
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
161
20
 
162
- "use strict";
163
21
  __webpack_require__.r(__webpack_exports__);
164
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Interchange", function() { return Interchange; });
22
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
+ /* harmony export */ Interchange: function() { return /* binding */ Interchange; }
24
+ /* harmony export */ });
165
25
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
166
26
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
167
27
  /* harmony import */ var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.util.mediaQuery */ "./foundation.util.mediaQuery");
168
28
  /* harmony import */ var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__);
169
- /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.core.plugin */ "./foundation.core");
29
+ /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
170
30
  /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__);
171
31
  /* harmony import */ var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation.util.triggers */ "./js/foundation.util.triggers.js");
172
-
173
-
174
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
175
-
176
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
177
-
178
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
179
-
180
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
181
-
182
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
183
-
184
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
185
-
186
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
187
-
188
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
189
-
190
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
32
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
33
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
34
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
35
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
36
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
37
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
38
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
39
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
40
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
41
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
42
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
43
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
44
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
191
45
 
192
46
 
193
47
 
@@ -199,21 +53,15 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
199
53
  * @module foundation.interchange
200
54
  * @requires foundation.util.mediaQuery
201
55
  */
202
-
203
- var Interchange =
204
- /*#__PURE__*/
205
- function (_Plugin) {
206
- _inherits(Interchange, _Plugin);
207
-
56
+ var Interchange = /*#__PURE__*/function (_Plugin) {
208
57
  function Interchange() {
209
58
  _classCallCheck(this, Interchange);
210
-
211
- return _possibleConstructorReturn(this, _getPrototypeOf(Interchange).apply(this, arguments));
59
+ return _callSuper(this, Interchange, arguments);
212
60
  }
213
-
214
- _createClass(Interchange, [{
61
+ _inherits(Interchange, _Plugin);
62
+ return _createClass(Interchange, [{
215
63
  key: "_setup",
216
-
64
+ value:
217
65
  /**
218
66
  * Creates a new instance of Interchange.
219
67
  * @class
@@ -222,224 +70,203 @@ function (_Plugin) {
222
70
  * @param {Object} element - jQuery object to add the trigger to.
223
71
  * @param {Object} options - Overrides to the default plugin settings.
224
72
  */
225
- value: function _setup(element, options) {
73
+ function _setup(element, options) {
226
74
  this.$element = element;
227
- this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({}, Interchange.defaults, this.$element.data(), options);
75
+ this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({}, Interchange.defaults, this.$element.data(), options);
228
76
  this.rules = [];
229
77
  this.currentPath = '';
230
78
  this.className = 'Interchange'; // ie9 back compat
231
- // Triggers init is idempotent, just need to make sure it is initialized
232
-
233
- _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__["Triggers"].init(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
234
79
 
80
+ // Triggers init is idempotent, just need to make sure it is initialized
81
+ _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));
235
82
  this._init();
236
-
237
83
  this._events();
238
84
  }
85
+
239
86
  /**
240
87
  * Initializes the Interchange plugin and calls functions to get interchange functioning on load.
241
88
  * @function
242
89
  * @private
243
90
  */
244
-
245
91
  }, {
246
92
  key: "_init",
247
93
  value: function _init() {
248
- _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__["MediaQuery"]._init();
249
-
250
- var id = this.$element[0].id || Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__["GetYoDigits"])(6, 'interchange');
94
+ _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery._init();
95
+ var id = this.$element[0].id || (0,_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__.GetYoDigits)(6, 'interchange');
251
96
  this.$element.attr({
252
97
  'data-resize': id,
253
98
  'id': id
254
99
  });
255
-
256
100
  this._parseOptions();
257
-
258
101
  this._addBreakpoints();
259
-
260
102
  this._generateRules();
261
-
262
103
  this._reflow();
263
104
  }
105
+
264
106
  /**
265
107
  * Initializes events for Interchange.
266
108
  * @function
267
109
  * @private
268
110
  */
269
-
270
111
  }, {
271
112
  key: "_events",
272
113
  value: function _events() {
273
114
  var _this = this;
274
-
275
115
  this.$element.off('resizeme.zf.trigger').on('resizeme.zf.trigger', function () {
276
116
  return _this._reflow();
277
117
  });
278
118
  }
119
+
279
120
  /**
280
121
  * Calls necessary functions to update Interchange upon DOM change
281
122
  * @function
282
123
  * @private
283
124
  */
284
-
285
125
  }, {
286
126
  key: "_reflow",
287
127
  value: function _reflow() {
288
- var match; // Iterate through each rule, but only save the last match
128
+ var match;
289
129
 
130
+ // Iterate through each rule, but only save the last match
290
131
  for (var i in this.rules) {
291
132
  if (this.rules.hasOwnProperty(i)) {
292
133
  var rule = this.rules[i];
293
-
294
134
  if (window.matchMedia(rule.query).matches) {
295
135
  match = rule;
296
136
  }
297
137
  }
298
138
  }
299
-
300
139
  if (match) {
301
140
  this.replace(match.path);
302
141
  }
303
142
  }
143
+
304
144
  /**
305
145
  * Check options valifity and set defaults for:
306
146
  * - `data-interchange-type`: if set, enforce the type of replacement (auto, src, background or html)
307
147
  * @function
308
148
  * @private
309
149
  */
310
-
311
150
  }, {
312
151
  key: "_parseOptions",
313
152
  value: function _parseOptions() {
314
153
  var types = ['auto', 'src', 'background', 'html'];
315
154
  if (typeof this.options.type === 'undefined') this.options.type = 'auto';else if (types.indexOf(this.options.type) === -1) {
316
- console.log("Warning: invalid value \"".concat(this.options.type, "\" for Interchange option \"type\""));
155
+ console.warn("Warning: invalid value \"".concat(this.options.type, "\" for Interchange option \"type\""));
317
156
  this.options.type = 'auto';
318
157
  }
319
158
  }
159
+
320
160
  /**
321
161
  * Gets the Foundation breakpoints and adds them to the Interchange.SPECIAL_QUERIES object.
322
162
  * @function
323
163
  * @private
324
164
  */
325
-
326
165
  }, {
327
166
  key: "_addBreakpoints",
328
167
  value: function _addBreakpoints() {
329
- for (var i in _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__["MediaQuery"].queries) {
330
- if (_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__["MediaQuery"].queries.hasOwnProperty(i)) {
331
- var query = _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__["MediaQuery"].queries[i];
168
+ for (var i in _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery.queries) {
169
+ if (_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery.queries.hasOwnProperty(i)) {
170
+ var query = _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery.queries[i];
332
171
  Interchange.SPECIAL_QUERIES[query.name] = query.value;
333
172
  }
334
173
  }
335
174
  }
175
+
336
176
  /**
337
177
  * Checks the Interchange element for the provided media query + content pairings
338
178
  * @function
339
179
  * @private
340
- * @param {Object} element - jQuery object that is an Interchange instance
341
180
  * @returns {Array} scenarios - Array of objects that have 'mq' and 'path' keys with corresponding keys
342
181
  */
343
-
344
182
  }, {
345
183
  key: "_generateRules",
346
- value: function _generateRules(element) {
184
+ value: function _generateRules() {
347
185
  var rulesList = [];
348
186
  var rules;
349
-
350
187
  if (this.options.rules) {
351
188
  rules = this.options.rules;
352
189
  } else {
353
190
  rules = this.$element.data('interchange');
354
191
  }
355
-
356
192
  rules = typeof rules === 'string' ? rules.match(/\[.*?, .*?\]/g) : rules;
357
-
358
193
  for (var i in rules) {
359
194
  if (rules.hasOwnProperty(i)) {
360
195
  var rule = rules[i].slice(1, -1).split(', ');
361
196
  var path = rule.slice(0, -1).join('');
362
197
  var query = rule[rule.length - 1];
363
-
364
198
  if (Interchange.SPECIAL_QUERIES[query]) {
365
199
  query = Interchange.SPECIAL_QUERIES[query];
366
200
  }
367
-
368
201
  rulesList.push({
369
202
  path: path,
370
203
  query: query
371
204
  });
372
205
  }
373
206
  }
374
-
375
207
  this.rules = rulesList;
376
208
  }
209
+
377
210
  /**
378
211
  * Update the `src` property of an image, or change the HTML of a container, to the specified path.
379
212
  * @function
380
213
  * @param {String} path - Path to the image or HTML partial.
381
214
  * @fires Interchange#replaced
382
215
  */
383
-
384
216
  }, {
385
217
  key: "replace",
386
218
  value: function replace(path) {
387
219
  var _this2 = this;
388
-
389
220
  if (this.currentPath === path) return;
390
221
  var trigger = 'replaced.zf.interchange';
391
222
  var type = this.options.type;
392
-
393
223
  if (type === 'auto') {
394
224
  if (this.$element[0].nodeName === 'IMG') type = 'src';else if (path.match(/\.(gif|jpe?g|png|svg|tiff)([?#].*)?/i)) type = 'background';else type = 'html';
395
- } // Replacing images
396
-
225
+ }
397
226
 
227
+ // Replacing images
398
228
  if (type === 'src') {
399
229
  this.$element.attr('src', path).on('load', function () {
400
230
  _this2.currentPath = path;
401
231
  }).trigger(trigger);
402
- } // Replacing background images
232
+ }
233
+ // Replacing background images
403
234
  else if (type === 'background') {
404
- path = path.replace(/\(/g, '%28').replace(/\)/g, '%29');
405
- this.$element.css({
406
- 'background-image': 'url(' + path + ')'
407
- }).trigger(trigger);
408
- } // Replacing HTML
409
- else if (type === 'html') {
410
- jquery__WEBPACK_IMPORTED_MODULE_0___default.a.get(path, function (response) {
411
- _this2.$element.html(response).trigger(trigger);
412
-
413
- jquery__WEBPACK_IMPORTED_MODULE_0___default()(response).foundation();
414
- _this2.currentPath = path;
415
- });
416
- }
235
+ path = path.replace(/\(/g, '%28').replace(/\)/g, '%29');
236
+ this.$element.css({
237
+ 'background-image': 'url(' + path + ')'
238
+ }).trigger(trigger);
239
+ }
240
+ // Replacing HTML
241
+ else if (type === 'html') {
242
+ jquery__WEBPACK_IMPORTED_MODULE_0___default().get(path, function (response) {
243
+ _this2.$element.html(response).trigger(trigger);
244
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(response).foundation();
245
+ _this2.currentPath = path;
246
+ });
247
+ }
248
+
417
249
  /**
418
250
  * Fires when content in an Interchange element is done being loaded.
419
251
  * @event Interchange#replaced
420
252
  */
421
253
  // this.$element.trigger('replaced.zf.interchange');
422
-
423
254
  }
255
+
424
256
  /**
425
257
  * Destroys an instance of interchange.
426
258
  * @function
427
259
  */
428
-
429
260
  }, {
430
261
  key: "_destroy",
431
262
  value: function _destroy() {
432
263
  this.$element.off('resizeme.zf.trigger');
433
264
  }
434
265
  }]);
435
-
436
- return Interchange;
437
- }(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__["Plugin"]);
266
+ }(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__.Plugin);
438
267
  /**
439
268
  * Default settings for plugin
440
269
  */
441
-
442
-
443
270
  Interchange.defaults = {
444
271
  /**
445
272
  * Rules to be applied to Interchange elements. Set with the `data-interchange` array notation.
@@ -448,7 +275,6 @@ Interchange.defaults = {
448
275
  * @default null
449
276
  */
450
277
  rules: null,
451
-
452
278
  /**
453
279
  * Type of the responsive ressource to replace. It can take the following options:
454
280
  * - `auto` (default): choose the type according to the element tag or the ressource extension,
@@ -474,44 +300,36 @@ Interchange.SPECIAL_QUERIES = {
474
300
  /*!****************************************!*\
475
301
  !*** ./js/foundation.util.triggers.js ***!
476
302
  \****************************************/
477
- /*! exports provided: Triggers */
478
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
303
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
479
304
 
480
- "use strict";
481
305
  __webpack_require__.r(__webpack_exports__);
482
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Triggers", function() { return Triggers; });
306
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
307
+ /* harmony export */ Triggers: function() { return /* binding */ Triggers; }
308
+ /* harmony export */ });
483
309
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
484
310
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
485
311
  /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
486
312
  /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
487
313
  /* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.motion */ "./foundation.util.motion");
488
314
  /* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
489
-
490
-
491
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
492
-
493
-
315
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
494
316
 
495
317
 
496
318
 
497
319
  var MutationObserver = function () {
498
320
  var prefixes = ['WebKit', 'Moz', 'O', 'Ms', ''];
499
-
500
321
  for (var i = 0; i < prefixes.length; i++) {
501
322
  if ("".concat(prefixes[i], "MutationObserver") in window) {
502
323
  return window["".concat(prefixes[i], "MutationObserver")];
503
324
  }
504
325
  }
505
-
506
326
  return false;
507
327
  }();
508
-
509
328
  var triggers = function triggers(el, type) {
510
329
  el.data(type).split(' ').forEach(function (id) {
511
330
  jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type === 'close' ? 'trigger' : 'triggerHandler']("".concat(type, ".zf.trigger"), [el]);
512
331
  });
513
332
  };
514
-
515
333
  var Triggers = {
516
334
  Listeners: {
517
335
  Basic: {},
@@ -525,7 +343,6 @@ Triggers.Listeners.Basic = {
525
343
  },
526
344
  closeListener: function closeListener() {
527
345
  var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
528
-
529
346
  if (id) {
530
347
  triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'close');
531
348
  } else {
@@ -534,7 +351,6 @@ Triggers.Listeners.Basic = {
534
351
  },
535
352
  toggleListener: function toggleListener() {
536
353
  var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
537
-
538
354
  if (id) {
539
355
  triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'toggle');
540
356
  } else {
@@ -542,12 +358,12 @@ Triggers.Listeners.Basic = {
542
358
  }
543
359
  },
544
360
  closeableListener: function closeableListener(e) {
545
- var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable'); // Only close the first closable element. See https://git.io/zf-7833
361
+ var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
546
362
 
363
+ // Only close the first closable element. See https://git.io/zf-7833
547
364
  e.stopPropagation();
548
-
549
365
  if (animation !== '') {
550
- _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__["Motion"].animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), animation, function () {
366
+ _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Motion.animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), animation, function () {
551
367
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
552
368
  });
553
369
  } else {
@@ -558,39 +374,40 @@ Triggers.Listeners.Basic = {
558
374
  var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
559
375
  jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger', [jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
560
376
  }
561
- }; // Elements with [data-open] will reveal a plugin that supports it when clicked.
377
+ };
562
378
 
379
+ // Elements with [data-open] will reveal a plugin that supports it when clicked.
563
380
  Triggers.Initializers.addOpenListener = function ($elem) {
564
381
  $elem.off('click.zf.trigger', Triggers.Listeners.Basic.openListener);
565
382
  $elem.on('click.zf.trigger', '[data-open]', Triggers.Listeners.Basic.openListener);
566
- }; // Elements with [data-close] will close a plugin that supports it when clicked.
567
- // If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
568
-
383
+ };
569
384
 
385
+ // Elements with [data-close] will close a plugin that supports it when clicked.
386
+ // If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
570
387
  Triggers.Initializers.addCloseListener = function ($elem) {
571
388
  $elem.off('click.zf.trigger', Triggers.Listeners.Basic.closeListener);
572
389
  $elem.on('click.zf.trigger', '[data-close]', Triggers.Listeners.Basic.closeListener);
573
- }; // Elements with [data-toggle] will toggle a plugin that supports it when clicked.
574
-
390
+ };
575
391
 
392
+ // Elements with [data-toggle] will toggle a plugin that supports it when clicked.
576
393
  Triggers.Initializers.addToggleListener = function ($elem) {
577
394
  $elem.off('click.zf.trigger', Triggers.Listeners.Basic.toggleListener);
578
395
  $elem.on('click.zf.trigger', '[data-toggle]', Triggers.Listeners.Basic.toggleListener);
579
- }; // Elements with [data-closable] will respond to close.zf.trigger events.
580
-
396
+ };
581
397
 
398
+ // Elements with [data-closable] will respond to close.zf.trigger events.
582
399
  Triggers.Initializers.addCloseableListener = function ($elem) {
583
400
  $elem.off('close.zf.trigger', Triggers.Listeners.Basic.closeableListener);
584
401
  $elem.on('close.zf.trigger', '[data-closeable], [data-closable]', Triggers.Listeners.Basic.closeableListener);
585
- }; // Elements with [data-toggle-focus] will respond to coming in and out of focus
586
-
402
+ };
587
403
 
404
+ // Elements with [data-toggle-focus] will respond to coming in and out of focus
588
405
  Triggers.Initializers.addToggleFocusListener = function ($elem) {
589
406
  $elem.off('focus.zf.trigger blur.zf.trigger', Triggers.Listeners.Basic.toggleFocusListener);
590
407
  $elem.on('focus.zf.trigger blur.zf.trigger', '[data-toggle-focus]', Triggers.Listeners.Basic.toggleFocusListener);
591
- }; // More Global/complex listeners and triggers
592
-
408
+ };
593
409
 
410
+ // More Global/complex listeners and triggers
594
411
  Triggers.Listeners.Global = {
595
412
  resizeListener: function resizeListener($nodes) {
596
413
  if (!MutationObserver) {
@@ -598,9 +415,8 @@ Triggers.Listeners.Global = {
598
415
  $nodes.each(function () {
599
416
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
600
417
  });
601
- } //trigger all listening elements and signal a resize event
602
-
603
-
418
+ }
419
+ //trigger all listening elements and signal a resize event
604
420
  $nodes.attr('data-events', "resize");
605
421
  },
606
422
  scrollListener: function scrollListener($nodes) {
@@ -609,9 +425,8 @@ Triggers.Listeners.Global = {
609
425
  $nodes.each(function () {
610
426
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
611
427
  });
612
- } //trigger all listening elements and signal a scroll event
613
-
614
-
428
+ }
429
+ //trigger all listening elements and signal a scroll event
615
430
  $nodes.attr('data-events', "scroll");
616
431
  },
617
432
  closeMeListener: function closeMeListener(e, pluginId) {
@@ -619,17 +434,15 @@ Triggers.Listeners.Global = {
619
434
  var plugins = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin, "]")).not("[data-yeti-box=\"".concat(pluginId, "\"]"));
620
435
  plugins.each(function () {
621
436
  var _this = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
622
-
623
437
  _this.triggerHandler('close.zf.trigger', [_this]);
624
438
  });
625
- } // Global, parses whole document.
626
-
439
+ }
627
440
  };
628
441
 
442
+ // Global, parses whole document.
629
443
  Triggers.Initializers.addClosemeListener = function (pluginName) {
630
444
  var yetiBoxes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
631
- plugNames = ['dropdown', 'tooltip', 'reveal'];
632
-
445
+ plugNames = ['dropdown', 'tooltip', 'reveal'];
633
446
  if (pluginName) {
634
447
  if (typeof pluginName === 'string') {
635
448
  plugNames.push(pluginName);
@@ -639,7 +452,6 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
639
452
  console.error('Plugin names must be strings');
640
453
  }
641
454
  }
642
-
643
455
  if (yetiBoxes.length) {
644
456
  var listeners = plugNames.map(function (name) {
645
457
  return "closeme.zf.".concat(name);
@@ -647,75 +459,63 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
647
459
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners, Triggers.Listeners.Global.closeMeListener);
648
460
  }
649
461
  };
650
-
651
462
  function debounceGlobalListener(debounce, trigger, listener) {
652
463
  var timer,
653
- args = Array.prototype.slice.call(arguments, 3);
654
- jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(trigger).on(trigger, function (e) {
464
+ args = Array.prototype.slice.call(arguments, 3);
465
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on(trigger, function () {
655
466
  if (timer) {
656
467
  clearTimeout(timer);
657
468
  }
658
-
659
469
  timer = setTimeout(function () {
660
470
  listener.apply(null, args);
661
471
  }, debounce || 10); //default time to emit scroll event
662
472
  });
663
473
  }
664
-
665
474
  Triggers.Initializers.addResizeListener = function (debounce) {
666
475
  var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
667
-
668
476
  if ($nodes.length) {
669
477
  debounceGlobalListener(debounce, 'resize.zf.trigger', Triggers.Listeners.Global.resizeListener, $nodes);
670
478
  }
671
479
  };
672
-
673
480
  Triggers.Initializers.addScrollListener = function (debounce) {
674
481
  var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
675
-
676
482
  if ($nodes.length) {
677
483
  debounceGlobalListener(debounce, 'scroll.zf.trigger', Triggers.Listeners.Global.scrollListener, $nodes);
678
484
  }
679
485
  };
680
-
681
486
  Triggers.Initializers.addMutationEventsListener = function ($elem) {
682
487
  if (!MutationObserver) {
683
488
  return false;
684
489
  }
490
+ var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]');
685
491
 
686
- var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]'); //element callback
687
-
492
+ //element callback
688
493
  var listeningElementsMutation = function listeningElementsMutation(mutationRecordsList) {
689
- var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target); //trigger the event handler for the element depending on type
494
+ var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
690
495
 
496
+ //trigger the event handler for the element depending on type
691
497
  switch (mutationRecordsList[0].type) {
692
498
  case "attributes":
693
499
  if ($target.attr("data-events") === "scroll" && mutationRecordsList[0].attributeName === "data-events") {
694
500
  $target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]);
695
501
  }
696
-
697
502
  if ($target.attr("data-events") === "resize" && mutationRecordsList[0].attributeName === "data-events") {
698
503
  $target.triggerHandler('resizeme.zf.trigger', [$target]);
699
504
  }
700
-
701
505
  if (mutationRecordsList[0].attributeName === "style") {
702
506
  $target.closest("[data-mutate]").attr("data-events", "mutate");
703
507
  $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
704
508
  }
705
-
706
509
  break;
707
-
708
510
  case "childList":
709
511
  $target.closest("[data-mutate]").attr("data-events", "mutate");
710
512
  $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
711
513
  break;
712
-
713
514
  default:
714
515
  return false;
715
516
  //nothing
716
517
  }
717
518
  };
718
-
719
519
  if ($nodes.length) {
720
520
  //for each element that needs to listen for resizing, scrolling, or mutation add a single observer
721
521
  for (var i = 0; i <= $nodes.length - 1; i++) {
@@ -730,7 +530,6 @@ Triggers.Initializers.addMutationEventsListener = function ($elem) {
730
530
  }
731
531
  }
732
532
  };
733
-
734
533
  Triggers.Initializers.addSimpleListeners = function () {
735
534
  var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
736
535
  Triggers.Initializers.addOpenListener($document);
@@ -739,44 +538,58 @@ Triggers.Initializers.addSimpleListeners = function () {
739
538
  Triggers.Initializers.addCloseableListener($document);
740
539
  Triggers.Initializers.addToggleFocusListener($document);
741
540
  };
742
-
743
541
  Triggers.Initializers.addGlobalListeners = function () {
744
542
  var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
745
543
  Triggers.Initializers.addMutationEventsListener($document);
746
- Triggers.Initializers.addResizeListener();
544
+ Triggers.Initializers.addResizeListener(250);
747
545
  Triggers.Initializers.addScrollListener();
748
546
  Triggers.Initializers.addClosemeListener();
749
547
  };
750
-
751
- Triggers.init = function ($, Foundation) {
752
- Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])($(window), function () {
753
- if ($.triggersInitialized !== true) {
548
+ Triggers.init = function (__, Foundation) {
549
+ (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
550
+ if ((jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) !== true) {
754
551
  Triggers.Initializers.addSimpleListeners();
755
552
  Triggers.Initializers.addGlobalListeners();
756
- $.triggersInitialized = true;
553
+ (jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) = true;
757
554
  }
758
555
  });
759
-
760
556
  if (Foundation) {
761
- Foundation.Triggers = Triggers; // Legacy included to be backwards compatible for now.
762
-
557
+ Foundation.Triggers = Triggers;
558
+ // Legacy included to be backwards compatible for now.
763
559
  Foundation.IHearYou = Triggers.Initializers.addGlobalListeners;
764
560
  }
765
561
  };
766
562
 
767
563
 
564
+ /***/ }),
565
+
566
+ /***/ "./foundation.core":
567
+ /*!****************************************************************************************************************************************************************!*\
568
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
569
+ \****************************************************************************************************************************************************************/
570
+ /***/ (function(module) {
571
+
572
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
768
573
 
769
574
  /***/ }),
770
575
 
771
- /***/ 7:
772
- /*!************************************************************!*\
773
- !*** multi ./js/entries/plugins/foundation.interchange.js ***!
774
- \************************************************************/
775
- /*! no static exports found */
776
- /***/ (function(module, exports, __webpack_require__) {
576
+ /***/ "./foundation.util.mediaQuery":
577
+ /*!************************************************************************************************************************************************************************************************************!*\
578
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.mediaQuery"],"amd":"./foundation.util.mediaQuery","commonjs":"./foundation.util.mediaQuery","commonjs2":"./foundation.util.mediaQuery"} ***!
579
+ \************************************************************************************************************************************************************************************************************/
580
+ /***/ (function(module) {
581
+
582
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
583
+
584
+ /***/ }),
777
585
 
778
- module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundation-sites/js/entries/plugins/foundation.interchange.js */"./js/entries/plugins/foundation.interchange.js");
586
+ /***/ "./foundation.util.motion":
587
+ /*!********************************************************************************************************************************************************************************************!*\
588
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.motion"],"amd":"./foundation.util.motion","commonjs":"./foundation.util.motion","commonjs2":"./foundation.util.motion"} ***!
589
+ \********************************************************************************************************************************************************************************************/
590
+ /***/ (function(module) {
779
591
 
592
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
780
593
 
781
594
  /***/ }),
782
595
 
@@ -784,13 +597,101 @@ module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundatio
784
597
  /*!********************************************************************************************!*\
785
598
  !*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
786
599
  \********************************************************************************************/
787
- /*! no static exports found */
788
- /***/ (function(module, exports) {
600
+ /***/ (function(module) {
789
601
 
790
602
  module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
791
603
 
792
604
  /***/ })
793
605
 
794
- /******/ });
606
+ /******/ });
607
+ /************************************************************************/
608
+ /******/ // The module cache
609
+ /******/ var __webpack_module_cache__ = {};
610
+ /******/
611
+ /******/ // The require function
612
+ /******/ function __webpack_require__(moduleId) {
613
+ /******/ // Check if module is in cache
614
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
615
+ /******/ if (cachedModule !== undefined) {
616
+ /******/ return cachedModule.exports;
617
+ /******/ }
618
+ /******/ // Create a new module (and put it into the cache)
619
+ /******/ var module = __webpack_module_cache__[moduleId] = {
620
+ /******/ // no module.id needed
621
+ /******/ // no module.loaded needed
622
+ /******/ exports: {}
623
+ /******/ };
624
+ /******/
625
+ /******/ // Execute the module function
626
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
627
+ /******/
628
+ /******/ // Return the exports of the module
629
+ /******/ return module.exports;
630
+ /******/ }
631
+ /******/
632
+ /************************************************************************/
633
+ /******/ /* webpack/runtime/compat get default export */
634
+ /******/ !function() {
635
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
636
+ /******/ __webpack_require__.n = function(module) {
637
+ /******/ var getter = module && module.__esModule ?
638
+ /******/ function() { return module['default']; } :
639
+ /******/ function() { return module; };
640
+ /******/ __webpack_require__.d(getter, { a: getter });
641
+ /******/ return getter;
642
+ /******/ };
643
+ /******/ }();
644
+ /******/
645
+ /******/ /* webpack/runtime/define property getters */
646
+ /******/ !function() {
647
+ /******/ // define getter functions for harmony exports
648
+ /******/ __webpack_require__.d = function(exports, definition) {
649
+ /******/ for(var key in definition) {
650
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
651
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
652
+ /******/ }
653
+ /******/ }
654
+ /******/ };
655
+ /******/ }();
656
+ /******/
657
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
658
+ /******/ !function() {
659
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
660
+ /******/ }();
661
+ /******/
662
+ /******/ /* webpack/runtime/make namespace object */
663
+ /******/ !function() {
664
+ /******/ // define __esModule on exports
665
+ /******/ __webpack_require__.r = function(exports) {
666
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
667
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
668
+ /******/ }
669
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
670
+ /******/ };
671
+ /******/ }();
672
+ /******/
673
+ /************************************************************************/
674
+ var __webpack_exports__ = {};
675
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
676
+ !function() {
677
+ /*!******************************************************!*\
678
+ !*** ./js/entries/plugins/foundation.interchange.js ***!
679
+ \******************************************************/
680
+ __webpack_require__.r(__webpack_exports__);
681
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
682
+ /* harmony export */ Foundation: function() { return /* reexport safe */ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation; },
683
+ /* harmony export */ Interchange: function() { return /* reexport safe */ _foundation_interchange__WEBPACK_IMPORTED_MODULE_1__.Interchange; }
684
+ /* harmony export */ });
685
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
686
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
687
+ /* harmony import */ var _foundation_interchange__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.interchange */ "./js/foundation.interchange.js");
688
+
689
+
690
+ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation.plugin(_foundation_interchange__WEBPACK_IMPORTED_MODULE_1__.Interchange, 'Interchange');
691
+
692
+ }();
693
+ /******/ return __webpack_exports__;
694
+ /******/ })()
695
+ ;
795
696
  });
796
697
  //# sourceMappingURL=foundation.interchange.js.map