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
function useAutoFocusOnHide(_a) {
[9500] Fix | Delete
var _b = _a, {
[9501] Fix | Delete
store
[9502] Fix | Delete
} = _b, props = __objRest(_b, [
[9503] Fix | Delete
"store"
[9504] Fix | Delete
]);
[9505] Fix | Delete
const [autoFocusOnHide, setAutoFocusOnHide] = (0,external_React_.useState)(false);
[9506] Fix | Delete
const mounted = store.useState("mounted");
[9507] Fix | Delete
(0,external_React_.useEffect)(() => {
[9508] Fix | Delete
if (!mounted) {
[9509] Fix | Delete
setAutoFocusOnHide(false);
[9510] Fix | Delete
}
[9511] Fix | Delete
}, [mounted]);
[9512] Fix | Delete
const onFocusProp = props.onFocus;
[9513] Fix | Delete
const onFocus = useEvent((event) => {
[9514] Fix | Delete
onFocusProp == null ? void 0 : onFocusProp(event);
[9515] Fix | Delete
if (event.defaultPrevented)
[9516] Fix | Delete
return;
[9517] Fix | Delete
setAutoFocusOnHide(true);
[9518] Fix | Delete
});
[9519] Fix | Delete
const finalFocusRef = (0,external_React_.useRef)(null);
[9520] Fix | Delete
(0,external_React_.useEffect)(() => {
[9521] Fix | Delete
return sync(store, ["anchorElement"], (state) => {
[9522] Fix | Delete
finalFocusRef.current = state.anchorElement;
[9523] Fix | Delete
});
[9524] Fix | Delete
}, []);
[9525] Fix | Delete
props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
[9526] Fix | Delete
autoFocusOnHide,
[9527] Fix | Delete
finalFocus: finalFocusRef
[9528] Fix | Delete
}, props), {
[9529] Fix | Delete
onFocus
[9530] Fix | Delete
});
[9531] Fix | Delete
return props;
[9532] Fix | Delete
}
[9533] Fix | Delete
var NestedHovercardContext = (0,external_React_.createContext)(null);
[9534] Fix | Delete
var useHovercard = createHook(
[9535] Fix | Delete
(_a) => {
[9536] Fix | Delete
var _b = _a, {
[9537] Fix | Delete
store,
[9538] Fix | Delete
modal = false,
[9539] Fix | Delete
portal = !!modal,
[9540] Fix | Delete
hideOnEscape = true,
[9541] Fix | Delete
hideOnHoverOutside = true,
[9542] Fix | Delete
disablePointerEventsOnApproach = !!hideOnHoverOutside
[9543] Fix | Delete
} = _b, props = __objRest(_b, [
[9544] Fix | Delete
"store",
[9545] Fix | Delete
"modal",
[9546] Fix | Delete
"portal",
[9547] Fix | Delete
"hideOnEscape",
[9548] Fix | Delete
"hideOnHoverOutside",
[9549] Fix | Delete
"disablePointerEventsOnApproach"
[9550] Fix | Delete
]);
[9551] Fix | Delete
const context = useHovercardProviderContext();
[9552] Fix | Delete
store = store || context;
[9553] Fix | Delete
invariant(
[9554] Fix | Delete
store,
[9555] Fix | Delete
false && 0
[9556] Fix | Delete
);
[9557] Fix | Delete
const ref = (0,external_React_.useRef)(null);
[9558] Fix | Delete
const [nestedHovercards, setNestedHovercards] = (0,external_React_.useState)([]);
[9559] Fix | Delete
const hideTimeoutRef = (0,external_React_.useRef)(0);
[9560] Fix | Delete
const enterPointRef = (0,external_React_.useRef)(null);
[9561] Fix | Delete
const { portalRef, domReady } = usePortalRef(portal, props.portalRef);
[9562] Fix | Delete
const mayHideOnHoverOutside = !!hideOnHoverOutside;
[9563] Fix | Delete
const hideOnHoverOutsideProp = useBooleanEvent(hideOnHoverOutside);
[9564] Fix | Delete
const mayDisablePointerEvents = !!disablePointerEventsOnApproach;
[9565] Fix | Delete
const disablePointerEventsProp = useBooleanEvent(
[9566] Fix | Delete
disablePointerEventsOnApproach
[9567] Fix | Delete
);
[9568] Fix | Delete
const open = store.useState("open");
[9569] Fix | Delete
const mounted = store.useState("mounted");
[9570] Fix | Delete
(0,external_React_.useEffect)(() => {
[9571] Fix | Delete
if (!domReady)
[9572] Fix | Delete
return;
[9573] Fix | Delete
if (!mounted)
[9574] Fix | Delete
return;
[9575] Fix | Delete
if (!mayHideOnHoverOutside && !mayDisablePointerEvents)
[9576] Fix | Delete
return;
[9577] Fix | Delete
const element = ref.current;
[9578] Fix | Delete
if (!element)
[9579] Fix | Delete
return;
[9580] Fix | Delete
const onMouseMove = (event) => {
[9581] Fix | Delete
if (!store)
[9582] Fix | Delete
return;
[9583] Fix | Delete
const { anchorElement, hideTimeout, timeout } = store.getState();
[9584] Fix | Delete
const enterPoint = enterPointRef.current;
[9585] Fix | Delete
const [target] = event.composedPath();
[9586] Fix | Delete
const anchor = anchorElement;
[9587] Fix | Delete
if (isMovingOnHovercard(target, element, anchor, nestedHovercards)) {
[9588] Fix | Delete
enterPointRef.current = target && anchor && contains(anchor, target) ? getEventPoint(event) : null;
[9589] Fix | Delete
window.clearTimeout(hideTimeoutRef.current);
[9590] Fix | Delete
hideTimeoutRef.current = 0;
[9591] Fix | Delete
return;
[9592] Fix | Delete
}
[9593] Fix | Delete
if (hideTimeoutRef.current)
[9594] Fix | Delete
return;
[9595] Fix | Delete
if (enterPoint) {
[9596] Fix | Delete
const currentPoint = getEventPoint(event);
[9597] Fix | Delete
const polygon = getElementPolygon(element, enterPoint);
[9598] Fix | Delete
if (isPointInPolygon(currentPoint, polygon)) {
[9599] Fix | Delete
enterPointRef.current = currentPoint;
[9600] Fix | Delete
if (!disablePointerEventsProp(event))
[9601] Fix | Delete
return;
[9602] Fix | Delete
event.preventDefault();
[9603] Fix | Delete
event.stopPropagation();
[9604] Fix | Delete
return;
[9605] Fix | Delete
}
[9606] Fix | Delete
}
[9607] Fix | Delete
if (!hideOnHoverOutsideProp(event))
[9608] Fix | Delete
return;
[9609] Fix | Delete
hideTimeoutRef.current = window.setTimeout(() => {
[9610] Fix | Delete
hideTimeoutRef.current = 0;
[9611] Fix | Delete
store == null ? void 0 : store.hide();
[9612] Fix | Delete
}, hideTimeout != null ? hideTimeout : timeout);
[9613] Fix | Delete
};
[9614] Fix | Delete
return chain(
[9615] Fix | Delete
addGlobalEventListener("mousemove", onMouseMove, true),
[9616] Fix | Delete
() => clearTimeout(hideTimeoutRef.current)
[9617] Fix | Delete
);
[9618] Fix | Delete
}, [
[9619] Fix | Delete
store,
[9620] Fix | Delete
domReady,
[9621] Fix | Delete
mounted,
[9622] Fix | Delete
mayHideOnHoverOutside,
[9623] Fix | Delete
mayDisablePointerEvents,
[9624] Fix | Delete
nestedHovercards,
[9625] Fix | Delete
disablePointerEventsProp,
[9626] Fix | Delete
hideOnHoverOutsideProp
[9627] Fix | Delete
]);
[9628] Fix | Delete
(0,external_React_.useEffect)(() => {
[9629] Fix | Delete
if (!domReady)
[9630] Fix | Delete
return;
[9631] Fix | Delete
if (!mounted)
[9632] Fix | Delete
return;
[9633] Fix | Delete
if (!mayDisablePointerEvents)
[9634] Fix | Delete
return;
[9635] Fix | Delete
const disableEvent = (event) => {
[9636] Fix | Delete
const element = ref.current;
[9637] Fix | Delete
if (!element)
[9638] Fix | Delete
return;
[9639] Fix | Delete
const enterPoint = enterPointRef.current;
[9640] Fix | Delete
if (!enterPoint)
[9641] Fix | Delete
return;
[9642] Fix | Delete
const polygon = getElementPolygon(element, enterPoint);
[9643] Fix | Delete
if (isPointInPolygon(getEventPoint(event), polygon)) {
[9644] Fix | Delete
if (!disablePointerEventsProp(event))
[9645] Fix | Delete
return;
[9646] Fix | Delete
event.preventDefault();
[9647] Fix | Delete
event.stopPropagation();
[9648] Fix | Delete
}
[9649] Fix | Delete
};
[9650] Fix | Delete
return chain(
[9651] Fix | Delete
// Note: we may need to add pointer events here in the future.
[9652] Fix | Delete
addGlobalEventListener("mouseenter", disableEvent, true),
[9653] Fix | Delete
addGlobalEventListener("mouseover", disableEvent, true),
[9654] Fix | Delete
addGlobalEventListener("mouseout", disableEvent, true),
[9655] Fix | Delete
addGlobalEventListener("mouseleave", disableEvent, true)
[9656] Fix | Delete
);
[9657] Fix | Delete
}, [domReady, mounted, mayDisablePointerEvents, disablePointerEventsProp]);
[9658] Fix | Delete
(0,external_React_.useEffect)(() => {
[9659] Fix | Delete
if (!domReady)
[9660] Fix | Delete
return;
[9661] Fix | Delete
if (open)
[9662] Fix | Delete
return;
[9663] Fix | Delete
store == null ? void 0 : store.setAutoFocusOnShow(false);
[9664] Fix | Delete
}, [store, domReady, open]);
[9665] Fix | Delete
const openRef = useLiveRef(open);
[9666] Fix | Delete
(0,external_React_.useEffect)(() => {
[9667] Fix | Delete
if (!domReady)
[9668] Fix | Delete
return;
[9669] Fix | Delete
return () => {
[9670] Fix | Delete
if (!openRef.current) {
[9671] Fix | Delete
store == null ? void 0 : store.setAutoFocusOnShow(false);
[9672] Fix | Delete
}
[9673] Fix | Delete
};
[9674] Fix | Delete
}, [store, domReady]);
[9675] Fix | Delete
const registerOnParent = (0,external_React_.useContext)(NestedHovercardContext);
[9676] Fix | Delete
useSafeLayoutEffect(() => {
[9677] Fix | Delete
if (modal)
[9678] Fix | Delete
return;
[9679] Fix | Delete
if (!portal)
[9680] Fix | Delete
return;
[9681] Fix | Delete
if (!mounted)
[9682] Fix | Delete
return;
[9683] Fix | Delete
if (!domReady)
[9684] Fix | Delete
return;
[9685] Fix | Delete
const element = ref.current;
[9686] Fix | Delete
if (!element)
[9687] Fix | Delete
return;
[9688] Fix | Delete
return registerOnParent == null ? void 0 : registerOnParent(element);
[9689] Fix | Delete
}, [modal, portal, mounted, domReady]);
[9690] Fix | Delete
const registerNestedHovercard = (0,external_React_.useCallback)(
[9691] Fix | Delete
(element) => {
[9692] Fix | Delete
setNestedHovercards((prevElements) => [...prevElements, element]);
[9693] Fix | Delete
const parentUnregister = registerOnParent == null ? void 0 : registerOnParent(element);
[9694] Fix | Delete
return () => {
[9695] Fix | Delete
setNestedHovercards(
[9696] Fix | Delete
(prevElements) => prevElements.filter((item) => item !== element)
[9697] Fix | Delete
);
[9698] Fix | Delete
parentUnregister == null ? void 0 : parentUnregister();
[9699] Fix | Delete
};
[9700] Fix | Delete
},
[9701] Fix | Delete
[registerOnParent]
[9702] Fix | Delete
);
[9703] Fix | Delete
props = useWrapElement(
[9704] Fix | Delete
props,
[9705] Fix | Delete
(element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(HovercardScopedContextProvider, { value: store, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(NestedHovercardContext.Provider, { value: registerNestedHovercard, children: element }) }),
[9706] Fix | Delete
[store, registerNestedHovercard]
[9707] Fix | Delete
);
[9708] Fix | Delete
props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
[9709] Fix | Delete
ref: useMergeRefs(ref, props.ref)
[9710] Fix | Delete
});
[9711] Fix | Delete
props = useAutoFocusOnHide(_4R3V3JGP_spreadValues({ store }, props));
[9712] Fix | Delete
const autoFocusOnShow = store.useState(
[9713] Fix | Delete
(state) => modal || state.autoFocusOnShow
[9714] Fix | Delete
);
[9715] Fix | Delete
props = usePopover(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
[9716] Fix | Delete
store,
[9717] Fix | Delete
modal,
[9718] Fix | Delete
portal,
[9719] Fix | Delete
autoFocusOnShow
[9720] Fix | Delete
}, props), {
[9721] Fix | Delete
portalRef,
[9722] Fix | Delete
hideOnEscape(event) {
[9723] Fix | Delete
if (isFalsyBooleanCallback(hideOnEscape, event))
[9724] Fix | Delete
return false;
[9725] Fix | Delete
requestAnimationFrame(() => {
[9726] Fix | Delete
requestAnimationFrame(() => {
[9727] Fix | Delete
store == null ? void 0 : store.hide();
[9728] Fix | Delete
});
[9729] Fix | Delete
});
[9730] Fix | Delete
return true;
[9731] Fix | Delete
}
[9732] Fix | Delete
}));
[9733] Fix | Delete
return props;
[9734] Fix | Delete
}
[9735] Fix | Delete
);
[9736] Fix | Delete
var Hovercard = createDialogComponent(
[9737] Fix | Delete
createComponent((props) => {
[9738] Fix | Delete
const htmlProps = useHovercard(props);
[9739] Fix | Delete
return _3ORBWXWF_createElement("div", htmlProps);
[9740] Fix | Delete
}),
[9741] Fix | Delete
useHovercardProviderContext
[9742] Fix | Delete
);
[9743] Fix | Delete
if (false) {}
[9744] Fix | Delete
[9745] Fix | Delete
[9746] Fix | Delete
[9747] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/tooltip/tooltip.js
[9748] Fix | Delete
"use client";
[9749] Fix | Delete
[9750] Fix | Delete
[9751] Fix | Delete
[9752] Fix | Delete
[9753] Fix | Delete
[9754] Fix | Delete
[9755] Fix | Delete
[9756] Fix | Delete
[9757] Fix | Delete
[9758] Fix | Delete
[9759] Fix | Delete
[9760] Fix | Delete
[9761] Fix | Delete
[9762] Fix | Delete
[9763] Fix | Delete
[9764] Fix | Delete
[9765] Fix | Delete
[9766] Fix | Delete
[9767] Fix | Delete
[9768] Fix | Delete
[9769] Fix | Delete
[9770] Fix | Delete
[9771] Fix | Delete
[9772] Fix | Delete
[9773] Fix | Delete
[9774] Fix | Delete
[9775] Fix | Delete
[9776] Fix | Delete
[9777] Fix | Delete
[9778] Fix | Delete
[9779] Fix | Delete
[9780] Fix | Delete
[9781] Fix | Delete
[9782] Fix | Delete
[9783] Fix | Delete
[9784] Fix | Delete
[9785] Fix | Delete
[9786] Fix | Delete
[9787] Fix | Delete
[9788] Fix | Delete
[9789] Fix | Delete
[9790] Fix | Delete
[9791] Fix | Delete
// src/tooltip/tooltip.tsx
[9792] Fix | Delete
[9793] Fix | Delete
[9794] Fix | Delete
[9795] Fix | Delete
var useTooltip = createHook(
[9796] Fix | Delete
(_a) => {
[9797] Fix | Delete
var _b = _a, {
[9798] Fix | Delete
store,
[9799] Fix | Delete
portal = true,
[9800] Fix | Delete
gutter = 8,
[9801] Fix | Delete
preserveTabOrder = false,
[9802] Fix | Delete
hideOnHoverOutside = true,
[9803] Fix | Delete
hideOnInteractOutside = true
[9804] Fix | Delete
} = _b, props = __objRest(_b, [
[9805] Fix | Delete
"store",
[9806] Fix | Delete
"portal",
[9807] Fix | Delete
"gutter",
[9808] Fix | Delete
"preserveTabOrder",
[9809] Fix | Delete
"hideOnHoverOutside",
[9810] Fix | Delete
"hideOnInteractOutside"
[9811] Fix | Delete
]);
[9812] Fix | Delete
const context = useTooltipProviderContext();
[9813] Fix | Delete
store = store || context;
[9814] Fix | Delete
invariant(
[9815] Fix | Delete
store,
[9816] Fix | Delete
false && 0
[9817] Fix | Delete
);
[9818] Fix | Delete
props = useWrapElement(
[9819] Fix | Delete
props,
[9820] Fix | Delete
(element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(TooltipScopedContextProvider, { value: store, children: element }),
[9821] Fix | Delete
[store]
[9822] Fix | Delete
);
[9823] Fix | Delete
const role = store.useState(
[9824] Fix | Delete
(state) => state.type === "description" ? "tooltip" : "none"
[9825] Fix | Delete
);
[9826] Fix | Delete
props = _4R3V3JGP_spreadValues({ role }, props);
[9827] Fix | Delete
props = useHovercard(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
[9828] Fix | Delete
store,
[9829] Fix | Delete
portal,
[9830] Fix | Delete
gutter,
[9831] Fix | Delete
preserveTabOrder,
[9832] Fix | Delete
hideOnHoverOutside: (event) => {
[9833] Fix | Delete
if (isFalsyBooleanCallback(hideOnHoverOutside, event))
[9834] Fix | Delete
return false;
[9835] Fix | Delete
const anchorElement = store == null ? void 0 : store.getState().anchorElement;
[9836] Fix | Delete
if (!anchorElement)
[9837] Fix | Delete
return true;
[9838] Fix | Delete
if ("focusVisible" in anchorElement.dataset)
[9839] Fix | Delete
return false;
[9840] Fix | Delete
return true;
[9841] Fix | Delete
},
[9842] Fix | Delete
hideOnInteractOutside: (event) => {
[9843] Fix | Delete
if (isFalsyBooleanCallback(hideOnInteractOutside, event))
[9844] Fix | Delete
return false;
[9845] Fix | Delete
const anchorElement = store == null ? void 0 : store.getState().anchorElement;
[9846] Fix | Delete
if (!anchorElement)
[9847] Fix | Delete
return true;
[9848] Fix | Delete
if (contains(anchorElement, event.target))
[9849] Fix | Delete
return false;
[9850] Fix | Delete
return true;
[9851] Fix | Delete
}
[9852] Fix | Delete
}));
[9853] Fix | Delete
return props;
[9854] Fix | Delete
}
[9855] Fix | Delete
);
[9856] Fix | Delete
var Tooltip = createDialogComponent(
[9857] Fix | Delete
createComponent((props) => {
[9858] Fix | Delete
const htmlProps = useTooltip(props);
[9859] Fix | Delete
return _3ORBWXWF_createElement("div", htmlProps);
[9860] Fix | Delete
}),
[9861] Fix | Delete
useTooltipProviderContext
[9862] Fix | Delete
);
[9863] Fix | Delete
if (false) {}
[9864] Fix | Delete
[9865] Fix | Delete
[9866] Fix | Delete
;// CONCATENATED MODULE: external ["wp","element"]
[9867] Fix | Delete
const external_wp_element_namespaceObject = window["wp"]["element"];
[9868] Fix | Delete
;// CONCATENATED MODULE: external ["wp","deprecated"]
[9869] Fix | Delete
const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
[9870] Fix | Delete
var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
[9871] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/shortcut/index.js
[9872] Fix | Delete
[9873] Fix | Delete
/**
[9874] Fix | Delete
* Internal dependencies
[9875] Fix | Delete
*/
[9876] Fix | Delete
[9877] Fix | Delete
/**
[9878] Fix | Delete
* Shortcut component is used to display keyboard shortcuts, and it can be customized with a custom display and aria label if needed.
[9879] Fix | Delete
*
[9880] Fix | Delete
* ```jsx
[9881] Fix | Delete
* import { Shortcut } from '@wordpress/components';
[9882] Fix | Delete
*
[9883] Fix | Delete
* const MyShortcut = () => {
[9884] Fix | Delete
* return (
[9885] Fix | Delete
* <Shortcut shortcut={{ display: 'Ctrl + S', ariaLabel: 'Save' }} />
[9886] Fix | Delete
* );
[9887] Fix | Delete
* };
[9888] Fix | Delete
* ```
[9889] Fix | Delete
*/
[9890] Fix | Delete
function Shortcut(props) {
[9891] Fix | Delete
const {
[9892] Fix | Delete
shortcut,
[9893] Fix | Delete
className
[9894] Fix | Delete
} = props;
[9895] Fix | Delete
if (!shortcut) {
[9896] Fix | Delete
return null;
[9897] Fix | Delete
}
[9898] Fix | Delete
let displayText;
[9899] Fix | Delete
let ariaLabel;
[9900] Fix | Delete
if (typeof shortcut === 'string') {
[9901] Fix | Delete
displayText = shortcut;
[9902] Fix | Delete
}
[9903] Fix | Delete
if (shortcut !== null && typeof shortcut === 'object') {
[9904] Fix | Delete
displayText = shortcut.display;
[9905] Fix | Delete
ariaLabel = shortcut.ariaLabel;
[9906] Fix | Delete
}
[9907] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
[9908] Fix | Delete
className: className,
[9909] Fix | Delete
"aria-label": ariaLabel,
[9910] Fix | Delete
children: displayText
[9911] Fix | Delete
});
[9912] Fix | Delete
}
[9913] Fix | Delete
/* harmony default export */ const build_module_shortcut = (Shortcut);
[9914] Fix | Delete
[9915] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/utils.js
[9916] Fix | Delete
/**
[9917] Fix | Delete
* External dependencies
[9918] Fix | Delete
*/
[9919] Fix | Delete
// eslint-disable-next-line no-restricted-imports
[9920] Fix | Delete
[9921] Fix | Delete
/**
[9922] Fix | Delete
* Internal dependencies
[9923] Fix | Delete
*/
[9924] Fix | Delete
[9925] Fix | Delete
const POSITION_TO_PLACEMENT = {
[9926] Fix | Delete
bottom: 'bottom',
[9927] Fix | Delete
top: 'top',
[9928] Fix | Delete
'middle left': 'left',
[9929] Fix | Delete
'middle right': 'right',
[9930] Fix | Delete
'bottom left': 'bottom-end',
[9931] Fix | Delete
'bottom center': 'bottom',
[9932] Fix | Delete
'bottom right': 'bottom-start',
[9933] Fix | Delete
'top left': 'top-end',
[9934] Fix | Delete
'top center': 'top',
[9935] Fix | Delete
'top right': 'top-start',
[9936] Fix | Delete
'middle left left': 'left',
[9937] Fix | Delete
'middle left right': 'left',
[9938] Fix | Delete
'middle left bottom': 'left-end',
[9939] Fix | Delete
'middle left top': 'left-start',
[9940] Fix | Delete
'middle right left': 'right',
[9941] Fix | Delete
'middle right right': 'right',
[9942] Fix | Delete
'middle right bottom': 'right-end',
[9943] Fix | Delete
'middle right top': 'right-start',
[9944] Fix | Delete
'bottom left left': 'bottom-end',
[9945] Fix | Delete
'bottom left right': 'bottom-end',
[9946] Fix | Delete
'bottom left bottom': 'bottom-end',
[9947] Fix | Delete
'bottom left top': 'bottom-end',
[9948] Fix | Delete
'bottom center left': 'bottom',
[9949] Fix | Delete
'bottom center right': 'bottom',
[9950] Fix | Delete
'bottom center bottom': 'bottom',
[9951] Fix | Delete
'bottom center top': 'bottom',
[9952] Fix | Delete
'bottom right left': 'bottom-start',
[9953] Fix | Delete
'bottom right right': 'bottom-start',
[9954] Fix | Delete
'bottom right bottom': 'bottom-start',
[9955] Fix | Delete
'bottom right top': 'bottom-start',
[9956] Fix | Delete
'top left left': 'top-end',
[9957] Fix | Delete
'top left right': 'top-end',
[9958] Fix | Delete
'top left bottom': 'top-end',
[9959] Fix | Delete
'top left top': 'top-end',
[9960] Fix | Delete
'top center left': 'top',
[9961] Fix | Delete
'top center right': 'top',
[9962] Fix | Delete
'top center bottom': 'top',
[9963] Fix | Delete
'top center top': 'top',
[9964] Fix | Delete
'top right left': 'top-start',
[9965] Fix | Delete
'top right right': 'top-start',
[9966] Fix | Delete
'top right bottom': 'top-start',
[9967] Fix | Delete
'top right top': 'top-start',
[9968] Fix | Delete
// `middle`/`middle center [corner?]` positions are associated to a fallback
[9969] Fix | Delete
// `bottom` placement because there aren't any corresponding placement values.
[9970] Fix | Delete
middle: 'bottom',
[9971] Fix | Delete
'middle center': 'bottom',
[9972] Fix | Delete
'middle center bottom': 'bottom',
[9973] Fix | Delete
'middle center left': 'bottom',
[9974] Fix | Delete
'middle center right': 'bottom',
[9975] Fix | Delete
'middle center top': 'bottom'
[9976] Fix | Delete
};
[9977] Fix | Delete
[9978] Fix | Delete
/**
[9979] Fix | Delete
* Converts the `Popover`'s legacy "position" prop to the new "placement" prop
[9980] Fix | Delete
* (used by `floating-ui`).
[9981] Fix | Delete
*
[9982] Fix | Delete
* @param position The legacy position
[9983] Fix | Delete
* @return The corresponding placement
[9984] Fix | Delete
*/
[9985] Fix | Delete
const positionToPlacement = position => {
[9986] Fix | Delete
var _POSITION_TO_PLACEMEN;
[9987] Fix | Delete
return (_POSITION_TO_PLACEMEN = POSITION_TO_PLACEMENT[position]) !== null && _POSITION_TO_PLACEMEN !== void 0 ? _POSITION_TO_PLACEMEN : 'bottom';
[9988] Fix | Delete
};
[9989] Fix | Delete
[9990] Fix | Delete
/**
[9991] Fix | Delete
* @typedef AnimationOrigin
[9992] Fix | Delete
* @type {Object}
[9993] Fix | Delete
* @property {number} originX A number between 0 and 1 (in CSS logical properties jargon, 0 is "start", 0.5 is "center", and 1 is "end")
[9994] Fix | Delete
* @property {number} originY A number between 0 and 1 (0 is top, 0.5 is center, and 1 is bottom)
[9995] Fix | Delete
*/
[9996] Fix | Delete
[9997] Fix | Delete
const PLACEMENT_TO_ANIMATION_ORIGIN = {
[9998] Fix | Delete
top: {
[9999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function