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,182 +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.motion"), require("jquery"));
3
+ module.exports = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.motion"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["./foundation.core", "./foundation.util.motion", "jquery"], factory);
5
+ define(["./foundation.core", "jquery", "./foundation.util.motion"], factory);
6
6
  else if(typeof exports === 'object')
7
- exports["foundation.toggler"] = factory(require("./foundation.core"), require("./foundation.util.motion"), require("jquery"));
7
+ exports["__FOUNDATION_EXTERNAL__"] = factory(require("./foundation.core"), require("jquery"), require("./foundation.util.motion"));
8
8
  else
9
- root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.toggler"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"], root["jQuery"]);
10
- })(window, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __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 = 19);
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.motion":
111
- /*!********************************************************************************************************************************************************************************************!*\
112
- !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.motion"],"amd":"./foundation.util.motion","commonjs":"./foundation.util.motion","commonjs2":"./foundation.util.motion"} ***!
113
- \********************************************************************************************************************************************************************************************/
114
- /*! no static exports found */
115
- /***/ (function(module, exports) {
116
-
117
- module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
118
-
119
- /***/ }),
120
-
121
- /***/ "./js/entries/plugins/foundation.toggler.js":
122
- /*!**************************************************!*\
123
- !*** ./js/entries/plugins/foundation.toggler.js ***!
124
- \**************************************************/
125
- /*! exports provided: Foundation, Toggler */
126
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
127
-
128
- "use strict";
129
- __webpack_require__.r(__webpack_exports__);
130
- /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
131
- /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
132
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; });
133
-
134
- /* harmony import */ var _foundation_toggler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.toggler */ "./js/foundation.toggler.js");
135
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Toggler", function() { return _foundation_toggler__WEBPACK_IMPORTED_MODULE_1__["Toggler"]; });
136
-
137
-
138
-
139
- _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_toggler__WEBPACK_IMPORTED_MODULE_1__["Toggler"], 'Toggler');
140
-
141
-
142
- /***/ }),
9
+ root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.toggler"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["jQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"]);
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__) {
11
+ return /******/ (function() { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
143
14
 
144
15
  /***/ "./js/foundation.toggler.js":
145
16
  /*!**********************************!*\
146
17
  !*** ./js/foundation.toggler.js ***!
147
18
  \**********************************/
148
- /*! exports provided: Toggler */
149
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
19
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
150
20
 
151
- "use strict";
152
21
  __webpack_require__.r(__webpack_exports__);
153
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Toggler", function() { return Toggler; });
22
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
+ /* harmony export */ Toggler: function() { return /* binding */ Toggler; }
24
+ /* harmony export */ });
154
25
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
155
26
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
156
27
  /* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.util.motion */ "./foundation.util.motion");
157
28
  /* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__);
158
- /* 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");
159
30
  /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__);
160
31
  /* harmony import */ var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation.util.triggers */ "./js/foundation.util.triggers.js");
161
-
162
-
163
- 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); }
164
-
165
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
166
-
167
- 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); } }
168
-
169
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
170
-
171
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
172
-
173
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
174
-
175
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
176
-
177
- 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); }
178
-
179
- 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); }
180
45
 
181
46
 
182
47
 
@@ -189,21 +54,15 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
189
54
  * @requires foundation.util.motion
190
55
  * @requires foundation.util.triggers
191
56
  */
192
-
193
- var Toggler =
194
- /*#__PURE__*/
195
- function (_Plugin) {
196
- _inherits(Toggler, _Plugin);
197
-
57
+ var Toggler = /*#__PURE__*/function (_Plugin) {
198
58
  function Toggler() {
199
59
  _classCallCheck(this, Toggler);
200
-
201
- return _possibleConstructorReturn(this, _getPrototypeOf(Toggler).apply(this, arguments));
60
+ return _callSuper(this, Toggler, arguments);
202
61
  }
203
-
204
- _createClass(Toggler, [{
62
+ _inherits(Toggler, _Plugin);
63
+ return _createClass(Toggler, [{
205
64
  key: "_setup",
206
-
65
+ value:
207
66
  /**
208
67
  * Creates a new instance of Toggler.
209
68
  * @class
@@ -212,79 +71,78 @@ function (_Plugin) {
212
71
  * @param {Object} element - jQuery object to add the trigger to.
213
72
  * @param {Object} options - Overrides to the default plugin settings.
214
73
  */
215
- value: function _setup(element, options) {
74
+ function _setup(element, options) {
216
75
  this.$element = element;
217
- this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({}, Toggler.defaults, element.data(), options);
76
+ this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({}, Toggler.defaults, element.data(), options);
218
77
  this.className = '';
219
78
  this.className = 'Toggler'; // ie9 back compat
220
- // Triggers init is idempotent, just need to make sure it is initialized
221
-
222
- _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__["Triggers"].init(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
223
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()));
224
82
  this._init();
225
-
226
83
  this._events();
227
84
  }
85
+
228
86
  /**
229
87
  * Initializes the Toggler plugin by parsing the toggle class from data-toggler, or animation classes from data-animate.
230
88
  * @function
231
89
  * @private
232
90
  */
233
-
234
91
  }, {
235
92
  key: "_init",
236
93
  value: function _init() {
237
94
  // Collect triggers to set ARIA attributes to
238
95
  var id = this.$element[0].id,
239
- $triggers = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-open~=\"".concat(id, "\"], [data-close~=\"").concat(id, "\"], [data-toggle~=\"").concat(id, "\"]"));
240
- var input; // Parse animation classes if they were set
241
-
96
+ $triggers = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-open~=\"".concat(id, "\"], [data-close~=\"").concat(id, "\"], [data-toggle~=\"").concat(id, "\"]"));
97
+ var input;
98
+ // Parse animation classes if they were set
242
99
  if (this.options.animate) {
243
100
  input = this.options.animate.split(' ');
244
101
  this.animationIn = input[0];
245
- this.animationOut = input[1] || null; // - aria-expanded: according to the element visibility.
102
+ this.animationOut = input[1] || null;
246
103
 
104
+ // - aria-expanded: according to the element visibility.
247
105
  $triggers.attr('aria-expanded', !this.$element.is(':hidden'));
248
- } // Otherwise, parse toggle class
106
+ }
107
+ // Otherwise, parse toggle class
249
108
  else {
250
- input = this.options.toggler;
251
-
252
- if (typeof input !== 'string' || !input.length) {
253
- throw new Error("The 'toogler' option containing the target class is required, got \"".concat(input, "\""));
254
- } // Allow for a . at the beginning of the string
255
-
256
-
257
- this.className = input[0] === '.' ? input.slice(1) : input; // - aria-expanded: according to the elements class set.
258
-
259
- $triggers.attr('aria-expanded', this.$element.hasClass(this.className));
260
- } // - aria-controls: adding the element id to it if not already in it.
109
+ input = this.options.toggler;
110
+ if (typeof input !== 'string' || !input.length) {
111
+ throw new Error("The 'toggler' option containing the target class is required, got \"".concat(input, "\""));
112
+ }
113
+ // Allow for a . at the beginning of the string
114
+ this.className = input[0] === '.' ? input.slice(1) : input;
261
115
 
116
+ // - aria-expanded: according to the elements class set.
117
+ $triggers.attr('aria-expanded', this.$element.hasClass(this.className));
118
+ }
262
119
 
120
+ // - aria-controls: adding the element id to it if not already in it.
263
121
  $triggers.each(function (index, trigger) {
264
122
  var $trigger = jquery__WEBPACK_IMPORTED_MODULE_0___default()(trigger);
265
123
  var controls = $trigger.attr('aria-controls') || '';
266
- var containsId = new RegExp("\\b".concat(Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__["RegExpEscape"])(id), "\\b")).test(controls);
124
+ var containsId = new RegExp("\\b".concat((0,_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__.RegExpEscape)(id), "\\b")).test(controls);
267
125
  if (!containsId) $trigger.attr('aria-controls', controls ? "".concat(controls, " ").concat(id) : id);
268
126
  });
269
127
  }
128
+
270
129
  /**
271
130
  * Initializes events for the toggle trigger.
272
131
  * @function
273
132
  * @private
274
133
  */
275
-
276
134
  }, {
277
135
  key: "_events",
278
136
  value: function _events() {
279
137
  this.$element.off('toggle.zf.trigger').on('toggle.zf.trigger', this.toggle.bind(this));
280
138
  }
139
+
281
140
  /**
282
141
  * Toggles the target class on the target element. An event is fired from the original trigger depending on if the resultant state was "on" or "off".
283
142
  * @function
284
143
  * @fires Toggler#on
285
144
  * @fires Toggler#off
286
145
  */
287
-
288
146
  }, {
289
147
  key: "toggle",
290
148
  value: function toggle() {
@@ -295,7 +153,6 @@ function (_Plugin) {
295
153
  value: function _toggleClass() {
296
154
  this.$element.toggleClass(this.className);
297
155
  var isOn = this.$element.hasClass(this.className);
298
-
299
156
  if (isOn) {
300
157
  /**
301
158
  * Fires if the target element has the class after a toggle.
@@ -309,27 +166,22 @@ function (_Plugin) {
309
166
  */
310
167
  this.$element.trigger('off.zf.toggler');
311
168
  }
312
-
313
169
  this._updateARIA(isOn);
314
-
315
170
  this.$element.find('[data-mutate]').trigger('mutateme.zf.trigger');
316
171
  }
317
172
  }, {
318
173
  key: "_toggleAnimate",
319
174
  value: function _toggleAnimate() {
320
175
  var _this = this;
321
-
322
176
  if (this.$element.is(':hidden')) {
323
- _foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__["Motion"].animateIn(this.$element, this.animationIn, function () {
177
+ _foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__.Motion.animateIn(this.$element, this.animationIn, function () {
324
178
  _this._updateARIA(true);
325
-
326
179
  this.trigger('on.zf.toggler');
327
180
  this.find('[data-mutate]').trigger('mutateme.zf.trigger');
328
181
  });
329
182
  } else {
330
- _foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__["Motion"].animateOut(this.$element, this.animationOut, function () {
183
+ _foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__.Motion.animateOut(this.$element, this.animationOut, function () {
331
184
  _this._updateARIA(false);
332
-
333
185
  this.trigger('off.zf.toggler');
334
186
  this.find('[data-mutate]').trigger('mutateme.zf.trigger');
335
187
  });
@@ -343,21 +195,18 @@ function (_Plugin) {
343
195
  'aria-expanded': isOn ? true : false
344
196
  });
345
197
  }
198
+
346
199
  /**
347
200
  * Destroys the instance of Toggler on the element.
348
201
  * @function
349
202
  */
350
-
351
203
  }, {
352
204
  key: "_destroy",
353
205
  value: function _destroy() {
354
206
  this.$element.off('.zf.toggler');
355
207
  }
356
208
  }]);
357
-
358
- return Toggler;
359
- }(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__["Plugin"]);
360
-
209
+ }(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__.Plugin);
361
210
  Toggler.defaults = {
362
211
  /**
363
212
  * Class of the element to toggle. It can be provided with or without "."
@@ -365,7 +214,6 @@ Toggler.defaults = {
365
214
  * @type {string}
366
215
  */
367
216
  toggler: undefined,
368
-
369
217
  /**
370
218
  * Tells the plugin if the element should animated when toggled.
371
219
  * @option
@@ -382,44 +230,36 @@ Toggler.defaults = {
382
230
  /*!****************************************!*\
383
231
  !*** ./js/foundation.util.triggers.js ***!
384
232
  \****************************************/
385
- /*! exports provided: Triggers */
386
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
233
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
387
234
 
388
- "use strict";
389
235
  __webpack_require__.r(__webpack_exports__);
390
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Triggers", function() { return Triggers; });
236
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
237
+ /* harmony export */ Triggers: function() { return /* binding */ Triggers; }
238
+ /* harmony export */ });
391
239
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
392
240
  /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
393
241
  /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
394
242
  /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
395
243
  /* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.motion */ "./foundation.util.motion");
396
244
  /* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
397
-
398
-
399
- 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); }
400
-
401
-
245
+ 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); }
402
246
 
403
247
 
404
248
 
405
249
  var MutationObserver = function () {
406
250
  var prefixes = ['WebKit', 'Moz', 'O', 'Ms', ''];
407
-
408
251
  for (var i = 0; i < prefixes.length; i++) {
409
252
  if ("".concat(prefixes[i], "MutationObserver") in window) {
410
253
  return window["".concat(prefixes[i], "MutationObserver")];
411
254
  }
412
255
  }
413
-
414
256
  return false;
415
257
  }();
416
-
417
258
  var triggers = function triggers(el, type) {
418
259
  el.data(type).split(' ').forEach(function (id) {
419
260
  jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type === 'close' ? 'trigger' : 'triggerHandler']("".concat(type, ".zf.trigger"), [el]);
420
261
  });
421
262
  };
422
-
423
263
  var Triggers = {
424
264
  Listeners: {
425
265
  Basic: {},
@@ -433,7 +273,6 @@ Triggers.Listeners.Basic = {
433
273
  },
434
274
  closeListener: function closeListener() {
435
275
  var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
436
-
437
276
  if (id) {
438
277
  triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'close');
439
278
  } else {
@@ -442,7 +281,6 @@ Triggers.Listeners.Basic = {
442
281
  },
443
282
  toggleListener: function toggleListener() {
444
283
  var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
445
-
446
284
  if (id) {
447
285
  triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'toggle');
448
286
  } else {
@@ -450,12 +288,12 @@ Triggers.Listeners.Basic = {
450
288
  }
451
289
  },
452
290
  closeableListener: function closeableListener(e) {
453
- var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable'); // Only close the first closable element. See https://git.io/zf-7833
291
+ var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
454
292
 
293
+ // Only close the first closable element. See https://git.io/zf-7833
455
294
  e.stopPropagation();
456
-
457
295
  if (animation !== '') {
458
- _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__["Motion"].animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), animation, function () {
296
+ _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Motion.animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), animation, function () {
459
297
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
460
298
  });
461
299
  } else {
@@ -466,39 +304,40 @@ Triggers.Listeners.Basic = {
466
304
  var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
467
305
  jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger', [jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
468
306
  }
469
- }; // Elements with [data-open] will reveal a plugin that supports it when clicked.
307
+ };
470
308
 
309
+ // Elements with [data-open] will reveal a plugin that supports it when clicked.
471
310
  Triggers.Initializers.addOpenListener = function ($elem) {
472
311
  $elem.off('click.zf.trigger', Triggers.Listeners.Basic.openListener);
473
312
  $elem.on('click.zf.trigger', '[data-open]', Triggers.Listeners.Basic.openListener);
474
- }; // Elements with [data-close] will close a plugin that supports it when clicked.
475
- // If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
476
-
313
+ };
477
314
 
315
+ // Elements with [data-close] will close a plugin that supports it when clicked.
316
+ // If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
478
317
  Triggers.Initializers.addCloseListener = function ($elem) {
479
318
  $elem.off('click.zf.trigger', Triggers.Listeners.Basic.closeListener);
480
319
  $elem.on('click.zf.trigger', '[data-close]', Triggers.Listeners.Basic.closeListener);
481
- }; // Elements with [data-toggle] will toggle a plugin that supports it when clicked.
482
-
320
+ };
483
321
 
322
+ // Elements with [data-toggle] will toggle a plugin that supports it when clicked.
484
323
  Triggers.Initializers.addToggleListener = function ($elem) {
485
324
  $elem.off('click.zf.trigger', Triggers.Listeners.Basic.toggleListener);
486
325
  $elem.on('click.zf.trigger', '[data-toggle]', Triggers.Listeners.Basic.toggleListener);
487
- }; // Elements with [data-closable] will respond to close.zf.trigger events.
488
-
326
+ };
489
327
 
328
+ // Elements with [data-closable] will respond to close.zf.trigger events.
490
329
  Triggers.Initializers.addCloseableListener = function ($elem) {
491
330
  $elem.off('close.zf.trigger', Triggers.Listeners.Basic.closeableListener);
492
331
  $elem.on('close.zf.trigger', '[data-closeable], [data-closable]', Triggers.Listeners.Basic.closeableListener);
493
- }; // Elements with [data-toggle-focus] will respond to coming in and out of focus
494
-
332
+ };
495
333
 
334
+ // Elements with [data-toggle-focus] will respond to coming in and out of focus
496
335
  Triggers.Initializers.addToggleFocusListener = function ($elem) {
497
336
  $elem.off('focus.zf.trigger blur.zf.trigger', Triggers.Listeners.Basic.toggleFocusListener);
498
337
  $elem.on('focus.zf.trigger blur.zf.trigger', '[data-toggle-focus]', Triggers.Listeners.Basic.toggleFocusListener);
499
- }; // More Global/complex listeners and triggers
500
-
338
+ };
501
339
 
340
+ // More Global/complex listeners and triggers
502
341
  Triggers.Listeners.Global = {
503
342
  resizeListener: function resizeListener($nodes) {
504
343
  if (!MutationObserver) {
@@ -506,9 +345,8 @@ Triggers.Listeners.Global = {
506
345
  $nodes.each(function () {
507
346
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
508
347
  });
509
- } //trigger all listening elements and signal a resize event
510
-
511
-
348
+ }
349
+ //trigger all listening elements and signal a resize event
512
350
  $nodes.attr('data-events', "resize");
513
351
  },
514
352
  scrollListener: function scrollListener($nodes) {
@@ -517,9 +355,8 @@ Triggers.Listeners.Global = {
517
355
  $nodes.each(function () {
518
356
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
519
357
  });
520
- } //trigger all listening elements and signal a scroll event
521
-
522
-
358
+ }
359
+ //trigger all listening elements and signal a scroll event
523
360
  $nodes.attr('data-events', "scroll");
524
361
  },
525
362
  closeMeListener: function closeMeListener(e, pluginId) {
@@ -527,17 +364,15 @@ Triggers.Listeners.Global = {
527
364
  var plugins = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin, "]")).not("[data-yeti-box=\"".concat(pluginId, "\"]"));
528
365
  plugins.each(function () {
529
366
  var _this = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
530
-
531
367
  _this.triggerHandler('close.zf.trigger', [_this]);
532
368
  });
533
- } // Global, parses whole document.
534
-
369
+ }
535
370
  };
536
371
 
372
+ // Global, parses whole document.
537
373
  Triggers.Initializers.addClosemeListener = function (pluginName) {
538
374
  var yetiBoxes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
539
- plugNames = ['dropdown', 'tooltip', 'reveal'];
540
-
375
+ plugNames = ['dropdown', 'tooltip', 'reveal'];
541
376
  if (pluginName) {
542
377
  if (typeof pluginName === 'string') {
543
378
  plugNames.push(pluginName);
@@ -547,7 +382,6 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
547
382
  console.error('Plugin names must be strings');
548
383
  }
549
384
  }
550
-
551
385
  if (yetiBoxes.length) {
552
386
  var listeners = plugNames.map(function (name) {
553
387
  return "closeme.zf.".concat(name);
@@ -555,75 +389,63 @@ Triggers.Initializers.addClosemeListener = function (pluginName) {
555
389
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners, Triggers.Listeners.Global.closeMeListener);
556
390
  }
557
391
  };
558
-
559
392
  function debounceGlobalListener(debounce, trigger, listener) {
560
393
  var timer,
561
- args = Array.prototype.slice.call(arguments, 3);
562
- jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(trigger).on(trigger, function (e) {
394
+ args = Array.prototype.slice.call(arguments, 3);
395
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on(trigger, function () {
563
396
  if (timer) {
564
397
  clearTimeout(timer);
565
398
  }
566
-
567
399
  timer = setTimeout(function () {
568
400
  listener.apply(null, args);
569
401
  }, debounce || 10); //default time to emit scroll event
570
402
  });
571
403
  }
572
-
573
404
  Triggers.Initializers.addResizeListener = function (debounce) {
574
405
  var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
575
-
576
406
  if ($nodes.length) {
577
407
  debounceGlobalListener(debounce, 'resize.zf.trigger', Triggers.Listeners.Global.resizeListener, $nodes);
578
408
  }
579
409
  };
580
-
581
410
  Triggers.Initializers.addScrollListener = function (debounce) {
582
411
  var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
583
-
584
412
  if ($nodes.length) {
585
413
  debounceGlobalListener(debounce, 'scroll.zf.trigger', Triggers.Listeners.Global.scrollListener, $nodes);
586
414
  }
587
415
  };
588
-
589
416
  Triggers.Initializers.addMutationEventsListener = function ($elem) {
590
417
  if (!MutationObserver) {
591
418
  return false;
592
419
  }
420
+ var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]');
593
421
 
594
- var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]'); //element callback
595
-
422
+ //element callback
596
423
  var listeningElementsMutation = function listeningElementsMutation(mutationRecordsList) {
597
- var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target); //trigger the event handler for the element depending on type
424
+ var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
598
425
 
426
+ //trigger the event handler for the element depending on type
599
427
  switch (mutationRecordsList[0].type) {
600
428
  case "attributes":
601
429
  if ($target.attr("data-events") === "scroll" && mutationRecordsList[0].attributeName === "data-events") {
602
430
  $target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]);
603
431
  }
604
-
605
432
  if ($target.attr("data-events") === "resize" && mutationRecordsList[0].attributeName === "data-events") {
606
433
  $target.triggerHandler('resizeme.zf.trigger', [$target]);
607
434
  }
608
-
609
435
  if (mutationRecordsList[0].attributeName === "style") {
610
436
  $target.closest("[data-mutate]").attr("data-events", "mutate");
611
437
  $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
612
438
  }
613
-
614
439
  break;
615
-
616
440
  case "childList":
617
441
  $target.closest("[data-mutate]").attr("data-events", "mutate");
618
442
  $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
619
443
  break;
620
-
621
444
  default:
622
445
  return false;
623
446
  //nothing
624
447
  }
625
448
  };
626
-
627
449
  if ($nodes.length) {
628
450
  //for each element that needs to listen for resizing, scrolling, or mutation add a single observer
629
451
  for (var i = 0; i <= $nodes.length - 1; i++) {
@@ -638,7 +460,6 @@ Triggers.Initializers.addMutationEventsListener = function ($elem) {
638
460
  }
639
461
  }
640
462
  };
641
-
642
463
  Triggers.Initializers.addSimpleListeners = function () {
643
464
  var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
644
465
  Triggers.Initializers.addOpenListener($document);
@@ -647,44 +468,48 @@ Triggers.Initializers.addSimpleListeners = function () {
647
468
  Triggers.Initializers.addCloseableListener($document);
648
469
  Triggers.Initializers.addToggleFocusListener($document);
649
470
  };
650
-
651
471
  Triggers.Initializers.addGlobalListeners = function () {
652
472
  var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
653
473
  Triggers.Initializers.addMutationEventsListener($document);
654
- Triggers.Initializers.addResizeListener();
474
+ Triggers.Initializers.addResizeListener(250);
655
475
  Triggers.Initializers.addScrollListener();
656
476
  Triggers.Initializers.addClosemeListener();
657
477
  };
658
-
659
- Triggers.init = function ($, Foundation) {
660
- Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])($(window), function () {
661
- if ($.triggersInitialized !== true) {
478
+ Triggers.init = function (__, Foundation) {
479
+ (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
480
+ if ((jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) !== true) {
662
481
  Triggers.Initializers.addSimpleListeners();
663
482
  Triggers.Initializers.addGlobalListeners();
664
- $.triggersInitialized = true;
483
+ (jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized) = true;
665
484
  }
666
485
  });
667
-
668
486
  if (Foundation) {
669
- Foundation.Triggers = Triggers; // Legacy included to be backwards compatible for now.
670
-
487
+ Foundation.Triggers = Triggers;
488
+ // Legacy included to be backwards compatible for now.
671
489
  Foundation.IHearYou = Triggers.Initializers.addGlobalListeners;
672
490
  }
673
491
  };
674
492
 
675
493
 
676
-
677
494
  /***/ }),
678
495
 
679
- /***/ 19:
680
- /*!********************************************************!*\
681
- !*** multi ./js/entries/plugins/foundation.toggler.js ***!
682
- \********************************************************/
683
- /*! no static exports found */
684
- /***/ (function(module, exports, __webpack_require__) {
496
+ /***/ "./foundation.core":
497
+ /*!****************************************************************************************************************************************************************!*\
498
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
499
+ \****************************************************************************************************************************************************************/
500
+ /***/ (function(module) {
501
+
502
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
503
+
504
+ /***/ }),
685
505
 
686
- module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundation-sites/js/entries/plugins/foundation.toggler.js */"./js/entries/plugins/foundation.toggler.js");
506
+ /***/ "./foundation.util.motion":
507
+ /*!********************************************************************************************************************************************************************************************!*\
508
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.motion"],"amd":"./foundation.util.motion","commonjs":"./foundation.util.motion","commonjs2":"./foundation.util.motion"} ***!
509
+ \********************************************************************************************************************************************************************************************/
510
+ /***/ (function(module) {
687
511
 
512
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
688
513
 
689
514
  /***/ }),
690
515
 
@@ -692,13 +517,101 @@ module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundatio
692
517
  /*!********************************************************************************************!*\
693
518
  !*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
694
519
  \********************************************************************************************/
695
- /*! no static exports found */
696
- /***/ (function(module, exports) {
520
+ /***/ (function(module) {
697
521
 
698
522
  module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
699
523
 
700
524
  /***/ })
701
525
 
702
- /******/ });
526
+ /******/ });
527
+ /************************************************************************/
528
+ /******/ // The module cache
529
+ /******/ var __webpack_module_cache__ = {};
530
+ /******/
531
+ /******/ // The require function
532
+ /******/ function __webpack_require__(moduleId) {
533
+ /******/ // Check if module is in cache
534
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
535
+ /******/ if (cachedModule !== undefined) {
536
+ /******/ return cachedModule.exports;
537
+ /******/ }
538
+ /******/ // Create a new module (and put it into the cache)
539
+ /******/ var module = __webpack_module_cache__[moduleId] = {
540
+ /******/ // no module.id needed
541
+ /******/ // no module.loaded needed
542
+ /******/ exports: {}
543
+ /******/ };
544
+ /******/
545
+ /******/ // Execute the module function
546
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
547
+ /******/
548
+ /******/ // Return the exports of the module
549
+ /******/ return module.exports;
550
+ /******/ }
551
+ /******/
552
+ /************************************************************************/
553
+ /******/ /* webpack/runtime/compat get default export */
554
+ /******/ !function() {
555
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
556
+ /******/ __webpack_require__.n = function(module) {
557
+ /******/ var getter = module && module.__esModule ?
558
+ /******/ function() { return module['default']; } :
559
+ /******/ function() { return module; };
560
+ /******/ __webpack_require__.d(getter, { a: getter });
561
+ /******/ return getter;
562
+ /******/ };
563
+ /******/ }();
564
+ /******/
565
+ /******/ /* webpack/runtime/define property getters */
566
+ /******/ !function() {
567
+ /******/ // define getter functions for harmony exports
568
+ /******/ __webpack_require__.d = function(exports, definition) {
569
+ /******/ for(var key in definition) {
570
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
571
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
572
+ /******/ }
573
+ /******/ }
574
+ /******/ };
575
+ /******/ }();
576
+ /******/
577
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
578
+ /******/ !function() {
579
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
580
+ /******/ }();
581
+ /******/
582
+ /******/ /* webpack/runtime/make namespace object */
583
+ /******/ !function() {
584
+ /******/ // define __esModule on exports
585
+ /******/ __webpack_require__.r = function(exports) {
586
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
587
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
588
+ /******/ }
589
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
590
+ /******/ };
591
+ /******/ }();
592
+ /******/
593
+ /************************************************************************/
594
+ var __webpack_exports__ = {};
595
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
596
+ !function() {
597
+ /*!**************************************************!*\
598
+ !*** ./js/entries/plugins/foundation.toggler.js ***!
599
+ \**************************************************/
600
+ __webpack_require__.r(__webpack_exports__);
601
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
602
+ /* harmony export */ Foundation: function() { return /* reexport safe */ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation; },
603
+ /* harmony export */ Toggler: function() { return /* reexport safe */ _foundation_toggler__WEBPACK_IMPORTED_MODULE_1__.Toggler; }
604
+ /* harmony export */ });
605
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
606
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
607
+ /* harmony import */ var _foundation_toggler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.toggler */ "./js/foundation.toggler.js");
608
+
609
+
610
+ _foundation_core__WEBPACK_IMPORTED_MODULE_0__.Foundation.plugin(_foundation_toggler__WEBPACK_IMPORTED_MODULE_1__.Toggler, 'Toggler');
611
+
612
+ }();
613
+ /******/ return __webpack_exports__;
614
+ /******/ })()
615
+ ;
703
616
  });
704
617
  //# sourceMappingURL=foundation.toggler.js.map