Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
daySize: _airbnbPropTypes.nonNegativeInteger,
[42500] Fix | Delete
focusedDate: _reactMomentProptypes2['default'].momentObj, // indicates focusable day
[42501] Fix | Delete
isFocused: _propTypes2['default'].bool, // indicates whether or not to move focus to focusable day
[42502] Fix | Delete
firstDayOfWeek: _DayOfWeekShape2['default'],
[42503] Fix | Delete
setMonthTitleHeight: _propTypes2['default'].func,
[42504] Fix | Delete
isRTL: _propTypes2['default'].bool,
[42505] Fix | Delete
transitionDuration: _airbnbPropTypes.nonNegativeInteger,
[42506] Fix | Delete
verticalBorderSpacing: _airbnbPropTypes.nonNegativeInteger,
[42507] Fix | Delete
[42508] Fix | Delete
// i18n
[42509] Fix | Delete
monthFormat: _propTypes2['default'].string,
[42510] Fix | Delete
phrases: _propTypes2['default'].shape((0, _getPhrasePropTypes2['default'])(_defaultPhrases.CalendarDayPhrases)),
[42511] Fix | Delete
dayAriaLabelFormat: _propTypes2['default'].string
[42512] Fix | Delete
}));
[42513] Fix | Delete
[42514] Fix | Delete
var defaultProps = {
[42515] Fix | Delete
enableOutsideDays: false,
[42516] Fix | Delete
firstVisibleMonthIndex: 0,
[42517] Fix | Delete
horizontalMonthPadding: 13,
[42518] Fix | Delete
initialMonth: (0, _moment2['default'])(),
[42519] Fix | Delete
isAnimating: false,
[42520] Fix | Delete
numberOfMonths: 1,
[42521] Fix | Delete
modifiers: {},
[42522] Fix | Delete
orientation: _constants.HORIZONTAL_ORIENTATION,
[42523] Fix | Delete
onDayClick: function () {
[42524] Fix | Delete
function onDayClick() {}
[42525] Fix | Delete
[42526] Fix | Delete
return onDayClick;
[42527] Fix | Delete
}(),
[42528] Fix | Delete
onDayMouseEnter: function () {
[42529] Fix | Delete
function onDayMouseEnter() {}
[42530] Fix | Delete
[42531] Fix | Delete
return onDayMouseEnter;
[42532] Fix | Delete
}(),
[42533] Fix | Delete
onDayMouseLeave: function () {
[42534] Fix | Delete
function onDayMouseLeave() {}
[42535] Fix | Delete
[42536] Fix | Delete
return onDayMouseLeave;
[42537] Fix | Delete
}(),
[42538] Fix | Delete
onMonthChange: function () {
[42539] Fix | Delete
function onMonthChange() {}
[42540] Fix | Delete
[42541] Fix | Delete
return onMonthChange;
[42542] Fix | Delete
}(),
[42543] Fix | Delete
onYearChange: function () {
[42544] Fix | Delete
function onYearChange() {}
[42545] Fix | Delete
[42546] Fix | Delete
return onYearChange;
[42547] Fix | Delete
}(),
[42548] Fix | Delete
onMonthTransitionEnd: function () {
[42549] Fix | Delete
function onMonthTransitionEnd() {}
[42550] Fix | Delete
[42551] Fix | Delete
return onMonthTransitionEnd;
[42552] Fix | Delete
}(),
[42553] Fix | Delete
[42554] Fix | Delete
renderMonthText: null,
[42555] Fix | Delete
renderCalendarDay: undefined,
[42556] Fix | Delete
renderDayContents: null,
[42557] Fix | Delete
translationValue: null,
[42558] Fix | Delete
renderMonthElement: null,
[42559] Fix | Delete
daySize: _constants.DAY_SIZE,
[42560] Fix | Delete
focusedDate: null,
[42561] Fix | Delete
isFocused: false,
[42562] Fix | Delete
firstDayOfWeek: null,
[42563] Fix | Delete
setMonthTitleHeight: null,
[42564] Fix | Delete
isRTL: false,
[42565] Fix | Delete
transitionDuration: 200,
[42566] Fix | Delete
verticalBorderSpacing: undefined,
[42567] Fix | Delete
[42568] Fix | Delete
// i18n
[42569] Fix | Delete
monthFormat: 'MMMM YYYY', // english locale
[42570] Fix | Delete
phrases: _defaultPhrases.CalendarDayPhrases,
[42571] Fix | Delete
dayAriaLabelFormat: undefined
[42572] Fix | Delete
};
[42573] Fix | Delete
[42574] Fix | Delete
function getMonths(initialMonth, numberOfMonths, withoutTransitionMonths) {
[42575] Fix | Delete
var month = initialMonth.clone();
[42576] Fix | Delete
if (!withoutTransitionMonths) month = month.subtract(1, 'month');
[42577] Fix | Delete
[42578] Fix | Delete
var months = [];
[42579] Fix | Delete
for (var i = 0; i < (withoutTransitionMonths ? numberOfMonths : numberOfMonths + 2); i += 1) {
[42580] Fix | Delete
months.push(month);
[42581] Fix | Delete
month = month.clone().add(1, 'month');
[42582] Fix | Delete
}
[42583] Fix | Delete
[42584] Fix | Delete
return months;
[42585] Fix | Delete
}
[42586] Fix | Delete
[42587] Fix | Delete
var CalendarMonthGrid = function (_React$Component) {
[42588] Fix | Delete
_inherits(CalendarMonthGrid, _React$Component);
[42589] Fix | Delete
[42590] Fix | Delete
function CalendarMonthGrid(props) {
[42591] Fix | Delete
_classCallCheck(this, CalendarMonthGrid);
[42592] Fix | Delete
[42593] Fix | Delete
var _this = _possibleConstructorReturn(this, (CalendarMonthGrid.__proto__ || Object.getPrototypeOf(CalendarMonthGrid)).call(this, props));
[42594] Fix | Delete
[42595] Fix | Delete
var withoutTransitionMonths = props.orientation === _constants.VERTICAL_SCROLLABLE;
[42596] Fix | Delete
_this.state = {
[42597] Fix | Delete
months: getMonths(props.initialMonth, props.numberOfMonths, withoutTransitionMonths)
[42598] Fix | Delete
};
[42599] Fix | Delete
[42600] Fix | Delete
_this.isTransitionEndSupported = (0, _isTransitionEndSupported2['default'])();
[42601] Fix | Delete
_this.onTransitionEnd = _this.onTransitionEnd.bind(_this);
[42602] Fix | Delete
_this.setContainerRef = _this.setContainerRef.bind(_this);
[42603] Fix | Delete
[42604] Fix | Delete
_this.locale = _moment2['default'].locale();
[42605] Fix | Delete
_this.onMonthSelect = _this.onMonthSelect.bind(_this);
[42606] Fix | Delete
_this.onYearSelect = _this.onYearSelect.bind(_this);
[42607] Fix | Delete
return _this;
[42608] Fix | Delete
}
[42609] Fix | Delete
[42610] Fix | Delete
_createClass(CalendarMonthGrid, [{
[42611] Fix | Delete
key: 'componentDidMount',
[42612] Fix | Delete
value: function () {
[42613] Fix | Delete
function componentDidMount() {
[42614] Fix | Delete
this.removeEventListener = (0, _consolidatedEvents.addEventListener)(this.container, 'transitionend', this.onTransitionEnd);
[42615] Fix | Delete
}
[42616] Fix | Delete
[42617] Fix | Delete
return componentDidMount;
[42618] Fix | Delete
}()
[42619] Fix | Delete
}, {
[42620] Fix | Delete
key: 'componentWillReceiveProps',
[42621] Fix | Delete
value: function () {
[42622] Fix | Delete
function componentWillReceiveProps(nextProps) {
[42623] Fix | Delete
var _this2 = this;
[42624] Fix | Delete
[42625] Fix | Delete
var initialMonth = nextProps.initialMonth,
[42626] Fix | Delete
numberOfMonths = nextProps.numberOfMonths,
[42627] Fix | Delete
orientation = nextProps.orientation;
[42628] Fix | Delete
var months = this.state.months;
[42629] Fix | Delete
var _props = this.props,
[42630] Fix | Delete
prevInitialMonth = _props.initialMonth,
[42631] Fix | Delete
prevNumberOfMonths = _props.numberOfMonths;
[42632] Fix | Delete
[42633] Fix | Delete
var hasMonthChanged = !prevInitialMonth.isSame(initialMonth, 'month');
[42634] Fix | Delete
var hasNumberOfMonthsChanged = prevNumberOfMonths !== numberOfMonths;
[42635] Fix | Delete
var newMonths = months;
[42636] Fix | Delete
[42637] Fix | Delete
if (hasMonthChanged && !hasNumberOfMonthsChanged) {
[42638] Fix | Delete
if ((0, _isNextMonth2['default'])(prevInitialMonth, initialMonth)) {
[42639] Fix | Delete
newMonths = months.slice(1);
[42640] Fix | Delete
newMonths.push(months[months.length - 1].clone().add(1, 'month'));
[42641] Fix | Delete
} else if ((0, _isPrevMonth2['default'])(prevInitialMonth, initialMonth)) {
[42642] Fix | Delete
newMonths = months.slice(0, months.length - 1);
[42643] Fix | Delete
newMonths.unshift(months[0].clone().subtract(1, 'month'));
[42644] Fix | Delete
} else {
[42645] Fix | Delete
var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;
[42646] Fix | Delete
newMonths = getMonths(initialMonth, numberOfMonths, withoutTransitionMonths);
[42647] Fix | Delete
}
[42648] Fix | Delete
}
[42649] Fix | Delete
[42650] Fix | Delete
if (hasNumberOfMonthsChanged) {
[42651] Fix | Delete
var _withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;
[42652] Fix | Delete
newMonths = getMonths(initialMonth, numberOfMonths, _withoutTransitionMonths);
[42653] Fix | Delete
}
[42654] Fix | Delete
[42655] Fix | Delete
var momentLocale = _moment2['default'].locale();
[42656] Fix | Delete
if (this.locale !== momentLocale) {
[42657] Fix | Delete
this.locale = momentLocale;
[42658] Fix | Delete
newMonths = newMonths.map(function (m) {
[42659] Fix | Delete
return m.locale(_this2.locale);
[42660] Fix | Delete
});
[42661] Fix | Delete
}
[42662] Fix | Delete
[42663] Fix | Delete
this.setState({
[42664] Fix | Delete
months: newMonths
[42665] Fix | Delete
});
[42666] Fix | Delete
}
[42667] Fix | Delete
[42668] Fix | Delete
return componentWillReceiveProps;
[42669] Fix | Delete
}()
[42670] Fix | Delete
}, {
[42671] Fix | Delete
key: 'shouldComponentUpdate',
[42672] Fix | Delete
value: function () {
[42673] Fix | Delete
function shouldComponentUpdate(nextProps, nextState) {
[42674] Fix | Delete
return (0, _reactAddonsShallowCompare2['default'])(this, nextProps, nextState);
[42675] Fix | Delete
}
[42676] Fix | Delete
[42677] Fix | Delete
return shouldComponentUpdate;
[42678] Fix | Delete
}()
[42679] Fix | Delete
}, {
[42680] Fix | Delete
key: 'componentDidUpdate',
[42681] Fix | Delete
value: function () {
[42682] Fix | Delete
function componentDidUpdate() {
[42683] Fix | Delete
var _props2 = this.props,
[42684] Fix | Delete
isAnimating = _props2.isAnimating,
[42685] Fix | Delete
transitionDuration = _props2.transitionDuration,
[42686] Fix | Delete
onMonthTransitionEnd = _props2.onMonthTransitionEnd;
[42687] Fix | Delete
[42688] Fix | Delete
// For IE9, immediately call onMonthTransitionEnd instead of
[42689] Fix | Delete
// waiting for the animation to complete. Similarly, if transitionDuration
[42690] Fix | Delete
// is set to 0, also immediately invoke the onMonthTransitionEnd callback
[42691] Fix | Delete
[42692] Fix | Delete
if ((!this.isTransitionEndSupported || !transitionDuration) && isAnimating) {
[42693] Fix | Delete
onMonthTransitionEnd();
[42694] Fix | Delete
}
[42695] Fix | Delete
}
[42696] Fix | Delete
[42697] Fix | Delete
return componentDidUpdate;
[42698] Fix | Delete
}()
[42699] Fix | Delete
}, {
[42700] Fix | Delete
key: 'componentWillUnmount',
[42701] Fix | Delete
value: function () {
[42702] Fix | Delete
function componentWillUnmount() {
[42703] Fix | Delete
if (this.removeEventListener) this.removeEventListener();
[42704] Fix | Delete
}
[42705] Fix | Delete
[42706] Fix | Delete
return componentWillUnmount;
[42707] Fix | Delete
}()
[42708] Fix | Delete
}, {
[42709] Fix | Delete
key: 'onTransitionEnd',
[42710] Fix | Delete
value: function () {
[42711] Fix | Delete
function onTransitionEnd() {
[42712] Fix | Delete
var onMonthTransitionEnd = this.props.onMonthTransitionEnd;
[42713] Fix | Delete
[42714] Fix | Delete
onMonthTransitionEnd();
[42715] Fix | Delete
}
[42716] Fix | Delete
[42717] Fix | Delete
return onTransitionEnd;
[42718] Fix | Delete
}()
[42719] Fix | Delete
}, {
[42720] Fix | Delete
key: 'onMonthSelect',
[42721] Fix | Delete
value: function () {
[42722] Fix | Delete
function onMonthSelect(currentMonth, newMonthVal) {
[42723] Fix | Delete
var newMonth = currentMonth.clone();
[42724] Fix | Delete
var _props3 = this.props,
[42725] Fix | Delete
onMonthChange = _props3.onMonthChange,
[42726] Fix | Delete
orientation = _props3.orientation;
[42727] Fix | Delete
var months = this.state.months;
[42728] Fix | Delete
[42729] Fix | Delete
var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;
[42730] Fix | Delete
var initialMonthSubtraction = months.indexOf(currentMonth);
[42731] Fix | Delete
if (!withoutTransitionMonths) {
[42732] Fix | Delete
initialMonthSubtraction -= 1;
[42733] Fix | Delete
}
[42734] Fix | Delete
newMonth.set('month', newMonthVal).subtract(initialMonthSubtraction, 'months');
[42735] Fix | Delete
onMonthChange(newMonth);
[42736] Fix | Delete
}
[42737] Fix | Delete
[42738] Fix | Delete
return onMonthSelect;
[42739] Fix | Delete
}()
[42740] Fix | Delete
}, {
[42741] Fix | Delete
key: 'onYearSelect',
[42742] Fix | Delete
value: function () {
[42743] Fix | Delete
function onYearSelect(currentMonth, newYearVal) {
[42744] Fix | Delete
var newMonth = currentMonth.clone();
[42745] Fix | Delete
var _props4 = this.props,
[42746] Fix | Delete
onYearChange = _props4.onYearChange,
[42747] Fix | Delete
orientation = _props4.orientation;
[42748] Fix | Delete
var months = this.state.months;
[42749] Fix | Delete
[42750] Fix | Delete
var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;
[42751] Fix | Delete
var initialMonthSubtraction = months.indexOf(currentMonth);
[42752] Fix | Delete
if (!withoutTransitionMonths) {
[42753] Fix | Delete
initialMonthSubtraction -= 1;
[42754] Fix | Delete
}
[42755] Fix | Delete
newMonth.set('year', newYearVal).subtract(initialMonthSubtraction, 'months');
[42756] Fix | Delete
onYearChange(newMonth);
[42757] Fix | Delete
}
[42758] Fix | Delete
[42759] Fix | Delete
return onYearSelect;
[42760] Fix | Delete
}()
[42761] Fix | Delete
}, {
[42762] Fix | Delete
key: 'setContainerRef',
[42763] Fix | Delete
value: function () {
[42764] Fix | Delete
function setContainerRef(ref) {
[42765] Fix | Delete
this.container = ref;
[42766] Fix | Delete
}
[42767] Fix | Delete
[42768] Fix | Delete
return setContainerRef;
[42769] Fix | Delete
}()
[42770] Fix | Delete
}, {
[42771] Fix | Delete
key: 'render',
[42772] Fix | Delete
value: function () {
[42773] Fix | Delete
function render() {
[42774] Fix | Delete
var _this3 = this;
[42775] Fix | Delete
[42776] Fix | Delete
var _props5 = this.props,
[42777] Fix | Delete
enableOutsideDays = _props5.enableOutsideDays,
[42778] Fix | Delete
firstVisibleMonthIndex = _props5.firstVisibleMonthIndex,
[42779] Fix | Delete
horizontalMonthPadding = _props5.horizontalMonthPadding,
[42780] Fix | Delete
isAnimating = _props5.isAnimating,
[42781] Fix | Delete
modifiers = _props5.modifiers,
[42782] Fix | Delete
numberOfMonths = _props5.numberOfMonths,
[42783] Fix | Delete
monthFormat = _props5.monthFormat,
[42784] Fix | Delete
orientation = _props5.orientation,
[42785] Fix | Delete
translationValue = _props5.translationValue,
[42786] Fix | Delete
daySize = _props5.daySize,
[42787] Fix | Delete
onDayMouseEnter = _props5.onDayMouseEnter,
[42788] Fix | Delete
onDayMouseLeave = _props5.onDayMouseLeave,
[42789] Fix | Delete
onDayClick = _props5.onDayClick,
[42790] Fix | Delete
renderMonthText = _props5.renderMonthText,
[42791] Fix | Delete
renderCalendarDay = _props5.renderCalendarDay,
[42792] Fix | Delete
renderDayContents = _props5.renderDayContents,
[42793] Fix | Delete
renderMonthElement = _props5.renderMonthElement,
[42794] Fix | Delete
onMonthTransitionEnd = _props5.onMonthTransitionEnd,
[42795] Fix | Delete
firstDayOfWeek = _props5.firstDayOfWeek,
[42796] Fix | Delete
focusedDate = _props5.focusedDate,
[42797] Fix | Delete
isFocused = _props5.isFocused,
[42798] Fix | Delete
isRTL = _props5.isRTL,
[42799] Fix | Delete
styles = _props5.styles,
[42800] Fix | Delete
phrases = _props5.phrases,
[42801] Fix | Delete
dayAriaLabelFormat = _props5.dayAriaLabelFormat,
[42802] Fix | Delete
transitionDuration = _props5.transitionDuration,
[42803] Fix | Delete
verticalBorderSpacing = _props5.verticalBorderSpacing,
[42804] Fix | Delete
setMonthTitleHeight = _props5.setMonthTitleHeight;
[42805] Fix | Delete
var months = this.state.months;
[42806] Fix | Delete
[42807] Fix | Delete
var isVertical = orientation === _constants.VERTICAL_ORIENTATION;
[42808] Fix | Delete
var isVerticalScrollable = orientation === _constants.VERTICAL_SCROLLABLE;
[42809] Fix | Delete
var isHorizontal = orientation === _constants.HORIZONTAL_ORIENTATION;
[42810] Fix | Delete
[42811] Fix | Delete
var calendarMonthWidth = (0, _getCalendarMonthWidth2['default'])(daySize, horizontalMonthPadding);
[42812] Fix | Delete
[42813] Fix | Delete
var width = isVertical || isVerticalScrollable ? calendarMonthWidth : (numberOfMonths + 2) * calendarMonthWidth;
[42814] Fix | Delete
[42815] Fix | Delete
var transformType = isVertical || isVerticalScrollable ? 'translateY' : 'translateX';
[42816] Fix | Delete
var transformValue = transformType + '(' + String(translationValue) + 'px)';
[42817] Fix | Delete
[42818] Fix | Delete
return _react2['default'].createElement(
[42819] Fix | Delete
'div',
[42820] Fix | Delete
_extends({}, (0, _reactWithStyles.css)(styles.CalendarMonthGrid, isHorizontal && styles.CalendarMonthGrid__horizontal, isVertical && styles.CalendarMonthGrid__vertical, isVerticalScrollable && styles.CalendarMonthGrid__vertical_scrollable, isAnimating && styles.CalendarMonthGrid__animating, isAnimating && transitionDuration && {
[42821] Fix | Delete
transition: 'transform ' + String(transitionDuration) + 'ms ease-in-out'
[42822] Fix | Delete
}, (0, _object2['default'])({}, (0, _getTransformStyles2['default'])(transformValue), {
[42823] Fix | Delete
width: width
[42824] Fix | Delete
})), {
[42825] Fix | Delete
ref: this.setContainerRef,
[42826] Fix | Delete
onTransitionEnd: onMonthTransitionEnd
[42827] Fix | Delete
}),
[42828] Fix | Delete
months.map(function (month, i) {
[42829] Fix | Delete
var isVisible = i >= firstVisibleMonthIndex && i < firstVisibleMonthIndex + numberOfMonths;
[42830] Fix | Delete
var hideForAnimation = i === 0 && !isVisible;
[42831] Fix | Delete
var showForAnimation = i === 0 && isAnimating && isVisible;
[42832] Fix | Delete
var monthString = (0, _toISOMonthString2['default'])(month);
[42833] Fix | Delete
return _react2['default'].createElement(
[42834] Fix | Delete
'div',
[42835] Fix | Delete
_extends({
[42836] Fix | Delete
key: monthString
[42837] Fix | Delete
}, (0, _reactWithStyles.css)(isHorizontal && styles.CalendarMonthGrid_month__horizontal, hideForAnimation && styles.CalendarMonthGrid_month__hideForAnimation, showForAnimation && !isVertical && !isRTL && {
[42838] Fix | Delete
position: 'absolute',
[42839] Fix | Delete
left: -calendarMonthWidth
[42840] Fix | Delete
}, showForAnimation && !isVertical && isRTL && {
[42841] Fix | Delete
position: 'absolute',
[42842] Fix | Delete
right: 0
[42843] Fix | Delete
}, showForAnimation && isVertical && {
[42844] Fix | Delete
position: 'absolute',
[42845] Fix | Delete
top: -translationValue
[42846] Fix | Delete
}, !isVisible && !isAnimating && styles.CalendarMonthGrid_month__hidden)),
[42847] Fix | Delete
_react2['default'].createElement(_CalendarMonth2['default'], {
[42848] Fix | Delete
month: month,
[42849] Fix | Delete
isVisible: isVisible,
[42850] Fix | Delete
enableOutsideDays: enableOutsideDays,
[42851] Fix | Delete
modifiers: modifiers[monthString],
[42852] Fix | Delete
monthFormat: monthFormat,
[42853] Fix | Delete
orientation: orientation,
[42854] Fix | Delete
onDayMouseEnter: onDayMouseEnter,
[42855] Fix | Delete
onDayMouseLeave: onDayMouseLeave,
[42856] Fix | Delete
onDayClick: onDayClick,
[42857] Fix | Delete
onMonthSelect: _this3.onMonthSelect,
[42858] Fix | Delete
onYearSelect: _this3.onYearSelect,
[42859] Fix | Delete
renderMonthText: renderMonthText,
[42860] Fix | Delete
renderCalendarDay: renderCalendarDay,
[42861] Fix | Delete
renderDayContents: renderDayContents,
[42862] Fix | Delete
renderMonthElement: renderMonthElement,
[42863] Fix | Delete
firstDayOfWeek: firstDayOfWeek,
[42864] Fix | Delete
daySize: daySize,
[42865] Fix | Delete
focusedDate: isVisible ? focusedDate : null,
[42866] Fix | Delete
isFocused: isFocused,
[42867] Fix | Delete
phrases: phrases,
[42868] Fix | Delete
setMonthTitleHeight: setMonthTitleHeight,
[42869] Fix | Delete
dayAriaLabelFormat: dayAriaLabelFormat,
[42870] Fix | Delete
verticalBorderSpacing: verticalBorderSpacing,
[42871] Fix | Delete
horizontalMonthPadding: horizontalMonthPadding
[42872] Fix | Delete
})
[42873] Fix | Delete
);
[42874] Fix | Delete
})
[42875] Fix | Delete
);
[42876] Fix | Delete
}
[42877] Fix | Delete
[42878] Fix | Delete
return render;
[42879] Fix | Delete
}()
[42880] Fix | Delete
}]);
[42881] Fix | Delete
[42882] Fix | Delete
return CalendarMonthGrid;
[42883] Fix | Delete
}(_react2['default'].Component);
[42884] Fix | Delete
[42885] Fix | Delete
CalendarMonthGrid.propTypes = propTypes;
[42886] Fix | Delete
CalendarMonthGrid.defaultProps = defaultProps;
[42887] Fix | Delete
[42888] Fix | Delete
exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) {
[42889] Fix | Delete
var _ref$reactDates = _ref.reactDates,
[42890] Fix | Delete
color = _ref$reactDates.color,
[42891] Fix | Delete
noScrollBarOnVerticalScrollable = _ref$reactDates.noScrollBarOnVerticalScrollable,
[42892] Fix | Delete
spacing = _ref$reactDates.spacing,
[42893] Fix | Delete
zIndex = _ref$reactDates.zIndex;
[42894] Fix | Delete
return {
[42895] Fix | Delete
CalendarMonthGrid: {
[42896] Fix | Delete
background: color.background,
[42897] Fix | Delete
textAlign: 'left',
[42898] Fix | Delete
zIndex: zIndex
[42899] Fix | Delete
},
[42900] Fix | Delete
[42901] Fix | Delete
CalendarMonthGrid__animating: {
[42902] Fix | Delete
zIndex: zIndex + 1
[42903] Fix | Delete
},
[42904] Fix | Delete
[42905] Fix | Delete
CalendarMonthGrid__horizontal: {
[42906] Fix | Delete
position: 'absolute',
[42907] Fix | Delete
left: spacing.dayPickerHorizontalPadding
[42908] Fix | Delete
},
[42909] Fix | Delete
[42910] Fix | Delete
CalendarMonthGrid__vertical: {
[42911] Fix | Delete
margin: '0 auto'
[42912] Fix | Delete
},
[42913] Fix | Delete
[42914] Fix | Delete
CalendarMonthGrid__vertical_scrollable: (0, _object2['default'])({
[42915] Fix | Delete
margin: '0 auto',
[42916] Fix | Delete
overflowY: 'scroll'
[42917] Fix | Delete
}, noScrollBarOnVerticalScrollable && {
[42918] Fix | Delete
'-webkitOverflowScrolling': 'touch',
[42919] Fix | Delete
'::-webkit-scrollbar': {
[42920] Fix | Delete
'-webkit-appearance': 'none',
[42921] Fix | Delete
display: 'none'
[42922] Fix | Delete
}
[42923] Fix | Delete
}),
[42924] Fix | Delete
[42925] Fix | Delete
CalendarMonthGrid_month__horizontal: {
[42926] Fix | Delete
display: 'inline-block',
[42927] Fix | Delete
verticalAlign: 'top',
[42928] Fix | Delete
minHeight: '100%'
[42929] Fix | Delete
},
[42930] Fix | Delete
[42931] Fix | Delete
CalendarMonthGrid_month__hideForAnimation: {
[42932] Fix | Delete
position: 'absolute',
[42933] Fix | Delete
zIndex: zIndex - 1,
[42934] Fix | Delete
opacity: 0,
[42935] Fix | Delete
pointerEvents: 'none'
[42936] Fix | Delete
},
[42937] Fix | Delete
[42938] Fix | Delete
CalendarMonthGrid_month__hidden: {
[42939] Fix | Delete
visibility: 'hidden'
[42940] Fix | Delete
}
[42941] Fix | Delete
};
[42942] Fix | Delete
})(CalendarMonthGrid);
[42943] Fix | Delete
[42944] Fix | Delete
/***/ }),
[42945] Fix | Delete
[42946] Fix | Delete
/***/ "TqVZ":
[42947] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[42948] Fix | Delete
[42949] Fix | Delete
"use strict";
[42950] Fix | Delete
[42951] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@emotion/sheet/dist/sheet.browser.esm.js
[42952] Fix | Delete
var sheet_browser_esm = __webpack_require__("z9I/");
[42953] Fix | Delete
[42954] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@emotion/stylis/dist/stylis.browser.esm.js
[42955] Fix | Delete
function stylis_min (W) {
[42956] Fix | Delete
function M(d, c, e, h, a) {
[42957] Fix | Delete
for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
[42958] Fix | Delete
g = e.charCodeAt(l);
[42959] Fix | Delete
l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
[42960] Fix | Delete
[42961] Fix | Delete
if (0 === b + n + v + m) {
[42962] Fix | Delete
if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
[42963] Fix | Delete
switch (g) {
[42964] Fix | Delete
case 32:
[42965] Fix | Delete
case 9:
[42966] Fix | Delete
case 59:
[42967] Fix | Delete
case 13:
[42968] Fix | Delete
case 10:
[42969] Fix | Delete
break;
[42970] Fix | Delete
[42971] Fix | Delete
default:
[42972] Fix | Delete
f += e.charAt(l);
[42973] Fix | Delete
}
[42974] Fix | Delete
[42975] Fix | Delete
g = 59;
[42976] Fix | Delete
}
[42977] Fix | Delete
[42978] Fix | Delete
switch (g) {
[42979] Fix | Delete
case 123:
[42980] Fix | Delete
f = f.trim();
[42981] Fix | Delete
q = f.charCodeAt(0);
[42982] Fix | Delete
k = 1;
[42983] Fix | Delete
[42984] Fix | Delete
for (t = ++l; l < B;) {
[42985] Fix | Delete
switch (g = e.charCodeAt(l)) {
[42986] Fix | Delete
case 123:
[42987] Fix | Delete
k++;
[42988] Fix | Delete
break;
[42989] Fix | Delete
[42990] Fix | Delete
case 125:
[42991] Fix | Delete
k--;
[42992] Fix | Delete
break;
[42993] Fix | Delete
[42994] Fix | Delete
case 47:
[42995] Fix | Delete
switch (g = e.charCodeAt(l + 1)) {
[42996] Fix | Delete
case 42:
[42997] Fix | Delete
case 47:
[42998] Fix | Delete
a: {
[42999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function