Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: components.js
*/
[33500] Fix | Delete
[33501] Fix | Delete
[33502] Fix | Delete
[33503] Fix | Delete
[33504] Fix | Delete
/**
[33505] Fix | Delete
* Internal dependencies
[33506] Fix | Delete
*/
[33507] Fix | Delete
[33508] Fix | Delete
const uuidCache = new Set();
[33509] Fix | Delete
// Use a weak map so that when the container is detached it's automatically
[33510] Fix | Delete
// dereferenced to avoid memory leak.
[33511] Fix | Delete
const containerCacheMap = new WeakMap();
[33512] Fix | Delete
const memoizedCreateCacheWithContainer = container => {
[33513] Fix | Delete
if (containerCacheMap.has(container)) {
[33514] Fix | Delete
return containerCacheMap.get(container);
[33515] Fix | Delete
}
[33516] Fix | Delete
[33517] Fix | Delete
// Emotion only accepts alphabetical and hyphenated keys so we just
[33518] Fix | Delete
// strip the numbers from the UUID. It _should_ be fine.
[33519] Fix | Delete
let key = esm_browser_v4().replace(/[0-9]/g, '');
[33520] Fix | Delete
while (uuidCache.has(key)) {
[33521] Fix | Delete
key = esm_browser_v4().replace(/[0-9]/g, '');
[33522] Fix | Delete
}
[33523] Fix | Delete
uuidCache.add(key);
[33524] Fix | Delete
const cache = emotion_cache_browser_esm({
[33525] Fix | Delete
container,
[33526] Fix | Delete
key
[33527] Fix | Delete
});
[33528] Fix | Delete
containerCacheMap.set(container, cache);
[33529] Fix | Delete
return cache;
[33530] Fix | Delete
};
[33531] Fix | Delete
function StyleProvider(props) {
[33532] Fix | Delete
const {
[33533] Fix | Delete
children,
[33534] Fix | Delete
document
[33535] Fix | Delete
} = props;
[33536] Fix | Delete
if (!document) {
[33537] Fix | Delete
return null;
[33538] Fix | Delete
}
[33539] Fix | Delete
const cache = memoizedCreateCacheWithContainer(document.head);
[33540] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CacheProvider, {
[33541] Fix | Delete
value: cache,
[33542] Fix | Delete
children: children
[33543] Fix | Delete
});
[33544] Fix | Delete
}
[33545] Fix | Delete
/* harmony default export */ const style_provider = (StyleProvider);
[33546] Fix | Delete
[33547] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/fill.js
[33548] Fix | Delete
/**
[33549] Fix | Delete
* WordPress dependencies
[33550] Fix | Delete
*/
[33551] Fix | Delete
[33552] Fix | Delete
[33553] Fix | Delete
/**
[33554] Fix | Delete
* Internal dependencies
[33555] Fix | Delete
*/
[33556] Fix | Delete
[33557] Fix | Delete
[33558] Fix | Delete
[33559] Fix | Delete
function fill_useForceUpdate() {
[33560] Fix | Delete
const [, setState] = (0,external_wp_element_namespaceObject.useState)({});
[33561] Fix | Delete
const mounted = (0,external_wp_element_namespaceObject.useRef)(true);
[33562] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[33563] Fix | Delete
mounted.current = true;
[33564] Fix | Delete
return () => {
[33565] Fix | Delete
mounted.current = false;
[33566] Fix | Delete
};
[33567] Fix | Delete
}, []);
[33568] Fix | Delete
return () => {
[33569] Fix | Delete
if (mounted.current) {
[33570] Fix | Delete
setState({});
[33571] Fix | Delete
}
[33572] Fix | Delete
};
[33573] Fix | Delete
}
[33574] Fix | Delete
function fill_Fill(props) {
[33575] Fix | Delete
var _slot$fillProps;
[33576] Fix | Delete
const {
[33577] Fix | Delete
name,
[33578] Fix | Delete
children
[33579] Fix | Delete
} = props;
[33580] Fix | Delete
const {
[33581] Fix | Delete
registerFill,
[33582] Fix | Delete
unregisterFill,
[33583] Fix | Delete
...slot
[33584] Fix | Delete
} = useSlot(name);
[33585] Fix | Delete
const rerender = fill_useForceUpdate();
[33586] Fix | Delete
const ref = (0,external_wp_element_namespaceObject.useRef)({
[33587] Fix | Delete
rerender
[33588] Fix | Delete
});
[33589] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[33590] Fix | Delete
// We register fills so we can keep track of their existence.
[33591] Fix | Delete
// Some Slot implementations need to know if there're already fills
[33592] Fix | Delete
// registered so they can choose to render themselves or not.
[33593] Fix | Delete
registerFill(ref);
[33594] Fix | Delete
return () => {
[33595] Fix | Delete
unregisterFill(ref);
[33596] Fix | Delete
};
[33597] Fix | Delete
}, [registerFill, unregisterFill]);
[33598] Fix | Delete
if (!slot.ref || !slot.ref.current) {
[33599] Fix | Delete
return null;
[33600] Fix | Delete
}
[33601] Fix | Delete
[33602] Fix | Delete
// When using a `Fill`, the `children` will be rendered in the document of the
[33603] Fix | Delete
// `Slot`. This means that we need to wrap the `children` in a `StyleProvider`
[33604] Fix | Delete
// to make sure we're referencing the right document/iframe (instead of the
[33605] Fix | Delete
// context of the `Fill`'s parent).
[33606] Fix | Delete
const wrappedChildren = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(style_provider, {
[33607] Fix | Delete
document: slot.ref.current.ownerDocument,
[33608] Fix | Delete
children: typeof children === 'function' ? children((_slot$fillProps = slot.fillProps) !== null && _slot$fillProps !== void 0 ? _slot$fillProps : {}) : children
[33609] Fix | Delete
});
[33610] Fix | Delete
return (0,external_wp_element_namespaceObject.createPortal)(wrappedChildren, slot.ref.current);
[33611] Fix | Delete
}
[33612] Fix | Delete
[33613] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot.js
[33614] Fix | Delete
/**
[33615] Fix | Delete
* External dependencies
[33616] Fix | Delete
*/
[33617] Fix | Delete
[33618] Fix | Delete
/**
[33619] Fix | Delete
* WordPress dependencies
[33620] Fix | Delete
*/
[33621] Fix | Delete
[33622] Fix | Delete
[33623] Fix | Delete
[33624] Fix | Delete
/**
[33625] Fix | Delete
* Internal dependencies
[33626] Fix | Delete
*/
[33627] Fix | Delete
[33628] Fix | Delete
[33629] Fix | Delete
[33630] Fix | Delete
function slot_Slot(props, forwardedRef) {
[33631] Fix | Delete
const {
[33632] Fix | Delete
name,
[33633] Fix | Delete
fillProps = {},
[33634] Fix | Delete
as,
[33635] Fix | Delete
// `children` is not allowed. However, if it is passed,
[33636] Fix | Delete
// it will be displayed as is, so remove `children`.
[33637] Fix | Delete
// @ts-ignore
[33638] Fix | Delete
children,
[33639] Fix | Delete
...restProps
[33640] Fix | Delete
} = props;
[33641] Fix | Delete
const {
[33642] Fix | Delete
registerSlot,
[33643] Fix | Delete
unregisterSlot,
[33644] Fix | Delete
...registry
[33645] Fix | Delete
} = (0,external_wp_element_namespaceObject.useContext)(slot_fill_context);
[33646] Fix | Delete
const ref = (0,external_wp_element_namespaceObject.useRef)(null);
[33647] Fix | Delete
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
[33648] Fix | Delete
registerSlot(name, ref, fillProps);
[33649] Fix | Delete
return () => {
[33650] Fix | Delete
unregisterSlot(name, ref);
[33651] Fix | Delete
};
[33652] Fix | Delete
// Ignore reason: We don't want to unregister and register the slot whenever
[33653] Fix | Delete
// `fillProps` change, which would cause the fill to be re-mounted. Instead,
[33654] Fix | Delete
// we can just update the slot (see hook below).
[33655] Fix | Delete
// For more context, see https://github.com/WordPress/gutenberg/pull/44403#discussion_r994415973
[33656] Fix | Delete
// eslint-disable-next-line react-hooks/exhaustive-deps
[33657] Fix | Delete
}, [registerSlot, unregisterSlot, name]);
[33658] Fix | Delete
// fillProps may be an update that interacts with the layout, so we
[33659] Fix | Delete
// useLayoutEffect.
[33660] Fix | Delete
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
[33661] Fix | Delete
registry.updateSlot(name, fillProps);
[33662] Fix | Delete
});
[33663] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
[33664] Fix | Delete
as: as,
[33665] Fix | Delete
ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([forwardedRef, ref]),
[33666] Fix | Delete
...restProps
[33667] Fix | Delete
});
[33668] Fix | Delete
}
[33669] Fix | Delete
/* harmony default export */ const bubbles_virtually_slot = ((0,external_wp_element_namespaceObject.forwardRef)(slot_Slot));
[33670] Fix | Delete
[33671] Fix | Delete
;// CONCATENATED MODULE: external ["wp","isShallowEqual"]
[33672] Fix | Delete
const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"];
[33673] Fix | Delete
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject);
[33674] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js
[33675] Fix | Delete
/**
[33676] Fix | Delete
* WordPress dependencies
[33677] Fix | Delete
*/
[33678] Fix | Delete
[33679] Fix | Delete
[33680] Fix | Delete
[33681] Fix | Delete
[33682] Fix | Delete
/**
[33683] Fix | Delete
* Internal dependencies
[33684] Fix | Delete
*/
[33685] Fix | Delete
[33686] Fix | Delete
[33687] Fix | Delete
function createSlotRegistry() {
[33688] Fix | Delete
const slots = (0,external_wp_compose_namespaceObject.observableMap)();
[33689] Fix | Delete
const fills = (0,external_wp_compose_namespaceObject.observableMap)();
[33690] Fix | Delete
const registerSlot = (name, ref, fillProps) => {
[33691] Fix | Delete
const slot = slots.get(name);
[33692] Fix | Delete
slots.set(name, {
[33693] Fix | Delete
...slot,
[33694] Fix | Delete
ref: ref || slot?.ref,
[33695] Fix | Delete
fillProps: fillProps || slot?.fillProps || {}
[33696] Fix | Delete
});
[33697] Fix | Delete
};
[33698] Fix | Delete
const unregisterSlot = (name, ref) => {
[33699] Fix | Delete
// Make sure we're not unregistering a slot registered by another element
[33700] Fix | Delete
// See https://github.com/WordPress/gutenberg/pull/19242#issuecomment-590295412
[33701] Fix | Delete
if (slots.get(name)?.ref === ref) {
[33702] Fix | Delete
slots.delete(name);
[33703] Fix | Delete
}
[33704] Fix | Delete
};
[33705] Fix | Delete
const updateSlot = (name, fillProps) => {
[33706] Fix | Delete
const slot = slots.get(name);
[33707] Fix | Delete
if (!slot) {
[33708] Fix | Delete
return;
[33709] Fix | Delete
}
[33710] Fix | Delete
if (external_wp_isShallowEqual_default()(slot.fillProps, fillProps)) {
[33711] Fix | Delete
return;
[33712] Fix | Delete
}
[33713] Fix | Delete
slot.fillProps = fillProps;
[33714] Fix | Delete
const slotFills = fills.get(name);
[33715] Fix | Delete
if (slotFills) {
[33716] Fix | Delete
// Force update fills.
[33717] Fix | Delete
slotFills.forEach(fill => fill.current.rerender());
[33718] Fix | Delete
}
[33719] Fix | Delete
};
[33720] Fix | Delete
const registerFill = (name, ref) => {
[33721] Fix | Delete
fills.set(name, [...(fills.get(name) || []), ref]);
[33722] Fix | Delete
};
[33723] Fix | Delete
const unregisterFill = (name, ref) => {
[33724] Fix | Delete
const fillsForName = fills.get(name);
[33725] Fix | Delete
if (!fillsForName) {
[33726] Fix | Delete
return;
[33727] Fix | Delete
}
[33728] Fix | Delete
fills.set(name, fillsForName.filter(fillRef => fillRef !== ref));
[33729] Fix | Delete
};
[33730] Fix | Delete
return {
[33731] Fix | Delete
slots,
[33732] Fix | Delete
fills,
[33733] Fix | Delete
registerSlot,
[33734] Fix | Delete
updateSlot,
[33735] Fix | Delete
unregisterSlot,
[33736] Fix | Delete
registerFill,
[33737] Fix | Delete
unregisterFill
[33738] Fix | Delete
};
[33739] Fix | Delete
}
[33740] Fix | Delete
function SlotFillProvider({
[33741] Fix | Delete
children
[33742] Fix | Delete
}) {
[33743] Fix | Delete
const [registry] = (0,external_wp_element_namespaceObject.useState)(createSlotRegistry);
[33744] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_context.Provider, {
[33745] Fix | Delete
value: registry,
[33746] Fix | Delete
children: children
[33747] Fix | Delete
});
[33748] Fix | Delete
}
[33749] Fix | Delete
[33750] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/provider.js
[33751] Fix | Delete
/**
[33752] Fix | Delete
* WordPress dependencies
[33753] Fix | Delete
*/
[33754] Fix | Delete
[33755] Fix | Delete
[33756] Fix | Delete
[33757] Fix | Delete
/**
[33758] Fix | Delete
* Internal dependencies
[33759] Fix | Delete
*/
[33760] Fix | Delete
[33761] Fix | Delete
[33762] Fix | Delete
function provider_createSlotRegistry() {
[33763] Fix | Delete
const slots = {};
[33764] Fix | Delete
const fills = {};
[33765] Fix | Delete
let listeners = [];
[33766] Fix | Delete
function registerSlot(name, slot) {
[33767] Fix | Delete
const previousSlot = slots[name];
[33768] Fix | Delete
slots[name] = slot;
[33769] Fix | Delete
triggerListeners();
[33770] Fix | Delete
[33771] Fix | Delete
// Sometimes the fills are registered after the initial render of slot
[33772] Fix | Delete
// But before the registerSlot call, we need to rerender the slot.
[33773] Fix | Delete
forceUpdateSlot(name);
[33774] Fix | Delete
[33775] Fix | Delete
// If a new instance of a slot is being mounted while another with the
[33776] Fix | Delete
// same name exists, force its update _after_ the new slot has been
[33777] Fix | Delete
// assigned into the instance, such that its own rendering of children
[33778] Fix | Delete
// will be empty (the new Slot will subsume all fills for this name).
[33779] Fix | Delete
if (previousSlot) {
[33780] Fix | Delete
previousSlot.forceUpdate();
[33781] Fix | Delete
}
[33782] Fix | Delete
}
[33783] Fix | Delete
function registerFill(name, instance) {
[33784] Fix | Delete
fills[name] = [...(fills[name] || []), instance];
[33785] Fix | Delete
forceUpdateSlot(name);
[33786] Fix | Delete
}
[33787] Fix | Delete
function unregisterSlot(name, instance) {
[33788] Fix | Delete
// If a previous instance of a Slot by this name unmounts, do nothing,
[33789] Fix | Delete
// as the slot and its fills should only be removed for the current
[33790] Fix | Delete
// known instance.
[33791] Fix | Delete
if (slots[name] !== instance) {
[33792] Fix | Delete
return;
[33793] Fix | Delete
}
[33794] Fix | Delete
delete slots[name];
[33795] Fix | Delete
triggerListeners();
[33796] Fix | Delete
}
[33797] Fix | Delete
function unregisterFill(name, instance) {
[33798] Fix | Delete
var _fills$name$filter;
[33799] Fix | Delete
fills[name] = (_fills$name$filter = fills[name]?.filter(fill => fill !== instance)) !== null && _fills$name$filter !== void 0 ? _fills$name$filter : [];
[33800] Fix | Delete
forceUpdateSlot(name);
[33801] Fix | Delete
}
[33802] Fix | Delete
function getSlot(name) {
[33803] Fix | Delete
return slots[name];
[33804] Fix | Delete
}
[33805] Fix | Delete
function getFills(name, slotInstance) {
[33806] Fix | Delete
// Fills should only be returned for the current instance of the slot
[33807] Fix | Delete
// in which they occupy.
[33808] Fix | Delete
if (slots[name] !== slotInstance) {
[33809] Fix | Delete
return [];
[33810] Fix | Delete
}
[33811] Fix | Delete
return fills[name];
[33812] Fix | Delete
}
[33813] Fix | Delete
function forceUpdateSlot(name) {
[33814] Fix | Delete
const slot = getSlot(name);
[33815] Fix | Delete
if (slot) {
[33816] Fix | Delete
slot.forceUpdate();
[33817] Fix | Delete
}
[33818] Fix | Delete
}
[33819] Fix | Delete
function triggerListeners() {
[33820] Fix | Delete
listeners.forEach(listener => listener());
[33821] Fix | Delete
}
[33822] Fix | Delete
function subscribe(listener) {
[33823] Fix | Delete
listeners.push(listener);
[33824] Fix | Delete
return () => {
[33825] Fix | Delete
listeners = listeners.filter(l => l !== listener);
[33826] Fix | Delete
};
[33827] Fix | Delete
}
[33828] Fix | Delete
return {
[33829] Fix | Delete
registerSlot,
[33830] Fix | Delete
unregisterSlot,
[33831] Fix | Delete
registerFill,
[33832] Fix | Delete
unregisterFill,
[33833] Fix | Delete
getSlot,
[33834] Fix | Delete
getFills,
[33835] Fix | Delete
subscribe
[33836] Fix | Delete
};
[33837] Fix | Delete
}
[33838] Fix | Delete
function provider_SlotFillProvider({
[33839] Fix | Delete
children
[33840] Fix | Delete
}) {
[33841] Fix | Delete
const [contextValue] = (0,external_wp_element_namespaceObject.useState)(provider_createSlotRegistry);
[33842] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(context.Provider, {
[33843] Fix | Delete
value: contextValue,
[33844] Fix | Delete
children: children
[33845] Fix | Delete
});
[33846] Fix | Delete
}
[33847] Fix | Delete
/* harmony default export */ const provider = (provider_SlotFillProvider);
[33848] Fix | Delete
[33849] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/index.js
[33850] Fix | Delete
/**
[33851] Fix | Delete
* External dependencies
[33852] Fix | Delete
*/
[33853] Fix | Delete
[33854] Fix | Delete
/**
[33855] Fix | Delete
* WordPress dependencies
[33856] Fix | Delete
*/
[33857] Fix | Delete
[33858] Fix | Delete
[33859] Fix | Delete
/**
[33860] Fix | Delete
* Internal dependencies
[33861] Fix | Delete
*/
[33862] Fix | Delete
[33863] Fix | Delete
[33864] Fix | Delete
[33865] Fix | Delete
[33866] Fix | Delete
[33867] Fix | Delete
[33868] Fix | Delete
[33869] Fix | Delete
[33870] Fix | Delete
[33871] Fix | Delete
[33872] Fix | Delete
[33873] Fix | Delete
[33874] Fix | Delete
function slot_fill_Fill(props) {
[33875] Fix | Delete
// We're adding both Fills here so they can register themselves before
[33876] Fix | Delete
// their respective slot has been registered. Only the Fill that has a slot
[33877] Fix | Delete
// will render. The other one will return null.
[33878] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[33879] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Fill, {
[33880] Fix | Delete
...props
[33881] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(fill_Fill, {
[33882] Fix | Delete
...props
[33883] Fix | Delete
})]
[33884] Fix | Delete
});
[33885] Fix | Delete
}
[33886] Fix | Delete
function UnforwardedSlot(props, ref) {
[33887] Fix | Delete
const {
[33888] Fix | Delete
bubblesVirtually,
[33889] Fix | Delete
...restProps
[33890] Fix | Delete
} = props;
[33891] Fix | Delete
if (bubblesVirtually) {
[33892] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(bubbles_virtually_slot, {
[33893] Fix | Delete
...restProps,
[33894] Fix | Delete
ref: ref
[33895] Fix | Delete
});
[33896] Fix | Delete
}
[33897] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot, {
[33898] Fix | Delete
...restProps
[33899] Fix | Delete
});
[33900] Fix | Delete
}
[33901] Fix | Delete
const slot_fill_Slot = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedSlot);
[33902] Fix | Delete
function Provider({
[33903] Fix | Delete
children,
[33904] Fix | Delete
passthrough = false
[33905] Fix | Delete
}) {
[33906] Fix | Delete
const parent = (0,external_wp_element_namespaceObject.useContext)(slot_fill_context);
[33907] Fix | Delete
if (!parent.isDefault && passthrough) {
[33908] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[33909] Fix | Delete
children: children
[33910] Fix | Delete
});
[33911] Fix | Delete
}
[33912] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(provider, {
[33913] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SlotFillProvider, {
[33914] Fix | Delete
children: children
[33915] Fix | Delete
})
[33916] Fix | Delete
});
[33917] Fix | Delete
}
[33918] Fix | Delete
function createSlotFill(key) {
[33919] Fix | Delete
const baseName = typeof key === 'symbol' ? key.description : key;
[33920] Fix | Delete
const FillComponent = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_Fill, {
[33921] Fix | Delete
name: key,
[33922] Fix | Delete
...props
[33923] Fix | Delete
});
[33924] Fix | Delete
FillComponent.displayName = `${baseName}Fill`;
[33925] Fix | Delete
const SlotComponent = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_Slot, {
[33926] Fix | Delete
name: key,
[33927] Fix | Delete
...props
[33928] Fix | Delete
});
[33929] Fix | Delete
SlotComponent.displayName = `${baseName}Slot`;
[33930] Fix | Delete
SlotComponent.__unstableName = key;
[33931] Fix | Delete
return {
[33932] Fix | Delete
Fill: FillComponent,
[33933] Fix | Delete
Slot: SlotComponent
[33934] Fix | Delete
};
[33935] Fix | Delete
}
[33936] Fix | Delete
const createPrivateSlotFill = name => {
[33937] Fix | Delete
const privateKey = Symbol(name);
[33938] Fix | Delete
const privateSlotFill = createSlotFill(privateKey);
[33939] Fix | Delete
return {
[33940] Fix | Delete
privateKey,
[33941] Fix | Delete
...privateSlotFill
[33942] Fix | Delete
};
[33943] Fix | Delete
};
[33944] Fix | Delete
[33945] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/overlay-middlewares.js
[33946] Fix | Delete
/**
[33947] Fix | Delete
* External dependencies
[33948] Fix | Delete
*/
[33949] Fix | Delete
[33950] Fix | Delete
[33951] Fix | Delete
function overlayMiddlewares() {
[33952] Fix | Delete
return [{
[33953] Fix | Delete
name: 'overlay',
[33954] Fix | Delete
fn({
[33955] Fix | Delete
rects
[33956] Fix | Delete
}) {
[33957] Fix | Delete
return rects.reference;
[33958] Fix | Delete
}
[33959] Fix | Delete
}, floating_ui_dom_size({
[33960] Fix | Delete
apply({
[33961] Fix | Delete
rects,
[33962] Fix | Delete
elements
[33963] Fix | Delete
}) {
[33964] Fix | Delete
var _elements$floating;
[33965] Fix | Delete
const {
[33966] Fix | Delete
firstElementChild
[33967] Fix | Delete
} = (_elements$floating = elements.floating) !== null && _elements$floating !== void 0 ? _elements$floating : {};
[33968] Fix | Delete
[33969] Fix | Delete
// Only HTMLElement instances have the `style` property.
[33970] Fix | Delete
if (!(firstElementChild instanceof HTMLElement)) {
[33971] Fix | Delete
return;
[33972] Fix | Delete
}
[33973] Fix | Delete
[33974] Fix | Delete
// Reduce the height of the popover to the available space.
[33975] Fix | Delete
Object.assign(firstElementChild.style, {
[33976] Fix | Delete
width: `${rects.reference.width}px`,
[33977] Fix | Delete
height: `${rects.reference.height}px`
[33978] Fix | Delete
});
[33979] Fix | Delete
}
[33980] Fix | Delete
})];
[33981] Fix | Delete
}
[33982] Fix | Delete
[33983] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/index.js
[33984] Fix | Delete
/**
[33985] Fix | Delete
* External dependencies
[33986] Fix | Delete
*/
[33987] Fix | Delete
[33988] Fix | Delete
[33989] Fix | Delete
[33990] Fix | Delete
// eslint-disable-next-line no-restricted-imports
[33991] Fix | Delete
[33992] Fix | Delete
// eslint-disable-next-line no-restricted-imports
[33993] Fix | Delete
[33994] Fix | Delete
[33995] Fix | Delete
/**
[33996] Fix | Delete
* WordPress dependencies
[33997] Fix | Delete
*/
[33998] Fix | Delete
[33999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function