@tanstack/query-devtools 5.0.5 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Devtools/{Y2E2LEWB.jsx → 7FRXYIEA.jsx} +1285 -228
- package/build/Devtools/{B2H37NSB.js → HESZYUBG.js} +1578 -468
- package/build/Devtools/{7SMWYMBY.jsx → KWB27UDF.jsx} +1285 -228
- package/build/Devtools/{3Y5CBXUA.js → MVUALMJ4.js} +1578 -468
- package/build/chunk/{AHAJNSNO.jsx → JRAMSUCV.jsx} +5 -0
- package/build/dev.cjs +1590 -473
- package/build/dev.js +1 -1
- package/build/dev.jsx +2 -2
- package/build/index.cjs +1590 -473
- package/build/index.js +1 -1
- package/build/index.jsx +2 -2
- package/package.json +1 -1
- package/src/Devtools.tsx +819 -131
- package/src/Explorer.tsx +5 -5
- package/src/icons/index.tsx +89 -0
- package/src/theme.ts +82 -82
- package/src/utils.tsx +46 -1
package/build/dev.cjs
CHANGED
|
@@ -6127,6 +6127,29 @@ function createFocusScope(props, ref) {
|
|
|
6127
6127
|
});
|
|
6128
6128
|
});
|
|
6129
6129
|
}
|
|
6130
|
+
function createFormResetListener(element, handler) {
|
|
6131
|
+
createEffect(on(element, (element2) => {
|
|
6132
|
+
if (element2 == null) {
|
|
6133
|
+
return;
|
|
6134
|
+
}
|
|
6135
|
+
const form = getClosestForm(element2);
|
|
6136
|
+
if (form == null) {
|
|
6137
|
+
return;
|
|
6138
|
+
}
|
|
6139
|
+
form.addEventListener("reset", handler, {
|
|
6140
|
+
passive: true
|
|
6141
|
+
});
|
|
6142
|
+
onCleanup(() => {
|
|
6143
|
+
form.removeEventListener("reset", handler);
|
|
6144
|
+
});
|
|
6145
|
+
}));
|
|
6146
|
+
}
|
|
6147
|
+
function getClosestForm(element) {
|
|
6148
|
+
return isFormElement(element) ? element.form : element.closest("form");
|
|
6149
|
+
}
|
|
6150
|
+
function isFormElement(element) {
|
|
6151
|
+
return element.matches("textarea, input, select, button");
|
|
6152
|
+
}
|
|
6130
6153
|
function createHideOutside(props) {
|
|
6131
6154
|
createEffect(() => {
|
|
6132
6155
|
if (access(props.isDisabled)) {
|
|
@@ -6556,6 +6579,70 @@ function createToggleState(props = {}) {
|
|
|
6556
6579
|
toggle
|
|
6557
6580
|
};
|
|
6558
6581
|
}
|
|
6582
|
+
function createFormControl(props) {
|
|
6583
|
+
const defaultId = `form-control-${createUniqueId()}`;
|
|
6584
|
+
props = mergeDefaultProps({
|
|
6585
|
+
id: defaultId
|
|
6586
|
+
}, props);
|
|
6587
|
+
const [labelId, setLabelId] = createSignal();
|
|
6588
|
+
const [fieldId, setFieldId] = createSignal();
|
|
6589
|
+
const [descriptionId, setDescriptionId] = createSignal();
|
|
6590
|
+
const [errorMessageId, setErrorMessageId] = createSignal();
|
|
6591
|
+
const getAriaLabelledBy = (fieldId2, fieldAriaLabel, fieldAriaLabelledBy) => {
|
|
6592
|
+
const hasAriaLabelledBy = fieldAriaLabelledBy != null || labelId() != null;
|
|
6593
|
+
return [
|
|
6594
|
+
fieldAriaLabelledBy,
|
|
6595
|
+
labelId(),
|
|
6596
|
+
// If there is both an aria-label and aria-labelledby, add the field itself has an aria-labelledby
|
|
6597
|
+
hasAriaLabelledBy && fieldAriaLabel != null ? fieldId2 : void 0
|
|
6598
|
+
].filter(Boolean).join(" ") || void 0;
|
|
6599
|
+
};
|
|
6600
|
+
const getAriaDescribedBy = (fieldAriaDescribedBy) => {
|
|
6601
|
+
return [
|
|
6602
|
+
descriptionId(),
|
|
6603
|
+
// Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA.
|
|
6604
|
+
// See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
|
|
6605
|
+
errorMessageId(),
|
|
6606
|
+
fieldAriaDescribedBy
|
|
6607
|
+
].filter(Boolean).join(" ") || void 0;
|
|
6608
|
+
};
|
|
6609
|
+
const dataset = createMemo(() => ({
|
|
6610
|
+
"data-valid": access(props.validationState) === "valid" ? "" : void 0,
|
|
6611
|
+
"data-invalid": access(props.validationState) === "invalid" ? "" : void 0,
|
|
6612
|
+
"data-required": access(props.required) ? "" : void 0,
|
|
6613
|
+
"data-disabled": access(props.disabled) ? "" : void 0,
|
|
6614
|
+
"data-readonly": access(props.readOnly) ? "" : void 0
|
|
6615
|
+
}));
|
|
6616
|
+
const formControlContext = {
|
|
6617
|
+
name: () => access(props.name) ?? access(props.id),
|
|
6618
|
+
dataset,
|
|
6619
|
+
validationState: () => access(props.validationState),
|
|
6620
|
+
isRequired: () => access(props.required),
|
|
6621
|
+
isDisabled: () => access(props.disabled),
|
|
6622
|
+
isReadOnly: () => access(props.readOnly),
|
|
6623
|
+
labelId,
|
|
6624
|
+
fieldId,
|
|
6625
|
+
descriptionId,
|
|
6626
|
+
errorMessageId,
|
|
6627
|
+
getAriaLabelledBy,
|
|
6628
|
+
getAriaDescribedBy,
|
|
6629
|
+
generateId: createGenerateId(() => access(props.id)),
|
|
6630
|
+
registerLabel: createRegisterId(setLabelId),
|
|
6631
|
+
registerField: createRegisterId(setFieldId),
|
|
6632
|
+
registerDescription: createRegisterId(setDescriptionId),
|
|
6633
|
+
registerErrorMessage: createRegisterId(setErrorMessageId)
|
|
6634
|
+
};
|
|
6635
|
+
return {
|
|
6636
|
+
formControlContext
|
|
6637
|
+
};
|
|
6638
|
+
}
|
|
6639
|
+
function useFormControlContext() {
|
|
6640
|
+
const context = useContext(FormControlContext);
|
|
6641
|
+
if (context === void 0) {
|
|
6642
|
+
throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");
|
|
6643
|
+
}
|
|
6644
|
+
return context;
|
|
6645
|
+
}
|
|
6559
6646
|
function Polymorphic(props) {
|
|
6560
6647
|
const [local, others] = splitProps(props, ["asChild", "as", "children"]);
|
|
6561
6648
|
if (!local.asChild) {
|
|
@@ -6605,6 +6692,60 @@ function combineProps2(baseProps, overrideProps) {
|
|
|
6605
6692
|
reverseEventHandlers: true
|
|
6606
6693
|
});
|
|
6607
6694
|
}
|
|
6695
|
+
function FormControlDescription(props) {
|
|
6696
|
+
const context = useFormControlContext();
|
|
6697
|
+
props = mergeDefaultProps({
|
|
6698
|
+
id: context.generateId("description")
|
|
6699
|
+
}, props);
|
|
6700
|
+
createEffect(() => onCleanup(context.registerDescription(props.id)));
|
|
6701
|
+
return createComponent(Polymorphic, mergeProps({
|
|
6702
|
+
as: "div"
|
|
6703
|
+
}, () => context.dataset(), props));
|
|
6704
|
+
}
|
|
6705
|
+
function FormControlErrorMessage(props) {
|
|
6706
|
+
const context = useFormControlContext();
|
|
6707
|
+
props = mergeDefaultProps({
|
|
6708
|
+
id: context.generateId("error-message")
|
|
6709
|
+
}, props);
|
|
6710
|
+
const [local, others] = splitProps(props, ["forceMount"]);
|
|
6711
|
+
const isInvalid = () => context.validationState() === "invalid";
|
|
6712
|
+
createEffect(() => {
|
|
6713
|
+
if (!isInvalid()) {
|
|
6714
|
+
return;
|
|
6715
|
+
}
|
|
6716
|
+
onCleanup(context.registerErrorMessage(others.id));
|
|
6717
|
+
});
|
|
6718
|
+
return createComponent(Show, {
|
|
6719
|
+
get when() {
|
|
6720
|
+
return local.forceMount || isInvalid();
|
|
6721
|
+
},
|
|
6722
|
+
get children() {
|
|
6723
|
+
return createComponent(Polymorphic, mergeProps({
|
|
6724
|
+
as: "div"
|
|
6725
|
+
}, () => context.dataset(), others));
|
|
6726
|
+
}
|
|
6727
|
+
});
|
|
6728
|
+
}
|
|
6729
|
+
function FormControlLabel(props) {
|
|
6730
|
+
let ref;
|
|
6731
|
+
const context = useFormControlContext();
|
|
6732
|
+
props = mergeDefaultProps({
|
|
6733
|
+
id: context.generateId("label")
|
|
6734
|
+
}, props);
|
|
6735
|
+
const [local, others] = splitProps(props, ["ref"]);
|
|
6736
|
+
const tagName = createTagName(() => ref, () => "label");
|
|
6737
|
+
createEffect(() => onCleanup(context.registerLabel(others.id)));
|
|
6738
|
+
return createComponent(Polymorphic, mergeProps({
|
|
6739
|
+
as: "label",
|
|
6740
|
+
ref(r$) {
|
|
6741
|
+
const _ref$ = mergeRefs((el) => ref = el, local.ref);
|
|
6742
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
6743
|
+
},
|
|
6744
|
+
get ["for"]() {
|
|
6745
|
+
return createMemo(() => tagName() === "label")() ? context.fieldId() : void 0;
|
|
6746
|
+
}
|
|
6747
|
+
}, () => context.dataset(), others));
|
|
6748
|
+
}
|
|
6608
6749
|
function isRTL2(locale) {
|
|
6609
6750
|
if (Intl.Locale) {
|
|
6610
6751
|
const script = new Intl.Locale(locale).maximize().script ?? "";
|
|
@@ -9052,7 +9193,316 @@ function DropdownMenuRoot(props) {
|
|
|
9052
9193
|
}, props);
|
|
9053
9194
|
return createComponent(MenuRoot, props);
|
|
9054
9195
|
}
|
|
9055
|
-
|
|
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
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
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",
|
|
@@ -10208,35 +10677,35 @@ var init_theme = __esm({
|
|
|
10208
10677
|
},
|
|
10209
10678
|
font: {
|
|
10210
10679
|
size: {
|
|
10211
|
-
"2xs": "0.
|
|
10212
|
-
xs: "0.
|
|
10213
|
-
sm: "0.
|
|
10214
|
-
md: "
|
|
10215
|
-
lg: "1.
|
|
10216
|
-
xl: "1.
|
|
10217
|
-
"2xl": "1.
|
|
10218
|
-
"3xl": "1.
|
|
10219
|
-
"4xl": "2.
|
|
10220
|
-
"5xl": "
|
|
10221
|
-
"6xl": "3.
|
|
10222
|
-
"7xl": "4.
|
|
10223
|
-
"8xl": "
|
|
10224
|
-
"9xl": "
|
|
10680
|
+
"2xs": "calc(var(--tsqd-font-size) * 0.625)",
|
|
10681
|
+
xs: "calc(var(--tsqd-font-size) * 0.75)",
|
|
10682
|
+
sm: "calc(var(--tsqd-font-size) * 0.875)",
|
|
10683
|
+
md: "var(--tsqd-font-size)",
|
|
10684
|
+
lg: "calc(var(--tsqd-font-size) * 1.125)",
|
|
10685
|
+
xl: "calc(var(--tsqd-font-size) * 1.25)",
|
|
10686
|
+
"2xl": "calc(var(--tsqd-font-size) * 1.5)",
|
|
10687
|
+
"3xl": "calc(var(--tsqd-font-size) * 1.875)",
|
|
10688
|
+
"4xl": "calc(var(--tsqd-font-size) * 2.25)",
|
|
10689
|
+
"5xl": "calc(var(--tsqd-font-size) * 3)",
|
|
10690
|
+
"6xl": "calc(var(--tsqd-font-size) * 3.75)",
|
|
10691
|
+
"7xl": "calc(var(--tsqd-font-size) * 4.5)",
|
|
10692
|
+
"8xl": "calc(var(--tsqd-font-size) * 6)",
|
|
10693
|
+
"9xl": "calc(var(--tsqd-font-size) * 8)"
|
|
10225
10694
|
},
|
|
10226
10695
|
lineHeight: {
|
|
10227
|
-
xs: "
|
|
10228
|
-
sm: "1.
|
|
10229
|
-
md: "1.
|
|
10230
|
-
lg: "1.
|
|
10231
|
-
xl: "
|
|
10232
|
-
"2xl": "
|
|
10233
|
-
"3xl": "2.
|
|
10234
|
-
"4xl": "2.
|
|
10235
|
-
"5xl": "
|
|
10236
|
-
"6xl": "
|
|
10237
|
-
"7xl": "
|
|
10238
|
-
"8xl": "
|
|
10239
|
-
"9xl": "
|
|
10696
|
+
xs: "calc(var(--tsqd-font-size) * 1)",
|
|
10697
|
+
sm: "calc(var(--tsqd-font-size) * 1.25)",
|
|
10698
|
+
md: "calc(var(--tsqd-font-size) * 1.5)",
|
|
10699
|
+
lg: "calc(var(--tsqd-font-size) * 1.75)",
|
|
10700
|
+
xl: "calc(var(--tsqd-font-size) * 2)",
|
|
10701
|
+
"2xl": "calc(var(--tsqd-font-size) * 2.25)",
|
|
10702
|
+
"3xl": "calc(var(--tsqd-font-size) * 2.5)",
|
|
10703
|
+
"4xl": "calc(var(--tsqd-font-size) * 2.75)",
|
|
10704
|
+
"5xl": "calc(var(--tsqd-font-size) * 3)",
|
|
10705
|
+
"6xl": "calc(var(--tsqd-font-size) * 3.25)",
|
|
10706
|
+
"7xl": "calc(var(--tsqd-font-size) * 3.5)",
|
|
10707
|
+
"8xl": "calc(var(--tsqd-font-size) * 3.75)",
|
|
10708
|
+
"9xl": "calc(var(--tsqd-font-size) * 4)"
|
|
10240
10709
|
},
|
|
10241
10710
|
weight: {
|
|
10242
10711
|
thin: "100",
|
|
@@ -10261,55 +10730,55 @@ var init_theme = __esm({
|
|
|
10261
10730
|
border: {
|
|
10262
10731
|
radius: {
|
|
10263
10732
|
none: "0px",
|
|
10264
|
-
xs: "0.
|
|
10265
|
-
sm: "0.
|
|
10266
|
-
md: "0.
|
|
10267
|
-
lg: "0.
|
|
10268
|
-
xl: "0.
|
|
10269
|
-
"2xl": "
|
|
10270
|
-
"3xl": "1.
|
|
10733
|
+
xs: "calc(var(--tsqd-font-size) * 0.125)",
|
|
10734
|
+
sm: "calc(var(--tsqd-font-size) * 0.25)",
|
|
10735
|
+
md: "calc(var(--tsqd-font-size) * 0.375)",
|
|
10736
|
+
lg: "calc(var(--tsqd-font-size) * 0.5)",
|
|
10737
|
+
xl: "calc(var(--tsqd-font-size) * 0.75)",
|
|
10738
|
+
"2xl": "calc(var(--tsqd-font-size) * 1)",
|
|
10739
|
+
"3xl": "calc(var(--tsqd-font-size) * 1.5)",
|
|
10271
10740
|
full: "9999px"
|
|
10272
10741
|
}
|
|
10273
10742
|
},
|
|
10274
10743
|
size: {
|
|
10275
10744
|
0: "0px",
|
|
10276
|
-
0.25: "0.
|
|
10277
|
-
0.5: "0.
|
|
10278
|
-
1: "0.
|
|
10279
|
-
1.5: "0.
|
|
10280
|
-
2: "0.
|
|
10281
|
-
2.5: "0.
|
|
10282
|
-
3: "0.
|
|
10283
|
-
3.5: "0.
|
|
10284
|
-
4: "
|
|
10285
|
-
4.5: "1.
|
|
10286
|
-
5: "1.
|
|
10287
|
-
5.5: "1.
|
|
10288
|
-
6: "1.
|
|
10289
|
-
6.5: "1.
|
|
10290
|
-
7: "1.
|
|
10291
|
-
8: "
|
|
10292
|
-
9: "2.
|
|
10293
|
-
10: "2.
|
|
10294
|
-
11: "2.
|
|
10295
|
-
12: "
|
|
10296
|
-
14: "3.
|
|
10297
|
-
16: "
|
|
10298
|
-
20: "
|
|
10299
|
-
24: "
|
|
10300
|
-
28: "
|
|
10301
|
-
32: "
|
|
10302
|
-
36: "
|
|
10303
|
-
40: "
|
|
10304
|
-
44: "
|
|
10305
|
-
48: "
|
|
10306
|
-
52: "
|
|
10307
|
-
56: "
|
|
10308
|
-
60: "
|
|
10309
|
-
64: "
|
|
10310
|
-
72: "
|
|
10311
|
-
80: "
|
|
10312
|
-
96: "
|
|
10745
|
+
0.25: "calc(var(--tsqd-font-size) * 0.0625)",
|
|
10746
|
+
0.5: "calc(var(--tsqd-font-size) * 0.125)",
|
|
10747
|
+
1: "calc(var(--tsqd-font-size) * 0.25)",
|
|
10748
|
+
1.5: "calc(var(--tsqd-font-size) * 0.375)",
|
|
10749
|
+
2: "calc(var(--tsqd-font-size) * 0.5)",
|
|
10750
|
+
2.5: "calc(var(--tsqd-font-size) * 0.625)",
|
|
10751
|
+
3: "calc(var(--tsqd-font-size) * 0.75)",
|
|
10752
|
+
3.5: "calc(var(--tsqd-font-size) * 0.875)",
|
|
10753
|
+
4: "calc(var(--tsqd-font-size) * 1)",
|
|
10754
|
+
4.5: "calc(var(--tsqd-font-size) * 1.125)",
|
|
10755
|
+
5: "calc(var(--tsqd-font-size) * 1.25)",
|
|
10756
|
+
5.5: "calc(var(--tsqd-font-size) * 1.375)",
|
|
10757
|
+
6: "calc(var(--tsqd-font-size) * 1.5)",
|
|
10758
|
+
6.5: "calc(var(--tsqd-font-size) * 1.625)",
|
|
10759
|
+
7: "calc(var(--tsqd-font-size) * 1.75)",
|
|
10760
|
+
8: "calc(var(--tsqd-font-size) * 2)",
|
|
10761
|
+
9: "calc(var(--tsqd-font-size) * 2.25)",
|
|
10762
|
+
10: "calc(var(--tsqd-font-size) * 2.5)",
|
|
10763
|
+
11: "calc(var(--tsqd-font-size) * 2.75)",
|
|
10764
|
+
12: "calc(var(--tsqd-font-size) * 3)",
|
|
10765
|
+
14: "calc(var(--tsqd-font-size) * 3.5)",
|
|
10766
|
+
16: "calc(var(--tsqd-font-size) * 4)",
|
|
10767
|
+
20: "calc(var(--tsqd-font-size) * 5)",
|
|
10768
|
+
24: "calc(var(--tsqd-font-size) * 6)",
|
|
10769
|
+
28: "calc(var(--tsqd-font-size) * 7)",
|
|
10770
|
+
32: "calc(var(--tsqd-font-size) * 8)",
|
|
10771
|
+
36: "calc(var(--tsqd-font-size) * 9)",
|
|
10772
|
+
40: "calc(var(--tsqd-font-size) * 10)",
|
|
10773
|
+
44: "calc(var(--tsqd-font-size) * 11)",
|
|
10774
|
+
48: "calc(var(--tsqd-font-size) * 12)",
|
|
10775
|
+
52: "calc(var(--tsqd-font-size) * 13)",
|
|
10776
|
+
56: "calc(var(--tsqd-font-size) * 14)",
|
|
10777
|
+
60: "calc(var(--tsqd-font-size) * 15)",
|
|
10778
|
+
64: "calc(var(--tsqd-font-size) * 16)",
|
|
10779
|
+
72: "calc(var(--tsqd-font-size) * 18)",
|
|
10780
|
+
80: "calc(var(--tsqd-font-size) * 20)",
|
|
10781
|
+
96: "calc(var(--tsqd-font-size) * 24)"
|
|
10313
10782
|
},
|
|
10314
10783
|
shadow: Shadow,
|
|
10315
10784
|
zIndices: {
|
|
@@ -11450,10 +11919,16 @@ function getQueryStatusColor({
|
|
|
11450
11919
|
}) {
|
|
11451
11920
|
return queryState.fetchStatus === "fetching" ? "blue" : !observerCount ? "gray" : queryState.fetchStatus === "paused" ? "purple" : isStale ? "yellow" : "green";
|
|
11452
11921
|
}
|
|
11922
|
+
function getMutationStatusColor({
|
|
11923
|
+
status,
|
|
11924
|
+
isPaused
|
|
11925
|
+
}) {
|
|
11926
|
+
return isPaused ? "purple" : status === "error" ? "red" : status === "pending" ? "yellow" : status === "success" ? "green" : "gray";
|
|
11927
|
+
}
|
|
11453
11928
|
function getQueryStatusColorByLabel(label) {
|
|
11454
11929
|
return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
|
|
11455
11930
|
}
|
|
11456
|
-
var displayValue, getStatusRank, queryHashSort, dateSort, statusAndDateSort, sortFns, convertRemToPixels, getPreferredColorScheme, updateNestedDataByPath, deleteNestedDataByPath;
|
|
11931
|
+
var displayValue, getStatusRank, queryHashSort, dateSort, statusAndDateSort, sortFns, getMutationStatusRank, mutationDateSort, mutationStatusSort, mutationSortFns, convertRemToPixels, getPreferredColorScheme, updateNestedDataByPath, deleteNestedDataByPath;
|
|
11457
11932
|
var init_utils = __esm({
|
|
11458
11933
|
"src/utils.tsx"() {
|
|
11459
11934
|
init_esm2();
|
|
@@ -11478,6 +11953,18 @@ var init_utils = __esm({
|
|
|
11478
11953
|
"query hash": queryHashSort,
|
|
11479
11954
|
"last updated": dateSort
|
|
11480
11955
|
};
|
|
11956
|
+
getMutationStatusRank = (m) => m.state.isPaused ? 0 : m.state.status === "error" ? 2 : m.state.status === "pending" ? 1 : 3;
|
|
11957
|
+
mutationDateSort = (a2, b2) => a2.state.submittedAt < b2.state.submittedAt ? 1 : -1;
|
|
11958
|
+
mutationStatusSort = (a2, b2) => {
|
|
11959
|
+
if (getMutationStatusRank(a2) === getMutationStatusRank(b2)) {
|
|
11960
|
+
return mutationDateSort(a2, b2);
|
|
11961
|
+
}
|
|
11962
|
+
return getMutationStatusRank(a2) > getMutationStatusRank(b2) ? 1 : -1;
|
|
11963
|
+
};
|
|
11964
|
+
mutationSortFns = {
|
|
11965
|
+
status: mutationStatusSort,
|
|
11966
|
+
"last updated": mutationDateSort
|
|
11967
|
+
};
|
|
11481
11968
|
convertRemToPixels = (rem) => {
|
|
11482
11969
|
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
11483
11970
|
};
|
|
@@ -11662,92 +12149,104 @@ function Check(props) {
|
|
|
11662
12149
|
}
|
|
11663
12150
|
})];
|
|
11664
12151
|
}
|
|
12152
|
+
function CheckCircle() {
|
|
12153
|
+
return _tmpl$17();
|
|
12154
|
+
}
|
|
12155
|
+
function LoadingCircle() {
|
|
12156
|
+
return _tmpl$18();
|
|
12157
|
+
}
|
|
12158
|
+
function XCircle() {
|
|
12159
|
+
return _tmpl$19();
|
|
12160
|
+
}
|
|
12161
|
+
function PauseCircle() {
|
|
12162
|
+
return _tmpl$20();
|
|
12163
|
+
}
|
|
11665
12164
|
function TanstackLogo() {
|
|
11666
12165
|
const id = createUniqueId();
|
|
11667
12166
|
return (() => {
|
|
11668
|
-
const _el$
|
|
11669
|
-
setAttribute(_el$
|
|
11670
|
-
setAttribute(_el$
|
|
11671
|
-
setAttribute(_el$
|
|
11672
|
-
setAttribute(_el$
|
|
11673
|
-
setAttribute(_el$
|
|
11674
|
-
setAttribute(_el$
|
|
11675
|
-
setAttribute(_el$
|
|
11676
|
-
setAttribute(_el$
|
|
11677
|
-
setAttribute(_el$
|
|
11678
|
-
setAttribute(_el$
|
|
11679
|
-
setAttribute(_el$
|
|
11680
|
-
setAttribute(_el$
|
|
11681
|
-
setAttribute(_el$
|
|
11682
|
-
setAttribute(_el$
|
|
11683
|
-
setAttribute(_el$
|
|
11684
|
-
setAttribute(_el$
|
|
11685
|
-
setAttribute(_el$
|
|
11686
|
-
setAttribute(_el$
|
|
11687
|
-
setAttribute(_el$
|
|
11688
|
-
setAttribute(_el$
|
|
11689
|
-
setAttribute(_el$
|
|
11690
|
-
setAttribute(_el$
|
|
11691
|
-
setAttribute(_el$
|
|
11692
|
-
setAttribute(_el$
|
|
11693
|
-
setAttribute(_el$
|
|
11694
|
-
setAttribute(_el$
|
|
11695
|
-
setAttribute(_el$
|
|
11696
|
-
setAttribute(_el$
|
|
11697
|
-
setAttribute(_el$
|
|
11698
|
-
setAttribute(_el$
|
|
11699
|
-
setAttribute(_el$
|
|
11700
|
-
setAttribute(_el$
|
|
11701
|
-
setAttribute(_el$
|
|
11702
|
-
setAttribute(_el$
|
|
11703
|
-
setAttribute(_el$
|
|
11704
|
-
setAttribute(_el$
|
|
11705
|
-
setAttribute(_el$
|
|
11706
|
-
setAttribute(_el$
|
|
11707
|
-
setAttribute(_el$
|
|
11708
|
-
setAttribute(_el$
|
|
11709
|
-
setAttribute(_el$
|
|
11710
|
-
setAttribute(_el$
|
|
11711
|
-
setAttribute(_el$
|
|
11712
|
-
setAttribute(_el$
|
|
11713
|
-
setAttribute(_el$
|
|
11714
|
-
setAttribute(_el$
|
|
11715
|
-
setAttribute(_el$
|
|
11716
|
-
setAttribute(_el$
|
|
11717
|
-
setAttribute(_el$
|
|
11718
|
-
setAttribute(_el$
|
|
11719
|
-
setAttribute(_el$
|
|
11720
|
-
setAttribute(_el$
|
|
11721
|
-
setAttribute(_el$
|
|
11722
|
-
setAttribute(_el$
|
|
11723
|
-
setAttribute(_el$
|
|
11724
|
-
setAttribute(_el$
|
|
11725
|
-
setAttribute(_el$
|
|
11726
|
-
setAttribute(_el$
|
|
11727
|
-
setAttribute(_el$
|
|
11728
|
-
setAttribute(_el$
|
|
11729
|
-
setAttribute(_el$
|
|
11730
|
-
setAttribute(_el$
|
|
11731
|
-
setAttribute(_el$
|
|
11732
|
-
setAttribute(_el$
|
|
11733
|
-
setAttribute(_el$
|
|
11734
|
-
setAttribute(_el$
|
|
11735
|
-
setAttribute(_el$
|
|
11736
|
-
setAttribute(_el$
|
|
11737
|
-
setAttribute(_el$
|
|
11738
|
-
setAttribute(_el$
|
|
11739
|
-
setAttribute(_el$
|
|
11740
|
-
setAttribute(_el$
|
|
11741
|
-
setAttribute(_el$
|
|
11742
|
-
setAttribute(_el$
|
|
11743
|
-
setAttribute(_el$
|
|
11744
|
-
setAttribute(_el$
|
|
11745
|
-
setAttribute(_el$
|
|
11746
|
-
setAttribute(_el$
|
|
11747
|
-
return _el$
|
|
12167
|
+
const _el$27 = _tmpl$21(), _el$28 = _el$27.firstChild, _el$29 = _el$28.nextSibling, _el$30 = _el$29.nextSibling, _el$31 = _el$30.firstChild, _el$32 = _el$30.nextSibling, _el$33 = _el$32.firstChild, _el$34 = _el$32.nextSibling, _el$35 = _el$34.nextSibling, _el$36 = _el$35.firstChild, _el$37 = _el$35.nextSibling, _el$38 = _el$37.firstChild, _el$39 = _el$37.nextSibling, _el$40 = _el$39.nextSibling, _el$41 = _el$40.firstChild, _el$42 = _el$40.nextSibling, _el$43 = _el$42.firstChild, _el$44 = _el$42.nextSibling, _el$45 = _el$44.nextSibling, _el$46 = _el$45.firstChild, _el$47 = _el$45.nextSibling, _el$48 = _el$47.firstChild, _el$49 = _el$47.nextSibling, _el$50 = _el$49.nextSibling, _el$51 = _el$50.firstChild, _el$52 = _el$50.nextSibling, _el$53 = _el$52.firstChild, _el$54 = _el$52.nextSibling, _el$55 = _el$54.nextSibling, _el$56 = _el$55.firstChild, _el$57 = _el$55.nextSibling, _el$58 = _el$57.firstChild, _el$59 = _el$57.nextSibling, _el$60 = _el$59.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$60.nextSibling, _el$63 = _el$62.firstChild, _el$64 = _el$62.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.nextSibling, _el$67 = _el$66.nextSibling, _el$68 = _el$67.nextSibling, _el$69 = _el$68.nextSibling, _el$70 = _el$64.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$70.nextSibling, _el$73 = _el$72.firstChild, _el$74 = _el$72.nextSibling, _el$75 = _el$74.firstChild, _el$76 = _el$75.nextSibling, _el$77 = _el$76.nextSibling, _el$78 = _el$77.firstChild, _el$79 = _el$78.nextSibling, _el$80 = _el$79.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling, _el$88 = _el$87.nextSibling, _el$89 = _el$88.nextSibling, _el$90 = _el$74.nextSibling, _el$91 = _el$90.firstChild, _el$92 = _el$90.nextSibling, _el$93 = _el$92.firstChild, _el$94 = _el$92.nextSibling, _el$95 = _el$94.firstChild, _el$96 = _el$95.nextSibling, _el$97 = _el$94.nextSibling, _el$98 = _el$97.firstChild, _el$99 = _el$97.nextSibling, _el$100 = _el$99.firstChild, _el$101 = _el$99.nextSibling, _el$102 = _el$101.firstChild, _el$103 = _el$102.nextSibling, _el$104 = _el$103.nextSibling, _el$105 = _el$104.nextSibling, _el$106 = _el$105.nextSibling, _el$107 = _el$106.nextSibling, _el$108 = _el$107.nextSibling, _el$109 = _el$108.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling, _el$117 = _el$116.nextSibling, _el$118 = _el$117.nextSibling, _el$119 = _el$118.nextSibling;
|
|
12168
|
+
setAttribute(_el$28, "id", `a-${id}`);
|
|
12169
|
+
setAttribute(_el$29, "fill", `url(#a-${id})`);
|
|
12170
|
+
setAttribute(_el$31, "id", `am-${id}`);
|
|
12171
|
+
setAttribute(_el$32, "id", `b-${id}`);
|
|
12172
|
+
setAttribute(_el$33, "filter", `url(#am-${id})`);
|
|
12173
|
+
setAttribute(_el$34, "mask", `url(#b-${id})`);
|
|
12174
|
+
setAttribute(_el$36, "id", `ah-${id}`);
|
|
12175
|
+
setAttribute(_el$37, "id", `k-${id}`);
|
|
12176
|
+
setAttribute(_el$38, "filter", `url(#ah-${id})`);
|
|
12177
|
+
setAttribute(_el$39, "mask", `url(#k-${id})`);
|
|
12178
|
+
setAttribute(_el$41, "id", `ae-${id}`);
|
|
12179
|
+
setAttribute(_el$42, "id", `j-${id}`);
|
|
12180
|
+
setAttribute(_el$43, "filter", `url(#ae-${id})`);
|
|
12181
|
+
setAttribute(_el$44, "mask", `url(#j-${id})`);
|
|
12182
|
+
setAttribute(_el$46, "id", `ai-${id}`);
|
|
12183
|
+
setAttribute(_el$47, "id", `i-${id}`);
|
|
12184
|
+
setAttribute(_el$48, "filter", `url(#ai-${id})`);
|
|
12185
|
+
setAttribute(_el$49, "mask", `url(#i-${id})`);
|
|
12186
|
+
setAttribute(_el$51, "id", `aj-${id}`);
|
|
12187
|
+
setAttribute(_el$52, "id", `h-${id}`);
|
|
12188
|
+
setAttribute(_el$53, "filter", `url(#aj-${id})`);
|
|
12189
|
+
setAttribute(_el$54, "mask", `url(#h-${id})`);
|
|
12190
|
+
setAttribute(_el$56, "id", `ag-${id}`);
|
|
12191
|
+
setAttribute(_el$57, "id", `g-${id}`);
|
|
12192
|
+
setAttribute(_el$58, "filter", `url(#ag-${id})`);
|
|
12193
|
+
setAttribute(_el$59, "mask", `url(#g-${id})`);
|
|
12194
|
+
setAttribute(_el$61, "id", `af-${id}`);
|
|
12195
|
+
setAttribute(_el$62, "id", `f-${id}`);
|
|
12196
|
+
setAttribute(_el$63, "filter", `url(#af-${id})`);
|
|
12197
|
+
setAttribute(_el$64, "mask", `url(#f-${id})`);
|
|
12198
|
+
setAttribute(_el$68, "id", `m-${id}`);
|
|
12199
|
+
setAttribute(_el$69, "fill", `url(#m-${id})`);
|
|
12200
|
+
setAttribute(_el$71, "id", `ak-${id}`);
|
|
12201
|
+
setAttribute(_el$72, "id", `e-${id}`);
|
|
12202
|
+
setAttribute(_el$73, "filter", `url(#ak-${id})`);
|
|
12203
|
+
setAttribute(_el$74, "mask", `url(#e-${id})`);
|
|
12204
|
+
setAttribute(_el$75, "id", `n-${id}`);
|
|
12205
|
+
setAttribute(_el$76, "fill", `url(#n-${id})`);
|
|
12206
|
+
setAttribute(_el$78, "id", `r-${id}`);
|
|
12207
|
+
setAttribute(_el$79, "fill", `url(#r-${id})`);
|
|
12208
|
+
setAttribute(_el$80, "id", `s-${id}`);
|
|
12209
|
+
setAttribute(_el$81, "fill", `url(#s-${id})`);
|
|
12210
|
+
setAttribute(_el$82, "id", `q-${id}`);
|
|
12211
|
+
setAttribute(_el$83, "fill", `url(#q-${id})`);
|
|
12212
|
+
setAttribute(_el$84, "id", `p-${id}`);
|
|
12213
|
+
setAttribute(_el$85, "fill", `url(#p-${id})`);
|
|
12214
|
+
setAttribute(_el$86, "id", `o-${id}`);
|
|
12215
|
+
setAttribute(_el$87, "fill", `url(#o-${id})`);
|
|
12216
|
+
setAttribute(_el$88, "id", `l-${id}`);
|
|
12217
|
+
setAttribute(_el$89, "fill", `url(#l-${id})`);
|
|
12218
|
+
setAttribute(_el$91, "id", `al-${id}`);
|
|
12219
|
+
setAttribute(_el$92, "id", `d-${id}`);
|
|
12220
|
+
setAttribute(_el$93, "filter", `url(#al-${id})`);
|
|
12221
|
+
setAttribute(_el$94, "mask", `url(#d-${id})`);
|
|
12222
|
+
setAttribute(_el$95, "id", `u-${id}`);
|
|
12223
|
+
setAttribute(_el$96, "fill", `url(#u-${id})`);
|
|
12224
|
+
setAttribute(_el$98, "id", `ad-${id}`);
|
|
12225
|
+
setAttribute(_el$99, "id", `c-${id}`);
|
|
12226
|
+
setAttribute(_el$100, "filter", `url(#ad-${id})`);
|
|
12227
|
+
setAttribute(_el$101, "mask", `url(#c-${id})`);
|
|
12228
|
+
setAttribute(_el$102, "id", `t-${id}`);
|
|
12229
|
+
setAttribute(_el$103, "fill", `url(#t-${id})`);
|
|
12230
|
+
setAttribute(_el$104, "id", `v-${id}`);
|
|
12231
|
+
setAttribute(_el$105, "stroke", `url(#v-${id})`);
|
|
12232
|
+
setAttribute(_el$106, "id", `aa-${id}`);
|
|
12233
|
+
setAttribute(_el$107, "stroke", `url(#aa-${id})`);
|
|
12234
|
+
setAttribute(_el$108, "id", `w-${id}`);
|
|
12235
|
+
setAttribute(_el$109, "stroke", `url(#w-${id})`);
|
|
12236
|
+
setAttribute(_el$110, "id", `ac-${id}`);
|
|
12237
|
+
setAttribute(_el$111, "stroke", `url(#ac-${id})`);
|
|
12238
|
+
setAttribute(_el$112, "id", `ab-${id}`);
|
|
12239
|
+
setAttribute(_el$113, "stroke", `url(#ab-${id})`);
|
|
12240
|
+
setAttribute(_el$114, "id", `y-${id}`);
|
|
12241
|
+
setAttribute(_el$115, "stroke", `url(#y-${id})`);
|
|
12242
|
+
setAttribute(_el$116, "id", `x-${id}`);
|
|
12243
|
+
setAttribute(_el$117, "stroke", `url(#x-${id})`);
|
|
12244
|
+
setAttribute(_el$118, "id", `z-${id}`);
|
|
12245
|
+
setAttribute(_el$119, "stroke", `url(#z-${id})`);
|
|
12246
|
+
return _el$27;
|
|
11748
12247
|
})();
|
|
11749
12248
|
}
|
|
11750
|
-
var _tmpl$, _tmpl$2, _tmpl$3, _tmpl$4, _tmpl$5, _tmpl$6, _tmpl$7, _tmpl$8, _tmpl$9, _tmpl$10, _tmpl$11, _tmpl$12, _tmpl$13, _tmpl$14, _tmpl$15, _tmpl$16, _tmpl$17;
|
|
12249
|
+
var _tmpl$, _tmpl$2, _tmpl$3, _tmpl$4, _tmpl$5, _tmpl$6, _tmpl$7, _tmpl$8, _tmpl$9, _tmpl$10, _tmpl$11, _tmpl$12, _tmpl$13, _tmpl$14, _tmpl$15, _tmpl$16, _tmpl$17, _tmpl$18, _tmpl$19, _tmpl$20, _tmpl$21;
|
|
11751
12250
|
var init_icons = __esm({
|
|
11752
12251
|
"src/icons/index.tsx"() {
|
|
11753
12252
|
init_web();
|
|
@@ -11771,7 +12270,11 @@ var init_icons = __esm({
|
|
|
11771
12270
|
_tmpl$14 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
11772
12271
|
_tmpl$15 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>`);
|
|
11773
12272
|
_tmpl$16 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
11774
|
-
_tmpl$17 = /* @__PURE__ */ template(`<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>`);
|
|
12273
|
+
_tmpl$17 = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
12274
|
+
_tmpl$18 = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>`);
|
|
12275
|
+
_tmpl$19 = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
12276
|
+
_tmpl$20 = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
12277
|
+
_tmpl$21 = /* @__PURE__ */ template(`<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>`);
|
|
11775
12278
|
}
|
|
11776
12279
|
});
|
|
11777
12280
|
|
|
@@ -12146,7 +12649,7 @@ function Explorer(props) {
|
|
|
12146
12649
|
return _el$6;
|
|
12147
12650
|
})();
|
|
12148
12651
|
}
|
|
12149
|
-
var _tmpl$
|
|
12652
|
+
var _tmpl$22, _tmpl$23, _tmpl$32, _tmpl$42, _tmpl$52, _tmpl$62, _tmpl$72, _tmpl$82, _tmpl$92, _tmpl$102, _tmpl$112, Expander, CopyButton, ClearArrayButton, DeleteItemButton, ToggleValueButton, stylesFactory, lightStyles, darkStyles;
|
|
12150
12653
|
var init_Explorer = __esm({
|
|
12151
12654
|
"src/Explorer.tsx"() {
|
|
12152
12655
|
init_web();
|
|
@@ -12167,8 +12670,8 @@ var init_Explorer = __esm({
|
|
|
12167
12670
|
init_utils();
|
|
12168
12671
|
init_icons();
|
|
12169
12672
|
init_Context();
|
|
12170
|
-
_tmpl$
|
|
12171
|
-
_tmpl$
|
|
12673
|
+
_tmpl$22 = /* @__PURE__ */ template(`<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
12674
|
+
_tmpl$23 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
|
|
12172
12675
|
_tmpl$32 = /* @__PURE__ */ template(`<button title="Remove all items"aria-label="Remove all items">`);
|
|
12173
12676
|
_tmpl$42 = /* @__PURE__ */ template(`<button title="Delete item"aria-label="Delete item">`);
|
|
12174
12677
|
_tmpl$52 = /* @__PURE__ */ template(`<button title="Toggle value"aria-label="Toggle value">`);
|
|
@@ -12184,7 +12687,7 @@ var init_Explorer = __esm({
|
|
|
12184
12687
|
return theme() === "dark" ? darkStyles : lightStyles;
|
|
12185
12688
|
});
|
|
12186
12689
|
return (() => {
|
|
12187
|
-
const _el$ = _tmpl$
|
|
12690
|
+
const _el$ = _tmpl$22();
|
|
12188
12691
|
createRenderEffect(() => className(_el$, clsx(styles().expander, u`
|
|
12189
12692
|
transform: rotate(${props.expanded ? 90 : 0}deg);
|
|
12190
12693
|
`, props.expanded && u`
|
|
@@ -12202,7 +12705,7 @@ var init_Explorer = __esm({
|
|
|
12202
12705
|
});
|
|
12203
12706
|
const [copyState, setCopyState] = createSignal("NoCopy");
|
|
12204
12707
|
return (() => {
|
|
12205
|
-
const _el$2 = _tmpl$
|
|
12708
|
+
const _el$2 = _tmpl$23();
|
|
12206
12709
|
addEventListener(_el$2, "click", copyState() === "NoCopy" ? () => {
|
|
12207
12710
|
navigator.clipboard.writeText(stringify(props.value)).then(() => {
|
|
12208
12711
|
setCopyState("SuccessCopy");
|
|
@@ -12363,8 +12866,8 @@ var init_Explorer = __esm({
|
|
|
12363
12866
|
expanderButtonContainer: u`
|
|
12364
12867
|
display: flex;
|
|
12365
12868
|
align-items: center;
|
|
12366
|
-
line-height:
|
|
12367
|
-
min-height:
|
|
12869
|
+
line-height: ${size2[4]};
|
|
12870
|
+
min-height: ${size2[4]};
|
|
12368
12871
|
gap: ${size2[2]};
|
|
12369
12872
|
`,
|
|
12370
12873
|
expanderButton: u`
|
|
@@ -12372,7 +12875,7 @@ var init_Explorer = __esm({
|
|
|
12372
12875
|
color: inherit;
|
|
12373
12876
|
font: inherit;
|
|
12374
12877
|
outline: inherit;
|
|
12375
|
-
height:
|
|
12878
|
+
height: ${size2[5]};
|
|
12376
12879
|
background: transparent;
|
|
12377
12880
|
border: none;
|
|
12378
12881
|
padding: 0;
|
|
@@ -12414,8 +12917,8 @@ var init_Explorer = __esm({
|
|
|
12414
12917
|
display: inline-flex;
|
|
12415
12918
|
gap: ${size2[2]};
|
|
12416
12919
|
width: 100%;
|
|
12417
|
-
margin
|
|
12418
|
-
line-height:
|
|
12920
|
+
margin: ${size2[0.25]} 0px;
|
|
12921
|
+
line-height: ${size2[4.5]};
|
|
12419
12922
|
align-items: center;
|
|
12420
12923
|
`,
|
|
12421
12924
|
editableInput: u`
|
|
@@ -12480,12 +12983,14 @@ __export(Devtools_exports, {
|
|
|
12480
12983
|
Devtools: () => Devtools,
|
|
12481
12984
|
DevtoolsComponent: () => DevtoolsComponent,
|
|
12482
12985
|
DevtoolsPanel: () => DevtoolsPanel,
|
|
12986
|
+
MutationRow: () => MutationRow,
|
|
12987
|
+
MutationStatusCount: () => MutationStatusCount,
|
|
12483
12988
|
QueryRow: () => QueryRow,
|
|
12484
12989
|
QueryStatus: () => QueryStatus,
|
|
12485
12990
|
QueryStatusCount: () => QueryStatusCount,
|
|
12486
12991
|
default: () => Devtools_default
|
|
12487
12992
|
});
|
|
12488
|
-
var _tmpl$
|
|
12993
|
+
var _tmpl$24, _tmpl$25, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$103, _tmpl$113, _tmpl$122, _tmpl$132, _tmpl$142, _tmpl$152, _tmpl$162, _tmpl$172, _tmpl$182, _tmpl$192, _tmpl$202, _tmpl$212, _tmpl$222, _tmpl$232, _tmpl$242, _tmpl$252, _tmpl$26, _tmpl$27, _tmpl$28, _tmpl$29, _tmpl$30, firstBreakpoint, secondBreakpoint, thirdBreakpoint, BUTTON_POSITION, POSITION, THEME_PREFERENCE, INITIAL_IS_OPEN, DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_SORT_FN_NAME, DEFAULT_SORT_ORDER, DEFAULT_MUTATION_SORT_FN_NAME, selectedQueryHash, setSelectedQueryHash, selectedMutationId, setSelectedMutationId, panelWidth, setPanelWidth, DevtoolsComponent, Devtools_default, Devtools, DevtoolsPanel, ContentView, QueryRow, MutationRow, QueryStatusCount, MutationStatusCount, QueryStatus, QueryDetails, MutationDetails, queryCacheMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, mutationCacheMap, setupMutationCacheSubscription, createSubscribeToMutationCacheBatcher, stylesFactory2, lightStyles2, darkStyles2;
|
|
12489
12994
|
var init_Devtools = __esm({
|
|
12490
12995
|
"src/Devtools.tsx"() {
|
|
12491
12996
|
init_web();
|
|
@@ -12514,31 +13019,36 @@ var init_Devtools = __esm({
|
|
|
12514
13019
|
init_Explorer();
|
|
12515
13020
|
init_Context();
|
|
12516
13021
|
init_fonts();
|
|
12517
|
-
_tmpl$
|
|
12518
|
-
_tmpl$
|
|
12519
|
-
_tmpl$33 = /* @__PURE__ */ template(`<
|
|
12520
|
-
_tmpl$43 = /* @__PURE__ */ template(`<
|
|
12521
|
-
_tmpl$53 = /* @__PURE__ */ template(`<
|
|
12522
|
-
_tmpl$63 = /* @__PURE__ */ template(`<span>
|
|
12523
|
-
_tmpl$73 = /* @__PURE__ */ template(`<
|
|
12524
|
-
_tmpl$83 = /* @__PURE__ */ template(`<span>
|
|
12525
|
-
_tmpl$93 = /* @__PURE__ */ template(`<span>
|
|
12526
|
-
_tmpl$103 = /* @__PURE__ */ template(`<span>
|
|
12527
|
-
_tmpl$113 = /* @__PURE__ */ template(`<span>
|
|
12528
|
-
_tmpl$122 = /* @__PURE__ */ template(`<span>
|
|
12529
|
-
_tmpl$132 = /* @__PURE__ */ template(`<span>
|
|
12530
|
-
_tmpl$142 = /* @__PURE__ */ template(`<span>
|
|
12531
|
-
_tmpl$152 = /* @__PURE__ */ template(`<
|
|
12532
|
-
_tmpl$162 = /* @__PURE__ */ template(`<
|
|
12533
|
-
_tmpl$172 = /* @__PURE__ */ template(`<div class=tsqd-
|
|
12534
|
-
_tmpl$182 = /* @__PURE__ */ template(`<
|
|
12535
|
-
_tmpl$192 = /* @__PURE__ */ template(`<div
|
|
12536
|
-
_tmpl$
|
|
12537
|
-
_tmpl$
|
|
12538
|
-
_tmpl$222 = /* @__PURE__ */ template(`<button><
|
|
12539
|
-
_tmpl$232 = /* @__PURE__ */ template(`<div
|
|
12540
|
-
_tmpl$
|
|
12541
|
-
_tmpl$
|
|
13022
|
+
_tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
|
|
13023
|
+
_tmpl$25 = /* @__PURE__ */ template(`<div>`);
|
|
13024
|
+
_tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
|
|
13025
|
+
_tmpl$43 = /* @__PURE__ */ template(`<select>`);
|
|
13026
|
+
_tmpl$53 = /* @__PURE__ */ template(`<span>Asc`);
|
|
13027
|
+
_tmpl$63 = /* @__PURE__ */ template(`<span>Desc`);
|
|
13028
|
+
_tmpl$73 = /* @__PURE__ */ template(`<div>Settings`);
|
|
13029
|
+
_tmpl$83 = /* @__PURE__ */ template(`<span>Position`);
|
|
13030
|
+
_tmpl$93 = /* @__PURE__ */ template(`<span>Top`);
|
|
13031
|
+
_tmpl$103 = /* @__PURE__ */ template(`<span>Bottom`);
|
|
13032
|
+
_tmpl$113 = /* @__PURE__ */ template(`<span>Left`);
|
|
13033
|
+
_tmpl$122 = /* @__PURE__ */ template(`<span>Right`);
|
|
13034
|
+
_tmpl$132 = /* @__PURE__ */ template(`<span>Theme`);
|
|
13035
|
+
_tmpl$142 = /* @__PURE__ */ template(`<span>Light`);
|
|
13036
|
+
_tmpl$152 = /* @__PURE__ */ template(`<span>Dark`);
|
|
13037
|
+
_tmpl$162 = /* @__PURE__ */ template(`<span>System`);
|
|
13038
|
+
_tmpl$172 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
|
|
13039
|
+
_tmpl$182 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
|
|
13040
|
+
_tmpl$192 = /* @__PURE__ */ template(`<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter class=tsqd-query-filter-textfield></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>`);
|
|
13041
|
+
_tmpl$202 = /* @__PURE__ */ template(`<option>Sort by `);
|
|
13042
|
+
_tmpl$212 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
|
|
13043
|
+
_tmpl$222 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
|
|
13044
|
+
_tmpl$232 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
|
|
13045
|
+
_tmpl$242 = /* @__PURE__ */ template(`<span>`);
|
|
13046
|
+
_tmpl$252 = /* @__PURE__ */ template(`<button><span></span><span>`);
|
|
13047
|
+
_tmpl$26 = /* @__PURE__ */ template(`<button><span></span> Error`);
|
|
13048
|
+
_tmpl$27 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
|
|
13049
|
+
_tmpl$28 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
13050
|
+
_tmpl$29 = /* @__PURE__ */ template(`<option>`);
|
|
13051
|
+
_tmpl$30 = /* @__PURE__ */ template(`<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
12542
13052
|
firstBreakpoint = 1024;
|
|
12543
13053
|
secondBreakpoint = 796;
|
|
12544
13054
|
thirdBreakpoint = 700;
|
|
@@ -12550,7 +13060,9 @@ var init_Devtools = __esm({
|
|
|
12550
13060
|
DEFAULT_WIDTH = 500;
|
|
12551
13061
|
DEFAULT_SORT_FN_NAME = Object.keys(sortFns)[0];
|
|
12552
13062
|
DEFAULT_SORT_ORDER = 1;
|
|
13063
|
+
DEFAULT_MUTATION_SORT_FN_NAME = Object.keys(mutationSortFns)[0];
|
|
12553
13064
|
[selectedQueryHash, setSelectedQueryHash] = createSignal(null);
|
|
13065
|
+
[selectedMutationId, setSelectedMutationId] = createSignal(null);
|
|
12554
13066
|
[panelWidth, setPanelWidth] = createSignal(0);
|
|
12555
13067
|
DevtoolsComponent = (props) => {
|
|
12556
13068
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
@@ -12594,16 +13106,31 @@ var init_Devtools = __esm({
|
|
|
12594
13106
|
const position = createMemo(() => {
|
|
12595
13107
|
return props.localStore.position || useQueryDevtoolsContext().position || POSITION;
|
|
12596
13108
|
});
|
|
13109
|
+
let transitionsContainerRef;
|
|
12597
13110
|
createEffect(() => {
|
|
12598
|
-
const root =
|
|
13111
|
+
const root = transitionsContainerRef.parentElement;
|
|
12599
13112
|
const height = props.localStore.height || DEFAULT_HEIGHT;
|
|
12600
13113
|
const width = props.localStore.width || DEFAULT_WIDTH;
|
|
12601
13114
|
const panelPosition = position();
|
|
12602
13115
|
root.style.setProperty("--tsqd-panel-height", `${panelPosition === "top" ? "-" : ""}${height}px`);
|
|
12603
13116
|
root.style.setProperty("--tsqd-panel-width", `${panelPosition === "left" ? "-" : ""}${width}px`);
|
|
12604
13117
|
});
|
|
13118
|
+
onMount(() => {
|
|
13119
|
+
const onFocus = () => {
|
|
13120
|
+
const root = transitionsContainerRef.parentElement;
|
|
13121
|
+
const fontSize = getComputedStyle(root).fontSize;
|
|
13122
|
+
root.style.setProperty("--tsqd-font-size", fontSize);
|
|
13123
|
+
};
|
|
13124
|
+
onFocus();
|
|
13125
|
+
window.addEventListener("focus", onFocus);
|
|
13126
|
+
onCleanup(() => {
|
|
13127
|
+
window.removeEventListener("focus", onFocus);
|
|
13128
|
+
});
|
|
13129
|
+
});
|
|
12605
13130
|
return (() => {
|
|
12606
|
-
const _el$ = _tmpl$
|
|
13131
|
+
const _el$ = _tmpl$25();
|
|
13132
|
+
const _ref$ = transitionsContainerRef;
|
|
13133
|
+
typeof _ref$ === "function" ? use(_ref$, _el$) : transitionsContainerRef = _el$;
|
|
12607
13134
|
insert(_el$, createComponent(TransitionGroup, {
|
|
12608
13135
|
name: "tsqd-panel-transition",
|
|
12609
13136
|
get children() {
|
|
@@ -12632,7 +13159,7 @@ var init_Devtools = __esm({
|
|
|
12632
13159
|
return !isOpen();
|
|
12633
13160
|
},
|
|
12634
13161
|
get children() {
|
|
12635
|
-
const _el$2 = _tmpl$
|
|
13162
|
+
const _el$2 = _tmpl$24(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
|
|
12636
13163
|
insert(_el$3, createComponent(TanstackLogo, {}));
|
|
12637
13164
|
_el$4.$$click = () => props.setLocalStore("open", "true");
|
|
12638
13165
|
insert(_el$4, createComponent(TanstackLogo, {}));
|
|
@@ -12672,24 +13199,7 @@ var init_Devtools = __esm({
|
|
|
12672
13199
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
12673
13200
|
});
|
|
12674
13201
|
const [isResizing, setIsResizing] = createSignal(false);
|
|
12675
|
-
const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
|
|
12676
|
-
const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
|
|
12677
|
-
const [offline, setOffline] = createSignal(false);
|
|
12678
13202
|
const position = createMemo(() => props.localStore.position || useQueryDevtoolsContext().position || POSITION);
|
|
12679
|
-
const sortFn = createMemo(() => sortFns[sort()]);
|
|
12680
|
-
const onlineManager = createMemo(() => useQueryDevtoolsContext().onlineManager);
|
|
12681
|
-
const cache = createMemo(() => {
|
|
12682
|
-
return useQueryDevtoolsContext().client.getQueryCache();
|
|
12683
|
-
});
|
|
12684
|
-
const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
|
|
12685
|
-
return queryCache().getAll().length;
|
|
12686
|
-
}, false);
|
|
12687
|
-
const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
|
|
12688
|
-
const curr = cache().getAll();
|
|
12689
|
-
const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
|
|
12690
|
-
const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
|
|
12691
|
-
return sorted;
|
|
12692
|
-
}));
|
|
12693
13203
|
const handleDragStart = (event) => {
|
|
12694
13204
|
const panelElement = event.currentTarget.parentElement;
|
|
12695
13205
|
if (!panelElement)
|
|
@@ -12737,8 +13247,6 @@ var init_Devtools = __esm({
|
|
|
12737
13247
|
document.addEventListener("mousemove", runDrag, false);
|
|
12738
13248
|
document.addEventListener("mouseup", unsub, false);
|
|
12739
13249
|
};
|
|
12740
|
-
setupQueryCacheSubscription();
|
|
12741
|
-
let queriesContainerRef;
|
|
12742
13250
|
let panelRef;
|
|
12743
13251
|
onMount(() => {
|
|
12744
13252
|
createResizeObserver(panelRef, ({
|
|
@@ -12749,9 +13257,6 @@ var init_Devtools = __esm({
|
|
|
12749
13257
|
}
|
|
12750
13258
|
});
|
|
12751
13259
|
});
|
|
12752
|
-
const setDevtoolsPosition = (pos) => {
|
|
12753
|
-
props.setLocalStore("position", pos);
|
|
12754
|
-
};
|
|
12755
13260
|
createEffect(() => {
|
|
12756
13261
|
const rootContainer = panelRef.parentElement?.parentElement?.parentElement;
|
|
12757
13262
|
if (!rootContainer)
|
|
@@ -12796,52 +13301,238 @@ var init_Devtools = __esm({
|
|
|
12796
13301
|
`;
|
|
12797
13302
|
};
|
|
12798
13303
|
return (() => {
|
|
12799
|
-
const _el$5 = _tmpl$
|
|
12800
|
-
const _ref$ = panelRef;
|
|
12801
|
-
typeof _ref$ === "function" ? use(_ref
|
|
13304
|
+
const _el$5 = _tmpl$33(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
|
|
13305
|
+
const _ref$2 = panelRef;
|
|
13306
|
+
typeof _ref$2 === "function" ? use(_ref$2, _el$5) : panelRef = _el$5;
|
|
12802
13307
|
_el$6.$$mousedown = handleDragStart;
|
|
12803
13308
|
_el$7.$$click = () => props.setLocalStore("open", "false");
|
|
12804
13309
|
insert(_el$7, createComponent(ChevronDown, {}));
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
-
|
|
12808
|
-
insert(_el$12, () => useQueryDevtoolsContext().queryFlavor, _el$13);
|
|
12809
|
-
insert(_el$12, () => useQueryDevtoolsContext().version, null);
|
|
12810
|
-
insert(_el$9, createComponent(QueryStatusCount, {}), null);
|
|
12811
|
-
insert(_el$16, createComponent(Search, {}), _el$17);
|
|
12812
|
-
_el$17.$$input = (e2) => props.setLocalStore("filter", e2.currentTarget.value);
|
|
12813
|
-
_el$19.addEventListener("change", (e2) => props.setLocalStore("sort", e2.currentTarget.value));
|
|
12814
|
-
insert(_el$19, () => Object.keys(sortFns).map((key) => (() => {
|
|
12815
|
-
const _el$38 = _tmpl$162(); _el$38.firstChild;
|
|
12816
|
-
_el$38.value = key;
|
|
12817
|
-
insert(_el$38, key, null);
|
|
12818
|
-
return _el$38;
|
|
12819
|
-
})()));
|
|
12820
|
-
insert(_el$18, createComponent(ChevronDown, {}), null);
|
|
12821
|
-
_el$20.$$click = () => {
|
|
12822
|
-
props.setLocalStore("sortOrder", String(sortOrder() * -1));
|
|
12823
|
-
};
|
|
12824
|
-
insert(_el$20, createComponent(Show, {
|
|
12825
|
-
get when() {
|
|
12826
|
-
return sortOrder() === 1;
|
|
12827
|
-
},
|
|
12828
|
-
get children() {
|
|
12829
|
-
return [_tmpl$33(), createComponent(ArrowUp, {})];
|
|
12830
|
-
}
|
|
12831
|
-
}), null);
|
|
12832
|
-
insert(_el$20, createComponent(Show, {
|
|
12833
|
-
get when() {
|
|
12834
|
-
return sortOrder() === -1;
|
|
13310
|
+
insert(_el$5, createComponent(ContentView, {
|
|
13311
|
+
get localStore() {
|
|
13312
|
+
return props.localStore;
|
|
12835
13313
|
},
|
|
12836
|
-
get
|
|
12837
|
-
return
|
|
13314
|
+
get setLocalStore() {
|
|
13315
|
+
return props.setLocalStore;
|
|
12838
13316
|
}
|
|
12839
13317
|
}), null);
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
13318
|
+
createRenderEffect((_p$) => {
|
|
13319
|
+
const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
|
|
13320
|
+
[u`
|
|
13321
|
+
min-width: min-content;
|
|
13322
|
+
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
13323
|
+
}, "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");
|
|
13324
|
+
_v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
|
|
13325
|
+
_v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
|
|
13326
|
+
_v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
|
|
13327
|
+
_v$4 !== _p$._v$4 && className(_el$6, _p$._v$4 = _v$4);
|
|
13328
|
+
_v$5 !== _p$._v$5 && className(_el$7, _p$._v$5 = _v$5);
|
|
13329
|
+
return _p$;
|
|
13330
|
+
}, {
|
|
13331
|
+
_v$: void 0,
|
|
13332
|
+
_v$2: void 0,
|
|
13333
|
+
_v$3: void 0,
|
|
13334
|
+
_v$4: void 0,
|
|
13335
|
+
_v$5: void 0
|
|
13336
|
+
});
|
|
13337
|
+
return _el$5;
|
|
13338
|
+
})();
|
|
13339
|
+
};
|
|
13340
|
+
ContentView = (props) => {
|
|
13341
|
+
setupQueryCacheSubscription();
|
|
13342
|
+
setupMutationCacheSubscription();
|
|
13343
|
+
let containerRef;
|
|
13344
|
+
const theme = useTheme();
|
|
13345
|
+
const styles = createMemo(() => {
|
|
13346
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
13347
|
+
});
|
|
13348
|
+
const [selectedView, setSelectedView] = createSignal("queries");
|
|
13349
|
+
const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
|
|
13350
|
+
const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
|
|
13351
|
+
const mutationSort = createMemo(() => props.localStore.mutationSort || DEFAULT_MUTATION_SORT_FN_NAME);
|
|
13352
|
+
const mutationSortOrder = createMemo(() => Number(props.localStore.mutationSortOrder) || DEFAULT_SORT_ORDER);
|
|
13353
|
+
const [offline, setOffline] = createSignal(false);
|
|
13354
|
+
const sortFn = createMemo(() => sortFns[sort()]);
|
|
13355
|
+
const mutationSortFn = createMemo(() => mutationSortFns[mutationSort()]);
|
|
13356
|
+
const onlineManager = createMemo(() => useQueryDevtoolsContext().onlineManager);
|
|
13357
|
+
const query_cache = createMemo(() => {
|
|
13358
|
+
return useQueryDevtoolsContext().client.getQueryCache();
|
|
13359
|
+
});
|
|
13360
|
+
const mutation_cache = createMemo(() => {
|
|
13361
|
+
return useQueryDevtoolsContext().client.getMutationCache();
|
|
13362
|
+
});
|
|
13363
|
+
const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
|
|
13364
|
+
return queryCache().getAll().length;
|
|
13365
|
+
}, false);
|
|
13366
|
+
const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
|
|
13367
|
+
const curr = query_cache().getAll();
|
|
13368
|
+
const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
|
|
13369
|
+
const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
|
|
13370
|
+
return sorted;
|
|
13371
|
+
}));
|
|
13372
|
+
const mutationCount = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
13373
|
+
return mutationCache().getAll().length;
|
|
13374
|
+
}, false);
|
|
13375
|
+
const mutations = createMemo(on(() => [mutationCount(), props.localStore.mutationFilter, mutationSort(), mutationSortOrder()], () => {
|
|
13376
|
+
const curr = mutation_cache().getAll();
|
|
13377
|
+
const filtered = props.localStore.mutationFilter ? curr.filter((item) => {
|
|
13378
|
+
const value = `${item.options.mutationKey ? JSON.stringify(item.options.mutationKey) + " - " : ""}${new Date(item.state.submittedAt).toLocaleString()}`;
|
|
13379
|
+
return rankItem(value, props.localStore.mutationFilter || "").passed;
|
|
13380
|
+
}) : [...curr];
|
|
13381
|
+
const sorted = mutationSortFn() ? filtered.sort((a2, b2) => mutationSortFn()(a2, b2) * mutationSortOrder()) : filtered;
|
|
13382
|
+
return sorted;
|
|
13383
|
+
}));
|
|
13384
|
+
const setDevtoolsPosition = (pos) => {
|
|
13385
|
+
props.setLocalStore("position", pos);
|
|
13386
|
+
};
|
|
13387
|
+
const setComputedVariables = (el) => {
|
|
13388
|
+
const computedStyle = getComputedStyle(containerRef);
|
|
13389
|
+
const variable = computedStyle.getPropertyValue("--tsqd-font-size");
|
|
13390
|
+
el.style.setProperty("--tsqd-font-size", variable);
|
|
13391
|
+
};
|
|
13392
|
+
return [(() => {
|
|
13393
|
+
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;
|
|
13394
|
+
const _ref$3 = containerRef;
|
|
13395
|
+
typeof _ref$3 === "function" ? use(_ref$3, _el$8) : containerRef = _el$8;
|
|
13396
|
+
_el$11.$$click = () => props.setLocalStore("open", "false");
|
|
13397
|
+
insert(_el$13, () => useQueryDevtoolsContext().queryFlavor, _el$14);
|
|
13398
|
+
insert(_el$13, () => useQueryDevtoolsContext().version, null);
|
|
13399
|
+
insert(_el$10, createComponent(index$7.Root, {
|
|
13400
|
+
get ["class"]() {
|
|
13401
|
+
return clsx(styles().viewToggle);
|
|
13402
|
+
},
|
|
13403
|
+
get value() {
|
|
13404
|
+
return selectedView();
|
|
13405
|
+
},
|
|
13406
|
+
onChange: (value) => {
|
|
13407
|
+
setSelectedView(value);
|
|
13408
|
+
setSelectedQueryHash(null);
|
|
13409
|
+
setSelectedMutationId(null);
|
|
13410
|
+
},
|
|
13411
|
+
get children() {
|
|
13412
|
+
return [createComponent(index$7.Item, {
|
|
13413
|
+
value: "queries",
|
|
13414
|
+
"class": "tsqd-radio-toggle",
|
|
13415
|
+
get children() {
|
|
13416
|
+
return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
|
|
13417
|
+
get children() {
|
|
13418
|
+
return createComponent(index$7.ItemIndicator, {});
|
|
13419
|
+
}
|
|
13420
|
+
}), createComponent(index$7.ItemLabel, {
|
|
13421
|
+
title: "Toggle Queries View",
|
|
13422
|
+
children: "Queries"
|
|
13423
|
+
})];
|
|
13424
|
+
}
|
|
13425
|
+
}), createComponent(index$7.Item, {
|
|
13426
|
+
value: "mutations",
|
|
13427
|
+
"class": "tsqd-radio-toggle",
|
|
13428
|
+
get children() {
|
|
13429
|
+
return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
|
|
13430
|
+
get children() {
|
|
13431
|
+
return createComponent(index$7.ItemIndicator, {});
|
|
13432
|
+
}
|
|
13433
|
+
}), createComponent(index$7.ItemLabel, {
|
|
13434
|
+
title: "Toggle Mutations View",
|
|
13435
|
+
children: "Mutations"
|
|
13436
|
+
})];
|
|
13437
|
+
}
|
|
13438
|
+
})];
|
|
13439
|
+
}
|
|
13440
|
+
}), null);
|
|
13441
|
+
insert(_el$9, createComponent(Show, {
|
|
13442
|
+
get when() {
|
|
13443
|
+
return selectedView() === "queries";
|
|
13444
|
+
},
|
|
13445
|
+
get children() {
|
|
13446
|
+
return createComponent(QueryStatusCount, {});
|
|
13447
|
+
}
|
|
13448
|
+
}), null);
|
|
13449
|
+
insert(_el$9, createComponent(Show, {
|
|
13450
|
+
get when() {
|
|
13451
|
+
return selectedView() === "mutations";
|
|
13452
|
+
},
|
|
13453
|
+
get children() {
|
|
13454
|
+
return createComponent(MutationStatusCount, {});
|
|
13455
|
+
}
|
|
13456
|
+
}), null);
|
|
13457
|
+
insert(_el$17, createComponent(Search, {}), _el$18);
|
|
13458
|
+
_el$18.$$input = (e2) => {
|
|
13459
|
+
if (selectedView() === "queries") {
|
|
13460
|
+
props.setLocalStore("filter", e2.currentTarget.value);
|
|
13461
|
+
} else {
|
|
13462
|
+
props.setLocalStore("mutationFilter", e2.currentTarget.value);
|
|
13463
|
+
}
|
|
13464
|
+
};
|
|
13465
|
+
insert(_el$19, createComponent(Show, {
|
|
13466
|
+
get when() {
|
|
13467
|
+
return selectedView() === "queries";
|
|
13468
|
+
},
|
|
13469
|
+
get children() {
|
|
13470
|
+
const _el$20 = _tmpl$43();
|
|
13471
|
+
_el$20.addEventListener("change", (e2) => {
|
|
13472
|
+
props.setLocalStore("sort", e2.currentTarget.value);
|
|
13473
|
+
});
|
|
13474
|
+
insert(_el$20, () => Object.keys(sortFns).map((key) => (() => {
|
|
13475
|
+
const _el$42 = _tmpl$202(); _el$42.firstChild;
|
|
13476
|
+
_el$42.value = key;
|
|
13477
|
+
insert(_el$42, key, null);
|
|
13478
|
+
return _el$42;
|
|
13479
|
+
})()));
|
|
13480
|
+
createRenderEffect(() => _el$20.value = sort());
|
|
13481
|
+
return _el$20;
|
|
13482
|
+
}
|
|
13483
|
+
}), null);
|
|
13484
|
+
insert(_el$19, createComponent(Show, {
|
|
13485
|
+
get when() {
|
|
13486
|
+
return selectedView() === "mutations";
|
|
13487
|
+
},
|
|
13488
|
+
get children() {
|
|
13489
|
+
const _el$21 = _tmpl$43();
|
|
13490
|
+
_el$21.addEventListener("change", (e2) => {
|
|
13491
|
+
props.setLocalStore("mutationSort", e2.currentTarget.value);
|
|
13492
|
+
});
|
|
13493
|
+
insert(_el$21, () => Object.keys(mutationSortFns).map((key) => (() => {
|
|
13494
|
+
const _el$44 = _tmpl$202(); _el$44.firstChild;
|
|
13495
|
+
_el$44.value = key;
|
|
13496
|
+
insert(_el$44, key, null);
|
|
13497
|
+
return _el$44;
|
|
13498
|
+
})()));
|
|
13499
|
+
createRenderEffect(() => _el$21.value = mutationSort());
|
|
13500
|
+
return _el$21;
|
|
13501
|
+
}
|
|
13502
|
+
}), null);
|
|
13503
|
+
insert(_el$19, createComponent(ChevronDown, {}), null);
|
|
13504
|
+
_el$22.$$click = () => {
|
|
13505
|
+
if (selectedView() === "queries") {
|
|
13506
|
+
props.setLocalStore("sortOrder", String(sortOrder() * -1));
|
|
13507
|
+
} else {
|
|
13508
|
+
props.setLocalStore("mutationSortOrder", String(mutationSortOrder() * -1));
|
|
13509
|
+
}
|
|
13510
|
+
};
|
|
13511
|
+
insert(_el$22, createComponent(Show, {
|
|
13512
|
+
get when() {
|
|
13513
|
+
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === 1;
|
|
13514
|
+
},
|
|
13515
|
+
get children() {
|
|
13516
|
+
return [_tmpl$53(), createComponent(ArrowUp, {})];
|
|
13517
|
+
}
|
|
13518
|
+
}), null);
|
|
13519
|
+
insert(_el$22, createComponent(Show, {
|
|
13520
|
+
get when() {
|
|
13521
|
+
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1;
|
|
13522
|
+
},
|
|
13523
|
+
get children() {
|
|
13524
|
+
return [_tmpl$63(), createComponent(ArrowDown, {})];
|
|
13525
|
+
}
|
|
13526
|
+
}), null);
|
|
13527
|
+
_el$26.$$click = () => {
|
|
13528
|
+
if (selectedView() === "queries") {
|
|
13529
|
+
query_cache().clear();
|
|
13530
|
+
} else {
|
|
13531
|
+
mutation_cache().clear();
|
|
13532
|
+
}
|
|
13533
|
+
};
|
|
13534
|
+
insert(_el$26, createComponent(Trash, {}));
|
|
13535
|
+
_el$27.$$click = () => {
|
|
12845
13536
|
if (offline()) {
|
|
12846
13537
|
onlineManager().setOnline(true);
|
|
12847
13538
|
setOffline(false);
|
|
@@ -12850,11 +13541,11 @@ var init_Devtools = __esm({
|
|
|
12850
13541
|
setOffline(true);
|
|
12851
13542
|
}
|
|
12852
13543
|
};
|
|
12853
|
-
insert(_el$
|
|
13544
|
+
insert(_el$27, (() => {
|
|
12854
13545
|
const _c$ = createMemo(() => !!offline());
|
|
12855
13546
|
return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
|
|
12856
13547
|
})());
|
|
12857
|
-
insert(_el$
|
|
13548
|
+
insert(_el$25, createComponent(index$d.Root, {
|
|
12858
13549
|
gutter: 4,
|
|
12859
13550
|
get children() {
|
|
12860
13551
|
return [createComponent(index$d.Trigger, {
|
|
@@ -12865,6 +13556,7 @@ var init_Devtools = __esm({
|
|
|
12865
13556
|
return createComponent(Settings, {});
|
|
12866
13557
|
}
|
|
12867
13558
|
}), createComponent(index$d.Portal, {
|
|
13559
|
+
ref: (el) => setComputedVariables(el),
|
|
12868
13560
|
get children() {
|
|
12869
13561
|
return createComponent(index$d.Content, {
|
|
12870
13562
|
get ["class"]() {
|
|
@@ -12872,9 +13564,9 @@ var init_Devtools = __esm({
|
|
|
12872
13564
|
},
|
|
12873
13565
|
get children() {
|
|
12874
13566
|
return [(() => {
|
|
12875
|
-
const _el$
|
|
12876
|
-
createRenderEffect(() => className(_el$
|
|
12877
|
-
return _el$
|
|
13567
|
+
const _el$28 = _tmpl$73();
|
|
13568
|
+
createRenderEffect(() => className(_el$28, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
|
|
13569
|
+
return _el$28;
|
|
12878
13570
|
})(), createComponent(index$d.Sub, {
|
|
12879
13571
|
overlap: true,
|
|
12880
13572
|
gutter: 8,
|
|
@@ -12885,9 +13577,10 @@ var init_Devtools = __esm({
|
|
|
12885
13577
|
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
12886
13578
|
},
|
|
12887
13579
|
get children() {
|
|
12888
|
-
return [_tmpl$
|
|
13580
|
+
return [_tmpl$83(), createComponent(ChevronDown, {})];
|
|
12889
13581
|
}
|
|
12890
13582
|
}), createComponent(index$d.Portal, {
|
|
13583
|
+
ref: (el) => setComputedVariables(el),
|
|
12891
13584
|
get children() {
|
|
12892
13585
|
return createComponent(index$d.SubContent, {
|
|
12893
13586
|
get ["class"]() {
|
|
@@ -12903,7 +13596,7 @@ var init_Devtools = __esm({
|
|
|
12903
13596
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
12904
13597
|
},
|
|
12905
13598
|
get children() {
|
|
12906
|
-
return [_tmpl$
|
|
13599
|
+
return [_tmpl$93(), createComponent(ArrowUp, {})];
|
|
12907
13600
|
}
|
|
12908
13601
|
}), createComponent(index$d.Item, {
|
|
12909
13602
|
onSelect: () => {
|
|
@@ -12914,7 +13607,7 @@ var init_Devtools = __esm({
|
|
|
12914
13607
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
12915
13608
|
},
|
|
12916
13609
|
get children() {
|
|
12917
|
-
return [_tmpl$
|
|
13610
|
+
return [_tmpl$103(), createComponent(ArrowDown, {})];
|
|
12918
13611
|
}
|
|
12919
13612
|
}), createComponent(index$d.Item, {
|
|
12920
13613
|
onSelect: () => {
|
|
@@ -12925,7 +13618,7 @@ var init_Devtools = __esm({
|
|
|
12925
13618
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
12926
13619
|
},
|
|
12927
13620
|
get children() {
|
|
12928
|
-
return [_tmpl$
|
|
13621
|
+
return [_tmpl$113(), createComponent(ArrowLeft, {})];
|
|
12929
13622
|
}
|
|
12930
13623
|
}), createComponent(index$d.Item, {
|
|
12931
13624
|
onSelect: () => {
|
|
@@ -12936,7 +13629,7 @@ var init_Devtools = __esm({
|
|
|
12936
13629
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
|
|
12937
13630
|
},
|
|
12938
13631
|
get children() {
|
|
12939
|
-
return [_tmpl$
|
|
13632
|
+
return [_tmpl$122(), createComponent(ArrowRight, {})];
|
|
12940
13633
|
}
|
|
12941
13634
|
})];
|
|
12942
13635
|
}
|
|
@@ -12954,9 +13647,10 @@ var init_Devtools = __esm({
|
|
|
12954
13647
|
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
12955
13648
|
},
|
|
12956
13649
|
get children() {
|
|
12957
|
-
return [_tmpl$
|
|
13650
|
+
return [_tmpl$132(), createComponent(ChevronDown, {})];
|
|
12958
13651
|
}
|
|
12959
13652
|
}), createComponent(index$d.Portal, {
|
|
13653
|
+
ref: (el) => setComputedVariables(el),
|
|
12960
13654
|
get children() {
|
|
12961
13655
|
return createComponent(index$d.SubContent, {
|
|
12962
13656
|
get ["class"]() {
|
|
@@ -12972,7 +13666,7 @@ var init_Devtools = __esm({
|
|
|
12972
13666
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "light" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
12973
13667
|
},
|
|
12974
13668
|
get children() {
|
|
12975
|
-
return [_tmpl$
|
|
13669
|
+
return [_tmpl$142(), createComponent(Sun, {})];
|
|
12976
13670
|
}
|
|
12977
13671
|
}), createComponent(index$d.Item, {
|
|
12978
13672
|
onSelect: () => {
|
|
@@ -12983,7 +13677,7 @@ var init_Devtools = __esm({
|
|
|
12983
13677
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "dark" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
12984
13678
|
},
|
|
12985
13679
|
get children() {
|
|
12986
|
-
return [_tmpl$
|
|
13680
|
+
return [_tmpl$152(), createComponent(Moon, {})];
|
|
12987
13681
|
}
|
|
12988
13682
|
}), createComponent(index$d.Item, {
|
|
12989
13683
|
onSelect: () => {
|
|
@@ -12994,7 +13688,7 @@ var init_Devtools = __esm({
|
|
|
12994
13688
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "system" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
12995
13689
|
},
|
|
12996
13690
|
get children() {
|
|
12997
|
-
return [_tmpl$
|
|
13691
|
+
return [_tmpl$162(), createComponent(Monitor, {})];
|
|
12998
13692
|
}
|
|
12999
13693
|
})];
|
|
13000
13694
|
}
|
|
@@ -13009,66 +13703,74 @@ var init_Devtools = __esm({
|
|
|
13009
13703
|
})];
|
|
13010
13704
|
}
|
|
13011
13705
|
}), null);
|
|
13012
|
-
insert(_el$
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
return queries();
|
|
13706
|
+
insert(_el$8, createComponent(Show, {
|
|
13707
|
+
get when() {
|
|
13708
|
+
return selectedView() === "queries";
|
|
13016
13709
|
},
|
|
13017
|
-
children
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
|
|
13710
|
+
get children() {
|
|
13711
|
+
const _el$38 = _tmpl$172(), _el$39 = _el$38.firstChild;
|
|
13712
|
+
insert(_el$39, createComponent(Key, {
|
|
13713
|
+
by: (q) => q.queryHash,
|
|
13714
|
+
get each() {
|
|
13715
|
+
return queries();
|
|
13716
|
+
},
|
|
13717
|
+
children: (query) => createComponent(QueryRow, {
|
|
13718
|
+
get query() {
|
|
13719
|
+
return query();
|
|
13720
|
+
}
|
|
13721
|
+
})
|
|
13722
|
+
}));
|
|
13723
|
+
createRenderEffect(() => className(_el$38, clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container")));
|
|
13724
|
+
return _el$38;
|
|
13725
|
+
}
|
|
13726
|
+
}), null);
|
|
13727
|
+
insert(_el$8, createComponent(Show, {
|
|
13024
13728
|
get when() {
|
|
13025
|
-
return
|
|
13729
|
+
return selectedView() === "mutations";
|
|
13026
13730
|
},
|
|
13027
13731
|
get children() {
|
|
13028
|
-
|
|
13732
|
+
const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild;
|
|
13733
|
+
insert(_el$41, createComponent(Key, {
|
|
13734
|
+
by: (m) => m.mutationId,
|
|
13735
|
+
get each() {
|
|
13736
|
+
return mutations();
|
|
13737
|
+
},
|
|
13738
|
+
children: (mutation) => createComponent(MutationRow, {
|
|
13739
|
+
get mutation() {
|
|
13740
|
+
return mutation();
|
|
13741
|
+
}
|
|
13742
|
+
})
|
|
13743
|
+
}));
|
|
13744
|
+
createRenderEffect(() => className(_el$40, clsx(styles().overflowQueryContainer, "tsqd-mutations-overflow-container")));
|
|
13745
|
+
return _el$40;
|
|
13029
13746
|
}
|
|
13030
13747
|
}), null);
|
|
13031
13748
|
createRenderEffect((_p$) => {
|
|
13032
|
-
const _v$ = clsx(styles().
|
|
13033
|
-
[u`
|
|
13034
|
-
min-width: min-content;
|
|
13035
|
-
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
13036
|
-
}, "tsqd-main-panel"), _v$2 = position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto", _v$3 = position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto", _v$4 = clsx(styles().dragHandle, styles()[`dragHandle-position-${position()}`], "tsqd-drag-handle"), _v$5 = clsx(styles().closeBtn, styles()[`closeBtn-position-${position()}`], "tsqd-minimize-btn"), _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && selectedQueryHash() && u`
|
|
13749
|
+
const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && u`
|
|
13037
13750
|
height: 50%;
|
|
13038
13751
|
max-height: 50%;
|
|
13039
|
-
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = clsx(styles().logo, "tsqd-text-logo-container"), _v$
|
|
13040
|
-
gap: ${tokens.size[2.5]};
|
|
13041
|
-
`, "tsqd-filters-actions-container"), _v$12 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$13 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$14 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$15 = `Sort order ${sortOrder() === -1 ? "descending" : "ascending"}`, _v$16 = sortOrder() === -1, _v$17 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$18 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$19 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$20 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$21 = offline(), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container");
|
|
13042
|
-
_v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
|
|
13043
|
-
_v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
|
|
13044
|
-
_v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
|
|
13045
|
-
_v$4 !== _p$._v$4 && className(_el$6, _p$._v$4 = _v$4);
|
|
13046
|
-
_v$5 !== _p$._v$5 && className(_el$7, _p$._v$5 = _v$5);
|
|
13752
|
+
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = styles().logoAndToggleContainer, _v$9 = clsx(styles().logo, "tsqd-text-logo-container"), _v$10 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$11 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$12 = clsx(styles().row, "tsqd-filters-actions-container"), _v$13 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$14 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$15 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$16 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$17 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$18 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$19 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$20 = `Clear ${selectedView()} cache`, _v$21 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = offline(), _v$24 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
|
|
13047
13753
|
_v$6 !== _p$._v$6 && className(_el$8, _p$._v$6 = _v$6);
|
|
13048
13754
|
_v$7 !== _p$._v$7 && className(_el$9, _p$._v$7 = _v$7);
|
|
13049
13755
|
_v$8 !== _p$._v$8 && className(_el$10, _p$._v$8 = _v$8);
|
|
13050
13756
|
_v$9 !== _p$._v$9 && className(_el$11, _p$._v$9 = _v$9);
|
|
13051
13757
|
_v$10 !== _p$._v$10 && className(_el$12, _p$._v$10 = _v$10);
|
|
13052
|
-
_v$11 !== _p$._v$11 && className(_el$
|
|
13758
|
+
_v$11 !== _p$._v$11 && className(_el$13, _p$._v$11 = _v$11);
|
|
13053
13759
|
_v$12 !== _p$._v$12 && className(_el$15, _p$._v$12 = _v$12);
|
|
13054
13760
|
_v$13 !== _p$._v$13 && className(_el$16, _p$._v$13 = _v$13);
|
|
13055
|
-
_v$14 !== _p$._v$14 && className(_el$
|
|
13056
|
-
_v$15 !== _p$._v$15 &&
|
|
13057
|
-
_v$16 !== _p$._v$16 && setAttribute(_el$
|
|
13058
|
-
_v$17 !== _p$._v$17 &&
|
|
13059
|
-
_v$18 !== _p$._v$18 && className(_el$
|
|
13060
|
-
_v$19 !== _p$._v$19 && className(_el$
|
|
13061
|
-
_v$20 !== _p$._v$20 && setAttribute(_el$
|
|
13062
|
-
_v$21 !== _p$._v$21 &&
|
|
13063
|
-
_v$22 !== _p$._v$22 && setAttribute(_el$
|
|
13064
|
-
_v$23 !== _p$._v$23 &&
|
|
13761
|
+
_v$14 !== _p$._v$14 && className(_el$17, _p$._v$14 = _v$14);
|
|
13762
|
+
_v$15 !== _p$._v$15 && className(_el$19, _p$._v$15 = _v$15);
|
|
13763
|
+
_v$16 !== _p$._v$16 && setAttribute(_el$22, "aria-label", _p$._v$16 = _v$16);
|
|
13764
|
+
_v$17 !== _p$._v$17 && setAttribute(_el$22, "aria-pressed", _p$._v$17 = _v$17);
|
|
13765
|
+
_v$18 !== _p$._v$18 && className(_el$25, _p$._v$18 = _v$18);
|
|
13766
|
+
_v$19 !== _p$._v$19 && className(_el$26, _p$._v$19 = _v$19);
|
|
13767
|
+
_v$20 !== _p$._v$20 && setAttribute(_el$26, "title", _p$._v$20 = _v$20);
|
|
13768
|
+
_v$21 !== _p$._v$21 && className(_el$27, _p$._v$21 = _v$21);
|
|
13769
|
+
_v$22 !== _p$._v$22 && setAttribute(_el$27, "aria-label", _p$._v$22 = _v$22);
|
|
13770
|
+
_v$23 !== _p$._v$23 && setAttribute(_el$27, "aria-pressed", _p$._v$23 = _v$23);
|
|
13771
|
+
_v$24 !== _p$._v$24 && setAttribute(_el$27, "title", _p$._v$24 = _v$24);
|
|
13065
13772
|
return _p$;
|
|
13066
13773
|
}, {
|
|
13067
|
-
_v$: void 0,
|
|
13068
|
-
_v$2: void 0,
|
|
13069
|
-
_v$3: void 0,
|
|
13070
|
-
_v$4: void 0,
|
|
13071
|
-
_v$5: void 0,
|
|
13072
13774
|
_v$6: void 0,
|
|
13073
13775
|
_v$7: void 0,
|
|
13074
13776
|
_v$8: void 0,
|
|
@@ -13086,12 +13788,26 @@ var init_Devtools = __esm({
|
|
|
13086
13788
|
_v$20: void 0,
|
|
13087
13789
|
_v$21: void 0,
|
|
13088
13790
|
_v$22: void 0,
|
|
13089
|
-
_v$23: void 0
|
|
13791
|
+
_v$23: void 0,
|
|
13792
|
+
_v$24: void 0
|
|
13090
13793
|
});
|
|
13091
|
-
createRenderEffect(() => _el$
|
|
13092
|
-
|
|
13093
|
-
|
|
13094
|
-
|
|
13794
|
+
createRenderEffect(() => _el$18.value = selectedView() === "queries" ? props.localStore.filter || "" : props.localStore.mutationFilter || "");
|
|
13795
|
+
return _el$8;
|
|
13796
|
+
})(), createComponent(Show, {
|
|
13797
|
+
get when() {
|
|
13798
|
+
return createMemo(() => selectedView() === "queries")() && selectedQueryHash();
|
|
13799
|
+
},
|
|
13800
|
+
get children() {
|
|
13801
|
+
return createComponent(QueryDetails, {});
|
|
13802
|
+
}
|
|
13803
|
+
}), createComponent(Show, {
|
|
13804
|
+
get when() {
|
|
13805
|
+
return createMemo(() => selectedView() === "mutations")() && selectedMutationId();
|
|
13806
|
+
},
|
|
13807
|
+
get children() {
|
|
13808
|
+
return createComponent(MutationDetails, {});
|
|
13809
|
+
}
|
|
13810
|
+
})];
|
|
13095
13811
|
};
|
|
13096
13812
|
QueryRow = (props) => {
|
|
13097
13813
|
const theme = useTheme();
|
|
@@ -13137,30 +13853,140 @@ var init_Devtools = __esm({
|
|
|
13137
13853
|
return queryState();
|
|
13138
13854
|
},
|
|
13139
13855
|
get children() {
|
|
13140
|
-
const _el$
|
|
13141
|
-
_el$
|
|
13142
|
-
insert(_el$
|
|
13143
|
-
insert(_el$
|
|
13144
|
-
insert(_el$
|
|
13856
|
+
const _el$46 = _tmpl$222(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling;
|
|
13857
|
+
_el$46.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
|
|
13858
|
+
insert(_el$47, observers);
|
|
13859
|
+
insert(_el$48, () => props.query.queryHash);
|
|
13860
|
+
insert(_el$46, createComponent(Show, {
|
|
13145
13861
|
get when() {
|
|
13146
13862
|
return isDisabled();
|
|
13147
13863
|
},
|
|
13148
13864
|
get children() {
|
|
13149
|
-
return _tmpl$
|
|
13865
|
+
return _tmpl$212();
|
|
13150
13866
|
}
|
|
13151
13867
|
}), null);
|
|
13152
13868
|
createRenderEffect((_p$) => {
|
|
13153
|
-
const _v$
|
|
13154
|
-
_v$
|
|
13155
|
-
_v$
|
|
13156
|
-
_v$
|
|
13869
|
+
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");
|
|
13870
|
+
_v$25 !== _p$._v$25 && className(_el$46, _p$._v$25 = _v$25);
|
|
13871
|
+
_v$26 !== _p$._v$26 && setAttribute(_el$46, "aria-label", _p$._v$26 = _v$26);
|
|
13872
|
+
_v$27 !== _p$._v$27 && className(_el$47, _p$._v$27 = _v$27);
|
|
13157
13873
|
return _p$;
|
|
13158
13874
|
}, {
|
|
13159
|
-
_v$24: void 0,
|
|
13160
13875
|
_v$25: void 0,
|
|
13161
|
-
_v$26: void 0
|
|
13876
|
+
_v$26: void 0,
|
|
13877
|
+
_v$27: void 0
|
|
13878
|
+
});
|
|
13879
|
+
return _el$46;
|
|
13880
|
+
}
|
|
13881
|
+
});
|
|
13882
|
+
};
|
|
13883
|
+
MutationRow = (props) => {
|
|
13884
|
+
const theme = useTheme();
|
|
13885
|
+
const styles = createMemo(() => {
|
|
13886
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
13887
|
+
});
|
|
13888
|
+
const {
|
|
13889
|
+
colors,
|
|
13890
|
+
alpha
|
|
13891
|
+
} = tokens;
|
|
13892
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
13893
|
+
const mutationState = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
13894
|
+
const mutations = mutationCache().getAll();
|
|
13895
|
+
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
13896
|
+
return mutation?.state;
|
|
13897
|
+
});
|
|
13898
|
+
const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
13899
|
+
const mutations = mutationCache().getAll();
|
|
13900
|
+
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
13901
|
+
if (!mutation)
|
|
13902
|
+
return false;
|
|
13903
|
+
return mutation.state.isPaused;
|
|
13904
|
+
});
|
|
13905
|
+
const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
13906
|
+
const mutations = mutationCache().getAll();
|
|
13907
|
+
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
13908
|
+
if (!mutation)
|
|
13909
|
+
return "idle";
|
|
13910
|
+
return mutation.state.status;
|
|
13911
|
+
});
|
|
13912
|
+
const color = createMemo(() => getMutationStatusColor({
|
|
13913
|
+
isPaused: isPaused(),
|
|
13914
|
+
status: status()
|
|
13915
|
+
}));
|
|
13916
|
+
const getObserverCountColorStyles = () => {
|
|
13917
|
+
if (color() === "gray") {
|
|
13918
|
+
return u`
|
|
13919
|
+
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
13920
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
13921
|
+
`;
|
|
13922
|
+
}
|
|
13923
|
+
return u`
|
|
13924
|
+
background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
|
|
13925
|
+
color: ${t2(colors[color()][800], colors[color()][300])};
|
|
13926
|
+
`;
|
|
13927
|
+
};
|
|
13928
|
+
return createComponent(Show, {
|
|
13929
|
+
get when() {
|
|
13930
|
+
return mutationState();
|
|
13931
|
+
},
|
|
13932
|
+
get children() {
|
|
13933
|
+
const _el$50 = _tmpl$222(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling;
|
|
13934
|
+
_el$50.$$click = () => {
|
|
13935
|
+
setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
|
|
13936
|
+
};
|
|
13937
|
+
insert(_el$51, createComponent(Show, {
|
|
13938
|
+
get when() {
|
|
13939
|
+
return color() === "purple";
|
|
13940
|
+
},
|
|
13941
|
+
get children() {
|
|
13942
|
+
return createComponent(PauseCircle, {});
|
|
13943
|
+
}
|
|
13944
|
+
}), null);
|
|
13945
|
+
insert(_el$51, createComponent(Show, {
|
|
13946
|
+
get when() {
|
|
13947
|
+
return color() === "green";
|
|
13948
|
+
},
|
|
13949
|
+
get children() {
|
|
13950
|
+
return createComponent(CheckCircle, {});
|
|
13951
|
+
}
|
|
13952
|
+
}), null);
|
|
13953
|
+
insert(_el$51, createComponent(Show, {
|
|
13954
|
+
get when() {
|
|
13955
|
+
return color() === "red";
|
|
13956
|
+
},
|
|
13957
|
+
get children() {
|
|
13958
|
+
return createComponent(XCircle, {});
|
|
13959
|
+
}
|
|
13960
|
+
}), null);
|
|
13961
|
+
insert(_el$51, createComponent(Show, {
|
|
13962
|
+
get when() {
|
|
13963
|
+
return color() === "yellow";
|
|
13964
|
+
},
|
|
13965
|
+
get children() {
|
|
13966
|
+
return createComponent(LoadingCircle, {});
|
|
13967
|
+
}
|
|
13968
|
+
}), null);
|
|
13969
|
+
insert(_el$52, createComponent(Show, {
|
|
13970
|
+
get when() {
|
|
13971
|
+
return props.mutation.options.mutationKey;
|
|
13972
|
+
},
|
|
13973
|
+
get children() {
|
|
13974
|
+
return [createMemo(() => JSON.stringify(props.mutation.options.mutationKey)), " -", " "];
|
|
13975
|
+
}
|
|
13976
|
+
}), null);
|
|
13977
|
+
insert(_el$52, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
|
|
13978
|
+
createRenderEffect((_p$) => {
|
|
13979
|
+
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");
|
|
13980
|
+
_v$28 !== _p$._v$28 && className(_el$50, _p$._v$28 = _v$28);
|
|
13981
|
+
_v$29 !== _p$._v$29 && setAttribute(_el$50, "aria-label", _p$._v$29 = _v$29);
|
|
13982
|
+
_v$30 !== _p$._v$30 && className(_el$51, _p$._v$30 = _v$30);
|
|
13983
|
+
return _p$;
|
|
13984
|
+
}, {
|
|
13985
|
+
_v$28: void 0,
|
|
13986
|
+
_v$29: void 0,
|
|
13987
|
+
_v$30: void 0
|
|
13162
13988
|
});
|
|
13163
|
-
return _el$
|
|
13989
|
+
return _el$50;
|
|
13164
13990
|
}
|
|
13165
13991
|
});
|
|
13166
13992
|
};
|
|
@@ -13175,44 +14001,99 @@ var init_Devtools = __esm({
|
|
|
13175
14001
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
13176
14002
|
});
|
|
13177
14003
|
return (() => {
|
|
13178
|
-
const _el$
|
|
13179
|
-
insert(_el$
|
|
14004
|
+
const _el$53 = _tmpl$25();
|
|
14005
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
13180
14006
|
label: "Fresh",
|
|
13181
14007
|
color: "green",
|
|
13182
14008
|
get count() {
|
|
13183
14009
|
return fresh();
|
|
13184
14010
|
}
|
|
13185
14011
|
}), null);
|
|
13186
|
-
insert(_el$
|
|
14012
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
13187
14013
|
label: "Fetching",
|
|
13188
14014
|
color: "blue",
|
|
13189
14015
|
get count() {
|
|
13190
14016
|
return fetching();
|
|
13191
14017
|
}
|
|
13192
14018
|
}), null);
|
|
13193
|
-
insert(_el$
|
|
14019
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
13194
14020
|
label: "Paused",
|
|
13195
14021
|
color: "purple",
|
|
13196
14022
|
get count() {
|
|
13197
14023
|
return paused();
|
|
13198
14024
|
}
|
|
13199
14025
|
}), null);
|
|
13200
|
-
insert(_el$
|
|
14026
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
13201
14027
|
label: "Stale",
|
|
13202
14028
|
color: "yellow",
|
|
13203
14029
|
get count() {
|
|
13204
14030
|
return stale();
|
|
13205
14031
|
}
|
|
13206
14032
|
}), null);
|
|
13207
|
-
insert(_el$
|
|
14033
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
13208
14034
|
label: "Inactive",
|
|
13209
14035
|
color: "gray",
|
|
13210
14036
|
get count() {
|
|
13211
14037
|
return inactive();
|
|
13212
14038
|
}
|
|
13213
14039
|
}), null);
|
|
13214
|
-
createRenderEffect(() => className(_el$
|
|
13215
|
-
return _el$
|
|
14040
|
+
createRenderEffect(() => className(_el$53, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
14041
|
+
return _el$53;
|
|
14042
|
+
})();
|
|
14043
|
+
};
|
|
14044
|
+
MutationStatusCount = () => {
|
|
14045
|
+
const success = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
14046
|
+
isPaused: m.state.isPaused,
|
|
14047
|
+
status: m.state.status
|
|
14048
|
+
}) === "green").length);
|
|
14049
|
+
const pending = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
14050
|
+
isPaused: m.state.isPaused,
|
|
14051
|
+
status: m.state.status
|
|
14052
|
+
}) === "yellow").length);
|
|
14053
|
+
const paused = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
14054
|
+
isPaused: m.state.isPaused,
|
|
14055
|
+
status: m.state.status
|
|
14056
|
+
}) === "purple").length);
|
|
14057
|
+
const error = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
14058
|
+
isPaused: m.state.isPaused,
|
|
14059
|
+
status: m.state.status
|
|
14060
|
+
}) === "red").length);
|
|
14061
|
+
const theme = useTheme();
|
|
14062
|
+
const styles = createMemo(() => {
|
|
14063
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
14064
|
+
});
|
|
14065
|
+
return (() => {
|
|
14066
|
+
const _el$54 = _tmpl$25();
|
|
14067
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
14068
|
+
label: "Paused",
|
|
14069
|
+
color: "purple",
|
|
14070
|
+
get count() {
|
|
14071
|
+
return paused();
|
|
14072
|
+
}
|
|
14073
|
+
}), null);
|
|
14074
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
14075
|
+
label: "Pending",
|
|
14076
|
+
color: "yellow",
|
|
14077
|
+
get count() {
|
|
14078
|
+
return pending();
|
|
14079
|
+
}
|
|
14080
|
+
}), null);
|
|
14081
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
14082
|
+
label: "Success",
|
|
14083
|
+
color: "green",
|
|
14084
|
+
get count() {
|
|
14085
|
+
return success();
|
|
14086
|
+
}
|
|
14087
|
+
}), null);
|
|
14088
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
14089
|
+
label: "Error",
|
|
14090
|
+
color: "red",
|
|
14091
|
+
get count() {
|
|
14092
|
+
return error();
|
|
14093
|
+
}
|
|
14094
|
+
}), null);
|
|
14095
|
+
createRenderEffect(() => className(_el$54, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
14096
|
+
return _el$54;
|
|
13216
14097
|
})();
|
|
13217
14098
|
};
|
|
13218
14099
|
QueryStatus = (props) => {
|
|
@@ -13240,17 +14121,17 @@ var init_Devtools = __esm({
|
|
|
13240
14121
|
return true;
|
|
13241
14122
|
});
|
|
13242
14123
|
return (() => {
|
|
13243
|
-
const _el$
|
|
13244
|
-
const _ref$
|
|
13245
|
-
typeof _ref$
|
|
13246
|
-
_el$
|
|
14124
|
+
const _el$55 = _tmpl$252(), _el$57 = _el$55.firstChild, _el$59 = _el$57.nextSibling;
|
|
14125
|
+
const _ref$4 = tagRef;
|
|
14126
|
+
typeof _ref$4 === "function" ? use(_ref$4, _el$55) : tagRef = _el$55;
|
|
14127
|
+
_el$55.addEventListener("mouseleave", () => {
|
|
13247
14128
|
setMouseOver(false);
|
|
13248
14129
|
setFocused(false);
|
|
13249
14130
|
});
|
|
13250
|
-
_el$
|
|
13251
|
-
_el$
|
|
13252
|
-
_el$
|
|
13253
|
-
spread(_el$
|
|
14131
|
+
_el$55.addEventListener("mouseenter", () => setMouseOver(true));
|
|
14132
|
+
_el$55.addEventListener("blur", () => setFocused(false));
|
|
14133
|
+
_el$55.addEventListener("focus", () => setFocused(true));
|
|
14134
|
+
spread(_el$55, mergeProps({
|
|
13254
14135
|
get disabled() {
|
|
13255
14136
|
return showLabel();
|
|
13256
14137
|
},
|
|
@@ -13265,47 +14146,47 @@ var init_Devtools = __esm({
|
|
|
13265
14146
|
}, () => mouseOver() || focused() ? {
|
|
13266
14147
|
"aria-describedby": "tsqd-status-tooltip"
|
|
13267
14148
|
} : {}), false, true);
|
|
13268
|
-
insert(_el$
|
|
14149
|
+
insert(_el$55, createComponent(Show, {
|
|
13269
14150
|
get when() {
|
|
13270
14151
|
return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
|
|
13271
14152
|
},
|
|
13272
14153
|
get children() {
|
|
13273
|
-
const _el$
|
|
13274
|
-
insert(_el$
|
|
13275
|
-
createRenderEffect(() => className(_el$
|
|
13276
|
-
return _el$
|
|
14154
|
+
const _el$56 = _tmpl$232();
|
|
14155
|
+
insert(_el$56, () => props.label);
|
|
14156
|
+
createRenderEffect(() => className(_el$56, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
|
|
14157
|
+
return _el$56;
|
|
13277
14158
|
}
|
|
13278
|
-
}), _el$
|
|
13279
|
-
insert(_el$
|
|
14159
|
+
}), _el$57);
|
|
14160
|
+
insert(_el$55, createComponent(Show, {
|
|
13280
14161
|
get when() {
|
|
13281
14162
|
return showLabel();
|
|
13282
14163
|
},
|
|
13283
14164
|
get children() {
|
|
13284
|
-
const _el$
|
|
13285
|
-
insert(_el$
|
|
13286
|
-
createRenderEffect(() => className(_el$
|
|
13287
|
-
return _el$
|
|
14165
|
+
const _el$58 = _tmpl$242();
|
|
14166
|
+
insert(_el$58, () => props.label);
|
|
14167
|
+
createRenderEffect(() => className(_el$58, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
|
|
14168
|
+
return _el$58;
|
|
13288
14169
|
}
|
|
13289
|
-
}), _el$
|
|
13290
|
-
insert(_el$
|
|
14170
|
+
}), _el$59);
|
|
14171
|
+
insert(_el$59, () => props.count);
|
|
13291
14172
|
createRenderEffect((_p$) => {
|
|
13292
|
-
const _v$
|
|
14173
|
+
const _v$31 = clsx(u`
|
|
13293
14174
|
width: ${tokens.size[1.5]};
|
|
13294
14175
|
height: ${tokens.size[1.5]};
|
|
13295
14176
|
border-radius: ${tokens.border.radius.full};
|
|
13296
14177
|
background-color: ${tokens.colors[props.color][500]};
|
|
13297
|
-
`, "tsqd-query-status-tag-dot"), _v$
|
|
14178
|
+
`, "tsqd-query-status-tag-dot"), _v$32 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
|
|
13298
14179
|
background-color: ${t2(colors[props.color][100], colors[props.color][900])};
|
|
13299
14180
|
color: ${t2(colors[props.color][700], colors[props.color][300])};
|
|
13300
14181
|
`, "tsqd-query-status-tag-count");
|
|
13301
|
-
_v$
|
|
13302
|
-
_v$
|
|
14182
|
+
_v$31 !== _p$._v$31 && className(_el$57, _p$._v$31 = _v$31);
|
|
14183
|
+
_v$32 !== _p$._v$32 && className(_el$59, _p$._v$32 = _v$32);
|
|
13303
14184
|
return _p$;
|
|
13304
14185
|
}, {
|
|
13305
|
-
_v$
|
|
13306
|
-
_v$
|
|
14186
|
+
_v$31: void 0,
|
|
14187
|
+
_v$32: void 0
|
|
13307
14188
|
});
|
|
13308
|
-
return _el$
|
|
14189
|
+
return _el$55;
|
|
13309
14190
|
})();
|
|
13310
14191
|
};
|
|
13311
14192
|
QueryDetails = () => {
|
|
@@ -13392,19 +14273,19 @@ var init_Devtools = __esm({
|
|
|
13392
14273
|
return createMemo(() => !!activeQuery())() && activeQueryState();
|
|
13393
14274
|
},
|
|
13394
14275
|
get children() {
|
|
13395
|
-
const _el$
|
|
13396
|
-
insert(_el$
|
|
13397
|
-
insert(_el$
|
|
13398
|
-
insert(_el$
|
|
13399
|
-
insert(_el$
|
|
13400
|
-
_el$
|
|
13401
|
-
_el$
|
|
13402
|
-
_el$
|
|
13403
|
-
_el$
|
|
14276
|
+
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;
|
|
14277
|
+
insert(_el$65, () => displayValue(activeQuery().queryKey, true));
|
|
14278
|
+
insert(_el$66, statusLabel);
|
|
14279
|
+
insert(_el$69, observerCount);
|
|
14280
|
+
insert(_el$72, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
|
|
14281
|
+
_el$75.$$click = handleRefetch;
|
|
14282
|
+
_el$77.$$click = () => queryClient.invalidateQueries(activeQuery());
|
|
14283
|
+
_el$79.$$click = () => queryClient.resetQueries(activeQuery());
|
|
14284
|
+
_el$81.$$click = () => {
|
|
13404
14285
|
queryClient.removeQueries(activeQuery());
|
|
13405
14286
|
setSelectedQueryHash(null);
|
|
13406
14287
|
};
|
|
13407
|
-
_el$
|
|
14288
|
+
_el$83.$$click = () => {
|
|
13408
14289
|
if (activeQuery()?.state.data === void 0) {
|
|
13409
14290
|
setRestoringLoading(true);
|
|
13410
14291
|
restoreQueryAfterLoadingOrError();
|
|
@@ -13432,79 +14313,78 @@ var init_Devtools = __esm({
|
|
|
13432
14313
|
});
|
|
13433
14314
|
}
|
|
13434
14315
|
};
|
|
13435
|
-
insert(_el$
|
|
13436
|
-
insert(_el$
|
|
14316
|
+
insert(_el$83, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$85);
|
|
14317
|
+
insert(_el$74, createComponent(Show, {
|
|
13437
14318
|
get when() {
|
|
13438
14319
|
return errorTypes().length === 0 || queryStatus() === "error";
|
|
13439
14320
|
},
|
|
13440
14321
|
get children() {
|
|
13441
|
-
const _el$
|
|
13442
|
-
_el$
|
|
14322
|
+
const _el$86 = _tmpl$26(), _el$87 = _el$86.firstChild, _el$88 = _el$87.nextSibling;
|
|
14323
|
+
_el$86.$$click = () => {
|
|
13443
14324
|
if (!activeQuery().state.error) {
|
|
13444
14325
|
triggerError();
|
|
13445
14326
|
} else {
|
|
13446
14327
|
queryClient.resetQueries(activeQuery());
|
|
13447
14328
|
}
|
|
13448
14329
|
};
|
|
13449
|
-
insert(_el$
|
|
14330
|
+
insert(_el$86, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$88);
|
|
13450
14331
|
createRenderEffect((_p$) => {
|
|
13451
|
-
const _v$
|
|
14332
|
+
const _v$33 = clsx(u`
|
|
13452
14333
|
color: ${t2(colors.red[500], colors.red[400])};
|
|
13453
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$
|
|
14334
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$34 = queryStatus() === "pending", _v$35 = u`
|
|
13454
14335
|
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
13455
14336
|
`;
|
|
13456
|
-
_v$
|
|
13457
|
-
_v$
|
|
13458
|
-
_v$
|
|
14337
|
+
_v$33 !== _p$._v$33 && className(_el$86, _p$._v$33 = _v$33);
|
|
14338
|
+
_v$34 !== _p$._v$34 && (_el$86.disabled = _p$._v$34 = _v$34);
|
|
14339
|
+
_v$35 !== _p$._v$35 && className(_el$87, _p$._v$35 = _v$35);
|
|
13459
14340
|
return _p$;
|
|
13460
14341
|
}, {
|
|
13461
|
-
_v$
|
|
13462
|
-
_v$
|
|
13463
|
-
_v$
|
|
14342
|
+
_v$33: void 0,
|
|
14343
|
+
_v$34: void 0,
|
|
14344
|
+
_v$35: void 0
|
|
13464
14345
|
});
|
|
13465
|
-
return _el$
|
|
14346
|
+
return _el$86;
|
|
13466
14347
|
}
|
|
13467
14348
|
}), null);
|
|
13468
|
-
insert(_el$
|
|
14349
|
+
insert(_el$74, createComponent(Show, {
|
|
13469
14350
|
get when() {
|
|
13470
14351
|
return !(errorTypes().length === 0 || queryStatus() === "error");
|
|
13471
14352
|
},
|
|
13472
14353
|
get children() {
|
|
13473
|
-
const _el$
|
|
13474
|
-
_el$
|
|
14354
|
+
const _el$89 = _tmpl$27(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling, _el$92 = _el$91.nextSibling; _el$92.firstChild;
|
|
14355
|
+
_el$92.addEventListener("change", (e2) => {
|
|
13475
14356
|
const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
|
|
13476
14357
|
triggerError(errorType);
|
|
13477
14358
|
});
|
|
13478
|
-
insert(_el$
|
|
14359
|
+
insert(_el$92, createComponent(For, {
|
|
13479
14360
|
get each() {
|
|
13480
14361
|
return errorTypes();
|
|
13481
14362
|
},
|
|
13482
14363
|
children: (errorType) => (() => {
|
|
13483
|
-
const _el$
|
|
13484
|
-
insert(_el$
|
|
13485
|
-
createRenderEffect(() => _el$
|
|
13486
|
-
return _el$
|
|
14364
|
+
const _el$98 = _tmpl$29();
|
|
14365
|
+
insert(_el$98, () => errorType.name);
|
|
14366
|
+
createRenderEffect(() => _el$98.value = errorType.name);
|
|
14367
|
+
return _el$98;
|
|
13487
14368
|
})()
|
|
13488
14369
|
}), null);
|
|
13489
|
-
insert(_el$
|
|
14370
|
+
insert(_el$89, createComponent(ChevronDown, {}), null);
|
|
13490
14371
|
createRenderEffect((_p$) => {
|
|
13491
|
-
const _v$
|
|
14372
|
+
const _v$36 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$37 = u`
|
|
13492
14373
|
background-color: ${tokens.colors.red[400]};
|
|
13493
|
-
`, _v$
|
|
13494
|
-
_v$
|
|
13495
|
-
_v$
|
|
13496
|
-
_v$
|
|
14374
|
+
`, _v$38 = queryStatus() === "pending";
|
|
14375
|
+
_v$36 !== _p$._v$36 && className(_el$89, _p$._v$36 = _v$36);
|
|
14376
|
+
_v$37 !== _p$._v$37 && className(_el$90, _p$._v$37 = _v$37);
|
|
14377
|
+
_v$38 !== _p$._v$38 && (_el$92.disabled = _p$._v$38 = _v$38);
|
|
13497
14378
|
return _p$;
|
|
13498
14379
|
}, {
|
|
13499
|
-
_v$
|
|
13500
|
-
_v$
|
|
13501
|
-
_v$
|
|
14380
|
+
_v$36: void 0,
|
|
14381
|
+
_v$37: void 0,
|
|
14382
|
+
_v$38: void 0
|
|
13502
14383
|
});
|
|
13503
|
-
return _el$
|
|
14384
|
+
return _el$89;
|
|
13504
14385
|
}
|
|
13505
14386
|
}), null);
|
|
13506
|
-
_el$
|
|
13507
|
-
insert(_el$85, createComponent(Explorer, {
|
|
14387
|
+
insert(_el$95, createComponent(Explorer, {
|
|
13508
14388
|
label: "Data",
|
|
13509
14389
|
defaultExpanded: ["Data"],
|
|
13510
14390
|
get value() {
|
|
@@ -13515,8 +14395,7 @@ var init_Devtools = __esm({
|
|
|
13515
14395
|
return activeQuery();
|
|
13516
14396
|
}
|
|
13517
14397
|
}));
|
|
13518
|
-
_el$
|
|
13519
|
-
insert(_el$87, createComponent(Explorer, {
|
|
14398
|
+
insert(_el$97, createComponent(Explorer, {
|
|
13520
14399
|
label: "Query",
|
|
13521
14400
|
defaultExpanded: ["Query", "queryKey"],
|
|
13522
14401
|
get value() {
|
|
@@ -13524,56 +14403,54 @@ var init_Devtools = __esm({
|
|
|
13524
14403
|
}
|
|
13525
14404
|
}));
|
|
13526
14405
|
createRenderEffect((_p$) => {
|
|
13527
|
-
const _v$
|
|
14406
|
+
const _v$39 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$40 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$41 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$42 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$43 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$44 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$45 = clsx(u`
|
|
13528
14407
|
color: ${t2(colors.blue[600], colors.blue[400])};
|
|
13529
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$
|
|
14408
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$46 = statusLabel() === "fetching", _v$47 = u`
|
|
13530
14409
|
background-color: ${t2(colors.blue[600], colors.blue[400])};
|
|
13531
|
-
`, _v$
|
|
14410
|
+
`, _v$48 = clsx(u`
|
|
13532
14411
|
color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
13533
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$
|
|
14412
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$49 = queryStatus() === "pending", _v$50 = u`
|
|
13534
14413
|
background-color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
13535
|
-
`, _v$
|
|
14414
|
+
`, _v$51 = clsx(u`
|
|
13536
14415
|
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
13537
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$
|
|
14416
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$52 = queryStatus() === "pending", _v$53 = u`
|
|
13538
14417
|
background-color: ${t2(colors.gray[600], colors.gray[400])};
|
|
13539
|
-
`, _v$
|
|
14418
|
+
`, _v$54 = clsx(u`
|
|
13540
14419
|
color: ${t2(colors.pink[500], colors.pink[400])};
|
|
13541
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$
|
|
14420
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$55 = statusLabel() === "fetching", _v$56 = u`
|
|
13542
14421
|
background-color: ${t2(colors.pink[500], colors.pink[400])};
|
|
13543
|
-
`, _v$
|
|
14422
|
+
`, _v$57 = clsx(u`
|
|
13544
14423
|
color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
13545
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$
|
|
14424
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$58 = restoringLoading(), _v$59 = u`
|
|
13546
14425
|
background-color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
13547
|
-
`, _v$
|
|
13548
|
-
_v$
|
|
13549
|
-
_v$
|
|
13550
|
-
_v$
|
|
13551
|
-
_v$
|
|
13552
|
-
_v$
|
|
13553
|
-
_v$
|
|
13554
|
-
_v$
|
|
13555
|
-
_v$
|
|
13556
|
-
_v$
|
|
13557
|
-
_v$
|
|
13558
|
-
_v$
|
|
13559
|
-
_v$
|
|
13560
|
-
_v$
|
|
13561
|
-
_v$
|
|
13562
|
-
_v$
|
|
13563
|
-
_v$
|
|
13564
|
-
_v$
|
|
13565
|
-
_v$
|
|
13566
|
-
_v$
|
|
13567
|
-
_v$
|
|
13568
|
-
_v$
|
|
13569
|
-
_v$
|
|
13570
|
-
_v$
|
|
14426
|
+
`, _v$60 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$61 = tokens.size[2], _v$62 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$63 = tokens.size[2];
|
|
14427
|
+
_v$39 !== _p$._v$39 && className(_el$60, _p$._v$39 = _v$39);
|
|
14428
|
+
_v$40 !== _p$._v$40 && className(_el$61, _p$._v$40 = _v$40);
|
|
14429
|
+
_v$41 !== _p$._v$41 && className(_el$62, _p$._v$41 = _v$41);
|
|
14430
|
+
_v$42 !== _p$._v$42 && className(_el$66, _p$._v$42 = _v$42);
|
|
14431
|
+
_v$43 !== _p$._v$43 && className(_el$73, _p$._v$43 = _v$43);
|
|
14432
|
+
_v$44 !== _p$._v$44 && className(_el$74, _p$._v$44 = _v$44);
|
|
14433
|
+
_v$45 !== _p$._v$45 && className(_el$75, _p$._v$45 = _v$45);
|
|
14434
|
+
_v$46 !== _p$._v$46 && (_el$75.disabled = _p$._v$46 = _v$46);
|
|
14435
|
+
_v$47 !== _p$._v$47 && className(_el$76, _p$._v$47 = _v$47);
|
|
14436
|
+
_v$48 !== _p$._v$48 && className(_el$77, _p$._v$48 = _v$48);
|
|
14437
|
+
_v$49 !== _p$._v$49 && (_el$77.disabled = _p$._v$49 = _v$49);
|
|
14438
|
+
_v$50 !== _p$._v$50 && className(_el$78, _p$._v$50 = _v$50);
|
|
14439
|
+
_v$51 !== _p$._v$51 && className(_el$79, _p$._v$51 = _v$51);
|
|
14440
|
+
_v$52 !== _p$._v$52 && (_el$79.disabled = _p$._v$52 = _v$52);
|
|
14441
|
+
_v$53 !== _p$._v$53 && className(_el$80, _p$._v$53 = _v$53);
|
|
14442
|
+
_v$54 !== _p$._v$54 && className(_el$81, _p$._v$54 = _v$54);
|
|
14443
|
+
_v$55 !== _p$._v$55 && (_el$81.disabled = _p$._v$55 = _v$55);
|
|
14444
|
+
_v$56 !== _p$._v$56 && className(_el$82, _p$._v$56 = _v$56);
|
|
14445
|
+
_v$57 !== _p$._v$57 && className(_el$83, _p$._v$57 = _v$57);
|
|
14446
|
+
_v$58 !== _p$._v$58 && (_el$83.disabled = _p$._v$58 = _v$58);
|
|
14447
|
+
_v$59 !== _p$._v$59 && className(_el$84, _p$._v$59 = _v$59);
|
|
14448
|
+
_v$60 !== _p$._v$60 && className(_el$94, _p$._v$60 = _v$60);
|
|
14449
|
+
_v$61 !== _p$._v$61 && ((_p$._v$61 = _v$61) != null ? _el$95.style.setProperty("padding", _v$61) : _el$95.style.removeProperty("padding"));
|
|
14450
|
+
_v$62 !== _p$._v$62 && className(_el$96, _p$._v$62 = _v$62);
|
|
14451
|
+
_v$63 !== _p$._v$63 && ((_p$._v$63 = _v$63) != null ? _el$97.style.setProperty("padding", _v$63) : _el$97.style.removeProperty("padding"));
|
|
13571
14452
|
return _p$;
|
|
13572
14453
|
}, {
|
|
13573
|
-
_v$35: void 0,
|
|
13574
|
-
_v$36: void 0,
|
|
13575
|
-
_v$37: void 0,
|
|
13576
|
-
_v$38: void 0,
|
|
13577
14454
|
_v$39: void 0,
|
|
13578
14455
|
_v$40: void 0,
|
|
13579
14456
|
_v$41: void 0,
|
|
@@ -13592,27 +14469,166 @@ var init_Devtools = __esm({
|
|
|
13592
14469
|
_v$54: void 0,
|
|
13593
14470
|
_v$55: void 0,
|
|
13594
14471
|
_v$56: void 0,
|
|
13595
|
-
_v$57: void 0
|
|
14472
|
+
_v$57: void 0,
|
|
14473
|
+
_v$58: void 0,
|
|
14474
|
+
_v$59: void 0,
|
|
14475
|
+
_v$60: void 0,
|
|
14476
|
+
_v$61: void 0,
|
|
14477
|
+
_v$62: void 0,
|
|
14478
|
+
_v$63: void 0
|
|
13596
14479
|
});
|
|
13597
|
-
return _el$
|
|
14480
|
+
return _el$60;
|
|
13598
14481
|
}
|
|
13599
14482
|
});
|
|
13600
14483
|
};
|
|
13601
|
-
|
|
14484
|
+
MutationDetails = () => {
|
|
14485
|
+
const theme = useTheme();
|
|
14486
|
+
const styles = createMemo(() => {
|
|
14487
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
14488
|
+
});
|
|
14489
|
+
const {
|
|
14490
|
+
colors
|
|
14491
|
+
} = tokens;
|
|
14492
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
14493
|
+
const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
14494
|
+
const mutations = mutationCache().getAll();
|
|
14495
|
+
const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
|
|
14496
|
+
if (!mutation)
|
|
14497
|
+
return false;
|
|
14498
|
+
return mutation.state.isPaused;
|
|
14499
|
+
});
|
|
14500
|
+
const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
14501
|
+
const mutations = mutationCache().getAll();
|
|
14502
|
+
const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
|
|
14503
|
+
if (!mutation)
|
|
14504
|
+
return "idle";
|
|
14505
|
+
return mutation.state.status;
|
|
14506
|
+
});
|
|
14507
|
+
const color = createMemo(() => getMutationStatusColor({
|
|
14508
|
+
isPaused: isPaused(),
|
|
14509
|
+
status: status()
|
|
14510
|
+
}));
|
|
14511
|
+
const activeMutation = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().find((mutation) => mutation.mutationId === selectedMutationId()), false);
|
|
14512
|
+
const getQueryStatusColors = () => {
|
|
14513
|
+
if (color() === "gray") {
|
|
14514
|
+
return u`
|
|
14515
|
+
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
14516
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
14517
|
+
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
14518
|
+
`;
|
|
14519
|
+
}
|
|
14520
|
+
return u`
|
|
14521
|
+
background-color: ${t2(colors[color()][100], colors[color()][900])};
|
|
14522
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
14523
|
+
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
14524
|
+
`;
|
|
14525
|
+
};
|
|
14526
|
+
return createComponent(Show, {
|
|
14527
|
+
get when() {
|
|
14528
|
+
return activeMutation();
|
|
14529
|
+
},
|
|
14530
|
+
get children() {
|
|
14531
|
+
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;
|
|
14532
|
+
insert(_el$104, createComponent(Show, {
|
|
14533
|
+
get when() {
|
|
14534
|
+
return activeMutation().options.mutationKey;
|
|
14535
|
+
},
|
|
14536
|
+
fallback: "No mutationKey found",
|
|
14537
|
+
get children() {
|
|
14538
|
+
return displayValue(activeMutation().options.mutationKey, true);
|
|
14539
|
+
}
|
|
14540
|
+
}));
|
|
14541
|
+
insert(_el$105, createComponent(Show, {
|
|
14542
|
+
get when() {
|
|
14543
|
+
return color() === "purple";
|
|
14544
|
+
},
|
|
14545
|
+
children: "pending"
|
|
14546
|
+
}), null);
|
|
14547
|
+
insert(_el$105, createComponent(Show, {
|
|
14548
|
+
get when() {
|
|
14549
|
+
return color() !== "purple";
|
|
14550
|
+
},
|
|
14551
|
+
get children() {
|
|
14552
|
+
return status();
|
|
14553
|
+
}
|
|
14554
|
+
}), null);
|
|
14555
|
+
insert(_el$108, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
|
|
14556
|
+
insert(_el$110, createComponent(Explorer, {
|
|
14557
|
+
label: "Variables",
|
|
14558
|
+
defaultExpanded: ["Variables"],
|
|
14559
|
+
get value() {
|
|
14560
|
+
return activeMutation().state.variables;
|
|
14561
|
+
}
|
|
14562
|
+
}));
|
|
14563
|
+
insert(_el$112, createComponent(Explorer, {
|
|
14564
|
+
label: "Context",
|
|
14565
|
+
defaultExpanded: ["Context"],
|
|
14566
|
+
get value() {
|
|
14567
|
+
return activeMutation().state.context;
|
|
14568
|
+
}
|
|
14569
|
+
}));
|
|
14570
|
+
insert(_el$114, createComponent(Explorer, {
|
|
14571
|
+
label: "Data",
|
|
14572
|
+
defaultExpanded: ["Data"],
|
|
14573
|
+
get value() {
|
|
14574
|
+
return activeMutation().state.data;
|
|
14575
|
+
}
|
|
14576
|
+
}));
|
|
14577
|
+
insert(_el$116, createComponent(Explorer, {
|
|
14578
|
+
label: "Mutation",
|
|
14579
|
+
defaultExpanded: ["Mutation"],
|
|
14580
|
+
get value() {
|
|
14581
|
+
return activeMutation();
|
|
14582
|
+
}
|
|
14583
|
+
}));
|
|
14584
|
+
createRenderEffect((_p$) => {
|
|
14585
|
+
const _v$64 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$65 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$66 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$67 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$68 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$69 = tokens.size[2], _v$70 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$71 = tokens.size[2], _v$72 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$73 = tokens.size[2], _v$74 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$75 = tokens.size[2];
|
|
14586
|
+
_v$64 !== _p$._v$64 && className(_el$99, _p$._v$64 = _v$64);
|
|
14587
|
+
_v$65 !== _p$._v$65 && className(_el$100, _p$._v$65 = _v$65);
|
|
14588
|
+
_v$66 !== _p$._v$66 && className(_el$101, _p$._v$66 = _v$66);
|
|
14589
|
+
_v$67 !== _p$._v$67 && className(_el$105, _p$._v$67 = _v$67);
|
|
14590
|
+
_v$68 !== _p$._v$68 && className(_el$109, _p$._v$68 = _v$68);
|
|
14591
|
+
_v$69 !== _p$._v$69 && ((_p$._v$69 = _v$69) != null ? _el$110.style.setProperty("padding", _v$69) : _el$110.style.removeProperty("padding"));
|
|
14592
|
+
_v$70 !== _p$._v$70 && className(_el$111, _p$._v$70 = _v$70);
|
|
14593
|
+
_v$71 !== _p$._v$71 && ((_p$._v$71 = _v$71) != null ? _el$112.style.setProperty("padding", _v$71) : _el$112.style.removeProperty("padding"));
|
|
14594
|
+
_v$72 !== _p$._v$72 && className(_el$113, _p$._v$72 = _v$72);
|
|
14595
|
+
_v$73 !== _p$._v$73 && ((_p$._v$73 = _v$73) != null ? _el$114.style.setProperty("padding", _v$73) : _el$114.style.removeProperty("padding"));
|
|
14596
|
+
_v$74 !== _p$._v$74 && className(_el$115, _p$._v$74 = _v$74);
|
|
14597
|
+
_v$75 !== _p$._v$75 && ((_p$._v$75 = _v$75) != null ? _el$116.style.setProperty("padding", _v$75) : _el$116.style.removeProperty("padding"));
|
|
14598
|
+
return _p$;
|
|
14599
|
+
}, {
|
|
14600
|
+
_v$64: void 0,
|
|
14601
|
+
_v$65: void 0,
|
|
14602
|
+
_v$66: void 0,
|
|
14603
|
+
_v$67: void 0,
|
|
14604
|
+
_v$68: void 0,
|
|
14605
|
+
_v$69: void 0,
|
|
14606
|
+
_v$70: void 0,
|
|
14607
|
+
_v$71: void 0,
|
|
14608
|
+
_v$72: void 0,
|
|
14609
|
+
_v$73: void 0,
|
|
14610
|
+
_v$74: void 0,
|
|
14611
|
+
_v$75: void 0
|
|
14612
|
+
});
|
|
14613
|
+
return _el$99;
|
|
14614
|
+
}
|
|
14615
|
+
});
|
|
14616
|
+
};
|
|
14617
|
+
queryCacheMap = /* @__PURE__ */ new Map();
|
|
13602
14618
|
setupQueryCacheSubscription = () => {
|
|
13603
14619
|
const queryCache = createMemo(() => {
|
|
13604
14620
|
const client = useQueryDevtoolsContext().client;
|
|
13605
14621
|
return client.getQueryCache();
|
|
13606
14622
|
});
|
|
13607
14623
|
const unsub = queryCache().subscribe(() => {
|
|
13608
|
-
for (const [callback, setter] of
|
|
14624
|
+
for (const [callback, setter] of queryCacheMap.entries()) {
|
|
13609
14625
|
queueMicrotask(() => {
|
|
13610
14626
|
setter(callback(queryCache));
|
|
13611
14627
|
});
|
|
13612
14628
|
}
|
|
13613
14629
|
});
|
|
13614
14630
|
onCleanup(() => {
|
|
13615
|
-
|
|
14631
|
+
queryCacheMap.clear();
|
|
13616
14632
|
unsub();
|
|
13617
14633
|
});
|
|
13618
14634
|
return unsub;
|
|
@@ -13628,9 +14644,45 @@ var init_Devtools = __esm({
|
|
|
13628
14644
|
createEffect(() => {
|
|
13629
14645
|
setValue(callback(queryCache));
|
|
13630
14646
|
});
|
|
13631
|
-
|
|
14647
|
+
queryCacheMap.set(callback, setValue);
|
|
13632
14648
|
onCleanup(() => {
|
|
13633
|
-
|
|
14649
|
+
queryCacheMap.delete(callback);
|
|
14650
|
+
});
|
|
14651
|
+
return value;
|
|
14652
|
+
};
|
|
14653
|
+
mutationCacheMap = /* @__PURE__ */ new Map();
|
|
14654
|
+
setupMutationCacheSubscription = () => {
|
|
14655
|
+
const mutationCache = createMemo(() => {
|
|
14656
|
+
const client = useQueryDevtoolsContext().client;
|
|
14657
|
+
return client.getMutationCache();
|
|
14658
|
+
});
|
|
14659
|
+
const unsub = mutationCache().subscribe(() => {
|
|
14660
|
+
for (const [callback, setter] of mutationCacheMap.entries()) {
|
|
14661
|
+
queueMicrotask(() => {
|
|
14662
|
+
setter(callback(mutationCache));
|
|
14663
|
+
});
|
|
14664
|
+
}
|
|
14665
|
+
});
|
|
14666
|
+
onCleanup(() => {
|
|
14667
|
+
mutationCacheMap.clear();
|
|
14668
|
+
unsub();
|
|
14669
|
+
});
|
|
14670
|
+
return unsub;
|
|
14671
|
+
};
|
|
14672
|
+
createSubscribeToMutationCacheBatcher = (callback, equalityCheck = true) => {
|
|
14673
|
+
const mutationCache = createMemo(() => {
|
|
14674
|
+
const client = useQueryDevtoolsContext().client;
|
|
14675
|
+
return client.getMutationCache();
|
|
14676
|
+
});
|
|
14677
|
+
const [value, setValue] = createSignal(callback(mutationCache), !equalityCheck ? {
|
|
14678
|
+
equals: false
|
|
14679
|
+
} : void 0);
|
|
14680
|
+
createEffect(() => {
|
|
14681
|
+
setValue(callback(mutationCache));
|
|
14682
|
+
});
|
|
14683
|
+
mutationCacheMap.set(callback, setValue);
|
|
14684
|
+
onCleanup(() => {
|
|
14685
|
+
mutationCacheMap.delete(callback);
|
|
13634
14686
|
});
|
|
13635
14687
|
return value;
|
|
13636
14688
|
};
|
|
@@ -13730,7 +14782,7 @@ var init_Devtools = __esm({
|
|
|
13730
14782
|
right: 0;
|
|
13731
14783
|
left: 0;
|
|
13732
14784
|
max-height: 90%;
|
|
13733
|
-
min-height:
|
|
14785
|
+
min-height: ${size2[14]};
|
|
13734
14786
|
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13735
14787
|
`,
|
|
13736
14788
|
"panel-position-bottom": u`
|
|
@@ -13738,7 +14790,7 @@ var init_Devtools = __esm({
|
|
|
13738
14790
|
right: 0;
|
|
13739
14791
|
left: 0;
|
|
13740
14792
|
max-height: 90%;
|
|
13741
|
-
min-height:
|
|
14793
|
+
min-height: ${size2[14]};
|
|
13742
14794
|
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13743
14795
|
`,
|
|
13744
14796
|
"panel-position-right": u`
|
|
@@ -13912,7 +14964,7 @@ var init_Devtools = __esm({
|
|
|
13912
14964
|
justify-content: space-between;
|
|
13913
14965
|
align-items: center;
|
|
13914
14966
|
padding: ${tokens.size[2]} ${tokens.size[2.5]};
|
|
13915
|
-
gap: ${tokens.size[
|
|
14967
|
+
gap: ${tokens.size[2.5]};
|
|
13916
14968
|
border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
|
|
13917
14969
|
align-items: center;
|
|
13918
14970
|
& > button {
|
|
@@ -13923,9 +14975,20 @@ var init_Devtools = __esm({
|
|
|
13923
14975
|
gap: ${size2[0.5]};
|
|
13924
14976
|
flex-direction: column;
|
|
13925
14977
|
}
|
|
14978
|
+
`,
|
|
14979
|
+
logoAndToggleContainer: u`
|
|
14980
|
+
display: flex;
|
|
14981
|
+
gap: ${tokens.size[3]};
|
|
14982
|
+
align-items: center;
|
|
13926
14983
|
`,
|
|
13927
14984
|
logo: u`
|
|
13928
14985
|
cursor: pointer;
|
|
14986
|
+
display: flex;
|
|
14987
|
+
flex-direction: column;
|
|
14988
|
+
background-color: transparent;
|
|
14989
|
+
border: none;
|
|
14990
|
+
gap: ${tokens.size[0.5]};
|
|
14991
|
+
padding: 0px;
|
|
13929
14992
|
&:hover {
|
|
13930
14993
|
opacity: 0.7;
|
|
13931
14994
|
}
|
|
@@ -14059,6 +15122,8 @@ var init_Devtools = __esm({
|
|
|
14059
15122
|
outline: 2px solid ${colors.blue[800]};
|
|
14060
15123
|
}
|
|
14061
15124
|
& svg {
|
|
15125
|
+
width: ${tokens.size[3]};
|
|
15126
|
+
height: ${tokens.size[3]};
|
|
14062
15127
|
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
14063
15128
|
}
|
|
14064
15129
|
}
|
|
@@ -14144,8 +15209,8 @@ var init_Devtools = __esm({
|
|
|
14144
15209
|
border-radius: ${tokens.border.radius.sm};
|
|
14145
15210
|
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
14146
15211
|
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
14147
|
-
width:
|
|
14148
|
-
height:
|
|
15212
|
+
width: ${tokens.size[6.5]};
|
|
15213
|
+
height: ${tokens.size[6.5]};
|
|
14149
15214
|
justify-content: center;
|
|
14150
15215
|
display: flex;
|
|
14151
15216
|
align-items: center;
|
|
@@ -14297,6 +15362,8 @@ var init_Devtools = __esm({
|
|
|
14297
15362
|
|
|
14298
15363
|
& pre {
|
|
14299
15364
|
margin: 0;
|
|
15365
|
+
display: flex;
|
|
15366
|
+
align-items: center;
|
|
14300
15367
|
}
|
|
14301
15368
|
`,
|
|
14302
15369
|
queryDetailsStatus: u`
|
|
@@ -14476,6 +15543,56 @@ var init_Devtools = __esm({
|
|
|
14476
15543
|
&:hover {
|
|
14477
15544
|
background-color: ${t2(colors.purple[100], colors.purple[900])};
|
|
14478
15545
|
}
|
|
15546
|
+
`,
|
|
15547
|
+
viewToggle: u`
|
|
15548
|
+
border-radius: ${tokens.border.radius.sm};
|
|
15549
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[600])};
|
|
15550
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
15551
|
+
display: flex;
|
|
15552
|
+
padding: 0;
|
|
15553
|
+
font-size: ${font.size.xs};
|
|
15554
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
15555
|
+
overflow: hidden;
|
|
15556
|
+
|
|
15557
|
+
&:has(:focus-visible) {
|
|
15558
|
+
outline: 2px solid ${colors.blue[800]};
|
|
15559
|
+
}
|
|
15560
|
+
|
|
15561
|
+
& .tsqd-radio-toggle {
|
|
15562
|
+
opacity: 0.5;
|
|
15563
|
+
display: flex;
|
|
15564
|
+
& label {
|
|
15565
|
+
display: flex;
|
|
15566
|
+
align-items: center;
|
|
15567
|
+
cursor: pointer;
|
|
15568
|
+
line-height: ${font.lineHeight.md};
|
|
15569
|
+
}
|
|
15570
|
+
|
|
15571
|
+
& label:hover {
|
|
15572
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[500])};
|
|
15573
|
+
}
|
|
15574
|
+
}
|
|
15575
|
+
|
|
15576
|
+
& > [data-checked] {
|
|
15577
|
+
opacity: 1;
|
|
15578
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
15579
|
+
& label:hover {
|
|
15580
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
15581
|
+
}
|
|
15582
|
+
}
|
|
15583
|
+
|
|
15584
|
+
& .tsqd-radio-toggle:first-child {
|
|
15585
|
+
& label {
|
|
15586
|
+
padding: 0 ${tokens.size[1.5]} 0 ${tokens.size[2]};
|
|
15587
|
+
}
|
|
15588
|
+
border-right: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
15589
|
+
}
|
|
15590
|
+
|
|
15591
|
+
& .tsqd-radio-toggle:nth-child(2) {
|
|
15592
|
+
& label {
|
|
15593
|
+
padding: 0 ${tokens.size[2]} 0 ${tokens.size[1.5]};
|
|
15594
|
+
}
|
|
15595
|
+
}
|
|
14479
15596
|
`
|
|
14480
15597
|
};
|
|
14481
15598
|
};
|