{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap bfbc5ee5499a1d3151c5","webpack:///react-day-picker.min.js","webpack:///external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack:///./src/DateUtils.js","webpack:///./src/keys.js","webpack:///./src/classNames.js","webpack:///./src/Helpers.js","webpack:///./src/LocaleUtils.js","webpack:///./src/ModifiersUtils.js","webpack:///./src/DayPicker.js","webpack:///./src/umd.js","webpack:///./src/Caption.js","webpack:///./src/Navbar.js","webpack:///./src/Month.js","webpack:///./src/Weekdays.js","webpack:///./src/Day.js","webpack:///./src/Weekday.js","webpack:///./src/DayPickerInput.js"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE_0__","__webpack_require__","moduleId","installedModules","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","clone","Date","getTime","isDate","value","isNaN","valueOf","addMonths","newDate","setMonth","getMonth","isSameDay","d1","d2","getDate","getFullYear","isSameMonth","isDayBefore","setHours","isDayAfter","isPastDay","today","isFutureDay","tomorrow","isDayBetween","date","addDayToRange","day","range","from","to","isDayInRange","getWeekNumber","setDate","getDay","Math","ceil","default","LEFT","UP","RIGHT","DOWN","ENTER","SPACE","ESC","TAB","container","wrapper","interactionDisabled","months","month","navBar","navButtonPrev","navButtonNext","navButtonInteractionDisabled","caption","weekdays","weekdaysRow","weekday","body","week","weekNumber","footer","todayButton","selected","disabled","outside","cancelEvent","e","preventDefault","stopPropagation","getFirstDayOfMonth","getDaysInMonth","resultDate","getModifiersFromProps","props","modifiers","selectedDays","classNames","disabledDays","getFirstDayOfWeekFromProps","firstDayOfWeek","locale","localeUtils","getFirstDayOfWeek","isRangeOfDates","getMonthsDiff","getWeekArray","fixedWeeks","daysInMonth","dayArray","weekArray","push","forEach","length","indexOf","firstWeek","outsideDate","unshift","lastWeek","lastExtraWeek","lastDay","extraWeek","j","startOfMonth","getDayNodes","node","outsideClassName","defaultClassNames","dayQuery","replace","outsideDayQuery","selector","querySelectorAll","nodeListToArray","nodeList","Array","slice","hasOwnProp","obj","prop","_extends","assign","target","arguments","source","key","_classNames2","_classNames","formatDay","toDateString","formatMonthTitle","MONTHS","formatWeekdayShort","WEEKDAYS_SHORT","formatWeekdayLong","WEEKDAYS_LONG","getMonths","dayMatchesModifier","modifier","isArray","some","mod","after","before","daysOfWeek","dayOfWeek","getModifiersForDay","modifiersObj","keys","reduce","modifierName","_interopRequireWildcard","newObj","_interopRequireDefault","_objectWithoutProperties","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","ReferenceError","_inherits","subClass","superClass","create","constructor","writable","setPrototypeOf","__proto__","ModifiersUtils","LocaleUtils","DateUtils","DayPicker","undefined","_createClass","defineProperties","descriptor","protoProps","staticProps","_react2","_react","_Caption2","_Caption","_Navbar2","_Navbar","_Month2","_Month","_Weekday2","_Weekday","Helpers","dayPicker","showNextMonth","callback","allowNextMonth","deltaMonths","pagedNavigation","numberOfMonths","nextMonth","state","currentMonth","showMonth","showPreviousMonth","allowPreviousMonth","previousMonth","handleKeyDown","persist","keyCode","dir","showPreviousYear","showNextYear","onKeyDown","handleDayKeyDown","focusNextDay","focusPreviousDay","focusPreviousWeek","focusNextWeek","onDayClick","handleDayClick","onDayKeyDown","enableOutsideDaysClick","handleOutsideDayClick","handleTodayButtonClick","blur","onTodayButtonClick","getCurrentMonthFromProps","_Component","prevProps","setState","initialMonth","fromMonth","diffInMonths","floor","toMonth","allowMonth","canChangeMonth","onMonthChange","allowYearChange","focus","dayNodes","dayNode","dayNodeIndex","focusLastDayOfMonth","focusFirstDayOfMonth","daysAfterIndex","nextMonthDayNodeIndex","previousMonthDayNodes","labels","navbarElement","attributes","className","getNextNavigableMonth","getPreviousNavigableMonth","showPreviousButton","showNextButton","onNextClick","onPreviousClick","React","isValidElement","cloneElement","createElement","reverseMonths","reverse","renderTodayButton","type","tabIndex","aria-label","onClick","containerProps","ref","el","lang","onFocus","onBlur","renderNavbar","renderMonths","renderFooter","Component","defaultProps","showOutsideDays","showWeekNumbers","showWeekDays","renderDay","renderWeek","weekdayElement","captionElement","VERSION","Input","_LocaleUtils2","_LocaleUtils","Caption","handleKeyUp","bind","nextProps","role","aria-live","onKeyUp","Navbar","_ref","_temp","_this","_ret","_len","args","_key","getPrototypeOf","apply","concat","handleNextClick","handlePreviousClick","handleNextKeyDown","handlePreviousKeyDown","previousClickHandler","nextClickHandler","previousKeyDownHandler","nextKeyDownHandler","shouldShowPrevious","shouldShowNext","previousClassName","nextClassName","previousButton","nextButton","_Weekdays2","_Weekdays","_Day2","_Day","Month","monthNumber","propModifiers","dayModifiers","isOutside","modifiersStyles","empty","ariaLabel","ariaDisabled","ariaSelected","onDayFocus","onMouseEnter","onDayMouseEnter","onMouseLeave","onDayMouseLeave","onMouseDown","onDayMouseDown","onMouseUp","onDayMouseUp","onTouchEnd","onDayTouchEnd","onTouchStart","onDayTouchStart","weekdaysLong","weekdaysShort","onCaptionClick","onWeekClick","captionProps","weeks","map","Weekdays","days","elementProps","element","handleEvent","handler","Day","propNames","nextPropNames","nextProp","nextModifiers","children","join","style","filter","aria-disabled","aria-selected","Weekday","title","content","_defineProperty","OverlayComponent","input","selectedDay","overlayWrapper","overlay","defaultFormat","defaultParse","str","split","year","parseInt","String","HIDE_TIMEOUT","_DayPicker2","_DayPicker","DayPickerInput","daypicker","clickTimeout","hideTimeout","inputBlurTimeout","inputFocusTimeout","getInitialStateFromProps","showOverlay","hideAfterDayClick","handleInputClick","handleInputFocus","handleInputBlur","handleInputChange","handleInputKeyDown","handleInputKeyUp","handleMonthChange","handleOverlayFocus","handleOverlayBlur","_React$Component","newState","formatDate","format","dayPickerProps","prevMonth","clearTimeout","overlayBlurTimeout","parseDate","typedValue","getInitialMonthFromProps","onDayChange","onDayPickerShow","onDayPickerHide","hideOnDayClick","setTimeout","overlayHasFocus","hideDayPicker","showDayPicker","inputProps","keepFocus","onChange","trim","updateState","clickUnselectsDay","selectedDayIdx","splice","Overlay","overlayComponent","component","placeholder","renderOverlay"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,gBAAZC,UAA0C,gBAAXC,QACxCA,OAAOD,QAAUD,EAAQG,QAAQ,UACR,kBAAXC,SAAyBA,OAAOC,IAC9CD,QAAQ,SAAUJ,GACQ,gBAAZC,SACdA,QAAmB,UAAID,EAAQG,QAAQ,UAEvCJ,EAAgB,UAAIC,EAAQD,EAAY,QACvB,mBAATO,MAAuBA,KAAOC,KAAM,SAASC,GACvD,M,aCNE,QAASC,GAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,MAAOC,GAAiBD,GAAUT,OAGnC,IAAIC,GAASS,EAAiBD,IAC7BE,EAAGF,EACHG,GAAG,EACHZ,WAUD,OANAa,GAAQJ,GAAUK,KAAKb,EAAOD,QAASC,EAAQA,EAAOD,QAASQ,GAG/DP,EAAOW,GAAI,EAGJX,EAAOD,QAvBf,GAAIU,KA4DJ,OAhCAF,GAAoBO,EAAIF,EAGxBL,EAAoBQ,EAAIN,EAGxBF,EAAoBS,EAAI,SAASjB,EAASkB,EAAMC,GAC3CX,EAAoBY,EAAEpB,EAASkB,IAClCG,OAAOC,eAAetB,EAASkB,GAC9BK,cAAc,EACdC,YAAY,EACZC,IAAKN,KAMRX,EAAoBkB,EAAI,SAASzB,GAChC,GAAIkB,GAASlB,GAAUA,EAAO0B,WAC7B,WAAwB,MAAO1B,GAAgB,SAC/C,WAA8B,MAAOA,GAEtC,OADAO,GAAoBS,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRX,EAAoBY,EAAI,SAASQ,EAAQC,GAAY,MAAOR,QAAOS,UAAUC,eAAejB,KAAKc,EAAQC,IAGzGrB,EAAoBwB,EAAI,GAGjBxB,EAAoBA,EAAoByB,EAAI,KCgB/C,SAAUhC,EAAQD,GC7ExBC,EAAOD,QAAUO,GDmFX,SAAUN,EAAQD,EAASQ,GAEjC,YE9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EAAQuE,QgBjlFamW,KhBolFA","file":"react-day-picker.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"DayPicker\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"DayPicker\"] = factory(root[\"React\"]);\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_0__) {\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 \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\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.l = 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// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 8);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap bfbc5ee5499a1d3151c5","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"DayPicker\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"DayPicker\"] = factory(root[\"React\"]);\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_0__) {\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/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\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.l = 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// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 8);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.clone = clone;\nexports.isDate = isDate;\nexports.addMonths = addMonths;\nexports.isSameDay = isSameDay;\nexports.isSameMonth = isSameMonth;\nexports.isDayBefore = isDayBefore;\nexports.isDayAfter = isDayAfter;\nexports.isPastDay = isPastDay;\nexports.isFutureDay = isFutureDay;\nexports.isDayBetween = isDayBetween;\nexports.addDayToRange = addDayToRange;\nexports.isDayInRange = isDayInRange;\nexports.getWeekNumber = getWeekNumber;\n/**\n * Clone a date object.\n *\n * @export\n * @param  {Date} d The date to clone\n * @return {Date} The cloned date\n */\nfunction clone(d) {\n  return new Date(d.getTime());\n}\n\n/**\n * Return `true` if the passed value is a valid JavaScript Date object.\n *\n * @export\n * @param {any} value\n * @returns {Boolean}\n */\nfunction isDate(value) {\n  return value instanceof Date && !isNaN(value.valueOf());\n}\n\n/**\n * Return `d` as a new date with `n` months added.\n *\n * @export\n * @param {Date} d\n * @param {number} n\n */\nfunction addMonths(d, n) {\n  var newDate = clone(d);\n  newDate.setMonth(d.getMonth() + n);\n  return newDate;\n}\n\n/**\n * Return `true` if two dates are the same day, ignoring the time.\n *\n * @export\n * @param  {Date}  d1\n * @param  {Date}  d2\n * @return {Boolean}\n */\nfunction isSameDay(d1, d2) {\n  if (!d1 || !d2) {\n    return false;\n  }\n  return d1.getDate() === d2.getDate() && d1.getMonth() === d2.getMonth() && d1.getFullYear() === d2.getFullYear();\n}\n\n/**\n * Return `true` if two dates fall in the same month.\n *\n * @export\n * @param  {Date}  d1\n * @param  {Date}  d2\n * @return {Boolean}\n */\nfunction isSameMonth(d1, d2) {\n  if (!d1 || !d2) {\n    return false;\n  }\n  return d1.getMonth() === d2.getMonth() && d1.getFullYear() === d2.getFullYear();\n}\n\n/**\n * Returns `true` if the first day is before the second day.\n *\n * @export\n * @param {Date} d1\n * @param {Date} d2\n * @returns {Boolean}\n */\nfunction isDayBefore(d1, d2) {\n  var day1 = clone(d1).setHours(0, 0, 0, 0);\n  var day2 = clone(d2).setHours(0, 0, 0, 0);\n  return day1 < day2;\n}\n\n/**\n * Returns `true` if the first day is after the second day.\n *\n * @export\n * @param {Date} d1\n * @param {Date} d2\n * @returns {Boolean}\n */\nfunction isDayAfter(d1, d2) {\n  var day1 = clone(d1).setHours(0, 0, 0, 0);\n  var day2 = clone(d2).setHours(0, 0, 0, 0);\n  return day1 > day2;\n}\n\n/**\n * Return `true` if a day is in the past, e.g. yesterday or any day\n * before yesterday.\n *\n * @export\n * @param  {Date}  d\n * @return {Boolean}\n */\nfunction isPastDay(d) {\n  var today = new Date();\n  today.setHours(0, 0, 0, 0);\n  return isDayBefore(d, today);\n}\n\n/**\n * Return `true` if a day is in the future, e.g. tomorrow or any day\n * after tomorrow.\n *\n * @export\n * @param  {Date}  d\n * @return {Boolean}\n */\nfunction isFutureDay(d) {\n  var tomorrow = new Date(new Date().getTime() + 24 * 60 * 60 * 1000);\n  tomorrow.setHours(0, 0, 0, 0);\n  return d >= tomorrow;\n}\n\n/**\n * Return `true` if day `d` is between days `d1` and `d2`,\n * without including them.\n *\n * @export\n * @param  {Date}  d\n * @param  {Date}  d1\n * @param  {Date}  d2\n * @return {Boolean}\n */\nfunction isDayBetween(d, d1, d2) {\n  var date = clone(d);\n  date.setHours(0, 0, 0, 0);\n  return isDayAfter(date, d1) && isDayBefore(date, d2) || isDayAfter(date, d2) && isDayBefore(date, d1);\n}\n\n/**\n * Add a day to a range and return a new range. A range is an object with\n * `from` and `to` days.\n *\n * @export\n * @param {Date} day\n * @param {Object} range\n * @return {Object} Returns a new range object\n */\nfunction addDayToRange(day) {\n  var range = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { from: null, to: null };\n  var from = range.from,\n      to = range.to;\n\n  if (!from) {\n    from = day;\n  } else if (from && to && isSameDay(from, to) && isSameDay(day, from)) {\n    from = null;\n    to = null;\n  } else if (to && isDayBefore(day, from)) {\n    from = day;\n  } else if (to && isSameDay(day, to)) {\n    from = day;\n    to = day;\n  } else {\n    to = day;\n    if (isDayBefore(to, from)) {\n      to = from;\n      from = day;\n    }\n  }\n\n  return { from: from, to: to };\n}\n\n/**\n * Return `true` if a day is included in a range of days.\n *\n * @export\n * @param  {Date}  day\n * @param  {Object}  range\n * @return {Boolean}\n */\nfunction isDayInRange(day, range) {\n  var from = range.from,\n      to = range.to;\n\n  return from && isSameDay(day, from) || to && isSameDay(day, to) || from && to && isDayBetween(day, from, to);\n}\n\n/**\n * Return the year's week number (as per ISO, i.e. with the week starting from monday)\n * for the given day.\n *\n * @export\n * @param {Date} day\n * @returns {Number}\n */\nfunction getWeekNumber(day) {\n  var date = clone(day);\n  date.setHours(0, 0, 0);\n  date.setDate(date.getDate() + 4 - (date.getDay() || 7));\n  return Math.ceil(((date - new Date(date.getFullYear(), 0, 1)) / 8.64e7 + 1) / 7);\n}\n\nexports.default = {\n  addDayToRange: addDayToRange,\n  addMonths: addMonths,\n  clone: clone,\n  getWeekNumber: getWeekNumber,\n  isDate: isDate,\n  isDayAfter: isDayAfter,\n  isDayBefore: isDayBefore,\n  isDayBetween: isDayBetween,\n  isDayInRange: isDayInRange,\n  isFutureDay: isFutureDay,\n  isPastDay: isPastDay,\n  isSameDay: isSameDay,\n  isSameMonth: isSameMonth\n};\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nvar LEFT = exports.LEFT = 37;\nvar UP = exports.UP = 38;\nvar RIGHT = exports.RIGHT = 39;\nvar DOWN = exports.DOWN = 40;\nvar ENTER = exports.ENTER = 13;\nvar SPACE = exports.SPACE = 32;\nvar ESC = exports.ESC = 27;\nvar TAB = exports.TAB = 9;\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n// Proxy object to map classnames when css modules are not used\n\nexports.default = {\n  container: 'DayPicker',\n  wrapper: 'DayPicker-wrapper',\n  interactionDisabled: 'DayPicker--interactionDisabled',\n  months: 'DayPicker-Months',\n  month: 'DayPicker-Month',\n\n  navBar: 'DayPicker-NavBar',\n  navButtonPrev: 'DayPicker-NavButton DayPicker-NavButton--prev',\n  navButtonNext: 'DayPicker-NavButton DayPicker-NavButton--next',\n  navButtonInteractionDisabled: 'DayPicker-NavButton--interactionDisabled',\n\n  caption: 'DayPicker-Caption',\n  weekdays: 'DayPicker-Weekdays',\n  weekdaysRow: 'DayPicker-WeekdaysRow',\n  weekday: 'DayPicker-Weekday',\n  body: 'DayPicker-Body',\n  week: 'DayPicker-Week',\n  weekNumber: 'DayPicker-WeekNumber',\n  day: 'DayPicker-Day',\n  footer: 'DayPicker-Footer',\n  todayButton: 'DayPicker-TodayButton',\n\n  // default modifiers\n  today: 'today',\n  selected: 'selected',\n  disabled: 'disabled',\n  outside: 'outside'\n};\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.cancelEvent = cancelEvent;\nexports.getFirstDayOfMonth = getFirstDayOfMonth;\nexports.getDaysInMonth = getDaysInMonth;\nexports.getModifiersFromProps = getModifiersFromProps;\nexports.getFirstDayOfWeekFromProps = getFirstDayOfWeekFromProps;\nexports.isRangeOfDates = isRangeOfDates;\nexports.getMonthsDiff = getMonthsDiff;\nexports.getWeekArray = getWeekArray;\nexports.startOfMonth = startOfMonth;\nexports.getDayNodes = getDayNodes;\nexports.nodeListToArray = nodeListToArray;\nexports.hasOwnProp = hasOwnProp;\n\nvar _DateUtils = __webpack_require__(1);\n\nvar _LocaleUtils = __webpack_require__(5);\n\nvar _classNames = __webpack_require__(3);\n\nvar _classNames2 = _interopRequireDefault(_classNames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction cancelEvent(e) {\n  e.preventDefault();\n  e.stopPropagation();\n}\n\nfunction getFirstDayOfMonth(d) {\n  return new Date(d.getFullYear(), d.getMonth(), 1, 12);\n}\n\nfunction getDaysInMonth(d) {\n  var resultDate = getFirstDayOfMonth(d);\n\n  resultDate.setMonth(resultDate.getMonth() + 1);\n  resultDate.setDate(resultDate.getDate() - 1);\n\n  return resultDate.getDate();\n}\n\nfunction getModifiersFromProps(props) {\n  var modifiers = _extends({}, props.modifiers);\n  if (props.selectedDays) {\n    modifiers[props.classNames.selected] = props.selectedDays;\n  }\n  if (props.disabledDays) {\n    modifiers[props.classNames.disabled] = props.disabledDays;\n  }\n  return modifiers;\n}\n\nfunction getFirstDayOfWeekFromProps(props) {\n  var firstDayOfWeek = props.firstDayOfWeek,\n      _props$locale = props.locale,\n      locale = _props$locale === undefined ? 'en' : _props$locale,\n      _props$localeUtils = props.localeUtils,\n      localeUtils = _props$localeUtils === undefined ? {} : _props$localeUtils;\n\n  if (!isNaN(firstDayOfWeek)) {\n    return firstDayOfWeek;\n  }\n  if (localeUtils.getFirstDayOfWeek) {\n    return localeUtils.getFirstDayOfWeek(locale);\n  }\n  return 0;\n}\n\nfunction isRangeOfDates(value) {\n  return !!(value && value.from && value.to);\n}\n\nfunction getMonthsDiff(d1, d2) {\n  return d2.getMonth() - d1.getMonth() + 12 * (d2.getFullYear() - d1.getFullYear());\n}\n\nfunction getWeekArray(d) {\n  var firstDayOfWeek = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _LocaleUtils.getFirstDayOfWeek)();\n  var fixedWeeks = arguments[2];\n\n  var daysInMonth = getDaysInMonth(d);\n  var dayArray = [];\n\n  var week = [];\n  var weekArray = [];\n\n  for (var i = 1; i <= daysInMonth; i += 1) {\n    dayArray.push(new Date(d.getFullYear(), d.getMonth(), i, 12));\n  }\n\n  dayArray.forEach(function (day) {\n    if (week.length > 0 && day.getDay() === firstDayOfWeek) {\n      weekArray.push(week);\n      week = [];\n    }\n    week.push(day);\n    if (dayArray.indexOf(day) === dayArray.length - 1) {\n      weekArray.push(week);\n    }\n  });\n\n  // unshift days to start the first week\n  var firstWeek = weekArray[0];\n  for (var _i = 7 - firstWeek.length; _i > 0; _i -= 1) {\n    var outsideDate = (0, _DateUtils.clone)(firstWeek[0]);\n    outsideDate.setDate(firstWeek[0].getDate() - 1);\n    firstWeek.unshift(outsideDate);\n  }\n\n  // push days until the end of the last week\n  var lastWeek = weekArray[weekArray.length - 1];\n  for (var _i2 = lastWeek.length; _i2 < 7; _i2 += 1) {\n    var _outsideDate = (0, _DateUtils.clone)(lastWeek[lastWeek.length - 1]);\n    _outsideDate.setDate(lastWeek[lastWeek.length - 1].getDate() + 1);\n    lastWeek.push(_outsideDate);\n  }\n\n  // add extra weeks to reach 6 weeks\n  if (fixedWeeks && weekArray.length < 6) {\n    var lastExtraWeek = void 0;\n\n    for (var _i3 = weekArray.length; _i3 < 6; _i3 += 1) {\n      lastExtraWeek = weekArray[weekArray.length - 1];\n      var lastDay = lastExtraWeek[lastExtraWeek.length - 1];\n      var extraWeek = [];\n\n      for (var j = 0; j < 7; j += 1) {\n        var _outsideDate2 = (0, _DateUtils.clone)(lastDay);\n        _outsideDate2.setDate(lastDay.getDate() + j + 1);\n        extraWeek.push(_outsideDate2);\n      }\n\n      weekArray.push(extraWeek);\n    }\n  }\n\n  return weekArray;\n}\n\nfunction startOfMonth(d) {\n  var newDate = (0, _DateUtils.clone)(d);\n  newDate.setDate(1);\n  newDate.setHours(12, 0, 0, 0); // always set noon to avoid time zone issues\n  return newDate;\n}\n\nfunction getDayNodes(node, classNames) {\n  var outsideClassName = void 0;\n  if (classNames === _classNames2.default) {\n    // When using CSS modules prefix the modifier as required by the BEM syntax\n    outsideClassName = classNames.day + '--' + classNames.outside;\n  } else {\n    outsideClassName = '' + classNames.outside;\n  }\n  var dayQuery = classNames.day.replace(/ /g, '.');\n  var outsideDayQuery = outsideClassName.replace(/ /g, '.');\n  var selector = '.' + dayQuery + ':not(.' + outsideDayQuery + ')';\n  return node.querySelectorAll(selector);\n}\n\nfunction nodeListToArray(nodeList) {\n  return Array.prototype.slice.call(nodeList, 0);\n}\n\nfunction hasOwnProp(obj, prop) {\n  return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.formatDay = formatDay;\nexports.formatMonthTitle = formatMonthTitle;\nexports.formatWeekdayShort = formatWeekdayShort;\nexports.formatWeekdayLong = formatWeekdayLong;\nexports.getFirstDayOfWeek = getFirstDayOfWeek;\nexports.getMonths = getMonths;\nvar WEEKDAYS_LONG = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n\nvar WEEKDAYS_SHORT = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];\n\nvar MONTHS = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n\nfunction formatDay(day) {\n  return day.toDateString();\n}\n\nfunction formatMonthTitle(d) {\n  return MONTHS[d.getMonth()] + ' ' + d.getFullYear();\n}\n\nfunction formatWeekdayShort(i) {\n  return WEEKDAYS_SHORT[i];\n}\n\nfunction formatWeekdayLong(i) {\n  return WEEKDAYS_LONG[i];\n}\n\nfunction getFirstDayOfWeek() {\n  return 0;\n}\n\nfunction getMonths() {\n  return MONTHS;\n}\n\nexports.default = {\n  formatDay: formatDay,\n  formatMonthTitle: formatMonthTitle,\n  formatWeekdayShort: formatWeekdayShort,\n  formatWeekdayLong: formatWeekdayLong,\n  getFirstDayOfWeek: getFirstDayOfWeek,\n  getMonths: getMonths\n};\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.dayMatchesModifier = dayMatchesModifier;\nexports.getModifiersForDay = getModifiersForDay;\n\nvar _DateUtils = __webpack_require__(1);\n\nvar _Helpers = __webpack_require__(4);\n\n/**\n * Return `true` if a date matches the specified modifier.\n *\n * @export\n * @param {Date} day\n * @param {Any} modifier\n * @return {Boolean}\n */\nfunction dayMatchesModifier(day, modifier) {\n  if (!modifier) {\n    return false;\n  }\n  var arr = Array.isArray(modifier) ? modifier : [modifier];\n  return arr.some(function (mod) {\n    if (!mod) {\n      return false;\n    }\n    if (mod instanceof Date) {\n      return (0, _DateUtils.isSameDay)(day, mod);\n    }\n    if ((0, _Helpers.isRangeOfDates)(mod)) {\n      return (0, _DateUtils.isDayInRange)(day, mod);\n    }\n    if (mod.after && mod.before && (0, _DateUtils.isDayAfter)(mod.before, mod.after)) {\n      return (0, _DateUtils.isDayAfter)(day, mod.after) && (0, _DateUtils.isDayBefore)(day, mod.before);\n    }\n    if (mod.after && mod.before && ((0, _DateUtils.isDayAfter)(mod.after, mod.before) || (0, _DateUtils.isSameDay)(mod.after, mod.before))) {\n      return (0, _DateUtils.isDayAfter)(day, mod.after) || (0, _DateUtils.isDayBefore)(day, mod.before);\n    }\n    if (mod.after) {\n      return (0, _DateUtils.isDayAfter)(day, mod.after);\n    }\n    if (mod.before) {\n      return (0, _DateUtils.isDayBefore)(day, mod.before);\n    }\n    if (mod.daysOfWeek) {\n      return mod.daysOfWeek.some(function (dayOfWeek) {\n        return day.getDay() === dayOfWeek;\n      });\n    }\n    if (typeof mod === 'function') {\n      return mod(day);\n    }\n    return false;\n  });\n}\n\n/**\n * Return the modifiers matching the given day for the given\n * object of modifiers.\n *\n * @export\n * @param {Date} day\n * @param {Object} [modifiersObj={}]\n * @return {Array}\n */\nfunction getModifiersForDay(day) {\n  var modifiersObj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n  return Object.keys(modifiersObj).reduce(function (modifiers, modifierName) {\n    var value = modifiersObj[modifierName];\n    if (dayMatchesModifier(day, value)) {\n      modifiers.push(modifierName);\n    }\n    return modifiers;\n  }, []);\n}\n\nexports.default = { dayMatchesModifier: dayMatchesModifier, getModifiersForDay: getModifiersForDay };\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.ModifiersUtils = exports.LocaleUtils = exports.DateUtils = exports.DayPicker = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _Caption = __webpack_require__(9);\n\nvar _Caption2 = _interopRequireDefault(_Caption);\n\nvar _Navbar = __webpack_require__(10);\n\nvar _Navbar2 = _interopRequireDefault(_Navbar);\n\nvar _Month = __webpack_require__(11);\n\nvar _Month2 = _interopRequireDefault(_Month);\n\nvar _Weekday = __webpack_require__(14);\n\nvar _Weekday2 = _interopRequireDefault(_Weekday);\n\nvar _Helpers = __webpack_require__(4);\n\nvar Helpers = _interopRequireWildcard(_Helpers);\n\nvar _DateUtils = __webpack_require__(1);\n\nvar DateUtils = _interopRequireWildcard(_DateUtils);\n\nvar _LocaleUtils = __webpack_require__(5);\n\nvar LocaleUtils = _interopRequireWildcard(_LocaleUtils);\n\nvar _ModifiersUtils = __webpack_require__(6);\n\nvar ModifiersUtils = _interopRequireWildcard(_ModifiersUtils);\n\nvar _classNames = __webpack_require__(3);\n\nvar _classNames2 = _interopRequireDefault(_classNames);\n\nvar _keys = __webpack_require__(2);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar DayPicker = exports.DayPicker = function (_Component) {\n  _inherits(DayPicker, _Component);\n\n  function DayPicker(props) {\n    _classCallCheck(this, DayPicker);\n\n    var _this = _possibleConstructorReturn(this, (DayPicker.__proto__ || Object.getPrototypeOf(DayPicker)).call(this, props));\n\n    _this.dayPicker = null;\n\n    _this.showNextMonth = function (callback) {\n      if (!_this.allowNextMonth()) {\n        return;\n      }\n      var deltaMonths = _this.props.pagedNavigation ? _this.props.numberOfMonths : 1;\n      var nextMonth = DateUtils.addMonths(_this.state.currentMonth, deltaMonths);\n      _this.showMonth(nextMonth, callback);\n    };\n\n    _this.showPreviousMonth = function (callback) {\n      if (!_this.allowPreviousMonth()) {\n        return;\n      }\n      var deltaMonths = _this.props.pagedNavigation ? _this.props.numberOfMonths : 1;\n      var previousMonth = DateUtils.addMonths(_this.state.currentMonth, -deltaMonths);\n      _this.showMonth(previousMonth, callback);\n    };\n\n    _this.handleKeyDown = function (e) {\n      e.persist();\n\n      switch (e.keyCode) {\n        case _keys.LEFT:\n          if (_this.props.dir === 'rtl') {\n            _this.showNextMonth();\n          } else {\n            _this.showPreviousMonth();\n          }\n          Helpers.cancelEvent(e);\n          break;\n        case _keys.RIGHT:\n          if (_this.props.dir === 'rtl') {\n            _this.showPreviousMonth();\n          } else {\n            _this.showNextMonth();\n          }\n          Helpers.cancelEvent(e);\n          break;\n        case _keys.UP:\n          _this.showPreviousYear();\n          Helpers.cancelEvent(e);\n          break;\n        case _keys.DOWN:\n          _this.showNextYear();\n          Helpers.cancelEvent(e);\n          break;\n        default:\n          break;\n      }\n\n      if (_this.props.onKeyDown) {\n        _this.props.onKeyDown(e);\n      }\n    };\n\n    _this.handleDayKeyDown = function (day, modifiers, e) {\n      e.persist();\n\n      switch (e.keyCode) {\n        case _keys.LEFT:\n          Helpers.cancelEvent(e);\n          if (_this.props.dir === 'rtl') {\n            _this.focusNextDay(e.target);\n          } else {\n            _this.focusPreviousDay(e.target);\n          }\n          break;\n        case _keys.RIGHT:\n          Helpers.cancelEvent(e);\n          if (_this.props.dir === 'rtl') {\n            _this.focusPreviousDay(e.target);\n          } else {\n            _this.focusNextDay(e.target);\n          }\n          break;\n        case _keys.UP:\n          Helpers.cancelEvent(e);\n          _this.focusPreviousWeek(e.target);\n          break;\n        case _keys.DOWN:\n          Helpers.cancelEvent(e);\n          _this.focusNextWeek(e.target);\n          break;\n        case _keys.ENTER:\n        case _keys.SPACE:\n          Helpers.cancelEvent(e);\n          if (_this.props.onDayClick) {\n            _this.handleDayClick(day, modifiers, e);\n          }\n          break;\n        default:\n          break;\n      }\n      if (_this.props.onDayKeyDown) {\n        _this.props.onDayKeyDown(day, modifiers, e);\n      }\n    };\n\n    _this.handleDayClick = function (day, modifiers, e) {\n      e.persist();\n\n      if (modifiers[_this.props.classNames.outside] && _this.props.enableOutsideDaysClick) {\n        _this.handleOutsideDayClick(day);\n      }\n      if (_this.props.onDayClick) {\n        _this.props.onDayClick(day, modifiers, e);\n      }\n    };\n\n    _this.handleTodayButtonClick = function (e) {\n      var today = new Date();\n      var month = new Date(today.getFullYear(), today.getMonth());\n      _this.showMonth(month);\n      e.target.blur();\n      if (_this.props.onTodayButtonClick) {\n        e.persist();\n        _this.props.onTodayButtonClick(new Date(today.getFullYear(), today.getMonth(), today.getDate()), ModifiersUtils.getModifiersForDay(today, _this.props.modifiers), e);\n      }\n    };\n\n    var currentMonth = _this.getCurrentMonthFromProps(props);\n    _this.state = { currentMonth: currentMonth };\n    return _this;\n  }\n\n  _createClass(DayPicker, [{\n    key: 'componentDidUpdate',\n    value: function componentDidUpdate(prevProps) {\n      // Changing the `month` props means changing the current displayed month\n      if (prevProps.month !== this.props.month && !DateUtils.isSameMonth(prevProps.month, this.props.month)) {\n        var currentMonth = this.getCurrentMonthFromProps(this.props);\n        // eslint-disable-next-line react/no-did-update-set-state\n        this.setState({ currentMonth: currentMonth });\n      }\n    }\n  }, {\n    key: 'getCurrentMonthFromProps',\n\n\n    /**\n     * Return the month to be shown in the calendar based on the component props.\n     *\n     * @param {Object} props\n     * @returns Date\n     * @memberof DayPicker\n     * @private\n     */\n    value: function getCurrentMonthFromProps(props) {\n      var initialMonth = Helpers.startOfMonth(props.month || props.initialMonth || new Date());\n      var currentMonth = initialMonth;\n\n      if (props.pagedNavigation && props.numberOfMonths > 1 && props.fromMonth) {\n        var fromMonth = Helpers.startOfMonth(props.fromMonth);\n        var diffInMonths = Helpers.getMonthsDiff(fromMonth, currentMonth);\n        currentMonth = DateUtils.addMonths(fromMonth, Math.floor(diffInMonths / props.numberOfMonths) * props.numberOfMonths);\n      } else if (props.toMonth && props.numberOfMonths > 1 && Helpers.getMonthsDiff(currentMonth, props.toMonth) <= 0) {\n        currentMonth = DateUtils.addMonths(Helpers.startOfMonth(props.toMonth), 1 - this.props.numberOfMonths);\n      }\n      return currentMonth;\n    }\n  }, {\n    key: 'getNextNavigableMonth',\n    value: function getNextNavigableMonth() {\n      return DateUtils.addMonths(this.state.currentMonth, this.props.numberOfMonths);\n    }\n  }, {\n    key: 'getPreviousNavigableMonth',\n    value: function getPreviousNavigableMonth() {\n      return DateUtils.addMonths(this.state.currentMonth, -1);\n    }\n  }, {\n    key: 'allowPreviousMonth',\n    value: function allowPreviousMonth() {\n      var previousMonth = DateUtils.addMonths(this.state.currentMonth, -1);\n      return this.allowMonth(previousMonth);\n    }\n  }, {\n    key: 'allowNextMonth',\n    value: function allowNextMonth() {\n      var nextMonth = DateUtils.addMonths(this.state.currentMonth, this.props.numberOfMonths);\n      return this.allowMonth(nextMonth);\n    }\n  }, {\n    key: 'allowMonth',\n    value: function allowMonth(d) {\n      var _props = this.props,\n          fromMonth = _props.fromMonth,\n          toMonth = _props.toMonth,\n          canChangeMonth = _props.canChangeMonth;\n\n      if (!canChangeMonth || fromMonth && Helpers.getMonthsDiff(fromMonth, d) < 0 || toMonth && Helpers.getMonthsDiff(toMonth, d) > 0) {\n        return false;\n      }\n      return true;\n    }\n  }, {\n    key: 'allowYearChange',\n    value: function allowYearChange() {\n      return this.props.canChangeMonth;\n    }\n  }, {\n    key: 'showMonth',\n    value: function showMonth(d, callback) {\n      var _this2 = this;\n\n      if (!this.allowMonth(d)) {\n        return;\n      }\n      this.setState({ currentMonth: Helpers.startOfMonth(d) }, function () {\n        if (callback) {\n          callback();\n        }\n        if (_this2.props.onMonthChange) {\n          _this2.props.onMonthChange(_this2.state.currentMonth);\n        }\n      });\n    }\n  }, {\n    key: 'showNextYear',\n    value: function showNextYear() {\n      if (!this.allowYearChange()) {\n        return;\n      }\n      var nextMonth = DateUtils.addMonths(this.state.currentMonth, 12);\n      this.showMonth(nextMonth);\n    }\n  }, {\n    key: 'showPreviousYear',\n    value: function showPreviousYear() {\n      if (!this.allowYearChange()) {\n        return;\n      }\n      var nextMonth = DateUtils.addMonths(this.state.currentMonth, -12);\n      this.showMonth(nextMonth);\n    }\n  }, {\n    key: 'focus',\n    value: function focus() {\n      this.wrapper.focus();\n    }\n  }, {\n    key: 'focusFirstDayOfMonth',\n    value: function focusFirstDayOfMonth() {\n      Helpers.getDayNodes(this.dayPicker, this.props.classNames)[0].focus();\n    }\n  }, {\n    key: 'focusLastDayOfMonth',\n    value: function focusLastDayOfMonth() {\n      var dayNodes = Helpers.getDayNodes(this.dayPicker, this.props.classNames);\n      dayNodes[dayNodes.length - 1].focus();\n    }\n  }, {\n    key: 'focusPreviousDay',\n    value: function focusPreviousDay(dayNode) {\n      var _this3 = this;\n\n      var dayNodes = Helpers.getDayNodes(this.dayPicker, this.props.classNames);\n      var dayNodeIndex = Helpers.nodeListToArray(dayNodes).indexOf(dayNode);\n      if (dayNodeIndex === -1) return;\n      if (dayNodeIndex === 0) {\n        this.showPreviousMonth(function () {\n          return _this3.focusLastDayOfMonth();\n        });\n      } else {\n        dayNodes[dayNodeIndex - 1].focus();\n      }\n    }\n  }, {\n    key: 'focusNextDay',\n    value: function focusNextDay(dayNode) {\n      var _this4 = this;\n\n      var dayNodes = Helpers.getDayNodes(this.dayPicker, this.props.classNames);\n      var dayNodeIndex = Helpers.nodeListToArray(dayNodes).indexOf(dayNode);\n      if (dayNodeIndex === -1) return;\n      if (dayNodeIndex === dayNodes.length - 1) {\n        this.showNextMonth(function () {\n          return _this4.focusFirstDayOfMonth();\n        });\n      } else {\n        dayNodes[dayNodeIndex + 1].focus();\n      }\n    }\n  }, {\n    key: 'focusNextWeek',\n    value: function focusNextWeek(dayNode) {\n      var _this5 = this;\n\n      var dayNodes = Helpers.getDayNodes(this.dayPicker, this.props.classNames);\n      var dayNodeIndex = Helpers.nodeListToArray(dayNodes).indexOf(dayNode);\n      var isInLastWeekOfMonth = dayNodeIndex > dayNodes.length - 8;\n\n      if (isInLastWeekOfMonth) {\n        this.showNextMonth(function () {\n          var daysAfterIndex = dayNodes.length - dayNodeIndex;\n          var nextMonthDayNodeIndex = 7 - daysAfterIndex;\n          Helpers.getDayNodes(_this5.dayPicker, _this5.props.classNames)[nextMonthDayNodeIndex].focus();\n        });\n      } else {\n        dayNodes[dayNodeIndex + 7].focus();\n      }\n    }\n  }, {\n    key: 'focusPreviousWeek',\n    value: function focusPreviousWeek(dayNode) {\n      var _this6 = this;\n\n      var dayNodes = Helpers.getDayNodes(this.dayPicker, this.props.classNames);\n      var dayNodeIndex = Helpers.nodeListToArray(dayNodes).indexOf(dayNode);\n      var isInFirstWeekOfMonth = dayNodeIndex <= 6;\n\n      if (isInFirstWeekOfMonth) {\n        this.showPreviousMonth(function () {\n          var previousMonthDayNodes = Helpers.getDayNodes(_this6.dayPicker, _this6.props.classNames);\n          var startOfLastWeekOfMonth = previousMonthDayNodes.length - 7;\n          var previousMonthDayNodeIndex = startOfLastWeekOfMonth + dayNodeIndex;\n          previousMonthDayNodes[previousMonthDayNodeIndex].focus();\n        });\n      } else {\n        dayNodes[dayNodeIndex - 7].focus();\n      }\n    }\n\n    // Event handlers\n\n  }, {\n    key: 'handleOutsideDayClick',\n    value: function handleOutsideDayClick(day) {\n      var currentMonth = this.state.currentMonth;\n      var numberOfMonths = this.props.numberOfMonths;\n\n      var diffInMonths = Helpers.getMonthsDiff(currentMonth, day);\n      if (diffInMonths > 0 && diffInMonths >= numberOfMonths) {\n        this.showNextMonth();\n      } else if (diffInMonths < 0) {\n        this.showPreviousMonth();\n      }\n    }\n  }, {\n    key: 'renderNavbar',\n    value: function renderNavbar() {\n      var _props2 = this.props,\n          labels = _props2.labels,\n          locale = _props2.locale,\n          localeUtils = _props2.localeUtils,\n          canChangeMonth = _props2.canChangeMonth,\n          navbarElement = _props2.navbarElement,\n          attributes = _objectWithoutProperties(_props2, ['labels', 'locale', 'localeUtils', 'canChangeMonth', 'navbarElement']);\n\n      if (!canChangeMonth) return null;\n\n      var props = {\n        month: this.state.currentMonth,\n        classNames: this.props.classNames,\n        className: this.props.classNames.navBar,\n        nextMonth: this.getNextNavigableMonth(),\n        previousMonth: this.getPreviousNavigableMonth(),\n        showPreviousButton: this.allowPreviousMonth(),\n        showNextButton: this.allowNextMonth(),\n        onNextClick: this.showNextMonth,\n        onPreviousClick: this.showPreviousMonth,\n        dir: attributes.dir,\n        labels: labels,\n        locale: locale,\n        localeUtils: localeUtils\n      };\n      return _react2.default.isValidElement(navbarElement) ? _react2.default.cloneElement(navbarElement, props) : _react2.default.createElement(navbarElement, props);\n    }\n  }, {\n    key: 'renderMonths',\n    value: function renderMonths() {\n      var months = [];\n      var firstDayOfWeek = Helpers.getFirstDayOfWeekFromProps(this.props);\n      for (var i = 0; i < this.props.numberOfMonths; i += 1) {\n        var month = DateUtils.addMonths(this.state.currentMonth, i);\n        months.push(_react2.default.createElement(_Month2.default, _extends({\n          key: i\n        }, this.props, {\n          month: month,\n          firstDayOfWeek: firstDayOfWeek,\n          onDayKeyDown: this.handleDayKeyDown,\n          onDayClick: this.handleDayClick\n        })));\n      }\n\n      if (this.props.reverseMonths) {\n        months.reverse();\n      }\n      return months;\n    }\n  }, {\n    key: 'renderFooter',\n    value: function renderFooter() {\n      if (this.props.todayButton) {\n        return _react2.default.createElement(\n          'div',\n          { className: this.props.classNames.footer },\n          this.renderTodayButton()\n        );\n      }\n      return null;\n    }\n  }, {\n    key: 'renderTodayButton',\n    value: function renderTodayButton() {\n      return _react2.default.createElement(\n        'button',\n        {\n          type: 'button',\n          tabIndex: 0,\n          className: this.props.classNames.todayButton,\n          'aria-label': this.props.todayButton,\n          onClick: this.handleTodayButtonClick\n        },\n        this.props.todayButton\n      );\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      var _this7 = this;\n\n      var className = this.props.classNames.container;\n\n      if (!this.props.onDayClick) {\n        className = className + ' ' + this.props.classNames.interactionDisabled;\n      }\n      if (this.props.className) {\n        className = className + ' ' + this.props.className;\n      }\n      return _react2.default.createElement(\n        'div',\n        _extends({}, this.props.containerProps, {\n          className: className,\n          ref: function ref(el) {\n            return _this7.dayPicker = el;\n          },\n          lang: this.props.locale\n        }),\n        _react2.default.createElement(\n          'div',\n          {\n            className: this.props.classNames.wrapper,\n            ref: function ref(el) {\n              return _this7.wrapper = el;\n            },\n            tabIndex: this.props.canChangeMonth && typeof this.props.tabIndex !== 'undefined' ? this.props.tabIndex : -1,\n            onKeyDown: this.handleKeyDown,\n            onFocus: this.props.onFocus,\n            onBlur: this.props.onBlur\n          },\n          this.renderNavbar(),\n          _react2.default.createElement(\n            'div',\n            { className: this.props.classNames.months },\n            this.renderMonths()\n          ),\n          this.renderFooter()\n        )\n      );\n    }\n  }]);\n\n  return DayPicker;\n}(_react.Component);\n\nDayPicker.defaultProps = {\n  classNames: _classNames2.default,\n  tabIndex: 0,\n  numberOfMonths: 1,\n  labels: {\n    previousMonth: 'Previous Month',\n    nextMonth: 'Next Month'\n  },\n  locale: 'en',\n  localeUtils: LocaleUtils,\n  showOutsideDays: false,\n  enableOutsideDaysClick: true,\n  fixedWeeks: false,\n  canChangeMonth: true,\n  reverseMonths: false,\n  pagedNavigation: false,\n  showWeekNumbers: false,\n  showWeekDays: true,\n  renderDay: function renderDay(day) {\n    return day.getDate();\n  },\n  renderWeek: function renderWeek(weekNumber) {\n    return weekNumber;\n  },\n  weekdayElement: _react2.default.createElement(_Weekday2.default, null),\n  navbarElement: _react2.default.createElement(_Navbar2.default, { classNames: _classNames2.default }),\n  captionElement: _react2.default.createElement(_Caption2.default, { classNames: _classNames2.default })\n};\nDayPicker.VERSION = '7.4.8';\n\n\nDayPicker.DateUtils = DateUtils;\nDayPicker.LocaleUtils = LocaleUtils;\nDayPicker.ModifiersUtils = ModifiersUtils;\n\nexports.DateUtils = DateUtils;\nexports.LocaleUtils = LocaleUtils;\nexports.ModifiersUtils = ModifiersUtils;\nexports.default = DayPicker;\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n// Entry point for the umd package\nvar DayPicker = __webpack_require__(7).default;\nDayPicker.Input = __webpack_require__(15).default;\n\nexports.default = DayPicker;\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _LocaleUtils = __webpack_require__(5);\n\nvar _LocaleUtils2 = _interopRequireDefault(_LocaleUtils);\n\nvar _keys = __webpack_require__(2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Caption = function (_Component) {\n  _inherits(Caption, _Component);\n\n  function Caption(props) {\n    _classCallCheck(this, Caption);\n\n    var _this = _possibleConstructorReturn(this, (Caption.__proto__ || Object.getPrototypeOf(Caption)).call(this, props));\n\n    _this.handleKeyUp = _this.handleKeyUp.bind(_this);\n    return _this;\n  }\n\n  _createClass(Caption, [{\n    key: 'shouldComponentUpdate',\n    value: function shouldComponentUpdate(nextProps) {\n      return nextProps.locale !== this.props.locale || nextProps.classNames !== this.props.classNames || nextProps.date.getMonth() !== this.props.date.getMonth() || nextProps.date.getFullYear() !== this.props.date.getFullYear();\n    }\n  }, {\n    key: 'handleKeyUp',\n    value: function handleKeyUp(e) {\n      if (e.keyCode === _keys.ENTER) {\n        this.props.onClick(e);\n      }\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      var _props = this.props,\n          classNames = _props.classNames,\n          date = _props.date,\n          months = _props.months,\n          locale = _props.locale,\n          localeUtils = _props.localeUtils,\n          onClick = _props.onClick;\n\n      return _react2.default.createElement(\n        'div',\n        { className: classNames.caption, role: 'heading', 'aria-live': 'polite' },\n        _react2.default.createElement(\n          'div',\n          { onClick: onClick, onKeyUp: this.handleKeyUp },\n          months ? months[date.getMonth()] + ' ' + date.getFullYear() : localeUtils.formatMonthTitle(date, locale)\n        )\n      );\n    }\n  }]);\n\n  return Caption;\n}(_react.Component);\n\nCaption.defaultProps = {\n  localeUtils: _LocaleUtils2.default\n};\nexports.default = Caption;\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classNames = __webpack_require__(3);\n\nvar _classNames2 = _interopRequireDefault(_classNames);\n\nvar _keys = __webpack_require__(2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Navbar = function (_Component) {\n  _inherits(Navbar, _Component);\n\n  function Navbar() {\n    var _ref;\n\n    var _temp, _this, _ret;\n\n    _classCallCheck(this, Navbar);\n\n    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Navbar.__proto__ || Object.getPrototypeOf(Navbar)).call.apply(_ref, [this].concat(args))), _this), _this.handleNextClick = function () {\n      if (_this.props.onNextClick) {\n        _this.props.onNextClick();\n      }\n    }, _this.handlePreviousClick = function () {\n      if (_this.props.onPreviousClick) {\n        _this.props.onPreviousClick();\n      }\n    }, _this.handleNextKeyDown = function (e) {\n      if (e.keyCode !== _keys.ENTER && e.keyCode !== _keys.SPACE) {\n        return;\n      }\n      e.preventDefault();\n      _this.handleNextClick();\n    }, _this.handlePreviousKeyDown = function (e) {\n      if (e.keyCode !== _keys.ENTER && e.keyCode !== _keys.SPACE) {\n        return;\n      }\n      e.preventDefault();\n      _this.handlePreviousClick();\n    }, _temp), _possibleConstructorReturn(_this, _ret);\n  }\n\n  _createClass(Navbar, [{\n    key: 'shouldComponentUpdate',\n    value: function shouldComponentUpdate(nextProps) {\n      return nextProps.labels !== this.props.labels || nextProps.dir !== this.props.dir || this.props.showPreviousButton !== nextProps.showPreviousButton || this.props.showNextButton !== nextProps.showNextButton;\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      var _props = this.props,\n          classNames = _props.classNames,\n          className = _props.className,\n          showPreviousButton = _props.showPreviousButton,\n          showNextButton = _props.showNextButton,\n          labels = _props.labels,\n          dir = _props.dir;\n\n\n      var previousClickHandler = void 0;\n      var nextClickHandler = void 0;\n      var previousKeyDownHandler = void 0;\n      var nextKeyDownHandler = void 0;\n      var shouldShowPrevious = void 0;\n      var shouldShowNext = void 0;\n\n      if (dir === 'rtl') {\n        previousClickHandler = this.handleNextClick;\n        nextClickHandler = this.handlePreviousClick;\n        previousKeyDownHandler = this.handleNextKeyDown;\n        nextKeyDownHandler = this.handlePreviousKeyDown;\n        shouldShowNext = showPreviousButton;\n        shouldShowPrevious = showNextButton;\n      } else {\n        previousClickHandler = this.handlePreviousClick;\n        nextClickHandler = this.handleNextClick;\n        previousKeyDownHandler = this.handlePreviousKeyDown;\n        nextKeyDownHandler = this.handleNextKeyDown;\n        shouldShowNext = showNextButton;\n        shouldShowPrevious = showPreviousButton;\n      }\n\n      var previousClassName = shouldShowPrevious ? classNames.navButtonPrev : classNames.navButtonPrev + ' ' + classNames.navButtonInteractionDisabled;\n\n      var nextClassName = shouldShowNext ? classNames.navButtonNext : classNames.navButtonNext + ' ' + classNames.navButtonInteractionDisabled;\n\n      var previousButton = _react2.default.createElement('span', {\n        tabIndex: '0',\n        role: 'button',\n        'aria-label': labels.previousMonth,\n        key: 'previous',\n        className: previousClassName,\n        onKeyDown: shouldShowPrevious ? previousKeyDownHandler : undefined,\n        onClick: shouldShowPrevious ? previousClickHandler : undefined\n      });\n\n      var nextButton = _react2.default.createElement('span', {\n        tabIndex: '0',\n        role: 'button',\n        'aria-label': labels.nextMonth,\n        key: 'right',\n        className: nextClassName,\n        onKeyDown: shouldShowNext ? nextKeyDownHandler : undefined,\n        onClick: shouldShowNext ? nextClickHandler : undefined\n      });\n\n      return _react2.default.createElement(\n        'div',\n        { className: className || classNames.navBar },\n        dir === 'rtl' ? [nextButton, previousButton] : [previousButton, nextButton]\n      );\n    }\n  }]);\n\n  return Navbar;\n}(_react.Component);\n\nNavbar.defaultProps = {\n  classNames: _classNames2.default,\n  dir: 'ltr',\n  labels: {\n    previousMonth: 'Previous Month',\n    nextMonth: 'Next Month'\n  },\n  showPreviousButton: true,\n  showNextButton: true\n};\nexports.default = Navbar;\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _Weekdays = __webpack_require__(12);\n\nvar _Weekdays2 = _interopRequireDefault(_Weekdays);\n\nvar _Day = __webpack_require__(13);\n\nvar _Day2 = _interopRequireDefault(_Day);\n\nvar _keys = __webpack_require__(2);\n\nvar _ModifiersUtils = __webpack_require__(6);\n\nvar ModifiersUtils = _interopRequireWildcard(_ModifiersUtils);\n\nvar _Helpers = __webpack_require__(4);\n\nvar Helpers = _interopRequireWildcard(_Helpers);\n\nvar _DateUtils = __webpack_require__(1);\n\nvar DateUtils = _interopRequireWildcard(_DateUtils);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Month = function (_Component) {\n  _inherits(Month, _Component);\n\n  function Month() {\n    var _ref;\n\n    var _temp, _this, _ret;\n\n    _classCallCheck(this, Month);\n\n    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Month.__proto__ || Object.getPrototypeOf(Month)).call.apply(_ref, [this].concat(args))), _this), _this.renderDay = function (day) {\n      var monthNumber = _this.props.month.getMonth();\n      var propModifiers = Helpers.getModifiersFromProps(_this.props);\n      var dayModifiers = ModifiersUtils.getModifiersForDay(day, propModifiers);\n      if (DateUtils.isSameDay(day, new Date()) && !Object.prototype.hasOwnProperty.call(propModifiers, _this.props.classNames.today)) {\n        dayModifiers.push(_this.props.classNames.today);\n      }\n      if (day.getMonth() !== monthNumber) {\n        dayModifiers.push(_this.props.classNames.outside);\n      }\n\n      var isOutside = day.getMonth() !== monthNumber;\n      var tabIndex = -1;\n      // Focus on the first day of the month\n      if (_this.props.onDayClick && !isOutside && day.getDate() === 1) {\n        tabIndex = _this.props.tabIndex; // eslint-disable-line prefer-destructuring\n      }\n      var key = '' + day.getFullYear() + day.getMonth() + day.getDate();\n      var modifiers = {};\n      dayModifiers.forEach(function (modifier) {\n        modifiers[modifier] = true;\n      });\n\n      return _react2.default.createElement(\n        _Day2.default,\n        {\n          key: '' + (isOutside ? 'outside-' : '') + key,\n          classNames: _this.props.classNames,\n          day: day,\n          modifiers: modifiers,\n          modifiersStyles: _this.props.modifiersStyles,\n          empty: isOutside && !_this.props.showOutsideDays && !_this.props.fixedWeeks,\n          tabIndex: tabIndex,\n          ariaLabel: _this.props.localeUtils.formatDay(day, _this.props.locale),\n          ariaDisabled: isOutside || dayModifiers.indexOf(_this.props.classNames.disabled) > -1,\n          ariaSelected: dayModifiers.indexOf(_this.props.classNames.selected) > -1,\n          onClick: _this.props.onDayClick,\n          onFocus: _this.props.onDayFocus,\n          onKeyDown: _this.props.onDayKeyDown,\n          onMouseEnter: _this.props.onDayMouseEnter,\n          onMouseLeave: _this.props.onDayMouseLeave,\n          onMouseDown: _this.props.onDayMouseDown,\n          onMouseUp: _this.props.onDayMouseUp,\n          onTouchEnd: _this.props.onDayTouchEnd,\n          onTouchStart: _this.props.onDayTouchStart\n        },\n        _this.props.renderDay(day, modifiers)\n      );\n    }, _temp), _possibleConstructorReturn(_this, _ret);\n  }\n\n  _createClass(Month, [{\n    key: 'render',\n    value: function render() {\n      var _this2 = this;\n\n      var _props = this.props,\n          classNames = _props.classNames,\n          month = _props.month,\n          months = _props.months,\n          fixedWeeks = _props.fixedWeeks,\n          captionElement = _props.captionElement,\n          weekdayElement = _props.weekdayElement,\n          locale = _props.locale,\n          localeUtils = _props.localeUtils,\n          weekdaysLong = _props.weekdaysLong,\n          weekdaysShort = _props.weekdaysShort,\n          firstDayOfWeek = _props.firstDayOfWeek,\n          onCaptionClick = _props.onCaptionClick,\n          showWeekNumbers = _props.showWeekNumbers,\n          showWeekDays = _props.showWeekDays,\n          onWeekClick = _props.onWeekClick;\n\n\n      var captionProps = {\n        date: month,\n        classNames: classNames,\n        months: months,\n        localeUtils: localeUtils,\n        locale: locale,\n        onClick: onCaptionClick ? function (e) {\n          return onCaptionClick(month, e);\n        } : undefined\n      };\n      var caption = _react2.default.isValidElement(captionElement) ? _react2.default.cloneElement(captionElement, captionProps) : _react2.default.createElement(captionElement, captionProps);\n\n      var weeks = Helpers.getWeekArray(month, firstDayOfWeek, fixedWeeks);\n      return _react2.default.createElement(\n        'div',\n        { className: classNames.month, role: 'grid' },\n        caption,\n        showWeekDays && _react2.default.createElement(_Weekdays2.default, {\n          classNames: classNames,\n          weekdaysShort: weekdaysShort,\n          weekdaysLong: weekdaysLong,\n          firstDayOfWeek: firstDayOfWeek,\n          showWeekNumbers: showWeekNumbers,\n          locale: locale,\n          localeUtils: localeUtils,\n          weekdayElement: weekdayElement\n        }),\n        _react2.default.createElement(\n          'div',\n          { className: classNames.body, role: 'rowgroup' },\n          weeks.map(function (week) {\n            var weekNumber = void 0;\n            if (showWeekNumbers) {\n              weekNumber = DateUtils.getWeekNumber(week[6]);\n            }\n            return _react2.default.createElement(\n              'div',\n              {\n                key: week[0].getTime(),\n                className: classNames.week,\n                role: 'row'\n              },\n              showWeekNumbers && _react2.default.createElement(\n                'div',\n                {\n                  className: classNames.weekNumber,\n                  tabIndex: onWeekClick ? 0 : -1,\n                  role: 'gridcell',\n                  onClick: onWeekClick ? function (e) {\n                    return onWeekClick(weekNumber, week, e);\n                  } : undefined,\n                  onKeyUp: onWeekClick ? function (e) {\n                    return e.keyCode === _keys.ENTER && onWeekClick(weekNumber, week, e);\n                  } : undefined\n                },\n                _this2.props.renderWeek(weekNumber, week, month)\n              ),\n              week.map(_this2.renderDay)\n            );\n          })\n        )\n      );\n    }\n  }]);\n\n  return Month;\n}(_react.Component);\n\nexports.default = Month;\n\n/***/ }),\n/* 12 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Weekdays = function (_Component) {\n  _inherits(Weekdays, _Component);\n\n  function Weekdays() {\n    _classCallCheck(this, Weekdays);\n\n    return _possibleConstructorReturn(this, (Weekdays.__proto__ || Object.getPrototypeOf(Weekdays)).apply(this, arguments));\n  }\n\n  _createClass(Weekdays, [{\n    key: 'shouldComponentUpdate',\n    value: function shouldComponentUpdate(nextProps) {\n      return this.props !== nextProps;\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      var _props = this.props,\n          classNames = _props.classNames,\n          firstDayOfWeek = _props.firstDayOfWeek,\n          showWeekNumbers = _props.showWeekNumbers,\n          weekdaysLong = _props.weekdaysLong,\n          weekdaysShort = _props.weekdaysShort,\n          locale = _props.locale,\n          localeUtils = _props.localeUtils,\n          weekdayElement = _props.weekdayElement;\n\n      var days = [];\n      for (var i = 0; i < 7; i += 1) {\n        var weekday = (i + firstDayOfWeek) % 7;\n        var elementProps = {\n          key: i,\n          className: classNames.weekday,\n          weekday: weekday,\n          weekdaysLong: weekdaysLong,\n          weekdaysShort: weekdaysShort,\n          localeUtils: localeUtils,\n          locale: locale\n        };\n        var element = _react2.default.isValidElement(weekdayElement) ? _react2.default.cloneElement(weekdayElement, elementProps) : _react2.default.createElement(weekdayElement, elementProps);\n        days.push(element);\n      }\n\n      return _react2.default.createElement(\n        'div',\n        { className: classNames.weekdays, role: 'rowgroup' },\n        _react2.default.createElement(\n          'div',\n          { className: classNames.weekdaysRow, role: 'row' },\n          showWeekNumbers && _react2.default.createElement('div', { className: classNames.weekday }),\n          days\n        )\n      );\n    }\n  }]);\n\n  return Weekdays;\n}(_react.Component);\n\nexports.default = Weekdays;\n\n/***/ }),\n/* 13 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _DateUtils = __webpack_require__(1);\n\nvar _Helpers = __webpack_require__(4);\n\nvar _classNames = __webpack_require__(3);\n\nvar _classNames2 = _interopRequireDefault(_classNames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint-disable jsx-a11y/no-static-element-interactions, react/forbid-prop-types */\n\nfunction handleEvent(handler, day, modifiers) {\n  if (!handler) {\n    return undefined;\n  }\n  return function (e) {\n    e.persist();\n    handler(day, modifiers, e);\n  };\n}\n\nvar Day = function (_Component) {\n  _inherits(Day, _Component);\n\n  function Day() {\n    _classCallCheck(this, Day);\n\n    return _possibleConstructorReturn(this, (Day.__proto__ || Object.getPrototypeOf(Day)).apply(this, arguments));\n  }\n\n  _createClass(Day, [{\n    key: 'shouldComponentUpdate',\n    value: function shouldComponentUpdate(nextProps) {\n      var _this2 = this;\n\n      var propNames = Object.keys(this.props);\n      var nextPropNames = Object.keys(nextProps);\n      if (propNames.length !== nextPropNames.length) {\n        return true;\n      }\n      return propNames.some(function (name) {\n        if (name === 'modifiers' || name === 'modifiersStyles' || name === 'classNames') {\n          var prop = _this2.props[name];\n          var nextProp = nextProps[name];\n          var modifiers = Object.keys(prop);\n          var nextModifiers = Object.keys(nextProp);\n          if (modifiers.length !== nextModifiers.length) {\n            return true;\n          }\n          return modifiers.some(function (mod) {\n            return !(0, _Helpers.hasOwnProp)(nextProp, mod) || prop[mod] !== nextProp[mod];\n          });\n        }\n        if (name === 'day') {\n          return !(0, _DateUtils.isSameDay)(_this2.props[name], nextProps[name]);\n        }\n        return !(0, _Helpers.hasOwnProp)(nextProps, name) || _this2.props[name] !== nextProps[name];\n      });\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      var _props = this.props,\n          classNames = _props.classNames,\n          modifiersStyles = _props.modifiersStyles,\n          day = _props.day,\n          tabIndex = _props.tabIndex,\n          empty = _props.empty,\n          modifiers = _props.modifiers,\n          onMouseEnter = _props.onMouseEnter,\n          onMouseLeave = _props.onMouseLeave,\n          onMouseUp = _props.onMouseUp,\n          onMouseDown = _props.onMouseDown,\n          onClick = _props.onClick,\n          onKeyDown = _props.onKeyDown,\n          onTouchStart = _props.onTouchStart,\n          onTouchEnd = _props.onTouchEnd,\n          onFocus = _props.onFocus,\n          ariaLabel = _props.ariaLabel,\n          ariaDisabled = _props.ariaDisabled,\n          ariaSelected = _props.ariaSelected,\n          children = _props.children;\n\n\n      var className = classNames.day;\n      if (classNames !== _classNames2.default) {\n        // When using CSS modules prefix the modifier as required by the BEM syntax\n        className += ' ' + Object.keys(modifiers).join(' ');\n      } else {\n        className += Object.keys(modifiers).map(function (modifier) {\n          return ' ' + className + '--' + modifier;\n        }).join('');\n      }\n\n      var style = void 0;\n      if (modifiersStyles) {\n        Object.keys(modifiers).filter(function (modifier) {\n          return !!modifiersStyles[modifier];\n        }).forEach(function (modifier) {\n          style = _extends({}, style, modifiersStyles[modifier]);\n        });\n      }\n\n      if (empty) {\n        return _react2.default.createElement('div', { 'aria-disabled': true, className: className, style: style });\n      }\n      return _react2.default.createElement(\n        'div',\n        {\n          className: className,\n          tabIndex: tabIndex,\n          style: style,\n          role: 'gridcell',\n          'aria-label': ariaLabel,\n          'aria-disabled': ariaDisabled,\n          'aria-selected': ariaSelected,\n          onClick: handleEvent(onClick, day, modifiers),\n          onKeyDown: handleEvent(onKeyDown, day, modifiers),\n          onMouseEnter: handleEvent(onMouseEnter, day, modifiers),\n          onMouseLeave: handleEvent(onMouseLeave, day, modifiers),\n          onMouseUp: handleEvent(onMouseUp, day, modifiers),\n          onMouseDown: handleEvent(onMouseDown, day, modifiers),\n          onTouchEnd: handleEvent(onTouchEnd, day, modifiers),\n          onTouchStart: handleEvent(onTouchStart, day, modifiers),\n          onFocus: handleEvent(onFocus, day, modifiers)\n        },\n        children\n      );\n    }\n  }]);\n\n  return Day;\n}(_react.Component);\n\nDay.defaultProps = {\n  tabIndex: -1\n};\nDay.defaultProps = {\n  modifiers: {},\n  modifiersStyles: {},\n  empty: false\n};\nexports.default = Day;\n\n/***/ }),\n/* 14 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Weekday = function (_Component) {\n  _inherits(Weekday, _Component);\n\n  function Weekday() {\n    _classCallCheck(this, Weekday);\n\n    return _possibleConstructorReturn(this, (Weekday.__proto__ || Object.getPrototypeOf(Weekday)).apply(this, arguments));\n  }\n\n  _createClass(Weekday, [{\n    key: 'shouldComponentUpdate',\n    value: function shouldComponentUpdate(nextProps) {\n      return this.props !== nextProps;\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      var _props = this.props,\n          weekday = _props.weekday,\n          className = _props.className,\n          weekdaysLong = _props.weekdaysLong,\n          weekdaysShort = _props.weekdaysShort,\n          localeUtils = _props.localeUtils,\n          locale = _props.locale;\n\n      var title = void 0;\n      if (weekdaysLong) {\n        title = weekdaysLong[weekday];\n      } else {\n        title = localeUtils.formatWeekdayLong(weekday, locale);\n      }\n      var content = void 0;\n      if (weekdaysShort) {\n        content = weekdaysShort[weekday];\n      } else {\n        content = localeUtils.formatWeekdayShort(weekday, locale);\n      }\n\n      return _react2.default.createElement(\n        'div',\n        { className: className, role: 'columnheader' },\n        _react2.default.createElement(\n          'abbr',\n          { title: title },\n          content\n        )\n      );\n    }\n  }]);\n\n  return Weekday;\n}(_react.Component);\n\nexports.default = Weekday;\n\n/***/ }),\n/* 15 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.HIDE_TIMEOUT = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.OverlayComponent = OverlayComponent;\nexports.defaultFormat = defaultFormat;\nexports.defaultParse = defaultParse;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _DayPicker = __webpack_require__(7);\n\nvar _DayPicker2 = _interopRequireDefault(_DayPicker);\n\nvar _DateUtils = __webpack_require__(1);\n\nvar _ModifiersUtils = __webpack_require__(6);\n\nvar _keys = __webpack_require__(2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\n// When clicking on a day cell, overlay will be hidden after this timeout\nvar HIDE_TIMEOUT = exports.HIDE_TIMEOUT = 100;\n\n/**\n * The default component used as Overlay.\n *\n * @param {Object} props\n */\nfunction OverlayComponent(_ref) {\n  var input = _ref.input,\n      selectedDay = _ref.selectedDay,\n      month = _ref.month,\n      children = _ref.children,\n      classNames = _ref.classNames,\n      props = _objectWithoutProperties(_ref, ['input', 'selectedDay', 'month', 'children', 'classNames']);\n\n  return _react2.default.createElement(\n    'div',\n    _extends({ className: classNames.overlayWrapper }, props),\n    _react2.default.createElement(\n      'div',\n      { className: classNames.overlay },\n      children\n    )\n  );\n}\n\n/**\n * The default function used to format a Date to String, passed to the `format`\n * prop.\n * @param {Date} d\n * @return {String}\n */\nfunction defaultFormat(d) {\n  if ((0, _DateUtils.isDate)(d)) {\n    var year = d.getFullYear();\n    var month = '' + (d.getMonth() + 1);\n    var day = '' + d.getDate();\n    return year + '-' + month + '-' + day;\n  }\n  return '';\n}\n\n/**\n * The default function used to parse a String as Date, passed to the `parse`\n * prop.\n * @param {String} str\n * @return {Date}\n */\nfunction defaultParse(str) {\n  if (typeof str !== 'string') {\n    return undefined;\n  }\n  var split = str.split('-');\n  if (split.length !== 3) {\n    return undefined;\n  }\n  var year = parseInt(split[0], 10);\n  var month = parseInt(split[1], 10) - 1;\n  var day = parseInt(split[2], 10);\n  if (isNaN(year) || String(year).length > 4 || isNaN(month) || isNaN(day) || day <= 0 || day > 31 || month < 0 || month >= 12) {\n    return undefined;\n  }\n\n  return new Date(year, month, day, 12, 0, 0, 0); // always set noon to avoid time zone issues\n}\n\nvar DayPickerInput = function (_React$Component) {\n  _inherits(DayPickerInput, _React$Component);\n\n  function DayPickerInput(props) {\n    _classCallCheck(this, DayPickerInput);\n\n    var _this = _possibleConstructorReturn(this, (DayPickerInput.__proto__ || Object.getPrototypeOf(DayPickerInput)).call(this, props));\n\n    _this.input = null;\n    _this.daypicker = null;\n    _this.clickTimeout = null;\n    _this.hideTimeout = null;\n    _this.inputBlurTimeout = null;\n    _this.inputFocusTimeout = null;\n\n\n    _this.state = _this.getInitialStateFromProps(props);\n    _this.state.showOverlay = props.showOverlay;\n\n    _this.hideAfterDayClick = _this.hideAfterDayClick.bind(_this);\n    _this.handleInputClick = _this.handleInputClick.bind(_this);\n    _this.handleInputFocus = _this.handleInputFocus.bind(_this);\n    _this.handleInputBlur = _this.handleInputBlur.bind(_this);\n    _this.handleInputChange = _this.handleInputChange.bind(_this);\n    _this.handleInputKeyDown = _this.handleInputKeyDown.bind(_this);\n    _this.handleInputKeyUp = _this.handleInputKeyUp.bind(_this);\n    _this.handleDayClick = _this.handleDayClick.bind(_this);\n    _this.handleMonthChange = _this.handleMonthChange.bind(_this);\n    _this.handleOverlayFocus = _this.handleOverlayFocus.bind(_this);\n    _this.handleOverlayBlur = _this.handleOverlayBlur.bind(_this);\n    return _this;\n  }\n\n  _createClass(DayPickerInput, [{\n    key: 'componentDidUpdate',\n    value: function componentDidUpdate(prevProps) {\n      var newState = {};\n\n      // Current props\n      var _props = this.props,\n          value = _props.value,\n          formatDate = _props.formatDate,\n          format = _props.format,\n          dayPickerProps = _props.dayPickerProps;\n\n      // Update the input value if `value`, `dayPickerProps.locale` or `format`\n      // props have changed\n\n      if (value !== prevProps.value || dayPickerProps.locale !== prevProps.dayPickerProps.locale || format !== prevProps.format) {\n        if ((0, _DateUtils.isDate)(value)) {\n          newState.value = formatDate(value, format, dayPickerProps.locale);\n        } else {\n          newState.value = value;\n        }\n      }\n\n      // Update the month if the months from props changed\n      var prevMonth = prevProps.dayPickerProps.month;\n      if (dayPickerProps.month && dayPickerProps.month !== prevMonth && !(0, _DateUtils.isSameMonth)(dayPickerProps.month, prevMonth)) {\n        newState.month = dayPickerProps.month;\n      }\n\n      // Updated the selected days from props if they changed\n      if (prevProps.dayPickerProps.selectedDays !== dayPickerProps.selectedDays) {\n        newState.selectedDays = dayPickerProps.selectedDays;\n      }\n\n      if (Object.keys(newState).length > 0) {\n        // eslint-disable-next-line react/no-did-update-set-state\n        this.setState(newState);\n      }\n    }\n  }, {\n    key: 'componentWillUnmount',\n    value: function componentWillUnmount() {\n      clearTimeout(this.clickTimeout);\n      clearTimeout(this.hideTimeout);\n      clearTimeout(this.inputFocusTimeout);\n      clearTimeout(this.inputBlurTimeout);\n      clearTimeout(this.overlayBlurTimeout);\n    }\n  }, {\n    key: 'getInitialMonthFromProps',\n    value: function getInitialMonthFromProps(props) {\n      var dayPickerProps = props.dayPickerProps,\n          format = props.format;\n\n      var day = void 0;\n      if (props.value) {\n        if ((0, _DateUtils.isDate)(props.value)) {\n          day = props.value;\n        } else {\n          day = props.parseDate(props.value, format, dayPickerProps.locale);\n        }\n      }\n      return dayPickerProps.initialMonth || dayPickerProps.month || day || new Date();\n    }\n  }, {\n    key: 'getInitialStateFromProps',\n    value: function getInitialStateFromProps(props) {\n      var dayPickerProps = props.dayPickerProps,\n          formatDate = props.formatDate,\n          format = props.format,\n          typedValue = props.typedValue;\n      var value = props.value;\n\n      if (props.value && (0, _DateUtils.isDate)(props.value)) {\n        value = formatDate(props.value, format, dayPickerProps.locale);\n      }\n\n      return {\n        value: value,\n        typedValue: typedValue,\n        month: this.getInitialMonthFromProps(props),\n        selectedDays: dayPickerProps.selectedDays\n      };\n    }\n  }, {\n    key: 'getInput',\n    value: function getInput() {\n      return this.input;\n    }\n  }, {\n    key: 'getDayPicker',\n    value: function getDayPicker() {\n      return this.daypicker;\n    }\n\n    /**\n     * Update the component's state and fire the `onDayChange` event passing the\n     * day's modifiers to it.\n     *\n     * @param {Date} day - Will be used for changing the month\n     * @param {String} value - Input field value\n     * @private\n     */\n\n  }, {\n    key: 'updateState',\n    value: function updateState(day, value, callback) {\n      var _this2 = this;\n\n      var _props2 = this.props,\n          dayPickerProps = _props2.dayPickerProps,\n          onDayChange = _props2.onDayChange;\n\n      this.setState({ month: day, value: value, typedValue: '' }, function () {\n        if (callback) {\n          callback();\n        }\n        if (!onDayChange) {\n          return;\n        }\n        var modifiersObj = _extends({\n          disabled: dayPickerProps.disabledDays,\n          selected: dayPickerProps.selectedDays\n        }, dayPickerProps.modifiers);\n        var modifiers = (0, _ModifiersUtils.getModifiersForDay)(day, modifiersObj).reduce(function (obj, modifier) {\n          return _extends({}, obj, _defineProperty({}, modifier, true));\n        }, {});\n        onDayChange(day, modifiers, _this2);\n      });\n    }\n\n    /**\n     * Show the Day Picker overlay.\n     *\n     * @memberof DayPickerInput\n     */\n\n  }, {\n    key: 'showDayPicker',\n    value: function showDayPicker() {\n      var _this3 = this;\n\n      var _props3 = this.props,\n          parseDate = _props3.parseDate,\n          format = _props3.format,\n          dayPickerProps = _props3.dayPickerProps;\n      var _state = this.state,\n          value = _state.value,\n          showOverlay = _state.showOverlay;\n\n      if (showOverlay) {\n        return;\n      }\n      // Reset the current displayed month when showing the overlay\n      var month = value ? parseDate(value, format, dayPickerProps.locale) // Use the month in the input field\n      : this.getInitialMonthFromProps(this.props); // Restore the month from the props\n      this.setState(function (state) {\n        return {\n          showOverlay: true,\n          month: month || state.month\n        };\n      }, function () {\n        if (_this3.props.onDayPickerShow) _this3.props.onDayPickerShow();\n      });\n    }\n\n    /**\n     * Hide the Day Picker overlay\n     *\n     * @memberof DayPickerInput\n     */\n\n  }, {\n    key: 'hideDayPicker',\n    value: function hideDayPicker() {\n      var _this4 = this;\n\n      if (this.state.showOverlay === false) {\n        return;\n      }\n      this.setState({ showOverlay: false }, function () {\n        if (_this4.props.onDayPickerHide) _this4.props.onDayPickerHide();\n      });\n    }\n  }, {\n    key: 'hideAfterDayClick',\n    value: function hideAfterDayClick() {\n      var _this5 = this;\n\n      if (!this.props.hideOnDayClick) {\n        return;\n      }\n      this.hideTimeout = setTimeout(function () {\n        _this5.overlayHasFocus = false;\n        _this5.hideDayPicker();\n      }, HIDE_TIMEOUT);\n    }\n  }, {\n    key: 'handleInputClick',\n    value: function handleInputClick(e) {\n      this.showDayPicker();\n      if (this.props.inputProps.onClick) {\n        e.persist();\n        this.props.inputProps.onClick(e);\n      }\n    }\n  }, {\n    key: 'handleInputFocus',\n    value: function handleInputFocus(e) {\n      var _this6 = this;\n\n      this.showDayPicker();\n      // Set `overlayHasFocus` after a timeout so the overlay can be hidden when\n      // the input is blurred\n      this.inputFocusTimeout = setTimeout(function () {\n        _this6.overlayHasFocus = false;\n      }, 2);\n      if (this.props.inputProps.onFocus) {\n        e.persist();\n        this.props.inputProps.onFocus(e);\n      }\n    }\n\n    // When the input is blurred, the overlay should disappear. However the input\n    // is blurred also when the user interacts with the overlay (e.g. the overlay\n    // get the focus by clicking it). In these cases, the overlay should not be\n    // hidden. There are different approaches to avoid hiding the overlay when\n    // this happens, but the only cross-browser hack we’ve found is to set all\n    // these timeouts in code before changing `overlayHasFocus`.\n\n  }, {\n    key: 'handleInputBlur',\n    value: function handleInputBlur(e) {\n      var _this7 = this;\n\n      this.inputBlurTimeout = setTimeout(function () {\n        if (!_this7.overlayHasFocus) {\n          _this7.hideDayPicker();\n        }\n      }, 1);\n      if (this.props.inputProps.onBlur) {\n        e.persist();\n        this.props.inputProps.onBlur(e);\n      }\n    }\n  }, {\n    key: 'handleOverlayFocus',\n    value: function handleOverlayFocus(e) {\n      e.preventDefault();\n      this.overlayHasFocus = true;\n      if (!this.props.keepFocus || !this.input || typeof this.input.focus !== 'function') {\n        return;\n      }\n      this.input.focus();\n    }\n  }, {\n    key: 'handleOverlayBlur',\n    value: function handleOverlayBlur() {\n      var _this8 = this;\n\n      // We need to set a timeout otherwise IE11 will hide the overlay when\n      // focusing it\n      this.overlayBlurTimeout = setTimeout(function () {\n        _this8.overlayHasFocus = false;\n      }, 3);\n    }\n  }, {\n    key: 'handleInputChange',\n    value: function handleInputChange(e) {\n      var _props4 = this.props,\n          dayPickerProps = _props4.dayPickerProps,\n          format = _props4.format,\n          inputProps = _props4.inputProps,\n          onDayChange = _props4.onDayChange,\n          parseDate = _props4.parseDate;\n\n      if (inputProps.onChange) {\n        e.persist();\n        inputProps.onChange(e);\n      }\n      var value = e.target.value;\n\n      if (value.trim() === '') {\n        this.setState({ value: value, typedValue: '' });\n        if (onDayChange) onDayChange(undefined, {}, this);\n        return;\n      }\n      var day = parseDate(value, format, dayPickerProps.locale);\n      if (!day) {\n        // Day is invalid: we save the value in the typedValue state\n        this.setState({ value: value, typedValue: value });\n        if (onDayChange) onDayChange(undefined, {}, this);\n        return;\n      }\n      this.updateState(day, value);\n    }\n  }, {\n    key: 'handleInputKeyDown',\n    value: function handleInputKeyDown(e) {\n      if (e.keyCode === _keys.TAB) {\n        this.hideDayPicker();\n      } else {\n        this.showDayPicker();\n      }\n      if (this.props.inputProps.onKeyDown) {\n        e.persist();\n        this.props.inputProps.onKeyDown(e);\n      }\n    }\n  }, {\n    key: 'handleInputKeyUp',\n    value: function handleInputKeyUp(e) {\n      if (e.keyCode === _keys.ESC) {\n        this.hideDayPicker();\n      } else {\n        this.showDayPicker();\n      }\n      if (this.props.inputProps.onKeyUp) {\n        e.persist();\n        this.props.inputProps.onKeyUp(e);\n      }\n    }\n  }, {\n    key: 'handleMonthChange',\n    value: function handleMonthChange(month) {\n      var _this9 = this;\n\n      this.setState({ month: month }, function () {\n        if (_this9.props.dayPickerProps && _this9.props.dayPickerProps.onMonthChange) {\n          _this9.props.dayPickerProps.onMonthChange(month);\n        }\n      });\n    }\n  }, {\n    key: 'handleDayClick',\n    value: function handleDayClick(day, modifiers, e) {\n      var _this10 = this;\n\n      var _props5 = this.props,\n          clickUnselectsDay = _props5.clickUnselectsDay,\n          dayPickerProps = _props5.dayPickerProps,\n          onDayChange = _props5.onDayChange,\n          formatDate = _props5.formatDate,\n          format = _props5.format;\n\n      if (dayPickerProps.onDayClick) {\n        dayPickerProps.onDayClick(day, modifiers, e);\n      }\n\n      // Do nothing if the day is disabled\n      if (modifiers.disabled || dayPickerProps && dayPickerProps.classNames && modifiers[dayPickerProps.classNames.disabled]) {\n        return;\n      }\n\n      // If the clicked day is already selected, remove the clicked day\n      // from the selected days and empty the field value\n      if (modifiers.selected && clickUnselectsDay) {\n        var selectedDays = this.state.selectedDays;\n\n        if (Array.isArray(selectedDays)) {\n          selectedDays = selectedDays.slice(0);\n          var selectedDayIdx = selectedDays.indexOf(day);\n          selectedDays.splice(selectedDayIdx, 1);\n        } else if (selectedDays) {\n          selectedDays = null;\n        }\n\n        this.setState({ value: '', typedValue: '', selectedDays: selectedDays }, this.hideAfterDayClick);\n\n        if (onDayChange) {\n          onDayChange(undefined, modifiers, this);\n        }\n        return;\n      }\n\n      var value = formatDate(day, format, dayPickerProps.locale);\n      this.setState({ value: value, typedValue: '', month: day }, function () {\n        if (onDayChange) {\n          onDayChange(day, modifiers, _this10);\n        }\n        _this10.hideAfterDayClick();\n      });\n    }\n  }, {\n    key: 'renderOverlay',\n    value: function renderOverlay() {\n      var _this11 = this;\n\n      var _props6 = this.props,\n          classNames = _props6.classNames,\n          dayPickerProps = _props6.dayPickerProps,\n          parseDate = _props6.parseDate,\n          formatDate = _props6.formatDate,\n          format = _props6.format;\n      var _state2 = this.state,\n          selectedDays = _state2.selectedDays,\n          value = _state2.value;\n\n      var selectedDay = void 0;\n      if (!selectedDays && value) {\n        var day = parseDate(value, format, dayPickerProps.locale);\n        if (day) {\n          selectedDay = day;\n        }\n      } else if (selectedDays) {\n        selectedDay = selectedDays;\n      }\n      var onTodayButtonClick = void 0;\n      if (dayPickerProps.todayButton) {\n        // Set the current day when clicking the today button\n        onTodayButtonClick = function onTodayButtonClick() {\n          return _this11.updateState(new Date(), formatDate(new Date(), format, dayPickerProps.locale), _this11.hideAfterDayClick);\n        };\n      }\n      var Overlay = this.props.overlayComponent;\n      return _react2.default.createElement(\n        Overlay,\n        {\n          classNames: classNames,\n          month: this.state.month,\n          selectedDay: selectedDay,\n          input: this.input,\n          tabIndex: 0 // tabIndex is necessary to catch focus/blur events on Safari\n          , onFocus: this.handleOverlayFocus,\n          onBlur: this.handleOverlayBlur\n        },\n        _react2.default.createElement(_DayPicker2.default, _extends({\n          ref: function ref(el) {\n            return _this11.daypicker = el;\n          },\n          onTodayButtonClick: onTodayButtonClick\n        }, dayPickerProps, {\n          month: this.state.month,\n          selectedDays: selectedDay,\n          onDayClick: this.handleDayClick,\n          onMonthChange: this.handleMonthChange\n        }))\n      );\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      var _this12 = this;\n\n      var Input = this.props.component;\n      var inputProps = this.props.inputProps;\n\n      return _react2.default.createElement(\n        'div',\n        { className: this.props.classNames.container, style: this.props.style },\n        _react2.default.createElement(Input, _extends({\n          ref: function ref(el) {\n            return _this12.input = el;\n          },\n          placeholder: this.props.placeholder\n        }, inputProps, {\n          value: this.state.value || this.state.typedValue,\n          onChange: this.handleInputChange,\n          onFocus: this.handleInputFocus,\n          onBlur: this.handleInputBlur,\n          onKeyDown: this.handleInputKeyDown,\n          onKeyUp: this.handleInputKeyUp,\n          onClick: !inputProps.disabled ? this.handleInputClick : undefined\n        })),\n        this.state.showOverlay && this.renderOverlay()\n      );\n    }\n  }]);\n\n  return DayPickerInput;\n}(_react2.default.Component);\n\nDayPickerInput.defaultProps = {\n  dayPickerProps: {},\n  value: '',\n  typedValue: '',\n  placeholder: 'YYYY-M-D',\n  format: 'L',\n  formatDate: defaultFormat,\n  parseDate: defaultParse,\n  showOverlay: false,\n  hideOnDayClick: true,\n  clickUnselectsDay: false,\n  keepFocus: true,\n  component: 'input',\n  inputProps: {},\n  overlayComponent: OverlayComponent,\n  classNames: {\n    container: 'DayPickerInput',\n    overlayWrapper: 'DayPickerInput-OverlayWrapper',\n    overlay: 'DayPickerInput-Overlay'\n  }\n};\nexports.default = DayPickerInput;\n\n/***/ })\n/******/ ])[\"default\"];\n});\n\n\n// WEBPACK FOOTER //\n// react-day-picker.min.js","module.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}\n// module id = 0\n// module chunks = 0","/**\n * Clone a date object.\n *\n * @export\n * @param  {Date} d The date to clone\n * @return {Date} The cloned date\n */\nexport function clone(d) {\n  return new Date(d.getTime());\n}\n\n/**\n * Return `true` if the passed value is a valid JavaScript Date object.\n *\n * @export\n * @param {any} value\n * @returns {Boolean}\n */\nexport function isDate(value) {\n  return value instanceof Date && !isNaN(value.valueOf());\n}\n\n/**\n * Return `d` as a new date with `n` months added.\n *\n * @export\n * @param {Date} d\n * @param {number} n\n */\nexport function addMonths(d, n) {\n  const newDate = clone(d);\n  newDate.setMonth(d.getMonth() + n);\n  return newDate;\n}\n\n/**\n * Return `true` if two dates are the same day, ignoring the time.\n *\n * @export\n * @param  {Date}  d1\n * @param  {Date}  d2\n * @return {Boolean}\n */\nexport function isSameDay(d1, d2) {\n  if (!d1 || !d2) {\n    return false;\n  }\n  return (\n    d1.getDate() === d2.getDate() &&\n    d1.getMonth() === d2.getMonth() &&\n    d1.getFullYear() === d2.getFullYear()\n  );\n}\n\n/**\n * Return `true` if two dates fall in the same month.\n *\n * @export\n * @param  {Date}  d1\n * @param  {Date}  d2\n * @return {Boolean}\n */\nexport function isSameMonth(d1, d2) {\n  if (!d1 || !d2) {\n    return false;\n  }\n  return (\n    d1.getMonth() === d2.getMonth() && d1.getFullYear() === d2.getFullYear()\n  );\n}\n\n/**\n * Returns `true` if the first day is before the second day.\n *\n * @export\n * @param {Date} d1\n * @param {Date} d2\n * @returns {Boolean}\n */\nexport function isDayBefore(d1, d2) {\n  const day1 = clone(d1).setHours(0, 0, 0, 0);\n  const day2 = clone(d2).setHours(0, 0, 0, 0);\n  return day1 < day2;\n}\n\n/**\n * Returns `true` if the first day is after the second day.\n *\n * @export\n * @param {Date} d1\n * @param {Date} d2\n * @returns {Boolean}\n */\nexport function isDayAfter(d1, d2) {\n  const day1 = clone(d1).setHours(0, 0, 0, 0);\n  const day2 = clone(d2).setHours(0, 0, 0, 0);\n  return day1 > day2;\n}\n\n/**\n * Return `true` if a day is in the past, e.g. yesterday or any day\n * before yesterday.\n *\n * @export\n * @param  {Date}  d\n * @return {Boolean}\n */\nexport function isPastDay(d) {\n  const today = new Date();\n  today.setHours(0, 0, 0, 0);\n  return isDayBefore(d, today);\n}\n\n/**\n * Return `true` if a day is in the future, e.g. tomorrow or any day\n * after tomorrow.\n *\n * @export\n * @param  {Date}  d\n * @return {Boolean}\n */\nexport function isFutureDay(d) {\n  const tomorrow = new Date(new Date().getTime() + 24 * 60 * 60 * 1000);\n  tomorrow.setHours(0, 0, 0, 0);\n  return d >= tomorrow;\n}\n\n/**\n * Return `true` if day `d` is between days `d1` and `d2`,\n * without including them.\n *\n * @export\n * @param  {Date}  d\n * @param  {Date}  d1\n * @param  {Date}  d2\n * @return {Boolean}\n */\nexport function isDayBetween(d, d1, d2) {\n  const date = clone(d);\n  date.setHours(0, 0, 0, 0);\n  return (\n    (isDayAfter(date, d1) && isDayBefore(date, d2)) ||\n    (isDayAfter(date, d2) && isDayBefore(date, d1))\n  );\n}\n\n/**\n * Add a day to a range and return a new range. A range is an object with\n * `from` and `to` days.\n *\n * @export\n * @param {Date} day\n * @param {Object} range\n * @return {Object} Returns a new range object\n */\nexport function addDayToRange(day, range = { from: null, to: null }) {\n  let { from, to } = range;\n  if (!from) {\n    from = day;\n  } else if (from && to && isSameDay(from, to) && isSameDay(day, from)) {\n    from = null;\n    to = null;\n  } else if (to && isDayBefore(day, from)) {\n    from = day;\n  } else if (to && isSameDay(day, to)) {\n    from = day;\n    to = day;\n  } else {\n    to = day;\n    if (isDayBefore(to, from)) {\n      to = from;\n      from = day;\n    }\n  }\n\n  return { from, to };\n}\n\n/**\n * Return `true` if a day is included in a range of days.\n *\n * @export\n * @param  {Date}  day\n * @param  {Object}  range\n * @return {Boolean}\n */\nexport function isDayInRange(day, range) {\n  const { from, to } = range;\n  return (\n    (from && isSameDay(day, from)) ||\n    (to && isSameDay(day, to)) ||\n    (from && to && isDayBetween(day, from, to))\n  );\n}\n\n/**\n * Return the year's week number (as per ISO, i.e. with the week starting from monday)\n * for the given day.\n *\n * @export\n * @param {Date} day\n * @returns {Number}\n */\nexport function getWeekNumber(day) {\n  const date = clone(day);\n  date.setHours(0, 0, 0);\n  date.setDate(date.getDate() + 4 - (date.getDay() || 7));\n  return Math.ceil(\n    ((date - new Date(date.getFullYear(), 0, 1)) / 8.64e7 + 1) / 7\n  );\n}\n\nexport default {\n  addDayToRange,\n  addMonths,\n  clone,\n  getWeekNumber,\n  isDate,\n  isDayAfter,\n  isDayBefore,\n  isDayBetween,\n  isDayInRange,\n  isFutureDay,\n  isPastDay,\n  isSameDay,\n  isSameMonth,\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/DateUtils.js","export const LEFT = 37;\nexport const UP = 38;\nexport const RIGHT = 39;\nexport const DOWN = 40;\nexport const ENTER = 13;\nexport const SPACE = 32;\nexport const ESC = 27;\nexport const TAB = 9;\n\n\n\n// WEBPACK FOOTER //\n// ./src/keys.js","// Proxy object to map classnames when css modules are not used\n\nexport default {\n  container: 'DayPicker',\n  wrapper: 'DayPicker-wrapper',\n  interactionDisabled: 'DayPicker--interactionDisabled',\n  months: 'DayPicker-Months',\n  month: 'DayPicker-Month',\n\n  navBar: 'DayPicker-NavBar',\n  navButtonPrev: 'DayPicker-NavButton DayPicker-NavButton--prev',\n  navButtonNext: 'DayPicker-NavButton DayPicker-NavButton--next',\n  navButtonInteractionDisabled: 'DayPicker-NavButton--interactionDisabled',\n\n  caption: 'DayPicker-Caption',\n  weekdays: 'DayPicker-Weekdays',\n  weekdaysRow: 'DayPicker-WeekdaysRow',\n  weekday: 'DayPicker-Weekday',\n  body: 'DayPicker-Body',\n  week: 'DayPicker-Week',\n  weekNumber: 'DayPicker-WeekNumber',\n  day: 'DayPicker-Day',\n  footer: 'DayPicker-Footer',\n  todayButton: 'DayPicker-TodayButton',\n\n  // default modifiers\n  today: 'today',\n  selected: 'selected',\n  disabled: 'disabled',\n  outside: 'outside',\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/classNames.js","import { clone } from './DateUtils';\nimport { getFirstDayOfWeek } from './LocaleUtils';\nimport defaultClassNames from './classNames';\n\nexport function cancelEvent(e) {\n  e.preventDefault();\n  e.stopPropagation();\n}\n\nexport function getFirstDayOfMonth(d) {\n  return new Date(d.getFullYear(), d.getMonth(), 1, 12);\n}\n\nexport function getDaysInMonth(d) {\n  const resultDate = getFirstDayOfMonth(d);\n\n  resultDate.setMonth(resultDate.getMonth() + 1);\n  resultDate.setDate(resultDate.getDate() - 1);\n\n  return resultDate.getDate();\n}\n\nexport function getModifiersFromProps(props) {\n  const modifiers = { ...props.modifiers };\n  if (props.selectedDays) {\n    modifiers[props.classNames.selected] = props.selectedDays;\n  }\n  if (props.disabledDays) {\n    modifiers[props.classNames.disabled] = props.disabledDays;\n  }\n  return modifiers;\n}\n\nexport function getFirstDayOfWeekFromProps(props) {\n  const { firstDayOfWeek, locale = 'en', localeUtils = {} } = props;\n  if (!isNaN(firstDayOfWeek)) {\n    return firstDayOfWeek;\n  }\n  if (localeUtils.getFirstDayOfWeek) {\n    return localeUtils.getFirstDayOfWeek(locale);\n  }\n  return 0;\n}\n\nexport function isRangeOfDates(value) {\n  return !!(value && value.from && value.to);\n}\n\nexport function getMonthsDiff(d1, d2) {\n  return (\n    d2.getMonth() - d1.getMonth() + 12 * (d2.getFullYear() - d1.getFullYear())\n  );\n}\n\nexport function getWeekArray(\n  d,\n  firstDayOfWeek = getFirstDayOfWeek(),\n  fixedWeeks\n) {\n  const daysInMonth = getDaysInMonth(d);\n  const dayArray = [];\n\n  let week = [];\n  const weekArray = [];\n\n  for (let i = 1; i <= daysInMonth; i += 1) {\n    dayArray.push(new Date(d.getFullYear(), d.getMonth(), i, 12));\n  }\n\n  dayArray.forEach(day => {\n    if (week.length > 0 && day.getDay() === firstDayOfWeek) {\n      weekArray.push(week);\n      week = [];\n    }\n    week.push(day);\n    if (dayArray.indexOf(day) === dayArray.length - 1) {\n      weekArray.push(week);\n    }\n  });\n\n  // unshift days to start the first week\n  const firstWeek = weekArray[0];\n  for (let i = 7 - firstWeek.length; i > 0; i -= 1) {\n    const outsideDate = clone(firstWeek[0]);\n    outsideDate.setDate(firstWeek[0].getDate() - 1);\n    firstWeek.unshift(outsideDate);\n  }\n\n  // push days until the end of the last week\n  const lastWeek = weekArray[weekArray.length - 1];\n  for (let i = lastWeek.length; i < 7; i += 1) {\n    const outsideDate = clone(lastWeek[lastWeek.length - 1]);\n    outsideDate.setDate(lastWeek[lastWeek.length - 1].getDate() + 1);\n    lastWeek.push(outsideDate);\n  }\n\n  // add extra weeks to reach 6 weeks\n  if (fixedWeeks && weekArray.length < 6) {\n    let lastExtraWeek;\n\n    for (let i = weekArray.length; i < 6; i += 1) {\n      lastExtraWeek = weekArray[weekArray.length - 1];\n      const lastDay = lastExtraWeek[lastExtraWeek.length - 1];\n      const extraWeek = [];\n\n      for (let j = 0; j < 7; j += 1) {\n        const outsideDate = clone(lastDay);\n        outsideDate.setDate(lastDay.getDate() + j + 1);\n        extraWeek.push(outsideDate);\n      }\n\n      weekArray.push(extraWeek);\n    }\n  }\n\n  return weekArray;\n}\n\nexport function startOfMonth(d) {\n  const newDate = clone(d);\n  newDate.setDate(1);\n  newDate.setHours(12, 0, 0, 0); // always set noon to avoid time zone issues\n  return newDate;\n}\n\nexport function getDayNodes(node, classNames) {\n  let outsideClassName;\n  if (classNames === defaultClassNames) {\n    // When using CSS modules prefix the modifier as required by the BEM syntax\n    outsideClassName = `${classNames.day}--${classNames.outside}`;\n  } else {\n    outsideClassName = `${classNames.outside}`;\n  }\n  const dayQuery = classNames.day.replace(/ /g, '.');\n  const outsideDayQuery = outsideClassName.replace(/ /g, '.');\n  const selector = `.${dayQuery}:not(.${outsideDayQuery})`;\n  return node.querySelectorAll(selector);\n}\n\nexport function nodeListToArray(nodeList) {\n  return Array.prototype.slice.call(nodeList, 0);\n}\n\nexport function hasOwnProp(obj, prop) {\n  return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/Helpers.js","const WEEKDAYS_LONG = [\n  'Sunday',\n  'Monday',\n  'Tuesday',\n  'Wednesday',\n  'Thursday',\n  'Friday',\n  'Saturday',\n];\n\nconst WEEKDAYS_SHORT = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];\n\nconst MONTHS = [\n  'January',\n  'February',\n  'March',\n  'April',\n  'May',\n  'June',\n  'July',\n  'August',\n  'September',\n  'October',\n  'November',\n  'December',\n];\n\nexport function formatDay(day) {\n  return day.toDateString();\n}\n\nexport function formatMonthTitle(d) {\n  return `${MONTHS[d.getMonth()]} ${d.getFullYear()}`;\n}\n\nexport function formatWeekdayShort(i) {\n  return WEEKDAYS_SHORT[i];\n}\n\nexport function formatWeekdayLong(i) {\n  return WEEKDAYS_LONG[i];\n}\n\nexport function getFirstDayOfWeek() {\n  return 0;\n}\n\nexport function getMonths() {\n  return MONTHS;\n}\n\nexport default {\n  formatDay,\n  formatMonthTitle,\n  formatWeekdayShort,\n  formatWeekdayLong,\n  getFirstDayOfWeek,\n  getMonths,\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/LocaleUtils.js","import { isDayAfter, isDayBefore, isDayInRange, isSameDay } from './DateUtils';\nimport { isRangeOfDates } from './Helpers';\n\n/**\n * Return `true` if a date matches the specified modifier.\n *\n * @export\n * @param {Date} day\n * @param {Any} modifier\n * @return {Boolean}\n */\nexport function dayMatchesModifier(day, modifier) {\n  if (!modifier) {\n    return false;\n  }\n  const arr = Array.isArray(modifier) ? modifier : [modifier];\n  return arr.some(mod => {\n    if (!mod) {\n      return false;\n    }\n    if (mod instanceof Date) {\n      return isSameDay(day, mod);\n    }\n    if (isRangeOfDates(mod)) {\n      return isDayInRange(day, mod);\n    }\n    if (mod.after && mod.before && isDayAfter(mod.before, mod.after)) {\n      return isDayAfter(day, mod.after) && isDayBefore(day, mod.before);\n    }\n    if (\n      mod.after &&\n      mod.before &&\n      (isDayAfter(mod.after, mod.before) || isSameDay(mod.after, mod.before))\n    ) {\n      return isDayAfter(day, mod.after) || isDayBefore(day, mod.before);\n    }\n    if (mod.after) {\n      return isDayAfter(day, mod.after);\n    }\n    if (mod.before) {\n      return isDayBefore(day, mod.before);\n    }\n    if (mod.daysOfWeek) {\n      return mod.daysOfWeek.some(dayOfWeek => day.getDay() === dayOfWeek);\n    }\n    if (typeof mod === 'function') {\n      return mod(day);\n    }\n    return false;\n  });\n}\n\n/**\n * Return the modifiers matching the given day for the given\n * object of modifiers.\n *\n * @export\n * @param {Date} day\n * @param {Object} [modifiersObj={}]\n * @return {Array}\n */\nexport function getModifiersForDay(day, modifiersObj = {}) {\n  return Object.keys(modifiersObj).reduce((modifiers, modifierName) => {\n    const value = modifiersObj[modifierName];\n    if (dayMatchesModifier(day, value)) {\n      modifiers.push(modifierName);\n    }\n    return modifiers;\n  }, []);\n}\n\nexport default { dayMatchesModifier, getModifiersForDay };\n\n\n\n// WEBPACK FOOTER //\n// ./src/ModifiersUtils.js","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nimport Caption from './Caption';\nimport Navbar from './Navbar';\nimport Month from './Month';\nimport Weekday from './Weekday';\n\nimport * as Helpers from './Helpers';\nimport * as DateUtils from './DateUtils';\nimport * as LocaleUtils from './LocaleUtils';\nimport * as ModifiersUtils from './ModifiersUtils';\nimport classNames from './classNames';\n\nimport { ENTER, SPACE, LEFT, UP, DOWN, RIGHT } from './keys';\n\nexport class DayPicker extends Component {\n  dayPicker = null;\n\n  static propTypes = {\n    // Rendering months\n    initialMonth: PropTypes.instanceOf(Date),\n    month: PropTypes.instanceOf(Date),\n    numberOfMonths: PropTypes.number,\n    fromMonth: PropTypes.instanceOf(Date),\n    toMonth: PropTypes.instanceOf(Date),\n    canChangeMonth: PropTypes.bool,\n    reverseMonths: PropTypes.bool,\n    pagedNavigation: PropTypes.bool,\n    todayButton: PropTypes.string,\n    showWeekNumbers: PropTypes.bool,\n    showWeekDays: PropTypes.bool,\n\n    // Modifiers\n    selectedDays: PropTypes.oneOfType([\n      PropTypes.object,\n      PropTypes.func,\n      PropTypes.array,\n    ]),\n    disabledDays: PropTypes.oneOfType([\n      PropTypes.object,\n      PropTypes.func,\n      PropTypes.array,\n    ]),\n\n    modifiers: PropTypes.object,\n    modifiersStyles: PropTypes.object,\n\n    // Localization\n    dir: PropTypes.string,\n    firstDayOfWeek: PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]),\n    labels: PropTypes.shape({\n      nextMonth: PropTypes.string.isRequired,\n      previousMonth: PropTypes.string.isRequired,\n    }),\n    locale: PropTypes.string,\n    localeUtils: PropTypes.shape({\n      formatMonthTitle: PropTypes.func,\n      formatWeekdayShort: PropTypes.func,\n      formatWeekdayLong: PropTypes.func,\n      getFirstDayOfWeek: PropTypes.func,\n    }),\n    months: PropTypes.arrayOf(PropTypes.string),\n    weekdaysLong: PropTypes.arrayOf(PropTypes.string),\n    weekdaysShort: PropTypes.arrayOf(PropTypes.string),\n\n    // Customization\n    showOutsideDays: PropTypes.bool,\n    enableOutsideDaysClick: PropTypes.bool,\n    fixedWeeks: PropTypes.bool,\n\n    // CSS and HTML\n    classNames: PropTypes.shape({\n      body: PropTypes.string,\n      container: PropTypes.string,\n      day: PropTypes.string.isRequired,\n      disabled: PropTypes.string.isRequired,\n      footer: PropTypes.string,\n      interactionDisabled: PropTypes.string,\n      months: PropTypes.string,\n      month: PropTypes.string,\n      navBar: PropTypes.string,\n      outside: PropTypes.string.isRequired,\n      selected: PropTypes.string.isRequired,\n      today: PropTypes.string.isRequired,\n      todayButton: PropTypes.string,\n      week: PropTypes.string,\n      wrapper: PropTypes.string,\n    }),\n    className: PropTypes.string,\n    containerProps: PropTypes.object,\n    tabIndex: PropTypes.number,\n\n    // Custom elements\n    renderDay: PropTypes.func,\n    renderWeek: PropTypes.func,\n    weekdayElement: PropTypes.oneOfType([\n      PropTypes.element,\n      PropTypes.func,\n      PropTypes.instanceOf(Component),\n    ]),\n    navbarElement: PropTypes.oneOfType([\n      PropTypes.element,\n      PropTypes.func,\n      PropTypes.instanceOf(Component),\n    ]),\n    captionElement: PropTypes.oneOfType([\n      PropTypes.element,\n      PropTypes.func,\n      PropTypes.instanceOf(Component),\n    ]),\n\n    // Events\n    onBlur: PropTypes.func,\n    onFocus: PropTypes.func,\n    onKeyDown: PropTypes.func,\n    onDayClick: PropTypes.func,\n    onDayKeyDown: PropTypes.func,\n    onDayMouseEnter: PropTypes.func,\n    onDayMouseLeave: PropTypes.func,\n    onDayMouseDown: PropTypes.func,\n    onDayMouseUp: PropTypes.func,\n    onDayTouchStart: PropTypes.func,\n    onDayTouchEnd: PropTypes.func,\n    onDayFocus: PropTypes.func,\n    onMonthChange: PropTypes.func,\n    onCaptionClick: PropTypes.func,\n    onWeekClick: PropTypes.func,\n    onTodayButtonClick: PropTypes.func,\n  };\n\n  static defaultProps = {\n    classNames,\n    tabIndex: 0,\n    numberOfMonths: 1,\n    labels: {\n      previousMonth: 'Previous Month',\n      nextMonth: 'Next Month',\n    },\n    locale: 'en',\n    localeUtils: LocaleUtils,\n    showOutsideDays: false,\n    enableOutsideDaysClick: true,\n    fixedWeeks: false,\n    canChangeMonth: true,\n    reverseMonths: false,\n    pagedNavigation: false,\n    showWeekNumbers: false,\n    showWeekDays: true,\n    renderDay: day => day.getDate(),\n    renderWeek: weekNumber => weekNumber,\n    weekdayElement: <Weekday />,\n    navbarElement: <Navbar classNames={classNames} />,\n    captionElement: <Caption classNames={classNames} />,\n  };\n\n  constructor(props) {\n    super(props);\n\n    const currentMonth = this.getCurrentMonthFromProps(props);\n    this.state = { currentMonth };\n  }\n\n  componentDidUpdate(prevProps) {\n    // Changing the `month` props means changing the current displayed month\n    if (\n      prevProps.month !== this.props.month &&\n      !DateUtils.isSameMonth(prevProps.month, this.props.month)\n    ) {\n      const currentMonth = this.getCurrentMonthFromProps(this.props);\n      // eslint-disable-next-line react/no-did-update-set-state\n      this.setState({ currentMonth });\n    }\n  }\n\n  static VERSION = '7.4.8';\n\n  /**\n   * Return the month to be shown in the calendar based on the component props.\n   *\n   * @param {Object} props\n   * @returns Date\n   * @memberof DayPicker\n   * @private\n   */\n  getCurrentMonthFromProps(props) {\n    const initialMonth = Helpers.startOfMonth(\n      props.month || props.initialMonth || new Date()\n    );\n    let currentMonth = initialMonth;\n\n    if (props.pagedNavigation && props.numberOfMonths > 1 && props.fromMonth) {\n      const fromMonth = Helpers.startOfMonth(props.fromMonth);\n      const diffInMonths = Helpers.getMonthsDiff(fromMonth, currentMonth);\n      currentMonth = DateUtils.addMonths(\n        fromMonth,\n        Math.floor(diffInMonths / props.numberOfMonths) * props.numberOfMonths\n      );\n    } else if (\n      props.toMonth &&\n      props.numberOfMonths > 1 &&\n      Helpers.getMonthsDiff(currentMonth, props.toMonth) <= 0\n    ) {\n      currentMonth = DateUtils.addMonths(\n        Helpers.startOfMonth(props.toMonth),\n        1 - this.props.numberOfMonths\n      );\n    }\n    return currentMonth;\n  }\n\n  getNextNavigableMonth() {\n    return DateUtils.addMonths(\n      this.state.currentMonth,\n      this.props.numberOfMonths\n    );\n  }\n\n  getPreviousNavigableMonth() {\n    return DateUtils.addMonths(this.state.currentMonth, -1);\n  }\n\n  allowPreviousMonth() {\n    const previousMonth = DateUtils.addMonths(this.state.currentMonth, -1);\n    return this.allowMonth(previousMonth);\n  }\n\n  allowNextMonth() {\n    const nextMonth = DateUtils.addMonths(\n      this.state.currentMonth,\n      this.props.numberOfMonths\n    );\n    return this.allowMonth(nextMonth);\n  }\n\n  allowMonth(d) {\n    const { fromMonth, toMonth, canChangeMonth } = this.props;\n    if (\n      !canChangeMonth ||\n      (fromMonth && Helpers.getMonthsDiff(fromMonth, d) < 0) ||\n      (toMonth && Helpers.getMonthsDiff(toMonth, d) > 0)\n    ) {\n      return false;\n    }\n    return true;\n  }\n\n  allowYearChange() {\n    return this.props.canChangeMonth;\n  }\n\n  showMonth(d, callback) {\n    if (!this.allowMonth(d)) {\n      return;\n    }\n    this.setState({ currentMonth: Helpers.startOfMonth(d) }, () => {\n      if (callback) {\n        callback();\n      }\n      if (this.props.onMonthChange) {\n        this.props.onMonthChange(this.state.currentMonth);\n      }\n    });\n  }\n\n  showNextMonth = callback => {\n    if (!this.allowNextMonth()) {\n      return;\n    }\n    const deltaMonths = this.props.pagedNavigation\n      ? this.props.numberOfMonths\n      : 1;\n    const nextMonth = DateUtils.addMonths(this.state.currentMonth, deltaMonths);\n    this.showMonth(nextMonth, callback);\n  };\n\n  showPreviousMonth = callback => {\n    if (!this.allowPreviousMonth()) {\n      return;\n    }\n    const deltaMonths = this.props.pagedNavigation\n      ? this.props.numberOfMonths\n      : 1;\n    const previousMonth = DateUtils.addMonths(\n      this.state.currentMonth,\n      -deltaMonths\n    );\n    this.showMonth(previousMonth, callback);\n  };\n\n  showNextYear() {\n    if (!this.allowYearChange()) {\n      return;\n    }\n    const nextMonth = DateUtils.addMonths(this.state.currentMonth, 12);\n    this.showMonth(nextMonth);\n  }\n\n  showPreviousYear() {\n    if (!this.allowYearChange()) {\n      return;\n    }\n    const nextMonth = DateUtils.addMonths(this.state.currentMonth, -12);\n    this.showMonth(nextMonth);\n  }\n\n  focus() {\n    this.wrapper.focus();\n  }\n\n  focusFirstDayOfMonth() {\n    Helpers.getDayNodes(this.dayPicker, this.props.classNames)[0].focus();\n  }\n\n  focusLastDayOfMonth() {\n    const dayNodes = Helpers.getDayNodes(this.dayPicker, this.props.classNames);\n    dayNodes[dayNodes.length - 1].focus();\n  }\n\n  focusPreviousDay(dayNode) {\n    const dayNodes = Helpers.getDayNodes(this.dayPicker, this.props.classNames);\n    const dayNodeIndex = Helpers.nodeListToArray(dayNodes).indexOf(dayNode);\n    if (dayNodeIndex === -1) return;\n    if (dayNodeIndex === 0) {\n      this.showPreviousMonth(() => this.focusLastDayOfMonth());\n    } else {\n      dayNodes[dayNodeIndex - 1].focus();\n    }\n  }\n\n  focusNextDay(dayNode) {\n    const dayNodes = Helpers.getDayNodes(this.dayPicker, this.props.classNames);\n    const dayNodeIndex = Helpers.nodeListToArray(dayNodes).indexOf(dayNode);\n    if (dayNodeIndex === -1) return;\n    if (dayNodeIndex === dayNodes.length - 1) {\n      this.showNextMonth(() => this.focusFirstDayOfMonth());\n    } else {\n      dayNodes[dayNodeIndex + 1].focus();\n    }\n  }\n\n  focusNextWeek(dayNode) {\n    const dayNodes = Helpers.getDayNodes(this.dayPicker, this.props.classNames);\n    const dayNodeIndex = Helpers.nodeListToArray(dayNodes).indexOf(dayNode);\n    const isInLastWeekOfMonth = dayNodeIndex > dayNodes.length - 8;\n\n    if (isInLastWeekOfMonth) {\n      this.showNextMonth(() => {\n        const daysAfterIndex = dayNodes.length - dayNodeIndex;\n        const nextMonthDayNodeIndex = 7 - daysAfterIndex;\n        Helpers.getDayNodes(this.dayPicker, this.props.classNames)[\n          nextMonthDayNodeIndex\n        ].focus();\n      });\n    } else {\n      dayNodes[dayNodeIndex + 7].focus();\n    }\n  }\n\n  focusPreviousWeek(dayNode) {\n    const dayNodes = Helpers.getDayNodes(this.dayPicker, this.props.classNames);\n    const dayNodeIndex = Helpers.nodeListToArray(dayNodes).indexOf(dayNode);\n    const isInFirstWeekOfMonth = dayNodeIndex <= 6;\n\n    if (isInFirstWeekOfMonth) {\n      this.showPreviousMonth(() => {\n        const previousMonthDayNodes = Helpers.getDayNodes(\n          this.dayPicker,\n          this.props.classNames\n        );\n        const startOfLastWeekOfMonth = previousMonthDayNodes.length - 7;\n        const previousMonthDayNodeIndex = startOfLastWeekOfMonth + dayNodeIndex;\n        previousMonthDayNodes[previousMonthDayNodeIndex].focus();\n      });\n    } else {\n      dayNodes[dayNodeIndex - 7].focus();\n    }\n  }\n\n  // Event handlers\n\n  handleKeyDown = e => {\n    e.persist();\n\n    switch (e.keyCode) {\n      case LEFT:\n        if (this.props.dir === 'rtl') {\n          this.showNextMonth();\n        } else {\n          this.showPreviousMonth();\n        }\n        Helpers.cancelEvent(e);\n        break;\n      case RIGHT:\n        if (this.props.dir === 'rtl') {\n          this.showPreviousMonth();\n        } else {\n          this.showNextMonth();\n        }\n        Helpers.cancelEvent(e);\n        break;\n      case UP:\n        this.showPreviousYear();\n        Helpers.cancelEvent(e);\n        break;\n      case DOWN:\n        this.showNextYear();\n        Helpers.cancelEvent(e);\n        break;\n      default:\n        break;\n    }\n\n    if (this.props.onKeyDown) {\n      this.props.onKeyDown(e);\n    }\n  };\n\n  handleDayKeyDown = (day, modifiers, e) => {\n    e.persist();\n\n    switch (e.keyCode) {\n      case LEFT:\n        Helpers.cancelEvent(e);\n        if (this.props.dir === 'rtl') {\n          this.focusNextDay(e.target);\n        } else {\n          this.focusPreviousDay(e.target);\n        }\n        break;\n      case RIGHT:\n        Helpers.cancelEvent(e);\n        if (this.props.dir === 'rtl') {\n          this.focusPreviousDay(e.target);\n        } else {\n          this.focusNextDay(e.target);\n        }\n        break;\n      case UP:\n        Helpers.cancelEvent(e);\n        this.focusPreviousWeek(e.target);\n        break;\n      case DOWN:\n        Helpers.cancelEvent(e);\n        this.focusNextWeek(e.target);\n        break;\n      case ENTER:\n      case SPACE:\n        Helpers.cancelEvent(e);\n        if (this.props.onDayClick) {\n          this.handleDayClick(day, modifiers, e);\n        }\n        break;\n      default:\n        break;\n    }\n    if (this.props.onDayKeyDown) {\n      this.props.onDayKeyDown(day, modifiers, e);\n    }\n  };\n\n  handleDayClick = (day, modifiers, e) => {\n    e.persist();\n\n    if (\n      modifiers[this.props.classNames.outside] &&\n      this.props.enableOutsideDaysClick\n    ) {\n      this.handleOutsideDayClick(day);\n    }\n    if (this.props.onDayClick) {\n      this.props.onDayClick(day, modifiers, e);\n    }\n  };\n\n  handleOutsideDayClick(day) {\n    const { currentMonth } = this.state;\n    const { numberOfMonths } = this.props;\n    const diffInMonths = Helpers.getMonthsDiff(currentMonth, day);\n    if (diffInMonths > 0 && diffInMonths >= numberOfMonths) {\n      this.showNextMonth();\n    } else if (diffInMonths < 0) {\n      this.showPreviousMonth();\n    }\n  }\n\n  handleTodayButtonClick = e => {\n    const today = new Date();\n    const month = new Date(today.getFullYear(), today.getMonth());\n    this.showMonth(month);\n    e.target.blur();\n    if (this.props.onTodayButtonClick) {\n      e.persist();\n      this.props.onTodayButtonClick(\n        new Date(today.getFullYear(), today.getMonth(), today.getDate()),\n        ModifiersUtils.getModifiersForDay(today, this.props.modifiers),\n        e\n      );\n    }\n  };\n\n  renderNavbar() {\n    const {\n      labels,\n      locale,\n      localeUtils,\n      canChangeMonth,\n      navbarElement,\n      ...attributes\n    } = this.props;\n\n    if (!canChangeMonth) return null;\n\n    const props = {\n      month: this.state.currentMonth,\n      classNames: this.props.classNames,\n      className: this.props.classNames.navBar,\n      nextMonth: this.getNextNavigableMonth(),\n      previousMonth: this.getPreviousNavigableMonth(),\n      showPreviousButton: this.allowPreviousMonth(),\n      showNextButton: this.allowNextMonth(),\n      onNextClick: this.showNextMonth,\n      onPreviousClick: this.showPreviousMonth,\n      dir: attributes.dir,\n      labels,\n      locale,\n      localeUtils,\n    };\n    return React.isValidElement(navbarElement)\n      ? React.cloneElement(navbarElement, props)\n      : React.createElement(navbarElement, props);\n  }\n\n  renderMonths() {\n    const months = [];\n    const firstDayOfWeek = Helpers.getFirstDayOfWeekFromProps(this.props);\n    for (let i = 0; i < this.props.numberOfMonths; i += 1) {\n      const month = DateUtils.addMonths(this.state.currentMonth, i);\n      months.push(\n        <Month\n          key={i}\n          {...this.props}\n          month={month}\n          firstDayOfWeek={firstDayOfWeek}\n          onDayKeyDown={this.handleDayKeyDown}\n          onDayClick={this.handleDayClick}\n        />\n      );\n    }\n\n    if (this.props.reverseMonths) {\n      months.reverse();\n    }\n    return months;\n  }\n\n  renderFooter() {\n    if (this.props.todayButton) {\n      return (\n        <div className={this.props.classNames.footer}>\n          {this.renderTodayButton()}\n        </div>\n      );\n    }\n    return null;\n  }\n\n  renderTodayButton() {\n    return (\n      <button\n        type=\"button\"\n        tabIndex={0}\n        className={this.props.classNames.todayButton}\n        aria-label={this.props.todayButton}\n        onClick={this.handleTodayButtonClick}\n      >\n        {this.props.todayButton}\n      </button>\n    );\n  }\n\n  render() {\n    let className = this.props.classNames.container;\n\n    if (!this.props.onDayClick) {\n      className = `${className} ${this.props.classNames.interactionDisabled}`;\n    }\n    if (this.props.className) {\n      className = `${className} ${this.props.className}`;\n    }\n    return (\n      <div\n        {...this.props.containerProps}\n        className={className}\n        ref={el => (this.dayPicker = el)}\n        lang={this.props.locale}\n      >\n        <div\n          className={this.props.classNames.wrapper}\n          ref={el => (this.wrapper = el)}\n          tabIndex={\n            this.props.canChangeMonth &&\n            typeof this.props.tabIndex !== 'undefined'\n              ? this.props.tabIndex\n              : -1\n          }\n          onKeyDown={this.handleKeyDown}\n          onFocus={this.props.onFocus}\n          onBlur={this.props.onBlur}\n        >\n          {this.renderNavbar()}\n          <div className={this.props.classNames.months}>\n            {this.renderMonths()}\n          </div>\n          {this.renderFooter()}\n        </div>\n      </div>\n    );\n  }\n}\n\nDayPicker.DateUtils = DateUtils;\nDayPicker.LocaleUtils = LocaleUtils;\nDayPicker.ModifiersUtils = ModifiersUtils;\n\nexport { DateUtils, LocaleUtils, ModifiersUtils };\n\nexport default DayPicker;\n\n\n\n// WEBPACK FOOTER //\n// ./src/DayPicker.js","// Entry point for the umd package\nconst DayPicker = require('./DayPicker').default;\nDayPicker.Input = require('./DayPickerInput').default;\n\nexport default DayPicker;\n\n\n\n// WEBPACK FOOTER //\n// ./src/umd.js","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nimport LocaleUtils from './LocaleUtils';\n\nimport { ENTER } from './keys';\n\nexport default class Caption extends Component {\n  static propTypes = {\n    date: PropTypes.instanceOf(Date),\n    months: PropTypes.arrayOf(PropTypes.string),\n    locale: PropTypes.string,\n    localeUtils: PropTypes.object,\n    onClick: PropTypes.func,\n    classNames: PropTypes.shape({\n      caption: PropTypes.string.isRequired,\n    }).isRequired,\n  };\n\n  static defaultProps = {\n    localeUtils: LocaleUtils,\n  };\n\n  constructor(props) {\n    super(props);\n    this.handleKeyUp = this.handleKeyUp.bind(this);\n  }\n\n  shouldComponentUpdate(nextProps) {\n    return (\n      nextProps.locale !== this.props.locale ||\n      nextProps.classNames !== this.props.classNames ||\n      nextProps.date.getMonth() !== this.props.date.getMonth() ||\n      nextProps.date.getFullYear() !== this.props.date.getFullYear()\n    );\n  }\n\n  handleKeyUp(e) {\n    if (e.keyCode === ENTER) {\n      this.props.onClick(e);\n    }\n  }\n\n  render() {\n    const {\n      classNames,\n      date,\n      months,\n      locale,\n      localeUtils,\n      onClick,\n    } = this.props;\n    return (\n      <div className={classNames.caption} role=\"heading\" aria-live=\"polite\">\n        <div onClick={onClick} onKeyUp={this.handleKeyUp}>\n          {months\n            ? `${months[date.getMonth()]} ${date.getFullYear()}`\n            : localeUtils.formatMonthTitle(date, locale)}\n        </div>\n      </div>\n    );\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/Caption.js","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nimport defaultClassNames from './classNames';\nimport { SPACE, ENTER } from './keys';\n\nexport default class Navbar extends Component {\n  static propTypes = {\n    classNames: PropTypes.shape({\n      navBar: PropTypes.string.isRequired,\n      navButtonPrev: PropTypes.string.isRequired,\n      navButtonNext: PropTypes.string.isRequired,\n      navButtonInteractionDisabled: PropTypes.string.isRequired,\n    }),\n    className: PropTypes.string,\n    showPreviousButton: PropTypes.bool,\n    showNextButton: PropTypes.bool,\n    onPreviousClick: PropTypes.func,\n    onNextClick: PropTypes.func,\n    dir: PropTypes.string,\n    labels: PropTypes.shape({\n      previousMonth: PropTypes.string.isRequired,\n      nextMonth: PropTypes.string.isRequired,\n    }),\n  };\n\n  static defaultProps = {\n    classNames: defaultClassNames,\n    dir: 'ltr',\n    labels: {\n      previousMonth: 'Previous Month',\n      nextMonth: 'Next Month',\n    },\n    showPreviousButton: true,\n    showNextButton: true,\n  };\n\n  shouldComponentUpdate(nextProps) {\n    return (\n      nextProps.labels !== this.props.labels ||\n      nextProps.dir !== this.props.dir ||\n      this.props.showPreviousButton !== nextProps.showPreviousButton ||\n      this.props.showNextButton !== nextProps.showNextButton\n    );\n  }\n\n  handleNextClick = () => {\n    if (this.props.onNextClick) {\n      this.props.onNextClick();\n    }\n  };\n\n  handlePreviousClick = () => {\n    if (this.props.onPreviousClick) {\n      this.props.onPreviousClick();\n    }\n  };\n\n  handleNextKeyDown = e => {\n    if (e.keyCode !== ENTER && e.keyCode !== SPACE) {\n      return;\n    }\n    e.preventDefault();\n    this.handleNextClick();\n  };\n\n  handlePreviousKeyDown = e => {\n    if (e.keyCode !== ENTER && e.keyCode !== SPACE) {\n      return;\n    }\n    e.preventDefault();\n    this.handlePreviousClick();\n  };\n\n  render() {\n    const {\n      classNames,\n      className,\n      showPreviousButton,\n      showNextButton,\n      labels,\n      dir,\n    } = this.props;\n\n    let previousClickHandler;\n    let nextClickHandler;\n    let previousKeyDownHandler;\n    let nextKeyDownHandler;\n    let shouldShowPrevious;\n    let shouldShowNext;\n\n    if (dir === 'rtl') {\n      previousClickHandler = this.handleNextClick;\n      nextClickHandler = this.handlePreviousClick;\n      previousKeyDownHandler = this.handleNextKeyDown;\n      nextKeyDownHandler = this.handlePreviousKeyDown;\n      shouldShowNext = showPreviousButton;\n      shouldShowPrevious = showNextButton;\n    } else {\n      previousClickHandler = this.handlePreviousClick;\n      nextClickHandler = this.handleNextClick;\n      previousKeyDownHandler = this.handlePreviousKeyDown;\n      nextKeyDownHandler = this.handleNextKeyDown;\n      shouldShowNext = showNextButton;\n      shouldShowPrevious = showPreviousButton;\n    }\n\n    const previousClassName = shouldShowPrevious\n      ? classNames.navButtonPrev\n      : `${classNames.navButtonPrev} ${classNames.navButtonInteractionDisabled}`;\n\n    const nextClassName = shouldShowNext\n      ? classNames.navButtonNext\n      : `${classNames.navButtonNext} ${classNames.navButtonInteractionDisabled}`;\n\n    const previousButton = (\n      <span\n        tabIndex=\"0\"\n        role=\"button\"\n        aria-label={labels.previousMonth}\n        key=\"previous\"\n        className={previousClassName}\n        onKeyDown={shouldShowPrevious ? previousKeyDownHandler : undefined}\n        onClick={shouldShowPrevious ? previousClickHandler : undefined}\n      />\n    );\n\n    const nextButton = (\n      <span\n        tabIndex=\"0\"\n        role=\"button\"\n        aria-label={labels.nextMonth}\n        key=\"right\"\n        className={nextClassName}\n        onKeyDown={shouldShowNext ? nextKeyDownHandler : undefined}\n        onClick={shouldShowNext ? nextClickHandler : undefined}\n      />\n    );\n\n    return (\n      <div className={className || classNames.navBar}>\n        {dir === 'rtl'\n          ? [nextButton, previousButton]\n          : [previousButton, nextButton]}\n      </div>\n    );\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/Navbar.js","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nimport Weekdays from './Weekdays';\nimport Day from './Day';\nimport { ENTER } from './keys';\n\nimport * as ModifiersUtils from './ModifiersUtils';\nimport * as Helpers from './Helpers';\nimport * as DateUtils from './DateUtils';\n\nexport default class Month extends Component {\n  static propTypes = {\n    classNames: PropTypes.shape({\n      body: PropTypes.string.isRequired,\n      month: PropTypes.string.isRequired,\n      outside: PropTypes.string.isRequired,\n      today: PropTypes.string.isRequired,\n      week: PropTypes.string.isRequired,\n      weekNumber: PropTypes.string.isRequired,\n      disabled: PropTypes.string.isRequired,\n      selected: PropTypes.string.isRequired,\n    }).isRequired,\n    tabIndex: PropTypes.number,\n\n    month: PropTypes.instanceOf(Date).isRequired,\n    months: PropTypes.arrayOf(PropTypes.string),\n\n    modifiersStyles: PropTypes.object,\n\n    showWeekDays: PropTypes.bool,\n    showOutsideDays: PropTypes.bool,\n\n    renderDay: PropTypes.func.isRequired,\n    renderWeek: PropTypes.func.isRequired,\n\n    captionElement: PropTypes.oneOfType([\n      PropTypes.element,\n      PropTypes.func,\n      PropTypes.instanceOf(React.Component),\n    ]).isRequired,\n    weekdayElement: PropTypes.oneOfType([\n      PropTypes.element,\n      PropTypes.func,\n      PropTypes.instanceOf(React.Component),\n    ]),\n\n    fixedWeeks: PropTypes.bool,\n    showWeekNumbers: PropTypes.bool,\n\n    locale: PropTypes.string.isRequired,\n    localeUtils: PropTypes.object.isRequired,\n    weekdaysLong: PropTypes.arrayOf(PropTypes.string),\n    weekdaysShort: PropTypes.arrayOf(PropTypes.string),\n    firstDayOfWeek: PropTypes.number.isRequired,\n\n    onCaptionClick: PropTypes.func,\n    onDayClick: PropTypes.func,\n    onDayFocus: PropTypes.func,\n    onDayKeyDown: PropTypes.func,\n    onDayMouseEnter: PropTypes.func,\n    onDayMouseLeave: PropTypes.func,\n    onDayMouseDown: PropTypes.func,\n    onDayMouseUp: PropTypes.func,\n    onDayTouchEnd: PropTypes.func,\n    onDayTouchStart: PropTypes.func,\n    onWeekClick: PropTypes.func,\n  };\n\n  renderDay = day => {\n    const monthNumber = this.props.month.getMonth();\n    const propModifiers = Helpers.getModifiersFromProps(this.props);\n    const dayModifiers = ModifiersUtils.getModifiersForDay(day, propModifiers);\n    if (\n      DateUtils.isSameDay(day, new Date()) &&\n      !Object.prototype.hasOwnProperty.call(\n        propModifiers,\n        this.props.classNames.today\n      )\n    ) {\n      dayModifiers.push(this.props.classNames.today);\n    }\n    if (day.getMonth() !== monthNumber) {\n      dayModifiers.push(this.props.classNames.outside);\n    }\n\n    const isOutside = day.getMonth() !== monthNumber;\n    let tabIndex = -1;\n    // Focus on the first day of the month\n    if (this.props.onDayClick && !isOutside && day.getDate() === 1) {\n      tabIndex = this.props.tabIndex; // eslint-disable-line prefer-destructuring\n    }\n    const key = `${day.getFullYear()}${day.getMonth()}${day.getDate()}`;\n    const modifiers = {};\n    dayModifiers.forEach(modifier => {\n      modifiers[modifier] = true;\n    });\n\n    return (\n      <Day\n        key={`${isOutside ? 'outside-' : ''}${key}`}\n        classNames={this.props.classNames}\n        day={day}\n        modifiers={modifiers}\n        modifiersStyles={this.props.modifiersStyles}\n        empty={\n          isOutside && !this.props.showOutsideDays && !this.props.fixedWeeks\n        }\n        tabIndex={tabIndex}\n        ariaLabel={this.props.localeUtils.formatDay(day, this.props.locale)}\n        ariaDisabled={\n          isOutside || dayModifiers.indexOf(this.props.classNames.disabled) > -1\n        }\n        ariaSelected={dayModifiers.indexOf(this.props.classNames.selected) > -1}\n        onClick={this.props.onDayClick}\n        onFocus={this.props.onDayFocus}\n        onKeyDown={this.props.onDayKeyDown}\n        onMouseEnter={this.props.onDayMouseEnter}\n        onMouseLeave={this.props.onDayMouseLeave}\n        onMouseDown={this.props.onDayMouseDown}\n        onMouseUp={this.props.onDayMouseUp}\n        onTouchEnd={this.props.onDayTouchEnd}\n        onTouchStart={this.props.onDayTouchStart}\n      >\n        {this.props.renderDay(day, modifiers)}\n      </Day>\n    );\n  };\n\n  render() {\n    const {\n      classNames,\n\n      month,\n      months,\n\n      fixedWeeks,\n      captionElement,\n      weekdayElement,\n\n      locale,\n      localeUtils,\n      weekdaysLong,\n      weekdaysShort,\n      firstDayOfWeek,\n\n      onCaptionClick,\n\n      showWeekNumbers,\n      showWeekDays,\n      onWeekClick,\n    } = this.props;\n\n    const captionProps = {\n      date: month,\n      classNames,\n      months,\n      localeUtils,\n      locale,\n      onClick: onCaptionClick ? e => onCaptionClick(month, e) : undefined,\n    };\n    const caption = React.isValidElement(captionElement)\n      ? React.cloneElement(captionElement, captionProps)\n      : React.createElement(captionElement, captionProps);\n\n    const weeks = Helpers.getWeekArray(month, firstDayOfWeek, fixedWeeks);\n    return (\n      <div className={classNames.month} role=\"grid\">\n        {caption}\n        {showWeekDays && (\n          <Weekdays\n            classNames={classNames}\n            weekdaysShort={weekdaysShort}\n            weekdaysLong={weekdaysLong}\n            firstDayOfWeek={firstDayOfWeek}\n            showWeekNumbers={showWeekNumbers}\n            locale={locale}\n            localeUtils={localeUtils}\n            weekdayElement={weekdayElement}\n          />\n        )}\n        <div className={classNames.body} role=\"rowgroup\">\n          {weeks.map(week => {\n            let weekNumber;\n            if (showWeekNumbers) {\n              weekNumber = DateUtils.getWeekNumber(week[6]);\n            }\n            return (\n              <div\n                key={week[0].getTime()}\n                className={classNames.week}\n                role=\"row\"\n              >\n                {showWeekNumbers && (\n                  <div\n                    className={classNames.weekNumber}\n                    tabIndex={onWeekClick ? 0 : -1}\n                    role=\"gridcell\"\n                    onClick={\n                      onWeekClick\n                        ? e => onWeekClick(weekNumber, week, e)\n                        : undefined\n                    }\n                    onKeyUp={\n                      onWeekClick\n                        ? e =>\n                            e.keyCode === ENTER &&\n                            onWeekClick(weekNumber, week, e)\n                        : undefined\n                    }\n                  >\n                    {this.props.renderWeek(weekNumber, week, month)}\n                  </div>\n                )}\n                {week.map(this.renderDay)}\n              </div>\n            );\n          })}\n        </div>\n      </div>\n    );\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/Month.js","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nexport default class Weekdays extends Component {\n  static propTypes = {\n    classNames: PropTypes.shape({\n      weekday: PropTypes.string.isRequired,\n      weekdays: PropTypes.string.isRequired,\n      weekdaysRow: PropTypes.string.isRequired,\n    }).isRequired,\n\n    firstDayOfWeek: PropTypes.number.isRequired,\n    weekdaysLong: PropTypes.arrayOf(PropTypes.string),\n    weekdaysShort: PropTypes.arrayOf(PropTypes.string),\n    showWeekNumbers: PropTypes.bool,\n    locale: PropTypes.string.isRequired,\n    localeUtils: PropTypes.object.isRequired,\n    weekdayElement: PropTypes.oneOfType([\n      PropTypes.element,\n      PropTypes.func,\n      PropTypes.instanceOf(React.Component),\n    ]),\n  };\n\n  shouldComponentUpdate(nextProps) {\n    return this.props !== nextProps;\n  }\n\n  render() {\n    const {\n      classNames,\n      firstDayOfWeek,\n      showWeekNumbers,\n      weekdaysLong,\n      weekdaysShort,\n      locale,\n      localeUtils,\n      weekdayElement,\n    } = this.props;\n    const days = [];\n    for (let i = 0; i < 7; i += 1) {\n      const weekday = (i + firstDayOfWeek) % 7;\n      const elementProps = {\n        key: i,\n        className: classNames.weekday,\n        weekday,\n        weekdaysLong,\n        weekdaysShort,\n        localeUtils,\n        locale,\n      };\n      const element = React.isValidElement(weekdayElement)\n        ? React.cloneElement(weekdayElement, elementProps)\n        : React.createElement(weekdayElement, elementProps);\n      days.push(element);\n    }\n\n    return (\n      <div className={classNames.weekdays} role=\"rowgroup\">\n        <div className={classNames.weekdaysRow} role=\"row\">\n          {showWeekNumbers && <div className={classNames.weekday} />}\n          {days}\n        </div>\n      </div>\n    );\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/Weekdays.js","/* eslint-disable jsx-a11y/no-static-element-interactions, react/forbid-prop-types */\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { isSameDay } from './DateUtils';\nimport { hasOwnProp } from './Helpers';\n\nimport defaultClassNames from './classNames';\n\nfunction handleEvent(handler, day, modifiers) {\n  if (!handler) {\n    return undefined;\n  }\n  return e => {\n    e.persist();\n    handler(day, modifiers, e);\n  };\n}\n\nexport default class Day extends Component {\n  static propTypes = {\n    classNames: PropTypes.shape({\n      day: PropTypes.string.isRequired,\n    }).isRequired,\n\n    day: PropTypes.instanceOf(Date).isRequired,\n    children: PropTypes.node.isRequired,\n\n    ariaDisabled: PropTypes.bool,\n    ariaLabel: PropTypes.string,\n    ariaSelected: PropTypes.bool,\n    empty: PropTypes.bool,\n    modifiers: PropTypes.object,\n    modifiersStyles: PropTypes.object,\n    onClick: PropTypes.func,\n    onKeyDown: PropTypes.func,\n    onMouseEnter: PropTypes.func,\n    onMouseLeave: PropTypes.func,\n    onMouseDown: PropTypes.func,\n    onMouseUp: PropTypes.func,\n    onTouchEnd: PropTypes.func,\n    onTouchStart: PropTypes.func,\n    onFocus: PropTypes.func,\n    tabIndex: PropTypes.number,\n  };\n\n  static defaultProps = {\n    tabIndex: -1,\n  };\n\n  static defaultProps = {\n    modifiers: {},\n    modifiersStyles: {},\n    empty: false,\n  };\n\n  shouldComponentUpdate(nextProps) {\n    const propNames = Object.keys(this.props);\n    const nextPropNames = Object.keys(nextProps);\n    if (propNames.length !== nextPropNames.length) {\n      return true;\n    }\n    return propNames.some(name => {\n      if (\n        name === 'modifiers' ||\n        name === 'modifiersStyles' ||\n        name === 'classNames'\n      ) {\n        const prop = this.props[name];\n        const nextProp = nextProps[name];\n        const modifiers = Object.keys(prop);\n        const nextModifiers = Object.keys(nextProp);\n        if (modifiers.length !== nextModifiers.length) {\n          return true;\n        }\n        return modifiers.some(\n          mod => !hasOwnProp(nextProp, mod) || prop[mod] !== nextProp[mod]\n        );\n      }\n      if (name === 'day') {\n        return !isSameDay(this.props[name], nextProps[name]);\n      }\n      return (\n        !hasOwnProp(nextProps, name) || this.props[name] !== nextProps[name]\n      );\n    });\n  }\n\n  render() {\n    const {\n      classNames,\n      modifiersStyles,\n      day,\n      tabIndex,\n      empty,\n      modifiers,\n      onMouseEnter,\n      onMouseLeave,\n      onMouseUp,\n      onMouseDown,\n      onClick,\n      onKeyDown,\n      onTouchStart,\n      onTouchEnd,\n      onFocus,\n      ariaLabel,\n      ariaDisabled,\n      ariaSelected,\n      children,\n    } = this.props;\n\n    let className = classNames.day;\n    if (classNames !== defaultClassNames) {\n      // When using CSS modules prefix the modifier as required by the BEM syntax\n      className += ` ${Object.keys(modifiers).join(' ')}`;\n    } else {\n      className += Object.keys(modifiers)\n        .map(modifier => ` ${className}--${modifier}`)\n        .join('');\n    }\n\n    let style;\n    if (modifiersStyles) {\n      Object.keys(modifiers)\n        .filter(modifier => !!modifiersStyles[modifier])\n        .forEach(modifier => {\n          style = { ...style, ...modifiersStyles[modifier] };\n        });\n    }\n\n    if (empty) {\n      return <div aria-disabled className={className} style={style} />;\n    }\n    return (\n      <div\n        className={className}\n        tabIndex={tabIndex}\n        style={style}\n        role=\"gridcell\"\n        aria-label={ariaLabel}\n        aria-disabled={ariaDisabled}\n        aria-selected={ariaSelected}\n        onClick={handleEvent(onClick, day, modifiers)}\n        onKeyDown={handleEvent(onKeyDown, day, modifiers)}\n        onMouseEnter={handleEvent(onMouseEnter, day, modifiers)}\n        onMouseLeave={handleEvent(onMouseLeave, day, modifiers)}\n        onMouseUp={handleEvent(onMouseUp, day, modifiers)}\n        onMouseDown={handleEvent(onMouseDown, day, modifiers)}\n        onTouchEnd={handleEvent(onTouchEnd, day, modifiers)}\n        onTouchStart={handleEvent(onTouchStart, day, modifiers)}\n        onFocus={handleEvent(onFocus, day, modifiers)}\n      >\n        {children}\n      </div>\n    );\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/Day.js","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nexport default class Weekday extends Component {\n  static propTypes = {\n    weekday: PropTypes.number,\n    className: PropTypes.string,\n    locale: PropTypes.string,\n    localeUtils: PropTypes.object,\n\n    weekdaysLong: PropTypes.arrayOf(PropTypes.string),\n    weekdaysShort: PropTypes.arrayOf(PropTypes.string),\n  };\n\n  shouldComponentUpdate(nextProps) {\n    return this.props !== nextProps;\n  }\n\n  render() {\n    const {\n      weekday,\n      className,\n      weekdaysLong,\n      weekdaysShort,\n      localeUtils,\n      locale,\n    } = this.props;\n    let title;\n    if (weekdaysLong) {\n      title = weekdaysLong[weekday];\n    } else {\n      title = localeUtils.formatWeekdayLong(weekday, locale);\n    }\n    let content;\n    if (weekdaysShort) {\n      content = weekdaysShort[weekday];\n    } else {\n      content = localeUtils.formatWeekdayShort(weekday, locale);\n    }\n\n    return (\n      <div className={className} role=\"columnheader\">\n        <abbr title={title}>{content}</abbr>\n      </div>\n    );\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/Weekday.js","import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport DayPicker from './DayPicker';\nimport { isSameMonth, isDate } from './DateUtils';\nimport { getModifiersForDay } from './ModifiersUtils';\nimport { ESC, TAB } from './keys';\n\n// When clicking on a day cell, overlay will be hidden after this timeout\nexport const HIDE_TIMEOUT = 100;\n\n/**\n * The default component used as Overlay.\n *\n * @param {Object} props\n */\nexport function OverlayComponent({\n  input,\n  selectedDay,\n  month,\n  children,\n  classNames,\n  ...props\n}) {\n  return (\n    <div className={classNames.overlayWrapper} {...props}>\n      <div className={classNames.overlay}>{children}</div>\n    </div>\n  );\n}\n\nOverlayComponent.propTypes = {\n  input: PropTypes.any,\n  selectedDay: PropTypes.any,\n  month: PropTypes.instanceOf(Date),\n  children: PropTypes.node,\n  classNames: PropTypes.object,\n};\n\n/**\n * The default function used to format a Date to String, passed to the `format`\n * prop.\n * @param {Date} d\n * @return {String}\n */\nexport function defaultFormat(d) {\n  if (isDate(d)) {\n    const year = d.getFullYear();\n    const month = `${d.getMonth() + 1}`;\n    const day = `${d.getDate()}`;\n    return `${year}-${month}-${day}`;\n  }\n  return '';\n}\n\n/**\n * The default function used to parse a String as Date, passed to the `parse`\n * prop.\n * @param {String} str\n * @return {Date}\n */\nexport function defaultParse(str) {\n  if (typeof str !== 'string') {\n    return undefined;\n  }\n  const split = str.split('-');\n  if (split.length !== 3) {\n    return undefined;\n  }\n  const year = parseInt(split[0], 10);\n  const month = parseInt(split[1], 10) - 1;\n  const day = parseInt(split[2], 10);\n  if (\n    isNaN(year) ||\n    String(year).length > 4 ||\n    isNaN(month) ||\n    isNaN(day) ||\n    day <= 0 ||\n    day > 31 ||\n    month < 0 ||\n    month >= 12\n  ) {\n    return undefined;\n  }\n\n  return new Date(year, month, day, 12, 0, 0, 0); // always set noon to avoid time zone issues\n}\n\nexport default class DayPickerInput extends React.Component {\n  input = null;\n\n  daypicker = null;\n\n  clickTimeout = null;\n\n  hideTimeout = null;\n\n  inputBlurTimeout = null;\n\n  inputFocusTimeout = null;\n\n  static propTypes = {\n    value: PropTypes.oneOfType([PropTypes.string, PropTypes.instanceOf(Date)]),\n    inputProps: PropTypes.object,\n    placeholder: PropTypes.string,\n\n    format: PropTypes.oneOfType([\n      PropTypes.string,\n      PropTypes.arrayOf(PropTypes.string),\n    ]),\n\n    formatDate: PropTypes.func,\n    parseDate: PropTypes.func,\n    typedValue: PropTypes.string,\n\n    showOverlay: PropTypes.bool,\n    dayPickerProps: PropTypes.object,\n    hideOnDayClick: PropTypes.bool,\n    clickUnselectsDay: PropTypes.bool,\n    keepFocus: PropTypes.bool,\n    component: PropTypes.any,\n    overlayComponent: PropTypes.any,\n\n    style: PropTypes.object,\n    classNames: PropTypes.shape({\n      container: PropTypes.string,\n      overlayWrapper: PropTypes.string,\n      overlay: PropTypes.string.isRequired,\n    }),\n\n    onDayChange: PropTypes.func,\n    onDayPickerHide: PropTypes.func,\n    onDayPickerShow: PropTypes.func,\n    onChange: PropTypes.func,\n    onClick: PropTypes.func,\n    onFocus: PropTypes.func,\n    onBlur: PropTypes.func,\n    onKeyUp: PropTypes.func,\n  };\n\n  static defaultProps = {\n    dayPickerProps: {},\n    value: '',\n    typedValue: '',\n    placeholder: 'YYYY-M-D',\n    format: 'L',\n    formatDate: defaultFormat,\n    parseDate: defaultParse,\n    showOverlay: false,\n    hideOnDayClick: true,\n    clickUnselectsDay: false,\n    keepFocus: true,\n    component: 'input',\n    inputProps: {},\n    overlayComponent: OverlayComponent,\n    classNames: {\n      container: 'DayPickerInput',\n      overlayWrapper: 'DayPickerInput-OverlayWrapper',\n      overlay: 'DayPickerInput-Overlay',\n    },\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.state = this.getInitialStateFromProps(props);\n    this.state.showOverlay = props.showOverlay;\n\n    this.hideAfterDayClick = this.hideAfterDayClick.bind(this);\n    this.handleInputClick = this.handleInputClick.bind(this);\n    this.handleInputFocus = this.handleInputFocus.bind(this);\n    this.handleInputBlur = this.handleInputBlur.bind(this);\n    this.handleInputChange = this.handleInputChange.bind(this);\n    this.handleInputKeyDown = this.handleInputKeyDown.bind(this);\n    this.handleInputKeyUp = this.handleInputKeyUp.bind(this);\n    this.handleDayClick = this.handleDayClick.bind(this);\n    this.handleMonthChange = this.handleMonthChange.bind(this);\n    this.handleOverlayFocus = this.handleOverlayFocus.bind(this);\n    this.handleOverlayBlur = this.handleOverlayBlur.bind(this);\n  }\n\n  componentDidUpdate(prevProps) {\n    const newState = {};\n\n    // Current props\n    const { value, formatDate, format, dayPickerProps } = this.props;\n\n    // Update the input value if `value`, `dayPickerProps.locale` or `format`\n    // props have changed\n    if (\n      value !== prevProps.value ||\n      dayPickerProps.locale !== prevProps.dayPickerProps.locale ||\n      format !== prevProps.format\n    ) {\n      if (isDate(value)) {\n        newState.value = formatDate(value, format, dayPickerProps.locale);\n      } else {\n        newState.value = value;\n      }\n    }\n\n    // Update the month if the months from props changed\n    const prevMonth = prevProps.dayPickerProps.month;\n    if (\n      dayPickerProps.month &&\n      dayPickerProps.month !== prevMonth &&\n      !isSameMonth(dayPickerProps.month, prevMonth)\n    ) {\n      newState.month = dayPickerProps.month;\n    }\n\n    // Updated the selected days from props if they changed\n    if (prevProps.dayPickerProps.selectedDays !== dayPickerProps.selectedDays) {\n      newState.selectedDays = dayPickerProps.selectedDays;\n    }\n\n    if (Object.keys(newState).length > 0) {\n      // eslint-disable-next-line react/no-did-update-set-state\n      this.setState(newState);\n    }\n  }\n\n  componentWillUnmount() {\n    clearTimeout(this.clickTimeout);\n    clearTimeout(this.hideTimeout);\n    clearTimeout(this.inputFocusTimeout);\n    clearTimeout(this.inputBlurTimeout);\n    clearTimeout(this.overlayBlurTimeout);\n  }\n\n  getInitialMonthFromProps(props) {\n    const { dayPickerProps, format } = props;\n    let day;\n    if (props.value) {\n      if (isDate(props.value)) {\n        day = props.value;\n      } else {\n        day = props.parseDate(props.value, format, dayPickerProps.locale);\n      }\n    }\n    return (\n      dayPickerProps.initialMonth || dayPickerProps.month || day || new Date()\n    );\n  }\n\n  getInitialStateFromProps(props) {\n    const { dayPickerProps, formatDate, format, typedValue } = props;\n    let { value } = props;\n    if (props.value && isDate(props.value)) {\n      value = formatDate(props.value, format, dayPickerProps.locale);\n    }\n\n    return {\n      value,\n      typedValue,\n      month: this.getInitialMonthFromProps(props),\n      selectedDays: dayPickerProps.selectedDays,\n    };\n  }\n\n  getInput() {\n    return this.input;\n  }\n\n  getDayPicker() {\n    return this.daypicker;\n  }\n\n  /**\n   * Update the component's state and fire the `onDayChange` event passing the\n   * day's modifiers to it.\n   *\n   * @param {Date} day - Will be used for changing the month\n   * @param {String} value - Input field value\n   * @private\n   */\n  updateState(day, value, callback) {\n    const { dayPickerProps, onDayChange } = this.props;\n    this.setState({ month: day, value, typedValue: '' }, () => {\n      if (callback) {\n        callback();\n      }\n      if (!onDayChange) {\n        return;\n      }\n      const modifiersObj = {\n        disabled: dayPickerProps.disabledDays,\n        selected: dayPickerProps.selectedDays,\n        ...dayPickerProps.modifiers,\n      };\n      const modifiers = getModifiersForDay(day, modifiersObj).reduce(\n        (obj, modifier) => ({\n          ...obj,\n          [modifier]: true,\n        }),\n        {}\n      );\n      onDayChange(day, modifiers, this);\n    });\n  }\n\n  /**\n   * Show the Day Picker overlay.\n   *\n   * @memberof DayPickerInput\n   */\n  showDayPicker() {\n    const { parseDate, format, dayPickerProps } = this.props;\n    const { value, showOverlay } = this.state;\n    if (showOverlay) {\n      return;\n    }\n    // Reset the current displayed month when showing the overlay\n    const month = value\n      ? parseDate(value, format, dayPickerProps.locale) // Use the month in the input field\n      : this.getInitialMonthFromProps(this.props); // Restore the month from the props\n    this.setState(\n      state => ({\n        showOverlay: true,\n        month: month || state.month,\n      }),\n      () => {\n        if (this.props.onDayPickerShow) this.props.onDayPickerShow();\n      }\n    );\n  }\n\n  /**\n   * Hide the Day Picker overlay\n   *\n   * @memberof DayPickerInput\n   */\n  hideDayPicker() {\n    if (this.state.showOverlay === false) {\n      return;\n    }\n    this.setState({ showOverlay: false }, () => {\n      if (this.props.onDayPickerHide) this.props.onDayPickerHide();\n    });\n  }\n\n  hideAfterDayClick() {\n    if (!this.props.hideOnDayClick) {\n      return;\n    }\n    this.hideTimeout = setTimeout(() => {\n      this.overlayHasFocus = false;\n      this.hideDayPicker();\n    }, HIDE_TIMEOUT);\n  }\n\n  handleInputClick(e) {\n    this.showDayPicker();\n    if (this.props.inputProps.onClick) {\n      e.persist();\n      this.props.inputProps.onClick(e);\n    }\n  }\n\n  handleInputFocus(e) {\n    this.showDayPicker();\n    // Set `overlayHasFocus` after a timeout so the overlay can be hidden when\n    // the input is blurred\n    this.inputFocusTimeout = setTimeout(() => {\n      this.overlayHasFocus = false;\n    }, 2);\n    if (this.props.inputProps.onFocus) {\n      e.persist();\n      this.props.inputProps.onFocus(e);\n    }\n  }\n\n  // When the input is blurred, the overlay should disappear. However the input\n  // is blurred also when the user interacts with the overlay (e.g. the overlay\n  // get the focus by clicking it). In these cases, the overlay should not be\n  // hidden. There are different approaches to avoid hiding the overlay when\n  // this happens, but the only cross-browser hack we’ve found is to set all\n  // these timeouts in code before changing `overlayHasFocus`.\n  handleInputBlur(e) {\n    this.inputBlurTimeout = setTimeout(() => {\n      if (!this.overlayHasFocus) {\n        this.hideDayPicker();\n      }\n    }, 1);\n    if (this.props.inputProps.onBlur) {\n      e.persist();\n      this.props.inputProps.onBlur(e);\n    }\n  }\n\n  handleOverlayFocus(e) {\n    e.preventDefault();\n    this.overlayHasFocus = true;\n    if (\n      !this.props.keepFocus ||\n      !this.input ||\n      typeof this.input.focus !== 'function'\n    ) {\n      return;\n    }\n    this.input.focus();\n  }\n\n  handleOverlayBlur() {\n    // We need to set a timeout otherwise IE11 will hide the overlay when\n    // focusing it\n    this.overlayBlurTimeout = setTimeout(() => {\n      this.overlayHasFocus = false;\n    }, 3);\n  }\n\n  handleInputChange(e) {\n    const {\n      dayPickerProps,\n      format,\n      inputProps,\n      onDayChange,\n      parseDate,\n    } = this.props;\n    if (inputProps.onChange) {\n      e.persist();\n      inputProps.onChange(e);\n    }\n    const { value } = e.target;\n    if (value.trim() === '') {\n      this.setState({ value, typedValue: '' });\n      if (onDayChange) onDayChange(undefined, {}, this);\n      return;\n    }\n    const day = parseDate(value, format, dayPickerProps.locale);\n    if (!day) {\n      // Day is invalid: we save the value in the typedValue state\n      this.setState({ value, typedValue: value });\n      if (onDayChange) onDayChange(undefined, {}, this);\n      return;\n    }\n    this.updateState(day, value);\n  }\n\n  handleInputKeyDown(e) {\n    if (e.keyCode === TAB) {\n      this.hideDayPicker();\n    } else {\n      this.showDayPicker();\n    }\n    if (this.props.inputProps.onKeyDown) {\n      e.persist();\n      this.props.inputProps.onKeyDown(e);\n    }\n  }\n\n  handleInputKeyUp(e) {\n    if (e.keyCode === ESC) {\n      this.hideDayPicker();\n    } else {\n      this.showDayPicker();\n    }\n    if (this.props.inputProps.onKeyUp) {\n      e.persist();\n      this.props.inputProps.onKeyUp(e);\n    }\n  }\n\n  handleMonthChange(month) {\n    this.setState({ month }, () => {\n      if (\n        this.props.dayPickerProps &&\n        this.props.dayPickerProps.onMonthChange\n      ) {\n        this.props.dayPickerProps.onMonthChange(month);\n      }\n    });\n  }\n\n  handleDayClick(day, modifiers, e) {\n    const {\n      clickUnselectsDay,\n      dayPickerProps,\n      onDayChange,\n      formatDate,\n      format,\n    } = this.props;\n    if (dayPickerProps.onDayClick) {\n      dayPickerProps.onDayClick(day, modifiers, e);\n    }\n\n    // Do nothing if the day is disabled\n    if (\n      modifiers.disabled ||\n      (dayPickerProps &&\n        dayPickerProps.classNames &&\n        modifiers[dayPickerProps.classNames.disabled])\n    ) {\n      return;\n    }\n\n    // If the clicked day is already selected, remove the clicked day\n    // from the selected days and empty the field value\n    if (modifiers.selected && clickUnselectsDay) {\n      let { selectedDays } = this.state;\n      if (Array.isArray(selectedDays)) {\n        selectedDays = selectedDays.slice(0);\n        const selectedDayIdx = selectedDays.indexOf(day);\n        selectedDays.splice(selectedDayIdx, 1);\n      } else if (selectedDays) {\n        selectedDays = null;\n      }\n\n      this.setState(\n        { value: '', typedValue: '', selectedDays },\n        this.hideAfterDayClick\n      );\n\n      if (onDayChange) {\n        onDayChange(undefined, modifiers, this);\n      }\n      return;\n    }\n\n    const value = formatDate(day, format, dayPickerProps.locale);\n    this.setState({ value, typedValue: '', month: day }, () => {\n      if (onDayChange) {\n        onDayChange(day, modifiers, this);\n      }\n      this.hideAfterDayClick();\n    });\n  }\n\n  renderOverlay() {\n    const {\n      classNames,\n      dayPickerProps,\n      parseDate,\n      formatDate,\n      format,\n    } = this.props;\n    const { selectedDays, value } = this.state;\n    let selectedDay;\n    if (!selectedDays && value) {\n      const day = parseDate(value, format, dayPickerProps.locale);\n      if (day) {\n        selectedDay = day;\n      }\n    } else if (selectedDays) {\n      selectedDay = selectedDays;\n    }\n    let onTodayButtonClick;\n    if (dayPickerProps.todayButton) {\n      // Set the current day when clicking the today button\n      onTodayButtonClick = () =>\n        this.updateState(\n          new Date(),\n          formatDate(new Date(), format, dayPickerProps.locale),\n          this.hideAfterDayClick\n        );\n    }\n    const Overlay = this.props.overlayComponent;\n    return (\n      <Overlay\n        classNames={classNames}\n        month={this.state.month}\n        selectedDay={selectedDay}\n        input={this.input}\n        tabIndex={0} // tabIndex is necessary to catch focus/blur events on Safari\n        onFocus={this.handleOverlayFocus}\n        onBlur={this.handleOverlayBlur}\n      >\n        <DayPicker\n          ref={el => (this.daypicker = el)}\n          onTodayButtonClick={onTodayButtonClick}\n          {...dayPickerProps}\n          month={this.state.month}\n          selectedDays={selectedDay}\n          onDayClick={this.handleDayClick}\n          onMonthChange={this.handleMonthChange}\n        />\n      </Overlay>\n    );\n  }\n\n  render() {\n    const Input = this.props.component;\n    const { inputProps } = this.props;\n    return (\n      <div className={this.props.classNames.container} style={this.props.style}>\n        <Input\n          ref={el => (this.input = el)}\n          placeholder={this.props.placeholder}\n          {...inputProps}\n          value={this.state.value || this.state.typedValue}\n          onChange={this.handleInputChange}\n          onFocus={this.handleInputFocus}\n          onBlur={this.handleInputBlur}\n          onKeyDown={this.handleInputKeyDown}\n          onKeyUp={this.handleInputKeyUp}\n          onClick={!inputProps.disabled ? this.handleInputClick : undefined}\n        />\n        {this.state.showOverlay && this.renderOverlay()}\n      </div>\n    );\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/DayPickerInput.js"],"sourceRoot":""}