1204 lines
50 KiB
JavaScript
1204 lines
50 KiB
JavaScript
"use strict";
|
|
(self["webpackChunk_woocommerce_storybook"] = self["webpackChunk_woocommerce_storybook"] || []).push([[887],{
|
|
|
|
/***/ "../../node_modules/.pnpm/@wordpress+a11y@3.6.1/node_modules/@wordpress/a11y/build-module/index.js":
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
L: () => (/* binding */ speak)
|
|
});
|
|
|
|
// UNUSED EXPORTS: setup
|
|
|
|
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@wordpress+dom-ready@3.27.0/node_modules/@wordpress/dom-ready/build-module/index.js
|
|
/**
|
|
* @typedef {() => void} Callback
|
|
*
|
|
* TODO: Remove this typedef and inline `() => void` type.
|
|
*
|
|
* This typedef is used so that a descriptive type is provided in our
|
|
* automatically generated documentation.
|
|
*
|
|
* An in-line type `() => void` would be preferable, but the generated
|
|
* documentation is `null` in that case.
|
|
*
|
|
* @see https://github.com/WordPress/gutenberg/issues/18045
|
|
*/
|
|
|
|
/**
|
|
* Specify a function to execute when the DOM is fully loaded.
|
|
*
|
|
* @param {Callback} callback A function to execute after the DOM is ready.
|
|
*
|
|
* @example
|
|
* ```js
|
|
* import domReady from '@wordpress/dom-ready';
|
|
*
|
|
* domReady( function() {
|
|
* //do something after DOM loads.
|
|
* } );
|
|
* ```
|
|
*
|
|
* @return {void}
|
|
*/
|
|
function domReady(callback) {
|
|
if (typeof document === 'undefined') {
|
|
return;
|
|
}
|
|
|
|
if (document.readyState === 'complete' || // DOMContentLoaded + Images/Styles/etc loaded, so we call directly.
|
|
document.readyState === 'interactive' // DOMContentLoaded fires at this point, so we call directly.
|
|
) {
|
|
return void callback();
|
|
} // DOMContentLoaded has not fired yet, delay callback until then.
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded', callback);
|
|
}
|
|
//# sourceMappingURL=index.js.map
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+i18n@4.6.1/node_modules/@wordpress/i18n/build-module/index.js + 3 modules
|
|
var build_module = __webpack_require__("../../node_modules/.pnpm/@wordpress+i18n@4.6.1/node_modules/@wordpress/i18n/build-module/index.js");
|
|
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@wordpress+a11y@3.6.1/node_modules/@wordpress/a11y/build-module/add-intro-text.js
|
|
/**
|
|
* WordPress dependencies
|
|
*/
|
|
|
|
/**
|
|
* Build the explanatory text to be placed before the aria live regions.
|
|
*
|
|
* This text is initially hidden from assistive technologies by using a `hidden`
|
|
* HTML attribute which is then removed once a message fills the aria-live regions.
|
|
*
|
|
* @return {HTMLParagraphElement} The explanatory text HTML element.
|
|
*/
|
|
|
|
function addIntroText() {
|
|
const introText = document.createElement('p');
|
|
introText.id = 'a11y-speak-intro-text';
|
|
introText.className = 'a11y-speak-intro-text';
|
|
introText.textContent = (0,build_module.__)('Notifications');
|
|
introText.setAttribute('style', 'position: absolute;' + 'margin: -1px;' + 'padding: 0;' + 'height: 1px;' + 'width: 1px;' + 'overflow: hidden;' + 'clip: rect(1px, 1px, 1px, 1px);' + '-webkit-clip-path: inset(50%);' + 'clip-path: inset(50%);' + 'border: 0;' + 'word-wrap: normal !important;');
|
|
introText.setAttribute('hidden', 'hidden');
|
|
const {
|
|
body
|
|
} = document;
|
|
|
|
if (body) {
|
|
body.appendChild(introText);
|
|
}
|
|
|
|
return introText;
|
|
}
|
|
//# sourceMappingURL=add-intro-text.js.map
|
|
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@wordpress+a11y@3.6.1/node_modules/@wordpress/a11y/build-module/add-container.js
|
|
/**
|
|
* Build the live regions markup.
|
|
*
|
|
* @param {string} [ariaLive] Value for the 'aria-live' attribute; default: 'polite'.
|
|
*
|
|
* @return {HTMLDivElement} The ARIA live region HTML element.
|
|
*/
|
|
function addContainer() {
|
|
let ariaLive = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'polite';
|
|
const container = document.createElement('div');
|
|
container.id = `a11y-speak-${ariaLive}`;
|
|
container.className = 'a11y-speak-region';
|
|
container.setAttribute('style', 'position: absolute;' + 'margin: -1px;' + 'padding: 0;' + 'height: 1px;' + 'width: 1px;' + 'overflow: hidden;' + 'clip: rect(1px, 1px, 1px, 1px);' + '-webkit-clip-path: inset(50%);' + 'clip-path: inset(50%);' + 'border: 0;' + 'word-wrap: normal !important;');
|
|
container.setAttribute('aria-live', ariaLive);
|
|
container.setAttribute('aria-relevant', 'additions text');
|
|
container.setAttribute('aria-atomic', 'true');
|
|
const {
|
|
body
|
|
} = document;
|
|
|
|
if (body) {
|
|
body.appendChild(container);
|
|
}
|
|
|
|
return container;
|
|
}
|
|
//# sourceMappingURL=add-container.js.map
|
|
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@wordpress+a11y@3.6.1/node_modules/@wordpress/a11y/build-module/clear.js
|
|
/**
|
|
* Clears the a11y-speak-region elements and hides the explanatory text.
|
|
*/
|
|
function clear() {
|
|
const regions = document.getElementsByClassName('a11y-speak-region');
|
|
const introText = document.getElementById('a11y-speak-intro-text');
|
|
|
|
for (let i = 0; i < regions.length; i++) {
|
|
regions[i].textContent = '';
|
|
} // Make sure the explanatory text is hidden from assistive technologies.
|
|
|
|
|
|
if (introText) {
|
|
introText.setAttribute('hidden', 'hidden');
|
|
}
|
|
}
|
|
//# sourceMappingURL=clear.js.map
|
|
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@wordpress+a11y@3.6.1/node_modules/@wordpress/a11y/build-module/filter-message.js
|
|
let previousMessage = '';
|
|
/**
|
|
* Filter the message to be announced to the screenreader.
|
|
*
|
|
* @param {string} message The message to be announced.
|
|
*
|
|
* @return {string} The filtered message.
|
|
*/
|
|
|
|
function filterMessage(message) {
|
|
/*
|
|
* Strip HTML tags (if any) from the message string. Ideally, messages should
|
|
* be simple strings, carefully crafted for specific use with A11ySpeak.
|
|
* When re-using already existing strings this will ensure simple HTML to be
|
|
* stripped out and replaced with a space. Browsers will collapse multiple
|
|
* spaces natively.
|
|
*/
|
|
message = message.replace(/<[^<>]+>/g, ' ');
|
|
/*
|
|
* Safari + VoiceOver don't announce repeated, identical strings. We use
|
|
* a `no-break space` to force them to think identical strings are different.
|
|
*/
|
|
|
|
if (previousMessage === message) {
|
|
message += '\u00A0';
|
|
}
|
|
|
|
previousMessage = message;
|
|
return message;
|
|
}
|
|
//# sourceMappingURL=filter-message.js.map
|
|
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@wordpress+a11y@3.6.1/node_modules/@wordpress/a11y/build-module/index.js
|
|
/**
|
|
* WordPress dependencies
|
|
*/
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Create the live regions.
|
|
*/
|
|
|
|
function setup() {
|
|
const introText = document.getElementById('a11y-speak-intro-text');
|
|
const containerAssertive = document.getElementById('a11y-speak-assertive');
|
|
const containerPolite = document.getElementById('a11y-speak-polite');
|
|
|
|
if (introText === null) {
|
|
addIntroText();
|
|
}
|
|
|
|
if (containerAssertive === null) {
|
|
addContainer('assertive');
|
|
}
|
|
|
|
if (containerPolite === null) {
|
|
addContainer('polite');
|
|
}
|
|
}
|
|
/**
|
|
* Run setup on domReady.
|
|
*/
|
|
|
|
domReady(setup);
|
|
/**
|
|
* Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.
|
|
* This module is inspired by the `speak` function in `wp-a11y.js`.
|
|
*
|
|
* @param {string} message The message to be announced by assistive technologies.
|
|
* @param {string} [ariaLive] The politeness level for aria-live; default: 'polite'.
|
|
*
|
|
* @example
|
|
* ```js
|
|
* import { speak } from '@wordpress/a11y';
|
|
*
|
|
* // For polite messages that shouldn't interrupt what screen readers are currently announcing.
|
|
* speak( 'The message you want to send to the ARIA live region' );
|
|
*
|
|
* // For assertive messages that should interrupt what screen readers are currently announcing.
|
|
* speak( 'The message you want to send to the ARIA live region', 'assertive' );
|
|
* ```
|
|
*/
|
|
|
|
function speak(message, ariaLive) {
|
|
/*
|
|
* Clear previous messages to allow repeated strings being read out and hide
|
|
* the explanatory text from assistive technologies.
|
|
*/
|
|
clear();
|
|
message = filterMessage(message);
|
|
const introText = document.getElementById('a11y-speak-intro-text');
|
|
const containerAssertive = document.getElementById('a11y-speak-assertive');
|
|
const containerPolite = document.getElementById('a11y-speak-polite');
|
|
|
|
if (containerAssertive && ariaLive === 'assertive') {
|
|
containerAssertive.textContent = message;
|
|
} else if (containerPolite) {
|
|
containerPolite.textContent = message;
|
|
}
|
|
/*
|
|
* Make the explanatory text available to assistive technologies by removing
|
|
* the 'hidden' HTML attribute.
|
|
*/
|
|
|
|
|
|
if (introText) {
|
|
introText.removeAttribute('hidden');
|
|
}
|
|
}
|
|
//# sourceMappingURL=index.js.map
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/modal/index.js":
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
A: () => (/* binding */ modal)
|
|
});
|
|
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@babel+runtime@7.23.5/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
var esm_extends = __webpack_require__("../../node_modules/.pnpm/@babel+runtime@7.23.5/node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js
|
|
var react = __webpack_require__("../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.js
|
|
var classnames = __webpack_require__("../../node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.js");
|
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js
|
|
var react_dom = __webpack_require__("../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+compose@5.4.1_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-instance-id/index.js
|
|
var use_instance_id = __webpack_require__("../../node_modules/.pnpm/@wordpress+compose@5.4.1_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-instance-id/index.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+compose@5.4.1_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-focus-on-mount/index.js
|
|
var use_focus_on_mount = __webpack_require__("../../node_modules/.pnpm/@wordpress+compose@5.4.1_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-focus-on-mount/index.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+compose@5.4.1_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-constrained-tabbing/index.js
|
|
var use_constrained_tabbing = __webpack_require__("../../node_modules/.pnpm/@wordpress+compose@5.4.1_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-constrained-tabbing/index.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+compose@5.4.1_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-focus-return/index.js
|
|
var use_focus_return = __webpack_require__("../../node_modules/.pnpm/@wordpress+compose@5.4.1_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-focus-return/index.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+compose@5.4.1_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-focus-outside/index.js
|
|
var use_focus_outside = __webpack_require__("../../node_modules/.pnpm/@wordpress+compose@5.4.1_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-focus-outside/index.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+compose@5.4.1_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-merge-refs/index.js
|
|
var use_merge_refs = __webpack_require__("../../node_modules/.pnpm/@wordpress+compose@5.4.1_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-merge-refs/index.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+keycodes@3.47.0/node_modules/@wordpress/keycodes/build-module/index.js + 2 modules
|
|
var build_module = __webpack_require__("../../node_modules/.pnpm/@wordpress+keycodes@3.47.0/node_modules/@wordpress/keycodes/build-module/index.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+i18n@4.6.1/node_modules/@wordpress/i18n/build-module/index.js + 3 modules
|
|
var i18n_build_module = __webpack_require__("../../node_modules/.pnpm/@wordpress+i18n@4.6.1/node_modules/@wordpress/i18n/build-module/index.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+icons@8.4.0/node_modules/@wordpress/icons/build-module/library/close-small.js
|
|
var close_small = __webpack_require__("../../node_modules/.pnpm/@wordpress+icons@8.4.0/node_modules/@wordpress/icons/build-module/library/close-small.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js
|
|
var lodash = __webpack_require__("../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js");
|
|
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/modal/aria-helper.js
|
|
// @ts-nocheck
|
|
|
|
/**
|
|
* External dependencies
|
|
*/
|
|
|
|
const LIVE_REGION_ARIA_ROLES = new Set(['alert', 'status', 'log', 'marquee', 'timer']);
|
|
let hiddenElements = [],
|
|
isHidden = false;
|
|
/**
|
|
* Hides all elements in the body element from screen-readers except
|
|
* the provided element and elements that should not be hidden from
|
|
* screen-readers.
|
|
*
|
|
* The reason we do this is because `aria-modal="true"` currently is bugged
|
|
* in Safari, and support is spotty in other browsers overall. In the future
|
|
* we should consider removing these helper functions in favor of
|
|
* `aria-modal="true"`.
|
|
*
|
|
* @param {Element} unhiddenElement The element that should not be hidden.
|
|
*/
|
|
|
|
function hideApp(unhiddenElement) {
|
|
if (isHidden) {
|
|
return;
|
|
}
|
|
|
|
const elements = document.body.children;
|
|
(0,lodash.forEach)(elements, element => {
|
|
if (element === unhiddenElement) {
|
|
return;
|
|
}
|
|
|
|
if (elementShouldBeHidden(element)) {
|
|
element.setAttribute('aria-hidden', 'true');
|
|
hiddenElements.push(element);
|
|
}
|
|
});
|
|
isHidden = true;
|
|
}
|
|
/**
|
|
* Determines if the passed element should not be hidden from screen readers.
|
|
*
|
|
* @param {HTMLElement} element The element that should be checked.
|
|
*
|
|
* @return {boolean} Whether the element should not be hidden from screen-readers.
|
|
*/
|
|
|
|
function elementShouldBeHidden(element) {
|
|
const role = element.getAttribute('role');
|
|
return !(element.tagName === 'SCRIPT' || element.hasAttribute('aria-hidden') || element.hasAttribute('aria-live') || LIVE_REGION_ARIA_ROLES.has(role));
|
|
}
|
|
/**
|
|
* Makes all elements in the body that have been hidden by `hideApp`
|
|
* visible again to screen-readers.
|
|
*/
|
|
|
|
function showApp() {
|
|
if (!isHidden) {
|
|
return;
|
|
}
|
|
|
|
(0,lodash.forEach)(hiddenElements, element => {
|
|
element.removeAttribute('aria-hidden');
|
|
});
|
|
hiddenElements = [];
|
|
isHidden = false;
|
|
}
|
|
//# sourceMappingURL=aria-helper.js.map
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/button/index.js
|
|
var build_module_button = __webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/button/index.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/style-provider/index.js
|
|
var style_provider = __webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/style-provider/index.js");
|
|
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/modal/index.js
|
|
|
|
|
|
// @ts-nocheck
|
|
|
|
/**
|
|
* External dependencies
|
|
*/
|
|
|
|
/**
|
|
* WordPress dependencies
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
|
|
|
|
|
|
// Used to count the number of open modals.
|
|
|
|
let openModalCount = 0;
|
|
|
|
function Modal(props, forwardedRef) {
|
|
const {
|
|
bodyOpenClassName = 'modal-open',
|
|
role = 'dialog',
|
|
title = null,
|
|
focusOnMount = true,
|
|
shouldCloseOnEsc = true,
|
|
shouldCloseOnClickOutside = true,
|
|
isDismissible = true,
|
|
|
|
/* Accessibility. */
|
|
aria = {
|
|
labelledby: null,
|
|
describedby: null
|
|
},
|
|
onRequestClose,
|
|
icon,
|
|
closeButtonLabel,
|
|
children,
|
|
style,
|
|
overlayClassName,
|
|
className,
|
|
contentLabel,
|
|
onKeyDown,
|
|
isFullScreen = false,
|
|
__experimentalHideHeader = false
|
|
} = props;
|
|
const ref = (0,react.useRef)();
|
|
const instanceId = (0,use_instance_id/* default */.A)(Modal);
|
|
const headingId = title ? `components-modal-header-${instanceId}` : aria.labelledby;
|
|
const focusOnMountRef = (0,use_focus_on_mount/* default */.A)(focusOnMount);
|
|
const constrainedTabbingRef = (0,use_constrained_tabbing/* default */.A)();
|
|
const focusReturnRef = (0,use_focus_return/* default */.A)();
|
|
const focusOutsideProps = (0,use_focus_outside/* default */.A)(onRequestClose);
|
|
(0,react.useEffect)(() => {
|
|
openModalCount++;
|
|
|
|
if (openModalCount === 1) {
|
|
hideApp(ref.current);
|
|
document.body.classList.add(bodyOpenClassName);
|
|
}
|
|
|
|
return () => {
|
|
openModalCount--;
|
|
|
|
if (openModalCount === 0) {
|
|
document.body.classList.remove(bodyOpenClassName);
|
|
showApp();
|
|
}
|
|
};
|
|
}, []);
|
|
|
|
function handleEscapeKeyDown(event) {
|
|
if (shouldCloseOnEsc && event.keyCode === build_module/* ESCAPE */._f && !event.defaultPrevented) {
|
|
event.preventDefault();
|
|
|
|
if (onRequestClose) {
|
|
onRequestClose(event);
|
|
}
|
|
}
|
|
}
|
|
|
|
return (0,react_dom.createPortal)( // eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
(0,react.createElement)("div", {
|
|
ref: (0,use_merge_refs/* default */.A)([ref, forwardedRef]),
|
|
className: classnames_default()('components-modal__screen-overlay', overlayClassName),
|
|
onKeyDown: handleEscapeKeyDown
|
|
}, (0,react.createElement)(style_provider/* default */.A, {
|
|
document: document
|
|
}, (0,react.createElement)("div", (0,esm_extends/* default */.A)({
|
|
className: classnames_default()('components-modal__frame', className, {
|
|
'is-full-screen': isFullScreen
|
|
}),
|
|
style: style,
|
|
ref: (0,use_merge_refs/* default */.A)([constrainedTabbingRef, focusReturnRef, focusOnMountRef]),
|
|
role: role,
|
|
"aria-label": contentLabel,
|
|
"aria-labelledby": contentLabel ? null : headingId,
|
|
"aria-describedby": aria.describedby,
|
|
tabIndex: "-1"
|
|
}, shouldCloseOnClickOutside ? focusOutsideProps : {}, {
|
|
onKeyDown: onKeyDown
|
|
}), (0,react.createElement)("div", {
|
|
className: classnames_default()('components-modal__content', {
|
|
'hide-header': __experimentalHideHeader
|
|
}),
|
|
role: "document"
|
|
}, !__experimentalHideHeader && (0,react.createElement)("div", {
|
|
className: "components-modal__header"
|
|
}, (0,react.createElement)("div", {
|
|
className: "components-modal__header-heading-container"
|
|
}, icon && (0,react.createElement)("span", {
|
|
className: "components-modal__icon-container",
|
|
"aria-hidden": true
|
|
}, icon), title && (0,react.createElement)("h1", {
|
|
id: headingId,
|
|
className: "components-modal__header-heading"
|
|
}, title)), isDismissible && (0,react.createElement)(build_module_button/* default */.A, {
|
|
onClick: onRequestClose,
|
|
icon: close_small/* default */.A,
|
|
label: closeButtonLabel || (0,i18n_build_module.__)('Close dialog')
|
|
})), children)))), document.body);
|
|
}
|
|
|
|
/* harmony default export */ const modal = ((0,react.forwardRef)(Modal));
|
|
//# sourceMappingURL=index.js.map
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/spinner/index.js":
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
A: () => (/* binding */ Spinner)
|
|
});
|
|
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@babel+runtime@7.23.5/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
var esm_extends = __webpack_require__("../../node_modules/.pnpm/@babel+runtime@7.23.5/node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js
|
|
var react = __webpack_require__("../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.js
|
|
var classnames = __webpack_require__("../../node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.js");
|
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@17.0.71_react@17.0.2__@types+react@17.0.71_react@17.0.2/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
|
|
var emotion_styled_base_browser_esm = __webpack_require__("../../node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@17.0.71_react@17.0.2__@types+react@17.0.71_react@17.0.2/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@emotion+react@11.11.1_@types+react@17.0.71_react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js
|
|
var emotion_react_browser_esm = __webpack_require__("../../node_modules/.pnpm/@emotion+react@11.11.1_@types+react@17.0.71_react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/utils/config-values.js
|
|
var config_values = __webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/utils/config-values.js");
|
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/utils/colors-values.js + 1 modules
|
|
var colors_values = __webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/utils/colors-values.js");
|
|
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/spinner/styles.js
|
|
|
|
|
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
|
|
/**
|
|
* External dependencies
|
|
*/
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
|
|
|
|
const spinAnimation = (0,emotion_react_browser_esm/* keyframes */.i7)`
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
`;
|
|
const StyledSpinner = (0,emotion_styled_base_browser_esm/* default */.A)("svg", true ? {
|
|
target: "e1bj2jdf2"
|
|
} : 0)("width:", config_values/* default */.A.spinnerSize, "px;height:", config_values/* default */.A.spinnerSize, "px;display:inline-block;margin:5px 11px 0;position:relative;color:var( --wp-admin-theme-color );overflow:visible;" + ( true ? "" : 0));
|
|
const commonPathProps = true ? {
|
|
name: "9s4963",
|
|
styles: "fill:transparent;stroke-width:1.5px"
|
|
} : 0;
|
|
const SpinnerTrack = (0,emotion_styled_base_browser_esm/* default */.A)("circle", true ? {
|
|
target: "e1bj2jdf1"
|
|
} : 0)(commonPathProps, ";stroke:", colors_values/* COLORS */.lm.gray[300], ";" + ( true ? "" : 0));
|
|
const SpinnerIndicator = (0,emotion_styled_base_browser_esm/* default */.A)("path", true ? {
|
|
target: "e1bj2jdf0"
|
|
} : 0)(commonPathProps, ";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ", spinAnimation, ";" + ( true ? "" : 0));
|
|
//# sourceMappingURL=styles.js.map
|
|
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/spinner/index.js
|
|
|
|
|
|
|
|
/**
|
|
* External dependencies
|
|
*/
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
|
|
|
|
/**
|
|
* @typedef OwnProps
|
|
*
|
|
* @property {string} [className] Class name
|
|
*/
|
|
|
|
/** @typedef {import('react').ComponentPropsWithoutRef<'svg'> & OwnProps} Props */
|
|
|
|
/**
|
|
* @param {Props} props
|
|
* @return {JSX.Element} Element
|
|
*/
|
|
|
|
function Spinner(_ref) {
|
|
let {
|
|
className,
|
|
...props
|
|
} = _ref;
|
|
return (0,react.createElement)(StyledSpinner, (0,esm_extends/* default */.A)({
|
|
className: classnames_default()('components-spinner', className),
|
|
viewBox: "0 0 100 100",
|
|
xmlns: "http://www.w3.org/2000/svg",
|
|
role: "presentation",
|
|
focusable: "false"
|
|
}, props), (0,react.createElement)(SpinnerTrack, {
|
|
cx: "50",
|
|
cy: "50",
|
|
r: "50",
|
|
vectorEffect: "non-scaling-stroke"
|
|
}), (0,react.createElement)(SpinnerIndicator, {
|
|
d: "m 50 0 a 50 50 0 0 1 50 50",
|
|
vectorEffect: "non-scaling-stroke"
|
|
}));
|
|
}
|
|
//# sourceMappingURL=index.js.map
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/utils/config-values.js":
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
/* harmony export */ });
|
|
/* harmony import */ var _ui_utils_space__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/ui/utils/space.js");
|
|
/* harmony import */ var _colors_values__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/utils/colors-values.js");
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
|
|
|
|
const CONTROL_HEIGHT = '36px';
|
|
const CONTROL_PADDING_X = '12px';
|
|
const CONTROL_PROPS = {
|
|
controlSurfaceColor: _colors_values__WEBPACK_IMPORTED_MODULE_0__/* .COLORS */ .lm.white,
|
|
controlTextActiveColor: _colors_values__WEBPACK_IMPORTED_MODULE_0__/* .COLORS */ .lm.ui.theme,
|
|
controlPaddingX: CONTROL_PADDING_X,
|
|
controlPaddingXLarge: `calc(${CONTROL_PADDING_X} * 1.3334)`,
|
|
controlPaddingXSmall: `calc(${CONTROL_PADDING_X} / 1.3334)`,
|
|
controlBackgroundColor: _colors_values__WEBPACK_IMPORTED_MODULE_0__/* .COLORS */ .lm.white,
|
|
controlBorderRadius: '2px',
|
|
controlBorderColor: _colors_values__WEBPACK_IMPORTED_MODULE_0__/* .COLORS */ .lm.gray[700],
|
|
controlBoxShadow: 'transparent',
|
|
controlBorderColorHover: _colors_values__WEBPACK_IMPORTED_MODULE_0__/* .COLORS */ .lm.gray[700],
|
|
controlBoxShadowFocus: `0 0 0 0.5px ${_colors_values__WEBPACK_IMPORTED_MODULE_0__/* .COLORS */ .lm.admin.theme}`,
|
|
controlDestructiveBorderColor: _colors_values__WEBPACK_IMPORTED_MODULE_0__/* .COLORS */ .lm.alert.red,
|
|
controlHeight: CONTROL_HEIGHT,
|
|
controlHeightXSmall: `calc( ${CONTROL_HEIGHT} * 0.6 )`,
|
|
controlHeightSmall: `calc( ${CONTROL_HEIGHT} * 0.8 )`,
|
|
controlHeightLarge: `calc( ${CONTROL_HEIGHT} * 1.2 )`,
|
|
controlHeightXLarge: `calc( ${CONTROL_HEIGHT} * 1.4 )`
|
|
};
|
|
const TOGGLE_GROUP_CONTROL_PROPS = {
|
|
toggleGroupControlBackgroundColor: CONTROL_PROPS.controlBackgroundColor,
|
|
toggleGroupControlBorderColor: _colors_values__WEBPACK_IMPORTED_MODULE_0__/* .COLORS */ .lm.ui.border,
|
|
toggleGroupControlBackdropBackgroundColor: CONTROL_PROPS.controlSurfaceColor,
|
|
toggleGroupControlBackdropBorderColor: _colors_values__WEBPACK_IMPORTED_MODULE_0__/* .COLORS */ .lm.ui.border,
|
|
toggleGroupControlBackdropBoxShadow: 'transparent',
|
|
toggleGroupControlButtonColorActive: CONTROL_PROPS.controlBackgroundColor
|
|
}; // Using Object.assign to avoid creating circular references when emitting
|
|
// TypeScript type declarations.
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Object.assign({}, CONTROL_PROPS, TOGGLE_GROUP_CONTROL_PROPS, {
|
|
colorDivider: 'rgba(0, 0, 0, 0.1)',
|
|
colorScrollbarThumb: 'rgba(0, 0, 0, 0.2)',
|
|
colorScrollbarThumbHover: 'rgba(0, 0, 0, 0.5)',
|
|
colorScrollbarTrack: 'rgba(0, 0, 0, 0.04)',
|
|
elevationIntensity: 1,
|
|
radiusBlockUi: '2px',
|
|
borderWidth: '1px',
|
|
borderWidthFocus: '1.5px',
|
|
borderWidthTab: '4px',
|
|
spinnerSize: 16,
|
|
fontSize: '13px',
|
|
fontSizeH1: 'calc(2.44 * 13px)',
|
|
fontSizeH2: 'calc(1.95 * 13px)',
|
|
fontSizeH3: 'calc(1.56 * 13px)',
|
|
fontSizeH4: 'calc(1.25 * 13px)',
|
|
fontSizeH5: '13px',
|
|
fontSizeH6: 'calc(0.8 * 13px)',
|
|
fontSizeInputMobile: '16px',
|
|
fontSizeMobile: '15px',
|
|
fontSizeSmall: 'calc(0.92 * 13px)',
|
|
fontSizeXSmall: 'calc(0.75 * 13px)',
|
|
fontLineHeightBase: '1.2',
|
|
fontWeight: 'normal',
|
|
fontWeightHeading: '600',
|
|
gridBase: '4px',
|
|
cardBorderRadius: '2px',
|
|
cardPaddingXSmall: `${(0,_ui_utils_space__WEBPACK_IMPORTED_MODULE_1__/* .space */ .x)(2)}`,
|
|
cardPaddingSmall: `${(0,_ui_utils_space__WEBPACK_IMPORTED_MODULE_1__/* .space */ .x)(4)}`,
|
|
cardPaddingMedium: `${(0,_ui_utils_space__WEBPACK_IMPORTED_MODULE_1__/* .space */ .x)(4)} ${(0,_ui_utils_space__WEBPACK_IMPORTED_MODULE_1__/* .space */ .x)(6)}`,
|
|
cardPaddingLarge: `${(0,_ui_utils_space__WEBPACK_IMPORTED_MODULE_1__/* .space */ .x)(6)} ${(0,_ui_utils_space__WEBPACK_IMPORTED_MODULE_1__/* .space */ .x)(8)}`,
|
|
surfaceBackgroundColor: _colors_values__WEBPACK_IMPORTED_MODULE_0__/* .COLORS */ .lm.white,
|
|
surfaceBackgroundSubtleColor: '#F3F3F3',
|
|
surfaceBackgroundTintColor: '#F5F5F5',
|
|
surfaceBorderColor: 'rgba(0, 0, 0, 0.1)',
|
|
surfaceBorderBoldColor: 'rgba(0, 0, 0, 0.15)',
|
|
surfaceBorderSubtleColor: 'rgba(0, 0, 0, 0.05)',
|
|
surfaceBackgroundTertiaryColor: _colors_values__WEBPACK_IMPORTED_MODULE_0__/* .COLORS */ .lm.white,
|
|
surfaceColor: _colors_values__WEBPACK_IMPORTED_MODULE_0__/* .COLORS */ .lm.white,
|
|
transitionDuration: '200ms',
|
|
transitionDurationFast: '160ms',
|
|
transitionDurationFaster: '120ms',
|
|
transitionDurationFastest: '100ms',
|
|
transitionTimingFunction: 'cubic-bezier(0.08, 0.52, 0.52, 1)',
|
|
transitionTimingFunctionControl: 'cubic-bezier(0.12, 0.8, 0.32, 1)'
|
|
}));
|
|
//# sourceMappingURL=config-values.js.map
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/@wordpress+icons@8.2.3/node_modules/@wordpress/icons/build-module/icon/index.js":
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
/* 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");
|
|
/**
|
|
* WordPress dependencies
|
|
*/
|
|
|
|
/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */
|
|
|
|
/**
|
|
* Return an SVG icon.
|
|
*
|
|
* @param {IconProps} props icon is the SVG component to render
|
|
* size is a number specifiying the icon size in pixels
|
|
* Other props will be passed to wrapped SVG component
|
|
*
|
|
* @return {JSX.Element} Icon component
|
|
*/
|
|
|
|
function Icon(_ref) {
|
|
let {
|
|
icon,
|
|
size = 24,
|
|
...props
|
|
} = _ref;
|
|
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(icon, {
|
|
width: size,
|
|
height: size,
|
|
...props
|
|
});
|
|
}
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Icon);
|
|
//# sourceMappingURL=index.js.map
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/@wordpress+icons@8.2.3/node_modules/@wordpress/icons/build-module/library/close-small.js":
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
/* 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 closeSmall = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__/* .SVG */ .t4, {
|
|
xmlns: "http://www.w3.org/2000/svg",
|
|
viewBox: "0 0 24 24"
|
|
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__/* .Path */ .wA, {
|
|
d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
|
|
}));
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (closeSmall);
|
|
//# sourceMappingURL=close-small.js.map
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/@wordpress+icons@8.4.0/node_modules/@wordpress/icons/build-module/library/close-small.js":
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
/* 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.45.0/node_modules/@wordpress/primitives/build-module/svg/index.js");
|
|
|
|
|
|
/**
|
|
* WordPress dependencies
|
|
*/
|
|
|
|
const closeSmall = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__/* .SVG */ .t4, {
|
|
xmlns: "http://www.w3.org/2000/svg",
|
|
viewBox: "0 0 24 24"
|
|
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__/* .Path */ .wA, {
|
|
d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
|
|
}));
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (closeSmall);
|
|
//# sourceMappingURL=close-small.js.map
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/array-sort.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
|
|
var arraySlice = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/array-slice-simple.js");
|
|
|
|
var floor = Math.floor;
|
|
|
|
var mergeSort = function (array, comparefn) {
|
|
var length = array.length;
|
|
var middle = floor(length / 2);
|
|
return length < 8 ? insertionSort(array, comparefn) : merge(
|
|
array,
|
|
mergeSort(arraySlice(array, 0, middle), comparefn),
|
|
mergeSort(arraySlice(array, middle), comparefn),
|
|
comparefn
|
|
);
|
|
};
|
|
|
|
var insertionSort = function (array, comparefn) {
|
|
var length = array.length;
|
|
var i = 1;
|
|
var element, j;
|
|
|
|
while (i < length) {
|
|
j = i;
|
|
element = array[i];
|
|
while (j && comparefn(array[j - 1], element) > 0) {
|
|
array[j] = array[--j];
|
|
}
|
|
if (j !== i++) array[j] = element;
|
|
} return array;
|
|
};
|
|
|
|
var merge = function (array, left, right, comparefn) {
|
|
var llength = left.length;
|
|
var rlength = right.length;
|
|
var lindex = 0;
|
|
var rindex = 0;
|
|
|
|
while (lindex < llength || rindex < rlength) {
|
|
array[lindex + rindex] = (lindex < llength && rindex < rlength)
|
|
? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
|
|
: lindex < llength ? left[lindex++] : right[rindex++];
|
|
} return array;
|
|
};
|
|
|
|
module.exports = mergeSort;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/correct-is-regexp-logic.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
|
|
var wellKnownSymbol = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/well-known-symbol.js");
|
|
|
|
var MATCH = wellKnownSymbol('match');
|
|
|
|
module.exports = function (METHOD_NAME) {
|
|
var regexp = /./;
|
|
try {
|
|
'/./'[METHOD_NAME](regexp);
|
|
} catch (error1) {
|
|
try {
|
|
regexp[MATCH] = false;
|
|
return '/./'[METHOD_NAME](regexp);
|
|
} catch (error2) { /* empty */ }
|
|
} return false;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/delete-property-or-throw.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
|
|
var tryToString = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/try-to-string.js");
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
module.exports = function (O, P) {
|
|
if (!delete O[P]) throw new $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/engine-ff-version.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
|
|
var userAgent = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/engine-user-agent.js");
|
|
|
|
var firefox = userAgent.match(/firefox\/(\d+)/i);
|
|
|
|
module.exports = !!firefox && +firefox[1];
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/engine-is-ie-or-edge.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
|
|
var UA = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/engine-user-agent.js");
|
|
|
|
module.exports = /MSIE|Trident/.test(UA);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/engine-webkit-version.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
|
|
var userAgent = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/engine-user-agent.js");
|
|
|
|
var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
|
|
|
module.exports = !!webkit && +webkit[1];
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/not-a-regexp.js":
|
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
|
|
var isRegExp = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/is-regexp.js");
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
module.exports = function (it) {
|
|
if (isRegExp(it)) {
|
|
throw new $TypeError("The method doesn't accept regular expressions");
|
|
} return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/modules/es.array.find-index.js":
|
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
|
|
var $ = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/export.js");
|
|
var $findIndex = (__webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/array-iteration.js").findIndex);
|
|
var addToUnscopables = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/add-to-unscopables.js");
|
|
|
|
var FIND_INDEX = 'findIndex';
|
|
var SKIPS_HOLES = true;
|
|
|
|
// Shouldn't skip holes
|
|
// eslint-disable-next-line es/no-array-prototype-findindex -- testing
|
|
if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; });
|
|
|
|
// `Array.prototype.findIndex` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.findindex
|
|
$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
findIndex: function findIndex(callbackfn /* , that = undefined */) {
|
|
return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
}
|
|
});
|
|
|
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
addToUnscopables(FIND_INDEX);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/modules/es.array.find.js":
|
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
|
|
var $ = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/export.js");
|
|
var $find = (__webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/array-iteration.js").find);
|
|
var addToUnscopables = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/add-to-unscopables.js");
|
|
|
|
var FIND = 'find';
|
|
var SKIPS_HOLES = true;
|
|
|
|
// Shouldn't skip holes
|
|
// eslint-disable-next-line es/no-array-prototype-find -- testing
|
|
if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
|
|
|
// `Array.prototype.find` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
find: function find(callbackfn /* , that = undefined */) {
|
|
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
}
|
|
});
|
|
|
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
addToUnscopables(FIND);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/modules/es.array.includes.js":
|
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
|
|
var $ = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/export.js");
|
|
var $includes = (__webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/array-includes.js").includes);
|
|
var fails = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/fails.js");
|
|
var addToUnscopables = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/add-to-unscopables.js");
|
|
|
|
// FF99+ bug
|
|
var BROKEN_ON_SPARSE = fails(function () {
|
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
return !Array(1).includes();
|
|
});
|
|
|
|
// `Array.prototype.includes` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
}
|
|
});
|
|
|
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
addToUnscopables('includes');
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../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__) => {
|
|
|
|
|
|
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.array.sort.js":
|
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
|
|
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 aCallable = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/a-callable.js");
|
|
var toObject = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/to-object.js");
|
|
var lengthOfArrayLike = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/length-of-array-like.js");
|
|
var deletePropertyOrThrow = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/delete-property-or-throw.js");
|
|
var toString = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/to-string.js");
|
|
var fails = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/fails.js");
|
|
var internalSort = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/array-sort.js");
|
|
var arrayMethodIsStrict = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/array-method-is-strict.js");
|
|
var FF = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/engine-ff-version.js");
|
|
var IE_OR_EDGE = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/engine-is-ie-or-edge.js");
|
|
var V8 = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/engine-v8-version.js");
|
|
var WEBKIT = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/engine-webkit-version.js");
|
|
|
|
var test = [];
|
|
var nativeSort = uncurryThis(test.sort);
|
|
var push = uncurryThis(test.push);
|
|
|
|
// IE8-
|
|
var FAILS_ON_UNDEFINED = fails(function () {
|
|
test.sort(undefined);
|
|
});
|
|
// V8 bug
|
|
var FAILS_ON_NULL = fails(function () {
|
|
test.sort(null);
|
|
});
|
|
// Old WebKit
|
|
var STRICT_METHOD = arrayMethodIsStrict('sort');
|
|
|
|
var STABLE_SORT = !fails(function () {
|
|
// feature detection can be too slow, so check engines versions
|
|
if (V8) return V8 < 70;
|
|
if (FF && FF > 3) return;
|
|
if (IE_OR_EDGE) return true;
|
|
if (WEBKIT) return WEBKIT < 603;
|
|
|
|
var result = '';
|
|
var code, chr, value, index;
|
|
|
|
// generate an array with more 512 elements (Chakra and old V8 fails only in this case)
|
|
for (code = 65; code < 76; code++) {
|
|
chr = String.fromCharCode(code);
|
|
|
|
switch (code) {
|
|
case 66: case 69: case 70: case 72: value = 3; break;
|
|
case 68: case 71: value = 4; break;
|
|
default: value = 2;
|
|
}
|
|
|
|
for (index = 0; index < 47; index++) {
|
|
test.push({ k: chr + index, v: value });
|
|
}
|
|
}
|
|
|
|
test.sort(function (a, b) { return b.v - a.v; });
|
|
|
|
for (index = 0; index < test.length; index++) {
|
|
chr = test[index].k.charAt(0);
|
|
if (result.charAt(result.length - 1) !== chr) result += chr;
|
|
}
|
|
|
|
return result !== 'DGBEFHACIJK';
|
|
});
|
|
|
|
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
|
|
|
var getSortCompare = function (comparefn) {
|
|
return function (x, y) {
|
|
if (y === undefined) return -1;
|
|
if (x === undefined) return 1;
|
|
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
return toString(x) > toString(y) ? 1 : -1;
|
|
};
|
|
};
|
|
|
|
// `Array.prototype.sort` method
|
|
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
$({ target: 'Array', proto: true, forced: FORCED }, {
|
|
sort: function sort(comparefn) {
|
|
if (comparefn !== undefined) aCallable(comparefn);
|
|
|
|
var array = toObject(this);
|
|
|
|
if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
|
|
|
|
var items = [];
|
|
var arrayLength = lengthOfArrayLike(array);
|
|
var itemsLength, index;
|
|
|
|
for (index = 0; index < arrayLength; index++) {
|
|
if (index in array) push(items, array[index]);
|
|
}
|
|
|
|
internalSort(items, getSortCompare(comparefn));
|
|
|
|
itemsLength = lengthOfArrayLike(items);
|
|
index = 0;
|
|
|
|
while (index < itemsLength) array[index] = items[index++];
|
|
while (index < arrayLength) deletePropertyOrThrow(array, index++);
|
|
|
|
return array;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/modules/es.string.includes.js":
|
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
|
|
|
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 notARegExp = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/not-a-regexp.js");
|
|
var requireObjectCoercible = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/require-object-coercible.js");
|
|
var toString = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/to-string.js");
|
|
var correctIsRegExpLogic = __webpack_require__("../../node_modules/.pnpm/core-js@3.34.0/node_modules/core-js/internals/correct-is-regexp-logic.js");
|
|
|
|
var stringIndexOf = uncurryThis(''.indexOf);
|
|
|
|
// `String.prototype.includes` method
|
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
includes: function includes(searchString /* , position = 0 */) {
|
|
return !!~stringIndexOf(
|
|
toString(requireObjectCoercible(this)),
|
|
toString(notARegExp(searchString)),
|
|
arguments.length > 1 ? arguments[1] : undefined
|
|
);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ })
|
|
|
|
}]); |