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
{
[6500] Fix | Delete
ref: outerBeforeRef,
[6501] Fix | Delete
className: "__focus-trap-outer-before",
[6502] Fix | Delete
onFocus: (event) => {
[6503] Fix | Delete
const fromOuter = event.relatedTarget === outerAfterRef.current;
[6504] Fix | Delete
if (!fromOuter && isFocusEventOutside(event, portalNode)) {
[6505] Fix | Delete
queueFocus(innerBeforeRef.current);
[6506] Fix | Delete
} else {
[6507] Fix | Delete
queueFocus(getPreviousTabbable());
[6508] Fix | Delete
}
[6509] Fix | Delete
}
[6510] Fix | Delete
}
[6511] Fix | Delete
),
[6512] Fix | Delete
preserveTabOrder && // We're using position: fixed here so that the browser doesn't
[6513] Fix | Delete
// add margin to the element when setting gap on a parent element.
[6514] Fix | Delete
/* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("span", { "aria-owns": portalNode == null ? void 0 : portalNode.id, style: { position: "fixed" } }),
[6515] Fix | Delete
preserveTabOrder && portalNode && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
[6516] Fix | Delete
FocusTrap,
[6517] Fix | Delete
{
[6518] Fix | Delete
ref: outerAfterRef,
[6519] Fix | Delete
className: "__focus-trap-outer-after",
[6520] Fix | Delete
onFocus: (event) => {
[6521] Fix | Delete
if (isFocusEventOutside(event, portalNode)) {
[6522] Fix | Delete
queueFocus(innerAfterRef.current);
[6523] Fix | Delete
} else {
[6524] Fix | Delete
const nextTabbable = getNextTabbable();
[6525] Fix | Delete
if (nextTabbable === innerBeforeRef.current) {
[6526] Fix | Delete
requestAnimationFrame(() => {
[6527] Fix | Delete
var _a2;
[6528] Fix | Delete
return (_a2 = getNextTabbable()) == null ? void 0 : _a2.focus();
[6529] Fix | Delete
});
[6530] Fix | Delete
return;
[6531] Fix | Delete
}
[6532] Fix | Delete
queueFocus(nextTabbable);
[6533] Fix | Delete
}
[6534] Fix | Delete
}
[6535] Fix | Delete
}
[6536] Fix | Delete
)
[6537] Fix | Delete
] });
[6538] Fix | Delete
if (anchorPortalNode && preserveTabOrder) {
[6539] Fix | Delete
preserveTabOrderElement = (0,external_ReactDOM_namespaceObject.createPortal)(
[6540] Fix | Delete
preserveTabOrderElement,
[6541] Fix | Delete
anchorPortalNode
[6542] Fix | Delete
);
[6543] Fix | Delete
}
[6544] Fix | Delete
return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
[6545] Fix | Delete
preserveTabOrderElement,
[6546] Fix | Delete
element
[6547] Fix | Delete
] });
[6548] Fix | Delete
},
[6549] Fix | Delete
[
[6550] Fix | Delete
portalNode,
[6551] Fix | Delete
context,
[6552] Fix | Delete
portal,
[6553] Fix | Delete
props.id,
[6554] Fix | Delete
preserveTabOrder,
[6555] Fix | Delete
anchorPortalNode
[6556] Fix | Delete
]
[6557] Fix | Delete
);
[6558] Fix | Delete
props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
[6559] Fix | Delete
ref: refProp
[6560] Fix | Delete
});
[6561] Fix | Delete
return props;
[6562] Fix | Delete
}
[6563] Fix | Delete
);
[6564] Fix | Delete
var Portal = createComponent((props) => {
[6565] Fix | Delete
const htmlProps = usePortal(props);
[6566] Fix | Delete
return _3ORBWXWF_createElement("div", htmlProps);
[6567] Fix | Delete
});
[6568] Fix | Delete
if (false) {}
[6569] Fix | Delete
[6570] Fix | Delete
[6571] Fix | Delete
[6572] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/NERBASET.js
[6573] Fix | Delete
"use client";
[6574] Fix | Delete
[6575] Fix | Delete
[6576] Fix | Delete
[6577] Fix | Delete
[6578] Fix | Delete
[6579] Fix | Delete
[6580] Fix | Delete
[6581] Fix | Delete
[6582] Fix | Delete
[6583] Fix | Delete
[6584] Fix | Delete
[6585] Fix | Delete
[6586] Fix | Delete
[6587] Fix | Delete
[6588] Fix | Delete
[6589] Fix | Delete
[6590] Fix | Delete
[6591] Fix | Delete
[6592] Fix | Delete
[6593] Fix | Delete
[6594] Fix | Delete
// src/dialog/dialog.tsx
[6595] Fix | Delete
[6596] Fix | Delete
[6597] Fix | Delete
[6598] Fix | Delete
[6599] Fix | Delete
[6600] Fix | Delete
[6601] Fix | Delete
[6602] Fix | Delete
var NERBASET_isSafariBrowser = isSafari();
[6603] Fix | Delete
function isAlreadyFocusingAnotherElement(dialog) {
[6604] Fix | Delete
const activeElement = getActiveElement();
[6605] Fix | Delete
if (!activeElement)
[6606] Fix | Delete
return false;
[6607] Fix | Delete
if (dialog && contains(dialog, activeElement))
[6608] Fix | Delete
return false;
[6609] Fix | Delete
if (isFocusable(activeElement))
[6610] Fix | Delete
return true;
[6611] Fix | Delete
return false;
[6612] Fix | Delete
}
[6613] Fix | Delete
function getElementFromProp(prop, focusable = false) {
[6614] Fix | Delete
if (!prop)
[6615] Fix | Delete
return null;
[6616] Fix | Delete
const element = "current" in prop ? prop.current : prop;
[6617] Fix | Delete
if (!element)
[6618] Fix | Delete
return null;
[6619] Fix | Delete
if (focusable)
[6620] Fix | Delete
return isFocusable(element) ? element : null;
[6621] Fix | Delete
return element;
[6622] Fix | Delete
}
[6623] Fix | Delete
var useDialog = createHook(
[6624] Fix | Delete
(_a) => {
[6625] Fix | Delete
var _b = _a, {
[6626] Fix | Delete
store: storeProp,
[6627] Fix | Delete
open: openProp,
[6628] Fix | Delete
onClose,
[6629] Fix | Delete
focusable = true,
[6630] Fix | Delete
modal = true,
[6631] Fix | Delete
portal = !!modal,
[6632] Fix | Delete
backdrop = !!modal,
[6633] Fix | Delete
backdropProps,
[6634] Fix | Delete
hideOnEscape = true,
[6635] Fix | Delete
hideOnInteractOutside = true,
[6636] Fix | Delete
getPersistentElements,
[6637] Fix | Delete
preventBodyScroll = !!modal,
[6638] Fix | Delete
autoFocusOnShow = true,
[6639] Fix | Delete
autoFocusOnHide = true,
[6640] Fix | Delete
initialFocus,
[6641] Fix | Delete
finalFocus,
[6642] Fix | Delete
unmountOnHide
[6643] Fix | Delete
} = _b, props = __objRest(_b, [
[6644] Fix | Delete
"store",
[6645] Fix | Delete
"open",
[6646] Fix | Delete
"onClose",
[6647] Fix | Delete
"focusable",
[6648] Fix | Delete
"modal",
[6649] Fix | Delete
"portal",
[6650] Fix | Delete
"backdrop",
[6651] Fix | Delete
"backdropProps",
[6652] Fix | Delete
"hideOnEscape",
[6653] Fix | Delete
"hideOnInteractOutside",
[6654] Fix | Delete
"getPersistentElements",
[6655] Fix | Delete
"preventBodyScroll",
[6656] Fix | Delete
"autoFocusOnShow",
[6657] Fix | Delete
"autoFocusOnHide",
[6658] Fix | Delete
"initialFocus",
[6659] Fix | Delete
"finalFocus",
[6660] Fix | Delete
"unmountOnHide"
[6661] Fix | Delete
]);
[6662] Fix | Delete
const context = useDialogProviderContext();
[6663] Fix | Delete
const ref = (0,external_React_.useRef)(null);
[6664] Fix | Delete
const store = useDialogStore({
[6665] Fix | Delete
store: storeProp || context,
[6666] Fix | Delete
open: openProp,
[6667] Fix | Delete
setOpen(open2) {
[6668] Fix | Delete
if (open2)
[6669] Fix | Delete
return;
[6670] Fix | Delete
const dialog = ref.current;
[6671] Fix | Delete
if (!dialog)
[6672] Fix | Delete
return;
[6673] Fix | Delete
const event = new Event("close", { bubbles: false, cancelable: true });
[6674] Fix | Delete
if (onClose) {
[6675] Fix | Delete
dialog.addEventListener("close", onClose, { once: true });
[6676] Fix | Delete
}
[6677] Fix | Delete
dialog.dispatchEvent(event);
[6678] Fix | Delete
if (!event.defaultPrevented)
[6679] Fix | Delete
return;
[6680] Fix | Delete
store.setOpen(true);
[6681] Fix | Delete
}
[6682] Fix | Delete
});
[6683] Fix | Delete
const { portalRef, domReady } = usePortalRef(portal, props.portalRef);
[6684] Fix | Delete
const preserveTabOrderProp = props.preserveTabOrder;
[6685] Fix | Delete
const preserveTabOrder = store.useState(
[6686] Fix | Delete
(state) => preserveTabOrderProp && !modal && state.mounted
[6687] Fix | Delete
);
[6688] Fix | Delete
const id = useId(props.id);
[6689] Fix | Delete
const open = store.useState("open");
[6690] Fix | Delete
const mounted = store.useState("mounted");
[6691] Fix | Delete
const contentElement = store.useState("contentElement");
[6692] Fix | Delete
const hidden = isHidden(mounted, props.hidden, props.alwaysVisible);
[6693] Fix | Delete
usePreventBodyScroll(contentElement, id, preventBodyScroll && !hidden);
[6694] Fix | Delete
useHideOnInteractOutside(store, hideOnInteractOutside, domReady);
[6695] Fix | Delete
const { wrapElement, nestedDialogs } = useNestedDialogs(store);
[6696] Fix | Delete
props = useWrapElement(props, wrapElement, [wrapElement]);
[6697] Fix | Delete
if (false) {}
[6698] Fix | Delete
useSafeLayoutEffect(() => {
[6699] Fix | Delete
if (!open)
[6700] Fix | Delete
return;
[6701] Fix | Delete
const dialog = ref.current;
[6702] Fix | Delete
const activeElement = getActiveElement(dialog, true);
[6703] Fix | Delete
if (!activeElement)
[6704] Fix | Delete
return;
[6705] Fix | Delete
if (activeElement.tagName === "BODY")
[6706] Fix | Delete
return;
[6707] Fix | Delete
if (dialog && contains(dialog, activeElement))
[6708] Fix | Delete
return;
[6709] Fix | Delete
store.setDisclosureElement(activeElement);
[6710] Fix | Delete
}, [store, open]);
[6711] Fix | Delete
if (NERBASET_isSafariBrowser) {
[6712] Fix | Delete
(0,external_React_.useEffect)(() => {
[6713] Fix | Delete
if (!mounted)
[6714] Fix | Delete
return;
[6715] Fix | Delete
const { disclosureElement } = store.getState();
[6716] Fix | Delete
if (!disclosureElement)
[6717] Fix | Delete
return;
[6718] Fix | Delete
if (!isButton(disclosureElement))
[6719] Fix | Delete
return;
[6720] Fix | Delete
const onMouseDown = () => {
[6721] Fix | Delete
let receivedFocus = false;
[6722] Fix | Delete
const onFocus = () => {
[6723] Fix | Delete
receivedFocus = true;
[6724] Fix | Delete
};
[6725] Fix | Delete
const options = { capture: true, once: true };
[6726] Fix | Delete
disclosureElement.addEventListener("focusin", onFocus, options);
[6727] Fix | Delete
queueBeforeEvent(disclosureElement, "mouseup", () => {
[6728] Fix | Delete
disclosureElement.removeEventListener("focusin", onFocus, true);
[6729] Fix | Delete
if (receivedFocus)
[6730] Fix | Delete
return;
[6731] Fix | Delete
focusIfNeeded(disclosureElement);
[6732] Fix | Delete
});
[6733] Fix | Delete
};
[6734] Fix | Delete
disclosureElement.addEventListener("mousedown", onMouseDown);
[6735] Fix | Delete
return () => {
[6736] Fix | Delete
disclosureElement.removeEventListener("mousedown", onMouseDown);
[6737] Fix | Delete
};
[6738] Fix | Delete
}, [store, mounted]);
[6739] Fix | Delete
}
[6740] Fix | Delete
(0,external_React_.useEffect)(() => {
[6741] Fix | Delete
if (!modal)
[6742] Fix | Delete
return;
[6743] Fix | Delete
if (!mounted)
[6744] Fix | Delete
return;
[6745] Fix | Delete
if (!domReady)
[6746] Fix | Delete
return;
[6747] Fix | Delete
const dialog = ref.current;
[6748] Fix | Delete
if (!dialog)
[6749] Fix | Delete
return;
[6750] Fix | Delete
const existingDismiss = dialog.querySelector("[data-dialog-dismiss]");
[6751] Fix | Delete
if (existingDismiss)
[6752] Fix | Delete
return;
[6753] Fix | Delete
return prependHiddenDismiss(dialog, store.hide);
[6754] Fix | Delete
}, [store, modal, mounted, domReady]);
[6755] Fix | Delete
useSafeLayoutEffect(() => {
[6756] Fix | Delete
if (open)
[6757] Fix | Delete
return;
[6758] Fix | Delete
if (!mounted)
[6759] Fix | Delete
return;
[6760] Fix | Delete
if (!domReady)
[6761] Fix | Delete
return;
[6762] Fix | Delete
const dialog = ref.current;
[6763] Fix | Delete
if (!dialog)
[6764] Fix | Delete
return;
[6765] Fix | Delete
return disableTree(dialog);
[6766] Fix | Delete
}, [open, mounted, domReady]);
[6767] Fix | Delete
const canTakeTreeSnapshot = open && domReady;
[6768] Fix | Delete
useSafeLayoutEffect(() => {
[6769] Fix | Delete
if (!id)
[6770] Fix | Delete
return;
[6771] Fix | Delete
if (!canTakeTreeSnapshot)
[6772] Fix | Delete
return;
[6773] Fix | Delete
const dialog = ref.current;
[6774] Fix | Delete
return createWalkTreeSnapshot(id, [dialog]);
[6775] Fix | Delete
}, [id, canTakeTreeSnapshot]);
[6776] Fix | Delete
const getPersistentElementsProp = useEvent(getPersistentElements);
[6777] Fix | Delete
useSafeLayoutEffect(() => {
[6778] Fix | Delete
if (!id)
[6779] Fix | Delete
return;
[6780] Fix | Delete
if (!canTakeTreeSnapshot)
[6781] Fix | Delete
return;
[6782] Fix | Delete
const { disclosureElement } = store.getState();
[6783] Fix | Delete
const dialog = ref.current;
[6784] Fix | Delete
const persistentElements = getPersistentElementsProp() || [];
[6785] Fix | Delete
const allElements = [
[6786] Fix | Delete
dialog,
[6787] Fix | Delete
...persistentElements,
[6788] Fix | Delete
...nestedDialogs.map((dialog2) => dialog2.getState().contentElement)
[6789] Fix | Delete
];
[6790] Fix | Delete
if (modal) {
[6791] Fix | Delete
return chain(
[6792] Fix | Delete
markTreeOutside(id, allElements),
[6793] Fix | Delete
disableTreeOutside(id, allElements)
[6794] Fix | Delete
);
[6795] Fix | Delete
}
[6796] Fix | Delete
return markTreeOutside(id, [disclosureElement, ...allElements]);
[6797] Fix | Delete
}, [
[6798] Fix | Delete
id,
[6799] Fix | Delete
store,
[6800] Fix | Delete
canTakeTreeSnapshot,
[6801] Fix | Delete
getPersistentElementsProp,
[6802] Fix | Delete
nestedDialogs,
[6803] Fix | Delete
modal
[6804] Fix | Delete
]);
[6805] Fix | Delete
const mayAutoFocusOnShow = !!autoFocusOnShow;
[6806] Fix | Delete
const autoFocusOnShowProp = useBooleanEvent(autoFocusOnShow);
[6807] Fix | Delete
const [autoFocusEnabled, setAutoFocusEnabled] = (0,external_React_.useState)(false);
[6808] Fix | Delete
(0,external_React_.useEffect)(() => {
[6809] Fix | Delete
if (!open)
[6810] Fix | Delete
return;
[6811] Fix | Delete
if (!mayAutoFocusOnShow)
[6812] Fix | Delete
return;
[6813] Fix | Delete
if (!domReady)
[6814] Fix | Delete
return;
[6815] Fix | Delete
if (!(contentElement == null ? void 0 : contentElement.isConnected))
[6816] Fix | Delete
return;
[6817] Fix | Delete
const element = getElementFromProp(initialFocus, true) || // If no initial focus is specified, we try to focus the first element
[6818] Fix | Delete
// with the autofocus attribute. If it's an Ariakit component, the
[6819] Fix | Delete
// Focusable component will consume the autoFocus prop and add the
[6820] Fix | Delete
// data-autofocus attribute to the element instead.
[6821] Fix | Delete
contentElement.querySelector(
[6822] Fix | Delete
"[data-autofocus=true],[autofocus]"
[6823] Fix | Delete
) || // We have to fallback to the first focusable element otherwise portaled
[6824] Fix | Delete
// dialogs with preserveTabOrder set to true will not receive focus
[6825] Fix | Delete
// properly because the elements aren't tabbable until the dialog
[6826] Fix | Delete
// receives focus.
[6827] Fix | Delete
getFirstTabbableIn(contentElement, true, portal && preserveTabOrder) || // Finally, we fallback to the dialog element itself.
[6828] Fix | Delete
contentElement;
[6829] Fix | Delete
const isElementFocusable = isFocusable(element);
[6830] Fix | Delete
if (!autoFocusOnShowProp(isElementFocusable ? element : null))
[6831] Fix | Delete
return;
[6832] Fix | Delete
setAutoFocusEnabled(true);
[6833] Fix | Delete
queueMicrotask(() => {
[6834] Fix | Delete
element.focus();
[6835] Fix | Delete
if (!NERBASET_isSafariBrowser)
[6836] Fix | Delete
return;
[6837] Fix | Delete
element.scrollIntoView({ block: "nearest", inline: "nearest" });
[6838] Fix | Delete
});
[6839] Fix | Delete
}, [
[6840] Fix | Delete
open,
[6841] Fix | Delete
mayAutoFocusOnShow,
[6842] Fix | Delete
domReady,
[6843] Fix | Delete
contentElement,
[6844] Fix | Delete
initialFocus,
[6845] Fix | Delete
portal,
[6846] Fix | Delete
preserveTabOrder,
[6847] Fix | Delete
autoFocusOnShowProp
[6848] Fix | Delete
]);
[6849] Fix | Delete
const mayAutoFocusOnHide = !!autoFocusOnHide;
[6850] Fix | Delete
const autoFocusOnHideProp = useBooleanEvent(autoFocusOnHide);
[6851] Fix | Delete
const [hasOpened, setHasOpened] = (0,external_React_.useState)(false);
[6852] Fix | Delete
(0,external_React_.useEffect)(() => {
[6853] Fix | Delete
if (!open)
[6854] Fix | Delete
return;
[6855] Fix | Delete
setHasOpened(true);
[6856] Fix | Delete
return () => setHasOpened(false);
[6857] Fix | Delete
}, [open]);
[6858] Fix | Delete
const focusOnHide = (0,external_React_.useCallback)(
[6859] Fix | Delete
(dialog, retry = true) => {
[6860] Fix | Delete
const { disclosureElement } = store.getState();
[6861] Fix | Delete
if (isAlreadyFocusingAnotherElement(dialog))
[6862] Fix | Delete
return;
[6863] Fix | Delete
let element = getElementFromProp(finalFocus) || disclosureElement;
[6864] Fix | Delete
if (element == null ? void 0 : element.id) {
[6865] Fix | Delete
const doc = DLOEKDPY_getDocument(element);
[6866] Fix | Delete
const selector = `[aria-activedescendant="${element.id}"]`;
[6867] Fix | Delete
const composite = doc.querySelector(selector);
[6868] Fix | Delete
if (composite) {
[6869] Fix | Delete
element = composite;
[6870] Fix | Delete
}
[6871] Fix | Delete
}
[6872] Fix | Delete
if (element && !isFocusable(element)) {
[6873] Fix | Delete
const maybeParentDialog = DLOEKDPY_closest(element, "[data-dialog]");
[6874] Fix | Delete
if (maybeParentDialog && maybeParentDialog.id) {
[6875] Fix | Delete
const doc = DLOEKDPY_getDocument(maybeParentDialog);
[6876] Fix | Delete
const selector = `[aria-controls~="${maybeParentDialog.id}"]`;
[6877] Fix | Delete
const control = doc.querySelector(selector);
[6878] Fix | Delete
if (control) {
[6879] Fix | Delete
element = control;
[6880] Fix | Delete
}
[6881] Fix | Delete
}
[6882] Fix | Delete
}
[6883] Fix | Delete
const isElementFocusable = element && isFocusable(element);
[6884] Fix | Delete
if (!isElementFocusable && retry) {
[6885] Fix | Delete
requestAnimationFrame(() => focusOnHide(dialog, false));
[6886] Fix | Delete
return;
[6887] Fix | Delete
}
[6888] Fix | Delete
if (!autoFocusOnHideProp(isElementFocusable ? element : null))
[6889] Fix | Delete
return;
[6890] Fix | Delete
if (!isElementFocusable)
[6891] Fix | Delete
return;
[6892] Fix | Delete
element == null ? void 0 : element.focus();
[6893] Fix | Delete
},
[6894] Fix | Delete
[store, finalFocus, autoFocusOnHideProp]
[6895] Fix | Delete
);
[6896] Fix | Delete
useSafeLayoutEffect(() => {
[6897] Fix | Delete
if (open)
[6898] Fix | Delete
return;
[6899] Fix | Delete
if (!hasOpened)
[6900] Fix | Delete
return;
[6901] Fix | Delete
if (!mayAutoFocusOnHide)
[6902] Fix | Delete
return;
[6903] Fix | Delete
const dialog = ref.current;
[6904] Fix | Delete
focusOnHide(dialog);
[6905] Fix | Delete
}, [open, hasOpened, domReady, mayAutoFocusOnHide, focusOnHide]);
[6906] Fix | Delete
(0,external_React_.useEffect)(() => {
[6907] Fix | Delete
if (!hasOpened)
[6908] Fix | Delete
return;
[6909] Fix | Delete
if (!mayAutoFocusOnHide)
[6910] Fix | Delete
return;
[6911] Fix | Delete
const dialog = ref.current;
[6912] Fix | Delete
return () => focusOnHide(dialog);
[6913] Fix | Delete
}, [hasOpened, mayAutoFocusOnHide, focusOnHide]);
[6914] Fix | Delete
const hideOnEscapeProp = useBooleanEvent(hideOnEscape);
[6915] Fix | Delete
(0,external_React_.useEffect)(() => {
[6916] Fix | Delete
if (!domReady)
[6917] Fix | Delete
return;
[6918] Fix | Delete
if (!mounted)
[6919] Fix | Delete
return;
[6920] Fix | Delete
const onKeyDown = (event) => {
[6921] Fix | Delete
if (event.key !== "Escape")
[6922] Fix | Delete
return;
[6923] Fix | Delete
if (event.defaultPrevented)
[6924] Fix | Delete
return;
[6925] Fix | Delete
const dialog = ref.current;
[6926] Fix | Delete
if (!dialog)
[6927] Fix | Delete
return;
[6928] Fix | Delete
if (isElementMarked(dialog))
[6929] Fix | Delete
return;
[6930] Fix | Delete
const target = event.target;
[6931] Fix | Delete
if (!target)
[6932] Fix | Delete
return;
[6933] Fix | Delete
const { disclosureElement } = store.getState();
[6934] Fix | Delete
const isValidTarget = () => {
[6935] Fix | Delete
if (target.tagName === "BODY")
[6936] Fix | Delete
return true;
[6937] Fix | Delete
if (contains(dialog, target))
[6938] Fix | Delete
return true;
[6939] Fix | Delete
if (!disclosureElement)
[6940] Fix | Delete
return true;
[6941] Fix | Delete
if (contains(disclosureElement, target))
[6942] Fix | Delete
return true;
[6943] Fix | Delete
return false;
[6944] Fix | Delete
};
[6945] Fix | Delete
if (!isValidTarget())
[6946] Fix | Delete
return;
[6947] Fix | Delete
if (!hideOnEscapeProp(event))
[6948] Fix | Delete
return;
[6949] Fix | Delete
store.hide();
[6950] Fix | Delete
};
[6951] Fix | Delete
return addGlobalEventListener("keydown", onKeyDown, true);
[6952] Fix | Delete
}, [store, domReady, mounted, hideOnEscapeProp]);
[6953] Fix | Delete
props = useWrapElement(
[6954] Fix | Delete
props,
[6955] Fix | Delete
(element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(HeadingLevel, { level: modal ? 1 : void 0, children: element }),
[6956] Fix | Delete
[modal]
[6957] Fix | Delete
);
[6958] Fix | Delete
const hiddenProp = props.hidden;
[6959] Fix | Delete
const alwaysVisible = props.alwaysVisible;
[6960] Fix | Delete
props = useWrapElement(
[6961] Fix | Delete
props,
[6962] Fix | Delete
(element) => {
[6963] Fix | Delete
if (!backdrop)
[6964] Fix | Delete
return element;
[6965] Fix | Delete
return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
[6966] Fix | Delete
/* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
[6967] Fix | Delete
DialogBackdrop,
[6968] Fix | Delete
{
[6969] Fix | Delete
store,
[6970] Fix | Delete
backdrop,
[6971] Fix | Delete
backdropProps,
[6972] Fix | Delete
hidden: hiddenProp,
[6973] Fix | Delete
alwaysVisible
[6974] Fix | Delete
}
[6975] Fix | Delete
),
[6976] Fix | Delete
element
[6977] Fix | Delete
] });
[6978] Fix | Delete
},
[6979] Fix | Delete
[store, backdrop, backdropProps, hiddenProp, alwaysVisible]
[6980] Fix | Delete
);
[6981] Fix | Delete
const [headingId, setHeadingId] = (0,external_React_.useState)();
[6982] Fix | Delete
const [descriptionId, setDescriptionId] = (0,external_React_.useState)();
[6983] Fix | Delete
props = useWrapElement(
[6984] Fix | Delete
props,
[6985] Fix | Delete
(element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogScopedContextProvider, { value: store, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogHeadingContext.Provider, { value: setHeadingId, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogDescriptionContext.Provider, { value: setDescriptionId, children: element }) }) }),
[6986] Fix | Delete
[store]
[6987] Fix | Delete
);
[6988] Fix | Delete
props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
[6989] Fix | Delete
id,
[6990] Fix | Delete
"data-dialog": "",
[6991] Fix | Delete
role: "dialog",
[6992] Fix | Delete
tabIndex: focusable ? -1 : void 0,
[6993] Fix | Delete
"aria-labelledby": headingId,
[6994] Fix | Delete
"aria-describedby": descriptionId
[6995] Fix | Delete
}, props), {
[6996] Fix | Delete
ref: useMergeRefs(ref, props.ref)
[6997] Fix | Delete
});
[6998] Fix | Delete
props = useFocusableContainer(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
[6999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function