@tanstack/query-devtools 5.0.5 → 5.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { createContext, delegateEvents, createSignal, createMemo, createComponent, createEffect, insert, Show, createRenderEffect, className, on, onMount, 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';
1
+ import { createContext, delegateEvents, createSignal, createMemo, createComponent, createEffect, onMount, onCleanup, use, insert, Show, createRenderEffect, className, on, setAttribute, spread, mergeProps, For, isServer, $PROXY, $TRACK, getListener, batch, createUniqueId, useContext, Index, template, untrack, useTransition, createRoot, splitProps, Portal, addEventListener, Switch, Match, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/Z53XT47W.js';
2
2
 
3
3
  // ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.8.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
4
4
  var characterMap = {
@@ -3987,6 +3987,29 @@ function createFocusScope(props, ref) {
3987
3987
  });
3988
3988
  });
3989
3989
  }
3990
+ function createFormResetListener(element, handler) {
3991
+ createEffect(on(element, (element2) => {
3992
+ if (element2 == null) {
3993
+ return;
3994
+ }
3995
+ const form = getClosestForm(element2);
3996
+ if (form == null) {
3997
+ return;
3998
+ }
3999
+ form.addEventListener("reset", handler, {
4000
+ passive: true
4001
+ });
4002
+ onCleanup(() => {
4003
+ form.removeEventListener("reset", handler);
4004
+ });
4005
+ }));
4006
+ }
4007
+ function getClosestForm(element) {
4008
+ return isFormElement(element) ? element.form : element.closest("form");
4009
+ }
4010
+ function isFormElement(element) {
4011
+ return element.matches("textarea, input, select, button");
4012
+ }
3990
4013
  var DATA_LIVE_ANNOUNCER_ATTR = "data-live-announcer";
3991
4014
  function createHideOutside(props) {
3992
4015
  createEffect(() => {
@@ -4422,7 +4445,72 @@ function createToggleState(props = {}) {
4422
4445
  toggle
4423
4446
  };
4424
4447
  }
4425
- createContext();
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
- createContext();
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
- 25: "#FFFBFA",
7955
- 50: "#FEF3F2",
7956
- 100: "#FEE4E2",
7957
- 200: "#FECDCA",
7958
- 300: "#FDA29B",
7959
- 400: "#F97066",
7960
- 500: "#F04438",
7961
- 600: "#D92D20",
7962
- 700: "#B42318",
7963
- 800: "#912018",
7964
- 900: "#7A271A"
8420
+ 50: "#fef2f2",
8421
+ 100: "#fee2e2",
8422
+ 200: "#fecaca",
8423
+ 300: "#fca5a5",
8424
+ 400: "#f87171",
8425
+ 500: "#ef4444",
8426
+ 600: "#dc2626",
8427
+ 700: "#b91c1c",
8428
+ 800: "#991b1b",
8429
+ 900: "#7f1d1d",
8430
+ 950: "#450a0a"
7965
8431
  },
7966
8432
  yellow: {
7967
8433
  25: "#FFFCF5",
@@ -8044,35 +8510,35 @@ var tokens = {
8044
8510
  },
8045
8511
  font: {
8046
8512
  size: {
8047
- "2xs": "0.625rem",
8048
- xs: "0.75rem",
8049
- sm: "0.875rem",
8050
- md: "1rem",
8051
- lg: "1.125rem",
8052
- xl: "1.25rem",
8053
- "2xl": "1.5rem",
8054
- "3xl": "1.875rem",
8055
- "4xl": "2.25rem",
8056
- "5xl": "3rem",
8057
- "6xl": "3.75rem",
8058
- "7xl": "4.5rem",
8059
- "8xl": "6rem",
8060
- "9xl": "8rem"
8513
+ "2xs": "calc(var(--tsqd-font-size) * 0.625)",
8514
+ xs: "calc(var(--tsqd-font-size) * 0.75)",
8515
+ sm: "calc(var(--tsqd-font-size) * 0.875)",
8516
+ md: "var(--tsqd-font-size)",
8517
+ lg: "calc(var(--tsqd-font-size) * 1.125)",
8518
+ xl: "calc(var(--tsqd-font-size) * 1.25)",
8519
+ "2xl": "calc(var(--tsqd-font-size) * 1.5)",
8520
+ "3xl": "calc(var(--tsqd-font-size) * 1.875)",
8521
+ "4xl": "calc(var(--tsqd-font-size) * 2.25)",
8522
+ "5xl": "calc(var(--tsqd-font-size) * 3)",
8523
+ "6xl": "calc(var(--tsqd-font-size) * 3.75)",
8524
+ "7xl": "calc(var(--tsqd-font-size) * 4.5)",
8525
+ "8xl": "calc(var(--tsqd-font-size) * 6)",
8526
+ "9xl": "calc(var(--tsqd-font-size) * 8)"
8061
8527
  },
8062
8528
  lineHeight: {
8063
- xs: "1rem",
8064
- sm: "1.25rem",
8065
- md: "1.5rem",
8066
- lg: "1.75rem",
8067
- xl: "1.75rem",
8068
- "2xl": "2rem",
8069
- "3xl": "2.25rem",
8070
- "4xl": "2.5rem",
8071
- "5xl": "1",
8072
- "6xl": "1",
8073
- "7xl": "1",
8074
- "8xl": "1",
8075
- "9xl": "1"
8529
+ xs: "calc(var(--tsqd-font-size) * 1)",
8530
+ sm: "calc(var(--tsqd-font-size) * 1.25)",
8531
+ md: "calc(var(--tsqd-font-size) * 1.5)",
8532
+ lg: "calc(var(--tsqd-font-size) * 1.75)",
8533
+ xl: "calc(var(--tsqd-font-size) * 2)",
8534
+ "2xl": "calc(var(--tsqd-font-size) * 2.25)",
8535
+ "3xl": "calc(var(--tsqd-font-size) * 2.5)",
8536
+ "4xl": "calc(var(--tsqd-font-size) * 2.75)",
8537
+ "5xl": "calc(var(--tsqd-font-size) * 3)",
8538
+ "6xl": "calc(var(--tsqd-font-size) * 3.25)",
8539
+ "7xl": "calc(var(--tsqd-font-size) * 3.5)",
8540
+ "8xl": "calc(var(--tsqd-font-size) * 3.75)",
8541
+ "9xl": "calc(var(--tsqd-font-size) * 4)"
8076
8542
  },
8077
8543
  weight: {
8078
8544
  thin: "100",
@@ -8097,55 +8563,55 @@ var tokens = {
8097
8563
  border: {
8098
8564
  radius: {
8099
8565
  none: "0px",
8100
- xs: "0.125rem",
8101
- sm: "0.25rem",
8102
- md: "0.375rem",
8103
- lg: "0.5rem",
8104
- xl: "0.75rem",
8105
- "2xl": "1rem",
8106
- "3xl": "1.5rem",
8566
+ xs: "calc(var(--tsqd-font-size) * 0.125)",
8567
+ sm: "calc(var(--tsqd-font-size) * 0.25)",
8568
+ md: "calc(var(--tsqd-font-size) * 0.375)",
8569
+ lg: "calc(var(--tsqd-font-size) * 0.5)",
8570
+ xl: "calc(var(--tsqd-font-size) * 0.75)",
8571
+ "2xl": "calc(var(--tsqd-font-size) * 1)",
8572
+ "3xl": "calc(var(--tsqd-font-size) * 1.5)",
8107
8573
  full: "9999px"
8108
8574
  }
8109
8575
  },
8110
8576
  size: {
8111
8577
  0: "0px",
8112
- 0.25: "0.0625rem",
8113
- 0.5: "0.125rem",
8114
- 1: "0.25rem",
8115
- 1.5: "0.375rem",
8116
- 2: "0.5rem",
8117
- 2.5: "0.625rem",
8118
- 3: "0.75rem",
8119
- 3.5: "0.875rem",
8120
- 4: "1rem",
8121
- 4.5: "1.125rem",
8122
- 5: "1.25rem",
8123
- 5.5: "1.375rem",
8124
- 6: "1.5rem",
8125
- 6.5: "1.625rem",
8126
- 7: "1.75rem",
8127
- 8: "2rem",
8128
- 9: "2.25rem",
8129
- 10: "2.5rem",
8130
- 11: "2.75rem",
8131
- 12: "3rem",
8132
- 14: "3.5rem",
8133
- 16: "4rem",
8134
- 20: "5rem",
8135
- 24: "6rem",
8136
- 28: "7rem",
8137
- 32: "8rem",
8138
- 36: "9rem",
8139
- 40: "10rem",
8140
- 44: "11rem",
8141
- 48: "12rem",
8142
- 52: "13rem",
8143
- 56: "14rem",
8144
- 60: "15rem",
8145
- 64: "16rem",
8146
- 72: "18rem",
8147
- 80: "20rem",
8148
- 96: "24rem"
8578
+ 0.25: "calc(var(--tsqd-font-size) * 0.0625)",
8579
+ 0.5: "calc(var(--tsqd-font-size) * 0.125)",
8580
+ 1: "calc(var(--tsqd-font-size) * 0.25)",
8581
+ 1.5: "calc(var(--tsqd-font-size) * 0.375)",
8582
+ 2: "calc(var(--tsqd-font-size) * 0.5)",
8583
+ 2.5: "calc(var(--tsqd-font-size) * 0.625)",
8584
+ 3: "calc(var(--tsqd-font-size) * 0.75)",
8585
+ 3.5: "calc(var(--tsqd-font-size) * 0.875)",
8586
+ 4: "calc(var(--tsqd-font-size) * 1)",
8587
+ 4.5: "calc(var(--tsqd-font-size) * 1.125)",
8588
+ 5: "calc(var(--tsqd-font-size) * 1.25)",
8589
+ 5.5: "calc(var(--tsqd-font-size) * 1.375)",
8590
+ 6: "calc(var(--tsqd-font-size) * 1.5)",
8591
+ 6.5: "calc(var(--tsqd-font-size) * 1.625)",
8592
+ 7: "calc(var(--tsqd-font-size) * 1.75)",
8593
+ 8: "calc(var(--tsqd-font-size) * 2)",
8594
+ 9: "calc(var(--tsqd-font-size) * 2.25)",
8595
+ 10: "calc(var(--tsqd-font-size) * 2.5)",
8596
+ 11: "calc(var(--tsqd-font-size) * 2.75)",
8597
+ 12: "calc(var(--tsqd-font-size) * 3)",
8598
+ 14: "calc(var(--tsqd-font-size) * 3.5)",
8599
+ 16: "calc(var(--tsqd-font-size) * 4)",
8600
+ 20: "calc(var(--tsqd-font-size) * 5)",
8601
+ 24: "calc(var(--tsqd-font-size) * 6)",
8602
+ 28: "calc(var(--tsqd-font-size) * 7)",
8603
+ 32: "calc(var(--tsqd-font-size) * 8)",
8604
+ 36: "calc(var(--tsqd-font-size) * 9)",
8605
+ 40: "calc(var(--tsqd-font-size) * 10)",
8606
+ 44: "calc(var(--tsqd-font-size) * 11)",
8607
+ 48: "calc(var(--tsqd-font-size) * 12)",
8608
+ 52: "calc(var(--tsqd-font-size) * 13)",
8609
+ 56: "calc(var(--tsqd-font-size) * 14)",
8610
+ 60: "calc(var(--tsqd-font-size) * 15)",
8611
+ 64: "calc(var(--tsqd-font-size) * 16)",
8612
+ 72: "calc(var(--tsqd-font-size) * 18)",
8613
+ 80: "calc(var(--tsqd-font-size) * 20)",
8614
+ 96: "calc(var(--tsqd-font-size) * 24)"
8149
8615
  },
8150
8616
  shadow: Shadow,
8151
8617
  zIndices: {
@@ -9211,6 +9677,12 @@ function getQueryStatusColor({
9211
9677
  }) {
9212
9678
  return queryState.fetchStatus === "fetching" ? "blue" : !observerCount ? "gray" : queryState.fetchStatus === "paused" ? "purple" : isStale ? "yellow" : "green";
9213
9679
  }
9680
+ function getMutationStatusColor({
9681
+ status,
9682
+ isPaused
9683
+ }) {
9684
+ return isPaused ? "purple" : status === "error" ? "red" : status === "pending" ? "yellow" : status === "success" ? "green" : "gray";
9685
+ }
9214
9686
  function getQueryStatusColorByLabel(label) {
9215
9687
  return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
9216
9688
  }
@@ -9234,6 +9706,18 @@ var sortFns = {
9234
9706
  "query hash": queryHashSort,
9235
9707
  "last updated": dateSort
9236
9708
  };
9709
+ var getMutationStatusRank = (m) => m.state.isPaused ? 0 : m.state.status === "error" ? 2 : m.state.status === "pending" ? 1 : 3;
9710
+ var mutationDateSort = (a2, b2) => a2.state.submittedAt < b2.state.submittedAt ? 1 : -1;
9711
+ var mutationStatusSort = (a2, b2) => {
9712
+ if (getMutationStatusRank(a2) === getMutationStatusRank(b2)) {
9713
+ return mutationDateSort(a2, b2);
9714
+ }
9715
+ return getMutationStatusRank(a2) > getMutationStatusRank(b2) ? 1 : -1;
9716
+ };
9717
+ var mutationSortFns = {
9718
+ status: mutationStatusSort,
9719
+ "last updated": mutationDateSort
9720
+ };
9237
9721
  var convertRemToPixels = (rem) => {
9238
9722
  return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
9239
9723
  };
@@ -9348,7 +9832,11 @@ var _tmpl$13 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24
9348
9832
  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>`);
9349
9833
  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>`);
9350
9834
  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>`);
9351
- 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>`);
9835
+ 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>`);
9836
+ 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>`);
9837
+ 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>`);
9838
+ 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>`);
9839
+ 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>`);
9352
9840
  function Search() {
9353
9841
  return _tmpl$();
9354
9842
  }
@@ -9433,89 +9921,101 @@ function Check(props) {
9433
9921
  }
9434
9922
  })];
9435
9923
  }
9924
+ function CheckCircle() {
9925
+ return _tmpl$17();
9926
+ }
9927
+ function LoadingCircle() {
9928
+ return _tmpl$18();
9929
+ }
9930
+ function XCircle() {
9931
+ return _tmpl$19();
9932
+ }
9933
+ function PauseCircle() {
9934
+ return _tmpl$20();
9935
+ }
9436
9936
  function TanstackLogo() {
9437
9937
  const id = createUniqueId();
9438
9938
  return (() => {
9439
- const _el$23 = _tmpl$17(), _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling, _el$26 = _el$25.nextSibling, _el$27 = _el$26.firstChild, _el$28 = _el$26.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$28.nextSibling, _el$31 = _el$30.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$31.nextSibling, _el$34 = _el$33.firstChild, _el$35 = _el$33.nextSibling, _el$36 = _el$35.nextSibling, _el$37 = _el$36.firstChild, _el$38 = _el$36.nextSibling, _el$39 = _el$38.firstChild, _el$40 = _el$38.nextSibling, _el$41 = _el$40.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$41.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$43.nextSibling, _el$46 = _el$45.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$46.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$48.nextSibling, _el$51 = _el$50.nextSibling, _el$52 = _el$51.firstChild, _el$53 = _el$51.nextSibling, _el$54 = _el$53.firstChild, _el$55 = _el$53.nextSibling, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$56.nextSibling, _el$59 = _el$58.firstChild, _el$60 = _el$58.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$62.nextSibling, _el$64 = _el$63.nextSibling, _el$65 = _el$64.nextSibling, _el$66 = _el$60.nextSibling, _el$67 = _el$66.firstChild, _el$68 = _el$66.nextSibling, _el$69 = _el$68.firstChild, _el$70 = _el$68.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$71.nextSibling, _el$73 = _el$72.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling, _el$79 = _el$78.nextSibling, _el$80 = _el$79.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$70.nextSibling, _el$87 = _el$86.firstChild, _el$88 = _el$86.nextSibling, _el$89 = _el$88.firstChild, _el$90 = _el$88.nextSibling, _el$91 = _el$90.firstChild, _el$92 = _el$91.nextSibling, _el$93 = _el$90.nextSibling, _el$94 = _el$93.firstChild, _el$95 = _el$93.nextSibling, _el$96 = _el$95.firstChild, _el$97 = _el$95.nextSibling, _el$98 = _el$97.firstChild, _el$99 = _el$98.nextSibling, _el$100 = _el$99.nextSibling, _el$101 = _el$100.nextSibling, _el$102 = _el$101.nextSibling, _el$103 = _el$102.nextSibling, _el$104 = _el$103.nextSibling, _el$105 = _el$104.nextSibling, _el$106 = _el$105.nextSibling, _el$107 = _el$106.nextSibling, _el$108 = _el$107.nextSibling, _el$109 = _el$108.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling;
9440
- setAttribute(_el$24, "id", `a-${id}`);
9441
- setAttribute(_el$25, "fill", `url(#a-${id})`);
9442
- setAttribute(_el$27, "id", `am-${id}`);
9443
- setAttribute(_el$28, "id", `b-${id}`);
9444
- setAttribute(_el$29, "filter", `url(#am-${id})`);
9445
- setAttribute(_el$30, "mask", `url(#b-${id})`);
9446
- setAttribute(_el$32, "id", `ah-${id}`);
9447
- setAttribute(_el$33, "id", `k-${id}`);
9448
- setAttribute(_el$34, "filter", `url(#ah-${id})`);
9449
- setAttribute(_el$35, "mask", `url(#k-${id})`);
9450
- setAttribute(_el$37, "id", `ae-${id}`);
9451
- setAttribute(_el$38, "id", `j-${id}`);
9452
- setAttribute(_el$39, "filter", `url(#ae-${id})`);
9453
- setAttribute(_el$40, "mask", `url(#j-${id})`);
9454
- setAttribute(_el$42, "id", `ai-${id}`);
9455
- setAttribute(_el$43, "id", `i-${id}`);
9456
- setAttribute(_el$44, "filter", `url(#ai-${id})`);
9457
- setAttribute(_el$45, "mask", `url(#i-${id})`);
9458
- setAttribute(_el$47, "id", `aj-${id}`);
9459
- setAttribute(_el$48, "id", `h-${id}`);
9460
- setAttribute(_el$49, "filter", `url(#aj-${id})`);
9461
- setAttribute(_el$50, "mask", `url(#h-${id})`);
9462
- setAttribute(_el$52, "id", `ag-${id}`);
9463
- setAttribute(_el$53, "id", `g-${id}`);
9464
- setAttribute(_el$54, "filter", `url(#ag-${id})`);
9465
- setAttribute(_el$55, "mask", `url(#g-${id})`);
9466
- setAttribute(_el$57, "id", `af-${id}`);
9467
- setAttribute(_el$58, "id", `f-${id}`);
9468
- setAttribute(_el$59, "filter", `url(#af-${id})`);
9469
- setAttribute(_el$60, "mask", `url(#f-${id})`);
9470
- setAttribute(_el$64, "id", `m-${id}`);
9471
- setAttribute(_el$65, "fill", `url(#m-${id})`);
9472
- setAttribute(_el$67, "id", `ak-${id}`);
9473
- setAttribute(_el$68, "id", `e-${id}`);
9474
- setAttribute(_el$69, "filter", `url(#ak-${id})`);
9475
- setAttribute(_el$70, "mask", `url(#e-${id})`);
9476
- setAttribute(_el$71, "id", `n-${id}`);
9477
- setAttribute(_el$72, "fill", `url(#n-${id})`);
9478
- setAttribute(_el$74, "id", `r-${id}`);
9479
- setAttribute(_el$75, "fill", `url(#r-${id})`);
9480
- setAttribute(_el$76, "id", `s-${id}`);
9481
- setAttribute(_el$77, "fill", `url(#s-${id})`);
9482
- setAttribute(_el$78, "id", `q-${id}`);
9483
- setAttribute(_el$79, "fill", `url(#q-${id})`);
9484
- setAttribute(_el$80, "id", `p-${id}`);
9485
- setAttribute(_el$81, "fill", `url(#p-${id})`);
9486
- setAttribute(_el$82, "id", `o-${id}`);
9487
- setAttribute(_el$83, "fill", `url(#o-${id})`);
9488
- setAttribute(_el$84, "id", `l-${id}`);
9489
- setAttribute(_el$85, "fill", `url(#l-${id})`);
9490
- setAttribute(_el$87, "id", `al-${id}`);
9491
- setAttribute(_el$88, "id", `d-${id}`);
9492
- setAttribute(_el$89, "filter", `url(#al-${id})`);
9493
- setAttribute(_el$90, "mask", `url(#d-${id})`);
9494
- setAttribute(_el$91, "id", `u-${id}`);
9495
- setAttribute(_el$92, "fill", `url(#u-${id})`);
9496
- setAttribute(_el$94, "id", `ad-${id}`);
9497
- setAttribute(_el$95, "id", `c-${id}`);
9498
- setAttribute(_el$96, "filter", `url(#ad-${id})`);
9499
- setAttribute(_el$97, "mask", `url(#c-${id})`);
9500
- setAttribute(_el$98, "id", `t-${id}`);
9501
- setAttribute(_el$99, "fill", `url(#t-${id})`);
9502
- setAttribute(_el$100, "id", `v-${id}`);
9503
- setAttribute(_el$101, "stroke", `url(#v-${id})`);
9504
- setAttribute(_el$102, "id", `aa-${id}`);
9505
- setAttribute(_el$103, "stroke", `url(#aa-${id})`);
9506
- setAttribute(_el$104, "id", `w-${id}`);
9507
- setAttribute(_el$105, "stroke", `url(#w-${id})`);
9508
- setAttribute(_el$106, "id", `ac-${id}`);
9509
- setAttribute(_el$107, "stroke", `url(#ac-${id})`);
9510
- setAttribute(_el$108, "id", `ab-${id}`);
9511
- setAttribute(_el$109, "stroke", `url(#ab-${id})`);
9512
- setAttribute(_el$110, "id", `y-${id}`);
9513
- setAttribute(_el$111, "stroke", `url(#y-${id})`);
9514
- setAttribute(_el$112, "id", `x-${id}`);
9515
- setAttribute(_el$113, "stroke", `url(#x-${id})`);
9516
- setAttribute(_el$114, "id", `z-${id}`);
9517
- setAttribute(_el$115, "stroke", `url(#z-${id})`);
9518
- return _el$23;
9939
+ 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;
9940
+ setAttribute(_el$28, "id", `a-${id}`);
9941
+ setAttribute(_el$29, "fill", `url(#a-${id})`);
9942
+ setAttribute(_el$31, "id", `am-${id}`);
9943
+ setAttribute(_el$32, "id", `b-${id}`);
9944
+ setAttribute(_el$33, "filter", `url(#am-${id})`);
9945
+ setAttribute(_el$34, "mask", `url(#b-${id})`);
9946
+ setAttribute(_el$36, "id", `ah-${id}`);
9947
+ setAttribute(_el$37, "id", `k-${id}`);
9948
+ setAttribute(_el$38, "filter", `url(#ah-${id})`);
9949
+ setAttribute(_el$39, "mask", `url(#k-${id})`);
9950
+ setAttribute(_el$41, "id", `ae-${id}`);
9951
+ setAttribute(_el$42, "id", `j-${id}`);
9952
+ setAttribute(_el$43, "filter", `url(#ae-${id})`);
9953
+ setAttribute(_el$44, "mask", `url(#j-${id})`);
9954
+ setAttribute(_el$46, "id", `ai-${id}`);
9955
+ setAttribute(_el$47, "id", `i-${id}`);
9956
+ setAttribute(_el$48, "filter", `url(#ai-${id})`);
9957
+ setAttribute(_el$49, "mask", `url(#i-${id})`);
9958
+ setAttribute(_el$51, "id", `aj-${id}`);
9959
+ setAttribute(_el$52, "id", `h-${id}`);
9960
+ setAttribute(_el$53, "filter", `url(#aj-${id})`);
9961
+ setAttribute(_el$54, "mask", `url(#h-${id})`);
9962
+ setAttribute(_el$56, "id", `ag-${id}`);
9963
+ setAttribute(_el$57, "id", `g-${id}`);
9964
+ setAttribute(_el$58, "filter", `url(#ag-${id})`);
9965
+ setAttribute(_el$59, "mask", `url(#g-${id})`);
9966
+ setAttribute(_el$61, "id", `af-${id}`);
9967
+ setAttribute(_el$62, "id", `f-${id}`);
9968
+ setAttribute(_el$63, "filter", `url(#af-${id})`);
9969
+ setAttribute(_el$64, "mask", `url(#f-${id})`);
9970
+ setAttribute(_el$68, "id", `m-${id}`);
9971
+ setAttribute(_el$69, "fill", `url(#m-${id})`);
9972
+ setAttribute(_el$71, "id", `ak-${id}`);
9973
+ setAttribute(_el$72, "id", `e-${id}`);
9974
+ setAttribute(_el$73, "filter", `url(#ak-${id})`);
9975
+ setAttribute(_el$74, "mask", `url(#e-${id})`);
9976
+ setAttribute(_el$75, "id", `n-${id}`);
9977
+ setAttribute(_el$76, "fill", `url(#n-${id})`);
9978
+ setAttribute(_el$78, "id", `r-${id}`);
9979
+ setAttribute(_el$79, "fill", `url(#r-${id})`);
9980
+ setAttribute(_el$80, "id", `s-${id}`);
9981
+ setAttribute(_el$81, "fill", `url(#s-${id})`);
9982
+ setAttribute(_el$82, "id", `q-${id}`);
9983
+ setAttribute(_el$83, "fill", `url(#q-${id})`);
9984
+ setAttribute(_el$84, "id", `p-${id}`);
9985
+ setAttribute(_el$85, "fill", `url(#p-${id})`);
9986
+ setAttribute(_el$86, "id", `o-${id}`);
9987
+ setAttribute(_el$87, "fill", `url(#o-${id})`);
9988
+ setAttribute(_el$88, "id", `l-${id}`);
9989
+ setAttribute(_el$89, "fill", `url(#l-${id})`);
9990
+ setAttribute(_el$91, "id", `al-${id}`);
9991
+ setAttribute(_el$92, "id", `d-${id}`);
9992
+ setAttribute(_el$93, "filter", `url(#al-${id})`);
9993
+ setAttribute(_el$94, "mask", `url(#d-${id})`);
9994
+ setAttribute(_el$95, "id", `u-${id}`);
9995
+ setAttribute(_el$96, "fill", `url(#u-${id})`);
9996
+ setAttribute(_el$98, "id", `ad-${id}`);
9997
+ setAttribute(_el$99, "id", `c-${id}`);
9998
+ setAttribute(_el$100, "filter", `url(#ad-${id})`);
9999
+ setAttribute(_el$101, "mask", `url(#c-${id})`);
10000
+ setAttribute(_el$102, "id", `t-${id}`);
10001
+ setAttribute(_el$103, "fill", `url(#t-${id})`);
10002
+ setAttribute(_el$104, "id", `v-${id}`);
10003
+ setAttribute(_el$105, "stroke", `url(#v-${id})`);
10004
+ setAttribute(_el$106, "id", `aa-${id}`);
10005
+ setAttribute(_el$107, "stroke", `url(#aa-${id})`);
10006
+ setAttribute(_el$108, "id", `w-${id}`);
10007
+ setAttribute(_el$109, "stroke", `url(#w-${id})`);
10008
+ setAttribute(_el$110, "id", `ac-${id}`);
10009
+ setAttribute(_el$111, "stroke", `url(#ac-${id})`);
10010
+ setAttribute(_el$112, "id", `ab-${id}`);
10011
+ setAttribute(_el$113, "stroke", `url(#ab-${id})`);
10012
+ setAttribute(_el$114, "id", `y-${id}`);
10013
+ setAttribute(_el$115, "stroke", `url(#y-${id})`);
10014
+ setAttribute(_el$116, "id", `x-${id}`);
10015
+ setAttribute(_el$117, "stroke", `url(#x-${id})`);
10016
+ setAttribute(_el$118, "id", `z-${id}`);
10017
+ setAttribute(_el$119, "stroke", `url(#z-${id})`);
10018
+ return _el$27;
9519
10019
  })();
9520
10020
  }
9521
10021
 
@@ -9537,8 +10037,8 @@ function useTheme() {
9537
10037
  }
9538
10038
 
9539
10039
  // src/Explorer.tsx
9540
- var _tmpl$18 = /* @__PURE__ */ template(`<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9541
- var _tmpl$22 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
10040
+ 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>`);
10041
+ var _tmpl$23 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
9542
10042
  var _tmpl$32 = /* @__PURE__ */ template(`<button title="Remove all items"aria-label="Remove all items">`);
9543
10043
  var _tmpl$42 = /* @__PURE__ */ template(`<button title="Delete item"aria-label="Delete item">`);
9544
10044
  var _tmpl$52 = /* @__PURE__ */ template(`<button title="Toggle value"aria-label="Toggle value">`);
@@ -9565,7 +10065,7 @@ var Expander = (props) => {
9565
10065
  return theme() === "dark" ? darkStyles : lightStyles;
9566
10066
  });
9567
10067
  return (() => {
9568
- const _el$ = _tmpl$18();
10068
+ const _el$ = _tmpl$22();
9569
10069
  createRenderEffect(() => className(_el$, clsx(styles().expander, u`
9570
10070
  transform: rotate(${props.expanded ? 90 : 0}deg);
9571
10071
  `, props.expanded && u`
@@ -9583,7 +10083,7 @@ var CopyButton = (props) => {
9583
10083
  });
9584
10084
  const [copyState, setCopyState] = createSignal("NoCopy");
9585
10085
  return (() => {
9586
- const _el$2 = _tmpl$22();
10086
+ const _el$2 = _tmpl$23();
9587
10087
  addEventListener(_el$2, "click", copyState() === "NoCopy" ? () => {
9588
10088
  navigator.clipboard.writeText(stringify(props.value)).then(() => {
9589
10089
  setCopyState("SuccessCopy");
@@ -10079,8 +10579,8 @@ var stylesFactory = (theme) => {
10079
10579
  expanderButtonContainer: u`
10080
10580
  display: flex;
10081
10581
  align-items: center;
10082
- line-height: 1.125rem;
10083
- min-height: 1.125rem;
10582
+ line-height: ${size2[4]};
10583
+ min-height: ${size2[4]};
10084
10584
  gap: ${size2[2]};
10085
10585
  `,
10086
10586
  expanderButton: u`
@@ -10088,7 +10588,7 @@ var stylesFactory = (theme) => {
10088
10588
  color: inherit;
10089
10589
  font: inherit;
10090
10590
  outline: inherit;
10091
- height: 1rem;
10591
+ height: ${size2[5]};
10092
10592
  background: transparent;
10093
10593
  border: none;
10094
10594
  padding: 0;
@@ -10130,8 +10630,8 @@ var stylesFactory = (theme) => {
10130
10630
  display: inline-flex;
10131
10631
  gap: ${size2[2]};
10132
10632
  width: 100%;
10133
- margin-bottom: ${size2[0.5]};
10134
- line-height: 1.125rem;
10633
+ margin: ${size2[0.25]} 0px;
10634
+ line-height: ${size2[4.5]};
10135
10635
  align-items: center;
10136
10636
  `,
10137
10637
  editableInput: u`
@@ -10184,31 +10684,36 @@ var loadFonts = () => {
10184
10684
  };
10185
10685
 
10186
10686
  // src/Devtools.tsx
10187
- var _tmpl$19 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
10188
- var _tmpl$23 = /* @__PURE__ */ template(`<div>`);
10189
- var _tmpl$33 = /* @__PURE__ */ template(`<span>Asc`);
10190
- var _tmpl$43 = /* @__PURE__ */ template(`<span>Desc`);
10191
- var _tmpl$53 = /* @__PURE__ */ template(`<div>Settings`);
10192
- var _tmpl$63 = /* @__PURE__ */ template(`<span>Position`);
10193
- var _tmpl$73 = /* @__PURE__ */ template(`<span>Top`);
10194
- var _tmpl$83 = /* @__PURE__ */ template(`<span>Bottom`);
10195
- var _tmpl$93 = /* @__PURE__ */ template(`<span>Left`);
10196
- var _tmpl$103 = /* @__PURE__ */ template(`<span>Right`);
10197
- var _tmpl$113 = /* @__PURE__ */ template(`<span>Theme`);
10198
- var _tmpl$122 = /* @__PURE__ */ template(`<span>Light`);
10199
- var _tmpl$132 = /* @__PURE__ */ template(`<span>Dark`);
10200
- var _tmpl$142 = /* @__PURE__ */ template(`<span>System`);
10201
- var _tmpl$152 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools"></button><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter class=tsqd-query-filter-textfield></div><div><select></select></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"title="Clear query cache"></button><button></button></div></div><div><div class=tsqd-queries-container>`);
10202
- var _tmpl$162 = /* @__PURE__ */ template(`<option>Sort by `);
10203
- var _tmpl$172 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
10204
- var _tmpl$182 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
10205
- var _tmpl$192 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
10206
- var _tmpl$20 = /* @__PURE__ */ template(`<span>`);
10207
- var _tmpl$21 = /* @__PURE__ */ template(`<button><span></span><span>`);
10208
- var _tmpl$222 = /* @__PURE__ */ template(`<button><span></span> Error`);
10209
- var _tmpl$232 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
10210
- var _tmpl$24 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
10211
- var _tmpl$25 = /* @__PURE__ */ template(`<option>`);
10687
+ var _tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
10688
+ var _tmpl$25 = /* @__PURE__ */ template(`<div>`);
10689
+ var _tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
10690
+ var _tmpl$43 = /* @__PURE__ */ template(`<select>`);
10691
+ var _tmpl$53 = /* @__PURE__ */ template(`<span>Asc`);
10692
+ var _tmpl$63 = /* @__PURE__ */ template(`<span>Desc`);
10693
+ var _tmpl$73 = /* @__PURE__ */ template(`<div>Settings`);
10694
+ var _tmpl$83 = /* @__PURE__ */ template(`<span>Position`);
10695
+ var _tmpl$93 = /* @__PURE__ */ template(`<span>Top`);
10696
+ var _tmpl$103 = /* @__PURE__ */ template(`<span>Bottom`);
10697
+ var _tmpl$113 = /* @__PURE__ */ template(`<span>Left`);
10698
+ var _tmpl$122 = /* @__PURE__ */ template(`<span>Right`);
10699
+ var _tmpl$132 = /* @__PURE__ */ template(`<span>Theme`);
10700
+ var _tmpl$142 = /* @__PURE__ */ template(`<span>Light`);
10701
+ var _tmpl$152 = /* @__PURE__ */ template(`<span>Dark`);
10702
+ var _tmpl$162 = /* @__PURE__ */ template(`<span>System`);
10703
+ var _tmpl$172 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
10704
+ var _tmpl$182 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
10705
+ 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>`);
10706
+ var _tmpl$202 = /* @__PURE__ */ template(`<option>Sort by `);
10707
+ var _tmpl$212 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
10708
+ var _tmpl$222 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
10709
+ var _tmpl$232 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
10710
+ var _tmpl$242 = /* @__PURE__ */ template(`<span>`);
10711
+ var _tmpl$252 = /* @__PURE__ */ template(`<button><span></span><span>`);
10712
+ var _tmpl$26 = /* @__PURE__ */ template(`<button><span></span> Error`);
10713
+ var _tmpl$27 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
10714
+ 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">`);
10715
+ var _tmpl$29 = /* @__PURE__ */ template(`<option>`);
10716
+ 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">`);
10212
10717
  var firstBreakpoint = 1024;
10213
10718
  var secondBreakpoint = 796;
10214
10719
  var thirdBreakpoint = 700;
@@ -10220,7 +10725,9 @@ var DEFAULT_HEIGHT = 500;
10220
10725
  var DEFAULT_WIDTH = 500;
10221
10726
  var DEFAULT_SORT_FN_NAME = Object.keys(sortFns)[0];
10222
10727
  var DEFAULT_SORT_ORDER = 1;
10728
+ var DEFAULT_MUTATION_SORT_FN_NAME = Object.keys(mutationSortFns)[0];
10223
10729
  var [selectedQueryHash, setSelectedQueryHash] = createSignal(null);
10730
+ var [selectedMutationId, setSelectedMutationId] = createSignal(null);
10224
10731
  var [panelWidth, setPanelWidth] = createSignal(0);
10225
10732
  var DevtoolsComponent = (props) => {
10226
10733
  const [localStore, setLocalStore] = createLocalStorage({
@@ -10264,16 +10771,31 @@ var Devtools = (props) => {
10264
10771
  const position = createMemo(() => {
10265
10772
  return props.localStore.position || useQueryDevtoolsContext().position || POSITION;
10266
10773
  });
10774
+ let transitionsContainerRef;
10267
10775
  createEffect(() => {
10268
- const root = document.querySelector(".tsqd-parent-container");
10776
+ const root = transitionsContainerRef.parentElement;
10269
10777
  const height = props.localStore.height || DEFAULT_HEIGHT;
10270
10778
  const width = props.localStore.width || DEFAULT_WIDTH;
10271
10779
  const panelPosition = position();
10272
10780
  root.style.setProperty("--tsqd-panel-height", `${panelPosition === "top" ? "-" : ""}${height}px`);
10273
10781
  root.style.setProperty("--tsqd-panel-width", `${panelPosition === "left" ? "-" : ""}${width}px`);
10274
10782
  });
10783
+ onMount(() => {
10784
+ const onFocus = () => {
10785
+ const root = transitionsContainerRef.parentElement;
10786
+ const fontSize = getComputedStyle(root).fontSize;
10787
+ root.style.setProperty("--tsqd-font-size", fontSize);
10788
+ };
10789
+ onFocus();
10790
+ window.addEventListener("focus", onFocus);
10791
+ onCleanup(() => {
10792
+ window.removeEventListener("focus", onFocus);
10793
+ });
10794
+ });
10275
10795
  return (() => {
10276
- const _el$ = _tmpl$23();
10796
+ const _el$ = _tmpl$25();
10797
+ const _ref$ = transitionsContainerRef;
10798
+ typeof _ref$ === "function" ? use(_ref$, _el$) : transitionsContainerRef = _el$;
10277
10799
  insert(_el$, createComponent(TransitionGroup, {
10278
10800
  name: "tsqd-panel-transition",
10279
10801
  get children() {
@@ -10302,7 +10824,7 @@ var Devtools = (props) => {
10302
10824
  return !isOpen();
10303
10825
  },
10304
10826
  get children() {
10305
- const _el$2 = _tmpl$19(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
10827
+ const _el$2 = _tmpl$24(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
10306
10828
  insert(_el$3, createComponent(TanstackLogo, {}));
10307
10829
  _el$4.$$click = () => props.setLocalStore("open", "true");
10308
10830
  insert(_el$4, createComponent(TanstackLogo, {}));
@@ -10342,24 +10864,7 @@ var DevtoolsPanel = (props) => {
10342
10864
  return theme() === "dark" ? darkStyles2 : lightStyles2;
10343
10865
  });
10344
10866
  const [isResizing, setIsResizing] = createSignal(false);
10345
- const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
10346
- const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
10347
- const [offline, setOffline] = createSignal(false);
10348
10867
  const position = createMemo(() => props.localStore.position || useQueryDevtoolsContext().position || POSITION);
10349
- const sortFn = createMemo(() => sortFns[sort()]);
10350
- const onlineManager = createMemo(() => useQueryDevtoolsContext().onlineManager);
10351
- const cache = createMemo(() => {
10352
- return useQueryDevtoolsContext().client.getQueryCache();
10353
- });
10354
- const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
10355
- return queryCache().getAll().length;
10356
- }, false);
10357
- const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
10358
- const curr = cache().getAll();
10359
- const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
10360
- const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
10361
- return sorted;
10362
- }));
10363
10868
  const handleDragStart = (event) => {
10364
10869
  const panelElement = event.currentTarget.parentElement;
10365
10870
  if (!panelElement)
@@ -10407,8 +10912,6 @@ var DevtoolsPanel = (props) => {
10407
10912
  document.addEventListener("mousemove", runDrag, false);
10408
10913
  document.addEventListener("mouseup", unsub, false);
10409
10914
  };
10410
- setupQueryCacheSubscription();
10411
- let queriesContainerRef;
10412
10915
  let panelRef;
10413
10916
  onMount(() => {
10414
10917
  createResizeObserver(panelRef, ({
@@ -10419,9 +10922,6 @@ var DevtoolsPanel = (props) => {
10419
10922
  }
10420
10923
  });
10421
10924
  });
10422
- const setDevtoolsPosition = (pos) => {
10423
- props.setLocalStore("position", pos);
10424
- };
10425
10925
  createEffect(() => {
10426
10926
  const rootContainer = panelRef.parentElement?.parentElement?.parentElement;
10427
10927
  if (!rootContainer)
@@ -10466,52 +10966,238 @@ var DevtoolsPanel = (props) => {
10466
10966
  `;
10467
10967
  };
10468
10968
  return (() => {
10469
- const _el$5 = _tmpl$152(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.firstChild, _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$9.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$16.nextSibling, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$23 = _el$15.nextSibling, _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling, _el$36 = _el$14.nextSibling, _el$37 = _el$36.firstChild;
10470
- const _ref$ = panelRef;
10471
- typeof _ref$ === "function" ? use(_ref$, _el$5) : panelRef = _el$5;
10969
+ const _el$5 = _tmpl$33(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
10970
+ const _ref$2 = panelRef;
10971
+ typeof _ref$2 === "function" ? use(_ref$2, _el$5) : panelRef = _el$5;
10472
10972
  _el$6.$$mousedown = handleDragStart;
10473
10973
  _el$7.$$click = () => props.setLocalStore("open", "false");
10474
10974
  insert(_el$7, createComponent(ChevronDown, {}));
10475
- const _ref$2 = queriesContainerRef;
10476
- typeof _ref$2 === "function" ? use(_ref$2, _el$8) : queriesContainerRef = _el$8;
10477
- _el$10.$$click = () => props.setLocalStore("open", "false");
10478
- insert(_el$12, () => useQueryDevtoolsContext().queryFlavor, _el$13);
10479
- insert(_el$12, () => useQueryDevtoolsContext().version, null);
10480
- insert(_el$9, createComponent(QueryStatusCount, {}), null);
10481
- insert(_el$16, createComponent(Search, {}), _el$17);
10482
- _el$17.$$input = (e2) => props.setLocalStore("filter", e2.currentTarget.value);
10483
- _el$19.addEventListener("change", (e2) => props.setLocalStore("sort", e2.currentTarget.value));
10484
- insert(_el$19, () => Object.keys(sortFns).map((key) => (() => {
10485
- const _el$38 = _tmpl$162(); _el$38.firstChild;
10486
- _el$38.value = key;
10487
- insert(_el$38, key, null);
10488
- return _el$38;
10489
- })()));
10490
- insert(_el$18, createComponent(ChevronDown, {}), null);
10491
- _el$20.$$click = () => {
10492
- props.setLocalStore("sortOrder", String(sortOrder() * -1));
10493
- };
10494
- insert(_el$20, createComponent(Show, {
10495
- get when() {
10496
- return sortOrder() === 1;
10975
+ insert(_el$5, createComponent(ContentView, {
10976
+ get localStore() {
10977
+ return props.localStore;
10978
+ },
10979
+ get setLocalStore() {
10980
+ return props.setLocalStore;
10981
+ }
10982
+ }), null);
10983
+ createRenderEffect((_p$) => {
10984
+ const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
10985
+ [u`
10986
+ min-width: min-content;
10987
+ `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
10988
+ }, "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");
10989
+ _v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
10990
+ _v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
10991
+ _v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
10992
+ _v$4 !== _p$._v$4 && className(_el$6, _p$._v$4 = _v$4);
10993
+ _v$5 !== _p$._v$5 && className(_el$7, _p$._v$5 = _v$5);
10994
+ return _p$;
10995
+ }, {
10996
+ _v$: void 0,
10997
+ _v$2: void 0,
10998
+ _v$3: void 0,
10999
+ _v$4: void 0,
11000
+ _v$5: void 0
11001
+ });
11002
+ return _el$5;
11003
+ })();
11004
+ };
11005
+ var ContentView = (props) => {
11006
+ setupQueryCacheSubscription();
11007
+ setupMutationCacheSubscription();
11008
+ let containerRef;
11009
+ const theme = useTheme();
11010
+ const styles = createMemo(() => {
11011
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
11012
+ });
11013
+ const [selectedView, setSelectedView] = createSignal("queries");
11014
+ const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
11015
+ const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
11016
+ const mutationSort = createMemo(() => props.localStore.mutationSort || DEFAULT_MUTATION_SORT_FN_NAME);
11017
+ const mutationSortOrder = createMemo(() => Number(props.localStore.mutationSortOrder) || DEFAULT_SORT_ORDER);
11018
+ const [offline, setOffline] = createSignal(false);
11019
+ const sortFn = createMemo(() => sortFns[sort()]);
11020
+ const mutationSortFn = createMemo(() => mutationSortFns[mutationSort()]);
11021
+ const onlineManager = createMemo(() => useQueryDevtoolsContext().onlineManager);
11022
+ const query_cache = createMemo(() => {
11023
+ return useQueryDevtoolsContext().client.getQueryCache();
11024
+ });
11025
+ const mutation_cache = createMemo(() => {
11026
+ return useQueryDevtoolsContext().client.getMutationCache();
11027
+ });
11028
+ const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
11029
+ return queryCache().getAll().length;
11030
+ }, false);
11031
+ const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
11032
+ const curr = query_cache().getAll();
11033
+ const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
11034
+ const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
11035
+ return sorted;
11036
+ }));
11037
+ const mutationCount = createSubscribeToMutationCacheBatcher((mutationCache) => {
11038
+ return mutationCache().getAll().length;
11039
+ }, false);
11040
+ const mutations = createMemo(on(() => [mutationCount(), props.localStore.mutationFilter, mutationSort(), mutationSortOrder()], () => {
11041
+ const curr = mutation_cache().getAll();
11042
+ const filtered = props.localStore.mutationFilter ? curr.filter((item) => {
11043
+ const value = `${item.options.mutationKey ? JSON.stringify(item.options.mutationKey) + " - " : ""}${new Date(item.state.submittedAt).toLocaleString()}`;
11044
+ return rankItem(value, props.localStore.mutationFilter || "").passed;
11045
+ }) : [...curr];
11046
+ const sorted = mutationSortFn() ? filtered.sort((a2, b2) => mutationSortFn()(a2, b2) * mutationSortOrder()) : filtered;
11047
+ return sorted;
11048
+ }));
11049
+ const setDevtoolsPosition = (pos) => {
11050
+ props.setLocalStore("position", pos);
11051
+ };
11052
+ const setComputedVariables = (el) => {
11053
+ const computedStyle = getComputedStyle(containerRef);
11054
+ const variable = computedStyle.getPropertyValue("--tsqd-font-size");
11055
+ el.style.setProperty("--tsqd-font-size", variable);
11056
+ };
11057
+ return [(() => {
11058
+ 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;
11059
+ const _ref$3 = containerRef;
11060
+ typeof _ref$3 === "function" ? use(_ref$3, _el$8) : containerRef = _el$8;
11061
+ _el$11.$$click = () => props.setLocalStore("open", "false");
11062
+ insert(_el$13, () => useQueryDevtoolsContext().queryFlavor, _el$14);
11063
+ insert(_el$13, () => useQueryDevtoolsContext().version, null);
11064
+ insert(_el$10, createComponent(index$7.Root, {
11065
+ get ["class"]() {
11066
+ return clsx(styles().viewToggle);
11067
+ },
11068
+ get value() {
11069
+ return selectedView();
11070
+ },
11071
+ onChange: (value) => {
11072
+ setSelectedView(value);
11073
+ setSelectedQueryHash(null);
11074
+ setSelectedMutationId(null);
11075
+ },
11076
+ get children() {
11077
+ return [createComponent(index$7.Item, {
11078
+ value: "queries",
11079
+ "class": "tsqd-radio-toggle",
11080
+ get children() {
11081
+ return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
11082
+ get children() {
11083
+ return createComponent(index$7.ItemIndicator, {});
11084
+ }
11085
+ }), createComponent(index$7.ItemLabel, {
11086
+ title: "Toggle Queries View",
11087
+ children: "Queries"
11088
+ })];
11089
+ }
11090
+ }), createComponent(index$7.Item, {
11091
+ value: "mutations",
11092
+ "class": "tsqd-radio-toggle",
11093
+ get children() {
11094
+ return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
11095
+ get children() {
11096
+ return createComponent(index$7.ItemIndicator, {});
11097
+ }
11098
+ }), createComponent(index$7.ItemLabel, {
11099
+ title: "Toggle Mutations View",
11100
+ children: "Mutations"
11101
+ })];
11102
+ }
11103
+ })];
11104
+ }
11105
+ }), null);
11106
+ insert(_el$9, createComponent(Show, {
11107
+ get when() {
11108
+ return selectedView() === "queries";
11109
+ },
11110
+ get children() {
11111
+ return createComponent(QueryStatusCount, {});
11112
+ }
11113
+ }), null);
11114
+ insert(_el$9, createComponent(Show, {
11115
+ get when() {
11116
+ return selectedView() === "mutations";
11117
+ },
11118
+ get children() {
11119
+ return createComponent(MutationStatusCount, {});
11120
+ }
11121
+ }), null);
11122
+ insert(_el$17, createComponent(Search, {}), _el$18);
11123
+ _el$18.$$input = (e2) => {
11124
+ if (selectedView() === "queries") {
11125
+ props.setLocalStore("filter", e2.currentTarget.value);
11126
+ } else {
11127
+ props.setLocalStore("mutationFilter", e2.currentTarget.value);
11128
+ }
11129
+ };
11130
+ insert(_el$19, createComponent(Show, {
11131
+ get when() {
11132
+ return selectedView() === "queries";
10497
11133
  },
10498
11134
  get children() {
10499
- return [_tmpl$33(), createComponent(ArrowUp, {})];
11135
+ const _el$20 = _tmpl$43();
11136
+ _el$20.addEventListener("change", (e2) => {
11137
+ props.setLocalStore("sort", e2.currentTarget.value);
11138
+ });
11139
+ insert(_el$20, () => Object.keys(sortFns).map((key) => (() => {
11140
+ const _el$42 = _tmpl$202(); _el$42.firstChild;
11141
+ _el$42.value = key;
11142
+ insert(_el$42, key, null);
11143
+ return _el$42;
11144
+ })()));
11145
+ createRenderEffect(() => _el$20.value = sort());
11146
+ return _el$20;
10500
11147
  }
10501
11148
  }), null);
10502
- insert(_el$20, createComponent(Show, {
11149
+ insert(_el$19, createComponent(Show, {
10503
11150
  get when() {
10504
- return sortOrder() === -1;
11151
+ return selectedView() === "mutations";
10505
11152
  },
10506
11153
  get children() {
10507
- return [_tmpl$43(), createComponent(ArrowDown, {})];
11154
+ const _el$21 = _tmpl$43();
11155
+ _el$21.addEventListener("change", (e2) => {
11156
+ props.setLocalStore("mutationSort", e2.currentTarget.value);
11157
+ });
11158
+ insert(_el$21, () => Object.keys(mutationSortFns).map((key) => (() => {
11159
+ const _el$44 = _tmpl$202(); _el$44.firstChild;
11160
+ _el$44.value = key;
11161
+ insert(_el$44, key, null);
11162
+ return _el$44;
11163
+ })()));
11164
+ createRenderEffect(() => _el$21.value = mutationSort());
11165
+ return _el$21;
10508
11166
  }
10509
11167
  }), null);
10510
- _el$24.$$click = () => {
10511
- cache().clear();
11168
+ insert(_el$19, createComponent(ChevronDown, {}), null);
11169
+ _el$22.$$click = () => {
11170
+ if (selectedView() === "queries") {
11171
+ props.setLocalStore("sortOrder", String(sortOrder() * -1));
11172
+ } else {
11173
+ props.setLocalStore("mutationSortOrder", String(mutationSortOrder() * -1));
11174
+ }
10512
11175
  };
10513
- insert(_el$24, createComponent(Trash, {}));
10514
- _el$25.$$click = () => {
11176
+ insert(_el$22, createComponent(Show, {
11177
+ get when() {
11178
+ return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === 1;
11179
+ },
11180
+ get children() {
11181
+ return [_tmpl$53(), createComponent(ArrowUp, {})];
11182
+ }
11183
+ }), null);
11184
+ insert(_el$22, createComponent(Show, {
11185
+ get when() {
11186
+ return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1;
11187
+ },
11188
+ get children() {
11189
+ return [_tmpl$63(), createComponent(ArrowDown, {})];
11190
+ }
11191
+ }), null);
11192
+ _el$26.$$click = () => {
11193
+ if (selectedView() === "queries") {
11194
+ query_cache().clear();
11195
+ } else {
11196
+ mutation_cache().clear();
11197
+ }
11198
+ };
11199
+ insert(_el$26, createComponent(Trash, {}));
11200
+ _el$27.$$click = () => {
10515
11201
  if (offline()) {
10516
11202
  onlineManager().setOnline(true);
10517
11203
  setOffline(false);
@@ -10520,11 +11206,11 @@ var DevtoolsPanel = (props) => {
10520
11206
  setOffline(true);
10521
11207
  }
10522
11208
  };
10523
- insert(_el$25, (() => {
11209
+ insert(_el$27, (() => {
10524
11210
  const _c$ = createMemo(() => !!offline());
10525
11211
  return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
10526
11212
  })());
10527
- insert(_el$23, createComponent(index$d.Root, {
11213
+ insert(_el$25, createComponent(index$d.Root, {
10528
11214
  gutter: 4,
10529
11215
  get children() {
10530
11216
  return [createComponent(index$d.Trigger, {
@@ -10535,6 +11221,7 @@ var DevtoolsPanel = (props) => {
10535
11221
  return createComponent(Settings, {});
10536
11222
  }
10537
11223
  }), createComponent(index$d.Portal, {
11224
+ ref: (el) => setComputedVariables(el),
10538
11225
  get children() {
10539
11226
  return createComponent(index$d.Content, {
10540
11227
  get ["class"]() {
@@ -10542,9 +11229,9 @@ var DevtoolsPanel = (props) => {
10542
11229
  },
10543
11230
  get children() {
10544
11231
  return [(() => {
10545
- const _el$26 = _tmpl$53();
10546
- createRenderEffect(() => className(_el$26, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
10547
- return _el$26;
11232
+ const _el$28 = _tmpl$73();
11233
+ createRenderEffect(() => className(_el$28, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
11234
+ return _el$28;
10548
11235
  })(), createComponent(index$d.Sub, {
10549
11236
  overlap: true,
10550
11237
  gutter: 8,
@@ -10555,9 +11242,10 @@ var DevtoolsPanel = (props) => {
10555
11242
  return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
10556
11243
  },
10557
11244
  get children() {
10558
- return [_tmpl$63(), createComponent(ChevronDown, {})];
11245
+ return [_tmpl$83(), createComponent(ChevronDown, {})];
10559
11246
  }
10560
11247
  }), createComponent(index$d.Portal, {
11248
+ ref: (el) => setComputedVariables(el),
10561
11249
  get children() {
10562
11250
  return createComponent(index$d.SubContent, {
10563
11251
  get ["class"]() {
@@ -10573,7 +11261,7 @@ var DevtoolsPanel = (props) => {
10573
11261
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
10574
11262
  },
10575
11263
  get children() {
10576
- return [_tmpl$73(), createComponent(ArrowUp, {})];
11264
+ return [_tmpl$93(), createComponent(ArrowUp, {})];
10577
11265
  }
10578
11266
  }), createComponent(index$d.Item, {
10579
11267
  onSelect: () => {
@@ -10584,7 +11272,7 @@ var DevtoolsPanel = (props) => {
10584
11272
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
10585
11273
  },
10586
11274
  get children() {
10587
- return [_tmpl$83(), createComponent(ArrowDown, {})];
11275
+ return [_tmpl$103(), createComponent(ArrowDown, {})];
10588
11276
  }
10589
11277
  }), createComponent(index$d.Item, {
10590
11278
  onSelect: () => {
@@ -10595,7 +11283,7 @@ var DevtoolsPanel = (props) => {
10595
11283
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
10596
11284
  },
10597
11285
  get children() {
10598
- return [_tmpl$93(), createComponent(ArrowLeft, {})];
11286
+ return [_tmpl$113(), createComponent(ArrowLeft, {})];
10599
11287
  }
10600
11288
  }), createComponent(index$d.Item, {
10601
11289
  onSelect: () => {
@@ -10606,7 +11294,7 @@ var DevtoolsPanel = (props) => {
10606
11294
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
10607
11295
  },
10608
11296
  get children() {
10609
- return [_tmpl$103(), createComponent(ArrowRight, {})];
11297
+ return [_tmpl$122(), createComponent(ArrowRight, {})];
10610
11298
  }
10611
11299
  })];
10612
11300
  }
@@ -10624,9 +11312,10 @@ var DevtoolsPanel = (props) => {
10624
11312
  return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
10625
11313
  },
10626
11314
  get children() {
10627
- return [_tmpl$113(), createComponent(ChevronDown, {})];
11315
+ return [_tmpl$132(), createComponent(ChevronDown, {})];
10628
11316
  }
10629
11317
  }), createComponent(index$d.Portal, {
11318
+ ref: (el) => setComputedVariables(el),
10630
11319
  get children() {
10631
11320
  return createComponent(index$d.SubContent, {
10632
11321
  get ["class"]() {
@@ -10642,7 +11331,7 @@ var DevtoolsPanel = (props) => {
10642
11331
  return clsx(styles().settingsSubButton, props.localStore.theme_preference === "light" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
10643
11332
  },
10644
11333
  get children() {
10645
- return [_tmpl$122(), createComponent(Sun, {})];
11334
+ return [_tmpl$142(), createComponent(Sun, {})];
10646
11335
  }
10647
11336
  }), createComponent(index$d.Item, {
10648
11337
  onSelect: () => {
@@ -10653,7 +11342,7 @@ var DevtoolsPanel = (props) => {
10653
11342
  return clsx(styles().settingsSubButton, props.localStore.theme_preference === "dark" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
10654
11343
  },
10655
11344
  get children() {
10656
- return [_tmpl$132(), createComponent(Moon, {})];
11345
+ return [_tmpl$152(), createComponent(Moon, {})];
10657
11346
  }
10658
11347
  }), createComponent(index$d.Item, {
10659
11348
  onSelect: () => {
@@ -10664,7 +11353,7 @@ var DevtoolsPanel = (props) => {
10664
11353
  return clsx(styles().settingsSubButton, props.localStore.theme_preference === "system" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
10665
11354
  },
10666
11355
  get children() {
10667
- return [_tmpl$142(), createComponent(Monitor, {})];
11356
+ return [_tmpl$162(), createComponent(Monitor, {})];
10668
11357
  }
10669
11358
  })];
10670
11359
  }
@@ -10679,66 +11368,74 @@ var DevtoolsPanel = (props) => {
10679
11368
  })];
10680
11369
  }
10681
11370
  }), null);
10682
- insert(_el$37, createComponent(Key, {
10683
- by: (q) => q.queryHash,
10684
- get each() {
10685
- return queries();
11371
+ insert(_el$8, createComponent(Show, {
11372
+ get when() {
11373
+ return selectedView() === "queries";
10686
11374
  },
10687
- children: (query) => createComponent(QueryRow, {
10688
- get query() {
10689
- return query();
10690
- }
10691
- })
10692
- }));
10693
- insert(_el$5, createComponent(Show, {
11375
+ get children() {
11376
+ const _el$38 = _tmpl$172(), _el$39 = _el$38.firstChild;
11377
+ insert(_el$39, createComponent(Key, {
11378
+ by: (q) => q.queryHash,
11379
+ get each() {
11380
+ return queries();
11381
+ },
11382
+ children: (query) => createComponent(QueryRow, {
11383
+ get query() {
11384
+ return query();
11385
+ }
11386
+ })
11387
+ }));
11388
+ createRenderEffect(() => className(_el$38, clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container")));
11389
+ return _el$38;
11390
+ }
11391
+ }), null);
11392
+ insert(_el$8, createComponent(Show, {
10694
11393
  get when() {
10695
- return selectedQueryHash();
11394
+ return selectedView() === "mutations";
10696
11395
  },
10697
11396
  get children() {
10698
- return createComponent(QueryDetails, {});
11397
+ const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild;
11398
+ insert(_el$41, createComponent(Key, {
11399
+ by: (m) => m.mutationId,
11400
+ get each() {
11401
+ return mutations();
11402
+ },
11403
+ children: (mutation) => createComponent(MutationRow, {
11404
+ get mutation() {
11405
+ return mutation();
11406
+ }
11407
+ })
11408
+ }));
11409
+ createRenderEffect(() => className(_el$40, clsx(styles().overflowQueryContainer, "tsqd-mutations-overflow-container")));
11410
+ return _el$40;
10699
11411
  }
10700
11412
  }), null);
10701
11413
  createRenderEffect((_p$) => {
10702
- const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
10703
- [u`
10704
- min-width: min-content;
10705
- `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
10706
- }, "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`
11414
+ const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && u`
10707
11415
  height: 50%;
10708
11416
  max-height: 50%;
10709
- `, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = clsx(styles().logo, "tsqd-text-logo-container"), _v$9 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$10 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$11 = clsx(styles().row, u`
10710
- gap: ${tokens.size[2.5]};
10711
- `, "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");
10712
- _v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
10713
- _v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
10714
- _v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
10715
- _v$4 !== _p$._v$4 && className(_el$6, _p$._v$4 = _v$4);
10716
- _v$5 !== _p$._v$5 && className(_el$7, _p$._v$5 = _v$5);
11417
+ `, "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"}`;
10717
11418
  _v$6 !== _p$._v$6 && className(_el$8, _p$._v$6 = _v$6);
10718
11419
  _v$7 !== _p$._v$7 && className(_el$9, _p$._v$7 = _v$7);
10719
11420
  _v$8 !== _p$._v$8 && className(_el$10, _p$._v$8 = _v$8);
10720
11421
  _v$9 !== _p$._v$9 && className(_el$11, _p$._v$9 = _v$9);
10721
11422
  _v$10 !== _p$._v$10 && className(_el$12, _p$._v$10 = _v$10);
10722
- _v$11 !== _p$._v$11 && className(_el$14, _p$._v$11 = _v$11);
11423
+ _v$11 !== _p$._v$11 && className(_el$13, _p$._v$11 = _v$11);
10723
11424
  _v$12 !== _p$._v$12 && className(_el$15, _p$._v$12 = _v$12);
10724
11425
  _v$13 !== _p$._v$13 && className(_el$16, _p$._v$13 = _v$13);
10725
- _v$14 !== _p$._v$14 && className(_el$18, _p$._v$14 = _v$14);
10726
- _v$15 !== _p$._v$15 && setAttribute(_el$20, "aria-label", _p$._v$15 = _v$15);
10727
- _v$16 !== _p$._v$16 && setAttribute(_el$20, "aria-pressed", _p$._v$16 = _v$16);
10728
- _v$17 !== _p$._v$17 && className(_el$23, _p$._v$17 = _v$17);
10729
- _v$18 !== _p$._v$18 && className(_el$24, _p$._v$18 = _v$18);
10730
- _v$19 !== _p$._v$19 && className(_el$25, _p$._v$19 = _v$19);
10731
- _v$20 !== _p$._v$20 && setAttribute(_el$25, "aria-label", _p$._v$20 = _v$20);
10732
- _v$21 !== _p$._v$21 && setAttribute(_el$25, "aria-pressed", _p$._v$21 = _v$21);
10733
- _v$22 !== _p$._v$22 && setAttribute(_el$25, "title", _p$._v$22 = _v$22);
10734
- _v$23 !== _p$._v$23 && className(_el$36, _p$._v$23 = _v$23);
11426
+ _v$14 !== _p$._v$14 && className(_el$17, _p$._v$14 = _v$14);
11427
+ _v$15 !== _p$._v$15 && className(_el$19, _p$._v$15 = _v$15);
11428
+ _v$16 !== _p$._v$16 && setAttribute(_el$22, "aria-label", _p$._v$16 = _v$16);
11429
+ _v$17 !== _p$._v$17 && setAttribute(_el$22, "aria-pressed", _p$._v$17 = _v$17);
11430
+ _v$18 !== _p$._v$18 && className(_el$25, _p$._v$18 = _v$18);
11431
+ _v$19 !== _p$._v$19 && className(_el$26, _p$._v$19 = _v$19);
11432
+ _v$20 !== _p$._v$20 && setAttribute(_el$26, "title", _p$._v$20 = _v$20);
11433
+ _v$21 !== _p$._v$21 && className(_el$27, _p$._v$21 = _v$21);
11434
+ _v$22 !== _p$._v$22 && setAttribute(_el$27, "aria-label", _p$._v$22 = _v$22);
11435
+ _v$23 !== _p$._v$23 && setAttribute(_el$27, "aria-pressed", _p$._v$23 = _v$23);
11436
+ _v$24 !== _p$._v$24 && setAttribute(_el$27, "title", _p$._v$24 = _v$24);
10735
11437
  return _p$;
10736
11438
  }, {
10737
- _v$: void 0,
10738
- _v$2: void 0,
10739
- _v$3: void 0,
10740
- _v$4: void 0,
10741
- _v$5: void 0,
10742
11439
  _v$6: void 0,
10743
11440
  _v$7: void 0,
10744
11441
  _v$8: void 0,
@@ -10756,12 +11453,26 @@ var DevtoolsPanel = (props) => {
10756
11453
  _v$20: void 0,
10757
11454
  _v$21: void 0,
10758
11455
  _v$22: void 0,
10759
- _v$23: void 0
11456
+ _v$23: void 0,
11457
+ _v$24: void 0
10760
11458
  });
10761
- createRenderEffect(() => _el$17.value = props.localStore.filter || "");
10762
- createRenderEffect(() => _el$19.value = sort());
10763
- return _el$5;
10764
- })();
11459
+ createRenderEffect(() => _el$18.value = selectedView() === "queries" ? props.localStore.filter || "" : props.localStore.mutationFilter || "");
11460
+ return _el$8;
11461
+ })(), createComponent(Show, {
11462
+ get when() {
11463
+ return createMemo(() => selectedView() === "queries")() && selectedQueryHash();
11464
+ },
11465
+ get children() {
11466
+ return createComponent(QueryDetails, {});
11467
+ }
11468
+ }), createComponent(Show, {
11469
+ get when() {
11470
+ return createMemo(() => selectedView() === "mutations")() && selectedMutationId();
11471
+ },
11472
+ get children() {
11473
+ return createComponent(MutationDetails, {});
11474
+ }
11475
+ })];
10765
11476
  };
10766
11477
  var QueryRow = (props) => {
10767
11478
  const theme = useTheme();
@@ -10807,30 +11518,140 @@ var QueryRow = (props) => {
10807
11518
  return queryState();
10808
11519
  },
10809
11520
  get children() {
10810
- const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild, _el$42 = _el$41.nextSibling;
10811
- _el$40.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
10812
- insert(_el$41, observers);
10813
- insert(_el$42, () => props.query.queryHash);
10814
- insert(_el$40, createComponent(Show, {
11521
+ const _el$46 = _tmpl$222(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling;
11522
+ _el$46.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
11523
+ insert(_el$47, observers);
11524
+ insert(_el$48, () => props.query.queryHash);
11525
+ insert(_el$46, createComponent(Show, {
10815
11526
  get when() {
10816
11527
  return isDisabled();
10817
11528
  },
10818
11529
  get children() {
10819
- return _tmpl$172();
11530
+ return _tmpl$212();
10820
11531
  }
10821
11532
  }), null);
10822
11533
  createRenderEffect((_p$) => {
10823
- const _v$24 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$25 = `Query key ${props.query.queryHash}`, _v$26 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
10824
- _v$24 !== _p$._v$24 && className(_el$40, _p$._v$24 = _v$24);
10825
- _v$25 !== _p$._v$25 && setAttribute(_el$40, "aria-label", _p$._v$25 = _v$25);
10826
- _v$26 !== _p$._v$26 && className(_el$41, _p$._v$26 = _v$26);
11534
+ 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");
11535
+ _v$25 !== _p$._v$25 && className(_el$46, _p$._v$25 = _v$25);
11536
+ _v$26 !== _p$._v$26 && setAttribute(_el$46, "aria-label", _p$._v$26 = _v$26);
11537
+ _v$27 !== _p$._v$27 && className(_el$47, _p$._v$27 = _v$27);
10827
11538
  return _p$;
10828
11539
  }, {
10829
- _v$24: void 0,
10830
11540
  _v$25: void 0,
10831
- _v$26: void 0
11541
+ _v$26: void 0,
11542
+ _v$27: void 0
10832
11543
  });
10833
- return _el$40;
11544
+ return _el$46;
11545
+ }
11546
+ });
11547
+ };
11548
+ var MutationRow = (props) => {
11549
+ const theme = useTheme();
11550
+ const styles = createMemo(() => {
11551
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
11552
+ });
11553
+ const {
11554
+ colors,
11555
+ alpha
11556
+ } = tokens;
11557
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
11558
+ const mutationState = createSubscribeToMutationCacheBatcher((mutationCache) => {
11559
+ const mutations = mutationCache().getAll();
11560
+ const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
11561
+ return mutation?.state;
11562
+ });
11563
+ const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
11564
+ const mutations = mutationCache().getAll();
11565
+ const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
11566
+ if (!mutation)
11567
+ return false;
11568
+ return mutation.state.isPaused;
11569
+ });
11570
+ const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
11571
+ const mutations = mutationCache().getAll();
11572
+ const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
11573
+ if (!mutation)
11574
+ return "idle";
11575
+ return mutation.state.status;
11576
+ });
11577
+ const color = createMemo(() => getMutationStatusColor({
11578
+ isPaused: isPaused(),
11579
+ status: status()
11580
+ }));
11581
+ const getObserverCountColorStyles = () => {
11582
+ if (color() === "gray") {
11583
+ return u`
11584
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
11585
+ color: ${t2(colors[color()][700], colors[color()][300])};
11586
+ `;
11587
+ }
11588
+ return u`
11589
+ background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
11590
+ color: ${t2(colors[color()][800], colors[color()][300])};
11591
+ `;
11592
+ };
11593
+ return createComponent(Show, {
11594
+ get when() {
11595
+ return mutationState();
11596
+ },
11597
+ get children() {
11598
+ const _el$50 = _tmpl$222(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling;
11599
+ _el$50.$$click = () => {
11600
+ setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
11601
+ };
11602
+ insert(_el$51, createComponent(Show, {
11603
+ get when() {
11604
+ return color() === "purple";
11605
+ },
11606
+ get children() {
11607
+ return createComponent(PauseCircle, {});
11608
+ }
11609
+ }), null);
11610
+ insert(_el$51, createComponent(Show, {
11611
+ get when() {
11612
+ return color() === "green";
11613
+ },
11614
+ get children() {
11615
+ return createComponent(CheckCircle, {});
11616
+ }
11617
+ }), null);
11618
+ insert(_el$51, createComponent(Show, {
11619
+ get when() {
11620
+ return color() === "red";
11621
+ },
11622
+ get children() {
11623
+ return createComponent(XCircle, {});
11624
+ }
11625
+ }), null);
11626
+ insert(_el$51, createComponent(Show, {
11627
+ get when() {
11628
+ return color() === "yellow";
11629
+ },
11630
+ get children() {
11631
+ return createComponent(LoadingCircle, {});
11632
+ }
11633
+ }), null);
11634
+ insert(_el$52, createComponent(Show, {
11635
+ get when() {
11636
+ return props.mutation.options.mutationKey;
11637
+ },
11638
+ get children() {
11639
+ return [createMemo(() => JSON.stringify(props.mutation.options.mutationKey)), " -", " "];
11640
+ }
11641
+ }), null);
11642
+ insert(_el$52, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
11643
+ createRenderEffect((_p$) => {
11644
+ 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");
11645
+ _v$28 !== _p$._v$28 && className(_el$50, _p$._v$28 = _v$28);
11646
+ _v$29 !== _p$._v$29 && setAttribute(_el$50, "aria-label", _p$._v$29 = _v$29);
11647
+ _v$30 !== _p$._v$30 && className(_el$51, _p$._v$30 = _v$30);
11648
+ return _p$;
11649
+ }, {
11650
+ _v$28: void 0,
11651
+ _v$29: void 0,
11652
+ _v$30: void 0
11653
+ });
11654
+ return _el$50;
10834
11655
  }
10835
11656
  });
10836
11657
  };
@@ -10845,44 +11666,99 @@ var QueryStatusCount = () => {
10845
11666
  return theme() === "dark" ? darkStyles2 : lightStyles2;
10846
11667
  });
10847
11668
  return (() => {
10848
- const _el$44 = _tmpl$23();
10849
- insert(_el$44, createComponent(QueryStatus, {
11669
+ const _el$53 = _tmpl$25();
11670
+ insert(_el$53, createComponent(QueryStatus, {
10850
11671
  label: "Fresh",
10851
11672
  color: "green",
10852
11673
  get count() {
10853
11674
  return fresh();
10854
11675
  }
10855
11676
  }), null);
10856
- insert(_el$44, createComponent(QueryStatus, {
11677
+ insert(_el$53, createComponent(QueryStatus, {
10857
11678
  label: "Fetching",
10858
11679
  color: "blue",
10859
11680
  get count() {
10860
11681
  return fetching();
10861
11682
  }
10862
11683
  }), null);
10863
- insert(_el$44, createComponent(QueryStatus, {
11684
+ insert(_el$53, createComponent(QueryStatus, {
10864
11685
  label: "Paused",
10865
11686
  color: "purple",
10866
11687
  get count() {
10867
11688
  return paused();
10868
11689
  }
10869
11690
  }), null);
10870
- insert(_el$44, createComponent(QueryStatus, {
11691
+ insert(_el$53, createComponent(QueryStatus, {
10871
11692
  label: "Stale",
10872
11693
  color: "yellow",
10873
11694
  get count() {
10874
11695
  return stale();
10875
11696
  }
10876
11697
  }), null);
10877
- insert(_el$44, createComponent(QueryStatus, {
11698
+ insert(_el$53, createComponent(QueryStatus, {
10878
11699
  label: "Inactive",
10879
11700
  color: "gray",
10880
11701
  get count() {
10881
11702
  return inactive();
10882
11703
  }
10883
11704
  }), null);
10884
- createRenderEffect(() => className(_el$44, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
10885
- return _el$44;
11705
+ createRenderEffect(() => className(_el$53, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
11706
+ return _el$53;
11707
+ })();
11708
+ };
11709
+ var MutationStatusCount = () => {
11710
+ const success = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
11711
+ isPaused: m.state.isPaused,
11712
+ status: m.state.status
11713
+ }) === "green").length);
11714
+ const pending = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
11715
+ isPaused: m.state.isPaused,
11716
+ status: m.state.status
11717
+ }) === "yellow").length);
11718
+ const paused = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
11719
+ isPaused: m.state.isPaused,
11720
+ status: m.state.status
11721
+ }) === "purple").length);
11722
+ const error = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
11723
+ isPaused: m.state.isPaused,
11724
+ status: m.state.status
11725
+ }) === "red").length);
11726
+ const theme = useTheme();
11727
+ const styles = createMemo(() => {
11728
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
11729
+ });
11730
+ return (() => {
11731
+ const _el$54 = _tmpl$25();
11732
+ insert(_el$54, createComponent(QueryStatus, {
11733
+ label: "Paused",
11734
+ color: "purple",
11735
+ get count() {
11736
+ return paused();
11737
+ }
11738
+ }), null);
11739
+ insert(_el$54, createComponent(QueryStatus, {
11740
+ label: "Pending",
11741
+ color: "yellow",
11742
+ get count() {
11743
+ return pending();
11744
+ }
11745
+ }), null);
11746
+ insert(_el$54, createComponent(QueryStatus, {
11747
+ label: "Success",
11748
+ color: "green",
11749
+ get count() {
11750
+ return success();
11751
+ }
11752
+ }), null);
11753
+ insert(_el$54, createComponent(QueryStatus, {
11754
+ label: "Error",
11755
+ color: "red",
11756
+ get count() {
11757
+ return error();
11758
+ }
11759
+ }), null);
11760
+ createRenderEffect(() => className(_el$54, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
11761
+ return _el$54;
10886
11762
  })();
10887
11763
  };
10888
11764
  var QueryStatus = (props) => {
@@ -10910,17 +11786,17 @@ var QueryStatus = (props) => {
10910
11786
  return true;
10911
11787
  });
10912
11788
  return (() => {
10913
- const _el$45 = _tmpl$21(), _el$47 = _el$45.firstChild, _el$49 = _el$47.nextSibling;
10914
- const _ref$3 = tagRef;
10915
- typeof _ref$3 === "function" ? use(_ref$3, _el$45) : tagRef = _el$45;
10916
- _el$45.addEventListener("mouseleave", () => {
11789
+ const _el$55 = _tmpl$252(), _el$57 = _el$55.firstChild, _el$59 = _el$57.nextSibling;
11790
+ const _ref$4 = tagRef;
11791
+ typeof _ref$4 === "function" ? use(_ref$4, _el$55) : tagRef = _el$55;
11792
+ _el$55.addEventListener("mouseleave", () => {
10917
11793
  setMouseOver(false);
10918
11794
  setFocused(false);
10919
11795
  });
10920
- _el$45.addEventListener("mouseenter", () => setMouseOver(true));
10921
- _el$45.addEventListener("blur", () => setFocused(false));
10922
- _el$45.addEventListener("focus", () => setFocused(true));
10923
- spread(_el$45, mergeProps({
11796
+ _el$55.addEventListener("mouseenter", () => setMouseOver(true));
11797
+ _el$55.addEventListener("blur", () => setFocused(false));
11798
+ _el$55.addEventListener("focus", () => setFocused(true));
11799
+ spread(_el$55, mergeProps({
10924
11800
  get disabled() {
10925
11801
  return showLabel();
10926
11802
  },
@@ -10935,47 +11811,47 @@ var QueryStatus = (props) => {
10935
11811
  }, () => mouseOver() || focused() ? {
10936
11812
  "aria-describedby": "tsqd-status-tooltip"
10937
11813
  } : {}), false, true);
10938
- insert(_el$45, createComponent(Show, {
11814
+ insert(_el$55, createComponent(Show, {
10939
11815
  get when() {
10940
11816
  return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
10941
11817
  },
10942
11818
  get children() {
10943
- const _el$46 = _tmpl$192();
10944
- insert(_el$46, () => props.label);
10945
- createRenderEffect(() => className(_el$46, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
10946
- return _el$46;
11819
+ const _el$56 = _tmpl$232();
11820
+ insert(_el$56, () => props.label);
11821
+ createRenderEffect(() => className(_el$56, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
11822
+ return _el$56;
10947
11823
  }
10948
- }), _el$47);
10949
- insert(_el$45, createComponent(Show, {
11824
+ }), _el$57);
11825
+ insert(_el$55, createComponent(Show, {
10950
11826
  get when() {
10951
11827
  return showLabel();
10952
11828
  },
10953
11829
  get children() {
10954
- const _el$48 = _tmpl$20();
10955
- insert(_el$48, () => props.label);
10956
- createRenderEffect(() => className(_el$48, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
10957
- return _el$48;
11830
+ const _el$58 = _tmpl$242();
11831
+ insert(_el$58, () => props.label);
11832
+ createRenderEffect(() => className(_el$58, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
11833
+ return _el$58;
10958
11834
  }
10959
- }), _el$49);
10960
- insert(_el$49, () => props.count);
11835
+ }), _el$59);
11836
+ insert(_el$59, () => props.count);
10961
11837
  createRenderEffect((_p$) => {
10962
- const _v$27 = clsx(u`
11838
+ const _v$31 = clsx(u`
10963
11839
  width: ${tokens.size[1.5]};
10964
11840
  height: ${tokens.size[1.5]};
10965
11841
  border-radius: ${tokens.border.radius.full};
10966
11842
  background-color: ${tokens.colors[props.color][500]};
10967
- `, "tsqd-query-status-tag-dot"), _v$28 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
11843
+ `, "tsqd-query-status-tag-dot"), _v$32 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
10968
11844
  background-color: ${t2(colors[props.color][100], colors[props.color][900])};
10969
11845
  color: ${t2(colors[props.color][700], colors[props.color][300])};
10970
11846
  `, "tsqd-query-status-tag-count");
10971
- _v$27 !== _p$._v$27 && className(_el$47, _p$._v$27 = _v$27);
10972
- _v$28 !== _p$._v$28 && className(_el$49, _p$._v$28 = _v$28);
11847
+ _v$31 !== _p$._v$31 && className(_el$57, _p$._v$31 = _v$31);
11848
+ _v$32 !== _p$._v$32 && className(_el$59, _p$._v$32 = _v$32);
10973
11849
  return _p$;
10974
11850
  }, {
10975
- _v$27: void 0,
10976
- _v$28: void 0
11851
+ _v$31: void 0,
11852
+ _v$32: void 0
10977
11853
  });
10978
- return _el$45;
11854
+ return _el$55;
10979
11855
  })();
10980
11856
  };
10981
11857
  var QueryDetails = () => {
@@ -11062,19 +11938,19 @@ var QueryDetails = () => {
11062
11938
  return createMemo(() => !!activeQuery())() && activeQueryState();
11063
11939
  },
11064
11940
  get children() {
11065
- const _el$50 = _tmpl$24(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling, _el$53 = _el$52.firstChild, _el$54 = _el$53.firstChild, _el$55 = _el$54.firstChild, _el$56 = _el$54.nextSibling, _el$57 = _el$53.nextSibling, _el$58 = _el$57.firstChild, _el$59 = _el$58.nextSibling, _el$60 = _el$57.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$52.nextSibling, _el$64 = _el$63.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.firstChild, _el$67 = _el$65.nextSibling, _el$68 = _el$67.firstChild, _el$69 = _el$67.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$69.nextSibling, _el$72 = _el$71.firstChild, _el$73 = _el$71.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$84 = _el$64.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling;
11066
- insert(_el$55, () => displayValue(activeQuery().queryKey, true));
11067
- insert(_el$56, statusLabel);
11068
- insert(_el$59, observerCount);
11069
- insert(_el$62, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
11070
- _el$65.$$click = handleRefetch;
11071
- _el$67.$$click = () => queryClient.invalidateQueries(activeQuery());
11072
- _el$69.$$click = () => queryClient.resetQueries(activeQuery());
11073
- _el$71.$$click = () => {
11941
+ 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;
11942
+ insert(_el$65, () => displayValue(activeQuery().queryKey, true));
11943
+ insert(_el$66, statusLabel);
11944
+ insert(_el$69, observerCount);
11945
+ insert(_el$72, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
11946
+ _el$75.$$click = handleRefetch;
11947
+ _el$77.$$click = () => queryClient.invalidateQueries(activeQuery());
11948
+ _el$79.$$click = () => queryClient.resetQueries(activeQuery());
11949
+ _el$81.$$click = () => {
11074
11950
  queryClient.removeQueries(activeQuery());
11075
11951
  setSelectedQueryHash(null);
11076
11952
  };
11077
- _el$73.$$click = () => {
11953
+ _el$83.$$click = () => {
11078
11954
  if (activeQuery()?.state.data === void 0) {
11079
11955
  setRestoringLoading(true);
11080
11956
  restoreQueryAfterLoadingOrError();
@@ -11102,79 +11978,78 @@ var QueryDetails = () => {
11102
11978
  });
11103
11979
  }
11104
11980
  };
11105
- insert(_el$73, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$75);
11106
- insert(_el$64, createComponent(Show, {
11981
+ insert(_el$83, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$85);
11982
+ insert(_el$74, createComponent(Show, {
11107
11983
  get when() {
11108
11984
  return errorTypes().length === 0 || queryStatus() === "error";
11109
11985
  },
11110
11986
  get children() {
11111
- const _el$76 = _tmpl$222(), _el$77 = _el$76.firstChild, _el$78 = _el$77.nextSibling;
11112
- _el$76.$$click = () => {
11987
+ const _el$86 = _tmpl$26(), _el$87 = _el$86.firstChild, _el$88 = _el$87.nextSibling;
11988
+ _el$86.$$click = () => {
11113
11989
  if (!activeQuery().state.error) {
11114
11990
  triggerError();
11115
11991
  } else {
11116
11992
  queryClient.resetQueries(activeQuery());
11117
11993
  }
11118
11994
  };
11119
- insert(_el$76, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$78);
11995
+ insert(_el$86, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$88);
11120
11996
  createRenderEffect((_p$) => {
11121
- const _v$29 = clsx(u`
11997
+ const _v$33 = clsx(u`
11122
11998
  color: ${t2(colors.red[500], colors.red[400])};
11123
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$30 = queryStatus() === "pending", _v$31 = u`
11999
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$34 = queryStatus() === "pending", _v$35 = u`
11124
12000
  background-color: ${t2(colors.red[500], colors.red[400])};
11125
12001
  `;
11126
- _v$29 !== _p$._v$29 && className(_el$76, _p$._v$29 = _v$29);
11127
- _v$30 !== _p$._v$30 && (_el$76.disabled = _p$._v$30 = _v$30);
11128
- _v$31 !== _p$._v$31 && className(_el$77, _p$._v$31 = _v$31);
12002
+ _v$33 !== _p$._v$33 && className(_el$86, _p$._v$33 = _v$33);
12003
+ _v$34 !== _p$._v$34 && (_el$86.disabled = _p$._v$34 = _v$34);
12004
+ _v$35 !== _p$._v$35 && className(_el$87, _p$._v$35 = _v$35);
11129
12005
  return _p$;
11130
12006
  }, {
11131
- _v$29: void 0,
11132
- _v$30: void 0,
11133
- _v$31: void 0
12007
+ _v$33: void 0,
12008
+ _v$34: void 0,
12009
+ _v$35: void 0
11134
12010
  });
11135
- return _el$76;
12011
+ return _el$86;
11136
12012
  }
11137
12013
  }), null);
11138
- insert(_el$64, createComponent(Show, {
12014
+ insert(_el$74, createComponent(Show, {
11139
12015
  get when() {
11140
12016
  return !(errorTypes().length === 0 || queryStatus() === "error");
11141
12017
  },
11142
12018
  get children() {
11143
- const _el$79 = _tmpl$232(), _el$80 = _el$79.firstChild, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling; _el$82.firstChild;
11144
- _el$82.addEventListener("change", (e2) => {
12019
+ const _el$89 = _tmpl$27(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling, _el$92 = _el$91.nextSibling; _el$92.firstChild;
12020
+ _el$92.addEventListener("change", (e2) => {
11145
12021
  const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
11146
12022
  triggerError(errorType);
11147
12023
  });
11148
- insert(_el$82, createComponent(For, {
12024
+ insert(_el$92, createComponent(For, {
11149
12025
  get each() {
11150
12026
  return errorTypes();
11151
12027
  },
11152
12028
  children: (errorType) => (() => {
11153
- const _el$88 = _tmpl$25();
11154
- insert(_el$88, () => errorType.name);
11155
- createRenderEffect(() => _el$88.value = errorType.name);
11156
- return _el$88;
12029
+ const _el$98 = _tmpl$29();
12030
+ insert(_el$98, () => errorType.name);
12031
+ createRenderEffect(() => _el$98.value = errorType.name);
12032
+ return _el$98;
11157
12033
  })()
11158
12034
  }), null);
11159
- insert(_el$79, createComponent(ChevronDown, {}), null);
12035
+ insert(_el$89, createComponent(ChevronDown, {}), null);
11160
12036
  createRenderEffect((_p$) => {
11161
- const _v$32 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$33 = u`
12037
+ const _v$36 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$37 = u`
11162
12038
  background-color: ${tokens.colors.red[400]};
11163
- `, _v$34 = queryStatus() === "pending";
11164
- _v$32 !== _p$._v$32 && className(_el$79, _p$._v$32 = _v$32);
11165
- _v$33 !== _p$._v$33 && className(_el$80, _p$._v$33 = _v$33);
11166
- _v$34 !== _p$._v$34 && (_el$82.disabled = _p$._v$34 = _v$34);
12039
+ `, _v$38 = queryStatus() === "pending";
12040
+ _v$36 !== _p$._v$36 && className(_el$89, _p$._v$36 = _v$36);
12041
+ _v$37 !== _p$._v$37 && className(_el$90, _p$._v$37 = _v$37);
12042
+ _v$38 !== _p$._v$38 && (_el$92.disabled = _p$._v$38 = _v$38);
11167
12043
  return _p$;
11168
12044
  }, {
11169
- _v$32: void 0,
11170
- _v$33: void 0,
11171
- _v$34: void 0
12045
+ _v$36: void 0,
12046
+ _v$37: void 0,
12047
+ _v$38: void 0
11172
12048
  });
11173
- return _el$79;
12049
+ return _el$89;
11174
12050
  }
11175
12051
  }), null);
11176
- _el$85.style.setProperty("padding", "0.5rem");
11177
- insert(_el$85, createComponent(Explorer, {
12052
+ insert(_el$95, createComponent(Explorer, {
11178
12053
  label: "Data",
11179
12054
  defaultExpanded: ["Data"],
11180
12055
  get value() {
@@ -11185,8 +12060,7 @@ var QueryDetails = () => {
11185
12060
  return activeQuery();
11186
12061
  }
11187
12062
  }));
11188
- _el$87.style.setProperty("padding", "0.5rem");
11189
- insert(_el$87, createComponent(Explorer, {
12063
+ insert(_el$97, createComponent(Explorer, {
11190
12064
  label: "Query",
11191
12065
  defaultExpanded: ["Query", "queryKey"],
11192
12066
  get value() {
@@ -11194,56 +12068,54 @@ var QueryDetails = () => {
11194
12068
  }
11195
12069
  }));
11196
12070
  createRenderEffect((_p$) => {
11197
- const _v$35 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$36 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$37 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$38 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$39 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$40 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$41 = clsx(u`
12071
+ 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`
11198
12072
  color: ${t2(colors.blue[600], colors.blue[400])};
11199
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$42 = statusLabel() === "fetching", _v$43 = u`
12073
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$46 = statusLabel() === "fetching", _v$47 = u`
11200
12074
  background-color: ${t2(colors.blue[600], colors.blue[400])};
11201
- `, _v$44 = clsx(u`
12075
+ `, _v$48 = clsx(u`
11202
12076
  color: ${t2(colors.yellow[600], colors.yellow[400])};
11203
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$45 = queryStatus() === "pending", _v$46 = u`
12077
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$49 = queryStatus() === "pending", _v$50 = u`
11204
12078
  background-color: ${t2(colors.yellow[600], colors.yellow[400])};
11205
- `, _v$47 = clsx(u`
12079
+ `, _v$51 = clsx(u`
11206
12080
  color: ${t2(colors.gray[600], colors.gray[300])};
11207
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$48 = queryStatus() === "pending", _v$49 = u`
12081
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$52 = queryStatus() === "pending", _v$53 = u`
11208
12082
  background-color: ${t2(colors.gray[600], colors.gray[400])};
11209
- `, _v$50 = clsx(u`
12083
+ `, _v$54 = clsx(u`
11210
12084
  color: ${t2(colors.pink[500], colors.pink[400])};
11211
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$51 = statusLabel() === "fetching", _v$52 = u`
12085
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$55 = statusLabel() === "fetching", _v$56 = u`
11212
12086
  background-color: ${t2(colors.pink[500], colors.pink[400])};
11213
- `, _v$53 = clsx(u`
12087
+ `, _v$57 = clsx(u`
11214
12088
  color: ${t2(colors.cyan[500], colors.cyan[400])};
11215
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$54 = restoringLoading(), _v$55 = u`
12089
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$58 = restoringLoading(), _v$59 = u`
11216
12090
  background-color: ${t2(colors.cyan[500], colors.cyan[400])};
11217
- `, _v$56 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$57 = clsx(styles().detailsHeader, "tsqd-query-details-header");
11218
- _v$35 !== _p$._v$35 && className(_el$50, _p$._v$35 = _v$35);
11219
- _v$36 !== _p$._v$36 && className(_el$51, _p$._v$36 = _v$36);
11220
- _v$37 !== _p$._v$37 && className(_el$52, _p$._v$37 = _v$37);
11221
- _v$38 !== _p$._v$38 && className(_el$56, _p$._v$38 = _v$38);
11222
- _v$39 !== _p$._v$39 && className(_el$63, _p$._v$39 = _v$39);
11223
- _v$40 !== _p$._v$40 && className(_el$64, _p$._v$40 = _v$40);
11224
- _v$41 !== _p$._v$41 && className(_el$65, _p$._v$41 = _v$41);
11225
- _v$42 !== _p$._v$42 && (_el$65.disabled = _p$._v$42 = _v$42);
11226
- _v$43 !== _p$._v$43 && className(_el$66, _p$._v$43 = _v$43);
11227
- _v$44 !== _p$._v$44 && className(_el$67, _p$._v$44 = _v$44);
11228
- _v$45 !== _p$._v$45 && (_el$67.disabled = _p$._v$45 = _v$45);
11229
- _v$46 !== _p$._v$46 && className(_el$68, _p$._v$46 = _v$46);
11230
- _v$47 !== _p$._v$47 && className(_el$69, _p$._v$47 = _v$47);
11231
- _v$48 !== _p$._v$48 && (_el$69.disabled = _p$._v$48 = _v$48);
11232
- _v$49 !== _p$._v$49 && className(_el$70, _p$._v$49 = _v$49);
11233
- _v$50 !== _p$._v$50 && className(_el$71, _p$._v$50 = _v$50);
11234
- _v$51 !== _p$._v$51 && (_el$71.disabled = _p$._v$51 = _v$51);
11235
- _v$52 !== _p$._v$52 && className(_el$72, _p$._v$52 = _v$52);
11236
- _v$53 !== _p$._v$53 && className(_el$73, _p$._v$53 = _v$53);
11237
- _v$54 !== _p$._v$54 && (_el$73.disabled = _p$._v$54 = _v$54);
11238
- _v$55 !== _p$._v$55 && className(_el$74, _p$._v$55 = _v$55);
11239
- _v$56 !== _p$._v$56 && className(_el$84, _p$._v$56 = _v$56);
11240
- _v$57 !== _p$._v$57 && className(_el$86, _p$._v$57 = _v$57);
12091
+ `, _v$60 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$61 = tokens.size[2], _v$62 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$63 = tokens.size[2];
12092
+ _v$39 !== _p$._v$39 && className(_el$60, _p$._v$39 = _v$39);
12093
+ _v$40 !== _p$._v$40 && className(_el$61, _p$._v$40 = _v$40);
12094
+ _v$41 !== _p$._v$41 && className(_el$62, _p$._v$41 = _v$41);
12095
+ _v$42 !== _p$._v$42 && className(_el$66, _p$._v$42 = _v$42);
12096
+ _v$43 !== _p$._v$43 && className(_el$73, _p$._v$43 = _v$43);
12097
+ _v$44 !== _p$._v$44 && className(_el$74, _p$._v$44 = _v$44);
12098
+ _v$45 !== _p$._v$45 && className(_el$75, _p$._v$45 = _v$45);
12099
+ _v$46 !== _p$._v$46 && (_el$75.disabled = _p$._v$46 = _v$46);
12100
+ _v$47 !== _p$._v$47 && className(_el$76, _p$._v$47 = _v$47);
12101
+ _v$48 !== _p$._v$48 && className(_el$77, _p$._v$48 = _v$48);
12102
+ _v$49 !== _p$._v$49 && (_el$77.disabled = _p$._v$49 = _v$49);
12103
+ _v$50 !== _p$._v$50 && className(_el$78, _p$._v$50 = _v$50);
12104
+ _v$51 !== _p$._v$51 && className(_el$79, _p$._v$51 = _v$51);
12105
+ _v$52 !== _p$._v$52 && (_el$79.disabled = _p$._v$52 = _v$52);
12106
+ _v$53 !== _p$._v$53 && className(_el$80, _p$._v$53 = _v$53);
12107
+ _v$54 !== _p$._v$54 && className(_el$81, _p$._v$54 = _v$54);
12108
+ _v$55 !== _p$._v$55 && (_el$81.disabled = _p$._v$55 = _v$55);
12109
+ _v$56 !== _p$._v$56 && className(_el$82, _p$._v$56 = _v$56);
12110
+ _v$57 !== _p$._v$57 && className(_el$83, _p$._v$57 = _v$57);
12111
+ _v$58 !== _p$._v$58 && (_el$83.disabled = _p$._v$58 = _v$58);
12112
+ _v$59 !== _p$._v$59 && className(_el$84, _p$._v$59 = _v$59);
12113
+ _v$60 !== _p$._v$60 && className(_el$94, _p$._v$60 = _v$60);
12114
+ _v$61 !== _p$._v$61 && ((_p$._v$61 = _v$61) != null ? _el$95.style.setProperty("padding", _v$61) : _el$95.style.removeProperty("padding"));
12115
+ _v$62 !== _p$._v$62 && className(_el$96, _p$._v$62 = _v$62);
12116
+ _v$63 !== _p$._v$63 && ((_p$._v$63 = _v$63) != null ? _el$97.style.setProperty("padding", _v$63) : _el$97.style.removeProperty("padding"));
11241
12117
  return _p$;
11242
12118
  }, {
11243
- _v$35: void 0,
11244
- _v$36: void 0,
11245
- _v$37: void 0,
11246
- _v$38: void 0,
11247
12119
  _v$39: void 0,
11248
12120
  _v$40: void 0,
11249
12121
  _v$41: void 0,
@@ -11262,27 +12134,166 @@ var QueryDetails = () => {
11262
12134
  _v$54: void 0,
11263
12135
  _v$55: void 0,
11264
12136
  _v$56: void 0,
11265
- _v$57: void 0
12137
+ _v$57: void 0,
12138
+ _v$58: void 0,
12139
+ _v$59: void 0,
12140
+ _v$60: void 0,
12141
+ _v$61: void 0,
12142
+ _v$62: void 0,
12143
+ _v$63: void 0
11266
12144
  });
11267
- return _el$50;
12145
+ return _el$60;
12146
+ }
12147
+ });
12148
+ };
12149
+ var MutationDetails = () => {
12150
+ const theme = useTheme();
12151
+ const styles = createMemo(() => {
12152
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
12153
+ });
12154
+ const {
12155
+ colors
12156
+ } = tokens;
12157
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
12158
+ const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
12159
+ const mutations = mutationCache().getAll();
12160
+ const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
12161
+ if (!mutation)
12162
+ return false;
12163
+ return mutation.state.isPaused;
12164
+ });
12165
+ const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
12166
+ const mutations = mutationCache().getAll();
12167
+ const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
12168
+ if (!mutation)
12169
+ return "idle";
12170
+ return mutation.state.status;
12171
+ });
12172
+ const color = createMemo(() => getMutationStatusColor({
12173
+ isPaused: isPaused(),
12174
+ status: status()
12175
+ }));
12176
+ const activeMutation = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().find((mutation) => mutation.mutationId === selectedMutationId()), false);
12177
+ const getQueryStatusColors = () => {
12178
+ if (color() === "gray") {
12179
+ return u`
12180
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
12181
+ color: ${t2(colors[color()][700], colors[color()][300])};
12182
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
12183
+ `;
12184
+ }
12185
+ return u`
12186
+ background-color: ${t2(colors[color()][100], colors[color()][900])};
12187
+ color: ${t2(colors[color()][700], colors[color()][300])};
12188
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
12189
+ `;
12190
+ };
12191
+ return createComponent(Show, {
12192
+ get when() {
12193
+ return activeMutation();
12194
+ },
12195
+ get children() {
12196
+ 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;
12197
+ insert(_el$104, createComponent(Show, {
12198
+ get when() {
12199
+ return activeMutation().options.mutationKey;
12200
+ },
12201
+ fallback: "No mutationKey found",
12202
+ get children() {
12203
+ return displayValue(activeMutation().options.mutationKey, true);
12204
+ }
12205
+ }));
12206
+ insert(_el$105, createComponent(Show, {
12207
+ get when() {
12208
+ return color() === "purple";
12209
+ },
12210
+ children: "pending"
12211
+ }), null);
12212
+ insert(_el$105, createComponent(Show, {
12213
+ get when() {
12214
+ return color() !== "purple";
12215
+ },
12216
+ get children() {
12217
+ return status();
12218
+ }
12219
+ }), null);
12220
+ insert(_el$108, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
12221
+ insert(_el$110, createComponent(Explorer, {
12222
+ label: "Variables",
12223
+ defaultExpanded: ["Variables"],
12224
+ get value() {
12225
+ return activeMutation().state.variables;
12226
+ }
12227
+ }));
12228
+ insert(_el$112, createComponent(Explorer, {
12229
+ label: "Context",
12230
+ defaultExpanded: ["Context"],
12231
+ get value() {
12232
+ return activeMutation().state.context;
12233
+ }
12234
+ }));
12235
+ insert(_el$114, createComponent(Explorer, {
12236
+ label: "Data",
12237
+ defaultExpanded: ["Data"],
12238
+ get value() {
12239
+ return activeMutation().state.data;
12240
+ }
12241
+ }));
12242
+ insert(_el$116, createComponent(Explorer, {
12243
+ label: "Mutation",
12244
+ defaultExpanded: ["Mutation"],
12245
+ get value() {
12246
+ return activeMutation();
12247
+ }
12248
+ }));
12249
+ createRenderEffect((_p$) => {
12250
+ const _v$64 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$65 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$66 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$67 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$68 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$69 = tokens.size[2], _v$70 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$71 = tokens.size[2], _v$72 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$73 = tokens.size[2], _v$74 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$75 = tokens.size[2];
12251
+ _v$64 !== _p$._v$64 && className(_el$99, _p$._v$64 = _v$64);
12252
+ _v$65 !== _p$._v$65 && className(_el$100, _p$._v$65 = _v$65);
12253
+ _v$66 !== _p$._v$66 && className(_el$101, _p$._v$66 = _v$66);
12254
+ _v$67 !== _p$._v$67 && className(_el$105, _p$._v$67 = _v$67);
12255
+ _v$68 !== _p$._v$68 && className(_el$109, _p$._v$68 = _v$68);
12256
+ _v$69 !== _p$._v$69 && ((_p$._v$69 = _v$69) != null ? _el$110.style.setProperty("padding", _v$69) : _el$110.style.removeProperty("padding"));
12257
+ _v$70 !== _p$._v$70 && className(_el$111, _p$._v$70 = _v$70);
12258
+ _v$71 !== _p$._v$71 && ((_p$._v$71 = _v$71) != null ? _el$112.style.setProperty("padding", _v$71) : _el$112.style.removeProperty("padding"));
12259
+ _v$72 !== _p$._v$72 && className(_el$113, _p$._v$72 = _v$72);
12260
+ _v$73 !== _p$._v$73 && ((_p$._v$73 = _v$73) != null ? _el$114.style.setProperty("padding", _v$73) : _el$114.style.removeProperty("padding"));
12261
+ _v$74 !== _p$._v$74 && className(_el$115, _p$._v$74 = _v$74);
12262
+ _v$75 !== _p$._v$75 && ((_p$._v$75 = _v$75) != null ? _el$116.style.setProperty("padding", _v$75) : _el$116.style.removeProperty("padding"));
12263
+ return _p$;
12264
+ }, {
12265
+ _v$64: void 0,
12266
+ _v$65: void 0,
12267
+ _v$66: void 0,
12268
+ _v$67: void 0,
12269
+ _v$68: void 0,
12270
+ _v$69: void 0,
12271
+ _v$70: void 0,
12272
+ _v$71: void 0,
12273
+ _v$72: void 0,
12274
+ _v$73: void 0,
12275
+ _v$74: void 0,
12276
+ _v$75: void 0
12277
+ });
12278
+ return _el$99;
11268
12279
  }
11269
12280
  });
11270
12281
  };
11271
- var signalsMap = /* @__PURE__ */ new Map();
12282
+ var queryCacheMap = /* @__PURE__ */ new Map();
11272
12283
  var setupQueryCacheSubscription = () => {
11273
12284
  const queryCache = createMemo(() => {
11274
12285
  const client = useQueryDevtoolsContext().client;
11275
12286
  return client.getQueryCache();
11276
12287
  });
11277
12288
  const unsub = queryCache().subscribe(() => {
11278
- for (const [callback, setter] of signalsMap.entries()) {
12289
+ for (const [callback, setter] of queryCacheMap.entries()) {
11279
12290
  queueMicrotask(() => {
11280
12291
  setter(callback(queryCache));
11281
12292
  });
11282
12293
  }
11283
12294
  });
11284
12295
  onCleanup(() => {
11285
- signalsMap.clear();
12296
+ queryCacheMap.clear();
11286
12297
  unsub();
11287
12298
  });
11288
12299
  return unsub;
@@ -11298,9 +12309,45 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
11298
12309
  createEffect(() => {
11299
12310
  setValue(callback(queryCache));
11300
12311
  });
11301
- signalsMap.set(callback, setValue);
12312
+ queryCacheMap.set(callback, setValue);
12313
+ onCleanup(() => {
12314
+ queryCacheMap.delete(callback);
12315
+ });
12316
+ return value;
12317
+ };
12318
+ var mutationCacheMap = /* @__PURE__ */ new Map();
12319
+ var setupMutationCacheSubscription = () => {
12320
+ const mutationCache = createMemo(() => {
12321
+ const client = useQueryDevtoolsContext().client;
12322
+ return client.getMutationCache();
12323
+ });
12324
+ const unsub = mutationCache().subscribe(() => {
12325
+ for (const [callback, setter] of mutationCacheMap.entries()) {
12326
+ queueMicrotask(() => {
12327
+ setter(callback(mutationCache));
12328
+ });
12329
+ }
12330
+ });
12331
+ onCleanup(() => {
12332
+ mutationCacheMap.clear();
12333
+ unsub();
12334
+ });
12335
+ return unsub;
12336
+ };
12337
+ var createSubscribeToMutationCacheBatcher = (callback, equalityCheck = true) => {
12338
+ const mutationCache = createMemo(() => {
12339
+ const client = useQueryDevtoolsContext().client;
12340
+ return client.getMutationCache();
12341
+ });
12342
+ const [value, setValue] = createSignal(callback(mutationCache), !equalityCheck ? {
12343
+ equals: false
12344
+ } : void 0);
12345
+ createEffect(() => {
12346
+ setValue(callback(mutationCache));
12347
+ });
12348
+ mutationCacheMap.set(callback, setValue);
11302
12349
  onCleanup(() => {
11303
- signalsMap.delete(callback);
12350
+ mutationCacheMap.delete(callback);
11304
12351
  });
11305
12352
  return value;
11306
12353
  };
@@ -11400,7 +12447,7 @@ var stylesFactory2 = (theme) => {
11400
12447
  right: 0;
11401
12448
  left: 0;
11402
12449
  max-height: 90%;
11403
- min-height: 3.5rem;
12450
+ min-height: ${size2[14]};
11404
12451
  border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11405
12452
  `,
11406
12453
  "panel-position-bottom": u`
@@ -11408,7 +12455,7 @@ var stylesFactory2 = (theme) => {
11408
12455
  right: 0;
11409
12456
  left: 0;
11410
12457
  max-height: 90%;
11411
- min-height: 3.5rem;
12458
+ min-height: ${size2[14]};
11412
12459
  border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11413
12460
  `,
11414
12461
  "panel-position-right": u`
@@ -11582,7 +12629,7 @@ var stylesFactory2 = (theme) => {
11582
12629
  justify-content: space-between;
11583
12630
  align-items: center;
11584
12631
  padding: ${tokens.size[2]} ${tokens.size[2.5]};
11585
- gap: ${tokens.size[3]};
12632
+ gap: ${tokens.size[2.5]};
11586
12633
  border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
11587
12634
  align-items: center;
11588
12635
  & > button {
@@ -11594,8 +12641,19 @@ var stylesFactory2 = (theme) => {
11594
12641
  flex-direction: column;
11595
12642
  }
11596
12643
  `,
12644
+ logoAndToggleContainer: u`
12645
+ display: flex;
12646
+ gap: ${tokens.size[3]};
12647
+ align-items: center;
12648
+ `,
11597
12649
  logo: u`
11598
12650
  cursor: pointer;
12651
+ display: flex;
12652
+ flex-direction: column;
12653
+ background-color: transparent;
12654
+ border: none;
12655
+ gap: ${tokens.size[0.5]};
12656
+ padding: 0px;
11599
12657
  &:hover {
11600
12658
  opacity: 0.7;
11601
12659
  }
@@ -11729,6 +12787,8 @@ var stylesFactory2 = (theme) => {
11729
12787
  outline: 2px solid ${colors.blue[800]};
11730
12788
  }
11731
12789
  & svg {
12790
+ width: ${tokens.size[3]};
12791
+ height: ${tokens.size[3]};
11732
12792
  color: ${t2(colors.gray[500], colors.gray[400])};
11733
12793
  }
11734
12794
  }
@@ -11814,8 +12874,8 @@ var stylesFactory2 = (theme) => {
11814
12874
  border-radius: ${tokens.border.radius.sm};
11815
12875
  background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11816
12876
  border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
11817
- width: 1.625rem;
11818
- height: 1.625rem;
12877
+ width: ${tokens.size[6.5]};
12878
+ height: ${tokens.size[6.5]};
11819
12879
  justify-content: center;
11820
12880
  display: flex;
11821
12881
  align-items: center;
@@ -11967,6 +13027,8 @@ var stylesFactory2 = (theme) => {
11967
13027
 
11968
13028
  & pre {
11969
13029
  margin: 0;
13030
+ display: flex;
13031
+ align-items: center;
11970
13032
  }
11971
13033
  `,
11972
13034
  queryDetailsStatus: u`
@@ -12146,6 +13208,56 @@ var stylesFactory2 = (theme) => {
12146
13208
  &:hover {
12147
13209
  background-color: ${t2(colors.purple[100], colors.purple[900])};
12148
13210
  }
13211
+ `,
13212
+ viewToggle: u`
13213
+ border-radius: ${tokens.border.radius.sm};
13214
+ background-color: ${t2(colors.gray[200], colors.darkGray[600])};
13215
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
13216
+ display: flex;
13217
+ padding: 0;
13218
+ font-size: ${font.size.xs};
13219
+ color: ${t2(colors.gray[700], colors.gray[300])};
13220
+ overflow: hidden;
13221
+
13222
+ &:has(:focus-visible) {
13223
+ outline: 2px solid ${colors.blue[800]};
13224
+ }
13225
+
13226
+ & .tsqd-radio-toggle {
13227
+ opacity: 0.5;
13228
+ display: flex;
13229
+ & label {
13230
+ display: flex;
13231
+ align-items: center;
13232
+ cursor: pointer;
13233
+ line-height: ${font.lineHeight.md};
13234
+ }
13235
+
13236
+ & label:hover {
13237
+ background-color: ${t2(colors.gray[100], colors.darkGray[500])};
13238
+ }
13239
+ }
13240
+
13241
+ & > [data-checked] {
13242
+ opacity: 1;
13243
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
13244
+ & label:hover {
13245
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
13246
+ }
13247
+ }
13248
+
13249
+ & .tsqd-radio-toggle:first-child {
13250
+ & label {
13251
+ padding: 0 ${tokens.size[1.5]} 0 ${tokens.size[2]};
13252
+ }
13253
+ border-right: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
13254
+ }
13255
+
13256
+ & .tsqd-radio-toggle:nth-child(2) {
13257
+ & label {
13258
+ padding: 0 ${tokens.size[2]} 0 ${tokens.size[1.5]};
13259
+ }
13260
+ }
12149
13261
  `
12150
13262
  };
12151
13263
  };
@@ -12358,8 +13470,6 @@ delegateEvents(["click", "mousedown", "input"]);
12358
13470
  * Credits to the zag team:
12359
13471
  * https://github.com/chakra-ui/zag/blob/c1e6c7689b22bf58741ded7cf224dd9baec2a046/packages/utilities/form-utils/src/form.ts
12360
13472
  *)
12361
-
12362
- @kobalte/core/dist/esm/index.js:
12363
13473
  (*!
12364
13474
  * Portions of this file are based on code from react-spectrum.
12365
13475
  * Apache License Version 2.0, Copyright 2020 Adobe.
@@ -12714,4 +13824,4 @@ delegateEvents(["click", "mousedown", "input"]);
12714
13824
  *)
12715
13825
  */
12716
13826
 
12717
- export { Devtools, DevtoolsComponent, DevtoolsPanel, QueryRow, QueryStatus, QueryStatusCount, Devtools_default as default };
13827
+ export { Devtools, DevtoolsComponent, DevtoolsPanel, MutationRow, MutationStatusCount, QueryRow, QueryStatus, QueryStatusCount, Devtools_default as default };