Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
return Object(external_wp_element_["createElement"])(CircularOptionPicker, {
[35000] Fix | Delete
className: className,
[35001] Fix | Delete
options: gradientOptions,
[35002] Fix | Delete
actions: clearable && Object(external_wp_element_["createElement"])(CircularOptionPicker.ButtonAction, {
[35003] Fix | Delete
onClick: clearGradient
[35004] Fix | Delete
}, Object(external_wp_i18n_["__"])('Clear'))
[35005] Fix | Delete
}, !disableCustomGradients && Object(external_wp_element_["createElement"])(CustomGradientPicker, {
[35006] Fix | Delete
value: value,
[35007] Fix | Delete
onChange: onChange
[35008] Fix | Delete
}));
[35009] Fix | Delete
}
[35010] Fix | Delete
[35011] Fix | Delete
// EXTERNAL MODULE: ./node_modules/react-merge-refs/dist/react-merge-refs.esm.js
[35012] Fix | Delete
var react_merge_refs_esm = __webpack_require__("LFnd");
[35013] Fix | Delete
[35014] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/frame.js
[35015] Fix | Delete
[35016] Fix | Delete
[35017] Fix | Delete
[35018] Fix | Delete
[35019] Fix | Delete
[35020] Fix | Delete
[35021] Fix | Delete
[35022] Fix | Delete
[35023] Fix | Delete
function frame_createSuper(Derived) { var hasNativeReflectConstruct = frame_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; }
[35024] Fix | Delete
[35025] Fix | Delete
function frame_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
[35026] Fix | Delete
[35027] Fix | Delete
/**
[35028] Fix | Delete
* External dependencies
[35029] Fix | Delete
*/
[35030] Fix | Delete
[35031] Fix | Delete
[35032] Fix | Delete
/**
[35033] Fix | Delete
* WordPress dependencies
[35034] Fix | Delete
*/
[35035] Fix | Delete
[35036] Fix | Delete
[35037] Fix | Delete
[35038] Fix | Delete
[35039] Fix | Delete
/**
[35040] Fix | Delete
* Internal dependencies
[35041] Fix | Delete
*/
[35042] Fix | Delete
[35043] Fix | Delete
[35044] Fix | Delete
[35045] Fix | Delete
function ModalFrameContent(_ref) {
[35046] Fix | Delete
var overlayClassName = _ref.overlayClassName,
[35047] Fix | Delete
contentLabel = _ref.contentLabel,
[35048] Fix | Delete
_ref$aria = _ref.aria,
[35049] Fix | Delete
describedby = _ref$aria.describedby,
[35050] Fix | Delete
labelledby = _ref$aria.labelledby,
[35051] Fix | Delete
children = _ref.children,
[35052] Fix | Delete
className = _ref.className,
[35053] Fix | Delete
role = _ref.role,
[35054] Fix | Delete
style = _ref.style,
[35055] Fix | Delete
focusOnMount = _ref.focusOnMount,
[35056] Fix | Delete
shouldCloseOnEsc = _ref.shouldCloseOnEsc,
[35057] Fix | Delete
onRequestClose = _ref.onRequestClose;
[35058] Fix | Delete
[35059] Fix | Delete
function handleEscapeKeyDown(event) {
[35060] Fix | Delete
if (shouldCloseOnEsc && event.keyCode === external_wp_keycodes_["ESCAPE"]) {
[35061] Fix | Delete
event.stopPropagation();
[35062] Fix | Delete
[35063] Fix | Delete
if (onRequestClose) {
[35064] Fix | Delete
onRequestClose(event);
[35065] Fix | Delete
}
[35066] Fix | Delete
}
[35067] Fix | Delete
}
[35068] Fix | Delete
[35069] Fix | Delete
var focusOnMountRef = Object(external_wp_compose_["useFocusOnMount"])(focusOnMount);
[35070] Fix | Delete
var constrainedTabbingRef = Object(external_wp_compose_["useConstrainedTabbing"])();
[35071] Fix | Delete
var focusReturnRef = Object(external_wp_compose_["useFocusReturn"])();
[35072] Fix | Delete
return (// eslint-disable-next-line jsx-a11y/no-static-element-interactions
[35073] Fix | Delete
Object(external_wp_element_["createElement"])("div", {
[35074] Fix | Delete
className: classnames_default()('components-modal__screen-overlay', overlayClassName),
[35075] Fix | Delete
onKeyDown: handleEscapeKeyDown
[35076] Fix | Delete
}, Object(external_wp_element_["createElement"])("div", {
[35077] Fix | Delete
className: classnames_default()('components-modal__frame', className),
[35078] Fix | Delete
style: style,
[35079] Fix | Delete
ref: Object(react_merge_refs_esm["a" /* default */])([constrainedTabbingRef, focusReturnRef, focusOnMountRef]),
[35080] Fix | Delete
role: role,
[35081] Fix | Delete
"aria-label": contentLabel,
[35082] Fix | Delete
"aria-labelledby": contentLabel ? null : labelledby,
[35083] Fix | Delete
"aria-describedby": describedby,
[35084] Fix | Delete
tabIndex: "-1"
[35085] Fix | Delete
}, children))
[35086] Fix | Delete
);
[35087] Fix | Delete
}
[35088] Fix | Delete
[35089] Fix | Delete
var frame_ModalFrame = /*#__PURE__*/function (_Component) {
[35090] Fix | Delete
Object(inherits["a" /* default */])(ModalFrame, _Component);
[35091] Fix | Delete
[35092] Fix | Delete
var _super = frame_createSuper(ModalFrame);
[35093] Fix | Delete
[35094] Fix | Delete
function ModalFrame() {
[35095] Fix | Delete
var _this;
[35096] Fix | Delete
[35097] Fix | Delete
Object(classCallCheck["a" /* default */])(this, ModalFrame);
[35098] Fix | Delete
[35099] Fix | Delete
_this = _super.apply(this, arguments);
[35100] Fix | Delete
_this.handleFocusOutside = _this.handleFocusOutside.bind(Object(assertThisInitialized["a" /* default */])(_this));
[35101] Fix | Delete
return _this;
[35102] Fix | Delete
}
[35103] Fix | Delete
/**
[35104] Fix | Delete
* Callback function called when clicked outside the modal.
[35105] Fix | Delete
*
[35106] Fix | Delete
* @param {Object} event Mouse click event.
[35107] Fix | Delete
*/
[35108] Fix | Delete
[35109] Fix | Delete
[35110] Fix | Delete
Object(createClass["a" /* default */])(ModalFrame, [{
[35111] Fix | Delete
key: "handleFocusOutside",
[35112] Fix | Delete
value: function handleFocusOutside(event) {
[35113] Fix | Delete
if (this.props.shouldCloseOnClickOutside && this.props.onRequestClose) {
[35114] Fix | Delete
this.props.onRequestClose(event);
[35115] Fix | Delete
}
[35116] Fix | Delete
}
[35117] Fix | Delete
/**
[35118] Fix | Delete
* Renders the modal frame element.
[35119] Fix | Delete
*
[35120] Fix | Delete
* @return {WPElement} The modal frame element.
[35121] Fix | Delete
*/
[35122] Fix | Delete
[35123] Fix | Delete
}, {
[35124] Fix | Delete
key: "render",
[35125] Fix | Delete
value: function render() {
[35126] Fix | Delete
return Object(external_wp_element_["createElement"])(ModalFrameContent, this.props);
[35127] Fix | Delete
}
[35128] Fix | Delete
}]);
[35129] Fix | Delete
[35130] Fix | Delete
return ModalFrame;
[35131] Fix | Delete
}(external_wp_element_["Component"]);
[35132] Fix | Delete
[35133] Fix | Delete
/* harmony default export */ var modal_frame = (with_focus_outside(frame_ModalFrame));
[35134] Fix | Delete
[35135] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/header.js
[35136] Fix | Delete
[35137] Fix | Delete
[35138] Fix | Delete
/**
[35139] Fix | Delete
* WordPress dependencies
[35140] Fix | Delete
*/
[35141] Fix | Delete
[35142] Fix | Delete
[35143] Fix | Delete
/**
[35144] Fix | Delete
* Internal dependencies
[35145] Fix | Delete
*/
[35146] Fix | Delete
[35147] Fix | Delete
[35148] Fix | Delete
[35149] Fix | Delete
var header_ModalHeader = function ModalHeader(_ref) {
[35150] Fix | Delete
var icon = _ref.icon,
[35151] Fix | Delete
title = _ref.title,
[35152] Fix | Delete
onClose = _ref.onClose,
[35153] Fix | Delete
closeLabel = _ref.closeLabel,
[35154] Fix | Delete
headingId = _ref.headingId,
[35155] Fix | Delete
isDismissible = _ref.isDismissible;
[35156] Fix | Delete
var label = closeLabel ? closeLabel : Object(external_wp_i18n_["__"])('Close dialog');
[35157] Fix | Delete
return Object(external_wp_element_["createElement"])("div", {
[35158] Fix | Delete
className: "components-modal__header"
[35159] Fix | Delete
}, Object(external_wp_element_["createElement"])("div", {
[35160] Fix | Delete
className: "components-modal__header-heading-container"
[35161] Fix | Delete
}, icon && Object(external_wp_element_["createElement"])("span", {
[35162] Fix | Delete
className: "components-modal__icon-container",
[35163] Fix | Delete
"aria-hidden": true
[35164] Fix | Delete
}, icon), title && Object(external_wp_element_["createElement"])("h1", {
[35165] Fix | Delete
id: headingId,
[35166] Fix | Delete
className: "components-modal__header-heading"
[35167] Fix | Delete
}, title)), isDismissible && Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], {
[35168] Fix | Delete
onClick: onClose,
[35169] Fix | Delete
icon: library_close["a" /* default */],
[35170] Fix | Delete
label: label
[35171] Fix | Delete
}));
[35172] Fix | Delete
};
[35173] Fix | Delete
[35174] Fix | Delete
/* harmony default export */ var modal_header = (header_ModalHeader);
[35175] Fix | Delete
[35176] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/aria-helper.js
[35177] Fix | Delete
/**
[35178] Fix | Delete
* External dependencies
[35179] Fix | Delete
*/
[35180] Fix | Delete
[35181] Fix | Delete
var LIVE_REGION_ARIA_ROLES = new Set(['alert', 'status', 'log', 'marquee', 'timer']);
[35182] Fix | Delete
var hiddenElements = [],
[35183] Fix | Delete
isHidden = false;
[35184] Fix | Delete
/**
[35185] Fix | Delete
* Hides all elements in the body element from screen-readers except
[35186] Fix | Delete
* the provided element and elements that should not be hidden from
[35187] Fix | Delete
* screen-readers.
[35188] Fix | Delete
*
[35189] Fix | Delete
* The reason we do this is because `aria-modal="true"` currently is bugged
[35190] Fix | Delete
* in Safari, and support is spotty in other browsers overall. In the future
[35191] Fix | Delete
* we should consider removing these helper functions in favor of
[35192] Fix | Delete
* `aria-modal="true"`.
[35193] Fix | Delete
*
[35194] Fix | Delete
* @param {Element} unhiddenElement The element that should not be hidden.
[35195] Fix | Delete
*/
[35196] Fix | Delete
[35197] Fix | Delete
function hideApp(unhiddenElement) {
[35198] Fix | Delete
if (isHidden) {
[35199] Fix | Delete
return;
[35200] Fix | Delete
}
[35201] Fix | Delete
[35202] Fix | Delete
var elements = document.body.children;
[35203] Fix | Delete
Object(external_lodash_["forEach"])(elements, function (element) {
[35204] Fix | Delete
if (element === unhiddenElement) {
[35205] Fix | Delete
return;
[35206] Fix | Delete
}
[35207] Fix | Delete
[35208] Fix | Delete
if (elementShouldBeHidden(element)) {
[35209] Fix | Delete
element.setAttribute('aria-hidden', 'true');
[35210] Fix | Delete
hiddenElements.push(element);
[35211] Fix | Delete
}
[35212] Fix | Delete
});
[35213] Fix | Delete
isHidden = true;
[35214] Fix | Delete
}
[35215] Fix | Delete
/**
[35216] Fix | Delete
* Determines if the passed element should not be hidden from screen readers.
[35217] Fix | Delete
*
[35218] Fix | Delete
* @param {HTMLElement} element The element that should be checked.
[35219] Fix | Delete
*
[35220] Fix | Delete
* @return {boolean} Whether the element should not be hidden from screen-readers.
[35221] Fix | Delete
*/
[35222] Fix | Delete
[35223] Fix | Delete
function elementShouldBeHidden(element) {
[35224] Fix | Delete
var role = element.getAttribute('role');
[35225] Fix | Delete
return !(element.tagName === 'SCRIPT' || element.hasAttribute('aria-hidden') || element.hasAttribute('aria-live') || LIVE_REGION_ARIA_ROLES.has(role));
[35226] Fix | Delete
}
[35227] Fix | Delete
/**
[35228] Fix | Delete
* Makes all elements in the body that have been hidden by `hideApp`
[35229] Fix | Delete
* visible again to screen-readers.
[35230] Fix | Delete
*/
[35231] Fix | Delete
[35232] Fix | Delete
function showApp() {
[35233] Fix | Delete
if (!isHidden) {
[35234] Fix | Delete
return;
[35235] Fix | Delete
}
[35236] Fix | Delete
[35237] Fix | Delete
Object(external_lodash_["forEach"])(hiddenElements, function (element) {
[35238] Fix | Delete
element.removeAttribute('aria-hidden');
[35239] Fix | Delete
});
[35240] Fix | Delete
hiddenElements = [];
[35241] Fix | Delete
isHidden = false;
[35242] Fix | Delete
}
[35243] Fix | Delete
[35244] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/index.js
[35245] Fix | Delete
[35246] Fix | Delete
[35247] Fix | Delete
[35248] Fix | Delete
[35249] Fix | Delete
[35250] Fix | Delete
[35251] Fix | Delete
[35252] Fix | Delete
[35253] Fix | Delete
[35254] Fix | Delete
function modal_createSuper(Derived) { var hasNativeReflectConstruct = modal_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; }
[35255] Fix | Delete
[35256] Fix | Delete
function modal_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
[35257] Fix | Delete
[35258] Fix | Delete
/**
[35259] Fix | Delete
* WordPress dependencies
[35260] Fix | Delete
*/
[35261] Fix | Delete
[35262] Fix | Delete
[35263] Fix | Delete
[35264] Fix | Delete
/**
[35265] Fix | Delete
* Internal dependencies
[35266] Fix | Delete
*/
[35267] Fix | Delete
[35268] Fix | Delete
[35269] Fix | Delete
[35270] Fix | Delete
// Used to count the number of open modals.
[35271] Fix | Delete
[35272] Fix | Delete
var modal_parentElement,
[35273] Fix | Delete
openModalCount = 0;
[35274] Fix | Delete
[35275] Fix | Delete
var modal_Modal = /*#__PURE__*/function (_Component) {
[35276] Fix | Delete
Object(inherits["a" /* default */])(Modal, _Component);
[35277] Fix | Delete
[35278] Fix | Delete
var _super = modal_createSuper(Modal);
[35279] Fix | Delete
[35280] Fix | Delete
function Modal(props) {
[35281] Fix | Delete
var _this;
[35282] Fix | Delete
[35283] Fix | Delete
Object(classCallCheck["a" /* default */])(this, Modal);
[35284] Fix | Delete
[35285] Fix | Delete
_this = _super.call(this, props);
[35286] Fix | Delete
[35287] Fix | Delete
_this.prepareDOM();
[35288] Fix | Delete
[35289] Fix | Delete
return _this;
[35290] Fix | Delete
}
[35291] Fix | Delete
/**
[35292] Fix | Delete
* Appends the modal's node to the DOM, so the portal can render the
[35293] Fix | Delete
* modal in it. Also calls the openFirstModal when this is the first modal to be
[35294] Fix | Delete
* opened.
[35295] Fix | Delete
*/
[35296] Fix | Delete
[35297] Fix | Delete
[35298] Fix | Delete
Object(createClass["a" /* default */])(Modal, [{
[35299] Fix | Delete
key: "componentDidMount",
[35300] Fix | Delete
value: function componentDidMount() {
[35301] Fix | Delete
openModalCount++;
[35302] Fix | Delete
[35303] Fix | Delete
if (openModalCount === 1) {
[35304] Fix | Delete
this.openFirstModal();
[35305] Fix | Delete
}
[35306] Fix | Delete
}
[35307] Fix | Delete
/**
[35308] Fix | Delete
* Removes the modal's node from the DOM. Also calls closeLastModal when this is
[35309] Fix | Delete
* the last modal to be closed.
[35310] Fix | Delete
*/
[35311] Fix | Delete
[35312] Fix | Delete
}, {
[35313] Fix | Delete
key: "componentWillUnmount",
[35314] Fix | Delete
value: function componentWillUnmount() {
[35315] Fix | Delete
openModalCount--;
[35316] Fix | Delete
[35317] Fix | Delete
if (openModalCount === 0) {
[35318] Fix | Delete
this.closeLastModal();
[35319] Fix | Delete
}
[35320] Fix | Delete
[35321] Fix | Delete
this.cleanDOM();
[35322] Fix | Delete
}
[35323] Fix | Delete
/**
[35324] Fix | Delete
* Prepares the DOM for the modals to be rendered.
[35325] Fix | Delete
*
[35326] Fix | Delete
* Every modal is mounted in a separate div appended to a parent div
[35327] Fix | Delete
* that is appended to the document body.
[35328] Fix | Delete
*
[35329] Fix | Delete
* The parent div will be created if it does not yet exist, and the
[35330] Fix | Delete
* separate div for this specific modal will be appended to that.
[35331] Fix | Delete
*/
[35332] Fix | Delete
[35333] Fix | Delete
}, {
[35334] Fix | Delete
key: "prepareDOM",
[35335] Fix | Delete
value: function prepareDOM() {
[35336] Fix | Delete
if (!modal_parentElement) {
[35337] Fix | Delete
modal_parentElement = document.createElement('div');
[35338] Fix | Delete
document.body.appendChild(modal_parentElement);
[35339] Fix | Delete
}
[35340] Fix | Delete
[35341] Fix | Delete
this.node = document.createElement('div');
[35342] Fix | Delete
modal_parentElement.appendChild(this.node);
[35343] Fix | Delete
}
[35344] Fix | Delete
/**
[35345] Fix | Delete
* Removes the specific mounting point for this modal from the DOM.
[35346] Fix | Delete
*/
[35347] Fix | Delete
[35348] Fix | Delete
}, {
[35349] Fix | Delete
key: "cleanDOM",
[35350] Fix | Delete
value: function cleanDOM() {
[35351] Fix | Delete
modal_parentElement.removeChild(this.node);
[35352] Fix | Delete
}
[35353] Fix | Delete
/**
[35354] Fix | Delete
* Prepares the DOM for this modal and any additional modal to be mounted.
[35355] Fix | Delete
*
[35356] Fix | Delete
* It appends an additional div to the body for the modals to be rendered in,
[35357] Fix | Delete
* it hides any other elements from screen-readers and adds an additional class
[35358] Fix | Delete
* to the body to prevent scrolling while the modal is open.
[35359] Fix | Delete
*/
[35360] Fix | Delete
[35361] Fix | Delete
}, {
[35362] Fix | Delete
key: "openFirstModal",
[35363] Fix | Delete
value: function openFirstModal() {
[35364] Fix | Delete
hideApp(modal_parentElement);
[35365] Fix | Delete
document.body.classList.add(this.props.bodyOpenClassName);
[35366] Fix | Delete
}
[35367] Fix | Delete
/**
[35368] Fix | Delete
* Cleans up the DOM after the last modal is closed and makes the app available
[35369] Fix | Delete
* for screen-readers again.
[35370] Fix | Delete
*/
[35371] Fix | Delete
[35372] Fix | Delete
}, {
[35373] Fix | Delete
key: "closeLastModal",
[35374] Fix | Delete
value: function closeLastModal() {
[35375] Fix | Delete
document.body.classList.remove(this.props.bodyOpenClassName);
[35376] Fix | Delete
showApp();
[35377] Fix | Delete
}
[35378] Fix | Delete
/**
[35379] Fix | Delete
* Renders the modal.
[35380] Fix | Delete
*
[35381] Fix | Delete
* @return {WPElement} The modal element.
[35382] Fix | Delete
*/
[35383] Fix | Delete
[35384] Fix | Delete
}, {
[35385] Fix | Delete
key: "render",
[35386] Fix | Delete
value: function render() {
[35387] Fix | Delete
var _this$props = this.props,
[35388] Fix | Delete
onRequestClose = _this$props.onRequestClose,
[35389] Fix | Delete
title = _this$props.title,
[35390] Fix | Delete
icon = _this$props.icon,
[35391] Fix | Delete
closeButtonLabel = _this$props.closeButtonLabel,
[35392] Fix | Delete
children = _this$props.children,
[35393] Fix | Delete
aria = _this$props.aria,
[35394] Fix | Delete
instanceId = _this$props.instanceId,
[35395] Fix | Delete
isDismissible = _this$props.isDismissible,
[35396] Fix | Delete
isDismissable = _this$props.isDismissable,
[35397] Fix | Delete
otherProps = Object(objectWithoutProperties["a" /* default */])(_this$props, ["onRequestClose", "title", "icon", "closeButtonLabel", "children", "aria", "instanceId", "isDismissible", "isDismissable"]);
[35398] Fix | Delete
[35399] Fix | Delete
var headingId = aria.labelledby || "components-modal-header-".concat(instanceId);
[35400] Fix | Delete
[35401] Fix | Delete
if (isDismissable) {
[35402] Fix | Delete
external_wp_deprecated_default()('isDismissable prop of the Modal component', {
[35403] Fix | Delete
alternative: 'isDismissible prop (renamed) of the Modal component'
[35404] Fix | Delete
});
[35405] Fix | Delete
} // Disable reason: this stops mouse events from triggering tooltips and
[35406] Fix | Delete
// other elements underneath the modal overlay.
[35407] Fix | Delete
[35408] Fix | Delete
[35409] Fix | Delete
return Object(external_wp_element_["createPortal"])(Object(external_wp_element_["createElement"])(modal_frame, Object(esm_extends["a" /* default */])({
[35410] Fix | Delete
onRequestClose: onRequestClose,
[35411] Fix | Delete
aria: {
[35412] Fix | Delete
labelledby: title ? headingId : null,
[35413] Fix | Delete
describedby: aria.describedby
[35414] Fix | Delete
}
[35415] Fix | Delete
}, otherProps), Object(external_wp_element_["createElement"])("div", {
[35416] Fix | Delete
className: 'components-modal__content',
[35417] Fix | Delete
role: "document"
[35418] Fix | Delete
}, Object(external_wp_element_["createElement"])(modal_header, {
[35419] Fix | Delete
closeLabel: closeButtonLabel,
[35420] Fix | Delete
headingId: headingId,
[35421] Fix | Delete
icon: icon,
[35422] Fix | Delete
isDismissible: isDismissible || isDismissable,
[35423] Fix | Delete
onClose: onRequestClose,
[35424] Fix | Delete
title: title
[35425] Fix | Delete
}), children)), this.node);
[35426] Fix | Delete
}
[35427] Fix | Delete
}]);
[35428] Fix | Delete
[35429] Fix | Delete
return Modal;
[35430] Fix | Delete
}(external_wp_element_["Component"]);
[35431] Fix | Delete
[35432] Fix | Delete
modal_Modal.defaultProps = {
[35433] Fix | Delete
bodyOpenClassName: 'modal-open',
[35434] Fix | Delete
role: 'dialog',
[35435] Fix | Delete
title: null,
[35436] Fix | Delete
focusOnMount: true,
[35437] Fix | Delete
shouldCloseOnEsc: true,
[35438] Fix | Delete
shouldCloseOnClickOutside: true,
[35439] Fix | Delete
isDismissible: true,
[35440] Fix | Delete
[35441] Fix | Delete
/* accessibility */
[35442] Fix | Delete
aria: {
[35443] Fix | Delete
labelledby: null,
[35444] Fix | Delete
describedby: null
[35445] Fix | Delete
}
[35446] Fix | Delete
};
[35447] Fix | Delete
/* harmony default export */ var modal = (Object(external_wp_compose_["withInstanceId"])(modal_Modal));
[35448] Fix | Delete
[35449] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/guide/icons.js
[35450] Fix | Delete
[35451] Fix | Delete
[35452] Fix | Delete
/**
[35453] Fix | Delete
* WordPress dependencies
[35454] Fix | Delete
*/
[35455] Fix | Delete
[35456] Fix | Delete
var icons_PageControlIcon = function PageControlIcon(_ref) {
[35457] Fix | Delete
var isSelected = _ref.isSelected;
[35458] Fix | Delete
return Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
[35459] Fix | Delete
width: "8",
[35460] Fix | Delete
height: "8",
[35461] Fix | Delete
fill: "none",
[35462] Fix | Delete
xmlns: "http://www.w3.org/2000/svg"
[35463] Fix | Delete
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Circle"], {
[35464] Fix | Delete
cx: "4",
[35465] Fix | Delete
cy: "4",
[35466] Fix | Delete
r: "4",
[35467] Fix | Delete
fill: isSelected ? '#419ECD' : '#E1E3E6'
[35468] Fix | Delete
}));
[35469] Fix | Delete
};
[35470] Fix | Delete
[35471] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/guide/page-control.js
[35472] Fix | Delete
[35473] Fix | Delete
[35474] Fix | Delete
/**
[35475] Fix | Delete
* External dependencies
[35476] Fix | Delete
*/
[35477] Fix | Delete
[35478] Fix | Delete
/**
[35479] Fix | Delete
* WordPress dependencies
[35480] Fix | Delete
*/
[35481] Fix | Delete
[35482] Fix | Delete
[35483] Fix | Delete
/**
[35484] Fix | Delete
* Internal dependencies
[35485] Fix | Delete
*/
[35486] Fix | Delete
[35487] Fix | Delete
[35488] Fix | Delete
[35489] Fix | Delete
function PageControl(_ref) {
[35490] Fix | Delete
var currentPage = _ref.currentPage,
[35491] Fix | Delete
numberOfPages = _ref.numberOfPages,
[35492] Fix | Delete
setCurrentPage = _ref.setCurrentPage;
[35493] Fix | Delete
return Object(external_wp_element_["createElement"])("ul", {
[35494] Fix | Delete
className: "components-guide__page-control",
[35495] Fix | Delete
"aria-label": Object(external_wp_i18n_["__"])('Guide controls')
[35496] Fix | Delete
}, Object(external_lodash_["times"])(numberOfPages, function (page) {
[35497] Fix | Delete
return Object(external_wp_element_["createElement"])("li", {
[35498] Fix | Delete
key: page // Set aria-current="step" on the active page, see https://www.w3.org/TR/wai-aria-1.1/#aria-current
[35499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function