Subversion Repositories wimsdev

Rev

Rev 14197 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14197 Rev 14734
Line 1... Line 1...
1
(function webpackUniversalModuleDefinition(root, factory) {
1
(function webpackUniversalModuleDefinition(root, factory) {
2
        if(typeof exports === 'object' && typeof module === 'object')
2
  if(typeof exports === 'object' && typeof module === 'object')
3
                module.exports = factory(require("jquery"));
3
    module.exports = factory(require("jquery"));
4
        else if(typeof define === 'function' && define.amd)
4
  else if(typeof define === 'function' && define.amd)
5
                define(["jquery"], factory);
5
    define(["jquery"], factory);
6
        else if(typeof exports === 'object')
6
  else if(typeof exports === 'object')
7
                exports["foundation.core"] = factory(require("jquery"));
7
    exports["foundation.core"] = factory(require("jquery"));
8
        else
8
  else
9
                root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.core"] = factory(root["jQuery"]);
9
    root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.core"] = factory(root["jQuery"]);
10
})(window, function(__WEBPACK_EXTERNAL_MODULE_jquery__) {
10
})(window, function(__WEBPACK_EXTERNAL_MODULE_jquery__) {
11
return /******/ (function(modules) { // webpackBootstrap
11
return /******/ (function(modules) { // webpackBootstrap
12
/******/        // The module cache
12
/******/   // The module cache
13
/******/        var installedModules = {};
13
/******/   var installedModules = {};
14
/******/
14
/******/
15
/******/        // The require function
15
/******/   // The require function
16
/******/        function __webpack_require__(moduleId) {
16
/******/   function __webpack_require__(moduleId) {
17
/******/
17
/******/
18
/******/                // Check if module is in cache
18
/******/     // Check if module is in cache
19
/******/                if(installedModules[moduleId]) {
19
/******/     if(installedModules[moduleId]) {
20
/******/                        return installedModules[moduleId].exports;
20
/******/       return installedModules[moduleId].exports;
21
/******/                }
21
/******/     }
22
/******/                // Create a new module (and put it into the cache)
22
/******/     // Create a new module (and put it into the cache)
23
/******/                var module = installedModules[moduleId] = {
23
/******/     var module = installedModules[moduleId] = {
24
/******/                        i: moduleId,
24
/******/       i: moduleId,
25
/******/                        l: false,
25
/******/       l: false,
26
/******/                        exports: {}
26
/******/       exports: {}
27
/******/                };
27
/******/     };
28
/******/
28
/******/
29
/******/                // Execute the module function
29
/******/     // Execute the module function
30
/******/                modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
30
/******/     modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
/******/
31
/******/
32
/******/                // Flag the module as loaded
32
/******/     // Flag the module as loaded
33
/******/                module.l = true;
33
/******/     module.l = true;
34
/******/
34
/******/
35
/******/                // Return the exports of the module
35
/******/     // Return the exports of the module
36
/******/                return module.exports;
36
/******/     return module.exports;
37
/******/        }
37
/******/   }
38
/******/
38
/******/
39
/******/
39
/******/
40
/******/        // expose the modules object (__webpack_modules__)
40
/******/   // expose the modules object (__webpack_modules__)
41
/******/        __webpack_require__.m = modules;
41
/******/   __webpack_require__.m = modules;
42
/******/
42
/******/
43
/******/        // expose the module cache
43
/******/   // expose the module cache
44
/******/        __webpack_require__.c = installedModules;
44
/******/   __webpack_require__.c = installedModules;
45
/******/
45
/******/
46
/******/        // define getter function for harmony exports
46
/******/   // define getter function for harmony exports
47
/******/        __webpack_require__.d = function(exports, name, getter) {
47
/******/   __webpack_require__.d = function(exports, name, getter) {
48
/******/                if(!__webpack_require__.o(exports, name)) {
48
/******/     if(!__webpack_require__.o(exports, name)) {
49
/******/                        Object.defineProperty(exports, name, { enumerable: true, get: getter });
49
/******/       Object.defineProperty(exports, name, { enumerable: true, get: getter });
50
/******/                }
50
/******/     }
51
/******/        };
51
/******/   };
52
/******/
52
/******/
53
/******/        // define __esModule on exports
53
/******/   // define __esModule on exports
54
/******/        __webpack_require__.r = function(exports) {
54
/******/   __webpack_require__.r = function(exports) {
55
/******/                if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
55
/******/     if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56
/******/                        Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
56
/******/       Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57
/******/                }
57
/******/     }
58
/******/                Object.defineProperty(exports, '__esModule', { value: true });
58
/******/     Object.defineProperty(exports, '__esModule', { value: true });
59
/******/        };
59
/******/   };
60
/******/
60
/******/
61
/******/        // create a fake namespace object
61
/******/   // create a fake namespace object
62
/******/        // mode & 1: value is a module id, require it
62
/******/   // mode & 1: value is a module id, require it
63
/******/        // mode & 2: merge all properties of value into the ns
63
/******/   // mode & 2: merge all properties of value into the ns
64
/******/        // mode & 4: return value when already ns object
64
/******/   // mode & 4: return value when already ns object
65
/******/        // mode & 8|1: behave like require
65
/******/   // mode & 8|1: behave like require
66
/******/        __webpack_require__.t = function(value, mode) {
66
/******/   __webpack_require__.t = function(value, mode) {
67
/******/                if(mode & 1) value = __webpack_require__(value);
67
/******/     if(mode & 1) value = __webpack_require__(value);
68
/******/                if(mode & 8) return value;
68
/******/     if(mode & 8) return value;
69
/******/                if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
69
/******/     if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70
/******/                var ns = Object.create(null);
70
/******/     var ns = Object.create(null);
71
/******/                __webpack_require__.r(ns);
71
/******/     __webpack_require__.r(ns);
72
/******/                Object.defineProperty(ns, 'default', { enumerable: true, value: value });
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));
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;
74
/******/     return ns;
75
/******/        };
75
/******/   };
76
/******/
76
/******/
77
/******/        // getDefaultExport function for compatibility with non-harmony modules
77
/******/   // getDefaultExport function for compatibility with non-harmony modules
78
/******/        __webpack_require__.n = function(module) {
78
/******/   __webpack_require__.n = function(module) {
79
/******/                var getter = module && module.__esModule ?
79
/******/     var getter = module && module.__esModule ?
80
/******/                        function getDefault() { return module['default']; } :
80
/******/       function getDefault() { return module['default']; } :
81
/******/                        function getModuleExports() { return module; };
81
/******/       function getModuleExports() { return module; };
82
/******/                __webpack_require__.d(getter, 'a', getter);
82
/******/     __webpack_require__.d(getter, 'a', getter);
83
/******/                return getter;
83
/******/     return getter;
84
/******/        };
84
/******/   };
85
/******/
85
/******/
86
/******/        // Object.prototype.hasOwnProperty.call
86
/******/   // Object.prototype.hasOwnProperty.call
87
/******/        __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
87
/******/   __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
/******/
88
/******/
89
/******/        // __webpack_public_path__
89
/******/   // __webpack_public_path__
90
/******/        __webpack_require__.p = "";
90
/******/   __webpack_require__.p = "";
91
/******/
91
/******/
92
/******/
92
/******/
93
/******/        // Load entry module and return exports
93
/******/   // Load entry module and return exports
94
/******/        return __webpack_require__(__webpack_require__.s = 0);
94
/******/   return __webpack_require__(__webpack_require__.s = 0);
95
/******/ })
95
/******/ })
96
/************************************************************************/
96
/************************************************************************/
97
/******/ ({
97
/******/ ({
98
 
98
 
99
/***/ "./js/entries/plugins/foundation.core.js":
99
/***/ "./js/entries/plugins/foundation.core.js":
Line 174... Line 174...
174
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
174
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
175
 
175
 
176
 
176
 
177
 
177
 
178
 
178
 
179
var FOUNDATION_VERSION = '6.5.3'; // Global Foundation object
179
var FOUNDATION_VERSION = '6.6.1'; // Global Foundation object
180
// This is attached to the window, or used as a module for AMD/Browserify
180
// This is attached to the window, or used as a module for AMD/Browserify
181
 
181
 
182
var Foundation = {
182
var Foundation = {
183
  version: FOUNDATION_VERSION,
183
  version: FOUNDATION_VERSION,
184
 
184
 
Line 328... Line 328...
328
 
328
 
329
    jquery__WEBPACK_IMPORTED_MODULE_0___default.a.each(plugins, function (i, name) {
329
    jquery__WEBPACK_IMPORTED_MODULE_0___default.a.each(plugins, function (i, name) {
330
      // Get the current plugin
330
      // Get the current plugin
331
      var plugin = _this._plugins[name]; // Localize the search to all elements inside elem, as well as elem itself, unless elem === document
331
      var plugin = _this._plugins[name]; // Localize the search to all elements inside elem, as well as elem itself, unless elem === document
332
 
332
 
333
      var $elem = jquery__WEBPACK_IMPORTED_MODULE_0___default()(elem).find('[data-' + name + ']').addBack('[data-' + name + ']'); // For each plugin found, initialize it
333
      var $elem = jquery__WEBPACK_IMPORTED_MODULE_0___default()(elem).find('[data-' + name + ']').addBack('[data-' + name + ']').filter(function () {
-
 
334
        return typeof jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data("zfPlugin") === 'undefined';
-
 
335
      }); // For each plugin found, initialize it
334
 
336
 
335
      $elem.each(function () {
337
      $elem.each(function () {
336
        var $el = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
338
        var $el = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
337
            opts = {}; // Don't double-dip on plugins
-
 
338
 
-
 
339
        if ($el.data('zfPlugin')) {
339
            opts = {
340
          console.warn("Tried to initialize " + name + " on an element that already has a Foundation plugin.");
-
 
341
          return;
340
          reflow: true
342
        }
341
        };
343
 
342
 
344
        if ($el.attr('data-options')) {
343
        if ($el.attr('data-options')) {
345
          var thing = $el.attr('data-options').split(';').forEach(function (e, i) {
344
          var thing = $el.attr('data-options').split(';').forEach(function (e, i) {
346
            var opt = e.split(':').map(function (el) {
345
            var opt = e.split(':').map(function (el) {
347
              return el.trim();
346
              return el.trim();
Line 662... Line 661...
662
 * @default {String} '' - if no plugin name is provided, nothing is appended to the uid.
661
 * @default {String} '' - if no plugin name is provided, nothing is appended to the uid.
663
 * @returns {String} - unique id
662
 * @returns {String} - unique id
664
 */
663
 */
665
 
664
 
666
 
665
 
667
function GetYoDigits(length, namespace) {
666
function GetYoDigits() {
-
 
667
  var length = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 6;
-
 
668
  var namespace = arguments.length > 1 ? arguments[1] : undefined;
-
 
669
  var str = '';
-
 
670
  var chars = '0123456789abcdefghijklmnopqrstuvwxyz';
668
  length = length || 6;
671
  var charsLength = chars.length;
-
 
672
 
-
 
673
  for (var i = 0; i < length; i++) {
-
 
674
    str += chars[Math.floor(Math.random() * charsLength)];
-
 
675
  }
-
 
676
 
669
  return Math.round(Math.pow(36, length + 1) - Math.random() * Math.pow(36, length)).toString(36).slice(1) + (namespace ? "-".concat(namespace) : '');
677
  return namespace ? "".concat(str, "-").concat(namespace) : str;
670
}
678
}
671
/**
679
/**
672
 * Escape a string so it can be used as a regexp pattern
680
 * Escape a string so it can be used as a regexp pattern
673
 * @function
681
 * @function
674
 * @see https://stackoverflow.com/a/9310752/4317384
682
 * @see https://stackoverflow.com/a/9310752/4317384
Line 813... Line 821...
813
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
821
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
814
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
822
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
815
 
823
 
816
 
824
 
817
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); }
825
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); }
-
 
826
 
-
 
827
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
-
 
828
 
-
 
829
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
-
 
830
 
-
 
831
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
-
 
832
 
-
 
833
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
818
 
834
 
819
 // Default set of media queries
835
 // Default set of media queries
820
 
836
 
821
var defaultQueries = {
837
var defaultQueries = {
822
  'default': 'only screen',
838
  'default': 'only screen',
823
  landscape: 'only screen and (orientation: landscape)',
839
  landscape: 'only screen and (orientation: landscape)',
824
  portrait: 'only screen and (orientation: portrait)',
840
  portrait: 'only screen and (orientation: portrait)',
825
  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)'
841
  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)'
826
}; // matchMedia() polyfill - Test a CSS media type/query in JS.
842
}; // matchMedia() polyfill - Test a CSS media type/query in JS.
827
// Authors & copyright(c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. MIT license
843
// Authors & copyright © 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. MIT license
828
 
844
 
829
/* eslint-disable */
845
/* eslint-disable */
830
 
846
 
831
window.matchMedia || (window.matchMedia = function () {
847
window.matchMedia || (window.matchMedia = function () {
832
  "use strict"; // For browsers that support matchMedium api such as IE 9 and webkit
848
  "use strict"; // For browsers that support matchMedium api such as IE 9 and webkit
Line 881... Line 897...
881
   * Initializes the media query helper, by extracting the breakpoint list from the CSS and activating the breakpoint watcher.
897
   * Initializes the media query helper, by extracting the breakpoint list from the CSS and activating the breakpoint watcher.
882
   * @function
898
   * @function
883
   * @private
899
   * @private
884
   */
900
   */
885
  _init: function _init() {
901
  _init: function _init() {
-
 
902
    // make sure the initialization is only done once when calling _init() several times
-
 
903
    if (this.isInitialized === true) {
-
 
904
      return;
-
 
905
    } else {
-
 
906
      this.isInitialized = true;
-
 
907
    }
-
 
908
 
886
    var self = this;
909
    var self = this;
887
    var $meta = jquery__WEBPACK_IMPORTED_MODULE_0___default()('meta.foundation-mq');
910
    var $meta = jquery__WEBPACK_IMPORTED_MODULE_0___default()('meta.foundation-mq');
888
 
911
 
889
    if (!$meta.length) {
912
    if (!$meta.length) {
890
      jquery__WEBPACK_IMPORTED_MODULE_0___default()('<meta class="foundation-mq">').appendTo(document.head);
913
      jquery__WEBPACK_IMPORTED_MODULE_0___default()('<meta class="foundation-mq">').appendTo(document.head);
891
    }
914
    }
892
 
915
 
893
    var extractedStyles = jquery__WEBPACK_IMPORTED_MODULE_0___default()('.foundation-mq').css('font-family');
916
    var extractedStyles = jquery__WEBPACK_IMPORTED_MODULE_0___default()('.foundation-mq').css('font-family');
894
    var namedQueries;
917
    var namedQueries;
895
    namedQueries = parseStyleToObject(extractedStyles);
918
    namedQueries = parseStyleToObject(extractedStyles);
-
 
919
    self.queries = []; // reset
896
 
920
 
897
    for (var key in namedQueries) {
921
    for (var key in namedQueries) {
898
      if (namedQueries.hasOwnProperty(key)) {
922
      if (namedQueries.hasOwnProperty(key)) {
899
        self.queries.push({
923
        self.queries.push({
900
          name: key,
924
          name: key,
901
          value: "only screen and (min-width: ".concat(namedQueries[key], ")")
925
          value: "only screen and (min-width: ".concat(namedQueries[key], ")")
902
        });
926
        });
903
      }
927
      }
904
    }
928
    }
905
 
929
 
906
    this.current = this._getCurrentSize();
930
    this.current = this._getCurrentSize();
907
 
931
 
908
    this._watcher();
932
    this._watcher();
-
 
933
  },
-
 
934
 
-
 
935
  /**
-
 
936
   * Reinitializes the media query helper.
-
 
937
   * Useful if your CSS breakpoint configuration has just been loaded or has changed since the initialization.
-
 
938
   * @function
-
 
939
   * @private
-
 
940
   */
-
 
941
  _reInit: function _reInit() {
-
 
942
    this.isInitialized = false;
-
 
943
 
-
 
944
    this._init();
909
  },
945
  },
910
 
946
 
911
  /**
947
  /**
912
   * Checks if the screen is at least as wide as a breakpoint.
948
   * Checks if the screen is at least as wide as a breakpoint.
913
   * @function
949
   * @function
Line 920... Line 956...
920
    if (query) {
956
    if (query) {
921
      return window.matchMedia(query).matches;
957
      return window.matchMedia(query).matches;
922
    }
958
    }
923
 
959
 
924
    return false;
960
    return false;
925
  },
961
  },
-
 
962
 
-
 
963
  /**
-
 
964
   * Checks if the screen is within the given breakpoint.
-
 
965
   * If smaller than the breakpoint of larger than its upper limit it returns false.
-
 
966
   * @function
-
 
967
   * @param {String} size - Name of the breakpoint to check.
-
 
968
   * @returns {Boolean} `true` if the breakpoint matches, `false` otherwise.
-
 
969
   */
-
 
970
  only: function only(size) {
-
 
971
    return size === this._getCurrentSize();
-
 
972
  },
-
 
973
 
-
 
974
  /**
-
 
975
   * Checks if the screen is within a breakpoint or smaller.
-
 
976
   * @function
-
 
977
   * @param {String} size - Name of the breakpoint to check.
-
 
978
   * @returns {Boolean} `true` if the breakpoint matches, `false` if it's larger.
-
 
979
   */
-
 
980
  upTo: function upTo(size) {
-
 
981
    var nextSize = this.next(size); // If the next breakpoint does not match, the screen is smaller than
-
 
982
    // the upper limit of this breakpoint.
-
 
983
 
-
 
984
    if (nextSize) {
-
 
985
      return !this.atLeast(nextSize);
-
 
986
    } // If there is no next breakpoint, the "size" breakpoint does not have
-
 
987
    // an upper limit and the screen will always be within it or smaller.
-
 
988
 
-
 
989
 
-
 
990
    return true;
-
 
991
  },
926
 
992
 
927
  /**
993
  /**
928
   * Checks if the screen matches to a breakpoint.
994
   * Checks if the screen matches to a breakpoint.
929
   * @function
995
   * @function
930
   * @param {String} size - Name of the breakpoint to check, either 'small only' or 'small'. Omitting 'only' falls back to using atLeast() method.
996
   * @param {String} size - Name of the breakpoint to check, either 'small only' or 'small'. Omitting 'only' falls back to using atLeast() method.
931
   * @returns {Boolean} `true` if the breakpoint matches, `false` if it does not.
997
   * @returns {Boolean} `true` if the breakpoint matches, `false` if it does not.
932
   */
998
   */
933
  is: function is(size) {
999
  is: function is(size) {
934
    size = size.trim().split(' ');
1000
    var parts = size.trim().split(' ').filter(function (p) {
-
 
1001
      return !!p.length;
-
 
1002
    });
-
 
1003
 
-
 
1004
    var _parts = _slicedToArray(parts, 2),
-
 
1005
        bpSize = _parts[0],
-
 
1006
        _parts$ = _parts[1],
-
 
1007
        bpModifier = _parts$ === void 0 ? '' : _parts$; // Only the breakpont
-
 
1008
 
935
 
1009
 
936
    if (size.length > 1 && size[1] === 'only') {
1010
    if (bpModifier === 'only') {
937
      if (size[0] === this._getCurrentSize()) return true;
1011
      return this.only(bpSize);
938
    } else {
1012
    } // At least the breakpoint (included)
-
 
1013
 
-
 
1014
 
-
 
1015
    if (!bpModifier || bpModifier === 'up') {
939
      return this.atLeast(size[0]);
1016
      return this.atLeast(bpSize);
-
 
1017
    } // Up to the breakpoint (included)
-
 
1018
 
-
 
1019
 
-
 
1020
    if (bpModifier === 'down') {
-
 
1021
      return this.upTo(bpSize);
940
    }
1022
    }
941
 
1023
 
942
    return false;
-
 
-
 
1024
    throw new Error("\n      Invalid breakpoint passed to MediaQuery.is().\n      Expected a breakpoint name formatted like \"<size> <modifier>\", got \"".concat(size, "\".\n    "));
943
  },
1025
  },
944
 
1026
 
945
  /**
1027
  /**
946
   * Gets the media query of a breakpoint.
1028
   * Gets the media query of a breakpoint.
947
   * @function
1029
   * @function
Line 955... Line 1037...
955
        if (size === query.name) return query.value;
1037
        if (size === query.name) return query.value;
956
      }
1038
      }
957
    }
1039
    }
958
 
1040
 
959
    return null;
1041
    return null;
-
 
1042
  },
-
 
1043
 
-
 
1044
  /**
-
 
1045
   * Get the breakpoint following the given breakpoint.
-
 
1046
   * @function
-
 
1047
   * @param {String} size - Name of the breakpoint.
-
 
1048
   * @returns {String|null} - The name of the following breakpoint, or `null` if the passed breakpoint was the last one.
-
 
1049
   */
-
 
1050
  next: function next(size) {
-
 
1051
    var _this = this;
-
 
1052
 
-
 
1053
    var queryIndex = this.queries.findIndex(function (q) {
-
 
1054
      return _this._getQueryName(q) === size;
-
 
1055
    });
-
 
1056
 
-
 
1057
    if (queryIndex === -1) {
-
 
1058
      throw new Error("\n        Unknown breakpoint \"".concat(size, "\" passed to MediaQuery.next().\n        Ensure it is present in your Sass \"$breakpoints\" setting.\n      "));
-
 
1059
    }
-
 
1060
 
-
 
1061
    var nextQuery = this.queries[queryIndex + 1];
-
 
1062
    return nextQuery ? nextQuery.name : null;
-
 
1063
  },
-
 
1064
 
-
 
1065
  /**
-
 
1066
   * Returns the name of the breakpoint related to the given value.
-
 
1067
   * @function
-
 
1068
   * @private
-
 
1069
   * @param {String|Object} value - Breakpoint name or query object.
-
 
1070
   * @returns {String} Name of the breakpoint.
-
 
1071
   */
-
 
1072
  _getQueryName: function _getQueryName(value) {
-
 
1073
    if (typeof value === 'string') return value;
-
 
1074
    if (_typeof(value) === 'object') return value.name;
-
 
1075
    throw new TypeError("\n      Invalid value passed to MediaQuery._getQueryName().\n      Expected a breakpoint name (String) or a breakpoint query (Object), got \"".concat(value, "\" (").concat(_typeof(value), ")\n    "));
960
  },
1076
  },
961
 
1077
 
962
  /**
1078
  /**
963
   * Gets the current breakpoint name by testing every breakpoint and returning the last one to match (the biggest one).
1079
   * Gets the current breakpoint name by testing every breakpoint and returning the last one to match (the biggest one).
964
   * @function
1080
   * @function
Line 973... Line 1089...
973
 
1089
 
974
      if (window.matchMedia(query.value).matches) {
1090
      if (window.matchMedia(query.value).matches) {
975
        matched = query;
1091
        matched = query;
976
      }
1092
      }
977
    }
1093
    }
978
 
1094
 
979
    if (_typeof(matched) === 'object') {
-
 
980
      return matched.name;
1095
    return matched && this._getQueryName(matched);
981
    } else {
-
 
982
      return matched;
-
 
983
    }
-
 
984
  },
1096
  },
985
 
1097
 
986
  /**
1098
  /**
987
   * Activates the breakpoint watcher, which fires an event on the window whenever the breakpoint changes.
1099
   * Activates the breakpoint watcher, which fires an event on the window whenever the breakpoint changes.
988
   * @function
1100
   * @function
989
   * @private
1101
   * @private
990
   */
1102
   */
991
  _watcher: function _watcher() {
1103
  _watcher: function _watcher() {
992
    var _this = this;
1104
    var _this2 = this;
993
 
1105
 
994
    jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('resize.zf.mediaquery').on('resize.zf.mediaquery', function () {
1106
    jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('resize.zf.mediaquery').on('resize.zf.mediaquery', function () {
995
      var newSize = _this._getCurrentSize(),
1107
      var newSize = _this2._getCurrentSize(),
996
          currentSize = _this.current;
1108
          currentSize = _this2.current;
997
 
1109
 
998
      if (newSize !== currentSize) {
1110
      if (newSize !== currentSize) {
999
        // Change the current media query
1111
        // Change the current media query
1000
        _this.current = newSize; // Broadcast the media query change on the window
1112
        _this2.current = newSize; // Broadcast the media query change on the window
1001
 
1113
 
1002
        jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).trigger('changed.zf.mediaquery', [newSize, currentSize]);
1114
        jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).trigger('changed.zf.mediaquery', [newSize, currentSize]);
1003
      }
1115
      }
1004
    });
1116
    });
1005
  }
1117
  }
Line 1049... Line 1161...
1049
  !*** multi ./js/entries/plugins/foundation.core.js ***!
1161
  !*** multi ./js/entries/plugins/foundation.core.js ***!
1050
  \*****************************************************/
1162
  \*****************************************************/
1051
/*! no static exports found */
1163
/*! no static exports found */
1052
/***/ (function(module, exports, __webpack_require__) {
1164
/***/ (function(module, exports, __webpack_require__) {
1053
 
1165
 
1054
module.exports = __webpack_require__(/*! /Users/ncoden/Documents/Documents/Projects/Programmation/Web/2016/Foundation/foundation-sites/js/entries/plugins/foundation.core.js */"./js/entries/plugins/foundation.core.js");
1166
module.exports = __webpack_require__(/*! /Volumes/Data/Development/Foundation/foundation-sites/js/entries/plugins/foundation.core.js */"./js/entries/plugins/foundation.core.js");
1055
 
1167
 
1056
 
1168
 
1057
/***/ }),
1169
/***/ }),
1058
 
1170
 
1059
/***/ "jquery":
1171
/***/ "jquery":