@umami/react-zen 0.12.0 → 0.14.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.js CHANGED
@@ -72,7 +72,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
72
72
  return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
73
73
  }
74
74
  var objectIs = typeof Object.is === "function" ? Object.is : is;
75
- var useState15 = React19.useState, useEffect11 = React19.useEffect, useLayoutEffect3 = React19.useLayoutEffect, useDebugValue2 = React19.useDebugValue;
75
+ var useState15 = React19.useState, useEffect12 = React19.useEffect, useLayoutEffect3 = React19.useLayoutEffect, useDebugValue2 = React19.useDebugValue;
76
76
  var didWarnOld18Alpha = false;
77
77
  var didWarnUncachedGetSnapshot = false;
78
78
  function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
@@ -109,7 +109,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
109
109
  });
110
110
  }
111
111
  }, [subscribe, value, getSnapshot]);
112
- useEffect11(function() {
112
+ useEffect12(function() {
113
113
  if (checkIfSnapshotChanged(inst)) {
114
114
  forceUpdate({
115
115
  inst
@@ -242,7 +242,7 @@ var require_with_selector_development = __commonJS({
242
242
  }
243
243
  var objectIs = typeof Object.is === "function" ? Object.is : is;
244
244
  var useSyncExternalStore = shim.useSyncExternalStore;
245
- var useRef8 = React19.useRef, useEffect11 = React19.useEffect, useMemo4 = React19.useMemo, useDebugValue2 = React19.useDebugValue;
245
+ var useRef8 = React19.useRef, useEffect12 = React19.useEffect, useMemo4 = React19.useMemo, useDebugValue2 = React19.useDebugValue;
246
246
  function useSyncExternalStoreWithSelector2(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
247
247
  var instRef = useRef8(null);
248
248
  var inst;
@@ -299,7 +299,7 @@ var require_with_selector_development = __commonJS({
299
299
  return [getSnapshotWithSelector, getServerSnapshotWithSelector];
300
300
  }, [getSnapshot, getServerSnapshot, selector, isEqual]), getSelection = _useMemo[0], getServerSelection = _useMemo[1];
301
301
  var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
302
- useEffect11(function() {
302
+ useEffect12(function() {
303
303
  inst.hasValue = true;
304
304
  inst.value = value;
305
305
  }, [value]);
@@ -371,10 +371,7 @@ __export(components_exports, {
371
371
  MenuTrigger: () => $3674c52c6b3c5bce$export$27d2ad3c5815583e,
372
372
  Modal: () => Modal,
373
373
  NavigationMenu: () => NavigationMenu,
374
- NavigationMenuContent: () => NavigationMenuContent,
375
374
  NavigationMenuItem: () => NavigationMenuItem,
376
- NavigationMenuLink: () => NavigationMenuLink,
377
- NavigationMenuTrigger: () => NavigationMenuTrigger,
378
375
  Page: () => Page,
379
376
  PasswordField: () => PasswordField,
380
377
  Popover: () => Popover,
@@ -22865,7 +22862,7 @@ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
22865
22862
  };
22866
22863
  }
22867
22864
 
22868
- // src/components/form/Form.tsx
22865
+ // src/components/forms/Form.tsx
22869
22866
  var import_react143 = require("react");
22870
22867
 
22871
22868
  // node_modules/react-hook-form/dist/index.esm.mjs
@@ -24516,10 +24513,10 @@ function useForm(props = {}) {
24516
24513
  return _formControl.current;
24517
24514
  }
24518
24515
 
24519
- // src/components/form/Form.tsx
24516
+ // src/components/forms/Form.tsx
24520
24517
  var import_classnames6 = __toESM(require_classnames());
24521
24518
 
24522
- // src/components/form/Form.module.css
24519
+ // src/components/forms/Form.module.css
24523
24520
  var Form_default = {
24524
24521
  form: "Form_form",
24525
24522
  text: "Form_text",
@@ -25190,7 +25187,7 @@ function Text({
25190
25187
  );
25191
25188
  }
25192
25189
 
25193
- // src/components/form/Form.tsx
25190
+ // src/components/forms/Form.tsx
25194
25191
  var import_jsx_runtime7 = require("react/jsx-runtime");
25195
25192
  function Form({
25196
25193
  gap = "md",
@@ -25263,7 +25260,7 @@ function Form({
25263
25260
  ] });
25264
25261
  }
25265
25262
 
25266
- // src/components/form/FormField.tsx
25263
+ // src/components/forms/FormField.tsx
25267
25264
  var import_react145 = require("react");
25268
25265
  var import_classnames7 = __toESM(require_classnames());
25269
25266
 
@@ -25281,14 +25278,14 @@ function mapChildren(children, handler) {
25281
25278
  });
25282
25279
  }
25283
25280
 
25284
- // src/components/form/FormField.module.css
25281
+ // src/components/forms/FormField.module.css
25285
25282
  var FormField_default = {
25286
25283
  field: "FormField_field",
25287
25284
  description: "FormField_description",
25288
25285
  error: "FormField_error"
25289
25286
  };
25290
25287
 
25291
- // src/components/form/FormField.tsx
25288
+ // src/components/forms/FormField.tsx
25292
25289
  var import_jsx_runtime8 = require("react/jsx-runtime");
25293
25290
  var FormField = (0, import_react145.forwardRef)(
25294
25291
  ({ name, description, label, rules, className, children, ...props }, ref) => {
@@ -25308,6 +25305,7 @@ var FormField = (0, import_react145.forwardRef)(
25308
25305
  );
25309
25306
 
25310
25307
  // src/components/Button.tsx
25308
+ var import_react146 = require("react");
25311
25309
  var import_classnames8 = __toESM(require_classnames());
25312
25310
 
25313
25311
  // src/components/Button.module.css
@@ -25327,33 +25325,36 @@ var Button_default = {
25327
25325
 
25328
25326
  // src/components/Button.tsx
25329
25327
  var import_jsx_runtime9 = require("react/jsx-runtime");
25330
- function Button({
25331
- variant = "secondary",
25332
- size = "md",
25333
- preventFocusOnPress = true,
25334
- asChild,
25335
- className,
25336
- children,
25337
- ...props
25338
- }) {
25339
- const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
25340
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
25341
- Component,
25342
- {
25343
- ...props,
25344
- preventFocusOnPress: Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? preventFocusOnPress : void 0,
25345
- className: (0, import_classnames8.default)(
25346
- Button_default.button,
25347
- className,
25348
- variant && Button_default[variant],
25349
- size && Button_default[size]
25350
- ),
25351
- children
25352
- }
25353
- );
25354
- }
25328
+ var Button = (0, import_react146.forwardRef)(
25329
+ ({
25330
+ variant = "secondary",
25331
+ size = "md",
25332
+ preventFocusOnPress = true,
25333
+ asChild,
25334
+ className,
25335
+ children,
25336
+ ...props
25337
+ }, ref) => {
25338
+ const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
25339
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
25340
+ Component,
25341
+ {
25342
+ ...props,
25343
+ ref,
25344
+ preventFocusOnPress: Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? preventFocusOnPress : void 0,
25345
+ className: (0, import_classnames8.default)(
25346
+ Button_default.button,
25347
+ className,
25348
+ variant && Button_default[variant],
25349
+ size && Button_default[size]
25350
+ ),
25351
+ children
25352
+ }
25353
+ );
25354
+ }
25355
+ );
25355
25356
 
25356
- // src/components/form/FormResetButton.tsx
25357
+ // src/components/forms/FormResetButton.tsx
25357
25358
  var import_jsx_runtime10 = require("react/jsx-runtime");
25358
25359
  function FormResetButton({ values = {}, children, onPress, ...props }) {
25359
25360
  const { reset } = useFormContext();
@@ -25409,7 +25410,7 @@ function LoadingButton({ isLoading, children, ...props }) {
25409
25410
  ] });
25410
25411
  }
25411
25412
 
25412
- // src/components/form/FormSubmitButton.tsx
25413
+ // src/components/forms/FormSubmitButton.tsx
25413
25414
  var import_jsx_runtime13 = require("react/jsx-runtime");
25414
25415
  function FormSubmitButton({ children, disabled, isLoading, ...props }) {
25415
25416
  const {
@@ -25428,10 +25429,10 @@ function FormSubmitButton({ children, disabled, isLoading, ...props }) {
25428
25429
  }
25429
25430
 
25430
25431
  // src/components/hooks/useDebounce.ts
25431
- var import_react146 = require("react");
25432
+ var import_react147 = require("react");
25432
25433
  function useDebounce(value, delay) {
25433
- const [debouncedValue, setValue] = (0, import_react146.useState)(value);
25434
- (0, import_react146.useEffect)(() => {
25434
+ const [debouncedValue, setValue] = (0, import_react147.useState)(value);
25435
+ (0, import_react147.useEffect)(() => {
25435
25436
  const timer = setTimeout(() => {
25436
25437
  setValue(value);
25437
25438
  }, delay);
@@ -25456,7 +25457,7 @@ var createStoreImpl = (createState) => {
25456
25457
  }
25457
25458
  };
25458
25459
  const getState = () => state;
25459
- const getInitialState = () => initialState3;
25460
+ const getInitialState = () => initialState4;
25460
25461
  const subscribe = (listener) => {
25461
25462
  listeners.add(listener);
25462
25463
  return () => listeners.delete(listener);
@@ -25470,16 +25471,16 @@ var createStoreImpl = (createState) => {
25470
25471
  listeners.clear();
25471
25472
  };
25472
25473
  const api = { setState, getState, getInitialState, subscribe, destroy };
25473
- const initialState3 = state = createState(setState, getState, api);
25474
+ const initialState4 = state = createState(setState, getState, api);
25474
25475
  return api;
25475
25476
  };
25476
25477
  var createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
25477
25478
 
25478
25479
  // node_modules/zustand/esm/index.mjs
25479
- var import_react147 = __toESM(require("react"), 1);
25480
+ var import_react148 = __toESM(require("react"), 1);
25480
25481
  var import_with_selector = __toESM(require_with_selector(), 1);
25481
25482
  var import_meta2 = {};
25482
- var { useDebugValue } = import_react147.default;
25483
+ var { useDebugValue } = import_react148.default;
25483
25484
  var { useSyncExternalStoreWithSelector } = import_with_selector.default;
25484
25485
  var didWarnAboutEqualityFn = false;
25485
25486
  var identity = (arg) => arg;
@@ -25558,14 +25559,14 @@ function useToast() {
25558
25559
  }
25559
25560
 
25560
25561
  // node_modules/@radix-ui/react-accordion/dist/index.mjs
25561
- var import_react157 = __toESM(require("react"), 1);
25562
+ var import_react158 = __toESM(require("react"), 1);
25562
25563
 
25563
25564
  // node_modules/@radix-ui/react-context/dist/index.mjs
25564
- var import_react148 = require("react");
25565
+ var import_react149 = require("react");
25565
25566
  function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {
25566
25567
  let defaultContexts = [];
25567
25568
  function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
25568
- const BaseContext = /* @__PURE__ */ (0, import_react148.createContext)(defaultContext);
25569
+ const BaseContext = /* @__PURE__ */ (0, import_react149.createContext)(defaultContext);
25569
25570
  const index = defaultContexts.length;
25570
25571
  defaultContexts = [
25571
25572
  ...defaultContexts,
@@ -25574,17 +25575,17 @@ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeD
25574
25575
  function Provider(props) {
25575
25576
  const { scope, children, ...context } = props;
25576
25577
  const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext;
25577
- const value = (0, import_react148.useMemo)(
25578
+ const value = (0, import_react149.useMemo)(
25578
25579
  () => context,
25579
25580
  Object.values(context)
25580
25581
  );
25581
- return /* @__PURE__ */ (0, import_react148.createElement)(Context.Provider, {
25582
+ return /* @__PURE__ */ (0, import_react149.createElement)(Context.Provider, {
25582
25583
  value
25583
25584
  }, children);
25584
25585
  }
25585
25586
  function useContext3(consumerName, scope) {
25586
25587
  const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext;
25587
- const context = (0, import_react148.useContext)(Context);
25588
+ const context = (0, import_react149.useContext)(Context);
25588
25589
  if (context) return context;
25589
25590
  if (defaultContext !== void 0) return defaultContext;
25590
25591
  throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
@@ -25597,11 +25598,11 @@ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeD
25597
25598
  }
25598
25599
  const createScope = () => {
25599
25600
  const scopeContexts = defaultContexts.map((defaultContext) => {
25600
- return /* @__PURE__ */ (0, import_react148.createContext)(defaultContext);
25601
+ return /* @__PURE__ */ (0, import_react149.createContext)(defaultContext);
25601
25602
  });
25602
25603
  return function useScope(scope) {
25603
25604
  const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;
25604
- return (0, import_react148.useMemo)(
25605
+ return (0, import_react149.useMemo)(
25605
25606
  () => ({
25606
25607
  [`__scope${scopeName}`]: {
25607
25608
  ...scope,
@@ -25640,7 +25641,7 @@ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
25640
25641
  ...currentScope
25641
25642
  };
25642
25643
  }, {});
25643
- return (0, import_react148.useMemo)(
25644
+ return (0, import_react149.useMemo)(
25644
25645
  () => ({
25645
25646
  [`__scope${baseScope.scopeName}`]: nextScopes1
25646
25647
  }),
@@ -25655,7 +25656,7 @@ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
25655
25656
  }
25656
25657
 
25657
25658
  // node_modules/@radix-ui/react-collection/dist/index.mjs
25658
- var import_react149 = __toESM(require("react"), 1);
25659
+ var import_react150 = __toESM(require("react"), 1);
25659
25660
  function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
25660
25661
  const PROVIDER_NAME2 = name + "CollectionProvider";
25661
25662
  const [createCollectionContext, createCollectionScope2] = $c512c27ab02ef895$export$50c7b4e9d9f19c1(PROVIDER_NAME2);
@@ -25667,9 +25668,9 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
25667
25668
  });
25668
25669
  const CollectionProvider = (props) => {
25669
25670
  const { scope, children } = props;
25670
- const ref = import_react149.default.useRef(null);
25671
- const itemMap = import_react149.default.useRef(/* @__PURE__ */ new Map()).current;
25672
- return /* @__PURE__ */ import_react149.default.createElement(CollectionProviderImpl, {
25671
+ const ref = import_react150.default.useRef(null);
25672
+ const itemMap = import_react150.default.useRef(/* @__PURE__ */ new Map()).current;
25673
+ return /* @__PURE__ */ import_react150.default.createElement(CollectionProviderImpl, {
25673
25674
  scope,
25674
25675
  itemMap,
25675
25676
  collectionRef: ref
@@ -25679,11 +25680,11 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
25679
25680
  displayName: PROVIDER_NAME2
25680
25681
  });
25681
25682
  const COLLECTION_SLOT_NAME = name + "CollectionSlot";
25682
- const CollectionSlot = /* @__PURE__ */ import_react149.default.forwardRef((props, forwardedRef) => {
25683
+ const CollectionSlot = /* @__PURE__ */ import_react150.default.forwardRef((props, forwardedRef) => {
25683
25684
  const { scope, children } = props;
25684
25685
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
25685
25686
  const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.collectionRef);
25686
- return /* @__PURE__ */ import_react149.default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
25687
+ return /* @__PURE__ */ import_react150.default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
25687
25688
  ref: composedRefs
25688
25689
  }, children);
25689
25690
  });
@@ -25692,19 +25693,19 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
25692
25693
  });
25693
25694
  const ITEM_SLOT_NAME = name + "CollectionItemSlot";
25694
25695
  const ITEM_DATA_ATTR = "data-radix-collection-item";
25695
- const CollectionItemSlot = /* @__PURE__ */ import_react149.default.forwardRef((props, forwardedRef) => {
25696
+ const CollectionItemSlot = /* @__PURE__ */ import_react150.default.forwardRef((props, forwardedRef) => {
25696
25697
  const { scope, children, ...itemData } = props;
25697
- const ref = import_react149.default.useRef(null);
25698
+ const ref = import_react150.default.useRef(null);
25698
25699
  const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
25699
25700
  const context = useCollectionContext(ITEM_SLOT_NAME, scope);
25700
- import_react149.default.useEffect(() => {
25701
+ import_react150.default.useEffect(() => {
25701
25702
  context.itemMap.set(ref, {
25702
25703
  ref,
25703
25704
  ...itemData
25704
25705
  });
25705
25706
  return () => void context.itemMap.delete(ref);
25706
25707
  });
25707
- return /* @__PURE__ */ import_react149.default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
25708
+ return /* @__PURE__ */ import_react150.default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
25708
25709
  [ITEM_DATA_ATTR]: "",
25709
25710
  ref: composedRefs
25710
25711
  }, children);
@@ -25714,7 +25715,7 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
25714
25715
  });
25715
25716
  function useCollection2(scope) {
25716
25717
  const context = useCollectionContext(name + "CollectionConsumer", scope);
25717
- const getItems = import_react149.default.useCallback(() => {
25718
+ const getItems = import_react150.default.useCallback(() => {
25718
25719
  const collectionNode = context.collectionRef.current;
25719
25720
  if (!collectionNode) return [];
25720
25721
  const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
@@ -25749,16 +25750,16 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
25749
25750
  }
25750
25751
 
25751
25752
  // node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
25752
- var import_react151 = require("react");
25753
+ var import_react152 = require("react");
25753
25754
 
25754
25755
  // node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
25755
- var import_react150 = require("react");
25756
+ var import_react151 = require("react");
25756
25757
  function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
25757
- const callbackRef = (0, import_react150.useRef)(callback);
25758
- (0, import_react150.useEffect)(() => {
25758
+ const callbackRef = (0, import_react151.useRef)(callback);
25759
+ (0, import_react151.useEffect)(() => {
25759
25760
  callbackRef.current = callback;
25760
25761
  });
25761
- return (0, import_react150.useMemo)(
25762
+ return (0, import_react151.useMemo)(
25762
25763
  () => (...args) => {
25763
25764
  var _callbackRef$current;
25764
25765
  return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
@@ -25777,7 +25778,7 @@ function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop, defaultProp, onChange
25777
25778
  const isControlled = prop !== void 0;
25778
25779
  const value1 = isControlled ? prop : uncontrolledProp;
25779
25780
  const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
25780
- const setValue = (0, import_react151.useCallback)((nextValue) => {
25781
+ const setValue = (0, import_react152.useCallback)((nextValue) => {
25781
25782
  if (isControlled) {
25782
25783
  const setter = nextValue;
25783
25784
  const value = typeof nextValue === "function" ? setter(prop) : nextValue;
@@ -25795,11 +25796,11 @@ function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop, defaultProp, onChange
25795
25796
  ];
25796
25797
  }
25797
25798
  function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp, onChange }) {
25798
- const uncontrolledState = (0, import_react151.useState)(defaultProp);
25799
+ const uncontrolledState = (0, import_react152.useState)(defaultProp);
25799
25800
  const [value] = uncontrolledState;
25800
- const prevValueRef = (0, import_react151.useRef)(value);
25801
+ const prevValueRef = (0, import_react152.useRef)(value);
25801
25802
  const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
25802
- (0, import_react151.useEffect)(() => {
25803
+ (0, import_react152.useEffect)(() => {
25803
25804
  if (prevValueRef.current !== value) {
25804
25805
  handleChange(value);
25805
25806
  prevValueRef.current = value;
@@ -25813,7 +25814,7 @@ function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp, onChange }) {
25813
25814
  }
25814
25815
 
25815
25816
  // node_modules/@radix-ui/react-primitive/dist/index.mjs
25816
- var import_react152 = require("react");
25817
+ var import_react153 = require("react");
25817
25818
  var import_react_dom8 = require("react-dom");
25818
25819
  var $8927f6f2acc4f386$var$NODES = [
25819
25820
  "a",
@@ -25834,13 +25835,13 @@ var $8927f6f2acc4f386$var$NODES = [
25834
25835
  "ul"
25835
25836
  ];
25836
25837
  var $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce((primitive, node) => {
25837
- const Node2 = /* @__PURE__ */ (0, import_react152.forwardRef)((props, forwardedRef) => {
25838
+ const Node2 = /* @__PURE__ */ (0, import_react153.forwardRef)((props, forwardedRef) => {
25838
25839
  const { asChild, ...primitiveProps } = props;
25839
25840
  const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
25840
- (0, import_react152.useEffect)(() => {
25841
+ (0, import_react153.useEffect)(() => {
25841
25842
  window[Symbol.for("radix-ui")] = true;
25842
25843
  }, []);
25843
- return /* @__PURE__ */ (0, import_react152.createElement)(Comp, _extends({}, primitiveProps, {
25844
+ return /* @__PURE__ */ (0, import_react153.createElement)(Comp, _extends({}, primitiveProps, {
25844
25845
  ref: forwardedRef
25845
25846
  }));
25846
25847
  });
@@ -25850,49 +25851,44 @@ var $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.redu
25850
25851
  [node]: Node2
25851
25852
  };
25852
25853
  }, {});
25853
- function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) {
25854
- if (target) (0, import_react_dom8.flushSync)(
25855
- () => target.dispatchEvent(event)
25856
- );
25857
- }
25858
25854
 
25859
25855
  // node_modules/@radix-ui/react-collapsible/dist/index.mjs
25860
- var import_react155 = require("react");
25856
+ var import_react156 = require("react");
25861
25857
 
25862
25858
  // node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
25863
- var import_react153 = require("react");
25864
- var $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? import_react153.useLayoutEffect : () => {
25859
+ var import_react154 = require("react");
25860
+ var $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? import_react154.useLayoutEffect : () => {
25865
25861
  };
25866
25862
 
25867
25863
  // node_modules/@radix-ui/react-presence/dist/index.mjs
25868
- var import_react154 = require("react");
25864
+ var import_react155 = require("react");
25869
25865
  var import_react_dom9 = require("react-dom");
25870
- function $fe963b355347cc68$export$3e6543de14f8614f(initialState3, machine) {
25871
- return (0, import_react154.useReducer)((state, event) => {
25866
+ function $fe963b355347cc68$export$3e6543de14f8614f(initialState4, machine) {
25867
+ return (0, import_react155.useReducer)((state, event) => {
25872
25868
  const nextState = machine[state][event];
25873
25869
  return nextState !== null && nextState !== void 0 ? nextState : state;
25874
- }, initialState3);
25870
+ }, initialState4);
25875
25871
  }
25876
25872
  var $921a889cee6df7e8$export$99c2b779aa4e8b8b = (props) => {
25877
25873
  const { present, children } = props;
25878
25874
  const presence = $921a889cee6df7e8$var$usePresence(present);
25879
25875
  const child = typeof children === "function" ? children({
25880
25876
  present: presence.isPresent
25881
- }) : import_react154.Children.only(children);
25877
+ }) : import_react155.Children.only(children);
25882
25878
  const ref = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(presence.ref, child.ref);
25883
25879
  const forceMount = typeof children === "function";
25884
- return forceMount || presence.isPresent ? /* @__PURE__ */ (0, import_react154.cloneElement)(child, {
25880
+ return forceMount || presence.isPresent ? /* @__PURE__ */ (0, import_react155.cloneElement)(child, {
25885
25881
  ref
25886
25882
  }) : null;
25887
25883
  };
25888
25884
  $921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = "Presence";
25889
25885
  function $921a889cee6df7e8$var$usePresence(present) {
25890
- const [node1, setNode] = (0, import_react154.useState)();
25891
- const stylesRef = (0, import_react154.useRef)({});
25892
- const prevPresentRef = (0, import_react154.useRef)(present);
25893
- const prevAnimationNameRef = (0, import_react154.useRef)("none");
25894
- const initialState3 = present ? "mounted" : "unmounted";
25895
- const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f(initialState3, {
25886
+ const [node1, setNode] = (0, import_react155.useState)();
25887
+ const stylesRef = (0, import_react155.useRef)({});
25888
+ const prevPresentRef = (0, import_react155.useRef)(present);
25889
+ const prevAnimationNameRef = (0, import_react155.useRef)("none");
25890
+ const initialState4 = present ? "mounted" : "unmounted";
25891
+ const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f(initialState4, {
25896
25892
  mounted: {
25897
25893
  UNMOUNT: "unmounted",
25898
25894
  ANIMATION_OUT: "unmountSuspended"
@@ -25905,7 +25901,7 @@ function $921a889cee6df7e8$var$usePresence(present) {
25905
25901
  MOUNT: "mounted"
25906
25902
  }
25907
25903
  });
25908
- (0, import_react154.useEffect)(() => {
25904
+ (0, import_react155.useEffect)(() => {
25909
25905
  const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
25910
25906
  prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
25911
25907
  }, [
@@ -25965,7 +25961,7 @@ function $921a889cee6df7e8$var$usePresence(present) {
25965
25961
  "mounted",
25966
25962
  "unmountSuspended"
25967
25963
  ].includes(state),
25968
- ref: (0, import_react154.useCallback)((node) => {
25964
+ ref: (0, import_react155.useCallback)((node) => {
25969
25965
  if (node) stylesRef.current = getComputedStyle(node);
25970
25966
  setNode(node);
25971
25967
  }, [])
@@ -25995,19 +25991,19 @@ function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
25995
25991
  var $409067139f391064$var$COLLAPSIBLE_NAME = "Collapsible";
25996
25992
  var [$409067139f391064$var$createCollapsibleContext, $409067139f391064$export$952b32dcbe73087a] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($409067139f391064$var$COLLAPSIBLE_NAME);
25997
25993
  var [$409067139f391064$var$CollapsibleProvider, $409067139f391064$var$useCollapsibleContext] = $409067139f391064$var$createCollapsibleContext($409067139f391064$var$COLLAPSIBLE_NAME);
25998
- var $409067139f391064$export$6eb0f7ddcda6131f = /* @__PURE__ */ (0, import_react155.forwardRef)((props, forwardedRef) => {
25994
+ var $409067139f391064$export$6eb0f7ddcda6131f = /* @__PURE__ */ (0, import_react156.forwardRef)((props, forwardedRef) => {
25999
25995
  const { __scopeCollapsible, open: openProp, defaultOpen, disabled, onOpenChange, ...collapsibleProps } = props;
26000
25996
  const [open = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
26001
25997
  prop: openProp,
26002
25998
  defaultProp: defaultOpen,
26003
25999
  onChange: onOpenChange
26004
26000
  });
26005
- return /* @__PURE__ */ (0, import_react155.createElement)($409067139f391064$var$CollapsibleProvider, {
26001
+ return /* @__PURE__ */ (0, import_react156.createElement)($409067139f391064$var$CollapsibleProvider, {
26006
26002
  scope: __scopeCollapsible,
26007
26003
  disabled,
26008
26004
  contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
26009
26005
  open,
26010
- onOpenToggle: (0, import_react155.useCallback)(
26006
+ onOpenToggle: (0, import_react156.useCallback)(
26011
26007
  () => setOpen(
26012
26008
  (prevOpen) => !prevOpen
26013
26009
  ),
@@ -26015,7 +26011,7 @@ var $409067139f391064$export$6eb0f7ddcda6131f = /* @__PURE__ */ (0, import_react
26015
26011
  setOpen
26016
26012
  ]
26017
26013
  )
26018
- }, /* @__PURE__ */ (0, import_react155.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
26014
+ }, /* @__PURE__ */ (0, import_react156.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
26019
26015
  "data-state": $409067139f391064$var$getState(open),
26020
26016
  "data-disabled": disabled ? "" : void 0
26021
26017
  }, collapsibleProps, {
@@ -26023,10 +26019,10 @@ var $409067139f391064$export$6eb0f7ddcda6131f = /* @__PURE__ */ (0, import_react
26023
26019
  })));
26024
26020
  });
26025
26021
  var $409067139f391064$var$TRIGGER_NAME = "CollapsibleTrigger";
26026
- var $409067139f391064$export$c135dce7b15bbbdc = /* @__PURE__ */ (0, import_react155.forwardRef)((props, forwardedRef) => {
26022
+ var $409067139f391064$export$c135dce7b15bbbdc = /* @__PURE__ */ (0, import_react156.forwardRef)((props, forwardedRef) => {
26027
26023
  const { __scopeCollapsible, ...triggerProps } = props;
26028
26024
  const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME, __scopeCollapsible);
26029
- return /* @__PURE__ */ (0, import_react155.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
26025
+ return /* @__PURE__ */ (0, import_react156.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
26030
26026
  type: "button",
26031
26027
  "aria-controls": context.contentId,
26032
26028
  "aria-expanded": context.open || false,
@@ -26039,34 +26035,34 @@ var $409067139f391064$export$c135dce7b15bbbdc = /* @__PURE__ */ (0, import_react
26039
26035
  }));
26040
26036
  });
26041
26037
  var $409067139f391064$var$CONTENT_NAME = "CollapsibleContent";
26042
- var $409067139f391064$export$aadde00976f34151 = /* @__PURE__ */ (0, import_react155.forwardRef)((props, forwardedRef) => {
26038
+ var $409067139f391064$export$aadde00976f34151 = /* @__PURE__ */ (0, import_react156.forwardRef)((props, forwardedRef) => {
26043
26039
  const { forceMount, ...contentProps } = props;
26044
26040
  const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, props.__scopeCollapsible);
26045
- return /* @__PURE__ */ (0, import_react155.createElement)(
26041
+ return /* @__PURE__ */ (0, import_react156.createElement)(
26046
26042
  $921a889cee6df7e8$export$99c2b779aa4e8b8b,
26047
26043
  {
26048
26044
  present: forceMount || context.open
26049
26045
  },
26050
- ({ present }) => /* @__PURE__ */ (0, import_react155.createElement)($409067139f391064$var$CollapsibleContentImpl, _extends({}, contentProps, {
26046
+ ({ present }) => /* @__PURE__ */ (0, import_react156.createElement)($409067139f391064$var$CollapsibleContentImpl, _extends({}, contentProps, {
26051
26047
  ref: forwardedRef,
26052
26048
  present
26053
26049
  }))
26054
26050
  );
26055
26051
  });
26056
- var $409067139f391064$var$CollapsibleContentImpl = /* @__PURE__ */ (0, import_react155.forwardRef)((props, forwardedRef) => {
26052
+ var $409067139f391064$var$CollapsibleContentImpl = /* @__PURE__ */ (0, import_react156.forwardRef)((props, forwardedRef) => {
26057
26053
  const { __scopeCollapsible, present, children, ...contentProps } = props;
26058
26054
  const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, __scopeCollapsible);
26059
- const [isPresent, setIsPresent] = (0, import_react155.useState)(present);
26060
- const ref = (0, import_react155.useRef)(null);
26055
+ const [isPresent, setIsPresent] = (0, import_react156.useState)(present);
26056
+ const ref = (0, import_react156.useRef)(null);
26061
26057
  const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
26062
- const heightRef = (0, import_react155.useRef)(0);
26058
+ const heightRef = (0, import_react156.useRef)(0);
26063
26059
  const height = heightRef.current;
26064
- const widthRef = (0, import_react155.useRef)(0);
26060
+ const widthRef = (0, import_react156.useRef)(0);
26065
26061
  const width = widthRef.current;
26066
26062
  const isOpen = context.open || isPresent;
26067
- const isMountAnimationPreventedRef = (0, import_react155.useRef)(isOpen);
26068
- const originalStylesRef = (0, import_react155.useRef)();
26069
- (0, import_react155.useEffect)(() => {
26063
+ const isMountAnimationPreventedRef = (0, import_react156.useRef)(isOpen);
26064
+ const originalStylesRef = (0, import_react156.useRef)();
26065
+ (0, import_react156.useEffect)(() => {
26070
26066
  const rAF = requestAnimationFrame(
26071
26067
  () => isMountAnimationPreventedRef.current = false
26072
26068
  );
@@ -26094,7 +26090,7 @@ var $409067139f391064$var$CollapsibleContentImpl = /* @__PURE__ */ (0, import_re
26094
26090
  context.open,
26095
26091
  present
26096
26092
  ]);
26097
- return /* @__PURE__ */ (0, import_react155.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
26093
+ return /* @__PURE__ */ (0, import_react156.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
26098
26094
  "data-state": $409067139f391064$var$getState(context.open),
26099
26095
  "data-disabled": context.disabled ? "" : void 0,
26100
26096
  id: context.contentId,
@@ -26116,10 +26112,10 @@ var $409067139f391064$export$41fb9f06171c75f4 = $409067139f391064$export$c135dce
26116
26112
  var $409067139f391064$export$7c6e2c02157bb7d2 = $409067139f391064$export$aadde00976f34151;
26117
26113
 
26118
26114
  // node_modules/@radix-ui/react-direction/dist/index.mjs
26119
- var import_react156 = require("react");
26120
- var $f631663db3294ace$var$DirectionContext = /* @__PURE__ */ (0, import_react156.createContext)(void 0);
26115
+ var import_react157 = require("react");
26116
+ var $f631663db3294ace$var$DirectionContext = /* @__PURE__ */ (0, import_react157.createContext)(void 0);
26121
26117
  function $f631663db3294ace$export$b39126d51d94e6f3(localDir) {
26122
- const globalDir = (0, import_react156.useContext)($f631663db3294ace$var$DirectionContext);
26118
+ const globalDir = (0, import_react157.useContext)($f631663db3294ace$var$DirectionContext);
26123
26119
  return localDir || globalDir || "ltr";
26124
26120
  }
26125
26121
 
@@ -26139,15 +26135,15 @@ var [$1bf158f521e1b1b4$var$createAccordionContext, $1bf158f521e1b1b4$export$9748
26139
26135
  $409067139f391064$export$952b32dcbe73087a
26140
26136
  ]);
26141
26137
  var $1bf158f521e1b1b4$var$useCollapsibleScope = $409067139f391064$export$952b32dcbe73087a();
26142
- var $1bf158f521e1b1b4$export$a766cd26d0d69044 = /* @__PURE__ */ import_react157.default.forwardRef((props, forwardedRef) => {
26138
+ var $1bf158f521e1b1b4$export$a766cd26d0d69044 = /* @__PURE__ */ import_react158.default.forwardRef((props, forwardedRef) => {
26143
26139
  const { type, ...accordionProps } = props;
26144
26140
  const singleProps = accordionProps;
26145
26141
  const multipleProps = accordionProps;
26146
- return /* @__PURE__ */ import_react157.default.createElement($1bf158f521e1b1b4$var$Collection.Provider, {
26142
+ return /* @__PURE__ */ import_react158.default.createElement($1bf158f521e1b1b4$var$Collection.Provider, {
26147
26143
  scope: props.__scopeAccordion
26148
- }, type === "multiple" ? /* @__PURE__ */ import_react157.default.createElement($1bf158f521e1b1b4$var$AccordionImplMultiple, _extends({}, multipleProps, {
26144
+ }, type === "multiple" ? /* @__PURE__ */ import_react158.default.createElement($1bf158f521e1b1b4$var$AccordionImplMultiple, _extends({}, multipleProps, {
26149
26145
  ref: forwardedRef
26150
- })) : /* @__PURE__ */ import_react157.default.createElement($1bf158f521e1b1b4$var$AccordionImplSingle, _extends({}, singleProps, {
26146
+ })) : /* @__PURE__ */ import_react158.default.createElement($1bf158f521e1b1b4$var$AccordionImplSingle, _extends({}, singleProps, {
26151
26147
  ref: forwardedRef
26152
26148
  })));
26153
26149
  });
@@ -26167,7 +26163,7 @@ var [$1bf158f521e1b1b4$var$AccordionValueProvider, $1bf158f521e1b1b4$var$useAcco
26167
26163
  var [$1bf158f521e1b1b4$var$AccordionCollapsibleProvider, $1bf158f521e1b1b4$var$useAccordionCollapsibleContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, {
26168
26164
  collapsible: false
26169
26165
  });
26170
- var $1bf158f521e1b1b4$var$AccordionImplSingle = /* @__PURE__ */ import_react157.default.forwardRef((props, forwardedRef) => {
26166
+ var $1bf158f521e1b1b4$var$AccordionImplSingle = /* @__PURE__ */ import_react158.default.forwardRef((props, forwardedRef) => {
26171
26167
  const { value: valueProp, defaultValue, onValueChange = () => {
26172
26168
  }, collapsible = false, ...accordionSingleProps } = props;
26173
26169
  const [value, setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
@@ -26175,27 +26171,27 @@ var $1bf158f521e1b1b4$var$AccordionImplSingle = /* @__PURE__ */ import_react157.
26175
26171
  defaultProp: defaultValue,
26176
26172
  onChange: onValueChange
26177
26173
  });
26178
- return /* @__PURE__ */ import_react157.default.createElement($1bf158f521e1b1b4$var$AccordionValueProvider, {
26174
+ return /* @__PURE__ */ import_react158.default.createElement($1bf158f521e1b1b4$var$AccordionValueProvider, {
26179
26175
  scope: props.__scopeAccordion,
26180
26176
  value: value ? [
26181
26177
  value
26182
26178
  ] : [],
26183
26179
  onItemOpen: setValue,
26184
- onItemClose: import_react157.default.useCallback(
26180
+ onItemClose: import_react158.default.useCallback(
26185
26181
  () => collapsible && setValue(""),
26186
26182
  [
26187
26183
  collapsible,
26188
26184
  setValue
26189
26185
  ]
26190
26186
  )
26191
- }, /* @__PURE__ */ import_react157.default.createElement($1bf158f521e1b1b4$var$AccordionCollapsibleProvider, {
26187
+ }, /* @__PURE__ */ import_react158.default.createElement($1bf158f521e1b1b4$var$AccordionCollapsibleProvider, {
26192
26188
  scope: props.__scopeAccordion,
26193
26189
  collapsible
26194
- }, /* @__PURE__ */ import_react157.default.createElement($1bf158f521e1b1b4$var$AccordionImpl, _extends({}, accordionSingleProps, {
26190
+ }, /* @__PURE__ */ import_react158.default.createElement($1bf158f521e1b1b4$var$AccordionImpl, _extends({}, accordionSingleProps, {
26195
26191
  ref: forwardedRef
26196
26192
  }))));
26197
26193
  });
26198
- var $1bf158f521e1b1b4$var$AccordionImplMultiple = /* @__PURE__ */ import_react157.default.forwardRef((props, forwardedRef) => {
26194
+ var $1bf158f521e1b1b4$var$AccordionImplMultiple = /* @__PURE__ */ import_react158.default.forwardRef((props, forwardedRef) => {
26199
26195
  const { value: valueProp, defaultValue, onValueChange = () => {
26200
26196
  }, ...accordionMultipleProps } = props;
26201
26197
  const [value1 = [], setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
@@ -26203,7 +26199,7 @@ var $1bf158f521e1b1b4$var$AccordionImplMultiple = /* @__PURE__ */ import_react15
26203
26199
  defaultProp: defaultValue,
26204
26200
  onChange: onValueChange
26205
26201
  });
26206
- const handleItemOpen = import_react157.default.useCallback(
26202
+ const handleItemOpen = import_react158.default.useCallback(
26207
26203
  (itemValue) => setValue(
26208
26204
  (prevValue = []) => [
26209
26205
  ...prevValue,
@@ -26214,7 +26210,7 @@ var $1bf158f521e1b1b4$var$AccordionImplMultiple = /* @__PURE__ */ import_react15
26214
26210
  setValue
26215
26211
  ]
26216
26212
  );
26217
- const handleItemClose = import_react157.default.useCallback(
26213
+ const handleItemClose = import_react158.default.useCallback(
26218
26214
  (itemValue) => setValue(
26219
26215
  (prevValue = []) => prevValue.filter(
26220
26216
  (value) => value !== itemValue
@@ -26224,22 +26220,22 @@ var $1bf158f521e1b1b4$var$AccordionImplMultiple = /* @__PURE__ */ import_react15
26224
26220
  setValue
26225
26221
  ]
26226
26222
  );
26227
- return /* @__PURE__ */ import_react157.default.createElement($1bf158f521e1b1b4$var$AccordionValueProvider, {
26223
+ return /* @__PURE__ */ import_react158.default.createElement($1bf158f521e1b1b4$var$AccordionValueProvider, {
26228
26224
  scope: props.__scopeAccordion,
26229
26225
  value: value1,
26230
26226
  onItemOpen: handleItemOpen,
26231
26227
  onItemClose: handleItemClose
26232
- }, /* @__PURE__ */ import_react157.default.createElement($1bf158f521e1b1b4$var$AccordionCollapsibleProvider, {
26228
+ }, /* @__PURE__ */ import_react158.default.createElement($1bf158f521e1b1b4$var$AccordionCollapsibleProvider, {
26233
26229
  scope: props.__scopeAccordion,
26234
26230
  collapsible: true
26235
- }, /* @__PURE__ */ import_react157.default.createElement($1bf158f521e1b1b4$var$AccordionImpl, _extends({}, accordionMultipleProps, {
26231
+ }, /* @__PURE__ */ import_react158.default.createElement($1bf158f521e1b1b4$var$AccordionImpl, _extends({}, accordionMultipleProps, {
26236
26232
  ref: forwardedRef
26237
26233
  }))));
26238
26234
  });
26239
26235
  var [$1bf158f521e1b1b4$var$AccordionImplProvider, $1bf158f521e1b1b4$var$useAccordionContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME);
26240
- var $1bf158f521e1b1b4$var$AccordionImpl = /* @__PURE__ */ import_react157.default.forwardRef((props, forwardedRef) => {
26236
+ var $1bf158f521e1b1b4$var$AccordionImpl = /* @__PURE__ */ import_react158.default.forwardRef((props, forwardedRef) => {
26241
26237
  const { __scopeAccordion, disabled, dir, orientation = "vertical", ...accordionProps } = props;
26242
- const accordionRef = import_react157.default.useRef(null);
26238
+ const accordionRef = import_react158.default.useRef(null);
26243
26239
  const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(accordionRef, forwardedRef);
26244
26240
  const getItems = $1bf158f521e1b1b4$var$useCollection(__scopeAccordion);
26245
26241
  const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
@@ -26298,14 +26294,14 @@ var $1bf158f521e1b1b4$var$AccordionImpl = /* @__PURE__ */ import_react157.defaul
26298
26294
  const clampedIndex = nextIndex % triggerCount;
26299
26295
  (_triggerCollection$cl = triggerCollection[clampedIndex].ref.current) === null || _triggerCollection$cl === void 0 || _triggerCollection$cl.focus();
26300
26296
  });
26301
- return /* @__PURE__ */ import_react157.default.createElement($1bf158f521e1b1b4$var$AccordionImplProvider, {
26297
+ return /* @__PURE__ */ import_react158.default.createElement($1bf158f521e1b1b4$var$AccordionImplProvider, {
26302
26298
  scope: __scopeAccordion,
26303
26299
  disabled,
26304
26300
  direction: dir,
26305
26301
  orientation
26306
- }, /* @__PURE__ */ import_react157.default.createElement($1bf158f521e1b1b4$var$Collection.Slot, {
26302
+ }, /* @__PURE__ */ import_react158.default.createElement($1bf158f521e1b1b4$var$Collection.Slot, {
26307
26303
  scope: __scopeAccordion
26308
- }, /* @__PURE__ */ import_react157.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, accordionProps, {
26304
+ }, /* @__PURE__ */ import_react158.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, accordionProps, {
26309
26305
  "data-orientation": orientation,
26310
26306
  ref: composedRefs,
26311
26307
  onKeyDown: disabled ? void 0 : handleKeyDown
@@ -26313,7 +26309,7 @@ var $1bf158f521e1b1b4$var$AccordionImpl = /* @__PURE__ */ import_react157.defaul
26313
26309
  });
26314
26310
  var $1bf158f521e1b1b4$var$ITEM_NAME = "AccordionItem";
26315
26311
  var [$1bf158f521e1b1b4$var$AccordionItemProvider, $1bf158f521e1b1b4$var$useAccordionItemContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ITEM_NAME);
26316
- var $1bf158f521e1b1b4$export$d99097c13d4dac9f = /* @__PURE__ */ import_react157.default.forwardRef((props, forwardedRef) => {
26312
+ var $1bf158f521e1b1b4$export$d99097c13d4dac9f = /* @__PURE__ */ import_react158.default.forwardRef((props, forwardedRef) => {
26317
26313
  const { __scopeAccordion, value, ...accordionItemProps } = props;
26318
26314
  const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ITEM_NAME, __scopeAccordion);
26319
26315
  const valueContext = $1bf158f521e1b1b4$var$useAccordionValueContext($1bf158f521e1b1b4$var$ITEM_NAME, __scopeAccordion);
@@ -26321,12 +26317,12 @@ var $1bf158f521e1b1b4$export$d99097c13d4dac9f = /* @__PURE__ */ import_react157.
26321
26317
  const triggerId = $1746a345f3d73bb7$export$f680877a34711e37();
26322
26318
  const open1 = value && valueContext.value.includes(value) || false;
26323
26319
  const disabled = accordionContext.disabled || props.disabled;
26324
- return /* @__PURE__ */ import_react157.default.createElement($1bf158f521e1b1b4$var$AccordionItemProvider, {
26320
+ return /* @__PURE__ */ import_react158.default.createElement($1bf158f521e1b1b4$var$AccordionItemProvider, {
26325
26321
  scope: __scopeAccordion,
26326
26322
  open: open1,
26327
26323
  disabled,
26328
26324
  triggerId
26329
- }, /* @__PURE__ */ import_react157.default.createElement($409067139f391064$export$be92b6f5f03c0fe9, _extends({
26325
+ }, /* @__PURE__ */ import_react158.default.createElement($409067139f391064$export$be92b6f5f03c0fe9, _extends({
26330
26326
  "data-orientation": accordionContext.orientation,
26331
26327
  "data-state": $1bf158f521e1b1b4$var$getState(open1)
26332
26328
  }, collapsibleScope, accordionItemProps, {
@@ -26340,11 +26336,11 @@ var $1bf158f521e1b1b4$export$d99097c13d4dac9f = /* @__PURE__ */ import_react157.
26340
26336
  })));
26341
26337
  });
26342
26338
  var $1bf158f521e1b1b4$var$HEADER_NAME = "AccordionHeader";
26343
- var $1bf158f521e1b1b4$export$5e3e5deaaf81ee41 = /* @__PURE__ */ import_react157.default.forwardRef((props, forwardedRef) => {
26339
+ var $1bf158f521e1b1b4$export$5e3e5deaaf81ee41 = /* @__PURE__ */ import_react158.default.forwardRef((props, forwardedRef) => {
26344
26340
  const { __scopeAccordion, ...headerProps } = props;
26345
26341
  const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, __scopeAccordion);
26346
26342
  const itemContext = $1bf158f521e1b1b4$var$useAccordionItemContext($1bf158f521e1b1b4$var$HEADER_NAME, __scopeAccordion);
26347
- return /* @__PURE__ */ import_react157.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.h3, _extends({
26343
+ return /* @__PURE__ */ import_react158.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.h3, _extends({
26348
26344
  "data-orientation": accordionContext.orientation,
26349
26345
  "data-state": $1bf158f521e1b1b4$var$getState(itemContext.open),
26350
26346
  "data-disabled": itemContext.disabled ? "" : void 0
@@ -26353,15 +26349,15 @@ var $1bf158f521e1b1b4$export$5e3e5deaaf81ee41 = /* @__PURE__ */ import_react157.
26353
26349
  }));
26354
26350
  });
26355
26351
  var $1bf158f521e1b1b4$var$TRIGGER_NAME = "AccordionTrigger";
26356
- var $1bf158f521e1b1b4$export$94e939b1f85bdd73 = /* @__PURE__ */ import_react157.default.forwardRef((props, forwardedRef) => {
26352
+ var $1bf158f521e1b1b4$export$94e939b1f85bdd73 = /* @__PURE__ */ import_react158.default.forwardRef((props, forwardedRef) => {
26357
26353
  const { __scopeAccordion, ...triggerProps } = props;
26358
26354
  const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, __scopeAccordion);
26359
26355
  const itemContext = $1bf158f521e1b1b4$var$useAccordionItemContext($1bf158f521e1b1b4$var$TRIGGER_NAME, __scopeAccordion);
26360
26356
  const collapsibleContext = $1bf158f521e1b1b4$var$useAccordionCollapsibleContext($1bf158f521e1b1b4$var$TRIGGER_NAME, __scopeAccordion);
26361
26357
  const collapsibleScope = $1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion);
26362
- return /* @__PURE__ */ import_react157.default.createElement($1bf158f521e1b1b4$var$Collection.ItemSlot, {
26358
+ return /* @__PURE__ */ import_react158.default.createElement($1bf158f521e1b1b4$var$Collection.ItemSlot, {
26363
26359
  scope: __scopeAccordion
26364
- }, /* @__PURE__ */ import_react157.default.createElement($409067139f391064$export$41fb9f06171c75f4, _extends({
26360
+ }, /* @__PURE__ */ import_react158.default.createElement($409067139f391064$export$41fb9f06171c75f4, _extends({
26365
26361
  "aria-disabled": itemContext.open && !collapsibleContext.collapsible || void 0,
26366
26362
  "data-orientation": accordionContext.orientation,
26367
26363
  id: itemContext.triggerId
@@ -26370,12 +26366,12 @@ var $1bf158f521e1b1b4$export$94e939b1f85bdd73 = /* @__PURE__ */ import_react157.
26370
26366
  })));
26371
26367
  });
26372
26368
  var $1bf158f521e1b1b4$var$CONTENT_NAME = "AccordionContent";
26373
- var $1bf158f521e1b1b4$export$985b9a77379b54a0 = /* @__PURE__ */ import_react157.default.forwardRef((props, forwardedRef) => {
26369
+ var $1bf158f521e1b1b4$export$985b9a77379b54a0 = /* @__PURE__ */ import_react158.default.forwardRef((props, forwardedRef) => {
26374
26370
  const { __scopeAccordion, ...contentProps } = props;
26375
26371
  const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, __scopeAccordion);
26376
26372
  const itemContext = $1bf158f521e1b1b4$var$useAccordionItemContext($1bf158f521e1b1b4$var$CONTENT_NAME, __scopeAccordion);
26377
26373
  const collapsibleScope = $1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion);
26378
- return /* @__PURE__ */ import_react157.default.createElement($409067139f391064$export$7c6e2c02157bb7d2, _extends({
26374
+ return /* @__PURE__ */ import_react158.default.createElement($409067139f391064$export$7c6e2c02157bb7d2, _extends({
26379
26375
  role: "region",
26380
26376
  "aria-labelledby": itemContext.triggerId,
26381
26377
  "data-orientation": accordionContext.orientation
@@ -26559,7 +26555,7 @@ function Calendar({ className, ...props }) {
26559
26555
  }
26560
26556
 
26561
26557
  // src/components/Checkbox.tsx
26562
- var import_react158 = require("react");
26558
+ var import_react159 = require("react");
26563
26559
 
26564
26560
  // node_modules/react-icons/im/index.mjs
26565
26561
  function ImCheckmark(props) {
@@ -26578,7 +26574,7 @@ var Checkbox_default = {
26578
26574
 
26579
26575
  // src/components/Checkbox.tsx
26580
26576
  var import_jsx_runtime20 = require("react/jsx-runtime");
26581
- var Checkbox = (0, import_react158.forwardRef)(
26577
+ var Checkbox = (0, import_react159.forwardRef)(
26582
26578
  ({ label, className, children, ...props }, ref) => {
26583
26579
  const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
26584
26580
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
@@ -26678,11 +26674,11 @@ function Combobox({ items, className, ...props }) {
26678
26674
  }
26679
26675
 
26680
26676
  // src/components/ConfirmationDialog.tsx
26681
- var import_react161 = require("react");
26677
+ var import_react162 = require("react");
26682
26678
  var import_classnames23 = __toESM(require_classnames());
26683
26679
 
26684
26680
  // src/components/TextField.tsx
26685
- var import_react160 = require("react");
26681
+ var import_react161 = require("react");
26686
26682
  var import_classnames22 = __toESM(require_classnames());
26687
26683
 
26688
26684
  // src/components/Label.tsx
@@ -26700,7 +26696,7 @@ function Label({ className, ...props }) {
26700
26696
  }
26701
26697
 
26702
26698
  // src/components/CopyButton.tsx
26703
- var import_react159 = require("react");
26699
+ var import_react160 = require("react");
26704
26700
  var import_classnames21 = __toESM(require_classnames());
26705
26701
 
26706
26702
  // src/components/CopyButton.module.css
@@ -26713,8 +26709,8 @@ var CopyButton_default = {
26713
26709
  var import_jsx_runtime26 = require("react/jsx-runtime");
26714
26710
  var TIMEOUT = 2e3;
26715
26711
  function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
26716
- const [copied, setCopied] = (0, import_react159.useState)(false);
26717
- const ref = (0, import_react159.useRef)(timeout);
26712
+ const [copied, setCopied] = (0, import_react160.useState)(false);
26713
+ const ref = (0, import_react160.useRef)(timeout);
26718
26714
  const handleCopy = async () => {
26719
26715
  if (value) {
26720
26716
  await navigator.clipboard.writeText(value);
@@ -26736,34 +26732,35 @@ var Input_default = {
26736
26732
 
26737
26733
  // src/components/TextField.module.css
26738
26734
  var TextField_default = {
26739
- textarea: "TextField_textarea",
26740
26735
  allowCopy: "TextField_allowCopy",
26741
26736
  icon: "TextField_icon"
26742
26737
  };
26743
26738
 
26744
26739
  // src/components/TextField.tsx
26745
26740
  var import_jsx_runtime27 = require("react/jsx-runtime");
26746
- var TextField = (0, import_react160.forwardRef)(
26741
+ var TextField = (0, import_react161.forwardRef)(
26747
26742
  ({
26748
26743
  value,
26749
26744
  defaultValue,
26750
26745
  label,
26751
26746
  placeholder,
26752
- asTextArea,
26753
26747
  allowCopy,
26748
+ asChild,
26754
26749
  className,
26755
26750
  onChange,
26751
+ children,
26756
26752
  ...props
26757
26753
  }, ref) => {
26758
- const [inputValue, setInputValue] = (0, import_react160.useState)(defaultValue || value);
26759
- const Component = asTextArea ? $216918bed6669f72$export$f5c9f3c2c4054eec : $3985021b0ad6602f$export$f5b8910cec6cf069;
26754
+ const [inputValue, setInputValue] = (0, import_react161.useState)(defaultValue || value);
26755
+ const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : $3985021b0ad6602f$export$f5b8910cec6cf069;
26760
26756
  const handleChange = (e) => {
26761
26757
  setInputValue(e.target.value);
26762
26758
  return onChange?.(e);
26763
26759
  };
26764
- (0, import_react160.useEffect)(() => {
26760
+ (0, import_react161.useEffect)(() => {
26765
26761
  setInputValue(value);
26766
26762
  }, [value]);
26763
+ console.log(asChild && { Component, asChild });
26767
26764
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
26768
26765
  $bcdf0525bf22703d$export$2c73285ae9390cec,
26769
26766
  {
@@ -26777,13 +26774,10 @@ var TextField = (0, import_react160.forwardRef)(
26777
26774
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
26778
26775
  Component,
26779
26776
  {
26780
- className: (0, import_classnames22.default)(
26781
- TextField_default.input,
26782
- Input_default.input,
26783
- asTextArea && TextField_default.textarea,
26784
- allowCopy && TextField_default.allowCopy
26785
- ),
26786
- onChange: handleChange
26777
+ className: (0, import_classnames22.default)(TextField_default.input, Input_default.input, allowCopy && TextField_default.allowCopy),
26778
+ placeholder,
26779
+ onChange: handleChange,
26780
+ children
26787
26781
  }
26788
26782
  ),
26789
26783
  allowCopy && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CopyButton, { className: (0, import_classnames22.default)(TextField_default.icon, Input_default.icon), value: inputValue })
@@ -26809,7 +26803,7 @@ function ConfirmationDialog({
26809
26803
  children,
26810
26804
  ...props
26811
26805
  }) {
26812
- const [canSave, setCanSave] = (0, import_react161.useState)(false);
26806
+ const [canSave, setCanSave] = (0, import_react162.useState)(false);
26813
26807
  const handleChange = (e) => {
26814
26808
  setCanSave(e.target.value === value);
26815
26809
  };
@@ -26836,7 +26830,7 @@ function ConfirmationDialog({
26836
26830
 
26837
26831
  // src/components/DataTable.tsx
26838
26832
  var import_classnames25 = __toESM(require_classnames());
26839
- var import_react162 = require("react");
26833
+ var import_react163 = require("react");
26840
26834
 
26841
26835
  // src/components/Table.tsx
26842
26836
  var import_classnames24 = __toESM(require_classnames());
@@ -26891,9 +26885,9 @@ var DataTable_default = {
26891
26885
 
26892
26886
  // src/components/DataTable.tsx
26893
26887
  var import_jsx_runtime30 = require("react/jsx-runtime");
26894
- var import_react163 = require("react");
26888
+ var import_react164 = require("react");
26895
26889
  function DataTable({ data = [], className, children, ...props }) {
26896
- const columns = import_react162.Children.map(children, (child) => {
26890
+ const columns = import_react163.Children.map(children, (child) => {
26897
26891
  return { ...child.props, value: child.props.children };
26898
26892
  });
26899
26893
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Table, { ...props, className: (0, import_classnames25.default)(DataTable_default.datatable, className), children: [
@@ -26901,11 +26895,11 @@ function DataTable({ data = [], className, children, ...props }) {
26901
26895
  if (hidden) {
26902
26896
  return null;
26903
26897
  }
26904
- return /* @__PURE__ */ (0, import_react163.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
26898
+ return /* @__PURE__ */ (0, import_react164.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
26905
26899
  }) }),
26906
26900
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TableBody, { items: data, children: (row) => {
26907
26901
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TableRow, { children: columns.map(({ id, value, className: className2, ...cellProps }) => {
26908
- return /* @__PURE__ */ (0, import_react163.createElement)(TableCell, { ...cellProps, key: id, className: (0, import_classnames25.default)(DataTable_default.cell, className2) }, !value && row[id], typeof value === "function" ? value(row, id) : value);
26902
+ return /* @__PURE__ */ (0, import_react164.createElement)(TableCell, { ...cellProps, key: id, className: (0, import_classnames25.default)(DataTable_default.cell, className2) }, !value && row[id], typeof value === "function" ? value(row, id) : value);
26909
26903
  }) });
26910
26904
  } })
26911
26905
  ] });
@@ -26966,7 +26960,7 @@ function Heading({ size = 5, className, children, asChild, ...props }) {
26966
26960
  }
26967
26961
 
26968
26962
  // src/components/HoverTrigger.tsx
26969
- var import_react164 = require("react");
26963
+ var import_react165 = require("react");
26970
26964
 
26971
26965
  // src/components/HoverTrigger.module.css
26972
26966
  var HoverTrigger_default = {
@@ -26976,18 +26970,32 @@ var HoverTrigger_default = {
26976
26970
  // src/components/HoverTrigger.tsx
26977
26971
  var import_jsx_runtime33 = require("react/jsx-runtime");
26978
26972
  var CLOSE_DELAY = 500;
26979
- function HoverTrigger({ closeDelay = CLOSE_DELAY, children }) {
26973
+ function HoverTrigger({
26974
+ isOpen,
26975
+ onHoverStart,
26976
+ onHoverEnd,
26977
+ closeDelay = CLOSE_DELAY,
26978
+ children
26979
+ }) {
26980
26980
  const [triggerElement, popupElement] = children;
26981
- const [show, setShow] = (0, import_react164.useState)(false);
26982
- const isOverMenu = (0, import_react164.useRef)(false);
26983
- const isOverButton = (0, import_react164.useRef)(false);
26984
- const timeout = (0, import_react164.useRef)();
26985
- const handleHoverStart = () => {
26981
+ const triggerRef = (0, import_react165.useRef)(null);
26982
+ const [open, setOpen] = (0, import_react165.useState)(isOpen);
26983
+ const isOverMenu = (0, import_react165.useRef)(false);
26984
+ const isOverButton = (0, import_react165.useRef)(false);
26985
+ const timeout = (0, import_react165.useRef)();
26986
+ (0, import_react165.useEffect)(() => {
26987
+ if (isOpen !== open) {
26988
+ setOpen(isOpen);
26989
+ }
26990
+ }, [isOpen]);
26991
+ const close = () => setOpen(false);
26992
+ const handleMouseEnter = () => {
26986
26993
  isOverMenu.current = false;
26987
26994
  isOverButton.current = true;
26988
- setShow(true);
26995
+ setOpen(true);
26996
+ onHoverStart?.();
26989
26997
  };
26990
- const handleHoverEnd = () => {
26998
+ const handleMouseLeave = () => {
26991
26999
  isOverButton.current = false;
26992
27000
  checkHoverState();
26993
27001
  };
@@ -27002,28 +27010,29 @@ function HoverTrigger({ closeDelay = CLOSE_DELAY, children }) {
27002
27010
  clearTimeout(timeout.current);
27003
27011
  timeout.current = setTimeout(() => {
27004
27012
  if (!isOverMenu.current && !isOverButton.current) {
27005
- setShow(false);
27013
+ setOpen(false);
27014
+ onHoverEnd?.();
27006
27015
  isOverMenu.current = false;
27007
27016
  isOverButton.current = false;
27008
27017
  }
27009
27018
  }, closeDelay);
27010
27019
  };
27011
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)($de32f1b87079253c$export$2e1e1122cf0cba88, { children: [
27012
- (0, import_react164.cloneElement)(triggerElement, { onHoverStart: handleHoverStart, onHoverEnd: handleHoverEnd }),
27013
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Popover, { isOpen: show, isNonModal: true, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
27020
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
27021
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
27022
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Popover, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
27014
27023
  "div",
27015
27024
  {
27016
27025
  className: HoverTrigger_default.wrapper,
27017
27026
  onMouseEnter: handleMenuEnter,
27018
27027
  onMouseLeave: handleMenuLeave,
27019
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Dialog, { children: (0, import_react164.cloneElement)(popupElement) })
27028
+ children: popupElement
27020
27029
  }
27021
27030
  ) })
27022
27031
  ] });
27023
27032
  }
27024
27033
 
27025
27034
  // src/components/InlineEditField.tsx
27026
- var import_react165 = require("react");
27035
+ var import_react166 = require("react");
27027
27036
  var import_classnames28 = __toESM(require_classnames());
27028
27037
 
27029
27038
  // src/components/InlineEditField.module.css
@@ -27044,8 +27053,8 @@ function InlineEditField({
27044
27053
  onCancel,
27045
27054
  ...props
27046
27055
  }) {
27047
- const [value, setValue] = (0, import_react165.useState)(defaultValue);
27048
- const [edit, setEdit] = (0, import_react165.useState)(defaultEdit);
27056
+ const [value, setValue] = (0, import_react166.useState)(defaultValue);
27057
+ const [edit, setEdit] = (0, import_react166.useState)(defaultEdit);
27049
27058
  const handleEdit = () => setEdit(true);
27050
27059
  const handleChange = (e) => {
27051
27060
  const val = e.target.value;
@@ -27056,7 +27065,7 @@ function InlineEditField({
27056
27065
  setEdit(false);
27057
27066
  onCommit?.(value);
27058
27067
  };
27059
- const handleCancel = (0, import_react165.useCallback)(() => {
27068
+ const handleCancel = (0, import_react166.useCallback)(() => {
27060
27069
  setEdit(false);
27061
27070
  setValue(defaultValue);
27062
27071
  onCancel?.();
@@ -27177,1060 +27186,55 @@ function Modal({ children, className, ...props }) {
27177
27186
  ) });
27178
27187
  }
27179
27188
 
27180
- // node_modules/@radix-ui/react-navigation-menu/dist/index.mjs
27181
- var import_react170 = require("react");
27182
- var import_react_dom10 = __toESM(require("react-dom"), 1);
27183
-
27184
- // node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
27185
- var import_react167 = require("react");
27186
-
27187
- // node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
27188
- var import_react166 = require("react");
27189
- function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
27190
- const onEscapeKeyDown = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEscapeKeyDownProp);
27191
- (0, import_react166.useEffect)(() => {
27192
- const handleKeyDown = (event) => {
27193
- if (event.key === "Escape") onEscapeKeyDown(event);
27194
- };
27195
- ownerDocument.addEventListener("keydown", handleKeyDown);
27196
- return () => ownerDocument.removeEventListener("keydown", handleKeyDown);
27197
- }, [
27198
- onEscapeKeyDown,
27199
- ownerDocument
27200
- ]);
27201
- }
27202
-
27203
- // node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
27204
- var $5cb92bef7577960e$var$CONTEXT_UPDATE = "dismissableLayer.update";
27205
- var $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
27206
- var $5cb92bef7577960e$var$FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
27207
- var $5cb92bef7577960e$var$originalBodyPointerEvents;
27208
- var $5cb92bef7577960e$var$DismissableLayerContext = /* @__PURE__ */ (0, import_react167.createContext)({
27209
- layers: /* @__PURE__ */ new Set(),
27210
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
27211
- branches: /* @__PURE__ */ new Set()
27212
- });
27213
- var $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ (0, import_react167.forwardRef)((props, forwardedRef) => {
27214
- var _node$ownerDocument;
27215
- const { disableOutsidePointerEvents = false, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, onDismiss, ...layerProps } = props;
27216
- const context = (0, import_react167.useContext)($5cb92bef7577960e$var$DismissableLayerContext);
27217
- const [node1, setNode] = (0, import_react167.useState)(null);
27218
- const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;
27219
- const [, force] = (0, import_react167.useState)({});
27220
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(
27221
- forwardedRef,
27222
- (node) => setNode(node)
27223
- );
27224
- const layers = Array.from(context.layers);
27225
- const [highestLayerWithOutsidePointerEventsDisabled] = [
27226
- ...context.layersWithOutsidePointerEventsDisabled
27227
- ].slice(-1);
27228
- const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
27229
- const index = node1 ? layers.indexOf(node1) : -1;
27230
- const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
27231
- const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
27232
- const pointerDownOutside = $5cb92bef7577960e$var$usePointerDownOutside((event) => {
27233
- const target = event.target;
27234
- const isPointerDownOnBranch = [
27235
- ...context.branches
27236
- ].some(
27237
- (branch) => branch.contains(target)
27238
- );
27239
- if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
27240
- onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);
27241
- onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
27242
- if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
27243
- }, ownerDocument);
27244
- const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event) => {
27245
- const target = event.target;
27246
- const isFocusInBranch = [
27247
- ...context.branches
27248
- ].some(
27249
- (branch) => branch.contains(target)
27250
- );
27251
- if (isFocusInBranch) return;
27252
- onFocusOutside === null || onFocusOutside === void 0 || onFocusOutside(event);
27253
- onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
27254
- if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
27255
- }, ownerDocument);
27256
- $addc16e1bbe58fd0$export$3a72a57244d6e765((event) => {
27257
- const isHighestLayer = index === context.layers.size - 1;
27258
- if (!isHighestLayer) return;
27259
- onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);
27260
- if (!event.defaultPrevented && onDismiss) {
27261
- event.preventDefault();
27262
- onDismiss();
27263
- }
27264
- }, ownerDocument);
27265
- (0, import_react167.useEffect)(() => {
27266
- if (!node1) return;
27267
- if (disableOutsidePointerEvents) {
27268
- if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
27269
- $5cb92bef7577960e$var$originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
27270
- ownerDocument.body.style.pointerEvents = "none";
27271
- }
27272
- context.layersWithOutsidePointerEventsDisabled.add(node1);
27273
- }
27274
- context.layers.add(node1);
27275
- $5cb92bef7577960e$var$dispatchUpdate();
27276
- return () => {
27277
- if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;
27278
- };
27279
- }, [
27280
- node1,
27281
- ownerDocument,
27282
- disableOutsidePointerEvents,
27283
- context
27284
- ]);
27285
- (0, import_react167.useEffect)(() => {
27286
- return () => {
27287
- if (!node1) return;
27288
- context.layers.delete(node1);
27289
- context.layersWithOutsidePointerEventsDisabled.delete(node1);
27290
- $5cb92bef7577960e$var$dispatchUpdate();
27291
- };
27292
- }, [
27293
- node1,
27294
- context
27295
- ]);
27296
- (0, import_react167.useEffect)(() => {
27297
- const handleUpdate = () => force({});
27298
- document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
27299
- return () => document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
27300
- }, []);
27301
- return /* @__PURE__ */ (0, import_react167.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, layerProps, {
27302
- ref: composedRefs,
27303
- style: {
27304
- pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
27305
- ...props.style
27306
- },
27307
- onFocusCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocusCapture, focusOutside.onFocusCapture),
27308
- onBlurCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onBlurCapture, focusOutside.onBlurCapture),
27309
- onPointerDownCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)
27310
- }));
27311
- });
27312
- function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
27313
- const handlePointerDownOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPointerDownOutside);
27314
- const isPointerInsideReactTreeRef = (0, import_react167.useRef)(false);
27315
- const handleClickRef = (0, import_react167.useRef)(() => {
27316
- });
27317
- (0, import_react167.useEffect)(() => {
27318
- const handlePointerDown = (event) => {
27319
- if (event.target && !isPointerInsideReactTreeRef.current) {
27320
- let handleAndDispatchPointerDownOutsideEvent = function() {
27321
- $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, {
27322
- discrete: true
27323
- });
27324
- };
27325
- const eventDetail = {
27326
- originalEvent: event
27327
- };
27328
- if (event.pointerType === "touch") {
27329
- ownerDocument.removeEventListener("click", handleClickRef.current);
27330
- handleClickRef.current = handleAndDispatchPointerDownOutsideEvent;
27331
- ownerDocument.addEventListener("click", handleClickRef.current, {
27332
- once: true
27333
- });
27334
- } else handleAndDispatchPointerDownOutsideEvent();
27335
- } else
27336
- ownerDocument.removeEventListener("click", handleClickRef.current);
27337
- isPointerInsideReactTreeRef.current = false;
27338
- };
27339
- const timerId = window.setTimeout(() => {
27340
- ownerDocument.addEventListener("pointerdown", handlePointerDown);
27341
- }, 0);
27342
- return () => {
27343
- window.clearTimeout(timerId);
27344
- ownerDocument.removeEventListener("pointerdown", handlePointerDown);
27345
- ownerDocument.removeEventListener("click", handleClickRef.current);
27346
- };
27347
- }, [
27348
- ownerDocument,
27349
- handlePointerDownOutside
27350
- ]);
27351
- return {
27352
- // ensures we check React component tree (not just DOM tree)
27353
- onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true
27354
- };
27355
- }
27356
- function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
27357
- const handleFocusOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onFocusOutside);
27358
- const isFocusInsideReactTreeRef = (0, import_react167.useRef)(false);
27359
- (0, import_react167.useEffect)(() => {
27360
- const handleFocus = (event) => {
27361
- if (event.target && !isFocusInsideReactTreeRef.current) {
27362
- const eventDetail = {
27363
- originalEvent: event
27364
- };
27365
- $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {
27366
- discrete: false
27367
- });
27368
- }
27369
- };
27370
- ownerDocument.addEventListener("focusin", handleFocus);
27371
- return () => ownerDocument.removeEventListener("focusin", handleFocus);
27372
- }, [
27373
- ownerDocument,
27374
- handleFocusOutside
27375
- ]);
27376
- return {
27377
- onFocusCapture: () => isFocusInsideReactTreeRef.current = true,
27378
- onBlurCapture: () => isFocusInsideReactTreeRef.current = false
27379
- };
27380
- }
27381
- function $5cb92bef7577960e$var$dispatchUpdate() {
27382
- const event = new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE);
27383
- document.dispatchEvent(event);
27384
- }
27385
- function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
27386
- const target = detail.originalEvent.target;
27387
- const event = new CustomEvent(name, {
27388
- bubbles: false,
27389
- cancelable: true,
27390
- detail
27391
- });
27392
- if (handler) target.addEventListener(name, handler, {
27393
- once: true
27394
- });
27395
- if (discrete) $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event);
27396
- else target.dispatchEvent(event);
27397
- }
27398
-
27399
- // node_modules/@radix-ui/react-use-previous/dist/index.mjs
27400
- var import_react168 = require("react");
27401
- function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
27402
- const ref = (0, import_react168.useRef)({
27403
- value,
27404
- previous: value
27405
- });
27406
- return (0, import_react168.useMemo)(() => {
27407
- if (ref.current.value !== value) {
27408
- ref.current.previous = ref.current.value;
27409
- ref.current.value = value;
27410
- }
27411
- return ref.current.previous;
27412
- }, [
27413
- value
27414
- ]);
27415
- }
27416
-
27417
- // node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
27418
- var import_react169 = require("react");
27419
- var $ea1ef594cf570d83$export$439d29a4e110a164 = /* @__PURE__ */ (0, import_react169.forwardRef)((props, forwardedRef) => {
27420
- return /* @__PURE__ */ (0, import_react169.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, props, {
27421
- ref: forwardedRef,
27422
- style: {
27423
- // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
27424
- position: "absolute",
27425
- border: 0,
27426
- width: 1,
27427
- height: 1,
27428
- padding: 0,
27429
- margin: -1,
27430
- overflow: "hidden",
27431
- clip: "rect(0, 0, 0, 0)",
27432
- whiteSpace: "nowrap",
27433
- wordWrap: "normal",
27434
- ...props.style
27435
- }
27436
- }));
27437
- });
27438
- var $ea1ef594cf570d83$export$be92b6f5f03c0fe9 = $ea1ef594cf570d83$export$439d29a4e110a164;
27439
-
27440
- // node_modules/@radix-ui/react-navigation-menu/dist/index.mjs
27441
- var $322c88a641701f3b$var$NAVIGATION_MENU_NAME = "NavigationMenu";
27442
- var [$322c88a641701f3b$var$Collection, $322c88a641701f3b$var$useCollection, $322c88a641701f3b$var$createCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($322c88a641701f3b$var$NAVIGATION_MENU_NAME);
27443
- var [$322c88a641701f3b$var$FocusGroupCollection, $322c88a641701f3b$var$useFocusGroupCollection, $322c88a641701f3b$var$createFocusGroupCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($322c88a641701f3b$var$NAVIGATION_MENU_NAME);
27444
- var [$322c88a641701f3b$var$createNavigationMenuContext, $322c88a641701f3b$export$fb8ea5af8c9fcdf0] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($322c88a641701f3b$var$NAVIGATION_MENU_NAME, [
27445
- $322c88a641701f3b$var$createCollectionScope,
27446
- $322c88a641701f3b$var$createFocusGroupCollectionScope
27447
- ]);
27448
- var [$322c88a641701f3b$var$NavigationMenuProviderImpl, $322c88a641701f3b$var$useNavigationMenuContext] = $322c88a641701f3b$var$createNavigationMenuContext($322c88a641701f3b$var$NAVIGATION_MENU_NAME);
27449
- var [$322c88a641701f3b$var$ViewportContentProvider, $322c88a641701f3b$var$useViewportContentContext] = $322c88a641701f3b$var$createNavigationMenuContext($322c88a641701f3b$var$NAVIGATION_MENU_NAME);
27450
- var $322c88a641701f3b$export$5b2278cf1e8bcae2 = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
27451
- const { __scopeNavigationMenu, value: valueProp, onValueChange, defaultValue, delayDuration = 200, skipDelayDuration = 300, orientation = "horizontal", dir, ...NavigationMenuProps } = props;
27452
- const [navigationMenu, setNavigationMenu] = (0, import_react170.useState)(null);
27453
- const composedRef = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(
27454
- forwardedRef,
27455
- (node) => setNavigationMenu(node)
27456
- );
27457
- const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
27458
- const openTimerRef = (0, import_react170.useRef)(0);
27459
- const closeTimerRef = (0, import_react170.useRef)(0);
27460
- const skipDelayTimerRef = (0, import_react170.useRef)(0);
27461
- const [isOpenDelayed, setIsOpenDelayed] = (0, import_react170.useState)(true);
27462
- const [value1 = "", setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
27463
- prop: valueProp,
27464
- onChange: (value) => {
27465
- const isOpen = value !== "";
27466
- const hasSkipDelayDuration = skipDelayDuration > 0;
27467
- if (isOpen) {
27468
- window.clearTimeout(skipDelayTimerRef.current);
27469
- if (hasSkipDelayDuration) setIsOpenDelayed(false);
27470
- } else {
27471
- window.clearTimeout(skipDelayTimerRef.current);
27472
- skipDelayTimerRef.current = window.setTimeout(
27473
- () => setIsOpenDelayed(true),
27474
- skipDelayDuration
27475
- );
27476
- }
27477
- onValueChange === null || onValueChange === void 0 || onValueChange(value);
27478
- },
27479
- defaultProp: defaultValue
27480
- });
27481
- const startCloseTimer = (0, import_react170.useCallback)(() => {
27482
- window.clearTimeout(closeTimerRef.current);
27483
- closeTimerRef.current = window.setTimeout(
27484
- () => setValue(""),
27485
- 150
27486
- );
27487
- }, [
27488
- setValue
27489
- ]);
27490
- const handleOpen = (0, import_react170.useCallback)((itemValue) => {
27491
- window.clearTimeout(closeTimerRef.current);
27492
- setValue(itemValue);
27493
- }, [
27494
- setValue
27495
- ]);
27496
- const handleDelayedOpen = (0, import_react170.useCallback)((itemValue) => {
27497
- const isOpenItem = value1 === itemValue;
27498
- if (isOpenItem)
27499
- window.clearTimeout(closeTimerRef.current);
27500
- else openTimerRef.current = window.setTimeout(() => {
27501
- window.clearTimeout(closeTimerRef.current);
27502
- setValue(itemValue);
27503
- }, delayDuration);
27504
- }, [
27505
- value1,
27506
- setValue,
27507
- delayDuration
27508
- ]);
27509
- (0, import_react170.useEffect)(() => {
27510
- return () => {
27511
- window.clearTimeout(openTimerRef.current);
27512
- window.clearTimeout(closeTimerRef.current);
27513
- window.clearTimeout(skipDelayTimerRef.current);
27514
- };
27515
- }, []);
27516
- return /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$NavigationMenuProvider, {
27517
- scope: __scopeNavigationMenu,
27518
- isRootMenu: true,
27519
- value: value1,
27520
- dir: direction,
27521
- orientation,
27522
- rootNavigationMenu: navigationMenu,
27523
- onTriggerEnter: (itemValue) => {
27524
- window.clearTimeout(openTimerRef.current);
27525
- if (isOpenDelayed) handleDelayedOpen(itemValue);
27526
- else handleOpen(itemValue);
27527
- },
27528
- onTriggerLeave: () => {
27529
- window.clearTimeout(openTimerRef.current);
27530
- startCloseTimer();
27531
- },
27532
- onContentEnter: () => window.clearTimeout(closeTimerRef.current),
27533
- onContentLeave: startCloseTimer,
27534
- onItemSelect: (itemValue) => {
27535
- setValue(
27536
- (prevValue) => prevValue === itemValue ? "" : itemValue
27537
- );
27538
- },
27539
- onItemDismiss: () => setValue("")
27540
- }, /* @__PURE__ */ (0, import_react170.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.nav, _extends({
27541
- "aria-label": "Main",
27542
- "data-orientation": orientation,
27543
- dir: direction
27544
- }, NavigationMenuProps, {
27545
- ref: composedRef
27546
- })));
27547
- });
27548
- var $322c88a641701f3b$var$NavigationMenuProvider = (props) => {
27549
- const { scope, isRootMenu, rootNavigationMenu, dir, orientation, children, value, onItemSelect, onItemDismiss, onTriggerEnter, onTriggerLeave, onContentEnter, onContentLeave } = props;
27550
- const [viewport, setViewport] = (0, import_react170.useState)(null);
27551
- const [viewportContent, setViewportContent] = (0, import_react170.useState)(/* @__PURE__ */ new Map());
27552
- const [indicatorTrack, setIndicatorTrack] = (0, import_react170.useState)(null);
27553
- return /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$NavigationMenuProviderImpl, {
27554
- scope,
27555
- isRootMenu,
27556
- rootNavigationMenu,
27557
- value,
27558
- previousValue: $010c2913dbd2fe3d$export$5cae361ad82dce8b(value),
27559
- baseId: $1746a345f3d73bb7$export$f680877a34711e37(),
27560
- dir,
27561
- orientation,
27562
- viewport,
27563
- onViewportChange: setViewport,
27564
- indicatorTrack,
27565
- onIndicatorTrackChange: setIndicatorTrack,
27566
- onTriggerEnter: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onTriggerEnter),
27567
- onTriggerLeave: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onTriggerLeave),
27568
- onContentEnter: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onContentEnter),
27569
- onContentLeave: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onContentLeave),
27570
- onItemSelect: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onItemSelect),
27571
- onItemDismiss: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onItemDismiss),
27572
- onViewportContentChange: (0, import_react170.useCallback)((contentValue, contentData) => {
27573
- setViewportContent((prevContent) => {
27574
- prevContent.set(contentValue, contentData);
27575
- return new Map(prevContent);
27576
- });
27577
- }, []),
27578
- onViewportContentRemove: (0, import_react170.useCallback)((contentValue) => {
27579
- setViewportContent((prevContent) => {
27580
- if (!prevContent.has(contentValue)) return prevContent;
27581
- prevContent.delete(contentValue);
27582
- return new Map(prevContent);
27583
- });
27584
- }, [])
27585
- }, /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$Collection.Provider, {
27586
- scope
27587
- }, /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$ViewportContentProvider, {
27588
- scope,
27589
- items: viewportContent
27590
- }, children)));
27591
- };
27592
- var $322c88a641701f3b$var$LIST_NAME = "NavigationMenuList";
27593
- var $322c88a641701f3b$export$c361068a95fd2286 = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
27594
- const { __scopeNavigationMenu, ...listProps } = props;
27595
- const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$LIST_NAME, __scopeNavigationMenu);
27596
- const list = /* @__PURE__ */ (0, import_react170.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.ul, _extends({
27597
- "data-orientation": context.orientation
27598
- }, listProps, {
27599
- ref: forwardedRef
27600
- }));
27601
- return /* @__PURE__ */ (0, import_react170.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, {
27602
- style: {
27603
- position: "relative"
27604
- },
27605
- ref: context.onIndicatorTrackChange
27606
- }, /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$Collection.Slot, {
27607
- scope: __scopeNavigationMenu
27608
- }, context.isRootMenu ? /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$FocusGroup, {
27609
- asChild: true
27610
- }, list) : list));
27611
- });
27612
- var $322c88a641701f3b$var$ITEM_NAME = "NavigationMenuItem";
27613
- var [$322c88a641701f3b$var$NavigationMenuItemContextProvider, $322c88a641701f3b$var$useNavigationMenuItemContext] = $322c88a641701f3b$var$createNavigationMenuContext($322c88a641701f3b$var$ITEM_NAME);
27614
- var $322c88a641701f3b$export$ffdbb83a2de845c2 = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
27615
- const { __scopeNavigationMenu, value: valueProp, ...itemProps } = props;
27616
- const autoValue = $1746a345f3d73bb7$export$f680877a34711e37();
27617
- const value = valueProp || autoValue || "LEGACY_REACT_AUTO_VALUE";
27618
- const contentRef = (0, import_react170.useRef)(null);
27619
- const triggerRef = (0, import_react170.useRef)(null);
27620
- const focusProxyRef = (0, import_react170.useRef)(null);
27621
- const restoreContentTabOrderRef = (0, import_react170.useRef)(() => {
27622
- });
27623
- const wasEscapeCloseRef = (0, import_react170.useRef)(false);
27624
- const handleContentEntry = (0, import_react170.useCallback)((side = "start") => {
27625
- if (contentRef.current) {
27626
- restoreContentTabOrderRef.current();
27627
- const candidates = $322c88a641701f3b$var$getTabbableCandidates(contentRef.current);
27628
- if (candidates.length) $322c88a641701f3b$var$focusFirst(side === "start" ? candidates : candidates.reverse());
27629
- }
27630
- }, []);
27631
- const handleContentExit = (0, import_react170.useCallback)(() => {
27632
- if (contentRef.current) {
27633
- const candidates = $322c88a641701f3b$var$getTabbableCandidates(contentRef.current);
27634
- if (candidates.length) restoreContentTabOrderRef.current = $322c88a641701f3b$var$removeFromTabOrder(candidates);
27635
- }
27636
- }, []);
27637
- return /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$NavigationMenuItemContextProvider, {
27638
- scope: __scopeNavigationMenu,
27639
- value,
27640
- triggerRef,
27641
- contentRef,
27642
- focusProxyRef,
27643
- wasEscapeCloseRef,
27644
- onEntryKeyDown: handleContentEntry,
27645
- onFocusProxyEnter: handleContentEntry,
27646
- onRootContentClose: handleContentExit,
27647
- onContentFocusOutside: handleContentExit
27648
- }, /* @__PURE__ */ (0, import_react170.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.li, _extends({}, itemProps, {
27649
- ref: forwardedRef
27650
- })));
27651
- });
27652
- var $322c88a641701f3b$var$TRIGGER_NAME = "NavigationMenuTrigger";
27653
- var $322c88a641701f3b$export$37fe8002734d8f2 = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
27654
- const { __scopeNavigationMenu, disabled, ...triggerProps } = props;
27655
- const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$TRIGGER_NAME, props.__scopeNavigationMenu);
27656
- const itemContext = $322c88a641701f3b$var$useNavigationMenuItemContext($322c88a641701f3b$var$TRIGGER_NAME, props.__scopeNavigationMenu);
27657
- const ref = (0, import_react170.useRef)(null);
27658
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(ref, itemContext.triggerRef, forwardedRef);
27659
- const triggerId = $322c88a641701f3b$var$makeTriggerId(context.baseId, itemContext.value);
27660
- const contentId = $322c88a641701f3b$var$makeContentId(context.baseId, itemContext.value);
27661
- const hasPointerMoveOpenedRef = (0, import_react170.useRef)(false);
27662
- const wasClickCloseRef = (0, import_react170.useRef)(false);
27663
- const open = itemContext.value === context.value;
27664
- return /* @__PURE__ */ (0, import_react170.createElement)(import_react170.Fragment, null, /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$Collection.ItemSlot, {
27665
- scope: __scopeNavigationMenu,
27666
- value: itemContext.value
27667
- }, /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$FocusGroupItem, {
27668
- asChild: true
27669
- }, /* @__PURE__ */ (0, import_react170.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
27670
- id: triggerId,
27671
- disabled,
27672
- "data-disabled": disabled ? "" : void 0,
27673
- "data-state": $322c88a641701f3b$var$getOpenState(open),
27674
- "aria-expanded": open,
27675
- "aria-controls": contentId
27676
- }, triggerProps, {
27677
- ref: composedRefs,
27678
- onPointerEnter: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerEnter, () => {
27679
- wasClickCloseRef.current = false;
27680
- itemContext.wasEscapeCloseRef.current = false;
27681
- }),
27682
- onPointerMove: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, $322c88a641701f3b$var$whenMouse(() => {
27683
- if (disabled || wasClickCloseRef.current || itemContext.wasEscapeCloseRef.current || hasPointerMoveOpenedRef.current) return;
27684
- context.onTriggerEnter(itemContext.value);
27685
- hasPointerMoveOpenedRef.current = true;
27686
- })),
27687
- onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave, $322c88a641701f3b$var$whenMouse(() => {
27688
- if (disabled) return;
27689
- context.onTriggerLeave();
27690
- hasPointerMoveOpenedRef.current = false;
27691
- })),
27692
- onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, () => {
27693
- context.onItemSelect(itemContext.value);
27694
- wasClickCloseRef.current = open;
27695
- }),
27696
- onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event) => {
27697
- const verticalEntryKey = context.dir === "rtl" ? "ArrowLeft" : "ArrowRight";
27698
- const entryKey = {
27699
- horizontal: "ArrowDown",
27700
- vertical: verticalEntryKey
27701
- }[context.orientation];
27702
- if (open && event.key === entryKey) {
27703
- itemContext.onEntryKeyDown();
27704
- event.preventDefault();
27705
- }
27706
- })
27707
- })))), open && /* @__PURE__ */ (0, import_react170.createElement)(import_react170.Fragment, null, /* @__PURE__ */ (0, import_react170.createElement)($ea1ef594cf570d83$export$be92b6f5f03c0fe9, {
27708
- "aria-hidden": true,
27709
- tabIndex: 0,
27710
- ref: itemContext.focusProxyRef,
27711
- onFocus: (event) => {
27712
- const content = itemContext.contentRef.current;
27713
- const prevFocusedElement = event.relatedTarget;
27714
- const wasTriggerFocused = prevFocusedElement === ref.current;
27715
- const wasFocusFromContent = content === null || content === void 0 ? void 0 : content.contains(prevFocusedElement);
27716
- if (wasTriggerFocused || !wasFocusFromContent) itemContext.onFocusProxyEnter(wasTriggerFocused ? "start" : "end");
27717
- }
27718
- }), context.viewport && /* @__PURE__ */ (0, import_react170.createElement)("span", {
27719
- "aria-owns": contentId
27720
- })));
27721
- });
27722
- var $322c88a641701f3b$var$LINK_SELECT = "navigationMenu.linkSelect";
27723
- var $322c88a641701f3b$export$6893bf21536567da = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
27724
- const { __scopeNavigationMenu, active, onSelect, ...linkProps } = props;
27725
- return /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$FocusGroupItem, {
27726
- asChild: true
27727
- }, /* @__PURE__ */ (0, import_react170.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.a, _extends({
27728
- "data-active": active ? "" : void 0,
27729
- "aria-current": active ? "page" : void 0
27730
- }, linkProps, {
27731
- ref: forwardedRef,
27732
- onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, (event1) => {
27733
- const target = event1.target;
27734
- const linkSelectEvent = new CustomEvent($322c88a641701f3b$var$LINK_SELECT, {
27735
- bubbles: true,
27736
- cancelable: true
27737
- });
27738
- target.addEventListener(
27739
- $322c88a641701f3b$var$LINK_SELECT,
27740
- (event) => onSelect === null || onSelect === void 0 ? void 0 : onSelect(event),
27741
- {
27742
- once: true
27743
- }
27744
- );
27745
- $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, linkSelectEvent);
27746
- if (!linkSelectEvent.defaultPrevented && !event1.metaKey) {
27747
- const rootContentDismissEvent = new CustomEvent($322c88a641701f3b$var$ROOT_CONTENT_DISMISS, {
27748
- bubbles: true,
27749
- cancelable: true
27750
- });
27751
- $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, rootContentDismissEvent);
27752
- }
27753
- }, {
27754
- checkForDefaultPrevented: false
27755
- })
27756
- })));
27757
- });
27758
- var $322c88a641701f3b$var$INDICATOR_NAME = "NavigationMenuIndicator";
27759
- var $322c88a641701f3b$export$8ddb526647c0d8fb = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
27760
- const { forceMount, ...indicatorProps } = props;
27761
- const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$INDICATOR_NAME, props.__scopeNavigationMenu);
27762
- const isVisible = Boolean(context.value);
27763
- return context.indicatorTrack ? /* @__PURE__ */ import_react_dom10.default.createPortal(/* @__PURE__ */ (0, import_react170.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
27764
- present: forceMount || isVisible
27765
- }, /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$NavigationMenuIndicatorImpl, _extends({}, indicatorProps, {
27766
- ref: forwardedRef
27767
- }))), context.indicatorTrack) : null;
27768
- });
27769
- var $322c88a641701f3b$var$NavigationMenuIndicatorImpl = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
27770
- const { __scopeNavigationMenu, ...indicatorProps } = props;
27771
- const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$INDICATOR_NAME, __scopeNavigationMenu);
27772
- const getItems = $322c88a641701f3b$var$useCollection(__scopeNavigationMenu);
27773
- const [activeTrigger, setActiveTrigger] = (0, import_react170.useState)(null);
27774
- const [position, setPosition] = (0, import_react170.useState)(null);
27775
- const isHorizontal = context.orientation === "horizontal";
27776
- const isVisible = Boolean(context.value);
27777
- (0, import_react170.useEffect)(() => {
27778
- var _items$find;
27779
- const items = getItems();
27780
- const triggerNode = (_items$find = items.find(
27781
- (item) => item.value === context.value
27782
- )) === null || _items$find === void 0 ? void 0 : _items$find.ref.current;
27783
- if (triggerNode) setActiveTrigger(triggerNode);
27784
- }, [
27785
- getItems,
27786
- context.value
27787
- ]);
27788
- const handlePositionChange = () => {
27789
- if (activeTrigger) setPosition({
27790
- size: isHorizontal ? activeTrigger.offsetWidth : activeTrigger.offsetHeight,
27791
- offset: isHorizontal ? activeTrigger.offsetLeft : activeTrigger.offsetTop
27792
- });
27793
- };
27794
- $322c88a641701f3b$var$useResizeObserver(activeTrigger, handlePositionChange);
27795
- $322c88a641701f3b$var$useResizeObserver(context.indicatorTrack, handlePositionChange);
27796
- return position ? /* @__PURE__ */ (0, import_react170.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
27797
- "aria-hidden": true,
27798
- "data-state": isVisible ? "visible" : "hidden",
27799
- "data-orientation": context.orientation
27800
- }, indicatorProps, {
27801
- ref: forwardedRef,
27802
- style: {
27803
- position: "absolute",
27804
- ...isHorizontal ? {
27805
- left: 0,
27806
- width: position.size + "px",
27807
- transform: `translateX(${position.offset}px)`
27808
- } : {
27809
- top: 0,
27810
- height: position.size + "px",
27811
- transform: `translateY(${position.offset}px)`
27812
- },
27813
- ...indicatorProps.style
27814
- }
27815
- })) : null;
27816
- });
27817
- var $322c88a641701f3b$var$CONTENT_NAME = "NavigationMenuContent";
27818
- var $322c88a641701f3b$export$38e00e996c2f93f7 = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
27819
- const { forceMount, ...contentProps } = props;
27820
- const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$CONTENT_NAME, props.__scopeNavigationMenu);
27821
- const itemContext = $322c88a641701f3b$var$useNavigationMenuItemContext($322c88a641701f3b$var$CONTENT_NAME, props.__scopeNavigationMenu);
27822
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(itemContext.contentRef, forwardedRef);
27823
- const open = itemContext.value === context.value;
27824
- const commonProps = {
27825
- value: itemContext.value,
27826
- triggerRef: itemContext.triggerRef,
27827
- focusProxyRef: itemContext.focusProxyRef,
27828
- wasEscapeCloseRef: itemContext.wasEscapeCloseRef,
27829
- onContentFocusOutside: itemContext.onContentFocusOutside,
27830
- onRootContentClose: itemContext.onRootContentClose,
27831
- ...contentProps
27832
- };
27833
- return !context.viewport ? /* @__PURE__ */ (0, import_react170.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
27834
- present: forceMount || open
27835
- }, /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$NavigationMenuContentImpl, _extends({
27836
- "data-state": $322c88a641701f3b$var$getOpenState(open)
27837
- }, commonProps, {
27838
- ref: composedRefs,
27839
- onPointerEnter: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerEnter, context.onContentEnter),
27840
- onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave, $322c88a641701f3b$var$whenMouse(context.onContentLeave)),
27841
- style: {
27842
- // Prevent interaction when animating out
27843
- pointerEvents: !open && context.isRootMenu ? "none" : void 0,
27844
- ...commonProps.style
27845
- }
27846
- }))) : /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$ViewportContentMounter, _extends({
27847
- forceMount
27848
- }, commonProps, {
27849
- ref: composedRefs
27850
- }));
27851
- });
27852
- var $322c88a641701f3b$var$ViewportContentMounter = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
27853
- const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$CONTENT_NAME, props.__scopeNavigationMenu);
27854
- const { onViewportContentChange, onViewportContentRemove } = context;
27855
- $9f79659886946c16$export$e5c5a5f917a5871c(() => {
27856
- onViewportContentChange(props.value, {
27857
- ref: forwardedRef,
27858
- ...props
27859
- });
27860
- }, [
27861
- props,
27862
- forwardedRef,
27863
- onViewportContentChange
27864
- ]);
27865
- $9f79659886946c16$export$e5c5a5f917a5871c(() => {
27866
- return () => onViewportContentRemove(props.value);
27867
- }, [
27868
- props.value,
27869
- onViewportContentRemove
27870
- ]);
27871
- return null;
27872
- });
27873
- var $322c88a641701f3b$var$ROOT_CONTENT_DISMISS = "navigationMenu.rootContentDismiss";
27874
- var $322c88a641701f3b$var$NavigationMenuContentImpl = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
27875
- const { __scopeNavigationMenu, value, triggerRef, focusProxyRef, wasEscapeCloseRef, onRootContentClose, onContentFocusOutside, ...contentProps } = props;
27876
- const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$CONTENT_NAME, __scopeNavigationMenu);
27877
- const ref = (0, import_react170.useRef)(null);
27878
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(ref, forwardedRef);
27879
- const triggerId = $322c88a641701f3b$var$makeTriggerId(context.baseId, value);
27880
- const contentId = $322c88a641701f3b$var$makeContentId(context.baseId, value);
27881
- const getItems = $322c88a641701f3b$var$useCollection(__scopeNavigationMenu);
27882
- const prevMotionAttributeRef = (0, import_react170.useRef)(null);
27883
- const { onItemDismiss } = context;
27884
- (0, import_react170.useEffect)(() => {
27885
- const content = ref.current;
27886
- if (context.isRootMenu && content) {
27887
- const handleClose = () => {
27888
- var _triggerRef$current;
27889
- onItemDismiss();
27890
- onRootContentClose();
27891
- if (content.contains(document.activeElement)) (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 || _triggerRef$current.focus();
27892
- };
27893
- content.addEventListener($322c88a641701f3b$var$ROOT_CONTENT_DISMISS, handleClose);
27894
- return () => content.removeEventListener($322c88a641701f3b$var$ROOT_CONTENT_DISMISS, handleClose);
27895
- }
27896
- }, [
27897
- context.isRootMenu,
27898
- props.value,
27899
- triggerRef,
27900
- onItemDismiss,
27901
- onRootContentClose
27902
- ]);
27903
- const motionAttribute = (0, import_react170.useMemo)(() => {
27904
- const items = getItems();
27905
- const values = items.map(
27906
- (item) => item.value
27907
- );
27908
- if (context.dir === "rtl") values.reverse();
27909
- const index = values.indexOf(context.value);
27910
- const prevIndex = values.indexOf(context.previousValue);
27911
- const isSelected = value === context.value;
27912
- const wasSelected = prevIndex === values.indexOf(value);
27913
- if (!isSelected && !wasSelected) return prevMotionAttributeRef.current;
27914
- const attribute = (() => {
27915
- if (index !== prevIndex) {
27916
- if (isSelected && prevIndex !== -1) return index > prevIndex ? "from-end" : "from-start";
27917
- if (wasSelected && index !== -1) return index > prevIndex ? "to-start" : "to-end";
27918
- }
27919
- return null;
27920
- })();
27921
- prevMotionAttributeRef.current = attribute;
27922
- return attribute;
27923
- }, [
27924
- context.previousValue,
27925
- context.value,
27926
- context.dir,
27927
- getItems,
27928
- value
27929
- ]);
27930
- return /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$FocusGroup, {
27931
- asChild: true
27932
- }, /* @__PURE__ */ (0, import_react170.createElement)($5cb92bef7577960e$export$177fb62ff3ec1f22, _extends({
27933
- id: contentId,
27934
- "aria-labelledby": triggerId,
27935
- "data-motion": motionAttribute,
27936
- "data-orientation": context.orientation
27937
- }, contentProps, {
27938
- ref: composedRefs,
27939
- onDismiss: () => {
27940
- var _ref$current;
27941
- const rootContentDismissEvent = new Event($322c88a641701f3b$var$ROOT_CONTENT_DISMISS, {
27942
- bubbles: true,
27943
- cancelable: true
27944
- });
27945
- (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.dispatchEvent(rootContentDismissEvent);
27946
- },
27947
- onFocusOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocusOutside, (event) => {
27948
- var _context$rootNavigati;
27949
- onContentFocusOutside();
27950
- const target = event.target;
27951
- if ((_context$rootNavigati = context.rootNavigationMenu) !== null && _context$rootNavigati !== void 0 && _context$rootNavigati.contains(target)) event.preventDefault();
27952
- }),
27953
- onPointerDownOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownOutside, (event) => {
27954
- var _context$viewport;
27955
- const target = event.target;
27956
- const isTrigger = getItems().some((item) => {
27957
- var _item$ref$current;
27958
- return (_item$ref$current = item.ref.current) === null || _item$ref$current === void 0 ? void 0 : _item$ref$current.contains(target);
27959
- });
27960
- const isRootViewport = context.isRootMenu && ((_context$viewport = context.viewport) === null || _context$viewport === void 0 ? void 0 : _context$viewport.contains(target));
27961
- if (isTrigger || isRootViewport || !context.isRootMenu) event.preventDefault();
27962
- }),
27963
- onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event) => {
27964
- const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;
27965
- const isTabKey = event.key === "Tab" && !isMetaKey;
27966
- if (isTabKey) {
27967
- const candidates = $322c88a641701f3b$var$getTabbableCandidates(event.currentTarget);
27968
- const focusedElement = document.activeElement;
27969
- const index = candidates.findIndex(
27970
- (candidate) => candidate === focusedElement
27971
- );
27972
- const isMovingBackwards = event.shiftKey;
27973
- const nextCandidates = isMovingBackwards ? candidates.slice(0, index).reverse() : candidates.slice(index + 1, candidates.length);
27974
- if ($322c88a641701f3b$var$focusFirst(nextCandidates))
27975
- event.preventDefault();
27976
- else {
27977
- var _focusProxyRef$curren;
27978
- (_focusProxyRef$curren = focusProxyRef.current) === null || _focusProxyRef$curren === void 0 || _focusProxyRef$curren.focus();
27979
- }
27980
- }
27981
- }),
27982
- onEscapeKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onEscapeKeyDown, (event) => {
27983
- wasEscapeCloseRef.current = true;
27984
- })
27985
- })));
27986
- });
27987
- var $322c88a641701f3b$var$VIEWPORT_NAME = "NavigationMenuViewport";
27988
- var $322c88a641701f3b$export$ee880b97cc6d44a5 = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
27989
- const { forceMount, ...viewportProps } = props;
27990
- const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$VIEWPORT_NAME, props.__scopeNavigationMenu);
27991
- const open = Boolean(context.value);
27992
- return /* @__PURE__ */ (0, import_react170.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
27993
- present: forceMount || open
27994
- }, /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$NavigationMenuViewportImpl, _extends({}, viewportProps, {
27995
- ref: forwardedRef
27996
- })));
27997
- });
27998
- var $322c88a641701f3b$var$NavigationMenuViewportImpl = /* @__PURE__ */ (0, import_react170.forwardRef)((props1, forwardedRef) => {
27999
- const { __scopeNavigationMenu, children, ...viewportImplProps } = props1;
28000
- const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$VIEWPORT_NAME, __scopeNavigationMenu);
28001
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.onViewportChange);
28002
- const viewportContentContext = $322c88a641701f3b$var$useViewportContentContext($322c88a641701f3b$var$CONTENT_NAME, props1.__scopeNavigationMenu);
28003
- const [size, setSize] = (0, import_react170.useState)(null);
28004
- const [content, setContent] = (0, import_react170.useState)(null);
28005
- const viewportWidth = size ? (size === null || size === void 0 ? void 0 : size.width) + "px" : void 0;
28006
- const viewportHeight = size ? (size === null || size === void 0 ? void 0 : size.height) + "px" : void 0;
28007
- const open = Boolean(context.value);
28008
- const activeContentValue = open ? context.value : context.previousValue;
28009
- const handleSizeChange = () => {
28010
- if (content) setSize({
28011
- width: content.offsetWidth,
28012
- height: content.offsetHeight
28013
- });
28014
- };
28015
- $322c88a641701f3b$var$useResizeObserver(content, handleSizeChange);
28016
- return /* @__PURE__ */ (0, import_react170.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
28017
- "data-state": $322c88a641701f3b$var$getOpenState(open),
28018
- "data-orientation": context.orientation
28019
- }, viewportImplProps, {
28020
- ref: composedRefs,
28021
- style: {
28022
- // Prevent interaction when animating out
28023
- pointerEvents: !open && context.isRootMenu ? "none" : void 0,
28024
- ["--radix-navigation-menu-viewport-width"]: viewportWidth,
28025
- ["--radix-navigation-menu-viewport-height"]: viewportHeight,
28026
- ...viewportImplProps.style
28027
- },
28028
- onPointerEnter: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props1.onPointerEnter, context.onContentEnter),
28029
- onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props1.onPointerLeave, $322c88a641701f3b$var$whenMouse(context.onContentLeave))
28030
- }), Array.from(viewportContentContext.items).map(([value, { ref, forceMount, ...props }]) => {
28031
- const isActive = activeContentValue === value;
28032
- return /* @__PURE__ */ (0, import_react170.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
28033
- key: value,
28034
- present: forceMount || isActive
28035
- }, /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$NavigationMenuContentImpl, _extends({}, props, {
28036
- ref: $6ed0406888f73fc4$export$43e446d32b3d21af(ref, (node) => {
28037
- if (isActive && node) setContent(node);
28038
- })
28039
- })));
28040
- }));
28041
- });
28042
- var $322c88a641701f3b$var$FOCUS_GROUP_NAME = "FocusGroup";
28043
- var $322c88a641701f3b$var$FocusGroup = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
28044
- const { __scopeNavigationMenu, ...groupProps } = props;
28045
- const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$FOCUS_GROUP_NAME, __scopeNavigationMenu);
28046
- return /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$FocusGroupCollection.Provider, {
28047
- scope: __scopeNavigationMenu
28048
- }, /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$FocusGroupCollection.Slot, {
28049
- scope: __scopeNavigationMenu
28050
- }, /* @__PURE__ */ (0, import_react170.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
28051
- dir: context.dir
28052
- }, groupProps, {
28053
- ref: forwardedRef
28054
- }))));
28055
- });
28056
- var $322c88a641701f3b$var$ARROW_KEYS = [
28057
- "ArrowRight",
28058
- "ArrowLeft",
28059
- "ArrowUp",
28060
- "ArrowDown"
28061
- ];
28062
- var $322c88a641701f3b$var$FOCUS_GROUP_ITEM_NAME = "FocusGroupItem";
28063
- var $322c88a641701f3b$var$FocusGroupItem = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
28064
- const { __scopeNavigationMenu, ...groupProps } = props;
28065
- const getItems = $322c88a641701f3b$var$useFocusGroupCollection(__scopeNavigationMenu);
28066
- const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$FOCUS_GROUP_ITEM_NAME, __scopeNavigationMenu);
28067
- return /* @__PURE__ */ (0, import_react170.createElement)($322c88a641701f3b$var$FocusGroupCollection.ItemSlot, {
28068
- scope: __scopeNavigationMenu
28069
- }, /* @__PURE__ */ (0, import_react170.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({}, groupProps, {
28070
- ref: forwardedRef,
28071
- onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event) => {
28072
- const isFocusNavigationKey = [
28073
- "Home",
28074
- "End",
28075
- ...$322c88a641701f3b$var$ARROW_KEYS
28076
- ].includes(event.key);
28077
- if (isFocusNavigationKey) {
28078
- let candidateNodes = getItems().map(
28079
- (item) => item.ref.current
28080
- );
28081
- const prevItemKey = context.dir === "rtl" ? "ArrowRight" : "ArrowLeft";
28082
- const prevKeys = [
28083
- prevItemKey,
28084
- "ArrowUp",
28085
- "End"
28086
- ];
28087
- if (prevKeys.includes(event.key)) candidateNodes.reverse();
28088
- if ($322c88a641701f3b$var$ARROW_KEYS.includes(event.key)) {
28089
- const currentIndex = candidateNodes.indexOf(event.currentTarget);
28090
- candidateNodes = candidateNodes.slice(currentIndex + 1);
28091
- }
28092
- setTimeout(
28093
- () => $322c88a641701f3b$var$focusFirst(candidateNodes)
28094
- );
28095
- event.preventDefault();
28096
- }
28097
- })
28098
- })));
28099
- });
28100
- function $322c88a641701f3b$var$getTabbableCandidates(container) {
28101
- const nodes = [];
28102
- const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
28103
- acceptNode: (node) => {
28104
- const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
28105
- if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
28106
- return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
28107
- }
28108
- });
28109
- while (walker.nextNode()) nodes.push(walker.currentNode);
28110
- return nodes;
28111
- }
28112
- function $322c88a641701f3b$var$focusFirst(candidates) {
28113
- const previouslyFocusedElement = document.activeElement;
28114
- return candidates.some((candidate) => {
28115
- if (candidate === previouslyFocusedElement) return true;
28116
- candidate.focus();
28117
- return document.activeElement !== previouslyFocusedElement;
28118
- });
28119
- }
28120
- function $322c88a641701f3b$var$removeFromTabOrder(candidates) {
28121
- candidates.forEach((candidate) => {
28122
- candidate.dataset.tabindex = candidate.getAttribute("tabindex") || "";
28123
- candidate.setAttribute("tabindex", "-1");
28124
- });
28125
- return () => {
28126
- candidates.forEach((candidate) => {
28127
- const prevTabIndex = candidate.dataset.tabindex;
28128
- candidate.setAttribute("tabindex", prevTabIndex);
28129
- });
28130
- };
28131
- }
28132
- function $322c88a641701f3b$var$useResizeObserver(element, onResize) {
28133
- const handleResize = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onResize);
28134
- $9f79659886946c16$export$e5c5a5f917a5871c(() => {
28135
- let rAF = 0;
28136
- if (element) {
28137
- const resizeObserver = new ResizeObserver(() => {
28138
- cancelAnimationFrame(rAF);
28139
- rAF = window.requestAnimationFrame(handleResize);
28140
- });
28141
- resizeObserver.observe(element);
28142
- return () => {
28143
- window.cancelAnimationFrame(rAF);
28144
- resizeObserver.unobserve(element);
28145
- };
28146
- }
28147
- }, [
28148
- element,
28149
- handleResize
28150
- ]);
28151
- }
28152
- function $322c88a641701f3b$var$getOpenState(open) {
28153
- return open ? "open" : "closed";
28154
- }
28155
- function $322c88a641701f3b$var$makeTriggerId(baseId, value) {
28156
- return `${baseId}-trigger-${value}`;
28157
- }
28158
- function $322c88a641701f3b$var$makeContentId(baseId, value) {
28159
- return `${baseId}-content-${value}`;
28160
- }
28161
- function $322c88a641701f3b$var$whenMouse(handler) {
28162
- return (event) => event.pointerType === "mouse" ? handler(event) : void 0;
28163
- }
28164
- var $322c88a641701f3b$export$be92b6f5f03c0fe9 = $322c88a641701f3b$export$5b2278cf1e8bcae2;
28165
- var $322c88a641701f3b$export$54c2e3dc7acea9f5 = $322c88a641701f3b$export$c361068a95fd2286;
28166
- var $322c88a641701f3b$export$6d08773d2e66f8f2 = $322c88a641701f3b$export$ffdbb83a2de845c2;
28167
- var $322c88a641701f3b$export$41fb9f06171c75f4 = $322c88a641701f3b$export$37fe8002734d8f2;
28168
- var $322c88a641701f3b$export$a6c7ac8248d6e38a = $322c88a641701f3b$export$6893bf21536567da;
28169
- var $322c88a641701f3b$export$adb584737d712b70 = $322c88a641701f3b$export$8ddb526647c0d8fb;
28170
- var $322c88a641701f3b$export$7c6e2c02157bb7d2 = $322c88a641701f3b$export$38e00e996c2f93f7;
28171
- var $322c88a641701f3b$export$d5c6c08dc2d3ca7 = $322c88a641701f3b$export$ee880b97cc6d44a5;
28172
-
28173
27189
  // src/components/NavigationMenu.tsx
28174
27190
  var import_classnames33 = __toESM(require_classnames());
28175
27191
 
27192
+ // src/components/hooks/useNavigationMenu.ts
27193
+ var initialState3 = { activeMenu: null };
27194
+ var store3 = create(() => ({ ...initialState3 }));
27195
+ function setActiveMenu(activeMenu) {
27196
+ store3.setState({ activeMenu });
27197
+ }
27198
+ var useNavigationMenu = store3;
27199
+
28176
27200
  // src/components/NavigationMenu.module.css
28177
27201
  var NavigationMenu_default = {
28178
- root: "NavigationMenu_root",
28179
- list: "NavigationMenu_list",
28180
- trigger: "NavigationMenu_trigger",
28181
- link: "NavigationMenu_link",
28182
- content: "NavigationMenu_content",
28183
- enterFromLeft: "NavigationMenu_enterFromLeft",
28184
- enterFromRight: "NavigationMenu_enterFromRight",
28185
- exitToLeft: "NavigationMenu_exitToLeft",
28186
- exitToRight: "NavigationMenu_exitToRight",
28187
- indicator: "NavigationMenu_indicator",
28188
- fadeIn: "NavigationMenu_fadeIn",
28189
- fadeOut: "NavigationMenu_fadeOut",
28190
- viewport: "NavigationMenu_viewport",
28191
- scaleIn: "NavigationMenu_scaleIn",
28192
- scaleOut: "NavigationMenu_scaleOut",
28193
- wrapper: "NavigationMenu_wrapper",
28194
- arrow: "NavigationMenu_arrow"
27202
+ nav: "NavigationMenu_nav",
27203
+ item: "NavigationMenu_item",
27204
+ icon: "NavigationMenu_icon"
28195
27205
  };
28196
27206
 
28197
27207
  // src/components/NavigationMenu.tsx
28198
27208
  var import_jsx_runtime39 = require("react/jsx-runtime");
28199
- function NavigationMenu({ showArrow = true, children, ...props }) {
28200
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)($322c88a641701f3b$export$be92b6f5f03c0fe9, { ...props, className: NavigationMenu_default.root, children: [
28201
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)($322c88a641701f3b$export$54c2e3dc7acea9f5, { className: NavigationMenu_default.list, children: [
28202
- children,
28203
- showArrow && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($322c88a641701f3b$export$adb584737d712b70, { className: NavigationMenu_default.indicator, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: NavigationMenu_default.arrow }) })
28204
- ] }),
28205
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: NavigationMenu_default.wrapper, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($322c88a641701f3b$export$d5c6c08dc2d3ca7, { className: NavigationMenu_default.viewport }) })
28206
- ] });
28207
- }
28208
- function NavigationMenuItem({ children, className, ...props }) {
28209
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($322c88a641701f3b$export$6d08773d2e66f8f2, { ...props, className: (0, import_classnames33.default)(NavigationMenu_default.item, className), children });
28210
- }
28211
- function NavigationMenuTrigger({
28212
- children,
27209
+ function NavigationMenu({
27210
+ showArrow = true,
28213
27211
  className,
27212
+ children,
28214
27213
  ...props
28215
27214
  }) {
28216
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)($322c88a641701f3b$export$41fb9f06171c75f4, { ...props, className: (0, import_classnames33.default)(NavigationMenu_default.trigger, className), children: [
28217
- children,
28218
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { rotate: 90, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icons.Chevron, {}) })
28219
- ] });
27215
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { ...props, className: (0, import_classnames33.default)(NavigationMenu_default.nav, className), children });
28220
27216
  }
28221
- function NavigationMenuContent({
27217
+ function NavigationMenuItem({
27218
+ label,
28222
27219
  children,
28223
27220
  className,
28224
27221
  ...props
28225
27222
  }) {
28226
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($322c88a641701f3b$export$7c6e2c02157bb7d2, { ...props, className: (0, import_classnames33.default)(NavigationMenu_default.content, className), children });
28227
- }
28228
- function NavigationMenuLink({ children, className, ...props }) {
28229
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($322c88a641701f3b$export$a6c7ac8248d6e38a, { ...props, className: (0, import_classnames33.default)(NavigationMenu_default.link, className), children });
27223
+ const { activeMenu } = useNavigationMenu();
27224
+ if (label) {
27225
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
27226
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { ...props, className: (0, import_classnames33.default)(NavigationMenu_default.item, className), children: [
27227
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Text, { children: label }),
27228
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { rotate: 90, size: "xs", className: NavigationMenu_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icons.Chevron, {}) })
27229
+ ] }),
27230
+ children
27231
+ ] });
27232
+ }
27233
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { ...props, className: (0, import_classnames33.default)(NavigationMenu_default.item, className), children });
28230
27234
  }
28231
27235
 
28232
27236
  // src/components/PasswordField.tsx
28233
- var import_react171 = require("react");
27237
+ var import_react167 = require("react");
28234
27238
  var import_classnames34 = __toESM(require_classnames());
28235
27239
 
28236
27240
  // src/components/PasswordField.module.css
@@ -28240,9 +27244,9 @@ var PasswordField_default = {
28240
27244
 
28241
27245
  // src/components/PasswordField.tsx
28242
27246
  var import_jsx_runtime40 = require("react/jsx-runtime");
28243
- var PasswordField = (0, import_react171.forwardRef)(
27247
+ var PasswordField = (0, import_react167.forwardRef)(
28244
27248
  ({ label, className, ...props }, ref) => {
28245
- const [show, setShow] = (0, import_react171.useState)(false);
27249
+ const [show, setShow] = (0, import_react167.useState)(false);
28246
27250
  const type = show ? "text" : "password";
28247
27251
  const handleShowPassword = () => setShow((state) => !state);
28248
27252
  return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames34.default)(Input_default.field, className), children: [
@@ -28330,7 +27334,7 @@ function ProgressCircle({ className, showValue, ...props }) {
28330
27334
  }
28331
27335
 
28332
27336
  // src/components/RadioGroup.tsx
28333
- var import_react172 = require("react");
27337
+ var import_react168 = require("react");
28334
27338
  var import_classnames38 = __toESM(require_classnames());
28335
27339
 
28336
27340
  // src/components/RadioGroup.module.css
@@ -28341,7 +27345,7 @@ var RadioGroup_default = {
28341
27345
 
28342
27346
  // src/components/RadioGroup.tsx
28343
27347
  var import_jsx_runtime44 = require("react/jsx-runtime");
28344
- var RadioGroup = (0, import_react172.forwardRef)(
27348
+ var RadioGroup = (0, import_react168.forwardRef)(
28345
27349
  ({ label, children, className, ...props }, ref) => {
28346
27350
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames38.default)(RadioGroup_default.radiogroup, className), children: [
28347
27351
  label && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Label, { children: label }),
@@ -28354,7 +27358,7 @@ function Radio({ children, className, ...props }) {
28354
27358
  }
28355
27359
 
28356
27360
  // src/components/SearchField.tsx
28357
- var import_react173 = require("react");
27361
+ var import_react169 = require("react");
28358
27362
  var import_classnames39 = __toESM(require_classnames());
28359
27363
 
28360
27364
  // src/components/SearchField.module.css
@@ -28366,9 +27370,9 @@ var SearchField_default = {
28366
27370
 
28367
27371
  // src/components/SearchField.tsx
28368
27372
  var import_jsx_runtime45 = require("react/jsx-runtime");
28369
- var SearchField = (0, import_react173.forwardRef)(
27373
+ var SearchField = (0, import_react169.forwardRef)(
28370
27374
  ({ label, value, delay = 0, onSearch, className, ...props }, ref) => {
28371
- const [search, setSearch] = (0, import_react173.useState)(value ?? "");
27375
+ const [search, setSearch] = (0, import_react169.useState)(value ?? "");
28372
27376
  const searchValue = useDebounce(search, delay);
28373
27377
  const handleChange = (e) => {
28374
27378
  const { value: value2 } = e.target;
@@ -28381,7 +27385,7 @@ var SearchField = (0, import_react173.forwardRef)(
28381
27385
  setSearch("");
28382
27386
  onSearch?.("");
28383
27387
  };
28384
- (0, import_react173.useEffect)(() => {
27388
+ (0, import_react169.useEffect)(() => {
28385
27389
  if (delay > 0) {
28386
27390
  onSearch?.(searchValue);
28387
27391
  }
@@ -28413,7 +27417,7 @@ var SearchField = (0, import_react173.forwardRef)(
28413
27417
  );
28414
27418
 
28415
27419
  // src/components/Select.tsx
28416
- var import_react174 = require("react");
27420
+ var import_react170 = require("react");
28417
27421
  var import_classnames40 = __toESM(require_classnames());
28418
27422
 
28419
27423
  // src/components/Select.module.css
@@ -28426,7 +27430,7 @@ var Select_default = {
28426
27430
 
28427
27431
  // src/components/Select.tsx
28428
27432
  var import_jsx_runtime46 = require("react/jsx-runtime");
28429
- var Select = (0, import_react174.forwardRef)(
27433
+ var Select = (0, import_react170.forwardRef)(
28430
27434
  ({
28431
27435
  children,
28432
27436
  items = [],
@@ -28462,7 +27466,7 @@ var Select = (0, import_react174.forwardRef)(
28462
27466
  );
28463
27467
 
28464
27468
  // src/components/Slider.tsx
28465
- var import_react175 = require("react");
27469
+ var import_react171 = require("react");
28466
27470
  var import_classnames41 = __toESM(require_classnames());
28467
27471
 
28468
27472
  // src/components/Slider.module.css
@@ -28476,7 +27480,7 @@ var Slider_default = {
28476
27480
 
28477
27481
  // src/components/Slider.tsx
28478
27482
  var import_jsx_runtime47 = require("react/jsx-runtime");
28479
- var Slider = (0, import_react175.forwardRef)(
27483
+ var Slider = (0, import_react171.forwardRef)(
28480
27484
  ({ className, showValue = true, label, ...props }, ref) => {
28481
27485
  return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames41.default)(Slider_default.slider, className), children: [
28482
27486
  /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: Slider_default.header, children: [
@@ -28534,7 +27538,7 @@ function StatusLight(props) {
28534
27538
  }
28535
27539
 
28536
27540
  // src/components/Switch.tsx
28537
- var import_react176 = require("react");
27541
+ var import_react172 = require("react");
28538
27542
  var import_classnames43 = __toESM(require_classnames());
28539
27543
 
28540
27544
  // src/components/Switch.module.css
@@ -28546,7 +27550,7 @@ var Switch_default = {
28546
27550
 
28547
27551
  // src/components/Switch.tsx
28548
27552
  var import_jsx_runtime49 = require("react/jsx-runtime");
28549
- var Switch = (0, import_react176.forwardRef)(
27553
+ var Switch = (0, import_react172.forwardRef)(
28550
27554
  ({ label, children, className, ...props }, ref) => {
28551
27555
  const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
28552
27556
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
@@ -28608,7 +27612,7 @@ function TextOverflow({ asChild, children, className, ...props }) {
28608
27612
  }
28609
27613
 
28610
27614
  // src/components/TextArea.tsx
28611
- var import_react177 = require("react");
27615
+ var import_react173 = require("react");
28612
27616
  var import_classnames45 = __toESM(require_classnames());
28613
27617
 
28614
27618
  // src/components/TextArea.module.css
@@ -28621,21 +27625,24 @@ var TextArea_default = {
28621
27625
 
28622
27626
  // src/components/TextArea.tsx
28623
27627
  var import_jsx_runtime52 = require("react/jsx-runtime");
28624
- var TextArea = (0, import_react177.forwardRef)(({ resize, className, ...props }, ref) => {
28625
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
28626
- TextField,
28627
- {
28628
- ...props,
28629
- ref,
28630
- className: (0, import_classnames45.default)(resize && TextArea_default[`resize-${resize}`]),
28631
- asTextArea: true
28632
- }
28633
- );
28634
- });
27628
+ var TextArea = (0, import_react173.forwardRef)(
27629
+ ({ resize, className, children, ...props }, ref) => {
27630
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
27631
+ TextField,
27632
+ {
27633
+ ...props,
27634
+ ref,
27635
+ className: (0, import_classnames45.default)(resize && TextArea_default[`resize-${resize}`]),
27636
+ asChild: true,
27637
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { children })
27638
+ }
27639
+ );
27640
+ }
27641
+ );
28635
27642
 
28636
27643
  // src/components/Toast.tsx
28637
27644
  var import_classnames46 = __toESM(require_classnames());
28638
- var import_react179 = require("react");
27645
+ var import_react175 = require("react");
28639
27646
 
28640
27647
  // node_modules/@radix-ui/react-toast/dist/index.mjs
28641
27648
  var React18 = __toESM(require("react"), 1);
@@ -28668,7 +27675,7 @@ function useComposedRefs(...refs) {
28668
27675
  }
28669
27676
 
28670
27677
  // node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-collection/dist/index.mjs
28671
- var import_react178 = __toESM(require("react"), 1);
27678
+ var import_react174 = __toESM(require("react"), 1);
28672
27679
 
28673
27680
  // node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-context/dist/index.mjs
28674
27681
  var React6 = __toESM(require("react"), 1);
@@ -28820,13 +27827,13 @@ function createCollection(name) {
28820
27827
  );
28821
27828
  const CollectionProvider = (props) => {
28822
27829
  const { scope, children } = props;
28823
- const ref = import_react178.default.useRef(null);
28824
- const itemMap = import_react178.default.useRef(/* @__PURE__ */ new Map()).current;
27830
+ const ref = import_react174.default.useRef(null);
27831
+ const itemMap = import_react174.default.useRef(/* @__PURE__ */ new Map()).current;
28825
27832
  return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
28826
27833
  };
28827
27834
  CollectionProvider.displayName = PROVIDER_NAME2;
28828
27835
  const COLLECTION_SLOT_NAME = name + "CollectionSlot";
28829
- const CollectionSlot = import_react178.default.forwardRef(
27836
+ const CollectionSlot = import_react174.default.forwardRef(
28830
27837
  (props, forwardedRef) => {
28831
27838
  const { scope, children } = props;
28832
27839
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
@@ -28837,13 +27844,13 @@ function createCollection(name) {
28837
27844
  CollectionSlot.displayName = COLLECTION_SLOT_NAME;
28838
27845
  const ITEM_SLOT_NAME = name + "CollectionItemSlot";
28839
27846
  const ITEM_DATA_ATTR = "data-radix-collection-item";
28840
- const CollectionItemSlot = import_react178.default.forwardRef(
27847
+ const CollectionItemSlot = import_react174.default.forwardRef(
28841
27848
  (props, forwardedRef) => {
28842
27849
  const { scope, children, ...itemData } = props;
28843
- const ref = import_react178.default.useRef(null);
27850
+ const ref = import_react174.default.useRef(null);
28844
27851
  const composedRefs = useComposedRefs(forwardedRef, ref);
28845
27852
  const context = useCollectionContext(ITEM_SLOT_NAME, scope);
28846
- import_react178.default.useEffect(() => {
27853
+ import_react174.default.useEffect(() => {
28847
27854
  context.itemMap.set(ref, { ref, ...itemData });
28848
27855
  return () => void context.itemMap.delete(ref);
28849
27856
  });
@@ -28853,7 +27860,7 @@ function createCollection(name) {
28853
27860
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
28854
27861
  function useCollection2(scope) {
28855
27862
  const context = useCollectionContext(name + "CollectionConsumer", scope);
28856
- const getItems = import_react178.default.useCallback(() => {
27863
+ const getItems = import_react174.default.useCallback(() => {
28857
27864
  const collectionNode = context.collectionRef.current;
28858
27865
  if (!collectionNode) return [];
28859
27866
  const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
@@ -29147,7 +28154,7 @@ var Branch = DismissableLayerBranch;
29147
28154
 
29148
28155
  // node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-portal/dist/index.mjs
29149
28156
  var React14 = __toESM(require("react"), 1);
29150
- var import_react_dom11 = __toESM(require("react-dom"), 1);
28157
+ var import_react_dom10 = __toESM(require("react-dom"), 1);
29151
28158
 
29152
28159
  // node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
29153
28160
  var React13 = __toESM(require("react"), 1);
@@ -29162,7 +28169,7 @@ var Portal = React14.forwardRef((props, forwardedRef) => {
29162
28169
  const [mounted, setMounted] = React14.useState(false);
29163
28170
  useLayoutEffect2(() => setMounted(true), []);
29164
28171
  const container = containerProp || mounted && globalThis?.document?.body;
29165
- return container ? import_react_dom11.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
28172
+ return container ? import_react_dom10.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
29166
28173
  });
29167
28174
  Portal.displayName = PORTAL_NAME;
29168
28175
 
@@ -29170,11 +28177,11 @@ Portal.displayName = PORTAL_NAME;
29170
28177
  var React22 = __toESM(require("react"), 1);
29171
28178
  var ReactDOM3 = __toESM(require("react-dom"), 1);
29172
28179
  var React15 = __toESM(require("react"), 1);
29173
- function useStateMachine(initialState3, machine) {
28180
+ function useStateMachine(initialState4, machine) {
29174
28181
  return React15.useReducer((state, event) => {
29175
28182
  const nextState = machine[state][event];
29176
28183
  return nextState ?? state;
29177
- }, initialState3);
28184
+ }, initialState4);
29178
28185
  }
29179
28186
  var Presence = (props) => {
29180
28187
  const { present, children } = props;
@@ -29190,8 +28197,8 @@ function usePresence(present) {
29190
28197
  const stylesRef = React22.useRef({});
29191
28198
  const prevPresentRef = React22.useRef(present);
29192
28199
  const prevAnimationNameRef = React22.useRef("none");
29193
- const initialState3 = present ? "mounted" : "unmounted";
29194
- const [state, send] = useStateMachine(initialState3, {
28200
+ const initialState4 = present ? "mounted" : "unmounted";
28201
+ const [state, send] = useStateMachine(initialState4, {
29195
28202
  mounted: {
29196
28203
  UNMOUNT: "unmounted",
29197
28204
  ANIMATION_OUT: "unmountSuspended"
@@ -29984,7 +28991,7 @@ var Toast_default = {
29984
28991
 
29985
28992
  // src/components/Toast.tsx
29986
28993
  var import_jsx_runtime61 = require("react/jsx-runtime");
29987
- var import_react180 = require("react");
28994
+ var import_react176 = require("react");
29988
28995
  var icons = {
29989
28996
  info: Icons.Info,
29990
28997
  error: Icons.Alert
@@ -30000,7 +29007,7 @@ function Toast2({
30000
29007
  ...props
30001
29008
  }) {
30002
29009
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Root2, { ...props, className: (0, import_classnames46.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
30003
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { className: Toast_default.icon, size: "md", children: variant && (0, import_react179.createElement)(icons[variant]) }),
29010
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { className: Toast_default.icon, size: "md", children: variant && (0, import_react175.createElement)(icons[variant]) }),
30004
29011
  title && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ToastTitle, { className: Toast_default.title, children: title }),
30005
29012
  description && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ToastDescription, { className: Toast_default.description, children: description }),
30006
29013
  children && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ToastAction, { className: Toast_default.action, altText: actionText || "Action", asChild: true, children }),
@@ -30011,14 +29018,14 @@ function Toaster(props) {
30011
29018
  const { toasts } = useToast();
30012
29019
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
30013
29020
  toasts.map(({ id, message, props: props2 }) => {
30014
- return /* @__PURE__ */ (0, import_react180.createElement)(Toast2, { ...props2, key: id, description: message });
29021
+ return /* @__PURE__ */ (0, import_react176.createElement)(Toast2, { ...props2, key: id, description: message });
30015
29022
  }),
30016
29023
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Viewport, { className: Toast_default.viewport, ...props })
30017
29024
  ] });
30018
29025
  }
30019
29026
 
30020
29027
  // src/components/Toggle.tsx
30021
- var import_react181 = require("react");
29028
+ var import_react177 = require("react");
30022
29029
  var import_classnames47 = __toESM(require_classnames());
30023
29030
 
30024
29031
  // src/components/Toggle.module.css
@@ -30028,7 +29035,7 @@ var Toggle_default = {
30028
29035
 
30029
29036
  // src/components/Toggle.tsx
30030
29037
  var import_jsx_runtime62 = require("react/jsx-runtime");
30031
- var Toggle = (0, import_react181.forwardRef)(
29038
+ var Toggle = (0, import_react177.forwardRef)(
30032
29039
  ({ label, children, className, ...props }, ref) => {
30033
29040
  const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
30034
29041
  return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
@@ -30051,10 +29058,10 @@ var Toggle = (0, import_react181.forwardRef)(
30051
29058
  var import_classnames48 = __toESM(require_classnames());
30052
29059
 
30053
29060
  // node_modules/@radix-ui/react-toggle-group/dist/index.mjs
30054
- var import_react184 = __toESM(require("react"), 1);
29061
+ var import_react180 = __toESM(require("react"), 1);
30055
29062
 
30056
29063
  // node_modules/@radix-ui/react-roving-focus/dist/index.mjs
30057
- var import_react182 = require("react");
29064
+ var import_react178 = require("react");
30058
29065
  var $d7bdfb9eb0fdf311$var$ENTRY_FOCUS = "rovingFocusGroup.onEntryFocus";
30059
29066
  var $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {
30060
29067
  bubbles: false,
@@ -30066,18 +29073,18 @@ var [$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext, $d7bdfb9eb0fdf311$expo
30066
29073
  $d7bdfb9eb0fdf311$var$createCollectionScope
30067
29074
  ]);
30068
29075
  var [$d7bdfb9eb0fdf311$var$RovingFocusProvider, $d7bdfb9eb0fdf311$var$useRovingFocusContext] = $d7bdfb9eb0fdf311$var$createRovingFocusGroupContext($d7bdfb9eb0fdf311$var$GROUP_NAME);
30069
- var $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /* @__PURE__ */ (0, import_react182.forwardRef)((props, forwardedRef) => {
30070
- return /* @__PURE__ */ (0, import_react182.createElement)($d7bdfb9eb0fdf311$var$Collection.Provider, {
29076
+ var $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /* @__PURE__ */ (0, import_react178.forwardRef)((props, forwardedRef) => {
29077
+ return /* @__PURE__ */ (0, import_react178.createElement)($d7bdfb9eb0fdf311$var$Collection.Provider, {
30071
29078
  scope: props.__scopeRovingFocusGroup
30072
- }, /* @__PURE__ */ (0, import_react182.createElement)($d7bdfb9eb0fdf311$var$Collection.Slot, {
29079
+ }, /* @__PURE__ */ (0, import_react178.createElement)($d7bdfb9eb0fdf311$var$Collection.Slot, {
30073
29080
  scope: props.__scopeRovingFocusGroup
30074
- }, /* @__PURE__ */ (0, import_react182.createElement)($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends({}, props, {
29081
+ }, /* @__PURE__ */ (0, import_react178.createElement)($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends({}, props, {
30075
29082
  ref: forwardedRef
30076
29083
  }))));
30077
29084
  });
30078
- var $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ (0, import_react182.forwardRef)((props, forwardedRef) => {
29085
+ var $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ (0, import_react178.forwardRef)((props, forwardedRef) => {
30079
29086
  const { __scopeRovingFocusGroup, orientation, loop = false, dir, currentTabStopId: currentTabStopIdProp, defaultCurrentTabStopId, onCurrentTabStopIdChange, onEntryFocus, ...groupProps } = props;
30080
- const ref = (0, import_react182.useRef)(null);
29087
+ const ref = (0, import_react178.useRef)(null);
30081
29088
  const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
30082
29089
  const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
30083
29090
  const [currentTabStopId = null, setCurrentTabStopId] = $71cd76cc60e0454e$export$6f32135080cb4c3({
@@ -30085,12 +29092,12 @@ var $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ (0, import_reac
30085
29092
  defaultProp: defaultCurrentTabStopId,
30086
29093
  onChange: onCurrentTabStopIdChange
30087
29094
  });
30088
- const [isTabbingBackOut, setIsTabbingBackOut] = (0, import_react182.useState)(false);
29095
+ const [isTabbingBackOut, setIsTabbingBackOut] = (0, import_react178.useState)(false);
30089
29096
  const handleEntryFocus = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEntryFocus);
30090
29097
  const getItems = $d7bdfb9eb0fdf311$var$useCollection(__scopeRovingFocusGroup);
30091
- const isClickFocusRef = (0, import_react182.useRef)(false);
30092
- const [focusableItemsCount, setFocusableItemsCount] = (0, import_react182.useState)(0);
30093
- (0, import_react182.useEffect)(() => {
29098
+ const isClickFocusRef = (0, import_react178.useRef)(false);
29099
+ const [focusableItemsCount, setFocusableItemsCount] = (0, import_react178.useState)(0);
29100
+ (0, import_react178.useEffect)(() => {
30094
29101
  const node = ref.current;
30095
29102
  if (node) {
30096
29103
  node.addEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS, handleEntryFocus);
@@ -30099,35 +29106,35 @@ var $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ (0, import_reac
30099
29106
  }, [
30100
29107
  handleEntryFocus
30101
29108
  ]);
30102
- return /* @__PURE__ */ (0, import_react182.createElement)($d7bdfb9eb0fdf311$var$RovingFocusProvider, {
29109
+ return /* @__PURE__ */ (0, import_react178.createElement)($d7bdfb9eb0fdf311$var$RovingFocusProvider, {
30103
29110
  scope: __scopeRovingFocusGroup,
30104
29111
  orientation,
30105
29112
  dir: direction,
30106
29113
  loop,
30107
29114
  currentTabStopId,
30108
- onItemFocus: (0, import_react182.useCallback)(
29115
+ onItemFocus: (0, import_react178.useCallback)(
30109
29116
  (tabStopId) => setCurrentTabStopId(tabStopId),
30110
29117
  [
30111
29118
  setCurrentTabStopId
30112
29119
  ]
30113
29120
  ),
30114
- onItemShiftTab: (0, import_react182.useCallback)(
29121
+ onItemShiftTab: (0, import_react178.useCallback)(
30115
29122
  () => setIsTabbingBackOut(true),
30116
29123
  []
30117
29124
  ),
30118
- onFocusableItemAdd: (0, import_react182.useCallback)(
29125
+ onFocusableItemAdd: (0, import_react178.useCallback)(
30119
29126
  () => setFocusableItemsCount(
30120
29127
  (prevCount) => prevCount + 1
30121
29128
  ),
30122
29129
  []
30123
29130
  ),
30124
- onFocusableItemRemove: (0, import_react182.useCallback)(
29131
+ onFocusableItemRemove: (0, import_react178.useCallback)(
30125
29132
  () => setFocusableItemsCount(
30126
29133
  (prevCount) => prevCount - 1
30127
29134
  ),
30128
29135
  []
30129
29136
  )
30130
- }, /* @__PURE__ */ (0, import_react182.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
29137
+ }, /* @__PURE__ */ (0, import_react178.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
30131
29138
  tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
30132
29139
  "data-orientation": orientation
30133
29140
  }, groupProps, {
@@ -30174,7 +29181,7 @@ var $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ (0, import_reac
30174
29181
  })));
30175
29182
  });
30176
29183
  var $d7bdfb9eb0fdf311$var$ITEM_NAME = "RovingFocusGroupItem";
30177
- var $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ (0, import_react182.forwardRef)((props, forwardedRef) => {
29184
+ var $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ (0, import_react178.forwardRef)((props, forwardedRef) => {
30178
29185
  const { __scopeRovingFocusGroup, focusable = true, active = false, tabStopId, ...itemProps } = props;
30179
29186
  const autoId = $1746a345f3d73bb7$export$f680877a34711e37();
30180
29187
  const id = tabStopId || autoId;
@@ -30182,7 +29189,7 @@ var $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ (0, import_react1
30182
29189
  const isCurrentTabStop = context.currentTabStopId === id;
30183
29190
  const getItems = $d7bdfb9eb0fdf311$var$useCollection(__scopeRovingFocusGroup);
30184
29191
  const { onFocusableItemAdd, onFocusableItemRemove } = context;
30185
- (0, import_react182.useEffect)(() => {
29192
+ (0, import_react178.useEffect)(() => {
30186
29193
  if (focusable) {
30187
29194
  onFocusableItemAdd();
30188
29195
  return () => onFocusableItemRemove();
@@ -30192,12 +29199,12 @@ var $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ (0, import_react1
30192
29199
  onFocusableItemAdd,
30193
29200
  onFocusableItemRemove
30194
29201
  ]);
30195
- return /* @__PURE__ */ (0, import_react182.createElement)($d7bdfb9eb0fdf311$var$Collection.ItemSlot, {
29202
+ return /* @__PURE__ */ (0, import_react178.createElement)($d7bdfb9eb0fdf311$var$Collection.ItemSlot, {
30196
29203
  scope: __scopeRovingFocusGroup,
30197
29204
  id,
30198
29205
  focusable,
30199
29206
  active
30200
- }, /* @__PURE__ */ (0, import_react182.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
29207
+ }, /* @__PURE__ */ (0, import_react178.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
30201
29208
  tabIndex: isCurrentTabStop ? 0 : -1,
30202
29209
  "data-orientation": context.orientation
30203
29210
  }, itemProps, {
@@ -30281,15 +29288,15 @@ var $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9 = $d7bdfb9eb0fdf311$export$8699f7c
30281
29288
  var $d7bdfb9eb0fdf311$export$6d08773d2e66f8f2 = $d7bdfb9eb0fdf311$export$ab9df7c53fe8454;
30282
29289
 
30283
29290
  // node_modules/@radix-ui/react-toggle/dist/index.mjs
30284
- var import_react183 = require("react");
30285
- var $b3bbe2732c13b576$export$bea8ebba691c5813 = /* @__PURE__ */ (0, import_react183.forwardRef)((props, forwardedRef) => {
29291
+ var import_react179 = require("react");
29292
+ var $b3bbe2732c13b576$export$bea8ebba691c5813 = /* @__PURE__ */ (0, import_react179.forwardRef)((props, forwardedRef) => {
30286
29293
  const { pressed: pressedProp, defaultPressed = false, onPressedChange, ...buttonProps } = props;
30287
29294
  const [pressed = false, setPressed] = $71cd76cc60e0454e$export$6f32135080cb4c3({
30288
29295
  prop: pressedProp,
30289
29296
  onChange: onPressedChange,
30290
29297
  defaultProp: defaultPressed
30291
29298
  });
30292
- return /* @__PURE__ */ (0, import_react183.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
29299
+ return /* @__PURE__ */ (0, import_react179.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
30293
29300
  type: "button",
30294
29301
  "aria-pressed": pressed,
30295
29302
  "data-state": pressed ? "on" : "off",
@@ -30308,24 +29315,24 @@ var [$6c1fd9e6a8969628$var$createToggleGroupContext, $6c1fd9e6a8969628$export$d1
30308
29315
  $d7bdfb9eb0fdf311$export$c7109489551a4f4
30309
29316
  ]);
30310
29317
  var $6c1fd9e6a8969628$var$useRovingFocusGroupScope = $d7bdfb9eb0fdf311$export$c7109489551a4f4();
30311
- var $6c1fd9e6a8969628$export$af3ec21f6cfb5e30 = /* @__PURE__ */ import_react184.default.forwardRef((props, forwardedRef) => {
29318
+ var $6c1fd9e6a8969628$export$af3ec21f6cfb5e30 = /* @__PURE__ */ import_react180.default.forwardRef((props, forwardedRef) => {
30312
29319
  const { type, ...toggleGroupProps } = props;
30313
29320
  if (type === "single") {
30314
29321
  const singleProps = toggleGroupProps;
30315
- return /* @__PURE__ */ import_react184.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplSingle, _extends({}, singleProps, {
29322
+ return /* @__PURE__ */ import_react180.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplSingle, _extends({}, singleProps, {
30316
29323
  ref: forwardedRef
30317
29324
  }));
30318
29325
  }
30319
29326
  if (type === "multiple") {
30320
29327
  const multipleProps = toggleGroupProps;
30321
- return /* @__PURE__ */ import_react184.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplMultiple, _extends({}, multipleProps, {
29328
+ return /* @__PURE__ */ import_react180.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplMultiple, _extends({}, multipleProps, {
30322
29329
  ref: forwardedRef
30323
29330
  }));
30324
29331
  }
30325
29332
  throw new Error(`Missing prop \`type\` expected on \`${$6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME}\``);
30326
29333
  });
30327
29334
  var [$6c1fd9e6a8969628$var$ToggleGroupValueProvider, $6c1fd9e6a8969628$var$useToggleGroupValueContext] = $6c1fd9e6a8969628$var$createToggleGroupContext($6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME);
30328
- var $6c1fd9e6a8969628$var$ToggleGroupImplSingle = /* @__PURE__ */ import_react184.default.forwardRef((props, forwardedRef) => {
29335
+ var $6c1fd9e6a8969628$var$ToggleGroupImplSingle = /* @__PURE__ */ import_react180.default.forwardRef((props, forwardedRef) => {
30329
29336
  const { value: valueProp, defaultValue, onValueChange = () => {
30330
29337
  }, ...toggleGroupSingleProps } = props;
30331
29338
  const [value, setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
@@ -30333,24 +29340,24 @@ var $6c1fd9e6a8969628$var$ToggleGroupImplSingle = /* @__PURE__ */ import_react18
30333
29340
  defaultProp: defaultValue,
30334
29341
  onChange: onValueChange
30335
29342
  });
30336
- return /* @__PURE__ */ import_react184.default.createElement($6c1fd9e6a8969628$var$ToggleGroupValueProvider, {
29343
+ return /* @__PURE__ */ import_react180.default.createElement($6c1fd9e6a8969628$var$ToggleGroupValueProvider, {
30337
29344
  scope: props.__scopeToggleGroup,
30338
29345
  type: "single",
30339
29346
  value: value ? [
30340
29347
  value
30341
29348
  ] : [],
30342
29349
  onItemActivate: setValue,
30343
- onItemDeactivate: import_react184.default.useCallback(
29350
+ onItemDeactivate: import_react180.default.useCallback(
30344
29351
  () => setValue(""),
30345
29352
  [
30346
29353
  setValue
30347
29354
  ]
30348
29355
  )
30349
- }, /* @__PURE__ */ import_react184.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, _extends({}, toggleGroupSingleProps, {
29356
+ }, /* @__PURE__ */ import_react180.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, _extends({}, toggleGroupSingleProps, {
30350
29357
  ref: forwardedRef
30351
29358
  })));
30352
29359
  });
30353
- var $6c1fd9e6a8969628$var$ToggleGroupImplMultiple = /* @__PURE__ */ import_react184.default.forwardRef((props, forwardedRef) => {
29360
+ var $6c1fd9e6a8969628$var$ToggleGroupImplMultiple = /* @__PURE__ */ import_react180.default.forwardRef((props, forwardedRef) => {
30354
29361
  const { value: valueProp, defaultValue, onValueChange = () => {
30355
29362
  }, ...toggleGroupMultipleProps } = props;
30356
29363
  const [value1 = [], setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
@@ -30358,7 +29365,7 @@ var $6c1fd9e6a8969628$var$ToggleGroupImplMultiple = /* @__PURE__ */ import_react
30358
29365
  defaultProp: defaultValue,
30359
29366
  onChange: onValueChange
30360
29367
  });
30361
- const handleButtonActivate = import_react184.default.useCallback(
29368
+ const handleButtonActivate = import_react180.default.useCallback(
30362
29369
  (itemValue) => setValue(
30363
29370
  (prevValue = []) => [
30364
29371
  ...prevValue,
@@ -30369,7 +29376,7 @@ var $6c1fd9e6a8969628$var$ToggleGroupImplMultiple = /* @__PURE__ */ import_react
30369
29376
  setValue
30370
29377
  ]
30371
29378
  );
30372
- const handleButtonDeactivate = import_react184.default.useCallback(
29379
+ const handleButtonDeactivate = import_react180.default.useCallback(
30373
29380
  (itemValue) => setValue(
30374
29381
  (prevValue = []) => prevValue.filter(
30375
29382
  (value) => value !== itemValue
@@ -30379,18 +29386,18 @@ var $6c1fd9e6a8969628$var$ToggleGroupImplMultiple = /* @__PURE__ */ import_react
30379
29386
  setValue
30380
29387
  ]
30381
29388
  );
30382
- return /* @__PURE__ */ import_react184.default.createElement($6c1fd9e6a8969628$var$ToggleGroupValueProvider, {
29389
+ return /* @__PURE__ */ import_react180.default.createElement($6c1fd9e6a8969628$var$ToggleGroupValueProvider, {
30383
29390
  scope: props.__scopeToggleGroup,
30384
29391
  type: "multiple",
30385
29392
  value: value1,
30386
29393
  onItemActivate: handleButtonActivate,
30387
29394
  onItemDeactivate: handleButtonDeactivate
30388
- }, /* @__PURE__ */ import_react184.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, _extends({}, toggleGroupMultipleProps, {
29395
+ }, /* @__PURE__ */ import_react180.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, _extends({}, toggleGroupMultipleProps, {
30389
29396
  ref: forwardedRef
30390
29397
  })));
30391
29398
  });
30392
29399
  var [$6c1fd9e6a8969628$var$ToggleGroupContext, $6c1fd9e6a8969628$var$useToggleGroupContext] = $6c1fd9e6a8969628$var$createToggleGroupContext($6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME);
30393
- var $6c1fd9e6a8969628$var$ToggleGroupImpl = /* @__PURE__ */ import_react184.default.forwardRef((props, forwardedRef) => {
29400
+ var $6c1fd9e6a8969628$var$ToggleGroupImpl = /* @__PURE__ */ import_react180.default.forwardRef((props, forwardedRef) => {
30394
29401
  const { __scopeToggleGroup, disabled = false, rovingFocus = true, orientation, dir, loop = true, ...toggleGroupProps } = props;
30395
29402
  const rovingFocusGroupScope = $6c1fd9e6a8969628$var$useRovingFocusGroupScope(__scopeToggleGroup);
30396
29403
  const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
@@ -30399,24 +29406,24 @@ var $6c1fd9e6a8969628$var$ToggleGroupImpl = /* @__PURE__ */ import_react184.defa
30399
29406
  dir: direction,
30400
29407
  ...toggleGroupProps
30401
29408
  };
30402
- return /* @__PURE__ */ import_react184.default.createElement($6c1fd9e6a8969628$var$ToggleGroupContext, {
29409
+ return /* @__PURE__ */ import_react180.default.createElement($6c1fd9e6a8969628$var$ToggleGroupContext, {
30403
29410
  scope: __scopeToggleGroup,
30404
29411
  rovingFocus,
30405
29412
  disabled
30406
- }, rovingFocus ? /* @__PURE__ */ import_react184.default.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends({
29413
+ }, rovingFocus ? /* @__PURE__ */ import_react180.default.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends({
30407
29414
  asChild: true
30408
29415
  }, rovingFocusGroupScope, {
30409
29416
  orientation,
30410
29417
  dir: direction,
30411
29418
  loop
30412
- }), /* @__PURE__ */ import_react184.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, commonProps, {
29419
+ }), /* @__PURE__ */ import_react180.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, commonProps, {
30413
29420
  ref: forwardedRef
30414
- }))) : /* @__PURE__ */ import_react184.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, commonProps, {
29421
+ }))) : /* @__PURE__ */ import_react180.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, commonProps, {
30415
29422
  ref: forwardedRef
30416
29423
  })));
30417
29424
  });
30418
29425
  var $6c1fd9e6a8969628$var$ITEM_NAME = "ToggleGroupItem";
30419
- var $6c1fd9e6a8969628$export$b453109e13abe10b = /* @__PURE__ */ import_react184.default.forwardRef((props, forwardedRef) => {
29426
+ var $6c1fd9e6a8969628$export$b453109e13abe10b = /* @__PURE__ */ import_react180.default.forwardRef((props, forwardedRef) => {
30420
29427
  const valueContext = $6c1fd9e6a8969628$var$useToggleGroupValueContext($6c1fd9e6a8969628$var$ITEM_NAME, props.__scopeToggleGroup);
30421
29428
  const context = $6c1fd9e6a8969628$var$useToggleGroupContext($6c1fd9e6a8969628$var$ITEM_NAME, props.__scopeToggleGroup);
30422
29429
  const rovingFocusGroupScope = $6c1fd9e6a8969628$var$useRovingFocusGroupScope(props.__scopeToggleGroup);
@@ -30427,20 +29434,20 @@ var $6c1fd9e6a8969628$export$b453109e13abe10b = /* @__PURE__ */ import_react184.
30427
29434
  pressed,
30428
29435
  disabled
30429
29436
  };
30430
- const ref = import_react184.default.useRef(null);
30431
- return context.rovingFocus ? /* @__PURE__ */ import_react184.default.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends({
29437
+ const ref = import_react180.default.useRef(null);
29438
+ return context.rovingFocus ? /* @__PURE__ */ import_react180.default.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends({
30432
29439
  asChild: true
30433
29440
  }, rovingFocusGroupScope, {
30434
29441
  focusable: !disabled,
30435
29442
  active: pressed,
30436
29443
  ref
30437
- }), /* @__PURE__ */ import_react184.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, _extends({}, commonProps, {
29444
+ }), /* @__PURE__ */ import_react180.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, _extends({}, commonProps, {
30438
29445
  ref: forwardedRef
30439
- }))) : /* @__PURE__ */ import_react184.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, _extends({}, commonProps, {
29446
+ }))) : /* @__PURE__ */ import_react180.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, _extends({}, commonProps, {
30440
29447
  ref: forwardedRef
30441
29448
  }));
30442
29449
  });
30443
- var $6c1fd9e6a8969628$var$ToggleGroupItemImpl = /* @__PURE__ */ import_react184.default.forwardRef((props, forwardedRef) => {
29450
+ var $6c1fd9e6a8969628$var$ToggleGroupItemImpl = /* @__PURE__ */ import_react180.default.forwardRef((props, forwardedRef) => {
30444
29451
  const { __scopeToggleGroup, value, ...itemProps } = props;
30445
29452
  const valueContext = $6c1fd9e6a8969628$var$useToggleGroupValueContext($6c1fd9e6a8969628$var$ITEM_NAME, __scopeToggleGroup);
30446
29453
  const singleProps = {
@@ -30449,7 +29456,7 @@ var $6c1fd9e6a8969628$var$ToggleGroupItemImpl = /* @__PURE__ */ import_react184.
30449
29456
  "aria-pressed": void 0
30450
29457
  };
30451
29458
  const typeProps = valueContext.type === "single" ? singleProps : void 0;
30452
- return /* @__PURE__ */ import_react184.default.createElement($b3bbe2732c13b576$export$bea8ebba691c5813, _extends({}, typeProps, itemProps, {
29459
+ return /* @__PURE__ */ import_react180.default.createElement($b3bbe2732c13b576$export$bea8ebba691c5813, _extends({}, typeProps, itemProps, {
30453
29460
  ref: forwardedRef,
30454
29461
  onPressedChange: (pressed) => {
30455
29462
  if (pressed) valueContext.onItemActivate(value);