@tanstack/query-devtools 5.0.5 → 5.4.2
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/{Y2E2LEWB.jsx → 7FRXYIEA.jsx} +1285 -228
- package/build/Devtools/{B2H37NSB.js → HESZYUBG.js} +1578 -468
- package/build/Devtools/{7SMWYMBY.jsx → KWB27UDF.jsx} +1285 -228
- package/build/Devtools/{3Y5CBXUA.js → MVUALMJ4.js} +1578 -468
- package/build/chunk/{AHAJNSNO.jsx → JRAMSUCV.jsx} +5 -0
- package/build/dev.cjs +1590 -473
- package/build/dev.js +1 -1
- package/build/dev.jsx +2 -2
- package/build/index.cjs +1590 -473
- package/build/index.js +1 -1
- package/build/index.jsx +2 -2
- package/package.json +1 -1
- package/src/Devtools.tsx +819 -131
- package/src/Explorer.tsx +5 -5
- package/src/icons/index.tsx +89 -0
- package/src/theme.ts +82 -82
- package/src/utils.tsx +46 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createContext, delegateEvents, createSignal, createMemo, createComponent, createEffect, insert, Show, createRenderEffect, className, on,
|
|
1
|
+
import { createContext, delegateEvents, createSignal, createMemo, createComponent, createEffect, onMount, onCleanup, use, insert, Show, createRenderEffect, className, on, setAttribute, spread, mergeProps, For, isServer, $PROXY, $TRACK, getListener, batch, createUniqueId, useContext, Index, template, untrack, useTransition, createRoot, splitProps, Portal, addEventListener, Switch, Match, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/Z53XT47W.js';
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.8.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
4
4
|
var characterMap = {
|
|
@@ -3987,6 +3987,29 @@ function createFocusScope(props, ref) {
|
|
|
3987
3987
|
});
|
|
3988
3988
|
});
|
|
3989
3989
|
}
|
|
3990
|
+
function createFormResetListener(element, handler) {
|
|
3991
|
+
createEffect(on(element, (element2) => {
|
|
3992
|
+
if (element2 == null) {
|
|
3993
|
+
return;
|
|
3994
|
+
}
|
|
3995
|
+
const form = getClosestForm(element2);
|
|
3996
|
+
if (form == null) {
|
|
3997
|
+
return;
|
|
3998
|
+
}
|
|
3999
|
+
form.addEventListener("reset", handler, {
|
|
4000
|
+
passive: true
|
|
4001
|
+
});
|
|
4002
|
+
onCleanup(() => {
|
|
4003
|
+
form.removeEventListener("reset", handler);
|
|
4004
|
+
});
|
|
4005
|
+
}));
|
|
4006
|
+
}
|
|
4007
|
+
function getClosestForm(element) {
|
|
4008
|
+
return isFormElement(element) ? element.form : element.closest("form");
|
|
4009
|
+
}
|
|
4010
|
+
function isFormElement(element) {
|
|
4011
|
+
return element.matches("textarea, input, select, button");
|
|
4012
|
+
}
|
|
3990
4013
|
var DATA_LIVE_ANNOUNCER_ATTR = "data-live-announcer";
|
|
3991
4014
|
function createHideOutside(props) {
|
|
3992
4015
|
createEffect(() => {
|
|
@@ -4422,7 +4445,72 @@ function createToggleState(props = {}) {
|
|
|
4422
4445
|
toggle
|
|
4423
4446
|
};
|
|
4424
4447
|
}
|
|
4425
|
-
|
|
4448
|
+
var FORM_CONTROL_PROP_NAMES = ["id", "name", "validationState", "required", "disabled", "readOnly"];
|
|
4449
|
+
function createFormControl(props) {
|
|
4450
|
+
const defaultId = `form-control-${createUniqueId()}`;
|
|
4451
|
+
props = mergeDefaultProps({
|
|
4452
|
+
id: defaultId
|
|
4453
|
+
}, props);
|
|
4454
|
+
const [labelId, setLabelId] = createSignal();
|
|
4455
|
+
const [fieldId, setFieldId] = createSignal();
|
|
4456
|
+
const [descriptionId, setDescriptionId] = createSignal();
|
|
4457
|
+
const [errorMessageId, setErrorMessageId] = createSignal();
|
|
4458
|
+
const getAriaLabelledBy = (fieldId2, fieldAriaLabel, fieldAriaLabelledBy) => {
|
|
4459
|
+
const hasAriaLabelledBy = fieldAriaLabelledBy != null || labelId() != null;
|
|
4460
|
+
return [
|
|
4461
|
+
fieldAriaLabelledBy,
|
|
4462
|
+
labelId(),
|
|
4463
|
+
// If there is both an aria-label and aria-labelledby, add the field itself has an aria-labelledby
|
|
4464
|
+
hasAriaLabelledBy && fieldAriaLabel != null ? fieldId2 : void 0
|
|
4465
|
+
].filter(Boolean).join(" ") || void 0;
|
|
4466
|
+
};
|
|
4467
|
+
const getAriaDescribedBy = (fieldAriaDescribedBy) => {
|
|
4468
|
+
return [
|
|
4469
|
+
descriptionId(),
|
|
4470
|
+
// Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA.
|
|
4471
|
+
// See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
|
|
4472
|
+
errorMessageId(),
|
|
4473
|
+
fieldAriaDescribedBy
|
|
4474
|
+
].filter(Boolean).join(" ") || void 0;
|
|
4475
|
+
};
|
|
4476
|
+
const dataset = createMemo(() => ({
|
|
4477
|
+
"data-valid": access(props.validationState) === "valid" ? "" : void 0,
|
|
4478
|
+
"data-invalid": access(props.validationState) === "invalid" ? "" : void 0,
|
|
4479
|
+
"data-required": access(props.required) ? "" : void 0,
|
|
4480
|
+
"data-disabled": access(props.disabled) ? "" : void 0,
|
|
4481
|
+
"data-readonly": access(props.readOnly) ? "" : void 0
|
|
4482
|
+
}));
|
|
4483
|
+
const formControlContext = {
|
|
4484
|
+
name: () => access(props.name) ?? access(props.id),
|
|
4485
|
+
dataset,
|
|
4486
|
+
validationState: () => access(props.validationState),
|
|
4487
|
+
isRequired: () => access(props.required),
|
|
4488
|
+
isDisabled: () => access(props.disabled),
|
|
4489
|
+
isReadOnly: () => access(props.readOnly),
|
|
4490
|
+
labelId,
|
|
4491
|
+
fieldId,
|
|
4492
|
+
descriptionId,
|
|
4493
|
+
errorMessageId,
|
|
4494
|
+
getAriaLabelledBy,
|
|
4495
|
+
getAriaDescribedBy,
|
|
4496
|
+
generateId: createGenerateId(() => access(props.id)),
|
|
4497
|
+
registerLabel: createRegisterId(setLabelId),
|
|
4498
|
+
registerField: createRegisterId(setFieldId),
|
|
4499
|
+
registerDescription: createRegisterId(setDescriptionId),
|
|
4500
|
+
registerErrorMessage: createRegisterId(setErrorMessageId)
|
|
4501
|
+
};
|
|
4502
|
+
return {
|
|
4503
|
+
formControlContext
|
|
4504
|
+
};
|
|
4505
|
+
}
|
|
4506
|
+
var FormControlContext = createContext();
|
|
4507
|
+
function useFormControlContext() {
|
|
4508
|
+
const context = useContext(FormControlContext);
|
|
4509
|
+
if (context === void 0) {
|
|
4510
|
+
throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");
|
|
4511
|
+
}
|
|
4512
|
+
return context;
|
|
4513
|
+
}
|
|
4426
4514
|
function Polymorphic(props) {
|
|
4427
4515
|
const [local, others] = splitProps(props, ["asChild", "as", "children"]);
|
|
4428
4516
|
if (!local.asChild) {
|
|
@@ -4473,6 +4561,60 @@ function combineProps2(baseProps, overrideProps) {
|
|
|
4473
4561
|
reverseEventHandlers: true
|
|
4474
4562
|
});
|
|
4475
4563
|
}
|
|
4564
|
+
function FormControlDescription(props) {
|
|
4565
|
+
const context = useFormControlContext();
|
|
4566
|
+
props = mergeDefaultProps({
|
|
4567
|
+
id: context.generateId("description")
|
|
4568
|
+
}, props);
|
|
4569
|
+
createEffect(() => onCleanup(context.registerDescription(props.id)));
|
|
4570
|
+
return createComponent(Polymorphic, mergeProps({
|
|
4571
|
+
as: "div"
|
|
4572
|
+
}, () => context.dataset(), props));
|
|
4573
|
+
}
|
|
4574
|
+
function FormControlErrorMessage(props) {
|
|
4575
|
+
const context = useFormControlContext();
|
|
4576
|
+
props = mergeDefaultProps({
|
|
4577
|
+
id: context.generateId("error-message")
|
|
4578
|
+
}, props);
|
|
4579
|
+
const [local, others] = splitProps(props, ["forceMount"]);
|
|
4580
|
+
const isInvalid = () => context.validationState() === "invalid";
|
|
4581
|
+
createEffect(() => {
|
|
4582
|
+
if (!isInvalid()) {
|
|
4583
|
+
return;
|
|
4584
|
+
}
|
|
4585
|
+
onCleanup(context.registerErrorMessage(others.id));
|
|
4586
|
+
});
|
|
4587
|
+
return createComponent(Show, {
|
|
4588
|
+
get when() {
|
|
4589
|
+
return local.forceMount || isInvalid();
|
|
4590
|
+
},
|
|
4591
|
+
get children() {
|
|
4592
|
+
return createComponent(Polymorphic, mergeProps({
|
|
4593
|
+
as: "div"
|
|
4594
|
+
}, () => context.dataset(), others));
|
|
4595
|
+
}
|
|
4596
|
+
});
|
|
4597
|
+
}
|
|
4598
|
+
function FormControlLabel(props) {
|
|
4599
|
+
let ref;
|
|
4600
|
+
const context = useFormControlContext();
|
|
4601
|
+
props = mergeDefaultProps({
|
|
4602
|
+
id: context.generateId("label")
|
|
4603
|
+
}, props);
|
|
4604
|
+
const [local, others] = splitProps(props, ["ref"]);
|
|
4605
|
+
const tagName = createTagName(() => ref, () => "label");
|
|
4606
|
+
createEffect(() => onCleanup(context.registerLabel(others.id)));
|
|
4607
|
+
return createComponent(Polymorphic, mergeProps({
|
|
4608
|
+
as: "label",
|
|
4609
|
+
ref(r$) {
|
|
4610
|
+
const _ref$ = mergeRefs((el) => ref = el, local.ref);
|
|
4611
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
4612
|
+
},
|
|
4613
|
+
get ["for"]() {
|
|
4614
|
+
return createMemo(() => tagName() === "label")() ? context.fieldId() : void 0;
|
|
4615
|
+
}
|
|
4616
|
+
}, () => context.dataset(), others));
|
|
4617
|
+
}
|
|
4476
4618
|
var RTL_SCRIPTS = /* @__PURE__ */ new Set(["Avst", "Arab", "Armi", "Syrc", "Samr", "Mand", "Thaa", "Mend", "Nkoo", "Adlm", "Rohg", "Hebr"]);
|
|
4477
4619
|
var RTL_LANGS = /* @__PURE__ */ new Set(["ae", "ar", "arc", "bcc", "bqi", "ckb", "dv", "fa", "glk", "he", "ku", "mzn", "nqo", "pnb", "ps", "sd", "ug", "ur", "yi"]);
|
|
4478
4620
|
function isRTL2(locale) {
|
|
@@ -7845,8 +7987,332 @@ createContext();
|
|
|
7845
7987
|
createContext();
|
|
7846
7988
|
createContext();
|
|
7847
7989
|
createContext();
|
|
7848
|
-
createContext();
|
|
7849
|
-
|
|
7990
|
+
var RadioGroupContext = createContext();
|
|
7991
|
+
function useRadioGroupContext() {
|
|
7992
|
+
const context = useContext(RadioGroupContext);
|
|
7993
|
+
if (context === void 0) {
|
|
7994
|
+
throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");
|
|
7995
|
+
}
|
|
7996
|
+
return context;
|
|
7997
|
+
}
|
|
7998
|
+
var RadioGroupItemContext = createContext();
|
|
7999
|
+
function useRadioGroupItemContext() {
|
|
8000
|
+
const context = useContext(RadioGroupItemContext);
|
|
8001
|
+
if (context === void 0) {
|
|
8002
|
+
throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");
|
|
8003
|
+
}
|
|
8004
|
+
return context;
|
|
8005
|
+
}
|
|
8006
|
+
function RadioGroupItem(props) {
|
|
8007
|
+
const formControlContext = useFormControlContext();
|
|
8008
|
+
const radioGroupContext = useRadioGroupContext();
|
|
8009
|
+
const defaultId = `${formControlContext.generateId("item")}-${createUniqueId()}`;
|
|
8010
|
+
props = mergeDefaultProps({
|
|
8011
|
+
id: defaultId
|
|
8012
|
+
}, props);
|
|
8013
|
+
const [local, others] = splitProps(props, ["value", "disabled", "onPointerDown"]);
|
|
8014
|
+
const [inputId, setInputId] = createSignal();
|
|
8015
|
+
const [labelId, setLabelId] = createSignal();
|
|
8016
|
+
const [descriptionId, setDescriptionId] = createSignal();
|
|
8017
|
+
const [inputRef, setInputRef] = createSignal();
|
|
8018
|
+
const [isFocused, setIsFocused] = createSignal(false);
|
|
8019
|
+
const isSelected = createMemo(() => {
|
|
8020
|
+
return radioGroupContext.isSelectedValue(local.value);
|
|
8021
|
+
});
|
|
8022
|
+
const isDisabled = createMemo(() => {
|
|
8023
|
+
return local.disabled || formControlContext.isDisabled() || false;
|
|
8024
|
+
});
|
|
8025
|
+
const onPointerDown = (e2) => {
|
|
8026
|
+
callHandler(e2, local.onPointerDown);
|
|
8027
|
+
if (isFocused()) {
|
|
8028
|
+
e2.preventDefault();
|
|
8029
|
+
}
|
|
8030
|
+
};
|
|
8031
|
+
const dataset = createMemo(() => ({
|
|
8032
|
+
...formControlContext.dataset(),
|
|
8033
|
+
"data-disabled": isDisabled() ? "" : void 0,
|
|
8034
|
+
"data-checked": isSelected() ? "" : void 0
|
|
8035
|
+
}));
|
|
8036
|
+
const context = {
|
|
8037
|
+
value: () => local.value,
|
|
8038
|
+
dataset,
|
|
8039
|
+
isSelected,
|
|
8040
|
+
isDisabled,
|
|
8041
|
+
inputId,
|
|
8042
|
+
labelId,
|
|
8043
|
+
descriptionId,
|
|
8044
|
+
inputRef,
|
|
8045
|
+
select: () => radioGroupContext.setSelectedValue(local.value),
|
|
8046
|
+
generateId: createGenerateId(() => others.id),
|
|
8047
|
+
registerInput: createRegisterId(setInputId),
|
|
8048
|
+
registerLabel: createRegisterId(setLabelId),
|
|
8049
|
+
registerDescription: createRegisterId(setDescriptionId),
|
|
8050
|
+
setIsFocused,
|
|
8051
|
+
setInputRef
|
|
8052
|
+
};
|
|
8053
|
+
return createComponent(RadioGroupItemContext.Provider, {
|
|
8054
|
+
value: context,
|
|
8055
|
+
get children() {
|
|
8056
|
+
return createComponent(Polymorphic, mergeProps({
|
|
8057
|
+
as: "div",
|
|
8058
|
+
role: "group",
|
|
8059
|
+
onPointerDown
|
|
8060
|
+
}, dataset, others));
|
|
8061
|
+
}
|
|
8062
|
+
});
|
|
8063
|
+
}
|
|
8064
|
+
function RadioGroupItemControl(props) {
|
|
8065
|
+
const context = useRadioGroupItemContext();
|
|
8066
|
+
props = mergeDefaultProps({
|
|
8067
|
+
id: context.generateId("control")
|
|
8068
|
+
}, props);
|
|
8069
|
+
const [local, others] = splitProps(props, ["onClick", "onKeyDown"]);
|
|
8070
|
+
const onClick = (e2) => {
|
|
8071
|
+
callHandler(e2, local.onClick);
|
|
8072
|
+
context.select();
|
|
8073
|
+
context.inputRef()?.focus();
|
|
8074
|
+
};
|
|
8075
|
+
const onKeyDown = (e2) => {
|
|
8076
|
+
callHandler(e2, local.onKeyDown);
|
|
8077
|
+
if (e2.key === EventKey.Space) {
|
|
8078
|
+
context.select();
|
|
8079
|
+
context.inputRef()?.focus();
|
|
8080
|
+
}
|
|
8081
|
+
};
|
|
8082
|
+
return createComponent(Polymorphic, mergeProps({
|
|
8083
|
+
as: "div",
|
|
8084
|
+
onClick,
|
|
8085
|
+
onKeyDown
|
|
8086
|
+
}, () => context.dataset(), others));
|
|
8087
|
+
}
|
|
8088
|
+
function RadioGroupItemDescription(props) {
|
|
8089
|
+
const context = useRadioGroupItemContext();
|
|
8090
|
+
props = mergeDefaultProps({
|
|
8091
|
+
id: context.generateId("description")
|
|
8092
|
+
}, props);
|
|
8093
|
+
createEffect(() => onCleanup(context.registerDescription(props.id)));
|
|
8094
|
+
return createComponent(Polymorphic, mergeProps({
|
|
8095
|
+
as: "div"
|
|
8096
|
+
}, () => context.dataset(), props));
|
|
8097
|
+
}
|
|
8098
|
+
function RadioGroupItemIndicator(props) {
|
|
8099
|
+
const context = useRadioGroupItemContext();
|
|
8100
|
+
props = mergeDefaultProps({
|
|
8101
|
+
id: context.generateId("indicator")
|
|
8102
|
+
}, props);
|
|
8103
|
+
const [local, others] = splitProps(props, ["ref", "forceMount"]);
|
|
8104
|
+
const presence = createPresence(() => local.forceMount || context.isSelected());
|
|
8105
|
+
return createComponent(Show, {
|
|
8106
|
+
get when() {
|
|
8107
|
+
return presence.isPresent();
|
|
8108
|
+
},
|
|
8109
|
+
get children() {
|
|
8110
|
+
return createComponent(Polymorphic, mergeProps({
|
|
8111
|
+
as: "div",
|
|
8112
|
+
ref(r$) {
|
|
8113
|
+
const _ref$ = mergeRefs(presence.setRef, local.ref);
|
|
8114
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
8115
|
+
}
|
|
8116
|
+
}, () => context.dataset(), others));
|
|
8117
|
+
}
|
|
8118
|
+
});
|
|
8119
|
+
}
|
|
8120
|
+
var _tmpl$$6 = /* @__PURE__ */ template(`<input type="radio">`);
|
|
8121
|
+
function RadioGroupItemInput(props) {
|
|
8122
|
+
const formControlContext = useFormControlContext();
|
|
8123
|
+
const radioGroupContext = useRadioGroupContext();
|
|
8124
|
+
const radioContext = useRadioGroupItemContext();
|
|
8125
|
+
props = mergeDefaultProps({
|
|
8126
|
+
id: radioContext.generateId("input")
|
|
8127
|
+
}, props);
|
|
8128
|
+
const [local, others] = splitProps(props, ["ref", "style", "aria-labelledby", "aria-describedby", "onChange", "onFocus", "onBlur"]);
|
|
8129
|
+
const ariaLabelledBy = () => {
|
|
8130
|
+
return [
|
|
8131
|
+
local["aria-labelledby"],
|
|
8132
|
+
radioContext.labelId(),
|
|
8133
|
+
// If there is both an aria-label and aria-labelledby, add the input itself has an aria-labelledby
|
|
8134
|
+
local["aria-labelledby"] != null && others["aria-label"] != null ? others.id : void 0
|
|
8135
|
+
].filter(Boolean).join(" ") || void 0;
|
|
8136
|
+
};
|
|
8137
|
+
const ariaDescribedBy = () => {
|
|
8138
|
+
return [local["aria-describedby"], radioContext.descriptionId(), radioGroupContext.ariaDescribedBy()].filter(Boolean).join(" ") || void 0;
|
|
8139
|
+
};
|
|
8140
|
+
const onChange = (e2) => {
|
|
8141
|
+
callHandler(e2, local.onChange);
|
|
8142
|
+
e2.stopPropagation();
|
|
8143
|
+
radioGroupContext.setSelectedValue(radioContext.value());
|
|
8144
|
+
const target = e2.target;
|
|
8145
|
+
target.checked = radioContext.isSelected();
|
|
8146
|
+
};
|
|
8147
|
+
const onFocus = (e2) => {
|
|
8148
|
+
callHandler(e2, local.onFocus);
|
|
8149
|
+
radioContext.setIsFocused(true);
|
|
8150
|
+
};
|
|
8151
|
+
const onBlur = (e2) => {
|
|
8152
|
+
callHandler(e2, local.onBlur);
|
|
8153
|
+
radioContext.setIsFocused(false);
|
|
8154
|
+
};
|
|
8155
|
+
createEffect(() => onCleanup(radioContext.registerInput(others.id)));
|
|
8156
|
+
return (() => {
|
|
8157
|
+
const _el$ = _tmpl$$6();
|
|
8158
|
+
_el$.addEventListener("blur", onBlur);
|
|
8159
|
+
_el$.addEventListener("focus", onFocus);
|
|
8160
|
+
_el$.addEventListener("change", onChange);
|
|
8161
|
+
const _ref$ = mergeRefs(radioContext.setInputRef, local.ref);
|
|
8162
|
+
typeof _ref$ === "function" && use(_ref$, _el$);
|
|
8163
|
+
spread(_el$, mergeProps({
|
|
8164
|
+
get name() {
|
|
8165
|
+
return formControlContext.name();
|
|
8166
|
+
},
|
|
8167
|
+
get value() {
|
|
8168
|
+
return radioContext.value();
|
|
8169
|
+
},
|
|
8170
|
+
get checked() {
|
|
8171
|
+
return radioContext.isSelected();
|
|
8172
|
+
},
|
|
8173
|
+
get required() {
|
|
8174
|
+
return formControlContext.isRequired();
|
|
8175
|
+
},
|
|
8176
|
+
get disabled() {
|
|
8177
|
+
return radioContext.isDisabled();
|
|
8178
|
+
},
|
|
8179
|
+
get readonly() {
|
|
8180
|
+
return formControlContext.isReadOnly();
|
|
8181
|
+
},
|
|
8182
|
+
get style() {
|
|
8183
|
+
return {
|
|
8184
|
+
...visuallyHiddenStyles,
|
|
8185
|
+
...local.style
|
|
8186
|
+
};
|
|
8187
|
+
},
|
|
8188
|
+
get ["aria-labelledby"]() {
|
|
8189
|
+
return ariaLabelledBy();
|
|
8190
|
+
},
|
|
8191
|
+
get ["aria-describedby"]() {
|
|
8192
|
+
return ariaDescribedBy();
|
|
8193
|
+
}
|
|
8194
|
+
}, () => radioContext.dataset(), others), false, false);
|
|
8195
|
+
return _el$;
|
|
8196
|
+
})();
|
|
8197
|
+
}
|
|
8198
|
+
var _tmpl$$5 = /* @__PURE__ */ template(`<label>`);
|
|
8199
|
+
function RadioGroupItemLabel(props) {
|
|
8200
|
+
const context = useRadioGroupItemContext();
|
|
8201
|
+
props = mergeDefaultProps({
|
|
8202
|
+
id: context.generateId("label")
|
|
8203
|
+
}, props);
|
|
8204
|
+
createEffect(() => onCleanup(context.registerLabel(props.id)));
|
|
8205
|
+
return (() => {
|
|
8206
|
+
const _el$ = _tmpl$$5();
|
|
8207
|
+
spread(_el$, mergeProps({
|
|
8208
|
+
get ["for"]() {
|
|
8209
|
+
return context.inputId();
|
|
8210
|
+
}
|
|
8211
|
+
}, () => context.dataset(), props), false, false);
|
|
8212
|
+
return _el$;
|
|
8213
|
+
})();
|
|
8214
|
+
}
|
|
8215
|
+
function RadioGroupLabel(props) {
|
|
8216
|
+
return createComponent(FormControlLabel, mergeProps({
|
|
8217
|
+
as: "span"
|
|
8218
|
+
}, props));
|
|
8219
|
+
}
|
|
8220
|
+
function RadioGroupRoot(props) {
|
|
8221
|
+
let ref;
|
|
8222
|
+
const defaultId = `radiogroup-${createUniqueId()}`;
|
|
8223
|
+
props = mergeDefaultProps({
|
|
8224
|
+
id: defaultId,
|
|
8225
|
+
orientation: "vertical"
|
|
8226
|
+
}, props);
|
|
8227
|
+
const [local, formControlProps, others] = splitProps(props, ["ref", "value", "defaultValue", "onChange", "orientation", "aria-labelledby", "aria-describedby"], FORM_CONTROL_PROP_NAMES);
|
|
8228
|
+
const [selected, setSelected] = createControllableSignal({
|
|
8229
|
+
value: () => local.value,
|
|
8230
|
+
defaultValue: () => local.defaultValue,
|
|
8231
|
+
onChange: (value) => local.onChange?.(value)
|
|
8232
|
+
});
|
|
8233
|
+
const {
|
|
8234
|
+
formControlContext
|
|
8235
|
+
} = createFormControl(formControlProps);
|
|
8236
|
+
createFormResetListener(() => ref, () => setSelected(local.defaultValue ?? ""));
|
|
8237
|
+
const ariaLabelledBy = () => {
|
|
8238
|
+
return formControlContext.getAriaLabelledBy(access(formControlProps.id), others["aria-label"], local["aria-labelledby"]);
|
|
8239
|
+
};
|
|
8240
|
+
const ariaDescribedBy = () => {
|
|
8241
|
+
return formControlContext.getAriaDescribedBy(local["aria-describedby"]);
|
|
8242
|
+
};
|
|
8243
|
+
const isSelectedValue = (value) => {
|
|
8244
|
+
return value === selected();
|
|
8245
|
+
};
|
|
8246
|
+
const context = {
|
|
8247
|
+
ariaDescribedBy,
|
|
8248
|
+
isSelectedValue,
|
|
8249
|
+
setSelectedValue: (value) => {
|
|
8250
|
+
if (formControlContext.isReadOnly() || formControlContext.isDisabled()) {
|
|
8251
|
+
return;
|
|
8252
|
+
}
|
|
8253
|
+
setSelected(value);
|
|
8254
|
+
ref?.querySelectorAll("[type='radio']").forEach((el) => {
|
|
8255
|
+
const radio = el;
|
|
8256
|
+
radio.checked = isSelectedValue(radio.value);
|
|
8257
|
+
});
|
|
8258
|
+
}
|
|
8259
|
+
};
|
|
8260
|
+
return createComponent(FormControlContext.Provider, {
|
|
8261
|
+
value: formControlContext,
|
|
8262
|
+
get children() {
|
|
8263
|
+
return createComponent(RadioGroupContext.Provider, {
|
|
8264
|
+
value: context,
|
|
8265
|
+
get children() {
|
|
8266
|
+
return createComponent(Polymorphic, mergeProps({
|
|
8267
|
+
as: "div",
|
|
8268
|
+
ref(r$) {
|
|
8269
|
+
const _ref$ = mergeRefs((el) => ref = el, local.ref);
|
|
8270
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
8271
|
+
},
|
|
8272
|
+
role: "radiogroup",
|
|
8273
|
+
get id() {
|
|
8274
|
+
return access(formControlProps.id);
|
|
8275
|
+
},
|
|
8276
|
+
get ["aria-invalid"]() {
|
|
8277
|
+
return formControlContext.validationState() === "invalid" || void 0;
|
|
8278
|
+
},
|
|
8279
|
+
get ["aria-required"]() {
|
|
8280
|
+
return formControlContext.isRequired() || void 0;
|
|
8281
|
+
},
|
|
8282
|
+
get ["aria-disabled"]() {
|
|
8283
|
+
return formControlContext.isDisabled() || void 0;
|
|
8284
|
+
},
|
|
8285
|
+
get ["aria-readonly"]() {
|
|
8286
|
+
return formControlContext.isReadOnly() || void 0;
|
|
8287
|
+
},
|
|
8288
|
+
get ["aria-orientation"]() {
|
|
8289
|
+
return local.orientation;
|
|
8290
|
+
},
|
|
8291
|
+
get ["aria-labelledby"]() {
|
|
8292
|
+
return ariaLabelledBy();
|
|
8293
|
+
},
|
|
8294
|
+
get ["aria-describedby"]() {
|
|
8295
|
+
return ariaDescribedBy();
|
|
8296
|
+
}
|
|
8297
|
+
}, () => formControlContext.dataset(), others));
|
|
8298
|
+
}
|
|
8299
|
+
});
|
|
8300
|
+
}
|
|
8301
|
+
});
|
|
8302
|
+
}
|
|
8303
|
+
var index$7 = /* @__PURE__ */ Object.freeze({
|
|
8304
|
+
__proto__: null,
|
|
8305
|
+
Description: FormControlDescription,
|
|
8306
|
+
ErrorMessage: FormControlErrorMessage,
|
|
8307
|
+
Item: RadioGroupItem,
|
|
8308
|
+
ItemControl: RadioGroupItemControl,
|
|
8309
|
+
ItemDescription: RadioGroupItemDescription,
|
|
8310
|
+
ItemIndicator: RadioGroupItemIndicator,
|
|
8311
|
+
ItemInput: RadioGroupItemInput,
|
|
8312
|
+
ItemLabel: RadioGroupItemLabel,
|
|
8313
|
+
Label: RadioGroupLabel,
|
|
8314
|
+
Root: RadioGroupRoot
|
|
8315
|
+
});
|
|
7850
8316
|
createContext();
|
|
7851
8317
|
createContext();
|
|
7852
8318
|
createContext();
|
|
@@ -7951,17 +8417,17 @@ var tokens = {
|
|
|
7951
8417
|
900: "#054F31"
|
|
7952
8418
|
},
|
|
7953
8419
|
red: {
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
8420
|
+
50: "#fef2f2",
|
|
8421
|
+
100: "#fee2e2",
|
|
8422
|
+
200: "#fecaca",
|
|
8423
|
+
300: "#fca5a5",
|
|
8424
|
+
400: "#f87171",
|
|
8425
|
+
500: "#ef4444",
|
|
8426
|
+
600: "#dc2626",
|
|
8427
|
+
700: "#b91c1c",
|
|
8428
|
+
800: "#991b1b",
|
|
8429
|
+
900: "#7f1d1d",
|
|
8430
|
+
950: "#450a0a"
|
|
7965
8431
|
},
|
|
7966
8432
|
yellow: {
|
|
7967
8433
|
25: "#FFFCF5",
|
|
@@ -8044,35 +8510,35 @@ var tokens = {
|
|
|
8044
8510
|
},
|
|
8045
8511
|
font: {
|
|
8046
8512
|
size: {
|
|
8047
|
-
"2xs": "0.
|
|
8048
|
-
xs: "0.
|
|
8049
|
-
sm: "0.
|
|
8050
|
-
md: "
|
|
8051
|
-
lg: "1.
|
|
8052
|
-
xl: "1.
|
|
8053
|
-
"2xl": "1.
|
|
8054
|
-
"3xl": "1.
|
|
8055
|
-
"4xl": "2.
|
|
8056
|
-
"5xl": "
|
|
8057
|
-
"6xl": "3.
|
|
8058
|
-
"7xl": "4.
|
|
8059
|
-
"8xl": "
|
|
8060
|
-
"9xl": "
|
|
8513
|
+
"2xs": "calc(var(--tsqd-font-size) * 0.625)",
|
|
8514
|
+
xs: "calc(var(--tsqd-font-size) * 0.75)",
|
|
8515
|
+
sm: "calc(var(--tsqd-font-size) * 0.875)",
|
|
8516
|
+
md: "var(--tsqd-font-size)",
|
|
8517
|
+
lg: "calc(var(--tsqd-font-size) * 1.125)",
|
|
8518
|
+
xl: "calc(var(--tsqd-font-size) * 1.25)",
|
|
8519
|
+
"2xl": "calc(var(--tsqd-font-size) * 1.5)",
|
|
8520
|
+
"3xl": "calc(var(--tsqd-font-size) * 1.875)",
|
|
8521
|
+
"4xl": "calc(var(--tsqd-font-size) * 2.25)",
|
|
8522
|
+
"5xl": "calc(var(--tsqd-font-size) * 3)",
|
|
8523
|
+
"6xl": "calc(var(--tsqd-font-size) * 3.75)",
|
|
8524
|
+
"7xl": "calc(var(--tsqd-font-size) * 4.5)",
|
|
8525
|
+
"8xl": "calc(var(--tsqd-font-size) * 6)",
|
|
8526
|
+
"9xl": "calc(var(--tsqd-font-size) * 8)"
|
|
8061
8527
|
},
|
|
8062
8528
|
lineHeight: {
|
|
8063
|
-
xs: "
|
|
8064
|
-
sm: "1.
|
|
8065
|
-
md: "1.
|
|
8066
|
-
lg: "1.
|
|
8067
|
-
xl: "
|
|
8068
|
-
"2xl": "
|
|
8069
|
-
"3xl": "2.
|
|
8070
|
-
"4xl": "2.
|
|
8071
|
-
"5xl": "
|
|
8072
|
-
"6xl": "
|
|
8073
|
-
"7xl": "
|
|
8074
|
-
"8xl": "
|
|
8075
|
-
"9xl": "
|
|
8529
|
+
xs: "calc(var(--tsqd-font-size) * 1)",
|
|
8530
|
+
sm: "calc(var(--tsqd-font-size) * 1.25)",
|
|
8531
|
+
md: "calc(var(--tsqd-font-size) * 1.5)",
|
|
8532
|
+
lg: "calc(var(--tsqd-font-size) * 1.75)",
|
|
8533
|
+
xl: "calc(var(--tsqd-font-size) * 2)",
|
|
8534
|
+
"2xl": "calc(var(--tsqd-font-size) * 2.25)",
|
|
8535
|
+
"3xl": "calc(var(--tsqd-font-size) * 2.5)",
|
|
8536
|
+
"4xl": "calc(var(--tsqd-font-size) * 2.75)",
|
|
8537
|
+
"5xl": "calc(var(--tsqd-font-size) * 3)",
|
|
8538
|
+
"6xl": "calc(var(--tsqd-font-size) * 3.25)",
|
|
8539
|
+
"7xl": "calc(var(--tsqd-font-size) * 3.5)",
|
|
8540
|
+
"8xl": "calc(var(--tsqd-font-size) * 3.75)",
|
|
8541
|
+
"9xl": "calc(var(--tsqd-font-size) * 4)"
|
|
8076
8542
|
},
|
|
8077
8543
|
weight: {
|
|
8078
8544
|
thin: "100",
|
|
@@ -8097,55 +8563,55 @@ var tokens = {
|
|
|
8097
8563
|
border: {
|
|
8098
8564
|
radius: {
|
|
8099
8565
|
none: "0px",
|
|
8100
|
-
xs: "0.
|
|
8101
|
-
sm: "0.
|
|
8102
|
-
md: "0.
|
|
8103
|
-
lg: "0.
|
|
8104
|
-
xl: "0.
|
|
8105
|
-
"2xl": "
|
|
8106
|
-
"3xl": "1.
|
|
8566
|
+
xs: "calc(var(--tsqd-font-size) * 0.125)",
|
|
8567
|
+
sm: "calc(var(--tsqd-font-size) * 0.25)",
|
|
8568
|
+
md: "calc(var(--tsqd-font-size) * 0.375)",
|
|
8569
|
+
lg: "calc(var(--tsqd-font-size) * 0.5)",
|
|
8570
|
+
xl: "calc(var(--tsqd-font-size) * 0.75)",
|
|
8571
|
+
"2xl": "calc(var(--tsqd-font-size) * 1)",
|
|
8572
|
+
"3xl": "calc(var(--tsqd-font-size) * 1.5)",
|
|
8107
8573
|
full: "9999px"
|
|
8108
8574
|
}
|
|
8109
8575
|
},
|
|
8110
8576
|
size: {
|
|
8111
8577
|
0: "0px",
|
|
8112
|
-
0.25: "0.
|
|
8113
|
-
0.5: "0.
|
|
8114
|
-
1: "0.
|
|
8115
|
-
1.5: "0.
|
|
8116
|
-
2: "0.
|
|
8117
|
-
2.5: "0.
|
|
8118
|
-
3: "0.
|
|
8119
|
-
3.5: "0.
|
|
8120
|
-
4: "
|
|
8121
|
-
4.5: "1.
|
|
8122
|
-
5: "1.
|
|
8123
|
-
5.5: "1.
|
|
8124
|
-
6: "1.
|
|
8125
|
-
6.5: "1.
|
|
8126
|
-
7: "1.
|
|
8127
|
-
8: "
|
|
8128
|
-
9: "2.
|
|
8129
|
-
10: "2.
|
|
8130
|
-
11: "2.
|
|
8131
|
-
12: "
|
|
8132
|
-
14: "3.
|
|
8133
|
-
16: "
|
|
8134
|
-
20: "
|
|
8135
|
-
24: "
|
|
8136
|
-
28: "
|
|
8137
|
-
32: "
|
|
8138
|
-
36: "
|
|
8139
|
-
40: "
|
|
8140
|
-
44: "
|
|
8141
|
-
48: "
|
|
8142
|
-
52: "
|
|
8143
|
-
56: "
|
|
8144
|
-
60: "
|
|
8145
|
-
64: "
|
|
8146
|
-
72: "
|
|
8147
|
-
80: "
|
|
8148
|
-
96: "
|
|
8578
|
+
0.25: "calc(var(--tsqd-font-size) * 0.0625)",
|
|
8579
|
+
0.5: "calc(var(--tsqd-font-size) * 0.125)",
|
|
8580
|
+
1: "calc(var(--tsqd-font-size) * 0.25)",
|
|
8581
|
+
1.5: "calc(var(--tsqd-font-size) * 0.375)",
|
|
8582
|
+
2: "calc(var(--tsqd-font-size) * 0.5)",
|
|
8583
|
+
2.5: "calc(var(--tsqd-font-size) * 0.625)",
|
|
8584
|
+
3: "calc(var(--tsqd-font-size) * 0.75)",
|
|
8585
|
+
3.5: "calc(var(--tsqd-font-size) * 0.875)",
|
|
8586
|
+
4: "calc(var(--tsqd-font-size) * 1)",
|
|
8587
|
+
4.5: "calc(var(--tsqd-font-size) * 1.125)",
|
|
8588
|
+
5: "calc(var(--tsqd-font-size) * 1.25)",
|
|
8589
|
+
5.5: "calc(var(--tsqd-font-size) * 1.375)",
|
|
8590
|
+
6: "calc(var(--tsqd-font-size) * 1.5)",
|
|
8591
|
+
6.5: "calc(var(--tsqd-font-size) * 1.625)",
|
|
8592
|
+
7: "calc(var(--tsqd-font-size) * 1.75)",
|
|
8593
|
+
8: "calc(var(--tsqd-font-size) * 2)",
|
|
8594
|
+
9: "calc(var(--tsqd-font-size) * 2.25)",
|
|
8595
|
+
10: "calc(var(--tsqd-font-size) * 2.5)",
|
|
8596
|
+
11: "calc(var(--tsqd-font-size) * 2.75)",
|
|
8597
|
+
12: "calc(var(--tsqd-font-size) * 3)",
|
|
8598
|
+
14: "calc(var(--tsqd-font-size) * 3.5)",
|
|
8599
|
+
16: "calc(var(--tsqd-font-size) * 4)",
|
|
8600
|
+
20: "calc(var(--tsqd-font-size) * 5)",
|
|
8601
|
+
24: "calc(var(--tsqd-font-size) * 6)",
|
|
8602
|
+
28: "calc(var(--tsqd-font-size) * 7)",
|
|
8603
|
+
32: "calc(var(--tsqd-font-size) * 8)",
|
|
8604
|
+
36: "calc(var(--tsqd-font-size) * 9)",
|
|
8605
|
+
40: "calc(var(--tsqd-font-size) * 10)",
|
|
8606
|
+
44: "calc(var(--tsqd-font-size) * 11)",
|
|
8607
|
+
48: "calc(var(--tsqd-font-size) * 12)",
|
|
8608
|
+
52: "calc(var(--tsqd-font-size) * 13)",
|
|
8609
|
+
56: "calc(var(--tsqd-font-size) * 14)",
|
|
8610
|
+
60: "calc(var(--tsqd-font-size) * 15)",
|
|
8611
|
+
64: "calc(var(--tsqd-font-size) * 16)",
|
|
8612
|
+
72: "calc(var(--tsqd-font-size) * 18)",
|
|
8613
|
+
80: "calc(var(--tsqd-font-size) * 20)",
|
|
8614
|
+
96: "calc(var(--tsqd-font-size) * 24)"
|
|
8149
8615
|
},
|
|
8150
8616
|
shadow: Shadow,
|
|
8151
8617
|
zIndices: {
|
|
@@ -9212,6 +9678,12 @@ function getQueryStatusColor({
|
|
|
9212
9678
|
}) {
|
|
9213
9679
|
return queryState.fetchStatus === "fetching" ? "blue" : !observerCount ? "gray" : queryState.fetchStatus === "paused" ? "purple" : isStale ? "yellow" : "green";
|
|
9214
9680
|
}
|
|
9681
|
+
function getMutationStatusColor({
|
|
9682
|
+
status,
|
|
9683
|
+
isPaused
|
|
9684
|
+
}) {
|
|
9685
|
+
return isPaused ? "purple" : status === "error" ? "red" : status === "pending" ? "yellow" : status === "success" ? "green" : "gray";
|
|
9686
|
+
}
|
|
9215
9687
|
function getQueryStatusColorByLabel(label) {
|
|
9216
9688
|
return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
|
|
9217
9689
|
}
|
|
@@ -9235,6 +9707,18 @@ var sortFns = {
|
|
|
9235
9707
|
"query hash": queryHashSort,
|
|
9236
9708
|
"last updated": dateSort
|
|
9237
9709
|
};
|
|
9710
|
+
var getMutationStatusRank = (m) => m.state.isPaused ? 0 : m.state.status === "error" ? 2 : m.state.status === "pending" ? 1 : 3;
|
|
9711
|
+
var mutationDateSort = (a2, b2) => a2.state.submittedAt < b2.state.submittedAt ? 1 : -1;
|
|
9712
|
+
var mutationStatusSort = (a2, b2) => {
|
|
9713
|
+
if (getMutationStatusRank(a2) === getMutationStatusRank(b2)) {
|
|
9714
|
+
return mutationDateSort(a2, b2);
|
|
9715
|
+
}
|
|
9716
|
+
return getMutationStatusRank(a2) > getMutationStatusRank(b2) ? 1 : -1;
|
|
9717
|
+
};
|
|
9718
|
+
var mutationSortFns = {
|
|
9719
|
+
status: mutationStatusSort,
|
|
9720
|
+
"last updated": mutationDateSort
|
|
9721
|
+
};
|
|
9238
9722
|
var convertRemToPixels = (rem) => {
|
|
9239
9723
|
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
9240
9724
|
};
|
|
@@ -9349,7 +9833,11 @@ var _tmpl$13 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24
|
|
|
9349
9833
|
var _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>`);
|
|
9350
9834
|
var _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>`);
|
|
9351
9835
|
var _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>`);
|
|
9352
|
-
var _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>`);
|
|
9836
|
+
var _tmpl$17 = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
9837
|
+
var _tmpl$18 = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>`);
|
|
9838
|
+
var _tmpl$19 = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
9839
|
+
var _tmpl$20 = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
9840
|
+
var _tmpl$21 = /* @__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>`);
|
|
9353
9841
|
function Search() {
|
|
9354
9842
|
return _tmpl$();
|
|
9355
9843
|
}
|
|
@@ -9434,89 +9922,101 @@ function Check(props) {
|
|
|
9434
9922
|
}
|
|
9435
9923
|
})];
|
|
9436
9924
|
}
|
|
9925
|
+
function CheckCircle() {
|
|
9926
|
+
return _tmpl$17();
|
|
9927
|
+
}
|
|
9928
|
+
function LoadingCircle() {
|
|
9929
|
+
return _tmpl$18();
|
|
9930
|
+
}
|
|
9931
|
+
function XCircle() {
|
|
9932
|
+
return _tmpl$19();
|
|
9933
|
+
}
|
|
9934
|
+
function PauseCircle() {
|
|
9935
|
+
return _tmpl$20();
|
|
9936
|
+
}
|
|
9437
9937
|
function TanstackLogo() {
|
|
9438
9938
|
const id = createUniqueId();
|
|
9439
9939
|
return (() => {
|
|
9440
|
-
const _el$
|
|
9441
|
-
setAttribute(_el$
|
|
9442
|
-
setAttribute(_el$
|
|
9443
|
-
setAttribute(_el$
|
|
9444
|
-
setAttribute(_el$
|
|
9445
|
-
setAttribute(_el$
|
|
9446
|
-
setAttribute(_el$
|
|
9447
|
-
setAttribute(_el$
|
|
9448
|
-
setAttribute(_el$
|
|
9449
|
-
setAttribute(_el$
|
|
9450
|
-
setAttribute(_el$
|
|
9451
|
-
setAttribute(_el$
|
|
9452
|
-
setAttribute(_el$
|
|
9453
|
-
setAttribute(_el$
|
|
9454
|
-
setAttribute(_el$
|
|
9455
|
-
setAttribute(_el$
|
|
9456
|
-
setAttribute(_el$
|
|
9457
|
-
setAttribute(_el$
|
|
9458
|
-
setAttribute(_el$
|
|
9459
|
-
setAttribute(_el$
|
|
9460
|
-
setAttribute(_el$
|
|
9461
|
-
setAttribute(_el$
|
|
9462
|
-
setAttribute(_el$
|
|
9463
|
-
setAttribute(_el$
|
|
9464
|
-
setAttribute(_el$
|
|
9465
|
-
setAttribute(_el$
|
|
9466
|
-
setAttribute(_el$
|
|
9467
|
-
setAttribute(_el$
|
|
9468
|
-
setAttribute(_el$
|
|
9469
|
-
setAttribute(_el$
|
|
9470
|
-
setAttribute(_el$
|
|
9471
|
-
setAttribute(_el$
|
|
9472
|
-
setAttribute(_el$
|
|
9473
|
-
setAttribute(_el$
|
|
9474
|
-
setAttribute(_el$
|
|
9475
|
-
setAttribute(_el$
|
|
9476
|
-
setAttribute(_el$
|
|
9477
|
-
setAttribute(_el$
|
|
9478
|
-
setAttribute(_el$
|
|
9479
|
-
setAttribute(_el$
|
|
9480
|
-
setAttribute(_el$
|
|
9481
|
-
setAttribute(_el$
|
|
9482
|
-
setAttribute(_el$
|
|
9483
|
-
setAttribute(_el$
|
|
9484
|
-
setAttribute(_el$
|
|
9485
|
-
setAttribute(_el$
|
|
9486
|
-
setAttribute(_el$
|
|
9487
|
-
setAttribute(_el$
|
|
9488
|
-
setAttribute(_el$
|
|
9489
|
-
setAttribute(_el$
|
|
9490
|
-
setAttribute(_el$
|
|
9491
|
-
setAttribute(_el$
|
|
9492
|
-
setAttribute(_el$
|
|
9493
|
-
setAttribute(_el$
|
|
9494
|
-
setAttribute(_el$
|
|
9495
|
-
setAttribute(_el$
|
|
9496
|
-
setAttribute(_el$
|
|
9497
|
-
setAttribute(_el$
|
|
9498
|
-
setAttribute(_el$
|
|
9499
|
-
setAttribute(_el$
|
|
9500
|
-
setAttribute(_el$
|
|
9501
|
-
setAttribute(_el$
|
|
9502
|
-
setAttribute(_el$
|
|
9503
|
-
setAttribute(_el$
|
|
9504
|
-
setAttribute(_el$
|
|
9505
|
-
setAttribute(_el$
|
|
9506
|
-
setAttribute(_el$
|
|
9507
|
-
setAttribute(_el$
|
|
9508
|
-
setAttribute(_el$
|
|
9509
|
-
setAttribute(_el$
|
|
9510
|
-
setAttribute(_el$
|
|
9511
|
-
setAttribute(_el$
|
|
9512
|
-
setAttribute(_el$
|
|
9513
|
-
setAttribute(_el$
|
|
9514
|
-
setAttribute(_el$
|
|
9515
|
-
setAttribute(_el$
|
|
9516
|
-
setAttribute(_el$
|
|
9517
|
-
setAttribute(_el$
|
|
9518
|
-
setAttribute(_el$
|
|
9519
|
-
return _el$
|
|
9940
|
+
const _el$27 = _tmpl$21(), _el$28 = _el$27.firstChild, _el$29 = _el$28.nextSibling, _el$30 = _el$29.nextSibling, _el$31 = _el$30.firstChild, _el$32 = _el$30.nextSibling, _el$33 = _el$32.firstChild, _el$34 = _el$32.nextSibling, _el$35 = _el$34.nextSibling, _el$36 = _el$35.firstChild, _el$37 = _el$35.nextSibling, _el$38 = _el$37.firstChild, _el$39 = _el$37.nextSibling, _el$40 = _el$39.nextSibling, _el$41 = _el$40.firstChild, _el$42 = _el$40.nextSibling, _el$43 = _el$42.firstChild, _el$44 = _el$42.nextSibling, _el$45 = _el$44.nextSibling, _el$46 = _el$45.firstChild, _el$47 = _el$45.nextSibling, _el$48 = _el$47.firstChild, _el$49 = _el$47.nextSibling, _el$50 = _el$49.nextSibling, _el$51 = _el$50.firstChild, _el$52 = _el$50.nextSibling, _el$53 = _el$52.firstChild, _el$54 = _el$52.nextSibling, _el$55 = _el$54.nextSibling, _el$56 = _el$55.firstChild, _el$57 = _el$55.nextSibling, _el$58 = _el$57.firstChild, _el$59 = _el$57.nextSibling, _el$60 = _el$59.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$60.nextSibling, _el$63 = _el$62.firstChild, _el$64 = _el$62.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.nextSibling, _el$67 = _el$66.nextSibling, _el$68 = _el$67.nextSibling, _el$69 = _el$68.nextSibling, _el$70 = _el$64.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$70.nextSibling, _el$73 = _el$72.firstChild, _el$74 = _el$72.nextSibling, _el$75 = _el$74.firstChild, _el$76 = _el$75.nextSibling, _el$77 = _el$76.nextSibling, _el$78 = _el$77.firstChild, _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$85.nextSibling, _el$87 = _el$86.nextSibling, _el$88 = _el$87.nextSibling, _el$89 = _el$88.nextSibling, _el$90 = _el$74.nextSibling, _el$91 = _el$90.firstChild, _el$92 = _el$90.nextSibling, _el$93 = _el$92.firstChild, _el$94 = _el$92.nextSibling, _el$95 = _el$94.firstChild, _el$96 = _el$95.nextSibling, _el$97 = _el$94.nextSibling, _el$98 = _el$97.firstChild, _el$99 = _el$97.nextSibling, _el$100 = _el$99.firstChild, _el$101 = _el$99.nextSibling, _el$102 = _el$101.firstChild, _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, _el$116 = _el$115.nextSibling, _el$117 = _el$116.nextSibling, _el$118 = _el$117.nextSibling, _el$119 = _el$118.nextSibling;
|
|
9941
|
+
setAttribute(_el$28, "id", `a-${id}`);
|
|
9942
|
+
setAttribute(_el$29, "fill", `url(#a-${id})`);
|
|
9943
|
+
setAttribute(_el$31, "id", `am-${id}`);
|
|
9944
|
+
setAttribute(_el$32, "id", `b-${id}`);
|
|
9945
|
+
setAttribute(_el$33, "filter", `url(#am-${id})`);
|
|
9946
|
+
setAttribute(_el$34, "mask", `url(#b-${id})`);
|
|
9947
|
+
setAttribute(_el$36, "id", `ah-${id}`);
|
|
9948
|
+
setAttribute(_el$37, "id", `k-${id}`);
|
|
9949
|
+
setAttribute(_el$38, "filter", `url(#ah-${id})`);
|
|
9950
|
+
setAttribute(_el$39, "mask", `url(#k-${id})`);
|
|
9951
|
+
setAttribute(_el$41, "id", `ae-${id}`);
|
|
9952
|
+
setAttribute(_el$42, "id", `j-${id}`);
|
|
9953
|
+
setAttribute(_el$43, "filter", `url(#ae-${id})`);
|
|
9954
|
+
setAttribute(_el$44, "mask", `url(#j-${id})`);
|
|
9955
|
+
setAttribute(_el$46, "id", `ai-${id}`);
|
|
9956
|
+
setAttribute(_el$47, "id", `i-${id}`);
|
|
9957
|
+
setAttribute(_el$48, "filter", `url(#ai-${id})`);
|
|
9958
|
+
setAttribute(_el$49, "mask", `url(#i-${id})`);
|
|
9959
|
+
setAttribute(_el$51, "id", `aj-${id}`);
|
|
9960
|
+
setAttribute(_el$52, "id", `h-${id}`);
|
|
9961
|
+
setAttribute(_el$53, "filter", `url(#aj-${id})`);
|
|
9962
|
+
setAttribute(_el$54, "mask", `url(#h-${id})`);
|
|
9963
|
+
setAttribute(_el$56, "id", `ag-${id}`);
|
|
9964
|
+
setAttribute(_el$57, "id", `g-${id}`);
|
|
9965
|
+
setAttribute(_el$58, "filter", `url(#ag-${id})`);
|
|
9966
|
+
setAttribute(_el$59, "mask", `url(#g-${id})`);
|
|
9967
|
+
setAttribute(_el$61, "id", `af-${id}`);
|
|
9968
|
+
setAttribute(_el$62, "id", `f-${id}`);
|
|
9969
|
+
setAttribute(_el$63, "filter", `url(#af-${id})`);
|
|
9970
|
+
setAttribute(_el$64, "mask", `url(#f-${id})`);
|
|
9971
|
+
setAttribute(_el$68, "id", `m-${id}`);
|
|
9972
|
+
setAttribute(_el$69, "fill", `url(#m-${id})`);
|
|
9973
|
+
setAttribute(_el$71, "id", `ak-${id}`);
|
|
9974
|
+
setAttribute(_el$72, "id", `e-${id}`);
|
|
9975
|
+
setAttribute(_el$73, "filter", `url(#ak-${id})`);
|
|
9976
|
+
setAttribute(_el$74, "mask", `url(#e-${id})`);
|
|
9977
|
+
setAttribute(_el$75, "id", `n-${id}`);
|
|
9978
|
+
setAttribute(_el$76, "fill", `url(#n-${id})`);
|
|
9979
|
+
setAttribute(_el$78, "id", `r-${id}`);
|
|
9980
|
+
setAttribute(_el$79, "fill", `url(#r-${id})`);
|
|
9981
|
+
setAttribute(_el$80, "id", `s-${id}`);
|
|
9982
|
+
setAttribute(_el$81, "fill", `url(#s-${id})`);
|
|
9983
|
+
setAttribute(_el$82, "id", `q-${id}`);
|
|
9984
|
+
setAttribute(_el$83, "fill", `url(#q-${id})`);
|
|
9985
|
+
setAttribute(_el$84, "id", `p-${id}`);
|
|
9986
|
+
setAttribute(_el$85, "fill", `url(#p-${id})`);
|
|
9987
|
+
setAttribute(_el$86, "id", `o-${id}`);
|
|
9988
|
+
setAttribute(_el$87, "fill", `url(#o-${id})`);
|
|
9989
|
+
setAttribute(_el$88, "id", `l-${id}`);
|
|
9990
|
+
setAttribute(_el$89, "fill", `url(#l-${id})`);
|
|
9991
|
+
setAttribute(_el$91, "id", `al-${id}`);
|
|
9992
|
+
setAttribute(_el$92, "id", `d-${id}`);
|
|
9993
|
+
setAttribute(_el$93, "filter", `url(#al-${id})`);
|
|
9994
|
+
setAttribute(_el$94, "mask", `url(#d-${id})`);
|
|
9995
|
+
setAttribute(_el$95, "id", `u-${id}`);
|
|
9996
|
+
setAttribute(_el$96, "fill", `url(#u-${id})`);
|
|
9997
|
+
setAttribute(_el$98, "id", `ad-${id}`);
|
|
9998
|
+
setAttribute(_el$99, "id", `c-${id}`);
|
|
9999
|
+
setAttribute(_el$100, "filter", `url(#ad-${id})`);
|
|
10000
|
+
setAttribute(_el$101, "mask", `url(#c-${id})`);
|
|
10001
|
+
setAttribute(_el$102, "id", `t-${id}`);
|
|
10002
|
+
setAttribute(_el$103, "fill", `url(#t-${id})`);
|
|
10003
|
+
setAttribute(_el$104, "id", `v-${id}`);
|
|
10004
|
+
setAttribute(_el$105, "stroke", `url(#v-${id})`);
|
|
10005
|
+
setAttribute(_el$106, "id", `aa-${id}`);
|
|
10006
|
+
setAttribute(_el$107, "stroke", `url(#aa-${id})`);
|
|
10007
|
+
setAttribute(_el$108, "id", `w-${id}`);
|
|
10008
|
+
setAttribute(_el$109, "stroke", `url(#w-${id})`);
|
|
10009
|
+
setAttribute(_el$110, "id", `ac-${id}`);
|
|
10010
|
+
setAttribute(_el$111, "stroke", `url(#ac-${id})`);
|
|
10011
|
+
setAttribute(_el$112, "id", `ab-${id}`);
|
|
10012
|
+
setAttribute(_el$113, "stroke", `url(#ab-${id})`);
|
|
10013
|
+
setAttribute(_el$114, "id", `y-${id}`);
|
|
10014
|
+
setAttribute(_el$115, "stroke", `url(#y-${id})`);
|
|
10015
|
+
setAttribute(_el$116, "id", `x-${id}`);
|
|
10016
|
+
setAttribute(_el$117, "stroke", `url(#x-${id})`);
|
|
10017
|
+
setAttribute(_el$118, "id", `z-${id}`);
|
|
10018
|
+
setAttribute(_el$119, "stroke", `url(#z-${id})`);
|
|
10019
|
+
return _el$27;
|
|
9520
10020
|
})();
|
|
9521
10021
|
}
|
|
9522
10022
|
|
|
@@ -9538,8 +10038,8 @@ function useTheme() {
|
|
|
9538
10038
|
}
|
|
9539
10039
|
|
|
9540
10040
|
// src/Explorer.tsx
|
|
9541
|
-
var _tmpl$
|
|
9542
|
-
var _tmpl$
|
|
10041
|
+
var _tmpl$22 = /* @__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>`);
|
|
10042
|
+
var _tmpl$23 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
|
|
9543
10043
|
var _tmpl$32 = /* @__PURE__ */ template(`<button title="Remove all items"aria-label="Remove all items">`);
|
|
9544
10044
|
var _tmpl$42 = /* @__PURE__ */ template(`<button title="Delete item"aria-label="Delete item">`);
|
|
9545
10045
|
var _tmpl$52 = /* @__PURE__ */ template(`<button title="Toggle value"aria-label="Toggle value">`);
|
|
@@ -9566,7 +10066,7 @@ var Expander = (props) => {
|
|
|
9566
10066
|
return theme() === "dark" ? darkStyles : lightStyles;
|
|
9567
10067
|
});
|
|
9568
10068
|
return (() => {
|
|
9569
|
-
const _el$ = _tmpl$
|
|
10069
|
+
const _el$ = _tmpl$22();
|
|
9570
10070
|
createRenderEffect(() => className(_el$, clsx(styles().expander, u`
|
|
9571
10071
|
transform: rotate(${props.expanded ? 90 : 0}deg);
|
|
9572
10072
|
`, props.expanded && u`
|
|
@@ -9584,7 +10084,7 @@ var CopyButton = (props) => {
|
|
|
9584
10084
|
});
|
|
9585
10085
|
const [copyState, setCopyState] = createSignal("NoCopy");
|
|
9586
10086
|
return (() => {
|
|
9587
|
-
const _el$2 = _tmpl$
|
|
10087
|
+
const _el$2 = _tmpl$23();
|
|
9588
10088
|
addEventListener(_el$2, "click", copyState() === "NoCopy" ? () => {
|
|
9589
10089
|
navigator.clipboard.writeText(stringify(props.value)).then(() => {
|
|
9590
10090
|
setCopyState("SuccessCopy");
|
|
@@ -10081,8 +10581,8 @@ var stylesFactory = (theme) => {
|
|
|
10081
10581
|
expanderButtonContainer: u`
|
|
10082
10582
|
display: flex;
|
|
10083
10583
|
align-items: center;
|
|
10084
|
-
line-height:
|
|
10085
|
-
min-height:
|
|
10584
|
+
line-height: ${size2[4]};
|
|
10585
|
+
min-height: ${size2[4]};
|
|
10086
10586
|
gap: ${size2[2]};
|
|
10087
10587
|
`,
|
|
10088
10588
|
expanderButton: u`
|
|
@@ -10090,7 +10590,7 @@ var stylesFactory = (theme) => {
|
|
|
10090
10590
|
color: inherit;
|
|
10091
10591
|
font: inherit;
|
|
10092
10592
|
outline: inherit;
|
|
10093
|
-
height:
|
|
10593
|
+
height: ${size2[5]};
|
|
10094
10594
|
background: transparent;
|
|
10095
10595
|
border: none;
|
|
10096
10596
|
padding: 0;
|
|
@@ -10132,8 +10632,8 @@ var stylesFactory = (theme) => {
|
|
|
10132
10632
|
display: inline-flex;
|
|
10133
10633
|
gap: ${size2[2]};
|
|
10134
10634
|
width: 100%;
|
|
10135
|
-
margin
|
|
10136
|
-
line-height:
|
|
10635
|
+
margin: ${size2[0.25]} 0px;
|
|
10636
|
+
line-height: ${size2[4.5]};
|
|
10137
10637
|
align-items: center;
|
|
10138
10638
|
`,
|
|
10139
10639
|
editableInput: u`
|
|
@@ -10186,31 +10686,36 @@ var loadFonts = () => {
|
|
|
10186
10686
|
};
|
|
10187
10687
|
|
|
10188
10688
|
// src/Devtools.tsx
|
|
10189
|
-
var _tmpl$
|
|
10190
|
-
var _tmpl$
|
|
10191
|
-
var _tmpl$33 = /* @__PURE__ */ template(`<
|
|
10192
|
-
var _tmpl$43 = /* @__PURE__ */ template(`<
|
|
10193
|
-
var _tmpl$53 = /* @__PURE__ */ template(`<
|
|
10194
|
-
var _tmpl$63 = /* @__PURE__ */ template(`<span>
|
|
10195
|
-
var _tmpl$73 = /* @__PURE__ */ template(`<
|
|
10196
|
-
var _tmpl$83 = /* @__PURE__ */ template(`<span>
|
|
10197
|
-
var _tmpl$93 = /* @__PURE__ */ template(`<span>
|
|
10198
|
-
var _tmpl$103 = /* @__PURE__ */ template(`<span>
|
|
10199
|
-
var _tmpl$113 = /* @__PURE__ */ template(`<span>
|
|
10200
|
-
var _tmpl$122 = /* @__PURE__ */ template(`<span>
|
|
10201
|
-
var _tmpl$132 = /* @__PURE__ */ template(`<span>
|
|
10202
|
-
var _tmpl$142 = /* @__PURE__ */ template(`<span>
|
|
10203
|
-
var _tmpl$152 = /* @__PURE__ */ template(`<
|
|
10204
|
-
var _tmpl$162 = /* @__PURE__ */ template(`<
|
|
10205
|
-
var _tmpl$172 = /* @__PURE__ */ template(`<div class=tsqd-
|
|
10206
|
-
var _tmpl$182 = /* @__PURE__ */ template(`<
|
|
10207
|
-
var _tmpl$192 = /* @__PURE__ */ template(`<div
|
|
10208
|
-
var _tmpl$
|
|
10209
|
-
var _tmpl$
|
|
10210
|
-
var _tmpl$222 = /* @__PURE__ */ template(`<button><
|
|
10211
|
-
var _tmpl$232 = /* @__PURE__ */ template(`<div
|
|
10212
|
-
var _tmpl$
|
|
10213
|
-
var _tmpl$
|
|
10689
|
+
var _tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
|
|
10690
|
+
var _tmpl$25 = /* @__PURE__ */ template(`<div>`);
|
|
10691
|
+
var _tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
|
|
10692
|
+
var _tmpl$43 = /* @__PURE__ */ template(`<select>`);
|
|
10693
|
+
var _tmpl$53 = /* @__PURE__ */ template(`<span>Asc`);
|
|
10694
|
+
var _tmpl$63 = /* @__PURE__ */ template(`<span>Desc`);
|
|
10695
|
+
var _tmpl$73 = /* @__PURE__ */ template(`<div>Settings`);
|
|
10696
|
+
var _tmpl$83 = /* @__PURE__ */ template(`<span>Position`);
|
|
10697
|
+
var _tmpl$93 = /* @__PURE__ */ template(`<span>Top`);
|
|
10698
|
+
var _tmpl$103 = /* @__PURE__ */ template(`<span>Bottom`);
|
|
10699
|
+
var _tmpl$113 = /* @__PURE__ */ template(`<span>Left`);
|
|
10700
|
+
var _tmpl$122 = /* @__PURE__ */ template(`<span>Right`);
|
|
10701
|
+
var _tmpl$132 = /* @__PURE__ */ template(`<span>Theme`);
|
|
10702
|
+
var _tmpl$142 = /* @__PURE__ */ template(`<span>Light`);
|
|
10703
|
+
var _tmpl$152 = /* @__PURE__ */ template(`<span>Dark`);
|
|
10704
|
+
var _tmpl$162 = /* @__PURE__ */ template(`<span>System`);
|
|
10705
|
+
var _tmpl$172 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
|
|
10706
|
+
var _tmpl$182 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
|
|
10707
|
+
var _tmpl$192 = /* @__PURE__ */ template(`<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter class=tsqd-query-filter-textfield></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>`);
|
|
10708
|
+
var _tmpl$202 = /* @__PURE__ */ template(`<option>Sort by `);
|
|
10709
|
+
var _tmpl$212 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
|
|
10710
|
+
var _tmpl$222 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
|
|
10711
|
+
var _tmpl$232 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
|
|
10712
|
+
var _tmpl$242 = /* @__PURE__ */ template(`<span>`);
|
|
10713
|
+
var _tmpl$252 = /* @__PURE__ */ template(`<button><span></span><span>`);
|
|
10714
|
+
var _tmpl$26 = /* @__PURE__ */ template(`<button><span></span> Error`);
|
|
10715
|
+
var _tmpl$27 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
|
|
10716
|
+
var _tmpl$28 = /* @__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">`);
|
|
10717
|
+
var _tmpl$29 = /* @__PURE__ */ template(`<option>`);
|
|
10718
|
+
var _tmpl$30 = /* @__PURE__ */ template(`<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
10214
10719
|
var firstBreakpoint = 1024;
|
|
10215
10720
|
var secondBreakpoint = 796;
|
|
10216
10721
|
var thirdBreakpoint = 700;
|
|
@@ -10222,7 +10727,9 @@ var DEFAULT_HEIGHT = 500;
|
|
|
10222
10727
|
var DEFAULT_WIDTH = 500;
|
|
10223
10728
|
var DEFAULT_SORT_FN_NAME = Object.keys(sortFns)[0];
|
|
10224
10729
|
var DEFAULT_SORT_ORDER = 1;
|
|
10730
|
+
var DEFAULT_MUTATION_SORT_FN_NAME = Object.keys(mutationSortFns)[0];
|
|
10225
10731
|
var [selectedQueryHash, setSelectedQueryHash] = createSignal(null);
|
|
10732
|
+
var [selectedMutationId, setSelectedMutationId] = createSignal(null);
|
|
10226
10733
|
var [panelWidth, setPanelWidth] = createSignal(0);
|
|
10227
10734
|
var DevtoolsComponent = (props) => {
|
|
10228
10735
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
@@ -10266,16 +10773,31 @@ var Devtools = (props) => {
|
|
|
10266
10773
|
const position = createMemo(() => {
|
|
10267
10774
|
return props.localStore.position || useQueryDevtoolsContext().position || POSITION;
|
|
10268
10775
|
});
|
|
10776
|
+
let transitionsContainerRef;
|
|
10269
10777
|
createEffect(() => {
|
|
10270
|
-
const root =
|
|
10778
|
+
const root = transitionsContainerRef.parentElement;
|
|
10271
10779
|
const height = props.localStore.height || DEFAULT_HEIGHT;
|
|
10272
10780
|
const width = props.localStore.width || DEFAULT_WIDTH;
|
|
10273
10781
|
const panelPosition = position();
|
|
10274
10782
|
root.style.setProperty("--tsqd-panel-height", `${panelPosition === "top" ? "-" : ""}${height}px`);
|
|
10275
10783
|
root.style.setProperty("--tsqd-panel-width", `${panelPosition === "left" ? "-" : ""}${width}px`);
|
|
10276
10784
|
});
|
|
10785
|
+
onMount(() => {
|
|
10786
|
+
const onFocus = () => {
|
|
10787
|
+
const root = transitionsContainerRef.parentElement;
|
|
10788
|
+
const fontSize = getComputedStyle(root).fontSize;
|
|
10789
|
+
root.style.setProperty("--tsqd-font-size", fontSize);
|
|
10790
|
+
};
|
|
10791
|
+
onFocus();
|
|
10792
|
+
window.addEventListener("focus", onFocus);
|
|
10793
|
+
onCleanup(() => {
|
|
10794
|
+
window.removeEventListener("focus", onFocus);
|
|
10795
|
+
});
|
|
10796
|
+
});
|
|
10277
10797
|
return (() => {
|
|
10278
|
-
const _el$ = _tmpl$
|
|
10798
|
+
const _el$ = _tmpl$25();
|
|
10799
|
+
const _ref$ = transitionsContainerRef;
|
|
10800
|
+
typeof _ref$ === "function" ? use(_ref$, _el$) : transitionsContainerRef = _el$;
|
|
10279
10801
|
insert(_el$, createComponent(TransitionGroup, {
|
|
10280
10802
|
name: "tsqd-panel-transition",
|
|
10281
10803
|
get children() {
|
|
@@ -10304,7 +10826,7 @@ var Devtools = (props) => {
|
|
|
10304
10826
|
return !isOpen();
|
|
10305
10827
|
},
|
|
10306
10828
|
get children() {
|
|
10307
|
-
const _el$2 = _tmpl$
|
|
10829
|
+
const _el$2 = _tmpl$24(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
|
|
10308
10830
|
insert(_el$3, createComponent(TanstackLogo, {}));
|
|
10309
10831
|
_el$4.$$click = () => props.setLocalStore("open", "true");
|
|
10310
10832
|
insert(_el$4, createComponent(TanstackLogo, {}));
|
|
@@ -10344,24 +10866,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10344
10866
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10345
10867
|
});
|
|
10346
10868
|
const [isResizing, setIsResizing] = createSignal(false);
|
|
10347
|
-
const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
|
|
10348
|
-
const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
|
|
10349
|
-
const [offline, setOffline] = createSignal(false);
|
|
10350
10869
|
const position = createMemo(() => props.localStore.position || useQueryDevtoolsContext().position || POSITION);
|
|
10351
|
-
const sortFn = createMemo(() => sortFns[sort()]);
|
|
10352
|
-
const onlineManager = createMemo(() => useQueryDevtoolsContext().onlineManager);
|
|
10353
|
-
const cache = createMemo(() => {
|
|
10354
|
-
return useQueryDevtoolsContext().client.getQueryCache();
|
|
10355
|
-
});
|
|
10356
|
-
const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
|
|
10357
|
-
return queryCache().getAll().length;
|
|
10358
|
-
}, false);
|
|
10359
|
-
const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
|
|
10360
|
-
const curr = cache().getAll();
|
|
10361
|
-
const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
|
|
10362
|
-
const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
|
|
10363
|
-
return sorted;
|
|
10364
|
-
}));
|
|
10365
10870
|
const handleDragStart = (event) => {
|
|
10366
10871
|
const panelElement = event.currentTarget.parentElement;
|
|
10367
10872
|
if (!panelElement)
|
|
@@ -10409,8 +10914,6 @@ var DevtoolsPanel = (props) => {
|
|
|
10409
10914
|
document.addEventListener("mousemove", runDrag, false);
|
|
10410
10915
|
document.addEventListener("mouseup", unsub, false);
|
|
10411
10916
|
};
|
|
10412
|
-
setupQueryCacheSubscription();
|
|
10413
|
-
let queriesContainerRef;
|
|
10414
10917
|
let panelRef;
|
|
10415
10918
|
onMount(() => {
|
|
10416
10919
|
createResizeObserver(panelRef, ({
|
|
@@ -10421,9 +10924,6 @@ var DevtoolsPanel = (props) => {
|
|
|
10421
10924
|
}
|
|
10422
10925
|
});
|
|
10423
10926
|
});
|
|
10424
|
-
const setDevtoolsPosition = (pos) => {
|
|
10425
|
-
props.setLocalStore("position", pos);
|
|
10426
|
-
};
|
|
10427
10927
|
createEffect(() => {
|
|
10428
10928
|
const rootContainer = panelRef.parentElement?.parentElement?.parentElement;
|
|
10429
10929
|
if (!rootContainer)
|
|
@@ -10468,52 +10968,238 @@ var DevtoolsPanel = (props) => {
|
|
|
10468
10968
|
`;
|
|
10469
10969
|
};
|
|
10470
10970
|
return (() => {
|
|
10471
|
-
const _el$5 = _tmpl$
|
|
10472
|
-
const _ref$ = panelRef;
|
|
10473
|
-
typeof _ref$ === "function" ? use(_ref
|
|
10971
|
+
const _el$5 = _tmpl$33(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
|
|
10972
|
+
const _ref$2 = panelRef;
|
|
10973
|
+
typeof _ref$2 === "function" ? use(_ref$2, _el$5) : panelRef = _el$5;
|
|
10474
10974
|
_el$6.$$mousedown = handleDragStart;
|
|
10475
10975
|
_el$7.$$click = () => props.setLocalStore("open", "false");
|
|
10476
10976
|
insert(_el$7, createComponent(ChevronDown, {}));
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
|
|
10480
|
-
|
|
10481
|
-
|
|
10482
|
-
|
|
10483
|
-
|
|
10484
|
-
|
|
10485
|
-
|
|
10486
|
-
|
|
10487
|
-
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10498
|
-
|
|
10977
|
+
insert(_el$5, createComponent(ContentView, {
|
|
10978
|
+
get localStore() {
|
|
10979
|
+
return props.localStore;
|
|
10980
|
+
},
|
|
10981
|
+
get setLocalStore() {
|
|
10982
|
+
return props.setLocalStore;
|
|
10983
|
+
}
|
|
10984
|
+
}), null);
|
|
10985
|
+
createRenderEffect((_p$) => {
|
|
10986
|
+
const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
|
|
10987
|
+
[u`
|
|
10988
|
+
min-width: min-content;
|
|
10989
|
+
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
10990
|
+
}, "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");
|
|
10991
|
+
_v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
|
|
10992
|
+
_v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
|
|
10993
|
+
_v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
|
|
10994
|
+
_v$4 !== _p$._v$4 && className(_el$6, _p$._v$4 = _v$4);
|
|
10995
|
+
_v$5 !== _p$._v$5 && className(_el$7, _p$._v$5 = _v$5);
|
|
10996
|
+
return _p$;
|
|
10997
|
+
}, {
|
|
10998
|
+
_v$: void 0,
|
|
10999
|
+
_v$2: void 0,
|
|
11000
|
+
_v$3: void 0,
|
|
11001
|
+
_v$4: void 0,
|
|
11002
|
+
_v$5: void 0
|
|
11003
|
+
});
|
|
11004
|
+
return _el$5;
|
|
11005
|
+
})();
|
|
11006
|
+
};
|
|
11007
|
+
var ContentView = (props) => {
|
|
11008
|
+
setupQueryCacheSubscription();
|
|
11009
|
+
setupMutationCacheSubscription();
|
|
11010
|
+
let containerRef;
|
|
11011
|
+
const theme = useTheme();
|
|
11012
|
+
const styles = createMemo(() => {
|
|
11013
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11014
|
+
});
|
|
11015
|
+
const [selectedView, setSelectedView] = createSignal("queries");
|
|
11016
|
+
const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
|
|
11017
|
+
const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
|
|
11018
|
+
const mutationSort = createMemo(() => props.localStore.mutationSort || DEFAULT_MUTATION_SORT_FN_NAME);
|
|
11019
|
+
const mutationSortOrder = createMemo(() => Number(props.localStore.mutationSortOrder) || DEFAULT_SORT_ORDER);
|
|
11020
|
+
const [offline, setOffline] = createSignal(false);
|
|
11021
|
+
const sortFn = createMemo(() => sortFns[sort()]);
|
|
11022
|
+
const mutationSortFn = createMemo(() => mutationSortFns[mutationSort()]);
|
|
11023
|
+
const onlineManager = createMemo(() => useQueryDevtoolsContext().onlineManager);
|
|
11024
|
+
const query_cache = createMemo(() => {
|
|
11025
|
+
return useQueryDevtoolsContext().client.getQueryCache();
|
|
11026
|
+
});
|
|
11027
|
+
const mutation_cache = createMemo(() => {
|
|
11028
|
+
return useQueryDevtoolsContext().client.getMutationCache();
|
|
11029
|
+
});
|
|
11030
|
+
const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
|
|
11031
|
+
return queryCache().getAll().length;
|
|
11032
|
+
}, false);
|
|
11033
|
+
const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
|
|
11034
|
+
const curr = query_cache().getAll();
|
|
11035
|
+
const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
|
|
11036
|
+
const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
|
|
11037
|
+
return sorted;
|
|
11038
|
+
}));
|
|
11039
|
+
const mutationCount = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
11040
|
+
return mutationCache().getAll().length;
|
|
11041
|
+
}, false);
|
|
11042
|
+
const mutations = createMemo(on(() => [mutationCount(), props.localStore.mutationFilter, mutationSort(), mutationSortOrder()], () => {
|
|
11043
|
+
const curr = mutation_cache().getAll();
|
|
11044
|
+
const filtered = props.localStore.mutationFilter ? curr.filter((item) => {
|
|
11045
|
+
const value = `${item.options.mutationKey ? JSON.stringify(item.options.mutationKey) + " - " : ""}${new Date(item.state.submittedAt).toLocaleString()}`;
|
|
11046
|
+
return rankItem(value, props.localStore.mutationFilter || "").passed;
|
|
11047
|
+
}) : [...curr];
|
|
11048
|
+
const sorted = mutationSortFn() ? filtered.sort((a2, b2) => mutationSortFn()(a2, b2) * mutationSortOrder()) : filtered;
|
|
11049
|
+
return sorted;
|
|
11050
|
+
}));
|
|
11051
|
+
const setDevtoolsPosition = (pos) => {
|
|
11052
|
+
props.setLocalStore("position", pos);
|
|
11053
|
+
};
|
|
11054
|
+
const setComputedVariables = (el) => {
|
|
11055
|
+
const computedStyle = getComputedStyle(containerRef);
|
|
11056
|
+
const variable = computedStyle.getPropertyValue("--tsqd-font-size");
|
|
11057
|
+
el.style.setProperty("--tsqd-font-size", variable);
|
|
11058
|
+
};
|
|
11059
|
+
return [(() => {
|
|
11060
|
+
const _el$8 = _tmpl$192(), _el$9 = _el$8.firstChild, _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$15 = _el$9.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild, _el$19 = _el$17.nextSibling, _el$22 = _el$19.nextSibling, _el$25 = _el$16.nextSibling, _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling;
|
|
11061
|
+
const _ref$3 = containerRef;
|
|
11062
|
+
typeof _ref$3 === "function" ? use(_ref$3, _el$8) : containerRef = _el$8;
|
|
11063
|
+
_el$11.$$click = () => props.setLocalStore("open", "false");
|
|
11064
|
+
insert(_el$13, () => useQueryDevtoolsContext().queryFlavor, _el$14);
|
|
11065
|
+
insert(_el$13, () => useQueryDevtoolsContext().version, null);
|
|
11066
|
+
insert(_el$10, createComponent(index$7.Root, {
|
|
11067
|
+
get ["class"]() {
|
|
11068
|
+
return clsx(styles().viewToggle);
|
|
11069
|
+
},
|
|
11070
|
+
get value() {
|
|
11071
|
+
return selectedView();
|
|
11072
|
+
},
|
|
11073
|
+
onChange: (value) => {
|
|
11074
|
+
setSelectedView(value);
|
|
11075
|
+
setSelectedQueryHash(null);
|
|
11076
|
+
setSelectedMutationId(null);
|
|
11077
|
+
},
|
|
11078
|
+
get children() {
|
|
11079
|
+
return [createComponent(index$7.Item, {
|
|
11080
|
+
value: "queries",
|
|
11081
|
+
"class": "tsqd-radio-toggle",
|
|
11082
|
+
get children() {
|
|
11083
|
+
return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
|
|
11084
|
+
get children() {
|
|
11085
|
+
return createComponent(index$7.ItemIndicator, {});
|
|
11086
|
+
}
|
|
11087
|
+
}), createComponent(index$7.ItemLabel, {
|
|
11088
|
+
title: "Toggle Queries View",
|
|
11089
|
+
children: "Queries"
|
|
11090
|
+
})];
|
|
11091
|
+
}
|
|
11092
|
+
}), createComponent(index$7.Item, {
|
|
11093
|
+
value: "mutations",
|
|
11094
|
+
"class": "tsqd-radio-toggle",
|
|
11095
|
+
get children() {
|
|
11096
|
+
return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
|
|
11097
|
+
get children() {
|
|
11098
|
+
return createComponent(index$7.ItemIndicator, {});
|
|
11099
|
+
}
|
|
11100
|
+
}), createComponent(index$7.ItemLabel, {
|
|
11101
|
+
title: "Toggle Mutations View",
|
|
11102
|
+
children: "Mutations"
|
|
11103
|
+
})];
|
|
11104
|
+
}
|
|
11105
|
+
})];
|
|
11106
|
+
}
|
|
11107
|
+
}), null);
|
|
11108
|
+
insert(_el$9, createComponent(Show, {
|
|
11109
|
+
get when() {
|
|
11110
|
+
return selectedView() === "queries";
|
|
11111
|
+
},
|
|
11112
|
+
get children() {
|
|
11113
|
+
return createComponent(QueryStatusCount, {});
|
|
11114
|
+
}
|
|
11115
|
+
}), null);
|
|
11116
|
+
insert(_el$9, createComponent(Show, {
|
|
11117
|
+
get when() {
|
|
11118
|
+
return selectedView() === "mutations";
|
|
11119
|
+
},
|
|
11120
|
+
get children() {
|
|
11121
|
+
return createComponent(MutationStatusCount, {});
|
|
11122
|
+
}
|
|
11123
|
+
}), null);
|
|
11124
|
+
insert(_el$17, createComponent(Search, {}), _el$18);
|
|
11125
|
+
_el$18.$$input = (e2) => {
|
|
11126
|
+
if (selectedView() === "queries") {
|
|
11127
|
+
props.setLocalStore("filter", e2.currentTarget.value);
|
|
11128
|
+
} else {
|
|
11129
|
+
props.setLocalStore("mutationFilter", e2.currentTarget.value);
|
|
11130
|
+
}
|
|
11131
|
+
};
|
|
11132
|
+
insert(_el$19, createComponent(Show, {
|
|
11133
|
+
get when() {
|
|
11134
|
+
return selectedView() === "queries";
|
|
10499
11135
|
},
|
|
10500
11136
|
get children() {
|
|
10501
|
-
|
|
11137
|
+
const _el$20 = _tmpl$43();
|
|
11138
|
+
_el$20.addEventListener("change", (e2) => {
|
|
11139
|
+
props.setLocalStore("sort", e2.currentTarget.value);
|
|
11140
|
+
});
|
|
11141
|
+
insert(_el$20, () => Object.keys(sortFns).map((key) => (() => {
|
|
11142
|
+
const _el$42 = _tmpl$202(); _el$42.firstChild;
|
|
11143
|
+
_el$42.value = key;
|
|
11144
|
+
insert(_el$42, key, null);
|
|
11145
|
+
return _el$42;
|
|
11146
|
+
})()));
|
|
11147
|
+
createRenderEffect(() => _el$20.value = sort());
|
|
11148
|
+
return _el$20;
|
|
10502
11149
|
}
|
|
10503
11150
|
}), null);
|
|
10504
|
-
insert(_el$
|
|
11151
|
+
insert(_el$19, createComponent(Show, {
|
|
10505
11152
|
get when() {
|
|
10506
|
-
return
|
|
11153
|
+
return selectedView() === "mutations";
|
|
10507
11154
|
},
|
|
10508
11155
|
get children() {
|
|
10509
|
-
|
|
11156
|
+
const _el$21 = _tmpl$43();
|
|
11157
|
+
_el$21.addEventListener("change", (e2) => {
|
|
11158
|
+
props.setLocalStore("mutationSort", e2.currentTarget.value);
|
|
11159
|
+
});
|
|
11160
|
+
insert(_el$21, () => Object.keys(mutationSortFns).map((key) => (() => {
|
|
11161
|
+
const _el$44 = _tmpl$202(); _el$44.firstChild;
|
|
11162
|
+
_el$44.value = key;
|
|
11163
|
+
insert(_el$44, key, null);
|
|
11164
|
+
return _el$44;
|
|
11165
|
+
})()));
|
|
11166
|
+
createRenderEffect(() => _el$21.value = mutationSort());
|
|
11167
|
+
return _el$21;
|
|
10510
11168
|
}
|
|
10511
11169
|
}), null);
|
|
10512
|
-
_el$
|
|
10513
|
-
|
|
11170
|
+
insert(_el$19, createComponent(ChevronDown, {}), null);
|
|
11171
|
+
_el$22.$$click = () => {
|
|
11172
|
+
if (selectedView() === "queries") {
|
|
11173
|
+
props.setLocalStore("sortOrder", String(sortOrder() * -1));
|
|
11174
|
+
} else {
|
|
11175
|
+
props.setLocalStore("mutationSortOrder", String(mutationSortOrder() * -1));
|
|
11176
|
+
}
|
|
10514
11177
|
};
|
|
10515
|
-
insert(_el$
|
|
10516
|
-
|
|
11178
|
+
insert(_el$22, createComponent(Show, {
|
|
11179
|
+
get when() {
|
|
11180
|
+
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === 1;
|
|
11181
|
+
},
|
|
11182
|
+
get children() {
|
|
11183
|
+
return [_tmpl$53(), createComponent(ArrowUp, {})];
|
|
11184
|
+
}
|
|
11185
|
+
}), null);
|
|
11186
|
+
insert(_el$22, createComponent(Show, {
|
|
11187
|
+
get when() {
|
|
11188
|
+
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1;
|
|
11189
|
+
},
|
|
11190
|
+
get children() {
|
|
11191
|
+
return [_tmpl$63(), createComponent(ArrowDown, {})];
|
|
11192
|
+
}
|
|
11193
|
+
}), null);
|
|
11194
|
+
_el$26.$$click = () => {
|
|
11195
|
+
if (selectedView() === "queries") {
|
|
11196
|
+
query_cache().clear();
|
|
11197
|
+
} else {
|
|
11198
|
+
mutation_cache().clear();
|
|
11199
|
+
}
|
|
11200
|
+
};
|
|
11201
|
+
insert(_el$26, createComponent(Trash, {}));
|
|
11202
|
+
_el$27.$$click = () => {
|
|
10517
11203
|
if (offline()) {
|
|
10518
11204
|
onlineManager().setOnline(true);
|
|
10519
11205
|
setOffline(false);
|
|
@@ -10522,11 +11208,11 @@ var DevtoolsPanel = (props) => {
|
|
|
10522
11208
|
setOffline(true);
|
|
10523
11209
|
}
|
|
10524
11210
|
};
|
|
10525
|
-
insert(_el$
|
|
11211
|
+
insert(_el$27, (() => {
|
|
10526
11212
|
const _c$ = createMemo(() => !!offline());
|
|
10527
11213
|
return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
|
|
10528
11214
|
})());
|
|
10529
|
-
insert(_el$
|
|
11215
|
+
insert(_el$25, createComponent(index$d.Root, {
|
|
10530
11216
|
gutter: 4,
|
|
10531
11217
|
get children() {
|
|
10532
11218
|
return [createComponent(index$d.Trigger, {
|
|
@@ -10537,6 +11223,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10537
11223
|
return createComponent(Settings, {});
|
|
10538
11224
|
}
|
|
10539
11225
|
}), createComponent(index$d.Portal, {
|
|
11226
|
+
ref: (el) => setComputedVariables(el),
|
|
10540
11227
|
get children() {
|
|
10541
11228
|
return createComponent(index$d.Content, {
|
|
10542
11229
|
get ["class"]() {
|
|
@@ -10544,9 +11231,9 @@ var DevtoolsPanel = (props) => {
|
|
|
10544
11231
|
},
|
|
10545
11232
|
get children() {
|
|
10546
11233
|
return [(() => {
|
|
10547
|
-
const _el$
|
|
10548
|
-
createRenderEffect(() => className(_el$
|
|
10549
|
-
return _el$
|
|
11234
|
+
const _el$28 = _tmpl$73();
|
|
11235
|
+
createRenderEffect(() => className(_el$28, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
|
|
11236
|
+
return _el$28;
|
|
10550
11237
|
})(), createComponent(index$d.Sub, {
|
|
10551
11238
|
overlap: true,
|
|
10552
11239
|
gutter: 8,
|
|
@@ -10557,9 +11244,10 @@ var DevtoolsPanel = (props) => {
|
|
|
10557
11244
|
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
10558
11245
|
},
|
|
10559
11246
|
get children() {
|
|
10560
|
-
return [_tmpl$
|
|
11247
|
+
return [_tmpl$83(), createComponent(ChevronDown, {})];
|
|
10561
11248
|
}
|
|
10562
11249
|
}), createComponent(index$d.Portal, {
|
|
11250
|
+
ref: (el) => setComputedVariables(el),
|
|
10563
11251
|
get children() {
|
|
10564
11252
|
return createComponent(index$d.SubContent, {
|
|
10565
11253
|
get ["class"]() {
|
|
@@ -10575,7 +11263,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10575
11263
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
10576
11264
|
},
|
|
10577
11265
|
get children() {
|
|
10578
|
-
return [_tmpl$
|
|
11266
|
+
return [_tmpl$93(), createComponent(ArrowUp, {})];
|
|
10579
11267
|
}
|
|
10580
11268
|
}), createComponent(index$d.Item, {
|
|
10581
11269
|
onSelect: () => {
|
|
@@ -10586,7 +11274,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10586
11274
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
10587
11275
|
},
|
|
10588
11276
|
get children() {
|
|
10589
|
-
return [_tmpl$
|
|
11277
|
+
return [_tmpl$103(), createComponent(ArrowDown, {})];
|
|
10590
11278
|
}
|
|
10591
11279
|
}), createComponent(index$d.Item, {
|
|
10592
11280
|
onSelect: () => {
|
|
@@ -10597,7 +11285,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10597
11285
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
10598
11286
|
},
|
|
10599
11287
|
get children() {
|
|
10600
|
-
return [_tmpl$
|
|
11288
|
+
return [_tmpl$113(), createComponent(ArrowLeft, {})];
|
|
10601
11289
|
}
|
|
10602
11290
|
}), createComponent(index$d.Item, {
|
|
10603
11291
|
onSelect: () => {
|
|
@@ -10608,7 +11296,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10608
11296
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
|
|
10609
11297
|
},
|
|
10610
11298
|
get children() {
|
|
10611
|
-
return [_tmpl$
|
|
11299
|
+
return [_tmpl$122(), createComponent(ArrowRight, {})];
|
|
10612
11300
|
}
|
|
10613
11301
|
})];
|
|
10614
11302
|
}
|
|
@@ -10626,9 +11314,10 @@ var DevtoolsPanel = (props) => {
|
|
|
10626
11314
|
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
10627
11315
|
},
|
|
10628
11316
|
get children() {
|
|
10629
|
-
return [_tmpl$
|
|
11317
|
+
return [_tmpl$132(), createComponent(ChevronDown, {})];
|
|
10630
11318
|
}
|
|
10631
11319
|
}), createComponent(index$d.Portal, {
|
|
11320
|
+
ref: (el) => setComputedVariables(el),
|
|
10632
11321
|
get children() {
|
|
10633
11322
|
return createComponent(index$d.SubContent, {
|
|
10634
11323
|
get ["class"]() {
|
|
@@ -10644,7 +11333,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10644
11333
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "light" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
10645
11334
|
},
|
|
10646
11335
|
get children() {
|
|
10647
|
-
return [_tmpl$
|
|
11336
|
+
return [_tmpl$142(), createComponent(Sun, {})];
|
|
10648
11337
|
}
|
|
10649
11338
|
}), createComponent(index$d.Item, {
|
|
10650
11339
|
onSelect: () => {
|
|
@@ -10655,7 +11344,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10655
11344
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "dark" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
10656
11345
|
},
|
|
10657
11346
|
get children() {
|
|
10658
|
-
return [_tmpl$
|
|
11347
|
+
return [_tmpl$152(), createComponent(Moon, {})];
|
|
10659
11348
|
}
|
|
10660
11349
|
}), createComponent(index$d.Item, {
|
|
10661
11350
|
onSelect: () => {
|
|
@@ -10666,7 +11355,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10666
11355
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "system" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
10667
11356
|
},
|
|
10668
11357
|
get children() {
|
|
10669
|
-
return [_tmpl$
|
|
11358
|
+
return [_tmpl$162(), createComponent(Monitor, {})];
|
|
10670
11359
|
}
|
|
10671
11360
|
})];
|
|
10672
11361
|
}
|
|
@@ -10681,66 +11370,74 @@ var DevtoolsPanel = (props) => {
|
|
|
10681
11370
|
})];
|
|
10682
11371
|
}
|
|
10683
11372
|
}), null);
|
|
10684
|
-
insert(_el$
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
return queries();
|
|
11373
|
+
insert(_el$8, createComponent(Show, {
|
|
11374
|
+
get when() {
|
|
11375
|
+
return selectedView() === "queries";
|
|
10688
11376
|
},
|
|
10689
|
-
children
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
11377
|
+
get children() {
|
|
11378
|
+
const _el$38 = _tmpl$172(), _el$39 = _el$38.firstChild;
|
|
11379
|
+
insert(_el$39, createComponent(Key, {
|
|
11380
|
+
by: (q) => q.queryHash,
|
|
11381
|
+
get each() {
|
|
11382
|
+
return queries();
|
|
11383
|
+
},
|
|
11384
|
+
children: (query) => createComponent(QueryRow, {
|
|
11385
|
+
get query() {
|
|
11386
|
+
return query();
|
|
11387
|
+
}
|
|
11388
|
+
})
|
|
11389
|
+
}));
|
|
11390
|
+
createRenderEffect(() => className(_el$38, clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container")));
|
|
11391
|
+
return _el$38;
|
|
11392
|
+
}
|
|
11393
|
+
}), null);
|
|
11394
|
+
insert(_el$8, createComponent(Show, {
|
|
10696
11395
|
get when() {
|
|
10697
|
-
return
|
|
11396
|
+
return selectedView() === "mutations";
|
|
10698
11397
|
},
|
|
10699
11398
|
get children() {
|
|
10700
|
-
|
|
11399
|
+
const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild;
|
|
11400
|
+
insert(_el$41, createComponent(Key, {
|
|
11401
|
+
by: (m) => m.mutationId,
|
|
11402
|
+
get each() {
|
|
11403
|
+
return mutations();
|
|
11404
|
+
},
|
|
11405
|
+
children: (mutation) => createComponent(MutationRow, {
|
|
11406
|
+
get mutation() {
|
|
11407
|
+
return mutation();
|
|
11408
|
+
}
|
|
11409
|
+
})
|
|
11410
|
+
}));
|
|
11411
|
+
createRenderEffect(() => className(_el$40, clsx(styles().overflowQueryContainer, "tsqd-mutations-overflow-container")));
|
|
11412
|
+
return _el$40;
|
|
10701
11413
|
}
|
|
10702
11414
|
}), null);
|
|
10703
11415
|
createRenderEffect((_p$) => {
|
|
10704
|
-
const _v$ = clsx(styles().
|
|
10705
|
-
[u`
|
|
10706
|
-
min-width: min-content;
|
|
10707
|
-
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
10708
|
-
}, "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`
|
|
11416
|
+
const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && u`
|
|
10709
11417
|
height: 50%;
|
|
10710
11418
|
max-height: 50%;
|
|
10711
|
-
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = clsx(styles().logo, "tsqd-text-logo-container"), _v$
|
|
10712
|
-
gap: ${tokens.size[2.5]};
|
|
10713
|
-
`, "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");
|
|
10714
|
-
_v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
|
|
10715
|
-
_v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
|
|
10716
|
-
_v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
|
|
10717
|
-
_v$4 !== _p$._v$4 && className(_el$6, _p$._v$4 = _v$4);
|
|
10718
|
-
_v$5 !== _p$._v$5 && className(_el$7, _p$._v$5 = _v$5);
|
|
11419
|
+
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = styles().logoAndToggleContainer, _v$9 = clsx(styles().logo, "tsqd-text-logo-container"), _v$10 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$11 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$12 = clsx(styles().row, "tsqd-filters-actions-container"), _v$13 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$14 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$15 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$16 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$17 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$18 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$19 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$20 = `Clear ${selectedView()} cache`, _v$21 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = offline(), _v$24 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
|
|
10719
11420
|
_v$6 !== _p$._v$6 && className(_el$8, _p$._v$6 = _v$6);
|
|
10720
11421
|
_v$7 !== _p$._v$7 && className(_el$9, _p$._v$7 = _v$7);
|
|
10721
11422
|
_v$8 !== _p$._v$8 && className(_el$10, _p$._v$8 = _v$8);
|
|
10722
11423
|
_v$9 !== _p$._v$9 && className(_el$11, _p$._v$9 = _v$9);
|
|
10723
11424
|
_v$10 !== _p$._v$10 && className(_el$12, _p$._v$10 = _v$10);
|
|
10724
|
-
_v$11 !== _p$._v$11 && className(_el$
|
|
11425
|
+
_v$11 !== _p$._v$11 && className(_el$13, _p$._v$11 = _v$11);
|
|
10725
11426
|
_v$12 !== _p$._v$12 && className(_el$15, _p$._v$12 = _v$12);
|
|
10726
11427
|
_v$13 !== _p$._v$13 && className(_el$16, _p$._v$13 = _v$13);
|
|
10727
|
-
_v$14 !== _p$._v$14 && className(_el$
|
|
10728
|
-
_v$15 !== _p$._v$15 &&
|
|
10729
|
-
_v$16 !== _p$._v$16 && setAttribute(_el$
|
|
10730
|
-
_v$17 !== _p$._v$17 &&
|
|
10731
|
-
_v$18 !== _p$._v$18 && className(_el$
|
|
10732
|
-
_v$19 !== _p$._v$19 && className(_el$
|
|
10733
|
-
_v$20 !== _p$._v$20 && setAttribute(_el$
|
|
10734
|
-
_v$21 !== _p$._v$21 &&
|
|
10735
|
-
_v$22 !== _p$._v$22 && setAttribute(_el$
|
|
10736
|
-
_v$23 !== _p$._v$23 &&
|
|
11428
|
+
_v$14 !== _p$._v$14 && className(_el$17, _p$._v$14 = _v$14);
|
|
11429
|
+
_v$15 !== _p$._v$15 && className(_el$19, _p$._v$15 = _v$15);
|
|
11430
|
+
_v$16 !== _p$._v$16 && setAttribute(_el$22, "aria-label", _p$._v$16 = _v$16);
|
|
11431
|
+
_v$17 !== _p$._v$17 && setAttribute(_el$22, "aria-pressed", _p$._v$17 = _v$17);
|
|
11432
|
+
_v$18 !== _p$._v$18 && className(_el$25, _p$._v$18 = _v$18);
|
|
11433
|
+
_v$19 !== _p$._v$19 && className(_el$26, _p$._v$19 = _v$19);
|
|
11434
|
+
_v$20 !== _p$._v$20 && setAttribute(_el$26, "title", _p$._v$20 = _v$20);
|
|
11435
|
+
_v$21 !== _p$._v$21 && className(_el$27, _p$._v$21 = _v$21);
|
|
11436
|
+
_v$22 !== _p$._v$22 && setAttribute(_el$27, "aria-label", _p$._v$22 = _v$22);
|
|
11437
|
+
_v$23 !== _p$._v$23 && setAttribute(_el$27, "aria-pressed", _p$._v$23 = _v$23);
|
|
11438
|
+
_v$24 !== _p$._v$24 && setAttribute(_el$27, "title", _p$._v$24 = _v$24);
|
|
10737
11439
|
return _p$;
|
|
10738
11440
|
}, {
|
|
10739
|
-
_v$: void 0,
|
|
10740
|
-
_v$2: void 0,
|
|
10741
|
-
_v$3: void 0,
|
|
10742
|
-
_v$4: void 0,
|
|
10743
|
-
_v$5: void 0,
|
|
10744
11441
|
_v$6: void 0,
|
|
10745
11442
|
_v$7: void 0,
|
|
10746
11443
|
_v$8: void 0,
|
|
@@ -10758,12 +11455,26 @@ var DevtoolsPanel = (props) => {
|
|
|
10758
11455
|
_v$20: void 0,
|
|
10759
11456
|
_v$21: void 0,
|
|
10760
11457
|
_v$22: void 0,
|
|
10761
|
-
_v$23: void 0
|
|
11458
|
+
_v$23: void 0,
|
|
11459
|
+
_v$24: void 0
|
|
10762
11460
|
});
|
|
10763
|
-
createRenderEffect(() => _el$
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
11461
|
+
createRenderEffect(() => _el$18.value = selectedView() === "queries" ? props.localStore.filter || "" : props.localStore.mutationFilter || "");
|
|
11462
|
+
return _el$8;
|
|
11463
|
+
})(), createComponent(Show, {
|
|
11464
|
+
get when() {
|
|
11465
|
+
return createMemo(() => selectedView() === "queries")() && selectedQueryHash();
|
|
11466
|
+
},
|
|
11467
|
+
get children() {
|
|
11468
|
+
return createComponent(QueryDetails, {});
|
|
11469
|
+
}
|
|
11470
|
+
}), createComponent(Show, {
|
|
11471
|
+
get when() {
|
|
11472
|
+
return createMemo(() => selectedView() === "mutations")() && selectedMutationId();
|
|
11473
|
+
},
|
|
11474
|
+
get children() {
|
|
11475
|
+
return createComponent(MutationDetails, {});
|
|
11476
|
+
}
|
|
11477
|
+
})];
|
|
10767
11478
|
};
|
|
10768
11479
|
var QueryRow = (props) => {
|
|
10769
11480
|
const theme = useTheme();
|
|
@@ -10809,30 +11520,140 @@ var QueryRow = (props) => {
|
|
|
10809
11520
|
return queryState();
|
|
10810
11521
|
},
|
|
10811
11522
|
get children() {
|
|
10812
|
-
const _el$
|
|
10813
|
-
_el$
|
|
10814
|
-
insert(_el$
|
|
10815
|
-
insert(_el$
|
|
10816
|
-
insert(_el$
|
|
11523
|
+
const _el$46 = _tmpl$222(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling;
|
|
11524
|
+
_el$46.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
|
|
11525
|
+
insert(_el$47, observers);
|
|
11526
|
+
insert(_el$48, () => props.query.queryHash);
|
|
11527
|
+
insert(_el$46, createComponent(Show, {
|
|
10817
11528
|
get when() {
|
|
10818
11529
|
return isDisabled();
|
|
10819
11530
|
},
|
|
10820
11531
|
get children() {
|
|
10821
|
-
return _tmpl$
|
|
11532
|
+
return _tmpl$212();
|
|
10822
11533
|
}
|
|
10823
11534
|
}), null);
|
|
10824
11535
|
createRenderEffect((_p$) => {
|
|
10825
|
-
const _v$
|
|
10826
|
-
_v$
|
|
10827
|
-
_v$
|
|
10828
|
-
_v$
|
|
11536
|
+
const _v$25 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$26 = `Query key ${props.query.queryHash}`, _v$27 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
|
|
11537
|
+
_v$25 !== _p$._v$25 && className(_el$46, _p$._v$25 = _v$25);
|
|
11538
|
+
_v$26 !== _p$._v$26 && setAttribute(_el$46, "aria-label", _p$._v$26 = _v$26);
|
|
11539
|
+
_v$27 !== _p$._v$27 && className(_el$47, _p$._v$27 = _v$27);
|
|
10829
11540
|
return _p$;
|
|
10830
11541
|
}, {
|
|
10831
|
-
_v$24: void 0,
|
|
10832
11542
|
_v$25: void 0,
|
|
10833
|
-
_v$26: void 0
|
|
11543
|
+
_v$26: void 0,
|
|
11544
|
+
_v$27: void 0
|
|
10834
11545
|
});
|
|
10835
|
-
return _el$
|
|
11546
|
+
return _el$46;
|
|
11547
|
+
}
|
|
11548
|
+
});
|
|
11549
|
+
};
|
|
11550
|
+
var MutationRow = (props) => {
|
|
11551
|
+
const theme = useTheme();
|
|
11552
|
+
const styles = createMemo(() => {
|
|
11553
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11554
|
+
});
|
|
11555
|
+
const {
|
|
11556
|
+
colors,
|
|
11557
|
+
alpha
|
|
11558
|
+
} = tokens;
|
|
11559
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
11560
|
+
const mutationState = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
11561
|
+
const mutations = mutationCache().getAll();
|
|
11562
|
+
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
11563
|
+
return mutation?.state;
|
|
11564
|
+
});
|
|
11565
|
+
const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
11566
|
+
const mutations = mutationCache().getAll();
|
|
11567
|
+
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
11568
|
+
if (!mutation)
|
|
11569
|
+
return false;
|
|
11570
|
+
return mutation.state.isPaused;
|
|
11571
|
+
});
|
|
11572
|
+
const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
11573
|
+
const mutations = mutationCache().getAll();
|
|
11574
|
+
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
11575
|
+
if (!mutation)
|
|
11576
|
+
return "idle";
|
|
11577
|
+
return mutation.state.status;
|
|
11578
|
+
});
|
|
11579
|
+
const color = createMemo(() => getMutationStatusColor({
|
|
11580
|
+
isPaused: isPaused(),
|
|
11581
|
+
status: status()
|
|
11582
|
+
}));
|
|
11583
|
+
const getObserverCountColorStyles = () => {
|
|
11584
|
+
if (color() === "gray") {
|
|
11585
|
+
return u`
|
|
11586
|
+
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
11587
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
11588
|
+
`;
|
|
11589
|
+
}
|
|
11590
|
+
return u`
|
|
11591
|
+
background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
|
|
11592
|
+
color: ${t2(colors[color()][800], colors[color()][300])};
|
|
11593
|
+
`;
|
|
11594
|
+
};
|
|
11595
|
+
return createComponent(Show, {
|
|
11596
|
+
get when() {
|
|
11597
|
+
return mutationState();
|
|
11598
|
+
},
|
|
11599
|
+
get children() {
|
|
11600
|
+
const _el$50 = _tmpl$222(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling;
|
|
11601
|
+
_el$50.$$click = () => {
|
|
11602
|
+
setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
|
|
11603
|
+
};
|
|
11604
|
+
insert(_el$51, createComponent(Show, {
|
|
11605
|
+
get when() {
|
|
11606
|
+
return color() === "purple";
|
|
11607
|
+
},
|
|
11608
|
+
get children() {
|
|
11609
|
+
return createComponent(PauseCircle, {});
|
|
11610
|
+
}
|
|
11611
|
+
}), null);
|
|
11612
|
+
insert(_el$51, createComponent(Show, {
|
|
11613
|
+
get when() {
|
|
11614
|
+
return color() === "green";
|
|
11615
|
+
},
|
|
11616
|
+
get children() {
|
|
11617
|
+
return createComponent(CheckCircle, {});
|
|
11618
|
+
}
|
|
11619
|
+
}), null);
|
|
11620
|
+
insert(_el$51, createComponent(Show, {
|
|
11621
|
+
get when() {
|
|
11622
|
+
return color() === "red";
|
|
11623
|
+
},
|
|
11624
|
+
get children() {
|
|
11625
|
+
return createComponent(XCircle, {});
|
|
11626
|
+
}
|
|
11627
|
+
}), null);
|
|
11628
|
+
insert(_el$51, createComponent(Show, {
|
|
11629
|
+
get when() {
|
|
11630
|
+
return color() === "yellow";
|
|
11631
|
+
},
|
|
11632
|
+
get children() {
|
|
11633
|
+
return createComponent(LoadingCircle, {});
|
|
11634
|
+
}
|
|
11635
|
+
}), null);
|
|
11636
|
+
insert(_el$52, createComponent(Show, {
|
|
11637
|
+
get when() {
|
|
11638
|
+
return props.mutation.options.mutationKey;
|
|
11639
|
+
},
|
|
11640
|
+
get children() {
|
|
11641
|
+
return [createMemo(() => JSON.stringify(props.mutation.options.mutationKey)), " -", " "];
|
|
11642
|
+
}
|
|
11643
|
+
}), null);
|
|
11644
|
+
insert(_el$52, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
|
|
11645
|
+
createRenderEffect((_p$) => {
|
|
11646
|
+
const _v$28 = clsx(styles().queryRow, selectedMutationId() === props.mutation.mutationId && styles().selectedQueryRow, "tsqd-query-row"), _v$29 = `Mutation submitted at ${new Date(props.mutation.state.submittedAt).toLocaleString()}`, _v$30 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
|
|
11647
|
+
_v$28 !== _p$._v$28 && className(_el$50, _p$._v$28 = _v$28);
|
|
11648
|
+
_v$29 !== _p$._v$29 && setAttribute(_el$50, "aria-label", _p$._v$29 = _v$29);
|
|
11649
|
+
_v$30 !== _p$._v$30 && className(_el$51, _p$._v$30 = _v$30);
|
|
11650
|
+
return _p$;
|
|
11651
|
+
}, {
|
|
11652
|
+
_v$28: void 0,
|
|
11653
|
+
_v$29: void 0,
|
|
11654
|
+
_v$30: void 0
|
|
11655
|
+
});
|
|
11656
|
+
return _el$50;
|
|
10836
11657
|
}
|
|
10837
11658
|
});
|
|
10838
11659
|
};
|
|
@@ -10847,44 +11668,99 @@ var QueryStatusCount = () => {
|
|
|
10847
11668
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10848
11669
|
});
|
|
10849
11670
|
return (() => {
|
|
10850
|
-
const _el$
|
|
10851
|
-
insert(_el$
|
|
11671
|
+
const _el$53 = _tmpl$25();
|
|
11672
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10852
11673
|
label: "Fresh",
|
|
10853
11674
|
color: "green",
|
|
10854
11675
|
get count() {
|
|
10855
11676
|
return fresh();
|
|
10856
11677
|
}
|
|
10857
11678
|
}), null);
|
|
10858
|
-
insert(_el$
|
|
11679
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10859
11680
|
label: "Fetching",
|
|
10860
11681
|
color: "blue",
|
|
10861
11682
|
get count() {
|
|
10862
11683
|
return fetching();
|
|
10863
11684
|
}
|
|
10864
11685
|
}), null);
|
|
10865
|
-
insert(_el$
|
|
11686
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10866
11687
|
label: "Paused",
|
|
10867
11688
|
color: "purple",
|
|
10868
11689
|
get count() {
|
|
10869
11690
|
return paused();
|
|
10870
11691
|
}
|
|
10871
11692
|
}), null);
|
|
10872
|
-
insert(_el$
|
|
11693
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10873
11694
|
label: "Stale",
|
|
10874
11695
|
color: "yellow",
|
|
10875
11696
|
get count() {
|
|
10876
11697
|
return stale();
|
|
10877
11698
|
}
|
|
10878
11699
|
}), null);
|
|
10879
|
-
insert(_el$
|
|
11700
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10880
11701
|
label: "Inactive",
|
|
10881
11702
|
color: "gray",
|
|
10882
11703
|
get count() {
|
|
10883
11704
|
return inactive();
|
|
10884
11705
|
}
|
|
10885
11706
|
}), null);
|
|
10886
|
-
createRenderEffect(() => className(_el$
|
|
10887
|
-
return _el$
|
|
11707
|
+
createRenderEffect(() => className(_el$53, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
11708
|
+
return _el$53;
|
|
11709
|
+
})();
|
|
11710
|
+
};
|
|
11711
|
+
var MutationStatusCount = () => {
|
|
11712
|
+
const success = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
11713
|
+
isPaused: m.state.isPaused,
|
|
11714
|
+
status: m.state.status
|
|
11715
|
+
}) === "green").length);
|
|
11716
|
+
const pending = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
11717
|
+
isPaused: m.state.isPaused,
|
|
11718
|
+
status: m.state.status
|
|
11719
|
+
}) === "yellow").length);
|
|
11720
|
+
const paused = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
11721
|
+
isPaused: m.state.isPaused,
|
|
11722
|
+
status: m.state.status
|
|
11723
|
+
}) === "purple").length);
|
|
11724
|
+
const error = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
11725
|
+
isPaused: m.state.isPaused,
|
|
11726
|
+
status: m.state.status
|
|
11727
|
+
}) === "red").length);
|
|
11728
|
+
const theme = useTheme();
|
|
11729
|
+
const styles = createMemo(() => {
|
|
11730
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11731
|
+
});
|
|
11732
|
+
return (() => {
|
|
11733
|
+
const _el$54 = _tmpl$25();
|
|
11734
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
11735
|
+
label: "Paused",
|
|
11736
|
+
color: "purple",
|
|
11737
|
+
get count() {
|
|
11738
|
+
return paused();
|
|
11739
|
+
}
|
|
11740
|
+
}), null);
|
|
11741
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
11742
|
+
label: "Pending",
|
|
11743
|
+
color: "yellow",
|
|
11744
|
+
get count() {
|
|
11745
|
+
return pending();
|
|
11746
|
+
}
|
|
11747
|
+
}), null);
|
|
11748
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
11749
|
+
label: "Success",
|
|
11750
|
+
color: "green",
|
|
11751
|
+
get count() {
|
|
11752
|
+
return success();
|
|
11753
|
+
}
|
|
11754
|
+
}), null);
|
|
11755
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
11756
|
+
label: "Error",
|
|
11757
|
+
color: "red",
|
|
11758
|
+
get count() {
|
|
11759
|
+
return error();
|
|
11760
|
+
}
|
|
11761
|
+
}), null);
|
|
11762
|
+
createRenderEffect(() => className(_el$54, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
11763
|
+
return _el$54;
|
|
10888
11764
|
})();
|
|
10889
11765
|
};
|
|
10890
11766
|
var QueryStatus = (props) => {
|
|
@@ -10912,17 +11788,17 @@ var QueryStatus = (props) => {
|
|
|
10912
11788
|
return true;
|
|
10913
11789
|
});
|
|
10914
11790
|
return (() => {
|
|
10915
|
-
const _el$
|
|
10916
|
-
const _ref$
|
|
10917
|
-
typeof _ref$
|
|
10918
|
-
_el$
|
|
11791
|
+
const _el$55 = _tmpl$252(), _el$57 = _el$55.firstChild, _el$59 = _el$57.nextSibling;
|
|
11792
|
+
const _ref$4 = tagRef;
|
|
11793
|
+
typeof _ref$4 === "function" ? use(_ref$4, _el$55) : tagRef = _el$55;
|
|
11794
|
+
_el$55.addEventListener("mouseleave", () => {
|
|
10919
11795
|
setMouseOver(false);
|
|
10920
11796
|
setFocused(false);
|
|
10921
11797
|
});
|
|
10922
|
-
_el$
|
|
10923
|
-
_el$
|
|
10924
|
-
_el$
|
|
10925
|
-
spread(_el$
|
|
11798
|
+
_el$55.addEventListener("mouseenter", () => setMouseOver(true));
|
|
11799
|
+
_el$55.addEventListener("blur", () => setFocused(false));
|
|
11800
|
+
_el$55.addEventListener("focus", () => setFocused(true));
|
|
11801
|
+
spread(_el$55, mergeProps({
|
|
10926
11802
|
get disabled() {
|
|
10927
11803
|
return showLabel();
|
|
10928
11804
|
},
|
|
@@ -10937,47 +11813,47 @@ var QueryStatus = (props) => {
|
|
|
10937
11813
|
}, () => mouseOver() || focused() ? {
|
|
10938
11814
|
"aria-describedby": "tsqd-status-tooltip"
|
|
10939
11815
|
} : {}), false, true);
|
|
10940
|
-
insert(_el$
|
|
11816
|
+
insert(_el$55, createComponent(Show, {
|
|
10941
11817
|
get when() {
|
|
10942
11818
|
return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
|
|
10943
11819
|
},
|
|
10944
11820
|
get children() {
|
|
10945
|
-
const _el$
|
|
10946
|
-
insert(_el$
|
|
10947
|
-
createRenderEffect(() => className(_el$
|
|
10948
|
-
return _el$
|
|
11821
|
+
const _el$56 = _tmpl$232();
|
|
11822
|
+
insert(_el$56, () => props.label);
|
|
11823
|
+
createRenderEffect(() => className(_el$56, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
|
|
11824
|
+
return _el$56;
|
|
10949
11825
|
}
|
|
10950
|
-
}), _el$
|
|
10951
|
-
insert(_el$
|
|
11826
|
+
}), _el$57);
|
|
11827
|
+
insert(_el$55, createComponent(Show, {
|
|
10952
11828
|
get when() {
|
|
10953
11829
|
return showLabel();
|
|
10954
11830
|
},
|
|
10955
11831
|
get children() {
|
|
10956
|
-
const _el$
|
|
10957
|
-
insert(_el$
|
|
10958
|
-
createRenderEffect(() => className(_el$
|
|
10959
|
-
return _el$
|
|
11832
|
+
const _el$58 = _tmpl$242();
|
|
11833
|
+
insert(_el$58, () => props.label);
|
|
11834
|
+
createRenderEffect(() => className(_el$58, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
|
|
11835
|
+
return _el$58;
|
|
10960
11836
|
}
|
|
10961
|
-
}), _el$
|
|
10962
|
-
insert(_el$
|
|
11837
|
+
}), _el$59);
|
|
11838
|
+
insert(_el$59, () => props.count);
|
|
10963
11839
|
createRenderEffect((_p$) => {
|
|
10964
|
-
const _v$
|
|
11840
|
+
const _v$31 = clsx(u`
|
|
10965
11841
|
width: ${tokens.size[1.5]};
|
|
10966
11842
|
height: ${tokens.size[1.5]};
|
|
10967
11843
|
border-radius: ${tokens.border.radius.full};
|
|
10968
11844
|
background-color: ${tokens.colors[props.color][500]};
|
|
10969
|
-
`, "tsqd-query-status-tag-dot"), _v$
|
|
11845
|
+
`, "tsqd-query-status-tag-dot"), _v$32 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
|
|
10970
11846
|
background-color: ${t2(colors[props.color][100], colors[props.color][900])};
|
|
10971
11847
|
color: ${t2(colors[props.color][700], colors[props.color][300])};
|
|
10972
11848
|
`, "tsqd-query-status-tag-count");
|
|
10973
|
-
_v$
|
|
10974
|
-
_v$
|
|
11849
|
+
_v$31 !== _p$._v$31 && className(_el$57, _p$._v$31 = _v$31);
|
|
11850
|
+
_v$32 !== _p$._v$32 && className(_el$59, _p$._v$32 = _v$32);
|
|
10975
11851
|
return _p$;
|
|
10976
11852
|
}, {
|
|
10977
|
-
_v$
|
|
10978
|
-
_v$
|
|
11853
|
+
_v$31: void 0,
|
|
11854
|
+
_v$32: void 0
|
|
10979
11855
|
});
|
|
10980
|
-
return _el$
|
|
11856
|
+
return _el$55;
|
|
10981
11857
|
})();
|
|
10982
11858
|
};
|
|
10983
11859
|
var QueryDetails = () => {
|
|
@@ -11064,19 +11940,19 @@ var QueryDetails = () => {
|
|
|
11064
11940
|
return createMemo(() => !!activeQuery())() && activeQueryState();
|
|
11065
11941
|
},
|
|
11066
11942
|
get children() {
|
|
11067
|
-
const _el$
|
|
11068
|
-
insert(_el$
|
|
11069
|
-
insert(_el$
|
|
11070
|
-
insert(_el$
|
|
11071
|
-
insert(_el$
|
|
11072
|
-
_el$
|
|
11073
|
-
_el$
|
|
11074
|
-
_el$
|
|
11075
|
-
_el$
|
|
11943
|
+
const _el$60 = _tmpl$28(), _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$62.firstChild, _el$64 = _el$63.firstChild, _el$65 = _el$64.firstChild, _el$66 = _el$64.nextSibling, _el$67 = _el$63.nextSibling, _el$68 = _el$67.firstChild, _el$69 = _el$68.nextSibling, _el$70 = _el$67.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$71.nextSibling, _el$73 = _el$62.nextSibling, _el$74 = _el$73.nextSibling, _el$75 = _el$74.firstChild, _el$76 = _el$75.firstChild, _el$77 = _el$75.nextSibling, _el$78 = _el$77.firstChild, _el$79 = _el$77.nextSibling, _el$80 = _el$79.firstChild, _el$81 = _el$79.nextSibling, _el$82 = _el$81.firstChild, _el$83 = _el$81.nextSibling, _el$84 = _el$83.firstChild, _el$85 = _el$84.nextSibling, _el$94 = _el$74.nextSibling, _el$95 = _el$94.nextSibling, _el$96 = _el$95.nextSibling, _el$97 = _el$96.nextSibling;
|
|
11944
|
+
insert(_el$65, () => displayValue(activeQuery().queryKey, true));
|
|
11945
|
+
insert(_el$66, statusLabel);
|
|
11946
|
+
insert(_el$69, observerCount);
|
|
11947
|
+
insert(_el$72, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
|
|
11948
|
+
_el$75.$$click = handleRefetch;
|
|
11949
|
+
_el$77.$$click = () => queryClient.invalidateQueries(activeQuery());
|
|
11950
|
+
_el$79.$$click = () => queryClient.resetQueries(activeQuery());
|
|
11951
|
+
_el$81.$$click = () => {
|
|
11076
11952
|
queryClient.removeQueries(activeQuery());
|
|
11077
11953
|
setSelectedQueryHash(null);
|
|
11078
11954
|
};
|
|
11079
|
-
_el$
|
|
11955
|
+
_el$83.$$click = () => {
|
|
11080
11956
|
if (activeQuery()?.state.data === void 0) {
|
|
11081
11957
|
setRestoringLoading(true);
|
|
11082
11958
|
restoreQueryAfterLoadingOrError();
|
|
@@ -11104,79 +11980,78 @@ var QueryDetails = () => {
|
|
|
11104
11980
|
});
|
|
11105
11981
|
}
|
|
11106
11982
|
};
|
|
11107
|
-
insert(_el$
|
|
11108
|
-
insert(_el$
|
|
11983
|
+
insert(_el$83, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$85);
|
|
11984
|
+
insert(_el$74, createComponent(Show, {
|
|
11109
11985
|
get when() {
|
|
11110
11986
|
return errorTypes().length === 0 || queryStatus() === "error";
|
|
11111
11987
|
},
|
|
11112
11988
|
get children() {
|
|
11113
|
-
const _el$
|
|
11114
|
-
_el$
|
|
11989
|
+
const _el$86 = _tmpl$26(), _el$87 = _el$86.firstChild, _el$88 = _el$87.nextSibling;
|
|
11990
|
+
_el$86.$$click = () => {
|
|
11115
11991
|
if (!activeQuery().state.error) {
|
|
11116
11992
|
triggerError();
|
|
11117
11993
|
} else {
|
|
11118
11994
|
queryClient.resetQueries(activeQuery());
|
|
11119
11995
|
}
|
|
11120
11996
|
};
|
|
11121
|
-
insert(_el$
|
|
11997
|
+
insert(_el$86, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$88);
|
|
11122
11998
|
createRenderEffect((_p$) => {
|
|
11123
|
-
const _v$
|
|
11999
|
+
const _v$33 = clsx(u`
|
|
11124
12000
|
color: ${t2(colors.red[500], colors.red[400])};
|
|
11125
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$
|
|
12001
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$34 = queryStatus() === "pending", _v$35 = u`
|
|
11126
12002
|
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
11127
12003
|
`;
|
|
11128
|
-
_v$
|
|
11129
|
-
_v$
|
|
11130
|
-
_v$
|
|
12004
|
+
_v$33 !== _p$._v$33 && className(_el$86, _p$._v$33 = _v$33);
|
|
12005
|
+
_v$34 !== _p$._v$34 && (_el$86.disabled = _p$._v$34 = _v$34);
|
|
12006
|
+
_v$35 !== _p$._v$35 && className(_el$87, _p$._v$35 = _v$35);
|
|
11131
12007
|
return _p$;
|
|
11132
12008
|
}, {
|
|
11133
|
-
_v$
|
|
11134
|
-
_v$
|
|
11135
|
-
_v$
|
|
12009
|
+
_v$33: void 0,
|
|
12010
|
+
_v$34: void 0,
|
|
12011
|
+
_v$35: void 0
|
|
11136
12012
|
});
|
|
11137
|
-
return _el$
|
|
12013
|
+
return _el$86;
|
|
11138
12014
|
}
|
|
11139
12015
|
}), null);
|
|
11140
|
-
insert(_el$
|
|
12016
|
+
insert(_el$74, createComponent(Show, {
|
|
11141
12017
|
get when() {
|
|
11142
12018
|
return !(errorTypes().length === 0 || queryStatus() === "error");
|
|
11143
12019
|
},
|
|
11144
12020
|
get children() {
|
|
11145
|
-
const _el$
|
|
11146
|
-
_el$
|
|
12021
|
+
const _el$89 = _tmpl$27(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling, _el$92 = _el$91.nextSibling; _el$92.firstChild;
|
|
12022
|
+
_el$92.addEventListener("change", (e2) => {
|
|
11147
12023
|
const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
|
|
11148
12024
|
triggerError(errorType);
|
|
11149
12025
|
});
|
|
11150
|
-
insert(_el$
|
|
12026
|
+
insert(_el$92, createComponent(For, {
|
|
11151
12027
|
get each() {
|
|
11152
12028
|
return errorTypes();
|
|
11153
12029
|
},
|
|
11154
12030
|
children: (errorType) => (() => {
|
|
11155
|
-
const _el$
|
|
11156
|
-
insert(_el$
|
|
11157
|
-
createRenderEffect(() => _el$
|
|
11158
|
-
return _el$
|
|
12031
|
+
const _el$98 = _tmpl$29();
|
|
12032
|
+
insert(_el$98, () => errorType.name);
|
|
12033
|
+
createRenderEffect(() => _el$98.value = errorType.name);
|
|
12034
|
+
return _el$98;
|
|
11159
12035
|
})()
|
|
11160
12036
|
}), null);
|
|
11161
|
-
insert(_el$
|
|
12037
|
+
insert(_el$89, createComponent(ChevronDown, {}), null);
|
|
11162
12038
|
createRenderEffect((_p$) => {
|
|
11163
|
-
const _v$
|
|
12039
|
+
const _v$36 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$37 = u`
|
|
11164
12040
|
background-color: ${tokens.colors.red[400]};
|
|
11165
|
-
`, _v$
|
|
11166
|
-
_v$
|
|
11167
|
-
_v$
|
|
11168
|
-
_v$
|
|
12041
|
+
`, _v$38 = queryStatus() === "pending";
|
|
12042
|
+
_v$36 !== _p$._v$36 && className(_el$89, _p$._v$36 = _v$36);
|
|
12043
|
+
_v$37 !== _p$._v$37 && className(_el$90, _p$._v$37 = _v$37);
|
|
12044
|
+
_v$38 !== _p$._v$38 && (_el$92.disabled = _p$._v$38 = _v$38);
|
|
11169
12045
|
return _p$;
|
|
11170
12046
|
}, {
|
|
11171
|
-
_v$
|
|
11172
|
-
_v$
|
|
11173
|
-
_v$
|
|
12047
|
+
_v$36: void 0,
|
|
12048
|
+
_v$37: void 0,
|
|
12049
|
+
_v$38: void 0
|
|
11174
12050
|
});
|
|
11175
|
-
return _el$
|
|
12051
|
+
return _el$89;
|
|
11176
12052
|
}
|
|
11177
12053
|
}), null);
|
|
11178
|
-
_el$
|
|
11179
|
-
insert(_el$85, createComponent(Explorer, {
|
|
12054
|
+
insert(_el$95, createComponent(Explorer, {
|
|
11180
12055
|
label: "Data",
|
|
11181
12056
|
defaultExpanded: ["Data"],
|
|
11182
12057
|
get value() {
|
|
@@ -11187,8 +12062,7 @@ var QueryDetails = () => {
|
|
|
11187
12062
|
return activeQuery();
|
|
11188
12063
|
}
|
|
11189
12064
|
}));
|
|
11190
|
-
_el$
|
|
11191
|
-
insert(_el$87, createComponent(Explorer, {
|
|
12065
|
+
insert(_el$97, createComponent(Explorer, {
|
|
11192
12066
|
label: "Query",
|
|
11193
12067
|
defaultExpanded: ["Query", "queryKey"],
|
|
11194
12068
|
get value() {
|
|
@@ -11196,56 +12070,54 @@ var QueryDetails = () => {
|
|
|
11196
12070
|
}
|
|
11197
12071
|
}));
|
|
11198
12072
|
createRenderEffect((_p$) => {
|
|
11199
|
-
const _v$
|
|
12073
|
+
const _v$39 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$40 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$41 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$42 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$43 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$44 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$45 = clsx(u`
|
|
11200
12074
|
color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11201
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$
|
|
12075
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$46 = statusLabel() === "fetching", _v$47 = u`
|
|
11202
12076
|
background-color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11203
|
-
`, _v$
|
|
12077
|
+
`, _v$48 = clsx(u`
|
|
11204
12078
|
color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11205
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$
|
|
12079
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$49 = queryStatus() === "pending", _v$50 = u`
|
|
11206
12080
|
background-color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11207
|
-
`, _v$
|
|
12081
|
+
`, _v$51 = clsx(u`
|
|
11208
12082
|
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
11209
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$
|
|
12083
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$52 = queryStatus() === "pending", _v$53 = u`
|
|
11210
12084
|
background-color: ${t2(colors.gray[600], colors.gray[400])};
|
|
11211
|
-
`, _v$
|
|
12085
|
+
`, _v$54 = clsx(u`
|
|
11212
12086
|
color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11213
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$
|
|
12087
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$55 = statusLabel() === "fetching", _v$56 = u`
|
|
11214
12088
|
background-color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11215
|
-
`, _v$
|
|
12089
|
+
`, _v$57 = clsx(u`
|
|
11216
12090
|
color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11217
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$
|
|
12091
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$58 = restoringLoading(), _v$59 = u`
|
|
11218
12092
|
background-color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11219
|
-
`, _v$
|
|
11220
|
-
_v$
|
|
11221
|
-
_v$
|
|
11222
|
-
_v$
|
|
11223
|
-
_v$
|
|
11224
|
-
_v$
|
|
11225
|
-
_v$
|
|
11226
|
-
_v$
|
|
11227
|
-
_v$
|
|
11228
|
-
_v$
|
|
11229
|
-
_v$
|
|
11230
|
-
_v$
|
|
11231
|
-
_v$
|
|
11232
|
-
_v$
|
|
11233
|
-
_v$
|
|
11234
|
-
_v$
|
|
11235
|
-
_v$
|
|
11236
|
-
_v$
|
|
11237
|
-
_v$
|
|
11238
|
-
_v$
|
|
11239
|
-
_v$
|
|
11240
|
-
_v$
|
|
11241
|
-
_v$
|
|
11242
|
-
_v$
|
|
12093
|
+
`, _v$60 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$61 = tokens.size[2], _v$62 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$63 = tokens.size[2];
|
|
12094
|
+
_v$39 !== _p$._v$39 && className(_el$60, _p$._v$39 = _v$39);
|
|
12095
|
+
_v$40 !== _p$._v$40 && className(_el$61, _p$._v$40 = _v$40);
|
|
12096
|
+
_v$41 !== _p$._v$41 && className(_el$62, _p$._v$41 = _v$41);
|
|
12097
|
+
_v$42 !== _p$._v$42 && className(_el$66, _p$._v$42 = _v$42);
|
|
12098
|
+
_v$43 !== _p$._v$43 && className(_el$73, _p$._v$43 = _v$43);
|
|
12099
|
+
_v$44 !== _p$._v$44 && className(_el$74, _p$._v$44 = _v$44);
|
|
12100
|
+
_v$45 !== _p$._v$45 && className(_el$75, _p$._v$45 = _v$45);
|
|
12101
|
+
_v$46 !== _p$._v$46 && (_el$75.disabled = _p$._v$46 = _v$46);
|
|
12102
|
+
_v$47 !== _p$._v$47 && className(_el$76, _p$._v$47 = _v$47);
|
|
12103
|
+
_v$48 !== _p$._v$48 && className(_el$77, _p$._v$48 = _v$48);
|
|
12104
|
+
_v$49 !== _p$._v$49 && (_el$77.disabled = _p$._v$49 = _v$49);
|
|
12105
|
+
_v$50 !== _p$._v$50 && className(_el$78, _p$._v$50 = _v$50);
|
|
12106
|
+
_v$51 !== _p$._v$51 && className(_el$79, _p$._v$51 = _v$51);
|
|
12107
|
+
_v$52 !== _p$._v$52 && (_el$79.disabled = _p$._v$52 = _v$52);
|
|
12108
|
+
_v$53 !== _p$._v$53 && className(_el$80, _p$._v$53 = _v$53);
|
|
12109
|
+
_v$54 !== _p$._v$54 && className(_el$81, _p$._v$54 = _v$54);
|
|
12110
|
+
_v$55 !== _p$._v$55 && (_el$81.disabled = _p$._v$55 = _v$55);
|
|
12111
|
+
_v$56 !== _p$._v$56 && className(_el$82, _p$._v$56 = _v$56);
|
|
12112
|
+
_v$57 !== _p$._v$57 && className(_el$83, _p$._v$57 = _v$57);
|
|
12113
|
+
_v$58 !== _p$._v$58 && (_el$83.disabled = _p$._v$58 = _v$58);
|
|
12114
|
+
_v$59 !== _p$._v$59 && className(_el$84, _p$._v$59 = _v$59);
|
|
12115
|
+
_v$60 !== _p$._v$60 && className(_el$94, _p$._v$60 = _v$60);
|
|
12116
|
+
_v$61 !== _p$._v$61 && ((_p$._v$61 = _v$61) != null ? _el$95.style.setProperty("padding", _v$61) : _el$95.style.removeProperty("padding"));
|
|
12117
|
+
_v$62 !== _p$._v$62 && className(_el$96, _p$._v$62 = _v$62);
|
|
12118
|
+
_v$63 !== _p$._v$63 && ((_p$._v$63 = _v$63) != null ? _el$97.style.setProperty("padding", _v$63) : _el$97.style.removeProperty("padding"));
|
|
11243
12119
|
return _p$;
|
|
11244
12120
|
}, {
|
|
11245
|
-
_v$35: void 0,
|
|
11246
|
-
_v$36: void 0,
|
|
11247
|
-
_v$37: void 0,
|
|
11248
|
-
_v$38: void 0,
|
|
11249
12121
|
_v$39: void 0,
|
|
11250
12122
|
_v$40: void 0,
|
|
11251
12123
|
_v$41: void 0,
|
|
@@ -11264,27 +12136,166 @@ var QueryDetails = () => {
|
|
|
11264
12136
|
_v$54: void 0,
|
|
11265
12137
|
_v$55: void 0,
|
|
11266
12138
|
_v$56: void 0,
|
|
11267
|
-
_v$57: void 0
|
|
12139
|
+
_v$57: void 0,
|
|
12140
|
+
_v$58: void 0,
|
|
12141
|
+
_v$59: void 0,
|
|
12142
|
+
_v$60: void 0,
|
|
12143
|
+
_v$61: void 0,
|
|
12144
|
+
_v$62: void 0,
|
|
12145
|
+
_v$63: void 0
|
|
11268
12146
|
});
|
|
11269
|
-
return _el$
|
|
12147
|
+
return _el$60;
|
|
12148
|
+
}
|
|
12149
|
+
});
|
|
12150
|
+
};
|
|
12151
|
+
var MutationDetails = () => {
|
|
12152
|
+
const theme = useTheme();
|
|
12153
|
+
const styles = createMemo(() => {
|
|
12154
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
12155
|
+
});
|
|
12156
|
+
const {
|
|
12157
|
+
colors
|
|
12158
|
+
} = tokens;
|
|
12159
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
12160
|
+
const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
12161
|
+
const mutations = mutationCache().getAll();
|
|
12162
|
+
const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
|
|
12163
|
+
if (!mutation)
|
|
12164
|
+
return false;
|
|
12165
|
+
return mutation.state.isPaused;
|
|
12166
|
+
});
|
|
12167
|
+
const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
12168
|
+
const mutations = mutationCache().getAll();
|
|
12169
|
+
const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
|
|
12170
|
+
if (!mutation)
|
|
12171
|
+
return "idle";
|
|
12172
|
+
return mutation.state.status;
|
|
12173
|
+
});
|
|
12174
|
+
const color = createMemo(() => getMutationStatusColor({
|
|
12175
|
+
isPaused: isPaused(),
|
|
12176
|
+
status: status()
|
|
12177
|
+
}));
|
|
12178
|
+
const activeMutation = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().find((mutation) => mutation.mutationId === selectedMutationId()), false);
|
|
12179
|
+
const getQueryStatusColors = () => {
|
|
12180
|
+
if (color() === "gray") {
|
|
12181
|
+
return u`
|
|
12182
|
+
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
12183
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
12184
|
+
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
12185
|
+
`;
|
|
12186
|
+
}
|
|
12187
|
+
return u`
|
|
12188
|
+
background-color: ${t2(colors[color()][100], colors[color()][900])};
|
|
12189
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
12190
|
+
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
12191
|
+
`;
|
|
12192
|
+
};
|
|
12193
|
+
return createComponent(Show, {
|
|
12194
|
+
get when() {
|
|
12195
|
+
return activeMutation();
|
|
12196
|
+
},
|
|
12197
|
+
get children() {
|
|
12198
|
+
const _el$99 = _tmpl$30(), _el$100 = _el$99.firstChild, _el$101 = _el$100.nextSibling, _el$102 = _el$101.firstChild, _el$103 = _el$102.firstChild, _el$104 = _el$103.firstChild, _el$105 = _el$103.nextSibling, _el$106 = _el$102.nextSibling, _el$107 = _el$106.firstChild, _el$108 = _el$107.nextSibling, _el$109 = _el$101.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, _el$116 = _el$115.nextSibling;
|
|
12199
|
+
insert(_el$104, createComponent(Show, {
|
|
12200
|
+
get when() {
|
|
12201
|
+
return activeMutation().options.mutationKey;
|
|
12202
|
+
},
|
|
12203
|
+
fallback: "No mutationKey found",
|
|
12204
|
+
get children() {
|
|
12205
|
+
return displayValue(activeMutation().options.mutationKey, true);
|
|
12206
|
+
}
|
|
12207
|
+
}));
|
|
12208
|
+
insert(_el$105, createComponent(Show, {
|
|
12209
|
+
get when() {
|
|
12210
|
+
return color() === "purple";
|
|
12211
|
+
},
|
|
12212
|
+
children: "pending"
|
|
12213
|
+
}), null);
|
|
12214
|
+
insert(_el$105, createComponent(Show, {
|
|
12215
|
+
get when() {
|
|
12216
|
+
return color() !== "purple";
|
|
12217
|
+
},
|
|
12218
|
+
get children() {
|
|
12219
|
+
return status();
|
|
12220
|
+
}
|
|
12221
|
+
}), null);
|
|
12222
|
+
insert(_el$108, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
|
|
12223
|
+
insert(_el$110, createComponent(Explorer, {
|
|
12224
|
+
label: "Variables",
|
|
12225
|
+
defaultExpanded: ["Variables"],
|
|
12226
|
+
get value() {
|
|
12227
|
+
return activeMutation().state.variables;
|
|
12228
|
+
}
|
|
12229
|
+
}));
|
|
12230
|
+
insert(_el$112, createComponent(Explorer, {
|
|
12231
|
+
label: "Context",
|
|
12232
|
+
defaultExpanded: ["Context"],
|
|
12233
|
+
get value() {
|
|
12234
|
+
return activeMutation().state.context;
|
|
12235
|
+
}
|
|
12236
|
+
}));
|
|
12237
|
+
insert(_el$114, createComponent(Explorer, {
|
|
12238
|
+
label: "Data",
|
|
12239
|
+
defaultExpanded: ["Data"],
|
|
12240
|
+
get value() {
|
|
12241
|
+
return activeMutation().state.data;
|
|
12242
|
+
}
|
|
12243
|
+
}));
|
|
12244
|
+
insert(_el$116, createComponent(Explorer, {
|
|
12245
|
+
label: "Mutation",
|
|
12246
|
+
defaultExpanded: ["Mutation"],
|
|
12247
|
+
get value() {
|
|
12248
|
+
return activeMutation();
|
|
12249
|
+
}
|
|
12250
|
+
}));
|
|
12251
|
+
createRenderEffect((_p$) => {
|
|
12252
|
+
const _v$64 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$65 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$66 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$67 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$68 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$69 = tokens.size[2], _v$70 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$71 = tokens.size[2], _v$72 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$73 = tokens.size[2], _v$74 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$75 = tokens.size[2];
|
|
12253
|
+
_v$64 !== _p$._v$64 && className(_el$99, _p$._v$64 = _v$64);
|
|
12254
|
+
_v$65 !== _p$._v$65 && className(_el$100, _p$._v$65 = _v$65);
|
|
12255
|
+
_v$66 !== _p$._v$66 && className(_el$101, _p$._v$66 = _v$66);
|
|
12256
|
+
_v$67 !== _p$._v$67 && className(_el$105, _p$._v$67 = _v$67);
|
|
12257
|
+
_v$68 !== _p$._v$68 && className(_el$109, _p$._v$68 = _v$68);
|
|
12258
|
+
_v$69 !== _p$._v$69 && ((_p$._v$69 = _v$69) != null ? _el$110.style.setProperty("padding", _v$69) : _el$110.style.removeProperty("padding"));
|
|
12259
|
+
_v$70 !== _p$._v$70 && className(_el$111, _p$._v$70 = _v$70);
|
|
12260
|
+
_v$71 !== _p$._v$71 && ((_p$._v$71 = _v$71) != null ? _el$112.style.setProperty("padding", _v$71) : _el$112.style.removeProperty("padding"));
|
|
12261
|
+
_v$72 !== _p$._v$72 && className(_el$113, _p$._v$72 = _v$72);
|
|
12262
|
+
_v$73 !== _p$._v$73 && ((_p$._v$73 = _v$73) != null ? _el$114.style.setProperty("padding", _v$73) : _el$114.style.removeProperty("padding"));
|
|
12263
|
+
_v$74 !== _p$._v$74 && className(_el$115, _p$._v$74 = _v$74);
|
|
12264
|
+
_v$75 !== _p$._v$75 && ((_p$._v$75 = _v$75) != null ? _el$116.style.setProperty("padding", _v$75) : _el$116.style.removeProperty("padding"));
|
|
12265
|
+
return _p$;
|
|
12266
|
+
}, {
|
|
12267
|
+
_v$64: void 0,
|
|
12268
|
+
_v$65: void 0,
|
|
12269
|
+
_v$66: void 0,
|
|
12270
|
+
_v$67: void 0,
|
|
12271
|
+
_v$68: void 0,
|
|
12272
|
+
_v$69: void 0,
|
|
12273
|
+
_v$70: void 0,
|
|
12274
|
+
_v$71: void 0,
|
|
12275
|
+
_v$72: void 0,
|
|
12276
|
+
_v$73: void 0,
|
|
12277
|
+
_v$74: void 0,
|
|
12278
|
+
_v$75: void 0
|
|
12279
|
+
});
|
|
12280
|
+
return _el$99;
|
|
11270
12281
|
}
|
|
11271
12282
|
});
|
|
11272
12283
|
};
|
|
11273
|
-
var
|
|
12284
|
+
var queryCacheMap = /* @__PURE__ */ new Map();
|
|
11274
12285
|
var setupQueryCacheSubscription = () => {
|
|
11275
12286
|
const queryCache = createMemo(() => {
|
|
11276
12287
|
const client = useQueryDevtoolsContext().client;
|
|
11277
12288
|
return client.getQueryCache();
|
|
11278
12289
|
});
|
|
11279
12290
|
const unsub = queryCache().subscribe(() => {
|
|
11280
|
-
for (const [callback, setter] of
|
|
12291
|
+
for (const [callback, setter] of queryCacheMap.entries()) {
|
|
11281
12292
|
queueMicrotask(() => {
|
|
11282
12293
|
setter(callback(queryCache));
|
|
11283
12294
|
});
|
|
11284
12295
|
}
|
|
11285
12296
|
});
|
|
11286
12297
|
onCleanup(() => {
|
|
11287
|
-
|
|
12298
|
+
queryCacheMap.clear();
|
|
11288
12299
|
unsub();
|
|
11289
12300
|
});
|
|
11290
12301
|
return unsub;
|
|
@@ -11300,9 +12311,45 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
|
|
|
11300
12311
|
createEffect(() => {
|
|
11301
12312
|
setValue(callback(queryCache));
|
|
11302
12313
|
});
|
|
11303
|
-
|
|
12314
|
+
queryCacheMap.set(callback, setValue);
|
|
12315
|
+
onCleanup(() => {
|
|
12316
|
+
queryCacheMap.delete(callback);
|
|
12317
|
+
});
|
|
12318
|
+
return value;
|
|
12319
|
+
};
|
|
12320
|
+
var mutationCacheMap = /* @__PURE__ */ new Map();
|
|
12321
|
+
var setupMutationCacheSubscription = () => {
|
|
12322
|
+
const mutationCache = createMemo(() => {
|
|
12323
|
+
const client = useQueryDevtoolsContext().client;
|
|
12324
|
+
return client.getMutationCache();
|
|
12325
|
+
});
|
|
12326
|
+
const unsub = mutationCache().subscribe(() => {
|
|
12327
|
+
for (const [callback, setter] of mutationCacheMap.entries()) {
|
|
12328
|
+
queueMicrotask(() => {
|
|
12329
|
+
setter(callback(mutationCache));
|
|
12330
|
+
});
|
|
12331
|
+
}
|
|
12332
|
+
});
|
|
12333
|
+
onCleanup(() => {
|
|
12334
|
+
mutationCacheMap.clear();
|
|
12335
|
+
unsub();
|
|
12336
|
+
});
|
|
12337
|
+
return unsub;
|
|
12338
|
+
};
|
|
12339
|
+
var createSubscribeToMutationCacheBatcher = (callback, equalityCheck = true) => {
|
|
12340
|
+
const mutationCache = createMemo(() => {
|
|
12341
|
+
const client = useQueryDevtoolsContext().client;
|
|
12342
|
+
return client.getMutationCache();
|
|
12343
|
+
});
|
|
12344
|
+
const [value, setValue] = createSignal(callback(mutationCache), !equalityCheck ? {
|
|
12345
|
+
equals: false
|
|
12346
|
+
} : void 0);
|
|
12347
|
+
createEffect(() => {
|
|
12348
|
+
setValue(callback(mutationCache));
|
|
12349
|
+
});
|
|
12350
|
+
mutationCacheMap.set(callback, setValue);
|
|
11304
12351
|
onCleanup(() => {
|
|
11305
|
-
|
|
12352
|
+
mutationCacheMap.delete(callback);
|
|
11306
12353
|
});
|
|
11307
12354
|
return value;
|
|
11308
12355
|
};
|
|
@@ -11402,7 +12449,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11402
12449
|
right: 0;
|
|
11403
12450
|
left: 0;
|
|
11404
12451
|
max-height: 90%;
|
|
11405
|
-
min-height:
|
|
12452
|
+
min-height: ${size2[14]};
|
|
11406
12453
|
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11407
12454
|
`,
|
|
11408
12455
|
"panel-position-bottom": u`
|
|
@@ -11410,7 +12457,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11410
12457
|
right: 0;
|
|
11411
12458
|
left: 0;
|
|
11412
12459
|
max-height: 90%;
|
|
11413
|
-
min-height:
|
|
12460
|
+
min-height: ${size2[14]};
|
|
11414
12461
|
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11415
12462
|
`,
|
|
11416
12463
|
"panel-position-right": u`
|
|
@@ -11584,7 +12631,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11584
12631
|
justify-content: space-between;
|
|
11585
12632
|
align-items: center;
|
|
11586
12633
|
padding: ${tokens.size[2]} ${tokens.size[2.5]};
|
|
11587
|
-
gap: ${tokens.size[
|
|
12634
|
+
gap: ${tokens.size[2.5]};
|
|
11588
12635
|
border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
|
|
11589
12636
|
align-items: center;
|
|
11590
12637
|
& > button {
|
|
@@ -11596,8 +12643,19 @@ var stylesFactory2 = (theme) => {
|
|
|
11596
12643
|
flex-direction: column;
|
|
11597
12644
|
}
|
|
11598
12645
|
`,
|
|
12646
|
+
logoAndToggleContainer: u`
|
|
12647
|
+
display: flex;
|
|
12648
|
+
gap: ${tokens.size[3]};
|
|
12649
|
+
align-items: center;
|
|
12650
|
+
`,
|
|
11599
12651
|
logo: u`
|
|
11600
12652
|
cursor: pointer;
|
|
12653
|
+
display: flex;
|
|
12654
|
+
flex-direction: column;
|
|
12655
|
+
background-color: transparent;
|
|
12656
|
+
border: none;
|
|
12657
|
+
gap: ${tokens.size[0.5]};
|
|
12658
|
+
padding: 0px;
|
|
11601
12659
|
&:hover {
|
|
11602
12660
|
opacity: 0.7;
|
|
11603
12661
|
}
|
|
@@ -11731,6 +12789,8 @@ var stylesFactory2 = (theme) => {
|
|
|
11731
12789
|
outline: 2px solid ${colors.blue[800]};
|
|
11732
12790
|
}
|
|
11733
12791
|
& svg {
|
|
12792
|
+
width: ${tokens.size[3]};
|
|
12793
|
+
height: ${tokens.size[3]};
|
|
11734
12794
|
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
11735
12795
|
}
|
|
11736
12796
|
}
|
|
@@ -11816,8 +12876,8 @@ var stylesFactory2 = (theme) => {
|
|
|
11816
12876
|
border-radius: ${tokens.border.radius.sm};
|
|
11817
12877
|
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
11818
12878
|
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
11819
|
-
width:
|
|
11820
|
-
height:
|
|
12879
|
+
width: ${tokens.size[6.5]};
|
|
12880
|
+
height: ${tokens.size[6.5]};
|
|
11821
12881
|
justify-content: center;
|
|
11822
12882
|
display: flex;
|
|
11823
12883
|
align-items: center;
|
|
@@ -11969,6 +13029,8 @@ var stylesFactory2 = (theme) => {
|
|
|
11969
13029
|
|
|
11970
13030
|
& pre {
|
|
11971
13031
|
margin: 0;
|
|
13032
|
+
display: flex;
|
|
13033
|
+
align-items: center;
|
|
11972
13034
|
}
|
|
11973
13035
|
`,
|
|
11974
13036
|
queryDetailsStatus: u`
|
|
@@ -12148,6 +13210,56 @@ var stylesFactory2 = (theme) => {
|
|
|
12148
13210
|
&:hover {
|
|
12149
13211
|
background-color: ${t2(colors.purple[100], colors.purple[900])};
|
|
12150
13212
|
}
|
|
13213
|
+
`,
|
|
13214
|
+
viewToggle: u`
|
|
13215
|
+
border-radius: ${tokens.border.radius.sm};
|
|
13216
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[600])};
|
|
13217
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
13218
|
+
display: flex;
|
|
13219
|
+
padding: 0;
|
|
13220
|
+
font-size: ${font.size.xs};
|
|
13221
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
13222
|
+
overflow: hidden;
|
|
13223
|
+
|
|
13224
|
+
&:has(:focus-visible) {
|
|
13225
|
+
outline: 2px solid ${colors.blue[800]};
|
|
13226
|
+
}
|
|
13227
|
+
|
|
13228
|
+
& .tsqd-radio-toggle {
|
|
13229
|
+
opacity: 0.5;
|
|
13230
|
+
display: flex;
|
|
13231
|
+
& label {
|
|
13232
|
+
display: flex;
|
|
13233
|
+
align-items: center;
|
|
13234
|
+
cursor: pointer;
|
|
13235
|
+
line-height: ${font.lineHeight.md};
|
|
13236
|
+
}
|
|
13237
|
+
|
|
13238
|
+
& label:hover {
|
|
13239
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[500])};
|
|
13240
|
+
}
|
|
13241
|
+
}
|
|
13242
|
+
|
|
13243
|
+
& > [data-checked] {
|
|
13244
|
+
opacity: 1;
|
|
13245
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
13246
|
+
& label:hover {
|
|
13247
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
13248
|
+
}
|
|
13249
|
+
}
|
|
13250
|
+
|
|
13251
|
+
& .tsqd-radio-toggle:first-child {
|
|
13252
|
+
& label {
|
|
13253
|
+
padding: 0 ${tokens.size[1.5]} 0 ${tokens.size[2]};
|
|
13254
|
+
}
|
|
13255
|
+
border-right: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
13256
|
+
}
|
|
13257
|
+
|
|
13258
|
+
& .tsqd-radio-toggle:nth-child(2) {
|
|
13259
|
+
& label {
|
|
13260
|
+
padding: 0 ${tokens.size[2]} 0 ${tokens.size[1.5]};
|
|
13261
|
+
}
|
|
13262
|
+
}
|
|
12151
13263
|
`
|
|
12152
13264
|
};
|
|
12153
13265
|
};
|
|
@@ -12360,8 +13472,6 @@ delegateEvents(["click", "mousedown", "input"]);
|
|
|
12360
13472
|
* Credits to the zag team:
|
|
12361
13473
|
* https://github.com/chakra-ui/zag/blob/c1e6c7689b22bf58741ded7cf224dd9baec2a046/packages/utilities/form-utils/src/form.ts
|
|
12362
13474
|
*)
|
|
12363
|
-
|
|
12364
|
-
@kobalte/core/dist/esm/index.js:
|
|
12365
13475
|
(*!
|
|
12366
13476
|
* Portions of this file are based on code from react-spectrum.
|
|
12367
13477
|
* Apache License Version 2.0, Copyright 2020 Adobe.
|
|
@@ -12716,4 +13826,4 @@ delegateEvents(["click", "mousedown", "input"]);
|
|
|
12716
13826
|
*)
|
|
12717
13827
|
*/
|
|
12718
13828
|
|
|
12719
|
-
export { Devtools, DevtoolsComponent, DevtoolsPanel, QueryRow, QueryStatus, QueryStatusCount, Devtools_default as default };
|
|
13829
|
+
export { Devtools, DevtoolsComponent, DevtoolsPanel, MutationRow, MutationStatusCount, QueryRow, QueryStatus, QueryStatusCount, Devtools_default as default };
|