@tanstack/query-devtools 5.0.5 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Devtools/{B2H37NSB.js → BWLPXLBN.js} +1466 -390
- package/build/Devtools/{3Y5CBXUA.js → CRASJTHY.js} +1466 -390
- package/build/Devtools/{Y2E2LEWB.jsx → QHGCTHEZ.jsx} +1170 -142
- package/build/Devtools/{7SMWYMBY.jsx → QHLLQ2XL.jsx} +1170 -142
- package/build/chunk/{AHAJNSNO.jsx → JRAMSUCV.jsx} +5 -0
- package/build/dev.cjs +1478 -395
- package/build/dev.js +1 -1
- package/build/dev.jsx +2 -2
- package/build/index.cjs +1478 -395
- package/build/index.js +1 -1
- package/build/index.jsx +2 -2
- package/package.json +1 -1
- package/src/Devtools.tsx +773 -121
- package/src/icons/index.tsx +89 -0
- package/src/theme.ts +11 -11
- package/src/utils.tsx +46 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createContext, delegateEvents, createSignal, createMemo, createComponent, createEffect, insert, Show, createRenderEffect, className,
|
|
1
|
+
import { createContext, delegateEvents, createSignal, createMemo, createComponent, createEffect, insert, Show, createRenderEffect, className, onMount, on, setAttribute, spread, mergeProps, For, onCleanup, isServer, $PROXY, $TRACK, getListener, batch, createUniqueId, useContext, Index, template, use, 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",
|
|
@@ -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");
|
|
@@ -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({
|
|
@@ -10275,7 +10782,7 @@ var Devtools = (props) => {
|
|
|
10275
10782
|
root.style.setProperty("--tsqd-panel-width", `${panelPosition === "left" ? "-" : ""}${width}px`);
|
|
10276
10783
|
});
|
|
10277
10784
|
return (() => {
|
|
10278
|
-
const _el$ = _tmpl$
|
|
10785
|
+
const _el$ = _tmpl$25();
|
|
10279
10786
|
insert(_el$, createComponent(TransitionGroup, {
|
|
10280
10787
|
name: "tsqd-panel-transition",
|
|
10281
10788
|
get children() {
|
|
@@ -10304,7 +10811,7 @@ var Devtools = (props) => {
|
|
|
10304
10811
|
return !isOpen();
|
|
10305
10812
|
},
|
|
10306
10813
|
get children() {
|
|
10307
|
-
const _el$2 = _tmpl$
|
|
10814
|
+
const _el$2 = _tmpl$24(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
|
|
10308
10815
|
insert(_el$3, createComponent(TanstackLogo, {}));
|
|
10309
10816
|
_el$4.$$click = () => props.setLocalStore("open", "true");
|
|
10310
10817
|
insert(_el$4, createComponent(TanstackLogo, {}));
|
|
@@ -10344,24 +10851,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10344
10851
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10345
10852
|
});
|
|
10346
10853
|
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
10854
|
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
10855
|
const handleDragStart = (event) => {
|
|
10366
10856
|
const panelElement = event.currentTarget.parentElement;
|
|
10367
10857
|
if (!panelElement)
|
|
@@ -10409,8 +10899,6 @@ var DevtoolsPanel = (props) => {
|
|
|
10409
10899
|
document.addEventListener("mousemove", runDrag, false);
|
|
10410
10900
|
document.addEventListener("mouseup", unsub, false);
|
|
10411
10901
|
};
|
|
10412
|
-
setupQueryCacheSubscription();
|
|
10413
|
-
let queriesContainerRef;
|
|
10414
10902
|
let panelRef;
|
|
10415
10903
|
onMount(() => {
|
|
10416
10904
|
createResizeObserver(panelRef, ({
|
|
@@ -10421,9 +10909,6 @@ var DevtoolsPanel = (props) => {
|
|
|
10421
10909
|
}
|
|
10422
10910
|
});
|
|
10423
10911
|
});
|
|
10424
|
-
const setDevtoolsPosition = (pos) => {
|
|
10425
|
-
props.setLocalStore("position", pos);
|
|
10426
|
-
};
|
|
10427
10912
|
createEffect(() => {
|
|
10428
10913
|
const rootContainer = panelRef.parentElement?.parentElement?.parentElement;
|
|
10429
10914
|
if (!rootContainer)
|
|
@@ -10468,52 +10953,230 @@ var DevtoolsPanel = (props) => {
|
|
|
10468
10953
|
`;
|
|
10469
10954
|
};
|
|
10470
10955
|
return (() => {
|
|
10471
|
-
const _el$5 = _tmpl$
|
|
10956
|
+
const _el$5 = _tmpl$33(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
|
|
10472
10957
|
const _ref$ = panelRef;
|
|
10473
10958
|
typeof _ref$ === "function" ? use(_ref$, _el$5) : panelRef = _el$5;
|
|
10474
10959
|
_el$6.$$mousedown = handleDragStart;
|
|
10475
10960
|
_el$7.$$click = () => props.setLocalStore("open", "false");
|
|
10476
10961
|
insert(_el$7, createComponent(ChevronDown, {}));
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
|
|
10480
|
-
insert(_el$12, () => useQueryDevtoolsContext().queryFlavor, _el$13);
|
|
10481
|
-
insert(_el$12, () => useQueryDevtoolsContext().version, null);
|
|
10482
|
-
insert(_el$9, createComponent(QueryStatusCount, {}), null);
|
|
10483
|
-
insert(_el$16, createComponent(Search, {}), _el$17);
|
|
10484
|
-
_el$17.$$input = (e2) => props.setLocalStore("filter", e2.currentTarget.value);
|
|
10485
|
-
_el$19.addEventListener("change", (e2) => props.setLocalStore("sort", e2.currentTarget.value));
|
|
10486
|
-
insert(_el$19, () => Object.keys(sortFns).map((key) => (() => {
|
|
10487
|
-
const _el$38 = _tmpl$162(); _el$38.firstChild;
|
|
10488
|
-
_el$38.value = key;
|
|
10489
|
-
insert(_el$38, key, null);
|
|
10490
|
-
return _el$38;
|
|
10491
|
-
})()));
|
|
10492
|
-
insert(_el$18, createComponent(ChevronDown, {}), null);
|
|
10493
|
-
_el$20.$$click = () => {
|
|
10494
|
-
props.setLocalStore("sortOrder", String(sortOrder() * -1));
|
|
10495
|
-
};
|
|
10496
|
-
insert(_el$20, createComponent(Show, {
|
|
10497
|
-
get when() {
|
|
10498
|
-
return sortOrder() === 1;
|
|
10962
|
+
insert(_el$5, createComponent(ContentView, {
|
|
10963
|
+
get localStore() {
|
|
10964
|
+
return props.localStore;
|
|
10499
10965
|
},
|
|
10500
|
-
get
|
|
10501
|
-
return
|
|
10966
|
+
get setLocalStore() {
|
|
10967
|
+
return props.setLocalStore;
|
|
10502
10968
|
}
|
|
10503
10969
|
}), null);
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10970
|
+
createRenderEffect((_p$) => {
|
|
10971
|
+
const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
|
|
10972
|
+
[u`
|
|
10973
|
+
min-width: min-content;
|
|
10974
|
+
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
10975
|
+
}, "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");
|
|
10976
|
+
_v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
|
|
10977
|
+
_v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
|
|
10978
|
+
_v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
|
|
10979
|
+
_v$4 !== _p$._v$4 && className(_el$6, _p$._v$4 = _v$4);
|
|
10980
|
+
_v$5 !== _p$._v$5 && className(_el$7, _p$._v$5 = _v$5);
|
|
10981
|
+
return _p$;
|
|
10982
|
+
}, {
|
|
10983
|
+
_v$: void 0,
|
|
10984
|
+
_v$2: void 0,
|
|
10985
|
+
_v$3: void 0,
|
|
10986
|
+
_v$4: void 0,
|
|
10987
|
+
_v$5: void 0
|
|
10988
|
+
});
|
|
10989
|
+
return _el$5;
|
|
10990
|
+
})();
|
|
10991
|
+
};
|
|
10992
|
+
var ContentView = (props) => {
|
|
10993
|
+
setupQueryCacheSubscription();
|
|
10994
|
+
setupMutationCacheSubscription();
|
|
10995
|
+
const theme = useTheme();
|
|
10996
|
+
const styles = createMemo(() => {
|
|
10997
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10998
|
+
});
|
|
10999
|
+
const [selectedView, setSelectedView] = createSignal("queries");
|
|
11000
|
+
const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
|
|
11001
|
+
const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
|
|
11002
|
+
const mutationSort = createMemo(() => props.localStore.mutationSort || DEFAULT_MUTATION_SORT_FN_NAME);
|
|
11003
|
+
const mutationSortOrder = createMemo(() => Number(props.localStore.mutationSortOrder) || DEFAULT_SORT_ORDER);
|
|
11004
|
+
const [offline, setOffline] = createSignal(false);
|
|
11005
|
+
const sortFn = createMemo(() => sortFns[sort()]);
|
|
11006
|
+
const mutationSortFn = createMemo(() => mutationSortFns[mutationSort()]);
|
|
11007
|
+
const onlineManager = createMemo(() => useQueryDevtoolsContext().onlineManager);
|
|
11008
|
+
const query_cache = createMemo(() => {
|
|
11009
|
+
return useQueryDevtoolsContext().client.getQueryCache();
|
|
11010
|
+
});
|
|
11011
|
+
const mutation_cache = createMemo(() => {
|
|
11012
|
+
return useQueryDevtoolsContext().client.getMutationCache();
|
|
11013
|
+
});
|
|
11014
|
+
const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
|
|
11015
|
+
return queryCache().getAll().length;
|
|
11016
|
+
}, false);
|
|
11017
|
+
const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
|
|
11018
|
+
const curr = query_cache().getAll();
|
|
11019
|
+
const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
|
|
11020
|
+
const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
|
|
11021
|
+
return sorted;
|
|
11022
|
+
}));
|
|
11023
|
+
const mutationCount = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
11024
|
+
return mutationCache().getAll().length;
|
|
11025
|
+
}, false);
|
|
11026
|
+
const mutations = createMemo(on(() => [mutationCount(), props.localStore.mutationFilter, mutationSort(), mutationSortOrder()], () => {
|
|
11027
|
+
const curr = mutation_cache().getAll();
|
|
11028
|
+
const filtered = props.localStore.mutationFilter ? curr.filter((item) => {
|
|
11029
|
+
const value = `${item.options.mutationKey ? JSON.stringify(item.options.mutationKey) + " - " : ""}${new Date(item.state.submittedAt).toLocaleString()}`;
|
|
11030
|
+
return rankItem(value, props.localStore.mutationFilter || "").passed;
|
|
11031
|
+
}) : [...curr];
|
|
11032
|
+
const sorted = mutationSortFn() ? filtered.sort((a2, b2) => mutationSortFn()(a2, b2) * mutationSortOrder()) : filtered;
|
|
11033
|
+
return sorted;
|
|
11034
|
+
}));
|
|
11035
|
+
const setDevtoolsPosition = (pos) => {
|
|
11036
|
+
props.setLocalStore("position", pos);
|
|
11037
|
+
};
|
|
11038
|
+
return [(() => {
|
|
11039
|
+
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;
|
|
11040
|
+
_el$11.$$click = () => props.setLocalStore("open", "false");
|
|
11041
|
+
insert(_el$13, () => useQueryDevtoolsContext().queryFlavor, _el$14);
|
|
11042
|
+
insert(_el$13, () => useQueryDevtoolsContext().version, null);
|
|
11043
|
+
insert(_el$10, createComponent(index$7.Root, {
|
|
11044
|
+
get ["class"]() {
|
|
11045
|
+
return clsx(styles().viewToggle);
|
|
11046
|
+
},
|
|
11047
|
+
get value() {
|
|
11048
|
+
return selectedView();
|
|
11049
|
+
},
|
|
11050
|
+
onChange: (value) => {
|
|
11051
|
+
setSelectedView(value);
|
|
11052
|
+
setSelectedQueryHash(null);
|
|
11053
|
+
setSelectedMutationId(null);
|
|
11054
|
+
},
|
|
11055
|
+
get children() {
|
|
11056
|
+
return [createComponent(index$7.Item, {
|
|
11057
|
+
value: "queries",
|
|
11058
|
+
"class": "tsqd-radio-toggle",
|
|
11059
|
+
get children() {
|
|
11060
|
+
return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
|
|
11061
|
+
get children() {
|
|
11062
|
+
return createComponent(index$7.ItemIndicator, {});
|
|
11063
|
+
}
|
|
11064
|
+
}), createComponent(index$7.ItemLabel, {
|
|
11065
|
+
title: "Toggle Queries View",
|
|
11066
|
+
children: "Queries"
|
|
11067
|
+
})];
|
|
11068
|
+
}
|
|
11069
|
+
}), createComponent(index$7.Item, {
|
|
11070
|
+
value: "mutations",
|
|
11071
|
+
"class": "tsqd-radio-toggle",
|
|
11072
|
+
get children() {
|
|
11073
|
+
return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
|
|
11074
|
+
get children() {
|
|
11075
|
+
return createComponent(index$7.ItemIndicator, {});
|
|
11076
|
+
}
|
|
11077
|
+
}), createComponent(index$7.ItemLabel, {
|
|
11078
|
+
title: "Toggle Mutations View",
|
|
11079
|
+
children: "Mutations"
|
|
11080
|
+
})];
|
|
11081
|
+
}
|
|
11082
|
+
})];
|
|
11083
|
+
}
|
|
10511
11084
|
}), null);
|
|
10512
|
-
_el$
|
|
10513
|
-
|
|
11085
|
+
insert(_el$9, createComponent(Show, {
|
|
11086
|
+
get when() {
|
|
11087
|
+
return selectedView() === "queries";
|
|
11088
|
+
},
|
|
11089
|
+
get children() {
|
|
11090
|
+
return createComponent(QueryStatusCount, {});
|
|
11091
|
+
}
|
|
11092
|
+
}), null);
|
|
11093
|
+
insert(_el$9, createComponent(Show, {
|
|
11094
|
+
get when() {
|
|
11095
|
+
return selectedView() === "mutations";
|
|
11096
|
+
},
|
|
11097
|
+
get children() {
|
|
11098
|
+
return createComponent(MutationStatusCount, {});
|
|
11099
|
+
}
|
|
11100
|
+
}), null);
|
|
11101
|
+
insert(_el$17, createComponent(Search, {}), _el$18);
|
|
11102
|
+
_el$18.$$input = (e2) => {
|
|
11103
|
+
if (selectedView() === "queries") {
|
|
11104
|
+
props.setLocalStore("filter", e2.currentTarget.value);
|
|
11105
|
+
} else {
|
|
11106
|
+
props.setLocalStore("mutationFilter", e2.currentTarget.value);
|
|
11107
|
+
}
|
|
10514
11108
|
};
|
|
10515
|
-
insert(_el$
|
|
10516
|
-
|
|
11109
|
+
insert(_el$19, createComponent(Show, {
|
|
11110
|
+
get when() {
|
|
11111
|
+
return selectedView() === "queries";
|
|
11112
|
+
},
|
|
11113
|
+
get children() {
|
|
11114
|
+
const _el$20 = _tmpl$43();
|
|
11115
|
+
_el$20.addEventListener("change", (e2) => {
|
|
11116
|
+
props.setLocalStore("sort", e2.currentTarget.value);
|
|
11117
|
+
});
|
|
11118
|
+
insert(_el$20, () => Object.keys(sortFns).map((key) => (() => {
|
|
11119
|
+
const _el$42 = _tmpl$202(); _el$42.firstChild;
|
|
11120
|
+
_el$42.value = key;
|
|
11121
|
+
insert(_el$42, key, null);
|
|
11122
|
+
return _el$42;
|
|
11123
|
+
})()));
|
|
11124
|
+
createRenderEffect(() => _el$20.value = sort());
|
|
11125
|
+
return _el$20;
|
|
11126
|
+
}
|
|
11127
|
+
}), null);
|
|
11128
|
+
insert(_el$19, createComponent(Show, {
|
|
11129
|
+
get when() {
|
|
11130
|
+
return selectedView() === "mutations";
|
|
11131
|
+
},
|
|
11132
|
+
get children() {
|
|
11133
|
+
const _el$21 = _tmpl$43();
|
|
11134
|
+
_el$21.addEventListener("change", (e2) => {
|
|
11135
|
+
props.setLocalStore("mutationSort", e2.currentTarget.value);
|
|
11136
|
+
});
|
|
11137
|
+
insert(_el$21, () => Object.keys(mutationSortFns).map((key) => (() => {
|
|
11138
|
+
const _el$44 = _tmpl$202(); _el$44.firstChild;
|
|
11139
|
+
_el$44.value = key;
|
|
11140
|
+
insert(_el$44, key, null);
|
|
11141
|
+
return _el$44;
|
|
11142
|
+
})()));
|
|
11143
|
+
createRenderEffect(() => _el$21.value = mutationSort());
|
|
11144
|
+
return _el$21;
|
|
11145
|
+
}
|
|
11146
|
+
}), null);
|
|
11147
|
+
insert(_el$19, createComponent(ChevronDown, {}), null);
|
|
11148
|
+
_el$22.$$click = () => {
|
|
11149
|
+
if (selectedView() === "queries") {
|
|
11150
|
+
props.setLocalStore("sortOrder", String(sortOrder() * -1));
|
|
11151
|
+
} else {
|
|
11152
|
+
props.setLocalStore("mutationSortOrder", String(mutationSortOrder() * -1));
|
|
11153
|
+
}
|
|
11154
|
+
};
|
|
11155
|
+
insert(_el$22, createComponent(Show, {
|
|
11156
|
+
get when() {
|
|
11157
|
+
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === 1;
|
|
11158
|
+
},
|
|
11159
|
+
get children() {
|
|
11160
|
+
return [_tmpl$53(), createComponent(ArrowUp, {})];
|
|
11161
|
+
}
|
|
11162
|
+
}), null);
|
|
11163
|
+
insert(_el$22, createComponent(Show, {
|
|
11164
|
+
get when() {
|
|
11165
|
+
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1;
|
|
11166
|
+
},
|
|
11167
|
+
get children() {
|
|
11168
|
+
return [_tmpl$63(), createComponent(ArrowDown, {})];
|
|
11169
|
+
}
|
|
11170
|
+
}), null);
|
|
11171
|
+
_el$26.$$click = () => {
|
|
11172
|
+
if (selectedView() === "queries") {
|
|
11173
|
+
query_cache().clear();
|
|
11174
|
+
} else {
|
|
11175
|
+
mutation_cache().clear();
|
|
11176
|
+
}
|
|
11177
|
+
};
|
|
11178
|
+
insert(_el$26, createComponent(Trash, {}));
|
|
11179
|
+
_el$27.$$click = () => {
|
|
10517
11180
|
if (offline()) {
|
|
10518
11181
|
onlineManager().setOnline(true);
|
|
10519
11182
|
setOffline(false);
|
|
@@ -10522,11 +11185,11 @@ var DevtoolsPanel = (props) => {
|
|
|
10522
11185
|
setOffline(true);
|
|
10523
11186
|
}
|
|
10524
11187
|
};
|
|
10525
|
-
insert(_el$
|
|
11188
|
+
insert(_el$27, (() => {
|
|
10526
11189
|
const _c$ = createMemo(() => !!offline());
|
|
10527
11190
|
return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
|
|
10528
11191
|
})());
|
|
10529
|
-
insert(_el$
|
|
11192
|
+
insert(_el$25, createComponent(index$d.Root, {
|
|
10530
11193
|
gutter: 4,
|
|
10531
11194
|
get children() {
|
|
10532
11195
|
return [createComponent(index$d.Trigger, {
|
|
@@ -10544,9 +11207,9 @@ var DevtoolsPanel = (props) => {
|
|
|
10544
11207
|
},
|
|
10545
11208
|
get children() {
|
|
10546
11209
|
return [(() => {
|
|
10547
|
-
const _el$
|
|
10548
|
-
createRenderEffect(() => className(_el$
|
|
10549
|
-
return _el$
|
|
11210
|
+
const _el$28 = _tmpl$73();
|
|
11211
|
+
createRenderEffect(() => className(_el$28, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
|
|
11212
|
+
return _el$28;
|
|
10550
11213
|
})(), createComponent(index$d.Sub, {
|
|
10551
11214
|
overlap: true,
|
|
10552
11215
|
gutter: 8,
|
|
@@ -10557,7 +11220,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10557
11220
|
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
10558
11221
|
},
|
|
10559
11222
|
get children() {
|
|
10560
|
-
return [_tmpl$
|
|
11223
|
+
return [_tmpl$83(), createComponent(ChevronDown, {})];
|
|
10561
11224
|
}
|
|
10562
11225
|
}), createComponent(index$d.Portal, {
|
|
10563
11226
|
get children() {
|
|
@@ -10575,7 +11238,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10575
11238
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
10576
11239
|
},
|
|
10577
11240
|
get children() {
|
|
10578
|
-
return [_tmpl$
|
|
11241
|
+
return [_tmpl$93(), createComponent(ArrowUp, {})];
|
|
10579
11242
|
}
|
|
10580
11243
|
}), createComponent(index$d.Item, {
|
|
10581
11244
|
onSelect: () => {
|
|
@@ -10586,7 +11249,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10586
11249
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
10587
11250
|
},
|
|
10588
11251
|
get children() {
|
|
10589
|
-
return [_tmpl$
|
|
11252
|
+
return [_tmpl$103(), createComponent(ArrowDown, {})];
|
|
10590
11253
|
}
|
|
10591
11254
|
}), createComponent(index$d.Item, {
|
|
10592
11255
|
onSelect: () => {
|
|
@@ -10597,7 +11260,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10597
11260
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
10598
11261
|
},
|
|
10599
11262
|
get children() {
|
|
10600
|
-
return [_tmpl$
|
|
11263
|
+
return [_tmpl$113(), createComponent(ArrowLeft, {})];
|
|
10601
11264
|
}
|
|
10602
11265
|
}), createComponent(index$d.Item, {
|
|
10603
11266
|
onSelect: () => {
|
|
@@ -10608,7 +11271,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10608
11271
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
|
|
10609
11272
|
},
|
|
10610
11273
|
get children() {
|
|
10611
|
-
return [_tmpl$
|
|
11274
|
+
return [_tmpl$122(), createComponent(ArrowRight, {})];
|
|
10612
11275
|
}
|
|
10613
11276
|
})];
|
|
10614
11277
|
}
|
|
@@ -10626,7 +11289,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10626
11289
|
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
10627
11290
|
},
|
|
10628
11291
|
get children() {
|
|
10629
|
-
return [_tmpl$
|
|
11292
|
+
return [_tmpl$132(), createComponent(ChevronDown, {})];
|
|
10630
11293
|
}
|
|
10631
11294
|
}), createComponent(index$d.Portal, {
|
|
10632
11295
|
get children() {
|
|
@@ -10644,7 +11307,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10644
11307
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "light" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
10645
11308
|
},
|
|
10646
11309
|
get children() {
|
|
10647
|
-
return [_tmpl$
|
|
11310
|
+
return [_tmpl$142(), createComponent(Sun, {})];
|
|
10648
11311
|
}
|
|
10649
11312
|
}), createComponent(index$d.Item, {
|
|
10650
11313
|
onSelect: () => {
|
|
@@ -10655,7 +11318,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10655
11318
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "dark" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
10656
11319
|
},
|
|
10657
11320
|
get children() {
|
|
10658
|
-
return [_tmpl$
|
|
11321
|
+
return [_tmpl$152(), createComponent(Moon, {})];
|
|
10659
11322
|
}
|
|
10660
11323
|
}), createComponent(index$d.Item, {
|
|
10661
11324
|
onSelect: () => {
|
|
@@ -10666,7 +11329,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10666
11329
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "system" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
10667
11330
|
},
|
|
10668
11331
|
get children() {
|
|
10669
|
-
return [_tmpl$
|
|
11332
|
+
return [_tmpl$162(), createComponent(Monitor, {})];
|
|
10670
11333
|
}
|
|
10671
11334
|
})];
|
|
10672
11335
|
}
|
|
@@ -10681,66 +11344,74 @@ var DevtoolsPanel = (props) => {
|
|
|
10681
11344
|
})];
|
|
10682
11345
|
}
|
|
10683
11346
|
}), null);
|
|
10684
|
-
insert(_el$
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
return queries();
|
|
11347
|
+
insert(_el$8, createComponent(Show, {
|
|
11348
|
+
get when() {
|
|
11349
|
+
return selectedView() === "queries";
|
|
10688
11350
|
},
|
|
10689
|
-
children
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
11351
|
+
get children() {
|
|
11352
|
+
const _el$38 = _tmpl$172(), _el$39 = _el$38.firstChild;
|
|
11353
|
+
insert(_el$39, createComponent(Key, {
|
|
11354
|
+
by: (q) => q.queryHash,
|
|
11355
|
+
get each() {
|
|
11356
|
+
return queries();
|
|
11357
|
+
},
|
|
11358
|
+
children: (query) => createComponent(QueryRow, {
|
|
11359
|
+
get query() {
|
|
11360
|
+
return query();
|
|
11361
|
+
}
|
|
11362
|
+
})
|
|
11363
|
+
}));
|
|
11364
|
+
createRenderEffect(() => className(_el$38, clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container")));
|
|
11365
|
+
return _el$38;
|
|
11366
|
+
}
|
|
11367
|
+
}), null);
|
|
11368
|
+
insert(_el$8, createComponent(Show, {
|
|
10696
11369
|
get when() {
|
|
10697
|
-
return
|
|
11370
|
+
return selectedView() === "mutations";
|
|
10698
11371
|
},
|
|
10699
11372
|
get children() {
|
|
10700
|
-
|
|
11373
|
+
const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild;
|
|
11374
|
+
insert(_el$41, createComponent(Key, {
|
|
11375
|
+
by: (m) => m.mutationId,
|
|
11376
|
+
get each() {
|
|
11377
|
+
return mutations();
|
|
11378
|
+
},
|
|
11379
|
+
children: (mutation) => createComponent(MutationRow, {
|
|
11380
|
+
get mutation() {
|
|
11381
|
+
return mutation();
|
|
11382
|
+
}
|
|
11383
|
+
})
|
|
11384
|
+
}));
|
|
11385
|
+
createRenderEffect(() => className(_el$40, clsx(styles().overflowQueryContainer, "tsqd-mutations-overflow-container")));
|
|
11386
|
+
return _el$40;
|
|
10701
11387
|
}
|
|
10702
11388
|
}), null);
|
|
10703
11389
|
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`
|
|
11390
|
+
const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && u`
|
|
10709
11391
|
height: 50%;
|
|
10710
11392
|
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);
|
|
11393
|
+
`, "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
11394
|
_v$6 !== _p$._v$6 && className(_el$8, _p$._v$6 = _v$6);
|
|
10720
11395
|
_v$7 !== _p$._v$7 && className(_el$9, _p$._v$7 = _v$7);
|
|
10721
11396
|
_v$8 !== _p$._v$8 && className(_el$10, _p$._v$8 = _v$8);
|
|
10722
11397
|
_v$9 !== _p$._v$9 && className(_el$11, _p$._v$9 = _v$9);
|
|
10723
11398
|
_v$10 !== _p$._v$10 && className(_el$12, _p$._v$10 = _v$10);
|
|
10724
|
-
_v$11 !== _p$._v$11 && className(_el$
|
|
11399
|
+
_v$11 !== _p$._v$11 && className(_el$13, _p$._v$11 = _v$11);
|
|
10725
11400
|
_v$12 !== _p$._v$12 && className(_el$15, _p$._v$12 = _v$12);
|
|
10726
11401
|
_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 &&
|
|
11402
|
+
_v$14 !== _p$._v$14 && className(_el$17, _p$._v$14 = _v$14);
|
|
11403
|
+
_v$15 !== _p$._v$15 && className(_el$19, _p$._v$15 = _v$15);
|
|
11404
|
+
_v$16 !== _p$._v$16 && setAttribute(_el$22, "aria-label", _p$._v$16 = _v$16);
|
|
11405
|
+
_v$17 !== _p$._v$17 && setAttribute(_el$22, "aria-pressed", _p$._v$17 = _v$17);
|
|
11406
|
+
_v$18 !== _p$._v$18 && className(_el$25, _p$._v$18 = _v$18);
|
|
11407
|
+
_v$19 !== _p$._v$19 && className(_el$26, _p$._v$19 = _v$19);
|
|
11408
|
+
_v$20 !== _p$._v$20 && setAttribute(_el$26, "title", _p$._v$20 = _v$20);
|
|
11409
|
+
_v$21 !== _p$._v$21 && className(_el$27, _p$._v$21 = _v$21);
|
|
11410
|
+
_v$22 !== _p$._v$22 && setAttribute(_el$27, "aria-label", _p$._v$22 = _v$22);
|
|
11411
|
+
_v$23 !== _p$._v$23 && setAttribute(_el$27, "aria-pressed", _p$._v$23 = _v$23);
|
|
11412
|
+
_v$24 !== _p$._v$24 && setAttribute(_el$27, "title", _p$._v$24 = _v$24);
|
|
10737
11413
|
return _p$;
|
|
10738
11414
|
}, {
|
|
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
11415
|
_v$6: void 0,
|
|
10745
11416
|
_v$7: void 0,
|
|
10746
11417
|
_v$8: void 0,
|
|
@@ -10758,12 +11429,26 @@ var DevtoolsPanel = (props) => {
|
|
|
10758
11429
|
_v$20: void 0,
|
|
10759
11430
|
_v$21: void 0,
|
|
10760
11431
|
_v$22: void 0,
|
|
10761
|
-
_v$23: void 0
|
|
11432
|
+
_v$23: void 0,
|
|
11433
|
+
_v$24: void 0
|
|
10762
11434
|
});
|
|
10763
|
-
createRenderEffect(() => _el$
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
11435
|
+
createRenderEffect(() => _el$18.value = selectedView() === "queries" ? props.localStore.filter || "" : props.localStore.mutationFilter || "");
|
|
11436
|
+
return _el$8;
|
|
11437
|
+
})(), createComponent(Show, {
|
|
11438
|
+
get when() {
|
|
11439
|
+
return createMemo(() => selectedView() === "queries")() && selectedQueryHash();
|
|
11440
|
+
},
|
|
11441
|
+
get children() {
|
|
11442
|
+
return createComponent(QueryDetails, {});
|
|
11443
|
+
}
|
|
11444
|
+
}), createComponent(Show, {
|
|
11445
|
+
get when() {
|
|
11446
|
+
return createMemo(() => selectedView() === "mutations")() && selectedMutationId();
|
|
11447
|
+
},
|
|
11448
|
+
get children() {
|
|
11449
|
+
return createComponent(MutationDetails, {});
|
|
11450
|
+
}
|
|
11451
|
+
})];
|
|
10767
11452
|
};
|
|
10768
11453
|
var QueryRow = (props) => {
|
|
10769
11454
|
const theme = useTheme();
|
|
@@ -10809,30 +11494,140 @@ var QueryRow = (props) => {
|
|
|
10809
11494
|
return queryState();
|
|
10810
11495
|
},
|
|
10811
11496
|
get children() {
|
|
10812
|
-
const _el$
|
|
10813
|
-
_el$
|
|
10814
|
-
insert(_el$
|
|
10815
|
-
insert(_el$
|
|
10816
|
-
insert(_el$
|
|
11497
|
+
const _el$46 = _tmpl$222(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling;
|
|
11498
|
+
_el$46.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
|
|
11499
|
+
insert(_el$47, observers);
|
|
11500
|
+
insert(_el$48, () => props.query.queryHash);
|
|
11501
|
+
insert(_el$46, createComponent(Show, {
|
|
10817
11502
|
get when() {
|
|
10818
11503
|
return isDisabled();
|
|
10819
11504
|
},
|
|
10820
11505
|
get children() {
|
|
10821
|
-
return _tmpl$
|
|
11506
|
+
return _tmpl$212();
|
|
10822
11507
|
}
|
|
10823
11508
|
}), null);
|
|
10824
11509
|
createRenderEffect((_p$) => {
|
|
10825
|
-
const _v$
|
|
10826
|
-
_v$
|
|
10827
|
-
_v$
|
|
10828
|
-
_v$
|
|
11510
|
+
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");
|
|
11511
|
+
_v$25 !== _p$._v$25 && className(_el$46, _p$._v$25 = _v$25);
|
|
11512
|
+
_v$26 !== _p$._v$26 && setAttribute(_el$46, "aria-label", _p$._v$26 = _v$26);
|
|
11513
|
+
_v$27 !== _p$._v$27 && className(_el$47, _p$._v$27 = _v$27);
|
|
10829
11514
|
return _p$;
|
|
10830
11515
|
}, {
|
|
10831
|
-
_v$24: void 0,
|
|
10832
11516
|
_v$25: void 0,
|
|
10833
|
-
_v$26: void 0
|
|
11517
|
+
_v$26: void 0,
|
|
11518
|
+
_v$27: void 0
|
|
10834
11519
|
});
|
|
10835
|
-
return _el$
|
|
11520
|
+
return _el$46;
|
|
11521
|
+
}
|
|
11522
|
+
});
|
|
11523
|
+
};
|
|
11524
|
+
var MutationRow = (props) => {
|
|
11525
|
+
const theme = useTheme();
|
|
11526
|
+
const styles = createMemo(() => {
|
|
11527
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11528
|
+
});
|
|
11529
|
+
const {
|
|
11530
|
+
colors,
|
|
11531
|
+
alpha
|
|
11532
|
+
} = tokens;
|
|
11533
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
11534
|
+
const mutationState = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
11535
|
+
const mutations = mutationCache().getAll();
|
|
11536
|
+
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
11537
|
+
return mutation?.state;
|
|
11538
|
+
});
|
|
11539
|
+
const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
11540
|
+
const mutations = mutationCache().getAll();
|
|
11541
|
+
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
11542
|
+
if (!mutation)
|
|
11543
|
+
return false;
|
|
11544
|
+
return mutation.state.isPaused;
|
|
11545
|
+
});
|
|
11546
|
+
const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
11547
|
+
const mutations = mutationCache().getAll();
|
|
11548
|
+
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
11549
|
+
if (!mutation)
|
|
11550
|
+
return "idle";
|
|
11551
|
+
return mutation.state.status;
|
|
11552
|
+
});
|
|
11553
|
+
const color = createMemo(() => getMutationStatusColor({
|
|
11554
|
+
isPaused: isPaused(),
|
|
11555
|
+
status: status()
|
|
11556
|
+
}));
|
|
11557
|
+
const getObserverCountColorStyles = () => {
|
|
11558
|
+
if (color() === "gray") {
|
|
11559
|
+
return u`
|
|
11560
|
+
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
11561
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
11562
|
+
`;
|
|
11563
|
+
}
|
|
11564
|
+
return u`
|
|
11565
|
+
background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
|
|
11566
|
+
color: ${t2(colors[color()][800], colors[color()][300])};
|
|
11567
|
+
`;
|
|
11568
|
+
};
|
|
11569
|
+
return createComponent(Show, {
|
|
11570
|
+
get when() {
|
|
11571
|
+
return mutationState();
|
|
11572
|
+
},
|
|
11573
|
+
get children() {
|
|
11574
|
+
const _el$50 = _tmpl$222(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling;
|
|
11575
|
+
_el$50.$$click = () => {
|
|
11576
|
+
setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
|
|
11577
|
+
};
|
|
11578
|
+
insert(_el$51, createComponent(Show, {
|
|
11579
|
+
get when() {
|
|
11580
|
+
return color() === "purple";
|
|
11581
|
+
},
|
|
11582
|
+
get children() {
|
|
11583
|
+
return createComponent(PauseCircle, {});
|
|
11584
|
+
}
|
|
11585
|
+
}), null);
|
|
11586
|
+
insert(_el$51, createComponent(Show, {
|
|
11587
|
+
get when() {
|
|
11588
|
+
return color() === "green";
|
|
11589
|
+
},
|
|
11590
|
+
get children() {
|
|
11591
|
+
return createComponent(CheckCircle, {});
|
|
11592
|
+
}
|
|
11593
|
+
}), null);
|
|
11594
|
+
insert(_el$51, createComponent(Show, {
|
|
11595
|
+
get when() {
|
|
11596
|
+
return color() === "red";
|
|
11597
|
+
},
|
|
11598
|
+
get children() {
|
|
11599
|
+
return createComponent(XCircle, {});
|
|
11600
|
+
}
|
|
11601
|
+
}), null);
|
|
11602
|
+
insert(_el$51, createComponent(Show, {
|
|
11603
|
+
get when() {
|
|
11604
|
+
return color() === "yellow";
|
|
11605
|
+
},
|
|
11606
|
+
get children() {
|
|
11607
|
+
return createComponent(LoadingCircle, {});
|
|
11608
|
+
}
|
|
11609
|
+
}), null);
|
|
11610
|
+
insert(_el$52, createComponent(Show, {
|
|
11611
|
+
get when() {
|
|
11612
|
+
return props.mutation.options.mutationKey;
|
|
11613
|
+
},
|
|
11614
|
+
get children() {
|
|
11615
|
+
return [createMemo(() => JSON.stringify(props.mutation.options.mutationKey)), " -", " "];
|
|
11616
|
+
}
|
|
11617
|
+
}), null);
|
|
11618
|
+
insert(_el$52, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
|
|
11619
|
+
createRenderEffect((_p$) => {
|
|
11620
|
+
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");
|
|
11621
|
+
_v$28 !== _p$._v$28 && className(_el$50, _p$._v$28 = _v$28);
|
|
11622
|
+
_v$29 !== _p$._v$29 && setAttribute(_el$50, "aria-label", _p$._v$29 = _v$29);
|
|
11623
|
+
_v$30 !== _p$._v$30 && className(_el$51, _p$._v$30 = _v$30);
|
|
11624
|
+
return _p$;
|
|
11625
|
+
}, {
|
|
11626
|
+
_v$28: void 0,
|
|
11627
|
+
_v$29: void 0,
|
|
11628
|
+
_v$30: void 0
|
|
11629
|
+
});
|
|
11630
|
+
return _el$50;
|
|
10836
11631
|
}
|
|
10837
11632
|
});
|
|
10838
11633
|
};
|
|
@@ -10847,44 +11642,99 @@ var QueryStatusCount = () => {
|
|
|
10847
11642
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10848
11643
|
});
|
|
10849
11644
|
return (() => {
|
|
10850
|
-
const _el$
|
|
10851
|
-
insert(_el$
|
|
11645
|
+
const _el$53 = _tmpl$25();
|
|
11646
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10852
11647
|
label: "Fresh",
|
|
10853
11648
|
color: "green",
|
|
10854
11649
|
get count() {
|
|
10855
11650
|
return fresh();
|
|
10856
11651
|
}
|
|
10857
11652
|
}), null);
|
|
10858
|
-
insert(_el$
|
|
11653
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10859
11654
|
label: "Fetching",
|
|
10860
11655
|
color: "blue",
|
|
10861
11656
|
get count() {
|
|
10862
11657
|
return fetching();
|
|
10863
11658
|
}
|
|
10864
11659
|
}), null);
|
|
10865
|
-
insert(_el$
|
|
11660
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10866
11661
|
label: "Paused",
|
|
10867
11662
|
color: "purple",
|
|
10868
11663
|
get count() {
|
|
10869
11664
|
return paused();
|
|
10870
11665
|
}
|
|
10871
11666
|
}), null);
|
|
10872
|
-
insert(_el$
|
|
11667
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10873
11668
|
label: "Stale",
|
|
10874
11669
|
color: "yellow",
|
|
10875
11670
|
get count() {
|
|
10876
11671
|
return stale();
|
|
10877
11672
|
}
|
|
10878
11673
|
}), null);
|
|
10879
|
-
insert(_el$
|
|
11674
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10880
11675
|
label: "Inactive",
|
|
10881
11676
|
color: "gray",
|
|
10882
11677
|
get count() {
|
|
10883
11678
|
return inactive();
|
|
10884
11679
|
}
|
|
10885
11680
|
}), null);
|
|
10886
|
-
createRenderEffect(() => className(_el$
|
|
10887
|
-
return _el$
|
|
11681
|
+
createRenderEffect(() => className(_el$53, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
11682
|
+
return _el$53;
|
|
11683
|
+
})();
|
|
11684
|
+
};
|
|
11685
|
+
var MutationStatusCount = () => {
|
|
11686
|
+
const success = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
11687
|
+
isPaused: m.state.isPaused,
|
|
11688
|
+
status: m.state.status
|
|
11689
|
+
}) === "green").length);
|
|
11690
|
+
const pending = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
11691
|
+
isPaused: m.state.isPaused,
|
|
11692
|
+
status: m.state.status
|
|
11693
|
+
}) === "yellow").length);
|
|
11694
|
+
const paused = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
11695
|
+
isPaused: m.state.isPaused,
|
|
11696
|
+
status: m.state.status
|
|
11697
|
+
}) === "purple").length);
|
|
11698
|
+
const error = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
11699
|
+
isPaused: m.state.isPaused,
|
|
11700
|
+
status: m.state.status
|
|
11701
|
+
}) === "red").length);
|
|
11702
|
+
const theme = useTheme();
|
|
11703
|
+
const styles = createMemo(() => {
|
|
11704
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11705
|
+
});
|
|
11706
|
+
return (() => {
|
|
11707
|
+
const _el$54 = _tmpl$25();
|
|
11708
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
11709
|
+
label: "Paused",
|
|
11710
|
+
color: "purple",
|
|
11711
|
+
get count() {
|
|
11712
|
+
return paused();
|
|
11713
|
+
}
|
|
11714
|
+
}), null);
|
|
11715
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
11716
|
+
label: "Pending",
|
|
11717
|
+
color: "yellow",
|
|
11718
|
+
get count() {
|
|
11719
|
+
return pending();
|
|
11720
|
+
}
|
|
11721
|
+
}), null);
|
|
11722
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
11723
|
+
label: "Success",
|
|
11724
|
+
color: "green",
|
|
11725
|
+
get count() {
|
|
11726
|
+
return success();
|
|
11727
|
+
}
|
|
11728
|
+
}), null);
|
|
11729
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
11730
|
+
label: "Error",
|
|
11731
|
+
color: "red",
|
|
11732
|
+
get count() {
|
|
11733
|
+
return error();
|
|
11734
|
+
}
|
|
11735
|
+
}), null);
|
|
11736
|
+
createRenderEffect(() => className(_el$54, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
11737
|
+
return _el$54;
|
|
10888
11738
|
})();
|
|
10889
11739
|
};
|
|
10890
11740
|
var QueryStatus = (props) => {
|
|
@@ -10912,17 +11762,17 @@ var QueryStatus = (props) => {
|
|
|
10912
11762
|
return true;
|
|
10913
11763
|
});
|
|
10914
11764
|
return (() => {
|
|
10915
|
-
const _el$
|
|
10916
|
-
const _ref$
|
|
10917
|
-
typeof _ref$
|
|
10918
|
-
_el$
|
|
11765
|
+
const _el$55 = _tmpl$252(), _el$57 = _el$55.firstChild, _el$59 = _el$57.nextSibling;
|
|
11766
|
+
const _ref$2 = tagRef;
|
|
11767
|
+
typeof _ref$2 === "function" ? use(_ref$2, _el$55) : tagRef = _el$55;
|
|
11768
|
+
_el$55.addEventListener("mouseleave", () => {
|
|
10919
11769
|
setMouseOver(false);
|
|
10920
11770
|
setFocused(false);
|
|
10921
11771
|
});
|
|
10922
|
-
_el$
|
|
10923
|
-
_el$
|
|
10924
|
-
_el$
|
|
10925
|
-
spread(_el$
|
|
11772
|
+
_el$55.addEventListener("mouseenter", () => setMouseOver(true));
|
|
11773
|
+
_el$55.addEventListener("blur", () => setFocused(false));
|
|
11774
|
+
_el$55.addEventListener("focus", () => setFocused(true));
|
|
11775
|
+
spread(_el$55, mergeProps({
|
|
10926
11776
|
get disabled() {
|
|
10927
11777
|
return showLabel();
|
|
10928
11778
|
},
|
|
@@ -10937,47 +11787,47 @@ var QueryStatus = (props) => {
|
|
|
10937
11787
|
}, () => mouseOver() || focused() ? {
|
|
10938
11788
|
"aria-describedby": "tsqd-status-tooltip"
|
|
10939
11789
|
} : {}), false, true);
|
|
10940
|
-
insert(_el$
|
|
11790
|
+
insert(_el$55, createComponent(Show, {
|
|
10941
11791
|
get when() {
|
|
10942
11792
|
return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
|
|
10943
11793
|
},
|
|
10944
11794
|
get children() {
|
|
10945
|
-
const _el$
|
|
10946
|
-
insert(_el$
|
|
10947
|
-
createRenderEffect(() => className(_el$
|
|
10948
|
-
return _el$
|
|
11795
|
+
const _el$56 = _tmpl$232();
|
|
11796
|
+
insert(_el$56, () => props.label);
|
|
11797
|
+
createRenderEffect(() => className(_el$56, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
|
|
11798
|
+
return _el$56;
|
|
10949
11799
|
}
|
|
10950
|
-
}), _el$
|
|
10951
|
-
insert(_el$
|
|
11800
|
+
}), _el$57);
|
|
11801
|
+
insert(_el$55, createComponent(Show, {
|
|
10952
11802
|
get when() {
|
|
10953
11803
|
return showLabel();
|
|
10954
11804
|
},
|
|
10955
11805
|
get children() {
|
|
10956
|
-
const _el$
|
|
10957
|
-
insert(_el$
|
|
10958
|
-
createRenderEffect(() => className(_el$
|
|
10959
|
-
return _el$
|
|
11806
|
+
const _el$58 = _tmpl$242();
|
|
11807
|
+
insert(_el$58, () => props.label);
|
|
11808
|
+
createRenderEffect(() => className(_el$58, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
|
|
11809
|
+
return _el$58;
|
|
10960
11810
|
}
|
|
10961
|
-
}), _el$
|
|
10962
|
-
insert(_el$
|
|
11811
|
+
}), _el$59);
|
|
11812
|
+
insert(_el$59, () => props.count);
|
|
10963
11813
|
createRenderEffect((_p$) => {
|
|
10964
|
-
const _v$
|
|
11814
|
+
const _v$31 = clsx(u`
|
|
10965
11815
|
width: ${tokens.size[1.5]};
|
|
10966
11816
|
height: ${tokens.size[1.5]};
|
|
10967
11817
|
border-radius: ${tokens.border.radius.full};
|
|
10968
11818
|
background-color: ${tokens.colors[props.color][500]};
|
|
10969
|
-
`, "tsqd-query-status-tag-dot"), _v$
|
|
11819
|
+
`, "tsqd-query-status-tag-dot"), _v$32 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
|
|
10970
11820
|
background-color: ${t2(colors[props.color][100], colors[props.color][900])};
|
|
10971
11821
|
color: ${t2(colors[props.color][700], colors[props.color][300])};
|
|
10972
11822
|
`, "tsqd-query-status-tag-count");
|
|
10973
|
-
_v$
|
|
10974
|
-
_v$
|
|
11823
|
+
_v$31 !== _p$._v$31 && className(_el$57, _p$._v$31 = _v$31);
|
|
11824
|
+
_v$32 !== _p$._v$32 && className(_el$59, _p$._v$32 = _v$32);
|
|
10975
11825
|
return _p$;
|
|
10976
11826
|
}, {
|
|
10977
|
-
_v$
|
|
10978
|
-
_v$
|
|
11827
|
+
_v$31: void 0,
|
|
11828
|
+
_v$32: void 0
|
|
10979
11829
|
});
|
|
10980
|
-
return _el$
|
|
11830
|
+
return _el$55;
|
|
10981
11831
|
})();
|
|
10982
11832
|
};
|
|
10983
11833
|
var QueryDetails = () => {
|
|
@@ -11064,19 +11914,19 @@ var QueryDetails = () => {
|
|
|
11064
11914
|
return createMemo(() => !!activeQuery())() && activeQueryState();
|
|
11065
11915
|
},
|
|
11066
11916
|
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$
|
|
11917
|
+
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;
|
|
11918
|
+
insert(_el$65, () => displayValue(activeQuery().queryKey, true));
|
|
11919
|
+
insert(_el$66, statusLabel);
|
|
11920
|
+
insert(_el$69, observerCount);
|
|
11921
|
+
insert(_el$72, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
|
|
11922
|
+
_el$75.$$click = handleRefetch;
|
|
11923
|
+
_el$77.$$click = () => queryClient.invalidateQueries(activeQuery());
|
|
11924
|
+
_el$79.$$click = () => queryClient.resetQueries(activeQuery());
|
|
11925
|
+
_el$81.$$click = () => {
|
|
11076
11926
|
queryClient.removeQueries(activeQuery());
|
|
11077
11927
|
setSelectedQueryHash(null);
|
|
11078
11928
|
};
|
|
11079
|
-
_el$
|
|
11929
|
+
_el$83.$$click = () => {
|
|
11080
11930
|
if (activeQuery()?.state.data === void 0) {
|
|
11081
11931
|
setRestoringLoading(true);
|
|
11082
11932
|
restoreQueryAfterLoadingOrError();
|
|
@@ -11104,79 +11954,79 @@ var QueryDetails = () => {
|
|
|
11104
11954
|
});
|
|
11105
11955
|
}
|
|
11106
11956
|
};
|
|
11107
|
-
insert(_el$
|
|
11108
|
-
insert(_el$
|
|
11957
|
+
insert(_el$83, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$85);
|
|
11958
|
+
insert(_el$74, createComponent(Show, {
|
|
11109
11959
|
get when() {
|
|
11110
11960
|
return errorTypes().length === 0 || queryStatus() === "error";
|
|
11111
11961
|
},
|
|
11112
11962
|
get children() {
|
|
11113
|
-
const _el$
|
|
11114
|
-
_el$
|
|
11963
|
+
const _el$86 = _tmpl$26(), _el$87 = _el$86.firstChild, _el$88 = _el$87.nextSibling;
|
|
11964
|
+
_el$86.$$click = () => {
|
|
11115
11965
|
if (!activeQuery().state.error) {
|
|
11116
11966
|
triggerError();
|
|
11117
11967
|
} else {
|
|
11118
11968
|
queryClient.resetQueries(activeQuery());
|
|
11119
11969
|
}
|
|
11120
11970
|
};
|
|
11121
|
-
insert(_el$
|
|
11971
|
+
insert(_el$86, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$88);
|
|
11122
11972
|
createRenderEffect((_p$) => {
|
|
11123
|
-
const _v$
|
|
11973
|
+
const _v$33 = clsx(u`
|
|
11124
11974
|
color: ${t2(colors.red[500], colors.red[400])};
|
|
11125
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$
|
|
11975
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$34 = queryStatus() === "pending", _v$35 = u`
|
|
11126
11976
|
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
11127
11977
|
`;
|
|
11128
|
-
_v$
|
|
11129
|
-
_v$
|
|
11130
|
-
_v$
|
|
11978
|
+
_v$33 !== _p$._v$33 && className(_el$86, _p$._v$33 = _v$33);
|
|
11979
|
+
_v$34 !== _p$._v$34 && (_el$86.disabled = _p$._v$34 = _v$34);
|
|
11980
|
+
_v$35 !== _p$._v$35 && className(_el$87, _p$._v$35 = _v$35);
|
|
11131
11981
|
return _p$;
|
|
11132
11982
|
}, {
|
|
11133
|
-
_v$
|
|
11134
|
-
_v$
|
|
11135
|
-
_v$
|
|
11983
|
+
_v$33: void 0,
|
|
11984
|
+
_v$34: void 0,
|
|
11985
|
+
_v$35: void 0
|
|
11136
11986
|
});
|
|
11137
|
-
return _el$
|
|
11987
|
+
return _el$86;
|
|
11138
11988
|
}
|
|
11139
11989
|
}), null);
|
|
11140
|
-
insert(_el$
|
|
11990
|
+
insert(_el$74, createComponent(Show, {
|
|
11141
11991
|
get when() {
|
|
11142
11992
|
return !(errorTypes().length === 0 || queryStatus() === "error");
|
|
11143
11993
|
},
|
|
11144
11994
|
get children() {
|
|
11145
|
-
const _el$
|
|
11146
|
-
_el$
|
|
11995
|
+
const _el$89 = _tmpl$27(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling, _el$92 = _el$91.nextSibling; _el$92.firstChild;
|
|
11996
|
+
_el$92.addEventListener("change", (e2) => {
|
|
11147
11997
|
const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
|
|
11148
11998
|
triggerError(errorType);
|
|
11149
11999
|
});
|
|
11150
|
-
insert(_el$
|
|
12000
|
+
insert(_el$92, createComponent(For, {
|
|
11151
12001
|
get each() {
|
|
11152
12002
|
return errorTypes();
|
|
11153
12003
|
},
|
|
11154
12004
|
children: (errorType) => (() => {
|
|
11155
|
-
const _el$
|
|
11156
|
-
insert(_el$
|
|
11157
|
-
createRenderEffect(() => _el$
|
|
11158
|
-
return _el$
|
|
12005
|
+
const _el$98 = _tmpl$29();
|
|
12006
|
+
insert(_el$98, () => errorType.name);
|
|
12007
|
+
createRenderEffect(() => _el$98.value = errorType.name);
|
|
12008
|
+
return _el$98;
|
|
11159
12009
|
})()
|
|
11160
12010
|
}), null);
|
|
11161
|
-
insert(_el$
|
|
12011
|
+
insert(_el$89, createComponent(ChevronDown, {}), null);
|
|
11162
12012
|
createRenderEffect((_p$) => {
|
|
11163
|
-
const _v$
|
|
12013
|
+
const _v$36 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$37 = u`
|
|
11164
12014
|
background-color: ${tokens.colors.red[400]};
|
|
11165
|
-
`, _v$
|
|
11166
|
-
_v$
|
|
11167
|
-
_v$
|
|
11168
|
-
_v$
|
|
12015
|
+
`, _v$38 = queryStatus() === "pending";
|
|
12016
|
+
_v$36 !== _p$._v$36 && className(_el$89, _p$._v$36 = _v$36);
|
|
12017
|
+
_v$37 !== _p$._v$37 && className(_el$90, _p$._v$37 = _v$37);
|
|
12018
|
+
_v$38 !== _p$._v$38 && (_el$92.disabled = _p$._v$38 = _v$38);
|
|
11169
12019
|
return _p$;
|
|
11170
12020
|
}, {
|
|
11171
|
-
_v$
|
|
11172
|
-
_v$
|
|
11173
|
-
_v$
|
|
12021
|
+
_v$36: void 0,
|
|
12022
|
+
_v$37: void 0,
|
|
12023
|
+
_v$38: void 0
|
|
11174
12024
|
});
|
|
11175
|
-
return _el$
|
|
12025
|
+
return _el$89;
|
|
11176
12026
|
}
|
|
11177
12027
|
}), null);
|
|
11178
|
-
_el$
|
|
11179
|
-
insert(_el$
|
|
12028
|
+
_el$95.style.setProperty("padding", "0.5rem");
|
|
12029
|
+
insert(_el$95, createComponent(Explorer, {
|
|
11180
12030
|
label: "Data",
|
|
11181
12031
|
defaultExpanded: ["Data"],
|
|
11182
12032
|
get value() {
|
|
@@ -11187,8 +12037,8 @@ var QueryDetails = () => {
|
|
|
11187
12037
|
return activeQuery();
|
|
11188
12038
|
}
|
|
11189
12039
|
}));
|
|
11190
|
-
_el$
|
|
11191
|
-
insert(_el$
|
|
12040
|
+
_el$97.style.setProperty("padding", "0.5rem");
|
|
12041
|
+
insert(_el$97, createComponent(Explorer, {
|
|
11192
12042
|
label: "Query",
|
|
11193
12043
|
defaultExpanded: ["Query", "queryKey"],
|
|
11194
12044
|
get value() {
|
|
@@ -11196,56 +12046,52 @@ var QueryDetails = () => {
|
|
|
11196
12046
|
}
|
|
11197
12047
|
}));
|
|
11198
12048
|
createRenderEffect((_p$) => {
|
|
11199
|
-
const _v$
|
|
12049
|
+
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
12050
|
color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11201
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$
|
|
12051
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$46 = statusLabel() === "fetching", _v$47 = u`
|
|
11202
12052
|
background-color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11203
|
-
`, _v$
|
|
12053
|
+
`, _v$48 = clsx(u`
|
|
11204
12054
|
color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11205
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$
|
|
12055
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$49 = queryStatus() === "pending", _v$50 = u`
|
|
11206
12056
|
background-color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11207
|
-
`, _v$
|
|
12057
|
+
`, _v$51 = clsx(u`
|
|
11208
12058
|
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
11209
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$
|
|
12059
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$52 = queryStatus() === "pending", _v$53 = u`
|
|
11210
12060
|
background-color: ${t2(colors.gray[600], colors.gray[400])};
|
|
11211
|
-
`, _v$
|
|
12061
|
+
`, _v$54 = clsx(u`
|
|
11212
12062
|
color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11213
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$
|
|
12063
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$55 = statusLabel() === "fetching", _v$56 = u`
|
|
11214
12064
|
background-color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11215
|
-
`, _v$
|
|
12065
|
+
`, _v$57 = clsx(u`
|
|
11216
12066
|
color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11217
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$
|
|
12067
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$58 = restoringLoading(), _v$59 = u`
|
|
11218
12068
|
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$
|
|
12069
|
+
`, _v$60 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$61 = clsx(styles().detailsHeader, "tsqd-query-details-header");
|
|
12070
|
+
_v$39 !== _p$._v$39 && className(_el$60, _p$._v$39 = _v$39);
|
|
12071
|
+
_v$40 !== _p$._v$40 && className(_el$61, _p$._v$40 = _v$40);
|
|
12072
|
+
_v$41 !== _p$._v$41 && className(_el$62, _p$._v$41 = _v$41);
|
|
12073
|
+
_v$42 !== _p$._v$42 && className(_el$66, _p$._v$42 = _v$42);
|
|
12074
|
+
_v$43 !== _p$._v$43 && className(_el$73, _p$._v$43 = _v$43);
|
|
12075
|
+
_v$44 !== _p$._v$44 && className(_el$74, _p$._v$44 = _v$44);
|
|
12076
|
+
_v$45 !== _p$._v$45 && className(_el$75, _p$._v$45 = _v$45);
|
|
12077
|
+
_v$46 !== _p$._v$46 && (_el$75.disabled = _p$._v$46 = _v$46);
|
|
12078
|
+
_v$47 !== _p$._v$47 && className(_el$76, _p$._v$47 = _v$47);
|
|
12079
|
+
_v$48 !== _p$._v$48 && className(_el$77, _p$._v$48 = _v$48);
|
|
12080
|
+
_v$49 !== _p$._v$49 && (_el$77.disabled = _p$._v$49 = _v$49);
|
|
12081
|
+
_v$50 !== _p$._v$50 && className(_el$78, _p$._v$50 = _v$50);
|
|
12082
|
+
_v$51 !== _p$._v$51 && className(_el$79, _p$._v$51 = _v$51);
|
|
12083
|
+
_v$52 !== _p$._v$52 && (_el$79.disabled = _p$._v$52 = _v$52);
|
|
12084
|
+
_v$53 !== _p$._v$53 && className(_el$80, _p$._v$53 = _v$53);
|
|
12085
|
+
_v$54 !== _p$._v$54 && className(_el$81, _p$._v$54 = _v$54);
|
|
12086
|
+
_v$55 !== _p$._v$55 && (_el$81.disabled = _p$._v$55 = _v$55);
|
|
12087
|
+
_v$56 !== _p$._v$56 && className(_el$82, _p$._v$56 = _v$56);
|
|
12088
|
+
_v$57 !== _p$._v$57 && className(_el$83, _p$._v$57 = _v$57);
|
|
12089
|
+
_v$58 !== _p$._v$58 && (_el$83.disabled = _p$._v$58 = _v$58);
|
|
12090
|
+
_v$59 !== _p$._v$59 && className(_el$84, _p$._v$59 = _v$59);
|
|
12091
|
+
_v$60 !== _p$._v$60 && className(_el$94, _p$._v$60 = _v$60);
|
|
12092
|
+
_v$61 !== _p$._v$61 && className(_el$96, _p$._v$61 = _v$61);
|
|
11243
12093
|
return _p$;
|
|
11244
12094
|
}, {
|
|
11245
|
-
_v$35: void 0,
|
|
11246
|
-
_v$36: void 0,
|
|
11247
|
-
_v$37: void 0,
|
|
11248
|
-
_v$38: void 0,
|
|
11249
12095
|
_v$39: void 0,
|
|
11250
12096
|
_v$40: void 0,
|
|
11251
12097
|
_v$41: void 0,
|
|
@@ -11264,27 +12110,160 @@ var QueryDetails = () => {
|
|
|
11264
12110
|
_v$54: void 0,
|
|
11265
12111
|
_v$55: void 0,
|
|
11266
12112
|
_v$56: void 0,
|
|
11267
|
-
_v$57: void 0
|
|
12113
|
+
_v$57: void 0,
|
|
12114
|
+
_v$58: void 0,
|
|
12115
|
+
_v$59: void 0,
|
|
12116
|
+
_v$60: void 0,
|
|
12117
|
+
_v$61: void 0
|
|
11268
12118
|
});
|
|
11269
|
-
return _el$
|
|
12119
|
+
return _el$60;
|
|
12120
|
+
}
|
|
12121
|
+
});
|
|
12122
|
+
};
|
|
12123
|
+
var MutationDetails = () => {
|
|
12124
|
+
const theme = useTheme();
|
|
12125
|
+
const styles = createMemo(() => {
|
|
12126
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
12127
|
+
});
|
|
12128
|
+
const {
|
|
12129
|
+
colors
|
|
12130
|
+
} = tokens;
|
|
12131
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
12132
|
+
const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
12133
|
+
const mutations = mutationCache().getAll();
|
|
12134
|
+
const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
|
|
12135
|
+
if (!mutation)
|
|
12136
|
+
return false;
|
|
12137
|
+
return mutation.state.isPaused;
|
|
12138
|
+
});
|
|
12139
|
+
const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
12140
|
+
const mutations = mutationCache().getAll();
|
|
12141
|
+
const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
|
|
12142
|
+
if (!mutation)
|
|
12143
|
+
return "idle";
|
|
12144
|
+
return mutation.state.status;
|
|
12145
|
+
});
|
|
12146
|
+
const color = createMemo(() => getMutationStatusColor({
|
|
12147
|
+
isPaused: isPaused(),
|
|
12148
|
+
status: status()
|
|
12149
|
+
}));
|
|
12150
|
+
const activeMutation = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().find((mutation) => mutation.mutationId === selectedMutationId()), false);
|
|
12151
|
+
const getQueryStatusColors = () => {
|
|
12152
|
+
if (color() === "gray") {
|
|
12153
|
+
return u`
|
|
12154
|
+
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
12155
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
12156
|
+
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
12157
|
+
`;
|
|
12158
|
+
}
|
|
12159
|
+
return u`
|
|
12160
|
+
background-color: ${t2(colors[color()][100], colors[color()][900])};
|
|
12161
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
12162
|
+
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
12163
|
+
`;
|
|
12164
|
+
};
|
|
12165
|
+
return createComponent(Show, {
|
|
12166
|
+
get when() {
|
|
12167
|
+
return activeMutation();
|
|
12168
|
+
},
|
|
12169
|
+
get children() {
|
|
12170
|
+
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;
|
|
12171
|
+
insert(_el$104, createComponent(Show, {
|
|
12172
|
+
get when() {
|
|
12173
|
+
return activeMutation().options.mutationKey;
|
|
12174
|
+
},
|
|
12175
|
+
fallback: "No mutationKey found",
|
|
12176
|
+
get children() {
|
|
12177
|
+
return displayValue(activeMutation().options.mutationKey, true);
|
|
12178
|
+
}
|
|
12179
|
+
}));
|
|
12180
|
+
insert(_el$105, createComponent(Show, {
|
|
12181
|
+
get when() {
|
|
12182
|
+
return color() === "purple";
|
|
12183
|
+
},
|
|
12184
|
+
children: "pending"
|
|
12185
|
+
}), null);
|
|
12186
|
+
insert(_el$105, createComponent(Show, {
|
|
12187
|
+
get when() {
|
|
12188
|
+
return color() !== "purple";
|
|
12189
|
+
},
|
|
12190
|
+
get children() {
|
|
12191
|
+
return status();
|
|
12192
|
+
}
|
|
12193
|
+
}), null);
|
|
12194
|
+
insert(_el$108, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
|
|
12195
|
+
_el$110.style.setProperty("padding", "0.5rem");
|
|
12196
|
+
insert(_el$110, createComponent(Explorer, {
|
|
12197
|
+
label: "Variables",
|
|
12198
|
+
defaultExpanded: ["Variables"],
|
|
12199
|
+
get value() {
|
|
12200
|
+
return activeMutation().state.variables;
|
|
12201
|
+
}
|
|
12202
|
+
}));
|
|
12203
|
+
_el$112.style.setProperty("padding", "0.5rem");
|
|
12204
|
+
insert(_el$112, createComponent(Explorer, {
|
|
12205
|
+
label: "Context",
|
|
12206
|
+
defaultExpanded: ["Context"],
|
|
12207
|
+
get value() {
|
|
12208
|
+
return activeMutation().state.context;
|
|
12209
|
+
}
|
|
12210
|
+
}));
|
|
12211
|
+
_el$114.style.setProperty("padding", "0.5rem");
|
|
12212
|
+
insert(_el$114, createComponent(Explorer, {
|
|
12213
|
+
label: "Data",
|
|
12214
|
+
defaultExpanded: ["Data"],
|
|
12215
|
+
get value() {
|
|
12216
|
+
return activeMutation().state.data;
|
|
12217
|
+
}
|
|
12218
|
+
}));
|
|
12219
|
+
_el$116.style.setProperty("padding", "0.5rem");
|
|
12220
|
+
insert(_el$116, createComponent(Explorer, {
|
|
12221
|
+
label: "Mutation",
|
|
12222
|
+
defaultExpanded: ["Mutation"],
|
|
12223
|
+
get value() {
|
|
12224
|
+
return activeMutation();
|
|
12225
|
+
}
|
|
12226
|
+
}));
|
|
12227
|
+
createRenderEffect((_p$) => {
|
|
12228
|
+
const _v$62 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$63 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$64 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$65 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$66 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$67 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$68 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$69 = clsx(styles().detailsHeader, "tsqd-query-details-header");
|
|
12229
|
+
_v$62 !== _p$._v$62 && className(_el$99, _p$._v$62 = _v$62);
|
|
12230
|
+
_v$63 !== _p$._v$63 && className(_el$100, _p$._v$63 = _v$63);
|
|
12231
|
+
_v$64 !== _p$._v$64 && className(_el$101, _p$._v$64 = _v$64);
|
|
12232
|
+
_v$65 !== _p$._v$65 && className(_el$105, _p$._v$65 = _v$65);
|
|
12233
|
+
_v$66 !== _p$._v$66 && className(_el$109, _p$._v$66 = _v$66);
|
|
12234
|
+
_v$67 !== _p$._v$67 && className(_el$111, _p$._v$67 = _v$67);
|
|
12235
|
+
_v$68 !== _p$._v$68 && className(_el$113, _p$._v$68 = _v$68);
|
|
12236
|
+
_v$69 !== _p$._v$69 && className(_el$115, _p$._v$69 = _v$69);
|
|
12237
|
+
return _p$;
|
|
12238
|
+
}, {
|
|
12239
|
+
_v$62: void 0,
|
|
12240
|
+
_v$63: void 0,
|
|
12241
|
+
_v$64: void 0,
|
|
12242
|
+
_v$65: void 0,
|
|
12243
|
+
_v$66: void 0,
|
|
12244
|
+
_v$67: void 0,
|
|
12245
|
+
_v$68: void 0,
|
|
12246
|
+
_v$69: void 0
|
|
12247
|
+
});
|
|
12248
|
+
return _el$99;
|
|
11270
12249
|
}
|
|
11271
12250
|
});
|
|
11272
12251
|
};
|
|
11273
|
-
var
|
|
12252
|
+
var queryCacheMap = /* @__PURE__ */ new Map();
|
|
11274
12253
|
var setupQueryCacheSubscription = () => {
|
|
11275
12254
|
const queryCache = createMemo(() => {
|
|
11276
12255
|
const client = useQueryDevtoolsContext().client;
|
|
11277
12256
|
return client.getQueryCache();
|
|
11278
12257
|
});
|
|
11279
12258
|
const unsub = queryCache().subscribe(() => {
|
|
11280
|
-
for (const [callback, setter] of
|
|
12259
|
+
for (const [callback, setter] of queryCacheMap.entries()) {
|
|
11281
12260
|
queueMicrotask(() => {
|
|
11282
12261
|
setter(callback(queryCache));
|
|
11283
12262
|
});
|
|
11284
12263
|
}
|
|
11285
12264
|
});
|
|
11286
12265
|
onCleanup(() => {
|
|
11287
|
-
|
|
12266
|
+
queryCacheMap.clear();
|
|
11288
12267
|
unsub();
|
|
11289
12268
|
});
|
|
11290
12269
|
return unsub;
|
|
@@ -11300,9 +12279,45 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
|
|
|
11300
12279
|
createEffect(() => {
|
|
11301
12280
|
setValue(callback(queryCache));
|
|
11302
12281
|
});
|
|
11303
|
-
|
|
12282
|
+
queryCacheMap.set(callback, setValue);
|
|
11304
12283
|
onCleanup(() => {
|
|
11305
|
-
|
|
12284
|
+
queryCacheMap.delete(callback);
|
|
12285
|
+
});
|
|
12286
|
+
return value;
|
|
12287
|
+
};
|
|
12288
|
+
var mutationCacheMap = /* @__PURE__ */ new Map();
|
|
12289
|
+
var setupMutationCacheSubscription = () => {
|
|
12290
|
+
const mutationCache = createMemo(() => {
|
|
12291
|
+
const client = useQueryDevtoolsContext().client;
|
|
12292
|
+
return client.getMutationCache();
|
|
12293
|
+
});
|
|
12294
|
+
const unsub = mutationCache().subscribe(() => {
|
|
12295
|
+
for (const [callback, setter] of mutationCacheMap.entries()) {
|
|
12296
|
+
queueMicrotask(() => {
|
|
12297
|
+
setter(callback(mutationCache));
|
|
12298
|
+
});
|
|
12299
|
+
}
|
|
12300
|
+
});
|
|
12301
|
+
onCleanup(() => {
|
|
12302
|
+
mutationCacheMap.clear();
|
|
12303
|
+
unsub();
|
|
12304
|
+
});
|
|
12305
|
+
return unsub;
|
|
12306
|
+
};
|
|
12307
|
+
var createSubscribeToMutationCacheBatcher = (callback, equalityCheck = true) => {
|
|
12308
|
+
const mutationCache = createMemo(() => {
|
|
12309
|
+
const client = useQueryDevtoolsContext().client;
|
|
12310
|
+
return client.getMutationCache();
|
|
12311
|
+
});
|
|
12312
|
+
const [value, setValue] = createSignal(callback(mutationCache), !equalityCheck ? {
|
|
12313
|
+
equals: false
|
|
12314
|
+
} : void 0);
|
|
12315
|
+
createEffect(() => {
|
|
12316
|
+
setValue(callback(mutationCache));
|
|
12317
|
+
});
|
|
12318
|
+
mutationCacheMap.set(callback, setValue);
|
|
12319
|
+
onCleanup(() => {
|
|
12320
|
+
mutationCacheMap.delete(callback);
|
|
11306
12321
|
});
|
|
11307
12322
|
return value;
|
|
11308
12323
|
};
|
|
@@ -11584,7 +12599,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11584
12599
|
justify-content: space-between;
|
|
11585
12600
|
align-items: center;
|
|
11586
12601
|
padding: ${tokens.size[2]} ${tokens.size[2.5]};
|
|
11587
|
-
gap: ${tokens.size[
|
|
12602
|
+
gap: ${tokens.size[2.5]};
|
|
11588
12603
|
border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
|
|
11589
12604
|
align-items: center;
|
|
11590
12605
|
& > button {
|
|
@@ -11596,8 +12611,19 @@ var stylesFactory2 = (theme) => {
|
|
|
11596
12611
|
flex-direction: column;
|
|
11597
12612
|
}
|
|
11598
12613
|
`,
|
|
12614
|
+
logoAndToggleContainer: u`
|
|
12615
|
+
display: flex;
|
|
12616
|
+
gap: ${tokens.size[3]};
|
|
12617
|
+
align-items: center;
|
|
12618
|
+
`,
|
|
11599
12619
|
logo: u`
|
|
11600
12620
|
cursor: pointer;
|
|
12621
|
+
display: flex;
|
|
12622
|
+
flex-direction: column;
|
|
12623
|
+
background-color: transparent;
|
|
12624
|
+
border: none;
|
|
12625
|
+
gap: ${tokens.size[0.5]};
|
|
12626
|
+
padding: 0px;
|
|
11601
12627
|
&:hover {
|
|
11602
12628
|
opacity: 0.7;
|
|
11603
12629
|
}
|
|
@@ -11969,6 +12995,8 @@ var stylesFactory2 = (theme) => {
|
|
|
11969
12995
|
|
|
11970
12996
|
& pre {
|
|
11971
12997
|
margin: 0;
|
|
12998
|
+
display: flex;
|
|
12999
|
+
align-items: center;
|
|
11972
13000
|
}
|
|
11973
13001
|
`,
|
|
11974
13002
|
queryDetailsStatus: u`
|
|
@@ -12148,6 +13176,56 @@ var stylesFactory2 = (theme) => {
|
|
|
12148
13176
|
&:hover {
|
|
12149
13177
|
background-color: ${t2(colors.purple[100], colors.purple[900])};
|
|
12150
13178
|
}
|
|
13179
|
+
`,
|
|
13180
|
+
viewToggle: u`
|
|
13181
|
+
border-radius: ${tokens.border.radius.sm};
|
|
13182
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[600])};
|
|
13183
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
13184
|
+
display: flex;
|
|
13185
|
+
padding: 0;
|
|
13186
|
+
font-size: ${font.size.xs};
|
|
13187
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
13188
|
+
overflow: hidden;
|
|
13189
|
+
|
|
13190
|
+
&:has(:focus-visible) {
|
|
13191
|
+
outline: 2px solid ${colors.blue[800]};
|
|
13192
|
+
}
|
|
13193
|
+
|
|
13194
|
+
& .tsqd-radio-toggle {
|
|
13195
|
+
opacity: 0.5;
|
|
13196
|
+
display: flex;
|
|
13197
|
+
& label {
|
|
13198
|
+
display: flex;
|
|
13199
|
+
align-items: center;
|
|
13200
|
+
cursor: pointer;
|
|
13201
|
+
line-height: ${font.lineHeight.md};
|
|
13202
|
+
}
|
|
13203
|
+
|
|
13204
|
+
& label:hover {
|
|
13205
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[500])};
|
|
13206
|
+
}
|
|
13207
|
+
}
|
|
13208
|
+
|
|
13209
|
+
& > [data-checked] {
|
|
13210
|
+
opacity: 1;
|
|
13211
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
13212
|
+
& label:hover {
|
|
13213
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
13214
|
+
}
|
|
13215
|
+
}
|
|
13216
|
+
|
|
13217
|
+
& .tsqd-radio-toggle:first-child {
|
|
13218
|
+
& label {
|
|
13219
|
+
padding: 0 ${tokens.size[1.5]} 0 ${tokens.size[2]};
|
|
13220
|
+
}
|
|
13221
|
+
border-right: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
13222
|
+
}
|
|
13223
|
+
|
|
13224
|
+
& .tsqd-radio-toggle:nth-child(2) {
|
|
13225
|
+
& label {
|
|
13226
|
+
padding: 0 ${tokens.size[2]} 0 ${tokens.size[1.5]};
|
|
13227
|
+
}
|
|
13228
|
+
}
|
|
12151
13229
|
`
|
|
12152
13230
|
};
|
|
12153
13231
|
};
|
|
@@ -12360,8 +13438,6 @@ delegateEvents(["click", "mousedown", "input"]);
|
|
|
12360
13438
|
* Credits to the zag team:
|
|
12361
13439
|
* https://github.com/chakra-ui/zag/blob/c1e6c7689b22bf58741ded7cf224dd9baec2a046/packages/utilities/form-utils/src/form.ts
|
|
12362
13440
|
*)
|
|
12363
|
-
|
|
12364
|
-
@kobalte/core/dist/esm/index.js:
|
|
12365
13441
|
(*!
|
|
12366
13442
|
* Portions of this file are based on code from react-spectrum.
|
|
12367
13443
|
* Apache License Version 2.0, Copyright 2020 Adobe.
|
|
@@ -12716,4 +13792,4 @@ delegateEvents(["click", "mousedown", "input"]);
|
|
|
12716
13792
|
*)
|
|
12717
13793
|
*/
|
|
12718
13794
|
|
|
12719
|
-
export { Devtools, DevtoolsComponent, DevtoolsPanel, QueryRow, QueryStatus, QueryStatusCount, Devtools_default as default };
|
|
13795
|
+
export { Devtools, DevtoolsComponent, DevtoolsPanel, MutationRow, MutationStatusCount, QueryRow, QueryStatus, QueryStatusCount, Devtools_default as default };
|