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