renderMonthText: renderMonthText,
renderCalendarDay: renderCalendarDay,
renderDayContents: renderDayContents,
renderCalendarInfo: renderCalendarInfo,
renderMonthElement: renderMonthElement,
calendarInfoPosition: calendarInfoPosition,
getFirstFocusableDay: this.getFirstFocusableDay,
showKeyboardShortcuts: showKeyboardShortcuts,
weekDayFormat: weekDayFormat,
dayAriaLabelFormat: dayAriaLabelFormat,
verticalHeight: verticalHeight,
transitionDuration: transitionDuration,
verticalBorderSpacing: verticalBorderSpacing,
horizontalMonthPadding: horizontalMonthPadding
return DayPickerSingleDateController;
}(_react2['default'].Component);
exports['default'] = DayPickerSingleDateController;
DayPickerSingleDateController.propTypes = propTypes;
DayPickerSingleDateController.defaultProps = defaultProps;
/***/ (function(module, exports) {
(function() { module.exports = window["lodash"]; }());
/***/ (function(module, exports, __webpack_require__) {
* Copyright (c) 2013-present, Facebook, Inc.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @providesModule shallowCompare
var hasOwnProperty = Object.prototype.hasOwnProperty;
* inlined Object.is polyfill to avoid requiring consumers ship their own
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
// Steps 6.b-6.e: +0 != -0
// Added the nonzero y check to make Flow happy, but it is redundant
return x !== 0 || y !== 0 || 1 / x === 1 / y;
return x !== x && y !== y;
* Performs equality by iterating through keys on an object and returning false
* when any key has values which are not strictly equal between the arguments.
* Returns true when the values of all keys are strictly equal.
function shallowEqual(objA, objB) {
if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
var keysA = Object.keys(objA);
var keysB = Object.keys(objB);
if (keysA.length !== keysB.length) {
// Test for A's keys different from B.
for (var i = 0; i < keysA.length; i++) {
if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
* Does a shallow comparison for props and state.
* See ReactComponentWithPureRenderMixin
* See also https://facebook.github.io/react/docs/shallow-compare.html
function shallowCompare(instance, nextProps, nextState) {
!shallowEqual(instance.props, nextProps) ||
!shallowEqual(instance.state, nextState)
module.exports = shallowCompare;
/***/ (function(module, exports) {
(function() { module.exports = window["wp"]["warning"]; }());
/***/ (function(module, exports, __webpack_require__) {
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _extends = _interopDefault(__webpack_require__("pVnL"));
var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__("8OQS"));
var React = __webpack_require__("cDcd");
var React__default = _interopDefault(React);
var _inheritsLoose = _interopDefault(__webpack_require__("VbXa"));
var _assertThisInitialized = _interopDefault(__webpack_require__("PJYZ"));
return Object.prototype.toString.call(a) === '[object Object]';
return typeof a === 'function';
return typeof a === 'string';
return typeof a === 'number';
equ: function equ(a, b) {
if (typeof a !== typeof b) return false;
if (is.str(a) || is.num(a)) return a === b;
if (is.obj(a) && is.obj(b) && Object.keys(a).length + Object.keys(b).length === 0) return true;
if (!(i in b)) return false;
if (a[i] !== b[i]) return false;
return is.und(i) ? a === b : true;
function merge(target, lowercase) {
if (lowercase === void 0) {
return function (object) {
return (is.arr(object) ? object : Object.keys(object)).reduce(function (acc, element) {
var key = lowercase ? element[0].toLowerCase() + element.substring(1) : element;
function useForceUpdate() {
var _useState = React.useState(false),
var forceUpdate = React.useCallback(function () {
function withDefault(value, defaultValue) {
return is.und(value) || is.nul(value) ? defaultValue : value;
return !is.und(a) ? is.arr(a) ? a : [a] : [];
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
return is.fun(obj) ? obj.apply(void 0, args) : obj;
function getForwardProps(props) {
children = props.children,
immediate = props.immediate,
destroyed = props.destroyed,
interpolateTo = props.interpolateTo,
forward = _objectWithoutPropertiesLoose(props, ["to", "from", "config", "onStart", "onRest", "onFrame", "children", "reset", "reverse", "force", "immediate", "delay", "attach", "destroyed", "interpolateTo", "ref", "lazy"]);
function interpolateTo(props) {
var forward = getForwardProps(props);
if (is.und(forward)) return _extends({
var rest = Object.keys(props).reduce(function (a, k) {
return !is.und(forward[k]) ? a : _extends({}, a, (_extends2 = {}, _extends2[k] = props[k], _extends2));
function handleRef(ref, forward) {
// If it's a function, assume it's a ref callback
if (is.fun(forward)) forward(ref);else if (is.obj(forward)) {
var _proto = Animated.prototype;
_proto.getAnimatedValue = function getAnimatedValue() {
_proto.getPayload = function getPayload() {
return this.payload || this;
_proto.attach = function attach() {};
_proto.detach = function detach() {};
_proto.getChildren = function getChildren() {
_proto.addChild = function addChild(child) {
if (this.children.length === 0) this.attach();
this.children.push(child);
_proto.removeChild = function removeChild(child) {
var index = this.children.indexOf(child);
this.children.splice(index, 1);
if (this.children.length === 0) this.detach();
_inheritsLoose(AnimatedArray, _Animated);
function AnimatedArray() {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
_this = _Animated.call.apply(_Animated, [this].concat(args)) || this;
_this.attach = function () {
return _this.payload.forEach(function (p) {
return p instanceof Animated && p.addChild(_assertThisInitialized(_this));
_this.detach = function () {
return _this.payload.forEach(function (p) {
return p instanceof Animated && p.removeChild(_assertThisInitialized(_this));
_inheritsLoose(AnimatedObject, _Animated2);
function AnimatedObject() {
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
args[_key3] = arguments[_key3];
_this2 = _Animated2.call.apply(_Animated2, [this].concat(args)) || this;
_this2.attach = function () {
return Object.values(_this2.payload).forEach(function (s) {
return s instanceof Animated && s.addChild(_assertThisInitialized(_this2));
_this2.detach = function () {
return Object.values(_this2.payload).forEach(function (s) {
return s instanceof Animated && s.removeChild(_assertThisInitialized(_this2));
var _proto2 = AnimatedObject.prototype;
_proto2.getValue = function getValue(animated) {
if (animated === void 0) {
for (var _key4 in this.payload) {
var value = this.payload[_key4];
if (animated && !(value instanceof Animated)) continue;
payload[_key4] = value instanceof Animated ? value[animated ? 'getAnimatedValue' : 'getValue']() : value;
_proto2.getAnimatedValue = function getAnimatedValue() {
return this.getValue(true);
function injectApplyAnimatedValues(fn, transform) {
function injectColorNames(names) {
var requestFrame = function requestFrame(cb) {
return typeof window !== 'undefined' ? window.requestAnimationFrame(cb) : -1;
var cancelFrame = function cancelFrame(id) {
typeof window !== 'undefined' && window.cancelAnimationFrame(id);
function injectFrame(raf, caf) {
function injectStringInterpolator(fn) {
var now = function now() {
function injectNow(nowFn) {
function injectDefaultElement(el) {
var animatedApi = function animatedApi(node) {
function injectAnimatedApi(fn) {
function injectCreateAnimatedStyle(factory) {
createAnimatedStyle = factory;
function injectManualFrameloop(callback) {
manualFrameloop = callback;
var Globals = /*#__PURE__*/Object.freeze({
get applyAnimatedValues () { return applyAnimatedValues; },
injectApplyAnimatedValues: injectApplyAnimatedValues,
get colorNames () { return colorNames; },
injectColorNames: injectColorNames,
get requestFrame () { return requestFrame; },
get cancelFrame () { return cancelFrame; },
injectFrame: injectFrame,
get interpolation () { return interpolation; },
injectStringInterpolator: injectStringInterpolator,
get now () { return now; },
get defaultElement () { return defaultElement; },
injectDefaultElement: injectDefaultElement,
get animatedApi () { return animatedApi; },
injectAnimatedApi: injectAnimatedApi,
get createAnimatedStyle () { return createAnimatedStyle; },
injectCreateAnimatedStyle: injectCreateAnimatedStyle,
get manualFrameloop () { return manualFrameloop; },
injectManualFrameloop: injectManualFrameloop
* Wraps the `style` property with `AnimatedStyle`.
function (_AnimatedObject) {
_inheritsLoose(AnimatedProps, _AnimatedObject);
function AnimatedProps(props, callback) {
_this = _AnimatedObject.call(this) || this;
_this.payload = !props.style ? props : _extends({}, props, {
style: createAnimatedStyle(props.style)