Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
[39500] Fix | Delete
[39501] Fix | Delete
/**
[39502] Fix | Delete
* External dependencies
[39503] Fix | Delete
*/
[39504] Fix | Delete
[39505] Fix | Delete
[39506] Fix | Delete
/**
[39507] Fix | Delete
* Internal dependencies
[39508] Fix | Delete
*/
[39509] Fix | Delete
[39510] Fix | Delete
[39511] Fix | Delete
[39512] Fix | Delete
function ResizableBox(_ref) {
[39513] Fix | Delete
var className = _ref.className,
[39514] Fix | Delete
children = _ref.children,
[39515] Fix | Delete
_ref$showHandle = _ref.showHandle,
[39516] Fix | Delete
showHandle = _ref$showHandle === void 0 ? true : _ref$showHandle,
[39517] Fix | Delete
_ref$__experimentalSh = _ref.__experimentalShowTooltip,
[39518] Fix | Delete
showTooltip = _ref$__experimentalSh === void 0 ? false : _ref$__experimentalSh,
[39519] Fix | Delete
_ref$__experimentalTo = _ref.__experimentalTooltipProps,
[39520] Fix | Delete
tooltipProps = _ref$__experimentalTo === void 0 ? {} : _ref$__experimentalTo,
[39521] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "children", "showHandle", "__experimentalShowTooltip", "__experimentalTooltipProps"]);
[39522] Fix | Delete
[39523] Fix | Delete
// Removes the inline styles in the drag handles.
[39524] Fix | Delete
var handleStylesOverrides = {
[39525] Fix | Delete
width: null,
[39526] Fix | Delete
height: null,
[39527] Fix | Delete
top: null,
[39528] Fix | Delete
right: null,
[39529] Fix | Delete
bottom: null,
[39530] Fix | Delete
left: null
[39531] Fix | Delete
};
[39532] Fix | Delete
var handleClassName = 'components-resizable-box__handle';
[39533] Fix | Delete
var sideHandleClassName = 'components-resizable-box__side-handle';
[39534] Fix | Delete
var cornerHandleClassName = 'components-resizable-box__corner-handle';
[39535] Fix | Delete
return Object(external_wp_element_["createElement"])(lib_Resizable, Object(esm_extends["a" /* default */])({
[39536] Fix | Delete
className: classnames_default()('components-resizable-box__container', showHandle && 'has-show-handle', className),
[39537] Fix | Delete
handleClasses: {
[39538] Fix | Delete
top: classnames_default()(handleClassName, sideHandleClassName, 'components-resizable-box__handle-top'),
[39539] Fix | Delete
right: classnames_default()(handleClassName, sideHandleClassName, 'components-resizable-box__handle-right'),
[39540] Fix | Delete
bottom: classnames_default()(handleClassName, sideHandleClassName, 'components-resizable-box__handle-bottom'),
[39541] Fix | Delete
left: classnames_default()(handleClassName, sideHandleClassName, 'components-resizable-box__handle-left'),
[39542] Fix | Delete
topLeft: classnames_default()(handleClassName, cornerHandleClassName, 'components-resizable-box__handle-top', 'components-resizable-box__handle-left'),
[39543] Fix | Delete
topRight: classnames_default()(handleClassName, cornerHandleClassName, 'components-resizable-box__handle-top', 'components-resizable-box__handle-right'),
[39544] Fix | Delete
bottomRight: classnames_default()(handleClassName, cornerHandleClassName, 'components-resizable-box__handle-bottom', 'components-resizable-box__handle-right'),
[39545] Fix | Delete
bottomLeft: classnames_default()(handleClassName, cornerHandleClassName, 'components-resizable-box__handle-bottom', 'components-resizable-box__handle-left')
[39546] Fix | Delete
},
[39547] Fix | Delete
handleStyles: {
[39548] Fix | Delete
top: handleStylesOverrides,
[39549] Fix | Delete
right: handleStylesOverrides,
[39550] Fix | Delete
bottom: handleStylesOverrides,
[39551] Fix | Delete
left: handleStylesOverrides,
[39552] Fix | Delete
topLeft: handleStylesOverrides,
[39553] Fix | Delete
topRight: handleStylesOverrides,
[39554] Fix | Delete
bottomRight: handleStylesOverrides,
[39555] Fix | Delete
bottomLeft: handleStylesOverrides
[39556] Fix | Delete
}
[39557] Fix | Delete
}, props), children, showTooltip && Object(external_wp_element_["createElement"])(resize_tooltip, tooltipProps));
[39558] Fix | Delete
}
[39559] Fix | Delete
[39560] Fix | Delete
/* harmony default export */ var resizable_box = (ResizableBox);
[39561] Fix | Delete
[39562] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/responsive-wrapper/index.js
[39563] Fix | Delete
[39564] Fix | Delete
[39565] Fix | Delete
[39566] Fix | Delete
/**
[39567] Fix | Delete
* External dependencies
[39568] Fix | Delete
*/
[39569] Fix | Delete
[39570] Fix | Delete
/**
[39571] Fix | Delete
* WordPress dependencies
[39572] Fix | Delete
*/
[39573] Fix | Delete
[39574] Fix | Delete
[39575] Fix | Delete
[39576] Fix | Delete
[39577] Fix | Delete
function ResponsiveWrapper(_ref) {
[39578] Fix | Delete
var naturalWidth = _ref.naturalWidth,
[39579] Fix | Delete
naturalHeight = _ref.naturalHeight,
[39580] Fix | Delete
children = _ref.children,
[39581] Fix | Delete
_ref$isInline = _ref.isInline,
[39582] Fix | Delete
isInline = _ref$isInline === void 0 ? false : _ref$isInline;
[39583] Fix | Delete
[39584] Fix | Delete
var _useResizeObserver = Object(external_wp_compose_["useResizeObserver"])(),
[39585] Fix | Delete
_useResizeObserver2 = Object(slicedToArray["a" /* default */])(_useResizeObserver, 2),
[39586] Fix | Delete
containerResizeListener = _useResizeObserver2[0],
[39587] Fix | Delete
containerWidth = _useResizeObserver2[1].width;
[39588] Fix | Delete
[39589] Fix | Delete
if (external_wp_element_["Children"].count(children) !== 1) {
[39590] Fix | Delete
return null;
[39591] Fix | Delete
}
[39592] Fix | Delete
[39593] Fix | Delete
var imageStyle = {
[39594] Fix | Delete
paddingBottom: naturalWidth < containerWidth ? naturalHeight : naturalHeight / naturalWidth * 100 + '%'
[39595] Fix | Delete
};
[39596] Fix | Delete
var TagName = isInline ? 'span' : 'div';
[39597] Fix | Delete
return Object(external_wp_element_["createElement"])(TagName, {
[39598] Fix | Delete
className: "components-responsive-wrapper"
[39599] Fix | Delete
}, containerResizeListener, Object(external_wp_element_["createElement"])(TagName, {
[39600] Fix | Delete
style: imageStyle
[39601] Fix | Delete
}), Object(external_wp_element_["cloneElement"])(children, {
[39602] Fix | Delete
className: classnames_default()('components-responsive-wrapper__content', children.props.className)
[39603] Fix | Delete
}));
[39604] Fix | Delete
}
[39605] Fix | Delete
[39606] Fix | Delete
/* harmony default export */ var responsive_wrapper = (ResponsiveWrapper);
[39607] Fix | Delete
[39608] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/sandbox/index.js
[39609] Fix | Delete
[39610] Fix | Delete
[39611] Fix | Delete
[39612] Fix | Delete
/**
[39613] Fix | Delete
* WordPress dependencies
[39614] Fix | Delete
*/
[39615] Fix | Delete
[39616] Fix | Delete
/**
[39617] Fix | Delete
* Internal dependencies
[39618] Fix | Delete
*/
[39619] Fix | Delete
[39620] Fix | Delete
[39621] Fix | Delete
var observeAndResizeJS = "\n\t( function() {\n\t\tvar observer;\n\n\t\tif ( ! window.MutationObserver || ! document.body || ! window.parent ) {\n\t\t\treturn;\n\t\t}\n\n\t\tfunction sendResize() {\n\t\t\tvar clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\twindow.parent.postMessage( {\n\t\t\t\taction: 'resize',\n\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\theight: clientBoundingRect.height,\n\t\t\t}, '*' );\n\t\t}\n\n\t\tobserver = new MutationObserver( sendResize );\n\t\tobserver.observe( document.body, {\n\t\t\tattributes: true,\n\t\t\tattributeOldValue: false,\n\t\t\tcharacterData: true,\n\t\t\tcharacterDataOldValue: false,\n\t\t\tchildList: true,\n\t\t\tsubtree: true\n\t\t} );\n\n\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t// the iframe root and interfere with our mechanism for\n\t\t// determining the unconstrained page bounds.\n\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\tif( ruleOrNode.style ) {\n\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function( style ) {\n\t\t\t\t\tif ( /^\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] ) ) {\n\t\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\n\t\tArray.prototype.forEach.call( document.querySelectorAll( '[style]' ), removeViewportStyles );\n\t\tArray.prototype.forEach.call( document.styleSheets, function( stylesheet ) {\n\t\t\tArray.prototype.forEach.call( stylesheet.cssRules || stylesheet.rules, removeViewportStyles );\n\t\t} );\n\n\t\tdocument.body.style.position = 'absolute';\n\t\tdocument.body.style.width = '100%';\n\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\tsendResize();\n\n\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\twindow.addEventListener( 'resize', sendResize, true );\n} )();";
[39622] Fix | Delete
var sandbox_style = "\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div,\n\tbody > div iframe {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n";
[39623] Fix | Delete
function Sandbox(_ref) {
[39624] Fix | Delete
var _ref$html = _ref.html,
[39625] Fix | Delete
html = _ref$html === void 0 ? '' : _ref$html,
[39626] Fix | Delete
_ref$title = _ref.title,
[39627] Fix | Delete
title = _ref$title === void 0 ? '' : _ref$title,
[39628] Fix | Delete
type = _ref.type,
[39629] Fix | Delete
_ref$styles = _ref.styles,
[39630] Fix | Delete
styles = _ref$styles === void 0 ? [] : _ref$styles,
[39631] Fix | Delete
_ref$scripts = _ref.scripts,
[39632] Fix | Delete
scripts = _ref$scripts === void 0 ? [] : _ref$scripts,
[39633] Fix | Delete
onFocus = _ref.onFocus;
[39634] Fix | Delete
var ref = Object(external_wp_element_["useRef"])();
[39635] Fix | Delete
[39636] Fix | Delete
var _useState = Object(external_wp_element_["useState"])(0),
[39637] Fix | Delete
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
[39638] Fix | Delete
width = _useState2[0],
[39639] Fix | Delete
setWidth = _useState2[1];
[39640] Fix | Delete
[39641] Fix | Delete
var _useState3 = Object(external_wp_element_["useState"])(0),
[39642] Fix | Delete
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
[39643] Fix | Delete
height = _useState4[0],
[39644] Fix | Delete
setHeight = _useState4[1];
[39645] Fix | Delete
[39646] Fix | Delete
function isFrameAccessible() {
[39647] Fix | Delete
try {
[39648] Fix | Delete
return !!ref.current.contentDocument.body;
[39649] Fix | Delete
} catch (e) {
[39650] Fix | Delete
return false;
[39651] Fix | Delete
}
[39652] Fix | Delete
}
[39653] Fix | Delete
[39654] Fix | Delete
function trySandbox() {
[39655] Fix | Delete
var forceRerender = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
[39656] Fix | Delete
[39657] Fix | Delete
if (!isFrameAccessible()) {
[39658] Fix | Delete
return;
[39659] Fix | Delete
}
[39660] Fix | Delete
[39661] Fix | Delete
var _ref$current = ref.current,
[39662] Fix | Delete
contentDocument = _ref$current.contentDocument,
[39663] Fix | Delete
ownerDocument = _ref$current.ownerDocument;
[39664] Fix | Delete
var body = contentDocument.body;
[39665] Fix | Delete
[39666] Fix | Delete
if (!forceRerender && null !== body.getAttribute('data-resizable-iframe-connected')) {
[39667] Fix | Delete
return;
[39668] Fix | Delete
} // put the html snippet into a html document, and then write it to the iframe's document
[39669] Fix | Delete
// we can use this in the future to inject custom styles or scripts.
[39670] Fix | Delete
// Scripts go into the body rather than the head, to support embedded content such as Instagram
[39671] Fix | Delete
// that expect the scripts to be part of the body.
[39672] Fix | Delete
[39673] Fix | Delete
[39674] Fix | Delete
var htmlDoc = Object(external_wp_element_["createElement"])("html", {
[39675] Fix | Delete
lang: ownerDocument.documentElement.lang,
[39676] Fix | Delete
className: type
[39677] Fix | Delete
}, Object(external_wp_element_["createElement"])("head", null, Object(external_wp_element_["createElement"])("title", null, title), Object(external_wp_element_["createElement"])("style", {
[39678] Fix | Delete
dangerouslySetInnerHTML: {
[39679] Fix | Delete
__html: sandbox_style
[39680] Fix | Delete
}
[39681] Fix | Delete
}), styles.map(function (rules, i) {
[39682] Fix | Delete
return Object(external_wp_element_["createElement"])("style", {
[39683] Fix | Delete
key: i,
[39684] Fix | Delete
dangerouslySetInnerHTML: {
[39685] Fix | Delete
__html: rules
[39686] Fix | Delete
}
[39687] Fix | Delete
});
[39688] Fix | Delete
})), Object(external_wp_element_["createElement"])("body", {
[39689] Fix | Delete
"data-resizable-iframe-connected": "data-resizable-iframe-connected",
[39690] Fix | Delete
className: type
[39691] Fix | Delete
}, Object(external_wp_element_["createElement"])("div", {
[39692] Fix | Delete
dangerouslySetInnerHTML: {
[39693] Fix | Delete
__html: html
[39694] Fix | Delete
}
[39695] Fix | Delete
}), Object(external_wp_element_["createElement"])("script", {
[39696] Fix | Delete
type: "text/javascript",
[39697] Fix | Delete
dangerouslySetInnerHTML: {
[39698] Fix | Delete
__html: observeAndResizeJS
[39699] Fix | Delete
}
[39700] Fix | Delete
}), scripts.map(function (src) {
[39701] Fix | Delete
return Object(external_wp_element_["createElement"])("script", {
[39702] Fix | Delete
key: src,
[39703] Fix | Delete
src: src
[39704] Fix | Delete
});
[39705] Fix | Delete
}))); // writing the document like this makes it act in the same way as if it was
[39706] Fix | Delete
// loaded over the network, so DOM creation and mutation, script execution, etc.
[39707] Fix | Delete
// all work as expected
[39708] Fix | Delete
[39709] Fix | Delete
contentDocument.open();
[39710] Fix | Delete
contentDocument.write('<!DOCTYPE html>' + Object(external_wp_element_["renderToString"])(htmlDoc));
[39711] Fix | Delete
contentDocument.close();
[39712] Fix | Delete
}
[39713] Fix | Delete
[39714] Fix | Delete
Object(external_wp_element_["useEffect"])(function () {
[39715] Fix | Delete
trySandbox();
[39716] Fix | Delete
[39717] Fix | Delete
function tryNoForceSandbox() {
[39718] Fix | Delete
trySandbox(false);
[39719] Fix | Delete
}
[39720] Fix | Delete
[39721] Fix | Delete
function checkMessageForResize(event) {
[39722] Fix | Delete
var iframe = ref.current; // Verify that the mounted element is the source of the message
[39723] Fix | Delete
[39724] Fix | Delete
if (!iframe || iframe.contentWindow !== event.source) {
[39725] Fix | Delete
return;
[39726] Fix | Delete
} // Attempt to parse the message data as JSON if passed as string
[39727] Fix | Delete
[39728] Fix | Delete
[39729] Fix | Delete
var data = event.data || {};
[39730] Fix | Delete
[39731] Fix | Delete
if ('string' === typeof data) {
[39732] Fix | Delete
try {
[39733] Fix | Delete
data = JSON.parse(data);
[39734] Fix | Delete
} catch (e) {}
[39735] Fix | Delete
} // Update the state only if the message is formatted as we expect,
[39736] Fix | Delete
// i.e. as an object with a 'resize' action.
[39737] Fix | Delete
[39738] Fix | Delete
[39739] Fix | Delete
if ('resize' !== data.action) {
[39740] Fix | Delete
return;
[39741] Fix | Delete
}
[39742] Fix | Delete
[39743] Fix | Delete
setWidth(data.width);
[39744] Fix | Delete
setHeight(data.height);
[39745] Fix | Delete
}
[39746] Fix | Delete
[39747] Fix | Delete
var ownerDocument = ref.current.ownerDocument;
[39748] Fix | Delete
var defaultView = ownerDocument.defaultView; // This used to be registered using <iframe onLoad={} />, but it made the iframe blank
[39749] Fix | Delete
// after reordering the containing block. See these two issues for more details:
[39750] Fix | Delete
// https://github.com/WordPress/gutenberg/issues/6146
[39751] Fix | Delete
// https://github.com/facebook/react/issues/18752
[39752] Fix | Delete
[39753] Fix | Delete
ref.current.addEventListener('load', tryNoForceSandbox, false);
[39754] Fix | Delete
defaultView.addEventListener('message', checkMessageForResize);
[39755] Fix | Delete
return function () {
[39756] Fix | Delete
ref.current.removeEventListener('load', tryNoForceSandbox, false);
[39757] Fix | Delete
defaultView.addEventListener('message', checkMessageForResize);
[39758] Fix | Delete
};
[39759] Fix | Delete
}, []);
[39760] Fix | Delete
Object(external_wp_element_["useEffect"])(function () {
[39761] Fix | Delete
trySandbox();
[39762] Fix | Delete
}, [title, type, styles, scripts]);
[39763] Fix | Delete
Object(external_wp_element_["useEffect"])(function () {
[39764] Fix | Delete
trySandbox(true);
[39765] Fix | Delete
}, [html]);
[39766] Fix | Delete
return Object(external_wp_element_["createElement"])(FocusableIframe, {
[39767] Fix | Delete
iframeRef: ref,
[39768] Fix | Delete
title: title,
[39769] Fix | Delete
className: "components-sandbox",
[39770] Fix | Delete
sandbox: "allow-scripts allow-same-origin allow-presentation",
[39771] Fix | Delete
onFocus: onFocus,
[39772] Fix | Delete
width: Math.ceil(width),
[39773] Fix | Delete
height: Math.ceil(height)
[39774] Fix | Delete
});
[39775] Fix | Delete
}
[39776] Fix | Delete
[39777] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/snackbar/index.js
[39778] Fix | Delete
var snackbar = __webpack_require__("iB/h");
[39779] Fix | Delete
[39780] Fix | Delete
// EXTERNAL MODULE: external "regeneratorRuntime"
[39781] Fix | Delete
var external_regeneratorRuntime_ = __webpack_require__("dvlR");
[39782] Fix | Delete
var external_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_regeneratorRuntime_);
[39783] Fix | Delete
[39784] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
[39785] Fix | Delete
var asyncToGenerator = __webpack_require__("HaE+");
[39786] Fix | Delete
[39787] Fix | Delete
// EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js
[39788] Fix | Delete
var web_cjs = __webpack_require__("ZO3Q");
[39789] Fix | Delete
[39790] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/snackbar/list.js
[39791] Fix | Delete
[39792] Fix | Delete
[39793] Fix | Delete
[39794] Fix | Delete
[39795] Fix | Delete
[39796] Fix | Delete
[39797] Fix | Delete
/**
[39798] Fix | Delete
* External dependencies
[39799] Fix | Delete
*/
[39800] Fix | Delete
[39801] Fix | Delete
[39802] Fix | Delete
[39803] Fix | Delete
/**
[39804] Fix | Delete
* WordPress dependencies
[39805] Fix | Delete
*/
[39806] Fix | Delete
[39807] Fix | Delete
[39808] Fix | Delete
[39809] Fix | Delete
/**
[39810] Fix | Delete
* Internal dependencies
[39811] Fix | Delete
*/
[39812] Fix | Delete
[39813] Fix | Delete
[39814] Fix | Delete
/**
[39815] Fix | Delete
* Renders a list of notices.
[39816] Fix | Delete
*
[39817] Fix | Delete
* @param {Object} $0 Props passed to the component.
[39818] Fix | Delete
* @param {Array} $0.notices Array of notices to render.
[39819] Fix | Delete
* @param {Function} $0.onRemove Function called when a notice should be removed / dismissed.
[39820] Fix | Delete
* @param {Object} $0.className Name of the class used by the component.
[39821] Fix | Delete
* @param {Object} $0.children Array of children to be rendered inside the notice list.
[39822] Fix | Delete
* @return {Object} The rendered notices list.
[39823] Fix | Delete
*/
[39824] Fix | Delete
[39825] Fix | Delete
function SnackbarList(_ref) {
[39826] Fix | Delete
var notices = _ref.notices,
[39827] Fix | Delete
className = _ref.className,
[39828] Fix | Delete
children = _ref.children,
[39829] Fix | Delete
_ref$onRemove = _ref.onRemove,
[39830] Fix | Delete
onRemove = _ref$onRemove === void 0 ? external_lodash_["noop"] : _ref$onRemove;
[39831] Fix | Delete
var isReducedMotion = Object(external_wp_compose_["useReducedMotion"])();
[39832] Fix | Delete
[39833] Fix | Delete
var _useState = Object(external_wp_element_["useState"])(function () {
[39834] Fix | Delete
return new WeakMap();
[39835] Fix | Delete
}),
[39836] Fix | Delete
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 1),
[39837] Fix | Delete
refMap = _useState2[0];
[39838] Fix | Delete
[39839] Fix | Delete
var transitions = Object(web_cjs["useTransition"])(notices, function (notice) {
[39840] Fix | Delete
return notice.id;
[39841] Fix | Delete
}, {
[39842] Fix | Delete
from: {
[39843] Fix | Delete
opacity: 0,
[39844] Fix | Delete
height: 0
[39845] Fix | Delete
},
[39846] Fix | Delete
enter: function enter(item) {
[39847] Fix | Delete
return /*#__PURE__*/function () {
[39848] Fix | Delete
var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_regeneratorRuntime_default.a.mark(function _callee(next) {
[39849] Fix | Delete
return external_regeneratorRuntime_default.a.wrap(function _callee$(_context) {
[39850] Fix | Delete
while (1) {
[39851] Fix | Delete
switch (_context.prev = _context.next) {
[39852] Fix | Delete
case 0:
[39853] Fix | Delete
_context.next = 2;
[39854] Fix | Delete
return next({
[39855] Fix | Delete
opacity: 1,
[39856] Fix | Delete
height: refMap.get(item).offsetHeight
[39857] Fix | Delete
});
[39858] Fix | Delete
[39859] Fix | Delete
case 2:
[39860] Fix | Delete
return _context.abrupt("return", _context.sent);
[39861] Fix | Delete
[39862] Fix | Delete
case 3:
[39863] Fix | Delete
case "end":
[39864] Fix | Delete
return _context.stop();
[39865] Fix | Delete
}
[39866] Fix | Delete
}
[39867] Fix | Delete
}, _callee);
[39868] Fix | Delete
}));
[39869] Fix | Delete
[39870] Fix | Delete
return function (_x) {
[39871] Fix | Delete
return _ref2.apply(this, arguments);
[39872] Fix | Delete
};
[39873] Fix | Delete
}();
[39874] Fix | Delete
},
[39875] Fix | Delete
leave: function leave() {
[39876] Fix | Delete
return /*#__PURE__*/function () {
[39877] Fix | Delete
var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_regeneratorRuntime_default.a.mark(function _callee2(next) {
[39878] Fix | Delete
return external_regeneratorRuntime_default.a.wrap(function _callee2$(_context2) {
[39879] Fix | Delete
while (1) {
[39880] Fix | Delete
switch (_context2.prev = _context2.next) {
[39881] Fix | Delete
case 0:
[39882] Fix | Delete
_context2.next = 2;
[39883] Fix | Delete
return next({
[39884] Fix | Delete
opacity: 0
[39885] Fix | Delete
});
[39886] Fix | Delete
[39887] Fix | Delete
case 2:
[39888] Fix | Delete
_context2.next = 4;
[39889] Fix | Delete
return next({
[39890] Fix | Delete
height: 0
[39891] Fix | Delete
});
[39892] Fix | Delete
[39893] Fix | Delete
case 4:
[39894] Fix | Delete
case "end":
[39895] Fix | Delete
return _context2.stop();
[39896] Fix | Delete
}
[39897] Fix | Delete
}
[39898] Fix | Delete
}, _callee2);
[39899] Fix | Delete
}));
[39900] Fix | Delete
[39901] Fix | Delete
return function (_x2) {
[39902] Fix | Delete
return _ref3.apply(this, arguments);
[39903] Fix | Delete
};
[39904] Fix | Delete
}();
[39905] Fix | Delete
},
[39906] Fix | Delete
immediate: isReducedMotion
[39907] Fix | Delete
});
[39908] Fix | Delete
className = classnames_default()('components-snackbar-list', className);
[39909] Fix | Delete
[39910] Fix | Delete
var removeNotice = function removeNotice(notice) {
[39911] Fix | Delete
return function () {
[39912] Fix | Delete
return onRemove(notice.id);
[39913] Fix | Delete
};
[39914] Fix | Delete
};
[39915] Fix | Delete
[39916] Fix | Delete
return Object(external_wp_element_["createElement"])("div", {
[39917] Fix | Delete
className: className
[39918] Fix | Delete
}, children, transitions.map(function (_ref4) {
[39919] Fix | Delete
var notice = _ref4.item,
[39920] Fix | Delete
key = _ref4.key,
[39921] Fix | Delete
style = _ref4.props;
[39922] Fix | Delete
return Object(external_wp_element_["createElement"])(web_cjs["animated"].div, {
[39923] Fix | Delete
key: key,
[39924] Fix | Delete
style: style
[39925] Fix | Delete
}, Object(external_wp_element_["createElement"])("div", {
[39926] Fix | Delete
className: "components-snackbar-list__notice-container",
[39927] Fix | Delete
ref: function ref(_ref5) {
[39928] Fix | Delete
return _ref5 && refMap.set(notice, _ref5);
[39929] Fix | Delete
}
[39930] Fix | Delete
}, Object(external_wp_element_["createElement"])(snackbar["a" /* default */], Object(esm_extends["a" /* default */])({}, Object(external_lodash_["omit"])(notice, ['content']), {
[39931] Fix | Delete
onRemove: removeNotice(notice)
[39932] Fix | Delete
}), notice.content)));
[39933] Fix | Delete
}));
[39934] Fix | Delete
}
[39935] Fix | Delete
[39936] Fix | Delete
/* harmony default export */ var snackbar_list = (SnackbarList);
[39937] Fix | Delete
[39938] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/config-values.js
[39939] Fix | Delete
/* harmony default export */ var config_values = ({
[39940] Fix | Delete
radiusBlockUi: '2px',
[39941] Fix | Delete
borderWidth: '1px',
[39942] Fix | Delete
borderWidthFocus: '1.5px',
[39943] Fix | Delete
borderWidthTab: '4px',
[39944] Fix | Delete
spinnerSize: '18px'
[39945] Fix | Delete
});
[39946] Fix | Delete
[39947] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/config.js
[39948] Fix | Delete
/**
[39949] Fix | Delete
* Internal dependencies
[39950] Fix | Delete
*/
[39951] Fix | Delete
[39952] Fix | Delete
/**
[39953] Fix | Delete
* @param {keyof CONFIG} name The variable name
[39954] Fix | Delete
* @return {string} The variable
[39955] Fix | Delete
*/
[39956] Fix | Delete
[39957] Fix | Delete
var config_config = function config(name) {
[39958] Fix | Delete
return config_values[name];
[39959] Fix | Delete
};
[39960] Fix | Delete
[39961] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/spinner/styles/spinner-styles.js
[39962] Fix | Delete
[39963] Fix | Delete
[39964] Fix | Delete
[39965] Fix | Delete
function spinner_styles_templateObject() {
[39966] Fix | Delete
var data = _taggedTemplateLiteral(["\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n"]);
[39967] Fix | Delete
[39968] Fix | Delete
spinner_styles_templateObject = function _templateObject() {
[39969] Fix | Delete
return data;
[39970] Fix | Delete
};
[39971] Fix | Delete
[39972] Fix | Delete
return data;
[39973] Fix | Delete
}
[39974] Fix | Delete
[39975] Fix | Delete
[39976] Fix | Delete
/**
[39977] Fix | Delete
* Internal dependencies
[39978] Fix | Delete
*/
[39979] Fix | Delete
[39980] Fix | Delete
[39981] Fix | Delete
var spinAnimation = Object(core_browser_esm["c" /* keyframes */])(spinner_styles_templateObject());
[39982] Fix | Delete
var topLeft = "calc( ( ".concat(config_config('spinnerSize'), " - ").concat(config_config('spinnerSize'), " * ( 2 / 3 ) ) / 2 )");
[39983] Fix | Delete
var StyledSpinner = styled_base_browser_esm("span", {
[39984] Fix | Delete
target: "e1s472tg0",
[39985] Fix | Delete
label: "StyledSpinner"
[39986] Fix | Delete
})("display:inline-block;background-color:", colors_color('gray.600'), ";width:", config_config('spinnerSize'), ";height:", config_config('spinnerSize'), ";opacity:0.7;margin:5px 11px 0;border-radius:100%;position:relative;&::before{content:'';position:absolute;background-color:", colors_color('white'), ";top:", topLeft, ";left:", topLeft, ";width:calc( ", config_config('spinnerSize'), " / 4.5 );height:calc( ", config_config('spinnerSize'), " / 4.5 );border-radius:100%;transform-origin:calc( ", config_config('spinnerSize'), " / 3 ) calc( ", config_config('spinnerSize'), " / 3 );animation:", spinAnimation, " 1s infinite linear;}" + ( true ? "" : undefined));
[39987] Fix | Delete
[39988] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/spinner/index.js
[39989] Fix | Delete
[39990] Fix | Delete
[39991] Fix | Delete
/**
[39992] Fix | Delete
* Internal dependencies
[39993] Fix | Delete
*/
[39994] Fix | Delete
[39995] Fix | Delete
function Spinner() {
[39996] Fix | Delete
return Object(external_wp_element_["createElement"])(StyledSpinner, {
[39997] Fix | Delete
className: "components-spinner"
[39998] Fix | Delete
});
[39999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function