foundation-rails 6.6.1.0 → 6.9.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (253) 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 +199 -146
  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 +2101 -3230
  14. data/vendor/assets/js/foundation.cjs.js.map +1 -1
  15. data/vendor/assets/js/foundation.es6.js +505 -379
  16. data/vendor/assets/js/foundation.es6.js.map +1 -1
  17. data/vendor/assets/js/foundation.esm.js +1779 -2911
  18. data/vendor/assets/js/foundation.esm.js.map +1 -1
  19. data/vendor/assets/js/foundation.js +2544 -3970
  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 +277 -367
  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 +205 -277
  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 -262
  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 +314 -457
  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 +259 -359
  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 +291 -462
  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 +251 -349
  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 +455 -240
  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 +226 -342
  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 -288
  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 +285 -445
  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 +321 -486
  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 -395
  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 +276 -437
  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 +176 -234
  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 +127 -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 +126 -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 +20 -7
  148. data/vendor/assets/scss/components/_accordion-menu.scss +2 -2
  149. data/vendor/assets/scss/components/_accordion.scss +2 -2
  150. data/vendor/assets/scss/components/_badge.scss +3 -3
  151. data/vendor/assets/scss/components/_breadcrumbs.scss +4 -3
  152. data/vendor/assets/scss/components/_button-group.scss +23 -13
  153. data/vendor/assets/scss/components/_button.scss +15 -15
  154. data/vendor/assets/scss/components/_callout.scss +4 -4
  155. data/vendor/assets/scss/components/_card.scss +2 -2
  156. data/vendor/assets/scss/components/_close-button.scss +7 -6
  157. data/vendor/assets/scss/components/_drilldown.scss +2 -2
  158. data/vendor/assets/scss/components/_dropdown-menu.scss +3 -3
  159. data/vendor/assets/scss/components/_dropdown.scss +2 -2
  160. data/vendor/assets/scss/components/_flex.scss +2 -2
  161. data/vendor/assets/scss/components/_float.scss +2 -2
  162. data/vendor/assets/scss/components/_label.scss +3 -3
  163. data/vendor/assets/scss/components/_media-object.scss +2 -2
  164. data/vendor/assets/scss/components/_menu.scss +56 -21
  165. data/vendor/assets/scss/components/_off-canvas.scss +20 -18
  166. data/vendor/assets/scss/components/_orbit.scss +5 -5
  167. data/vendor/assets/scss/components/_pagination.scss +3 -3
  168. data/vendor/assets/scss/components/_progress-bar.scss +3 -3
  169. data/vendor/assets/scss/components/_responsive-embed.scss +3 -3
  170. data/vendor/assets/scss/components/_reveal.scss +10 -5
  171. data/vendor/assets/scss/components/_slider.scss +7 -4
  172. data/vendor/assets/scss/components/_sticky.scss +2 -2
  173. data/vendor/assets/scss/components/_switch.scss +27 -4
  174. data/vendor/assets/scss/components/_table.scss +10 -9
  175. data/vendor/assets/scss/components/_tabs.scss +4 -4
  176. data/vendor/assets/scss/components/_thumbnail.scss +2 -2
  177. data/vendor/assets/scss/components/_title-bar.scss +2 -2
  178. data/vendor/assets/scss/components/_tooltip.scss +2 -2
  179. data/vendor/assets/scss/components/_top-bar.scss +9 -7
  180. data/vendor/assets/scss/components/_visibility.scss +48 -5
  181. data/vendor/assets/scss/forms/_checkbox.scss +2 -2
  182. data/vendor/assets/scss/forms/_error.scss +2 -2
  183. data/vendor/assets/scss/forms/_fieldset.scss +2 -2
  184. data/vendor/assets/scss/forms/_forms.scss +2 -2
  185. data/vendor/assets/scss/forms/_help-text.scss +2 -2
  186. data/vendor/assets/scss/forms/_input-group.scss +2 -2
  187. data/vendor/assets/scss/forms/_label.scss +4 -3
  188. data/vendor/assets/scss/forms/_meter.scss +2 -2
  189. data/vendor/assets/scss/forms/_progress.scss +3 -3
  190. data/vendor/assets/scss/forms/_range.scss +3 -3
  191. data/vendor/assets/scss/forms/_select.scss +7 -6
  192. data/vendor/assets/scss/forms/_text.scss +4 -4
  193. data/vendor/assets/scss/foundation.scss +3 -3
  194. data/vendor/assets/scss/grid/_classes.scss +3 -3
  195. data/vendor/assets/scss/grid/_column.scss +5 -4
  196. data/vendor/assets/scss/grid/_flex-grid.scss +9 -8
  197. data/vendor/assets/scss/grid/_grid.scss +2 -2
  198. data/vendor/assets/scss/grid/_gutter.scss +3 -3
  199. data/vendor/assets/scss/grid/_layout.scss +7 -7
  200. data/vendor/assets/scss/grid/_position.scss +6 -6
  201. data/vendor/assets/scss/grid/_row.scss +3 -3
  202. data/vendor/assets/scss/grid/_size.scss +2 -2
  203. data/vendor/assets/scss/motion-ui/util/_animation.scss +1 -1
  204. data/vendor/assets/scss/motion-ui/util/_series.scss +1 -1
  205. data/vendor/assets/scss/motion-ui/util/_unit.scss +54 -1
  206. data/vendor/assets/scss/prototype/_arrow.scss +2 -2
  207. data/vendor/assets/scss/prototype/_border-box.scss +2 -2
  208. data/vendor/assets/scss/prototype/_border-none.scss +3 -3
  209. data/vendor/assets/scss/prototype/_bordered.scss +2 -2
  210. data/vendor/assets/scss/prototype/_box.scss +2 -2
  211. data/vendor/assets/scss/prototype/_display.scss +2 -2
  212. data/vendor/assets/scss/prototype/_font-styling.scss +4 -4
  213. data/vendor/assets/scss/prototype/_list-style-type.scss +2 -2
  214. data/vendor/assets/scss/prototype/_overflow.scss +11 -2
  215. data/vendor/assets/scss/prototype/_position.scss +2 -2
  216. data/vendor/assets/scss/prototype/_prototype.scss +2 -2
  217. data/vendor/assets/scss/prototype/_rotate.scss +9 -7
  218. data/vendor/assets/scss/prototype/_rounded.scss +2 -2
  219. data/vendor/assets/scss/prototype/_separator.scss +7 -7
  220. data/vendor/assets/scss/prototype/_shadow.scss +3 -4
  221. data/vendor/assets/scss/prototype/_sizing.scss +2 -2
  222. data/vendor/assets/scss/prototype/_spacing.scss +35 -35
  223. data/vendor/assets/scss/prototype/_text-decoration.scss +2 -2
  224. data/vendor/assets/scss/prototype/_text-transformation.scss +5 -5
  225. data/vendor/assets/scss/prototype/_text-utilities.scss +2 -2
  226. data/vendor/assets/scss/settings/_settings.scss +32 -28
  227. data/vendor/assets/scss/typography/_alignment.scss +2 -2
  228. data/vendor/assets/scss/typography/_base.scss +8 -8
  229. data/vendor/assets/scss/typography/_helpers.scss +12 -4
  230. data/vendor/assets/scss/typography/_print.scss +4 -4
  231. data/vendor/assets/scss/typography/_typography.scss +2 -2
  232. data/vendor/assets/scss/util/_breakpoint.scss +24 -21
  233. data/vendor/assets/scss/util/_color.scss +22 -10
  234. data/vendor/assets/scss/util/_direction.scss +3 -3
  235. data/vendor/assets/scss/util/_flex.scss +1 -1
  236. data/vendor/assets/scss/util/_math.scss +63 -11
  237. data/vendor/assets/scss/util/_mixins.scss +20 -16
  238. data/vendor/assets/scss/util/_selector.scss +3 -17
  239. data/vendor/assets/scss/util/_typography.scss +8 -8
  240. data/vendor/assets/scss/util/_unit.scss +16 -10
  241. data/vendor/assets/scss/util/_util.scss +2 -2
  242. data/vendor/assets/scss/util/_value.scss +5 -20
  243. data/vendor/assets/scss/vendor/normalize.scss +19 -2
  244. data/vendor/assets/scss/xy-grid/_cell.scss +18 -7
  245. data/vendor/assets/scss/xy-grid/_classes.scss +16 -16
  246. data/vendor/assets/scss/xy-grid/_collapse.scss +2 -2
  247. data/vendor/assets/scss/xy-grid/_frame.scss +12 -0
  248. data/vendor/assets/scss/xy-grid/_grid.scss +4 -4
  249. data/vendor/assets/scss/xy-grid/_gutters.scss +4 -4
  250. data/vendor/assets/scss/xy-grid/_layout.scss +3 -3
  251. data/vendor/assets/scss/xy-grid/_position.scss +14 -9
  252. data/vendor/assets/scss/xy-grid/_xy-grid.scss +4 -4
  253. 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.sticky"] = 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.sticky"] = 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 = 17);
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.sticky.js":
133
- /*!*************************************************!*\
134
- !*** ./js/entries/plugins/foundation.sticky.js ***!
135
- \*************************************************/
136
- /*! exports provided: Foundation, Sticky */
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_sticky__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.sticky */ "./js/foundation.sticky.js");
146
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sticky", function() { return _foundation_sticky__WEBPACK_IMPORTED_MODULE_1__["Sticky"]; });
147
-
148
-
149
-
150
- _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_sticky__WEBPACK_IMPORTED_MODULE_1__["Sticky"], 'Sticky');
151
-
152
-
153
- /***/ }),
9
+ root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.sticky"] = 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.sticky.js":
156
16
  /*!*********************************!*\
157
17
  !*** ./js/foundation.sticky.js ***!
158
18
  \*********************************/
159
- /*! exports provided: Sticky */
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__, "Sticky", function() { return Sticky; });
22
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
+ /* harmony export */ Sticky: function() { return /* binding */ Sticky; }
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
- /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.plugin */ "./foundation.core");
27
+ /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
168
28
  /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__);
169
29
  /* harmony import */ var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.mediaQuery */ "./foundation.util.mediaQuery");
170
30
  /* harmony import */ var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_mediaQuery__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
 
@@ -200,21 +54,15 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
200
54
  * @requires foundation.util.triggers
201
55
  * @requires foundation.util.mediaQuery
202
56
  */
203
-
204
- var Sticky =
205
- /*#__PURE__*/
206
- function (_Plugin) {
207
- _inherits(Sticky, _Plugin);
208
-
57
+ var Sticky = /*#__PURE__*/function (_Plugin) {
209
58
  function Sticky() {
210
59
  _classCallCheck(this, Sticky);
211
-
212
- return _possibleConstructorReturn(this, _getPrototypeOf(Sticky).apply(this, arguments));
60
+ return _callSuper(this, Sticky, arguments);
213
61
  }
214
-
215
- _createClass(Sticky, [{
62
+ _inherits(Sticky, _Plugin);
63
+ return _createClass(Sticky, [{
216
64
  key: "_setup",
217
-
65
+ value:
218
66
  /**
219
67
  * Creates a new instance of a sticky thing.
220
68
  * @class
@@ -222,31 +70,28 @@ function (_Plugin) {
222
70
  * @param {jQuery} element - jQuery object to make sticky.
223
71
  * @param {Object} options - options object passed when creating the element programmatically.
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({}, Sticky.defaults, this.$element.data(), options);
75
+ this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({}, Sticky.defaults, this.$element.data(), options);
228
76
  this.className = 'Sticky'; // ie9 back compat
229
- // Triggers init is idempotent, just need to make sure it is initialized
230
-
231
- _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__["Triggers"].init(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
232
77
 
78
+ // Triggers init is idempotent, just need to make sure it is initialized
79
+ _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));
233
80
  this._init();
234
81
  }
82
+
235
83
  /**
236
84
  * Initializes the sticky element by adding classes, getting/setting dimensions, breakpoints and attributes
237
85
  * @function
238
86
  * @private
239
87
  */
240
-
241
88
  }, {
242
89
  key: "_init",
243
90
  value: function _init() {
244
- _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__["MediaQuery"]._init();
245
-
91
+ _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__.MediaQuery._init();
246
92
  var $parent = this.$element.parent('[data-sticky-container]'),
247
- id = this.$element[0].id || Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["GetYoDigits"])(6, 'sticky'),
248
- _this = this;
249
-
93
+ id = this.$element[0].id || (0,_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.GetYoDigits)(6, 'sticky'),
94
+ _this = this;
250
95
  if ($parent.length) {
251
96
  this.$container = $parent;
252
97
  } else {
@@ -254,145 +99,122 @@ function (_Plugin) {
254
99
  this.$element.wrap(this.options.container);
255
100
  this.$container = this.$element.parent();
256
101
  }
257
-
258
102
  this.$container.addClass(this.options.containerClass);
259
103
  this.$element.addClass(this.options.stickyClass).attr({
260
104
  'data-resize': id,
261
105
  'data-mutate': id
262
106
  });
263
-
264
107
  if (this.options.anchor !== '') {
265
108
  jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + _this.options.anchor).attr({
266
109
  'data-mutate': id
267
110
  });
268
111
  }
269
-
270
112
  this.scrollCount = this.options.checkEvery;
271
113
  this.isStuck = false;
272
- this.onLoadListener = Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["onLoad"])(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
114
+ this.onLoadListener = (0,_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
273
115
  //We calculate the container height to have correct values for anchor points offset calculation.
274
- _this.containerHeight = _this.$element.css("display") == "none" ? 0 : _this.$element[0].getBoundingClientRect().height;
275
-
116
+ _this.containerHeight = _this.$element.css("display") === "none" ? 0 : _this.$element[0].getBoundingClientRect().height;
276
117
  _this.$container.css('height', _this.containerHeight);
277
-
278
118
  _this.elemHeight = _this.containerHeight;
279
-
280
119
  if (_this.options.anchor !== '') {
281
120
  _this.$anchor = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + _this.options.anchor);
282
121
  } else {
283
122
  _this._parsePoints();
284
123
  }
285
-
286
124
  _this._setSizes(function () {
287
125
  var scroll = window.pageYOffset;
288
-
289
- _this._calc(false, scroll); //Unstick the element will ensure that proper classes are set.
290
-
291
-
126
+ _this._calc(false, scroll);
127
+ //Unstick the element will ensure that proper classes are set.
292
128
  if (!_this.isStuck) {
293
129
  _this._removeSticky(scroll >= _this.topPoint ? false : true);
294
130
  }
295
131
  });
296
-
297
132
  _this._events(id.split('-').reverse().join('-'));
298
133
  });
299
134
  }
135
+
300
136
  /**
301
137
  * If using multiple elements as anchors, calculates the top and bottom pixel values the sticky thing should stick and unstick on.
302
138
  * @function
303
139
  * @private
304
140
  */
305
-
306
141
  }, {
307
142
  key: "_parsePoints",
308
143
  value: function _parsePoints() {
309
- var top = this.options.topAnchor == "" ? 1 : this.options.topAnchor,
310
- btm = this.options.btmAnchor == "" ? document.documentElement.scrollHeight : this.options.btmAnchor,
311
- pts = [top, btm],
312
- breaks = {};
313
-
144
+ var top = this.options.topAnchor === "" ? 1 : this.options.topAnchor,
145
+ btm = this.options.btmAnchor === "" ? document.documentElement.scrollHeight : this.options.btmAnchor,
146
+ pts = [top, btm],
147
+ breaks = {};
314
148
  for (var i = 0, len = pts.length; i < len && pts[i]; i++) {
315
149
  var pt;
316
-
317
150
  if (typeof pts[i] === 'number') {
318
151
  pt = pts[i];
319
152
  } else {
320
153
  var place = pts[i].split(':'),
321
- anchor = jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(place[0]));
154
+ anchor = jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(place[0]));
322
155
  pt = anchor.offset().top;
323
-
324
156
  if (place[1] && place[1].toLowerCase() === 'bottom') {
325
157
  pt += anchor[0].getBoundingClientRect().height;
326
158
  }
327
159
  }
328
-
329
160
  breaks[i] = pt;
330
161
  }
331
-
332
162
  this.points = breaks;
333
163
  return;
334
164
  }
165
+
335
166
  /**
336
167
  * Adds event handlers for the scrolling element.
337
168
  * @private
338
169
  * @param {String} id - pseudo-random id for unique scroll event listener.
339
170
  */
340
-
341
171
  }, {
342
172
  key: "_events",
343
173
  value: function _events(id) {
344
174
  var _this = this,
345
- scrollListener = this.scrollListener = "scroll.zf.".concat(id);
346
-
175
+ scrollListener = this.scrollListener = "scroll.zf.".concat(id);
347
176
  if (this.isOn) {
348
177
  return;
349
178
  }
350
-
351
179
  if (this.canStick) {
352
180
  this.isOn = true;
353
- jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(scrollListener).on(scrollListener, function (e) {
181
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(scrollListener).on(scrollListener, function () {
354
182
  if (_this.scrollCount === 0) {
355
183
  _this.scrollCount = _this.options.checkEvery;
356
-
357
184
  _this._setSizes(function () {
358
185
  _this._calc(false, window.pageYOffset);
359
186
  });
360
187
  } else {
361
188
  _this.scrollCount--;
362
-
363
189
  _this._calc(false, window.pageYOffset);
364
190
  }
365
191
  });
366
192
  }
367
-
368
- this.$element.off('resizeme.zf.trigger').on('resizeme.zf.trigger', function (e, el) {
193
+ this.$element.off('resizeme.zf.trigger').on('resizeme.zf.trigger', function () {
369
194
  _this._eventsHandler(id);
370
195
  });
371
- this.$element.on('mutateme.zf.trigger', function (e, el) {
196
+ this.$element.on('mutateme.zf.trigger', function () {
372
197
  _this._eventsHandler(id);
373
198
  });
374
-
375
199
  if (this.$anchor) {
376
- this.$anchor.on('mutateme.zf.trigger', function (e, el) {
200
+ this.$anchor.on('mutateme.zf.trigger', function () {
377
201
  _this._eventsHandler(id);
378
202
  });
379
203
  }
380
204
  }
205
+
381
206
  /**
382
207
  * Handler for events.
383
208
  * @private
384
209
  * @param {String} id - pseudo-random id for unique scroll event listener.
385
210
  */
386
-
387
211
  }, {
388
212
  key: "_eventsHandler",
389
213
  value: function _eventsHandler(id) {
390
214
  var _this = this,
391
- scrollListener = this.scrollListener = "scroll.zf.".concat(id);
392
-
215
+ scrollListener = this.scrollListener = "scroll.zf.".concat(id);
393
216
  _this._setSizes(function () {
394
217
  _this._calc(false);
395
-
396
218
  if (_this.canStick) {
397
219
  if (!_this.isOn) {
398
220
  _this._events(id);
@@ -402,51 +224,47 @@ function (_Plugin) {
402
224
  }
403
225
  });
404
226
  }
227
+
405
228
  /**
406
229
  * Removes event handlers for scroll and change events on anchor.
407
230
  * @fires Sticky#pause
408
231
  * @param {String} scrollListener - unique, namespaced scroll listener attached to `window`
409
232
  */
410
-
411
233
  }, {
412
234
  key: "_pauseListeners",
413
235
  value: function _pauseListeners(scrollListener) {
414
236
  this.isOn = false;
415
237
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(scrollListener);
238
+
416
239
  /**
417
240
  * Fires when the plugin is paused due to resize event shrinking the view.
418
241
  * @event Sticky#pause
419
242
  * @private
420
243
  */
421
-
422
244
  this.$element.trigger('pause.zf.sticky');
423
245
  }
246
+
424
247
  /**
425
248
  * Called on every `scroll` event and on `_init`
426
249
  * fires functions based on booleans and cached values
427
250
  * @param {Boolean} checkSizes - true if plugin should recalculate sizes and breakpoints.
428
251
  * @param {Number} scroll - current scroll position passed from scroll event cb function. If not passed, defaults to `window.pageYOffset`.
429
252
  */
430
-
431
253
  }, {
432
254
  key: "_calc",
433
255
  value: function _calc(checkSizes, scroll) {
434
256
  if (checkSizes) {
435
257
  this._setSizes();
436
258
  }
437
-
438
259
  if (!this.canStick) {
439
260
  if (this.isStuck) {
440
261
  this._removeSticky(true);
441
262
  }
442
-
443
263
  return false;
444
264
  }
445
-
446
265
  if (!scroll) {
447
266
  scroll = window.pageYOffset;
448
267
  }
449
-
450
268
  if (scroll >= this.topPoint) {
451
269
  if (scroll <= this.bottomPoint) {
452
270
  if (!this.isStuck) {
@@ -463,6 +281,7 @@ function (_Plugin) {
463
281
  }
464
282
  }
465
283
  }
284
+
466
285
  /**
467
286
  * Causes the $element to become stuck.
468
287
  * Adds `position: fixed;`, and helper classes.
@@ -470,16 +289,14 @@ function (_Plugin) {
470
289
  * @function
471
290
  * @private
472
291
  */
473
-
474
292
  }, {
475
293
  key: "_setSticky",
476
294
  value: function _setSticky() {
477
295
  var _this = this,
478
- stickTo = this.options.stickTo,
479
- mrgn = stickTo === 'top' ? 'marginTop' : 'marginBottom',
480
- notStuckTo = stickTo === 'top' ? 'bottom' : 'top',
481
- css = {};
482
-
296
+ stickTo = this.options.stickTo,
297
+ mrgn = stickTo === 'top' ? 'marginTop' : 'marginBottom',
298
+ notStuckTo = stickTo === 'top' ? 'bottom' : 'top',
299
+ css = {};
483
300
  css[mrgn] = "".concat(this.options[mrgn], "em");
484
301
  css[stickTo] = 0;
485
302
  css[notStuckTo] = 'auto';
@@ -489,12 +306,12 @@ function (_Plugin) {
489
306
  * Fires when the $element has become `position: fixed;`
490
307
  * Namespaced to `top` or `bottom`, e.g. `sticky.zf.stuckto:top`
491
308
  * @event Sticky#stuckto
492
- */
493
- .trigger("sticky.zf.stuckto:".concat(stickTo));
309
+ */.trigger("sticky.zf.stuckto:".concat(stickTo));
494
310
  this.$element.on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd", function () {
495
311
  _this._setSizes();
496
312
  });
497
313
  }
314
+
498
315
  /**
499
316
  * Causes the $element to become unstuck.
500
317
  * Removes `position: fixed;`, and helper classes.
@@ -503,99 +320,87 @@ function (_Plugin) {
503
320
  * @fires Sticky#unstuckfrom
504
321
  * @private
505
322
  */
506
-
507
323
  }, {
508
324
  key: "_removeSticky",
509
325
  value: function _removeSticky(isTop) {
510
326
  var stickTo = this.options.stickTo,
511
- stickToTop = stickTo === 'top',
512
- css = {},
513
- anchorPt = (this.points ? this.points[1] - this.points[0] : this.anchorHeight) - this.elemHeight,
514
- mrgn = stickToTop ? 'marginTop' : 'marginBottom',
515
- notStuckTo = stickToTop ? 'bottom' : 'top',
516
- topOrBottom = isTop ? 'top' : 'bottom';
327
+ stickToTop = stickTo === 'top',
328
+ css = {},
329
+ anchorPt = (this.points ? this.points[1] - this.points[0] : this.anchorHeight) - this.elemHeight,
330
+ mrgn = stickToTop ? 'marginTop' : 'marginBottom',
331
+ topOrBottom = isTop ? 'top' : 'bottom';
517
332
  css[mrgn] = 0;
518
- css['bottom'] = 'auto';
519
-
333
+ css.bottom = 'auto';
520
334
  if (isTop) {
521
- css['top'] = 0;
335
+ css.top = 0;
522
336
  } else {
523
- css['top'] = anchorPt;
337
+ css.top = anchorPt;
524
338
  }
525
-
526
339
  this.isStuck = false;
527
340
  this.$element.removeClass("is-stuck is-at-".concat(stickTo)).addClass("is-anchored is-at-".concat(topOrBottom)).css(css)
528
341
  /**
529
342
  * Fires when the $element has become anchored.
530
343
  * Namespaced to `top` or `bottom`, e.g. `sticky.zf.unstuckfrom:bottom`
531
344
  * @event Sticky#unstuckfrom
532
- */
533
- .trigger("sticky.zf.unstuckfrom:".concat(topOrBottom));
345
+ */.trigger("sticky.zf.unstuckfrom:".concat(topOrBottom));
534
346
  }
347
+
535
348
  /**
536
349
  * Sets the $element and $container sizes for plugin.
537
350
  * Calls `_setBreakPoints`.
538
351
  * @param {Function} cb - optional callback function to fire on completion of `_setBreakPoints`.
539
352
  * @private
540
353
  */
541
-
542
354
  }, {
543
355
  key: "_setSizes",
544
356
  value: function _setSizes(cb) {
545
- this.canStick = _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__["MediaQuery"].is(this.options.stickyOn);
546
-
357
+ this.canStick = _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__.MediaQuery.is(this.options.stickyOn);
547
358
  if (!this.canStick) {
548
359
  if (cb && typeof cb === 'function') {
549
360
  cb();
550
361
  }
551
362
  }
552
-
553
- var _this = this,
554
- newElemWidth = this.$container[0].getBoundingClientRect().width,
555
- comp = window.getComputedStyle(this.$container[0]),
556
- pdngl = parseInt(comp['padding-left'], 10),
557
- pdngr = parseInt(comp['padding-right'], 10);
558
-
363
+ var newElemWidth = this.$container[0].getBoundingClientRect().width,
364
+ comp = window.getComputedStyle(this.$container[0]),
365
+ pdngl = parseInt(comp['padding-left'], 10),
366
+ pdngr = parseInt(comp['padding-right'], 10);
559
367
  if (this.$anchor && this.$anchor.length) {
560
368
  this.anchorHeight = this.$anchor[0].getBoundingClientRect().height;
561
369
  } else {
562
370
  this._parsePoints();
563
371
  }
564
-
565
372
  this.$element.css({
566
373
  'max-width': "".concat(newElemWidth - pdngl - pdngr, "px")
567
- }); // Recalculate the height only if it is "dynamic"
374
+ });
568
375
 
376
+ // Recalculate the height only if it is "dynamic"
569
377
  if (this.options.dynamicHeight || !this.containerHeight) {
570
378
  // Get the sticked element height and apply it to the container to "hold the place"
571
379
  var newContainerHeight = this.$element[0].getBoundingClientRect().height || this.containerHeight;
572
- newContainerHeight = this.$element.css("display") == "none" ? 0 : newContainerHeight;
380
+ newContainerHeight = this.$element.css("display") === "none" ? 0 : newContainerHeight;
573
381
  this.$container.css('height', newContainerHeight);
574
382
  this.containerHeight = newContainerHeight;
575
383
  }
576
-
577
384
  this.elemHeight = this.containerHeight;
578
-
579
385
  if (!this.isStuck) {
580
386
  if (this.$element.hasClass('is-at-bottom')) {
581
387
  var anchorPt = (this.points ? this.points[1] - this.$container.offset().top : this.anchorHeight) - this.elemHeight;
582
388
  this.$element.css('top', anchorPt);
583
389
  }
584
390
  }
585
-
586
391
  this._setBreakPoints(this.containerHeight, function () {
587
392
  if (cb && typeof cb === 'function') {
588
393
  cb();
589
394
  }
590
395
  });
591
396
  }
397
+
592
398
  /**
593
399
  * Sets the upper and lower breakpoints for the element to become sticky/unsticky.
594
400
  * @param {Number} elemHeight - px value for sticky.$element height, calculated by `_setSizes`.
595
401
  * @param {Function} cb - optional callback function to be called on completion.
596
402
  * @private
597
403
  */
598
-
599
404
  }, {
600
405
  key: "_setBreakPoints",
601
406
  value: function _setBreakPoints(elemHeight, cb) {
@@ -606,57 +411,50 @@ function (_Plugin) {
606
411
  return false;
607
412
  }
608
413
  }
609
-
610
414
  var mTop = emCalc(this.options.marginTop),
611
- mBtm = emCalc(this.options.marginBottom),
612
- topPoint = this.points ? this.points[0] : this.$anchor.offset().top,
613
- bottomPoint = this.points ? this.points[1] : topPoint + this.anchorHeight,
614
- // topPoint = this.$anchor.offset().top || this.points[0],
615
- // bottomPoint = topPoint + this.anchorHeight || this.points[1],
616
- winHeight = window.innerHeight;
617
-
415
+ mBtm = emCalc(this.options.marginBottom),
416
+ topPoint = this.points ? this.points[0] : this.$anchor.offset().top,
417
+ bottomPoint = this.points ? this.points[1] : topPoint + this.anchorHeight,
418
+ // topPoint = this.$anchor.offset().top || this.points[0],
419
+ // bottomPoint = topPoint + this.anchorHeight || this.points[1],
420
+ winHeight = window.innerHeight;
618
421
  if (this.options.stickTo === 'top') {
619
422
  topPoint -= mTop;
620
423
  bottomPoint -= elemHeight + mTop;
621
424
  } else if (this.options.stickTo === 'bottom') {
622
425
  topPoint -= winHeight - (elemHeight + mBtm);
623
426
  bottomPoint -= winHeight - mBtm;
624
- } else {//this would be the stickTo: both option... tricky
427
+ } else {
428
+ //this would be the stickTo: both option... tricky
625
429
  }
626
-
627
430
  this.topPoint = topPoint;
628
431
  this.bottomPoint = bottomPoint;
629
-
630
432
  if (cb && typeof cb === 'function') {
631
433
  cb();
632
434
  }
633
435
  }
436
+
634
437
  /**
635
438
  * Destroys the current sticky element.
636
439
  * Resets the element to the top position first.
637
440
  * Removes event listeners, JS-added css properties and classes, and unwraps the $element if the JS added the $container.
638
441
  * @function
639
442
  */
640
-
641
443
  }, {
642
444
  key: "_destroy",
643
445
  value: function _destroy() {
644
446
  this._removeSticky(true);
645
-
646
447
  this.$element.removeClass("".concat(this.options.stickyClass, " is-anchored is-at-top")).css({
647
448
  height: '',
648
449
  top: '',
649
450
  bottom: '',
650
451
  'max-width': ''
651
452
  }).off('resizeme.zf.trigger').off('mutateme.zf.trigger');
652
-
653
453
  if (this.$anchor && this.$anchor.length) {
654
454
  this.$anchor.off('change.zf.sticky');
655
455
  }
656
-
657
456
  if (this.scrollListener) jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.scrollListener);
658
457
  if (this.onLoadListener) jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);
659
-
660
458
  if (this.wasWrapped) {
661
459
  this.$element.unwrap();
662
460
  } else {
@@ -666,10 +464,7 @@ function (_Plugin) {
666
464
  }
667
465
  }
668
466
  }]);
669
-
670
- return Sticky;
671
- }(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
672
-
467
+ }(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);
673
468
  Sticky.defaults = {
674
469
  /**
675
470
  * Customizable container template. Add your own classes for styling and sizing.
@@ -678,7 +473,6 @@ Sticky.defaults = {
678
473
  * @default '&lt;div data-sticky-container&gt;&lt;/div&gt;'
679
474
  */
680
475
  container: '<div data-sticky-container></div>',
681
-
682
476
  /**
683
477
  * Location in the view the element sticks to. Can be `'top'` or `'bottom'`.
684
478
  * @option
@@ -686,7 +480,6 @@ Sticky.defaults = {
686
480
  * @default 'top'
687
481
  */
688
482
  stickTo: 'top',
689
-
690
483
  /**
691
484
  * If anchored to a single element, the id of that element.
692
485
  * @option
@@ -694,7 +487,6 @@ Sticky.defaults = {
694
487
  * @default ''
695
488
  */
696
489
  anchor: '',
697
-
698
490
  /**
699
491
  * If using more than one element as anchor points, the id of the top anchor.
700
492
  * @option
@@ -702,7 +494,6 @@ Sticky.defaults = {
702
494
  * @default ''
703
495
  */
704
496
  topAnchor: '',
705
-
706
497
  /**
707
498
  * If using more than one element as anchor points, the id of the bottom anchor.
708
499
  * @option
@@ -710,7 +501,6 @@ Sticky.defaults = {
710
501
  * @default ''
711
502
  */
712
503
  btmAnchor: '',
713
-
714
504
  /**
715
505
  * Margin, in `em`'s to apply to the top of the element when it becomes sticky.
716
506
  * @option
@@ -718,7 +508,6 @@ Sticky.defaults = {
718
508
  * @default 1
719
509
  */
720
510
  marginTop: 1,
721
-
722
511
  /**
723
512
  * Margin, in `em`'s to apply to the bottom of the element when it becomes sticky.
724
513
  * @option
@@ -726,7 +515,6 @@ Sticky.defaults = {
726
515
  * @default 1
727
516
  */
728
517
  marginBottom: 1,
729
-
730
518
  /**
731
519
  * Breakpoint string that is the minimum screen size an element should become sticky.
732
520
  * @option
@@ -734,7 +522,6 @@ Sticky.defaults = {
734
522
  * @default 'medium'
735
523
  */
736
524
  stickyOn: 'medium',
737
-
738
525
  /**
739
526
  * Class applied to sticky element, and removed on destruction. Foundation defaults to `sticky`.
740
527
  * @option
@@ -742,7 +529,6 @@ Sticky.defaults = {
742
529
  * @default 'sticky'
743
530
  */
744
531
  stickyClass: 'sticky',
745
-
746
532
  /**
747
533
  * Class applied to sticky container. Foundation defaults to `sticky-container`.
748
534
  * @option
@@ -750,7 +536,6 @@ Sticky.defaults = {
750
536
  * @default 'sticky-container'
751
537
  */
752
538
  containerClass: 'sticky-container',
753
-
754
539
  /**
755
540
  * If true (by default), keep the sticky container the same height as the element. Otherwise, the container height is set once and does not change.
756
541
  * @option
@@ -758,7 +543,6 @@ Sticky.defaults = {
758
543
  * @default true
759
544
  */
760
545
  dynamicHeight: true,
761
-
762
546
  /**
763
547
  * Number of scroll events between the plugin's recalculating sticky points. Setting it to `0` will cause it to recalc every scroll event, setting it to `-1` will prevent recalc on scroll.
764
548
  * @option
@@ -767,61 +551,52 @@ Sticky.defaults = {
767
551
  */
768
552
  checkEvery: -1
769
553
  };
554
+
770
555
  /**
771
556
  * Helper function to calculate em values
772
557
  * @param Number {em} - number of em's to calculate into pixels
773
558
  */
774
-
775
559
  function emCalc(em) {
776
560
  return parseInt(window.getComputedStyle(document.body, null).fontSize, 10) * em;
777
561
  }
778
562
 
779
563
 
780
-
781
564
  /***/ }),
782
565
 
783
566
  /***/ "./js/foundation.util.triggers.js":
784
567
  /*!****************************************!*\
785
568
  !*** ./js/foundation.util.triggers.js ***!
786
569
  \****************************************/
787
- /*! exports provided: Triggers */
788
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
570
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
789
571
 
790
- "use strict";
791
572
  __webpack_require__.r(__webpack_exports__);
792
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Triggers", function() { return Triggers; });
573
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
574
+ /* harmony export */ Triggers: function() { return /* binding */ Triggers; }
575
+ /* harmony export */ });
793
576
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
794
577
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
795
578
  /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
796
579
  /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
797
580
  /* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.motion */ "./foundation.util.motion");
798
581
  /* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
799
-
800
-
801
- 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); }
802
-
803
-
582
+ 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); }
804
583
 
805
584
 
806
585
 
807
586
  var MutationObserver = function () {
808
587
  var prefixes = ['WebKit', 'Moz', 'O', 'Ms', ''];
809
-
810
588
  for (var i = 0; i < prefixes.length; i++) {
811
589
  if ("".concat(prefixes[i], "MutationObserver") in window) {
812
590
  return window["".concat(prefixes[i], "MutationObserver")];
813
591
  }
814
592
  }
815
-
816
593
  return false;
817
594
  }();
818
-
819
595
  var triggers = function triggers(el, type) {
820
596
  el.data(type).split(' ').forEach(function (id) {
821
597
  jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type === 'close' ? 'trigger' : 'triggerHandler']("".concat(type, ".zf.trigger"), [el]);
822
598
  });
823
599
  };
824
-
825
600
  var Triggers = {
826
601
  Listeners: {
827
602
  Basic: {},
@@ -835,7 +610,6 @@ Triggers.Listeners.Basic = {
835
610
  },
836
611
  closeListener: function closeListener() {
837
612
  var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
838
-
839
613
  if (id) {
840
614
  triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'close');
841
615
  } else {
@@ -844,7 +618,6 @@ Triggers.Listeners.Basic = {
844
618
  },
845
619
  toggleListener: function toggleListener() {
846
620
  var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
847
-
848
621
  if (id) {
849
622
  triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'toggle');
850
623
  } else {
@@ -852,12 +625,12 @@ Triggers.Listeners.Basic = {
852
625
  }
853
626
  },
854
627
  closeableListener: function closeableListener(e) {
855
- var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable'); // Only close the first closable element. See https://git.io/zf-7833
628
+ var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
856
629
 
630
+ // Only close the first closable element. See https://git.io/zf-7833
857
631
  e.stopPropagation();
858
-
859
632
  if (animation !== '') {
860
- _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__["Motion"].animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), animation, function () {
633
+ _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Motion.animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), animation, function () {
861
634
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
862
635
  });
863
636
  } else {
@@ -868,39 +641,40 @@ Triggers.Listeners.Basic = {
868
641
  var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
869
642
  jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger', [jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
870
643
  }
871
- }; // Elements with [data-open] will reveal a plugin that supports it when clicked.
644
+ };
872
645
 
646
+ // Elements with [data-open] will reveal a plugin that supports it when clicked.
873
647
  Triggers.Initializers.addOpenListener = function ($elem) {
874
648
  $elem.off('click.zf.trigger', Triggers.Listeners.Basic.openListener);
875
649
  $elem.on('click.zf.trigger', '[data-open]', Triggers.Listeners.Basic.openListener);
876
- }; // Elements with [data-close] will close a plugin that supports it when clicked.
877
- // If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
878
-
650
+ };
879
651
 
652
+ // Elements with [data-close] will close a plugin that supports it when clicked.
653
+ // If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
880
654
  Triggers.Initializers.addCloseListener = function ($elem) {
881
655
  $elem.off('click.zf.trigger', Triggers.Listeners.Basic.closeListener);
882
656
  $elem.on('click.zf.trigger', '[data-close]', Triggers.Listeners.Basic.closeListener);
883
- }; // Elements with [data-toggle] will toggle a plugin that supports it when clicked.
884
-
657
+ };
885
658
 
659
+ // Elements with [data-toggle] will toggle a plugin that supports it when clicked.
886
660
  Triggers.Initializers.addToggleListener = function ($elem) {
887
661
  $elem.off('click.zf.trigger', Triggers.Listeners.Basic.toggleListener);
888
662
  $elem.on('click.zf.trigger', '[data-toggle]', Triggers.Listeners.Basic.toggleListener);
889
- }; // Elements with [data-closable] will respond to close.zf.trigger events.
890
-
663
+ };
891
664
 
665
+ // Elements with [data-closable] will respond to close.zf.trigger events.
892
666
  Triggers.Initializers.addCloseableListener = function ($elem) {
893
667
  $elem.off('close.zf.trigger', Triggers.Listeners.Basic.closeableListener);
894
668
  $elem.on('close.zf.trigger', '[data-closeable], [data-closable]', Triggers.Listeners.Basic.closeableListener);
895
- }; // Elements with [data-toggle-focus] will respond to coming in and out of focus
896
-
669
+ };
897
670
 
671
+ // Elements with [data-toggle-focus] will respond to coming in and out of focus
898
672
  Triggers.Initializers.addToggleFocusListener = function ($elem) {
899
673
  $elem.off('focus.zf.trigger blur.zf.trigger', Triggers.Listeners.Basic.toggleFocusListener);
900
674
  $elem.on('focus.zf.trigger blur.zf.trigger', '[data-toggle-focus]', Triggers.Listeners.Basic.toggleFocusListener);
901
- }; // More Global/complex listeners and triggers
902
-
675
+ };
903
676
 
677
+ // More Global/complex listeners and triggers
904
678
  Triggers.Listeners.Global = {
905
679
  resizeListener: function resizeListener($nodes) {
906
680
  if (!MutationObserver) {
@@ -908,9 +682,8 @@ Triggers.Listeners.Global = {
908
682
  $nodes.each(function () {
909
683
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
910
684
  });
911
- } //trigger all listening elements and signal a resize event
912
-
913
-
685
+ }
686
+ //trigger all listening elements and signal a resize event
914
687
  $nodes.attr('data-events', "resize");
915
688
  },
916
689
  scrollListener: function scrollListener($nodes) {
@@ -919,9 +692,8 @@ Triggers.Listeners.Global = {
919
692
  $nodes.each(function () {
920
693
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
921
694
  });
922
- } //trigger all listening elements and signal a scroll event
923
-
924
-
695
+ }
696
+ //trigger all listening elements and signal a scroll event
925
697
  $nodes.attr('data-events', "scroll");
926
698
  },
927
699
  closeMeListener: function closeMeListener(e, pluginId) {
@@ -929,17 +701,15 @@ Triggers.Listeners.Global = {
929
701
  var plugins = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin, "]")).not("[data-yeti-box=\"".concat(pluginId, "\"]"));
930
702
  plugins.each(function () {
931
703
  var _this = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
932
-
933
704
  _this.triggerHandler('close.zf.trigger', [_this]);
934
705
  });
935
- } // Global, parses whole document.
936
-
706
+ }
937
707
  };
938
708
 
709
+ // Global, parses whole document.
939
710
  Triggers.Initializers.addClosemeListener = function (pluginName) {
940
711
  var yetiBoxes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
941
- plugNames = ['dropdown', 'tooltip', 'reveal'];
942
-
712
+ plugNames = ['dropdown', 'tooltip', 'reveal'];
943
713
  if (pluginName) {
944
714
  if (typeof pluginName === 'string') {
945
715
  plugNames.push(pluginName);
@@ -949,7 +719,6 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
949
719
  console.error('Plugin names must be strings');
950
720
  }
951
721
  }
952
-
953
722
  if (yetiBoxes.length) {
954
723
  var listeners = plugNames.map(function (name) {
955
724
  return "closeme.zf.".concat(name);
@@ -957,75 +726,63 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
957
726
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners, Triggers.Listeners.Global.closeMeListener);
958
727
  }
959
728
  };
960
-
961
729
  function debounceGlobalListener(debounce, trigger, listener) {
962
730
  var timer,
963
- args = Array.prototype.slice.call(arguments, 3);
964
- jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(trigger).on(trigger, function (e) {
731
+ args = Array.prototype.slice.call(arguments, 3);
732
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on(trigger, function () {
965
733
  if (timer) {
966
734
  clearTimeout(timer);
967
735
  }
968
-
969
736
  timer = setTimeout(function () {
970
737
  listener.apply(null, args);
971
738
  }, debounce || 10); //default time to emit scroll event
972
739
  });
973
740
  }
974
-
975
741
  Triggers.Initializers.addResizeListener = function (debounce) {
976
742
  var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
977
-
978
743
  if ($nodes.length) {
979
744
  debounceGlobalListener(debounce, 'resize.zf.trigger', Triggers.Listeners.Global.resizeListener, $nodes);
980
745
  }
981
746
  };
982
-
983
747
  Triggers.Initializers.addScrollListener = function (debounce) {
984
748
  var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
985
-
986
749
  if ($nodes.length) {
987
750
  debounceGlobalListener(debounce, 'scroll.zf.trigger', Triggers.Listeners.Global.scrollListener, $nodes);
988
751
  }
989
752
  };
990
-
991
753
  Triggers.Initializers.addMutationEventsListener = function ($elem) {
992
754
  if (!MutationObserver) {
993
755
  return false;
994
756
  }
757
+ var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]');
995
758
 
996
- var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]'); //element callback
997
-
759
+ //element callback
998
760
  var listeningElementsMutation = function listeningElementsMutation(mutationRecordsList) {
999
- var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target); //trigger the event handler for the element depending on type
761
+ var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
1000
762
 
763
+ //trigger the event handler for the element depending on type
1001
764
  switch (mutationRecordsList[0].type) {
1002
765
  case "attributes":
1003
766
  if ($target.attr("data-events") === "scroll" && mutationRecordsList[0].attributeName === "data-events") {
1004
767
  $target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]);
1005
768
  }
1006
-
1007
769
  if ($target.attr("data-events") === "resize" && mutationRecordsList[0].attributeName === "data-events") {
1008
770
  $target.triggerHandler('resizeme.zf.trigger', [$target]);
1009
771
  }
1010
-
1011
772
  if (mutationRecordsList[0].attributeName === "style") {
1012
773
  $target.closest("[data-mutate]").attr("data-events", "mutate");
1013
774
  $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
1014
775
  }
1015
-
1016
776
  break;
1017
-
1018
777
  case "childList":
1019
778
  $target.closest("[data-mutate]").attr("data-events", "mutate");
1020
779
  $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
1021
780
  break;
1022
-
1023
781
  default:
1024
782
  return false;
1025
783
  //nothing
1026
784
  }
1027
785
  };
1028
-
1029
786
  if ($nodes.length) {
1030
787
  //for each element that needs to listen for resizing, scrolling, or mutation add a single observer
1031
788
  for (var i = 0; i <= $nodes.length - 1; i++) {
@@ -1040,7 +797,6 @@ Triggers.Initializers.addMutationEventsListener = function ($elem) {
1040
797
  }
1041
798
  }
1042
799
  };
1043
-
1044
800
  Triggers.Initializers.addSimpleListeners = function () {
1045
801
  var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
1046
802
  Triggers.Initializers.addOpenListener($document);
@@ -1049,44 +805,58 @@ Triggers.Initializers.addSimpleListeners = function () {
1049
805
  Triggers.Initializers.addCloseableListener($document);
1050
806
  Triggers.Initializers.addToggleFocusListener($document);
1051
807
  };
1052
-
1053
808
  Triggers.Initializers.addGlobalListeners = function () {
1054
809
  var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
1055
810
  Triggers.Initializers.addMutationEventsListener($document);
1056
- Triggers.Initializers.addResizeListener();
811
+ Triggers.Initializers.addResizeListener(250);
1057
812
  Triggers.Initializers.addScrollListener();
1058
813
  Triggers.Initializers.addClosemeListener();
1059
814
  };
1060
-
1061
- Triggers.init = function ($, Foundation) {
1062
- Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])($(window), function () {
1063
- if ($.triggersInitialized !== true) {
815
+ Triggers.init = function (__, Foundation) {
816
+ (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
817
+ if ((jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) !== true) {
1064
818
  Triggers.Initializers.addSimpleListeners();
1065
819
  Triggers.Initializers.addGlobalListeners();
1066
- $.triggersInitialized = true;
820
+ (jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) = true;
1067
821
  }
1068
822
  });
1069
-
1070
823
  if (Foundation) {
1071
- Foundation.Triggers = Triggers; // Legacy included to be backwards compatible for now.
1072
-
824
+ Foundation.Triggers = Triggers;
825
+ // Legacy included to be backwards compatible for now.
1073
826
  Foundation.IHearYou = Triggers.Initializers.addGlobalListeners;
1074
827
  }
1075
828
  };
1076
829
 
1077
830
 
831
+ /***/ }),
832
+
833
+ /***/ "./foundation.core":
834
+ /*!****************************************************************************************************************************************************************!*\
835
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
836
+ \****************************************************************************************************************************************************************/
837
+ /***/ (function(module) {
838
+
839
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
1078
840
 
1079
841
  /***/ }),
1080
842
 
1081
- /***/ 17:
1082
- /*!*******************************************************!*\
1083
- !*** multi ./js/entries/plugins/foundation.sticky.js ***!
1084
- \*******************************************************/
1085
- /*! no static exports found */
1086
- /***/ (function(module, exports, __webpack_require__) {
843
+ /***/ "./foundation.util.mediaQuery":
844
+ /*!************************************************************************************************************************************************************************************************************!*\
845
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.mediaQuery"],"amd":"./foundation.util.mediaQuery","commonjs":"./foundation.util.mediaQuery","commonjs2":"./foundation.util.mediaQuery"} ***!
846
+ \************************************************************************************************************************************************************************************************************/
847
+ /***/ (function(module) {
848
+
849
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
850
+
851
+ /***/ }),
1087
852
 
1088
- module.exports = __webpack_require__(/*! /Volumes/Data/Development/Foundation/foundation-sites/js/entries/plugins/foundation.sticky.js */"./js/entries/plugins/foundation.sticky.js");
853
+ /***/ "./foundation.util.motion":
854
+ /*!********************************************************************************************************************************************************************************************!*\
855
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.motion"],"amd":"./foundation.util.motion","commonjs":"./foundation.util.motion","commonjs2":"./foundation.util.motion"} ***!
856
+ \********************************************************************************************************************************************************************************************/
857
+ /***/ (function(module) {
1089
858
 
859
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
1090
860
 
1091
861
  /***/ }),
1092
862
 
@@ -1094,13 +864,101 @@ module.exports = __webpack_require__(/*! /Volumes/Data/Development/Foundation/fo
1094
864
  /*!********************************************************************************************!*\
1095
865
  !*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
1096
866
  \********************************************************************************************/
1097
- /*! no static exports found */
1098
- /***/ (function(module, exports) {
867
+ /***/ (function(module) {
1099
868
 
1100
869
  module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
1101
870
 
1102
871
  /***/ })
1103
872
 
1104
- /******/ });
873
+ /******/ });
874
+ /************************************************************************/
875
+ /******/ // The module cache
876
+ /******/ var __webpack_module_cache__ = {};
877
+ /******/
878
+ /******/ // The require function
879
+ /******/ function __webpack_require__(moduleId) {
880
+ /******/ // Check if module is in cache
881
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
882
+ /******/ if (cachedModule !== undefined) {
883
+ /******/ return cachedModule.exports;
884
+ /******/ }
885
+ /******/ // Create a new module (and put it into the cache)
886
+ /******/ var module = __webpack_module_cache__[moduleId] = {
887
+ /******/ // no module.id needed
888
+ /******/ // no module.loaded needed
889
+ /******/ exports: {}
890
+ /******/ };
891
+ /******/
892
+ /******/ // Execute the module function
893
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
894
+ /******/
895
+ /******/ // Return the exports of the module
896
+ /******/ return module.exports;
897
+ /******/ }
898
+ /******/
899
+ /************************************************************************/
900
+ /******/ /* webpack/runtime/compat get default export */
901
+ /******/ !function() {
902
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
903
+ /******/ __webpack_require__.n = function(module) {
904
+ /******/ var getter = module && module.__esModule ?
905
+ /******/ function() { return module['default']; } :
906
+ /******/ function() { return module; };
907
+ /******/ __webpack_require__.d(getter, { a: getter });
908
+ /******/ return getter;
909
+ /******/ };
910
+ /******/ }();
911
+ /******/
912
+ /******/ /* webpack/runtime/define property getters */
913
+ /******/ !function() {
914
+ /******/ // define getter functions for harmony exports
915
+ /******/ __webpack_require__.d = function(exports, definition) {
916
+ /******/ for(var key in definition) {
917
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
918
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
919
+ /******/ }
920
+ /******/ }
921
+ /******/ };
922
+ /******/ }();
923
+ /******/
924
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
925
+ /******/ !function() {
926
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
927
+ /******/ }();
928
+ /******/
929
+ /******/ /* webpack/runtime/make namespace object */
930
+ /******/ !function() {
931
+ /******/ // define __esModule on exports
932
+ /******/ __webpack_require__.r = function(exports) {
933
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
934
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
935
+ /******/ }
936
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
937
+ /******/ };
938
+ /******/ }();
939
+ /******/
940
+ /************************************************************************/
941
+ var __webpack_exports__ = {};
942
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
943
+ !function() {
944
+ /*!*************************************************!*\
945
+ !*** ./js/entries/plugins/foundation.sticky.js ***!
946
+ \*************************************************/
947
+ __webpack_require__.r(__webpack_exports__);
948
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
949
+ /* harmony export */ Foundation: function() { return /* reexport safe */ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation; },
950
+ /* harmony export */ Sticky: function() { return /* reexport safe */ _foundation_sticky__WEBPACK_IMPORTED_MODULE_1__.Sticky; }
951
+ /* harmony export */ });
952
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
953
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
954
+ /* harmony import */ var _foundation_sticky__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.sticky */ "./js/foundation.sticky.js");
955
+
956
+
957
+ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation.plugin(_foundation_sticky__WEBPACK_IMPORTED_MODULE_1__.Sticky, 'Sticky');
958
+
959
+ }();
960
+ /******/ return __webpack_exports__;
961
+ /******/ })()
962
+ ;
1105
963
  });
1106
964
  //# sourceMappingURL=foundation.sticky.js.map