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
} : 0)("position:relative;display:flex;align-items:stretch;flex-direction:row;&[aria-orientation='vertical']{flex-direction:column;}@media not ( prefers-reduced-motion: reduce ){&.is-animation-enabled::after{transition-property:left,top,width,height;transition-duration:0.2s;transition-timing-function:ease-out;}}&::after{content:'';position:absolute;pointer-events:none;outline:2px solid transparent;outline-offset:-1px;}&:not( [aria-orientation='vertical'] )::after{left:var( --indicator-left );bottom:0;width:var( --indicator-width );height:0;border-bottom:var( --wp-admin-border-width-focus ) solid ", COLORS.theme.accent, ";}&[aria-orientation='vertical']::after{opacity:0;right:0;top:var( --indicator-top );height:var( --indicator-height );border-right:var( --wp-admin-border-width-focus ) solid ", COLORS.theme.accent, ";}" + ( true ? "" : 0));
[73500] Fix | Delete
const styles_Tab = /*#__PURE__*/emotion_styled_base_browser_esm(Tab, true ? {
[73501] Fix | Delete
target: "enfox0g1"
[73502] Fix | Delete
} : 0)("&{display:inline-flex;align-items:center;position:relative;border-radius:0;height:", space(12), ";background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px ", space(4), ";margin-left:0;font-weight:500;&[aria-disabled='true']{cursor:default;opacity:0.3;}&:hover{color:", COLORS.theme.accent, ";}&:focus:not( :disabled ){position:relative;box-shadow:none;outline:none;}&::before{content:'';position:absolute;top:", space(3), ";right:", space(3), ";bottom:", space(3), ";left:", space(3), ";pointer-events:none;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ", COLORS.theme.accent, ";border-radius:2px;opacity:0;@media not ( prefers-reduced-motion ){transition:opacity 0.1s linear;}}&:focus-visible::before{opacity:1;outline:2px solid transparent;}}" + ( true ? "" : 0));
[73503] Fix | Delete
const styles_TabPanel = /*#__PURE__*/emotion_styled_base_browser_esm(TabPanel, true ? {
[73504] Fix | Delete
target: "enfox0g0"
[73505] Fix | Delete
} : 0)("&:focus{box-shadow:none;outline:none;}&:focus-visible{border-radius:2px;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ", COLORS.theme.accent, ";outline:2px solid transparent;outline-offset:0;}" + ( true ? "" : 0));
[73506] Fix | Delete
[73507] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/tab.js
[73508] Fix | Delete
/**
[73509] Fix | Delete
* WordPress dependencies
[73510] Fix | Delete
*/
[73511] Fix | Delete
[73512] Fix | Delete
[73513] Fix | Delete
[73514] Fix | Delete
/**
[73515] Fix | Delete
* Internal dependencies
[73516] Fix | Delete
*/
[73517] Fix | Delete
[73518] Fix | Delete
[73519] Fix | Delete
[73520] Fix | Delete
[73521] Fix | Delete
[73522] Fix | Delete
const tab_Tab = (0,external_wp_element_namespaceObject.forwardRef)(function Tab({
[73523] Fix | Delete
children,
[73524] Fix | Delete
tabId,
[73525] Fix | Delete
disabled,
[73526] Fix | Delete
render,
[73527] Fix | Delete
...otherProps
[73528] Fix | Delete
}, ref) {
[73529] Fix | Delete
const context = useTabsContext();
[73530] Fix | Delete
if (!context) {
[73531] Fix | Delete
true ? external_wp_warning_default()('`Tabs.Tab` must be wrapped in a `Tabs` component.') : 0;
[73532] Fix | Delete
return null;
[73533] Fix | Delete
}
[73534] Fix | Delete
const {
[73535] Fix | Delete
store,
[73536] Fix | Delete
instanceId
[73537] Fix | Delete
} = context;
[73538] Fix | Delete
const instancedTabId = `${instanceId}-${tabId}`;
[73539] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_Tab, {
[73540] Fix | Delete
ref: ref,
[73541] Fix | Delete
store: store,
[73542] Fix | Delete
id: instancedTabId,
[73543] Fix | Delete
disabled: disabled,
[73544] Fix | Delete
render: render,
[73545] Fix | Delete
...otherProps,
[73546] Fix | Delete
children: children
[73547] Fix | Delete
});
[73548] Fix | Delete
});
[73549] Fix | Delete
[73550] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/tablist.js
[73551] Fix | Delete
/**
[73552] Fix | Delete
* External dependencies
[73553] Fix | Delete
*/
[73554] Fix | Delete
// eslint-disable-next-line no-restricted-imports
[73555] Fix | Delete
[73556] Fix | Delete
[73557] Fix | Delete
/**
[73558] Fix | Delete
* WordPress dependencies
[73559] Fix | Delete
*/
[73560] Fix | Delete
[73561] Fix | Delete
[73562] Fix | Delete
[73563] Fix | Delete
/**
[73564] Fix | Delete
* Internal dependencies
[73565] Fix | Delete
*/
[73566] Fix | Delete
[73567] Fix | Delete
[73568] Fix | Delete
[73569] Fix | Delete
[73570] Fix | Delete
[73571] Fix | Delete
function useTrackElementOffset(targetElement, onUpdate) {
[73572] Fix | Delete
const [indicatorPosition, setIndicatorPosition] = (0,external_wp_element_namespaceObject.useState)({
[73573] Fix | Delete
left: 0,
[73574] Fix | Delete
top: 0,
[73575] Fix | Delete
width: 0,
[73576] Fix | Delete
height: 0
[73577] Fix | Delete
});
[73578] Fix | Delete
[73579] Fix | Delete
// TODO: replace with useEventCallback or similar when officially available.
[73580] Fix | Delete
const updateCallbackRef = (0,external_wp_element_namespaceObject.useRef)(onUpdate);
[73581] Fix | Delete
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
[73582] Fix | Delete
updateCallbackRef.current = onUpdate;
[73583] Fix | Delete
});
[73584] Fix | Delete
const observedElementRef = (0,external_wp_element_namespaceObject.useRef)();
[73585] Fix | Delete
const resizeObserverRef = (0,external_wp_element_namespaceObject.useRef)();
[73586] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[73587] Fix | Delete
if (targetElement === observedElementRef.current) {
[73588] Fix | Delete
return;
[73589] Fix | Delete
}
[73590] Fix | Delete
observedElementRef.current = targetElement !== null && targetElement !== void 0 ? targetElement : undefined;
[73591] Fix | Delete
function updateIndicator(element) {
[73592] Fix | Delete
setIndicatorPosition({
[73593] Fix | Delete
// Workaround to prevent unwanted scrollbars, see:
[73594] Fix | Delete
// https://github.com/WordPress/gutenberg/pull/61979
[73595] Fix | Delete
left: Math.max(element.offsetLeft - 1, 0),
[73596] Fix | Delete
top: Math.max(element.offsetTop - 1, 0),
[73597] Fix | Delete
width: parseFloat(getComputedStyle(element).width),
[73598] Fix | Delete
height: parseFloat(getComputedStyle(element).height)
[73599] Fix | Delete
});
[73600] Fix | Delete
updateCallbackRef.current?.();
[73601] Fix | Delete
}
[73602] Fix | Delete
[73603] Fix | Delete
// Set up a ResizeObserver.
[73604] Fix | Delete
if (!resizeObserverRef.current) {
[73605] Fix | Delete
resizeObserverRef.current = new ResizeObserver(() => {
[73606] Fix | Delete
if (observedElementRef.current) {
[73607] Fix | Delete
updateIndicator(observedElementRef.current);
[73608] Fix | Delete
}
[73609] Fix | Delete
});
[73610] Fix | Delete
}
[73611] Fix | Delete
const {
[73612] Fix | Delete
current: resizeObserver
[73613] Fix | Delete
} = resizeObserverRef;
[73614] Fix | Delete
[73615] Fix | Delete
// Observe new element.
[73616] Fix | Delete
if (targetElement) {
[73617] Fix | Delete
updateIndicator(targetElement);
[73618] Fix | Delete
resizeObserver.observe(targetElement);
[73619] Fix | Delete
}
[73620] Fix | Delete
return () => {
[73621] Fix | Delete
// Unobserve previous element.
[73622] Fix | Delete
if (observedElementRef.current) {
[73623] Fix | Delete
resizeObserver.unobserve(observedElementRef.current);
[73624] Fix | Delete
}
[73625] Fix | Delete
};
[73626] Fix | Delete
}, [targetElement]);
[73627] Fix | Delete
return indicatorPosition;
[73628] Fix | Delete
}
[73629] Fix | Delete
function useOnValueUpdate(value, onUpdate) {
[73630] Fix | Delete
const previousValueRef = (0,external_wp_element_namespaceObject.useRef)(value);
[73631] Fix | Delete
[73632] Fix | Delete
// TODO: replace with useEventCallback or similar when officially available.
[73633] Fix | Delete
const updateCallbackRef = (0,external_wp_element_namespaceObject.useRef)(onUpdate);
[73634] Fix | Delete
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
[73635] Fix | Delete
updateCallbackRef.current = onUpdate;
[73636] Fix | Delete
});
[73637] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[73638] Fix | Delete
if (previousValueRef.current !== value) {
[73639] Fix | Delete
updateCallbackRef.current({
[73640] Fix | Delete
previousValue: previousValueRef.current
[73641] Fix | Delete
});
[73642] Fix | Delete
previousValueRef.current = value;
[73643] Fix | Delete
}
[73644] Fix | Delete
}, [value]);
[73645] Fix | Delete
}
[73646] Fix | Delete
const TabList = (0,external_wp_element_namespaceObject.forwardRef)(function TabList({
[73647] Fix | Delete
children,
[73648] Fix | Delete
...otherProps
[73649] Fix | Delete
}, ref) {
[73650] Fix | Delete
const context = useTabsContext();
[73651] Fix | Delete
const selectedId = context?.store.useState('selectedId');
[73652] Fix | Delete
const indicatorPosition = useTrackElementOffset(context?.store.item(selectedId)?.element);
[73653] Fix | Delete
const [animationEnabled, setAnimationEnabled] = (0,external_wp_element_namespaceObject.useState)(false);
[73654] Fix | Delete
useOnValueUpdate(selectedId, ({
[73655] Fix | Delete
previousValue
[73656] Fix | Delete
}) => previousValue && setAnimationEnabled(true));
[73657] Fix | Delete
if (!context) {
[73658] Fix | Delete
true ? external_wp_warning_default()('`Tabs.TabList` must be wrapped in a `Tabs` component.') : 0;
[73659] Fix | Delete
return null;
[73660] Fix | Delete
}
[73661] Fix | Delete
const {
[73662] Fix | Delete
store
[73663] Fix | Delete
} = context;
[73664] Fix | Delete
const {
[73665] Fix | Delete
activeId,
[73666] Fix | Delete
selectOnMove
[73667] Fix | Delete
} = store.useState();
[73668] Fix | Delete
const {
[73669] Fix | Delete
setActiveId
[73670] Fix | Delete
} = store;
[73671] Fix | Delete
const onBlur = () => {
[73672] Fix | Delete
if (!selectOnMove) {
[73673] Fix | Delete
return;
[73674] Fix | Delete
}
[73675] Fix | Delete
[73676] Fix | Delete
// When automatic tab selection is on, make sure that the active tab is up
[73677] Fix | Delete
// to date with the selected tab when leaving the tablist. This makes sure
[73678] Fix | Delete
// that the selected tab will receive keyboard focus when tabbing back into
[73679] Fix | Delete
// the tablist.
[73680] Fix | Delete
if (selectedId !== activeId) {
[73681] Fix | Delete
setActiveId(selectedId);
[73682] Fix | Delete
}
[73683] Fix | Delete
};
[73684] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tab_list_TabList, {
[73685] Fix | Delete
ref: ref,
[73686] Fix | Delete
store: store,
[73687] Fix | Delete
render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TabListWrapper, {
[73688] Fix | Delete
onTransitionEnd: event => {
[73689] Fix | Delete
if (event.pseudoElement === '::after') {
[73690] Fix | Delete
setAnimationEnabled(false);
[73691] Fix | Delete
}
[73692] Fix | Delete
}
[73693] Fix | Delete
}),
[73694] Fix | Delete
onBlur: onBlur,
[73695] Fix | Delete
...otherProps,
[73696] Fix | Delete
style: {
[73697] Fix | Delete
'--indicator-left': `${indicatorPosition.left}px`,
[73698] Fix | Delete
'--indicator-top': `${indicatorPosition.top}px`,
[73699] Fix | Delete
'--indicator-width': `${indicatorPosition.width}px`,
[73700] Fix | Delete
'--indicator-height': `${indicatorPosition.height}px`,
[73701] Fix | Delete
...otherProps.style
[73702] Fix | Delete
},
[73703] Fix | Delete
className: dist_clsx(animationEnabled ? 'is-animation-enabled' : '', otherProps.className),
[73704] Fix | Delete
children: children
[73705] Fix | Delete
});
[73706] Fix | Delete
});
[73707] Fix | Delete
[73708] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/tabpanel.js
[73709] Fix | Delete
/**
[73710] Fix | Delete
* WordPress dependencies
[73711] Fix | Delete
*/
[73712] Fix | Delete
[73713] Fix | Delete
[73714] Fix | Delete
[73715] Fix | Delete
/**
[73716] Fix | Delete
* Internal dependencies
[73717] Fix | Delete
*/
[73718] Fix | Delete
[73719] Fix | Delete
[73720] Fix | Delete
[73721] Fix | Delete
[73722] Fix | Delete
[73723] Fix | Delete
const tabpanel_TabPanel = (0,external_wp_element_namespaceObject.forwardRef)(function TabPanel({
[73724] Fix | Delete
children,
[73725] Fix | Delete
tabId,
[73726] Fix | Delete
focusable = true,
[73727] Fix | Delete
...otherProps
[73728] Fix | Delete
}, ref) {
[73729] Fix | Delete
const context = useTabsContext();
[73730] Fix | Delete
if (!context) {
[73731] Fix | Delete
true ? external_wp_warning_default()('`Tabs.TabPanel` must be wrapped in a `Tabs` component.') : 0;
[73732] Fix | Delete
return null;
[73733] Fix | Delete
}
[73734] Fix | Delete
const {
[73735] Fix | Delete
store,
[73736] Fix | Delete
instanceId
[73737] Fix | Delete
} = context;
[73738] Fix | Delete
const instancedTabId = `${instanceId}-${tabId}`;
[73739] Fix | Delete
const selectedId = store.useState(state => state.selectedId);
[73740] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_TabPanel, {
[73741] Fix | Delete
ref: ref,
[73742] Fix | Delete
store: store
[73743] Fix | Delete
// For TabPanel, the id passed here is the id attribute of the DOM
[73744] Fix | Delete
// element.
[73745] Fix | Delete
// `tabId` is the id of the tab that controls this panel.
[73746] Fix | Delete
,
[73747] Fix | Delete
id: `${instancedTabId}-view`,
[73748] Fix | Delete
tabId: instancedTabId,
[73749] Fix | Delete
focusable: focusable,
[73750] Fix | Delete
...otherProps,
[73751] Fix | Delete
children: selectedId === instancedTabId && children
[73752] Fix | Delete
});
[73753] Fix | Delete
});
[73754] Fix | Delete
[73755] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/index.js
[73756] Fix | Delete
/**
[73757] Fix | Delete
* External dependencies
[73758] Fix | Delete
*/
[73759] Fix | Delete
// eslint-disable-next-line no-restricted-imports
[73760] Fix | Delete
[73761] Fix | Delete
[73762] Fix | Delete
/**
[73763] Fix | Delete
* WordPress dependencies
[73764] Fix | Delete
*/
[73765] Fix | Delete
[73766] Fix | Delete
[73767] Fix | Delete
[73768] Fix | Delete
/**
[73769] Fix | Delete
* Internal dependencies
[73770] Fix | Delete
*/
[73771] Fix | Delete
[73772] Fix | Delete
[73773] Fix | Delete
[73774] Fix | Delete
[73775] Fix | Delete
[73776] Fix | Delete
[73777] Fix | Delete
function Tabs({
[73778] Fix | Delete
selectOnMove = true,
[73779] Fix | Delete
defaultTabId,
[73780] Fix | Delete
orientation = 'horizontal',
[73781] Fix | Delete
onSelect,
[73782] Fix | Delete
children,
[73783] Fix | Delete
selectedTabId
[73784] Fix | Delete
}) {
[73785] Fix | Delete
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(Tabs, 'tabs');
[73786] Fix | Delete
const store = useTabStore({
[73787] Fix | Delete
selectOnMove,
[73788] Fix | Delete
orientation,
[73789] Fix | Delete
defaultSelectedId: defaultTabId && `${instanceId}-${defaultTabId}`,
[73790] Fix | Delete
setSelectedId: selectedId => {
[73791] Fix | Delete
const strippedDownId = typeof selectedId === 'string' ? selectedId.replace(`${instanceId}-`, '') : selectedId;
[73792] Fix | Delete
onSelect?.(strippedDownId);
[73793] Fix | Delete
},
[73794] Fix | Delete
selectedId: selectedTabId && `${instanceId}-${selectedTabId}`
[73795] Fix | Delete
});
[73796] Fix | Delete
const isControlled = selectedTabId !== undefined;
[73797] Fix | Delete
const {
[73798] Fix | Delete
items,
[73799] Fix | Delete
selectedId,
[73800] Fix | Delete
activeId
[73801] Fix | Delete
} = store.useState();
[73802] Fix | Delete
const {
[73803] Fix | Delete
setSelectedId,
[73804] Fix | Delete
setActiveId
[73805] Fix | Delete
} = store;
[73806] Fix | Delete
[73807] Fix | Delete
// Keep track of whether tabs have been populated. This is used to prevent
[73808] Fix | Delete
// certain effects from firing too early while tab data and relevant
[73809] Fix | Delete
// variables are undefined during the initial render.
[73810] Fix | Delete
const tabsHavePopulated = (0,external_wp_element_namespaceObject.useRef)(false);
[73811] Fix | Delete
if (items.length > 0) {
[73812] Fix | Delete
tabsHavePopulated.current = true;
[73813] Fix | Delete
}
[73814] Fix | Delete
const selectedTab = items.find(item => item.id === selectedId);
[73815] Fix | Delete
const firstEnabledTab = items.find(item => {
[73816] Fix | Delete
// Ariakit internally refers to disabled tabs as `dimmed`.
[73817] Fix | Delete
return !item.dimmed;
[73818] Fix | Delete
});
[73819] Fix | Delete
const initialTab = items.find(item => item.id === `${instanceId}-${defaultTabId}`);
[73820] Fix | Delete
[73821] Fix | Delete
// Handle selecting the initial tab.
[73822] Fix | Delete
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
[73823] Fix | Delete
if (isControlled) {
[73824] Fix | Delete
return;
[73825] Fix | Delete
}
[73826] Fix | Delete
[73827] Fix | Delete
// Wait for the denoted initial tab to be declared before making a
[73828] Fix | Delete
// selection. This ensures that if a tab is declared lazily it can
[73829] Fix | Delete
// still receive initial selection, as well as ensuring no tab is
[73830] Fix | Delete
// selected if an invalid `defaultTabId` is provided.
[73831] Fix | Delete
if (defaultTabId && !initialTab) {
[73832] Fix | Delete
return;
[73833] Fix | Delete
}
[73834] Fix | Delete
[73835] Fix | Delete
// If the currently selected tab is missing (i.e. removed from the DOM),
[73836] Fix | Delete
// fall back to the initial tab or the first enabled tab if there is
[73837] Fix | Delete
// one. Otherwise, no tab should be selected.
[73838] Fix | Delete
if (!items.find(item => item.id === selectedId)) {
[73839] Fix | Delete
if (initialTab && !initialTab.dimmed) {
[73840] Fix | Delete
setSelectedId(initialTab?.id);
[73841] Fix | Delete
return;
[73842] Fix | Delete
}
[73843] Fix | Delete
if (firstEnabledTab) {
[73844] Fix | Delete
setSelectedId(firstEnabledTab.id);
[73845] Fix | Delete
} else if (tabsHavePopulated.current) {
[73846] Fix | Delete
setSelectedId(null);
[73847] Fix | Delete
}
[73848] Fix | Delete
}
[73849] Fix | Delete
}, [firstEnabledTab, initialTab, defaultTabId, isControlled, items, selectedId, setSelectedId]);
[73850] Fix | Delete
[73851] Fix | Delete
// Handle the currently selected tab becoming disabled.
[73852] Fix | Delete
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
[73853] Fix | Delete
if (!selectedTab?.dimmed) {
[73854] Fix | Delete
return;
[73855] Fix | Delete
}
[73856] Fix | Delete
[73857] Fix | Delete
// In controlled mode, we trust that disabling tabs is done
[73858] Fix | Delete
// intentionally, and don't select a new tab automatically.
[73859] Fix | Delete
if (isControlled) {
[73860] Fix | Delete
setSelectedId(null);
[73861] Fix | Delete
return;
[73862] Fix | Delete
}
[73863] Fix | Delete
[73864] Fix | Delete
// If the currently selected tab becomes disabled, fall back to the
[73865] Fix | Delete
// `defaultTabId` if possible. Otherwise select the first
[73866] Fix | Delete
// enabled tab (if there is one).
[73867] Fix | Delete
if (initialTab && !initialTab.dimmed) {
[73868] Fix | Delete
setSelectedId(initialTab.id);
[73869] Fix | Delete
return;
[73870] Fix | Delete
}
[73871] Fix | Delete
if (firstEnabledTab) {
[73872] Fix | Delete
setSelectedId(firstEnabledTab.id);
[73873] Fix | Delete
}
[73874] Fix | Delete
}, [firstEnabledTab, initialTab, isControlled, selectedTab?.dimmed, setSelectedId]);
[73875] Fix | Delete
[73876] Fix | Delete
// Clear `selectedId` if the active tab is removed from the DOM in controlled mode.
[73877] Fix | Delete
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
[73878] Fix | Delete
if (!isControlled) {
[73879] Fix | Delete
return;
[73880] Fix | Delete
}
[73881] Fix | Delete
[73882] Fix | Delete
// Once the tabs have populated, if the `selectedTabId` still can't be
[73883] Fix | Delete
// found, clear the selection.
[73884] Fix | Delete
if (tabsHavePopulated.current && !!selectedTabId && !selectedTab) {
[73885] Fix | Delete
setSelectedId(null);
[73886] Fix | Delete
}
[73887] Fix | Delete
}, [isControlled, selectedTab, selectedTabId, setSelectedId]);
[73888] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[73889] Fix | Delete
// If there is no active tab, fallback to place focus on the first enabled tab
[73890] Fix | Delete
// so there is always an active element
[73891] Fix | Delete
if (selectedTabId === null && !activeId && firstEnabledTab?.id) {
[73892] Fix | Delete
setActiveId(firstEnabledTab.id);
[73893] Fix | Delete
}
[73894] Fix | Delete
}, [selectedTabId, activeId, firstEnabledTab?.id, setActiveId]);
[73895] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[73896] Fix | Delete
if (!isControlled) {
[73897] Fix | Delete
return;
[73898] Fix | Delete
}
[73899] Fix | Delete
requestAnimationFrame(() => {
[73900] Fix | Delete
const focusedElement = items?.[0]?.element?.ownerDocument.activeElement;
[73901] Fix | Delete
if (!focusedElement || !items.some(item => focusedElement === item.element)) {
[73902] Fix | Delete
return; // Return early if no tabs are focused.
[73903] Fix | Delete
}
[73904] Fix | Delete
[73905] Fix | Delete
// If, after ariakit re-computes the active tab, that tab doesn't match
[73906] Fix | Delete
// the currently focused tab, then we force an update to ariakit to avoid
[73907] Fix | Delete
// any mismatches, especially when navigating to previous/next tab with
[73908] Fix | Delete
// arrow keys.
[73909] Fix | Delete
if (activeId !== focusedElement.id) {
[73910] Fix | Delete
setActiveId(focusedElement.id);
[73911] Fix | Delete
}
[73912] Fix | Delete
});
[73913] Fix | Delete
}, [activeId, isControlled, items, setActiveId]);
[73914] Fix | Delete
const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
[73915] Fix | Delete
store,
[73916] Fix | Delete
instanceId
[73917] Fix | Delete
}), [store, instanceId]);
[73918] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TabsContext.Provider, {
[73919] Fix | Delete
value: contextValue,
[73920] Fix | Delete
children: children
[73921] Fix | Delete
});
[73922] Fix | Delete
}
[73923] Fix | Delete
Tabs.TabList = TabList;
[73924] Fix | Delete
Tabs.Tab = tab_Tab;
[73925] Fix | Delete
Tabs.TabPanel = tabpanel_TabPanel;
[73926] Fix | Delete
Tabs.Context = TabsContext;
[73927] Fix | Delete
/* harmony default export */ const tabs = (Tabs);
[73928] Fix | Delete
[73929] Fix | Delete
;// CONCATENATED MODULE: external ["wp","privateApis"]
[73930] Fix | Delete
const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
[73931] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/lock-unlock.js
[73932] Fix | Delete
/**
[73933] Fix | Delete
* WordPress dependencies
[73934] Fix | Delete
*/
[73935] Fix | Delete
[73936] Fix | Delete
const {
[73937] Fix | Delete
lock,
[73938] Fix | Delete
unlock
[73939] Fix | Delete
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/components');
[73940] Fix | Delete
[73941] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/private-apis.js
[73942] Fix | Delete
/**
[73943] Fix | Delete
* WordPress dependencies
[73944] Fix | Delete
*/
[73945] Fix | Delete
[73946] Fix | Delete
/**
[73947] Fix | Delete
* Internal dependencies
[73948] Fix | Delete
*/
[73949] Fix | Delete
[73950] Fix | Delete
[73951] Fix | Delete
[73952] Fix | Delete
[73953] Fix | Delete
[73954] Fix | Delete
[73955] Fix | Delete
[73956] Fix | Delete
[73957] Fix | Delete
[73958] Fix | Delete
[73959] Fix | Delete
const privateApis = {};
[73960] Fix | Delete
lock(privateApis, {
[73961] Fix | Delete
CompositeV2: Composite,
[73962] Fix | Delete
CompositeGroupV2: CompositeGroup,
[73963] Fix | Delete
CompositeItemV2: CompositeItem,
[73964] Fix | Delete
CompositeRowV2: CompositeRow,
[73965] Fix | Delete
useCompositeStoreV2: useCompositeStore,
[73966] Fix | Delete
CustomSelectControl: CustomSelectControl,
[73967] Fix | Delete
__experimentalPopoverLegacyPositionToPlacement: positionToPlacement,
[73968] Fix | Delete
createPrivateSlotFill: createPrivateSlotFill,
[73969] Fix | Delete
ComponentsContext: ComponentsContext,
[73970] Fix | Delete
Tabs: tabs,
[73971] Fix | Delete
Theme: theme,
[73972] Fix | Delete
DropdownMenuV2: dropdown_menu_v2_DropdownMenu,
[73973] Fix | Delete
DropdownMenuGroupV2: DropdownMenuGroup,
[73974] Fix | Delete
DropdownMenuItemV2: DropdownMenuItem,
[73975] Fix | Delete
DropdownMenuCheckboxItemV2: DropdownMenuCheckboxItem,
[73976] Fix | Delete
DropdownMenuRadioItemV2: DropdownMenuRadioItem,
[73977] Fix | Delete
DropdownMenuSeparatorV2: DropdownMenuSeparator,
[73978] Fix | Delete
DropdownMenuItemLabelV2: DropdownMenuItemLabel,
[73979] Fix | Delete
DropdownMenuItemHelpTextV2: DropdownMenuItemHelpText,
[73980] Fix | Delete
kebabCase: kebabCase
[73981] Fix | Delete
});
[73982] Fix | Delete
[73983] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/index.js
[73984] Fix | Delete
// Primitives.
[73985] Fix | Delete
[73986] Fix | Delete
[73987] Fix | Delete
// Components.
[73988] Fix | Delete
[73989] Fix | Delete
[73990] Fix | Delete
[73991] Fix | Delete
[73992] Fix | Delete
[73993] Fix | Delete
[73994] Fix | Delete
[73995] Fix | Delete
[73996] Fix | Delete
[73997] Fix | Delete
[73998] Fix | Delete
[73999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function