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
});
[14500] Fix | Delete
/* harmony default export */ const colors_values = ((/* unused pure expression or super */ null && (COLORS)));
[14501] Fix | Delete
[14502] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/styles/alignment-matrix-control-styles.js
[14503] Fix | Delete
[14504] Fix | Delete
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
[14505] Fix | Delete
/**
[14506] Fix | Delete
* External dependencies
[14507] Fix | Delete
*/
[14508] Fix | Delete
[14509] Fix | Delete
[14510] Fix | Delete
[14511] Fix | Delete
/**
[14512] Fix | Delete
* Internal dependencies
[14513] Fix | Delete
*/
[14514] Fix | Delete
[14515] Fix | Delete
var _ref = true ? {
[14516] Fix | Delete
name: "93uojk",
[14517] Fix | Delete
styles: "border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"
[14518] Fix | Delete
} : 0;
[14519] Fix | Delete
const rootBase = () => {
[14520] Fix | Delete
return _ref;
[14521] Fix | Delete
};
[14522] Fix | Delete
const rootSize = ({
[14523] Fix | Delete
size = 92
[14524] Fix | Delete
}) => {
[14525] Fix | Delete
return /*#__PURE__*/emotion_react_browser_esm_css("grid-template-rows:repeat( 3, calc( ", size, "px / 3 ) );width:", size, "px;" + ( true ? "" : 0), true ? "" : 0);
[14526] Fix | Delete
};
[14527] Fix | Delete
const Root = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
[14528] Fix | Delete
target: "ecapk1j3"
[14529] Fix | Delete
} : 0)(rootBase, ";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;", rootSize, ";" + ( true ? "" : 0));
[14530] Fix | Delete
const Row = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
[14531] Fix | Delete
target: "ecapk1j2"
[14532] Fix | Delete
} : 0)( true ? {
[14533] Fix | Delete
name: "1x5gbbj",
[14534] Fix | Delete
styles: "box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"
[14535] Fix | Delete
} : 0);
[14536] Fix | Delete
const pointActive = ({
[14537] Fix | Delete
isActive
[14538] Fix | Delete
}) => {
[14539] Fix | Delete
const boxShadow = isActive ? `0 0 0 2px ${COLORS.gray[900]}` : null;
[14540] Fix | Delete
const pointColor = isActive ? COLORS.gray[900] : COLORS.gray[400];
[14541] Fix | Delete
const pointColorHover = isActive ? COLORS.gray[900] : COLORS.theme.accent;
[14542] Fix | Delete
return /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:", boxShadow, ";color:", pointColor, ";*:hover>&{color:", pointColorHover, ";}" + ( true ? "" : 0), true ? "" : 0);
[14543] Fix | Delete
};
[14544] Fix | Delete
const pointBase = props => {
[14545] Fix | Delete
return /*#__PURE__*/emotion_react_browser_esm_css("background:currentColor;box-sizing:border-box;display:grid;margin:auto;@media not ( prefers-reduced-motion ){transition:all 120ms linear;}", pointActive(props), ";" + ( true ? "" : 0), true ? "" : 0);
[14546] Fix | Delete
};
[14547] Fix | Delete
const Point = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
[14548] Fix | Delete
target: "ecapk1j1"
[14549] Fix | Delete
} : 0)("height:6px;width:6px;", pointBase, ";" + ( true ? "" : 0));
[14550] Fix | Delete
const Cell = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
[14551] Fix | Delete
target: "ecapk1j0"
[14552] Fix | Delete
} : 0)( true ? {
[14553] Fix | Delete
name: "rjf3ub",
[14554] Fix | Delete
styles: "appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0"
[14555] Fix | Delete
} : 0);
[14556] Fix | Delete
[14557] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/cell.js
[14558] Fix | Delete
/**
[14559] Fix | Delete
* Internal dependencies
[14560] Fix | Delete
*/
[14561] Fix | Delete
[14562] Fix | Delete
[14563] Fix | Delete
[14564] Fix | Delete
[14565] Fix | Delete
/**
[14566] Fix | Delete
* Internal dependencies
[14567] Fix | Delete
*/
[14568] Fix | Delete
[14569] Fix | Delete
[14570] Fix | Delete
[14571] Fix | Delete
[14572] Fix | Delete
function cell_Cell({
[14573] Fix | Delete
id,
[14574] Fix | Delete
isActive = false,
[14575] Fix | Delete
value,
[14576] Fix | Delete
...props
[14577] Fix | Delete
}) {
[14578] Fix | Delete
const tooltipText = ALIGNMENT_LABEL[value];
[14579] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
[14580] Fix | Delete
text: tooltipText,
[14581] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(CompositeItem, {
[14582] Fix | Delete
id: id,
[14583] Fix | Delete
render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Cell, {
[14584] Fix | Delete
...props,
[14585] Fix | Delete
role: "gridcell"
[14586] Fix | Delete
}),
[14587] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
[14588] Fix | Delete
children: value
[14589] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Point, {
[14590] Fix | Delete
isActive: isActive,
[14591] Fix | Delete
role: "presentation"
[14592] Fix | Delete
})]
[14593] Fix | Delete
})
[14594] Fix | Delete
});
[14595] Fix | Delete
}
[14596] Fix | Delete
[14597] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/Y6GYTNQ2.js
[14598] Fix | Delete
"use client";
[14599] Fix | Delete
[14600] Fix | Delete
[14601] Fix | Delete
[14602] Fix | Delete
// src/collection/collection-store.ts
[14603] Fix | Delete
[14604] Fix | Delete
function useCollectionStoreProps(store, update, props) {
[14605] Fix | Delete
useUpdateEffect(update, [props.store]);
[14606] Fix | Delete
useStoreProps(store, props, "items", "setItems");
[14607] Fix | Delete
return store;
[14608] Fix | Delete
}
[14609] Fix | Delete
function useCollectionStore(props = {}) {
[14610] Fix | Delete
const [store, update] = useStore(Core.createCollectionStore, props);
[14611] Fix | Delete
return useCollectionStoreProps(store, update, props);
[14612] Fix | Delete
}
[14613] Fix | Delete
[14614] Fix | Delete
[14615] Fix | Delete
[14616] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/22K762VQ.js
[14617] Fix | Delete
"use client";
[14618] Fix | Delete
[14619] Fix | Delete
[14620] Fix | Delete
[14621] Fix | Delete
[14622] Fix | Delete
[14623] Fix | Delete
// src/collection/collection-store.ts
[14624] Fix | Delete
function isElementPreceding(a, b) {
[14625] Fix | Delete
return Boolean(
[14626] Fix | Delete
b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING
[14627] Fix | Delete
);
[14628] Fix | Delete
}
[14629] Fix | Delete
function sortBasedOnDOMPosition(items) {
[14630] Fix | Delete
const pairs = items.map((item, index) => [index, item]);
[14631] Fix | Delete
let isOrderDifferent = false;
[14632] Fix | Delete
pairs.sort(([indexA, a], [indexB, b]) => {
[14633] Fix | Delete
const elementA = a.element;
[14634] Fix | Delete
const elementB = b.element;
[14635] Fix | Delete
if (elementA === elementB)
[14636] Fix | Delete
return 0;
[14637] Fix | Delete
if (!elementA || !elementB)
[14638] Fix | Delete
return 0;
[14639] Fix | Delete
if (isElementPreceding(elementA, elementB)) {
[14640] Fix | Delete
if (indexA > indexB) {
[14641] Fix | Delete
isOrderDifferent = true;
[14642] Fix | Delete
}
[14643] Fix | Delete
return -1;
[14644] Fix | Delete
}
[14645] Fix | Delete
if (indexA < indexB) {
[14646] Fix | Delete
isOrderDifferent = true;
[14647] Fix | Delete
}
[14648] Fix | Delete
return 1;
[14649] Fix | Delete
});
[14650] Fix | Delete
if (isOrderDifferent) {
[14651] Fix | Delete
return pairs.map(([_, item]) => item);
[14652] Fix | Delete
}
[14653] Fix | Delete
return items;
[14654] Fix | Delete
}
[14655] Fix | Delete
function getCommonParent(items) {
[14656] Fix | Delete
var _a;
[14657] Fix | Delete
const firstItem = items.find((item) => !!item.element);
[14658] Fix | Delete
const lastItem = [...items].reverse().find((item) => !!item.element);
[14659] Fix | Delete
let parentElement = (_a = firstItem == null ? void 0 : firstItem.element) == null ? void 0 : _a.parentElement;
[14660] Fix | Delete
while (parentElement && (lastItem == null ? void 0 : lastItem.element)) {
[14661] Fix | Delete
const parent = parentElement;
[14662] Fix | Delete
if (lastItem && parent.contains(lastItem.element)) {
[14663] Fix | Delete
return parentElement;
[14664] Fix | Delete
}
[14665] Fix | Delete
parentElement = parentElement.parentElement;
[14666] Fix | Delete
}
[14667] Fix | Delete
return DLOEKDPY_getDocument(parentElement).body;
[14668] Fix | Delete
}
[14669] Fix | Delete
function getPrivateStore(store) {
[14670] Fix | Delete
return store == null ? void 0 : store.__unstablePrivateStore;
[14671] Fix | Delete
}
[14672] Fix | Delete
function createCollectionStore(props = {}) {
[14673] Fix | Delete
var _a;
[14674] Fix | Delete
throwOnConflictingProps(props, props.store);
[14675] Fix | Delete
const syncState = (_a = props.store) == null ? void 0 : _a.getState();
[14676] Fix | Delete
const items = defaultValue(
[14677] Fix | Delete
props.items,
[14678] Fix | Delete
syncState == null ? void 0 : syncState.items,
[14679] Fix | Delete
props.defaultItems,
[14680] Fix | Delete
[]
[14681] Fix | Delete
);
[14682] Fix | Delete
const itemsMap = new Map(items.map((item) => [item.id, item]));
[14683] Fix | Delete
const initialState = {
[14684] Fix | Delete
items,
[14685] Fix | Delete
renderedItems: defaultValue(syncState == null ? void 0 : syncState.renderedItems, [])
[14686] Fix | Delete
};
[14687] Fix | Delete
const syncPrivateStore = getPrivateStore(props.store);
[14688] Fix | Delete
const privateStore = createStore(
[14689] Fix | Delete
{ items, renderedItems: initialState.renderedItems },
[14690] Fix | Delete
syncPrivateStore
[14691] Fix | Delete
);
[14692] Fix | Delete
const collection = createStore(initialState, props.store);
[14693] Fix | Delete
const sortItems = (renderedItems) => {
[14694] Fix | Delete
const sortedItems = sortBasedOnDOMPosition(renderedItems);
[14695] Fix | Delete
privateStore.setState("renderedItems", sortedItems);
[14696] Fix | Delete
collection.setState("renderedItems", sortedItems);
[14697] Fix | Delete
};
[14698] Fix | Delete
setup(collection, () => init(privateStore));
[14699] Fix | Delete
setup(privateStore, () => {
[14700] Fix | Delete
return batch(privateStore, ["items"], (state) => {
[14701] Fix | Delete
collection.setState("items", state.items);
[14702] Fix | Delete
});
[14703] Fix | Delete
});
[14704] Fix | Delete
setup(privateStore, () => {
[14705] Fix | Delete
return batch(privateStore, ["renderedItems"], (state) => {
[14706] Fix | Delete
let firstRun = true;
[14707] Fix | Delete
let raf = requestAnimationFrame(() => {
[14708] Fix | Delete
const { renderedItems } = collection.getState();
[14709] Fix | Delete
if (state.renderedItems === renderedItems)
[14710] Fix | Delete
return;
[14711] Fix | Delete
sortItems(state.renderedItems);
[14712] Fix | Delete
});
[14713] Fix | Delete
if (typeof IntersectionObserver !== "function") {
[14714] Fix | Delete
return () => cancelAnimationFrame(raf);
[14715] Fix | Delete
}
[14716] Fix | Delete
const ioCallback = () => {
[14717] Fix | Delete
if (firstRun) {
[14718] Fix | Delete
firstRun = false;
[14719] Fix | Delete
return;
[14720] Fix | Delete
}
[14721] Fix | Delete
cancelAnimationFrame(raf);
[14722] Fix | Delete
raf = requestAnimationFrame(() => sortItems(state.renderedItems));
[14723] Fix | Delete
};
[14724] Fix | Delete
const root = getCommonParent(state.renderedItems);
[14725] Fix | Delete
const observer = new IntersectionObserver(ioCallback, { root });
[14726] Fix | Delete
for (const item of state.renderedItems) {
[14727] Fix | Delete
if (!item.element)
[14728] Fix | Delete
continue;
[14729] Fix | Delete
observer.observe(item.element);
[14730] Fix | Delete
}
[14731] Fix | Delete
return () => {
[14732] Fix | Delete
cancelAnimationFrame(raf);
[14733] Fix | Delete
observer.disconnect();
[14734] Fix | Delete
};
[14735] Fix | Delete
});
[14736] Fix | Delete
});
[14737] Fix | Delete
const mergeItem = (item, setItems, canDeleteFromMap = false) => {
[14738] Fix | Delete
let prevItem;
[14739] Fix | Delete
setItems((items2) => {
[14740] Fix | Delete
const index = items2.findIndex(({ id }) => id === item.id);
[14741] Fix | Delete
const nextItems = items2.slice();
[14742] Fix | Delete
if (index !== -1) {
[14743] Fix | Delete
prevItem = items2[index];
[14744] Fix | Delete
const nextItem = _chunks_4R3V3JGP_spreadValues(_chunks_4R3V3JGP_spreadValues({}, prevItem), item);
[14745] Fix | Delete
nextItems[index] = nextItem;
[14746] Fix | Delete
itemsMap.set(item.id, nextItem);
[14747] Fix | Delete
} else {
[14748] Fix | Delete
nextItems.push(item);
[14749] Fix | Delete
itemsMap.set(item.id, item);
[14750] Fix | Delete
}
[14751] Fix | Delete
return nextItems;
[14752] Fix | Delete
});
[14753] Fix | Delete
const unmergeItem = () => {
[14754] Fix | Delete
setItems((items2) => {
[14755] Fix | Delete
if (!prevItem) {
[14756] Fix | Delete
if (canDeleteFromMap) {
[14757] Fix | Delete
itemsMap.delete(item.id);
[14758] Fix | Delete
}
[14759] Fix | Delete
return items2.filter(({ id }) => id !== item.id);
[14760] Fix | Delete
}
[14761] Fix | Delete
const index = items2.findIndex(({ id }) => id === item.id);
[14762] Fix | Delete
if (index === -1)
[14763] Fix | Delete
return items2;
[14764] Fix | Delete
const nextItems = items2.slice();
[14765] Fix | Delete
nextItems[index] = prevItem;
[14766] Fix | Delete
itemsMap.set(item.id, prevItem);
[14767] Fix | Delete
return nextItems;
[14768] Fix | Delete
});
[14769] Fix | Delete
};
[14770] Fix | Delete
return unmergeItem;
[14771] Fix | Delete
};
[14772] Fix | Delete
const registerItem = (item) => mergeItem(
[14773] Fix | Delete
item,
[14774] Fix | Delete
(getItems) => privateStore.setState("items", getItems),
[14775] Fix | Delete
true
[14776] Fix | Delete
);
[14777] Fix | Delete
return _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, collection), {
[14778] Fix | Delete
registerItem,
[14779] Fix | Delete
renderItem: (item) => chain(
[14780] Fix | Delete
registerItem(item),
[14781] Fix | Delete
mergeItem(
[14782] Fix | Delete
item,
[14783] Fix | Delete
(getItems) => privateStore.setState("renderedItems", getItems)
[14784] Fix | Delete
)
[14785] Fix | Delete
),
[14786] Fix | Delete
item: (id) => {
[14787] Fix | Delete
if (!id)
[14788] Fix | Delete
return null;
[14789] Fix | Delete
let item = itemsMap.get(id);
[14790] Fix | Delete
if (!item) {
[14791] Fix | Delete
const { items: items2 } = collection.getState();
[14792] Fix | Delete
item = items2.find((item2) => item2.id === id);
[14793] Fix | Delete
if (item) {
[14794] Fix | Delete
itemsMap.set(id, item);
[14795] Fix | Delete
}
[14796] Fix | Delete
}
[14797] Fix | Delete
return item || null;
[14798] Fix | Delete
},
[14799] Fix | Delete
// @ts-expect-error Internal
[14800] Fix | Delete
__unstablePrivateStore: privateStore
[14801] Fix | Delete
});
[14802] Fix | Delete
}
[14803] Fix | Delete
[14804] Fix | Delete
[14805] Fix | Delete
[14806] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/7PRQYBBV.js
[14807] Fix | Delete
"use client";
[14808] Fix | Delete
[14809] Fix | Delete
// src/utils/array.ts
[14810] Fix | Delete
function toArray(arg) {
[14811] Fix | Delete
if (Array.isArray(arg)) {
[14812] Fix | Delete
return arg;
[14813] Fix | Delete
}
[14814] Fix | Delete
return typeof arg !== "undefined" ? [arg] : [];
[14815] Fix | Delete
}
[14816] Fix | Delete
function addItemToArray(array, item, index = -1) {
[14817] Fix | Delete
if (!(index in array)) {
[14818] Fix | Delete
return [...array, item];
[14819] Fix | Delete
}
[14820] Fix | Delete
return [...array.slice(0, index), item, ...array.slice(index)];
[14821] Fix | Delete
}
[14822] Fix | Delete
function flatten2DArray(array) {
[14823] Fix | Delete
const flattened = [];
[14824] Fix | Delete
for (const row of array) {
[14825] Fix | Delete
flattened.push(...row);
[14826] Fix | Delete
}
[14827] Fix | Delete
return flattened;
[14828] Fix | Delete
}
[14829] Fix | Delete
function reverseArray(array) {
[14830] Fix | Delete
return array.slice().reverse();
[14831] Fix | Delete
}
[14832] Fix | Delete
[14833] Fix | Delete
[14834] Fix | Delete
[14835] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/IERTEJ3A.js
[14836] Fix | Delete
"use client";
[14837] Fix | Delete
[14838] Fix | Delete
[14839] Fix | Delete
[14840] Fix | Delete
[14841] Fix | Delete
[14842] Fix | Delete
[14843] Fix | Delete
// src/composite/composite-store.ts
[14844] Fix | Delete
var IERTEJ3A_NULL_ITEM = { id: null };
[14845] Fix | Delete
function IERTEJ3A_findFirstEnabledItem(items, excludeId) {
[14846] Fix | Delete
return items.find((item) => {
[14847] Fix | Delete
if (excludeId) {
[14848] Fix | Delete
return !item.disabled && item.id !== excludeId;
[14849] Fix | Delete
}
[14850] Fix | Delete
return !item.disabled;
[14851] Fix | Delete
});
[14852] Fix | Delete
}
[14853] Fix | Delete
function getEnabledItems(items, excludeId) {
[14854] Fix | Delete
return items.filter((item) => {
[14855] Fix | Delete
if (excludeId) {
[14856] Fix | Delete
return !item.disabled && item.id !== excludeId;
[14857] Fix | Delete
}
[14858] Fix | Delete
return !item.disabled;
[14859] Fix | Delete
});
[14860] Fix | Delete
}
[14861] Fix | Delete
function getOppositeOrientation(orientation) {
[14862] Fix | Delete
if (orientation === "vertical")
[14863] Fix | Delete
return "horizontal";
[14864] Fix | Delete
if (orientation === "horizontal")
[14865] Fix | Delete
return "vertical";
[14866] Fix | Delete
return;
[14867] Fix | Delete
}
[14868] Fix | Delete
function getItemsInRow(items, rowId) {
[14869] Fix | Delete
return items.filter((item) => item.rowId === rowId);
[14870] Fix | Delete
}
[14871] Fix | Delete
function IERTEJ3A_flipItems(items, activeId, shouldInsertNullItem = false) {
[14872] Fix | Delete
const index = items.findIndex((item) => item.id === activeId);
[14873] Fix | Delete
return [
[14874] Fix | Delete
...items.slice(index + 1),
[14875] Fix | Delete
...shouldInsertNullItem ? [IERTEJ3A_NULL_ITEM] : [],
[14876] Fix | Delete
...items.slice(0, index)
[14877] Fix | Delete
];
[14878] Fix | Delete
}
[14879] Fix | Delete
function IERTEJ3A_groupItemsByRows(items) {
[14880] Fix | Delete
const rows = [];
[14881] Fix | Delete
for (const item of items) {
[14882] Fix | Delete
const row = rows.find((currentRow) => {
[14883] Fix | Delete
var _a;
[14884] Fix | Delete
return ((_a = currentRow[0]) == null ? void 0 : _a.rowId) === item.rowId;
[14885] Fix | Delete
});
[14886] Fix | Delete
if (row) {
[14887] Fix | Delete
row.push(item);
[14888] Fix | Delete
} else {
[14889] Fix | Delete
rows.push([item]);
[14890] Fix | Delete
}
[14891] Fix | Delete
}
[14892] Fix | Delete
return rows;
[14893] Fix | Delete
}
[14894] Fix | Delete
function getMaxRowLength(array) {
[14895] Fix | Delete
let maxLength = 0;
[14896] Fix | Delete
for (const { length } of array) {
[14897] Fix | Delete
if (length > maxLength) {
[14898] Fix | Delete
maxLength = length;
[14899] Fix | Delete
}
[14900] Fix | Delete
}
[14901] Fix | Delete
return maxLength;
[14902] Fix | Delete
}
[14903] Fix | Delete
function createEmptyItem(rowId) {
[14904] Fix | Delete
return {
[14905] Fix | Delete
id: "__EMPTY_ITEM__",
[14906] Fix | Delete
disabled: true,
[14907] Fix | Delete
rowId
[14908] Fix | Delete
};
[14909] Fix | Delete
}
[14910] Fix | Delete
function normalizeRows(rows, activeId, focusShift) {
[14911] Fix | Delete
const maxLength = getMaxRowLength(rows);
[14912] Fix | Delete
for (const row of rows) {
[14913] Fix | Delete
for (let i = 0; i < maxLength; i += 1) {
[14914] Fix | Delete
const item = row[i];
[14915] Fix | Delete
if (!item || focusShift && item.disabled) {
[14916] Fix | Delete
const isFirst = i === 0;
[14917] Fix | Delete
const previousItem = isFirst && focusShift ? IERTEJ3A_findFirstEnabledItem(row) : row[i - 1];
[14918] Fix | Delete
row[i] = previousItem && activeId !== previousItem.id && focusShift ? previousItem : createEmptyItem(previousItem == null ? void 0 : previousItem.rowId);
[14919] Fix | Delete
}
[14920] Fix | Delete
}
[14921] Fix | Delete
}
[14922] Fix | Delete
return rows;
[14923] Fix | Delete
}
[14924] Fix | Delete
function verticalizeItems(items) {
[14925] Fix | Delete
const rows = IERTEJ3A_groupItemsByRows(items);
[14926] Fix | Delete
const maxLength = getMaxRowLength(rows);
[14927] Fix | Delete
const verticalized = [];
[14928] Fix | Delete
for (let i = 0; i < maxLength; i += 1) {
[14929] Fix | Delete
for (const row of rows) {
[14930] Fix | Delete
const item = row[i];
[14931] Fix | Delete
if (item) {
[14932] Fix | Delete
verticalized.push(_chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, item), {
[14933] Fix | Delete
// If there's no rowId, it means that it's not a grid composite, but
[14934] Fix | Delete
// a single row instead. So, instead of verticalizing it, that is,
[14935] Fix | Delete
// assigning a different rowId based on the column index, we keep it
[14936] Fix | Delete
// undefined so they will be part of the same row. This is useful
[14937] Fix | Delete
// when using up/down on one-dimensional composites.
[14938] Fix | Delete
rowId: item.rowId ? `${i}` : void 0
[14939] Fix | Delete
}));
[14940] Fix | Delete
}
[14941] Fix | Delete
}
[14942] Fix | Delete
}
[14943] Fix | Delete
return verticalized;
[14944] Fix | Delete
}
[14945] Fix | Delete
function createCompositeStore(props = {}) {
[14946] Fix | Delete
var _a;
[14947] Fix | Delete
const syncState = (_a = props.store) == null ? void 0 : _a.getState();
[14948] Fix | Delete
const collection = createCollectionStore(props);
[14949] Fix | Delete
const activeId = defaultValue(
[14950] Fix | Delete
props.activeId,
[14951] Fix | Delete
syncState == null ? void 0 : syncState.activeId,
[14952] Fix | Delete
props.defaultActiveId
[14953] Fix | Delete
);
[14954] Fix | Delete
const initialState = _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, collection.getState()), {
[14955] Fix | Delete
activeId,
[14956] Fix | Delete
baseElement: defaultValue(syncState == null ? void 0 : syncState.baseElement, null),
[14957] Fix | Delete
includesBaseElement: defaultValue(
[14958] Fix | Delete
props.includesBaseElement,
[14959] Fix | Delete
syncState == null ? void 0 : syncState.includesBaseElement,
[14960] Fix | Delete
activeId === null
[14961] Fix | Delete
),
[14962] Fix | Delete
moves: defaultValue(syncState == null ? void 0 : syncState.moves, 0),
[14963] Fix | Delete
orientation: defaultValue(
[14964] Fix | Delete
props.orientation,
[14965] Fix | Delete
syncState == null ? void 0 : syncState.orientation,
[14966] Fix | Delete
"both"
[14967] Fix | Delete
),
[14968] Fix | Delete
rtl: defaultValue(props.rtl, syncState == null ? void 0 : syncState.rtl, false),
[14969] Fix | Delete
virtualFocus: defaultValue(
[14970] Fix | Delete
props.virtualFocus,
[14971] Fix | Delete
syncState == null ? void 0 : syncState.virtualFocus,
[14972] Fix | Delete
false
[14973] Fix | Delete
),
[14974] Fix | Delete
focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, false),
[14975] Fix | Delete
focusWrap: defaultValue(props.focusWrap, syncState == null ? void 0 : syncState.focusWrap, false),
[14976] Fix | Delete
focusShift: defaultValue(props.focusShift, syncState == null ? void 0 : syncState.focusShift, false)
[14977] Fix | Delete
});
[14978] Fix | Delete
const composite = createStore(initialState, collection, props.store);
[14979] Fix | Delete
setup(
[14980] Fix | Delete
composite,
[14981] Fix | Delete
() => sync(composite, ["renderedItems", "activeId"], (state) => {
[14982] Fix | Delete
composite.setState("activeId", (activeId2) => {
[14983] Fix | Delete
var _a2;
[14984] Fix | Delete
if (activeId2 !== void 0)
[14985] Fix | Delete
return activeId2;
[14986] Fix | Delete
return (_a2 = IERTEJ3A_findFirstEnabledItem(state.renderedItems)) == null ? void 0 : _a2.id;
[14987] Fix | Delete
});
[14988] Fix | Delete
})
[14989] Fix | Delete
);
[14990] Fix | Delete
const getNextId = (items, orientation, hasNullItem, skip) => {
[14991] Fix | Delete
var _a2, _b;
[14992] Fix | Delete
const { activeId: activeId2, rtl, focusLoop, focusWrap, includesBaseElement } = composite.getState();
[14993] Fix | Delete
const isHorizontal = orientation !== "vertical";
[14994] Fix | Delete
const isRTL = rtl && isHorizontal;
[14995] Fix | Delete
const allItems = isRTL ? reverseArray(items) : items;
[14996] Fix | Delete
if (activeId2 == null) {
[14997] Fix | Delete
return (_a2 = IERTEJ3A_findFirstEnabledItem(allItems)) == null ? void 0 : _a2.id;
[14998] Fix | Delete
}
[14999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function