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
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: commands.js
/******/ (() => { // webpackBootstrap
[0] Fix | Delete
/******/ var __webpack_modules__ = ({
[1] Fix | Delete
[2] Fix | Delete
/***/ 6007:
[3] Fix | Delete
/***/ ((module) => {
[4] Fix | Delete
[5] Fix | Delete
// The scores are arranged so that a continuous match of characters will
[6] Fix | Delete
// result in a total score of 1.
[7] Fix | Delete
//
[8] Fix | Delete
// The best case, this character is a match, and either this is the start
[9] Fix | Delete
// of the string, or the previous character was also a match.
[10] Fix | Delete
var SCORE_CONTINUE_MATCH = 1,
[11] Fix | Delete
[12] Fix | Delete
// A new match at the start of a word scores better than a new match
[13] Fix | Delete
// elsewhere as it's more likely that the user will type the starts
[14] Fix | Delete
// of fragments.
[15] Fix | Delete
// (Our notion of word includes CamelCase and hypen-separated, etc.)
[16] Fix | Delete
SCORE_WORD_JUMP = 0.9,
[17] Fix | Delete
[18] Fix | Delete
// Any other match isn't ideal, but we include it for completeness.
[19] Fix | Delete
SCORE_CHARACTER_JUMP = 0.3,
[20] Fix | Delete
[21] Fix | Delete
// If the user transposed two letters, it should be signficantly penalized.
[22] Fix | Delete
//
[23] Fix | Delete
// i.e. "ouch" is more likely than "curtain" when "uc" is typed.
[24] Fix | Delete
SCORE_TRANSPOSITION = 0.1,
[25] Fix | Delete
[26] Fix | Delete
// If the user jumped to half-way through a subsequent word, it should be
[27] Fix | Delete
// very significantly penalized.
[28] Fix | Delete
//
[29] Fix | Delete
// i.e. "loes" is very unlikely to match "loch ness".
[30] Fix | Delete
// NOTE: this is set to 0 for superhuman right now, but we may want to revisit.
[31] Fix | Delete
SCORE_LONG_JUMP = 0,
[32] Fix | Delete
[33] Fix | Delete
// The goodness of a match should decay slightly with each missing
[34] Fix | Delete
// character.
[35] Fix | Delete
//
[36] Fix | Delete
// i.e. "bad" is more likely than "bard" when "bd" is typed.
[37] Fix | Delete
//
[38] Fix | Delete
// This will not change the order of suggestions based on SCORE_* until
[39] Fix | Delete
// 100 characters are inserted between matches.
[40] Fix | Delete
PENALTY_SKIPPED = 0.999,
[41] Fix | Delete
[42] Fix | Delete
// The goodness of an exact-case match should be higher than a
[43] Fix | Delete
// case-insensitive match by a small amount.
[44] Fix | Delete
//
[45] Fix | Delete
// i.e. "HTML" is more likely than "haml" when "HM" is typed.
[46] Fix | Delete
//
[47] Fix | Delete
// This will not change the order of suggestions based on SCORE_* until
[48] Fix | Delete
// 1000 characters are inserted between matches.
[49] Fix | Delete
PENALTY_CASE_MISMATCH = 0.9999,
[50] Fix | Delete
[51] Fix | Delete
// If the word has more characters than the user typed, it should
[52] Fix | Delete
// be penalised slightly.
[53] Fix | Delete
//
[54] Fix | Delete
// i.e. "html" is more likely than "html5" if I type "html".
[55] Fix | Delete
//
[56] Fix | Delete
// However, it may well be the case that there's a sensible secondary
[57] Fix | Delete
// ordering (like alphabetical) that it makes sense to rely on when
[58] Fix | Delete
// there are many prefix matches, so we don't make the penalty increase
[59] Fix | Delete
// with the number of tokens.
[60] Fix | Delete
PENALTY_NOT_COMPLETE = 0.99;
[61] Fix | Delete
[62] Fix | Delete
var IS_GAP_REGEXP = /[\\\/\-_+.# \t"@\[\(\{&]/,
[63] Fix | Delete
COUNT_GAPS_REGEXP = /[\\\/\-_+.# \t"@\[\(\{&]/g;
[64] Fix | Delete
[65] Fix | Delete
function commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, stringIndex, abbreviationIndex) {
[66] Fix | Delete
[67] Fix | Delete
if (abbreviationIndex === abbreviation.length) {
[68] Fix | Delete
if (stringIndex === string.length) {
[69] Fix | Delete
return SCORE_CONTINUE_MATCH;
[70] Fix | Delete
[71] Fix | Delete
}
[72] Fix | Delete
return PENALTY_NOT_COMPLETE;
[73] Fix | Delete
}
[74] Fix | Delete
[75] Fix | Delete
var abbreviationChar = lowerAbbreviation.charAt(abbreviationIndex);
[76] Fix | Delete
var index = lowerString.indexOf(abbreviationChar, stringIndex);
[77] Fix | Delete
var highScore = 0;
[78] Fix | Delete
[79] Fix | Delete
var score, transposedScore, wordBreaks;
[80] Fix | Delete
[81] Fix | Delete
while (index >= 0) {
[82] Fix | Delete
[83] Fix | Delete
score = commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, index + 1, abbreviationIndex + 1);
[84] Fix | Delete
if (score > highScore) {
[85] Fix | Delete
if (index === stringIndex) {
[86] Fix | Delete
score *= SCORE_CONTINUE_MATCH;
[87] Fix | Delete
} else if (IS_GAP_REGEXP.test(string.charAt(index - 1))) {
[88] Fix | Delete
score *= SCORE_WORD_JUMP;
[89] Fix | Delete
wordBreaks = string.slice(stringIndex, index - 1).match(COUNT_GAPS_REGEXP);
[90] Fix | Delete
if (wordBreaks && stringIndex > 0) {
[91] Fix | Delete
score *= Math.pow(PENALTY_SKIPPED, wordBreaks.length);
[92] Fix | Delete
}
[93] Fix | Delete
} else if (IS_GAP_REGEXP.test(string.slice(stringIndex, index - 1))) {
[94] Fix | Delete
score *= SCORE_LONG_JUMP;
[95] Fix | Delete
if (stringIndex > 0) {
[96] Fix | Delete
score *= Math.pow(PENALTY_SKIPPED, index - stringIndex);
[97] Fix | Delete
}
[98] Fix | Delete
} else {
[99] Fix | Delete
score *= SCORE_CHARACTER_JUMP;
[100] Fix | Delete
if (stringIndex > 0) {
[101] Fix | Delete
score *= Math.pow(PENALTY_SKIPPED, index - stringIndex);
[102] Fix | Delete
}
[103] Fix | Delete
}
[104] Fix | Delete
[105] Fix | Delete
if (string.charAt(index) !== abbreviation.charAt(abbreviationIndex)) {
[106] Fix | Delete
score *= PENALTY_CASE_MISMATCH;
[107] Fix | Delete
}
[108] Fix | Delete
[109] Fix | Delete
}
[110] Fix | Delete
[111] Fix | Delete
if (score < SCORE_TRANSPOSITION &&
[112] Fix | Delete
lowerString.charAt(index - 1) === lowerAbbreviation.charAt(abbreviationIndex + 1) &&
[113] Fix | Delete
lowerString.charAt(index - 1) !== lowerAbbreviation.charAt(abbreviationIndex)) {
[114] Fix | Delete
transposedScore = commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, index + 1, abbreviationIndex + 2);
[115] Fix | Delete
[116] Fix | Delete
if (transposedScore * SCORE_TRANSPOSITION > score) {
[117] Fix | Delete
score = transposedScore * SCORE_TRANSPOSITION;
[118] Fix | Delete
}
[119] Fix | Delete
}
[120] Fix | Delete
[121] Fix | Delete
if (score > highScore) {
[122] Fix | Delete
highScore = score;
[123] Fix | Delete
}
[124] Fix | Delete
[125] Fix | Delete
index = lowerString.indexOf(abbreviationChar, index + 1);
[126] Fix | Delete
}
[127] Fix | Delete
[128] Fix | Delete
return highScore;
[129] Fix | Delete
}
[130] Fix | Delete
[131] Fix | Delete
function commandScore(string, abbreviation) {
[132] Fix | Delete
/* NOTE:
[133] Fix | Delete
* in the original, we used to do the lower-casing on each recursive call, but this meant that toLowerCase()
[134] Fix | Delete
* was the dominating cost in the algorithm, passing both is a little ugly, but considerably faster.
[135] Fix | Delete
*/
[136] Fix | Delete
return commandScoreInner(string, abbreviation, string.toLowerCase(), abbreviation.toLowerCase(), 0, 0);
[137] Fix | Delete
}
[138] Fix | Delete
[139] Fix | Delete
module.exports = commandScore;
[140] Fix | Delete
[141] Fix | Delete
[142] Fix | Delete
/***/ })
[143] Fix | Delete
[144] Fix | Delete
/******/ });
[145] Fix | Delete
/************************************************************************/
[146] Fix | Delete
/******/ // The module cache
[147] Fix | Delete
/******/ var __webpack_module_cache__ = {};
[148] Fix | Delete
/******/
[149] Fix | Delete
/******/ // The require function
[150] Fix | Delete
/******/ function __webpack_require__(moduleId) {
[151] Fix | Delete
/******/ // Check if module is in cache
[152] Fix | Delete
/******/ var cachedModule = __webpack_module_cache__[moduleId];
[153] Fix | Delete
/******/ if (cachedModule !== undefined) {
[154] Fix | Delete
/******/ return cachedModule.exports;
[155] Fix | Delete
/******/ }
[156] Fix | Delete
/******/ // Create a new module (and put it into the cache)
[157] Fix | Delete
/******/ var module = __webpack_module_cache__[moduleId] = {
[158] Fix | Delete
/******/ // no module.id needed
[159] Fix | Delete
/******/ // no module.loaded needed
[160] Fix | Delete
/******/ exports: {}
[161] Fix | Delete
/******/ };
[162] Fix | Delete
/******/
[163] Fix | Delete
/******/ // Execute the module function
[164] Fix | Delete
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
[165] Fix | Delete
/******/
[166] Fix | Delete
/******/ // Return the exports of the module
[167] Fix | Delete
/******/ return module.exports;
[168] Fix | Delete
/******/ }
[169] Fix | Delete
/******/
[170] Fix | Delete
/************************************************************************/
[171] Fix | Delete
/******/ /* webpack/runtime/compat get default export */
[172] Fix | Delete
/******/ (() => {
[173] Fix | Delete
/******/ // getDefaultExport function for compatibility with non-harmony modules
[174] Fix | Delete
/******/ __webpack_require__.n = (module) => {
[175] Fix | Delete
/******/ var getter = module && module.__esModule ?
[176] Fix | Delete
/******/ () => (module['default']) :
[177] Fix | Delete
/******/ () => (module);
[178] Fix | Delete
/******/ __webpack_require__.d(getter, { a: getter });
[179] Fix | Delete
/******/ return getter;
[180] Fix | Delete
/******/ };
[181] Fix | Delete
/******/ })();
[182] Fix | Delete
/******/
[183] Fix | Delete
/******/ /* webpack/runtime/define property getters */
[184] Fix | Delete
/******/ (() => {
[185] Fix | Delete
/******/ // define getter functions for harmony exports
[186] Fix | Delete
/******/ __webpack_require__.d = (exports, definition) => {
[187] Fix | Delete
/******/ for(var key in definition) {
[188] Fix | Delete
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
[189] Fix | Delete
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
[190] Fix | Delete
/******/ }
[191] Fix | Delete
/******/ }
[192] Fix | Delete
/******/ };
[193] Fix | Delete
/******/ })();
[194] Fix | Delete
/******/
[195] Fix | Delete
/******/ /* webpack/runtime/hasOwnProperty shorthand */
[196] Fix | Delete
/******/ (() => {
[197] Fix | Delete
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
[198] Fix | Delete
/******/ })();
[199] Fix | Delete
/******/
[200] Fix | Delete
/******/ /* webpack/runtime/make namespace object */
[201] Fix | Delete
/******/ (() => {
[202] Fix | Delete
/******/ // define __esModule on exports
[203] Fix | Delete
/******/ __webpack_require__.r = (exports) => {
[204] Fix | Delete
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
[205] Fix | Delete
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
[206] Fix | Delete
/******/ }
[207] Fix | Delete
/******/ Object.defineProperty(exports, '__esModule', { value: true });
[208] Fix | Delete
/******/ };
[209] Fix | Delete
/******/ })();
[210] Fix | Delete
/******/
[211] Fix | Delete
/******/ /* webpack/runtime/nonce */
[212] Fix | Delete
/******/ (() => {
[213] Fix | Delete
/******/ __webpack_require__.nc = undefined;
[214] Fix | Delete
/******/ })();
[215] Fix | Delete
/******/
[216] Fix | Delete
/************************************************************************/
[217] Fix | Delete
var __webpack_exports__ = {};
[218] Fix | Delete
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
[219] Fix | Delete
(() => {
[220] Fix | Delete
"use strict";
[221] Fix | Delete
// ESM COMPAT FLAG
[222] Fix | Delete
__webpack_require__.r(__webpack_exports__);
[223] Fix | Delete
[224] Fix | Delete
// EXPORTS
[225] Fix | Delete
__webpack_require__.d(__webpack_exports__, {
[226] Fix | Delete
CommandMenu: () => (/* reexport */ CommandMenu),
[227] Fix | Delete
privateApis: () => (/* reexport */ privateApis),
[228] Fix | Delete
store: () => (/* reexport */ store),
[229] Fix | Delete
useCommand: () => (/* reexport */ useCommand),
[230] Fix | Delete
useCommandLoader: () => (/* reexport */ useCommandLoader)
[231] Fix | Delete
});
[232] Fix | Delete
[233] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/commands/build-module/store/actions.js
[234] Fix | Delete
var actions_namespaceObject = {};
[235] Fix | Delete
__webpack_require__.r(actions_namespaceObject);
[236] Fix | Delete
__webpack_require__.d(actions_namespaceObject, {
[237] Fix | Delete
close: () => (actions_close),
[238] Fix | Delete
open: () => (actions_open),
[239] Fix | Delete
registerCommand: () => (registerCommand),
[240] Fix | Delete
registerCommandLoader: () => (registerCommandLoader),
[241] Fix | Delete
unregisterCommand: () => (unregisterCommand),
[242] Fix | Delete
unregisterCommandLoader: () => (unregisterCommandLoader)
[243] Fix | Delete
});
[244] Fix | Delete
[245] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/commands/build-module/store/selectors.js
[246] Fix | Delete
var selectors_namespaceObject = {};
[247] Fix | Delete
__webpack_require__.r(selectors_namespaceObject);
[248] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, {
[249] Fix | Delete
getCommandLoaders: () => (getCommandLoaders),
[250] Fix | Delete
getCommands: () => (getCommands),
[251] Fix | Delete
getContext: () => (getContext),
[252] Fix | Delete
isOpen: () => (selectors_isOpen)
[253] Fix | Delete
});
[254] Fix | Delete
[255] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/commands/build-module/store/private-actions.js
[256] Fix | Delete
var private_actions_namespaceObject = {};
[257] Fix | Delete
__webpack_require__.r(private_actions_namespaceObject);
[258] Fix | Delete
__webpack_require__.d(private_actions_namespaceObject, {
[259] Fix | Delete
setContext: () => (setContext)
[260] Fix | Delete
});
[261] Fix | Delete
[262] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
[263] Fix | Delete
function _extends() {
[264] Fix | Delete
_extends = Object.assign ? Object.assign.bind() : function (target) {
[265] Fix | Delete
for (var i = 1; i < arguments.length; i++) {
[266] Fix | Delete
var source = arguments[i];
[267] Fix | Delete
for (var key in source) {
[268] Fix | Delete
if (Object.prototype.hasOwnProperty.call(source, key)) {
[269] Fix | Delete
target[key] = source[key];
[270] Fix | Delete
}
[271] Fix | Delete
}
[272] Fix | Delete
}
[273] Fix | Delete
return target;
[274] Fix | Delete
};
[275] Fix | Delete
return _extends.apply(this, arguments);
[276] Fix | Delete
}
[277] Fix | Delete
;// CONCATENATED MODULE: external "React"
[278] Fix | Delete
const external_React_namespaceObject = window["React"];
[279] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@radix-ui/primitive/dist/index.module.js
[280] Fix | Delete
function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
[281] Fix | Delete
return function handleEvent(event) {
[282] Fix | Delete
originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
[283] Fix | Delete
if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
[284] Fix | Delete
};
[285] Fix | Delete
}
[286] Fix | Delete
[287] Fix | Delete
[288] Fix | Delete
[289] Fix | Delete
[290] Fix | Delete
[291] Fix | Delete
[292] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@radix-ui/react-compose-refs/dist/index.module.js
[293] Fix | Delete
[294] Fix | Delete
[295] Fix | Delete
[296] Fix | Delete
/**
[297] Fix | Delete
* Set a given ref to a given value
[298] Fix | Delete
* This utility takes care of different types of refs: callback refs and RefObject(s)
[299] Fix | Delete
*/ function $6ed0406888f73fc4$var$setRef(ref, value) {
[300] Fix | Delete
if (typeof ref === 'function') ref(value);
[301] Fix | Delete
else if (ref !== null && ref !== undefined) ref.current = value;
[302] Fix | Delete
}
[303] Fix | Delete
/**
[304] Fix | Delete
* A utility to compose multiple refs together
[305] Fix | Delete
* Accepts callback refs and RefObject(s)
[306] Fix | Delete
*/ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
[307] Fix | Delete
return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node)
[308] Fix | Delete
)
[309] Fix | Delete
;
[310] Fix | Delete
}
[311] Fix | Delete
/**
[312] Fix | Delete
* A custom hook that composes multiple refs
[313] Fix | Delete
* Accepts callback refs and RefObject(s)
[314] Fix | Delete
*/ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
[315] Fix | Delete
// eslint-disable-next-line react-hooks/exhaustive-deps
[316] Fix | Delete
return (0,external_React_namespaceObject.useCallback)($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
[317] Fix | Delete
}
[318] Fix | Delete
[319] Fix | Delete
[320] Fix | Delete
[321] Fix | Delete
[322] Fix | Delete
[323] Fix | Delete
[324] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@radix-ui/react-context/dist/index.module.js
[325] Fix | Delete
[326] Fix | Delete
[327] Fix | Delete
[328] Fix | Delete
function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
[329] Fix | Delete
const Context = /*#__PURE__*/ (0,external_React_namespaceObject.createContext)(defaultContext);
[330] Fix | Delete
function Provider(props) {
[331] Fix | Delete
const { children: children , ...context } = props; // Only re-memoize when prop values change
[332] Fix | Delete
// eslint-disable-next-line react-hooks/exhaustive-deps
[333] Fix | Delete
const value = (0,external_React_namespaceObject.useMemo)(()=>context
[334] Fix | Delete
, Object.values(context));
[335] Fix | Delete
return /*#__PURE__*/ (0,external_React_namespaceObject.createElement)(Context.Provider, {
[336] Fix | Delete
value: value
[337] Fix | Delete
}, children);
[338] Fix | Delete
}
[339] Fix | Delete
function useContext(consumerName) {
[340] Fix | Delete
const context = (0,external_React_namespaceObject.useContext)(Context);
[341] Fix | Delete
if (context) return context;
[342] Fix | Delete
if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context.
[343] Fix | Delete
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
[344] Fix | Delete
}
[345] Fix | Delete
Provider.displayName = rootComponentName + 'Provider';
[346] Fix | Delete
return [
[347] Fix | Delete
Provider,
[348] Fix | Delete
useContext
[349] Fix | Delete
];
[350] Fix | Delete
}
[351] Fix | Delete
/* -------------------------------------------------------------------------------------------------
[352] Fix | Delete
* createContextScope
[353] Fix | Delete
* -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {
[354] Fix | Delete
let defaultContexts = [];
[355] Fix | Delete
/* -----------------------------------------------------------------------------------------------
[356] Fix | Delete
* createContext
[357] Fix | Delete
* ---------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
[358] Fix | Delete
const BaseContext = /*#__PURE__*/ (0,external_React_namespaceObject.createContext)(defaultContext);
[359] Fix | Delete
const index = defaultContexts.length;
[360] Fix | Delete
defaultContexts = [
[361] Fix | Delete
...defaultContexts,
[362] Fix | Delete
defaultContext
[363] Fix | Delete
];
[364] Fix | Delete
function Provider(props) {
[365] Fix | Delete
const { scope: scope , children: children , ...context } = props;
[366] Fix | Delete
const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext; // Only re-memoize when prop values change
[367] Fix | Delete
// eslint-disable-next-line react-hooks/exhaustive-deps
[368] Fix | Delete
const value = (0,external_React_namespaceObject.useMemo)(()=>context
[369] Fix | Delete
, Object.values(context));
[370] Fix | Delete
return /*#__PURE__*/ (0,external_React_namespaceObject.createElement)(Context.Provider, {
[371] Fix | Delete
value: value
[372] Fix | Delete
}, children);
[373] Fix | Delete
}
[374] Fix | Delete
function useContext(consumerName, scope) {
[375] Fix | Delete
const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext;
[376] Fix | Delete
const context = (0,external_React_namespaceObject.useContext)(Context);
[377] Fix | Delete
if (context) return context;
[378] Fix | Delete
if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context.
[379] Fix | Delete
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
[380] Fix | Delete
}
[381] Fix | Delete
Provider.displayName = rootComponentName + 'Provider';
[382] Fix | Delete
return [
[383] Fix | Delete
Provider,
[384] Fix | Delete
useContext
[385] Fix | Delete
];
[386] Fix | Delete
}
[387] Fix | Delete
/* -----------------------------------------------------------------------------------------------
[388] Fix | Delete
* createScope
[389] Fix | Delete
* ---------------------------------------------------------------------------------------------*/ const createScope = ()=>{
[390] Fix | Delete
const scopeContexts = defaultContexts.map((defaultContext)=>{
[391] Fix | Delete
return /*#__PURE__*/ (0,external_React_namespaceObject.createContext)(defaultContext);
[392] Fix | Delete
});
[393] Fix | Delete
return function useScope(scope) {
[394] Fix | Delete
const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;
[395] Fix | Delete
return (0,external_React_namespaceObject.useMemo)(()=>({
[396] Fix | Delete
[`__scope${scopeName}`]: {
[397] Fix | Delete
...scope,
[398] Fix | Delete
[scopeName]: contexts
[399] Fix | Delete
}
[400] Fix | Delete
})
[401] Fix | Delete
, [
[402] Fix | Delete
scope,
[403] Fix | Delete
contexts
[404] Fix | Delete
]);
[405] Fix | Delete
};
[406] Fix | Delete
};
[407] Fix | Delete
createScope.scopeName = scopeName;
[408] Fix | Delete
return [
[409] Fix | Delete
$c512c27ab02ef895$export$fd42f52fd3ae1109,
[410] Fix | Delete
$c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)
[411] Fix | Delete
];
[412] Fix | Delete
}
[413] Fix | Delete
/* -------------------------------------------------------------------------------------------------
[414] Fix | Delete
* composeContextScopes
[415] Fix | Delete
* -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
[416] Fix | Delete
const baseScope = scopes[0];
[417] Fix | Delete
if (scopes.length === 1) return baseScope;
[418] Fix | Delete
const createScope1 = ()=>{
[419] Fix | Delete
const scopeHooks = scopes.map((createScope)=>({
[420] Fix | Delete
useScope: createScope(),
[421] Fix | Delete
scopeName: createScope.scopeName
[422] Fix | Delete
})
[423] Fix | Delete
);
[424] Fix | Delete
return function useComposedScopes(overrideScopes) {
[425] Fix | Delete
const nextScopes1 = scopeHooks.reduce((nextScopes, { useScope: useScope , scopeName: scopeName })=>{
[426] Fix | Delete
// We are calling a hook inside a callback which React warns against to avoid inconsistent
[427] Fix | Delete
// renders, however, scoping doesn't have render side effects so we ignore the rule.
[428] Fix | Delete
// eslint-disable-next-line react-hooks/rules-of-hooks
[429] Fix | Delete
const scopeProps = useScope(overrideScopes);
[430] Fix | Delete
const currentScope = scopeProps[`__scope${scopeName}`];
[431] Fix | Delete
return {
[432] Fix | Delete
...nextScopes,
[433] Fix | Delete
...currentScope
[434] Fix | Delete
};
[435] Fix | Delete
}, {});
[436] Fix | Delete
return (0,external_React_namespaceObject.useMemo)(()=>({
[437] Fix | Delete
[`__scope${baseScope.scopeName}`]: nextScopes1
[438] Fix | Delete
})
[439] Fix | Delete
, [
[440] Fix | Delete
nextScopes1
[441] Fix | Delete
]);
[442] Fix | Delete
};
[443] Fix | Delete
};
[444] Fix | Delete
createScope1.scopeName = baseScope.scopeName;
[445] Fix | Delete
return createScope1;
[446] Fix | Delete
}
[447] Fix | Delete
[448] Fix | Delete
[449] Fix | Delete
[450] Fix | Delete
[451] Fix | Delete
[452] Fix | Delete
[453] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js
[454] Fix | Delete
[455] Fix | Delete
[456] Fix | Delete
[457] Fix | Delete
/**
[458] Fix | Delete
* On the server, React emits a warning when calling `useLayoutEffect`.
[459] Fix | Delete
* This is because neither `useLayoutEffect` nor `useEffect` run on the server.
[460] Fix | Delete
* We use this safe version which suppresses the warning by replacing it with a noop on the server.
[461] Fix | Delete
*
[462] Fix | Delete
* See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
[463] Fix | Delete
*/ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? external_React_namespaceObject.useLayoutEffect : ()=>{};
[464] Fix | Delete
[465] Fix | Delete
[466] Fix | Delete
[467] Fix | Delete
[468] Fix | Delete
[469] Fix | Delete
[470] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@radix-ui/react-id/dist/index.module.js
[471] Fix | Delete
[472] Fix | Delete
[473] Fix | Delete
[474] Fix | Delete
[475] Fix | Delete
[476] Fix | Delete
const $1746a345f3d73bb7$var$useReactId = external_React_namespaceObject['useId'.toString()] || (()=>undefined
[477] Fix | Delete
);
[478] Fix | Delete
let $1746a345f3d73bb7$var$count = 0;
[479] Fix | Delete
function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
[480] Fix | Delete
const [id, setId] = external_React_namespaceObject.useState($1746a345f3d73bb7$var$useReactId()); // React versions older than 18 will have client-side ids only.
[481] Fix | Delete
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
[482] Fix | Delete
if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
[483] Fix | Delete
);
[484] Fix | Delete
}, [
[485] Fix | Delete
deterministicId
[486] Fix | Delete
]);
[487] Fix | Delete
return deterministicId || (id ? `radix-${id}` : '');
[488] Fix | Delete
}
[489] Fix | Delete
[490] Fix | Delete
[491] Fix | Delete
[492] Fix | Delete
[493] Fix | Delete
[494] Fix | Delete
[495] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js
[496] Fix | Delete
[497] Fix | Delete
[498] Fix | Delete
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function