diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 49fbd55630..05b75844b7 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,4 +1,4 @@ -#### Do you want to request a *feature* or report a *bug*? +#### Do you want to request a _feature_ or report a _bug_? #### What's the current behavior? diff --git a/CHANGELOG.md b/CHANGELOG.md index a6345197d4..277aeea5e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,359 +1,175 @@ -v0.17.1 - Tue, 05 Dec 2017 19:42:18 GMT ---------------------------------------- +## v0.17.1 - Tue, 05 Dec 2017 19:42:18 GMT -- [#634](../../pull/634) added a new optional callback `dayPropGetter` to allow customization of the cell backgrounds of month, week, and work week views without the need for custom components +* [#634](../../pull/634) added a new optional callback `dayPropGetter` to allow customization of the cell backgrounds of month, week, and work week views without the need for custom components +## v0.17.0 - Thu, 02 Nov 2017 15:26:08 GMT +## v0.16.1 - Fri, 29 Sep 2017 15:49:07 GMT -v0.17.0 - Thu, 02 Nov 2017 15:26:08 GMT ---------------------------------------- +## v0.16.0 - Fri, 29 Sep 2017 15:42:08 GMT +## v0.15.0 - Tue, 29 Aug 2017 18:20:39 GMT +## v0.14.4 - Fri, 23 Jun 2017 13:59:31 GMT +## v0.14.3 - Wed, 21 Jun 2017 14:23:07 GMT +## v0.14.2 - Mon, 19 Jun 2017 15:41:40 GMT -v0.16.1 - Fri, 29 Sep 2017 15:49:07 GMT ---------------------------------------- +## v0.14.1 - Mon, 19 Jun 2017 15:41:20 GMT +## v0.14.0 - Tue, 02 May 2017 13:14:45 GMT +## v0.13.0 - Wed, 22 Mar 2017 15:09:54 GMT +## v0.12.3 - Sun, 15 Jan 2017 17:15:59 GMT +## v0.12.2 - Sun, 15 Jan 2017 17:09:50 GMT -v0.16.0 - Fri, 29 Sep 2017 15:42:08 GMT ---------------------------------------- +* [45687c9](../../commit/45687c9) [fixed] allow string names in `move()` +## v0.12.1 - Thu, 12 Jan 2017 20:47:22 GMT +* [5578559](../../commit/5578559) [fixed] all day event selection +## v0.12.0 - Sat, 07 Jan 2017 22:03:45 GMT +## v0.11.1 - Sun, 20 Nov 2016 17:48:51 GMT -v0.15.0 - Tue, 29 Aug 2017 18:20:39 GMT ---------------------------------------- +## v0.11.0 - Sat, 08 Oct 2016 20:24:51 GMT +## v0.10.3 - Fri, 15 Jul 2016 17:56:54 GMT +## v0.10.2 - Fri, 10 Jun 2016 12:50:39 GMT +* [741c882](../../commit/741c882) [fixed] rm jsx imports +## v0.10.1 - Thu, 09 Jun 2016 18:39:57 GMT -v0.14.4 - Fri, 23 Jun 2017 13:59:31 GMT ---------------------------------------- +## v0.10.0 - Thu, 09 Jun 2016 15:33:06 GMT +## v0.9.12 - Fri, 20 May 2016 12:54:29 GMT +## v0.9.11 - Fri, 15 Apr 2016 13:39:50 GMT +## v0.9.10 - Fri, 15 Apr 2016 13:31:58 GMT +## v0.9.9 - Fri, 15 Apr 2016 12:28:00 GMT -v0.14.3 - Wed, 21 Jun 2017 14:23:07 GMT ---------------------------------------- +* [a2a49c8](../../commit/a2a49c8) [fixed] consistent handling of end dates as _exclusive_ ranges +* [1c12b16](../../commit/1c12b16) [fixed] DST issue with events +* [f526e23](../../commit/f526e23) [added] onSelecting callback +* [18c0234](../../commit/18c0234) [fixed] incorrect page offset +* [4eeacd4](../../commit/4eeacd4) [fixed] more cross browser flex issues. +* [2dc61ec](../../commit/2dc61ec) [fixed] add minHeight for week view overflow +## v0.9.8 - Thu, 14 Jan 2016 19:35:07 GMT +* [5fa7012](../../commit/5fa7012) [fixed] Incorrect gutter widths +## v0.9.7 - Sun, 13 Dec 2015 22:01:09 GMT +* [ebf8908](../../commit/ebf8908) [fixed] agenda header display -v0.14.2 - Mon, 19 Jun 2017 15:41:40 GMT ---------------------------------------- +## v0.9.6 - Sun, 13 Dec 2015 21:39:49 GMT +* [a69600b](../../commit/a69600b) [fixed] Pass correct date to DaySlot for selections. +* [5ac5c30](../../commit/5ac5c30) [fixed] reset gutter widths before calculations +## v0.9.5 - Wed, 02 Dec 2015 18:09:32 GMT +* [c2e8aa4](../../commit/c2e8aa4) [fixed] accidental breaking change on the localizers +* [dc90943](../../commit/dc90943) [fixed] some style issues +* [ea8e085](../../commit/ea8e085) [added] modern globalize support +* [4b3d3ba](../../commit/4b3d3ba) [fixed] have gutter use culture prop +* [7922882](../../commit/7922882) [fixed] better gutter width detection +## v0.9.4 - Sun, 29 Nov 2015 02:19:49 GMT -v0.14.1 - Mon, 19 Jun 2017 15:41:20 GMT ---------------------------------------- +* [a41c9f9](../../commit/a41c9f9) [added] right-to-left support +* [8bb6589](../../commit/8bb6589) [fixed] properly select time ranges with min/max set +## v0.9.3 - Sat, 28 Nov 2015 20:00:24 GMT +* [fff1914](../../commit/fff1914) [fixed] pass culture to View +## v0.9.2 - Thu, 12 Nov 2015 23:34:33 GMT +* [58f008f](../../commit/58f008f) [fixed] none integer slot spaces (again) +* [f2084ef](../../commit/f2084ef) [fixed] month event rows not fitting in their cells +* [73e449d](../../commit/73e449d) [fixed] day view clicks return the correct slot -v0.14.0 - Tue, 02 May 2017 13:14:45 GMT ---------------------------------------- +## v0.9.1 - Thu, 12 Nov 2015 14:52:20 GMT +* [d5a0d20](../../commit/d5a0d20) [fixed] month event rows not fitting in their cells +* [f4b18d6](../../commit/f4b18d6) [fixed] day view clicks return the correct slot +## v0.9.0 - Tue, 03 Nov 2015 11:33:38 GMT +* [ee53bbc](../../commit/ee53bbc) [changed] default "show more" behavior navigates to day view +* [80aa08f](../../commit/80aa08f) [added] popupOffset prop for configuring distance from viewport edge +## v0.8.3 - Thu, 29 Oct 2015 06:07:22 GMT -v0.13.0 - Wed, 22 Mar 2017 15:09:54 GMT ---------------------------------------- +* [d98af8d](../../commit/d98af8d) [added] edge detection for event popup +* [69b092d](../../commit/69b092d) [fixed] accidental hash changes +* [0351b71](../../commit/0351b71) [fixed] incorrect 'show more' layout +## v0.8.2 - Wed, 28 Oct 2015 08:09:39 GMT +* [892af3d](../../commit/892af3d) [fixed] use correct handler for "show more" +## v0.8.1 - Wed, 28 Oct 2015 07:58:13 GMT +* [4560ff7](../../commit/4560ff7) [changed] better thin event title collapse +* [0eeb43f](../../commit/0eeb43f) [fixed] event layout sort +* [0574eed](../../commit/0574eed) [fixed] show more row layout issues +* [7ee9959](../../commit/7ee9959) [added] title to time view events +* [c07d0ab](../../commit/c07d0ab) [changed] better event overlays for overlapping events -v0.12.3 - Sun, 15 Jan 2017 17:15:59 GMT ---------------------------------------- +## v0.8.0 - Mon, 26 Oct 2015 12:32:54 GMT +* [4dac3f5](../../commit/4dac3f5) [added] rbc-event-allday class in month view +* [e314128](../../commit/e314128) [fixed] missing keys in popup +* [0d5df79](../../commit/0d5df79) [changed] "show more" behavior is cleaner +## v0.7.2 - Sat, 24 Oct 2015 03:21:53 GMT +* [0b0fa0f](../../commit/0b0fa0f) [fixed] prevent selection when clicking show more +* [57c8843](../../commit/57c8843) [fixed] allow event selection when selectable, in day views +## v0.7.1 - Wed, 30 Sep 2015 12:34:43 GMT -v0.12.2 - Sun, 15 Jan 2017 17:09:50 GMT ---------------------------------------- +* [f7969b3](../../commit/f7969b3) [fixed] use client coords to get node during selection -- [45687c9](../../commit/45687c9) [fixed] allow string names in `move()` +## v0.7.0 - Tue, 15 Sep 2015 08:37:50 GMT +* [8ad4ee7](../../commit/8ad4ee7) [changed] selection bound to Calendar container, respects overlays +* [98b3dad](../../commit/98b3dad) [fixed] selecting events in All Day row of week/Day views +## v0.6.1 - Sun, 13 Sep 2015 16:52:20 GMT -v0.12.1 - Thu, 12 Jan 2017 20:47:22 GMT ---------------------------------------- +* [c3092f4](../../commit/c3092f4) [fixed] event rows incorrect duration styles +* [dade2b9](../../commit/dade2b9) [fixed] more month event layout issues -- [5578559](../../commit/5578559) [fixed] all day event selection +## v0.6.0 - Sun, 13 Sep 2015 15:32:08 GMT +* [49e321f](../../commit/49e321f) [fixed] layout of events in months that don't start evenly at weekday 0 +* [720675e](../../commit/720675e) [added] eventPropsGetter for event markup customization +## v0.5.2 - Sun, 13 Sep 2015 12:56:02 GMT -v0.12.0 - Sat, 07 Jan 2017 22:03:45 GMT ---------------------------------------- - - - - - -v0.11.1 - Sun, 20 Nov 2016 17:48:51 GMT ---------------------------------------- - - - - - -v0.11.0 - Sat, 08 Oct 2016 20:24:51 GMT ---------------------------------------- - - - - - -v0.10.3 - Fri, 15 Jul 2016 17:56:54 GMT ---------------------------------------- - - - - - -v0.10.2 - Fri, 10 Jun 2016 12:50:39 GMT ---------------------------------------- - -- [741c882](../../commit/741c882) [fixed] rm jsx imports - - - -v0.10.1 - Thu, 09 Jun 2016 18:39:57 GMT ---------------------------------------- - - - - - -v0.10.0 - Thu, 09 Jun 2016 15:33:06 GMT ---------------------------------------- - - - - - -v0.9.12 - Fri, 20 May 2016 12:54:29 GMT ---------------------------------------- - - - - - -v0.9.11 - Fri, 15 Apr 2016 13:39:50 GMT ---------------------------------------- - - - - - -v0.9.10 - Fri, 15 Apr 2016 13:31:58 GMT ---------------------------------------- - - - - - -v0.9.9 - Fri, 15 Apr 2016 12:28:00 GMT --------------------------------------- - -- [a2a49c8](../../commit/a2a49c8) [fixed] consistent handling of end dates as _exclusive_ ranges -- [1c12b16](../../commit/1c12b16) [fixed] DST issue with events -- [f526e23](../../commit/f526e23) [added] onSelecting callback -- [18c0234](../../commit/18c0234) [fixed] incorrect page offset -- [4eeacd4](../../commit/4eeacd4) [fixed] more cross browser flex issues. -- [2dc61ec](../../commit/2dc61ec) [fixed] add minHeight for week view overflow - - - -v0.9.8 - Thu, 14 Jan 2016 19:35:07 GMT --------------------------------------- - -- [5fa7012](../../commit/5fa7012) [fixed] Incorrect gutter widths - - - -v0.9.7 - Sun, 13 Dec 2015 22:01:09 GMT --------------------------------------- - -- [ebf8908](../../commit/ebf8908) [fixed] agenda header display - - - -v0.9.6 - Sun, 13 Dec 2015 21:39:49 GMT --------------------------------------- - -- [a69600b](../../commit/a69600b) [fixed] Pass correct date to DaySlot for selections. -- [5ac5c30](../../commit/5ac5c30) [fixed] reset gutter widths before calculations - - - -v0.9.5 - Wed, 02 Dec 2015 18:09:32 GMT --------------------------------------- - -- [c2e8aa4](../../commit/c2e8aa4) [fixed] accidental breaking change on the localizers -- [dc90943](../../commit/dc90943) [fixed] some style issues -- [ea8e085](../../commit/ea8e085) [added] modern globalize support -- [4b3d3ba](../../commit/4b3d3ba) [fixed] have gutter use culture prop -- [7922882](../../commit/7922882) [fixed] better gutter width detection - - - -v0.9.4 - Sun, 29 Nov 2015 02:19:49 GMT --------------------------------------- - -- [a41c9f9](../../commit/a41c9f9) [added] right-to-left support -- [8bb6589](../../commit/8bb6589) [fixed] properly select time ranges with min/max set - - - -v0.9.3 - Sat, 28 Nov 2015 20:00:24 GMT --------------------------------------- - -- [fff1914](../../commit/fff1914) [fixed] pass culture to View - - - -v0.9.2 - Thu, 12 Nov 2015 23:34:33 GMT --------------------------------------- - -- [58f008f](../../commit/58f008f) [fixed] none integer slot spaces (again) -- [f2084ef](../../commit/f2084ef) [fixed] month event rows not fitting in their cells -- [73e449d](../../commit/73e449d) [fixed] day view clicks return the correct slot - - - -v0.9.1 - Thu, 12 Nov 2015 14:52:20 GMT --------------------------------------- - -- [d5a0d20](../../commit/d5a0d20) [fixed] month event rows not fitting in their cells -- [f4b18d6](../../commit/f4b18d6) [fixed] day view clicks return the correct slot - - - -v0.9.0 - Tue, 03 Nov 2015 11:33:38 GMT --------------------------------------- - -- [ee53bbc](../../commit/ee53bbc) [changed] default "show more" behavior navigates to day view -- [80aa08f](../../commit/80aa08f) [added] popupOffset prop for configuring distance from viewport edge - - - -v0.8.3 - Thu, 29 Oct 2015 06:07:22 GMT --------------------------------------- - -- [d98af8d](../../commit/d98af8d) [added] edge detection for event popup -- [69b092d](../../commit/69b092d) [fixed] accidental hash changes -- [0351b71](../../commit/0351b71) [fixed] incorrect 'show more' layout - - - -v0.8.2 - Wed, 28 Oct 2015 08:09:39 GMT --------------------------------------- - -- [892af3d](../../commit/892af3d) [fixed] use correct handler for "show more" - - - -v0.8.1 - Wed, 28 Oct 2015 07:58:13 GMT --------------------------------------- - -- [4560ff7](../../commit/4560ff7) [changed] better thin event title collapse -- [0eeb43f](../../commit/0eeb43f) [fixed] event layout sort -- [0574eed](../../commit/0574eed) [fixed] show more row layout issues -- [7ee9959](../../commit/7ee9959) [added] title to time view events -- [c07d0ab](../../commit/c07d0ab) [changed] better event overlays for overlapping events - - - -v0.8.0 - Mon, 26 Oct 2015 12:32:54 GMT --------------------------------------- - -- [4dac3f5](../../commit/4dac3f5) [added] rbc-event-allday class in month view -- [e314128](../../commit/e314128) [fixed] missing keys in popup -- [0d5df79](../../commit/0d5df79) [changed] "show more" behavior is cleaner - - - -v0.7.2 - Sat, 24 Oct 2015 03:21:53 GMT --------------------------------------- - -- [0b0fa0f](../../commit/0b0fa0f) [fixed] prevent selection when clicking show more -- [57c8843](../../commit/57c8843) [fixed] allow event selection when selectable, in day views - - - -v0.7.1 - Wed, 30 Sep 2015 12:34:43 GMT --------------------------------------- - -- [f7969b3](../../commit/f7969b3) [fixed] use client coords to get node during selection - - - -v0.7.0 - Tue, 15 Sep 2015 08:37:50 GMT --------------------------------------- - -- [8ad4ee7](../../commit/8ad4ee7) [changed] selection bound to Calendar container, respects overlays -- [98b3dad](../../commit/98b3dad) [fixed] selecting events in All Day row of week/Day views - - - -v0.6.1 - Sun, 13 Sep 2015 16:52:20 GMT --------------------------------------- - -- [c3092f4](../../commit/c3092f4) [fixed] event rows incorrect duration styles -- [dade2b9](../../commit/dade2b9) [fixed] more month event layout issues - - - -v0.6.0 - Sun, 13 Sep 2015 15:32:08 GMT --------------------------------------- - -- [49e321f](../../commit/49e321f) [fixed] layout of events in months that don't start evenly at weekday 0 -- [720675e](../../commit/720675e) [added] eventPropsGetter for event markup customization - - - -v0.5.2 - Sun, 13 Sep 2015 12:56:02 GMT --------------------------------------- - -- [386d4bc](../../commit/386d4bc) [fixed] `selectable` can properly be toggled on and off - - - -v0.5.1 - Sun, 13 Sep 2015 10:08:24 GMT --------------------------------------- - -- [a7dc435](../../commit/a7dc435) [fixed] className and style props being applied in multiple places -- [c8f8281](../../commit/c8f8281) [fixed] null exception on empty agenda view - - - -v0.5.0 - Sun, 13 Sep 2015 09:03:11 GMT --------------------------------------- - -- [00435ad](../../commit/00435ad) [fixed] view propType validation -- [ae039b9](../../commit/ae039b9) [added] expose `move` and `label` methods for easier external toolbars -- [7e7bc17](../../commit/7e7bc17) [changed] clarified accidental ambigious license - - - -v0.4.1 - Thu, 03 Sep 2015 19:08:11 GMT --------------------------------------- +* [386d4bc](../../commit/386d4bc) [fixed] `selectable` can properly be toggled on and off +## v0.5.1 - Sun, 13 Sep 2015 10:08:24 GMT +* [a7dc435](../../commit/a7dc435) [fixed] className and style props being applied in multiple places +* [c8f8281](../../commit/c8f8281) [fixed] null exception on empty agenda view +## v0.5.0 - Sun, 13 Sep 2015 09:03:11 GMT +* [00435ad](../../commit/00435ad) [fixed] view propType validation +* [ae039b9](../../commit/ae039b9) [added] expose `move` and `label` methods for easier external toolbars +* [7e7bc17](../../commit/7e7bc17) [changed] clarified accidental ambigious license +## v0.4.1 - Thu, 03 Sep 2015 19:08:11 GMT diff --git a/README.md b/README.md index e3b53d8520..260383eb64 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ $ cd react-big-calendar $ npm install $ npm run examples ``` + * Open [localhost:3000/examples/index.html](http://localhost:3000/examples/index.html). ### Localization and Date Formatting diff --git a/examples/Intro.md b/examples/Intro.md index bccbdafe0b..fc339ef827 100644 --- a/examples/Intro.md +++ b/examples/Intro.md @@ -28,8 +28,8 @@ const MyCalendar = props => (
) diff --git a/examples/bundle.js b/examples/bundle.js index e9b8309ddc..69c871df22 100644 --- a/examples/bundle.js +++ b/examples/bundle.js @@ -33,11 +33,7 @@ /******/ /******/ /******/ __webpack_require__.m = modules // expose the module cache /******/ - /******/ /******/ __webpack_require__.c = installedModules // identity function for calling harmony imports with the correct context - /******/ - /******/ /******/ __webpack_require__.i = function(value) { - return value - } // define getter function for harmony exports + /******/ /******/ __webpack_require__.c = installedModules // define getter function for harmony exports /******/ /******/ /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if (!__webpack_require__.o(exports, name)) { @@ -56,7 +52,7 @@ /******/ var getter = module && module.__esModule ? /******/ function getDefault() { - return module.default + return module['default'] } : /******/ function getModuleExports() { return module @@ -72,12 +68,70 @@ /******/ /******/ /******/ __webpack_require__.p = '/examples' // Load entry module and return exports /******/ - /******/ /******/ return __webpack_require__((__webpack_require__.s = 546)) + /******/ /******/ return __webpack_require__((__webpack_require__.s = 187)) /******/ })( /************************************************************************/ /******/ [ /* 0 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict' + /* WEBPACK VAR INJECTION */ ;(function(process) { + if (process.env.NODE_ENV === 'production') { + module.exports = __webpack_require__(188) + } else { + module.exports = __webpack_require__(189) + } + + /* WEBPACK VAR INJECTION */ + }.call(exports, __webpack_require__(2))) + + /***/ + }, + /* 1 */ + /***/ function(module, exports, __webpack_require__) { + /* WEBPACK VAR INJECTION */ ;(function(process) { + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + if (process.env.NODE_ENV !== 'production') { + var REACT_ELEMENT_TYPE = + (typeof Symbol === 'function' && + Symbol.for && + Symbol.for('react.element')) || + 0xeac7 + + var isValidElement = function(object) { + return ( + typeof object === 'object' && + object !== null && + object.$$typeof === REACT_ELEMENT_TYPE + ) + } + + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true + module.exports = __webpack_require__(263)( + isValidElement, + throwOnDirectAccess + ) + } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(264)() + } + + /* WEBPACK VAR INJECTION */ + }.call(exports, __webpack_require__(2))) + + /***/ + }, + /* 2 */ /***/ function(module, exports) { // shim for using process in browser var process = (module.exports = {}) @@ -122,7 +176,10 @@ return setTimeout(fun, 0) } // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + if ( + (cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && + setTimeout + ) { cachedSetTimeout = setTimeout return setTimeout(fun, 0) } @@ -145,7 +202,10 @@ return clearTimeout(marker) } // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + if ( + (cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && + clearTimeout + ) { cachedClearTimeout = clearTimeout return clearTimeout(marker) } @@ -244,6 +304,12 @@ process.removeListener = noop process.removeAllListeners = noop process.emit = noop + process.prependListener = noop + process.prependOnceListener = noop + + process.listeners = function(name) { + return [] + } process.binding = function(name) { throw new Error('process.binding is not supported') @@ -261,628 +327,7 @@ /***/ }, - /* 1 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - - module.exports = __webpack_require__(43) - - /***/ - }, - /* 2 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - - /** - * Use invariant() to assert state which your program assumes to be true. - * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. - * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. - */ - - var validateFormat = function validateFormat(format) {} - - if (process.env.NODE_ENV !== 'production') { - validateFormat = function validateFormat(format) { - if (format === undefined) { - throw new Error('invariant requires an error message argument') - } - } - } - - function invariant(condition, format, a, b, c, d, e, f) { - validateFormat(format) - - if (!condition) { - var error - if (format === undefined) { - error = new Error( - 'Minified exception occurred; use the non-minified dev environment ' + - 'for the full error message and additional helpful warnings.' - ) - } else { - var args = [a, b, c, d, e, f] - var argIndex = 0 - error = new Error( - format.replace(/%s/g, function() { - return args[argIndex++] - }) - ) - error.name = 'Invariant Violation' - } - - error.framesToPop = 1 // we don't care about invariant's own frame - throw error - } - } - - module.exports = invariant - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) - - /***/ - }, /* 3 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - - var emptyFunction = __webpack_require__(18) - - /** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. - */ - - var warning = emptyFunction - - if (process.env.NODE_ENV !== 'production') { - ;(function() { - var printWarning = function printWarning(format) { - for ( - var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; - _key < _len; - _key++ - ) { - args[_key - 1] = arguments[_key] - } - - var argIndex = 0 - var message = - 'Warning: ' + - format.replace(/%s/g, function() { - return args[argIndex++] - }) - if (typeof console !== 'undefined') { - console.error(message) - } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message) - } catch (x) {} - } - - warning = function warning(condition, format) { - if (format === undefined) { - throw new Error( - '`warning(condition, format, ...args)` requires a warning ' + 'message argument' - ) - } - - if (format.indexOf('Failed Composite propType: ') === 0) { - return // Ignore CompositeComponent proptype check. - } - - if (!condition) { - for ( - var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; - _key2 < _len2; - _key2++ - ) { - args[_key2 - 2] = arguments[_key2] - } - - printWarning.apply(undefined, [format].concat(args)) - } - } - })() - } - - module.exports = warning - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) - - /***/ - }, - /* 4 */ - /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */ ;(function(process) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - if (process.env.NODE_ENV !== 'production') { - var REACT_ELEMENT_TYPE = - (typeof Symbol === 'function' && Symbol.for && Symbol.for('react.element')) || 0xeac7 - - var isValidElement = function(object) { - return ( - typeof object === 'object' && - object !== null && - object.$$typeof === REACT_ELEMENT_TYPE - ) - } - - // By explicitly using `prop-types` you are opting into new development behavior. - // http://fb.me/prop-types-in-prod - var throwOnDirectAccess = true - module.exports = __webpack_require__(428)(isValidElement, throwOnDirectAccess) - } else { - // By explicitly using `prop-types` you are opting into new production behavior. - // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(427)() - } - - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) - - /***/ - }, - /* 5 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - /** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */ - - /** - * WARNING: DO NOT manually require this module. - * This is a replacement for `invariant(...)` used by the error code system - * and will _only_ be required by the corresponding babel pass. - * It always throws. - */ - - function reactProdInvariant(code) { - var argCount = arguments.length - 1 - - var message = - 'Minified React error #' + - code + - '; visit ' + - 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + - code - - for (var argIdx = 0; argIdx < argCount; argIdx++) { - message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]) - } - - message += - ' for the full message or use the non-minified dev environment' + - ' for full errors and additional helpful warnings.' - - var error = new Error(message) - error.name = 'Invariant Violation' - error.framesToPop = 1 // we don't care about reactProdInvariant's own frame - - throw error - } - - module.exports = reactProdInvariant - - /***/ - }, - /* 6 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - - /* eslint-disable no-unused-vars */ - var hasOwnProperty = Object.prototype.hasOwnProperty - var propIsEnumerable = Object.prototype.propertyIsEnumerable - - function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined') - } - - return Object(val) - } - - function shouldUseNative() { - try { - if (!Object.assign) { - return false - } - - // Detect buggy property enumeration order in older V8 versions. - - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc') // eslint-disable-line - test1[5] = 'de' - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test2 = {} - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i - } - var order2 = Object.getOwnPropertyNames(test2).map(function(n) { - return test2[n] - }) - if (order2.join('') !== '0123456789') { - return false - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test3 = {} - 'abcdefghijklmnopqrst'.split('').forEach(function(letter) { - test3[letter] = letter - }) - if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') { - return false - } - - return true - } catch (e) { - // We don't expect any of the above to throw, but better to be safe. - return false - } - } - - module.exports = shouldUseNative() - ? Object.assign - : function(target, source) { - var from - var to = toObject(target) - var symbols - - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]) - - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key] - } - } - - if (Object.getOwnPropertySymbols) { - symbols = Object.getOwnPropertySymbols(from) - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]] - } - } - } - } - - return to - } - - /***/ - }, - /* 7 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - - var _prodInvariant = __webpack_require__(5) - - var DOMProperty = __webpack_require__(28) - var ReactDOMComponentFlags = __webpack_require__(213) - - var invariant = __webpack_require__(2) - - var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME - var Flags = ReactDOMComponentFlags - - var internalInstanceKey = - '__reactInternalInstance$' + - Math.random() - .toString(36) - .slice(2) - - /** - * Drill down (through composites and empty components) until we get a host or - * host text component. - * - * This is pretty polymorphic but unavoidable with the current structure we have - * for `_renderedChildren`. - */ - function getRenderedHostOrTextFromComponent(component) { - var rendered - while ((rendered = component._renderedComponent)) { - component = rendered - } - return component - } - - /** - * Populate `_hostNode` on the rendered host/text component with the given - * DOM node. The passed `inst` can be a composite. - */ - function precacheNode(inst, node) { - var hostInst = getRenderedHostOrTextFromComponent(inst) - hostInst._hostNode = node - node[internalInstanceKey] = hostInst - } - - function uncacheNode(inst) { - var node = inst._hostNode - if (node) { - delete node[internalInstanceKey] - inst._hostNode = null - } - } - - /** - * Populate `_hostNode` on each child of `inst`, assuming that the children - * match up with the DOM (element) children of `node`. - * - * We cache entire levels at once to avoid an n^2 problem where we access the - * children of a node sequentially and have to walk from the start to our target - * node every time. - * - * Since we update `_renderedChildren` and the actual DOM at (slightly) - * different times, we could race here and see a newer `_renderedChildren` than - * the DOM nodes we see. To avoid this, ReactMultiChild calls - * `prepareToManageChildren` before we change `_renderedChildren`, at which - * time the container's child nodes are always cached (until it unmounts). - */ - function precacheChildNodes(inst, node) { - if (inst._flags & Flags.hasCachedChildNodes) { - return - } - var children = inst._renderedChildren - var childNode = node.firstChild - outer: for (var name in children) { - if (!children.hasOwnProperty(name)) { - continue - } - var childInst = children[name] - var childID = getRenderedHostOrTextFromComponent(childInst)._domID - if (childID === 0) { - // We're currently unmounting this child in ReactMultiChild; skip it. - continue - } - // We assume the child nodes are in the same order as the child instances. - for (; childNode !== null; childNode = childNode.nextSibling) { - if ( - (childNode.nodeType === 1 && - childNode.getAttribute(ATTR_NAME) === String(childID)) || - (childNode.nodeType === 8 && - childNode.nodeValue === ' react-text: ' + childID + ' ') || - (childNode.nodeType === 8 && - childNode.nodeValue === ' react-empty: ' + childID + ' ') - ) { - precacheNode(childInst, childNode) - continue outer - } - } - // We reached the end of the DOM children without finding an ID match. - true - ? process.env.NODE_ENV !== 'production' - ? invariant(false, 'Unable to find element with ID %s.', childID) - : _prodInvariant('32', childID) - : void 0 - } - inst._flags |= Flags.hasCachedChildNodes - } - - /** - * Given a DOM node, return the closest ReactDOMComponent or - * ReactDOMTextComponent instance ancestor. - */ - function getClosestInstanceFromNode(node) { - if (node[internalInstanceKey]) { - return node[internalInstanceKey] - } - - // Walk up the tree until we find an ancestor whose instance we have cached. - var parents = [] - while (!node[internalInstanceKey]) { - parents.push(node) - if (node.parentNode) { - node = node.parentNode - } else { - // Top of the tree. This node must not be part of a React tree (or is - // unmounted, potentially). - return null - } - } - - var closest - var inst - for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) { - closest = inst - if (parents.length) { - precacheChildNodes(inst, node) - } - } - - return closest - } - - /** - * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent - * instance, or null if the node was not rendered by this React. - */ - function getInstanceFromNode(node) { - var inst = getClosestInstanceFromNode(node) - if (inst != null && inst._hostNode === node) { - return inst - } else { - return null - } - } - - /** - * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding - * DOM node. - */ - function getNodeFromInstance(inst) { - // Without this first invariant, passing a non-DOM-component triggers the next - // invariant for a missing parent, which is super confusing. - !(inst._hostNode !== undefined) - ? process.env.NODE_ENV !== 'production' - ? invariant(false, 'getNodeFromInstance: Invalid argument.') - : _prodInvariant('33') - : void 0 - - if (inst._hostNode) { - return inst._hostNode - } - - // Walk up the tree until we find an ancestor whose DOM node we have cached. - var parents = [] - while (!inst._hostNode) { - parents.push(inst) - !inst._hostParent - ? process.env.NODE_ENV !== 'production' - ? invariant(false, 'React DOM tree root should always have a node reference.') - : _prodInvariant('34') - : void 0 - inst = inst._hostParent - } - - // Now parents contains each ancestor that does *not* have a cached native - // node, and `inst` is the deepest ancestor that does. - for (; parents.length; inst = parents.pop()) { - precacheChildNodes(inst, inst._hostNode) - } - - return inst._hostNode - } - - var ReactDOMComponentTree = { - getClosestInstanceFromNode: getClosestInstanceFromNode, - getInstanceFromNode: getInstanceFromNode, - getNodeFromInstance: getNodeFromInstance, - precacheChildNodes: precacheChildNodes, - precacheNode: precacheNode, - uncacheNode: uncacheNode, - } - - module.exports = ReactDOMComponentTree - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) - - /***/ - }, - /* 8 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright 2013-2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - /** - * Use invariant() to assert state which your program assumes to be true. - * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. - * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. - */ - - var invariant = function(condition, format, a, b, c, d, e, f) { - if (process.env.NODE_ENV !== 'production') { - if (format === undefined) { - throw new Error('invariant requires an error message argument') - } - } - - if (!condition) { - var error - if (format === undefined) { - error = new Error( - 'Minified exception occurred; use the non-minified dev environment ' + - 'for the full error message and additional helpful warnings.' - ) - } else { - var args = [a, b, c, d, e, f] - var argIndex = 0 - error = new Error( - format.replace(/%s/g, function() { - return args[argIndex++] - }) - ) - error.name = 'Invariant Violation' - } - - error.framesToPop = 1 // we don't care about invariant's own frame - throw error - } - } - - module.exports = invariant - - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) - - /***/ - }, - /* 9 */ /***/ function(module, exports, __webpack_require__) { 'use strict' @@ -902,11 +347,11 @@ return target } /* eslint no-fallthrough: off */ - var _dateArithmetic = __webpack_require__(147) + var _dateArithmetic = __webpack_require__(131) var _dateArithmetic2 = _interopRequireDefault(_dateArithmetic) - var _localizer = __webpack_require__(12) + var _localizer = __webpack_require__(6) var _localizer2 = _interopRequireDefault(_localizer) @@ -934,12 +379,20 @@ firstVisibleDay: function firstVisibleDay(date, culture) { var firstOfMonth = dates.startOf(date, 'month') - return dates.startOf(firstOfMonth, 'week', _localizer2.default.startOfWeek(culture)) + return dates.startOf( + firstOfMonth, + 'week', + _localizer2.default.startOfWeek(culture) + ) }, lastVisibleDay: function lastVisibleDay(date, culture) { var endOfMonth = dates.endOf(date, 'month') - return dates.endOf(endOfMonth, 'week', _localizer2.default.startOfWeek(culture)) + return dates.endOf( + endOfMonth, + 'week', + _localizer2.default.startOfWeek(culture) + ) }, visibleDays: function visibleDays(date, culture) { var current = dates.firstVisibleDay(date, culture), @@ -959,7 +412,10 @@ return dates.eq(floor, date) ? floor : dates.add(floor, 1, unit) }, range: function range(start, end) { - var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day' + var unit = + arguments.length > 2 && arguments[2] !== undefined + ? arguments[2] + : 'day' var current = start, days = [] @@ -1007,7 +463,8 @@ duration: function duration(start, end, unit, firstOfWeek) { if (unit === 'day') unit = 'date' return Math.abs( - dates[unit](start, undefined, firstOfWeek) - dates[unit](end, undefined, firstOfWeek) + dates[unit](start, undefined, firstOfWeek) - + dates[unit](end, undefined, firstOfWeek) ) }, diff: function diff(dateA, dateB, unit) { @@ -1018,7 +475,8 @@ // since one day in the range may be shorter/longer by an hour return Math.round( Math.abs( - +dates.startOf(dateA, unit) / MILLI[unit] - +dates.startOf(dateB, unit) / MILLI[unit] + +dates.startOf(dateA, unit) / MILLI[unit] - + +dates.startOf(dateB, unit) / MILLI[unit] ) ) }, @@ -1045,7 +503,9 @@ var d = new Date(date) d.setHours(0, 0, 0) d.setDate(d.getDate() + 4 - (d.getDay() || 7)) - return Math.ceil(((d - new Date(d.getFullYear(), 0, 1)) / 8.64e7 + 1) / 7) + return Math.ceil( + ((d - new Date(d.getFullYear(), 0, 1)) / 8.64e7 + 1) / 7 + ) }, today: function today() { return dates.startOf(new Date(), 'day') @@ -1059,51 +519,72 @@ }) exports.default = dates + module.exports = exports['default'] /***/ }, - /* 10 */ + /* 4 */ /***/ function(module, exports, __webpack_require__) { 'use strict' - /** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ + /* WEBPACK VAR INJECTION */ ;(function(process) { + /** + * Copyright 2013-2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - var canUseDOM = !!( - typeof window !== 'undefined' && - window.document && - window.document.createElement - ) - - /** - * Simple, lightweight module assisting with the detection and context of - * Worker. Helps avoid circular dependencies and allows code to reason about - * whether or not they are in a Worker, even if they never include the main - * `ReactWorker` dependency. - */ - var ExecutionEnvironment = { - canUseDOM: canUseDOM, + /** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ - canUseWorkers: typeof Worker !== 'undefined', + var invariant = function(condition, format, a, b, c, d, e, f) { + if (process.env.NODE_ENV !== 'production') { + if (format === undefined) { + throw new Error('invariant requires an error message argument') + } + } - canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent), + if (!condition) { + var error + if (format === undefined) { + error = new Error( + 'Minified exception occurred; use the non-minified dev environment ' + + 'for the full error message and additional helpful warnings.' + ) + } else { + var args = [a, b, c, d, e, f] + var argIndex = 0 + error = new Error( + format.replace(/%s/g, function() { + return args[argIndex++] + }) + ) + error.name = 'Invariant Violation' + } - canUseViewport: canUseDOM && !!window.screen, + error.framesToPop = 1 // we don't care about invariant's own frame + throw error + } + } - isInWorker: !canUseDOM, // For now, this is true - might change in the future. - } + module.exports = invariant - module.exports = ExecutionEnvironment + /* WEBPACK VAR INJECTION */ + }.call(exports, __webpack_require__(2))) /***/ }, - /* 11 */ + /* 5 */ /***/ function(module, exports) { /** * Checks if `value` is classified as an `Array` object. @@ -1134,19 +615,18 @@ /***/ }, - /* 12 */ + /* 6 */ /***/ function(module, exports, __webpack_require__) { 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { + /* WEBPACK VAR INJECTION */ ;(function(process) { exports.__esModule = true exports.set = set - var _propTypes = __webpack_require__(4) + var _propTypes = __webpack_require__(1) var _propTypes2 = _interopRequireDefault(_propTypes) - var _invariant = __webpack_require__(8) + var _invariant = __webpack_require__(4) var _invariant2 = _interopRequireDefault(_invariant) @@ -1190,12 +670,18 @@ !(typeof spec.format === 'function') ? process.env.NODE_ENV !== 'production' - ? (0, _invariant2.default)(false, 'date localizer `format(..)` must be a function') + ? (0, _invariant2.default)( + false, + 'date localizer `format(..)` must be a function' + ) : (0, _invariant2.default)(false) : void 0 !(typeof spec.parse === 'function') ? process.env.NODE_ENV !== 'production' - ? (0, _invariant2.default)(false, 'date localizer `parse(..)` must be a function') + ? (0, _invariant2.default)( + false, + 'date localizer `parse(..)` must be a function' + ) : (0, _invariant2.default)(false) : void 0 !(typeof spec.firstOfWeek === 'function') @@ -1213,7 +699,11 @@ this.startOfWeek = spec.firstOfWeek this.format = function() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + for ( + var _len = arguments.length, args = Array(_len), _key = 0; + _key < _len; + _key++ + ) { args[_key] = arguments[_key] } @@ -1223,7 +713,10 @@ this.parse = function(value, format, culture) { var result = spec.parse.call(_this, value, format, culture) - !(result == null || (result instanceof Date && !isNaN(result.getTime()))) + !( + result == null || + (result instanceof Date && !isNaN(result.getTime())) + ) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)( false, @@ -1261,12 +754,18 @@ format: function format() { var _localizer2 - return (_localizer2 = localizer).format.apply(_localizer2, arguments) + return (_localizer2 = localizer).format.apply( + _localizer2, + arguments + ) }, startOfWeek: function startOfWeek() { var _localizer3 - return (_localizer3 = localizer).startOfWeek.apply(_localizer3, arguments) + return (_localizer3 = localizer).startOfWeek.apply( + _localizer3, + arguments + ) }, } @@ -1279,11 +778,11 @@ ) } /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) + }.call(exports, __webpack_require__(2))) /***/ }, - /* 13 */ + /* 7 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__ /*! @@ -1291,7 +790,8 @@ Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ - /* global define */ + /* global define */ + ;(function() { 'use strict' @@ -1339,34 +839,36 @@ /***/ }, - /* 14 */ + /* 8 */ /***/ function(module, exports, __webpack_require__) { 'use strict' exports.__esModule = true exports.views = exports.dateRangeFormat = exports.dateFormat = exports.accessor = exports.eventComponent = exports.elementType = undefined - var _propTypes = __webpack_require__(4) + var _propTypes = __webpack_require__(1) var _propTypes2 = _interopRequireDefault(_propTypes) - var _localizer = __webpack_require__(12) + var _localizer = __webpack_require__(6) var _localizer2 = _interopRequireDefault(_localizer) - var _elementType = __webpack_require__(233) + var _elementType = __webpack_require__(132) var _elementType2 = _interopRequireDefault(_elementType) - var _all = __webpack_require__(526) + var _all = __webpack_require__(279) var _all2 = _interopRequireDefault(_all) - var _constants = __webpack_require__(24) + var _constants = __webpack_require__(13) - var _createChainableTypeChecker = __webpack_require__(83) + var _createChainableTypeChecker = __webpack_require__(56) - var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker) + var _createChainableTypeChecker2 = _interopRequireDefault( + _createChainableTypeChecker + ) function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj } @@ -1385,15 +887,17 @@ // }).isRequired, // }).isRequired, - var eventComponent = (exports.eventComponent = _propTypes2.default.oneOfType([ - _elementType2.default, - _propTypes2.default.shape({ - month: _elementType2.default, - week: _elementType2.default, - day: _elementType2.default, - agenda: _elementType2.default, - }), - ])) + var eventComponent = (exports.eventComponent = _propTypes2.default.oneOfType( + [ + _elementType2.default, + _propTypes2.default.shape({ + month: _elementType2.default, + week: _elementType2.default, + day: _elementType2.default, + agenda: _elementType2.default, + }), + ] + )) var viewNames = Object.keys(_constants.views).map(function(k) { return _constants.views[k] @@ -1404,7 +908,8 @@ _propTypes2.default.func, ])) - var dateFormat = (exports.dateFormat = (0, _createChainableTypeChecker2.default)(function() { + var dateFormat = (exports.dateFormat = (0, + _createChainableTypeChecker2.default)(function() { return ( _localizer2.default.propType && _localizer2.default.propType.apply(_localizer2.default, arguments) @@ -1434,7 +939,9 @@ _propTypes2.default.arrayOf(_propTypes2.default.oneOf(viewNames)), (0, _all2.default)(_propTypes2.default.object, function(props, name) { for ( - var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; + var _len = arguments.length, + args = Array(_len > 2 ? _len - 2 : 0), + _key = 2; _key < _len; _key++ ) { @@ -1445,11 +952,15 @@ err = void 0 Object.keys(prop).every(function(key) { - var isBuiltinView = viewNames.indexOf(key) !== -1 && typeof prop[key] === 'boolean' + var isBuiltinView = + viewNames.indexOf(key) !== -1 && typeof prop[key] === 'boolean' return ( isBuiltinView || - !(err = _elementType2.default.apply(undefined, [prop, key].concat(args))) + !(err = _elementType2.default.apply( + undefined, + [prop, key].concat(args) + )) ) }) @@ -1459,509 +970,53 @@ /***/ }, - /* 15 */ + /* 9 */ /***/ function(module, exports, __webpack_require__) { 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright 2016-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */ - - var _prodInvariant = __webpack_require__(34) - - var ReactCurrentOwner = __webpack_require__(22) - - var invariant = __webpack_require__(2) - var warning = __webpack_require__(3) - - function isNative(fn) { - // Based on isNative() from Lodash - var funcToString = Function.prototype.toString - var hasOwnProperty = Object.prototype.hasOwnProperty - var reIsNative = RegExp( - '^' + - funcToString - // Take an example native function source for comparison - .call(hasOwnProperty) - // Strip regex characters so we can use it for regex - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - // Remove hasOwnProperty from the template to make it generic - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + - '$' - ) + /* WEBPACK VAR INJECTION */ ;(function(process) { + function checkDCE() { + /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ + if ( + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function' + ) { + return + } + if (process.env.NODE_ENV !== 'production') { + // This branch is unreachable because this function is only called + // in production, but the condition is true only in development. + // Therefore if the branch is still here, dead code elimination wasn't + // properly applied. + // Don't change the message. React DevTools relies on it. Also make sure + // this message doesn't occur elsewhere in this function, or it will cause + // a false positive. + throw new Error('^_^') + } try { - var source = funcToString.call(fn) - return reIsNative.test(source) + // Verify that the code above has been dead code eliminated (DCE'd). + __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE) } catch (err) { - return false + // DevTools shouldn't crash React, no matter what. + // We should still report in case we break this code. + console.error(err) } } - var canUseCollections = - // Array.from - typeof Array.from === 'function' && - // Map - typeof Map === 'function' && - isNative(Map) && - // Map.prototype.keys - Map.prototype != null && - typeof Map.prototype.keys === 'function' && - isNative(Map.prototype.keys) && - // Set - typeof Set === 'function' && - isNative(Set) && - // Set.prototype.keys - Set.prototype != null && - typeof Set.prototype.keys === 'function' && - isNative(Set.prototype.keys) - - var setItem - var getItem - var removeItem - var getItemIDs - var addRoot - var removeRoot - var getRootIDs - - if (canUseCollections) { - var itemMap = new Map() - var rootIDSet = new Set() - - setItem = function(id, item) { - itemMap.set(id, item) - } - getItem = function(id) { - return itemMap.get(id) - } - removeItem = function(id) { - itemMap.delete(id) - } - getItemIDs = function() { - return Array.from(itemMap.keys()) - } - - addRoot = function(id) { - rootIDSet.add(id) - } - removeRoot = function(id) { - rootIDSet.delete(id) - } - getRootIDs = function() { - return Array.from(rootIDSet.keys()) - } + if (process.env.NODE_ENV === 'production') { + // DCE check should happen before ReactDOM bundle executes so that + // DevTools can report bad minification during injection. + checkDCE() + module.exports = __webpack_require__(255) } else { - var itemByKey = {} - var rootByKey = {} - - // Use non-numeric keys to prevent V8 performance issues: - // https://github.com/facebook/react/pull/7232 - var getKeyFromID = function(id) { - return '.' + id - } - var getIDFromKey = function(key) { - return parseInt(key.substr(1), 10) - } - - setItem = function(id, item) { - var key = getKeyFromID(id) - itemByKey[key] = item - } - getItem = function(id) { - var key = getKeyFromID(id) - return itemByKey[key] - } - removeItem = function(id) { - var key = getKeyFromID(id) - delete itemByKey[key] - } - getItemIDs = function() { - return Object.keys(itemByKey).map(getIDFromKey) - } - - addRoot = function(id) { - var key = getKeyFromID(id) - rootByKey[key] = true - } - removeRoot = function(id) { - var key = getKeyFromID(id) - delete rootByKey[key] - } - getRootIDs = function() { - return Object.keys(rootByKey).map(getIDFromKey) - } - } - - var unmountedIDs = [] - - function purgeDeep(id) { - var item = getItem(id) - if (item) { - var childIDs = item.childIDs - - removeItem(id) - childIDs.forEach(purgeDeep) - } - } - - function describeComponentFrame(name, source, ownerName) { - return ( - '\n in ' + - (name || 'Unknown') + - (source - ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' - : ownerName ? ' (created by ' + ownerName + ')' : '') - ) - } - - function getDisplayName(element) { - if (element == null) { - return '#empty' - } else if (typeof element === 'string' || typeof element === 'number') { - return '#text' - } else if (typeof element.type === 'string') { - return element.type - } else { - return element.type.displayName || element.type.name || 'Unknown' - } - } - - function describeID(id) { - var name = ReactComponentTreeHook.getDisplayName(id) - var element = ReactComponentTreeHook.getElement(id) - var ownerID = ReactComponentTreeHook.getOwnerID(id) - var ownerName - if (ownerID) { - ownerName = ReactComponentTreeHook.getDisplayName(ownerID) - } - process.env.NODE_ENV !== 'production' - ? warning( - element, - 'ReactComponentTreeHook: Missing React element for debugID %s when ' + - 'building stack', - id - ) - : void 0 - return describeComponentFrame(name, element && element._source, ownerName) - } - - var ReactComponentTreeHook = { - onSetChildren: function(id, nextChildIDs) { - var item = getItem(id) - !item - ? process.env.NODE_ENV !== 'production' - ? invariant(false, 'Item must have been set') - : _prodInvariant('144') - : void 0 - item.childIDs = nextChildIDs - - for (var i = 0; i < nextChildIDs.length; i++) { - var nextChildID = nextChildIDs[i] - var nextChild = getItem(nextChildID) - !nextChild - ? process.env.NODE_ENV !== 'production' - ? invariant( - false, - 'Expected hook events to fire for the child before its parent includes it in onSetChildren().' - ) - : _prodInvariant('140') - : void 0 - !( - nextChild.childIDs != null || - typeof nextChild.element !== 'object' || - nextChild.element == null - ) - ? process.env.NODE_ENV !== 'production' - ? invariant( - false, - 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().' - ) - : _prodInvariant('141') - : void 0 - !nextChild.isMounted - ? process.env.NODE_ENV !== 'production' - ? invariant( - false, - 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().' - ) - : _prodInvariant('71') - : void 0 - if (nextChild.parentID == null) { - nextChild.parentID = id - // TODO: This shouldn't be necessary but mounting a new root during in - // componentWillMount currently causes not-yet-mounted components to - // be purged from our tree data so their parent id is missing. - } - !(nextChild.parentID === id) - ? process.env.NODE_ENV !== 'production' - ? invariant( - false, - 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', - nextChildID, - nextChild.parentID, - id - ) - : _prodInvariant('142', nextChildID, nextChild.parentID, id) - : void 0 - } - }, - onBeforeMountComponent: function(id, element, parentID) { - var item = { - element: element, - parentID: parentID, - text: null, - childIDs: [], - isMounted: false, - updateCount: 0, - } - setItem(id, item) - }, - onBeforeUpdateComponent: function(id, element) { - var item = getItem(id) - if (!item || !item.isMounted) { - // We may end up here as a result of setState() in componentWillUnmount(). - // In this case, ignore the element. - return - } - item.element = element - }, - onMountComponent: function(id) { - var item = getItem(id) - !item - ? process.env.NODE_ENV !== 'production' - ? invariant(false, 'Item must have been set') - : _prodInvariant('144') - : void 0 - item.isMounted = true - var isRoot = item.parentID === 0 - if (isRoot) { - addRoot(id) - } - }, - onUpdateComponent: function(id) { - var item = getItem(id) - if (!item || !item.isMounted) { - // We may end up here as a result of setState() in componentWillUnmount(). - // In this case, ignore the element. - return - } - item.updateCount++ - }, - onUnmountComponent: function(id) { - var item = getItem(id) - if (item) { - // We need to check if it exists. - // `item` might not exist if it is inside an error boundary, and a sibling - // error boundary child threw while mounting. Then this instance never - // got a chance to mount, but it still gets an unmounting event during - // the error boundary cleanup. - item.isMounted = false - var isRoot = item.parentID === 0 - if (isRoot) { - removeRoot(id) - } - } - unmountedIDs.push(id) - }, - purgeUnmountedComponents: function() { - if (ReactComponentTreeHook._preventPurging) { - // Should only be used for testing. - return - } - - for (var i = 0; i < unmountedIDs.length; i++) { - var id = unmountedIDs[i] - purgeDeep(id) - } - unmountedIDs.length = 0 - }, - isMounted: function(id) { - var item = getItem(id) - return item ? item.isMounted : false - }, - getCurrentStackAddendum: function(topElement) { - var info = '' - if (topElement) { - var name = getDisplayName(topElement) - var owner = topElement._owner - info += describeComponentFrame(name, topElement._source, owner && owner.getName()) - } - - var currentOwner = ReactCurrentOwner.current - var id = currentOwner && currentOwner._debugID - - info += ReactComponentTreeHook.getStackAddendumByID(id) - return info - }, - getStackAddendumByID: function(id) { - var info = '' - while (id) { - info += describeID(id) - id = ReactComponentTreeHook.getParentID(id) - } - return info - }, - getChildIDs: function(id) { - var item = getItem(id) - return item ? item.childIDs : [] - }, - getDisplayName: function(id) { - var element = ReactComponentTreeHook.getElement(id) - if (!element) { - return null - } - return getDisplayName(element) - }, - getElement: function(id) { - var item = getItem(id) - return item ? item.element : null - }, - getOwnerID: function(id) { - var element = ReactComponentTreeHook.getElement(id) - if (!element || !element._owner) { - return null - } - return element._owner._debugID - }, - getParentID: function(id) { - var item = getItem(id) - return item ? item.parentID : null - }, - getSource: function(id) { - var item = getItem(id) - var element = item ? item.element : null - var source = element != null ? element._source : null - return source - }, - getText: function(id) { - var element = ReactComponentTreeHook.getElement(id) - if (typeof element === 'string') { - return element - } else if (typeof element === 'number') { - return '' + element - } else { - return null - } - }, - getUpdateCount: function(id) { - var item = getItem(id) - return item ? item.updateCount : 0 - }, - - getRootIDs: getRootIDs, - getRegisteredIDs: getItemIDs, - } - - module.exports = ReactComponentTreeHook - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) - - /***/ - }, - /* 16 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - - module.exports = __webpack_require__(462) - - /***/ - }, - /* 17 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright 2016-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */ - - // Trust the developer to only use ReactInstrumentation with a __DEV__ check - - var debugTool = null - - if (process.env.NODE_ENV !== 'production') { - var ReactDebugTool = __webpack_require__(477) - debugTool = ReactDebugTool + module.exports = __webpack_require__(258) } - module.exports = { debugTool: debugTool } /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) - - /***/ - }, - /* 18 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - - /** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */ - - function makeEmptyFunction(arg) { - return function() { - return arg - } - } - - /** - * This function accepts and discards inputs; it has no side effects. This is - * primarily useful idiomatically for overridable function endpoints which - * always need to be callable, since JS lacks a null-call idiom ala Cocoa. - */ - var emptyFunction = function emptyFunction() {} - - emptyFunction.thatReturns = makeEmptyFunction - emptyFunction.thatReturnsFalse = makeEmptyFunction(false) - emptyFunction.thatReturnsTrue = makeEmptyFunction(true) - emptyFunction.thatReturnsNull = makeEmptyFunction(null) - emptyFunction.thatReturnsThis = function() { - return this - } - emptyFunction.thatReturnsArgument = function(arg) { - return arg - } - - module.exports = emptyFunction - - /***/ - }, - /* 19 */ - /***/ function(module, exports, __webpack_require__) { - var freeGlobal = __webpack_require__(181) - - /** Detect free variable `self`. */ - var freeSelf = typeof self == 'object' && self && self.Object === Object && self - - /** Used as a reference to the global object. */ - var root = freeGlobal || freeSelf || Function('return this')() - - module.exports = root + }.call(exports, __webpack_require__(2))) /***/ }, - /* 20 */ + /* 10 */ /***/ function(module, exports) { /** * Checks if `value` is the @@ -1997,389 +1052,74 @@ /***/ }, - /* 21 */ + /* 11 */ /***/ function(module, exports, __webpack_require__) { - 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - - var _prodInvariant = __webpack_require__(5), - _assign = __webpack_require__(6) - - var CallbackQueue = __webpack_require__(211) - var PooledClass = __webpack_require__(32) - var ReactFeatureFlags = __webpack_require__(216) - var ReactReconciler = __webpack_require__(42) - var Transaction = __webpack_require__(79) - - var invariant = __webpack_require__(2) - - var dirtyComponents = [] - var updateBatchNumber = 0 - var asapCallbackQueue = CallbackQueue.getPooled() - var asapEnqueued = false - - var batchingStrategy = null - - function ensureInjected() { - !(ReactUpdates.ReactReconcileTransaction && batchingStrategy) - ? process.env.NODE_ENV !== 'production' - ? invariant( - false, - 'ReactUpdates: must inject a reconcile transaction class and batching strategy' - ) - : _prodInvariant('123') - : void 0 - } - - var NESTED_UPDATES = { - initialize: function() { - this.dirtyComponentsLength = dirtyComponents.length - }, - close: function() { - if (this.dirtyComponentsLength !== dirtyComponents.length) { - // Additional updates were enqueued by componentDidUpdate handlers or - // similar; before our own UPDATE_QUEUEING wrapper closes, we want to run - // these new updates so that if A's componentDidUpdate calls setState on - // B, B will update before the callback A's updater provided when calling - // setState. - dirtyComponents.splice(0, this.dirtyComponentsLength) - flushBatchedUpdates() - } else { - dirtyComponents.length = 0 - } - }, - } - - var UPDATE_QUEUEING = { - initialize: function() { - this.callbackQueue.reset() - }, - close: function() { - this.callbackQueue.notifyAll() - }, - } - - var TRANSACTION_WRAPPERS = [NESTED_UPDATES, UPDATE_QUEUEING] - - function ReactUpdatesFlushTransaction() { - this.reinitializeTransaction() - this.dirtyComponentsLength = null - this.callbackQueue = CallbackQueue.getPooled() - this.reconcileTransaction = ReactUpdates.ReactReconcileTransaction.getPooled( - /* useCreateElement */ true - ) - } - - _assign(ReactUpdatesFlushTransaction.prototype, Transaction, { - getTransactionWrappers: function() { - return TRANSACTION_WRAPPERS - }, - - destructor: function() { - this.dirtyComponentsLength = null - CallbackQueue.release(this.callbackQueue) - this.callbackQueue = null - ReactUpdates.ReactReconcileTransaction.release(this.reconcileTransaction) - this.reconcileTransaction = null - }, - - perform: function(method, scope, a) { - // Essentially calls `this.reconcileTransaction.perform(method, scope, a)` - // with this transaction's wrappers around it. - return Transaction.perform.call( - this, - this.reconcileTransaction.perform, - this.reconcileTransaction, - method, - scope, - a - ) - }, - }) - - PooledClass.addPoolingTo(ReactUpdatesFlushTransaction) - - function batchedUpdates(callback, a, b, c, d, e) { - ensureInjected() - return batchingStrategy.batchedUpdates(callback, a, b, c, d, e) - } - - /** - * Array comparator for ReactComponents by mount ordering. - * - * @param {ReactComponent} c1 first component you're comparing - * @param {ReactComponent} c2 second component you're comparing - * @return {number} Return value usable by Array.prototype.sort(). - */ - function mountOrderComparator(c1, c2) { - return c1._mountOrder - c2._mountOrder - } - - function runBatchedUpdates(transaction) { - var len = transaction.dirtyComponentsLength - !(len === dirtyComponents.length) - ? process.env.NODE_ENV !== 'production' - ? invariant( - false, - "Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).", - len, - dirtyComponents.length - ) - : _prodInvariant('124', len, dirtyComponents.length) - : void 0 - - // Since reconciling a component higher in the owner hierarchy usually (not - // always -- see shouldComponentUpdate()) will reconcile children, reconcile - // them before their children by sorting the array. - dirtyComponents.sort(mountOrderComparator) - - // Any updates enqueued while reconciling must be performed after this entire - // batch. Otherwise, if dirtyComponents is [A, B] where A has children B and - // C, B could update twice in a single batch if C's render enqueues an update - // to B (since B would have already updated, we should skip it, and the only - // way we can know to do so is by checking the batch counter). - updateBatchNumber++ - - for (var i = 0; i < len; i++) { - // If a component is unmounted before pending changes apply, it will still - // be here, but we assume that it has cleared its _pendingCallbacks and - // that performUpdateIfNecessary is a noop. - var component = dirtyComponents[i] - - // If performUpdateIfNecessary happens to enqueue any new updates, we - // shouldn't execute the callbacks until the next render happens, so - // stash the callbacks first - var callbacks = component._pendingCallbacks - component._pendingCallbacks = null - - var markerName - if (ReactFeatureFlags.logTopLevelRenders) { - var namedComponent = component - // Duck type TopLevelWrapper. This is probably always true. - if (component._currentElement.type.isReactTopLevelWrapper) { - namedComponent = component._renderedComponent - } - markerName = 'React update: ' + namedComponent.getName() - console.time(markerName) - } - - ReactReconciler.performUpdateIfNecessary( - component, - transaction.reconcileTransaction, - updateBatchNumber - ) - - if (markerName) { - console.timeEnd(markerName) - } - - if (callbacks) { - for (var j = 0; j < callbacks.length; j++) { - transaction.callbackQueue.enqueue(callbacks[j], component.getPublicInstance()) - } - } - } - } - - var flushBatchedUpdates = function() { - // ReactUpdatesFlushTransaction's wrappers will clear the dirtyComponents - // array and perform any updates enqueued by mount-ready handlers (i.e., - // componentDidUpdate) but we need to check here too in order to catch - // updates enqueued by setState callbacks and asap calls. - while (dirtyComponents.length || asapEnqueued) { - if (dirtyComponents.length) { - var transaction = ReactUpdatesFlushTransaction.getPooled() - transaction.perform(runBatchedUpdates, null, transaction) - ReactUpdatesFlushTransaction.release(transaction) - } + var freeGlobal = __webpack_require__(108) - if (asapEnqueued) { - asapEnqueued = false - var queue = asapCallbackQueue - asapCallbackQueue = CallbackQueue.getPooled() - queue.notifyAll() - CallbackQueue.release(queue) - } - } - } - - /** - * Mark a component as needing a rerender, adding an optional callback to a - * list of functions which will be executed once the rerender occurs. - */ - function enqueueUpdate(component) { - ensureInjected() - - // Various parts of our code (such as ReactCompositeComponent's - // _renderValidatedComponent) assume that calls to render aren't nested; - // verify that that's the case. (This is called by each top-level update - // function, like setState, forceUpdate, etc.; creation and - // destruction of top-level components is guarded in ReactMount.) - - if (!batchingStrategy.isBatchingUpdates) { - batchingStrategy.batchedUpdates(enqueueUpdate, component) - return - } - - dirtyComponents.push(component) - if (component._updateBatchNumber == null) { - component._updateBatchNumber = updateBatchNumber + 1 - } - } - - /** - * Enqueue a callback to be run at the end of the current batching cycle. Throws - * if no updates are currently being performed. - */ - function asap(callback, context) { - !batchingStrategy.isBatchingUpdates - ? process.env.NODE_ENV !== 'production' - ? invariant( - false, - "ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched." - ) - : _prodInvariant('125') - : void 0 - asapCallbackQueue.enqueue(callback, context) - asapEnqueued = true - } - - var ReactUpdatesInjection = { - injectReconcileTransaction: function(ReconcileTransaction) { - !ReconcileTransaction - ? process.env.NODE_ENV !== 'production' - ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class') - : _prodInvariant('126') - : void 0 - ReactUpdates.ReactReconcileTransaction = ReconcileTransaction - }, - - injectBatchingStrategy: function(_batchingStrategy) { - !_batchingStrategy - ? process.env.NODE_ENV !== 'production' - ? invariant(false, 'ReactUpdates: must provide a batching strategy') - : _prodInvariant('127') - : void 0 - !(typeof _batchingStrategy.batchedUpdates === 'function') - ? process.env.NODE_ENV !== 'production' - ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function') - : _prodInvariant('128') - : void 0 - !(typeof _batchingStrategy.isBatchingUpdates === 'boolean') - ? process.env.NODE_ENV !== 'production' - ? invariant( - false, - 'ReactUpdates: must provide an isBatchingUpdates boolean attribute' - ) - : _prodInvariant('129') - : void 0 - batchingStrategy = _batchingStrategy - }, - } - - var ReactUpdates = { - /** - * React references `ReactReconcileTransaction` using this property in order - * to allow dependency injection. - * - * @internal - */ - ReactReconcileTransaction: null, - - batchedUpdates: batchedUpdates, - enqueueUpdate: enqueueUpdate, - flushBatchedUpdates: flushBatchedUpdates, - injection: ReactUpdatesInjection, - asap: asap, - } - - module.exports = ReactUpdates - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) - - /***/ - }, - /* 22 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */ + /** Detect free variable `self`. */ + var freeSelf = + typeof self == 'object' && self && self.Object === Object && self - /** - * Keeps track of the current owner. - * - * The current owner is the component who should own any components that are - * currently being constructed. - */ - var ReactCurrentOwner = { - /** - * @internal - * @type {ReactComponent} - */ - current: null, - } + /** Used as a reference to the global object. */ + var root = freeGlobal || freeSelf || Function('return this')() - module.exports = ReactCurrentOwner + module.exports = root /***/ }, - /* 23 */ + /* 12 */ /***/ function(module, exports, __webpack_require__) { 'use strict' exports.__esModule = true - var _Calendar = __webpack_require__(549) + var _extends = + Object.assign || + function(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key] + } + } + } + return target + } + + var _Calendar = __webpack_require__(275) var _Calendar2 = _interopRequireDefault(_Calendar) - var _EventWrapper = __webpack_require__(240) + var _EventWrapper = __webpack_require__(162) var _EventWrapper2 = _interopRequireDefault(_EventWrapper) - var _BackgroundWrapper = __webpack_require__(144) + var _BackgroundWrapper = __webpack_require__(92) var _BackgroundWrapper2 = _interopRequireDefault(_BackgroundWrapper) - var _localizer = __webpack_require__(12) + var _localizer = __webpack_require__(6) - var _moment = __webpack_require__(564) + var _moment = __webpack_require__(370) var _moment2 = _interopRequireDefault(_moment) - var _globalize = __webpack_require__(146) + var _globalize = __webpack_require__(130) var _globalize2 = _interopRequireDefault(_globalize) - var _move = __webpack_require__(246) + var _move = __webpack_require__(133) var _move2 = _interopRequireDefault(_move) - var _constants = __webpack_require__(24) + var _constants = __webpack_require__(13) function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj } } - Object.assign(_Calendar2.default, { + _extends(_Calendar2.default, { setLocalizer: _localizer.set, globalizeLocalizer: _globalize2.default, momentLocalizer: _moment2.default, @@ -2394,10 +1134,11 @@ }) exports.default = _Calendar2.default + module.exports = exports['default'] /***/ }, - /* 24 */ + /* 13 */ /***/ function(module, exports, __webpack_require__) { 'use strict' @@ -2419,350 +1160,84 @@ /***/ }, - /* 25 */ + /* 14 */ /***/ function(module, exports, __webpack_require__) { 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - - var _assign = __webpack_require__(6) + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ - var PooledClass = __webpack_require__(32) + var React = __webpack_require__(0) + var factory = __webpack_require__(190) - var emptyFunction = __webpack_require__(18) - var warning = __webpack_require__(3) + if (typeof React === 'undefined') { + throw Error( + 'create-react-class could not find the React object. If you are using script tags, ' + + 'make sure that React is being loaded before create-react-class.' + ) + } - var didWarnForAddedNewProperty = false - var isProxySupported = typeof Proxy === 'function' + // Hack to grab NoopUpdateQueue from isomorphic React + var ReactNoopUpdateQueue = new React.Component().updater - var shouldBeReleasedProperties = [ - 'dispatchConfig', - '_targetInst', - 'nativeEvent', - 'isDefaultPrevented', - 'isPropagationStopped', - '_dispatchListeners', - '_dispatchInstances', - ] + module.exports = factory( + React.Component, + React.isValidElement, + ReactNoopUpdateQueue + ) - /** - * @interface Event - * @see http://www.w3.org/TR/DOM-Level-3-Events/ - */ - var EventInterface = { - type: null, - target: null, - // currentTarget is set when dispatching; no use in copying it here - currentTarget: emptyFunction.thatReturnsNull, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function(event) { - return event.timeStamp || Date.now() - }, - defaultPrevented: null, - isTrusted: null, - } + /***/ + }, + /* 15 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict' - /** - * Synthetic events are dispatched by event plugins, typically in response to a - * top-level event delegation handler. - * - * These systems should generally use pooling to reduce the frequency of garbage - * collection. The system should check `isPersistent` to determine whether the - * event should be released into the pool after being dispatched. Users that - * need a persisted event should invoke `persist`. - * - * Synthetic events (and subclasses) implement the DOM Level 3 Events API by - * normalizing browser quirks. Subclasses do not necessarily have to implement a - * DOM interface; custom application-specific events can also subclass this. - * - * @param {object} dispatchConfig Configuration used to dispatch this event. - * @param {*} targetInst Marker identifying the event target. - * @param {object} nativeEvent Native browser event. - * @param {DOMEventTarget} nativeEventTarget Target node. - */ - function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { - if (process.env.NODE_ENV !== 'production') { - // these have a getter/setter for warnings - delete this.nativeEvent - delete this.preventDefault - delete this.stopPropagation - } - - this.dispatchConfig = dispatchConfig - this._targetInst = targetInst - this.nativeEvent = nativeEvent - - var Interface = this.constructor.Interface - for (var propName in Interface) { - if (!Interface.hasOwnProperty(propName)) { - continue - } - if (process.env.NODE_ENV !== 'production') { - delete this[propName] // this has a getter/setter for warnings - } - var normalize = Interface[propName] - if (normalize) { - this[propName] = normalize(nativeEvent) - } else { - if (propName === 'target') { - this.target = nativeEventTarget - } else { - this[propName] = nativeEvent[propName] - } - } - } - - var defaultPrevented = - nativeEvent.defaultPrevented != null - ? nativeEvent.defaultPrevented - : nativeEvent.returnValue === false - if (defaultPrevented) { - this.isDefaultPrevented = emptyFunction.thatReturnsTrue - } else { - this.isDefaultPrevented = emptyFunction.thatReturnsFalse - } - this.isPropagationStopped = emptyFunction.thatReturnsFalse - return this - } - - _assign(SyntheticEvent.prototype, { - preventDefault: function() { - this.defaultPrevented = true - var event = this.nativeEvent - if (!event) { - return - } - - if (event.preventDefault) { - event.preventDefault() - } else if (typeof event.returnValue !== 'unknown') { - // eslint-disable-line valid-typeof - event.returnValue = false - } - this.isDefaultPrevented = emptyFunction.thatReturnsTrue - }, - - stopPropagation: function() { - var event = this.nativeEvent - if (!event) { - return - } - - if (event.stopPropagation) { - event.stopPropagation() - } else if (typeof event.cancelBubble !== 'unknown') { - // eslint-disable-line valid-typeof - // The ChangeEventPlugin registers a "propertychange" event for - // IE. This event does not support bubbling or cancelling, and - // any references to cancelBubble throw "Member not found". A - // typeof check of "unknown" circumvents this issue (and is also - // IE specific). - event.cancelBubble = true - } - - this.isPropagationStopped = emptyFunction.thatReturnsTrue - }, - - /** - * We release all dispatched `SyntheticEvent`s after each event loop, adding - * them back into the pool. This allows a way to hold onto a reference that - * won't be added back into the pool. - */ - persist: function() { - this.isPersistent = emptyFunction.thatReturnsTrue - }, - - /** - * Checks if this event should be released back into the pool. - * - * @return {boolean} True if this should not be released, false otherwise. - */ - isPersistent: emptyFunction.thatReturnsFalse, - - /** - * `PooledClass` looks for `destructor` on each instance it releases. - */ - destructor: function() { - var Interface = this.constructor.Interface - for (var propName in Interface) { - if (process.env.NODE_ENV !== 'production') { - Object.defineProperty( - this, - propName, - getPooledWarningPropertyDefinition(propName, Interface[propName]) - ) - } else { - this[propName] = null - } - } - for (var i = 0; i < shouldBeReleasedProperties.length; i++) { - this[shouldBeReleasedProperties[i]] = null - } - if (process.env.NODE_ENV !== 'production') { - Object.defineProperty( - this, - 'nativeEvent', - getPooledWarningPropertyDefinition('nativeEvent', null) - ) - Object.defineProperty( - this, - 'preventDefault', - getPooledWarningPropertyDefinition('preventDefault', emptyFunction) - ) - Object.defineProperty( - this, - 'stopPropagation', - getPooledWarningPropertyDefinition('stopPropagation', emptyFunction) - ) - } - }, - }) - - SyntheticEvent.Interface = EventInterface - - if (process.env.NODE_ENV !== 'production') { - if (isProxySupported) { - /*eslint-disable no-func-assign */ - SyntheticEvent = new Proxy(SyntheticEvent, { - construct: function(target, args) { - return this.apply(target, Object.create(target.prototype), args) - }, - apply: function(constructor, that, args) { - return new Proxy(constructor.apply(that, args), { - set: function(target, prop, value) { - if ( - prop !== 'isPersistent' && - !target.constructor.Interface.hasOwnProperty(prop) && - shouldBeReleasedProperties.indexOf(prop) === -1 - ) { - process.env.NODE_ENV !== 'production' - ? warning( - didWarnForAddedNewProperty || target.isPersistent(), - "This synthetic event is reused for performance reasons. If you're " + - "seeing this, you're adding a new property in the synthetic event object. " + - 'The property is never released. See ' + - 'https://fb.me/react-event-pooling for more information.' - ) - : void 0 - didWarnForAddedNewProperty = true - } - target[prop] = value - return true - }, - }) - }, - }) - /*eslint-enable no-func-assign */ - } - } - /** - * Helper to reduce boilerplate when creating subclasses. - * - * @param {function} Class - * @param {?object} Interface - */ - SyntheticEvent.augmentClass = function(Class, Interface) { - var Super = this - - var E = function() {} - E.prototype = Super.prototype - var prototype = new E() - - _assign(prototype, Class.prototype) - Class.prototype = prototype - Class.prototype.constructor = Class - - Class.Interface = _assign({}, Super.Interface, Interface) - Class.augmentClass = Super.augmentClass + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * + */ - PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler) + function makeEmptyFunction(arg) { + return function() { + return arg } + } - PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler) - - module.exports = SyntheticEvent - - /** - * Helper to nullify syntheticEvent instance properties when destructing - * - * @param {object} SyntheticEvent - * @param {String} propName - * @return {object} defineProperty object - */ - function getPooledWarningPropertyDefinition(propName, getVal) { - var isFunction = typeof getVal === 'function' - return { - configurable: true, - set: set, - get: get, - } - - function set(val) { - var action = isFunction ? 'setting the method' : 'setting the property' - warn(action, 'This is effectively a no-op') - return val - } - - function get() { - var action = isFunction ? 'accessing the method' : 'accessing the property' - var result = isFunction ? 'This is a no-op function' : 'This is set to null' - warn(action, result) - return getVal - } - - function warn(action, result) { - var warningCondition = false - process.env.NODE_ENV !== 'production' - ? warning( - warningCondition, - "This synthetic event is reused for performance reasons. If you're seeing this, " + - "you're %s `%s` on a released/nullified synthetic event. %s. " + - 'If you must keep the original synthetic event around, use event.persist(). ' + - 'See https://fb.me/react-event-pooling for more information.', - action, - propName, - result - ) - : void 0 - } - } - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) + /** + * This function accepts and discards inputs; it has no side effects. This is + * primarily useful idiomatically for overridable function endpoints which + * always need to be callable, since JS lacks a null-call idiom ala Cocoa. + */ + var emptyFunction = function emptyFunction() {} - /***/ - }, - /* 26 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' + emptyFunction.thatReturns = makeEmptyFunction + emptyFunction.thatReturnsFalse = makeEmptyFunction(false) + emptyFunction.thatReturnsTrue = makeEmptyFunction(true) + emptyFunction.thatReturnsNull = makeEmptyFunction(null) + emptyFunction.thatReturnsThis = function() { + return this + } + emptyFunction.thatReturnsArgument = function(arg) { + return arg + } - Object.defineProperty(exports, '__esModule', { - value: true, - }) - exports.default = !!( - typeof window !== 'undefined' && - window.document && - window.document.createElement - ) - module.exports = exports.default + module.exports = emptyFunction /***/ }, - /* 27 */ + /* 16 */ /***/ function(module, exports, __webpack_require__) { - var baseGetTag = __webpack_require__(38), - getPrototype = __webpack_require__(67), - isObjectLike = __webpack_require__(31) + var baseGetTag = __webpack_require__(24), + getPrototype = __webpack_require__(52), + isObjectLike = __webpack_require__(18) /** `Object#toString` result references. */ var objectTag = '[object Object]' @@ -2816,7 +1291,8 @@ if (proto === null) { return true } - var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor + var Ctor = + hasOwnProperty.call(proto, 'constructor') && proto.constructor return ( typeof Ctor == 'function' && Ctor instanceof Ctor && @@ -2828,360 +1304,107 @@ /***/ }, - /* 28 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - - var _prodInvariant = __webpack_require__(5) - - var invariant = __webpack_require__(2) - - function checkMask(value, bitmask) { - return (value & bitmask) === bitmask - } - - var DOMPropertyInjection = { - /** - * Mapping from normalized, camelcased property names to a configuration that - * specifies how the associated DOM property should be accessed or rendered. - */ - MUST_USE_PROPERTY: 0x1, - HAS_BOOLEAN_VALUE: 0x4, - HAS_NUMERIC_VALUE: 0x8, - HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8, - HAS_OVERLOADED_BOOLEAN_VALUE: 0x20, - - /** - * Inject some specialized knowledge about the DOM. This takes a config object - * with the following properties: - * - * isCustomAttribute: function that given an attribute name will return true - * if it can be inserted into the DOM verbatim. Useful for data-* or aria-* - * attributes where it's impossible to enumerate all of the possible - * attribute names, - * - * Properties: object mapping DOM property name to one of the - * DOMPropertyInjection constants or null. If your attribute isn't in here, - * it won't get written to the DOM. - * - * DOMAttributeNames: object mapping React attribute name to the DOM - * attribute name. Attribute names not specified use the **lowercase** - * normalized name. - * - * DOMAttributeNamespaces: object mapping React attribute name to the DOM - * attribute namespace URL. (Attribute names not specified use no namespace.) - * - * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties. - * Property names not specified use the normalized name. - * - * DOMMutationMethods: Properties that require special mutation methods. If - * `value` is undefined, the mutation method should unset the property. - * - * @param {object} domPropertyConfig the config as described above. - */ - injectDOMPropertyConfig: function(domPropertyConfig) { - var Injection = DOMPropertyInjection - var Properties = domPropertyConfig.Properties || {} - var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {} - var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {} - var DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {} - var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {} - - if (domPropertyConfig.isCustomAttribute) { - DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute) - } - - for (var propName in Properties) { - DOMProperty.properties.hasOwnProperty(propName) - ? process.env.NODE_ENV !== 'production' - ? invariant( - false, - "injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.", - propName - ) - : _prodInvariant('48', propName) - : void 0 - - var lowerCased = propName.toLowerCase() - var propConfig = Properties[propName] - - var propertyInfo = { - attributeName: lowerCased, - attributeNamespace: null, - propertyName: propName, - mutationMethod: null, - - mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY), - hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE), - hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE), - hasPositiveNumericValue: checkMask( - propConfig, - Injection.HAS_POSITIVE_NUMERIC_VALUE - ), - hasOverloadedBooleanValue: checkMask( - propConfig, - Injection.HAS_OVERLOADED_BOOLEAN_VALUE - ), - } - !( - propertyInfo.hasBooleanValue + - propertyInfo.hasNumericValue + - propertyInfo.hasOverloadedBooleanValue <= - 1 - ) - ? process.env.NODE_ENV !== 'production' - ? invariant( - false, - 'DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s', - propName - ) - : _prodInvariant('50', propName) - : void 0 - - if (process.env.NODE_ENV !== 'production') { - DOMProperty.getPossibleStandardName[lowerCased] = propName - } - - if (DOMAttributeNames.hasOwnProperty(propName)) { - var attributeName = DOMAttributeNames[propName] - propertyInfo.attributeName = attributeName - if (process.env.NODE_ENV !== 'production') { - DOMProperty.getPossibleStandardName[attributeName] = propName - } - } - - if (DOMAttributeNamespaces.hasOwnProperty(propName)) { - propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName] - } - - if (DOMPropertyNames.hasOwnProperty(propName)) { - propertyInfo.propertyName = DOMPropertyNames[propName] - } - - if (DOMMutationMethods.hasOwnProperty(propName)) { - propertyInfo.mutationMethod = DOMMutationMethods[propName] - } - - DOMProperty.properties[propName] = propertyInfo - } - }, - } - - /* eslint-disable max-len */ - var ATTRIBUTE_NAME_START_CHAR = - ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD' - /* eslint-enable max-len */ - - /** - * DOMProperty exports lookup objects that can be used like functions: - * - * > DOMProperty.isValid['id'] - * true - * > DOMProperty.isValid['foobar'] - * undefined - * - * Although this may be confusing, it performs better in general. - * - * @see http://jsperf.com/key-exists - * @see http://jsperf.com/key-missing - */ - var DOMProperty = { - ID_ATTRIBUTE_NAME: 'data-reactid', - ROOT_ATTRIBUTE_NAME: 'data-reactroot', - - ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR, - ATTRIBUTE_NAME_CHAR: - ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040', - - /** - * Map from property "standard name" to an object with info about how to set - * the property in the DOM. Each object contains: - * - * attributeName: - * Used when rendering markup or with `*Attribute()`. - * attributeNamespace - * propertyName: - * Used on DOM node instances. (This includes properties that mutate due to - * external factors.) - * mutationMethod: - * If non-null, used instead of the property or `setAttribute()` after - * initial render. - * mustUseProperty: - * Whether the property must be accessed and mutated as an object property. - * hasBooleanValue: - * Whether the property should be removed when set to a falsey value. - * hasNumericValue: - * Whether the property must be numeric or parse as a numeric and should be - * removed when set to a falsey value. - * hasPositiveNumericValue: - * Whether the property must be positive numeric or parse as a positive - * numeric and should be removed when set to a falsey value. - * hasOverloadedBooleanValue: - * Whether the property can be used as a flag as well as with a value. - * Removed when strictly equal to false; present without a value when - * strictly equal to true; present with a value otherwise. - */ - properties: {}, - - /** - * Mapping from lowercase property names to the properly cased version, used - * to warn in the case of missing properties. Available only in __DEV__. - * - * autofocus is predefined, because adding it to the property whitelist - * causes unintended side effects. - * - * @type {Object} - */ - getPossibleStandardName: - process.env.NODE_ENV !== 'production' ? { autofocus: 'autoFocus' } : null, - - /** - * All of the isCustomAttribute() functions that have been injected. - */ - _isCustomAttributeFunctions: [], - - /** - * Checks whether a property name is a custom attribute. - * @method - */ - isCustomAttribute: function(attributeName) { - for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) { - var isCustomAttributeFn = DOMProperty._isCustomAttributeFunctions[i] - if (isCustomAttributeFn(attributeName)) { - return true - } - } - return false - }, - - injection: DOMPropertyInjection, - } - - module.exports = DOMProperty - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) - - /***/ - }, - /* 29 */ + /* 17 */ /***/ function(module, exports, __webpack_require__) { 'use strict' exports.__esModule = true exports.default = [ { - title: 'All Day Event', + id: 0, + title: 'All Day Event very long title', allDay: true, start: new Date(2015, 3, 0), end: new Date(2015, 3, 1), }, { + id: 1, title: 'Long Event', start: new Date(2015, 3, 7), end: new Date(2015, 3, 10), }, { + id: 2, title: 'DTS STARTS', start: new Date(2016, 2, 13, 0, 0, 0), end: new Date(2016, 2, 20, 0, 0, 0), }, { + id: 3, title: 'DTS ENDS', start: new Date(2016, 10, 6, 0, 0, 0), end: new Date(2016, 10, 13, 0, 0, 0), }, { + id: 4, title: 'Some Event', start: new Date(2015, 3, 9, 0, 0, 0), end: new Date(2015, 3, 9, 0, 0, 0), }, { + id: 5, title: 'Conference', start: new Date(2015, 3, 11), end: new Date(2015, 3, 13), desc: 'Big conference for important people', }, { + id: 6, title: 'Meeting', start: new Date(2015, 3, 12, 10, 30, 0, 0), end: new Date(2015, 3, 12, 12, 30, 0, 0), desc: 'Pre-meeting meeting, to prepare for the meeting', }, { + id: 7, title: 'Lunch', start: new Date(2015, 3, 12, 12, 0, 0, 0), end: new Date(2015, 3, 12, 13, 0, 0, 0), desc: 'Power lunch', }, { + id: 8, title: 'Meeting', start: new Date(2015, 3, 12, 14, 0, 0, 0), end: new Date(2015, 3, 12, 15, 0, 0, 0), }, { + id: 9, title: 'Happy Hour', start: new Date(2015, 3, 12, 17, 0, 0, 0), end: new Date(2015, 3, 12, 17, 30, 0, 0), desc: 'Most important meal of the day', }, { + id: 10, title: 'Dinner', start: new Date(2015, 3, 12, 20, 0, 0, 0), end: new Date(2015, 3, 12, 21, 0, 0, 0), }, { + id: 11, title: 'Birthday Party', start: new Date(2015, 3, 13, 7, 0, 0), end: new Date(2015, 3, 13, 10, 30, 0), }, { + id: 12, title: 'Late Night Event', start: new Date(2015, 3, 17, 19, 30, 0), end: new Date(2015, 3, 18, 2, 0, 0), }, { + id: 13, title: 'Multi-day Event', start: new Date(2015, 3, 20, 19, 30, 0), end: new Date(2015, 3, 22, 2, 0, 0), }, ] + module.exports = exports['default'] /***/ }, - /* 30 */ - /***/ function(module, exports, __webpack_require__) { - var baseIsNative = __webpack_require__(332), - getValue = __webpack_require__(369) - - /** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ - function getNative(object, key) { - var value = getValue(object, key) - return baseIsNative(value) ? value : undefined - } - - module.exports = getNative - - /***/ - }, - /* 31 */ + /* 18 */ /***/ function(module, exports) { /** * Checks if `value` is object-like. A value is object-like if it's not `null` @@ -3215,694 +1438,165 @@ /***/ }, - /* 32 */ + /* 19 */ /***/ function(module, exports, __webpack_require__) { - 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */ - - var _prodInvariant = __webpack_require__(5) - - var invariant = __webpack_require__(2) + var baseIsNative = __webpack_require__(215), + getValue = __webpack_require__(218) - /** - * Static poolers. Several custom versions for each potential number of - * arguments. A completely generic pooler is easy to implement, but would - * require accessing the `arguments` object. In each of these, `this` refers to - * the Class itself, not an instance. If any others are needed, simply add them - * here, or in their own files. - */ - var oneArgumentPooler = function(copyFieldsFrom) { - var Klass = this - if (Klass.instancePool.length) { - var instance = Klass.instancePool.pop() - Klass.call(instance, copyFieldsFrom) - return instance - } else { - return new Klass(copyFieldsFrom) - } - } - - var twoArgumentPooler = function(a1, a2) { - var Klass = this - if (Klass.instancePool.length) { - var instance = Klass.instancePool.pop() - Klass.call(instance, a1, a2) - return instance - } else { - return new Klass(a1, a2) - } - } - - var threeArgumentPooler = function(a1, a2, a3) { - var Klass = this - if (Klass.instancePool.length) { - var instance = Klass.instancePool.pop() - Klass.call(instance, a1, a2, a3) - return instance - } else { - return new Klass(a1, a2, a3) - } - } + /** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ + function getNative(object, key) { + var value = getValue(object, key) + return baseIsNative(value) ? value : undefined + } - var fourArgumentPooler = function(a1, a2, a3, a4) { - var Klass = this - if (Klass.instancePool.length) { - var instance = Klass.instancePool.pop() - Klass.call(instance, a1, a2, a3, a4) - return instance - } else { - return new Klass(a1, a2, a3, a4) - } - } + module.exports = getNative - var fiveArgumentPooler = function(a1, a2, a3, a4, a5) { - var Klass = this - if (Klass.instancePool.length) { - var instance = Klass.instancePool.pop() - Klass.call(instance, a1, a2, a3, a4, a5) - return instance - } else { - return new Klass(a1, a2, a3, a4, a5) - } - } + /***/ + }, + /* 20 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict' - var standardReleaser = function(instance) { - var Klass = this - !(instance instanceof Klass) - ? process.env.NODE_ENV !== 'production' - ? invariant(false, 'Trying to release an instance into a pool of a different type.') - : _prodInvariant('25') - : void 0 - instance.destructor() - if (Klass.instancePool.length < Klass.poolSize) { - Klass.instancePool.push(instance) - } - } + exports.__esModule = true - var DEFAULT_POOL_SIZE = 10 - var DEFAULT_POOLER = oneArgumentPooler + var _typeof = + typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' + ? function(obj) { + return typeof obj + } + : function(obj) { + return obj && + typeof Symbol === 'function' && + obj.constructor === Symbol && + obj !== Symbol.prototype + ? 'symbol' + : typeof obj + } - /** - * Augments `CopyConstructor` to be a poolable class, augmenting only the class - * itself (statically) not adding any prototypical fields. Any CopyConstructor - * you give this may have a `poolSize` property, and will look for a - * prototypical `destructor` on instances. - * - * @param {Function} CopyConstructor Constructor that can be used to reset. - * @param {Function} pooler Customizable pooler. - */ - var addPoolingTo = function(CopyConstructor, pooler) { - // Casting as any so that flow ignores the actual implementation and trusts - // it to match the type we declared - var NewKlass = CopyConstructor - NewKlass.instancePool = [] - NewKlass.getPooled = pooler || DEFAULT_POOLER - if (!NewKlass.poolSize) { - NewKlass.poolSize = DEFAULT_POOL_SIZE - } - NewKlass.release = standardReleaser - return NewKlass - } + exports.accessor = accessor + function accessor(data, field) { + var value = null - var PooledClass = { - addPoolingTo: addPoolingTo, - oneArgumentPooler: oneArgumentPooler, - twoArgumentPooler: twoArgumentPooler, - threeArgumentPooler: threeArgumentPooler, - fourArgumentPooler: fourArgumentPooler, - fiveArgumentPooler: fiveArgumentPooler, - } + if (typeof field === 'function') value = field(data) + else if ( + typeof field === 'string' && + (typeof data === 'undefined' ? 'undefined' : _typeof(data)) === + 'object' && + data != null && + field in data + ) + value = data[field] - module.exports = PooledClass - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) + return value + } /***/ }, - /* 33 */ + /* 21 */ /***/ function(module, exports, __webpack_require__) { 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright 2014-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - var _assign = __webpack_require__(6) - - var ReactCurrentOwner = __webpack_require__(22) + exports.__esModule = true + exports.endOfRange = endOfRange + exports.eventSegments = eventSegments + exports.segStyle = segStyle + exports.eventLevels = eventLevels + exports.inRange = inRange + exports.segsOverlap = segsOverlap + exports.sortEvents = sortEvents - var warning = __webpack_require__(3) - var canDefineProperty = __webpack_require__(142) - var hasOwnProperty = Object.prototype.hasOwnProperty + var _findIndex = __webpack_require__(310) - var REACT_ELEMENT_TYPE = __webpack_require__(234) + var _findIndex2 = _interopRequireDefault(_findIndex) - var RESERVED_PROPS = { - key: true, - ref: true, - __self: true, - __source: true, - } + var _dates = __webpack_require__(3) - var specialPropKeyWarningShown, specialPropRefWarningShown + var _dates2 = _interopRequireDefault(_dates) - function hasValidRef(config) { - if (process.env.NODE_ENV !== 'production') { - if (hasOwnProperty.call(config, 'ref')) { - var getter = Object.getOwnPropertyDescriptor(config, 'ref').get - if (getter && getter.isReactWarning) { - return false - } - } - } - return config.ref !== undefined - } + var _accessors = __webpack_require__(20) - function hasValidKey(config) { - if (process.env.NODE_ENV !== 'production') { - if (hasOwnProperty.call(config, 'key')) { - var getter = Object.getOwnPropertyDescriptor(config, 'key').get - if (getter && getter.isReactWarning) { - return false - } - } - } - return config.key !== undefined - } + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj } + } - function defineKeyPropWarningGetter(props, displayName) { - var warnAboutAccessingKey = function() { - if (!specialPropKeyWarningShown) { - specialPropKeyWarningShown = true - process.env.NODE_ENV !== 'production' - ? warning( - false, - '%s: `key` is not a prop. Trying to access it will result ' + - 'in `undefined` being returned. If you need to access the same ' + - 'value within the child component, you should pass it as a different ' + - 'prop. (https://fb.me/react-special-props)', - displayName - ) - : void 0 - } - } - warnAboutAccessingKey.isReactWarning = true - Object.defineProperty(props, 'key', { - get: warnAboutAccessingKey, - configurable: true, - }) - } + function endOfRange(dateRange) { + var unit = + arguments.length > 1 && arguments[1] !== undefined + ? arguments[1] + : 'day' - function defineRefPropWarningGetter(props, displayName) { - var warnAboutAccessingRef = function() { - if (!specialPropRefWarningShown) { - specialPropRefWarningShown = true - process.env.NODE_ENV !== 'production' - ? warning( - false, - '%s: `ref` is not a prop. Trying to access it will result ' + - 'in `undefined` being returned. If you need to access the same ' + - 'value within the child component, you should pass it as a different ' + - 'prop. (https://fb.me/react-special-props)', - displayName - ) - : void 0 - } - } - warnAboutAccessingRef.isReactWarning = true - Object.defineProperty(props, 'ref', { - get: warnAboutAccessingRef, - configurable: true, - }) + return { + first: dateRange[0], + last: _dates2.default.add(dateRange[dateRange.length - 1], 1, unit), } + } - /** - * Factory method to create a new React element. This no longer adheres to - * the class pattern, so do not use new to call it. Also, no instanceof check - * will work. Instead test $$typeof field against Symbol.for('react.element') to check - * if something is a React Element. - * - * @param {*} type - * @param {*} key - * @param {string|object} ref - * @param {*} self A *temporary* helper to detect places where `this` is - * different from the `owner` when React.createElement is called, so that we - * can warn. We want to get rid of owner and replace string `ref`s with arrow - * functions, and as long as `this` and owner are the same, there will be no - * change in behavior. - * @param {*} source An annotation object (added by a transpiler or otherwise) - * indicating filename, line number, and/or other information. - * @param {*} owner - * @param {*} props - * @internal - */ - var ReactElement = function(type, key, ref, self, source, owner, props) { - var element = { - // This tag allow us to uniquely identify this as a React Element - $$typeof: REACT_ELEMENT_TYPE, + function eventSegments(event, first, last, _ref, range) { + var startAccessor = _ref.startAccessor, + endAccessor = _ref.endAccessor - // Built-in properties that belong on the element - type: type, - key: key, - ref: ref, - props: props, + var slots = _dates2.default.diff(first, last, 'day') + var start = _dates2.default.max( + _dates2.default.startOf( + (0, _accessors.accessor)(event, startAccessor), + 'day' + ), + first + ) + var end = _dates2.default.min( + _dates2.default.ceil( + (0, _accessors.accessor)(event, endAccessor), + 'day' + ), + last + ) - // Record the component responsible for creating this element. - _owner: owner, - } + var padding = (0, _findIndex2.default)(range, function(x) { + return _dates2.default.eq(x, start, 'day') + }) + var span = _dates2.default.diff(start, end, 'day') - if (process.env.NODE_ENV !== 'production') { - // The validation flag is currently mutative. We put it on - // an external backing store so that we can freeze the whole object. - // This can be replaced with a WeakMap once they are implemented in - // commonly used development environments. - element._store = {} - - // To make comparing ReactElements easier for testing purposes, we make - // the validation flag non-enumerable (where possible, which should - // include every environment we run tests in), so the test framework - // ignores it. - if (canDefineProperty) { - Object.defineProperty(element._store, 'validated', { - configurable: false, - enumerable: false, - writable: true, - value: false, - }) - // self and source are DEV only properties. - Object.defineProperty(element, '_self', { - configurable: false, - enumerable: false, - writable: false, - value: self, - }) - // Two elements created in two different places should be considered - // equal for testing purposes and therefore we hide it from enumeration. - Object.defineProperty(element, '_source', { - configurable: false, - enumerable: false, - writable: false, - value: source, - }) - } else { - element._store.validated = false - element._self = self - element._source = source - } - if (Object.freeze) { - Object.freeze(element.props) - Object.freeze(element) - } - } + span = Math.min(span, slots) + span = Math.max(span, 1) - return element + return { + event: event, + span: span, + left: padding + 1, + right: Math.max(padding + span, 1), } + } - /** - * Create and return a new ReactElement of the given type. - * See https://facebook.github.io/react/docs/top-level-api.html#react.createelement - */ - ReactElement.createElement = function(type, config, children) { - var propName + function segStyle(span, slots) { + var per = span / slots * 100 + '%' + return { + WebkitFlexBasis: per, + flexBasis: per, + maxWidth: per, // IE10/11 need max-width. flex-basis doesn't respect box-sizing + } + } - // Reserved names are extracted - var props = {} + function eventLevels(rowSegments) { + var limit = + arguments.length > 1 && arguments[1] !== undefined + ? arguments[1] + : Infinity - var key = null - var ref = null - var self = null - var source = null + var i = void 0, + j = void 0, + seg = void 0, + levels = [], + extra = [] - if (config != null) { - if (hasValidRef(config)) { - ref = config.ref - } - if (hasValidKey(config)) { - key = '' + config.key - } - - self = config.__self === undefined ? null : config.__self - source = config.__source === undefined ? null : config.__source - // Remaining properties are added to a new props object - for (propName in config) { - if ( - hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) - ) { - props[propName] = config[propName] - } - } - } - - // Children can be more than one argument, and those are transferred onto - // the newly allocated props object. - var childrenLength = arguments.length - 2 - if (childrenLength === 1) { - props.children = children - } else if (childrenLength > 1) { - var childArray = Array(childrenLength) - for (var i = 0; i < childrenLength; i++) { - childArray[i] = arguments[i + 2] - } - if (process.env.NODE_ENV !== 'production') { - if (Object.freeze) { - Object.freeze(childArray) - } - } - props.children = childArray - } - - // Resolve default props - if (type && type.defaultProps) { - var defaultProps = type.defaultProps - for (propName in defaultProps) { - if (props[propName] === undefined) { - props[propName] = defaultProps[propName] - } - } - } - if (process.env.NODE_ENV !== 'production') { - if (key || ref) { - if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) { - var displayName = - typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type - if (key) { - defineKeyPropWarningGetter(props, displayName) - } - if (ref) { - defineRefPropWarningGetter(props, displayName) - } - } - } - } - return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props) - } - - /** - * Return a function that produces ReactElements of a given type. - * See https://facebook.github.io/react/docs/top-level-api.html#react.createfactory - */ - ReactElement.createFactory = function(type) { - var factory = ReactElement.createElement.bind(null, type) - // Expose the type on the factory and the prototype so that it can be - // easily accessed on elements. E.g. `.type === Foo`. - // This should not be named `constructor` since this may not be the function - // that created the element, and it may not even be a constructor. - // Legacy hook TODO: Warn if this is accessed - factory.type = type - return factory - } - - ReactElement.cloneAndReplaceKey = function(oldElement, newKey) { - var newElement = ReactElement( - oldElement.type, - newKey, - oldElement.ref, - oldElement._self, - oldElement._source, - oldElement._owner, - oldElement.props - ) - - return newElement - } - - /** - * Clone and return a new ReactElement using element as the starting point. - * See https://facebook.github.io/react/docs/top-level-api.html#react.cloneelement - */ - ReactElement.cloneElement = function(element, config, children) { - var propName - - // Original props are copied - var props = _assign({}, element.props) - - // Reserved names are extracted - var key = element.key - var ref = element.ref - // Self is preserved since the owner is preserved. - var self = element._self - // Source is preserved since cloneElement is unlikely to be targeted by a - // transpiler, and the original source is probably a better indicator of the - // true owner. - var source = element._source - - // Owner will be preserved, unless ref is overridden - var owner = element._owner - - if (config != null) { - if (hasValidRef(config)) { - // Silently steal the ref from the parent. - ref = config.ref - owner = ReactCurrentOwner.current - } - if (hasValidKey(config)) { - key = '' + config.key - } - - // Remaining properties override existing props - var defaultProps - if (element.type && element.type.defaultProps) { - defaultProps = element.type.defaultProps - } - for (propName in config) { - if ( - hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) - ) { - if (config[propName] === undefined && defaultProps !== undefined) { - // Resolve default props - props[propName] = defaultProps[propName] - } else { - props[propName] = config[propName] - } - } - } - } - - // Children can be more than one argument, and those are transferred onto - // the newly allocated props object. - var childrenLength = arguments.length - 2 - if (childrenLength === 1) { - props.children = children - } else if (childrenLength > 1) { - var childArray = Array(childrenLength) - for (var i = 0; i < childrenLength; i++) { - childArray[i] = arguments[i + 2] - } - props.children = childArray - } - - return ReactElement(element.type, key, ref, self, source, owner, props) - } - - /** - * Verifies the object is a ReactElement. - * See https://facebook.github.io/react/docs/top-level-api.html#react.isvalidelement - * @param {?object} object - * @return {boolean} True if `object` is a valid component. - * @final - */ - ReactElement.isValidElement = function(object) { - return ( - typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE - ) - } - - module.exports = ReactElement - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) - - /***/ - }, - /* 34 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - /** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */ - - /** - * WARNING: DO NOT manually require this module. - * This is a replacement for `invariant(...)` used by the error code system - * and will _only_ be required by the corresponding babel pass. - * It always throws. - */ - - function reactProdInvariant(code) { - var argCount = arguments.length - 1 - - var message = - 'Minified React error #' + - code + - '; visit ' + - 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + - code - - for (var argIdx = 0; argIdx < argCount; argIdx++) { - message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]) - } - - message += - ' for the full message or use the non-minified dev environment' + - ' for full errors and additional helpful warnings.' - - var error = new Error(message) - error.name = 'Invariant Violation' - error.framesToPop = 1 // we don't care about reactProdInvariant's own frame - - throw error - } - - module.exports = reactProdInvariant - - /***/ - }, - /* 35 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - - exports.__esModule = true - - var _typeof = - typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' - ? function(obj) { - return typeof obj - } - : function(obj) { - return obj && - typeof Symbol === 'function' && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj - } - - exports.accessor = accessor - function accessor(data, field) { - var value = null - - if (typeof field === 'function') value = field(data) - else if ( - typeof field === 'string' && - (typeof data === 'undefined' ? 'undefined' : _typeof(data)) === 'object' && - data != null && - field in data - ) - value = data[field] - - return value - } - - /***/ - }, - /* 36 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - - exports.__esModule = true - exports.endOfRange = endOfRange - exports.eventSegments = eventSegments - exports.segStyle = segStyle - exports.eventLevels = eventLevels - exports.inRange = inRange - exports.segsOverlap = segsOverlap - exports.sortEvents = sortEvents - - var _findIndex = __webpack_require__(411) - - var _findIndex2 = _interopRequireDefault(_findIndex) - - var _dates = __webpack_require__(9) - - var _dates2 = _interopRequireDefault(_dates) - - var _accessors = __webpack_require__(35) - - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj } - } - - function endOfRange(dateRange) { - var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'day' - - return { - first: dateRange[0], - last: _dates2.default.add(dateRange[dateRange.length - 1], 1, unit), - } - } - - function eventSegments(event, first, last, _ref, range) { - var startAccessor = _ref.startAccessor, - endAccessor = _ref.endAccessor - - var slots = _dates2.default.diff(first, last, 'day') - var start = _dates2.default.max( - _dates2.default.startOf((0, _accessors.accessor)(event, startAccessor), 'day'), - first - ) - var end = _dates2.default.min( - _dates2.default.ceil((0, _accessors.accessor)(event, endAccessor), 'day'), - last - ) - - var padding = (0, _findIndex2.default)(range, function(x) { - return _dates2.default.eq(x, start, 'day') - }) - var span = _dates2.default.diff(start, end, 'day') - - span = Math.min(span, slots) - span = Math.max(span, 1) - - return { - event: event, - span: span, - left: padding + 1, - right: Math.max(padding + span, 1), - } - } - - function segStyle(span, slots) { - var per = span / slots * 100 + '%' - return { WebkitFlexBasis: per, flexBasis: per, maxWidth: per } // IE10/11 need max-width. flex-basis doesn't respect box-sizing - } - - function eventLevels(rowSegments) { - var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Infinity - - var i = void 0, - j = void 0, - seg = void 0, - levels = [], - extra = [] - - for (i = 0; i < rowSegments.length; i++) { - seg = rowSegments[i] + for (i = 0; i < rowSegments.length; i++) { + seg = rowSegments[i] for (j = 0; j < levels.length; j++) { if (!segsOverlap(seg, levels[j])) break @@ -3927,11 +1621,17 @@ var startAccessor = _ref2.startAccessor, endAccessor = _ref2.endAccessor - var eStart = _dates2.default.startOf((0, _accessors.accessor)(e, startAccessor), 'day') + var eStart = _dates2.default.startOf( + (0, _accessors.accessor)(e, startAccessor), + 'day' + ) var eEnd = (0, _accessors.accessor)(e, endAccessor) var startsBeforeEnd = _dates2.default.lte(eStart, end, 'day') - var endsAfterStart = _dates2.default.gte(eEnd, start, 'day') + // when the event is zero duration we need to handle a bit differently + var endsAfterStart = !_dates2.default.eq(eStart, eEnd) + ? _dates2.default.gt(eEnd, start, 'day') + : _dates2.default.gte(eEnd, start, 'day') return startsBeforeEnd && endsAfterStart } @@ -3948,18 +1648,30 @@ allDayAccessor = _ref3.allDayAccessor var startSort = - +_dates2.default.startOf((0, _accessors.accessor)(evtA, startAccessor), 'day') - - +_dates2.default.startOf((0, _accessors.accessor)(evtB, startAccessor), 'day') + +_dates2.default.startOf( + (0, _accessors.accessor)(evtA, startAccessor), + 'day' + ) - + +_dates2.default.startOf( + (0, _accessors.accessor)(evtB, startAccessor), + 'day' + ) var durA = _dates2.default.diff( (0, _accessors.accessor)(evtA, startAccessor), - _dates2.default.ceil((0, _accessors.accessor)(evtA, endAccessor), 'day'), + _dates2.default.ceil( + (0, _accessors.accessor)(evtA, endAccessor), + 'day' + ), 'day' ) var durB = _dates2.default.diff( (0, _accessors.accessor)(evtB, startAccessor), - _dates2.default.ceil((0, _accessors.accessor)(evtB, endAccessor), 'day'), + _dates2.default.ceil( + (0, _accessors.accessor)(evtB, endAccessor), + 'day' + ), 'day' ) @@ -3975,22 +1687,177 @@ /***/ }, - /* 37 */ + /* 22 */ /***/ function(module, exports, __webpack_require__) { - var root = __webpack_require__(19) + 'use strict' + /* +object-assign +(c) Sindre Sorhus +@license MIT +*/ - /** Built-in value references. */ - var Symbol = root.Symbol + /* eslint-disable no-unused-vars */ + var getOwnPropertySymbols = Object.getOwnPropertySymbols + var hasOwnProperty = Object.prototype.hasOwnProperty + var propIsEnumerable = Object.prototype.propertyIsEnumerable - module.exports = Symbol + function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError( + 'Object.assign cannot be called with null or undefined' + ) + } + + return Object(val) + } + + function shouldUseNative() { + try { + if (!Object.assign) { + return false + } + + // Detect buggy property enumeration order in older V8 versions. + + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc') // eslint-disable-line no-new-wrappers + test1[5] = 'de' + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {} + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i + } + var order2 = Object.getOwnPropertyNames(test2).map(function(n) { + return test2[n] + }) + if (order2.join('') !== '0123456789') { + return false + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {} + 'abcdefghijklmnopqrst'.split('').forEach(function(letter) { + test3[letter] = letter + }) + if ( + Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst' + ) { + return false + } + + return true + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false + } + } + + module.exports = shouldUseNative() + ? Object.assign + : function(target, source) { + var from + var to = toObject(target) + var symbols + + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]) + + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key] + } + } + + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from) + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]] + } + } + } + } + + return to + } /***/ }, - /* 38 */ + /* 23 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict' + /* WEBPACK VAR INJECTION */ ;(function(process) { + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + /** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ + + var validateFormat = function validateFormat(format) {} + + if (process.env.NODE_ENV !== 'production') { + validateFormat = function validateFormat(format) { + if (format === undefined) { + throw new Error('invariant requires an error message argument') + } + } + } + + function invariant(condition, format, a, b, c, d, e, f) { + validateFormat(format) + + if (!condition) { + var error + if (format === undefined) { + error = new Error( + 'Minified exception occurred; use the non-minified dev environment ' + + 'for the full error message and additional helpful warnings.' + ) + } else { + var args = [a, b, c, d, e, f] + var argIndex = 0 + error = new Error( + format.replace(/%s/g, function() { + return args[argIndex++] + }) + ) + error.name = 'Invariant Violation' + } + + error.framesToPop = 1 // we don't care about invariant's own frame + throw error + } + } + + module.exports = invariant + /* WEBPACK VAR INJECTION */ + }.call(exports, __webpack_require__(2))) + + /***/ + }, + /* 24 */ /***/ function(module, exports, __webpack_require__) { - var Symbol = __webpack_require__(37), - getRawTag = __webpack_require__(368), - objectToString = __webpack_require__(396) + var Symbol = __webpack_require__(25), + getRawTag = __webpack_require__(196), + objectToString = __webpack_require__(197) /** `Object#toString` result references. */ var nullTag = '[object Null]', @@ -4019,32 +1886,33 @@ /***/ }, - /* 39 */ + /* 25 */ /***/ function(module, exports, __webpack_require__) { - var identity = __webpack_require__(114), - overRest = __webpack_require__(190), - setToString = __webpack_require__(191) + var root = __webpack_require__(11) - /** - * The base implementation of `_.rest` which doesn't validate or coerce arguments. - * - * @private - * @param {Function} func The function to apply a rest parameter to. - * @param {number} [start=func.length-1] The start position of the rest parameter. - * @returns {Function} Returns the new function. - */ - function baseRest(func, start) { - return setToString(overRest(func, start, identity), func + '') - } + /** Built-in value references. */ + var Symbol = root.Symbol - module.exports = baseRest + module.exports = Symbol /***/ }, - /* 40 */ + /* 26 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict' + + module.exports = !!( + typeof window !== 'undefined' && + window.document && + window.document.createElement + ) + + /***/ + }, + /* 27 */ /***/ function(module, exports, __webpack_require__) { - var assignValue = __webpack_require__(170), - baseAssignValue = __webpack_require__(103) + var assignValue = __webpack_require__(163), + baseAssignValue = __webpack_require__(93) /** * Copies properties of `source` to `object`. @@ -4086,452 +1954,334 @@ /***/ }, - /* 41 */ + /* 28 */ /***/ function(module, exports, __webpack_require__) { - 'use strict' + var identity = __webpack_require__(86), + overRest = __webpack_require__(168), + setToString = __webpack_require__(170) + /** - * Copyright 2015-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * The base implementation of `_.rest` which doesn't validate or coerce arguments. * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. */ + function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + '') + } - var DOMNamespaces = __webpack_require__(125) - var setInnerHTML = __webpack_require__(81) + module.exports = baseRest - var createMicrosoftUnsafeLocalFunction = __webpack_require__(132) - var setTextContent = __webpack_require__(229) + /***/ + }, + /* 29 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict' - var ELEMENT_NODE_TYPE = 1 - var DOCUMENT_FRAGMENT_NODE_TYPE = 11 + Object.defineProperty(exports, '__esModule', { + value: true, + }) - /** - * In IE (8-11) and Edge, appending nodes with no children is dramatically - * faster than appending a full subtree, so we essentially queue up the - * .appendChild calls here and apply them so each node is added to its parent - * before any children are added. - * - * In other browsers, doing so is slower or neutral compared to the other order - * (in Firefox, twice as slow) so we only do this inversion in IE. - * - * See https://github.com/spicyj/innerhtml-vs-createelement-vs-clonenode. - */ - var enableLazy = - (typeof document !== 'undefined' && typeof document.documentMode === 'number') || - (typeof navigator !== 'undefined' && - typeof navigator.userAgent === 'string' && - /\bEdge\/\d/.test(navigator.userAgent)) - - function insertTreeChildren(tree) { - if (!enableLazy) { - return - } - var node = tree.node - var children = tree.children - if (children.length) { - for (var i = 0; i < children.length; i++) { - insertTreeBefore(node, children[i], null) - } - } else if (tree.html != null) { - setInnerHTML(node, tree.html) - } else if (tree.text != null) { - setTextContent(node, tree.text) - } - } + var _DragDropContext = __webpack_require__(177) - var insertTreeBefore = createMicrosoftUnsafeLocalFunction(function( - parentNode, - tree, - referenceNode - ) { - // DocumentFragments aren't actually part of the DOM after insertion so - // appending children won't update the DOM. We need to ensure the fragment - // is properly populated first, breaking out of our lazy approach for just - // this level. Also, some plugins (like Flash Player) will read - // nodes immediately upon insertion into the DOM, so - // must also be populated prior to insertion into the DOM. - if ( - tree.node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE || - (tree.node.nodeType === ELEMENT_NODE_TYPE && - tree.node.nodeName.toLowerCase() === 'object' && - (tree.node.namespaceURI == null || tree.node.namespaceURI === DOMNamespaces.html)) - ) { - insertTreeChildren(tree) - parentNode.insertBefore(tree.node, referenceNode) - } else { - parentNode.insertBefore(tree.node, referenceNode) - insertTreeChildren(tree) - } + Object.defineProperty(exports, 'DragDropContext', { + enumerable: true, + get: function get() { + return _interopRequireDefault(_DragDropContext).default + }, }) - function replaceChildWithTree(oldNode, newTree) { - oldNode.parentNode.replaceChild(newTree.node, oldNode) - insertTreeChildren(newTree) - } + var _DragDropContextProvider = __webpack_require__(417) - function queueChild(parentTree, childTree) { - if (enableLazy) { - parentTree.children.push(childTree) - } else { - parentTree.node.appendChild(childTree.node) - } - } + Object.defineProperty(exports, 'DragDropContextProvider', { + enumerable: true, + get: function get() { + return _interopRequireDefault(_DragDropContextProvider).default + }, + }) - function queueHTML(tree, html) { - if (enableLazy) { - tree.html = html - } else { - setInnerHTML(tree.node, html) - } - } + var _DragLayer = __webpack_require__(418) - function queueText(tree, text) { - if (enableLazy) { - tree.text = text - } else { - setTextContent(tree.node, text) - } - } + Object.defineProperty(exports, 'DragLayer', { + enumerable: true, + get: function get() { + return _interopRequireDefault(_DragLayer).default + }, + }) - function toString() { - return this.node.nodeName - } + var _DragSource = __webpack_require__(419) - function DOMLazyTree(node) { - return { - node: node, - children: [], - html: null, - text: null, - toString: toString, - } - } + Object.defineProperty(exports, 'DragSource', { + enumerable: true, + get: function get() { + return _interopRequireDefault(_DragSource).default + }, + }) - DOMLazyTree.insertTreeBefore = insertTreeBefore - DOMLazyTree.replaceChildWithTree = replaceChildWithTree - DOMLazyTree.queueChild = queueChild - DOMLazyTree.queueHTML = queueHTML - DOMLazyTree.queueText = queueText + var _DropTarget = __webpack_require__(429) + + Object.defineProperty(exports, 'DropTarget', { + enumerable: true, + get: function get() { + return _interopRequireDefault(_DropTarget).default + }, + }) - module.exports = DOMLazyTree + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj } + } /***/ }, - /* 42 */ + /* 30 */ /***/ function(module, exports, __webpack_require__) { 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { + /* WEBPACK VAR INJECTION */ ;(function(process) { /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ - var ReactRef = __webpack_require__(491) - var ReactInstrumentation = __webpack_require__(17) + var emptyObject = {} + + if (process.env.NODE_ENV !== 'production') { + Object.freeze(emptyObject) + } - var warning = __webpack_require__(3) + module.exports = emptyObject + /* WEBPACK VAR INJECTION */ + }.call(exports, __webpack_require__(2))) + /***/ + }, + /* 31 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict' + /* WEBPACK VAR INJECTION */ ;(function(process) { /** - * Helper to call ReactRef.attachRefs with this composite component, split out - * to avoid allocations in the transaction mount-ready queue. + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * */ - function attachRefs() { - ReactRef.attachRefs(this, this._currentElement) - } - var ReactReconciler = { - /** - * Initializes the component, renders markup, and registers event listeners. - * - * @param {ReactComponent} internalInstance - * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction - * @param {?object} the containing host component instance - * @param {?object} info about the host container - * @return {?string} Rendered markup to be inserted into the DOM. - * @final - * @internal - */ - mountComponent: function( - internalInstance, - transaction, - hostParent, - hostContainerInfo, - context, - parentDebugID // 0 in production and for roots - ) { - if (process.env.NODE_ENV !== 'production') { - if (internalInstance._debugID !== 0) { - ReactInstrumentation.debugTool.onBeforeMountComponent( - internalInstance._debugID, - internalInstance._currentElement, - parentDebugID - ) - } + var emptyFunction = __webpack_require__(15) + + /** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ + + var warning = emptyFunction + + if (process.env.NODE_ENV !== 'production') { + var printWarning = function printWarning(format) { + for ( + var _len = arguments.length, + args = Array(_len > 1 ? _len - 1 : 0), + _key = 1; + _key < _len; + _key++ + ) { + args[_key - 1] = arguments[_key] } - var markup = internalInstance.mountComponent( - transaction, - hostParent, - hostContainerInfo, - context, - parentDebugID - ) - if (internalInstance._currentElement && internalInstance._currentElement.ref != null) { - transaction.getReactMountReady().enqueue(attachRefs, internalInstance) + + var argIndex = 0 + var message = + 'Warning: ' + + format.replace(/%s/g, function() { + return args[argIndex++] + }) + if (typeof console !== 'undefined') { + console.error(message) } - if (process.env.NODE_ENV !== 'production') { - if (internalInstance._debugID !== 0) { - ReactInstrumentation.debugTool.onMountComponent(internalInstance._debugID) - } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message) + } catch (x) {} + } + + warning = function warning(condition, format) { + if (format === undefined) { + throw new Error( + '`warning(condition, format, ...args)` requires a warning ' + + 'message argument' + ) } - return markup - }, - /** - * Returns a value that can be passed to - * ReactComponentEnvironment.replaceNodeWithMarkup. - */ - getHostNode: function(internalInstance) { - return internalInstance.getHostNode() - }, - - /** - * Releases any resources allocated by `mountComponent`. - * - * @final - * @internal - */ - unmountComponent: function(internalInstance, safely) { - if (process.env.NODE_ENV !== 'production') { - if (internalInstance._debugID !== 0) { - ReactInstrumentation.debugTool.onBeforeUnmountComponent(internalInstance._debugID) - } - } - ReactRef.detachRefs(internalInstance, internalInstance._currentElement) - internalInstance.unmountComponent(safely) - if (process.env.NODE_ENV !== 'production') { - if (internalInstance._debugID !== 0) { - ReactInstrumentation.debugTool.onUnmountComponent(internalInstance._debugID) - } - } - }, - - /** - * Update a component using a new element. - * - * @param {ReactComponent} internalInstance - * @param {ReactElement} nextElement - * @param {ReactReconcileTransaction} transaction - * @param {object} context - * @internal - */ - receiveComponent: function(internalInstance, nextElement, transaction, context) { - var prevElement = internalInstance._currentElement - - if (nextElement === prevElement && context === internalInstance._context) { - // Since elements are immutable after the owner is rendered, - // we can do a cheap identity compare here to determine if this is a - // superfluous reconcile. It's possible for state to be mutable but such - // change should trigger an update of the owner which would recreate - // the element. We explicitly check for the existence of an owner since - // it's possible for an element created outside a composite to be - // deeply mutated and reused. - - // TODO: Bailing out early is just a perf optimization right? - // TODO: Removing the return statement should affect correctness? - return - } - - if (process.env.NODE_ENV !== 'production') { - if (internalInstance._debugID !== 0) { - ReactInstrumentation.debugTool.onBeforeUpdateComponent( - internalInstance._debugID, - nextElement - ) - } - } - - var refsChanged = ReactRef.shouldUpdateRefs(prevElement, nextElement) - - if (refsChanged) { - ReactRef.detachRefs(internalInstance, prevElement) - } - - internalInstance.receiveComponent(nextElement, transaction, context) - - if ( - refsChanged && - internalInstance._currentElement && - internalInstance._currentElement.ref != null - ) { - transaction.getReactMountReady().enqueue(attachRefs, internalInstance) + if (format.indexOf('Failed Composite propType: ') === 0) { + return // Ignore CompositeComponent proptype check. } - if (process.env.NODE_ENV !== 'production') { - if (internalInstance._debugID !== 0) { - ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID) + if (!condition) { + for ( + var _len2 = arguments.length, + args = Array(_len2 > 2 ? _len2 - 2 : 0), + _key2 = 2; + _key2 < _len2; + _key2++ + ) { + args[_key2 - 2] = arguments[_key2] } - } - }, - /** - * Flush any dirty changes in a component. - * - * @param {ReactComponent} internalInstance - * @param {ReactReconcileTransaction} transaction - * @internal - */ - performUpdateIfNecessary: function(internalInstance, transaction, updateBatchNumber) { - if (internalInstance._updateBatchNumber !== updateBatchNumber) { - // The component's enqueued batch number should always be the current - // batch or the following one. - process.env.NODE_ENV !== 'production' - ? warning( - internalInstance._updateBatchNumber == null || - internalInstance._updateBatchNumber === updateBatchNumber + 1, - 'performUpdateIfNecessary: Unexpected batch number (current %s, ' + - 'pending %s)', - updateBatchNumber, - internalInstance._updateBatchNumber - ) - : void 0 - return - } - if (process.env.NODE_ENV !== 'production') { - if (internalInstance._debugID !== 0) { - ReactInstrumentation.debugTool.onBeforeUpdateComponent( - internalInstance._debugID, - internalInstance._currentElement - ) - } - } - internalInstance.performUpdateIfNecessary(transaction) - if (process.env.NODE_ENV !== 'production') { - if (internalInstance._debugID !== 0) { - ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID) - } + printWarning.apply(undefined, [format].concat(args)) } - }, + } } - module.exports = ReactReconciler + module.exports = warning /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) + }.call(exports, __webpack_require__(2))) /***/ }, - /* 43 */ + /* 32 */ /***/ function(module, exports, __webpack_require__) { - 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ + var arrayLikeKeys = __webpack_require__(107), + baseKeys = __webpack_require__(201), + isArrayLike = __webpack_require__(42) - var _assign = __webpack_require__(6) - - var ReactChildren = __webpack_require__(529) - var ReactComponent = __webpack_require__(139) - var ReactPureComponent = __webpack_require__(533) - var ReactClass = __webpack_require__(530) - var ReactDOMFactories = __webpack_require__(531) - var ReactElement = __webpack_require__(33) - var ReactPropTypes = __webpack_require__(532) - var ReactVersion = __webpack_require__(534) + /** + * Creates an array of the own enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. See the + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * for more details. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keys(new Foo); + * // => ['a', 'b'] (iteration order is not guaranteed) + * + * _.keys('hi'); + * // => ['0', '1'] + */ + function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object) + } - var onlyChild = __webpack_require__(536) - var warning = __webpack_require__(3) + module.exports = keys - var createElement = ReactElement.createElement - var createFactory = ReactElement.createFactory - var cloneElement = ReactElement.cloneElement + /***/ + }, + /* 33 */ + /***/ function(module, exports) { + /** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ + function eq(value, other) { + return value === other || (value !== value && other !== other) + } - if (process.env.NODE_ENV !== 'production') { - var ReactElementValidator = __webpack_require__(235) - createElement = ReactElementValidator.createElement - createFactory = ReactElementValidator.createFactory - cloneElement = ReactElementValidator.cloneElement - } + module.exports = eq - var __spread = _assign + /***/ + }, + /* 34 */ + /***/ function(module, exports) { + /** + * A specialized version of `_.map` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ + function arrayMap(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length, + result = Array(length) - if (process.env.NODE_ENV !== 'production') { - var warned = false - __spread = function() { - process.env.NODE_ENV !== 'production' - ? warning( - warned, - 'React.__spread is deprecated and should not be used. Use ' + - 'Object.assign directly or another helper function with similar ' + - 'semantics. You may be seeing this warning due to your compiler. ' + - 'See https://fb.me/react-spread-deprecation for more details.' - ) - : void 0 - warned = true - return _assign.apply(null, arguments) - } + while (++index < length) { + result[index] = iteratee(array[index], index, array) } + return result + } - var React = { - // Modern - - Children: { - map: ReactChildren.map, - forEach: ReactChildren.forEach, - count: ReactChildren.count, - toArray: ReactChildren.toArray, - only: onlyChild, - }, - - Component: ReactComponent, - PureComponent: ReactPureComponent, - - createElement: createElement, - cloneElement: cloneElement, - isValidElement: ReactElement.isValidElement, - - // Classic - - PropTypes: ReactPropTypes, - createClass: ReactClass.createClass, - createFactory: createFactory, - createMixin: function(mixin) { - // Currently a noop. Will be used to validate and trace mixins. - return mixin - }, + module.exports = arrayMap - // This looks DOM specific but these are actually isomorphic helpers - // since they are just generating DOM strings. - DOM: ReactDOMFactories, + /***/ + }, + /* 35 */ + /***/ function(module, exports, __webpack_require__) { + var isSymbol = __webpack_require__(51) - version: ReactVersion, + /** Used as references for various `Number` constants. */ + var INFINITY = 1 / 0 - // Deprecated hook for JSX spread, don't use this for anything. - __spread: __spread, + /** + * Converts `value` to a string key if it's not a string or symbol. + * + * @private + * @param {*} value The value to inspect. + * @returns {string|symbol} Returns the key. + */ + function toKey(value) { + if (typeof value == 'string' || isSymbol(value)) { + return value } + var result = value + '' + return result == '0' && 1 / value == -INFINITY ? '-0' : result + } - module.exports = React - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) + module.exports = toKey /***/ }, - /* 44 */ + /* 36 */ /***/ function(module, exports, __webpack_require__) { /*! * Globalize @@ -4603,7 +2353,7 @@ // which serves as the default calendar in use by that culture. // 3. Each culture should have a ".calendar" object which is the current calendar being used, // it may be dynamically changed at any time to one of the calendars in ".calendars". - Globalize.cultures.default = { + Globalize.cultures['default'] = { // A unique name for the culture in the form - name: 'en', // the name of the culture in the english language @@ -4829,9 +2579,10 @@ messages: {}, } - Globalize.cultures.default.calendar = Globalize.cultures.default.calendars.standard + Globalize.cultures['default'].calendar = + Globalize.cultures['default'].calendars.standard - Globalize.cultures.en = Globalize.cultures.default + Globalize.cultures.en = Globalize.cultures['default'] Globalize.cultureSelector = 'en' @@ -4903,7 +2654,11 @@ } // Recurse if we're merging plain objects or arrays - if (deep && copy && (isObject(copy) || (copyIsArray = isArray(copy)))) { + if ( + deep && + copy && + (isObject(copy) || (copyIsArray = isArray(copy))) + ) { if (copyIsArray) { copyIsArray = false clone = src && isArray(src) ? src : [] @@ -5141,7 +2896,9 @@ var part = getPart(value, 1) ret.push( cal.monthsGenitive && hasDay() - ? cal.monthsGenitive[clength === 3 ? 'namesAbbr' : 'names'][part] + ? cal.monthsGenitive[clength === 3 ? 'namesAbbr' : 'names'][ + part + ] : cal.months[clength === 3 ? 'namesAbbr' : 'names'][part] ) break @@ -5195,7 +2952,10 @@ // One character am/pm indicator ("a" or "p") case 'tt': // Multicharacter am/pm indicator - part = value.getHours() < 12 ? (cal.AM ? cal.AM[0] : ' ') : cal.PM ? cal.PM[0] : ' ' + part = + value.getHours() < 12 + ? cal.AM ? cal.AM[0] : ' ' + : cal.PM ? cal.PM[0] : ' ' ret.push(clength === 1 ? part.charAt(0) : part) break case 'f': @@ -5204,14 +2964,19 @@ // Centiseconds case 'fff': // Milliseconds - ret.push(padZeros(value.getMilliseconds(), 3).substr(0, clength)) + ret.push( + padZeros(value.getMilliseconds(), 3).substr(0, clength) + ) break case 'z': // Time zone offset, no leading zero case 'zz': // Time zone offset with leading zero hour = value.getTimezoneOffset() / 60 - ret.push((hour <= 0 ? '+' : '-') + padZeros(Math.floor(Math.abs(hour)), clength)) + ret.push( + (hour <= 0 ? '+' : '-') + + padZeros(Math.floor(Math.abs(hour)), clength) + ) break case 'zzz': // Time zone offset with leading zero @@ -5281,7 +3046,9 @@ if (precision > 0) { right = formatInfo['.'] + - (right.length > precision ? right.slice(0, precision) : zeroPad(right, precision)) + (right.length > precision + ? right.slice(0, precision) + : zeroPad(right, precision)) } else { right = '' } @@ -5293,7 +3060,8 @@ while (stringIndex >= 0) { if (curSize === 0 || curSize > stringIndex) { return ( - numberString.slice(0, stringIndex + 1) + (ret.length ? sep + ret + right : right) + numberString.slice(0, stringIndex + 1) + + (ret.length ? sep + ret + right : right) ) } ret = @@ -5319,10 +3087,12 @@ if (value === -Infinity) { return culture.numberFormat.negativeInfinity } - return culture.numberFormat.NaN + return culture.numberFormat['NaN'] } if (!format || format === 'i') { - return culture.name.length ? value.toLocaleString() : value.toString() + return culture.name.length + ? value.toLocaleString() + : value.toString() } format = format || 'D' @@ -5352,9 +3122,16 @@ /* falls through */ case 'P': formatInfo = formatInfo || nf.percent - pattern = value < 0 ? formatInfo.pattern[0] : formatInfo.pattern[1] || 'n' + pattern = + value < 0 + ? formatInfo.pattern[0] + : formatInfo.pattern[1] || 'n' if (precision === -1) precision = formatInfo.decimals - number = expandNumber(number * (current === 'P' ? 100 : 1), precision, formatInfo) + number = expandNumber( + number * (current === 'P' ? 100 : 1), + precision, + formatInfo + ) break default: throw 'Bad number format specifier: ' + current @@ -5442,7 +3219,8 @@ twoDigitYearMax = cal.twoDigitYearMax twoDigitYearMax = typeof twoDigitYearMax === 'string' - ? new Date().getFullYear() % 100 + parseInt(twoDigitYearMax, 10) + ? new Date().getFullYear() % 100 + + parseInt(twoDigitYearMax, 10) : twoDigitYearMax year += curr - curr % 100 if (year > twoDigitYearMax) { @@ -5493,7 +3271,10 @@ value = toUpper(value) var i = arrayIndexOf(abbr ? upperMonths[1] : upperMonths[0], value) if (i < 0) { - i = arrayIndexOf(abbr ? upperMonthsGen[1] : upperMonthsGen[0], value) + i = arrayIndexOf( + abbr ? upperMonthsGen[1] : upperMonthsGen[0], + value + ) } return i } @@ -5751,7 +3532,8 @@ var minOffset = parseInt(offsets[1], 10) if (outOfRange(minOffset, 0, 59)) return null tzMinOffset = - hourOffset * 60 + (startsWith(matchGroup, '-') ? -minOffset : minOffset) + hourOffset * 60 + + (startsWith(matchGroup, '-') ? -minOffset : minOffset) break case 'z': case 'zz': @@ -5780,7 +3562,9 @@ var result = new Date(), defaultYear, convert = cal.convert - defaultYear = convert ? convert.fromGregorian(result)[0] : result.getFullYear() + defaultYear = convert + ? convert.fromGregorian(result)[0] + : result.getFullYear() if (year === null) { year = defaultYear } else if (cal.eras) { @@ -5820,11 +3604,15 @@ result.setHours(hour, min, sec, msec) if (tzMinOffset !== null) { // adjust timezone to utc before applying local offset. - var adjustedMin = result.getMinutes() - (tzMinOffset + result.getTimezoneOffset()) + var adjustedMin = + result.getMinutes() - (tzMinOffset + result.getTimezoneOffset()) // Safari limits hours and minutes to the range of -127 to 127. We need to use setHours // to ensure both these fields will not exceed this range. adjustedMin will range // somewhere between -1440 and 1500, so we only need to split this into hours. - result.setHours(result.getHours() + parseInt(adjustedMin / 60, 10), adjustedMin % 60) + result.setHours( + result.getHours() + parseInt(adjustedMin / 60, 10), + adjustedMin % 60 + ) } return result } @@ -5886,7 +3674,11 @@ return Globalize.parseInt.call(this, value, radix, cultureSelector) } - Globalize.prototype.parseFloat = function(value, radix, cultureSelector) { + Globalize.prototype.parseFloat = function( + value, + radix, + cultureSelector + ) { return Globalize.parseFloat.call(this, value, radix, cultureSelector) } @@ -5898,7 +3690,11 @@ // public singleton functions // - Globalize.addCultureInfo = function(cultureName, baseCultureName, info) { + Globalize.addCultureInfo = function( + cultureName, + baseCultureName, + info + ) { var base = {}, isNew = false @@ -5914,7 +3710,7 @@ // If specified culture does not exist, create by deep-extending default info = baseCultureName isNew = this.cultures[cultureName] == null - base = this.cultures[cultureName] || this.cultures.default + base = this.cultures[cultureName] || this.cultures['default'] } else { // cultureName and baseCultureName specified. Assume a new culture is being created // by deep-extending an specified base culture @@ -5925,14 +3721,19 @@ this.cultures[cultureName] = extend(true, {}, base, info) // Make the standard calendar the current culture if it's a new culture if (isNew) { - this.cultures[cultureName].calendar = this.cultures[cultureName].calendars.standard + this.cultures[cultureName].calendar = this.cultures[ + cultureName + ].calendars.standard } } Globalize.findClosestCulture = function(name) { var match if (!name) { - return this.findClosestCulture(this.cultureSelector) || this.cultures.default + return ( + this.findClosestCulture(this.cultureSelector) || + this.cultures['default'] + ) } if (typeof name === 'string') { name = name.split(',') @@ -6026,7 +3827,7 @@ Globalize.localize = function(key, cultureSelector) { return ( this.findClosestCulture(cultureSelector).messages[key] || - this.cultures.default.messages[key] + this.cultures['default'].messages[key] ) } @@ -6081,7 +3882,10 @@ // remove currency symbol value = value.replace(culture.numberFormat.currency.symbol, '') // replace decimal seperator - value = value.replace(culture.numberFormat.currency['.'], culture.numberFormat['.']) + value = value.replace( + culture.numberFormat.currency['.'], + culture.numberFormat['.'] + ) } //Remove percentage character from number string before parsing @@ -6173,3040 +3977,2270 @@ this.cultureSelector = cultureSelector } // getter - return this.findClosestCulture(cultureSelector) || this.cultures.default + return ( + this.findClosestCulture(cultureSelector) || this.cultures['default'] + ) } })(this) /***/ }, - /* 45 */ + /* 37 */ /***/ function(module, exports, __webpack_require__) { 'use strict' - Object.defineProperty(exports, '__esModule', { - value: true, - }) - exports.default = getWindow - function getWindow(node) { + exports.__esModule = true + exports.notify = notify + exports.instanceId = instanceId + exports.isFirstFocusedRender = isFirstFocusedRender + var idCount = 0 + + function uniqueId(prefix) { + return '' + ((prefix == null ? '' : prefix) + ++idCount) + } + + function notify(handler, args) { + handler && handler.apply(null, [].concat(args)) + } + + function instanceId(component) { + var suffix = + arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '' + + component.__id || (component.__id = uniqueId('rw_')) + return (component.props.id || component.__id) + suffix + } + + function isFirstFocusedRender(component) { + return ( + component._firstFocus || + (component.state.focused && (component._firstFocus = true)) + ) + } + + /***/ + }, + /* 38 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict' + + module.exports = function getWindow(node) { return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false } - module.exports = exports.default /***/ }, - /* 46 */ + /* 39 */ /***/ function(module, exports, __webpack_require__) { 'use strict' - Object.defineProperty(exports, '__esModule', { - value: true, - }) - exports.default = offset + exports.__esModule = true + exports.isSelected = isSelected + exports.slotWidth = slotWidth + exports.getCellAtX = getCellAtX + exports.pointInBox = pointInBox + exports.dateCellSelection = dateCellSelection + function isSelected(event, selected) { + if (!event || selected == null) return false + return [].concat(selected).indexOf(event) !== -1 + } - var _contains = __webpack_require__(60) + function slotWidth(rowBox, slots) { + var rowWidth = rowBox.right - rowBox.left + var cellWidth = rowWidth / slots - var _contains2 = _interopRequireDefault(_contains) + return cellWidth + } - var _isWindow = __webpack_require__(45) + function getCellAtX(rowBox, x, cellWidth, rtl, slots) { + return rtl + ? slots - 1 - Math.floor((x - rowBox.left) / cellWidth) + : Math.floor((x - rowBox.left) / cellWidth) + } - var _isWindow2 = _interopRequireDefault(_isWindow) + function pointInBox(box, _ref) { + var x = _ref.x, + y = _ref.y - var _ownerDocument = __webpack_require__(93) + return ( + y >= box.top && y <= box.bottom && x >= box.left && x <= box.right + ) + } - var _ownerDocument2 = _interopRequireDefault(_ownerDocument) + function dateCellSelection(start, rowBox, box, slots, rtl) { + var startIdx = -1 + var endIdx = -1 + var lastSlotIdx = slots - 1 - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj } - } + var cellWidth = slotWidth(rowBox, slots) - function offset(node) { - var doc = (0, _ownerDocument2.default)(node), - win = (0, _isWindow2.default)(doc), - docElem = doc && doc.documentElement, - box = { top: 0, left: 0, height: 0, width: 0 } + // cell under the mouse + var currentSlot = getCellAtX(rowBox, box.x, cellWidth, rtl, slots) - if (!doc) return + // Identify row as either the initial row + // or the row under the current mouse point + var isCurrentRow = rowBox.top < box.y && rowBox.bottom > box.y + var isStartRow = rowBox.top < start.y && rowBox.bottom > start.y - // Make sure it's not a disconnected DOM node - if (!(0, _contains2.default)(docElem, node)) return box + // this row's position relative to the start point + var isAboveStart = start.y > rowBox.bottom + var isBelowStart = rowBox.top > start.y + var isBetween = box.top < rowBox.top && box.bottom > rowBox.bottom + + // this row is between the current and start rows, so entirely selected + if (isBetween) { + startIdx = 0 + endIdx = lastSlotIdx + } - if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect() + if (isCurrentRow) { + if (isBelowStart) { + startIdx = 0 + endIdx = currentSlot + } else if (isAboveStart) { + startIdx = currentSlot + endIdx = lastSlotIdx + } + } - // IE8 getBoundingClientRect doesn't support width & height - box = { - top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0), - left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0), - width: (box.width == null ? node.offsetWidth : box.width) || 0, - height: (box.height == null ? node.offsetHeight : box.height) || 0, + if (isStartRow) { + // select the cell under the initial point + startIdx = endIdx = rtl + ? lastSlotIdx - Math.floor((start.x - rowBox.left) / cellWidth) + : Math.floor((start.x - rowBox.left) / cellWidth) + + if (isCurrentRow) { + if (currentSlot < startIdx) startIdx = currentSlot + else endIdx = currentSlot //select current range + } else if (start.y < box.y) { + // the current row is below start row + // select cells to the right of the start cell + endIdx = lastSlotIdx + } else { + // select cells to the left of the start cell + startIdx = 0 + } } - return box + return { startIdx: startIdx, endIdx: endIdx } } - module.exports = exports.default /***/ }, - /* 47 */ + /* 40 */ /***/ function(module, exports, __webpack_require__) { - 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { + /* WEBPACK VAR INJECTION */ ;(function(module) { + var root = __webpack_require__(11), + stubFalse = __webpack_require__(198) + + /** Detect free variable `exports`. */ + var freeExports = + typeof exports == 'object' && exports && !exports.nodeType && exports + + /** Detect free variable `module`. */ + var freeModule = + freeExports && + typeof module == 'object' && + module && + !module.nodeType && + module + + /** Detect the popular CommonJS extension `module.exports`. */ + var moduleExports = freeModule && freeModule.exports === freeExports + + /** Built-in value references. */ + var Buffer = moduleExports ? root.Buffer : undefined + + /* Built-in method references for those with the same name as other `lodash` methods. */ + var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined + /** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. + * Checks if `value` is a buffer. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. + * @example * + * _.isBuffer(new Buffer(2)); + * // => true + * + * _.isBuffer(new Uint8Array(2)); + * // => false */ + var isBuffer = nativeIsBuffer || stubFalse - var emptyObject = {} - - if (process.env.NODE_ENV !== 'production') { - Object.freeze(emptyObject) - } + module.exports = isBuffer - module.exports = emptyObject /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) + }.call(exports, __webpack_require__(41)(module))) /***/ }, - /* 48 */ + /* 41 */ /***/ function(module, exports) { - /** - * A specialized version of `_.map` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the new mapped array. - */ - function arrayMap(array, iteratee) { - var index = -1, - length = array == null ? 0 : array.length, - result = Array(length) - - while (++index < length) { - result[index] = iteratee(array[index], index, array) + module.exports = function(module) { + if (!module.webpackPolyfill) { + module.deprecate = function() {} + module.paths = [] + // module.parent = undefined by default + if (!module.children) module.children = [] + Object.defineProperty(module, 'loaded', { + enumerable: true, + get: function() { + return module.l + }, + }) + Object.defineProperty(module, 'id', { + enumerable: true, + get: function() { + return module.i + }, + }) + module.webpackPolyfill = 1 } - return result + return module } - module.exports = arrayMap - /***/ }, - /* 49 */ + /* 42 */ /***/ function(module, exports, __webpack_require__) { - var isSymbol = __webpack_require__(73) - - /** Used as references for various `Number` constants. */ - var INFINITY = 1 / 0 - - /** - * Converts `value` to a string key if it's not a string or symbol. - * - * @private - * @param {*} value The value to inspect. - * @returns {string|symbol} Returns the key. - */ - function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value - } - var result = value + '' - return result == '0' && 1 / value == -INFINITY ? '-0' : result - } - - module.exports = toKey + var isFunction = __webpack_require__(77), + isLength = __webpack_require__(74) - /***/ - }, - /* 50 */ - /***/ function(module, exports) { /** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); + * _.isArrayLike([1, 2, 3]); * // => true * - * _.eq(object, other); - * // => false + * _.isArrayLike(document.body.children); + * // => true * - * _.eq('a', 'a'); + * _.isArrayLike('abc'); * // => true * - * _.eq('a', Object('a')); + * _.isArrayLike(_.noop); * // => false - * - * _.eq(NaN, NaN); - * // => true */ - function eq(value, other) { - return value === other || (value !== value && other !== other) + function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value) } - module.exports = eq + module.exports = isArrayLike /***/ }, - /* 51 */ + /* 43 */ /***/ function(module, exports, __webpack_require__) { - var arrayLikeKeys = __webpack_require__(168), - baseKeys = __webpack_require__(334), - isArrayLike = __webpack_require__(70) + var listCacheClear = __webpack_require__(205), + listCacheDelete = __webpack_require__(206), + listCacheGet = __webpack_require__(207), + listCacheHas = __webpack_require__(208), + listCacheSet = __webpack_require__(209) /** - * Creates an array of the own enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * for more details. + * Creates an list cache object. * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.keys(new Foo); - * // => ['a', 'b'] (iteration order is not guaranteed) - * - * _.keys('hi'); - * // => ['0', '1'] + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. */ - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object) + function ListCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length + + this.clear() + while (++index < length) { + var entry = entries[index] + this.set(entry[0], entry[1]) + } } - module.exports = keys + // Add methods to `ListCache`. + ListCache.prototype.clear = listCacheClear + ListCache.prototype['delete'] = listCacheDelete + ListCache.prototype.get = listCacheGet + ListCache.prototype.has = listCacheHas + ListCache.prototype.set = listCacheSet + + module.exports = ListCache /***/ }, - /* 52 */ + /* 44 */ /***/ function(module, exports, __webpack_require__) { - 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - - var _prodInvariant = __webpack_require__(5) - - var EventPluginRegistry = __webpack_require__(76) - var EventPluginUtils = __webpack_require__(126) - var ReactErrorUtils = __webpack_require__(130) - - var accumulateInto = __webpack_require__(223) - var forEachAccumulated = __webpack_require__(224) - var invariant = __webpack_require__(2) - - /** - * Internal store for event listeners - */ - var listenerBank = {} - - /** - * Internal queue of events that have accumulated their dispatches and are - * waiting to have their dispatches executed. - */ - var eventQueue = null - - /** - * Dispatches an event and releases it back into the pool, unless persistent. - * - * @param {?object} event Synthetic event to be dispatched. - * @param {boolean} simulated If the event is simulated (changes exn behavior) - * @private - */ - var executeDispatchesAndRelease = function(event, simulated) { - if (event) { - EventPluginUtils.executeDispatchesInOrder(event, simulated) + var eq = __webpack_require__(33) - if (!event.isPersistent()) { - event.constructor.release(event) - } - } - } - var executeDispatchesAndReleaseSimulated = function(e) { - return executeDispatchesAndRelease(e, true) - } - var executeDispatchesAndReleaseTopLevel = function(e) { - return executeDispatchesAndRelease(e, false) - } - - var getDictionaryKey = function(inst) { - // Prevents V8 performance issue: - // https://github.com/facebook/react/pull/7232 - return '.' + inst._rootNodeID - } - - function isInteractive(tag) { - return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea' - } - - function shouldPreventMouseEvent(name, type, props) { - switch (name) { - case 'onClick': - case 'onClickCapture': - case 'onDoubleClick': - case 'onDoubleClickCapture': - case 'onMouseDown': - case 'onMouseDownCapture': - case 'onMouseMove': - case 'onMouseMoveCapture': - case 'onMouseUp': - case 'onMouseUpCapture': - return !!(props.disabled && isInteractive(type)) - default: - return false + /** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function assocIndexOf(array, key) { + var length = array.length + while (length--) { + if (eq(array[length][0], key)) { + return length } } + return -1 + } - /** - * This is a unified interface for event plugins to be installed and configured. - * - * Event plugins can implement the following properties: - * - * `extractEvents` {function(string, DOMEventTarget, string, object): *} - * Required. When a top-level event is fired, this method is expected to - * extract synthetic events that will in turn be queued and dispatched. - * - * `eventTypes` {object} - * Optional, plugins that fire events must publish a mapping of registration - * names that are used to register listeners. Values of this mapping must - * be objects that contain `registrationName` or `phasedRegistrationNames`. - * - * `executeDispatch` {function(object, function, string)} - * Optional, allows plugins to override how an event gets dispatched. By - * default, the listener is simply invoked. - * - * Each plugin that is injected into `EventsPluginHub` is immediately operable. - * - * @public - */ - var EventPluginHub = { - /** - * Methods for injecting dependencies. - */ - injection: { - /** - * @param {array} InjectedEventPluginOrder - * @public - */ - injectEventPluginOrder: EventPluginRegistry.injectEventPluginOrder, - - /** - * @param {object} injectedNamesToPlugins Map from names to plugin modules. - */ - injectEventPluginsByName: EventPluginRegistry.injectEventPluginsByName, - }, - - /** - * Stores `listener` at `listenerBank[registrationName][key]`. Is idempotent. - * - * @param {object} inst The instance, which is the source of events. - * @param {string} registrationName Name of listener (e.g. `onClick`). - * @param {function} listener The callback to store. - */ - putListener: function(inst, registrationName, listener) { - !(typeof listener === 'function') - ? process.env.NODE_ENV !== 'production' - ? invariant( - false, - 'Expected %s listener to be a function, instead got type %s', - registrationName, - typeof listener - ) - : _prodInvariant('94', registrationName, typeof listener) - : void 0 - - var key = getDictionaryKey(inst) - var bankForRegistrationName = - listenerBank[registrationName] || (listenerBank[registrationName] = {}) - bankForRegistrationName[key] = listener - - var PluginModule = EventPluginRegistry.registrationNameModules[registrationName] - if (PluginModule && PluginModule.didPutListener) { - PluginModule.didPutListener(inst, registrationName, listener) - } - }, - - /** - * @param {object} inst The instance, which is the source of events. - * @param {string} registrationName Name of listener (e.g. `onClick`). - * @return {?function} The stored callback. - */ - getListener: function(inst, registrationName) { - // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not - // live here; needs to be moved to a better place soon - var bankForRegistrationName = listenerBank[registrationName] - if ( - shouldPreventMouseEvent( - registrationName, - inst._currentElement.type, - inst._currentElement.props - ) - ) { - return null - } - var key = getDictionaryKey(inst) - return bankForRegistrationName && bankForRegistrationName[key] - }, - - /** - * Deletes a listener from the registration bank. - * - * @param {object} inst The instance, which is the source of events. - * @param {string} registrationName Name of listener (e.g. `onClick`). - */ - deleteListener: function(inst, registrationName) { - var PluginModule = EventPluginRegistry.registrationNameModules[registrationName] - if (PluginModule && PluginModule.willDeleteListener) { - PluginModule.willDeleteListener(inst, registrationName) - } - - var bankForRegistrationName = listenerBank[registrationName] - // TODO: This should never be null -- when is it? - if (bankForRegistrationName) { - var key = getDictionaryKey(inst) - delete bankForRegistrationName[key] - } - }, - - /** - * Deletes all listeners for the DOM element with the supplied ID. - * - * @param {object} inst The instance, which is the source of events. - */ - deleteAllListeners: function(inst) { - var key = getDictionaryKey(inst) - for (var registrationName in listenerBank) { - if (!listenerBank.hasOwnProperty(registrationName)) { - continue - } - - if (!listenerBank[registrationName][key]) { - continue - } - - var PluginModule = EventPluginRegistry.registrationNameModules[registrationName] - if (PluginModule && PluginModule.willDeleteListener) { - PluginModule.willDeleteListener(inst, registrationName) - } - - delete listenerBank[registrationName][key] - } - }, - - /** - * Allows registered plugins an opportunity to extract events from top-level - * native browser events. - * - * @return {*} An accumulation of synthetic events. - * @internal - */ - extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var events - var plugins = EventPluginRegistry.plugins - for (var i = 0; i < plugins.length; i++) { - // Not every plugin in the ordering may be loaded at runtime. - var possiblePlugin = plugins[i] - if (possiblePlugin) { - var extractedEvents = possiblePlugin.extractEvents( - topLevelType, - targetInst, - nativeEvent, - nativeEventTarget - ) - if (extractedEvents) { - events = accumulateInto(events, extractedEvents) - } - } - } - return events - }, - - /** - * Enqueues a synthetic event that should be dispatched when - * `processEventQueue` is invoked. - * - * @param {*} events An accumulation of synthetic events. - * @internal - */ - enqueueEvents: function(events) { - if (events) { - eventQueue = accumulateInto(eventQueue, events) - } - }, - - /** - * Dispatches all synthetic events on the event queue. - * - * @internal - */ - processEventQueue: function(simulated) { - // Set `eventQueue` to null before processing it so that we can tell if more - // events get enqueued while processing. - var processingEventQueue = eventQueue - eventQueue = null - if (simulated) { - forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated) - } else { - forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel) - } - eventQueue - ? process.env.NODE_ENV !== 'production' - ? invariant( - false, - 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.' - ) - : _prodInvariant('95') - : void 0 - // This would be a good time to rethrow if any of the event handlers threw. - ReactErrorUtils.rethrowCaughtError() - }, - - /** - * These are needed for tests only. Do not use! - */ - __purge: function() { - listenerBank = {} - }, - - __getListenerBank: function() { - return listenerBank - }, - } - - module.exports = EventPluginHub - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) + module.exports = assocIndexOf /***/ }, - /* 53 */ + /* 45 */ /***/ function(module, exports, __webpack_require__) { - 'use strict' - /* WEBPACK VAR INJECTION */ - ;(function(process) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - - var EventPluginHub = __webpack_require__(52) - var EventPluginUtils = __webpack_require__(126) - - var accumulateInto = __webpack_require__(223) - var forEachAccumulated = __webpack_require__(224) - var warning = __webpack_require__(3) - - var getListener = EventPluginHub.getListener - - /** - * Some event types have a notion of different registration names for different - * "phases" of propagation. This finds listeners by a given phase. - */ - function listenerAtPhase(inst, event, propagationPhase) { - var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase] - return getListener(inst, registrationName) - } - - /** - * Tags a `SyntheticEvent` with dispatched listeners. Creating this function - * here, allows us to not have to bind or create functions for each event. - * Mutating the event's members allows us to not have to create a wrapping - * "dispatch" object that pairs the event with the listener. - */ - function accumulateDirectionalDispatches(inst, phase, event) { - if (process.env.NODE_ENV !== 'production') { - process.env.NODE_ENV !== 'production' - ? warning(inst, 'Dispatching inst must not be null') - : void 0 - } - var listener = listenerAtPhase(inst, event, phase) - if (listener) { - event._dispatchListeners = accumulateInto(event._dispatchListeners, listener) - event._dispatchInstances = accumulateInto(event._dispatchInstances, inst) - } - } + var getNative = __webpack_require__(19) - /** - * Collect dispatches (must be entirely collected before dispatching - see unit - * tests). Lazily allocate the array to conserve memory. We must loop through - * each event and perform the traversal for each one. We cannot perform a - * single traversal for the entire collection of events because each event may - * have a different target. - */ - function accumulateTwoPhaseDispatchesSingle(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - EventPluginUtils.traverseTwoPhase( - event._targetInst, - accumulateDirectionalDispatches, - event - ) - } - } + /* Built-in method references that are verified to be native. */ + var nativeCreate = getNative(Object, 'create') - /** - * Same as `accumulateTwoPhaseDispatchesSingle`, but skips over the targetID. - */ - function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - var targetInst = event._targetInst - var parentInst = targetInst ? EventPluginUtils.getParentInstance(targetInst) : null - EventPluginUtils.traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event) - } - } + module.exports = nativeCreate - /** - * Accumulates without regard to direction, does not look for phased - * registration names. Same as `accumulateDirectDispatchesSingle` but without - * requiring that the `dispatchMarker` be the same as the dispatched ID. - */ - function accumulateDispatches(inst, ignoredDirection, event) { - if (event && event.dispatchConfig.registrationName) { - var registrationName = event.dispatchConfig.registrationName - var listener = getListener(inst, registrationName) - if (listener) { - event._dispatchListeners = accumulateInto(event._dispatchListeners, listener) - event._dispatchInstances = accumulateInto(event._dispatchInstances, inst) - } - } - } + /***/ + }, + /* 46 */ + /***/ function(module, exports, __webpack_require__) { + var isKeyable = __webpack_require__(227) - /** - * Accumulates dispatches on an `SyntheticEvent`, but only for the - * `dispatchMarker`. - * @param {SyntheticEvent} event - */ - function accumulateDirectDispatchesSingle(event) { - if (event && event.dispatchConfig.registrationName) { - accumulateDispatches(event._targetInst, null, event) - } - } + /** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ + function getMapData(map, key) { + var data = map.__data__ + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map + } - function accumulateTwoPhaseDispatches(events) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle) - } + module.exports = getMapData - function accumulateTwoPhaseDispatchesSkipTarget(events) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget) - } + /***/ + }, + /* 47 */ + /***/ function(module, exports, __webpack_require__) { + var MapCache = __webpack_require__(81), + setCacheAdd = __webpack_require__(232), + setCacheHas = __webpack_require__(233) - function accumulateEnterLeaveDispatches(leave, enter, from, to) { - EventPluginUtils.traverseEnterLeave(from, to, accumulateDispatches, leave, enter) - } + /** + * + * Creates an array cache object to store unique values. + * + * @private + * @constructor + * @param {Array} [values] The values to cache. + */ + function SetCache(values) { + var index = -1, + length = values == null ? 0 : values.length - function accumulateDirectDispatches(events) { - forEachAccumulated(events, accumulateDirectDispatchesSingle) + this.__data__ = new MapCache() + while (++index < length) { + this.add(values[index]) } + } - /** - * A small set of propagation patterns, each of which will accept a small amount - * of information, and generate a set of "dispatch ready event objects" - which - * are sets of events that have already been annotated with a set of dispatched - * listener functions/ids. The API is designed this way to discourage these - * propagation strategies from actually executing the dispatches, since we - * always want to collect the entire set of dispatches before executing event a - * single one. - * - * @constructor EventPropagators - */ - var EventPropagators = { - accumulateTwoPhaseDispatches: accumulateTwoPhaseDispatches, - accumulateTwoPhaseDispatchesSkipTarget: accumulateTwoPhaseDispatchesSkipTarget, - accumulateDirectDispatches: accumulateDirectDispatches, - accumulateEnterLeaveDispatches: accumulateEnterLeaveDispatches, - } + // Add methods to `SetCache`. + SetCache.prototype.add = SetCache.prototype.push = setCacheAdd + SetCache.prototype.has = setCacheHas - module.exports = EventPropagators - /* WEBPACK VAR INJECTION */ - }.call(exports, __webpack_require__(0))) + module.exports = SetCache /***/ }, - /* 54 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' + /* 48 */ + /***/ function(module, exports) { /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * Checks if a `cache` value for `key` exists. * + * @private + * @param {Object} cache The cache to query. + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ + function cacheHas(cache, key) { + return cache.has(key) + } + + module.exports = cacheHas + /***/ + }, + /* 49 */ + /***/ function(module, exports) { /** - * `ReactInstanceMap` maintains a mapping from a public facing stateful - * instance (key) and the internal representation (value). This allows public - * methods to accept the user facing instance as an argument and map them back - * to internal methods. + * Converts `set` to an array of its values. + * + * @private + * @param {Object} set The set to convert. + * @returns {Array} Returns the values. */ + function setToArray(set) { + var index = -1, + result = Array(set.size) - // TODO: Replace this with ES6: var ReactInstanceMap = new Map(); - - var ReactInstanceMap = { - /** - * This API should be called `delete` but we'd have to make sure to always - * transform these to strings for IE support. When this transform is fully - * supported we can rename it. - */ - remove: function(key) { - key._reactInternalInstance = undefined - }, - - get: function(key) { - return key._reactInternalInstance - }, - - has: function(key) { - return key._reactInternalInstance !== undefined - }, - - set: function(key, value) { - key._reactInternalInstance = value - }, + set.forEach(function(value) { + result[++index] = value + }) + return result } - module.exports = ReactInstanceMap + module.exports = setToArray /***/ }, - /* 55 */ + /* 50 */ /***/ function(module, exports, __webpack_require__) { - 'use strict' + var isArray = __webpack_require__(5), + isKey = __webpack_require__(85), + stringToPath = __webpack_require__(243), + toString = __webpack_require__(245) + /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * Casts `value` to a path array if it's not one. * + * @private + * @param {*} value The value to inspect. + * @param {Object} [object] The object to query keys on. + * @returns {Array} Returns the cast property path array. */ + function castPath(value, object) { + if (isArray(value)) { + return value + } + return isKey(value, object) ? [value] : stringToPath(toString(value)) + } - var SyntheticEvent = __webpack_require__(25) - - var getEventTarget = __webpack_require__(135) - - /** - * @interface UIEvent - * @see http://www.w3.org/TR/DOM-Level-3-Events/ - */ - var UIEventInterface = { - view: function(event) { - if (event.view) { - return event.view - } + module.exports = castPath - var target = getEventTarget(event) - if (target.window === target) { - // target is a window object - return target - } + /***/ + }, + /* 51 */ + /***/ function(module, exports, __webpack_require__) { + var baseGetTag = __webpack_require__(24), + isObjectLike = __webpack_require__(18) - var doc = target.ownerDocument - // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8. - if (doc) { - return doc.defaultView || doc.parentWindow - } else { - return window - } - }, - detail: function(event) { - return event.detail || 0 - }, - } + /** `Object#toString` result references. */ + var symbolTag = '[object Symbol]' /** - * @param {object} dispatchConfig Configuration used to dispatch this event. - * @param {string} dispatchMarker Marker identifying the event target. - * @param {object} nativeEvent Native browser event. - * @extends {SyntheticEvent} + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false */ - function SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget + function isSymbol(value) { + return ( + typeof value == 'symbol' || + (isObjectLike(value) && baseGetTag(value) == symbolTag) ) } - SyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface) + module.exports = isSymbol + + /***/ + }, + /* 52 */ + /***/ function(module, exports, __webpack_require__) { + var overArg = __webpack_require__(109) + + /** Built-in value references. */ + var getPrototype = overArg(Object.getPrototypeOf, Object) - module.exports = SyntheticUIEvent + module.exports = getPrototype /***/ }, - /* 56 */ + /* 53 */ /***/ function(module, exports, __webpack_require__) { 'use strict' exports.__esModule = true - exports.notify = notify - exports.instanceId = instanceId - exports.isFirstFocusedRender = isFirstFocusedRender - var idCount = 0 - function uniqueId(prefix) { - return '' + ((prefix == null ? '' : prefix) + ++idCount) - } + var _extends = + Object.assign || + function(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key] + } + } + } + return target + } - function notify(handler, args) { - handler && handler.apply(null, [].concat(args)) - } + exports.set = set + exports.default = format - function instanceId(component) { - var suffix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '' + var _dates = __webpack_require__(3) - component.__id || (component.__id = uniqueId('rw_')) - return (component.props.id || component.__id) + suffix - } + var _dates2 = _interopRequireDefault(_dates) - function isFirstFocusedRender(component) { - return component._firstFocus || (component.state.focused && (component._firstFocus = true)) + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj } } - /***/ - }, - /* 57 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict' - - exports.__esModule = true - exports.isSelected = isSelected - exports.slotWidth = slotWidth - exports.getCellAtX = getCellAtX - exports.pointInBox = pointInBox - exports.dateCellSelection = dateCellSelection - function isSelected(event, selected) { - if (!event || selected == null) return false - return [].concat(selected).indexOf(event) !== -1 + function inSame12Hr(start, end) { + var s = 12 - _dates2.default.hours(start) + var e = 12 - _dates2.default.hours(end) + return (s <= 0 && e <= 0) || (s >= 0 && e >= 0) } - function slotWidth(rowBox, slots) { - var rowWidth = rowBox.right - rowBox.left - var cellWidth = rowWidth / slots + var dateRangeFormat = function dateRangeFormat(_ref, culture, local) { + var start = _ref.start, + end = _ref.end + return ( + local.format(start, 'd', culture) + + ' — ' + + local.format(end, 'd', culture) + ) + } - return cellWidth + var timeRangeFormat = function timeRangeFormat(_ref2, culture, local) { + var start = _ref2.start, + end = _ref2.end + return ( + local.format(start, 'h:mmtt', culture) + + ' — ' + + local.format(end, inSame12Hr(start, end) ? 'h:mm' : 'h:mmtt', culture) + ) } - function getCellAtX(rowBox, x, cellWidth, rtl, slots) { - return rtl - ? slots - 1 - Math.floor((x - rowBox.left) / cellWidth) - : Math.floor((x - rowBox.left) / cellWidth) + var timeRangeStartFormat = function timeRangeStartFormat( + _ref3, + culture, + local + ) { + var start = _ref3.start, + end = _ref3.end + return local.format(start, 'h:mmtt', culture) + ' — ' } - function pointInBox(box, _ref) { - var x = _ref.x, - y = _ref.y + var timeRangeEndFormat = function timeRangeEndFormat( + _ref4, + culture, + local + ) { + var start = _ref4.start, + end = _ref4.end + return ' — ' + local.format(end, 'h:mmtt', culture) + } - return y >= box.top && y <= box.bottom && x >= box.left && x <= box.right + var weekRangeFormat = function weekRangeFormat(_ref5, culture, local) { + var start = _ref5.start, + end = _ref5.end + return ( + local.format(start, 'MMM dd', culture) + + ' - ' + + local.format( + end, + _dates2.default.eq(start, end, 'month') ? 'dd' : 'MMM dd', + culture + ) + ) } - function dateCellSelection(start, rowBox, box, slots, rtl) { - var startIdx = -1 - var endIdx = -1 - var lastSlotIdx = slots - 1 + var formats = { + dateFormat: 'dd', + dayFormat: 'ddd dd/MM', + weekdayFormat: 'ddd', - var cellWidth = slotWidth(rowBox, slots) + selectRangeFormat: timeRangeFormat, + eventTimeRangeFormat: timeRangeFormat, + eventTimeRangeStartFormat: timeRangeStartFormat, + eventTimeRangeEndFormat: timeRangeEndFormat, - // cell under the mouse - var currentSlot = getCellAtX(rowBox, box.x, cellWidth, rtl, slots) + timeGutterFormat: 'h:mm tt', - // Identify row as either the initial row - // or the row under the current mouse point - var isCurrentRow = rowBox.top < box.y && rowBox.bottom > box.y - var isStartRow = rowBox.top < start.y && rowBox.bottom > start.y + monthHeaderFormat: 'MMMM yyyy', + dayHeaderFormat: 'dddd MMM dd', + dayRangeHeaderFormat: weekRangeFormat, + agendaHeaderFormat: dateRangeFormat, - // this row's position relative to the start point - var isAboveStart = start.y > rowBox.bottom - var isBelowStart = rowBox.top > start.y - var isBetween = box.top < rowBox.top && box.bottom > rowBox.bottom + agendaDateFormat: 'ddd MMM dd', + agendaTimeFormat: 'hh:mm tt', + agendaTimeRangeFormat: timeRangeFormat, + } - // this row is between the current and start rows, so entirely selected - if (isBetween) { - startIdx = 0 - endIdx = lastSlotIdx + function set(_formats) { + var _formats2 + + if (arguments.length > 1) + _formats = ((_formats2 = {}), + (_formats2[_formats] = arguments[1]), + _formats2) + + _extends(formats, _formats) + } + + function format(fmts) { + return _extends({}, formats, fmts) + } + + /***/ + }, + /* 54 */ + /***/ function(module, exports) { + /* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ + // css base code, injected by the css-loader + module.exports = function(useSourceMap) { + var list = [] + + // return the list of modules as css string + list.toString = function toString() { + return this.map(function(item) { + var content = cssWithMappingToString(item, useSourceMap) + if (item[2]) { + return '@media ' + item[2] + '{' + content + '}' + } else { + return content + } + }).join('') } - if (isCurrentRow) { - if (isBelowStart) { - startIdx = 0 - endIdx = currentSlot - } else if (isAboveStart) { - startIdx = currentSlot - endIdx = lastSlotIdx + // import a list of modules into the list + list.i = function(modules, mediaQuery) { + if (typeof modules === 'string') modules = [[null, modules, '']] + var alreadyImportedModules = {} + for (var i = 0; i < this.length; i++) { + var id = this[i][0] + if (typeof id === 'number') alreadyImportedModules[id] = true + } + for (i = 0; i < modules.length; i++) { + var item = modules[i] + // skip already imported module + // this implementation is not 100% perfect for weird media query combinations + // when a module is imported multiple times with different media queries. + // I hope this will never occur (Hey this way we have smaller bundles) + if ( + typeof item[0] !== 'number' || + !alreadyImportedModules[item[0]] + ) { + if (mediaQuery && !item[2]) { + item[2] = mediaQuery + } else if (mediaQuery) { + item[2] = '(' + item[2] + ') and (' + mediaQuery + ')' + } + list.push(item) + } } } + return list + } + + function cssWithMappingToString(item, useSourceMap) { + var content = item[1] || '' + var cssMapping = item[3] + if (!cssMapping) { + return content + } - if (isStartRow) { - // select the cell under the initial point - startIdx = endIdx = rtl - ? lastSlotIdx - Math.floor((start.x - rowBox.left) / cellWidth) - : Math.floor((start.x - rowBox.left) / cellWidth) + if (useSourceMap && typeof btoa === 'function') { + var sourceMapping = toComment(cssMapping) + var sourceURLs = cssMapping.sources.map(function(source) { + return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */' + }) - if (isCurrentRow) { - if (currentSlot < startIdx) startIdx = currentSlot - else endIdx = currentSlot //select current range - } else if (start.y < box.y) { - // the current row is below start row - // select cells to the right of the start cell - endIdx = lastSlotIdx - } else { - // select cells to the left of the start cell - startIdx = 0 - } + return [content] + .concat(sourceURLs) + .concat([sourceMapping]) + .join('\n') } - return { startIdx: startIdx, endIdx: endIdx } + return [content].join('\n') + } + + // Adapted from convert-source-map (MIT) + function toComment(sourceMap) { + // eslint-disable-next-line no-undef + var base64 = btoa( + unescape(encodeURIComponent(JSON.stringify(sourceMap))) + ) + var data = + 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + + base64 + + return '/*# ' + data + ' */' } /***/ }, - /* 58 */ + /* 55 */ /***/ function(module, exports, __webpack_require__) { - 'use strict' + /* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ - exports.__esModule = true - exports.beginDrag = beginDrag - exports.publishDragSource = publishDragSource - exports.hover = hover - exports.drop = drop - exports.endDrag = endDrag + var stylesInDom = {} - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj } + var memoize = function(fn) { + var memo + + return function() { + if (typeof memo === 'undefined') memo = fn.apply(this, arguments) + return memo + } } - var _utilsMatchesType = __webpack_require__(151) + var isOldIE = memoize(function() { + // Test for IE <= 9 as proposed by Browserhacks + // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 + // Tests for existence of standard globals is to allow style-loader + // to operate correctly into non-standard environments + // @see https://github.com/webpack-contrib/style-loader/issues/177 + return window && document && document.all && !window.atob + }) - var _utilsMatchesType2 = _interopRequireDefault(_utilsMatchesType) + var getElement = (function(fn) { + var memo = {} - var _invariant = __webpack_require__(8) + return function(selector) { + if (typeof memo[selector] === 'undefined') { + var styleTarget = fn.call(this, selector) + // Special case to return head of iframe instead of iframe itself + if (styleTarget instanceof window.HTMLIFrameElement) { + try { + // This will throw an exception if access to iframe is blocked + // due to cross-origin restrictions + styleTarget = styleTarget.contentDocument.head + } catch (e) { + styleTarget = null + } + } + memo[selector] = styleTarget + } + return memo[selector] + } + })(function(target) { + return document.querySelector(target) + }) - var _invariant2 = _interopRequireDefault(_invariant) + var singleton = null + var singletonCounter = 0 + var stylesInsertedAtTop = [] - var _lodashIsArray = __webpack_require__(11) + var fixUrls = __webpack_require__(269) - var _lodashIsArray2 = _interopRequireDefault(_lodashIsArray) + module.exports = function(list, options) { + if (typeof DEBUG !== 'undefined' && DEBUG) { + if (typeof document !== 'object') + throw new Error( + 'The style-loader cannot be used in a non-browser environment' + ) + } - var _lodashIsObject = __webpack_require__(20) + options = options || {} - var _lodashIsObject2 = _interopRequireDefault(_lodashIsObject) + options.attrs = typeof options.attrs === 'object' ? options.attrs : {} - var BEGIN_DRAG = 'dnd-core/BEGIN_DRAG' - exports.BEGIN_DRAG = BEGIN_DRAG - var PUBLISH_DRAG_SOURCE = 'dnd-core/PUBLISH_DRAG_SOURCE' - exports.PUBLISH_DRAG_SOURCE = PUBLISH_DRAG_SOURCE - var HOVER = 'dnd-core/HOVER' - exports.HOVER = HOVER - var DROP = 'dnd-core/DROP' - exports.DROP = DROP - var END_DRAG = 'dnd-core/END_DRAG' + // Force single-tag solution on IE6-9, which has a hard limit on the # of