// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
var inherits = __webpack_require__("Ji7U");
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
var possibleConstructorReturn = __webpack_require__("md7G");
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
var getPrototypeOf = __webpack_require__("foSv");
// EXTERNAL MODULE: external ["wp","element"]
var external_wp_element_ = __webpack_require__("GRId");
// EXTERNAL MODULE: external "lodash"
var external_lodash_ = __webpack_require__("YLtl");
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__("U8pU");
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
var objectWithoutProperties = __webpack_require__("Ff2n");
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__("rePB");
// EXTERNAL MODULE: external ["wp","isShallowEqual"]
var external_wp_isShallowEqual_ = __webpack_require__("rl8x");
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_);
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js
var slot_fill_context = __webpack_require__("JYkG");
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return Object(esm_typeof["a" /* default */])(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (Object(esm_typeof["a" /* default */])(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (Object(esm_typeof["a" /* default */])(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function useSlotRegistry() {
var _useState = Object(external_wp_element_["useState"])({}),
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
setSlots = _useState2[1];
var _useState3 = Object(external_wp_element_["useState"])({}),
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
setFills = _useState4[1];
var registerSlot = Object(external_wp_element_["useCallback"])(function (name, ref, fillProps) {
setSlots(function (prevSlots) {
var slot = prevSlots[name] || {};
return _objectSpread(_objectSpread({}, prevSlots), {}, Object(defineProperty["a" /* default */])({}, name, _objectSpread(_objectSpread({}, slot), {}, {
fillProps: fillProps || slot.fillProps || {}
var unregisterSlot = Object(external_wp_element_["useCallback"])(function (name, ref) {
setSlots(function (prevSlots) {
var slot = prevSlots[name],
nextSlots = Object(objectWithoutProperties["a" /* default */])(prevSlots, [name].map(_toPropertyKey)); // Make sure we're not unregistering a slot registered by another element
// See https://github.com/WordPress/gutenberg/pull/19242#issuecomment-590295412
if ((slot === null || slot === void 0 ? void 0 : slot.ref) === ref) {
var updateSlot = Object(external_wp_element_["useCallback"])(function (name, fillProps) {
if (!external_wp_isShallowEqual_default()(slot.fillProps, fillProps)) {
slot.fillProps = fillProps;
var slotFills = fills[name];
slotFills.map(function (fill) {
return fill.current.rerender();
var registerFill = Object(external_wp_element_["useCallback"])(function (name, ref) {
setFills(function (prevFills) {
return _objectSpread(_objectSpread({}, prevFills), {}, Object(defineProperty["a" /* default */])({}, name, [].concat(Object(toConsumableArray["a" /* default */])(prevFills[name] || []), [ref])));
var unregisterFill = Object(external_wp_element_["useCallback"])(function (name, ref) {
setFills(function (prevFills) {
return _objectSpread(_objectSpread({}, prevFills), {}, Object(defineProperty["a" /* default */])({}, name, prevFills[name].filter(function (fillRef) {
}, []); // Memoizing the return value so it can be directly passed to Provider value
var registry = Object(external_wp_element_["useMemo"])(function () {
registerSlot: registerSlot,
unregisterSlot: unregisterSlot,
registerFill: registerFill,
unregisterFill: unregisterFill
}, [slots, fills, registerSlot, updateSlot, unregisterSlot, registerFill, unregisterFill]);
function slot_fill_provider_SlotFillProvider(_ref) {
var children = _ref.children;
var registry = useSlotRegistry();
return Object(external_wp_element_["createElement"])(slot_fill_context["a" /* default */].Provider, {
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/context.js
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var SlotFillContext = Object(external_wp_element_["createContext"])({
registerSlot: function registerSlot() {},
unregisterSlot: function unregisterSlot() {},
registerFill: function registerFill() {},
unregisterFill: function unregisterFill() {},
getSlot: function getSlot() {},
getFills: function getFills() {},
subscribe: function subscribe() {}
var Provider = SlotFillContext.Provider,
Consumer = SlotFillContext.Consumer;
var context_SlotFillProvider = /*#__PURE__*/function (_Component) {
Object(inherits["a" /* default */])(SlotFillProvider, _Component);
var _super = _createSuper(SlotFillProvider);
function SlotFillProvider() {
Object(classCallCheck["a" /* default */])(this, SlotFillProvider);
_this = _super.apply(this, arguments);
_this.registerSlot = _this.registerSlot.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.registerFill = _this.registerFill.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.unregisterSlot = _this.unregisterSlot.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.unregisterFill = _this.unregisterFill.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.getSlot = _this.getSlot.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.getFills = _this.getFills.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.hasFills = _this.hasFills.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.subscribe = _this.subscribe.bind(Object(assertThisInitialized["a" /* default */])(_this));
registerSlot: _this.registerSlot,
unregisterSlot: _this.unregisterSlot,
registerFill: _this.registerFill,
unregisterFill: _this.unregisterFill,
getFills: _this.getFills,
hasFills: _this.hasFills,
subscribe: _this.subscribe
Object(createClass["a" /* default */])(SlotFillProvider, [{
value: function registerSlot(name, slot) {
var previousSlot = this.slots[name];
this.triggerListeners(); // Sometimes the fills are registered after the initial render of slot
// But before the registerSlot call, we need to rerender the slot
this.forceUpdateSlot(name); // If a new instance of a slot is being mounted while another with the
// same name exists, force its update _after_ the new slot has been
// assigned into the instance, such that its own rendering of children
// will be empty (the new Slot will subsume all fills for this name).
previousSlot.forceUpdate();
value: function registerFill(name, instance) {
this.fills[name] = [].concat(Object(toConsumableArray["a" /* default */])(this.fills[name] || []), [instance]);
this.forceUpdateSlot(name);
value: function unregisterSlot(name, instance) {
// If a previous instance of a Slot by this name unmounts, do nothing,
// as the slot and its fills should only be removed for the current
if (this.slots[name] !== instance) {
value: function unregisterFill(name, instance) {
this.fills[name] = Object(external_lodash_["without"])(this.fills[name], instance);
this.resetFillOccurrence(name);
this.forceUpdateSlot(name);
value: function getSlot(name) {
value: function getFills(name, slotInstance) {
// Fills should only be returned for the current instance of the slot
if (this.slots[name] !== slotInstance) {
return Object(external_lodash_["sortBy"])(this.fills[name], 'occurrence');
value: function hasFills(name) {
return this.fills[name] && !!this.fills[name].length;
key: "resetFillOccurrence",
value: function resetFillOccurrence(name) {
Object(external_lodash_["forEach"])(this.fills[name], function (instance) {
instance.occurrence = undefined;
value: function forceUpdateSlot(name) {
var slot = this.getSlot(name);
value: function triggerListeners() {
this.listeners.forEach(function (listener) {
value: function subscribe(listener) {
this.listeners.push(listener);
_this2.listeners = Object(external_lodash_["without"])(_this2.listeners, listener);
value: function render() {
return Object(external_wp_element_["createElement"])(Provider, {
}, Object(external_wp_element_["createElement"])(slot_fill_provider_SlotFillProvider, null, this.props.children));
}(external_wp_element_["Component"]);
* React hook returning the active slot given a name.
* @param {string} name Slot name.
* @return {Object} Slot object.
var context_useSlot = function useSlot(name) {
var _useContext = Object(external_wp_element_["useContext"])(SlotFillContext),
getSlot = _useContext.getSlot,
subscribe = _useContext.subscribe;
var _useState = Object(external_wp_element_["useState"])(getSlot(name)),
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
Object(external_wp_element_["useEffect"])(function () {
var unsubscribe = subscribe(function () {
/* harmony default export */ var context = __webpack_exports__["b"] = (context_SlotFillProvider);
/***/ (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 closeSmall = 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"], {
d: "M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"
/* harmony default export */ __webpack_exports__["a"] = (closeSmall);
/***/ (function(module, exports, __webpack_require__) {
var moment = __webpack_require__("wy2R");
function isValidMoment(testMoment) {
if (typeof moment.isMoment === 'function' && !moment.isMoment(testMoment)) {
/* istanbul ignore else */
if (typeof testMoment.isValid === 'function') {
return testMoment.isValid();
/* istanbul ignore next */
return !isNaN(testMoment);
isValidMoment : isValidMoment,
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__("5aBA");
/***/ (function(module, exports) {
(function() { module.exports = window["React"]; }());
/***/ (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 search = 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"], {
d: "M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"
/* harmony default export */ __webpack_exports__["a"] = (search);
/***/ (function(module, __webpack_exports__, __webpack_require__) {
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ createComponent; });
// EXTERNAL MODULE: external "React"
var external_React_ = __webpack_require__("cDcd");
// EXTERNAL MODULE: ./node_modules/reakit/node_modules/reakit-system/es/_rollupPluginBabelHelpers-0c84a174.js
var _rollupPluginBabelHelpers_0c84a174 = __webpack_require__("ixHF");
// EXTERNAL MODULE: ./node_modules/reakit/node_modules/reakit-system/es/useCreateElement.js
var useCreateElement = __webpack_require__("sej1");
// EXTERNAL MODULE: ./node_modules/reakit/node_modules/reakit-utils/es/_rollupPluginBabelHelpers-1f0bf8c2.js
var _rollupPluginBabelHelpers_1f0bf8c2 = __webpack_require__("vk5B");
// EXTERNAL MODULE: ./node_modules/reakit/node_modules/reakit-utils/es/isObject.js
var isObject = __webpack_require__("nBMU");
// CONCATENATED MODULE: ./node_modules/reakit/node_modules/reakit-utils/es/isPlainObject.js
* Checks whether `arg` is a plain object or not.
function isPlainObject(arg) {
if (!Object(isObject["a" /* isObject */])(arg)) return false;