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
originX: 0.5,
[10000] Fix | Delete
originY: 1
[10001] Fix | Delete
},
[10002] Fix | Delete
// open from bottom, center
[10003] Fix | Delete
'top-start': {
[10004] Fix | Delete
originX: 0,
[10005] Fix | Delete
originY: 1
[10006] Fix | Delete
},
[10007] Fix | Delete
// open from bottom, left
[10008] Fix | Delete
'top-end': {
[10009] Fix | Delete
originX: 1,
[10010] Fix | Delete
originY: 1
[10011] Fix | Delete
},
[10012] Fix | Delete
// open from bottom, right
[10013] Fix | Delete
right: {
[10014] Fix | Delete
originX: 0,
[10015] Fix | Delete
originY: 0.5
[10016] Fix | Delete
},
[10017] Fix | Delete
// open from middle, left
[10018] Fix | Delete
'right-start': {
[10019] Fix | Delete
originX: 0,
[10020] Fix | Delete
originY: 0
[10021] Fix | Delete
},
[10022] Fix | Delete
// open from top, left
[10023] Fix | Delete
'right-end': {
[10024] Fix | Delete
originX: 0,
[10025] Fix | Delete
originY: 1
[10026] Fix | Delete
},
[10027] Fix | Delete
// open from bottom, left
[10028] Fix | Delete
bottom: {
[10029] Fix | Delete
originX: 0.5,
[10030] Fix | Delete
originY: 0
[10031] Fix | Delete
},
[10032] Fix | Delete
// open from top, center
[10033] Fix | Delete
'bottom-start': {
[10034] Fix | Delete
originX: 0,
[10035] Fix | Delete
originY: 0
[10036] Fix | Delete
},
[10037] Fix | Delete
// open from top, left
[10038] Fix | Delete
'bottom-end': {
[10039] Fix | Delete
originX: 1,
[10040] Fix | Delete
originY: 0
[10041] Fix | Delete
},
[10042] Fix | Delete
// open from top, right
[10043] Fix | Delete
left: {
[10044] Fix | Delete
originX: 1,
[10045] Fix | Delete
originY: 0.5
[10046] Fix | Delete
},
[10047] Fix | Delete
// open from middle, right
[10048] Fix | Delete
'left-start': {
[10049] Fix | Delete
originX: 1,
[10050] Fix | Delete
originY: 0
[10051] Fix | Delete
},
[10052] Fix | Delete
// open from top, right
[10053] Fix | Delete
'left-end': {
[10054] Fix | Delete
originX: 1,
[10055] Fix | Delete
originY: 1
[10056] Fix | Delete
},
[10057] Fix | Delete
// open from bottom, right
[10058] Fix | Delete
overlay: {
[10059] Fix | Delete
originX: 0.5,
[10060] Fix | Delete
originY: 0.5
[10061] Fix | Delete
} // open from center, center
[10062] Fix | Delete
};
[10063] Fix | Delete
[10064] Fix | Delete
/**
[10065] Fix | Delete
* Given the floating-ui `placement`, compute the framer-motion props for the
[10066] Fix | Delete
* popover's entry animation.
[10067] Fix | Delete
*
[10068] Fix | Delete
* @param placement A placement string from floating ui
[10069] Fix | Delete
* @return The object containing the motion props
[10070] Fix | Delete
*/
[10071] Fix | Delete
const placementToMotionAnimationProps = placement => {
[10072] Fix | Delete
const translateProp = placement.startsWith('top') || placement.startsWith('bottom') ? 'translateY' : 'translateX';
[10073] Fix | Delete
const translateDirection = placement.startsWith('top') || placement.startsWith('left') ? 1 : -1;
[10074] Fix | Delete
return {
[10075] Fix | Delete
style: PLACEMENT_TO_ANIMATION_ORIGIN[placement],
[10076] Fix | Delete
initial: {
[10077] Fix | Delete
opacity: 0,
[10078] Fix | Delete
scale: 0,
[10079] Fix | Delete
[translateProp]: `${2 * translateDirection}em`
[10080] Fix | Delete
},
[10081] Fix | Delete
animate: {
[10082] Fix | Delete
opacity: 1,
[10083] Fix | Delete
scale: 1,
[10084] Fix | Delete
[translateProp]: 0
[10085] Fix | Delete
},
[10086] Fix | Delete
transition: {
[10087] Fix | Delete
duration: 0.1,
[10088] Fix | Delete
ease: [0, 0, 0.2, 1]
[10089] Fix | Delete
}
[10090] Fix | Delete
};
[10091] Fix | Delete
};
[10092] Fix | Delete
function isTopBottom(anchorRef) {
[10093] Fix | Delete
return !!anchorRef?.top;
[10094] Fix | Delete
}
[10095] Fix | Delete
function isRef(anchorRef) {
[10096] Fix | Delete
return !!anchorRef?.current;
[10097] Fix | Delete
}
[10098] Fix | Delete
const getReferenceElement = ({
[10099] Fix | Delete
anchor,
[10100] Fix | Delete
anchorRef,
[10101] Fix | Delete
anchorRect,
[10102] Fix | Delete
getAnchorRect,
[10103] Fix | Delete
fallbackReferenceElement
[10104] Fix | Delete
}) => {
[10105] Fix | Delete
var _referenceElement;
[10106] Fix | Delete
let referenceElement = null;
[10107] Fix | Delete
if (anchor) {
[10108] Fix | Delete
referenceElement = anchor;
[10109] Fix | Delete
} else if (isTopBottom(anchorRef)) {
[10110] Fix | Delete
// Create a virtual element for the ref. The expectation is that
[10111] Fix | Delete
// if anchorRef.top is defined, then anchorRef.bottom is defined too.
[10112] Fix | Delete
// Seems to be used by the block toolbar, when multiple blocks are selected
[10113] Fix | Delete
// (top and bottom blocks are used to calculate the resulting rect).
[10114] Fix | Delete
referenceElement = {
[10115] Fix | Delete
getBoundingClientRect() {
[10116] Fix | Delete
const topRect = anchorRef.top.getBoundingClientRect();
[10117] Fix | Delete
const bottomRect = anchorRef.bottom.getBoundingClientRect();
[10118] Fix | Delete
return new window.DOMRect(topRect.x, topRect.y, topRect.width, bottomRect.bottom - topRect.top);
[10119] Fix | Delete
}
[10120] Fix | Delete
};
[10121] Fix | Delete
} else if (isRef(anchorRef)) {
[10122] Fix | Delete
// Standard React ref.
[10123] Fix | Delete
referenceElement = anchorRef.current;
[10124] Fix | Delete
} else if (anchorRef) {
[10125] Fix | Delete
// If `anchorRef` holds directly the element's value (no `current` key)
[10126] Fix | Delete
// This is a weird scenario and should be deprecated.
[10127] Fix | Delete
referenceElement = anchorRef;
[10128] Fix | Delete
} else if (anchorRect) {
[10129] Fix | Delete
// Create a virtual element for the ref.
[10130] Fix | Delete
referenceElement = {
[10131] Fix | Delete
getBoundingClientRect() {
[10132] Fix | Delete
return anchorRect;
[10133] Fix | Delete
}
[10134] Fix | Delete
};
[10135] Fix | Delete
} else if (getAnchorRect) {
[10136] Fix | Delete
// Create a virtual element for the ref.
[10137] Fix | Delete
referenceElement = {
[10138] Fix | Delete
getBoundingClientRect() {
[10139] Fix | Delete
var _rect$x, _rect$y, _rect$width, _rect$height;
[10140] Fix | Delete
const rect = getAnchorRect(fallbackReferenceElement);
[10141] Fix | Delete
return new window.DOMRect((_rect$x = rect.x) !== null && _rect$x !== void 0 ? _rect$x : rect.left, (_rect$y = rect.y) !== null && _rect$y !== void 0 ? _rect$y : rect.top, (_rect$width = rect.width) !== null && _rect$width !== void 0 ? _rect$width : rect.right - rect.left, (_rect$height = rect.height) !== null && _rect$height !== void 0 ? _rect$height : rect.bottom - rect.top);
[10142] Fix | Delete
}
[10143] Fix | Delete
};
[10144] Fix | Delete
} else if (fallbackReferenceElement) {
[10145] Fix | Delete
// If no explicit ref is passed via props, fall back to
[10146] Fix | Delete
// anchoring to the popover's parent node.
[10147] Fix | Delete
referenceElement = fallbackReferenceElement.parentElement;
[10148] Fix | Delete
}
[10149] Fix | Delete
[10150] Fix | Delete
// Convert any `undefined` value to `null`.
[10151] Fix | Delete
return (_referenceElement = referenceElement) !== null && _referenceElement !== void 0 ? _referenceElement : null;
[10152] Fix | Delete
};
[10153] Fix | Delete
[10154] Fix | Delete
/**
[10155] Fix | Delete
* Computes the final coordinate that needs to be applied to the floating
[10156] Fix | Delete
* element when applying transform inline styles, defaulting to `undefined`
[10157] Fix | Delete
* if the provided value is `null` or `NaN`.
[10158] Fix | Delete
*
[10159] Fix | Delete
* @param c input coordinate (usually as returned from floating-ui)
[10160] Fix | Delete
* @return The coordinate's value to be used for inline styles. An `undefined`
[10161] Fix | Delete
* return value means "no style set" for this coordinate.
[10162] Fix | Delete
*/
[10163] Fix | Delete
const computePopoverPosition = c => c === null || Number.isNaN(c) ? undefined : Math.round(c);
[10164] Fix | Delete
[10165] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tooltip/index.js
[10166] Fix | Delete
/**
[10167] Fix | Delete
* External dependencies
[10168] Fix | Delete
*/
[10169] Fix | Delete
// eslint-disable-next-line no-restricted-imports
[10170] Fix | Delete
[10171] Fix | Delete
[10172] Fix | Delete
/**
[10173] Fix | Delete
* WordPress dependencies
[10174] Fix | Delete
*/
[10175] Fix | Delete
[10176] Fix | Delete
[10177] Fix | Delete
[10178] Fix | Delete
[10179] Fix | Delete
/**
[10180] Fix | Delete
* Internal dependencies
[10181] Fix | Delete
*/
[10182] Fix | Delete
[10183] Fix | Delete
[10184] Fix | Delete
[10185] Fix | Delete
[10186] Fix | Delete
[10187] Fix | Delete
const TooltipInternalContext = (0,external_wp_element_namespaceObject.createContext)({
[10188] Fix | Delete
isNestedInTooltip: false
[10189] Fix | Delete
});
[10190] Fix | Delete
[10191] Fix | Delete
/**
[10192] Fix | Delete
* Time over anchor to wait before showing tooltip
[10193] Fix | Delete
*/
[10194] Fix | Delete
const TOOLTIP_DELAY = 700;
[10195] Fix | Delete
const CONTEXT_VALUE = {
[10196] Fix | Delete
isNestedInTooltip: true
[10197] Fix | Delete
};
[10198] Fix | Delete
function UnforwardedTooltip(props, ref) {
[10199] Fix | Delete
const {
[10200] Fix | Delete
children,
[10201] Fix | Delete
delay = TOOLTIP_DELAY,
[10202] Fix | Delete
hideOnClick = true,
[10203] Fix | Delete
placement,
[10204] Fix | Delete
position,
[10205] Fix | Delete
shortcut,
[10206] Fix | Delete
text,
[10207] Fix | Delete
...restProps
[10208] Fix | Delete
} = props;
[10209] Fix | Delete
const {
[10210] Fix | Delete
isNestedInTooltip
[10211] Fix | Delete
} = (0,external_wp_element_namespaceObject.useContext)(TooltipInternalContext);
[10212] Fix | Delete
const baseId = (0,external_wp_compose_namespaceObject.useInstanceId)(tooltip_Tooltip, 'tooltip');
[10213] Fix | Delete
const describedById = text || shortcut ? baseId : undefined;
[10214] Fix | Delete
const isOnlyChild = external_wp_element_namespaceObject.Children.count(children) === 1;
[10215] Fix | Delete
// console error if more than one child element is added
[10216] Fix | Delete
if (!isOnlyChild) {
[10217] Fix | Delete
if (false) {}
[10218] Fix | Delete
}
[10219] Fix | Delete
[10220] Fix | Delete
// Compute tooltip's placement:
[10221] Fix | Delete
// - give priority to `placement` prop, if defined
[10222] Fix | Delete
// - otherwise, compute it from the legacy `position` prop (if defined)
[10223] Fix | Delete
// - finally, fallback to the default placement: 'bottom'
[10224] Fix | Delete
let computedPlacement;
[10225] Fix | Delete
if (placement !== undefined) {
[10226] Fix | Delete
computedPlacement = placement;
[10227] Fix | Delete
} else if (position !== undefined) {
[10228] Fix | Delete
computedPlacement = positionToPlacement(position);
[10229] Fix | Delete
external_wp_deprecated_default()('`position` prop in wp.components.tooltip', {
[10230] Fix | Delete
since: '6.4',
[10231] Fix | Delete
alternative: '`placement` prop'
[10232] Fix | Delete
});
[10233] Fix | Delete
}
[10234] Fix | Delete
computedPlacement = computedPlacement || 'bottom';
[10235] Fix | Delete
const tooltipStore = useTooltipStore({
[10236] Fix | Delete
placement: computedPlacement,
[10237] Fix | Delete
showTimeout: delay
[10238] Fix | Delete
});
[10239] Fix | Delete
if (isNestedInTooltip) {
[10240] Fix | Delete
return isOnlyChild ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Role, {
[10241] Fix | Delete
...restProps,
[10242] Fix | Delete
render: children
[10243] Fix | Delete
}) : children;
[10244] Fix | Delete
}
[10245] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TooltipInternalContext.Provider, {
[10246] Fix | Delete
value: CONTEXT_VALUE,
[10247] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TooltipAnchor, {
[10248] Fix | Delete
onClick: hideOnClick ? tooltipStore.hide : undefined,
[10249] Fix | Delete
store: tooltipStore,
[10250] Fix | Delete
render: isOnlyChild ? children : undefined,
[10251] Fix | Delete
ref: ref,
[10252] Fix | Delete
children: isOnlyChild ? undefined : children
[10253] Fix | Delete
}), isOnlyChild && (text || shortcut) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tooltip, {
[10254] Fix | Delete
...restProps,
[10255] Fix | Delete
className: "components-tooltip",
[10256] Fix | Delete
unmountOnHide: true,
[10257] Fix | Delete
gutter: 4,
[10258] Fix | Delete
id: describedById,
[10259] Fix | Delete
overflowPadding: 0.5,
[10260] Fix | Delete
store: tooltipStore,
[10261] Fix | Delete
children: [text, shortcut && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_shortcut, {
[10262] Fix | Delete
className: text ? 'components-tooltip__shortcut' : '',
[10263] Fix | Delete
shortcut: shortcut
[10264] Fix | Delete
})]
[10265] Fix | Delete
})]
[10266] Fix | Delete
});
[10267] Fix | Delete
}
[10268] Fix | Delete
const tooltip_Tooltip = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTooltip);
[10269] Fix | Delete
/* harmony default export */ const tooltip = (tooltip_Tooltip);
[10270] Fix | Delete
[10271] Fix | Delete
;// CONCATENATED MODULE: external ["wp","warning"]
[10272] Fix | Delete
const external_wp_warning_namespaceObject = window["wp"]["warning"];
[10273] Fix | Delete
var external_wp_warning_default = /*#__PURE__*/__webpack_require__.n(external_wp_warning_namespaceObject);
[10274] Fix | Delete
// EXTERNAL MODULE: ./node_modules/deepmerge/dist/cjs.js
[10275] Fix | Delete
var cjs = __webpack_require__(66);
[10276] Fix | Delete
var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
[10277] Fix | Delete
// EXTERNAL MODULE: ./node_modules/fast-deep-equal/es6/index.js
[10278] Fix | Delete
var es6 = __webpack_require__(7734);
[10279] Fix | Delete
var es6_default = /*#__PURE__*/__webpack_require__.n(es6);
[10280] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/is-plain-object/dist/is-plain-object.mjs
[10281] Fix | Delete
/*!
[10282] Fix | Delete
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
[10283] Fix | Delete
*
[10284] Fix | Delete
* Copyright (c) 2014-2017, Jon Schlinkert.
[10285] Fix | Delete
* Released under the MIT License.
[10286] Fix | Delete
*/
[10287] Fix | Delete
[10288] Fix | Delete
function is_plain_object_isObject(o) {
[10289] Fix | Delete
return Object.prototype.toString.call(o) === '[object Object]';
[10290] Fix | Delete
}
[10291] Fix | Delete
[10292] Fix | Delete
function isPlainObject(o) {
[10293] Fix | Delete
var ctor,prot;
[10294] Fix | Delete
[10295] Fix | Delete
if (is_plain_object_isObject(o) === false) return false;
[10296] Fix | Delete
[10297] Fix | Delete
// If has modified constructor
[10298] Fix | Delete
ctor = o.constructor;
[10299] Fix | Delete
if (ctor === undefined) return true;
[10300] Fix | Delete
[10301] Fix | Delete
// If has modified prototype
[10302] Fix | Delete
prot = ctor.prototype;
[10303] Fix | Delete
if (is_plain_object_isObject(prot) === false) return false;
[10304] Fix | Delete
[10305] Fix | Delete
// If constructor does not have an Object-specific method
[10306] Fix | Delete
if (prot.hasOwnProperty('isPrototypeOf') === false) {
[10307] Fix | Delete
return false;
[10308] Fix | Delete
}
[10309] Fix | Delete
[10310] Fix | Delete
// Most likely a plain Object
[10311] Fix | Delete
return true;
[10312] Fix | Delete
}
[10313] Fix | Delete
[10314] Fix | Delete
[10315] Fix | Delete
[10316] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/hooks/use-update-effect.js
[10317] Fix | Delete
/**
[10318] Fix | Delete
* WordPress dependencies
[10319] Fix | Delete
*/
[10320] Fix | Delete
[10321] Fix | Delete
[10322] Fix | Delete
/**
[10323] Fix | Delete
* A `React.useEffect` that will not run on the first render.
[10324] Fix | Delete
* Source:
[10325] Fix | Delete
* https://github.com/ariakit/ariakit/blob/reakit/packages/reakit-utils/src/useUpdateEffect.ts
[10326] Fix | Delete
*
[10327] Fix | Delete
* @param {import('react').EffectCallback} effect
[10328] Fix | Delete
* @param {import('react').DependencyList} deps
[10329] Fix | Delete
*/
[10330] Fix | Delete
function use_update_effect_useUpdateEffect(effect, deps) {
[10331] Fix | Delete
const mounted = (0,external_wp_element_namespaceObject.useRef)(false);
[10332] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[10333] Fix | Delete
if (mounted.current) {
[10334] Fix | Delete
return effect();
[10335] Fix | Delete
}
[10336] Fix | Delete
mounted.current = true;
[10337] Fix | Delete
return undefined;
[10338] Fix | Delete
// Disable reasons:
[10339] Fix | Delete
// 1. This hook needs to pass a dep list that isn't an array literal
[10340] Fix | Delete
// 2. `effect` is missing from the array, and will need to be added carefully to avoid additional warnings
[10341] Fix | Delete
// see https://github.com/WordPress/gutenberg/pull/41166
[10342] Fix | Delete
// eslint-disable-next-line react-hooks/exhaustive-deps
[10343] Fix | Delete
}, deps);
[10344] Fix | Delete
}
[10345] Fix | Delete
/* harmony default export */ const use_update_effect = (use_update_effect_useUpdateEffect);
[10346] Fix | Delete
[10347] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/context/context-system-provider.js
[10348] Fix | Delete
/**
[10349] Fix | Delete
* External dependencies
[10350] Fix | Delete
*/
[10351] Fix | Delete
[10352] Fix | Delete
[10353] Fix | Delete
[10354] Fix | Delete
[10355] Fix | Delete
/**
[10356] Fix | Delete
* WordPress dependencies
[10357] Fix | Delete
*/
[10358] Fix | Delete
[10359] Fix | Delete
[10360] Fix | Delete
[10361] Fix | Delete
/**
[10362] Fix | Delete
* Internal dependencies
[10363] Fix | Delete
*/
[10364] Fix | Delete
[10365] Fix | Delete
[10366] Fix | Delete
const ComponentsContext = (0,external_wp_element_namespaceObject.createContext)( /** @type {Record<string, any>} */{});
[10367] Fix | Delete
const useComponentsContext = () => (0,external_wp_element_namespaceObject.useContext)(ComponentsContext);
[10368] Fix | Delete
[10369] Fix | Delete
/**
[10370] Fix | Delete
* Consolidates incoming ContextSystem values with a (potential) parent ContextSystem value.
[10371] Fix | Delete
*
[10372] Fix | Delete
* Note: This function will warn if it detects an un-memoized `value`
[10373] Fix | Delete
*
[10374] Fix | Delete
* @param {Object} props
[10375] Fix | Delete
* @param {Record<string, any>} props.value
[10376] Fix | Delete
* @return {Record<string, any>} The consolidated value.
[10377] Fix | Delete
*/
[10378] Fix | Delete
function useContextSystemBridge({
[10379] Fix | Delete
value
[10380] Fix | Delete
}) {
[10381] Fix | Delete
const parentContext = useComponentsContext();
[10382] Fix | Delete
const valueRef = (0,external_wp_element_namespaceObject.useRef)(value);
[10383] Fix | Delete
use_update_effect(() => {
[10384] Fix | Delete
if (
[10385] Fix | Delete
// Objects are equivalent.
[10386] Fix | Delete
es6_default()(valueRef.current, value) &&
[10387] Fix | Delete
// But not the same reference.
[10388] Fix | Delete
valueRef.current !== value) {
[10389] Fix | Delete
true ? external_wp_warning_default()(`Please memoize your context: ${JSON.stringify(value)}`) : 0;
[10390] Fix | Delete
}
[10391] Fix | Delete
}, [value]);
[10392] Fix | Delete
[10393] Fix | Delete
// `parentContext` will always be memoized (i.e., the result of this hook itself)
[10394] Fix | Delete
// or the default value from when the `ComponentsContext` was originally
[10395] Fix | Delete
// initialized (which will never change, it's a static variable)
[10396] Fix | Delete
// so this memoization will prevent `deepmerge()` from rerunning unless
[10397] Fix | Delete
// the references to `value` change OR the `parentContext` has an actual material change
[10398] Fix | Delete
// (because again, it's guaranteed to be memoized or a static reference to the empty object
[10399] Fix | Delete
// so we know that the only changes for `parentContext` are material ones... i.e., why we
[10400] Fix | Delete
// don't have to warn in the `useUpdateEffect` hook above for `parentContext` and we only
[10401] Fix | Delete
// need to bother with the `value`). The `useUpdateEffect` above will ensure that we are
[10402] Fix | Delete
// correctly warning when the `value` isn't being properly memoized. All of that to say
[10403] Fix | Delete
// that this should be super safe to assume that `useMemo` will only run on actual
[10404] Fix | Delete
// changes to the two dependencies, therefore saving us calls to `deepmerge()`!
[10405] Fix | Delete
const config = (0,external_wp_element_namespaceObject.useMemo)(() => {
[10406] Fix | Delete
// Deep clone `parentContext` to avoid mutating it later.
[10407] Fix | Delete
return cjs_default()(parentContext !== null && parentContext !== void 0 ? parentContext : {}, value !== null && value !== void 0 ? value : {}, {
[10408] Fix | Delete
isMergeableObject: isPlainObject
[10409] Fix | Delete
});
[10410] Fix | Delete
}, [parentContext, value]);
[10411] Fix | Delete
return config;
[10412] Fix | Delete
}
[10413] Fix | Delete
[10414] Fix | Delete
/**
[10415] Fix | Delete
* A Provider component that can modify props for connected components within
[10416] Fix | Delete
* the Context system.
[10417] Fix | Delete
*
[10418] Fix | Delete
* @example
[10419] Fix | Delete
* ```jsx
[10420] Fix | Delete
* <ContextSystemProvider value={{ Button: { size: 'small' }}}>
[10421] Fix | Delete
* <Button>...</Button>
[10422] Fix | Delete
* </ContextSystemProvider>
[10423] Fix | Delete
* ```
[10424] Fix | Delete
*
[10425] Fix | Delete
* @template {Record<string, any>} T
[10426] Fix | Delete
* @param {Object} options
[10427] Fix | Delete
* @param {import('react').ReactNode} options.children Children to render.
[10428] Fix | Delete
* @param {T} options.value Props to render into connected components.
[10429] Fix | Delete
* @return {JSX.Element} A Provider wrapped component.
[10430] Fix | Delete
*/
[10431] Fix | Delete
const BaseContextSystemProvider = ({
[10432] Fix | Delete
children,
[10433] Fix | Delete
value
[10434] Fix | Delete
}) => {
[10435] Fix | Delete
const contextValue = useContextSystemBridge({
[10436] Fix | Delete
value
[10437] Fix | Delete
});
[10438] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ComponentsContext.Provider, {
[10439] Fix | Delete
value: contextValue,
[10440] Fix | Delete
children: children
[10441] Fix | Delete
});
[10442] Fix | Delete
};
[10443] Fix | Delete
const ContextSystemProvider = (0,external_wp_element_namespaceObject.memo)(BaseContextSystemProvider);
[10444] Fix | Delete
[10445] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/context/constants.js
[10446] Fix | Delete
const COMPONENT_NAMESPACE = 'data-wp-component';
[10447] Fix | Delete
const CONNECTED_NAMESPACE = 'data-wp-c16t';
[10448] Fix | Delete
[10449] Fix | Delete
/**
[10450] Fix | Delete
* Special key where the connected namespaces are stored.
[10451] Fix | Delete
* This is attached to Context connected components as a static property.
[10452] Fix | Delete
*/
[10453] Fix | Delete
const CONNECT_STATIC_NAMESPACE = '__contextSystemKey__';
[10454] Fix | Delete
[10455] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/context/utils.js
[10456] Fix | Delete
/**
[10457] Fix | Delete
* Internal dependencies
[10458] Fix | Delete
*/
[10459] Fix | Delete
[10460] Fix | Delete
[10461] Fix | Delete
/**
[10462] Fix | Delete
* Creates a dedicated context namespace HTML attribute for components.
[10463] Fix | Delete
* ns is short for "namespace"
[10464] Fix | Delete
*
[10465] Fix | Delete
* @example
[10466] Fix | Delete
* ```jsx
[10467] Fix | Delete
* <div {...ns('Container')} />
[10468] Fix | Delete
* ```
[10469] Fix | Delete
*
[10470] Fix | Delete
* @param {string} componentName The name for the component.
[10471] Fix | Delete
* @return {Record<string, any>} A props object with the namespaced HTML attribute.
[10472] Fix | Delete
*/
[10473] Fix | Delete
function getNamespace(componentName) {
[10474] Fix | Delete
return {
[10475] Fix | Delete
[COMPONENT_NAMESPACE]: componentName
[10476] Fix | Delete
};
[10477] Fix | Delete
}
[10478] Fix | Delete
[10479] Fix | Delete
/**
[10480] Fix | Delete
* Creates a dedicated connected context namespace HTML attribute for components.
[10481] Fix | Delete
* ns is short for "namespace"
[10482] Fix | Delete
*
[10483] Fix | Delete
* @example
[10484] Fix | Delete
* ```jsx
[10485] Fix | Delete
* <div {...cns()} />
[10486] Fix | Delete
* ```
[10487] Fix | Delete
*
[10488] Fix | Delete
* @return {Record<string, any>} A props object with the namespaced HTML attribute.
[10489] Fix | Delete
*/
[10490] Fix | Delete
function getConnectedNamespace() {
[10491] Fix | Delete
return {
[10492] Fix | Delete
[CONNECTED_NAMESPACE]: true
[10493] Fix | Delete
};
[10494] Fix | Delete
}
[10495] Fix | Delete
[10496] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.mjs
[10497] Fix | Delete
/******************************************************************************
[10498] Fix | Delete
Copyright (c) Microsoft Corporation.
[10499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function