Javier Marquez
2017-03-01 11612b608143c1607f33ff40c43c6f9db5e073ba
Fix clicking calendar being recognized as click outside
11 files modified
1021 ■■■■ changed files
CHANGELOG.md 3 ●●●●● patch | view | raw | blame | history
DateTime.js 2 ●●● patch | view | raw | blame | history
dist/react-datetime.js 939 ●●●● patch | view | raw | blame | history
dist/react-datetime.min.js 4 ●●●● patch | view | raw | blame | history
dist/react-datetime.min.js.map 2 ●●● patch | view | raw | blame | history
package.json 2 ●●● patch | view | raw | blame | history
src/CalendarContainer.js 11 ●●●● patch | view | raw | blame | history
src/DaysView.js 13 ●●●●● patch | view | raw | blame | history
src/MonthsView.js 16 ●●●●● patch | view | raw | blame | history
src/TimeView.js 13 ●●●●● patch | view | raw | blame | history
src/YearsView.js 16 ●●●●● patch | view | raw | blame | history
CHANGELOG.md
@@ -1,5 +1,8 @@
Changelog
=========
## 2.8.8
* Fixes issues introduced in v2.8.7 recognizing any calendar view as clickingOutside trigger
## 2.8.7
* Update react-onclickoutside dependency. That should fix most of the problems about closeOnSelect.
DateTime.js
@@ -376,7 +376,7 @@
    componentProps: {
        fromProps: ['value', 'isValidDate', 'renderDay', 'renderMonth', 'renderYear', 'timeConstraints'],
        fromState: ['viewDate', 'selectedDate', 'updateOn'],
        fromThis: ['setDate', 'setTime', 'showView', 'addTime', 'subtractTime', 'updateSelectedDate', 'localMoment']
        fromThis: ['setDate', 'setTime', 'showView', 'addTime', 'subtractTime', 'updateSelectedDate', 'localMoment', 'handleClickOutside']
    },
    getComponentProps: function() {
dist/react-datetime.js
@@ -1,5 +1,5 @@
/*
react-datetime v2.8.7
react-datetime v2.8.8
https://github.com/YouCanBookMe/react-datetime
MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE
*/
@@ -12,7 +12,7 @@
        exports["Datetime"] = factory(require("moment"), require("React"), require("ReactDOM"));
    else
        root["Datetime"] = factory(root["moment"], root["React"], root["ReactDOM"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_10__) {
})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_7__) {
return /******/ (function(modules) { // webpackBootstrap
/******/     // The module cache
/******/     var installedModules = {};
@@ -437,7 +437,7 @@
        componentProps: {
            fromProps: ['value', 'isValidDate', 'renderDay', 'renderMonth', 'renderYear', 'timeConstraints'],
            fromState: ['viewDate', 'selectedDate', 'updateOn'],
            fromThis: ['setDate', 'setTime', 'showView', 'addTime', 'subtractTime', 'updateSelectedDate', 'localMoment']
            fromThis: ['setDate', 'setTime', 'showView', 'addTime', 'subtractTime', 'updateSelectedDate', 'localMoment', 'handleClickOutside']
        },
        getComponentProps: function() {
@@ -562,13 +562,12 @@
    var React = __webpack_require__(3),
      DaysView = __webpack_require__(5),
      MonthsView = __webpack_require__(6),
      YearsView = __webpack_require__(7),
      TimeView = __webpack_require__(8),
      onClickOutside = __webpack_require__(9)
      MonthsView = __webpack_require__(8),
      YearsView = __webpack_require__(9),
      TimeView = __webpack_require__(10)
    ;
    var CalendarContainer = onClickOutside( React.createClass({
    var CalendarContainer = React.createClass({
        viewComponents: {
            days: DaysView,
            months: MonthsView,
@@ -578,12 +577,8 @@
      render: function() {
        return React.createElement( this.viewComponents[ this.props.view ], this.props.viewProps );
      },
      handleClickOutside: function() {
        this.props.onClickOutside();
      }
    }));
    });
    module.exports = CalendarContainer;
@@ -595,11 +590,12 @@
    'use strict';
    var React = __webpack_require__(3),
        moment = __webpack_require__(2)
        moment = __webpack_require__(2),
      onClickOutside = __webpack_require__(6)
    ;
    var DOM = React.DOM;
    var DateTimePickerDays = React.createClass({
    var DateTimePickerDays = onClickOutside( React.createClass({
        render: function() {
            var footer = this.renderFooter(),
                date = this.props.viewDate,
@@ -727,455 +723,18 @@
        alwaysValidDate: function() {
            return 1;
        }
    });
        },
      handleClickOutside: function() {
        this.props.handleClickOutside();
      }
    }));
    module.exports = DateTimePickerDays;
/***/ },
/* 6 */
/***/ function(module, exports, __webpack_require__) {
    'use strict';
    var React = __webpack_require__(3);
    var DOM = React.DOM;
    var DateTimePickerMonths = React.createClass({
        render: function() {
            return DOM.div({ className: 'rdtMonths' }, [
                DOM.table({ key: 'a' }, DOM.thead( {}, DOM.tr( {}, [
                    DOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 1, 'years' )}, '‹' )),
                    DOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2, 'data-value': this.props.viewDate.year() }, this.props.viewDate.year() ),
                    DOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 1, 'years' )}, '›' ))
                ]))),
                DOM.table({ key: 'months' }, DOM.tbody({ key: 'b' }, this.renderMonths()))
            ]);
        },
        renderMonths: function() {
            var date = this.props.selectedDate,
                month = this.props.viewDate.month(),
                year = this.props.viewDate.year(),
                rows = [],
                i = 0,
                months = [],
                renderer = this.props.renderMonth || this.renderMonth,
                isValid = this.props.isValidDate || this.alwaysValidDate,
                classes, props, currentMonth, isDisabled, noOfDaysInMonth, daysInMonth, validDay,
                // Date is irrelevant because we're only interested in month
                irrelevantDate = 1
            ;
            while (i < 12) {
                classes = 'rdtMonth';
                currentMonth =
                    this.props.viewDate.clone().set({ year: year, month: i, date: irrelevantDate });
                noOfDaysInMonth = currentMonth.endOf( 'month' ).format( 'D' );
                daysInMonth = Array.from({ length: noOfDaysInMonth }, function( e, i ) {
                    return i + 1;
                });
                validDay = daysInMonth.find(function( d ) {
                    var day = currentMonth.clone().set( 'date', d );
                    return isValid( day );
                });
                isDisabled = ( validDay === undefined );
                if ( isDisabled )
                    classes += ' rdtDisabled';
                if ( date && i === month && year === date.year() )
                    classes += ' rdtActive';
                props = {
                    key: i,
                    'data-value': i,
                    className: classes
                };
                if ( !isDisabled )
                    props.onClick = ( this.props.updateOn === 'months' ?
                        this.updateSelectedMonth : this.props.setDate( 'month' ) );
                months.push( renderer( props, i, year, date && date.clone() ) );
                if ( months.length === 4 ) {
                    rows.push( DOM.tr({ key: month + '_' + rows.length }, months ) );
                    months = [];
                }
                i++;
            }
            return rows;
        },
        updateSelectedMonth: function( event ) {
            this.props.updateSelectedDate( event, true );
        },
        renderMonth: function( props, month ) {
            var localMoment = this.props.viewDate;
            var monthStr = localMoment.localeData().monthsShort( localMoment.month( month ) );
            var strLength = 3;
            // Because some months are up to 5 characters long, we want to
            // use a fixed string length for consistency
            var monthStrFixedLength = monthStr.substring( 0, strLength );
            return DOM.td( props, capitalize( monthStrFixedLength ) );
        },
        alwaysValidDate: function() {
            return 1;
        }
    });
    function capitalize( str ) {
        return str.charAt( 0 ).toUpperCase() + str.slice( 1 );
    }
    module.exports = DateTimePickerMonths;
/***/ },
/* 7 */
/***/ function(module, exports, __webpack_require__) {
    'use strict';
    var React = __webpack_require__(3);
    var DOM = React.DOM;
    var DateTimePickerYears = React.createClass({
        render: function() {
            var year = parseInt( this.props.viewDate.year() / 10, 10 ) * 10;
            return DOM.div({ className: 'rdtYears' }, [
                DOM.table({ key: 'a' }, DOM.thead({}, DOM.tr({}, [
                    DOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 10, 'years' )}, '‹' )),
                    DOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2 }, year + '-' + ( year + 9 ) ),
                    DOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 10, 'years' )}, '›' ))
                    ]))),
                DOM.table({ key: 'years' }, DOM.tbody( {}, this.renderYears( year )))
            ]);
        },
        renderYears: function( year ) {
            var years = [],
                i = -1,
                rows = [],
                renderer = this.props.renderYear || this.renderYear,
                selectedDate = this.props.selectedDate,
                isValid = this.props.isValidDate || this.alwaysValidDate,
                classes, props, currentYear, isDisabled, noOfDaysInYear, daysInYear, validDay,
                // Month and date are irrelevant here because
                // we're only interested in the year
                irrelevantMonth = 0,
                irrelevantDate = 1
            ;
            year--;
            while (i < 11) {
                classes = 'rdtYear';
                currentYear = this.props.viewDate.clone().set(
                    { year: year, month: irrelevantMonth, date: irrelevantDate } );
                // Not sure what 'rdtOld' is for, commenting out for now as it's not working properly
                // if ( i === -1 | i === 10 )
                    // classes += ' rdtOld';
                noOfDaysInYear = currentYear.endOf( 'year' ).format( 'DDD' );
                daysInYear = Array.from({ length: noOfDaysInYear }, function( e, i ) {
                    return i + 1;
                });
                validDay = daysInYear.find(function( d ) {
                    var day = currentYear.clone().dayOfYear( d );
                    return isValid( day );
                });
                isDisabled = ( validDay === undefined );
                if ( isDisabled )
                    classes += ' rdtDisabled';
                if ( selectedDate && selectedDate.year() === year )
                    classes += ' rdtActive';
                props = {
                    key: year,
                    'data-value': year,
                    className: classes
                };
                if ( !isDisabled )
                    props.onClick = ( this.props.updateOn === 'years' ?
                        this.updateSelectedYear : this.props.setDate('year') );
                years.push( renderer( props, year, selectedDate && selectedDate.clone() ));
                if ( years.length === 4 ) {
                    rows.push( DOM.tr({ key: i }, years ) );
                    years = [];
                }
                year++;
                i++;
            }
            return rows;
        },
        updateSelectedYear: function( event ) {
            this.props.updateSelectedDate( event, true );
        },
        renderYear: function( props, year ) {
            return DOM.td( props, year );
        },
        alwaysValidDate: function() {
            return 1;
        }
    });
    module.exports = DateTimePickerYears;
/***/ },
/* 8 */
/***/ function(module, exports, __webpack_require__) {
    'use strict';
    var React = __webpack_require__(3),
        assign = __webpack_require__(1)
    ;
    var DOM = React.DOM;
    var DateTimePickerTime = React.createClass({
        getInitialState: function() {
            return this.calculateState( this.props );
        },
        calculateState: function( props ) {
            var date = props.selectedDate || props.viewDate,
                format = props.timeFormat,
                counters = []
            ;
            if ( format.toLowerCase().indexOf('h') !== -1 ) {
                counters.push('hours');
                if ( format.indexOf('m') !== -1 ) {
                    counters.push('minutes');
                    if ( format.indexOf('s') !== -1 ) {
                        counters.push('seconds');
                    }
                }
            }
            var daypart = false;
            if ( this.state !== null && this.props.timeFormat.toLowerCase().indexOf( ' a' ) !== -1 ) {
                if ( this.props.timeFormat.indexOf( ' A' ) !== -1 ) {
                    daypart = ( this.state.hours >= 12 ) ? 'PM' : 'AM';
                } else {
                    daypart = ( this.state.hours >= 12 ) ? 'pm' : 'am';
                }
            }
            return {
                hours: date.format( 'H' ),
                minutes: date.format( 'mm' ),
                seconds: date.format( 'ss' ),
                milliseconds: date.format( 'SSS' ),
                daypart: daypart,
                counters: counters
            };
        },
        renderCounter: function( type ) {
            if ( type !== 'daypart' ) {
                var value = this.state[ type ];
                if ( type === 'hours' && this.props.timeFormat.toLowerCase().indexOf( ' a' ) !== -1 ) {
                    value = ( value - 1 ) % 12 + 1;
                    if ( value === 0 ) {
                        value = 12;
                    }
                }
                return DOM.div({ key: type, className: 'rdtCounter' }, [
                    DOM.span({ key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'increase', type ) }, '▲' ),
                    DOM.div({ key: 'c', className: 'rdtCount' }, value ),
                    DOM.span({ key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'decrease', type ) }, '▼' )
                ]);
            }
            return '';
        },
        renderDayPart: function() {
            return DOM.div({ key: 'dayPart', className: 'rdtCounter' }, [
                DOM.span({ key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▲' ),
                DOM.div({ key: this.state.daypart, className: 'rdtCount' }, this.state.daypart ),
                DOM.span({ key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▼' )
            ]);
        },
        render: function() {
            var me = this,
                counters = []
            ;
            this.state.counters.forEach( function( c ) {
                if ( counters.length )
                    counters.push( DOM.div({ key: 'sep' + counters.length, className: 'rdtCounterSeparator' }, ':' ) );
                counters.push( me.renderCounter( c ) );
            });
            if ( this.state.daypart !== false ) {
                counters.push( me.renderDayPart() );
            }
            if ( this.state.counters.length === 3 && this.props.timeFormat.indexOf( 'S' ) !== -1 ) {
                counters.push( DOM.div({ className: 'rdtCounterSeparator', key: 'sep5' }, ':' ) );
                counters.push(
                    DOM.div({ className: 'rdtCounter rdtMilli', key: 'm' },
                        DOM.input({ value: this.state.milliseconds, type: 'text', onChange: this.updateMilli } )
                        )
                    );
            }
            return DOM.div({ className: 'rdtTime' },
                DOM.table({}, [
                    this.renderHeader(),
                    DOM.tbody({ key: 'b'}, DOM.tr({}, DOM.td({},
                        DOM.div({ className: 'rdtCounters' }, counters )
                    )))
                ])
            );
        },
        componentWillMount: function() {
            var me = this;
            me.timeConstraints = {
                hours: {
                    min: 0,
                    max: 23,
                    step: 1
                },
                minutes: {
                    min: 0,
                    max: 59,
                    step: 1
                },
                seconds: {
                    min: 0,
                    max: 59,
                    step: 1
                },
                milliseconds: {
                    min: 0,
                    max: 999,
                    step: 1
                }
            };
            ['hours', 'minutes', 'seconds', 'milliseconds'].forEach( function( type ) {
                assign(me.timeConstraints[ type ], me.props.timeConstraints[ type ]);
            });
            this.setState( this.calculateState( this.props ) );
        },
        componentWillReceiveProps: function( nextProps ) {
            this.setState( this.calculateState( nextProps ) );
        },
        updateMilli: function( e ) {
            var milli = parseInt( e.target.value, 10 );
            if ( milli === e.target.value && milli >= 0 && milli < 1000 ) {
                this.props.setTime( 'milliseconds', milli );
                this.setState( { milliseconds: milli } );
            }
        },
        renderHeader: function() {
            if ( !this.props.dateFormat )
                return null;
            var date = this.props.selectedDate || this.props.viewDate;
            return DOM.thead({ key: 'h' }, DOM.tr({},
                DOM.th({ className: 'rdtSwitch', colSpan: 4, onClick: this.props.showView( 'days' ) }, date.format( this.props.dateFormat ) )
            ));
        },
        onStartClicking: function( action, type ) {
            var me = this;
            return function() {
                var update = {};
                update[ type ] = me[ action ]( type );
                me.setState( update );
                me.timer = setTimeout( function() {
                    me.increaseTimer = setInterval( function() {
                        update[ type ] = me[ action ]( type );
                        me.setState( update );
                    }, 70);
                }, 500);
                me.mouseUpListener = function() {
                    clearTimeout( me.timer );
                    clearInterval( me.increaseTimer );
                    me.props.setTime( type, me.state[ type ] );
                    document.body.removeEventListener( 'mouseup', me.mouseUpListener );
                };
                document.body.addEventListener( 'mouseup', me.mouseUpListener );
            };
        },
        padValues: {
            hours: 1,
            minutes: 2,
            seconds: 2,
            milliseconds: 3
        },
        toggleDayPart: function( type ) { // type is always 'hours'
            var value = parseInt( this.state[ type ], 10) + 12;
            if ( value > this.timeConstraints[ type ].max )
                value = this.timeConstraints[ type ].min + ( value - ( this.timeConstraints[ type ].max + 1 ) );
            return this.pad( type, value );
        },
        increase: function( type ) {
            var value = parseInt( this.state[ type ], 10) + this.timeConstraints[ type ].step;
            if ( value > this.timeConstraints[ type ].max )
                value = this.timeConstraints[ type ].min + ( value - ( this.timeConstraints[ type ].max + 1 ) );
            return this.pad( type, value );
        },
        decrease: function( type ) {
            var value = parseInt( this.state[ type ], 10) - this.timeConstraints[ type ].step;
            if ( value < this.timeConstraints[ type ].min )
                value = this.timeConstraints[ type ].max + 1 - ( this.timeConstraints[ type ].min - value );
            return this.pad( type, value );
        },
        pad: function( type, value ) {
            var str = value + '';
            while ( str.length < this.padValues[ type ] )
                str = '0' + str;
            return str;
        }
    });
    module.exports = DateTimePickerTime;
/***/ },
/* 9 */
/***/ function(module, exports, __webpack_require__) {
    var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -1461,7 +1020,7 @@
      function setupBinding(root, factory) {
        if (true) {
          // AMD. Register as an anonymous module.
          !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(3),__webpack_require__(10)], __WEBPACK_AMD_DEFINE_RESULT__ = function(React, ReactDom) {
          !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(3),__webpack_require__(7)], __WEBPACK_AMD_DEFINE_RESULT__ = function(React, ReactDom) {
            return factory(root, React, ReactDom);
          }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
        } else if (typeof exports === 'object') {
@@ -1482,10 +1041,468 @@
/***/ },
/* 10 */
/* 7 */
/***/ function(module, exports) {
    module.exports = __WEBPACK_EXTERNAL_MODULE_10__;
    module.exports = __WEBPACK_EXTERNAL_MODULE_7__;
/***/ },
/* 8 */
/***/ function(module, exports, __webpack_require__) {
    'use strict';
    var React = __webpack_require__(3),
        onClickOutside = __webpack_require__(6)
    ;
    var DOM = React.DOM;
    var DateTimePickerMonths = onClickOutside( React.createClass({
        render: function() {
            return DOM.div({ className: 'rdtMonths' }, [
                DOM.table({ key: 'a' }, DOM.thead( {}, DOM.tr( {}, [
                    DOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 1, 'years' )}, '‹' )),
                    DOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2, 'data-value': this.props.viewDate.year() }, this.props.viewDate.year() ),
                    DOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 1, 'years' )}, '›' ))
                ]))),
                DOM.table({ key: 'months' }, DOM.tbody({ key: 'b' }, this.renderMonths()))
            ]);
        },
        renderMonths: function() {
            var date = this.props.selectedDate,
                month = this.props.viewDate.month(),
                year = this.props.viewDate.year(),
                rows = [],
                i = 0,
                months = [],
                renderer = this.props.renderMonth || this.renderMonth,
                isValid = this.props.isValidDate || this.alwaysValidDate,
                classes, props, currentMonth, isDisabled, noOfDaysInMonth, daysInMonth, validDay,
                // Date is irrelevant because we're only interested in month
                irrelevantDate = 1
            ;
            while (i < 12) {
                classes = 'rdtMonth';
                currentMonth =
                    this.props.viewDate.clone().set({ year: year, month: i, date: irrelevantDate });
                noOfDaysInMonth = currentMonth.endOf( 'month' ).format( 'D' );
                daysInMonth = Array.from({ length: noOfDaysInMonth }, function( e, i ) {
                    return i + 1;
                });
                validDay = daysInMonth.find(function( d ) {
                    var day = currentMonth.clone().set( 'date', d );
                    return isValid( day );
                });
                isDisabled = ( validDay === undefined );
                if ( isDisabled )
                    classes += ' rdtDisabled';
                if ( date && i === month && year === date.year() )
                    classes += ' rdtActive';
                props = {
                    key: i,
                    'data-value': i,
                    className: classes
                };
                if ( !isDisabled )
                    props.onClick = ( this.props.updateOn === 'months' ?
                        this.updateSelectedMonth : this.props.setDate( 'month' ) );
                months.push( renderer( props, i, year, date && date.clone() ) );
                if ( months.length === 4 ) {
                    rows.push( DOM.tr({ key: month + '_' + rows.length }, months ) );
                    months = [];
                }
                i++;
            }
            return rows;
        },
        updateSelectedMonth: function( event ) {
            this.props.updateSelectedDate( event );
        },
        renderMonth: function( props, month ) {
            var localMoment = this.props.viewDate;
            var monthStr = localMoment.localeData().monthsShort( localMoment.month( month ) );
            var strLength = 3;
            // Because some months are up to 5 characters long, we want to
            // use a fixed string length for consistency
            var monthStrFixedLength = monthStr.substring( 0, strLength );
            return DOM.td( props, capitalize( monthStrFixedLength ) );
        },
        alwaysValidDate: function() {
            return 1;
        },
      handleClickOutside: function() {
        this.props.handleClickOutside();
      }
    }));
    function capitalize( str ) {
        return str.charAt( 0 ).toUpperCase() + str.slice( 1 );
    }
    module.exports = DateTimePickerMonths;
/***/ },
/* 9 */
/***/ function(module, exports, __webpack_require__) {
    'use strict';
    var React = __webpack_require__(3),
        onClickOutside = __webpack_require__(6)
    ;
    var DOM = React.DOM;
    var DateTimePickerYears = onClickOutside( React.createClass({
        render: function() {
            var year = parseInt( this.props.viewDate.year() / 10, 10 ) * 10;
            return DOM.div({ className: 'rdtYears' }, [
                DOM.table({ key: 'a' }, DOM.thead({}, DOM.tr({}, [
                    DOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 10, 'years' )}, '‹' )),
                    DOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2 }, year + '-' + ( year + 9 ) ),
                    DOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 10, 'years' )}, '›' ))
                    ]))),
                DOM.table({ key: 'years' }, DOM.tbody( {}, this.renderYears( year )))
            ]);
        },
        renderYears: function( year ) {
            var years = [],
                i = -1,
                rows = [],
                renderer = this.props.renderYear || this.renderYear,
                selectedDate = this.props.selectedDate,
                isValid = this.props.isValidDate || this.alwaysValidDate,
                classes, props, currentYear, isDisabled, noOfDaysInYear, daysInYear, validDay,
                // Month and date are irrelevant here because
                // we're only interested in the year
                irrelevantMonth = 0,
                irrelevantDate = 1
            ;
            year--;
            while (i < 11) {
                classes = 'rdtYear';
                currentYear = this.props.viewDate.clone().set(
                    { year: year, month: irrelevantMonth, date: irrelevantDate } );
                // Not sure what 'rdtOld' is for, commenting out for now as it's not working properly
                // if ( i === -1 | i === 10 )
                    // classes += ' rdtOld';
                noOfDaysInYear = currentYear.endOf( 'year' ).format( 'DDD' );
                daysInYear = Array.from({ length: noOfDaysInYear }, function( e, i ) {
                    return i + 1;
                });
                validDay = daysInYear.find(function( d ) {
                    var day = currentYear.clone().dayOfYear( d );
                    return isValid( day );
                });
                isDisabled = ( validDay === undefined );
                if ( isDisabled )
                    classes += ' rdtDisabled';
                if ( selectedDate && selectedDate.year() === year )
                    classes += ' rdtActive';
                props = {
                    key: year,
                    'data-value': year,
                    className: classes
                };
                if ( !isDisabled )
                    props.onClick = ( this.props.updateOn === 'years' ?
                        this.updateSelectedYear : this.props.setDate('year') );
                years.push( renderer( props, year, selectedDate && selectedDate.clone() ));
                if ( years.length === 4 ) {
                    rows.push( DOM.tr({ key: i }, years ) );
                    years = [];
                }
                year++;
                i++;
            }
            return rows;
        },
        updateSelectedYear: function( event ) {
            this.props.updateSelectedDate( event );
        },
        renderYear: function( props, year ) {
            return DOM.td( props, year );
        },
        alwaysValidDate: function() {
            return 1;
        },
      handleClickOutside: function() {
        this.props.handleClickOutside();
      }
    }));
    module.exports = DateTimePickerYears;
/***/ },
/* 10 */
/***/ function(module, exports, __webpack_require__) {
    'use strict';
    var React = __webpack_require__(3),
        assign = __webpack_require__(1),
      onClickOutside = __webpack_require__(6)
    ;
    var DOM = React.DOM;
    var DateTimePickerTime = onClickOutside( React.createClass({
        getInitialState: function() {
            return this.calculateState( this.props );
        },
        calculateState: function( props ) {
            var date = props.selectedDate || props.viewDate,
                format = props.timeFormat,
                counters = []
            ;
            if ( format.toLowerCase().indexOf('h') !== -1 ) {
                counters.push('hours');
                if ( format.indexOf('m') !== -1 ) {
                    counters.push('minutes');
                    if ( format.indexOf('s') !== -1 ) {
                        counters.push('seconds');
                    }
                }
            }
            var daypart = false;
            if ( this.state !== null && this.props.timeFormat.toLowerCase().indexOf( ' a' ) !== -1 ) {
                if ( this.props.timeFormat.indexOf( ' A' ) !== -1 ) {
                    daypart = ( this.state.hours >= 12 ) ? 'PM' : 'AM';
                } else {
                    daypart = ( this.state.hours >= 12 ) ? 'pm' : 'am';
                }
            }
            return {
                hours: date.format( 'H' ),
                minutes: date.format( 'mm' ),
                seconds: date.format( 'ss' ),
                milliseconds: date.format( 'SSS' ),
                daypart: daypart,
                counters: counters
            };
        },
        renderCounter: function( type ) {
            if ( type !== 'daypart' ) {
                var value = this.state[ type ];
                if ( type === 'hours' && this.props.timeFormat.toLowerCase().indexOf( ' a' ) !== -1 ) {
                    value = ( value - 1 ) % 12 + 1;
                    if ( value === 0 ) {
                        value = 12;
                    }
                }
                return DOM.div({ key: type, className: 'rdtCounter' }, [
                    DOM.span({ key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'increase', type ) }, '▲' ),
                    DOM.div({ key: 'c', className: 'rdtCount' }, value ),
                    DOM.span({ key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'decrease', type ) }, '▼' )
                ]);
            }
            return '';
        },
        renderDayPart: function() {
            return DOM.div({ key: 'dayPart', className: 'rdtCounter' }, [
                DOM.span({ key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▲' ),
                DOM.div({ key: this.state.daypart, className: 'rdtCount' }, this.state.daypart ),
                DOM.span({ key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▼' )
            ]);
        },
        render: function() {
            var me = this,
                counters = []
            ;
            this.state.counters.forEach( function( c ) {
                if ( counters.length )
                    counters.push( DOM.div({ key: 'sep' + counters.length, className: 'rdtCounterSeparator' }, ':' ) );
                counters.push( me.renderCounter( c ) );
            });
            if ( this.state.daypart !== false ) {
                counters.push( me.renderDayPart() );
            }
            if ( this.state.counters.length === 3 && this.props.timeFormat.indexOf( 'S' ) !== -1 ) {
                counters.push( DOM.div({ className: 'rdtCounterSeparator', key: 'sep5' }, ':' ) );
                counters.push(
                    DOM.div({ className: 'rdtCounter rdtMilli', key: 'm' },
                        DOM.input({ value: this.state.milliseconds, type: 'text', onChange: this.updateMilli } )
                        )
                    );
            }
            return DOM.div({ className: 'rdtTime' },
                DOM.table({}, [
                    this.renderHeader(),
                    DOM.tbody({ key: 'b'}, DOM.tr({}, DOM.td({},
                        DOM.div({ className: 'rdtCounters' }, counters )
                    )))
                ])
            );
        },
        componentWillMount: function() {
            var me = this;
            me.timeConstraints = {
                hours: {
                    min: 0,
                    max: 23,
                    step: 1
                },
                minutes: {
                    min: 0,
                    max: 59,
                    step: 1
                },
                seconds: {
                    min: 0,
                    max: 59,
                    step: 1
                },
                milliseconds: {
                    min: 0,
                    max: 999,
                    step: 1
                }
            };
            ['hours', 'minutes', 'seconds', 'milliseconds'].forEach( function( type ) {
                assign(me.timeConstraints[ type ], me.props.timeConstraints[ type ]);
            });
            this.setState( this.calculateState( this.props ) );
        },
        componentWillReceiveProps: function( nextProps ) {
            this.setState( this.calculateState( nextProps ) );
        },
        updateMilli: function( e ) {
            var milli = parseInt( e.target.value, 10 );
            if ( milli === e.target.value && milli >= 0 && milli < 1000 ) {
                this.props.setTime( 'milliseconds', milli );
                this.setState( { milliseconds: milli } );
            }
        },
        renderHeader: function() {
            if ( !this.props.dateFormat )
                return null;
            var date = this.props.selectedDate || this.props.viewDate;
            return DOM.thead({ key: 'h' }, DOM.tr({},
                DOM.th({ className: 'rdtSwitch', colSpan: 4, onClick: this.props.showView( 'days' ) }, date.format( this.props.dateFormat ) )
            ));
        },
        onStartClicking: function( action, type ) {
            var me = this;
            return function() {
                var update = {};
                update[ type ] = me[ action ]( type );
                me.setState( update );
                me.timer = setTimeout( function() {
                    me.increaseTimer = setInterval( function() {
                        update[ type ] = me[ action ]( type );
                        me.setState( update );
                    }, 70);
                }, 500);
                me.mouseUpListener = function() {
                    clearTimeout( me.timer );
                    clearInterval( me.increaseTimer );
                    me.props.setTime( type, me.state[ type ] );
                    document.body.removeEventListener( 'mouseup', me.mouseUpListener );
                };
                document.body.addEventListener( 'mouseup', me.mouseUpListener );
            };
        },
        padValues: {
            hours: 1,
            minutes: 2,
            seconds: 2,
            milliseconds: 3
        },
        toggleDayPart: function( type ) { // type is always 'hours'
            var value = parseInt( this.state[ type ], 10) + 12;
            if ( value > this.timeConstraints[ type ].max )
                value = this.timeConstraints[ type ].min + ( value - ( this.timeConstraints[ type ].max + 1 ) );
            return this.pad( type, value );
        },
        increase: function( type ) {
            var value = parseInt( this.state[ type ], 10) + this.timeConstraints[ type ].step;
            if ( value > this.timeConstraints[ type ].max )
                value = this.timeConstraints[ type ].min + ( value - ( this.timeConstraints[ type ].max + 1 ) );
            return this.pad( type, value );
        },
        decrease: function( type ) {
            var value = parseInt( this.state[ type ], 10) - this.timeConstraints[ type ].step;
            if ( value < this.timeConstraints[ type ].min )
                value = this.timeConstraints[ type ].max + 1 - ( this.timeConstraints[ type ].min - value );
            return this.pad( type, value );
        },
        pad: function( type, value ) {
            var str = value + '';
            while ( str.length < this.padValues[ type ] )
                str = '0' + str;
            return str;
        },
      handleClickOutside: function() {
        this.props.handleClickOutside();
      }
    }));
    module.exports = DateTimePickerTime;
/***/ }
/******/ ])
dist/react-datetime.min.js
@@ -1,7 +1,7 @@
/*
react-datetime v2.8.7
react-datetime v2.8.8
https://github.com/YouCanBookMe/react-datetime
MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("moment"),require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["moment","React","ReactDOM"],e):"object"==typeof exports?exports.Datetime=e(require("moment"),require("React"),require("ReactDOM")):t.Datetime=e(t.moment,t.React,t.ReactDOM)}(this,function(t,e,s){return function(t){function e(n){if(s[n])return s[n].exports;var a=s[n]={exports:{},id:n,loaded:!1};return t[n].call(a.exports,a,a.exports,e),a.loaded=!0,a.exports}var s={};return e.m=t,e.c=s,e.p="",e(0)}([function(t,e,s){"use strict";var n=s(1),a=s(2),i=s(3),r=s(4),o=i.PropTypes,c=i.createClass({propTypes:{onFocus:o.func,onBlur:o.func,onChange:o.func,locale:o.string,utc:o.bool,input:o.bool,inputProps:o.object,timeConstraints:o.object,viewMode:o.oneOf(["years","months","days","time"]),isValidDate:o.func,open:o.bool,strictParsing:o.bool,closeOnSelect:o.bool,closeOnTab:o.bool},getDefaultProps:function(){var t=function(){};return{className:"",defaultValue:"",inputProps:{},input:!0,onFocus:t,onBlur:t,onChange:t,timeFormat:!0,timeConstraints:{},dateFormat:!0,strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,utc:!1}},getInitialState:function(){var t=this.getStateFromProps(this.props);return void 0===t.open&&(t.open=!this.props.input),t.currentView=this.props.dateFormat?this.props.viewMode||t.updateOn||"days":"time",t},getStateFromProps:function(t){var e,s,n,a,i=this.getFormats(t),r=t.value||t.defaultValue;return r&&"string"==typeof r?e=this.localMoment(r,i.datetime):r&&(e=this.localMoment(r)),e&&!e.isValid()&&(e=null),s=e?e.clone().startOf("month"):this.localMoment().startOf("month"),n=this.getUpdateOn(i),a=e?e.format(i.datetime):r.isValid&&!r.isValid()?"":r||"",{updateOn:n,inputFormat:i.datetime,viewDate:s,selectedDate:e,inputValue:a,open:t.open}},getUpdateOn:function(t){return t.date.match(/[lLD]/)?"days":t.date.indexOf("M")!==-1?"months":t.date.indexOf("Y")!==-1?"years":"days"},getFormats:function(t){var e={date:t.dateFormat||"",time:t.timeFormat||""},s=this.localMoment(t.date,null,t).localeData();return e.date===!0?e.date=s.longDateFormat("L"):"days"!==this.getUpdateOn(e)&&(e.time=""),e.time===!0&&(e.time=s.longDateFormat("LT")),e.datetime=e.date&&e.time?e.date+" "+e.time:e.date||e.time,e},componentWillReceiveProps:function(t){var e=this.getFormats(t),s={};if(t.value===this.props.value&&e.datetime===this.getFormats(this.props).datetime||(s=this.getStateFromProps(t)),void 0===s.open&&(this.props.closeOnSelect&&"time"!==this.state.currentView?s.open=!1:s.open=this.state.open),t.viewMode!==this.props.viewMode&&(s.currentView=t.viewMode),t.locale!==this.props.locale){if(this.state.viewDate){var n=this.state.viewDate.clone().locale(t.locale);s.viewDate=n}if(this.state.selectedDate){var a=this.state.selectedDate.clone().locale(t.locale);s.selectedDate=a,s.inputValue=a.format(e.datetime)}}t.utc!==this.props.utc&&(t.utc?(this.state.viewDate&&(s.viewDate=this.state.viewDate.clone().utc()),this.state.selectedDate&&(s.selectedDate=this.state.selectedDate.clone().utc(),s.inputValue=s.selectedDate.format(e.datetime))):(this.state.viewDate&&(s.viewDate=this.state.viewDate.clone().local()),this.state.selectedDate&&(s.selectedDate=this.state.selectedDate.clone().local(),s.inputValue=s.selectedDate.format(e.datetime)))),this.setState(s)},onInputChange:function(t){var e=null===t.target?t:t.target.value,s=this.localMoment(e,this.state.inputFormat),n={inputValue:e};return s.isValid()&&!this.props.value?(n.selectedDate=s,n.viewDate=s.clone().startOf("month")):n.selectedDate=null,this.setState(n,function(){return this.props.onChange(s.isValid()?s:this.state.inputValue)})},onInputKey:function(t){9===t.which&&this.props.closeOnTab&&this.closeCalendar()},showView:function(t){var e=this;return function(){e.setState({currentView:t})}},setDate:function(t){var e=this,s={month:"days",year:"months"};return function(n){e.setState({viewDate:e.state.viewDate.clone()[t](parseInt(n.target.getAttribute("data-value"),10)).startOf(t),currentView:s[t]})}},addTime:function(t,e,s){return this.updateTime("add",t,e,s)},subtractTime:function(t,e,s){return this.updateTime("subtract",t,e,s)},updateTime:function(t,e,s,n){var a=this;return function(){var i={},r=n?"selectedDate":"viewDate";i[r]=a.state[r].clone()[t](e,s),a.setState(i)}},allowedSetTime:["hours","minutes","seconds","milliseconds"],setTime:function(t,e){var s,n=this.allowedSetTime.indexOf(t)+1,a=this.state,i=(a.selectedDate||a.viewDate).clone();for(i[t](e);n<this.allowedSetTime.length;n++)s=this.allowedSetTime[n],i[s](i[s]());this.props.value||this.setState({selectedDate:i,inputValue:i.format(a.inputFormat)}),this.props.onChange(i)},updateSelectedDate:function(t,e){var s,n=t.target,a=0,i=this.state.viewDate,r=this.state.selectedDate||i;if(n.className.indexOf("rdtDay")!==-1?(n.className.indexOf("rdtNew")!==-1?a=1:n.className.indexOf("rdtOld")!==-1&&(a=-1),s=i.clone().month(i.month()+a).date(parseInt(n.getAttribute("data-value"),10))):n.className.indexOf("rdtMonth")!==-1?s=i.clone().month(parseInt(n.getAttribute("data-value"),10)).date(r.date()):n.className.indexOf("rdtYear")!==-1&&(s=i.clone().month(r.month()).date(r.date()).year(parseInt(n.getAttribute("data-value"),10))),s.hours(r.hours()).minutes(r.minutes()).seconds(r.seconds()).milliseconds(r.milliseconds()),this.props.value)this.props.closeOnSelect&&e&&this.closeCalendar();else{var o=!(this.props.closeOnSelect&&e);o||this.props.onBlur(s),this.setState({selectedDate:s,viewDate:s.clone().startOf("month"),inputValue:s.format(this.state.inputFormat),open:o})}this.props.onChange(s)},openCalendar:function(){this.state.open||this.setState({open:!0},function(){this.props.onFocus()})},closeCalendar:function(){this.setState({open:!1},function(){this.props.onBlur(this.state.selectedDate||this.state.inputValue)})},handleClickOutside:function(){this.props.input&&this.state.open&&!this.props.open&&this.setState({open:!1},function(){this.props.onBlur(this.state.selectedDate||this.state.inputValue)})},localMoment:function(t,e,s){s=s||this.props;var n=s.utc?a.utc:a,i=n(t,e,s.strictParsing);return s.locale&&i.locale(s.locale),i},componentProps:{fromProps:["value","isValidDate","renderDay","renderMonth","renderYear","timeConstraints"],fromState:["viewDate","selectedDate","updateOn"],fromThis:["setDate","setTime","showView","addTime","subtractTime","updateSelectedDate","localMoment"]},getComponentProps:function(){var t=this,e=this.getFormats(this.props),s={dateFormat:e.date,timeFormat:e.time};return this.componentProps.fromProps.forEach(function(e){s[e]=t.props[e]}),this.componentProps.fromState.forEach(function(e){s[e]=t.state[e]}),this.componentProps.fromThis.forEach(function(e){s[e]=t[e]}),s},render:function(){var t=i.DOM,e="rdt"+(this.props.className?Array.isArray(this.props.className)?" "+this.props.className.join(" "):" "+this.props.className:""),s=[];return this.props.input?s=[t.input(n({key:"i",type:"text",className:"form-control",onFocus:this.openCalendar,onChange:this.onInputChange,onKeyDown:this.onInputKey,value:this.state.inputValue},this.props.inputProps))]:e+=" rdtStatic",this.state.open&&(e+=" rdtOpen"),t.div({className:e},s.concat(t.div({key:"dt",className:"rdtPicker"},i.createElement(r,{view:this.state.currentView,viewProps:this.getComponentProps(),onClickOutside:this.handleClickOutside}))))}});c.moment=a,t.exports=c},function(t,e){"use strict";function s(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function n(t){var e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t))),e.filter(function(e){return a.call(t,e)})}var a=Object.prototype.propertyIsEnumerable;t.exports=Object.assign||function(t,e){for(var a,i,r=s(t),o=1;o<arguments.length;o++){a=arguments[o],i=n(Object(a));for(var c=0;c<i.length;c++)r[i[c]]=a[i[c]]}return r}},function(e,s){e.exports=t},function(t,s){t.exports=e},function(t,e,s){var n=s(3),a=s(5),i=s(6),r=s(7),o=s(8),c=s(9),l=c(n.createClass({viewComponents:{days:a,months:i,years:r,time:o},render:function(){return n.createElement(this.viewComponents[this.props.view],this.props.viewProps)},handleClickOutside:function(){this.props.onClickOutside()}}));t.exports=l},function(t,e,s){"use strict";var n=s(3),a=s(2),i=n.DOM,r=n.createClass({render:function(){var t,e=this.renderFooter(),s=this.props.viewDate,n=s.localeData();return t=[i.thead({key:"th"},[i.tr({key:"h"},[i.th({key:"p",className:"rdtPrev"},i.span({onClick:this.props.subtractTime(1,"months")},"‹")),i.th({key:"s",className:"rdtSwitch",onClick:this.props.showView("months"),colSpan:5,"data-value":this.props.viewDate.month()},n.months(s)+" "+s.year()),i.th({key:"n",className:"rdtNext"},i.span({onClick:this.props.addTime(1,"months")},"›"))]),i.tr({key:"d"},this.getDaysOfWeek(n).map(function(t,e){return i.th({key:t+e,className:"dow"},t)}))]),i.tbody({key:"tb"},this.renderDays())],e&&t.push(e),i.div({className:"rdtDays"},i.table({},t))},getDaysOfWeek:function(t){var e=t._weekdaysMin,s=t.firstDayOfWeek(),n=[],a=0;return e.forEach(function(t){n[(7+a++-s)%7]=t}),n},renderDays:function(){var t,e,s,n,r=this.props.viewDate,o=this.props.selectedDate&&this.props.selectedDate.clone(),c=r.clone().subtract(1,"months"),l=r.year(),u=r.month(),d=[],p=[],h=this.props.renderDay||this.renderDay,m=this.props.isValidDate||this.alwaysValidDate;c.date(c.daysInMonth()).startOf("week");for(var f=c.clone().add(42,"d");c.isBefore(f);)t="rdtDay",n=c.clone(),c.year()===l&&c.month()<u||c.year()<l?t+=" rdtOld":(c.year()===l&&c.month()>u||c.year()>l)&&(t+=" rdtNew"),o&&c.isSame(o,"day")&&(t+=" rdtActive"),c.isSame(a(),"day")&&(t+=" rdtToday"),e=!m(n,o),e&&(t+=" rdtDisabled"),s={key:c.format("M_D"),"data-value":c.date(),className:t},e||(s.onClick=this.updateSelectedDate),p.push(h(s,n,o)),7===p.length&&(d.push(i.tr({key:c.format("M_D")},p)),p=[]),c.add(1,"d");return d},updateSelectedDate:function(t){this.props.updateSelectedDate(t,!0)},renderDay:function(t,e){return i.td(t,e.date())},renderFooter:function(){if(!this.props.timeFormat)return"";var t=this.props.selectedDate||this.props.viewDate;return i.tfoot({key:"tf"},i.tr({},i.td({onClick:this.props.showView("time"),colSpan:7,className:"rdtTimeToggle"},t.format(this.props.timeFormat))))},alwaysValidDate:function(){return 1}});t.exports=r},function(t,e,s){"use strict";function n(t){return t.charAt(0).toUpperCase()+t.slice(1)}var a=s(3),i=a.DOM,r=a.createClass({render:function(){return i.div({className:"rdtMonths"},[i.table({key:"a"},i.thead({},i.tr({},[i.th({key:"prev",className:"rdtPrev"},i.span({onClick:this.props.subtractTime(1,"years")},"‹")),i.th({key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2,"data-value":this.props.viewDate.year()},this.props.viewDate.year()),i.th({key:"next",className:"rdtNext"},i.span({onClick:this.props.addTime(1,"years")},"›"))]))),i.table({key:"months"},i.tbody({key:"b"},this.renderMonths()))])},renderMonths:function(){for(var t,e,s,n,a,r,o,c=this.props.selectedDate,l=this.props.viewDate.month(),u=this.props.viewDate.year(),d=[],p=0,h=[],m=this.props.renderMonth||this.renderMonth,f=this.props.isValidDate||this.alwaysValidDate,v=1;p<12;)t="rdtMonth",s=this.props.viewDate.clone().set({year:u,month:p,date:v}),a=s.endOf("month").format("D"),r=Array.from({length:a},function(t,e){return e+1}),o=r.find(function(t){var e=s.clone().set("date",t);return f(e)}),n=void 0===o,n&&(t+=" rdtDisabled"),c&&p===l&&u===c.year()&&(t+=" rdtActive"),e={key:p,"data-value":p,className:t},n||(e.onClick="months"===this.props.updateOn?this.updateSelectedMonth:this.props.setDate("month")),h.push(m(e,p,u,c&&c.clone())),4===h.length&&(d.push(i.tr({key:l+"_"+d.length},h)),h=[]),p++;return d},updateSelectedMonth:function(t){this.props.updateSelectedDate(t,!0)},renderMonth:function(t,e){var s=this.props.viewDate,a=s.localeData().monthsShort(s.month(e)),r=3,o=a.substring(0,r);return i.td(t,n(o))},alwaysValidDate:function(){return 1}});t.exports=r},function(t,e,s){"use strict";var n=s(3),a=n.DOM,i=n.createClass({render:function(){var t=10*parseInt(this.props.viewDate.year()/10,10);return a.div({className:"rdtYears"},[a.table({key:"a"},a.thead({},a.tr({},[a.th({key:"prev",className:"rdtPrev"},a.span({onClick:this.props.subtractTime(10,"years")},"‹")),a.th({key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2},t+"-"+(t+9)),a.th({key:"next",className:"rdtNext"},a.span({onClick:this.props.addTime(10,"years")},"›"))]))),a.table({key:"years"},a.tbody({},this.renderYears(t)))])},renderYears:function(t){var e,s,n,i,r,o,c,l=[],u=-1,d=[],p=this.props.renderYear||this.renderYear,h=this.props.selectedDate,m=this.props.isValidDate||this.alwaysValidDate,f=0,v=1;for(t--;u<11;)e="rdtYear",n=this.props.viewDate.clone().set({year:t,month:f,date:v}),r=n.endOf("year").format("DDD"),o=Array.from({length:r},function(t,e){return e+1}),c=o.find(function(t){var e=n.clone().dayOfYear(t);return m(e)}),i=void 0===c,i&&(e+=" rdtDisabled"),h&&h.year()===t&&(e+=" rdtActive"),s={key:t,"data-value":t,className:e},i||(s.onClick="years"===this.props.updateOn?this.updateSelectedYear:this.props.setDate("year")),l.push(p(s,t,h&&h.clone())),4===l.length&&(d.push(a.tr({key:u},l)),l=[]),t++,u++;return d},updateSelectedYear:function(t){this.props.updateSelectedDate(t,!0)},renderYear:function(t,e){return a.td(t,e)},alwaysValidDate:function(){return 1}});t.exports=i},function(t,e,s){"use strict";var n=s(3),a=s(1),i=n.DOM,r=n.createClass({getInitialState:function(){return this.calculateState(this.props)},calculateState:function(t){var e=t.selectedDate||t.viewDate,s=t.timeFormat,n=[];s.toLowerCase().indexOf("h")!==-1&&(n.push("hours"),s.indexOf("m")!==-1&&(n.push("minutes"),s.indexOf("s")!==-1&&n.push("seconds")));var a=!1;return null!==this.state&&this.props.timeFormat.toLowerCase().indexOf(" a")!==-1&&(a=this.props.timeFormat.indexOf(" A")!==-1?this.state.hours>=12?"PM":"AM":this.state.hours>=12?"pm":"am"),{hours:e.format("H"),minutes:e.format("mm"),seconds:e.format("ss"),milliseconds:e.format("SSS"),daypart:a,counters:n}},renderCounter:function(t){if("daypart"!==t){var e=this.state[t];return"hours"===t&&this.props.timeFormat.toLowerCase().indexOf(" a")!==-1&&(e=(e-1)%12+1,0===e&&(e=12)),i.div({key:t,className:"rdtCounter"},[i.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("increase",t)},"▲"),i.div({key:"c",className:"rdtCount"},e),i.span({key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("decrease",t)},"▼")])}return""},renderDayPart:function(){return i.div({key:"dayPart",className:"rdtCounter"},[i.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours")},"▲"),i.div({key:this.state.daypart,className:"rdtCount"},this.state.daypart),i.span({key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours")},"▼")])},render:function(){var t=this,e=[];return this.state.counters.forEach(function(s){e.length&&e.push(i.div({key:"sep"+e.length,className:"rdtCounterSeparator"},":")),e.push(t.renderCounter(s))}),this.state.daypart!==!1&&e.push(t.renderDayPart()),3===this.state.counters.length&&this.props.timeFormat.indexOf("S")!==-1&&(e.push(i.div({className:"rdtCounterSeparator",key:"sep5"},":")),e.push(i.div({className:"rdtCounter rdtMilli",key:"m"},i.input({value:this.state.milliseconds,type:"text",onChange:this.updateMilli})))),i.div({className:"rdtTime"},i.table({},[this.renderHeader(),i.tbody({key:"b"},i.tr({},i.td({},i.div({className:"rdtCounters"},e))))]))},componentWillMount:function(){var t=this;t.timeConstraints={hours:{min:0,max:23,step:1},minutes:{min:0,max:59,step:1},seconds:{min:0,max:59,step:1},milliseconds:{min:0,max:999,step:1}},["hours","minutes","seconds","milliseconds"].forEach(function(e){a(t.timeConstraints[e],t.props.timeConstraints[e])}),this.setState(this.calculateState(this.props))},componentWillReceiveProps:function(t){this.setState(this.calculateState(t))},updateMilli:function(t){var e=parseInt(t.target.value,10);e===t.target.value&&e>=0&&e<1e3&&(this.props.setTime("milliseconds",e),this.setState({milliseconds:e}))},renderHeader:function(){if(!this.props.dateFormat)return null;var t=this.props.selectedDate||this.props.viewDate;return i.thead({key:"h"},i.tr({},i.th({className:"rdtSwitch",colSpan:4,onClick:this.props.showView("days")},t.format(this.props.dateFormat))))},onStartClicking:function(t,e){var s=this;return function(){var n={};n[e]=s[t](e),s.setState(n),s.timer=setTimeout(function(){s.increaseTimer=setInterval(function(){n[e]=s[t](e),s.setState(n)},70)},500),s.mouseUpListener=function(){clearTimeout(s.timer),clearInterval(s.increaseTimer),s.props.setTime(e,s.state[e]),document.body.removeEventListener("mouseup",s.mouseUpListener)},document.body.addEventListener("mouseup",s.mouseUpListener)}},padValues:{hours:1,minutes:2,seconds:2,milliseconds:3},toggleDayPart:function(t){var e=parseInt(this.state[t],10)+12;return e>this.timeConstraints[t].max&&(e=this.timeConstraints[t].min+(e-(this.timeConstraints[t].max+1))),this.pad(t,e)},increase:function(t){var e=parseInt(this.state[t],10)+this.timeConstraints[t].step;return e>this.timeConstraints[t].max&&(e=this.timeConstraints[t].min+(e-(this.timeConstraints[t].max+1))),this.pad(t,e)},decrease:function(t){var e=parseInt(this.state[t],10)-this.timeConstraints[t].step;return e<this.timeConstraints[t].min&&(e=this.timeConstraints[t].max+1-(this.timeConstraints[t].min-e)),this.pad(t,e)},pad:function(t,e){for(var s=e+"";s.length<this.padValues[t];)s="0"+s;return s}});t.exports=r},function(t,e,s){var n,a;!function(i){function r(t,e,s){return function(t,n){var a=e.createClass({statics:{getClass:function(){return t.getClass?t.getClass():t}},getInstance:function(){return t.prototype.isReactComponent?this.refs.instance:this},__outsideClickHandler:function(){},componentDidMount:function(){if("undefined"!=typeof document&&document.createElement){var t,a=this.getInstance();if(n&&"function"==typeof n.handleClickOutside){if(t=n.handleClickOutside(a),"function"!=typeof t)throw new Error("Component lacks a function for processing outside click events specified by the handleClickOutside config option.")}else if("function"==typeof a.handleClickOutside)t=e.Component.prototype.isPrototypeOf(a)?a.handleClickOutside.bind(a):a.handleClickOutside;else{if("function"!=typeof a.props.handleClickOutside)throw new Error("Component lacks a handleClickOutside(event) function for processing outside click events.");t=a.props.handleClickOutside}var i=s.findDOMNode(a);null===i&&(console.warn("Antipattern warning: there was no DOM node associated with the component that is being wrapped by outsideClick."),console.warn(["This is typically caused by having a component that starts life with a render function that","returns `null` (due to a state or props value), so that the component 'exist' in the React","chain of components, but not in the DOM.\n\nInstead, you need to refactor your code so that the","decision of whether or not to show your component is handled by the parent, in their render()","function.\n\nIn code, rather than:\n\n  A{render(){return check? <.../> : null;}\n  B{render(){<A check=... />}\n\nmake sure that you","use:\n\n  A{render(){return <.../>}\n  B{render(){return <...>{ check ? <A/> : null }<...>}}\n\nThat is:","the parent is always responsible for deciding whether or not to render any of its children.","It is not the child's responsibility to decide whether a render instruction from above should","get ignored or not by returning `null`.\n\nWhen any component gets its render() function called,","that is the signal that it should be rendering its part of the UI. It may in turn decide not to","render all of *its* children, but it should never return `null` for itself. It is not responsible","for that decision."].join(" ")));var r=this.__outsideClickHandler=f(i,a,t,this.props.outsideClickIgnoreClass||u,this.props.excludeScrollbar||!1,this.props.preventDefault||!1,this.props.stopPropagation||!1),o=c.length;c.push(this),l[o]=r,this.props.disableOnClickOutside||this.enableOnClickOutside()}},componentWillReceiveProps:function(t){this.props.disableOnClickOutside&&!t.disableOnClickOutside?this.enableOnClickOutside():!this.props.disableOnClickOutside&&t.disableOnClickOutside&&this.disableOnClickOutside()},componentWillUnmount:function(){this.disableOnClickOutside(),this.__outsideClickHandler=!1;var t=c.indexOf(this);t>-1&&(l[t]&&l.splice(t,1),c.splice(t,1))},enableOnClickOutside:function(){var t=this.__outsideClickHandler;if("undefined"!=typeof document){var e=this.props.eventTypes||d;e.forEach||(e=[e]),e.forEach(function(e){document.addEventListener(e,t)})}},disableOnClickOutside:function(){var t=this.__outsideClickHandler;if("undefined"!=typeof document){var e=this.props.eventTypes||d;e.forEach||(e=[e]),e.forEach(function(e){document.removeEventListener(e,t)})}},render:function(){var s=this.props,n={};return Object.keys(this.props).forEach(function(t){"excludeScrollbar"!==t&&(n[t]=s[t])}),t.prototype.isReactComponent&&(n.ref="instance"),n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,e.createElement(t,n)}});return function(t,e){var s=t.displayName||t.name||"Component";e.displayName="OnClickOutside("+s+")"}(t,a),a}}function o(i,r){n=[s(3),s(10)],a=function(t,e){return r(i,t,e)}.apply(e,n),!(void 0!==a&&(t.exports=a))}var c=[],l=[],u="ignore-react-onclickoutside",d=["mousedown","touchstart"],p=function(t,e,s){return t===e||(t.correspondingElement?t.correspondingElement.classList.contains(s):t.classList.contains(s))},h=function(t,e,s){if(t===e)return!0;for(;t.parentNode;){if(p(t,e,s))return!0;t=t.parentNode}return t},m=function(t){return document.documentElement.clientWidth<=t.clientX},f=function(t,e,s,n,a,i,r){return function(e){i&&e.preventDefault(),r&&e.stopPropagation();var o=e.target;a&&m(e)||h(o,t,n)!==document||s(e)}};o(i,r)}(this)},function(t,e){t.exports=s}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("moment"),require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["moment","React","ReactDOM"],e):"object"==typeof exports?exports.Datetime=e(require("moment"),require("React"),require("ReactDOM")):t.Datetime=e(t.moment,t.React,t.ReactDOM)}(this,function(t,e,s){return function(t){function e(n){if(s[n])return s[n].exports;var i=s[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var s={};return e.m=t,e.c=s,e.p="",e(0)}([function(t,e,s){"use strict";var n=s(1),i=s(2),a=s(3),r=s(4),o=a.PropTypes,c=a.createClass({propTypes:{onFocus:o.func,onBlur:o.func,onChange:o.func,locale:o.string,utc:o.bool,input:o.bool,inputProps:o.object,timeConstraints:o.object,viewMode:o.oneOf(["years","months","days","time"]),isValidDate:o.func,open:o.bool,strictParsing:o.bool,closeOnSelect:o.bool,closeOnTab:o.bool},getDefaultProps:function(){var t=function(){};return{className:"",defaultValue:"",inputProps:{},input:!0,onFocus:t,onBlur:t,onChange:t,timeFormat:!0,timeConstraints:{},dateFormat:!0,strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,utc:!1}},getInitialState:function(){var t=this.getStateFromProps(this.props);return void 0===t.open&&(t.open=!this.props.input),t.currentView=this.props.dateFormat?this.props.viewMode||t.updateOn||"days":"time",t},getStateFromProps:function(t){var e,s,n,i,a=this.getFormats(t),r=t.value||t.defaultValue;return r&&"string"==typeof r?e=this.localMoment(r,a.datetime):r&&(e=this.localMoment(r)),e&&!e.isValid()&&(e=null),s=e?e.clone().startOf("month"):this.localMoment().startOf("month"),n=this.getUpdateOn(a),i=e?e.format(a.datetime):r.isValid&&!r.isValid()?"":r||"",{updateOn:n,inputFormat:a.datetime,viewDate:s,selectedDate:e,inputValue:i,open:t.open}},getUpdateOn:function(t){return t.date.match(/[lLD]/)?"days":t.date.indexOf("M")!==-1?"months":t.date.indexOf("Y")!==-1?"years":"days"},getFormats:function(t){var e={date:t.dateFormat||"",time:t.timeFormat||""},s=this.localMoment(t.date,null,t).localeData();return e.date===!0?e.date=s.longDateFormat("L"):"days"!==this.getUpdateOn(e)&&(e.time=""),e.time===!0&&(e.time=s.longDateFormat("LT")),e.datetime=e.date&&e.time?e.date+" "+e.time:e.date||e.time,e},componentWillReceiveProps:function(t){var e=this.getFormats(t),s={};if(t.value===this.props.value&&e.datetime===this.getFormats(this.props).datetime||(s=this.getStateFromProps(t)),void 0===s.open&&(this.props.closeOnSelect&&"time"!==this.state.currentView?s.open=!1:s.open=this.state.open),t.viewMode!==this.props.viewMode&&(s.currentView=t.viewMode),t.locale!==this.props.locale){if(this.state.viewDate){var n=this.state.viewDate.clone().locale(t.locale);s.viewDate=n}if(this.state.selectedDate){var i=this.state.selectedDate.clone().locale(t.locale);s.selectedDate=i,s.inputValue=i.format(e.datetime)}}t.utc!==this.props.utc&&(t.utc?(this.state.viewDate&&(s.viewDate=this.state.viewDate.clone().utc()),this.state.selectedDate&&(s.selectedDate=this.state.selectedDate.clone().utc(),s.inputValue=s.selectedDate.format(e.datetime))):(this.state.viewDate&&(s.viewDate=this.state.viewDate.clone().local()),this.state.selectedDate&&(s.selectedDate=this.state.selectedDate.clone().local(),s.inputValue=s.selectedDate.format(e.datetime)))),this.setState(s)},onInputChange:function(t){var e=null===t.target?t:t.target.value,s=this.localMoment(e,this.state.inputFormat),n={inputValue:e};return s.isValid()&&!this.props.value?(n.selectedDate=s,n.viewDate=s.clone().startOf("month")):n.selectedDate=null,this.setState(n,function(){return this.props.onChange(s.isValid()?s:this.state.inputValue)})},onInputKey:function(t){9===t.which&&this.props.closeOnTab&&this.closeCalendar()},showView:function(t){var e=this;return function(){e.setState({currentView:t})}},setDate:function(t){var e=this,s={month:"days",year:"months"};return function(n){e.setState({viewDate:e.state.viewDate.clone()[t](parseInt(n.target.getAttribute("data-value"),10)).startOf(t),currentView:s[t]})}},addTime:function(t,e,s){return this.updateTime("add",t,e,s)},subtractTime:function(t,e,s){return this.updateTime("subtract",t,e,s)},updateTime:function(t,e,s,n){var i=this;return function(){var a={},r=n?"selectedDate":"viewDate";a[r]=i.state[r].clone()[t](e,s),i.setState(a)}},allowedSetTime:["hours","minutes","seconds","milliseconds"],setTime:function(t,e){var s,n=this.allowedSetTime.indexOf(t)+1,i=this.state,a=(i.selectedDate||i.viewDate).clone();for(a[t](e);n<this.allowedSetTime.length;n++)s=this.allowedSetTime[n],a[s](a[s]());this.props.value||this.setState({selectedDate:a,inputValue:a.format(i.inputFormat)}),this.props.onChange(a)},updateSelectedDate:function(t,e){var s,n=t.target,i=0,a=this.state.viewDate,r=this.state.selectedDate||a;if(n.className.indexOf("rdtDay")!==-1?(n.className.indexOf("rdtNew")!==-1?i=1:n.className.indexOf("rdtOld")!==-1&&(i=-1),s=a.clone().month(a.month()+i).date(parseInt(n.getAttribute("data-value"),10))):n.className.indexOf("rdtMonth")!==-1?s=a.clone().month(parseInt(n.getAttribute("data-value"),10)).date(r.date()):n.className.indexOf("rdtYear")!==-1&&(s=a.clone().month(r.month()).date(r.date()).year(parseInt(n.getAttribute("data-value"),10))),s.hours(r.hours()).minutes(r.minutes()).seconds(r.seconds()).milliseconds(r.milliseconds()),this.props.value)this.props.closeOnSelect&&e&&this.closeCalendar();else{var o=!(this.props.closeOnSelect&&e);o||this.props.onBlur(s),this.setState({selectedDate:s,viewDate:s.clone().startOf("month"),inputValue:s.format(this.state.inputFormat),open:o})}this.props.onChange(s)},openCalendar:function(){this.state.open||this.setState({open:!0},function(){this.props.onFocus()})},closeCalendar:function(){this.setState({open:!1},function(){this.props.onBlur(this.state.selectedDate||this.state.inputValue)})},handleClickOutside:function(){this.props.input&&this.state.open&&!this.props.open&&this.setState({open:!1},function(){this.props.onBlur(this.state.selectedDate||this.state.inputValue)})},localMoment:function(t,e,s){s=s||this.props;var n=s.utc?i.utc:i,a=n(t,e,s.strictParsing);return s.locale&&a.locale(s.locale),a},componentProps:{fromProps:["value","isValidDate","renderDay","renderMonth","renderYear","timeConstraints"],fromState:["viewDate","selectedDate","updateOn"],fromThis:["setDate","setTime","showView","addTime","subtractTime","updateSelectedDate","localMoment","handleClickOutside"]},getComponentProps:function(){var t=this,e=this.getFormats(this.props),s={dateFormat:e.date,timeFormat:e.time};return this.componentProps.fromProps.forEach(function(e){s[e]=t.props[e]}),this.componentProps.fromState.forEach(function(e){s[e]=t.state[e]}),this.componentProps.fromThis.forEach(function(e){s[e]=t[e]}),s},render:function(){var t=a.DOM,e="rdt"+(this.props.className?Array.isArray(this.props.className)?" "+this.props.className.join(" "):" "+this.props.className:""),s=[];return this.props.input?s=[t.input(n({key:"i",type:"text",className:"form-control",onFocus:this.openCalendar,onChange:this.onInputChange,onKeyDown:this.onInputKey,value:this.state.inputValue},this.props.inputProps))]:e+=" rdtStatic",this.state.open&&(e+=" rdtOpen"),t.div({className:e},s.concat(t.div({key:"dt",className:"rdtPicker"},a.createElement(r,{view:this.state.currentView,viewProps:this.getComponentProps(),onClickOutside:this.handleClickOutside}))))}});c.moment=i,t.exports=c},function(t,e){"use strict";function s(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function n(t){var e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t))),e.filter(function(e){return i.call(t,e)})}var i=Object.prototype.propertyIsEnumerable;t.exports=Object.assign||function(t,e){for(var i,a,r=s(t),o=1;o<arguments.length;o++){i=arguments[o],a=n(Object(i));for(var c=0;c<a.length;c++)r[a[c]]=i[a[c]]}return r}},function(e,s){e.exports=t},function(t,s){t.exports=e},function(t,e,s){var n=s(3),i=s(5),a=s(8),r=s(9),o=s(10),c=n.createClass({viewComponents:{days:i,months:a,years:r,time:o},render:function(){return n.createElement(this.viewComponents[this.props.view],this.props.viewProps)}});t.exports=c},function(t,e,s){"use strict";var n=s(3),i=s(2),a=s(6),r=n.DOM,o=a(n.createClass({render:function(){var t,e=this.renderFooter(),s=this.props.viewDate,n=s.localeData();return t=[r.thead({key:"th"},[r.tr({key:"h"},[r.th({key:"p",className:"rdtPrev"},r.span({onClick:this.props.subtractTime(1,"months")},"‹")),r.th({key:"s",className:"rdtSwitch",onClick:this.props.showView("months"),colSpan:5,"data-value":this.props.viewDate.month()},n.months(s)+" "+s.year()),r.th({key:"n",className:"rdtNext"},r.span({onClick:this.props.addTime(1,"months")},"›"))]),r.tr({key:"d"},this.getDaysOfWeek(n).map(function(t,e){return r.th({key:t+e,className:"dow"},t)}))]),r.tbody({key:"tb"},this.renderDays())],e&&t.push(e),r.div({className:"rdtDays"},r.table({},t))},getDaysOfWeek:function(t){var e=t._weekdaysMin,s=t.firstDayOfWeek(),n=[],i=0;return e.forEach(function(t){n[(7+i++-s)%7]=t}),n},renderDays:function(){var t,e,s,n,a=this.props.viewDate,o=this.props.selectedDate&&this.props.selectedDate.clone(),c=a.clone().subtract(1,"months"),l=a.year(),d=a.month(),u=[],p=[],h=this.props.renderDay||this.renderDay,m=this.props.isValidDate||this.alwaysValidDate;c.date(c.daysInMonth()).startOf("week");for(var f=c.clone().add(42,"d");c.isBefore(f);)t="rdtDay",n=c.clone(),c.year()===l&&c.month()<d||c.year()<l?t+=" rdtOld":(c.year()===l&&c.month()>d||c.year()>l)&&(t+=" rdtNew"),o&&c.isSame(o,"day")&&(t+=" rdtActive"),c.isSame(i(),"day")&&(t+=" rdtToday"),e=!m(n,o),e&&(t+=" rdtDisabled"),s={key:c.format("M_D"),"data-value":c.date(),className:t},e||(s.onClick=this.updateSelectedDate),p.push(h(s,n,o)),7===p.length&&(u.push(r.tr({key:c.format("M_D")},p)),p=[]),c.add(1,"d");return u},updateSelectedDate:function(t){this.props.updateSelectedDate(t,!0)},renderDay:function(t,e){return r.td(t,e.date())},renderFooter:function(){if(!this.props.timeFormat)return"";var t=this.props.selectedDate||this.props.viewDate;return r.tfoot({key:"tf"},r.tr({},r.td({onClick:this.props.showView("time"),colSpan:7,className:"rdtTimeToggle"},t.format(this.props.timeFormat))))},alwaysValidDate:function(){return 1},handleClickOutside:function(){this.props.handleClickOutside()}}));t.exports=o},function(t,e,s){var n,i;!function(a){function r(t,e,s){return function(t,n){var i=e.createClass({statics:{getClass:function(){return t.getClass?t.getClass():t}},getInstance:function(){return t.prototype.isReactComponent?this.refs.instance:this},__outsideClickHandler:function(){},componentDidMount:function(){if("undefined"!=typeof document&&document.createElement){var t,i=this.getInstance();if(n&&"function"==typeof n.handleClickOutside){if(t=n.handleClickOutside(i),"function"!=typeof t)throw new Error("Component lacks a function for processing outside click events specified by the handleClickOutside config option.")}else if("function"==typeof i.handleClickOutside)t=e.Component.prototype.isPrototypeOf(i)?i.handleClickOutside.bind(i):i.handleClickOutside;else{if("function"!=typeof i.props.handleClickOutside)throw new Error("Component lacks a handleClickOutside(event) function for processing outside click events.");t=i.props.handleClickOutside}var a=s.findDOMNode(i);null===a&&(console.warn("Antipattern warning: there was no DOM node associated with the component that is being wrapped by outsideClick."),console.warn(["This is typically caused by having a component that starts life with a render function that","returns `null` (due to a state or props value), so that the component 'exist' in the React","chain of components, but not in the DOM.\n\nInstead, you need to refactor your code so that the","decision of whether or not to show your component is handled by the parent, in their render()","function.\n\nIn code, rather than:\n\n  A{render(){return check? <.../> : null;}\n  B{render(){<A check=... />}\n\nmake sure that you","use:\n\n  A{render(){return <.../>}\n  B{render(){return <...>{ check ? <A/> : null }<...>}}\n\nThat is:","the parent is always responsible for deciding whether or not to render any of its children.","It is not the child's responsibility to decide whether a render instruction from above should","get ignored or not by returning `null`.\n\nWhen any component gets its render() function called,","that is the signal that it should be rendering its part of the UI. It may in turn decide not to","render all of *its* children, but it should never return `null` for itself. It is not responsible","for that decision."].join(" ")));var r=this.__outsideClickHandler=f(a,i,t,this.props.outsideClickIgnoreClass||d,this.props.excludeScrollbar||!1,this.props.preventDefault||!1,this.props.stopPropagation||!1),o=c.length;c.push(this),l[o]=r,this.props.disableOnClickOutside||this.enableOnClickOutside()}},componentWillReceiveProps:function(t){this.props.disableOnClickOutside&&!t.disableOnClickOutside?this.enableOnClickOutside():!this.props.disableOnClickOutside&&t.disableOnClickOutside&&this.disableOnClickOutside()},componentWillUnmount:function(){this.disableOnClickOutside(),this.__outsideClickHandler=!1;var t=c.indexOf(this);t>-1&&(l[t]&&l.splice(t,1),c.splice(t,1))},enableOnClickOutside:function(){var t=this.__outsideClickHandler;if("undefined"!=typeof document){var e=this.props.eventTypes||u;e.forEach||(e=[e]),e.forEach(function(e){document.addEventListener(e,t)})}},disableOnClickOutside:function(){var t=this.__outsideClickHandler;if("undefined"!=typeof document){var e=this.props.eventTypes||u;e.forEach||(e=[e]),e.forEach(function(e){document.removeEventListener(e,t)})}},render:function(){var s=this.props,n={};return Object.keys(this.props).forEach(function(t){"excludeScrollbar"!==t&&(n[t]=s[t])}),t.prototype.isReactComponent&&(n.ref="instance"),n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,e.createElement(t,n)}});return function(t,e){var s=t.displayName||t.name||"Component";e.displayName="OnClickOutside("+s+")"}(t,i),i}}function o(a,r){n=[s(3),s(7)],i=function(t,e){return r(a,t,e)}.apply(e,n),!(void 0!==i&&(t.exports=i))}var c=[],l=[],d="ignore-react-onclickoutside",u=["mousedown","touchstart"],p=function(t,e,s){return t===e||(t.correspondingElement?t.correspondingElement.classList.contains(s):t.classList.contains(s))},h=function(t,e,s){if(t===e)return!0;for(;t.parentNode;){if(p(t,e,s))return!0;t=t.parentNode}return t},m=function(t){return document.documentElement.clientWidth<=t.clientX},f=function(t,e,s,n,i,a,r){return function(e){a&&e.preventDefault(),r&&e.stopPropagation();var o=e.target;i&&m(e)||h(o,t,n)!==document||s(e)}};o(a,r)}(this)},function(t,e){t.exports=s},function(t,e,s){"use strict";function n(t){return t.charAt(0).toUpperCase()+t.slice(1)}var i=s(3),a=s(6),r=i.DOM,o=a(i.createClass({render:function(){return r.div({className:"rdtMonths"},[r.table({key:"a"},r.thead({},r.tr({},[r.th({key:"prev",className:"rdtPrev"},r.span({onClick:this.props.subtractTime(1,"years")},"‹")),r.th({key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2,"data-value":this.props.viewDate.year()},this.props.viewDate.year()),r.th({key:"next",className:"rdtNext"},r.span({onClick:this.props.addTime(1,"years")},"›"))]))),r.table({key:"months"},r.tbody({key:"b"},this.renderMonths()))])},renderMonths:function(){for(var t,e,s,n,i,a,o,c=this.props.selectedDate,l=this.props.viewDate.month(),d=this.props.viewDate.year(),u=[],p=0,h=[],m=this.props.renderMonth||this.renderMonth,f=this.props.isValidDate||this.alwaysValidDate,v=1;p<12;)t="rdtMonth",s=this.props.viewDate.clone().set({year:d,month:p,date:v}),i=s.endOf("month").format("D"),a=Array.from({length:i},function(t,e){return e+1}),o=a.find(function(t){var e=s.clone().set("date",t);return f(e)}),n=void 0===o,n&&(t+=" rdtDisabled"),c&&p===l&&d===c.year()&&(t+=" rdtActive"),e={key:p,"data-value":p,className:t},n||(e.onClick="months"===this.props.updateOn?this.updateSelectedMonth:this.props.setDate("month")),h.push(m(e,p,d,c&&c.clone())),4===h.length&&(u.push(r.tr({key:l+"_"+u.length},h)),h=[]),p++;return u},updateSelectedMonth:function(t){this.props.updateSelectedDate(t)},renderMonth:function(t,e){var s=this.props.viewDate,i=s.localeData().monthsShort(s.month(e)),a=3,o=i.substring(0,a);return r.td(t,n(o))},alwaysValidDate:function(){return 1},handleClickOutside:function(){this.props.handleClickOutside()}}));t.exports=o},function(t,e,s){"use strict";var n=s(3),i=s(6),a=n.DOM,r=i(n.createClass({render:function(){var t=10*parseInt(this.props.viewDate.year()/10,10);return a.div({className:"rdtYears"},[a.table({key:"a"},a.thead({},a.tr({},[a.th({key:"prev",className:"rdtPrev"},a.span({onClick:this.props.subtractTime(10,"years")},"‹")),a.th({key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2},t+"-"+(t+9)),a.th({key:"next",className:"rdtNext"},a.span({onClick:this.props.addTime(10,"years")},"›"))]))),a.table({key:"years"},a.tbody({},this.renderYears(t)))])},renderYears:function(t){var e,s,n,i,r,o,c,l=[],d=-1,u=[],p=this.props.renderYear||this.renderYear,h=this.props.selectedDate,m=this.props.isValidDate||this.alwaysValidDate,f=0,v=1;for(t--;d<11;)e="rdtYear",n=this.props.viewDate.clone().set({year:t,month:f,date:v}),r=n.endOf("year").format("DDD"),o=Array.from({length:r},function(t,e){return e+1}),c=o.find(function(t){var e=n.clone().dayOfYear(t);return m(e)}),i=void 0===c,i&&(e+=" rdtDisabled"),h&&h.year()===t&&(e+=" rdtActive"),s={key:t,"data-value":t,className:e},i||(s.onClick="years"===this.props.updateOn?this.updateSelectedYear:this.props.setDate("year")),l.push(p(s,t,h&&h.clone())),4===l.length&&(u.push(a.tr({key:d},l)),l=[]),t++,d++;return u},updateSelectedYear:function(t){this.props.updateSelectedDate(t)},renderYear:function(t,e){return a.td(t,e)},alwaysValidDate:function(){return 1},handleClickOutside:function(){this.props.handleClickOutside()}}));t.exports=r},function(t,e,s){"use strict";var n=s(3),i=s(1),a=s(6),r=n.DOM,o=a(n.createClass({getInitialState:function(){return this.calculateState(this.props)},calculateState:function(t){var e=t.selectedDate||t.viewDate,s=t.timeFormat,n=[];s.toLowerCase().indexOf("h")!==-1&&(n.push("hours"),s.indexOf("m")!==-1&&(n.push("minutes"),s.indexOf("s")!==-1&&n.push("seconds")));var i=!1;return null!==this.state&&this.props.timeFormat.toLowerCase().indexOf(" a")!==-1&&(i=this.props.timeFormat.indexOf(" A")!==-1?this.state.hours>=12?"PM":"AM":this.state.hours>=12?"pm":"am"),{hours:e.format("H"),minutes:e.format("mm"),seconds:e.format("ss"),milliseconds:e.format("SSS"),daypart:i,counters:n}},renderCounter:function(t){if("daypart"!==t){var e=this.state[t];return"hours"===t&&this.props.timeFormat.toLowerCase().indexOf(" a")!==-1&&(e=(e-1)%12+1,0===e&&(e=12)),r.div({key:t,className:"rdtCounter"},[r.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("increase",t)},"▲"),r.div({key:"c",className:"rdtCount"},e),r.span({key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("decrease",t)},"▼")])}return""},renderDayPart:function(){return r.div({key:"dayPart",className:"rdtCounter"},[r.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours")},"▲"),r.div({key:this.state.daypart,className:"rdtCount"},this.state.daypart),r.span({key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours")},"▼")])},render:function(){var t=this,e=[];return this.state.counters.forEach(function(s){e.length&&e.push(r.div({key:"sep"+e.length,className:"rdtCounterSeparator"},":")),e.push(t.renderCounter(s))}),this.state.daypart!==!1&&e.push(t.renderDayPart()),3===this.state.counters.length&&this.props.timeFormat.indexOf("S")!==-1&&(e.push(r.div({className:"rdtCounterSeparator",key:"sep5"},":")),e.push(r.div({className:"rdtCounter rdtMilli",key:"m"},r.input({value:this.state.milliseconds,type:"text",onChange:this.updateMilli})))),r.div({className:"rdtTime"},r.table({},[this.renderHeader(),r.tbody({key:"b"},r.tr({},r.td({},r.div({className:"rdtCounters"},e))))]))},componentWillMount:function(){var t=this;t.timeConstraints={hours:{min:0,max:23,step:1},minutes:{min:0,max:59,step:1},seconds:{min:0,max:59,step:1},milliseconds:{min:0,max:999,step:1}},["hours","minutes","seconds","milliseconds"].forEach(function(e){i(t.timeConstraints[e],t.props.timeConstraints[e])}),this.setState(this.calculateState(this.props))},componentWillReceiveProps:function(t){this.setState(this.calculateState(t))},updateMilli:function(t){var e=parseInt(t.target.value,10);e===t.target.value&&e>=0&&e<1e3&&(this.props.setTime("milliseconds",e),this.setState({milliseconds:e}))},renderHeader:function(){if(!this.props.dateFormat)return null;var t=this.props.selectedDate||this.props.viewDate;return r.thead({key:"h"},r.tr({},r.th({className:"rdtSwitch",colSpan:4,onClick:this.props.showView("days")},t.format(this.props.dateFormat))))},onStartClicking:function(t,e){var s=this;return function(){var n={};n[e]=s[t](e),s.setState(n),s.timer=setTimeout(function(){s.increaseTimer=setInterval(function(){n[e]=s[t](e),s.setState(n)},70)},500),s.mouseUpListener=function(){clearTimeout(s.timer),clearInterval(s.increaseTimer),s.props.setTime(e,s.state[e]),document.body.removeEventListener("mouseup",s.mouseUpListener)},document.body.addEventListener("mouseup",s.mouseUpListener)}},padValues:{hours:1,minutes:2,seconds:2,milliseconds:3},toggleDayPart:function(t){var e=parseInt(this.state[t],10)+12;return e>this.timeConstraints[t].max&&(e=this.timeConstraints[t].min+(e-(this.timeConstraints[t].max+1))),this.pad(t,e)},increase:function(t){var e=parseInt(this.state[t],10)+this.timeConstraints[t].step;return e>this.timeConstraints[t].max&&(e=this.timeConstraints[t].min+(e-(this.timeConstraints[t].max+1))),this.pad(t,e)},decrease:function(t){var e=parseInt(this.state[t],10)-this.timeConstraints[t].step;return e<this.timeConstraints[t].min&&(e=this.timeConstraints[t].max+1-(this.timeConstraints[t].min-e)),this.pad(t,e)},pad:function(t,e){for(var s=e+"";s.length<this.padValues[t];)s="0"+s;return s},handleClickOutside:function(){this.props.handleClickOutside()}}));t.exports=o}])});
//# sourceMappingURL=react-datetime.min.js.map
dist/react-datetime.min.js.map
@@ -1 +1 @@
{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:/webpack/bootstrap 11d6a0db272b69808a48","react-datetime.js","webpack:///Datetime.js","webpack:///~/object-assign/index.js","webpack:///src/CalendarContainer.js","webpack:///src/DaysView.js","webpack:///src/MonthsView.js","webpack:///src/YearsView.js","webpack:///src/TimeView.js","webpack:///Users/javi/projects/code/react-datetime-playground/~/react-onclickoutside/index.js"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_2__","__WEBPACK_EXTERNAL_MODULE_3__","__WEBPACK_EXTERNAL_MODULE_10__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","assign","moment","React","CalendarContainer","TYPES","PropTypes","Datetime","createClass","propTypes","onFocus","func","onBlur","onChange","locale","string","utc","bool","input","inputProps","object","timeConstraints","viewMode","oneOf","isValidDate","open","strictParsing","closeOnSelect","closeOnTab","getDefaultProps","nof","className","defaultValue","timeFormat","dateFormat","getInitialState","state","getStateFromProps","props","undefined","currentView","updateOn","selectedDate","viewDate","inputValue","formats","getFormats","date","value","localMoment","datetime","isValid","clone","startOf","getUpdateOn","format","inputFormat","match","indexOf","time","localeData","longDateFormat","componentWillReceiveProps","nextProps","updatedState","updatedViewDate","updatedSelectedDate","local","setState","onInputChange","e","target","update","onInputKey","which","closeCalendar","showView","view","me","setDate","type","nextViews","month","year","parseInt","getAttribute","addTime","amount","toSelected","updateTime","subtractTime","op","allowedSetTime","setTime","nextType","index","length","updateSelectedDate","close","modifier","currentDate","hours","minutes","seconds","milliseconds","openCalendar","handleClickOutside","momentFn","componentProps","fromProps","fromState","fromThis","getComponentProps","forEach","name","render","DOM","Array","isArray","join","children","key","onKeyDown","div","concat","createElement","viewProps","onClickOutside","ToObject","val","TypeError","Object","ownEnumerableKeys","obj","keys","getOwnPropertyNames","getOwnPropertySymbols","filter","propIsEnumerable","prototype","propertyIsEnumerable","source","from","to","s","arguments","i","DaysView","MonthsView","YearsView","TimeView","viewComponents","days","months","years","DateTimePickerDays","tableChildren","footer","renderFooter","thead","tr","th","span","onClick","colSpan","data-value","getDaysOfWeek","map","day","tbody","renderDays","push","table","_weekdaysMin","first","firstDayOfWeek","dow","classes","isDisabled","dayProps","selected","prevMonth","subtract","currentYear","currentMonth","weeks","renderer","renderDay","alwaysValidDate","daysInMonth","lastDay","add","isBefore","isSame","event","td","tfoot","capitalize","str","charAt","toUpperCase","slice","DateTimePickerMonths","renderMonths","noOfDaysInMonth","validDay","rows","renderMonth","irrelevantDate","set","endOf","find","d","updateSelectedMonth","monthStr","monthsShort","strLength","monthStrFixedLength","substring","DateTimePickerYears","renderYears","noOfDaysInYear","daysInYear","renderYear","irrelevantMonth","dayOfYear","updateSelectedYear","DateTimePickerTime","calculateState","counters","toLowerCase","daypart","renderCounter","onMouseDown","onStartClicking","renderDayPart","updateMilli","renderHeader","componentWillMount","min","max","step","milli","action","timer","setTimeout","increaseTimer","setInterval","mouseUpListener","clearTimeout","clearInterval","document","body","removeEventListener","addEventListener","padValues","toggleDayPart","pad","increase","decrease","__WEBPACK_AMD_DEFINE_ARRAY__","__WEBPACK_AMD_DEFINE_RESULT__","setupHOC","ReactDOM","Component","config","wrapComponentWithOnClickOutsideHandling","statics","getClass","getInstance","isReactComponent","refs","instance","__outsideClickHandler","componentDidMount","clickOutsideHandler","Error","isPrototypeOf","bind","componentNode","findDOMNode","console","warn","fn","generateOutsideCheck","outsideClickIgnoreClass","IGNORE_CLASS","excludeScrollbar","preventDefault","stopPropagation","pos","registeredComponents","handlers","disableOnClickOutside","enableOnClickOutside","componentWillUnmount","splice","events","eventTypes","DEFAULT_EVENTS","eventName","passedProps","ref","wrapper","componentName","displayName","setupBinding","ReactDom","apply","isNodeFound","current","ignoreClass","correspondingElement","classList","contains","findHighest","parentNode","clickedScrollbar","evt","documentElement","clientWidth","clientX","componentInstance","eventHandler"],"mappings":"CAKA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA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AA,UAAA6B,GACA9B,GACA8B,EAAA9B,iBAEAC,GACA6B,EAAA7B,iBAEA,IAAAqB,GAAAQ,EAAAvP,MACAwN,IAAA8B,EAAAC,IAAAH,EAAAL,EAAA/B,EAAAgC,KAAA5D,UAGAwE,EAAAL,IRq3CGZ,GAAatU,EAAM0R,IAEnBnR,OAKG,SAASJ,EAAQD,GAEtBC,EAAOD,QAAUQ","file":"react-datetime.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"moment\"), require(\"React\"), require(\"ReactDOM\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"moment\", \"React\", \"ReactDOM\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Datetime\"] = factory(require(\"moment\"), require(\"React\"), require(\"ReactDOM\"));\n\telse\n\t\troot[\"Datetime\"] = factory(root[\"moment\"], root[\"React\"], root[\"ReactDOM\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_10__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 11d6a0db272b69808a48","/*\nreact-datetime v2.8.7\nhttps://github.com/YouCanBookMe/react-datetime\nMIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE\n*/\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"moment\"), require(\"React\"), require(\"ReactDOM\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"moment\", \"React\", \"ReactDOM\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Datetime\"] = factory(require(\"moment\"), require(\"React\"), require(\"ReactDOM\"));\n\telse\n\t\troot[\"Datetime\"] = factory(root[\"moment\"], root[\"React\"], root[\"ReactDOM\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_10__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n\n\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar assign = __webpack_require__(1),\n\t\tmoment = __webpack_require__(2),\n\t\tReact = __webpack_require__(3),\n\t\tCalendarContainer = __webpack_require__(4)\n\t;\n\n\tvar TYPES = React.PropTypes;\n\tvar Datetime = React.createClass({\n\t\tpropTypes: {\n\t\t\t// value: TYPES.object | TYPES.string,\n\t\t\t// defaultValue: TYPES.object | TYPES.string,\n\t\t\tonFocus: TYPES.func,\n\t\t\tonBlur: TYPES.func,\n\t\t\tonChange: TYPES.func,\n\t\t\tlocale: TYPES.string,\n\t\t\tutc: TYPES.bool,\n\t\t\tinput: TYPES.bool,\n\t\t\t// dateFormat: TYPES.string | TYPES.bool,\n\t\t\t// timeFormat: TYPES.string | TYPES.bool,\n\t\t\tinputProps: TYPES.object,\n\t\t\ttimeConstraints: TYPES.object,\n\t\t\tviewMode: TYPES.oneOf(['years', 'months', 'days', 'time']),\n\t\t\tisValidDate: TYPES.func,\n\t\t\topen: TYPES.bool,\n\t\t\tstrictParsing: TYPES.bool,\n\t\t\tcloseOnSelect: TYPES.bool,\n\t\t\tcloseOnTab: TYPES.bool\n\t\t},\n\n\t\tgetDefaultProps: function() {\n\t\t\tvar nof = function() {};\n\t\t\treturn {\n\t\t\t\tclassName: '',\n\t\t\t\tdefaultValue: '',\n\t\t\t\tinputProps: {},\n\t\t\t\tinput: true,\n\t\t\t\tonFocus: nof,\n\t\t\t\tonBlur: nof,\n\t\t\t\tonChange: nof,\n\t\t\t\ttimeFormat: true,\n\t\t\t\ttimeConstraints: {},\n\t\t\t\tdateFormat: true,\n\t\t\t\tstrictParsing: true,\n\t\t\t\tcloseOnSelect: false,\n\t\t\t\tcloseOnTab: true,\n\t\t\t\tutc: false\n\t\t\t};\n\t\t},\n\n\t\tgetInitialState: function() {\n\t\t\tvar state = this.getStateFromProps( this.props );\n\n\t\t\tif ( state.open === undefined )\n\t\t\t\tstate.open = !this.props.input;\n\n\t\t\tstate.currentView = this.props.dateFormat ? (this.props.viewMode || state.updateOn || 'days') : 'time';\n\n\t\t\treturn state;\n\t\t},\n\n\t\tgetStateFromProps: function( props ) {\n\t\t\tvar formats = this.getFormats( props ),\n\t\t\t\tdate = props.value || props.defaultValue,\n\t\t\t\tselectedDate, viewDate, updateOn, inputValue\n\t\t\t;\n\n\t\t\tif ( date && typeof date === 'string' )\n\t\t\t\tselectedDate = this.localMoment( date, formats.datetime );\n\t\t\telse if ( date )\n\t\t\t\tselectedDate = this.localMoment( date );\n\n\t\t\tif ( selectedDate && !selectedDate.isValid() )\n\t\t\t\tselectedDate = null;\n\n\t\t\tviewDate = selectedDate ?\n\t\t\t\tselectedDate.clone().startOf('month') :\n\t\t\t\tthis.localMoment().startOf('month')\n\t\t\t;\n\n\t\t\tupdateOn = this.getUpdateOn(formats);\n\n\t\t\tif ( selectedDate )\n\t\t\t\tinputValue = selectedDate.format(formats.datetime);\n\t\t\telse if ( date.isValid && !date.isValid() )\n\t\t\t\tinputValue = '';\n\t\t\telse\n\t\t\t\tinputValue = date || '';\n\n\t\t\treturn {\n\t\t\t\tupdateOn: updateOn,\n\t\t\t\tinputFormat: formats.datetime,\n\t\t\t\tviewDate: viewDate,\n\t\t\t\tselectedDate: selectedDate,\n\t\t\t\tinputValue: inputValue,\n\t\t\t\topen: props.open\n\t\t\t};\n\t\t},\n\n\t\tgetUpdateOn: function( formats ) {\n\t\t\tif ( formats.date.match(/[lLD]/) ) {\n\t\t\t\treturn 'days';\n\t\t\t}\n\t\t\telse if ( formats.date.indexOf('M') !== -1 ) {\n\t\t\t\treturn 'months';\n\t\t\t}\n\t\t\telse if ( formats.date.indexOf('Y') !== -1 ) {\n\t\t\t\treturn 'years';\n\t\t\t}\n\n\t\t\treturn 'days';\n\t\t},\n\n\t\tgetFormats: function( props ) {\n\t\t\tvar formats = {\n\t\t\t\t\tdate: props.dateFormat || '',\n\t\t\t\t\ttime: props.timeFormat || ''\n\t\t\t\t},\n\t\t\t\tlocale = this.localMoment( props.date, null, props ).localeData()\n\t\t\t;\n\n\t\t\tif ( formats.date === true ) {\n\t\t\t\tformats.date = locale.longDateFormat('L');\n\t\t\t}\n\t\t\telse if ( this.getUpdateOn(formats) !== 'days' ) {\n\t\t\t\tformats.time = '';\n\t\t\t}\n\n\t\t\tif ( formats.time === true ) {\n\t\t\t\tformats.time = locale.longDateFormat('LT');\n\t\t\t}\n\n\t\t\tformats.datetime = formats.date && formats.time ?\n\t\t\t\tformats.date + ' ' + formats.time :\n\t\t\t\tformats.date || formats.time\n\t\t\t;\n\n\t\t\treturn formats;\n\t\t},\n\n\t\tcomponentWillReceiveProps: function( nextProps ) {\n\t\t\tvar formats = this.getFormats( nextProps ),\n\t\t\t\tupdatedState = {}\n\t\t\t;\n\n\t\t\tif ( nextProps.value !== this.props.value ||\n\t\t\t\tformats.datetime !== this.getFormats( this.props ).datetime ) {\n\t\t\t\tupdatedState = this.getStateFromProps( nextProps );\n\t\t\t}\n\n\t\t\tif ( updatedState.open === undefined ) {\n\t\t\t\tif ( this.props.closeOnSelect && this.state.currentView !== 'time' ) {\n\t\t\t\t\tupdatedState.open = false;\n\t\t\t\t} else {\n\t\t\t\t\tupdatedState.open = this.state.open;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( nextProps.viewMode !== this.props.viewMode ) {\n\t\t\t\tupdatedState.currentView = nextProps.viewMode;\n\t\t\t}\n\n\t\t\tif ( nextProps.locale !== this.props.locale ) {\n\t\t\t\tif ( this.state.viewDate ) {\n\t\t\t\t\tvar updatedViewDate = this.state.viewDate.clone().locale( nextProps.locale );\n\t\t\t\t\tupdatedState.viewDate = updatedViewDate;\n\t\t\t\t}\n\t\t\t\tif ( this.state.selectedDate ) {\n\t\t\t\t\tvar updatedSelectedDate = this.state.selectedDate.clone().locale( nextProps.locale );\n\t\t\t\t\tupdatedState.selectedDate = updatedSelectedDate;\n\t\t\t\t\tupdatedState.inputValue = updatedSelectedDate.format( formats.datetime );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( nextProps.utc !== this.props.utc ) {\n\t\t\t\tif ( nextProps.utc ) {\n\t\t\t\t\tif ( this.state.viewDate )\n\t\t\t\t\t\tupdatedState.viewDate = this.state.viewDate.clone().utc();\n\t\t\t\t\tif ( this.state.selectedDate ) {\n\t\t\t\t\t\tupdatedState.selectedDate = this.state.selectedDate.clone().utc();\n\t\t\t\t\t\tupdatedState.inputValue = updatedState.selectedDate.format( formats.datetime );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif ( this.state.viewDate )\n\t\t\t\t\t\tupdatedState.viewDate = this.state.viewDate.clone().local();\n\t\t\t\t\tif ( this.state.selectedDate ) {\n\t\t\t\t\t\tupdatedState.selectedDate = this.state.selectedDate.clone().local();\n\t\t\t\t\t\tupdatedState.inputValue = updatedState.selectedDate.format(formats.datetime);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.setState( updatedState );\n\t\t},\n\n\t\tonInputChange: function( e ) {\n\t\t\tvar value = e.target === null ? e : e.target.value,\n\t\t\t\tlocalMoment = this.localMoment( value, this.state.inputFormat ),\n\t\t\t\tupdate = { inputValue: value }\n\t\t\t;\n\n\t\t\tif ( localMoment.isValid() && !this.props.value ) {\n\t\t\t\tupdate.selectedDate = localMoment;\n\t\t\t\tupdate.viewDate = localMoment.clone().startOf('month');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tupdate.selectedDate = null;\n\t\t\t}\n\n\t\t\treturn this.setState( update, function() {\n\t\t\t\treturn this.props.onChange( localMoment.isValid() ? localMoment : this.state.inputValue );\n\t\t\t});\n\t\t},\n\n\t\tonInputKey: function( e ) {\n\t\t\tif ( e.which === 9 && this.props.closeOnTab ) {\n\t\t\t\tthis.closeCalendar();\n\t\t\t}\n\t\t},\n\n\t\tshowView: function( view ) {\n\t\t\tvar me = this;\n\t\t\treturn function() {\n\t\t\t\tme.setState({ currentView: view });\n\t\t\t};\n\t\t},\n\n\t\tsetDate: function( type ) {\n\t\t\tvar me = this,\n\t\t\t\tnextViews = {\n\t\t\t\t\tmonth: 'days',\n\t\t\t\t\tyear: 'months'\n\t\t\t\t}\n\t\t\t;\n\t\t\treturn function( e ) {\n\t\t\t\tme.setState({\n\t\t\t\t\tviewDate: me.state.viewDate.clone()[ type ]( parseInt(e.target.getAttribute('data-value'), 10) ).startOf( type ),\n\t\t\t\t\tcurrentView: nextViews[ type ]\n\t\t\t\t});\n\t\t\t};\n\t\t},\n\n\t\taddTime: function( amount, type, toSelected ) {\n\t\t\treturn this.updateTime( 'add', amount, type, toSelected );\n\t\t},\n\n\t\tsubtractTime: function( amount, type, toSelected ) {\n\t\t\treturn this.updateTime( 'subtract', amount, type, toSelected );\n\t\t},\n\n\t\tupdateTime: function( op, amount, type, toSelected ) {\n\t\t\tvar me = this;\n\n\t\t\treturn function() {\n\t\t\t\tvar update = {},\n\t\t\t\t\tdate = toSelected ? 'selectedDate' : 'viewDate'\n\t\t\t\t;\n\n\t\t\t\tupdate[ date ] = me.state[ date ].clone()[ op ]( amount, type );\n\n\t\t\t\tme.setState( update );\n\t\t\t};\n\t\t},\n\n\t\tallowedSetTime: ['hours', 'minutes', 'seconds', 'milliseconds'],\n\t\tsetTime: function( type, value ) {\n\t\t\tvar index = this.allowedSetTime.indexOf( type ) + 1,\n\t\t\t\tstate = this.state,\n\t\t\t\tdate = (state.selectedDate || state.viewDate).clone(),\n\t\t\t\tnextType\n\t\t\t;\n\n\t\t\t// It is needed to set all the time properties\n\t\t\t// to not to reset the time\n\t\t\tdate[ type ]( value );\n\t\t\tfor (; index < this.allowedSetTime.length; index++) {\n\t\t\t\tnextType = this.allowedSetTime[index];\n\t\t\t\tdate[ nextType ]( date[nextType]() );\n\t\t\t}\n\n\t\t\tif ( !this.props.value ) {\n\t\t\t\tthis.setState({\n\t\t\t\t\tselectedDate: date,\n\t\t\t\t\tinputValue: date.format( state.inputFormat )\n\t\t\t\t});\n\t\t\t}\n\t\t\tthis.props.onChange( date );\n\t\t},\n\n\t\tupdateSelectedDate: function( e, close ) {\n\t\t\tvar target = e.target,\n\t\t\t\tmodifier = 0,\n\t\t\t\tviewDate = this.state.viewDate,\n\t\t\t\tcurrentDate = this.state.selectedDate || viewDate,\n\t\t\t\tdate\n\t    ;\n\n\t\t\tif (target.className.indexOf('rdtDay') !== -1) {\n\t\t\t\tif (target.className.indexOf('rdtNew') !== -1)\n\t\t\t\t\tmodifier = 1;\n\t\t\t\telse if (target.className.indexOf('rdtOld') !== -1)\n\t\t\t\t\tmodifier = -1;\n\n\t\t\t\tdate = viewDate.clone()\n\t\t\t\t\t.month( viewDate.month() + modifier )\n\t\t\t\t\t.date( parseInt( target.getAttribute('data-value'), 10 ) );\n\t\t\t} else if (target.className.indexOf('rdtMonth') !== -1) {\n\t\t\t\tdate = viewDate.clone()\n\t\t\t\t\t.month( parseInt( target.getAttribute('data-value'), 10 ) )\n\t\t\t\t\t.date( currentDate.date() );\n\t\t\t} else if (target.className.indexOf('rdtYear') !== -1) {\n\t\t\t\tdate = viewDate.clone()\n\t\t\t\t\t.month( currentDate.month() )\n\t\t\t\t\t.date( currentDate.date() )\n\t\t\t\t\t.year( parseInt( target.getAttribute('data-value'), 10 ) );\n\t\t\t}\n\n\t\t\tdate.hours( currentDate.hours() )\n\t\t\t\t.minutes( currentDate.minutes() )\n\t\t\t\t.seconds( currentDate.seconds() )\n\t\t\t\t.milliseconds( currentDate.milliseconds() );\n\n\t\t\tif ( !this.props.value ) {\n\t\t\t\tvar open = !( this.props.closeOnSelect && close );\n\t\t\t\tif ( !open ) {\n\t\t\t\t\tthis.props.onBlur( date );\n\t\t\t\t}\n\n\t\t\t\tthis.setState({\n\t\t\t\t\tselectedDate: date,\n\t\t\t\t\tviewDate: date.clone().startOf('month'),\n\t\t\t\t\tinputValue: date.format( this.state.inputFormat ),\n\t\t\t\t\topen: open\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tif ( this.props.closeOnSelect && close ) {\n\t\t\t\t\tthis.closeCalendar();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.props.onChange( date );\n\t\t},\n\n\t\topenCalendar: function() {\n\t\t\tif (!this.state.open) {\n\t\t\t\tthis.setState({ open: true }, function() {\n\t\t\t\t\tthis.props.onFocus();\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\tcloseCalendar: function() {\n\t\t\tthis.setState({ open: false }, function () {\n\t\t\t\tthis.props.onBlur( this.state.selectedDate || this.state.inputValue );\n\t\t\t});\n\t\t},\n\n\t\thandleClickOutside: function() {\n\t\t\tif ( this.props.input && this.state.open && !this.props.open ) {\n\t\t\t\tthis.setState({ open: false }, function() {\n\t\t\t\t\tthis.props.onBlur( this.state.selectedDate || this.state.inputValue );\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\tlocalMoment: function( date, format, props ) {\n\t\t\tprops = props || this.props;\n\t\t\tvar momentFn = props.utc ? moment.utc : moment;\n\t\t\tvar m = momentFn( date, format, props.strictParsing );\n\t\t\tif ( props.locale )\n\t\t\t\tm.locale( props.locale );\n\t\t\treturn m;\n\t\t},\n\n\t\tcomponentProps: {\n\t\t\tfromProps: ['value', 'isValidDate', 'renderDay', 'renderMonth', 'renderYear', 'timeConstraints'],\n\t\t\tfromState: ['viewDate', 'selectedDate', 'updateOn'],\n\t\t\tfromThis: ['setDate', 'setTime', 'showView', 'addTime', 'subtractTime', 'updateSelectedDate', 'localMoment']\n\t\t},\n\n\t\tgetComponentProps: function() {\n\t\t\tvar me = this,\n\t\t\t\tformats = this.getFormats( this.props ),\n\t\t\t\tprops = {dateFormat: formats.date, timeFormat: formats.time}\n\t\t\t;\n\n\t\t\tthis.componentProps.fromProps.forEach( function( name ) {\n\t\t\t\tprops[ name ] = me.props[ name ];\n\t\t\t});\n\t\t\tthis.componentProps.fromState.forEach( function( name ) {\n\t\t\t\tprops[ name ] = me.state[ name ];\n\t\t\t});\n\t\t\tthis.componentProps.fromThis.forEach( function( name ) {\n\t\t\t\tprops[ name ] = me[ name ];\n\t\t\t});\n\n\t\t\treturn props;\n\t\t},\n\n\t\trender: function() {\n\t\t\tvar DOM = React.DOM,\n\t\t\t\tclassName = 'rdt' + (this.props.className ?\n\t                  ( Array.isArray( this.props.className ) ?\n\t                  ' ' + this.props.className.join( ' ' ) : ' ' + this.props.className) : ''),\n\t\t\t\tchildren = []\n\t\t\t;\n\n\t\t\tif ( this.props.input ) {\n\t\t\t\tchildren = [ DOM.input( assign({\n\t\t\t\t\tkey: 'i',\n\t\t\t\t\ttype: 'text',\n\t\t\t\t\tclassName: 'form-control',\n\t\t\t\t\tonFocus: this.openCalendar,\n\t\t\t\t\tonChange: this.onInputChange,\n\t\t\t\t\tonKeyDown: this.onInputKey,\n\t\t\t\t\tvalue: this.state.inputValue\n\t\t\t\t}, this.props.inputProps ))];\n\t\t\t} else {\n\t\t\t\tclassName += ' rdtStatic';\n\t\t\t}\n\n\t\t\tif ( this.state.open )\n\t\t\t\tclassName += ' rdtOpen';\n\n\t\t\treturn DOM.div({className: className}, children.concat(\n\t\t\t\tDOM.div(\n\t\t\t\t\t{ key: 'dt', className: 'rdtPicker' },\n\t\t\t\t\tReact.createElement( CalendarContainer, {view: this.state.currentView, viewProps: this.getComponentProps(), onClickOutside: this.handleClickOutside })\n\t\t\t\t)\n\t\t\t));\n\t\t}\n\t});\n\n\t// Make moment accessible through the Datetime class\n\tDatetime.moment = moment;\n\n\tmodule.exports = Datetime;\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\n\tfunction ToObject(val) {\n\t\tif (val == null) {\n\t\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t\t}\n\n\t\treturn Object(val);\n\t}\n\n\tfunction ownEnumerableKeys(obj) {\n\t\tvar keys = Object.getOwnPropertyNames(obj);\n\n\t\tif (Object.getOwnPropertySymbols) {\n\t\t\tkeys = keys.concat(Object.getOwnPropertySymbols(obj));\n\t\t}\n\n\t\treturn keys.filter(function (key) {\n\t\t\treturn propIsEnumerable.call(obj, key);\n\t\t});\n\t}\n\n\tmodule.exports = Object.assign || function (target, source) {\n\t\tvar from;\n\t\tvar keys;\n\t\tvar to = ToObject(target);\n\n\t\tfor (var s = 1; s < arguments.length; s++) {\n\t\t\tfrom = arguments[s];\n\t\t\tkeys = ownEnumerableKeys(Object(from));\n\n\t\t\tfor (var i = 0; i < keys.length; i++) {\n\t\t\t\tto[keys[i]] = from[keys[i]];\n\t\t\t}\n\t\t}\n\n\t\treturn to;\n\t};\n\n\n/***/ },\n/* 2 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n/***/ },\n/* 3 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_3__;\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar React = __webpack_require__(3),\n\t  DaysView = __webpack_require__(5),\n\t  MonthsView = __webpack_require__(6),\n\t  YearsView = __webpack_require__(7),\n\t  TimeView = __webpack_require__(8),\n\t  onClickOutside = __webpack_require__(9)\n\t;\n\n\tvar CalendarContainer = onClickOutside( React.createClass({\n\t\tviewComponents: {\n\t\t\tdays: DaysView,\n\t\t\tmonths: MonthsView,\n\t\t\tyears: YearsView,\n\t\t\ttime: TimeView\n\t\t},\n\n\t  render: function() {\n\t    return React.createElement( this.viewComponents[ this.props.view ], this.props.viewProps );\n\t  },\n\n\t  handleClickOutside: function() {\n\t    this.props.onClickOutside();\n\t  }\n\t}));\n\n\tmodule.exports = CalendarContainer;\n\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar React = __webpack_require__(3),\n\t\tmoment = __webpack_require__(2)\n\t;\n\n\tvar DOM = React.DOM;\n\tvar DateTimePickerDays = React.createClass({\n\t\trender: function() {\n\t\t\tvar footer = this.renderFooter(),\n\t\t\t\tdate = this.props.viewDate,\n\t\t\t\tlocale = date.localeData(),\n\t\t\t\ttableChildren\n\t\t\t;\n\n\t\t\ttableChildren = [\n\t\t\t\tDOM.thead({ key: 'th' }, [\n\t\t\t\t\tDOM.tr({ key: 'h' }, [\n\t\t\t\t\t\tDOM.th({ key: 'p', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 1, 'months' )}, '‹' )),\n\t\t\t\t\t\tDOM.th({ key: 's', className: 'rdtSwitch', onClick: this.props.showView( 'months' ), colSpan: 5, 'data-value': this.props.viewDate.month() }, locale.months( date ) + ' ' + date.year() ),\n\t\t\t\t\t\tDOM.th({ key: 'n', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 1, 'months' )}, '›' ))\n\t\t\t\t\t]),\n\t\t\t\t\tDOM.tr({ key: 'd'}, this.getDaysOfWeek( locale ).map( function( day, index ) { return DOM.th({ key: day + index, className: 'dow'}, day ); }) )\n\t\t\t\t]),\n\t\t\t\tDOM.tbody({ key: 'tb' }, this.renderDays())\n\t\t\t];\n\n\t\t\tif ( footer )\n\t\t\t\ttableChildren.push( footer );\n\n\t\t\treturn DOM.div({ className: 'rdtDays' },\n\t\t\t\tDOM.table({}, tableChildren )\n\t\t\t);\n\t\t},\n\n\t\t/**\n\t\t * Get a list of the days of the week\n\t\t * depending on the current locale\n\t\t * @return {array} A list with the shortname of the days\n\t\t */\n\t\tgetDaysOfWeek: function( locale ) {\n\t\t\tvar days = locale._weekdaysMin,\n\t\t\t\tfirst = locale.firstDayOfWeek(),\n\t\t\t\tdow = [],\n\t\t\t\ti = 0\n\t\t\t;\n\n\t\t\tdays.forEach( function( day ) {\n\t\t\t\tdow[ (7 + ( i++ ) - first) % 7 ] = day;\n\t\t\t});\n\n\t\t\treturn dow;\n\t\t},\n\n\t\trenderDays: function() {\n\t\t\tvar date = this.props.viewDate,\n\t\t\t\tselected = this.props.selectedDate && this.props.selectedDate.clone(),\n\t\t\t\tprevMonth = date.clone().subtract( 1, 'months' ),\n\t\t\t\tcurrentYear = date.year(),\n\t\t\t\tcurrentMonth = date.month(),\n\t\t\t\tweeks = [],\n\t\t\t\tdays = [],\n\t\t\t\trenderer = this.props.renderDay || this.renderDay,\n\t\t\t\tisValid = this.props.isValidDate || this.alwaysValidDate,\n\t\t\t\tclasses, isDisabled, dayProps, currentDate\n\t\t\t;\n\n\t\t\t// Go to the last week of the previous month\n\t\t\tprevMonth.date( prevMonth.daysInMonth() ).startOf( 'week' );\n\t\t\tvar lastDay = prevMonth.clone().add( 42, 'd' );\n\n\t\t\twhile ( prevMonth.isBefore( lastDay ) ) {\n\t\t\t\tclasses = 'rdtDay';\n\t\t\t\tcurrentDate = prevMonth.clone();\n\n\t\t\t\tif ( ( prevMonth.year() === currentYear && prevMonth.month() < currentMonth ) || ( prevMonth.year() < currentYear ) )\n\t\t\t\t\tclasses += ' rdtOld';\n\t\t\t\telse if ( ( prevMonth.year() === currentYear && prevMonth.month() > currentMonth ) || ( prevMonth.year() > currentYear ) )\n\t\t\t\t\tclasses += ' rdtNew';\n\n\t\t\t\tif ( selected && prevMonth.isSame( selected, 'day' ) )\n\t\t\t\t\tclasses += ' rdtActive';\n\n\t\t\t\tif ( prevMonth.isSame( moment(), 'day' ) )\n\t\t\t\t\tclasses += ' rdtToday';\n\n\t\t\t\tisDisabled = !isValid( currentDate, selected );\n\t\t\t\tif ( isDisabled )\n\t\t\t\t\tclasses += ' rdtDisabled';\n\n\t\t\t\tdayProps = {\n\t\t\t\t\tkey: prevMonth.format( 'M_D' ),\n\t\t\t\t\t'data-value': prevMonth.date(),\n\t\t\t\t\tclassName: classes\n\t\t\t\t};\n\n\t\t\t\tif ( !isDisabled )\n\t\t\t\t\tdayProps.onClick = this.updateSelectedDate;\n\n\t\t\t\tdays.push( renderer( dayProps, currentDate, selected ) );\n\n\t\t\t\tif ( days.length === 7 ) {\n\t\t\t\t\tweeks.push( DOM.tr({ key: prevMonth.format( 'M_D' )}, days ) );\n\t\t\t\t\tdays = [];\n\t\t\t\t}\n\n\t\t\t\tprevMonth.add( 1, 'd' );\n\t\t\t}\n\n\t\t\treturn weeks;\n\t\t},\n\n\t\tupdateSelectedDate: function( event ) {\n\t\t\tthis.props.updateSelectedDate( event, true );\n\t\t},\n\n\t\trenderDay: function( props, currentDate ) {\n\t\t\treturn DOM.td( props, currentDate.date() );\n\t\t},\n\n\t\trenderFooter: function() {\n\t\t\tif ( !this.props.timeFormat )\n\t\t\t\treturn '';\n\n\t\t\tvar date = this.props.selectedDate || this.props.viewDate;\n\n\t\t\treturn DOM.tfoot({ key: 'tf'},\n\t\t\t\tDOM.tr({},\n\t\t\t\t\tDOM.td({ onClick: this.props.showView( 'time' ), colSpan: 7, className: 'rdtTimeToggle' }, date.format( this.props.timeFormat ))\n\t\t\t\t)\n\t\t\t);\n\t\t},\n\n\t\talwaysValidDate: function() {\n\t\t\treturn 1;\n\t\t}\n\t});\n\n\tmodule.exports = DateTimePickerDays;\n\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar React = __webpack_require__(3);\n\n\tvar DOM = React.DOM;\n\tvar DateTimePickerMonths = React.createClass({\n\t\trender: function() {\n\t\t\treturn DOM.div({ className: 'rdtMonths' }, [\n\t\t\t\tDOM.table({ key: 'a' }, DOM.thead( {}, DOM.tr( {}, [\n\t\t\t\t\tDOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 1, 'years' )}, '‹' )),\n\t\t\t\t\tDOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2, 'data-value': this.props.viewDate.year() }, this.props.viewDate.year() ),\n\t\t\t\t\tDOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 1, 'years' )}, '›' ))\n\t\t\t\t]))),\n\t\t\t\tDOM.table({ key: 'months' }, DOM.tbody({ key: 'b' }, this.renderMonths()))\n\t\t\t]);\n\t\t},\n\n\t\trenderMonths: function() {\n\t\t\tvar date = this.props.selectedDate,\n\t\t\t\tmonth = this.props.viewDate.month(),\n\t\t\t\tyear = this.props.viewDate.year(),\n\t\t\t\trows = [],\n\t\t\t\ti = 0,\n\t\t\t\tmonths = [],\n\t\t\t\trenderer = this.props.renderMonth || this.renderMonth,\n\t\t\t\tisValid = this.props.isValidDate || this.alwaysValidDate,\n\t\t\t\tclasses, props, currentMonth, isDisabled, noOfDaysInMonth, daysInMonth, validDay,\n\t\t\t\t// Date is irrelevant because we're only interested in month\n\t\t\t\tirrelevantDate = 1\n\t\t\t;\n\n\t\t\twhile (i < 12) {\n\t\t\t\tclasses = 'rdtMonth';\n\t\t\t\tcurrentMonth =\n\t\t\t\t\tthis.props.viewDate.clone().set({ year: year, month: i, date: irrelevantDate });\n\n\t\t\t\tnoOfDaysInMonth = currentMonth.endOf( 'month' ).format( 'D' );\n\t\t\t\tdaysInMonth = Array.from({ length: noOfDaysInMonth }, function( e, i ) {\n\t\t\t\t\treturn i + 1;\n\t\t\t\t});\n\n\t\t\t\tvalidDay = daysInMonth.find(function( d ) {\n\t\t\t\t\tvar day = currentMonth.clone().set( 'date', d );\n\t\t\t\t\treturn isValid( day );\n\t\t\t\t});\n\n\t\t\t\tisDisabled = ( validDay === undefined );\n\n\t\t\t\tif ( isDisabled )\n\t\t\t\t\tclasses += ' rdtDisabled';\n\n\t\t\t\tif ( date && i === month && year === date.year() )\n\t\t\t\t\tclasses += ' rdtActive';\n\n\t\t\t\tprops = {\n\t\t\t\t\tkey: i,\n\t\t\t\t\t'data-value': i,\n\t\t\t\t\tclassName: classes\n\t\t\t\t};\n\n\t\t\t\tif ( !isDisabled )\n\t\t\t\t\tprops.onClick = ( this.props.updateOn === 'months' ?\n\t\t\t\t\t\tthis.updateSelectedMonth : this.props.setDate( 'month' ) );\n\n\t\t\t\tmonths.push( renderer( props, i, year, date && date.clone() ) );\n\n\t\t\t\tif ( months.length === 4 ) {\n\t\t\t\t\trows.push( DOM.tr({ key: month + '_' + rows.length }, months ) );\n\t\t\t\t\tmonths = [];\n\t\t\t\t}\n\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\treturn rows;\n\t\t},\n\n\t\tupdateSelectedMonth: function( event ) {\n\t\t\tthis.props.updateSelectedDate( event, true );\n\t\t},\n\n\t\trenderMonth: function( props, month ) {\n\t\t\tvar localMoment = this.props.viewDate;\n\t\t\tvar monthStr = localMoment.localeData().monthsShort( localMoment.month( month ) );\n\t\t\tvar strLength = 3;\n\t\t\t// Because some months are up to 5 characters long, we want to\n\t\t\t// use a fixed string length for consistency\n\t\t\tvar monthStrFixedLength = monthStr.substring( 0, strLength );\n\t\t\treturn DOM.td( props, capitalize( monthStrFixedLength ) );\n\t\t},\n\n\t\talwaysValidDate: function() {\n\t\t\treturn 1;\n\t\t}\n\t});\n\n\tfunction capitalize( str ) {\n\t\treturn str.charAt( 0 ).toUpperCase() + str.slice( 1 );\n\t}\n\n\tmodule.exports = DateTimePickerMonths;\n\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar React = __webpack_require__(3);\n\n\tvar DOM = React.DOM;\n\tvar DateTimePickerYears = React.createClass({\n\t\trender: function() {\n\t\t\tvar year = parseInt( this.props.viewDate.year() / 10, 10 ) * 10;\n\n\t\t\treturn DOM.div({ className: 'rdtYears' }, [\n\t\t\t\tDOM.table({ key: 'a' }, DOM.thead({}, DOM.tr({}, [\n\t\t\t\t\tDOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 10, 'years' )}, '‹' )),\n\t\t\t\t\tDOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2 }, year + '-' + ( year + 9 ) ),\n\t\t\t\t\tDOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 10, 'years' )}, '›' ))\n\t\t\t\t\t]))),\n\t\t\t\tDOM.table({ key: 'years' }, DOM.tbody( {}, this.renderYears( year )))\n\t\t\t]);\n\t\t},\n\n\t\trenderYears: function( year ) {\n\t\t\tvar years = [],\n\t\t\t\ti = -1,\n\t\t\t\trows = [],\n\t\t\t\trenderer = this.props.renderYear || this.renderYear,\n\t\t\t\tselectedDate = this.props.selectedDate,\n\t\t\t\tisValid = this.props.isValidDate || this.alwaysValidDate,\n\t\t\t\tclasses, props, currentYear, isDisabled, noOfDaysInYear, daysInYear, validDay,\n\t\t\t\t// Month and date are irrelevant here because\n\t\t\t\t// we're only interested in the year\n\t\t\t\tirrelevantMonth = 0,\n\t\t\t\tirrelevantDate = 1\n\t\t\t;\n\n\t\t\tyear--;\n\t\t\twhile (i < 11) {\n\t\t\t\tclasses = 'rdtYear';\n\t\t\t\tcurrentYear = this.props.viewDate.clone().set(\n\t\t\t\t\t{ year: year, month: irrelevantMonth, date: irrelevantDate } );\n\n\t\t\t\t// Not sure what 'rdtOld' is for, commenting out for now as it's not working properly\n\t\t\t\t// if ( i === -1 | i === 10 )\n\t\t\t\t\t// classes += ' rdtOld';\n\n\t\t\t\tnoOfDaysInYear = currentYear.endOf( 'year' ).format( 'DDD' );\n\t\t\t\tdaysInYear = Array.from({ length: noOfDaysInYear }, function( e, i ) {\n\t\t\t\t\treturn i + 1;\n\t\t\t\t});\n\n\t\t\t\tvalidDay = daysInYear.find(function( d ) {\n\t\t\t\t\tvar day = currentYear.clone().dayOfYear( d );\n\t\t\t\t\treturn isValid( day );\n\t\t\t\t});\n\n\t\t\t\tisDisabled = ( validDay === undefined );\n\n\t\t\t\tif ( isDisabled )\n\t\t\t\t\tclasses += ' rdtDisabled';\n\n\t\t\t\tif ( selectedDate && selectedDate.year() === year )\n\t\t\t\t\tclasses += ' rdtActive';\n\n\t\t\t\tprops = {\n\t\t\t\t\tkey: year,\n\t\t\t\t\t'data-value': year,\n\t\t\t\t\tclassName: classes\n\t\t\t\t};\n\n\t\t\t\tif ( !isDisabled )\n\t\t\t\t\tprops.onClick = ( this.props.updateOn === 'years' ?\n\t\t\t\t\t\tthis.updateSelectedYear : this.props.setDate('year') );\n\n\t\t\t\tyears.push( renderer( props, year, selectedDate && selectedDate.clone() ));\n\n\t\t\t\tif ( years.length === 4 ) {\n\t\t\t\t\trows.push( DOM.tr({ key: i }, years ) );\n\t\t\t\t\tyears = [];\n\t\t\t\t}\n\n\t\t\t\tyear++;\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\treturn rows;\n\t\t},\n\n\t\tupdateSelectedYear: function( event ) {\n\t\t\tthis.props.updateSelectedDate( event, true );\n\t\t},\n\n\t\trenderYear: function( props, year ) {\n\t\t\treturn DOM.td( props, year );\n\t\t},\n\n\t\talwaysValidDate: function() {\n\t\t\treturn 1;\n\t\t}\n\t});\n\n\tmodule.exports = DateTimePickerYears;\n\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar React = __webpack_require__(3),\n\t\tassign = __webpack_require__(1)\n\t;\n\n\tvar DOM = React.DOM;\n\tvar DateTimePickerTime = React.createClass({\n\t\tgetInitialState: function() {\n\t\t\treturn this.calculateState( this.props );\n\t\t},\n\n\t\tcalculateState: function( props ) {\n\t\t\tvar date = props.selectedDate || props.viewDate,\n\t\t\t\tformat = props.timeFormat,\n\t\t\t\tcounters = []\n\t\t\t;\n\n\t\t\tif ( format.toLowerCase().indexOf('h') !== -1 ) {\n\t\t\t\tcounters.push('hours');\n\t\t\t\tif ( format.indexOf('m') !== -1 ) {\n\t\t\t\t\tcounters.push('minutes');\n\t\t\t\t\tif ( format.indexOf('s') !== -1 ) {\n\t\t\t\t\t\tcounters.push('seconds');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar daypart = false;\n\t\t\tif ( this.state !== null && this.props.timeFormat.toLowerCase().indexOf( ' a' ) !== -1 ) {\n\t\t\t\tif ( this.props.timeFormat.indexOf( ' A' ) !== -1 ) {\n\t\t\t\t\tdaypart = ( this.state.hours >= 12 ) ? 'PM' : 'AM';\n\t\t\t\t} else {\n\t\t\t\t\tdaypart = ( this.state.hours >= 12 ) ? 'pm' : 'am';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\thours: date.format( 'H' ),\n\t\t\t\tminutes: date.format( 'mm' ),\n\t\t\t\tseconds: date.format( 'ss' ),\n\t\t\t\tmilliseconds: date.format( 'SSS' ),\n\t\t\t\tdaypart: daypart,\n\t\t\t\tcounters: counters\n\t\t\t};\n\t\t},\n\n\t\trenderCounter: function( type ) {\n\t\t\tif ( type !== 'daypart' ) {\n\t\t\t\tvar value = this.state[ type ];\n\t\t\t\tif ( type === 'hours' && this.props.timeFormat.toLowerCase().indexOf( ' a' ) !== -1 ) {\n\t\t\t\t\tvalue = ( value - 1 ) % 12 + 1;\n\n\t\t\t\t\tif ( value === 0 ) {\n\t\t\t\t\t\tvalue = 12;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn DOM.div({ key: type, className: 'rdtCounter' }, [\n\t\t\t\t\tDOM.span({ key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'increase', type ) }, '▲' ),\n\t\t\t\t\tDOM.div({ key: 'c', className: 'rdtCount' }, value ),\n\t\t\t\t\tDOM.span({ key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'decrease', type ) }, '▼' )\n\t\t\t\t]);\n\t\t\t}\n\t\t\treturn '';\n\t\t},\n\n\t\trenderDayPart: function() {\n\t\t\treturn DOM.div({ key: 'dayPart', className: 'rdtCounter' }, [\n\t\t\t\tDOM.span({ key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▲' ),\n\t\t\t\tDOM.div({ key: this.state.daypart, className: 'rdtCount' }, this.state.daypart ),\n\t\t\t\tDOM.span({ key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▼' )\n\t\t\t]);\n\t\t},\n\n\t\trender: function() {\n\t\t\tvar me = this,\n\t\t\t\tcounters = []\n\t\t\t;\n\n\t\t\tthis.state.counters.forEach( function( c ) {\n\t\t\t\tif ( counters.length )\n\t\t\t\t\tcounters.push( DOM.div({ key: 'sep' + counters.length, className: 'rdtCounterSeparator' }, ':' ) );\n\t\t\t\tcounters.push( me.renderCounter( c ) );\n\t\t\t});\n\n\t\t\tif ( this.state.daypart !== false ) {\n\t\t\t\tcounters.push( me.renderDayPart() );\n\t\t\t}\n\n\t\t\tif ( this.state.counters.length === 3 && this.props.timeFormat.indexOf( 'S' ) !== -1 ) {\n\t\t\t\tcounters.push( DOM.div({ className: 'rdtCounterSeparator', key: 'sep5' }, ':' ) );\n\t\t\t\tcounters.push(\n\t\t\t\t\tDOM.div({ className: 'rdtCounter rdtMilli', key: 'm' },\n\t\t\t\t\t\tDOM.input({ value: this.state.milliseconds, type: 'text', onChange: this.updateMilli } )\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn DOM.div({ className: 'rdtTime' },\n\t\t\t\tDOM.table({}, [\n\t\t\t\t\tthis.renderHeader(),\n\t\t\t\t\tDOM.tbody({ key: 'b'}, DOM.tr({}, DOM.td({},\n\t\t\t\t\t\tDOM.div({ className: 'rdtCounters' }, counters )\n\t\t\t\t\t)))\n\t\t\t\t])\n\t\t\t);\n\t\t},\n\n\t\tcomponentWillMount: function() {\n\t\t\tvar me = this;\n\t\t\tme.timeConstraints = {\n\t\t\t\thours: {\n\t\t\t\t\tmin: 0,\n\t\t\t\t\tmax: 23,\n\t\t\t\t\tstep: 1\n\t\t\t\t},\n\t\t\t\tminutes: {\n\t\t\t\t\tmin: 0,\n\t\t\t\t\tmax: 59,\n\t\t\t\t\tstep: 1\n\t\t\t\t},\n\t\t\t\tseconds: {\n\t\t\t\t\tmin: 0,\n\t\t\t\t\tmax: 59,\n\t\t\t\t\tstep: 1\n\t\t\t\t},\n\t\t\t\tmilliseconds: {\n\t\t\t\t\tmin: 0,\n\t\t\t\t\tmax: 999,\n\t\t\t\t\tstep: 1\n\t\t\t\t}\n\t\t\t};\n\t\t\t['hours', 'minutes', 'seconds', 'milliseconds'].forEach( function( type ) {\n\t\t\t\tassign(me.timeConstraints[ type ], me.props.timeConstraints[ type ]);\n\t\t\t});\n\t\t\tthis.setState( this.calculateState( this.props ) );\n\t\t},\n\n\t\tcomponentWillReceiveProps: function( nextProps ) {\n\t\t\tthis.setState( this.calculateState( nextProps ) );\n\t\t},\n\n\t\tupdateMilli: function( e ) {\n\t\t\tvar milli = parseInt( e.target.value, 10 );\n\t\t\tif ( milli === e.target.value && milli >= 0 && milli < 1000 ) {\n\t\t\t\tthis.props.setTime( 'milliseconds', milli );\n\t\t\t\tthis.setState( { milliseconds: milli } );\n\t\t\t}\n\t\t},\n\n\t\trenderHeader: function() {\n\t\t\tif ( !this.props.dateFormat )\n\t\t\t\treturn null;\n\n\t\t\tvar date = this.props.selectedDate || this.props.viewDate;\n\t\t\treturn DOM.thead({ key: 'h' }, DOM.tr({},\n\t\t\t\tDOM.th({ className: 'rdtSwitch', colSpan: 4, onClick: this.props.showView( 'days' ) }, date.format( this.props.dateFormat ) )\n\t\t\t));\n\t\t},\n\n\t\tonStartClicking: function( action, type ) {\n\t\t\tvar me = this;\n\n\t\t\treturn function() {\n\t\t\t\tvar update = {};\n\t\t\t\tupdate[ type ] = me[ action ]( type );\n\t\t\t\tme.setState( update );\n\n\t\t\t\tme.timer = setTimeout( function() {\n\t\t\t\t\tme.increaseTimer = setInterval( function() {\n\t\t\t\t\t\tupdate[ type ] = me[ action ]( type );\n\t\t\t\t\t\tme.setState( update );\n\t\t\t\t\t}, 70);\n\t\t\t\t}, 500);\n\n\t\t\t\tme.mouseUpListener = function() {\n\t\t\t\t\tclearTimeout( me.timer );\n\t\t\t\t\tclearInterval( me.increaseTimer );\n\t\t\t\t\tme.props.setTime( type, me.state[ type ] );\n\t\t\t\t\tdocument.body.removeEventListener( 'mouseup', me.mouseUpListener );\n\t\t\t\t};\n\n\t\t\t\tdocument.body.addEventListener( 'mouseup', me.mouseUpListener );\n\t\t\t};\n\t\t},\n\n\t\tpadValues: {\n\t\t\thours: 1,\n\t\t\tminutes: 2,\n\t\t\tseconds: 2,\n\t\t\tmilliseconds: 3\n\t\t},\n\n\t\ttoggleDayPart: function( type ) { // type is always 'hours'\n\t\t\tvar value = parseInt( this.state[ type ], 10) + 12;\n\t\t\tif ( value > this.timeConstraints[ type ].max )\n\t\t\t\tvalue = this.timeConstraints[ type ].min + ( value - ( this.timeConstraints[ type ].max + 1 ) );\n\t\t\treturn this.pad( type, value );\n\t\t},\n\n\t\tincrease: function( type ) {\n\t\t\tvar value = parseInt( this.state[ type ], 10) + this.timeConstraints[ type ].step;\n\t\t\tif ( value > this.timeConstraints[ type ].max )\n\t\t\t\tvalue = this.timeConstraints[ type ].min + ( value - ( this.timeConstraints[ type ].max + 1 ) );\n\t\t\treturn this.pad( type, value );\n\t\t},\n\n\t\tdecrease: function( type ) {\n\t\t\tvar value = parseInt( this.state[ type ], 10) - this.timeConstraints[ type ].step;\n\t\t\tif ( value < this.timeConstraints[ type ].min )\n\t\t\t\tvalue = this.timeConstraints[ type ].max + 1 - ( this.timeConstraints[ type ].min - value );\n\t\t\treturn this.pad( type, value );\n\t\t},\n\n\t\tpad: function( type, value ) {\n\t\t\tvar str = value + '';\n\t\t\twhile ( str.length < this.padValues[ type ] )\n\t\t\t\tstr = '0' + str;\n\t\t\treturn str;\n\t\t}\n\t});\n\n\tmodule.exports = DateTimePickerTime;\n\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * A higher-order-component for handling onClickOutside for React components.\n\t */\n\t(function(root) {\n\n\t  // administrative\n\t  var registeredComponents = [];\n\t  var handlers = [];\n\t  var IGNORE_CLASS = 'ignore-react-onclickoutside';\n\t  var DEFAULT_EVENTS = ['mousedown', 'touchstart'];\n\n\t  /**\n\t   * Check whether some DOM node is our Component's node.\n\t   */\n\t  var isNodeFound = function(current, componentNode, ignoreClass) {\n\t    if (current === componentNode) {\n\t      return true;\n\t    }\n\t    // SVG <use/> elements do not technically reside in the rendered DOM, so\n\t    // they do not have classList directly, but they offer a link to their\n\t    // corresponding element, which can have classList. This extra check is for\n\t    // that case.\n\t    // See: http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGUseElement\n\t    // Discussion: https://github.com/Pomax/react-onclickoutside/pull/17\n\t    if (current.correspondingElement) {\n\t      return current.correspondingElement.classList.contains(ignoreClass);\n\t    }\n\t    return current.classList.contains(ignoreClass);\n\t  };\n\n\t  /**\n\t   * Try to find our node in a hierarchy of nodes, returning the document\n\t   * node as highest noode if our node is not found in the path up.\n\t   */\n\t  var findHighest = function(current, componentNode, ignoreClass) {\n\t    if (current === componentNode) {\n\t      return true;\n\t    }\n\n\t    // If source=local then this event came from 'somewhere'\n\t    // inside and should be ignored. We could handle this with\n\t    // a layered approach, too, but that requires going back to\n\t    // thinking in terms of Dom node nesting, running counter\n\t    // to React's 'you shouldn't care about the DOM' philosophy.\n\t    while(current.parentNode) {\n\t      if (isNodeFound(current, componentNode, ignoreClass)) {\n\t        return true;\n\t      }\n\t      current = current.parentNode;\n\t    }\n\t    return current;\n\t  };\n\n\t  /**\n\t   * Check if the browser scrollbar was clicked\n\t   */\n\t  var clickedScrollbar = function(evt) {\n\t    return document.documentElement.clientWidth <= evt.clientX;\n\t  };\n\n\t  /**\n\t   * Generate the event handler that checks whether a clicked DOM node\n\t   * is inside of, or lives outside of, our Component's node tree.\n\t   */\n\t  var generateOutsideCheck = function(componentNode, componentInstance, eventHandler, ignoreClass, excludeScrollbar, preventDefault, stopPropagation) {\n\t    return function(evt) {\n\t      if (preventDefault) {\n\t        evt.preventDefault();\n\t      }\n\t      if (stopPropagation) {\n\t        evt.stopPropagation();\n\t      }\n\t      var current = evt.target;\n\t      if((excludeScrollbar && clickedScrollbar(evt)) || (findHighest(current, componentNode, ignoreClass) !== document)) {\n\t        return;\n\t      }\n\t      eventHandler(evt);\n\t    };\n\t  };\n\n\t  /**\n\t   * This function generates the HOC function that you'll use\n\t   * in order to impart onOutsideClick listening to an\n\t   * arbitrary component. It gets called at the end of the\n\t   * bootstrapping code to yield an instance of the\n\t   * onClickOutsideHOC function defined inside setupHOC().\n\t   */\n\t  function setupHOC(root, React, ReactDOM) {\n\n\t    // The actual Component-wrapping HOC:\n\t    return function onClickOutsideHOC(Component, config) {\n\t      var wrapComponentWithOnClickOutsideHandling = React.createClass({\n\t        statics: {\n\t          /**\n\t           * Access the wrapped Component's class.\n\t           */\n\t          getClass: function() {\n\t            if (Component.getClass) {\n\t              return Component.getClass();\n\t            }\n\t            return Component;\n\t          }\n\t        },\n\n\t        /**\n\t         * Access the wrapped Component's instance.\n\t         */\n\t        getInstance: function() {\n\t          return Component.prototype.isReactComponent ? this.refs.instance : this;\n\t        },\n\n\t        // this is given meaning in componentDidMount\n\t        __outsideClickHandler: function() {},\n\n\t        /**\n\t         * Add click listeners to the current document,\n\t         * linked to this component's state.\n\t         */\n\t        componentDidMount: function() {\n\t          // If we are in an environment without a DOM such\n\t          // as shallow rendering or snapshots then we exit\n\t          // early to prevent any unhandled errors being thrown.\n\t          if (typeof document === 'undefined' || !document.createElement){\n\t            return;\n\t          }\n\n\t          var instance = this.getInstance();\n\t          var clickOutsideHandler;\n\n\t          if(config && typeof config.handleClickOutside === 'function') {\n\t            clickOutsideHandler = config.handleClickOutside(instance);\n\t            if(typeof clickOutsideHandler !== 'function') {\n\t              throw new Error('Component lacks a function for processing outside click events specified by the handleClickOutside config option.');\n\t            }\n\t          } else if(typeof instance.handleClickOutside === 'function') {\n\t            if (React.Component.prototype.isPrototypeOf(instance)) {\n\t              clickOutsideHandler = instance.handleClickOutside.bind(instance);\n\t            } else {\n\t              clickOutsideHandler = instance.handleClickOutside;\n\t            }\n\t          } else if(typeof instance.props.handleClickOutside === 'function') {\n\t            clickOutsideHandler = instance.props.handleClickOutside;\n\t          } else {\n\t            throw new Error('Component lacks a handleClickOutside(event) function for processing outside click events.');\n\t          }\n\n\t          var componentNode = ReactDOM.findDOMNode(instance);\n\t          if (componentNode === null) {\n\t            console.warn('Antipattern warning: there was no DOM node associated with the component that is being wrapped by outsideClick.');\n\t            console.warn([\n\t              'This is typically caused by having a component that starts life with a render function that',\n\t              'returns `null` (due to a state or props value), so that the component \\'exist\\' in the React',\n\t              'chain of components, but not in the DOM.\\n\\nInstead, you need to refactor your code so that the',\n\t              'decision of whether or not to show your component is handled by the parent, in their render()',\n\t              'function.\\n\\nIn code, rather than:\\n\\n  A{render(){return check? <.../> : null;}\\n  B{render(){<A check=... />}\\n\\nmake sure that you',\n\t              'use:\\n\\n  A{render(){return <.../>}\\n  B{render(){return <...>{ check ? <A/> : null }<...>}}\\n\\nThat is:',\n\t              'the parent is always responsible for deciding whether or not to render any of its children.',\n\t              'It is not the child\\'s responsibility to decide whether a render instruction from above should',\n\t              'get ignored or not by returning `null`.\\n\\nWhen any component gets its render() function called,',\n\t              'that is the signal that it should be rendering its part of the UI. It may in turn decide not to',\n\t              'render all of *its* children, but it should never return `null` for itself. It is not responsible',\n\t              'for that decision.'\n\t            ].join(' '));\n\t          }\n\n\t          var fn = this.__outsideClickHandler = generateOutsideCheck(\n\t            componentNode,\n\t            instance,\n\t            clickOutsideHandler,\n\t            this.props.outsideClickIgnoreClass || IGNORE_CLASS,\n\t            this.props.excludeScrollbar || false,\n\t            this.props.preventDefault || false,\n\t            this.props.stopPropagation || false\n\t          );\n\n\t          var pos = registeredComponents.length;\n\t          registeredComponents.push(this);\n\t          handlers[pos] = fn;\n\n\t          // If there is a truthy disableOnClickOutside property for this\n\t          // component, don't immediately start listening for outside events.\n\t          if (!this.props.disableOnClickOutside) {\n\t            this.enableOnClickOutside();\n\t          }\n\t        },\n\n\t        /**\n\t        * Track for disableOnClickOutside props changes and enable/disable click outside\n\t        */\n\t        componentWillReceiveProps: function(nextProps) {\n\t          if (this.props.disableOnClickOutside && !nextProps.disableOnClickOutside) {\n\t            this.enableOnClickOutside();\n\t          } else if (!this.props.disableOnClickOutside && nextProps.disableOnClickOutside) {\n\t            this.disableOnClickOutside();\n\t          }\n\t        },\n\n\t        /**\n\t         * Remove the document's event listeners\n\t         */\n\t        componentWillUnmount: function() {\n\t          this.disableOnClickOutside();\n\t          this.__outsideClickHandler = false;\n\t          var pos = registeredComponents.indexOf(this);\n\t          if( pos>-1) {\n\t            // clean up so we don't leak memory\n\t            if (handlers[pos]) { handlers.splice(pos, 1); }\n\t            registeredComponents.splice(pos, 1);\n\t          }\n\t        },\n\n\t        /**\n\t         * Can be called to explicitly enable event listening\n\t         * for clicks and touches outside of this element.\n\t         */\n\t        enableOnClickOutside: function() {\n\t          var fn = this.__outsideClickHandler;\n\t          if (typeof document !== 'undefined') {\n\t            var events = this.props.eventTypes || DEFAULT_EVENTS;\n\t            if (!events.forEach) {\n\t              events = [events];\n\t            }\n\t            events.forEach(function (eventName) {\n\t              document.addEventListener(eventName, fn);\n\t            });\n\t          }\n\t        },\n\n\t        /**\n\t         * Can be called to explicitly disable event listening\n\t         * for clicks and touches outside of this element.\n\t         */\n\t        disableOnClickOutside: function() {\n\t          var fn = this.__outsideClickHandler;\n\t          if (typeof document !== 'undefined') {\n\t            var events = this.props.eventTypes || DEFAULT_EVENTS;\n\t            if (!events.forEach) {\n\t              events = [events];\n\t            }\n\t            events.forEach(function (eventName) {\n\t              document.removeEventListener(eventName, fn);\n\t            });\n\t          }\n\t        },\n\n\t        /**\n\t         * Pass-through render\n\t         */\n\t        render: function() {\n\t          var passedProps = this.props;\n\t          var props = {};\n\t          Object.keys(this.props).forEach(function(key) {\n\t            if (key !== 'excludeScrollbar') {\n\t              props[key] = passedProps[key];\n\t            }\n\t          });\n\t          if (Component.prototype.isReactComponent) {\n\t            props.ref = 'instance';\n\t          }\n\t          props.disableOnClickOutside = this.disableOnClickOutside;\n\t          props.enableOnClickOutside = this.enableOnClickOutside;\n\t          return React.createElement(Component, props);\n\t        }\n\t      });\n\n\t      // Add display name for React devtools\n\t      (function bindWrappedComponentName(c, wrapper) {\n\t        var componentName = c.displayName || c.name || 'Component';\n\t        wrapper.displayName = 'OnClickOutside(' + componentName + ')';\n\t      }(Component, wrapComponentWithOnClickOutsideHandling));\n\n\t      return wrapComponentWithOnClickOutsideHandling;\n\t    };\n\t  }\n\n\t  /**\n\t   * This function sets up the library in ways that\n\t   * work with the various modulde loading solutions\n\t   * used in JavaScript land today.\n\t   */\n\t  function setupBinding(root, factory) {\n\t    if (true) {\n\t      // AMD. Register as an anonymous module.\n\t      !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(3),__webpack_require__(10)], __WEBPACK_AMD_DEFINE_RESULT__ = function(React, ReactDom) {\n\t        return factory(root, React, ReactDom);\n\t      }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t    } else if (typeof exports === 'object') {\n\t      // Node. Note that this does not work with strict\n\t      // CommonJS, but only CommonJS-like environments\n\t      // that support module.exports\n\t      module.exports = factory(root, require('react'), require('react-dom'));\n\t    } else {\n\t      // Browser globals (root is window)\n\t      root.onClickOutside = factory(root, React, ReactDOM);\n\t    }\n\t  }\n\n\t  // Make it all happen\n\t  setupBinding(root, setupHOC);\n\n\t}(this));\n\n\n/***/ },\n/* 10 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_10__;\n\n/***/ }\n/******/ ])\n});\n;\n","'use strict';\n\nvar assign = require('object-assign'),\n\tmoment = require('moment'),\n\tReact = require('react'),\n\tCalendarContainer = require('./src/CalendarContainer')\n;\n\nvar TYPES = React.PropTypes;\nvar Datetime = React.createClass({\n\tpropTypes: {\n\t\t// value: TYPES.object | TYPES.string,\n\t\t// defaultValue: TYPES.object | TYPES.string,\n\t\tonFocus: TYPES.func,\n\t\tonBlur: TYPES.func,\n\t\tonChange: TYPES.func,\n\t\tlocale: TYPES.string,\n\t\tutc: TYPES.bool,\n\t\tinput: TYPES.bool,\n\t\t// dateFormat: TYPES.string | TYPES.bool,\n\t\t// timeFormat: TYPES.string | TYPES.bool,\n\t\tinputProps: TYPES.object,\n\t\ttimeConstraints: TYPES.object,\n\t\tviewMode: TYPES.oneOf(['years', 'months', 'days', 'time']),\n\t\tisValidDate: TYPES.func,\n\t\topen: TYPES.bool,\n\t\tstrictParsing: TYPES.bool,\n\t\tcloseOnSelect: TYPES.bool,\n\t\tcloseOnTab: TYPES.bool\n\t},\n\n\tgetDefaultProps: function() {\n\t\tvar nof = function() {};\n\t\treturn {\n\t\t\tclassName: '',\n\t\t\tdefaultValue: '',\n\t\t\tinputProps: {},\n\t\t\tinput: true,\n\t\t\tonFocus: nof,\n\t\t\tonBlur: nof,\n\t\t\tonChange: nof,\n\t\t\ttimeFormat: true,\n\t\t\ttimeConstraints: {},\n\t\t\tdateFormat: true,\n\t\t\tstrictParsing: true,\n\t\t\tcloseOnSelect: false,\n\t\t\tcloseOnTab: true,\n\t\t\tutc: false\n\t\t};\n\t},\n\n\tgetInitialState: function() {\n\t\tvar state = this.getStateFromProps( this.props );\n\n\t\tif ( state.open === undefined )\n\t\t\tstate.open = !this.props.input;\n\n\t\tstate.currentView = this.props.dateFormat ? (this.props.viewMode || state.updateOn || 'days') : 'time';\n\n\t\treturn state;\n\t},\n\n\tgetStateFromProps: function( props ) {\n\t\tvar formats = this.getFormats( props ),\n\t\t\tdate = props.value || props.defaultValue,\n\t\t\tselectedDate, viewDate, updateOn, inputValue\n\t\t;\n\n\t\tif ( date && typeof date === 'string' )\n\t\t\tselectedDate = this.localMoment( date, formats.datetime );\n\t\telse if ( date )\n\t\t\tselectedDate = this.localMoment( date );\n\n\t\tif ( selectedDate && !selectedDate.isValid() )\n\t\t\tselectedDate = null;\n\n\t\tviewDate = selectedDate ?\n\t\t\tselectedDate.clone().startOf('month') :\n\t\t\tthis.localMoment().startOf('month')\n\t\t;\n\n\t\tupdateOn = this.getUpdateOn(formats);\n\n\t\tif ( selectedDate )\n\t\t\tinputValue = selectedDate.format(formats.datetime);\n\t\telse if ( date.isValid && !date.isValid() )\n\t\t\tinputValue = '';\n\t\telse\n\t\t\tinputValue = date || '';\n\n\t\treturn {\n\t\t\tupdateOn: updateOn,\n\t\t\tinputFormat: formats.datetime,\n\t\t\tviewDate: viewDate,\n\t\t\tselectedDate: selectedDate,\n\t\t\tinputValue: inputValue,\n\t\t\topen: props.open\n\t\t};\n\t},\n\n\tgetUpdateOn: function( formats ) {\n\t\tif ( formats.date.match(/[lLD]/) ) {\n\t\t\treturn 'days';\n\t\t}\n\t\telse if ( formats.date.indexOf('M') !== -1 ) {\n\t\t\treturn 'months';\n\t\t}\n\t\telse if ( formats.date.indexOf('Y') !== -1 ) {\n\t\t\treturn 'years';\n\t\t}\n\n\t\treturn 'days';\n\t},\n\n\tgetFormats: function( props ) {\n\t\tvar formats = {\n\t\t\t\tdate: props.dateFormat || '',\n\t\t\t\ttime: props.timeFormat || ''\n\t\t\t},\n\t\t\tlocale = this.localMoment( props.date, null, props ).localeData()\n\t\t;\n\n\t\tif ( formats.date === true ) {\n\t\t\tformats.date = locale.longDateFormat('L');\n\t\t}\n\t\telse if ( this.getUpdateOn(formats) !== 'days' ) {\n\t\t\tformats.time = '';\n\t\t}\n\n\t\tif ( formats.time === true ) {\n\t\t\tformats.time = locale.longDateFormat('LT');\n\t\t}\n\n\t\tformats.datetime = formats.date && formats.time ?\n\t\t\tformats.date + ' ' + formats.time :\n\t\t\tformats.date || formats.time\n\t\t;\n\n\t\treturn formats;\n\t},\n\n\tcomponentWillReceiveProps: function( nextProps ) {\n\t\tvar formats = this.getFormats( nextProps ),\n\t\t\tupdatedState = {}\n\t\t;\n\n\t\tif ( nextProps.value !== this.props.value ||\n\t\t\tformats.datetime !== this.getFormats( this.props ).datetime ) {\n\t\t\tupdatedState = this.getStateFromProps( nextProps );\n\t\t}\n\n\t\tif ( updatedState.open === undefined ) {\n\t\t\tif ( this.props.closeOnSelect && this.state.currentView !== 'time' ) {\n\t\t\t\tupdatedState.open = false;\n\t\t\t} else {\n\t\t\t\tupdatedState.open = this.state.open;\n\t\t\t}\n\t\t}\n\n\t\tif ( nextProps.viewMode !== this.props.viewMode ) {\n\t\t\tupdatedState.currentView = nextProps.viewMode;\n\t\t}\n\n\t\tif ( nextProps.locale !== this.props.locale ) {\n\t\t\tif ( this.state.viewDate ) {\n\t\t\t\tvar updatedViewDate = this.state.viewDate.clone().locale( nextProps.locale );\n\t\t\t\tupdatedState.viewDate = updatedViewDate;\n\t\t\t}\n\t\t\tif ( this.state.selectedDate ) {\n\t\t\t\tvar updatedSelectedDate = this.state.selectedDate.clone().locale( nextProps.locale );\n\t\t\t\tupdatedState.selectedDate = updatedSelectedDate;\n\t\t\t\tupdatedState.inputValue = updatedSelectedDate.format( formats.datetime );\n\t\t\t}\n\t\t}\n\n\t\tif ( nextProps.utc !== this.props.utc ) {\n\t\t\tif ( nextProps.utc ) {\n\t\t\t\tif ( this.state.viewDate )\n\t\t\t\t\tupdatedState.viewDate = this.state.viewDate.clone().utc();\n\t\t\t\tif ( this.state.selectedDate ) {\n\t\t\t\t\tupdatedState.selectedDate = this.state.selectedDate.clone().utc();\n\t\t\t\t\tupdatedState.inputValue = updatedState.selectedDate.format( formats.datetime );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ( this.state.viewDate )\n\t\t\t\t\tupdatedState.viewDate = this.state.viewDate.clone().local();\n\t\t\t\tif ( this.state.selectedDate ) {\n\t\t\t\t\tupdatedState.selectedDate = this.state.selectedDate.clone().local();\n\t\t\t\t\tupdatedState.inputValue = updatedState.selectedDate.format(formats.datetime);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.setState( updatedState );\n\t},\n\n\tonInputChange: function( e ) {\n\t\tvar value = e.target === null ? e : e.target.value,\n\t\t\tlocalMoment = this.localMoment( value, this.state.inputFormat ),\n\t\t\tupdate = { inputValue: value }\n\t\t;\n\n\t\tif ( localMoment.isValid() && !this.props.value ) {\n\t\t\tupdate.selectedDate = localMoment;\n\t\t\tupdate.viewDate = localMoment.clone().startOf('month');\n\t\t}\n\t\telse {\n\t\t\tupdate.selectedDate = null;\n\t\t}\n\n\t\treturn this.setState( update, function() {\n\t\t\treturn this.props.onChange( localMoment.isValid() ? localMoment : this.state.inputValue );\n\t\t});\n\t},\n\n\tonInputKey: function( e ) {\n\t\tif ( e.which === 9 && this.props.closeOnTab ) {\n\t\t\tthis.closeCalendar();\n\t\t}\n\t},\n\n\tshowView: function( view ) {\n\t\tvar me = this;\n\t\treturn function() {\n\t\t\tme.setState({ currentView: view });\n\t\t};\n\t},\n\n\tsetDate: function( type ) {\n\t\tvar me = this,\n\t\t\tnextViews = {\n\t\t\t\tmonth: 'days',\n\t\t\t\tyear: 'months'\n\t\t\t}\n\t\t;\n\t\treturn function( e ) {\n\t\t\tme.setState({\n\t\t\t\tviewDate: me.state.viewDate.clone()[ type ]( parseInt(e.target.getAttribute('data-value'), 10) ).startOf( type ),\n\t\t\t\tcurrentView: nextViews[ type ]\n\t\t\t});\n\t\t};\n\t},\n\n\taddTime: function( amount, type, toSelected ) {\n\t\treturn this.updateTime( 'add', amount, type, toSelected );\n\t},\n\n\tsubtractTime: function( amount, type, toSelected ) {\n\t\treturn this.updateTime( 'subtract', amount, type, toSelected );\n\t},\n\n\tupdateTime: function( op, amount, type, toSelected ) {\n\t\tvar me = this;\n\n\t\treturn function() {\n\t\t\tvar update = {},\n\t\t\t\tdate = toSelected ? 'selectedDate' : 'viewDate'\n\t\t\t;\n\n\t\t\tupdate[ date ] = me.state[ date ].clone()[ op ]( amount, type );\n\n\t\t\tme.setState( update );\n\t\t};\n\t},\n\n\tallowedSetTime: ['hours', 'minutes', 'seconds', 'milliseconds'],\n\tsetTime: function( type, value ) {\n\t\tvar index = this.allowedSetTime.indexOf( type ) + 1,\n\t\t\tstate = this.state,\n\t\t\tdate = (state.selectedDate || state.viewDate).clone(),\n\t\t\tnextType\n\t\t;\n\n\t\t// It is needed to set all the time properties\n\t\t// to not to reset the time\n\t\tdate[ type ]( value );\n\t\tfor (; index < this.allowedSetTime.length; index++) {\n\t\t\tnextType = this.allowedSetTime[index];\n\t\t\tdate[ nextType ]( date[nextType]() );\n\t\t}\n\n\t\tif ( !this.props.value ) {\n\t\t\tthis.setState({\n\t\t\t\tselectedDate: date,\n\t\t\t\tinputValue: date.format( state.inputFormat )\n\t\t\t});\n\t\t}\n\t\tthis.props.onChange( date );\n\t},\n\n\tupdateSelectedDate: function( e, close ) {\n\t\tvar target = e.target,\n\t\t\tmodifier = 0,\n\t\t\tviewDate = this.state.viewDate,\n\t\t\tcurrentDate = this.state.selectedDate || viewDate,\n\t\t\tdate\n    ;\n\n\t\tif (target.className.indexOf('rdtDay') !== -1) {\n\t\t\tif (target.className.indexOf('rdtNew') !== -1)\n\t\t\t\tmodifier = 1;\n\t\t\telse if (target.className.indexOf('rdtOld') !== -1)\n\t\t\t\tmodifier = -1;\n\n\t\t\tdate = viewDate.clone()\n\t\t\t\t.month( viewDate.month() + modifier )\n\t\t\t\t.date( parseInt( target.getAttribute('data-value'), 10 ) );\n\t\t} else if (target.className.indexOf('rdtMonth') !== -1) {\n\t\t\tdate = viewDate.clone()\n\t\t\t\t.month( parseInt( target.getAttribute('data-value'), 10 ) )\n\t\t\t\t.date( currentDate.date() );\n\t\t} else if (target.className.indexOf('rdtYear') !== -1) {\n\t\t\tdate = viewDate.clone()\n\t\t\t\t.month( currentDate.month() )\n\t\t\t\t.date( currentDate.date() )\n\t\t\t\t.year( parseInt( target.getAttribute('data-value'), 10 ) );\n\t\t}\n\n\t\tdate.hours( currentDate.hours() )\n\t\t\t.minutes( currentDate.minutes() )\n\t\t\t.seconds( currentDate.seconds() )\n\t\t\t.milliseconds( currentDate.milliseconds() );\n\n\t\tif ( !this.props.value ) {\n\t\t\tvar open = !( this.props.closeOnSelect && close );\n\t\t\tif ( !open ) {\n\t\t\t\tthis.props.onBlur( date );\n\t\t\t}\n\n\t\t\tthis.setState({\n\t\t\t\tselectedDate: date,\n\t\t\t\tviewDate: date.clone().startOf('month'),\n\t\t\t\tinputValue: date.format( this.state.inputFormat ),\n\t\t\t\topen: open\n\t\t\t});\n\t\t} else {\n\t\t\tif ( this.props.closeOnSelect && close ) {\n\t\t\t\tthis.closeCalendar();\n\t\t\t}\n\t\t}\n\n\t\tthis.props.onChange( date );\n\t},\n\n\topenCalendar: function() {\n\t\tif (!this.state.open) {\n\t\t\tthis.setState({ open: true }, function() {\n\t\t\t\tthis.props.onFocus();\n\t\t\t});\n\t\t}\n\t},\n\n\tcloseCalendar: function() {\n\t\tthis.setState({ open: false }, function () {\n\t\t\tthis.props.onBlur( this.state.selectedDate || this.state.inputValue );\n\t\t});\n\t},\n\n\thandleClickOutside: function() {\n\t\tif ( this.props.input && this.state.open && !this.props.open ) {\n\t\t\tthis.setState({ open: false }, function() {\n\t\t\t\tthis.props.onBlur( this.state.selectedDate || this.state.inputValue );\n\t\t\t});\n\t\t}\n\t},\n\n\tlocalMoment: function( date, format, props ) {\n\t\tprops = props || this.props;\n\t\tvar momentFn = props.utc ? moment.utc : moment;\n\t\tvar m = momentFn( date, format, props.strictParsing );\n\t\tif ( props.locale )\n\t\t\tm.locale( props.locale );\n\t\treturn m;\n\t},\n\n\tcomponentProps: {\n\t\tfromProps: ['value', 'isValidDate', 'renderDay', 'renderMonth', 'renderYear', 'timeConstraints'],\n\t\tfromState: ['viewDate', 'selectedDate', 'updateOn'],\n\t\tfromThis: ['setDate', 'setTime', 'showView', 'addTime', 'subtractTime', 'updateSelectedDate', 'localMoment']\n\t},\n\n\tgetComponentProps: function() {\n\t\tvar me = this,\n\t\t\tformats = this.getFormats( this.props ),\n\t\t\tprops = {dateFormat: formats.date, timeFormat: formats.time}\n\t\t;\n\n\t\tthis.componentProps.fromProps.forEach( function( name ) {\n\t\t\tprops[ name ] = me.props[ name ];\n\t\t});\n\t\tthis.componentProps.fromState.forEach( function( name ) {\n\t\t\tprops[ name ] = me.state[ name ];\n\t\t});\n\t\tthis.componentProps.fromThis.forEach( function( name ) {\n\t\t\tprops[ name ] = me[ name ];\n\t\t});\n\n\t\treturn props;\n\t},\n\n\trender: function() {\n\t\tvar DOM = React.DOM,\n\t\t\tclassName = 'rdt' + (this.props.className ?\n                  ( Array.isArray( this.props.className ) ?\n                  ' ' + this.props.className.join( ' ' ) : ' ' + this.props.className) : ''),\n\t\t\tchildren = []\n\t\t;\n\n\t\tif ( this.props.input ) {\n\t\t\tchildren = [ DOM.input( assign({\n\t\t\t\tkey: 'i',\n\t\t\t\ttype: 'text',\n\t\t\t\tclassName: 'form-control',\n\t\t\t\tonFocus: this.openCalendar,\n\t\t\t\tonChange: this.onInputChange,\n\t\t\t\tonKeyDown: this.onInputKey,\n\t\t\t\tvalue: this.state.inputValue\n\t\t\t}, this.props.inputProps ))];\n\t\t} else {\n\t\t\tclassName += ' rdtStatic';\n\t\t}\n\n\t\tif ( this.state.open )\n\t\t\tclassName += ' rdtOpen';\n\n\t\treturn DOM.div({className: className}, children.concat(\n\t\t\tDOM.div(\n\t\t\t\t{ key: 'dt', className: 'rdtPicker' },\n\t\t\t\tReact.createElement( CalendarContainer, {view: this.state.currentView, viewProps: this.getComponentProps(), onClickOutside: this.handleClickOutside })\n\t\t\t)\n\t\t));\n\t}\n});\n\n// Make moment accessible through the Datetime class\nDatetime.moment = moment;\n\nmodule.exports = Datetime;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Datetime.js\n// module id = 0\n// module chunks = 0","'use strict';\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction ToObject(val) {\n\tif (val == null) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction ownEnumerableKeys(obj) {\n\tvar keys = Object.getOwnPropertyNames(obj);\n\n\tif (Object.getOwnPropertySymbols) {\n\t\tkeys = keys.concat(Object.getOwnPropertySymbols(obj));\n\t}\n\n\treturn keys.filter(function (key) {\n\t\treturn propIsEnumerable.call(obj, key);\n\t});\n}\n\nmodule.exports = Object.assign || function (target, source) {\n\tvar from;\n\tvar keys;\n\tvar to = ToObject(target);\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = arguments[s];\n\t\tkeys = ownEnumerableKeys(Object(from));\n\n\t\tfor (var i = 0; i < keys.length; i++) {\n\t\t\tto[keys[i]] = from[keys[i]];\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object-assign/index.js\n// module id = 1\n// module chunks = 0","var React = require('react'),\n  DaysView = require('./DaysView'),\n  MonthsView = require('./MonthsView'),\n  YearsView = require('./YearsView'),\n  TimeView = require('./TimeView'),\n  onClickOutside = require('react-onclickoutside')\n;\n\nvar CalendarContainer = onClickOutside( React.createClass({\n\tviewComponents: {\n\t\tdays: DaysView,\n\t\tmonths: MonthsView,\n\t\tyears: YearsView,\n\t\ttime: TimeView\n\t},\n\n  render: function() {\n    return React.createElement( this.viewComponents[ this.props.view ], this.props.viewProps );\n  },\n\n  handleClickOutside: function() {\n    this.props.onClickOutside();\n  }\n}));\n\nmodule.exports = CalendarContainer;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/CalendarContainer.js\n// module id = 4\n// module chunks = 0","'use strict';\n\nvar React = require('react'),\n\tmoment = require('moment')\n;\n\nvar DOM = React.DOM;\nvar DateTimePickerDays = React.createClass({\n\trender: function() {\n\t\tvar footer = this.renderFooter(),\n\t\t\tdate = this.props.viewDate,\n\t\t\tlocale = date.localeData(),\n\t\t\ttableChildren\n\t\t;\n\n\t\ttableChildren = [\n\t\t\tDOM.thead({ key: 'th' }, [\n\t\t\t\tDOM.tr({ key: 'h' }, [\n\t\t\t\t\tDOM.th({ key: 'p', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 1, 'months' )}, '‹' )),\n\t\t\t\t\tDOM.th({ key: 's', className: 'rdtSwitch', onClick: this.props.showView( 'months' ), colSpan: 5, 'data-value': this.props.viewDate.month() }, locale.months( date ) + ' ' + date.year() ),\n\t\t\t\t\tDOM.th({ key: 'n', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 1, 'months' )}, '›' ))\n\t\t\t\t]),\n\t\t\t\tDOM.tr({ key: 'd'}, this.getDaysOfWeek( locale ).map( function( day, index ) { return DOM.th({ key: day + index, className: 'dow'}, day ); }) )\n\t\t\t]),\n\t\t\tDOM.tbody({ key: 'tb' }, this.renderDays())\n\t\t];\n\n\t\tif ( footer )\n\t\t\ttableChildren.push( footer );\n\n\t\treturn DOM.div({ className: 'rdtDays' },\n\t\t\tDOM.table({}, tableChildren )\n\t\t);\n\t},\n\n\t/**\n\t * Get a list of the days of the week\n\t * depending on the current locale\n\t * @return {array} A list with the shortname of the days\n\t */\n\tgetDaysOfWeek: function( locale ) {\n\t\tvar days = locale._weekdaysMin,\n\t\t\tfirst = locale.firstDayOfWeek(),\n\t\t\tdow = [],\n\t\t\ti = 0\n\t\t;\n\n\t\tdays.forEach( function( day ) {\n\t\t\tdow[ (7 + ( i++ ) - first) % 7 ] = day;\n\t\t});\n\n\t\treturn dow;\n\t},\n\n\trenderDays: function() {\n\t\tvar date = this.props.viewDate,\n\t\t\tselected = this.props.selectedDate && this.props.selectedDate.clone(),\n\t\t\tprevMonth = date.clone().subtract( 1, 'months' ),\n\t\t\tcurrentYear = date.year(),\n\t\t\tcurrentMonth = date.month(),\n\t\t\tweeks = [],\n\t\t\tdays = [],\n\t\t\trenderer = this.props.renderDay || this.renderDay,\n\t\t\tisValid = this.props.isValidDate || this.alwaysValidDate,\n\t\t\tclasses, isDisabled, dayProps, currentDate\n\t\t;\n\n\t\t// Go to the last week of the previous month\n\t\tprevMonth.date( prevMonth.daysInMonth() ).startOf( 'week' );\n\t\tvar lastDay = prevMonth.clone().add( 42, 'd' );\n\n\t\twhile ( prevMonth.isBefore( lastDay ) ) {\n\t\t\tclasses = 'rdtDay';\n\t\t\tcurrentDate = prevMonth.clone();\n\n\t\t\tif ( ( prevMonth.year() === currentYear && prevMonth.month() < currentMonth ) || ( prevMonth.year() < currentYear ) )\n\t\t\t\tclasses += ' rdtOld';\n\t\t\telse if ( ( prevMonth.year() === currentYear && prevMonth.month() > currentMonth ) || ( prevMonth.year() > currentYear ) )\n\t\t\t\tclasses += ' rdtNew';\n\n\t\t\tif ( selected && prevMonth.isSame( selected, 'day' ) )\n\t\t\t\tclasses += ' rdtActive';\n\n\t\t\tif ( prevMonth.isSame( moment(), 'day' ) )\n\t\t\t\tclasses += ' rdtToday';\n\n\t\t\tisDisabled = !isValid( currentDate, selected );\n\t\t\tif ( isDisabled )\n\t\t\t\tclasses += ' rdtDisabled';\n\n\t\t\tdayProps = {\n\t\t\t\tkey: prevMonth.format( 'M_D' ),\n\t\t\t\t'data-value': prevMonth.date(),\n\t\t\t\tclassName: classes\n\t\t\t};\n\n\t\t\tif ( !isDisabled )\n\t\t\t\tdayProps.onClick = this.updateSelectedDate;\n\n\t\t\tdays.push( renderer( dayProps, currentDate, selected ) );\n\n\t\t\tif ( days.length === 7 ) {\n\t\t\t\tweeks.push( DOM.tr({ key: prevMonth.format( 'M_D' )}, days ) );\n\t\t\t\tdays = [];\n\t\t\t}\n\n\t\t\tprevMonth.add( 1, 'd' );\n\t\t}\n\n\t\treturn weeks;\n\t},\n\n\tupdateSelectedDate: function( event ) {\n\t\tthis.props.updateSelectedDate( event, true );\n\t},\n\n\trenderDay: function( props, currentDate ) {\n\t\treturn DOM.td( props, currentDate.date() );\n\t},\n\n\trenderFooter: function() {\n\t\tif ( !this.props.timeFormat )\n\t\t\treturn '';\n\n\t\tvar date = this.props.selectedDate || this.props.viewDate;\n\n\t\treturn DOM.tfoot({ key: 'tf'},\n\t\t\tDOM.tr({},\n\t\t\t\tDOM.td({ onClick: this.props.showView( 'time' ), colSpan: 7, className: 'rdtTimeToggle' }, date.format( this.props.timeFormat ))\n\t\t\t)\n\t\t);\n\t},\n\n\talwaysValidDate: function() {\n\t\treturn 1;\n\t}\n});\n\nmodule.exports = DateTimePickerDays;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/DaysView.js\n// module id = 5\n// module chunks = 0","'use strict';\n\nvar React = require('react');\n\nvar DOM = React.DOM;\nvar DateTimePickerMonths = React.createClass({\n\trender: function() {\n\t\treturn DOM.div({ className: 'rdtMonths' }, [\n\t\t\tDOM.table({ key: 'a' }, DOM.thead( {}, DOM.tr( {}, [\n\t\t\t\tDOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 1, 'years' )}, '‹' )),\n\t\t\t\tDOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2, 'data-value': this.props.viewDate.year() }, this.props.viewDate.year() ),\n\t\t\t\tDOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 1, 'years' )}, '›' ))\n\t\t\t]))),\n\t\t\tDOM.table({ key: 'months' }, DOM.tbody({ key: 'b' }, this.renderMonths()))\n\t\t]);\n\t},\n\n\trenderMonths: function() {\n\t\tvar date = this.props.selectedDate,\n\t\t\tmonth = this.props.viewDate.month(),\n\t\t\tyear = this.props.viewDate.year(),\n\t\t\trows = [],\n\t\t\ti = 0,\n\t\t\tmonths = [],\n\t\t\trenderer = this.props.renderMonth || this.renderMonth,\n\t\t\tisValid = this.props.isValidDate || this.alwaysValidDate,\n\t\t\tclasses, props, currentMonth, isDisabled, noOfDaysInMonth, daysInMonth, validDay,\n\t\t\t// Date is irrelevant because we're only interested in month\n\t\t\tirrelevantDate = 1\n\t\t;\n\n\t\twhile (i < 12) {\n\t\t\tclasses = 'rdtMonth';\n\t\t\tcurrentMonth =\n\t\t\t\tthis.props.viewDate.clone().set({ year: year, month: i, date: irrelevantDate });\n\n\t\t\tnoOfDaysInMonth = currentMonth.endOf( 'month' ).format( 'D' );\n\t\t\tdaysInMonth = Array.from({ length: noOfDaysInMonth }, function( e, i ) {\n\t\t\t\treturn i + 1;\n\t\t\t});\n\n\t\t\tvalidDay = daysInMonth.find(function( d ) {\n\t\t\t\tvar day = currentMonth.clone().set( 'date', d );\n\t\t\t\treturn isValid( day );\n\t\t\t});\n\n\t\t\tisDisabled = ( validDay === undefined );\n\n\t\t\tif ( isDisabled )\n\t\t\t\tclasses += ' rdtDisabled';\n\n\t\t\tif ( date && i === month && year === date.year() )\n\t\t\t\tclasses += ' rdtActive';\n\n\t\t\tprops = {\n\t\t\t\tkey: i,\n\t\t\t\t'data-value': i,\n\t\t\t\tclassName: classes\n\t\t\t};\n\n\t\t\tif ( !isDisabled )\n\t\t\t\tprops.onClick = ( this.props.updateOn === 'months' ?\n\t\t\t\t\tthis.updateSelectedMonth : this.props.setDate( 'month' ) );\n\n\t\t\tmonths.push( renderer( props, i, year, date && date.clone() ) );\n\n\t\t\tif ( months.length === 4 ) {\n\t\t\t\trows.push( DOM.tr({ key: month + '_' + rows.length }, months ) );\n\t\t\t\tmonths = [];\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\n\t\treturn rows;\n\t},\n\n\tupdateSelectedMonth: function( event ) {\n\t\tthis.props.updateSelectedDate( event, true );\n\t},\n\n\trenderMonth: function( props, month ) {\n\t\tvar localMoment = this.props.viewDate;\n\t\tvar monthStr = localMoment.localeData().monthsShort( localMoment.month( month ) );\n\t\tvar strLength = 3;\n\t\t// Because some months are up to 5 characters long, we want to\n\t\t// use a fixed string length for consistency\n\t\tvar monthStrFixedLength = monthStr.substring( 0, strLength );\n\t\treturn DOM.td( props, capitalize( monthStrFixedLength ) );\n\t},\n\n\talwaysValidDate: function() {\n\t\treturn 1;\n\t}\n});\n\nfunction capitalize( str ) {\n\treturn str.charAt( 0 ).toUpperCase() + str.slice( 1 );\n}\n\nmodule.exports = DateTimePickerMonths;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/MonthsView.js\n// module id = 6\n// module chunks = 0","'use strict';\n\nvar React = require('react');\n\nvar DOM = React.DOM;\nvar DateTimePickerYears = React.createClass({\n\trender: function() {\n\t\tvar year = parseInt( this.props.viewDate.year() / 10, 10 ) * 10;\n\n\t\treturn DOM.div({ className: 'rdtYears' }, [\n\t\t\tDOM.table({ key: 'a' }, DOM.thead({}, DOM.tr({}, [\n\t\t\t\tDOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 10, 'years' )}, '‹' )),\n\t\t\t\tDOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2 }, year + '-' + ( year + 9 ) ),\n\t\t\t\tDOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 10, 'years' )}, '›' ))\n\t\t\t\t]))),\n\t\t\tDOM.table({ key: 'years' }, DOM.tbody( {}, this.renderYears( year )))\n\t\t]);\n\t},\n\n\trenderYears: function( year ) {\n\t\tvar years = [],\n\t\t\ti = -1,\n\t\t\trows = [],\n\t\t\trenderer = this.props.renderYear || this.renderYear,\n\t\t\tselectedDate = this.props.selectedDate,\n\t\t\tisValid = this.props.isValidDate || this.alwaysValidDate,\n\t\t\tclasses, props, currentYear, isDisabled, noOfDaysInYear, daysInYear, validDay,\n\t\t\t// Month and date are irrelevant here because\n\t\t\t// we're only interested in the year\n\t\t\tirrelevantMonth = 0,\n\t\t\tirrelevantDate = 1\n\t\t;\n\n\t\tyear--;\n\t\twhile (i < 11) {\n\t\t\tclasses = 'rdtYear';\n\t\t\tcurrentYear = this.props.viewDate.clone().set(\n\t\t\t\t{ year: year, month: irrelevantMonth, date: irrelevantDate } );\n\n\t\t\t// Not sure what 'rdtOld' is for, commenting out for now as it's not working properly\n\t\t\t// if ( i === -1 | i === 10 )\n\t\t\t\t// classes += ' rdtOld';\n\n\t\t\tnoOfDaysInYear = currentYear.endOf( 'year' ).format( 'DDD' );\n\t\t\tdaysInYear = Array.from({ length: noOfDaysInYear }, function( e, i ) {\n\t\t\t\treturn i + 1;\n\t\t\t});\n\n\t\t\tvalidDay = daysInYear.find(function( d ) {\n\t\t\t\tvar day = currentYear.clone().dayOfYear( d );\n\t\t\t\treturn isValid( day );\n\t\t\t});\n\n\t\t\tisDisabled = ( validDay === undefined );\n\n\t\t\tif ( isDisabled )\n\t\t\t\tclasses += ' rdtDisabled';\n\n\t\t\tif ( selectedDate && selectedDate.year() === year )\n\t\t\t\tclasses += ' rdtActive';\n\n\t\t\tprops = {\n\t\t\t\tkey: year,\n\t\t\t\t'data-value': year,\n\t\t\t\tclassName: classes\n\t\t\t};\n\n\t\t\tif ( !isDisabled )\n\t\t\t\tprops.onClick = ( this.props.updateOn === 'years' ?\n\t\t\t\t\tthis.updateSelectedYear : this.props.setDate('year') );\n\n\t\t\tyears.push( renderer( props, year, selectedDate && selectedDate.clone() ));\n\n\t\t\tif ( years.length === 4 ) {\n\t\t\t\trows.push( DOM.tr({ key: i }, years ) );\n\t\t\t\tyears = [];\n\t\t\t}\n\n\t\t\tyear++;\n\t\t\ti++;\n\t\t}\n\n\t\treturn rows;\n\t},\n\n\tupdateSelectedYear: function( event ) {\n\t\tthis.props.updateSelectedDate( event, true );\n\t},\n\n\trenderYear: function( props, year ) {\n\t\treturn DOM.td( props, year );\n\t},\n\n\talwaysValidDate: function() {\n\t\treturn 1;\n\t}\n});\n\nmodule.exports = DateTimePickerYears;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/YearsView.js\n// module id = 7\n// module chunks = 0","'use strict';\n\nvar React = require('react'),\n\tassign = require('object-assign')\n;\n\nvar DOM = React.DOM;\nvar DateTimePickerTime = React.createClass({\n\tgetInitialState: function() {\n\t\treturn this.calculateState( this.props );\n\t},\n\n\tcalculateState: function( props ) {\n\t\tvar date = props.selectedDate || props.viewDate,\n\t\t\tformat = props.timeFormat,\n\t\t\tcounters = []\n\t\t;\n\n\t\tif ( format.toLowerCase().indexOf('h') !== -1 ) {\n\t\t\tcounters.push('hours');\n\t\t\tif ( format.indexOf('m') !== -1 ) {\n\t\t\t\tcounters.push('minutes');\n\t\t\t\tif ( format.indexOf('s') !== -1 ) {\n\t\t\t\t\tcounters.push('seconds');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tvar daypart = false;\n\t\tif ( this.state !== null && this.props.timeFormat.toLowerCase().indexOf( ' a' ) !== -1 ) {\n\t\t\tif ( this.props.timeFormat.indexOf( ' A' ) !== -1 ) {\n\t\t\t\tdaypart = ( this.state.hours >= 12 ) ? 'PM' : 'AM';\n\t\t\t} else {\n\t\t\t\tdaypart = ( this.state.hours >= 12 ) ? 'pm' : 'am';\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\thours: date.format( 'H' ),\n\t\t\tminutes: date.format( 'mm' ),\n\t\t\tseconds: date.format( 'ss' ),\n\t\t\tmilliseconds: date.format( 'SSS' ),\n\t\t\tdaypart: daypart,\n\t\t\tcounters: counters\n\t\t};\n\t},\n\n\trenderCounter: function( type ) {\n\t\tif ( type !== 'daypart' ) {\n\t\t\tvar value = this.state[ type ];\n\t\t\tif ( type === 'hours' && this.props.timeFormat.toLowerCase().indexOf( ' a' ) !== -1 ) {\n\t\t\t\tvalue = ( value - 1 ) % 12 + 1;\n\n\t\t\t\tif ( value === 0 ) {\n\t\t\t\t\tvalue = 12;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn DOM.div({ key: type, className: 'rdtCounter' }, [\n\t\t\t\tDOM.span({ key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'increase', type ) }, '▲' ),\n\t\t\t\tDOM.div({ key: 'c', className: 'rdtCount' }, value ),\n\t\t\t\tDOM.span({ key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'decrease', type ) }, '▼' )\n\t\t\t]);\n\t\t}\n\t\treturn '';\n\t},\n\n\trenderDayPart: function() {\n\t\treturn DOM.div({ key: 'dayPart', className: 'rdtCounter' }, [\n\t\t\tDOM.span({ key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▲' ),\n\t\t\tDOM.div({ key: this.state.daypart, className: 'rdtCount' }, this.state.daypart ),\n\t\t\tDOM.span({ key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▼' )\n\t\t]);\n\t},\n\n\trender: function() {\n\t\tvar me = this,\n\t\t\tcounters = []\n\t\t;\n\n\t\tthis.state.counters.forEach( function( c ) {\n\t\t\tif ( counters.length )\n\t\t\t\tcounters.push( DOM.div({ key: 'sep' + counters.length, className: 'rdtCounterSeparator' }, ':' ) );\n\t\t\tcounters.push( me.renderCounter( c ) );\n\t\t});\n\n\t\tif ( this.state.daypart !== false ) {\n\t\t\tcounters.push( me.renderDayPart() );\n\t\t}\n\n\t\tif ( this.state.counters.length === 3 && this.props.timeFormat.indexOf( 'S' ) !== -1 ) {\n\t\t\tcounters.push( DOM.div({ className: 'rdtCounterSeparator', key: 'sep5' }, ':' ) );\n\t\t\tcounters.push(\n\t\t\t\tDOM.div({ className: 'rdtCounter rdtMilli', key: 'm' },\n\t\t\t\t\tDOM.input({ value: this.state.milliseconds, type: 'text', onChange: this.updateMilli } )\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t}\n\n\t\treturn DOM.div({ className: 'rdtTime' },\n\t\t\tDOM.table({}, [\n\t\t\t\tthis.renderHeader(),\n\t\t\t\tDOM.tbody({ key: 'b'}, DOM.tr({}, DOM.td({},\n\t\t\t\t\tDOM.div({ className: 'rdtCounters' }, counters )\n\t\t\t\t)))\n\t\t\t])\n\t\t);\n\t},\n\n\tcomponentWillMount: function() {\n\t\tvar me = this;\n\t\tme.timeConstraints = {\n\t\t\thours: {\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 23,\n\t\t\t\tstep: 1\n\t\t\t},\n\t\t\tminutes: {\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 59,\n\t\t\t\tstep: 1\n\t\t\t},\n\t\t\tseconds: {\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 59,\n\t\t\t\tstep: 1\n\t\t\t},\n\t\t\tmilliseconds: {\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 999,\n\t\t\t\tstep: 1\n\t\t\t}\n\t\t};\n\t\t['hours', 'minutes', 'seconds', 'milliseconds'].forEach( function( type ) {\n\t\t\tassign(me.timeConstraints[ type ], me.props.timeConstraints[ type ]);\n\t\t});\n\t\tthis.setState( this.calculateState( this.props ) );\n\t},\n\n\tcomponentWillReceiveProps: function( nextProps ) {\n\t\tthis.setState( this.calculateState( nextProps ) );\n\t},\n\n\tupdateMilli: function( e ) {\n\t\tvar milli = parseInt( e.target.value, 10 );\n\t\tif ( milli === e.target.value && milli >= 0 && milli < 1000 ) {\n\t\t\tthis.props.setTime( 'milliseconds', milli );\n\t\t\tthis.setState( { milliseconds: milli } );\n\t\t}\n\t},\n\n\trenderHeader: function() {\n\t\tif ( !this.props.dateFormat )\n\t\t\treturn null;\n\n\t\tvar date = this.props.selectedDate || this.props.viewDate;\n\t\treturn DOM.thead({ key: 'h' }, DOM.tr({},\n\t\t\tDOM.th({ className: 'rdtSwitch', colSpan: 4, onClick: this.props.showView( 'days' ) }, date.format( this.props.dateFormat ) )\n\t\t));\n\t},\n\n\tonStartClicking: function( action, type ) {\n\t\tvar me = this;\n\n\t\treturn function() {\n\t\t\tvar update = {};\n\t\t\tupdate[ type ] = me[ action ]( type );\n\t\t\tme.setState( update );\n\n\t\t\tme.timer = setTimeout( function() {\n\t\t\t\tme.increaseTimer = setInterval( function() {\n\t\t\t\t\tupdate[ type ] = me[ action ]( type );\n\t\t\t\t\tme.setState( update );\n\t\t\t\t}, 70);\n\t\t\t}, 500);\n\n\t\t\tme.mouseUpListener = function() {\n\t\t\t\tclearTimeout( me.timer );\n\t\t\t\tclearInterval( me.increaseTimer );\n\t\t\t\tme.props.setTime( type, me.state[ type ] );\n\t\t\t\tdocument.body.removeEventListener( 'mouseup', me.mouseUpListener );\n\t\t\t};\n\n\t\t\tdocument.body.addEventListener( 'mouseup', me.mouseUpListener );\n\t\t};\n\t},\n\n\tpadValues: {\n\t\thours: 1,\n\t\tminutes: 2,\n\t\tseconds: 2,\n\t\tmilliseconds: 3\n\t},\n\n\ttoggleDayPart: function( type ) { // type is always 'hours'\n\t\tvar value = parseInt( this.state[ type ], 10) + 12;\n\t\tif ( value > this.timeConstraints[ type ].max )\n\t\t\tvalue = this.timeConstraints[ type ].min + ( value - ( this.timeConstraints[ type ].max + 1 ) );\n\t\treturn this.pad( type, value );\n\t},\n\n\tincrease: function( type ) {\n\t\tvar value = parseInt( this.state[ type ], 10) + this.timeConstraints[ type ].step;\n\t\tif ( value > this.timeConstraints[ type ].max )\n\t\t\tvalue = this.timeConstraints[ type ].min + ( value - ( this.timeConstraints[ type ].max + 1 ) );\n\t\treturn this.pad( type, value );\n\t},\n\n\tdecrease: function( type ) {\n\t\tvar value = parseInt( this.state[ type ], 10) - this.timeConstraints[ type ].step;\n\t\tif ( value < this.timeConstraints[ type ].min )\n\t\t\tvalue = this.timeConstraints[ type ].max + 1 - ( this.timeConstraints[ type ].min - value );\n\t\treturn this.pad( type, value );\n\t},\n\n\tpad: function( type, value ) {\n\t\tvar str = value + '';\n\t\twhile ( str.length < this.padValues[ type ] )\n\t\t\tstr = '0' + str;\n\t\treturn str;\n\t}\n});\n\nmodule.exports = DateTimePickerTime;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/TimeView.js\n// module id = 8\n// module chunks = 0","/**\n * A higher-order-component for handling onClickOutside for React components.\n */\n(function(root) {\n\n  // administrative\n  var registeredComponents = [];\n  var handlers = [];\n  var IGNORE_CLASS = 'ignore-react-onclickoutside';\n  var DEFAULT_EVENTS = ['mousedown', 'touchstart'];\n\n  /**\n   * Check whether some DOM node is our Component's node.\n   */\n  var isNodeFound = function(current, componentNode, ignoreClass) {\n    if (current === componentNode) {\n      return true;\n    }\n    // SVG <use/> elements do not technically reside in the rendered DOM, so\n    // they do not have classList directly, but they offer a link to their\n    // corresponding element, which can have classList. This extra check is for\n    // that case.\n    // See: http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGUseElement\n    // Discussion: https://github.com/Pomax/react-onclickoutside/pull/17\n    if (current.correspondingElement) {\n      return current.correspondingElement.classList.contains(ignoreClass);\n    }\n    return current.classList.contains(ignoreClass);\n  };\n\n  /**\n   * Try to find our node in a hierarchy of nodes, returning the document\n   * node as highest noode if our node is not found in the path up.\n   */\n  var findHighest = function(current, componentNode, ignoreClass) {\n    if (current === componentNode) {\n      return true;\n    }\n\n    // If source=local then this event came from 'somewhere'\n    // inside and should be ignored. We could handle this with\n    // a layered approach, too, but that requires going back to\n    // thinking in terms of Dom node nesting, running counter\n    // to React's 'you shouldn't care about the DOM' philosophy.\n    while(current.parentNode) {\n      if (isNodeFound(current, componentNode, ignoreClass)) {\n        return true;\n      }\n      current = current.parentNode;\n    }\n    return current;\n  };\n\n  /**\n   * Check if the browser scrollbar was clicked\n   */\n  var clickedScrollbar = function(evt) {\n    return document.documentElement.clientWidth <= evt.clientX;\n  };\n\n  /**\n   * Generate the event handler that checks whether a clicked DOM node\n   * is inside of, or lives outside of, our Component's node tree.\n   */\n  var generateOutsideCheck = function(componentNode, componentInstance, eventHandler, ignoreClass, excludeScrollbar, preventDefault, stopPropagation) {\n    return function(evt) {\n      if (preventDefault) {\n        evt.preventDefault();\n      }\n      if (stopPropagation) {\n        evt.stopPropagation();\n      }\n      var current = evt.target;\n      if((excludeScrollbar && clickedScrollbar(evt)) || (findHighest(current, componentNode, ignoreClass) !== document)) {\n        return;\n      }\n      eventHandler(evt);\n    };\n  };\n\n  /**\n   * This function generates the HOC function that you'll use\n   * in order to impart onOutsideClick listening to an\n   * arbitrary component. It gets called at the end of the\n   * bootstrapping code to yield an instance of the\n   * onClickOutsideHOC function defined inside setupHOC().\n   */\n  function setupHOC(root, React, ReactDOM) {\n\n    // The actual Component-wrapping HOC:\n    return function onClickOutsideHOC(Component, config) {\n      var wrapComponentWithOnClickOutsideHandling = React.createClass({\n        statics: {\n          /**\n           * Access the wrapped Component's class.\n           */\n          getClass: function() {\n            if (Component.getClass) {\n              return Component.getClass();\n            }\n            return Component;\n          }\n        },\n\n        /**\n         * Access the wrapped Component's instance.\n         */\n        getInstance: function() {\n          return Component.prototype.isReactComponent ? this.refs.instance : this;\n        },\n\n        // this is given meaning in componentDidMount\n        __outsideClickHandler: function() {},\n\n        /**\n         * Add click listeners to the current document,\n         * linked to this component's state.\n         */\n        componentDidMount: function() {\n          // If we are in an environment without a DOM such\n          // as shallow rendering or snapshots then we exit\n          // early to prevent any unhandled errors being thrown.\n          if (typeof document === 'undefined' || !document.createElement){\n            return;\n          }\n\n          var instance = this.getInstance();\n          var clickOutsideHandler;\n\n          if(config && typeof config.handleClickOutside === 'function') {\n            clickOutsideHandler = config.handleClickOutside(instance);\n            if(typeof clickOutsideHandler !== 'function') {\n              throw new Error('Component lacks a function for processing outside click events specified by the handleClickOutside config option.');\n            }\n          } else if(typeof instance.handleClickOutside === 'function') {\n            if (React.Component.prototype.isPrototypeOf(instance)) {\n              clickOutsideHandler = instance.handleClickOutside.bind(instance);\n            } else {\n              clickOutsideHandler = instance.handleClickOutside;\n            }\n          } else if(typeof instance.props.handleClickOutside === 'function') {\n            clickOutsideHandler = instance.props.handleClickOutside;\n          } else {\n            throw new Error('Component lacks a handleClickOutside(event) function for processing outside click events.');\n          }\n\n          var componentNode = ReactDOM.findDOMNode(instance);\n          if (componentNode === null) {\n            console.warn('Antipattern warning: there was no DOM node associated with the component that is being wrapped by outsideClick.');\n            console.warn([\n              'This is typically caused by having a component that starts life with a render function that',\n              'returns `null` (due to a state or props value), so that the component \\'exist\\' in the React',\n              'chain of components, but not in the DOM.\\n\\nInstead, you need to refactor your code so that the',\n              'decision of whether or not to show your component is handled by the parent, in their render()',\n              'function.\\n\\nIn code, rather than:\\n\\n  A{render(){return check? <.../> : null;}\\n  B{render(){<A check=... />}\\n\\nmake sure that you',\n              'use:\\n\\n  A{render(){return <.../>}\\n  B{render(){return <...>{ check ? <A/> : null }<...>}}\\n\\nThat is:',\n              'the parent is always responsible for deciding whether or not to render any of its children.',\n              'It is not the child\\'s responsibility to decide whether a render instruction from above should',\n              'get ignored or not by returning `null`.\\n\\nWhen any component gets its render() function called,',\n              'that is the signal that it should be rendering its part of the UI. It may in turn decide not to',\n              'render all of *its* children, but it should never return `null` for itself. It is not responsible',\n              'for that decision.'\n            ].join(' '));\n          }\n\n          var fn = this.__outsideClickHandler = generateOutsideCheck(\n            componentNode,\n            instance,\n            clickOutsideHandler,\n            this.props.outsideClickIgnoreClass || IGNORE_CLASS,\n            this.props.excludeScrollbar || false,\n            this.props.preventDefault || false,\n            this.props.stopPropagation || false\n          );\n\n          var pos = registeredComponents.length;\n          registeredComponents.push(this);\n          handlers[pos] = fn;\n\n          // If there is a truthy disableOnClickOutside property for this\n          // component, don't immediately start listening for outside events.\n          if (!this.props.disableOnClickOutside) {\n            this.enableOnClickOutside();\n          }\n        },\n\n        /**\n        * Track for disableOnClickOutside props changes and enable/disable click outside\n        */\n        componentWillReceiveProps: function(nextProps) {\n          if (this.props.disableOnClickOutside && !nextProps.disableOnClickOutside) {\n            this.enableOnClickOutside();\n          } else if (!this.props.disableOnClickOutside && nextProps.disableOnClickOutside) {\n            this.disableOnClickOutside();\n          }\n        },\n\n        /**\n         * Remove the document's event listeners\n         */\n        componentWillUnmount: function() {\n          this.disableOnClickOutside();\n          this.__outsideClickHandler = false;\n          var pos = registeredComponents.indexOf(this);\n          if( pos>-1) {\n            // clean up so we don't leak memory\n            if (handlers[pos]) { handlers.splice(pos, 1); }\n            registeredComponents.splice(pos, 1);\n          }\n        },\n\n        /**\n         * Can be called to explicitly enable event listening\n         * for clicks and touches outside of this element.\n         */\n        enableOnClickOutside: function() {\n          var fn = this.__outsideClickHandler;\n          if (typeof document !== 'undefined') {\n            var events = this.props.eventTypes || DEFAULT_EVENTS;\n            if (!events.forEach) {\n              events = [events];\n            }\n            events.forEach(function (eventName) {\n              document.addEventListener(eventName, fn);\n            });\n          }\n        },\n\n        /**\n         * Can be called to explicitly disable event listening\n         * for clicks and touches outside of this element.\n         */\n        disableOnClickOutside: function() {\n          var fn = this.__outsideClickHandler;\n          if (typeof document !== 'undefined') {\n            var events = this.props.eventTypes || DEFAULT_EVENTS;\n            if (!events.forEach) {\n              events = [events];\n            }\n            events.forEach(function (eventName) {\n              document.removeEventListener(eventName, fn);\n            });\n          }\n        },\n\n        /**\n         * Pass-through render\n         */\n        render: function() {\n          var passedProps = this.props;\n          var props = {};\n          Object.keys(this.props).forEach(function(key) {\n            if (key !== 'excludeScrollbar') {\n              props[key] = passedProps[key];\n            }\n          });\n          if (Component.prototype.isReactComponent) {\n            props.ref = 'instance';\n          }\n          props.disableOnClickOutside = this.disableOnClickOutside;\n          props.enableOnClickOutside = this.enableOnClickOutside;\n          return React.createElement(Component, props);\n        }\n      });\n\n      // Add display name for React devtools\n      (function bindWrappedComponentName(c, wrapper) {\n        var componentName = c.displayName || c.name || 'Component';\n        wrapper.displayName = 'OnClickOutside(' + componentName + ')';\n      }(Component, wrapComponentWithOnClickOutsideHandling));\n\n      return wrapComponentWithOnClickOutsideHandling;\n    };\n  }\n\n  /**\n   * This function sets up the library in ways that\n   * work with the various modulde loading solutions\n   * used in JavaScript land today.\n   */\n  function setupBinding(root, factory) {\n    if (typeof define === 'function' && define.amd) {\n      // AMD. Register as an anonymous module.\n      define(['react','react-dom'], function(React, ReactDom) {\n        return factory(root, React, ReactDom);\n      });\n    } else if (typeof exports === 'object') {\n      // Node. Note that this does not work with strict\n      // CommonJS, but only CommonJS-like environments\n      // that support module.exports\n      module.exports = factory(root, require('react'), require('react-dom'));\n    } else {\n      // Browser globals (root is window)\n      root.onClickOutside = factory(root, React, ReactDOM);\n    }\n  }\n\n  // Make it all happen\n  setupBinding(root, setupHOC);\n\n}(this));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/javi/projects/code/react-datetime-playground/~/react-onclickoutside/index.js\n// module id = 9\n// module chunks = 0"]}
{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:/webpack/bootstrap 20dd1ee723302f3cb2b4","react-datetime.js","webpack:///Datetime.js","webpack:///~/object-assign/index.js","webpack:///src/CalendarContainer.js","webpack:///src/DaysView.js","webpack:///Users/javi/projects/code/react-datetime-playground/~/react-onclickoutside/index.js","webpack:///src/MonthsView.js","webpack:///src/YearsView.js","webpack:///src/TimeView.js"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_2__","__WEBPACK_EXTERNAL_MODULE_3__","__WEBPACK_EXTERNAL_MODULE_7__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","assign","moment","React","CalendarContainer","TYPES","PropTypes","Datetime","createClass","propTypes","onFocus","func","onBlur","onChange","locale","string","utc","bool","input","inputProps","object","timeConstraints","viewMode","oneOf","isValidDate","open","strictParsing","closeOnSelect","closeOnTab","getDefaultProps","nof","className","defaultValue","timeFormat","dateFormat","getInitialState","state","getStateFromProps","props","undefined","currentView","updateOn","selectedDate","viewDate","inputValue","formats","getFormats","date","value","localMoment","datetime","isValid","clone","startOf","getUpdateOn","format","inputFormat","match","indexOf","time","localeData","longDateFormat","componentWillReceiveProps","nextProps","updatedState","updatedViewDate","updatedSelectedDate","local","setState","onInputChange","e","target","update","onInputKey","which","closeCalendar","showView","view","me","setDate","type","nextViews","month","year","parseInt","getAttribute","addTime","amount","toSelected","updateTime","subtractTime","op","allowedSetTime","setTime","nextType","index","length","updateSelectedDate","close","modifier","currentDate","hours","minutes","seconds","milliseconds","openCalendar","handleClickOutside","momentFn","componentProps","fromProps","fromState","fromThis","getComponentProps","forEach","name","render","DOM","Array","isArray","join","children","key","onKeyDown","div","concat","createElement","viewProps","onClickOutside","ToObject","val","TypeError","Object","ownEnumerableKeys","obj","keys","getOwnPropertyNames","getOwnPropertySymbols","filter","propIsEnumerable","prototype","propertyIsEnumerable","source","from","to","s","arguments","i","DaysView","MonthsView","YearsView","TimeView","viewComponents","days","months","years","DateTimePickerDays","tableChildren","footer","renderFooter","thead","tr","th","span","onClick","colSpan","data-value","getDaysOfWeek","map","day","tbody","renderDays","push","table","_weekdaysMin","first","firstDayOfWeek","dow","classes","isDisabled","dayProps","selected","prevMonth","subtract","currentYear","currentMonth","weeks","renderer","renderDay","alwaysValidDate","daysInMonth","lastDay","add","isBefore","isSame","event","td","tfoot","__WEBPACK_AMD_DEFINE_ARRAY__","__WEBPACK_AMD_DEFINE_RESULT__","setupHOC","ReactDOM","Component","config","wrapComponentWithOnClickOutsideHandling","statics","getClass","getInstance","isReactComponent","refs","instance","__outsideClickHandler","componentDidMount","document","clickOutsideHandler","Error","isPrototypeOf","bind","componentNode","findDOMNode","console","warn","fn","generateOutsideCheck","outsideClickIgnoreClass","IGNORE_CLASS","excludeScrollbar","preventDefault","stopPropagation","pos","registeredComponents","handlers","disableOnClickOutside","enableOnClickOutside","componentWillUnmount","splice","events","eventTypes","DEFAULT_EVENTS","eventName","addEventListener","removeEventListener","passedProps","ref","wrapper","componentName","displayName","setupBinding","ReactDom","apply","isNodeFound","current","ignoreClass","correspondingElement","classList","contains","findHighest","parentNode","clickedScrollbar","evt","documentElement","clientWidth","clientX","componentInstance","eventHandler","capitalize","str","charAt","toUpperCase","slice","DateTimePickerMonths","renderMonths","noOfDaysInMonth","validDay","rows","renderMonth","irrelevantDate","set","endOf","find","d","updateSelectedMonth","monthStr","monthsShort","strLength","monthStrFixedLength","substring","DateTimePickerYears","renderYears","noOfDaysInYear","daysInYear","renderYear","irrelevantMonth","dayOfYear","updateSelectedYear","DateTimePickerTime","calculateState","counters","toLowerCase","daypart","renderCounter","onMouseDown","onStartClicking","renderDayPart","updateMilli","renderHeader","componentWillMount","min","max","step","milli","action","timer","setTimeout","increaseTimer","setInterval","mouseUpListener","clearTimeout","clearInterval","body","padValues","toggleDayPart","pad","increase","decrease"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AAkC,gBAAA2D,GAAAmO,IAAA,KACAhU,KAAA8U,IAAAjP,EAAAhC,IAGAmR,SAAA,SAAAnP,GACA,GAAAhC,GAAAoC,SAAAjG,KAAAiD,MAAA4C,GAAA,IAAA7F,KAAAkC,gBAAA2D,GAAAoO,IAGA,OAFApQ,GAAA7D,KAAAkC,gBAAA2D,GAAAkO,MACAlQ,EAAA7D,KAAAkC,gBAAA2D,GAAAmO,IAAA,GAAAhU,KAAAkC,gBAAA2D,GAAAkO,IAAAlQ,IACA7D,KAAA8U,IAAAjP,EAAAhC,IAGAiR,IAAA,SAAAjP,EAAAhC,GAEA,IADA,GAAAyN,GAAAzN,EAAA,GACAyN,EAAAzK,OAAA7G,KAAA4U,UAAA/O,IACAyL,EAAA,IAAAA,CACA,OAAAA,IAGA/J,mBAAA,WRwvCKvH,KAAKmD,MAAMoE,wBAIf3H,GAAOD,QAAUwT","file":"react-datetime.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"moment\"), require(\"React\"), require(\"ReactDOM\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"moment\", \"React\", \"ReactDOM\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Datetime\"] = factory(require(\"moment\"), require(\"React\"), require(\"ReactDOM\"));\n\telse\n\t\troot[\"Datetime\"] = factory(root[\"moment\"], root[\"React\"], root[\"ReactDOM\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_7__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 20dd1ee723302f3cb2b4","/*\nreact-datetime v2.8.8\nhttps://github.com/YouCanBookMe/react-datetime\nMIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE\n*/\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"moment\"), require(\"React\"), require(\"ReactDOM\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"moment\", \"React\", \"ReactDOM\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Datetime\"] = factory(require(\"moment\"), require(\"React\"), require(\"ReactDOM\"));\n\telse\n\t\troot[\"Datetime\"] = factory(root[\"moment\"], root[\"React\"], root[\"ReactDOM\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_7__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n\n\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar assign = __webpack_require__(1),\n\t\tmoment = __webpack_require__(2),\n\t\tReact = __webpack_require__(3),\n\t\tCalendarContainer = __webpack_require__(4)\n\t;\n\n\tvar TYPES = React.PropTypes;\n\tvar Datetime = React.createClass({\n\t\tpropTypes: {\n\t\t\t// value: TYPES.object | TYPES.string,\n\t\t\t// defaultValue: TYPES.object | TYPES.string,\n\t\t\tonFocus: TYPES.func,\n\t\t\tonBlur: TYPES.func,\n\t\t\tonChange: TYPES.func,\n\t\t\tlocale: TYPES.string,\n\t\t\tutc: TYPES.bool,\n\t\t\tinput: TYPES.bool,\n\t\t\t// dateFormat: TYPES.string | TYPES.bool,\n\t\t\t// timeFormat: TYPES.string | TYPES.bool,\n\t\t\tinputProps: TYPES.object,\n\t\t\ttimeConstraints: TYPES.object,\n\t\t\tviewMode: TYPES.oneOf(['years', 'months', 'days', 'time']),\n\t\t\tisValidDate: TYPES.func,\n\t\t\topen: TYPES.bool,\n\t\t\tstrictParsing: TYPES.bool,\n\t\t\tcloseOnSelect: TYPES.bool,\n\t\t\tcloseOnTab: TYPES.bool\n\t\t},\n\n\t\tgetDefaultProps: function() {\n\t\t\tvar nof = function() {};\n\t\t\treturn {\n\t\t\t\tclassName: '',\n\t\t\t\tdefaultValue: '',\n\t\t\t\tinputProps: {},\n\t\t\t\tinput: true,\n\t\t\t\tonFocus: nof,\n\t\t\t\tonBlur: nof,\n\t\t\t\tonChange: nof,\n\t\t\t\ttimeFormat: true,\n\t\t\t\ttimeConstraints: {},\n\t\t\t\tdateFormat: true,\n\t\t\t\tstrictParsing: true,\n\t\t\t\tcloseOnSelect: false,\n\t\t\t\tcloseOnTab: true,\n\t\t\t\tutc: false\n\t\t\t};\n\t\t},\n\n\t\tgetInitialState: function() {\n\t\t\tvar state = this.getStateFromProps( this.props );\n\n\t\t\tif ( state.open === undefined )\n\t\t\t\tstate.open = !this.props.input;\n\n\t\t\tstate.currentView = this.props.dateFormat ? (this.props.viewMode || state.updateOn || 'days') : 'time';\n\n\t\t\treturn state;\n\t\t},\n\n\t\tgetStateFromProps: function( props ) {\n\t\t\tvar formats = this.getFormats( props ),\n\t\t\t\tdate = props.value || props.defaultValue,\n\t\t\t\tselectedDate, viewDate, updateOn, inputValue\n\t\t\t;\n\n\t\t\tif ( date && typeof date === 'string' )\n\t\t\t\tselectedDate = this.localMoment( date, formats.datetime );\n\t\t\telse if ( date )\n\t\t\t\tselectedDate = this.localMoment( date );\n\n\t\t\tif ( selectedDate && !selectedDate.isValid() )\n\t\t\t\tselectedDate = null;\n\n\t\t\tviewDate = selectedDate ?\n\t\t\t\tselectedDate.clone().startOf('month') :\n\t\t\t\tthis.localMoment().startOf('month')\n\t\t\t;\n\n\t\t\tupdateOn = this.getUpdateOn(formats);\n\n\t\t\tif ( selectedDate )\n\t\t\t\tinputValue = selectedDate.format(formats.datetime);\n\t\t\telse if ( date.isValid && !date.isValid() )\n\t\t\t\tinputValue = '';\n\t\t\telse\n\t\t\t\tinputValue = date || '';\n\n\t\t\treturn {\n\t\t\t\tupdateOn: updateOn,\n\t\t\t\tinputFormat: formats.datetime,\n\t\t\t\tviewDate: viewDate,\n\t\t\t\tselectedDate: selectedDate,\n\t\t\t\tinputValue: inputValue,\n\t\t\t\topen: props.open\n\t\t\t};\n\t\t},\n\n\t\tgetUpdateOn: function( formats ) {\n\t\t\tif ( formats.date.match(/[lLD]/) ) {\n\t\t\t\treturn 'days';\n\t\t\t}\n\t\t\telse if ( formats.date.indexOf('M') !== -1 ) {\n\t\t\t\treturn 'months';\n\t\t\t}\n\t\t\telse if ( formats.date.indexOf('Y') !== -1 ) {\n\t\t\t\treturn 'years';\n\t\t\t}\n\n\t\t\treturn 'days';\n\t\t},\n\n\t\tgetFormats: function( props ) {\n\t\t\tvar formats = {\n\t\t\t\t\tdate: props.dateFormat || '',\n\t\t\t\t\ttime: props.timeFormat || ''\n\t\t\t\t},\n\t\t\t\tlocale = this.localMoment( props.date, null, props ).localeData()\n\t\t\t;\n\n\t\t\tif ( formats.date === true ) {\n\t\t\t\tformats.date = locale.longDateFormat('L');\n\t\t\t}\n\t\t\telse if ( this.getUpdateOn(formats) !== 'days' ) {\n\t\t\t\tformats.time = '';\n\t\t\t}\n\n\t\t\tif ( formats.time === true ) {\n\t\t\t\tformats.time = locale.longDateFormat('LT');\n\t\t\t}\n\n\t\t\tformats.datetime = formats.date && formats.time ?\n\t\t\t\tformats.date + ' ' + formats.time :\n\t\t\t\tformats.date || formats.time\n\t\t\t;\n\n\t\t\treturn formats;\n\t\t},\n\n\t\tcomponentWillReceiveProps: function( nextProps ) {\n\t\t\tvar formats = this.getFormats( nextProps ),\n\t\t\t\tupdatedState = {}\n\t\t\t;\n\n\t\t\tif ( nextProps.value !== this.props.value ||\n\t\t\t\tformats.datetime !== this.getFormats( this.props ).datetime ) {\n\t\t\t\tupdatedState = this.getStateFromProps( nextProps );\n\t\t\t}\n\n\t\t\tif ( updatedState.open === undefined ) {\n\t\t\t\tif ( this.props.closeOnSelect && this.state.currentView !== 'time' ) {\n\t\t\t\t\tupdatedState.open = false;\n\t\t\t\t} else {\n\t\t\t\t\tupdatedState.open = this.state.open;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( nextProps.viewMode !== this.props.viewMode ) {\n\t\t\t\tupdatedState.currentView = nextProps.viewMode;\n\t\t\t}\n\n\t\t\tif ( nextProps.locale !== this.props.locale ) {\n\t\t\t\tif ( this.state.viewDate ) {\n\t\t\t\t\tvar updatedViewDate = this.state.viewDate.clone().locale( nextProps.locale );\n\t\t\t\t\tupdatedState.viewDate = updatedViewDate;\n\t\t\t\t}\n\t\t\t\tif ( this.state.selectedDate ) {\n\t\t\t\t\tvar updatedSelectedDate = this.state.selectedDate.clone().locale( nextProps.locale );\n\t\t\t\t\tupdatedState.selectedDate = updatedSelectedDate;\n\t\t\t\t\tupdatedState.inputValue = updatedSelectedDate.format( formats.datetime );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( nextProps.utc !== this.props.utc ) {\n\t\t\t\tif ( nextProps.utc ) {\n\t\t\t\t\tif ( this.state.viewDate )\n\t\t\t\t\t\tupdatedState.viewDate = this.state.viewDate.clone().utc();\n\t\t\t\t\tif ( this.state.selectedDate ) {\n\t\t\t\t\t\tupdatedState.selectedDate = this.state.selectedDate.clone().utc();\n\t\t\t\t\t\tupdatedState.inputValue = updatedState.selectedDate.format( formats.datetime );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif ( this.state.viewDate )\n\t\t\t\t\t\tupdatedState.viewDate = this.state.viewDate.clone().local();\n\t\t\t\t\tif ( this.state.selectedDate ) {\n\t\t\t\t\t\tupdatedState.selectedDate = this.state.selectedDate.clone().local();\n\t\t\t\t\t\tupdatedState.inputValue = updatedState.selectedDate.format(formats.datetime);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.setState( updatedState );\n\t\t},\n\n\t\tonInputChange: function( e ) {\n\t\t\tvar value = e.target === null ? e : e.target.value,\n\t\t\t\tlocalMoment = this.localMoment( value, this.state.inputFormat ),\n\t\t\t\tupdate = { inputValue: value }\n\t\t\t;\n\n\t\t\tif ( localMoment.isValid() && !this.props.value ) {\n\t\t\t\tupdate.selectedDate = localMoment;\n\t\t\t\tupdate.viewDate = localMoment.clone().startOf('month');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tupdate.selectedDate = null;\n\t\t\t}\n\n\t\t\treturn this.setState( update, function() {\n\t\t\t\treturn this.props.onChange( localMoment.isValid() ? localMoment : this.state.inputValue );\n\t\t\t});\n\t\t},\n\n\t\tonInputKey: function( e ) {\n\t\t\tif ( e.which === 9 && this.props.closeOnTab ) {\n\t\t\t\tthis.closeCalendar();\n\t\t\t}\n\t\t},\n\n\t\tshowView: function( view ) {\n\t\t\tvar me = this;\n\t\t\treturn function() {\n\t\t\t\tme.setState({ currentView: view });\n\t\t\t};\n\t\t},\n\n\t\tsetDate: function( type ) {\n\t\t\tvar me = this,\n\t\t\t\tnextViews = {\n\t\t\t\t\tmonth: 'days',\n\t\t\t\t\tyear: 'months'\n\t\t\t\t}\n\t\t\t;\n\t\t\treturn function( e ) {\n\t\t\t\tme.setState({\n\t\t\t\t\tviewDate: me.state.viewDate.clone()[ type ]( parseInt(e.target.getAttribute('data-value'), 10) ).startOf( type ),\n\t\t\t\t\tcurrentView: nextViews[ type ]\n\t\t\t\t});\n\t\t\t};\n\t\t},\n\n\t\taddTime: function( amount, type, toSelected ) {\n\t\t\treturn this.updateTime( 'add', amount, type, toSelected );\n\t\t},\n\n\t\tsubtractTime: function( amount, type, toSelected ) {\n\t\t\treturn this.updateTime( 'subtract', amount, type, toSelected );\n\t\t},\n\n\t\tupdateTime: function( op, amount, type, toSelected ) {\n\t\t\tvar me = this;\n\n\t\t\treturn function() {\n\t\t\t\tvar update = {},\n\t\t\t\t\tdate = toSelected ? 'selectedDate' : 'viewDate'\n\t\t\t\t;\n\n\t\t\t\tupdate[ date ] = me.state[ date ].clone()[ op ]( amount, type );\n\n\t\t\t\tme.setState( update );\n\t\t\t};\n\t\t},\n\n\t\tallowedSetTime: ['hours', 'minutes', 'seconds', 'milliseconds'],\n\t\tsetTime: function( type, value ) {\n\t\t\tvar index = this.allowedSetTime.indexOf( type ) + 1,\n\t\t\t\tstate = this.state,\n\t\t\t\tdate = (state.selectedDate || state.viewDate).clone(),\n\t\t\t\tnextType\n\t\t\t;\n\n\t\t\t// It is needed to set all the time properties\n\t\t\t// to not to reset the time\n\t\t\tdate[ type ]( value );\n\t\t\tfor (; index < this.allowedSetTime.length; index++) {\n\t\t\t\tnextType = this.allowedSetTime[index];\n\t\t\t\tdate[ nextType ]( date[nextType]() );\n\t\t\t}\n\n\t\t\tif ( !this.props.value ) {\n\t\t\t\tthis.setState({\n\t\t\t\t\tselectedDate: date,\n\t\t\t\t\tinputValue: date.format( state.inputFormat )\n\t\t\t\t});\n\t\t\t}\n\t\t\tthis.props.onChange( date );\n\t\t},\n\n\t\tupdateSelectedDate: function( e, close ) {\n\t\t\tvar target = e.target,\n\t\t\t\tmodifier = 0,\n\t\t\t\tviewDate = this.state.viewDate,\n\t\t\t\tcurrentDate = this.state.selectedDate || viewDate,\n\t\t\t\tdate\n\t    ;\n\n\t\t\tif (target.className.indexOf('rdtDay') !== -1) {\n\t\t\t\tif (target.className.indexOf('rdtNew') !== -1)\n\t\t\t\t\tmodifier = 1;\n\t\t\t\telse if (target.className.indexOf('rdtOld') !== -1)\n\t\t\t\t\tmodifier = -1;\n\n\t\t\t\tdate = viewDate.clone()\n\t\t\t\t\t.month( viewDate.month() + modifier )\n\t\t\t\t\t.date( parseInt( target.getAttribute('data-value'), 10 ) );\n\t\t\t} else if (target.className.indexOf('rdtMonth') !== -1) {\n\t\t\t\tdate = viewDate.clone()\n\t\t\t\t\t.month( parseInt( target.getAttribute('data-value'), 10 ) )\n\t\t\t\t\t.date( currentDate.date() );\n\t\t\t} else if (target.className.indexOf('rdtYear') !== -1) {\n\t\t\t\tdate = viewDate.clone()\n\t\t\t\t\t.month( currentDate.month() )\n\t\t\t\t\t.date( currentDate.date() )\n\t\t\t\t\t.year( parseInt( target.getAttribute('data-value'), 10 ) );\n\t\t\t}\n\n\t\t\tdate.hours( currentDate.hours() )\n\t\t\t\t.minutes( currentDate.minutes() )\n\t\t\t\t.seconds( currentDate.seconds() )\n\t\t\t\t.milliseconds( currentDate.milliseconds() );\n\n\t\t\tif ( !this.props.value ) {\n\t\t\t\tvar open = !( this.props.closeOnSelect && close );\n\t\t\t\tif ( !open ) {\n\t\t\t\t\tthis.props.onBlur( date );\n\t\t\t\t}\n\n\t\t\t\tthis.setState({\n\t\t\t\t\tselectedDate: date,\n\t\t\t\t\tviewDate: date.clone().startOf('month'),\n\t\t\t\t\tinputValue: date.format( this.state.inputFormat ),\n\t\t\t\t\topen: open\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tif ( this.props.closeOnSelect && close ) {\n\t\t\t\t\tthis.closeCalendar();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.props.onChange( date );\n\t\t},\n\n\t\topenCalendar: function() {\n\t\t\tif (!this.state.open) {\n\t\t\t\tthis.setState({ open: true }, function() {\n\t\t\t\t\tthis.props.onFocus();\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\tcloseCalendar: function() {\n\t\t\tthis.setState({ open: false }, function () {\n\t\t\t\tthis.props.onBlur( this.state.selectedDate || this.state.inputValue );\n\t\t\t});\n\t\t},\n\n\t\thandleClickOutside: function() {\n\t\t\tif ( this.props.input && this.state.open && !this.props.open ) {\n\t\t\t\tthis.setState({ open: false }, function() {\n\t\t\t\t\tthis.props.onBlur( this.state.selectedDate || this.state.inputValue );\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\tlocalMoment: function( date, format, props ) {\n\t\t\tprops = props || this.props;\n\t\t\tvar momentFn = props.utc ? moment.utc : moment;\n\t\t\tvar m = momentFn( date, format, props.strictParsing );\n\t\t\tif ( props.locale )\n\t\t\t\tm.locale( props.locale );\n\t\t\treturn m;\n\t\t},\n\n\t\tcomponentProps: {\n\t\t\tfromProps: ['value', 'isValidDate', 'renderDay', 'renderMonth', 'renderYear', 'timeConstraints'],\n\t\t\tfromState: ['viewDate', 'selectedDate', 'updateOn'],\n\t\t\tfromThis: ['setDate', 'setTime', 'showView', 'addTime', 'subtractTime', 'updateSelectedDate', 'localMoment', 'handleClickOutside']\n\t\t},\n\n\t\tgetComponentProps: function() {\n\t\t\tvar me = this,\n\t\t\t\tformats = this.getFormats( this.props ),\n\t\t\t\tprops = {dateFormat: formats.date, timeFormat: formats.time}\n\t\t\t;\n\n\t\t\tthis.componentProps.fromProps.forEach( function( name ) {\n\t\t\t\tprops[ name ] = me.props[ name ];\n\t\t\t});\n\t\t\tthis.componentProps.fromState.forEach( function( name ) {\n\t\t\t\tprops[ name ] = me.state[ name ];\n\t\t\t});\n\t\t\tthis.componentProps.fromThis.forEach( function( name ) {\n\t\t\t\tprops[ name ] = me[ name ];\n\t\t\t});\n\n\t\t\treturn props;\n\t\t},\n\n\t\trender: function() {\n\t\t\tvar DOM = React.DOM,\n\t\t\t\tclassName = 'rdt' + (this.props.className ?\n\t                  ( Array.isArray( this.props.className ) ?\n\t                  ' ' + this.props.className.join( ' ' ) : ' ' + this.props.className) : ''),\n\t\t\t\tchildren = []\n\t\t\t;\n\n\t\t\tif ( this.props.input ) {\n\t\t\t\tchildren = [ DOM.input( assign({\n\t\t\t\t\tkey: 'i',\n\t\t\t\t\ttype: 'text',\n\t\t\t\t\tclassName: 'form-control',\n\t\t\t\t\tonFocus: this.openCalendar,\n\t\t\t\t\tonChange: this.onInputChange,\n\t\t\t\t\tonKeyDown: this.onInputKey,\n\t\t\t\t\tvalue: this.state.inputValue\n\t\t\t\t}, this.props.inputProps ))];\n\t\t\t} else {\n\t\t\t\tclassName += ' rdtStatic';\n\t\t\t}\n\n\t\t\tif ( this.state.open )\n\t\t\t\tclassName += ' rdtOpen';\n\n\t\t\treturn DOM.div({className: className}, children.concat(\n\t\t\t\tDOM.div(\n\t\t\t\t\t{ key: 'dt', className: 'rdtPicker' },\n\t\t\t\t\tReact.createElement( CalendarContainer, {view: this.state.currentView, viewProps: this.getComponentProps(), onClickOutside: this.handleClickOutside })\n\t\t\t\t)\n\t\t\t));\n\t\t}\n\t});\n\n\t// Make moment accessible through the Datetime class\n\tDatetime.moment = moment;\n\n\tmodule.exports = Datetime;\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\tvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\n\tfunction ToObject(val) {\n\t\tif (val == null) {\n\t\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t\t}\n\n\t\treturn Object(val);\n\t}\n\n\tfunction ownEnumerableKeys(obj) {\n\t\tvar keys = Object.getOwnPropertyNames(obj);\n\n\t\tif (Object.getOwnPropertySymbols) {\n\t\t\tkeys = keys.concat(Object.getOwnPropertySymbols(obj));\n\t\t}\n\n\t\treturn keys.filter(function (key) {\n\t\t\treturn propIsEnumerable.call(obj, key);\n\t\t});\n\t}\n\n\tmodule.exports = Object.assign || function (target, source) {\n\t\tvar from;\n\t\tvar keys;\n\t\tvar to = ToObject(target);\n\n\t\tfor (var s = 1; s < arguments.length; s++) {\n\t\t\tfrom = arguments[s];\n\t\t\tkeys = ownEnumerableKeys(Object(from));\n\n\t\t\tfor (var i = 0; i < keys.length; i++) {\n\t\t\t\tto[keys[i]] = from[keys[i]];\n\t\t\t}\n\t\t}\n\n\t\treturn to;\n\t};\n\n\n/***/ },\n/* 2 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n/***/ },\n/* 3 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_3__;\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar React = __webpack_require__(3),\n\t  DaysView = __webpack_require__(5),\n\t  MonthsView = __webpack_require__(8),\n\t  YearsView = __webpack_require__(9),\n\t  TimeView = __webpack_require__(10)\n\t;\n\n\tvar CalendarContainer = React.createClass({\n\t\tviewComponents: {\n\t\t\tdays: DaysView,\n\t\t\tmonths: MonthsView,\n\t\t\tyears: YearsView,\n\t\t\ttime: TimeView\n\t\t},\n\n\t  render: function() {\n\t    return React.createElement( this.viewComponents[ this.props.view ], this.props.viewProps );\n\t  }\n\t});\n\n\tmodule.exports = CalendarContainer;\n\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar React = __webpack_require__(3),\n\t\tmoment = __webpack_require__(2),\n\t  onClickOutside = __webpack_require__(6)\n\t;\n\n\tvar DOM = React.DOM;\n\tvar DateTimePickerDays = onClickOutside( React.createClass({\n\t\trender: function() {\n\t\t\tvar footer = this.renderFooter(),\n\t\t\t\tdate = this.props.viewDate,\n\t\t\t\tlocale = date.localeData(),\n\t\t\t\ttableChildren\n\t\t\t;\n\n\t\t\ttableChildren = [\n\t\t\t\tDOM.thead({ key: 'th' }, [\n\t\t\t\t\tDOM.tr({ key: 'h' }, [\n\t\t\t\t\t\tDOM.th({ key: 'p', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 1, 'months' )}, '‹' )),\n\t\t\t\t\t\tDOM.th({ key: 's', className: 'rdtSwitch', onClick: this.props.showView( 'months' ), colSpan: 5, 'data-value': this.props.viewDate.month() }, locale.months( date ) + ' ' + date.year() ),\n\t\t\t\t\t\tDOM.th({ key: 'n', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 1, 'months' )}, '›' ))\n\t\t\t\t\t]),\n\t\t\t\t\tDOM.tr({ key: 'd'}, this.getDaysOfWeek( locale ).map( function( day, index ) { return DOM.th({ key: day + index, className: 'dow'}, day ); }) )\n\t\t\t\t]),\n\t\t\t\tDOM.tbody({ key: 'tb' }, this.renderDays())\n\t\t\t];\n\n\t\t\tif ( footer )\n\t\t\t\ttableChildren.push( footer );\n\n\t\t\treturn DOM.div({ className: 'rdtDays' },\n\t\t\t\tDOM.table({}, tableChildren )\n\t\t\t);\n\t\t},\n\n\t\t/**\n\t\t * Get a list of the days of the week\n\t\t * depending on the current locale\n\t\t * @return {array} A list with the shortname of the days\n\t\t */\n\t\tgetDaysOfWeek: function( locale ) {\n\t\t\tvar days = locale._weekdaysMin,\n\t\t\t\tfirst = locale.firstDayOfWeek(),\n\t\t\t\tdow = [],\n\t\t\t\ti = 0\n\t\t\t;\n\n\t\t\tdays.forEach( function( day ) {\n\t\t\t\tdow[ (7 + ( i++ ) - first) % 7 ] = day;\n\t\t\t});\n\n\t\t\treturn dow;\n\t\t},\n\n\t\trenderDays: function() {\n\t\t\tvar date = this.props.viewDate,\n\t\t\t\tselected = this.props.selectedDate && this.props.selectedDate.clone(),\n\t\t\t\tprevMonth = date.clone().subtract( 1, 'months' ),\n\t\t\t\tcurrentYear = date.year(),\n\t\t\t\tcurrentMonth = date.month(),\n\t\t\t\tweeks = [],\n\t\t\t\tdays = [],\n\t\t\t\trenderer = this.props.renderDay || this.renderDay,\n\t\t\t\tisValid = this.props.isValidDate || this.alwaysValidDate,\n\t\t\t\tclasses, isDisabled, dayProps, currentDate\n\t\t\t;\n\n\t\t\t// Go to the last week of the previous month\n\t\t\tprevMonth.date( prevMonth.daysInMonth() ).startOf( 'week' );\n\t\t\tvar lastDay = prevMonth.clone().add( 42, 'd' );\n\n\t\t\twhile ( prevMonth.isBefore( lastDay ) ) {\n\t\t\t\tclasses = 'rdtDay';\n\t\t\t\tcurrentDate = prevMonth.clone();\n\n\t\t\t\tif ( ( prevMonth.year() === currentYear && prevMonth.month() < currentMonth ) || ( prevMonth.year() < currentYear ) )\n\t\t\t\t\tclasses += ' rdtOld';\n\t\t\t\telse if ( ( prevMonth.year() === currentYear && prevMonth.month() > currentMonth ) || ( prevMonth.year() > currentYear ) )\n\t\t\t\t\tclasses += ' rdtNew';\n\n\t\t\t\tif ( selected && prevMonth.isSame( selected, 'day' ) )\n\t\t\t\t\tclasses += ' rdtActive';\n\n\t\t\t\tif ( prevMonth.isSame( moment(), 'day' ) )\n\t\t\t\t\tclasses += ' rdtToday';\n\n\t\t\t\tisDisabled = !isValid( currentDate, selected );\n\t\t\t\tif ( isDisabled )\n\t\t\t\t\tclasses += ' rdtDisabled';\n\n\t\t\t\tdayProps = {\n\t\t\t\t\tkey: prevMonth.format( 'M_D' ),\n\t\t\t\t\t'data-value': prevMonth.date(),\n\t\t\t\t\tclassName: classes\n\t\t\t\t};\n\n\t\t\t\tif ( !isDisabled )\n\t\t\t\t\tdayProps.onClick = this.updateSelectedDate;\n\n\t\t\t\tdays.push( renderer( dayProps, currentDate, selected ) );\n\n\t\t\t\tif ( days.length === 7 ) {\n\t\t\t\t\tweeks.push( DOM.tr({ key: prevMonth.format( 'M_D' )}, days ) );\n\t\t\t\t\tdays = [];\n\t\t\t\t}\n\n\t\t\t\tprevMonth.add( 1, 'd' );\n\t\t\t}\n\n\t\t\treturn weeks;\n\t\t},\n\n\t\tupdateSelectedDate: function( event ) {\n\t\t\tthis.props.updateSelectedDate( event, true );\n\t\t},\n\n\t\trenderDay: function( props, currentDate ) {\n\t\t\treturn DOM.td( props, currentDate.date() );\n\t\t},\n\n\t\trenderFooter: function() {\n\t\t\tif ( !this.props.timeFormat )\n\t\t\t\treturn '';\n\n\t\t\tvar date = this.props.selectedDate || this.props.viewDate;\n\n\t\t\treturn DOM.tfoot({ key: 'tf'},\n\t\t\t\tDOM.tr({},\n\t\t\t\t\tDOM.td({ onClick: this.props.showView( 'time' ), colSpan: 7, className: 'rdtTimeToggle' }, date.format( this.props.timeFormat ))\n\t\t\t\t)\n\t\t\t);\n\t\t},\n\n\t\talwaysValidDate: function() {\n\t\t\treturn 1;\n\t\t},\n\n\t  handleClickOutside: function() {\n\t    this.props.handleClickOutside();\n\t  }\n\t}));\n\n\tmodule.exports = DateTimePickerDays;\n\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n\t * A higher-order-component for handling onClickOutside for React components.\n\t */\n\t(function(root) {\n\n\t  // administrative\n\t  var registeredComponents = [];\n\t  var handlers = [];\n\t  var IGNORE_CLASS = 'ignore-react-onclickoutside';\n\t  var DEFAULT_EVENTS = ['mousedown', 'touchstart'];\n\n\t  /**\n\t   * Check whether some DOM node is our Component's node.\n\t   */\n\t  var isNodeFound = function(current, componentNode, ignoreClass) {\n\t    if (current === componentNode) {\n\t      return true;\n\t    }\n\t    // SVG <use/> elements do not technically reside in the rendered DOM, so\n\t    // they do not have classList directly, but they offer a link to their\n\t    // corresponding element, which can have classList. This extra check is for\n\t    // that case.\n\t    // See: http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGUseElement\n\t    // Discussion: https://github.com/Pomax/react-onclickoutside/pull/17\n\t    if (current.correspondingElement) {\n\t      return current.correspondingElement.classList.contains(ignoreClass);\n\t    }\n\t    return current.classList.contains(ignoreClass);\n\t  };\n\n\t  /**\n\t   * Try to find our node in a hierarchy of nodes, returning the document\n\t   * node as highest noode if our node is not found in the path up.\n\t   */\n\t  var findHighest = function(current, componentNode, ignoreClass) {\n\t    if (current === componentNode) {\n\t      return true;\n\t    }\n\n\t    // If source=local then this event came from 'somewhere'\n\t    // inside and should be ignored. We could handle this with\n\t    // a layered approach, too, but that requires going back to\n\t    // thinking in terms of Dom node nesting, running counter\n\t    // to React's 'you shouldn't care about the DOM' philosophy.\n\t    while(current.parentNode) {\n\t      if (isNodeFound(current, componentNode, ignoreClass)) {\n\t        return true;\n\t      }\n\t      current = current.parentNode;\n\t    }\n\t    return current;\n\t  };\n\n\t  /**\n\t   * Check if the browser scrollbar was clicked\n\t   */\n\t  var clickedScrollbar = function(evt) {\n\t    return document.documentElement.clientWidth <= evt.clientX;\n\t  };\n\n\t  /**\n\t   * Generate the event handler that checks whether a clicked DOM node\n\t   * is inside of, or lives outside of, our Component's node tree.\n\t   */\n\t  var generateOutsideCheck = function(componentNode, componentInstance, eventHandler, ignoreClass, excludeScrollbar, preventDefault, stopPropagation) {\n\t    return function(evt) {\n\t      if (preventDefault) {\n\t        evt.preventDefault();\n\t      }\n\t      if (stopPropagation) {\n\t        evt.stopPropagation();\n\t      }\n\t      var current = evt.target;\n\t      if((excludeScrollbar && clickedScrollbar(evt)) || (findHighest(current, componentNode, ignoreClass) !== document)) {\n\t        return;\n\t      }\n\t      eventHandler(evt);\n\t    };\n\t  };\n\n\t  /**\n\t   * This function generates the HOC function that you'll use\n\t   * in order to impart onOutsideClick listening to an\n\t   * arbitrary component. It gets called at the end of the\n\t   * bootstrapping code to yield an instance of the\n\t   * onClickOutsideHOC function defined inside setupHOC().\n\t   */\n\t  function setupHOC(root, React, ReactDOM) {\n\n\t    // The actual Component-wrapping HOC:\n\t    return function onClickOutsideHOC(Component, config) {\n\t      var wrapComponentWithOnClickOutsideHandling = React.createClass({\n\t        statics: {\n\t          /**\n\t           * Access the wrapped Component's class.\n\t           */\n\t          getClass: function() {\n\t            if (Component.getClass) {\n\t              return Component.getClass();\n\t            }\n\t            return Component;\n\t          }\n\t        },\n\n\t        /**\n\t         * Access the wrapped Component's instance.\n\t         */\n\t        getInstance: function() {\n\t          return Component.prototype.isReactComponent ? this.refs.instance : this;\n\t        },\n\n\t        // this is given meaning in componentDidMount\n\t        __outsideClickHandler: function() {},\n\n\t        /**\n\t         * Add click listeners to the current document,\n\t         * linked to this component's state.\n\t         */\n\t        componentDidMount: function() {\n\t          // If we are in an environment without a DOM such\n\t          // as shallow rendering or snapshots then we exit\n\t          // early to prevent any unhandled errors being thrown.\n\t          if (typeof document === 'undefined' || !document.createElement){\n\t            return;\n\t          }\n\n\t          var instance = this.getInstance();\n\t          var clickOutsideHandler;\n\n\t          if(config && typeof config.handleClickOutside === 'function') {\n\t            clickOutsideHandler = config.handleClickOutside(instance);\n\t            if(typeof clickOutsideHandler !== 'function') {\n\t              throw new Error('Component lacks a function for processing outside click events specified by the handleClickOutside config option.');\n\t            }\n\t          } else if(typeof instance.handleClickOutside === 'function') {\n\t            if (React.Component.prototype.isPrototypeOf(instance)) {\n\t              clickOutsideHandler = instance.handleClickOutside.bind(instance);\n\t            } else {\n\t              clickOutsideHandler = instance.handleClickOutside;\n\t            }\n\t          } else if(typeof instance.props.handleClickOutside === 'function') {\n\t            clickOutsideHandler = instance.props.handleClickOutside;\n\t          } else {\n\t            throw new Error('Component lacks a handleClickOutside(event) function for processing outside click events.');\n\t          }\n\n\t          var componentNode = ReactDOM.findDOMNode(instance);\n\t          if (componentNode === null) {\n\t            console.warn('Antipattern warning: there was no DOM node associated with the component that is being wrapped by outsideClick.');\n\t            console.warn([\n\t              'This is typically caused by having a component that starts life with a render function that',\n\t              'returns `null` (due to a state or props value), so that the component \\'exist\\' in the React',\n\t              'chain of components, but not in the DOM.\\n\\nInstead, you need to refactor your code so that the',\n\t              'decision of whether or not to show your component is handled by the parent, in their render()',\n\t              'function.\\n\\nIn code, rather than:\\n\\n  A{render(){return check? <.../> : null;}\\n  B{render(){<A check=... />}\\n\\nmake sure that you',\n\t              'use:\\n\\n  A{render(){return <.../>}\\n  B{render(){return <...>{ check ? <A/> : null }<...>}}\\n\\nThat is:',\n\t              'the parent is always responsible for deciding whether or not to render any of its children.',\n\t              'It is not the child\\'s responsibility to decide whether a render instruction from above should',\n\t              'get ignored or not by returning `null`.\\n\\nWhen any component gets its render() function called,',\n\t              'that is the signal that it should be rendering its part of the UI. It may in turn decide not to',\n\t              'render all of *its* children, but it should never return `null` for itself. It is not responsible',\n\t              'for that decision.'\n\t            ].join(' '));\n\t          }\n\n\t          var fn = this.__outsideClickHandler = generateOutsideCheck(\n\t            componentNode,\n\t            instance,\n\t            clickOutsideHandler,\n\t            this.props.outsideClickIgnoreClass || IGNORE_CLASS,\n\t            this.props.excludeScrollbar || false,\n\t            this.props.preventDefault || false,\n\t            this.props.stopPropagation || false\n\t          );\n\n\t          var pos = registeredComponents.length;\n\t          registeredComponents.push(this);\n\t          handlers[pos] = fn;\n\n\t          // If there is a truthy disableOnClickOutside property for this\n\t          // component, don't immediately start listening for outside events.\n\t          if (!this.props.disableOnClickOutside) {\n\t            this.enableOnClickOutside();\n\t          }\n\t        },\n\n\t        /**\n\t        * Track for disableOnClickOutside props changes and enable/disable click outside\n\t        */\n\t        componentWillReceiveProps: function(nextProps) {\n\t          if (this.props.disableOnClickOutside && !nextProps.disableOnClickOutside) {\n\t            this.enableOnClickOutside();\n\t          } else if (!this.props.disableOnClickOutside && nextProps.disableOnClickOutside) {\n\t            this.disableOnClickOutside();\n\t          }\n\t        },\n\n\t        /**\n\t         * Remove the document's event listeners\n\t         */\n\t        componentWillUnmount: function() {\n\t          this.disableOnClickOutside();\n\t          this.__outsideClickHandler = false;\n\t          var pos = registeredComponents.indexOf(this);\n\t          if( pos>-1) {\n\t            // clean up so we don't leak memory\n\t            if (handlers[pos]) { handlers.splice(pos, 1); }\n\t            registeredComponents.splice(pos, 1);\n\t          }\n\t        },\n\n\t        /**\n\t         * Can be called to explicitly enable event listening\n\t         * for clicks and touches outside of this element.\n\t         */\n\t        enableOnClickOutside: function() {\n\t          var fn = this.__outsideClickHandler;\n\t          if (typeof document !== 'undefined') {\n\t            var events = this.props.eventTypes || DEFAULT_EVENTS;\n\t            if (!events.forEach) {\n\t              events = [events];\n\t            }\n\t            events.forEach(function (eventName) {\n\t              document.addEventListener(eventName, fn);\n\t            });\n\t          }\n\t        },\n\n\t        /**\n\t         * Can be called to explicitly disable event listening\n\t         * for clicks and touches outside of this element.\n\t         */\n\t        disableOnClickOutside: function() {\n\t          var fn = this.__outsideClickHandler;\n\t          if (typeof document !== 'undefined') {\n\t            var events = this.props.eventTypes || DEFAULT_EVENTS;\n\t            if (!events.forEach) {\n\t              events = [events];\n\t            }\n\t            events.forEach(function (eventName) {\n\t              document.removeEventListener(eventName, fn);\n\t            });\n\t          }\n\t        },\n\n\t        /**\n\t         * Pass-through render\n\t         */\n\t        render: function() {\n\t          var passedProps = this.props;\n\t          var props = {};\n\t          Object.keys(this.props).forEach(function(key) {\n\t            if (key !== 'excludeScrollbar') {\n\t              props[key] = passedProps[key];\n\t            }\n\t          });\n\t          if (Component.prototype.isReactComponent) {\n\t            props.ref = 'instance';\n\t          }\n\t          props.disableOnClickOutside = this.disableOnClickOutside;\n\t          props.enableOnClickOutside = this.enableOnClickOutside;\n\t          return React.createElement(Component, props);\n\t        }\n\t      });\n\n\t      // Add display name for React devtools\n\t      (function bindWrappedComponentName(c, wrapper) {\n\t        var componentName = c.displayName || c.name || 'Component';\n\t        wrapper.displayName = 'OnClickOutside(' + componentName + ')';\n\t      }(Component, wrapComponentWithOnClickOutsideHandling));\n\n\t      return wrapComponentWithOnClickOutsideHandling;\n\t    };\n\t  }\n\n\t  /**\n\t   * This function sets up the library in ways that\n\t   * work with the various modulde loading solutions\n\t   * used in JavaScript land today.\n\t   */\n\t  function setupBinding(root, factory) {\n\t    if (true) {\n\t      // AMD. Register as an anonymous module.\n\t      !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(3),__webpack_require__(7)], __WEBPACK_AMD_DEFINE_RESULT__ = function(React, ReactDom) {\n\t        return factory(root, React, ReactDom);\n\t      }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t    } else if (typeof exports === 'object') {\n\t      // Node. Note that this does not work with strict\n\t      // CommonJS, but only CommonJS-like environments\n\t      // that support module.exports\n\t      module.exports = factory(root, require('react'), require('react-dom'));\n\t    } else {\n\t      // Browser globals (root is window)\n\t      root.onClickOutside = factory(root, React, ReactDOM);\n\t    }\n\t  }\n\n\t  // Make it all happen\n\t  setupBinding(root, setupHOC);\n\n\t}(this));\n\n\n/***/ },\n/* 7 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_7__;\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar React = __webpack_require__(3),\n\t\tonClickOutside = __webpack_require__(6)\n\t;\n\n\tvar DOM = React.DOM;\n\tvar DateTimePickerMonths = onClickOutside( React.createClass({\n\t\trender: function() {\n\t\t\treturn DOM.div({ className: 'rdtMonths' }, [\n\t\t\t\tDOM.table({ key: 'a' }, DOM.thead( {}, DOM.tr( {}, [\n\t\t\t\t\tDOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 1, 'years' )}, '‹' )),\n\t\t\t\t\tDOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2, 'data-value': this.props.viewDate.year() }, this.props.viewDate.year() ),\n\t\t\t\t\tDOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 1, 'years' )}, '›' ))\n\t\t\t\t]))),\n\t\t\t\tDOM.table({ key: 'months' }, DOM.tbody({ key: 'b' }, this.renderMonths()))\n\t\t\t]);\n\t\t},\n\n\t\trenderMonths: function() {\n\t\t\tvar date = this.props.selectedDate,\n\t\t\t\tmonth = this.props.viewDate.month(),\n\t\t\t\tyear = this.props.viewDate.year(),\n\t\t\t\trows = [],\n\t\t\t\ti = 0,\n\t\t\t\tmonths = [],\n\t\t\t\trenderer = this.props.renderMonth || this.renderMonth,\n\t\t\t\tisValid = this.props.isValidDate || this.alwaysValidDate,\n\t\t\t\tclasses, props, currentMonth, isDisabled, noOfDaysInMonth, daysInMonth, validDay,\n\t\t\t\t// Date is irrelevant because we're only interested in month\n\t\t\t\tirrelevantDate = 1\n\t\t\t;\n\n\t\t\twhile (i < 12) {\n\t\t\t\tclasses = 'rdtMonth';\n\t\t\t\tcurrentMonth =\n\t\t\t\t\tthis.props.viewDate.clone().set({ year: year, month: i, date: irrelevantDate });\n\n\t\t\t\tnoOfDaysInMonth = currentMonth.endOf( 'month' ).format( 'D' );\n\t\t\t\tdaysInMonth = Array.from({ length: noOfDaysInMonth }, function( e, i ) {\n\t\t\t\t\treturn i + 1;\n\t\t\t\t});\n\n\t\t\t\tvalidDay = daysInMonth.find(function( d ) {\n\t\t\t\t\tvar day = currentMonth.clone().set( 'date', d );\n\t\t\t\t\treturn isValid( day );\n\t\t\t\t});\n\n\t\t\t\tisDisabled = ( validDay === undefined );\n\n\t\t\t\tif ( isDisabled )\n\t\t\t\t\tclasses += ' rdtDisabled';\n\n\t\t\t\tif ( date && i === month && year === date.year() )\n\t\t\t\t\tclasses += ' rdtActive';\n\n\t\t\t\tprops = {\n\t\t\t\t\tkey: i,\n\t\t\t\t\t'data-value': i,\n\t\t\t\t\tclassName: classes\n\t\t\t\t};\n\n\t\t\t\tif ( !isDisabled )\n\t\t\t\t\tprops.onClick = ( this.props.updateOn === 'months' ?\n\t\t\t\t\t\tthis.updateSelectedMonth : this.props.setDate( 'month' ) );\n\n\t\t\t\tmonths.push( renderer( props, i, year, date && date.clone() ) );\n\n\t\t\t\tif ( months.length === 4 ) {\n\t\t\t\t\trows.push( DOM.tr({ key: month + '_' + rows.length }, months ) );\n\t\t\t\t\tmonths = [];\n\t\t\t\t}\n\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\treturn rows;\n\t\t},\n\n\t\tupdateSelectedMonth: function( event ) {\n\t\t\tthis.props.updateSelectedDate( event );\n\t\t},\n\n\t\trenderMonth: function( props, month ) {\n\t\t\tvar localMoment = this.props.viewDate;\n\t\t\tvar monthStr = localMoment.localeData().monthsShort( localMoment.month( month ) );\n\t\t\tvar strLength = 3;\n\t\t\t// Because some months are up to 5 characters long, we want to\n\t\t\t// use a fixed string length for consistency\n\t\t\tvar monthStrFixedLength = monthStr.substring( 0, strLength );\n\t\t\treturn DOM.td( props, capitalize( monthStrFixedLength ) );\n\t\t},\n\n\t\talwaysValidDate: function() {\n\t\t\treturn 1;\n\t\t},\n\n\t  handleClickOutside: function() {\n\t    this.props.handleClickOutside();\n\t  }\n\t}));\n\n\tfunction capitalize( str ) {\n\t\treturn str.charAt( 0 ).toUpperCase() + str.slice( 1 );\n\t}\n\n\tmodule.exports = DateTimePickerMonths;\n\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar React = __webpack_require__(3),\n\t\tonClickOutside = __webpack_require__(6)\n\t;\n\n\tvar DOM = React.DOM;\n\tvar DateTimePickerYears = onClickOutside( React.createClass({\n\t\trender: function() {\n\t\t\tvar year = parseInt( this.props.viewDate.year() / 10, 10 ) * 10;\n\n\t\t\treturn DOM.div({ className: 'rdtYears' }, [\n\t\t\t\tDOM.table({ key: 'a' }, DOM.thead({}, DOM.tr({}, [\n\t\t\t\t\tDOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 10, 'years' )}, '‹' )),\n\t\t\t\t\tDOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2 }, year + '-' + ( year + 9 ) ),\n\t\t\t\t\tDOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 10, 'years' )}, '›' ))\n\t\t\t\t\t]))),\n\t\t\t\tDOM.table({ key: 'years' }, DOM.tbody( {}, this.renderYears( year )))\n\t\t\t]);\n\t\t},\n\n\t\trenderYears: function( year ) {\n\t\t\tvar years = [],\n\t\t\t\ti = -1,\n\t\t\t\trows = [],\n\t\t\t\trenderer = this.props.renderYear || this.renderYear,\n\t\t\t\tselectedDate = this.props.selectedDate,\n\t\t\t\tisValid = this.props.isValidDate || this.alwaysValidDate,\n\t\t\t\tclasses, props, currentYear, isDisabled, noOfDaysInYear, daysInYear, validDay,\n\t\t\t\t// Month and date are irrelevant here because\n\t\t\t\t// we're only interested in the year\n\t\t\t\tirrelevantMonth = 0,\n\t\t\t\tirrelevantDate = 1\n\t\t\t;\n\n\t\t\tyear--;\n\t\t\twhile (i < 11) {\n\t\t\t\tclasses = 'rdtYear';\n\t\t\t\tcurrentYear = this.props.viewDate.clone().set(\n\t\t\t\t\t{ year: year, month: irrelevantMonth, date: irrelevantDate } );\n\n\t\t\t\t// Not sure what 'rdtOld' is for, commenting out for now as it's not working properly\n\t\t\t\t// if ( i === -1 | i === 10 )\n\t\t\t\t\t// classes += ' rdtOld';\n\n\t\t\t\tnoOfDaysInYear = currentYear.endOf( 'year' ).format( 'DDD' );\n\t\t\t\tdaysInYear = Array.from({ length: noOfDaysInYear }, function( e, i ) {\n\t\t\t\t\treturn i + 1;\n\t\t\t\t});\n\n\t\t\t\tvalidDay = daysInYear.find(function( d ) {\n\t\t\t\t\tvar day = currentYear.clone().dayOfYear( d );\n\t\t\t\t\treturn isValid( day );\n\t\t\t\t});\n\n\t\t\t\tisDisabled = ( validDay === undefined );\n\n\t\t\t\tif ( isDisabled )\n\t\t\t\t\tclasses += ' rdtDisabled';\n\n\t\t\t\tif ( selectedDate && selectedDate.year() === year )\n\t\t\t\t\tclasses += ' rdtActive';\n\n\t\t\t\tprops = {\n\t\t\t\t\tkey: year,\n\t\t\t\t\t'data-value': year,\n\t\t\t\t\tclassName: classes\n\t\t\t\t};\n\n\t\t\t\tif ( !isDisabled )\n\t\t\t\t\tprops.onClick = ( this.props.updateOn === 'years' ?\n\t\t\t\t\t\tthis.updateSelectedYear : this.props.setDate('year') );\n\n\t\t\t\tyears.push( renderer( props, year, selectedDate && selectedDate.clone() ));\n\n\t\t\t\tif ( years.length === 4 ) {\n\t\t\t\t\trows.push( DOM.tr({ key: i }, years ) );\n\t\t\t\t\tyears = [];\n\t\t\t\t}\n\n\t\t\t\tyear++;\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\treturn rows;\n\t\t},\n\n\t\tupdateSelectedYear: function( event ) {\n\t\t\tthis.props.updateSelectedDate( event );\n\t\t},\n\n\t\trenderYear: function( props, year ) {\n\t\t\treturn DOM.td( props, year );\n\t\t},\n\n\t\talwaysValidDate: function() {\n\t\t\treturn 1;\n\t\t},\n\n\t  handleClickOutside: function() {\n\t    this.props.handleClickOutside();\n\t  }\n\t}));\n\n\tmodule.exports = DateTimePickerYears;\n\n\n/***/ },\n/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar React = __webpack_require__(3),\n\t\tassign = __webpack_require__(1),\n\t  onClickOutside = __webpack_require__(6)\n\t;\n\n\tvar DOM = React.DOM;\n\tvar DateTimePickerTime = onClickOutside( React.createClass({\n\t\tgetInitialState: function() {\n\t\t\treturn this.calculateState( this.props );\n\t\t},\n\n\t\tcalculateState: function( props ) {\n\t\t\tvar date = props.selectedDate || props.viewDate,\n\t\t\t\tformat = props.timeFormat,\n\t\t\t\tcounters = []\n\t\t\t;\n\n\t\t\tif ( format.toLowerCase().indexOf('h') !== -1 ) {\n\t\t\t\tcounters.push('hours');\n\t\t\t\tif ( format.indexOf('m') !== -1 ) {\n\t\t\t\t\tcounters.push('minutes');\n\t\t\t\t\tif ( format.indexOf('s') !== -1 ) {\n\t\t\t\t\t\tcounters.push('seconds');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar daypart = false;\n\t\t\tif ( this.state !== null && this.props.timeFormat.toLowerCase().indexOf( ' a' ) !== -1 ) {\n\t\t\t\tif ( this.props.timeFormat.indexOf( ' A' ) !== -1 ) {\n\t\t\t\t\tdaypart = ( this.state.hours >= 12 ) ? 'PM' : 'AM';\n\t\t\t\t} else {\n\t\t\t\t\tdaypart = ( this.state.hours >= 12 ) ? 'pm' : 'am';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\thours: date.format( 'H' ),\n\t\t\t\tminutes: date.format( 'mm' ),\n\t\t\t\tseconds: date.format( 'ss' ),\n\t\t\t\tmilliseconds: date.format( 'SSS' ),\n\t\t\t\tdaypart: daypart,\n\t\t\t\tcounters: counters\n\t\t\t};\n\t\t},\n\n\t\trenderCounter: function( type ) {\n\t\t\tif ( type !== 'daypart' ) {\n\t\t\t\tvar value = this.state[ type ];\n\t\t\t\tif ( type === 'hours' && this.props.timeFormat.toLowerCase().indexOf( ' a' ) !== -1 ) {\n\t\t\t\t\tvalue = ( value - 1 ) % 12 + 1;\n\n\t\t\t\t\tif ( value === 0 ) {\n\t\t\t\t\t\tvalue = 12;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn DOM.div({ key: type, className: 'rdtCounter' }, [\n\t\t\t\t\tDOM.span({ key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'increase', type ) }, '▲' ),\n\t\t\t\t\tDOM.div({ key: 'c', className: 'rdtCount' }, value ),\n\t\t\t\t\tDOM.span({ key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'decrease', type ) }, '▼' )\n\t\t\t\t]);\n\t\t\t}\n\t\t\treturn '';\n\t\t},\n\n\t\trenderDayPart: function() {\n\t\t\treturn DOM.div({ key: 'dayPart', className: 'rdtCounter' }, [\n\t\t\t\tDOM.span({ key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▲' ),\n\t\t\t\tDOM.div({ key: this.state.daypart, className: 'rdtCount' }, this.state.daypart ),\n\t\t\t\tDOM.span({ key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▼' )\n\t\t\t]);\n\t\t},\n\n\t\trender: function() {\n\t\t\tvar me = this,\n\t\t\t\tcounters = []\n\t\t\t;\n\n\t\t\tthis.state.counters.forEach( function( c ) {\n\t\t\t\tif ( counters.length )\n\t\t\t\t\tcounters.push( DOM.div({ key: 'sep' + counters.length, className: 'rdtCounterSeparator' }, ':' ) );\n\t\t\t\tcounters.push( me.renderCounter( c ) );\n\t\t\t});\n\n\t\t\tif ( this.state.daypart !== false ) {\n\t\t\t\tcounters.push( me.renderDayPart() );\n\t\t\t}\n\n\t\t\tif ( this.state.counters.length === 3 && this.props.timeFormat.indexOf( 'S' ) !== -1 ) {\n\t\t\t\tcounters.push( DOM.div({ className: 'rdtCounterSeparator', key: 'sep5' }, ':' ) );\n\t\t\t\tcounters.push(\n\t\t\t\t\tDOM.div({ className: 'rdtCounter rdtMilli', key: 'm' },\n\t\t\t\t\t\tDOM.input({ value: this.state.milliseconds, type: 'text', onChange: this.updateMilli } )\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn DOM.div({ className: 'rdtTime' },\n\t\t\t\tDOM.table({}, [\n\t\t\t\t\tthis.renderHeader(),\n\t\t\t\t\tDOM.tbody({ key: 'b'}, DOM.tr({}, DOM.td({},\n\t\t\t\t\t\tDOM.div({ className: 'rdtCounters' }, counters )\n\t\t\t\t\t)))\n\t\t\t\t])\n\t\t\t);\n\t\t},\n\n\t\tcomponentWillMount: function() {\n\t\t\tvar me = this;\n\t\t\tme.timeConstraints = {\n\t\t\t\thours: {\n\t\t\t\t\tmin: 0,\n\t\t\t\t\tmax: 23,\n\t\t\t\t\tstep: 1\n\t\t\t\t},\n\t\t\t\tminutes: {\n\t\t\t\t\tmin: 0,\n\t\t\t\t\tmax: 59,\n\t\t\t\t\tstep: 1\n\t\t\t\t},\n\t\t\t\tseconds: {\n\t\t\t\t\tmin: 0,\n\t\t\t\t\tmax: 59,\n\t\t\t\t\tstep: 1\n\t\t\t\t},\n\t\t\t\tmilliseconds: {\n\t\t\t\t\tmin: 0,\n\t\t\t\t\tmax: 999,\n\t\t\t\t\tstep: 1\n\t\t\t\t}\n\t\t\t};\n\t\t\t['hours', 'minutes', 'seconds', 'milliseconds'].forEach( function( type ) {\n\t\t\t\tassign(me.timeConstraints[ type ], me.props.timeConstraints[ type ]);\n\t\t\t});\n\t\t\tthis.setState( this.calculateState( this.props ) );\n\t\t},\n\n\t\tcomponentWillReceiveProps: function( nextProps ) {\n\t\t\tthis.setState( this.calculateState( nextProps ) );\n\t\t},\n\n\t\tupdateMilli: function( e ) {\n\t\t\tvar milli = parseInt( e.target.value, 10 );\n\t\t\tif ( milli === e.target.value && milli >= 0 && milli < 1000 ) {\n\t\t\t\tthis.props.setTime( 'milliseconds', milli );\n\t\t\t\tthis.setState( { milliseconds: milli } );\n\t\t\t}\n\t\t},\n\n\t\trenderHeader: function() {\n\t\t\tif ( !this.props.dateFormat )\n\t\t\t\treturn null;\n\n\t\t\tvar date = this.props.selectedDate || this.props.viewDate;\n\t\t\treturn DOM.thead({ key: 'h' }, DOM.tr({},\n\t\t\t\tDOM.th({ className: 'rdtSwitch', colSpan: 4, onClick: this.props.showView( 'days' ) }, date.format( this.props.dateFormat ) )\n\t\t\t));\n\t\t},\n\n\t\tonStartClicking: function( action, type ) {\n\t\t\tvar me = this;\n\n\t\t\treturn function() {\n\t\t\t\tvar update = {};\n\t\t\t\tupdate[ type ] = me[ action ]( type );\n\t\t\t\tme.setState( update );\n\n\t\t\t\tme.timer = setTimeout( function() {\n\t\t\t\t\tme.increaseTimer = setInterval( function() {\n\t\t\t\t\t\tupdate[ type ] = me[ action ]( type );\n\t\t\t\t\t\tme.setState( update );\n\t\t\t\t\t}, 70);\n\t\t\t\t}, 500);\n\n\t\t\t\tme.mouseUpListener = function() {\n\t\t\t\t\tclearTimeout( me.timer );\n\t\t\t\t\tclearInterval( me.increaseTimer );\n\t\t\t\t\tme.props.setTime( type, me.state[ type ] );\n\t\t\t\t\tdocument.body.removeEventListener( 'mouseup', me.mouseUpListener );\n\t\t\t\t};\n\n\t\t\t\tdocument.body.addEventListener( 'mouseup', me.mouseUpListener );\n\t\t\t};\n\t\t},\n\n\t\tpadValues: {\n\t\t\thours: 1,\n\t\t\tminutes: 2,\n\t\t\tseconds: 2,\n\t\t\tmilliseconds: 3\n\t\t},\n\n\t\ttoggleDayPart: function( type ) { // type is always 'hours'\n\t\t\tvar value = parseInt( this.state[ type ], 10) + 12;\n\t\t\tif ( value > this.timeConstraints[ type ].max )\n\t\t\t\tvalue = this.timeConstraints[ type ].min + ( value - ( this.timeConstraints[ type ].max + 1 ) );\n\t\t\treturn this.pad( type, value );\n\t\t},\n\n\t\tincrease: function( type ) {\n\t\t\tvar value = parseInt( this.state[ type ], 10) + this.timeConstraints[ type ].step;\n\t\t\tif ( value > this.timeConstraints[ type ].max )\n\t\t\t\tvalue = this.timeConstraints[ type ].min + ( value - ( this.timeConstraints[ type ].max + 1 ) );\n\t\t\treturn this.pad( type, value );\n\t\t},\n\n\t\tdecrease: function( type ) {\n\t\t\tvar value = parseInt( this.state[ type ], 10) - this.timeConstraints[ type ].step;\n\t\t\tif ( value < this.timeConstraints[ type ].min )\n\t\t\t\tvalue = this.timeConstraints[ type ].max + 1 - ( this.timeConstraints[ type ].min - value );\n\t\t\treturn this.pad( type, value );\n\t\t},\n\n\t\tpad: function( type, value ) {\n\t\t\tvar str = value + '';\n\t\t\twhile ( str.length < this.padValues[ type ] )\n\t\t\t\tstr = '0' + str;\n\t\t\treturn str;\n\t\t},\n\n\t  handleClickOutside: function() {\n\t    this.props.handleClickOutside();\n\t  }\n\t}));\n\n\tmodule.exports = DateTimePickerTime;\n\n\n/***/ }\n/******/ ])\n});\n;\n","'use strict';\n\nvar assign = require('object-assign'),\n\tmoment = require('moment'),\n\tReact = require('react'),\n\tCalendarContainer = require('./src/CalendarContainer')\n;\n\nvar TYPES = React.PropTypes;\nvar Datetime = React.createClass({\n\tpropTypes: {\n\t\t// value: TYPES.object | TYPES.string,\n\t\t// defaultValue: TYPES.object | TYPES.string,\n\t\tonFocus: TYPES.func,\n\t\tonBlur: TYPES.func,\n\t\tonChange: TYPES.func,\n\t\tlocale: TYPES.string,\n\t\tutc: TYPES.bool,\n\t\tinput: TYPES.bool,\n\t\t// dateFormat: TYPES.string | TYPES.bool,\n\t\t// timeFormat: TYPES.string | TYPES.bool,\n\t\tinputProps: TYPES.object,\n\t\ttimeConstraints: TYPES.object,\n\t\tviewMode: TYPES.oneOf(['years', 'months', 'days', 'time']),\n\t\tisValidDate: TYPES.func,\n\t\topen: TYPES.bool,\n\t\tstrictParsing: TYPES.bool,\n\t\tcloseOnSelect: TYPES.bool,\n\t\tcloseOnTab: TYPES.bool\n\t},\n\n\tgetDefaultProps: function() {\n\t\tvar nof = function() {};\n\t\treturn {\n\t\t\tclassName: '',\n\t\t\tdefaultValue: '',\n\t\t\tinputProps: {},\n\t\t\tinput: true,\n\t\t\tonFocus: nof,\n\t\t\tonBlur: nof,\n\t\t\tonChange: nof,\n\t\t\ttimeFormat: true,\n\t\t\ttimeConstraints: {},\n\t\t\tdateFormat: true,\n\t\t\tstrictParsing: true,\n\t\t\tcloseOnSelect: false,\n\t\t\tcloseOnTab: true,\n\t\t\tutc: false\n\t\t};\n\t},\n\n\tgetInitialState: function() {\n\t\tvar state = this.getStateFromProps( this.props );\n\n\t\tif ( state.open === undefined )\n\t\t\tstate.open = !this.props.input;\n\n\t\tstate.currentView = this.props.dateFormat ? (this.props.viewMode || state.updateOn || 'days') : 'time';\n\n\t\treturn state;\n\t},\n\n\tgetStateFromProps: function( props ) {\n\t\tvar formats = this.getFormats( props ),\n\t\t\tdate = props.value || props.defaultValue,\n\t\t\tselectedDate, viewDate, updateOn, inputValue\n\t\t;\n\n\t\tif ( date && typeof date === 'string' )\n\t\t\tselectedDate = this.localMoment( date, formats.datetime );\n\t\telse if ( date )\n\t\t\tselectedDate = this.localMoment( date );\n\n\t\tif ( selectedDate && !selectedDate.isValid() )\n\t\t\tselectedDate = null;\n\n\t\tviewDate = selectedDate ?\n\t\t\tselectedDate.clone().startOf('month') :\n\t\t\tthis.localMoment().startOf('month')\n\t\t;\n\n\t\tupdateOn = this.getUpdateOn(formats);\n\n\t\tif ( selectedDate )\n\t\t\tinputValue = selectedDate.format(formats.datetime);\n\t\telse if ( date.isValid && !date.isValid() )\n\t\t\tinputValue = '';\n\t\telse\n\t\t\tinputValue = date || '';\n\n\t\treturn {\n\t\t\tupdateOn: updateOn,\n\t\t\tinputFormat: formats.datetime,\n\t\t\tviewDate: viewDate,\n\t\t\tselectedDate: selectedDate,\n\t\t\tinputValue: inputValue,\n\t\t\topen: props.open\n\t\t};\n\t},\n\n\tgetUpdateOn: function( formats ) {\n\t\tif ( formats.date.match(/[lLD]/) ) {\n\t\t\treturn 'days';\n\t\t}\n\t\telse if ( formats.date.indexOf('M') !== -1 ) {\n\t\t\treturn 'months';\n\t\t}\n\t\telse if ( formats.date.indexOf('Y') !== -1 ) {\n\t\t\treturn 'years';\n\t\t}\n\n\t\treturn 'days';\n\t},\n\n\tgetFormats: function( props ) {\n\t\tvar formats = {\n\t\t\t\tdate: props.dateFormat || '',\n\t\t\t\ttime: props.timeFormat || ''\n\t\t\t},\n\t\t\tlocale = this.localMoment( props.date, null, props ).localeData()\n\t\t;\n\n\t\tif ( formats.date === true ) {\n\t\t\tformats.date = locale.longDateFormat('L');\n\t\t}\n\t\telse if ( this.getUpdateOn(formats) !== 'days' ) {\n\t\t\tformats.time = '';\n\t\t}\n\n\t\tif ( formats.time === true ) {\n\t\t\tformats.time = locale.longDateFormat('LT');\n\t\t}\n\n\t\tformats.datetime = formats.date && formats.time ?\n\t\t\tformats.date + ' ' + formats.time :\n\t\t\tformats.date || formats.time\n\t\t;\n\n\t\treturn formats;\n\t},\n\n\tcomponentWillReceiveProps: function( nextProps ) {\n\t\tvar formats = this.getFormats( nextProps ),\n\t\t\tupdatedState = {}\n\t\t;\n\n\t\tif ( nextProps.value !== this.props.value ||\n\t\t\tformats.datetime !== this.getFormats( this.props ).datetime ) {\n\t\t\tupdatedState = this.getStateFromProps( nextProps );\n\t\t}\n\n\t\tif ( updatedState.open === undefined ) {\n\t\t\tif ( this.props.closeOnSelect && this.state.currentView !== 'time' ) {\n\t\t\t\tupdatedState.open = false;\n\t\t\t} else {\n\t\t\t\tupdatedState.open = this.state.open;\n\t\t\t}\n\t\t}\n\n\t\tif ( nextProps.viewMode !== this.props.viewMode ) {\n\t\t\tupdatedState.currentView = nextProps.viewMode;\n\t\t}\n\n\t\tif ( nextProps.locale !== this.props.locale ) {\n\t\t\tif ( this.state.viewDate ) {\n\t\t\t\tvar updatedViewDate = this.state.viewDate.clone().locale( nextProps.locale );\n\t\t\t\tupdatedState.viewDate = updatedViewDate;\n\t\t\t}\n\t\t\tif ( this.state.selectedDate ) {\n\t\t\t\tvar updatedSelectedDate = this.state.selectedDate.clone().locale( nextProps.locale );\n\t\t\t\tupdatedState.selectedDate = updatedSelectedDate;\n\t\t\t\tupdatedState.inputValue = updatedSelectedDate.format( formats.datetime );\n\t\t\t}\n\t\t}\n\n\t\tif ( nextProps.utc !== this.props.utc ) {\n\t\t\tif ( nextProps.utc ) {\n\t\t\t\tif ( this.state.viewDate )\n\t\t\t\t\tupdatedState.viewDate = this.state.viewDate.clone().utc();\n\t\t\t\tif ( this.state.selectedDate ) {\n\t\t\t\t\tupdatedState.selectedDate = this.state.selectedDate.clone().utc();\n\t\t\t\t\tupdatedState.inputValue = updatedState.selectedDate.format( formats.datetime );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ( this.state.viewDate )\n\t\t\t\t\tupdatedState.viewDate = this.state.viewDate.clone().local();\n\t\t\t\tif ( this.state.selectedDate ) {\n\t\t\t\t\tupdatedState.selectedDate = this.state.selectedDate.clone().local();\n\t\t\t\t\tupdatedState.inputValue = updatedState.selectedDate.format(formats.datetime);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.setState( updatedState );\n\t},\n\n\tonInputChange: function( e ) {\n\t\tvar value = e.target === null ? e : e.target.value,\n\t\t\tlocalMoment = this.localMoment( value, this.state.inputFormat ),\n\t\t\tupdate = { inputValue: value }\n\t\t;\n\n\t\tif ( localMoment.isValid() && !this.props.value ) {\n\t\t\tupdate.selectedDate = localMoment;\n\t\t\tupdate.viewDate = localMoment.clone().startOf('month');\n\t\t}\n\t\telse {\n\t\t\tupdate.selectedDate = null;\n\t\t}\n\n\t\treturn this.setState( update, function() {\n\t\t\treturn this.props.onChange( localMoment.isValid() ? localMoment : this.state.inputValue );\n\t\t});\n\t},\n\n\tonInputKey: function( e ) {\n\t\tif ( e.which === 9 && this.props.closeOnTab ) {\n\t\t\tthis.closeCalendar();\n\t\t}\n\t},\n\n\tshowView: function( view ) {\n\t\tvar me = this;\n\t\treturn function() {\n\t\t\tme.setState({ currentView: view });\n\t\t};\n\t},\n\n\tsetDate: function( type ) {\n\t\tvar me = this,\n\t\t\tnextViews = {\n\t\t\t\tmonth: 'days',\n\t\t\t\tyear: 'months'\n\t\t\t}\n\t\t;\n\t\treturn function( e ) {\n\t\t\tme.setState({\n\t\t\t\tviewDate: me.state.viewDate.clone()[ type ]( parseInt(e.target.getAttribute('data-value'), 10) ).startOf( type ),\n\t\t\t\tcurrentView: nextViews[ type ]\n\t\t\t});\n\t\t};\n\t},\n\n\taddTime: function( amount, type, toSelected ) {\n\t\treturn this.updateTime( 'add', amount, type, toSelected );\n\t},\n\n\tsubtractTime: function( amount, type, toSelected ) {\n\t\treturn this.updateTime( 'subtract', amount, type, toSelected );\n\t},\n\n\tupdateTime: function( op, amount, type, toSelected ) {\n\t\tvar me = this;\n\n\t\treturn function() {\n\t\t\tvar update = {},\n\t\t\t\tdate = toSelected ? 'selectedDate' : 'viewDate'\n\t\t\t;\n\n\t\t\tupdate[ date ] = me.state[ date ].clone()[ op ]( amount, type );\n\n\t\t\tme.setState( update );\n\t\t};\n\t},\n\n\tallowedSetTime: ['hours', 'minutes', 'seconds', 'milliseconds'],\n\tsetTime: function( type, value ) {\n\t\tvar index = this.allowedSetTime.indexOf( type ) + 1,\n\t\t\tstate = this.state,\n\t\t\tdate = (state.selectedDate || state.viewDate).clone(),\n\t\t\tnextType\n\t\t;\n\n\t\t// It is needed to set all the time properties\n\t\t// to not to reset the time\n\t\tdate[ type ]( value );\n\t\tfor (; index < this.allowedSetTime.length; index++) {\n\t\t\tnextType = this.allowedSetTime[index];\n\t\t\tdate[ nextType ]( date[nextType]() );\n\t\t}\n\n\t\tif ( !this.props.value ) {\n\t\t\tthis.setState({\n\t\t\t\tselectedDate: date,\n\t\t\t\tinputValue: date.format( state.inputFormat )\n\t\t\t});\n\t\t}\n\t\tthis.props.onChange( date );\n\t},\n\n\tupdateSelectedDate: function( e, close ) {\n\t\tvar target = e.target,\n\t\t\tmodifier = 0,\n\t\t\tviewDate = this.state.viewDate,\n\t\t\tcurrentDate = this.state.selectedDate || viewDate,\n\t\t\tdate\n    ;\n\n\t\tif (target.className.indexOf('rdtDay') !== -1) {\n\t\t\tif (target.className.indexOf('rdtNew') !== -1)\n\t\t\t\tmodifier = 1;\n\t\t\telse if (target.className.indexOf('rdtOld') !== -1)\n\t\t\t\tmodifier = -1;\n\n\t\t\tdate = viewDate.clone()\n\t\t\t\t.month( viewDate.month() + modifier )\n\t\t\t\t.date( parseInt( target.getAttribute('data-value'), 10 ) );\n\t\t} else if (target.className.indexOf('rdtMonth') !== -1) {\n\t\t\tdate = viewDate.clone()\n\t\t\t\t.month( parseInt( target.getAttribute('data-value'), 10 ) )\n\t\t\t\t.date( currentDate.date() );\n\t\t} else if (target.className.indexOf('rdtYear') !== -1) {\n\t\t\tdate = viewDate.clone()\n\t\t\t\t.month( currentDate.month() )\n\t\t\t\t.date( currentDate.date() )\n\t\t\t\t.year( parseInt( target.getAttribute('data-value'), 10 ) );\n\t\t}\n\n\t\tdate.hours( currentDate.hours() )\n\t\t\t.minutes( currentDate.minutes() )\n\t\t\t.seconds( currentDate.seconds() )\n\t\t\t.milliseconds( currentDate.milliseconds() );\n\n\t\tif ( !this.props.value ) {\n\t\t\tvar open = !( this.props.closeOnSelect && close );\n\t\t\tif ( !open ) {\n\t\t\t\tthis.props.onBlur( date );\n\t\t\t}\n\n\t\t\tthis.setState({\n\t\t\t\tselectedDate: date,\n\t\t\t\tviewDate: date.clone().startOf('month'),\n\t\t\t\tinputValue: date.format( this.state.inputFormat ),\n\t\t\t\topen: open\n\t\t\t});\n\t\t} else {\n\t\t\tif ( this.props.closeOnSelect && close ) {\n\t\t\t\tthis.closeCalendar();\n\t\t\t}\n\t\t}\n\n\t\tthis.props.onChange( date );\n\t},\n\n\topenCalendar: function() {\n\t\tif (!this.state.open) {\n\t\t\tthis.setState({ open: true }, function() {\n\t\t\t\tthis.props.onFocus();\n\t\t\t});\n\t\t}\n\t},\n\n\tcloseCalendar: function() {\n\t\tthis.setState({ open: false }, function () {\n\t\t\tthis.props.onBlur( this.state.selectedDate || this.state.inputValue );\n\t\t});\n\t},\n\n\thandleClickOutside: function() {\n\t\tif ( this.props.input && this.state.open && !this.props.open ) {\n\t\t\tthis.setState({ open: false }, function() {\n\t\t\t\tthis.props.onBlur( this.state.selectedDate || this.state.inputValue );\n\t\t\t});\n\t\t}\n\t},\n\n\tlocalMoment: function( date, format, props ) {\n\t\tprops = props || this.props;\n\t\tvar momentFn = props.utc ? moment.utc : moment;\n\t\tvar m = momentFn( date, format, props.strictParsing );\n\t\tif ( props.locale )\n\t\t\tm.locale( props.locale );\n\t\treturn m;\n\t},\n\n\tcomponentProps: {\n\t\tfromProps: ['value', 'isValidDate', 'renderDay', 'renderMonth', 'renderYear', 'timeConstraints'],\n\t\tfromState: ['viewDate', 'selectedDate', 'updateOn'],\n\t\tfromThis: ['setDate', 'setTime', 'showView', 'addTime', 'subtractTime', 'updateSelectedDate', 'localMoment', 'handleClickOutside']\n\t},\n\n\tgetComponentProps: function() {\n\t\tvar me = this,\n\t\t\tformats = this.getFormats( this.props ),\n\t\t\tprops = {dateFormat: formats.date, timeFormat: formats.time}\n\t\t;\n\n\t\tthis.componentProps.fromProps.forEach( function( name ) {\n\t\t\tprops[ name ] = me.props[ name ];\n\t\t});\n\t\tthis.componentProps.fromState.forEach( function( name ) {\n\t\t\tprops[ name ] = me.state[ name ];\n\t\t});\n\t\tthis.componentProps.fromThis.forEach( function( name ) {\n\t\t\tprops[ name ] = me[ name ];\n\t\t});\n\n\t\treturn props;\n\t},\n\n\trender: function() {\n\t\tvar DOM = React.DOM,\n\t\t\tclassName = 'rdt' + (this.props.className ?\n                  ( Array.isArray( this.props.className ) ?\n                  ' ' + this.props.className.join( ' ' ) : ' ' + this.props.className) : ''),\n\t\t\tchildren = []\n\t\t;\n\n\t\tif ( this.props.input ) {\n\t\t\tchildren = [ DOM.input( assign({\n\t\t\t\tkey: 'i',\n\t\t\t\ttype: 'text',\n\t\t\t\tclassName: 'form-control',\n\t\t\t\tonFocus: this.openCalendar,\n\t\t\t\tonChange: this.onInputChange,\n\t\t\t\tonKeyDown: this.onInputKey,\n\t\t\t\tvalue: this.state.inputValue\n\t\t\t}, this.props.inputProps ))];\n\t\t} else {\n\t\t\tclassName += ' rdtStatic';\n\t\t}\n\n\t\tif ( this.state.open )\n\t\t\tclassName += ' rdtOpen';\n\n\t\treturn DOM.div({className: className}, children.concat(\n\t\t\tDOM.div(\n\t\t\t\t{ key: 'dt', className: 'rdtPicker' },\n\t\t\t\tReact.createElement( CalendarContainer, {view: this.state.currentView, viewProps: this.getComponentProps(), onClickOutside: this.handleClickOutside })\n\t\t\t)\n\t\t));\n\t}\n});\n\n// Make moment accessible through the Datetime class\nDatetime.moment = moment;\n\nmodule.exports = Datetime;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Datetime.js\n// module id = 0\n// module chunks = 0","'use strict';\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction ToObject(val) {\n\tif (val == null) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction ownEnumerableKeys(obj) {\n\tvar keys = Object.getOwnPropertyNames(obj);\n\n\tif (Object.getOwnPropertySymbols) {\n\t\tkeys = keys.concat(Object.getOwnPropertySymbols(obj));\n\t}\n\n\treturn keys.filter(function (key) {\n\t\treturn propIsEnumerable.call(obj, key);\n\t});\n}\n\nmodule.exports = Object.assign || function (target, source) {\n\tvar from;\n\tvar keys;\n\tvar to = ToObject(target);\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = arguments[s];\n\t\tkeys = ownEnumerableKeys(Object(from));\n\n\t\tfor (var i = 0; i < keys.length; i++) {\n\t\t\tto[keys[i]] = from[keys[i]];\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object-assign/index.js\n// module id = 1\n// module chunks = 0","var React = require('react'),\n  DaysView = require('./DaysView'),\n  MonthsView = require('./MonthsView'),\n  YearsView = require('./YearsView'),\n  TimeView = require('./TimeView')\n;\n\nvar CalendarContainer = React.createClass({\n\tviewComponents: {\n\t\tdays: DaysView,\n\t\tmonths: MonthsView,\n\t\tyears: YearsView,\n\t\ttime: TimeView\n\t},\n\n  render: function() {\n    return React.createElement( this.viewComponents[ this.props.view ], this.props.viewProps );\n  }\n});\n\nmodule.exports = CalendarContainer;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/CalendarContainer.js\n// module id = 4\n// module chunks = 0","'use strict';\n\nvar React = require('react'),\n\tmoment = require('moment'),\n  onClickOutside = require('react-onclickoutside')\n;\n\nvar DOM = React.DOM;\nvar DateTimePickerDays = onClickOutside( React.createClass({\n\trender: function() {\n\t\tvar footer = this.renderFooter(),\n\t\t\tdate = this.props.viewDate,\n\t\t\tlocale = date.localeData(),\n\t\t\ttableChildren\n\t\t;\n\n\t\ttableChildren = [\n\t\t\tDOM.thead({ key: 'th' }, [\n\t\t\t\tDOM.tr({ key: 'h' }, [\n\t\t\t\t\tDOM.th({ key: 'p', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 1, 'months' )}, '‹' )),\n\t\t\t\t\tDOM.th({ key: 's', className: 'rdtSwitch', onClick: this.props.showView( 'months' ), colSpan: 5, 'data-value': this.props.viewDate.month() }, locale.months( date ) + ' ' + date.year() ),\n\t\t\t\t\tDOM.th({ key: 'n', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 1, 'months' )}, '›' ))\n\t\t\t\t]),\n\t\t\t\tDOM.tr({ key: 'd'}, this.getDaysOfWeek( locale ).map( function( day, index ) { return DOM.th({ key: day + index, className: 'dow'}, day ); }) )\n\t\t\t]),\n\t\t\tDOM.tbody({ key: 'tb' }, this.renderDays())\n\t\t];\n\n\t\tif ( footer )\n\t\t\ttableChildren.push( footer );\n\n\t\treturn DOM.div({ className: 'rdtDays' },\n\t\t\tDOM.table({}, tableChildren )\n\t\t);\n\t},\n\n\t/**\n\t * Get a list of the days of the week\n\t * depending on the current locale\n\t * @return {array} A list with the shortname of the days\n\t */\n\tgetDaysOfWeek: function( locale ) {\n\t\tvar days = locale._weekdaysMin,\n\t\t\tfirst = locale.firstDayOfWeek(),\n\t\t\tdow = [],\n\t\t\ti = 0\n\t\t;\n\n\t\tdays.forEach( function( day ) {\n\t\t\tdow[ (7 + ( i++ ) - first) % 7 ] = day;\n\t\t});\n\n\t\treturn dow;\n\t},\n\n\trenderDays: function() {\n\t\tvar date = this.props.viewDate,\n\t\t\tselected = this.props.selectedDate && this.props.selectedDate.clone(),\n\t\t\tprevMonth = date.clone().subtract( 1, 'months' ),\n\t\t\tcurrentYear = date.year(),\n\t\t\tcurrentMonth = date.month(),\n\t\t\tweeks = [],\n\t\t\tdays = [],\n\t\t\trenderer = this.props.renderDay || this.renderDay,\n\t\t\tisValid = this.props.isValidDate || this.alwaysValidDate,\n\t\t\tclasses, isDisabled, dayProps, currentDate\n\t\t;\n\n\t\t// Go to the last week of the previous month\n\t\tprevMonth.date( prevMonth.daysInMonth() ).startOf( 'week' );\n\t\tvar lastDay = prevMonth.clone().add( 42, 'd' );\n\n\t\twhile ( prevMonth.isBefore( lastDay ) ) {\n\t\t\tclasses = 'rdtDay';\n\t\t\tcurrentDate = prevMonth.clone();\n\n\t\t\tif ( ( prevMonth.year() === currentYear && prevMonth.month() < currentMonth ) || ( prevMonth.year() < currentYear ) )\n\t\t\t\tclasses += ' rdtOld';\n\t\t\telse if ( ( prevMonth.year() === currentYear && prevMonth.month() > currentMonth ) || ( prevMonth.year() > currentYear ) )\n\t\t\t\tclasses += ' rdtNew';\n\n\t\t\tif ( selected && prevMonth.isSame( selected, 'day' ) )\n\t\t\t\tclasses += ' rdtActive';\n\n\t\t\tif ( prevMonth.isSame( moment(), 'day' ) )\n\t\t\t\tclasses += ' rdtToday';\n\n\t\t\tisDisabled = !isValid( currentDate, selected );\n\t\t\tif ( isDisabled )\n\t\t\t\tclasses += ' rdtDisabled';\n\n\t\t\tdayProps = {\n\t\t\t\tkey: prevMonth.format( 'M_D' ),\n\t\t\t\t'data-value': prevMonth.date(),\n\t\t\t\tclassName: classes\n\t\t\t};\n\n\t\t\tif ( !isDisabled )\n\t\t\t\tdayProps.onClick = this.updateSelectedDate;\n\n\t\t\tdays.push( renderer( dayProps, currentDate, selected ) );\n\n\t\t\tif ( days.length === 7 ) {\n\t\t\t\tweeks.push( DOM.tr({ key: prevMonth.format( 'M_D' )}, days ) );\n\t\t\t\tdays = [];\n\t\t\t}\n\n\t\t\tprevMonth.add( 1, 'd' );\n\t\t}\n\n\t\treturn weeks;\n\t},\n\n\tupdateSelectedDate: function( event ) {\n\t\tthis.props.updateSelectedDate( event, true );\n\t},\n\n\trenderDay: function( props, currentDate ) {\n\t\treturn DOM.td( props, currentDate.date() );\n\t},\n\n\trenderFooter: function() {\n\t\tif ( !this.props.timeFormat )\n\t\t\treturn '';\n\n\t\tvar date = this.props.selectedDate || this.props.viewDate;\n\n\t\treturn DOM.tfoot({ key: 'tf'},\n\t\t\tDOM.tr({},\n\t\t\t\tDOM.td({ onClick: this.props.showView( 'time' ), colSpan: 7, className: 'rdtTimeToggle' }, date.format( this.props.timeFormat ))\n\t\t\t)\n\t\t);\n\t},\n\n\talwaysValidDate: function() {\n\t\treturn 1;\n\t},\n\n  handleClickOutside: function() {\n    this.props.handleClickOutside();\n  }\n}));\n\nmodule.exports = DateTimePickerDays;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/DaysView.js\n// module id = 5\n// module chunks = 0","/**\n * A higher-order-component for handling onClickOutside for React components.\n */\n(function(root) {\n\n  // administrative\n  var registeredComponents = [];\n  var handlers = [];\n  var IGNORE_CLASS = 'ignore-react-onclickoutside';\n  var DEFAULT_EVENTS = ['mousedown', 'touchstart'];\n\n  /**\n   * Check whether some DOM node is our Component's node.\n   */\n  var isNodeFound = function(current, componentNode, ignoreClass) {\n    if (current === componentNode) {\n      return true;\n    }\n    // SVG <use/> elements do not technically reside in the rendered DOM, so\n    // they do not have classList directly, but they offer a link to their\n    // corresponding element, which can have classList. This extra check is for\n    // that case.\n    // See: http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGUseElement\n    // Discussion: https://github.com/Pomax/react-onclickoutside/pull/17\n    if (current.correspondingElement) {\n      return current.correspondingElement.classList.contains(ignoreClass);\n    }\n    return current.classList.contains(ignoreClass);\n  };\n\n  /**\n   * Try to find our node in a hierarchy of nodes, returning the document\n   * node as highest noode if our node is not found in the path up.\n   */\n  var findHighest = function(current, componentNode, ignoreClass) {\n    if (current === componentNode) {\n      return true;\n    }\n\n    // If source=local then this event came from 'somewhere'\n    // inside and should be ignored. We could handle this with\n    // a layered approach, too, but that requires going back to\n    // thinking in terms of Dom node nesting, running counter\n    // to React's 'you shouldn't care about the DOM' philosophy.\n    while(current.parentNode) {\n      if (isNodeFound(current, componentNode, ignoreClass)) {\n        return true;\n      }\n      current = current.parentNode;\n    }\n    return current;\n  };\n\n  /**\n   * Check if the browser scrollbar was clicked\n   */\n  var clickedScrollbar = function(evt) {\n    return document.documentElement.clientWidth <= evt.clientX;\n  };\n\n  /**\n   * Generate the event handler that checks whether a clicked DOM node\n   * is inside of, or lives outside of, our Component's node tree.\n   */\n  var generateOutsideCheck = function(componentNode, componentInstance, eventHandler, ignoreClass, excludeScrollbar, preventDefault, stopPropagation) {\n    return function(evt) {\n      if (preventDefault) {\n        evt.preventDefault();\n      }\n      if (stopPropagation) {\n        evt.stopPropagation();\n      }\n      var current = evt.target;\n      if((excludeScrollbar && clickedScrollbar(evt)) || (findHighest(current, componentNode, ignoreClass) !== document)) {\n        return;\n      }\n      eventHandler(evt);\n    };\n  };\n\n  /**\n   * This function generates the HOC function that you'll use\n   * in order to impart onOutsideClick listening to an\n   * arbitrary component. It gets called at the end of the\n   * bootstrapping code to yield an instance of the\n   * onClickOutsideHOC function defined inside setupHOC().\n   */\n  function setupHOC(root, React, ReactDOM) {\n\n    // The actual Component-wrapping HOC:\n    return function onClickOutsideHOC(Component, config) {\n      var wrapComponentWithOnClickOutsideHandling = React.createClass({\n        statics: {\n          /**\n           * Access the wrapped Component's class.\n           */\n          getClass: function() {\n            if (Component.getClass) {\n              return Component.getClass();\n            }\n            return Component;\n          }\n        },\n\n        /**\n         * Access the wrapped Component's instance.\n         */\n        getInstance: function() {\n          return Component.prototype.isReactComponent ? this.refs.instance : this;\n        },\n\n        // this is given meaning in componentDidMount\n        __outsideClickHandler: function() {},\n\n        /**\n         * Add click listeners to the current document,\n         * linked to this component's state.\n         */\n        componentDidMount: function() {\n          // If we are in an environment without a DOM such\n          // as shallow rendering or snapshots then we exit\n          // early to prevent any unhandled errors being thrown.\n          if (typeof document === 'undefined' || !document.createElement){\n            return;\n          }\n\n          var instance = this.getInstance();\n          var clickOutsideHandler;\n\n          if(config && typeof config.handleClickOutside === 'function') {\n            clickOutsideHandler = config.handleClickOutside(instance);\n            if(typeof clickOutsideHandler !== 'function') {\n              throw new Error('Component lacks a function for processing outside click events specified by the handleClickOutside config option.');\n            }\n          } else if(typeof instance.handleClickOutside === 'function') {\n            if (React.Component.prototype.isPrototypeOf(instance)) {\n              clickOutsideHandler = instance.handleClickOutside.bind(instance);\n            } else {\n              clickOutsideHandler = instance.handleClickOutside;\n            }\n          } else if(typeof instance.props.handleClickOutside === 'function') {\n            clickOutsideHandler = instance.props.handleClickOutside;\n          } else {\n            throw new Error('Component lacks a handleClickOutside(event) function for processing outside click events.');\n          }\n\n          var componentNode = ReactDOM.findDOMNode(instance);\n          if (componentNode === null) {\n            console.warn('Antipattern warning: there was no DOM node associated with the component that is being wrapped by outsideClick.');\n            console.warn([\n              'This is typically caused by having a component that starts life with a render function that',\n              'returns `null` (due to a state or props value), so that the component \\'exist\\' in the React',\n              'chain of components, but not in the DOM.\\n\\nInstead, you need to refactor your code so that the',\n              'decision of whether or not to show your component is handled by the parent, in their render()',\n              'function.\\n\\nIn code, rather than:\\n\\n  A{render(){return check? <.../> : null;}\\n  B{render(){<A check=... />}\\n\\nmake sure that you',\n              'use:\\n\\n  A{render(){return <.../>}\\n  B{render(){return <...>{ check ? <A/> : null }<...>}}\\n\\nThat is:',\n              'the parent is always responsible for deciding whether or not to render any of its children.',\n              'It is not the child\\'s responsibility to decide whether a render instruction from above should',\n              'get ignored or not by returning `null`.\\n\\nWhen any component gets its render() function called,',\n              'that is the signal that it should be rendering its part of the UI. It may in turn decide not to',\n              'render all of *its* children, but it should never return `null` for itself. It is not responsible',\n              'for that decision.'\n            ].join(' '));\n          }\n\n          var fn = this.__outsideClickHandler = generateOutsideCheck(\n            componentNode,\n            instance,\n            clickOutsideHandler,\n            this.props.outsideClickIgnoreClass || IGNORE_CLASS,\n            this.props.excludeScrollbar || false,\n            this.props.preventDefault || false,\n            this.props.stopPropagation || false\n          );\n\n          var pos = registeredComponents.length;\n          registeredComponents.push(this);\n          handlers[pos] = fn;\n\n          // If there is a truthy disableOnClickOutside property for this\n          // component, don't immediately start listening for outside events.\n          if (!this.props.disableOnClickOutside) {\n            this.enableOnClickOutside();\n          }\n        },\n\n        /**\n        * Track for disableOnClickOutside props changes and enable/disable click outside\n        */\n        componentWillReceiveProps: function(nextProps) {\n          if (this.props.disableOnClickOutside && !nextProps.disableOnClickOutside) {\n            this.enableOnClickOutside();\n          } else if (!this.props.disableOnClickOutside && nextProps.disableOnClickOutside) {\n            this.disableOnClickOutside();\n          }\n        },\n\n        /**\n         * Remove the document's event listeners\n         */\n        componentWillUnmount: function() {\n          this.disableOnClickOutside();\n          this.__outsideClickHandler = false;\n          var pos = registeredComponents.indexOf(this);\n          if( pos>-1) {\n            // clean up so we don't leak memory\n            if (handlers[pos]) { handlers.splice(pos, 1); }\n            registeredComponents.splice(pos, 1);\n          }\n        },\n\n        /**\n         * Can be called to explicitly enable event listening\n         * for clicks and touches outside of this element.\n         */\n        enableOnClickOutside: function() {\n          var fn = this.__outsideClickHandler;\n          if (typeof document !== 'undefined') {\n            var events = this.props.eventTypes || DEFAULT_EVENTS;\n            if (!events.forEach) {\n              events = [events];\n            }\n            events.forEach(function (eventName) {\n              document.addEventListener(eventName, fn);\n            });\n          }\n        },\n\n        /**\n         * Can be called to explicitly disable event listening\n         * for clicks and touches outside of this element.\n         */\n        disableOnClickOutside: function() {\n          var fn = this.__outsideClickHandler;\n          if (typeof document !== 'undefined') {\n            var events = this.props.eventTypes || DEFAULT_EVENTS;\n            if (!events.forEach) {\n              events = [events];\n            }\n            events.forEach(function (eventName) {\n              document.removeEventListener(eventName, fn);\n            });\n          }\n        },\n\n        /**\n         * Pass-through render\n         */\n        render: function() {\n          var passedProps = this.props;\n          var props = {};\n          Object.keys(this.props).forEach(function(key) {\n            if (key !== 'excludeScrollbar') {\n              props[key] = passedProps[key];\n            }\n          });\n          if (Component.prototype.isReactComponent) {\n            props.ref = 'instance';\n          }\n          props.disableOnClickOutside = this.disableOnClickOutside;\n          props.enableOnClickOutside = this.enableOnClickOutside;\n          return React.createElement(Component, props);\n        }\n      });\n\n      // Add display name for React devtools\n      (function bindWrappedComponentName(c, wrapper) {\n        var componentName = c.displayName || c.name || 'Component';\n        wrapper.displayName = 'OnClickOutside(' + componentName + ')';\n      }(Component, wrapComponentWithOnClickOutsideHandling));\n\n      return wrapComponentWithOnClickOutsideHandling;\n    };\n  }\n\n  /**\n   * This function sets up the library in ways that\n   * work with the various modulde loading solutions\n   * used in JavaScript land today.\n   */\n  function setupBinding(root, factory) {\n    if (typeof define === 'function' && define.amd) {\n      // AMD. Register as an anonymous module.\n      define(['react','react-dom'], function(React, ReactDom) {\n        return factory(root, React, ReactDom);\n      });\n    } else if (typeof exports === 'object') {\n      // Node. Note that this does not work with strict\n      // CommonJS, but only CommonJS-like environments\n      // that support module.exports\n      module.exports = factory(root, require('react'), require('react-dom'));\n    } else {\n      // Browser globals (root is window)\n      root.onClickOutside = factory(root, React, ReactDOM);\n    }\n  }\n\n  // Make it all happen\n  setupBinding(root, setupHOC);\n\n}(this));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/javi/projects/code/react-datetime-playground/~/react-onclickoutside/index.js\n// module id = 6\n// module chunks = 0","'use strict';\n\nvar React = require('react'),\n\tonClickOutside = require('react-onclickoutside')\n;\n\nvar DOM = React.DOM;\nvar DateTimePickerMonths = onClickOutside( React.createClass({\n\trender: function() {\n\t\treturn DOM.div({ className: 'rdtMonths' }, [\n\t\t\tDOM.table({ key: 'a' }, DOM.thead( {}, DOM.tr( {}, [\n\t\t\t\tDOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 1, 'years' )}, '‹' )),\n\t\t\t\tDOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2, 'data-value': this.props.viewDate.year() }, this.props.viewDate.year() ),\n\t\t\t\tDOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 1, 'years' )}, '›' ))\n\t\t\t]))),\n\t\t\tDOM.table({ key: 'months' }, DOM.tbody({ key: 'b' }, this.renderMonths()))\n\t\t]);\n\t},\n\n\trenderMonths: function() {\n\t\tvar date = this.props.selectedDate,\n\t\t\tmonth = this.props.viewDate.month(),\n\t\t\tyear = this.props.viewDate.year(),\n\t\t\trows = [],\n\t\t\ti = 0,\n\t\t\tmonths = [],\n\t\t\trenderer = this.props.renderMonth || this.renderMonth,\n\t\t\tisValid = this.props.isValidDate || this.alwaysValidDate,\n\t\t\tclasses, props, currentMonth, isDisabled, noOfDaysInMonth, daysInMonth, validDay,\n\t\t\t// Date is irrelevant because we're only interested in month\n\t\t\tirrelevantDate = 1\n\t\t;\n\n\t\twhile (i < 12) {\n\t\t\tclasses = 'rdtMonth';\n\t\t\tcurrentMonth =\n\t\t\t\tthis.props.viewDate.clone().set({ year: year, month: i, date: irrelevantDate });\n\n\t\t\tnoOfDaysInMonth = currentMonth.endOf( 'month' ).format( 'D' );\n\t\t\tdaysInMonth = Array.from({ length: noOfDaysInMonth }, function( e, i ) {\n\t\t\t\treturn i + 1;\n\t\t\t});\n\n\t\t\tvalidDay = daysInMonth.find(function( d ) {\n\t\t\t\tvar day = currentMonth.clone().set( 'date', d );\n\t\t\t\treturn isValid( day );\n\t\t\t});\n\n\t\t\tisDisabled = ( validDay === undefined );\n\n\t\t\tif ( isDisabled )\n\t\t\t\tclasses += ' rdtDisabled';\n\n\t\t\tif ( date && i === month && year === date.year() )\n\t\t\t\tclasses += ' rdtActive';\n\n\t\t\tprops = {\n\t\t\t\tkey: i,\n\t\t\t\t'data-value': i,\n\t\t\t\tclassName: classes\n\t\t\t};\n\n\t\t\tif ( !isDisabled )\n\t\t\t\tprops.onClick = ( this.props.updateOn === 'months' ?\n\t\t\t\t\tthis.updateSelectedMonth : this.props.setDate( 'month' ) );\n\n\t\t\tmonths.push( renderer( props, i, year, date && date.clone() ) );\n\n\t\t\tif ( months.length === 4 ) {\n\t\t\t\trows.push( DOM.tr({ key: month + '_' + rows.length }, months ) );\n\t\t\t\tmonths = [];\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\n\t\treturn rows;\n\t},\n\n\tupdateSelectedMonth: function( event ) {\n\t\tthis.props.updateSelectedDate( event );\n\t},\n\n\trenderMonth: function( props, month ) {\n\t\tvar localMoment = this.props.viewDate;\n\t\tvar monthStr = localMoment.localeData().monthsShort( localMoment.month( month ) );\n\t\tvar strLength = 3;\n\t\t// Because some months are up to 5 characters long, we want to\n\t\t// use a fixed string length for consistency\n\t\tvar monthStrFixedLength = monthStr.substring( 0, strLength );\n\t\treturn DOM.td( props, capitalize( monthStrFixedLength ) );\n\t},\n\n\talwaysValidDate: function() {\n\t\treturn 1;\n\t},\n\n  handleClickOutside: function() {\n    this.props.handleClickOutside();\n  }\n}));\n\nfunction capitalize( str ) {\n\treturn str.charAt( 0 ).toUpperCase() + str.slice( 1 );\n}\n\nmodule.exports = DateTimePickerMonths;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/MonthsView.js\n// module id = 8\n// module chunks = 0","'use strict';\n\nvar React = require('react'),\n\tonClickOutside = require('react-onclickoutside')\n;\n\nvar DOM = React.DOM;\nvar DateTimePickerYears = onClickOutside( React.createClass({\n\trender: function() {\n\t\tvar year = parseInt( this.props.viewDate.year() / 10, 10 ) * 10;\n\n\t\treturn DOM.div({ className: 'rdtYears' }, [\n\t\t\tDOM.table({ key: 'a' }, DOM.thead({}, DOM.tr({}, [\n\t\t\t\tDOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 10, 'years' )}, '‹' )),\n\t\t\t\tDOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2 }, year + '-' + ( year + 9 ) ),\n\t\t\t\tDOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 10, 'years' )}, '›' ))\n\t\t\t\t]))),\n\t\t\tDOM.table({ key: 'years' }, DOM.tbody( {}, this.renderYears( year )))\n\t\t]);\n\t},\n\n\trenderYears: function( year ) {\n\t\tvar years = [],\n\t\t\ti = -1,\n\t\t\trows = [],\n\t\t\trenderer = this.props.renderYear || this.renderYear,\n\t\t\tselectedDate = this.props.selectedDate,\n\t\t\tisValid = this.props.isValidDate || this.alwaysValidDate,\n\t\t\tclasses, props, currentYear, isDisabled, noOfDaysInYear, daysInYear, validDay,\n\t\t\t// Month and date are irrelevant here because\n\t\t\t// we're only interested in the year\n\t\t\tirrelevantMonth = 0,\n\t\t\tirrelevantDate = 1\n\t\t;\n\n\t\tyear--;\n\t\twhile (i < 11) {\n\t\t\tclasses = 'rdtYear';\n\t\t\tcurrentYear = this.props.viewDate.clone().set(\n\t\t\t\t{ year: year, month: irrelevantMonth, date: irrelevantDate } );\n\n\t\t\t// Not sure what 'rdtOld' is for, commenting out for now as it's not working properly\n\t\t\t// if ( i === -1 | i === 10 )\n\t\t\t\t// classes += ' rdtOld';\n\n\t\t\tnoOfDaysInYear = currentYear.endOf( 'year' ).format( 'DDD' );\n\t\t\tdaysInYear = Array.from({ length: noOfDaysInYear }, function( e, i ) {\n\t\t\t\treturn i + 1;\n\t\t\t});\n\n\t\t\tvalidDay = daysInYear.find(function( d ) {\n\t\t\t\tvar day = currentYear.clone().dayOfYear( d );\n\t\t\t\treturn isValid( day );\n\t\t\t});\n\n\t\t\tisDisabled = ( validDay === undefined );\n\n\t\t\tif ( isDisabled )\n\t\t\t\tclasses += ' rdtDisabled';\n\n\t\t\tif ( selectedDate && selectedDate.year() === year )\n\t\t\t\tclasses += ' rdtActive';\n\n\t\t\tprops = {\n\t\t\t\tkey: year,\n\t\t\t\t'data-value': year,\n\t\t\t\tclassName: classes\n\t\t\t};\n\n\t\t\tif ( !isDisabled )\n\t\t\t\tprops.onClick = ( this.props.updateOn === 'years' ?\n\t\t\t\t\tthis.updateSelectedYear : this.props.setDate('year') );\n\n\t\t\tyears.push( renderer( props, year, selectedDate && selectedDate.clone() ));\n\n\t\t\tif ( years.length === 4 ) {\n\t\t\t\trows.push( DOM.tr({ key: i }, years ) );\n\t\t\t\tyears = [];\n\t\t\t}\n\n\t\t\tyear++;\n\t\t\ti++;\n\t\t}\n\n\t\treturn rows;\n\t},\n\n\tupdateSelectedYear: function( event ) {\n\t\tthis.props.updateSelectedDate( event );\n\t},\n\n\trenderYear: function( props, year ) {\n\t\treturn DOM.td( props, year );\n\t},\n\n\talwaysValidDate: function() {\n\t\treturn 1;\n\t},\n\n  handleClickOutside: function() {\n    this.props.handleClickOutside();\n  }\n}));\n\nmodule.exports = DateTimePickerYears;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/YearsView.js\n// module id = 9\n// module chunks = 0","'use strict';\n\nvar React = require('react'),\n\tassign = require('object-assign'),\n  onClickOutside = require('react-onclickoutside')\n;\n\nvar DOM = React.DOM;\nvar DateTimePickerTime = onClickOutside( React.createClass({\n\tgetInitialState: function() {\n\t\treturn this.calculateState( this.props );\n\t},\n\n\tcalculateState: function( props ) {\n\t\tvar date = props.selectedDate || props.viewDate,\n\t\t\tformat = props.timeFormat,\n\t\t\tcounters = []\n\t\t;\n\n\t\tif ( format.toLowerCase().indexOf('h') !== -1 ) {\n\t\t\tcounters.push('hours');\n\t\t\tif ( format.indexOf('m') !== -1 ) {\n\t\t\t\tcounters.push('minutes');\n\t\t\t\tif ( format.indexOf('s') !== -1 ) {\n\t\t\t\t\tcounters.push('seconds');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tvar daypart = false;\n\t\tif ( this.state !== null && this.props.timeFormat.toLowerCase().indexOf( ' a' ) !== -1 ) {\n\t\t\tif ( this.props.timeFormat.indexOf( ' A' ) !== -1 ) {\n\t\t\t\tdaypart = ( this.state.hours >= 12 ) ? 'PM' : 'AM';\n\t\t\t} else {\n\t\t\t\tdaypart = ( this.state.hours >= 12 ) ? 'pm' : 'am';\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\thours: date.format( 'H' ),\n\t\t\tminutes: date.format( 'mm' ),\n\t\t\tseconds: date.format( 'ss' ),\n\t\t\tmilliseconds: date.format( 'SSS' ),\n\t\t\tdaypart: daypart,\n\t\t\tcounters: counters\n\t\t};\n\t},\n\n\trenderCounter: function( type ) {\n\t\tif ( type !== 'daypart' ) {\n\t\t\tvar value = this.state[ type ];\n\t\t\tif ( type === 'hours' && this.props.timeFormat.toLowerCase().indexOf( ' a' ) !== -1 ) {\n\t\t\t\tvalue = ( value - 1 ) % 12 + 1;\n\n\t\t\t\tif ( value === 0 ) {\n\t\t\t\t\tvalue = 12;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn DOM.div({ key: type, className: 'rdtCounter' }, [\n\t\t\t\tDOM.span({ key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'increase', type ) }, '▲' ),\n\t\t\t\tDOM.div({ key: 'c', className: 'rdtCount' }, value ),\n\t\t\t\tDOM.span({ key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'decrease', type ) }, '▼' )\n\t\t\t]);\n\t\t}\n\t\treturn '';\n\t},\n\n\trenderDayPart: function() {\n\t\treturn DOM.div({ key: 'dayPart', className: 'rdtCounter' }, [\n\t\t\tDOM.span({ key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▲' ),\n\t\t\tDOM.div({ key: this.state.daypart, className: 'rdtCount' }, this.state.daypart ),\n\t\t\tDOM.span({ key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▼' )\n\t\t]);\n\t},\n\n\trender: function() {\n\t\tvar me = this,\n\t\t\tcounters = []\n\t\t;\n\n\t\tthis.state.counters.forEach( function( c ) {\n\t\t\tif ( counters.length )\n\t\t\t\tcounters.push( DOM.div({ key: 'sep' + counters.length, className: 'rdtCounterSeparator' }, ':' ) );\n\t\t\tcounters.push( me.renderCounter( c ) );\n\t\t});\n\n\t\tif ( this.state.daypart !== false ) {\n\t\t\tcounters.push( me.renderDayPart() );\n\t\t}\n\n\t\tif ( this.state.counters.length === 3 && this.props.timeFormat.indexOf( 'S' ) !== -1 ) {\n\t\t\tcounters.push( DOM.div({ className: 'rdtCounterSeparator', key: 'sep5' }, ':' ) );\n\t\t\tcounters.push(\n\t\t\t\tDOM.div({ className: 'rdtCounter rdtMilli', key: 'm' },\n\t\t\t\t\tDOM.input({ value: this.state.milliseconds, type: 'text', onChange: this.updateMilli } )\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t}\n\n\t\treturn DOM.div({ className: 'rdtTime' },\n\t\t\tDOM.table({}, [\n\t\t\t\tthis.renderHeader(),\n\t\t\t\tDOM.tbody({ key: 'b'}, DOM.tr({}, DOM.td({},\n\t\t\t\t\tDOM.div({ className: 'rdtCounters' }, counters )\n\t\t\t\t)))\n\t\t\t])\n\t\t);\n\t},\n\n\tcomponentWillMount: function() {\n\t\tvar me = this;\n\t\tme.timeConstraints = {\n\t\t\thours: {\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 23,\n\t\t\t\tstep: 1\n\t\t\t},\n\t\t\tminutes: {\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 59,\n\t\t\t\tstep: 1\n\t\t\t},\n\t\t\tseconds: {\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 59,\n\t\t\t\tstep: 1\n\t\t\t},\n\t\t\tmilliseconds: {\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 999,\n\t\t\t\tstep: 1\n\t\t\t}\n\t\t};\n\t\t['hours', 'minutes', 'seconds', 'milliseconds'].forEach( function( type ) {\n\t\t\tassign(me.timeConstraints[ type ], me.props.timeConstraints[ type ]);\n\t\t});\n\t\tthis.setState( this.calculateState( this.props ) );\n\t},\n\n\tcomponentWillReceiveProps: function( nextProps ) {\n\t\tthis.setState( this.calculateState( nextProps ) );\n\t},\n\n\tupdateMilli: function( e ) {\n\t\tvar milli = parseInt( e.target.value, 10 );\n\t\tif ( milli === e.target.value && milli >= 0 && milli < 1000 ) {\n\t\t\tthis.props.setTime( 'milliseconds', milli );\n\t\t\tthis.setState( { milliseconds: milli } );\n\t\t}\n\t},\n\n\trenderHeader: function() {\n\t\tif ( !this.props.dateFormat )\n\t\t\treturn null;\n\n\t\tvar date = this.props.selectedDate || this.props.viewDate;\n\t\treturn DOM.thead({ key: 'h' }, DOM.tr({},\n\t\t\tDOM.th({ className: 'rdtSwitch', colSpan: 4, onClick: this.props.showView( 'days' ) }, date.format( this.props.dateFormat ) )\n\t\t));\n\t},\n\n\tonStartClicking: function( action, type ) {\n\t\tvar me = this;\n\n\t\treturn function() {\n\t\t\tvar update = {};\n\t\t\tupdate[ type ] = me[ action ]( type );\n\t\t\tme.setState( update );\n\n\t\t\tme.timer = setTimeout( function() {\n\t\t\t\tme.increaseTimer = setInterval( function() {\n\t\t\t\t\tupdate[ type ] = me[ action ]( type );\n\t\t\t\t\tme.setState( update );\n\t\t\t\t}, 70);\n\t\t\t}, 500);\n\n\t\t\tme.mouseUpListener = function() {\n\t\t\t\tclearTimeout( me.timer );\n\t\t\t\tclearInterval( me.increaseTimer );\n\t\t\t\tme.props.setTime( type, me.state[ type ] );\n\t\t\t\tdocument.body.removeEventListener( 'mouseup', me.mouseUpListener );\n\t\t\t};\n\n\t\t\tdocument.body.addEventListener( 'mouseup', me.mouseUpListener );\n\t\t};\n\t},\n\n\tpadValues: {\n\t\thours: 1,\n\t\tminutes: 2,\n\t\tseconds: 2,\n\t\tmilliseconds: 3\n\t},\n\n\ttoggleDayPart: function( type ) { // type is always 'hours'\n\t\tvar value = parseInt( this.state[ type ], 10) + 12;\n\t\tif ( value > this.timeConstraints[ type ].max )\n\t\t\tvalue = this.timeConstraints[ type ].min + ( value - ( this.timeConstraints[ type ].max + 1 ) );\n\t\treturn this.pad( type, value );\n\t},\n\n\tincrease: function( type ) {\n\t\tvar value = parseInt( this.state[ type ], 10) + this.timeConstraints[ type ].step;\n\t\tif ( value > this.timeConstraints[ type ].max )\n\t\t\tvalue = this.timeConstraints[ type ].min + ( value - ( this.timeConstraints[ type ].max + 1 ) );\n\t\treturn this.pad( type, value );\n\t},\n\n\tdecrease: function( type ) {\n\t\tvar value = parseInt( this.state[ type ], 10) - this.timeConstraints[ type ].step;\n\t\tif ( value < this.timeConstraints[ type ].min )\n\t\t\tvalue = this.timeConstraints[ type ].max + 1 - ( this.timeConstraints[ type ].min - value );\n\t\treturn this.pad( type, value );\n\t},\n\n\tpad: function( type, value ) {\n\t\tvar str = value + '';\n\t\twhile ( str.length < this.padValues[ type ] )\n\t\t\tstr = '0' + str;\n\t\treturn str;\n\t},\n\n  handleClickOutside: function() {\n    this.props.handleClickOutside();\n  }\n}));\n\nmodule.exports = DateTimePickerTime;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/TimeView.js\n// module id = 10\n// module chunks = 0"]}
package.json
@@ -1,6 +1,6 @@
{
  "name": "react-datetime",
  "version": "2.8.7",
  "version": "2.8.8",
  "description": "A lightweight but complete datetime picker React.js component.",
  "homepage": "https://github.com/YouCanBookMe/react-datetime",
  "repository": {
src/CalendarContainer.js
@@ -2,11 +2,10 @@
  DaysView = require('./DaysView'),
  MonthsView = require('./MonthsView'),
  YearsView = require('./YearsView'),
  TimeView = require('./TimeView'),
  onClickOutside = require('react-onclickoutside')
  TimeView = require('./TimeView')
;
var CalendarContainer = onClickOutside( React.createClass({
var CalendarContainer = React.createClass({
    viewComponents: {
        days: DaysView,
        months: MonthsView,
@@ -16,11 +15,7 @@
  render: function() {
    return React.createElement( this.viewComponents[ this.props.view ], this.props.viewProps );
  },
  handleClickOutside: function() {
    this.props.onClickOutside();
  }
}));
});
module.exports = CalendarContainer;
src/DaysView.js
@@ -1,11 +1,12 @@
'use strict';
var React = require('react'),
    moment = require('moment')
    moment = require('moment'),
  onClickOutside = require('react-onclickoutside')
;
var DOM = React.DOM;
var DateTimePickerDays = React.createClass({
var DateTimePickerDays = onClickOutside( React.createClass({
    render: function() {
        var footer = this.renderFooter(),
            date = this.props.viewDate,
@@ -133,7 +134,11 @@
    alwaysValidDate: function() {
        return 1;
    }
});
    },
  handleClickOutside: function() {
    this.props.handleClickOutside();
  }
}));
module.exports = DateTimePickerDays;
src/MonthsView.js
@@ -1,9 +1,11 @@
'use strict';
var React = require('react');
var React = require('react'),
    onClickOutside = require('react-onclickoutside')
;
var DOM = React.DOM;
var DateTimePickerMonths = React.createClass({
var DateTimePickerMonths = onClickOutside( React.createClass({
    render: function() {
        return DOM.div({ className: 'rdtMonths' }, [
            DOM.table({ key: 'a' }, DOM.thead( {}, DOM.tr( {}, [
@@ -76,7 +78,7 @@
    },
    updateSelectedMonth: function( event ) {
        this.props.updateSelectedDate( event, true );
        this.props.updateSelectedDate( event );
    },
    renderMonth: function( props, month ) {
@@ -91,8 +93,12 @@
    alwaysValidDate: function() {
        return 1;
    }
});
    },
  handleClickOutside: function() {
    this.props.handleClickOutside();
  }
}));
function capitalize( str ) {
    return str.charAt( 0 ).toUpperCase() + str.slice( 1 );
src/TimeView.js
@@ -1,11 +1,12 @@
'use strict';
var React = require('react'),
    assign = require('object-assign')
    assign = require('object-assign'),
  onClickOutside = require('react-onclickoutside')
;
var DOM = React.DOM;
var DateTimePickerTime = React.createClass({
var DateTimePickerTime = onClickOutside( React.createClass({
    getInitialState: function() {
        return this.calculateState( this.props );
    },
@@ -217,7 +218,11 @@
        while ( str.length < this.padValues[ type ] )
            str = '0' + str;
        return str;
    }
});
    },
  handleClickOutside: function() {
    this.props.handleClickOutside();
  }
}));
module.exports = DateTimePickerTime;
src/YearsView.js
@@ -1,9 +1,11 @@
'use strict';
var React = require('react');
var React = require('react'),
    onClickOutside = require('react-onclickoutside')
;
var DOM = React.DOM;
var DateTimePickerYears = React.createClass({
var DateTimePickerYears = onClickOutside( React.createClass({
    render: function() {
        var year = parseInt( this.props.viewDate.year() / 10, 10 ) * 10;
@@ -84,7 +86,7 @@
    },
    updateSelectedYear: function( event ) {
        this.props.updateSelectedDate( event, true );
        this.props.updateSelectedDate( event );
    },
    renderYear: function( props, year ) {
@@ -93,7 +95,11 @@
    alwaysValidDate: function() {
        return 1;
    }
});
    },
  handleClickOutside: function() {
    this.props.handleClickOutside();
  }
}));
module.exports = DateTimePickerYears;