@umami/react-zen 0.10.0 → 0.12.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.mjs CHANGED
@@ -113,7 +113,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
113
113
  return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
114
114
  }
115
115
  var objectIs = typeof Object.is === "function" ? Object.is : is;
116
- var useState14 = React19.useState, useEffect11 = React19.useEffect, useLayoutEffect3 = React19.useLayoutEffect, useDebugValue2 = React19.useDebugValue;
116
+ var useState15 = React19.useState, useEffect11 = React19.useEffect, useLayoutEffect3 = React19.useLayoutEffect, useDebugValue2 = React19.useDebugValue;
117
117
  var didWarnOld18Alpha = false;
118
118
  var didWarnUncachedGetSnapshot = false;
119
119
  function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
@@ -135,7 +135,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
135
135
  }
136
136
  }
137
137
  }
138
- var _useState = useState14({
138
+ var _useState = useState15({
139
139
  inst: {
140
140
  value,
141
141
  getSnapshot
@@ -213,7 +213,7 @@ var require_classnames = __commonJS({
213
213
  (function() {
214
214
  "use strict";
215
215
  var hasOwn = {}.hasOwnProperty;
216
- function classNames49() {
216
+ function classNames50() {
217
217
  var classes = "";
218
218
  for (var i = 0; i < arguments.length; i++) {
219
219
  var arg = arguments[i];
@@ -231,7 +231,7 @@ var require_classnames = __commonJS({
231
231
  return "";
232
232
  }
233
233
  if (Array.isArray(arg)) {
234
- return classNames49.apply(null, arg);
234
+ return classNames50.apply(null, arg);
235
235
  }
236
236
  if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
237
237
  return arg.toString();
@@ -254,14 +254,14 @@ var require_classnames = __commonJS({
254
254
  return value + newClass;
255
255
  }
256
256
  if (typeof module !== "undefined" && module.exports) {
257
- classNames49.default = classNames49;
258
- module.exports = classNames49;
257
+ classNames50.default = classNames50;
258
+ module.exports = classNames50;
259
259
  } else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
260
260
  define("classnames", [], function() {
261
- return classNames49;
261
+ return classNames50;
262
262
  });
263
263
  } else {
264
- window.classNames = classNames49;
264
+ window.classNames = classNames50;
265
265
  }
266
266
  })();
267
267
  }
@@ -344,9 +344,9 @@ var require_with_selector_development = __commonJS({
344
344
  }
345
345
  var objectIs = typeof Object.is === "function" ? Object.is : is;
346
346
  var useSyncExternalStore = shim.useSyncExternalStore;
347
- var useRef7 = React19.useRef, useEffect11 = React19.useEffect, useMemo4 = React19.useMemo, useDebugValue2 = React19.useDebugValue;
347
+ var useRef8 = React19.useRef, useEffect11 = React19.useEffect, useMemo4 = React19.useMemo, useDebugValue2 = React19.useDebugValue;
348
348
  function useSyncExternalStoreWithSelector2(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
349
- var instRef = useRef7(null);
349
+ var instRef = useRef8(null);
350
350
  var inst;
351
351
  if (instRef.current === null) {
352
352
  inst = {
@@ -25162,12 +25162,25 @@ var Text_default = {
25162
25162
  tighter: "Text_tighter",
25163
25163
  tight: "Text_tight",
25164
25164
  wide: "Text_wide",
25165
- wider: "Text_wider"
25165
+ wider: "Text_wider",
25166
+ left: "Text_left",
25167
+ center: "Text_center",
25168
+ right: "Text_right"
25166
25169
  };
25167
25170
 
25168
25171
  // src/components/Text.tsx
25169
25172
  import { jsx as jsx6 } from "react/jsx-runtime";
25170
- function Text({ children, type, size, spacing, weight, asChild, className, ...props }) {
25173
+ function Text({
25174
+ children,
25175
+ type,
25176
+ size,
25177
+ spacing,
25178
+ weight,
25179
+ align,
25180
+ asChild,
25181
+ className,
25182
+ ...props
25183
+ }) {
25171
25184
  const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : "span";
25172
25185
  return /* @__PURE__ */ jsx6(
25173
25186
  Component,
@@ -25179,7 +25192,8 @@ function Text({ children, type, size, spacing, weight, asChild, className, ...pr
25179
25192
  size && Text_default[size],
25180
25193
  spacing && Text_default[spacing],
25181
25194
  type && Text_default[type],
25182
- weight && Text_default[weight]
25195
+ weight && Text_default[weight],
25196
+ align && Text_default[align]
25183
25197
  ),
25184
25198
  children
25185
25199
  }
@@ -25849,6 +25863,11 @@ var $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.redu
25849
25863
  [node]: Node2
25850
25864
  };
25851
25865
  }, {});
25866
+ function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) {
25867
+ if (target) $4q5Fq$flushSync(
25868
+ () => target.dispatchEvent(event)
25869
+ );
25870
+ }
25852
25871
 
25853
25872
  // node_modules/@radix-ui/react-collapsible/dist/index.mjs
25854
25873
  import { forwardRef as $73KQ4$forwardRef, createElement as $73KQ4$createElement, useCallback as $73KQ4$useCallback, useState as $73KQ4$useState, useRef as $73KQ4$useRef, useEffect as $73KQ4$useEffect } from "react";
@@ -26948,7 +26967,7 @@ var Heading_default = {
26948
26967
  // src/components/Heading.tsx
26949
26968
  import { jsx as jsx32 } from "react/jsx-runtime";
26950
26969
  function Heading({ size = 5, className, children, asChild, ...props }) {
26951
- const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : "h1";
26970
+ const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : "div";
26952
26971
  return /* @__PURE__ */ jsx32(
26953
26972
  Component,
26954
26973
  {
@@ -26959,9 +26978,66 @@ function Heading({ size = 5, className, children, asChild, ...props }) {
26959
26978
  );
26960
26979
  }
26961
26980
 
26981
+ // src/components/HoverTrigger.tsx
26982
+ import { cloneElement as cloneElement3, useRef as useRef2, useState as useState6 } from "react";
26983
+
26984
+ // src/components/HoverTrigger.module.css
26985
+ var HoverTrigger_default = {
26986
+ wrapper: "HoverTrigger_wrapper"
26987
+ };
26988
+
26989
+ // src/components/HoverTrigger.tsx
26990
+ import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
26991
+ var CLOSE_DELAY = 500;
26992
+ function HoverTrigger({ closeDelay = CLOSE_DELAY, children }) {
26993
+ const [triggerElement, popupElement] = children;
26994
+ const [show, setShow] = useState6(false);
26995
+ const isOverMenu = useRef2(false);
26996
+ const isOverButton = useRef2(false);
26997
+ const timeout = useRef2();
26998
+ const handleHoverStart = () => {
26999
+ isOverMenu.current = false;
27000
+ isOverButton.current = true;
27001
+ setShow(true);
27002
+ };
27003
+ const handleHoverEnd = () => {
27004
+ isOverButton.current = false;
27005
+ checkHoverState();
27006
+ };
27007
+ const handleMenuEnter = () => {
27008
+ isOverMenu.current = true;
27009
+ };
27010
+ const handleMenuLeave = () => {
27011
+ isOverMenu.current = false;
27012
+ checkHoverState();
27013
+ };
27014
+ const checkHoverState = () => {
27015
+ clearTimeout(timeout.current);
27016
+ timeout.current = setTimeout(() => {
27017
+ if (!isOverMenu.current && !isOverButton.current) {
27018
+ setShow(false);
27019
+ isOverMenu.current = false;
27020
+ isOverButton.current = false;
27021
+ }
27022
+ }, closeDelay);
27023
+ };
27024
+ return /* @__PURE__ */ jsxs18($de32f1b87079253c$export$2e1e1122cf0cba88, { children: [
27025
+ cloneElement3(triggerElement, { onHoverStart: handleHoverStart, onHoverEnd: handleHoverEnd }),
27026
+ /* @__PURE__ */ jsx33(Popover, { isOpen: show, isNonModal: true, children: /* @__PURE__ */ jsx33(
27027
+ "div",
27028
+ {
27029
+ className: HoverTrigger_default.wrapper,
27030
+ onMouseEnter: handleMenuEnter,
27031
+ onMouseLeave: handleMenuLeave,
27032
+ children: /* @__PURE__ */ jsx33(Dialog, { children: cloneElement3(popupElement) })
27033
+ }
27034
+ ) })
27035
+ ] });
27036
+ }
27037
+
26962
27038
  // src/components/InlineEditField.tsx
26963
27039
  var import_classnames28 = __toESM(require_classnames());
26964
- import { useState as useState6, useCallback } from "react";
27040
+ import { useState as useState7, useCallback } from "react";
26965
27041
 
26966
27042
  // src/components/InlineEditField.module.css
26967
27043
  var InlineEditField_default = {
@@ -26970,7 +27046,7 @@ var InlineEditField_default = {
26970
27046
  };
26971
27047
 
26972
27048
  // src/components/InlineEditField.tsx
26973
- import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
27049
+ import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
26974
27050
  function InlineEditField({
26975
27051
  value: defaultValue = "",
26976
27052
  defaultEdit,
@@ -26981,8 +27057,8 @@ function InlineEditField({
26981
27057
  onCancel,
26982
27058
  ...props
26983
27059
  }) {
26984
- const [value, setValue] = useState6(defaultValue);
26985
- const [edit, setEdit] = useState6(defaultEdit);
27060
+ const [value, setValue] = useState7(defaultValue);
27061
+ const [edit, setEdit] = useState7(defaultEdit);
26986
27062
  const handleEdit = () => setEdit(true);
26987
27063
  const handleChange = (e) => {
26988
27064
  const val = e.target.value;
@@ -27005,7 +27081,7 @@ function InlineEditField({
27005
27081
  handleCancel();
27006
27082
  }
27007
27083
  };
27008
- return /* @__PURE__ */ jsxs18(
27084
+ return /* @__PURE__ */ jsxs19(
27009
27085
  "div",
27010
27086
  {
27011
27087
  "aria-label": "Edit",
@@ -27014,8 +27090,8 @@ function InlineEditField({
27014
27090
  onClick: handleEdit,
27015
27091
  children: [
27016
27092
  !edit && children,
27017
- !edit && /* @__PURE__ */ jsx33(Icon, { className: InlineEditField_default.icon, children: /* @__PURE__ */ jsx33(Icons.Edit, {}) }),
27018
- edit && /* @__PURE__ */ jsx33(
27093
+ !edit && /* @__PURE__ */ jsx34(Icon, { className: InlineEditField_default.icon, children: /* @__PURE__ */ jsx34(Icons.Edit, {}) }),
27094
+ edit && /* @__PURE__ */ jsx34(
27019
27095
  TextField,
27020
27096
  {
27021
27097
  value,
@@ -27042,12 +27118,12 @@ var Loading_default = {
27042
27118
  };
27043
27119
 
27044
27120
  // src/components/Loading.tsx
27045
- import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
27121
+ import { jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
27046
27122
  function Loading(props) {
27047
27123
  const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
27048
- return /* @__PURE__ */ jsxs19("div", { ...domProps, className: (0, import_classnames29.default)(Loading_default.loading, className, Loading_default[position]), children: [
27049
- icon === "dots" && /* @__PURE__ */ jsx34(Dots, {}),
27050
- icon === "spinner" && /* @__PURE__ */ jsx34(Spinner, { size })
27124
+ return /* @__PURE__ */ jsxs20("div", { ...domProps, className: (0, import_classnames29.default)(Loading_default.loading, className, Loading_default[position]), children: [
27125
+ icon === "dots" && /* @__PURE__ */ jsx35(Dots, {}),
27126
+ icon === "spinner" && /* @__PURE__ */ jsx35(Spinner, { size })
27051
27127
  ] });
27052
27128
  }
27053
27129
 
@@ -27064,11 +27140,11 @@ var MenuItem_default = {
27064
27140
  };
27065
27141
 
27066
27142
  // src/components/MenuItem.tsx
27067
- import { jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
27143
+ import { jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
27068
27144
  function MenuItem2({ children, className, ...props }) {
27069
- return /* @__PURE__ */ jsxs20($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames30.default)(MenuItem_default.item, className), children: [
27145
+ return /* @__PURE__ */ jsxs21($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames30.default)(MenuItem_default.item, className), children: [
27070
27146
  children,
27071
- /* @__PURE__ */ jsx35("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx35(Icon, { className: MenuItem_default.check, children: /* @__PURE__ */ jsx35(Icons.Check, {}) }) })
27147
+ /* @__PURE__ */ jsx36("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx36(Icon, { className: MenuItem_default.check, children: /* @__PURE__ */ jsx36(Icons.Check, {}) }) })
27072
27148
  ] });
27073
27149
  }
27074
27150
 
@@ -27079,13 +27155,13 @@ var Menu_default = {
27079
27155
  };
27080
27156
 
27081
27157
  // src/components/Menu.tsx
27082
- import { jsx as jsx36 } from "react/jsx-runtime";
27158
+ import { jsx as jsx37 } from "react/jsx-runtime";
27083
27159
  function Menu({ items, className, children, ...props }) {
27084
- return /* @__PURE__ */ jsx36($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames31.default)(Menu_default.menu, className), children: children || items?.map((item, index) => {
27160
+ return /* @__PURE__ */ jsx37($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames31.default)(Menu_default.menu, className), children: children || items?.map((item, index) => {
27085
27161
  if (item === null) {
27086
- return /* @__PURE__ */ jsx36($431f98aba6844401$export$1ff3c3f08ae963c0, { className: Menu_default.separator }, index);
27162
+ return /* @__PURE__ */ jsx37($431f98aba6844401$export$1ff3c3f08ae963c0, { className: Menu_default.separator }, index);
27087
27163
  }
27088
- return /* @__PURE__ */ jsx36(MenuItem2, { id: item, children: item }, index);
27164
+ return /* @__PURE__ */ jsx37(MenuItem2, { id: item, children: item }, index);
27089
27165
  }) });
27090
27166
  }
27091
27167
 
@@ -27101,9 +27177,9 @@ var Modal_default = {
27101
27177
  };
27102
27178
 
27103
27179
  // src/components/Modal.tsx
27104
- import { jsx as jsx37 } from "react/jsx-runtime";
27180
+ import { jsx as jsx38 } from "react/jsx-runtime";
27105
27181
  function Modal({ children, className, ...props }) {
27106
- return /* @__PURE__ */ jsx37($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, children: /* @__PURE__ */ jsx37(
27182
+ return /* @__PURE__ */ jsx38($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, children: /* @__PURE__ */ jsx38(
27107
27183
  $f3f84453ead64de5$export$2b77a92f1a5ad772,
27108
27184
  {
27109
27185
  className: (0, import_classnames32.default)(Modal_default.modal, className),
@@ -27114,34 +27190,1086 @@ function Modal({ children, className, ...props }) {
27114
27190
  ) });
27115
27191
  }
27116
27192
 
27117
- // src/components/PasswordField.tsx
27118
- import { useState as useState7, forwardRef as forwardRef4 } from "react";
27193
+ // node_modules/@radix-ui/react-navigation-menu/dist/index.mjs
27194
+ import { forwardRef as $yHMN2$forwardRef, useState as $yHMN2$useState, useRef as $yHMN2$useRef, useCallback as $yHMN2$useCallback, useEffect as $yHMN2$useEffect, createElement as $yHMN2$createElement, Fragment as $yHMN2$Fragment, useMemo as $yHMN2$useMemo } from "react";
27195
+ import $yHMN2$reactdom from "react-dom";
27196
+
27197
+ // node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
27198
+ import { createContext as $kqwpH$createContext, forwardRef as $kqwpH$forwardRef, useContext as $kqwpH$useContext, useState as $kqwpH$useState, useEffect as $kqwpH$useEffect, createElement as $kqwpH$createElement, useRef as $kqwpH$useRef } from "react";
27199
+
27200
+ // node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
27201
+ import { useEffect as $hPSQ5$useEffect } from "react";
27202
+ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
27203
+ const onEscapeKeyDown = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEscapeKeyDownProp);
27204
+ $hPSQ5$useEffect(() => {
27205
+ const handleKeyDown = (event) => {
27206
+ if (event.key === "Escape") onEscapeKeyDown(event);
27207
+ };
27208
+ ownerDocument.addEventListener("keydown", handleKeyDown);
27209
+ return () => ownerDocument.removeEventListener("keydown", handleKeyDown);
27210
+ }, [
27211
+ onEscapeKeyDown,
27212
+ ownerDocument
27213
+ ]);
27214
+ }
27215
+
27216
+ // node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
27217
+ var $5cb92bef7577960e$var$CONTEXT_UPDATE = "dismissableLayer.update";
27218
+ var $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
27219
+ var $5cb92bef7577960e$var$FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
27220
+ var $5cb92bef7577960e$var$originalBodyPointerEvents;
27221
+ var $5cb92bef7577960e$var$DismissableLayerContext = /* @__PURE__ */ $kqwpH$createContext({
27222
+ layers: /* @__PURE__ */ new Set(),
27223
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
27224
+ branches: /* @__PURE__ */ new Set()
27225
+ });
27226
+ var $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ $kqwpH$forwardRef((props, forwardedRef) => {
27227
+ var _node$ownerDocument;
27228
+ const { disableOutsidePointerEvents = false, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, onDismiss, ...layerProps } = props;
27229
+ const context = $kqwpH$useContext($5cb92bef7577960e$var$DismissableLayerContext);
27230
+ const [node1, setNode] = $kqwpH$useState(null);
27231
+ 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;
27232
+ const [, force] = $kqwpH$useState({});
27233
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(
27234
+ forwardedRef,
27235
+ (node) => setNode(node)
27236
+ );
27237
+ const layers = Array.from(context.layers);
27238
+ const [highestLayerWithOutsidePointerEventsDisabled] = [
27239
+ ...context.layersWithOutsidePointerEventsDisabled
27240
+ ].slice(-1);
27241
+ const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
27242
+ const index = node1 ? layers.indexOf(node1) : -1;
27243
+ const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
27244
+ const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
27245
+ const pointerDownOutside = $5cb92bef7577960e$var$usePointerDownOutside((event) => {
27246
+ const target = event.target;
27247
+ const isPointerDownOnBranch = [
27248
+ ...context.branches
27249
+ ].some(
27250
+ (branch) => branch.contains(target)
27251
+ );
27252
+ if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
27253
+ onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);
27254
+ onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
27255
+ if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
27256
+ }, ownerDocument);
27257
+ const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event) => {
27258
+ const target = event.target;
27259
+ const isFocusInBranch = [
27260
+ ...context.branches
27261
+ ].some(
27262
+ (branch) => branch.contains(target)
27263
+ );
27264
+ if (isFocusInBranch) return;
27265
+ onFocusOutside === null || onFocusOutside === void 0 || onFocusOutside(event);
27266
+ onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
27267
+ if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
27268
+ }, ownerDocument);
27269
+ $addc16e1bbe58fd0$export$3a72a57244d6e765((event) => {
27270
+ const isHighestLayer = index === context.layers.size - 1;
27271
+ if (!isHighestLayer) return;
27272
+ onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);
27273
+ if (!event.defaultPrevented && onDismiss) {
27274
+ event.preventDefault();
27275
+ onDismiss();
27276
+ }
27277
+ }, ownerDocument);
27278
+ $kqwpH$useEffect(() => {
27279
+ if (!node1) return;
27280
+ if (disableOutsidePointerEvents) {
27281
+ if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
27282
+ $5cb92bef7577960e$var$originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
27283
+ ownerDocument.body.style.pointerEvents = "none";
27284
+ }
27285
+ context.layersWithOutsidePointerEventsDisabled.add(node1);
27286
+ }
27287
+ context.layers.add(node1);
27288
+ $5cb92bef7577960e$var$dispatchUpdate();
27289
+ return () => {
27290
+ if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;
27291
+ };
27292
+ }, [
27293
+ node1,
27294
+ ownerDocument,
27295
+ disableOutsidePointerEvents,
27296
+ context
27297
+ ]);
27298
+ $kqwpH$useEffect(() => {
27299
+ return () => {
27300
+ if (!node1) return;
27301
+ context.layers.delete(node1);
27302
+ context.layersWithOutsidePointerEventsDisabled.delete(node1);
27303
+ $5cb92bef7577960e$var$dispatchUpdate();
27304
+ };
27305
+ }, [
27306
+ node1,
27307
+ context
27308
+ ]);
27309
+ $kqwpH$useEffect(() => {
27310
+ const handleUpdate = () => force({});
27311
+ document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
27312
+ return () => document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
27313
+ }, []);
27314
+ return /* @__PURE__ */ $kqwpH$createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, layerProps, {
27315
+ ref: composedRefs,
27316
+ style: {
27317
+ pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
27318
+ ...props.style
27319
+ },
27320
+ onFocusCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocusCapture, focusOutside.onFocusCapture),
27321
+ onBlurCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onBlurCapture, focusOutside.onBlurCapture),
27322
+ onPointerDownCapture: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)
27323
+ }));
27324
+ });
27325
+ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
27326
+ const handlePointerDownOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPointerDownOutside);
27327
+ const isPointerInsideReactTreeRef = $kqwpH$useRef(false);
27328
+ const handleClickRef = $kqwpH$useRef(() => {
27329
+ });
27330
+ $kqwpH$useEffect(() => {
27331
+ const handlePointerDown = (event) => {
27332
+ if (event.target && !isPointerInsideReactTreeRef.current) {
27333
+ let handleAndDispatchPointerDownOutsideEvent = function() {
27334
+ $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, {
27335
+ discrete: true
27336
+ });
27337
+ };
27338
+ const eventDetail = {
27339
+ originalEvent: event
27340
+ };
27341
+ if (event.pointerType === "touch") {
27342
+ ownerDocument.removeEventListener("click", handleClickRef.current);
27343
+ handleClickRef.current = handleAndDispatchPointerDownOutsideEvent;
27344
+ ownerDocument.addEventListener("click", handleClickRef.current, {
27345
+ once: true
27346
+ });
27347
+ } else handleAndDispatchPointerDownOutsideEvent();
27348
+ } else
27349
+ ownerDocument.removeEventListener("click", handleClickRef.current);
27350
+ isPointerInsideReactTreeRef.current = false;
27351
+ };
27352
+ const timerId = window.setTimeout(() => {
27353
+ ownerDocument.addEventListener("pointerdown", handlePointerDown);
27354
+ }, 0);
27355
+ return () => {
27356
+ window.clearTimeout(timerId);
27357
+ ownerDocument.removeEventListener("pointerdown", handlePointerDown);
27358
+ ownerDocument.removeEventListener("click", handleClickRef.current);
27359
+ };
27360
+ }, [
27361
+ ownerDocument,
27362
+ handlePointerDownOutside
27363
+ ]);
27364
+ return {
27365
+ // ensures we check React component tree (not just DOM tree)
27366
+ onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true
27367
+ };
27368
+ }
27369
+ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
27370
+ const handleFocusOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onFocusOutside);
27371
+ const isFocusInsideReactTreeRef = $kqwpH$useRef(false);
27372
+ $kqwpH$useEffect(() => {
27373
+ const handleFocus = (event) => {
27374
+ if (event.target && !isFocusInsideReactTreeRef.current) {
27375
+ const eventDetail = {
27376
+ originalEvent: event
27377
+ };
27378
+ $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {
27379
+ discrete: false
27380
+ });
27381
+ }
27382
+ };
27383
+ ownerDocument.addEventListener("focusin", handleFocus);
27384
+ return () => ownerDocument.removeEventListener("focusin", handleFocus);
27385
+ }, [
27386
+ ownerDocument,
27387
+ handleFocusOutside
27388
+ ]);
27389
+ return {
27390
+ onFocusCapture: () => isFocusInsideReactTreeRef.current = true,
27391
+ onBlurCapture: () => isFocusInsideReactTreeRef.current = false
27392
+ };
27393
+ }
27394
+ function $5cb92bef7577960e$var$dispatchUpdate() {
27395
+ const event = new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE);
27396
+ document.dispatchEvent(event);
27397
+ }
27398
+ function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
27399
+ const target = detail.originalEvent.target;
27400
+ const event = new CustomEvent(name, {
27401
+ bubbles: false,
27402
+ cancelable: true,
27403
+ detail
27404
+ });
27405
+ if (handler) target.addEventListener(name, handler, {
27406
+ once: true
27407
+ });
27408
+ if (discrete) $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event);
27409
+ else target.dispatchEvent(event);
27410
+ }
27411
+
27412
+ // node_modules/@radix-ui/react-use-previous/dist/index.mjs
27413
+ import { useRef as $8LvvK$useRef, useMemo as $8LvvK$useMemo } from "react";
27414
+ function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
27415
+ const ref = $8LvvK$useRef({
27416
+ value,
27417
+ previous: value
27418
+ });
27419
+ return $8LvvK$useMemo(() => {
27420
+ if (ref.current.value !== value) {
27421
+ ref.current.previous = ref.current.value;
27422
+ ref.current.value = value;
27423
+ }
27424
+ return ref.current.previous;
27425
+ }, [
27426
+ value
27427
+ ]);
27428
+ }
27429
+
27430
+ // node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
27431
+ import { forwardRef as $kVwnw$forwardRef, createElement as $kVwnw$createElement } from "react";
27432
+ var $ea1ef594cf570d83$export$439d29a4e110a164 = /* @__PURE__ */ $kVwnw$forwardRef((props, forwardedRef) => {
27433
+ return /* @__PURE__ */ $kVwnw$createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, props, {
27434
+ ref: forwardedRef,
27435
+ style: {
27436
+ // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
27437
+ position: "absolute",
27438
+ border: 0,
27439
+ width: 1,
27440
+ height: 1,
27441
+ padding: 0,
27442
+ margin: -1,
27443
+ overflow: "hidden",
27444
+ clip: "rect(0, 0, 0, 0)",
27445
+ whiteSpace: "nowrap",
27446
+ wordWrap: "normal",
27447
+ ...props.style
27448
+ }
27449
+ }));
27450
+ });
27451
+ var $ea1ef594cf570d83$export$be92b6f5f03c0fe9 = $ea1ef594cf570d83$export$439d29a4e110a164;
27452
+
27453
+ // node_modules/@radix-ui/react-navigation-menu/dist/index.mjs
27454
+ var $322c88a641701f3b$var$NAVIGATION_MENU_NAME = "NavigationMenu";
27455
+ var [$322c88a641701f3b$var$Collection, $322c88a641701f3b$var$useCollection, $322c88a641701f3b$var$createCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($322c88a641701f3b$var$NAVIGATION_MENU_NAME);
27456
+ var [$322c88a641701f3b$var$FocusGroupCollection, $322c88a641701f3b$var$useFocusGroupCollection, $322c88a641701f3b$var$createFocusGroupCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($322c88a641701f3b$var$NAVIGATION_MENU_NAME);
27457
+ var [$322c88a641701f3b$var$createNavigationMenuContext, $322c88a641701f3b$export$fb8ea5af8c9fcdf0] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($322c88a641701f3b$var$NAVIGATION_MENU_NAME, [
27458
+ $322c88a641701f3b$var$createCollectionScope,
27459
+ $322c88a641701f3b$var$createFocusGroupCollectionScope
27460
+ ]);
27461
+ var [$322c88a641701f3b$var$NavigationMenuProviderImpl, $322c88a641701f3b$var$useNavigationMenuContext] = $322c88a641701f3b$var$createNavigationMenuContext($322c88a641701f3b$var$NAVIGATION_MENU_NAME);
27462
+ var [$322c88a641701f3b$var$ViewportContentProvider, $322c88a641701f3b$var$useViewportContentContext] = $322c88a641701f3b$var$createNavigationMenuContext($322c88a641701f3b$var$NAVIGATION_MENU_NAME);
27463
+ var $322c88a641701f3b$export$5b2278cf1e8bcae2 = /* @__PURE__ */ $yHMN2$forwardRef((props, forwardedRef) => {
27464
+ const { __scopeNavigationMenu, value: valueProp, onValueChange, defaultValue, delayDuration = 200, skipDelayDuration = 300, orientation = "horizontal", dir, ...NavigationMenuProps } = props;
27465
+ const [navigationMenu, setNavigationMenu] = $yHMN2$useState(null);
27466
+ const composedRef = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(
27467
+ forwardedRef,
27468
+ (node) => setNavigationMenu(node)
27469
+ );
27470
+ const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
27471
+ const openTimerRef = $yHMN2$useRef(0);
27472
+ const closeTimerRef = $yHMN2$useRef(0);
27473
+ const skipDelayTimerRef = $yHMN2$useRef(0);
27474
+ const [isOpenDelayed, setIsOpenDelayed] = $yHMN2$useState(true);
27475
+ const [value1 = "", setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
27476
+ prop: valueProp,
27477
+ onChange: (value) => {
27478
+ const isOpen = value !== "";
27479
+ const hasSkipDelayDuration = skipDelayDuration > 0;
27480
+ if (isOpen) {
27481
+ window.clearTimeout(skipDelayTimerRef.current);
27482
+ if (hasSkipDelayDuration) setIsOpenDelayed(false);
27483
+ } else {
27484
+ window.clearTimeout(skipDelayTimerRef.current);
27485
+ skipDelayTimerRef.current = window.setTimeout(
27486
+ () => setIsOpenDelayed(true),
27487
+ skipDelayDuration
27488
+ );
27489
+ }
27490
+ onValueChange === null || onValueChange === void 0 || onValueChange(value);
27491
+ },
27492
+ defaultProp: defaultValue
27493
+ });
27494
+ const startCloseTimer = $yHMN2$useCallback(() => {
27495
+ window.clearTimeout(closeTimerRef.current);
27496
+ closeTimerRef.current = window.setTimeout(
27497
+ () => setValue(""),
27498
+ 150
27499
+ );
27500
+ }, [
27501
+ setValue
27502
+ ]);
27503
+ const handleOpen = $yHMN2$useCallback((itemValue) => {
27504
+ window.clearTimeout(closeTimerRef.current);
27505
+ setValue(itemValue);
27506
+ }, [
27507
+ setValue
27508
+ ]);
27509
+ const handleDelayedOpen = $yHMN2$useCallback((itemValue) => {
27510
+ const isOpenItem = value1 === itemValue;
27511
+ if (isOpenItem)
27512
+ window.clearTimeout(closeTimerRef.current);
27513
+ else openTimerRef.current = window.setTimeout(() => {
27514
+ window.clearTimeout(closeTimerRef.current);
27515
+ setValue(itemValue);
27516
+ }, delayDuration);
27517
+ }, [
27518
+ value1,
27519
+ setValue,
27520
+ delayDuration
27521
+ ]);
27522
+ $yHMN2$useEffect(() => {
27523
+ return () => {
27524
+ window.clearTimeout(openTimerRef.current);
27525
+ window.clearTimeout(closeTimerRef.current);
27526
+ window.clearTimeout(skipDelayTimerRef.current);
27527
+ };
27528
+ }, []);
27529
+ return /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$NavigationMenuProvider, {
27530
+ scope: __scopeNavigationMenu,
27531
+ isRootMenu: true,
27532
+ value: value1,
27533
+ dir: direction,
27534
+ orientation,
27535
+ rootNavigationMenu: navigationMenu,
27536
+ onTriggerEnter: (itemValue) => {
27537
+ window.clearTimeout(openTimerRef.current);
27538
+ if (isOpenDelayed) handleDelayedOpen(itemValue);
27539
+ else handleOpen(itemValue);
27540
+ },
27541
+ onTriggerLeave: () => {
27542
+ window.clearTimeout(openTimerRef.current);
27543
+ startCloseTimer();
27544
+ },
27545
+ onContentEnter: () => window.clearTimeout(closeTimerRef.current),
27546
+ onContentLeave: startCloseTimer,
27547
+ onItemSelect: (itemValue) => {
27548
+ setValue(
27549
+ (prevValue) => prevValue === itemValue ? "" : itemValue
27550
+ );
27551
+ },
27552
+ onItemDismiss: () => setValue("")
27553
+ }, /* @__PURE__ */ $yHMN2$createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.nav, _extends({
27554
+ "aria-label": "Main",
27555
+ "data-orientation": orientation,
27556
+ dir: direction
27557
+ }, NavigationMenuProps, {
27558
+ ref: composedRef
27559
+ })));
27560
+ });
27561
+ var $322c88a641701f3b$var$NavigationMenuProvider = (props) => {
27562
+ const { scope, isRootMenu, rootNavigationMenu, dir, orientation, children, value, onItemSelect, onItemDismiss, onTriggerEnter, onTriggerLeave, onContentEnter, onContentLeave } = props;
27563
+ const [viewport, setViewport] = $yHMN2$useState(null);
27564
+ const [viewportContent, setViewportContent] = $yHMN2$useState(/* @__PURE__ */ new Map());
27565
+ const [indicatorTrack, setIndicatorTrack] = $yHMN2$useState(null);
27566
+ return /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$NavigationMenuProviderImpl, {
27567
+ scope,
27568
+ isRootMenu,
27569
+ rootNavigationMenu,
27570
+ value,
27571
+ previousValue: $010c2913dbd2fe3d$export$5cae361ad82dce8b(value),
27572
+ baseId: $1746a345f3d73bb7$export$f680877a34711e37(),
27573
+ dir,
27574
+ orientation,
27575
+ viewport,
27576
+ onViewportChange: setViewport,
27577
+ indicatorTrack,
27578
+ onIndicatorTrackChange: setIndicatorTrack,
27579
+ onTriggerEnter: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onTriggerEnter),
27580
+ onTriggerLeave: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onTriggerLeave),
27581
+ onContentEnter: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onContentEnter),
27582
+ onContentLeave: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onContentLeave),
27583
+ onItemSelect: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onItemSelect),
27584
+ onItemDismiss: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onItemDismiss),
27585
+ onViewportContentChange: $yHMN2$useCallback((contentValue, contentData) => {
27586
+ setViewportContent((prevContent) => {
27587
+ prevContent.set(contentValue, contentData);
27588
+ return new Map(prevContent);
27589
+ });
27590
+ }, []),
27591
+ onViewportContentRemove: $yHMN2$useCallback((contentValue) => {
27592
+ setViewportContent((prevContent) => {
27593
+ if (!prevContent.has(contentValue)) return prevContent;
27594
+ prevContent.delete(contentValue);
27595
+ return new Map(prevContent);
27596
+ });
27597
+ }, [])
27598
+ }, /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$Collection.Provider, {
27599
+ scope
27600
+ }, /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$ViewportContentProvider, {
27601
+ scope,
27602
+ items: viewportContent
27603
+ }, children)));
27604
+ };
27605
+ var $322c88a641701f3b$var$LIST_NAME = "NavigationMenuList";
27606
+ var $322c88a641701f3b$export$c361068a95fd2286 = /* @__PURE__ */ $yHMN2$forwardRef((props, forwardedRef) => {
27607
+ const { __scopeNavigationMenu, ...listProps } = props;
27608
+ const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$LIST_NAME, __scopeNavigationMenu);
27609
+ const list = /* @__PURE__ */ $yHMN2$createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.ul, _extends({
27610
+ "data-orientation": context.orientation
27611
+ }, listProps, {
27612
+ ref: forwardedRef
27613
+ }));
27614
+ return /* @__PURE__ */ $yHMN2$createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, {
27615
+ style: {
27616
+ position: "relative"
27617
+ },
27618
+ ref: context.onIndicatorTrackChange
27619
+ }, /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$Collection.Slot, {
27620
+ scope: __scopeNavigationMenu
27621
+ }, context.isRootMenu ? /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$FocusGroup, {
27622
+ asChild: true
27623
+ }, list) : list));
27624
+ });
27625
+ var $322c88a641701f3b$var$ITEM_NAME = "NavigationMenuItem";
27626
+ var [$322c88a641701f3b$var$NavigationMenuItemContextProvider, $322c88a641701f3b$var$useNavigationMenuItemContext] = $322c88a641701f3b$var$createNavigationMenuContext($322c88a641701f3b$var$ITEM_NAME);
27627
+ var $322c88a641701f3b$export$ffdbb83a2de845c2 = /* @__PURE__ */ $yHMN2$forwardRef((props, forwardedRef) => {
27628
+ const { __scopeNavigationMenu, value: valueProp, ...itemProps } = props;
27629
+ const autoValue = $1746a345f3d73bb7$export$f680877a34711e37();
27630
+ const value = valueProp || autoValue || "LEGACY_REACT_AUTO_VALUE";
27631
+ const contentRef = $yHMN2$useRef(null);
27632
+ const triggerRef = $yHMN2$useRef(null);
27633
+ const focusProxyRef = $yHMN2$useRef(null);
27634
+ const restoreContentTabOrderRef = $yHMN2$useRef(() => {
27635
+ });
27636
+ const wasEscapeCloseRef = $yHMN2$useRef(false);
27637
+ const handleContentEntry = $yHMN2$useCallback((side = "start") => {
27638
+ if (contentRef.current) {
27639
+ restoreContentTabOrderRef.current();
27640
+ const candidates = $322c88a641701f3b$var$getTabbableCandidates(contentRef.current);
27641
+ if (candidates.length) $322c88a641701f3b$var$focusFirst(side === "start" ? candidates : candidates.reverse());
27642
+ }
27643
+ }, []);
27644
+ const handleContentExit = $yHMN2$useCallback(() => {
27645
+ if (contentRef.current) {
27646
+ const candidates = $322c88a641701f3b$var$getTabbableCandidates(contentRef.current);
27647
+ if (candidates.length) restoreContentTabOrderRef.current = $322c88a641701f3b$var$removeFromTabOrder(candidates);
27648
+ }
27649
+ }, []);
27650
+ return /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$NavigationMenuItemContextProvider, {
27651
+ scope: __scopeNavigationMenu,
27652
+ value,
27653
+ triggerRef,
27654
+ contentRef,
27655
+ focusProxyRef,
27656
+ wasEscapeCloseRef,
27657
+ onEntryKeyDown: handleContentEntry,
27658
+ onFocusProxyEnter: handleContentEntry,
27659
+ onRootContentClose: handleContentExit,
27660
+ onContentFocusOutside: handleContentExit
27661
+ }, /* @__PURE__ */ $yHMN2$createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.li, _extends({}, itemProps, {
27662
+ ref: forwardedRef
27663
+ })));
27664
+ });
27665
+ var $322c88a641701f3b$var$TRIGGER_NAME = "NavigationMenuTrigger";
27666
+ var $322c88a641701f3b$export$37fe8002734d8f2 = /* @__PURE__ */ $yHMN2$forwardRef((props, forwardedRef) => {
27667
+ const { __scopeNavigationMenu, disabled, ...triggerProps } = props;
27668
+ const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$TRIGGER_NAME, props.__scopeNavigationMenu);
27669
+ const itemContext = $322c88a641701f3b$var$useNavigationMenuItemContext($322c88a641701f3b$var$TRIGGER_NAME, props.__scopeNavigationMenu);
27670
+ const ref = $yHMN2$useRef(null);
27671
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(ref, itemContext.triggerRef, forwardedRef);
27672
+ const triggerId = $322c88a641701f3b$var$makeTriggerId(context.baseId, itemContext.value);
27673
+ const contentId = $322c88a641701f3b$var$makeContentId(context.baseId, itemContext.value);
27674
+ const hasPointerMoveOpenedRef = $yHMN2$useRef(false);
27675
+ const wasClickCloseRef = $yHMN2$useRef(false);
27676
+ const open = itemContext.value === context.value;
27677
+ return /* @__PURE__ */ $yHMN2$createElement($yHMN2$Fragment, null, /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$Collection.ItemSlot, {
27678
+ scope: __scopeNavigationMenu,
27679
+ value: itemContext.value
27680
+ }, /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$FocusGroupItem, {
27681
+ asChild: true
27682
+ }, /* @__PURE__ */ $yHMN2$createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
27683
+ id: triggerId,
27684
+ disabled,
27685
+ "data-disabled": disabled ? "" : void 0,
27686
+ "data-state": $322c88a641701f3b$var$getOpenState(open),
27687
+ "aria-expanded": open,
27688
+ "aria-controls": contentId
27689
+ }, triggerProps, {
27690
+ ref: composedRefs,
27691
+ onPointerEnter: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerEnter, () => {
27692
+ wasClickCloseRef.current = false;
27693
+ itemContext.wasEscapeCloseRef.current = false;
27694
+ }),
27695
+ onPointerMove: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, $322c88a641701f3b$var$whenMouse(() => {
27696
+ if (disabled || wasClickCloseRef.current || itemContext.wasEscapeCloseRef.current || hasPointerMoveOpenedRef.current) return;
27697
+ context.onTriggerEnter(itemContext.value);
27698
+ hasPointerMoveOpenedRef.current = true;
27699
+ })),
27700
+ onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave, $322c88a641701f3b$var$whenMouse(() => {
27701
+ if (disabled) return;
27702
+ context.onTriggerLeave();
27703
+ hasPointerMoveOpenedRef.current = false;
27704
+ })),
27705
+ onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, () => {
27706
+ context.onItemSelect(itemContext.value);
27707
+ wasClickCloseRef.current = open;
27708
+ }),
27709
+ onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event) => {
27710
+ const verticalEntryKey = context.dir === "rtl" ? "ArrowLeft" : "ArrowRight";
27711
+ const entryKey = {
27712
+ horizontal: "ArrowDown",
27713
+ vertical: verticalEntryKey
27714
+ }[context.orientation];
27715
+ if (open && event.key === entryKey) {
27716
+ itemContext.onEntryKeyDown();
27717
+ event.preventDefault();
27718
+ }
27719
+ })
27720
+ })))), open && /* @__PURE__ */ $yHMN2$createElement($yHMN2$Fragment, null, /* @__PURE__ */ $yHMN2$createElement($ea1ef594cf570d83$export$be92b6f5f03c0fe9, {
27721
+ "aria-hidden": true,
27722
+ tabIndex: 0,
27723
+ ref: itemContext.focusProxyRef,
27724
+ onFocus: (event) => {
27725
+ const content = itemContext.contentRef.current;
27726
+ const prevFocusedElement = event.relatedTarget;
27727
+ const wasTriggerFocused = prevFocusedElement === ref.current;
27728
+ const wasFocusFromContent = content === null || content === void 0 ? void 0 : content.contains(prevFocusedElement);
27729
+ if (wasTriggerFocused || !wasFocusFromContent) itemContext.onFocusProxyEnter(wasTriggerFocused ? "start" : "end");
27730
+ }
27731
+ }), context.viewport && /* @__PURE__ */ $yHMN2$createElement("span", {
27732
+ "aria-owns": contentId
27733
+ })));
27734
+ });
27735
+ var $322c88a641701f3b$var$LINK_SELECT = "navigationMenu.linkSelect";
27736
+ var $322c88a641701f3b$export$6893bf21536567da = /* @__PURE__ */ $yHMN2$forwardRef((props, forwardedRef) => {
27737
+ const { __scopeNavigationMenu, active, onSelect, ...linkProps } = props;
27738
+ return /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$FocusGroupItem, {
27739
+ asChild: true
27740
+ }, /* @__PURE__ */ $yHMN2$createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.a, _extends({
27741
+ "data-active": active ? "" : void 0,
27742
+ "aria-current": active ? "page" : void 0
27743
+ }, linkProps, {
27744
+ ref: forwardedRef,
27745
+ onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, (event1) => {
27746
+ const target = event1.target;
27747
+ const linkSelectEvent = new CustomEvent($322c88a641701f3b$var$LINK_SELECT, {
27748
+ bubbles: true,
27749
+ cancelable: true
27750
+ });
27751
+ target.addEventListener(
27752
+ $322c88a641701f3b$var$LINK_SELECT,
27753
+ (event) => onSelect === null || onSelect === void 0 ? void 0 : onSelect(event),
27754
+ {
27755
+ once: true
27756
+ }
27757
+ );
27758
+ $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, linkSelectEvent);
27759
+ if (!linkSelectEvent.defaultPrevented && !event1.metaKey) {
27760
+ const rootContentDismissEvent = new CustomEvent($322c88a641701f3b$var$ROOT_CONTENT_DISMISS, {
27761
+ bubbles: true,
27762
+ cancelable: true
27763
+ });
27764
+ $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, rootContentDismissEvent);
27765
+ }
27766
+ }, {
27767
+ checkForDefaultPrevented: false
27768
+ })
27769
+ })));
27770
+ });
27771
+ var $322c88a641701f3b$var$INDICATOR_NAME = "NavigationMenuIndicator";
27772
+ var $322c88a641701f3b$export$8ddb526647c0d8fb = /* @__PURE__ */ $yHMN2$forwardRef((props, forwardedRef) => {
27773
+ const { forceMount, ...indicatorProps } = props;
27774
+ const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$INDICATOR_NAME, props.__scopeNavigationMenu);
27775
+ const isVisible = Boolean(context.value);
27776
+ return context.indicatorTrack ? /* @__PURE__ */ $yHMN2$reactdom.createPortal(/* @__PURE__ */ $yHMN2$createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
27777
+ present: forceMount || isVisible
27778
+ }, /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$NavigationMenuIndicatorImpl, _extends({}, indicatorProps, {
27779
+ ref: forwardedRef
27780
+ }))), context.indicatorTrack) : null;
27781
+ });
27782
+ var $322c88a641701f3b$var$NavigationMenuIndicatorImpl = /* @__PURE__ */ $yHMN2$forwardRef((props, forwardedRef) => {
27783
+ const { __scopeNavigationMenu, ...indicatorProps } = props;
27784
+ const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$INDICATOR_NAME, __scopeNavigationMenu);
27785
+ const getItems = $322c88a641701f3b$var$useCollection(__scopeNavigationMenu);
27786
+ const [activeTrigger, setActiveTrigger] = $yHMN2$useState(null);
27787
+ const [position, setPosition] = $yHMN2$useState(null);
27788
+ const isHorizontal = context.orientation === "horizontal";
27789
+ const isVisible = Boolean(context.value);
27790
+ $yHMN2$useEffect(() => {
27791
+ var _items$find;
27792
+ const items = getItems();
27793
+ const triggerNode = (_items$find = items.find(
27794
+ (item) => item.value === context.value
27795
+ )) === null || _items$find === void 0 ? void 0 : _items$find.ref.current;
27796
+ if (triggerNode) setActiveTrigger(triggerNode);
27797
+ }, [
27798
+ getItems,
27799
+ context.value
27800
+ ]);
27801
+ const handlePositionChange = () => {
27802
+ if (activeTrigger) setPosition({
27803
+ size: isHorizontal ? activeTrigger.offsetWidth : activeTrigger.offsetHeight,
27804
+ offset: isHorizontal ? activeTrigger.offsetLeft : activeTrigger.offsetTop
27805
+ });
27806
+ };
27807
+ $322c88a641701f3b$var$useResizeObserver(activeTrigger, handlePositionChange);
27808
+ $322c88a641701f3b$var$useResizeObserver(context.indicatorTrack, handlePositionChange);
27809
+ return position ? /* @__PURE__ */ $yHMN2$createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
27810
+ "aria-hidden": true,
27811
+ "data-state": isVisible ? "visible" : "hidden",
27812
+ "data-orientation": context.orientation
27813
+ }, indicatorProps, {
27814
+ ref: forwardedRef,
27815
+ style: {
27816
+ position: "absolute",
27817
+ ...isHorizontal ? {
27818
+ left: 0,
27819
+ width: position.size + "px",
27820
+ transform: `translateX(${position.offset}px)`
27821
+ } : {
27822
+ top: 0,
27823
+ height: position.size + "px",
27824
+ transform: `translateY(${position.offset}px)`
27825
+ },
27826
+ ...indicatorProps.style
27827
+ }
27828
+ })) : null;
27829
+ });
27830
+ var $322c88a641701f3b$var$CONTENT_NAME = "NavigationMenuContent";
27831
+ var $322c88a641701f3b$export$38e00e996c2f93f7 = /* @__PURE__ */ $yHMN2$forwardRef((props, forwardedRef) => {
27832
+ const { forceMount, ...contentProps } = props;
27833
+ const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$CONTENT_NAME, props.__scopeNavigationMenu);
27834
+ const itemContext = $322c88a641701f3b$var$useNavigationMenuItemContext($322c88a641701f3b$var$CONTENT_NAME, props.__scopeNavigationMenu);
27835
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(itemContext.contentRef, forwardedRef);
27836
+ const open = itemContext.value === context.value;
27837
+ const commonProps = {
27838
+ value: itemContext.value,
27839
+ triggerRef: itemContext.triggerRef,
27840
+ focusProxyRef: itemContext.focusProxyRef,
27841
+ wasEscapeCloseRef: itemContext.wasEscapeCloseRef,
27842
+ onContentFocusOutside: itemContext.onContentFocusOutside,
27843
+ onRootContentClose: itemContext.onRootContentClose,
27844
+ ...contentProps
27845
+ };
27846
+ return !context.viewport ? /* @__PURE__ */ $yHMN2$createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
27847
+ present: forceMount || open
27848
+ }, /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$NavigationMenuContentImpl, _extends({
27849
+ "data-state": $322c88a641701f3b$var$getOpenState(open)
27850
+ }, commonProps, {
27851
+ ref: composedRefs,
27852
+ onPointerEnter: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerEnter, context.onContentEnter),
27853
+ onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave, $322c88a641701f3b$var$whenMouse(context.onContentLeave)),
27854
+ style: {
27855
+ // Prevent interaction when animating out
27856
+ pointerEvents: !open && context.isRootMenu ? "none" : void 0,
27857
+ ...commonProps.style
27858
+ }
27859
+ }))) : /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$ViewportContentMounter, _extends({
27860
+ forceMount
27861
+ }, commonProps, {
27862
+ ref: composedRefs
27863
+ }));
27864
+ });
27865
+ var $322c88a641701f3b$var$ViewportContentMounter = /* @__PURE__ */ $yHMN2$forwardRef((props, forwardedRef) => {
27866
+ const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$CONTENT_NAME, props.__scopeNavigationMenu);
27867
+ const { onViewportContentChange, onViewportContentRemove } = context;
27868
+ $9f79659886946c16$export$e5c5a5f917a5871c(() => {
27869
+ onViewportContentChange(props.value, {
27870
+ ref: forwardedRef,
27871
+ ...props
27872
+ });
27873
+ }, [
27874
+ props,
27875
+ forwardedRef,
27876
+ onViewportContentChange
27877
+ ]);
27878
+ $9f79659886946c16$export$e5c5a5f917a5871c(() => {
27879
+ return () => onViewportContentRemove(props.value);
27880
+ }, [
27881
+ props.value,
27882
+ onViewportContentRemove
27883
+ ]);
27884
+ return null;
27885
+ });
27886
+ var $322c88a641701f3b$var$ROOT_CONTENT_DISMISS = "navigationMenu.rootContentDismiss";
27887
+ var $322c88a641701f3b$var$NavigationMenuContentImpl = /* @__PURE__ */ $yHMN2$forwardRef((props, forwardedRef) => {
27888
+ const { __scopeNavigationMenu, value, triggerRef, focusProxyRef, wasEscapeCloseRef, onRootContentClose, onContentFocusOutside, ...contentProps } = props;
27889
+ const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$CONTENT_NAME, __scopeNavigationMenu);
27890
+ const ref = $yHMN2$useRef(null);
27891
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(ref, forwardedRef);
27892
+ const triggerId = $322c88a641701f3b$var$makeTriggerId(context.baseId, value);
27893
+ const contentId = $322c88a641701f3b$var$makeContentId(context.baseId, value);
27894
+ const getItems = $322c88a641701f3b$var$useCollection(__scopeNavigationMenu);
27895
+ const prevMotionAttributeRef = $yHMN2$useRef(null);
27896
+ const { onItemDismiss } = context;
27897
+ $yHMN2$useEffect(() => {
27898
+ const content = ref.current;
27899
+ if (context.isRootMenu && content) {
27900
+ const handleClose = () => {
27901
+ var _triggerRef$current;
27902
+ onItemDismiss();
27903
+ onRootContentClose();
27904
+ if (content.contains(document.activeElement)) (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 || _triggerRef$current.focus();
27905
+ };
27906
+ content.addEventListener($322c88a641701f3b$var$ROOT_CONTENT_DISMISS, handleClose);
27907
+ return () => content.removeEventListener($322c88a641701f3b$var$ROOT_CONTENT_DISMISS, handleClose);
27908
+ }
27909
+ }, [
27910
+ context.isRootMenu,
27911
+ props.value,
27912
+ triggerRef,
27913
+ onItemDismiss,
27914
+ onRootContentClose
27915
+ ]);
27916
+ const motionAttribute = $yHMN2$useMemo(() => {
27917
+ const items = getItems();
27918
+ const values = items.map(
27919
+ (item) => item.value
27920
+ );
27921
+ if (context.dir === "rtl") values.reverse();
27922
+ const index = values.indexOf(context.value);
27923
+ const prevIndex = values.indexOf(context.previousValue);
27924
+ const isSelected = value === context.value;
27925
+ const wasSelected = prevIndex === values.indexOf(value);
27926
+ if (!isSelected && !wasSelected) return prevMotionAttributeRef.current;
27927
+ const attribute = (() => {
27928
+ if (index !== prevIndex) {
27929
+ if (isSelected && prevIndex !== -1) return index > prevIndex ? "from-end" : "from-start";
27930
+ if (wasSelected && index !== -1) return index > prevIndex ? "to-start" : "to-end";
27931
+ }
27932
+ return null;
27933
+ })();
27934
+ prevMotionAttributeRef.current = attribute;
27935
+ return attribute;
27936
+ }, [
27937
+ context.previousValue,
27938
+ context.value,
27939
+ context.dir,
27940
+ getItems,
27941
+ value
27942
+ ]);
27943
+ return /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$FocusGroup, {
27944
+ asChild: true
27945
+ }, /* @__PURE__ */ $yHMN2$createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, _extends({
27946
+ id: contentId,
27947
+ "aria-labelledby": triggerId,
27948
+ "data-motion": motionAttribute,
27949
+ "data-orientation": context.orientation
27950
+ }, contentProps, {
27951
+ ref: composedRefs,
27952
+ onDismiss: () => {
27953
+ var _ref$current;
27954
+ const rootContentDismissEvent = new Event($322c88a641701f3b$var$ROOT_CONTENT_DISMISS, {
27955
+ bubbles: true,
27956
+ cancelable: true
27957
+ });
27958
+ (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.dispatchEvent(rootContentDismissEvent);
27959
+ },
27960
+ onFocusOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocusOutside, (event) => {
27961
+ var _context$rootNavigati;
27962
+ onContentFocusOutside();
27963
+ const target = event.target;
27964
+ if ((_context$rootNavigati = context.rootNavigationMenu) !== null && _context$rootNavigati !== void 0 && _context$rootNavigati.contains(target)) event.preventDefault();
27965
+ }),
27966
+ onPointerDownOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownOutside, (event) => {
27967
+ var _context$viewport;
27968
+ const target = event.target;
27969
+ const isTrigger = getItems().some((item) => {
27970
+ var _item$ref$current;
27971
+ return (_item$ref$current = item.ref.current) === null || _item$ref$current === void 0 ? void 0 : _item$ref$current.contains(target);
27972
+ });
27973
+ const isRootViewport = context.isRootMenu && ((_context$viewport = context.viewport) === null || _context$viewport === void 0 ? void 0 : _context$viewport.contains(target));
27974
+ if (isTrigger || isRootViewport || !context.isRootMenu) event.preventDefault();
27975
+ }),
27976
+ onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event) => {
27977
+ const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;
27978
+ const isTabKey = event.key === "Tab" && !isMetaKey;
27979
+ if (isTabKey) {
27980
+ const candidates = $322c88a641701f3b$var$getTabbableCandidates(event.currentTarget);
27981
+ const focusedElement = document.activeElement;
27982
+ const index = candidates.findIndex(
27983
+ (candidate) => candidate === focusedElement
27984
+ );
27985
+ const isMovingBackwards = event.shiftKey;
27986
+ const nextCandidates = isMovingBackwards ? candidates.slice(0, index).reverse() : candidates.slice(index + 1, candidates.length);
27987
+ if ($322c88a641701f3b$var$focusFirst(nextCandidates))
27988
+ event.preventDefault();
27989
+ else {
27990
+ var _focusProxyRef$curren;
27991
+ (_focusProxyRef$curren = focusProxyRef.current) === null || _focusProxyRef$curren === void 0 || _focusProxyRef$curren.focus();
27992
+ }
27993
+ }
27994
+ }),
27995
+ onEscapeKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onEscapeKeyDown, (event) => {
27996
+ wasEscapeCloseRef.current = true;
27997
+ })
27998
+ })));
27999
+ });
28000
+ var $322c88a641701f3b$var$VIEWPORT_NAME = "NavigationMenuViewport";
28001
+ var $322c88a641701f3b$export$ee880b97cc6d44a5 = /* @__PURE__ */ $yHMN2$forwardRef((props, forwardedRef) => {
28002
+ const { forceMount, ...viewportProps } = props;
28003
+ const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$VIEWPORT_NAME, props.__scopeNavigationMenu);
28004
+ const open = Boolean(context.value);
28005
+ return /* @__PURE__ */ $yHMN2$createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
28006
+ present: forceMount || open
28007
+ }, /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$NavigationMenuViewportImpl, _extends({}, viewportProps, {
28008
+ ref: forwardedRef
28009
+ })));
28010
+ });
28011
+ var $322c88a641701f3b$var$NavigationMenuViewportImpl = /* @__PURE__ */ $yHMN2$forwardRef((props1, forwardedRef) => {
28012
+ const { __scopeNavigationMenu, children, ...viewportImplProps } = props1;
28013
+ const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$VIEWPORT_NAME, __scopeNavigationMenu);
28014
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.onViewportChange);
28015
+ const viewportContentContext = $322c88a641701f3b$var$useViewportContentContext($322c88a641701f3b$var$CONTENT_NAME, props1.__scopeNavigationMenu);
28016
+ const [size, setSize] = $yHMN2$useState(null);
28017
+ const [content, setContent] = $yHMN2$useState(null);
28018
+ const viewportWidth = size ? (size === null || size === void 0 ? void 0 : size.width) + "px" : void 0;
28019
+ const viewportHeight = size ? (size === null || size === void 0 ? void 0 : size.height) + "px" : void 0;
28020
+ const open = Boolean(context.value);
28021
+ const activeContentValue = open ? context.value : context.previousValue;
28022
+ const handleSizeChange = () => {
28023
+ if (content) setSize({
28024
+ width: content.offsetWidth,
28025
+ height: content.offsetHeight
28026
+ });
28027
+ };
28028
+ $322c88a641701f3b$var$useResizeObserver(content, handleSizeChange);
28029
+ return /* @__PURE__ */ $yHMN2$createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
28030
+ "data-state": $322c88a641701f3b$var$getOpenState(open),
28031
+ "data-orientation": context.orientation
28032
+ }, viewportImplProps, {
28033
+ ref: composedRefs,
28034
+ style: {
28035
+ // Prevent interaction when animating out
28036
+ pointerEvents: !open && context.isRootMenu ? "none" : void 0,
28037
+ ["--radix-navigation-menu-viewport-width"]: viewportWidth,
28038
+ ["--radix-navigation-menu-viewport-height"]: viewportHeight,
28039
+ ...viewportImplProps.style
28040
+ },
28041
+ onPointerEnter: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props1.onPointerEnter, context.onContentEnter),
28042
+ onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props1.onPointerLeave, $322c88a641701f3b$var$whenMouse(context.onContentLeave))
28043
+ }), Array.from(viewportContentContext.items).map(([value, { ref, forceMount, ...props }]) => {
28044
+ const isActive = activeContentValue === value;
28045
+ return /* @__PURE__ */ $yHMN2$createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
28046
+ key: value,
28047
+ present: forceMount || isActive
28048
+ }, /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$NavigationMenuContentImpl, _extends({}, props, {
28049
+ ref: $6ed0406888f73fc4$export$43e446d32b3d21af(ref, (node) => {
28050
+ if (isActive && node) setContent(node);
28051
+ })
28052
+ })));
28053
+ }));
28054
+ });
28055
+ var $322c88a641701f3b$var$FOCUS_GROUP_NAME = "FocusGroup";
28056
+ var $322c88a641701f3b$var$FocusGroup = /* @__PURE__ */ $yHMN2$forwardRef((props, forwardedRef) => {
28057
+ const { __scopeNavigationMenu, ...groupProps } = props;
28058
+ const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$FOCUS_GROUP_NAME, __scopeNavigationMenu);
28059
+ return /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$FocusGroupCollection.Provider, {
28060
+ scope: __scopeNavigationMenu
28061
+ }, /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$FocusGroupCollection.Slot, {
28062
+ scope: __scopeNavigationMenu
28063
+ }, /* @__PURE__ */ $yHMN2$createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
28064
+ dir: context.dir
28065
+ }, groupProps, {
28066
+ ref: forwardedRef
28067
+ }))));
28068
+ });
28069
+ var $322c88a641701f3b$var$ARROW_KEYS = [
28070
+ "ArrowRight",
28071
+ "ArrowLeft",
28072
+ "ArrowUp",
28073
+ "ArrowDown"
28074
+ ];
28075
+ var $322c88a641701f3b$var$FOCUS_GROUP_ITEM_NAME = "FocusGroupItem";
28076
+ var $322c88a641701f3b$var$FocusGroupItem = /* @__PURE__ */ $yHMN2$forwardRef((props, forwardedRef) => {
28077
+ const { __scopeNavigationMenu, ...groupProps } = props;
28078
+ const getItems = $322c88a641701f3b$var$useFocusGroupCollection(__scopeNavigationMenu);
28079
+ const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$FOCUS_GROUP_ITEM_NAME, __scopeNavigationMenu);
28080
+ return /* @__PURE__ */ $yHMN2$createElement($322c88a641701f3b$var$FocusGroupCollection.ItemSlot, {
28081
+ scope: __scopeNavigationMenu
28082
+ }, /* @__PURE__ */ $yHMN2$createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({}, groupProps, {
28083
+ ref: forwardedRef,
28084
+ onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event) => {
28085
+ const isFocusNavigationKey = [
28086
+ "Home",
28087
+ "End",
28088
+ ...$322c88a641701f3b$var$ARROW_KEYS
28089
+ ].includes(event.key);
28090
+ if (isFocusNavigationKey) {
28091
+ let candidateNodes = getItems().map(
28092
+ (item) => item.ref.current
28093
+ );
28094
+ const prevItemKey = context.dir === "rtl" ? "ArrowRight" : "ArrowLeft";
28095
+ const prevKeys = [
28096
+ prevItemKey,
28097
+ "ArrowUp",
28098
+ "End"
28099
+ ];
28100
+ if (prevKeys.includes(event.key)) candidateNodes.reverse();
28101
+ if ($322c88a641701f3b$var$ARROW_KEYS.includes(event.key)) {
28102
+ const currentIndex = candidateNodes.indexOf(event.currentTarget);
28103
+ candidateNodes = candidateNodes.slice(currentIndex + 1);
28104
+ }
28105
+ setTimeout(
28106
+ () => $322c88a641701f3b$var$focusFirst(candidateNodes)
28107
+ );
28108
+ event.preventDefault();
28109
+ }
28110
+ })
28111
+ })));
28112
+ });
28113
+ function $322c88a641701f3b$var$getTabbableCandidates(container) {
28114
+ const nodes = [];
28115
+ const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
28116
+ acceptNode: (node) => {
28117
+ const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
28118
+ if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
28119
+ return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
28120
+ }
28121
+ });
28122
+ while (walker.nextNode()) nodes.push(walker.currentNode);
28123
+ return nodes;
28124
+ }
28125
+ function $322c88a641701f3b$var$focusFirst(candidates) {
28126
+ const previouslyFocusedElement = document.activeElement;
28127
+ return candidates.some((candidate) => {
28128
+ if (candidate === previouslyFocusedElement) return true;
28129
+ candidate.focus();
28130
+ return document.activeElement !== previouslyFocusedElement;
28131
+ });
28132
+ }
28133
+ function $322c88a641701f3b$var$removeFromTabOrder(candidates) {
28134
+ candidates.forEach((candidate) => {
28135
+ candidate.dataset.tabindex = candidate.getAttribute("tabindex") || "";
28136
+ candidate.setAttribute("tabindex", "-1");
28137
+ });
28138
+ return () => {
28139
+ candidates.forEach((candidate) => {
28140
+ const prevTabIndex = candidate.dataset.tabindex;
28141
+ candidate.setAttribute("tabindex", prevTabIndex);
28142
+ });
28143
+ };
28144
+ }
28145
+ function $322c88a641701f3b$var$useResizeObserver(element, onResize) {
28146
+ const handleResize = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onResize);
28147
+ $9f79659886946c16$export$e5c5a5f917a5871c(() => {
28148
+ let rAF = 0;
28149
+ if (element) {
28150
+ const resizeObserver = new ResizeObserver(() => {
28151
+ cancelAnimationFrame(rAF);
28152
+ rAF = window.requestAnimationFrame(handleResize);
28153
+ });
28154
+ resizeObserver.observe(element);
28155
+ return () => {
28156
+ window.cancelAnimationFrame(rAF);
28157
+ resizeObserver.unobserve(element);
28158
+ };
28159
+ }
28160
+ }, [
28161
+ element,
28162
+ handleResize
28163
+ ]);
28164
+ }
28165
+ function $322c88a641701f3b$var$getOpenState(open) {
28166
+ return open ? "open" : "closed";
28167
+ }
28168
+ function $322c88a641701f3b$var$makeTriggerId(baseId, value) {
28169
+ return `${baseId}-trigger-${value}`;
28170
+ }
28171
+ function $322c88a641701f3b$var$makeContentId(baseId, value) {
28172
+ return `${baseId}-content-${value}`;
28173
+ }
28174
+ function $322c88a641701f3b$var$whenMouse(handler) {
28175
+ return (event) => event.pointerType === "mouse" ? handler(event) : void 0;
28176
+ }
28177
+ var $322c88a641701f3b$export$be92b6f5f03c0fe9 = $322c88a641701f3b$export$5b2278cf1e8bcae2;
28178
+ var $322c88a641701f3b$export$54c2e3dc7acea9f5 = $322c88a641701f3b$export$c361068a95fd2286;
28179
+ var $322c88a641701f3b$export$6d08773d2e66f8f2 = $322c88a641701f3b$export$ffdbb83a2de845c2;
28180
+ var $322c88a641701f3b$export$41fb9f06171c75f4 = $322c88a641701f3b$export$37fe8002734d8f2;
28181
+ var $322c88a641701f3b$export$a6c7ac8248d6e38a = $322c88a641701f3b$export$6893bf21536567da;
28182
+ var $322c88a641701f3b$export$adb584737d712b70 = $322c88a641701f3b$export$8ddb526647c0d8fb;
28183
+ var $322c88a641701f3b$export$7c6e2c02157bb7d2 = $322c88a641701f3b$export$38e00e996c2f93f7;
28184
+ var $322c88a641701f3b$export$d5c6c08dc2d3ca7 = $322c88a641701f3b$export$ee880b97cc6d44a5;
28185
+
28186
+ // src/components/NavigationMenu.tsx
27119
28187
  var import_classnames33 = __toESM(require_classnames());
27120
28188
 
28189
+ // src/components/NavigationMenu.module.css
28190
+ var NavigationMenu_default = {
28191
+ root: "NavigationMenu_root",
28192
+ list: "NavigationMenu_list",
28193
+ trigger: "NavigationMenu_trigger",
28194
+ link: "NavigationMenu_link",
28195
+ content: "NavigationMenu_content",
28196
+ enterFromLeft: "NavigationMenu_enterFromLeft",
28197
+ enterFromRight: "NavigationMenu_enterFromRight",
28198
+ exitToLeft: "NavigationMenu_exitToLeft",
28199
+ exitToRight: "NavigationMenu_exitToRight",
28200
+ indicator: "NavigationMenu_indicator",
28201
+ fadeIn: "NavigationMenu_fadeIn",
28202
+ fadeOut: "NavigationMenu_fadeOut",
28203
+ viewport: "NavigationMenu_viewport",
28204
+ scaleIn: "NavigationMenu_scaleIn",
28205
+ scaleOut: "NavigationMenu_scaleOut",
28206
+ wrapper: "NavigationMenu_wrapper",
28207
+ arrow: "NavigationMenu_arrow"
28208
+ };
28209
+
28210
+ // src/components/NavigationMenu.tsx
28211
+ import { jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
28212
+ function NavigationMenu({ showArrow = true, children, ...props }) {
28213
+ return /* @__PURE__ */ jsxs22($322c88a641701f3b$export$be92b6f5f03c0fe9, { ...props, className: NavigationMenu_default.root, children: [
28214
+ /* @__PURE__ */ jsxs22($322c88a641701f3b$export$54c2e3dc7acea9f5, { className: NavigationMenu_default.list, children: [
28215
+ children,
28216
+ showArrow && /* @__PURE__ */ jsx39($322c88a641701f3b$export$adb584737d712b70, { className: NavigationMenu_default.indicator, children: /* @__PURE__ */ jsx39("div", { className: NavigationMenu_default.arrow }) })
28217
+ ] }),
28218
+ /* @__PURE__ */ jsx39("div", { className: NavigationMenu_default.wrapper, children: /* @__PURE__ */ jsx39($322c88a641701f3b$export$d5c6c08dc2d3ca7, { className: NavigationMenu_default.viewport }) })
28219
+ ] });
28220
+ }
28221
+ function NavigationMenuItem({ children, className, ...props }) {
28222
+ return /* @__PURE__ */ jsx39($322c88a641701f3b$export$6d08773d2e66f8f2, { ...props, className: (0, import_classnames33.default)(NavigationMenu_default.item, className), children });
28223
+ }
28224
+ function NavigationMenuTrigger({
28225
+ children,
28226
+ className,
28227
+ ...props
28228
+ }) {
28229
+ return /* @__PURE__ */ jsxs22($322c88a641701f3b$export$41fb9f06171c75f4, { ...props, className: (0, import_classnames33.default)(NavigationMenu_default.trigger, className), children: [
28230
+ children,
28231
+ /* @__PURE__ */ jsx39(Icon, { rotate: 90, size: "xs", children: /* @__PURE__ */ jsx39(Icons.Chevron, {}) })
28232
+ ] });
28233
+ }
28234
+ function NavigationMenuContent({
28235
+ children,
28236
+ className,
28237
+ ...props
28238
+ }) {
28239
+ return /* @__PURE__ */ jsx39($322c88a641701f3b$export$7c6e2c02157bb7d2, { ...props, className: (0, import_classnames33.default)(NavigationMenu_default.content, className), children });
28240
+ }
28241
+ function NavigationMenuLink({ children, className, ...props }) {
28242
+ return /* @__PURE__ */ jsx39($322c88a641701f3b$export$a6c7ac8248d6e38a, { ...props, className: (0, import_classnames33.default)(NavigationMenu_default.link, className), children });
28243
+ }
28244
+
28245
+ // src/components/PasswordField.tsx
28246
+ import { useState as useState8, forwardRef as forwardRef4 } from "react";
28247
+ var import_classnames34 = __toESM(require_classnames());
28248
+
27121
28249
  // src/components/PasswordField.module.css
27122
28250
  var PasswordField_default = {
27123
28251
  icon: "PasswordField_icon"
27124
28252
  };
27125
28253
 
27126
28254
  // src/components/PasswordField.tsx
27127
- import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
28255
+ import { jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
27128
28256
  var PasswordField = forwardRef4(
27129
28257
  ({ label, className, ...props }, ref) => {
27130
- const [show, setShow] = useState7(false);
28258
+ const [show, setShow] = useState8(false);
27131
28259
  const type = show ? "text" : "password";
27132
28260
  const handleShowPassword = () => setShow((state) => !state);
27133
- return /* @__PURE__ */ jsxs21($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames33.default)(Input_default.field, className), children: [
27134
- label && /* @__PURE__ */ jsx38(Label, { children: label }),
27135
- /* @__PURE__ */ jsxs21("div", { className: Input_default.row, children: [
27136
- /* @__PURE__ */ jsx38($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: Input_default.input }),
27137
- /* @__PURE__ */ jsx38(Icon, { onClick: handleShowPassword, className: (0, import_classnames33.default)(PasswordField_default.icon, Input_default.icon), children: show ? /* @__PURE__ */ jsx38(Icons.EyeSlash, {}) : /* @__PURE__ */ jsx38(Icons.Eye, {}) })
28261
+ return /* @__PURE__ */ jsxs23($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames34.default)(Input_default.field, className), children: [
28262
+ label && /* @__PURE__ */ jsx40(Label, { children: label }),
28263
+ /* @__PURE__ */ jsxs23("div", { className: Input_default.row, children: [
28264
+ /* @__PURE__ */ jsx40($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: Input_default.input }),
28265
+ /* @__PURE__ */ jsx40(Icon, { onClick: handleShowPassword, className: (0, import_classnames34.default)(PasswordField_default.icon, Input_default.icon), children: show ? /* @__PURE__ */ jsx40(Icons.EyeSlash, {}) : /* @__PURE__ */ jsx40(Icons.Eye, {}) })
27138
28266
  ] })
27139
28267
  ] });
27140
28268
  }
27141
28269
  );
27142
28270
 
27143
28271
  // src/components/Page.tsx
27144
- var import_classnames34 = __toESM(require_classnames());
28272
+ var import_classnames35 = __toESM(require_classnames());
27145
28273
 
27146
28274
  // src/components/Page.module.css
27147
28275
  var Page_default = {
@@ -27149,13 +28277,13 @@ var Page_default = {
27149
28277
  };
27150
28278
 
27151
28279
  // src/components/Page.tsx
27152
- import { jsx as jsx39 } from "react/jsx-runtime";
28280
+ import { jsx as jsx41 } from "react/jsx-runtime";
27153
28281
  function Page({ className, children, ...props }) {
27154
- return /* @__PURE__ */ jsx39("div", { ...props, className: (0, import_classnames34.default)(Page_default.page, className), children });
28282
+ return /* @__PURE__ */ jsx41("div", { ...props, className: (0, import_classnames35.default)(Page_default.page, className), children });
27155
28283
  }
27156
28284
 
27157
28285
  // src/components/ProgressBar.tsx
27158
- var import_classnames35 = __toESM(require_classnames());
28286
+ var import_classnames36 = __toESM(require_classnames());
27159
28287
 
27160
28288
  // src/components/ProgressBar.module.css
27161
28289
  var ProgressBar_default = {
@@ -27166,18 +28294,18 @@ var ProgressBar_default = {
27166
28294
  };
27167
28295
 
27168
28296
  // src/components/ProgressBar.tsx
27169
- import { Fragment as Fragment5, jsx as jsx40, jsxs as jsxs22 } from "react/jsx-runtime";
28297
+ import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
27170
28298
  function ProgressBar({ className, showValue, ...props }) {
27171
- return /* @__PURE__ */ jsx40($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames35.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
27172
- return /* @__PURE__ */ jsxs22(Fragment5, { children: [
27173
- /* @__PURE__ */ jsx40("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ jsx40("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
27174
- showValue && /* @__PURE__ */ jsx40("div", { className: ProgressBar_default.value, children: valueText })
28299
+ return /* @__PURE__ */ jsx42($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames36.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
28300
+ return /* @__PURE__ */ jsxs24(Fragment5, { children: [
28301
+ /* @__PURE__ */ jsx42("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ jsx42("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
28302
+ showValue && /* @__PURE__ */ jsx42("div", { className: ProgressBar_default.value, children: valueText })
27175
28303
  ] });
27176
28304
  } });
27177
28305
  }
27178
28306
 
27179
28307
  // src/components/ProgressCircle.tsx
27180
- var import_classnames36 = __toESM(require_classnames());
28308
+ var import_classnames37 = __toESM(require_classnames());
27181
28309
 
27182
28310
  // src/components/ProgressCircle.module.css
27183
28311
  var ProgressCircle_default = {
@@ -27188,16 +28316,16 @@ var ProgressCircle_default = {
27188
28316
  };
27189
28317
 
27190
28318
  // src/components/ProgressCircle.tsx
27191
- import { Fragment as Fragment6, jsx as jsx41, jsxs as jsxs23 } from "react/jsx-runtime";
28319
+ import { Fragment as Fragment6, jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
27192
28320
  function ProgressCircle({ className, showValue, ...props }) {
27193
- return /* @__PURE__ */ jsx41($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames36.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
28321
+ return /* @__PURE__ */ jsx43($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames37.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
27194
28322
  const radius = 45;
27195
28323
  const circumference = radius * 2 * Math.PI;
27196
28324
  const offset = circumference - percentage / 100 * circumference;
27197
- return /* @__PURE__ */ jsxs23(Fragment6, { children: [
27198
- /* @__PURE__ */ jsxs23("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
27199
- /* @__PURE__ */ jsx41("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
27200
- /* @__PURE__ */ jsx41(
28325
+ return /* @__PURE__ */ jsxs25(Fragment6, { children: [
28326
+ /* @__PURE__ */ jsxs25("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
28327
+ /* @__PURE__ */ jsx43("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
28328
+ /* @__PURE__ */ jsx43(
27201
28329
  "circle",
27202
28330
  {
27203
28331
  className: ProgressCircle_default.fill,
@@ -27209,14 +28337,14 @@ function ProgressCircle({ className, showValue, ...props }) {
27209
28337
  }
27210
28338
  )
27211
28339
  ] }),
27212
- showValue && /* @__PURE__ */ jsx41("label", { className: ProgressCircle_default.value, children: valueText })
28340
+ showValue && /* @__PURE__ */ jsx43("label", { className: ProgressCircle_default.value, children: valueText })
27213
28341
  ] });
27214
28342
  } });
27215
28343
  }
27216
28344
 
27217
28345
  // src/components/RadioGroup.tsx
27218
28346
  import { forwardRef as forwardRef5 } from "react";
27219
- var import_classnames37 = __toESM(require_classnames());
28347
+ var import_classnames38 = __toESM(require_classnames());
27220
28348
 
27221
28349
  // src/components/RadioGroup.module.css
27222
28350
  var RadioGroup_default = {
@@ -27225,22 +28353,22 @@ var RadioGroup_default = {
27225
28353
  };
27226
28354
 
27227
28355
  // src/components/RadioGroup.tsx
27228
- import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
28356
+ import { jsx as jsx44, jsxs as jsxs26 } from "react/jsx-runtime";
27229
28357
  var RadioGroup = forwardRef5(
27230
28358
  ({ label, children, className, ...props }, ref) => {
27231
- return /* @__PURE__ */ jsxs24($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames37.default)(RadioGroup_default.radiogroup, className), children: [
27232
- label && /* @__PURE__ */ jsx42(Label, { children: label }),
28359
+ return /* @__PURE__ */ jsxs26($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames38.default)(RadioGroup_default.radiogroup, className), children: [
28360
+ label && /* @__PURE__ */ jsx44(Label, { children: label }),
27233
28361
  children
27234
28362
  ] });
27235
28363
  }
27236
28364
  );
27237
28365
  function Radio({ children, className, ...props }) {
27238
- return /* @__PURE__ */ jsx42($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames37.default)(RadioGroup_default.radio, className), children });
28366
+ return /* @__PURE__ */ jsx44($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames38.default)(RadioGroup_default.radio, className), children });
27239
28367
  }
27240
28368
 
27241
28369
  // src/components/SearchField.tsx
27242
- import { useState as useState8, useEffect as useEffect4, forwardRef as forwardRef6 } from "react";
27243
- var import_classnames38 = __toESM(require_classnames());
28370
+ import { useState as useState9, useEffect as useEffect4, forwardRef as forwardRef6 } from "react";
28371
+ var import_classnames39 = __toESM(require_classnames());
27244
28372
 
27245
28373
  // src/components/SearchField.module.css
27246
28374
  var SearchField_default = {
@@ -27250,10 +28378,10 @@ var SearchField_default = {
27250
28378
  };
27251
28379
 
27252
28380
  // src/components/SearchField.tsx
27253
- import { Fragment as Fragment7, jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
28381
+ import { Fragment as Fragment7, jsx as jsx45, jsxs as jsxs27 } from "react/jsx-runtime";
27254
28382
  var SearchField = forwardRef6(
27255
28383
  ({ label, value, delay = 0, onSearch, className, ...props }, ref) => {
27256
- const [search, setSearch] = useState8(value ?? "");
28384
+ const [search, setSearch] = useState9(value ?? "");
27257
28385
  const searchValue = useDebounce(search, delay);
27258
28386
  const handleChange = (e) => {
27259
28387
  const { value: value2 } = e.target;
@@ -27271,24 +28399,24 @@ var SearchField = forwardRef6(
27271
28399
  onSearch?.(searchValue);
27272
28400
  }
27273
28401
  }, [searchValue, delay, onSearch]);
27274
- return /* @__PURE__ */ jsx43($440f4836bcb56932$export$b94867ecbd698f21, { ...props, ref, className: (0, import_classnames38.default)(Input_default.field, className), children: ({ state }) => {
27275
- return /* @__PURE__ */ jsxs25(Fragment7, { children: [
27276
- label && /* @__PURE__ */ jsx43(Label, { children: label }),
27277
- /* @__PURE__ */ jsxs25("div", { className: Input_default.row, children: [
27278
- /* @__PURE__ */ jsx43(Icons.MagnifyingGlass, { className: (0, import_classnames38.default)(SearchField_default.search, Input_default.icon) }),
27279
- /* @__PURE__ */ jsx43(
28402
+ return /* @__PURE__ */ jsx45($440f4836bcb56932$export$b94867ecbd698f21, { ...props, ref, className: (0, import_classnames39.default)(Input_default.field, className), children: ({ state }) => {
28403
+ return /* @__PURE__ */ jsxs27(Fragment7, { children: [
28404
+ label && /* @__PURE__ */ jsx45(Label, { children: label }),
28405
+ /* @__PURE__ */ jsxs27("div", { className: Input_default.row, children: [
28406
+ /* @__PURE__ */ jsx45(Icons.MagnifyingGlass, { className: (0, import_classnames39.default)(SearchField_default.search, Input_default.icon) }),
28407
+ /* @__PURE__ */ jsx45(
27280
28408
  $3985021b0ad6602f$export$f5b8910cec6cf069,
27281
28409
  {
27282
- className: (0, import_classnames38.default)(SearchField_default.input, Input_default.input),
28410
+ className: (0, import_classnames39.default)(SearchField_default.input, Input_default.input),
27283
28411
  onChange: handleChange
27284
28412
  }
27285
28413
  ),
27286
- state.value && /* @__PURE__ */ jsx43(
28414
+ state.value && /* @__PURE__ */ jsx45(
27287
28415
  $d2b4bc8c273e7be6$export$353f5b6fc5456de1,
27288
28416
  {
27289
- className: (0, import_classnames38.default)(SearchField_default.close, Input_default.icon),
28417
+ className: (0, import_classnames39.default)(SearchField_default.close, Input_default.icon),
27290
28418
  onPress: resetSearch,
27291
- children: /* @__PURE__ */ jsx43(Icon, { children: /* @__PURE__ */ jsx43(Icons.Close, {}) })
28419
+ children: /* @__PURE__ */ jsx45(Icon, { children: /* @__PURE__ */ jsx45(Icons.Close, {}) })
27292
28420
  }
27293
28421
  )
27294
28422
  ] })
@@ -27298,7 +28426,7 @@ var SearchField = forwardRef6(
27298
28426
  );
27299
28427
 
27300
28428
  // src/components/Select.tsx
27301
- var import_classnames39 = __toESM(require_classnames());
28429
+ var import_classnames40 = __toESM(require_classnames());
27302
28430
  import { forwardRef as forwardRef7 } from "react";
27303
28431
 
27304
28432
  // src/components/Select.module.css
@@ -27310,7 +28438,7 @@ var Select_default = {
27310
28438
  };
27311
28439
 
27312
28440
  // src/components/Select.tsx
27313
- import { jsx as jsx44, jsxs as jsxs26 } from "react/jsx-runtime";
28441
+ import { jsx as jsx46, jsxs as jsxs28 } from "react/jsx-runtime";
27314
28442
  var Select = forwardRef7(
27315
28443
  ({
27316
28444
  children,
@@ -27326,20 +28454,20 @@ var Select = forwardRef7(
27326
28454
  onSelectionChange?.(e);
27327
28455
  onChange?.(e);
27328
28456
  };
27329
- return /* @__PURE__ */ jsxs26(
28457
+ return /* @__PURE__ */ jsxs28(
27330
28458
  $82d7e5349645de74$export$ef9b1a59e592288f,
27331
28459
  {
27332
28460
  ...props,
27333
28461
  ref,
27334
- className: (0, import_classnames39.default)(Input_default.field, className),
28462
+ className: (0, import_classnames40.default)(Input_default.field, className),
27335
28463
  onSelectionChange: handleChange,
27336
28464
  children: [
27337
- label && /* @__PURE__ */ jsx44(Label, { children: label }),
27338
- /* @__PURE__ */ jsx44($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames39.default)(Input_default.input, className), children: /* @__PURE__ */ jsxs26(Row, { justifyContent: "space-between", gap: "md", children: [
27339
- /* @__PURE__ */ jsx44($82d7e5349645de74$export$e288731fd71264f0, {}),
27340
- /* @__PURE__ */ jsx44("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx44(Icon, { rotate: 90, size: "xs", className: Input_default.icon, children: /* @__PURE__ */ jsx44(Icons.Chevron, {}) }) })
28465
+ label && /* @__PURE__ */ jsx46(Label, { children: label }),
28466
+ /* @__PURE__ */ jsx46($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames40.default)(Input_default.input, className), children: /* @__PURE__ */ jsxs28(Row, { justifyContent: "space-between", gap: "md", children: [
28467
+ /* @__PURE__ */ jsx46($82d7e5349645de74$export$e288731fd71264f0, {}),
28468
+ /* @__PURE__ */ jsx46("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx46(Icon, { rotate: 90, size: "xs", className: Input_default.icon, children: /* @__PURE__ */ jsx46(Icons.Chevron, {}) }) })
27341
28469
  ] }) }),
27342
- /* @__PURE__ */ jsx44(Popover, { children: /* @__PURE__ */ jsx44(List, { items, className: Select_default.list, children }) })
28470
+ /* @__PURE__ */ jsx46(Popover, { children: /* @__PURE__ */ jsx46(List, { items, className: Select_default.list, children }) })
27343
28471
  ]
27344
28472
  }
27345
28473
  );
@@ -27348,7 +28476,7 @@ var Select = forwardRef7(
27348
28476
 
27349
28477
  // src/components/Slider.tsx
27350
28478
  import { forwardRef as forwardRef8 } from "react";
27351
- var import_classnames40 = __toESM(require_classnames());
28479
+ var import_classnames41 = __toESM(require_classnames());
27352
28480
 
27353
28481
  // src/components/Slider.module.css
27354
28482
  var Slider_default = {
@@ -27360,18 +28488,18 @@ var Slider_default = {
27360
28488
  };
27361
28489
 
27362
28490
  // src/components/Slider.tsx
27363
- import { Fragment as Fragment8, jsx as jsx45, jsxs as jsxs27 } from "react/jsx-runtime";
28491
+ import { Fragment as Fragment8, jsx as jsx47, jsxs as jsxs29 } from "react/jsx-runtime";
27364
28492
  var Slider = forwardRef8(
27365
28493
  ({ className, showValue = true, label, ...props }, ref) => {
27366
- return /* @__PURE__ */ jsxs27($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames40.default)(Slider_default.slider, className), children: [
27367
- /* @__PURE__ */ jsxs27("div", { className: Slider_default.header, children: [
27368
- label && /* @__PURE__ */ jsx45(Label, { className: Slider_default.label, children: label }),
27369
- showValue && /* @__PURE__ */ jsx45($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
28494
+ return /* @__PURE__ */ jsxs29($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames41.default)(Slider_default.slider, className), children: [
28495
+ /* @__PURE__ */ jsxs29("div", { className: Slider_default.header, children: [
28496
+ label && /* @__PURE__ */ jsx47(Label, { className: Slider_default.label, children: label }),
28497
+ showValue && /* @__PURE__ */ jsx47($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
27370
28498
  ] }),
27371
- /* @__PURE__ */ jsx45($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
28499
+ /* @__PURE__ */ jsx47($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
27372
28500
  const isHorizontal = state.orientation === "horizontal";
27373
- return /* @__PURE__ */ jsxs27(Fragment8, { children: [
27374
- /* @__PURE__ */ jsx45(
28501
+ return /* @__PURE__ */ jsxs29(Fragment8, { children: [
28502
+ /* @__PURE__ */ jsx47(
27375
28503
  "div",
27376
28504
  {
27377
28505
  className: Slider_default.fill,
@@ -27380,7 +28508,7 @@ var Slider = forwardRef8(
27380
28508
  }
27381
28509
  }
27382
28510
  ),
27383
- /* @__PURE__ */ jsx45($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
28511
+ /* @__PURE__ */ jsx47($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
27384
28512
  ] });
27385
28513
  } })
27386
28514
  ] });
@@ -27388,7 +28516,7 @@ var Slider = forwardRef8(
27388
28516
  );
27389
28517
 
27390
28518
  // src/components/StatusLight.tsx
27391
- var import_classnames41 = __toESM(require_classnames());
28519
+ var import_classnames42 = __toESM(require_classnames());
27392
28520
 
27393
28521
  // src/components/StatusLight.module.css
27394
28522
  var StatusLight_default = {
@@ -27403,14 +28531,14 @@ var StatusLight_default = {
27403
28531
  };
27404
28532
 
27405
28533
  // src/components/StatusLight.tsx
27406
- import { jsx as jsx46, jsxs as jsxs28 } from "react/jsx-runtime";
28534
+ import { jsx as jsx48, jsxs as jsxs30 } from "react/jsx-runtime";
27407
28535
  function StatusLight(props) {
27408
28536
  const { color, variant = "inactive", children, className, ...domProps } = props;
27409
- return /* @__PURE__ */ jsxs28("div", { ...domProps, className: (0, import_classnames41.default)(StatusLight_default.statuslight, className), children: [
27410
- /* @__PURE__ */ jsx46("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ jsx46(
28537
+ return /* @__PURE__ */ jsxs30("div", { ...domProps, className: (0, import_classnames42.default)(StatusLight_default.statuslight, className), children: [
28538
+ /* @__PURE__ */ jsx48("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ jsx48(
27411
28539
  "div",
27412
28540
  {
27413
- className: (0, import_classnames41.default)(StatusLight_default.status, StatusLight_default[variant]),
28541
+ className: (0, import_classnames42.default)(StatusLight_default.status, StatusLight_default[variant]),
27414
28542
  style: { backgroundColor: color }
27415
28543
  }
27416
28544
  ) }),
@@ -27420,7 +28548,7 @@ function StatusLight(props) {
27420
28548
 
27421
28549
  // src/components/Switch.tsx
27422
28550
  import { forwardRef as forwardRef9 } from "react";
27423
- var import_classnames42 = __toESM(require_classnames());
28551
+ var import_classnames43 = __toESM(require_classnames());
27424
28552
 
27425
28553
  // src/components/Switch.module.css
27426
28554
  var Switch_default = {
@@ -27430,21 +28558,21 @@ var Switch_default = {
27430
28558
  };
27431
28559
 
27432
28560
  // src/components/Switch.tsx
27433
- import { Fragment as Fragment9, jsx as jsx47, jsxs as jsxs29 } from "react/jsx-runtime";
28561
+ import { Fragment as Fragment9, jsx as jsx49, jsxs as jsxs31 } from "react/jsx-runtime";
27434
28562
  var Switch = forwardRef9(
27435
28563
  ({ label, children, className, ...props }, ref) => {
27436
28564
  const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
27437
- return /* @__PURE__ */ jsxs29(Fragment9, { children: [
27438
- label && /* @__PURE__ */ jsx47(Label, { children: label }),
27439
- /* @__PURE__ */ jsxs29(
28565
+ return /* @__PURE__ */ jsxs31(Fragment9, { children: [
28566
+ label && /* @__PURE__ */ jsx49(Label, { children: label }),
28567
+ /* @__PURE__ */ jsxs31(
27440
28568
  $8e59e948500a8fe1$export$b5d5cf8927ab7262,
27441
28569
  {
27442
28570
  ...props,
27443
28571
  isSelected,
27444
28572
  ref,
27445
- className: (0, import_classnames42.default)(Switch_default.switch, className),
28573
+ className: (0, import_classnames43.default)(Switch_default.switch, className),
27446
28574
  children: [
27447
- /* @__PURE__ */ jsx47("div", { className: Switch_default.track, children: /* @__PURE__ */ jsx47("div", { className: Switch_default.knob }) }),
28575
+ /* @__PURE__ */ jsx49("div", { className: Switch_default.track, children: /* @__PURE__ */ jsx49("div", { className: Switch_default.knob }) }),
27448
28576
  children
27449
28577
  ]
27450
28578
  }
@@ -27462,22 +28590,22 @@ var Tabs_default = {
27462
28590
  };
27463
28591
 
27464
28592
  // src/components/Tabs.tsx
27465
- import { jsx as jsx48 } from "react/jsx-runtime";
28593
+ import { jsx as jsx50 } from "react/jsx-runtime";
27466
28594
  function Tabs({ children, ...props }) {
27467
- return /* @__PURE__ */ jsx48($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
28595
+ return /* @__PURE__ */ jsx50($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
27468
28596
  }
27469
28597
  function TabList({ children, ...props }) {
27470
- return /* @__PURE__ */ jsx48($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
28598
+ return /* @__PURE__ */ jsx50($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
27471
28599
  }
27472
28600
  function Tab({ children, ...props }) {
27473
- return /* @__PURE__ */ jsx48($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
28601
+ return /* @__PURE__ */ jsx50($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
27474
28602
  }
27475
28603
  function TabPanel({ children, ...props }) {
27476
- return /* @__PURE__ */ jsx48($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
28604
+ return /* @__PURE__ */ jsx50($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
27477
28605
  }
27478
28606
 
27479
28607
  // src/components/TextOverflow.tsx
27480
- var import_classnames43 = __toESM(require_classnames());
28608
+ var import_classnames44 = __toESM(require_classnames());
27481
28609
 
27482
28610
  // src/components/TextOverflow.module.css
27483
28611
  var TextOverflow_default = {
@@ -27486,14 +28614,14 @@ var TextOverflow_default = {
27486
28614
  };
27487
28615
 
27488
28616
  // src/components/TextOverflow.tsx
27489
- import { jsx as jsx49 } from "react/jsx-runtime";
28617
+ import { jsx as jsx51 } from "react/jsx-runtime";
27490
28618
  function TextOverflow({ asChild, children, className, ...props }) {
27491
28619
  const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : "div";
27492
- return /* @__PURE__ */ jsx49("div", { ...props, className: (0, import_classnames43.default)(TextOverflow_default.wrapper, className), children: /* @__PURE__ */ jsx49(Component, { className: TextOverflow_default.overflow, children }) });
28620
+ return /* @__PURE__ */ jsx51("div", { ...props, className: (0, import_classnames44.default)(TextOverflow_default.wrapper, className), children: /* @__PURE__ */ jsx51(Component, { className: TextOverflow_default.overflow, children }) });
27493
28621
  }
27494
28622
 
27495
28623
  // src/components/TextArea.tsx
27496
- var import_classnames44 = __toESM(require_classnames());
28624
+ var import_classnames45 = __toESM(require_classnames());
27497
28625
  import { forwardRef as forwardRef10 } from "react";
27498
28626
 
27499
28627
  // src/components/TextArea.module.css
@@ -27505,21 +28633,21 @@ var TextArea_default = {
27505
28633
  };
27506
28634
 
27507
28635
  // src/components/TextArea.tsx
27508
- import { jsx as jsx50 } from "react/jsx-runtime";
28636
+ import { jsx as jsx52 } from "react/jsx-runtime";
27509
28637
  var TextArea = forwardRef10(({ resize, className, ...props }, ref) => {
27510
- return /* @__PURE__ */ jsx50(
28638
+ return /* @__PURE__ */ jsx52(
27511
28639
  TextField,
27512
28640
  {
27513
28641
  ...props,
27514
28642
  ref,
27515
- className: (0, import_classnames44.default)(resize && TextArea_default[`resize-${resize}`]),
28643
+ className: (0, import_classnames45.default)(resize && TextArea_default[`resize-${resize}`]),
27516
28644
  asTextArea: true
27517
28645
  }
27518
28646
  );
27519
28647
  });
27520
28648
 
27521
28649
  // src/components/Toast.tsx
27522
- var import_classnames45 = __toESM(require_classnames());
28650
+ var import_classnames46 = __toESM(require_classnames());
27523
28651
  import { createElement as createElement3 } from "react";
27524
28652
 
27525
28653
  // node_modules/@radix-ui/react-toast/dist/index.mjs
@@ -27557,7 +28685,7 @@ import React8 from "react";
27557
28685
 
27558
28686
  // node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-context/dist/index.mjs
27559
28687
  import * as React6 from "react";
27560
- import { jsx as jsx51 } from "react/jsx-runtime";
28688
+ import { jsx as jsx53 } from "react/jsx-runtime";
27561
28689
  function createContextScope(scopeName, createContextScopeDeps = []) {
27562
28690
  let defaultContexts = [];
27563
28691
  function createContext3(rootComponentName, defaultContext) {
@@ -27568,7 +28696,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
27568
28696
  const { scope, children, ...context } = props;
27569
28697
  const Context = scope?.[scopeName][index] || BaseContext;
27570
28698
  const value = React6.useMemo(() => context, Object.values(context));
27571
- return /* @__PURE__ */ jsx51(Context.Provider, { value, children });
28699
+ return /* @__PURE__ */ jsx53(Context.Provider, { value, children });
27572
28700
  }
27573
28701
  function useContext22(consumerName, scope) {
27574
28702
  const Context = scope?.[scopeName][index] || BaseContext;
@@ -27618,7 +28746,7 @@ function composeContextScopes(...scopes) {
27618
28746
 
27619
28747
  // node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-slot/dist/index.mjs
27620
28748
  import * as React7 from "react";
27621
- import { Fragment as Fragment10, jsx as jsx52 } from "react/jsx-runtime";
28749
+ import { Fragment as Fragment10, jsx as jsx54 } from "react/jsx-runtime";
27622
28750
  var Slot = React7.forwardRef((props, forwardedRef) => {
27623
28751
  const { children, ...slotProps } = props;
27624
28752
  const childrenArray = React7.Children.toArray(children);
@@ -27633,9 +28761,9 @@ var Slot = React7.forwardRef((props, forwardedRef) => {
27633
28761
  return child;
27634
28762
  }
27635
28763
  });
27636
- return /* @__PURE__ */ jsx52(SlotClone, { ...slotProps, ref: forwardedRef, children: React7.isValidElement(newElement) ? React7.cloneElement(newElement, void 0, newChildren) : null });
28764
+ return /* @__PURE__ */ jsx54(SlotClone, { ...slotProps, ref: forwardedRef, children: React7.isValidElement(newElement) ? React7.cloneElement(newElement, void 0, newChildren) : null });
27637
28765
  }
27638
- return /* @__PURE__ */ jsx52(SlotClone, { ...slotProps, ref: forwardedRef, children });
28766
+ return /* @__PURE__ */ jsx54(SlotClone, { ...slotProps, ref: forwardedRef, children });
27639
28767
  });
27640
28768
  Slot.displayName = "Slot";
27641
28769
  var SlotClone = React7.forwardRef((props, forwardedRef) => {
@@ -27652,7 +28780,7 @@ var SlotClone = React7.forwardRef((props, forwardedRef) => {
27652
28780
  });
27653
28781
  SlotClone.displayName = "SlotClone";
27654
28782
  var Slottable = ({ children }) => {
27655
- return /* @__PURE__ */ jsx52(Fragment10, { children });
28783
+ return /* @__PURE__ */ jsx54(Fragment10, { children });
27656
28784
  };
27657
28785
  function isSlottable(child) {
27658
28786
  return React7.isValidElement(child) && child.type === Slottable;
@@ -27695,7 +28823,7 @@ function getElementRef(element) {
27695
28823
  }
27696
28824
 
27697
28825
  // node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-collection/dist/index.mjs
27698
- import { jsx as jsx53 } from "react/jsx-runtime";
28826
+ import { jsx as jsx55 } from "react/jsx-runtime";
27699
28827
  function createCollection(name) {
27700
28828
  const PROVIDER_NAME2 = name + "CollectionProvider";
27701
28829
  const [createCollectionContext, createCollectionScope2] = createContextScope(PROVIDER_NAME2);
@@ -27707,7 +28835,7 @@ function createCollection(name) {
27707
28835
  const { scope, children } = props;
27708
28836
  const ref = React8.useRef(null);
27709
28837
  const itemMap = React8.useRef(/* @__PURE__ */ new Map()).current;
27710
- return /* @__PURE__ */ jsx53(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
28838
+ return /* @__PURE__ */ jsx55(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
27711
28839
  };
27712
28840
  CollectionProvider.displayName = PROVIDER_NAME2;
27713
28841
  const COLLECTION_SLOT_NAME = name + "CollectionSlot";
@@ -27716,7 +28844,7 @@ function createCollection(name) {
27716
28844
  const { scope, children } = props;
27717
28845
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
27718
28846
  const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
27719
- return /* @__PURE__ */ jsx53(Slot, { ref: composedRefs, children });
28847
+ return /* @__PURE__ */ jsx55(Slot, { ref: composedRefs, children });
27720
28848
  }
27721
28849
  );
27722
28850
  CollectionSlot.displayName = COLLECTION_SLOT_NAME;
@@ -27732,7 +28860,7 @@ function createCollection(name) {
27732
28860
  context.itemMap.set(ref, { ref, ...itemData });
27733
28861
  return () => void context.itemMap.delete(ref);
27734
28862
  });
27735
- return /* @__PURE__ */ jsx53(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
28863
+ return /* @__PURE__ */ jsx55(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
27736
28864
  }
27737
28865
  );
27738
28866
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
@@ -27763,7 +28891,7 @@ import * as React12 from "react";
27763
28891
  // node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-primitive/dist/index.mjs
27764
28892
  import * as React9 from "react";
27765
28893
  import * as ReactDOM from "react-dom";
27766
- import { jsx as jsx54 } from "react/jsx-runtime";
28894
+ import { jsx as jsx56 } from "react/jsx-runtime";
27767
28895
  var NODES = [
27768
28896
  "a",
27769
28897
  "button",
@@ -27789,7 +28917,7 @@ var Primitive = NODES.reduce((primitive, node) => {
27789
28917
  if (typeof window !== "undefined") {
27790
28918
  window[Symbol.for("radix-ui")] = true;
27791
28919
  }
27792
- return /* @__PURE__ */ jsx54(Comp, { ...primitiveProps, ref: forwardedRef });
28920
+ return /* @__PURE__ */ jsx56(Comp, { ...primitiveProps, ref: forwardedRef });
27793
28921
  });
27794
28922
  Node2.displayName = `Primitive.${node}`;
27795
28923
  return { ...primitive, [node]: Node2 };
@@ -27824,7 +28952,7 @@ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.docum
27824
28952
  }
27825
28953
 
27826
28954
  // node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
27827
- import { jsx as jsx55 } from "react/jsx-runtime";
28955
+ import { jsx as jsx57 } from "react/jsx-runtime";
27828
28956
  var DISMISSABLE_LAYER_NAME = "DismissableLayer";
27829
28957
  var CONTEXT_UPDATE = "dismissableLayer.update";
27830
28958
  var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
@@ -27912,7 +29040,7 @@ var DismissableLayer = React12.forwardRef(
27912
29040
  document.addEventListener(CONTEXT_UPDATE, handleUpdate);
27913
29041
  return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
27914
29042
  }, []);
27915
- return /* @__PURE__ */ jsx55(
29043
+ return /* @__PURE__ */ jsx57(
27916
29044
  Primitive.div,
27917
29045
  {
27918
29046
  ...layerProps,
@@ -27946,7 +29074,7 @@ var DismissableLayerBranch = React12.forwardRef((props, forwardedRef) => {
27946
29074
  };
27947
29075
  }
27948
29076
  }, [context.branches]);
27949
- return /* @__PURE__ */ jsx55(Primitive.div, { ...props, ref: composedRefs });
29077
+ return /* @__PURE__ */ jsx57(Primitive.div, { ...props, ref: composedRefs });
27950
29078
  });
27951
29079
  DismissableLayerBranch.displayName = BRANCH_NAME;
27952
29080
  function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
@@ -28040,14 +29168,14 @@ var useLayoutEffect2 = Boolean(globalThis?.document) ? React13.useLayoutEffect :
28040
29168
  };
28041
29169
 
28042
29170
  // node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-portal/dist/index.mjs
28043
- import { jsx as jsx56 } from "react/jsx-runtime";
29171
+ import { jsx as jsx58 } from "react/jsx-runtime";
28044
29172
  var PORTAL_NAME = "Portal";
28045
29173
  var Portal = React14.forwardRef((props, forwardedRef) => {
28046
29174
  const { container: containerProp, ...portalProps } = props;
28047
29175
  const [mounted, setMounted] = React14.useState(false);
28048
29176
  useLayoutEffect2(() => setMounted(true), []);
28049
29177
  const container = containerProp || mounted && globalThis?.document?.body;
28050
- return container ? ReactDOM2.createPortal(/* @__PURE__ */ jsx56(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
29178
+ return container ? ReactDOM2.createPortal(/* @__PURE__ */ jsx58(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
28051
29179
  });
28052
29180
  Portal.displayName = PORTAL_NAME;
28053
29181
 
@@ -28211,11 +29339,11 @@ function useUncontrolledState({
28211
29339
 
28212
29340
  // node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
28213
29341
  import * as React17 from "react";
28214
- import { jsx as jsx57 } from "react/jsx-runtime";
29342
+ import { jsx as jsx59 } from "react/jsx-runtime";
28215
29343
  var NAME = "VisuallyHidden";
28216
29344
  var VisuallyHidden = React17.forwardRef(
28217
29345
  (props, forwardedRef) => {
28218
- return /* @__PURE__ */ jsx57(
29346
+ return /* @__PURE__ */ jsx59(
28219
29347
  Primitive.span,
28220
29348
  {
28221
29349
  ...props,
@@ -28241,7 +29369,7 @@ var VisuallyHidden = React17.forwardRef(
28241
29369
  VisuallyHidden.displayName = NAME;
28242
29370
 
28243
29371
  // node_modules/@radix-ui/react-toast/dist/index.mjs
28244
- import { Fragment as Fragment11, jsx as jsx58, jsxs as jsxs30 } from "react/jsx-runtime";
29372
+ import { Fragment as Fragment11, jsx as jsx60, jsxs as jsxs32 } from "react/jsx-runtime";
28245
29373
  var PROVIDER_NAME = "ToastProvider";
28246
29374
  var [Collection, useCollection, createCollectionScope] = createCollection("Toast");
28247
29375
  var [createToastContext, createToastScope] = createContextScope("Toast", [createCollectionScope]);
@@ -28264,7 +29392,7 @@ var ToastProvider = (props) => {
28264
29392
  `Invalid prop \`label\` supplied to \`${PROVIDER_NAME}\`. Expected non-empty \`string\`.`
28265
29393
  );
28266
29394
  }
28267
- return /* @__PURE__ */ jsx58(Collection.Provider, { scope: __scopeToast, children: /* @__PURE__ */ jsx58(
29395
+ return /* @__PURE__ */ jsx60(Collection.Provider, { scope: __scopeToast, children: /* @__PURE__ */ jsx60(
28268
29396
  ToastProviderProvider,
28269
29397
  {
28270
29398
  scope: __scopeToast,
@@ -28395,7 +29523,7 @@ var ToastViewport = React18.forwardRef(
28395
29523
  return () => viewport.removeEventListener("keydown", handleKeyDown);
28396
29524
  }
28397
29525
  }, [getItems, getSortedTabbableCandidates]);
28398
- return /* @__PURE__ */ jsxs30(
29526
+ return /* @__PURE__ */ jsxs32(
28399
29527
  Branch,
28400
29528
  {
28401
29529
  ref: wrapperRef,
@@ -28404,7 +29532,7 @@ var ToastViewport = React18.forwardRef(
28404
29532
  tabIndex: -1,
28405
29533
  style: { pointerEvents: hasToasts ? void 0 : "none" },
28406
29534
  children: [
28407
- hasToasts && /* @__PURE__ */ jsx58(
29535
+ hasToasts && /* @__PURE__ */ jsx60(
28408
29536
  FocusProxy,
28409
29537
  {
28410
29538
  ref: headFocusProxyRef,
@@ -28416,8 +29544,8 @@ var ToastViewport = React18.forwardRef(
28416
29544
  }
28417
29545
  }
28418
29546
  ),
28419
- /* @__PURE__ */ jsx58(Collection.Slot, { scope: __scopeToast, children: /* @__PURE__ */ jsx58(Primitive.ol, { tabIndex: -1, ...viewportProps, ref: composedRefs }) }),
28420
- hasToasts && /* @__PURE__ */ jsx58(
29547
+ /* @__PURE__ */ jsx60(Collection.Slot, { scope: __scopeToast, children: /* @__PURE__ */ jsx60(Primitive.ol, { tabIndex: -1, ...viewportProps, ref: composedRefs }) }),
29548
+ hasToasts && /* @__PURE__ */ jsx60(
28421
29549
  FocusProxy,
28422
29550
  {
28423
29551
  ref: tailFocusProxyRef,
@@ -28440,7 +29568,7 @@ var FocusProxy = React18.forwardRef(
28440
29568
  (props, forwardedRef) => {
28441
29569
  const { __scopeToast, onFocusFromOutsideViewport, ...proxyProps } = props;
28442
29570
  const context = useToastProviderContext(FOCUS_PROXY_NAME, __scopeToast);
28443
- return /* @__PURE__ */ jsx58(
29571
+ return /* @__PURE__ */ jsx60(
28444
29572
  VisuallyHidden,
28445
29573
  {
28446
29574
  "aria-hidden": true,
@@ -28471,7 +29599,7 @@ var Toast = React18.forwardRef(
28471
29599
  defaultProp: defaultOpen,
28472
29600
  onChange: onOpenChange
28473
29601
  });
28474
- return /* @__PURE__ */ jsx58(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx58(
29602
+ return /* @__PURE__ */ jsx60(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx60(
28475
29603
  ToastImpl,
28476
29604
  {
28477
29605
  open,
@@ -28587,8 +29715,8 @@ var ToastImpl = React18.forwardRef(
28587
29715
  return node ? getAnnounceTextContent(node) : null;
28588
29716
  }, [node]);
28589
29717
  if (!context.viewport) return null;
28590
- return /* @__PURE__ */ jsxs30(Fragment11, { children: [
28591
- announceTextContent && /* @__PURE__ */ jsx58(
29718
+ return /* @__PURE__ */ jsxs32(Fragment11, { children: [
29719
+ announceTextContent && /* @__PURE__ */ jsx60(
28592
29720
  ToastAnnounce,
28593
29721
  {
28594
29722
  __scopeToast,
@@ -28598,8 +29726,8 @@ var ToastImpl = React18.forwardRef(
28598
29726
  children: announceTextContent
28599
29727
  }
28600
29728
  ),
28601
- /* @__PURE__ */ jsx58(ToastInteractiveProvider, { scope: __scopeToast, onClose: handleClose, children: ReactDOM4.createPortal(
28602
- /* @__PURE__ */ jsx58(Collection.ItemSlot, { scope: __scopeToast, children: /* @__PURE__ */ jsx58(
29729
+ /* @__PURE__ */ jsx60(ToastInteractiveProvider, { scope: __scopeToast, onClose: handleClose, children: ReactDOM4.createPortal(
29730
+ /* @__PURE__ */ jsx60(Collection.ItemSlot, { scope: __scopeToast, children: /* @__PURE__ */ jsx60(
28603
29731
  Root,
28604
29732
  {
28605
29733
  asChild: true,
@@ -28607,7 +29735,7 @@ var ToastImpl = React18.forwardRef(
28607
29735
  if (!context.isFocusedToastEscapeKeyDownRef.current) handleClose();
28608
29736
  context.isFocusedToastEscapeKeyDownRef.current = false;
28609
29737
  }),
28610
- children: /* @__PURE__ */ jsx58(
29738
+ children: /* @__PURE__ */ jsx60(
28611
29739
  Primitive.li,
28612
29740
  {
28613
29741
  role: "status",
@@ -28707,7 +29835,7 @@ var ToastAnnounce = (props) => {
28707
29835
  const timer = window.setTimeout(() => setIsAnnounced(true), 1e3);
28708
29836
  return () => window.clearTimeout(timer);
28709
29837
  }, []);
28710
- return isAnnounced ? null : /* @__PURE__ */ jsx58(Portal, { asChild: true, children: /* @__PURE__ */ jsx58(VisuallyHidden, { ...announceProps, children: renderAnnounceText && /* @__PURE__ */ jsxs30(Fragment11, { children: [
29838
+ return isAnnounced ? null : /* @__PURE__ */ jsx60(Portal, { asChild: true, children: /* @__PURE__ */ jsx60(VisuallyHidden, { ...announceProps, children: renderAnnounceText && /* @__PURE__ */ jsxs32(Fragment11, { children: [
28711
29839
  context.label,
28712
29840
  " ",
28713
29841
  children
@@ -28717,7 +29845,7 @@ var TITLE_NAME = "ToastTitle";
28717
29845
  var ToastTitle = React18.forwardRef(
28718
29846
  (props, forwardedRef) => {
28719
29847
  const { __scopeToast, ...titleProps } = props;
28720
- return /* @__PURE__ */ jsx58(Primitive.div, { ...titleProps, ref: forwardedRef });
29848
+ return /* @__PURE__ */ jsx60(Primitive.div, { ...titleProps, ref: forwardedRef });
28721
29849
  }
28722
29850
  );
28723
29851
  ToastTitle.displayName = TITLE_NAME;
@@ -28725,7 +29853,7 @@ var DESCRIPTION_NAME = "ToastDescription";
28725
29853
  var ToastDescription = React18.forwardRef(
28726
29854
  (props, forwardedRef) => {
28727
29855
  const { __scopeToast, ...descriptionProps } = props;
28728
- return /* @__PURE__ */ jsx58(Primitive.div, { ...descriptionProps, ref: forwardedRef });
29856
+ return /* @__PURE__ */ jsx60(Primitive.div, { ...descriptionProps, ref: forwardedRef });
28729
29857
  }
28730
29858
  );
28731
29859
  ToastDescription.displayName = DESCRIPTION_NAME;
@@ -28739,7 +29867,7 @@ var ToastAction = React18.forwardRef(
28739
29867
  );
28740
29868
  return null;
28741
29869
  }
28742
- return /* @__PURE__ */ jsx58(ToastAnnounceExclude, { altText, asChild: true, children: /* @__PURE__ */ jsx58(ToastClose, { ...actionProps, ref: forwardedRef }) });
29870
+ return /* @__PURE__ */ jsx60(ToastAnnounceExclude, { altText, asChild: true, children: /* @__PURE__ */ jsx60(ToastClose, { ...actionProps, ref: forwardedRef }) });
28743
29871
  }
28744
29872
  );
28745
29873
  ToastAction.displayName = ACTION_NAME;
@@ -28748,7 +29876,7 @@ var ToastClose = React18.forwardRef(
28748
29876
  (props, forwardedRef) => {
28749
29877
  const { __scopeToast, ...closeProps } = props;
28750
29878
  const interactiveContext = useToastInteractiveContext(CLOSE_NAME, __scopeToast);
28751
- return /* @__PURE__ */ jsx58(ToastAnnounceExclude, { asChild: true, children: /* @__PURE__ */ jsx58(
29879
+ return /* @__PURE__ */ jsx60(ToastAnnounceExclude, { asChild: true, children: /* @__PURE__ */ jsx60(
28752
29880
  Primitive.button,
28753
29881
  {
28754
29882
  type: "button",
@@ -28762,7 +29890,7 @@ var ToastClose = React18.forwardRef(
28762
29890
  ToastClose.displayName = CLOSE_NAME;
28763
29891
  var ToastAnnounceExclude = React18.forwardRef((props, forwardedRef) => {
28764
29892
  const { __scopeToast, altText, ...announceExcludeProps } = props;
28765
- return /* @__PURE__ */ jsx58(
29893
+ return /* @__PURE__ */ jsx60(
28766
29894
  Primitive.div,
28767
29895
  {
28768
29896
  "data-radix-toast-announce-exclude": "",
@@ -28868,7 +29996,7 @@ var Toast_default = {
28868
29996
  };
28869
29997
 
28870
29998
  // src/components/Toast.tsx
28871
- import { Fragment as Fragment12, jsx as jsx59, jsxs as jsxs31 } from "react/jsx-runtime";
29999
+ import { Fragment as Fragment12, jsx as jsx61, jsxs as jsxs33 } from "react/jsx-runtime";
28872
30000
  import { createElement as createElement4 } from "react";
28873
30001
  var icons = {
28874
30002
  info: Icons.Info,
@@ -28884,27 +30012,27 @@ function Toast2({
28884
30012
  children,
28885
30013
  ...props
28886
30014
  }) {
28887
- return /* @__PURE__ */ jsxs31(Root2, { ...props, className: (0, import_classnames45.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
28888
- /* @__PURE__ */ jsx59(Icon, { className: Toast_default.icon, size: "md", children: variant && createElement3(icons[variant]) }),
28889
- title && /* @__PURE__ */ jsx59(ToastTitle, { className: Toast_default.title, children: title }),
28890
- description && /* @__PURE__ */ jsx59(ToastDescription, { className: Toast_default.description, children: description }),
28891
- children && /* @__PURE__ */ jsx59(ToastAction, { className: Toast_default.action, altText: actionText || "Action", asChild: true, children }),
28892
- !children && allowClose && /* @__PURE__ */ jsx59(ToastClose, { className: Toast_default.close, "aria-label": "Close", children: /* @__PURE__ */ jsx59(Icon, { size: "sm", "aria-hidden": true, children: /* @__PURE__ */ jsx59(Icons.Close, {}) }) })
30015
+ return /* @__PURE__ */ jsxs33(Root2, { ...props, className: (0, import_classnames46.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
30016
+ /* @__PURE__ */ jsx61(Icon, { className: Toast_default.icon, size: "md", children: variant && createElement3(icons[variant]) }),
30017
+ title && /* @__PURE__ */ jsx61(ToastTitle, { className: Toast_default.title, children: title }),
30018
+ description && /* @__PURE__ */ jsx61(ToastDescription, { className: Toast_default.description, children: description }),
30019
+ children && /* @__PURE__ */ jsx61(ToastAction, { className: Toast_default.action, altText: actionText || "Action", asChild: true, children }),
30020
+ !children && allowClose && /* @__PURE__ */ jsx61(ToastClose, { className: Toast_default.close, "aria-label": "Close", children: /* @__PURE__ */ jsx61(Icon, { size: "sm", "aria-hidden": true, children: /* @__PURE__ */ jsx61(Icons.Close, {}) }) })
28893
30021
  ] });
28894
30022
  }
28895
30023
  function Toaster(props) {
28896
30024
  const { toasts } = useToast();
28897
- return /* @__PURE__ */ jsxs31(Fragment12, { children: [
30025
+ return /* @__PURE__ */ jsxs33(Fragment12, { children: [
28898
30026
  toasts.map(({ id, message, props: props2 }) => {
28899
30027
  return /* @__PURE__ */ createElement4(Toast2, { ...props2, key: id, description: message });
28900
30028
  }),
28901
- /* @__PURE__ */ jsx59(Viewport, { className: Toast_default.viewport, ...props })
30029
+ /* @__PURE__ */ jsx61(Viewport, { className: Toast_default.viewport, ...props })
28902
30030
  ] });
28903
30031
  }
28904
30032
 
28905
30033
  // src/components/Toggle.tsx
28906
30034
  import { forwardRef as forwardRef17 } from "react";
28907
- var import_classnames46 = __toESM(require_classnames());
30035
+ var import_classnames47 = __toESM(require_classnames());
28908
30036
 
28909
30037
  // src/components/Toggle.module.css
28910
30038
  var Toggle_default = {
@@ -28912,19 +30040,19 @@ var Toggle_default = {
28912
30040
  };
28913
30041
 
28914
30042
  // src/components/Toggle.tsx
28915
- import { Fragment as Fragment13, jsx as jsx60, jsxs as jsxs32 } from "react/jsx-runtime";
30043
+ import { Fragment as Fragment13, jsx as jsx62, jsxs as jsxs34 } from "react/jsx-runtime";
28916
30044
  var Toggle = forwardRef17(
28917
30045
  ({ label, children, className, ...props }, ref) => {
28918
30046
  const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
28919
- return /* @__PURE__ */ jsxs32(Fragment13, { children: [
28920
- label && /* @__PURE__ */ jsx60(Label, { children: label }),
28921
- /* @__PURE__ */ jsx60(
30047
+ return /* @__PURE__ */ jsxs34(Fragment13, { children: [
30048
+ label && /* @__PURE__ */ jsx62(Label, { children: label }),
30049
+ /* @__PURE__ */ jsx62(
28922
30050
  $efde0372d7a700fe$export$d2b052e7b4be1756,
28923
30051
  {
28924
30052
  ...props,
28925
30053
  ref,
28926
30054
  isSelected,
28927
- className: (0, import_classnames46.default)(Toggle_default.toggle, className),
30055
+ className: (0, import_classnames47.default)(Toggle_default.toggle, className),
28928
30056
  children
28929
30057
  }
28930
30058
  )
@@ -28933,7 +30061,7 @@ var Toggle = forwardRef17(
28933
30061
  );
28934
30062
 
28935
30063
  // src/components/ToggleGroup.tsx
28936
- var import_classnames47 = __toESM(require_classnames());
30064
+ var import_classnames48 = __toESM(require_classnames());
28937
30065
 
28938
30066
  // node_modules/@radix-ui/react-toggle-group/dist/index.mjs
28939
30067
  import $jFibJ$react from "react";
@@ -29350,16 +30478,16 @@ var ToggleGroup_default = {
29350
30478
  };
29351
30479
 
29352
30480
  // src/components/ToggleGroup.tsx
29353
- import { jsx as jsx61 } from "react/jsx-runtime";
30481
+ import { jsx as jsx63 } from "react/jsx-runtime";
29354
30482
  function ToggleGroup({ className, children, ...props }) {
29355
- return /* @__PURE__ */ jsx61($6c1fd9e6a8969628$export$af3ec21f6cfb5e30, { ...props, className: (0, import_classnames47.default)(ToggleGroup_default.group, className), children });
30483
+ return /* @__PURE__ */ jsx63($6c1fd9e6a8969628$export$af3ec21f6cfb5e30, { ...props, className: (0, import_classnames48.default)(ToggleGroup_default.group, className), children });
29356
30484
  }
29357
30485
  function ToggleGroupItem({ className, children, ...props }) {
29358
- return /* @__PURE__ */ jsx61($6c1fd9e6a8969628$export$b453109e13abe10b, { ...props, className: (0, import_classnames47.default)(ToggleGroup_default.item, className), children });
30486
+ return /* @__PURE__ */ jsx63($6c1fd9e6a8969628$export$b453109e13abe10b, { ...props, className: (0, import_classnames48.default)(ToggleGroup_default.item, className), children });
29359
30487
  }
29360
30488
 
29361
30489
  // src/components/Tooltip.tsx
29362
- var import_classnames48 = __toESM(require_classnames());
30490
+ var import_classnames49 = __toESM(require_classnames());
29363
30491
 
29364
30492
  // src/components/Tooltip.module.css
29365
30493
  var Tooltip_default = {
@@ -29369,21 +30497,21 @@ var Tooltip_default = {
29369
30497
  };
29370
30498
 
29371
30499
  // src/components/Tooltip.tsx
29372
- import { jsx as jsx62, jsxs as jsxs33 } from "react/jsx-runtime";
30500
+ import { jsx as jsx64, jsxs as jsxs35 } from "react/jsx-runtime";
29373
30501
  function Tooltip({ children, className, ...props }) {
29374
- return /* @__PURE__ */ jsxs33($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames48.default)(Tooltip_default.tooltip, className), children: [
29375
- /* @__PURE__ */ jsx62($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ jsx62("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx62("path", { d: "M0 0 L4 4 L8 0" }) }) }),
30502
+ return /* @__PURE__ */ jsxs35($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames49.default)(Tooltip_default.tooltip, className), children: [
30503
+ /* @__PURE__ */ jsx64($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ jsx64("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx64("path", { d: "M0 0 L4 4 L8 0" }) }) }),
29376
30504
  children
29377
30505
  ] });
29378
30506
  }
29379
30507
 
29380
30508
  // src/components/ZenProvider.tsx
29381
- import { jsx as jsx63, jsxs as jsxs34 } from "react/jsx-runtime";
30509
+ import { jsx as jsx65, jsxs as jsxs36 } from "react/jsx-runtime";
29382
30510
  function ZenProvider({ config = {}, children }) {
29383
30511
  const { toast: toast2 } = config;
29384
- return /* @__PURE__ */ jsxs34(ToastProvider, { ...toast2, children: [
30512
+ return /* @__PURE__ */ jsxs36(ToastProvider, { ...toast2, children: [
29385
30513
  children,
29386
- /* @__PURE__ */ jsx63(Toaster, {})
30514
+ /* @__PURE__ */ jsx65(Toaster, {})
29387
30515
  ] });
29388
30516
  }
29389
30517
  export {
@@ -29414,6 +30542,7 @@ export {
29414
30542
  FormResetButton,
29415
30543
  FormSubmitButton,
29416
30544
  Heading,
30545
+ HoverTrigger,
29417
30546
  Icon,
29418
30547
  Icons,
29419
30548
  InlineEditField,
@@ -29426,6 +30555,11 @@ export {
29426
30555
  MenuItem2 as MenuItem,
29427
30556
  $3674c52c6b3c5bce$export$27d2ad3c5815583e as MenuTrigger,
29428
30557
  Modal,
30558
+ NavigationMenu,
30559
+ NavigationMenuContent,
30560
+ NavigationMenuItem,
30561
+ NavigationMenuLink,
30562
+ NavigationMenuTrigger,
29429
30563
  Page,
29430
30564
  PasswordField,
29431
30565
  Popover,