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
}
[26500] Fix | Delete
[26501] Fix | Delete
[26502] Fix | Delete
[26503] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-force-update.mjs
[26504] Fix | Delete
[26505] Fix | Delete
[26506] Fix | Delete
[26507] Fix | Delete
[26508] Fix | Delete
function use_force_update_useForceUpdate() {
[26509] Fix | Delete
const isMounted = useIsMounted();
[26510] Fix | Delete
const [forcedRenderCount, setForcedRenderCount] = (0,external_React_.useState)(0);
[26511] Fix | Delete
const forceRender = (0,external_React_.useCallback)(() => {
[26512] Fix | Delete
isMounted.current && setForcedRenderCount(forcedRenderCount + 1);
[26513] Fix | Delete
}, [forcedRenderCount]);
[26514] Fix | Delete
/**
[26515] Fix | Delete
* Defer this to the end of the next animation frame in case there are multiple
[26516] Fix | Delete
* synchronous calls.
[26517] Fix | Delete
*/
[26518] Fix | Delete
const deferredForceRender = (0,external_React_.useCallback)(() => frame_frame.postRender(forceRender), [forceRender]);
[26519] Fix | Delete
return [deferredForceRender, forcedRenderCount];
[26520] Fix | Delete
}
[26521] Fix | Delete
[26522] Fix | Delete
[26523] Fix | Delete
[26524] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
[26525] Fix | Delete
[26526] Fix | Delete
[26527] Fix | Delete
[26528] Fix | Delete
[26529] Fix | Delete
[26530] Fix | Delete
/**
[26531] Fix | Delete
* Measurement functionality has to be within a separate component
[26532] Fix | Delete
* to leverage snapshot lifecycle.
[26533] Fix | Delete
*/
[26534] Fix | Delete
class PopChildMeasure extends external_React_.Component {
[26535] Fix | Delete
getSnapshotBeforeUpdate(prevProps) {
[26536] Fix | Delete
const element = this.props.childRef.current;
[26537] Fix | Delete
if (element && prevProps.isPresent && !this.props.isPresent) {
[26538] Fix | Delete
const size = this.props.sizeRef.current;
[26539] Fix | Delete
size.height = element.offsetHeight || 0;
[26540] Fix | Delete
size.width = element.offsetWidth || 0;
[26541] Fix | Delete
size.top = element.offsetTop;
[26542] Fix | Delete
size.left = element.offsetLeft;
[26543] Fix | Delete
}
[26544] Fix | Delete
return null;
[26545] Fix | Delete
}
[26546] Fix | Delete
/**
[26547] Fix | Delete
* Required with getSnapshotBeforeUpdate to stop React complaining.
[26548] Fix | Delete
*/
[26549] Fix | Delete
componentDidUpdate() { }
[26550] Fix | Delete
render() {
[26551] Fix | Delete
return this.props.children;
[26552] Fix | Delete
}
[26553] Fix | Delete
}
[26554] Fix | Delete
function PopChild({ children, isPresent }) {
[26555] Fix | Delete
const id = (0,external_React_.useId)();
[26556] Fix | Delete
const ref = (0,external_React_.useRef)(null);
[26557] Fix | Delete
const size = (0,external_React_.useRef)({
[26558] Fix | Delete
width: 0,
[26559] Fix | Delete
height: 0,
[26560] Fix | Delete
top: 0,
[26561] Fix | Delete
left: 0,
[26562] Fix | Delete
});
[26563] Fix | Delete
const { nonce } = (0,external_React_.useContext)(MotionConfigContext);
[26564] Fix | Delete
/**
[26565] Fix | Delete
* We create and inject a style block so we can apply this explicit
[26566] Fix | Delete
* sizing in a non-destructive manner by just deleting the style block.
[26567] Fix | Delete
*
[26568] Fix | Delete
* We can't apply size via render as the measurement happens
[26569] Fix | Delete
* in getSnapshotBeforeUpdate (post-render), likewise if we apply the
[26570] Fix | Delete
* styles directly on the DOM node, we might be overwriting
[26571] Fix | Delete
* styles set via the style prop.
[26572] Fix | Delete
*/
[26573] Fix | Delete
(0,external_React_.useInsertionEffect)(() => {
[26574] Fix | Delete
const { width, height, top, left } = size.current;
[26575] Fix | Delete
if (isPresent || !ref.current || !width || !height)
[26576] Fix | Delete
return;
[26577] Fix | Delete
ref.current.dataset.motionPopId = id;
[26578] Fix | Delete
const style = document.createElement("style");
[26579] Fix | Delete
if (nonce)
[26580] Fix | Delete
style.nonce = nonce;
[26581] Fix | Delete
document.head.appendChild(style);
[26582] Fix | Delete
if (style.sheet) {
[26583] Fix | Delete
style.sheet.insertRule(`
[26584] Fix | Delete
[data-motion-pop-id="${id}"] {
[26585] Fix | Delete
position: absolute !important;
[26586] Fix | Delete
width: ${width}px !important;
[26587] Fix | Delete
height: ${height}px !important;
[26588] Fix | Delete
top: ${top}px !important;
[26589] Fix | Delete
left: ${left}px !important;
[26590] Fix | Delete
}
[26591] Fix | Delete
`);
[26592] Fix | Delete
}
[26593] Fix | Delete
return () => {
[26594] Fix | Delete
document.head.removeChild(style);
[26595] Fix | Delete
};
[26596] Fix | Delete
}, [isPresent]);
[26597] Fix | Delete
return ((0,external_ReactJSXRuntime_namespaceObject.jsx)(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: external_React_.cloneElement(children, { ref }) }));
[26598] Fix | Delete
}
[26599] Fix | Delete
[26600] Fix | Delete
[26601] Fix | Delete
[26602] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
[26603] Fix | Delete
[26604] Fix | Delete
[26605] Fix | Delete
[26606] Fix | Delete
[26607] Fix | Delete
[26608] Fix | Delete
[26609] Fix | Delete
[26610] Fix | Delete
const PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, }) => {
[26611] Fix | Delete
const presenceChildren = useConstant(newChildrenMap);
[26612] Fix | Delete
const id = (0,external_React_.useId)();
[26613] Fix | Delete
const context = (0,external_React_.useMemo)(() => ({
[26614] Fix | Delete
id,
[26615] Fix | Delete
initial,
[26616] Fix | Delete
isPresent,
[26617] Fix | Delete
custom,
[26618] Fix | Delete
onExitComplete: (childId) => {
[26619] Fix | Delete
presenceChildren.set(childId, true);
[26620] Fix | Delete
for (const isComplete of presenceChildren.values()) {
[26621] Fix | Delete
if (!isComplete)
[26622] Fix | Delete
return; // can stop searching when any is incomplete
[26623] Fix | Delete
}
[26624] Fix | Delete
onExitComplete && onExitComplete();
[26625] Fix | Delete
},
[26626] Fix | Delete
register: (childId) => {
[26627] Fix | Delete
presenceChildren.set(childId, false);
[26628] Fix | Delete
return () => presenceChildren.delete(childId);
[26629] Fix | Delete
},
[26630] Fix | Delete
}),
[26631] Fix | Delete
/**
[26632] Fix | Delete
* If the presence of a child affects the layout of the components around it,
[26633] Fix | Delete
* we want to make a new context value to ensure they get re-rendered
[26634] Fix | Delete
* so they can detect that layout change.
[26635] Fix | Delete
*/
[26636] Fix | Delete
presenceAffectsLayout ? [Math.random()] : [isPresent]);
[26637] Fix | Delete
(0,external_React_.useMemo)(() => {
[26638] Fix | Delete
presenceChildren.forEach((_, key) => presenceChildren.set(key, false));
[26639] Fix | Delete
}, [isPresent]);
[26640] Fix | Delete
/**
[26641] Fix | Delete
* If there's no `motion` components to fire exit animations, we want to remove this
[26642] Fix | Delete
* component immediately.
[26643] Fix | Delete
*/
[26644] Fix | Delete
external_React_.useEffect(() => {
[26645] Fix | Delete
!isPresent &&
[26646] Fix | Delete
!presenceChildren.size &&
[26647] Fix | Delete
onExitComplete &&
[26648] Fix | Delete
onExitComplete();
[26649] Fix | Delete
}, [isPresent]);
[26650] Fix | Delete
if (mode === "popLayout") {
[26651] Fix | Delete
children = (0,external_ReactJSXRuntime_namespaceObject.jsx)(PopChild, { isPresent: isPresent, children: children });
[26652] Fix | Delete
}
[26653] Fix | Delete
return ((0,external_ReactJSXRuntime_namespaceObject.jsx)(PresenceContext_PresenceContext.Provider, { value: context, children: children }));
[26654] Fix | Delete
};
[26655] Fix | Delete
function newChildrenMap() {
[26656] Fix | Delete
return new Map();
[26657] Fix | Delete
}
[26658] Fix | Delete
[26659] Fix | Delete
[26660] Fix | Delete
[26661] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-unmount-effect.mjs
[26662] Fix | Delete
[26663] Fix | Delete
[26664] Fix | Delete
function useUnmountEffect(callback) {
[26665] Fix | Delete
return (0,external_React_.useEffect)(() => () => callback(), []);
[26666] Fix | Delete
}
[26667] Fix | Delete
[26668] Fix | Delete
[26669] Fix | Delete
[26670] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
[26671] Fix | Delete
[26672] Fix | Delete
[26673] Fix | Delete
[26674] Fix | Delete
[26675] Fix | Delete
[26676] Fix | Delete
[26677] Fix | Delete
[26678] Fix | Delete
[26679] Fix | Delete
[26680] Fix | Delete
[26681] Fix | Delete
const getChildKey = (child) => child.key || "";
[26682] Fix | Delete
function updateChildLookup(children, allChildren) {
[26683] Fix | Delete
children.forEach((child) => {
[26684] Fix | Delete
const key = getChildKey(child);
[26685] Fix | Delete
allChildren.set(key, child);
[26686] Fix | Delete
});
[26687] Fix | Delete
}
[26688] Fix | Delete
function onlyElements(children) {
[26689] Fix | Delete
const filtered = [];
[26690] Fix | Delete
// We use forEach here instead of map as map mutates the component key by preprending `.$`
[26691] Fix | Delete
external_React_.Children.forEach(children, (child) => {
[26692] Fix | Delete
if ((0,external_React_.isValidElement)(child))
[26693] Fix | Delete
filtered.push(child);
[26694] Fix | Delete
});
[26695] Fix | Delete
return filtered;
[26696] Fix | Delete
}
[26697] Fix | Delete
/**
[26698] Fix | Delete
* `AnimatePresence` enables the animation of components that have been removed from the tree.
[26699] Fix | Delete
*
[26700] Fix | Delete
* When adding/removing more than a single child, every child **must** be given a unique `key` prop.
[26701] Fix | Delete
*
[26702] Fix | Delete
* Any `motion` components that have an `exit` property defined will animate out when removed from
[26703] Fix | Delete
* the tree.
[26704] Fix | Delete
*
[26705] Fix | Delete
* ```jsx
[26706] Fix | Delete
* import { motion, AnimatePresence } from 'framer-motion'
[26707] Fix | Delete
*
[26708] Fix | Delete
* export const Items = ({ items }) => (
[26709] Fix | Delete
* <AnimatePresence>
[26710] Fix | Delete
* {items.map(item => (
[26711] Fix | Delete
* <motion.div
[26712] Fix | Delete
* key={item.id}
[26713] Fix | Delete
* initial={{ opacity: 0 }}
[26714] Fix | Delete
* animate={{ opacity: 1 }}
[26715] Fix | Delete
* exit={{ opacity: 0 }}
[26716] Fix | Delete
* />
[26717] Fix | Delete
* ))}
[26718] Fix | Delete
* </AnimatePresence>
[26719] Fix | Delete
* )
[26720] Fix | Delete
* ```
[26721] Fix | Delete
*
[26722] Fix | Delete
* You can sequence exit animations throughout a tree using variants.
[26723] Fix | Delete
*
[26724] Fix | Delete
* If a child contains multiple `motion` components with `exit` props, it will only unmount the child
[26725] Fix | Delete
* once all `motion` components have finished animating out. Likewise, any components using
[26726] Fix | Delete
* `usePresence` all need to call `safeToRemove`.
[26727] Fix | Delete
*
[26728] Fix | Delete
* @public
[26729] Fix | Delete
*/
[26730] Fix | Delete
const AnimatePresence = ({ children, custom, initial = true, onExitComplete, exitBeforeEnter, presenceAffectsLayout = true, mode = "sync", }) => {
[26731] Fix | Delete
errors_invariant(!exitBeforeEnter, "Replace exitBeforeEnter with mode='wait'");
[26732] Fix | Delete
// We want to force a re-render once all exiting animations have finished. We
[26733] Fix | Delete
// either use a local forceRender function, or one from a parent context if it exists.
[26734] Fix | Delete
const forceRender = (0,external_React_.useContext)(LayoutGroupContext).forceRender || use_force_update_useForceUpdate()[0];
[26735] Fix | Delete
const isMounted = useIsMounted();
[26736] Fix | Delete
// Filter out any children that aren't ReactElements. We can only track ReactElements with a props.key
[26737] Fix | Delete
const filteredChildren = onlyElements(children);
[26738] Fix | Delete
let childrenToRender = filteredChildren;
[26739] Fix | Delete
const exitingChildren = (0,external_React_.useRef)(new Map()).current;
[26740] Fix | Delete
// Keep a living record of the children we're actually rendering so we
[26741] Fix | Delete
// can diff to figure out which are entering and exiting
[26742] Fix | Delete
const presentChildren = (0,external_React_.useRef)(childrenToRender);
[26743] Fix | Delete
// A lookup table to quickly reference components by key
[26744] Fix | Delete
const allChildren = (0,external_React_.useRef)(new Map()).current;
[26745] Fix | Delete
// If this is the initial component render, just deal with logic surrounding whether
[26746] Fix | Delete
// we play onMount animations or not.
[26747] Fix | Delete
const isInitialRender = (0,external_React_.useRef)(true);
[26748] Fix | Delete
useIsomorphicLayoutEffect(() => {
[26749] Fix | Delete
isInitialRender.current = false;
[26750] Fix | Delete
updateChildLookup(filteredChildren, allChildren);
[26751] Fix | Delete
presentChildren.current = childrenToRender;
[26752] Fix | Delete
});
[26753] Fix | Delete
useUnmountEffect(() => {
[26754] Fix | Delete
isInitialRender.current = true;
[26755] Fix | Delete
allChildren.clear();
[26756] Fix | Delete
exitingChildren.clear();
[26757] Fix | Delete
});
[26758] Fix | Delete
if (isInitialRender.current) {
[26759] Fix | Delete
return ((0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: childrenToRender.map((child) => ((0,external_ReactJSXRuntime_namespaceObject.jsx)(PresenceChild, { isPresent: true, initial: initial ? undefined : false, presenceAffectsLayout: presenceAffectsLayout, mode: mode, children: child }, getChildKey(child)))) }));
[26760] Fix | Delete
}
[26761] Fix | Delete
// If this is a subsequent render, deal with entering and exiting children
[26762] Fix | Delete
childrenToRender = [...childrenToRender];
[26763] Fix | Delete
// Diff the keys of the currently-present and target children to update our
[26764] Fix | Delete
// exiting list.
[26765] Fix | Delete
const presentKeys = presentChildren.current.map(getChildKey);
[26766] Fix | Delete
const targetKeys = filteredChildren.map(getChildKey);
[26767] Fix | Delete
// Diff the present children with our target children and mark those that are exiting
[26768] Fix | Delete
const numPresent = presentKeys.length;
[26769] Fix | Delete
for (let i = 0; i < numPresent; i++) {
[26770] Fix | Delete
const key = presentKeys[i];
[26771] Fix | Delete
if (targetKeys.indexOf(key) === -1 && !exitingChildren.has(key)) {
[26772] Fix | Delete
exitingChildren.set(key, undefined);
[26773] Fix | Delete
}
[26774] Fix | Delete
}
[26775] Fix | Delete
// If we currently have exiting children, and we're deferring rendering incoming children
[26776] Fix | Delete
// until after all current children have exiting, empty the childrenToRender array
[26777] Fix | Delete
if (mode === "wait" && exitingChildren.size) {
[26778] Fix | Delete
childrenToRender = [];
[26779] Fix | Delete
}
[26780] Fix | Delete
// Loop through all currently exiting components and clone them to overwrite `animate`
[26781] Fix | Delete
// with any `exit` prop they might have defined.
[26782] Fix | Delete
exitingChildren.forEach((component, key) => {
[26783] Fix | Delete
// If this component is actually entering again, early return
[26784] Fix | Delete
if (targetKeys.indexOf(key) !== -1)
[26785] Fix | Delete
return;
[26786] Fix | Delete
const child = allChildren.get(key);
[26787] Fix | Delete
if (!child)
[26788] Fix | Delete
return;
[26789] Fix | Delete
const insertionIndex = presentKeys.indexOf(key);
[26790] Fix | Delete
let exitingComponent = component;
[26791] Fix | Delete
if (!exitingComponent) {
[26792] Fix | Delete
const onExit = () => {
[26793] Fix | Delete
// clean up the exiting children map
[26794] Fix | Delete
exitingChildren.delete(key);
[26795] Fix | Delete
// compute the keys of children that were rendered once but are no longer present
[26796] Fix | Delete
// this could happen in case of too many fast consequent renderings
[26797] Fix | Delete
// @link https://github.com/framer/motion/issues/2023
[26798] Fix | Delete
const leftOverKeys = Array.from(allChildren.keys()).filter((childKey) => !targetKeys.includes(childKey));
[26799] Fix | Delete
// clean up the all children map
[26800] Fix | Delete
leftOverKeys.forEach((leftOverKey) => allChildren.delete(leftOverKey));
[26801] Fix | Delete
// make sure to render only the children that are actually visible
[26802] Fix | Delete
presentChildren.current = filteredChildren.filter((presentChild) => {
[26803] Fix | Delete
const presentChildKey = getChildKey(presentChild);
[26804] Fix | Delete
return (
[26805] Fix | Delete
// filter out the node exiting
[26806] Fix | Delete
presentChildKey === key ||
[26807] Fix | Delete
// filter out the leftover children
[26808] Fix | Delete
leftOverKeys.includes(presentChildKey));
[26809] Fix | Delete
});
[26810] Fix | Delete
// Defer re-rendering until all exiting children have indeed left
[26811] Fix | Delete
if (!exitingChildren.size) {
[26812] Fix | Delete
if (isMounted.current === false)
[26813] Fix | Delete
return;
[26814] Fix | Delete
forceRender();
[26815] Fix | Delete
onExitComplete && onExitComplete();
[26816] Fix | Delete
}
[26817] Fix | Delete
};
[26818] Fix | Delete
exitingComponent = ((0,external_ReactJSXRuntime_namespaceObject.jsx)(PresenceChild, { isPresent: false, onExitComplete: onExit, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, children: child }, getChildKey(child)));
[26819] Fix | Delete
exitingChildren.set(key, exitingComponent);
[26820] Fix | Delete
}
[26821] Fix | Delete
childrenToRender.splice(insertionIndex, 0, exitingComponent);
[26822] Fix | Delete
});
[26823] Fix | Delete
// Add `MotionContext` even to children that don't need it to ensure we're rendering
[26824] Fix | Delete
// the same tree between renders
[26825] Fix | Delete
childrenToRender = childrenToRender.map((child) => {
[26826] Fix | Delete
const key = child.key;
[26827] Fix | Delete
return exitingChildren.has(key) ? (child) : ((0,external_ReactJSXRuntime_namespaceObject.jsx)(PresenceChild, { isPresent: true, presenceAffectsLayout: presenceAffectsLayout, mode: mode, children: child }, getChildKey(child)));
[26828] Fix | Delete
});
[26829] Fix | Delete
if (false) {}
[26830] Fix | Delete
return ((0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: exitingChildren.size
[26831] Fix | Delete
? childrenToRender
[26832] Fix | Delete
: childrenToRender.map((child) => (0,external_React_.cloneElement)(child)) }));
[26833] Fix | Delete
};
[26834] Fix | Delete
[26835] Fix | Delete
[26836] Fix | Delete
[26837] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/use-responsive-value.js
[26838] Fix | Delete
/**
[26839] Fix | Delete
* WordPress dependencies
[26840] Fix | Delete
*/
[26841] Fix | Delete
[26842] Fix | Delete
const breakpoints = ['40em', '52em', '64em'];
[26843] Fix | Delete
const useBreakpointIndex = (options = {}) => {
[26844] Fix | Delete
const {
[26845] Fix | Delete
defaultIndex = 0
[26846] Fix | Delete
} = options;
[26847] Fix | Delete
if (typeof defaultIndex !== 'number') {
[26848] Fix | Delete
throw new TypeError(`Default breakpoint index should be a number. Got: ${defaultIndex}, ${typeof defaultIndex}`);
[26849] Fix | Delete
} else if (defaultIndex < 0 || defaultIndex > breakpoints.length - 1) {
[26850] Fix | Delete
throw new RangeError(`Default breakpoint index out of range. Theme has ${breakpoints.length} breakpoints, got index ${defaultIndex}`);
[26851] Fix | Delete
}
[26852] Fix | Delete
const [value, setValue] = (0,external_wp_element_namespaceObject.useState)(defaultIndex);
[26853] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[26854] Fix | Delete
const getIndex = () => breakpoints.filter(bp => {
[26855] Fix | Delete
return typeof window !== 'undefined' ? window.matchMedia(`screen and (min-width: ${bp})`).matches : false;
[26856] Fix | Delete
}).length;
[26857] Fix | Delete
const onResize = () => {
[26858] Fix | Delete
const newValue = getIndex();
[26859] Fix | Delete
if (value !== newValue) {
[26860] Fix | Delete
setValue(newValue);
[26861] Fix | Delete
}
[26862] Fix | Delete
};
[26863] Fix | Delete
onResize();
[26864] Fix | Delete
if (typeof window !== 'undefined') {
[26865] Fix | Delete
window.addEventListener('resize', onResize);
[26866] Fix | Delete
}
[26867] Fix | Delete
return () => {
[26868] Fix | Delete
if (typeof window !== 'undefined') {
[26869] Fix | Delete
window.removeEventListener('resize', onResize);
[26870] Fix | Delete
}
[26871] Fix | Delete
};
[26872] Fix | Delete
}, [value]);
[26873] Fix | Delete
return value;
[26874] Fix | Delete
};
[26875] Fix | Delete
function useResponsiveValue(values, options = {}) {
[26876] Fix | Delete
const index = useBreakpointIndex(options);
[26877] Fix | Delete
[26878] Fix | Delete
// Allow calling the function with a "normal" value without having to check on the outside.
[26879] Fix | Delete
if (!Array.isArray(values) && typeof values !== 'function') {
[26880] Fix | Delete
return values;
[26881] Fix | Delete
}
[26882] Fix | Delete
const array = values || [];
[26883] Fix | Delete
[26884] Fix | Delete
/* eslint-disable jsdoc/no-undefined-types */
[26885] Fix | Delete
return /** @type {T[]} */array[/* eslint-enable jsdoc/no-undefined-types */
[26886] Fix | Delete
index >= array.length ? array.length - 1 : index];
[26887] Fix | Delete
}
[26888] Fix | Delete
[26889] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/space.js
[26890] Fix | Delete
/**
[26891] Fix | Delete
* The argument value for the `space()` utility function.
[26892] Fix | Delete
*
[26893] Fix | Delete
* When this is a number or a numeric string, it will be interpreted as a
[26894] Fix | Delete
* multiplier for the grid base value (4px). For example, `space( 2 )` will be 8px.
[26895] Fix | Delete
*
[26896] Fix | Delete
* Otherwise, it will be interpreted as a literal CSS length value. For example,
[26897] Fix | Delete
* `space( 'auto' )` will be 'auto', and `space( '2px' )` will be 2px.
[26898] Fix | Delete
*/
[26899] Fix | Delete
[26900] Fix | Delete
const GRID_BASE = '4px';
[26901] Fix | Delete
[26902] Fix | Delete
/**
[26903] Fix | Delete
* A function that handles numbers, numeric strings, and unit values.
[26904] Fix | Delete
*
[26905] Fix | Delete
* When given a number or a numeric string, it will return the grid-based
[26906] Fix | Delete
* value as a factor of GRID_BASE, defined above.
[26907] Fix | Delete
*
[26908] Fix | Delete
* When given a unit value or one of the named CSS values like `auto`,
[26909] Fix | Delete
* it will simply return the value back.
[26910] Fix | Delete
*
[26911] Fix | Delete
* @param value A number, numeric string, or a unit value.
[26912] Fix | Delete
*/
[26913] Fix | Delete
function space(value) {
[26914] Fix | Delete
if (typeof value === 'undefined') {
[26915] Fix | Delete
return undefined;
[26916] Fix | Delete
}
[26917] Fix | Delete
[26918] Fix | Delete
// Handle empty strings, if it's the number 0 this still works.
[26919] Fix | Delete
if (!value) {
[26920] Fix | Delete
return '0';
[26921] Fix | Delete
}
[26922] Fix | Delete
const asInt = typeof value === 'number' ? value : Number(value);
[26923] Fix | Delete
[26924] Fix | Delete
// Test if the input has a unit, was NaN, or was one of the named CSS values (like `auto`), in which case just use that value.
[26925] Fix | Delete
if (typeof window !== 'undefined' && window.CSS?.supports?.('margin', value.toString()) || Number.isNaN(asInt)) {
[26926] Fix | Delete
return value.toString();
[26927] Fix | Delete
}
[26928] Fix | Delete
return `calc(${GRID_BASE} * ${value})`;
[26929] Fix | Delete
}
[26930] Fix | Delete
[26931] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/styles.js
[26932] Fix | Delete
function styles_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)."; }
[26933] Fix | Delete
/**
[26934] Fix | Delete
* External dependencies
[26935] Fix | Delete
*/
[26936] Fix | Delete
[26937] Fix | Delete
const Flex = true ? {
[26938] Fix | Delete
name: "zjik7",
[26939] Fix | Delete
styles: "display:flex"
[26940] Fix | Delete
} : 0;
[26941] Fix | Delete
const Item = true ? {
[26942] Fix | Delete
name: "qgaee5",
[26943] Fix | Delete
styles: "display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"
[26944] Fix | Delete
} : 0;
[26945] Fix | Delete
const block = true ? {
[26946] Fix | Delete
name: "82a6rk",
[26947] Fix | Delete
styles: "flex:1"
[26948] Fix | Delete
} : 0;
[26949] Fix | Delete
[26950] Fix | Delete
/**
[26951] Fix | Delete
* Workaround to optimize DOM rendering.
[26952] Fix | Delete
* We'll enhance alignment with naive parent flex assumptions.
[26953] Fix | Delete
*
[26954] Fix | Delete
* Trade-off:
[26955] Fix | Delete
* Far less DOM less. However, UI rendering is not as reliable.
[26956] Fix | Delete
*/
[26957] Fix | Delete
[26958] Fix | Delete
/**
[26959] Fix | Delete
* Improves stability of width/height rendering.
[26960] Fix | Delete
* https://github.com/ItsJonQ/g2/pull/149
[26961] Fix | Delete
*/
[26962] Fix | Delete
const ItemsColumn = true ? {
[26963] Fix | Delete
name: "13nosa1",
[26964] Fix | Delete
styles: ">*{min-height:0;}"
[26965] Fix | Delete
} : 0;
[26966] Fix | Delete
const ItemsRow = true ? {
[26967] Fix | Delete
name: "1pwxzk4",
[26968] Fix | Delete
styles: ">*{min-width:0;}"
[26969] Fix | Delete
} : 0;
[26970] Fix | Delete
[26971] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/flex/hook.js
[26972] Fix | Delete
/**
[26973] Fix | Delete
* External dependencies
[26974] Fix | Delete
*/
[26975] Fix | Delete
[26976] Fix | Delete
[26977] Fix | Delete
/**
[26978] Fix | Delete
* WordPress dependencies
[26979] Fix | Delete
*/
[26980] Fix | Delete
[26981] Fix | Delete
[26982] Fix | Delete
[26983] Fix | Delete
/**
[26984] Fix | Delete
* Internal dependencies
[26985] Fix | Delete
*/
[26986] Fix | Delete
[26987] Fix | Delete
[26988] Fix | Delete
[26989] Fix | Delete
[26990] Fix | Delete
[26991] Fix | Delete
[26992] Fix | Delete
function useDeprecatedProps(props) {
[26993] Fix | Delete
const {
[26994] Fix | Delete
isReversed,
[26995] Fix | Delete
...otherProps
[26996] Fix | Delete
} = props;
[26997] Fix | Delete
if (typeof isReversed !== 'undefined') {
[26998] Fix | Delete
external_wp_deprecated_default()('Flex isReversed', {
[26999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function