1590 lines
50 KiB
JavaScript
1590 lines
50 KiB
JavaScript
(self["webpackChunk_woocommerce_storybook"] = self["webpackChunk_woocommerce_storybook"] || []).push([[3288],{
|
|
|
|
/***/ "../../node_modules/.pnpm/@wordpress+icons@8.2.3/node_modules/@wordpress/icons/build-module/library/calendar.js":
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
/* harmony export */ });
|
|
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js");
|
|
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@wordpress+primitives@3.4.1/node_modules/@wordpress/primitives/build-module/svg/index.js");
|
|
|
|
|
|
/**
|
|
* WordPress dependencies
|
|
*/
|
|
|
|
const calendar = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__/* .SVG */ .t4, {
|
|
viewBox: "0 0 24 24",
|
|
xmlns: "http://www.w3.org/2000/svg"
|
|
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__/* .Path */ .wA, {
|
|
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"
|
|
}));
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (calendar);
|
|
//# sourceMappingURL=calendar.js.map
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/airbnb-prop-types@2.16.0_react@17.0.2/node_modules/airbnb-prop-types/build/mocks/index.js":
|
|
/***/ ((module) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
function noop() {
|
|
return null;
|
|
}
|
|
|
|
noop.isRequired = noop;
|
|
|
|
function noopThunk() {
|
|
return noop;
|
|
}
|
|
|
|
module.exports = {
|
|
and: noopThunk,
|
|
between: noopThunk,
|
|
booleanSome: noopThunk,
|
|
childrenHavePropXorChildren: noopThunk,
|
|
childrenOf: noopThunk,
|
|
childrenOfType: noopThunk,
|
|
childrenSequenceOf: noopThunk,
|
|
componentWithName: noopThunk,
|
|
disallowedIf: noopThunk,
|
|
elementType: noopThunk,
|
|
empty: noopThunk,
|
|
explicitNull: noopThunk,
|
|
forbidExtraProps: Object,
|
|
integer: noopThunk,
|
|
keysOf: noopThunk,
|
|
mutuallyExclusiveProps: noopThunk,
|
|
mutuallyExclusiveTrueProps: noopThunk,
|
|
nChildren: noopThunk,
|
|
nonNegativeInteger: noop,
|
|
nonNegativeNumber: noopThunk,
|
|
numericString: noopThunk,
|
|
object: noopThunk,
|
|
or: noopThunk,
|
|
predicate: noopThunk,
|
|
range: noopThunk,
|
|
ref: noopThunk,
|
|
requiredBy: noopThunk,
|
|
restrictedProp: noopThunk,
|
|
sequenceOf: noopThunk,
|
|
shape: noopThunk,
|
|
stringEndsWith: noopThunk,
|
|
stringStartsWith: noopThunk,
|
|
uniqueArray: noopThunk,
|
|
uniqueArrayOf: noopThunk,
|
|
valuesOf: noopThunk,
|
|
withShape: noopThunk
|
|
};
|
|
//# sourceMappingURL=index.js.map
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/airbnb-prop-types@2.16.0_react@17.0.2/node_modules/airbnb-prop-types/index.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
module.exports = true ? __webpack_require__("../../node_modules/.pnpm/airbnb-prop-types@2.16.0_react@17.0.2/node_modules/airbnb-prop-types/build/mocks/index.js") : 0;
|
|
|
|
//# sourceMappingURL=index.js.map
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/consolidated-events@2.0.2/node_modules/consolidated-events/lib/index.esm.js":
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ addEventListener: () => (/* binding */ addEventListener)
|
|
/* harmony export */ });
|
|
var CAN_USE_DOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
|
|
// Adapted from Modernizr
|
|
// https://github.com/Modernizr/Modernizr/blob/acb3f0d9/feature-detects/dom/passiveeventlisteners.js#L26-L37
|
|
function testPassiveEventListeners() {
|
|
if (!CAN_USE_DOM) {
|
|
return false;
|
|
}
|
|
|
|
if (!window.addEventListener || !window.removeEventListener || !Object.defineProperty) {
|
|
return false;
|
|
}
|
|
|
|
var supportsPassiveOption = false;
|
|
try {
|
|
var opts = Object.defineProperty({}, 'passive', {
|
|
// eslint-disable-next-line getter-return
|
|
get: function () {
|
|
function get() {
|
|
supportsPassiveOption = true;
|
|
}
|
|
|
|
return get;
|
|
}()
|
|
});
|
|
var noop = function noop() {};
|
|
window.addEventListener('testPassiveEventSupport', noop, opts);
|
|
window.removeEventListener('testPassiveEventSupport', noop, opts);
|
|
} catch (e) {
|
|
// do nothing
|
|
}
|
|
|
|
return supportsPassiveOption;
|
|
}
|
|
|
|
var memoized = void 0;
|
|
|
|
function canUsePassiveEventListeners() {
|
|
if (memoized === undefined) {
|
|
memoized = testPassiveEventListeners();
|
|
}
|
|
return memoized;
|
|
}
|
|
|
|
function normalizeEventOptions(eventOptions) {
|
|
if (!eventOptions) {
|
|
return undefined;
|
|
}
|
|
|
|
if (!canUsePassiveEventListeners()) {
|
|
// If the browser does not support the passive option, then it is expecting
|
|
// a boolean for the options argument to specify whether it should use
|
|
// capture or not. In more modern browsers, this is passed via the `capture`
|
|
// option, so let's just hoist that value up.
|
|
return !!eventOptions.capture;
|
|
}
|
|
|
|
return eventOptions;
|
|
}
|
|
|
|
/* eslint-disable no-bitwise */
|
|
|
|
/**
|
|
* Generate a unique key for any set of event options
|
|
*/
|
|
function eventOptionsKey(normalizedEventOptions) {
|
|
if (!normalizedEventOptions) {
|
|
return 0;
|
|
}
|
|
|
|
// If the browser does not support passive event listeners, the normalized
|
|
// event options will be a boolean.
|
|
if (normalizedEventOptions === true) {
|
|
return 100;
|
|
}
|
|
|
|
// At this point, the browser supports passive event listeners, so we expect
|
|
// the event options to be an object with possible properties of capture,
|
|
// passive, and once.
|
|
//
|
|
// We want to consistently return the same value, regardless of the order of
|
|
// these properties, so let's use binary maths to assign each property to a
|
|
// bit, and then add those together (with an offset to account for the
|
|
// booleans at the beginning of this function).
|
|
var capture = normalizedEventOptions.capture << 0;
|
|
var passive = normalizedEventOptions.passive << 1;
|
|
var once = normalizedEventOptions.once << 2;
|
|
return capture + passive + once;
|
|
}
|
|
|
|
function ensureCanMutateNextEventHandlers(eventHandlers) {
|
|
if (eventHandlers.handlers === eventHandlers.nextHandlers) {
|
|
// eslint-disable-next-line no-param-reassign
|
|
eventHandlers.nextHandlers = eventHandlers.handlers.slice();
|
|
}
|
|
}
|
|
|
|
function TargetEventHandlers(target) {
|
|
this.target = target;
|
|
this.events = {};
|
|
}
|
|
|
|
TargetEventHandlers.prototype.getEventHandlers = function () {
|
|
function getEventHandlers(eventName, options) {
|
|
var key = String(eventName) + ' ' + String(eventOptionsKey(options));
|
|
|
|
if (!this.events[key]) {
|
|
this.events[key] = {
|
|
handlers: [],
|
|
handleEvent: undefined
|
|
};
|
|
this.events[key].nextHandlers = this.events[key].handlers;
|
|
}
|
|
|
|
return this.events[key];
|
|
}
|
|
|
|
return getEventHandlers;
|
|
}();
|
|
|
|
TargetEventHandlers.prototype.handleEvent = function () {
|
|
function handleEvent(eventName, options, event) {
|
|
var eventHandlers = this.getEventHandlers(eventName, options);
|
|
eventHandlers.handlers = eventHandlers.nextHandlers;
|
|
eventHandlers.handlers.forEach(function (handler) {
|
|
if (handler) {
|
|
// We need to check for presence here because a handler function may
|
|
// cause later handlers to get removed. This can happen if you for
|
|
// instance have a waypoint that unmounts another waypoint as part of an
|
|
// onEnter/onLeave handler.
|
|
handler(event);
|
|
}
|
|
});
|
|
}
|
|
|
|
return handleEvent;
|
|
}();
|
|
|
|
TargetEventHandlers.prototype.add = function () {
|
|
function add(eventName, listener, options) {
|
|
var _this = this;
|
|
|
|
// options has already been normalized at this point.
|
|
var eventHandlers = this.getEventHandlers(eventName, options);
|
|
|
|
ensureCanMutateNextEventHandlers(eventHandlers);
|
|
|
|
if (eventHandlers.nextHandlers.length === 0) {
|
|
eventHandlers.handleEvent = this.handleEvent.bind(this, eventName, options);
|
|
|
|
this.target.addEventListener(eventName, eventHandlers.handleEvent, options);
|
|
}
|
|
|
|
eventHandlers.nextHandlers.push(listener);
|
|
|
|
var isSubscribed = true;
|
|
var unsubscribe = function () {
|
|
function unsubscribe() {
|
|
if (!isSubscribed) {
|
|
return;
|
|
}
|
|
|
|
isSubscribed = false;
|
|
|
|
ensureCanMutateNextEventHandlers(eventHandlers);
|
|
var index = eventHandlers.nextHandlers.indexOf(listener);
|
|
eventHandlers.nextHandlers.splice(index, 1);
|
|
|
|
if (eventHandlers.nextHandlers.length === 0) {
|
|
// All event handlers have been removed, so we want to remove the event
|
|
// listener from the target node.
|
|
|
|
if (_this.target) {
|
|
// There can be a race condition where the target may no longer exist
|
|
// when this function is called, e.g. when a React component is
|
|
// unmounting. Guarding against this prevents the following error:
|
|
//
|
|
// Cannot read property 'removeEventListener' of undefined
|
|
_this.target.removeEventListener(eventName, eventHandlers.handleEvent, options);
|
|
}
|
|
|
|
eventHandlers.handleEvent = undefined;
|
|
}
|
|
}
|
|
|
|
return unsubscribe;
|
|
}();
|
|
return unsubscribe;
|
|
}
|
|
|
|
return add;
|
|
}();
|
|
|
|
var EVENT_HANDLERS_KEY = '__consolidated_events_handlers__';
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
function addEventListener(target, eventName, listener, options) {
|
|
if (!target[EVENT_HANDLERS_KEY]) {
|
|
// eslint-disable-next-line no-param-reassign
|
|
target[EVENT_HANDLERS_KEY] = new TargetEventHandlers(target);
|
|
}
|
|
var normalizedEventOptions = normalizeEventOptions(options);
|
|
return target[EVENT_HANDLERS_KEY].add(eventName, listener, normalizedEventOptions);
|
|
}
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/modules/es.array.join.js":
|
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
var $ = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/export.js");
|
|
var uncurryThis = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/function-uncurry-this.js");
|
|
var IndexedObject = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/indexed-object.js");
|
|
var toIndexedObject = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/to-indexed-object.js");
|
|
var arrayMethodIsStrict = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/array-method-is-strict.js");
|
|
|
|
var nativeJoin = uncurryThis([].join);
|
|
|
|
var ES3_STRINGS = IndexedObject !== Object;
|
|
var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
|
|
|
|
// `Array.prototype.join` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
|
$({ target: 'Array', proto: true, forced: FORCED }, {
|
|
join: function join(separator) {
|
|
return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/modules/es.date.to-string.js":
|
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
// TODO: Remove from `core-js@4`
|
|
var uncurryThis = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/function-uncurry-this.js");
|
|
var defineBuiltIn = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/define-built-in.js");
|
|
|
|
var DatePrototype = Date.prototype;
|
|
var INVALID_DATE = 'Invalid Date';
|
|
var TO_STRING = 'toString';
|
|
var nativeDateToString = uncurryThis(DatePrototype[TO_STRING]);
|
|
var thisTimeValue = uncurryThis(DatePrototype.getTime);
|
|
|
|
// `Date.prototype.toString` method
|
|
// https://tc39.es/ecma262/#sec-date.prototype.tostring
|
|
if (String(new Date(NaN)) !== INVALID_DATE) {
|
|
defineBuiltIn(DatePrototype, TO_STRING, function toString() {
|
|
var value = thisTimeValue(this);
|
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
return value === value ? nativeDateToString(this) : INVALID_DATE;
|
|
});
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/implementation.js":
|
|
/***/ ((module) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
module.exports = function contains(other) {
|
|
if (arguments.length < 1) {
|
|
throw new TypeError('1 argument is required');
|
|
}
|
|
if (typeof other !== 'object') {
|
|
throw new TypeError('Argument 1 (”other“) to Node.contains must be an instance of Node');
|
|
}
|
|
|
|
var node = other;
|
|
do {
|
|
if (this === node) {
|
|
return true;
|
|
}
|
|
if (node) {
|
|
node = node.parentNode;
|
|
}
|
|
} while (node);
|
|
|
|
return false;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/index.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
var define = __webpack_require__("../../node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js");
|
|
|
|
var implementation = __webpack_require__("../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/implementation.js");
|
|
var getPolyfill = __webpack_require__("../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/polyfill.js");
|
|
var polyfill = getPolyfill();
|
|
var shim = __webpack_require__("../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/shim.js");
|
|
|
|
var boundContains = function contains(node, other) {
|
|
return polyfill.apply(node, [other]);
|
|
};
|
|
|
|
define(boundContains, {
|
|
getPolyfill: getPolyfill,
|
|
implementation: implementation,
|
|
shim: shim
|
|
});
|
|
|
|
module.exports = boundContains;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/polyfill.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
var implementation = __webpack_require__("../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/implementation.js");
|
|
|
|
module.exports = function getPolyfill() {
|
|
if (typeof document !== 'undefined') {
|
|
if (document.contains) {
|
|
return document.contains;
|
|
}
|
|
if (document.body && document.body.contains) {
|
|
try {
|
|
if (typeof document.body.contains.call(document, '') === 'boolean') {
|
|
return document.body.contains;
|
|
}
|
|
} catch (e) { /**/ }
|
|
}
|
|
}
|
|
return implementation;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/shim.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
var define = __webpack_require__("../../node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js");
|
|
var getPolyfill = __webpack_require__("../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/polyfill.js");
|
|
|
|
module.exports = function shimContains() {
|
|
var polyfill = getPolyfill();
|
|
if (typeof document !== 'undefined') {
|
|
define(
|
|
document,
|
|
{ contains: polyfill },
|
|
{ contains: function () { return document.contains !== polyfill; } }
|
|
);
|
|
if (typeof Element !== 'undefined') {
|
|
define(
|
|
Element.prototype,
|
|
{ contains: polyfill },
|
|
{ contains: function () { return Element.prototype.contains !== polyfill; } }
|
|
);
|
|
}
|
|
}
|
|
return polyfill;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/es-abstract@1.22.3/node_modules/es-abstract/2023/RequireObjectCoercible.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
module.exports = __webpack_require__("../../node_modules/.pnpm/es-abstract@1.22.3/node_modules/es-abstract/5/CheckObjectCoercible.js");
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/es-abstract@1.22.3/node_modules/es-abstract/5/CheckObjectCoercible.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
var GetIntrinsic = __webpack_require__("../../node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js");
|
|
|
|
var $TypeError = GetIntrinsic('%TypeError%');
|
|
|
|
// http://262.ecma-international.org/5.1/#sec-9.10
|
|
|
|
module.exports = function CheckObjectCoercible(value, optMessage) {
|
|
if (value == null) {
|
|
throw new $TypeError(optMessage || ('Cannot call method on ' + value));
|
|
}
|
|
return value;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/is-touch-device@1.0.1/node_modules/is-touch-device/build/index.js":
|
|
/***/ ((module, exports) => {
|
|
|
|
Object.defineProperty(exports, "__esModule", ({
|
|
value: true
|
|
}));
|
|
exports["default"] = isTouchDevice;
|
|
function isTouchDevice() {
|
|
return !!(typeof window !== 'undefined' && ('ontouchstart' in window || window.DocumentTouch && typeof document !== 'undefined' && document instanceof window.DocumentTouch)) || !!(typeof navigator !== 'undefined' && (navigator.maxTouchPoints || navigator.msMaxTouchPoints));
|
|
}
|
|
module.exports = exports['default'];
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
var trimmedEndIndex = __webpack_require__("../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js");
|
|
|
|
/** Used to match leading whitespace. */
|
|
var reTrimStart = /^\s+/;
|
|
|
|
/**
|
|
* The base implementation of `_.trim`.
|
|
*
|
|
* @private
|
|
* @param {string} string The string to trim.
|
|
* @returns {string} Returns the trimmed string.
|
|
*/
|
|
function baseTrim(string) {
|
|
return string
|
|
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
: string;
|
|
}
|
|
|
|
module.exports = baseTrim;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js":
|
|
/***/ ((module) => {
|
|
|
|
/** Used to match a single whitespace character. */
|
|
var reWhitespace = /\s/;
|
|
|
|
/**
|
|
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
* character of `string`.
|
|
*
|
|
* @private
|
|
* @param {string} string The string to inspect.
|
|
* @returns {number} Returns the index of the last non-whitespace character.
|
|
*/
|
|
function trimmedEndIndex(string) {
|
|
var index = string.length;
|
|
|
|
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
return index;
|
|
}
|
|
|
|
module.exports = trimmedEndIndex;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
var isObject = __webpack_require__("../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"),
|
|
now = __webpack_require__("../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js"),
|
|
toNumber = __webpack_require__("../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js");
|
|
|
|
/** Error message constants. */
|
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
|
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
var nativeMax = Math.max,
|
|
nativeMin = Math.min;
|
|
|
|
/**
|
|
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
* milliseconds have elapsed since the last time the debounced function was
|
|
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
* Provide `options` to indicate whether `func` should be invoked on the
|
|
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
* with the last arguments provided to the debounced function. Subsequent
|
|
* calls to the debounced function return the result of the last `func`
|
|
* invocation.
|
|
*
|
|
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
* invoked on the trailing edge of the timeout only if the debounced function
|
|
* is invoked more than once during the `wait` timeout.
|
|
*
|
|
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
*
|
|
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
*
|
|
* @static
|
|
* @memberOf _
|
|
* @since 0.1.0
|
|
* @category Function
|
|
* @param {Function} func The function to debounce.
|
|
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
* @param {Object} [options={}] The options object.
|
|
* @param {boolean} [options.leading=false]
|
|
* Specify invoking on the leading edge of the timeout.
|
|
* @param {number} [options.maxWait]
|
|
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
* @param {boolean} [options.trailing=true]
|
|
* Specify invoking on the trailing edge of the timeout.
|
|
* @returns {Function} Returns the new debounced function.
|
|
* @example
|
|
*
|
|
* // Avoid costly calculations while the window size is in flux.
|
|
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
*
|
|
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
* 'leading': true,
|
|
* 'trailing': false
|
|
* }));
|
|
*
|
|
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
* var source = new EventSource('/stream');
|
|
* jQuery(source).on('message', debounced);
|
|
*
|
|
* // Cancel the trailing debounced invocation.
|
|
* jQuery(window).on('popstate', debounced.cancel);
|
|
*/
|
|
function debounce(func, wait, options) {
|
|
var lastArgs,
|
|
lastThis,
|
|
maxWait,
|
|
result,
|
|
timerId,
|
|
lastCallTime,
|
|
lastInvokeTime = 0,
|
|
leading = false,
|
|
maxing = false,
|
|
trailing = true;
|
|
|
|
if (typeof func != 'function') {
|
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
}
|
|
wait = toNumber(wait) || 0;
|
|
if (isObject(options)) {
|
|
leading = !!options.leading;
|
|
maxing = 'maxWait' in options;
|
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
}
|
|
|
|
function invokeFunc(time) {
|
|
var args = lastArgs,
|
|
thisArg = lastThis;
|
|
|
|
lastArgs = lastThis = undefined;
|
|
lastInvokeTime = time;
|
|
result = func.apply(thisArg, args);
|
|
return result;
|
|
}
|
|
|
|
function leadingEdge(time) {
|
|
// Reset any `maxWait` timer.
|
|
lastInvokeTime = time;
|
|
// Start the timer for the trailing edge.
|
|
timerId = setTimeout(timerExpired, wait);
|
|
// Invoke the leading edge.
|
|
return leading ? invokeFunc(time) : result;
|
|
}
|
|
|
|
function remainingWait(time) {
|
|
var timeSinceLastCall = time - lastCallTime,
|
|
timeSinceLastInvoke = time - lastInvokeTime,
|
|
timeWaiting = wait - timeSinceLastCall;
|
|
|
|
return maxing
|
|
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
|
: timeWaiting;
|
|
}
|
|
|
|
function shouldInvoke(time) {
|
|
var timeSinceLastCall = time - lastCallTime,
|
|
timeSinceLastInvoke = time - lastInvokeTime;
|
|
|
|
// Either this is the first call, activity has stopped and we're at the
|
|
// trailing edge, the system time has gone backwards and we're treating
|
|
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
}
|
|
|
|
function timerExpired() {
|
|
var time = now();
|
|
if (shouldInvoke(time)) {
|
|
return trailingEdge(time);
|
|
}
|
|
// Restart the timer.
|
|
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
}
|
|
|
|
function trailingEdge(time) {
|
|
timerId = undefined;
|
|
|
|
// Only invoke if we have `lastArgs` which means `func` has been
|
|
// debounced at least once.
|
|
if (trailing && lastArgs) {
|
|
return invokeFunc(time);
|
|
}
|
|
lastArgs = lastThis = undefined;
|
|
return result;
|
|
}
|
|
|
|
function cancel() {
|
|
if (timerId !== undefined) {
|
|
clearTimeout(timerId);
|
|
}
|
|
lastInvokeTime = 0;
|
|
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
}
|
|
|
|
function flush() {
|
|
return timerId === undefined ? result : trailingEdge(now());
|
|
}
|
|
|
|
function debounced() {
|
|
var time = now(),
|
|
isInvoking = shouldInvoke(time);
|
|
|
|
lastArgs = arguments;
|
|
lastThis = this;
|
|
lastCallTime = time;
|
|
|
|
if (isInvoking) {
|
|
if (timerId === undefined) {
|
|
return leadingEdge(lastCallTime);
|
|
}
|
|
if (maxing) {
|
|
// Handle invocations in a tight loop.
|
|
clearTimeout(timerId);
|
|
timerId = setTimeout(timerExpired, wait);
|
|
return invokeFunc(lastCallTime);
|
|
}
|
|
}
|
|
if (timerId === undefined) {
|
|
timerId = setTimeout(timerExpired, wait);
|
|
}
|
|
return result;
|
|
}
|
|
debounced.cancel = cancel;
|
|
debounced.flush = flush;
|
|
return debounced;
|
|
}
|
|
|
|
module.exports = debounce;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
var root = __webpack_require__("../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js");
|
|
|
|
/**
|
|
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
*
|
|
* @static
|
|
* @memberOf _
|
|
* @since 2.4.0
|
|
* @category Date
|
|
* @returns {number} Returns the timestamp.
|
|
* @example
|
|
*
|
|
* _.defer(function(stamp) {
|
|
* console.log(_.now() - stamp);
|
|
* }, _.now());
|
|
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
*/
|
|
var now = function() {
|
|
return root.Date.now();
|
|
};
|
|
|
|
module.exports = now;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/throttle.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
var debounce = __webpack_require__("../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js"),
|
|
isObject = __webpack_require__("../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");
|
|
|
|
/** Error message constants. */
|
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
|
|
/**
|
|
* Creates a throttled function that only invokes `func` at most once per
|
|
* every `wait` milliseconds. The throttled function comes with a `cancel`
|
|
* method to cancel delayed `func` invocations and a `flush` method to
|
|
* immediately invoke them. Provide `options` to indicate whether `func`
|
|
* should be invoked on the leading and/or trailing edge of the `wait`
|
|
* timeout. The `func` is invoked with the last arguments provided to the
|
|
* throttled function. Subsequent calls to the throttled function return the
|
|
* result of the last `func` invocation.
|
|
*
|
|
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
* invoked on the trailing edge of the timeout only if the throttled function
|
|
* is invoked more than once during the `wait` timeout.
|
|
*
|
|
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
*
|
|
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
* for details over the differences between `_.throttle` and `_.debounce`.
|
|
*
|
|
* @static
|
|
* @memberOf _
|
|
* @since 0.1.0
|
|
* @category Function
|
|
* @param {Function} func The function to throttle.
|
|
* @param {number} [wait=0] The number of milliseconds to throttle invocations to.
|
|
* @param {Object} [options={}] The options object.
|
|
* @param {boolean} [options.leading=true]
|
|
* Specify invoking on the leading edge of the timeout.
|
|
* @param {boolean} [options.trailing=true]
|
|
* Specify invoking on the trailing edge of the timeout.
|
|
* @returns {Function} Returns the new throttled function.
|
|
* @example
|
|
*
|
|
* // Avoid excessively updating the position while scrolling.
|
|
* jQuery(window).on('scroll', _.throttle(updatePosition, 100));
|
|
*
|
|
* // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
|
|
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
|
|
* jQuery(element).on('click', throttled);
|
|
*
|
|
* // Cancel the trailing throttled invocation.
|
|
* jQuery(window).on('popstate', throttled.cancel);
|
|
*/
|
|
function throttle(func, wait, options) {
|
|
var leading = true,
|
|
trailing = true;
|
|
|
|
if (typeof func != 'function') {
|
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
}
|
|
if (isObject(options)) {
|
|
leading = 'leading' in options ? !!options.leading : leading;
|
|
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
}
|
|
return debounce(func, wait, {
|
|
'leading': leading,
|
|
'maxWait': wait,
|
|
'trailing': trailing
|
|
});
|
|
}
|
|
|
|
module.exports = throttle;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
var baseTrim = __webpack_require__("../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js"),
|
|
isObject = __webpack_require__("../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"),
|
|
isSymbol = __webpack_require__("../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js");
|
|
|
|
/** Used as references for various `Number` constants. */
|
|
var NAN = 0 / 0;
|
|
|
|
/** Used to detect bad signed hexadecimal string values. */
|
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
|
|
/** Used to detect binary string values. */
|
|
var reIsBinary = /^0b[01]+$/i;
|
|
|
|
/** Used to detect octal string values. */
|
|
var reIsOctal = /^0o[0-7]+$/i;
|
|
|
|
/** Built-in method references without a dependency on `root`. */
|
|
var freeParseInt = parseInt;
|
|
|
|
/**
|
|
* Converts `value` to a number.
|
|
*
|
|
* @static
|
|
* @memberOf _
|
|
* @since 4.0.0
|
|
* @category Lang
|
|
* @param {*} value The value to process.
|
|
* @returns {number} Returns the number.
|
|
* @example
|
|
*
|
|
* _.toNumber(3.2);
|
|
* // => 3.2
|
|
*
|
|
* _.toNumber(Number.MIN_VALUE);
|
|
* // => 5e-324
|
|
*
|
|
* _.toNumber(Infinity);
|
|
* // => Infinity
|
|
*
|
|
* _.toNumber('3.2');
|
|
* // => 3.2
|
|
*/
|
|
function toNumber(value) {
|
|
if (typeof value == 'number') {
|
|
return value;
|
|
}
|
|
if (isSymbol(value)) {
|
|
return NAN;
|
|
}
|
|
if (isObject(value)) {
|
|
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
value = isObject(other) ? (other + '') : other;
|
|
}
|
|
if (typeof value != 'string') {
|
|
return value === 0 ? value : +value;
|
|
}
|
|
value = baseTrim(value);
|
|
var isBinary = reIsBinary.test(value);
|
|
return (isBinary || reIsOctal.test(value))
|
|
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
: (reIsBadHex.test(value) ? NAN : +value);
|
|
}
|
|
|
|
module.exports = toNumber;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/object.assign@4.1.5/node_modules/object.assign/index.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
var defineProperties = __webpack_require__("../../node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js");
|
|
var callBind = __webpack_require__("../../node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/index.js");
|
|
|
|
var implementation = __webpack_require__("../../node_modules/.pnpm/object.assign@4.1.5/node_modules/object.assign/implementation.js");
|
|
var getPolyfill = __webpack_require__("../../node_modules/.pnpm/object.assign@4.1.5/node_modules/object.assign/polyfill.js");
|
|
var shim = __webpack_require__("../../node_modules/.pnpm/object.assign@4.1.5/node_modules/object.assign/shim.js");
|
|
|
|
var polyfill = callBind.apply(getPolyfill());
|
|
// eslint-disable-next-line no-unused-vars
|
|
var bound = function assign(target, source1) {
|
|
return polyfill(Object, arguments);
|
|
};
|
|
|
|
defineProperties(bound, {
|
|
getPolyfill: getPolyfill,
|
|
implementation: implementation,
|
|
shim: shim
|
|
});
|
|
|
|
module.exports = bound;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/object.assign@4.1.5/node_modules/object.assign/shim.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
var define = __webpack_require__("../../node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js");
|
|
var getPolyfill = __webpack_require__("../../node_modules/.pnpm/object.assign@4.1.5/node_modules/object.assign/polyfill.js");
|
|
|
|
module.exports = function shimAssign() {
|
|
var polyfill = getPolyfill();
|
|
define(
|
|
Object,
|
|
{ assign: polyfill },
|
|
{ assign: function () { return Object.assign !== polyfill; } }
|
|
);
|
|
return polyfill;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/object.values@1.1.7/node_modules/object.values/implementation.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
var RequireObjectCoercible = __webpack_require__("../../node_modules/.pnpm/es-abstract@1.22.3/node_modules/es-abstract/2023/RequireObjectCoercible.js");
|
|
var callBound = __webpack_require__("../../node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/callBound.js");
|
|
|
|
var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
|
|
var $push = callBound('Array.prototype.push');
|
|
|
|
module.exports = function values(O) {
|
|
var obj = RequireObjectCoercible(O);
|
|
var vals = [];
|
|
for (var key in obj) {
|
|
if ($isEnumerable(obj, key)) { // checks own-ness as well
|
|
$push(vals, obj[key]);
|
|
}
|
|
}
|
|
return vals;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/object.values@1.1.7/node_modules/object.values/index.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
var define = __webpack_require__("../../node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js");
|
|
var callBind = __webpack_require__("../../node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/index.js");
|
|
|
|
var implementation = __webpack_require__("../../node_modules/.pnpm/object.values@1.1.7/node_modules/object.values/implementation.js");
|
|
var getPolyfill = __webpack_require__("../../node_modules/.pnpm/object.values@1.1.7/node_modules/object.values/polyfill.js");
|
|
var shim = __webpack_require__("../../node_modules/.pnpm/object.values@1.1.7/node_modules/object.values/shim.js");
|
|
|
|
var polyfill = callBind(getPolyfill(), Object);
|
|
|
|
define(polyfill, {
|
|
getPolyfill: getPolyfill,
|
|
implementation: implementation,
|
|
shim: shim
|
|
});
|
|
|
|
module.exports = polyfill;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/object.values@1.1.7/node_modules/object.values/polyfill.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
var implementation = __webpack_require__("../../node_modules/.pnpm/object.values@1.1.7/node_modules/object.values/implementation.js");
|
|
|
|
module.exports = function getPolyfill() {
|
|
return typeof Object.values === 'function' ? Object.values : implementation;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/object.values@1.1.7/node_modules/object.values/shim.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
var getPolyfill = __webpack_require__("../../node_modules/.pnpm/object.values@1.1.7/node_modules/object.values/polyfill.js");
|
|
var define = __webpack_require__("../../node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js");
|
|
|
|
module.exports = function shimValues() {
|
|
var polyfill = getPolyfill();
|
|
define(Object, { values: polyfill }, {
|
|
values: function testValues() {
|
|
return Object.values !== polyfill;
|
|
}
|
|
});
|
|
return polyfill;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/react-moment-proptypes@1.8.1_moment@2.29.4/node_modules/react-moment-proptypes/src/core.js":
|
|
/***/ ((module) => {
|
|
|
|
var messages = {
|
|
invalidPredicate: '`predicate` must be a function',
|
|
invalidPropValidator: '`propValidator` must be a function',
|
|
requiredCore: 'is marked as required',
|
|
invalidTypeCore: 'Invalid input type',
|
|
predicateFailureCore: 'Failed to succeed with predicate',
|
|
anonymousMessage: '<<anonymous>>',
|
|
baseInvalidMessage: 'Invalid ',
|
|
};
|
|
|
|
function constructPropValidatorVariations(propValidator) {
|
|
if (typeof propValidator !== 'function') {
|
|
throw new Error(messages.invalidPropValidator);
|
|
}
|
|
|
|
var requiredPropValidator = propValidator.bind(null, false, null);
|
|
requiredPropValidator.isRequired = propValidator.bind(null, true, null);
|
|
|
|
requiredPropValidator.withPredicate = function predicateApplication(predicate) {
|
|
if (typeof predicate !== 'function') {
|
|
throw new Error(messages.invalidPredicate);
|
|
}
|
|
var basePropValidator = propValidator.bind(null, false, predicate);
|
|
basePropValidator.isRequired = propValidator.bind(null, true, predicate);
|
|
return basePropValidator;
|
|
};
|
|
|
|
return requiredPropValidator;
|
|
}
|
|
|
|
function createInvalidRequiredErrorMessage(propName, componentName, value) {
|
|
return new Error(
|
|
'The prop `' + propName + '` ' + messages.requiredCore +
|
|
' in `' + componentName + '`, but its value is `' + value + '`.'
|
|
);
|
|
}
|
|
|
|
var independentGuardianValue = -1;
|
|
|
|
function preValidationRequireCheck(isRequired, componentName, propFullName, propValue) {
|
|
var isPropValueUndefined = typeof propValue === 'undefined';
|
|
var isPropValueNull = propValue === null;
|
|
|
|
if (isRequired) {
|
|
if (isPropValueUndefined) {
|
|
return createInvalidRequiredErrorMessage(propFullName, componentName, 'undefined');
|
|
} else if (isPropValueNull) {
|
|
return createInvalidRequiredErrorMessage(propFullName, componentName, 'null');
|
|
}
|
|
}
|
|
|
|
if (isPropValueUndefined || isPropValueNull) {
|
|
return null;
|
|
}
|
|
|
|
return independentGuardianValue;
|
|
}
|
|
|
|
function createMomentChecker(type, typeValidator, validator, momentType) {
|
|
|
|
function propValidator(
|
|
isRequired, // Bound parameter to indicate with the propType is required
|
|
predicate, // Bound parameter to allow user to add dynamic validation
|
|
props,
|
|
propName,
|
|
componentName,
|
|
location,
|
|
propFullName
|
|
) {
|
|
var propValue = props[ propName ];
|
|
var propType = typeof propValue;
|
|
|
|
componentName = componentName || messages.anonymousMessage;
|
|
propFullName = propFullName || propName;
|
|
|
|
var preValidationRequireCheckValue = preValidationRequireCheck(
|
|
isRequired, componentName, propFullName, propValue
|
|
);
|
|
|
|
if (preValidationRequireCheckValue !== independentGuardianValue) {
|
|
return preValidationRequireCheckValue;
|
|
}
|
|
|
|
if (typeValidator && !typeValidator(propValue)) {
|
|
return new Error(
|
|
messages.invalidTypeCore + ': `' + propName + '` of type `' + propType + '` ' +
|
|
'supplied to `' + componentName + '`, expected `' + type + '`.'
|
|
);
|
|
}
|
|
|
|
if (!validator(propValue)) {
|
|
return new Error(
|
|
messages.baseInvalidMessage + location + ' `' + propName + '` of type `' + propType + '` ' +
|
|
'supplied to `' + componentName + '`, expected `' + momentType + '`.'
|
|
);
|
|
}
|
|
|
|
if (predicate && !predicate(propValue)) {
|
|
var predicateName = predicate.name || messages.anonymousMessage;
|
|
return new Error(
|
|
messages.baseInvalidMessage + location + ' `' + propName + '` of type `' + propType + '` ' +
|
|
'supplied to `' + componentName + '`. ' + messages.predicateFailureCore + ' `' +
|
|
predicateName + '`.'
|
|
);
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
return constructPropValidatorVariations(propValidator);
|
|
|
|
}
|
|
|
|
module.exports = {
|
|
constructPropValidatorVariations: constructPropValidatorVariations,
|
|
createMomentChecker: createMomentChecker,
|
|
messages: messages,
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/react-moment-proptypes@1.8.1_moment@2.29.4/node_modules/react-moment-proptypes/src/index.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
var moment = __webpack_require__("../../node_modules/.pnpm/moment@2.29.4/node_modules/moment/moment.js");
|
|
var momentValidationWrapper = __webpack_require__("../../node_modules/.pnpm/react-moment-proptypes@1.8.1_moment@2.29.4/node_modules/react-moment-proptypes/src/moment-validation-wrapper.js");
|
|
var core = __webpack_require__("../../node_modules/.pnpm/react-moment-proptypes@1.8.1_moment@2.29.4/node_modules/react-moment-proptypes/src/core.js");
|
|
|
|
module.exports = {
|
|
|
|
momentObj : core.createMomentChecker(
|
|
'object',
|
|
function(obj) {
|
|
return typeof obj === 'object';
|
|
},
|
|
function isValid(value) {
|
|
return momentValidationWrapper.isValidMoment(value);
|
|
},
|
|
'Moment'
|
|
),
|
|
|
|
momentString : core.createMomentChecker(
|
|
'string',
|
|
function(str) {
|
|
return typeof str === 'string';
|
|
},
|
|
function isValid(value) {
|
|
return momentValidationWrapper.isValidMoment(moment(value));
|
|
},
|
|
'Moment'
|
|
),
|
|
|
|
momentDurationObj : core.createMomentChecker(
|
|
'object',
|
|
function(obj) {
|
|
return typeof obj === 'object';
|
|
},
|
|
function isValid(value) {
|
|
return moment.isDuration(value);
|
|
},
|
|
'Duration'
|
|
),
|
|
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/react-moment-proptypes@1.8.1_moment@2.29.4/node_modules/react-moment-proptypes/src/moment-validation-wrapper.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
var moment = __webpack_require__("../../node_modules/.pnpm/moment@2.29.4/node_modules/moment/moment.js");
|
|
|
|
function isValidMoment(testMoment) {
|
|
if (typeof moment.isMoment === 'function' && !moment.isMoment(testMoment)) {
|
|
return false;
|
|
}
|
|
|
|
/* istanbul ignore else */
|
|
if (typeof testMoment.isValid === 'function') {
|
|
// moment 1.7.0+
|
|
return testMoment.isValid();
|
|
}
|
|
|
|
/* istanbul ignore next */
|
|
return !isNaN(testMoment);
|
|
}
|
|
|
|
module.exports = {
|
|
isValidMoment : isValidMoment,
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/react-outside-click-handler@1.3.0_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-outside-click-handler/build/OutsideClickHandler.js":
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({
|
|
value: true
|
|
}));
|
|
|
|
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; }; }();
|
|
|
|
var _react = __webpack_require__("../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js");
|
|
|
|
var _react2 = _interopRequireDefault(_react);
|
|
|
|
var _propTypes = __webpack_require__("../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
|
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
|
|
var _airbnbPropTypes = __webpack_require__("../../node_modules/.pnpm/airbnb-prop-types@2.16.0_react@17.0.2/node_modules/airbnb-prop-types/index.js");
|
|
|
|
var _consolidatedEvents = __webpack_require__("../../node_modules/.pnpm/consolidated-events@2.0.2/node_modules/consolidated-events/lib/index.esm.js");
|
|
|
|
var _object = __webpack_require__("../../node_modules/.pnpm/object.values@1.1.7/node_modules/object.values/index.js");
|
|
|
|
var _object2 = _interopRequireDefault(_object);
|
|
|
|
var _document = __webpack_require__("../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/index.js");
|
|
|
|
var _document2 = _interopRequireDefault(_document);
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
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; }
|
|
|
|
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; }
|
|
|
|
var DISPLAY = {
|
|
BLOCK: 'block',
|
|
FLEX: 'flex',
|
|
INLINE: 'inline',
|
|
INLINE_BLOCK: 'inline-block',
|
|
CONTENTS: 'contents'
|
|
};
|
|
|
|
var propTypes = (0, _airbnbPropTypes.forbidExtraProps)({
|
|
children: _propTypes2['default'].node.isRequired,
|
|
onOutsideClick: _propTypes2['default'].func.isRequired,
|
|
disabled: _propTypes2['default'].bool,
|
|
useCapture: _propTypes2['default'].bool,
|
|
display: _propTypes2['default'].oneOf((0, _object2['default'])(DISPLAY))
|
|
});
|
|
|
|
var defaultProps = {
|
|
disabled: false,
|
|
|
|
// `useCapture` is set to true by default so that a `stopPropagation` in the
|
|
// children will not prevent all outside click handlers from firing - maja
|
|
useCapture: true,
|
|
display: DISPLAY.BLOCK
|
|
};
|
|
|
|
var OutsideClickHandler = function (_React$Component) {
|
|
_inherits(OutsideClickHandler, _React$Component);
|
|
|
|
function OutsideClickHandler() {
|
|
var _ref;
|
|
|
|
_classCallCheck(this, OutsideClickHandler);
|
|
|
|
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
var _this = _possibleConstructorReturn(this, (_ref = OutsideClickHandler.__proto__ || Object.getPrototypeOf(OutsideClickHandler)).call.apply(_ref, [this].concat(args)));
|
|
|
|
_this.onMouseDown = _this.onMouseDown.bind(_this);
|
|
_this.onMouseUp = _this.onMouseUp.bind(_this);
|
|
_this.setChildNodeRef = _this.setChildNodeRef.bind(_this);
|
|
return _this;
|
|
}
|
|
|
|
_createClass(OutsideClickHandler, [{
|
|
key: 'componentDidMount',
|
|
value: function () {
|
|
function componentDidMount() {
|
|
var _props = this.props,
|
|
disabled = _props.disabled,
|
|
useCapture = _props.useCapture;
|
|
|
|
|
|
if (!disabled) this.addMouseDownEventListener(useCapture);
|
|
}
|
|
|
|
return componentDidMount;
|
|
}()
|
|
}, {
|
|
key: 'componentDidUpdate',
|
|
value: function () {
|
|
function componentDidUpdate(_ref2) {
|
|
var prevDisabled = _ref2.disabled;
|
|
var _props2 = this.props,
|
|
disabled = _props2.disabled,
|
|
useCapture = _props2.useCapture;
|
|
|
|
if (prevDisabled !== disabled) {
|
|
if (disabled) {
|
|
this.removeEventListeners();
|
|
} else {
|
|
this.addMouseDownEventListener(useCapture);
|
|
}
|
|
}
|
|
}
|
|
|
|
return componentDidUpdate;
|
|
}()
|
|
}, {
|
|
key: 'componentWillUnmount',
|
|
value: function () {
|
|
function componentWillUnmount() {
|
|
this.removeEventListeners();
|
|
}
|
|
|
|
return componentWillUnmount;
|
|
}()
|
|
|
|
// Use mousedown/mouseup to enforce that clicks remain outside the root's
|
|
// descendant tree, even when dragged. This should also get triggered on
|
|
// touch devices.
|
|
|
|
}, {
|
|
key: 'onMouseDown',
|
|
value: function () {
|
|
function onMouseDown(e) {
|
|
var useCapture = this.props.useCapture;
|
|
|
|
|
|
var isDescendantOfRoot = this.childNode && (0, _document2['default'])(this.childNode, e.target);
|
|
if (!isDescendantOfRoot) {
|
|
if (this.removeMouseUp) {
|
|
this.removeMouseUp();
|
|
this.removeMouseUp = null;
|
|
}
|
|
this.removeMouseUp = (0, _consolidatedEvents.addEventListener)(document, 'mouseup', this.onMouseUp, { capture: useCapture });
|
|
}
|
|
}
|
|
|
|
return onMouseDown;
|
|
}()
|
|
|
|
// Use mousedown/mouseup to enforce that clicks remain outside the root's
|
|
// descendant tree, even when dragged. This should also get triggered on
|
|
// touch devices.
|
|
|
|
}, {
|
|
key: 'onMouseUp',
|
|
value: function () {
|
|
function onMouseUp(e) {
|
|
var onOutsideClick = this.props.onOutsideClick;
|
|
|
|
|
|
var isDescendantOfRoot = this.childNode && (0, _document2['default'])(this.childNode, e.target);
|
|
if (this.removeMouseUp) {
|
|
this.removeMouseUp();
|
|
this.removeMouseUp = null;
|
|
}
|
|
|
|
if (!isDescendantOfRoot) {
|
|
onOutsideClick(e);
|
|
}
|
|
}
|
|
|
|
return onMouseUp;
|
|
}()
|
|
}, {
|
|
key: 'setChildNodeRef',
|
|
value: function () {
|
|
function setChildNodeRef(ref) {
|
|
this.childNode = ref;
|
|
}
|
|
|
|
return setChildNodeRef;
|
|
}()
|
|
}, {
|
|
key: 'addMouseDownEventListener',
|
|
value: function () {
|
|
function addMouseDownEventListener(useCapture) {
|
|
this.removeMouseDown = (0, _consolidatedEvents.addEventListener)(document, 'mousedown', this.onMouseDown, { capture: useCapture });
|
|
}
|
|
|
|
return addMouseDownEventListener;
|
|
}()
|
|
}, {
|
|
key: 'removeEventListeners',
|
|
value: function () {
|
|
function removeEventListeners() {
|
|
if (this.removeMouseDown) this.removeMouseDown();
|
|
if (this.removeMouseUp) this.removeMouseUp();
|
|
}
|
|
|
|
return removeEventListeners;
|
|
}()
|
|
}, {
|
|
key: 'render',
|
|
value: function () {
|
|
function render() {
|
|
var _props3 = this.props,
|
|
children = _props3.children,
|
|
display = _props3.display;
|
|
|
|
|
|
return _react2['default'].createElement(
|
|
'div',
|
|
{
|
|
ref: this.setChildNodeRef,
|
|
style: display !== DISPLAY.BLOCK && (0, _object2['default'])(DISPLAY).includes(display) ? { display: display } : undefined
|
|
},
|
|
children
|
|
);
|
|
}
|
|
|
|
return render;
|
|
}()
|
|
}]);
|
|
|
|
return OutsideClickHandler;
|
|
}(_react2['default'].Component);
|
|
|
|
exports["default"] = OutsideClickHandler;
|
|
|
|
|
|
OutsideClickHandler.propTypes = propTypes;
|
|
OutsideClickHandler.defaultProps = defaultProps;
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/react-outside-click-handler@1.3.0_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-outside-click-handler/index.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
// eslint-disable-next-line import/no-unresolved
|
|
module.exports = __webpack_require__("../../node_modules/.pnpm/react-outside-click-handler@1.3.0_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-outside-click-handler/build/OutsideClickHandler.js");
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/react-with-direction@1.4.0_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-with-direction/dist/constants.js":
|
|
/***/ ((__unused_webpack_module, exports) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({
|
|
value: true
|
|
}));
|
|
var CHANNEL = exports.CHANNEL = '__direction__';
|
|
|
|
var DIRECTIONS = exports.DIRECTIONS = {
|
|
LTR: 'ltr',
|
|
RTL: 'rtl'
|
|
};
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/react-with-direction@1.4.0_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-with-direction/dist/proptypes/brcast.js":
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({
|
|
value: true
|
|
}));
|
|
|
|
var _propTypes = __webpack_require__("../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
|
|
|
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
exports["default"] = _propTypes2['default'].shape({
|
|
getState: _propTypes2['default'].func,
|
|
setState: _propTypes2['default'].func,
|
|
subscribe: _propTypes2['default'].func
|
|
});
|
|
|
|
/***/ })
|
|
|
|
}]); |