@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/index.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",
@@ -11449,10 +11918,16 @@ function getQueryStatusColor({
11449
11918
  }) {
11450
11919
  return queryState.fetchStatus === "fetching" ? "blue" : !observerCount ? "gray" : queryState.fetchStatus === "paused" ? "purple" : isStale ? "yellow" : "green";
11451
11920
  }
11921
+ function getMutationStatusColor({
11922
+ status,
11923
+ isPaused
11924
+ }) {
11925
+ return isPaused ? "purple" : status === "error" ? "red" : status === "pending" ? "yellow" : status === "success" ? "green" : "gray";
11926
+ }
11452
11927
  function getQueryStatusColorByLabel(label) {
11453
11928
  return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
11454
11929
  }
11455
- var displayValue, getStatusRank, queryHashSort, dateSort, statusAndDateSort, sortFns, convertRemToPixels, getPreferredColorScheme, updateNestedDataByPath, deleteNestedDataByPath;
11930
+ var displayValue, getStatusRank, queryHashSort, dateSort, statusAndDateSort, sortFns, getMutationStatusRank, mutationDateSort, mutationStatusSort, mutationSortFns, convertRemToPixels, getPreferredColorScheme, updateNestedDataByPath, deleteNestedDataByPath;
11456
11931
  var init_utils = __esm({
11457
11932
  "src/utils.tsx"() {
11458
11933
  init_esm2();
@@ -11477,6 +11952,18 @@ var init_utils = __esm({
11477
11952
  "query hash": queryHashSort,
11478
11953
  "last updated": dateSort
11479
11954
  };
11955
+ getMutationStatusRank = (m) => m.state.isPaused ? 0 : m.state.status === "error" ? 2 : m.state.status === "pending" ? 1 : 3;
11956
+ mutationDateSort = (a2, b2) => a2.state.submittedAt < b2.state.submittedAt ? 1 : -1;
11957
+ mutationStatusSort = (a2, b2) => {
11958
+ if (getMutationStatusRank(a2) === getMutationStatusRank(b2)) {
11959
+ return mutationDateSort(a2, b2);
11960
+ }
11961
+ return getMutationStatusRank(a2) > getMutationStatusRank(b2) ? 1 : -1;
11962
+ };
11963
+ mutationSortFns = {
11964
+ status: mutationStatusSort,
11965
+ "last updated": mutationDateSort
11966
+ };
11480
11967
  convertRemToPixels = (rem) => {
11481
11968
  return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
11482
11969
  };
@@ -11661,92 +12148,104 @@ function Check(props) {
11661
12148
  }
11662
12149
  })];
11663
12150
  }
12151
+ function CheckCircle() {
12152
+ return _tmpl$17();
12153
+ }
12154
+ function LoadingCircle() {
12155
+ return _tmpl$18();
12156
+ }
12157
+ function XCircle() {
12158
+ return _tmpl$19();
12159
+ }
12160
+ function PauseCircle() {
12161
+ return _tmpl$20();
12162
+ }
11664
12163
  function TanstackLogo() {
11665
12164
  const id = createUniqueId();
11666
12165
  return (() => {
11667
- const _el$23 = _tmpl$17(), _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling, _el$26 = _el$25.nextSibling, _el$27 = _el$26.firstChild, _el$28 = _el$26.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$28.nextSibling, _el$31 = _el$30.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$31.nextSibling, _el$34 = _el$33.firstChild, _el$35 = _el$33.nextSibling, _el$36 = _el$35.nextSibling, _el$37 = _el$36.firstChild, _el$38 = _el$36.nextSibling, _el$39 = _el$38.firstChild, _el$40 = _el$38.nextSibling, _el$41 = _el$40.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$41.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$43.nextSibling, _el$46 = _el$45.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$46.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$48.nextSibling, _el$51 = _el$50.nextSibling, _el$52 = _el$51.firstChild, _el$53 = _el$51.nextSibling, _el$54 = _el$53.firstChild, _el$55 = _el$53.nextSibling, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$56.nextSibling, _el$59 = _el$58.firstChild, _el$60 = _el$58.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$62.nextSibling, _el$64 = _el$63.nextSibling, _el$65 = _el$64.nextSibling, _el$66 = _el$60.nextSibling, _el$67 = _el$66.firstChild, _el$68 = _el$66.nextSibling, _el$69 = _el$68.firstChild, _el$70 = _el$68.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$71.nextSibling, _el$73 = _el$72.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling, _el$79 = _el$78.nextSibling, _el$80 = _el$79.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$70.nextSibling, _el$87 = _el$86.firstChild, _el$88 = _el$86.nextSibling, _el$89 = _el$88.firstChild, _el$90 = _el$88.nextSibling, _el$91 = _el$90.firstChild, _el$92 = _el$91.nextSibling, _el$93 = _el$90.nextSibling, _el$94 = _el$93.firstChild, _el$95 = _el$93.nextSibling, _el$96 = _el$95.firstChild, _el$97 = _el$95.nextSibling, _el$98 = _el$97.firstChild, _el$99 = _el$98.nextSibling, _el$100 = _el$99.nextSibling, _el$101 = _el$100.nextSibling, _el$102 = _el$101.nextSibling, _el$103 = _el$102.nextSibling, _el$104 = _el$103.nextSibling, _el$105 = _el$104.nextSibling, _el$106 = _el$105.nextSibling, _el$107 = _el$106.nextSibling, _el$108 = _el$107.nextSibling, _el$109 = _el$108.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling;
11668
- setAttribute(_el$24, "id", `a-${id}`);
11669
- setAttribute(_el$25, "fill", `url(#a-${id})`);
11670
- setAttribute(_el$27, "id", `am-${id}`);
11671
- setAttribute(_el$28, "id", `b-${id}`);
11672
- setAttribute(_el$29, "filter", `url(#am-${id})`);
11673
- setAttribute(_el$30, "mask", `url(#b-${id})`);
11674
- setAttribute(_el$32, "id", `ah-${id}`);
11675
- setAttribute(_el$33, "id", `k-${id}`);
11676
- setAttribute(_el$34, "filter", `url(#ah-${id})`);
11677
- setAttribute(_el$35, "mask", `url(#k-${id})`);
11678
- setAttribute(_el$37, "id", `ae-${id}`);
11679
- setAttribute(_el$38, "id", `j-${id}`);
11680
- setAttribute(_el$39, "filter", `url(#ae-${id})`);
11681
- setAttribute(_el$40, "mask", `url(#j-${id})`);
11682
- setAttribute(_el$42, "id", `ai-${id}`);
11683
- setAttribute(_el$43, "id", `i-${id}`);
11684
- setAttribute(_el$44, "filter", `url(#ai-${id})`);
11685
- setAttribute(_el$45, "mask", `url(#i-${id})`);
11686
- setAttribute(_el$47, "id", `aj-${id}`);
11687
- setAttribute(_el$48, "id", `h-${id}`);
11688
- setAttribute(_el$49, "filter", `url(#aj-${id})`);
11689
- setAttribute(_el$50, "mask", `url(#h-${id})`);
11690
- setAttribute(_el$52, "id", `ag-${id}`);
11691
- setAttribute(_el$53, "id", `g-${id}`);
11692
- setAttribute(_el$54, "filter", `url(#ag-${id})`);
11693
- setAttribute(_el$55, "mask", `url(#g-${id})`);
11694
- setAttribute(_el$57, "id", `af-${id}`);
11695
- setAttribute(_el$58, "id", `f-${id}`);
11696
- setAttribute(_el$59, "filter", `url(#af-${id})`);
11697
- setAttribute(_el$60, "mask", `url(#f-${id})`);
11698
- setAttribute(_el$64, "id", `m-${id}`);
11699
- setAttribute(_el$65, "fill", `url(#m-${id})`);
11700
- setAttribute(_el$67, "id", `ak-${id}`);
11701
- setAttribute(_el$68, "id", `e-${id}`);
11702
- setAttribute(_el$69, "filter", `url(#ak-${id})`);
11703
- setAttribute(_el$70, "mask", `url(#e-${id})`);
11704
- setAttribute(_el$71, "id", `n-${id}`);
11705
- setAttribute(_el$72, "fill", `url(#n-${id})`);
11706
- setAttribute(_el$74, "id", `r-${id}`);
11707
- setAttribute(_el$75, "fill", `url(#r-${id})`);
11708
- setAttribute(_el$76, "id", `s-${id}`);
11709
- setAttribute(_el$77, "fill", `url(#s-${id})`);
11710
- setAttribute(_el$78, "id", `q-${id}`);
11711
- setAttribute(_el$79, "fill", `url(#q-${id})`);
11712
- setAttribute(_el$80, "id", `p-${id}`);
11713
- setAttribute(_el$81, "fill", `url(#p-${id})`);
11714
- setAttribute(_el$82, "id", `o-${id}`);
11715
- setAttribute(_el$83, "fill", `url(#o-${id})`);
11716
- setAttribute(_el$84, "id", `l-${id}`);
11717
- setAttribute(_el$85, "fill", `url(#l-${id})`);
11718
- setAttribute(_el$87, "id", `al-${id}`);
11719
- setAttribute(_el$88, "id", `d-${id}`);
11720
- setAttribute(_el$89, "filter", `url(#al-${id})`);
11721
- setAttribute(_el$90, "mask", `url(#d-${id})`);
11722
- setAttribute(_el$91, "id", `u-${id}`);
11723
- setAttribute(_el$92, "fill", `url(#u-${id})`);
11724
- setAttribute(_el$94, "id", `ad-${id}`);
11725
- setAttribute(_el$95, "id", `c-${id}`);
11726
- setAttribute(_el$96, "filter", `url(#ad-${id})`);
11727
- setAttribute(_el$97, "mask", `url(#c-${id})`);
11728
- setAttribute(_el$98, "id", `t-${id}`);
11729
- setAttribute(_el$99, "fill", `url(#t-${id})`);
11730
- setAttribute(_el$100, "id", `v-${id}`);
11731
- setAttribute(_el$101, "stroke", `url(#v-${id})`);
11732
- setAttribute(_el$102, "id", `aa-${id}`);
11733
- setAttribute(_el$103, "stroke", `url(#aa-${id})`);
11734
- setAttribute(_el$104, "id", `w-${id}`);
11735
- setAttribute(_el$105, "stroke", `url(#w-${id})`);
11736
- setAttribute(_el$106, "id", `ac-${id}`);
11737
- setAttribute(_el$107, "stroke", `url(#ac-${id})`);
11738
- setAttribute(_el$108, "id", `ab-${id}`);
11739
- setAttribute(_el$109, "stroke", `url(#ab-${id})`);
11740
- setAttribute(_el$110, "id", `y-${id}`);
11741
- setAttribute(_el$111, "stroke", `url(#y-${id})`);
11742
- setAttribute(_el$112, "id", `x-${id}`);
11743
- setAttribute(_el$113, "stroke", `url(#x-${id})`);
11744
- setAttribute(_el$114, "id", `z-${id}`);
11745
- setAttribute(_el$115, "stroke", `url(#z-${id})`);
11746
- return _el$23;
12166
+ 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;
12167
+ setAttribute(_el$28, "id", `a-${id}`);
12168
+ setAttribute(_el$29, "fill", `url(#a-${id})`);
12169
+ setAttribute(_el$31, "id", `am-${id}`);
12170
+ setAttribute(_el$32, "id", `b-${id}`);
12171
+ setAttribute(_el$33, "filter", `url(#am-${id})`);
12172
+ setAttribute(_el$34, "mask", `url(#b-${id})`);
12173
+ setAttribute(_el$36, "id", `ah-${id}`);
12174
+ setAttribute(_el$37, "id", `k-${id}`);
12175
+ setAttribute(_el$38, "filter", `url(#ah-${id})`);
12176
+ setAttribute(_el$39, "mask", `url(#k-${id})`);
12177
+ setAttribute(_el$41, "id", `ae-${id}`);
12178
+ setAttribute(_el$42, "id", `j-${id}`);
12179
+ setAttribute(_el$43, "filter", `url(#ae-${id})`);
12180
+ setAttribute(_el$44, "mask", `url(#j-${id})`);
12181
+ setAttribute(_el$46, "id", `ai-${id}`);
12182
+ setAttribute(_el$47, "id", `i-${id}`);
12183
+ setAttribute(_el$48, "filter", `url(#ai-${id})`);
12184
+ setAttribute(_el$49, "mask", `url(#i-${id})`);
12185
+ setAttribute(_el$51, "id", `aj-${id}`);
12186
+ setAttribute(_el$52, "id", `h-${id}`);
12187
+ setAttribute(_el$53, "filter", `url(#aj-${id})`);
12188
+ setAttribute(_el$54, "mask", `url(#h-${id})`);
12189
+ setAttribute(_el$56, "id", `ag-${id}`);
12190
+ setAttribute(_el$57, "id", `g-${id}`);
12191
+ setAttribute(_el$58, "filter", `url(#ag-${id})`);
12192
+ setAttribute(_el$59, "mask", `url(#g-${id})`);
12193
+ setAttribute(_el$61, "id", `af-${id}`);
12194
+ setAttribute(_el$62, "id", `f-${id}`);
12195
+ setAttribute(_el$63, "filter", `url(#af-${id})`);
12196
+ setAttribute(_el$64, "mask", `url(#f-${id})`);
12197
+ setAttribute(_el$68, "id", `m-${id}`);
12198
+ setAttribute(_el$69, "fill", `url(#m-${id})`);
12199
+ setAttribute(_el$71, "id", `ak-${id}`);
12200
+ setAttribute(_el$72, "id", `e-${id}`);
12201
+ setAttribute(_el$73, "filter", `url(#ak-${id})`);
12202
+ setAttribute(_el$74, "mask", `url(#e-${id})`);
12203
+ setAttribute(_el$75, "id", `n-${id}`);
12204
+ setAttribute(_el$76, "fill", `url(#n-${id})`);
12205
+ setAttribute(_el$78, "id", `r-${id}`);
12206
+ setAttribute(_el$79, "fill", `url(#r-${id})`);
12207
+ setAttribute(_el$80, "id", `s-${id}`);
12208
+ setAttribute(_el$81, "fill", `url(#s-${id})`);
12209
+ setAttribute(_el$82, "id", `q-${id}`);
12210
+ setAttribute(_el$83, "fill", `url(#q-${id})`);
12211
+ setAttribute(_el$84, "id", `p-${id}`);
12212
+ setAttribute(_el$85, "fill", `url(#p-${id})`);
12213
+ setAttribute(_el$86, "id", `o-${id}`);
12214
+ setAttribute(_el$87, "fill", `url(#o-${id})`);
12215
+ setAttribute(_el$88, "id", `l-${id}`);
12216
+ setAttribute(_el$89, "fill", `url(#l-${id})`);
12217
+ setAttribute(_el$91, "id", `al-${id}`);
12218
+ setAttribute(_el$92, "id", `d-${id}`);
12219
+ setAttribute(_el$93, "filter", `url(#al-${id})`);
12220
+ setAttribute(_el$94, "mask", `url(#d-${id})`);
12221
+ setAttribute(_el$95, "id", `u-${id}`);
12222
+ setAttribute(_el$96, "fill", `url(#u-${id})`);
12223
+ setAttribute(_el$98, "id", `ad-${id}`);
12224
+ setAttribute(_el$99, "id", `c-${id}`);
12225
+ setAttribute(_el$100, "filter", `url(#ad-${id})`);
12226
+ setAttribute(_el$101, "mask", `url(#c-${id})`);
12227
+ setAttribute(_el$102, "id", `t-${id}`);
12228
+ setAttribute(_el$103, "fill", `url(#t-${id})`);
12229
+ setAttribute(_el$104, "id", `v-${id}`);
12230
+ setAttribute(_el$105, "stroke", `url(#v-${id})`);
12231
+ setAttribute(_el$106, "id", `aa-${id}`);
12232
+ setAttribute(_el$107, "stroke", `url(#aa-${id})`);
12233
+ setAttribute(_el$108, "id", `w-${id}`);
12234
+ setAttribute(_el$109, "stroke", `url(#w-${id})`);
12235
+ setAttribute(_el$110, "id", `ac-${id}`);
12236
+ setAttribute(_el$111, "stroke", `url(#ac-${id})`);
12237
+ setAttribute(_el$112, "id", `ab-${id}`);
12238
+ setAttribute(_el$113, "stroke", `url(#ab-${id})`);
12239
+ setAttribute(_el$114, "id", `y-${id}`);
12240
+ setAttribute(_el$115, "stroke", `url(#y-${id})`);
12241
+ setAttribute(_el$116, "id", `x-${id}`);
12242
+ setAttribute(_el$117, "stroke", `url(#x-${id})`);
12243
+ setAttribute(_el$118, "id", `z-${id}`);
12244
+ setAttribute(_el$119, "stroke", `url(#z-${id})`);
12245
+ return _el$27;
11747
12246
  })();
11748
12247
  }
11749
- var _tmpl$, _tmpl$2, _tmpl$3, _tmpl$4, _tmpl$5, _tmpl$6, _tmpl$7, _tmpl$8, _tmpl$9, _tmpl$10, _tmpl$11, _tmpl$12, _tmpl$13, _tmpl$14, _tmpl$15, _tmpl$16, _tmpl$17;
12248
+ 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;
11750
12249
  var init_icons = __esm({
11751
12250
  "src/icons/index.tsx"() {
11752
12251
  init_web();
@@ -11770,7 +12269,11 @@ var init_icons = __esm({
11770
12269
  _tmpl$14 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
11771
12270
  _tmpl$15 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>`);
11772
12271
  _tmpl$16 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
11773
- _tmpl$17 = /* @__PURE__ */ template(`<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>`);
12272
+ _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>`);
12273
+ _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>`);
12274
+ _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>`);
12275
+ _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>`);
12276
+ _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>`);
11774
12277
  }
11775
12278
  });
11776
12279
 
@@ -12145,7 +12648,7 @@ function Explorer(props) {
12145
12648
  return _el$6;
12146
12649
  })();
12147
12650
  }
12148
- var _tmpl$18, _tmpl$22, _tmpl$32, _tmpl$42, _tmpl$52, _tmpl$62, _tmpl$72, _tmpl$82, _tmpl$92, _tmpl$102, _tmpl$112, Expander, CopyButton, ClearArrayButton, DeleteItemButton, ToggleValueButton, stylesFactory, lightStyles, darkStyles;
12651
+ 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;
12149
12652
  var init_Explorer = __esm({
12150
12653
  "src/Explorer.tsx"() {
12151
12654
  init_web();
@@ -12166,8 +12669,8 @@ var init_Explorer = __esm({
12166
12669
  init_utils();
12167
12670
  init_icons();
12168
12671
  init_Context();
12169
- _tmpl$18 = /* @__PURE__ */ template(`<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
12170
- _tmpl$22 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
12672
+ _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>`);
12673
+ _tmpl$23 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
12171
12674
  _tmpl$32 = /* @__PURE__ */ template(`<button title="Remove all items"aria-label="Remove all items">`);
12172
12675
  _tmpl$42 = /* @__PURE__ */ template(`<button title="Delete item"aria-label="Delete item">`);
12173
12676
  _tmpl$52 = /* @__PURE__ */ template(`<button title="Toggle value"aria-label="Toggle value">`);
@@ -12183,7 +12686,7 @@ var init_Explorer = __esm({
12183
12686
  return theme() === "dark" ? darkStyles : lightStyles;
12184
12687
  });
12185
12688
  return (() => {
12186
- const _el$ = _tmpl$18();
12689
+ const _el$ = _tmpl$22();
12187
12690
  createRenderEffect(() => className(_el$, clsx(styles().expander, u`
12188
12691
  transform: rotate(${props.expanded ? 90 : 0}deg);
12189
12692
  `, props.expanded && u`
@@ -12201,7 +12704,7 @@ var init_Explorer = __esm({
12201
12704
  });
12202
12705
  const [copyState, setCopyState] = createSignal("NoCopy");
12203
12706
  return (() => {
12204
- const _el$2 = _tmpl$22();
12707
+ const _el$2 = _tmpl$23();
12205
12708
  addEventListener(_el$2, "click", copyState() === "NoCopy" ? () => {
12206
12709
  navigator.clipboard.writeText(stringify(props.value)).then(() => {
12207
12710
  setCopyState("SuccessCopy");
@@ -12478,12 +12981,14 @@ __export(Devtools_exports, {
12478
12981
  Devtools: () => Devtools,
12479
12982
  DevtoolsComponent: () => DevtoolsComponent,
12480
12983
  DevtoolsPanel: () => DevtoolsPanel,
12984
+ MutationRow: () => MutationRow,
12985
+ MutationStatusCount: () => MutationStatusCount,
12481
12986
  QueryRow: () => QueryRow,
12482
12987
  QueryStatus: () => QueryStatus,
12483
12988
  QueryStatusCount: () => QueryStatusCount,
12484
12989
  default: () => Devtools_default
12485
12990
  });
12486
- var _tmpl$19, _tmpl$23, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$103, _tmpl$113, _tmpl$122, _tmpl$132, _tmpl$142, _tmpl$152, _tmpl$162, _tmpl$172, _tmpl$182, _tmpl$192, _tmpl$20, _tmpl$21, _tmpl$222, _tmpl$232, _tmpl$24, _tmpl$25, firstBreakpoint, secondBreakpoint, thirdBreakpoint, BUTTON_POSITION, POSITION, THEME_PREFERENCE, INITIAL_IS_OPEN, DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_SORT_FN_NAME, DEFAULT_SORT_ORDER, selectedQueryHash, setSelectedQueryHash, panelWidth, setPanelWidth, DevtoolsComponent, Devtools_default, Devtools, DevtoolsPanel, QueryRow, QueryStatusCount, QueryStatus, QueryDetails, signalsMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, stylesFactory2, lightStyles2, darkStyles2;
12991
+ 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;
12487
12992
  var init_Devtools = __esm({
12488
12993
  "src/Devtools.tsx"() {
12489
12994
  init_web();
@@ -12512,31 +13017,36 @@ var init_Devtools = __esm({
12512
13017
  init_Explorer();
12513
13018
  init_Context();
12514
13019
  init_fonts();
12515
- _tmpl$19 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
12516
- _tmpl$23 = /* @__PURE__ */ template(`<div>`);
12517
- _tmpl$33 = /* @__PURE__ */ template(`<span>Asc`);
12518
- _tmpl$43 = /* @__PURE__ */ template(`<span>Desc`);
12519
- _tmpl$53 = /* @__PURE__ */ template(`<div>Settings`);
12520
- _tmpl$63 = /* @__PURE__ */ template(`<span>Position`);
12521
- _tmpl$73 = /* @__PURE__ */ template(`<span>Top`);
12522
- _tmpl$83 = /* @__PURE__ */ template(`<span>Bottom`);
12523
- _tmpl$93 = /* @__PURE__ */ template(`<span>Left`);
12524
- _tmpl$103 = /* @__PURE__ */ template(`<span>Right`);
12525
- _tmpl$113 = /* @__PURE__ */ template(`<span>Theme`);
12526
- _tmpl$122 = /* @__PURE__ */ template(`<span>Light`);
12527
- _tmpl$132 = /* @__PURE__ */ template(`<span>Dark`);
12528
- _tmpl$142 = /* @__PURE__ */ template(`<span>System`);
12529
- _tmpl$152 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools"></button><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter class=tsqd-query-filter-textfield></div><div><select></select></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"title="Clear query cache"></button><button></button></div></div><div><div class=tsqd-queries-container>`);
12530
- _tmpl$162 = /* @__PURE__ */ template(`<option>Sort by `);
12531
- _tmpl$172 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
12532
- _tmpl$182 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
12533
- _tmpl$192 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
12534
- _tmpl$20 = /* @__PURE__ */ template(`<span>`);
12535
- _tmpl$21 = /* @__PURE__ */ template(`<button><span></span><span>`);
12536
- _tmpl$222 = /* @__PURE__ */ template(`<button><span></span> Error`);
12537
- _tmpl$232 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
12538
- _tmpl$24 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
12539
- _tmpl$25 = /* @__PURE__ */ template(`<option>`);
13020
+ _tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
13021
+ _tmpl$25 = /* @__PURE__ */ template(`<div>`);
13022
+ _tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
13023
+ _tmpl$43 = /* @__PURE__ */ template(`<select>`);
13024
+ _tmpl$53 = /* @__PURE__ */ template(`<span>Asc`);
13025
+ _tmpl$63 = /* @__PURE__ */ template(`<span>Desc`);
13026
+ _tmpl$73 = /* @__PURE__ */ template(`<div>Settings`);
13027
+ _tmpl$83 = /* @__PURE__ */ template(`<span>Position`);
13028
+ _tmpl$93 = /* @__PURE__ */ template(`<span>Top`);
13029
+ _tmpl$103 = /* @__PURE__ */ template(`<span>Bottom`);
13030
+ _tmpl$113 = /* @__PURE__ */ template(`<span>Left`);
13031
+ _tmpl$122 = /* @__PURE__ */ template(`<span>Right`);
13032
+ _tmpl$132 = /* @__PURE__ */ template(`<span>Theme`);
13033
+ _tmpl$142 = /* @__PURE__ */ template(`<span>Light`);
13034
+ _tmpl$152 = /* @__PURE__ */ template(`<span>Dark`);
13035
+ _tmpl$162 = /* @__PURE__ */ template(`<span>System`);
13036
+ _tmpl$172 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
13037
+ _tmpl$182 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
13038
+ _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>`);
13039
+ _tmpl$202 = /* @__PURE__ */ template(`<option>Sort by `);
13040
+ _tmpl$212 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
13041
+ _tmpl$222 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
13042
+ _tmpl$232 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
13043
+ _tmpl$242 = /* @__PURE__ */ template(`<span>`);
13044
+ _tmpl$252 = /* @__PURE__ */ template(`<button><span></span><span>`);
13045
+ _tmpl$26 = /* @__PURE__ */ template(`<button><span></span> Error`);
13046
+ _tmpl$27 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
13047
+ _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">`);
13048
+ _tmpl$29 = /* @__PURE__ */ template(`<option>`);
13049
+ _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">`);
12540
13050
  firstBreakpoint = 1024;
12541
13051
  secondBreakpoint = 796;
12542
13052
  thirdBreakpoint = 700;
@@ -12548,7 +13058,9 @@ var init_Devtools = __esm({
12548
13058
  DEFAULT_WIDTH = 500;
12549
13059
  DEFAULT_SORT_FN_NAME = Object.keys(sortFns)[0];
12550
13060
  DEFAULT_SORT_ORDER = 1;
13061
+ DEFAULT_MUTATION_SORT_FN_NAME = Object.keys(mutationSortFns)[0];
12551
13062
  [selectedQueryHash, setSelectedQueryHash] = createSignal(null);
13063
+ [selectedMutationId, setSelectedMutationId] = createSignal(null);
12552
13064
  [panelWidth, setPanelWidth] = createSignal(0);
12553
13065
  DevtoolsComponent = (props) => {
12554
13066
  const [localStore, setLocalStore] = createLocalStorage({
@@ -12601,7 +13113,7 @@ var init_Devtools = __esm({
12601
13113
  root.style.setProperty("--tsqd-panel-width", `${panelPosition === "left" ? "-" : ""}${width}px`);
12602
13114
  });
12603
13115
  return (() => {
12604
- const _el$ = _tmpl$23();
13116
+ const _el$ = _tmpl$25();
12605
13117
  insert(_el$, createComponent(TransitionGroup, {
12606
13118
  name: "tsqd-panel-transition",
12607
13119
  get children() {
@@ -12630,7 +13142,7 @@ var init_Devtools = __esm({
12630
13142
  return !isOpen();
12631
13143
  },
12632
13144
  get children() {
12633
- const _el$2 = _tmpl$19(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
13145
+ const _el$2 = _tmpl$24(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
12634
13146
  insert(_el$3, createComponent(TanstackLogo, {}));
12635
13147
  _el$4.$$click = () => props.setLocalStore("open", "true");
12636
13148
  insert(_el$4, createComponent(TanstackLogo, {}));
@@ -12670,24 +13182,7 @@ var init_Devtools = __esm({
12670
13182
  return theme() === "dark" ? darkStyles2 : lightStyles2;
12671
13183
  });
12672
13184
  const [isResizing, setIsResizing] = createSignal(false);
12673
- const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
12674
- const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
12675
- const [offline, setOffline] = createSignal(false);
12676
13185
  const position = createMemo(() => props.localStore.position || useQueryDevtoolsContext().position || POSITION);
12677
- const sortFn = createMemo(() => sortFns[sort()]);
12678
- const onlineManager = createMemo(() => useQueryDevtoolsContext().onlineManager);
12679
- const cache = createMemo(() => {
12680
- return useQueryDevtoolsContext().client.getQueryCache();
12681
- });
12682
- const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
12683
- return queryCache().getAll().length;
12684
- }, false);
12685
- const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
12686
- const curr = cache().getAll();
12687
- const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
12688
- const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
12689
- return sorted;
12690
- }));
12691
13186
  const handleDragStart = (event) => {
12692
13187
  const panelElement = event.currentTarget.parentElement;
12693
13188
  if (!panelElement)
@@ -12735,8 +13230,6 @@ var init_Devtools = __esm({
12735
13230
  document.addEventListener("mousemove", runDrag, false);
12736
13231
  document.addEventListener("mouseup", unsub, false);
12737
13232
  };
12738
- setupQueryCacheSubscription();
12739
- let queriesContainerRef;
12740
13233
  let panelRef;
12741
13234
  onMount(() => {
12742
13235
  createResizeObserver(panelRef, ({
@@ -12747,9 +13240,6 @@ var init_Devtools = __esm({
12747
13240
  }
12748
13241
  });
12749
13242
  });
12750
- const setDevtoolsPosition = (pos) => {
12751
- props.setLocalStore("position", pos);
12752
- };
12753
13243
  createEffect(() => {
12754
13244
  const rootContainer = panelRef.parentElement?.parentElement?.parentElement;
12755
13245
  if (!rootContainer)
@@ -12794,65 +13284,243 @@ var init_Devtools = __esm({
12794
13284
  `;
12795
13285
  };
12796
13286
  return (() => {
12797
- const _el$5 = _tmpl$152(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.firstChild, _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$9.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$16.nextSibling, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$23 = _el$15.nextSibling, _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling, _el$36 = _el$14.nextSibling, _el$37 = _el$36.firstChild;
13287
+ const _el$5 = _tmpl$33(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
12798
13288
  const _ref$ = panelRef;
12799
13289
  typeof _ref$ === "function" ? use(_ref$, _el$5) : panelRef = _el$5;
12800
13290
  _el$6.$$mousedown = handleDragStart;
12801
13291
  _el$7.$$click = () => props.setLocalStore("open", "false");
12802
13292
  insert(_el$7, createComponent(ChevronDown, {}));
12803
- const _ref$2 = queriesContainerRef;
12804
- typeof _ref$2 === "function" ? use(_ref$2, _el$8) : queriesContainerRef = _el$8;
12805
- _el$10.$$click = () => props.setLocalStore("open", "false");
12806
- insert(_el$12, () => useQueryDevtoolsContext().queryFlavor, _el$13);
12807
- insert(_el$12, () => useQueryDevtoolsContext().version, null);
12808
- insert(_el$9, createComponent(QueryStatusCount, {}), null);
12809
- insert(_el$16, createComponent(Search, {}), _el$17);
12810
- _el$17.$$input = (e2) => props.setLocalStore("filter", e2.currentTarget.value);
12811
- _el$19.addEventListener("change", (e2) => props.setLocalStore("sort", e2.currentTarget.value));
12812
- insert(_el$19, () => Object.keys(sortFns).map((key) => (() => {
12813
- const _el$38 = _tmpl$162(); _el$38.firstChild;
12814
- _el$38.value = key;
12815
- insert(_el$38, key, null);
12816
- return _el$38;
12817
- })()));
12818
- insert(_el$18, createComponent(ChevronDown, {}), null);
12819
- _el$20.$$click = () => {
12820
- props.setLocalStore("sortOrder", String(sortOrder() * -1));
12821
- };
12822
- insert(_el$20, createComponent(Show, {
12823
- get when() {
12824
- return sortOrder() === 1;
12825
- },
12826
- get children() {
12827
- return [_tmpl$33(), createComponent(ArrowUp, {})];
12828
- }
12829
- }), null);
12830
- insert(_el$20, createComponent(Show, {
12831
- get when() {
12832
- return sortOrder() === -1;
13293
+ insert(_el$5, createComponent(ContentView, {
13294
+ get localStore() {
13295
+ return props.localStore;
12833
13296
  },
12834
- get children() {
12835
- return [_tmpl$43(), createComponent(ArrowDown, {})];
13297
+ get setLocalStore() {
13298
+ return props.setLocalStore;
12836
13299
  }
12837
13300
  }), null);
12838
- _el$24.$$click = () => {
12839
- cache().clear();
12840
- };
12841
- insert(_el$24, createComponent(Trash, {}));
12842
- _el$25.$$click = () => {
12843
- if (offline()) {
12844
- onlineManager().setOnline(true);
12845
- setOffline(false);
12846
- } else {
12847
- onlineManager().setOnline(false);
13301
+ createRenderEffect((_p$) => {
13302
+ const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
13303
+ [u`
13304
+ min-width: min-content;
13305
+ `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
13306
+ }, "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");
13307
+ _v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
13308
+ _v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
13309
+ _v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
13310
+ _v$4 !== _p$._v$4 && className(_el$6, _p$._v$4 = _v$4);
13311
+ _v$5 !== _p$._v$5 && className(_el$7, _p$._v$5 = _v$5);
13312
+ return _p$;
13313
+ }, {
13314
+ _v$: void 0,
13315
+ _v$2: void 0,
13316
+ _v$3: void 0,
13317
+ _v$4: void 0,
13318
+ _v$5: void 0
13319
+ });
13320
+ return _el$5;
13321
+ })();
13322
+ };
13323
+ ContentView = (props) => {
13324
+ setupQueryCacheSubscription();
13325
+ setupMutationCacheSubscription();
13326
+ const theme = useTheme();
13327
+ const styles = createMemo(() => {
13328
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
13329
+ });
13330
+ const [selectedView, setSelectedView] = createSignal("queries");
13331
+ const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
13332
+ const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
13333
+ const mutationSort = createMemo(() => props.localStore.mutationSort || DEFAULT_MUTATION_SORT_FN_NAME);
13334
+ const mutationSortOrder = createMemo(() => Number(props.localStore.mutationSortOrder) || DEFAULT_SORT_ORDER);
13335
+ const [offline, setOffline] = createSignal(false);
13336
+ const sortFn = createMemo(() => sortFns[sort()]);
13337
+ const mutationSortFn = createMemo(() => mutationSortFns[mutationSort()]);
13338
+ const onlineManager = createMemo(() => useQueryDevtoolsContext().onlineManager);
13339
+ const query_cache = createMemo(() => {
13340
+ return useQueryDevtoolsContext().client.getQueryCache();
13341
+ });
13342
+ const mutation_cache = createMemo(() => {
13343
+ return useQueryDevtoolsContext().client.getMutationCache();
13344
+ });
13345
+ const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
13346
+ return queryCache().getAll().length;
13347
+ }, false);
13348
+ const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
13349
+ const curr = query_cache().getAll();
13350
+ const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
13351
+ const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
13352
+ return sorted;
13353
+ }));
13354
+ const mutationCount = createSubscribeToMutationCacheBatcher((mutationCache) => {
13355
+ return mutationCache().getAll().length;
13356
+ }, false);
13357
+ const mutations = createMemo(on(() => [mutationCount(), props.localStore.mutationFilter, mutationSort(), mutationSortOrder()], () => {
13358
+ const curr = mutation_cache().getAll();
13359
+ const filtered = props.localStore.mutationFilter ? curr.filter((item) => {
13360
+ const value = `${item.options.mutationKey ? JSON.stringify(item.options.mutationKey) + " - " : ""}${new Date(item.state.submittedAt).toLocaleString()}`;
13361
+ return rankItem(value, props.localStore.mutationFilter || "").passed;
13362
+ }) : [...curr];
13363
+ const sorted = mutationSortFn() ? filtered.sort((a2, b2) => mutationSortFn()(a2, b2) * mutationSortOrder()) : filtered;
13364
+ return sorted;
13365
+ }));
13366
+ const setDevtoolsPosition = (pos) => {
13367
+ props.setLocalStore("position", pos);
13368
+ };
13369
+ return [(() => {
13370
+ 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;
13371
+ _el$11.$$click = () => props.setLocalStore("open", "false");
13372
+ insert(_el$13, () => useQueryDevtoolsContext().queryFlavor, _el$14);
13373
+ insert(_el$13, () => useQueryDevtoolsContext().version, null);
13374
+ insert(_el$10, createComponent(index$7.Root, {
13375
+ get ["class"]() {
13376
+ return clsx(styles().viewToggle);
13377
+ },
13378
+ get value() {
13379
+ return selectedView();
13380
+ },
13381
+ onChange: (value) => {
13382
+ setSelectedView(value);
13383
+ setSelectedQueryHash(null);
13384
+ setSelectedMutationId(null);
13385
+ },
13386
+ get children() {
13387
+ return [createComponent(index$7.Item, {
13388
+ value: "queries",
13389
+ "class": "tsqd-radio-toggle",
13390
+ get children() {
13391
+ return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
13392
+ get children() {
13393
+ return createComponent(index$7.ItemIndicator, {});
13394
+ }
13395
+ }), createComponent(index$7.ItemLabel, {
13396
+ title: "Toggle Queries View",
13397
+ children: "Queries"
13398
+ })];
13399
+ }
13400
+ }), createComponent(index$7.Item, {
13401
+ value: "mutations",
13402
+ "class": "tsqd-radio-toggle",
13403
+ get children() {
13404
+ return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
13405
+ get children() {
13406
+ return createComponent(index$7.ItemIndicator, {});
13407
+ }
13408
+ }), createComponent(index$7.ItemLabel, {
13409
+ title: "Toggle Mutations View",
13410
+ children: "Mutations"
13411
+ })];
13412
+ }
13413
+ })];
13414
+ }
13415
+ }), null);
13416
+ insert(_el$9, createComponent(Show, {
13417
+ get when() {
13418
+ return selectedView() === "queries";
13419
+ },
13420
+ get children() {
13421
+ return createComponent(QueryStatusCount, {});
13422
+ }
13423
+ }), null);
13424
+ insert(_el$9, createComponent(Show, {
13425
+ get when() {
13426
+ return selectedView() === "mutations";
13427
+ },
13428
+ get children() {
13429
+ return createComponent(MutationStatusCount, {});
13430
+ }
13431
+ }), null);
13432
+ insert(_el$17, createComponent(Search, {}), _el$18);
13433
+ _el$18.$$input = (e2) => {
13434
+ if (selectedView() === "queries") {
13435
+ props.setLocalStore("filter", e2.currentTarget.value);
13436
+ } else {
13437
+ props.setLocalStore("mutationFilter", e2.currentTarget.value);
13438
+ }
13439
+ };
13440
+ insert(_el$19, createComponent(Show, {
13441
+ get when() {
13442
+ return selectedView() === "queries";
13443
+ },
13444
+ get children() {
13445
+ const _el$20 = _tmpl$43();
13446
+ _el$20.addEventListener("change", (e2) => {
13447
+ props.setLocalStore("sort", e2.currentTarget.value);
13448
+ });
13449
+ insert(_el$20, () => Object.keys(sortFns).map((key) => (() => {
13450
+ const _el$42 = _tmpl$202(); _el$42.firstChild;
13451
+ _el$42.value = key;
13452
+ insert(_el$42, key, null);
13453
+ return _el$42;
13454
+ })()));
13455
+ createRenderEffect(() => _el$20.value = sort());
13456
+ return _el$20;
13457
+ }
13458
+ }), null);
13459
+ insert(_el$19, createComponent(Show, {
13460
+ get when() {
13461
+ return selectedView() === "mutations";
13462
+ },
13463
+ get children() {
13464
+ const _el$21 = _tmpl$43();
13465
+ _el$21.addEventListener("change", (e2) => {
13466
+ props.setLocalStore("mutationSort", e2.currentTarget.value);
13467
+ });
13468
+ insert(_el$21, () => Object.keys(mutationSortFns).map((key) => (() => {
13469
+ const _el$44 = _tmpl$202(); _el$44.firstChild;
13470
+ _el$44.value = key;
13471
+ insert(_el$44, key, null);
13472
+ return _el$44;
13473
+ })()));
13474
+ createRenderEffect(() => _el$21.value = mutationSort());
13475
+ return _el$21;
13476
+ }
13477
+ }), null);
13478
+ insert(_el$19, createComponent(ChevronDown, {}), null);
13479
+ _el$22.$$click = () => {
13480
+ if (selectedView() === "queries") {
13481
+ props.setLocalStore("sortOrder", String(sortOrder() * -1));
13482
+ } else {
13483
+ props.setLocalStore("mutationSortOrder", String(mutationSortOrder() * -1));
13484
+ }
13485
+ };
13486
+ insert(_el$22, createComponent(Show, {
13487
+ get when() {
13488
+ return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === 1;
13489
+ },
13490
+ get children() {
13491
+ return [_tmpl$53(), createComponent(ArrowUp, {})];
13492
+ }
13493
+ }), null);
13494
+ insert(_el$22, createComponent(Show, {
13495
+ get when() {
13496
+ return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1;
13497
+ },
13498
+ get children() {
13499
+ return [_tmpl$63(), createComponent(ArrowDown, {})];
13500
+ }
13501
+ }), null);
13502
+ _el$26.$$click = () => {
13503
+ if (selectedView() === "queries") {
13504
+ query_cache().clear();
13505
+ } else {
13506
+ mutation_cache().clear();
13507
+ }
13508
+ };
13509
+ insert(_el$26, createComponent(Trash, {}));
13510
+ _el$27.$$click = () => {
13511
+ if (offline()) {
13512
+ onlineManager().setOnline(true);
13513
+ setOffline(false);
13514
+ } else {
13515
+ onlineManager().setOnline(false);
12848
13516
  setOffline(true);
12849
13517
  }
12850
13518
  };
12851
- insert(_el$25, (() => {
13519
+ insert(_el$27, (() => {
12852
13520
  const _c$ = createMemo(() => !!offline());
12853
13521
  return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
12854
13522
  })());
12855
- insert(_el$23, createComponent(index$d.Root, {
13523
+ insert(_el$25, createComponent(index$d.Root, {
12856
13524
  gutter: 4,
12857
13525
  get children() {
12858
13526
  return [createComponent(index$d.Trigger, {
@@ -12870,9 +13538,9 @@ var init_Devtools = __esm({
12870
13538
  },
12871
13539
  get children() {
12872
13540
  return [(() => {
12873
- const _el$26 = _tmpl$53();
12874
- createRenderEffect(() => className(_el$26, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
12875
- return _el$26;
13541
+ const _el$28 = _tmpl$73();
13542
+ createRenderEffect(() => className(_el$28, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
13543
+ return _el$28;
12876
13544
  })(), createComponent(index$d.Sub, {
12877
13545
  overlap: true,
12878
13546
  gutter: 8,
@@ -12883,7 +13551,7 @@ var init_Devtools = __esm({
12883
13551
  return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
12884
13552
  },
12885
13553
  get children() {
12886
- return [_tmpl$63(), createComponent(ChevronDown, {})];
13554
+ return [_tmpl$83(), createComponent(ChevronDown, {})];
12887
13555
  }
12888
13556
  }), createComponent(index$d.Portal, {
12889
13557
  get children() {
@@ -12901,7 +13569,7 @@ var init_Devtools = __esm({
12901
13569
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
12902
13570
  },
12903
13571
  get children() {
12904
- return [_tmpl$73(), createComponent(ArrowUp, {})];
13572
+ return [_tmpl$93(), createComponent(ArrowUp, {})];
12905
13573
  }
12906
13574
  }), createComponent(index$d.Item, {
12907
13575
  onSelect: () => {
@@ -12912,7 +13580,7 @@ var init_Devtools = __esm({
12912
13580
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
12913
13581
  },
12914
13582
  get children() {
12915
- return [_tmpl$83(), createComponent(ArrowDown, {})];
13583
+ return [_tmpl$103(), createComponent(ArrowDown, {})];
12916
13584
  }
12917
13585
  }), createComponent(index$d.Item, {
12918
13586
  onSelect: () => {
@@ -12923,7 +13591,7 @@ var init_Devtools = __esm({
12923
13591
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
12924
13592
  },
12925
13593
  get children() {
12926
- return [_tmpl$93(), createComponent(ArrowLeft, {})];
13594
+ return [_tmpl$113(), createComponent(ArrowLeft, {})];
12927
13595
  }
12928
13596
  }), createComponent(index$d.Item, {
12929
13597
  onSelect: () => {
@@ -12934,7 +13602,7 @@ var init_Devtools = __esm({
12934
13602
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
12935
13603
  },
12936
13604
  get children() {
12937
- return [_tmpl$103(), createComponent(ArrowRight, {})];
13605
+ return [_tmpl$122(), createComponent(ArrowRight, {})];
12938
13606
  }
12939
13607
  })];
12940
13608
  }
@@ -12952,7 +13620,7 @@ var init_Devtools = __esm({
12952
13620
  return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
12953
13621
  },
12954
13622
  get children() {
12955
- return [_tmpl$113(), createComponent(ChevronDown, {})];
13623
+ return [_tmpl$132(), createComponent(ChevronDown, {})];
12956
13624
  }
12957
13625
  }), createComponent(index$d.Portal, {
12958
13626
  get children() {
@@ -12970,7 +13638,7 @@ var init_Devtools = __esm({
12970
13638
  return clsx(styles().settingsSubButton, props.localStore.theme_preference === "light" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
12971
13639
  },
12972
13640
  get children() {
12973
- return [_tmpl$122(), createComponent(Sun, {})];
13641
+ return [_tmpl$142(), createComponent(Sun, {})];
12974
13642
  }
12975
13643
  }), createComponent(index$d.Item, {
12976
13644
  onSelect: () => {
@@ -12981,7 +13649,7 @@ var init_Devtools = __esm({
12981
13649
  return clsx(styles().settingsSubButton, props.localStore.theme_preference === "dark" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
12982
13650
  },
12983
13651
  get children() {
12984
- return [_tmpl$132(), createComponent(Moon, {})];
13652
+ return [_tmpl$152(), createComponent(Moon, {})];
12985
13653
  }
12986
13654
  }), createComponent(index$d.Item, {
12987
13655
  onSelect: () => {
@@ -12992,7 +13660,7 @@ var init_Devtools = __esm({
12992
13660
  return clsx(styles().settingsSubButton, props.localStore.theme_preference === "system" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
12993
13661
  },
12994
13662
  get children() {
12995
- return [_tmpl$142(), createComponent(Monitor, {})];
13663
+ return [_tmpl$162(), createComponent(Monitor, {})];
12996
13664
  }
12997
13665
  })];
12998
13666
  }
@@ -13007,66 +13675,74 @@ var init_Devtools = __esm({
13007
13675
  })];
13008
13676
  }
13009
13677
  }), null);
13010
- insert(_el$37, createComponent(Key, {
13011
- by: (q) => q.queryHash,
13012
- get each() {
13013
- return queries();
13678
+ insert(_el$8, createComponent(Show, {
13679
+ get when() {
13680
+ return selectedView() === "queries";
13014
13681
  },
13015
- children: (query) => createComponent(QueryRow, {
13016
- get query() {
13017
- return query();
13018
- }
13019
- })
13020
- }));
13021
- insert(_el$5, createComponent(Show, {
13682
+ get children() {
13683
+ const _el$38 = _tmpl$172(), _el$39 = _el$38.firstChild;
13684
+ insert(_el$39, createComponent(Key, {
13685
+ by: (q) => q.queryHash,
13686
+ get each() {
13687
+ return queries();
13688
+ },
13689
+ children: (query) => createComponent(QueryRow, {
13690
+ get query() {
13691
+ return query();
13692
+ }
13693
+ })
13694
+ }));
13695
+ createRenderEffect(() => className(_el$38, clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container")));
13696
+ return _el$38;
13697
+ }
13698
+ }), null);
13699
+ insert(_el$8, createComponent(Show, {
13022
13700
  get when() {
13023
- return selectedQueryHash();
13701
+ return selectedView() === "mutations";
13024
13702
  },
13025
13703
  get children() {
13026
- return createComponent(QueryDetails, {});
13704
+ const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild;
13705
+ insert(_el$41, createComponent(Key, {
13706
+ by: (m) => m.mutationId,
13707
+ get each() {
13708
+ return mutations();
13709
+ },
13710
+ children: (mutation) => createComponent(MutationRow, {
13711
+ get mutation() {
13712
+ return mutation();
13713
+ }
13714
+ })
13715
+ }));
13716
+ createRenderEffect(() => className(_el$40, clsx(styles().overflowQueryContainer, "tsqd-mutations-overflow-container")));
13717
+ return _el$40;
13027
13718
  }
13028
13719
  }), null);
13029
13720
  createRenderEffect((_p$) => {
13030
- const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
13031
- [u`
13032
- min-width: min-content;
13033
- `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
13034
- }, "tsqd-main-panel"), _v$2 = position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto", _v$3 = position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto", _v$4 = clsx(styles().dragHandle, styles()[`dragHandle-position-${position()}`], "tsqd-drag-handle"), _v$5 = clsx(styles().closeBtn, styles()[`closeBtn-position-${position()}`], "tsqd-minimize-btn"), _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && selectedQueryHash() && u`
13721
+ const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && u`
13035
13722
  height: 50%;
13036
13723
  max-height: 50%;
13037
- `, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = clsx(styles().logo, "tsqd-text-logo-container"), _v$9 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$10 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$11 = clsx(styles().row, u`
13038
- gap: ${tokens.size[2.5]};
13039
- `, "tsqd-filters-actions-container"), _v$12 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$13 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$14 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$15 = `Sort order ${sortOrder() === -1 ? "descending" : "ascending"}`, _v$16 = sortOrder() === -1, _v$17 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$18 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$19 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$20 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$21 = offline(), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container");
13040
- _v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
13041
- _v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
13042
- _v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
13043
- _v$4 !== _p$._v$4 && className(_el$6, _p$._v$4 = _v$4);
13044
- _v$5 !== _p$._v$5 && className(_el$7, _p$._v$5 = _v$5);
13724
+ `, "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"}`;
13045
13725
  _v$6 !== _p$._v$6 && className(_el$8, _p$._v$6 = _v$6);
13046
13726
  _v$7 !== _p$._v$7 && className(_el$9, _p$._v$7 = _v$7);
13047
13727
  _v$8 !== _p$._v$8 && className(_el$10, _p$._v$8 = _v$8);
13048
13728
  _v$9 !== _p$._v$9 && className(_el$11, _p$._v$9 = _v$9);
13049
13729
  _v$10 !== _p$._v$10 && className(_el$12, _p$._v$10 = _v$10);
13050
- _v$11 !== _p$._v$11 && className(_el$14, _p$._v$11 = _v$11);
13730
+ _v$11 !== _p$._v$11 && className(_el$13, _p$._v$11 = _v$11);
13051
13731
  _v$12 !== _p$._v$12 && className(_el$15, _p$._v$12 = _v$12);
13052
13732
  _v$13 !== _p$._v$13 && className(_el$16, _p$._v$13 = _v$13);
13053
- _v$14 !== _p$._v$14 && className(_el$18, _p$._v$14 = _v$14);
13054
- _v$15 !== _p$._v$15 && setAttribute(_el$20, "aria-label", _p$._v$15 = _v$15);
13055
- _v$16 !== _p$._v$16 && setAttribute(_el$20, "aria-pressed", _p$._v$16 = _v$16);
13056
- _v$17 !== _p$._v$17 && className(_el$23, _p$._v$17 = _v$17);
13057
- _v$18 !== _p$._v$18 && className(_el$24, _p$._v$18 = _v$18);
13058
- _v$19 !== _p$._v$19 && className(_el$25, _p$._v$19 = _v$19);
13059
- _v$20 !== _p$._v$20 && setAttribute(_el$25, "aria-label", _p$._v$20 = _v$20);
13060
- _v$21 !== _p$._v$21 && setAttribute(_el$25, "aria-pressed", _p$._v$21 = _v$21);
13061
- _v$22 !== _p$._v$22 && setAttribute(_el$25, "title", _p$._v$22 = _v$22);
13062
- _v$23 !== _p$._v$23 && className(_el$36, _p$._v$23 = _v$23);
13733
+ _v$14 !== _p$._v$14 && className(_el$17, _p$._v$14 = _v$14);
13734
+ _v$15 !== _p$._v$15 && className(_el$19, _p$._v$15 = _v$15);
13735
+ _v$16 !== _p$._v$16 && setAttribute(_el$22, "aria-label", _p$._v$16 = _v$16);
13736
+ _v$17 !== _p$._v$17 && setAttribute(_el$22, "aria-pressed", _p$._v$17 = _v$17);
13737
+ _v$18 !== _p$._v$18 && className(_el$25, _p$._v$18 = _v$18);
13738
+ _v$19 !== _p$._v$19 && className(_el$26, _p$._v$19 = _v$19);
13739
+ _v$20 !== _p$._v$20 && setAttribute(_el$26, "title", _p$._v$20 = _v$20);
13740
+ _v$21 !== _p$._v$21 && className(_el$27, _p$._v$21 = _v$21);
13741
+ _v$22 !== _p$._v$22 && setAttribute(_el$27, "aria-label", _p$._v$22 = _v$22);
13742
+ _v$23 !== _p$._v$23 && setAttribute(_el$27, "aria-pressed", _p$._v$23 = _v$23);
13743
+ _v$24 !== _p$._v$24 && setAttribute(_el$27, "title", _p$._v$24 = _v$24);
13063
13744
  return _p$;
13064
13745
  }, {
13065
- _v$: void 0,
13066
- _v$2: void 0,
13067
- _v$3: void 0,
13068
- _v$4: void 0,
13069
- _v$5: void 0,
13070
13746
  _v$6: void 0,
13071
13747
  _v$7: void 0,
13072
13748
  _v$8: void 0,
@@ -13084,12 +13760,26 @@ var init_Devtools = __esm({
13084
13760
  _v$20: void 0,
13085
13761
  _v$21: void 0,
13086
13762
  _v$22: void 0,
13087
- _v$23: void 0
13763
+ _v$23: void 0,
13764
+ _v$24: void 0
13088
13765
  });
13089
- createRenderEffect(() => _el$17.value = props.localStore.filter || "");
13090
- createRenderEffect(() => _el$19.value = sort());
13091
- return _el$5;
13092
- })();
13766
+ createRenderEffect(() => _el$18.value = selectedView() === "queries" ? props.localStore.filter || "" : props.localStore.mutationFilter || "");
13767
+ return _el$8;
13768
+ })(), createComponent(Show, {
13769
+ get when() {
13770
+ return createMemo(() => selectedView() === "queries")() && selectedQueryHash();
13771
+ },
13772
+ get children() {
13773
+ return createComponent(QueryDetails, {});
13774
+ }
13775
+ }), createComponent(Show, {
13776
+ get when() {
13777
+ return createMemo(() => selectedView() === "mutations")() && selectedMutationId();
13778
+ },
13779
+ get children() {
13780
+ return createComponent(MutationDetails, {});
13781
+ }
13782
+ })];
13093
13783
  };
13094
13784
  QueryRow = (props) => {
13095
13785
  const theme = useTheme();
@@ -13135,30 +13825,140 @@ var init_Devtools = __esm({
13135
13825
  return queryState();
13136
13826
  },
13137
13827
  get children() {
13138
- const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild, _el$42 = _el$41.nextSibling;
13139
- _el$40.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
13140
- insert(_el$41, observers);
13141
- insert(_el$42, () => props.query.queryHash);
13142
- insert(_el$40, createComponent(Show, {
13828
+ const _el$46 = _tmpl$222(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling;
13829
+ _el$46.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
13830
+ insert(_el$47, observers);
13831
+ insert(_el$48, () => props.query.queryHash);
13832
+ insert(_el$46, createComponent(Show, {
13143
13833
  get when() {
13144
13834
  return isDisabled();
13145
13835
  },
13146
13836
  get children() {
13147
- return _tmpl$172();
13837
+ return _tmpl$212();
13148
13838
  }
13149
13839
  }), null);
13150
13840
  createRenderEffect((_p$) => {
13151
- const _v$24 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$25 = `Query key ${props.query.queryHash}`, _v$26 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
13152
- _v$24 !== _p$._v$24 && className(_el$40, _p$._v$24 = _v$24);
13153
- _v$25 !== _p$._v$25 && setAttribute(_el$40, "aria-label", _p$._v$25 = _v$25);
13154
- _v$26 !== _p$._v$26 && className(_el$41, _p$._v$26 = _v$26);
13841
+ 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");
13842
+ _v$25 !== _p$._v$25 && className(_el$46, _p$._v$25 = _v$25);
13843
+ _v$26 !== _p$._v$26 && setAttribute(_el$46, "aria-label", _p$._v$26 = _v$26);
13844
+ _v$27 !== _p$._v$27 && className(_el$47, _p$._v$27 = _v$27);
13155
13845
  return _p$;
13156
13846
  }, {
13157
- _v$24: void 0,
13158
13847
  _v$25: void 0,
13159
- _v$26: void 0
13848
+ _v$26: void 0,
13849
+ _v$27: void 0
13160
13850
  });
13161
- return _el$40;
13851
+ return _el$46;
13852
+ }
13853
+ });
13854
+ };
13855
+ MutationRow = (props) => {
13856
+ const theme = useTheme();
13857
+ const styles = createMemo(() => {
13858
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
13859
+ });
13860
+ const {
13861
+ colors,
13862
+ alpha
13863
+ } = tokens;
13864
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
13865
+ const mutationState = createSubscribeToMutationCacheBatcher((mutationCache) => {
13866
+ const mutations = mutationCache().getAll();
13867
+ const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
13868
+ return mutation?.state;
13869
+ });
13870
+ const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
13871
+ const mutations = mutationCache().getAll();
13872
+ const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
13873
+ if (!mutation)
13874
+ return false;
13875
+ return mutation.state.isPaused;
13876
+ });
13877
+ const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
13878
+ const mutations = mutationCache().getAll();
13879
+ const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
13880
+ if (!mutation)
13881
+ return "idle";
13882
+ return mutation.state.status;
13883
+ });
13884
+ const color = createMemo(() => getMutationStatusColor({
13885
+ isPaused: isPaused(),
13886
+ status: status()
13887
+ }));
13888
+ const getObserverCountColorStyles = () => {
13889
+ if (color() === "gray") {
13890
+ return u`
13891
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
13892
+ color: ${t2(colors[color()][700], colors[color()][300])};
13893
+ `;
13894
+ }
13895
+ return u`
13896
+ background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
13897
+ color: ${t2(colors[color()][800], colors[color()][300])};
13898
+ `;
13899
+ };
13900
+ return createComponent(Show, {
13901
+ get when() {
13902
+ return mutationState();
13903
+ },
13904
+ get children() {
13905
+ const _el$50 = _tmpl$222(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling;
13906
+ _el$50.$$click = () => {
13907
+ setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
13908
+ };
13909
+ insert(_el$51, createComponent(Show, {
13910
+ get when() {
13911
+ return color() === "purple";
13912
+ },
13913
+ get children() {
13914
+ return createComponent(PauseCircle, {});
13915
+ }
13916
+ }), null);
13917
+ insert(_el$51, createComponent(Show, {
13918
+ get when() {
13919
+ return color() === "green";
13920
+ },
13921
+ get children() {
13922
+ return createComponent(CheckCircle, {});
13923
+ }
13924
+ }), null);
13925
+ insert(_el$51, createComponent(Show, {
13926
+ get when() {
13927
+ return color() === "red";
13928
+ },
13929
+ get children() {
13930
+ return createComponent(XCircle, {});
13931
+ }
13932
+ }), null);
13933
+ insert(_el$51, createComponent(Show, {
13934
+ get when() {
13935
+ return color() === "yellow";
13936
+ },
13937
+ get children() {
13938
+ return createComponent(LoadingCircle, {});
13939
+ }
13940
+ }), null);
13941
+ insert(_el$52, createComponent(Show, {
13942
+ get when() {
13943
+ return props.mutation.options.mutationKey;
13944
+ },
13945
+ get children() {
13946
+ return [createMemo(() => JSON.stringify(props.mutation.options.mutationKey)), " -", " "];
13947
+ }
13948
+ }), null);
13949
+ insert(_el$52, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
13950
+ createRenderEffect((_p$) => {
13951
+ 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");
13952
+ _v$28 !== _p$._v$28 && className(_el$50, _p$._v$28 = _v$28);
13953
+ _v$29 !== _p$._v$29 && setAttribute(_el$50, "aria-label", _p$._v$29 = _v$29);
13954
+ _v$30 !== _p$._v$30 && className(_el$51, _p$._v$30 = _v$30);
13955
+ return _p$;
13956
+ }, {
13957
+ _v$28: void 0,
13958
+ _v$29: void 0,
13959
+ _v$30: void 0
13960
+ });
13961
+ return _el$50;
13162
13962
  }
13163
13963
  });
13164
13964
  };
@@ -13173,44 +13973,99 @@ var init_Devtools = __esm({
13173
13973
  return theme() === "dark" ? darkStyles2 : lightStyles2;
13174
13974
  });
13175
13975
  return (() => {
13176
- const _el$44 = _tmpl$23();
13177
- insert(_el$44, createComponent(QueryStatus, {
13976
+ const _el$53 = _tmpl$25();
13977
+ insert(_el$53, createComponent(QueryStatus, {
13178
13978
  label: "Fresh",
13179
13979
  color: "green",
13180
13980
  get count() {
13181
13981
  return fresh();
13182
13982
  }
13183
13983
  }), null);
13184
- insert(_el$44, createComponent(QueryStatus, {
13984
+ insert(_el$53, createComponent(QueryStatus, {
13185
13985
  label: "Fetching",
13186
13986
  color: "blue",
13187
13987
  get count() {
13188
13988
  return fetching();
13189
13989
  }
13190
13990
  }), null);
13191
- insert(_el$44, createComponent(QueryStatus, {
13991
+ insert(_el$53, createComponent(QueryStatus, {
13192
13992
  label: "Paused",
13193
13993
  color: "purple",
13194
13994
  get count() {
13195
13995
  return paused();
13196
13996
  }
13197
13997
  }), null);
13198
- insert(_el$44, createComponent(QueryStatus, {
13998
+ insert(_el$53, createComponent(QueryStatus, {
13199
13999
  label: "Stale",
13200
14000
  color: "yellow",
13201
14001
  get count() {
13202
14002
  return stale();
13203
14003
  }
13204
14004
  }), null);
13205
- insert(_el$44, createComponent(QueryStatus, {
14005
+ insert(_el$53, createComponent(QueryStatus, {
13206
14006
  label: "Inactive",
13207
14007
  color: "gray",
13208
14008
  get count() {
13209
14009
  return inactive();
13210
14010
  }
13211
14011
  }), null);
13212
- createRenderEffect(() => className(_el$44, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
13213
- return _el$44;
14012
+ createRenderEffect(() => className(_el$53, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
14013
+ return _el$53;
14014
+ })();
14015
+ };
14016
+ MutationStatusCount = () => {
14017
+ const success = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
14018
+ isPaused: m.state.isPaused,
14019
+ status: m.state.status
14020
+ }) === "green").length);
14021
+ const pending = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
14022
+ isPaused: m.state.isPaused,
14023
+ status: m.state.status
14024
+ }) === "yellow").length);
14025
+ const paused = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
14026
+ isPaused: m.state.isPaused,
14027
+ status: m.state.status
14028
+ }) === "purple").length);
14029
+ const error = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
14030
+ isPaused: m.state.isPaused,
14031
+ status: m.state.status
14032
+ }) === "red").length);
14033
+ const theme = useTheme();
14034
+ const styles = createMemo(() => {
14035
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
14036
+ });
14037
+ return (() => {
14038
+ const _el$54 = _tmpl$25();
14039
+ insert(_el$54, createComponent(QueryStatus, {
14040
+ label: "Paused",
14041
+ color: "purple",
14042
+ get count() {
14043
+ return paused();
14044
+ }
14045
+ }), null);
14046
+ insert(_el$54, createComponent(QueryStatus, {
14047
+ label: "Pending",
14048
+ color: "yellow",
14049
+ get count() {
14050
+ return pending();
14051
+ }
14052
+ }), null);
14053
+ insert(_el$54, createComponent(QueryStatus, {
14054
+ label: "Success",
14055
+ color: "green",
14056
+ get count() {
14057
+ return success();
14058
+ }
14059
+ }), null);
14060
+ insert(_el$54, createComponent(QueryStatus, {
14061
+ label: "Error",
14062
+ color: "red",
14063
+ get count() {
14064
+ return error();
14065
+ }
14066
+ }), null);
14067
+ createRenderEffect(() => className(_el$54, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
14068
+ return _el$54;
13214
14069
  })();
13215
14070
  };
13216
14071
  QueryStatus = (props) => {
@@ -13238,17 +14093,17 @@ var init_Devtools = __esm({
13238
14093
  return true;
13239
14094
  });
13240
14095
  return (() => {
13241
- const _el$45 = _tmpl$21(), _el$47 = _el$45.firstChild, _el$49 = _el$47.nextSibling;
13242
- const _ref$3 = tagRef;
13243
- typeof _ref$3 === "function" ? use(_ref$3, _el$45) : tagRef = _el$45;
13244
- _el$45.addEventListener("mouseleave", () => {
14096
+ const _el$55 = _tmpl$252(), _el$57 = _el$55.firstChild, _el$59 = _el$57.nextSibling;
14097
+ const _ref$2 = tagRef;
14098
+ typeof _ref$2 === "function" ? use(_ref$2, _el$55) : tagRef = _el$55;
14099
+ _el$55.addEventListener("mouseleave", () => {
13245
14100
  setMouseOver(false);
13246
14101
  setFocused(false);
13247
14102
  });
13248
- _el$45.addEventListener("mouseenter", () => setMouseOver(true));
13249
- _el$45.addEventListener("blur", () => setFocused(false));
13250
- _el$45.addEventListener("focus", () => setFocused(true));
13251
- spread(_el$45, mergeProps({
14103
+ _el$55.addEventListener("mouseenter", () => setMouseOver(true));
14104
+ _el$55.addEventListener("blur", () => setFocused(false));
14105
+ _el$55.addEventListener("focus", () => setFocused(true));
14106
+ spread(_el$55, mergeProps({
13252
14107
  get disabled() {
13253
14108
  return showLabel();
13254
14109
  },
@@ -13263,47 +14118,47 @@ var init_Devtools = __esm({
13263
14118
  }, () => mouseOver() || focused() ? {
13264
14119
  "aria-describedby": "tsqd-status-tooltip"
13265
14120
  } : {}), false, true);
13266
- insert(_el$45, createComponent(Show, {
14121
+ insert(_el$55, createComponent(Show, {
13267
14122
  get when() {
13268
14123
  return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
13269
14124
  },
13270
14125
  get children() {
13271
- const _el$46 = _tmpl$192();
13272
- insert(_el$46, () => props.label);
13273
- createRenderEffect(() => className(_el$46, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
13274
- return _el$46;
14126
+ const _el$56 = _tmpl$232();
14127
+ insert(_el$56, () => props.label);
14128
+ createRenderEffect(() => className(_el$56, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
14129
+ return _el$56;
13275
14130
  }
13276
- }), _el$47);
13277
- insert(_el$45, createComponent(Show, {
14131
+ }), _el$57);
14132
+ insert(_el$55, createComponent(Show, {
13278
14133
  get when() {
13279
14134
  return showLabel();
13280
14135
  },
13281
14136
  get children() {
13282
- const _el$48 = _tmpl$20();
13283
- insert(_el$48, () => props.label);
13284
- createRenderEffect(() => className(_el$48, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
13285
- return _el$48;
14137
+ const _el$58 = _tmpl$242();
14138
+ insert(_el$58, () => props.label);
14139
+ createRenderEffect(() => className(_el$58, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
14140
+ return _el$58;
13286
14141
  }
13287
- }), _el$49);
13288
- insert(_el$49, () => props.count);
14142
+ }), _el$59);
14143
+ insert(_el$59, () => props.count);
13289
14144
  createRenderEffect((_p$) => {
13290
- const _v$27 = clsx(u`
14145
+ const _v$31 = clsx(u`
13291
14146
  width: ${tokens.size[1.5]};
13292
14147
  height: ${tokens.size[1.5]};
13293
14148
  border-radius: ${tokens.border.radius.full};
13294
14149
  background-color: ${tokens.colors[props.color][500]};
13295
- `, "tsqd-query-status-tag-dot"), _v$28 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
14150
+ `, "tsqd-query-status-tag-dot"), _v$32 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
13296
14151
  background-color: ${t2(colors[props.color][100], colors[props.color][900])};
13297
14152
  color: ${t2(colors[props.color][700], colors[props.color][300])};
13298
14153
  `, "tsqd-query-status-tag-count");
13299
- _v$27 !== _p$._v$27 && className(_el$47, _p$._v$27 = _v$27);
13300
- _v$28 !== _p$._v$28 && className(_el$49, _p$._v$28 = _v$28);
14154
+ _v$31 !== _p$._v$31 && className(_el$57, _p$._v$31 = _v$31);
14155
+ _v$32 !== _p$._v$32 && className(_el$59, _p$._v$32 = _v$32);
13301
14156
  return _p$;
13302
14157
  }, {
13303
- _v$27: void 0,
13304
- _v$28: void 0
14158
+ _v$31: void 0,
14159
+ _v$32: void 0
13305
14160
  });
13306
- return _el$45;
14161
+ return _el$55;
13307
14162
  })();
13308
14163
  };
13309
14164
  QueryDetails = () => {
@@ -13390,19 +14245,19 @@ var init_Devtools = __esm({
13390
14245
  return createMemo(() => !!activeQuery())() && activeQueryState();
13391
14246
  },
13392
14247
  get children() {
13393
- const _el$50 = _tmpl$24(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling, _el$53 = _el$52.firstChild, _el$54 = _el$53.firstChild, _el$55 = _el$54.firstChild, _el$56 = _el$54.nextSibling, _el$57 = _el$53.nextSibling, _el$58 = _el$57.firstChild, _el$59 = _el$58.nextSibling, _el$60 = _el$57.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$52.nextSibling, _el$64 = _el$63.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.firstChild, _el$67 = _el$65.nextSibling, _el$68 = _el$67.firstChild, _el$69 = _el$67.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$69.nextSibling, _el$72 = _el$71.firstChild, _el$73 = _el$71.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$84 = _el$64.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling;
13394
- insert(_el$55, () => displayValue(activeQuery().queryKey, true));
13395
- insert(_el$56, statusLabel);
13396
- insert(_el$59, observerCount);
13397
- insert(_el$62, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
13398
- _el$65.$$click = handleRefetch;
13399
- _el$67.$$click = () => queryClient.invalidateQueries(activeQuery());
13400
- _el$69.$$click = () => queryClient.resetQueries(activeQuery());
13401
- _el$71.$$click = () => {
14248
+ 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;
14249
+ insert(_el$65, () => displayValue(activeQuery().queryKey, true));
14250
+ insert(_el$66, statusLabel);
14251
+ insert(_el$69, observerCount);
14252
+ insert(_el$72, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
14253
+ _el$75.$$click = handleRefetch;
14254
+ _el$77.$$click = () => queryClient.invalidateQueries(activeQuery());
14255
+ _el$79.$$click = () => queryClient.resetQueries(activeQuery());
14256
+ _el$81.$$click = () => {
13402
14257
  queryClient.removeQueries(activeQuery());
13403
14258
  setSelectedQueryHash(null);
13404
14259
  };
13405
- _el$73.$$click = () => {
14260
+ _el$83.$$click = () => {
13406
14261
  if (activeQuery()?.state.data === void 0) {
13407
14262
  setRestoringLoading(true);
13408
14263
  restoreQueryAfterLoadingOrError();
@@ -13430,79 +14285,79 @@ var init_Devtools = __esm({
13430
14285
  });
13431
14286
  }
13432
14287
  };
13433
- insert(_el$73, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$75);
13434
- insert(_el$64, createComponent(Show, {
14288
+ insert(_el$83, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$85);
14289
+ insert(_el$74, createComponent(Show, {
13435
14290
  get when() {
13436
14291
  return errorTypes().length === 0 || queryStatus() === "error";
13437
14292
  },
13438
14293
  get children() {
13439
- const _el$76 = _tmpl$222(), _el$77 = _el$76.firstChild, _el$78 = _el$77.nextSibling;
13440
- _el$76.$$click = () => {
14294
+ const _el$86 = _tmpl$26(), _el$87 = _el$86.firstChild, _el$88 = _el$87.nextSibling;
14295
+ _el$86.$$click = () => {
13441
14296
  if (!activeQuery().state.error) {
13442
14297
  triggerError();
13443
14298
  } else {
13444
14299
  queryClient.resetQueries(activeQuery());
13445
14300
  }
13446
14301
  };
13447
- insert(_el$76, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$78);
14302
+ insert(_el$86, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$88);
13448
14303
  createRenderEffect((_p$) => {
13449
- const _v$29 = clsx(u`
14304
+ const _v$33 = clsx(u`
13450
14305
  color: ${t2(colors.red[500], colors.red[400])};
13451
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$30 = queryStatus() === "pending", _v$31 = u`
14306
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$34 = queryStatus() === "pending", _v$35 = u`
13452
14307
  background-color: ${t2(colors.red[500], colors.red[400])};
13453
14308
  `;
13454
- _v$29 !== _p$._v$29 && className(_el$76, _p$._v$29 = _v$29);
13455
- _v$30 !== _p$._v$30 && (_el$76.disabled = _p$._v$30 = _v$30);
13456
- _v$31 !== _p$._v$31 && className(_el$77, _p$._v$31 = _v$31);
14309
+ _v$33 !== _p$._v$33 && className(_el$86, _p$._v$33 = _v$33);
14310
+ _v$34 !== _p$._v$34 && (_el$86.disabled = _p$._v$34 = _v$34);
14311
+ _v$35 !== _p$._v$35 && className(_el$87, _p$._v$35 = _v$35);
13457
14312
  return _p$;
13458
14313
  }, {
13459
- _v$29: void 0,
13460
- _v$30: void 0,
13461
- _v$31: void 0
14314
+ _v$33: void 0,
14315
+ _v$34: void 0,
14316
+ _v$35: void 0
13462
14317
  });
13463
- return _el$76;
14318
+ return _el$86;
13464
14319
  }
13465
14320
  }), null);
13466
- insert(_el$64, createComponent(Show, {
14321
+ insert(_el$74, createComponent(Show, {
13467
14322
  get when() {
13468
14323
  return !(errorTypes().length === 0 || queryStatus() === "error");
13469
14324
  },
13470
14325
  get children() {
13471
- const _el$79 = _tmpl$232(), _el$80 = _el$79.firstChild, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling; _el$82.firstChild;
13472
- _el$82.addEventListener("change", (e2) => {
14326
+ const _el$89 = _tmpl$27(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling, _el$92 = _el$91.nextSibling; _el$92.firstChild;
14327
+ _el$92.addEventListener("change", (e2) => {
13473
14328
  const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
13474
14329
  triggerError(errorType);
13475
14330
  });
13476
- insert(_el$82, createComponent(For, {
14331
+ insert(_el$92, createComponent(For, {
13477
14332
  get each() {
13478
14333
  return errorTypes();
13479
14334
  },
13480
14335
  children: (errorType) => (() => {
13481
- const _el$88 = _tmpl$25();
13482
- insert(_el$88, () => errorType.name);
13483
- createRenderEffect(() => _el$88.value = errorType.name);
13484
- return _el$88;
14336
+ const _el$98 = _tmpl$29();
14337
+ insert(_el$98, () => errorType.name);
14338
+ createRenderEffect(() => _el$98.value = errorType.name);
14339
+ return _el$98;
13485
14340
  })()
13486
14341
  }), null);
13487
- insert(_el$79, createComponent(ChevronDown, {}), null);
14342
+ insert(_el$89, createComponent(ChevronDown, {}), null);
13488
14343
  createRenderEffect((_p$) => {
13489
- const _v$32 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$33 = u`
14344
+ const _v$36 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$37 = u`
13490
14345
  background-color: ${tokens.colors.red[400]};
13491
- `, _v$34 = queryStatus() === "pending";
13492
- _v$32 !== _p$._v$32 && className(_el$79, _p$._v$32 = _v$32);
13493
- _v$33 !== _p$._v$33 && className(_el$80, _p$._v$33 = _v$33);
13494
- _v$34 !== _p$._v$34 && (_el$82.disabled = _p$._v$34 = _v$34);
14346
+ `, _v$38 = queryStatus() === "pending";
14347
+ _v$36 !== _p$._v$36 && className(_el$89, _p$._v$36 = _v$36);
14348
+ _v$37 !== _p$._v$37 && className(_el$90, _p$._v$37 = _v$37);
14349
+ _v$38 !== _p$._v$38 && (_el$92.disabled = _p$._v$38 = _v$38);
13495
14350
  return _p$;
13496
14351
  }, {
13497
- _v$32: void 0,
13498
- _v$33: void 0,
13499
- _v$34: void 0
14352
+ _v$36: void 0,
14353
+ _v$37: void 0,
14354
+ _v$38: void 0
13500
14355
  });
13501
- return _el$79;
14356
+ return _el$89;
13502
14357
  }
13503
14358
  }), null);
13504
- _el$85.style.setProperty("padding", "0.5rem");
13505
- insert(_el$85, createComponent(Explorer, {
14359
+ _el$95.style.setProperty("padding", "0.5rem");
14360
+ insert(_el$95, createComponent(Explorer, {
13506
14361
  label: "Data",
13507
14362
  defaultExpanded: ["Data"],
13508
14363
  get value() {
@@ -13513,8 +14368,8 @@ var init_Devtools = __esm({
13513
14368
  return activeQuery();
13514
14369
  }
13515
14370
  }));
13516
- _el$87.style.setProperty("padding", "0.5rem");
13517
- insert(_el$87, createComponent(Explorer, {
14371
+ _el$97.style.setProperty("padding", "0.5rem");
14372
+ insert(_el$97, createComponent(Explorer, {
13518
14373
  label: "Query",
13519
14374
  defaultExpanded: ["Query", "queryKey"],
13520
14375
  get value() {
@@ -13522,56 +14377,52 @@ var init_Devtools = __esm({
13522
14377
  }
13523
14378
  }));
13524
14379
  createRenderEffect((_p$) => {
13525
- const _v$35 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$36 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$37 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$38 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$39 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$40 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$41 = clsx(u`
14380
+ 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`
13526
14381
  color: ${t2(colors.blue[600], colors.blue[400])};
13527
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$42 = statusLabel() === "fetching", _v$43 = u`
14382
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$46 = statusLabel() === "fetching", _v$47 = u`
13528
14383
  background-color: ${t2(colors.blue[600], colors.blue[400])};
13529
- `, _v$44 = clsx(u`
14384
+ `, _v$48 = clsx(u`
13530
14385
  color: ${t2(colors.yellow[600], colors.yellow[400])};
13531
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$45 = queryStatus() === "pending", _v$46 = u`
14386
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$49 = queryStatus() === "pending", _v$50 = u`
13532
14387
  background-color: ${t2(colors.yellow[600], colors.yellow[400])};
13533
- `, _v$47 = clsx(u`
14388
+ `, _v$51 = clsx(u`
13534
14389
  color: ${t2(colors.gray[600], colors.gray[300])};
13535
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$48 = queryStatus() === "pending", _v$49 = u`
14390
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$52 = queryStatus() === "pending", _v$53 = u`
13536
14391
  background-color: ${t2(colors.gray[600], colors.gray[400])};
13537
- `, _v$50 = clsx(u`
14392
+ `, _v$54 = clsx(u`
13538
14393
  color: ${t2(colors.pink[500], colors.pink[400])};
13539
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$51 = statusLabel() === "fetching", _v$52 = u`
14394
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$55 = statusLabel() === "fetching", _v$56 = u`
13540
14395
  background-color: ${t2(colors.pink[500], colors.pink[400])};
13541
- `, _v$53 = clsx(u`
14396
+ `, _v$57 = clsx(u`
13542
14397
  color: ${t2(colors.cyan[500], colors.cyan[400])};
13543
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$54 = restoringLoading(), _v$55 = u`
14398
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$58 = restoringLoading(), _v$59 = u`
13544
14399
  background-color: ${t2(colors.cyan[500], colors.cyan[400])};
13545
- `, _v$56 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$57 = clsx(styles().detailsHeader, "tsqd-query-details-header");
13546
- _v$35 !== _p$._v$35 && className(_el$50, _p$._v$35 = _v$35);
13547
- _v$36 !== _p$._v$36 && className(_el$51, _p$._v$36 = _v$36);
13548
- _v$37 !== _p$._v$37 && className(_el$52, _p$._v$37 = _v$37);
13549
- _v$38 !== _p$._v$38 && className(_el$56, _p$._v$38 = _v$38);
13550
- _v$39 !== _p$._v$39 && className(_el$63, _p$._v$39 = _v$39);
13551
- _v$40 !== _p$._v$40 && className(_el$64, _p$._v$40 = _v$40);
13552
- _v$41 !== _p$._v$41 && className(_el$65, _p$._v$41 = _v$41);
13553
- _v$42 !== _p$._v$42 && (_el$65.disabled = _p$._v$42 = _v$42);
13554
- _v$43 !== _p$._v$43 && className(_el$66, _p$._v$43 = _v$43);
13555
- _v$44 !== _p$._v$44 && className(_el$67, _p$._v$44 = _v$44);
13556
- _v$45 !== _p$._v$45 && (_el$67.disabled = _p$._v$45 = _v$45);
13557
- _v$46 !== _p$._v$46 && className(_el$68, _p$._v$46 = _v$46);
13558
- _v$47 !== _p$._v$47 && className(_el$69, _p$._v$47 = _v$47);
13559
- _v$48 !== _p$._v$48 && (_el$69.disabled = _p$._v$48 = _v$48);
13560
- _v$49 !== _p$._v$49 && className(_el$70, _p$._v$49 = _v$49);
13561
- _v$50 !== _p$._v$50 && className(_el$71, _p$._v$50 = _v$50);
13562
- _v$51 !== _p$._v$51 && (_el$71.disabled = _p$._v$51 = _v$51);
13563
- _v$52 !== _p$._v$52 && className(_el$72, _p$._v$52 = _v$52);
13564
- _v$53 !== _p$._v$53 && className(_el$73, _p$._v$53 = _v$53);
13565
- _v$54 !== _p$._v$54 && (_el$73.disabled = _p$._v$54 = _v$54);
13566
- _v$55 !== _p$._v$55 && className(_el$74, _p$._v$55 = _v$55);
13567
- _v$56 !== _p$._v$56 && className(_el$84, _p$._v$56 = _v$56);
13568
- _v$57 !== _p$._v$57 && className(_el$86, _p$._v$57 = _v$57);
14400
+ `, _v$60 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$61 = clsx(styles().detailsHeader, "tsqd-query-details-header");
14401
+ _v$39 !== _p$._v$39 && className(_el$60, _p$._v$39 = _v$39);
14402
+ _v$40 !== _p$._v$40 && className(_el$61, _p$._v$40 = _v$40);
14403
+ _v$41 !== _p$._v$41 && className(_el$62, _p$._v$41 = _v$41);
14404
+ _v$42 !== _p$._v$42 && className(_el$66, _p$._v$42 = _v$42);
14405
+ _v$43 !== _p$._v$43 && className(_el$73, _p$._v$43 = _v$43);
14406
+ _v$44 !== _p$._v$44 && className(_el$74, _p$._v$44 = _v$44);
14407
+ _v$45 !== _p$._v$45 && className(_el$75, _p$._v$45 = _v$45);
14408
+ _v$46 !== _p$._v$46 && (_el$75.disabled = _p$._v$46 = _v$46);
14409
+ _v$47 !== _p$._v$47 && className(_el$76, _p$._v$47 = _v$47);
14410
+ _v$48 !== _p$._v$48 && className(_el$77, _p$._v$48 = _v$48);
14411
+ _v$49 !== _p$._v$49 && (_el$77.disabled = _p$._v$49 = _v$49);
14412
+ _v$50 !== _p$._v$50 && className(_el$78, _p$._v$50 = _v$50);
14413
+ _v$51 !== _p$._v$51 && className(_el$79, _p$._v$51 = _v$51);
14414
+ _v$52 !== _p$._v$52 && (_el$79.disabled = _p$._v$52 = _v$52);
14415
+ _v$53 !== _p$._v$53 && className(_el$80, _p$._v$53 = _v$53);
14416
+ _v$54 !== _p$._v$54 && className(_el$81, _p$._v$54 = _v$54);
14417
+ _v$55 !== _p$._v$55 && (_el$81.disabled = _p$._v$55 = _v$55);
14418
+ _v$56 !== _p$._v$56 && className(_el$82, _p$._v$56 = _v$56);
14419
+ _v$57 !== _p$._v$57 && className(_el$83, _p$._v$57 = _v$57);
14420
+ _v$58 !== _p$._v$58 && (_el$83.disabled = _p$._v$58 = _v$58);
14421
+ _v$59 !== _p$._v$59 && className(_el$84, _p$._v$59 = _v$59);
14422
+ _v$60 !== _p$._v$60 && className(_el$94, _p$._v$60 = _v$60);
14423
+ _v$61 !== _p$._v$61 && className(_el$96, _p$._v$61 = _v$61);
13569
14424
  return _p$;
13570
14425
  }, {
13571
- _v$35: void 0,
13572
- _v$36: void 0,
13573
- _v$37: void 0,
13574
- _v$38: void 0,
13575
14426
  _v$39: void 0,
13576
14427
  _v$40: void 0,
13577
14428
  _v$41: void 0,
@@ -13590,27 +14441,160 @@ var init_Devtools = __esm({
13590
14441
  _v$54: void 0,
13591
14442
  _v$55: void 0,
13592
14443
  _v$56: void 0,
13593
- _v$57: void 0
14444
+ _v$57: void 0,
14445
+ _v$58: void 0,
14446
+ _v$59: void 0,
14447
+ _v$60: void 0,
14448
+ _v$61: void 0
13594
14449
  });
13595
- return _el$50;
14450
+ return _el$60;
14451
+ }
14452
+ });
14453
+ };
14454
+ MutationDetails = () => {
14455
+ const theme = useTheme();
14456
+ const styles = createMemo(() => {
14457
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
14458
+ });
14459
+ const {
14460
+ colors
14461
+ } = tokens;
14462
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
14463
+ const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
14464
+ const mutations = mutationCache().getAll();
14465
+ const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
14466
+ if (!mutation)
14467
+ return false;
14468
+ return mutation.state.isPaused;
14469
+ });
14470
+ const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
14471
+ const mutations = mutationCache().getAll();
14472
+ const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
14473
+ if (!mutation)
14474
+ return "idle";
14475
+ return mutation.state.status;
14476
+ });
14477
+ const color = createMemo(() => getMutationStatusColor({
14478
+ isPaused: isPaused(),
14479
+ status: status()
14480
+ }));
14481
+ const activeMutation = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().find((mutation) => mutation.mutationId === selectedMutationId()), false);
14482
+ const getQueryStatusColors = () => {
14483
+ if (color() === "gray") {
14484
+ return u`
14485
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
14486
+ color: ${t2(colors[color()][700], colors[color()][300])};
14487
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
14488
+ `;
14489
+ }
14490
+ return u`
14491
+ background-color: ${t2(colors[color()][100], colors[color()][900])};
14492
+ color: ${t2(colors[color()][700], colors[color()][300])};
14493
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
14494
+ `;
14495
+ };
14496
+ return createComponent(Show, {
14497
+ get when() {
14498
+ return activeMutation();
14499
+ },
14500
+ get children() {
14501
+ 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;
14502
+ insert(_el$104, createComponent(Show, {
14503
+ get when() {
14504
+ return activeMutation().options.mutationKey;
14505
+ },
14506
+ fallback: "No mutationKey found",
14507
+ get children() {
14508
+ return displayValue(activeMutation().options.mutationKey, true);
14509
+ }
14510
+ }));
14511
+ insert(_el$105, createComponent(Show, {
14512
+ get when() {
14513
+ return color() === "purple";
14514
+ },
14515
+ children: "pending"
14516
+ }), null);
14517
+ insert(_el$105, createComponent(Show, {
14518
+ get when() {
14519
+ return color() !== "purple";
14520
+ },
14521
+ get children() {
14522
+ return status();
14523
+ }
14524
+ }), null);
14525
+ insert(_el$108, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
14526
+ _el$110.style.setProperty("padding", "0.5rem");
14527
+ insert(_el$110, createComponent(Explorer, {
14528
+ label: "Variables",
14529
+ defaultExpanded: ["Variables"],
14530
+ get value() {
14531
+ return activeMutation().state.variables;
14532
+ }
14533
+ }));
14534
+ _el$112.style.setProperty("padding", "0.5rem");
14535
+ insert(_el$112, createComponent(Explorer, {
14536
+ label: "Context",
14537
+ defaultExpanded: ["Context"],
14538
+ get value() {
14539
+ return activeMutation().state.context;
14540
+ }
14541
+ }));
14542
+ _el$114.style.setProperty("padding", "0.5rem");
14543
+ insert(_el$114, createComponent(Explorer, {
14544
+ label: "Data",
14545
+ defaultExpanded: ["Data"],
14546
+ get value() {
14547
+ return activeMutation().state.data;
14548
+ }
14549
+ }));
14550
+ _el$116.style.setProperty("padding", "0.5rem");
14551
+ insert(_el$116, createComponent(Explorer, {
14552
+ label: "Mutation",
14553
+ defaultExpanded: ["Mutation"],
14554
+ get value() {
14555
+ return activeMutation();
14556
+ }
14557
+ }));
14558
+ createRenderEffect((_p$) => {
14559
+ 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");
14560
+ _v$62 !== _p$._v$62 && className(_el$99, _p$._v$62 = _v$62);
14561
+ _v$63 !== _p$._v$63 && className(_el$100, _p$._v$63 = _v$63);
14562
+ _v$64 !== _p$._v$64 && className(_el$101, _p$._v$64 = _v$64);
14563
+ _v$65 !== _p$._v$65 && className(_el$105, _p$._v$65 = _v$65);
14564
+ _v$66 !== _p$._v$66 && className(_el$109, _p$._v$66 = _v$66);
14565
+ _v$67 !== _p$._v$67 && className(_el$111, _p$._v$67 = _v$67);
14566
+ _v$68 !== _p$._v$68 && className(_el$113, _p$._v$68 = _v$68);
14567
+ _v$69 !== _p$._v$69 && className(_el$115, _p$._v$69 = _v$69);
14568
+ return _p$;
14569
+ }, {
14570
+ _v$62: void 0,
14571
+ _v$63: void 0,
14572
+ _v$64: void 0,
14573
+ _v$65: void 0,
14574
+ _v$66: void 0,
14575
+ _v$67: void 0,
14576
+ _v$68: void 0,
14577
+ _v$69: void 0
14578
+ });
14579
+ return _el$99;
13596
14580
  }
13597
14581
  });
13598
14582
  };
13599
- signalsMap = /* @__PURE__ */ new Map();
14583
+ queryCacheMap = /* @__PURE__ */ new Map();
13600
14584
  setupQueryCacheSubscription = () => {
13601
14585
  const queryCache = createMemo(() => {
13602
14586
  const client = useQueryDevtoolsContext().client;
13603
14587
  return client.getQueryCache();
13604
14588
  });
13605
14589
  const unsub = queryCache().subscribe(() => {
13606
- for (const [callback, setter] of signalsMap.entries()) {
14590
+ for (const [callback, setter] of queryCacheMap.entries()) {
13607
14591
  queueMicrotask(() => {
13608
14592
  setter(callback(queryCache));
13609
14593
  });
13610
14594
  }
13611
14595
  });
13612
14596
  onCleanup(() => {
13613
- signalsMap.clear();
14597
+ queryCacheMap.clear();
13614
14598
  unsub();
13615
14599
  });
13616
14600
  return unsub;
@@ -13626,9 +14610,45 @@ var init_Devtools = __esm({
13626
14610
  createEffect(() => {
13627
14611
  setValue(callback(queryCache));
13628
14612
  });
13629
- signalsMap.set(callback, setValue);
14613
+ queryCacheMap.set(callback, setValue);
14614
+ onCleanup(() => {
14615
+ queryCacheMap.delete(callback);
14616
+ });
14617
+ return value;
14618
+ };
14619
+ mutationCacheMap = /* @__PURE__ */ new Map();
14620
+ setupMutationCacheSubscription = () => {
14621
+ const mutationCache = createMemo(() => {
14622
+ const client = useQueryDevtoolsContext().client;
14623
+ return client.getMutationCache();
14624
+ });
14625
+ const unsub = mutationCache().subscribe(() => {
14626
+ for (const [callback, setter] of mutationCacheMap.entries()) {
14627
+ queueMicrotask(() => {
14628
+ setter(callback(mutationCache));
14629
+ });
14630
+ }
14631
+ });
14632
+ onCleanup(() => {
14633
+ mutationCacheMap.clear();
14634
+ unsub();
14635
+ });
14636
+ return unsub;
14637
+ };
14638
+ createSubscribeToMutationCacheBatcher = (callback, equalityCheck = true) => {
14639
+ const mutationCache = createMemo(() => {
14640
+ const client = useQueryDevtoolsContext().client;
14641
+ return client.getMutationCache();
14642
+ });
14643
+ const [value, setValue] = createSignal(callback(mutationCache), !equalityCheck ? {
14644
+ equals: false
14645
+ } : void 0);
14646
+ createEffect(() => {
14647
+ setValue(callback(mutationCache));
14648
+ });
14649
+ mutationCacheMap.set(callback, setValue);
13630
14650
  onCleanup(() => {
13631
- signalsMap.delete(callback);
14651
+ mutationCacheMap.delete(callback);
13632
14652
  });
13633
14653
  return value;
13634
14654
  };
@@ -13910,7 +14930,7 @@ var init_Devtools = __esm({
13910
14930
  justify-content: space-between;
13911
14931
  align-items: center;
13912
14932
  padding: ${tokens.size[2]} ${tokens.size[2.5]};
13913
- gap: ${tokens.size[3]};
14933
+ gap: ${tokens.size[2.5]};
13914
14934
  border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
13915
14935
  align-items: center;
13916
14936
  & > button {
@@ -13921,9 +14941,20 @@ var init_Devtools = __esm({
13921
14941
  gap: ${size2[0.5]};
13922
14942
  flex-direction: column;
13923
14943
  }
14944
+ `,
14945
+ logoAndToggleContainer: u`
14946
+ display: flex;
14947
+ gap: ${tokens.size[3]};
14948
+ align-items: center;
13924
14949
  `,
13925
14950
  logo: u`
13926
14951
  cursor: pointer;
14952
+ display: flex;
14953
+ flex-direction: column;
14954
+ background-color: transparent;
14955
+ border: none;
14956
+ gap: ${tokens.size[0.5]};
14957
+ padding: 0px;
13927
14958
  &:hover {
13928
14959
  opacity: 0.7;
13929
14960
  }
@@ -14295,6 +15326,8 @@ var init_Devtools = __esm({
14295
15326
 
14296
15327
  & pre {
14297
15328
  margin: 0;
15329
+ display: flex;
15330
+ align-items: center;
14298
15331
  }
14299
15332
  `,
14300
15333
  queryDetailsStatus: u`
@@ -14474,6 +15507,56 @@ var init_Devtools = __esm({
14474
15507
  &:hover {
14475
15508
  background-color: ${t2(colors.purple[100], colors.purple[900])};
14476
15509
  }
15510
+ `,
15511
+ viewToggle: u`
15512
+ border-radius: ${tokens.border.radius.sm};
15513
+ background-color: ${t2(colors.gray[200], colors.darkGray[600])};
15514
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
15515
+ display: flex;
15516
+ padding: 0;
15517
+ font-size: ${font.size.xs};
15518
+ color: ${t2(colors.gray[700], colors.gray[300])};
15519
+ overflow: hidden;
15520
+
15521
+ &:has(:focus-visible) {
15522
+ outline: 2px solid ${colors.blue[800]};
15523
+ }
15524
+
15525
+ & .tsqd-radio-toggle {
15526
+ opacity: 0.5;
15527
+ display: flex;
15528
+ & label {
15529
+ display: flex;
15530
+ align-items: center;
15531
+ cursor: pointer;
15532
+ line-height: ${font.lineHeight.md};
15533
+ }
15534
+
15535
+ & label:hover {
15536
+ background-color: ${t2(colors.gray[100], colors.darkGray[500])};
15537
+ }
15538
+ }
15539
+
15540
+ & > [data-checked] {
15541
+ opacity: 1;
15542
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
15543
+ & label:hover {
15544
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
15545
+ }
15546
+ }
15547
+
15548
+ & .tsqd-radio-toggle:first-child {
15549
+ & label {
15550
+ padding: 0 ${tokens.size[1.5]} 0 ${tokens.size[2]};
15551
+ }
15552
+ border-right: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
15553
+ }
15554
+
15555
+ & .tsqd-radio-toggle:nth-child(2) {
15556
+ & label {
15557
+ padding: 0 ${tokens.size[2]} 0 ${tokens.size[1.5]};
15558
+ }
15559
+ }
14477
15560
  `
14478
15561
  };
14479
15562
  };