Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
[5000] Fix | Delete
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
[5001] Fix | Delete
[5002] Fix | Delete
var syms = Object.getOwnPropertySymbols(obj);
[5003] Fix | Delete
if (syms.length !== 1 || syms[0] !== sym) { return false; }
[5004] Fix | Delete
[5005] Fix | Delete
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
[5006] Fix | Delete
[5007] Fix | Delete
if (typeof Object.getOwnPropertyDescriptor === 'function') {
[5008] Fix | Delete
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
[5009] Fix | Delete
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
[5010] Fix | Delete
}
[5011] Fix | Delete
[5012] Fix | Delete
return true;
[5013] Fix | Delete
};
[5014] Fix | Delete
[5015] Fix | Delete
[5016] Fix | Delete
/***/ }),
[5017] Fix | Delete
[5018] Fix | Delete
/***/ "FqII":
[5019] Fix | Delete
/***/ (function(module, exports) {
[5020] Fix | Delete
[5021] Fix | Delete
(function() { module.exports = window["wp"]["date"]; }());
[5022] Fix | Delete
[5023] Fix | Delete
/***/ }),
[5024] Fix | Delete
[5025] Fix | Delete
/***/ "FufO":
[5026] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[5027] Fix | Delete
[5028] Fix | Delete
"use strict";
[5029] Fix | Delete
[5030] Fix | Delete
[5031] Fix | Delete
// modified from https://github.com/es-shims/es6-shim
[5032] Fix | Delete
var keys = __webpack_require__("1seS");
[5033] Fix | Delete
var canBeObject = function (obj) {
[5034] Fix | Delete
return typeof obj !== 'undefined' && obj !== null;
[5035] Fix | Delete
};
[5036] Fix | Delete
var hasSymbols = __webpack_require__("FpZJ")();
[5037] Fix | Delete
var callBound = __webpack_require__("VF6F");
[5038] Fix | Delete
var toObject = Object;
[5039] Fix | Delete
var $push = callBound('Array.prototype.push');
[5040] Fix | Delete
var $propIsEnumerable = callBound('Object.prototype.propertyIsEnumerable');
[5041] Fix | Delete
var originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null;
[5042] Fix | Delete
[5043] Fix | Delete
// eslint-disable-next-line no-unused-vars
[5044] Fix | Delete
module.exports = function assign(target, source1) {
[5045] Fix | Delete
if (!canBeObject(target)) { throw new TypeError('target must be an object'); }
[5046] Fix | Delete
var objTarget = toObject(target);
[5047] Fix | Delete
var s, source, i, props, syms, value, key;
[5048] Fix | Delete
for (s = 1; s < arguments.length; ++s) {
[5049] Fix | Delete
source = toObject(arguments[s]);
[5050] Fix | Delete
props = keys(source);
[5051] Fix | Delete
var getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols);
[5052] Fix | Delete
if (getSymbols) {
[5053] Fix | Delete
syms = getSymbols(source);
[5054] Fix | Delete
for (i = 0; i < syms.length; ++i) {
[5055] Fix | Delete
key = syms[i];
[5056] Fix | Delete
if ($propIsEnumerable(source, key)) {
[5057] Fix | Delete
$push(props, key);
[5058] Fix | Delete
}
[5059] Fix | Delete
}
[5060] Fix | Delete
}
[5061] Fix | Delete
for (i = 0; i < props.length; ++i) {
[5062] Fix | Delete
key = props[i];
[5063] Fix | Delete
value = source[key];
[5064] Fix | Delete
if ($propIsEnumerable(source, key)) {
[5065] Fix | Delete
objTarget[key] = value;
[5066] Fix | Delete
}
[5067] Fix | Delete
}
[5068] Fix | Delete
}
[5069] Fix | Delete
return objTarget;
[5070] Fix | Delete
};
[5071] Fix | Delete
[5072] Fix | Delete
[5073] Fix | Delete
/***/ }),
[5074] Fix | Delete
[5075] Fix | Delete
/***/ "Fv1B":
[5076] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[5077] Fix | Delete
[5078] Fix | Delete
"use strict";
[5079] Fix | Delete
[5080] Fix | Delete
[5081] Fix | Delete
Object.defineProperty(exports, "__esModule", {
[5082] Fix | Delete
value: true
[5083] Fix | Delete
});
[5084] Fix | Delete
var DISPLAY_FORMAT = exports.DISPLAY_FORMAT = 'L';
[5085] Fix | Delete
var ISO_FORMAT = exports.ISO_FORMAT = 'YYYY-MM-DD';
[5086] Fix | Delete
var ISO_MONTH_FORMAT = exports.ISO_MONTH_FORMAT = 'YYYY-MM';
[5087] Fix | Delete
[5088] Fix | Delete
var START_DATE = exports.START_DATE = 'startDate';
[5089] Fix | Delete
var END_DATE = exports.END_DATE = 'endDate';
[5090] Fix | Delete
[5091] Fix | Delete
var HORIZONTAL_ORIENTATION = exports.HORIZONTAL_ORIENTATION = 'horizontal';
[5092] Fix | Delete
var VERTICAL_ORIENTATION = exports.VERTICAL_ORIENTATION = 'vertical';
[5093] Fix | Delete
var VERTICAL_SCROLLABLE = exports.VERTICAL_SCROLLABLE = 'verticalScrollable';
[5094] Fix | Delete
[5095] Fix | Delete
var ICON_BEFORE_POSITION = exports.ICON_BEFORE_POSITION = 'before';
[5096] Fix | Delete
var ICON_AFTER_POSITION = exports.ICON_AFTER_POSITION = 'after';
[5097] Fix | Delete
[5098] Fix | Delete
var INFO_POSITION_TOP = exports.INFO_POSITION_TOP = 'top';
[5099] Fix | Delete
var INFO_POSITION_BOTTOM = exports.INFO_POSITION_BOTTOM = 'bottom';
[5100] Fix | Delete
var INFO_POSITION_BEFORE = exports.INFO_POSITION_BEFORE = 'before';
[5101] Fix | Delete
var INFO_POSITION_AFTER = exports.INFO_POSITION_AFTER = 'after';
[5102] Fix | Delete
[5103] Fix | Delete
var ANCHOR_LEFT = exports.ANCHOR_LEFT = 'left';
[5104] Fix | Delete
var ANCHOR_RIGHT = exports.ANCHOR_RIGHT = 'right';
[5105] Fix | Delete
[5106] Fix | Delete
var OPEN_DOWN = exports.OPEN_DOWN = 'down';
[5107] Fix | Delete
var OPEN_UP = exports.OPEN_UP = 'up';
[5108] Fix | Delete
[5109] Fix | Delete
var DAY_SIZE = exports.DAY_SIZE = 39;
[5110] Fix | Delete
var BLOCKED_MODIFIER = exports.BLOCKED_MODIFIER = 'blocked';
[5111] Fix | Delete
var WEEKDAYS = exports.WEEKDAYS = [0, 1, 2, 3, 4, 5, 6];
[5112] Fix | Delete
[5113] Fix | Delete
var FANG_WIDTH_PX = exports.FANG_WIDTH_PX = 20;
[5114] Fix | Delete
var FANG_HEIGHT_PX = exports.FANG_HEIGHT_PX = 10;
[5115] Fix | Delete
var DEFAULT_VERTICAL_SPACING = exports.DEFAULT_VERTICAL_SPACING = 22;
[5116] Fix | Delete
[5117] Fix | Delete
var MODIFIER_KEY_NAMES = exports.MODIFIER_KEY_NAMES = new Set(['Shift', 'Control', 'Alt', 'Meta']);
[5118] Fix | Delete
[5119] Fix | Delete
/***/ }),
[5120] Fix | Delete
[5121] Fix | Delete
/***/ "FyLM":
[5122] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[5123] Fix | Delete
[5124] Fix | Delete
"use strict";
[5125] Fix | Delete
[5126] Fix | Delete
// UNUSED EXPORTS: warning, useWarning
[5127] Fix | Delete
[5128] Fix | Delete
// EXTERNAL MODULE: ./node_modules/reakit/node_modules/reakit-warning/es/warning.js
[5129] Fix | Delete
var warning = __webpack_require__("JKGo");
[5130] Fix | Delete
[5131] Fix | Delete
// EXTERNAL MODULE: external "React"
[5132] Fix | Delete
var external_React_ = __webpack_require__("cDcd");
[5133] Fix | Delete
[5134] Fix | Delete
// EXTERNAL MODULE: ./node_modules/reakit/node_modules/reakit-utils/es/isObject.js
[5135] Fix | Delete
var isObject = __webpack_require__("nBMU");
[5136] Fix | Delete
[5137] Fix | Delete
// CONCATENATED MODULE: ./node_modules/reakit/node_modules/reakit-warning/es/useWarning.js
[5138] Fix | Delete
[5139] Fix | Delete
[5140] Fix | Delete
[5141] Fix | Delete
[5142] Fix | Delete
[5143] Fix | Delete
function isRefObject(ref) {
[5144] Fix | Delete
return Object(isObject["a" /* isObject */])(ref) && "current" in ref;
[5145] Fix | Delete
}
[5146] Fix | Delete
/**
[5147] Fix | Delete
* Logs `messages` to the console using `console.warn` based on a `condition`.
[5148] Fix | Delete
* This should be used inside components.
[5149] Fix | Delete
*/
[5150] Fix | Delete
[5151] Fix | Delete
[5152] Fix | Delete
function useWarning(condition) {
[5153] Fix | Delete
for (var _len = arguments.length, messages = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
[5154] Fix | Delete
messages[_key - 1] = arguments[_key];
[5155] Fix | Delete
}
[5156] Fix | Delete
[5157] Fix | Delete
if (false) {}
[5158] Fix | Delete
}
[5159] Fix | Delete
[5160] Fix | Delete
[5161] Fix | Delete
[5162] Fix | Delete
// CONCATENATED MODULE: ./node_modules/reakit/node_modules/reakit-warning/es/index.js
[5163] Fix | Delete
[5164] Fix | Delete
[5165] Fix | Delete
[5166] Fix | Delete
[5167] Fix | Delete
[5168] Fix | Delete
[5169] Fix | Delete
[5170] Fix | Delete
/***/ }),
[5171] Fix | Delete
[5172] Fix | Delete
/***/ "G3V0":
[5173] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[5174] Fix | Delete
[5175] Fix | Delete
"use strict";
[5176] Fix | Delete
/* unused harmony export Tabbable */
[5177] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useTabbable; });
[5178] Fix | Delete
/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("BZp5");
[5179] Fix | Delete
/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("dQ10");
[5180] Fix | Delete
/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("1k9I");
[5181] Fix | Delete
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("cDcd");
[5182] Fix | Delete
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
[5183] Fix | Delete
/* harmony import */ var reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("mFP7");
[5184] Fix | Delete
/* harmony import */ var reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("h0RD");
[5185] Fix | Delete
/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("FyLM");
[5186] Fix | Delete
/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("+LFj");
[5187] Fix | Delete
/* harmony import */ var reakit_utils_useIsomorphicEffect__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("KohD");
[5188] Fix | Delete
/* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("yGlB");
[5189] Fix | Delete
/* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("s2kj");
[5190] Fix | Delete
/* harmony import */ var reakit_utils_dom__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("pukL");
[5191] Fix | Delete
/* harmony import */ var reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("7vaN");
[5192] Fix | Delete
/* harmony import */ var _Role_Role_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("zGFp");
[5193] Fix | Delete
[5194] Fix | Delete
[5195] Fix | Delete
[5196] Fix | Delete
[5197] Fix | Delete
[5198] Fix | Delete
[5199] Fix | Delete
[5200] Fix | Delete
[5201] Fix | Delete
[5202] Fix | Delete
[5203] Fix | Delete
[5204] Fix | Delete
[5205] Fix | Delete
[5206] Fix | Delete
[5207] Fix | Delete
[5208] Fix | Delete
[5209] Fix | Delete
// Automatically generated
[5210] Fix | Delete
var TABBABLE_KEYS = ["disabled", "focusable"];
[5211] Fix | Delete
[5212] Fix | Delete
var isSafariOrFirefoxOnMac = Object(reakit_utils_dom__WEBPACK_IMPORTED_MODULE_11__[/* isUA */ "a"])("Mac") && !Object(reakit_utils_dom__WEBPACK_IMPORTED_MODULE_11__[/* isUA */ "a"])("Chrome") && (Object(reakit_utils_dom__WEBPACK_IMPORTED_MODULE_11__[/* isUA */ "a"])("Safari") || Object(reakit_utils_dom__WEBPACK_IMPORTED_MODULE_11__[/* isUA */ "a"])("Firefox"));
[5213] Fix | Delete
[5214] Fix | Delete
function focusIfNeeded(element) {
[5215] Fix | Delete
if (!Object(reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_9__[/* hasFocusWithin */ "a"])(element) && Object(reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_12__[/* isFocusable */ "a"])(element)) {
[5216] Fix | Delete
element.focus();
[5217] Fix | Delete
}
[5218] Fix | Delete
}
[5219] Fix | Delete
[5220] Fix | Delete
function isNativeTabbable(element) {
[5221] Fix | Delete
return ["BUTTON", "INPUT", "SELECT", "TEXTAREA", "A"].includes(element.tagName);
[5222] Fix | Delete
}
[5223] Fix | Delete
[5224] Fix | Delete
function supportsDisabledAttribute(element) {
[5225] Fix | Delete
return ["BUTTON", "INPUT", "SELECT", "TEXTAREA"].includes(element.tagName);
[5226] Fix | Delete
}
[5227] Fix | Delete
[5228] Fix | Delete
function getTabIndex(trulyDisabled, nativeTabbable, supportsDisabled, htmlTabIndex) {
[5229] Fix | Delete
if (trulyDisabled) {
[5230] Fix | Delete
if (nativeTabbable && !supportsDisabled) {
[5231] Fix | Delete
// Anchor, audio and video tags don't support the `disabled` attribute.
[5232] Fix | Delete
// We must pass tabIndex={-1} so they don't receive focus on tab.
[5233] Fix | Delete
return -1;
[5234] Fix | Delete
} // Elements that support the `disabled` attribute don't need tabIndex.
[5235] Fix | Delete
[5236] Fix | Delete
[5237] Fix | Delete
return undefined;
[5238] Fix | Delete
}
[5239] Fix | Delete
[5240] Fix | Delete
if (nativeTabbable) {
[5241] Fix | Delete
// If the element is enabled and it's natively tabbable, we don't need to
[5242] Fix | Delete
// specify a tabIndex attribute unless it's explicitly set by the user.
[5243] Fix | Delete
return htmlTabIndex;
[5244] Fix | Delete
} // If the element is enabled and is not natively tabbable, we have to
[5245] Fix | Delete
// fallback tabIndex={0}.
[5246] Fix | Delete
[5247] Fix | Delete
[5248] Fix | Delete
return htmlTabIndex || 0;
[5249] Fix | Delete
}
[5250] Fix | Delete
[5251] Fix | Delete
function useDisableEvent(htmlEventRef, disabled) {
[5252] Fix | Delete
return Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) {
[5253] Fix | Delete
var _htmlEventRef$current;
[5254] Fix | Delete
[5255] Fix | Delete
(_htmlEventRef$current = htmlEventRef.current) === null || _htmlEventRef$current === void 0 ? void 0 : _htmlEventRef$current.call(htmlEventRef, event);
[5256] Fix | Delete
if (event.defaultPrevented) return;
[5257] Fix | Delete
[5258] Fix | Delete
if (disabled) {
[5259] Fix | Delete
event.stopPropagation();
[5260] Fix | Delete
event.preventDefault();
[5261] Fix | Delete
}
[5262] Fix | Delete
}, [htmlEventRef, disabled]);
[5263] Fix | Delete
}
[5264] Fix | Delete
[5265] Fix | Delete
var useTabbable = Object(reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__[/* createHook */ "a"])({
[5266] Fix | Delete
name: "Tabbable",
[5267] Fix | Delete
compose: _Role_Role_js__WEBPACK_IMPORTED_MODULE_13__[/* useRole */ "a"],
[5268] Fix | Delete
keys: TABBABLE_KEYS,
[5269] Fix | Delete
useOptions: function useOptions(options, _ref) {
[5270] Fix | Delete
var disabled = _ref.disabled;
[5271] Fix | Delete
return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({
[5272] Fix | Delete
disabled: disabled
[5273] Fix | Delete
}, options);
[5274] Fix | Delete
},
[5275] Fix | Delete
useProps: function useProps(options, _ref2) {
[5276] Fix | Delete
var htmlRef = _ref2.ref,
[5277] Fix | Delete
htmlTabIndex = _ref2.tabIndex,
[5278] Fix | Delete
htmlOnClickCapture = _ref2.onClickCapture,
[5279] Fix | Delete
htmlOnMouseDownCapture = _ref2.onMouseDownCapture,
[5280] Fix | Delete
htmlOnMouseDown = _ref2.onMouseDown,
[5281] Fix | Delete
htmlOnKeyPressCapture = _ref2.onKeyPressCapture,
[5282] Fix | Delete
htmlStyle = _ref2.style,
[5283] Fix | Delete
htmlProps = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(_ref2, ["ref", "tabIndex", "onClickCapture", "onMouseDownCapture", "onMouseDown", "onKeyPressCapture", "style"]);
[5284] Fix | Delete
[5285] Fix | Delete
var ref = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(null);
[5286] Fix | Delete
var onClickCaptureRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_7__[/* useLiveRef */ "a"])(htmlOnClickCapture);
[5287] Fix | Delete
var onMouseDownCaptureRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_7__[/* useLiveRef */ "a"])(htmlOnMouseDownCapture);
[5288] Fix | Delete
var onMouseDownRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_7__[/* useLiveRef */ "a"])(htmlOnMouseDown);
[5289] Fix | Delete
var onKeyPressCaptureRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_7__[/* useLiveRef */ "a"])(htmlOnKeyPressCapture);
[5290] Fix | Delete
var trulyDisabled = !!options.disabled && !options.focusable;
[5291] Fix | Delete
[5292] Fix | Delete
var _React$useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(true),
[5293] Fix | Delete
nativeTabbable = _React$useState[0],
[5294] Fix | Delete
setNativeTabbable = _React$useState[1];
[5295] Fix | Delete
[5296] Fix | Delete
var _React$useState2 = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(true),
[5297] Fix | Delete
supportsDisabled = _React$useState2[0],
[5298] Fix | Delete
setSupportsDisabled = _React$useState2[1];
[5299] Fix | Delete
[5300] Fix | Delete
var style = options.disabled ? Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({
[5301] Fix | Delete
pointerEvents: "none"
[5302] Fix | Delete
}, htmlStyle) : htmlStyle;
[5303] Fix | Delete
Object(reakit_utils_useIsomorphicEffect__WEBPACK_IMPORTED_MODULE_8__[/* useIsomorphicEffect */ "a"])(function () {
[5304] Fix | Delete
var tabbable = ref.current;
[5305] Fix | Delete
[5306] Fix | Delete
if (!tabbable) {
[5307] Fix | Delete
false ? undefined : void 0;
[5308] Fix | Delete
return;
[5309] Fix | Delete
}
[5310] Fix | Delete
[5311] Fix | Delete
if (!isNativeTabbable(tabbable)) {
[5312] Fix | Delete
setNativeTabbable(false);
[5313] Fix | Delete
}
[5314] Fix | Delete
[5315] Fix | Delete
if (!supportsDisabledAttribute(tabbable)) {
[5316] Fix | Delete
setSupportsDisabled(false);
[5317] Fix | Delete
}
[5318] Fix | Delete
}, []);
[5319] Fix | Delete
var onClickCapture = useDisableEvent(onClickCaptureRef, options.disabled);
[5320] Fix | Delete
var onMouseDownCapture = useDisableEvent(onMouseDownCaptureRef, options.disabled);
[5321] Fix | Delete
var onKeyPressCapture = useDisableEvent(onKeyPressCaptureRef, options.disabled);
[5322] Fix | Delete
var onMouseDown = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) {
[5323] Fix | Delete
var _onMouseDownRef$curre;
[5324] Fix | Delete
[5325] Fix | Delete
(_onMouseDownRef$curre = onMouseDownRef.current) === null || _onMouseDownRef$curre === void 0 ? void 0 : _onMouseDownRef$curre.call(onMouseDownRef, event);
[5326] Fix | Delete
var element = event.currentTarget;
[5327] Fix | Delete
if (event.defaultPrevented) return; // Safari and Firefox on MacOS don't focus on buttons on mouse down
[5328] Fix | Delete
// like other browsers/platforms. Instead, they focus on the closest
[5329] Fix | Delete
// focusable ancestor element, which is ultimately the body element. So
[5330] Fix | Delete
// we make sure to give focus to the tabbable element on mouse down so
[5331] Fix | Delete
// it works consistently across browsers.
[5332] Fix | Delete
[5333] Fix | Delete
if (!isSafariOrFirefoxOnMac) return;
[5334] Fix | Delete
if (Object(reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_10__[/* isPortalEvent */ "a"])(event)) return;
[5335] Fix | Delete
if (!Object(reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_5__[/* isButton */ "a"])(element)) return; // We can't focus right away after on mouse down, otherwise it would
[5336] Fix | Delete
// prevent drag events from happening. So we schedule the focus to the
[5337] Fix | Delete
// next animation frame.
[5338] Fix | Delete
[5339] Fix | Delete
var raf = requestAnimationFrame(function () {
[5340] Fix | Delete
element.removeEventListener("mouseup", focusImmediately, true);
[5341] Fix | Delete
focusIfNeeded(element);
[5342] Fix | Delete
}); // If mouseUp happens before the next animation frame (which is common
[5343] Fix | Delete
// on touch screens or by just tapping the trackpad on MacBook's), we
[5344] Fix | Delete
// cancel the animation frame and immediately focus on the element.
[5345] Fix | Delete
[5346] Fix | Delete
var focusImmediately = function focusImmediately() {
[5347] Fix | Delete
cancelAnimationFrame(raf);
[5348] Fix | Delete
focusIfNeeded(element);
[5349] Fix | Delete
}; // By listening to the event in the capture phase, we make sure the
[5350] Fix | Delete
// focus event is fired before the onMouseUp and onMouseUpCapture React
[5351] Fix | Delete
// events, which is aligned with the default browser behavior.
[5352] Fix | Delete
[5353] Fix | Delete
[5354] Fix | Delete
element.addEventListener("mouseup", focusImmediately, {
[5355] Fix | Delete
once: true,
[5356] Fix | Delete
capture: true
[5357] Fix | Delete
});
[5358] Fix | Delete
}, []);
[5359] Fix | Delete
return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({
[5360] Fix | Delete
ref: Object(reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_4__[/* useForkRef */ "a"])(ref, htmlRef),
[5361] Fix | Delete
style: style,
[5362] Fix | Delete
tabIndex: getTabIndex(trulyDisabled, nativeTabbable, supportsDisabled, htmlTabIndex),
[5363] Fix | Delete
disabled: trulyDisabled && supportsDisabled ? true : undefined,
[5364] Fix | Delete
"aria-disabled": options.disabled ? true : undefined,
[5365] Fix | Delete
onClickCapture: onClickCapture,
[5366] Fix | Delete
onMouseDownCapture: onMouseDownCapture,
[5367] Fix | Delete
onMouseDown: onMouseDown,
[5368] Fix | Delete
onKeyPressCapture: onKeyPressCapture
[5369] Fix | Delete
}, htmlProps);
[5370] Fix | Delete
}
[5371] Fix | Delete
});
[5372] Fix | Delete
var Tabbable = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__[/* createComponent */ "a"])({
[5373] Fix | Delete
as: "div",
[5374] Fix | Delete
useHook: useTabbable
[5375] Fix | Delete
});
[5376] Fix | Delete
[5377] Fix | Delete
[5378] Fix | Delete
[5379] Fix | Delete
[5380] Fix | Delete
/***/ }),
[5381] Fix | Delete
[5382] Fix | Delete
/***/ "GET3":
[5383] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[5384] Fix | Delete
[5385] Fix | Delete
"use strict";
[5386] Fix | Delete
[5387] Fix | Delete
[5388] Fix | Delete
Object.defineProperty(exports, "__esModule", {
[5389] Fix | Delete
value: true
[5390] Fix | Delete
});
[5391] Fix | Delete
exports.PureCustomizableCalendarDay = exports.selectedStyles = exports.lastInRangeStyles = exports.selectedSpanStyles = exports.hoveredSpanStyles = exports.blockedOutOfRangeStyles = exports.blockedCalendarStyles = exports.blockedMinNightsStyles = exports.highlightedCalendarStyles = exports.outsideStyles = exports.defaultStyles = undefined;
[5392] Fix | Delete
[5393] Fix | Delete
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
[5394] Fix | Delete
[5395] Fix | Delete
var _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; }; }();
[5396] Fix | Delete
[5397] Fix | Delete
var _object = __webpack_require__("Koq/");
[5398] Fix | Delete
[5399] Fix | Delete
var _object2 = _interopRequireDefault(_object);
[5400] Fix | Delete
[5401] Fix | Delete
var _react = __webpack_require__("cDcd");
[5402] Fix | Delete
[5403] Fix | Delete
var _react2 = _interopRequireDefault(_react);
[5404] Fix | Delete
[5405] Fix | Delete
var _propTypes = __webpack_require__("17x9");
[5406] Fix | Delete
[5407] Fix | Delete
var _propTypes2 = _interopRequireDefault(_propTypes);
[5408] Fix | Delete
[5409] Fix | Delete
var _reactAddonsShallowCompare = __webpack_require__("YZDV");
[5410] Fix | Delete
[5411] Fix | Delete
var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare);
[5412] Fix | Delete
[5413] Fix | Delete
var _reactMomentProptypes = __webpack_require__("XGBb");
[5414] Fix | Delete
[5415] Fix | Delete
var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes);
[5416] Fix | Delete
[5417] Fix | Delete
var _airbnbPropTypes = __webpack_require__("Hsqg");
[5418] Fix | Delete
[5419] Fix | Delete
var _reactWithStyles = __webpack_require__("TG4+");
[5420] Fix | Delete
[5421] Fix | Delete
var _moment = __webpack_require__("wy2R");
[5422] Fix | Delete
[5423] Fix | Delete
var _moment2 = _interopRequireDefault(_moment);
[5424] Fix | Delete
[5425] Fix | Delete
var _defaultPhrases = __webpack_require__("vV+G");
[5426] Fix | Delete
[5427] Fix | Delete
var _getPhrasePropTypes = __webpack_require__("yc2e");
[5428] Fix | Delete
[5429] Fix | Delete
var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes);
[5430] Fix | Delete
[5431] Fix | Delete
var _getCalendarDaySettings = __webpack_require__("Ae65");
[5432] Fix | Delete
[5433] Fix | Delete
var _getCalendarDaySettings2 = _interopRequireDefault(_getCalendarDaySettings);
[5434] Fix | Delete
[5435] Fix | Delete
var _constants = __webpack_require__("Fv1B");
[5436] Fix | Delete
[5437] Fix | Delete
var _DefaultTheme = __webpack_require__("xOhs");
[5438] Fix | Delete
[5439] Fix | Delete
var _DefaultTheme2 = _interopRequireDefault(_DefaultTheme);
[5440] Fix | Delete
[5441] Fix | Delete
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
[5442] Fix | Delete
[5443] Fix | Delete
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
[5444] Fix | Delete
[5445] Fix | Delete
function _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; }
[5446] Fix | Delete
[5447] Fix | Delete
function _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; }
[5448] Fix | Delete
[5449] Fix | Delete
var color = _DefaultTheme2['default'].reactDates.color;
[5450] Fix | Delete
[5451] Fix | Delete
[5452] Fix | Delete
function getStyles(stylesObj, isHovered) {
[5453] Fix | Delete
if (!stylesObj) return null;
[5454] Fix | Delete
[5455] Fix | Delete
var hover = stylesObj.hover;
[5456] Fix | Delete
[5457] Fix | Delete
if (isHovered && hover) {
[5458] Fix | Delete
return hover;
[5459] Fix | Delete
}
[5460] Fix | Delete
[5461] Fix | Delete
return stylesObj;
[5462] Fix | Delete
}
[5463] Fix | Delete
[5464] Fix | Delete
var DayStyleShape = _propTypes2['default'].shape({
[5465] Fix | Delete
background: _propTypes2['default'].string,
[5466] Fix | Delete
border: (0, _airbnbPropTypes.or)([_propTypes2['default'].string, _propTypes2['default'].number]),
[5467] Fix | Delete
color: _propTypes2['default'].string,
[5468] Fix | Delete
[5469] Fix | Delete
hover: _propTypes2['default'].shape({
[5470] Fix | Delete
background: _propTypes2['default'].string,
[5471] Fix | Delete
border: (0, _airbnbPropTypes.or)([_propTypes2['default'].string, _propTypes2['default'].number]),
[5472] Fix | Delete
color: _propTypes2['default'].string
[5473] Fix | Delete
})
[5474] Fix | Delete
});
[5475] Fix | Delete
[5476] Fix | Delete
var propTypes = (0, _airbnbPropTypes.forbidExtraProps)((0, _object2['default'])({}, _reactWithStyles.withStylesPropTypes, {
[5477] Fix | Delete
day: _reactMomentProptypes2['default'].momentObj,
[5478] Fix | Delete
daySize: _airbnbPropTypes.nonNegativeInteger,
[5479] Fix | Delete
isOutsideDay: _propTypes2['default'].bool,
[5480] Fix | Delete
modifiers: _propTypes2['default'].instanceOf(Set),
[5481] Fix | Delete
isFocused: _propTypes2['default'].bool,
[5482] Fix | Delete
tabIndex: _propTypes2['default'].oneOf([0, -1]),
[5483] Fix | Delete
onDayClick: _propTypes2['default'].func,
[5484] Fix | Delete
onDayMouseEnter: _propTypes2['default'].func,
[5485] Fix | Delete
onDayMouseLeave: _propTypes2['default'].func,
[5486] Fix | Delete
renderDayContents: _propTypes2['default'].func,
[5487] Fix | Delete
ariaLabelFormat: _propTypes2['default'].string,
[5488] Fix | Delete
[5489] Fix | Delete
// style overrides
[5490] Fix | Delete
defaultStyles: DayStyleShape,
[5491] Fix | Delete
outsideStyles: DayStyleShape,
[5492] Fix | Delete
todayStyles: DayStyleShape,
[5493] Fix | Delete
firstDayOfWeekStyles: DayStyleShape,
[5494] Fix | Delete
lastDayOfWeekStyles: DayStyleShape,
[5495] Fix | Delete
highlightedCalendarStyles: DayStyleShape,
[5496] Fix | Delete
blockedMinNightsStyles: DayStyleShape,
[5497] Fix | Delete
blockedCalendarStyles: DayStyleShape,
[5498] Fix | Delete
blockedOutOfRangeStyles: DayStyleShape,
[5499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function