@tanstack/query-devtools 5.0.0-rc.9 → 5.0.3
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/Devtools/{XXDYGLB2.js → 3Y5CBXUA.js} +978 -598
- package/build/Devtools/{5OOWR6BQ.jsx → 7SMWYMBY.jsx} +849 -511
- package/build/Devtools/{CIR3WCBJ.js → B2H37NSB.js} +978 -598
- package/build/Devtools/{336SHOD5.jsx → Y2E2LEWB.jsx} +849 -511
- package/build/chunk/{PWC4YVZY.jsx → AHAJNSNO.jsx} +299 -177
- package/build/chunk/{7MNJIXJ6.js → Z53XT47W.js} +299 -178
- package/build/dev.cjs +1377 -880
- package/build/dev.js +43 -33
- package/build/dev.jsx +43 -33
- package/build/index.cjs +1376 -879
- package/build/index.d.cts +1 -14
- package/build/index.d.ts +1 -14
- package/build/index.js +43 -33
- package/build/index.jsx +43 -33
- package/package.json +2 -2
- package/src/Context.ts +9 -0
- package/src/Devtools.tsx +422 -206
- package/src/Explorer.tsx +140 -61
- package/src/icons/index.tsx +203 -97
- package/src/index.tsx +41 -41
- package/src/utils.tsx +17 -0
- package/build/chunk/L2WNRKEK.js +0 -1912
- package/build/chunk/LGDS24HT.jsx +0 -1948
package/build/index.cjs
CHANGED
|
@@ -10,7 +10,7 @@ var __export = (target, all) => {
|
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
// ../../node_modules/.pnpm/solid-js@1.
|
|
13
|
+
// ../../node_modules/.pnpm/solid-js@1.8.1/node_modules/solid-js/dist/solid.js
|
|
14
14
|
function setHydrateContext(context) {
|
|
15
15
|
sharedConfig.context = context;
|
|
16
16
|
}
|
|
@@ -22,11 +22,11 @@ function nextHydrateContext() {
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
function createRoot(fn, detachedOwner) {
|
|
25
|
-
const listener = Listener, owner = Owner, unowned = fn.length === 0, root = unowned ? UNOWNED : {
|
|
25
|
+
const listener = Listener, owner = Owner, unowned = fn.length === 0, current = detachedOwner === void 0 ? owner : detachedOwner, root = unowned ? UNOWNED : {
|
|
26
26
|
owned: null,
|
|
27
27
|
cleanups: null,
|
|
28
|
-
context: null,
|
|
29
|
-
owner:
|
|
28
|
+
context: current ? current.context : null,
|
|
29
|
+
owner: current
|
|
30
30
|
}, updateFn = unowned ? fn : () => fn(() => untrack(() => cleanNode(root)));
|
|
31
31
|
Owner = root;
|
|
32
32
|
Listener = null;
|
|
@@ -72,7 +72,7 @@ function createRenderEffect(fn, value, options) {
|
|
|
72
72
|
}
|
|
73
73
|
function createEffect(fn, value, options) {
|
|
74
74
|
runEffects = runUserEffects;
|
|
75
|
-
const c2 = createComputation(fn, value, false, STALE), s2 = SuspenseContext &&
|
|
75
|
+
const c2 = createComputation(fn, value, false, STALE), s2 = SuspenseContext && useContext(SuspenseContext);
|
|
76
76
|
if (s2)
|
|
77
77
|
c2.suspense = s2;
|
|
78
78
|
if (!options || !options.render)
|
|
@@ -92,6 +92,9 @@ function createMemo(fn, value, options) {
|
|
|
92
92
|
updateComputation(c2);
|
|
93
93
|
return readSignal.bind(c2);
|
|
94
94
|
}
|
|
95
|
+
function isPromise(v) {
|
|
96
|
+
return v && typeof v === "object" && "then" in v;
|
|
97
|
+
}
|
|
95
98
|
function createResource(pSource, pFetcher, pOptions) {
|
|
96
99
|
let source;
|
|
97
100
|
let fetcher;
|
|
@@ -115,16 +118,18 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
115
118
|
if (options.ssrLoadFrom === "initial")
|
|
116
119
|
initP = options.initialValue;
|
|
117
120
|
else if (sharedConfig.load && (v = sharedConfig.load(id)))
|
|
118
|
-
initP = v
|
|
121
|
+
initP = isPromise(v) && "value" in v ? v.value : v;
|
|
119
122
|
}
|
|
120
123
|
function loadEnd(p2, v, error2, key) {
|
|
121
124
|
if (pr === p2) {
|
|
122
125
|
pr = null;
|
|
123
126
|
key !== void 0 && (resolved = true);
|
|
124
127
|
if ((p2 === initP || v === initP) && options.onHydrated)
|
|
125
|
-
queueMicrotask(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
queueMicrotask(
|
|
129
|
+
() => options.onHydrated(key, {
|
|
130
|
+
value: v
|
|
131
|
+
})
|
|
132
|
+
);
|
|
128
133
|
initP = NO_INIT;
|
|
129
134
|
if (Transition && p2 && loadedUnderTransition) {
|
|
130
135
|
Transition.promises.delete(p2);
|
|
@@ -150,7 +155,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
150
155
|
}, false);
|
|
151
156
|
}
|
|
152
157
|
function read() {
|
|
153
|
-
const c2 = SuspenseContext &&
|
|
158
|
+
const c2 = SuspenseContext && useContext(SuspenseContext), v = value(), err = error();
|
|
154
159
|
if (err !== void 0 && !pr)
|
|
155
160
|
throw err;
|
|
156
161
|
if (Listener && !Listener.user && c2) {
|
|
@@ -172,20 +177,22 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
172
177
|
if (refetching !== false && scheduled)
|
|
173
178
|
return;
|
|
174
179
|
scheduled = false;
|
|
175
|
-
const
|
|
180
|
+
const lookup = dynamic ? dynamic() : source;
|
|
176
181
|
loadedUnderTransition = Transition && Transition.running;
|
|
177
|
-
if (
|
|
182
|
+
if (lookup == null || lookup === false) {
|
|
178
183
|
loadEnd(pr, untrack(value));
|
|
179
184
|
return;
|
|
180
185
|
}
|
|
181
186
|
if (Transition && pr)
|
|
182
187
|
Transition.promises.delete(pr);
|
|
183
|
-
const p2 = initP !== NO_INIT ? initP : untrack(
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
188
|
+
const p2 = initP !== NO_INIT ? initP : untrack(
|
|
189
|
+
() => fetcher(lookup, {
|
|
190
|
+
value: value(),
|
|
191
|
+
refetching
|
|
192
|
+
})
|
|
193
|
+
);
|
|
194
|
+
if (!isPromise(p2)) {
|
|
195
|
+
loadEnd(pr, p2, void 0, lookup);
|
|
189
196
|
return p2;
|
|
190
197
|
}
|
|
191
198
|
pr = p2;
|
|
@@ -195,7 +202,10 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
195
202
|
setState2(resolved ? "refreshing" : "pending");
|
|
196
203
|
trigger();
|
|
197
204
|
}, false);
|
|
198
|
-
return p2.then(
|
|
205
|
+
return p2.then(
|
|
206
|
+
(v) => loadEnd(p2, v, void 0, lookup),
|
|
207
|
+
(e2) => loadEnd(p2, void 0, castError(e2), lookup)
|
|
208
|
+
);
|
|
199
209
|
}
|
|
200
210
|
Object.defineProperties(read, {
|
|
201
211
|
state: {
|
|
@@ -225,10 +235,13 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
225
235
|
createComputed(() => load(false));
|
|
226
236
|
else
|
|
227
237
|
load(false);
|
|
228
|
-
return [
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
238
|
+
return [
|
|
239
|
+
read,
|
|
240
|
+
{
|
|
241
|
+
refetch: load,
|
|
242
|
+
mutate: setValue
|
|
243
|
+
}
|
|
244
|
+
];
|
|
232
245
|
}
|
|
233
246
|
function batch(fn) {
|
|
234
247
|
return runUpdates(fn, false);
|
|
@@ -247,7 +260,7 @@ function untrack(fn) {
|
|
|
247
260
|
function on(deps, fn, options) {
|
|
248
261
|
const isArray4 = Array.isArray(deps);
|
|
249
262
|
let prevInput;
|
|
250
|
-
let
|
|
263
|
+
let defer2 = options && options.defer;
|
|
251
264
|
return (prevValue) => {
|
|
252
265
|
let input;
|
|
253
266
|
if (isArray4) {
|
|
@@ -256,8 +269,8 @@ function on(deps, fn, options) {
|
|
|
256
269
|
input[i2] = deps[i2]();
|
|
257
270
|
} else
|
|
258
271
|
input = deps();
|
|
259
|
-
if (
|
|
260
|
-
|
|
272
|
+
if (defer2) {
|
|
273
|
+
defer2 = false;
|
|
261
274
|
return void 0;
|
|
262
275
|
}
|
|
263
276
|
const result = untrack(() => fn(input, prevInput, prevValue));
|
|
@@ -337,8 +350,7 @@ function createContext(defaultValue, options) {
|
|
|
337
350
|
};
|
|
338
351
|
}
|
|
339
352
|
function useContext(context) {
|
|
340
|
-
|
|
341
|
-
return (ctx = lookup(Owner, context.id)) !== void 0 ? ctx : context.defaultValue;
|
|
353
|
+
return Owner && Owner.context && Owner.context[context.id] !== void 0 ? Owner.context[context.id] : context.defaultValue;
|
|
342
354
|
}
|
|
343
355
|
function children(fn) {
|
|
344
356
|
const children2 = createMemo(fn);
|
|
@@ -432,7 +444,11 @@ function updateComputation(node) {
|
|
|
432
444
|
cleanNode(node);
|
|
433
445
|
const owner = Owner, listener = Listener, time = ExecCount;
|
|
434
446
|
Listener = Owner = node;
|
|
435
|
-
runComputation(
|
|
447
|
+
runComputation(
|
|
448
|
+
node,
|
|
449
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
450
|
+
time
|
|
451
|
+
);
|
|
436
452
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
437
453
|
queueMicrotask(() => {
|
|
438
454
|
runUpdates(() => {
|
|
@@ -487,7 +503,7 @@ function createComputation(fn, init, pure, state2 = STALE, options) {
|
|
|
487
503
|
cleanups: null,
|
|
488
504
|
value: init,
|
|
489
505
|
owner: Owner,
|
|
490
|
-
context: null,
|
|
506
|
+
context: Owner ? Owner.context : null,
|
|
491
507
|
pure
|
|
492
508
|
};
|
|
493
509
|
if (Transition && Transition.running) {
|
|
@@ -750,7 +766,6 @@ function cleanNode(node) {
|
|
|
750
766
|
node.tState = 0;
|
|
751
767
|
else
|
|
752
768
|
node.state = 0;
|
|
753
|
-
node.context = null;
|
|
754
769
|
}
|
|
755
770
|
function reset(node, top) {
|
|
756
771
|
if (!top) {
|
|
@@ -778,7 +793,7 @@ function runErrors(err, fns, owner) {
|
|
|
778
793
|
}
|
|
779
794
|
}
|
|
780
795
|
function handleError(err, owner = Owner) {
|
|
781
|
-
const fns = ERROR &&
|
|
796
|
+
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
782
797
|
const error = castError(err);
|
|
783
798
|
if (!fns)
|
|
784
799
|
throw error;
|
|
@@ -792,9 +807,6 @@ function handleError(err, owner = Owner) {
|
|
|
792
807
|
else
|
|
793
808
|
runErrors(error, fns, owner);
|
|
794
809
|
}
|
|
795
|
-
function lookup(owner, key) {
|
|
796
|
-
return owner ? owner.context && owner.context[key] !== void 0 ? owner.context[key] : lookup(owner.owner, key) : void 0;
|
|
797
|
-
}
|
|
798
810
|
function resolveChildren(children2) {
|
|
799
811
|
if (typeof children2 === "function" && !children2.length)
|
|
800
812
|
return resolveChildren(children2());
|
|
@@ -811,12 +823,16 @@ function resolveChildren(children2) {
|
|
|
811
823
|
function createProvider(id, options) {
|
|
812
824
|
return function provider(props) {
|
|
813
825
|
let res;
|
|
814
|
-
createRenderEffect(
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
826
|
+
createRenderEffect(
|
|
827
|
+
() => res = untrack(() => {
|
|
828
|
+
Owner.context = {
|
|
829
|
+
...Owner.context,
|
|
830
|
+
[id]: props.value
|
|
831
|
+
};
|
|
832
|
+
return children(() => props.children);
|
|
833
|
+
}),
|
|
834
|
+
void 0
|
|
835
|
+
);
|
|
820
836
|
return res;
|
|
821
837
|
};
|
|
822
838
|
}
|
|
@@ -1002,28 +1018,31 @@ function mergeProps(...sources) {
|
|
|
1002
1018
|
sources[i2] = typeof s2 === "function" ? (proxy = true, createMemo(s2)) : s2;
|
|
1003
1019
|
}
|
|
1004
1020
|
if (proxy) {
|
|
1005
|
-
return new Proxy(
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1021
|
+
return new Proxy(
|
|
1022
|
+
{
|
|
1023
|
+
get(property) {
|
|
1024
|
+
for (let i2 = sources.length - 1; i2 >= 0; i2--) {
|
|
1025
|
+
const v = resolveSource(sources[i2])[property];
|
|
1026
|
+
if (v !== void 0)
|
|
1027
|
+
return v;
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
has(property) {
|
|
1031
|
+
for (let i2 = sources.length - 1; i2 >= 0; i2--) {
|
|
1032
|
+
if (property in resolveSource(sources[i2]))
|
|
1033
|
+
return true;
|
|
1034
|
+
}
|
|
1035
|
+
return false;
|
|
1036
|
+
},
|
|
1037
|
+
keys() {
|
|
1038
|
+
const keys2 = [];
|
|
1039
|
+
for (let i2 = 0; i2 < sources.length; i2++)
|
|
1040
|
+
keys2.push(...Object.keys(resolveSource(sources[i2])));
|
|
1041
|
+
return [...new Set(keys2)];
|
|
1017
1042
|
}
|
|
1018
|
-
return false;
|
|
1019
1043
|
},
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
for (let i2 = 0; i2 < sources.length; i2++)
|
|
1023
|
-
keys3.push(...Object.keys(resolveSource(sources[i2])));
|
|
1024
|
-
return [...new Set(keys3)];
|
|
1025
|
-
}
|
|
1026
|
-
}, propTraps);
|
|
1044
|
+
propTraps
|
|
1045
|
+
);
|
|
1027
1046
|
}
|
|
1028
1047
|
const target = {};
|
|
1029
1048
|
const sourcesMap = {};
|
|
@@ -1066,43 +1085,51 @@ function mergeProps(...sources) {
|
|
|
1066
1085
|
}
|
|
1067
1086
|
return target;
|
|
1068
1087
|
}
|
|
1069
|
-
function splitProps(props, ...
|
|
1088
|
+
function splitProps(props, ...keys2) {
|
|
1070
1089
|
if ($PROXY in props) {
|
|
1071
|
-
const blocked = new Set(
|
|
1072
|
-
const res =
|
|
1073
|
-
return new Proxy(
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1090
|
+
const blocked = new Set(keys2.length > 1 ? keys2.flat() : keys2[0]);
|
|
1091
|
+
const res = keys2.map((k) => {
|
|
1092
|
+
return new Proxy(
|
|
1093
|
+
{
|
|
1094
|
+
get(property) {
|
|
1095
|
+
return k.includes(property) ? props[property] : void 0;
|
|
1096
|
+
},
|
|
1097
|
+
has(property) {
|
|
1098
|
+
return k.includes(property) && property in props;
|
|
1099
|
+
},
|
|
1100
|
+
keys() {
|
|
1101
|
+
return k.filter((property) => property in props);
|
|
1102
|
+
}
|
|
1079
1103
|
},
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
}
|
|
1083
|
-
}, propTraps);
|
|
1104
|
+
propTraps
|
|
1105
|
+
);
|
|
1084
1106
|
});
|
|
1085
|
-
res.push(
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1107
|
+
res.push(
|
|
1108
|
+
new Proxy(
|
|
1109
|
+
{
|
|
1110
|
+
get(property) {
|
|
1111
|
+
return blocked.has(property) ? void 0 : props[property];
|
|
1112
|
+
},
|
|
1113
|
+
has(property) {
|
|
1114
|
+
return blocked.has(property) ? false : property in props;
|
|
1115
|
+
},
|
|
1116
|
+
keys() {
|
|
1117
|
+
return Object.keys(props).filter((k) => !blocked.has(k));
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
propTraps
|
|
1121
|
+
)
|
|
1122
|
+
);
|
|
1096
1123
|
return res;
|
|
1097
1124
|
}
|
|
1098
1125
|
const otherObject = {};
|
|
1099
|
-
const objects =
|
|
1126
|
+
const objects = keys2.map(() => ({}));
|
|
1100
1127
|
for (const propName of Object.getOwnPropertyNames(props)) {
|
|
1101
1128
|
const desc = Object.getOwnPropertyDescriptor(props, propName);
|
|
1102
1129
|
const isDefaultDesc = !desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
|
|
1103
1130
|
let blocked = false;
|
|
1104
1131
|
let objectIndex = 0;
|
|
1105
|
-
for (const k of
|
|
1132
|
+
for (const k of keys2) {
|
|
1106
1133
|
if (k.includes(propName)) {
|
|
1107
1134
|
blocked = true;
|
|
1108
1135
|
isDefaultDesc ? objects[objectIndex][propName] = desc.value : Object.defineProperty(objects[objectIndex], propName, desc);
|
|
@@ -1136,17 +1163,19 @@ function lazy(fn) {
|
|
|
1136
1163
|
comp = s2;
|
|
1137
1164
|
}
|
|
1138
1165
|
let Comp;
|
|
1139
|
-
return createMemo(
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1166
|
+
return createMemo(
|
|
1167
|
+
() => (Comp = comp()) && untrack(() => {
|
|
1168
|
+
if (false)
|
|
1169
|
+
;
|
|
1170
|
+
if (!ctx)
|
|
1171
|
+
return Comp(props);
|
|
1172
|
+
const c2 = sharedConfig.context;
|
|
1173
|
+
setHydrateContext(ctx);
|
|
1174
|
+
const r2 = Comp(props);
|
|
1175
|
+
setHydrateContext(c2);
|
|
1176
|
+
return r2;
|
|
1177
|
+
})
|
|
1178
|
+
);
|
|
1150
1179
|
};
|
|
1151
1180
|
wrap.preload = () => p2 || ((p2 = fn()).then((mod) => comp = () => mod.default), p2);
|
|
1152
1181
|
return wrap;
|
|
@@ -1172,57 +1201,77 @@ function Show(props) {
|
|
|
1172
1201
|
const condition = createMemo(() => props.when, void 0, {
|
|
1173
1202
|
equals: (a2, b2) => keyed ? a2 === b2 : !a2 === !b2
|
|
1174
1203
|
});
|
|
1175
|
-
return createMemo(
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1204
|
+
return createMemo(
|
|
1205
|
+
() => {
|
|
1206
|
+
const c2 = condition();
|
|
1207
|
+
if (c2) {
|
|
1208
|
+
const child = props.children;
|
|
1209
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
1210
|
+
return fn ? untrack(
|
|
1211
|
+
() => child(
|
|
1212
|
+
keyed ? c2 : () => {
|
|
1213
|
+
if (!untrack(condition))
|
|
1214
|
+
throw narrowedError("Show");
|
|
1215
|
+
return props.when;
|
|
1216
|
+
}
|
|
1217
|
+
)
|
|
1218
|
+
) : child;
|
|
1219
|
+
}
|
|
1220
|
+
return props.fallback;
|
|
1221
|
+
},
|
|
1222
|
+
void 0,
|
|
1223
|
+
void 0
|
|
1224
|
+
);
|
|
1188
1225
|
}
|
|
1189
1226
|
function Switch(props) {
|
|
1190
1227
|
let keyed = false;
|
|
1191
1228
|
const equals = (a2, b2) => a2[0] === b2[0] && (keyed ? a2[1] === b2[1] : !a2[1] === !b2[1]) && a2[2] === b2[2];
|
|
1192
|
-
const conditions = children(() => props.children), evalConditions = createMemo(
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1229
|
+
const conditions = children(() => props.children), evalConditions = createMemo(
|
|
1230
|
+
() => {
|
|
1231
|
+
let conds = conditions();
|
|
1232
|
+
if (!Array.isArray(conds))
|
|
1233
|
+
conds = [conds];
|
|
1234
|
+
for (let i2 = 0; i2 < conds.length; i2++) {
|
|
1235
|
+
const c2 = conds[i2].when;
|
|
1236
|
+
if (c2) {
|
|
1237
|
+
keyed = !!conds[i2].keyed;
|
|
1238
|
+
return [i2, c2, conds[i2]];
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
return [-1];
|
|
1242
|
+
},
|
|
1243
|
+
void 0,
|
|
1244
|
+
{
|
|
1245
|
+
equals
|
|
1202
1246
|
}
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1247
|
+
);
|
|
1248
|
+
return createMemo(
|
|
1249
|
+
() => {
|
|
1250
|
+
const [index, when, cond] = evalConditions();
|
|
1251
|
+
if (index < 0)
|
|
1252
|
+
return props.fallback;
|
|
1253
|
+
const c2 = cond.children;
|
|
1254
|
+
const fn = typeof c2 === "function" && c2.length > 0;
|
|
1255
|
+
return fn ? untrack(
|
|
1256
|
+
() => c2(
|
|
1257
|
+
keyed ? when : () => {
|
|
1258
|
+
if (untrack(evalConditions)[0] !== index)
|
|
1259
|
+
throw narrowedError("Match");
|
|
1260
|
+
return cond.when;
|
|
1261
|
+
}
|
|
1262
|
+
)
|
|
1263
|
+
) : c2;
|
|
1264
|
+
},
|
|
1265
|
+
void 0,
|
|
1266
|
+
void 0
|
|
1267
|
+
);
|
|
1219
1268
|
}
|
|
1220
1269
|
function Match(props) {
|
|
1221
1270
|
return props;
|
|
1222
1271
|
}
|
|
1223
|
-
var sharedConfig, equalFn, $PROXY, $TRACK,
|
|
1272
|
+
var sharedConfig, equalFn, $PROXY, $TRACK, signalOptions, ERROR, runEffects, STALE, PENDING, UNOWNED, NO_INIT, Owner, Transition, Scheduler, ExternalSourceFactory, Listener, Updates, Effects, ExecCount, transPending, setTransPending, SuspenseContext, FALLBACK, hydrationEnabled, propTraps, counter, narrowedError, DEV;
|
|
1224
1273
|
var init_solid = __esm({
|
|
1225
|
-
"../../node_modules/.pnpm/solid-js@1.
|
|
1274
|
+
"../../node_modules/.pnpm/solid-js@1.8.1/node_modules/solid-js/dist/solid.js"() {
|
|
1226
1275
|
sharedConfig = {
|
|
1227
1276
|
context: void 0,
|
|
1228
1277
|
registry: void 0
|
|
@@ -1230,7 +1279,6 @@ var init_solid = __esm({
|
|
|
1230
1279
|
equalFn = (a2, b2) => a2 === b2;
|
|
1231
1280
|
$PROXY = Symbol("solid-proxy");
|
|
1232
1281
|
$TRACK = Symbol("solid-track");
|
|
1233
|
-
$DEVCOMP = Symbol("solid-dev-component");
|
|
1234
1282
|
signalOptions = {
|
|
1235
1283
|
equals: equalFn
|
|
1236
1284
|
};
|
|
@@ -1290,7 +1338,7 @@ var init_solid = __esm({
|
|
|
1290
1338
|
}
|
|
1291
1339
|
});
|
|
1292
1340
|
|
|
1293
|
-
// ../../node_modules/.pnpm/solid-js@1.
|
|
1341
|
+
// ../../node_modules/.pnpm/solid-js@1.8.1/node_modules/solid-js/web/dist/web.js
|
|
1294
1342
|
function getPropAlias(prop, tagName) {
|
|
1295
1343
|
const a2 = PropAliases[prop];
|
|
1296
1344
|
return typeof a2 === "object" ? a2[tagName] ? a2["$"] : void 0 : a2;
|
|
@@ -1384,18 +1432,24 @@ function delegateEvents(eventNames, document2 = window.document) {
|
|
|
1384
1432
|
}
|
|
1385
1433
|
}
|
|
1386
1434
|
function setAttribute(node, name, value) {
|
|
1435
|
+
if (sharedConfig.context)
|
|
1436
|
+
return;
|
|
1387
1437
|
if (value == null)
|
|
1388
1438
|
node.removeAttribute(name);
|
|
1389
1439
|
else
|
|
1390
1440
|
node.setAttribute(name, value);
|
|
1391
1441
|
}
|
|
1392
1442
|
function setAttributeNS(node, namespace, name, value) {
|
|
1443
|
+
if (sharedConfig.context)
|
|
1444
|
+
return;
|
|
1393
1445
|
if (value == null)
|
|
1394
1446
|
node.removeAttributeNS(namespace, name);
|
|
1395
1447
|
else
|
|
1396
1448
|
node.setAttributeNS(namespace, name, value);
|
|
1397
1449
|
}
|
|
1398
1450
|
function className(node, value) {
|
|
1451
|
+
if (sharedConfig.context)
|
|
1452
|
+
return;
|
|
1399
1453
|
if (value == null)
|
|
1400
1454
|
node.removeAttribute("class");
|
|
1401
1455
|
else
|
|
@@ -1459,7 +1513,9 @@ function style(node, value, prev) {
|
|
|
1459
1513
|
function spread(node, props = {}, isSVG, skipChildren) {
|
|
1460
1514
|
const prevProps = {};
|
|
1461
1515
|
if (!skipChildren) {
|
|
1462
|
-
createRenderEffect(
|
|
1516
|
+
createRenderEffect(
|
|
1517
|
+
() => prevProps.children = insertExpression(node, props.children, prevProps.children)
|
|
1518
|
+
);
|
|
1463
1519
|
}
|
|
1464
1520
|
createRenderEffect(() => props.ref && props.ref(node));
|
|
1465
1521
|
createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
|
|
@@ -1497,10 +1553,6 @@ function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = fals
|
|
|
1497
1553
|
function getNextElement(template2) {
|
|
1498
1554
|
let node, key;
|
|
1499
1555
|
if (!sharedConfig.context || !(node = sharedConfig.registry.get(key = getHydrationKey()))) {
|
|
1500
|
-
if (sharedConfig.context)
|
|
1501
|
-
;
|
|
1502
|
-
if (!template2)
|
|
1503
|
-
throw new Error("Unrecoverable Hydration Mismatch. No template for key: " + key);
|
|
1504
1556
|
return template2();
|
|
1505
1557
|
}
|
|
1506
1558
|
if (sharedConfig.completed)
|
|
@@ -1552,7 +1604,8 @@ function assignProp(node, prop, value, prev, isSVG, skipRef) {
|
|
|
1552
1604
|
if (forceProp) {
|
|
1553
1605
|
prop = prop.slice(5);
|
|
1554
1606
|
isProp = true;
|
|
1555
|
-
}
|
|
1607
|
+
} else if (sharedConfig.context)
|
|
1608
|
+
return value;
|
|
1556
1609
|
if (prop === "class" || prop === "className")
|
|
1557
1610
|
className(node, value);
|
|
1558
1611
|
else if (isCE && !isProp && !isChildProp)
|
|
@@ -1655,10 +1708,13 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1655
1708
|
if (sharedConfig.context) {
|
|
1656
1709
|
if (!array.length)
|
|
1657
1710
|
return current;
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1711
|
+
if (marker === void 0)
|
|
1712
|
+
return [...parent.childNodes];
|
|
1713
|
+
let node = array[0];
|
|
1714
|
+
let nodes = [node];
|
|
1715
|
+
while ((node = node.nextSibling) !== marker)
|
|
1716
|
+
nodes.push(node);
|
|
1717
|
+
return current = nodes;
|
|
1662
1718
|
}
|
|
1663
1719
|
if (array.length === 0) {
|
|
1664
1720
|
current = cleanChildren(parent, current, marker);
|
|
@@ -1704,7 +1760,11 @@ function normalizeIncomingArray(normalized, array, current, unwrap2) {
|
|
|
1704
1760
|
if (unwrap2) {
|
|
1705
1761
|
while (typeof item === "function")
|
|
1706
1762
|
item = item();
|
|
1707
|
-
dynamic = normalizeIncomingArray(
|
|
1763
|
+
dynamic = normalizeIncomingArray(
|
|
1764
|
+
normalized,
|
|
1765
|
+
Array.isArray(item) ? item : [item],
|
|
1766
|
+
Array.isArray(prev) ? prev : [prev]
|
|
1767
|
+
) || dynamic;
|
|
1708
1768
|
} else {
|
|
1709
1769
|
normalized.push(item);
|
|
1710
1770
|
dynamic = true;
|
|
@@ -1752,39 +1812,41 @@ function createElement(tagName, isSVG = false) {
|
|
|
1752
1812
|
return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
|
|
1753
1813
|
}
|
|
1754
1814
|
function Portal(props) {
|
|
1755
|
-
const {
|
|
1756
|
-
useShadow
|
|
1757
|
-
} = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
|
|
1815
|
+
const { useShadow } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
|
|
1758
1816
|
let content;
|
|
1759
1817
|
let hydrating = !!sharedConfig.context;
|
|
1760
|
-
createEffect(
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1818
|
+
createEffect(
|
|
1819
|
+
() => {
|
|
1820
|
+
if (hydrating)
|
|
1821
|
+
getOwner().user = hydrating = false;
|
|
1822
|
+
content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
|
|
1823
|
+
const el = mount();
|
|
1824
|
+
if (el instanceof HTMLHeadElement) {
|
|
1825
|
+
const [clean, setClean] = createSignal(false);
|
|
1826
|
+
const cleanup = () => setClean(true);
|
|
1827
|
+
createRoot((dispose3) => insert(el, () => !clean() ? content() : dispose3(), null));
|
|
1828
|
+
onCleanup(cleanup);
|
|
1829
|
+
} else {
|
|
1830
|
+
const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
|
|
1831
|
+
mode: "open"
|
|
1832
|
+
}) : container;
|
|
1833
|
+
Object.defineProperty(container, "_$host", {
|
|
1834
|
+
get() {
|
|
1835
|
+
return marker.parentNode;
|
|
1836
|
+
},
|
|
1837
|
+
configurable: true
|
|
1838
|
+
});
|
|
1839
|
+
insert(renderRoot, content);
|
|
1840
|
+
el.appendChild(container);
|
|
1841
|
+
props.ref && props.ref(container);
|
|
1842
|
+
onCleanup(() => el.removeChild(container));
|
|
1843
|
+
}
|
|
1844
|
+
},
|
|
1845
|
+
void 0,
|
|
1846
|
+
{
|
|
1847
|
+
render: !hydrating
|
|
1784
1848
|
}
|
|
1785
|
-
|
|
1786
|
-
render: !hydrating
|
|
1787
|
-
});
|
|
1849
|
+
);
|
|
1788
1850
|
return marker;
|
|
1789
1851
|
}
|
|
1790
1852
|
function Dynamic(props) {
|
|
@@ -1794,9 +1856,6 @@ function Dynamic(props) {
|
|
|
1794
1856
|
const component = cached();
|
|
1795
1857
|
switch (typeof component) {
|
|
1796
1858
|
case "function":
|
|
1797
|
-
Object.assign(component, {
|
|
1798
|
-
[$DEVCOMP]: true
|
|
1799
|
-
});
|
|
1800
1859
|
return untrack(() => component(others));
|
|
1801
1860
|
case "string":
|
|
1802
1861
|
const isSvg = SVGElements.has(component);
|
|
@@ -1808,12 +1867,51 @@ function Dynamic(props) {
|
|
|
1808
1867
|
}
|
|
1809
1868
|
var booleans, Properties, ChildProperties, Aliases, PropAliases, DelegatedEvents, SVGElements, SVGNamespace, $$EVENTS, isServer, SVG_NAMESPACE;
|
|
1810
1869
|
var init_web = __esm({
|
|
1811
|
-
"../../node_modules/.pnpm/solid-js@1.
|
|
1870
|
+
"../../node_modules/.pnpm/solid-js@1.8.1/node_modules/solid-js/web/dist/web.js"() {
|
|
1812
1871
|
init_solid();
|
|
1813
1872
|
init_solid();
|
|
1814
|
-
booleans = [
|
|
1815
|
-
|
|
1816
|
-
|
|
1873
|
+
booleans = [
|
|
1874
|
+
"allowfullscreen",
|
|
1875
|
+
"async",
|
|
1876
|
+
"autofocus",
|
|
1877
|
+
"autoplay",
|
|
1878
|
+
"checked",
|
|
1879
|
+
"controls",
|
|
1880
|
+
"default",
|
|
1881
|
+
"disabled",
|
|
1882
|
+
"formnovalidate",
|
|
1883
|
+
"hidden",
|
|
1884
|
+
"indeterminate",
|
|
1885
|
+
"ismap",
|
|
1886
|
+
"loop",
|
|
1887
|
+
"multiple",
|
|
1888
|
+
"muted",
|
|
1889
|
+
"nomodule",
|
|
1890
|
+
"novalidate",
|
|
1891
|
+
"open",
|
|
1892
|
+
"playsinline",
|
|
1893
|
+
"readonly",
|
|
1894
|
+
"required",
|
|
1895
|
+
"reversed",
|
|
1896
|
+
"seamless",
|
|
1897
|
+
"selected"
|
|
1898
|
+
];
|
|
1899
|
+
Properties = /* @__PURE__ */ new Set([
|
|
1900
|
+
"className",
|
|
1901
|
+
"value",
|
|
1902
|
+
"readOnly",
|
|
1903
|
+
"formNoValidate",
|
|
1904
|
+
"isMap",
|
|
1905
|
+
"noModule",
|
|
1906
|
+
"playsInline",
|
|
1907
|
+
...booleans
|
|
1908
|
+
]);
|
|
1909
|
+
ChildProperties = /* @__PURE__ */ new Set([
|
|
1910
|
+
"innerHTML",
|
|
1911
|
+
"textContent",
|
|
1912
|
+
"innerText",
|
|
1913
|
+
"children"
|
|
1914
|
+
]);
|
|
1817
1915
|
Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
1818
1916
|
className: "class",
|
|
1819
1917
|
htmlFor: "for"
|
|
@@ -1843,7 +1941,30 @@ var init_web = __esm({
|
|
|
1843
1941
|
TEXTAREA: 1
|
|
1844
1942
|
}
|
|
1845
1943
|
});
|
|
1846
|
-
DelegatedEvents = /* @__PURE__ */ new Set([
|
|
1944
|
+
DelegatedEvents = /* @__PURE__ */ new Set([
|
|
1945
|
+
"beforeinput",
|
|
1946
|
+
"click",
|
|
1947
|
+
"dblclick",
|
|
1948
|
+
"contextmenu",
|
|
1949
|
+
"focusin",
|
|
1950
|
+
"focusout",
|
|
1951
|
+
"input",
|
|
1952
|
+
"keydown",
|
|
1953
|
+
"keyup",
|
|
1954
|
+
"mousedown",
|
|
1955
|
+
"mousemove",
|
|
1956
|
+
"mouseout",
|
|
1957
|
+
"mouseover",
|
|
1958
|
+
"mouseup",
|
|
1959
|
+
"pointerdown",
|
|
1960
|
+
"pointermove",
|
|
1961
|
+
"pointerout",
|
|
1962
|
+
"pointerover",
|
|
1963
|
+
"pointerup",
|
|
1964
|
+
"touchend",
|
|
1965
|
+
"touchmove",
|
|
1966
|
+
"touchstart"
|
|
1967
|
+
]);
|
|
1847
1968
|
SVGElements = /* @__PURE__ */ new Set([
|
|
1848
1969
|
"altGlyph",
|
|
1849
1970
|
"altGlyphDef",
|
|
@@ -2621,7 +2742,7 @@ var init_clsx = __esm({
|
|
|
2621
2742
|
}
|
|
2622
2743
|
});
|
|
2623
2744
|
|
|
2624
|
-
// ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.
|
|
2745
|
+
// ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.3_solid-js@1.8.1/node_modules/@solid-primitives/transition-group/dist/index.js
|
|
2625
2746
|
function createListTransition(source, options) {
|
|
2626
2747
|
const initSource = untrack(source);
|
|
2627
2748
|
if (isServer) {
|
|
@@ -2688,7 +2809,7 @@ function createListTransition(source, options) {
|
|
|
2688
2809
|
}
|
|
2689
2810
|
var noop;
|
|
2690
2811
|
var init_dist = __esm({
|
|
2691
|
-
"../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.
|
|
2812
|
+
"../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.3_solid-js@1.8.1/node_modules/@solid-primitives/transition-group/dist/index.js"() {
|
|
2692
2813
|
init_solid();
|
|
2693
2814
|
init_web();
|
|
2694
2815
|
noop = () => {
|
|
@@ -2696,7 +2817,7 @@ var init_dist = __esm({
|
|
|
2696
2817
|
}
|
|
2697
2818
|
});
|
|
2698
2819
|
|
|
2699
|
-
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.
|
|
2820
|
+
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.8.1/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
|
|
2700
2821
|
function chain(callbacks) {
|
|
2701
2822
|
return (...args) => {
|
|
2702
2823
|
for (const callback of callbacks)
|
|
@@ -2714,27 +2835,64 @@ function reverseChain(callbacks) {
|
|
|
2714
2835
|
function accessWith(valueOrFn, ...args) {
|
|
2715
2836
|
return typeof valueOrFn === "function" ? valueOrFn(...args) : valueOrFn;
|
|
2716
2837
|
}
|
|
2717
|
-
|
|
2838
|
+
function handleDiffArray(current, prev, handleAdded, handleRemoved) {
|
|
2839
|
+
const currLength = current.length;
|
|
2840
|
+
const prevLength = prev.length;
|
|
2841
|
+
let i2 = 0;
|
|
2842
|
+
if (!prevLength) {
|
|
2843
|
+
for (; i2 < currLength; i2++)
|
|
2844
|
+
handleAdded(current[i2]);
|
|
2845
|
+
return;
|
|
2846
|
+
}
|
|
2847
|
+
if (!currLength) {
|
|
2848
|
+
for (; i2 < prevLength; i2++)
|
|
2849
|
+
handleRemoved(prev[i2]);
|
|
2850
|
+
return;
|
|
2851
|
+
}
|
|
2852
|
+
for (; i2 < prevLength; i2++) {
|
|
2853
|
+
if (prev[i2] !== current[i2])
|
|
2854
|
+
break;
|
|
2855
|
+
}
|
|
2856
|
+
let prevEl;
|
|
2857
|
+
let currEl;
|
|
2858
|
+
prev = prev.slice(i2);
|
|
2859
|
+
current = current.slice(i2);
|
|
2860
|
+
for (prevEl of prev) {
|
|
2861
|
+
if (!current.includes(prevEl))
|
|
2862
|
+
handleRemoved(prevEl);
|
|
2863
|
+
}
|
|
2864
|
+
for (currEl of current) {
|
|
2865
|
+
if (!prev.includes(currEl))
|
|
2866
|
+
handleAdded(currEl);
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
var isClient, isDev, noop2, isNonNullable, filterNonNullable, access, asArray, tryOnCleanup;
|
|
2718
2870
|
var init_R5675YMU = __esm({
|
|
2719
|
-
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.
|
|
2871
|
+
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.8.1/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js"() {
|
|
2720
2872
|
init_solid();
|
|
2721
2873
|
init_web();
|
|
2722
2874
|
isClient = !isServer;
|
|
2723
2875
|
isDev = isClient && !!DEV;
|
|
2876
|
+
noop2 = () => void 0;
|
|
2877
|
+
isNonNullable = (i2) => i2 != null;
|
|
2878
|
+
filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
2724
2879
|
access = (v) => typeof v === "function" && !v.length ? v() : v;
|
|
2725
2880
|
asArray = (value) => Array.isArray(value) ? value : value ? [value] : [];
|
|
2726
2881
|
tryOnCleanup = isDev ? (fn) => getOwner() ? onCleanup(fn) : fn : onCleanup;
|
|
2727
2882
|
}
|
|
2728
2883
|
});
|
|
2729
2884
|
|
|
2730
|
-
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.
|
|
2885
|
+
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.8.1/node_modules/@solid-primitives/utils/dist/index/index.js
|
|
2731
2886
|
var init_index = __esm({
|
|
2732
|
-
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.
|
|
2887
|
+
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.8.1/node_modules/@solid-primitives/utils/dist/index/index.js"() {
|
|
2733
2888
|
init_R5675YMU();
|
|
2734
2889
|
}
|
|
2735
2890
|
});
|
|
2736
2891
|
|
|
2737
|
-
// ../../node_modules/.pnpm/@solid-primitives+refs@1.0.
|
|
2892
|
+
// ../../node_modules/.pnpm/@solid-primitives+refs@1.0.5_solid-js@1.8.1/node_modules/@solid-primitives/refs/dist/index.js
|
|
2893
|
+
function mergeRefs(...refs) {
|
|
2894
|
+
return chain(refs);
|
|
2895
|
+
}
|
|
2738
2896
|
function getResolvedElements(value, predicate) {
|
|
2739
2897
|
if (predicate(value))
|
|
2740
2898
|
return value;
|
|
@@ -2764,14 +2922,15 @@ function resolveElements(fn, predicate = defaultElementPredicate, serverPredicat
|
|
|
2764
2922
|
}
|
|
2765
2923
|
var defaultElementPredicate;
|
|
2766
2924
|
var init_dist2 = __esm({
|
|
2767
|
-
"../../node_modules/.pnpm/@solid-primitives+refs@1.0.
|
|
2925
|
+
"../../node_modules/.pnpm/@solid-primitives+refs@1.0.5_solid-js@1.8.1/node_modules/@solid-primitives/refs/dist/index.js"() {
|
|
2926
|
+
init_index();
|
|
2768
2927
|
init_solid();
|
|
2769
2928
|
init_web();
|
|
2770
2929
|
defaultElementPredicate = isServer ? (item) => item != null && typeof item === "object" && "t" in item : (item) => item instanceof Element;
|
|
2771
2930
|
}
|
|
2772
2931
|
});
|
|
2773
2932
|
|
|
2774
|
-
// ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.
|
|
2933
|
+
// ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.8.1/node_modules/solid-transition-group/dist/index.js
|
|
2775
2934
|
function createClassnames(props) {
|
|
2776
2935
|
return createMemo(() => {
|
|
2777
2936
|
const name = props.name || "s";
|
|
@@ -2847,7 +3006,7 @@ function exitTransition(classnames, events, el, done) {
|
|
|
2847
3006
|
}
|
|
2848
3007
|
var TransitionGroup;
|
|
2849
3008
|
var init_dist3 = __esm({
|
|
2850
|
-
"../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.
|
|
3009
|
+
"../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.8.1/node_modules/solid-transition-group/dist/index.js"() {
|
|
2851
3010
|
init_solid();
|
|
2852
3011
|
init_dist();
|
|
2853
3012
|
init_dist2();
|
|
@@ -2901,7 +3060,7 @@ var init_dist3 = __esm({
|
|
|
2901
3060
|
}
|
|
2902
3061
|
});
|
|
2903
3062
|
|
|
2904
|
-
// ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.
|
|
3063
|
+
// ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.8.1/node_modules/@solid-primitives/keyed/dist/index.js
|
|
2905
3064
|
function dispose2(list) {
|
|
2906
3065
|
for (const o2 of list)
|
|
2907
3066
|
o2.dispose();
|
|
@@ -2956,11 +3115,11 @@ function keyArray(items, keyFn, mapFn, options = {}) {
|
|
|
2956
3115
|
const item = list[i2];
|
|
2957
3116
|
const key = keyFn(item, i2);
|
|
2958
3117
|
prevKeys.delete(key);
|
|
2959
|
-
const
|
|
2960
|
-
if (
|
|
2961
|
-
result[i2] =
|
|
2962
|
-
|
|
2963
|
-
|
|
3118
|
+
const lookup = prev.get(key);
|
|
3119
|
+
if (lookup) {
|
|
3120
|
+
result[i2] = lookup.mapped;
|
|
3121
|
+
lookup.setIndex?.(i2);
|
|
3122
|
+
lookup.setItem(() => item);
|
|
2964
3123
|
} else
|
|
2965
3124
|
addNewItem(result, item, i2, key);
|
|
2966
3125
|
}
|
|
@@ -2999,64 +3158,14 @@ function Key(props) {
|
|
|
2999
3158
|
}
|
|
3000
3159
|
var FALLBACK2;
|
|
3001
3160
|
var init_dist4 = __esm({
|
|
3002
|
-
"../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.
|
|
3161
|
+
"../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.8.1/node_modules/@solid-primitives/keyed/dist/index.js"() {
|
|
3003
3162
|
init_solid();
|
|
3004
3163
|
init_web();
|
|
3005
3164
|
FALLBACK2 = Symbol("fallback");
|
|
3006
3165
|
}
|
|
3007
3166
|
});
|
|
3008
3167
|
|
|
3009
|
-
// ../../node_modules/.pnpm/@solid-primitives+
|
|
3010
|
-
function handleDiffArray2(current, prev, handleAdded, handleRemoved) {
|
|
3011
|
-
const currLength = current.length;
|
|
3012
|
-
const prevLength = prev.length;
|
|
3013
|
-
let i2 = 0;
|
|
3014
|
-
if (!prevLength) {
|
|
3015
|
-
for (; i2 < currLength; i2++)
|
|
3016
|
-
handleAdded(current[i2]);
|
|
3017
|
-
return;
|
|
3018
|
-
}
|
|
3019
|
-
if (!currLength) {
|
|
3020
|
-
for (; i2 < prevLength; i2++)
|
|
3021
|
-
handleRemoved(prev[i2]);
|
|
3022
|
-
return;
|
|
3023
|
-
}
|
|
3024
|
-
for (; i2 < prevLength; i2++) {
|
|
3025
|
-
if (prev[i2] !== current[i2])
|
|
3026
|
-
break;
|
|
3027
|
-
}
|
|
3028
|
-
let prevEl;
|
|
3029
|
-
let currEl;
|
|
3030
|
-
prev = prev.slice(i2);
|
|
3031
|
-
current = current.slice(i2);
|
|
3032
|
-
for (prevEl of prev) {
|
|
3033
|
-
if (!current.includes(prevEl))
|
|
3034
|
-
handleRemoved(prevEl);
|
|
3035
|
-
}
|
|
3036
|
-
for (currEl of current) {
|
|
3037
|
-
if (!prev.includes(currEl))
|
|
3038
|
-
handleAdded(currEl);
|
|
3039
|
-
}
|
|
3040
|
-
}
|
|
3041
|
-
var noop3, isNonNullable2, filterNonNullable2, access2, asArray2;
|
|
3042
|
-
var init_APG4HSEJ = __esm({
|
|
3043
|
-
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/APG4HSEJ.js"() {
|
|
3044
|
-
noop3 = () => void 0;
|
|
3045
|
-
isNonNullable2 = (i2) => i2 != null;
|
|
3046
|
-
filterNonNullable2 = (arr) => arr.filter(isNonNullable2);
|
|
3047
|
-
access2 = (v) => typeof v === "function" && !v.length ? v() : v;
|
|
3048
|
-
asArray2 = (value) => Array.isArray(value) ? value : value ? [value] : [];
|
|
3049
|
-
}
|
|
3050
|
-
});
|
|
3051
|
-
|
|
3052
|
-
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/index/index.js
|
|
3053
|
-
var init_index2 = __esm({
|
|
3054
|
-
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/index/index.js"() {
|
|
3055
|
-
init_APG4HSEJ();
|
|
3056
|
-
}
|
|
3057
|
-
});
|
|
3058
|
-
|
|
3059
|
-
// ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.7.8/node_modules/@solid-primitives/storage/dist/index.js
|
|
3168
|
+
// ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.1/node_modules/@solid-primitives/storage/dist/index.js
|
|
3060
3169
|
function createStorage(props) {
|
|
3061
3170
|
const [error, setError] = createSignal();
|
|
3062
3171
|
const handleError2 = props?.throw ? (err, fallback) => {
|
|
@@ -3201,7 +3310,7 @@ function createStorage(props) {
|
|
|
3201
3310
|
}
|
|
3202
3311
|
var createLocalStorage, addClearMethod, serializeCookieOptions, cookieStorage;
|
|
3203
3312
|
var init_dist5 = __esm({
|
|
3204
|
-
"../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.
|
|
3313
|
+
"../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.1/node_modules/@solid-primitives/storage/dist/index.js"() {
|
|
3205
3314
|
init_solid();
|
|
3206
3315
|
createLocalStorage = createStorage;
|
|
3207
3316
|
addClearMethod = (storage) => {
|
|
@@ -3281,10 +3390,37 @@ var init_dist5 = __esm({
|
|
|
3281
3390
|
}
|
|
3282
3391
|
});
|
|
3283
3392
|
|
|
3284
|
-
// ../../node_modules/.pnpm/@solid-primitives+
|
|
3393
|
+
// ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.0_solid-js@1.8.1/node_modules/@solid-primitives/event-listener/dist/index.js
|
|
3394
|
+
function makeEventListener(target, type, handler, options) {
|
|
3395
|
+
target.addEventListener(type, handler, options);
|
|
3396
|
+
return tryOnCleanup(target.removeEventListener.bind(target, type, handler, options));
|
|
3397
|
+
}
|
|
3398
|
+
function createEventListener(targets, type, handler, options) {
|
|
3399
|
+
if (isServer)
|
|
3400
|
+
return;
|
|
3401
|
+
const attachListeners = () => {
|
|
3402
|
+
asArray(access(targets)).forEach((el) => {
|
|
3403
|
+
if (el)
|
|
3404
|
+
asArray(access(type)).forEach((type2) => makeEventListener(el, type2, handler, options));
|
|
3405
|
+
});
|
|
3406
|
+
};
|
|
3407
|
+
if (typeof targets === "function")
|
|
3408
|
+
createEffect(attachListeners);
|
|
3409
|
+
else
|
|
3410
|
+
createRenderEffect(attachListeners);
|
|
3411
|
+
}
|
|
3412
|
+
var init_dist6 = __esm({
|
|
3413
|
+
"../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.0_solid-js@1.8.1/node_modules/@solid-primitives/event-listener/dist/index.js"() {
|
|
3414
|
+
init_index();
|
|
3415
|
+
init_solid();
|
|
3416
|
+
init_web();
|
|
3417
|
+
}
|
|
3418
|
+
});
|
|
3419
|
+
|
|
3420
|
+
// ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.8.1/node_modules/@solid-primitives/resize-observer/dist/index.js
|
|
3285
3421
|
function makeResizeObserver(callback, options) {
|
|
3286
3422
|
if (isServer) {
|
|
3287
|
-
return { observe:
|
|
3423
|
+
return { observe: noop2, unobserve: noop2 };
|
|
3288
3424
|
}
|
|
3289
3425
|
const observer = new ResizeObserver(callback);
|
|
3290
3426
|
onCleanup(observer.disconnect.bind(observer));
|
|
@@ -3296,8 +3432,8 @@ function makeResizeObserver(callback, options) {
|
|
|
3296
3432
|
function createResizeObserver(targets, onResize, options) {
|
|
3297
3433
|
if (isServer)
|
|
3298
3434
|
return;
|
|
3299
|
-
const previousMap = /* @__PURE__ */ new WeakMap(), { observe, unobserve } = makeResizeObserver((
|
|
3300
|
-
for (const entry of
|
|
3435
|
+
const previousMap = /* @__PURE__ */ new WeakMap(), { observe, unobserve } = makeResizeObserver((entries2) => {
|
|
3436
|
+
for (const entry of entries2) {
|
|
3301
3437
|
const { contentRect, target } = entry, width = Math.round(contentRect.width), height = Math.round(contentRect.height), previous = previousMap.get(target);
|
|
3302
3438
|
if (!previous || previous.width !== width || previous.height !== height) {
|
|
3303
3439
|
onResize(contentRect, target, entry);
|
|
@@ -3306,48 +3442,21 @@ function createResizeObserver(targets, onResize, options) {
|
|
|
3306
3442
|
}
|
|
3307
3443
|
}, options);
|
|
3308
3444
|
createEffect((prev) => {
|
|
3309
|
-
const refs =
|
|
3310
|
-
|
|
3445
|
+
const refs = filterNonNullable(asArray(access(targets)));
|
|
3446
|
+
handleDiffArray(refs, prev, observe, unobserve);
|
|
3311
3447
|
return refs;
|
|
3312
3448
|
}, []);
|
|
3313
3449
|
}
|
|
3314
|
-
var init_dist6 = __esm({
|
|
3315
|
-
"../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.7.8/node_modules/@solid-primitives/resize-observer/dist/index.js"() {
|
|
3316
|
-
init_index2();
|
|
3317
|
-
init_solid();
|
|
3318
|
-
init_web();
|
|
3319
|
-
}
|
|
3320
|
-
});
|
|
3321
|
-
|
|
3322
|
-
// ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.0_solid-js@1.7.8/node_modules/@solid-primitives/event-listener/dist/index.js
|
|
3323
|
-
function makeEventListener(target, type, handler, options) {
|
|
3324
|
-
target.addEventListener(type, handler, options);
|
|
3325
|
-
return tryOnCleanup(target.removeEventListener.bind(target, type, handler, options));
|
|
3326
|
-
}
|
|
3327
|
-
function createEventListener(targets, type, handler, options) {
|
|
3328
|
-
if (isServer)
|
|
3329
|
-
return;
|
|
3330
|
-
const attachListeners = () => {
|
|
3331
|
-
asArray(access(targets)).forEach((el) => {
|
|
3332
|
-
if (el)
|
|
3333
|
-
asArray(access(type)).forEach((type2) => makeEventListener(el, type2, handler, options));
|
|
3334
|
-
});
|
|
3335
|
-
};
|
|
3336
|
-
if (typeof targets === "function")
|
|
3337
|
-
createEffect(attachListeners);
|
|
3338
|
-
else
|
|
3339
|
-
createRenderEffect(attachListeners);
|
|
3340
|
-
}
|
|
3341
3450
|
var init_dist7 = __esm({
|
|
3342
|
-
"../../node_modules/.pnpm/@solid-primitives+
|
|
3451
|
+
"../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.8.1/node_modules/@solid-primitives/resize-observer/dist/index.js"() {
|
|
3343
3452
|
init_index();
|
|
3344
3453
|
init_solid();
|
|
3345
3454
|
init_web();
|
|
3346
3455
|
}
|
|
3347
3456
|
});
|
|
3348
3457
|
|
|
3349
|
-
// ../../node_modules/.pnpm/@solid-primitives+props@3.1.8_solid-js@1.
|
|
3350
|
-
function
|
|
3458
|
+
// ../../node_modules/.pnpm/@solid-primitives+props@3.1.8_solid-js@1.8.1/node_modules/@solid-primitives/props/dist/index.js
|
|
3459
|
+
function trueFn3() {
|
|
3351
3460
|
return true;
|
|
3352
3461
|
}
|
|
3353
3462
|
function stringStyleToObject(style2) {
|
|
@@ -3431,7 +3540,7 @@ function combineProps(...args) {
|
|
|
3431
3540
|
}
|
|
3432
3541
|
var propTraps2, extractCSSregex, reduce;
|
|
3433
3542
|
var init_dist8 = __esm({
|
|
3434
|
-
"../../node_modules/.pnpm/@solid-primitives+props@3.1.8_solid-js@1.
|
|
3543
|
+
"../../node_modules/.pnpm/@solid-primitives+props@3.1.8_solid-js@1.8.1/node_modules/@solid-primitives/props/dist/index.js"() {
|
|
3435
3544
|
init_solid();
|
|
3436
3545
|
init_index();
|
|
3437
3546
|
propTraps2 = {
|
|
@@ -3443,8 +3552,8 @@ var init_dist8 = __esm({
|
|
|
3443
3552
|
has(_, property) {
|
|
3444
3553
|
return _.has(property);
|
|
3445
3554
|
},
|
|
3446
|
-
set:
|
|
3447
|
-
deleteProperty:
|
|
3555
|
+
set: trueFn3,
|
|
3556
|
+
deleteProperty: trueFn3,
|
|
3448
3557
|
getOwnPropertyDescriptor(_, property) {
|
|
3449
3558
|
return {
|
|
3450
3559
|
configurable: true,
|
|
@@ -3452,8 +3561,8 @@ var init_dist8 = __esm({
|
|
|
3452
3561
|
get() {
|
|
3453
3562
|
return _.get(property);
|
|
3454
3563
|
},
|
|
3455
|
-
set:
|
|
3456
|
-
deleteProperty:
|
|
3564
|
+
set: trueFn3,
|
|
3565
|
+
deleteProperty: trueFn3
|
|
3457
3566
|
};
|
|
3458
3567
|
},
|
|
3459
3568
|
ownKeys(_) {
|
|
@@ -3475,17 +3584,7 @@ var init_dist8 = __esm({
|
|
|
3475
3584
|
}
|
|
3476
3585
|
});
|
|
3477
3586
|
|
|
3478
|
-
// ../../node_modules/.pnpm/@
|
|
3479
|
-
function mergeRefs(...refs) {
|
|
3480
|
-
return chain(refs);
|
|
3481
|
-
}
|
|
3482
|
-
var init_dist9 = __esm({
|
|
3483
|
-
"../../node_modules/.pnpm/@solid-primitives+refs@1.0.5_solid-js@1.7.8/node_modules/@solid-primitives/refs/dist/index.js"() {
|
|
3484
|
-
init_index();
|
|
3485
|
-
}
|
|
3486
|
-
});
|
|
3487
|
-
|
|
3488
|
-
// ../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.7.8/node_modules/@kobalte/utils/dist/index.js
|
|
3587
|
+
// ../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.1/node_modules/@kobalte/utils/dist/index.js
|
|
3489
3588
|
function addItemToArray(array, item, index = -1) {
|
|
3490
3589
|
if (!(index in array)) {
|
|
3491
3590
|
return [...array, item];
|
|
@@ -3719,7 +3818,7 @@ function getFocusableTreeWalker(root, opts, scope) {
|
|
|
3719
3818
|
}
|
|
3720
3819
|
return walker2;
|
|
3721
3820
|
}
|
|
3722
|
-
function
|
|
3821
|
+
function noop3() {
|
|
3723
3822
|
return;
|
|
3724
3823
|
}
|
|
3725
3824
|
function isPointInPolygon(point, polygon) {
|
|
@@ -3845,12 +3944,12 @@ function relativeOffset(ancestor, child, axis) {
|
|
|
3845
3944
|
return sum;
|
|
3846
3945
|
}
|
|
3847
3946
|
var EventKey, supportsPreventScrollCached, focusableElements, tabbableElements, FOCUSABLE_ELEMENT_SELECTOR, TABBABLE_ELEMENT_SELECTOR, transitionsByElement, transitionCallbacks, visuallyHiddenStyles;
|
|
3848
|
-
var
|
|
3849
|
-
"../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.
|
|
3947
|
+
var init_dist9 = __esm({
|
|
3948
|
+
"../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.1/node_modules/@kobalte/utils/dist/index.js"() {
|
|
3850
3949
|
init_solid();
|
|
3851
|
-
|
|
3950
|
+
init_dist6();
|
|
3852
3951
|
init_dist8();
|
|
3853
|
-
|
|
3952
|
+
init_dist2();
|
|
3854
3953
|
init_index();
|
|
3855
3954
|
EventKey = /* @__PURE__ */ ((EventKey2) => {
|
|
3856
3955
|
EventKey2["Escape"] = "Escape";
|
|
@@ -3912,7 +4011,7 @@ var init_dist10 = __esm({
|
|
|
3912
4011
|
}
|
|
3913
4012
|
});
|
|
3914
4013
|
|
|
3915
|
-
// ../../node_modules/.pnpm/solid-js@1.
|
|
4014
|
+
// ../../node_modules/.pnpm/solid-js@1.8.1/node_modules/solid-js/store/dist/store.js
|
|
3916
4015
|
function wrap$1(value) {
|
|
3917
4016
|
let p2 = value[$PROXY];
|
|
3918
4017
|
if (!p2) {
|
|
@@ -3920,9 +4019,9 @@ function wrap$1(value) {
|
|
|
3920
4019
|
value: p2 = new Proxy(value, proxyTraps$1)
|
|
3921
4020
|
});
|
|
3922
4021
|
if (!Array.isArray(value)) {
|
|
3923
|
-
const
|
|
3924
|
-
for (let i2 = 0, l2 =
|
|
3925
|
-
const prop =
|
|
4022
|
+
const keys2 = Object.keys(value), desc = Object.getOwnPropertyDescriptors(value);
|
|
4023
|
+
for (let i2 = 0, l2 = keys2.length; i2 < l2; i2++) {
|
|
4024
|
+
const prop = keys2[i2];
|
|
3926
4025
|
if (desc[prop].get) {
|
|
3927
4026
|
Object.defineProperty(value, prop, {
|
|
3928
4027
|
enumerable: desc[prop].enumerable,
|
|
@@ -3959,9 +4058,9 @@ function unwrap(item, set = /* @__PURE__ */ new Set()) {
|
|
|
3959
4058
|
item = Object.assign({}, item);
|
|
3960
4059
|
else
|
|
3961
4060
|
set.add(item);
|
|
3962
|
-
const
|
|
3963
|
-
for (let i2 = 0, l2 =
|
|
3964
|
-
prop =
|
|
4061
|
+
const keys2 = Object.keys(item), desc = Object.getOwnPropertyDescriptors(item);
|
|
4062
|
+
for (let i2 = 0, l2 = keys2.length; i2 < l2; i2++) {
|
|
4063
|
+
prop = keys2[i2];
|
|
3965
4064
|
if (desc[prop].get)
|
|
3966
4065
|
continue;
|
|
3967
4066
|
v = item[prop];
|
|
@@ -3971,16 +4070,23 @@ function unwrap(item, set = /* @__PURE__ */ new Set()) {
|
|
|
3971
4070
|
}
|
|
3972
4071
|
return item;
|
|
3973
4072
|
}
|
|
3974
|
-
function
|
|
3975
|
-
let nodes = target[
|
|
4073
|
+
function getNodes(target, symbol) {
|
|
4074
|
+
let nodes = target[symbol];
|
|
3976
4075
|
if (!nodes)
|
|
3977
|
-
Object.defineProperty(target,
|
|
4076
|
+
Object.defineProperty(target, symbol, {
|
|
3978
4077
|
value: nodes = /* @__PURE__ */ Object.create(null)
|
|
3979
4078
|
});
|
|
3980
4079
|
return nodes;
|
|
3981
4080
|
}
|
|
3982
|
-
function
|
|
3983
|
-
|
|
4081
|
+
function getNode(nodes, property, value) {
|
|
4082
|
+
if (nodes[property])
|
|
4083
|
+
return nodes[property];
|
|
4084
|
+
const [s2, set] = createSignal(value, {
|
|
4085
|
+
equals: false,
|
|
4086
|
+
internal: true
|
|
4087
|
+
});
|
|
4088
|
+
s2.$ = set;
|
|
4089
|
+
return nodes[property] = s2;
|
|
3984
4090
|
}
|
|
3985
4091
|
function proxyDescriptor$1(target, property) {
|
|
3986
4092
|
const desc = Reflect.getOwnPropertyDescriptor(target, property);
|
|
@@ -3992,45 +4098,39 @@ function proxyDescriptor$1(target, property) {
|
|
|
3992
4098
|
return desc;
|
|
3993
4099
|
}
|
|
3994
4100
|
function trackSelf(target) {
|
|
3995
|
-
|
|
3996
|
-
const nodes = getDataNodes(target);
|
|
3997
|
-
(nodes._ || (nodes._ = createDataNode()))();
|
|
3998
|
-
}
|
|
4101
|
+
getListener() && getNode(getNodes(target, $NODE), $SELF)();
|
|
3999
4102
|
}
|
|
4000
4103
|
function ownKeys(target) {
|
|
4001
4104
|
trackSelf(target);
|
|
4002
4105
|
return Reflect.ownKeys(target);
|
|
4003
4106
|
}
|
|
4004
|
-
function createDataNode(value) {
|
|
4005
|
-
const [s2, set] = createSignal(value, {
|
|
4006
|
-
equals: false,
|
|
4007
|
-
internal: true
|
|
4008
|
-
});
|
|
4009
|
-
s2.$ = set;
|
|
4010
|
-
return s2;
|
|
4011
|
-
}
|
|
4012
4107
|
function setProperty(state2, property, value, deleting = false) {
|
|
4013
4108
|
if (!deleting && state2[property] === value)
|
|
4014
4109
|
return;
|
|
4015
4110
|
const prev = state2[property], len = state2.length;
|
|
4016
|
-
if (value === void 0)
|
|
4111
|
+
if (value === void 0) {
|
|
4017
4112
|
delete state2[property];
|
|
4018
|
-
|
|
4113
|
+
if (state2[$HAS] && state2[$HAS][property] && prev !== void 0)
|
|
4114
|
+
state2[$HAS][property].$();
|
|
4115
|
+
} else {
|
|
4019
4116
|
state2[property] = value;
|
|
4020
|
-
|
|
4021
|
-
|
|
4117
|
+
if (state2[$HAS] && state2[$HAS][property] && prev === void 0)
|
|
4118
|
+
state2[$HAS][property].$();
|
|
4119
|
+
}
|
|
4120
|
+
let nodes = getNodes(state2, $NODE), node;
|
|
4121
|
+
if (node = getNode(nodes, property, prev))
|
|
4022
4122
|
node.$(() => value);
|
|
4023
4123
|
if (Array.isArray(state2) && state2.length !== len) {
|
|
4024
4124
|
for (let i2 = state2.length; i2 < len; i2++)
|
|
4025
4125
|
(node = nodes[i2]) && node.$();
|
|
4026
|
-
(node =
|
|
4126
|
+
(node = getNode(nodes, "length", len)) && node.$(state2.length);
|
|
4027
4127
|
}
|
|
4028
|
-
(node = nodes
|
|
4128
|
+
(node = nodes[$SELF]) && node.$();
|
|
4029
4129
|
}
|
|
4030
4130
|
function mergeStoreNode(state2, value) {
|
|
4031
|
-
const
|
|
4032
|
-
for (let i2 = 0; i2 <
|
|
4033
|
-
const key =
|
|
4131
|
+
const keys2 = Object.keys(value);
|
|
4132
|
+
for (let i2 = 0; i2 < keys2.length; i2 += 1) {
|
|
4133
|
+
const key = keys2[i2];
|
|
4034
4134
|
setProperty(state2, key, value[key]);
|
|
4035
4135
|
}
|
|
4036
4136
|
}
|
|
@@ -4068,11 +4168,7 @@ function updatePath(current, path, traversed = []) {
|
|
|
4068
4168
|
}
|
|
4069
4169
|
return;
|
|
4070
4170
|
} else if (isArray4 && partType === "object") {
|
|
4071
|
-
const {
|
|
4072
|
-
from = 0,
|
|
4073
|
-
to = current.length - 1,
|
|
4074
|
-
by = 1
|
|
4075
|
-
} = part;
|
|
4171
|
+
const { from = 0, to = current.length - 1, by = 1 } = part;
|
|
4076
4172
|
for (let i2 = from; i2 <= to; i2 += by) {
|
|
4077
4173
|
updatePath(current, [i2].concat(path), traversed);
|
|
4078
4174
|
}
|
|
@@ -4109,12 +4205,14 @@ function createStore(...[store, options]) {
|
|
|
4109
4205
|
}
|
|
4110
4206
|
return [wrappedStore, setStore];
|
|
4111
4207
|
}
|
|
4112
|
-
var $RAW, $NODE, proxyTraps$1;
|
|
4208
|
+
var $RAW, $NODE, $HAS, $SELF, proxyTraps$1;
|
|
4113
4209
|
var init_store = __esm({
|
|
4114
|
-
"../../node_modules/.pnpm/solid-js@1.
|
|
4210
|
+
"../../node_modules/.pnpm/solid-js@1.8.1/node_modules/solid-js/store/dist/store.js"() {
|
|
4115
4211
|
init_solid();
|
|
4116
4212
|
$RAW = Symbol("store-raw");
|
|
4117
4213
|
$NODE = Symbol("store-node");
|
|
4214
|
+
$HAS = Symbol("store-has");
|
|
4215
|
+
$SELF = Symbol("store-self");
|
|
4118
4216
|
proxyTraps$1 = {
|
|
4119
4217
|
get(target, property, receiver) {
|
|
4120
4218
|
if (property === $RAW)
|
|
@@ -4125,22 +4223,22 @@ var init_store = __esm({
|
|
|
4125
4223
|
trackSelf(target);
|
|
4126
4224
|
return receiver;
|
|
4127
4225
|
}
|
|
4128
|
-
const nodes =
|
|
4226
|
+
const nodes = getNodes(target, $NODE);
|
|
4129
4227
|
const tracked = nodes[property];
|
|
4130
4228
|
let value = tracked ? tracked() : target[property];
|
|
4131
|
-
if (property === $NODE || property === "__proto__")
|
|
4229
|
+
if (property === $NODE || property === $HAS || property === "__proto__")
|
|
4132
4230
|
return value;
|
|
4133
4231
|
if (!tracked) {
|
|
4134
4232
|
const desc = Object.getOwnPropertyDescriptor(target, property);
|
|
4135
4233
|
if (getListener() && (typeof value !== "function" || target.hasOwnProperty(property)) && !(desc && desc.get))
|
|
4136
|
-
value =
|
|
4234
|
+
value = getNode(nodes, property, value)();
|
|
4137
4235
|
}
|
|
4138
4236
|
return isWrappable(value) ? wrap$1(value) : value;
|
|
4139
4237
|
},
|
|
4140
4238
|
has(target, property) {
|
|
4141
|
-
if (property === $RAW || property === $PROXY || property === $TRACK || property === $NODE || property === "__proto__")
|
|
4239
|
+
if (property === $RAW || property === $PROXY || property === $TRACK || property === $NODE || property === $HAS || property === "__proto__")
|
|
4142
4240
|
return true;
|
|
4143
|
-
|
|
4241
|
+
getListener() && getNode(getNodes(target, $HAS), property)();
|
|
4144
4242
|
return property in target;
|
|
4145
4243
|
},
|
|
4146
4244
|
set() {
|
|
@@ -4198,8 +4296,8 @@ var init_import = __esm({
|
|
|
4198
4296
|
}
|
|
4199
4297
|
});
|
|
4200
4298
|
|
|
4201
|
-
// ../../node_modules/.pnpm/@floating-ui+utils@0.1.
|
|
4202
|
-
function
|
|
4299
|
+
// ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
4300
|
+
function clamp2(start, value, end) {
|
|
4203
4301
|
return max(start, min(value, end));
|
|
4204
4302
|
}
|
|
4205
4303
|
function evaluate(value, param) {
|
|
@@ -4303,7 +4401,7 @@ function rectToClientRect(rect) {
|
|
|
4303
4401
|
}
|
|
4304
4402
|
var sides, min, max, round, floor, createCoords, oppositeSideMap, oppositeAlignmentMap;
|
|
4305
4403
|
var init_floating_ui_utils = __esm({
|
|
4306
|
-
"../../node_modules/.pnpm/@floating-ui+utils@0.1.
|
|
4404
|
+
"../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"() {
|
|
4307
4405
|
sides = ["top", "right", "bottom", "left"];
|
|
4308
4406
|
min = Math.min;
|
|
4309
4407
|
max = Math.max;
|
|
@@ -4620,7 +4718,7 @@ var init_floating_ui_core = __esm({
|
|
|
4620
4718
|
const min$1 = minPadding;
|
|
4621
4719
|
const max2 = clientSize - arrowDimensions[length] - maxPadding;
|
|
4622
4720
|
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
4623
|
-
const offset2 =
|
|
4721
|
+
const offset2 = clamp2(min$1, center, max2);
|
|
4624
4722
|
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center != offset2 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
4625
4723
|
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
|
|
4626
4724
|
return {
|
|
@@ -4844,14 +4942,14 @@ var init_floating_ui_core = __esm({
|
|
|
4844
4942
|
const maxSide = mainAxis === "y" ? "bottom" : "right";
|
|
4845
4943
|
const min2 = mainAxisCoord + overflow[minSide];
|
|
4846
4944
|
const max2 = mainAxisCoord - overflow[maxSide];
|
|
4847
|
-
mainAxisCoord =
|
|
4945
|
+
mainAxisCoord = clamp2(min2, mainAxisCoord, max2);
|
|
4848
4946
|
}
|
|
4849
4947
|
if (checkCrossAxis) {
|
|
4850
4948
|
const minSide = crossAxis === "y" ? "top" : "left";
|
|
4851
4949
|
const maxSide = crossAxis === "y" ? "bottom" : "right";
|
|
4852
4950
|
const min2 = crossAxisCoord + overflow[minSide];
|
|
4853
4951
|
const max2 = crossAxisCoord - overflow[maxSide];
|
|
4854
|
-
crossAxisCoord =
|
|
4952
|
+
crossAxisCoord = clamp2(min2, crossAxisCoord, max2);
|
|
4855
4953
|
}
|
|
4856
4954
|
const limitedCoords = limiter.fn({
|
|
4857
4955
|
...state2,
|
|
@@ -4947,7 +5045,7 @@ var init_floating_ui_core = __esm({
|
|
|
4947
5045
|
}
|
|
4948
5046
|
});
|
|
4949
5047
|
|
|
4950
|
-
// ../../node_modules/.pnpm/@floating-ui+utils@0.1.
|
|
5048
|
+
// ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
|
|
4951
5049
|
function getNodeName(node) {
|
|
4952
5050
|
if (isNode(node)) {
|
|
4953
5051
|
return (node.nodeName || "").toLowerCase();
|
|
@@ -5068,7 +5166,7 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
5068
5166
|
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
5069
5167
|
}
|
|
5070
5168
|
var init_floating_ui_utils_dom = __esm({
|
|
5071
|
-
"../../node_modules/.pnpm/@floating-ui+utils@0.1.
|
|
5169
|
+
"../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs"() {
|
|
5072
5170
|
}
|
|
5073
5171
|
});
|
|
5074
5172
|
|
|
@@ -5459,8 +5557,8 @@ function observeMove(element, onMove) {
|
|
|
5459
5557
|
threshold: max(0, min(1, threshold)) || 1
|
|
5460
5558
|
};
|
|
5461
5559
|
let isFirstUpdate = true;
|
|
5462
|
-
function handleObserve(
|
|
5463
|
-
const ratio =
|
|
5560
|
+
function handleObserve(entries2) {
|
|
5561
|
+
const ratio = entries2[0].intersectionRatio;
|
|
5464
5562
|
if (ratio !== threshold) {
|
|
5465
5563
|
if (!isFirstUpdate) {
|
|
5466
5564
|
return refresh();
|
|
@@ -6149,7 +6247,7 @@ function ariaHideOutside(targets, root = document.body) {
|
|
|
6149
6247
|
}
|
|
6150
6248
|
function createInteractOutside(props, ref) {
|
|
6151
6249
|
let pointerDownTimeoutId;
|
|
6152
|
-
let clickHandler =
|
|
6250
|
+
let clickHandler = noop3;
|
|
6153
6251
|
const ownerDocument = () => getDocument(ref());
|
|
6154
6252
|
const onPointerDownOutside = (e2) => props.onPointerDownOutside?.(e2);
|
|
6155
6253
|
const onFocusOutside = (e2) => props.onFocusOutside?.(e2);
|
|
@@ -6645,9 +6743,9 @@ function createMultipleSelectionState(props) {
|
|
|
6645
6743
|
const [selectionBehavior, setSelectionBehavior] = createSignal(access(props.selectionBehavior));
|
|
6646
6744
|
const selectionMode = () => access(props.selectionMode);
|
|
6647
6745
|
const disallowEmptySelection = () => access(props.disallowEmptySelection) ?? false;
|
|
6648
|
-
const setSelectedKeys = (
|
|
6649
|
-
if (access(props.allowDuplicateSelectionEvents) || !isSameSelection(
|
|
6650
|
-
_setSelectedKeys(
|
|
6746
|
+
const setSelectedKeys = (keys2) => {
|
|
6747
|
+
if (access(props.allowDuplicateSelectionEvents) || !isSameSelection(keys2, selectedKeys())) {
|
|
6748
|
+
_setSelectedKeys(keys2);
|
|
6651
6749
|
}
|
|
6652
6750
|
};
|
|
6653
6751
|
createEffect(() => {
|
|
@@ -8956,8 +9054,8 @@ function DropdownMenuRoot(props) {
|
|
|
8956
9054
|
}
|
|
8957
9055
|
var DATA_TOP_LAYER_ATTR, originalBodyPointerEvents, hasDisabledBodyPointerEvents, layers, layerStack, AUTOFOCUS_ON_MOUNT_EVENT, AUTOFOCUS_ON_UNMOUNT_EVENT, EVENT_OPTIONS, focusScopeStack, DATA_LIVE_ANNOUNCER_ATTR, refCountMap, observerStack, POINTER_DOWN_OUTSIDE_EVENT, FOCUS_OUTSIDE_EVENT, SCROLL_LOCK_IDENTIFIER, AS_COMPONENT_SYMBOL, RTL_SCRIPTS, RTL_LANGS, currentLocale, listeners, I18nContext, cache$1, Selection, SelectionManager, ListCollection, ListKeyboardDelegate, BUTTON_INPUT_TYPES, DomCollectionContext, DismissableLayerContext, PopperContext, _tmpl$$e, DEFAULT_SIZE, HALF_DEFAULT_SIZE, ROTATION_DEG, REVERSE_BASE_PLACEMENT, MenuContext, MenuRootContext, MenuItemContext, MenuGroupContext, MenuRadioGroupContext, SUB_CLOSE_KEYS, SELECTION_KEYS, SUB_OPEN_KEYS, index$d;
|
|
8958
9056
|
var init_esm = __esm({
|
|
8959
|
-
"../../node_modules/.pnpm/@kobalte+core@0.11.0_solid-js@1.
|
|
8960
|
-
|
|
9057
|
+
"../../node_modules/.pnpm/@kobalte+core@0.11.0_solid-js@1.8.1/node_modules/@kobalte/core/dist/esm/index.js"() {
|
|
9058
|
+
init_dist9();
|
|
8961
9059
|
init_store();
|
|
8962
9060
|
init_web();
|
|
8963
9061
|
init_solid();
|
|
@@ -9017,11 +9115,11 @@ var init_esm = __esm({
|
|
|
9017
9115
|
I18nContext = createContext();
|
|
9018
9116
|
cache$1 = /* @__PURE__ */ new Map();
|
|
9019
9117
|
Selection = class _Selection extends Set {
|
|
9020
|
-
constructor(
|
|
9021
|
-
super(
|
|
9022
|
-
if (
|
|
9023
|
-
this.anchorKey = anchorKey ||
|
|
9024
|
-
this.currentKey = currentKey ||
|
|
9118
|
+
constructor(keys2, anchorKey, currentKey) {
|
|
9119
|
+
super(keys2);
|
|
9120
|
+
if (keys2 instanceof _Selection) {
|
|
9121
|
+
this.anchorKey = anchorKey || keys2.anchorKey;
|
|
9122
|
+
this.currentKey = currentKey || keys2.currentKey;
|
|
9025
9123
|
} else {
|
|
9026
9124
|
this.anchorKey = anchorKey;
|
|
9027
9125
|
this.currentKey = currentKey;
|
|
@@ -9154,15 +9252,15 @@ var init_esm = __esm({
|
|
|
9154
9252
|
return [];
|
|
9155
9253
|
}
|
|
9156
9254
|
getKeyRangeInternal(from, to) {
|
|
9157
|
-
const
|
|
9255
|
+
const keys2 = [];
|
|
9158
9256
|
let key = from;
|
|
9159
9257
|
while (key != null) {
|
|
9160
9258
|
const item = this.collection().getItem(key);
|
|
9161
9259
|
if (item && item.type === "item") {
|
|
9162
|
-
|
|
9260
|
+
keys2.push(key);
|
|
9163
9261
|
}
|
|
9164
9262
|
if (key === to) {
|
|
9165
|
-
return
|
|
9263
|
+
return keys2;
|
|
9166
9264
|
}
|
|
9167
9265
|
key = this.collection().getKeyAfter(key);
|
|
9168
9266
|
}
|
|
@@ -9191,18 +9289,18 @@ var init_esm = __esm({
|
|
|
9191
9289
|
if (retrievedKey == null) {
|
|
9192
9290
|
return;
|
|
9193
9291
|
}
|
|
9194
|
-
const
|
|
9195
|
-
if (
|
|
9196
|
-
|
|
9292
|
+
const keys2 = new Selection(this.state.selectedKeys());
|
|
9293
|
+
if (keys2.has(retrievedKey)) {
|
|
9294
|
+
keys2.delete(retrievedKey);
|
|
9197
9295
|
} else if (this.canSelectItem(retrievedKey)) {
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9296
|
+
keys2.add(retrievedKey);
|
|
9297
|
+
keys2.anchorKey = retrievedKey;
|
|
9298
|
+
keys2.currentKey = retrievedKey;
|
|
9201
9299
|
}
|
|
9202
|
-
if (this.disallowEmptySelection() &&
|
|
9300
|
+
if (this.disallowEmptySelection() && keys2.size === 0) {
|
|
9203
9301
|
return;
|
|
9204
9302
|
}
|
|
9205
|
-
this.state.setSelectedKeys(
|
|
9303
|
+
this.state.setSelectedKeys(keys2);
|
|
9206
9304
|
}
|
|
9207
9305
|
/** Replaces the selection with only the given key. */
|
|
9208
9306
|
replaceSelection(key) {
|
|
@@ -9217,12 +9315,12 @@ var init_esm = __esm({
|
|
|
9217
9315
|
this.state.setSelectedKeys(selection);
|
|
9218
9316
|
}
|
|
9219
9317
|
/** Replaces the selection with the given keys. */
|
|
9220
|
-
setSelectedKeys(
|
|
9318
|
+
setSelectedKeys(keys2) {
|
|
9221
9319
|
if (this.selectionMode() === "none") {
|
|
9222
9320
|
return;
|
|
9223
9321
|
}
|
|
9224
9322
|
const selection = new Selection();
|
|
9225
|
-
for (const key of
|
|
9323
|
+
for (const key of keys2) {
|
|
9226
9324
|
const retrievedKey = this.getKey(key);
|
|
9227
9325
|
if (retrievedKey != null) {
|
|
9228
9326
|
selection.add(retrievedKey);
|
|
@@ -9307,7 +9405,7 @@ var init_esm = __esm({
|
|
|
9307
9405
|
return !item || item.disabled;
|
|
9308
9406
|
}
|
|
9309
9407
|
getAllSelectableKeys() {
|
|
9310
|
-
const
|
|
9408
|
+
const keys2 = [];
|
|
9311
9409
|
const addKeys = (key) => {
|
|
9312
9410
|
while (key != null) {
|
|
9313
9411
|
if (this.canSelectItem(key)) {
|
|
@@ -9316,14 +9414,14 @@ var init_esm = __esm({
|
|
|
9316
9414
|
continue;
|
|
9317
9415
|
}
|
|
9318
9416
|
if (item.type === "item") {
|
|
9319
|
-
|
|
9417
|
+
keys2.push(key);
|
|
9320
9418
|
}
|
|
9321
9419
|
}
|
|
9322
9420
|
key = this.collection().getKeyAfter(key);
|
|
9323
9421
|
}
|
|
9324
9422
|
};
|
|
9325
9423
|
addKeys(this.collection().getFirstKey());
|
|
9326
|
-
return
|
|
9424
|
+
return keys2;
|
|
9327
9425
|
}
|
|
9328
9426
|
};
|
|
9329
9427
|
ListCollection = class {
|
|
@@ -9379,8 +9477,8 @@ var init_esm = __esm({
|
|
|
9379
9477
|
return this.keyMap.get(key);
|
|
9380
9478
|
}
|
|
9381
9479
|
at(idx) {
|
|
9382
|
-
const
|
|
9383
|
-
return this.getItem(
|
|
9480
|
+
const keys2 = [...this.getKeys()];
|
|
9481
|
+
return this.getItem(keys2[idx]);
|
|
9384
9482
|
}
|
|
9385
9483
|
};
|
|
9386
9484
|
ListKeyboardDelegate = class {
|
|
@@ -10858,12 +10956,12 @@ var init_accessDeep = __esm({
|
|
|
10858
10956
|
init_is();
|
|
10859
10957
|
init_util();
|
|
10860
10958
|
getNthKey = function(value, n2) {
|
|
10861
|
-
var
|
|
10959
|
+
var keys2 = value.keys();
|
|
10862
10960
|
while (n2 > 0) {
|
|
10863
|
-
|
|
10961
|
+
keys2.next();
|
|
10864
10962
|
n2--;
|
|
10865
10963
|
}
|
|
10866
|
-
return
|
|
10964
|
+
return keys2.next().value;
|
|
10867
10965
|
};
|
|
10868
10966
|
getDeep = function(object, path) {
|
|
10869
10967
|
validatePath(path);
|
|
@@ -11164,12 +11262,12 @@ function isPlainObject2(payload) {
|
|
|
11164
11262
|
function isArray3(payload) {
|
|
11165
11263
|
return getType2(payload) === "Array";
|
|
11166
11264
|
}
|
|
11167
|
-
var
|
|
11265
|
+
var init_dist10 = __esm({
|
|
11168
11266
|
"../../node_modules/.pnpm/is-what@4.1.15/node_modules/is-what/dist/index.js"() {
|
|
11169
11267
|
}
|
|
11170
11268
|
});
|
|
11171
11269
|
|
|
11172
|
-
// ../../node_modules/.pnpm/copy-anything@3.0.
|
|
11270
|
+
// ../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js
|
|
11173
11271
|
function assignProp2(carry, key, newVal, originalObject, includeNonenumerable) {
|
|
11174
11272
|
const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
|
|
11175
11273
|
if (propType === "enumerable")
|
|
@@ -11202,9 +11300,9 @@ function copy(target, options = {}) {
|
|
|
11202
11300
|
return carry;
|
|
11203
11301
|
}, {});
|
|
11204
11302
|
}
|
|
11205
|
-
var
|
|
11206
|
-
"../../node_modules/.pnpm/copy-anything@3.0.
|
|
11207
|
-
|
|
11303
|
+
var init_dist11 = __esm({
|
|
11304
|
+
"../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js"() {
|
|
11305
|
+
init_dist10();
|
|
11208
11306
|
}
|
|
11209
11307
|
});
|
|
11210
11308
|
|
|
@@ -11216,7 +11314,7 @@ var init_esm2 = __esm({
|
|
|
11216
11314
|
init_registry();
|
|
11217
11315
|
init_custom_transformer_registry();
|
|
11218
11316
|
init_plainer();
|
|
11219
|
-
|
|
11317
|
+
init_dist11();
|
|
11220
11318
|
__assign2 = function() {
|
|
11221
11319
|
__assign2 = Object.assign || function(t2) {
|
|
11222
11320
|
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
@@ -11354,10 +11452,11 @@ function getQueryStatusColor({
|
|
|
11354
11452
|
function getQueryStatusColorByLabel(label) {
|
|
11355
11453
|
return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
|
|
11356
11454
|
}
|
|
11357
|
-
var displayValue, getStatusRank, queryHashSort, dateSort, statusAndDateSort, sortFns, convertRemToPixels, updateNestedDataByPath, deleteNestedDataByPath;
|
|
11455
|
+
var displayValue, getStatusRank, queryHashSort, dateSort, statusAndDateSort, sortFns, convertRemToPixels, getPreferredColorScheme, updateNestedDataByPath, deleteNestedDataByPath;
|
|
11358
11456
|
var init_utils = __esm({
|
|
11359
11457
|
"src/utils.tsx"() {
|
|
11360
11458
|
init_esm2();
|
|
11459
|
+
init_solid();
|
|
11361
11460
|
displayValue = (value, beautify = false) => {
|
|
11362
11461
|
const {
|
|
11363
11462
|
json
|
|
@@ -11381,6 +11480,19 @@ var init_utils = __esm({
|
|
|
11381
11480
|
convertRemToPixels = (rem) => {
|
|
11382
11481
|
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
11383
11482
|
};
|
|
11483
|
+
getPreferredColorScheme = () => {
|
|
11484
|
+
const [colorScheme, setColorScheme] = createSignal("dark");
|
|
11485
|
+
onMount(() => {
|
|
11486
|
+
const query = window.matchMedia("(prefers-color-scheme: dark)");
|
|
11487
|
+
setColorScheme(query.matches ? "dark" : "light");
|
|
11488
|
+
const listener = (e2) => {
|
|
11489
|
+
setColorScheme(e2.matches ? "dark" : "light");
|
|
11490
|
+
};
|
|
11491
|
+
query.addEventListener("change", listener);
|
|
11492
|
+
onCleanup(() => query.removeEventListener("change", listener));
|
|
11493
|
+
});
|
|
11494
|
+
return colorScheme;
|
|
11495
|
+
};
|
|
11384
11496
|
updateNestedDataByPath = (oldData, updatePath2, value) => {
|
|
11385
11497
|
if (updatePath2.length === 0) {
|
|
11386
11498
|
return value;
|
|
@@ -11494,62 +11606,171 @@ function ArrowRight() {
|
|
|
11494
11606
|
return _el$7;
|
|
11495
11607
|
})();
|
|
11496
11608
|
}
|
|
11497
|
-
function
|
|
11609
|
+
function Sun() {
|
|
11498
11610
|
return _tmpl$6();
|
|
11499
11611
|
}
|
|
11500
|
-
function
|
|
11501
|
-
return (
|
|
11502
|
-
const _el$9 = _tmpl$7();
|
|
11503
|
-
createRenderEffect((_p$) => {
|
|
11504
|
-
const _v$ = tokens.colors.yellow[500], _v$2 = tokens.colors.yellow[500];
|
|
11505
|
-
_v$ !== _p$._v$ && setAttribute(_el$9, "stroke", _p$._v$ = _v$);
|
|
11506
|
-
_v$2 !== _p$._v$2 && setAttribute(_el$9, "fill", _p$._v$2 = _v$2);
|
|
11507
|
-
return _p$;
|
|
11508
|
-
}, {
|
|
11509
|
-
_v$: void 0,
|
|
11510
|
-
_v$2: void 0
|
|
11511
|
-
});
|
|
11512
|
-
return _el$9;
|
|
11513
|
-
})();
|
|
11612
|
+
function Moon() {
|
|
11613
|
+
return _tmpl$7();
|
|
11514
11614
|
}
|
|
11515
|
-
function
|
|
11615
|
+
function Monitor() {
|
|
11516
11616
|
return _tmpl$8();
|
|
11517
11617
|
}
|
|
11518
|
-
function
|
|
11618
|
+
function Wifi() {
|
|
11519
11619
|
return _tmpl$9();
|
|
11520
11620
|
}
|
|
11521
|
-
function
|
|
11621
|
+
function Offline() {
|
|
11522
11622
|
return _tmpl$10();
|
|
11523
11623
|
}
|
|
11524
|
-
function
|
|
11624
|
+
function Settings() {
|
|
11525
11625
|
return _tmpl$11();
|
|
11526
11626
|
}
|
|
11527
|
-
function
|
|
11627
|
+
function Copier() {
|
|
11528
11628
|
return _tmpl$12();
|
|
11529
11629
|
}
|
|
11630
|
+
function CopiedCopier(props) {
|
|
11631
|
+
return (() => {
|
|
11632
|
+
const _el$15 = _tmpl$13(), _el$16 = _el$15.firstChild;
|
|
11633
|
+
createRenderEffect(() => setAttribute(_el$16, "stroke", props.theme === "dark" ? "#12B76A" : "#027A48"));
|
|
11634
|
+
return _el$15;
|
|
11635
|
+
})();
|
|
11636
|
+
}
|
|
11637
|
+
function ErrorCopier() {
|
|
11638
|
+
return _tmpl$14();
|
|
11639
|
+
}
|
|
11640
|
+
function List() {
|
|
11641
|
+
return _tmpl$15();
|
|
11642
|
+
}
|
|
11643
|
+
function Check(props) {
|
|
11644
|
+
return [createComponent(Show, {
|
|
11645
|
+
get when() {
|
|
11646
|
+
return props.checked;
|
|
11647
|
+
},
|
|
11648
|
+
get children() {
|
|
11649
|
+
const _el$19 = _tmpl$13(), _el$20 = _el$19.firstChild;
|
|
11650
|
+
createRenderEffect(() => setAttribute(_el$20, "stroke", props.theme === "dark" ? "#9B8AFB" : "#6938EF"));
|
|
11651
|
+
return _el$19;
|
|
11652
|
+
}
|
|
11653
|
+
}), createComponent(Show, {
|
|
11654
|
+
get when() {
|
|
11655
|
+
return !props.checked;
|
|
11656
|
+
},
|
|
11657
|
+
get children() {
|
|
11658
|
+
const _el$21 = _tmpl$16(), _el$22 = _el$21.firstChild;
|
|
11659
|
+
createRenderEffect(() => setAttribute(_el$22, "stroke", props.theme === "dark" ? "#9B8AFB" : "#6938EF"));
|
|
11660
|
+
return _el$21;
|
|
11661
|
+
}
|
|
11662
|
+
})];
|
|
11663
|
+
}
|
|
11530
11664
|
function TanstackLogo() {
|
|
11531
|
-
|
|
11665
|
+
const id = createUniqueId();
|
|
11666
|
+
return (() => {
|
|
11667
|
+
const _el$23 = _tmpl$17(), _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling, _el$26 = _el$25.nextSibling, _el$27 = _el$26.firstChild, _el$28 = _el$26.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$28.nextSibling, _el$31 = _el$30.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$31.nextSibling, _el$34 = _el$33.firstChild, _el$35 = _el$33.nextSibling, _el$36 = _el$35.nextSibling, _el$37 = _el$36.firstChild, _el$38 = _el$36.nextSibling, _el$39 = _el$38.firstChild, _el$40 = _el$38.nextSibling, _el$41 = _el$40.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$41.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$43.nextSibling, _el$46 = _el$45.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$46.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$48.nextSibling, _el$51 = _el$50.nextSibling, _el$52 = _el$51.firstChild, _el$53 = _el$51.nextSibling, _el$54 = _el$53.firstChild, _el$55 = _el$53.nextSibling, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$56.nextSibling, _el$59 = _el$58.firstChild, _el$60 = _el$58.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$62.nextSibling, _el$64 = _el$63.nextSibling, _el$65 = _el$64.nextSibling, _el$66 = _el$60.nextSibling, _el$67 = _el$66.firstChild, _el$68 = _el$66.nextSibling, _el$69 = _el$68.firstChild, _el$70 = _el$68.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$71.nextSibling, _el$73 = _el$72.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling, _el$79 = _el$78.nextSibling, _el$80 = _el$79.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$70.nextSibling, _el$87 = _el$86.firstChild, _el$88 = _el$86.nextSibling, _el$89 = _el$88.firstChild, _el$90 = _el$88.nextSibling, _el$91 = _el$90.firstChild, _el$92 = _el$91.nextSibling, _el$93 = _el$90.nextSibling, _el$94 = _el$93.firstChild, _el$95 = _el$93.nextSibling, _el$96 = _el$95.firstChild, _el$97 = _el$95.nextSibling, _el$98 = _el$97.firstChild, _el$99 = _el$98.nextSibling, _el$100 = _el$99.nextSibling, _el$101 = _el$100.nextSibling, _el$102 = _el$101.nextSibling, _el$103 = _el$102.nextSibling, _el$104 = _el$103.nextSibling, _el$105 = _el$104.nextSibling, _el$106 = _el$105.nextSibling, _el$107 = _el$106.nextSibling, _el$108 = _el$107.nextSibling, _el$109 = _el$108.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling;
|
|
11668
|
+
setAttribute(_el$24, "id", `a-${id}`);
|
|
11669
|
+
setAttribute(_el$25, "fill", `url(#a-${id})`);
|
|
11670
|
+
setAttribute(_el$27, "id", `am-${id}`);
|
|
11671
|
+
setAttribute(_el$28, "id", `b-${id}`);
|
|
11672
|
+
setAttribute(_el$29, "filter", `url(#am-${id})`);
|
|
11673
|
+
setAttribute(_el$30, "mask", `url(#b-${id})`);
|
|
11674
|
+
setAttribute(_el$32, "id", `ah-${id}`);
|
|
11675
|
+
setAttribute(_el$33, "id", `k-${id}`);
|
|
11676
|
+
setAttribute(_el$34, "filter", `url(#ah-${id})`);
|
|
11677
|
+
setAttribute(_el$35, "mask", `url(#k-${id})`);
|
|
11678
|
+
setAttribute(_el$37, "id", `ae-${id}`);
|
|
11679
|
+
setAttribute(_el$38, "id", `j-${id}`);
|
|
11680
|
+
setAttribute(_el$39, "filter", `url(#ae-${id})`);
|
|
11681
|
+
setAttribute(_el$40, "mask", `url(#j-${id})`);
|
|
11682
|
+
setAttribute(_el$42, "id", `ai-${id}`);
|
|
11683
|
+
setAttribute(_el$43, "id", `i-${id}`);
|
|
11684
|
+
setAttribute(_el$44, "filter", `url(#ai-${id})`);
|
|
11685
|
+
setAttribute(_el$45, "mask", `url(#i-${id})`);
|
|
11686
|
+
setAttribute(_el$47, "id", `aj-${id}`);
|
|
11687
|
+
setAttribute(_el$48, "id", `h-${id}`);
|
|
11688
|
+
setAttribute(_el$49, "filter", `url(#aj-${id})`);
|
|
11689
|
+
setAttribute(_el$50, "mask", `url(#h-${id})`);
|
|
11690
|
+
setAttribute(_el$52, "id", `ag-${id}`);
|
|
11691
|
+
setAttribute(_el$53, "id", `g-${id}`);
|
|
11692
|
+
setAttribute(_el$54, "filter", `url(#ag-${id})`);
|
|
11693
|
+
setAttribute(_el$55, "mask", `url(#g-${id})`);
|
|
11694
|
+
setAttribute(_el$57, "id", `af-${id}`);
|
|
11695
|
+
setAttribute(_el$58, "id", `f-${id}`);
|
|
11696
|
+
setAttribute(_el$59, "filter", `url(#af-${id})`);
|
|
11697
|
+
setAttribute(_el$60, "mask", `url(#f-${id})`);
|
|
11698
|
+
setAttribute(_el$64, "id", `m-${id}`);
|
|
11699
|
+
setAttribute(_el$65, "fill", `url(#m-${id})`);
|
|
11700
|
+
setAttribute(_el$67, "id", `ak-${id}`);
|
|
11701
|
+
setAttribute(_el$68, "id", `e-${id}`);
|
|
11702
|
+
setAttribute(_el$69, "filter", `url(#ak-${id})`);
|
|
11703
|
+
setAttribute(_el$70, "mask", `url(#e-${id})`);
|
|
11704
|
+
setAttribute(_el$71, "id", `n-${id}`);
|
|
11705
|
+
setAttribute(_el$72, "fill", `url(#n-${id})`);
|
|
11706
|
+
setAttribute(_el$74, "id", `r-${id}`);
|
|
11707
|
+
setAttribute(_el$75, "fill", `url(#r-${id})`);
|
|
11708
|
+
setAttribute(_el$76, "id", `s-${id}`);
|
|
11709
|
+
setAttribute(_el$77, "fill", `url(#s-${id})`);
|
|
11710
|
+
setAttribute(_el$78, "id", `q-${id}`);
|
|
11711
|
+
setAttribute(_el$79, "fill", `url(#q-${id})`);
|
|
11712
|
+
setAttribute(_el$80, "id", `p-${id}`);
|
|
11713
|
+
setAttribute(_el$81, "fill", `url(#p-${id})`);
|
|
11714
|
+
setAttribute(_el$82, "id", `o-${id}`);
|
|
11715
|
+
setAttribute(_el$83, "fill", `url(#o-${id})`);
|
|
11716
|
+
setAttribute(_el$84, "id", `l-${id}`);
|
|
11717
|
+
setAttribute(_el$85, "fill", `url(#l-${id})`);
|
|
11718
|
+
setAttribute(_el$87, "id", `al-${id}`);
|
|
11719
|
+
setAttribute(_el$88, "id", `d-${id}`);
|
|
11720
|
+
setAttribute(_el$89, "filter", `url(#al-${id})`);
|
|
11721
|
+
setAttribute(_el$90, "mask", `url(#d-${id})`);
|
|
11722
|
+
setAttribute(_el$91, "id", `u-${id}`);
|
|
11723
|
+
setAttribute(_el$92, "fill", `url(#u-${id})`);
|
|
11724
|
+
setAttribute(_el$94, "id", `ad-${id}`);
|
|
11725
|
+
setAttribute(_el$95, "id", `c-${id}`);
|
|
11726
|
+
setAttribute(_el$96, "filter", `url(#ad-${id})`);
|
|
11727
|
+
setAttribute(_el$97, "mask", `url(#c-${id})`);
|
|
11728
|
+
setAttribute(_el$98, "id", `t-${id}`);
|
|
11729
|
+
setAttribute(_el$99, "fill", `url(#t-${id})`);
|
|
11730
|
+
setAttribute(_el$100, "id", `v-${id}`);
|
|
11731
|
+
setAttribute(_el$101, "stroke", `url(#v-${id})`);
|
|
11732
|
+
setAttribute(_el$102, "id", `aa-${id}`);
|
|
11733
|
+
setAttribute(_el$103, "stroke", `url(#aa-${id})`);
|
|
11734
|
+
setAttribute(_el$104, "id", `w-${id}`);
|
|
11735
|
+
setAttribute(_el$105, "stroke", `url(#w-${id})`);
|
|
11736
|
+
setAttribute(_el$106, "id", `ac-${id}`);
|
|
11737
|
+
setAttribute(_el$107, "stroke", `url(#ac-${id})`);
|
|
11738
|
+
setAttribute(_el$108, "id", `ab-${id}`);
|
|
11739
|
+
setAttribute(_el$109, "stroke", `url(#ab-${id})`);
|
|
11740
|
+
setAttribute(_el$110, "id", `y-${id}`);
|
|
11741
|
+
setAttribute(_el$111, "stroke", `url(#y-${id})`);
|
|
11742
|
+
setAttribute(_el$112, "id", `x-${id}`);
|
|
11743
|
+
setAttribute(_el$113, "stroke", `url(#x-${id})`);
|
|
11744
|
+
setAttribute(_el$114, "id", `z-${id}`);
|
|
11745
|
+
setAttribute(_el$115, "stroke", `url(#z-${id})`);
|
|
11746
|
+
return _el$23;
|
|
11747
|
+
})();
|
|
11532
11748
|
}
|
|
11533
|
-
var _tmpl$, _tmpl$2, _tmpl$3, _tmpl$4, _tmpl$5, _tmpl$6, _tmpl$7, _tmpl$8, _tmpl$9, _tmpl$10, _tmpl$11, _tmpl$12, _tmpl$13;
|
|
11749
|
+
var _tmpl$, _tmpl$2, _tmpl$3, _tmpl$4, _tmpl$5, _tmpl$6, _tmpl$7, _tmpl$8, _tmpl$9, _tmpl$10, _tmpl$11, _tmpl$12, _tmpl$13, _tmpl$14, _tmpl$15, _tmpl$16, _tmpl$17;
|
|
11534
11750
|
var init_icons = __esm({
|
|
11535
11751
|
"src/icons/index.tsx"() {
|
|
11536
11752
|
init_web();
|
|
11537
11753
|
init_web();
|
|
11538
11754
|
init_web();
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
_tmpl$
|
|
11542
|
-
_tmpl$
|
|
11543
|
-
_tmpl$
|
|
11544
|
-
_tmpl$
|
|
11545
|
-
_tmpl$
|
|
11546
|
-
_tmpl$
|
|
11547
|
-
_tmpl$
|
|
11548
|
-
_tmpl$
|
|
11549
|
-
_tmpl$
|
|
11550
|
-
_tmpl$
|
|
11551
|
-
_tmpl$
|
|
11552
|
-
_tmpl$13 = /* @__PURE__ */ template(`<svg version="1.0" viewBox="0 0 633 633"><linearGradient id="a" x1="-666.45" x2="-666.45" y1="163.28" y2="163.99" gradientTransform="matrix(633 0 0 633 422177 -103358)" gradientUnits="userSpaceOnUse"><stop stop-color="#6BDAFF" offset="0"></stop><stop stop-color="#F9FFB5" offset=".32"></stop><stop stop-color="#FFA770" offset=".71"></stop><stop stop-color="#FF7373" offset="1"></stop></linearGradient><circle cx="316.5" cy="316.5" r="316.5" fill="url(#a)"></circle><defs><filter id="am" x="-137.5" y="412" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="b" x="-137.5" y="412" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#am)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#b)"><ellipse cx="89.5" cy="610.5" rx="214.5" ry="186" fill="#015064" stroke="#00CFE2" stroke-width="25"></ellipse></g><defs><filter id="ah" x="316.5" y="412" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="k" x="316.5" y="412" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ah)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#k)"><ellipse cx="543.5" cy="610.5" rx="214.5" ry="186" fill="#015064" stroke="#00CFE2" stroke-width="25"></ellipse></g><defs><filter id="ae" x="-137.5" y="450" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="j" x="-137.5" y="450" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ae)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#j)"><ellipse cx="89.5" cy="648.5" rx="214.5" ry="186" fill="#015064" stroke="#00A8B8" stroke-width="25"></ellipse></g><defs><filter id="ai" x="316.5" y="450" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="i" x="316.5" y="450" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ai)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#i)"><ellipse cx="543.5" cy="648.5" rx="214.5" ry="186" fill="#015064" stroke="#00A8B8" stroke-width="25"></ellipse></g><defs><filter id="aj" x="-137.5" y="486" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="h" x="-137.5" y="486" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#aj)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#h)"><ellipse cx="89.5" cy="684.5" rx="214.5" ry="186" fill="#015064" stroke="#007782" stroke-width="25"></ellipse></g><defs><filter id="ag" x="316.5" y="486" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="g" x="316.5" y="486" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ag)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#g)"><ellipse cx="543.5" cy="684.5" rx="214.5" ry="186" fill="#015064" stroke="#007782" stroke-width="25"></ellipse></g><defs><filter id="af" x="272.2" y="308" width="176.9" height="129.3" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="f" x="272.2" y="308" width="176.9" height="129.3" maskUnits="userSpaceOnUse"><g filter="url(#af)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#f)"><line x1="436" x2="431" y1="403.2" y2="431.8" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><line x1="291" x2="280" y1="341.5" y2="403.5" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><line x1="332.9" x2="328.6" y1="384.1" y2="411.2" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><linearGradient id="m" x1="-670.75" x2="-671.59" y1="164.4" y2="164.49" gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)" gradientUnits="userSpaceOnUse"><stop stop-color="#EE2700" offset="0"></stop><stop stop-color="#FF008E" offset="1"></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z" clip-rule="evenodd" fill="url(#m)" fill-rule="evenodd"></path><line x1="428.2" x2="429.1" y1="384.5" y2="378" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="395.2" x2="396.1" y1="379.5" y2="373" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="362.2" x2="363.1" y1="373.5" y2="367.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="324.2" x2="328.4" y1="351.3" y2="347.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="303.2" x2="307.4" y1="331.3" y2="327.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line></g><defs><filter id="ak" x="73.2" y="113.8" width="280.6" height="317.4" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="e" x="73.2" y="113.8" width="280.6" height="317.4" maskUnits="userSpaceOnUse"><g filter="url(#ak)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#e)"><linearGradient id="n" x1="-672.16" x2="-672.16" y1="165.03" y2="166.03" gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)" gradientUnits="userSpaceOnUse"><stop stop-color="#A17500" offset="0"></stop><stop stop-color="#5D2100" offset="1"></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6" clip-rule="evenodd" fill="url(#n)" fill-rule="evenodd"></path><g stroke="#2F8A00"><linearGradient id="r" x1="-660.23" x2="-660.23" y1="166.72" y2="167.72" gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z" clip-rule="evenodd" fill="url(#r)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="s" x1="-661.36" x2="-661.36" y1="164.18" y2="165.18" gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z" clip-rule="evenodd" fill="url(#s)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="q" x1="-656.79" x2="-656.79" y1="165.15" y2="166.15" gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z" clip-rule="evenodd" fill="url(#q)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="p" x1="-663.07" x2="-663.07" y1="165.44" y2="166.44" gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z" clip-rule="evenodd" fill="url(#p)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="o" x1="-662.57" x2="-662.57" y1="164.44" y2="165.44" gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z" clip-rule="evenodd" fill="url(#o)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="l" x1="-656.43" x2="-656.43" y1="163.86" y2="164.86" gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z" clip-rule="evenodd" fill="url(#l)" fill-rule="evenodd" stroke-width="13"></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32" fill="none" stroke-linecap="round" stroke-width="8"></path></g></g><defs><filter id="al" x="50.5" y="399" width="532" height="633" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="d" x="50.5" y="399" width="532" height="633" maskUnits="userSpaceOnUse"><g filter="url(#al)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#d)"><linearGradient id="u" x1="-666.06" x2="-666.23" y1="163.36" y2="163.75" gradientTransform="matrix(532 0 0 633 354760 -102959)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFF400" offset="0"></stop><stop stop-color="#3C8700" offset="1"></stop></linearGradient><ellipse cx="316.5" cy="715.5" rx="266" ry="316.5" fill="url(#u)"></ellipse></g><defs><filter id="ad" x="391" y="-24" width="288" height="283" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="c" x="391" y="-24" width="288" height="283" maskUnits="userSpaceOnUse"><g filter="url(#ad)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#c)"><linearGradient id="t" x1="-664.56" x2="-664.56" y1="163.79" y2="164.79" gradientTransform="matrix(227 0 0 227 151421 -37204)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFDF00" offset="0"></stop><stop stop-color="#FF9D00" offset="1"></stop></linearGradient><circle cx="565.5" cy="89.5" r="113.5" fill="url(#t)"></circle><linearGradient id="v" x1="-644.5" x2="-645.77" y1="342" y2="342" gradientTransform="matrix(30 0 0 1 19770 -253)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="427" x2="397" y1="89" y2="89" fill="none" stroke="url(#v)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="aa" x1="-641.56" x2="-642.83" y1="196.02" y2="196.07" gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="430.5" x2="404" y1="55.5" y2="50" fill="none" stroke="url(#aa)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="w" x1="-643.73" x2="-645" y1="185.83" y2="185.9" gradientTransform="matrix(29 0 0 8 19107 -1361)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="431" x2="402" y1="122" y2="130" fill="none" stroke="url(#w)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="ac" x1="-638.94" x2="-640.22" y1="177.09" y2="177.39" gradientTransform="matrix(24 0 0 13 15783 -2145)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="442" x2="418" y1="153" y2="166" fill="none" stroke="url(#ac)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="ab" x1="-633.42" x2="-634.7" y1="172.41" y2="173.31" gradientTransform="matrix(20 0 0 19 13137 -3096)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="464" x2="444" y1="180" y2="199" fill="none" stroke="url(#ab)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="y" x1="-619.05" x2="-619.52" y1="170.82" y2="171.82" gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="491.4" x2="477.5" y1="203" y2="225.9" fill="none" stroke="url(#y)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="x" x1="-578.5" x2="-578.63" y1="170.31" y2="171.31" gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="524.5" x2="517" y1="219.5" y2="244" fill="none" stroke="url(#x)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="z" x1="666.5" x2="666.5" y1="170.31" y2="171.31" gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="564.5" x2="565" y1="228.5" y2="253" fill="none" stroke="url(#z)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12">`);
|
|
11755
|
+
init_web();
|
|
11756
|
+
init_solid();
|
|
11757
|
+
_tmpl$ = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
11758
|
+
_tmpl$2 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
11759
|
+
_tmpl$3 = /* @__PURE__ */ template(`<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
11760
|
+
_tmpl$4 = /* @__PURE__ */ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
11761
|
+
_tmpl$5 = /* @__PURE__ */ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
11762
|
+
_tmpl$6 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
11763
|
+
_tmpl$7 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
11764
|
+
_tmpl$8 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
11765
|
+
_tmpl$9 = /* @__PURE__ */ template(`<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">`);
|
|
11766
|
+
_tmpl$10 = /* @__PURE__ */ template(`<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">`);
|
|
11767
|
+
_tmpl$11 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
11768
|
+
_tmpl$12 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>`);
|
|
11769
|
+
_tmpl$13 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
11770
|
+
_tmpl$14 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
11771
|
+
_tmpl$15 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>`);
|
|
11772
|
+
_tmpl$16 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
11773
|
+
_tmpl$17 = /* @__PURE__ */ template(`<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>`);
|
|
11553
11774
|
}
|
|
11554
11775
|
});
|
|
11555
11776
|
|
|
@@ -11557,7 +11778,10 @@ var init_icons = __esm({
|
|
|
11557
11778
|
function useQueryDevtoolsContext() {
|
|
11558
11779
|
return useContext(QueryDevtoolsContext);
|
|
11559
11780
|
}
|
|
11560
|
-
|
|
11781
|
+
function useTheme() {
|
|
11782
|
+
return useContext(ThemeContext);
|
|
11783
|
+
}
|
|
11784
|
+
var QueryDevtoolsContext, ThemeContext;
|
|
11561
11785
|
var init_Context = __esm({
|
|
11562
11786
|
"src/Context.ts"() {
|
|
11563
11787
|
init_solid();
|
|
@@ -11567,6 +11791,9 @@ var init_Context = __esm({
|
|
|
11567
11791
|
queryFlavor: "",
|
|
11568
11792
|
version: ""
|
|
11569
11793
|
});
|
|
11794
|
+
ThemeContext = createContext(
|
|
11795
|
+
() => "dark"
|
|
11796
|
+
);
|
|
11570
11797
|
}
|
|
11571
11798
|
});
|
|
11572
11799
|
|
|
@@ -11586,7 +11813,10 @@ function isIterable(x) {
|
|
|
11586
11813
|
return Symbol.iterator in x;
|
|
11587
11814
|
}
|
|
11588
11815
|
function Explorer(props) {
|
|
11589
|
-
const
|
|
11816
|
+
const theme = useTheme();
|
|
11817
|
+
const styles = createMemo(() => {
|
|
11818
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
11819
|
+
});
|
|
11590
11820
|
const queryClient = useQueryDevtoolsContext().client;
|
|
11591
11821
|
const [expanded, setExpanded] = createSignal((props.defaultExpanded || []).includes(props.label));
|
|
11592
11822
|
const toggleExpanded = () => setExpanded((old) => !old);
|
|
@@ -11629,36 +11859,36 @@ function Explorer(props) {
|
|
|
11629
11859
|
const subEntryPages = createMemo(() => chunkArray(subEntries(), 100));
|
|
11630
11860
|
const currentDataPath = props.dataPath ?? [];
|
|
11631
11861
|
return (() => {
|
|
11632
|
-
const _el$
|
|
11633
|
-
insert(_el$
|
|
11862
|
+
const _el$6 = _tmpl$62();
|
|
11863
|
+
insert(_el$6, createComponent(Show, {
|
|
11634
11864
|
get when() {
|
|
11635
11865
|
return subEntryPages().length;
|
|
11636
11866
|
},
|
|
11637
11867
|
get children() {
|
|
11638
11868
|
return [(() => {
|
|
11639
|
-
const _el$
|
|
11640
|
-
_el$
|
|
11641
|
-
insert(_el$
|
|
11869
|
+
const _el$7 = _tmpl$72(), _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$10 = _el$9.nextSibling, _el$11 = _el$10.nextSibling, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild;
|
|
11870
|
+
_el$8.$$click = () => toggleExpanded();
|
|
11871
|
+
insert(_el$8, createComponent(Expander, {
|
|
11642
11872
|
get expanded() {
|
|
11643
11873
|
return expanded();
|
|
11644
11874
|
}
|
|
11645
|
-
}), _el$
|
|
11646
|
-
insert(_el$
|
|
11647
|
-
insert(_el$
|
|
11648
|
-
insert(_el$
|
|
11649
|
-
insert(_el$
|
|
11650
|
-
insert(_el$
|
|
11875
|
+
}), _el$9);
|
|
11876
|
+
insert(_el$10, () => props.label);
|
|
11877
|
+
insert(_el$12, () => String(type()).toLowerCase() === "iterable" ? "(Iterable) " : "", _el$13);
|
|
11878
|
+
insert(_el$12, () => subEntries().length, _el$13);
|
|
11879
|
+
insert(_el$12, () => subEntries().length > 1 ? `items` : `item`, null);
|
|
11880
|
+
insert(_el$7, createComponent(Show, {
|
|
11651
11881
|
get when() {
|
|
11652
11882
|
return props.editable;
|
|
11653
11883
|
},
|
|
11654
11884
|
get children() {
|
|
11655
|
-
const _el$
|
|
11656
|
-
insert(_el$
|
|
11885
|
+
const _el$14 = _tmpl$62();
|
|
11886
|
+
insert(_el$14, createComponent(CopyButton, {
|
|
11657
11887
|
get value() {
|
|
11658
11888
|
return props.value;
|
|
11659
11889
|
}
|
|
11660
11890
|
}), null);
|
|
11661
|
-
insert(_el$
|
|
11891
|
+
insert(_el$14, createComponent(Show, {
|
|
11662
11892
|
get when() {
|
|
11663
11893
|
return props.itemsDeletable && props.activeQuery !== void 0;
|
|
11664
11894
|
},
|
|
@@ -11671,7 +11901,7 @@ function Explorer(props) {
|
|
|
11671
11901
|
});
|
|
11672
11902
|
}
|
|
11673
11903
|
}), null);
|
|
11674
|
-
insert(_el$
|
|
11904
|
+
insert(_el$14, createComponent(Show, {
|
|
11675
11905
|
get when() {
|
|
11676
11906
|
return type() === "array" && props.activeQuery !== void 0;
|
|
11677
11907
|
},
|
|
@@ -11684,22 +11914,22 @@ function Explorer(props) {
|
|
|
11684
11914
|
});
|
|
11685
11915
|
}
|
|
11686
11916
|
}), null);
|
|
11687
|
-
createRenderEffect(() => className(_el$
|
|
11688
|
-
return _el$
|
|
11917
|
+
createRenderEffect(() => className(_el$14, styles().actions));
|
|
11918
|
+
return _el$14;
|
|
11689
11919
|
}
|
|
11690
11920
|
}), null);
|
|
11691
11921
|
createRenderEffect((_p$) => {
|
|
11692
|
-
const _v$3 = styles.expanderButtonContainer, _v$4 = styles.expanderButton, _v$5 = styles.info;
|
|
11693
|
-
_v$3 !== _p$._v$3 && className(_el$
|
|
11694
|
-
_v$4 !== _p$._v$4 && className(_el$
|
|
11695
|
-
_v$5 !== _p$._v$5 && className(_el$
|
|
11922
|
+
const _v$3 = styles().expanderButtonContainer, _v$4 = styles().expanderButton, _v$5 = styles().info;
|
|
11923
|
+
_v$3 !== _p$._v$3 && className(_el$7, _p$._v$3 = _v$3);
|
|
11924
|
+
_v$4 !== _p$._v$4 && className(_el$8, _p$._v$4 = _v$4);
|
|
11925
|
+
_v$5 !== _p$._v$5 && className(_el$12, _p$._v$5 = _v$5);
|
|
11696
11926
|
return _p$;
|
|
11697
11927
|
}, {
|
|
11698
11928
|
_v$3: void 0,
|
|
11699
11929
|
_v$4: void 0,
|
|
11700
11930
|
_v$5: void 0
|
|
11701
11931
|
});
|
|
11702
|
-
return _el$
|
|
11932
|
+
return _el$7;
|
|
11703
11933
|
})(), createComponent(Show, {
|
|
11704
11934
|
get when() {
|
|
11705
11935
|
return expanded();
|
|
@@ -11710,8 +11940,8 @@ function Explorer(props) {
|
|
|
11710
11940
|
return subEntryPages().length === 1;
|
|
11711
11941
|
},
|
|
11712
11942
|
get children() {
|
|
11713
|
-
const _el$
|
|
11714
|
-
insert(_el$
|
|
11943
|
+
const _el$15 = _tmpl$62();
|
|
11944
|
+
insert(_el$15, createComponent(Key, {
|
|
11715
11945
|
get each() {
|
|
11716
11946
|
return subEntries();
|
|
11717
11947
|
},
|
|
@@ -11742,38 +11972,38 @@ function Explorer(props) {
|
|
|
11742
11972
|
});
|
|
11743
11973
|
}
|
|
11744
11974
|
}));
|
|
11745
|
-
createRenderEffect(() => className(_el$
|
|
11746
|
-
return _el$
|
|
11975
|
+
createRenderEffect(() => className(_el$15, styles().subEntry));
|
|
11976
|
+
return _el$15;
|
|
11747
11977
|
}
|
|
11748
11978
|
}), createComponent(Show, {
|
|
11749
11979
|
get when() {
|
|
11750
11980
|
return subEntryPages().length > 1;
|
|
11751
11981
|
},
|
|
11752
11982
|
get children() {
|
|
11753
|
-
const _el$
|
|
11754
|
-
insert(_el$
|
|
11983
|
+
const _el$16 = _tmpl$62();
|
|
11984
|
+
insert(_el$16, createComponent(Index, {
|
|
11755
11985
|
get each() {
|
|
11756
11986
|
return subEntryPages();
|
|
11757
11987
|
},
|
|
11758
|
-
children: (
|
|
11759
|
-
const _el$
|
|
11760
|
-
_el$
|
|
11761
|
-
insert(_el$
|
|
11988
|
+
children: (entries2, index) => (() => {
|
|
11989
|
+
const _el$22 = _tmpl$112(), _el$23 = _el$22.firstChild, _el$24 = _el$23.firstChild, _el$25 = _el$24.firstChild, _el$29 = _el$25.nextSibling, _el$27 = _el$29.nextSibling, _el$30 = _el$27.nextSibling; _el$30.nextSibling;
|
|
11990
|
+
_el$24.$$click = () => setExpandedPages((old) => old.includes(index) ? old.filter((d) => d !== index) : [...old, index]);
|
|
11991
|
+
insert(_el$24, createComponent(Expander, {
|
|
11762
11992
|
get expanded() {
|
|
11763
11993
|
return expandedPages().includes(index);
|
|
11764
11994
|
}
|
|
11765
|
-
}), _el$
|
|
11766
|
-
insert(_el$
|
|
11767
|
-
insert(_el$
|
|
11768
|
-
insert(_el$
|
|
11995
|
+
}), _el$25);
|
|
11996
|
+
insert(_el$24, index * 100, _el$29);
|
|
11997
|
+
insert(_el$24, index * 100 + 100 - 1, _el$30);
|
|
11998
|
+
insert(_el$23, createComponent(Show, {
|
|
11769
11999
|
get when() {
|
|
11770
12000
|
return expandedPages().includes(index);
|
|
11771
12001
|
},
|
|
11772
12002
|
get children() {
|
|
11773
|
-
const _el$
|
|
11774
|
-
insert(_el$
|
|
12003
|
+
const _el$31 = _tmpl$62();
|
|
12004
|
+
insert(_el$31, createComponent(Key, {
|
|
11775
12005
|
get each() {
|
|
11776
|
-
return
|
|
12006
|
+
return entries2();
|
|
11777
12007
|
},
|
|
11778
12008
|
by: (entry) => entry.label,
|
|
11779
12009
|
children: (entry) => createComponent(Explorer, {
|
|
@@ -11797,70 +12027,96 @@ function Explorer(props) {
|
|
|
11797
12027
|
}
|
|
11798
12028
|
})
|
|
11799
12029
|
}));
|
|
11800
|
-
createRenderEffect(() => className(_el$
|
|
11801
|
-
return _el$
|
|
12030
|
+
createRenderEffect(() => className(_el$31, styles().subEntry));
|
|
12031
|
+
return _el$31;
|
|
11802
12032
|
}
|
|
11803
12033
|
}), null);
|
|
11804
12034
|
createRenderEffect((_p$) => {
|
|
11805
|
-
const _v$10 = styles.entry, _v$11 = styles.expanderButton;
|
|
11806
|
-
_v$10 !== _p$._v$10 && className(_el$
|
|
11807
|
-
_v$11 !== _p$._v$11 && className(_el$
|
|
12035
|
+
const _v$10 = styles().entry, _v$11 = styles().expanderButton;
|
|
12036
|
+
_v$10 !== _p$._v$10 && className(_el$23, _p$._v$10 = _v$10);
|
|
12037
|
+
_v$11 !== _p$._v$11 && className(_el$24, _p$._v$11 = _v$11);
|
|
11808
12038
|
return _p$;
|
|
11809
12039
|
}, {
|
|
11810
12040
|
_v$10: void 0,
|
|
11811
12041
|
_v$11: void 0
|
|
11812
12042
|
});
|
|
11813
|
-
return _el$
|
|
12043
|
+
return _el$22;
|
|
11814
12044
|
})()
|
|
11815
12045
|
}));
|
|
11816
|
-
createRenderEffect(() => className(_el$
|
|
11817
|
-
return _el$
|
|
12046
|
+
createRenderEffect(() => className(_el$16, styles().subEntry));
|
|
12047
|
+
return _el$16;
|
|
11818
12048
|
}
|
|
11819
12049
|
})];
|
|
11820
12050
|
}
|
|
11821
12051
|
})];
|
|
11822
12052
|
}
|
|
11823
12053
|
}), null);
|
|
11824
|
-
insert(_el$
|
|
12054
|
+
insert(_el$6, createComponent(Show, {
|
|
11825
12055
|
get when() {
|
|
11826
12056
|
return subEntryPages().length === 0;
|
|
11827
12057
|
},
|
|
11828
12058
|
get children() {
|
|
11829
|
-
const _el$
|
|
11830
|
-
insert(_el$
|
|
11831
|
-
insert(_el$
|
|
12059
|
+
const _el$17 = _tmpl$102(), _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild;
|
|
12060
|
+
insert(_el$18, () => props.label, _el$19);
|
|
12061
|
+
insert(_el$17, createComponent(Show, {
|
|
11832
12062
|
get when() {
|
|
11833
|
-
return createMemo(() => !!(props.editable && props.activeQuery !== void 0))() && (type() === "string" || type() === "number");
|
|
12063
|
+
return createMemo(() => !!(props.editable && props.activeQuery !== void 0))() && (type() === "string" || type() === "number" || type() === "boolean");
|
|
11834
12064
|
},
|
|
11835
12065
|
get fallback() {
|
|
11836
12066
|
return (() => {
|
|
11837
|
-
const _el$
|
|
11838
|
-
insert(_el$
|
|
11839
|
-
createRenderEffect(() => className(_el$
|
|
11840
|
-
return _el$
|
|
12067
|
+
const _el$32 = _tmpl$92();
|
|
12068
|
+
insert(_el$32, () => displayValue(props.value));
|
|
12069
|
+
createRenderEffect(() => className(_el$32, styles().value));
|
|
12070
|
+
return _el$32;
|
|
11841
12071
|
})();
|
|
11842
12072
|
},
|
|
11843
12073
|
get children() {
|
|
11844
|
-
|
|
11845
|
-
|
|
11846
|
-
|
|
11847
|
-
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
12074
|
+
return [createComponent(Show, {
|
|
12075
|
+
get when() {
|
|
12076
|
+
return createMemo(() => !!(props.editable && props.activeQuery !== void 0))() && (type() === "string" || type() === "number");
|
|
12077
|
+
},
|
|
12078
|
+
get children() {
|
|
12079
|
+
const _el$20 = _tmpl$82();
|
|
12080
|
+
_el$20.addEventListener("change", (changeEvent) => {
|
|
12081
|
+
const oldData = props.activeQuery.state.data;
|
|
12082
|
+
const newData = updateNestedDataByPath(oldData, currentDataPath, type() === "number" ? changeEvent.target.valueAsNumber : changeEvent.target.value);
|
|
12083
|
+
queryClient.setQueryData(props.activeQuery.queryKey, newData);
|
|
12084
|
+
});
|
|
12085
|
+
createRenderEffect((_p$) => {
|
|
12086
|
+
const _v$6 = type() === "number" ? "number" : "text", _v$7 = clsx(styles().value, styles().editableInput);
|
|
12087
|
+
_v$6 !== _p$._v$6 && setAttribute(_el$20, "type", _p$._v$6 = _v$6);
|
|
12088
|
+
_v$7 !== _p$._v$7 && className(_el$20, _p$._v$7 = _v$7);
|
|
12089
|
+
return _p$;
|
|
12090
|
+
}, {
|
|
12091
|
+
_v$6: void 0,
|
|
12092
|
+
_v$7: void 0
|
|
12093
|
+
});
|
|
12094
|
+
createRenderEffect(() => _el$20.value = props.value);
|
|
12095
|
+
return _el$20;
|
|
12096
|
+
}
|
|
12097
|
+
}), createComponent(Show, {
|
|
12098
|
+
get when() {
|
|
12099
|
+
return type() === "boolean";
|
|
12100
|
+
},
|
|
12101
|
+
get children() {
|
|
12102
|
+
const _el$21 = _tmpl$92();
|
|
12103
|
+
insert(_el$21, createComponent(ToggleValueButton, {
|
|
12104
|
+
get activeQuery() {
|
|
12105
|
+
return props.activeQuery;
|
|
12106
|
+
},
|
|
12107
|
+
dataPath: currentDataPath,
|
|
12108
|
+
get value() {
|
|
12109
|
+
return props.value;
|
|
12110
|
+
}
|
|
12111
|
+
}), null);
|
|
12112
|
+
insert(_el$21, () => displayValue(props.value), null);
|
|
12113
|
+
createRenderEffect(() => className(_el$21, clsx(styles().value, styles().actions, styles().editableInput)));
|
|
12114
|
+
return _el$21;
|
|
12115
|
+
}
|
|
12116
|
+
})];
|
|
11861
12117
|
}
|
|
11862
12118
|
}), null);
|
|
11863
|
-
insert(_el$
|
|
12119
|
+
insert(_el$17, createComponent(Show, {
|
|
11864
12120
|
get when() {
|
|
11865
12121
|
return props.editable && props.itemsDeletable && props.activeQuery !== void 0;
|
|
11866
12122
|
},
|
|
@@ -11874,22 +12130,22 @@ function Explorer(props) {
|
|
|
11874
12130
|
}
|
|
11875
12131
|
}), null);
|
|
11876
12132
|
createRenderEffect((_p$) => {
|
|
11877
|
-
const _v$8 = styles.row, _v$9 = styles.label;
|
|
11878
|
-
_v$8 !== _p$._v$8 && className(_el$
|
|
11879
|
-
_v$9 !== _p$._v$9 && className(_el$
|
|
12133
|
+
const _v$8 = styles().row, _v$9 = styles().label;
|
|
12134
|
+
_v$8 !== _p$._v$8 && className(_el$17, _p$._v$8 = _v$8);
|
|
12135
|
+
_v$9 !== _p$._v$9 && className(_el$18, _p$._v$9 = _v$9);
|
|
11880
12136
|
return _p$;
|
|
11881
12137
|
}, {
|
|
11882
12138
|
_v$8: void 0,
|
|
11883
12139
|
_v$9: void 0
|
|
11884
12140
|
});
|
|
11885
|
-
return _el$
|
|
12141
|
+
return _el$17;
|
|
11886
12142
|
}
|
|
11887
12143
|
}), null);
|
|
11888
|
-
createRenderEffect(() => className(_el$
|
|
11889
|
-
return _el$
|
|
12144
|
+
createRenderEffect(() => className(_el$6, styles().entry));
|
|
12145
|
+
return _el$6;
|
|
11890
12146
|
})();
|
|
11891
12147
|
}
|
|
11892
|
-
var _tmpl$
|
|
12148
|
+
var _tmpl$18, _tmpl$22, _tmpl$32, _tmpl$42, _tmpl$52, _tmpl$62, _tmpl$72, _tmpl$82, _tmpl$92, _tmpl$102, _tmpl$112, Expander, CopyButton, ClearArrayButton, DeleteItemButton, ToggleValueButton, stylesFactory, lightStyles, darkStyles;
|
|
11893
12149
|
var init_Explorer = __esm({
|
|
11894
12150
|
"src/Explorer.tsx"() {
|
|
11895
12151
|
init_web();
|
|
@@ -11910,21 +12166,25 @@ var init_Explorer = __esm({
|
|
|
11910
12166
|
init_utils();
|
|
11911
12167
|
init_icons();
|
|
11912
12168
|
init_Context();
|
|
11913
|
-
_tmpl$
|
|
12169
|
+
_tmpl$18 = /* @__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>`);
|
|
11914
12170
|
_tmpl$22 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
|
|
11915
|
-
_tmpl$32 = /* @__PURE__ */ template(`<button title="Remove all items"
|
|
11916
|
-
_tmpl$42 = /* @__PURE__ */ template(`<button title="Delete item"
|
|
11917
|
-
_tmpl$52 = /* @__PURE__ */ template(`<
|
|
11918
|
-
_tmpl$62 = /* @__PURE__ */ template(`<div
|
|
11919
|
-
_tmpl$72 = /* @__PURE__ */ template(`<
|
|
11920
|
-
_tmpl$82 = /* @__PURE__ */ template(`<
|
|
11921
|
-
_tmpl$92 = /* @__PURE__ */ template(`<
|
|
11922
|
-
_tmpl$102 = /* @__PURE__ */ template(`<span
|
|
12171
|
+
_tmpl$32 = /* @__PURE__ */ template(`<button title="Remove all items"aria-label="Remove all items">`);
|
|
12172
|
+
_tmpl$42 = /* @__PURE__ */ template(`<button title="Delete item"aria-label="Delete item">`);
|
|
12173
|
+
_tmpl$52 = /* @__PURE__ */ template(`<button title="Toggle value"aria-label="Toggle value">`);
|
|
12174
|
+
_tmpl$62 = /* @__PURE__ */ template(`<div>`);
|
|
12175
|
+
_tmpl$72 = /* @__PURE__ */ template(`<div><button> <span></span> <span> `);
|
|
12176
|
+
_tmpl$82 = /* @__PURE__ */ template(`<input>`);
|
|
12177
|
+
_tmpl$92 = /* @__PURE__ */ template(`<span>`);
|
|
12178
|
+
_tmpl$102 = /* @__PURE__ */ template(`<div><span>:`);
|
|
12179
|
+
_tmpl$112 = /* @__PURE__ */ template(`<div><div><button> [<!>...<!>]`);
|
|
11923
12180
|
Expander = (props) => {
|
|
11924
|
-
const
|
|
12181
|
+
const theme = useTheme();
|
|
12182
|
+
const styles = createMemo(() => {
|
|
12183
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
12184
|
+
});
|
|
11925
12185
|
return (() => {
|
|
11926
|
-
const _el$ = _tmpl$
|
|
11927
|
-
createRenderEffect(() => className(_el$, clsx(styles.expander, u`
|
|
12186
|
+
const _el$ = _tmpl$18();
|
|
12187
|
+
createRenderEffect(() => className(_el$, clsx(styles().expander, u`
|
|
11928
12188
|
transform: rotate(${props.expanded ? 90 : 0}deg);
|
|
11929
12189
|
`, props.expanded && u`
|
|
11930
12190
|
& svg {
|
|
@@ -11935,7 +12195,10 @@ var init_Explorer = __esm({
|
|
|
11935
12195
|
})();
|
|
11936
12196
|
};
|
|
11937
12197
|
CopyButton = (props) => {
|
|
11938
|
-
const
|
|
12198
|
+
const theme = useTheme();
|
|
12199
|
+
const styles = createMemo(() => {
|
|
12200
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
12201
|
+
});
|
|
11939
12202
|
const [copyState, setCopyState] = createSignal("NoCopy");
|
|
11940
12203
|
return (() => {
|
|
11941
12204
|
const _el$2 = _tmpl$22();
|
|
@@ -11966,7 +12229,11 @@ var init_Explorer = __esm({
|
|
|
11966
12229
|
return copyState() === "SuccessCopy";
|
|
11967
12230
|
},
|
|
11968
12231
|
get children() {
|
|
11969
|
-
return createComponent(CopiedCopier, {
|
|
12232
|
+
return createComponent(CopiedCopier, {
|
|
12233
|
+
get theme() {
|
|
12234
|
+
return theme();
|
|
12235
|
+
}
|
|
12236
|
+
});
|
|
11970
12237
|
}
|
|
11971
12238
|
}), createComponent(Match, {
|
|
11972
12239
|
get when() {
|
|
@@ -11979,7 +12246,7 @@ var init_Explorer = __esm({
|
|
|
11979
12246
|
}
|
|
11980
12247
|
}));
|
|
11981
12248
|
createRenderEffect((_p$) => {
|
|
11982
|
-
const _v$ = styles.actionButton, _v$2 = `${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`;
|
|
12249
|
+
const _v$ = styles().actionButton, _v$2 = `${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`;
|
|
11983
12250
|
_v$ !== _p$._v$ && className(_el$2, _p$._v$ = _v$);
|
|
11984
12251
|
_v$2 !== _p$._v$2 && setAttribute(_el$2, "aria-label", _p$._v$2 = _v$2);
|
|
11985
12252
|
return _p$;
|
|
@@ -11991,7 +12258,10 @@ var init_Explorer = __esm({
|
|
|
11991
12258
|
})();
|
|
11992
12259
|
};
|
|
11993
12260
|
ClearArrayButton = (props) => {
|
|
11994
|
-
const
|
|
12261
|
+
const theme = useTheme();
|
|
12262
|
+
const styles = createMemo(() => {
|
|
12263
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
12264
|
+
});
|
|
11995
12265
|
const queryClient = useQueryDevtoolsContext().client;
|
|
11996
12266
|
return (() => {
|
|
11997
12267
|
const _el$3 = _tmpl$32();
|
|
@@ -12001,12 +12271,15 @@ var init_Explorer = __esm({
|
|
|
12001
12271
|
queryClient.setQueryData(props.activeQuery.queryKey, newData);
|
|
12002
12272
|
};
|
|
12003
12273
|
insert(_el$3, createComponent(List, {}));
|
|
12004
|
-
createRenderEffect(() => className(_el$3, styles.actionButton));
|
|
12274
|
+
createRenderEffect(() => className(_el$3, styles().actionButton));
|
|
12005
12275
|
return _el$3;
|
|
12006
12276
|
})();
|
|
12007
12277
|
};
|
|
12008
12278
|
DeleteItemButton = (props) => {
|
|
12009
|
-
const
|
|
12279
|
+
const theme = useTheme();
|
|
12280
|
+
const styles = createMemo(() => {
|
|
12281
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
12282
|
+
});
|
|
12010
12283
|
const queryClient = useQueryDevtoolsContext().client;
|
|
12011
12284
|
return (() => {
|
|
12012
12285
|
const _el$4 = _tmpl$42();
|
|
@@ -12016,17 +12289,46 @@ var init_Explorer = __esm({
|
|
|
12016
12289
|
queryClient.setQueryData(props.activeQuery.queryKey, newData);
|
|
12017
12290
|
};
|
|
12018
12291
|
insert(_el$4, createComponent(Trash, {}));
|
|
12019
|
-
createRenderEffect(() => className(_el$4, clsx(styles.actionButton)));
|
|
12292
|
+
createRenderEffect(() => className(_el$4, clsx(styles().actionButton)));
|
|
12020
12293
|
return _el$4;
|
|
12021
12294
|
})();
|
|
12022
12295
|
};
|
|
12023
|
-
|
|
12296
|
+
ToggleValueButton = (props) => {
|
|
12297
|
+
const theme = useTheme();
|
|
12298
|
+
const styles = createMemo(() => {
|
|
12299
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
12300
|
+
});
|
|
12301
|
+
const queryClient = useQueryDevtoolsContext().client;
|
|
12302
|
+
return (() => {
|
|
12303
|
+
const _el$5 = _tmpl$52();
|
|
12304
|
+
_el$5.$$click = () => {
|
|
12305
|
+
const oldData = props.activeQuery.state.data;
|
|
12306
|
+
const newData = updateNestedDataByPath(oldData, props.dataPath, !props.value);
|
|
12307
|
+
queryClient.setQueryData(props.activeQuery.queryKey, newData);
|
|
12308
|
+
};
|
|
12309
|
+
insert(_el$5, createComponent(Check, {
|
|
12310
|
+
get theme() {
|
|
12311
|
+
return theme();
|
|
12312
|
+
},
|
|
12313
|
+
get checked() {
|
|
12314
|
+
return props.value;
|
|
12315
|
+
}
|
|
12316
|
+
}));
|
|
12317
|
+
createRenderEffect(() => className(_el$5, clsx(styles().actionButton, u`
|
|
12318
|
+
width: ${tokens.size[3.5]};
|
|
12319
|
+
height: ${tokens.size[3.5]};
|
|
12320
|
+
`)));
|
|
12321
|
+
return _el$5;
|
|
12322
|
+
})();
|
|
12323
|
+
};
|
|
12324
|
+
stylesFactory = (theme) => {
|
|
12024
12325
|
const {
|
|
12025
12326
|
colors,
|
|
12026
12327
|
font,
|
|
12027
12328
|
size: size2,
|
|
12028
12329
|
border
|
|
12029
12330
|
} = tokens;
|
|
12331
|
+
const t2 = (light, dark) => theme === "light" ? light : dark;
|
|
12030
12332
|
return {
|
|
12031
12333
|
entry: u`
|
|
12032
12334
|
& * {
|
|
@@ -12040,7 +12342,7 @@ var init_Explorer = __esm({
|
|
|
12040
12342
|
subEntry: u`
|
|
12041
12343
|
margin: 0 0 0 0.5em;
|
|
12042
12344
|
padding-left: 0.75em;
|
|
12043
|
-
border-left: 2px solid ${colors.darkGray[400]};
|
|
12345
|
+
border-left: 2px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
12044
12346
|
/* outline: 1px solid ${colors.teal[400]}; */
|
|
12045
12347
|
`,
|
|
12046
12348
|
expander: u`
|
|
@@ -12089,21 +12391,22 @@ var init_Explorer = __esm({
|
|
|
12089
12391
|
}
|
|
12090
12392
|
`,
|
|
12091
12393
|
info: u`
|
|
12092
|
-
color: ${colors.gray[500]};
|
|
12394
|
+
color: ${t2(colors.gray[500], colors.gray[500])};
|
|
12093
12395
|
font-size: ${font.size.xs};
|
|
12094
12396
|
margin-left: ${size2[1]};
|
|
12095
12397
|
/* outline: 1px solid ${colors.yellow[400]}; */
|
|
12096
12398
|
`,
|
|
12097
12399
|
label: u`
|
|
12098
|
-
color: ${colors.gray[300]};
|
|
12400
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12099
12401
|
`,
|
|
12100
12402
|
value: u`
|
|
12101
|
-
color: ${colors.purple[400]};
|
|
12403
|
+
color: ${t2(colors.purple[600], colors.purple[400])};
|
|
12102
12404
|
flex-grow: 1;
|
|
12103
12405
|
`,
|
|
12104
12406
|
actions: u`
|
|
12105
12407
|
display: inline-flex;
|
|
12106
12408
|
gap: ${size2[2]};
|
|
12409
|
+
align-items: center;
|
|
12107
12410
|
`,
|
|
12108
12411
|
row: u`
|
|
12109
12412
|
display: inline-flex;
|
|
@@ -12111,19 +12414,22 @@ var init_Explorer = __esm({
|
|
|
12111
12414
|
width: 100%;
|
|
12112
12415
|
margin-bottom: ${size2[0.5]};
|
|
12113
12416
|
line-height: 1.125rem;
|
|
12417
|
+
align-items: center;
|
|
12114
12418
|
`,
|
|
12115
12419
|
editableInput: u`
|
|
12116
12420
|
border: none;
|
|
12117
|
-
padding:
|
|
12421
|
+
padding: ${size2[0.5]} ${size2[1]} ${size2[0.5]} ${size2[1.5]};
|
|
12118
12422
|
flex-grow: 1;
|
|
12119
|
-
|
|
12423
|
+
border-radius: ${border.radius.xs};
|
|
12424
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12120
12425
|
|
|
12121
12426
|
&:hover {
|
|
12122
|
-
background-color: ${colors.gray[
|
|
12427
|
+
background-color: ${t2(colors.gray[300], colors.darkGray[600])};
|
|
12123
12428
|
}
|
|
12124
12429
|
`,
|
|
12125
12430
|
actionButton: u`
|
|
12126
12431
|
background-color: transparent;
|
|
12432
|
+
color: ${t2(colors.gray[500], colors.gray[500])};
|
|
12127
12433
|
border: none;
|
|
12128
12434
|
display: inline-flex;
|
|
12129
12435
|
padding: 0px;
|
|
@@ -12136,14 +12442,7 @@ var init_Explorer = __esm({
|
|
|
12136
12442
|
z-index: 1;
|
|
12137
12443
|
|
|
12138
12444
|
&:hover svg {
|
|
12139
|
-
.
|
|
12140
|
-
.list {
|
|
12141
|
-
stroke: ${colors.gray[500]} !important;
|
|
12142
|
-
}
|
|
12143
|
-
|
|
12144
|
-
.list-item {
|
|
12145
|
-
stroke: ${colors.gray[700]};
|
|
12146
|
-
}
|
|
12445
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
12147
12446
|
}
|
|
12148
12447
|
|
|
12149
12448
|
&:focus-visible {
|
|
@@ -12154,6 +12453,8 @@ var init_Explorer = __esm({
|
|
|
12154
12453
|
`
|
|
12155
12454
|
};
|
|
12156
12455
|
};
|
|
12456
|
+
lightStyles = stylesFactory("light");
|
|
12457
|
+
darkStyles = stylesFactory("dark");
|
|
12157
12458
|
delegateEvents(["click"]);
|
|
12158
12459
|
}
|
|
12159
12460
|
});
|
|
@@ -12182,7 +12483,7 @@ __export(Devtools_exports, {
|
|
|
12182
12483
|
QueryStatusCount: () => QueryStatusCount,
|
|
12183
12484
|
default: () => Devtools_default
|
|
12184
12485
|
});
|
|
12185
|
-
var _tmpl$
|
|
12486
|
+
var _tmpl$19, _tmpl$23, _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$20, _tmpl$21, _tmpl$222, _tmpl$232, _tmpl$24, _tmpl$25, firstBreakpoint, secondBreakpoint, thirdBreakpoint, BUTTON_POSITION, POSITION, THEME_PREFERENCE, INITIAL_IS_OPEN, DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_SORT_FN_NAME, DEFAULT_SORT_ORDER, selectedQueryHash, setSelectedQueryHash, panelWidth, setPanelWidth, DevtoolsComponent, Devtools_default, Devtools, DevtoolsPanel, QueryRow, QueryStatusCount, QueryStatus, QueryDetails, signalsMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, stylesFactory2, lightStyles2, darkStyles2;
|
|
12186
12487
|
var init_Devtools = __esm({
|
|
12187
12488
|
"src/Devtools.tsx"() {
|
|
12188
12489
|
init_web();
|
|
@@ -12203,7 +12504,7 @@ var init_Devtools = __esm({
|
|
|
12203
12504
|
init_dist3();
|
|
12204
12505
|
init_dist4();
|
|
12205
12506
|
init_dist5();
|
|
12206
|
-
|
|
12507
|
+
init_dist7();
|
|
12207
12508
|
init_esm();
|
|
12208
12509
|
init_theme();
|
|
12209
12510
|
init_utils();
|
|
@@ -12211,7 +12512,7 @@ var init_Devtools = __esm({
|
|
|
12211
12512
|
init_Explorer();
|
|
12212
12513
|
init_Context();
|
|
12213
12514
|
init_fonts();
|
|
12214
|
-
_tmpl$
|
|
12515
|
+
_tmpl$19 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
|
|
12215
12516
|
_tmpl$23 = /* @__PURE__ */ template(`<div>`);
|
|
12216
12517
|
_tmpl$33 = /* @__PURE__ */ template(`<span>Asc`);
|
|
12217
12518
|
_tmpl$43 = /* @__PURE__ */ template(`<span>Desc`);
|
|
@@ -12221,22 +12522,27 @@ var init_Devtools = __esm({
|
|
|
12221
12522
|
_tmpl$83 = /* @__PURE__ */ template(`<span>Bottom`);
|
|
12222
12523
|
_tmpl$93 = /* @__PURE__ */ template(`<span>Left`);
|
|
12223
12524
|
_tmpl$103 = /* @__PURE__ */ template(`<span>Right`);
|
|
12224
|
-
_tmpl$
|
|
12225
|
-
_tmpl$122 = /* @__PURE__ */ template(`<
|
|
12226
|
-
_tmpl$132 = /* @__PURE__ */ template(`<
|
|
12227
|
-
_tmpl$142 = /* @__PURE__ */ template(`<
|
|
12228
|
-
_tmpl$152 = /* @__PURE__ */ template(`<div
|
|
12229
|
-
_tmpl$
|
|
12230
|
-
_tmpl$
|
|
12231
|
-
_tmpl$
|
|
12232
|
-
_tmpl$
|
|
12233
|
-
_tmpl$20 = /* @__PURE__ */ template(`<
|
|
12234
|
-
_tmpl$21 = /* @__PURE__ */ template(`<
|
|
12525
|
+
_tmpl$113 = /* @__PURE__ */ template(`<span>Theme`);
|
|
12526
|
+
_tmpl$122 = /* @__PURE__ */ template(`<span>Light`);
|
|
12527
|
+
_tmpl$132 = /* @__PURE__ */ template(`<span>Dark`);
|
|
12528
|
+
_tmpl$142 = /* @__PURE__ */ template(`<span>System`);
|
|
12529
|
+
_tmpl$152 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools"></button><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter class=tsqd-query-filter-textfield></div><div><select></select></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"title="Clear query cache"></button><button></button></div></div><div><div class=tsqd-queries-container>`);
|
|
12530
|
+
_tmpl$162 = /* @__PURE__ */ template(`<option>Sort by `);
|
|
12531
|
+
_tmpl$172 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
|
|
12532
|
+
_tmpl$182 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
|
|
12533
|
+
_tmpl$192 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
|
|
12534
|
+
_tmpl$20 = /* @__PURE__ */ template(`<span>`);
|
|
12535
|
+
_tmpl$21 = /* @__PURE__ */ template(`<button><span></span><span>`);
|
|
12536
|
+
_tmpl$222 = /* @__PURE__ */ template(`<button><span></span> Error`);
|
|
12537
|
+
_tmpl$232 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
|
|
12538
|
+
_tmpl$24 = /* @__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">`);
|
|
12539
|
+
_tmpl$25 = /* @__PURE__ */ template(`<option>`);
|
|
12235
12540
|
firstBreakpoint = 1024;
|
|
12236
12541
|
secondBreakpoint = 796;
|
|
12237
12542
|
thirdBreakpoint = 700;
|
|
12238
12543
|
BUTTON_POSITION = "bottom-right";
|
|
12239
12544
|
POSITION = "bottom";
|
|
12545
|
+
THEME_PREFERENCE = "system";
|
|
12240
12546
|
INITIAL_IS_OPEN = false;
|
|
12241
12547
|
DEFAULT_HEIGHT = 500;
|
|
12242
12548
|
DEFAULT_WIDTH = 500;
|
|
@@ -12245,33 +12551,51 @@ var init_Devtools = __esm({
|
|
|
12245
12551
|
[selectedQueryHash, setSelectedQueryHash] = createSignal(null);
|
|
12246
12552
|
[panelWidth, setPanelWidth] = createSignal(0);
|
|
12247
12553
|
DevtoolsComponent = (props) => {
|
|
12554
|
+
const [localStore, setLocalStore] = createLocalStorage({
|
|
12555
|
+
prefix: "TanstackQueryDevtools"
|
|
12556
|
+
});
|
|
12557
|
+
const colorScheme = getPreferredColorScheme();
|
|
12558
|
+
const theme = createMemo(() => {
|
|
12559
|
+
const preference = localStore.theme_preference || THEME_PREFERENCE;
|
|
12560
|
+
if (preference !== "system")
|
|
12561
|
+
return preference;
|
|
12562
|
+
return colorScheme();
|
|
12563
|
+
});
|
|
12248
12564
|
return createComponent(QueryDevtoolsContext.Provider, {
|
|
12249
12565
|
value: props,
|
|
12250
12566
|
get children() {
|
|
12251
|
-
return createComponent(
|
|
12567
|
+
return createComponent(ThemeContext.Provider, {
|
|
12568
|
+
value: theme,
|
|
12569
|
+
get children() {
|
|
12570
|
+
return createComponent(Devtools, {
|
|
12571
|
+
localStore,
|
|
12572
|
+
setLocalStore
|
|
12573
|
+
});
|
|
12574
|
+
}
|
|
12575
|
+
});
|
|
12252
12576
|
}
|
|
12253
12577
|
});
|
|
12254
12578
|
};
|
|
12255
12579
|
Devtools_default = DevtoolsComponent;
|
|
12256
|
-
Devtools = () => {
|
|
12580
|
+
Devtools = (props) => {
|
|
12257
12581
|
loadFonts();
|
|
12258
|
-
const
|
|
12259
|
-
const
|
|
12260
|
-
|
|
12582
|
+
const theme = useTheme();
|
|
12583
|
+
const styles = createMemo(() => {
|
|
12584
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
12261
12585
|
});
|
|
12262
12586
|
const buttonPosition = createMemo(() => {
|
|
12263
12587
|
return useQueryDevtoolsContext().buttonPosition || BUTTON_POSITION;
|
|
12264
12588
|
});
|
|
12265
12589
|
const isOpen = createMemo(() => {
|
|
12266
|
-
return localStore.open === "true" ? true : localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
|
|
12590
|
+
return props.localStore.open === "true" ? true : props.localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
|
|
12267
12591
|
});
|
|
12268
12592
|
const position = createMemo(() => {
|
|
12269
|
-
return localStore.position || useQueryDevtoolsContext().position || POSITION;
|
|
12593
|
+
return props.localStore.position || useQueryDevtoolsContext().position || POSITION;
|
|
12270
12594
|
});
|
|
12271
12595
|
createEffect(() => {
|
|
12272
12596
|
const root = document.querySelector(".tsqd-parent-container");
|
|
12273
|
-
const height = localStore.height || DEFAULT_HEIGHT;
|
|
12274
|
-
const width = localStore.width || DEFAULT_WIDTH;
|
|
12597
|
+
const height = props.localStore.height || DEFAULT_HEIGHT;
|
|
12598
|
+
const width = props.localStore.width || DEFAULT_WIDTH;
|
|
12275
12599
|
const panelPosition = position();
|
|
12276
12600
|
root.style.setProperty("--tsqd-panel-height", `${panelPosition === "top" ? "-" : ""}${height}px`);
|
|
12277
12601
|
root.style.setProperty("--tsqd-panel-width", `${panelPosition === "left" ? "-" : ""}${width}px`);
|
|
@@ -12287,8 +12611,12 @@ var init_Devtools = __esm({
|
|
|
12287
12611
|
},
|
|
12288
12612
|
get children() {
|
|
12289
12613
|
return createComponent(DevtoolsPanel, {
|
|
12290
|
-
localStore
|
|
12291
|
-
|
|
12614
|
+
get localStore() {
|
|
12615
|
+
return props.localStore;
|
|
12616
|
+
},
|
|
12617
|
+
get setLocalStore() {
|
|
12618
|
+
return props.setLocalStore;
|
|
12619
|
+
}
|
|
12292
12620
|
});
|
|
12293
12621
|
}
|
|
12294
12622
|
});
|
|
@@ -12302,11 +12630,11 @@ var init_Devtools = __esm({
|
|
|
12302
12630
|
return !isOpen();
|
|
12303
12631
|
},
|
|
12304
12632
|
get children() {
|
|
12305
|
-
const _el$2 = _tmpl$
|
|
12633
|
+
const _el$2 = _tmpl$19(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
|
|
12306
12634
|
insert(_el$3, createComponent(TanstackLogo, {}));
|
|
12307
|
-
_el$4.$$click = () => setLocalStore("open", "true");
|
|
12635
|
+
_el$4.$$click = () => props.setLocalStore("open", "true");
|
|
12308
12636
|
insert(_el$4, createComponent(TanstackLogo, {}));
|
|
12309
|
-
createRenderEffect(() => className(_el$2, clsx(styles.devtoolsBtn, styles[`devtoolsBtn-position-${buttonPosition()}`])));
|
|
12637
|
+
createRenderEffect(() => className(_el$2, clsx(styles().devtoolsBtn, styles()[`devtoolsBtn-position-${buttonPosition()}`])));
|
|
12310
12638
|
return _el$2;
|
|
12311
12639
|
}
|
|
12312
12640
|
});
|
|
@@ -12337,7 +12665,10 @@ var init_Devtools = __esm({
|
|
|
12337
12665
|
})();
|
|
12338
12666
|
};
|
|
12339
12667
|
DevtoolsPanel = (props) => {
|
|
12340
|
-
const
|
|
12668
|
+
const theme = useTheme();
|
|
12669
|
+
const styles = createMemo(() => {
|
|
12670
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
12671
|
+
});
|
|
12341
12672
|
const [isResizing, setIsResizing] = createSignal(false);
|
|
12342
12673
|
const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
|
|
12343
12674
|
const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
|
|
@@ -12446,8 +12777,24 @@ var init_Devtools = __esm({
|
|
|
12446
12777
|
});
|
|
12447
12778
|
});
|
|
12448
12779
|
});
|
|
12780
|
+
const getPanelDynamicStyles = () => {
|
|
12781
|
+
const {
|
|
12782
|
+
colors
|
|
12783
|
+
} = tokens;
|
|
12784
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
12785
|
+
if (panelWidth() < secondBreakpoint) {
|
|
12786
|
+
return u`
|
|
12787
|
+
flex-direction: column;
|
|
12788
|
+
background-color: ${t2(colors.gray[300], colors.gray[600])};
|
|
12789
|
+
`;
|
|
12790
|
+
}
|
|
12791
|
+
return u`
|
|
12792
|
+
flex-direction: row;
|
|
12793
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[900])};
|
|
12794
|
+
`;
|
|
12795
|
+
};
|
|
12449
12796
|
return (() => {
|
|
12450
|
-
const _el$5 = _tmpl$
|
|
12797
|
+
const _el$5 = _tmpl$152(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.firstChild, _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$9.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$16.nextSibling, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$23 = _el$15.nextSibling, _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling, _el$36 = _el$14.nextSibling, _el$37 = _el$36.firstChild;
|
|
12451
12798
|
const _ref$ = panelRef;
|
|
12452
12799
|
typeof _ref$ === "function" ? use(_ref$, _el$5) : panelRef = _el$5;
|
|
12453
12800
|
_el$6.$$mousedown = handleDragStart;
|
|
@@ -12463,10 +12810,10 @@ var init_Devtools = __esm({
|
|
|
12463
12810
|
_el$17.$$input = (e2) => props.setLocalStore("filter", e2.currentTarget.value);
|
|
12464
12811
|
_el$19.addEventListener("change", (e2) => props.setLocalStore("sort", e2.currentTarget.value));
|
|
12465
12812
|
insert(_el$19, () => Object.keys(sortFns).map((key) => (() => {
|
|
12466
|
-
const _el$
|
|
12467
|
-
_el$
|
|
12468
|
-
insert(_el$
|
|
12469
|
-
return _el$
|
|
12813
|
+
const _el$38 = _tmpl$162(); _el$38.firstChild;
|
|
12814
|
+
_el$38.value = key;
|
|
12815
|
+
insert(_el$38, key, null);
|
|
12816
|
+
return _el$38;
|
|
12470
12817
|
})()));
|
|
12471
12818
|
insert(_el$18, createComponent(ChevronDown, {}), null);
|
|
12472
12819
|
_el$20.$$click = () => {
|
|
@@ -12510,7 +12857,7 @@ var init_Devtools = __esm({
|
|
|
12510
12857
|
get children() {
|
|
12511
12858
|
return [createComponent(index$d.Trigger, {
|
|
12512
12859
|
get ["class"]() {
|
|
12513
|
-
return clsx(styles.actionsBtn, "tsqd-actions-btn", "tsqd-action-settings");
|
|
12860
|
+
return clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-settings");
|
|
12514
12861
|
},
|
|
12515
12862
|
get children() {
|
|
12516
12863
|
return createComponent(Settings, {});
|
|
@@ -12519,12 +12866,12 @@ var init_Devtools = __esm({
|
|
|
12519
12866
|
get children() {
|
|
12520
12867
|
return createComponent(index$d.Content, {
|
|
12521
12868
|
get ["class"]() {
|
|
12522
|
-
return clsx(styles.settingsMenu, "tsqd-settings-menu");
|
|
12869
|
+
return clsx(styles().settingsMenu, "tsqd-settings-menu");
|
|
12523
12870
|
},
|
|
12524
12871
|
get children() {
|
|
12525
12872
|
return [(() => {
|
|
12526
12873
|
const _el$26 = _tmpl$53();
|
|
12527
|
-
createRenderEffect(() => className(_el$26, clsx(styles.settingsMenuHeader, "tsqd-settings-menu-header")));
|
|
12874
|
+
createRenderEffect(() => className(_el$26, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
|
|
12528
12875
|
return _el$26;
|
|
12529
12876
|
})(), createComponent(index$d.Sub, {
|
|
12530
12877
|
overlap: true,
|
|
@@ -12533,7 +12880,7 @@ var init_Devtools = __esm({
|
|
|
12533
12880
|
get children() {
|
|
12534
12881
|
return [createComponent(index$d.SubTrigger, {
|
|
12535
12882
|
get ["class"]() {
|
|
12536
|
-
return clsx(styles.settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
12883
|
+
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
12537
12884
|
},
|
|
12538
12885
|
get children() {
|
|
12539
12886
|
return [_tmpl$63(), createComponent(ChevronDown, {})];
|
|
@@ -12542,7 +12889,7 @@ var init_Devtools = __esm({
|
|
|
12542
12889
|
get children() {
|
|
12543
12890
|
return createComponent(index$d.SubContent, {
|
|
12544
12891
|
get ["class"]() {
|
|
12545
|
-
return clsx(styles.settingsMenu, "tsqd-settings-submenu");
|
|
12892
|
+
return clsx(styles().settingsMenu, "tsqd-settings-submenu");
|
|
12546
12893
|
},
|
|
12547
12894
|
get children() {
|
|
12548
12895
|
return [createComponent(index$d.Item, {
|
|
@@ -12551,7 +12898,7 @@ var init_Devtools = __esm({
|
|
|
12551
12898
|
},
|
|
12552
12899
|
as: "button",
|
|
12553
12900
|
get ["class"]() {
|
|
12554
|
-
return clsx(styles.settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
12901
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
12555
12902
|
},
|
|
12556
12903
|
get children() {
|
|
12557
12904
|
return [_tmpl$73(), createComponent(ArrowUp, {})];
|
|
@@ -12562,7 +12909,7 @@ var init_Devtools = __esm({
|
|
|
12562
12909
|
},
|
|
12563
12910
|
as: "button",
|
|
12564
12911
|
get ["class"]() {
|
|
12565
|
-
return clsx(styles.settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
12912
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
12566
12913
|
},
|
|
12567
12914
|
get children() {
|
|
12568
12915
|
return [_tmpl$83(), createComponent(ArrowDown, {})];
|
|
@@ -12573,7 +12920,7 @@ var init_Devtools = __esm({
|
|
|
12573
12920
|
},
|
|
12574
12921
|
as: "button",
|
|
12575
12922
|
get ["class"]() {
|
|
12576
|
-
return clsx(styles.settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
12923
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
12577
12924
|
},
|
|
12578
12925
|
get children() {
|
|
12579
12926
|
return [_tmpl$93(), createComponent(ArrowLeft, {})];
|
|
@@ -12584,7 +12931,7 @@ var init_Devtools = __esm({
|
|
|
12584
12931
|
},
|
|
12585
12932
|
as: "button",
|
|
12586
12933
|
get ["class"]() {
|
|
12587
|
-
return clsx(styles.settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
|
|
12934
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
|
|
12588
12935
|
},
|
|
12589
12936
|
get children() {
|
|
12590
12937
|
return [_tmpl$103(), createComponent(ArrowRight, {})];
|
|
@@ -12595,6 +12942,64 @@ var init_Devtools = __esm({
|
|
|
12595
12942
|
}
|
|
12596
12943
|
})];
|
|
12597
12944
|
}
|
|
12945
|
+
}), createComponent(index$d.Sub, {
|
|
12946
|
+
overlap: true,
|
|
12947
|
+
gutter: 8,
|
|
12948
|
+
shift: -4,
|
|
12949
|
+
get children() {
|
|
12950
|
+
return [createComponent(index$d.SubTrigger, {
|
|
12951
|
+
get ["class"]() {
|
|
12952
|
+
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
12953
|
+
},
|
|
12954
|
+
get children() {
|
|
12955
|
+
return [_tmpl$113(), createComponent(ChevronDown, {})];
|
|
12956
|
+
}
|
|
12957
|
+
}), createComponent(index$d.Portal, {
|
|
12958
|
+
get children() {
|
|
12959
|
+
return createComponent(index$d.SubContent, {
|
|
12960
|
+
get ["class"]() {
|
|
12961
|
+
return clsx(styles().settingsMenu, "tsqd-settings-submenu");
|
|
12962
|
+
},
|
|
12963
|
+
get children() {
|
|
12964
|
+
return [createComponent(index$d.Item, {
|
|
12965
|
+
onSelect: () => {
|
|
12966
|
+
props.setLocalStore("theme_preference", "light");
|
|
12967
|
+
},
|
|
12968
|
+
as: "button",
|
|
12969
|
+
get ["class"]() {
|
|
12970
|
+
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "light" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
12971
|
+
},
|
|
12972
|
+
get children() {
|
|
12973
|
+
return [_tmpl$122(), createComponent(Sun, {})];
|
|
12974
|
+
}
|
|
12975
|
+
}), createComponent(index$d.Item, {
|
|
12976
|
+
onSelect: () => {
|
|
12977
|
+
props.setLocalStore("theme_preference", "dark");
|
|
12978
|
+
},
|
|
12979
|
+
as: "button",
|
|
12980
|
+
get ["class"]() {
|
|
12981
|
+
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "dark" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
12982
|
+
},
|
|
12983
|
+
get children() {
|
|
12984
|
+
return [_tmpl$132(), createComponent(Moon, {})];
|
|
12985
|
+
}
|
|
12986
|
+
}), createComponent(index$d.Item, {
|
|
12987
|
+
onSelect: () => {
|
|
12988
|
+
props.setLocalStore("theme_preference", "system");
|
|
12989
|
+
},
|
|
12990
|
+
as: "button",
|
|
12991
|
+
get ["class"]() {
|
|
12992
|
+
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "system" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
12993
|
+
},
|
|
12994
|
+
get children() {
|
|
12995
|
+
return [_tmpl$142(), createComponent(Monitor, {})];
|
|
12996
|
+
}
|
|
12997
|
+
})];
|
|
12998
|
+
}
|
|
12999
|
+
});
|
|
13000
|
+
}
|
|
13001
|
+
})];
|
|
13002
|
+
}
|
|
12598
13003
|
})];
|
|
12599
13004
|
}
|
|
12600
13005
|
});
|
|
@@ -12602,7 +13007,7 @@ var init_Devtools = __esm({
|
|
|
12602
13007
|
})];
|
|
12603
13008
|
}
|
|
12604
13009
|
}), null);
|
|
12605
|
-
insert(_el$
|
|
13010
|
+
insert(_el$37, createComponent(Key, {
|
|
12606
13011
|
by: (q) => q.queryHash,
|
|
12607
13012
|
get each() {
|
|
12608
13013
|
return queries();
|
|
@@ -12622,19 +13027,16 @@ var init_Devtools = __esm({
|
|
|
12622
13027
|
}
|
|
12623
13028
|
}), null);
|
|
12624
13029
|
createRenderEffect((_p$) => {
|
|
12625
|
-
const _v$ = clsx(styles.panel, styles[`panel-position-${position()}`],
|
|
12626
|
-
flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
|
|
12627
|
-
background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
|
|
12628
|
-
`, {
|
|
13030
|
+
const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
|
|
12629
13031
|
[u`
|
|
12630
13032
|
min-width: min-content;
|
|
12631
13033
|
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
12632
|
-
}, "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"), _v$6 = clsx(styles.queriesContainer, panelWidth() < secondBreakpoint && selectedQueryHash() && u`
|
|
13034
|
+
}, "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"), _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && selectedQueryHash() && u`
|
|
12633
13035
|
height: 50%;
|
|
12634
13036
|
max-height: 50%;
|
|
12635
|
-
`, "tsqd-queries-container"), _v$7 = clsx(styles.row, "tsqd-header"), _v$8 = clsx(styles.logo, "tsqd-text-logo-container"), _v$9 = clsx(styles.tanstackLogo, "tsqd-text-logo-tanstack"), _v$10 = clsx(styles.queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$11 = clsx(styles.row, u`
|
|
13037
|
+
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = clsx(styles().logo, "tsqd-text-logo-container"), _v$9 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$10 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$11 = clsx(styles().row, u`
|
|
12636
13038
|
gap: ${tokens.size[2.5]};
|
|
12637
|
-
`, "tsqd-filters-actions-container"), _v$12 = clsx(styles.filtersContainer, "tsqd-filters-container"), _v$13 = clsx(styles.filterInput, "tsqd-query-filter-textfield-container"), _v$14 = clsx(styles.filterSelect, "tsqd-query-filter-sort-container"), _v$15 = `Sort order ${sortOrder() === -1 ? "descending" : "ascending"}`, _v$16 = sortOrder() === -1, _v$17 = clsx(styles.actionsContainer, "tsqd-actions-container"), _v$18 = clsx(styles.actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$19 = clsx(styles.actionsBtn, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$20 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$21 = offline(), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = clsx(styles.overflowQueryContainer, "tsqd-queries-overflow-container");
|
|
13039
|
+
`, "tsqd-filters-actions-container"), _v$12 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$13 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$14 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$15 = `Sort order ${sortOrder() === -1 ? "descending" : "ascending"}`, _v$16 = sortOrder() === -1, _v$17 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$18 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$19 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$20 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$21 = offline(), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container");
|
|
12638
13040
|
_v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
|
|
12639
13041
|
_v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
|
|
12640
13042
|
_v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
|
|
@@ -12657,7 +13059,7 @@ var init_Devtools = __esm({
|
|
|
12657
13059
|
_v$20 !== _p$._v$20 && setAttribute(_el$25, "aria-label", _p$._v$20 = _v$20);
|
|
12658
13060
|
_v$21 !== _p$._v$21 && setAttribute(_el$25, "aria-pressed", _p$._v$21 = _v$21);
|
|
12659
13061
|
_v$22 !== _p$._v$22 && setAttribute(_el$25, "title", _p$._v$22 = _v$22);
|
|
12660
|
-
_v$23 !== _p$._v$23 && className(_el$
|
|
13062
|
+
_v$23 !== _p$._v$23 && className(_el$36, _p$._v$23 = _v$23);
|
|
12661
13063
|
return _p$;
|
|
12662
13064
|
}, {
|
|
12663
13065
|
_v$: void 0,
|
|
@@ -12690,7 +13092,15 @@ var init_Devtools = __esm({
|
|
|
12690
13092
|
})();
|
|
12691
13093
|
};
|
|
12692
13094
|
QueryRow = (props) => {
|
|
12693
|
-
const
|
|
13095
|
+
const theme = useTheme();
|
|
13096
|
+
const styles = createMemo(() => {
|
|
13097
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
13098
|
+
});
|
|
13099
|
+
const {
|
|
13100
|
+
colors,
|
|
13101
|
+
alpha
|
|
13102
|
+
} = tokens;
|
|
13103
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
12694
13104
|
const queryState = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().find({
|
|
12695
13105
|
queryKey: props.query.queryKey
|
|
12696
13106
|
})?.state);
|
|
@@ -12708,41 +13118,47 @@ var init_Devtools = __esm({
|
|
|
12708
13118
|
observerCount: observers(),
|
|
12709
13119
|
isStale: isStale()
|
|
12710
13120
|
}));
|
|
13121
|
+
const getObserverCountColorStyles = () => {
|
|
13122
|
+
if (color() === "gray") {
|
|
13123
|
+
return u`
|
|
13124
|
+
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
13125
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
13126
|
+
`;
|
|
13127
|
+
}
|
|
13128
|
+
return u`
|
|
13129
|
+
background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
|
|
13130
|
+
color: ${t2(colors[color()][800], colors[color()][300])};
|
|
13131
|
+
`;
|
|
13132
|
+
};
|
|
12711
13133
|
return createComponent(Show, {
|
|
12712
13134
|
get when() {
|
|
12713
13135
|
return queryState();
|
|
12714
13136
|
},
|
|
12715
13137
|
get children() {
|
|
12716
|
-
const _el$
|
|
12717
|
-
_el$
|
|
12718
|
-
insert(_el$
|
|
12719
|
-
insert(_el$
|
|
12720
|
-
insert(_el$
|
|
13138
|
+
const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild, _el$42 = _el$41.nextSibling;
|
|
13139
|
+
_el$40.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
|
|
13140
|
+
insert(_el$41, observers);
|
|
13141
|
+
insert(_el$42, () => props.query.queryHash);
|
|
13142
|
+
insert(_el$40, createComponent(Show, {
|
|
12721
13143
|
get when() {
|
|
12722
13144
|
return isDisabled();
|
|
12723
13145
|
},
|
|
12724
13146
|
get children() {
|
|
12725
|
-
return _tmpl$
|
|
13147
|
+
return _tmpl$172();
|
|
12726
13148
|
}
|
|
12727
13149
|
}), null);
|
|
12728
13150
|
createRenderEffect((_p$) => {
|
|
12729
|
-
const _v$24 = clsx(styles.queryRow, selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow, "tsqd-query-row"), _v$25 = `Query key ${props.query.queryHash}`, _v$26 = clsx(
|
|
12730
|
-
|
|
12731
|
-
|
|
12732
|
-
|
|
12733
|
-
background-color: ${tokens.colors[color()][900]};
|
|
12734
|
-
color: ${tokens.colors[color()][300]};
|
|
12735
|
-
`, "tsqd-query-observer-count");
|
|
12736
|
-
_v$24 !== _p$._v$24 && className(_el$36, _p$._v$24 = _v$24);
|
|
12737
|
-
_v$25 !== _p$._v$25 && setAttribute(_el$36, "aria-label", _p$._v$25 = _v$25);
|
|
12738
|
-
_v$26 !== _p$._v$26 && className(_el$37, _p$._v$26 = _v$26);
|
|
13151
|
+
const _v$24 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$25 = `Query key ${props.query.queryHash}`, _v$26 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
|
|
13152
|
+
_v$24 !== _p$._v$24 && className(_el$40, _p$._v$24 = _v$24);
|
|
13153
|
+
_v$25 !== _p$._v$25 && setAttribute(_el$40, "aria-label", _p$._v$25 = _v$25);
|
|
13154
|
+
_v$26 !== _p$._v$26 && className(_el$41, _p$._v$26 = _v$26);
|
|
12739
13155
|
return _p$;
|
|
12740
13156
|
}, {
|
|
12741
13157
|
_v$24: void 0,
|
|
12742
13158
|
_v$25: void 0,
|
|
12743
13159
|
_v$26: void 0
|
|
12744
13160
|
});
|
|
12745
|
-
return _el$
|
|
13161
|
+
return _el$40;
|
|
12746
13162
|
}
|
|
12747
13163
|
});
|
|
12748
13164
|
};
|
|
@@ -12752,50 +13168,61 @@ var init_Devtools = __esm({
|
|
|
12752
13168
|
const fetching = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "fetching").length);
|
|
12753
13169
|
const paused = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "paused").length);
|
|
12754
13170
|
const inactive = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length);
|
|
12755
|
-
const
|
|
13171
|
+
const theme = useTheme();
|
|
13172
|
+
const styles = createMemo(() => {
|
|
13173
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
13174
|
+
});
|
|
12756
13175
|
return (() => {
|
|
12757
|
-
const _el$
|
|
12758
|
-
insert(_el$
|
|
13176
|
+
const _el$44 = _tmpl$23();
|
|
13177
|
+
insert(_el$44, createComponent(QueryStatus, {
|
|
12759
13178
|
label: "Fresh",
|
|
12760
13179
|
color: "green",
|
|
12761
13180
|
get count() {
|
|
12762
13181
|
return fresh();
|
|
12763
13182
|
}
|
|
12764
13183
|
}), null);
|
|
12765
|
-
insert(_el$
|
|
13184
|
+
insert(_el$44, createComponent(QueryStatus, {
|
|
12766
13185
|
label: "Fetching",
|
|
12767
13186
|
color: "blue",
|
|
12768
13187
|
get count() {
|
|
12769
13188
|
return fetching();
|
|
12770
13189
|
}
|
|
12771
13190
|
}), null);
|
|
12772
|
-
insert(_el$
|
|
13191
|
+
insert(_el$44, createComponent(QueryStatus, {
|
|
12773
13192
|
label: "Paused",
|
|
12774
13193
|
color: "purple",
|
|
12775
13194
|
get count() {
|
|
12776
13195
|
return paused();
|
|
12777
13196
|
}
|
|
12778
13197
|
}), null);
|
|
12779
|
-
insert(_el$
|
|
13198
|
+
insert(_el$44, createComponent(QueryStatus, {
|
|
12780
13199
|
label: "Stale",
|
|
12781
13200
|
color: "yellow",
|
|
12782
13201
|
get count() {
|
|
12783
13202
|
return stale();
|
|
12784
13203
|
}
|
|
12785
13204
|
}), null);
|
|
12786
|
-
insert(_el$
|
|
13205
|
+
insert(_el$44, createComponent(QueryStatus, {
|
|
12787
13206
|
label: "Inactive",
|
|
12788
13207
|
color: "gray",
|
|
12789
13208
|
get count() {
|
|
12790
13209
|
return inactive();
|
|
12791
13210
|
}
|
|
12792
13211
|
}), null);
|
|
12793
|
-
createRenderEffect(() => className(_el$
|
|
12794
|
-
return _el$
|
|
13212
|
+
createRenderEffect(() => className(_el$44, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
13213
|
+
return _el$44;
|
|
12795
13214
|
})();
|
|
12796
13215
|
};
|
|
12797
13216
|
QueryStatus = (props) => {
|
|
12798
|
-
const
|
|
13217
|
+
const theme = useTheme();
|
|
13218
|
+
const styles = createMemo(() => {
|
|
13219
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
13220
|
+
});
|
|
13221
|
+
const {
|
|
13222
|
+
colors,
|
|
13223
|
+
alpha
|
|
13224
|
+
} = tokens;
|
|
13225
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
12799
13226
|
let tagRef;
|
|
12800
13227
|
const [mouseOver, setMouseOver] = createSignal(false);
|
|
12801
13228
|
const [focused, setFocused] = createSignal(false);
|
|
@@ -12811,78 +13238,83 @@ var init_Devtools = __esm({
|
|
|
12811
13238
|
return true;
|
|
12812
13239
|
});
|
|
12813
13240
|
return (() => {
|
|
12814
|
-
const _el$
|
|
13241
|
+
const _el$45 = _tmpl$21(), _el$47 = _el$45.firstChild, _el$49 = _el$47.nextSibling;
|
|
12815
13242
|
const _ref$3 = tagRef;
|
|
12816
|
-
typeof _ref$3 === "function" ? use(_ref$3, _el$
|
|
12817
|
-
_el$
|
|
13243
|
+
typeof _ref$3 === "function" ? use(_ref$3, _el$45) : tagRef = _el$45;
|
|
13244
|
+
_el$45.addEventListener("mouseleave", () => {
|
|
12818
13245
|
setMouseOver(false);
|
|
12819
13246
|
setFocused(false);
|
|
12820
13247
|
});
|
|
12821
|
-
_el$
|
|
12822
|
-
_el$
|
|
12823
|
-
_el$
|
|
12824
|
-
spread(_el$
|
|
13248
|
+
_el$45.addEventListener("mouseenter", () => setMouseOver(true));
|
|
13249
|
+
_el$45.addEventListener("blur", () => setFocused(false));
|
|
13250
|
+
_el$45.addEventListener("focus", () => setFocused(true));
|
|
13251
|
+
spread(_el$45, mergeProps({
|
|
12825
13252
|
get disabled() {
|
|
12826
13253
|
return showLabel();
|
|
12827
13254
|
},
|
|
12828
13255
|
get ["class"]() {
|
|
12829
|
-
return clsx(styles.queryStatusTag, !showLabel() && u`
|
|
13256
|
+
return clsx(styles().queryStatusTag, !showLabel() && u`
|
|
12830
13257
|
cursor: pointer;
|
|
12831
13258
|
&:hover {
|
|
12832
|
-
background: ${
|
|
13259
|
+
background: ${t2(colors.gray[200], colors.darkGray[400])}${alpha[80]};
|
|
12833
13260
|
}
|
|
12834
13261
|
`, "tsqd-query-status-tag", `tsqd-query-status-tag-${props.label.toLowerCase()}`);
|
|
12835
13262
|
}
|
|
12836
13263
|
}, () => mouseOver() || focused() ? {
|
|
12837
13264
|
"aria-describedby": "tsqd-status-tooltip"
|
|
12838
13265
|
} : {}), false, true);
|
|
12839
|
-
insert(_el$
|
|
13266
|
+
insert(_el$45, createComponent(Show, {
|
|
12840
13267
|
get when() {
|
|
12841
13268
|
return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
|
|
12842
13269
|
},
|
|
12843
13270
|
get children() {
|
|
12844
|
-
const _el$
|
|
12845
|
-
insert(_el$
|
|
12846
|
-
createRenderEffect(() => className(_el$
|
|
12847
|
-
return _el$
|
|
13271
|
+
const _el$46 = _tmpl$192();
|
|
13272
|
+
insert(_el$46, () => props.label);
|
|
13273
|
+
createRenderEffect(() => className(_el$46, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
|
|
13274
|
+
return _el$46;
|
|
12848
13275
|
}
|
|
12849
|
-
}), _el$
|
|
12850
|
-
insert(_el$
|
|
13276
|
+
}), _el$47);
|
|
13277
|
+
insert(_el$45, createComponent(Show, {
|
|
12851
13278
|
get when() {
|
|
12852
13279
|
return showLabel();
|
|
12853
13280
|
},
|
|
12854
13281
|
get children() {
|
|
12855
|
-
const _el$
|
|
12856
|
-
insert(_el$
|
|
12857
|
-
createRenderEffect(() => className(_el$
|
|
12858
|
-
return _el$
|
|
13282
|
+
const _el$48 = _tmpl$20();
|
|
13283
|
+
insert(_el$48, () => props.label);
|
|
13284
|
+
createRenderEffect(() => className(_el$48, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
|
|
13285
|
+
return _el$48;
|
|
12859
13286
|
}
|
|
12860
|
-
}), _el$
|
|
12861
|
-
insert(_el$
|
|
13287
|
+
}), _el$49);
|
|
13288
|
+
insert(_el$49, () => props.count);
|
|
12862
13289
|
createRenderEffect((_p$) => {
|
|
12863
13290
|
const _v$27 = clsx(u`
|
|
12864
13291
|
width: ${tokens.size[1.5]};
|
|
12865
13292
|
height: ${tokens.size[1.5]};
|
|
12866
13293
|
border-radius: ${tokens.border.radius.full};
|
|
12867
13294
|
background-color: ${tokens.colors[props.color][500]};
|
|
12868
|
-
`, "tsqd-query-status-tag-dot"), _v$28 = clsx(styles.queryStatusCount, props.count > 0 && props.color !== "gray"
|
|
12869
|
-
|
|
12870
|
-
|
|
12871
|
-
|
|
12872
|
-
|
|
12873
|
-
|
|
12874
|
-
_v$27 !== _p$._v$27 && className(_el$43, _p$._v$27 = _v$27);
|
|
12875
|
-
_v$28 !== _p$._v$28 && className(_el$45, _p$._v$28 = _v$28);
|
|
13295
|
+
`, "tsqd-query-status-tag-dot"), _v$28 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
|
|
13296
|
+
background-color: ${t2(colors[props.color][100], colors[props.color][900])};
|
|
13297
|
+
color: ${t2(colors[props.color][700], colors[props.color][300])};
|
|
13298
|
+
`, "tsqd-query-status-tag-count");
|
|
13299
|
+
_v$27 !== _p$._v$27 && className(_el$47, _p$._v$27 = _v$27);
|
|
13300
|
+
_v$28 !== _p$._v$28 && className(_el$49, _p$._v$28 = _v$28);
|
|
12876
13301
|
return _p$;
|
|
12877
13302
|
}, {
|
|
12878
13303
|
_v$27: void 0,
|
|
12879
13304
|
_v$28: void 0
|
|
12880
13305
|
});
|
|
12881
|
-
return _el$
|
|
13306
|
+
return _el$45;
|
|
12882
13307
|
})();
|
|
12883
13308
|
};
|
|
12884
13309
|
QueryDetails = () => {
|
|
12885
|
-
const
|
|
13310
|
+
const theme = useTheme();
|
|
13311
|
+
const styles = createMemo(() => {
|
|
13312
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
13313
|
+
});
|
|
13314
|
+
const {
|
|
13315
|
+
colors
|
|
13316
|
+
} = tokens;
|
|
13317
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
12886
13318
|
const queryClient = useQueryDevtoolsContext().client;
|
|
12887
13319
|
const [restoringLoading, setRestoringLoading] = createSignal(false);
|
|
12888
13320
|
const errorTypes = createMemo(() => {
|
|
@@ -12939,24 +13371,38 @@ var init_Devtools = __esm({
|
|
|
12939
13371
|
setRestoringLoading(false);
|
|
12940
13372
|
}
|
|
12941
13373
|
});
|
|
13374
|
+
const getQueryStatusColors = () => {
|
|
13375
|
+
if (color() === "gray") {
|
|
13376
|
+
return u`
|
|
13377
|
+
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
13378
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
13379
|
+
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
13380
|
+
`;
|
|
13381
|
+
}
|
|
13382
|
+
return u`
|
|
13383
|
+
background-color: ${t2(colors[color()][100], colors[color()][900])};
|
|
13384
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
13385
|
+
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
13386
|
+
`;
|
|
13387
|
+
};
|
|
12942
13388
|
return createComponent(Show, {
|
|
12943
13389
|
get when() {
|
|
12944
13390
|
return createMemo(() => !!activeQuery())() && activeQueryState();
|
|
12945
13391
|
},
|
|
12946
13392
|
get children() {
|
|
12947
|
-
const _el$
|
|
12948
|
-
insert(_el$
|
|
12949
|
-
insert(_el$
|
|
12950
|
-
insert(_el$
|
|
12951
|
-
insert(_el$
|
|
12952
|
-
_el$
|
|
12953
|
-
_el$
|
|
12954
|
-
_el$
|
|
12955
|
-
_el$
|
|
13393
|
+
const _el$50 = _tmpl$24(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling, _el$53 = _el$52.firstChild, _el$54 = _el$53.firstChild, _el$55 = _el$54.firstChild, _el$56 = _el$54.nextSibling, _el$57 = _el$53.nextSibling, _el$58 = _el$57.firstChild, _el$59 = _el$58.nextSibling, _el$60 = _el$57.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$52.nextSibling, _el$64 = _el$63.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.firstChild, _el$67 = _el$65.nextSibling, _el$68 = _el$67.firstChild, _el$69 = _el$67.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$69.nextSibling, _el$72 = _el$71.firstChild, _el$73 = _el$71.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$84 = _el$64.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling;
|
|
13394
|
+
insert(_el$55, () => displayValue(activeQuery().queryKey, true));
|
|
13395
|
+
insert(_el$56, statusLabel);
|
|
13396
|
+
insert(_el$59, observerCount);
|
|
13397
|
+
insert(_el$62, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
|
|
13398
|
+
_el$65.$$click = handleRefetch;
|
|
13399
|
+
_el$67.$$click = () => queryClient.invalidateQueries(activeQuery());
|
|
13400
|
+
_el$69.$$click = () => queryClient.resetQueries(activeQuery());
|
|
13401
|
+
_el$71.$$click = () => {
|
|
12956
13402
|
queryClient.removeQueries(activeQuery());
|
|
12957
13403
|
setSelectedQueryHash(null);
|
|
12958
13404
|
};
|
|
12959
|
-
_el$
|
|
13405
|
+
_el$73.$$click = () => {
|
|
12960
13406
|
if (activeQuery()?.state.data === void 0) {
|
|
12961
13407
|
setRestoringLoading(true);
|
|
12962
13408
|
restoreQueryAfterLoadingOrError();
|
|
@@ -12984,79 +13430,79 @@ var init_Devtools = __esm({
|
|
|
12984
13430
|
});
|
|
12985
13431
|
}
|
|
12986
13432
|
};
|
|
12987
|
-
insert(_el$
|
|
12988
|
-
insert(_el$
|
|
13433
|
+
insert(_el$73, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$75);
|
|
13434
|
+
insert(_el$64, createComponent(Show, {
|
|
12989
13435
|
get when() {
|
|
12990
13436
|
return errorTypes().length === 0 || queryStatus() === "error";
|
|
12991
13437
|
},
|
|
12992
13438
|
get children() {
|
|
12993
|
-
const _el$
|
|
12994
|
-
_el$
|
|
13439
|
+
const _el$76 = _tmpl$222(), _el$77 = _el$76.firstChild, _el$78 = _el$77.nextSibling;
|
|
13440
|
+
_el$76.$$click = () => {
|
|
12995
13441
|
if (!activeQuery().state.error) {
|
|
12996
13442
|
triggerError();
|
|
12997
13443
|
} else {
|
|
12998
13444
|
queryClient.resetQueries(activeQuery());
|
|
12999
13445
|
}
|
|
13000
13446
|
};
|
|
13001
|
-
insert(_el$
|
|
13447
|
+
insert(_el$76, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$78);
|
|
13002
13448
|
createRenderEffect((_p$) => {
|
|
13003
13449
|
const _v$29 = clsx(u`
|
|
13004
|
-
color: ${
|
|
13450
|
+
color: ${t2(colors.red[500], colors.red[400])};
|
|
13005
13451
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$30 = queryStatus() === "pending", _v$31 = u`
|
|
13006
|
-
background-color: ${
|
|
13452
|
+
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
13007
13453
|
`;
|
|
13008
|
-
_v$29 !== _p$._v$29 && className(_el$
|
|
13009
|
-
_v$30 !== _p$._v$30 && (_el$
|
|
13010
|
-
_v$31 !== _p$._v$31 && className(_el$
|
|
13454
|
+
_v$29 !== _p$._v$29 && className(_el$76, _p$._v$29 = _v$29);
|
|
13455
|
+
_v$30 !== _p$._v$30 && (_el$76.disabled = _p$._v$30 = _v$30);
|
|
13456
|
+
_v$31 !== _p$._v$31 && className(_el$77, _p$._v$31 = _v$31);
|
|
13011
13457
|
return _p$;
|
|
13012
13458
|
}, {
|
|
13013
13459
|
_v$29: void 0,
|
|
13014
13460
|
_v$30: void 0,
|
|
13015
13461
|
_v$31: void 0
|
|
13016
13462
|
});
|
|
13017
|
-
return _el$
|
|
13463
|
+
return _el$76;
|
|
13018
13464
|
}
|
|
13019
13465
|
}), null);
|
|
13020
|
-
insert(_el$
|
|
13466
|
+
insert(_el$64, createComponent(Show, {
|
|
13021
13467
|
get when() {
|
|
13022
13468
|
return !(errorTypes().length === 0 || queryStatus() === "error");
|
|
13023
13469
|
},
|
|
13024
13470
|
get children() {
|
|
13025
|
-
const _el$
|
|
13026
|
-
_el$
|
|
13027
|
-
const errorType = errorTypes().find((
|
|
13471
|
+
const _el$79 = _tmpl$232(), _el$80 = _el$79.firstChild, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling; _el$82.firstChild;
|
|
13472
|
+
_el$82.addEventListener("change", (e2) => {
|
|
13473
|
+
const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
|
|
13028
13474
|
triggerError(errorType);
|
|
13029
13475
|
});
|
|
13030
|
-
insert(_el$
|
|
13476
|
+
insert(_el$82, createComponent(For, {
|
|
13031
13477
|
get each() {
|
|
13032
13478
|
return errorTypes();
|
|
13033
13479
|
},
|
|
13034
13480
|
children: (errorType) => (() => {
|
|
13035
|
-
const _el$
|
|
13036
|
-
insert(_el$
|
|
13037
|
-
createRenderEffect(() => _el$
|
|
13038
|
-
return _el$
|
|
13481
|
+
const _el$88 = _tmpl$25();
|
|
13482
|
+
insert(_el$88, () => errorType.name);
|
|
13483
|
+
createRenderEffect(() => _el$88.value = errorType.name);
|
|
13484
|
+
return _el$88;
|
|
13039
13485
|
})()
|
|
13040
13486
|
}), null);
|
|
13041
|
-
insert(_el$
|
|
13487
|
+
insert(_el$79, createComponent(ChevronDown, {}), null);
|
|
13042
13488
|
createRenderEffect((_p$) => {
|
|
13043
|
-
const _v$32 = clsx(styles.actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$33 = u`
|
|
13489
|
+
const _v$32 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$33 = u`
|
|
13044
13490
|
background-color: ${tokens.colors.red[400]};
|
|
13045
13491
|
`, _v$34 = queryStatus() === "pending";
|
|
13046
|
-
_v$32 !== _p$._v$32 && className(_el$
|
|
13047
|
-
_v$33 !== _p$._v$33 && className(_el$
|
|
13048
|
-
_v$34 !== _p$._v$34 && (_el$
|
|
13492
|
+
_v$32 !== _p$._v$32 && className(_el$79, _p$._v$32 = _v$32);
|
|
13493
|
+
_v$33 !== _p$._v$33 && className(_el$80, _p$._v$33 = _v$33);
|
|
13494
|
+
_v$34 !== _p$._v$34 && (_el$82.disabled = _p$._v$34 = _v$34);
|
|
13049
13495
|
return _p$;
|
|
13050
13496
|
}, {
|
|
13051
13497
|
_v$32: void 0,
|
|
13052
13498
|
_v$33: void 0,
|
|
13053
13499
|
_v$34: void 0
|
|
13054
13500
|
});
|
|
13055
|
-
return _el$
|
|
13501
|
+
return _el$79;
|
|
13056
13502
|
}
|
|
13057
13503
|
}), null);
|
|
13058
|
-
_el$
|
|
13059
|
-
insert(_el$
|
|
13504
|
+
_el$85.style.setProperty("padding", "0.5rem");
|
|
13505
|
+
insert(_el$85, createComponent(Explorer, {
|
|
13060
13506
|
label: "Data",
|
|
13061
13507
|
defaultExpanded: ["Data"],
|
|
13062
13508
|
get value() {
|
|
@@ -13067,8 +13513,8 @@ var init_Devtools = __esm({
|
|
|
13067
13513
|
return activeQuery();
|
|
13068
13514
|
}
|
|
13069
13515
|
}));
|
|
13070
|
-
_el$
|
|
13071
|
-
insert(_el$
|
|
13516
|
+
_el$87.style.setProperty("padding", "0.5rem");
|
|
13517
|
+
insert(_el$87, createComponent(Explorer, {
|
|
13072
13518
|
label: "Query",
|
|
13073
13519
|
defaultExpanded: ["Query", "queryKey"],
|
|
13074
13520
|
get value() {
|
|
@@ -13076,58 +13522,50 @@ var init_Devtools = __esm({
|
|
|
13076
13522
|
}
|
|
13077
13523
|
}));
|
|
13078
13524
|
createRenderEffect((_p$) => {
|
|
13079
|
-
const _v$35 = clsx(styles.detailsContainer, "tsqd-query-details-container"), _v$36 = clsx(styles.detailsHeader, "tsqd-query-details-header"), _v$37 = clsx(styles.detailsBody, "tsqd-query-details-summary-container"), _v$38 = clsx(styles.queryDetailsStatus,
|
|
13080
|
-
|
|
13081
|
-
color: ${tokens.colors[color()][300]};
|
|
13082
|
-
border-color: ${tokens.colors[color()][600]};
|
|
13083
|
-
` : u`
|
|
13084
|
-
background-color: ${tokens.colors[color()][900]};
|
|
13085
|
-
color: ${tokens.colors[color()][300]};
|
|
13086
|
-
border-color: ${tokens.colors[color()][600]};
|
|
13087
|
-
`), _v$39 = clsx(styles.detailsHeader, "tsqd-query-details-header"), _v$40 = clsx(styles.actionsBody, "tsqd-query-details-actions-container"), _v$41 = clsx(u`
|
|
13088
|
-
color: ${tokens.colors.blue[400]};
|
|
13525
|
+
const _v$35 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$36 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$37 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$38 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$39 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$40 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$41 = clsx(u`
|
|
13526
|
+
color: ${t2(colors.blue[600], colors.blue[400])};
|
|
13089
13527
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$42 = statusLabel() === "fetching", _v$43 = u`
|
|
13090
|
-
background-color: ${
|
|
13528
|
+
background-color: ${t2(colors.blue[600], colors.blue[400])};
|
|
13091
13529
|
`, _v$44 = clsx(u`
|
|
13092
|
-
color: ${
|
|
13530
|
+
color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
13093
13531
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$45 = queryStatus() === "pending", _v$46 = u`
|
|
13094
|
-
background-color: ${
|
|
13532
|
+
background-color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
13095
13533
|
`, _v$47 = clsx(u`
|
|
13096
|
-
color: ${
|
|
13534
|
+
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
13097
13535
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$48 = queryStatus() === "pending", _v$49 = u`
|
|
13098
|
-
background-color: ${
|
|
13536
|
+
background-color: ${t2(colors.gray[600], colors.gray[400])};
|
|
13099
13537
|
`, _v$50 = clsx(u`
|
|
13100
|
-
color: ${
|
|
13538
|
+
color: ${t2(colors.pink[500], colors.pink[400])};
|
|
13101
13539
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$51 = statusLabel() === "fetching", _v$52 = u`
|
|
13102
|
-
background-color: ${
|
|
13540
|
+
background-color: ${t2(colors.pink[500], colors.pink[400])};
|
|
13103
13541
|
`, _v$53 = clsx(u`
|
|
13104
|
-
color: ${
|
|
13542
|
+
color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
13105
13543
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$54 = restoringLoading(), _v$55 = u`
|
|
13106
|
-
background-color: ${
|
|
13107
|
-
`, _v$56 = clsx(styles.detailsHeader, "tsqd-query-details-header"), _v$57 = clsx(styles.detailsHeader, "tsqd-query-details-header");
|
|
13108
|
-
_v$35 !== _p$._v$35 && className(_el$
|
|
13109
|
-
_v$36 !== _p$._v$36 && className(_el$
|
|
13110
|
-
_v$37 !== _p$._v$37 && className(_el$
|
|
13111
|
-
_v$38 !== _p$._v$38 && className(_el$
|
|
13112
|
-
_v$39 !== _p$._v$39 && className(_el$
|
|
13113
|
-
_v$40 !== _p$._v$40 && className(_el$
|
|
13114
|
-
_v$41 !== _p$._v$41 && className(_el$
|
|
13115
|
-
_v$42 !== _p$._v$42 && (_el$
|
|
13116
|
-
_v$43 !== _p$._v$43 && className(_el$
|
|
13117
|
-
_v$44 !== _p$._v$44 && className(_el$
|
|
13118
|
-
_v$45 !== _p$._v$45 && (_el$
|
|
13119
|
-
_v$46 !== _p$._v$46 && className(_el$
|
|
13120
|
-
_v$47 !== _p$._v$47 && className(_el$
|
|
13121
|
-
_v$48 !== _p$._v$48 && (_el$
|
|
13122
|
-
_v$49 !== _p$._v$49 && className(_el$
|
|
13123
|
-
_v$50 !== _p$._v$50 && className(_el$
|
|
13124
|
-
_v$51 !== _p$._v$51 && (_el$
|
|
13125
|
-
_v$52 !== _p$._v$52 && className(_el$
|
|
13126
|
-
_v$53 !== _p$._v$53 && className(_el$
|
|
13127
|
-
_v$54 !== _p$._v$54 && (_el$
|
|
13128
|
-
_v$55 !== _p$._v$55 && className(_el$
|
|
13129
|
-
_v$56 !== _p$._v$56 && className(_el$
|
|
13130
|
-
_v$57 !== _p$._v$57 && className(_el$
|
|
13544
|
+
background-color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
13545
|
+
`, _v$56 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$57 = clsx(styles().detailsHeader, "tsqd-query-details-header");
|
|
13546
|
+
_v$35 !== _p$._v$35 && className(_el$50, _p$._v$35 = _v$35);
|
|
13547
|
+
_v$36 !== _p$._v$36 && className(_el$51, _p$._v$36 = _v$36);
|
|
13548
|
+
_v$37 !== _p$._v$37 && className(_el$52, _p$._v$37 = _v$37);
|
|
13549
|
+
_v$38 !== _p$._v$38 && className(_el$56, _p$._v$38 = _v$38);
|
|
13550
|
+
_v$39 !== _p$._v$39 && className(_el$63, _p$._v$39 = _v$39);
|
|
13551
|
+
_v$40 !== _p$._v$40 && className(_el$64, _p$._v$40 = _v$40);
|
|
13552
|
+
_v$41 !== _p$._v$41 && className(_el$65, _p$._v$41 = _v$41);
|
|
13553
|
+
_v$42 !== _p$._v$42 && (_el$65.disabled = _p$._v$42 = _v$42);
|
|
13554
|
+
_v$43 !== _p$._v$43 && className(_el$66, _p$._v$43 = _v$43);
|
|
13555
|
+
_v$44 !== _p$._v$44 && className(_el$67, _p$._v$44 = _v$44);
|
|
13556
|
+
_v$45 !== _p$._v$45 && (_el$67.disabled = _p$._v$45 = _v$45);
|
|
13557
|
+
_v$46 !== _p$._v$46 && className(_el$68, _p$._v$46 = _v$46);
|
|
13558
|
+
_v$47 !== _p$._v$47 && className(_el$69, _p$._v$47 = _v$47);
|
|
13559
|
+
_v$48 !== _p$._v$48 && (_el$69.disabled = _p$._v$48 = _v$48);
|
|
13560
|
+
_v$49 !== _p$._v$49 && className(_el$70, _p$._v$49 = _v$49);
|
|
13561
|
+
_v$50 !== _p$._v$50 && className(_el$71, _p$._v$50 = _v$50);
|
|
13562
|
+
_v$51 !== _p$._v$51 && (_el$71.disabled = _p$._v$51 = _v$51);
|
|
13563
|
+
_v$52 !== _p$._v$52 && className(_el$72, _p$._v$52 = _v$52);
|
|
13564
|
+
_v$53 !== _p$._v$53 && className(_el$73, _p$._v$53 = _v$53);
|
|
13565
|
+
_v$54 !== _p$._v$54 && (_el$73.disabled = _p$._v$54 = _v$54);
|
|
13566
|
+
_v$55 !== _p$._v$55 && className(_el$74, _p$._v$55 = _v$55);
|
|
13567
|
+
_v$56 !== _p$._v$56 && className(_el$84, _p$._v$56 = _v$56);
|
|
13568
|
+
_v$57 !== _p$._v$57 && className(_el$86, _p$._v$57 = _v$57);
|
|
13131
13569
|
return _p$;
|
|
13132
13570
|
}, {
|
|
13133
13571
|
_v$35: void 0,
|
|
@@ -13154,7 +13592,7 @@ var init_Devtools = __esm({
|
|
|
13154
13592
|
_v$56: void 0,
|
|
13155
13593
|
_v$57: void 0
|
|
13156
13594
|
});
|
|
13157
|
-
return _el$
|
|
13595
|
+
return _el$50;
|
|
13158
13596
|
}
|
|
13159
13597
|
});
|
|
13160
13598
|
};
|
|
@@ -13194,7 +13632,7 @@ var init_Devtools = __esm({
|
|
|
13194
13632
|
});
|
|
13195
13633
|
return value;
|
|
13196
13634
|
};
|
|
13197
|
-
|
|
13635
|
+
stylesFactory2 = (theme) => {
|
|
13198
13636
|
const {
|
|
13199
13637
|
colors,
|
|
13200
13638
|
font,
|
|
@@ -13203,6 +13641,7 @@ var init_Devtools = __esm({
|
|
|
13203
13641
|
shadow,
|
|
13204
13642
|
border
|
|
13205
13643
|
} = tokens;
|
|
13644
|
+
const t2 = (light, dark) => theme === "light" ? light : dark;
|
|
13206
13645
|
return {
|
|
13207
13646
|
devtoolsBtn: u`
|
|
13208
13647
|
z-index: 100000;
|
|
@@ -13264,8 +13703,6 @@ var init_Devtools = __esm({
|
|
|
13264
13703
|
display: flex;
|
|
13265
13704
|
gap: ${tokens.size[0.5]};
|
|
13266
13705
|
& * {
|
|
13267
|
-
font-family: 'Inter', sans-serif;
|
|
13268
|
-
color: ${colors.gray[300]};
|
|
13269
13706
|
box-sizing: border-box;
|
|
13270
13707
|
text-transform: none;
|
|
13271
13708
|
}
|
|
@@ -13292,7 +13729,7 @@ var init_Devtools = __esm({
|
|
|
13292
13729
|
left: 0;
|
|
13293
13730
|
max-height: 90%;
|
|
13294
13731
|
min-height: 3.5rem;
|
|
13295
|
-
border-bottom: ${colors.darkGray[300]} 1px solid;
|
|
13732
|
+
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13296
13733
|
`,
|
|
13297
13734
|
"panel-position-bottom": u`
|
|
13298
13735
|
bottom: 0;
|
|
@@ -13300,20 +13737,20 @@ var init_Devtools = __esm({
|
|
|
13300
13737
|
left: 0;
|
|
13301
13738
|
max-height: 90%;
|
|
13302
13739
|
min-height: 3.5rem;
|
|
13303
|
-
border-top: ${colors.darkGray[300]} 1px solid;
|
|
13740
|
+
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13304
13741
|
`,
|
|
13305
13742
|
"panel-position-right": u`
|
|
13306
13743
|
bottom: 0;
|
|
13307
13744
|
right: 0;
|
|
13308
13745
|
top: 0;
|
|
13309
|
-
border-left: ${colors.darkGray[300]} 1px solid;
|
|
13746
|
+
border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13310
13747
|
max-width: 90%;
|
|
13311
13748
|
`,
|
|
13312
13749
|
"panel-position-left": u`
|
|
13313
13750
|
bottom: 0;
|
|
13314
13751
|
left: 0;
|
|
13315
13752
|
top: 0;
|
|
13316
|
-
border-right: ${colors.darkGray[300]} 1px solid;
|
|
13753
|
+
border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13317
13754
|
max-width: 90%;
|
|
13318
13755
|
`,
|
|
13319
13756
|
closeBtn: u`
|
|
@@ -13324,13 +13761,15 @@ var init_Devtools = __esm({
|
|
|
13324
13761
|
align-items: center;
|
|
13325
13762
|
justify-content: center;
|
|
13326
13763
|
outline: none;
|
|
13764
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
13327
13765
|
&:hover {
|
|
13328
|
-
background-color: ${colors.darkGray[500]};
|
|
13766
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
13329
13767
|
}
|
|
13330
13768
|
&:focus-visible {
|
|
13331
13769
|
outline: 2px solid ${colors.blue[600]};
|
|
13332
13770
|
}
|
|
13333
13771
|
& svg {
|
|
13772
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
13334
13773
|
width: ${size2[2]};
|
|
13335
13774
|
height: ${size2[2]};
|
|
13336
13775
|
}
|
|
@@ -13339,11 +13778,10 @@ var init_Devtools = __esm({
|
|
|
13339
13778
|
bottom: 0;
|
|
13340
13779
|
right: ${size2[2]};
|
|
13341
13780
|
transform: translate(0, 100%);
|
|
13342
|
-
|
|
13343
|
-
border-
|
|
13344
|
-
border-left: ${colors.darkGray[300]} 1px solid;
|
|
13781
|
+
border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13782
|
+
border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13345
13783
|
border-top: none;
|
|
13346
|
-
border-bottom: ${colors.darkGray[300]} 1px solid;
|
|
13784
|
+
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13347
13785
|
border-radius: 0px 0px ${border.radius.sm} ${border.radius.sm};
|
|
13348
13786
|
padding: ${size2[0.5]} ${size2[1.5]} ${size2[1]} ${size2[1.5]};
|
|
13349
13787
|
|
|
@@ -13364,10 +13802,9 @@ var init_Devtools = __esm({
|
|
|
13364
13802
|
top: 0;
|
|
13365
13803
|
right: ${size2[2]};
|
|
13366
13804
|
transform: translate(0, -100%);
|
|
13367
|
-
|
|
13368
|
-
border-
|
|
13369
|
-
border-
|
|
13370
|
-
border-top: ${colors.darkGray[300]} 1px solid;
|
|
13805
|
+
border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13806
|
+
border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13807
|
+
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13371
13808
|
border-bottom: none;
|
|
13372
13809
|
border-radius: ${border.radius.sm} ${border.radius.sm} 0px 0px;
|
|
13373
13810
|
padding: ${size2[1]} ${size2[1.5]} ${size2[0.5]} ${size2[1.5]};
|
|
@@ -13385,11 +13822,10 @@ var init_Devtools = __esm({
|
|
|
13385
13822
|
bottom: ${size2[2]};
|
|
13386
13823
|
left: 0;
|
|
13387
13824
|
transform: translate(-100%, 0);
|
|
13388
|
-
background-color: ${colors.darkGray[700]};
|
|
13389
13825
|
border-right: none;
|
|
13390
|
-
border-left: ${colors.darkGray[300]} 1px solid;
|
|
13391
|
-
border-top: ${colors.darkGray[300]} 1px solid;
|
|
13392
|
-
border-bottom: ${colors.darkGray[300]} 1px solid;
|
|
13826
|
+
border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13827
|
+
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13828
|
+
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13393
13829
|
border-radius: ${border.radius.sm} 0px 0px ${border.radius.sm};
|
|
13394
13830
|
padding: ${size2[1.5]} ${size2[0.5]} ${size2[1.5]} ${size2[1]};
|
|
13395
13831
|
|
|
@@ -13409,11 +13845,10 @@ var init_Devtools = __esm({
|
|
|
13409
13845
|
bottom: ${size2[2]};
|
|
13410
13846
|
right: 0;
|
|
13411
13847
|
transform: translate(100%, 0);
|
|
13412
|
-
background-color: ${colors.darkGray[700]};
|
|
13413
13848
|
border-left: none;
|
|
13414
|
-
border-right: ${colors.darkGray[300]} 1px solid;
|
|
13415
|
-
border-top: ${colors.darkGray[300]} 1px solid;
|
|
13416
|
-
border-bottom: ${colors.darkGray[300]} 1px solid;
|
|
13849
|
+
border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13850
|
+
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13851
|
+
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13417
13852
|
border-radius: 0px ${border.radius.sm} ${border.radius.sm} 0px;
|
|
13418
13853
|
padding: ${size2[1.5]} ${size2[1]} ${size2[1.5]} ${size2[0.5]};
|
|
13419
13854
|
|
|
@@ -13431,15 +13866,18 @@ var init_Devtools = __esm({
|
|
|
13431
13866
|
`,
|
|
13432
13867
|
queriesContainer: u`
|
|
13433
13868
|
flex: 1 1 700px;
|
|
13434
|
-
background-color: ${colors.darkGray[700]};
|
|
13869
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
13435
13870
|
display: flex;
|
|
13436
13871
|
flex-direction: column;
|
|
13872
|
+
& * {
|
|
13873
|
+
font-family: 'Inter', sans-serif;
|
|
13874
|
+
}
|
|
13437
13875
|
`,
|
|
13438
13876
|
dragHandle: u`
|
|
13439
13877
|
position: absolute;
|
|
13440
13878
|
transition: background-color 0.125s ease;
|
|
13441
13879
|
&:hover {
|
|
13442
|
-
background-color: ${colors.purple[400]}${alpha[90]};
|
|
13880
|
+
background-color: ${colors.purple[400]}${t2("", alpha[90])};
|
|
13443
13881
|
}
|
|
13444
13882
|
z-index: 4;
|
|
13445
13883
|
`,
|
|
@@ -13473,7 +13911,7 @@ var init_Devtools = __esm({
|
|
|
13473
13911
|
align-items: center;
|
|
13474
13912
|
padding: ${tokens.size[2]} ${tokens.size[2.5]};
|
|
13475
13913
|
gap: ${tokens.size[3]};
|
|
13476
|
-
border-bottom: ${colors.darkGray[500]} 1px solid;
|
|
13914
|
+
border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
|
|
13477
13915
|
align-items: center;
|
|
13478
13916
|
& > button {
|
|
13479
13917
|
padding: 0;
|
|
@@ -13500,11 +13938,15 @@ var init_Devtools = __esm({
|
|
|
13500
13938
|
font-weight: ${font.weight.bold};
|
|
13501
13939
|
line-height: ${font.lineHeight.xs};
|
|
13502
13940
|
white-space: nowrap;
|
|
13941
|
+
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
13503
13942
|
`,
|
|
13504
13943
|
queryFlavorLogo: u`
|
|
13505
13944
|
font-weight: ${font.weight.semibold};
|
|
13506
13945
|
font-size: ${font.size.xs};
|
|
13507
|
-
background: linear-gradient(
|
|
13946
|
+
background: linear-gradient(
|
|
13947
|
+
to right,
|
|
13948
|
+
${t2("#ea4037, #ff9b11", "#dd524b, #e9a03b")}
|
|
13949
|
+
);
|
|
13508
13950
|
background-clip: text;
|
|
13509
13951
|
-webkit-background-clip: text;
|
|
13510
13952
|
line-height: 1;
|
|
@@ -13519,14 +13961,17 @@ var init_Devtools = __esm({
|
|
|
13519
13961
|
queryStatusTag: u`
|
|
13520
13962
|
display: flex;
|
|
13521
13963
|
gap: ${tokens.size[1.5]};
|
|
13522
|
-
|
|
13964
|
+
box-sizing: border-box;
|
|
13965
|
+
height: ${tokens.size[6.5]};
|
|
13966
|
+
background: ${t2(colors.gray[50], colors.darkGray[500])};
|
|
13967
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
13523
13968
|
border-radius: ${tokens.border.radius.sm};
|
|
13524
13969
|
font-size: ${font.size.sm};
|
|
13525
13970
|
padding: ${tokens.size[1]};
|
|
13526
|
-
padding-left: ${tokens.size[
|
|
13971
|
+
padding-left: ${tokens.size[1.5]};
|
|
13527
13972
|
align-items: center;
|
|
13528
13973
|
font-weight: ${font.weight.medium};
|
|
13529
|
-
border:
|
|
13974
|
+
border: ${t2("1px solid " + colors.gray[300], "1px solid transparent")};
|
|
13530
13975
|
user-select: none;
|
|
13531
13976
|
position: relative;
|
|
13532
13977
|
&:focus-visible {
|
|
@@ -13543,8 +13988,8 @@ var init_Devtools = __esm({
|
|
|
13543
13988
|
display: flex;
|
|
13544
13989
|
align-items: center;
|
|
13545
13990
|
justify-content: center;
|
|
13546
|
-
color: ${colors.gray[400]};
|
|
13547
|
-
background-color: ${colors.darkGray[300]};
|
|
13991
|
+
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
13992
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[300])};
|
|
13548
13993
|
border-radius: 2px;
|
|
13549
13994
|
font-variant-numeric: tabular-nums;
|
|
13550
13995
|
height: ${tokens.size[4.5]};
|
|
@@ -13552,15 +13997,15 @@ var init_Devtools = __esm({
|
|
|
13552
13997
|
statusTooltip: u`
|
|
13553
13998
|
position: absolute;
|
|
13554
13999
|
z-index: 1;
|
|
13555
|
-
background-color: ${colors.darkGray[500]};
|
|
14000
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[500])};
|
|
13556
14001
|
top: 100%;
|
|
13557
14002
|
left: 50%;
|
|
13558
14003
|
transform: translate(-50%, calc(${tokens.size[2]}));
|
|
13559
14004
|
padding: ${tokens.size[0.5]} ${tokens.size[2]};
|
|
13560
|
-
border-radius: ${tokens.border.radius.
|
|
14005
|
+
border-radius: ${tokens.border.radius.sm};
|
|
13561
14006
|
font-size: ${font.size.xs};
|
|
13562
|
-
border: 1px solid ${colors.gray[600]};
|
|
13563
|
-
color: ${
|
|
14007
|
+
border: 1px solid ${t2(colors.gray[400], colors.gray[600])};
|
|
14008
|
+
color: ${t2(colors["gray"][600], colors["gray"][300])};
|
|
13564
14009
|
|
|
13565
14010
|
&::before {
|
|
13566
14011
|
top: 0px;
|
|
@@ -13569,7 +14014,8 @@ var init_Devtools = __esm({
|
|
|
13569
14014
|
left: 50%;
|
|
13570
14015
|
transform: translate(-50%, -100%);
|
|
13571
14016
|
position: absolute;
|
|
13572
|
-
border-color: transparent transparent
|
|
14017
|
+
border-color: transparent transparent
|
|
14018
|
+
${t2(colors.gray[400], colors.gray[600])} transparent;
|
|
13573
14019
|
border-style: solid;
|
|
13574
14020
|
border-width: 7px;
|
|
13575
14021
|
/* transform: rotate(180deg); */
|
|
@@ -13580,16 +14026,13 @@ var init_Devtools = __esm({
|
|
|
13580
14026
|
content: ' ';
|
|
13581
14027
|
display: block;
|
|
13582
14028
|
left: 50%;
|
|
13583
|
-
transform: translate(-50%, calc(-100% +
|
|
14029
|
+
transform: translate(-50%, calc(-100% + 2px));
|
|
13584
14030
|
position: absolute;
|
|
13585
|
-
border-color: transparent transparent
|
|
13586
|
-
transparent;
|
|
14031
|
+
border-color: transparent transparent
|
|
14032
|
+
${t2(colors.gray[100], colors.darkGray[500])} transparent;
|
|
13587
14033
|
border-style: solid;
|
|
13588
14034
|
border-width: 7px;
|
|
13589
14035
|
}
|
|
13590
|
-
`,
|
|
13591
|
-
selectedQueryRow: u`
|
|
13592
|
-
background-color: ${colors.darkGray[500]};
|
|
13593
14036
|
`,
|
|
13594
14037
|
filtersContainer: u`
|
|
13595
14038
|
display: flex;
|
|
@@ -13599,47 +14042,52 @@ var init_Devtools = __esm({
|
|
|
13599
14042
|
padding: ${tokens.size[0.5]} ${tokens.size[2]};
|
|
13600
14043
|
padding-right: ${tokens.size[1.5]};
|
|
13601
14044
|
border-radius: ${tokens.border.radius.sm};
|
|
13602
|
-
background-color: ${colors.darkGray[400]};
|
|
14045
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
14046
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
14047
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
13603
14048
|
font-size: ${font.size.xs};
|
|
13604
14049
|
display: flex;
|
|
13605
14050
|
align-items: center;
|
|
13606
14051
|
line-height: ${font.lineHeight.sm};
|
|
13607
14052
|
gap: ${tokens.size[1.5]};
|
|
13608
14053
|
max-width: 160px;
|
|
13609
|
-
border: 1px solid ${colors.darkGray[200]};
|
|
13610
14054
|
&:focus-visible {
|
|
13611
14055
|
outline-offset: 2px;
|
|
13612
14056
|
border-radius: ${border.radius.xs};
|
|
13613
14057
|
outline: 2px solid ${colors.blue[800]};
|
|
13614
14058
|
}
|
|
14059
|
+
& svg {
|
|
14060
|
+
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
14061
|
+
}
|
|
13615
14062
|
}
|
|
13616
14063
|
`,
|
|
13617
14064
|
filterInput: u`
|
|
13618
|
-
padding: ${
|
|
14065
|
+
padding: ${size2[0.5]} ${size2[2]};
|
|
13619
14066
|
border-radius: ${tokens.border.radius.sm};
|
|
13620
|
-
background-color: ${colors.darkGray[400]};
|
|
14067
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
13621
14068
|
display: flex;
|
|
13622
14069
|
box-sizing: content-box;
|
|
13623
14070
|
align-items: center;
|
|
13624
14071
|
gap: ${tokens.size[1.5]};
|
|
13625
14072
|
max-width: 160px;
|
|
13626
14073
|
min-width: 100px;
|
|
13627
|
-
border: 1px solid ${colors.darkGray[200]};
|
|
14074
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
13628
14075
|
height: min-content;
|
|
14076
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
13629
14077
|
& > svg {
|
|
13630
|
-
width: ${
|
|
13631
|
-
height: ${
|
|
14078
|
+
width: ${size2[3]};
|
|
14079
|
+
height: ${size2[3]};
|
|
13632
14080
|
}
|
|
13633
14081
|
& input {
|
|
13634
14082
|
font-size: ${font.size.xs};
|
|
13635
14083
|
width: 100%;
|
|
13636
|
-
background-color: ${colors.darkGray[400]};
|
|
14084
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
13637
14085
|
border: none;
|
|
13638
14086
|
padding: 0;
|
|
13639
14087
|
line-height: ${font.lineHeight.sm};
|
|
13640
|
-
color: ${colors.gray[300]};
|
|
14088
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
13641
14089
|
&::placeholder {
|
|
13642
|
-
color: ${colors.gray[300]};
|
|
14090
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
13643
14091
|
}
|
|
13644
14092
|
&:focus {
|
|
13645
14093
|
outline: none;
|
|
@@ -13655,24 +14103,26 @@ var init_Devtools = __esm({
|
|
|
13655
14103
|
filterSelect: u`
|
|
13656
14104
|
padding: ${tokens.size[0.5]} ${tokens.size[2]};
|
|
13657
14105
|
border-radius: ${tokens.border.radius.sm};
|
|
13658
|
-
background-color: ${colors.darkGray[400]};
|
|
14106
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
13659
14107
|
display: flex;
|
|
13660
14108
|
align-items: center;
|
|
13661
14109
|
gap: ${tokens.size[1.5]};
|
|
13662
14110
|
box-sizing: content-box;
|
|
13663
14111
|
max-width: 160px;
|
|
13664
|
-
border: 1px solid ${colors.darkGray[200]};
|
|
14112
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
13665
14113
|
height: min-content;
|
|
13666
14114
|
& > svg {
|
|
14115
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
13667
14116
|
width: ${tokens.size[2]};
|
|
13668
14117
|
height: ${tokens.size[2]};
|
|
13669
14118
|
}
|
|
13670
14119
|
& > select {
|
|
13671
14120
|
appearance: none;
|
|
14121
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
13672
14122
|
min-width: 100px;
|
|
13673
14123
|
line-height: ${font.lineHeight.sm};
|
|
13674
14124
|
font-size: ${font.size.xs};
|
|
13675
|
-
background-color: ${colors.darkGray[400]};
|
|
14125
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
13676
14126
|
border: none;
|
|
13677
14127
|
&:focus {
|
|
13678
14128
|
outline: none;
|
|
@@ -13690,7 +14140,8 @@ var init_Devtools = __esm({
|
|
|
13690
14140
|
`,
|
|
13691
14141
|
actionsBtn: u`
|
|
13692
14142
|
border-radius: ${tokens.border.radius.sm};
|
|
13693
|
-
background-color: ${colors.darkGray[400]};
|
|
14143
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
14144
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
13694
14145
|
width: 1.625rem;
|
|
13695
14146
|
height: 1.625rem;
|
|
13696
14147
|
justify-content: center;
|
|
@@ -13698,13 +14149,13 @@ var init_Devtools = __esm({
|
|
|
13698
14149
|
align-items: center;
|
|
13699
14150
|
gap: ${tokens.size[1.5]};
|
|
13700
14151
|
max-width: 160px;
|
|
13701
|
-
border: 1px solid ${colors.darkGray[200]};
|
|
13702
14152
|
cursor: pointer;
|
|
13703
14153
|
padding: 0;
|
|
13704
14154
|
&:hover {
|
|
13705
|
-
background-color: ${colors.darkGray[500]};
|
|
14155
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
13706
14156
|
}
|
|
13707
14157
|
& svg {
|
|
14158
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
13708
14159
|
width: ${tokens.size[3]};
|
|
13709
14160
|
height: ${tokens.size[3]};
|
|
13710
14161
|
}
|
|
@@ -13713,6 +14164,12 @@ var init_Devtools = __esm({
|
|
|
13713
14164
|
border-radius: ${border.radius.xs};
|
|
13714
14165
|
outline: 2px solid ${colors.blue[800]};
|
|
13715
14166
|
}
|
|
14167
|
+
`,
|
|
14168
|
+
actionsBtnOffline: u`
|
|
14169
|
+
& svg {
|
|
14170
|
+
stroke: ${t2(colors.yellow[700], colors.yellow[500])};
|
|
14171
|
+
fill: ${t2(colors.yellow[700], colors.yellow[500])};
|
|
14172
|
+
}
|
|
13716
14173
|
`,
|
|
13717
14174
|
overflowQueryContainer: u`
|
|
13718
14175
|
flex: 1;
|
|
@@ -13726,9 +14183,11 @@ var init_Devtools = __esm({
|
|
|
13726
14183
|
display: flex;
|
|
13727
14184
|
align-items: center;
|
|
13728
14185
|
padding: 0;
|
|
13729
|
-
background-color: inherit;
|
|
13730
14186
|
border: none;
|
|
13731
14187
|
cursor: pointer;
|
|
14188
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
14189
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
14190
|
+
line-height: 1;
|
|
13732
14191
|
&:focus {
|
|
13733
14192
|
outline: none;
|
|
13734
14193
|
}
|
|
@@ -13738,7 +14197,7 @@ var init_Devtools = __esm({
|
|
|
13738
14197
|
outline: 2px solid ${colors.blue[800]};
|
|
13739
14198
|
}
|
|
13740
14199
|
&:hover .tsqd-query-hash {
|
|
13741
|
-
background-color: ${colors.darkGray[600]};
|
|
14200
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[600])};
|
|
13742
14201
|
}
|
|
13743
14202
|
|
|
13744
14203
|
& .tsqd-query-observer-count {
|
|
@@ -13753,7 +14212,7 @@ var init_Devtools = __esm({
|
|
|
13753
14212
|
font-weight: ${font.weight.medium};
|
|
13754
14213
|
border-bottom-width: 1px;
|
|
13755
14214
|
border-bottom-style: solid;
|
|
13756
|
-
border-bottom: 1px solid ${colors.darkGray[700]};
|
|
14215
|
+
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[700])};
|
|
13757
14216
|
}
|
|
13758
14217
|
& .tsqd-query-hash {
|
|
13759
14218
|
user-select: text;
|
|
@@ -13764,7 +14223,7 @@ var init_Devtools = __esm({
|
|
|
13764
14223
|
flex: 1;
|
|
13765
14224
|
padding: ${tokens.size[1]} ${tokens.size[2]};
|
|
13766
14225
|
font-family: 'Menlo', 'Fira Code', monospace;
|
|
13767
|
-
border-bottom: 1px solid ${colors.darkGray[400]};
|
|
14226
|
+
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
13768
14227
|
text-align: left;
|
|
13769
14228
|
text-overflow: clip;
|
|
13770
14229
|
word-break: break-word;
|
|
@@ -13775,15 +14234,20 @@ var init_Devtools = __esm({
|
|
|
13775
14234
|
display: flex;
|
|
13776
14235
|
align-items: center;
|
|
13777
14236
|
padding: 0 ${tokens.size[2]};
|
|
13778
|
-
color: ${colors.gray[300]};
|
|
13779
|
-
background-color: ${colors.darkGray[600]};
|
|
13780
|
-
border-bottom: 1px solid ${colors.darkGray[400]};
|
|
14237
|
+
color: ${t2(colors.gray[800], colors.gray[300])};
|
|
14238
|
+
background-color: ${t2(colors.gray[300], colors.darkGray[600])};
|
|
14239
|
+
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
13781
14240
|
font-size: ${font.size.xs};
|
|
13782
14241
|
}
|
|
14242
|
+
`,
|
|
14243
|
+
selectedQueryRow: u`
|
|
14244
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
13783
14245
|
`,
|
|
13784
14246
|
detailsContainer: u`
|
|
13785
14247
|
flex: 1 1 700px;
|
|
13786
|
-
background-color: ${colors.darkGray[700]};
|
|
14248
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
14249
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
14250
|
+
font-family: 'Inter', sans-serif;
|
|
13787
14251
|
display: flex;
|
|
13788
14252
|
flex-direction: column;
|
|
13789
14253
|
overflow-y: auto;
|
|
@@ -13791,10 +14255,11 @@ var init_Devtools = __esm({
|
|
|
13791
14255
|
text-align: left;
|
|
13792
14256
|
`,
|
|
13793
14257
|
detailsHeader: u`
|
|
14258
|
+
font-family: 'Inter', sans-serif;
|
|
13794
14259
|
position: sticky;
|
|
13795
14260
|
top: 0;
|
|
13796
14261
|
z-index: 2;
|
|
13797
|
-
background-color: ${colors.darkGray[600]};
|
|
14262
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[600])};
|
|
13798
14263
|
padding: ${tokens.size[1.5]} ${tokens.size[2]};
|
|
13799
14264
|
font-weight: ${font.weight.medium};
|
|
13800
14265
|
font-size: ${font.size.xs};
|
|
@@ -13827,6 +14292,10 @@ var init_Devtools = __esm({
|
|
|
13827
14292
|
font-size: ${font.size.xs};
|
|
13828
14293
|
line-height: ${font.lineHeight.xs};
|
|
13829
14294
|
}
|
|
14295
|
+
|
|
14296
|
+
& pre {
|
|
14297
|
+
margin: 0;
|
|
14298
|
+
}
|
|
13830
14299
|
`,
|
|
13831
14300
|
queryDetailsStatus: u`
|
|
13832
14301
|
border: 1px solid ${colors.darkGray[200]};
|
|
@@ -13841,12 +14310,13 @@ var init_Devtools = __esm({
|
|
|
13841
14310
|
gap: ${tokens.size[2]};
|
|
13842
14311
|
padding: 0px ${tokens.size[2]};
|
|
13843
14312
|
& > button {
|
|
14313
|
+
font-family: 'Inter', sans-serif;
|
|
13844
14314
|
font-size: ${font.size.xs};
|
|
13845
14315
|
padding: ${tokens.size[1]} ${tokens.size[2]};
|
|
13846
14316
|
display: flex;
|
|
13847
14317
|
border-radius: ${tokens.border.radius.sm};
|
|
13848
|
-
|
|
13849
|
-
|
|
14318
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[600])};
|
|
14319
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
13850
14320
|
align-items: center;
|
|
13851
14321
|
gap: ${tokens.size[2]};
|
|
13852
14322
|
font-weight: ${font.weight.medium};
|
|
@@ -13858,7 +14328,7 @@ var init_Devtools = __esm({
|
|
|
13858
14328
|
outline: 2px solid ${colors.blue[800]};
|
|
13859
14329
|
}
|
|
13860
14330
|
&:hover {
|
|
13861
|
-
background-color: ${colors.darkGray[500]};
|
|
14331
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
13862
14332
|
}
|
|
13863
14333
|
|
|
13864
14334
|
&:disabled {
|
|
@@ -13879,17 +14349,17 @@ var init_Devtools = __esm({
|
|
|
13879
14349
|
display: flex;
|
|
13880
14350
|
border-radius: ${tokens.border.radius.sm};
|
|
13881
14351
|
overflow: hidden;
|
|
13882
|
-
|
|
13883
|
-
|
|
14352
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[600])};
|
|
14353
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
13884
14354
|
align-items: center;
|
|
13885
14355
|
gap: ${tokens.size[2]};
|
|
13886
14356
|
font-weight: ${font.weight.medium};
|
|
13887
14357
|
line-height: ${font.lineHeight.sm};
|
|
13888
|
-
color: ${
|
|
14358
|
+
color: ${t2(colors.red[500], colors.red[400])};
|
|
13889
14359
|
cursor: pointer;
|
|
13890
14360
|
position: relative;
|
|
13891
14361
|
&:hover {
|
|
13892
|
-
background-color: ${colors.darkGray[500]};
|
|
14362
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
13893
14363
|
}
|
|
13894
14364
|
& > span {
|
|
13895
14365
|
width: ${size2[1.5]};
|
|
@@ -13930,10 +14400,10 @@ var init_Devtools = __esm({
|
|
|
13930
14400
|
flex-direction: column;
|
|
13931
14401
|
gap: ${size2[0.5]};
|
|
13932
14402
|
border-radius: ${tokens.border.radius.sm};
|
|
13933
|
-
border: 1px solid ${colors.gray[700]};
|
|
13934
|
-
background-color: ${colors.darkGray[600]};
|
|
14403
|
+
border: 1px solid ${t2(colors.gray[300], colors.gray[700])};
|
|
14404
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[600])};
|
|
13935
14405
|
font-size: ${font.size.xs};
|
|
13936
|
-
color: ${colors.gray[300]};
|
|
14406
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
13937
14407
|
z-index: 99999;
|
|
13938
14408
|
min-width: 120px;
|
|
13939
14409
|
padding: ${size2[0.5]};
|
|
@@ -13943,17 +14413,19 @@ var init_Devtools = __esm({
|
|
|
13943
14413
|
align-items: center;
|
|
13944
14414
|
justify-content: space-between;
|
|
13945
14415
|
border-radius: ${tokens.border.radius.xs};
|
|
13946
|
-
padding: ${tokens.size[
|
|
14416
|
+
padding: ${tokens.size[1]} ${tokens.size[1]};
|
|
13947
14417
|
cursor: pointer;
|
|
13948
14418
|
background-color: transparent;
|
|
13949
14419
|
border: none;
|
|
14420
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
13950
14421
|
& svg {
|
|
14422
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
13951
14423
|
transform: rotate(-90deg);
|
|
13952
14424
|
width: ${tokens.size[2]};
|
|
13953
14425
|
height: ${tokens.size[2]};
|
|
13954
14426
|
}
|
|
13955
14427
|
&:hover {
|
|
13956
|
-
background-color: ${colors.darkGray[500]};
|
|
14428
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
13957
14429
|
}
|
|
13958
14430
|
&:focus-visible {
|
|
13959
14431
|
outline-offset: 2px;
|
|
@@ -13965,33 +14437,48 @@ var init_Devtools = __esm({
|
|
|
13965
14437
|
}
|
|
13966
14438
|
`,
|
|
13967
14439
|
settingsMenuHeader: u`
|
|
13968
|
-
padding: ${tokens.size[
|
|
14440
|
+
padding: ${tokens.size[1]} ${tokens.size[1]};
|
|
13969
14441
|
font-weight: ${font.weight.medium};
|
|
13970
|
-
border-bottom: 1px solid ${colors.darkGray[400]};
|
|
13971
|
-
color: ${colors.gray[400]};
|
|
14442
|
+
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
14443
|
+
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
13972
14444
|
font-size: ${font.size["xs"]};
|
|
13973
14445
|
`,
|
|
13974
14446
|
settingsSubButton: u`
|
|
13975
14447
|
display: flex;
|
|
13976
14448
|
align-items: center;
|
|
13977
14449
|
justify-content: space-between;
|
|
13978
|
-
color: ${colors.gray[300]};
|
|
14450
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
13979
14451
|
font-size: ${font.size["xs"]};
|
|
13980
14452
|
border-radius: ${tokens.border.radius.xs};
|
|
13981
|
-
padding: ${tokens.size[
|
|
14453
|
+
padding: ${tokens.size[1]} ${tokens.size[1]};
|
|
13982
14454
|
cursor: pointer;
|
|
13983
14455
|
background-color: transparent;
|
|
13984
14456
|
border: none;
|
|
14457
|
+
& svg {
|
|
14458
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
14459
|
+
}
|
|
13985
14460
|
&:hover {
|
|
13986
|
-
background-color: ${colors.darkGray[500]};
|
|
14461
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
13987
14462
|
}
|
|
13988
14463
|
&:focus-visible {
|
|
13989
14464
|
outline-offset: 2px;
|
|
13990
14465
|
outline: 2px solid ${colors.blue[800]};
|
|
13991
14466
|
}
|
|
14467
|
+
`,
|
|
14468
|
+
themeSelectedButton: u`
|
|
14469
|
+
background-color: ${t2(colors.purple[100], colors.purple[900])};
|
|
14470
|
+
color: ${t2(colors.purple[700], colors.purple[300])};
|
|
14471
|
+
& svg {
|
|
14472
|
+
color: ${t2(colors.purple[700], colors.purple[300])};
|
|
14473
|
+
}
|
|
14474
|
+
&:hover {
|
|
14475
|
+
background-color: ${t2(colors.purple[100], colors.purple[900])};
|
|
14476
|
+
}
|
|
13992
14477
|
`
|
|
13993
14478
|
};
|
|
13994
14479
|
};
|
|
14480
|
+
lightStyles2 = stylesFactory2("light");
|
|
14481
|
+
darkStyles2 = stylesFactory2("dark");
|
|
13995
14482
|
delegateEvents(["click", "mousedown", "input"]);
|
|
13996
14483
|
}
|
|
13997
14484
|
});
|
|
@@ -14002,7 +14489,17 @@ init_web();
|
|
|
14002
14489
|
init_web();
|
|
14003
14490
|
init_solid();
|
|
14004
14491
|
exports.TanstackQueryDevtools = class TanstackQueryDevtools {
|
|
14005
|
-
|
|
14492
|
+
#client;
|
|
14493
|
+
#onlineManager;
|
|
14494
|
+
#queryFlavor;
|
|
14495
|
+
#version;
|
|
14496
|
+
#isMounted = false;
|
|
14497
|
+
#buttonPosition;
|
|
14498
|
+
#position;
|
|
14499
|
+
#initialIsOpen;
|
|
14500
|
+
#errorTypes;
|
|
14501
|
+
#Component;
|
|
14502
|
+
#dispose;
|
|
14006
14503
|
constructor(config) {
|
|
14007
14504
|
const {
|
|
14008
14505
|
client,
|
|
@@ -14014,57 +14511,57 @@ exports.TanstackQueryDevtools = class TanstackQueryDevtools {
|
|
|
14014
14511
|
initialIsOpen,
|
|
14015
14512
|
errorTypes
|
|
14016
14513
|
} = config;
|
|
14017
|
-
this
|
|
14018
|
-
this
|
|
14019
|
-
this
|
|
14020
|
-
this
|
|
14021
|
-
this
|
|
14022
|
-
this
|
|
14023
|
-
this
|
|
14024
|
-
this
|
|
14514
|
+
this.#client = createSignal(client);
|
|
14515
|
+
this.#queryFlavor = queryFlavor;
|
|
14516
|
+
this.#version = version;
|
|
14517
|
+
this.#onlineManager = onlineManager;
|
|
14518
|
+
this.#buttonPosition = createSignal(buttonPosition);
|
|
14519
|
+
this.#position = createSignal(position);
|
|
14520
|
+
this.#initialIsOpen = createSignal(initialIsOpen);
|
|
14521
|
+
this.#errorTypes = createSignal(errorTypes);
|
|
14025
14522
|
}
|
|
14026
14523
|
setButtonPosition(position) {
|
|
14027
|
-
this
|
|
14524
|
+
this.#buttonPosition[1](position);
|
|
14028
14525
|
}
|
|
14029
14526
|
setPosition(position) {
|
|
14030
|
-
this
|
|
14527
|
+
this.#position[1](position);
|
|
14031
14528
|
}
|
|
14032
14529
|
setInitialIsOpen(isOpen) {
|
|
14033
|
-
this
|
|
14530
|
+
this.#initialIsOpen[1](isOpen);
|
|
14034
14531
|
}
|
|
14035
14532
|
setErrorTypes(errorTypes) {
|
|
14036
|
-
this
|
|
14533
|
+
this.#errorTypes[1](errorTypes);
|
|
14037
14534
|
}
|
|
14038
14535
|
setClient(client) {
|
|
14039
|
-
this
|
|
14536
|
+
this.#client[1](client);
|
|
14040
14537
|
}
|
|
14041
14538
|
mount(el) {
|
|
14042
|
-
if (this
|
|
14539
|
+
if (this.#isMounted) {
|
|
14043
14540
|
throw new Error("Devtools is already mounted");
|
|
14044
14541
|
}
|
|
14045
14542
|
const dispose3 = render(() => {
|
|
14046
|
-
const [btnPosition] = this
|
|
14047
|
-
const [pos] = this
|
|
14048
|
-
const [isOpen] = this
|
|
14049
|
-
const [errors] = this
|
|
14050
|
-
const [queryClient] = this
|
|
14543
|
+
const [btnPosition] = this.#buttonPosition;
|
|
14544
|
+
const [pos] = this.#position;
|
|
14545
|
+
const [isOpen] = this.#initialIsOpen;
|
|
14546
|
+
const [errors] = this.#errorTypes;
|
|
14547
|
+
const [queryClient] = this.#client;
|
|
14051
14548
|
let Devtools2;
|
|
14052
|
-
if (this
|
|
14053
|
-
Devtools2 = this
|
|
14549
|
+
if (this.#Component) {
|
|
14550
|
+
Devtools2 = this.#Component;
|
|
14054
14551
|
} else {
|
|
14055
14552
|
Devtools2 = lazy(() => Promise.resolve().then(() => (init_Devtools(), Devtools_exports)));
|
|
14056
|
-
this
|
|
14553
|
+
this.#Component = Devtools2;
|
|
14057
14554
|
}
|
|
14058
14555
|
const _self$ = this;
|
|
14059
14556
|
return createComponent(Devtools2, mergeProps({
|
|
14060
14557
|
get queryFlavor() {
|
|
14061
|
-
return _self
|
|
14558
|
+
return _self$.#queryFlavor;
|
|
14062
14559
|
},
|
|
14063
14560
|
get version() {
|
|
14064
|
-
return _self
|
|
14561
|
+
return _self$.#version;
|
|
14065
14562
|
},
|
|
14066
14563
|
get onlineManager() {
|
|
14067
|
-
return _self
|
|
14564
|
+
return _self$.#onlineManager;
|
|
14068
14565
|
}
|
|
14069
14566
|
}, {
|
|
14070
14567
|
get client() {
|
|
@@ -14084,15 +14581,15 @@ exports.TanstackQueryDevtools = class TanstackQueryDevtools {
|
|
|
14084
14581
|
}
|
|
14085
14582
|
}));
|
|
14086
14583
|
}, el);
|
|
14087
|
-
this
|
|
14088
|
-
this
|
|
14584
|
+
this.#isMounted = true;
|
|
14585
|
+
this.#dispose = dispose3;
|
|
14089
14586
|
}
|
|
14090
14587
|
unmount() {
|
|
14091
|
-
if (!this
|
|
14588
|
+
if (!this.#isMounted) {
|
|
14092
14589
|
throw new Error("Devtools is not mounted");
|
|
14093
14590
|
}
|
|
14094
|
-
this
|
|
14095
|
-
this
|
|
14591
|
+
this.#dispose?.();
|
|
14592
|
+
this.#isMounted = false;
|
|
14096
14593
|
}
|
|
14097
14594
|
};
|
|
14098
14595
|
/*! Bundled license information:
|