@sylphx/sdk 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +583 -144
- package/dist/index.d.ts +583 -144
- package/dist/index.js +697 -267
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +691 -269
- package/dist/index.mjs.map +1 -1
- package/dist/nextjs/index.js +43 -24
- package/dist/nextjs/index.js.map +1 -1
- package/dist/nextjs/index.mjs +43 -24
- package/dist/nextjs/index.mjs.map +1 -1
- package/dist/react/index.d.cts +61 -33
- package/dist/react/index.d.ts +61 -33
- package/dist/react/index.js +907 -749
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +907 -749
- package/dist/react/index.mjs.map +1 -1
- package/dist/server/index.d.cts +355 -18
- package/dist/server/index.d.ts +355 -18
- package/dist/server/index.js +529 -11
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +525 -11
- package/dist/server/index.mjs.map +1 -1
- package/dist/web-analytics.js.map +1 -1
- package/dist/web-analytics.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/web-analytics.d.cts +0 -90
- package/dist/web-analytics.d.ts +0 -90
package/dist/react/index.mjs
CHANGED
|
@@ -22,7 +22,7 @@ var init_constants = __esm({
|
|
|
22
22
|
"use strict";
|
|
23
23
|
SDK_API_PATH = `/v1`;
|
|
24
24
|
DEFAULT_SDK_API_HOST = "api.sylphx.com";
|
|
25
|
-
SDK_VERSION = "0.
|
|
25
|
+
SDK_VERSION = "0.5.0";
|
|
26
26
|
SDK_PLATFORM = typeof window !== "undefined" ? "browser" : typeof process !== "undefined" && process.versions?.node ? "node" : "unknown";
|
|
27
27
|
DEFAULT_TIMEOUT_MS = 3e4;
|
|
28
28
|
TOKEN_EXPIRY_BUFFER_MS = 3e4;
|
|
@@ -304,7 +304,7 @@ var init_pkce = __esm({
|
|
|
304
304
|
}
|
|
305
305
|
});
|
|
306
306
|
|
|
307
|
-
//
|
|
307
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/index.parts.js
|
|
308
308
|
var index_parts_exports = {};
|
|
309
309
|
__export(index_parts_exports, {
|
|
310
310
|
Header: () => AccordionHeader,
|
|
@@ -314,10 +314,10 @@ __export(index_parts_exports, {
|
|
|
314
314
|
Trigger: () => AccordionTrigger
|
|
315
315
|
});
|
|
316
316
|
|
|
317
|
-
//
|
|
317
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/root/AccordionRoot.js
|
|
318
318
|
import * as React12 from "react";
|
|
319
319
|
|
|
320
|
-
//
|
|
320
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useControlled.js
|
|
321
321
|
import * as React from "react";
|
|
322
322
|
function useControlled({
|
|
323
323
|
controlled,
|
|
@@ -353,10 +353,10 @@ function useControlled({
|
|
|
353
353
|
return [value, setValueIfUncontrolled];
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
//
|
|
356
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useStableCallback.js
|
|
357
357
|
import * as React3 from "react";
|
|
358
358
|
|
|
359
|
-
//
|
|
359
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useRefWithInit.js
|
|
360
360
|
import * as React2 from "react";
|
|
361
361
|
var UNINITIALIZED = {};
|
|
362
362
|
function useRefWithInit(init, initArg) {
|
|
@@ -367,7 +367,7 @@ function useRefWithInit(init, initArg) {
|
|
|
367
367
|
return ref;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
//
|
|
370
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useStableCallback.js
|
|
371
371
|
var useInsertionEffect = React3[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)];
|
|
372
372
|
var useSafeInsertionEffect = (
|
|
373
373
|
// React 17 doesn't have useInsertionEffect.
|
|
@@ -397,13 +397,13 @@ function assertNotCalled() {
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
//
|
|
400
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useIsoLayoutEffect.js
|
|
401
401
|
import * as React4 from "react";
|
|
402
402
|
var noop = () => {
|
|
403
403
|
};
|
|
404
404
|
var useIsoLayoutEffect = typeof document !== "undefined" ? React4.useLayoutEffect : noop;
|
|
405
405
|
|
|
406
|
-
//
|
|
406
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/warn.js
|
|
407
407
|
var set;
|
|
408
408
|
if (process.env.NODE_ENV !== "production") {
|
|
409
409
|
set = /* @__PURE__ */ new Set();
|
|
@@ -418,10 +418,10 @@ function warn(...messages) {
|
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
//
|
|
421
|
+
// ../ui/node_modules/@base-ui/react/esm/composite/list/CompositeList.js
|
|
422
422
|
import * as React6 from "react";
|
|
423
423
|
|
|
424
|
-
//
|
|
424
|
+
// ../ui/node_modules/@base-ui/react/esm/composite/list/CompositeListContext.js
|
|
425
425
|
import * as React5 from "react";
|
|
426
426
|
var CompositeListContext = /* @__PURE__ */ React5.createContext({
|
|
427
427
|
register: () => {
|
|
@@ -444,7 +444,7 @@ function useCompositeListContext() {
|
|
|
444
444
|
return React5.useContext(CompositeListContext);
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
-
//
|
|
447
|
+
// ../ui/node_modules/@base-ui/react/esm/composite/list/CompositeList.js
|
|
448
448
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
449
449
|
function CompositeList(props) {
|
|
450
450
|
const {
|
|
@@ -575,7 +575,7 @@ function sortByDocumentPosition(a2, b2) {
|
|
|
575
575
|
function disableEslintWarning(_2) {
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
-
//
|
|
578
|
+
// ../ui/node_modules/@base-ui/react/esm/direction-provider/DirectionContext.js
|
|
579
579
|
import * as React7 from "react";
|
|
580
580
|
var DirectionContext = /* @__PURE__ */ React7.createContext(void 0);
|
|
581
581
|
if (process.env.NODE_ENV !== "production") DirectionContext.displayName = "DirectionContext";
|
|
@@ -584,7 +584,7 @@ function useDirection() {
|
|
|
584
584
|
return context?.direction ?? "ltr";
|
|
585
585
|
}
|
|
586
586
|
|
|
587
|
-
//
|
|
587
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/formatErrorMessage.js
|
|
588
588
|
function formatErrorMessage(code, ...args) {
|
|
589
589
|
const url = new URL("https://base-ui.com/production-error");
|
|
590
590
|
url.searchParams.set("code", code.toString());
|
|
@@ -592,7 +592,7 @@ function formatErrorMessage(code, ...args) {
|
|
|
592
592
|
return `Base UI error #${code}; visit ${url} for the full message.`;
|
|
593
593
|
}
|
|
594
594
|
|
|
595
|
-
//
|
|
595
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/root/AccordionRootContext.js
|
|
596
596
|
import * as React8 from "react";
|
|
597
597
|
var AccordionRootContext = /* @__PURE__ */ React8.createContext(void 0);
|
|
598
598
|
if (process.env.NODE_ENV !== "production") AccordionRootContext.displayName = "AccordionRootContext";
|
|
@@ -604,10 +604,10 @@ function useAccordionRootContext() {
|
|
|
604
604
|
return context;
|
|
605
605
|
}
|
|
606
606
|
|
|
607
|
-
//
|
|
607
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useRenderElement.js
|
|
608
608
|
import * as React11 from "react";
|
|
609
609
|
|
|
610
|
-
//
|
|
610
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useMergedRefs.js
|
|
611
611
|
function useMergedRefs(a2, b2, c2, d2) {
|
|
612
612
|
const forkRef = useRefWithInit(createForkRef).current;
|
|
613
613
|
if (didChange(forkRef, a2, b2, c2, d2)) {
|
|
@@ -696,17 +696,17 @@ function update(forkRef, refs) {
|
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
698
|
|
|
699
|
-
//
|
|
699
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/getReactElementRef.js
|
|
700
700
|
import * as React10 from "react";
|
|
701
701
|
|
|
702
|
-
//
|
|
702
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/reactVersion.js
|
|
703
703
|
import * as React9 from "react";
|
|
704
704
|
var majorVersion = parseInt(React9.version, 10);
|
|
705
705
|
function isReactVersionAtLeast(reactVersionToCheck) {
|
|
706
706
|
return majorVersion >= reactVersionToCheck;
|
|
707
707
|
}
|
|
708
708
|
|
|
709
|
-
//
|
|
709
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/getReactElementRef.js
|
|
710
710
|
function getReactElementRef(element) {
|
|
711
711
|
if (!/* @__PURE__ */ React10.isValidElement(element)) {
|
|
712
712
|
return null;
|
|
@@ -716,7 +716,7 @@ function getReactElementRef(element) {
|
|
|
716
716
|
return (isReactVersionAtLeast(19) ? propsWithRef?.ref : reactElement.ref) ?? null;
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
-
//
|
|
719
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/mergeObjects.js
|
|
720
720
|
function mergeObjects(a2, b2) {
|
|
721
721
|
if (a2 && !b2) {
|
|
722
722
|
return a2;
|
|
@@ -733,7 +733,7 @@ function mergeObjects(a2, b2) {
|
|
|
733
733
|
return void 0;
|
|
734
734
|
}
|
|
735
735
|
|
|
736
|
-
//
|
|
736
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/getStateAttributesProps.js
|
|
737
737
|
function getStateAttributesProps(state, customMapping) {
|
|
738
738
|
const props = {};
|
|
739
739
|
for (const key in state) {
|
|
@@ -754,17 +754,17 @@ function getStateAttributesProps(state, customMapping) {
|
|
|
754
754
|
return props;
|
|
755
755
|
}
|
|
756
756
|
|
|
757
|
-
//
|
|
757
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/resolveClassName.js
|
|
758
758
|
function resolveClassName(className, state) {
|
|
759
759
|
return typeof className === "function" ? className(state) : className;
|
|
760
760
|
}
|
|
761
761
|
|
|
762
|
-
//
|
|
762
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/resolveStyle.js
|
|
763
763
|
function resolveStyle(style, state) {
|
|
764
764
|
return typeof style === "function" ? style(state) : style;
|
|
765
765
|
}
|
|
766
766
|
|
|
767
|
-
//
|
|
767
|
+
// ../ui/node_modules/@base-ui/react/esm/merge-props/mergeProps.js
|
|
768
768
|
var EMPTY_PROPS = {};
|
|
769
769
|
function mergeProps(a2, b2, c2, d2, e2) {
|
|
770
770
|
let merged = {
|
|
@@ -887,13 +887,13 @@ function isSyntheticEvent(event2) {
|
|
|
887
887
|
return event2 != null && typeof event2 === "object" && "nativeEvent" in event2;
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
//
|
|
890
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/empty.js
|
|
891
891
|
function NOOP() {
|
|
892
892
|
}
|
|
893
893
|
var EMPTY_ARRAY = Object.freeze([]);
|
|
894
894
|
var EMPTY_OBJECT = Object.freeze({});
|
|
895
895
|
|
|
896
|
-
//
|
|
896
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/constants.js
|
|
897
897
|
var TYPEAHEAD_RESET_MS = 500;
|
|
898
898
|
var PATIENT_CLICK_THRESHOLD = 500;
|
|
899
899
|
var DISABLED_TRANSITIONS_STYLE = {
|
|
@@ -915,7 +915,7 @@ var ownerVisuallyHidden = {
|
|
|
915
915
|
left: 0
|
|
916
916
|
};
|
|
917
917
|
|
|
918
|
-
//
|
|
918
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useRenderElement.js
|
|
919
919
|
import { createElement as _createElement } from "react";
|
|
920
920
|
function useRenderElement(element, componentProps, params = {}) {
|
|
921
921
|
const renderProp = componentProps.render;
|
|
@@ -997,7 +997,7 @@ function renderTag(Tag, props) {
|
|
|
997
997
|
return /* @__PURE__ */ React11.createElement(Tag, props);
|
|
998
998
|
}
|
|
999
999
|
|
|
1000
|
-
//
|
|
1000
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/reason-parts.js
|
|
1001
1001
|
var reason_parts_exports = {};
|
|
1002
1002
|
__export(reason_parts_exports, {
|
|
1003
1003
|
cancelOpen: () => cancelOpen,
|
|
@@ -1062,7 +1062,7 @@ var disabled = "disabled";
|
|
|
1062
1062
|
var imperativeAction = "imperative-action";
|
|
1063
1063
|
var windowResize = "window-resize";
|
|
1064
1064
|
|
|
1065
|
-
//
|
|
1065
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/createBaseUIEventDetails.js
|
|
1066
1066
|
function createChangeEventDetails(reason, event2, trigger, customProperties) {
|
|
1067
1067
|
let canceled = false;
|
|
1068
1068
|
let allowPropagation = false;
|
|
@@ -1097,7 +1097,7 @@ function createGenericEventDetails(reason, event2, customProperties) {
|
|
|
1097
1097
|
return details;
|
|
1098
1098
|
}
|
|
1099
1099
|
|
|
1100
|
-
//
|
|
1100
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/root/AccordionRoot.js
|
|
1101
1101
|
import { jsx as _jsx2 } from "react/jsx-runtime";
|
|
1102
1102
|
var rootStateAttributesMapping = {
|
|
1103
1103
|
value: () => null
|
|
@@ -1201,19 +1201,19 @@ var AccordionRoot = /* @__PURE__ */ React12.forwardRef(function AccordionRoot2(c
|
|
|
1201
1201
|
});
|
|
1202
1202
|
if (process.env.NODE_ENV !== "production") AccordionRoot.displayName = "AccordionRoot";
|
|
1203
1203
|
|
|
1204
|
-
//
|
|
1204
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/item/AccordionItem.js
|
|
1205
1205
|
import * as React21 from "react";
|
|
1206
1206
|
|
|
1207
|
-
//
|
|
1207
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useId.js
|
|
1208
1208
|
import * as React14 from "react";
|
|
1209
1209
|
|
|
1210
|
-
//
|
|
1210
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/safeReact.js
|
|
1211
1211
|
import * as React13 from "react";
|
|
1212
1212
|
var SafeReact = {
|
|
1213
1213
|
...React13
|
|
1214
1214
|
};
|
|
1215
1215
|
|
|
1216
|
-
//
|
|
1216
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useId.js
|
|
1217
1217
|
var globalId = 0;
|
|
1218
1218
|
function useGlobalId(idOverride, prefix = "mui") {
|
|
1219
1219
|
const [defaultId, setDefaultId] = React14.useState(idOverride);
|
|
@@ -1235,25 +1235,25 @@ function useId(idOverride, prefix) {
|
|
|
1235
1235
|
return useGlobalId(idOverride, prefix);
|
|
1236
1236
|
}
|
|
1237
1237
|
|
|
1238
|
-
//
|
|
1238
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useBaseUiId.js
|
|
1239
1239
|
function useBaseUiId(idOverride) {
|
|
1240
1240
|
return useId(idOverride, "base-ui");
|
|
1241
1241
|
}
|
|
1242
1242
|
|
|
1243
|
-
//
|
|
1243
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/root/useCollapsibleRoot.js
|
|
1244
1244
|
import * as React17 from "react";
|
|
1245
1245
|
|
|
1246
|
-
//
|
|
1246
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useAnimationsFinished.js
|
|
1247
1247
|
import * as ReactDOM from "react-dom";
|
|
1248
1248
|
|
|
1249
|
-
//
|
|
1249
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useOnMount.js
|
|
1250
1250
|
import * as React15 from "react";
|
|
1251
1251
|
var EMPTY = [];
|
|
1252
1252
|
function useOnMount(fn) {
|
|
1253
1253
|
React15.useEffect(fn, EMPTY);
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
|
-
//
|
|
1256
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useAnimationFrame.js
|
|
1257
1257
|
var EMPTY2 = null;
|
|
1258
1258
|
var LAST_RAF = globalThis.requestAnimationFrame;
|
|
1259
1259
|
var Scheduler = class {
|
|
@@ -1341,7 +1341,7 @@ function useAnimationFrame() {
|
|
|
1341
1341
|
return timeout;
|
|
1342
1342
|
}
|
|
1343
1343
|
|
|
1344
|
-
//
|
|
1344
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/resolveRef.js
|
|
1345
1345
|
function resolveRef(maybeRef) {
|
|
1346
1346
|
if (maybeRef == null) {
|
|
1347
1347
|
return maybeRef;
|
|
@@ -1349,7 +1349,7 @@ function resolveRef(maybeRef) {
|
|
|
1349
1349
|
return "current" in maybeRef ? maybeRef.current : maybeRef;
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
|
-
//
|
|
1352
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/stateAttributesMapping.js
|
|
1353
1353
|
var TransitionStatusDataAttributes = /* @__PURE__ */ (function(TransitionStatusDataAttributes2) {
|
|
1354
1354
|
TransitionStatusDataAttributes2["startingStyle"] = "data-starting-style";
|
|
1355
1355
|
TransitionStatusDataAttributes2["endingStyle"] = "data-ending-style";
|
|
@@ -1373,7 +1373,7 @@ var transitionStatusMapping = {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
};
|
|
1375
1375
|
|
|
1376
|
-
//
|
|
1376
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useAnimationsFinished.js
|
|
1377
1377
|
function useAnimationsFinished(elementOrRef, waitForStartingStyleRemoved = false, treatAbortedAsFinished = true) {
|
|
1378
1378
|
const frame2 = useAnimationFrame();
|
|
1379
1379
|
return useStableCallback((fnToExecute, signal = null) => {
|
|
@@ -1436,7 +1436,7 @@ function useAnimationsFinished(elementOrRef, waitForStartingStyleRemoved = false
|
|
|
1436
1436
|
});
|
|
1437
1437
|
}
|
|
1438
1438
|
|
|
1439
|
-
//
|
|
1439
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useTransitionStatus.js
|
|
1440
1440
|
import * as React16 from "react";
|
|
1441
1441
|
function useTransitionStatus(open, enableIdleState = false, deferEndingState = false) {
|
|
1442
1442
|
const [transitionStatus, setTransitionStatus] = React16.useState(open && enableIdleState ? "idle" : void 0);
|
|
@@ -1494,7 +1494,7 @@ function useTransitionStatus(open, enableIdleState = false, deferEndingState = f
|
|
|
1494
1494
|
}), [mounted, transitionStatus]);
|
|
1495
1495
|
}
|
|
1496
1496
|
|
|
1497
|
-
//
|
|
1497
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/root/useCollapsibleRoot.js
|
|
1498
1498
|
function useCollapsibleRoot(parameters) {
|
|
1499
1499
|
const {
|
|
1500
1500
|
open: openParam,
|
|
@@ -1593,7 +1593,7 @@ function useCollapsibleRoot(parameters) {
|
|
|
1593
1593
|
}), [abortControllerRef, animationTypeRef, disabled2, handleTrigger, height, mounted, open, panelId, panelRef, runOnceAnimationsFinish, setDimensions, setHiddenUntilFound, setKeepMounted, setMounted, setOpen, setVisible, transitionDimensionRef, transitionStatus, visible, width]);
|
|
1594
1594
|
}
|
|
1595
1595
|
|
|
1596
|
-
//
|
|
1596
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/root/CollapsibleRootContext.js
|
|
1597
1597
|
import * as React18 from "react";
|
|
1598
1598
|
var CollapsibleRootContext = /* @__PURE__ */ React18.createContext(void 0);
|
|
1599
1599
|
if (process.env.NODE_ENV !== "production") CollapsibleRootContext.displayName = "CollapsibleRootContext";
|
|
@@ -1605,7 +1605,7 @@ function useCollapsibleRootContext() {
|
|
|
1605
1605
|
return context;
|
|
1606
1606
|
}
|
|
1607
1607
|
|
|
1608
|
-
//
|
|
1608
|
+
// ../ui/node_modules/@base-ui/react/esm/composite/list/useCompositeListItem.js
|
|
1609
1609
|
import * as React19 from "react";
|
|
1610
1610
|
var IndexGuessBehavior = /* @__PURE__ */ (function(IndexGuessBehavior2) {
|
|
1611
1611
|
IndexGuessBehavior2[IndexGuessBehavior2["None"] = 0] = "None";
|
|
@@ -1678,7 +1678,7 @@ function useCompositeListItem(params = {}) {
|
|
|
1678
1678
|
}), [index2, ref]);
|
|
1679
1679
|
}
|
|
1680
1680
|
|
|
1681
|
-
//
|
|
1681
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/item/AccordionItemContext.js
|
|
1682
1682
|
import * as React20 from "react";
|
|
1683
1683
|
var AccordionItemContext = /* @__PURE__ */ React20.createContext(void 0);
|
|
1684
1684
|
if (process.env.NODE_ENV !== "production") AccordionItemContext.displayName = "AccordionItemContext";
|
|
@@ -1690,7 +1690,7 @@ function useAccordionItemContext() {
|
|
|
1690
1690
|
return context;
|
|
1691
1691
|
}
|
|
1692
1692
|
|
|
1693
|
-
//
|
|
1693
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/panel/CollapsiblePanelDataAttributes.js
|
|
1694
1694
|
var CollapsiblePanelDataAttributes = (function(CollapsiblePanelDataAttributes2) {
|
|
1695
1695
|
CollapsiblePanelDataAttributes2["open"] = "data-open";
|
|
1696
1696
|
CollapsiblePanelDataAttributes2["closed"] = "data-closed";
|
|
@@ -1699,13 +1699,13 @@ var CollapsiblePanelDataAttributes = (function(CollapsiblePanelDataAttributes2)
|
|
|
1699
1699
|
return CollapsiblePanelDataAttributes2;
|
|
1700
1700
|
})({});
|
|
1701
1701
|
|
|
1702
|
-
//
|
|
1702
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/trigger/CollapsibleTriggerDataAttributes.js
|
|
1703
1703
|
var CollapsibleTriggerDataAttributes = /* @__PURE__ */ (function(CollapsibleTriggerDataAttributes2) {
|
|
1704
1704
|
CollapsibleTriggerDataAttributes2["panelOpen"] = "data-panel-open";
|
|
1705
1705
|
return CollapsibleTriggerDataAttributes2;
|
|
1706
1706
|
})({});
|
|
1707
1707
|
|
|
1708
|
-
//
|
|
1708
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/collapsibleOpenStateMapping.js
|
|
1709
1709
|
var PANEL_OPEN_HOOK = {
|
|
1710
1710
|
[CollapsiblePanelDataAttributes.open]: ""
|
|
1711
1711
|
};
|
|
@@ -1731,7 +1731,7 @@ var collapsibleOpenStateMapping = {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
};
|
|
1733
1733
|
|
|
1734
|
-
//
|
|
1734
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/item/AccordionItemDataAttributes.js
|
|
1735
1735
|
var AccordionItemDataAttributes = /* @__PURE__ */ (function(AccordionItemDataAttributes2) {
|
|
1736
1736
|
AccordionItemDataAttributes2["index"] = "data-index";
|
|
1737
1737
|
AccordionItemDataAttributes2["disabled"] = "data-disabled";
|
|
@@ -1739,7 +1739,7 @@ var AccordionItemDataAttributes = /* @__PURE__ */ (function(AccordionItemDataAtt
|
|
|
1739
1739
|
return AccordionItemDataAttributes2;
|
|
1740
1740
|
})({});
|
|
1741
1741
|
|
|
1742
|
-
//
|
|
1742
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/item/stateAttributesMapping.js
|
|
1743
1743
|
var accordionStateAttributesMapping = {
|
|
1744
1744
|
...collapsibleOpenStateMapping,
|
|
1745
1745
|
index: (value) => {
|
|
@@ -1751,7 +1751,7 @@ var accordionStateAttributesMapping = {
|
|
|
1751
1751
|
value: () => null
|
|
1752
1752
|
};
|
|
1753
1753
|
|
|
1754
|
-
//
|
|
1754
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/item/AccordionItem.js
|
|
1755
1755
|
import { jsx as _jsx3 } from "react/jsx-runtime";
|
|
1756
1756
|
var AccordionItem = /* @__PURE__ */ React21.forwardRef(function AccordionItem2(componentProps, forwardedRef) {
|
|
1757
1757
|
const {
|
|
@@ -1839,7 +1839,7 @@ var AccordionItem = /* @__PURE__ */ React21.forwardRef(function AccordionItem2(c
|
|
|
1839
1839
|
});
|
|
1840
1840
|
if (process.env.NODE_ENV !== "production") AccordionItem.displayName = "AccordionItem";
|
|
1841
1841
|
|
|
1842
|
-
//
|
|
1842
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/header/AccordionHeader.js
|
|
1843
1843
|
import * as React22 from "react";
|
|
1844
1844
|
var AccordionHeader = /* @__PURE__ */ React22.forwardRef(function AccordionHeader2(componentProps, forwardedRef) {
|
|
1845
1845
|
const {
|
|
@@ -1860,18 +1860,18 @@ var AccordionHeader = /* @__PURE__ */ React22.forwardRef(function AccordionHeade
|
|
|
1860
1860
|
});
|
|
1861
1861
|
if (process.env.NODE_ENV !== "production") AccordionHeader.displayName = "AccordionHeader";
|
|
1862
1862
|
|
|
1863
|
-
//
|
|
1863
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/trigger/AccordionTrigger.js
|
|
1864
1864
|
import * as React26 from "react";
|
|
1865
1865
|
|
|
1866
|
-
//
|
|
1866
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/isElementDisabled.js
|
|
1867
1867
|
function isElementDisabled(element) {
|
|
1868
1868
|
return element == null || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true";
|
|
1869
1869
|
}
|
|
1870
1870
|
|
|
1871
|
-
//
|
|
1871
|
+
// ../ui/node_modules/@base-ui/react/esm/use-button/useButton.js
|
|
1872
1872
|
import * as React25 from "react";
|
|
1873
1873
|
|
|
1874
|
-
//
|
|
1874
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
1875
1875
|
function hasWindow() {
|
|
1876
1876
|
return typeof window !== "undefined";
|
|
1877
1877
|
}
|
|
@@ -2024,7 +2024,7 @@ function getFrameElement(win) {
|
|
|
2024
2024
|
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
2025
2025
|
}
|
|
2026
2026
|
|
|
2027
|
-
//
|
|
2027
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/error.js
|
|
2028
2028
|
var set2;
|
|
2029
2029
|
if (process.env.NODE_ENV !== "production") {
|
|
2030
2030
|
set2 = /* @__PURE__ */ new Set();
|
|
@@ -2039,7 +2039,7 @@ function error(...messages) {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
}
|
|
2041
2041
|
|
|
2042
|
-
//
|
|
2042
|
+
// ../ui/node_modules/@base-ui/react/esm/composite/root/CompositeRootContext.js
|
|
2043
2043
|
import * as React23 from "react";
|
|
2044
2044
|
var CompositeRootContext = /* @__PURE__ */ React23.createContext(void 0);
|
|
2045
2045
|
if (process.env.NODE_ENV !== "production") CompositeRootContext.displayName = "CompositeRootContext";
|
|
@@ -2051,7 +2051,7 @@ function useCompositeRootContext(optional = false) {
|
|
|
2051
2051
|
return context;
|
|
2052
2052
|
}
|
|
2053
2053
|
|
|
2054
|
-
//
|
|
2054
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useFocusableWhenDisabled.js
|
|
2055
2055
|
import * as React24 from "react";
|
|
2056
2056
|
function useFocusableWhenDisabled(parameters) {
|
|
2057
2057
|
const {
|
|
@@ -2091,7 +2091,7 @@ function useFocusableWhenDisabled(parameters) {
|
|
|
2091
2091
|
};
|
|
2092
2092
|
}
|
|
2093
2093
|
|
|
2094
|
-
//
|
|
2094
|
+
// ../ui/node_modules/@base-ui/react/esm/use-button/useButton.js
|
|
2095
2095
|
function useButton(parameters = {}) {
|
|
2096
2096
|
const {
|
|
2097
2097
|
disabled: disabled2 = false,
|
|
@@ -2219,7 +2219,7 @@ function isButtonElement(elem) {
|
|
|
2219
2219
|
return isHTMLElement(elem) && elem.tagName === "BUTTON";
|
|
2220
2220
|
}
|
|
2221
2221
|
|
|
2222
|
-
//
|
|
2222
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/detectBrowser.js
|
|
2223
2223
|
var hasNavigator = typeof navigator !== "undefined";
|
|
2224
2224
|
var nav = getNavigatorData();
|
|
2225
2225
|
var platform = getPlatform();
|
|
@@ -2278,7 +2278,7 @@ function getPlatform() {
|
|
|
2278
2278
|
return navigator.platform ?? "";
|
|
2279
2279
|
}
|
|
2280
2280
|
|
|
2281
|
-
//
|
|
2281
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.js
|
|
2282
2282
|
var FOCUSABLE_ATTRIBUTE = "data-base-ui-focusable";
|
|
2283
2283
|
var ACTIVE_KEY = "active";
|
|
2284
2284
|
var SELECTED_KEY = "selected";
|
|
@@ -2288,7 +2288,7 @@ var ARROW_RIGHT = "ArrowRight";
|
|
|
2288
2288
|
var ARROW_UP = "ArrowUp";
|
|
2289
2289
|
var ARROW_DOWN = "ArrowDown";
|
|
2290
2290
|
|
|
2291
|
-
//
|
|
2291
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/utils/element.js
|
|
2292
2292
|
function activeElement(doc) {
|
|
2293
2293
|
let element = doc.activeElement;
|
|
2294
2294
|
while (element?.shadowRoot?.activeElement != null) {
|
|
@@ -2363,7 +2363,7 @@ function getFloatingFocusElement(floatingElement) {
|
|
|
2363
2363
|
return floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE) ? floatingElement : floatingElement.querySelector(`[${FOCUSABLE_ATTRIBUTE}]`) || floatingElement;
|
|
2364
2364
|
}
|
|
2365
2365
|
|
|
2366
|
-
//
|
|
2366
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/utils/nodes.js
|
|
2367
2367
|
function getNodeChildren(nodes, id3, onlyOpenChildren = true) {
|
|
2368
2368
|
const directChildren = nodes.filter((node) => node.parentId === id3 && (!onlyOpenChildren || node.context?.open));
|
|
2369
2369
|
return directChildren.flatMap((child) => [child, ...getNodeChildren(nodes, child.id, onlyOpenChildren)]);
|
|
@@ -2381,7 +2381,7 @@ function getNodeAncestors(nodes, id3) {
|
|
|
2381
2381
|
return allAncestors;
|
|
2382
2382
|
}
|
|
2383
2383
|
|
|
2384
|
-
//
|
|
2384
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/utils/event.js
|
|
2385
2385
|
function stopEvent(event2) {
|
|
2386
2386
|
event2.preventDefault();
|
|
2387
2387
|
event2.stopPropagation();
|
|
@@ -2417,7 +2417,7 @@ function isClickLikeEvent(event2) {
|
|
|
2417
2417
|
return type === "click" || type === "mousedown" || type === "keydown" || type === "keyup";
|
|
2418
2418
|
}
|
|
2419
2419
|
|
|
2420
|
-
//
|
|
2420
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
2421
2421
|
var sides = ["top", "right", "bottom", "left"];
|
|
2422
2422
|
var min = Math.min;
|
|
2423
2423
|
var max = Math.max;
|
|
@@ -2549,7 +2549,7 @@ function rectToClientRect(rect) {
|
|
|
2549
2549
|
};
|
|
2550
2550
|
}
|
|
2551
2551
|
|
|
2552
|
-
//
|
|
2552
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.js
|
|
2553
2553
|
function isDifferentGridRow(index2, cols, prevRow) {
|
|
2554
2554
|
return Math.floor(index2 / cols) !== prevRow;
|
|
2555
2555
|
}
|
|
@@ -3213,7 +3213,7 @@ var isTabbable = function isTabbable2(node, options) {
|
|
|
3213
3213
|
return isNodeMatchingSelectorTabbable(options, node);
|
|
3214
3214
|
};
|
|
3215
3215
|
|
|
3216
|
-
//
|
|
3216
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/utils/tabbable.js
|
|
3217
3217
|
var getTabbableOptions = () => ({
|
|
3218
3218
|
getShadowRoot: true,
|
|
3219
3219
|
displayCheck: (
|
|
@@ -3287,7 +3287,7 @@ function enableFocusInside(container) {
|
|
|
3287
3287
|
});
|
|
3288
3288
|
}
|
|
3289
3289
|
|
|
3290
|
-
//
|
|
3290
|
+
// ../ui/node_modules/@base-ui/react/esm/composite/composite.js
|
|
3291
3291
|
var ARROW_UP2 = "ArrowUp";
|
|
3292
3292
|
var ARROW_DOWN2 = "ArrowDown";
|
|
3293
3293
|
var ARROW_LEFT2 = "ArrowLeft";
|
|
@@ -3387,7 +3387,7 @@ function getStyles(element) {
|
|
|
3387
3387
|
};
|
|
3388
3388
|
}
|
|
3389
3389
|
|
|
3390
|
-
//
|
|
3390
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/trigger/AccordionTrigger.js
|
|
3391
3391
|
var SUPPORTED_KEYS = /* @__PURE__ */ new Set([ARROW_DOWN2, ARROW_UP2, ARROW_RIGHT2, ARROW_LEFT2, HOME, END]);
|
|
3392
3392
|
function getActiveTriggers(accordionItemRefs) {
|
|
3393
3393
|
const {
|
|
@@ -3532,20 +3532,20 @@ var AccordionTrigger = /* @__PURE__ */ React26.forwardRef(function AccordionTrig
|
|
|
3532
3532
|
});
|
|
3533
3533
|
if (process.env.NODE_ENV !== "production") AccordionTrigger.displayName = "AccordionTrigger";
|
|
3534
3534
|
|
|
3535
|
-
//
|
|
3535
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/panel/AccordionPanel.js
|
|
3536
3536
|
import * as React29 from "react";
|
|
3537
3537
|
|
|
3538
|
-
//
|
|
3538
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/panel/useCollapsiblePanel.js
|
|
3539
3539
|
import * as React27 from "react";
|
|
3540
3540
|
|
|
3541
|
-
//
|
|
3541
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/root/AccordionRootDataAttributes.js
|
|
3542
3542
|
var AccordionRootDataAttributes = /* @__PURE__ */ (function(AccordionRootDataAttributes2) {
|
|
3543
3543
|
AccordionRootDataAttributes2["disabled"] = "data-disabled";
|
|
3544
3544
|
AccordionRootDataAttributes2["orientation"] = "data-orientation";
|
|
3545
3545
|
return AccordionRootDataAttributes2;
|
|
3546
3546
|
})({});
|
|
3547
3547
|
|
|
3548
|
-
//
|
|
3548
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/panel/useCollapsiblePanel.js
|
|
3549
3549
|
function useCollapsiblePanel(parameters) {
|
|
3550
3550
|
const {
|
|
3551
3551
|
abortControllerRef,
|
|
@@ -3821,14 +3821,14 @@ function useCollapsiblePanel(parameters) {
|
|
|
3821
3821
|
}), [hidden, idParam, mergedPanelRef]);
|
|
3822
3822
|
}
|
|
3823
3823
|
|
|
3824
|
-
//
|
|
3824
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/panel/AccordionPanelCssVars.js
|
|
3825
3825
|
var AccordionPanelCssVars = /* @__PURE__ */ (function(AccordionPanelCssVars2) {
|
|
3826
3826
|
AccordionPanelCssVars2["accordionPanelHeight"] = "--accordion-panel-height";
|
|
3827
3827
|
AccordionPanelCssVars2["accordionPanelWidth"] = "--accordion-panel-width";
|
|
3828
3828
|
return AccordionPanelCssVars2;
|
|
3829
3829
|
})({});
|
|
3830
3830
|
|
|
3831
|
-
//
|
|
3831
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useOpenChangeComplete.js
|
|
3832
3832
|
import * as React28 from "react";
|
|
3833
3833
|
function useOpenChangeComplete(parameters) {
|
|
3834
3834
|
const {
|
|
@@ -3851,7 +3851,7 @@ function useOpenChangeComplete(parameters) {
|
|
|
3851
3851
|
}, [enabled, open, onComplete, runOnceAnimationsFinish]);
|
|
3852
3852
|
}
|
|
3853
3853
|
|
|
3854
|
-
//
|
|
3854
|
+
// ../ui/node_modules/@base-ui/react/esm/accordion/panel/AccordionPanel.js
|
|
3855
3855
|
var AccordionPanel = /* @__PURE__ */ React29.forwardRef(function AccordionPanel2(componentProps, forwardedRef) {
|
|
3856
3856
|
const {
|
|
3857
3857
|
className,
|
|
@@ -7440,7 +7440,7 @@ var AccordionContent = forwardRef8(
|
|
|
7440
7440
|
);
|
|
7441
7441
|
AccordionContent.displayName = "AccordionContent";
|
|
7442
7442
|
|
|
7443
|
-
//
|
|
7443
|
+
// ../ui/node_modules/@base-ui/react/esm/alert-dialog/index.parts.js
|
|
7444
7444
|
var index_parts_exports2 = {};
|
|
7445
7445
|
__export(index_parts_exports2, {
|
|
7446
7446
|
Backdrop: () => DialogBackdrop,
|
|
@@ -7456,18 +7456,18 @@ __export(index_parts_exports2, {
|
|
|
7456
7456
|
createHandle: () => createAlertDialogHandle
|
|
7457
7457
|
});
|
|
7458
7458
|
|
|
7459
|
-
//
|
|
7459
|
+
// ../ui/node_modules/@base-ui/react/esm/alert-dialog/root/AlertDialogRoot.js
|
|
7460
7460
|
import * as React58 from "react";
|
|
7461
7461
|
|
|
7462
|
-
//
|
|
7462
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.js
|
|
7463
7463
|
import * as React55 from "react";
|
|
7464
7464
|
|
|
7465
|
-
//
|
|
7465
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/owner.js
|
|
7466
7466
|
function ownerDocument(node) {
|
|
7467
7467
|
return node?.ownerDocument || document;
|
|
7468
7468
|
}
|
|
7469
7469
|
|
|
7470
|
-
//
|
|
7470
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useTimeout.js
|
|
7471
7471
|
var EMPTY3 = 0;
|
|
7472
7472
|
var Timeout = class _Timeout {
|
|
7473
7473
|
static create() {
|
|
@@ -7503,7 +7503,7 @@ function useTimeout() {
|
|
|
7503
7503
|
return timeout;
|
|
7504
7504
|
}
|
|
7505
7505
|
|
|
7506
|
-
//
|
|
7506
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useScrollLock.js
|
|
7507
7507
|
var originalHtmlStyles = {};
|
|
7508
7508
|
var originalBodyStyles = {};
|
|
7509
7509
|
var originalHtmlScrollBehavior = "";
|
|
@@ -7694,13 +7694,13 @@ function useScrollLock(enabled = true, referenceElement = null) {
|
|
|
7694
7694
|
}, [enabled, referenceElement]);
|
|
7695
7695
|
}
|
|
7696
7696
|
|
|
7697
|
-
//
|
|
7697
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingDelayGroup.js
|
|
7698
7698
|
import * as React32 from "react";
|
|
7699
7699
|
|
|
7700
|
-
//
|
|
7700
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHover.js
|
|
7701
7701
|
import * as React31 from "react";
|
|
7702
7702
|
|
|
7703
|
-
//
|
|
7703
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useValueAsRef.js
|
|
7704
7704
|
function useValueAsRef(value) {
|
|
7705
7705
|
const latest = useRefWithInit(createLatestRef, value).current;
|
|
7706
7706
|
latest.next = value;
|
|
@@ -7718,10 +7718,10 @@ function createLatestRef(value) {
|
|
|
7718
7718
|
return latest;
|
|
7719
7719
|
}
|
|
7720
7720
|
|
|
7721
|
-
//
|
|
7721
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTree.js
|
|
7722
7722
|
import * as React30 from "react";
|
|
7723
7723
|
|
|
7724
|
-
//
|
|
7724
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/utils/createEventEmitter.js
|
|
7725
7725
|
function createEventEmitter() {
|
|
7726
7726
|
const map = /* @__PURE__ */ new Map();
|
|
7727
7727
|
return {
|
|
@@ -7740,7 +7740,7 @@ function createEventEmitter() {
|
|
|
7740
7740
|
};
|
|
7741
7741
|
}
|
|
7742
7742
|
|
|
7743
|
-
//
|
|
7743
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTreeStore.js
|
|
7744
7744
|
var FloatingTreeStore = class {
|
|
7745
7745
|
nodesRef = {
|
|
7746
7746
|
current: []
|
|
@@ -7757,7 +7757,7 @@ var FloatingTreeStore = class {
|
|
|
7757
7757
|
}
|
|
7758
7758
|
};
|
|
7759
7759
|
|
|
7760
|
-
//
|
|
7760
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTree.js
|
|
7761
7761
|
import { jsx as _jsx4 } from "react/jsx-runtime";
|
|
7762
7762
|
var FloatingNodeContext = /* @__PURE__ */ React30.createContext(null);
|
|
7763
7763
|
if (process.env.NODE_ENV !== "production") FloatingNodeContext.displayName = "FloatingNodeContext";
|
|
@@ -7813,12 +7813,12 @@ function FloatingTree(props) {
|
|
|
7813
7813
|
});
|
|
7814
7814
|
}
|
|
7815
7815
|
|
|
7816
|
-
//
|
|
7816
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute.js
|
|
7817
7817
|
function createAttribute(name) {
|
|
7818
7818
|
return `data-base-ui-${name}`;
|
|
7819
7819
|
}
|
|
7820
7820
|
|
|
7821
|
-
//
|
|
7821
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHover.js
|
|
7822
7822
|
var safePolygonIdentifier = createAttribute("safe-polygon");
|
|
7823
7823
|
var interactiveSelector = `button,[role="button"],select,[tabindex]:not([tabindex="-1"]),${TYPEABLE_SELECTOR}`;
|
|
7824
7824
|
function getDelay(value, prop, pointerType) {
|
|
@@ -7838,7 +7838,7 @@ function getDelay(value, prop, pointerType) {
|
|
|
7838
7838
|
return value?.[prop];
|
|
7839
7839
|
}
|
|
7840
7840
|
|
|
7841
|
-
//
|
|
7841
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingDelayGroup.js
|
|
7842
7842
|
import { jsx as _jsx5 } from "react/jsx-runtime";
|
|
7843
7843
|
var FloatingDelayGroupContext = /* @__PURE__ */ React32.createContext({
|
|
7844
7844
|
hasProvider: false,
|
|
@@ -7974,10 +7974,10 @@ function useDelayGroup(context, options = {
|
|
|
7974
7974
|
}), [hasProvider, delayRef, isInstantPhase]);
|
|
7975
7975
|
}
|
|
7976
7976
|
|
|
7977
|
-
//
|
|
7977
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager.js
|
|
7978
7978
|
import * as React35 from "react";
|
|
7979
7979
|
|
|
7980
|
-
//
|
|
7980
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/visuallyHidden.js
|
|
7981
7981
|
var visuallyHiddenBase = {
|
|
7982
7982
|
clipPath: "inset(50%)",
|
|
7983
7983
|
overflow: "hidden",
|
|
@@ -7999,7 +7999,7 @@ var visuallyHiddenInput = {
|
|
|
7999
7999
|
position: "absolute"
|
|
8000
8000
|
};
|
|
8001
8001
|
|
|
8002
|
-
//
|
|
8002
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/FocusGuard.js
|
|
8003
8003
|
import * as React33 from "react";
|
|
8004
8004
|
import { jsx as _jsx6 } from "react/jsx-runtime";
|
|
8005
8005
|
var FocusGuard = /* @__PURE__ */ React33.forwardRef(function FocusGuard2(props, ref) {
|
|
@@ -8025,7 +8025,7 @@ var FocusGuard = /* @__PURE__ */ React33.forwardRef(function FocusGuard2(props,
|
|
|
8025
8025
|
});
|
|
8026
8026
|
if (process.env.NODE_ENV !== "production") FocusGuard.displayName = "FocusGuard";
|
|
8027
8027
|
|
|
8028
|
-
//
|
|
8028
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/utils/enqueueFocus.js
|
|
8029
8029
|
var rafId = 0;
|
|
8030
8030
|
function enqueueFocus(el, options = {}) {
|
|
8031
8031
|
const {
|
|
@@ -8046,7 +8046,7 @@ function enqueueFocus(el, options = {}) {
|
|
|
8046
8046
|
}
|
|
8047
8047
|
}
|
|
8048
8048
|
|
|
8049
|
-
//
|
|
8049
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/utils/markOthers.js
|
|
8050
8050
|
var counters = {
|
|
8051
8051
|
inert: /* @__PURE__ */ new WeakMap(),
|
|
8052
8052
|
"aria-hidden": /* @__PURE__ */ new WeakMap(),
|
|
@@ -8163,7 +8163,7 @@ function markOthers(avoidElements, ariaHidden = false, inert = false) {
|
|
|
8163
8163
|
return applyAttributeToOthers(avoidElements.concat(Array.from(body.querySelectorAll("[aria-live]"))), body, ariaHidden, inert);
|
|
8164
8164
|
}
|
|
8165
8165
|
|
|
8166
|
-
//
|
|
8166
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingPortal.js
|
|
8167
8167
|
import * as React34 from "react";
|
|
8168
8168
|
import * as ReactDOM2 from "react-dom";
|
|
8169
8169
|
import { jsx as _jsx7, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -8328,7 +8328,7 @@ var FloatingPortal = /* @__PURE__ */ React34.forwardRef(function FloatingPortal2
|
|
|
8328
8328
|
});
|
|
8329
8329
|
if (process.env.NODE_ENV !== "production") FloatingPortal.displayName = "FloatingPortal";
|
|
8330
8330
|
|
|
8331
|
-
//
|
|
8331
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager.js
|
|
8332
8332
|
import { jsx as _jsx8, jsxs as _jsxs2 } from "react/jsx-runtime";
|
|
8333
8333
|
function getEventType(event2, lastInteractionType) {
|
|
8334
8334
|
const win = getWindow(event2.target);
|
|
@@ -8847,7 +8847,7 @@ function FloatingFocusManager(props) {
|
|
|
8847
8847
|
});
|
|
8848
8848
|
}
|
|
8849
8849
|
|
|
8850
|
-
//
|
|
8850
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useClick.js
|
|
8851
8851
|
import * as React36 from "react";
|
|
8852
8852
|
function useClick(context, props = {}) {
|
|
8853
8853
|
const store = "rootStore" in context ? context.rootStore : context;
|
|
@@ -8935,7 +8935,7 @@ function useClick(context, props = {}) {
|
|
|
8935
8935
|
} : EMPTY_OBJECT, [enabled, reference]);
|
|
8936
8936
|
}
|
|
8937
8937
|
|
|
8938
|
-
//
|
|
8938
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useClientPoint.js
|
|
8939
8939
|
import * as React37 from "react";
|
|
8940
8940
|
function createVirtualElement(domElement, data) {
|
|
8941
8941
|
let offsetX = null;
|
|
@@ -9097,10 +9097,10 @@ function useClientPoint(context, props = {}) {
|
|
|
9097
9097
|
} : {}, [enabled, reference]);
|
|
9098
9098
|
}
|
|
9099
9099
|
|
|
9100
|
-
//
|
|
9100
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useDismiss.js
|
|
9101
9101
|
import * as React39 from "react";
|
|
9102
9102
|
|
|
9103
|
-
//
|
|
9103
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
9104
9104
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
9105
9105
|
let {
|
|
9106
9106
|
reference,
|
|
@@ -9754,7 +9754,7 @@ var size = function(options) {
|
|
|
9754
9754
|
};
|
|
9755
9755
|
};
|
|
9756
9756
|
|
|
9757
|
-
//
|
|
9757
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
9758
9758
|
function getCssDimensions(element) {
|
|
9759
9759
|
const css = getComputedStyle2(element);
|
|
9760
9760
|
let width = parseFloat(css.width) || 0;
|
|
@@ -10364,7 +10364,7 @@ var computePosition2 = (reference, floating, options) => {
|
|
|
10364
10364
|
});
|
|
10365
10365
|
};
|
|
10366
10366
|
|
|
10367
|
-
//
|
|
10367
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
10368
10368
|
import * as React38 from "react";
|
|
10369
10369
|
import { useLayoutEffect as useLayoutEffect3 } from "react";
|
|
10370
10370
|
import * as ReactDOM3 from "react-dom";
|
|
@@ -10613,7 +10613,7 @@ var hide3 = (options, deps) => ({
|
|
|
10613
10613
|
options: [options, deps]
|
|
10614
10614
|
});
|
|
10615
10615
|
|
|
10616
|
-
//
|
|
10616
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useDismiss.js
|
|
10617
10617
|
var bubbleHandlerKeys = {
|
|
10618
10618
|
intentional: "onClick",
|
|
10619
10619
|
sloppy: "onPointerDown"
|
|
@@ -11015,7 +11015,7 @@ function useDismiss(context, props = {}) {
|
|
|
11015
11015
|
} : {}, [enabled, reference, floating]);
|
|
11016
11016
|
}
|
|
11017
11017
|
|
|
11018
|
-
//
|
|
11018
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloating.js
|
|
11019
11019
|
import * as React44 from "react";
|
|
11020
11020
|
|
|
11021
11021
|
// ../../node_modules/reselect/dist/reselect.mjs
|
|
@@ -11436,7 +11436,7 @@ var createStructuredSelector = Object.assign(
|
|
|
11436
11436
|
{ withTypes: () => createStructuredSelector }
|
|
11437
11437
|
);
|
|
11438
11438
|
|
|
11439
|
-
//
|
|
11439
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/store/createSelector.js
|
|
11440
11440
|
var reselectCreateSelector = createSelectorCreator({
|
|
11441
11441
|
memoize: lruMemoize,
|
|
11442
11442
|
memoizeOptions: {
|
|
@@ -11492,7 +11492,7 @@ var createSelector2 = (a2, b2, c2, d2, e2, f2, ...other) => {
|
|
|
11492
11492
|
return selector;
|
|
11493
11493
|
};
|
|
11494
11494
|
|
|
11495
|
-
//
|
|
11495
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/store/useStore.js
|
|
11496
11496
|
import * as React40 from "react";
|
|
11497
11497
|
import { useSyncExternalStore } from "use-sync-external-store/shim";
|
|
11498
11498
|
import { useSyncExternalStoreWithSelector } from "use-sync-external-store/shim/with-selector";
|
|
@@ -11509,7 +11509,7 @@ function useStoreLegacy(store, selector, a1, a2, a3) {
|
|
|
11509
11509
|
return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, (state) => selector(state, a1, a2, a3));
|
|
11510
11510
|
}
|
|
11511
11511
|
|
|
11512
|
-
//
|
|
11512
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/store/Store.js
|
|
11513
11513
|
var Store = class _Store {
|
|
11514
11514
|
/**
|
|
11515
11515
|
* The current state of the store.
|
|
@@ -11603,7 +11603,7 @@ var Store = class _Store {
|
|
|
11603
11603
|
}
|
|
11604
11604
|
};
|
|
11605
11605
|
|
|
11606
|
-
//
|
|
11606
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/store/ReactStore.js
|
|
11607
11607
|
import * as React41 from "react";
|
|
11608
11608
|
var ReactStore = class extends Store {
|
|
11609
11609
|
/**
|
|
@@ -11846,7 +11846,7 @@ var ReactStore = class extends Store {
|
|
|
11846
11846
|
}
|
|
11847
11847
|
};
|
|
11848
11848
|
|
|
11849
|
-
//
|
|
11849
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useForcedRerendering.js
|
|
11850
11850
|
import * as React42 from "react";
|
|
11851
11851
|
function useForcedRerendering() {
|
|
11852
11852
|
const [, setState] = React42.useState({});
|
|
@@ -11855,7 +11855,7 @@ function useForcedRerendering() {
|
|
|
11855
11855
|
}, []);
|
|
11856
11856
|
}
|
|
11857
11857
|
|
|
11858
|
-
//
|
|
11858
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingRootStore.js
|
|
11859
11859
|
var selectors = {
|
|
11860
11860
|
open: createSelector2((state) => state.open),
|
|
11861
11861
|
domReferenceElement: createSelector2((state) => state.domReferenceElement),
|
|
@@ -11913,7 +11913,7 @@ var FloatingRootStore = class extends ReactStore {
|
|
|
11913
11913
|
};
|
|
11914
11914
|
};
|
|
11915
11915
|
|
|
11916
|
-
//
|
|
11916
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/popups/popupStoreUtils.js
|
|
11917
11917
|
import * as React43 from "react";
|
|
11918
11918
|
function useTriggerRegistration(id3, store) {
|
|
11919
11919
|
const registeredElementIdRef = React43.useRef(null);
|
|
@@ -12028,7 +12028,7 @@ function useOpenStateTransitions(open, store, onUnmount) {
|
|
|
12028
12028
|
};
|
|
12029
12029
|
}
|
|
12030
12030
|
|
|
12031
|
-
//
|
|
12031
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/popups/popupTriggerMap.js
|
|
12032
12032
|
var PopupTriggerMap = class {
|
|
12033
12033
|
constructor() {
|
|
12034
12034
|
this.elements = /* @__PURE__ */ new Set();
|
|
@@ -12093,7 +12093,7 @@ var PopupTriggerMap = class {
|
|
|
12093
12093
|
}
|
|
12094
12094
|
};
|
|
12095
12095
|
|
|
12096
|
-
//
|
|
12096
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/utils/getEmptyRootContext.js
|
|
12097
12097
|
function getEmptyRootContext() {
|
|
12098
12098
|
return new FloatingRootStore({
|
|
12099
12099
|
open: false,
|
|
@@ -12107,7 +12107,7 @@ function getEmptyRootContext() {
|
|
|
12107
12107
|
});
|
|
12108
12108
|
}
|
|
12109
12109
|
|
|
12110
|
-
//
|
|
12110
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/popups/store.js
|
|
12111
12111
|
function createInitialPopupStoreState() {
|
|
12112
12112
|
return {
|
|
12113
12113
|
open: false,
|
|
@@ -12152,7 +12152,7 @@ var popupStoreSelectors = {
|
|
|
12152
12152
|
positionerElement: createSelector2((state) => state.positionerElement)
|
|
12153
12153
|
};
|
|
12154
12154
|
|
|
12155
|
-
//
|
|
12155
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloatingRootContext.js
|
|
12156
12156
|
function useFloatingRootContext(options) {
|
|
12157
12157
|
const {
|
|
12158
12158
|
open = false,
|
|
@@ -12197,7 +12197,7 @@ function useFloatingRootContext(options) {
|
|
|
12197
12197
|
return store;
|
|
12198
12198
|
}
|
|
12199
12199
|
|
|
12200
|
-
//
|
|
12200
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloating.js
|
|
12201
12201
|
function useFloating2(options = {}) {
|
|
12202
12202
|
const {
|
|
12203
12203
|
nodeId,
|
|
@@ -12298,7 +12298,7 @@ function useFloating2(options = {}) {
|
|
|
12298
12298
|
}), [position, refs, elements, context, rootContext]);
|
|
12299
12299
|
}
|
|
12300
12300
|
|
|
12301
|
-
//
|
|
12301
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useSyncedFloatingRootContext.js
|
|
12302
12302
|
function useSyncedFloatingRootContext(options) {
|
|
12303
12303
|
const {
|
|
12304
12304
|
popupStore,
|
|
@@ -12343,7 +12343,7 @@ function useSyncedFloatingRootContext(options) {
|
|
|
12343
12343
|
return store;
|
|
12344
12344
|
}
|
|
12345
12345
|
|
|
12346
|
-
//
|
|
12346
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFocus.js
|
|
12347
12347
|
import * as React45 from "react";
|
|
12348
12348
|
var isMacSafari = isMac && isSafari;
|
|
12349
12349
|
function useFocus(context, props = {}) {
|
|
@@ -12483,10 +12483,10 @@ function useFocus(context, props = {}) {
|
|
|
12483
12483
|
} : {}, [enabled, reference]);
|
|
12484
12484
|
}
|
|
12485
12485
|
|
|
12486
|
-
//
|
|
12486
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverFloatingInteraction.js
|
|
12487
12487
|
import * as React47 from "react";
|
|
12488
12488
|
|
|
12489
|
-
//
|
|
12489
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverInteractionSharedState.js
|
|
12490
12490
|
import * as React46 from "react";
|
|
12491
12491
|
var safePolygonIdentifier2 = createAttribute("safe-polygon");
|
|
12492
12492
|
var interactiveSelector2 = `button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${TYPEABLE_SELECTOR}`;
|
|
@@ -12525,7 +12525,7 @@ function useHoverInteractionSharedState(store) {
|
|
|
12525
12525
|
}, [store, pointerTypeRef, interactedInsideRef, handlerRef, blockMouseMoveRef, performedPointerEventsMutationRef, unbindMouseMoveRef, restTimeoutPendingRef, openChangeTimeout, restTimeout, handleCloseOptionsRef]);
|
|
12526
12526
|
}
|
|
12527
12527
|
|
|
12528
|
-
//
|
|
12528
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverFloatingInteraction.js
|
|
12529
12529
|
var clickLikeEvents = /* @__PURE__ */ new Set(["click", "mousedown"]);
|
|
12530
12530
|
function useHoverFloatingInteraction(context, parameters = {}) {
|
|
12531
12531
|
const store = "rootStore" in context ? context.rootStore : context;
|
|
@@ -12689,7 +12689,7 @@ function getDelay2(value, pointerType) {
|
|
|
12689
12689
|
return value;
|
|
12690
12690
|
}
|
|
12691
12691
|
|
|
12692
|
-
//
|
|
12692
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverReferenceInteraction.js
|
|
12693
12693
|
import * as React48 from "react";
|
|
12694
12694
|
import * as ReactDOM4 from "react-dom";
|
|
12695
12695
|
function getRestMs(value) {
|
|
@@ -12961,7 +12961,7 @@ function useHoverReferenceInteraction(context, props = {}) {
|
|
|
12961
12961
|
}, [blockMouseMoveRef, isClickLikeOpenEvent, mouseOnly, store, pointerTypeRef, restMsRef, restTimeout, restTimeoutPendingRef]);
|
|
12962
12962
|
}
|
|
12963
12963
|
|
|
12964
|
-
//
|
|
12964
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useInteractions.js
|
|
12965
12965
|
import * as React49 from "react";
|
|
12966
12966
|
function useInteractions(propsList = []) {
|
|
12967
12967
|
const referenceDeps = propsList.map((key) => key?.reference);
|
|
@@ -13049,7 +13049,7 @@ function mutablyMergeProps(outputProps, props, isItem, eventHandlers) {
|
|
|
13049
13049
|
}
|
|
13050
13050
|
}
|
|
13051
13051
|
|
|
13052
|
-
//
|
|
13052
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useListNavigation.js
|
|
13053
13053
|
import * as React50 from "react";
|
|
13054
13054
|
var ESCAPE = "Escape";
|
|
13055
13055
|
function doSwitch(orientation, vertical, horizontal) {
|
|
@@ -13581,7 +13581,7 @@ function useListNavigation(context, props) {
|
|
|
13581
13581
|
} : {}, [enabled, reference, floating, trigger, item]);
|
|
13582
13582
|
}
|
|
13583
13583
|
|
|
13584
|
-
//
|
|
13584
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useRole.js
|
|
13585
13585
|
import * as React51 from "react";
|
|
13586
13586
|
var componentRoleToAriaRoleMap = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", false]]);
|
|
13587
13587
|
function useRole(context, props = {}) {
|
|
@@ -13683,7 +13683,7 @@ function useRole(context, props = {}) {
|
|
|
13683
13683
|
} : {}, [enabled, reference, floating, trigger, item]);
|
|
13684
13684
|
}
|
|
13685
13685
|
|
|
13686
|
-
//
|
|
13686
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useTypeahead.js
|
|
13687
13687
|
import * as React52 from "react";
|
|
13688
13688
|
function useTypeahead(context, props) {
|
|
13689
13689
|
const store = "rootStore" in context ? context.rootStore : context;
|
|
@@ -13789,7 +13789,7 @@ function useTypeahead(context, props) {
|
|
|
13789
13789
|
} : {}, [enabled, reference, floating]);
|
|
13790
13790
|
}
|
|
13791
13791
|
|
|
13792
|
-
//
|
|
13792
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/safePolygon.js
|
|
13793
13793
|
function isPointInPolygon(point, polygon) {
|
|
13794
13794
|
const [x2, y2] = point;
|
|
13795
13795
|
let isInsideValue = false;
|
|
@@ -13972,10 +13972,10 @@ function safePolygon(options = {}) {
|
|
|
13972
13972
|
return fn;
|
|
13973
13973
|
}
|
|
13974
13974
|
|
|
13975
|
-
//
|
|
13975
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js
|
|
13976
13976
|
import * as React54 from "react";
|
|
13977
13977
|
|
|
13978
|
-
//
|
|
13978
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useEnhancedClickHandler.js
|
|
13979
13979
|
import * as React53 from "react";
|
|
13980
13980
|
function useEnhancedClickHandler(handler) {
|
|
13981
13981
|
const lastClickInteractionTypeRef = React53.useRef("");
|
|
@@ -14003,7 +14003,7 @@ function useEnhancedClickHandler(handler) {
|
|
|
14003
14003
|
};
|
|
14004
14004
|
}
|
|
14005
14005
|
|
|
14006
|
-
//
|
|
14006
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js
|
|
14007
14007
|
function useOpenInteractionType(open) {
|
|
14008
14008
|
const [openMethod, setOpenMethod] = React54.useState(null);
|
|
14009
14009
|
const handleTriggerClick = useStableCallback((_2, interactionType) => {
|
|
@@ -14031,7 +14031,7 @@ function useOpenInteractionType(open) {
|
|
|
14031
14031
|
}), [openMethod, reset, onClick, onPointerDown]);
|
|
14032
14032
|
}
|
|
14033
14033
|
|
|
14034
|
-
//
|
|
14034
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.js
|
|
14035
14035
|
function useDialogRoot(params) {
|
|
14036
14036
|
const {
|
|
14037
14037
|
store,
|
|
@@ -14143,7 +14143,7 @@ function useDialogRoot(params) {
|
|
|
14143
14143
|
});
|
|
14144
14144
|
}
|
|
14145
14145
|
|
|
14146
|
-
//
|
|
14146
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext.js
|
|
14147
14147
|
import * as React56 from "react";
|
|
14148
14148
|
var DialogRootContext = /* @__PURE__ */ React56.createContext(void 0);
|
|
14149
14149
|
if (process.env.NODE_ENV !== "production") DialogRootContext.displayName = "DialogRootContext";
|
|
@@ -14155,7 +14155,7 @@ function useDialogRootContext(optional) {
|
|
|
14155
14155
|
return dialogRootContext;
|
|
14156
14156
|
}
|
|
14157
14157
|
|
|
14158
|
-
//
|
|
14158
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/store/DialogStore.js
|
|
14159
14159
|
import * as React57 from "react";
|
|
14160
14160
|
var selectors2 = {
|
|
14161
14161
|
...popupStoreSelectors,
|
|
@@ -14226,7 +14226,7 @@ function createInitialState(initialState = {}) {
|
|
|
14226
14226
|
};
|
|
14227
14227
|
}
|
|
14228
14228
|
|
|
14229
|
-
//
|
|
14229
|
+
// ../ui/node_modules/@base-ui/react/esm/alert-dialog/root/AlertDialogRoot.js
|
|
14230
14230
|
import { jsx as _jsx9 } from "react/jsx-runtime";
|
|
14231
14231
|
function AlertDialogRoot(props) {
|
|
14232
14232
|
const {
|
|
@@ -14276,10 +14276,10 @@ function AlertDialogRoot(props) {
|
|
|
14276
14276
|
});
|
|
14277
14277
|
}
|
|
14278
14278
|
|
|
14279
|
-
//
|
|
14279
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js
|
|
14280
14280
|
import * as React59 from "react";
|
|
14281
14281
|
|
|
14282
|
-
//
|
|
14282
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/popupStateMapping.js
|
|
14283
14283
|
var CommonPopupDataAttributes = (function(CommonPopupDataAttributes2) {
|
|
14284
14284
|
CommonPopupDataAttributes2["open"] = "data-open";
|
|
14285
14285
|
CommonPopupDataAttributes2["closed"] = "data-closed";
|
|
@@ -14340,7 +14340,7 @@ var popupStateMapping = {
|
|
|
14340
14340
|
}
|
|
14341
14341
|
};
|
|
14342
14342
|
|
|
14343
|
-
//
|
|
14343
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js
|
|
14344
14344
|
var stateAttributesMapping = {
|
|
14345
14345
|
...popupStateMapping,
|
|
14346
14346
|
...transitionStatusMapping
|
|
@@ -14380,7 +14380,7 @@ var DialogBackdrop = /* @__PURE__ */ React59.forwardRef(function DialogBackdrop2
|
|
|
14380
14380
|
});
|
|
14381
14381
|
if (process.env.NODE_ENV !== "production") DialogBackdrop.displayName = "DialogBackdrop";
|
|
14382
14382
|
|
|
14383
|
-
//
|
|
14383
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/close/DialogClose.js
|
|
14384
14384
|
import * as React60 from "react";
|
|
14385
14385
|
var DialogClose = /* @__PURE__ */ React60.forwardRef(function DialogClose2(componentProps, forwardedRef) {
|
|
14386
14386
|
const {
|
|
@@ -14419,7 +14419,7 @@ var DialogClose = /* @__PURE__ */ React60.forwardRef(function DialogClose2(compo
|
|
|
14419
14419
|
});
|
|
14420
14420
|
if (process.env.NODE_ENV !== "production") DialogClose.displayName = "DialogClose";
|
|
14421
14421
|
|
|
14422
|
-
//
|
|
14422
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/description/DialogDescription.js
|
|
14423
14423
|
import * as React61 from "react";
|
|
14424
14424
|
var DialogDescription = /* @__PURE__ */ React61.forwardRef(function DialogDescription2(componentProps, forwardedRef) {
|
|
14425
14425
|
const {
|
|
@@ -14442,16 +14442,16 @@ var DialogDescription = /* @__PURE__ */ React61.forwardRef(function DialogDescri
|
|
|
14442
14442
|
});
|
|
14443
14443
|
if (process.env.NODE_ENV !== "production") DialogDescription.displayName = "DialogDescription";
|
|
14444
14444
|
|
|
14445
|
-
//
|
|
14445
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js
|
|
14446
14446
|
import * as React63 from "react";
|
|
14447
14447
|
|
|
14448
|
-
//
|
|
14448
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.js
|
|
14449
14449
|
var DialogPopupCssVars = /* @__PURE__ */ (function(DialogPopupCssVars2) {
|
|
14450
14450
|
DialogPopupCssVars2["nestedDialogs"] = "--nested-dialogs";
|
|
14451
14451
|
return DialogPopupCssVars2;
|
|
14452
14452
|
})({});
|
|
14453
14453
|
|
|
14454
|
-
//
|
|
14454
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupDataAttributes.js
|
|
14455
14455
|
var DialogPopupDataAttributes = (function(DialogPopupDataAttributes2) {
|
|
14456
14456
|
DialogPopupDataAttributes2[DialogPopupDataAttributes2["open"] = CommonPopupDataAttributes.open] = "open";
|
|
14457
14457
|
DialogPopupDataAttributes2[DialogPopupDataAttributes2["closed"] = CommonPopupDataAttributes.closed] = "closed";
|
|
@@ -14462,7 +14462,7 @@ var DialogPopupDataAttributes = (function(DialogPopupDataAttributes2) {
|
|
|
14462
14462
|
return DialogPopupDataAttributes2;
|
|
14463
14463
|
})({});
|
|
14464
14464
|
|
|
14465
|
-
//
|
|
14465
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/portal/DialogPortalContext.js
|
|
14466
14466
|
import * as React62 from "react";
|
|
14467
14467
|
var DialogPortalContext = /* @__PURE__ */ React62.createContext(void 0);
|
|
14468
14468
|
if (process.env.NODE_ENV !== "production") DialogPortalContext.displayName = "DialogPortalContext";
|
|
@@ -14474,7 +14474,7 @@ function useDialogPortalContext() {
|
|
|
14474
14474
|
return value;
|
|
14475
14475
|
}
|
|
14476
14476
|
|
|
14477
|
-
//
|
|
14477
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js
|
|
14478
14478
|
import { jsx as _jsx10 } from "react/jsx-runtime";
|
|
14479
14479
|
var stateAttributesMapping2 = {
|
|
14480
14480
|
...popupStateMapping,
|
|
@@ -14567,10 +14567,10 @@ var DialogPopup = /* @__PURE__ */ React63.forwardRef(function DialogPopup2(compo
|
|
|
14567
14567
|
});
|
|
14568
14568
|
if (process.env.NODE_ENV !== "production") DialogPopup.displayName = "DialogPopup";
|
|
14569
14569
|
|
|
14570
|
-
//
|
|
14570
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js
|
|
14571
14571
|
import * as React65 from "react";
|
|
14572
14572
|
|
|
14573
|
-
//
|
|
14573
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/inertValue.js
|
|
14574
14574
|
function inertValue(value) {
|
|
14575
14575
|
if (isReactVersionAtLeast(19)) {
|
|
14576
14576
|
return value;
|
|
@@ -14578,7 +14578,7 @@ function inertValue(value) {
|
|
|
14578
14578
|
return value ? "true" : void 0;
|
|
14579
14579
|
}
|
|
14580
14580
|
|
|
14581
|
-
//
|
|
14581
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/InternalBackdrop.js
|
|
14582
14582
|
import * as React64 from "react";
|
|
14583
14583
|
import { jsx as _jsx11 } from "react/jsx-runtime";
|
|
14584
14584
|
var InternalBackdrop = /* @__PURE__ */ React64.forwardRef(function InternalBackdrop2(props, ref) {
|
|
@@ -14618,7 +14618,7 @@ var InternalBackdrop = /* @__PURE__ */ React64.forwardRef(function InternalBackd
|
|
|
14618
14618
|
});
|
|
14619
14619
|
if (process.env.NODE_ENV !== "production") InternalBackdrop.displayName = "InternalBackdrop";
|
|
14620
14620
|
|
|
14621
|
-
//
|
|
14621
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js
|
|
14622
14622
|
import { jsx as _jsx12, jsxs as _jsxs3 } from "react/jsx-runtime";
|
|
14623
14623
|
var DialogPortal = /* @__PURE__ */ React65.forwardRef(function DialogPortal2(props, forwardedRef) {
|
|
14624
14624
|
const {
|
|
@@ -14649,7 +14649,7 @@ var DialogPortal = /* @__PURE__ */ React65.forwardRef(function DialogPortal2(pro
|
|
|
14649
14649
|
});
|
|
14650
14650
|
if (process.env.NODE_ENV !== "production") DialogPortal.displayName = "DialogPortal";
|
|
14651
14651
|
|
|
14652
|
-
//
|
|
14652
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.js
|
|
14653
14653
|
import * as React66 from "react";
|
|
14654
14654
|
var DialogTitle = /* @__PURE__ */ React66.forwardRef(function DialogTitle2(componentProps, forwardedRef) {
|
|
14655
14655
|
const {
|
|
@@ -14672,7 +14672,7 @@ var DialogTitle = /* @__PURE__ */ React66.forwardRef(function DialogTitle2(compo
|
|
|
14672
14672
|
});
|
|
14673
14673
|
if (process.env.NODE_ENV !== "production") DialogTitle.displayName = "DialogTitle";
|
|
14674
14674
|
|
|
14675
|
-
//
|
|
14675
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/trigger/DialogTrigger.js
|
|
14676
14676
|
import * as React67 from "react";
|
|
14677
14677
|
var DialogTrigger = /* @__PURE__ */ React67.forwardRef(function DialogTrigger2(componentProps, forwardedRef) {
|
|
14678
14678
|
const {
|
|
@@ -14728,10 +14728,10 @@ var DialogTrigger = /* @__PURE__ */ React67.forwardRef(function DialogTrigger2(c
|
|
|
14728
14728
|
});
|
|
14729
14729
|
if (process.env.NODE_ENV !== "production") DialogTrigger.displayName = "DialogTrigger";
|
|
14730
14730
|
|
|
14731
|
-
//
|
|
14731
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/viewport/DialogViewport.js
|
|
14732
14732
|
import * as React68 from "react";
|
|
14733
14733
|
|
|
14734
|
-
//
|
|
14734
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/viewport/DialogViewportDataAttributes.js
|
|
14735
14735
|
var DialogViewportDataAttributes = (function(DialogViewportDataAttributes2) {
|
|
14736
14736
|
DialogViewportDataAttributes2[DialogViewportDataAttributes2["open"] = CommonPopupDataAttributes.open] = "open";
|
|
14737
14737
|
DialogViewportDataAttributes2[DialogViewportDataAttributes2["closed"] = CommonPopupDataAttributes.closed] = "closed";
|
|
@@ -14742,7 +14742,7 @@ var DialogViewportDataAttributes = (function(DialogViewportDataAttributes2) {
|
|
|
14742
14742
|
return DialogViewportDataAttributes2;
|
|
14743
14743
|
})({});
|
|
14744
14744
|
|
|
14745
|
-
//
|
|
14745
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/viewport/DialogViewport.js
|
|
14746
14746
|
var stateAttributesMapping3 = {
|
|
14747
14747
|
...popupStateMapping,
|
|
14748
14748
|
...transitionStatusMapping,
|
|
@@ -14795,7 +14795,7 @@ var DialogViewport = /* @__PURE__ */ React68.forwardRef(function DialogViewport2
|
|
|
14795
14795
|
});
|
|
14796
14796
|
if (process.env.NODE_ENV !== "production") DialogViewport.displayName = "DialogViewport";
|
|
14797
14797
|
|
|
14798
|
-
//
|
|
14798
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/store/DialogHandle.js
|
|
14799
14799
|
var DialogHandle = class {
|
|
14800
14800
|
/**
|
|
14801
14801
|
* Internal store holding the dialog state.
|
|
@@ -14848,7 +14848,7 @@ function createDialogHandle() {
|
|
|
14848
14848
|
return new DialogHandle();
|
|
14849
14849
|
}
|
|
14850
14850
|
|
|
14851
|
-
//
|
|
14851
|
+
// ../ui/node_modules/@base-ui/react/esm/alert-dialog/handle.js
|
|
14852
14852
|
function createAlertDialogHandle() {
|
|
14853
14853
|
return new DialogHandle(new DialogStore({
|
|
14854
14854
|
modal: true,
|
|
@@ -15267,7 +15267,7 @@ CardFooter.displayName = "CardFooter";
|
|
|
15267
15267
|
// ../ui/src/components/challenge-modal.tsx
|
|
15268
15268
|
import { forwardRef as forwardRef35, useCallback as useCallback24, useEffect as useEffect24, useImperativeHandle as useImperativeHandle2, useRef as useRef36, useState as useState26 } from "react";
|
|
15269
15269
|
|
|
15270
|
-
//
|
|
15270
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/index.parts.js
|
|
15271
15271
|
var index_parts_exports3 = {};
|
|
15272
15272
|
__export(index_parts_exports3, {
|
|
15273
15273
|
Backdrop: () => DialogBackdrop,
|
|
@@ -15283,7 +15283,7 @@ __export(index_parts_exports3, {
|
|
|
15283
15283
|
createHandle: () => createDialogHandle
|
|
15284
15284
|
});
|
|
15285
15285
|
|
|
15286
|
-
//
|
|
15286
|
+
// ../ui/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js
|
|
15287
15287
|
import * as React69 from "react";
|
|
15288
15288
|
import { jsx as _jsx13 } from "react/jsx-runtime";
|
|
15289
15289
|
function DialogRoot(props) {
|
|
@@ -24150,7 +24150,7 @@ var Textarea = forwardRef28(
|
|
|
24150
24150
|
);
|
|
24151
24151
|
Textarea.displayName = "Textarea";
|
|
24152
24152
|
|
|
24153
|
-
//
|
|
24153
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/index.parts.js
|
|
24154
24154
|
var index_parts_exports4 = {};
|
|
24155
24155
|
__export(index_parts_exports4, {
|
|
24156
24156
|
Indicator: () => TabsIndicator,
|
|
@@ -24160,10 +24160,10 @@ __export(index_parts_exports4, {
|
|
|
24160
24160
|
Tab: () => TabsTab
|
|
24161
24161
|
});
|
|
24162
24162
|
|
|
24163
|
-
//
|
|
24163
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/root/TabsRoot.js
|
|
24164
24164
|
import * as React74 from "react";
|
|
24165
24165
|
|
|
24166
|
-
//
|
|
24166
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/root/TabsRootContext.js
|
|
24167
24167
|
import * as React73 from "react";
|
|
24168
24168
|
var TabsRootContext = /* @__PURE__ */ React73.createContext(void 0);
|
|
24169
24169
|
if (process.env.NODE_ENV !== "production") TabsRootContext.displayName = "TabsRootContext";
|
|
@@ -24175,21 +24175,21 @@ function useTabsRootContext() {
|
|
|
24175
24175
|
return context;
|
|
24176
24176
|
}
|
|
24177
24177
|
|
|
24178
|
-
//
|
|
24178
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/root/TabsRootDataAttributes.js
|
|
24179
24179
|
var TabsRootDataAttributes = /* @__PURE__ */ (function(TabsRootDataAttributes2) {
|
|
24180
24180
|
TabsRootDataAttributes2["activationDirection"] = "data-activation-direction";
|
|
24181
24181
|
TabsRootDataAttributes2["orientation"] = "data-orientation";
|
|
24182
24182
|
return TabsRootDataAttributes2;
|
|
24183
24183
|
})({});
|
|
24184
24184
|
|
|
24185
|
-
//
|
|
24185
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/root/stateAttributesMapping.js
|
|
24186
24186
|
var tabsStateAttributesMapping = {
|
|
24187
24187
|
tabActivationDirection: (dir) => ({
|
|
24188
24188
|
[TabsRootDataAttributes.activationDirection]: dir
|
|
24189
24189
|
})
|
|
24190
24190
|
};
|
|
24191
24191
|
|
|
24192
|
-
//
|
|
24192
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/root/TabsRoot.js
|
|
24193
24193
|
import { jsx as _jsx14 } from "react/jsx-runtime";
|
|
24194
24194
|
var TabsRoot = /* @__PURE__ */ React74.forwardRef(function TabsRoot2(componentProps, forwardedRef) {
|
|
24195
24195
|
const {
|
|
@@ -24333,13 +24333,13 @@ var TabsRoot = /* @__PURE__ */ React74.forwardRef(function TabsRoot2(componentPr
|
|
|
24333
24333
|
});
|
|
24334
24334
|
if (process.env.NODE_ENV !== "production") TabsRoot.displayName = "TabsRoot";
|
|
24335
24335
|
|
|
24336
|
-
//
|
|
24336
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/tab/TabsTab.js
|
|
24337
24337
|
import * as React77 from "react";
|
|
24338
24338
|
|
|
24339
|
-
//
|
|
24339
|
+
// ../ui/node_modules/@base-ui/react/esm/composite/constants.js
|
|
24340
24340
|
var ACTIVE_COMPOSITE_ITEM = "data-composite-item-active";
|
|
24341
24341
|
|
|
24342
|
-
//
|
|
24342
|
+
// ../ui/node_modules/@base-ui/react/esm/composite/item/useCompositeItem.js
|
|
24343
24343
|
import * as React75 from "react";
|
|
24344
24344
|
function useCompositeItem(params = {}) {
|
|
24345
24345
|
const {
|
|
@@ -24377,7 +24377,7 @@ function useCompositeItem(params = {}) {
|
|
|
24377
24377
|
};
|
|
24378
24378
|
}
|
|
24379
24379
|
|
|
24380
|
-
//
|
|
24380
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/list/TabsListContext.js
|
|
24381
24381
|
import * as React76 from "react";
|
|
24382
24382
|
var TabsListContext = /* @__PURE__ */ React76.createContext(void 0);
|
|
24383
24383
|
if (process.env.NODE_ENV !== "production") TabsListContext.displayName = "TabsListContext";
|
|
@@ -24389,7 +24389,7 @@ function useTabsListContext() {
|
|
|
24389
24389
|
return context;
|
|
24390
24390
|
}
|
|
24391
24391
|
|
|
24392
|
-
//
|
|
24392
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/tab/TabsTab.js
|
|
24393
24393
|
var TabsTab = /* @__PURE__ */ React77.forwardRef(function TabsTab2(componentProps, forwardedRef) {
|
|
24394
24394
|
const {
|
|
24395
24395
|
className,
|
|
@@ -24527,10 +24527,10 @@ var TabsTab = /* @__PURE__ */ React77.forwardRef(function TabsTab2(componentProp
|
|
|
24527
24527
|
});
|
|
24528
24528
|
if (process.env.NODE_ENV !== "production") TabsTab.displayName = "TabsTab";
|
|
24529
24529
|
|
|
24530
|
-
//
|
|
24530
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/indicator/TabsIndicator.js
|
|
24531
24531
|
import * as React79 from "react";
|
|
24532
24532
|
|
|
24533
|
-
//
|
|
24533
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/getCssDimensions.js
|
|
24534
24534
|
function getCssDimensions2(element) {
|
|
24535
24535
|
const css = getComputedStyle2(element);
|
|
24536
24536
|
let width = parseFloat(css.width) || 0;
|
|
@@ -24549,10 +24549,10 @@ function getCssDimensions2(element) {
|
|
|
24549
24549
|
};
|
|
24550
24550
|
}
|
|
24551
24551
|
|
|
24552
|
-
//
|
|
24552
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/indicator/prehydrationScript.min.js
|
|
24553
24553
|
var script = '!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();';
|
|
24554
24554
|
|
|
24555
|
-
//
|
|
24555
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/indicator/TabsIndicatorCssVars.js
|
|
24556
24556
|
var TabsIndicatorCssVars = /* @__PURE__ */ (function(TabsIndicatorCssVars2) {
|
|
24557
24557
|
TabsIndicatorCssVars2["activeTabLeft"] = "--active-tab-left";
|
|
24558
24558
|
TabsIndicatorCssVars2["activeTabRight"] = "--active-tab-right";
|
|
@@ -24563,7 +24563,7 @@ var TabsIndicatorCssVars = /* @__PURE__ */ (function(TabsIndicatorCssVars2) {
|
|
|
24563
24563
|
return TabsIndicatorCssVars2;
|
|
24564
24564
|
})({});
|
|
24565
24565
|
|
|
24566
|
-
//
|
|
24566
|
+
// ../ui/node_modules/@base-ui/react/esm/csp-provider/CSPContext.js
|
|
24567
24567
|
import * as React78 from "react";
|
|
24568
24568
|
var CSPContext = /* @__PURE__ */ React78.createContext(void 0);
|
|
24569
24569
|
if (process.env.NODE_ENV !== "production") CSPContext.displayName = "CSPContext";
|
|
@@ -24574,7 +24574,7 @@ function useCSPContext() {
|
|
|
24574
24574
|
return React78.useContext(CSPContext) ?? DEFAULT_CSP_CONTEXT_VALUE;
|
|
24575
24575
|
}
|
|
24576
24576
|
|
|
24577
|
-
//
|
|
24577
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/indicator/TabsIndicator.js
|
|
24578
24578
|
import { jsx as _jsx15, jsxs as _jsxs4 } from "react/jsx-runtime";
|
|
24579
24579
|
var stateAttributesMapping4 = {
|
|
24580
24580
|
...tabsStateAttributesMapping,
|
|
@@ -24713,10 +24713,10 @@ var TabsIndicator = /* @__PURE__ */ React79.forwardRef(function TabIndicator(com
|
|
|
24713
24713
|
});
|
|
24714
24714
|
if (process.env.NODE_ENV !== "production") TabsIndicator.displayName = "TabsIndicator";
|
|
24715
24715
|
|
|
24716
|
-
//
|
|
24716
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/panel/TabsPanel.js
|
|
24717
24717
|
import * as React80 from "react";
|
|
24718
24718
|
|
|
24719
|
-
//
|
|
24719
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/panel/TabsPanelDataAttributes.js
|
|
24720
24720
|
var TabsPanelDataAttributes = /* @__PURE__ */ (function(TabsPanelDataAttributes2) {
|
|
24721
24721
|
TabsPanelDataAttributes2["index"] = "data-index";
|
|
24722
24722
|
TabsPanelDataAttributes2["activationDirection"] = "data-activation-direction";
|
|
@@ -24725,7 +24725,7 @@ var TabsPanelDataAttributes = /* @__PURE__ */ (function(TabsPanelDataAttributes2
|
|
|
24725
24725
|
return TabsPanelDataAttributes2;
|
|
24726
24726
|
})({});
|
|
24727
24727
|
|
|
24728
|
-
//
|
|
24728
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/panel/TabsPanel.js
|
|
24729
24729
|
var TabsPanel = /* @__PURE__ */ React80.forwardRef(function TabPanel(componentProps, forwardedRef) {
|
|
24730
24730
|
const {
|
|
24731
24731
|
className,
|
|
@@ -24793,13 +24793,13 @@ var TabsPanel = /* @__PURE__ */ React80.forwardRef(function TabPanel(componentPr
|
|
|
24793
24793
|
});
|
|
24794
24794
|
if (process.env.NODE_ENV !== "production") TabsPanel.displayName = "TabsPanel";
|
|
24795
24795
|
|
|
24796
|
-
//
|
|
24796
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/list/TabsList.js
|
|
24797
24797
|
import * as React83 from "react";
|
|
24798
24798
|
|
|
24799
|
-
//
|
|
24799
|
+
// ../ui/node_modules/@base-ui/react/esm/composite/root/CompositeRoot.js
|
|
24800
24800
|
import * as React82 from "react";
|
|
24801
24801
|
|
|
24802
|
-
//
|
|
24802
|
+
// ../ui/node_modules/@base-ui/react/esm/composite/root/useCompositeRoot.js
|
|
24803
24803
|
import * as React81 from "react";
|
|
24804
24804
|
var EMPTY_ARRAY2 = [];
|
|
24805
24805
|
function useCompositeRoot(params) {
|
|
@@ -25004,7 +25004,7 @@ function isModifierKeySet(event2, ignoredModifierKeys) {
|
|
|
25004
25004
|
return false;
|
|
25005
25005
|
}
|
|
25006
25006
|
|
|
25007
|
-
//
|
|
25007
|
+
// ../ui/node_modules/@base-ui/react/esm/composite/root/CompositeRoot.js
|
|
25008
25008
|
import { jsx as _jsx16 } from "react/jsx-runtime";
|
|
25009
25009
|
function CompositeRoot(componentProps) {
|
|
25010
25010
|
const {
|
|
@@ -25079,7 +25079,7 @@ function CompositeRoot(componentProps) {
|
|
|
25079
25079
|
});
|
|
25080
25080
|
}
|
|
25081
25081
|
|
|
25082
|
-
//
|
|
25082
|
+
// ../ui/node_modules/@base-ui/react/esm/tabs/list/TabsList.js
|
|
25083
25083
|
import { jsx as _jsx17 } from "react/jsx-runtime";
|
|
25084
25084
|
var TabsList = /* @__PURE__ */ React83.forwardRef(function TabsList2(componentProps, forwardedRef) {
|
|
25085
25085
|
const {
|
|
@@ -25767,20 +25767,20 @@ var ChallengeModal = forwardRef35(
|
|
|
25767
25767
|
);
|
|
25768
25768
|
ChallengeModal.displayName = "ChallengeModal";
|
|
25769
25769
|
|
|
25770
|
-
//
|
|
25770
|
+
// ../ui/node_modules/@base-ui/react/esm/checkbox/index.parts.js
|
|
25771
25771
|
var index_parts_exports5 = {};
|
|
25772
25772
|
__export(index_parts_exports5, {
|
|
25773
25773
|
Indicator: () => CheckboxIndicator,
|
|
25774
25774
|
Root: () => CheckboxRoot
|
|
25775
25775
|
});
|
|
25776
25776
|
|
|
25777
|
-
//
|
|
25777
|
+
// ../ui/node_modules/@base-ui/react/esm/checkbox/root/CheckboxRoot.js
|
|
25778
25778
|
import * as React92 from "react";
|
|
25779
25779
|
|
|
25780
|
-
//
|
|
25780
|
+
// ../ui/node_modules/@base-ui/react/esm/checkbox/utils/useStateAttributesMapping.js
|
|
25781
25781
|
import * as React84 from "react";
|
|
25782
25782
|
|
|
25783
|
-
//
|
|
25783
|
+
// ../ui/node_modules/@base-ui/react/esm/checkbox/root/CheckboxRootDataAttributes.js
|
|
25784
25784
|
var CheckboxRootDataAttributes = /* @__PURE__ */ (function(CheckboxRootDataAttributes2) {
|
|
25785
25785
|
CheckboxRootDataAttributes2["checked"] = "data-checked";
|
|
25786
25786
|
CheckboxRootDataAttributes2["unchecked"] = "data-unchecked";
|
|
@@ -25797,7 +25797,7 @@ var CheckboxRootDataAttributes = /* @__PURE__ */ (function(CheckboxRootDataAttri
|
|
|
25797
25797
|
return CheckboxRootDataAttributes2;
|
|
25798
25798
|
})({});
|
|
25799
25799
|
|
|
25800
|
-
//
|
|
25800
|
+
// ../ui/node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.js
|
|
25801
25801
|
var FieldControlDataAttributes = /* @__PURE__ */ (function(FieldControlDataAttributes2) {
|
|
25802
25802
|
FieldControlDataAttributes2["disabled"] = "data-disabled";
|
|
25803
25803
|
FieldControlDataAttributes2["valid"] = "data-valid";
|
|
@@ -25809,7 +25809,7 @@ var FieldControlDataAttributes = /* @__PURE__ */ (function(FieldControlDataAttri
|
|
|
25809
25809
|
return FieldControlDataAttributes2;
|
|
25810
25810
|
})({});
|
|
25811
25811
|
|
|
25812
|
-
//
|
|
25812
|
+
// ../ui/node_modules/@base-ui/react/esm/field/utils/constants.js
|
|
25813
25813
|
var DEFAULT_VALIDITY_STATE = {
|
|
25814
25814
|
badInput: false,
|
|
25815
25815
|
customError: false,
|
|
@@ -25839,7 +25839,7 @@ var fieldValidityMapping = {
|
|
|
25839
25839
|
}
|
|
25840
25840
|
};
|
|
25841
25841
|
|
|
25842
|
-
//
|
|
25842
|
+
// ../ui/node_modules/@base-ui/react/esm/checkbox/utils/useStateAttributesMapping.js
|
|
25843
25843
|
function useStateAttributesMapping(state) {
|
|
25844
25844
|
return React84.useMemo(() => ({
|
|
25845
25845
|
checked(value) {
|
|
@@ -25859,7 +25859,7 @@ function useStateAttributesMapping(state) {
|
|
|
25859
25859
|
}), [state.indeterminate]);
|
|
25860
25860
|
}
|
|
25861
25861
|
|
|
25862
|
-
//
|
|
25862
|
+
// ../ui/node_modules/@base-ui/react/esm/field/root/FieldRootContext.js
|
|
25863
25863
|
import * as React85 from "react";
|
|
25864
25864
|
var FieldRootContext = /* @__PURE__ */ React85.createContext({
|
|
25865
25865
|
invalid: void 0,
|
|
@@ -25915,7 +25915,7 @@ function useFieldRootContext(optional = true) {
|
|
|
25915
25915
|
return context;
|
|
25916
25916
|
}
|
|
25917
25917
|
|
|
25918
|
-
//
|
|
25918
|
+
// ../ui/node_modules/@base-ui/react/esm/field/item/FieldItemContext.js
|
|
25919
25919
|
import * as React86 from "react";
|
|
25920
25920
|
var FieldItemContext = /* @__PURE__ */ React86.createContext({
|
|
25921
25921
|
disabled: false
|
|
@@ -25926,10 +25926,10 @@ function useFieldItemContext() {
|
|
|
25926
25926
|
return context;
|
|
25927
25927
|
}
|
|
25928
25928
|
|
|
25929
|
-
//
|
|
25929
|
+
// ../ui/node_modules/@base-ui/react/esm/field/useField.js
|
|
25930
25930
|
import * as ReactDOM5 from "react-dom";
|
|
25931
25931
|
|
|
25932
|
-
//
|
|
25932
|
+
// ../ui/node_modules/@base-ui/react/esm/field/utils/getCombinedFieldValidityData.js
|
|
25933
25933
|
function getCombinedFieldValidityData(validityData, invalid) {
|
|
25934
25934
|
return {
|
|
25935
25935
|
...validityData,
|
|
@@ -25940,7 +25940,7 @@ function getCombinedFieldValidityData(validityData, invalid) {
|
|
|
25940
25940
|
};
|
|
25941
25941
|
}
|
|
25942
25942
|
|
|
25943
|
-
//
|
|
25943
|
+
// ../ui/node_modules/@base-ui/react/esm/form/FormContext.js
|
|
25944
25944
|
import * as React87 from "react";
|
|
25945
25945
|
var FormContext = /* @__PURE__ */ React87.createContext({
|
|
25946
25946
|
formRef: {
|
|
@@ -25960,7 +25960,7 @@ function useFormContext() {
|
|
|
25960
25960
|
return React87.useContext(FormContext);
|
|
25961
25961
|
}
|
|
25962
25962
|
|
|
25963
|
-
//
|
|
25963
|
+
// ../ui/node_modules/@base-ui/react/esm/field/useField.js
|
|
25964
25964
|
function useField(params) {
|
|
25965
25965
|
const {
|
|
25966
25966
|
enabled = true,
|
|
@@ -26028,7 +26028,7 @@ function useField(params) {
|
|
|
26028
26028
|
}, [formRef, id3]);
|
|
26029
26029
|
}
|
|
26030
26030
|
|
|
26031
|
-
//
|
|
26031
|
+
// ../ui/node_modules/@base-ui/react/esm/labelable-provider/LabelableContext.js
|
|
26032
26032
|
import * as React88 from "react";
|
|
26033
26033
|
var LabelableContext = /* @__PURE__ */ React88.createContext({
|
|
26034
26034
|
controlId: void 0,
|
|
@@ -26044,7 +26044,7 @@ function useLabelableContext() {
|
|
|
26044
26044
|
return React88.useContext(LabelableContext);
|
|
26045
26045
|
}
|
|
26046
26046
|
|
|
26047
|
-
//
|
|
26047
|
+
// ../ui/node_modules/@base-ui/react/esm/checkbox-group/CheckboxGroupContext.js
|
|
26048
26048
|
import * as React89 from "react";
|
|
26049
26049
|
var CheckboxGroupContext = /* @__PURE__ */ React89.createContext(void 0);
|
|
26050
26050
|
if (process.env.NODE_ENV !== "production") CheckboxGroupContext.displayName = "CheckboxGroupContext";
|
|
@@ -26056,7 +26056,7 @@ function useCheckboxGroupContext(optional = true) {
|
|
|
26056
26056
|
return context;
|
|
26057
26057
|
}
|
|
26058
26058
|
|
|
26059
|
-
//
|
|
26059
|
+
// ../ui/node_modules/@base-ui/react/esm/checkbox/root/CheckboxRootContext.js
|
|
26060
26060
|
import * as React90 from "react";
|
|
26061
26061
|
var CheckboxRootContext = /* @__PURE__ */ React90.createContext(void 0);
|
|
26062
26062
|
if (process.env.NODE_ENV !== "production") CheckboxRootContext.displayName = "CheckboxRootContext";
|
|
@@ -26068,7 +26068,7 @@ function useCheckboxRootContext() {
|
|
|
26068
26068
|
return context;
|
|
26069
26069
|
}
|
|
26070
26070
|
|
|
26071
|
-
//
|
|
26071
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useValueChanged.js
|
|
26072
26072
|
import * as React91 from "react";
|
|
26073
26073
|
function useValueChanged(value, onChange) {
|
|
26074
26074
|
const valueRef = React91.useRef(value);
|
|
@@ -26084,7 +26084,7 @@ function useValueChanged(value, onChange) {
|
|
|
26084
26084
|
}, [value]);
|
|
26085
26085
|
}
|
|
26086
26086
|
|
|
26087
|
-
//
|
|
26087
|
+
// ../ui/node_modules/@base-ui/react/esm/checkbox/root/CheckboxRoot.js
|
|
26088
26088
|
import { jsx as _jsx18, jsxs as _jsxs5 } from "react/jsx-runtime";
|
|
26089
26089
|
var PARENT_CHECKBOX = "data-parent";
|
|
26090
26090
|
var CheckboxRoot = /* @__PURE__ */ React92.forwardRef(function CheckboxRoot2(componentProps, forwardedRef) {
|
|
@@ -26326,7 +26326,7 @@ var CheckboxRoot = /* @__PURE__ */ React92.forwardRef(function CheckboxRoot2(com
|
|
|
26326
26326
|
});
|
|
26327
26327
|
if (process.env.NODE_ENV !== "production") CheckboxRoot.displayName = "CheckboxRoot";
|
|
26328
26328
|
|
|
26329
|
-
//
|
|
26329
|
+
// ../ui/node_modules/@base-ui/react/esm/checkbox/indicator/CheckboxIndicator.js
|
|
26330
26330
|
import * as React93 from "react";
|
|
26331
26331
|
var CheckboxIndicator = /* @__PURE__ */ React93.forwardRef(function CheckboxIndicator2(componentProps, forwardedRef) {
|
|
26332
26332
|
const {
|
|
@@ -26467,7 +26467,7 @@ function MinusIcon({ className }) {
|
|
|
26467
26467
|
);
|
|
26468
26468
|
}
|
|
26469
26469
|
|
|
26470
|
-
//
|
|
26470
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/index.parts.js
|
|
26471
26471
|
var index_parts_exports6 = {};
|
|
26472
26472
|
__export(index_parts_exports6, {
|
|
26473
26473
|
Panel: () => CollapsiblePanel,
|
|
@@ -26475,16 +26475,16 @@ __export(index_parts_exports6, {
|
|
|
26475
26475
|
Trigger: () => CollapsibleTrigger
|
|
26476
26476
|
});
|
|
26477
26477
|
|
|
26478
|
-
//
|
|
26478
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/root/CollapsibleRoot.js
|
|
26479
26479
|
import * as React94 from "react";
|
|
26480
26480
|
|
|
26481
|
-
//
|
|
26481
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/root/stateAttributesMapping.js
|
|
26482
26482
|
var collapsibleStateAttributesMapping = {
|
|
26483
26483
|
...collapsibleOpenStateMapping,
|
|
26484
26484
|
...transitionStatusMapping
|
|
26485
26485
|
};
|
|
26486
26486
|
|
|
26487
|
-
//
|
|
26487
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/root/CollapsibleRoot.js
|
|
26488
26488
|
import { jsx as _jsx19 } from "react/jsx-runtime";
|
|
26489
26489
|
var CollapsibleRoot = /* @__PURE__ */ React94.forwardRef(function CollapsibleRoot2(componentProps, forwardedRef) {
|
|
26490
26490
|
const {
|
|
@@ -26526,7 +26526,7 @@ var CollapsibleRoot = /* @__PURE__ */ React94.forwardRef(function CollapsibleRoo
|
|
|
26526
26526
|
});
|
|
26527
26527
|
if (process.env.NODE_ENV !== "production") CollapsibleRoot.displayName = "CollapsibleRoot";
|
|
26528
26528
|
|
|
26529
|
-
//
|
|
26529
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/trigger/CollapsibleTrigger.js
|
|
26530
26530
|
import * as React95 from "react";
|
|
26531
26531
|
var stateAttributesMapping5 = {
|
|
26532
26532
|
...triggerOpenStateMapping,
|
|
@@ -26571,17 +26571,17 @@ var CollapsibleTrigger = /* @__PURE__ */ React95.forwardRef(function Collapsible
|
|
|
26571
26571
|
});
|
|
26572
26572
|
if (process.env.NODE_ENV !== "production") CollapsibleTrigger.displayName = "CollapsibleTrigger";
|
|
26573
26573
|
|
|
26574
|
-
//
|
|
26574
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/panel/CollapsiblePanel.js
|
|
26575
26575
|
import * as React96 from "react";
|
|
26576
26576
|
|
|
26577
|
-
//
|
|
26577
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/panel/CollapsiblePanelCssVars.js
|
|
26578
26578
|
var CollapsiblePanelCssVars = /* @__PURE__ */ (function(CollapsiblePanelCssVars2) {
|
|
26579
26579
|
CollapsiblePanelCssVars2["collapsiblePanelHeight"] = "--collapsible-panel-height";
|
|
26580
26580
|
CollapsiblePanelCssVars2["collapsiblePanelWidth"] = "--collapsible-panel-width";
|
|
26581
26581
|
return CollapsiblePanelCssVars2;
|
|
26582
26582
|
})({});
|
|
26583
26583
|
|
|
26584
|
-
//
|
|
26584
|
+
// ../ui/node_modules/@base-ui/react/esm/collapsible/panel/CollapsiblePanel.js
|
|
26585
26585
|
var CollapsiblePanel = /* @__PURE__ */ React96.forwardRef(function CollapsiblePanel2(componentProps, forwardedRef) {
|
|
26586
26586
|
const {
|
|
26587
26587
|
className,
|
|
@@ -26732,7 +26732,7 @@ var CollapsibleContent = forwardRef42(
|
|
|
26732
26732
|
);
|
|
26733
26733
|
CollapsibleContent.displayName = "CollapsibleContent";
|
|
26734
26734
|
|
|
26735
|
-
//
|
|
26735
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/index.parts.js
|
|
26736
26736
|
var index_parts_exports7 = {};
|
|
26737
26737
|
__export(index_parts_exports7, {
|
|
26738
26738
|
Arrow: () => MenuArrow,
|
|
@@ -26757,10 +26757,10 @@ __export(index_parts_exports7, {
|
|
|
26757
26757
|
createHandle: () => createMenuHandle
|
|
26758
26758
|
});
|
|
26759
26759
|
|
|
26760
|
-
//
|
|
26760
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/arrow/MenuArrow.js
|
|
26761
26761
|
import * as React99 from "react";
|
|
26762
26762
|
|
|
26763
|
-
//
|
|
26763
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/positioner/MenuPositionerContext.js
|
|
26764
26764
|
import * as React97 from "react";
|
|
26765
26765
|
var MenuPositionerContext = /* @__PURE__ */ React97.createContext(void 0);
|
|
26766
26766
|
if (process.env.NODE_ENV !== "production") MenuPositionerContext.displayName = "MenuPositionerContext";
|
|
@@ -26772,7 +26772,7 @@ function useMenuPositionerContext(optional) {
|
|
|
26772
26772
|
return context;
|
|
26773
26773
|
}
|
|
26774
26774
|
|
|
26775
|
-
//
|
|
26775
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/root/MenuRootContext.js
|
|
26776
26776
|
import * as React98 from "react";
|
|
26777
26777
|
var MenuRootContext = /* @__PURE__ */ React98.createContext(void 0);
|
|
26778
26778
|
if (process.env.NODE_ENV !== "production") MenuRootContext.displayName = "MenuRootContext";
|
|
@@ -26784,7 +26784,7 @@ function useMenuRootContext(optional) {
|
|
|
26784
26784
|
return context;
|
|
26785
26785
|
}
|
|
26786
26786
|
|
|
26787
|
-
//
|
|
26787
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/arrow/MenuArrow.js
|
|
26788
26788
|
var MenuArrow = /* @__PURE__ */ React99.forwardRef(function MenuArrow2(componentProps, forwardedRef) {
|
|
26789
26789
|
const {
|
|
26790
26790
|
className,
|
|
@@ -26821,10 +26821,10 @@ var MenuArrow = /* @__PURE__ */ React99.forwardRef(function MenuArrow2(component
|
|
|
26821
26821
|
});
|
|
26822
26822
|
if (process.env.NODE_ENV !== "production") MenuArrow.displayName = "MenuArrow";
|
|
26823
26823
|
|
|
26824
|
-
//
|
|
26824
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/backdrop/MenuBackdrop.js
|
|
26825
26825
|
import * as React101 from "react";
|
|
26826
26826
|
|
|
26827
|
-
//
|
|
26827
|
+
// ../ui/node_modules/@base-ui/react/esm/context-menu/root/ContextMenuRootContext.js
|
|
26828
26828
|
import * as React100 from "react";
|
|
26829
26829
|
var ContextMenuRootContext = /* @__PURE__ */ React100.createContext(void 0);
|
|
26830
26830
|
if (process.env.NODE_ENV !== "production") ContextMenuRootContext.displayName = "ContextMenuRootContext";
|
|
@@ -26836,7 +26836,7 @@ function useContextMenuRootContext(optional = true) {
|
|
|
26836
26836
|
return context;
|
|
26837
26837
|
}
|
|
26838
26838
|
|
|
26839
|
-
//
|
|
26839
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/backdrop/MenuBackdrop.js
|
|
26840
26840
|
var stateAttributesMapping6 = {
|
|
26841
26841
|
...popupStateMapping,
|
|
26842
26842
|
...transitionStatusMapping
|
|
@@ -26876,10 +26876,10 @@ var MenuBackdrop = /* @__PURE__ */ React101.forwardRef(function MenuBackdrop2(co
|
|
|
26876
26876
|
});
|
|
26877
26877
|
if (process.env.NODE_ENV !== "production") MenuBackdrop.displayName = "MenuBackdrop";
|
|
26878
26878
|
|
|
26879
|
-
//
|
|
26879
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItem.js
|
|
26880
26880
|
import * as React104 from "react";
|
|
26881
26881
|
|
|
26882
|
-
//
|
|
26882
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItemContext.js
|
|
26883
26883
|
import * as React102 from "react";
|
|
26884
26884
|
var MenuCheckboxItemContext = /* @__PURE__ */ React102.createContext(void 0);
|
|
26885
26885
|
if (process.env.NODE_ENV !== "production") MenuCheckboxItemContext.displayName = "MenuCheckboxItemContext";
|
|
@@ -26891,7 +26891,7 @@ function useMenuCheckboxItemContext() {
|
|
|
26891
26891
|
return context;
|
|
26892
26892
|
}
|
|
26893
26893
|
|
|
26894
|
-
//
|
|
26894
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/item/useMenuItem.js
|
|
26895
26895
|
import * as React103 from "react";
|
|
26896
26896
|
var REGULAR_ITEM = {
|
|
26897
26897
|
type: "regular-item"
|
|
@@ -26977,7 +26977,7 @@ function useMenuItem(params) {
|
|
|
26977
26977
|
}), [getItemProps, mergedRef]);
|
|
26978
26978
|
}
|
|
26979
26979
|
|
|
26980
|
-
//
|
|
26980
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItemDataAttributes.js
|
|
26981
26981
|
var MenuCheckboxItemDataAttributes = /* @__PURE__ */ (function(MenuCheckboxItemDataAttributes2) {
|
|
26982
26982
|
MenuCheckboxItemDataAttributes2["checked"] = "data-checked";
|
|
26983
26983
|
MenuCheckboxItemDataAttributes2["unchecked"] = "data-unchecked";
|
|
@@ -26986,7 +26986,7 @@ var MenuCheckboxItemDataAttributes = /* @__PURE__ */ (function(MenuCheckboxItemD
|
|
|
26986
26986
|
return MenuCheckboxItemDataAttributes2;
|
|
26987
26987
|
})({});
|
|
26988
26988
|
|
|
26989
|
-
//
|
|
26989
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/utils/stateAttributesMapping.js
|
|
26990
26990
|
var itemMapping = {
|
|
26991
26991
|
checked(value) {
|
|
26992
26992
|
if (value) {
|
|
@@ -27001,7 +27001,7 @@ var itemMapping = {
|
|
|
27001
27001
|
...transitionStatusMapping
|
|
27002
27002
|
};
|
|
27003
27003
|
|
|
27004
|
-
//
|
|
27004
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItem.js
|
|
27005
27005
|
import { jsx as _jsx20 } from "react/jsx-runtime";
|
|
27006
27006
|
var MenuCheckboxItem = /* @__PURE__ */ React104.forwardRef(function MenuCheckboxItem2(componentProps, forwardedRef) {
|
|
27007
27007
|
const {
|
|
@@ -27080,7 +27080,7 @@ var MenuCheckboxItem = /* @__PURE__ */ React104.forwardRef(function MenuCheckbox
|
|
|
27080
27080
|
});
|
|
27081
27081
|
if (process.env.NODE_ENV !== "production") MenuCheckboxItem.displayName = "MenuCheckboxItem";
|
|
27082
27082
|
|
|
27083
|
-
//
|
|
27083
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.js
|
|
27084
27084
|
import * as React105 from "react";
|
|
27085
27085
|
var MenuCheckboxItemIndicator = /* @__PURE__ */ React105.forwardRef(function MenuCheckboxItemIndicator2(componentProps, forwardedRef) {
|
|
27086
27086
|
const {
|
|
@@ -27124,10 +27124,10 @@ var MenuCheckboxItemIndicator = /* @__PURE__ */ React105.forwardRef(function Men
|
|
|
27124
27124
|
});
|
|
27125
27125
|
if (process.env.NODE_ENV !== "production") MenuCheckboxItemIndicator.displayName = "MenuCheckboxItemIndicator";
|
|
27126
27126
|
|
|
27127
|
-
//
|
|
27127
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/group/MenuGroup.js
|
|
27128
27128
|
import * as React107 from "react";
|
|
27129
27129
|
|
|
27130
|
-
//
|
|
27130
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/group/MenuGroupContext.js
|
|
27131
27131
|
import * as React106 from "react";
|
|
27132
27132
|
var MenuGroupContext = /* @__PURE__ */ React106.createContext(void 0);
|
|
27133
27133
|
if (process.env.NODE_ENV !== "production") MenuGroupContext.displayName = "MenuGroupContext";
|
|
@@ -27139,7 +27139,7 @@ function useMenuGroupRootContext() {
|
|
|
27139
27139
|
return context;
|
|
27140
27140
|
}
|
|
27141
27141
|
|
|
27142
|
-
//
|
|
27142
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/group/MenuGroup.js
|
|
27143
27143
|
import { jsx as _jsx21 } from "react/jsx-runtime";
|
|
27144
27144
|
var MenuGroup = /* @__PURE__ */ React107.forwardRef(function MenuGroup2(componentProps, forwardedRef) {
|
|
27145
27145
|
const {
|
|
@@ -27166,7 +27166,7 @@ var MenuGroup = /* @__PURE__ */ React107.forwardRef(function MenuGroup2(componen
|
|
|
27166
27166
|
});
|
|
27167
27167
|
if (process.env.NODE_ENV !== "production") MenuGroup.displayName = "MenuGroup";
|
|
27168
27168
|
|
|
27169
|
-
//
|
|
27169
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/group-label/MenuGroupLabel.js
|
|
27170
27170
|
import * as React108 from "react";
|
|
27171
27171
|
var MenuGroupLabel = /* @__PURE__ */ React108.forwardRef(function MenuGroupLabelComponent(componentProps, forwardedRef) {
|
|
27172
27172
|
const {
|
|
@@ -27196,7 +27196,7 @@ var MenuGroupLabel = /* @__PURE__ */ React108.forwardRef(function MenuGroupLabel
|
|
|
27196
27196
|
});
|
|
27197
27197
|
if (process.env.NODE_ENV !== "production") MenuGroupLabel.displayName = "MenuGroupLabel";
|
|
27198
27198
|
|
|
27199
|
-
//
|
|
27199
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/item/MenuItem.js
|
|
27200
27200
|
import * as React109 from "react";
|
|
27201
27201
|
var MenuItem = /* @__PURE__ */ React109.forwardRef(function MenuItem2(componentProps, forwardedRef) {
|
|
27202
27202
|
const {
|
|
@@ -27244,10 +27244,10 @@ var MenuItem = /* @__PURE__ */ React109.forwardRef(function MenuItem2(componentP
|
|
|
27244
27244
|
});
|
|
27245
27245
|
if (process.env.NODE_ENV !== "production") MenuItem.displayName = "MenuItem";
|
|
27246
27246
|
|
|
27247
|
-
//
|
|
27247
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/popup/MenuPopup.js
|
|
27248
27248
|
import * as React111 from "react";
|
|
27249
27249
|
|
|
27250
|
-
//
|
|
27250
|
+
// ../ui/node_modules/@base-ui/react/esm/toolbar/root/ToolbarRootContext.js
|
|
27251
27251
|
import * as React110 from "react";
|
|
27252
27252
|
var ToolbarRootContext = /* @__PURE__ */ React110.createContext(void 0);
|
|
27253
27253
|
if (process.env.NODE_ENV !== "production") ToolbarRootContext.displayName = "ToolbarRootContext";
|
|
@@ -27259,12 +27259,12 @@ function useToolbarRootContext(optional) {
|
|
|
27259
27259
|
return context;
|
|
27260
27260
|
}
|
|
27261
27261
|
|
|
27262
|
-
//
|
|
27262
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/getDisabledMountTransitionStyles.js
|
|
27263
27263
|
function getDisabledMountTransitionStyles(transitionStatus) {
|
|
27264
27264
|
return transitionStatus === "starting" ? DISABLED_TRANSITIONS_STYLE : EMPTY_OBJECT;
|
|
27265
27265
|
}
|
|
27266
27266
|
|
|
27267
|
-
//
|
|
27267
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/popup/MenuPopup.js
|
|
27268
27268
|
import { jsx as _jsx22 } from "react/jsx-runtime";
|
|
27269
27269
|
var stateAttributesMapping7 = {
|
|
27270
27270
|
...popupStateMapping,
|
|
@@ -27365,10 +27365,10 @@ var MenuPopup = /* @__PURE__ */ React111.forwardRef(function MenuPopup2(componen
|
|
|
27365
27365
|
});
|
|
27366
27366
|
if (process.env.NODE_ENV !== "production") MenuPopup.displayName = "MenuPopup";
|
|
27367
27367
|
|
|
27368
|
-
//
|
|
27368
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/portal/MenuPortal.js
|
|
27369
27369
|
import * as React113 from "react";
|
|
27370
27370
|
|
|
27371
|
-
//
|
|
27371
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/portal/MenuPortalContext.js
|
|
27372
27372
|
import * as React112 from "react";
|
|
27373
27373
|
var MenuPortalContext = /* @__PURE__ */ React112.createContext(void 0);
|
|
27374
27374
|
if (process.env.NODE_ENV !== "production") MenuPortalContext.displayName = "MenuPortalContext";
|
|
@@ -27380,7 +27380,7 @@ function useMenuPortalContext() {
|
|
|
27380
27380
|
return value;
|
|
27381
27381
|
}
|
|
27382
27382
|
|
|
27383
|
-
//
|
|
27383
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/portal/MenuPortal.js
|
|
27384
27384
|
import { jsx as _jsx23 } from "react/jsx-runtime";
|
|
27385
27385
|
var MenuPortal = /* @__PURE__ */ React113.forwardRef(function MenuPortal2(props, forwardedRef) {
|
|
27386
27386
|
const {
|
|
@@ -27405,13 +27405,13 @@ var MenuPortal = /* @__PURE__ */ React113.forwardRef(function MenuPortal2(props,
|
|
|
27405
27405
|
});
|
|
27406
27406
|
if (process.env.NODE_ENV !== "production") MenuPortal.displayName = "MenuPortal";
|
|
27407
27407
|
|
|
27408
|
-
//
|
|
27408
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.js
|
|
27409
27409
|
import * as React115 from "react";
|
|
27410
27410
|
|
|
27411
|
-
//
|
|
27411
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useAnchorPositioning.js
|
|
27412
27412
|
import * as React114 from "react";
|
|
27413
27413
|
|
|
27414
|
-
//
|
|
27414
|
+
// ../ui/node_modules/@base-ui/react/esm/floating-ui-react/middleware/arrow.js
|
|
27415
27415
|
var baseArrow = (options) => ({
|
|
27416
27416
|
name: "arrow",
|
|
27417
27417
|
options,
|
|
@@ -27480,7 +27480,7 @@ var arrow4 = (options, deps) => ({
|
|
|
27480
27480
|
options: [options, deps]
|
|
27481
27481
|
});
|
|
27482
27482
|
|
|
27483
|
-
//
|
|
27483
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/hideMiddleware.js
|
|
27484
27484
|
var hide4 = {
|
|
27485
27485
|
name: "hide",
|
|
27486
27486
|
async fn(state) {
|
|
@@ -27500,7 +27500,7 @@ var hide4 = {
|
|
|
27500
27500
|
}
|
|
27501
27501
|
};
|
|
27502
27502
|
|
|
27503
|
-
//
|
|
27503
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/adaptiveOriginMiddleware.js
|
|
27504
27504
|
var DEFAULT_SIDES = {
|
|
27505
27505
|
sideX: "left",
|
|
27506
27506
|
sideY: "top"
|
|
@@ -27572,7 +27572,7 @@ var adaptiveOrigin = {
|
|
|
27572
27572
|
}
|
|
27573
27573
|
};
|
|
27574
27574
|
|
|
27575
|
-
//
|
|
27575
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useAnchorPositioning.js
|
|
27576
27576
|
function getLogicalSide(sideParam, renderedSide, isRtl) {
|
|
27577
27577
|
const isLogicalSideParam = sideParam === "inline-start" || sideParam === "inline-end";
|
|
27578
27578
|
const logicalRight = isRtl ? "inline-start" : "inline-end";
|
|
@@ -27916,7 +27916,7 @@ function isRef(param) {
|
|
|
27916
27916
|
return param != null && "current" in param;
|
|
27917
27917
|
}
|
|
27918
27918
|
|
|
27919
|
-
//
|
|
27919
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.js
|
|
27920
27920
|
import { jsx as _jsx24, jsxs as _jsxs6 } from "react/jsx-runtime";
|
|
27921
27921
|
var MenuPositioner = /* @__PURE__ */ React115.forwardRef(function MenuPositioner2(componentProps, forwardedRef) {
|
|
27922
27922
|
const {
|
|
@@ -28114,10 +28114,10 @@ var MenuPositioner = /* @__PURE__ */ React115.forwardRef(function MenuPositioner
|
|
|
28114
28114
|
});
|
|
28115
28115
|
if (process.env.NODE_ENV !== "production") MenuPositioner.displayName = "MenuPositioner";
|
|
28116
28116
|
|
|
28117
|
-
//
|
|
28117
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/radio-group/MenuRadioGroup.js
|
|
28118
28118
|
import * as React117 from "react";
|
|
28119
28119
|
|
|
28120
|
-
//
|
|
28120
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/radio-group/MenuRadioGroupContext.js
|
|
28121
28121
|
import * as React116 from "react";
|
|
28122
28122
|
var MenuRadioGroupContext = /* @__PURE__ */ React116.createContext(void 0);
|
|
28123
28123
|
if (process.env.NODE_ENV !== "production") MenuRadioGroupContext.displayName = "MenuRadioGroupContext";
|
|
@@ -28129,7 +28129,7 @@ function useMenuRadioGroupContext() {
|
|
|
28129
28129
|
return context;
|
|
28130
28130
|
}
|
|
28131
28131
|
|
|
28132
|
-
//
|
|
28132
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/radio-group/MenuRadioGroup.js
|
|
28133
28133
|
import { jsx as _jsx25 } from "react/jsx-runtime";
|
|
28134
28134
|
var MenuRadioGroup = /* @__PURE__ */ React117.memo(/* @__PURE__ */ React117.forwardRef(function MenuRadioGroup2(componentProps, forwardedRef) {
|
|
28135
28135
|
const {
|
|
@@ -28178,10 +28178,10 @@ var MenuRadioGroup = /* @__PURE__ */ React117.memo(/* @__PURE__ */ React117.forw
|
|
|
28178
28178
|
}));
|
|
28179
28179
|
if (process.env.NODE_ENV !== "production") MenuRadioGroup.displayName = "MenuRadioGroup";
|
|
28180
28180
|
|
|
28181
|
-
//
|
|
28181
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/radio-item/MenuRadioItem.js
|
|
28182
28182
|
import * as React119 from "react";
|
|
28183
28183
|
|
|
28184
|
-
//
|
|
28184
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/radio-item/MenuRadioItemContext.js
|
|
28185
28185
|
import * as React118 from "react";
|
|
28186
28186
|
var MenuRadioItemContext = /* @__PURE__ */ React118.createContext(void 0);
|
|
28187
28187
|
if (process.env.NODE_ENV !== "production") MenuRadioItemContext.displayName = "MenuRadioItemContext";
|
|
@@ -28193,7 +28193,7 @@ function useMenuRadioItemContext() {
|
|
|
28193
28193
|
return context;
|
|
28194
28194
|
}
|
|
28195
28195
|
|
|
28196
|
-
//
|
|
28196
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/radio-item/MenuRadioItem.js
|
|
28197
28197
|
import { jsx as _jsx26 } from "react/jsx-runtime";
|
|
28198
28198
|
var MenuRadioItem = /* @__PURE__ */ React119.forwardRef(function MenuRadioItem2(componentProps, forwardedRef) {
|
|
28199
28199
|
const {
|
|
@@ -28267,7 +28267,7 @@ var MenuRadioItem = /* @__PURE__ */ React119.forwardRef(function MenuRadioItem2(
|
|
|
28267
28267
|
});
|
|
28268
28268
|
if (process.env.NODE_ENV !== "production") MenuRadioItem.displayName = "MenuRadioItem";
|
|
28269
28269
|
|
|
28270
|
-
//
|
|
28270
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/radio-item-indicator/MenuRadioItemIndicator.js
|
|
28271
28271
|
import * as React120 from "react";
|
|
28272
28272
|
var MenuRadioItemIndicator = /* @__PURE__ */ React120.forwardRef(function MenuRadioItemIndicator2(componentProps, forwardedRef) {
|
|
28273
28273
|
const {
|
|
@@ -28311,11 +28311,11 @@ var MenuRadioItemIndicator = /* @__PURE__ */ React120.forwardRef(function MenuRa
|
|
|
28311
28311
|
});
|
|
28312
28312
|
if (process.env.NODE_ENV !== "production") MenuRadioItemIndicator.displayName = "MenuRadioItemIndicator";
|
|
28313
28313
|
|
|
28314
|
-
//
|
|
28314
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/root/MenuRoot.js
|
|
28315
28315
|
import * as React124 from "react";
|
|
28316
28316
|
import * as ReactDOM6 from "react-dom";
|
|
28317
28317
|
|
|
28318
|
-
//
|
|
28318
|
+
// ../ui/node_modules/@base-ui/react/esm/menubar/MenubarContext.js
|
|
28319
28319
|
import * as React121 from "react";
|
|
28320
28320
|
var MenubarContext = /* @__PURE__ */ React121.createContext(null);
|
|
28321
28321
|
if (process.env.NODE_ENV !== "production") MenubarContext.displayName = "MenubarContext";
|
|
@@ -28327,7 +28327,7 @@ function useMenubarContext(optional) {
|
|
|
28327
28327
|
return context;
|
|
28328
28328
|
}
|
|
28329
28329
|
|
|
28330
|
-
//
|
|
28330
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/store/MenuStore.js
|
|
28331
28331
|
import * as React122 from "react";
|
|
28332
28332
|
var selectors3 = {
|
|
28333
28333
|
...popupStoreSelectors,
|
|
@@ -28450,7 +28450,7 @@ function createInitialState2() {
|
|
|
28450
28450
|
};
|
|
28451
28451
|
}
|
|
28452
28452
|
|
|
28453
|
-
//
|
|
28453
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRootContext.js
|
|
28454
28454
|
import * as React123 from "react";
|
|
28455
28455
|
var MenuSubmenuRootContext = /* @__PURE__ */ React123.createContext(void 0);
|
|
28456
28456
|
if (process.env.NODE_ENV !== "production") MenuSubmenuRootContext.displayName = "MenuSubmenuRootContext";
|
|
@@ -28458,7 +28458,7 @@ function useMenuSubmenuRootContext() {
|
|
|
28458
28458
|
return React123.useContext(MenuSubmenuRootContext);
|
|
28459
28459
|
}
|
|
28460
28460
|
|
|
28461
|
-
//
|
|
28461
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/root/MenuRoot.js
|
|
28462
28462
|
import { jsx as _jsx27 } from "react/jsx-runtime";
|
|
28463
28463
|
function MenuRoot(props) {
|
|
28464
28464
|
const {
|
|
@@ -28831,7 +28831,7 @@ function MenuRoot(props) {
|
|
|
28831
28831
|
return content;
|
|
28832
28832
|
}
|
|
28833
28833
|
|
|
28834
|
-
//
|
|
28834
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRoot.js
|
|
28835
28835
|
import * as React125 from "react";
|
|
28836
28836
|
import { jsx as _jsx28 } from "react/jsx-runtime";
|
|
28837
28837
|
function MenuSubmenuRoot(props) {
|
|
@@ -28847,11 +28847,11 @@ function MenuSubmenuRoot(props) {
|
|
|
28847
28847
|
});
|
|
28848
28848
|
}
|
|
28849
28849
|
|
|
28850
|
-
//
|
|
28850
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/trigger/MenuTrigger.js
|
|
28851
28851
|
import * as React127 from "react";
|
|
28852
28852
|
import * as ReactDOM7 from "react-dom";
|
|
28853
28853
|
|
|
28854
|
-
//
|
|
28854
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/getPseudoElementBounds.js
|
|
28855
28855
|
function getPseudoElementBounds(element) {
|
|
28856
28856
|
const elementRect = element.getBoundingClientRect();
|
|
28857
28857
|
if (process.env.NODE_ENV === "test") {
|
|
@@ -28879,7 +28879,7 @@ function getPseudoElementBounds(element) {
|
|
|
28879
28879
|
};
|
|
28880
28880
|
}
|
|
28881
28881
|
|
|
28882
|
-
//
|
|
28882
|
+
// ../ui/node_modules/@base-ui/react/esm/composite/item/CompositeItem.js
|
|
28883
28883
|
function CompositeItem(componentProps) {
|
|
28884
28884
|
const {
|
|
28885
28885
|
render: render2,
|
|
@@ -28906,7 +28906,7 @@ function CompositeItem(componentProps) {
|
|
|
28906
28906
|
});
|
|
28907
28907
|
}
|
|
28908
28908
|
|
|
28909
|
-
//
|
|
28909
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/utils/findRootOwnerId.js
|
|
28910
28910
|
function findRootOwnerId(node) {
|
|
28911
28911
|
if (isHTMLElement(node) && node.hasAttribute("data-rootownerid")) {
|
|
28912
28912
|
return node.getAttribute("data-rootownerid") ?? void 0;
|
|
@@ -28917,7 +28917,7 @@ function findRootOwnerId(node) {
|
|
|
28917
28917
|
return findRootOwnerId(getParentNode(node));
|
|
28918
28918
|
}
|
|
28919
28919
|
|
|
28920
|
-
//
|
|
28920
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/useMixedToggleClickHandler.js
|
|
28921
28921
|
import * as React126 from "react";
|
|
28922
28922
|
function useMixedToggleClickHandler(params) {
|
|
28923
28923
|
const {
|
|
@@ -28951,7 +28951,7 @@ function useMixedToggleClickHandler(params) {
|
|
|
28951
28951
|
}, [enabled, mouseDownAction, open]);
|
|
28952
28952
|
}
|
|
28953
28953
|
|
|
28954
|
-
//
|
|
28954
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/trigger/MenuTrigger.js
|
|
28955
28955
|
import { jsx as _jsx29, jsxs as _jsxs7 } from "react/jsx-runtime";
|
|
28956
28956
|
var BOUNDARY_OFFSET = 2;
|
|
28957
28957
|
var MenuTrigger = /* @__PURE__ */ React127.forwardRef(function MenuTrigger2(componentProps, forwardedRef) {
|
|
@@ -29206,7 +29206,7 @@ function useMenuParent() {
|
|
|
29206
29206
|
return parent;
|
|
29207
29207
|
}
|
|
29208
29208
|
|
|
29209
|
-
//
|
|
29209
|
+
// ../ui/node_modules/@base-ui/react/esm/separator/Separator.js
|
|
29210
29210
|
import * as React128 from "react";
|
|
29211
29211
|
var Separator = /* @__PURE__ */ React128.forwardRef(function SeparatorComponent(componentProps, forwardedRef) {
|
|
29212
29212
|
const {
|
|
@@ -29230,7 +29230,7 @@ var Separator = /* @__PURE__ */ React128.forwardRef(function SeparatorComponent(
|
|
|
29230
29230
|
});
|
|
29231
29231
|
if (process.env.NODE_ENV !== "production") Separator.displayName = "Separator";
|
|
29232
29232
|
|
|
29233
|
-
//
|
|
29233
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/submenu-trigger/MenuSubmenuTrigger.js
|
|
29234
29234
|
import * as React129 from "react";
|
|
29235
29235
|
var MenuSubmenuTrigger = /* @__PURE__ */ React129.forwardRef(function SubmenuTriggerComponent(componentProps, forwardedRef) {
|
|
29236
29236
|
const {
|
|
@@ -29347,7 +29347,7 @@ var MenuSubmenuTrigger = /* @__PURE__ */ React129.forwardRef(function SubmenuTri
|
|
|
29347
29347
|
});
|
|
29348
29348
|
if (process.env.NODE_ENV !== "production") MenuSubmenuTrigger.displayName = "MenuSubmenuTrigger";
|
|
29349
29349
|
|
|
29350
|
-
//
|
|
29350
|
+
// ../ui/node_modules/@base-ui/react/esm/menu/store/MenuHandle.js
|
|
29351
29351
|
var MenuHandle = class {
|
|
29352
29352
|
/**
|
|
29353
29353
|
* Internal store holding the menu's state.
|
|
@@ -31266,7 +31266,7 @@ import {
|
|
|
31266
31266
|
useState as useState33
|
|
31267
31267
|
} from "react";
|
|
31268
31268
|
|
|
31269
|
-
//
|
|
31269
|
+
// ../ui/node_modules/@base-ui/react/esm/select/index.parts.js
|
|
31270
31270
|
var index_parts_exports8 = {};
|
|
31271
31271
|
__export(index_parts_exports8, {
|
|
31272
31272
|
Arrow: () => SelectArrow,
|
|
@@ -31289,10 +31289,10 @@ __export(index_parts_exports8, {
|
|
|
31289
31289
|
Value: () => SelectValue
|
|
31290
31290
|
});
|
|
31291
31291
|
|
|
31292
|
-
//
|
|
31292
|
+
// ../ui/node_modules/@base-ui/react/esm/select/root/SelectRoot.js
|
|
31293
31293
|
import * as React133 from "react";
|
|
31294
31294
|
|
|
31295
|
-
//
|
|
31295
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/useOnFirstRender.js
|
|
31296
31296
|
import * as React130 from "react";
|
|
31297
31297
|
function useOnFirstRender(fn) {
|
|
31298
31298
|
const ref = React130.useRef(true);
|
|
@@ -31302,7 +31302,7 @@ function useOnFirstRender(fn) {
|
|
|
31302
31302
|
}
|
|
31303
31303
|
}
|
|
31304
31304
|
|
|
31305
|
-
//
|
|
31305
|
+
// ../ui/node_modules/@base-ui/react/esm/select/root/SelectRootContext.js
|
|
31306
31306
|
import * as React131 from "react";
|
|
31307
31307
|
var SelectRootContext = /* @__PURE__ */ React131.createContext(null);
|
|
31308
31308
|
if (process.env.NODE_ENV !== "production") SelectRootContext.displayName = "SelectRootContext";
|
|
@@ -31323,7 +31323,7 @@ function useSelectFloatingContext() {
|
|
|
31323
31323
|
return context;
|
|
31324
31324
|
}
|
|
31325
31325
|
|
|
31326
|
-
//
|
|
31326
|
+
// ../ui/node_modules/@base-ui/react/esm/labelable-provider/useLabelableId.js
|
|
31327
31327
|
function useLabelableId(params = {}) {
|
|
31328
31328
|
const {
|
|
31329
31329
|
id: id3,
|
|
@@ -31358,7 +31358,7 @@ function useLabelableId(params = {}) {
|
|
|
31358
31358
|
return controlId ?? defaultId;
|
|
31359
31359
|
}
|
|
31360
31360
|
|
|
31361
|
-
//
|
|
31361
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/itemEquality.js
|
|
31362
31362
|
var defaultItemEquality = (item, value) => Object.is(item, value);
|
|
31363
31363
|
function compareItemEquality(item, value, comparer) {
|
|
31364
31364
|
if (item == null || value == null) {
|
|
@@ -31392,10 +31392,10 @@ function removeItem2(collection, value, comparer) {
|
|
|
31392
31392
|
return collection.filter((item) => !compareItemEquality(item, value, comparer));
|
|
31393
31393
|
}
|
|
31394
31394
|
|
|
31395
|
-
//
|
|
31395
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/resolveValueLabel.js
|
|
31396
31396
|
import * as React132 from "react";
|
|
31397
31397
|
|
|
31398
|
-
//
|
|
31398
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/serializeValue.js
|
|
31399
31399
|
function serializeValue(value) {
|
|
31400
31400
|
if (value == null) {
|
|
31401
31401
|
return "";
|
|
@@ -31410,7 +31410,7 @@ function serializeValue(value) {
|
|
|
31410
31410
|
}
|
|
31411
31411
|
}
|
|
31412
31412
|
|
|
31413
|
-
//
|
|
31413
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/resolveValueLabel.js
|
|
31414
31414
|
import { jsx as _jsx30 } from "react/jsx-runtime";
|
|
31415
31415
|
function isGroupedItems(items) {
|
|
31416
31416
|
return items != null && items.length > 0 && typeof items[0] === "object" && items[0] != null && "items" in items[0];
|
|
@@ -31502,7 +31502,7 @@ function resolveMultipleLabels(values, items, itemToStringLabel) {
|
|
|
31502
31502
|
}, []);
|
|
31503
31503
|
}
|
|
31504
31504
|
|
|
31505
|
-
//
|
|
31505
|
+
// ../ui/node_modules/@base-ui/react/esm/select/store.js
|
|
31506
31506
|
var selectors4 = {
|
|
31507
31507
|
id: createSelector2((state) => state.id),
|
|
31508
31508
|
modal: createSelector2((state) => state.modal),
|
|
@@ -31561,7 +31561,7 @@ var selectors4 = {
|
|
|
31561
31561
|
hasScrollArrows: createSelector2((state) => state.hasScrollArrows)
|
|
31562
31562
|
};
|
|
31563
31563
|
|
|
31564
|
-
//
|
|
31564
|
+
// ../ui/node_modules/@base-ui/react/esm/select/root/SelectRoot.js
|
|
31565
31565
|
import { jsx as _jsx31, jsxs as _jsxs8 } from "react/jsx-runtime";
|
|
31566
31566
|
function SelectRoot(props) {
|
|
31567
31567
|
const {
|
|
@@ -31978,7 +31978,7 @@ function SelectRoot(props) {
|
|
|
31978
31978
|
});
|
|
31979
31979
|
}
|
|
31980
31980
|
|
|
31981
|
-
//
|
|
31981
|
+
// ../ui/node_modules/@base-ui/react/esm/select/trigger/SelectTrigger.js
|
|
31982
31982
|
import * as React134 from "react";
|
|
31983
31983
|
var BOUNDARY_OFFSET2 = 2;
|
|
31984
31984
|
var SELECTED_DELAY = 400;
|
|
@@ -32161,7 +32161,7 @@ var SelectTrigger = /* @__PURE__ */ React134.forwardRef(function SelectTrigger2(
|
|
|
32161
32161
|
});
|
|
32162
32162
|
if (process.env.NODE_ENV !== "production") SelectTrigger.displayName = "SelectTrigger";
|
|
32163
32163
|
|
|
32164
|
-
//
|
|
32164
|
+
// ../ui/node_modules/@base-ui/react/esm/select/value/SelectValue.js
|
|
32165
32165
|
import * as React135 from "react";
|
|
32166
32166
|
var stateAttributesMapping9 = {
|
|
32167
32167
|
value: () => null
|
|
@@ -32212,7 +32212,7 @@ var SelectValue = /* @__PURE__ */ React135.forwardRef(function SelectValue2(comp
|
|
|
32212
32212
|
});
|
|
32213
32213
|
if (process.env.NODE_ENV !== "production") SelectValue.displayName = "SelectValue";
|
|
32214
32214
|
|
|
32215
|
-
//
|
|
32215
|
+
// ../ui/node_modules/@base-ui/react/esm/select/icon/SelectIcon.js
|
|
32216
32216
|
import * as React136 from "react";
|
|
32217
32217
|
var SelectIcon = /* @__PURE__ */ React136.forwardRef(function SelectIcon2(componentProps, forwardedRef) {
|
|
32218
32218
|
const {
|
|
@@ -32240,15 +32240,15 @@ var SelectIcon = /* @__PURE__ */ React136.forwardRef(function SelectIcon2(compon
|
|
|
32240
32240
|
});
|
|
32241
32241
|
if (process.env.NODE_ENV !== "production") SelectIcon.displayName = "SelectIcon";
|
|
32242
32242
|
|
|
32243
|
-
//
|
|
32243
|
+
// ../ui/node_modules/@base-ui/react/esm/select/portal/SelectPortal.js
|
|
32244
32244
|
import * as React138 from "react";
|
|
32245
32245
|
|
|
32246
|
-
//
|
|
32246
|
+
// ../ui/node_modules/@base-ui/react/esm/select/portal/SelectPortalContext.js
|
|
32247
32247
|
import * as React137 from "react";
|
|
32248
32248
|
var SelectPortalContext = /* @__PURE__ */ React137.createContext(void 0);
|
|
32249
32249
|
if (process.env.NODE_ENV !== "production") SelectPortalContext.displayName = "SelectPortalContext";
|
|
32250
32250
|
|
|
32251
|
-
//
|
|
32251
|
+
// ../ui/node_modules/@base-ui/react/esm/select/portal/SelectPortal.js
|
|
32252
32252
|
import { jsx as _jsx32 } from "react/jsx-runtime";
|
|
32253
32253
|
var SelectPortal = /* @__PURE__ */ React138.forwardRef(function SelectPortal2(portalProps, forwardedRef) {
|
|
32254
32254
|
const {
|
|
@@ -32270,7 +32270,7 @@ var SelectPortal = /* @__PURE__ */ React138.forwardRef(function SelectPortal2(po
|
|
|
32270
32270
|
});
|
|
32271
32271
|
if (process.env.NODE_ENV !== "production") SelectPortal.displayName = "SelectPortal";
|
|
32272
32272
|
|
|
32273
|
-
//
|
|
32273
|
+
// ../ui/node_modules/@base-ui/react/esm/select/backdrop/SelectBackdrop.js
|
|
32274
32274
|
import * as React139 from "react";
|
|
32275
32275
|
var stateAttributesMapping10 = {
|
|
32276
32276
|
...popupStateMapping,
|
|
@@ -32309,10 +32309,10 @@ var SelectBackdrop = /* @__PURE__ */ React139.forwardRef(function SelectBackdrop
|
|
|
32309
32309
|
});
|
|
32310
32310
|
if (process.env.NODE_ENV !== "production") SelectBackdrop.displayName = "SelectBackdrop";
|
|
32311
32311
|
|
|
32312
|
-
//
|
|
32312
|
+
// ../ui/node_modules/@base-ui/react/esm/select/positioner/SelectPositioner.js
|
|
32313
32313
|
import * as React141 from "react";
|
|
32314
32314
|
|
|
32315
|
-
//
|
|
32315
|
+
// ../ui/node_modules/@base-ui/react/esm/select/positioner/SelectPositionerContext.js
|
|
32316
32316
|
import * as React140 from "react";
|
|
32317
32317
|
var SelectPositionerContext = /* @__PURE__ */ React140.createContext(void 0);
|
|
32318
32318
|
if (process.env.NODE_ENV !== "production") SelectPositionerContext.displayName = "SelectPositionerContext";
|
|
@@ -32324,7 +32324,7 @@ function useSelectPositionerContext() {
|
|
|
32324
32324
|
return context;
|
|
32325
32325
|
}
|
|
32326
32326
|
|
|
32327
|
-
//
|
|
32327
|
+
// ../ui/node_modules/@base-ui/react/esm/select/popup/utils.js
|
|
32328
32328
|
function clearStyles(element, originalStyles) {
|
|
32329
32329
|
if (element) {
|
|
32330
32330
|
Object.assign(element.style, originalStyles);
|
|
@@ -32337,7 +32337,7 @@ var LIST_FUNCTIONAL_STYLES = {
|
|
|
32337
32337
|
overflowY: "auto"
|
|
32338
32338
|
};
|
|
32339
32339
|
|
|
32340
|
-
//
|
|
32340
|
+
// ../ui/node_modules/@base-ui/react/esm/select/positioner/SelectPositioner.js
|
|
32341
32341
|
import { jsx as _jsx33, jsxs as _jsxs9 } from "react/jsx-runtime";
|
|
32342
32342
|
var FIXED = {
|
|
32343
32343
|
position: "fixed"
|
|
@@ -32520,18 +32520,18 @@ var SelectPositioner = /* @__PURE__ */ React141.forwardRef(function SelectPositi
|
|
|
32520
32520
|
});
|
|
32521
32521
|
if (process.env.NODE_ENV !== "production") SelectPositioner.displayName = "SelectPositioner";
|
|
32522
32522
|
|
|
32523
|
-
//
|
|
32523
|
+
// ../ui/node_modules/@base-ui/react/esm/select/popup/SelectPopup.js
|
|
32524
32524
|
import * as React142 from "react";
|
|
32525
32525
|
import * as ReactDOM8 from "react-dom";
|
|
32526
32526
|
|
|
32527
|
-
//
|
|
32527
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/isMouseWithinBounds.js
|
|
32528
32528
|
function isMouseWithinBounds(event2) {
|
|
32529
32529
|
const targetRect = event2.currentTarget.getBoundingClientRect();
|
|
32530
32530
|
const isWithinBounds = targetRect.top + 1 <= event2.clientY && event2.clientY <= targetRect.bottom - 1 && targetRect.left + 1 <= event2.clientX && event2.clientX <= targetRect.right - 1;
|
|
32531
32531
|
return isWithinBounds;
|
|
32532
32532
|
}
|
|
32533
32533
|
|
|
32534
|
-
//
|
|
32534
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/styles.js
|
|
32535
32535
|
import { jsx as _jsx34 } from "react/jsx-runtime";
|
|
32536
32536
|
var DISABLE_SCROLLBAR_CLASS_NAME = "base-ui-disable-scrollbar";
|
|
32537
32537
|
var styleDisableScrollbar = {
|
|
@@ -32547,12 +32547,12 @@ var styleDisableScrollbar = {
|
|
|
32547
32547
|
};
|
|
32548
32548
|
if (process.env.NODE_ENV !== "production") styleDisableScrollbar.getElement.displayName = "styleDisableScrollbar.getElement";
|
|
32549
32549
|
|
|
32550
|
-
//
|
|
32550
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/clamp.js
|
|
32551
32551
|
function clamp3(val, min2 = Number.MIN_SAFE_INTEGER, max2 = Number.MAX_SAFE_INTEGER) {
|
|
32552
32552
|
return Math.max(min2, Math.min(val, max2));
|
|
32553
32553
|
}
|
|
32554
32554
|
|
|
32555
|
-
//
|
|
32555
|
+
// ../ui/node_modules/@base-ui/react/esm/select/popup/SelectPopup.js
|
|
32556
32556
|
import { jsx as _jsx35, jsxs as _jsxs10 } from "react/jsx-runtime";
|
|
32557
32557
|
var stateAttributesMapping11 = {
|
|
32558
32558
|
...popupStateMapping,
|
|
@@ -32923,7 +32923,7 @@ function unsetTransformStyles(popupElement) {
|
|
|
32923
32923
|
};
|
|
32924
32924
|
}
|
|
32925
32925
|
|
|
32926
|
-
//
|
|
32926
|
+
// ../ui/node_modules/@base-ui/react/esm/select/list/SelectList.js
|
|
32927
32927
|
import * as React143 from "react";
|
|
32928
32928
|
var SelectList = /* @__PURE__ */ React143.forwardRef(function SelectList2(componentProps, forwardedRef) {
|
|
32929
32929
|
const {
|
|
@@ -32964,10 +32964,10 @@ var SelectList = /* @__PURE__ */ React143.forwardRef(function SelectList2(compon
|
|
|
32964
32964
|
});
|
|
32965
32965
|
if (process.env.NODE_ENV !== "production") SelectList.displayName = "SelectList";
|
|
32966
32966
|
|
|
32967
|
-
//
|
|
32967
|
+
// ../ui/node_modules/@base-ui/react/esm/select/item/SelectItem.js
|
|
32968
32968
|
import * as React145 from "react";
|
|
32969
32969
|
|
|
32970
|
-
//
|
|
32970
|
+
// ../ui/node_modules/@base-ui/react/esm/select/item/SelectItemContext.js
|
|
32971
32971
|
import * as React144 from "react";
|
|
32972
32972
|
var SelectItemContext = /* @__PURE__ */ React144.createContext(void 0);
|
|
32973
32973
|
if (process.env.NODE_ENV !== "production") SelectItemContext.displayName = "SelectItemContext";
|
|
@@ -32979,7 +32979,7 @@ function useSelectItemContext() {
|
|
|
32979
32979
|
return context;
|
|
32980
32980
|
}
|
|
32981
32981
|
|
|
32982
|
-
//
|
|
32982
|
+
// ../ui/node_modules/@base-ui/react/esm/select/item/SelectItem.js
|
|
32983
32983
|
import { jsx as _jsx36 } from "react/jsx-runtime";
|
|
32984
32984
|
var SelectItem = /* @__PURE__ */ React145.memo(/* @__PURE__ */ React145.forwardRef(function SelectItem2(componentProps, forwardedRef) {
|
|
32985
32985
|
const {
|
|
@@ -33165,7 +33165,7 @@ var SelectItem = /* @__PURE__ */ React145.memo(/* @__PURE__ */ React145.forwardR
|
|
|
33165
33165
|
}));
|
|
33166
33166
|
if (process.env.NODE_ENV !== "production") SelectItem.displayName = "SelectItem";
|
|
33167
33167
|
|
|
33168
|
-
//
|
|
33168
|
+
// ../ui/node_modules/@base-ui/react/esm/select/item-indicator/SelectItemIndicator.js
|
|
33169
33169
|
import * as React146 from "react";
|
|
33170
33170
|
import { jsx as _jsx37 } from "react/jsx-runtime";
|
|
33171
33171
|
var SelectItemIndicator = /* @__PURE__ */ React146.forwardRef(function SelectItemIndicator2(componentProps, forwardedRef) {
|
|
@@ -33224,7 +33224,7 @@ var Inner = /* @__PURE__ */ React146.memo(/* @__PURE__ */ React146.forwardRef((c
|
|
|
33224
33224
|
}));
|
|
33225
33225
|
if (process.env.NODE_ENV !== "production") Inner.displayName = "Inner";
|
|
33226
33226
|
|
|
33227
|
-
//
|
|
33227
|
+
// ../ui/node_modules/@base-ui/react/esm/select/item-text/SelectItemText.js
|
|
33228
33228
|
import * as React147 from "react";
|
|
33229
33229
|
var SelectItemText = /* @__PURE__ */ React147.memo(/* @__PURE__ */ React147.forwardRef(function SelectItemText2(componentProps, forwardedRef) {
|
|
33230
33230
|
const {
|
|
@@ -33258,7 +33258,7 @@ var SelectItemText = /* @__PURE__ */ React147.memo(/* @__PURE__ */ React147.forw
|
|
|
33258
33258
|
}));
|
|
33259
33259
|
if (process.env.NODE_ENV !== "production") SelectItemText.displayName = "SelectItemText";
|
|
33260
33260
|
|
|
33261
|
-
//
|
|
33261
|
+
// ../ui/node_modules/@base-ui/react/esm/select/arrow/SelectArrow.js
|
|
33262
33262
|
import * as React148 from "react";
|
|
33263
33263
|
var stateAttributesMapping12 = {
|
|
33264
33264
|
...popupStateMapping,
|
|
@@ -33304,10 +33304,10 @@ var SelectArrow = /* @__PURE__ */ React148.forwardRef(function SelectArrow2(comp
|
|
|
33304
33304
|
});
|
|
33305
33305
|
if (process.env.NODE_ENV !== "production") SelectArrow.displayName = "SelectArrow";
|
|
33306
33306
|
|
|
33307
|
-
//
|
|
33307
|
+
// ../ui/node_modules/@base-ui/react/esm/select/scroll-down-arrow/SelectScrollDownArrow.js
|
|
33308
33308
|
import * as React150 from "react";
|
|
33309
33309
|
|
|
33310
|
-
//
|
|
33310
|
+
// ../ui/node_modules/@base-ui/react/esm/select/scroll-arrow/SelectScrollArrow.js
|
|
33311
33311
|
import * as React149 from "react";
|
|
33312
33312
|
var SelectScrollArrow = /* @__PURE__ */ React149.forwardRef(function SelectScrollArrow2(componentProps, forwardedRef) {
|
|
33313
33313
|
const {
|
|
@@ -33468,7 +33468,7 @@ var SelectScrollArrow = /* @__PURE__ */ React149.forwardRef(function SelectScrol
|
|
|
33468
33468
|
});
|
|
33469
33469
|
if (process.env.NODE_ENV !== "production") SelectScrollArrow.displayName = "SelectScrollArrow";
|
|
33470
33470
|
|
|
33471
|
-
//
|
|
33471
|
+
// ../ui/node_modules/@base-ui/react/esm/select/scroll-down-arrow/SelectScrollDownArrow.js
|
|
33472
33472
|
import { jsx as _jsx38 } from "react/jsx-runtime";
|
|
33473
33473
|
var SelectScrollDownArrow = /* @__PURE__ */ React150.forwardRef(function SelectScrollDownArrow2(props, forwardedRef) {
|
|
33474
33474
|
return /* @__PURE__ */ _jsx38(SelectScrollArrow, {
|
|
@@ -33479,7 +33479,7 @@ var SelectScrollDownArrow = /* @__PURE__ */ React150.forwardRef(function SelectS
|
|
|
33479
33479
|
});
|
|
33480
33480
|
if (process.env.NODE_ENV !== "production") SelectScrollDownArrow.displayName = "SelectScrollDownArrow";
|
|
33481
33481
|
|
|
33482
|
-
//
|
|
33482
|
+
// ../ui/node_modules/@base-ui/react/esm/select/scroll-up-arrow/SelectScrollUpArrow.js
|
|
33483
33483
|
import * as React151 from "react";
|
|
33484
33484
|
import { jsx as _jsx39 } from "react/jsx-runtime";
|
|
33485
33485
|
var SelectScrollUpArrow = /* @__PURE__ */ React151.forwardRef(function SelectScrollUpArrow2(props, forwardedRef) {
|
|
@@ -33491,10 +33491,10 @@ var SelectScrollUpArrow = /* @__PURE__ */ React151.forwardRef(function SelectScr
|
|
|
33491
33491
|
});
|
|
33492
33492
|
if (process.env.NODE_ENV !== "production") SelectScrollUpArrow.displayName = "SelectScrollUpArrow";
|
|
33493
33493
|
|
|
33494
|
-
//
|
|
33494
|
+
// ../ui/node_modules/@base-ui/react/esm/select/group/SelectGroup.js
|
|
33495
33495
|
import * as React153 from "react";
|
|
33496
33496
|
|
|
33497
|
-
//
|
|
33497
|
+
// ../ui/node_modules/@base-ui/react/esm/select/group/SelectGroupContext.js
|
|
33498
33498
|
import * as React152 from "react";
|
|
33499
33499
|
var SelectGroupContext = /* @__PURE__ */ React152.createContext(void 0);
|
|
33500
33500
|
if (process.env.NODE_ENV !== "production") SelectGroupContext.displayName = "SelectGroupContext";
|
|
@@ -33506,7 +33506,7 @@ function useSelectGroupContext() {
|
|
|
33506
33506
|
return context;
|
|
33507
33507
|
}
|
|
33508
33508
|
|
|
33509
|
-
//
|
|
33509
|
+
// ../ui/node_modules/@base-ui/react/esm/select/group/SelectGroup.js
|
|
33510
33510
|
import { jsx as _jsx40 } from "react/jsx-runtime";
|
|
33511
33511
|
var SelectGroup = /* @__PURE__ */ React153.forwardRef(function SelectGroup2(componentProps, forwardedRef) {
|
|
33512
33512
|
const {
|
|
@@ -33533,7 +33533,7 @@ var SelectGroup = /* @__PURE__ */ React153.forwardRef(function SelectGroup2(comp
|
|
|
33533
33533
|
});
|
|
33534
33534
|
if (process.env.NODE_ENV !== "production") SelectGroup.displayName = "SelectGroup";
|
|
33535
33535
|
|
|
33536
|
-
//
|
|
33536
|
+
// ../ui/node_modules/@base-ui/react/esm/select/group-label/SelectGroupLabel.js
|
|
33537
33537
|
import * as React154 from "react";
|
|
33538
33538
|
var SelectGroupLabel = /* @__PURE__ */ React154.forwardRef(function SelectGroupLabel2(componentProps, forwardedRef) {
|
|
33539
33539
|
const {
|
|
@@ -33693,17 +33693,17 @@ SelectItem3.displayName = "SelectItem";
|
|
|
33693
33693
|
var SelectSeparator = forwardRef78(({ className }, ref) => /* @__PURE__ */ jsx23(index_parts_exports8.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-border", className) }));
|
|
33694
33694
|
SelectSeparator.displayName = "SelectSeparator";
|
|
33695
33695
|
|
|
33696
|
-
//
|
|
33696
|
+
// ../ui/node_modules/@base-ui/react/esm/switch/index.parts.js
|
|
33697
33697
|
var index_parts_exports9 = {};
|
|
33698
33698
|
__export(index_parts_exports9, {
|
|
33699
33699
|
Root: () => SwitchRoot,
|
|
33700
33700
|
Thumb: () => SwitchThumb
|
|
33701
33701
|
});
|
|
33702
33702
|
|
|
33703
|
-
//
|
|
33703
|
+
// ../ui/node_modules/@base-ui/react/esm/switch/root/SwitchRoot.js
|
|
33704
33704
|
import * as React156 from "react";
|
|
33705
33705
|
|
|
33706
|
-
//
|
|
33706
|
+
// ../ui/node_modules/@base-ui/react/esm/switch/root/SwitchRootContext.js
|
|
33707
33707
|
import * as React155 from "react";
|
|
33708
33708
|
var SwitchRootContext = /* @__PURE__ */ React155.createContext(void 0);
|
|
33709
33709
|
if (process.env.NODE_ENV !== "production") SwitchRootContext.displayName = "SwitchRootContext";
|
|
@@ -33715,7 +33715,7 @@ function useSwitchRootContext() {
|
|
|
33715
33715
|
return context;
|
|
33716
33716
|
}
|
|
33717
33717
|
|
|
33718
|
-
//
|
|
33718
|
+
// ../ui/node_modules/@base-ui/react/esm/switch/root/SwitchRootDataAttributes.js
|
|
33719
33719
|
var SwitchRootDataAttributes = /* @__PURE__ */ (function(SwitchRootDataAttributes2) {
|
|
33720
33720
|
SwitchRootDataAttributes2["checked"] = "data-checked";
|
|
33721
33721
|
SwitchRootDataAttributes2["unchecked"] = "data-unchecked";
|
|
@@ -33731,7 +33731,7 @@ var SwitchRootDataAttributes = /* @__PURE__ */ (function(SwitchRootDataAttribute
|
|
|
33731
33731
|
return SwitchRootDataAttributes2;
|
|
33732
33732
|
})({});
|
|
33733
33733
|
|
|
33734
|
-
//
|
|
33734
|
+
// ../ui/node_modules/@base-ui/react/esm/switch/stateAttributesMapping.js
|
|
33735
33735
|
var stateAttributesMapping13 = {
|
|
33736
33736
|
...fieldValidityMapping,
|
|
33737
33737
|
checked(value) {
|
|
@@ -33746,7 +33746,7 @@ var stateAttributesMapping13 = {
|
|
|
33746
33746
|
}
|
|
33747
33747
|
};
|
|
33748
33748
|
|
|
33749
|
-
//
|
|
33749
|
+
// ../ui/node_modules/@base-ui/react/esm/switch/root/SwitchRoot.js
|
|
33750
33750
|
import { jsx as _jsx41, jsxs as _jsxs11 } from "react/jsx-runtime";
|
|
33751
33751
|
var SwitchRoot = /* @__PURE__ */ React156.forwardRef(function SwitchRoot2(componentProps, forwardedRef) {
|
|
33752
33752
|
const {
|
|
@@ -33926,7 +33926,7 @@ var SwitchRoot = /* @__PURE__ */ React156.forwardRef(function SwitchRoot2(compon
|
|
|
33926
33926
|
});
|
|
33927
33927
|
if (process.env.NODE_ENV !== "production") SwitchRoot.displayName = "SwitchRoot";
|
|
33928
33928
|
|
|
33929
|
-
//
|
|
33929
|
+
// ../ui/node_modules/@base-ui/react/esm/switch/thumb/SwitchThumb.js
|
|
33930
33930
|
import * as React157 from "react";
|
|
33931
33931
|
var SwitchThumb = /* @__PURE__ */ React157.forwardRef(function SwitchThumb2(componentProps, forwardedRef) {
|
|
33932
33932
|
const {
|
|
@@ -34608,7 +34608,7 @@ function InlineEditable(props) {
|
|
|
34608
34608
|
}
|
|
34609
34609
|
InlineEditable.displayName = "InlineEditable";
|
|
34610
34610
|
|
|
34611
|
-
//
|
|
34611
|
+
// ../ui/node_modules/@base-ui/react/esm/field/index.parts.js
|
|
34612
34612
|
var index_parts_exports10 = {};
|
|
34613
34613
|
__export(index_parts_exports10, {
|
|
34614
34614
|
Control: () => FieldControl,
|
|
@@ -34620,10 +34620,10 @@ __export(index_parts_exports10, {
|
|
|
34620
34620
|
Validity: () => FieldValidity
|
|
34621
34621
|
});
|
|
34622
34622
|
|
|
34623
|
-
//
|
|
34623
|
+
// ../ui/node_modules/@base-ui/react/esm/field/root/FieldRoot.js
|
|
34624
34624
|
import * as React161 from "react";
|
|
34625
34625
|
|
|
34626
|
-
//
|
|
34626
|
+
// ../ui/node_modules/@base-ui/react/esm/fieldset/root/FieldsetRootContext.js
|
|
34627
34627
|
import * as React158 from "react";
|
|
34628
34628
|
var FieldsetRootContext = /* @__PURE__ */ React158.createContext({
|
|
34629
34629
|
legendId: void 0,
|
|
@@ -34640,7 +34640,7 @@ function useFieldsetRootContext(optional = false) {
|
|
|
34640
34640
|
return context;
|
|
34641
34641
|
}
|
|
34642
34642
|
|
|
34643
|
-
//
|
|
34643
|
+
// ../ui/node_modules/@base-ui/react/esm/labelable-provider/LabelableProvider.js
|
|
34644
34644
|
import * as React159 from "react";
|
|
34645
34645
|
import { jsx as _jsx42 } from "react/jsx-runtime";
|
|
34646
34646
|
var LabelableProvider = function LabelableProvider2(props) {
|
|
@@ -34672,7 +34672,7 @@ var LabelableProvider = function LabelableProvider2(props) {
|
|
|
34672
34672
|
};
|
|
34673
34673
|
if (process.env.NODE_ENV !== "production") LabelableProvider.displayName = "LabelableProvider";
|
|
34674
34674
|
|
|
34675
|
-
//
|
|
34675
|
+
// ../ui/node_modules/@base-ui/react/esm/field/root/useFieldValidation.js
|
|
34676
34676
|
import * as React160 from "react";
|
|
34677
34677
|
var validityKeys = Object.keys(DEFAULT_VALIDITY_STATE);
|
|
34678
34678
|
function isOnlyValueMissing(state) {
|
|
@@ -34880,7 +34880,7 @@ function useFieldValidation(params) {
|
|
|
34880
34880
|
}), [getValidationProps, getInputValidationProps, commit]);
|
|
34881
34881
|
}
|
|
34882
34882
|
|
|
34883
|
-
//
|
|
34883
|
+
// ../ui/node_modules/@base-ui/react/esm/field/root/FieldRoot.js
|
|
34884
34884
|
import { jsx as _jsx43 } from "react/jsx-runtime";
|
|
34885
34885
|
var FieldRootInner = /* @__PURE__ */ React161.forwardRef(function FieldRootInner2(componentProps, forwardedRef) {
|
|
34886
34886
|
const {
|
|
@@ -35009,7 +35009,7 @@ var FieldRoot = /* @__PURE__ */ React161.forwardRef(function FieldRoot2(componen
|
|
|
35009
35009
|
});
|
|
35010
35010
|
if (process.env.NODE_ENV !== "production") FieldRoot.displayName = "FieldRoot";
|
|
35011
35011
|
|
|
35012
|
-
//
|
|
35012
|
+
// ../ui/node_modules/@base-ui/react/esm/field/label/FieldLabel.js
|
|
35013
35013
|
import * as React162 from "react";
|
|
35014
35014
|
var FieldLabel = /* @__PURE__ */ React162.forwardRef(function FieldLabel2(componentProps, forwardedRef) {
|
|
35015
35015
|
const {
|
|
@@ -35091,7 +35091,7 @@ var FieldLabel = /* @__PURE__ */ React162.forwardRef(function FieldLabel2(compon
|
|
|
35091
35091
|
});
|
|
35092
35092
|
if (process.env.NODE_ENV !== "production") FieldLabel.displayName = "FieldLabel";
|
|
35093
35093
|
|
|
35094
|
-
//
|
|
35094
|
+
// ../ui/node_modules/@base-ui/react/esm/field/error/FieldError.js
|
|
35095
35095
|
import * as React163 from "react";
|
|
35096
35096
|
var FieldError = /* @__PURE__ */ React163.forwardRef(function FieldError2(componentProps, forwardedRef) {
|
|
35097
35097
|
const {
|
|
@@ -35149,7 +35149,7 @@ var FieldError = /* @__PURE__ */ React163.forwardRef(function FieldError2(compon
|
|
|
35149
35149
|
});
|
|
35150
35150
|
if (process.env.NODE_ENV !== "production") FieldError.displayName = "FieldError";
|
|
35151
35151
|
|
|
35152
|
-
//
|
|
35152
|
+
// ../ui/node_modules/@base-ui/react/esm/field/description/FieldDescription.js
|
|
35153
35153
|
import * as React164 from "react";
|
|
35154
35154
|
var FieldDescription = /* @__PURE__ */ React164.forwardRef(function FieldDescription2(componentProps, forwardedRef) {
|
|
35155
35155
|
const {
|
|
@@ -35184,7 +35184,7 @@ var FieldDescription = /* @__PURE__ */ React164.forwardRef(function FieldDescrip
|
|
|
35184
35184
|
});
|
|
35185
35185
|
if (process.env.NODE_ENV !== "production") FieldDescription.displayName = "FieldDescription";
|
|
35186
35186
|
|
|
35187
|
-
//
|
|
35187
|
+
// ../ui/node_modules/@base-ui/react/esm/field/control/FieldControl.js
|
|
35188
35188
|
import * as React165 from "react";
|
|
35189
35189
|
var FieldControl = /* @__PURE__ */ React165.forwardRef(function FieldControl2(componentProps, forwardedRef) {
|
|
35190
35190
|
const {
|
|
@@ -35297,7 +35297,7 @@ var FieldControl = /* @__PURE__ */ React165.forwardRef(function FieldControl2(co
|
|
|
35297
35297
|
});
|
|
35298
35298
|
if (process.env.NODE_ENV !== "production") FieldControl.displayName = "FieldControl";
|
|
35299
35299
|
|
|
35300
|
-
//
|
|
35300
|
+
// ../ui/node_modules/@base-ui/react/esm/field/validity/FieldValidity.js
|
|
35301
35301
|
import * as React166 from "react";
|
|
35302
35302
|
import { jsx as _jsx44 } from "react/jsx-runtime";
|
|
35303
35303
|
var FieldValidity = function FieldValidity2(props) {
|
|
@@ -35321,7 +35321,7 @@ var FieldValidity = function FieldValidity2(props) {
|
|
|
35321
35321
|
};
|
|
35322
35322
|
if (process.env.NODE_ENV !== "production") FieldValidity.displayName = "FieldValidity";
|
|
35323
35323
|
|
|
35324
|
-
//
|
|
35324
|
+
// ../ui/node_modules/@base-ui/react/esm/field/item/FieldItem.js
|
|
35325
35325
|
import * as React167 from "react";
|
|
35326
35326
|
import { jsx as _jsx45 } from "react/jsx-runtime";
|
|
35327
35327
|
var FieldItem = /* @__PURE__ */ React167.forwardRef(function FieldItem2(componentProps, forwardedRef) {
|
|
@@ -35472,7 +35472,7 @@ var OAUTH_PROVIDER_META = {
|
|
|
35472
35472
|
// ../ui/src/components/podium.tsx
|
|
35473
35473
|
import { jsx as jsx28, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
35474
35474
|
|
|
35475
|
-
//
|
|
35475
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/index.parts.js
|
|
35476
35476
|
var index_parts_exports11 = {};
|
|
35477
35477
|
__export(index_parts_exports11, {
|
|
35478
35478
|
Arrow: () => PopoverArrow,
|
|
@@ -35490,10 +35490,10 @@ __export(index_parts_exports11, {
|
|
|
35490
35490
|
createHandle: () => createPopoverHandle
|
|
35491
35491
|
});
|
|
35492
35492
|
|
|
35493
|
-
//
|
|
35493
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/root/PopoverRoot.js
|
|
35494
35494
|
import * as React170 from "react";
|
|
35495
35495
|
|
|
35496
|
-
//
|
|
35496
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/root/PopoverRootContext.js
|
|
35497
35497
|
import * as React168 from "react";
|
|
35498
35498
|
var PopoverRootContext = /* @__PURE__ */ React168.createContext(void 0);
|
|
35499
35499
|
if (process.env.NODE_ENV !== "production") PopoverRootContext.displayName = "PopoverRootContext";
|
|
@@ -35505,7 +35505,7 @@ function usePopoverRootContext(optional) {
|
|
|
35505
35505
|
return context;
|
|
35506
35506
|
}
|
|
35507
35507
|
|
|
35508
|
-
//
|
|
35508
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/store/PopoverStore.js
|
|
35509
35509
|
import * as React169 from "react";
|
|
35510
35510
|
import * as ReactDOM9 from "react-dom";
|
|
35511
35511
|
function createInitialState3() {
|
|
@@ -35622,7 +35622,7 @@ var PopoverStore = class _PopoverStore extends ReactStore {
|
|
|
35622
35622
|
};
|
|
35623
35623
|
};
|
|
35624
35624
|
|
|
35625
|
-
//
|
|
35625
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/root/PopoverRoot.js
|
|
35626
35626
|
import { jsx as _jsx46 } from "react/jsx-runtime";
|
|
35627
35627
|
function PopoverRootComponent({
|
|
35628
35628
|
props
|
|
@@ -35745,14 +35745,14 @@ function PopoverRoot(props) {
|
|
|
35745
35745
|
});
|
|
35746
35746
|
}
|
|
35747
35747
|
|
|
35748
|
-
//
|
|
35748
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/trigger/PopoverTrigger.js
|
|
35749
35749
|
import * as React171 from "react";
|
|
35750
35750
|
import * as ReactDOM10 from "react-dom";
|
|
35751
35751
|
|
|
35752
|
-
//
|
|
35752
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/utils/constants.js
|
|
35753
35753
|
var OPEN_DELAY = 300;
|
|
35754
35754
|
|
|
35755
|
-
//
|
|
35755
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/trigger/PopoverTrigger.js
|
|
35756
35756
|
import { jsx as _jsx47, jsxs as _jsxs12 } from "react/jsx-runtime";
|
|
35757
35757
|
var PopoverTrigger = /* @__PURE__ */ React171.forwardRef(function PopoverTrigger2(componentProps, forwardedRef) {
|
|
35758
35758
|
const {
|
|
@@ -35882,10 +35882,10 @@ var PopoverTrigger = /* @__PURE__ */ React171.forwardRef(function PopoverTrigger
|
|
|
35882
35882
|
});
|
|
35883
35883
|
if (process.env.NODE_ENV !== "production") PopoverTrigger.displayName = "PopoverTrigger";
|
|
35884
35884
|
|
|
35885
|
-
//
|
|
35885
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/portal/PopoverPortal.js
|
|
35886
35886
|
import * as React173 from "react";
|
|
35887
35887
|
|
|
35888
|
-
//
|
|
35888
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/portal/PopoverPortalContext.js
|
|
35889
35889
|
import * as React172 from "react";
|
|
35890
35890
|
var PopoverPortalContext = /* @__PURE__ */ React172.createContext(void 0);
|
|
35891
35891
|
if (process.env.NODE_ENV !== "production") PopoverPortalContext.displayName = "PopoverPortalContext";
|
|
@@ -35897,7 +35897,7 @@ function usePopoverPortalContext() {
|
|
|
35897
35897
|
return value;
|
|
35898
35898
|
}
|
|
35899
35899
|
|
|
35900
|
-
//
|
|
35900
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/portal/PopoverPortal.js
|
|
35901
35901
|
import { jsx as _jsx48 } from "react/jsx-runtime";
|
|
35902
35902
|
var PopoverPortal = /* @__PURE__ */ React173.forwardRef(function PopoverPortal2(props, forwardedRef) {
|
|
35903
35903
|
const {
|
|
@@ -35923,10 +35923,10 @@ var PopoverPortal = /* @__PURE__ */ React173.forwardRef(function PopoverPortal2(
|
|
|
35923
35923
|
});
|
|
35924
35924
|
if (process.env.NODE_ENV !== "production") PopoverPortal.displayName = "PopoverPortal";
|
|
35925
35925
|
|
|
35926
|
-
//
|
|
35926
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/positioner/PopoverPositioner.js
|
|
35927
35927
|
import * as React175 from "react";
|
|
35928
35928
|
|
|
35929
|
-
//
|
|
35929
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/positioner/PopoverPositionerContext.js
|
|
35930
35930
|
import * as React174 from "react";
|
|
35931
35931
|
var PopoverPositionerContext = /* @__PURE__ */ React174.createContext(void 0);
|
|
35932
35932
|
if (process.env.NODE_ENV !== "production") PopoverPositionerContext.displayName = "PopoverPositionerContext";
|
|
@@ -35938,7 +35938,7 @@ function usePopoverPositionerContext() {
|
|
|
35938
35938
|
return context;
|
|
35939
35939
|
}
|
|
35940
35940
|
|
|
35941
|
-
//
|
|
35941
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/positioner/PopoverPositioner.js
|
|
35942
35942
|
import { jsx as _jsx49, jsxs as _jsxs13 } from "react/jsx-runtime";
|
|
35943
35943
|
var PopoverPositioner = /* @__PURE__ */ React175.forwardRef(function PopoverPositioner2(componentProps, forwardedRef) {
|
|
35944
35944
|
const {
|
|
@@ -36061,7 +36061,7 @@ var PopoverPositioner = /* @__PURE__ */ React175.forwardRef(function PopoverPosi
|
|
|
36061
36061
|
});
|
|
36062
36062
|
if (process.env.NODE_ENV !== "production") PopoverPositioner.displayName = "PopoverPositioner";
|
|
36063
36063
|
|
|
36064
|
-
//
|
|
36064
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/popup/PopoverPopup.js
|
|
36065
36065
|
import * as React176 from "react";
|
|
36066
36066
|
import { jsx as _jsx50 } from "react/jsx-runtime";
|
|
36067
36067
|
var stateAttributesMapping14 = {
|
|
@@ -36156,7 +36156,7 @@ var PopoverPopup = /* @__PURE__ */ React176.forwardRef(function PopoverPopup2(co
|
|
|
36156
36156
|
});
|
|
36157
36157
|
if (process.env.NODE_ENV !== "production") PopoverPopup.displayName = "PopoverPopup";
|
|
36158
36158
|
|
|
36159
|
-
//
|
|
36159
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/arrow/PopoverArrow.js
|
|
36160
36160
|
import * as React177 from "react";
|
|
36161
36161
|
var PopoverArrow = /* @__PURE__ */ React177.forwardRef(function PopoverArrow2(componentProps, forwardedRef) {
|
|
36162
36162
|
const {
|
|
@@ -36194,7 +36194,7 @@ var PopoverArrow = /* @__PURE__ */ React177.forwardRef(function PopoverArrow2(co
|
|
|
36194
36194
|
});
|
|
36195
36195
|
if (process.env.NODE_ENV !== "production") PopoverArrow.displayName = "PopoverArrow";
|
|
36196
36196
|
|
|
36197
|
-
//
|
|
36197
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/backdrop/PopoverBackdrop.js
|
|
36198
36198
|
import * as React178 from "react";
|
|
36199
36199
|
var stateAttributesMapping15 = {
|
|
36200
36200
|
...popupStateMapping,
|
|
@@ -36235,7 +36235,7 @@ var PopoverBackdrop = /* @__PURE__ */ React178.forwardRef(function PopoverBackdr
|
|
|
36235
36235
|
});
|
|
36236
36236
|
if (process.env.NODE_ENV !== "production") PopoverBackdrop.displayName = "PopoverBackdrop";
|
|
36237
36237
|
|
|
36238
|
-
//
|
|
36238
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/title/PopoverTitle.js
|
|
36239
36239
|
import * as React179 from "react";
|
|
36240
36240
|
var PopoverTitle = /* @__PURE__ */ React179.forwardRef(function PopoverTitle2(componentProps, forwardedRef) {
|
|
36241
36241
|
const {
|
|
@@ -36263,7 +36263,7 @@ var PopoverTitle = /* @__PURE__ */ React179.forwardRef(function PopoverTitle2(co
|
|
|
36263
36263
|
});
|
|
36264
36264
|
if (process.env.NODE_ENV !== "production") PopoverTitle.displayName = "PopoverTitle";
|
|
36265
36265
|
|
|
36266
|
-
//
|
|
36266
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/description/PopoverDescription.js
|
|
36267
36267
|
import * as React180 from "react";
|
|
36268
36268
|
var PopoverDescription = /* @__PURE__ */ React180.forwardRef(function PopoverDescription2(componentProps, forwardedRef) {
|
|
36269
36269
|
const {
|
|
@@ -36291,7 +36291,7 @@ var PopoverDescription = /* @__PURE__ */ React180.forwardRef(function PopoverDes
|
|
|
36291
36291
|
});
|
|
36292
36292
|
if (process.env.NODE_ENV !== "production") PopoverDescription.displayName = "PopoverDescription";
|
|
36293
36293
|
|
|
36294
|
-
//
|
|
36294
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/close/PopoverClose.js
|
|
36295
36295
|
import * as React181 from "react";
|
|
36296
36296
|
var PopoverClose = /* @__PURE__ */ React181.forwardRef(function PopoverClose2(props, forwardedRef) {
|
|
36297
36297
|
const {
|
|
@@ -36324,10 +36324,10 @@ var PopoverClose = /* @__PURE__ */ React181.forwardRef(function PopoverClose2(pr
|
|
|
36324
36324
|
});
|
|
36325
36325
|
if (process.env.NODE_ENV !== "production") PopoverClose.displayName = "PopoverClose";
|
|
36326
36326
|
|
|
36327
|
-
//
|
|
36327
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/viewport/PopoverViewport.js
|
|
36328
36328
|
import * as React184 from "react";
|
|
36329
36329
|
|
|
36330
|
-
//
|
|
36330
|
+
// ../ui/node_modules/@base-ui/react/node_modules/@base-ui/utils/esm/usePreviousValue.js
|
|
36331
36331
|
import * as React182 from "react";
|
|
36332
36332
|
function usePreviousValue(value) {
|
|
36333
36333
|
const [state, setState] = React182.useState({
|
|
@@ -36343,7 +36343,7 @@ function usePreviousValue(value) {
|
|
|
36343
36343
|
return state.previous;
|
|
36344
36344
|
}
|
|
36345
36345
|
|
|
36346
|
-
//
|
|
36346
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/usePopupAutoResize.js
|
|
36347
36347
|
import * as React183 from "react";
|
|
36348
36348
|
var supportsResizeObserver = typeof ResizeObserver !== "undefined";
|
|
36349
36349
|
var DEFAULT_ENABLED = () => true;
|
|
@@ -36503,14 +36503,14 @@ function setPositionerCssSize(positionerElement, size4) {
|
|
|
36503
36503
|
positionerElement.style.setProperty("--positioner-height", height);
|
|
36504
36504
|
}
|
|
36505
36505
|
|
|
36506
|
-
//
|
|
36506
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/viewport/PopoverViewportCssVars.js
|
|
36507
36507
|
var PopoverViewportCssVars = /* @__PURE__ */ (function(PopoverViewportCssVars2) {
|
|
36508
36508
|
PopoverViewportCssVars2["popupWidth"] = "--popup-width";
|
|
36509
36509
|
PopoverViewportCssVars2["popupHeight"] = "--popup-height";
|
|
36510
36510
|
return PopoverViewportCssVars2;
|
|
36511
36511
|
})({});
|
|
36512
36512
|
|
|
36513
|
-
//
|
|
36513
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/viewport/PopoverViewport.js
|
|
36514
36514
|
import { jsx as _jsx51, jsxs as _jsxs14 } from "react/jsx-runtime";
|
|
36515
36515
|
var stateAttributesMapping16 = {
|
|
36516
36516
|
activationDirection: (value) => value ? {
|
|
@@ -36688,7 +36688,7 @@ function calculateRelativePosition(from, to) {
|
|
|
36688
36688
|
};
|
|
36689
36689
|
}
|
|
36690
36690
|
|
|
36691
|
-
//
|
|
36691
|
+
// ../ui/node_modules/@base-ui/react/esm/popover/store/PopoverHandle.js
|
|
36692
36692
|
var PopoverHandle = class {
|
|
36693
36693
|
/**
|
|
36694
36694
|
* Internal store holding the popover's state.
|
|
@@ -36776,7 +36776,7 @@ var PopoverContent = forwardRef99(
|
|
|
36776
36776
|
);
|
|
36777
36777
|
PopoverContent.displayName = "PopoverContent";
|
|
36778
36778
|
|
|
36779
|
-
//
|
|
36779
|
+
// ../ui/node_modules/@base-ui/react/esm/progress/index.parts.js
|
|
36780
36780
|
var index_parts_exports12 = {};
|
|
36781
36781
|
__export(index_parts_exports12, {
|
|
36782
36782
|
Indicator: () => ProgressIndicator,
|
|
@@ -36786,10 +36786,10 @@ __export(index_parts_exports12, {
|
|
|
36786
36786
|
Value: () => ProgressValue
|
|
36787
36787
|
});
|
|
36788
36788
|
|
|
36789
|
-
//
|
|
36789
|
+
// ../ui/node_modules/@base-ui/react/esm/progress/root/ProgressRoot.js
|
|
36790
36790
|
import * as React186 from "react";
|
|
36791
36791
|
|
|
36792
|
-
//
|
|
36792
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/formatNumber.js
|
|
36793
36793
|
var cache = /* @__PURE__ */ new Map();
|
|
36794
36794
|
function getFormatter(locale, options) {
|
|
36795
36795
|
const optionsString = JSON.stringify({
|
|
@@ -36811,7 +36811,7 @@ function formatNumber(value, locale, options) {
|
|
|
36811
36811
|
return getFormatter(locale, options).format(value);
|
|
36812
36812
|
}
|
|
36813
36813
|
|
|
36814
|
-
//
|
|
36814
|
+
// ../ui/node_modules/@base-ui/react/esm/progress/root/ProgressRootContext.js
|
|
36815
36815
|
import * as React185 from "react";
|
|
36816
36816
|
var ProgressRootContext = /* @__PURE__ */ React185.createContext(void 0);
|
|
36817
36817
|
if (process.env.NODE_ENV !== "production") ProgressRootContext.displayName = "ProgressRootContext";
|
|
@@ -36823,7 +36823,7 @@ function useProgressRootContext() {
|
|
|
36823
36823
|
return context;
|
|
36824
36824
|
}
|
|
36825
36825
|
|
|
36826
|
-
//
|
|
36826
|
+
// ../ui/node_modules/@base-ui/react/esm/progress/root/ProgressRootDataAttributes.js
|
|
36827
36827
|
var ProgressRootDataAttributes = /* @__PURE__ */ (function(ProgressRootDataAttributes2) {
|
|
36828
36828
|
ProgressRootDataAttributes2["complete"] = "data-complete";
|
|
36829
36829
|
ProgressRootDataAttributes2["indeterminate"] = "data-indeterminate";
|
|
@@ -36831,7 +36831,7 @@ var ProgressRootDataAttributes = /* @__PURE__ */ (function(ProgressRootDataAttri
|
|
|
36831
36831
|
return ProgressRootDataAttributes2;
|
|
36832
36832
|
})({});
|
|
36833
36833
|
|
|
36834
|
-
//
|
|
36834
|
+
// ../ui/node_modules/@base-ui/react/esm/progress/root/stateAttributesMapping.js
|
|
36835
36835
|
var progressStateAttributesMapping = {
|
|
36836
36836
|
status(value) {
|
|
36837
36837
|
if (value === "progressing") {
|
|
@@ -36853,7 +36853,7 @@ var progressStateAttributesMapping = {
|
|
|
36853
36853
|
}
|
|
36854
36854
|
};
|
|
36855
36855
|
|
|
36856
|
-
//
|
|
36856
|
+
// ../ui/node_modules/@base-ui/react/esm/progress/root/ProgressRoot.js
|
|
36857
36857
|
import { jsx as _jsx52 } from "react/jsx-runtime";
|
|
36858
36858
|
function formatValue(value, locale, format) {
|
|
36859
36859
|
if (value == null) {
|
|
@@ -36924,7 +36924,7 @@ var ProgressRoot = /* @__PURE__ */ React186.forwardRef(function ProgressRoot2(co
|
|
|
36924
36924
|
});
|
|
36925
36925
|
if (process.env.NODE_ENV !== "production") ProgressRoot.displayName = "ProgressRoot";
|
|
36926
36926
|
|
|
36927
|
-
//
|
|
36927
|
+
// ../ui/node_modules/@base-ui/react/esm/progress/track/ProgressTrack.js
|
|
36928
36928
|
import * as React187 from "react";
|
|
36929
36929
|
var ProgressTrack = /* @__PURE__ */ React187.forwardRef(function ProgressTrack2(componentProps, forwardedRef) {
|
|
36930
36930
|
const {
|
|
@@ -36945,15 +36945,15 @@ var ProgressTrack = /* @__PURE__ */ React187.forwardRef(function ProgressTrack2(
|
|
|
36945
36945
|
});
|
|
36946
36946
|
if (process.env.NODE_ENV !== "production") ProgressTrack.displayName = "ProgressTrack";
|
|
36947
36947
|
|
|
36948
|
-
//
|
|
36948
|
+
// ../ui/node_modules/@base-ui/react/esm/progress/indicator/ProgressIndicator.js
|
|
36949
36949
|
import * as React188 from "react";
|
|
36950
36950
|
|
|
36951
|
-
//
|
|
36951
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/valueToPercent.js
|
|
36952
36952
|
function valueToPercent(value, min2, max2) {
|
|
36953
36953
|
return (value - min2) * 100 / (max2 - min2);
|
|
36954
36954
|
}
|
|
36955
36955
|
|
|
36956
|
-
//
|
|
36956
|
+
// ../ui/node_modules/@base-ui/react/esm/progress/indicator/ProgressIndicator.js
|
|
36957
36957
|
var ProgressIndicator = /* @__PURE__ */ React188.forwardRef(function ProgressIndicator2(componentProps, forwardedRef) {
|
|
36958
36958
|
const {
|
|
36959
36959
|
render: render2,
|
|
@@ -36989,7 +36989,7 @@ var ProgressIndicator = /* @__PURE__ */ React188.forwardRef(function ProgressInd
|
|
|
36989
36989
|
});
|
|
36990
36990
|
if (process.env.NODE_ENV !== "production") ProgressIndicator.displayName = "ProgressIndicator";
|
|
36991
36991
|
|
|
36992
|
-
//
|
|
36992
|
+
// ../ui/node_modules/@base-ui/react/esm/progress/value/ProgressValue.js
|
|
36993
36993
|
import * as React189 from "react";
|
|
36994
36994
|
var ProgressValue = /* @__PURE__ */ React189.forwardRef(function ProgressValue2(componentProps, forwardedRef) {
|
|
36995
36995
|
const {
|
|
@@ -37018,7 +37018,7 @@ var ProgressValue = /* @__PURE__ */ React189.forwardRef(function ProgressValue2(
|
|
|
37018
37018
|
});
|
|
37019
37019
|
if (process.env.NODE_ENV !== "production") ProgressValue.displayName = "ProgressValue";
|
|
37020
37020
|
|
|
37021
|
-
//
|
|
37021
|
+
// ../ui/node_modules/@base-ui/react/esm/progress/label/ProgressLabel.js
|
|
37022
37022
|
import * as React190 from "react";
|
|
37023
37023
|
var ProgressLabel = /* @__PURE__ */ React190.forwardRef(function ProgressLabel2(componentProps, forwardedRef) {
|
|
37024
37024
|
const {
|
|
@@ -37093,17 +37093,17 @@ var Progress = forwardRef105(
|
|
|
37093
37093
|
);
|
|
37094
37094
|
Progress.displayName = "Progress";
|
|
37095
37095
|
|
|
37096
|
-
//
|
|
37096
|
+
// ../ui/node_modules/@base-ui/react/esm/radio/index.parts.js
|
|
37097
37097
|
var index_parts_exports13 = {};
|
|
37098
37098
|
__export(index_parts_exports13, {
|
|
37099
37099
|
Indicator: () => RadioIndicator,
|
|
37100
37100
|
Root: () => RadioRoot
|
|
37101
37101
|
});
|
|
37102
37102
|
|
|
37103
|
-
//
|
|
37103
|
+
// ../ui/node_modules/@base-ui/react/esm/radio/root/RadioRoot.js
|
|
37104
37104
|
import * as React193 from "react";
|
|
37105
37105
|
|
|
37106
|
-
//
|
|
37106
|
+
// ../ui/node_modules/@base-ui/react/esm/radio/root/RadioRootDataAttributes.js
|
|
37107
37107
|
var RadioRootDataAttributes = /* @__PURE__ */ (function(RadioRootDataAttributes2) {
|
|
37108
37108
|
RadioRootDataAttributes2["checked"] = "data-checked";
|
|
37109
37109
|
RadioRootDataAttributes2["unchecked"] = "data-unchecked";
|
|
@@ -37119,7 +37119,7 @@ var RadioRootDataAttributes = /* @__PURE__ */ (function(RadioRootDataAttributes2
|
|
|
37119
37119
|
return RadioRootDataAttributes2;
|
|
37120
37120
|
})({});
|
|
37121
37121
|
|
|
37122
|
-
//
|
|
37122
|
+
// ../ui/node_modules/@base-ui/react/esm/radio/utils/stateAttributesMapping.js
|
|
37123
37123
|
var stateAttributesMapping17 = {
|
|
37124
37124
|
checked(value) {
|
|
37125
37125
|
if (value) {
|
|
@@ -37135,7 +37135,7 @@ var stateAttributesMapping17 = {
|
|
|
37135
37135
|
...fieldValidityMapping
|
|
37136
37136
|
};
|
|
37137
37137
|
|
|
37138
|
-
//
|
|
37138
|
+
// ../ui/node_modules/@base-ui/react/esm/radio-group/RadioGroupContext.js
|
|
37139
37139
|
import * as React191 from "react";
|
|
37140
37140
|
var RadioGroupContext = /* @__PURE__ */ React191.createContext({
|
|
37141
37141
|
disabled: void 0,
|
|
@@ -37154,7 +37154,7 @@ function useRadioGroupContext() {
|
|
|
37154
37154
|
return React191.useContext(RadioGroupContext);
|
|
37155
37155
|
}
|
|
37156
37156
|
|
|
37157
|
-
//
|
|
37157
|
+
// ../ui/node_modules/@base-ui/react/esm/radio/root/RadioRootContext.js
|
|
37158
37158
|
import * as React192 from "react";
|
|
37159
37159
|
var RadioRootContext = /* @__PURE__ */ React192.createContext(void 0);
|
|
37160
37160
|
if (process.env.NODE_ENV !== "production") RadioRootContext.displayName = "RadioRootContext";
|
|
@@ -37166,7 +37166,7 @@ function useRadioRootContext() {
|
|
|
37166
37166
|
return value;
|
|
37167
37167
|
}
|
|
37168
37168
|
|
|
37169
|
-
//
|
|
37169
|
+
// ../ui/node_modules/@base-ui/react/esm/radio/root/RadioRoot.js
|
|
37170
37170
|
import { jsx as _jsx53, jsxs as _jsxs15 } from "react/jsx-runtime";
|
|
37171
37171
|
var RadioRoot = /* @__PURE__ */ React193.forwardRef(function RadioRoot2(componentProps, forwardedRef) {
|
|
37172
37172
|
const {
|
|
@@ -37326,7 +37326,7 @@ var RadioRoot = /* @__PURE__ */ React193.forwardRef(function RadioRoot2(componen
|
|
|
37326
37326
|
});
|
|
37327
37327
|
if (process.env.NODE_ENV !== "production") RadioRoot.displayName = "RadioRoot";
|
|
37328
37328
|
|
|
37329
|
-
//
|
|
37329
|
+
// ../ui/node_modules/@base-ui/react/esm/radio/indicator/RadioIndicator.js
|
|
37330
37330
|
import * as React194 from "react";
|
|
37331
37331
|
var RadioIndicator = /* @__PURE__ */ React194.forwardRef(function RadioIndicator2(componentProps, forwardedRef) {
|
|
37332
37332
|
const {
|
|
@@ -37370,7 +37370,7 @@ var RadioIndicator = /* @__PURE__ */ React194.forwardRef(function RadioIndicator
|
|
|
37370
37370
|
});
|
|
37371
37371
|
if (process.env.NODE_ENV !== "production") RadioIndicator.displayName = "RadioIndicator";
|
|
37372
37372
|
|
|
37373
|
-
//
|
|
37373
|
+
// ../ui/node_modules/@base-ui/react/esm/radio-group/RadioGroup.js
|
|
37374
37374
|
import * as React195 from "react";
|
|
37375
37375
|
import { jsx as _jsx54, jsxs as _jsxs16 } from "react/jsx-runtime";
|
|
37376
37376
|
var MODIFIER_KEYS2 = [SHIFT];
|
|
@@ -37622,7 +37622,7 @@ var RadioCard = forwardRef109(
|
|
|
37622
37622
|
);
|
|
37623
37623
|
RadioCard.displayName = "RadioCard";
|
|
37624
37624
|
|
|
37625
|
-
//
|
|
37625
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/index.parts.js
|
|
37626
37626
|
var index_parts_exports14 = {};
|
|
37627
37627
|
__export(index_parts_exports14, {
|
|
37628
37628
|
Content: () => ScrollAreaContent,
|
|
@@ -37633,10 +37633,10 @@ __export(index_parts_exports14, {
|
|
|
37633
37633
|
Viewport: () => ScrollAreaViewport
|
|
37634
37634
|
});
|
|
37635
37635
|
|
|
37636
|
-
//
|
|
37636
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRoot.js
|
|
37637
37637
|
import * as React197 from "react";
|
|
37638
37638
|
|
|
37639
|
-
//
|
|
37639
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootContext.js
|
|
37640
37640
|
import * as React196 from "react";
|
|
37641
37641
|
var ScrollAreaRootContext = /* @__PURE__ */ React196.createContext(void 0);
|
|
37642
37642
|
if (process.env.NODE_ENV !== "production") ScrollAreaRootContext.displayName = "ScrollAreaRootContext";
|
|
@@ -37648,18 +37648,18 @@ function useScrollAreaRootContext() {
|
|
|
37648
37648
|
return context;
|
|
37649
37649
|
}
|
|
37650
37650
|
|
|
37651
|
-
//
|
|
37651
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootCssVars.js
|
|
37652
37652
|
var ScrollAreaRootCssVars = /* @__PURE__ */ (function(ScrollAreaRootCssVars2) {
|
|
37653
37653
|
ScrollAreaRootCssVars2["scrollAreaCornerHeight"] = "--scroll-area-corner-height";
|
|
37654
37654
|
ScrollAreaRootCssVars2["scrollAreaCornerWidth"] = "--scroll-area-corner-width";
|
|
37655
37655
|
return ScrollAreaRootCssVars2;
|
|
37656
37656
|
})({});
|
|
37657
37657
|
|
|
37658
|
-
//
|
|
37658
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/constants.js
|
|
37659
37659
|
var SCROLL_TIMEOUT = 500;
|
|
37660
37660
|
var MIN_THUMB_SIZE = 16;
|
|
37661
37661
|
|
|
37662
|
-
//
|
|
37662
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/utils/getOffset.js
|
|
37663
37663
|
function getOffset2(element, prop, axis) {
|
|
37664
37664
|
if (!element) {
|
|
37665
37665
|
return 0;
|
|
@@ -37672,7 +37672,7 @@ function getOffset2(element, prop, axis) {
|
|
|
37672
37672
|
return parseFloat(styles2[`${prop}${propAxis}Start`]) + parseFloat(styles2[`${prop}${propAxis}End`]);
|
|
37673
37673
|
}
|
|
37674
37674
|
|
|
37675
|
-
//
|
|
37675
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarDataAttributes.js
|
|
37676
37676
|
var ScrollAreaScrollbarDataAttributes = /* @__PURE__ */ (function(ScrollAreaScrollbarDataAttributes2) {
|
|
37677
37677
|
ScrollAreaScrollbarDataAttributes2["orientation"] = "data-orientation";
|
|
37678
37678
|
ScrollAreaScrollbarDataAttributes2["hovering"] = "data-hovering";
|
|
@@ -37686,7 +37686,7 @@ var ScrollAreaScrollbarDataAttributes = /* @__PURE__ */ (function(ScrollAreaScro
|
|
|
37686
37686
|
return ScrollAreaScrollbarDataAttributes2;
|
|
37687
37687
|
})({});
|
|
37688
37688
|
|
|
37689
|
-
//
|
|
37689
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootDataAttributes.js
|
|
37690
37690
|
var ScrollAreaRootDataAttributes = /* @__PURE__ */ (function(ScrollAreaRootDataAttributes2) {
|
|
37691
37691
|
ScrollAreaRootDataAttributes2["hasOverflowX"] = "data-has-overflow-x";
|
|
37692
37692
|
ScrollAreaRootDataAttributes2["hasOverflowY"] = "data-has-overflow-y";
|
|
@@ -37697,7 +37697,7 @@ var ScrollAreaRootDataAttributes = /* @__PURE__ */ (function(ScrollAreaRootDataA
|
|
|
37697
37697
|
return ScrollAreaRootDataAttributes2;
|
|
37698
37698
|
})({});
|
|
37699
37699
|
|
|
37700
|
-
//
|
|
37700
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/root/stateAttributes.js
|
|
37701
37701
|
var scrollAreaStateAttributesMapping = {
|
|
37702
37702
|
hasOverflowX: (value) => value ? {
|
|
37703
37703
|
[ScrollAreaRootDataAttributes.hasOverflowX]: ""
|
|
@@ -37720,7 +37720,7 @@ var scrollAreaStateAttributesMapping = {
|
|
|
37720
37720
|
cornerHidden: () => null
|
|
37721
37721
|
};
|
|
37722
37722
|
|
|
37723
|
-
//
|
|
37723
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRoot.js
|
|
37724
37724
|
import { jsxs as _jsxs17 } from "react/jsx-runtime";
|
|
37725
37725
|
var DEFAULT_COORDS = {
|
|
37726
37726
|
x: 0,
|
|
@@ -37956,10 +37956,10 @@ function normalizeOverflowEdgeThreshold(threshold) {
|
|
|
37956
37956
|
};
|
|
37957
37957
|
}
|
|
37958
37958
|
|
|
37959
|
-
//
|
|
37959
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewport.js
|
|
37960
37960
|
import * as React199 from "react";
|
|
37961
37961
|
|
|
37962
|
-
//
|
|
37962
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewportContext.js
|
|
37963
37963
|
import * as React198 from "react";
|
|
37964
37964
|
var ScrollAreaViewportContext = /* @__PURE__ */ React198.createContext(void 0);
|
|
37965
37965
|
if (process.env.NODE_ENV !== "production") ScrollAreaViewportContext.displayName = "ScrollAreaViewportContext";
|
|
@@ -37971,7 +37971,7 @@ function useScrollAreaViewportContext() {
|
|
|
37971
37971
|
return context;
|
|
37972
37972
|
}
|
|
37973
37973
|
|
|
37974
|
-
//
|
|
37974
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/utils/onVisible.js
|
|
37975
37975
|
function onVisible(element, callback) {
|
|
37976
37976
|
if (typeof IntersectionObserver === "undefined") {
|
|
37977
37977
|
return () => {
|
|
@@ -37991,7 +37991,7 @@ function onVisible(element, callback) {
|
|
|
37991
37991
|
};
|
|
37992
37992
|
}
|
|
37993
37993
|
|
|
37994
|
-
//
|
|
37994
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewportCssVars.js
|
|
37995
37995
|
var ScrollAreaViewportCssVars = /* @__PURE__ */ (function(ScrollAreaViewportCssVars2) {
|
|
37996
37996
|
ScrollAreaViewportCssVars2["scrollAreaOverflowXStart"] = "--scroll-area-overflow-x-start";
|
|
37997
37997
|
ScrollAreaViewportCssVars2["scrollAreaOverflowXEnd"] = "--scroll-area-overflow-x-end";
|
|
@@ -38000,7 +38000,7 @@ var ScrollAreaViewportCssVars = /* @__PURE__ */ (function(ScrollAreaViewportCssV
|
|
|
38000
38000
|
return ScrollAreaViewportCssVars2;
|
|
38001
38001
|
})({});
|
|
38002
38002
|
|
|
38003
|
-
//
|
|
38003
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewport.js
|
|
38004
38004
|
import { jsx as _jsx55 } from "react/jsx-runtime";
|
|
38005
38005
|
var scrollAreaOverflowVarsRegistered = false;
|
|
38006
38006
|
function removeCSSVariableInheritance() {
|
|
@@ -38292,10 +38292,10 @@ var ScrollAreaViewport = /* @__PURE__ */ React199.forwardRef(function ScrollArea
|
|
|
38292
38292
|
});
|
|
38293
38293
|
if (process.env.NODE_ENV !== "production") ScrollAreaViewport.displayName = "ScrollAreaViewport";
|
|
38294
38294
|
|
|
38295
|
-
//
|
|
38295
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbar.js
|
|
38296
38296
|
import * as React201 from "react";
|
|
38297
38297
|
|
|
38298
|
-
//
|
|
38298
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarContext.js
|
|
38299
38299
|
import * as React200 from "react";
|
|
38300
38300
|
var ScrollAreaScrollbarContext = /* @__PURE__ */ React200.createContext(void 0);
|
|
38301
38301
|
if (process.env.NODE_ENV !== "production") ScrollAreaScrollbarContext.displayName = "ScrollAreaScrollbarContext";
|
|
@@ -38307,14 +38307,14 @@ function useScrollAreaScrollbarContext() {
|
|
|
38307
38307
|
return context;
|
|
38308
38308
|
}
|
|
38309
38309
|
|
|
38310
|
-
//
|
|
38310
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarCssVars.js
|
|
38311
38311
|
var ScrollAreaScrollbarCssVars = /* @__PURE__ */ (function(ScrollAreaScrollbarCssVars2) {
|
|
38312
38312
|
ScrollAreaScrollbarCssVars2["scrollAreaThumbHeight"] = "--scroll-area-thumb-height";
|
|
38313
38313
|
ScrollAreaScrollbarCssVars2["scrollAreaThumbWidth"] = "--scroll-area-thumb-width";
|
|
38314
38314
|
return ScrollAreaScrollbarCssVars2;
|
|
38315
38315
|
})({});
|
|
38316
38316
|
|
|
38317
|
-
//
|
|
38317
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbar.js
|
|
38318
38318
|
import { jsx as _jsx56 } from "react/jsx-runtime";
|
|
38319
38319
|
var ScrollAreaScrollbar = /* @__PURE__ */ React201.forwardRef(function ScrollAreaScrollbar2(componentProps, forwardedRef) {
|
|
38320
38320
|
const {
|
|
@@ -38485,7 +38485,7 @@ var ScrollAreaScrollbar = /* @__PURE__ */ React201.forwardRef(function ScrollAre
|
|
|
38485
38485
|
});
|
|
38486
38486
|
if (process.env.NODE_ENV !== "production") ScrollAreaScrollbar.displayName = "ScrollAreaScrollbar";
|
|
38487
38487
|
|
|
38488
|
-
//
|
|
38488
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/content/ScrollAreaContent.js
|
|
38489
38489
|
import * as React202 from "react";
|
|
38490
38490
|
var ScrollAreaContent = /* @__PURE__ */ React202.forwardRef(function ScrollAreaContent2(componentProps, forwardedRef) {
|
|
38491
38491
|
const {
|
|
@@ -38534,7 +38534,7 @@ var ScrollAreaContent = /* @__PURE__ */ React202.forwardRef(function ScrollAreaC
|
|
|
38534
38534
|
});
|
|
38535
38535
|
if (process.env.NODE_ENV !== "production") ScrollAreaContent.displayName = "ScrollAreaContent";
|
|
38536
38536
|
|
|
38537
|
-
//
|
|
38537
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/thumb/ScrollAreaThumb.js
|
|
38538
38538
|
import * as React203 from "react";
|
|
38539
38539
|
var ScrollAreaThumb = /* @__PURE__ */ React203.forwardRef(function ScrollAreaThumb2(componentProps, forwardedRef) {
|
|
38540
38540
|
const {
|
|
@@ -38586,7 +38586,7 @@ var ScrollAreaThumb = /* @__PURE__ */ React203.forwardRef(function ScrollAreaThu
|
|
|
38586
38586
|
});
|
|
38587
38587
|
if (process.env.NODE_ENV !== "production") ScrollAreaThumb.displayName = "ScrollAreaThumb";
|
|
38588
38588
|
|
|
38589
|
-
//
|
|
38589
|
+
// ../ui/node_modules/@base-ui/react/esm/scroll-area/corner/ScrollAreaCorner.js
|
|
38590
38590
|
import * as React204 from "react";
|
|
38591
38591
|
var ScrollAreaCorner = /* @__PURE__ */ React204.forwardRef(function ScrollAreaCorner2(componentProps, forwardedRef) {
|
|
38592
38592
|
const {
|
|
@@ -38807,7 +38807,7 @@ SheetDescription.displayName = "SheetDescription";
|
|
|
38807
38807
|
// ../ui/src/components/skeleton.tsx
|
|
38808
38808
|
import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
38809
38809
|
|
|
38810
|
-
//
|
|
38810
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/index.parts.js
|
|
38811
38811
|
var index_parts_exports15 = {};
|
|
38812
38812
|
__export(index_parts_exports15, {
|
|
38813
38813
|
Control: () => SliderControl,
|
|
@@ -38818,27 +38818,27 @@ __export(index_parts_exports15, {
|
|
|
38818
38818
|
Value: () => SliderValue
|
|
38819
38819
|
});
|
|
38820
38820
|
|
|
38821
|
-
//
|
|
38821
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/root/SliderRoot.js
|
|
38822
38822
|
import * as React206 from "react";
|
|
38823
38823
|
|
|
38824
|
-
//
|
|
38824
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/areArraysEqual.js
|
|
38825
38825
|
function areArraysEqual(array1, array2, itemComparer = (a2, b2) => a2 === b2) {
|
|
38826
38826
|
return array1.length === array2.length && array1.every((value, index2) => itemComparer(value, array2[index2]));
|
|
38827
38827
|
}
|
|
38828
38828
|
|
|
38829
|
-
//
|
|
38829
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/utils/asc.js
|
|
38830
38830
|
function asc(a2, b2) {
|
|
38831
38831
|
return a2 - b2;
|
|
38832
38832
|
}
|
|
38833
38833
|
|
|
38834
|
-
//
|
|
38834
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/utils/replaceArrayItemAtIndex.js
|
|
38835
38835
|
function replaceArrayItemAtIndex(array, index2, newValue) {
|
|
38836
38836
|
const output = array.slice();
|
|
38837
38837
|
output[index2] = newValue;
|
|
38838
38838
|
return output.sort(asc);
|
|
38839
38839
|
}
|
|
38840
38840
|
|
|
38841
|
-
//
|
|
38841
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/utils/getSliderValue.js
|
|
38842
38842
|
function getSliderValue(valueInput, index2, min2, max2, range, values) {
|
|
38843
38843
|
let newValue = valueInput;
|
|
38844
38844
|
newValue = clamp3(newValue, min2, max2);
|
|
@@ -38853,7 +38853,7 @@ function getSliderValue(valueInput, index2, min2, max2, range, values) {
|
|
|
38853
38853
|
return newValue;
|
|
38854
38854
|
}
|
|
38855
38855
|
|
|
38856
|
-
//
|
|
38856
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/utils/validateMinimumDistance.js
|
|
38857
38857
|
function validateMinimumDistance(values, step, minStepsBetweenValues) {
|
|
38858
38858
|
if (!Array.isArray(values)) {
|
|
38859
38859
|
return true;
|
|
@@ -38868,7 +38868,7 @@ function validateMinimumDistance(values, step, minStepsBetweenValues) {
|
|
|
38868
38868
|
return Math.min(...distances) >= step * minStepsBetweenValues;
|
|
38869
38869
|
}
|
|
38870
38870
|
|
|
38871
|
-
//
|
|
38871
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/root/stateAttributesMapping.js
|
|
38872
38872
|
var sliderStateAttributesMapping = {
|
|
38873
38873
|
activeThumbIndex: () => null,
|
|
38874
38874
|
max: () => null,
|
|
@@ -38878,7 +38878,7 @@ var sliderStateAttributesMapping = {
|
|
|
38878
38878
|
values: () => null
|
|
38879
38879
|
};
|
|
38880
38880
|
|
|
38881
|
-
//
|
|
38881
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/root/SliderRootContext.js
|
|
38882
38882
|
import * as React205 from "react";
|
|
38883
38883
|
var SliderRootContext = /* @__PURE__ */ React205.createContext(void 0);
|
|
38884
38884
|
if (process.env.NODE_ENV !== "production") SliderRootContext.displayName = "SliderRootContext";
|
|
@@ -38890,7 +38890,7 @@ function useSliderRootContext() {
|
|
|
38890
38890
|
return context;
|
|
38891
38891
|
}
|
|
38892
38892
|
|
|
38893
|
-
//
|
|
38893
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/root/SliderRoot.js
|
|
38894
38894
|
import { jsx as _jsx57 } from "react/jsx-runtime";
|
|
38895
38895
|
function getSliderChangeEventReason(event2) {
|
|
38896
38896
|
return "key" in event2 ? reason_parts_exports.keyboard : reason_parts_exports.inputChange;
|
|
@@ -39134,7 +39134,7 @@ var SliderRoot = /* @__PURE__ */ React206.forwardRef(function SliderRoot2(compon
|
|
|
39134
39134
|
});
|
|
39135
39135
|
if (process.env.NODE_ENV !== "production") SliderRoot.displayName = "SliderRoot";
|
|
39136
39136
|
|
|
39137
|
-
//
|
|
39137
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/value/SliderValue.js
|
|
39138
39138
|
import * as React207 from "react";
|
|
39139
39139
|
var SliderValue = /* @__PURE__ */ React207.forwardRef(function SliderValue2(componentProps, forwardedRef) {
|
|
39140
39140
|
const {
|
|
@@ -39190,10 +39190,10 @@ var SliderValue = /* @__PURE__ */ React207.forwardRef(function SliderValue2(comp
|
|
|
39190
39190
|
});
|
|
39191
39191
|
if (process.env.NODE_ENV !== "production") SliderValue.displayName = "SliderValue";
|
|
39192
39192
|
|
|
39193
|
-
//
|
|
39193
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/control/SliderControl.js
|
|
39194
39194
|
import * as React208 from "react";
|
|
39195
39195
|
|
|
39196
|
-
//
|
|
39196
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/utils/getMidpoint.js
|
|
39197
39197
|
function getMidpoint(element) {
|
|
39198
39198
|
const rect = element.getBoundingClientRect();
|
|
39199
39199
|
return {
|
|
@@ -39202,7 +39202,7 @@ function getMidpoint(element) {
|
|
|
39202
39202
|
};
|
|
39203
39203
|
}
|
|
39204
39204
|
|
|
39205
|
-
//
|
|
39205
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/utils/roundValueToStep.js
|
|
39206
39206
|
function getDecimalPrecision(num) {
|
|
39207
39207
|
if (Math.abs(num) < 1) {
|
|
39208
39208
|
const parts = num.toExponential().split("e-");
|
|
@@ -39217,7 +39217,7 @@ function roundValueToStep(value, step, min2) {
|
|
|
39217
39217
|
return Number(nearest.toFixed(getDecimalPrecision(step)));
|
|
39218
39218
|
}
|
|
39219
39219
|
|
|
39220
|
-
//
|
|
39220
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/utils/getPushedThumbValues.js
|
|
39221
39221
|
function getPushedThumbValues({
|
|
39222
39222
|
values,
|
|
39223
39223
|
index: index2,
|
|
@@ -39264,7 +39264,7 @@ function getPushedThumbValues({
|
|
|
39264
39264
|
return nextValues;
|
|
39265
39265
|
}
|
|
39266
39266
|
|
|
39267
|
-
//
|
|
39267
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/utils/resolveThumbCollision.js
|
|
39268
39268
|
function resolveThumbCollision({
|
|
39269
39269
|
behavior,
|
|
39270
39270
|
values,
|
|
@@ -39389,7 +39389,7 @@ function resolveThumbCollision({
|
|
|
39389
39389
|
}
|
|
39390
39390
|
}
|
|
39391
39391
|
|
|
39392
|
-
//
|
|
39392
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/control/SliderControl.js
|
|
39393
39393
|
var INTENTIONAL_DRAG_COUNT_THRESHOLD = 2;
|
|
39394
39394
|
function getControlOffset(styles2, vertical) {
|
|
39395
39395
|
if (!styles2) {
|
|
@@ -39754,7 +39754,7 @@ var SliderControl = /* @__PURE__ */ React208.forwardRef(function SliderControl2(
|
|
|
39754
39754
|
});
|
|
39755
39755
|
if (process.env.NODE_ENV !== "production") SliderControl.displayName = "SliderControl";
|
|
39756
39756
|
|
|
39757
|
-
//
|
|
39757
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/track/SliderTrack.js
|
|
39758
39758
|
import * as React209 from "react";
|
|
39759
39759
|
var SliderTrack = /* @__PURE__ */ React209.forwardRef(function SliderTrack2(componentProps, forwardedRef) {
|
|
39760
39760
|
const {
|
|
@@ -39779,10 +39779,10 @@ var SliderTrack = /* @__PURE__ */ React209.forwardRef(function SliderTrack2(comp
|
|
|
39779
39779
|
});
|
|
39780
39780
|
if (process.env.NODE_ENV !== "production") SliderTrack.displayName = "SliderTrack";
|
|
39781
39781
|
|
|
39782
|
-
//
|
|
39782
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/thumb/SliderThumb.js
|
|
39783
39783
|
import * as React210 from "react";
|
|
39784
39784
|
|
|
39785
|
-
//
|
|
39785
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/thumb/SliderThumbDataAttributes.js
|
|
39786
39786
|
var SliderThumbDataAttributes = /* @__PURE__ */ (function(SliderThumbDataAttributes2) {
|
|
39787
39787
|
SliderThumbDataAttributes2["index"] = "data-index";
|
|
39788
39788
|
SliderThumbDataAttributes2["dragging"] = "data-dragging";
|
|
@@ -39796,10 +39796,10 @@ var SliderThumbDataAttributes = /* @__PURE__ */ (function(SliderThumbDataAttribu
|
|
|
39796
39796
|
return SliderThumbDataAttributes2;
|
|
39797
39797
|
})({});
|
|
39798
39798
|
|
|
39799
|
-
//
|
|
39799
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/thumb/prehydrationScript.min.js
|
|
39800
39800
|
var script2 = '!function(){const t=document.currentScript?.parentElement;if(!t)return;const e=t.closest("[data-base-ui-slider-control]");if(!e)return;const r=e.querySelector("[data-base-ui-slider-indicator]"),i=e.getBoundingClientRect(),n="vertical"===e.getAttribute("data-orientation")?"height":"width",o=e.querySelectorAll(\'input[type="range"]\'),l=o.length>1,s=o.length-1;let a=null,u=null;for(let t=0;t<o.length;t+=1){const e=o[t],y=parseFloat(e.getAttribute("value")??"");if(Number.isNaN(y))return;const c=e.parentElement;if(!c)return;const p=parseFloat(e.getAttribute("max")??"100"),g=parseFloat(e.getAttribute("min")??"0"),b=c?.getBoundingClientRect(),d=i[n]-b[n],m=100*(y-g)/(p-g),v=(b[n]/2+d*m/100)/i[n]*100;c.style.setProperty("--position",`${v}%`),Number.isFinite(v)&&(c.style.removeProperty("visibility"),r&&(0===t?(a=v,r.style.setProperty("--start-position",`${v}%`),l||r.style.removeProperty("visibility")):t===s&&(u=v-(a??0),r.style.setProperty("--end-position",`${v}%`),r.style.setProperty("--relative-size",`${u}%`),r.style.removeProperty("visibility"))))}}();';
|
|
39801
39801
|
|
|
39802
|
-
//
|
|
39802
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/thumb/SliderThumb.js
|
|
39803
39803
|
import { jsx as _jsx58, jsxs as _jsxs18 } from "react/jsx-runtime";
|
|
39804
39804
|
var PAGE_UP = "PageUp";
|
|
39805
39805
|
var PAGE_DOWN = "PageDown";
|
|
@@ -40105,7 +40105,7 @@ var SliderThumb = /* @__PURE__ */ React210.forwardRef(function SliderThumb2(comp
|
|
|
40105
40105
|
});
|
|
40106
40106
|
if (process.env.NODE_ENV !== "production") SliderThumb.displayName = "SliderThumb";
|
|
40107
40107
|
|
|
40108
|
-
//
|
|
40108
|
+
// ../ui/node_modules/@base-ui/react/esm/slider/indicator/SliderIndicator.js
|
|
40109
40109
|
import * as React211 from "react";
|
|
40110
40110
|
function getInsetStyles(vertical, range, start, end, renderBeforeHydration, mounted) {
|
|
40111
40111
|
const visibility = start === void 0 || range && end === void 0 ? "hidden" : void 0;
|
|
@@ -40600,7 +40600,7 @@ __insertCSS("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-st
|
|
|
40600
40600
|
// ../ui/src/components/toast.tsx
|
|
40601
40601
|
import { Fragment as Fragment15, jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
40602
40602
|
|
|
40603
|
-
//
|
|
40603
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/index.parts.js
|
|
40604
40604
|
var index_parts_exports16 = {};
|
|
40605
40605
|
__export(index_parts_exports16, {
|
|
40606
40606
|
Arrow: () => TooltipArrow,
|
|
@@ -40615,10 +40615,10 @@ __export(index_parts_exports16, {
|
|
|
40615
40615
|
createHandle: () => createTooltipHandle
|
|
40616
40616
|
});
|
|
40617
40617
|
|
|
40618
|
-
//
|
|
40618
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/root/TooltipRoot.js
|
|
40619
40619
|
import * as React215 from "react";
|
|
40620
40620
|
|
|
40621
|
-
//
|
|
40621
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/root/TooltipRootContext.js
|
|
40622
40622
|
import * as React213 from "react";
|
|
40623
40623
|
var TooltipRootContext = /* @__PURE__ */ React213.createContext(void 0);
|
|
40624
40624
|
if (process.env.NODE_ENV !== "production") TooltipRootContext.displayName = "TooltipRootContext";
|
|
@@ -40630,7 +40630,7 @@ function useTooltipRootContext(optional) {
|
|
|
40630
40630
|
return context;
|
|
40631
40631
|
}
|
|
40632
40632
|
|
|
40633
|
-
//
|
|
40633
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/store/TooltipStore.js
|
|
40634
40634
|
import * as React214 from "react";
|
|
40635
40635
|
import * as ReactDOM12 from "react-dom";
|
|
40636
40636
|
var selectors6 = {
|
|
@@ -40720,7 +40720,7 @@ function createInitialState4() {
|
|
|
40720
40720
|
};
|
|
40721
40721
|
}
|
|
40722
40722
|
|
|
40723
|
-
//
|
|
40723
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/root/TooltipRoot.js
|
|
40724
40724
|
import { jsx as _jsx59 } from "react/jsx-runtime";
|
|
40725
40725
|
function TooltipRoot(props) {
|
|
40726
40726
|
const {
|
|
@@ -40833,10 +40833,10 @@ function createTooltipEventDetails(store, reason) {
|
|
|
40833
40833
|
return details;
|
|
40834
40834
|
}
|
|
40835
40835
|
|
|
40836
|
-
//
|
|
40836
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/trigger/TooltipTrigger.js
|
|
40837
40837
|
import * as React217 from "react";
|
|
40838
40838
|
|
|
40839
|
-
//
|
|
40839
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/provider/TooltipProviderContext.js
|
|
40840
40840
|
import * as React216 from "react";
|
|
40841
40841
|
var TooltipProviderContext = /* @__PURE__ */ React216.createContext(void 0);
|
|
40842
40842
|
if (process.env.NODE_ENV !== "production") TooltipProviderContext.displayName = "TooltipProviderContext";
|
|
@@ -40844,10 +40844,10 @@ function useTooltipProviderContext() {
|
|
|
40844
40844
|
return React216.useContext(TooltipProviderContext);
|
|
40845
40845
|
}
|
|
40846
40846
|
|
|
40847
|
-
//
|
|
40847
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/utils/constants.js
|
|
40848
40848
|
var OPEN_DELAY2 = 600;
|
|
40849
40849
|
|
|
40850
|
-
//
|
|
40850
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/trigger/TooltipTrigger.js
|
|
40851
40851
|
var TooltipTrigger = /* @__PURE__ */ React217.forwardRef(function TooltipTrigger2(componentProps, forwardedRef) {
|
|
40852
40852
|
const {
|
|
40853
40853
|
className,
|
|
@@ -40939,10 +40939,10 @@ var TooltipTrigger = /* @__PURE__ */ React217.forwardRef(function TooltipTrigger
|
|
|
40939
40939
|
});
|
|
40940
40940
|
if (process.env.NODE_ENV !== "production") TooltipTrigger.displayName = "TooltipTrigger";
|
|
40941
40941
|
|
|
40942
|
-
//
|
|
40942
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/portal/TooltipPortal.js
|
|
40943
40943
|
import * as React220 from "react";
|
|
40944
40944
|
|
|
40945
|
-
//
|
|
40945
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/portal/TooltipPortalContext.js
|
|
40946
40946
|
import * as React218 from "react";
|
|
40947
40947
|
var TooltipPortalContext = /* @__PURE__ */ React218.createContext(void 0);
|
|
40948
40948
|
if (process.env.NODE_ENV !== "production") TooltipPortalContext.displayName = "TooltipPortalContext";
|
|
@@ -40954,7 +40954,7 @@ function useTooltipPortalContext() {
|
|
|
40954
40954
|
return value;
|
|
40955
40955
|
}
|
|
40956
40956
|
|
|
40957
|
-
//
|
|
40957
|
+
// ../ui/node_modules/@base-ui/react/esm/utils/FloatingPortalLite.js
|
|
40958
40958
|
import * as React219 from "react";
|
|
40959
40959
|
import * as ReactDOM13 from "react-dom";
|
|
40960
40960
|
import { jsxs as _jsxs19 } from "react/jsx-runtime";
|
|
@@ -40984,7 +40984,7 @@ var FloatingPortalLite = /* @__PURE__ */ React219.forwardRef(function FloatingPo
|
|
|
40984
40984
|
});
|
|
40985
40985
|
if (process.env.NODE_ENV !== "production") FloatingPortalLite.displayName = "FloatingPortalLite";
|
|
40986
40986
|
|
|
40987
|
-
//
|
|
40987
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/portal/TooltipPortal.js
|
|
40988
40988
|
import { jsx as _jsx60 } from "react/jsx-runtime";
|
|
40989
40989
|
var TooltipPortal = /* @__PURE__ */ React220.forwardRef(function TooltipPortal2(props, forwardedRef) {
|
|
40990
40990
|
const {
|
|
@@ -41007,10 +41007,10 @@ var TooltipPortal = /* @__PURE__ */ React220.forwardRef(function TooltipPortal2(
|
|
|
41007
41007
|
});
|
|
41008
41008
|
if (process.env.NODE_ENV !== "production") TooltipPortal.displayName = "TooltipPortal";
|
|
41009
41009
|
|
|
41010
|
-
//
|
|
41010
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/positioner/TooltipPositioner.js
|
|
41011
41011
|
import * as React222 from "react";
|
|
41012
41012
|
|
|
41013
|
-
//
|
|
41013
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/positioner/TooltipPositionerContext.js
|
|
41014
41014
|
import * as React221 from "react";
|
|
41015
41015
|
var TooltipPositionerContext = /* @__PURE__ */ React221.createContext(void 0);
|
|
41016
41016
|
if (process.env.NODE_ENV !== "production") TooltipPositionerContext.displayName = "TooltipPositionerContext";
|
|
@@ -41022,7 +41022,7 @@ function useTooltipPositionerContext() {
|
|
|
41022
41022
|
return context;
|
|
41023
41023
|
}
|
|
41024
41024
|
|
|
41025
|
-
//
|
|
41025
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/positioner/TooltipPositioner.js
|
|
41026
41026
|
import { jsx as _jsx61 } from "react/jsx-runtime";
|
|
41027
41027
|
var TooltipPositioner = /* @__PURE__ */ React222.forwardRef(function TooltipPositioner2(componentProps, forwardedRef) {
|
|
41028
41028
|
const {
|
|
@@ -41110,7 +41110,7 @@ var TooltipPositioner = /* @__PURE__ */ React222.forwardRef(function TooltipPosi
|
|
|
41110
41110
|
});
|
|
41111
41111
|
if (process.env.NODE_ENV !== "production") TooltipPositioner.displayName = "TooltipPositioner";
|
|
41112
41112
|
|
|
41113
|
-
//
|
|
41113
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/popup/TooltipPopup.js
|
|
41114
41114
|
import * as React223 from "react";
|
|
41115
41115
|
var stateAttributesMapping18 = {
|
|
41116
41116
|
...popupStateMapping,
|
|
@@ -41164,7 +41164,7 @@ var TooltipPopup = /* @__PURE__ */ React223.forwardRef(function TooltipPopup2(co
|
|
|
41164
41164
|
});
|
|
41165
41165
|
if (process.env.NODE_ENV !== "production") TooltipPopup.displayName = "TooltipPopup";
|
|
41166
41166
|
|
|
41167
|
-
//
|
|
41167
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/arrow/TooltipArrow.js
|
|
41168
41168
|
import * as React224 from "react";
|
|
41169
41169
|
var TooltipArrow = /* @__PURE__ */ React224.forwardRef(function TooltipArrow2(componentProps, forwardedRef) {
|
|
41170
41170
|
const {
|
|
@@ -41202,7 +41202,7 @@ var TooltipArrow = /* @__PURE__ */ React224.forwardRef(function TooltipArrow2(co
|
|
|
41202
41202
|
});
|
|
41203
41203
|
if (process.env.NODE_ENV !== "production") TooltipArrow.displayName = "TooltipArrow";
|
|
41204
41204
|
|
|
41205
|
-
//
|
|
41205
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/provider/TooltipProvider.js
|
|
41206
41206
|
import * as React225 from "react";
|
|
41207
41207
|
import { jsx as _jsx62 } from "react/jsx-runtime";
|
|
41208
41208
|
var TooltipProvider = function TooltipProvider2(props) {
|
|
@@ -41230,17 +41230,17 @@ var TooltipProvider = function TooltipProvider2(props) {
|
|
|
41230
41230
|
};
|
|
41231
41231
|
if (process.env.NODE_ENV !== "production") TooltipProvider.displayName = "TooltipProvider";
|
|
41232
41232
|
|
|
41233
|
-
//
|
|
41233
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/viewport/TooltipViewport.js
|
|
41234
41234
|
import * as React226 from "react";
|
|
41235
41235
|
|
|
41236
|
-
//
|
|
41236
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/viewport/TooltipViewportCssVars.js
|
|
41237
41237
|
var TooltipViewportCssVars = /* @__PURE__ */ (function(TooltipViewportCssVars2) {
|
|
41238
41238
|
TooltipViewportCssVars2["popupWidth"] = "--popup-width";
|
|
41239
41239
|
TooltipViewportCssVars2["popupHeight"] = "--popup-height";
|
|
41240
41240
|
return TooltipViewportCssVars2;
|
|
41241
41241
|
})({});
|
|
41242
41242
|
|
|
41243
|
-
//
|
|
41243
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/viewport/TooltipViewport.js
|
|
41244
41244
|
import { jsx as _jsx63, jsxs as _jsxs20 } from "react/jsx-runtime";
|
|
41245
41245
|
var stateAttributesMapping19 = {
|
|
41246
41246
|
activationDirection: (value) => value ? {
|
|
@@ -41418,7 +41418,7 @@ function calculateRelativePosition2(from, to) {
|
|
|
41418
41418
|
};
|
|
41419
41419
|
}
|
|
41420
41420
|
|
|
41421
|
-
//
|
|
41421
|
+
// ../ui/node_modules/@base-ui/react/esm/tooltip/store/TooltipHandle.js
|
|
41422
41422
|
var TooltipHandle = class {
|
|
41423
41423
|
/**
|
|
41424
41424
|
* Internal store holding the tooltip state.
|
|
@@ -42622,265 +42622,238 @@ var AuthContext = createContext62(null);
|
|
|
42622
42622
|
import { createContext as createContext63 } from "react";
|
|
42623
42623
|
var PlatformContext = createContext63(null);
|
|
42624
42624
|
|
|
42625
|
-
// src/
|
|
42626
|
-
|
|
42627
|
-
|
|
42628
|
-
|
|
42629
|
-
var
|
|
42630
|
-
var
|
|
42631
|
-
var
|
|
42632
|
-
|
|
42633
|
-
|
|
42634
|
-
|
|
42635
|
-
|
|
42625
|
+
// src/connection-url.ts
|
|
42626
|
+
var SYLPHX_PROTOCOL = "sylphx:";
|
|
42627
|
+
var DEFAULT_VERSION = "v1";
|
|
42628
|
+
var CREDENTIAL_REGEX = /^(pk|sk)_(dev|stg|prod|prev)_[a-f0-9]{32,64}$/;
|
|
42629
|
+
var VERSION_REGEX = /^v[0-9]+$/;
|
|
42630
|
+
var SLUG_REGEX = /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/;
|
|
42631
|
+
var InvalidConnectionUrlError = class _InvalidConnectionUrlError extends Error {
|
|
42632
|
+
code = "INVALID_CONNECTION_URL";
|
|
42633
|
+
constructor(message) {
|
|
42634
|
+
super(message);
|
|
42635
|
+
this.name = "InvalidConnectionUrlError";
|
|
42636
|
+
Object.setPrototypeOf(this, _InvalidConnectionUrlError.prototype);
|
|
42637
|
+
}
|
|
42636
42638
|
};
|
|
42637
|
-
function
|
|
42638
|
-
|
|
42639
|
-
if (key !== key.trim()) issues.push("whitespace");
|
|
42640
|
-
if (key.includes("\n")) issues.push("newline");
|
|
42641
|
-
if (key.includes("\r")) issues.push("carriage-return");
|
|
42642
|
-
if (key.includes(" ")) issues.push("space");
|
|
42643
|
-
if (key !== key.toLowerCase()) issues.push("uppercase-chars");
|
|
42644
|
-
return issues;
|
|
42645
|
-
}
|
|
42646
|
-
function createSanitizationWarning(keyType, issues, envVarName) {
|
|
42647
|
-
const keyTypeName = keyType === "appId" ? "App ID" : "Secret Key";
|
|
42648
|
-
return `[Sylphx] ${keyTypeName} contains ${issues.join(", ")}. This is commonly caused by Vercel CLI's 'env pull' command.
|
|
42649
|
-
|
|
42650
|
-
To fix permanently:
|
|
42651
|
-
1. Go to Vercel Dashboard \u2192 Your Project \u2192 Settings \u2192 Environment Variables
|
|
42652
|
-
2. Edit ${envVarName}
|
|
42653
|
-
3. Remove any trailing whitespace or newline characters
|
|
42654
|
-
4. Redeploy your application
|
|
42655
|
-
|
|
42656
|
-
The SDK will automatically sanitize the key, but fixing the source is recommended.`;
|
|
42657
|
-
}
|
|
42658
|
-
function createInvalidKeyError(keyType, key, envVarName) {
|
|
42659
|
-
const prefix = keyType === "appId" ? "app" : "sk";
|
|
42660
|
-
const maskedKey = key.length > 20 ? `${key.slice(0, 20)}...` : key;
|
|
42661
|
-
const formatHint = `${prefix}_(dev|stg|prod)_[identifier]`;
|
|
42662
|
-
const keyTypeName = keyType === "appId" ? "App ID" : "Secret Key";
|
|
42663
|
-
return `[Sylphx] Invalid ${keyTypeName} format.
|
|
42664
|
-
|
|
42665
|
-
Expected format: ${formatHint}
|
|
42666
|
-
Received: "${maskedKey}"
|
|
42667
|
-
|
|
42668
|
-
Please check your ${envVarName} environment variable.
|
|
42669
|
-
You can find your keys in the Sylphx Console \u2192 API Keys.
|
|
42670
|
-
|
|
42671
|
-
Common issues:
|
|
42672
|
-
\u2022 Key has uppercase characters (must be lowercase)
|
|
42673
|
-
\u2022 Key has wrong prefix (App ID: app_, Secret Key: sk_)
|
|
42674
|
-
\u2022 Key has invalid environment (must be dev, stg, or prod)
|
|
42675
|
-
\u2022 Key was copied with extra whitespace`;
|
|
42676
|
-
}
|
|
42677
|
-
function extractEnvironment(key) {
|
|
42678
|
-
const match = key.match(/^(?:app|sk)_(dev|stg|prod)_/);
|
|
42679
|
-
if (!match) return void 0;
|
|
42680
|
-
return ENV_PREFIX_MAP[match[1]];
|
|
42639
|
+
function fail(reason) {
|
|
42640
|
+
throw new InvalidConnectionUrlError(`Invalid Sylphx connection URL: ${reason}`);
|
|
42681
42641
|
}
|
|
42682
|
-
function
|
|
42683
|
-
const
|
|
42684
|
-
if (!
|
|
42685
|
-
|
|
42686
|
-
valid: false,
|
|
42687
|
-
sanitizedKey: "",
|
|
42688
|
-
error: `[Sylphx] ${keyTypeName} is required. Set ${envVarName} in your environment variables.`,
|
|
42689
|
-
issues: ["missing"]
|
|
42690
|
-
};
|
|
42691
|
-
}
|
|
42692
|
-
const issues = detectKeyIssues(key);
|
|
42693
|
-
if (pattern.test(key)) {
|
|
42694
|
-
return {
|
|
42695
|
-
valid: true,
|
|
42696
|
-
sanitizedKey: key,
|
|
42697
|
-
keyType,
|
|
42698
|
-
environment: extractEnvironment(key),
|
|
42699
|
-
issues: []
|
|
42700
|
-
};
|
|
42701
|
-
}
|
|
42702
|
-
const sanitized = key.trim().toLowerCase();
|
|
42703
|
-
if (pattern.test(sanitized)) {
|
|
42704
|
-
return {
|
|
42705
|
-
valid: true,
|
|
42706
|
-
sanitizedKey: sanitized,
|
|
42707
|
-
keyType,
|
|
42708
|
-
environment: extractEnvironment(sanitized),
|
|
42709
|
-
warning: createSanitizationWarning(keyType, issues, envVarName),
|
|
42710
|
-
issues
|
|
42711
|
-
};
|
|
42642
|
+
function parseCredential(raw) {
|
|
42643
|
+
const match = CREDENTIAL_REGEX.exec(raw);
|
|
42644
|
+
if (!match) {
|
|
42645
|
+
fail(`credential must match (pk|sk)_(dev|stg|prod|prev)_[a-f0-9]{32,64}, got "${raw}"`);
|
|
42712
42646
|
}
|
|
42713
42647
|
return {
|
|
42714
|
-
|
|
42715
|
-
|
|
42716
|
-
error: createInvalidKeyError(keyType, key, envVarName),
|
|
42717
|
-
issues: [...issues, "invalid-format"]
|
|
42648
|
+
credentialType: match[1],
|
|
42649
|
+
env: match[2]
|
|
42718
42650
|
};
|
|
42719
42651
|
}
|
|
42720
|
-
function
|
|
42721
|
-
|
|
42722
|
-
}
|
|
42723
|
-
|
|
42724
|
-
return
|
|
42652
|
+
function validateSlug(candidate) {
|
|
42653
|
+
if (!candidate || candidate.length > 63 || !SLUG_REGEX.test(candidate)) {
|
|
42654
|
+
fail(`slug "${candidate}" is not a valid DNS label (lowercase alnum + hyphens, 1-63 chars)`);
|
|
42655
|
+
}
|
|
42656
|
+
return candidate;
|
|
42725
42657
|
}
|
|
42726
|
-
function
|
|
42727
|
-
|
|
42728
|
-
|
|
42729
|
-
throw new Error(result.error);
|
|
42658
|
+
function parseConnectionUrl(url) {
|
|
42659
|
+
if (typeof url !== "string" || url.length === 0) {
|
|
42660
|
+
fail("url must be a non-empty string");
|
|
42730
42661
|
}
|
|
42731
|
-
|
|
42732
|
-
|
|
42662
|
+
let parsed;
|
|
42663
|
+
try {
|
|
42664
|
+
parsed = new URL(url);
|
|
42665
|
+
} catch {
|
|
42666
|
+
fail(`not a valid URL: "${url}"`);
|
|
42733
42667
|
}
|
|
42734
|
-
|
|
42735
|
-
}
|
|
42736
|
-
function validateSecretKey(key) {
|
|
42737
|
-
return validateKeyForType(key, "secret", SECRET_KEY_PATTERN, "SYLPHX_SECRET_KEY");
|
|
42738
|
-
}
|
|
42739
|
-
function validateAndSanitizeSecretKey(key) {
|
|
42740
|
-
const result = validateSecretKey(key);
|
|
42741
|
-
if (!result.valid) {
|
|
42742
|
-
throw new Error(result.error);
|
|
42668
|
+
if (parsed.protocol !== SYLPHX_PROTOCOL) {
|
|
42669
|
+
fail(`protocol must be "sylphx:", got "${parsed.protocol}"`);
|
|
42743
42670
|
}
|
|
42744
|
-
|
|
42745
|
-
|
|
42671
|
+
const credential = decodeURIComponent(parsed.username);
|
|
42672
|
+
if (!credential) {
|
|
42673
|
+
fail("missing credential (expected `sylphx://<credential>@<host>`)");
|
|
42746
42674
|
}
|
|
42747
|
-
|
|
42748
|
-
|
|
42749
|
-
function detectEnvironment(key) {
|
|
42750
|
-
const sanitized = key.trim().toLowerCase();
|
|
42751
|
-
if (sanitized.startsWith("pk_")) {
|
|
42752
|
-
const result = validatePublicKey(sanitized);
|
|
42753
|
-
if (!result.valid) throw new Error(result.error);
|
|
42754
|
-
return result.environment;
|
|
42675
|
+
if (parsed.password) {
|
|
42676
|
+
fail("connection URL must not contain a password component");
|
|
42755
42677
|
}
|
|
42756
|
-
|
|
42757
|
-
|
|
42758
|
-
|
|
42759
|
-
|
|
42678
|
+
const { credentialType, env } = parseCredential(credential);
|
|
42679
|
+
const host = parsed.host;
|
|
42680
|
+
if (!host) {
|
|
42681
|
+
fail("missing host");
|
|
42760
42682
|
}
|
|
42761
|
-
|
|
42762
|
-
|
|
42763
|
-
|
|
42764
|
-
|
|
42683
|
+
const hostname = parsed.hostname;
|
|
42684
|
+
const firstDot = hostname.indexOf(".");
|
|
42685
|
+
if (firstDot <= 0) {
|
|
42686
|
+
fail(`host "${hostname}" must contain at least one dot (slug.domain)`);
|
|
42765
42687
|
}
|
|
42766
|
-
|
|
42767
|
-
|
|
42768
|
-
)
|
|
42769
|
-
}
|
|
42770
|
-
function isDevelopmentKey(key) {
|
|
42771
|
-
return detectEnvironment(key) === "development";
|
|
42772
|
-
}
|
|
42773
|
-
function isProductionKey(key) {
|
|
42774
|
-
return detectEnvironment(key) === "production";
|
|
42775
|
-
}
|
|
42776
|
-
function getCookieNamespace(secretKey) {
|
|
42777
|
-
const env = detectEnvironment(secretKey);
|
|
42778
|
-
const shortEnv = env === "development" ? "dev" : env === "staging" ? "stg" : "prod";
|
|
42779
|
-
return `sylphx_${shortEnv}`;
|
|
42780
|
-
}
|
|
42781
|
-
function detectKeyType(key) {
|
|
42782
|
-
const sanitized = key.trim().toLowerCase();
|
|
42783
|
-
if (sanitized.startsWith("pk_")) return "publicKey";
|
|
42784
|
-
if (sanitized.startsWith("app_")) return "appId";
|
|
42785
|
-
if (sanitized.startsWith("sk_")) return "secret";
|
|
42786
|
-
return null;
|
|
42787
|
-
}
|
|
42788
|
-
function isAppId(key) {
|
|
42789
|
-
return detectKeyType(key) === "appId";
|
|
42790
|
-
}
|
|
42791
|
-
function isSecretKey(key) {
|
|
42792
|
-
return detectKeyType(key) === "secret";
|
|
42793
|
-
}
|
|
42794
|
-
function validateKey(key) {
|
|
42795
|
-
const keyType = key ? detectKeyType(key) : null;
|
|
42796
|
-
if (keyType === "publicKey") {
|
|
42797
|
-
return validatePublicKey(key);
|
|
42688
|
+
const slugCandidate = hostname.slice(0, firstDot);
|
|
42689
|
+
const domainSuffix = hostname.slice(firstDot + 1);
|
|
42690
|
+
if (!domainSuffix) {
|
|
42691
|
+
fail(`host "${hostname}" has empty domain suffix`);
|
|
42798
42692
|
}
|
|
42799
|
-
|
|
42800
|
-
|
|
42693
|
+
const slug = validateSlug(slugCandidate);
|
|
42694
|
+
const rawPath = parsed.pathname.replace(/^\/+/, "").replace(/\/+$/, "");
|
|
42695
|
+
let version2 = DEFAULT_VERSION;
|
|
42696
|
+
if (rawPath !== "") {
|
|
42697
|
+
if (!VERSION_REGEX.test(rawPath)) {
|
|
42698
|
+
fail(`path "${parsed.pathname}" must be empty or match /v{N}`);
|
|
42699
|
+
}
|
|
42700
|
+
version2 = rawPath;
|
|
42801
42701
|
}
|
|
42802
|
-
if (
|
|
42803
|
-
|
|
42702
|
+
if (parsed.search) {
|
|
42703
|
+
fail("connection URL must not contain a query string");
|
|
42804
42704
|
}
|
|
42705
|
+
if (parsed.hash) {
|
|
42706
|
+
fail("connection URL must not contain a fragment");
|
|
42707
|
+
}
|
|
42708
|
+
const apiBaseUrl = `https://${host}/${version2}`;
|
|
42805
42709
|
return {
|
|
42806
|
-
|
|
42807
|
-
|
|
42808
|
-
|
|
42809
|
-
|
|
42710
|
+
credential,
|
|
42711
|
+
credentialType,
|
|
42712
|
+
env,
|
|
42713
|
+
slug,
|
|
42714
|
+
host,
|
|
42715
|
+
apiBaseUrl
|
|
42810
42716
|
};
|
|
42811
42717
|
}
|
|
42812
|
-
|
|
42813
|
-
|
|
42814
|
-
|
|
42815
|
-
|
|
42816
|
-
|
|
42817
|
-
|
|
42818
|
-
|
|
42819
|
-
|
|
42820
|
-
|
|
42821
|
-
}
|
|
42822
|
-
function isDevelopmentRuntime() {
|
|
42823
|
-
if (typeof process !== "undefined" && process.env) {
|
|
42824
|
-
return process.env.NODE_ENV === "development";
|
|
42718
|
+
|
|
42719
|
+
// src/config.ts
|
|
42720
|
+
init_constants();
|
|
42721
|
+
var LEGACY_EMBEDDED_REF_PATTERN = /^(pk|sk)_(dev|stg|prod|prev)_[a-z0-9]{12}_[a-f0-9]+$/;
|
|
42722
|
+
var LEGACY_APP_KEY_PATTERN = /^app_(dev|stg|prod|prev)_/;
|
|
42723
|
+
var MIGRATION_MESSAGE = "API key format has changed. Use a sylphx:// connection URL instead.\n\nNew format: sylphx://pk_prod_{hex}@your-slug.sylphx.com\n\nGenerate new credentials from the Sylphx Console \u2192 Your App \u2192 Environments.\nSee https://docs.sylphx.com/migration for details.";
|
|
42724
|
+
function rejectLegacyKeyFormat(input) {
|
|
42725
|
+
const trimmed = input.trim().toLowerCase();
|
|
42726
|
+
if (LEGACY_APP_KEY_PATTERN.test(trimmed)) {
|
|
42727
|
+
throw new SylphxError(`[Sylphx] ${MIGRATION_MESSAGE}`, { code: "BAD_REQUEST" });
|
|
42825
42728
|
}
|
|
42826
|
-
if (
|
|
42827
|
-
|
|
42729
|
+
if (LEGACY_EMBEDDED_REF_PATTERN.test(trimmed)) {
|
|
42730
|
+
throw new SylphxError(`[Sylphx] ${MIGRATION_MESSAGE}`, { code: "BAD_REQUEST" });
|
|
42828
42731
|
}
|
|
42829
|
-
return false;
|
|
42830
42732
|
}
|
|
42831
|
-
|
|
42832
|
-
|
|
42833
|
-
|
|
42834
|
-
|
|
42835
|
-
|
|
42733
|
+
function freezeConfig(opts) {
|
|
42734
|
+
return Object.freeze({
|
|
42735
|
+
credential: opts.credential,
|
|
42736
|
+
credentialType: opts.credentialType,
|
|
42737
|
+
env: opts.env,
|
|
42738
|
+
slug: opts.slug,
|
|
42739
|
+
baseUrl: opts.baseUrl,
|
|
42740
|
+
accessToken: opts.accessToken,
|
|
42741
|
+
// Backward-compat aliases
|
|
42742
|
+
secretKey: opts.credentialType === "sk" ? opts.credential : void 0,
|
|
42743
|
+
publicKey: opts.credentialType === "pk" ? opts.credential : void 0,
|
|
42744
|
+
ref: opts.slug
|
|
42745
|
+
});
|
|
42746
|
+
}
|
|
42747
|
+
function createClient(input) {
|
|
42748
|
+
if (typeof input === "string") {
|
|
42749
|
+
return createConfigFromUrl(input);
|
|
42750
|
+
}
|
|
42751
|
+
return createConfigFromComponents(input);
|
|
42752
|
+
}
|
|
42753
|
+
function createConfigFromUrl(url) {
|
|
42754
|
+
if (!url || typeof url !== "string") {
|
|
42836
42755
|
throw new SylphxError(
|
|
42837
|
-
"[Sylphx]
|
|
42756
|
+
"[Sylphx] Connection URL is required. Set SYLPHX_URL or NEXT_PUBLIC_SYLPHX_URL environment variable.\n\nFormat: sylphx://pk_prod_{hex}@your-slug.sylphx.com",
|
|
42838
42757
|
{ code: "BAD_REQUEST" }
|
|
42839
42758
|
);
|
|
42840
42759
|
}
|
|
42841
|
-
const
|
|
42842
|
-
|
|
42760
|
+
const trimmed = url.trim();
|
|
42761
|
+
rejectLegacyKeyFormat(trimmed);
|
|
42762
|
+
if (!trimmed.startsWith("sylphx://")) {
|
|
42763
|
+
if (CREDENTIAL_REGEX.test(trimmed)) {
|
|
42764
|
+
throw new SylphxError(
|
|
42765
|
+
"[Sylphx] Received a bare credential instead of a connection URL.\n\nWrap it in a connection URL: sylphx://<credential>@<slug>.sylphx.com\nOr use createClient({ slug, publicKey }) for explicit components.",
|
|
42766
|
+
{ code: "BAD_REQUEST" }
|
|
42767
|
+
);
|
|
42768
|
+
}
|
|
42843
42769
|
throw new SylphxError(
|
|
42844
|
-
`[Sylphx] Invalid
|
|
42770
|
+
`[Sylphx] Invalid connection URL \u2014 must start with "sylphx://". Got: "${trimmed.slice(0, 30)}..."`,
|
|
42845
42771
|
{ code: "BAD_REQUEST" }
|
|
42846
42772
|
);
|
|
42847
42773
|
}
|
|
42848
|
-
|
|
42849
|
-
|
|
42850
|
-
|
|
42851
|
-
|
|
42852
|
-
|
|
42853
|
-
|
|
42774
|
+
let parsed;
|
|
42775
|
+
try {
|
|
42776
|
+
parsed = parseConnectionUrl(trimmed);
|
|
42777
|
+
} catch (err) {
|
|
42778
|
+
if (err instanceof InvalidConnectionUrlError) {
|
|
42779
|
+
throw new SylphxError(err.message, { code: "BAD_REQUEST", cause: err });
|
|
42780
|
+
}
|
|
42781
|
+
throw err;
|
|
42854
42782
|
}
|
|
42855
|
-
|
|
42856
|
-
|
|
42857
|
-
|
|
42858
|
-
|
|
42859
|
-
|
|
42860
|
-
|
|
42783
|
+
return freezeConfig({
|
|
42784
|
+
credential: parsed.credential,
|
|
42785
|
+
credentialType: parsed.credentialType,
|
|
42786
|
+
env: parsed.env,
|
|
42787
|
+
slug: parsed.slug,
|
|
42788
|
+
baseUrl: parsed.apiBaseUrl
|
|
42789
|
+
});
|
|
42790
|
+
}
|
|
42791
|
+
function createConfigFromComponents(input) {
|
|
42792
|
+
const credential = input.secretKey || input.publicKey;
|
|
42793
|
+
if (!credential) {
|
|
42794
|
+
throw new SylphxError("[Sylphx] Either publicKey or secretKey must be provided.", {
|
|
42795
|
+
code: "BAD_REQUEST"
|
|
42796
|
+
});
|
|
42861
42797
|
}
|
|
42862
|
-
|
|
42863
|
-
|
|
42864
|
-
|
|
42865
|
-
|
|
42866
|
-
);
|
|
42798
|
+
const resolvedSlug = input.slug || input.ref;
|
|
42799
|
+
if (!resolvedSlug) {
|
|
42800
|
+
throw new SylphxError("[Sylphx] slug is required when using explicit components.", {
|
|
42801
|
+
code: "BAD_REQUEST"
|
|
42802
|
+
});
|
|
42867
42803
|
}
|
|
42868
|
-
const
|
|
42869
|
-
if (
|
|
42870
|
-
|
|
42871
|
-
|
|
42872
|
-
|
|
42873
|
-
);
|
|
42804
|
+
const trimmedCred = credential.trim().toLowerCase();
|
|
42805
|
+
if (CREDENTIAL_REGEX.test(trimmedCred)) {
|
|
42806
|
+
const match = CREDENTIAL_REGEX.exec(trimmedCred);
|
|
42807
|
+
const credentialType = match[1];
|
|
42808
|
+
const env = match[2];
|
|
42809
|
+
const slug = resolvedSlug.trim().toLowerCase();
|
|
42810
|
+
const domain = input.domain?.trim() || "sylphx.com";
|
|
42811
|
+
const baseUrl = `https://${slug}.${domain}/v1`;
|
|
42812
|
+
return freezeConfig({
|
|
42813
|
+
credential: trimmedCred,
|
|
42814
|
+
credentialType,
|
|
42815
|
+
env,
|
|
42816
|
+
slug,
|
|
42817
|
+
baseUrl,
|
|
42818
|
+
accessToken: input.accessToken
|
|
42819
|
+
});
|
|
42874
42820
|
}
|
|
42875
|
-
|
|
42876
|
-
|
|
42877
|
-
|
|
42878
|
-
|
|
42879
|
-
|
|
42880
|
-
|
|
42881
|
-
|
|
42882
|
-
|
|
42821
|
+
const parts = trimmedCred.split("_");
|
|
42822
|
+
const prefix = parts[0];
|
|
42823
|
+
if ((prefix === "pk" || prefix === "sk") && parts.length >= 3) {
|
|
42824
|
+
const envSegment = parts[1];
|
|
42825
|
+
const validEnvs = ["dev", "stg", "prod", "prev"];
|
|
42826
|
+
const env = validEnvs.includes(envSegment) ? envSegment : "prod";
|
|
42827
|
+
const slug = resolvedSlug.trim().toLowerCase();
|
|
42828
|
+
let baseUrl;
|
|
42829
|
+
if (input.platformUrl) {
|
|
42830
|
+
const platform3 = input.platformUrl.trim().replace(/\/$/, "");
|
|
42831
|
+
baseUrl = platform3.includes("/v1") ? platform3 : `${platform3}/v1`;
|
|
42832
|
+
} else {
|
|
42833
|
+
const domain = input.domain?.trim() || "api.sylphx.com";
|
|
42834
|
+
baseUrl = `https://${slug}.${domain}/v1`;
|
|
42835
|
+
}
|
|
42836
|
+
return freezeConfig({
|
|
42837
|
+
credential: trimmedCred,
|
|
42838
|
+
credentialType: prefix,
|
|
42839
|
+
env,
|
|
42840
|
+
slug,
|
|
42841
|
+
baseUrl,
|
|
42842
|
+
accessToken: input.accessToken
|
|
42843
|
+
});
|
|
42844
|
+
}
|
|
42845
|
+
throw new SylphxError(
|
|
42846
|
+
`[Sylphx] Invalid credential format. Expected (pk|sk)_(dev|stg|prod|prev)_[a-f0-9]{32,64}. Got: "${trimmedCred.slice(0, 30)}..."`,
|
|
42847
|
+
{ code: "BAD_REQUEST" }
|
|
42848
|
+
);
|
|
42849
|
+
}
|
|
42850
|
+
function withToken(config2, accessToken) {
|
|
42851
|
+
return Object.freeze({
|
|
42852
|
+
...config2,
|
|
42853
|
+
accessToken
|
|
42854
|
+
});
|
|
42883
42855
|
}
|
|
42856
|
+
var createConfig = createClient;
|
|
42884
42857
|
function httpStatusToErrorCode(status) {
|
|
42885
42858
|
switch (status) {
|
|
42886
42859
|
case 400:
|
|
@@ -42913,79 +42886,12 @@ function httpStatusToErrorCode(status) {
|
|
|
42913
42886
|
return status >= 500 ? "INTERNAL_SERVER_ERROR" : "BAD_REQUEST";
|
|
42914
42887
|
}
|
|
42915
42888
|
}
|
|
42916
|
-
var REF_PATTERN = /^[a-z0-9]{12}$/;
|
|
42917
|
-
function createConfig(input) {
|
|
42918
|
-
const keyForParsing = input.secretKey || input.publicKey;
|
|
42919
|
-
if (!keyForParsing) {
|
|
42920
|
-
if (input.ref) {
|
|
42921
|
-
const trimmedRef = input.ref.trim();
|
|
42922
|
-
if (!REF_PATTERN.test(trimmedRef)) {
|
|
42923
|
-
throw new SylphxError(
|
|
42924
|
-
`[Sylphx] Invalid project ref format: "${input.ref}". Expected a 12-character lowercase alphanumeric string (e.g. "abc123def456"). Get your ref from Platform Console \u2192 Projects \u2192 Your Project \u2192 Overview.`,
|
|
42925
|
-
{ code: "BAD_REQUEST" }
|
|
42926
|
-
);
|
|
42927
|
-
}
|
|
42928
|
-
const baseUrl2 = `https://${trimmedRef}.${DEFAULT_SDK_API_HOST}${SDK_API_PATH}`;
|
|
42929
|
-
console.warn(
|
|
42930
|
-
"[Sylphx] Providing only ref without a key is deprecated. Provide secretKey or publicKey \u2014 the ref is now embedded in keys (ADR-021)."
|
|
42931
|
-
);
|
|
42932
|
-
return Object.freeze({ ref: trimmedRef, baseUrl: baseUrl2, accessToken: input.accessToken });
|
|
42933
|
-
}
|
|
42934
|
-
throw new SylphxError(
|
|
42935
|
-
"[Sylphx] Either publicKey or secretKey must be provided to createConfig().",
|
|
42936
|
-
{ code: "BAD_REQUEST" }
|
|
42937
|
-
);
|
|
42938
|
-
}
|
|
42939
|
-
const parsed = parseKey(keyForParsing);
|
|
42940
|
-
const ref = parsed.ref;
|
|
42941
|
-
const baseUrl = parsed.baseUrl;
|
|
42942
|
-
let secretKey;
|
|
42943
|
-
if (input.secretKey) {
|
|
42944
|
-
const result = validateKey(input.secretKey);
|
|
42945
|
-
if (!result.valid) {
|
|
42946
|
-
throw new SylphxError(result.error || "Invalid secret key", {
|
|
42947
|
-
code: "BAD_REQUEST",
|
|
42948
|
-
data: { issues: result.issues }
|
|
42949
|
-
});
|
|
42950
|
-
}
|
|
42951
|
-
if (result.warning) console.warn(`[Sylphx] ${result.warning}`);
|
|
42952
|
-
secretKey = result.sanitizedKey;
|
|
42953
|
-
}
|
|
42954
|
-
let publicKey;
|
|
42955
|
-
if (input.publicKey) {
|
|
42956
|
-
const result = validateKey(input.publicKey);
|
|
42957
|
-
if (!result.valid) {
|
|
42958
|
-
throw new SylphxError(result.error || "Invalid public key", {
|
|
42959
|
-
code: "BAD_REQUEST",
|
|
42960
|
-
data: { issues: result.issues }
|
|
42961
|
-
});
|
|
42962
|
-
}
|
|
42963
|
-
if (result.warning) console.warn(`[Sylphx] ${result.warning}`);
|
|
42964
|
-
publicKey = result.sanitizedKey;
|
|
42965
|
-
}
|
|
42966
|
-
return Object.freeze({
|
|
42967
|
-
secretKey,
|
|
42968
|
-
publicKey,
|
|
42969
|
-
ref,
|
|
42970
|
-
baseUrl,
|
|
42971
|
-
accessToken: input.accessToken
|
|
42972
|
-
});
|
|
42973
|
-
}
|
|
42974
|
-
function withToken(config2, accessToken) {
|
|
42975
|
-
return Object.freeze({
|
|
42976
|
-
...config2,
|
|
42977
|
-
accessToken
|
|
42978
|
-
// Preserve baseUrl and ref from original config
|
|
42979
|
-
});
|
|
42980
|
-
}
|
|
42981
42889
|
function buildHeaders(config2) {
|
|
42982
42890
|
const headers = {
|
|
42983
42891
|
"Content-Type": "application/json"
|
|
42984
42892
|
};
|
|
42985
|
-
if (config2.
|
|
42986
|
-
headers["x-app-secret"] = config2.
|
|
42987
|
-
} else if (config2.publicKey) {
|
|
42988
|
-
headers["x-app-secret"] = config2.publicKey;
|
|
42893
|
+
if (config2.credential) {
|
|
42894
|
+
headers["x-app-secret"] = config2.credential;
|
|
42989
42895
|
}
|
|
42990
42896
|
if (config2.accessToken) {
|
|
42991
42897
|
headers.Authorization = `Bearer ${config2.accessToken}`;
|
|
@@ -43004,7 +42910,8 @@ async function callApi(config2, path, options = {}) {
|
|
|
43004
42910
|
query,
|
|
43005
42911
|
timeout = DEFAULT_TIMEOUT_MS,
|
|
43006
42912
|
signal,
|
|
43007
|
-
idempotencyKey
|
|
42913
|
+
idempotencyKey,
|
|
42914
|
+
headers: extraHeaders
|
|
43008
42915
|
} = options;
|
|
43009
42916
|
let url = buildApiUrl(config2, path);
|
|
43010
42917
|
if (query) {
|
|
@@ -43026,6 +42933,11 @@ async function callApi(config2, path, options = {}) {
|
|
|
43026
42933
|
if (idempotencyKey) {
|
|
43027
42934
|
headers["Idempotency-Key"] = idempotencyKey;
|
|
43028
42935
|
}
|
|
42936
|
+
if (extraHeaders) {
|
|
42937
|
+
for (const [k2, v2] of Object.entries(extraHeaders)) {
|
|
42938
|
+
headers[k2] = v2;
|
|
42939
|
+
}
|
|
42940
|
+
}
|
|
43029
42941
|
const fetchOptions = {
|
|
43030
42942
|
method,
|
|
43031
42943
|
headers,
|
|
@@ -43102,7 +43014,6 @@ async function callApi(config2, path, options = {}) {
|
|
|
43102
43014
|
code: "PARSE_ERROR",
|
|
43103
43015
|
cause: error2 instanceof Error ? error2 : void 0,
|
|
43104
43016
|
data: { body: text.slice(0, 200) }
|
|
43105
|
-
// Include snippet for debugging
|
|
43106
43017
|
});
|
|
43107
43018
|
}
|
|
43108
43019
|
}
|
|
@@ -53001,6 +52912,209 @@ async function linkAnonymousConsents(config2, input) {
|
|
|
53001
52912
|
// src/react/provider.tsx
|
|
53002
52913
|
init_constants();
|
|
53003
52914
|
|
|
52915
|
+
// src/key-validation.ts
|
|
52916
|
+
var PUBLIC_KEY_PATTERN = /^pk_(dev|stg|prod)_[a-z0-9]{12}_[a-f0-9]{32}$/;
|
|
52917
|
+
var APP_ID_PATTERN = /^(app|pk)_(dev|stg|prod|prev)_[a-z0-9_-]+$/;
|
|
52918
|
+
var SECRET_KEY_PATTERN = /^sk_(dev|stg|prod)_[a-z0-9_-]+$/;
|
|
52919
|
+
var ENV_PREFIX_MAP = {
|
|
52920
|
+
dev: "development",
|
|
52921
|
+
stg: "staging",
|
|
52922
|
+
prod: "production"
|
|
52923
|
+
};
|
|
52924
|
+
function detectKeyIssues(key) {
|
|
52925
|
+
const issues = [];
|
|
52926
|
+
if (key !== key.trim()) issues.push("whitespace");
|
|
52927
|
+
if (key.includes("\n")) issues.push("newline");
|
|
52928
|
+
if (key.includes("\r")) issues.push("carriage-return");
|
|
52929
|
+
if (key.includes(" ")) issues.push("space");
|
|
52930
|
+
if (key !== key.toLowerCase()) issues.push("uppercase-chars");
|
|
52931
|
+
return issues;
|
|
52932
|
+
}
|
|
52933
|
+
function createSanitizationWarning(keyType, issues, envVarName) {
|
|
52934
|
+
const keyTypeName = keyType === "appId" ? "App ID" : "Secret Key";
|
|
52935
|
+
return `[Sylphx] ${keyTypeName} contains ${issues.join(", ")}. This is commonly caused by Vercel CLI's 'env pull' command.
|
|
52936
|
+
|
|
52937
|
+
To fix permanently:
|
|
52938
|
+
1. Go to Vercel Dashboard \u2192 Your Project \u2192 Settings \u2192 Environment Variables
|
|
52939
|
+
2. Edit ${envVarName}
|
|
52940
|
+
3. Remove any trailing whitespace or newline characters
|
|
52941
|
+
4. Redeploy your application
|
|
52942
|
+
|
|
52943
|
+
The SDK will automatically sanitize the key, but fixing the source is recommended.`;
|
|
52944
|
+
}
|
|
52945
|
+
function createInvalidKeyError(keyType, key, envVarName) {
|
|
52946
|
+
const maskedKey = key.length > 20 ? `${key.slice(0, 20)}...` : key;
|
|
52947
|
+
const formatHint = keyType === "appId" ? "pk_(dev|stg|prod)_{ref}_{hex} or app_(dev|stg|prod)_[id]" : "sk_(dev|stg|prod)_{ref}_{hex}";
|
|
52948
|
+
const keyTypeName = keyType === "appId" ? "App ID" : "Secret Key";
|
|
52949
|
+
return `[Sylphx] Invalid ${keyTypeName} format.
|
|
52950
|
+
|
|
52951
|
+
Expected format: ${formatHint}
|
|
52952
|
+
Received: "${maskedKey}"
|
|
52953
|
+
|
|
52954
|
+
Please check your ${envVarName} environment variable.
|
|
52955
|
+
You can find your keys in the Sylphx Console \u2192 API Keys.
|
|
52956
|
+
|
|
52957
|
+
Common issues:
|
|
52958
|
+
\u2022 Key has uppercase characters (must be lowercase)
|
|
52959
|
+
\u2022 Key has wrong prefix (App ID: pk_ or app_, Secret Key: sk_)
|
|
52960
|
+
\u2022 Key has invalid environment (must be dev, stg, or prod)
|
|
52961
|
+
\u2022 Key was copied with extra whitespace`;
|
|
52962
|
+
}
|
|
52963
|
+
function extractEnvironment(key) {
|
|
52964
|
+
const match = key.match(/^(?:app|pk|sk)_(dev|stg|prod|prev)_/);
|
|
52965
|
+
if (!match) return void 0;
|
|
52966
|
+
return ENV_PREFIX_MAP[match[1]];
|
|
52967
|
+
}
|
|
52968
|
+
function validateKeyForType(key, keyType, pattern, envVarName) {
|
|
52969
|
+
const keyTypeName = keyType === "appId" ? "App ID" : "Secret Key";
|
|
52970
|
+
if (!key) {
|
|
52971
|
+
return {
|
|
52972
|
+
valid: false,
|
|
52973
|
+
sanitizedKey: "",
|
|
52974
|
+
error: `[Sylphx] ${keyTypeName} is required. Set ${envVarName} in your environment variables.`,
|
|
52975
|
+
issues: ["missing"]
|
|
52976
|
+
};
|
|
52977
|
+
}
|
|
52978
|
+
const issues = detectKeyIssues(key);
|
|
52979
|
+
if (pattern.test(key)) {
|
|
52980
|
+
return {
|
|
52981
|
+
valid: true,
|
|
52982
|
+
sanitizedKey: key,
|
|
52983
|
+
keyType,
|
|
52984
|
+
environment: extractEnvironment(key),
|
|
52985
|
+
issues: []
|
|
52986
|
+
};
|
|
52987
|
+
}
|
|
52988
|
+
const sanitized = key.trim().toLowerCase();
|
|
52989
|
+
if (pattern.test(sanitized)) {
|
|
52990
|
+
return {
|
|
52991
|
+
valid: true,
|
|
52992
|
+
sanitizedKey: sanitized,
|
|
52993
|
+
keyType,
|
|
52994
|
+
environment: extractEnvironment(sanitized),
|
|
52995
|
+
warning: createSanitizationWarning(keyType, issues, envVarName),
|
|
52996
|
+
issues
|
|
52997
|
+
};
|
|
52998
|
+
}
|
|
52999
|
+
return {
|
|
53000
|
+
valid: false,
|
|
53001
|
+
sanitizedKey: "",
|
|
53002
|
+
error: createInvalidKeyError(keyType, key, envVarName),
|
|
53003
|
+
issues: [...issues, "invalid-format"]
|
|
53004
|
+
};
|
|
53005
|
+
}
|
|
53006
|
+
function validatePublicKey(key) {
|
|
53007
|
+
return validateKeyForType(key, "publicKey", PUBLIC_KEY_PATTERN, "NEXT_PUBLIC_SYLPHX_KEY");
|
|
53008
|
+
}
|
|
53009
|
+
function validateAppId(key) {
|
|
53010
|
+
return validateKeyForType(key, "appId", APP_ID_PATTERN, "NEXT_PUBLIC_SYLPHX_APP_ID");
|
|
53011
|
+
}
|
|
53012
|
+
function validateAndSanitizeAppId(key) {
|
|
53013
|
+
const result = validateAppId(key);
|
|
53014
|
+
if (!result.valid) {
|
|
53015
|
+
throw new Error(result.error);
|
|
53016
|
+
}
|
|
53017
|
+
if (result.warning) {
|
|
53018
|
+
console.warn(result.warning);
|
|
53019
|
+
}
|
|
53020
|
+
return result.sanitizedKey;
|
|
53021
|
+
}
|
|
53022
|
+
function validateSecretKey(key) {
|
|
53023
|
+
return validateKeyForType(key, "secret", SECRET_KEY_PATTERN, "SYLPHX_SECRET_KEY");
|
|
53024
|
+
}
|
|
53025
|
+
function validateAndSanitizeSecretKey(key) {
|
|
53026
|
+
const result = validateSecretKey(key);
|
|
53027
|
+
if (!result.valid) {
|
|
53028
|
+
throw new Error(result.error);
|
|
53029
|
+
}
|
|
53030
|
+
if (result.warning) {
|
|
53031
|
+
console.warn(result.warning);
|
|
53032
|
+
}
|
|
53033
|
+
return result.sanitizedKey;
|
|
53034
|
+
}
|
|
53035
|
+
function detectEnvironment(key) {
|
|
53036
|
+
const sanitized = key.trim().toLowerCase();
|
|
53037
|
+
if (sanitized.startsWith("pk_")) {
|
|
53038
|
+
const result = validatePublicKey(sanitized);
|
|
53039
|
+
if (!result.valid) throw new Error(result.error);
|
|
53040
|
+
return result.environment;
|
|
53041
|
+
}
|
|
53042
|
+
if (sanitized.startsWith("sk_")) {
|
|
53043
|
+
const result = validateSecretKey(sanitized);
|
|
53044
|
+
if (!result.valid) throw new Error(result.error);
|
|
53045
|
+
return result.environment;
|
|
53046
|
+
}
|
|
53047
|
+
if (sanitized.startsWith("app_")) {
|
|
53048
|
+
const result = validateAppId(sanitized);
|
|
53049
|
+
if (!result.valid) throw new Error(result.error);
|
|
53050
|
+
return result.environment;
|
|
53051
|
+
}
|
|
53052
|
+
throw new Error(
|
|
53053
|
+
`[Sylphx] Invalid key format. Key must start with 'pk_' (publishable), 'sk_' (secret), or 'app_' (legacy App ID).`
|
|
53054
|
+
);
|
|
53055
|
+
}
|
|
53056
|
+
function isDevelopmentKey(key) {
|
|
53057
|
+
return detectEnvironment(key) === "development";
|
|
53058
|
+
}
|
|
53059
|
+
function isProductionKey(key) {
|
|
53060
|
+
return detectEnvironment(key) === "production";
|
|
53061
|
+
}
|
|
53062
|
+
function getCookieNamespace(secretKey) {
|
|
53063
|
+
const env = detectEnvironment(secretKey);
|
|
53064
|
+
const shortEnv = env === "development" ? "dev" : env === "staging" ? "stg" : "prod";
|
|
53065
|
+
return `sylphx_${shortEnv}`;
|
|
53066
|
+
}
|
|
53067
|
+
function detectKeyType(key) {
|
|
53068
|
+
const sanitized = key.trim().toLowerCase();
|
|
53069
|
+
if (sanitized.startsWith("pk_")) return "publicKey";
|
|
53070
|
+
if (sanitized.startsWith("app_")) return "appId";
|
|
53071
|
+
if (sanitized.startsWith("sk_")) return "secret";
|
|
53072
|
+
return null;
|
|
53073
|
+
}
|
|
53074
|
+
function isAppId(key) {
|
|
53075
|
+
return detectKeyType(key) === "appId";
|
|
53076
|
+
}
|
|
53077
|
+
function isSecretKey(key) {
|
|
53078
|
+
return detectKeyType(key) === "secret";
|
|
53079
|
+
}
|
|
53080
|
+
function validateKey(key) {
|
|
53081
|
+
const keyType = key ? detectKeyType(key) : null;
|
|
53082
|
+
if (keyType === "publicKey") {
|
|
53083
|
+
return validatePublicKey(key);
|
|
53084
|
+
}
|
|
53085
|
+
if (keyType === "appId") {
|
|
53086
|
+
return validateAppId(key);
|
|
53087
|
+
}
|
|
53088
|
+
if (keyType === "secret") {
|
|
53089
|
+
return validateSecretKey(key);
|
|
53090
|
+
}
|
|
53091
|
+
return {
|
|
53092
|
+
valid: false,
|
|
53093
|
+
sanitizedKey: "",
|
|
53094
|
+
error: key ? `Invalid key format. Keys must start with 'pk_' (publishable), 'app_' (legacy), or 'sk_' (secret), followed by environment (dev/stg/prod). Got: ${key.slice(0, 20)}...` : "API key is required but was not provided.",
|
|
53095
|
+
issues: key ? ["invalid_format"] : ["missing"]
|
|
53096
|
+
};
|
|
53097
|
+
}
|
|
53098
|
+
function validateAndSanitizeKey(key) {
|
|
53099
|
+
const result = validateKey(key);
|
|
53100
|
+
if (!result.valid) {
|
|
53101
|
+
throw new Error(result.error);
|
|
53102
|
+
}
|
|
53103
|
+
if (result.warning) {
|
|
53104
|
+
console.warn(`[Sylphx] ${result.warning}`);
|
|
53105
|
+
}
|
|
53106
|
+
return result.sanitizedKey;
|
|
53107
|
+
}
|
|
53108
|
+
function isDevelopmentRuntime() {
|
|
53109
|
+
if (typeof process !== "undefined" && process.env) {
|
|
53110
|
+
return process.env.NODE_ENV === "development";
|
|
53111
|
+
}
|
|
53112
|
+
if (typeof window !== "undefined") {
|
|
53113
|
+
return window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1";
|
|
53114
|
+
}
|
|
53115
|
+
return false;
|
|
53116
|
+
}
|
|
53117
|
+
|
|
53004
53118
|
// src/react/context-values/ai.ts
|
|
53005
53119
|
init_constants();
|
|
53006
53120
|
function inferProviderFromModelId(modelId) {
|
|
@@ -69349,7 +69463,7 @@ var ErrorTracker = class {
|
|
|
69349
69463
|
},
|
|
69350
69464
|
sdk: {
|
|
69351
69465
|
name: "sylphx-runtime",
|
|
69352
|
-
version: "
|
|
69466
|
+
version: "0.5.0",
|
|
69353
69467
|
integrations: this.getIntegrations()
|
|
69354
69468
|
}
|
|
69355
69469
|
};
|
|
@@ -69407,7 +69521,7 @@ var ErrorTracker = class {
|
|
|
69407
69521
|
},
|
|
69408
69522
|
sdk: {
|
|
69409
69523
|
name: "sylphx-runtime",
|
|
69410
|
-
version: "
|
|
69524
|
+
version: "0.5.0"
|
|
69411
69525
|
}
|
|
69412
69526
|
};
|
|
69413
69527
|
const processedEvent = this.config.beforeSend ? this.config.beforeSend(event2) : event2;
|
|
@@ -76986,7 +77100,7 @@ function createDestinationRouter(config2) {
|
|
|
76986
77100
|
properties: {
|
|
76987
77101
|
...properties,
|
|
76988
77102
|
$lib: "@sylphx/sdk",
|
|
76989
|
-
$lib_version: "
|
|
77103
|
+
$lib_version: "0.5.0"
|
|
76990
77104
|
},
|
|
76991
77105
|
distinct_id: distinctId,
|
|
76992
77106
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -77623,7 +77737,7 @@ var AnalyticsTracker = class {
|
|
|
77623
77737
|
distinct_id: this.getDistinctId(),
|
|
77624
77738
|
timestamp,
|
|
77625
77739
|
$lib: "sylphx-runtime",
|
|
77626
|
-
$lib_version: "
|
|
77740
|
+
$lib_version: "0.5.0"
|
|
77627
77741
|
};
|
|
77628
77742
|
}
|
|
77629
77743
|
// ==========================================
|
|
@@ -78506,6 +78620,14 @@ var StepSleepSignal = class {
|
|
|
78506
78620
|
}
|
|
78507
78621
|
_isStepSleepSignal = true;
|
|
78508
78622
|
};
|
|
78623
|
+
var StepWaitEventSignal = class {
|
|
78624
|
+
constructor(stepName, eventName, options = {}) {
|
|
78625
|
+
this.stepName = stepName;
|
|
78626
|
+
this.eventName = eventName;
|
|
78627
|
+
this.options = options;
|
|
78628
|
+
}
|
|
78629
|
+
_isStepWaitEventSignal = true;
|
|
78630
|
+
};
|
|
78509
78631
|
function createStepContext(completedSteps, resolvedWaits) {
|
|
78510
78632
|
return {
|
|
78511
78633
|
/**
|
|
@@ -78532,6 +78654,32 @@ function createStepContext(completedSteps, resolvedWaits) {
|
|
|
78532
78654
|
return;
|
|
78533
78655
|
}
|
|
78534
78656
|
throw new StepSleepSignal(name, duration2);
|
|
78657
|
+
},
|
|
78658
|
+
/**
|
|
78659
|
+
* Pause execution until a named event is published via TriggersClient.publishEvent().
|
|
78660
|
+
*
|
|
78661
|
+
* - If event already arrived (platform re-dispatched with result): return event payload.
|
|
78662
|
+
* - If not yet arrived: throw StepWaitEventSignal to pause execution.
|
|
78663
|
+
*
|
|
78664
|
+
* @param name Step identifier (unique within handler).
|
|
78665
|
+
* @param eventName The event name to listen for (e.g. 'user.approved').
|
|
78666
|
+
* @param options Optional timeout ('24h', '7d') and payload filter.
|
|
78667
|
+
*
|
|
78668
|
+
* @example Human-in-the-loop approval
|
|
78669
|
+
* ```typescript
|
|
78670
|
+
* const approval = await step.waitForEvent('wait-approval', 'order.approved', {
|
|
78671
|
+
* timeout: '48h',
|
|
78672
|
+
* filter: { orderId: payload.orderId },
|
|
78673
|
+
* })
|
|
78674
|
+
* if (!approval) throw new Error('Approval timed out')
|
|
78675
|
+
* await sendConfirmation(approval.approvedBy)
|
|
78676
|
+
* ```
|
|
78677
|
+
*/
|
|
78678
|
+
async waitForEvent(name, eventName, options = {}) {
|
|
78679
|
+
if (resolvedWaits.has(name)) {
|
|
78680
|
+
return resolvedWaits.get(name) ?? null;
|
|
78681
|
+
}
|
|
78682
|
+
throw new StepWaitEventSignal(name, eventName, options);
|
|
78535
78683
|
}
|
|
78536
78684
|
};
|
|
78537
78685
|
}
|
|
@@ -78611,9 +78759,9 @@ function createTasksHandler(taskDefs, options = {}) {
|
|
|
78611
78759
|
for (const step of context?.steps ?? []) {
|
|
78612
78760
|
completedSteps.set(step.name, step.result);
|
|
78613
78761
|
}
|
|
78614
|
-
const resolvedWaits = /* @__PURE__ */ new
|
|
78762
|
+
const resolvedWaits = /* @__PURE__ */ new Map();
|
|
78615
78763
|
for (const wait2 of context?.waits ?? []) {
|
|
78616
|
-
resolvedWaits.
|
|
78764
|
+
resolvedWaits.set(wait2.name, wait2.result ?? void 0);
|
|
78617
78765
|
}
|
|
78618
78766
|
const stepCtx = createStepContext(completedSteps, resolvedWaits);
|
|
78619
78767
|
try {
|
|
@@ -78636,6 +78784,16 @@ function createTasksHandler(taskDefs, options = {}) {
|
|
|
78636
78784
|
duration: signal.duration
|
|
78637
78785
|
});
|
|
78638
78786
|
}
|
|
78787
|
+
if (err instanceof StepWaitEventSignal || err?._isStepWaitEventSignal) {
|
|
78788
|
+
const signal = err;
|
|
78789
|
+
return Response.json({
|
|
78790
|
+
status: "step_wait_event",
|
|
78791
|
+
stepName: signal.stepName,
|
|
78792
|
+
eventName: signal.eventName,
|
|
78793
|
+
timeout: signal.options.timeout ?? null,
|
|
78794
|
+
filter: signal.options.filter ?? null
|
|
78795
|
+
});
|
|
78796
|
+
}
|
|
78639
78797
|
const message = err instanceof Error ? err.message : String(err);
|
|
78640
78798
|
console.error(`[sylphx/tasks] Task "${taskName}" threw an error:`, err);
|
|
78641
78799
|
return Response.json(
|