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