@tanstack/query-devtools 5.0.3 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/dev.cjs CHANGED
@@ -6127,6 +6127,29 @@ function createFocusScope(props, ref) {
6127
6127
  });
6128
6128
  });
6129
6129
  }
6130
+ function createFormResetListener(element, handler) {
6131
+ createEffect(on(element, (element2) => {
6132
+ if (element2 == null) {
6133
+ return;
6134
+ }
6135
+ const form = getClosestForm(element2);
6136
+ if (form == null) {
6137
+ return;
6138
+ }
6139
+ form.addEventListener("reset", handler, {
6140
+ passive: true
6141
+ });
6142
+ onCleanup(() => {
6143
+ form.removeEventListener("reset", handler);
6144
+ });
6145
+ }));
6146
+ }
6147
+ function getClosestForm(element) {
6148
+ return isFormElement(element) ? element.form : element.closest("form");
6149
+ }
6150
+ function isFormElement(element) {
6151
+ return element.matches("textarea, input, select, button");
6152
+ }
6130
6153
  function createHideOutside(props) {
6131
6154
  createEffect(() => {
6132
6155
  if (access(props.isDisabled)) {
@@ -6556,6 +6579,70 @@ function createToggleState(props = {}) {
6556
6579
  toggle
6557
6580
  };
6558
6581
  }
6582
+ function createFormControl(props) {
6583
+ const defaultId = `form-control-${createUniqueId()}`;
6584
+ props = mergeDefaultProps({
6585
+ id: defaultId
6586
+ }, props);
6587
+ const [labelId, setLabelId] = createSignal();
6588
+ const [fieldId, setFieldId] = createSignal();
6589
+ const [descriptionId, setDescriptionId] = createSignal();
6590
+ const [errorMessageId, setErrorMessageId] = createSignal();
6591
+ const getAriaLabelledBy = (fieldId2, fieldAriaLabel, fieldAriaLabelledBy) => {
6592
+ const hasAriaLabelledBy = fieldAriaLabelledBy != null || labelId() != null;
6593
+ return [
6594
+ fieldAriaLabelledBy,
6595
+ labelId(),
6596
+ // If there is both an aria-label and aria-labelledby, add the field itself has an aria-labelledby
6597
+ hasAriaLabelledBy && fieldAriaLabel != null ? fieldId2 : void 0
6598
+ ].filter(Boolean).join(" ") || void 0;
6599
+ };
6600
+ const getAriaDescribedBy = (fieldAriaDescribedBy) => {
6601
+ return [
6602
+ descriptionId(),
6603
+ // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA.
6604
+ // See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
6605
+ errorMessageId(),
6606
+ fieldAriaDescribedBy
6607
+ ].filter(Boolean).join(" ") || void 0;
6608
+ };
6609
+ const dataset = createMemo(() => ({
6610
+ "data-valid": access(props.validationState) === "valid" ? "" : void 0,
6611
+ "data-invalid": access(props.validationState) === "invalid" ? "" : void 0,
6612
+ "data-required": access(props.required) ? "" : void 0,
6613
+ "data-disabled": access(props.disabled) ? "" : void 0,
6614
+ "data-readonly": access(props.readOnly) ? "" : void 0
6615
+ }));
6616
+ const formControlContext = {
6617
+ name: () => access(props.name) ?? access(props.id),
6618
+ dataset,
6619
+ validationState: () => access(props.validationState),
6620
+ isRequired: () => access(props.required),
6621
+ isDisabled: () => access(props.disabled),
6622
+ isReadOnly: () => access(props.readOnly),
6623
+ labelId,
6624
+ fieldId,
6625
+ descriptionId,
6626
+ errorMessageId,
6627
+ getAriaLabelledBy,
6628
+ getAriaDescribedBy,
6629
+ generateId: createGenerateId(() => access(props.id)),
6630
+ registerLabel: createRegisterId(setLabelId),
6631
+ registerField: createRegisterId(setFieldId),
6632
+ registerDescription: createRegisterId(setDescriptionId),
6633
+ registerErrorMessage: createRegisterId(setErrorMessageId)
6634
+ };
6635
+ return {
6636
+ formControlContext
6637
+ };
6638
+ }
6639
+ function useFormControlContext() {
6640
+ const context = useContext(FormControlContext);
6641
+ if (context === void 0) {
6642
+ throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");
6643
+ }
6644
+ return context;
6645
+ }
6559
6646
  function Polymorphic(props) {
6560
6647
  const [local, others] = splitProps(props, ["asChild", "as", "children"]);
6561
6648
  if (!local.asChild) {
@@ -6605,6 +6692,60 @@ function combineProps2(baseProps, overrideProps) {
6605
6692
  reverseEventHandlers: true
6606
6693
  });
6607
6694
  }
6695
+ function FormControlDescription(props) {
6696
+ const context = useFormControlContext();
6697
+ props = mergeDefaultProps({
6698
+ id: context.generateId("description")
6699
+ }, props);
6700
+ createEffect(() => onCleanup(context.registerDescription(props.id)));
6701
+ return createComponent(Polymorphic, mergeProps({
6702
+ as: "div"
6703
+ }, () => context.dataset(), props));
6704
+ }
6705
+ function FormControlErrorMessage(props) {
6706
+ const context = useFormControlContext();
6707
+ props = mergeDefaultProps({
6708
+ id: context.generateId("error-message")
6709
+ }, props);
6710
+ const [local, others] = splitProps(props, ["forceMount"]);
6711
+ const isInvalid = () => context.validationState() === "invalid";
6712
+ createEffect(() => {
6713
+ if (!isInvalid()) {
6714
+ return;
6715
+ }
6716
+ onCleanup(context.registerErrorMessage(others.id));
6717
+ });
6718
+ return createComponent(Show, {
6719
+ get when() {
6720
+ return local.forceMount || isInvalid();
6721
+ },
6722
+ get children() {
6723
+ return createComponent(Polymorphic, mergeProps({
6724
+ as: "div"
6725
+ }, () => context.dataset(), others));
6726
+ }
6727
+ });
6728
+ }
6729
+ function FormControlLabel(props) {
6730
+ let ref;
6731
+ const context = useFormControlContext();
6732
+ props = mergeDefaultProps({
6733
+ id: context.generateId("label")
6734
+ }, props);
6735
+ const [local, others] = splitProps(props, ["ref"]);
6736
+ const tagName = createTagName(() => ref, () => "label");
6737
+ createEffect(() => onCleanup(context.registerLabel(others.id)));
6738
+ return createComponent(Polymorphic, mergeProps({
6739
+ as: "label",
6740
+ ref(r$) {
6741
+ const _ref$ = mergeRefs((el) => ref = el, local.ref);
6742
+ typeof _ref$ === "function" && _ref$(r$);
6743
+ },
6744
+ get ["for"]() {
6745
+ return createMemo(() => tagName() === "label")() ? context.fieldId() : void 0;
6746
+ }
6747
+ }, () => context.dataset(), others));
6748
+ }
6608
6749
  function isRTL2(locale) {
6609
6750
  if (Intl.Locale) {
6610
6751
  const script = new Intl.Locale(locale).maximize().script ?? "";
@@ -9052,7 +9193,316 @@ function DropdownMenuRoot(props) {
9052
9193
  }, props);
9053
9194
  return createComponent(MenuRoot, props);
9054
9195
  }
9055
- var DATA_TOP_LAYER_ATTR, originalBodyPointerEvents, hasDisabledBodyPointerEvents, layers, layerStack, AUTOFOCUS_ON_MOUNT_EVENT, AUTOFOCUS_ON_UNMOUNT_EVENT, EVENT_OPTIONS, focusScopeStack, DATA_LIVE_ANNOUNCER_ATTR, refCountMap, observerStack, POINTER_DOWN_OUTSIDE_EVENT, FOCUS_OUTSIDE_EVENT, SCROLL_LOCK_IDENTIFIER, AS_COMPONENT_SYMBOL, RTL_SCRIPTS, RTL_LANGS, currentLocale, listeners, I18nContext, cache$1, Selection, SelectionManager, ListCollection, ListKeyboardDelegate, BUTTON_INPUT_TYPES, DomCollectionContext, DismissableLayerContext, PopperContext, _tmpl$$e, DEFAULT_SIZE, HALF_DEFAULT_SIZE, ROTATION_DEG, REVERSE_BASE_PLACEMENT, MenuContext, MenuRootContext, MenuItemContext, MenuGroupContext, MenuRadioGroupContext, SUB_CLOSE_KEYS, SELECTION_KEYS, SUB_OPEN_KEYS, index$d;
9196
+ function useRadioGroupContext() {
9197
+ const context = useContext(RadioGroupContext);
9198
+ if (context === void 0) {
9199
+ throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");
9200
+ }
9201
+ return context;
9202
+ }
9203
+ function useRadioGroupItemContext() {
9204
+ const context = useContext(RadioGroupItemContext);
9205
+ if (context === void 0) {
9206
+ throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");
9207
+ }
9208
+ return context;
9209
+ }
9210
+ function RadioGroupItem(props) {
9211
+ const formControlContext = useFormControlContext();
9212
+ const radioGroupContext = useRadioGroupContext();
9213
+ const defaultId = `${formControlContext.generateId("item")}-${createUniqueId()}`;
9214
+ props = mergeDefaultProps({
9215
+ id: defaultId
9216
+ }, props);
9217
+ const [local, others] = splitProps(props, ["value", "disabled", "onPointerDown"]);
9218
+ const [inputId, setInputId] = createSignal();
9219
+ const [labelId, setLabelId] = createSignal();
9220
+ const [descriptionId, setDescriptionId] = createSignal();
9221
+ const [inputRef, setInputRef] = createSignal();
9222
+ const [isFocused, setIsFocused] = createSignal(false);
9223
+ const isSelected = createMemo(() => {
9224
+ return radioGroupContext.isSelectedValue(local.value);
9225
+ });
9226
+ const isDisabled = createMemo(() => {
9227
+ return local.disabled || formControlContext.isDisabled() || false;
9228
+ });
9229
+ const onPointerDown = (e2) => {
9230
+ callHandler(e2, local.onPointerDown);
9231
+ if (isFocused()) {
9232
+ e2.preventDefault();
9233
+ }
9234
+ };
9235
+ const dataset = createMemo(() => ({
9236
+ ...formControlContext.dataset(),
9237
+ "data-disabled": isDisabled() ? "" : void 0,
9238
+ "data-checked": isSelected() ? "" : void 0
9239
+ }));
9240
+ const context = {
9241
+ value: () => local.value,
9242
+ dataset,
9243
+ isSelected,
9244
+ isDisabled,
9245
+ inputId,
9246
+ labelId,
9247
+ descriptionId,
9248
+ inputRef,
9249
+ select: () => radioGroupContext.setSelectedValue(local.value),
9250
+ generateId: createGenerateId(() => others.id),
9251
+ registerInput: createRegisterId(setInputId),
9252
+ registerLabel: createRegisterId(setLabelId),
9253
+ registerDescription: createRegisterId(setDescriptionId),
9254
+ setIsFocused,
9255
+ setInputRef
9256
+ };
9257
+ return createComponent(RadioGroupItemContext.Provider, {
9258
+ value: context,
9259
+ get children() {
9260
+ return createComponent(Polymorphic, mergeProps({
9261
+ as: "div",
9262
+ role: "group",
9263
+ onPointerDown
9264
+ }, dataset, others));
9265
+ }
9266
+ });
9267
+ }
9268
+ function RadioGroupItemControl(props) {
9269
+ const context = useRadioGroupItemContext();
9270
+ props = mergeDefaultProps({
9271
+ id: context.generateId("control")
9272
+ }, props);
9273
+ const [local, others] = splitProps(props, ["onClick", "onKeyDown"]);
9274
+ const onClick = (e2) => {
9275
+ callHandler(e2, local.onClick);
9276
+ context.select();
9277
+ context.inputRef()?.focus();
9278
+ };
9279
+ const onKeyDown = (e2) => {
9280
+ callHandler(e2, local.onKeyDown);
9281
+ if (e2.key === EventKey.Space) {
9282
+ context.select();
9283
+ context.inputRef()?.focus();
9284
+ }
9285
+ };
9286
+ return createComponent(Polymorphic, mergeProps({
9287
+ as: "div",
9288
+ onClick,
9289
+ onKeyDown
9290
+ }, () => context.dataset(), others));
9291
+ }
9292
+ function RadioGroupItemDescription(props) {
9293
+ const context = useRadioGroupItemContext();
9294
+ props = mergeDefaultProps({
9295
+ id: context.generateId("description")
9296
+ }, props);
9297
+ createEffect(() => onCleanup(context.registerDescription(props.id)));
9298
+ return createComponent(Polymorphic, mergeProps({
9299
+ as: "div"
9300
+ }, () => context.dataset(), props));
9301
+ }
9302
+ function RadioGroupItemIndicator(props) {
9303
+ const context = useRadioGroupItemContext();
9304
+ props = mergeDefaultProps({
9305
+ id: context.generateId("indicator")
9306
+ }, props);
9307
+ const [local, others] = splitProps(props, ["ref", "forceMount"]);
9308
+ const presence = createPresence(() => local.forceMount || context.isSelected());
9309
+ return createComponent(Show, {
9310
+ get when() {
9311
+ return presence.isPresent();
9312
+ },
9313
+ get children() {
9314
+ return createComponent(Polymorphic, mergeProps({
9315
+ as: "div",
9316
+ ref(r$) {
9317
+ const _ref$ = mergeRefs(presence.setRef, local.ref);
9318
+ typeof _ref$ === "function" && _ref$(r$);
9319
+ }
9320
+ }, () => context.dataset(), others));
9321
+ }
9322
+ });
9323
+ }
9324
+ function RadioGroupItemInput(props) {
9325
+ const formControlContext = useFormControlContext();
9326
+ const radioGroupContext = useRadioGroupContext();
9327
+ const radioContext = useRadioGroupItemContext();
9328
+ props = mergeDefaultProps({
9329
+ id: radioContext.generateId("input")
9330
+ }, props);
9331
+ const [local, others] = splitProps(props, ["ref", "style", "aria-labelledby", "aria-describedby", "onChange", "onFocus", "onBlur"]);
9332
+ const ariaLabelledBy = () => {
9333
+ return [
9334
+ local["aria-labelledby"],
9335
+ radioContext.labelId(),
9336
+ // If there is both an aria-label and aria-labelledby, add the input itself has an aria-labelledby
9337
+ local["aria-labelledby"] != null && others["aria-label"] != null ? others.id : void 0
9338
+ ].filter(Boolean).join(" ") || void 0;
9339
+ };
9340
+ const ariaDescribedBy = () => {
9341
+ return [local["aria-describedby"], radioContext.descriptionId(), radioGroupContext.ariaDescribedBy()].filter(Boolean).join(" ") || void 0;
9342
+ };
9343
+ const onChange = (e2) => {
9344
+ callHandler(e2, local.onChange);
9345
+ e2.stopPropagation();
9346
+ radioGroupContext.setSelectedValue(radioContext.value());
9347
+ const target = e2.target;
9348
+ target.checked = radioContext.isSelected();
9349
+ };
9350
+ const onFocus = (e2) => {
9351
+ callHandler(e2, local.onFocus);
9352
+ radioContext.setIsFocused(true);
9353
+ };
9354
+ const onBlur = (e2) => {
9355
+ callHandler(e2, local.onBlur);
9356
+ radioContext.setIsFocused(false);
9357
+ };
9358
+ createEffect(() => onCleanup(radioContext.registerInput(others.id)));
9359
+ return (() => {
9360
+ const _el$ = _tmpl$$6();
9361
+ _el$.addEventListener("blur", onBlur);
9362
+ _el$.addEventListener("focus", onFocus);
9363
+ _el$.addEventListener("change", onChange);
9364
+ const _ref$ = mergeRefs(radioContext.setInputRef, local.ref);
9365
+ typeof _ref$ === "function" && use(_ref$, _el$);
9366
+ spread(_el$, mergeProps({
9367
+ get name() {
9368
+ return formControlContext.name();
9369
+ },
9370
+ get value() {
9371
+ return radioContext.value();
9372
+ },
9373
+ get checked() {
9374
+ return radioContext.isSelected();
9375
+ },
9376
+ get required() {
9377
+ return formControlContext.isRequired();
9378
+ },
9379
+ get disabled() {
9380
+ return radioContext.isDisabled();
9381
+ },
9382
+ get readonly() {
9383
+ return formControlContext.isReadOnly();
9384
+ },
9385
+ get style() {
9386
+ return {
9387
+ ...visuallyHiddenStyles,
9388
+ ...local.style
9389
+ };
9390
+ },
9391
+ get ["aria-labelledby"]() {
9392
+ return ariaLabelledBy();
9393
+ },
9394
+ get ["aria-describedby"]() {
9395
+ return ariaDescribedBy();
9396
+ }
9397
+ }, () => radioContext.dataset(), others), false, false);
9398
+ return _el$;
9399
+ })();
9400
+ }
9401
+ function RadioGroupItemLabel(props) {
9402
+ const context = useRadioGroupItemContext();
9403
+ props = mergeDefaultProps({
9404
+ id: context.generateId("label")
9405
+ }, props);
9406
+ createEffect(() => onCleanup(context.registerLabel(props.id)));
9407
+ return (() => {
9408
+ const _el$ = _tmpl$$5();
9409
+ spread(_el$, mergeProps({
9410
+ get ["for"]() {
9411
+ return context.inputId();
9412
+ }
9413
+ }, () => context.dataset(), props), false, false);
9414
+ return _el$;
9415
+ })();
9416
+ }
9417
+ function RadioGroupLabel(props) {
9418
+ return createComponent(FormControlLabel, mergeProps({
9419
+ as: "span"
9420
+ }, props));
9421
+ }
9422
+ function RadioGroupRoot(props) {
9423
+ let ref;
9424
+ const defaultId = `radiogroup-${createUniqueId()}`;
9425
+ props = mergeDefaultProps({
9426
+ id: defaultId,
9427
+ orientation: "vertical"
9428
+ }, props);
9429
+ const [local, formControlProps, others] = splitProps(props, ["ref", "value", "defaultValue", "onChange", "orientation", "aria-labelledby", "aria-describedby"], FORM_CONTROL_PROP_NAMES);
9430
+ const [selected, setSelected] = createControllableSignal({
9431
+ value: () => local.value,
9432
+ defaultValue: () => local.defaultValue,
9433
+ onChange: (value) => local.onChange?.(value)
9434
+ });
9435
+ const {
9436
+ formControlContext
9437
+ } = createFormControl(formControlProps);
9438
+ createFormResetListener(() => ref, () => setSelected(local.defaultValue ?? ""));
9439
+ const ariaLabelledBy = () => {
9440
+ return formControlContext.getAriaLabelledBy(access(formControlProps.id), others["aria-label"], local["aria-labelledby"]);
9441
+ };
9442
+ const ariaDescribedBy = () => {
9443
+ return formControlContext.getAriaDescribedBy(local["aria-describedby"]);
9444
+ };
9445
+ const isSelectedValue = (value) => {
9446
+ return value === selected();
9447
+ };
9448
+ const context = {
9449
+ ariaDescribedBy,
9450
+ isSelectedValue,
9451
+ setSelectedValue: (value) => {
9452
+ if (formControlContext.isReadOnly() || formControlContext.isDisabled()) {
9453
+ return;
9454
+ }
9455
+ setSelected(value);
9456
+ ref?.querySelectorAll("[type='radio']").forEach((el) => {
9457
+ const radio = el;
9458
+ radio.checked = isSelectedValue(radio.value);
9459
+ });
9460
+ }
9461
+ };
9462
+ return createComponent(FormControlContext.Provider, {
9463
+ value: formControlContext,
9464
+ get children() {
9465
+ return createComponent(RadioGroupContext.Provider, {
9466
+ value: context,
9467
+ get children() {
9468
+ return createComponent(Polymorphic, mergeProps({
9469
+ as: "div",
9470
+ ref(r$) {
9471
+ const _ref$ = mergeRefs((el) => ref = el, local.ref);
9472
+ typeof _ref$ === "function" && _ref$(r$);
9473
+ },
9474
+ role: "radiogroup",
9475
+ get id() {
9476
+ return access(formControlProps.id);
9477
+ },
9478
+ get ["aria-invalid"]() {
9479
+ return formControlContext.validationState() === "invalid" || void 0;
9480
+ },
9481
+ get ["aria-required"]() {
9482
+ return formControlContext.isRequired() || void 0;
9483
+ },
9484
+ get ["aria-disabled"]() {
9485
+ return formControlContext.isDisabled() || void 0;
9486
+ },
9487
+ get ["aria-readonly"]() {
9488
+ return formControlContext.isReadOnly() || void 0;
9489
+ },
9490
+ get ["aria-orientation"]() {
9491
+ return local.orientation;
9492
+ },
9493
+ get ["aria-labelledby"]() {
9494
+ return ariaLabelledBy();
9495
+ },
9496
+ get ["aria-describedby"]() {
9497
+ return ariaDescribedBy();
9498
+ }
9499
+ }, () => formControlContext.dataset(), others));
9500
+ }
9501
+ });
9502
+ }
9503
+ });
9504
+ }
9505
+ var DATA_TOP_LAYER_ATTR, originalBodyPointerEvents, hasDisabledBodyPointerEvents, layers, layerStack, AUTOFOCUS_ON_MOUNT_EVENT, AUTOFOCUS_ON_UNMOUNT_EVENT, EVENT_OPTIONS, focusScopeStack, DATA_LIVE_ANNOUNCER_ATTR, refCountMap, observerStack, POINTER_DOWN_OUTSIDE_EVENT, FOCUS_OUTSIDE_EVENT, SCROLL_LOCK_IDENTIFIER, FORM_CONTROL_PROP_NAMES, FormControlContext, AS_COMPONENT_SYMBOL, RTL_SCRIPTS, RTL_LANGS, currentLocale, listeners, I18nContext, cache$1, Selection, SelectionManager, ListCollection, ListKeyboardDelegate, BUTTON_INPUT_TYPES, DomCollectionContext, DismissableLayerContext, PopperContext, _tmpl$$e, DEFAULT_SIZE, HALF_DEFAULT_SIZE, ROTATION_DEG, REVERSE_BASE_PLACEMENT, MenuContext, MenuRootContext, MenuItemContext, MenuGroupContext, MenuRadioGroupContext, SUB_CLOSE_KEYS, SELECTION_KEYS, SUB_OPEN_KEYS, index$d, RadioGroupContext, RadioGroupItemContext, _tmpl$$6, _tmpl$$5, index$7;
9056
9506
  var init_esm = __esm({
9057
9507
  "../../node_modules/.pnpm/@kobalte+core@0.11.0_solid-js@1.8.1/node_modules/@kobalte/core/dist/esm/index.js"() {
9058
9508
  init_dist9();
@@ -9107,6 +9557,8 @@ var init_esm = __esm({
9107
9557
  POINTER_DOWN_OUTSIDE_EVENT = "interactOutside.pointerDownOutside";
9108
9558
  FOCUS_OUTSIDE_EVENT = "interactOutside.focusOutside";
9109
9559
  SCROLL_LOCK_IDENTIFIER = "data-kb-scroll-lock";
9560
+ FORM_CONTROL_PROP_NAMES = ["id", "name", "validationState", "required", "disabled", "readOnly"];
9561
+ FormControlContext = createContext();
9110
9562
  AS_COMPONENT_SYMBOL = Symbol("$$KobalteAsComponent");
9111
9563
  RTL_SCRIPTS = /* @__PURE__ */ new Set(["Avst", "Arab", "Armi", "Syrc", "Samr", "Mand", "Thaa", "Mend", "Nkoo", "Adlm", "Rohg", "Hebr"]);
9112
9564
  RTL_LANGS = /* @__PURE__ */ new Set(["ae", "ar", "arc", "bcc", "bqi", "ckb", "dv", "fa", "glk", "he", "ku", "mzn", "nqo", "pnb", "ps", "sd", "ug", "ur", "yi"]);
@@ -10013,6 +10465,23 @@ var init_esm = __esm({
10013
10465
  SubTrigger: MenuSubTrigger,
10014
10466
  Trigger: MenuTrigger
10015
10467
  });
10468
+ RadioGroupContext = createContext();
10469
+ RadioGroupItemContext = createContext();
10470
+ _tmpl$$6 = /* @__PURE__ */ template(`<input type="radio">`);
10471
+ _tmpl$$5 = /* @__PURE__ */ template(`<label>`);
10472
+ index$7 = /* @__PURE__ */ Object.freeze({
10473
+ __proto__: null,
10474
+ Description: FormControlDescription,
10475
+ ErrorMessage: FormControlErrorMessage,
10476
+ Item: RadioGroupItem,
10477
+ ItemControl: RadioGroupItemControl,
10478
+ ItemDescription: RadioGroupItemDescription,
10479
+ ItemIndicator: RadioGroupItemIndicator,
10480
+ ItemInput: RadioGroupItemInput,
10481
+ ItemLabel: RadioGroupItemLabel,
10482
+ Label: RadioGroupLabel,
10483
+ Root: RadioGroupRoot
10484
+ });
10016
10485
  delegateEvents(["focusin", "focusout", "pointermove"]);
10017
10486
  delegateEvents(["keydown", "pointerdown", "pointermove", "pointerup"]);
10018
10487
  }
@@ -10115,17 +10584,17 @@ var init_theme = __esm({
10115
10584
  900: "#054F31"
10116
10585
  },
10117
10586
  red: {
10118
- 25: "#FFFBFA",
10119
- 50: "#FEF3F2",
10120
- 100: "#FEE4E2",
10121
- 200: "#FECDCA",
10122
- 300: "#FDA29B",
10123
- 400: "#F97066",
10124
- 500: "#F04438",
10125
- 600: "#D92D20",
10126
- 700: "#B42318",
10127
- 800: "#912018",
10128
- 900: "#7A271A"
10587
+ 50: "#fef2f2",
10588
+ 100: "#fee2e2",
10589
+ 200: "#fecaca",
10590
+ 300: "#fca5a5",
10591
+ 400: "#f87171",
10592
+ 500: "#ef4444",
10593
+ 600: "#dc2626",
10594
+ 700: "#b91c1c",
10595
+ 800: "#991b1b",
10596
+ 900: "#7f1d1d",
10597
+ 950: "#450a0a"
10129
10598
  },
10130
10599
  yellow: {
10131
10600
  25: "#FFFCF5",
@@ -11450,10 +11919,16 @@ function getQueryStatusColor({
11450
11919
  }) {
11451
11920
  return queryState.fetchStatus === "fetching" ? "blue" : !observerCount ? "gray" : queryState.fetchStatus === "paused" ? "purple" : isStale ? "yellow" : "green";
11452
11921
  }
11922
+ function getMutationStatusColor({
11923
+ status,
11924
+ isPaused
11925
+ }) {
11926
+ return isPaused ? "purple" : status === "error" ? "red" : status === "pending" ? "yellow" : status === "success" ? "green" : "gray";
11927
+ }
11453
11928
  function getQueryStatusColorByLabel(label) {
11454
11929
  return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
11455
11930
  }
11456
- var displayValue, getStatusRank, queryHashSort, dateSort, statusAndDateSort, sortFns, convertRemToPixels, getPreferredColorScheme, updateNestedDataByPath, deleteNestedDataByPath;
11931
+ var displayValue, getStatusRank, queryHashSort, dateSort, statusAndDateSort, sortFns, getMutationStatusRank, mutationDateSort, mutationStatusSort, mutationSortFns, convertRemToPixels, getPreferredColorScheme, updateNestedDataByPath, deleteNestedDataByPath;
11457
11932
  var init_utils = __esm({
11458
11933
  "src/utils.tsx"() {
11459
11934
  init_esm2();
@@ -11478,6 +11953,18 @@ var init_utils = __esm({
11478
11953
  "query hash": queryHashSort,
11479
11954
  "last updated": dateSort
11480
11955
  };
11956
+ getMutationStatusRank = (m) => m.state.isPaused ? 0 : m.state.status === "error" ? 2 : m.state.status === "pending" ? 1 : 3;
11957
+ mutationDateSort = (a2, b2) => a2.state.submittedAt < b2.state.submittedAt ? 1 : -1;
11958
+ mutationStatusSort = (a2, b2) => {
11959
+ if (getMutationStatusRank(a2) === getMutationStatusRank(b2)) {
11960
+ return mutationDateSort(a2, b2);
11961
+ }
11962
+ return getMutationStatusRank(a2) > getMutationStatusRank(b2) ? 1 : -1;
11963
+ };
11964
+ mutationSortFns = {
11965
+ status: mutationStatusSort,
11966
+ "last updated": mutationDateSort
11967
+ };
11481
11968
  convertRemToPixels = (rem) => {
11482
11969
  return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
11483
11970
  };
@@ -11662,92 +12149,104 @@ function Check(props) {
11662
12149
  }
11663
12150
  })];
11664
12151
  }
12152
+ function CheckCircle() {
12153
+ return _tmpl$17();
12154
+ }
12155
+ function LoadingCircle() {
12156
+ return _tmpl$18();
12157
+ }
12158
+ function XCircle() {
12159
+ return _tmpl$19();
12160
+ }
12161
+ function PauseCircle() {
12162
+ return _tmpl$20();
12163
+ }
11665
12164
  function TanstackLogo() {
11666
12165
  const id = createUniqueId();
11667
12166
  return (() => {
11668
- 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;
11669
- setAttribute(_el$24, "id", `a-${id}`);
11670
- setAttribute(_el$25, "fill", `url(#a-${id})`);
11671
- setAttribute(_el$27, "id", `am-${id}`);
11672
- setAttribute(_el$28, "id", `b-${id}`);
11673
- setAttribute(_el$29, "filter", `url(#am-${id})`);
11674
- setAttribute(_el$30, "mask", `url(#b-${id})`);
11675
- setAttribute(_el$32, "id", `ah-${id}`);
11676
- setAttribute(_el$33, "id", `k-${id}`);
11677
- setAttribute(_el$34, "filter", `url(#ah-${id})`);
11678
- setAttribute(_el$35, "mask", `url(#k-${id})`);
11679
- setAttribute(_el$37, "id", `ae-${id}`);
11680
- setAttribute(_el$38, "id", `j-${id}`);
11681
- setAttribute(_el$39, "filter", `url(#ae-${id})`);
11682
- setAttribute(_el$40, "mask", `url(#j-${id})`);
11683
- setAttribute(_el$42, "id", `ai-${id}`);
11684
- setAttribute(_el$43, "id", `i-${id}`);
11685
- setAttribute(_el$44, "filter", `url(#ai-${id})`);
11686
- setAttribute(_el$45, "mask", `url(#i-${id})`);
11687
- setAttribute(_el$47, "id", `aj-${id}`);
11688
- setAttribute(_el$48, "id", `h-${id}`);
11689
- setAttribute(_el$49, "filter", `url(#aj-${id})`);
11690
- setAttribute(_el$50, "mask", `url(#h-${id})`);
11691
- setAttribute(_el$52, "id", `ag-${id}`);
11692
- setAttribute(_el$53, "id", `g-${id}`);
11693
- setAttribute(_el$54, "filter", `url(#ag-${id})`);
11694
- setAttribute(_el$55, "mask", `url(#g-${id})`);
11695
- setAttribute(_el$57, "id", `af-${id}`);
11696
- setAttribute(_el$58, "id", `f-${id}`);
11697
- setAttribute(_el$59, "filter", `url(#af-${id})`);
11698
- setAttribute(_el$60, "mask", `url(#f-${id})`);
11699
- setAttribute(_el$64, "id", `m-${id}`);
11700
- setAttribute(_el$65, "fill", `url(#m-${id})`);
11701
- setAttribute(_el$67, "id", `ak-${id}`);
11702
- setAttribute(_el$68, "id", `e-${id}`);
11703
- setAttribute(_el$69, "filter", `url(#ak-${id})`);
11704
- setAttribute(_el$70, "mask", `url(#e-${id})`);
11705
- setAttribute(_el$71, "id", `n-${id}`);
11706
- setAttribute(_el$72, "fill", `url(#n-${id})`);
11707
- setAttribute(_el$74, "id", `r-${id}`);
11708
- setAttribute(_el$75, "fill", `url(#r-${id})`);
11709
- setAttribute(_el$76, "id", `s-${id}`);
11710
- setAttribute(_el$77, "fill", `url(#s-${id})`);
11711
- setAttribute(_el$78, "id", `q-${id}`);
11712
- setAttribute(_el$79, "fill", `url(#q-${id})`);
11713
- setAttribute(_el$80, "id", `p-${id}`);
11714
- setAttribute(_el$81, "fill", `url(#p-${id})`);
11715
- setAttribute(_el$82, "id", `o-${id}`);
11716
- setAttribute(_el$83, "fill", `url(#o-${id})`);
11717
- setAttribute(_el$84, "id", `l-${id}`);
11718
- setAttribute(_el$85, "fill", `url(#l-${id})`);
11719
- setAttribute(_el$87, "id", `al-${id}`);
11720
- setAttribute(_el$88, "id", `d-${id}`);
11721
- setAttribute(_el$89, "filter", `url(#al-${id})`);
11722
- setAttribute(_el$90, "mask", `url(#d-${id})`);
11723
- setAttribute(_el$91, "id", `u-${id}`);
11724
- setAttribute(_el$92, "fill", `url(#u-${id})`);
11725
- setAttribute(_el$94, "id", `ad-${id}`);
11726
- setAttribute(_el$95, "id", `c-${id}`);
11727
- setAttribute(_el$96, "filter", `url(#ad-${id})`);
11728
- setAttribute(_el$97, "mask", `url(#c-${id})`);
11729
- setAttribute(_el$98, "id", `t-${id}`);
11730
- setAttribute(_el$99, "fill", `url(#t-${id})`);
11731
- setAttribute(_el$100, "id", `v-${id}`);
11732
- setAttribute(_el$101, "stroke", `url(#v-${id})`);
11733
- setAttribute(_el$102, "id", `aa-${id}`);
11734
- setAttribute(_el$103, "stroke", `url(#aa-${id})`);
11735
- setAttribute(_el$104, "id", `w-${id}`);
11736
- setAttribute(_el$105, "stroke", `url(#w-${id})`);
11737
- setAttribute(_el$106, "id", `ac-${id}`);
11738
- setAttribute(_el$107, "stroke", `url(#ac-${id})`);
11739
- setAttribute(_el$108, "id", `ab-${id}`);
11740
- setAttribute(_el$109, "stroke", `url(#ab-${id})`);
11741
- setAttribute(_el$110, "id", `y-${id}`);
11742
- setAttribute(_el$111, "stroke", `url(#y-${id})`);
11743
- setAttribute(_el$112, "id", `x-${id}`);
11744
- setAttribute(_el$113, "stroke", `url(#x-${id})`);
11745
- setAttribute(_el$114, "id", `z-${id}`);
11746
- setAttribute(_el$115, "stroke", `url(#z-${id})`);
11747
- return _el$23;
12167
+ 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;
12168
+ setAttribute(_el$28, "id", `a-${id}`);
12169
+ setAttribute(_el$29, "fill", `url(#a-${id})`);
12170
+ setAttribute(_el$31, "id", `am-${id}`);
12171
+ setAttribute(_el$32, "id", `b-${id}`);
12172
+ setAttribute(_el$33, "filter", `url(#am-${id})`);
12173
+ setAttribute(_el$34, "mask", `url(#b-${id})`);
12174
+ setAttribute(_el$36, "id", `ah-${id}`);
12175
+ setAttribute(_el$37, "id", `k-${id}`);
12176
+ setAttribute(_el$38, "filter", `url(#ah-${id})`);
12177
+ setAttribute(_el$39, "mask", `url(#k-${id})`);
12178
+ setAttribute(_el$41, "id", `ae-${id}`);
12179
+ setAttribute(_el$42, "id", `j-${id}`);
12180
+ setAttribute(_el$43, "filter", `url(#ae-${id})`);
12181
+ setAttribute(_el$44, "mask", `url(#j-${id})`);
12182
+ setAttribute(_el$46, "id", `ai-${id}`);
12183
+ setAttribute(_el$47, "id", `i-${id}`);
12184
+ setAttribute(_el$48, "filter", `url(#ai-${id})`);
12185
+ setAttribute(_el$49, "mask", `url(#i-${id})`);
12186
+ setAttribute(_el$51, "id", `aj-${id}`);
12187
+ setAttribute(_el$52, "id", `h-${id}`);
12188
+ setAttribute(_el$53, "filter", `url(#aj-${id})`);
12189
+ setAttribute(_el$54, "mask", `url(#h-${id})`);
12190
+ setAttribute(_el$56, "id", `ag-${id}`);
12191
+ setAttribute(_el$57, "id", `g-${id}`);
12192
+ setAttribute(_el$58, "filter", `url(#ag-${id})`);
12193
+ setAttribute(_el$59, "mask", `url(#g-${id})`);
12194
+ setAttribute(_el$61, "id", `af-${id}`);
12195
+ setAttribute(_el$62, "id", `f-${id}`);
12196
+ setAttribute(_el$63, "filter", `url(#af-${id})`);
12197
+ setAttribute(_el$64, "mask", `url(#f-${id})`);
12198
+ setAttribute(_el$68, "id", `m-${id}`);
12199
+ setAttribute(_el$69, "fill", `url(#m-${id})`);
12200
+ setAttribute(_el$71, "id", `ak-${id}`);
12201
+ setAttribute(_el$72, "id", `e-${id}`);
12202
+ setAttribute(_el$73, "filter", `url(#ak-${id})`);
12203
+ setAttribute(_el$74, "mask", `url(#e-${id})`);
12204
+ setAttribute(_el$75, "id", `n-${id}`);
12205
+ setAttribute(_el$76, "fill", `url(#n-${id})`);
12206
+ setAttribute(_el$78, "id", `r-${id}`);
12207
+ setAttribute(_el$79, "fill", `url(#r-${id})`);
12208
+ setAttribute(_el$80, "id", `s-${id}`);
12209
+ setAttribute(_el$81, "fill", `url(#s-${id})`);
12210
+ setAttribute(_el$82, "id", `q-${id}`);
12211
+ setAttribute(_el$83, "fill", `url(#q-${id})`);
12212
+ setAttribute(_el$84, "id", `p-${id}`);
12213
+ setAttribute(_el$85, "fill", `url(#p-${id})`);
12214
+ setAttribute(_el$86, "id", `o-${id}`);
12215
+ setAttribute(_el$87, "fill", `url(#o-${id})`);
12216
+ setAttribute(_el$88, "id", `l-${id}`);
12217
+ setAttribute(_el$89, "fill", `url(#l-${id})`);
12218
+ setAttribute(_el$91, "id", `al-${id}`);
12219
+ setAttribute(_el$92, "id", `d-${id}`);
12220
+ setAttribute(_el$93, "filter", `url(#al-${id})`);
12221
+ setAttribute(_el$94, "mask", `url(#d-${id})`);
12222
+ setAttribute(_el$95, "id", `u-${id}`);
12223
+ setAttribute(_el$96, "fill", `url(#u-${id})`);
12224
+ setAttribute(_el$98, "id", `ad-${id}`);
12225
+ setAttribute(_el$99, "id", `c-${id}`);
12226
+ setAttribute(_el$100, "filter", `url(#ad-${id})`);
12227
+ setAttribute(_el$101, "mask", `url(#c-${id})`);
12228
+ setAttribute(_el$102, "id", `t-${id}`);
12229
+ setAttribute(_el$103, "fill", `url(#t-${id})`);
12230
+ setAttribute(_el$104, "id", `v-${id}`);
12231
+ setAttribute(_el$105, "stroke", `url(#v-${id})`);
12232
+ setAttribute(_el$106, "id", `aa-${id}`);
12233
+ setAttribute(_el$107, "stroke", `url(#aa-${id})`);
12234
+ setAttribute(_el$108, "id", `w-${id}`);
12235
+ setAttribute(_el$109, "stroke", `url(#w-${id})`);
12236
+ setAttribute(_el$110, "id", `ac-${id}`);
12237
+ setAttribute(_el$111, "stroke", `url(#ac-${id})`);
12238
+ setAttribute(_el$112, "id", `ab-${id}`);
12239
+ setAttribute(_el$113, "stroke", `url(#ab-${id})`);
12240
+ setAttribute(_el$114, "id", `y-${id}`);
12241
+ setAttribute(_el$115, "stroke", `url(#y-${id})`);
12242
+ setAttribute(_el$116, "id", `x-${id}`);
12243
+ setAttribute(_el$117, "stroke", `url(#x-${id})`);
12244
+ setAttribute(_el$118, "id", `z-${id}`);
12245
+ setAttribute(_el$119, "stroke", `url(#z-${id})`);
12246
+ return _el$27;
11748
12247
  })();
11749
12248
  }
11750
- var _tmpl$, _tmpl$2, _tmpl$3, _tmpl$4, _tmpl$5, _tmpl$6, _tmpl$7, _tmpl$8, _tmpl$9, _tmpl$10, _tmpl$11, _tmpl$12, _tmpl$13, _tmpl$14, _tmpl$15, _tmpl$16, _tmpl$17;
12249
+ var _tmpl$, _tmpl$2, _tmpl$3, _tmpl$4, _tmpl$5, _tmpl$6, _tmpl$7, _tmpl$8, _tmpl$9, _tmpl$10, _tmpl$11, _tmpl$12, _tmpl$13, _tmpl$14, _tmpl$15, _tmpl$16, _tmpl$17, _tmpl$18, _tmpl$19, _tmpl$20, _tmpl$21;
11751
12250
  var init_icons = __esm({
11752
12251
  "src/icons/index.tsx"() {
11753
12252
  init_web();
@@ -11771,7 +12270,11 @@ var init_icons = __esm({
11771
12270
  _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>`);
11772
12271
  _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>`);
11773
12272
  _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>`);
11774
- _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>`);
12273
+ _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>`);
12274
+ _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>`);
12275
+ _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>`);
12276
+ _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>`);
12277
+ _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>`);
11775
12278
  }
11776
12279
  });
11777
12280
 
@@ -12146,7 +12649,7 @@ function Explorer(props) {
12146
12649
  return _el$6;
12147
12650
  })();
12148
12651
  }
12149
- var _tmpl$18, _tmpl$22, _tmpl$32, _tmpl$42, _tmpl$52, _tmpl$62, _tmpl$72, _tmpl$82, _tmpl$92, _tmpl$102, _tmpl$112, Expander, CopyButton, ClearArrayButton, DeleteItemButton, ToggleValueButton, stylesFactory, lightStyles, darkStyles;
12652
+ var _tmpl$22, _tmpl$23, _tmpl$32, _tmpl$42, _tmpl$52, _tmpl$62, _tmpl$72, _tmpl$82, _tmpl$92, _tmpl$102, _tmpl$112, Expander, CopyButton, ClearArrayButton, DeleteItemButton, ToggleValueButton, stylesFactory, lightStyles, darkStyles;
12150
12653
  var init_Explorer = __esm({
12151
12654
  "src/Explorer.tsx"() {
12152
12655
  init_web();
@@ -12167,8 +12670,8 @@ var init_Explorer = __esm({
12167
12670
  init_utils();
12168
12671
  init_icons();
12169
12672
  init_Context();
12170
- _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>`);
12171
- _tmpl$22 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
12673
+ _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>`);
12674
+ _tmpl$23 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
12172
12675
  _tmpl$32 = /* @__PURE__ */ template(`<button title="Remove all items"aria-label="Remove all items">`);
12173
12676
  _tmpl$42 = /* @__PURE__ */ template(`<button title="Delete item"aria-label="Delete item">`);
12174
12677
  _tmpl$52 = /* @__PURE__ */ template(`<button title="Toggle value"aria-label="Toggle value">`);
@@ -12184,7 +12687,7 @@ var init_Explorer = __esm({
12184
12687
  return theme() === "dark" ? darkStyles : lightStyles;
12185
12688
  });
12186
12689
  return (() => {
12187
- const _el$ = _tmpl$18();
12690
+ const _el$ = _tmpl$22();
12188
12691
  createRenderEffect(() => className(_el$, clsx(styles().expander, u`
12189
12692
  transform: rotate(${props.expanded ? 90 : 0}deg);
12190
12693
  `, props.expanded && u`
@@ -12202,7 +12705,7 @@ var init_Explorer = __esm({
12202
12705
  });
12203
12706
  const [copyState, setCopyState] = createSignal("NoCopy");
12204
12707
  return (() => {
12205
- const _el$2 = _tmpl$22();
12708
+ const _el$2 = _tmpl$23();
12206
12709
  addEventListener(_el$2, "click", copyState() === "NoCopy" ? () => {
12207
12710
  navigator.clipboard.writeText(stringify(props.value)).then(() => {
12208
12711
  setCopyState("SuccessCopy");
@@ -12480,12 +12983,14 @@ __export(Devtools_exports, {
12480
12983
  Devtools: () => Devtools,
12481
12984
  DevtoolsComponent: () => DevtoolsComponent,
12482
12985
  DevtoolsPanel: () => DevtoolsPanel,
12986
+ MutationRow: () => MutationRow,
12987
+ MutationStatusCount: () => MutationStatusCount,
12483
12988
  QueryRow: () => QueryRow,
12484
12989
  QueryStatus: () => QueryStatus,
12485
12990
  QueryStatusCount: () => QueryStatusCount,
12486
12991
  default: () => Devtools_default
12487
12992
  });
12488
- var _tmpl$19, _tmpl$23, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$103, _tmpl$113, _tmpl$122, _tmpl$132, _tmpl$142, _tmpl$152, _tmpl$162, _tmpl$172, _tmpl$182, _tmpl$192, _tmpl$20, _tmpl$21, _tmpl$222, _tmpl$232, _tmpl$24, _tmpl$25, firstBreakpoint, secondBreakpoint, thirdBreakpoint, BUTTON_POSITION, POSITION, THEME_PREFERENCE, INITIAL_IS_OPEN, DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_SORT_FN_NAME, DEFAULT_SORT_ORDER, selectedQueryHash, setSelectedQueryHash, panelWidth, setPanelWidth, DevtoolsComponent, Devtools_default, Devtools, DevtoolsPanel, QueryRow, QueryStatusCount, QueryStatus, QueryDetails, signalsMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, stylesFactory2, lightStyles2, darkStyles2;
12993
+ var _tmpl$24, _tmpl$25, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$103, _tmpl$113, _tmpl$122, _tmpl$132, _tmpl$142, _tmpl$152, _tmpl$162, _tmpl$172, _tmpl$182, _tmpl$192, _tmpl$202, _tmpl$212, _tmpl$222, _tmpl$232, _tmpl$242, _tmpl$252, _tmpl$26, _tmpl$27, _tmpl$28, _tmpl$29, _tmpl$30, firstBreakpoint, secondBreakpoint, thirdBreakpoint, BUTTON_POSITION, POSITION, THEME_PREFERENCE, INITIAL_IS_OPEN, DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_SORT_FN_NAME, DEFAULT_SORT_ORDER, DEFAULT_MUTATION_SORT_FN_NAME, selectedQueryHash, setSelectedQueryHash, selectedMutationId, setSelectedMutationId, panelWidth, setPanelWidth, DevtoolsComponent, Devtools_default, Devtools, DevtoolsPanel, ContentView, QueryRow, MutationRow, QueryStatusCount, MutationStatusCount, QueryStatus, QueryDetails, MutationDetails, queryCacheMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, mutationCacheMap, setupMutationCacheSubscription, createSubscribeToMutationCacheBatcher, stylesFactory2, lightStyles2, darkStyles2;
12489
12994
  var init_Devtools = __esm({
12490
12995
  "src/Devtools.tsx"() {
12491
12996
  init_web();
@@ -12514,31 +13019,36 @@ var init_Devtools = __esm({
12514
13019
  init_Explorer();
12515
13020
  init_Context();
12516
13021
  init_fonts();
12517
- _tmpl$19 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
12518
- _tmpl$23 = /* @__PURE__ */ template(`<div>`);
12519
- _tmpl$33 = /* @__PURE__ */ template(`<span>Asc`);
12520
- _tmpl$43 = /* @__PURE__ */ template(`<span>Desc`);
12521
- _tmpl$53 = /* @__PURE__ */ template(`<div>Settings`);
12522
- _tmpl$63 = /* @__PURE__ */ template(`<span>Position`);
12523
- _tmpl$73 = /* @__PURE__ */ template(`<span>Top`);
12524
- _tmpl$83 = /* @__PURE__ */ template(`<span>Bottom`);
12525
- _tmpl$93 = /* @__PURE__ */ template(`<span>Left`);
12526
- _tmpl$103 = /* @__PURE__ */ template(`<span>Right`);
12527
- _tmpl$113 = /* @__PURE__ */ template(`<span>Theme`);
12528
- _tmpl$122 = /* @__PURE__ */ template(`<span>Light`);
12529
- _tmpl$132 = /* @__PURE__ */ template(`<span>Dark`);
12530
- _tmpl$142 = /* @__PURE__ */ template(`<span>System`);
12531
- _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>`);
12532
- _tmpl$162 = /* @__PURE__ */ template(`<option>Sort by `);
12533
- _tmpl$172 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
12534
- _tmpl$182 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
12535
- _tmpl$192 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
12536
- _tmpl$20 = /* @__PURE__ */ template(`<span>`);
12537
- _tmpl$21 = /* @__PURE__ */ template(`<button><span></span><span>`);
12538
- _tmpl$222 = /* @__PURE__ */ template(`<button><span></span> Error`);
12539
- _tmpl$232 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
12540
- _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">`);
12541
- _tmpl$25 = /* @__PURE__ */ template(`<option>`);
13022
+ _tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
13023
+ _tmpl$25 = /* @__PURE__ */ template(`<div>`);
13024
+ _tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
13025
+ _tmpl$43 = /* @__PURE__ */ template(`<select>`);
13026
+ _tmpl$53 = /* @__PURE__ */ template(`<span>Asc`);
13027
+ _tmpl$63 = /* @__PURE__ */ template(`<span>Desc`);
13028
+ _tmpl$73 = /* @__PURE__ */ template(`<div>Settings`);
13029
+ _tmpl$83 = /* @__PURE__ */ template(`<span>Position`);
13030
+ _tmpl$93 = /* @__PURE__ */ template(`<span>Top`);
13031
+ _tmpl$103 = /* @__PURE__ */ template(`<span>Bottom`);
13032
+ _tmpl$113 = /* @__PURE__ */ template(`<span>Left`);
13033
+ _tmpl$122 = /* @__PURE__ */ template(`<span>Right`);
13034
+ _tmpl$132 = /* @__PURE__ */ template(`<span>Theme`);
13035
+ _tmpl$142 = /* @__PURE__ */ template(`<span>Light`);
13036
+ _tmpl$152 = /* @__PURE__ */ template(`<span>Dark`);
13037
+ _tmpl$162 = /* @__PURE__ */ template(`<span>System`);
13038
+ _tmpl$172 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
13039
+ _tmpl$182 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
13040
+ _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>`);
13041
+ _tmpl$202 = /* @__PURE__ */ template(`<option>Sort by `);
13042
+ _tmpl$212 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
13043
+ _tmpl$222 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
13044
+ _tmpl$232 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
13045
+ _tmpl$242 = /* @__PURE__ */ template(`<span>`);
13046
+ _tmpl$252 = /* @__PURE__ */ template(`<button><span></span><span>`);
13047
+ _tmpl$26 = /* @__PURE__ */ template(`<button><span></span> Error`);
13048
+ _tmpl$27 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
13049
+ _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">`);
13050
+ _tmpl$29 = /* @__PURE__ */ template(`<option>`);
13051
+ _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">`);
12542
13052
  firstBreakpoint = 1024;
12543
13053
  secondBreakpoint = 796;
12544
13054
  thirdBreakpoint = 700;
@@ -12550,7 +13060,9 @@ var init_Devtools = __esm({
12550
13060
  DEFAULT_WIDTH = 500;
12551
13061
  DEFAULT_SORT_FN_NAME = Object.keys(sortFns)[0];
12552
13062
  DEFAULT_SORT_ORDER = 1;
13063
+ DEFAULT_MUTATION_SORT_FN_NAME = Object.keys(mutationSortFns)[0];
12553
13064
  [selectedQueryHash, setSelectedQueryHash] = createSignal(null);
13065
+ [selectedMutationId, setSelectedMutationId] = createSignal(null);
12554
13066
  [panelWidth, setPanelWidth] = createSignal(0);
12555
13067
  DevtoolsComponent = (props) => {
12556
13068
  const [localStore, setLocalStore] = createLocalStorage({
@@ -12603,7 +13115,7 @@ var init_Devtools = __esm({
12603
13115
  root.style.setProperty("--tsqd-panel-width", `${panelPosition === "left" ? "-" : ""}${width}px`);
12604
13116
  });
12605
13117
  return (() => {
12606
- const _el$ = _tmpl$23();
13118
+ const _el$ = _tmpl$25();
12607
13119
  insert(_el$, createComponent(TransitionGroup, {
12608
13120
  name: "tsqd-panel-transition",
12609
13121
  get children() {
@@ -12632,7 +13144,7 @@ var init_Devtools = __esm({
12632
13144
  return !isOpen();
12633
13145
  },
12634
13146
  get children() {
12635
- const _el$2 = _tmpl$19(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
13147
+ const _el$2 = _tmpl$24(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
12636
13148
  insert(_el$3, createComponent(TanstackLogo, {}));
12637
13149
  _el$4.$$click = () => props.setLocalStore("open", "true");
12638
13150
  insert(_el$4, createComponent(TanstackLogo, {}));
@@ -12672,24 +13184,7 @@ var init_Devtools = __esm({
12672
13184
  return theme() === "dark" ? darkStyles2 : lightStyles2;
12673
13185
  });
12674
13186
  const [isResizing, setIsResizing] = createSignal(false);
12675
- const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
12676
- const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
12677
- const [offline, setOffline] = createSignal(false);
12678
13187
  const position = createMemo(() => props.localStore.position || useQueryDevtoolsContext().position || POSITION);
12679
- const sortFn = createMemo(() => sortFns[sort()]);
12680
- const onlineManager = createMemo(() => useQueryDevtoolsContext().onlineManager);
12681
- const cache = createMemo(() => {
12682
- return useQueryDevtoolsContext().client.getQueryCache();
12683
- });
12684
- const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
12685
- return queryCache().getAll().length;
12686
- }, false);
12687
- const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
12688
- const curr = cache().getAll();
12689
- const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
12690
- const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
12691
- return sorted;
12692
- }));
12693
13188
  const handleDragStart = (event) => {
12694
13189
  const panelElement = event.currentTarget.parentElement;
12695
13190
  if (!panelElement)
@@ -12737,8 +13232,6 @@ var init_Devtools = __esm({
12737
13232
  document.addEventListener("mousemove", runDrag, false);
12738
13233
  document.addEventListener("mouseup", unsub, false);
12739
13234
  };
12740
- setupQueryCacheSubscription();
12741
- let queriesContainerRef;
12742
13235
  let panelRef;
12743
13236
  onMount(() => {
12744
13237
  createResizeObserver(panelRef, ({
@@ -12749,9 +13242,6 @@ var init_Devtools = __esm({
12749
13242
  }
12750
13243
  });
12751
13244
  });
12752
- const setDevtoolsPosition = (pos) => {
12753
- props.setLocalStore("position", pos);
12754
- };
12755
13245
  createEffect(() => {
12756
13246
  const rootContainer = panelRef.parentElement?.parentElement?.parentElement;
12757
13247
  if (!rootContainer)
@@ -12796,65 +13286,243 @@ var init_Devtools = __esm({
12796
13286
  `;
12797
13287
  };
12798
13288
  return (() => {
12799
- 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;
13289
+ const _el$5 = _tmpl$33(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
12800
13290
  const _ref$ = panelRef;
12801
13291
  typeof _ref$ === "function" ? use(_ref$, _el$5) : panelRef = _el$5;
12802
13292
  _el$6.$$mousedown = handleDragStart;
12803
13293
  _el$7.$$click = () => props.setLocalStore("open", "false");
12804
13294
  insert(_el$7, createComponent(ChevronDown, {}));
12805
- const _ref$2 = queriesContainerRef;
12806
- typeof _ref$2 === "function" ? use(_ref$2, _el$8) : queriesContainerRef = _el$8;
12807
- _el$10.$$click = () => props.setLocalStore("open", "false");
12808
- insert(_el$12, () => useQueryDevtoolsContext().queryFlavor, _el$13);
12809
- insert(_el$12, () => useQueryDevtoolsContext().version, null);
12810
- insert(_el$9, createComponent(QueryStatusCount, {}), null);
12811
- insert(_el$16, createComponent(Search, {}), _el$17);
12812
- _el$17.$$input = (e2) => props.setLocalStore("filter", e2.currentTarget.value);
12813
- _el$19.addEventListener("change", (e2) => props.setLocalStore("sort", e2.currentTarget.value));
12814
- insert(_el$19, () => Object.keys(sortFns).map((key) => (() => {
12815
- const _el$38 = _tmpl$162(); _el$38.firstChild;
12816
- _el$38.value = key;
12817
- insert(_el$38, key, null);
12818
- return _el$38;
12819
- })()));
12820
- insert(_el$18, createComponent(ChevronDown, {}), null);
12821
- _el$20.$$click = () => {
12822
- props.setLocalStore("sortOrder", String(sortOrder() * -1));
12823
- };
12824
- insert(_el$20, createComponent(Show, {
12825
- get when() {
12826
- return sortOrder() === 1;
12827
- },
12828
- get children() {
12829
- return [_tmpl$33(), createComponent(ArrowUp, {})];
12830
- }
12831
- }), null);
12832
- insert(_el$20, createComponent(Show, {
12833
- get when() {
12834
- return sortOrder() === -1;
13295
+ insert(_el$5, createComponent(ContentView, {
13296
+ get localStore() {
13297
+ return props.localStore;
12835
13298
  },
12836
- get children() {
12837
- return [_tmpl$43(), createComponent(ArrowDown, {})];
13299
+ get setLocalStore() {
13300
+ return props.setLocalStore;
12838
13301
  }
12839
13302
  }), null);
12840
- _el$24.$$click = () => {
12841
- cache().clear();
12842
- };
12843
- insert(_el$24, createComponent(Trash, {}));
12844
- _el$25.$$click = () => {
12845
- if (offline()) {
12846
- onlineManager().setOnline(true);
12847
- setOffline(false);
12848
- } else {
12849
- onlineManager().setOnline(false);
13303
+ createRenderEffect((_p$) => {
13304
+ const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
13305
+ [u`
13306
+ min-width: min-content;
13307
+ `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
13308
+ }, "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");
13309
+ _v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
13310
+ _v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
13311
+ _v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
13312
+ _v$4 !== _p$._v$4 && className(_el$6, _p$._v$4 = _v$4);
13313
+ _v$5 !== _p$._v$5 && className(_el$7, _p$._v$5 = _v$5);
13314
+ return _p$;
13315
+ }, {
13316
+ _v$: void 0,
13317
+ _v$2: void 0,
13318
+ _v$3: void 0,
13319
+ _v$4: void 0,
13320
+ _v$5: void 0
13321
+ });
13322
+ return _el$5;
13323
+ })();
13324
+ };
13325
+ ContentView = (props) => {
13326
+ setupQueryCacheSubscription();
13327
+ setupMutationCacheSubscription();
13328
+ const theme = useTheme();
13329
+ const styles = createMemo(() => {
13330
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
13331
+ });
13332
+ const [selectedView, setSelectedView] = createSignal("queries");
13333
+ const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
13334
+ const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
13335
+ const mutationSort = createMemo(() => props.localStore.mutationSort || DEFAULT_MUTATION_SORT_FN_NAME);
13336
+ const mutationSortOrder = createMemo(() => Number(props.localStore.mutationSortOrder) || DEFAULT_SORT_ORDER);
13337
+ const [offline, setOffline] = createSignal(false);
13338
+ const sortFn = createMemo(() => sortFns[sort()]);
13339
+ const mutationSortFn = createMemo(() => mutationSortFns[mutationSort()]);
13340
+ const onlineManager = createMemo(() => useQueryDevtoolsContext().onlineManager);
13341
+ const query_cache = createMemo(() => {
13342
+ return useQueryDevtoolsContext().client.getQueryCache();
13343
+ });
13344
+ const mutation_cache = createMemo(() => {
13345
+ return useQueryDevtoolsContext().client.getMutationCache();
13346
+ });
13347
+ const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
13348
+ return queryCache().getAll().length;
13349
+ }, false);
13350
+ const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
13351
+ const curr = query_cache().getAll();
13352
+ const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
13353
+ const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
13354
+ return sorted;
13355
+ }));
13356
+ const mutationCount = createSubscribeToMutationCacheBatcher((mutationCache) => {
13357
+ return mutationCache().getAll().length;
13358
+ }, false);
13359
+ const mutations = createMemo(on(() => [mutationCount(), props.localStore.mutationFilter, mutationSort(), mutationSortOrder()], () => {
13360
+ const curr = mutation_cache().getAll();
13361
+ const filtered = props.localStore.mutationFilter ? curr.filter((item) => {
13362
+ const value = `${item.options.mutationKey ? JSON.stringify(item.options.mutationKey) + " - " : ""}${new Date(item.state.submittedAt).toLocaleString()}`;
13363
+ return rankItem(value, props.localStore.mutationFilter || "").passed;
13364
+ }) : [...curr];
13365
+ const sorted = mutationSortFn() ? filtered.sort((a2, b2) => mutationSortFn()(a2, b2) * mutationSortOrder()) : filtered;
13366
+ return sorted;
13367
+ }));
13368
+ const setDevtoolsPosition = (pos) => {
13369
+ props.setLocalStore("position", pos);
13370
+ };
13371
+ return [(() => {
13372
+ 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;
13373
+ _el$11.$$click = () => props.setLocalStore("open", "false");
13374
+ insert(_el$13, () => useQueryDevtoolsContext().queryFlavor, _el$14);
13375
+ insert(_el$13, () => useQueryDevtoolsContext().version, null);
13376
+ insert(_el$10, createComponent(index$7.Root, {
13377
+ get ["class"]() {
13378
+ return clsx(styles().viewToggle);
13379
+ },
13380
+ get value() {
13381
+ return selectedView();
13382
+ },
13383
+ onChange: (value) => {
13384
+ setSelectedView(value);
13385
+ setSelectedQueryHash(null);
13386
+ setSelectedMutationId(null);
13387
+ },
13388
+ get children() {
13389
+ return [createComponent(index$7.Item, {
13390
+ value: "queries",
13391
+ "class": "tsqd-radio-toggle",
13392
+ get children() {
13393
+ return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
13394
+ get children() {
13395
+ return createComponent(index$7.ItemIndicator, {});
13396
+ }
13397
+ }), createComponent(index$7.ItemLabel, {
13398
+ title: "Toggle Queries View",
13399
+ children: "Queries"
13400
+ })];
13401
+ }
13402
+ }), createComponent(index$7.Item, {
13403
+ value: "mutations",
13404
+ "class": "tsqd-radio-toggle",
13405
+ get children() {
13406
+ return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
13407
+ get children() {
13408
+ return createComponent(index$7.ItemIndicator, {});
13409
+ }
13410
+ }), createComponent(index$7.ItemLabel, {
13411
+ title: "Toggle Mutations View",
13412
+ children: "Mutations"
13413
+ })];
13414
+ }
13415
+ })];
13416
+ }
13417
+ }), null);
13418
+ insert(_el$9, createComponent(Show, {
13419
+ get when() {
13420
+ return selectedView() === "queries";
13421
+ },
13422
+ get children() {
13423
+ return createComponent(QueryStatusCount, {});
13424
+ }
13425
+ }), null);
13426
+ insert(_el$9, createComponent(Show, {
13427
+ get when() {
13428
+ return selectedView() === "mutations";
13429
+ },
13430
+ get children() {
13431
+ return createComponent(MutationStatusCount, {});
13432
+ }
13433
+ }), null);
13434
+ insert(_el$17, createComponent(Search, {}), _el$18);
13435
+ _el$18.$$input = (e2) => {
13436
+ if (selectedView() === "queries") {
13437
+ props.setLocalStore("filter", e2.currentTarget.value);
13438
+ } else {
13439
+ props.setLocalStore("mutationFilter", e2.currentTarget.value);
13440
+ }
13441
+ };
13442
+ insert(_el$19, createComponent(Show, {
13443
+ get when() {
13444
+ return selectedView() === "queries";
13445
+ },
13446
+ get children() {
13447
+ const _el$20 = _tmpl$43();
13448
+ _el$20.addEventListener("change", (e2) => {
13449
+ props.setLocalStore("sort", e2.currentTarget.value);
13450
+ });
13451
+ insert(_el$20, () => Object.keys(sortFns).map((key) => (() => {
13452
+ const _el$42 = _tmpl$202(); _el$42.firstChild;
13453
+ _el$42.value = key;
13454
+ insert(_el$42, key, null);
13455
+ return _el$42;
13456
+ })()));
13457
+ createRenderEffect(() => _el$20.value = sort());
13458
+ return _el$20;
13459
+ }
13460
+ }), null);
13461
+ insert(_el$19, createComponent(Show, {
13462
+ get when() {
13463
+ return selectedView() === "mutations";
13464
+ },
13465
+ get children() {
13466
+ const _el$21 = _tmpl$43();
13467
+ _el$21.addEventListener("change", (e2) => {
13468
+ props.setLocalStore("mutationSort", e2.currentTarget.value);
13469
+ });
13470
+ insert(_el$21, () => Object.keys(mutationSortFns).map((key) => (() => {
13471
+ const _el$44 = _tmpl$202(); _el$44.firstChild;
13472
+ _el$44.value = key;
13473
+ insert(_el$44, key, null);
13474
+ return _el$44;
13475
+ })()));
13476
+ createRenderEffect(() => _el$21.value = mutationSort());
13477
+ return _el$21;
13478
+ }
13479
+ }), null);
13480
+ insert(_el$19, createComponent(ChevronDown, {}), null);
13481
+ _el$22.$$click = () => {
13482
+ if (selectedView() === "queries") {
13483
+ props.setLocalStore("sortOrder", String(sortOrder() * -1));
13484
+ } else {
13485
+ props.setLocalStore("mutationSortOrder", String(mutationSortOrder() * -1));
13486
+ }
13487
+ };
13488
+ insert(_el$22, createComponent(Show, {
13489
+ get when() {
13490
+ return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === 1;
13491
+ },
13492
+ get children() {
13493
+ return [_tmpl$53(), createComponent(ArrowUp, {})];
13494
+ }
13495
+ }), null);
13496
+ insert(_el$22, createComponent(Show, {
13497
+ get when() {
13498
+ return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1;
13499
+ },
13500
+ get children() {
13501
+ return [_tmpl$63(), createComponent(ArrowDown, {})];
13502
+ }
13503
+ }), null);
13504
+ _el$26.$$click = () => {
13505
+ if (selectedView() === "queries") {
13506
+ query_cache().clear();
13507
+ } else {
13508
+ mutation_cache().clear();
13509
+ }
13510
+ };
13511
+ insert(_el$26, createComponent(Trash, {}));
13512
+ _el$27.$$click = () => {
13513
+ if (offline()) {
13514
+ onlineManager().setOnline(true);
13515
+ setOffline(false);
13516
+ } else {
13517
+ onlineManager().setOnline(false);
12850
13518
  setOffline(true);
12851
13519
  }
12852
13520
  };
12853
- insert(_el$25, (() => {
13521
+ insert(_el$27, (() => {
12854
13522
  const _c$ = createMemo(() => !!offline());
12855
13523
  return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
12856
13524
  })());
12857
- insert(_el$23, createComponent(index$d.Root, {
13525
+ insert(_el$25, createComponent(index$d.Root, {
12858
13526
  gutter: 4,
12859
13527
  get children() {
12860
13528
  return [createComponent(index$d.Trigger, {
@@ -12872,9 +13540,9 @@ var init_Devtools = __esm({
12872
13540
  },
12873
13541
  get children() {
12874
13542
  return [(() => {
12875
- const _el$26 = _tmpl$53();
12876
- createRenderEffect(() => className(_el$26, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
12877
- return _el$26;
13543
+ const _el$28 = _tmpl$73();
13544
+ createRenderEffect(() => className(_el$28, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
13545
+ return _el$28;
12878
13546
  })(), createComponent(index$d.Sub, {
12879
13547
  overlap: true,
12880
13548
  gutter: 8,
@@ -12885,7 +13553,7 @@ var init_Devtools = __esm({
12885
13553
  return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
12886
13554
  },
12887
13555
  get children() {
12888
- return [_tmpl$63(), createComponent(ChevronDown, {})];
13556
+ return [_tmpl$83(), createComponent(ChevronDown, {})];
12889
13557
  }
12890
13558
  }), createComponent(index$d.Portal, {
12891
13559
  get children() {
@@ -12903,7 +13571,7 @@ var init_Devtools = __esm({
12903
13571
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
12904
13572
  },
12905
13573
  get children() {
12906
- return [_tmpl$73(), createComponent(ArrowUp, {})];
13574
+ return [_tmpl$93(), createComponent(ArrowUp, {})];
12907
13575
  }
12908
13576
  }), createComponent(index$d.Item, {
12909
13577
  onSelect: () => {
@@ -12914,7 +13582,7 @@ var init_Devtools = __esm({
12914
13582
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
12915
13583
  },
12916
13584
  get children() {
12917
- return [_tmpl$83(), createComponent(ArrowDown, {})];
13585
+ return [_tmpl$103(), createComponent(ArrowDown, {})];
12918
13586
  }
12919
13587
  }), createComponent(index$d.Item, {
12920
13588
  onSelect: () => {
@@ -12925,7 +13593,7 @@ var init_Devtools = __esm({
12925
13593
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
12926
13594
  },
12927
13595
  get children() {
12928
- return [_tmpl$93(), createComponent(ArrowLeft, {})];
13596
+ return [_tmpl$113(), createComponent(ArrowLeft, {})];
12929
13597
  }
12930
13598
  }), createComponent(index$d.Item, {
12931
13599
  onSelect: () => {
@@ -12936,7 +13604,7 @@ var init_Devtools = __esm({
12936
13604
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
12937
13605
  },
12938
13606
  get children() {
12939
- return [_tmpl$103(), createComponent(ArrowRight, {})];
13607
+ return [_tmpl$122(), createComponent(ArrowRight, {})];
12940
13608
  }
12941
13609
  })];
12942
13610
  }
@@ -12954,7 +13622,7 @@ var init_Devtools = __esm({
12954
13622
  return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
12955
13623
  },
12956
13624
  get children() {
12957
- return [_tmpl$113(), createComponent(ChevronDown, {})];
13625
+ return [_tmpl$132(), createComponent(ChevronDown, {})];
12958
13626
  }
12959
13627
  }), createComponent(index$d.Portal, {
12960
13628
  get children() {
@@ -12972,7 +13640,7 @@ var init_Devtools = __esm({
12972
13640
  return clsx(styles().settingsSubButton, props.localStore.theme_preference === "light" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
12973
13641
  },
12974
13642
  get children() {
12975
- return [_tmpl$122(), createComponent(Sun, {})];
13643
+ return [_tmpl$142(), createComponent(Sun, {})];
12976
13644
  }
12977
13645
  }), createComponent(index$d.Item, {
12978
13646
  onSelect: () => {
@@ -12983,7 +13651,7 @@ var init_Devtools = __esm({
12983
13651
  return clsx(styles().settingsSubButton, props.localStore.theme_preference === "dark" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
12984
13652
  },
12985
13653
  get children() {
12986
- return [_tmpl$132(), createComponent(Moon, {})];
13654
+ return [_tmpl$152(), createComponent(Moon, {})];
12987
13655
  }
12988
13656
  }), createComponent(index$d.Item, {
12989
13657
  onSelect: () => {
@@ -12994,7 +13662,7 @@ var init_Devtools = __esm({
12994
13662
  return clsx(styles().settingsSubButton, props.localStore.theme_preference === "system" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
12995
13663
  },
12996
13664
  get children() {
12997
- return [_tmpl$142(), createComponent(Monitor, {})];
13665
+ return [_tmpl$162(), createComponent(Monitor, {})];
12998
13666
  }
12999
13667
  })];
13000
13668
  }
@@ -13009,66 +13677,74 @@ var init_Devtools = __esm({
13009
13677
  })];
13010
13678
  }
13011
13679
  }), null);
13012
- insert(_el$37, createComponent(Key, {
13013
- by: (q) => q.queryHash,
13014
- get each() {
13015
- return queries();
13680
+ insert(_el$8, createComponent(Show, {
13681
+ get when() {
13682
+ return selectedView() === "queries";
13016
13683
  },
13017
- children: (query) => createComponent(QueryRow, {
13018
- get query() {
13019
- return query();
13020
- }
13021
- })
13022
- }));
13023
- insert(_el$5, createComponent(Show, {
13684
+ get children() {
13685
+ const _el$38 = _tmpl$172(), _el$39 = _el$38.firstChild;
13686
+ insert(_el$39, createComponent(Key, {
13687
+ by: (q) => q.queryHash,
13688
+ get each() {
13689
+ return queries();
13690
+ },
13691
+ children: (query) => createComponent(QueryRow, {
13692
+ get query() {
13693
+ return query();
13694
+ }
13695
+ })
13696
+ }));
13697
+ createRenderEffect(() => className(_el$38, clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container")));
13698
+ return _el$38;
13699
+ }
13700
+ }), null);
13701
+ insert(_el$8, createComponent(Show, {
13024
13702
  get when() {
13025
- return selectedQueryHash();
13703
+ return selectedView() === "mutations";
13026
13704
  },
13027
13705
  get children() {
13028
- return createComponent(QueryDetails, {});
13706
+ const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild;
13707
+ insert(_el$41, createComponent(Key, {
13708
+ by: (m) => m.mutationId,
13709
+ get each() {
13710
+ return mutations();
13711
+ },
13712
+ children: (mutation) => createComponent(MutationRow, {
13713
+ get mutation() {
13714
+ return mutation();
13715
+ }
13716
+ })
13717
+ }));
13718
+ createRenderEffect(() => className(_el$40, clsx(styles().overflowQueryContainer, "tsqd-mutations-overflow-container")));
13719
+ return _el$40;
13029
13720
  }
13030
13721
  }), null);
13031
13722
  createRenderEffect((_p$) => {
13032
- const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
13033
- [u`
13034
- min-width: min-content;
13035
- `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
13036
- }, "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`
13723
+ const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && u`
13037
13724
  height: 50%;
13038
13725
  max-height: 50%;
13039
- `, "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`
13040
- gap: ${tokens.size[2.5]};
13041
- `, "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");
13042
- _v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
13043
- _v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
13044
- _v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
13045
- _v$4 !== _p$._v$4 && className(_el$6, _p$._v$4 = _v$4);
13046
- _v$5 !== _p$._v$5 && className(_el$7, _p$._v$5 = _v$5);
13726
+ `, "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"}`;
13047
13727
  _v$6 !== _p$._v$6 && className(_el$8, _p$._v$6 = _v$6);
13048
13728
  _v$7 !== _p$._v$7 && className(_el$9, _p$._v$7 = _v$7);
13049
13729
  _v$8 !== _p$._v$8 && className(_el$10, _p$._v$8 = _v$8);
13050
13730
  _v$9 !== _p$._v$9 && className(_el$11, _p$._v$9 = _v$9);
13051
13731
  _v$10 !== _p$._v$10 && className(_el$12, _p$._v$10 = _v$10);
13052
- _v$11 !== _p$._v$11 && className(_el$14, _p$._v$11 = _v$11);
13732
+ _v$11 !== _p$._v$11 && className(_el$13, _p$._v$11 = _v$11);
13053
13733
  _v$12 !== _p$._v$12 && className(_el$15, _p$._v$12 = _v$12);
13054
13734
  _v$13 !== _p$._v$13 && className(_el$16, _p$._v$13 = _v$13);
13055
- _v$14 !== _p$._v$14 && className(_el$18, _p$._v$14 = _v$14);
13056
- _v$15 !== _p$._v$15 && setAttribute(_el$20, "aria-label", _p$._v$15 = _v$15);
13057
- _v$16 !== _p$._v$16 && setAttribute(_el$20, "aria-pressed", _p$._v$16 = _v$16);
13058
- _v$17 !== _p$._v$17 && className(_el$23, _p$._v$17 = _v$17);
13059
- _v$18 !== _p$._v$18 && className(_el$24, _p$._v$18 = _v$18);
13060
- _v$19 !== _p$._v$19 && className(_el$25, _p$._v$19 = _v$19);
13061
- _v$20 !== _p$._v$20 && setAttribute(_el$25, "aria-label", _p$._v$20 = _v$20);
13062
- _v$21 !== _p$._v$21 && setAttribute(_el$25, "aria-pressed", _p$._v$21 = _v$21);
13063
- _v$22 !== _p$._v$22 && setAttribute(_el$25, "title", _p$._v$22 = _v$22);
13064
- _v$23 !== _p$._v$23 && className(_el$36, _p$._v$23 = _v$23);
13735
+ _v$14 !== _p$._v$14 && className(_el$17, _p$._v$14 = _v$14);
13736
+ _v$15 !== _p$._v$15 && className(_el$19, _p$._v$15 = _v$15);
13737
+ _v$16 !== _p$._v$16 && setAttribute(_el$22, "aria-label", _p$._v$16 = _v$16);
13738
+ _v$17 !== _p$._v$17 && setAttribute(_el$22, "aria-pressed", _p$._v$17 = _v$17);
13739
+ _v$18 !== _p$._v$18 && className(_el$25, _p$._v$18 = _v$18);
13740
+ _v$19 !== _p$._v$19 && className(_el$26, _p$._v$19 = _v$19);
13741
+ _v$20 !== _p$._v$20 && setAttribute(_el$26, "title", _p$._v$20 = _v$20);
13742
+ _v$21 !== _p$._v$21 && className(_el$27, _p$._v$21 = _v$21);
13743
+ _v$22 !== _p$._v$22 && setAttribute(_el$27, "aria-label", _p$._v$22 = _v$22);
13744
+ _v$23 !== _p$._v$23 && setAttribute(_el$27, "aria-pressed", _p$._v$23 = _v$23);
13745
+ _v$24 !== _p$._v$24 && setAttribute(_el$27, "title", _p$._v$24 = _v$24);
13065
13746
  return _p$;
13066
13747
  }, {
13067
- _v$: void 0,
13068
- _v$2: void 0,
13069
- _v$3: void 0,
13070
- _v$4: void 0,
13071
- _v$5: void 0,
13072
13748
  _v$6: void 0,
13073
13749
  _v$7: void 0,
13074
13750
  _v$8: void 0,
@@ -13086,12 +13762,26 @@ var init_Devtools = __esm({
13086
13762
  _v$20: void 0,
13087
13763
  _v$21: void 0,
13088
13764
  _v$22: void 0,
13089
- _v$23: void 0
13765
+ _v$23: void 0,
13766
+ _v$24: void 0
13090
13767
  });
13091
- createRenderEffect(() => _el$17.value = props.localStore.filter || "");
13092
- createRenderEffect(() => _el$19.value = sort());
13093
- return _el$5;
13094
- })();
13768
+ createRenderEffect(() => _el$18.value = selectedView() === "queries" ? props.localStore.filter || "" : props.localStore.mutationFilter || "");
13769
+ return _el$8;
13770
+ })(), createComponent(Show, {
13771
+ get when() {
13772
+ return createMemo(() => selectedView() === "queries")() && selectedQueryHash();
13773
+ },
13774
+ get children() {
13775
+ return createComponent(QueryDetails, {});
13776
+ }
13777
+ }), createComponent(Show, {
13778
+ get when() {
13779
+ return createMemo(() => selectedView() === "mutations")() && selectedMutationId();
13780
+ },
13781
+ get children() {
13782
+ return createComponent(MutationDetails, {});
13783
+ }
13784
+ })];
13095
13785
  };
13096
13786
  QueryRow = (props) => {
13097
13787
  const theme = useTheme();
@@ -13137,30 +13827,140 @@ var init_Devtools = __esm({
13137
13827
  return queryState();
13138
13828
  },
13139
13829
  get children() {
13140
- const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild, _el$42 = _el$41.nextSibling;
13141
- _el$40.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
13142
- insert(_el$41, observers);
13143
- insert(_el$42, () => props.query.queryHash);
13144
- insert(_el$40, createComponent(Show, {
13830
+ const _el$46 = _tmpl$222(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling;
13831
+ _el$46.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
13832
+ insert(_el$47, observers);
13833
+ insert(_el$48, () => props.query.queryHash);
13834
+ insert(_el$46, createComponent(Show, {
13145
13835
  get when() {
13146
13836
  return isDisabled();
13147
13837
  },
13148
13838
  get children() {
13149
- return _tmpl$172();
13839
+ return _tmpl$212();
13150
13840
  }
13151
13841
  }), null);
13152
13842
  createRenderEffect((_p$) => {
13153
- 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");
13154
- _v$24 !== _p$._v$24 && className(_el$40, _p$._v$24 = _v$24);
13155
- _v$25 !== _p$._v$25 && setAttribute(_el$40, "aria-label", _p$._v$25 = _v$25);
13156
- _v$26 !== _p$._v$26 && className(_el$41, _p$._v$26 = _v$26);
13843
+ 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");
13844
+ _v$25 !== _p$._v$25 && className(_el$46, _p$._v$25 = _v$25);
13845
+ _v$26 !== _p$._v$26 && setAttribute(_el$46, "aria-label", _p$._v$26 = _v$26);
13846
+ _v$27 !== _p$._v$27 && className(_el$47, _p$._v$27 = _v$27);
13157
13847
  return _p$;
13158
13848
  }, {
13159
- _v$24: void 0,
13160
13849
  _v$25: void 0,
13161
- _v$26: void 0
13850
+ _v$26: void 0,
13851
+ _v$27: void 0
13162
13852
  });
13163
- return _el$40;
13853
+ return _el$46;
13854
+ }
13855
+ });
13856
+ };
13857
+ MutationRow = (props) => {
13858
+ const theme = useTheme();
13859
+ const styles = createMemo(() => {
13860
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
13861
+ });
13862
+ const {
13863
+ colors,
13864
+ alpha
13865
+ } = tokens;
13866
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
13867
+ const mutationState = createSubscribeToMutationCacheBatcher((mutationCache) => {
13868
+ const mutations = mutationCache().getAll();
13869
+ const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
13870
+ return mutation?.state;
13871
+ });
13872
+ const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
13873
+ const mutations = mutationCache().getAll();
13874
+ const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
13875
+ if (!mutation)
13876
+ return false;
13877
+ return mutation.state.isPaused;
13878
+ });
13879
+ const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
13880
+ const mutations = mutationCache().getAll();
13881
+ const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
13882
+ if (!mutation)
13883
+ return "idle";
13884
+ return mutation.state.status;
13885
+ });
13886
+ const color = createMemo(() => getMutationStatusColor({
13887
+ isPaused: isPaused(),
13888
+ status: status()
13889
+ }));
13890
+ const getObserverCountColorStyles = () => {
13891
+ if (color() === "gray") {
13892
+ return u`
13893
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
13894
+ color: ${t2(colors[color()][700], colors[color()][300])};
13895
+ `;
13896
+ }
13897
+ return u`
13898
+ background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
13899
+ color: ${t2(colors[color()][800], colors[color()][300])};
13900
+ `;
13901
+ };
13902
+ return createComponent(Show, {
13903
+ get when() {
13904
+ return mutationState();
13905
+ },
13906
+ get children() {
13907
+ const _el$50 = _tmpl$222(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling;
13908
+ _el$50.$$click = () => {
13909
+ setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
13910
+ };
13911
+ insert(_el$51, createComponent(Show, {
13912
+ get when() {
13913
+ return color() === "purple";
13914
+ },
13915
+ get children() {
13916
+ return createComponent(PauseCircle, {});
13917
+ }
13918
+ }), null);
13919
+ insert(_el$51, createComponent(Show, {
13920
+ get when() {
13921
+ return color() === "green";
13922
+ },
13923
+ get children() {
13924
+ return createComponent(CheckCircle, {});
13925
+ }
13926
+ }), null);
13927
+ insert(_el$51, createComponent(Show, {
13928
+ get when() {
13929
+ return color() === "red";
13930
+ },
13931
+ get children() {
13932
+ return createComponent(XCircle, {});
13933
+ }
13934
+ }), null);
13935
+ insert(_el$51, createComponent(Show, {
13936
+ get when() {
13937
+ return color() === "yellow";
13938
+ },
13939
+ get children() {
13940
+ return createComponent(LoadingCircle, {});
13941
+ }
13942
+ }), null);
13943
+ insert(_el$52, createComponent(Show, {
13944
+ get when() {
13945
+ return props.mutation.options.mutationKey;
13946
+ },
13947
+ get children() {
13948
+ return [createMemo(() => JSON.stringify(props.mutation.options.mutationKey)), " -", " "];
13949
+ }
13950
+ }), null);
13951
+ insert(_el$52, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
13952
+ createRenderEffect((_p$) => {
13953
+ 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");
13954
+ _v$28 !== _p$._v$28 && className(_el$50, _p$._v$28 = _v$28);
13955
+ _v$29 !== _p$._v$29 && setAttribute(_el$50, "aria-label", _p$._v$29 = _v$29);
13956
+ _v$30 !== _p$._v$30 && className(_el$51, _p$._v$30 = _v$30);
13957
+ return _p$;
13958
+ }, {
13959
+ _v$28: void 0,
13960
+ _v$29: void 0,
13961
+ _v$30: void 0
13962
+ });
13963
+ return _el$50;
13164
13964
  }
13165
13965
  });
13166
13966
  };
@@ -13175,44 +13975,99 @@ var init_Devtools = __esm({
13175
13975
  return theme() === "dark" ? darkStyles2 : lightStyles2;
13176
13976
  });
13177
13977
  return (() => {
13178
- const _el$44 = _tmpl$23();
13179
- insert(_el$44, createComponent(QueryStatus, {
13978
+ const _el$53 = _tmpl$25();
13979
+ insert(_el$53, createComponent(QueryStatus, {
13180
13980
  label: "Fresh",
13181
13981
  color: "green",
13182
13982
  get count() {
13183
13983
  return fresh();
13184
13984
  }
13185
13985
  }), null);
13186
- insert(_el$44, createComponent(QueryStatus, {
13986
+ insert(_el$53, createComponent(QueryStatus, {
13187
13987
  label: "Fetching",
13188
13988
  color: "blue",
13189
13989
  get count() {
13190
13990
  return fetching();
13191
13991
  }
13192
13992
  }), null);
13193
- insert(_el$44, createComponent(QueryStatus, {
13993
+ insert(_el$53, createComponent(QueryStatus, {
13194
13994
  label: "Paused",
13195
13995
  color: "purple",
13196
13996
  get count() {
13197
13997
  return paused();
13198
13998
  }
13199
13999
  }), null);
13200
- insert(_el$44, createComponent(QueryStatus, {
14000
+ insert(_el$53, createComponent(QueryStatus, {
13201
14001
  label: "Stale",
13202
14002
  color: "yellow",
13203
14003
  get count() {
13204
14004
  return stale();
13205
14005
  }
13206
14006
  }), null);
13207
- insert(_el$44, createComponent(QueryStatus, {
14007
+ insert(_el$53, createComponent(QueryStatus, {
13208
14008
  label: "Inactive",
13209
14009
  color: "gray",
13210
14010
  get count() {
13211
14011
  return inactive();
13212
14012
  }
13213
14013
  }), null);
13214
- createRenderEffect(() => className(_el$44, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
13215
- return _el$44;
14014
+ createRenderEffect(() => className(_el$53, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
14015
+ return _el$53;
14016
+ })();
14017
+ };
14018
+ MutationStatusCount = () => {
14019
+ const success = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
14020
+ isPaused: m.state.isPaused,
14021
+ status: m.state.status
14022
+ }) === "green").length);
14023
+ const pending = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
14024
+ isPaused: m.state.isPaused,
14025
+ status: m.state.status
14026
+ }) === "yellow").length);
14027
+ const paused = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
14028
+ isPaused: m.state.isPaused,
14029
+ status: m.state.status
14030
+ }) === "purple").length);
14031
+ const error = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
14032
+ isPaused: m.state.isPaused,
14033
+ status: m.state.status
14034
+ }) === "red").length);
14035
+ const theme = useTheme();
14036
+ const styles = createMemo(() => {
14037
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
14038
+ });
14039
+ return (() => {
14040
+ const _el$54 = _tmpl$25();
14041
+ insert(_el$54, createComponent(QueryStatus, {
14042
+ label: "Paused",
14043
+ color: "purple",
14044
+ get count() {
14045
+ return paused();
14046
+ }
14047
+ }), null);
14048
+ insert(_el$54, createComponent(QueryStatus, {
14049
+ label: "Pending",
14050
+ color: "yellow",
14051
+ get count() {
14052
+ return pending();
14053
+ }
14054
+ }), null);
14055
+ insert(_el$54, createComponent(QueryStatus, {
14056
+ label: "Success",
14057
+ color: "green",
14058
+ get count() {
14059
+ return success();
14060
+ }
14061
+ }), null);
14062
+ insert(_el$54, createComponent(QueryStatus, {
14063
+ label: "Error",
14064
+ color: "red",
14065
+ get count() {
14066
+ return error();
14067
+ }
14068
+ }), null);
14069
+ createRenderEffect(() => className(_el$54, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
14070
+ return _el$54;
13216
14071
  })();
13217
14072
  };
13218
14073
  QueryStatus = (props) => {
@@ -13240,17 +14095,17 @@ var init_Devtools = __esm({
13240
14095
  return true;
13241
14096
  });
13242
14097
  return (() => {
13243
- const _el$45 = _tmpl$21(), _el$47 = _el$45.firstChild, _el$49 = _el$47.nextSibling;
13244
- const _ref$3 = tagRef;
13245
- typeof _ref$3 === "function" ? use(_ref$3, _el$45) : tagRef = _el$45;
13246
- _el$45.addEventListener("mouseleave", () => {
14098
+ const _el$55 = _tmpl$252(), _el$57 = _el$55.firstChild, _el$59 = _el$57.nextSibling;
14099
+ const _ref$2 = tagRef;
14100
+ typeof _ref$2 === "function" ? use(_ref$2, _el$55) : tagRef = _el$55;
14101
+ _el$55.addEventListener("mouseleave", () => {
13247
14102
  setMouseOver(false);
13248
14103
  setFocused(false);
13249
14104
  });
13250
- _el$45.addEventListener("mouseenter", () => setMouseOver(true));
13251
- _el$45.addEventListener("blur", () => setFocused(false));
13252
- _el$45.addEventListener("focus", () => setFocused(true));
13253
- spread(_el$45, mergeProps({
14105
+ _el$55.addEventListener("mouseenter", () => setMouseOver(true));
14106
+ _el$55.addEventListener("blur", () => setFocused(false));
14107
+ _el$55.addEventListener("focus", () => setFocused(true));
14108
+ spread(_el$55, mergeProps({
13254
14109
  get disabled() {
13255
14110
  return showLabel();
13256
14111
  },
@@ -13265,47 +14120,47 @@ var init_Devtools = __esm({
13265
14120
  }, () => mouseOver() || focused() ? {
13266
14121
  "aria-describedby": "tsqd-status-tooltip"
13267
14122
  } : {}), false, true);
13268
- insert(_el$45, createComponent(Show, {
14123
+ insert(_el$55, createComponent(Show, {
13269
14124
  get when() {
13270
14125
  return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
13271
14126
  },
13272
14127
  get children() {
13273
- const _el$46 = _tmpl$192();
13274
- insert(_el$46, () => props.label);
13275
- createRenderEffect(() => className(_el$46, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
13276
- return _el$46;
14128
+ const _el$56 = _tmpl$232();
14129
+ insert(_el$56, () => props.label);
14130
+ createRenderEffect(() => className(_el$56, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
14131
+ return _el$56;
13277
14132
  }
13278
- }), _el$47);
13279
- insert(_el$45, createComponent(Show, {
14133
+ }), _el$57);
14134
+ insert(_el$55, createComponent(Show, {
13280
14135
  get when() {
13281
14136
  return showLabel();
13282
14137
  },
13283
14138
  get children() {
13284
- const _el$48 = _tmpl$20();
13285
- insert(_el$48, () => props.label);
13286
- createRenderEffect(() => className(_el$48, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
13287
- return _el$48;
14139
+ const _el$58 = _tmpl$242();
14140
+ insert(_el$58, () => props.label);
14141
+ createRenderEffect(() => className(_el$58, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
14142
+ return _el$58;
13288
14143
  }
13289
- }), _el$49);
13290
- insert(_el$49, () => props.count);
14144
+ }), _el$59);
14145
+ insert(_el$59, () => props.count);
13291
14146
  createRenderEffect((_p$) => {
13292
- const _v$27 = clsx(u`
14147
+ const _v$31 = clsx(u`
13293
14148
  width: ${tokens.size[1.5]};
13294
14149
  height: ${tokens.size[1.5]};
13295
14150
  border-radius: ${tokens.border.radius.full};
13296
14151
  background-color: ${tokens.colors[props.color][500]};
13297
- `, "tsqd-query-status-tag-dot"), _v$28 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
14152
+ `, "tsqd-query-status-tag-dot"), _v$32 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
13298
14153
  background-color: ${t2(colors[props.color][100], colors[props.color][900])};
13299
14154
  color: ${t2(colors[props.color][700], colors[props.color][300])};
13300
14155
  `, "tsqd-query-status-tag-count");
13301
- _v$27 !== _p$._v$27 && className(_el$47, _p$._v$27 = _v$27);
13302
- _v$28 !== _p$._v$28 && className(_el$49, _p$._v$28 = _v$28);
14156
+ _v$31 !== _p$._v$31 && className(_el$57, _p$._v$31 = _v$31);
14157
+ _v$32 !== _p$._v$32 && className(_el$59, _p$._v$32 = _v$32);
13303
14158
  return _p$;
13304
14159
  }, {
13305
- _v$27: void 0,
13306
- _v$28: void 0
14160
+ _v$31: void 0,
14161
+ _v$32: void 0
13307
14162
  });
13308
- return _el$45;
14163
+ return _el$55;
13309
14164
  })();
13310
14165
  };
13311
14166
  QueryDetails = () => {
@@ -13392,19 +14247,19 @@ var init_Devtools = __esm({
13392
14247
  return createMemo(() => !!activeQuery())() && activeQueryState();
13393
14248
  },
13394
14249
  get children() {
13395
- 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;
13396
- insert(_el$55, () => displayValue(activeQuery().queryKey, true));
13397
- insert(_el$56, statusLabel);
13398
- insert(_el$59, observerCount);
13399
- insert(_el$62, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
13400
- _el$65.$$click = handleRefetch;
13401
- _el$67.$$click = () => queryClient.invalidateQueries(activeQuery());
13402
- _el$69.$$click = () => queryClient.resetQueries(activeQuery());
13403
- _el$71.$$click = () => {
14250
+ 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;
14251
+ insert(_el$65, () => displayValue(activeQuery().queryKey, true));
14252
+ insert(_el$66, statusLabel);
14253
+ insert(_el$69, observerCount);
14254
+ insert(_el$72, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
14255
+ _el$75.$$click = handleRefetch;
14256
+ _el$77.$$click = () => queryClient.invalidateQueries(activeQuery());
14257
+ _el$79.$$click = () => queryClient.resetQueries(activeQuery());
14258
+ _el$81.$$click = () => {
13404
14259
  queryClient.removeQueries(activeQuery());
13405
14260
  setSelectedQueryHash(null);
13406
14261
  };
13407
- _el$73.$$click = () => {
14262
+ _el$83.$$click = () => {
13408
14263
  if (activeQuery()?.state.data === void 0) {
13409
14264
  setRestoringLoading(true);
13410
14265
  restoreQueryAfterLoadingOrError();
@@ -13432,79 +14287,79 @@ var init_Devtools = __esm({
13432
14287
  });
13433
14288
  }
13434
14289
  };
13435
- insert(_el$73, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$75);
13436
- insert(_el$64, createComponent(Show, {
14290
+ insert(_el$83, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$85);
14291
+ insert(_el$74, createComponent(Show, {
13437
14292
  get when() {
13438
14293
  return errorTypes().length === 0 || queryStatus() === "error";
13439
14294
  },
13440
14295
  get children() {
13441
- const _el$76 = _tmpl$222(), _el$77 = _el$76.firstChild, _el$78 = _el$77.nextSibling;
13442
- _el$76.$$click = () => {
14296
+ const _el$86 = _tmpl$26(), _el$87 = _el$86.firstChild, _el$88 = _el$87.nextSibling;
14297
+ _el$86.$$click = () => {
13443
14298
  if (!activeQuery().state.error) {
13444
14299
  triggerError();
13445
14300
  } else {
13446
14301
  queryClient.resetQueries(activeQuery());
13447
14302
  }
13448
14303
  };
13449
- insert(_el$76, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$78);
14304
+ insert(_el$86, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$88);
13450
14305
  createRenderEffect((_p$) => {
13451
- const _v$29 = clsx(u`
14306
+ const _v$33 = clsx(u`
13452
14307
  color: ${t2(colors.red[500], colors.red[400])};
13453
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$30 = queryStatus() === "pending", _v$31 = u`
14308
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$34 = queryStatus() === "pending", _v$35 = u`
13454
14309
  background-color: ${t2(colors.red[500], colors.red[400])};
13455
14310
  `;
13456
- _v$29 !== _p$._v$29 && className(_el$76, _p$._v$29 = _v$29);
13457
- _v$30 !== _p$._v$30 && (_el$76.disabled = _p$._v$30 = _v$30);
13458
- _v$31 !== _p$._v$31 && className(_el$77, _p$._v$31 = _v$31);
14311
+ _v$33 !== _p$._v$33 && className(_el$86, _p$._v$33 = _v$33);
14312
+ _v$34 !== _p$._v$34 && (_el$86.disabled = _p$._v$34 = _v$34);
14313
+ _v$35 !== _p$._v$35 && className(_el$87, _p$._v$35 = _v$35);
13459
14314
  return _p$;
13460
14315
  }, {
13461
- _v$29: void 0,
13462
- _v$30: void 0,
13463
- _v$31: void 0
14316
+ _v$33: void 0,
14317
+ _v$34: void 0,
14318
+ _v$35: void 0
13464
14319
  });
13465
- return _el$76;
14320
+ return _el$86;
13466
14321
  }
13467
14322
  }), null);
13468
- insert(_el$64, createComponent(Show, {
14323
+ insert(_el$74, createComponent(Show, {
13469
14324
  get when() {
13470
14325
  return !(errorTypes().length === 0 || queryStatus() === "error");
13471
14326
  },
13472
14327
  get children() {
13473
- const _el$79 = _tmpl$232(), _el$80 = _el$79.firstChild, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling; _el$82.firstChild;
13474
- _el$82.addEventListener("change", (e2) => {
14328
+ const _el$89 = _tmpl$27(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling, _el$92 = _el$91.nextSibling; _el$92.firstChild;
14329
+ _el$92.addEventListener("change", (e2) => {
13475
14330
  const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
13476
14331
  triggerError(errorType);
13477
14332
  });
13478
- insert(_el$82, createComponent(For, {
14333
+ insert(_el$92, createComponent(For, {
13479
14334
  get each() {
13480
14335
  return errorTypes();
13481
14336
  },
13482
14337
  children: (errorType) => (() => {
13483
- const _el$88 = _tmpl$25();
13484
- insert(_el$88, () => errorType.name);
13485
- createRenderEffect(() => _el$88.value = errorType.name);
13486
- return _el$88;
14338
+ const _el$98 = _tmpl$29();
14339
+ insert(_el$98, () => errorType.name);
14340
+ createRenderEffect(() => _el$98.value = errorType.name);
14341
+ return _el$98;
13487
14342
  })()
13488
14343
  }), null);
13489
- insert(_el$79, createComponent(ChevronDown, {}), null);
14344
+ insert(_el$89, createComponent(ChevronDown, {}), null);
13490
14345
  createRenderEffect((_p$) => {
13491
- const _v$32 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$33 = u`
14346
+ const _v$36 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$37 = u`
13492
14347
  background-color: ${tokens.colors.red[400]};
13493
- `, _v$34 = queryStatus() === "pending";
13494
- _v$32 !== _p$._v$32 && className(_el$79, _p$._v$32 = _v$32);
13495
- _v$33 !== _p$._v$33 && className(_el$80, _p$._v$33 = _v$33);
13496
- _v$34 !== _p$._v$34 && (_el$82.disabled = _p$._v$34 = _v$34);
14348
+ `, _v$38 = queryStatus() === "pending";
14349
+ _v$36 !== _p$._v$36 && className(_el$89, _p$._v$36 = _v$36);
14350
+ _v$37 !== _p$._v$37 && className(_el$90, _p$._v$37 = _v$37);
14351
+ _v$38 !== _p$._v$38 && (_el$92.disabled = _p$._v$38 = _v$38);
13497
14352
  return _p$;
13498
14353
  }, {
13499
- _v$32: void 0,
13500
- _v$33: void 0,
13501
- _v$34: void 0
14354
+ _v$36: void 0,
14355
+ _v$37: void 0,
14356
+ _v$38: void 0
13502
14357
  });
13503
- return _el$79;
14358
+ return _el$89;
13504
14359
  }
13505
14360
  }), null);
13506
- _el$85.style.setProperty("padding", "0.5rem");
13507
- insert(_el$85, createComponent(Explorer, {
14361
+ _el$95.style.setProperty("padding", "0.5rem");
14362
+ insert(_el$95, createComponent(Explorer, {
13508
14363
  label: "Data",
13509
14364
  defaultExpanded: ["Data"],
13510
14365
  get value() {
@@ -13515,8 +14370,8 @@ var init_Devtools = __esm({
13515
14370
  return activeQuery();
13516
14371
  }
13517
14372
  }));
13518
- _el$87.style.setProperty("padding", "0.5rem");
13519
- insert(_el$87, createComponent(Explorer, {
14373
+ _el$97.style.setProperty("padding", "0.5rem");
14374
+ insert(_el$97, createComponent(Explorer, {
13520
14375
  label: "Query",
13521
14376
  defaultExpanded: ["Query", "queryKey"],
13522
14377
  get value() {
@@ -13524,56 +14379,52 @@ var init_Devtools = __esm({
13524
14379
  }
13525
14380
  }));
13526
14381
  createRenderEffect((_p$) => {
13527
- 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`
14382
+ 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`
13528
14383
  color: ${t2(colors.blue[600], colors.blue[400])};
13529
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$42 = statusLabel() === "fetching", _v$43 = u`
14384
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$46 = statusLabel() === "fetching", _v$47 = u`
13530
14385
  background-color: ${t2(colors.blue[600], colors.blue[400])};
13531
- `, _v$44 = clsx(u`
14386
+ `, _v$48 = clsx(u`
13532
14387
  color: ${t2(colors.yellow[600], colors.yellow[400])};
13533
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$45 = queryStatus() === "pending", _v$46 = u`
14388
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$49 = queryStatus() === "pending", _v$50 = u`
13534
14389
  background-color: ${t2(colors.yellow[600], colors.yellow[400])};
13535
- `, _v$47 = clsx(u`
14390
+ `, _v$51 = clsx(u`
13536
14391
  color: ${t2(colors.gray[600], colors.gray[300])};
13537
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$48 = queryStatus() === "pending", _v$49 = u`
14392
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$52 = queryStatus() === "pending", _v$53 = u`
13538
14393
  background-color: ${t2(colors.gray[600], colors.gray[400])};
13539
- `, _v$50 = clsx(u`
14394
+ `, _v$54 = clsx(u`
13540
14395
  color: ${t2(colors.pink[500], colors.pink[400])};
13541
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$51 = statusLabel() === "fetching", _v$52 = u`
14396
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$55 = statusLabel() === "fetching", _v$56 = u`
13542
14397
  background-color: ${t2(colors.pink[500], colors.pink[400])};
13543
- `, _v$53 = clsx(u`
14398
+ `, _v$57 = clsx(u`
13544
14399
  color: ${t2(colors.cyan[500], colors.cyan[400])};
13545
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$54 = restoringLoading(), _v$55 = u`
14400
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$58 = restoringLoading(), _v$59 = u`
13546
14401
  background-color: ${t2(colors.cyan[500], colors.cyan[400])};
13547
- `, _v$56 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$57 = clsx(styles().detailsHeader, "tsqd-query-details-header");
13548
- _v$35 !== _p$._v$35 && className(_el$50, _p$._v$35 = _v$35);
13549
- _v$36 !== _p$._v$36 && className(_el$51, _p$._v$36 = _v$36);
13550
- _v$37 !== _p$._v$37 && className(_el$52, _p$._v$37 = _v$37);
13551
- _v$38 !== _p$._v$38 && className(_el$56, _p$._v$38 = _v$38);
13552
- _v$39 !== _p$._v$39 && className(_el$63, _p$._v$39 = _v$39);
13553
- _v$40 !== _p$._v$40 && className(_el$64, _p$._v$40 = _v$40);
13554
- _v$41 !== _p$._v$41 && className(_el$65, _p$._v$41 = _v$41);
13555
- _v$42 !== _p$._v$42 && (_el$65.disabled = _p$._v$42 = _v$42);
13556
- _v$43 !== _p$._v$43 && className(_el$66, _p$._v$43 = _v$43);
13557
- _v$44 !== _p$._v$44 && className(_el$67, _p$._v$44 = _v$44);
13558
- _v$45 !== _p$._v$45 && (_el$67.disabled = _p$._v$45 = _v$45);
13559
- _v$46 !== _p$._v$46 && className(_el$68, _p$._v$46 = _v$46);
13560
- _v$47 !== _p$._v$47 && className(_el$69, _p$._v$47 = _v$47);
13561
- _v$48 !== _p$._v$48 && (_el$69.disabled = _p$._v$48 = _v$48);
13562
- _v$49 !== _p$._v$49 && className(_el$70, _p$._v$49 = _v$49);
13563
- _v$50 !== _p$._v$50 && className(_el$71, _p$._v$50 = _v$50);
13564
- _v$51 !== _p$._v$51 && (_el$71.disabled = _p$._v$51 = _v$51);
13565
- _v$52 !== _p$._v$52 && className(_el$72, _p$._v$52 = _v$52);
13566
- _v$53 !== _p$._v$53 && className(_el$73, _p$._v$53 = _v$53);
13567
- _v$54 !== _p$._v$54 && (_el$73.disabled = _p$._v$54 = _v$54);
13568
- _v$55 !== _p$._v$55 && className(_el$74, _p$._v$55 = _v$55);
13569
- _v$56 !== _p$._v$56 && className(_el$84, _p$._v$56 = _v$56);
13570
- _v$57 !== _p$._v$57 && className(_el$86, _p$._v$57 = _v$57);
14402
+ `, _v$60 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$61 = clsx(styles().detailsHeader, "tsqd-query-details-header");
14403
+ _v$39 !== _p$._v$39 && className(_el$60, _p$._v$39 = _v$39);
14404
+ _v$40 !== _p$._v$40 && className(_el$61, _p$._v$40 = _v$40);
14405
+ _v$41 !== _p$._v$41 && className(_el$62, _p$._v$41 = _v$41);
14406
+ _v$42 !== _p$._v$42 && className(_el$66, _p$._v$42 = _v$42);
14407
+ _v$43 !== _p$._v$43 && className(_el$73, _p$._v$43 = _v$43);
14408
+ _v$44 !== _p$._v$44 && className(_el$74, _p$._v$44 = _v$44);
14409
+ _v$45 !== _p$._v$45 && className(_el$75, _p$._v$45 = _v$45);
14410
+ _v$46 !== _p$._v$46 && (_el$75.disabled = _p$._v$46 = _v$46);
14411
+ _v$47 !== _p$._v$47 && className(_el$76, _p$._v$47 = _v$47);
14412
+ _v$48 !== _p$._v$48 && className(_el$77, _p$._v$48 = _v$48);
14413
+ _v$49 !== _p$._v$49 && (_el$77.disabled = _p$._v$49 = _v$49);
14414
+ _v$50 !== _p$._v$50 && className(_el$78, _p$._v$50 = _v$50);
14415
+ _v$51 !== _p$._v$51 && className(_el$79, _p$._v$51 = _v$51);
14416
+ _v$52 !== _p$._v$52 && (_el$79.disabled = _p$._v$52 = _v$52);
14417
+ _v$53 !== _p$._v$53 && className(_el$80, _p$._v$53 = _v$53);
14418
+ _v$54 !== _p$._v$54 && className(_el$81, _p$._v$54 = _v$54);
14419
+ _v$55 !== _p$._v$55 && (_el$81.disabled = _p$._v$55 = _v$55);
14420
+ _v$56 !== _p$._v$56 && className(_el$82, _p$._v$56 = _v$56);
14421
+ _v$57 !== _p$._v$57 && className(_el$83, _p$._v$57 = _v$57);
14422
+ _v$58 !== _p$._v$58 && (_el$83.disabled = _p$._v$58 = _v$58);
14423
+ _v$59 !== _p$._v$59 && className(_el$84, _p$._v$59 = _v$59);
14424
+ _v$60 !== _p$._v$60 && className(_el$94, _p$._v$60 = _v$60);
14425
+ _v$61 !== _p$._v$61 && className(_el$96, _p$._v$61 = _v$61);
13571
14426
  return _p$;
13572
14427
  }, {
13573
- _v$35: void 0,
13574
- _v$36: void 0,
13575
- _v$37: void 0,
13576
- _v$38: void 0,
13577
14428
  _v$39: void 0,
13578
14429
  _v$40: void 0,
13579
14430
  _v$41: void 0,
@@ -13592,27 +14443,160 @@ var init_Devtools = __esm({
13592
14443
  _v$54: void 0,
13593
14444
  _v$55: void 0,
13594
14445
  _v$56: void 0,
13595
- _v$57: void 0
14446
+ _v$57: void 0,
14447
+ _v$58: void 0,
14448
+ _v$59: void 0,
14449
+ _v$60: void 0,
14450
+ _v$61: void 0
13596
14451
  });
13597
- return _el$50;
14452
+ return _el$60;
14453
+ }
14454
+ });
14455
+ };
14456
+ MutationDetails = () => {
14457
+ const theme = useTheme();
14458
+ const styles = createMemo(() => {
14459
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
14460
+ });
14461
+ const {
14462
+ colors
14463
+ } = tokens;
14464
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
14465
+ const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
14466
+ const mutations = mutationCache().getAll();
14467
+ const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
14468
+ if (!mutation)
14469
+ return false;
14470
+ return mutation.state.isPaused;
14471
+ });
14472
+ const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
14473
+ const mutations = mutationCache().getAll();
14474
+ const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
14475
+ if (!mutation)
14476
+ return "idle";
14477
+ return mutation.state.status;
14478
+ });
14479
+ const color = createMemo(() => getMutationStatusColor({
14480
+ isPaused: isPaused(),
14481
+ status: status()
14482
+ }));
14483
+ const activeMutation = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().find((mutation) => mutation.mutationId === selectedMutationId()), false);
14484
+ const getQueryStatusColors = () => {
14485
+ if (color() === "gray") {
14486
+ return u`
14487
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
14488
+ color: ${t2(colors[color()][700], colors[color()][300])};
14489
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
14490
+ `;
14491
+ }
14492
+ return u`
14493
+ background-color: ${t2(colors[color()][100], colors[color()][900])};
14494
+ color: ${t2(colors[color()][700], colors[color()][300])};
14495
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
14496
+ `;
14497
+ };
14498
+ return createComponent(Show, {
14499
+ get when() {
14500
+ return activeMutation();
14501
+ },
14502
+ get children() {
14503
+ 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;
14504
+ insert(_el$104, createComponent(Show, {
14505
+ get when() {
14506
+ return activeMutation().options.mutationKey;
14507
+ },
14508
+ fallback: "No mutationKey found",
14509
+ get children() {
14510
+ return displayValue(activeMutation().options.mutationKey, true);
14511
+ }
14512
+ }));
14513
+ insert(_el$105, createComponent(Show, {
14514
+ get when() {
14515
+ return color() === "purple";
14516
+ },
14517
+ children: "pending"
14518
+ }), null);
14519
+ insert(_el$105, createComponent(Show, {
14520
+ get when() {
14521
+ return color() !== "purple";
14522
+ },
14523
+ get children() {
14524
+ return status();
14525
+ }
14526
+ }), null);
14527
+ insert(_el$108, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
14528
+ _el$110.style.setProperty("padding", "0.5rem");
14529
+ insert(_el$110, createComponent(Explorer, {
14530
+ label: "Variables",
14531
+ defaultExpanded: ["Variables"],
14532
+ get value() {
14533
+ return activeMutation().state.variables;
14534
+ }
14535
+ }));
14536
+ _el$112.style.setProperty("padding", "0.5rem");
14537
+ insert(_el$112, createComponent(Explorer, {
14538
+ label: "Context",
14539
+ defaultExpanded: ["Context"],
14540
+ get value() {
14541
+ return activeMutation().state.context;
14542
+ }
14543
+ }));
14544
+ _el$114.style.setProperty("padding", "0.5rem");
14545
+ insert(_el$114, createComponent(Explorer, {
14546
+ label: "Data",
14547
+ defaultExpanded: ["Data"],
14548
+ get value() {
14549
+ return activeMutation().state.data;
14550
+ }
14551
+ }));
14552
+ _el$116.style.setProperty("padding", "0.5rem");
14553
+ insert(_el$116, createComponent(Explorer, {
14554
+ label: "Mutation",
14555
+ defaultExpanded: ["Mutation"],
14556
+ get value() {
14557
+ return activeMutation();
14558
+ }
14559
+ }));
14560
+ createRenderEffect((_p$) => {
14561
+ const _v$62 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$63 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$64 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$65 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$66 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$67 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$68 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$69 = clsx(styles().detailsHeader, "tsqd-query-details-header");
14562
+ _v$62 !== _p$._v$62 && className(_el$99, _p$._v$62 = _v$62);
14563
+ _v$63 !== _p$._v$63 && className(_el$100, _p$._v$63 = _v$63);
14564
+ _v$64 !== _p$._v$64 && className(_el$101, _p$._v$64 = _v$64);
14565
+ _v$65 !== _p$._v$65 && className(_el$105, _p$._v$65 = _v$65);
14566
+ _v$66 !== _p$._v$66 && className(_el$109, _p$._v$66 = _v$66);
14567
+ _v$67 !== _p$._v$67 && className(_el$111, _p$._v$67 = _v$67);
14568
+ _v$68 !== _p$._v$68 && className(_el$113, _p$._v$68 = _v$68);
14569
+ _v$69 !== _p$._v$69 && className(_el$115, _p$._v$69 = _v$69);
14570
+ return _p$;
14571
+ }, {
14572
+ _v$62: void 0,
14573
+ _v$63: void 0,
14574
+ _v$64: void 0,
14575
+ _v$65: void 0,
14576
+ _v$66: void 0,
14577
+ _v$67: void 0,
14578
+ _v$68: void 0,
14579
+ _v$69: void 0
14580
+ });
14581
+ return _el$99;
13598
14582
  }
13599
14583
  });
13600
14584
  };
13601
- signalsMap = /* @__PURE__ */ new Map();
14585
+ queryCacheMap = /* @__PURE__ */ new Map();
13602
14586
  setupQueryCacheSubscription = () => {
13603
14587
  const queryCache = createMemo(() => {
13604
14588
  const client = useQueryDevtoolsContext().client;
13605
14589
  return client.getQueryCache();
13606
14590
  });
13607
14591
  const unsub = queryCache().subscribe(() => {
13608
- for (const [callback, setter] of signalsMap.entries()) {
14592
+ for (const [callback, setter] of queryCacheMap.entries()) {
13609
14593
  queueMicrotask(() => {
13610
14594
  setter(callback(queryCache));
13611
14595
  });
13612
14596
  }
13613
14597
  });
13614
14598
  onCleanup(() => {
13615
- signalsMap.clear();
14599
+ queryCacheMap.clear();
13616
14600
  unsub();
13617
14601
  });
13618
14602
  return unsub;
@@ -13628,9 +14612,45 @@ var init_Devtools = __esm({
13628
14612
  createEffect(() => {
13629
14613
  setValue(callback(queryCache));
13630
14614
  });
13631
- signalsMap.set(callback, setValue);
14615
+ queryCacheMap.set(callback, setValue);
14616
+ onCleanup(() => {
14617
+ queryCacheMap.delete(callback);
14618
+ });
14619
+ return value;
14620
+ };
14621
+ mutationCacheMap = /* @__PURE__ */ new Map();
14622
+ setupMutationCacheSubscription = () => {
14623
+ const mutationCache = createMemo(() => {
14624
+ const client = useQueryDevtoolsContext().client;
14625
+ return client.getMutationCache();
14626
+ });
14627
+ const unsub = mutationCache().subscribe(() => {
14628
+ for (const [callback, setter] of mutationCacheMap.entries()) {
14629
+ queueMicrotask(() => {
14630
+ setter(callback(mutationCache));
14631
+ });
14632
+ }
14633
+ });
14634
+ onCleanup(() => {
14635
+ mutationCacheMap.clear();
14636
+ unsub();
14637
+ });
14638
+ return unsub;
14639
+ };
14640
+ createSubscribeToMutationCacheBatcher = (callback, equalityCheck = true) => {
14641
+ const mutationCache = createMemo(() => {
14642
+ const client = useQueryDevtoolsContext().client;
14643
+ return client.getMutationCache();
14644
+ });
14645
+ const [value, setValue] = createSignal(callback(mutationCache), !equalityCheck ? {
14646
+ equals: false
14647
+ } : void 0);
14648
+ createEffect(() => {
14649
+ setValue(callback(mutationCache));
14650
+ });
14651
+ mutationCacheMap.set(callback, setValue);
13632
14652
  onCleanup(() => {
13633
- signalsMap.delete(callback);
14653
+ mutationCacheMap.delete(callback);
13634
14654
  });
13635
14655
  return value;
13636
14656
  };
@@ -13912,7 +14932,7 @@ var init_Devtools = __esm({
13912
14932
  justify-content: space-between;
13913
14933
  align-items: center;
13914
14934
  padding: ${tokens.size[2]} ${tokens.size[2.5]};
13915
- gap: ${tokens.size[3]};
14935
+ gap: ${tokens.size[2.5]};
13916
14936
  border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
13917
14937
  align-items: center;
13918
14938
  & > button {
@@ -13923,9 +14943,20 @@ var init_Devtools = __esm({
13923
14943
  gap: ${size2[0.5]};
13924
14944
  flex-direction: column;
13925
14945
  }
14946
+ `,
14947
+ logoAndToggleContainer: u`
14948
+ display: flex;
14949
+ gap: ${tokens.size[3]};
14950
+ align-items: center;
13926
14951
  `,
13927
14952
  logo: u`
13928
14953
  cursor: pointer;
14954
+ display: flex;
14955
+ flex-direction: column;
14956
+ background-color: transparent;
14957
+ border: none;
14958
+ gap: ${tokens.size[0.5]};
14959
+ padding: 0px;
13929
14960
  &:hover {
13930
14961
  opacity: 0.7;
13931
14962
  }
@@ -14297,6 +15328,8 @@ var init_Devtools = __esm({
14297
15328
 
14298
15329
  & pre {
14299
15330
  margin: 0;
15331
+ display: flex;
15332
+ align-items: center;
14300
15333
  }
14301
15334
  `,
14302
15335
  queryDetailsStatus: u`
@@ -14476,6 +15509,56 @@ var init_Devtools = __esm({
14476
15509
  &:hover {
14477
15510
  background-color: ${t2(colors.purple[100], colors.purple[900])};
14478
15511
  }
15512
+ `,
15513
+ viewToggle: u`
15514
+ border-radius: ${tokens.border.radius.sm};
15515
+ background-color: ${t2(colors.gray[200], colors.darkGray[600])};
15516
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
15517
+ display: flex;
15518
+ padding: 0;
15519
+ font-size: ${font.size.xs};
15520
+ color: ${t2(colors.gray[700], colors.gray[300])};
15521
+ overflow: hidden;
15522
+
15523
+ &:has(:focus-visible) {
15524
+ outline: 2px solid ${colors.blue[800]};
15525
+ }
15526
+
15527
+ & .tsqd-radio-toggle {
15528
+ opacity: 0.5;
15529
+ display: flex;
15530
+ & label {
15531
+ display: flex;
15532
+ align-items: center;
15533
+ cursor: pointer;
15534
+ line-height: ${font.lineHeight.md};
15535
+ }
15536
+
15537
+ & label:hover {
15538
+ background-color: ${t2(colors.gray[100], colors.darkGray[500])};
15539
+ }
15540
+ }
15541
+
15542
+ & > [data-checked] {
15543
+ opacity: 1;
15544
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
15545
+ & label:hover {
15546
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
15547
+ }
15548
+ }
15549
+
15550
+ & .tsqd-radio-toggle:first-child {
15551
+ & label {
15552
+ padding: 0 ${tokens.size[1.5]} 0 ${tokens.size[2]};
15553
+ }
15554
+ border-right: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
15555
+ }
15556
+
15557
+ & .tsqd-radio-toggle:nth-child(2) {
15558
+ & label {
15559
+ padding: 0 ${tokens.size[2]} 0 ${tokens.size[1.5]};
15560
+ }
15561
+ }
14479
15562
  `
14480
15563
  };
14481
15564
  };