foundation-rails 6.4.1.0 → 6.4.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/Rakefile +5 -6
  4. data/lib/foundation/rails/version.rb +1 -1
  5. data/vendor/assets/js/foundation.abide.js +781 -0
  6. data/vendor/assets/js/foundation.accordion.js +511 -0
  7. data/vendor/assets/js/foundation.accordionMenu.js +527 -0
  8. data/vendor/assets/js/foundation.core.js +860 -0
  9. data/vendor/assets/js/foundation.drilldown.js +759 -0
  10. data/vendor/assets/js/foundation.dropdown.js +1131 -0
  11. data/vendor/assets/js/foundation.dropdownMenu.js +678 -0
  12. data/vendor/assets/js/foundation.equalizer.js +542 -0
  13. data/vendor/assets/js/foundation.interchange.js +399 -0
  14. data/vendor/assets/js/{foundation.js.es6 → foundation.js} +11 -12
  15. data/vendor/assets/js/foundation.magellan.js +449 -0
  16. data/vendor/assets/js/foundation.offcanvas.js +1052 -0
  17. data/vendor/assets/js/foundation.orbit.js +767 -0
  18. data/vendor/assets/js/foundation.responsiveAccordionTabs.js +440 -0
  19. data/vendor/assets/js/foundation.responsiveMenu.js +362 -0
  20. data/vendor/assets/js/foundation.responsiveToggle.js +336 -0
  21. data/vendor/assets/js/foundation.reveal.js +1066 -0
  22. data/vendor/assets/js/foundation.slider.js +1236 -0
  23. data/vendor/assets/js/foundation.smoothScroll.js +303 -0
  24. data/vendor/assets/js/foundation.sticky.js +1001 -0
  25. data/vendor/assets/js/foundation.tabs.js +678 -0
  26. data/vendor/assets/js/foundation.toggler.js +602 -0
  27. data/vendor/assets/js/foundation.tooltip.js +1195 -0
  28. data/vendor/assets/js/{foundation.util.box.js.es6 → foundation.util.box.js} +154 -41
  29. data/vendor/assets/js/foundation.util.imageLoader.js +163 -0
  30. data/vendor/assets/js/foundation.util.keyboard.js +298 -0
  31. data/vendor/assets/js/foundation.util.mediaQuery.js +353 -0
  32. data/vendor/assets/js/foundation.util.motion.js +231 -0
  33. data/vendor/assets/js/foundation.util.nest.js +181 -0
  34. data/vendor/assets/js/foundation.util.timer.js +170 -0
  35. data/vendor/assets/js/foundation.util.timerAndImageLoader.js +90 -0
  36. data/vendor/assets/js/foundation.util.touch.js +275 -0
  37. data/vendor/assets/js/foundation.util.triggers.js +399 -0
  38. data/vendor/assets/js/foundation.zf.responsiveAccordionTabs.js +262 -0
  39. metadata +37 -71
  40. data/vendor/assets/js/entries/foundation-plugins.js +0 -25
  41. data/vendor/assets/js/entries/foundation.js +0 -101
  42. data/vendor/assets/js/entries/plugins/foundation.abide.js +0 -4
  43. data/vendor/assets/js/entries/plugins/foundation.accordion.js +0 -4
  44. data/vendor/assets/js/entries/plugins/foundation.accordionMenu.js +0 -5
  45. data/vendor/assets/js/entries/plugins/foundation.core.js +0 -21
  46. data/vendor/assets/js/entries/plugins/foundation.drilldown.js +0 -4
  47. data/vendor/assets/js/entries/plugins/foundation.dropdown.js +0 -5
  48. data/vendor/assets/js/entries/plugins/foundation.dropdownMenu.js +0 -4
  49. data/vendor/assets/js/entries/plugins/foundation.equalizer.js +0 -4
  50. data/vendor/assets/js/entries/plugins/foundation.interchange.js +0 -4
  51. data/vendor/assets/js/entries/plugins/foundation.magellan.js +0 -4
  52. data/vendor/assets/js/entries/plugins/foundation.offcanvas.js +0 -4
  53. data/vendor/assets/js/entries/plugins/foundation.orbit.js +0 -5
  54. data/vendor/assets/js/entries/plugins/foundation.responsiveAccordionTabs.js +0 -5
  55. data/vendor/assets/js/entries/plugins/foundation.responsiveMenu.js +0 -5
  56. data/vendor/assets/js/entries/plugins/foundation.responsiveToggle.js +0 -5
  57. data/vendor/assets/js/entries/plugins/foundation.reveal.js +0 -4
  58. data/vendor/assets/js/entries/plugins/foundation.slider.js +0 -5
  59. data/vendor/assets/js/entries/plugins/foundation.smoothScroll.js +0 -5
  60. data/vendor/assets/js/entries/plugins/foundation.sticky.js +0 -5
  61. data/vendor/assets/js/entries/plugins/foundation.tabs.js +0 -5
  62. data/vendor/assets/js/entries/plugins/foundation.toggler.js +0 -5
  63. data/vendor/assets/js/entries/plugins/foundation.tooltip.js +0 -4
  64. data/vendor/assets/js/entries/plugins/foundation.util.box.js +0 -4
  65. data/vendor/assets/js/entries/plugins/foundation.util.imageLoader.js +0 -5
  66. data/vendor/assets/js/entries/plugins/foundation.util.keyboard.js +0 -4
  67. data/vendor/assets/js/entries/plugins/foundation.util.mediaQuery.js +0 -4
  68. data/vendor/assets/js/entries/plugins/foundation.util.motion.js +0 -5
  69. data/vendor/assets/js/entries/plugins/foundation.util.nest.js +0 -5
  70. data/vendor/assets/js/entries/plugins/foundation.util.timer.js +0 -5
  71. data/vendor/assets/js/entries/plugins/foundation.util.touch.js +0 -7
  72. data/vendor/assets/js/entries/plugins/foundation.util.triggers.js +0 -5
  73. data/vendor/assets/js/foundation.abide.js.es6 +0 -587
  74. data/vendor/assets/js/foundation.accordion.js.es6 +0 -329
  75. data/vendor/assets/js/foundation.accordionMenu.js.es6 +0 -328
  76. data/vendor/assets/js/foundation.core.js.es6 +0 -337
  77. data/vendor/assets/js/foundation.drilldown.js.es6 +0 -536
  78. data/vendor/assets/js/foundation.dropdown.js.es6 +0 -394
  79. data/vendor/assets/js/foundation.dropdownMenu.js.es6 +0 -458
  80. data/vendor/assets/js/foundation.equalizer.js.es6 +0 -318
  81. data/vendor/assets/js/foundation.interchange.js.es6 +0 -210
  82. data/vendor/assets/js/foundation.magellan.js.es6 +0 -257
  83. data/vendor/assets/js/foundation.offcanvas.js.es6 +0 -546
  84. data/vendor/assets/js/foundation.orbit.js.es6 +0 -531
  85. data/vendor/assets/js/foundation.plugin.js.es6 +0 -54
  86. data/vendor/assets/js/foundation.positionable.js.es6 +0 -206
  87. data/vendor/assets/js/foundation.responsiveAccordionTabs.js.es6 +0 -243
  88. data/vendor/assets/js/foundation.responsiveMenu.js.es6 +0 -155
  89. data/vendor/assets/js/foundation.responsiveToggle.js.es6 +0 -156
  90. data/vendor/assets/js/foundation.reveal.js.es6 +0 -585
  91. data/vendor/assets/js/foundation.slider.js.es6 +0 -712
  92. data/vendor/assets/js/foundation.smoothScroll.js.es6 +0 -135
  93. data/vendor/assets/js/foundation.sticky.js.es6 +0 -507
  94. data/vendor/assets/js/foundation.tabs.js.es6 +0 -498
  95. data/vendor/assets/js/foundation.toggler.js.es6 +0 -150
  96. data/vendor/assets/js/foundation.tooltip.js.es6 +0 -462
  97. data/vendor/assets/js/foundation.util.core.js.es6 +0 -52
  98. data/vendor/assets/js/foundation.util.imageLoader.js.es6 +0 -45
  99. data/vendor/assets/js/foundation.util.keyboard.js.es6 +0 -162
  100. data/vendor/assets/js/foundation.util.mediaQuery.js.es6 +0 -234
  101. data/vendor/assets/js/foundation.util.motion.js.es6 +0 -104
  102. data/vendor/assets/js/foundation.util.nest.js.es6 +0 -67
  103. data/vendor/assets/js/foundation.util.timer.js.es6 +0 -48
  104. data/vendor/assets/js/foundation.util.touch.js.es6 +0 -149
  105. data/vendor/assets/js/foundation.util.triggers.js.es6 +0 -268
@@ -0,0 +1,399 @@
1
+ /******/ (function(modules) { // webpackBootstrap
2
+ /******/ // The module cache
3
+ /******/ var installedModules = {};
4
+ /******/
5
+ /******/ // The require function
6
+ /******/ function __webpack_require__(moduleId) {
7
+ /******/
8
+ /******/ // Check if module is in cache
9
+ /******/ if(installedModules[moduleId]) {
10
+ /******/ return installedModules[moduleId].exports;
11
+ /******/ }
12
+ /******/ // Create a new module (and put it into the cache)
13
+ /******/ var module = installedModules[moduleId] = {
14
+ /******/ i: moduleId,
15
+ /******/ l: false,
16
+ /******/ exports: {}
17
+ /******/ };
18
+ /******/
19
+ /******/ // Execute the module function
20
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
+ /******/
22
+ /******/ // Flag the module as loaded
23
+ /******/ module.l = true;
24
+ /******/
25
+ /******/ // Return the exports of the module
26
+ /******/ return module.exports;
27
+ /******/ }
28
+ /******/
29
+ /******/
30
+ /******/ // expose the modules object (__webpack_modules__)
31
+ /******/ __webpack_require__.m = modules;
32
+ /******/
33
+ /******/ // expose the module cache
34
+ /******/ __webpack_require__.c = installedModules;
35
+ /******/
36
+ /******/ // identity function for calling harmony imports with the correct context
37
+ /******/ __webpack_require__.i = function(value) { return value; };
38
+ /******/
39
+ /******/ // define getter function for harmony exports
40
+ /******/ __webpack_require__.d = function(exports, name, getter) {
41
+ /******/ if(!__webpack_require__.o(exports, name)) {
42
+ /******/ Object.defineProperty(exports, name, {
43
+ /******/ configurable: false,
44
+ /******/ enumerable: true,
45
+ /******/ get: getter
46
+ /******/ });
47
+ /******/ }
48
+ /******/ };
49
+ /******/
50
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
51
+ /******/ __webpack_require__.n = function(module) {
52
+ /******/ var getter = module && module.__esModule ?
53
+ /******/ function getDefault() { return module['default']; } :
54
+ /******/ function getModuleExports() { return module; };
55
+ /******/ __webpack_require__.d(getter, 'a', getter);
56
+ /******/ return getter;
57
+ /******/ };
58
+ /******/
59
+ /******/ // Object.prototype.hasOwnProperty.call
60
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
61
+ /******/
62
+ /******/ // __webpack_public_path__
63
+ /******/ __webpack_require__.p = "";
64
+ /******/
65
+ /******/ // Load entry module and return exports
66
+ /******/ return __webpack_require__(__webpack_require__.s = 86);
67
+ /******/ })
68
+ /************************************************************************/
69
+ /******/ ({
70
+
71
+ /***/ 0:
72
+ /***/ (function(module, exports) {
73
+
74
+ module.exports = jQuery;
75
+
76
+ /***/ }),
77
+
78
+ /***/ 1:
79
+ /***/ (function(module, exports) {
80
+
81
+ module.exports = {Foundation: window.Foundation};
82
+
83
+ /***/ }),
84
+
85
+ /***/ 2:
86
+ /***/ (function(module, exports) {
87
+
88
+ module.exports = {Plugin: window.Foundation.Plugin};
89
+
90
+ /***/ }),
91
+
92
+ /***/ 20:
93
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
94
+
95
+ "use strict";
96
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
97
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core__ = __webpack_require__(1);
98
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__foundation_core__);
99
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_interchange__ = __webpack_require__(50);
100
+
101
+
102
+
103
+ __WEBPACK_IMPORTED_MODULE_0__foundation_core__["Foundation"].plugin(__WEBPACK_IMPORTED_MODULE_1__foundation_interchange__["a" /* Interchange */], 'Interchange');
104
+
105
+ /***/ }),
106
+
107
+ /***/ 3:
108
+ /***/ (function(module, exports) {
109
+
110
+ module.exports = {rtl: window.Foundation.rtl, GetYoDigits: window.Foundation.GetYoDigits, transitionend: window.Foundation.transitionend};
111
+
112
+ /***/ }),
113
+
114
+ /***/ 50:
115
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
116
+
117
+ "use strict";
118
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Interchange; });
119
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery__ = __webpack_require__(0);
120
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_jquery__);
121
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_mediaQuery__ = __webpack_require__(6);
122
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_mediaQuery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__foundation_util_mediaQuery__);
123
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation_plugin__ = __webpack_require__(2);
124
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation_plugin___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__foundation_plugin__);
125
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__foundation_util_core__ = __webpack_require__(3);
126
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__foundation_util_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__foundation_util_core__);
127
+
128
+
129
+ var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
130
+
131
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
132
+
133
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
134
+
135
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
136
+
137
+
138
+
139
+
140
+
141
+
142
+ /**
143
+ * Interchange module.
144
+ * @module foundation.interchange
145
+ * @requires foundation.util.mediaQuery
146
+ */
147
+
148
+ var Interchange = function (_Plugin) {
149
+ _inherits(Interchange, _Plugin);
150
+
151
+ function Interchange() {
152
+ _classCallCheck(this, Interchange);
153
+
154
+ return _possibleConstructorReturn(this, (Interchange.__proto__ || Object.getPrototypeOf(Interchange)).apply(this, arguments));
155
+ }
156
+
157
+ _createClass(Interchange, [{
158
+ key: '_setup',
159
+
160
+ /**
161
+ * Creates a new instance of Interchange.
162
+ * @class
163
+ * @name Interchange
164
+ * @fires Interchange#init
165
+ * @param {Object} element - jQuery object to add the trigger to.
166
+ * @param {Object} options - Overrides to the default plugin settings.
167
+ */
168
+ value: function _setup(element, options) {
169
+ this.$element = element;
170
+ this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, Interchange.defaults, options);
171
+ this.rules = [];
172
+ this.currentPath = '';
173
+ this.className = 'Interchange'; // ie9 back compat
174
+
175
+ this._init();
176
+ this._events();
177
+ }
178
+
179
+ /**
180
+ * Initializes the Interchange plugin and calls functions to get interchange functioning on load.
181
+ * @function
182
+ * @private
183
+ */
184
+
185
+ }, {
186
+ key: '_init',
187
+ value: function _init() {
188
+ __WEBPACK_IMPORTED_MODULE_1__foundation_util_mediaQuery__["MediaQuery"]._init();
189
+
190
+ var id = this.$element[0].id || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__foundation_util_core__["GetYoDigits"])(6, 'interchange');
191
+ this.$element.attr({
192
+ 'data-resize': id,
193
+ 'id': id
194
+ });
195
+
196
+ this._addBreakpoints();
197
+ this._generateRules();
198
+ this._reflow();
199
+ }
200
+
201
+ /**
202
+ * Initializes events for Interchange.
203
+ * @function
204
+ * @private
205
+ */
206
+
207
+ }, {
208
+ key: '_events',
209
+ value: function _events() {
210
+ var _this3 = this;
211
+
212
+ this.$element.off('resizeme.zf.trigger').on('resizeme.zf.trigger', function () {
213
+ return _this3._reflow();
214
+ });
215
+ }
216
+
217
+ /**
218
+ * Calls necessary functions to update Interchange upon DOM change
219
+ * @function
220
+ * @private
221
+ */
222
+
223
+ }, {
224
+ key: '_reflow',
225
+ value: function _reflow() {
226
+ var match;
227
+
228
+ // Iterate through each rule, but only save the last match
229
+ for (var i in this.rules) {
230
+ if (this.rules.hasOwnProperty(i)) {
231
+ var rule = this.rules[i];
232
+ if (window.matchMedia(rule.query).matches) {
233
+ match = rule;
234
+ }
235
+ }
236
+ }
237
+
238
+ if (match) {
239
+ this.replace(match.path);
240
+ }
241
+ }
242
+
243
+ /**
244
+ * Gets the Foundation breakpoints and adds them to the Interchange.SPECIAL_QUERIES object.
245
+ * @function
246
+ * @private
247
+ */
248
+
249
+ }, {
250
+ key: '_addBreakpoints',
251
+ value: function _addBreakpoints() {
252
+ for (var i in __WEBPACK_IMPORTED_MODULE_1__foundation_util_mediaQuery__["MediaQuery"].queries) {
253
+ if (__WEBPACK_IMPORTED_MODULE_1__foundation_util_mediaQuery__["MediaQuery"].queries.hasOwnProperty(i)) {
254
+ var query = __WEBPACK_IMPORTED_MODULE_1__foundation_util_mediaQuery__["MediaQuery"].queries[i];
255
+ Interchange.SPECIAL_QUERIES[query.name] = query.value;
256
+ }
257
+ }
258
+ }
259
+
260
+ /**
261
+ * Checks the Interchange element for the provided media query + content pairings
262
+ * @function
263
+ * @private
264
+ * @param {Object} element - jQuery object that is an Interchange instance
265
+ * @returns {Array} scenarios - Array of objects that have 'mq' and 'path' keys with corresponding keys
266
+ */
267
+
268
+ }, {
269
+ key: '_generateRules',
270
+ value: function _generateRules(element) {
271
+ var rulesList = [];
272
+ var rules;
273
+
274
+ if (this.options.rules) {
275
+ rules = this.options.rules;
276
+ } else {
277
+ rules = this.$element.data('interchange');
278
+ }
279
+
280
+ rules = typeof rules === 'string' ? rules.match(/\[.*?\]/g) : rules;
281
+
282
+ for (var i in rules) {
283
+ if (rules.hasOwnProperty(i)) {
284
+ var rule = rules[i].slice(1, -1).split(', ');
285
+ var path = rule.slice(0, -1).join('');
286
+ var query = rule[rule.length - 1];
287
+
288
+ if (Interchange.SPECIAL_QUERIES[query]) {
289
+ query = Interchange.SPECIAL_QUERIES[query];
290
+ }
291
+
292
+ rulesList.push({
293
+ path: path,
294
+ query: query
295
+ });
296
+ }
297
+ }
298
+
299
+ this.rules = rulesList;
300
+ }
301
+
302
+ /**
303
+ * Update the `src` property of an image, or change the HTML of a container, to the specified path.
304
+ * @function
305
+ * @param {String} path - Path to the image or HTML partial.
306
+ * @fires Interchange#replaced
307
+ */
308
+
309
+ }, {
310
+ key: 'replace',
311
+ value: function replace(path) {
312
+ if (this.currentPath === path) return;
313
+
314
+ var _this = this,
315
+ trigger = 'replaced.zf.interchange';
316
+
317
+ // Replacing images
318
+ if (this.$element[0].nodeName === 'IMG') {
319
+ this.$element.attr('src', path).on('load', function () {
320
+ _this.currentPath = path;
321
+ }).trigger(trigger);
322
+ }
323
+ // Replacing background images
324
+ else if (path.match(/\.(gif|jpg|jpeg|png|svg|tiff)([?#].*)?/i)) {
325
+ path = path.replace(/\(/g, '%28').replace(/\)/g, '%29');
326
+ this.$element.css({ 'background-image': 'url(' + path + ')' }).trigger(trigger);
327
+ }
328
+ // Replacing HTML
329
+ else {
330
+ __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.get(path, function (response) {
331
+ _this.$element.html(response).trigger(trigger);
332
+ __WEBPACK_IMPORTED_MODULE_0_jquery___default()(response).foundation();
333
+ _this.currentPath = path;
334
+ });
335
+ }
336
+
337
+ /**
338
+ * Fires when content in an Interchange element is done being loaded.
339
+ * @event Interchange#replaced
340
+ */
341
+ // this.$element.trigger('replaced.zf.interchange');
342
+ }
343
+
344
+ /**
345
+ * Destroys an instance of interchange.
346
+ * @function
347
+ */
348
+
349
+ }, {
350
+ key: '_destroy',
351
+ value: function _destroy() {
352
+ this.$element.off('resizeme.zf.trigger');
353
+ }
354
+ }]);
355
+
356
+ return Interchange;
357
+ }(__WEBPACK_IMPORTED_MODULE_2__foundation_plugin__["Plugin"]);
358
+
359
+ /**
360
+ * Default settings for plugin
361
+ */
362
+
363
+
364
+ Interchange.defaults = {
365
+ /**
366
+ * Rules to be applied to Interchange elements. Set with the `data-interchange` array notation.
367
+ * @option
368
+ * @type {?array}
369
+ * @default null
370
+ */
371
+ rules: null
372
+ };
373
+
374
+ Interchange.SPECIAL_QUERIES = {
375
+ 'landscape': 'screen and (orientation: landscape)',
376
+ 'portrait': 'screen and (orientation: portrait)',
377
+ 'retina': 'only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)'
378
+ };
379
+
380
+
381
+
382
+ /***/ }),
383
+
384
+ /***/ 6:
385
+ /***/ (function(module, exports) {
386
+
387
+ module.exports = {MediaQuery: window.Foundation.MediaQuery};
388
+
389
+ /***/ }),
390
+
391
+ /***/ 86:
392
+ /***/ (function(module, exports, __webpack_require__) {
393
+
394
+ module.exports = __webpack_require__(20);
395
+
396
+
397
+ /***/ })
398
+
399
+ /******/ });
@@ -1,4 +1,14 @@
1
1
  //= require foundation.core.js
2
+ //= require foundation.util.box.js
3
+ //= require foundation.util.imageLoader.js
4
+ //= require foundation.util.keyboard.js
5
+ //= require foundation.util.mediaQuery.js
6
+ //= require foundation.util.motion.js
7
+ //= require foundation.util.nest.js
8
+ //= require foundation.util.timer.js
9
+ //= require foundation.util.timerAndImageLoader.js
10
+ //= require foundation.util.touch.js
11
+ //= require foundation.util.triggers.js
2
12
  //= require foundation.abide.js
3
13
  //= require foundation.accordion.js
4
14
  //= require foundation.accordionMenu.js
@@ -10,8 +20,6 @@
10
20
  //= require foundation.magellan.js
11
21
  //= require foundation.offcanvas.js
12
22
  //= require foundation.orbit.js
13
- //= require foundation.plugin.js
14
- //= require foundation.positionable.js
15
23
  //= require foundation.responsiveAccordionTabs.js
16
24
  //= require foundation.responsiveMenu.js
17
25
  //= require foundation.responsiveToggle.js
@@ -22,13 +30,4 @@
22
30
  //= require foundation.tabs.js
23
31
  //= require foundation.toggler.js
24
32
  //= require foundation.tooltip.js
25
- //= require foundation.util.box.js
26
- //= require foundation.util.core.js
27
- //= require foundation.util.imageLoader.js
28
- //= require foundation.util.keyboard.js
29
- //= require foundation.util.mediaQuery.js
30
- //= require foundation.util.motion.js
31
- //= require foundation.util.nest.js
32
- //= require foundation.util.timer.js
33
- //= require foundation.util.touch.js
34
- //= require foundation.util.triggers.js
33
+ //= require foundation.zf.responsiveAccordionTabs.js
@@ -0,0 +1,449 @@
1
+ /******/ (function(modules) { // webpackBootstrap
2
+ /******/ // The module cache
3
+ /******/ var installedModules = {};
4
+ /******/
5
+ /******/ // The require function
6
+ /******/ function __webpack_require__(moduleId) {
7
+ /******/
8
+ /******/ // Check if module is in cache
9
+ /******/ if(installedModules[moduleId]) {
10
+ /******/ return installedModules[moduleId].exports;
11
+ /******/ }
12
+ /******/ // Create a new module (and put it into the cache)
13
+ /******/ var module = installedModules[moduleId] = {
14
+ /******/ i: moduleId,
15
+ /******/ l: false,
16
+ /******/ exports: {}
17
+ /******/ };
18
+ /******/
19
+ /******/ // Execute the module function
20
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
+ /******/
22
+ /******/ // Flag the module as loaded
23
+ /******/ module.l = true;
24
+ /******/
25
+ /******/ // Return the exports of the module
26
+ /******/ return module.exports;
27
+ /******/ }
28
+ /******/
29
+ /******/
30
+ /******/ // expose the modules object (__webpack_modules__)
31
+ /******/ __webpack_require__.m = modules;
32
+ /******/
33
+ /******/ // expose the module cache
34
+ /******/ __webpack_require__.c = installedModules;
35
+ /******/
36
+ /******/ // identity function for calling harmony imports with the correct context
37
+ /******/ __webpack_require__.i = function(value) { return value; };
38
+ /******/
39
+ /******/ // define getter function for harmony exports
40
+ /******/ __webpack_require__.d = function(exports, name, getter) {
41
+ /******/ if(!__webpack_require__.o(exports, name)) {
42
+ /******/ Object.defineProperty(exports, name, {
43
+ /******/ configurable: false,
44
+ /******/ enumerable: true,
45
+ /******/ get: getter
46
+ /******/ });
47
+ /******/ }
48
+ /******/ };
49
+ /******/
50
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
51
+ /******/ __webpack_require__.n = function(module) {
52
+ /******/ var getter = module && module.__esModule ?
53
+ /******/ function getDefault() { return module['default']; } :
54
+ /******/ function getModuleExports() { return module; };
55
+ /******/ __webpack_require__.d(getter, 'a', getter);
56
+ /******/ return getter;
57
+ /******/ };
58
+ /******/
59
+ /******/ // Object.prototype.hasOwnProperty.call
60
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
61
+ /******/
62
+ /******/ // __webpack_public_path__
63
+ /******/ __webpack_require__.p = "";
64
+ /******/
65
+ /******/ // Load entry module and return exports
66
+ /******/ return __webpack_require__(__webpack_require__.s = 87);
67
+ /******/ })
68
+ /************************************************************************/
69
+ /******/ ({
70
+
71
+ /***/ 0:
72
+ /***/ (function(module, exports) {
73
+
74
+ module.exports = jQuery;
75
+
76
+ /***/ }),
77
+
78
+ /***/ 1:
79
+ /***/ (function(module, exports) {
80
+
81
+ module.exports = {Foundation: window.Foundation};
82
+
83
+ /***/ }),
84
+
85
+ /***/ 2:
86
+ /***/ (function(module, exports) {
87
+
88
+ module.exports = {Plugin: window.Foundation.Plugin};
89
+
90
+ /***/ }),
91
+
92
+ /***/ 21:
93
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
94
+
95
+ "use strict";
96
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
97
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core__ = __webpack_require__(1);
98
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__foundation_core__);
99
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_magellan__ = __webpack_require__(51);
100
+
101
+
102
+
103
+ __WEBPACK_IMPORTED_MODULE_0__foundation_core__["Foundation"].plugin(__WEBPACK_IMPORTED_MODULE_1__foundation_magellan__["a" /* Magellan */], 'Magellan');
104
+
105
+ /***/ }),
106
+
107
+ /***/ 3:
108
+ /***/ (function(module, exports) {
109
+
110
+ module.exports = {rtl: window.Foundation.rtl, GetYoDigits: window.Foundation.GetYoDigits, transitionend: window.Foundation.transitionend};
111
+
112
+ /***/ }),
113
+
114
+ /***/ 51:
115
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
116
+
117
+ "use strict";
118
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Magellan; });
119
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery__ = __webpack_require__(0);
120
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_jquery__);
121
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_core__ = __webpack_require__(3);
122
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__foundation_util_core__);
123
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation_plugin__ = __webpack_require__(2);
124
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation_plugin___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__foundation_plugin__);
125
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__foundation_smoothScroll__ = __webpack_require__(76);
126
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__foundation_smoothScroll___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__foundation_smoothScroll__);
127
+
128
+
129
+ var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
130
+
131
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
132
+
133
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
134
+
135
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
136
+
137
+
138
+
139
+
140
+
141
+
142
+ /**
143
+ * Magellan module.
144
+ * @module foundation.magellan
145
+ * @requires foundation.smoothScroll
146
+ */
147
+
148
+ var Magellan = function (_Plugin) {
149
+ _inherits(Magellan, _Plugin);
150
+
151
+ function Magellan() {
152
+ _classCallCheck(this, Magellan);
153
+
154
+ return _possibleConstructorReturn(this, (Magellan.__proto__ || Object.getPrototypeOf(Magellan)).apply(this, arguments));
155
+ }
156
+
157
+ _createClass(Magellan, [{
158
+ key: '_setup',
159
+
160
+ /**
161
+ * Creates a new instance of Magellan.
162
+ * @class
163
+ * @name Magellan
164
+ * @fires Magellan#init
165
+ * @param {Object} element - jQuery object to add the trigger to.
166
+ * @param {Object} options - Overrides to the default plugin settings.
167
+ */
168
+ value: function _setup(element, options) {
169
+ this.$element = element;
170
+ this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, Magellan.defaults, this.$element.data(), options);
171
+ this.className = 'Magellan'; // ie9 back compat
172
+
173
+ this._init();
174
+ this.calcPoints();
175
+ }
176
+
177
+ /**
178
+ * Initializes the Magellan plugin and calls functions to get equalizer functioning on load.
179
+ * @private
180
+ */
181
+
182
+ }, {
183
+ key: '_init',
184
+ value: function _init() {
185
+ var id = this.$element[0].id || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__foundation_util_core__["GetYoDigits"])(6, 'magellan');
186
+ var _this = this;
187
+ this.$targets = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-magellan-target]');
188
+ this.$links = this.$element.find('a');
189
+ this.$element.attr({
190
+ 'data-resize': id,
191
+ 'data-scroll': id,
192
+ 'id': id
193
+ });
194
+ this.$active = __WEBPACK_IMPORTED_MODULE_0_jquery___default()();
195
+ this.scrollPos = parseInt(window.pageYOffset, 10);
196
+
197
+ this._events();
198
+ }
199
+
200
+ /**
201
+ * Calculates an array of pixel values that are the demarcation lines between locations on the page.
202
+ * Can be invoked if new elements are added or the size of a location changes.
203
+ * @function
204
+ */
205
+
206
+ }, {
207
+ key: 'calcPoints',
208
+ value: function calcPoints() {
209
+ var _this = this,
210
+ body = document.body,
211
+ html = document.documentElement;
212
+
213
+ this.points = [];
214
+ this.winHeight = Math.round(Math.max(window.innerHeight, html.clientHeight));
215
+ this.docHeight = Math.round(Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight));
216
+
217
+ this.$targets.each(function () {
218
+ var $tar = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(this),
219
+ pt = Math.round($tar.offset().top - _this.options.threshold);
220
+ $tar.targetPoint = pt;
221
+ _this.points.push(pt);
222
+ });
223
+ }
224
+
225
+ /**
226
+ * Initializes events for Magellan.
227
+ * @private
228
+ */
229
+
230
+ }, {
231
+ key: '_events',
232
+ value: function _events() {
233
+ var _this = this,
234
+ $body = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('html, body'),
235
+ opts = {
236
+ duration: _this.options.animationDuration,
237
+ easing: _this.options.animationEasing
238
+ };
239
+ __WEBPACK_IMPORTED_MODULE_0_jquery___default()(window).one('load', function () {
240
+ if (_this.options.deepLinking) {
241
+ if (location.hash) {
242
+ _this.scrollToLoc(location.hash);
243
+ }
244
+ }
245
+ _this.calcPoints();
246
+ _this._updateActive();
247
+ });
248
+
249
+ this.$element.on({
250
+ 'resizeme.zf.trigger': this.reflow.bind(this),
251
+ 'scrollme.zf.trigger': this._updateActive.bind(this)
252
+ }).on('click.zf.magellan', 'a[href^="#"]', function (e) {
253
+ e.preventDefault();
254
+ var arrival = this.getAttribute('href');
255
+ _this.scrollToLoc(arrival);
256
+ });
257
+
258
+ this._deepLinkScroll = function (e) {
259
+ if (_this.options.deepLinking) {
260
+ _this.scrollToLoc(window.location.hash);
261
+ }
262
+ };
263
+
264
+ __WEBPACK_IMPORTED_MODULE_0_jquery___default()(window).on('popstate', this._deepLinkScroll);
265
+ }
266
+
267
+ /**
268
+ * Function to scroll to a given location on the page.
269
+ * @param {String} loc - a properly formatted jQuery id selector. Example: '#foo'
270
+ * @function
271
+ */
272
+
273
+ }, {
274
+ key: 'scrollToLoc',
275
+ value: function scrollToLoc(loc) {
276
+ this._inTransition = true;
277
+ var _this = this;
278
+
279
+ var options = {
280
+ animationEasing: this.options.animationEasing,
281
+ animationDuration: this.options.animationDuration,
282
+ threshold: this.options.threshold,
283
+ offset: this.options.offset
284
+ };
285
+
286
+ __WEBPACK_IMPORTED_MODULE_3__foundation_smoothScroll__["SmoothScroll"].scrollToLoc(loc, options, function () {
287
+ _this._inTransition = false;
288
+ _this._updateActive();
289
+ });
290
+ }
291
+
292
+ /**
293
+ * Calls necessary functions to update Magellan upon DOM change
294
+ * @function
295
+ */
296
+
297
+ }, {
298
+ key: 'reflow',
299
+ value: function reflow() {
300
+ this.calcPoints();
301
+ this._updateActive();
302
+ }
303
+
304
+ /**
305
+ * Updates the visibility of an active location link, and updates the url hash for the page, if deepLinking enabled.
306
+ * @private
307
+ * @function
308
+ * @fires Magellan#update
309
+ */
310
+
311
+ }, {
312
+ key: '_updateActive',
313
+ value: function _updateActive() /*evt, elem, scrollPos*/{
314
+ if (this._inTransition) {
315
+ return;
316
+ }
317
+ var winPos = /*scrollPos ||*/parseInt(window.pageYOffset, 10),
318
+ curIdx;
319
+
320
+ if (winPos + this.winHeight === this.docHeight) {
321
+ curIdx = this.points.length - 1;
322
+ } else if (winPos < this.points[0]) {
323
+ curIdx = undefined;
324
+ } else {
325
+ var isDown = this.scrollPos < winPos,
326
+ _this = this,
327
+ curVisible = this.points.filter(function (p, i) {
328
+ return isDown ? p - _this.options.offset <= winPos : p - _this.options.offset - _this.options.threshold <= winPos;
329
+ });
330
+ curIdx = curVisible.length ? curVisible.length - 1 : 0;
331
+ }
332
+
333
+ this.$active.removeClass(this.options.activeClass);
334
+ this.$active = this.$links.filter('[href="#' + this.$targets.eq(curIdx).data('magellan-target') + '"]').addClass(this.options.activeClass);
335
+
336
+ if (this.options.deepLinking) {
337
+ var hash = "";
338
+ if (curIdx != undefined) {
339
+ hash = this.$active[0].getAttribute('href');
340
+ }
341
+ if (hash !== window.location.hash) {
342
+ if (window.history.pushState) {
343
+ window.history.pushState(null, null, hash);
344
+ } else {
345
+ window.location.hash = hash;
346
+ }
347
+ }
348
+ }
349
+
350
+ this.scrollPos = winPos;
351
+ /**
352
+ * Fires when magellan is finished updating to the new active element.
353
+ * @event Magellan#update
354
+ */
355
+ this.$element.trigger('update.zf.magellan', [this.$active]);
356
+ }
357
+
358
+ /**
359
+ * Destroys an instance of Magellan and resets the url of the window.
360
+ * @function
361
+ */
362
+
363
+ }, {
364
+ key: '_destroy',
365
+ value: function _destroy() {
366
+ this.$element.off('.zf.trigger .zf.magellan').find('.' + this.options.activeClass).removeClass(this.options.activeClass);
367
+
368
+ if (this.options.deepLinking) {
369
+ var hash = this.$active[0].getAttribute('href');
370
+ window.location.hash.replace(hash, '');
371
+ }
372
+ __WEBPACK_IMPORTED_MODULE_0_jquery___default()(window).off('popstate', this._deepLinkScroll);
373
+ }
374
+ }]);
375
+
376
+ return Magellan;
377
+ }(__WEBPACK_IMPORTED_MODULE_2__foundation_plugin__["Plugin"]);
378
+
379
+ /**
380
+ * Default settings for plugin
381
+ */
382
+
383
+
384
+ Magellan.defaults = {
385
+ /**
386
+ * Amount of time, in ms, the animated scrolling should take between locations.
387
+ * @option
388
+ * @type {number}
389
+ * @default 500
390
+ */
391
+ animationDuration: 500,
392
+ /**
393
+ * Animation style to use when scrolling between locations. Can be `'swing'` or `'linear'`.
394
+ * @option
395
+ * @type {string}
396
+ * @default 'linear'
397
+ * @see {@link https://api.jquery.com/animate|Jquery animate}
398
+ */
399
+ animationEasing: 'linear',
400
+ /**
401
+ * Number of pixels to use as a marker for location changes.
402
+ * @option
403
+ * @type {number}
404
+ * @default 50
405
+ */
406
+ threshold: 50,
407
+ /**
408
+ * Class applied to the active locations link on the magellan container.
409
+ * @option
410
+ * @type {string}
411
+ * @default 'is-active'
412
+ */
413
+ activeClass: 'is-active',
414
+ /**
415
+ * Allows the script to manipulate the url of the current page, and if supported, alter the history.
416
+ * @option
417
+ * @type {boolean}
418
+ * @default false
419
+ */
420
+ deepLinking: false,
421
+ /**
422
+ * Number of pixels to offset the scroll of the page on item click if using a sticky nav bar.
423
+ * @option
424
+ * @type {number}
425
+ * @default 0
426
+ */
427
+ offset: 0
428
+ };
429
+
430
+
431
+
432
+ /***/ }),
433
+
434
+ /***/ 76:
435
+ /***/ (function(module, exports) {
436
+
437
+ module.exports = {SmoothScroll: window.Foundation.SmoothScroll};
438
+
439
+ /***/ }),
440
+
441
+ /***/ 87:
442
+ /***/ (function(module, exports, __webpack_require__) {
443
+
444
+ module.exports = __webpack_require__(21);
445
+
446
+
447
+ /***/ })
448
+
449
+ /******/ });