@tanstack/query-devtools 5.52.3 → 5.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/DevtoolsComponent/AIPVUCAN.js +39 -0
- package/build/DevtoolsComponent/PTNKQWC6.js +39 -0
- package/build/DevtoolsPanelComponent/SA34RK37.js +48 -0
- package/build/DevtoolsPanelComponent/YCAYD3IW.js +48 -0
- package/build/{Devtools/E6UWR6XD.js → chunk/7U2COR24.js} +935 -889
- package/build/{Devtools/2FJCTAHO.js → chunk/WK5KHUSK.js} +935 -889
- package/build/dev.cjs +1700 -1385
- package/build/dev.js +129 -3
- package/build/index.cjs +1700 -1385
- package/build/index.d.cts +20 -1
- package/build/index.d.ts +20 -1
- package/build/index.js +129 -3
- package/package.json +2 -2
- package/src/Devtools.tsx +200 -324
- package/src/DevtoolsComponent.tsx +36 -0
- package/src/DevtoolsPanelComponent.tsx +47 -0
- package/src/Explorer.tsx +1 -1
- package/src/{index.tsx → TanstackQueryDevtools.tsx} +2 -3
- package/src/TanstackQueryDevtoolsPanel.tsx +153 -0
- package/src/constants.ts +17 -0
- package/src/contexts/PiPContext.tsx +191 -0
- package/src/{Context.ts → contexts/QueryDevtoolsContext.ts} +1 -9
- package/src/contexts/ThemeContext.ts +10 -0
- package/src/contexts/index.ts +3 -0
- package/src/index.ts +13 -0
- package/src/utils.tsx +1 -1
- package/build/Devtools/2DN67TWN.jsx +0 -12505
- package/build/Devtools/EFVQE642.jsx +0 -12504
- package/build/chunk/G72LLS32.jsx +0 -2939
- package/build/chunk/H7KAW27I.jsx +0 -2940
- package/build/dev.jsx +0 -117
- package/build/index.jsx +0 -117
package/build/dev.cjs
CHANGED
|
@@ -2986,215 +2986,504 @@ var init_utils = __esm({
|
|
|
2986
2986
|
}
|
|
2987
2987
|
});
|
|
2988
2988
|
|
|
2989
|
-
// ../../node_modules/.pnpm/@
|
|
2990
|
-
function
|
|
2991
|
-
return
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
}
|
|
2995
|
-
function rankItem(item, value, options) {
|
|
2996
|
-
var _options$threshold;
|
|
2997
|
-
options = options || {};
|
|
2998
|
-
options.threshold = (_options$threshold = options.threshold) != null ? _options$threshold : rankings.MATCHES;
|
|
2999
|
-
if (!options.accessors) {
|
|
3000
|
-
const rank = getMatchRanking(item, value, options);
|
|
3001
|
-
return {
|
|
3002
|
-
// ends up being duplicate of 'item' in matches but consistent
|
|
3003
|
-
rankedValue: item,
|
|
3004
|
-
rank,
|
|
3005
|
-
accessorIndex: -1,
|
|
3006
|
-
accessorThreshold: options.threshold,
|
|
3007
|
-
passed: rank >= options.threshold
|
|
3008
|
-
};
|
|
3009
|
-
}
|
|
3010
|
-
const valuesToRank = getAllValuesToRank(item, options.accessors);
|
|
3011
|
-
const rankingInfo = {
|
|
3012
|
-
rankedValue: item,
|
|
3013
|
-
rank: rankings.NO_MATCH,
|
|
3014
|
-
accessorIndex: -1,
|
|
3015
|
-
accessorThreshold: options.threshold,
|
|
3016
|
-
passed: false
|
|
2989
|
+
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
|
|
2990
|
+
function chain(callbacks) {
|
|
2991
|
+
return (...args) => {
|
|
2992
|
+
for (const callback of callbacks)
|
|
2993
|
+
callback && callback(...args);
|
|
3017
2994
|
};
|
|
3018
|
-
for (let i2 = 0; i2 < valuesToRank.length; i2++) {
|
|
3019
|
-
const rankValue = valuesToRank[i2];
|
|
3020
|
-
let newRank = getMatchRanking(rankValue.itemValue, value, options);
|
|
3021
|
-
const {
|
|
3022
|
-
minRanking,
|
|
3023
|
-
maxRanking,
|
|
3024
|
-
threshold = options.threshold
|
|
3025
|
-
} = rankValue.attributes;
|
|
3026
|
-
if (newRank < minRanking && newRank >= rankings.MATCHES) {
|
|
3027
|
-
newRank = minRanking;
|
|
3028
|
-
} else if (newRank > maxRanking) {
|
|
3029
|
-
newRank = maxRanking;
|
|
3030
|
-
}
|
|
3031
|
-
newRank = Math.min(newRank, maxRanking);
|
|
3032
|
-
if (newRank >= threshold && newRank > rankingInfo.rank) {
|
|
3033
|
-
rankingInfo.rank = newRank;
|
|
3034
|
-
rankingInfo.passed = true;
|
|
3035
|
-
rankingInfo.accessorIndex = i2;
|
|
3036
|
-
rankingInfo.accessorThreshold = threshold;
|
|
3037
|
-
rankingInfo.rankedValue = rankValue.itemValue;
|
|
3038
|
-
}
|
|
3039
|
-
}
|
|
3040
|
-
return rankingInfo;
|
|
3041
|
-
}
|
|
3042
|
-
function getMatchRanking(testString, stringToRank, options) {
|
|
3043
|
-
testString = prepareValueForComparison(testString, options);
|
|
3044
|
-
stringToRank = prepareValueForComparison(stringToRank, options);
|
|
3045
|
-
if (stringToRank.length > testString.length) {
|
|
3046
|
-
return rankings.NO_MATCH;
|
|
3047
|
-
}
|
|
3048
|
-
if (testString === stringToRank) {
|
|
3049
|
-
return rankings.CASE_SENSITIVE_EQUAL;
|
|
3050
|
-
}
|
|
3051
|
-
testString = testString.toLowerCase();
|
|
3052
|
-
stringToRank = stringToRank.toLowerCase();
|
|
3053
|
-
if (testString === stringToRank) {
|
|
3054
|
-
return rankings.EQUAL;
|
|
3055
|
-
}
|
|
3056
|
-
if (testString.startsWith(stringToRank)) {
|
|
3057
|
-
return rankings.STARTS_WITH;
|
|
3058
|
-
}
|
|
3059
|
-
if (testString.includes(` ${stringToRank}`)) {
|
|
3060
|
-
return rankings.WORD_STARTS_WITH;
|
|
3061
|
-
}
|
|
3062
|
-
if (testString.includes(stringToRank)) {
|
|
3063
|
-
return rankings.CONTAINS;
|
|
3064
|
-
} else if (stringToRank.length === 1) {
|
|
3065
|
-
return rankings.NO_MATCH;
|
|
3066
|
-
}
|
|
3067
|
-
if (getAcronym(testString).includes(stringToRank)) {
|
|
3068
|
-
return rankings.ACRONYM;
|
|
3069
|
-
}
|
|
3070
|
-
return getClosenessRanking(testString, stringToRank);
|
|
3071
2995
|
}
|
|
3072
|
-
function
|
|
3073
|
-
|
|
3074
|
-
const wordsInString = string.split(" ");
|
|
3075
|
-
wordsInString.forEach((wordInString) => {
|
|
3076
|
-
const splitByHyphenWords = wordInString.split("-");
|
|
3077
|
-
splitByHyphenWords.forEach((splitByHyphenWord) => {
|
|
3078
|
-
acronym += splitByHyphenWord.substr(0, 1);
|
|
3079
|
-
});
|
|
3080
|
-
});
|
|
3081
|
-
return acronym;
|
|
2996
|
+
function accessWith(valueOrFn, ...args) {
|
|
2997
|
+
return typeof valueOrFn === "function" ? valueOrFn(...args) : valueOrFn;
|
|
3082
2998
|
}
|
|
3083
|
-
function
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
return j + 1;
|
|
3092
|
-
}
|
|
3093
|
-
}
|
|
3094
|
-
return -1;
|
|
3095
|
-
}
|
|
3096
|
-
function getRanking(spread3) {
|
|
3097
|
-
const spreadPercentage = 1 / spread3;
|
|
3098
|
-
const inOrderPercentage = matchingInOrderCharCount / stringToRank.length;
|
|
3099
|
-
const ranking = rankings.MATCHES + inOrderPercentage * spreadPercentage;
|
|
3100
|
-
return ranking;
|
|
3101
|
-
}
|
|
3102
|
-
const firstIndex = findMatchingCharacter(stringToRank[0], testString, 0);
|
|
3103
|
-
if (firstIndex < 0) {
|
|
3104
|
-
return rankings.NO_MATCH;
|
|
3105
|
-
}
|
|
3106
|
-
charNumber = firstIndex;
|
|
3107
|
-
for (let i2 = 1, I = stringToRank.length; i2 < I; i2++) {
|
|
3108
|
-
const matchChar = stringToRank[i2];
|
|
3109
|
-
charNumber = findMatchingCharacter(matchChar, testString, charNumber);
|
|
3110
|
-
const found = charNumber > -1;
|
|
3111
|
-
if (!found) {
|
|
3112
|
-
return rankings.NO_MATCH;
|
|
3113
|
-
}
|
|
2999
|
+
function handleDiffArray(current, prev, handleAdded, handleRemoved) {
|
|
3000
|
+
const currLength = current.length;
|
|
3001
|
+
const prevLength = prev.length;
|
|
3002
|
+
let i2 = 0;
|
|
3003
|
+
if (!prevLength) {
|
|
3004
|
+
for (; i2 < currLength; i2++)
|
|
3005
|
+
handleAdded(current[i2]);
|
|
3006
|
+
return;
|
|
3114
3007
|
}
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
let {
|
|
3120
|
-
keepDiacritics
|
|
3121
|
-
} = _ref;
|
|
3122
|
-
value = `${value}`;
|
|
3123
|
-
if (!keepDiacritics) {
|
|
3124
|
-
value = removeAccents(value);
|
|
3008
|
+
if (!currLength) {
|
|
3009
|
+
for (; i2 < prevLength; i2++)
|
|
3010
|
+
handleRemoved(prev[i2]);
|
|
3011
|
+
return;
|
|
3125
3012
|
}
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
let accessorFn = accessor;
|
|
3130
|
-
if (typeof accessor === "object") {
|
|
3131
|
-
accessorFn = accessor.accessor;
|
|
3013
|
+
for (; i2 < prevLength; i2++) {
|
|
3014
|
+
if (prev[i2] !== current[i2])
|
|
3015
|
+
break;
|
|
3132
3016
|
}
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3017
|
+
let prevEl;
|
|
3018
|
+
let currEl;
|
|
3019
|
+
prev = prev.slice(i2);
|
|
3020
|
+
current = current.slice(i2);
|
|
3021
|
+
for (prevEl of prev) {
|
|
3022
|
+
if (!current.includes(prevEl))
|
|
3023
|
+
handleRemoved(prevEl);
|
|
3136
3024
|
}
|
|
3137
|
-
|
|
3138
|
-
|
|
3025
|
+
for (currEl of current) {
|
|
3026
|
+
if (!prev.includes(currEl))
|
|
3027
|
+
handleAdded(currEl);
|
|
3139
3028
|
}
|
|
3140
|
-
return [String(value)];
|
|
3141
3029
|
}
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3030
|
+
var isClient, isDev, noop, isNonNullable, filterNonNullable, access, asArray, tryOnCleanup;
|
|
3031
|
+
var init_R5675YMU = __esm({
|
|
3032
|
+
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js"() {
|
|
3033
|
+
init_solid();
|
|
3034
|
+
init_web();
|
|
3035
|
+
isClient = !isServer;
|
|
3036
|
+
isDev = isClient && !!DEV;
|
|
3037
|
+
noop = () => void 0;
|
|
3038
|
+
isNonNullable = (i2) => i2 != null;
|
|
3039
|
+
filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
3040
|
+
access = (v) => typeof v === "function" && !v.length ? v() : v;
|
|
3041
|
+
asArray = (value) => Array.isArray(value) ? value : value ? [value] : [];
|
|
3042
|
+
tryOnCleanup = isDev ? (fn) => getOwner() ? onCleanup(fn) : fn : onCleanup;
|
|
3154
3043
|
}
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3044
|
+
});
|
|
3045
|
+
|
|
3046
|
+
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/index/index.js
|
|
3047
|
+
var init_index = __esm({
|
|
3048
|
+
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/index/index.js"() {
|
|
3049
|
+
init_R5675YMU();
|
|
3160
3050
|
}
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3051
|
+
});
|
|
3052
|
+
|
|
3053
|
+
// ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.19/node_modules/@solid-primitives/storage/dist/index.js
|
|
3054
|
+
function createStorage(props) {
|
|
3055
|
+
const [error, setError] = createSignal();
|
|
3056
|
+
const handleError2 = props?.throw ? (err, fallback) => {
|
|
3057
|
+
setError(err instanceof Error ? err : new Error(fallback));
|
|
3058
|
+
throw err;
|
|
3059
|
+
} : (err, fallback) => {
|
|
3060
|
+
setError(err instanceof Error ? err : new Error(fallback));
|
|
3164
3061
|
};
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3062
|
+
const apis = props?.api ? Array.isArray(props.api) ? props.api : [props.api] : [globalThis.localStorage].filter(Boolean);
|
|
3063
|
+
const prefix = props?.prefix ? `${props.prefix}.` : "";
|
|
3064
|
+
const signals = /* @__PURE__ */ new Map();
|
|
3065
|
+
const store = new Proxy(
|
|
3066
|
+
{},
|
|
3067
|
+
{
|
|
3068
|
+
get(_, key) {
|
|
3069
|
+
let node = signals.get(key);
|
|
3070
|
+
if (!node) {
|
|
3071
|
+
node = createSignal(void 0, { equals: false });
|
|
3072
|
+
signals.set(key, node);
|
|
3073
|
+
}
|
|
3074
|
+
node[0]();
|
|
3075
|
+
const value = apis.reduce(
|
|
3076
|
+
(result, api) => {
|
|
3077
|
+
if (result !== null || !api) {
|
|
3078
|
+
return result;
|
|
3079
|
+
}
|
|
3080
|
+
try {
|
|
3081
|
+
return api.getItem(`${prefix}${key}`);
|
|
3082
|
+
} catch (err) {
|
|
3083
|
+
handleError2(err, `Error reading ${prefix}${key} from ${api["name"]}`);
|
|
3084
|
+
return null;
|
|
3085
|
+
}
|
|
3086
|
+
},
|
|
3087
|
+
null
|
|
3088
|
+
);
|
|
3089
|
+
if (value !== null && props?.deserializer) {
|
|
3090
|
+
return props.deserializer(value, key, props.options);
|
|
3091
|
+
}
|
|
3092
|
+
return value;
|
|
3093
|
+
}
|
|
3094
|
+
}
|
|
3095
|
+
);
|
|
3096
|
+
const setter = (key, value, options) => {
|
|
3097
|
+
const filteredValue = props?.serializer ? props.serializer(value, key, options ?? props.options) : value;
|
|
3098
|
+
const apiKey = `${prefix}${key}`;
|
|
3099
|
+
apis.forEach((api) => {
|
|
3100
|
+
try {
|
|
3101
|
+
api.getItem(apiKey) !== filteredValue && api.setItem(apiKey, filteredValue);
|
|
3102
|
+
} catch (err) {
|
|
3103
|
+
handleError2(err, `Error setting ${prefix}${key} to ${filteredValue} in ${api.name}`);
|
|
3104
|
+
}
|
|
3105
|
+
});
|
|
3106
|
+
const node = signals.get(key);
|
|
3107
|
+
node && node[1]();
|
|
3108
|
+
};
|
|
3109
|
+
const remove = (key) => apis.forEach((api) => {
|
|
3110
|
+
try {
|
|
3111
|
+
api.removeItem(`${prefix}${key}`);
|
|
3112
|
+
} catch (err) {
|
|
3113
|
+
handleError2(err, `Error removing ${prefix}${key} from ${api.name}`);
|
|
3114
|
+
}
|
|
3115
|
+
});
|
|
3116
|
+
const clear = () => apis.forEach((api) => {
|
|
3117
|
+
try {
|
|
3118
|
+
api.clear();
|
|
3119
|
+
} catch (err) {
|
|
3120
|
+
handleError2(err, `Error clearing ${api.name}`);
|
|
3121
|
+
}
|
|
3122
|
+
});
|
|
3123
|
+
const toJSON = () => {
|
|
3124
|
+
const result = {};
|
|
3125
|
+
const addValue = (key, value) => {
|
|
3126
|
+
if (!result.hasOwnProperty(key)) {
|
|
3127
|
+
const filteredValue = value && props?.deserializer ? props.deserializer(value, key, props.options) : value;
|
|
3128
|
+
if (filteredValue) {
|
|
3129
|
+
result[key] = filteredValue;
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3132
|
+
};
|
|
3133
|
+
apis.forEach((api) => {
|
|
3134
|
+
if (typeof api.getAll === "function") {
|
|
3135
|
+
let values;
|
|
3136
|
+
try {
|
|
3137
|
+
values = api.getAll();
|
|
3138
|
+
} catch (err) {
|
|
3139
|
+
handleError2(err, `Error getting all values from in ${api.name}`);
|
|
3140
|
+
}
|
|
3141
|
+
for (const key of values) {
|
|
3142
|
+
addValue(key, values[key]);
|
|
3143
|
+
}
|
|
3144
|
+
} else {
|
|
3145
|
+
let index = 0, key;
|
|
3146
|
+
try {
|
|
3147
|
+
while (key = api.key(index++)) {
|
|
3148
|
+
if (!result.hasOwnProperty(key)) {
|
|
3149
|
+
addValue(key, api.getItem(key));
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
3152
|
+
} catch (err) {
|
|
3153
|
+
handleError2(err, `Error getting all values from ${api.name}`);
|
|
3154
|
+
}
|
|
3155
|
+
}
|
|
3156
|
+
});
|
|
3157
|
+
return result;
|
|
3158
|
+
};
|
|
3159
|
+
props?.sync !== false && onMount(() => {
|
|
3160
|
+
const listener = (ev) => {
|
|
3161
|
+
let changed = false;
|
|
3162
|
+
apis.forEach((api) => {
|
|
3163
|
+
try {
|
|
3164
|
+
if (api !== ev.storageArea && ev.key && ev.newValue !== api.getItem(ev.key)) {
|
|
3165
|
+
ev.newValue ? api.setItem(ev.key, ev.newValue) : api.removeItem(ev.key);
|
|
3166
|
+
changed = true;
|
|
3167
|
+
}
|
|
3168
|
+
} catch (err) {
|
|
3169
|
+
handleError2(
|
|
3170
|
+
err,
|
|
3171
|
+
`Error synching api ${api.name} from storage event (${ev.key}=${ev.newValue})`
|
|
3172
|
+
);
|
|
3173
|
+
}
|
|
3174
|
+
});
|
|
3175
|
+
changed && ev.key && signals.get(ev.key)?.[1]();
|
|
3176
|
+
};
|
|
3177
|
+
if ("addEventListener" in globalThis) {
|
|
3178
|
+
globalThis.addEventListener("storage", listener);
|
|
3179
|
+
onCleanup(() => globalThis.removeEventListener("storage", listener));
|
|
3180
|
+
} else {
|
|
3181
|
+
apis.forEach((api) => api.addEventListener?.("storage", listener));
|
|
3182
|
+
onCleanup(() => apis.forEach((api) => api.removeEventListener?.("storage", listener)));
|
|
3183
|
+
}
|
|
3184
|
+
});
|
|
3185
|
+
return [
|
|
3186
|
+
store,
|
|
3187
|
+
setter,
|
|
3188
|
+
{
|
|
3189
|
+
clear,
|
|
3190
|
+
error,
|
|
3191
|
+
remove,
|
|
3192
|
+
toJSON
|
|
3193
|
+
}
|
|
3194
|
+
];
|
|
3195
|
+
}
|
|
3196
|
+
var createLocalStorage, addClearMethod, serializeCookieOptions, cookieStorage;
|
|
3197
|
+
var init_dist4 = __esm({
|
|
3198
|
+
"../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.19/node_modules/@solid-primitives/storage/dist/index.js"() {
|
|
3199
|
+
init_solid();
|
|
3200
|
+
createLocalStorage = createStorage;
|
|
3201
|
+
addClearMethod = (storage) => {
|
|
3202
|
+
if (typeof storage.clear === "function") {
|
|
3203
|
+
return storage;
|
|
3204
|
+
}
|
|
3205
|
+
storage.clear = () => {
|
|
3206
|
+
let key;
|
|
3207
|
+
while (key = storage.key(0)) {
|
|
3208
|
+
storage.removeItem(key);
|
|
3209
|
+
}
|
|
3210
|
+
};
|
|
3211
|
+
return storage;
|
|
3212
|
+
};
|
|
3213
|
+
serializeCookieOptions = (options) => {
|
|
3214
|
+
if (!options) {
|
|
3215
|
+
return "";
|
|
3216
|
+
}
|
|
3217
|
+
let memo = "";
|
|
3218
|
+
for (const key in options) {
|
|
3219
|
+
if (!options.hasOwnProperty(key)) {
|
|
3220
|
+
continue;
|
|
3221
|
+
}
|
|
3222
|
+
const value = options[key];
|
|
3223
|
+
memo += value instanceof Date ? `; ${key}=${value.toUTCString()}` : typeof value === "boolean" ? `; ${key}` : `; ${key}=${value}`;
|
|
3224
|
+
}
|
|
3225
|
+
return memo;
|
|
3226
|
+
};
|
|
3227
|
+
cookieStorage = addClearMethod({
|
|
3228
|
+
_cookies: [globalThis.document, "cookie"],
|
|
3229
|
+
getItem: (key) => cookieStorage._cookies[0][cookieStorage._cookies[1]].match("(^|;)\\s*" + key + "\\s*=\\s*([^;]+)")?.pop() ?? null,
|
|
3230
|
+
setItem: (key, value, options) => {
|
|
3231
|
+
const oldValue = cookieStorage.getItem(key);
|
|
3232
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=${value}${serializeCookieOptions(
|
|
3233
|
+
options
|
|
3234
|
+
)}`;
|
|
3235
|
+
const storageEvent = Object.assign(new Event("storage"), {
|
|
3236
|
+
key,
|
|
3237
|
+
oldValue,
|
|
3238
|
+
newValue: value,
|
|
3239
|
+
url: globalThis.document.URL,
|
|
3240
|
+
storageArea: cookieStorage
|
|
3241
|
+
});
|
|
3242
|
+
window.dispatchEvent(storageEvent);
|
|
3243
|
+
},
|
|
3244
|
+
removeItem: (key) => {
|
|
3245
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=deleted${serializeCookieOptions({
|
|
3246
|
+
expires: /* @__PURE__ */ new Date(0)
|
|
3247
|
+
})}`;
|
|
3248
|
+
},
|
|
3249
|
+
key: (index) => {
|
|
3250
|
+
let key = null;
|
|
3251
|
+
let count = 0;
|
|
3252
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(
|
|
3253
|
+
/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,
|
|
3254
|
+
(_, found) => {
|
|
3255
|
+
if (!key && found && count++ === index) {
|
|
3256
|
+
key = found;
|
|
3257
|
+
}
|
|
3258
|
+
return "";
|
|
3259
|
+
}
|
|
3260
|
+
);
|
|
3261
|
+
return key;
|
|
3262
|
+
},
|
|
3263
|
+
get length() {
|
|
3264
|
+
let length = 0;
|
|
3265
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(
|
|
3266
|
+
/(?:^|;)\s*.+?\s*=\s*[^;]+/g,
|
|
3267
|
+
(found) => {
|
|
3268
|
+
length += found ? 1 : 0;
|
|
3269
|
+
return "";
|
|
3270
|
+
}
|
|
3271
|
+
);
|
|
3272
|
+
return length;
|
|
3273
|
+
}
|
|
3274
|
+
});
|
|
3275
|
+
}
|
|
3276
|
+
});
|
|
3277
|
+
|
|
3278
|
+
// ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.15.1/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
3279
|
+
function removeAccents(str) {
|
|
3280
|
+
return str.replace(allAccents, (match) => {
|
|
3281
|
+
return characterMap[match];
|
|
3282
|
+
});
|
|
3283
|
+
}
|
|
3284
|
+
function rankItem(item, value, options) {
|
|
3285
|
+
var _options$threshold;
|
|
3286
|
+
options = options || {};
|
|
3287
|
+
options.threshold = (_options$threshold = options.threshold) != null ? _options$threshold : rankings.MATCHES;
|
|
3288
|
+
if (!options.accessors) {
|
|
3289
|
+
const rank = getMatchRanking(item, value, options);
|
|
3290
|
+
return {
|
|
3291
|
+
// ends up being duplicate of 'item' in matches but consistent
|
|
3292
|
+
rankedValue: item,
|
|
3293
|
+
rank,
|
|
3294
|
+
accessorIndex: -1,
|
|
3295
|
+
accessorThreshold: options.threshold,
|
|
3296
|
+
passed: rank >= options.threshold
|
|
3297
|
+
};
|
|
3298
|
+
}
|
|
3299
|
+
const valuesToRank = getAllValuesToRank(item, options.accessors);
|
|
3300
|
+
const rankingInfo = {
|
|
3301
|
+
rankedValue: item,
|
|
3302
|
+
rank: rankings.NO_MATCH,
|
|
3303
|
+
accessorIndex: -1,
|
|
3304
|
+
accessorThreshold: options.threshold,
|
|
3305
|
+
passed: false
|
|
3306
|
+
};
|
|
3307
|
+
for (let i2 = 0; i2 < valuesToRank.length; i2++) {
|
|
3308
|
+
const rankValue = valuesToRank[i2];
|
|
3309
|
+
let newRank = getMatchRanking(rankValue.itemValue, value, options);
|
|
3310
|
+
const {
|
|
3311
|
+
minRanking,
|
|
3312
|
+
maxRanking,
|
|
3313
|
+
threshold = options.threshold
|
|
3314
|
+
} = rankValue.attributes;
|
|
3315
|
+
if (newRank < minRanking && newRank >= rankings.MATCHES) {
|
|
3316
|
+
newRank = minRanking;
|
|
3317
|
+
} else if (newRank > maxRanking) {
|
|
3318
|
+
newRank = maxRanking;
|
|
3319
|
+
}
|
|
3320
|
+
newRank = Math.min(newRank, maxRanking);
|
|
3321
|
+
if (newRank >= threshold && newRank > rankingInfo.rank) {
|
|
3322
|
+
rankingInfo.rank = newRank;
|
|
3323
|
+
rankingInfo.passed = true;
|
|
3324
|
+
rankingInfo.accessorIndex = i2;
|
|
3325
|
+
rankingInfo.accessorThreshold = threshold;
|
|
3326
|
+
rankingInfo.rankedValue = rankValue.itemValue;
|
|
3327
|
+
}
|
|
3328
|
+
}
|
|
3329
|
+
return rankingInfo;
|
|
3330
|
+
}
|
|
3331
|
+
function getMatchRanking(testString, stringToRank, options) {
|
|
3332
|
+
testString = prepareValueForComparison(testString, options);
|
|
3333
|
+
stringToRank = prepareValueForComparison(stringToRank, options);
|
|
3334
|
+
if (stringToRank.length > testString.length) {
|
|
3335
|
+
return rankings.NO_MATCH;
|
|
3336
|
+
}
|
|
3337
|
+
if (testString === stringToRank) {
|
|
3338
|
+
return rankings.CASE_SENSITIVE_EQUAL;
|
|
3339
|
+
}
|
|
3340
|
+
testString = testString.toLowerCase();
|
|
3341
|
+
stringToRank = stringToRank.toLowerCase();
|
|
3342
|
+
if (testString === stringToRank) {
|
|
3343
|
+
return rankings.EQUAL;
|
|
3344
|
+
}
|
|
3345
|
+
if (testString.startsWith(stringToRank)) {
|
|
3346
|
+
return rankings.STARTS_WITH;
|
|
3347
|
+
}
|
|
3348
|
+
if (testString.includes(` ${stringToRank}`)) {
|
|
3349
|
+
return rankings.WORD_STARTS_WITH;
|
|
3350
|
+
}
|
|
3351
|
+
if (testString.includes(stringToRank)) {
|
|
3352
|
+
return rankings.CONTAINS;
|
|
3353
|
+
} else if (stringToRank.length === 1) {
|
|
3354
|
+
return rankings.NO_MATCH;
|
|
3355
|
+
}
|
|
3356
|
+
if (getAcronym(testString).includes(stringToRank)) {
|
|
3357
|
+
return rankings.ACRONYM;
|
|
3358
|
+
}
|
|
3359
|
+
return getClosenessRanking(testString, stringToRank);
|
|
3360
|
+
}
|
|
3361
|
+
function getAcronym(string) {
|
|
3362
|
+
let acronym = "";
|
|
3363
|
+
const wordsInString = string.split(" ");
|
|
3364
|
+
wordsInString.forEach((wordInString) => {
|
|
3365
|
+
const splitByHyphenWords = wordInString.split("-");
|
|
3366
|
+
splitByHyphenWords.forEach((splitByHyphenWord) => {
|
|
3367
|
+
acronym += splitByHyphenWord.substr(0, 1);
|
|
3368
|
+
});
|
|
3369
|
+
});
|
|
3370
|
+
return acronym;
|
|
3371
|
+
}
|
|
3372
|
+
function getClosenessRanking(testString, stringToRank) {
|
|
3373
|
+
let matchingInOrderCharCount = 0;
|
|
3374
|
+
let charNumber = 0;
|
|
3375
|
+
function findMatchingCharacter(matchChar, string, index) {
|
|
3376
|
+
for (let j = index, J = string.length; j < J; j++) {
|
|
3377
|
+
const stringChar = string[j];
|
|
3378
|
+
if (stringChar === matchChar) {
|
|
3379
|
+
matchingInOrderCharCount += 1;
|
|
3380
|
+
return j + 1;
|
|
3381
|
+
}
|
|
3382
|
+
}
|
|
3383
|
+
return -1;
|
|
3384
|
+
}
|
|
3385
|
+
function getRanking(spread3) {
|
|
3386
|
+
const spreadPercentage = 1 / spread3;
|
|
3387
|
+
const inOrderPercentage = matchingInOrderCharCount / stringToRank.length;
|
|
3388
|
+
const ranking = rankings.MATCHES + inOrderPercentage * spreadPercentage;
|
|
3389
|
+
return ranking;
|
|
3390
|
+
}
|
|
3391
|
+
const firstIndex = findMatchingCharacter(stringToRank[0], testString, 0);
|
|
3392
|
+
if (firstIndex < 0) {
|
|
3393
|
+
return rankings.NO_MATCH;
|
|
3394
|
+
}
|
|
3395
|
+
charNumber = firstIndex;
|
|
3396
|
+
for (let i2 = 1, I = stringToRank.length; i2 < I; i2++) {
|
|
3397
|
+
const matchChar = stringToRank[i2];
|
|
3398
|
+
charNumber = findMatchingCharacter(matchChar, testString, charNumber);
|
|
3399
|
+
const found = charNumber > -1;
|
|
3400
|
+
if (!found) {
|
|
3401
|
+
return rankings.NO_MATCH;
|
|
3402
|
+
}
|
|
3403
|
+
}
|
|
3404
|
+
const spread2 = charNumber - firstIndex;
|
|
3405
|
+
return getRanking(spread2);
|
|
3406
|
+
}
|
|
3407
|
+
function prepareValueForComparison(value, _ref) {
|
|
3408
|
+
let {
|
|
3409
|
+
keepDiacritics
|
|
3410
|
+
} = _ref;
|
|
3411
|
+
value = `${value}`;
|
|
3412
|
+
if (!keepDiacritics) {
|
|
3413
|
+
value = removeAccents(value);
|
|
3414
|
+
}
|
|
3415
|
+
return value;
|
|
3416
|
+
}
|
|
3417
|
+
function getItemValues(item, accessor) {
|
|
3418
|
+
let accessorFn = accessor;
|
|
3419
|
+
if (typeof accessor === "object") {
|
|
3420
|
+
accessorFn = accessor.accessor;
|
|
3421
|
+
}
|
|
3422
|
+
const value = accessorFn(item);
|
|
3423
|
+
if (value == null) {
|
|
3424
|
+
return [];
|
|
3425
|
+
}
|
|
3426
|
+
if (Array.isArray(value)) {
|
|
3427
|
+
return value;
|
|
3428
|
+
}
|
|
3429
|
+
return [String(value)];
|
|
3430
|
+
}
|
|
3431
|
+
function getAllValuesToRank(item, accessors) {
|
|
3432
|
+
const allValues = [];
|
|
3433
|
+
for (let j = 0, J = accessors.length; j < J; j++) {
|
|
3434
|
+
const accessor = accessors[j];
|
|
3435
|
+
const attributes = getAccessorAttributes(accessor);
|
|
3436
|
+
const itemValues = getItemValues(item, accessor);
|
|
3437
|
+
for (let i2 = 0, I = itemValues.length; i2 < I; i2++) {
|
|
3438
|
+
allValues.push({
|
|
3439
|
+
itemValue: itemValues[i2],
|
|
3440
|
+
attributes
|
|
3441
|
+
});
|
|
3442
|
+
}
|
|
3443
|
+
}
|
|
3444
|
+
return allValues;
|
|
3445
|
+
}
|
|
3446
|
+
function getAccessorAttributes(accessor) {
|
|
3447
|
+
if (typeof accessor === "function") {
|
|
3448
|
+
return defaultKeyAttributes;
|
|
3449
|
+
}
|
|
3450
|
+
return {
|
|
3451
|
+
...defaultKeyAttributes,
|
|
3452
|
+
...accessor
|
|
3453
|
+
};
|
|
3454
|
+
}
|
|
3455
|
+
var characterMap, chars, allAccents, rankings, defaultKeyAttributes;
|
|
3456
|
+
var init_lib = __esm({
|
|
3457
|
+
"../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.15.1/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs"() {
|
|
3458
|
+
characterMap = {
|
|
3459
|
+
\u00C0: "A",
|
|
3460
|
+
\u00C1: "A",
|
|
3461
|
+
\u00C2: "A",
|
|
3462
|
+
\u00C3: "A",
|
|
3463
|
+
\u00C4: "A",
|
|
3464
|
+
\u00C5: "A",
|
|
3465
|
+
\u1EA4: "A",
|
|
3466
|
+
\u1EAE: "A",
|
|
3467
|
+
\u1EB2: "A",
|
|
3468
|
+
\u1EB4: "A",
|
|
3469
|
+
\u1EB6: "A",
|
|
3470
|
+
\u00C6: "AE",
|
|
3471
|
+
\u1EA6: "A",
|
|
3472
|
+
\u1EB0: "A",
|
|
3473
|
+
\u0202: "A",
|
|
3474
|
+
\u00C7: "C",
|
|
3475
|
+
\u1E08: "C",
|
|
3476
|
+
\u00C8: "E",
|
|
3477
|
+
\u00C9: "E",
|
|
3478
|
+
\u00CA: "E",
|
|
3479
|
+
\u00CB: "E",
|
|
3480
|
+
\u1EBE: "E",
|
|
3481
|
+
\u1E16: "E",
|
|
3482
|
+
\u1EC0: "E",
|
|
3483
|
+
\u1E14: "E",
|
|
3484
|
+
\u1E1C: "E",
|
|
3485
|
+
\u0206: "E",
|
|
3486
|
+
\u00CC: "I",
|
|
3198
3487
|
\u00CD: "I",
|
|
3199
3488
|
\u00CE: "I",
|
|
3200
3489
|
\u00CF: "I",
|
|
@@ -3582,737 +3871,448 @@ var init_lib = __esm({
|
|
|
3582
3871
|
defaultKeyAttributes = {
|
|
3583
3872
|
maxRanking: Infinity,
|
|
3584
3873
|
minRanking: -Infinity
|
|
3585
|
-
};
|
|
3586
|
-
}
|
|
3587
|
-
});
|
|
3588
|
-
|
|
3589
|
-
// ../../node_modules/.pnpm/goober@2.1.14_csstype@3.1.3/node_modules/goober/dist/goober.modern.js
|
|
3590
|
-
function u(e2) {
|
|
3591
|
-
let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
|
|
3592
|
-
return i(l2.unshift ? l2.raw ? p(l2, [].slice.call(arguments, 1), r2.p) : l2.reduce((e3, t2) => Object.assign(e3, t2 && t2.call ? t2(r2.p) : t2), {}) : l2, t(r2.target), r2.g, r2.o, r2.k);
|
|
3593
|
-
}
|
|
3594
|
-
var e, t, l, a, n, o, c, s, i, p;
|
|
3595
|
-
var init_goober_modern = __esm({
|
|
3596
|
-
"../../node_modules/.pnpm/goober@2.1.14_csstype@3.1.3/node_modules/goober/dist/goober.modern.js"() {
|
|
3597
|
-
e = { data: "" };
|
|
3598
|
-
t = (t2) => "object" == typeof window ? ((t2 ? t2.querySelector("#_goober") : window._goober) || Object.assign((t2 || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : t2 || e;
|
|
3599
|
-
l = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g;
|
|
3600
|
-
a = /\/\*[^]*?\*\/| +/g;
|
|
3601
|
-
n = /\n+/g;
|
|
3602
|
-
o = (e2, t2) => {
|
|
3603
|
-
let r2 = "", l2 = "", a2 = "";
|
|
3604
|
-
for (let n2 in e2) {
|
|
3605
|
-
let c2 = e2[n2];
|
|
3606
|
-
"@" == n2[0] ? "i" == n2[1] ? r2 = n2 + " " + c2 + ";" : l2 += "f" == n2[1] ? o(c2, n2) : n2 + "{" + o(c2, "k" == n2[1] ? "" : t2) + "}" : "object" == typeof c2 ? l2 += o(c2, t2 ? t2.replace(/([^,])+/g, (e3) => n2.replace(/(^:.*)|([^,])+/g, (t3) => /&/.test(t3) ? t3.replace(/&/g, e3) : e3 ? e3 + " " + t3 : t3)) : n2) : null != c2 && (n2 = /^--/.test(n2) ? n2 : n2.replace(/[A-Z]/g, "-$&").toLowerCase(), a2 += o.p ? o.p(n2, c2) : n2 + ":" + c2 + ";");
|
|
3607
|
-
}
|
|
3608
|
-
return r2 + (t2 && a2 ? t2 + "{" + a2 + "}" : a2) + l2;
|
|
3609
|
-
};
|
|
3610
|
-
c = {};
|
|
3611
|
-
s = (e2) => {
|
|
3612
|
-
if ("object" == typeof e2) {
|
|
3613
|
-
let t2 = "";
|
|
3614
|
-
for (let r2 in e2)
|
|
3615
|
-
t2 += r2 + s(e2[r2]);
|
|
3616
|
-
return t2;
|
|
3617
|
-
}
|
|
3618
|
-
return e2;
|
|
3619
|
-
};
|
|
3620
|
-
i = (e2, t2, r2, i2, p2) => {
|
|
3621
|
-
let u2 = s(e2), d = c[u2] || (c[u2] = ((e3) => {
|
|
3622
|
-
let t3 = 0, r3 = 11;
|
|
3623
|
-
for (; t3 < e3.length; )
|
|
3624
|
-
r3 = 101 * r3 + e3.charCodeAt(t3++) >>> 0;
|
|
3625
|
-
return "go" + r3;
|
|
3626
|
-
})(u2));
|
|
3627
|
-
if (!c[d]) {
|
|
3628
|
-
let t3 = u2 !== e2 ? e2 : ((e3) => {
|
|
3629
|
-
let t4, r3, o2 = [{}];
|
|
3630
|
-
for (; t4 = l.exec(e3.replace(a, "")); )
|
|
3631
|
-
t4[4] ? o2.shift() : t4[3] ? (r3 = t4[3].replace(n, " ").trim(), o2.unshift(o2[0][r3] = o2[0][r3] || {})) : o2[0][t4[1]] = t4[2].replace(n, " ").trim();
|
|
3632
|
-
return o2[0];
|
|
3633
|
-
})(e2);
|
|
3634
|
-
c[d] = o(p2 ? { ["@keyframes " + d]: t3 } : t3, r2 ? "" : "." + d);
|
|
3635
|
-
}
|
|
3636
|
-
let f = r2 && c.g ? c.g : null;
|
|
3637
|
-
return r2 && (c.g = c[d]), ((e3, t3, r3, l2) => {
|
|
3638
|
-
l2 ? t3.data = t3.data.replace(l2, e3) : -1 === t3.data.indexOf(e3) && (t3.data = r3 ? e3 + t3.data : t3.data + e3);
|
|
3639
|
-
})(c[d], t2, i2, f), d;
|
|
3640
|
-
};
|
|
3641
|
-
p = (e2, t2, r2) => e2.reduce((e3, l2, a2) => {
|
|
3642
|
-
let n2 = t2[a2];
|
|
3643
|
-
if (n2 && n2.call) {
|
|
3644
|
-
let e4 = n2(r2), t3 = e4 && e4.props && e4.props.className || /^go/.test(e4) && e4;
|
|
3645
|
-
n2 = t3 ? "." + t3 : e4 && "object" == typeof e4 ? e4.props ? "" : o(e4, "") : false === e4 ? "" : e4;
|
|
3646
|
-
}
|
|
3647
|
-
return e3 + l2 + (null == n2 ? "" : n2);
|
|
3648
|
-
}, "");
|
|
3649
|
-
u.bind({ g: 1 });
|
|
3650
|
-
u.bind({ k: 1 });
|
|
3651
|
-
}
|
|
3652
|
-
});
|
|
3653
|
-
|
|
3654
|
-
// ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
3655
|
-
function r(e2) {
|
|
3656
|
-
var t2, f, n2 = "";
|
|
3657
|
-
if ("string" == typeof e2 || "number" == typeof e2)
|
|
3658
|
-
n2 += e2;
|
|
3659
|
-
else if ("object" == typeof e2)
|
|
3660
|
-
if (Array.isArray(e2)) {
|
|
3661
|
-
var o2 = e2.length;
|
|
3662
|
-
for (t2 = 0; t2 < o2; t2++)
|
|
3663
|
-
e2[t2] && (f = r(e2[t2])) && (n2 && (n2 += " "), n2 += f);
|
|
3664
|
-
} else
|
|
3665
|
-
for (f in e2)
|
|
3666
|
-
e2[f] && (n2 && (n2 += " "), n2 += f);
|
|
3667
|
-
return n2;
|
|
3668
|
-
}
|
|
3669
|
-
function clsx() {
|
|
3670
|
-
for (var e2, t2, f = 0, n2 = "", o2 = arguments.length; f < o2; f++)
|
|
3671
|
-
(e2 = arguments[f]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
3672
|
-
return n2;
|
|
3673
|
-
}
|
|
3674
|
-
var init_clsx = __esm({
|
|
3675
|
-
"../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs"() {
|
|
3676
|
-
}
|
|
3677
|
-
});
|
|
3678
|
-
|
|
3679
|
-
// ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.8.19/node_modules/@solid-primitives/transition-group/dist/index.js
|
|
3680
|
-
function createListTransition(source, options) {
|
|
3681
|
-
const initSource = untrack(source);
|
|
3682
|
-
if (isServer) {
|
|
3683
|
-
const copy2 = initSource.slice();
|
|
3684
|
-
return () => copy2;
|
|
3685
|
-
}
|
|
3686
|
-
const { onChange } = options;
|
|
3687
|
-
let prevSet = new Set(options.appear ? void 0 : initSource);
|
|
3688
|
-
const exiting = /* @__PURE__ */ new WeakSet();
|
|
3689
|
-
const [toRemove, setToRemove] = createSignal([], { equals: false });
|
|
3690
|
-
const [isTransitionPending] = useTransition();
|
|
3691
|
-
const finishRemoved = options.exitMethod === "remove" ? noop : (els) => {
|
|
3692
|
-
setToRemove((p2) => (p2.push.apply(p2, els), p2));
|
|
3693
|
-
for (const el of els)
|
|
3694
|
-
exiting.delete(el);
|
|
3695
|
-
};
|
|
3696
|
-
const handleRemoved = options.exitMethod === "remove" ? noop : options.exitMethod === "keep-index" ? (els, el, i2) => els.splice(i2, 0, el) : (els, el) => els.push(el);
|
|
3697
|
-
return createMemo(
|
|
3698
|
-
(prev) => {
|
|
3699
|
-
const elsToRemove = toRemove();
|
|
3700
|
-
const sourceList = source();
|
|
3701
|
-
sourceList[$TRACK];
|
|
3702
|
-
if (untrack(isTransitionPending)) {
|
|
3703
|
-
isTransitionPending();
|
|
3704
|
-
return prev;
|
|
3705
|
-
}
|
|
3706
|
-
if (elsToRemove.length) {
|
|
3707
|
-
const next = prev.filter((e2) => !elsToRemove.includes(e2));
|
|
3708
|
-
elsToRemove.length = 0;
|
|
3709
|
-
onChange({ list: next, added: [], removed: [], unchanged: next, finishRemoved });
|
|
3710
|
-
return next;
|
|
3711
|
-
}
|
|
3712
|
-
return untrack(() => {
|
|
3713
|
-
const nextSet = new Set(sourceList);
|
|
3714
|
-
const next = sourceList.slice();
|
|
3715
|
-
const added = [];
|
|
3716
|
-
const removed = [];
|
|
3717
|
-
const unchanged = [];
|
|
3718
|
-
for (const el of sourceList) {
|
|
3719
|
-
(prevSet.has(el) ? unchanged : added).push(el);
|
|
3720
|
-
}
|
|
3721
|
-
let nothingChanged = !added.length;
|
|
3722
|
-
for (let i2 = 0; i2 < prev.length; i2++) {
|
|
3723
|
-
const el = prev[i2];
|
|
3724
|
-
if (!nextSet.has(el)) {
|
|
3725
|
-
if (!exiting.has(el)) {
|
|
3726
|
-
removed.push(el);
|
|
3727
|
-
exiting.add(el);
|
|
3728
|
-
}
|
|
3729
|
-
handleRemoved(next, el, i2);
|
|
3730
|
-
}
|
|
3731
|
-
if (nothingChanged && el !== next[i2])
|
|
3732
|
-
nothingChanged = false;
|
|
3733
|
-
}
|
|
3734
|
-
if (!removed.length && nothingChanged)
|
|
3735
|
-
return prev;
|
|
3736
|
-
onChange({ list: next, added, removed, unchanged, finishRemoved });
|
|
3737
|
-
prevSet = nextSet;
|
|
3738
|
-
return next;
|
|
3739
|
-
});
|
|
3740
|
-
},
|
|
3741
|
-
options.appear ? [] : initSource.slice()
|
|
3742
|
-
);
|
|
3743
|
-
}
|
|
3744
|
-
var noop;
|
|
3745
|
-
var init_dist4 = __esm({
|
|
3746
|
-
"../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.8.19/node_modules/@solid-primitives/transition-group/dist/index.js"() {
|
|
3747
|
-
init_solid();
|
|
3748
|
-
init_web();
|
|
3749
|
-
noop = () => {
|
|
3750
|
-
};
|
|
3751
|
-
}
|
|
3752
|
-
});
|
|
3753
|
-
|
|
3754
|
-
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
|
|
3755
|
-
function chain(callbacks) {
|
|
3756
|
-
return (...args) => {
|
|
3757
|
-
for (const callback of callbacks)
|
|
3758
|
-
callback && callback(...args);
|
|
3759
|
-
};
|
|
3760
|
-
}
|
|
3761
|
-
function accessWith(valueOrFn, ...args) {
|
|
3762
|
-
return typeof valueOrFn === "function" ? valueOrFn(...args) : valueOrFn;
|
|
3763
|
-
}
|
|
3764
|
-
function handleDiffArray(current, prev, handleAdded, handleRemoved) {
|
|
3765
|
-
const currLength = current.length;
|
|
3766
|
-
const prevLength = prev.length;
|
|
3767
|
-
let i2 = 0;
|
|
3768
|
-
if (!prevLength) {
|
|
3769
|
-
for (; i2 < currLength; i2++)
|
|
3770
|
-
handleAdded(current[i2]);
|
|
3771
|
-
return;
|
|
3772
|
-
}
|
|
3773
|
-
if (!currLength) {
|
|
3774
|
-
for (; i2 < prevLength; i2++)
|
|
3775
|
-
handleRemoved(prev[i2]);
|
|
3776
|
-
return;
|
|
3777
|
-
}
|
|
3778
|
-
for (; i2 < prevLength; i2++) {
|
|
3779
|
-
if (prev[i2] !== current[i2])
|
|
3780
|
-
break;
|
|
3781
|
-
}
|
|
3782
|
-
let prevEl;
|
|
3783
|
-
let currEl;
|
|
3784
|
-
prev = prev.slice(i2);
|
|
3785
|
-
current = current.slice(i2);
|
|
3786
|
-
for (prevEl of prev) {
|
|
3787
|
-
if (!current.includes(prevEl))
|
|
3788
|
-
handleRemoved(prevEl);
|
|
3789
|
-
}
|
|
3790
|
-
for (currEl of current) {
|
|
3791
|
-
if (!prev.includes(currEl))
|
|
3792
|
-
handleAdded(currEl);
|
|
3793
|
-
}
|
|
3794
|
-
}
|
|
3795
|
-
var isClient, isDev, noop2, isNonNullable, filterNonNullable, access, asArray, tryOnCleanup;
|
|
3796
|
-
var init_R5675YMU = __esm({
|
|
3797
|
-
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js"() {
|
|
3798
|
-
init_solid();
|
|
3799
|
-
init_web();
|
|
3800
|
-
isClient = !isServer;
|
|
3801
|
-
isDev = isClient && !!DEV;
|
|
3802
|
-
noop2 = () => void 0;
|
|
3803
|
-
isNonNullable = (i2) => i2 != null;
|
|
3804
|
-
filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
3805
|
-
access = (v) => typeof v === "function" && !v.length ? v() : v;
|
|
3806
|
-
asArray = (value) => Array.isArray(value) ? value : value ? [value] : [];
|
|
3807
|
-
tryOnCleanup = isDev ? (fn) => getOwner() ? onCleanup(fn) : fn : onCleanup;
|
|
3874
|
+
};
|
|
3808
3875
|
}
|
|
3809
3876
|
});
|
|
3810
3877
|
|
|
3811
|
-
// ../../node_modules/.pnpm
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3878
|
+
// ../../node_modules/.pnpm/goober@2.1.14_csstype@3.1.3/node_modules/goober/dist/goober.modern.js
|
|
3879
|
+
function u(e2) {
|
|
3880
|
+
let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
|
|
3881
|
+
return i(l2.unshift ? l2.raw ? p(l2, [].slice.call(arguments, 1), r2.p) : l2.reduce((e3, t2) => Object.assign(e3, t2 && t2.call ? t2(r2.p) : t2), {}) : l2, t(r2.target), r2.g, r2.o, r2.k);
|
|
3882
|
+
}
|
|
3883
|
+
var e, t, l, a, n, o, c, s, i, p;
|
|
3884
|
+
var init_goober_modern = __esm({
|
|
3885
|
+
"../../node_modules/.pnpm/goober@2.1.14_csstype@3.1.3/node_modules/goober/dist/goober.modern.js"() {
|
|
3886
|
+
e = { data: "" };
|
|
3887
|
+
t = (t2) => "object" == typeof window ? ((t2 ? t2.querySelector("#_goober") : window._goober) || Object.assign((t2 || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : t2 || e;
|
|
3888
|
+
l = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g;
|
|
3889
|
+
a = /\/\*[^]*?\*\/| +/g;
|
|
3890
|
+
n = /\n+/g;
|
|
3891
|
+
o = (e2, t2) => {
|
|
3892
|
+
let r2 = "", l2 = "", a2 = "";
|
|
3893
|
+
for (let n2 in e2) {
|
|
3894
|
+
let c2 = e2[n2];
|
|
3895
|
+
"@" == n2[0] ? "i" == n2[1] ? r2 = n2 + " " + c2 + ";" : l2 += "f" == n2[1] ? o(c2, n2) : n2 + "{" + o(c2, "k" == n2[1] ? "" : t2) + "}" : "object" == typeof c2 ? l2 += o(c2, t2 ? t2.replace(/([^,])+/g, (e3) => n2.replace(/(^:.*)|([^,])+/g, (t3) => /&/.test(t3) ? t3.replace(/&/g, e3) : e3 ? e3 + " " + t3 : t3)) : n2) : null != c2 && (n2 = /^--/.test(n2) ? n2 : n2.replace(/[A-Z]/g, "-$&").toLowerCase(), a2 += o.p ? o.p(n2, c2) : n2 + ":" + c2 + ";");
|
|
3896
|
+
}
|
|
3897
|
+
return r2 + (t2 && a2 ? t2 + "{" + a2 + "}" : a2) + l2;
|
|
3898
|
+
};
|
|
3899
|
+
c = {};
|
|
3900
|
+
s = (e2) => {
|
|
3901
|
+
if ("object" == typeof e2) {
|
|
3902
|
+
let t2 = "";
|
|
3903
|
+
for (let r2 in e2)
|
|
3904
|
+
t2 += r2 + s(e2[r2]);
|
|
3905
|
+
return t2;
|
|
3906
|
+
}
|
|
3907
|
+
return e2;
|
|
3908
|
+
};
|
|
3909
|
+
i = (e2, t2, r2, i2, p2) => {
|
|
3910
|
+
let u2 = s(e2), d = c[u2] || (c[u2] = ((e3) => {
|
|
3911
|
+
let t3 = 0, r3 = 11;
|
|
3912
|
+
for (; t3 < e3.length; )
|
|
3913
|
+
r3 = 101 * r3 + e3.charCodeAt(t3++) >>> 0;
|
|
3914
|
+
return "go" + r3;
|
|
3915
|
+
})(u2));
|
|
3916
|
+
if (!c[d]) {
|
|
3917
|
+
let t3 = u2 !== e2 ? e2 : ((e3) => {
|
|
3918
|
+
let t4, r3, o2 = [{}];
|
|
3919
|
+
for (; t4 = l.exec(e3.replace(a, "")); )
|
|
3920
|
+
t4[4] ? o2.shift() : t4[3] ? (r3 = t4[3].replace(n, " ").trim(), o2.unshift(o2[0][r3] = o2[0][r3] || {})) : o2[0][t4[1]] = t4[2].replace(n, " ").trim();
|
|
3921
|
+
return o2[0];
|
|
3922
|
+
})(e2);
|
|
3923
|
+
c[d] = o(p2 ? { ["@keyframes " + d]: t3 } : t3, r2 ? "" : "." + d);
|
|
3924
|
+
}
|
|
3925
|
+
let f = r2 && c.g ? c.g : null;
|
|
3926
|
+
return r2 && (c.g = c[d]), ((e3, t3, r3, l2) => {
|
|
3927
|
+
l2 ? t3.data = t3.data.replace(l2, e3) : -1 === t3.data.indexOf(e3) && (t3.data = r3 ? e3 + t3.data : t3.data + e3);
|
|
3928
|
+
})(c[d], t2, i2, f), d;
|
|
3929
|
+
};
|
|
3930
|
+
p = (e2, t2, r2) => e2.reduce((e3, l2, a2) => {
|
|
3931
|
+
let n2 = t2[a2];
|
|
3932
|
+
if (n2 && n2.call) {
|
|
3933
|
+
let e4 = n2(r2), t3 = e4 && e4.props && e4.props.className || /^go/.test(e4) && e4;
|
|
3934
|
+
n2 = t3 ? "." + t3 : e4 && "object" == typeof e4 ? e4.props ? "" : o(e4, "") : false === e4 ? "" : e4;
|
|
3935
|
+
}
|
|
3936
|
+
return e3 + l2 + (null == n2 ? "" : n2);
|
|
3937
|
+
}, "");
|
|
3938
|
+
u.bind({ g: 1 });
|
|
3939
|
+
u.bind({ k: 1 });
|
|
3815
3940
|
}
|
|
3816
3941
|
});
|
|
3817
3942
|
|
|
3818
|
-
// ../../node_modules/.pnpm
|
|
3819
|
-
function
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
if (
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
Array.isArray(result) ? results.push.apply(results, result) : results.push(result);
|
|
3833
|
-
}
|
|
3834
|
-
return results.length ? results : null;
|
|
3835
|
-
}
|
|
3836
|
-
return null;
|
|
3943
|
+
// ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
3944
|
+
function r(e2) {
|
|
3945
|
+
var t2, f, n2 = "";
|
|
3946
|
+
if ("string" == typeof e2 || "number" == typeof e2)
|
|
3947
|
+
n2 += e2;
|
|
3948
|
+
else if ("object" == typeof e2)
|
|
3949
|
+
if (Array.isArray(e2)) {
|
|
3950
|
+
var o2 = e2.length;
|
|
3951
|
+
for (t2 = 0; t2 < o2; t2++)
|
|
3952
|
+
e2[t2] && (f = r(e2[t2])) && (n2 && (n2 += " "), n2 += f);
|
|
3953
|
+
} else
|
|
3954
|
+
for (f in e2)
|
|
3955
|
+
e2[f] && (n2 && (n2 += " "), n2 += f);
|
|
3956
|
+
return n2;
|
|
3837
3957
|
}
|
|
3838
|
-
function
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
);
|
|
3843
|
-
memo.toArray = () => {
|
|
3844
|
-
const value = memo();
|
|
3845
|
-
return Array.isArray(value) ? value : value ? [value] : [];
|
|
3846
|
-
};
|
|
3847
|
-
return memo;
|
|
3958
|
+
function clsx() {
|
|
3959
|
+
for (var e2, t2, f = 0, n2 = "", o2 = arguments.length; f < o2; f++)
|
|
3960
|
+
(e2 = arguments[f]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
3961
|
+
return n2;
|
|
3848
3962
|
}
|
|
3849
|
-
var
|
|
3850
|
-
|
|
3851
|
-
"../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.8.19/node_modules/@solid-primitives/refs/dist/index.js"() {
|
|
3852
|
-
init_index();
|
|
3853
|
-
init_solid();
|
|
3854
|
-
init_web();
|
|
3855
|
-
defaultElementPredicate = isServer ? (item) => item != null && typeof item === "object" && "t" in item : (item) => item instanceof Element;
|
|
3963
|
+
var init_clsx = __esm({
|
|
3964
|
+
"../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs"() {
|
|
3856
3965
|
}
|
|
3857
3966
|
});
|
|
3858
3967
|
|
|
3859
|
-
// ../../node_modules/.pnpm
|
|
3860
|
-
function
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
enter: (props.enterClass || name + "-enter").split(" "),
|
|
3866
|
-
enterTo: (props.enterToClass || name + "-enter-to").split(" "),
|
|
3867
|
-
exitActive: (props.exitActiveClass || name + "-exit-active").split(" "),
|
|
3868
|
-
exit: (props.exitClass || name + "-exit").split(" "),
|
|
3869
|
-
exitTo: (props.exitToClass || name + "-exit-to").split(" "),
|
|
3870
|
-
move: (props.moveClass || name + "-move").split(" ")
|
|
3871
|
-
};
|
|
3872
|
-
});
|
|
3873
|
-
}
|
|
3874
|
-
function nextFrame(fn) {
|
|
3875
|
-
requestAnimationFrame(() => requestAnimationFrame(fn));
|
|
3876
|
-
}
|
|
3877
|
-
function enterTransition(classes, events, el, done) {
|
|
3878
|
-
const { onBeforeEnter, onEnter, onAfterEnter } = events;
|
|
3879
|
-
onBeforeEnter?.(el);
|
|
3880
|
-
el.classList.add(...classes.enter);
|
|
3881
|
-
el.classList.add(...classes.enterActive);
|
|
3882
|
-
queueMicrotask(() => {
|
|
3883
|
-
if (!el.parentNode)
|
|
3884
|
-
return done?.();
|
|
3885
|
-
onEnter?.(el, () => endTransition());
|
|
3886
|
-
});
|
|
3887
|
-
nextFrame(() => {
|
|
3888
|
-
el.classList.remove(...classes.enter);
|
|
3889
|
-
el.classList.add(...classes.enterTo);
|
|
3890
|
-
if (!onEnter || onEnter.length < 2) {
|
|
3891
|
-
el.addEventListener("transitionend", endTransition);
|
|
3892
|
-
el.addEventListener("animationend", endTransition);
|
|
3893
|
-
}
|
|
3894
|
-
});
|
|
3895
|
-
function endTransition(e2) {
|
|
3896
|
-
if (!e2 || e2.target === el) {
|
|
3897
|
-
el.removeEventListener("transitionend", endTransition);
|
|
3898
|
-
el.removeEventListener("animationend", endTransition);
|
|
3899
|
-
el.classList.remove(...classes.enterActive);
|
|
3900
|
-
el.classList.remove(...classes.enterTo);
|
|
3901
|
-
onAfterEnter?.(el);
|
|
3902
|
-
}
|
|
3903
|
-
}
|
|
3904
|
-
}
|
|
3905
|
-
function exitTransition(classes, events, el, done) {
|
|
3906
|
-
const { onBeforeExit, onExit, onAfterExit } = events;
|
|
3907
|
-
if (!el.parentNode)
|
|
3908
|
-
return done?.();
|
|
3909
|
-
onBeforeExit?.(el);
|
|
3910
|
-
el.classList.add(...classes.exit);
|
|
3911
|
-
el.classList.add(...classes.exitActive);
|
|
3912
|
-
onExit?.(el, () => endTransition());
|
|
3913
|
-
nextFrame(() => {
|
|
3914
|
-
el.classList.remove(...classes.exit);
|
|
3915
|
-
el.classList.add(...classes.exitTo);
|
|
3916
|
-
if (!onExit || onExit.length < 2) {
|
|
3917
|
-
el.addEventListener("transitionend", endTransition);
|
|
3918
|
-
el.addEventListener("animationend", endTransition);
|
|
3919
|
-
}
|
|
3920
|
-
});
|
|
3921
|
-
function endTransition(e2) {
|
|
3922
|
-
if (!e2 || e2.target === el) {
|
|
3923
|
-
done?.();
|
|
3924
|
-
el.removeEventListener("transitionend", endTransition);
|
|
3925
|
-
el.removeEventListener("animationend", endTransition);
|
|
3926
|
-
el.classList.remove(...classes.exitActive);
|
|
3927
|
-
el.classList.remove(...classes.exitTo);
|
|
3928
|
-
onAfterExit?.(el);
|
|
3929
|
-
}
|
|
3968
|
+
// ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.8.19/node_modules/@solid-primitives/transition-group/dist/index.js
|
|
3969
|
+
function createListTransition(source, options) {
|
|
3970
|
+
const initSource = untrack(source);
|
|
3971
|
+
if (isServer) {
|
|
3972
|
+
const copy2 = initSource.slice();
|
|
3973
|
+
return () => copy2;
|
|
3930
3974
|
}
|
|
3931
|
-
}
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
};
|
|
3974
|
-
el.classList.add(...classes.move);
|
|
3975
|
-
el.style.transform = el.style.transitionDuration = "";
|
|
3976
|
-
el.addEventListener("transitionend", endTransition2);
|
|
3975
|
+
const { onChange } = options;
|
|
3976
|
+
let prevSet = new Set(options.appear ? void 0 : initSource);
|
|
3977
|
+
const exiting = /* @__PURE__ */ new WeakSet();
|
|
3978
|
+
const [toRemove, setToRemove] = createSignal([], { equals: false });
|
|
3979
|
+
const [isTransitionPending] = useTransition();
|
|
3980
|
+
const finishRemoved = options.exitMethod === "remove" ? noop2 : (els) => {
|
|
3981
|
+
setToRemove((p2) => (p2.push.apply(p2, els), p2));
|
|
3982
|
+
for (const el of els)
|
|
3983
|
+
exiting.delete(el);
|
|
3984
|
+
};
|
|
3985
|
+
const handleRemoved = options.exitMethod === "remove" ? noop2 : options.exitMethod === "keep-index" ? (els, el, i2) => els.splice(i2, 0, el) : (els, el) => els.push(el);
|
|
3986
|
+
return createMemo(
|
|
3987
|
+
(prev) => {
|
|
3988
|
+
const elsToRemove = toRemove();
|
|
3989
|
+
const sourceList = source();
|
|
3990
|
+
sourceList[$TRACK];
|
|
3991
|
+
if (untrack(isTransitionPending)) {
|
|
3992
|
+
isTransitionPending();
|
|
3993
|
+
return prev;
|
|
3994
|
+
}
|
|
3995
|
+
if (elsToRemove.length) {
|
|
3996
|
+
const next = prev.filter((e2) => !elsToRemove.includes(e2));
|
|
3997
|
+
elsToRemove.length = 0;
|
|
3998
|
+
onChange({ list: next, added: [], removed: [], unchanged: next, finishRemoved });
|
|
3999
|
+
return next;
|
|
4000
|
+
}
|
|
4001
|
+
return untrack(() => {
|
|
4002
|
+
const nextSet = new Set(sourceList);
|
|
4003
|
+
const next = sourceList.slice();
|
|
4004
|
+
const added = [];
|
|
4005
|
+
const removed = [];
|
|
4006
|
+
const unchanged = [];
|
|
4007
|
+
for (const el of sourceList) {
|
|
4008
|
+
(prevSet.has(el) ? unchanged : added).push(el);
|
|
4009
|
+
}
|
|
4010
|
+
let nothingChanged = !added.length;
|
|
4011
|
+
for (let i2 = 0; i2 < prev.length; i2++) {
|
|
4012
|
+
const el = prev[i2];
|
|
4013
|
+
if (!nextSet.has(el)) {
|
|
4014
|
+
if (!exiting.has(el)) {
|
|
4015
|
+
removed.push(el);
|
|
4016
|
+
exiting.add(el);
|
|
3977
4017
|
}
|
|
3978
|
-
|
|
3979
|
-
for (const el of removed) {
|
|
3980
|
-
exitTransition(classes, props, el, () => finishRemoved([el]));
|
|
4018
|
+
handleRemoved(next, el, i2);
|
|
3981
4019
|
}
|
|
4020
|
+
if (nothingChanged && el !== next[i2])
|
|
4021
|
+
nothingChanged = false;
|
|
3982
4022
|
}
|
|
4023
|
+
if (!removed.length && nothingChanged)
|
|
4024
|
+
return prev;
|
|
4025
|
+
onChange({ list: next, added, removed, unchanged, finishRemoved });
|
|
4026
|
+
prevSet = nextSet;
|
|
4027
|
+
return next;
|
|
3983
4028
|
});
|
|
4029
|
+
},
|
|
4030
|
+
options.appear ? [] : initSource.slice()
|
|
4031
|
+
);
|
|
4032
|
+
}
|
|
4033
|
+
var noop2;
|
|
4034
|
+
var init_dist5 = __esm({
|
|
4035
|
+
"../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.8.19/node_modules/@solid-primitives/transition-group/dist/index.js"() {
|
|
4036
|
+
init_solid();
|
|
4037
|
+
init_web();
|
|
4038
|
+
noop2 = () => {
|
|
3984
4039
|
};
|
|
3985
4040
|
}
|
|
3986
4041
|
});
|
|
3987
4042
|
|
|
3988
|
-
// ../../node_modules/.pnpm/@solid-primitives+
|
|
3989
|
-
function
|
|
3990
|
-
|
|
3991
|
-
o2.dispose();
|
|
4043
|
+
// ../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.8.19/node_modules/@solid-primitives/refs/dist/index.js
|
|
4044
|
+
function mergeRefs(...refs) {
|
|
4045
|
+
return chain(refs);
|
|
3992
4046
|
}
|
|
3993
|
-
function
|
|
3994
|
-
if (
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
s2 = [options.fallback()];
|
|
4007
|
-
return () => s2;
|
|
4008
|
-
}
|
|
4009
|
-
const prev = /* @__PURE__ */ new Map();
|
|
4010
|
-
onCleanup(() => dispose2(prev.values()));
|
|
4011
|
-
return () => {
|
|
4012
|
-
const list = items() || [];
|
|
4013
|
-
list[$TRACK];
|
|
4014
|
-
return untrack(() => {
|
|
4015
|
-
if (!list.length) {
|
|
4016
|
-
dispose2(prev.values());
|
|
4017
|
-
prev.clear();
|
|
4018
|
-
if (!options.fallback)
|
|
4019
|
-
return [];
|
|
4020
|
-
const fb2 = createRoot((dispose22) => {
|
|
4021
|
-
prev.set(FALLBACK2, { dispose: dispose22 });
|
|
4022
|
-
return options.fallback();
|
|
4023
|
-
});
|
|
4024
|
-
return [fb2];
|
|
4025
|
-
}
|
|
4026
|
-
const result = new Array(list.length);
|
|
4027
|
-
const fb = prev.get(FALLBACK2);
|
|
4028
|
-
if (!prev.size || fb) {
|
|
4029
|
-
fb?.dispose();
|
|
4030
|
-
prev.delete(FALLBACK2);
|
|
4031
|
-
for (let i2 = 0; i2 < list.length; i2++) {
|
|
4032
|
-
const item = list[i2];
|
|
4033
|
-
const key = keyFn(item, i2);
|
|
4034
|
-
addNewItem(result, item, i2, key);
|
|
4035
|
-
}
|
|
4036
|
-
return result;
|
|
4037
|
-
}
|
|
4038
|
-
const prevKeys = new Set(prev.keys());
|
|
4039
|
-
for (let i2 = 0; i2 < list.length; i2++) {
|
|
4040
|
-
const item = list[i2];
|
|
4041
|
-
const key = keyFn(item, i2);
|
|
4042
|
-
prevKeys.delete(key);
|
|
4043
|
-
const lookup = prev.get(key);
|
|
4044
|
-
if (lookup) {
|
|
4045
|
-
result[i2] = lookup.mapped;
|
|
4046
|
-
lookup.setIndex?.(i2);
|
|
4047
|
-
lookup.setItem(() => item);
|
|
4048
|
-
} else
|
|
4049
|
-
addNewItem(result, item, i2, key);
|
|
4050
|
-
}
|
|
4051
|
-
for (const key of prevKeys) {
|
|
4052
|
-
prev.get(key)?.dispose();
|
|
4053
|
-
prev.delete(key);
|
|
4054
|
-
}
|
|
4055
|
-
return result;
|
|
4056
|
-
});
|
|
4057
|
-
};
|
|
4058
|
-
function addNewItem(list, item, i2, key) {
|
|
4059
|
-
createRoot((dispose22) => {
|
|
4060
|
-
const [getItem, setItem] = createSignal(item);
|
|
4061
|
-
const save = { setItem, dispose: dispose22 };
|
|
4062
|
-
if (mapFn.length > 1) {
|
|
4063
|
-
const [index, setIndex] = createSignal(i2);
|
|
4064
|
-
save.setIndex = setIndex;
|
|
4065
|
-
save.mapped = mapFn(getItem, index);
|
|
4066
|
-
} else
|
|
4067
|
-
save.mapped = mapFn(getItem);
|
|
4068
|
-
prev.set(key, save);
|
|
4069
|
-
list[i2] = save.mapped;
|
|
4070
|
-
});
|
|
4047
|
+
function getResolvedElements(value, predicate) {
|
|
4048
|
+
if (predicate(value))
|
|
4049
|
+
return value;
|
|
4050
|
+
if (typeof value === "function" && !value.length)
|
|
4051
|
+
return getResolvedElements(value(), predicate);
|
|
4052
|
+
if (Array.isArray(value)) {
|
|
4053
|
+
const results = [];
|
|
4054
|
+
for (const item of value) {
|
|
4055
|
+
const result = getResolvedElements(item, predicate);
|
|
4056
|
+
if (result)
|
|
4057
|
+
Array.isArray(result) ? results.push.apply(results, result) : results.push(result);
|
|
4058
|
+
}
|
|
4059
|
+
return results.length ? results : null;
|
|
4071
4060
|
}
|
|
4061
|
+
return null;
|
|
4072
4062
|
}
|
|
4073
|
-
function
|
|
4074
|
-
const
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
() => props.each,
|
|
4078
|
-
typeof by === "function" ? by : (v) => v[by],
|
|
4079
|
-
props.children,
|
|
4080
|
-
"fallback" in props ? { fallback: () => props.fallback } : void 0
|
|
4081
|
-
)
|
|
4063
|
+
function resolveElements(fn, predicate = defaultElementPredicate, serverPredicate = defaultElementPredicate) {
|
|
4064
|
+
const children2 = createMemo(fn);
|
|
4065
|
+
const memo = createMemo(
|
|
4066
|
+
() => getResolvedElements(children2(), isServer ? serverPredicate : predicate)
|
|
4082
4067
|
);
|
|
4068
|
+
memo.toArray = () => {
|
|
4069
|
+
const value = memo();
|
|
4070
|
+
return Array.isArray(value) ? value : value ? [value] : [];
|
|
4071
|
+
};
|
|
4072
|
+
return memo;
|
|
4083
4073
|
}
|
|
4084
|
-
var
|
|
4085
|
-
var
|
|
4086
|
-
"../../node_modules/.pnpm/@solid-primitives+
|
|
4074
|
+
var defaultElementPredicate;
|
|
4075
|
+
var init_dist6 = __esm({
|
|
4076
|
+
"../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.8.19/node_modules/@solid-primitives/refs/dist/index.js"() {
|
|
4077
|
+
init_index();
|
|
4087
4078
|
init_solid();
|
|
4088
4079
|
init_web();
|
|
4089
|
-
|
|
4080
|
+
defaultElementPredicate = isServer ? (item) => item != null && typeof item === "object" && "t" in item : (item) => item instanceof Element;
|
|
4090
4081
|
}
|
|
4091
4082
|
});
|
|
4092
4083
|
|
|
4093
|
-
// ../../node_modules/.pnpm
|
|
4094
|
-
function
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
try {
|
|
4121
|
-
return api.getItem(`${prefix}${key}`);
|
|
4122
|
-
} catch (err) {
|
|
4123
|
-
handleError2(err, `Error reading ${prefix}${key} from ${api["name"]}`);
|
|
4124
|
-
return null;
|
|
4125
|
-
}
|
|
4126
|
-
},
|
|
4127
|
-
null
|
|
4128
|
-
);
|
|
4129
|
-
if (value !== null && props?.deserializer) {
|
|
4130
|
-
return props.deserializer(value, key, props.options);
|
|
4131
|
-
}
|
|
4132
|
-
return value;
|
|
4133
|
-
}
|
|
4134
|
-
}
|
|
4135
|
-
);
|
|
4136
|
-
const setter = (key, value, options) => {
|
|
4137
|
-
const filteredValue = props?.serializer ? props.serializer(value, key, options ?? props.options) : value;
|
|
4138
|
-
const apiKey = `${prefix}${key}`;
|
|
4139
|
-
apis.forEach((api) => {
|
|
4140
|
-
try {
|
|
4141
|
-
api.getItem(apiKey) !== filteredValue && api.setItem(apiKey, filteredValue);
|
|
4142
|
-
} catch (err) {
|
|
4143
|
-
handleError2(err, `Error setting ${prefix}${key} to ${filteredValue} in ${api.name}`);
|
|
4144
|
-
}
|
|
4145
|
-
});
|
|
4146
|
-
const node = signals.get(key);
|
|
4147
|
-
node && node[1]();
|
|
4148
|
-
};
|
|
4149
|
-
const remove = (key) => apis.forEach((api) => {
|
|
4150
|
-
try {
|
|
4151
|
-
api.removeItem(`${prefix}${key}`);
|
|
4152
|
-
} catch (err) {
|
|
4153
|
-
handleError2(err, `Error removing ${prefix}${key} from ${api.name}`);
|
|
4154
|
-
}
|
|
4084
|
+
// ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.19/node_modules/solid-transition-group/dist/index.js
|
|
4085
|
+
function createClassnames(props) {
|
|
4086
|
+
return createMemo(() => {
|
|
4087
|
+
const name = props.name || "s";
|
|
4088
|
+
return {
|
|
4089
|
+
enterActive: (props.enterActiveClass || name + "-enter-active").split(" "),
|
|
4090
|
+
enter: (props.enterClass || name + "-enter").split(" "),
|
|
4091
|
+
enterTo: (props.enterToClass || name + "-enter-to").split(" "),
|
|
4092
|
+
exitActive: (props.exitActiveClass || name + "-exit-active").split(" "),
|
|
4093
|
+
exit: (props.exitClass || name + "-exit").split(" "),
|
|
4094
|
+
exitTo: (props.exitToClass || name + "-exit-to").split(" "),
|
|
4095
|
+
move: (props.moveClass || name + "-move").split(" ")
|
|
4096
|
+
};
|
|
4097
|
+
});
|
|
4098
|
+
}
|
|
4099
|
+
function nextFrame(fn) {
|
|
4100
|
+
requestAnimationFrame(() => requestAnimationFrame(fn));
|
|
4101
|
+
}
|
|
4102
|
+
function enterTransition(classes, events, el, done) {
|
|
4103
|
+
const { onBeforeEnter, onEnter, onAfterEnter } = events;
|
|
4104
|
+
onBeforeEnter?.(el);
|
|
4105
|
+
el.classList.add(...classes.enter);
|
|
4106
|
+
el.classList.add(...classes.enterActive);
|
|
4107
|
+
queueMicrotask(() => {
|
|
4108
|
+
if (!el.parentNode)
|
|
4109
|
+
return done?.();
|
|
4110
|
+
onEnter?.(el, () => endTransition());
|
|
4155
4111
|
});
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4112
|
+
nextFrame(() => {
|
|
4113
|
+
el.classList.remove(...classes.enter);
|
|
4114
|
+
el.classList.add(...classes.enterTo);
|
|
4115
|
+
if (!onEnter || onEnter.length < 2) {
|
|
4116
|
+
el.addEventListener("transitionend", endTransition);
|
|
4117
|
+
el.addEventListener("animationend", endTransition);
|
|
4161
4118
|
}
|
|
4162
4119
|
});
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
while (key = api.key(index++)) {
|
|
4188
|
-
if (!result.hasOwnProperty(key)) {
|
|
4189
|
-
addValue(key, api.getItem(key));
|
|
4190
|
-
}
|
|
4191
|
-
}
|
|
4192
|
-
} catch (err) {
|
|
4193
|
-
handleError2(err, `Error getting all values from ${api.name}`);
|
|
4194
|
-
}
|
|
4195
|
-
}
|
|
4196
|
-
});
|
|
4197
|
-
return result;
|
|
4198
|
-
};
|
|
4199
|
-
props?.sync !== false && onMount(() => {
|
|
4200
|
-
const listener = (ev) => {
|
|
4201
|
-
let changed = false;
|
|
4202
|
-
apis.forEach((api) => {
|
|
4203
|
-
try {
|
|
4204
|
-
if (api !== ev.storageArea && ev.key && ev.newValue !== api.getItem(ev.key)) {
|
|
4205
|
-
ev.newValue ? api.setItem(ev.key, ev.newValue) : api.removeItem(ev.key);
|
|
4206
|
-
changed = true;
|
|
4207
|
-
}
|
|
4208
|
-
} catch (err) {
|
|
4209
|
-
handleError2(
|
|
4210
|
-
err,
|
|
4211
|
-
`Error synching api ${api.name} from storage event (${ev.key}=${ev.newValue})`
|
|
4212
|
-
);
|
|
4213
|
-
}
|
|
4214
|
-
});
|
|
4215
|
-
changed && ev.key && signals.get(ev.key)?.[1]();
|
|
4216
|
-
};
|
|
4217
|
-
if ("addEventListener" in globalThis) {
|
|
4218
|
-
globalThis.addEventListener("storage", listener);
|
|
4219
|
-
onCleanup(() => globalThis.removeEventListener("storage", listener));
|
|
4220
|
-
} else {
|
|
4221
|
-
apis.forEach((api) => api.addEventListener?.("storage", listener));
|
|
4222
|
-
onCleanup(() => apis.forEach((api) => api.removeEventListener?.("storage", listener)));
|
|
4120
|
+
function endTransition(e2) {
|
|
4121
|
+
if (!e2 || e2.target === el) {
|
|
4122
|
+
el.removeEventListener("transitionend", endTransition);
|
|
4123
|
+
el.removeEventListener("animationend", endTransition);
|
|
4124
|
+
el.classList.remove(...classes.enterActive);
|
|
4125
|
+
el.classList.remove(...classes.enterTo);
|
|
4126
|
+
onAfterEnter?.(el);
|
|
4127
|
+
}
|
|
4128
|
+
}
|
|
4129
|
+
}
|
|
4130
|
+
function exitTransition(classes, events, el, done) {
|
|
4131
|
+
const { onBeforeExit, onExit, onAfterExit } = events;
|
|
4132
|
+
if (!el.parentNode)
|
|
4133
|
+
return done?.();
|
|
4134
|
+
onBeforeExit?.(el);
|
|
4135
|
+
el.classList.add(...classes.exit);
|
|
4136
|
+
el.classList.add(...classes.exitActive);
|
|
4137
|
+
onExit?.(el, () => endTransition());
|
|
4138
|
+
nextFrame(() => {
|
|
4139
|
+
el.classList.remove(...classes.exit);
|
|
4140
|
+
el.classList.add(...classes.exitTo);
|
|
4141
|
+
if (!onExit || onExit.length < 2) {
|
|
4142
|
+
el.addEventListener("transitionend", endTransition);
|
|
4143
|
+
el.addEventListener("animationend", endTransition);
|
|
4223
4144
|
}
|
|
4224
4145
|
});
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
remove
|
|
4232
|
-
|
|
4146
|
+
function endTransition(e2) {
|
|
4147
|
+
if (!e2 || e2.target === el) {
|
|
4148
|
+
done?.();
|
|
4149
|
+
el.removeEventListener("transitionend", endTransition);
|
|
4150
|
+
el.removeEventListener("animationend", endTransition);
|
|
4151
|
+
el.classList.remove(...classes.exitActive);
|
|
4152
|
+
el.classList.remove(...classes.exitTo);
|
|
4153
|
+
onAfterExit?.(el);
|
|
4233
4154
|
}
|
|
4234
|
-
|
|
4155
|
+
}
|
|
4235
4156
|
}
|
|
4236
|
-
var
|
|
4237
|
-
var
|
|
4238
|
-
"../../node_modules/.pnpm
|
|
4157
|
+
var TransitionGroup;
|
|
4158
|
+
var init_dist7 = __esm({
|
|
4159
|
+
"../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.19/node_modules/solid-transition-group/dist/index.js"() {
|
|
4239
4160
|
init_solid();
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
}
|
|
4257
|
-
let memo = "";
|
|
4258
|
-
for (const key in options) {
|
|
4259
|
-
if (!options.hasOwnProperty(key)) {
|
|
4260
|
-
continue;
|
|
4261
|
-
}
|
|
4262
|
-
const value = options[key];
|
|
4263
|
-
memo += value instanceof Date ? `; ${key}=${value.toUTCString()}` : typeof value === "boolean" ? `; ${key}` : `; ${key}=${value}`;
|
|
4264
|
-
}
|
|
4265
|
-
return memo;
|
|
4266
|
-
};
|
|
4267
|
-
cookieStorage = addClearMethod({
|
|
4268
|
-
_cookies: [globalThis.document, "cookie"],
|
|
4269
|
-
getItem: (key) => cookieStorage._cookies[0][cookieStorage._cookies[1]].match("(^|;)\\s*" + key + "\\s*=\\s*([^;]+)")?.pop() ?? null,
|
|
4270
|
-
setItem: (key, value, options) => {
|
|
4271
|
-
const oldValue = cookieStorage.getItem(key);
|
|
4272
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=${value}${serializeCookieOptions(
|
|
4273
|
-
options
|
|
4274
|
-
)}`;
|
|
4275
|
-
const storageEvent = Object.assign(new Event("storage"), {
|
|
4276
|
-
key,
|
|
4277
|
-
oldValue,
|
|
4278
|
-
newValue: value,
|
|
4279
|
-
url: globalThis.document.URL,
|
|
4280
|
-
storageArea: cookieStorage
|
|
4281
|
-
});
|
|
4282
|
-
window.dispatchEvent(storageEvent);
|
|
4283
|
-
},
|
|
4284
|
-
removeItem: (key) => {
|
|
4285
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=deleted${serializeCookieOptions({
|
|
4286
|
-
expires: /* @__PURE__ */ new Date(0)
|
|
4287
|
-
})}`;
|
|
4288
|
-
},
|
|
4289
|
-
key: (index) => {
|
|
4290
|
-
let key = null;
|
|
4291
|
-
let count = 0;
|
|
4292
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(
|
|
4293
|
-
/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,
|
|
4294
|
-
(_, found) => {
|
|
4295
|
-
if (!key && found && count++ === index) {
|
|
4296
|
-
key = found;
|
|
4161
|
+
init_dist5();
|
|
4162
|
+
init_dist6();
|
|
4163
|
+
TransitionGroup = (props) => {
|
|
4164
|
+
const classnames = createClassnames(props);
|
|
4165
|
+
return createListTransition(resolveElements(() => props.children).toArray, {
|
|
4166
|
+
appear: props.appear,
|
|
4167
|
+
exitMethod: "keep-index",
|
|
4168
|
+
onChange({ added, removed, finishRemoved, list }) {
|
|
4169
|
+
const classes = classnames();
|
|
4170
|
+
for (const el of added) {
|
|
4171
|
+
enterTransition(classes, props, el);
|
|
4172
|
+
}
|
|
4173
|
+
const toMove = [];
|
|
4174
|
+
for (const el of list) {
|
|
4175
|
+
if (el.isConnected && (el instanceof HTMLElement || el instanceof SVGElement)) {
|
|
4176
|
+
toMove.push({ el, rect: el.getBoundingClientRect() });
|
|
4297
4177
|
}
|
|
4298
|
-
return "";
|
|
4299
4178
|
}
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4179
|
+
queueMicrotask(() => {
|
|
4180
|
+
const moved = [];
|
|
4181
|
+
for (const { el, rect } of toMove) {
|
|
4182
|
+
if (el.isConnected) {
|
|
4183
|
+
const newRect = el.getBoundingClientRect(), dX = rect.left - newRect.left, dY = rect.top - newRect.top;
|
|
4184
|
+
if (dX || dY) {
|
|
4185
|
+
el.style.transform = `translate(${dX}px, ${dY}px)`;
|
|
4186
|
+
el.style.transitionDuration = "0s";
|
|
4187
|
+
moved.push(el);
|
|
4188
|
+
}
|
|
4189
|
+
}
|
|
4190
|
+
}
|
|
4191
|
+
document.body.offsetHeight;
|
|
4192
|
+
for (const el of moved) {
|
|
4193
|
+
let endTransition2 = function(e2) {
|
|
4194
|
+
if (e2.target === el || /transform$/.test(e2.propertyName)) {
|
|
4195
|
+
el.removeEventListener("transitionend", endTransition2);
|
|
4196
|
+
el.classList.remove(...classes.move);
|
|
4197
|
+
}
|
|
4198
|
+
};
|
|
4199
|
+
el.classList.add(...classes.move);
|
|
4200
|
+
el.style.transform = el.style.transitionDuration = "";
|
|
4201
|
+
el.addEventListener("transitionend", endTransition2);
|
|
4202
|
+
}
|
|
4203
|
+
});
|
|
4204
|
+
for (const el of removed) {
|
|
4205
|
+
exitTransition(classes, props, el, () => finishRemoved([el]));
|
|
4310
4206
|
}
|
|
4207
|
+
}
|
|
4208
|
+
});
|
|
4209
|
+
};
|
|
4210
|
+
}
|
|
4211
|
+
});
|
|
4212
|
+
|
|
4213
|
+
// ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.2_solid-js@1.8.19/node_modules/@solid-primitives/keyed/dist/index.js
|
|
4214
|
+
function dispose2(list) {
|
|
4215
|
+
for (const o2 of list)
|
|
4216
|
+
o2.dispose();
|
|
4217
|
+
}
|
|
4218
|
+
function keyArray(items, keyFn, mapFn, options = {}) {
|
|
4219
|
+
if (isServer) {
|
|
4220
|
+
const itemsRef = items();
|
|
4221
|
+
let s2 = [];
|
|
4222
|
+
if (itemsRef && itemsRef.length) {
|
|
4223
|
+
for (let i2 = 0, len = itemsRef.length; i2 < len; i2++)
|
|
4224
|
+
s2.push(
|
|
4225
|
+
mapFn(
|
|
4226
|
+
() => itemsRef[i2],
|
|
4227
|
+
() => i2
|
|
4228
|
+
)
|
|
4311
4229
|
);
|
|
4312
|
-
|
|
4230
|
+
} else if (options.fallback)
|
|
4231
|
+
s2 = [options.fallback()];
|
|
4232
|
+
return () => s2;
|
|
4233
|
+
}
|
|
4234
|
+
const prev = /* @__PURE__ */ new Map();
|
|
4235
|
+
onCleanup(() => dispose2(prev.values()));
|
|
4236
|
+
return () => {
|
|
4237
|
+
const list = items() || [];
|
|
4238
|
+
list[$TRACK];
|
|
4239
|
+
return untrack(() => {
|
|
4240
|
+
if (!list.length) {
|
|
4241
|
+
dispose2(prev.values());
|
|
4242
|
+
prev.clear();
|
|
4243
|
+
if (!options.fallback)
|
|
4244
|
+
return [];
|
|
4245
|
+
const fb2 = createRoot((dispose22) => {
|
|
4246
|
+
prev.set(FALLBACK2, { dispose: dispose22 });
|
|
4247
|
+
return options.fallback();
|
|
4248
|
+
});
|
|
4249
|
+
return [fb2];
|
|
4250
|
+
}
|
|
4251
|
+
const result = new Array(list.length);
|
|
4252
|
+
const fb = prev.get(FALLBACK2);
|
|
4253
|
+
if (!prev.size || fb) {
|
|
4254
|
+
fb?.dispose();
|
|
4255
|
+
prev.delete(FALLBACK2);
|
|
4256
|
+
for (let i2 = 0; i2 < list.length; i2++) {
|
|
4257
|
+
const item = list[i2];
|
|
4258
|
+
const key = keyFn(item, i2);
|
|
4259
|
+
addNewItem(result, item, i2, key);
|
|
4260
|
+
}
|
|
4261
|
+
return result;
|
|
4262
|
+
}
|
|
4263
|
+
const prevKeys = new Set(prev.keys());
|
|
4264
|
+
for (let i2 = 0; i2 < list.length; i2++) {
|
|
4265
|
+
const item = list[i2];
|
|
4266
|
+
const key = keyFn(item, i2);
|
|
4267
|
+
prevKeys.delete(key);
|
|
4268
|
+
const lookup = prev.get(key);
|
|
4269
|
+
if (lookup) {
|
|
4270
|
+
result[i2] = lookup.mapped;
|
|
4271
|
+
lookup.setIndex?.(i2);
|
|
4272
|
+
lookup.setItem(() => item);
|
|
4273
|
+
} else
|
|
4274
|
+
addNewItem(result, item, i2, key);
|
|
4275
|
+
}
|
|
4276
|
+
for (const key of prevKeys) {
|
|
4277
|
+
prev.get(key)?.dispose();
|
|
4278
|
+
prev.delete(key);
|
|
4313
4279
|
}
|
|
4280
|
+
return result;
|
|
4281
|
+
});
|
|
4282
|
+
};
|
|
4283
|
+
function addNewItem(list, item, i2, key) {
|
|
4284
|
+
createRoot((dispose22) => {
|
|
4285
|
+
const [getItem, setItem] = createSignal(item);
|
|
4286
|
+
const save = { setItem, dispose: dispose22 };
|
|
4287
|
+
if (mapFn.length > 1) {
|
|
4288
|
+
const [index, setIndex] = createSignal(i2);
|
|
4289
|
+
save.setIndex = setIndex;
|
|
4290
|
+
save.mapped = mapFn(getItem, index);
|
|
4291
|
+
} else
|
|
4292
|
+
save.mapped = mapFn(getItem);
|
|
4293
|
+
prev.set(key, save);
|
|
4294
|
+
list[i2] = save.mapped;
|
|
4314
4295
|
});
|
|
4315
4296
|
}
|
|
4297
|
+
}
|
|
4298
|
+
function Key(props) {
|
|
4299
|
+
const { by } = props;
|
|
4300
|
+
return createMemo(
|
|
4301
|
+
keyArray(
|
|
4302
|
+
() => props.each,
|
|
4303
|
+
typeof by === "function" ? by : (v) => v[by],
|
|
4304
|
+
props.children,
|
|
4305
|
+
"fallback" in props ? { fallback: () => props.fallback } : void 0
|
|
4306
|
+
)
|
|
4307
|
+
);
|
|
4308
|
+
}
|
|
4309
|
+
var FALLBACK2;
|
|
4310
|
+
var init_dist8 = __esm({
|
|
4311
|
+
"../../node_modules/.pnpm/@solid-primitives+keyed@1.2.2_solid-js@1.8.19/node_modules/@solid-primitives/keyed/dist/index.js"() {
|
|
4312
|
+
init_solid();
|
|
4313
|
+
init_web();
|
|
4314
|
+
FALLBACK2 = Symbol("fallback");
|
|
4315
|
+
}
|
|
4316
4316
|
});
|
|
4317
4317
|
|
|
4318
4318
|
// ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.3_solid-js@1.8.19/node_modules/@solid-primitives/event-listener/dist/index.js
|
|
@@ -4345,7 +4345,7 @@ var init_dist9 = __esm({
|
|
|
4345
4345
|
// ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.26_solid-js@1.8.19/node_modules/@solid-primitives/resize-observer/dist/index.js
|
|
4346
4346
|
function makeResizeObserver(callback, options) {
|
|
4347
4347
|
if (isServer) {
|
|
4348
|
-
return { observe:
|
|
4348
|
+
return { observe: noop, unobserve: noop };
|
|
4349
4349
|
}
|
|
4350
4350
|
const observer = new ResizeObserver(callback);
|
|
4351
4351
|
onCleanup(observer.disconnect.bind(observer));
|
|
@@ -4795,7 +4795,7 @@ var init_dist12 = __esm({
|
|
|
4795
4795
|
"../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.19/node_modules/@kobalte/utils/dist/index.js"() {
|
|
4796
4796
|
init_solid();
|
|
4797
4797
|
init_dist9();
|
|
4798
|
-
|
|
4798
|
+
init_dist6();
|
|
4799
4799
|
init_index();
|
|
4800
4800
|
EventKey = /* @__PURE__ */ ((EventKey2) => {
|
|
4801
4801
|
EventKey2["Escape"] = "Escape";
|
|
@@ -12059,16 +12059,34 @@ var init_icons = __esm({
|
|
|
12059
12059
|
}
|
|
12060
12060
|
});
|
|
12061
12061
|
|
|
12062
|
-
// src/
|
|
12062
|
+
// src/constants.ts
|
|
12063
|
+
var firstBreakpoint, secondBreakpoint, thirdBreakpoint, BUTTON_POSITION, POSITION, THEME_PREFERENCE, INITIAL_IS_OPEN, DEFAULT_HEIGHT, PIP_DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_SORT_FN_NAME, DEFAULT_SORT_ORDER, DEFAULT_MUTATION_SORT_FN_NAME;
|
|
12064
|
+
var init_constants = __esm({
|
|
12065
|
+
"src/constants.ts"() {
|
|
12066
|
+
init_utils();
|
|
12067
|
+
firstBreakpoint = 1024;
|
|
12068
|
+
secondBreakpoint = 796;
|
|
12069
|
+
thirdBreakpoint = 700;
|
|
12070
|
+
BUTTON_POSITION = "bottom-right";
|
|
12071
|
+
POSITION = "bottom";
|
|
12072
|
+
THEME_PREFERENCE = "system";
|
|
12073
|
+
INITIAL_IS_OPEN = false;
|
|
12074
|
+
DEFAULT_HEIGHT = 500;
|
|
12075
|
+
PIP_DEFAULT_HEIGHT = 500;
|
|
12076
|
+
DEFAULT_WIDTH = 500;
|
|
12077
|
+
DEFAULT_SORT_FN_NAME = Object.keys(sortFns)[0];
|
|
12078
|
+
DEFAULT_SORT_ORDER = 1;
|
|
12079
|
+
DEFAULT_MUTATION_SORT_FN_NAME = Object.keys(mutationSortFns)[0];
|
|
12080
|
+
}
|
|
12081
|
+
});
|
|
12082
|
+
|
|
12083
|
+
// src/contexts/QueryDevtoolsContext.ts
|
|
12063
12084
|
function useQueryDevtoolsContext() {
|
|
12064
12085
|
return useContext(QueryDevtoolsContext);
|
|
12065
12086
|
}
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
var QueryDevtoolsContext, ThemeContext;
|
|
12070
|
-
var init_Context = __esm({
|
|
12071
|
-
"src/Context.ts"() {
|
|
12087
|
+
var QueryDevtoolsContext;
|
|
12088
|
+
var init_QueryDevtoolsContext = __esm({
|
|
12089
|
+
"src/contexts/QueryDevtoolsContext.ts"() {
|
|
12072
12090
|
init_solid();
|
|
12073
12091
|
QueryDevtoolsContext = createContext({
|
|
12074
12092
|
client: void 0,
|
|
@@ -12077,12 +12095,153 @@ var init_Context = __esm({
|
|
|
12077
12095
|
version: "",
|
|
12078
12096
|
shadowDOMTarget: void 0
|
|
12079
12097
|
});
|
|
12098
|
+
}
|
|
12099
|
+
});
|
|
12100
|
+
|
|
12101
|
+
// src/contexts/PiPContext.tsx
|
|
12102
|
+
var PiPContext, PiPProvider, usePiPWindow;
|
|
12103
|
+
var init_PiPContext = __esm({
|
|
12104
|
+
"src/contexts/PiPContext.tsx"() {
|
|
12105
|
+
init_web();
|
|
12106
|
+
init_solid();
|
|
12107
|
+
init_web();
|
|
12108
|
+
init_constants();
|
|
12109
|
+
init_QueryDevtoolsContext();
|
|
12110
|
+
PiPContext = createContext(void 0);
|
|
12111
|
+
PiPProvider = (props) => {
|
|
12112
|
+
const [pipWindow, setPipWindow] = createSignal(null);
|
|
12113
|
+
const closePipWindow = () => {
|
|
12114
|
+
const w = pipWindow();
|
|
12115
|
+
if (w != null) {
|
|
12116
|
+
w.close();
|
|
12117
|
+
setPipWindow(null);
|
|
12118
|
+
}
|
|
12119
|
+
};
|
|
12120
|
+
const requestPipWindow = (width, height) => {
|
|
12121
|
+
if (pipWindow() != null) {
|
|
12122
|
+
return;
|
|
12123
|
+
}
|
|
12124
|
+
const pip = window.open("", "TSQD-Devtools-Panel", `width=${width},height=${height},popup`);
|
|
12125
|
+
if (!pip) {
|
|
12126
|
+
throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");
|
|
12127
|
+
}
|
|
12128
|
+
pip.document.head.innerHTML = "";
|
|
12129
|
+
pip.document.body.innerHTML = "";
|
|
12130
|
+
clearDelegatedEvents(pip.document);
|
|
12131
|
+
pip.document.title = "TanStack Query Devtools";
|
|
12132
|
+
pip.document.body.style.margin = "0";
|
|
12133
|
+
pip.addEventListener("pagehide", () => {
|
|
12134
|
+
props.setLocalStore("pip_open", "false");
|
|
12135
|
+
setPipWindow(null);
|
|
12136
|
+
});
|
|
12137
|
+
[...(useQueryDevtoolsContext().shadowDOMTarget || document).styleSheets].forEach((styleSheet) => {
|
|
12138
|
+
try {
|
|
12139
|
+
const cssRules = [...styleSheet.cssRules].map((rule) => rule.cssText).join("");
|
|
12140
|
+
const style2 = document.createElement("style");
|
|
12141
|
+
const style_node = styleSheet.ownerNode;
|
|
12142
|
+
let style_id = "";
|
|
12143
|
+
if (style_node && "id" in style_node) {
|
|
12144
|
+
style_id = style_node.id;
|
|
12145
|
+
}
|
|
12146
|
+
if (style_id) {
|
|
12147
|
+
style2.setAttribute("id", style_id);
|
|
12148
|
+
}
|
|
12149
|
+
style2.textContent = cssRules;
|
|
12150
|
+
pip.document.head.appendChild(style2);
|
|
12151
|
+
} catch (e2) {
|
|
12152
|
+
const link = document.createElement("link");
|
|
12153
|
+
if (styleSheet.href == null) {
|
|
12154
|
+
return;
|
|
12155
|
+
}
|
|
12156
|
+
link.rel = "stylesheet";
|
|
12157
|
+
link.type = styleSheet.type;
|
|
12158
|
+
link.media = styleSheet.media.toString();
|
|
12159
|
+
link.href = styleSheet.href;
|
|
12160
|
+
pip.document.head.appendChild(link);
|
|
12161
|
+
}
|
|
12162
|
+
});
|
|
12163
|
+
delegateEvents(["focusin", "focusout", "pointermove", "keydown", "pointerdown", "pointerup", "click", "mousedown", "input"], pip.document);
|
|
12164
|
+
props.setLocalStore("pip_open", "true");
|
|
12165
|
+
setPipWindow(pip);
|
|
12166
|
+
};
|
|
12167
|
+
createEffect(() => {
|
|
12168
|
+
const pip_open = props.localStore.pip_open ?? "false";
|
|
12169
|
+
if (pip_open === "true" && !props.disabled) {
|
|
12170
|
+
requestPipWindow(Number(window.innerWidth), Number(props.localStore.height || PIP_DEFAULT_HEIGHT));
|
|
12171
|
+
}
|
|
12172
|
+
});
|
|
12173
|
+
createEffect(() => {
|
|
12174
|
+
const gooberStyles = (useQueryDevtoolsContext().shadowDOMTarget || document).querySelector("#_goober");
|
|
12175
|
+
const w = pipWindow();
|
|
12176
|
+
if (gooberStyles && w) {
|
|
12177
|
+
const observer = new MutationObserver(() => {
|
|
12178
|
+
const pip_style = (useQueryDevtoolsContext().shadowDOMTarget || w.document).querySelector("#_goober");
|
|
12179
|
+
if (pip_style) {
|
|
12180
|
+
pip_style.textContent = gooberStyles.textContent;
|
|
12181
|
+
}
|
|
12182
|
+
});
|
|
12183
|
+
observer.observe(gooberStyles, {
|
|
12184
|
+
childList: true,
|
|
12185
|
+
// observe direct children
|
|
12186
|
+
subtree: true,
|
|
12187
|
+
// and lower descendants too
|
|
12188
|
+
characterDataOldValue: true
|
|
12189
|
+
// pass old data to callback
|
|
12190
|
+
});
|
|
12191
|
+
onCleanup(() => {
|
|
12192
|
+
observer.disconnect();
|
|
12193
|
+
});
|
|
12194
|
+
}
|
|
12195
|
+
});
|
|
12196
|
+
const value = createMemo(() => ({
|
|
12197
|
+
pipWindow: pipWindow(),
|
|
12198
|
+
requestPipWindow,
|
|
12199
|
+
closePipWindow,
|
|
12200
|
+
disabled: props.disabled ?? false
|
|
12201
|
+
}));
|
|
12202
|
+
return createComponent(PiPContext.Provider, {
|
|
12203
|
+
value,
|
|
12204
|
+
get children() {
|
|
12205
|
+
return props.children;
|
|
12206
|
+
}
|
|
12207
|
+
});
|
|
12208
|
+
};
|
|
12209
|
+
usePiPWindow = () => {
|
|
12210
|
+
const context = createMemo(() => {
|
|
12211
|
+
const ctx = useContext(PiPContext);
|
|
12212
|
+
if (!ctx) {
|
|
12213
|
+
throw new Error("usePiPWindow must be used within a PiPProvider");
|
|
12214
|
+
}
|
|
12215
|
+
return ctx();
|
|
12216
|
+
});
|
|
12217
|
+
return context;
|
|
12218
|
+
};
|
|
12219
|
+
}
|
|
12220
|
+
});
|
|
12221
|
+
|
|
12222
|
+
// src/contexts/ThemeContext.ts
|
|
12223
|
+
function useTheme() {
|
|
12224
|
+
return useContext(ThemeContext);
|
|
12225
|
+
}
|
|
12226
|
+
var ThemeContext;
|
|
12227
|
+
var init_ThemeContext = __esm({
|
|
12228
|
+
"src/contexts/ThemeContext.ts"() {
|
|
12229
|
+
init_solid();
|
|
12080
12230
|
ThemeContext = createContext(
|
|
12081
12231
|
() => "dark"
|
|
12082
12232
|
);
|
|
12083
12233
|
}
|
|
12084
12234
|
});
|
|
12085
12235
|
|
|
12236
|
+
// src/contexts/index.ts
|
|
12237
|
+
var init_contexts = __esm({
|
|
12238
|
+
"src/contexts/index.ts"() {
|
|
12239
|
+
init_PiPContext();
|
|
12240
|
+
init_QueryDevtoolsContext();
|
|
12241
|
+
init_ThemeContext();
|
|
12242
|
+
}
|
|
12243
|
+
});
|
|
12244
|
+
|
|
12086
12245
|
// src/Explorer.tsx
|
|
12087
12246
|
function chunkArray(array, size3) {
|
|
12088
12247
|
let i2 = 0;
|
|
@@ -12447,12 +12606,12 @@ var init_Explorer = __esm({
|
|
|
12447
12606
|
init_dist3();
|
|
12448
12607
|
init_clsx();
|
|
12449
12608
|
init_solid();
|
|
12450
|
-
|
|
12609
|
+
init_dist8();
|
|
12451
12610
|
init_goober_modern();
|
|
12452
12611
|
init_theme();
|
|
12453
12612
|
init_utils();
|
|
12454
12613
|
init_icons();
|
|
12455
|
-
|
|
12614
|
+
init_contexts();
|
|
12456
12615
|
_tmpl$23 = /* @__PURE__ */ template(`<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
12457
12616
|
_tmpl$24 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
|
|
12458
12617
|
_tmpl$32 = /* @__PURE__ */ template(`<button title="Remove all items"aria-label="Remove all items">`);
|
|
@@ -12765,11 +12924,7 @@ var init_Explorer = __esm({
|
|
|
12765
12924
|
});
|
|
12766
12925
|
|
|
12767
12926
|
// src/Devtools.tsx
|
|
12768
|
-
var
|
|
12769
|
-
__export(Devtools_exports, {
|
|
12770
|
-
default: () => Devtools_default
|
|
12771
|
-
});
|
|
12772
|
-
var _tmpl$25, _tmpl$26, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$103, _tmpl$113, _tmpl$122, _tmpl$132, _tmpl$142, _tmpl$152, _tmpl$162, _tmpl$172, _tmpl$182, _tmpl$192, _tmpl$202, _tmpl$212, _tmpl$223, _tmpl$232, _tmpl$242, _tmpl$252, _tmpl$262, _tmpl$27, _tmpl$28, _tmpl$29, _tmpl$30, _tmpl$31, _tmpl$322, firstBreakpoint, secondBreakpoint, thirdBreakpoint, BUTTON_POSITION, POSITION, THEME_PREFERENCE, INITIAL_IS_OPEN, DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_SORT_FN_NAME, DEFAULT_SORT_ORDER, DEFAULT_MUTATION_SORT_FN_NAME, selectedQueryHash, setSelectedQueryHash, selectedMutationId, setSelectedMutationId, panelWidth, setPanelWidth, offline, setOffline, PiPContext, PiPProvider, usePiPWindow, DevtoolsComponent, Devtools_default, Devtools, PiPPanel, DevtoolsPanel, ContentView, QueryRow, MutationRow, QueryStatusCount, MutationStatusCount, QueryStatus, QueryDetails, MutationDetails, queryCacheMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, mutationCacheMap, setupMutationCacheSubscription, createSubscribeToMutationCacheBatcher, stylesFactory2, lightStyles2, darkStyles2;
|
|
12927
|
+
var _tmpl$25, _tmpl$26, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$103, _tmpl$113, _tmpl$122, _tmpl$132, _tmpl$142, _tmpl$152, _tmpl$162, _tmpl$172, _tmpl$182, _tmpl$192, _tmpl$202, _tmpl$212, _tmpl$223, _tmpl$232, _tmpl$242, _tmpl$252, _tmpl$262, _tmpl$27, _tmpl$28, _tmpl$29, _tmpl$30, _tmpl$31, _tmpl$322, selectedQueryHash, setSelectedQueryHash, selectedMutationId, setSelectedMutationId, panelWidth, setPanelWidth, offline, setOffline, Devtools, PiPPanel, ParentPanel, DraggablePanel, ContentView, QueryRow, MutationRow, QueryStatusCount, MutationStatusCount, QueryStatus, QueryDetails, MutationDetails, queryCacheMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, mutationCacheMap, setupMutationCacheSubscription, createSubscribeToMutationCacheBatcher, stylesFactory2, lightStyles2, darkStyles2;
|
|
12773
12928
|
var init_Devtools = __esm({
|
|
12774
12929
|
"src/Devtools.tsx"() {
|
|
12775
12930
|
init_web();
|
|
@@ -12787,7 +12942,6 @@ var init_Devtools = __esm({
|
|
|
12787
12942
|
init_lib();
|
|
12788
12943
|
init_goober_modern();
|
|
12789
12944
|
init_clsx();
|
|
12790
|
-
init_dist6();
|
|
12791
12945
|
init_dist7();
|
|
12792
12946
|
init_dist8();
|
|
12793
12947
|
init_dist10();
|
|
@@ -12797,7 +12951,8 @@ var init_Devtools = __esm({
|
|
|
12797
12951
|
init_utils();
|
|
12798
12952
|
init_icons();
|
|
12799
12953
|
init_Explorer();
|
|
12800
|
-
|
|
12954
|
+
init_contexts();
|
|
12955
|
+
init_constants();
|
|
12801
12956
|
_tmpl$25 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>`);
|
|
12802
12957
|
_tmpl$26 = /* @__PURE__ */ template(`<div>`);
|
|
12803
12958
|
_tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
|
|
@@ -12819,174 +12974,21 @@ var init_Devtools = __esm({
|
|
|
12819
12974
|
_tmpl$192 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
|
|
12820
12975
|
_tmpl$202 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
|
|
12821
12976
|
_tmpl$212 = /* @__PURE__ */ template(`<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>`);
|
|
12822
|
-
_tmpl$223 = /* @__PURE__ */ template(`<option>Sort by `);
|
|
12823
|
-
_tmpl$232 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
|
|
12824
|
-
_tmpl$242 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
|
|
12825
|
-
_tmpl$252 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
|
|
12826
|
-
_tmpl$262 = /* @__PURE__ */ template(`<span>`);
|
|
12827
|
-
_tmpl$27 = /* @__PURE__ */ template(`<button><span></span><span>`);
|
|
12828
|
-
_tmpl$28 = /* @__PURE__ */ template(`<button><span></span> Error`);
|
|
12829
|
-
_tmpl$29 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
|
|
12830
|
-
_tmpl$30 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
12831
|
-
_tmpl$31 = /* @__PURE__ */ template(`<option>`);
|
|
12832
|
-
_tmpl$322 = /* @__PURE__ */ template(`<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
12833
|
-
firstBreakpoint = 1024;
|
|
12834
|
-
secondBreakpoint = 796;
|
|
12835
|
-
thirdBreakpoint = 700;
|
|
12836
|
-
BUTTON_POSITION = "bottom-right";
|
|
12837
|
-
POSITION = "bottom";
|
|
12838
|
-
THEME_PREFERENCE = "system";
|
|
12839
|
-
INITIAL_IS_OPEN = false;
|
|
12840
|
-
DEFAULT_HEIGHT = 500;
|
|
12841
|
-
DEFAULT_WIDTH = 500;
|
|
12842
|
-
DEFAULT_SORT_FN_NAME = Object.keys(sortFns)[0];
|
|
12843
|
-
DEFAULT_SORT_ORDER = 1;
|
|
12844
|
-
DEFAULT_MUTATION_SORT_FN_NAME = Object.keys(mutationSortFns)[0];
|
|
12977
|
+
_tmpl$223 = /* @__PURE__ */ template(`<option>Sort by `);
|
|
12978
|
+
_tmpl$232 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
|
|
12979
|
+
_tmpl$242 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
|
|
12980
|
+
_tmpl$252 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
|
|
12981
|
+
_tmpl$262 = /* @__PURE__ */ template(`<span>`);
|
|
12982
|
+
_tmpl$27 = /* @__PURE__ */ template(`<button><span></span><span>`);
|
|
12983
|
+
_tmpl$28 = /* @__PURE__ */ template(`<button><span></span> Error`);
|
|
12984
|
+
_tmpl$29 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
|
|
12985
|
+
_tmpl$30 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
12986
|
+
_tmpl$31 = /* @__PURE__ */ template(`<option>`);
|
|
12987
|
+
_tmpl$322 = /* @__PURE__ */ template(`<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
12845
12988
|
[selectedQueryHash, setSelectedQueryHash] = createSignal(null);
|
|
12846
12989
|
[selectedMutationId, setSelectedMutationId] = createSignal(null);
|
|
12847
12990
|
[panelWidth, setPanelWidth] = createSignal(0);
|
|
12848
12991
|
[offline, setOffline] = createSignal(false);
|
|
12849
|
-
PiPContext = createContext(void 0);
|
|
12850
|
-
PiPProvider = (props) => {
|
|
12851
|
-
const [pipWindow, setPipWindow] = createSignal(null);
|
|
12852
|
-
const closePipWindow = () => {
|
|
12853
|
-
const w = pipWindow();
|
|
12854
|
-
if (w != null) {
|
|
12855
|
-
w.close();
|
|
12856
|
-
setPipWindow(null);
|
|
12857
|
-
}
|
|
12858
|
-
};
|
|
12859
|
-
const requestPipWindow = async (width, height) => {
|
|
12860
|
-
if (pipWindow() != null) {
|
|
12861
|
-
return;
|
|
12862
|
-
}
|
|
12863
|
-
const pip = window.open("", "TSQD-Devtools-Panel", `width=${width},height=${height},popup`);
|
|
12864
|
-
if (!pip) {
|
|
12865
|
-
throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");
|
|
12866
|
-
}
|
|
12867
|
-
pip.document.head.innerHTML = "";
|
|
12868
|
-
pip.document.body.innerHTML = "";
|
|
12869
|
-
clearDelegatedEvents(pip.document);
|
|
12870
|
-
pip.document.title = "TanStack Query Devtools";
|
|
12871
|
-
pip.document.body.style.margin = "0";
|
|
12872
|
-
pip.addEventListener("pagehide", () => {
|
|
12873
|
-
props.setLocalStore("pip_open", "false");
|
|
12874
|
-
setPipWindow(null);
|
|
12875
|
-
});
|
|
12876
|
-
[...(useQueryDevtoolsContext().shadowDOMTarget || document).styleSheets].forEach((styleSheet) => {
|
|
12877
|
-
try {
|
|
12878
|
-
const cssRules = [...styleSheet.cssRules].map((rule) => rule.cssText).join("");
|
|
12879
|
-
const style2 = document.createElement("style");
|
|
12880
|
-
const style_node = styleSheet.ownerNode;
|
|
12881
|
-
let style_id = "";
|
|
12882
|
-
if (style_node && "id" in style_node) {
|
|
12883
|
-
style_id = style_node.id;
|
|
12884
|
-
}
|
|
12885
|
-
if (style_id) {
|
|
12886
|
-
style2.setAttribute("id", style_id);
|
|
12887
|
-
}
|
|
12888
|
-
style2.textContent = cssRules;
|
|
12889
|
-
pip.document.head.appendChild(style2);
|
|
12890
|
-
} catch (e2) {
|
|
12891
|
-
const link = document.createElement("link");
|
|
12892
|
-
if (styleSheet.href == null) {
|
|
12893
|
-
return;
|
|
12894
|
-
}
|
|
12895
|
-
link.rel = "stylesheet";
|
|
12896
|
-
link.type = styleSheet.type;
|
|
12897
|
-
link.media = styleSheet.media.toString();
|
|
12898
|
-
link.href = styleSheet.href;
|
|
12899
|
-
pip.document.head.appendChild(link);
|
|
12900
|
-
}
|
|
12901
|
-
});
|
|
12902
|
-
delegateEvents(["focusin", "focusout", "pointermove", "keydown", "pointerdown", "pointerup", "click", "mousedown", "input"], pip.document);
|
|
12903
|
-
props.setLocalStore("pip_open", "true");
|
|
12904
|
-
setPipWindow(pip);
|
|
12905
|
-
};
|
|
12906
|
-
createEffect(() => {
|
|
12907
|
-
const pip_open = props.localStore.pip_open ?? "false";
|
|
12908
|
-
if (pip_open === "true") {
|
|
12909
|
-
requestPipWindow(Number(window.innerWidth), Number(props.localStore.height || DEFAULT_HEIGHT));
|
|
12910
|
-
}
|
|
12911
|
-
});
|
|
12912
|
-
createEffect(() => {
|
|
12913
|
-
const gooberStyles = (useQueryDevtoolsContext().shadowDOMTarget || document).querySelector("#_goober");
|
|
12914
|
-
const w = pipWindow();
|
|
12915
|
-
if (gooberStyles && w) {
|
|
12916
|
-
const observer = new MutationObserver(() => {
|
|
12917
|
-
const pip_style = (useQueryDevtoolsContext().shadowDOMTarget || w.document).querySelector("#_goober");
|
|
12918
|
-
if (pip_style) {
|
|
12919
|
-
pip_style.textContent = gooberStyles.textContent;
|
|
12920
|
-
}
|
|
12921
|
-
});
|
|
12922
|
-
observer.observe(gooberStyles, {
|
|
12923
|
-
childList: true,
|
|
12924
|
-
// observe direct children
|
|
12925
|
-
subtree: true,
|
|
12926
|
-
// and lower descendants too
|
|
12927
|
-
characterDataOldValue: true
|
|
12928
|
-
// pass old data to callback
|
|
12929
|
-
});
|
|
12930
|
-
onCleanup(() => {
|
|
12931
|
-
observer.disconnect();
|
|
12932
|
-
});
|
|
12933
|
-
}
|
|
12934
|
-
});
|
|
12935
|
-
const value = createMemo(() => ({
|
|
12936
|
-
pipWindow: pipWindow(),
|
|
12937
|
-
requestPipWindow,
|
|
12938
|
-
closePipWindow
|
|
12939
|
-
}));
|
|
12940
|
-
return createComponent(PiPContext.Provider, {
|
|
12941
|
-
value,
|
|
12942
|
-
get children() {
|
|
12943
|
-
return props.children;
|
|
12944
|
-
}
|
|
12945
|
-
});
|
|
12946
|
-
};
|
|
12947
|
-
usePiPWindow = () => {
|
|
12948
|
-
const context = createMemo(() => {
|
|
12949
|
-
const ctx = useContext(PiPContext);
|
|
12950
|
-
if (!ctx) {
|
|
12951
|
-
throw new Error("usePiPWindow must be used within a PiPProvider");
|
|
12952
|
-
}
|
|
12953
|
-
return ctx();
|
|
12954
|
-
});
|
|
12955
|
-
return context;
|
|
12956
|
-
};
|
|
12957
|
-
DevtoolsComponent = (props) => {
|
|
12958
|
-
const [localStore, setLocalStore] = createLocalStorage({
|
|
12959
|
-
prefix: "TanstackQueryDevtools"
|
|
12960
|
-
});
|
|
12961
|
-
const colorScheme = getPreferredColorScheme();
|
|
12962
|
-
const theme = createMemo(() => {
|
|
12963
|
-
const preference = localStore.theme_preference || THEME_PREFERENCE;
|
|
12964
|
-
if (preference !== "system")
|
|
12965
|
-
return preference;
|
|
12966
|
-
return colorScheme();
|
|
12967
|
-
});
|
|
12968
|
-
return createComponent(QueryDevtoolsContext.Provider, {
|
|
12969
|
-
value: props,
|
|
12970
|
-
get children() {
|
|
12971
|
-
return createComponent(PiPProvider, {
|
|
12972
|
-
localStore,
|
|
12973
|
-
setLocalStore,
|
|
12974
|
-
get children() {
|
|
12975
|
-
return createComponent(ThemeContext.Provider, {
|
|
12976
|
-
value: theme,
|
|
12977
|
-
get children() {
|
|
12978
|
-
return createComponent(Devtools, {
|
|
12979
|
-
localStore,
|
|
12980
|
-
setLocalStore
|
|
12981
|
-
});
|
|
12982
|
-
}
|
|
12983
|
-
});
|
|
12984
|
-
}
|
|
12985
|
-
});
|
|
12986
|
-
}
|
|
12987
|
-
});
|
|
12988
|
-
};
|
|
12989
|
-
Devtools_default = DevtoolsComponent;
|
|
12990
12992
|
Devtools = (props) => {
|
|
12991
12993
|
const theme = useTheme();
|
|
12992
12994
|
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
@@ -13039,14 +13041,7 @@ var init_Devtools = __esm({
|
|
|
13039
13041
|
get children() {
|
|
13040
13042
|
return createComponent(PiPPanel, {
|
|
13041
13043
|
get children() {
|
|
13042
|
-
return createComponent(ContentView,
|
|
13043
|
-
get localStore() {
|
|
13044
|
-
return props.localStore;
|
|
13045
|
-
},
|
|
13046
|
-
get setLocalStore() {
|
|
13047
|
-
return props.setLocalStore;
|
|
13048
|
-
}
|
|
13049
|
-
});
|
|
13044
|
+
return createComponent(ContentView, props);
|
|
13050
13045
|
}
|
|
13051
13046
|
});
|
|
13052
13047
|
}
|
|
@@ -13064,7 +13059,7 @@ var init_Devtools = __esm({
|
|
|
13064
13059
|
return createMemo(() => !!(isOpen() && !pip().pipWindow))() && pip_open() == "false";
|
|
13065
13060
|
},
|
|
13066
13061
|
get children() {
|
|
13067
|
-
return createComponent(
|
|
13062
|
+
return createComponent(DraggablePanel, {
|
|
13068
13063
|
get localStore() {
|
|
13069
13064
|
return props.localStore;
|
|
13070
13065
|
},
|
|
@@ -13181,7 +13176,55 @@ var init_Devtools = __esm({
|
|
|
13181
13176
|
return _el$5;
|
|
13182
13177
|
})();
|
|
13183
13178
|
};
|
|
13184
|
-
|
|
13179
|
+
ParentPanel = (props) => {
|
|
13180
|
+
const theme = useTheme();
|
|
13181
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
13182
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
13183
|
+
}) : u;
|
|
13184
|
+
const styles = createMemo(() => {
|
|
13185
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
13186
|
+
});
|
|
13187
|
+
let panelRef;
|
|
13188
|
+
onMount(() => {
|
|
13189
|
+
createResizeObserver(panelRef, ({
|
|
13190
|
+
width
|
|
13191
|
+
}, el) => {
|
|
13192
|
+
if (el === panelRef) {
|
|
13193
|
+
setPanelWidth(width);
|
|
13194
|
+
}
|
|
13195
|
+
});
|
|
13196
|
+
});
|
|
13197
|
+
const getPanelDynamicStyles = () => {
|
|
13198
|
+
const {
|
|
13199
|
+
colors
|
|
13200
|
+
} = tokens;
|
|
13201
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
13202
|
+
if (panelWidth() < secondBreakpoint) {
|
|
13203
|
+
return css`
|
|
13204
|
+
flex-direction: column;
|
|
13205
|
+
background-color: ${t2(colors.gray[300], colors.gray[600])};
|
|
13206
|
+
`;
|
|
13207
|
+
}
|
|
13208
|
+
return css`
|
|
13209
|
+
flex-direction: row;
|
|
13210
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[900])};
|
|
13211
|
+
`;
|
|
13212
|
+
};
|
|
13213
|
+
return (() => {
|
|
13214
|
+
var _el$6 = _tmpl$26();
|
|
13215
|
+
var _ref$2 = panelRef;
|
|
13216
|
+
typeof _ref$2 === "function" ? use(_ref$2, _el$6) : panelRef = _el$6;
|
|
13217
|
+
_el$6.style.setProperty("--tsqd-font-size", "16px");
|
|
13218
|
+
insert(_el$6, () => props.children);
|
|
13219
|
+
createRenderEffect(() => className(_el$6, clsx(styles().parentPanel, getPanelDynamicStyles(), {
|
|
13220
|
+
[css`
|
|
13221
|
+
min-width: min-content;
|
|
13222
|
+
`]: panelWidth() < thirdBreakpoint
|
|
13223
|
+
}, "tsqd-main-panel")));
|
|
13224
|
+
return _el$6;
|
|
13225
|
+
})();
|
|
13226
|
+
};
|
|
13227
|
+
DraggablePanel = (props) => {
|
|
13185
13228
|
const theme = useTheme();
|
|
13186
13229
|
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
13187
13230
|
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
@@ -13292,31 +13335,24 @@ var init_Devtools = __esm({
|
|
|
13292
13335
|
`;
|
|
13293
13336
|
};
|
|
13294
13337
|
return (() => {
|
|
13295
|
-
var _el$
|
|
13296
|
-
var _ref$
|
|
13297
|
-
typeof _ref$
|
|
13298
|
-
_el$
|
|
13299
|
-
_el$
|
|
13300
|
-
insert(_el$
|
|
13301
|
-
insert(_el$
|
|
13302
|
-
get localStore() {
|
|
13303
|
-
return props.localStore;
|
|
13304
|
-
},
|
|
13305
|
-
get setLocalStore() {
|
|
13306
|
-
return props.setLocalStore;
|
|
13307
|
-
}
|
|
13308
|
-
}), null);
|
|
13338
|
+
var _el$7 = _tmpl$33(), _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling;
|
|
13339
|
+
var _ref$3 = panelRef;
|
|
13340
|
+
typeof _ref$3 === "function" ? use(_ref$3, _el$7) : panelRef = _el$7;
|
|
13341
|
+
_el$8.$$mousedown = handleDragStart;
|
|
13342
|
+
_el$9.$$click = () => props.setLocalStore("open", "false");
|
|
13343
|
+
insert(_el$9, createComponent(ChevronDown, {}));
|
|
13344
|
+
insert(_el$7, createComponent(ContentView, props), null);
|
|
13309
13345
|
createRenderEffect((_p$) => {
|
|
13310
13346
|
var _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
|
|
13311
13347
|
[css`
|
|
13312
13348
|
min-width: min-content;
|
|
13313
13349
|
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
13314
13350
|
}, "tsqd-main-panel"), _v$2 = position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto", _v$3 = position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto", _v$4 = clsx(styles().dragHandle, styles()[`dragHandle-position-${position()}`], "tsqd-drag-handle"), _v$5 = clsx(styles().closeBtn, styles()[`closeBtn-position-${position()}`], "tsqd-minimize-btn");
|
|
13315
|
-
_v$ !== _p$.e && className(_el$
|
|
13316
|
-
_v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$
|
|
13317
|
-
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$
|
|
13318
|
-
_v$4 !== _p$.o && className(_el$
|
|
13319
|
-
_v$5 !== _p$.i && className(_el$
|
|
13351
|
+
_v$ !== _p$.e && className(_el$7, _p$.e = _v$);
|
|
13352
|
+
_v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$7.style.setProperty("height", _v$2) : _el$7.style.removeProperty("height"));
|
|
13353
|
+
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$7.style.setProperty("width", _v$3) : _el$7.style.removeProperty("width"));
|
|
13354
|
+
_v$4 !== _p$.o && className(_el$8, _p$.o = _v$4);
|
|
13355
|
+
_v$5 !== _p$.i && className(_el$9, _p$.i = _v$5);
|
|
13320
13356
|
return _p$;
|
|
13321
13357
|
}, {
|
|
13322
13358
|
e: void 0,
|
|
@@ -13325,7 +13361,7 @@ var init_Devtools = __esm({
|
|
|
13325
13361
|
o: void 0,
|
|
13326
13362
|
i: void 0
|
|
13327
13363
|
});
|
|
13328
|
-
return _el$
|
|
13364
|
+
return _el$7;
|
|
13329
13365
|
})();
|
|
13330
13366
|
};
|
|
13331
13367
|
ContentView = (props) => {
|
|
@@ -13384,17 +13420,21 @@ var init_Devtools = __esm({
|
|
|
13384
13420
|
el.style.setProperty("--tsqd-font-size", variable);
|
|
13385
13421
|
};
|
|
13386
13422
|
return [(() => {
|
|
13387
|
-
var _el$
|
|
13388
|
-
var _ref$
|
|
13389
|
-
typeof _ref$
|
|
13390
|
-
_el$
|
|
13391
|
-
if (!pip().pipWindow) {
|
|
13423
|
+
var _el$10 = _tmpl$212(), _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$11.nextSibling, _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$19.firstChild, _el$21 = _el$19.nextSibling, _el$24 = _el$21.nextSibling, _el$27 = _el$18.nextSibling, _el$28 = _el$27.firstChild, _el$29 = _el$28.nextSibling;
|
|
13424
|
+
var _ref$4 = containerRef;
|
|
13425
|
+
typeof _ref$4 === "function" ? use(_ref$4, _el$10) : containerRef = _el$10;
|
|
13426
|
+
_el$13.$$click = () => {
|
|
13427
|
+
if (!pip().pipWindow && !props.showPanelViewOnly) {
|
|
13392
13428
|
props.setLocalStore("open", "false");
|
|
13429
|
+
return;
|
|
13430
|
+
}
|
|
13431
|
+
if (props.onClose) {
|
|
13432
|
+
props.onClose();
|
|
13393
13433
|
}
|
|
13394
13434
|
};
|
|
13395
|
-
insert(_el$
|
|
13396
|
-
insert(_el$
|
|
13397
|
-
insert(_el$
|
|
13435
|
+
insert(_el$15, () => useQueryDevtoolsContext().queryFlavor, _el$16);
|
|
13436
|
+
insert(_el$15, () => useQueryDevtoolsContext().version, null);
|
|
13437
|
+
insert(_el$12, createComponent(radio_group_exports.Root, {
|
|
13398
13438
|
get ["class"]() {
|
|
13399
13439
|
return clsx(styles().viewToggle);
|
|
13400
13440
|
},
|
|
@@ -13436,7 +13476,7 @@ var init_Devtools = __esm({
|
|
|
13436
13476
|
})];
|
|
13437
13477
|
}
|
|
13438
13478
|
}), null);
|
|
13439
|
-
insert(_el$
|
|
13479
|
+
insert(_el$11, createComponent(Show, {
|
|
13440
13480
|
get when() {
|
|
13441
13481
|
return selectedView() === "queries";
|
|
13442
13482
|
},
|
|
@@ -13444,7 +13484,7 @@ var init_Devtools = __esm({
|
|
|
13444
13484
|
return createComponent(QueryStatusCount, {});
|
|
13445
13485
|
}
|
|
13446
13486
|
}), null);
|
|
13447
|
-
insert(_el$
|
|
13487
|
+
insert(_el$11, createComponent(Show, {
|
|
13448
13488
|
get when() {
|
|
13449
13489
|
return selectedView() === "mutations";
|
|
13450
13490
|
},
|
|
@@ -13452,61 +13492,61 @@ var init_Devtools = __esm({
|
|
|
13452
13492
|
return createComponent(MutationStatusCount, {});
|
|
13453
13493
|
}
|
|
13454
13494
|
}), null);
|
|
13455
|
-
insert(_el$
|
|
13456
|
-
_el$
|
|
13495
|
+
insert(_el$19, createComponent(Search, {}), _el$20);
|
|
13496
|
+
_el$20.$$input = (e2) => {
|
|
13457
13497
|
if (selectedView() === "queries") {
|
|
13458
13498
|
props.setLocalStore("filter", e2.currentTarget.value);
|
|
13459
13499
|
} else {
|
|
13460
13500
|
props.setLocalStore("mutationFilter", e2.currentTarget.value);
|
|
13461
13501
|
}
|
|
13462
13502
|
};
|
|
13463
|
-
insert(_el$
|
|
13503
|
+
insert(_el$21, createComponent(Show, {
|
|
13464
13504
|
get when() {
|
|
13465
13505
|
return selectedView() === "queries";
|
|
13466
13506
|
},
|
|
13467
13507
|
get children() {
|
|
13468
|
-
var _el$
|
|
13469
|
-
_el$
|
|
13508
|
+
var _el$22 = _tmpl$43();
|
|
13509
|
+
_el$22.addEventListener("change", (e2) => {
|
|
13470
13510
|
props.setLocalStore("sort", e2.currentTarget.value);
|
|
13471
13511
|
});
|
|
13472
|
-
insert(_el$
|
|
13473
|
-
var _el$
|
|
13474
|
-
_el$
|
|
13475
|
-
insert(_el$
|
|
13476
|
-
return _el$
|
|
13512
|
+
insert(_el$22, () => Object.keys(sortFns).map((key) => (() => {
|
|
13513
|
+
var _el$45 = _tmpl$223(); _el$45.firstChild;
|
|
13514
|
+
_el$45.value = key;
|
|
13515
|
+
insert(_el$45, key, null);
|
|
13516
|
+
return _el$45;
|
|
13477
13517
|
})()));
|
|
13478
|
-
createRenderEffect(() => _el$
|
|
13479
|
-
return _el$
|
|
13518
|
+
createRenderEffect(() => _el$22.value = sort());
|
|
13519
|
+
return _el$22;
|
|
13480
13520
|
}
|
|
13481
13521
|
}), null);
|
|
13482
|
-
insert(_el$
|
|
13522
|
+
insert(_el$21, createComponent(Show, {
|
|
13483
13523
|
get when() {
|
|
13484
13524
|
return selectedView() === "mutations";
|
|
13485
13525
|
},
|
|
13486
13526
|
get children() {
|
|
13487
|
-
var _el$
|
|
13488
|
-
_el$
|
|
13527
|
+
var _el$23 = _tmpl$53();
|
|
13528
|
+
_el$23.addEventListener("change", (e2) => {
|
|
13489
13529
|
props.setLocalStore("mutationSort", e2.currentTarget.value);
|
|
13490
13530
|
});
|
|
13491
|
-
insert(_el$
|
|
13492
|
-
var _el$
|
|
13493
|
-
_el$
|
|
13494
|
-
insert(_el$
|
|
13495
|
-
return _el$
|
|
13531
|
+
insert(_el$23, () => Object.keys(mutationSortFns).map((key) => (() => {
|
|
13532
|
+
var _el$47 = _tmpl$223(); _el$47.firstChild;
|
|
13533
|
+
_el$47.value = key;
|
|
13534
|
+
insert(_el$47, key, null);
|
|
13535
|
+
return _el$47;
|
|
13496
13536
|
})()));
|
|
13497
|
-
createRenderEffect(() => _el$
|
|
13498
|
-
return _el$
|
|
13537
|
+
createRenderEffect(() => _el$23.value = mutationSort());
|
|
13538
|
+
return _el$23;
|
|
13499
13539
|
}
|
|
13500
13540
|
}), null);
|
|
13501
|
-
insert(_el$
|
|
13502
|
-
_el$
|
|
13541
|
+
insert(_el$21, createComponent(ChevronDown, {}), null);
|
|
13542
|
+
_el$24.$$click = () => {
|
|
13503
13543
|
if (selectedView() === "queries") {
|
|
13504
13544
|
props.setLocalStore("sortOrder", String(sortOrder() * -1));
|
|
13505
13545
|
} else {
|
|
13506
13546
|
props.setLocalStore("mutationSortOrder", String(mutationSortOrder() * -1));
|
|
13507
13547
|
}
|
|
13508
13548
|
};
|
|
13509
|
-
insert(_el$
|
|
13549
|
+
insert(_el$24, createComponent(Show, {
|
|
13510
13550
|
get when() {
|
|
13511
13551
|
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === 1;
|
|
13512
13552
|
},
|
|
@@ -13514,7 +13554,7 @@ var init_Devtools = __esm({
|
|
|
13514
13554
|
return [_tmpl$63(), createComponent(ArrowUp, {})];
|
|
13515
13555
|
}
|
|
13516
13556
|
}), null);
|
|
13517
|
-
insert(_el$
|
|
13557
|
+
insert(_el$24, createComponent(Show, {
|
|
13518
13558
|
get when() {
|
|
13519
13559
|
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1;
|
|
13520
13560
|
},
|
|
@@ -13522,15 +13562,15 @@ var init_Devtools = __esm({
|
|
|
13522
13562
|
return [_tmpl$73(), createComponent(ArrowDown, {})];
|
|
13523
13563
|
}
|
|
13524
13564
|
}), null);
|
|
13525
|
-
_el$
|
|
13565
|
+
_el$28.$$click = () => {
|
|
13526
13566
|
if (selectedView() === "queries") {
|
|
13527
13567
|
query_cache().clear();
|
|
13528
13568
|
} else {
|
|
13529
13569
|
mutation_cache().clear();
|
|
13530
13570
|
}
|
|
13531
13571
|
};
|
|
13532
|
-
insert(_el$
|
|
13533
|
-
_el$
|
|
13572
|
+
insert(_el$28, createComponent(Trash, {}));
|
|
13573
|
+
_el$29.$$click = () => {
|
|
13534
13574
|
if (offline()) {
|
|
13535
13575
|
onlineManager().setOnline(true);
|
|
13536
13576
|
setOffline(false);
|
|
@@ -13539,25 +13579,25 @@ var init_Devtools = __esm({
|
|
|
13539
13579
|
setOffline(true);
|
|
13540
13580
|
}
|
|
13541
13581
|
};
|
|
13542
|
-
insert(_el$
|
|
13582
|
+
insert(_el$29, (() => {
|
|
13543
13583
|
var _c$ = createMemo(() => !!offline());
|
|
13544
13584
|
return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
|
|
13545
13585
|
})());
|
|
13546
|
-
insert(_el$
|
|
13586
|
+
insert(_el$27, createComponent(Show, {
|
|
13547
13587
|
get when() {
|
|
13548
|
-
return !pip().
|
|
13588
|
+
return createMemo(() => !!!pip().pipWindow)() && !pip().disabled;
|
|
13549
13589
|
},
|
|
13550
13590
|
get children() {
|
|
13551
|
-
var _el$
|
|
13552
|
-
_el$
|
|
13591
|
+
var _el$30 = _tmpl$83();
|
|
13592
|
+
_el$30.$$click = () => {
|
|
13553
13593
|
pip().requestPipWindow(Number(window.innerWidth), Number(props.localStore.height ?? 500));
|
|
13554
13594
|
};
|
|
13555
|
-
insert(_el$
|
|
13556
|
-
createRenderEffect(() => className(_el$
|
|
13557
|
-
return _el$
|
|
13595
|
+
insert(_el$30, createComponent(PiPIcon, {}));
|
|
13596
|
+
createRenderEffect(() => className(_el$30, clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-open-pip")));
|
|
13597
|
+
return _el$30;
|
|
13558
13598
|
}
|
|
13559
13599
|
}), null);
|
|
13560
|
-
insert(_el$
|
|
13600
|
+
insert(_el$27, createComponent(dropdown_menu_exports.Root, {
|
|
13561
13601
|
gutter: 4,
|
|
13562
13602
|
get children() {
|
|
13563
13603
|
return [createComponent(dropdown_menu_exports.Trigger, {
|
|
@@ -13579,81 +13619,88 @@ var init_Devtools = __esm({
|
|
|
13579
13619
|
},
|
|
13580
13620
|
get children() {
|
|
13581
13621
|
return [(() => {
|
|
13582
|
-
var _el$
|
|
13583
|
-
createRenderEffect(() => className(_el$
|
|
13584
|
-
return _el$
|
|
13585
|
-
})(), createComponent(
|
|
13586
|
-
|
|
13587
|
-
|
|
13588
|
-
|
|
13622
|
+
var _el$31 = _tmpl$93();
|
|
13623
|
+
createRenderEffect(() => className(_el$31, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
|
|
13624
|
+
return _el$31;
|
|
13625
|
+
})(), createComponent(Show, {
|
|
13626
|
+
get when() {
|
|
13627
|
+
return !props.showPanelViewOnly;
|
|
13628
|
+
},
|
|
13589
13629
|
get children() {
|
|
13590
|
-
return
|
|
13591
|
-
|
|
13592
|
-
|
|
13593
|
-
|
|
13594
|
-
get children() {
|
|
13595
|
-
return [_tmpl$103(), createComponent(ChevronDown, {})];
|
|
13596
|
-
}
|
|
13597
|
-
}), createComponent(dropdown_menu_exports.Portal, {
|
|
13598
|
-
ref: (el) => setComputedVariables(el),
|
|
13599
|
-
get mount() {
|
|
13600
|
-
return createMemo(() => !!pip().pipWindow)() ? pip().pipWindow.document.body : document.body;
|
|
13601
|
-
},
|
|
13630
|
+
return createComponent(dropdown_menu_exports.Sub, {
|
|
13631
|
+
overlap: true,
|
|
13632
|
+
gutter: 8,
|
|
13633
|
+
shift: -4,
|
|
13602
13634
|
get children() {
|
|
13603
|
-
return createComponent(dropdown_menu_exports.
|
|
13635
|
+
return [createComponent(dropdown_menu_exports.SubTrigger, {
|
|
13604
13636
|
get ["class"]() {
|
|
13605
|
-
return clsx(styles().
|
|
13637
|
+
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
13606
13638
|
},
|
|
13607
|
-
get children() {
|
|
13608
|
-
return [createComponent(
|
|
13609
|
-
|
|
13610
|
-
|
|
13611
|
-
|
|
13612
|
-
|
|
13613
|
-
|
|
13614
|
-
|
|
13615
|
-
|
|
13616
|
-
|
|
13617
|
-
return [_tmpl$113(), createComponent(ArrowUp, {})];
|
|
13618
|
-
}
|
|
13619
|
-
}), createComponent(dropdown_menu_exports.Item, {
|
|
13620
|
-
onSelect: () => {
|
|
13621
|
-
setDevtoolsPosition("bottom");
|
|
13622
|
-
},
|
|
13623
|
-
as: "button",
|
|
13624
|
-
get ["class"]() {
|
|
13625
|
-
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
13626
|
-
},
|
|
13627
|
-
get children() {
|
|
13628
|
-
return [_tmpl$122(), createComponent(ArrowDown, {})];
|
|
13629
|
-
}
|
|
13630
|
-
}), createComponent(dropdown_menu_exports.Item, {
|
|
13631
|
-
onSelect: () => {
|
|
13632
|
-
setDevtoolsPosition("left");
|
|
13633
|
-
},
|
|
13634
|
-
as: "button",
|
|
13635
|
-
get ["class"]() {
|
|
13636
|
-
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
13637
|
-
},
|
|
13638
|
-
get children() {
|
|
13639
|
-
return [_tmpl$132(), createComponent(ArrowLeft, {})];
|
|
13640
|
-
}
|
|
13641
|
-
}), createComponent(dropdown_menu_exports.Item, {
|
|
13642
|
-
onSelect: () => {
|
|
13643
|
-
setDevtoolsPosition("right");
|
|
13644
|
-
},
|
|
13645
|
-
as: "button",
|
|
13639
|
+
get children() {
|
|
13640
|
+
return [_tmpl$103(), createComponent(ChevronDown, {})];
|
|
13641
|
+
}
|
|
13642
|
+
}), createComponent(dropdown_menu_exports.Portal, {
|
|
13643
|
+
ref: (el) => setComputedVariables(el),
|
|
13644
|
+
get mount() {
|
|
13645
|
+
return createMemo(() => !!pip().pipWindow)() ? pip().pipWindow.document.body : document.body;
|
|
13646
|
+
},
|
|
13647
|
+
get children() {
|
|
13648
|
+
return createComponent(dropdown_menu_exports.SubContent, {
|
|
13646
13649
|
get ["class"]() {
|
|
13647
|
-
return clsx(styles().
|
|
13650
|
+
return clsx(styles().settingsMenu, "tsqd-settings-submenu");
|
|
13648
13651
|
},
|
|
13649
13652
|
get children() {
|
|
13650
|
-
return [
|
|
13653
|
+
return [createComponent(dropdown_menu_exports.Item, {
|
|
13654
|
+
onSelect: () => {
|
|
13655
|
+
setDevtoolsPosition("top");
|
|
13656
|
+
},
|
|
13657
|
+
as: "button",
|
|
13658
|
+
get ["class"]() {
|
|
13659
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
13660
|
+
},
|
|
13661
|
+
get children() {
|
|
13662
|
+
return [_tmpl$113(), createComponent(ArrowUp, {})];
|
|
13663
|
+
}
|
|
13664
|
+
}), createComponent(dropdown_menu_exports.Item, {
|
|
13665
|
+
onSelect: () => {
|
|
13666
|
+
setDevtoolsPosition("bottom");
|
|
13667
|
+
},
|
|
13668
|
+
as: "button",
|
|
13669
|
+
get ["class"]() {
|
|
13670
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
13671
|
+
},
|
|
13672
|
+
get children() {
|
|
13673
|
+
return [_tmpl$122(), createComponent(ArrowDown, {})];
|
|
13674
|
+
}
|
|
13675
|
+
}), createComponent(dropdown_menu_exports.Item, {
|
|
13676
|
+
onSelect: () => {
|
|
13677
|
+
setDevtoolsPosition("left");
|
|
13678
|
+
},
|
|
13679
|
+
as: "button",
|
|
13680
|
+
get ["class"]() {
|
|
13681
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
13682
|
+
},
|
|
13683
|
+
get children() {
|
|
13684
|
+
return [_tmpl$132(), createComponent(ArrowLeft, {})];
|
|
13685
|
+
}
|
|
13686
|
+
}), createComponent(dropdown_menu_exports.Item, {
|
|
13687
|
+
onSelect: () => {
|
|
13688
|
+
setDevtoolsPosition("right");
|
|
13689
|
+
},
|
|
13690
|
+
as: "button",
|
|
13691
|
+
get ["class"]() {
|
|
13692
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
|
|
13693
|
+
},
|
|
13694
|
+
get children() {
|
|
13695
|
+
return [_tmpl$142(), createComponent(ArrowRight, {})];
|
|
13696
|
+
}
|
|
13697
|
+
})];
|
|
13651
13698
|
}
|
|
13652
|
-
})
|
|
13699
|
+
});
|
|
13653
13700
|
}
|
|
13654
|
-
});
|
|
13701
|
+
})];
|
|
13655
13702
|
}
|
|
13656
|
-
})
|
|
13703
|
+
});
|
|
13657
13704
|
}
|
|
13658
13705
|
}), createComponent(dropdown_menu_exports.Sub, {
|
|
13659
13706
|
overlap: true,
|
|
@@ -13724,13 +13771,13 @@ var init_Devtools = __esm({
|
|
|
13724
13771
|
})];
|
|
13725
13772
|
}
|
|
13726
13773
|
}), null);
|
|
13727
|
-
insert(_el$
|
|
13774
|
+
insert(_el$10, createComponent(Show, {
|
|
13728
13775
|
get when() {
|
|
13729
13776
|
return selectedView() === "queries";
|
|
13730
13777
|
},
|
|
13731
13778
|
get children() {
|
|
13732
|
-
var _el$
|
|
13733
|
-
insert(_el$
|
|
13779
|
+
var _el$41 = _tmpl$192(), _el$42 = _el$41.firstChild;
|
|
13780
|
+
insert(_el$42, createComponent(Key, {
|
|
13734
13781
|
by: (q) => q.queryHash,
|
|
13735
13782
|
get each() {
|
|
13736
13783
|
return queries();
|
|
@@ -13741,17 +13788,17 @@ var init_Devtools = __esm({
|
|
|
13741
13788
|
}
|
|
13742
13789
|
})
|
|
13743
13790
|
}));
|
|
13744
|
-
createRenderEffect(() => className(_el$
|
|
13745
|
-
return _el$
|
|
13791
|
+
createRenderEffect(() => className(_el$41, clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container")));
|
|
13792
|
+
return _el$41;
|
|
13746
13793
|
}
|
|
13747
13794
|
}), null);
|
|
13748
|
-
insert(_el$
|
|
13795
|
+
insert(_el$10, createComponent(Show, {
|
|
13749
13796
|
get when() {
|
|
13750
13797
|
return selectedView() === "mutations";
|
|
13751
13798
|
},
|
|
13752
13799
|
get children() {
|
|
13753
|
-
var _el$
|
|
13754
|
-
insert(_el$
|
|
13800
|
+
var _el$43 = _tmpl$202(), _el$44 = _el$43.firstChild;
|
|
13801
|
+
insert(_el$44, createComponent(Key, {
|
|
13755
13802
|
by: (m) => m.mutationId,
|
|
13756
13803
|
get each() {
|
|
13757
13804
|
return mutations();
|
|
@@ -13762,8 +13809,8 @@ var init_Devtools = __esm({
|
|
|
13762
13809
|
}
|
|
13763
13810
|
})
|
|
13764
13811
|
}));
|
|
13765
|
-
createRenderEffect(() => className(_el$
|
|
13766
|
-
return _el$
|
|
13812
|
+
createRenderEffect(() => className(_el$43, clsx(styles().overflowQueryContainer, "tsqd-mutations-overflow-container")));
|
|
13813
|
+
return _el$43;
|
|
13767
13814
|
}
|
|
13768
13815
|
}), null);
|
|
13769
13816
|
createRenderEffect((_p$) => {
|
|
@@ -13774,26 +13821,26 @@ var init_Devtools = __esm({
|
|
|
13774
13821
|
height: 100%;
|
|
13775
13822
|
max-height: 100%;
|
|
13776
13823
|
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = styles().logoAndToggleContainer, _v$9 = clsx(styles().logo, "tsqd-text-logo-container"), _v$10 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$11 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$12 = clsx(styles().row, "tsqd-filters-actions-container"), _v$13 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$14 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$15 = clsx("tsqd-query-filter-textfield"), _v$16 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$17 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$18 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$19 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$20 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$21 = `Clear ${selectedView()} cache`, _v$22 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$23 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$24 = offline(), _v$25 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
|
|
13777
|
-
_v$6 !== _p$.e && className(_el$
|
|
13778
|
-
_v$7 !== _p$.t && className(_el$
|
|
13779
|
-
_v$8 !== _p$.a && className(_el$
|
|
13780
|
-
_v$9 !== _p$.o && className(_el$
|
|
13781
|
-
_v$10 !== _p$.i && className(_el$
|
|
13782
|
-
_v$11 !== _p$.n && className(_el$
|
|
13783
|
-
_v$12 !== _p$.s && className(_el$
|
|
13784
|
-
_v$13 !== _p$.h && className(_el$
|
|
13785
|
-
_v$14 !== _p$.r && className(_el$
|
|
13786
|
-
_v$15 !== _p$.d && className(_el$
|
|
13787
|
-
_v$16 !== _p$.l && className(_el$
|
|
13788
|
-
_v$17 !== _p$.u && setAttribute(_el$
|
|
13789
|
-
_v$18 !== _p$.c && setAttribute(_el$
|
|
13790
|
-
_v$19 !== _p$.w && className(_el$
|
|
13791
|
-
_v$20 !== _p$.m && className(_el$
|
|
13792
|
-
_v$21 !== _p$.f && setAttribute(_el$
|
|
13793
|
-
_v$22 !== _p$.y && className(_el$
|
|
13794
|
-
_v$23 !== _p$.g && setAttribute(_el$
|
|
13795
|
-
_v$24 !== _p$.p && setAttribute(_el$
|
|
13796
|
-
_v$25 !== _p$.b && setAttribute(_el$
|
|
13824
|
+
_v$6 !== _p$.e && className(_el$10, _p$.e = _v$6);
|
|
13825
|
+
_v$7 !== _p$.t && className(_el$11, _p$.t = _v$7);
|
|
13826
|
+
_v$8 !== _p$.a && className(_el$12, _p$.a = _v$8);
|
|
13827
|
+
_v$9 !== _p$.o && className(_el$13, _p$.o = _v$9);
|
|
13828
|
+
_v$10 !== _p$.i && className(_el$14, _p$.i = _v$10);
|
|
13829
|
+
_v$11 !== _p$.n && className(_el$15, _p$.n = _v$11);
|
|
13830
|
+
_v$12 !== _p$.s && className(_el$17, _p$.s = _v$12);
|
|
13831
|
+
_v$13 !== _p$.h && className(_el$18, _p$.h = _v$13);
|
|
13832
|
+
_v$14 !== _p$.r && className(_el$19, _p$.r = _v$14);
|
|
13833
|
+
_v$15 !== _p$.d && className(_el$20, _p$.d = _v$15);
|
|
13834
|
+
_v$16 !== _p$.l && className(_el$21, _p$.l = _v$16);
|
|
13835
|
+
_v$17 !== _p$.u && setAttribute(_el$24, "aria-label", _p$.u = _v$17);
|
|
13836
|
+
_v$18 !== _p$.c && setAttribute(_el$24, "aria-pressed", _p$.c = _v$18);
|
|
13837
|
+
_v$19 !== _p$.w && className(_el$27, _p$.w = _v$19);
|
|
13838
|
+
_v$20 !== _p$.m && className(_el$28, _p$.m = _v$20);
|
|
13839
|
+
_v$21 !== _p$.f && setAttribute(_el$28, "title", _p$.f = _v$21);
|
|
13840
|
+
_v$22 !== _p$.y && className(_el$29, _p$.y = _v$22);
|
|
13841
|
+
_v$23 !== _p$.g && setAttribute(_el$29, "aria-label", _p$.g = _v$23);
|
|
13842
|
+
_v$24 !== _p$.p && setAttribute(_el$29, "aria-pressed", _p$.p = _v$24);
|
|
13843
|
+
_v$25 !== _p$.b && setAttribute(_el$29, "title", _p$.b = _v$25);
|
|
13797
13844
|
return _p$;
|
|
13798
13845
|
}, {
|
|
13799
13846
|
e: void 0,
|
|
@@ -13817,8 +13864,8 @@ var init_Devtools = __esm({
|
|
|
13817
13864
|
p: void 0,
|
|
13818
13865
|
b: void 0
|
|
13819
13866
|
});
|
|
13820
|
-
createRenderEffect(() => _el$
|
|
13821
|
-
return _el$
|
|
13867
|
+
createRenderEffect(() => _el$20.value = selectedView() === "queries" ? props.localStore.filter || "" : props.localStore.mutationFilter || "");
|
|
13868
|
+
return _el$10;
|
|
13822
13869
|
})(), createComponent(Show, {
|
|
13823
13870
|
get when() {
|
|
13824
13871
|
return createMemo(() => selectedView() === "queries")() && selectedQueryHash();
|
|
@@ -13882,11 +13929,11 @@ var init_Devtools = __esm({
|
|
|
13882
13929
|
return queryState();
|
|
13883
13930
|
},
|
|
13884
13931
|
get children() {
|
|
13885
|
-
var _el$
|
|
13886
|
-
_el$
|
|
13887
|
-
insert(_el$
|
|
13888
|
-
insert(_el$
|
|
13889
|
-
insert(_el$
|
|
13932
|
+
var _el$49 = _tmpl$242(), _el$50 = _el$49.firstChild, _el$51 = _el$50.nextSibling;
|
|
13933
|
+
_el$49.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
|
|
13934
|
+
insert(_el$50, observers);
|
|
13935
|
+
insert(_el$51, () => props.query.queryHash);
|
|
13936
|
+
insert(_el$49, createComponent(Show, {
|
|
13890
13937
|
get when() {
|
|
13891
13938
|
return isDisabled();
|
|
13892
13939
|
},
|
|
@@ -13896,16 +13943,16 @@ var init_Devtools = __esm({
|
|
|
13896
13943
|
}), null);
|
|
13897
13944
|
createRenderEffect((_p$) => {
|
|
13898
13945
|
var _v$26 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$27 = `Query key ${props.query.queryHash}`, _v$28 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
|
|
13899
|
-
_v$26 !== _p$.e && className(_el$
|
|
13900
|
-
_v$27 !== _p$.t && setAttribute(_el$
|
|
13901
|
-
_v$28 !== _p$.a && className(_el$
|
|
13946
|
+
_v$26 !== _p$.e && className(_el$49, _p$.e = _v$26);
|
|
13947
|
+
_v$27 !== _p$.t && setAttribute(_el$49, "aria-label", _p$.t = _v$27);
|
|
13948
|
+
_v$28 !== _p$.a && className(_el$50, _p$.a = _v$28);
|
|
13902
13949
|
return _p$;
|
|
13903
13950
|
}, {
|
|
13904
13951
|
e: void 0,
|
|
13905
13952
|
t: void 0,
|
|
13906
13953
|
a: void 0
|
|
13907
13954
|
});
|
|
13908
|
-
return _el$
|
|
13955
|
+
return _el$49;
|
|
13909
13956
|
}
|
|
13910
13957
|
});
|
|
13911
13958
|
};
|
|
@@ -13962,11 +14009,11 @@ var init_Devtools = __esm({
|
|
|
13962
14009
|
return mutationState();
|
|
13963
14010
|
},
|
|
13964
14011
|
get children() {
|
|
13965
|
-
var _el$
|
|
13966
|
-
_el$
|
|
14012
|
+
var _el$53 = _tmpl$242(), _el$54 = _el$53.firstChild, _el$55 = _el$54.nextSibling;
|
|
14013
|
+
_el$53.$$click = () => {
|
|
13967
14014
|
setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
|
|
13968
14015
|
};
|
|
13969
|
-
insert(_el$
|
|
14016
|
+
insert(_el$54, createComponent(Show, {
|
|
13970
14017
|
get when() {
|
|
13971
14018
|
return color() === "purple";
|
|
13972
14019
|
},
|
|
@@ -13974,7 +14021,7 @@ var init_Devtools = __esm({
|
|
|
13974
14021
|
return createComponent(PauseCircle, {});
|
|
13975
14022
|
}
|
|
13976
14023
|
}), null);
|
|
13977
|
-
insert(_el$
|
|
14024
|
+
insert(_el$54, createComponent(Show, {
|
|
13978
14025
|
get when() {
|
|
13979
14026
|
return color() === "green";
|
|
13980
14027
|
},
|
|
@@ -13982,7 +14029,7 @@ var init_Devtools = __esm({
|
|
|
13982
14029
|
return createComponent(CheckCircle, {});
|
|
13983
14030
|
}
|
|
13984
14031
|
}), null);
|
|
13985
|
-
insert(_el$
|
|
14032
|
+
insert(_el$54, createComponent(Show, {
|
|
13986
14033
|
get when() {
|
|
13987
14034
|
return color() === "red";
|
|
13988
14035
|
},
|
|
@@ -13990,7 +14037,7 @@ var init_Devtools = __esm({
|
|
|
13990
14037
|
return createComponent(XCircle, {});
|
|
13991
14038
|
}
|
|
13992
14039
|
}), null);
|
|
13993
|
-
insert(_el$
|
|
14040
|
+
insert(_el$54, createComponent(Show, {
|
|
13994
14041
|
get when() {
|
|
13995
14042
|
return color() === "yellow";
|
|
13996
14043
|
},
|
|
@@ -13998,7 +14045,7 @@ var init_Devtools = __esm({
|
|
|
13998
14045
|
return createComponent(LoadingCircle, {});
|
|
13999
14046
|
}
|
|
14000
14047
|
}), null);
|
|
14001
|
-
insert(_el$
|
|
14048
|
+
insert(_el$55, createComponent(Show, {
|
|
14002
14049
|
get when() {
|
|
14003
14050
|
return props.mutation.options.mutationKey;
|
|
14004
14051
|
},
|
|
@@ -14006,19 +14053,19 @@ var init_Devtools = __esm({
|
|
|
14006
14053
|
return [createMemo(() => JSON.stringify(props.mutation.options.mutationKey)), " -", " "];
|
|
14007
14054
|
}
|
|
14008
14055
|
}), null);
|
|
14009
|
-
insert(_el$
|
|
14056
|
+
insert(_el$55, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
|
|
14010
14057
|
createRenderEffect((_p$) => {
|
|
14011
14058
|
var _v$29 = clsx(styles().queryRow, selectedMutationId() === props.mutation.mutationId && styles().selectedQueryRow, "tsqd-query-row"), _v$30 = `Mutation submitted at ${new Date(props.mutation.state.submittedAt).toLocaleString()}`, _v$31 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
|
|
14012
|
-
_v$29 !== _p$.e && className(_el$
|
|
14013
|
-
_v$30 !== _p$.t && setAttribute(_el$
|
|
14014
|
-
_v$31 !== _p$.a && className(_el$
|
|
14059
|
+
_v$29 !== _p$.e && className(_el$53, _p$.e = _v$29);
|
|
14060
|
+
_v$30 !== _p$.t && setAttribute(_el$53, "aria-label", _p$.t = _v$30);
|
|
14061
|
+
_v$31 !== _p$.a && className(_el$54, _p$.a = _v$31);
|
|
14015
14062
|
return _p$;
|
|
14016
14063
|
}, {
|
|
14017
14064
|
e: void 0,
|
|
14018
14065
|
t: void 0,
|
|
14019
14066
|
a: void 0
|
|
14020
14067
|
});
|
|
14021
|
-
return _el$
|
|
14068
|
+
return _el$53;
|
|
14022
14069
|
}
|
|
14023
14070
|
});
|
|
14024
14071
|
};
|
|
@@ -14036,44 +14083,44 @@ var init_Devtools = __esm({
|
|
|
14036
14083
|
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
14037
14084
|
});
|
|
14038
14085
|
return (() => {
|
|
14039
|
-
var _el$
|
|
14040
|
-
insert(_el$
|
|
14086
|
+
var _el$56 = _tmpl$26();
|
|
14087
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
14041
14088
|
label: "Fresh",
|
|
14042
14089
|
color: "green",
|
|
14043
14090
|
get count() {
|
|
14044
14091
|
return fresh();
|
|
14045
14092
|
}
|
|
14046
14093
|
}), null);
|
|
14047
|
-
insert(_el$
|
|
14094
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
14048
14095
|
label: "Fetching",
|
|
14049
14096
|
color: "blue",
|
|
14050
14097
|
get count() {
|
|
14051
14098
|
return fetching();
|
|
14052
14099
|
}
|
|
14053
14100
|
}), null);
|
|
14054
|
-
insert(_el$
|
|
14101
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
14055
14102
|
label: "Paused",
|
|
14056
14103
|
color: "purple",
|
|
14057
14104
|
get count() {
|
|
14058
14105
|
return paused();
|
|
14059
14106
|
}
|
|
14060
14107
|
}), null);
|
|
14061
|
-
insert(_el$
|
|
14108
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
14062
14109
|
label: "Stale",
|
|
14063
14110
|
color: "yellow",
|
|
14064
14111
|
get count() {
|
|
14065
14112
|
return stale();
|
|
14066
14113
|
}
|
|
14067
14114
|
}), null);
|
|
14068
|
-
insert(_el$
|
|
14115
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
14069
14116
|
label: "Inactive",
|
|
14070
14117
|
color: "gray",
|
|
14071
14118
|
get count() {
|
|
14072
14119
|
return inactive();
|
|
14073
14120
|
}
|
|
14074
14121
|
}), null);
|
|
14075
|
-
createRenderEffect(() => className(_el$
|
|
14076
|
-
return _el$
|
|
14122
|
+
createRenderEffect(() => className(_el$56, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
14123
|
+
return _el$56;
|
|
14077
14124
|
})();
|
|
14078
14125
|
};
|
|
14079
14126
|
MutationStatusCount = () => {
|
|
@@ -14101,37 +14148,37 @@ var init_Devtools = __esm({
|
|
|
14101
14148
|
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
14102
14149
|
});
|
|
14103
14150
|
return (() => {
|
|
14104
|
-
var _el$
|
|
14105
|
-
insert(_el$
|
|
14151
|
+
var _el$57 = _tmpl$26();
|
|
14152
|
+
insert(_el$57, createComponent(QueryStatus, {
|
|
14106
14153
|
label: "Paused",
|
|
14107
14154
|
color: "purple",
|
|
14108
14155
|
get count() {
|
|
14109
14156
|
return paused();
|
|
14110
14157
|
}
|
|
14111
14158
|
}), null);
|
|
14112
|
-
insert(_el$
|
|
14159
|
+
insert(_el$57, createComponent(QueryStatus, {
|
|
14113
14160
|
label: "Pending",
|
|
14114
14161
|
color: "yellow",
|
|
14115
14162
|
get count() {
|
|
14116
14163
|
return pending();
|
|
14117
14164
|
}
|
|
14118
14165
|
}), null);
|
|
14119
|
-
insert(_el$
|
|
14166
|
+
insert(_el$57, createComponent(QueryStatus, {
|
|
14120
14167
|
label: "Success",
|
|
14121
14168
|
color: "green",
|
|
14122
14169
|
get count() {
|
|
14123
14170
|
return success();
|
|
14124
14171
|
}
|
|
14125
14172
|
}), null);
|
|
14126
|
-
insert(_el$
|
|
14173
|
+
insert(_el$57, createComponent(QueryStatus, {
|
|
14127
14174
|
label: "Error",
|
|
14128
14175
|
color: "red",
|
|
14129
14176
|
get count() {
|
|
14130
14177
|
return error();
|
|
14131
14178
|
}
|
|
14132
14179
|
}), null);
|
|
14133
|
-
createRenderEffect(() => className(_el$
|
|
14134
|
-
return _el$
|
|
14180
|
+
createRenderEffect(() => className(_el$57, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
14181
|
+
return _el$57;
|
|
14135
14182
|
})();
|
|
14136
14183
|
};
|
|
14137
14184
|
QueryStatus = (props) => {
|
|
@@ -14156,23 +14203,23 @@ var init_Devtools = __esm({
|
|
|
14156
14203
|
return false;
|
|
14157
14204
|
}
|
|
14158
14205
|
}
|
|
14159
|
-
if (panelWidth() <
|
|
14206
|
+
if (panelWidth() < secondBreakpoint) {
|
|
14160
14207
|
return false;
|
|
14161
14208
|
}
|
|
14162
14209
|
return true;
|
|
14163
14210
|
});
|
|
14164
14211
|
return (() => {
|
|
14165
|
-
var _el$
|
|
14166
|
-
var _ref$
|
|
14167
|
-
typeof _ref$
|
|
14168
|
-
_el$
|
|
14212
|
+
var _el$58 = _tmpl$27(), _el$60 = _el$58.firstChild, _el$62 = _el$60.nextSibling;
|
|
14213
|
+
var _ref$5 = tagRef;
|
|
14214
|
+
typeof _ref$5 === "function" ? use(_ref$5, _el$58) : tagRef = _el$58;
|
|
14215
|
+
_el$58.addEventListener("mouseleave", () => {
|
|
14169
14216
|
setMouseOver(false);
|
|
14170
14217
|
setFocused(false);
|
|
14171
14218
|
});
|
|
14172
|
-
_el$
|
|
14173
|
-
_el$
|
|
14174
|
-
_el$
|
|
14175
|
-
spread(_el$
|
|
14219
|
+
_el$58.addEventListener("mouseenter", () => setMouseOver(true));
|
|
14220
|
+
_el$58.addEventListener("blur", () => setFocused(false));
|
|
14221
|
+
_el$58.addEventListener("focus", () => setFocused(true));
|
|
14222
|
+
spread(_el$58, mergeProps({
|
|
14176
14223
|
get disabled() {
|
|
14177
14224
|
return showLabel();
|
|
14178
14225
|
},
|
|
@@ -14187,29 +14234,29 @@ var init_Devtools = __esm({
|
|
|
14187
14234
|
}, () => mouseOver() || focused() ? {
|
|
14188
14235
|
"aria-describedby": "tsqd-status-tooltip"
|
|
14189
14236
|
} : {}), false, true);
|
|
14190
|
-
insert(_el$
|
|
14237
|
+
insert(_el$58, createComponent(Show, {
|
|
14191
14238
|
get when() {
|
|
14192
14239
|
return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
|
|
14193
14240
|
},
|
|
14194
14241
|
get children() {
|
|
14195
|
-
var _el$
|
|
14196
|
-
insert(_el$
|
|
14197
|
-
createRenderEffect(() => className(_el$
|
|
14198
|
-
return _el$
|
|
14242
|
+
var _el$59 = _tmpl$252();
|
|
14243
|
+
insert(_el$59, () => props.label);
|
|
14244
|
+
createRenderEffect(() => className(_el$59, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
|
|
14245
|
+
return _el$59;
|
|
14199
14246
|
}
|
|
14200
|
-
}), _el$
|
|
14201
|
-
insert(_el$
|
|
14247
|
+
}), _el$60);
|
|
14248
|
+
insert(_el$58, createComponent(Show, {
|
|
14202
14249
|
get when() {
|
|
14203
14250
|
return showLabel();
|
|
14204
14251
|
},
|
|
14205
14252
|
get children() {
|
|
14206
|
-
var _el$
|
|
14207
|
-
insert(_el$
|
|
14208
|
-
createRenderEffect(() => className(_el$
|
|
14209
|
-
return _el$
|
|
14253
|
+
var _el$61 = _tmpl$262();
|
|
14254
|
+
insert(_el$61, () => props.label);
|
|
14255
|
+
createRenderEffect(() => className(_el$61, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
|
|
14256
|
+
return _el$61;
|
|
14210
14257
|
}
|
|
14211
|
-
}), _el$
|
|
14212
|
-
insert(_el$
|
|
14258
|
+
}), _el$62);
|
|
14259
|
+
insert(_el$62, () => props.count);
|
|
14213
14260
|
createRenderEffect((_p$) => {
|
|
14214
14261
|
var _v$32 = clsx(css`
|
|
14215
14262
|
width: ${tokens.size[1.5]};
|
|
@@ -14220,14 +14267,14 @@ var init_Devtools = __esm({
|
|
|
14220
14267
|
background-color: ${t2(colors[props.color][100], colors[props.color][900])};
|
|
14221
14268
|
color: ${t2(colors[props.color][700], colors[props.color][300])};
|
|
14222
14269
|
`, "tsqd-query-status-tag-count");
|
|
14223
|
-
_v$32 !== _p$.e && className(_el$
|
|
14224
|
-
_v$33 !== _p$.t && className(_el$
|
|
14270
|
+
_v$32 !== _p$.e && className(_el$60, _p$.e = _v$32);
|
|
14271
|
+
_v$33 !== _p$.t && className(_el$62, _p$.t = _v$33);
|
|
14225
14272
|
return _p$;
|
|
14226
14273
|
}, {
|
|
14227
14274
|
e: void 0,
|
|
14228
14275
|
t: void 0
|
|
14229
14276
|
});
|
|
14230
|
-
return _el$
|
|
14277
|
+
return _el$58;
|
|
14231
14278
|
})();
|
|
14232
14279
|
};
|
|
14233
14280
|
QueryDetails = () => {
|
|
@@ -14324,19 +14371,19 @@ var init_Devtools = __esm({
|
|
|
14324
14371
|
return createMemo(() => !!activeQuery())() && activeQueryState();
|
|
14325
14372
|
},
|
|
14326
14373
|
get children() {
|
|
14327
|
-
var _el$
|
|
14328
|
-
insert(_el$
|
|
14329
|
-
insert(_el$
|
|
14330
|
-
insert(_el$
|
|
14331
|
-
insert(_el$
|
|
14332
|
-
_el$
|
|
14333
|
-
_el$
|
|
14334
|
-
_el$
|
|
14335
|
-
_el$
|
|
14374
|
+
var _el$63 = _tmpl$30(), _el$64 = _el$63.firstChild, _el$65 = _el$64.nextSibling, _el$66 = _el$65.firstChild, _el$67 = _el$66.firstChild, _el$68 = _el$67.firstChild, _el$69 = _el$67.nextSibling, _el$70 = _el$66.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$71.nextSibling, _el$73 = _el$70.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$76 = _el$65.nextSibling, _el$77 = _el$76.nextSibling, _el$78 = _el$77.firstChild, _el$79 = _el$78.firstChild, _el$80 = _el$78.nextSibling, _el$81 = _el$80.firstChild, _el$82 = _el$80.nextSibling, _el$83 = _el$82.firstChild, _el$84 = _el$82.nextSibling, _el$85 = _el$84.firstChild, _el$86 = _el$84.nextSibling, _el$87 = _el$86.firstChild, _el$88 = _el$87.nextSibling, _el$97 = _el$77.nextSibling, _el$98 = _el$97.nextSibling, _el$99 = _el$98.nextSibling, _el$100 = _el$99.nextSibling;
|
|
14375
|
+
insert(_el$68, () => displayValue(activeQuery().queryKey, true));
|
|
14376
|
+
insert(_el$69, statusLabel);
|
|
14377
|
+
insert(_el$72, observerCount);
|
|
14378
|
+
insert(_el$75, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
|
|
14379
|
+
_el$78.$$click = handleRefetch;
|
|
14380
|
+
_el$80.$$click = () => queryClient.invalidateQueries(activeQuery());
|
|
14381
|
+
_el$82.$$click = () => queryClient.resetQueries(activeQuery());
|
|
14382
|
+
_el$84.$$click = () => {
|
|
14336
14383
|
queryClient.removeQueries(activeQuery());
|
|
14337
14384
|
setSelectedQueryHash(null);
|
|
14338
14385
|
};
|
|
14339
|
-
_el$
|
|
14386
|
+
_el$86.$$click = () => {
|
|
14340
14387
|
if (activeQuery()?.state.data === void 0) {
|
|
14341
14388
|
setRestoringLoading(true);
|
|
14342
14389
|
restoreQueryAfterLoadingOrError();
|
|
@@ -14363,78 +14410,78 @@ var init_Devtools = __esm({
|
|
|
14363
14410
|
});
|
|
14364
14411
|
}
|
|
14365
14412
|
};
|
|
14366
|
-
insert(_el$
|
|
14367
|
-
insert(_el$
|
|
14413
|
+
insert(_el$86, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$88);
|
|
14414
|
+
insert(_el$77, createComponent(Show, {
|
|
14368
14415
|
get when() {
|
|
14369
14416
|
return errorTypes().length === 0 || queryStatus() === "error";
|
|
14370
14417
|
},
|
|
14371
14418
|
get children() {
|
|
14372
|
-
var _el$
|
|
14373
|
-
_el$
|
|
14419
|
+
var _el$89 = _tmpl$28(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling;
|
|
14420
|
+
_el$89.$$click = () => {
|
|
14374
14421
|
if (!activeQuery().state.error) {
|
|
14375
14422
|
triggerError();
|
|
14376
14423
|
} else {
|
|
14377
14424
|
queryClient.resetQueries(activeQuery());
|
|
14378
14425
|
}
|
|
14379
14426
|
};
|
|
14380
|
-
insert(_el$
|
|
14427
|
+
insert(_el$89, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$91);
|
|
14381
14428
|
createRenderEffect((_p$) => {
|
|
14382
14429
|
var _v$34 = clsx(css`
|
|
14383
14430
|
color: ${t2(colors.red[500], colors.red[400])};
|
|
14384
14431
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$35 = queryStatus() === "pending", _v$36 = css`
|
|
14385
14432
|
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
14386
14433
|
`;
|
|
14387
|
-
_v$34 !== _p$.e && className(_el$
|
|
14388
|
-
_v$35 !== _p$.t && (_el$
|
|
14389
|
-
_v$36 !== _p$.a && className(_el$
|
|
14434
|
+
_v$34 !== _p$.e && className(_el$89, _p$.e = _v$34);
|
|
14435
|
+
_v$35 !== _p$.t && (_el$89.disabled = _p$.t = _v$35);
|
|
14436
|
+
_v$36 !== _p$.a && className(_el$90, _p$.a = _v$36);
|
|
14390
14437
|
return _p$;
|
|
14391
14438
|
}, {
|
|
14392
14439
|
e: void 0,
|
|
14393
14440
|
t: void 0,
|
|
14394
14441
|
a: void 0
|
|
14395
14442
|
});
|
|
14396
|
-
return _el$
|
|
14443
|
+
return _el$89;
|
|
14397
14444
|
}
|
|
14398
14445
|
}), null);
|
|
14399
|
-
insert(_el$
|
|
14446
|
+
insert(_el$77, createComponent(Show, {
|
|
14400
14447
|
get when() {
|
|
14401
14448
|
return !(errorTypes().length === 0 || queryStatus() === "error");
|
|
14402
14449
|
},
|
|
14403
14450
|
get children() {
|
|
14404
|
-
var _el$
|
|
14405
|
-
_el$
|
|
14451
|
+
var _el$92 = _tmpl$29(), _el$93 = _el$92.firstChild, _el$94 = _el$93.nextSibling, _el$95 = _el$94.nextSibling; _el$95.firstChild;
|
|
14452
|
+
_el$95.addEventListener("change", (e2) => {
|
|
14406
14453
|
const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
|
|
14407
14454
|
triggerError(errorType);
|
|
14408
14455
|
});
|
|
14409
|
-
insert(_el$
|
|
14456
|
+
insert(_el$95, createComponent(For, {
|
|
14410
14457
|
get each() {
|
|
14411
14458
|
return errorTypes();
|
|
14412
14459
|
},
|
|
14413
14460
|
children: (errorType) => (() => {
|
|
14414
|
-
var _el$
|
|
14415
|
-
insert(_el$
|
|
14416
|
-
createRenderEffect(() => _el$
|
|
14417
|
-
return _el$
|
|
14461
|
+
var _el$101 = _tmpl$31();
|
|
14462
|
+
insert(_el$101, () => errorType.name);
|
|
14463
|
+
createRenderEffect(() => _el$101.value = errorType.name);
|
|
14464
|
+
return _el$101;
|
|
14418
14465
|
})()
|
|
14419
14466
|
}), null);
|
|
14420
|
-
insert(_el$
|
|
14467
|
+
insert(_el$92, createComponent(ChevronDown, {}), null);
|
|
14421
14468
|
createRenderEffect((_p$) => {
|
|
14422
14469
|
var _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 = css`
|
|
14423
14470
|
background-color: ${tokens.colors.red[400]};
|
|
14424
14471
|
`, _v$39 = queryStatus() === "pending";
|
|
14425
|
-
_v$37 !== _p$.e && className(_el$
|
|
14426
|
-
_v$38 !== _p$.t && className(_el$
|
|
14427
|
-
_v$39 !== _p$.a && (_el$
|
|
14472
|
+
_v$37 !== _p$.e && className(_el$92, _p$.e = _v$37);
|
|
14473
|
+
_v$38 !== _p$.t && className(_el$93, _p$.t = _v$38);
|
|
14474
|
+
_v$39 !== _p$.a && (_el$95.disabled = _p$.a = _v$39);
|
|
14428
14475
|
return _p$;
|
|
14429
14476
|
}, {
|
|
14430
14477
|
e: void 0,
|
|
14431
14478
|
t: void 0,
|
|
14432
14479
|
a: void 0
|
|
14433
14480
|
});
|
|
14434
|
-
return _el$
|
|
14481
|
+
return _el$92;
|
|
14435
14482
|
}
|
|
14436
14483
|
}), null);
|
|
14437
|
-
insert(_el$
|
|
14484
|
+
insert(_el$98, createComponent(Explorer, {
|
|
14438
14485
|
label: "Data",
|
|
14439
14486
|
defaultExpanded: ["Data"],
|
|
14440
14487
|
get value() {
|
|
@@ -14445,7 +14492,7 @@ var init_Devtools = __esm({
|
|
|
14445
14492
|
return activeQuery();
|
|
14446
14493
|
}
|
|
14447
14494
|
}));
|
|
14448
|
-
insert(_el$
|
|
14495
|
+
insert(_el$100, createComponent(Explorer, {
|
|
14449
14496
|
label: "Query",
|
|
14450
14497
|
defaultExpanded: ["Query", "queryKey"],
|
|
14451
14498
|
get value() {
|
|
@@ -14474,31 +14521,31 @@ var init_Devtools = __esm({
|
|
|
14474
14521
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$59 = restoringLoading(), _v$60 = css`
|
|
14475
14522
|
background-color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
14476
14523
|
`, _v$61 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$62 = tokens.size[2], _v$63 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$64 = tokens.size[2];
|
|
14477
|
-
_v$40 !== _p$.e && className(_el$
|
|
14478
|
-
_v$41 !== _p$.t && className(_el$
|
|
14479
|
-
_v$42 !== _p$.a && className(_el$
|
|
14480
|
-
_v$43 !== _p$.o && className(_el$
|
|
14481
|
-
_v$44 !== _p$.i && className(_el$
|
|
14482
|
-
_v$45 !== _p$.n && className(_el$
|
|
14483
|
-
_v$46 !== _p$.s && className(_el$
|
|
14484
|
-
_v$47 !== _p$.h && (_el$
|
|
14485
|
-
_v$48 !== _p$.r && className(_el$
|
|
14486
|
-
_v$49 !== _p$.d && className(_el$
|
|
14487
|
-
_v$50 !== _p$.l && (_el$
|
|
14488
|
-
_v$51 !== _p$.u && className(_el$
|
|
14489
|
-
_v$52 !== _p$.c && className(_el$
|
|
14490
|
-
_v$53 !== _p$.w && (_el$
|
|
14491
|
-
_v$54 !== _p$.m && className(_el$
|
|
14492
|
-
_v$55 !== _p$.f && className(_el$
|
|
14493
|
-
_v$56 !== _p$.y && (_el$
|
|
14494
|
-
_v$57 !== _p$.g && className(_el$
|
|
14495
|
-
_v$58 !== _p$.p && className(_el$
|
|
14496
|
-
_v$59 !== _p$.b && (_el$
|
|
14497
|
-
_v$60 !== _p$.T && className(_el$
|
|
14498
|
-
_v$61 !== _p$.A && className(_el$
|
|
14499
|
-
_v$62 !== _p$.O && ((_p$.O = _v$62) != null ? _el$
|
|
14500
|
-
_v$63 !== _p$.I && className(_el$
|
|
14501
|
-
_v$64 !== _p$.S && ((_p$.S = _v$64) != null ? _el$
|
|
14524
|
+
_v$40 !== _p$.e && className(_el$63, _p$.e = _v$40);
|
|
14525
|
+
_v$41 !== _p$.t && className(_el$64, _p$.t = _v$41);
|
|
14526
|
+
_v$42 !== _p$.a && className(_el$65, _p$.a = _v$42);
|
|
14527
|
+
_v$43 !== _p$.o && className(_el$69, _p$.o = _v$43);
|
|
14528
|
+
_v$44 !== _p$.i && className(_el$76, _p$.i = _v$44);
|
|
14529
|
+
_v$45 !== _p$.n && className(_el$77, _p$.n = _v$45);
|
|
14530
|
+
_v$46 !== _p$.s && className(_el$78, _p$.s = _v$46);
|
|
14531
|
+
_v$47 !== _p$.h && (_el$78.disabled = _p$.h = _v$47);
|
|
14532
|
+
_v$48 !== _p$.r && className(_el$79, _p$.r = _v$48);
|
|
14533
|
+
_v$49 !== _p$.d && className(_el$80, _p$.d = _v$49);
|
|
14534
|
+
_v$50 !== _p$.l && (_el$80.disabled = _p$.l = _v$50);
|
|
14535
|
+
_v$51 !== _p$.u && className(_el$81, _p$.u = _v$51);
|
|
14536
|
+
_v$52 !== _p$.c && className(_el$82, _p$.c = _v$52);
|
|
14537
|
+
_v$53 !== _p$.w && (_el$82.disabled = _p$.w = _v$53);
|
|
14538
|
+
_v$54 !== _p$.m && className(_el$83, _p$.m = _v$54);
|
|
14539
|
+
_v$55 !== _p$.f && className(_el$84, _p$.f = _v$55);
|
|
14540
|
+
_v$56 !== _p$.y && (_el$84.disabled = _p$.y = _v$56);
|
|
14541
|
+
_v$57 !== _p$.g && className(_el$85, _p$.g = _v$57);
|
|
14542
|
+
_v$58 !== _p$.p && className(_el$86, _p$.p = _v$58);
|
|
14543
|
+
_v$59 !== _p$.b && (_el$86.disabled = _p$.b = _v$59);
|
|
14544
|
+
_v$60 !== _p$.T && className(_el$87, _p$.T = _v$60);
|
|
14545
|
+
_v$61 !== _p$.A && className(_el$97, _p$.A = _v$61);
|
|
14546
|
+
_v$62 !== _p$.O && ((_p$.O = _v$62) != null ? _el$98.style.setProperty("padding", _v$62) : _el$98.style.removeProperty("padding"));
|
|
14547
|
+
_v$63 !== _p$.I && className(_el$99, _p$.I = _v$63);
|
|
14548
|
+
_v$64 !== _p$.S && ((_p$.S = _v$64) != null ? _el$100.style.setProperty("padding", _v$64) : _el$100.style.removeProperty("padding"));
|
|
14502
14549
|
return _p$;
|
|
14503
14550
|
}, {
|
|
14504
14551
|
e: void 0,
|
|
@@ -14527,7 +14574,7 @@ var init_Devtools = __esm({
|
|
|
14527
14574
|
I: void 0,
|
|
14528
14575
|
S: void 0
|
|
14529
14576
|
});
|
|
14530
|
-
return _el$
|
|
14577
|
+
return _el$63;
|
|
14531
14578
|
}
|
|
14532
14579
|
});
|
|
14533
14580
|
};
|
|
@@ -14581,8 +14628,8 @@ var init_Devtools = __esm({
|
|
|
14581
14628
|
return activeMutation();
|
|
14582
14629
|
},
|
|
14583
14630
|
get children() {
|
|
14584
|
-
var _el$
|
|
14585
|
-
insert(_el$
|
|
14631
|
+
var _el$102 = _tmpl$322(), _el$103 = _el$102.firstChild, _el$104 = _el$103.nextSibling, _el$105 = _el$104.firstChild, _el$106 = _el$105.firstChild, _el$107 = _el$106.firstChild, _el$108 = _el$106.nextSibling, _el$109 = _el$105.nextSibling, _el$110 = _el$109.firstChild, _el$111 = _el$110.nextSibling, _el$112 = _el$104.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling, _el$117 = _el$116.nextSibling, _el$118 = _el$117.nextSibling, _el$119 = _el$118.nextSibling;
|
|
14632
|
+
insert(_el$107, createComponent(Show, {
|
|
14586
14633
|
get when() {
|
|
14587
14634
|
return activeMutation().options.mutationKey;
|
|
14588
14635
|
},
|
|
@@ -14591,13 +14638,13 @@ var init_Devtools = __esm({
|
|
|
14591
14638
|
return displayValue(activeMutation().options.mutationKey, true);
|
|
14592
14639
|
}
|
|
14593
14640
|
}));
|
|
14594
|
-
insert(_el$
|
|
14641
|
+
insert(_el$108, createComponent(Show, {
|
|
14595
14642
|
get when() {
|
|
14596
14643
|
return color() === "purple";
|
|
14597
14644
|
},
|
|
14598
14645
|
children: "pending"
|
|
14599
14646
|
}), null);
|
|
14600
|
-
insert(_el$
|
|
14647
|
+
insert(_el$108, createComponent(Show, {
|
|
14601
14648
|
get when() {
|
|
14602
14649
|
return color() !== "purple";
|
|
14603
14650
|
},
|
|
@@ -14605,29 +14652,29 @@ var init_Devtools = __esm({
|
|
|
14605
14652
|
return status();
|
|
14606
14653
|
}
|
|
14607
14654
|
}), null);
|
|
14608
|
-
insert(_el$
|
|
14609
|
-
insert(_el$
|
|
14655
|
+
insert(_el$111, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
|
|
14656
|
+
insert(_el$113, createComponent(Explorer, {
|
|
14610
14657
|
label: "Variables",
|
|
14611
14658
|
defaultExpanded: ["Variables"],
|
|
14612
14659
|
get value() {
|
|
14613
14660
|
return activeMutation().state.variables;
|
|
14614
14661
|
}
|
|
14615
14662
|
}));
|
|
14616
|
-
insert(_el$
|
|
14663
|
+
insert(_el$115, createComponent(Explorer, {
|
|
14617
14664
|
label: "Context",
|
|
14618
14665
|
defaultExpanded: ["Context"],
|
|
14619
14666
|
get value() {
|
|
14620
14667
|
return activeMutation().state.context;
|
|
14621
14668
|
}
|
|
14622
14669
|
}));
|
|
14623
|
-
insert(_el$
|
|
14670
|
+
insert(_el$117, createComponent(Explorer, {
|
|
14624
14671
|
label: "Data",
|
|
14625
14672
|
defaultExpanded: ["Data"],
|
|
14626
14673
|
get value() {
|
|
14627
14674
|
return activeMutation().state.data;
|
|
14628
14675
|
}
|
|
14629
14676
|
}));
|
|
14630
|
-
insert(_el$
|
|
14677
|
+
insert(_el$119, createComponent(Explorer, {
|
|
14631
14678
|
label: "Mutation",
|
|
14632
14679
|
defaultExpanded: ["Mutation"],
|
|
14633
14680
|
get value() {
|
|
@@ -14636,18 +14683,18 @@ var init_Devtools = __esm({
|
|
|
14636
14683
|
}));
|
|
14637
14684
|
createRenderEffect((_p$) => {
|
|
14638
14685
|
var _v$65 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$66 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$67 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$68 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$69 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$70 = tokens.size[2], _v$71 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$72 = tokens.size[2], _v$73 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$74 = tokens.size[2], _v$75 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$76 = tokens.size[2];
|
|
14639
|
-
_v$65 !== _p$.e && className(_el$
|
|
14640
|
-
_v$66 !== _p$.t && className(_el$
|
|
14641
|
-
_v$67 !== _p$.a && className(_el$
|
|
14642
|
-
_v$68 !== _p$.o && className(_el$
|
|
14643
|
-
_v$69 !== _p$.i && className(_el$
|
|
14644
|
-
_v$70 !== _p$.n && ((_p$.n = _v$70) != null ? _el$
|
|
14645
|
-
_v$71 !== _p$.s && className(_el$
|
|
14646
|
-
_v$72 !== _p$.h && ((_p$.h = _v$72) != null ? _el$
|
|
14647
|
-
_v$73 !== _p$.r && className(_el$
|
|
14648
|
-
_v$74 !== _p$.d && ((_p$.d = _v$74) != null ? _el$
|
|
14649
|
-
_v$75 !== _p$.l && className(_el$
|
|
14650
|
-
_v$76 !== _p$.u && ((_p$.u = _v$76) != null ? _el$
|
|
14686
|
+
_v$65 !== _p$.e && className(_el$102, _p$.e = _v$65);
|
|
14687
|
+
_v$66 !== _p$.t && className(_el$103, _p$.t = _v$66);
|
|
14688
|
+
_v$67 !== _p$.a && className(_el$104, _p$.a = _v$67);
|
|
14689
|
+
_v$68 !== _p$.o && className(_el$108, _p$.o = _v$68);
|
|
14690
|
+
_v$69 !== _p$.i && className(_el$112, _p$.i = _v$69);
|
|
14691
|
+
_v$70 !== _p$.n && ((_p$.n = _v$70) != null ? _el$113.style.setProperty("padding", _v$70) : _el$113.style.removeProperty("padding"));
|
|
14692
|
+
_v$71 !== _p$.s && className(_el$114, _p$.s = _v$71);
|
|
14693
|
+
_v$72 !== _p$.h && ((_p$.h = _v$72) != null ? _el$115.style.setProperty("padding", _v$72) : _el$115.style.removeProperty("padding"));
|
|
14694
|
+
_v$73 !== _p$.r && className(_el$116, _p$.r = _v$73);
|
|
14695
|
+
_v$74 !== _p$.d && ((_p$.d = _v$74) != null ? _el$117.style.setProperty("padding", _v$74) : _el$117.style.removeProperty("padding"));
|
|
14696
|
+
_v$75 !== _p$.l && className(_el$118, _p$.l = _v$75);
|
|
14697
|
+
_v$76 !== _p$.u && ((_p$.u = _v$76) != null ? _el$119.style.setProperty("padding", _v$76) : _el$119.style.removeProperty("padding"));
|
|
14651
14698
|
return _p$;
|
|
14652
14699
|
}, {
|
|
14653
14700
|
e: void 0,
|
|
@@ -14663,7 +14710,7 @@ var init_Devtools = __esm({
|
|
|
14663
14710
|
l: void 0,
|
|
14664
14711
|
u: void 0
|
|
14665
14712
|
});
|
|
14666
|
-
return _el$
|
|
14713
|
+
return _el$102;
|
|
14667
14714
|
}
|
|
14668
14715
|
});
|
|
14669
14716
|
};
|
|
@@ -14831,6 +14878,32 @@ var init_Devtools = __esm({
|
|
|
14831
14878
|
background: ${t2(colors.gray[300], colors.darkGray[200])};
|
|
14832
14879
|
}
|
|
14833
14880
|
|
|
14881
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
14882
|
+
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
14883
|
+
}
|
|
14884
|
+
`,
|
|
14885
|
+
parentPanel: css`
|
|
14886
|
+
z-index: 9999;
|
|
14887
|
+
display: flex;
|
|
14888
|
+
height: 100%;
|
|
14889
|
+
gap: ${tokens.size[0.5]};
|
|
14890
|
+
& * {
|
|
14891
|
+
box-sizing: border-box;
|
|
14892
|
+
text-transform: none;
|
|
14893
|
+
}
|
|
14894
|
+
|
|
14895
|
+
& *::-webkit-scrollbar {
|
|
14896
|
+
width: 7px;
|
|
14897
|
+
}
|
|
14898
|
+
|
|
14899
|
+
& *::-webkit-scrollbar-track {
|
|
14900
|
+
background: transparent;
|
|
14901
|
+
}
|
|
14902
|
+
|
|
14903
|
+
& *::-webkit-scrollbar-thumb {
|
|
14904
|
+
background: ${t2(colors.gray[300], colors.darkGray[200])};
|
|
14905
|
+
}
|
|
14906
|
+
|
|
14834
14907
|
& *::-webkit-scrollbar-thumb:hover {
|
|
14835
14908
|
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
14836
14909
|
}
|
|
@@ -15681,7 +15754,118 @@ var init_Devtools = __esm({
|
|
|
15681
15754
|
}
|
|
15682
15755
|
});
|
|
15683
15756
|
|
|
15684
|
-
// src/
|
|
15757
|
+
// src/DevtoolsComponent.tsx
|
|
15758
|
+
var DevtoolsComponent_exports = {};
|
|
15759
|
+
__export(DevtoolsComponent_exports, {
|
|
15760
|
+
default: () => DevtoolsComponent_default
|
|
15761
|
+
});
|
|
15762
|
+
var DevtoolsComponent, DevtoolsComponent_default;
|
|
15763
|
+
var init_DevtoolsComponent = __esm({
|
|
15764
|
+
"src/DevtoolsComponent.tsx"() {
|
|
15765
|
+
init_web();
|
|
15766
|
+
init_dist4();
|
|
15767
|
+
init_solid();
|
|
15768
|
+
init_Devtools();
|
|
15769
|
+
init_utils();
|
|
15770
|
+
init_constants();
|
|
15771
|
+
init_contexts();
|
|
15772
|
+
DevtoolsComponent = (props) => {
|
|
15773
|
+
const [localStore, setLocalStore] = createLocalStorage({
|
|
15774
|
+
prefix: "TanstackQueryDevtools"
|
|
15775
|
+
});
|
|
15776
|
+
const colorScheme = getPreferredColorScheme();
|
|
15777
|
+
const theme = createMemo(() => {
|
|
15778
|
+
const preference = localStore.theme_preference || THEME_PREFERENCE;
|
|
15779
|
+
if (preference !== "system")
|
|
15780
|
+
return preference;
|
|
15781
|
+
return colorScheme();
|
|
15782
|
+
});
|
|
15783
|
+
return createComponent(QueryDevtoolsContext.Provider, {
|
|
15784
|
+
value: props,
|
|
15785
|
+
get children() {
|
|
15786
|
+
return createComponent(PiPProvider, {
|
|
15787
|
+
localStore,
|
|
15788
|
+
setLocalStore,
|
|
15789
|
+
get children() {
|
|
15790
|
+
return createComponent(ThemeContext.Provider, {
|
|
15791
|
+
value: theme,
|
|
15792
|
+
get children() {
|
|
15793
|
+
return createComponent(Devtools, {
|
|
15794
|
+
localStore,
|
|
15795
|
+
setLocalStore
|
|
15796
|
+
});
|
|
15797
|
+
}
|
|
15798
|
+
});
|
|
15799
|
+
}
|
|
15800
|
+
});
|
|
15801
|
+
}
|
|
15802
|
+
});
|
|
15803
|
+
};
|
|
15804
|
+
DevtoolsComponent_default = DevtoolsComponent;
|
|
15805
|
+
}
|
|
15806
|
+
});
|
|
15807
|
+
|
|
15808
|
+
// src/DevtoolsPanelComponent.tsx
|
|
15809
|
+
var DevtoolsPanelComponent_exports = {};
|
|
15810
|
+
__export(DevtoolsPanelComponent_exports, {
|
|
15811
|
+
default: () => DevtoolsPanelComponent_default
|
|
15812
|
+
});
|
|
15813
|
+
var DevtoolsPanelComponent, DevtoolsPanelComponent_default;
|
|
15814
|
+
var init_DevtoolsPanelComponent = __esm({
|
|
15815
|
+
"src/DevtoolsPanelComponent.tsx"() {
|
|
15816
|
+
init_web();
|
|
15817
|
+
init_dist4();
|
|
15818
|
+
init_solid();
|
|
15819
|
+
init_Devtools();
|
|
15820
|
+
init_utils();
|
|
15821
|
+
init_constants();
|
|
15822
|
+
init_contexts();
|
|
15823
|
+
DevtoolsPanelComponent = (props) => {
|
|
15824
|
+
const [localStore, setLocalStore] = createLocalStorage({
|
|
15825
|
+
prefix: "TanstackQueryDevtools"
|
|
15826
|
+
});
|
|
15827
|
+
const colorScheme = getPreferredColorScheme();
|
|
15828
|
+
const theme = createMemo(() => {
|
|
15829
|
+
const preference = localStore.theme_preference || THEME_PREFERENCE;
|
|
15830
|
+
if (preference !== "system")
|
|
15831
|
+
return preference;
|
|
15832
|
+
return colorScheme();
|
|
15833
|
+
});
|
|
15834
|
+
return createComponent(QueryDevtoolsContext.Provider, {
|
|
15835
|
+
value: props,
|
|
15836
|
+
get children() {
|
|
15837
|
+
return createComponent(PiPProvider, {
|
|
15838
|
+
disabled: true,
|
|
15839
|
+
localStore,
|
|
15840
|
+
setLocalStore,
|
|
15841
|
+
get children() {
|
|
15842
|
+
return createComponent(ThemeContext.Provider, {
|
|
15843
|
+
value: theme,
|
|
15844
|
+
get children() {
|
|
15845
|
+
return createComponent(ParentPanel, {
|
|
15846
|
+
get children() {
|
|
15847
|
+
return createComponent(ContentView, {
|
|
15848
|
+
localStore,
|
|
15849
|
+
setLocalStore,
|
|
15850
|
+
get onClose() {
|
|
15851
|
+
return props.onClose;
|
|
15852
|
+
},
|
|
15853
|
+
showPanelViewOnly: true
|
|
15854
|
+
});
|
|
15855
|
+
}
|
|
15856
|
+
});
|
|
15857
|
+
}
|
|
15858
|
+
});
|
|
15859
|
+
}
|
|
15860
|
+
});
|
|
15861
|
+
}
|
|
15862
|
+
});
|
|
15863
|
+
};
|
|
15864
|
+
DevtoolsPanelComponent_default = DevtoolsPanelComponent;
|
|
15865
|
+
}
|
|
15866
|
+
});
|
|
15867
|
+
|
|
15868
|
+
// src/TanstackQueryDevtools.tsx
|
|
15685
15869
|
init_web();
|
|
15686
15870
|
init_web();
|
|
15687
15871
|
init_web();
|
|
@@ -15755,7 +15939,135 @@ exports.TanstackQueryDevtools = class TanstackQueryDevtools {
|
|
|
15755
15939
|
if (this.#Component) {
|
|
15756
15940
|
Devtools2 = this.#Component;
|
|
15757
15941
|
} else {
|
|
15758
|
-
Devtools2 = lazy(() => Promise.resolve().then(() => (
|
|
15942
|
+
Devtools2 = lazy(() => Promise.resolve().then(() => (init_DevtoolsComponent(), DevtoolsComponent_exports)));
|
|
15943
|
+
this.#Component = Devtools2;
|
|
15944
|
+
}
|
|
15945
|
+
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
15946
|
+
return createComponent(Devtools2, mergeProps({
|
|
15947
|
+
get queryFlavor() {
|
|
15948
|
+
return _self$.#queryFlavor;
|
|
15949
|
+
},
|
|
15950
|
+
get version() {
|
|
15951
|
+
return _self$.#version;
|
|
15952
|
+
},
|
|
15953
|
+
get onlineManager() {
|
|
15954
|
+
return _self$.#onlineManager;
|
|
15955
|
+
},
|
|
15956
|
+
get shadowDOMTarget() {
|
|
15957
|
+
return _self$.#shadowDOMTarget;
|
|
15958
|
+
}
|
|
15959
|
+
}, {
|
|
15960
|
+
get client() {
|
|
15961
|
+
return queryClient();
|
|
15962
|
+
},
|
|
15963
|
+
get buttonPosition() {
|
|
15964
|
+
return btnPosition();
|
|
15965
|
+
},
|
|
15966
|
+
get position() {
|
|
15967
|
+
return pos();
|
|
15968
|
+
},
|
|
15969
|
+
get initialIsOpen() {
|
|
15970
|
+
return isOpen();
|
|
15971
|
+
},
|
|
15972
|
+
get errorTypes() {
|
|
15973
|
+
return errors();
|
|
15974
|
+
}
|
|
15975
|
+
}));
|
|
15976
|
+
}, el);
|
|
15977
|
+
this.#isMounted = true;
|
|
15978
|
+
this.#dispose = dispose3;
|
|
15979
|
+
}
|
|
15980
|
+
unmount() {
|
|
15981
|
+
if (!this.#isMounted) {
|
|
15982
|
+
throw new Error("Devtools is not mounted");
|
|
15983
|
+
}
|
|
15984
|
+
this.#dispose?.();
|
|
15985
|
+
this.#isMounted = false;
|
|
15986
|
+
}
|
|
15987
|
+
};
|
|
15988
|
+
|
|
15989
|
+
// src/TanstackQueryDevtoolsPanel.tsx
|
|
15990
|
+
init_web();
|
|
15991
|
+
init_web();
|
|
15992
|
+
init_web();
|
|
15993
|
+
init_solid();
|
|
15994
|
+
init_utils();
|
|
15995
|
+
exports.TanstackQueryDevtoolsPanel = class TanstackQueryDevtoolsPanel {
|
|
15996
|
+
#client;
|
|
15997
|
+
#onlineManager;
|
|
15998
|
+
#queryFlavor;
|
|
15999
|
+
#version;
|
|
16000
|
+
#isMounted = false;
|
|
16001
|
+
#styleNonce;
|
|
16002
|
+
#shadowDOMTarget;
|
|
16003
|
+
#buttonPosition;
|
|
16004
|
+
#position;
|
|
16005
|
+
#initialIsOpen;
|
|
16006
|
+
#errorTypes;
|
|
16007
|
+
#onClose;
|
|
16008
|
+
#Component;
|
|
16009
|
+
#dispose;
|
|
16010
|
+
constructor(config) {
|
|
16011
|
+
const {
|
|
16012
|
+
client,
|
|
16013
|
+
queryFlavor,
|
|
16014
|
+
version,
|
|
16015
|
+
onlineManager,
|
|
16016
|
+
buttonPosition,
|
|
16017
|
+
position,
|
|
16018
|
+
initialIsOpen,
|
|
16019
|
+
errorTypes,
|
|
16020
|
+
styleNonce,
|
|
16021
|
+
shadowDOMTarget,
|
|
16022
|
+
onClose
|
|
16023
|
+
} = config;
|
|
16024
|
+
this.#client = createSignal(client);
|
|
16025
|
+
this.#queryFlavor = queryFlavor;
|
|
16026
|
+
this.#version = version;
|
|
16027
|
+
this.#onlineManager = onlineManager;
|
|
16028
|
+
this.#styleNonce = styleNonce;
|
|
16029
|
+
this.#shadowDOMTarget = shadowDOMTarget;
|
|
16030
|
+
this.#buttonPosition = createSignal(buttonPosition);
|
|
16031
|
+
this.#position = createSignal(position);
|
|
16032
|
+
this.#initialIsOpen = createSignal(initialIsOpen);
|
|
16033
|
+
this.#errorTypes = createSignal(errorTypes);
|
|
16034
|
+
this.#onClose = createSignal(onClose);
|
|
16035
|
+
}
|
|
16036
|
+
setButtonPosition(position) {
|
|
16037
|
+
this.#buttonPosition[1](position);
|
|
16038
|
+
}
|
|
16039
|
+
setPosition(position) {
|
|
16040
|
+
this.#position[1](position);
|
|
16041
|
+
}
|
|
16042
|
+
setInitialIsOpen(isOpen) {
|
|
16043
|
+
this.#initialIsOpen[1](isOpen);
|
|
16044
|
+
}
|
|
16045
|
+
setErrorTypes(errorTypes) {
|
|
16046
|
+
this.#errorTypes[1](errorTypes);
|
|
16047
|
+
}
|
|
16048
|
+
setClient(client) {
|
|
16049
|
+
this.#client[1](client);
|
|
16050
|
+
}
|
|
16051
|
+
setOnClose(onClose) {
|
|
16052
|
+
this.#onClose[1](() => onClose);
|
|
16053
|
+
}
|
|
16054
|
+
mount(el) {
|
|
16055
|
+
if (this.#isMounted) {
|
|
16056
|
+
throw new Error("Devtools is already mounted");
|
|
16057
|
+
}
|
|
16058
|
+
const dispose3 = render(() => {
|
|
16059
|
+
const _self$ = this;
|
|
16060
|
+
const [btnPosition] = this.#buttonPosition;
|
|
16061
|
+
const [pos] = this.#position;
|
|
16062
|
+
const [isOpen] = this.#initialIsOpen;
|
|
16063
|
+
const [errors] = this.#errorTypes;
|
|
16064
|
+
const [queryClient] = this.#client;
|
|
16065
|
+
const [onClose] = this.#onClose;
|
|
16066
|
+
let Devtools2;
|
|
16067
|
+
if (this.#Component) {
|
|
16068
|
+
Devtools2 = this.#Component;
|
|
16069
|
+
} else {
|
|
16070
|
+
Devtools2 = lazy(() => Promise.resolve().then(() => (init_DevtoolsPanelComponent(), DevtoolsPanelComponent_exports)));
|
|
15759
16071
|
this.#Component = Devtools2;
|
|
15760
16072
|
}
|
|
15761
16073
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
@@ -15787,6 +16099,9 @@ exports.TanstackQueryDevtools = class TanstackQueryDevtools {
|
|
|
15787
16099
|
},
|
|
15788
16100
|
get errorTypes() {
|
|
15789
16101
|
return errors();
|
|
16102
|
+
},
|
|
16103
|
+
get onClose() {
|
|
16104
|
+
return onClose();
|
|
15790
16105
|
}
|
|
15791
16106
|
}));
|
|
15792
16107
|
}, el);
|