@hot-updater/console 0.33.0 → 0.33.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/.output/nitro.json +3 -3
- package/.output/public/assets/dist-DJX53faP.js +3 -0
- package/.output/public/assets/index-CCUspZZV.js +10 -0
- package/.output/public/assets/routes-D0t6y5Fr.js +54 -0
- package/.output/public/assets/styles-C0q26dS-.css +2 -0
- package/.output/server/{__tanstack-start-server-fn-resolver-ySzPUDlM.mjs → __23tanstack-start-server-fn-resolver-B12pVvhf.mjs} +32 -39
- package/.output/server/_chunks/ssr-renderer.mjs +14 -3
- package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +7 -7
- package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +142 -93
- package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +32 -11
- package/.output/server/_libs/@radix-ui/react-select+[...].mjs +130 -95
- package/.output/server/_libs/@tanstack/form-core+[...].mjs +1138 -306
- package/.output/server/_libs/@tanstack/react-form+[...].mjs +156 -24
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +2658 -1395
- package/.output/server/_libs/@tanstack/react-table+[...].mjs +1 -1
- package/.output/server/_libs/dayjs.mjs +6 -6
- package/.output/server/_libs/h3+rou3+srvx.mjs +30 -42
- package/.output/server/_libs/lucide-react.mjs +8 -8
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/radix-ui__number.mjs +1 -1
- package/.output/server/_libs/radix-ui__react-arrow.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-collection.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-direction.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-label.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-separator.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-slider.mjs +103 -44
- package/.output/server/_libs/radix-ui__react-switch.mjs +88 -49
- package/.output/server/_libs/radix-ui__react-tooltip.mjs +6 -4
- package/.output/server/_libs/semver.mjs +97 -52
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tailwind-merge.mjs +51 -3
- package/.output/server/_libs/tanstack__history.mjs +28 -8
- package/.output/server/_libs/tanstack__query-core.mjs +200 -174
- package/.output/server/_libs/tanstack__react-query.mjs +14 -13
- package/.output/server/_ssr/{api-rpc-Bwustks9.mjs → api-rpc-ORImfBFu.mjs} +18 -18
- package/.output/server/_ssr/{config.server-xu3W-WAK.mjs → config.server-BSS366KT.mjs} +2 -2
- package/.output/server/_ssr/{createServerFn-CdeRXnVy.mjs → createServerFn-DzU0k62V.mjs} +129 -90
- package/.output/server/_ssr/{deleteBundle-CXxwjwEZ.mjs → deleteBundle-CuujBAH8.mjs} +2 -2
- package/.output/server/_ssr/{dist-CRiLZLfa.mjs → dist-KboydRVk.mjs} +1 -1
- package/.output/server/_ssr/empty-plugin-adapters-B4HCzgmM.mjs +5 -0
- package/.output/server/_ssr/{getBundleChildren-DFqZ6XMp.mjs → getBundleChildren-CVtSiH5t.mjs} +2 -2
- package/.output/server/_ssr/{router-1tw3jh6y.mjs → router-DmdnzGpe.mjs} +7 -8
- package/.output/server/_ssr/{routes-D5CmWxI7.mjs → routes-Be7gDfJS.mjs} +36 -39
- package/.output/server/_ssr/{sidebar-CgbtXkE2.mjs → sidebar-Cv_H0_Jv.mjs} +5 -5
- package/.output/server/_ssr/ssr.mjs +4222 -3153
- package/.output/server/_ssr/start-D4SBEASt.mjs +4 -0
- package/.output/server/_ssr/{storageProfile-wICk5nZZ.mjs → storageProfile-FVkjPoGb.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-BroBMdSR.mjs +20 -0
- package/.output/server/index.mjs +128 -172
- package/package.json +12 -9
- package/.output/public/assets/BaseTanStackRouterDevtoolsPanel-Bmws3ikM-q5p5qKUx.js +0 -486
- package/.output/public/assets/FloatingTanStackRouterDevtools-B7vy70jP-Bzs2Gthe.js +0 -1
- package/.output/public/assets/clsx-CbprLf2V.js +0 -1
- package/.output/public/assets/dist-BzU1qUss.js +0 -9
- package/.output/public/assets/main-CmNeAg9B.js +0 -10
- package/.output/public/assets/preload-helper-C5ST2IKa.js +0 -1
- package/.output/public/assets/routes-wJZuGodi.js +0 -54
- package/.output/public/assets/styles-DEbMLh52.css +0 -2
- package/.output/server/_libs/hookable.mjs +0 -41
- package/.output/server/_libs/tanstack__router-core.mjs +0 -6
- package/.output/server/_libs/unctx.mjs +0 -82
- package/.output/server/_ssr/start-CoRKunFF.mjs +0 -4
- package/.output/server/_tanstack-start-manifest_v-AftZl081.mjs +0 -22
|
@@ -2,7 +2,7 @@ import { r as __toESM, t as __commonJSMin } from "../../_runtime.mjs";
|
|
|
2
2
|
import { l as require_react_dom, u as require_react } from "../@floating-ui/react-dom+[...].mjs";
|
|
3
3
|
import { t as composeEventHandlers } from "../radix-ui__primitive.mjs";
|
|
4
4
|
import { __assign, __rest, __spreadArray } from "tslib";
|
|
5
|
-
//#region ../../node_modules/.pnpm/react@19.2.
|
|
5
|
+
//#region ../../node_modules/.pnpm/react@19.2.6/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -36,15 +36,15 @@ var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((expor
|
|
|
36
36
|
exports.jsxs = jsxProd;
|
|
37
37
|
}));
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../../node_modules/.pnpm/react@19.2.
|
|
39
|
+
//#region ../../node_modules/.pnpm/react@19.2.6/node_modules/react/jsx-runtime.js
|
|
40
40
|
var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
41
41
|
module.exports = require_react_jsx_runtime_production();
|
|
42
42
|
}));
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.
|
|
44
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.3_@types+react@19.2.15_react@19.2.6/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
45
45
|
var import_jsx_runtime = require_jsx_runtime();
|
|
46
46
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
47
|
-
function setRef(ref, value) {
|
|
47
|
+
function setRef$1(ref, value) {
|
|
48
48
|
if (typeof ref === "function") return ref(value);
|
|
49
49
|
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
50
50
|
}
|
|
@@ -52,7 +52,7 @@ function composeRefs(...refs) {
|
|
|
52
52
|
return (node) => {
|
|
53
53
|
let hasCleanup = false;
|
|
54
54
|
const cleanups = refs.map((ref) => {
|
|
55
|
-
const cleanup = setRef(ref, node);
|
|
55
|
+
const cleanup = setRef$1(ref, node);
|
|
56
56
|
if (!hasCleanup && typeof cleanup == "function") hasCleanup = true;
|
|
57
57
|
return cleanup;
|
|
58
58
|
});
|
|
@@ -60,7 +60,7 @@ function composeRefs(...refs) {
|
|
|
60
60
|
for (let i = 0; i < cleanups.length; i++) {
|
|
61
61
|
const cleanup = cleanups[i];
|
|
62
62
|
if (typeof cleanup == "function") cleanup();
|
|
63
|
-
else setRef(refs[i], null);
|
|
63
|
+
else setRef$1(refs[i], null);
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
};
|
|
@@ -69,67 +69,58 @@ function useComposedRefs(...refs) {
|
|
|
69
69
|
return import_react.useCallback(composeRefs(...refs), refs);
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.
|
|
72
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.5_@types+react@19.2.15_react@19.2.6/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
73
73
|
var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
74
74
|
/* @__NO_SIDE_EFFECTS__ */
|
|
75
75
|
function createSlot(ownerName) {
|
|
76
|
-
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
77
76
|
const Slot2 = import_react.forwardRef((props, forwardedRef) => {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
children: import_react.isValidElement(newElement) ? import_react.cloneElement(newElement, void 0, newChildren) : null
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlotClone, {
|
|
96
|
-
...slotProps,
|
|
97
|
-
ref: forwardedRef,
|
|
98
|
-
children
|
|
77
|
+
let { children, ...slotProps } = props;
|
|
78
|
+
let slottableElement = null;
|
|
79
|
+
let hasSlottable = false;
|
|
80
|
+
const newChildren = [];
|
|
81
|
+
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
82
|
+
import_react.Children.forEach(children, (maybeSlottable) => {
|
|
83
|
+
if (isSlottable(maybeSlottable)) {
|
|
84
|
+
hasSlottable = true;
|
|
85
|
+
const slottable = maybeSlottable;
|
|
86
|
+
let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
|
|
87
|
+
if (isLazyComponent(child) && typeof use === "function") child = use(child._payload);
|
|
88
|
+
slottableElement = getSlottableElementFromSlottable(slottable, child);
|
|
89
|
+
newChildren.push(slottableElement?.props?.children);
|
|
90
|
+
} else newChildren.push(maybeSlottable);
|
|
99
91
|
});
|
|
92
|
+
if (slottableElement) slottableElement = import_react.cloneElement(slottableElement, void 0, newChildren);
|
|
93
|
+
else if (!hasSlottable && import_react.Children.count(children) === 1 && import_react.isValidElement(children)) slottableElement = children;
|
|
94
|
+
const slottableElementRef = slottableElement ? getElementRef$1(slottableElement) : void 0;
|
|
95
|
+
const composedRef = useComposedRefs(forwardedRef, slottableElementRef);
|
|
96
|
+
if (!slottableElement) {
|
|
97
|
+
if (children || children === 0) throw new Error(hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName));
|
|
98
|
+
return children;
|
|
99
|
+
}
|
|
100
|
+
const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
|
|
101
|
+
if (slottableElement.type !== import_react.Fragment) mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
|
|
102
|
+
return import_react.cloneElement(slottableElement, mergedProps);
|
|
100
103
|
});
|
|
101
104
|
Slot2.displayName = `${ownerName}.Slot`;
|
|
102
105
|
return Slot2;
|
|
103
106
|
}
|
|
104
107
|
var Slot$1 = /* @__PURE__ */ createSlot("Slot");
|
|
105
|
-
|
|
106
|
-
function createSlotClone(ownerName) {
|
|
107
|
-
const SlotClone = import_react.forwardRef((props, forwardedRef) => {
|
|
108
|
-
const { children, ...slotProps } = props;
|
|
109
|
-
if (import_react.isValidElement(children)) {
|
|
110
|
-
const childrenRef = getElementRef$1(children);
|
|
111
|
-
const props2 = mergeProps(slotProps, children.props);
|
|
112
|
-
if (children.type !== import_react.Fragment) props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
113
|
-
return import_react.cloneElement(children, props2);
|
|
114
|
-
}
|
|
115
|
-
return import_react.Children.count(children) > 1 ? import_react.Children.only(null) : null;
|
|
116
|
-
});
|
|
117
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
118
|
-
return SlotClone;
|
|
119
|
-
}
|
|
120
|
-
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
108
|
+
var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
|
|
121
109
|
/* @__NO_SIDE_EFFECTS__ */
|
|
122
110
|
function createSlottable(ownerName) {
|
|
123
|
-
const Slottable2 = (
|
|
124
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
|
125
|
-
};
|
|
111
|
+
const Slottable2 = (props) => "child" in props ? props.children(props.child) : props.children;
|
|
126
112
|
Slottable2.displayName = `${ownerName}.Slottable`;
|
|
127
113
|
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
|
128
114
|
return Slottable2;
|
|
129
115
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
116
|
+
var getSlottableElementFromSlottable = (slottable, child) => {
|
|
117
|
+
if ("child" in slottable.props) {
|
|
118
|
+
const child2 = slottable.props.child;
|
|
119
|
+
if (!import_react.isValidElement(child2)) return null;
|
|
120
|
+
return import_react.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
|
|
121
|
+
}
|
|
122
|
+
return import_react.isValidElement(child) ? child : null;
|
|
123
|
+
};
|
|
133
124
|
function mergeProps(slotProps, childProps) {
|
|
134
125
|
const overrideProps = { ...childProps };
|
|
135
126
|
for (const propName in childProps) {
|
|
@@ -162,8 +153,25 @@ function getElementRef$1(element) {
|
|
|
162
153
|
if (mayWarn) return element.props.ref;
|
|
163
154
|
return element.props.ref || element.ref;
|
|
164
155
|
}
|
|
156
|
+
function isSlottable(child) {
|
|
157
|
+
return import_react.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
158
|
+
}
|
|
159
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
160
|
+
function isLazyComponent(element) {
|
|
161
|
+
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
162
|
+
}
|
|
163
|
+
function isPromiseLike(value) {
|
|
164
|
+
return typeof value === "object" && value !== null && "then" in value;
|
|
165
|
+
}
|
|
166
|
+
var createSlotError = (ownerName) => {
|
|
167
|
+
return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
|
|
168
|
+
};
|
|
169
|
+
var createSlottableError = (ownerName) => {
|
|
170
|
+
return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
|
|
171
|
+
};
|
|
172
|
+
var use = import_react[" use ".trim().toString()];
|
|
165
173
|
//#endregion
|
|
166
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.
|
|
174
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.5_@types+react-dom@19.2.3_@types+react@19.2.15__@types+re_859fe5701657306b7ae1c013ff1125f7/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
167
175
|
var Primitive = [
|
|
168
176
|
"a",
|
|
169
177
|
"button",
|
|
@@ -203,9 +211,10 @@ function dispatchDiscreteCustomEvent(target, event) {
|
|
|
203
211
|
if (target) import_react_dom.flushSync(() => target.dispatchEvent(event));
|
|
204
212
|
}
|
|
205
213
|
//#endregion
|
|
206
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.1.
|
|
214
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.1.4_@types+react@19.2.15_react@19.2.6/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
207
215
|
function createContext2(rootComponentName, defaultContext) {
|
|
208
216
|
const Context = import_react.createContext(defaultContext);
|
|
217
|
+
Context.displayName = rootComponentName + "Context";
|
|
209
218
|
const Provider = (props) => {
|
|
210
219
|
const { children, ...context } = props;
|
|
211
220
|
const value = import_react.useMemo(() => context, Object.values(context));
|
|
@@ -227,6 +236,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
227
236
|
let defaultContexts = [];
|
|
228
237
|
function createContext3(rootComponentName, defaultContext) {
|
|
229
238
|
const BaseContext = import_react.createContext(defaultContext);
|
|
239
|
+
BaseContext.displayName = rootComponentName + "Context";
|
|
230
240
|
const index = defaultContexts.length;
|
|
231
241
|
defaultContexts = [...defaultContexts, defaultContext];
|
|
232
242
|
const Provider = (props) => {
|
|
@@ -286,10 +296,10 @@ function composeContextScopes(...scopes) {
|
|
|
286
296
|
return createScope;
|
|
287
297
|
}
|
|
288
298
|
//#endregion
|
|
289
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.
|
|
299
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.2_@types+react@19.2.15_react@19.2.6/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
290
300
|
var useLayoutEffect2 = globalThis?.document ? import_react.useLayoutEffect : () => {};
|
|
291
301
|
//#endregion
|
|
292
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.
|
|
302
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.3_@types+react@19.2.15_react@19.2.6/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
293
303
|
var useInsertionEffect = import_react[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
294
304
|
function useControllableState({ prop, defaultProp, onChange = () => {}, caller }) {
|
|
295
305
|
const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
|
|
@@ -341,7 +351,7 @@ function isFunction(value) {
|
|
|
341
351
|
return typeof value === "function";
|
|
342
352
|
}
|
|
343
353
|
//#endregion
|
|
344
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.
|
|
354
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.6_@types+react-dom@19.2.3_@types+react@19.2.15__@types+rea_40b556cd56efb44c5867d946559e1d0f/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
345
355
|
function useStateMachine(initialState, machine) {
|
|
346
356
|
return import_react.useReducer((state, event) => {
|
|
347
357
|
return machine[state][event] ?? state;
|
|
@@ -351,7 +361,7 @@ var Presence = (props) => {
|
|
|
351
361
|
const { present, children } = props;
|
|
352
362
|
const presence = usePresence(present);
|
|
353
363
|
const child = typeof children === "function" ? children({ present: presence.isPresent }) : import_react.Children.only(children);
|
|
354
|
-
const ref =
|
|
364
|
+
const ref = useStableComposedRefs(presence.ref, getElementRef(child));
|
|
355
365
|
return typeof children === "function" || presence.isPresent ? import_react.cloneElement(child, { ref }) : null;
|
|
356
366
|
};
|
|
357
367
|
Presence.displayName = "Presence";
|
|
@@ -427,6 +437,30 @@ function usePresence(present) {
|
|
|
427
437
|
}, [])
|
|
428
438
|
};
|
|
429
439
|
}
|
|
440
|
+
function setRef(ref, value) {
|
|
441
|
+
if (typeof ref === "function") return ref(value);
|
|
442
|
+
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
443
|
+
}
|
|
444
|
+
function useStableComposedRefs(...refs) {
|
|
445
|
+
const refsRef = import_react.useRef(refs);
|
|
446
|
+
refsRef.current = refs;
|
|
447
|
+
return import_react.useCallback((node) => {
|
|
448
|
+
const currentRefs = refsRef.current;
|
|
449
|
+
let hasCleanup = false;
|
|
450
|
+
const cleanups = currentRefs.map((ref) => {
|
|
451
|
+
const cleanup = setRef(ref, node);
|
|
452
|
+
if (!hasCleanup && typeof cleanup === "function") hasCleanup = true;
|
|
453
|
+
return cleanup;
|
|
454
|
+
});
|
|
455
|
+
if (hasCleanup) return () => {
|
|
456
|
+
for (let i = 0; i < cleanups.length; i++) {
|
|
457
|
+
const cleanup = cleanups[i];
|
|
458
|
+
if (typeof cleanup === "function") cleanup();
|
|
459
|
+
else setRef(currentRefs[i], null);
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
}, []);
|
|
463
|
+
}
|
|
430
464
|
function getAnimationName(styles) {
|
|
431
465
|
return styles?.animationName || "none";
|
|
432
466
|
}
|
|
@@ -440,7 +474,7 @@ function getElementRef(element) {
|
|
|
440
474
|
return element.props.ref || element.ref;
|
|
441
475
|
}
|
|
442
476
|
//#endregion
|
|
443
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.
|
|
477
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.2_@types+react@19.2.15_react@19.2.6/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
444
478
|
var useReactId = import_react[" useId ".trim().toString()] || (() => void 0);
|
|
445
479
|
var count$1 = 0;
|
|
446
480
|
function useId(deterministicId) {
|
|
@@ -451,16 +485,16 @@ function useId(deterministicId) {
|
|
|
451
485
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
452
486
|
}
|
|
453
487
|
//#endregion
|
|
454
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.
|
|
488
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.2_@types+react@19.2.15_react@19.2.6/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
455
489
|
function useCallbackRef$1(callback) {
|
|
456
490
|
const callbackRef = import_react.useRef(callback);
|
|
457
491
|
import_react.useEffect(() => {
|
|
458
492
|
callbackRef.current = callback;
|
|
459
493
|
});
|
|
460
|
-
return import_react.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
494
|
+
return import_react.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);
|
|
461
495
|
}
|
|
462
496
|
//#endregion
|
|
463
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.
|
|
497
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.2_@types+react@19.2.15_react@19.2.6/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
464
498
|
function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
|
|
465
499
|
const onEscapeKeyDown = useCallbackRef$1(onEscapeKeyDownProp);
|
|
466
500
|
import_react.useEffect(() => {
|
|
@@ -472,7 +506,7 @@ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.docum
|
|
|
472
506
|
}, [onEscapeKeyDown, ownerDocument]);
|
|
473
507
|
}
|
|
474
508
|
//#endregion
|
|
475
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.
|
|
509
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.12_@types+react-dom@19.2.3_@types+react@19.2.15___a1374686edc458660779cbe51e25b015/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
476
510
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
|
477
511
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
478
512
|
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
@@ -531,7 +565,10 @@ var DismissableLayer = import_react.forwardRef((props, forwardedRef) => {
|
|
|
531
565
|
context.layers.add(node);
|
|
532
566
|
dispatchUpdate();
|
|
533
567
|
return () => {
|
|
534
|
-
if (disableOutsidePointerEvents
|
|
568
|
+
if (disableOutsidePointerEvents) {
|
|
569
|
+
context.layersWithOutsidePointerEventsDisabled.delete(node);
|
|
570
|
+
if (context.layersWithOutsidePointerEventsDisabled.size === 0) ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;
|
|
571
|
+
}
|
|
535
572
|
};
|
|
536
573
|
}, [
|
|
537
574
|
node,
|
|
@@ -646,7 +683,7 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
|
|
|
646
683
|
else target.dispatchEvent(event);
|
|
647
684
|
}
|
|
648
685
|
//#endregion
|
|
649
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.
|
|
686
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.9_@types+react-dom@19.2.3_@types+react@19.2.15__@types+_fd8da5428a73e50a6ee6ad4818c5385e/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
650
687
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
651
688
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
652
689
|
var EVENT_OPTIONS = {
|
|
@@ -835,7 +872,7 @@ function removeLinks(items) {
|
|
|
835
872
|
return items.filter((item) => item.tagName !== "A");
|
|
836
873
|
}
|
|
837
874
|
//#endregion
|
|
838
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.
|
|
875
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.15__@types+reac_b16bb4fb4120c82d112504cf3656dd91/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
839
876
|
var PORTAL_NAME$2 = "Portal";
|
|
840
877
|
var Portal$1 = import_react.forwardRef((props, forwardedRef) => {
|
|
841
878
|
const { container: containerProp, ...portalProps } = props;
|
|
@@ -849,17 +886,26 @@ var Portal$1 = import_react.forwardRef((props, forwardedRef) => {
|
|
|
849
886
|
});
|
|
850
887
|
Portal$1.displayName = PORTAL_NAME$2;
|
|
851
888
|
//#endregion
|
|
852
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.
|
|
889
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.4_@types+react@19.2.15_react@19.2.6/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
853
890
|
var count = 0;
|
|
891
|
+
var guards = null;
|
|
854
892
|
function useFocusGuards() {
|
|
855
893
|
import_react.useEffect(() => {
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
894
|
+
if (!guards) guards = {
|
|
895
|
+
start: createFocusGuard(),
|
|
896
|
+
end: createFocusGuard()
|
|
897
|
+
};
|
|
898
|
+
const { start, end } = guards;
|
|
899
|
+
if (document.body.firstElementChild !== start) document.body.insertAdjacentElement("afterbegin", start);
|
|
900
|
+
if (document.body.lastElementChild !== end) document.body.insertAdjacentElement("beforeend", end);
|
|
859
901
|
count++;
|
|
860
902
|
return () => {
|
|
861
|
-
if (count === 1)
|
|
862
|
-
|
|
903
|
+
if (count === 1) {
|
|
904
|
+
guards?.start.remove();
|
|
905
|
+
guards?.end.remove();
|
|
906
|
+
guards = null;
|
|
907
|
+
}
|
|
908
|
+
count = Math.max(0, count - 1);
|
|
863
909
|
};
|
|
864
910
|
}, []);
|
|
865
911
|
}
|
|
@@ -874,7 +920,7 @@ function createFocusGuard() {
|
|
|
874
920
|
return element;
|
|
875
921
|
}
|
|
876
922
|
//#endregion
|
|
877
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.
|
|
923
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.15_react@19.2.6/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
878
924
|
var zeroRightClassName = "right-scroll-bar-position";
|
|
879
925
|
var fullWidthClassName = "width-before-scroll-bar";
|
|
880
926
|
var noScrollbarsClassName = "with-scroll-bars-hidden";
|
|
@@ -884,7 +930,7 @@ var noScrollbarsClassName = "with-scroll-bars-hidden";
|
|
|
884
930
|
*/
|
|
885
931
|
var removedBarSizeVariable = "--removed-body-scroll-bar-size";
|
|
886
932
|
//#endregion
|
|
887
|
-
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.
|
|
933
|
+
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.15_react@19.2.6/node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
888
934
|
/**
|
|
889
935
|
* Assigns a value for a given ref, no matter of the ref format
|
|
890
936
|
* @param {RefObject} ref - a callback function or ref object
|
|
@@ -904,7 +950,7 @@ function assignRef(ref, value) {
|
|
|
904
950
|
return ref;
|
|
905
951
|
}
|
|
906
952
|
//#endregion
|
|
907
|
-
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.
|
|
953
|
+
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.15_react@19.2.6/node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
908
954
|
/**
|
|
909
955
|
* creates a MutableRef with ref change callback
|
|
910
956
|
* @param initialValue - initial ref value
|
|
@@ -942,7 +988,7 @@ function useCallbackRef(initialValue, callback) {
|
|
|
942
988
|
return ref.facade;
|
|
943
989
|
}
|
|
944
990
|
//#endregion
|
|
945
|
-
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.
|
|
991
|
+
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.15_react@19.2.6/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
946
992
|
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? import_react.useLayoutEffect : import_react.useEffect;
|
|
947
993
|
var currentValues = /* @__PURE__ */ new WeakMap();
|
|
948
994
|
/**
|
|
@@ -983,7 +1029,7 @@ function useMergeRefs(refs, defaultValue) {
|
|
|
983
1029
|
return callbackRef;
|
|
984
1030
|
}
|
|
985
1031
|
//#endregion
|
|
986
|
-
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.
|
|
1032
|
+
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.15_react@19.2.6/node_modules/use-sidecar/dist/es2015/medium.js
|
|
987
1033
|
function ItoI(a) {
|
|
988
1034
|
return a;
|
|
989
1035
|
}
|
|
@@ -1063,7 +1109,7 @@ function createSidecarMedium(options) {
|
|
|
1063
1109
|
return medium;
|
|
1064
1110
|
}
|
|
1065
1111
|
//#endregion
|
|
1066
|
-
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.
|
|
1112
|
+
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.15_react@19.2.6/node_modules/use-sidecar/dist/es2015/exports.js
|
|
1067
1113
|
var SideCar = function(_a) {
|
|
1068
1114
|
var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
|
|
1069
1115
|
if (!sideCar) throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
@@ -1077,10 +1123,10 @@ function exportSidecar(medium, exported) {
|
|
|
1077
1123
|
return SideCar;
|
|
1078
1124
|
}
|
|
1079
1125
|
//#endregion
|
|
1080
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.
|
|
1126
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.15_react@19.2.6/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
1081
1127
|
var effectCar = createSidecarMedium();
|
|
1082
1128
|
//#endregion
|
|
1083
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.
|
|
1129
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.15_react@19.2.6/node_modules/react-remove-scroll/dist/es2015/UI.js
|
|
1084
1130
|
var nothing = function() {};
|
|
1085
1131
|
/**
|
|
1086
1132
|
* Removes scrollbar from the page and contain the scroll within the Lock
|
|
@@ -1143,7 +1189,7 @@ var getNonce = function() {
|
|
|
1143
1189
|
if (typeof __webpack_nonce__ !== "undefined") return __webpack_nonce__;
|
|
1144
1190
|
};
|
|
1145
1191
|
//#endregion
|
|
1146
|
-
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.
|
|
1192
|
+
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.15_react@19.2.6/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
1147
1193
|
function makeStyleTag() {
|
|
1148
1194
|
if (!document) return null;
|
|
1149
1195
|
var tag = document.createElement("style");
|
|
@@ -1182,7 +1228,7 @@ var stylesheetSingleton = function() {
|
|
|
1182
1228
|
};
|
|
1183
1229
|
};
|
|
1184
1230
|
//#endregion
|
|
1185
|
-
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.
|
|
1231
|
+
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.15_react@19.2.6/node_modules/react-style-singleton/dist/es2015/hook.js
|
|
1186
1232
|
/**
|
|
1187
1233
|
* creates a hook to control style singleton
|
|
1188
1234
|
* @see {@link styleSingleton} for a safer component version
|
|
@@ -1204,7 +1250,7 @@ var styleHookSingleton = function() {
|
|
|
1204
1250
|
};
|
|
1205
1251
|
};
|
|
1206
1252
|
//#endregion
|
|
1207
|
-
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.
|
|
1253
|
+
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.15_react@19.2.6/node_modules/react-style-singleton/dist/es2015/component.js
|
|
1208
1254
|
/**
|
|
1209
1255
|
* create a Component to add styles on demand
|
|
1210
1256
|
* - styles are added when first instance is mounted
|
|
@@ -1221,7 +1267,7 @@ var styleSingleton = function() {
|
|
|
1221
1267
|
return Sheet;
|
|
1222
1268
|
};
|
|
1223
1269
|
//#endregion
|
|
1224
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.
|
|
1270
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.15_react@19.2.6/node_modules/react-remove-scroll-bar/dist/es2015/utils.js
|
|
1225
1271
|
var zeroGap = {
|
|
1226
1272
|
left: 0,
|
|
1227
1273
|
top: 0,
|
|
@@ -1256,7 +1302,7 @@ var getGapWidth = function(gapMode) {
|
|
|
1256
1302
|
};
|
|
1257
1303
|
};
|
|
1258
1304
|
//#endregion
|
|
1259
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.
|
|
1305
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.15_react@19.2.6/node_modules/react-remove-scroll-bar/dist/es2015/component.js
|
|
1260
1306
|
var Style = styleSingleton();
|
|
1261
1307
|
var lockAttribute = "data-scroll-locked";
|
|
1262
1308
|
var getStyles = function(_a, allowRelative, gapMode, important) {
|
|
@@ -1294,7 +1340,7 @@ var RemoveScrollBar = function(_a) {
|
|
|
1294
1340
|
return import_react.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
|
|
1295
1341
|
};
|
|
1296
1342
|
//#endregion
|
|
1297
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.
|
|
1343
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.15_react@19.2.6/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
|
|
1298
1344
|
var passiveSupported = false;
|
|
1299
1345
|
if (typeof window !== "undefined") try {
|
|
1300
1346
|
var options = Object.defineProperty({}, "passive", { get: function() {
|
|
@@ -1308,7 +1354,7 @@ if (typeof window !== "undefined") try {
|
|
|
1308
1354
|
}
|
|
1309
1355
|
var nonPassive = passiveSupported ? { passive: false } : false;
|
|
1310
1356
|
//#endregion
|
|
1311
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.
|
|
1357
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.15_react@19.2.6/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
|
|
1312
1358
|
var alwaysContainsScroll = function(node) {
|
|
1313
1359
|
return node.tagName === "TEXTAREA";
|
|
1314
1360
|
};
|
|
@@ -1391,7 +1437,7 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
|
1391
1437
|
return shouldCancelScroll;
|
|
1392
1438
|
};
|
|
1393
1439
|
//#endregion
|
|
1394
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.
|
|
1440
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.15_react@19.2.6/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
|
|
1395
1441
|
var getTouchXY = function(event) {
|
|
1396
1442
|
return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
|
|
1397
1443
|
};
|
|
@@ -1448,6 +1494,9 @@ function RemoveScrollSideCar(props) {
|
|
|
1448
1494
|
var target = event.target;
|
|
1449
1495
|
var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "h" : "v";
|
|
1450
1496
|
if ("touches" in event && moveDirection === "h" && target.type === "range") return false;
|
|
1497
|
+
var selection = window.getSelection();
|
|
1498
|
+
var anchorNode = selection && selection.anchorNode;
|
|
1499
|
+
if (anchorNode ? anchorNode === target || anchorNode.contains(target) : false) return false;
|
|
1451
1500
|
var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
1452
1501
|
if (!canBeScrolledInMainDirection) return true;
|
|
1453
1502
|
if (canBeScrolledInMainDirection) currentAxis = moveDirection;
|
|
@@ -1543,10 +1592,10 @@ function getOutermostShadowParent(node) {
|
|
|
1543
1592
|
return shadowParent;
|
|
1544
1593
|
}
|
|
1545
1594
|
//#endregion
|
|
1546
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.
|
|
1595
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.15_react@19.2.6/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
1547
1596
|
var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
|
|
1548
1597
|
//#endregion
|
|
1549
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.
|
|
1598
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.15_react@19.2.6/node_modules/react-remove-scroll/dist/es2015/Combination.js
|
|
1550
1599
|
var ReactRemoveScroll = import_react.forwardRef(function(props, ref) {
|
|
1551
1600
|
return import_react.createElement(RemoveScroll, __assign({}, props, {
|
|
1552
1601
|
ref,
|
|
@@ -1661,7 +1710,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
|
1661
1710
|
return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
|
|
1662
1711
|
};
|
|
1663
1712
|
//#endregion
|
|
1664
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.
|
|
1713
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.16_@types+react-dom@19.2.3_@types+react@19.2.15__@types+reac_34fd6e824a6a32b078e40947d19e57a0/node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
1665
1714
|
var DIALOG_NAME = "Dialog";
|
|
1666
1715
|
var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
|
|
1667
1716
|
var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
|
|
@@ -1699,7 +1748,7 @@ var DialogTrigger = import_react.forwardRef((props, forwardedRef) => {
|
|
|
1699
1748
|
type: "button",
|
|
1700
1749
|
"aria-haspopup": "dialog",
|
|
1701
1750
|
"aria-expanded": context.open,
|
|
1702
|
-
"aria-controls": context.contentId,
|
|
1751
|
+
"aria-controls": context.open ? context.contentId : void 0,
|
|
1703
1752
|
"data-state": getState(context.open),
|
|
1704
1753
|
...triggerProps,
|
|
1705
1754
|
ref: composedTriggerRef,
|
|
@@ -1788,7 +1837,7 @@ var DialogContentModal = import_react.forwardRef((props, forwardedRef) => {
|
|
|
1788
1837
|
...props,
|
|
1789
1838
|
ref: composedRefs,
|
|
1790
1839
|
trapFocus: context.open,
|
|
1791
|
-
disableOutsidePointerEvents:
|
|
1840
|
+
disableOutsidePointerEvents: context.open,
|
|
1792
1841
|
onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
|
|
1793
1842
|
event.preventDefault();
|
|
1794
1843
|
context.triggerRef.current?.focus();
|
|
@@ -1939,7 +1988,7 @@ var Title = DialogTitle;
|
|
|
1939
1988
|
var Description = DialogDescription;
|
|
1940
1989
|
var Close = DialogClose;
|
|
1941
1990
|
//#endregion
|
|
1942
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-alert-dialog@1.1.
|
|
1991
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-alert-dialog@1.1.16_@types+react-dom@19.2.3_@types+react@19.2.15__@type_3c0987f2098ed49eed4a224078e46a0e/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
|
|
1943
1992
|
var ROOT_NAME = "AlertDialog";
|
|
1944
1993
|
var [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [createDialogScope]);
|
|
1945
1994
|
var useDialogScope = createDialogScope();
|