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
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/4R3V3JGP.js
[2000] Fix | Delete
"use client";
[2001] Fix | Delete
var __defProp = Object.defineProperty;
[2002] Fix | Delete
var __defProps = Object.defineProperties;
[2003] Fix | Delete
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
[2004] Fix | Delete
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
[2005] Fix | Delete
var __hasOwnProp = Object.prototype.hasOwnProperty;
[2006] Fix | Delete
var __propIsEnum = Object.prototype.propertyIsEnumerable;
[2007] Fix | Delete
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
[2008] Fix | Delete
var _4R3V3JGP_spreadValues = (a, b) => {
[2009] Fix | Delete
for (var prop in b || (b = {}))
[2010] Fix | Delete
if (__hasOwnProp.call(b, prop))
[2011] Fix | Delete
__defNormalProp(a, prop, b[prop]);
[2012] Fix | Delete
if (__getOwnPropSymbols)
[2013] Fix | Delete
for (var prop of __getOwnPropSymbols(b)) {
[2014] Fix | Delete
if (__propIsEnum.call(b, prop))
[2015] Fix | Delete
__defNormalProp(a, prop, b[prop]);
[2016] Fix | Delete
}
[2017] Fix | Delete
return a;
[2018] Fix | Delete
};
[2019] Fix | Delete
var _4R3V3JGP_spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
[2020] Fix | Delete
var __objRest = (source, exclude) => {
[2021] Fix | Delete
var target = {};
[2022] Fix | Delete
for (var prop in source)
[2023] Fix | Delete
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
[2024] Fix | Delete
target[prop] = source[prop];
[2025] Fix | Delete
if (source != null && __getOwnPropSymbols)
[2026] Fix | Delete
for (var prop of __getOwnPropSymbols(source)) {
[2027] Fix | Delete
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
[2028] Fix | Delete
target[prop] = source[prop];
[2029] Fix | Delete
}
[2030] Fix | Delete
return target;
[2031] Fix | Delete
};
[2032] Fix | Delete
[2033] Fix | Delete
[2034] Fix | Delete
[2035] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/4R3V3JGP.js
[2036] Fix | Delete
"use client";
[2037] Fix | Delete
var _4R3V3JGP_defProp = Object.defineProperty;
[2038] Fix | Delete
var _4R3V3JGP_defProps = Object.defineProperties;
[2039] Fix | Delete
var _4R3V3JGP_getOwnPropDescs = Object.getOwnPropertyDescriptors;
[2040] Fix | Delete
var _4R3V3JGP_getOwnPropSymbols = Object.getOwnPropertySymbols;
[2041] Fix | Delete
var _4R3V3JGP_hasOwnProp = Object.prototype.hasOwnProperty;
[2042] Fix | Delete
var _4R3V3JGP_propIsEnum = Object.prototype.propertyIsEnumerable;
[2043] Fix | Delete
var _4R3V3JGP_defNormalProp = (obj, key, value) => key in obj ? _4R3V3JGP_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
[2044] Fix | Delete
var _chunks_4R3V3JGP_spreadValues = (a, b) => {
[2045] Fix | Delete
for (var prop in b || (b = {}))
[2046] Fix | Delete
if (_4R3V3JGP_hasOwnProp.call(b, prop))
[2047] Fix | Delete
_4R3V3JGP_defNormalProp(a, prop, b[prop]);
[2048] Fix | Delete
if (_4R3V3JGP_getOwnPropSymbols)
[2049] Fix | Delete
for (var prop of _4R3V3JGP_getOwnPropSymbols(b)) {
[2050] Fix | Delete
if (_4R3V3JGP_propIsEnum.call(b, prop))
[2051] Fix | Delete
_4R3V3JGP_defNormalProp(a, prop, b[prop]);
[2052] Fix | Delete
}
[2053] Fix | Delete
return a;
[2054] Fix | Delete
};
[2055] Fix | Delete
var _chunks_4R3V3JGP_spreadProps = (a, b) => _4R3V3JGP_defProps(a, _4R3V3JGP_getOwnPropDescs(b));
[2056] Fix | Delete
var _4R3V3JGP_objRest = (source, exclude) => {
[2057] Fix | Delete
var target = {};
[2058] Fix | Delete
for (var prop in source)
[2059] Fix | Delete
if (_4R3V3JGP_hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
[2060] Fix | Delete
target[prop] = source[prop];
[2061] Fix | Delete
if (source != null && _4R3V3JGP_getOwnPropSymbols)
[2062] Fix | Delete
for (var prop of _4R3V3JGP_getOwnPropSymbols(source)) {
[2063] Fix | Delete
if (exclude.indexOf(prop) < 0 && _4R3V3JGP_propIsEnum.call(source, prop))
[2064] Fix | Delete
target[prop] = source[prop];
[2065] Fix | Delete
}
[2066] Fix | Delete
return target;
[2067] Fix | Delete
};
[2068] Fix | Delete
[2069] Fix | Delete
[2070] Fix | Delete
[2071] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/Y3OOHFCN.js
[2072] Fix | Delete
"use client";
[2073] Fix | Delete
[2074] Fix | Delete
[2075] Fix | Delete
// src/utils/misc.ts
[2076] Fix | Delete
function noop(..._) {
[2077] Fix | Delete
}
[2078] Fix | Delete
function shallowEqual(a, b) {
[2079] Fix | Delete
if (a === b)
[2080] Fix | Delete
return true;
[2081] Fix | Delete
if (!a)
[2082] Fix | Delete
return false;
[2083] Fix | Delete
if (!b)
[2084] Fix | Delete
return false;
[2085] Fix | Delete
if (typeof a !== "object")
[2086] Fix | Delete
return false;
[2087] Fix | Delete
if (typeof b !== "object")
[2088] Fix | Delete
return false;
[2089] Fix | Delete
const aKeys = Object.keys(a);
[2090] Fix | Delete
const bKeys = Object.keys(b);
[2091] Fix | Delete
const { length } = aKeys;
[2092] Fix | Delete
if (bKeys.length !== length)
[2093] Fix | Delete
return false;
[2094] Fix | Delete
for (const key of aKeys) {
[2095] Fix | Delete
if (a[key] !== b[key]) {
[2096] Fix | Delete
return false;
[2097] Fix | Delete
}
[2098] Fix | Delete
}
[2099] Fix | Delete
return true;
[2100] Fix | Delete
}
[2101] Fix | Delete
function Y3OOHFCN_applyState(argument, currentValue) {
[2102] Fix | Delete
if (isUpdater(argument)) {
[2103] Fix | Delete
const value = isLazyValue(currentValue) ? currentValue() : currentValue;
[2104] Fix | Delete
return argument(value);
[2105] Fix | Delete
}
[2106] Fix | Delete
return argument;
[2107] Fix | Delete
}
[2108] Fix | Delete
function isUpdater(argument) {
[2109] Fix | Delete
return typeof argument === "function";
[2110] Fix | Delete
}
[2111] Fix | Delete
function isLazyValue(value) {
[2112] Fix | Delete
return typeof value === "function";
[2113] Fix | Delete
}
[2114] Fix | Delete
function isObject(arg) {
[2115] Fix | Delete
return typeof arg === "object" && arg != null;
[2116] Fix | Delete
}
[2117] Fix | Delete
function isEmpty(arg) {
[2118] Fix | Delete
if (Array.isArray(arg))
[2119] Fix | Delete
return !arg.length;
[2120] Fix | Delete
if (isObject(arg))
[2121] Fix | Delete
return !Object.keys(arg).length;
[2122] Fix | Delete
if (arg == null)
[2123] Fix | Delete
return true;
[2124] Fix | Delete
if (arg === "")
[2125] Fix | Delete
return true;
[2126] Fix | Delete
return false;
[2127] Fix | Delete
}
[2128] Fix | Delete
function isInteger(arg) {
[2129] Fix | Delete
if (typeof arg === "number") {
[2130] Fix | Delete
return Math.floor(arg) === arg;
[2131] Fix | Delete
}
[2132] Fix | Delete
return String(Math.floor(Number(arg))) === arg;
[2133] Fix | Delete
}
[2134] Fix | Delete
function Y3OOHFCN_hasOwnProperty(object, prop) {
[2135] Fix | Delete
if (typeof Object.hasOwn === "function") {
[2136] Fix | Delete
return Object.hasOwn(object, prop);
[2137] Fix | Delete
}
[2138] Fix | Delete
return Object.prototype.hasOwnProperty.call(object, prop);
[2139] Fix | Delete
}
[2140] Fix | Delete
function chain(...fns) {
[2141] Fix | Delete
return (...args) => {
[2142] Fix | Delete
for (const fn of fns) {
[2143] Fix | Delete
if (typeof fn === "function") {
[2144] Fix | Delete
fn(...args);
[2145] Fix | Delete
}
[2146] Fix | Delete
}
[2147] Fix | Delete
};
[2148] Fix | Delete
}
[2149] Fix | Delete
function cx(...args) {
[2150] Fix | Delete
return args.filter(Boolean).join(" ") || void 0;
[2151] Fix | Delete
}
[2152] Fix | Delete
function normalizeString(str) {
[2153] Fix | Delete
return str.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
[2154] Fix | Delete
}
[2155] Fix | Delete
function omit(object, keys) {
[2156] Fix | Delete
const result = _chunks_4R3V3JGP_spreadValues({}, object);
[2157] Fix | Delete
for (const key of keys) {
[2158] Fix | Delete
if (Y3OOHFCN_hasOwnProperty(result, key)) {
[2159] Fix | Delete
delete result[key];
[2160] Fix | Delete
}
[2161] Fix | Delete
}
[2162] Fix | Delete
return result;
[2163] Fix | Delete
}
[2164] Fix | Delete
function pick(object, paths) {
[2165] Fix | Delete
const result = {};
[2166] Fix | Delete
for (const key of paths) {
[2167] Fix | Delete
if (Y3OOHFCN_hasOwnProperty(object, key)) {
[2168] Fix | Delete
result[key] = object[key];
[2169] Fix | Delete
}
[2170] Fix | Delete
}
[2171] Fix | Delete
return result;
[2172] Fix | Delete
}
[2173] Fix | Delete
function identity(value) {
[2174] Fix | Delete
return value;
[2175] Fix | Delete
}
[2176] Fix | Delete
function beforePaint(cb = noop) {
[2177] Fix | Delete
const raf = requestAnimationFrame(cb);
[2178] Fix | Delete
return () => cancelAnimationFrame(raf);
[2179] Fix | Delete
}
[2180] Fix | Delete
function afterPaint(cb = noop) {
[2181] Fix | Delete
let raf = requestAnimationFrame(() => {
[2182] Fix | Delete
raf = requestAnimationFrame(cb);
[2183] Fix | Delete
});
[2184] Fix | Delete
return () => cancelAnimationFrame(raf);
[2185] Fix | Delete
}
[2186] Fix | Delete
function invariant(condition, message) {
[2187] Fix | Delete
if (condition)
[2188] Fix | Delete
return;
[2189] Fix | Delete
if (typeof message !== "string")
[2190] Fix | Delete
throw new Error("Invariant failed");
[2191] Fix | Delete
throw new Error(message);
[2192] Fix | Delete
}
[2193] Fix | Delete
function getKeys(obj) {
[2194] Fix | Delete
return Object.keys(obj);
[2195] Fix | Delete
}
[2196] Fix | Delete
function isFalsyBooleanCallback(booleanOrCallback, ...args) {
[2197] Fix | Delete
const result = typeof booleanOrCallback === "function" ? booleanOrCallback(...args) : booleanOrCallback;
[2198] Fix | Delete
if (result == null)
[2199] Fix | Delete
return false;
[2200] Fix | Delete
return !result;
[2201] Fix | Delete
}
[2202] Fix | Delete
function disabledFromProps(props) {
[2203] Fix | Delete
return props.disabled || props["aria-disabled"] === true || props["aria-disabled"] === "true";
[2204] Fix | Delete
}
[2205] Fix | Delete
function defaultValue(...values) {
[2206] Fix | Delete
for (const value of values) {
[2207] Fix | Delete
if (value !== void 0)
[2208] Fix | Delete
return value;
[2209] Fix | Delete
}
[2210] Fix | Delete
return void 0;
[2211] Fix | Delete
}
[2212] Fix | Delete
[2213] Fix | Delete
[2214] Fix | Delete
[2215] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/XM66DUTO.js
[2216] Fix | Delete
"use client";
[2217] Fix | Delete
[2218] Fix | Delete
[2219] Fix | Delete
// src/utils/misc.ts
[2220] Fix | Delete
[2221] Fix | Delete
[2222] Fix | Delete
function setRef(ref, value) {
[2223] Fix | Delete
if (typeof ref === "function") {
[2224] Fix | Delete
ref(value);
[2225] Fix | Delete
} else if (ref) {
[2226] Fix | Delete
ref.current = value;
[2227] Fix | Delete
}
[2228] Fix | Delete
}
[2229] Fix | Delete
function isValidElementWithRef(element) {
[2230] Fix | Delete
if (!element)
[2231] Fix | Delete
return false;
[2232] Fix | Delete
if (!(0,external_React_.isValidElement)(element))
[2233] Fix | Delete
return false;
[2234] Fix | Delete
if (!("ref" in element))
[2235] Fix | Delete
return false;
[2236] Fix | Delete
return true;
[2237] Fix | Delete
}
[2238] Fix | Delete
function getRefProperty(element) {
[2239] Fix | Delete
if (!isValidElementWithRef(element))
[2240] Fix | Delete
return null;
[2241] Fix | Delete
return element.ref;
[2242] Fix | Delete
}
[2243] Fix | Delete
function mergeProps(base, overrides) {
[2244] Fix | Delete
const props = _4R3V3JGP_spreadValues({}, base);
[2245] Fix | Delete
for (const key in overrides) {
[2246] Fix | Delete
if (!Y3OOHFCN_hasOwnProperty(overrides, key))
[2247] Fix | Delete
continue;
[2248] Fix | Delete
if (key === "className") {
[2249] Fix | Delete
const prop = "className";
[2250] Fix | Delete
props[prop] = base[prop] ? `${base[prop]} ${overrides[prop]}` : overrides[prop];
[2251] Fix | Delete
continue;
[2252] Fix | Delete
}
[2253] Fix | Delete
if (key === "style") {
[2254] Fix | Delete
const prop = "style";
[2255] Fix | Delete
props[prop] = base[prop] ? _4R3V3JGP_spreadValues(_4R3V3JGP_spreadValues({}, base[prop]), overrides[prop]) : overrides[prop];
[2256] Fix | Delete
continue;
[2257] Fix | Delete
}
[2258] Fix | Delete
const overrideValue = overrides[key];
[2259] Fix | Delete
if (typeof overrideValue === "function" && key.startsWith("on")) {
[2260] Fix | Delete
const baseValue = base[key];
[2261] Fix | Delete
if (typeof baseValue === "function") {
[2262] Fix | Delete
props[key] = (...args) => {
[2263] Fix | Delete
overrideValue(...args);
[2264] Fix | Delete
baseValue(...args);
[2265] Fix | Delete
};
[2266] Fix | Delete
continue;
[2267] Fix | Delete
}
[2268] Fix | Delete
}
[2269] Fix | Delete
props[key] = overrideValue;
[2270] Fix | Delete
}
[2271] Fix | Delete
return props;
[2272] Fix | Delete
}
[2273] Fix | Delete
[2274] Fix | Delete
[2275] Fix | Delete
[2276] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/DLOEKDPY.js
[2277] Fix | Delete
"use client";
[2278] Fix | Delete
[2279] Fix | Delete
// src/utils/dom.ts
[2280] Fix | Delete
var canUseDOM = checkIsBrowser();
[2281] Fix | Delete
function checkIsBrowser() {
[2282] Fix | Delete
var _a;
[2283] Fix | Delete
return typeof window !== "undefined" && !!((_a = window.document) == null ? void 0 : _a.createElement);
[2284] Fix | Delete
}
[2285] Fix | Delete
function DLOEKDPY_getDocument(node) {
[2286] Fix | Delete
return node ? node.ownerDocument || node : document;
[2287] Fix | Delete
}
[2288] Fix | Delete
function getWindow(node) {
[2289] Fix | Delete
return DLOEKDPY_getDocument(node).defaultView || window;
[2290] Fix | Delete
}
[2291] Fix | Delete
function getActiveElement(node, activeDescendant = false) {
[2292] Fix | Delete
const { activeElement } = DLOEKDPY_getDocument(node);
[2293] Fix | Delete
if (!(activeElement == null ? void 0 : activeElement.nodeName)) {
[2294] Fix | Delete
return null;
[2295] Fix | Delete
}
[2296] Fix | Delete
if (isFrame(activeElement) && activeElement.contentDocument) {
[2297] Fix | Delete
return getActiveElement(
[2298] Fix | Delete
activeElement.contentDocument.body,
[2299] Fix | Delete
activeDescendant
[2300] Fix | Delete
);
[2301] Fix | Delete
}
[2302] Fix | Delete
if (activeDescendant) {
[2303] Fix | Delete
const id = activeElement.getAttribute("aria-activedescendant");
[2304] Fix | Delete
if (id) {
[2305] Fix | Delete
const element = DLOEKDPY_getDocument(activeElement).getElementById(id);
[2306] Fix | Delete
if (element) {
[2307] Fix | Delete
return element;
[2308] Fix | Delete
}
[2309] Fix | Delete
}
[2310] Fix | Delete
}
[2311] Fix | Delete
return activeElement;
[2312] Fix | Delete
}
[2313] Fix | Delete
function contains(parent, child) {
[2314] Fix | Delete
return parent === child || parent.contains(child);
[2315] Fix | Delete
}
[2316] Fix | Delete
function isFrame(element) {
[2317] Fix | Delete
return element.tagName === "IFRAME";
[2318] Fix | Delete
}
[2319] Fix | Delete
function isButton(element) {
[2320] Fix | Delete
const tagName = element.tagName.toLowerCase();
[2321] Fix | Delete
if (tagName === "button")
[2322] Fix | Delete
return true;
[2323] Fix | Delete
if (tagName === "input" && element.type) {
[2324] Fix | Delete
return buttonInputTypes.indexOf(element.type) !== -1;
[2325] Fix | Delete
}
[2326] Fix | Delete
return false;
[2327] Fix | Delete
}
[2328] Fix | Delete
var buttonInputTypes = [
[2329] Fix | Delete
"button",
[2330] Fix | Delete
"color",
[2331] Fix | Delete
"file",
[2332] Fix | Delete
"image",
[2333] Fix | Delete
"reset",
[2334] Fix | Delete
"submit"
[2335] Fix | Delete
];
[2336] Fix | Delete
function matches(element, selectors) {
[2337] Fix | Delete
if ("matches" in element) {
[2338] Fix | Delete
return element.matches(selectors);
[2339] Fix | Delete
}
[2340] Fix | Delete
if ("msMatchesSelector" in element) {
[2341] Fix | Delete
return element.msMatchesSelector(selectors);
[2342] Fix | Delete
}
[2343] Fix | Delete
return element.webkitMatchesSelector(selectors);
[2344] Fix | Delete
}
[2345] Fix | Delete
function isVisible(element) {
[2346] Fix | Delete
const htmlElement = element;
[2347] Fix | Delete
return htmlElement.offsetWidth > 0 || htmlElement.offsetHeight > 0 || element.getClientRects().length > 0;
[2348] Fix | Delete
}
[2349] Fix | Delete
function DLOEKDPY_closest(element, selectors) {
[2350] Fix | Delete
if ("closest" in element)
[2351] Fix | Delete
return element.closest(selectors);
[2352] Fix | Delete
do {
[2353] Fix | Delete
if (matches(element, selectors))
[2354] Fix | Delete
return element;
[2355] Fix | Delete
element = element.parentElement || element.parentNode;
[2356] Fix | Delete
} while (element !== null && element.nodeType === 1);
[2357] Fix | Delete
return null;
[2358] Fix | Delete
}
[2359] Fix | Delete
function DLOEKDPY_isTextField(element) {
[2360] Fix | Delete
try {
[2361] Fix | Delete
const isTextInput = element instanceof HTMLInputElement && element.selectionStart !== null;
[2362] Fix | Delete
const isTextArea = element.tagName === "TEXTAREA";
[2363] Fix | Delete
return isTextInput || isTextArea || false;
[2364] Fix | Delete
} catch (error) {
[2365] Fix | Delete
return false;
[2366] Fix | Delete
}
[2367] Fix | Delete
}
[2368] Fix | Delete
function getPopupRole(element, fallback) {
[2369] Fix | Delete
const allowedPopupRoles = ["dialog", "menu", "listbox", "tree", "grid"];
[2370] Fix | Delete
const role = element == null ? void 0 : element.getAttribute("role");
[2371] Fix | Delete
if (role && allowedPopupRoles.indexOf(role) !== -1) {
[2372] Fix | Delete
return role;
[2373] Fix | Delete
}
[2374] Fix | Delete
return fallback;
[2375] Fix | Delete
}
[2376] Fix | Delete
function getPopupItemRole(element, fallback) {
[2377] Fix | Delete
var _a;
[2378] Fix | Delete
const itemRoleByPopupRole = {
[2379] Fix | Delete
menu: "menuitem",
[2380] Fix | Delete
listbox: "option",
[2381] Fix | Delete
tree: "treeitem",
[2382] Fix | Delete
grid: "gridcell"
[2383] Fix | Delete
};
[2384] Fix | Delete
const popupRole = getPopupRole(element);
[2385] Fix | Delete
if (!popupRole)
[2386] Fix | Delete
return fallback;
[2387] Fix | Delete
const key = popupRole;
[2388] Fix | Delete
return (_a = itemRoleByPopupRole[key]) != null ? _a : fallback;
[2389] Fix | Delete
}
[2390] Fix | Delete
function getTextboxSelection(element) {
[2391] Fix | Delete
let start = 0;
[2392] Fix | Delete
let end = 0;
[2393] Fix | Delete
if (DLOEKDPY_isTextField(element)) {
[2394] Fix | Delete
start = element.selectionStart || 0;
[2395] Fix | Delete
end = element.selectionEnd || 0;
[2396] Fix | Delete
} else if (element.isContentEditable) {
[2397] Fix | Delete
const selection = DLOEKDPY_getDocument(element).getSelection();
[2398] Fix | Delete
if ((selection == null ? void 0 : selection.rangeCount) && selection.anchorNode && contains(element, selection.anchorNode) && selection.focusNode && contains(element, selection.focusNode)) {
[2399] Fix | Delete
const range = selection.getRangeAt(0);
[2400] Fix | Delete
const nextRange = range.cloneRange();
[2401] Fix | Delete
nextRange.selectNodeContents(element);
[2402] Fix | Delete
nextRange.setEnd(range.startContainer, range.startOffset);
[2403] Fix | Delete
start = nextRange.toString().length;
[2404] Fix | Delete
nextRange.setEnd(range.endContainer, range.endOffset);
[2405] Fix | Delete
end = nextRange.toString().length;
[2406] Fix | Delete
}
[2407] Fix | Delete
}
[2408] Fix | Delete
return { start, end };
[2409] Fix | Delete
}
[2410] Fix | Delete
function scrollIntoViewIfNeeded(element, arg) {
[2411] Fix | Delete
if (isPartiallyHidden(element) && "scrollIntoView" in element) {
[2412] Fix | Delete
element.scrollIntoView(arg);
[2413] Fix | Delete
}
[2414] Fix | Delete
}
[2415] Fix | Delete
function getScrollingElement(element) {
[2416] Fix | Delete
if (!element)
[2417] Fix | Delete
return null;
[2418] Fix | Delete
if (element.clientHeight && element.scrollHeight > element.clientHeight) {
[2419] Fix | Delete
const { overflowY } = getComputedStyle(element);
[2420] Fix | Delete
const isScrollable = overflowY !== "visible" && overflowY !== "hidden";
[2421] Fix | Delete
if (isScrollable)
[2422] Fix | Delete
return element;
[2423] Fix | Delete
} else if (element.clientWidth && element.scrollWidth > element.clientWidth) {
[2424] Fix | Delete
const { overflowX } = getComputedStyle(element);
[2425] Fix | Delete
const isScrollable = overflowX !== "visible" && overflowX !== "hidden";
[2426] Fix | Delete
if (isScrollable)
[2427] Fix | Delete
return element;
[2428] Fix | Delete
}
[2429] Fix | Delete
return getScrollingElement(element.parentElement) || document.scrollingElement || document.body;
[2430] Fix | Delete
}
[2431] Fix | Delete
function isPartiallyHidden(element) {
[2432] Fix | Delete
const elementRect = element.getBoundingClientRect();
[2433] Fix | Delete
const scroller = getScrollingElement(element);
[2434] Fix | Delete
if (!scroller)
[2435] Fix | Delete
return false;
[2436] Fix | Delete
const scrollerRect = scroller.getBoundingClientRect();
[2437] Fix | Delete
const isHTML = scroller.tagName === "HTML";
[2438] Fix | Delete
const scrollerTop = isHTML ? scrollerRect.top + scroller.scrollTop : scrollerRect.top;
[2439] Fix | Delete
const scrollerBottom = isHTML ? scroller.clientHeight : scrollerRect.bottom;
[2440] Fix | Delete
const scrollerLeft = isHTML ? scrollerRect.left + scroller.scrollLeft : scrollerRect.left;
[2441] Fix | Delete
const scrollerRight = isHTML ? scroller.clientWidth : scrollerRect.right;
[2442] Fix | Delete
const top = elementRect.top < scrollerTop;
[2443] Fix | Delete
const left = elementRect.left < scrollerLeft;
[2444] Fix | Delete
const bottom = elementRect.bottom > scrollerBottom;
[2445] Fix | Delete
const right = elementRect.right > scrollerRight;
[2446] Fix | Delete
return top || left || bottom || right;
[2447] Fix | Delete
}
[2448] Fix | Delete
function setSelectionRange(element, ...args) {
[2449] Fix | Delete
if (/text|search|password|tel|url/i.test(element.type)) {
[2450] Fix | Delete
element.setSelectionRange(...args);
[2451] Fix | Delete
}
[2452] Fix | Delete
}
[2453] Fix | Delete
[2454] Fix | Delete
[2455] Fix | Delete
[2456] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/MHPO2BXA.js
[2457] Fix | Delete
"use client";
[2458] Fix | Delete
[2459] Fix | Delete
[2460] Fix | Delete
// src/utils/platform.ts
[2461] Fix | Delete
function isTouchDevice() {
[2462] Fix | Delete
return canUseDOM && !!navigator.maxTouchPoints;
[2463] Fix | Delete
}
[2464] Fix | Delete
function isApple() {
[2465] Fix | Delete
if (!canUseDOM)
[2466] Fix | Delete
return false;
[2467] Fix | Delete
return /mac|iphone|ipad|ipod/i.test(navigator.platform);
[2468] Fix | Delete
}
[2469] Fix | Delete
function isSafari() {
[2470] Fix | Delete
return canUseDOM && isApple() && /apple/i.test(navigator.vendor);
[2471] Fix | Delete
}
[2472] Fix | Delete
function isFirefox() {
[2473] Fix | Delete
return canUseDOM && /firefox\//i.test(navigator.userAgent);
[2474] Fix | Delete
}
[2475] Fix | Delete
function isMac() {
[2476] Fix | Delete
return canUseDOM && navigator.platform.startsWith("Mac") && !isTouchDevice();
[2477] Fix | Delete
}
[2478] Fix | Delete
[2479] Fix | Delete
[2480] Fix | Delete
[2481] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/utils/events.js
[2482] Fix | Delete
"use client";
[2483] Fix | Delete
[2484] Fix | Delete
[2485] Fix | Delete
[2486] Fix | Delete
[2487] Fix | Delete
// src/utils/events.ts
[2488] Fix | Delete
function isPortalEvent(event) {
[2489] Fix | Delete
return Boolean(
[2490] Fix | Delete
event.currentTarget && !contains(event.currentTarget, event.target)
[2491] Fix | Delete
);
[2492] Fix | Delete
}
[2493] Fix | Delete
function isSelfTarget(event) {
[2494] Fix | Delete
return event.target === event.currentTarget;
[2495] Fix | Delete
}
[2496] Fix | Delete
function isOpeningInNewTab(event) {
[2497] Fix | Delete
const element = event.currentTarget;
[2498] Fix | Delete
if (!element)
[2499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function