* import { SystemProvider, useProps } from "reakit-system";
* useAProps(options, htmlProps) {
* function A({ url, ...htmlProps }) {
* const props = useProps("A", { url }, htmlProps);
* return <a {...props} />;
* <SystemProvider unstable_system={system}>
* <A url="url">It will convert url into href in useAProps</A>
function useProps(name, options, htmlProps) {
if (options === void 0) {
if (htmlProps === void 0) {
var hookName = "use" + name + "Props";
Object(external_React_["useDebugValue"])(hookName);
var useHook = useToken(hookName);
return useHook(options, htmlProps);
// EXTERNAL MODULE: ./node_modules/reakit/node_modules/reakit-system/es/_rollupPluginBabelHelpers-0c84a174.js
var _rollupPluginBabelHelpers_0c84a174 = __webpack_require__("ixHF");
// CONCATENATED MODULE: ./node_modules/reakit/node_modules/reakit-system/es/useOptions.js
* React custom hook that returns the options returned by a given
* `use${name}Options` in the SystemContext.
* import React from "react";
* import { SystemProvider, useOptions } from "reakit-system";
* useAOptions(options, htmlProps) {
* function A({ url, ...htmlProps }) {
* const options = useOptions("A", { url }, htmlProps);
* return <a href={options.url} {...htmlProps} />;
* <SystemProvider unstable_system={system}>
* It will convert href into url in useAOptions and then url into href in A
function useOptions(name, options, htmlProps) {
if (options === void 0) {
if (htmlProps === void 0) {
var hookName = "use" + name + "Options";
Object(external_React_["useDebugValue"])(hookName);
var useHook = useToken(hookName);
return Object(_rollupPluginBabelHelpers_0c84a174["a" /* _ */])(Object(_rollupPluginBabelHelpers_0c84a174["a" /* _ */])({}, options), useHook(options, htmlProps));
// EXTERNAL MODULE: ./node_modules/reakit/node_modules/reakit-utils/es/shallowEqual.js
var shallowEqual = __webpack_require__("PU+x");
// CONCATENATED MODULE: ./node_modules/reakit/node_modules/reakit-utils/es/toArray.js
* Transforms `arg` into an array if it's not already.
* import { toArray } from "reakit-utils";
* toArray(["a"]); // ["a"]
if (Array.isArray(arg)) {
return typeof arg !== "undefined" ? [arg] : [];
// CONCATENATED MODULE: ./node_modules/reakit/node_modules/reakit-system/es/createHook.js
* Creates a React custom hook that will return component props.
* import { createHook } from "reakit-system";
* const useA = createHook({
* keys: ["url"], // custom props/options keys
* useProps(options, htmlProps) {
* function A({ url, ...htmlProps }) {
* const props = useA({ url }, htmlProps);
* return <a {...props} />;
function createHook(options) {
var _options$useState, _composedHooks$;
var composedHooks = toArray(options.compose);
var __useOptions = function __useOptions(hookOptions, htmlProps) {
// Call the current hook's useOptions first
if (options.useOptions) {
hookOptions = options.useOptions(hookOptions, htmlProps);
} // If there's name, call useOptions from the system context
hookOptions = useOptions(options.name, hookOptions, htmlProps);
} // Run composed hooks useOptions
for (var _iterator = Object(_rollupPluginBabelHelpers_0c84a174["c" /* b */])(composedHooks), _step; !(_step = _iterator()).done;) {
hookOptions = hook.__useOptions(hookOptions, htmlProps);
var useHook = function useHook(hookOptions, htmlProps, unstable_ignoreUseOptions) {
if (hookOptions === void 0) {
if (htmlProps === void 0) {
if (unstable_ignoreUseOptions === void 0) {
unstable_ignoreUseOptions = false;
// This won't execute when useHook was called from within another useHook
if (!unstable_ignoreUseOptions) {
hookOptions = __useOptions(hookOptions, htmlProps);
} // Call the current hook's useProps
htmlProps = options.useProps(hookOptions, htmlProps);
} // If there's name, call useProps from the system context
htmlProps = useProps(options.name, hookOptions, htmlProps);
if (options.useComposeOptions) {
hookOptions = options.useComposeOptions(hookOptions, htmlProps);
if (options.useComposeProps) {
htmlProps = options.useComposeProps(hookOptions, htmlProps);
for (var _iterator2 = Object(_rollupPluginBabelHelpers_0c84a174["c" /* b */])(composedHooks), _step2; !(_step2 = _iterator2()).done;) {
htmlProps = hook(hookOptions, htmlProps, true);
} // Remove undefined values from htmlProps
var definedHTMLProps = htmlProps || {};
for (var prop in definedHTMLProps) {
if (definedHTMLProps[prop] !== undefined) {
finalHTMLProps[prop] = definedHTMLProps[prop];
useHook.__useOptions = __useOptions;
var composedKeys = composedHooks.reduce(function (keys, hook) {
keys.push.apply(keys, hook.__keys || []);
}, []); // It's used by createComponent to split option props (keys) and html props
useHook.__keys = [].concat(composedKeys, ((_options$useState = options.useState) === null || _options$useState === void 0 ? void 0 : _options$useState.__keys) || [], options.keys || []);
useHook.unstable_propsAreEqual = options.propsAreEqual || ((_composedHooks$ = composedHooks[0]) === null || _composedHooks$ === void 0 ? void 0 : _composedHooks$.unstable_propsAreEqual) || shallowEqual["a" /* shallowEqual */];
/***/ (function(module, exports, __webpack_require__) {
var slice = Array.prototype.slice;
var isArgs = __webpack_require__("1KsK");
var origKeys = Object.keys;
var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__("sYn3");
var originalKeys = Object.keys;
keysShim.shim = function shimObjectKeys() {
var keysWorksWithArguments = (function () {
var args = Object.keys(arguments);
return args && args.length === arguments.length;
if (!keysWorksWithArguments) {
Object.keys = function keys(object) { // eslint-disable-line func-name-matching
return originalKeys(slice.call(object));
return originalKeys(object);
return Object.keys || keysShim;
module.exports = keysShim;
/***/ (function(module, exports, __webpack_require__) {
var implementation = __webpack_require__("yN6O");
module.exports = function getPolyfill() {
return Array.prototype.flat || implementation;
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__("aUaa");
/***/ (function(module, exports, __webpack_require__) {
var hasSymbols = __webpack_require__("UVaH")();
var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol';
hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
regexExec = Function.call.bind(RegExp.prototype.exec);
var throwRegexMarker = function () {
toString: throwRegexMarker,
valueOf: throwRegexMarker
if (typeof Symbol.toPrimitive === 'symbol') {
badStringifier[Symbol.toPrimitive] = throwRegexMarker;
var toStr = Object.prototype.toString;
var gOPD = Object.getOwnPropertyDescriptor;
var regexClass = '[object RegExp]';
module.exports = hasToStringTag
// eslint-disable-next-line consistent-return
? function isRegex(value) {
if (!value || typeof value !== 'object') {
var descriptor = gOPD(value, 'lastIndex');
var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
if (!hasLastIndexDataProperty) {
regexExec(value, badStringifier);
return e === isRegexMarker;
: function isRegex(value) {
// In older browsers, typeof regex incorrectly returns 'function'
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
return toStr.call(value) === regexClass;
/***/ (function(module, exports, __webpack_require__) {
Object.defineProperty(exports, "__esModule", {
exports['default'] = CalendarWeek;
var _react = __webpack_require__("cDcd");
var _react2 = _interopRequireDefault(_react);
var _airbnbPropTypes = __webpack_require__("Hsqg");
var _CalendarDay = __webpack_require__("N3k4");
var _CalendarDay2 = _interopRequireDefault(_CalendarDay);
var _CustomizableCalendarDay = __webpack_require__("GET3");
var _CustomizableCalendarDay2 = _interopRequireDefault(_CustomizableCalendarDay);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var propTypes = (0, _airbnbPropTypes.forbidExtraProps)({
children: (0, _airbnbPropTypes.or)([(0, _airbnbPropTypes.childrenOfType)(_CalendarDay2['default']), (0, _airbnbPropTypes.childrenOfType)(_CustomizableCalendarDay2['default'])]).isRequired
function CalendarWeek(_ref) {
var children = _ref.children;
return _react2['default'].createElement(
CalendarWeek.propTypes = propTypes;
/***/ (function(module, exports, __webpack_require__) {
Object.defineProperty(exports, "__esModule", {
var _propTypes = __webpack_require__("17x9");
var _propTypes2 = _interopRequireDefault(_propTypes);
var _constants = __webpack_require__("Fv1B");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
exports['default'] = _propTypes2['default'].oneOf(_constants.WEEKDAYS);
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {