hubg-app-shell 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -18,13 +18,15 @@ var __toESM = (mod, isNodeMode, target) => {
18
18
  return cached;
19
19
  }
20
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
- for (let key of __getOwnPropNames(mod))
23
- if (!__hasOwnProp.call(to, key))
24
- __defProp(to, key, {
25
- get: __accessProp.bind(mod, key),
26
- enumerable: true
27
- });
21
+ const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
+ if (mod && typeof mod === "object" || typeof mod === "function") {
23
+ for (let key of __getOwnPropNames(mod))
24
+ if (!__hasOwnProp.call(to, key))
25
+ __defProp(to, key, {
26
+ get: __accessProp.bind(mod, key),
27
+ enumerable: true
28
+ });
29
+ }
28
30
  if (canCache)
29
31
  cache.set(mod, to);
30
32
  return to;
@@ -68,11 +70,11 @@ __export(exports_bundle_entry, {
68
70
  module.exports = __toCommonJS(exports_bundle_entry);
69
71
 
70
72
  // src/components/AppShell.tsx
71
- var React52 = __toESM(require("react"));
73
+ var React52 = __toESM(require("react"), 1);
72
74
 
73
75
  // src/context/ShellContext.tsx
74
76
  var import_react = require("react");
75
- var jsx_dev_runtime = require("react/jsx-dev-runtime");
77
+ var jsx_runtime = require("react/jsx-runtime");
76
78
  var ShellContext = import_react.createContext(null);
77
79
  function useShell() {
78
80
  const ctx = import_react.useContext(ShellContext);
@@ -85,7 +87,7 @@ function ShellProvider({ children, initialRoute }) {
85
87
  const [navCollapsed, setNavCollapsed] = import_react.useState(false);
86
88
  const [pageTitle, setPageTitle] = import_react.useState(undefined);
87
89
  const [activeRoute, setActiveRoute] = import_react.useState(initialRoute);
88
- const stableSetNavCollapsed = import_react.useCallback((value2) => setNavCollapsed(value2), []);
90
+ const stableSetNavCollapsed = import_react.useCallback((value) => setNavCollapsed(value), []);
89
91
  const stableSetPageTitle = import_react.useCallback((t) => setPageTitle(t), []);
90
92
  const stableSetActiveRoute = import_react.useCallback((r) => setActiveRoute(r), []);
91
93
  const value = import_react.useMemo(() => ({
@@ -96,14 +98,14 @@ function ShellProvider({ children, initialRoute }) {
96
98
  activeRoute,
97
99
  setActiveRoute: stableSetActiveRoute
98
100
  }), [navCollapsed, stableSetNavCollapsed, pageTitle, stableSetPageTitle, activeRoute, stableSetActiveRoute]);
99
- return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ShellContext.Provider, {
101
+ return /* @__PURE__ */ jsx_runtime.jsx(ShellContext.Provider, {
100
102
  value,
101
103
  children
102
- }, undefined, false, undefined, this);
104
+ });
103
105
  }
104
106
 
105
107
  // src/components/Header.tsx
106
- var React41 = __toESM(require("react"));
108
+ var React41 = __toESM(require("react"), 1);
107
109
  // ../../node_modules/.pnpm/lucide-react@0.511.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
108
110
  var import_react3 = require("react");
109
111
 
@@ -240,16 +242,16 @@ var __iconNode10 = [
240
242
  ];
241
243
  var Users = createLucideIcon("users", __iconNode10);
242
244
  // src/components/ui/avatar.tsx
243
- var React9 = __toESM(require("react"));
245
+ var React9 = __toESM(require("react"), 1);
244
246
 
245
247
  // ../../node_modules/.pnpm/@radix-ui+react-avatar@1.2.6_@types+react-dom@18.3.7_@types+react@18.3.31__@types+react_e6c996e5557b18a376135b2452a80188/node_modules/@radix-ui/react-avatar/dist/index.mjs
246
- var React8 = __toESM(require("react"));
248
+ var React8 = __toESM(require("react"), 1);
247
249
 
248
250
  // ../../node_modules/.pnpm/@radix-ui+primitive@1.1.7/node_modules/@radix-ui/primitive/dist/internal/is-development.true.mjs
249
251
  var IS_DEVELOPMENT = true;
250
252
 
251
253
  // ../../node_modules/.pnpm/@radix-ui+react-context@1.2.2_@types+react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.mjs
252
- var React2 = __toESM(require("react"));
254
+ var React2 = __toESM(require("react"), 1);
253
255
  var import_jsx_runtime = require("react/jsx-runtime");
254
256
  var __defProp2 = Object.defineProperty;
255
257
  var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
@@ -282,18 +284,18 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
282
284
  function createContext3(rootComponentName, defaultContext) {
283
285
  const BaseContext = React2.createContext(defaultContext);
284
286
  BaseContext.displayName = rootComponentName + "Context";
285
- const index2 = defaultContexts.length;
287
+ const index = defaultContexts.length;
286
288
  defaultContexts = [...defaultContexts, defaultContext];
287
289
  const Provider = /* @__PURE__ */ __name((props) => {
288
290
  const { scope, children, ...context } = props;
289
- const Context = scope?.[scopeName]?.[index2] || BaseContext;
291
+ const Context = scope?.[scopeName]?.[index] || BaseContext;
290
292
  const value = React2.useMemo(() => context, Object.values(context));
291
293
  return /* @__PURE__ */ import_jsx_runtime.jsx(Context.Provider, { value, children });
292
294
  }, "Provider");
293
295
  Provider.displayName = rootComponentName + "Provider";
294
296
  function useContext22(consumerName, scope, options = {}) {
295
297
  const { optional = false } = options;
296
- const Context = scope?.[scopeName]?.[index2] || BaseContext;
298
+ const Context = scope?.[scopeName]?.[index] || BaseContext;
297
299
  const context = React2.useContext(Context);
298
300
  if (context)
299
301
  return context;
@@ -344,7 +346,7 @@ function composeContextScopes(...scopes) {
344
346
  __name(composeContextScopes, "composeContextScopes");
345
347
 
346
348
  // ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.4_@types+react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
347
- var React3 = __toESM(require("react"));
349
+ var React3 = __toESM(require("react"), 1);
348
350
  var __defProp3 = Object.defineProperty;
349
351
  var __name2 = (target, value) => __defProp3(target, "name", { value, configurable: true });
350
352
  function useCallbackRef(callback) {
@@ -357,18 +359,18 @@ function useCallbackRef(callback) {
357
359
  __name2(useCallbackRef, "useCallbackRef");
358
360
 
359
361
  // ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.4_@types+react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
360
- var React4 = __toESM(require("react"));
362
+ var React4 = __toESM(require("react"), 1);
361
363
  var useLayoutEffect2 = globalThis?.document ? React4.useLayoutEffect : () => {};
362
364
 
363
365
  // ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.10_@types+react-dom@18.3.7_@types+react@18.3.31__@types+r_dba614f83980a1ab9805a3f12c0d2bc2/node_modules/@radix-ui/react-primitive/dist/index.mjs
364
- var React7 = __toESM(require("react"));
365
- var ReactDOM = __toESM(require("react-dom"));
366
+ var React7 = __toESM(require("react"), 1);
367
+ var ReactDOM = __toESM(require("react-dom"), 1);
366
368
 
367
369
  // ../../node_modules/.pnpm/@radix-ui+react-slot@1.3.3_@types+react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
368
- var React6 = __toESM(require("react"));
370
+ var React6 = __toESM(require("react"), 1);
369
371
 
370
372
  // ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.5_@types+react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
371
- var React5 = __toESM(require("react"));
373
+ var React5 = __toESM(require("react"), 1);
372
374
  var __defProp4 = Object.defineProperty;
373
375
  var __name3 = (target, value) => __defProp4(target, "name", { value, configurable: true });
374
376
  function setRef(ref, value) {
@@ -560,10 +562,10 @@ var NODES = [
560
562
  "ul"
561
563
  ];
562
564
  var Primitive = NODES.reduce((primitive, node) => {
563
- const Slot2 = createSlot(`Primitive.${node}`);
565
+ const Slot = createSlot(`Primitive.${node}`);
564
566
  const Node2 = React7.forwardRef((props, forwardedRef) => {
565
567
  const { asChild, ...primitiveProps } = props;
566
- const Comp = asChild ? Slot2 : node;
568
+ const Comp = asChild ? Slot : node;
567
569
  if (typeof window !== "undefined") {
568
570
  window[Symbol.for("radix-ui")] = true;
569
571
  }
@@ -951,16 +953,16 @@ var createParseClassName = (config) => {
951
953
  let modifierStart = 0;
952
954
  let postfixModifierPosition;
953
955
  const len = className.length;
954
- for (let index2 = 0;index2 < len; index2++) {
955
- const currentCharacter = className[index2];
956
+ for (let index = 0;index < len; index++) {
957
+ const currentCharacter = className[index];
956
958
  if (bracketDepth === 0 && parenDepth === 0) {
957
959
  if (currentCharacter === MODIFIER_SEPARATOR) {
958
- modifiers.push(className.slice(modifierStart, index2));
959
- modifierStart = index2 + 1;
960
+ modifiers.push(className.slice(modifierStart, index));
961
+ modifierStart = index + 1;
960
962
  continue;
961
963
  }
962
964
  if (currentCharacter === "/") {
963
- postfixModifierPosition = index2;
965
+ postfixModifierPosition = index;
964
966
  continue;
965
967
  }
966
968
  }
@@ -1002,8 +1004,8 @@ var createParseClassName = (config) => {
1002
1004
  };
1003
1005
  var createSortModifiers = (config) => {
1004
1006
  const modifierWeights = new Map;
1005
- config.orderSensitiveModifiers.forEach((mod, index2) => {
1006
- modifierWeights.set(mod, 1e6 + index2);
1007
+ config.orderSensitiveModifiers.forEach((mod, index) => {
1008
+ modifierWeights.set(mod, 1e6 + index);
1007
1009
  });
1008
1010
  return (modifiers) => {
1009
1011
  const result = [];
@@ -1059,8 +1061,8 @@ var mergeClassList = (classList, configUtils) => {
1059
1061
  const classGroupsInConflict = [];
1060
1062
  const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
1061
1063
  let result = "";
1062
- for (let index2 = classNames.length - 1;index2 >= 0; index2 -= 1) {
1063
- const originalClassName = classNames[index2];
1064
+ for (let index = classNames.length - 1;index >= 0; index -= 1) {
1065
+ const originalClassName = classNames[index];
1064
1066
  const {
1065
1067
  isExternal,
1066
1068
  modifiers,
@@ -1114,12 +1116,12 @@ var mergeClassList = (classList, configUtils) => {
1114
1116
  return result;
1115
1117
  };
1116
1118
  var twJoin = (...classLists) => {
1117
- let index2 = 0;
1119
+ let index = 0;
1118
1120
  let argument;
1119
1121
  let resolvedValue;
1120
1122
  let string = "";
1121
- while (index2 < classLists.length) {
1122
- if (argument = classLists[index2++]) {
1123
+ while (index < classLists.length) {
1124
+ if (argument = classLists[index++]) {
1123
1125
  if (resolvedValue = toValue(argument)) {
1124
1126
  string && (string += " ");
1125
1127
  string += resolvedValue;
@@ -2557,31 +2559,31 @@ function cn(...inputs) {
2557
2559
  }
2558
2560
 
2559
2561
  // src/components/ui/avatar.tsx
2560
- var jsx_dev_runtime2 = require("react/jsx-dev-runtime");
2561
- var Avatar3 = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Avatar, {
2562
+ var jsx_runtime2 = require("react/jsx-runtime");
2563
+ var Avatar2 = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx_runtime2.jsx(Avatar, {
2562
2564
  ref,
2563
2565
  className: cn("relative flex h-8 w-8 shrink-0 overflow-hidden rounded-full", className),
2564
2566
  ...props
2565
- }, undefined, false, undefined, this));
2566
- Avatar3.displayName = Avatar.displayName;
2567
- var AvatarImage3 = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(AvatarImage, {
2567
+ }));
2568
+ Avatar2.displayName = Avatar.displayName;
2569
+ var AvatarImage2 = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx_runtime2.jsx(AvatarImage, {
2568
2570
  ref,
2569
2571
  className: cn("aspect-square h-full w-full object-cover", className),
2570
2572
  ...props
2571
- }, undefined, false, undefined, this));
2572
- AvatarImage3.displayName = AvatarImage.displayName;
2573
- var AvatarFallback3 = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(AvatarFallback, {
2573
+ }));
2574
+ AvatarImage2.displayName = AvatarImage.displayName;
2575
+ var AvatarFallback2 = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx_runtime2.jsx(AvatarFallback, {
2574
2576
  ref,
2575
2577
  className: cn("flex h-full w-full items-center justify-center rounded-full", "bg-action-primary text-xs font-semibold text-content-inverse", className),
2576
2578
  ...props
2577
- }, undefined, false, undefined, this));
2578
- AvatarFallback3.displayName = AvatarFallback.displayName;
2579
+ }));
2580
+ AvatarFallback2.displayName = AvatarFallback.displayName;
2579
2581
 
2580
2582
  // src/components/ui/dropdown-menu.tsx
2581
- var React38 = __toESM(require("react"));
2583
+ var React38 = __toESM(require("react"), 1);
2582
2584
 
2583
2585
  // ../../node_modules/.pnpm/@radix-ui+react-dropdown-menu@2.1.24_@types+react-dom@18.3.7_@types+react@18.3.31__@typ_cccb57b67c4362d4d715c3f09d78a900/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs
2584
- var React37 = __toESM(require("react"));
2586
+ var React37 = __toESM(require("react"), 1);
2585
2587
 
2586
2588
  // ../../node_modules/.pnpm/@radix-ui+primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.mjs
2587
2589
  var __defProp8 = Object.defineProperty;
@@ -2636,11 +2638,11 @@ function isFrame(element) {
2636
2638
  __name7(isFrame, "isFrame");
2637
2639
 
2638
2640
  // ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.6_@types+react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
2639
- var React11 = __toESM(require("react"));
2640
- var React22 = __toESM(require("react"));
2641
+ var React11 = __toESM(require("react"), 1);
2642
+ var React22 = __toESM(require("react"), 1);
2641
2643
 
2642
2644
  // ../../node_modules/.pnpm/@radix-ui+react-use-effect-event@0.0.5_@types+react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs
2643
- var React10 = __toESM(require("react"));
2645
+ var React10 = __toESM(require("react"), 1);
2644
2646
  var __defProp9 = Object.defineProperty;
2645
2647
  var __name8 = (target, value) => __defProp9(target, "name", { value, configurable: true });
2646
2648
  var useReactEffectEvent = React10[" useEffectEvent ".trim().toString()];
@@ -2787,12 +2789,12 @@ function useControllableStateReducer(reducer, userArgs, initialArg, init) {
2787
2789
  __name9(useControllableStateReducer, "useControllableStateReducer");
2788
2790
 
2789
2791
  // ../../node_modules/.pnpm/@radix-ui+react-menu@2.1.24_@types+react-dom@18.3.7_@types+react@18.3.31__@types+react@_5916b0f50695b0c3786ad7b8ea8d8ac9/node_modules/@radix-ui/react-menu/dist/index.mjs
2790
- var React36 = __toESM(require("react"));
2792
+ var React36 = __toESM(require("react"), 1);
2791
2793
 
2792
2794
  // ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.15_@types+react-dom@18.3.7_@types+react@18.3.31__@types+_e568781db46e6f5e62f713df7975a3a9/node_modules/@radix-ui/react-collection/dist/index.mjs
2793
- var React12 = __toESM(require("react"));
2795
+ var React12 = __toESM(require("react"), 1);
2794
2796
  var import_jsx_runtime4 = require("react/jsx-runtime");
2795
- var React23 = __toESM(require("react"));
2797
+ var React23 = __toESM(require("react"), 1);
2796
2798
  var import_jsx_runtime5 = require("react/jsx-runtime");
2797
2799
  "use client";
2798
2800
  var __defProp11 = Object.defineProperty;
@@ -2875,10 +2877,10 @@ var OrderedDict = class _OrderedDict extends Map {
2875
2877
  super.set(key, value);
2876
2878
  return this;
2877
2879
  }
2878
- insert(index2, key, value) {
2880
+ insert(index, key, value) {
2879
2881
  const has = this.has(key);
2880
2882
  const length = this.#keys.length;
2881
- const relativeIndex = toSafeInteger(index2);
2883
+ const relativeIndex = toSafeInteger(index);
2882
2884
  let actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
2883
2885
  const safeIndex = actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;
2884
2886
  if (safeIndex === this.size || has && safeIndex === this.size - 1 || safeIndex === -1) {
@@ -2916,39 +2918,39 @@ var OrderedDict = class _OrderedDict extends Map {
2916
2918
  }
2917
2919
  return this;
2918
2920
  }
2919
- with(index2, key, value) {
2921
+ with(index, key, value) {
2920
2922
  const copy = new _OrderedDict(this);
2921
- copy.insert(index2, key, value);
2923
+ copy.insert(index, key, value);
2922
2924
  return copy;
2923
2925
  }
2924
2926
  before(key) {
2925
- const index2 = this.#keys.indexOf(key) - 1;
2926
- if (index2 < 0) {
2927
+ const index = this.#keys.indexOf(key) - 1;
2928
+ if (index < 0) {
2927
2929
  return;
2928
2930
  }
2929
- return this.entryAt(index2);
2931
+ return this.entryAt(index);
2930
2932
  }
2931
2933
  setBefore(key, newKey, value) {
2932
- const index2 = this.#keys.indexOf(key);
2933
- if (index2 === -1) {
2934
+ const index = this.#keys.indexOf(key);
2935
+ if (index === -1) {
2934
2936
  return this;
2935
2937
  }
2936
- return this.insert(index2, newKey, value);
2938
+ return this.insert(index, newKey, value);
2937
2939
  }
2938
2940
  after(key) {
2939
- let index2 = this.#keys.indexOf(key);
2940
- index2 = index2 === -1 || index2 === this.size - 1 ? -1 : index2 + 1;
2941
- if (index2 === -1) {
2941
+ let index = this.#keys.indexOf(key);
2942
+ index = index === -1 || index === this.size - 1 ? -1 : index + 1;
2943
+ if (index === -1) {
2942
2944
  return;
2943
2945
  }
2944
- return this.entryAt(index2);
2946
+ return this.entryAt(index);
2945
2947
  }
2946
2948
  setAfter(key, newKey, value) {
2947
- const index2 = this.#keys.indexOf(key);
2948
- if (index2 === -1) {
2949
+ const index = this.#keys.indexOf(key);
2950
+ if (index === -1) {
2949
2951
  return this;
2950
2952
  }
2951
- return this.insert(index2 + 1, newKey, value);
2953
+ return this.insert(index + 1, newKey, value);
2952
2954
  }
2953
2955
  first() {
2954
2956
  return this.entryAt(0);
@@ -2967,21 +2969,21 @@ var OrderedDict = class _OrderedDict extends Map {
2967
2969
  }
2968
2970
  return deleted;
2969
2971
  }
2970
- deleteAt(index2) {
2971
- const key = this.keyAt(index2);
2972
+ deleteAt(index) {
2973
+ const key = this.keyAt(index);
2972
2974
  if (key !== undefined) {
2973
2975
  return this.delete(key);
2974
2976
  }
2975
2977
  return false;
2976
2978
  }
2977
- at(index2) {
2978
- const key = at(this.#keys, index2);
2979
+ at(index) {
2980
+ const key = at(this.#keys, index);
2979
2981
  if (key !== undefined) {
2980
2982
  return this.get(key);
2981
2983
  }
2982
2984
  }
2983
- entryAt(index2) {
2984
- const key = at(this.#keys, index2);
2985
+ entryAt(index) {
2986
+ const key = at(this.#keys, index);
2985
2987
  if (key !== undefined) {
2986
2988
  return [key, this.get(key)];
2987
2989
  }
@@ -2989,15 +2991,15 @@ var OrderedDict = class _OrderedDict extends Map {
2989
2991
  indexOf(key) {
2990
2992
  return this.#keys.indexOf(key);
2991
2993
  }
2992
- keyAt(index2) {
2993
- return at(this.#keys, index2);
2994
+ keyAt(index) {
2995
+ return at(this.#keys, index);
2994
2996
  }
2995
2997
  from(key, offset) {
2996
- const index2 = this.indexOf(key);
2997
- if (index2 === -1) {
2998
+ const index = this.indexOf(key);
2999
+ if (index === -1) {
2998
3000
  return;
2999
3001
  }
3000
- let dest = index2 + offset;
3002
+ let dest = index + offset;
3001
3003
  if (dest < 0)
3002
3004
  dest = 0;
3003
3005
  if (dest >= this.size)
@@ -3005,11 +3007,11 @@ var OrderedDict = class _OrderedDict extends Map {
3005
3007
  return this.at(dest);
3006
3008
  }
3007
3009
  keyFrom(key, offset) {
3008
- const index2 = this.indexOf(key);
3009
- if (index2 === -1) {
3010
+ const index = this.indexOf(key);
3011
+ if (index === -1) {
3010
3012
  return;
3011
3013
  }
3012
- let dest = index2 + offset;
3014
+ let dest = index + offset;
3013
3015
  if (dest < 0)
3014
3016
  dest = 0;
3015
3017
  if (dest >= this.size)
@@ -3017,68 +3019,68 @@ var OrderedDict = class _OrderedDict extends Map {
3017
3019
  return this.keyAt(dest);
3018
3020
  }
3019
3021
  find(predicate, thisArg) {
3020
- let index2 = 0;
3022
+ let index = 0;
3021
3023
  for (const entry of this) {
3022
- if (Reflect.apply(predicate, thisArg, [entry, index2, this])) {
3024
+ if (Reflect.apply(predicate, thisArg, [entry, index, this])) {
3023
3025
  return entry;
3024
3026
  }
3025
- index2++;
3027
+ index++;
3026
3028
  }
3027
3029
  return;
3028
3030
  }
3029
3031
  findIndex(predicate, thisArg) {
3030
- let index2 = 0;
3032
+ let index = 0;
3031
3033
  for (const entry of this) {
3032
- if (Reflect.apply(predicate, thisArg, [entry, index2, this])) {
3033
- return index2;
3034
+ if (Reflect.apply(predicate, thisArg, [entry, index, this])) {
3035
+ return index;
3034
3036
  }
3035
- index2++;
3037
+ index++;
3036
3038
  }
3037
3039
  return -1;
3038
3040
  }
3039
3041
  filter(predicate, thisArg) {
3040
3042
  const entries = [];
3041
- let index2 = 0;
3043
+ let index = 0;
3042
3044
  for (const entry of this) {
3043
- if (Reflect.apply(predicate, thisArg, [entry, index2, this])) {
3045
+ if (Reflect.apply(predicate, thisArg, [entry, index, this])) {
3044
3046
  entries.push(entry);
3045
3047
  }
3046
- index2++;
3048
+ index++;
3047
3049
  }
3048
3050
  return new _OrderedDict(entries);
3049
3051
  }
3050
3052
  map(callbackfn, thisArg) {
3051
3053
  const entries = [];
3052
- let index2 = 0;
3054
+ let index = 0;
3053
3055
  for (const entry of this) {
3054
- entries.push([entry[0], Reflect.apply(callbackfn, thisArg, [entry, index2, this])]);
3055
- index2++;
3056
+ entries.push([entry[0], Reflect.apply(callbackfn, thisArg, [entry, index, this])]);
3057
+ index++;
3056
3058
  }
3057
3059
  return new _OrderedDict(entries);
3058
3060
  }
3059
3061
  reduce(...args) {
3060
3062
  const [callbackfn, initialValue] = args;
3061
- let index2 = 0;
3063
+ let index = 0;
3062
3064
  let accumulator = initialValue ?? this.at(0);
3063
3065
  for (const entry of this) {
3064
- if (index2 === 0 && args.length === 1) {
3066
+ if (index === 0 && args.length === 1) {
3065
3067
  accumulator = entry;
3066
3068
  } else {
3067
- accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index2, this]);
3069
+ accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);
3068
3070
  }
3069
- index2++;
3071
+ index++;
3070
3072
  }
3071
3073
  return accumulator;
3072
3074
  }
3073
3075
  reduceRight(...args) {
3074
3076
  const [callbackfn, initialValue] = args;
3075
3077
  let accumulator = initialValue ?? this.at(-1);
3076
- for (let index2 = this.size - 1;index2 >= 0; index2--) {
3077
- const entry = this.at(index2);
3078
- if (index2 === this.size - 1 && args.length === 1) {
3078
+ for (let index = this.size - 1;index >= 0; index--) {
3079
+ const entry = this.at(index);
3080
+ if (index === this.size - 1 && args.length === 1) {
3079
3081
  accumulator = entry;
3080
3082
  } else {
3081
- accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index2, this]);
3083
+ accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);
3082
3084
  }
3083
3085
  }
3084
3086
  return accumulator;
@@ -3089,8 +3091,8 @@ var OrderedDict = class _OrderedDict extends Map {
3089
3091
  }
3090
3092
  toReversed() {
3091
3093
  const reversed = new _OrderedDict;
3092
- for (let index2 = this.size - 1;index2 >= 0; index2--) {
3093
- const key = this.keyAt(index2);
3094
+ for (let index = this.size - 1;index >= 0; index--) {
3095
+ const key = this.keyAt(index);
3094
3096
  const element = this.get(key);
3095
3097
  reversed.set(key, element);
3096
3098
  }
@@ -3113,45 +3115,45 @@ var OrderedDict = class _OrderedDict extends Map {
3113
3115
  if (end !== undefined && end > 0) {
3114
3116
  stop = end - 1;
3115
3117
  }
3116
- for (let index2 = start;index2 <= stop; index2++) {
3117
- const key = this.keyAt(index2);
3118
+ for (let index = start;index <= stop; index++) {
3119
+ const key = this.keyAt(index);
3118
3120
  const element = this.get(key);
3119
3121
  result.set(key, element);
3120
3122
  }
3121
3123
  return result;
3122
3124
  }
3123
3125
  every(predicate, thisArg) {
3124
- let index2 = 0;
3126
+ let index = 0;
3125
3127
  for (const entry of this) {
3126
- if (!Reflect.apply(predicate, thisArg, [entry, index2, this])) {
3128
+ if (!Reflect.apply(predicate, thisArg, [entry, index, this])) {
3127
3129
  return false;
3128
3130
  }
3129
- index2++;
3131
+ index++;
3130
3132
  }
3131
3133
  return true;
3132
3134
  }
3133
3135
  some(predicate, thisArg) {
3134
- let index2 = 0;
3136
+ let index = 0;
3135
3137
  for (const entry of this) {
3136
- if (Reflect.apply(predicate, thisArg, [entry, index2, this])) {
3138
+ if (Reflect.apply(predicate, thisArg, [entry, index, this])) {
3137
3139
  return true;
3138
3140
  }
3139
- index2++;
3141
+ index++;
3140
3142
  }
3141
3143
  return false;
3142
3144
  }
3143
3145
  };
3144
- function at(array, index2) {
3146
+ function at(array, index) {
3145
3147
  if ("at" in Array.prototype) {
3146
- return Array.prototype.at.call(array, index2);
3148
+ return Array.prototype.at.call(array, index);
3147
3149
  }
3148
- const actualIndex = toSafeIndex(array, index2);
3150
+ const actualIndex = toSafeIndex(array, index);
3149
3151
  return actualIndex === -1 ? undefined : array[actualIndex];
3150
3152
  }
3151
3153
  __name10(at, "at");
3152
- function toSafeIndex(array, index2) {
3154
+ function toSafeIndex(array, index) {
3153
3155
  const length = array.length;
3154
- const relativeIndex = toSafeInteger(index2);
3156
+ const relativeIndex = toSafeInteger(index);
3155
3157
  const actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
3156
3158
  return actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;
3157
3159
  }
@@ -3185,7 +3187,7 @@ function createCollection2(name) {
3185
3187
  const { scope, children, state } = props;
3186
3188
  const ref = React23.useRef(null);
3187
3189
  const [collectionElement, setCollectionElement] = React23.useState(null);
3188
- const composeRefs2 = useComposedRefs(ref, setCollectionElement);
3190
+ const composeRefs = useComposedRefs(ref, setCollectionElement);
3189
3191
  const [itemMap, setItemMap] = state;
3190
3192
  React23.useEffect(() => {
3191
3193
  if (!collectionElement)
@@ -3203,7 +3205,7 @@ function createCollection2(name) {
3203
3205
  scope,
3204
3206
  itemMap,
3205
3207
  setItemMap,
3206
- collectionRef: composeRefs2,
3208
+ collectionRef: composeRefs,
3207
3209
  collectionRefObject: ref,
3208
3210
  collectionElement,
3209
3211
  children
@@ -3321,7 +3323,7 @@ function getChildListObserver(callback) {
3321
3323
  __name10(getChildListObserver, "getChildListObserver");
3322
3324
 
3323
3325
  // ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.4_@types+react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.mjs
3324
- var React13 = __toESM(require("react"));
3326
+ var React13 = __toESM(require("react"), 1);
3325
3327
  var import_jsx_runtime6 = require("react/jsx-runtime");
3326
3328
  "use client";
3327
3329
  var __defProp12 = Object.defineProperty;
@@ -3334,7 +3336,7 @@ function useDirection(localDir) {
3334
3336
  __name11(useDirection, "useDirection");
3335
3337
 
3336
3338
  // ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.19_@types+react-dom@18.3.7_@types+react@18.3.31___4f2024a88a120e800aa2287adeb24710/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
3337
- var React14 = __toESM(require("react"));
3339
+ var React14 = __toESM(require("react"), 1);
3338
3340
  var import_jsx_runtime7 = require("react/jsx-runtime");
3339
3341
  "use client";
3340
3342
  var __defProp13 = Object.defineProperty;
@@ -3370,9 +3372,9 @@ var DismissableLayer = /* @__PURE__ */ React14.forwardRef(/* @__PURE__ */ __name
3370
3372
  ...context.layersWithOutsidePointerEventsDisabled
3371
3373
  ].slice(-1);
3372
3374
  const highestLayerWithOutsidePointerEventsDisabledIndex = highestLayerWithOutsidePointerEventsDisabled ? layers.indexOf(highestLayerWithOutsidePointerEventsDisabled) : -1;
3373
- const index2 = node ? layers.indexOf(node) : -1;
3375
+ const index = node ? layers.indexOf(node) : -1;
3374
3376
  const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
3375
- const isPointerEventsEnabled = index2 >= highestLayerWithOutsidePointerEventsDisabledIndex;
3377
+ const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
3376
3378
  const isDeferredPointerDownOutsideRef = React14.useRef(false);
3377
3379
  const pointerDownOutside = usePointerDownOutside((event) => {
3378
3380
  onPointerDownOutside?.(event);
@@ -3405,7 +3407,7 @@ var DismissableLayer = /* @__PURE__ */ React14.forwardRef(/* @__PURE__ */ __name
3405
3407
  if (!event.defaultPrevented)
3406
3408
  onDismiss?.();
3407
3409
  }, ownerDocument);
3408
- const isHighestLayer = node ? index2 === layers.length - 1 : false;
3410
+ const isHighestLayer = node ? index === layers.length - 1 : false;
3409
3411
  const handleKeyDown = useCallbackRef((event) => {
3410
3412
  if (event.key !== "Escape") {
3411
3413
  return;
@@ -3646,7 +3648,7 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
3646
3648
  __name12(handleAndDispatchCustomEvent, "handleAndDispatchCustomEvent");
3647
3649
 
3648
3650
  // ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.6_@types+react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
3649
- var React15 = __toESM(require("react"));
3651
+ var React15 = __toESM(require("react"), 1);
3650
3652
  "use client";
3651
3653
  var __defProp14 = Object.defineProperty;
3652
3654
  var __name13 = (target, value) => __defProp14(target, "name", { value, configurable: true });
@@ -3694,7 +3696,7 @@ function createFocusGuard() {
3694
3696
  __name13(createFocusGuard, "createFocusGuard");
3695
3697
 
3696
3698
  // ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.16_@types+react-dom@18.3.7_@types+react@18.3.31__@types_161760c0d51338f080e5b66a9ea35f08/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
3697
- var React16 = __toESM(require("react"));
3699
+ var React16 = __toESM(require("react"), 1);
3698
3700
  var import_jsx_runtime8 = require("react/jsx-runtime");
3699
3701
  "use client";
3700
3702
  var __defProp15 = Object.defineProperty;
@@ -3917,9 +3919,9 @@ function createFocusScopesStack() {
3917
3919
  __name14(createFocusScopesStack, "createFocusScopesStack");
3918
3920
  function arrayRemove(array, item) {
3919
3921
  const updatedArray = [...array];
3920
- const index2 = updatedArray.indexOf(item);
3921
- if (index2 !== -1) {
3922
- updatedArray.splice(index2, 1);
3922
+ const index = updatedArray.indexOf(item);
3923
+ if (index !== -1) {
3924
+ updatedArray.splice(index, 1);
3923
3925
  }
3924
3926
  return updatedArray;
3925
3927
  }
@@ -3930,7 +3932,7 @@ function removeLinks(items) {
3930
3932
  __name14(removeLinks, "removeLinks");
3931
3933
 
3932
3934
  // ../../node_modules/.pnpm/@radix-ui+react-id@1.1.4_@types+react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
3933
- var React17 = __toESM(require("react"));
3935
+ var React17 = __toESM(require("react"), 1);
3934
3936
  var __defProp16 = Object.defineProperty;
3935
3937
  var __name15 = (target, value) => __defProp16(target, "name", { value, configurable: true });
3936
3938
  var useReactId = React17[" useId ".trim().toString()] || (() => {
@@ -3948,7 +3950,7 @@ function useId(deterministicId) {
3948
3950
  __name15(useId, "useId");
3949
3951
 
3950
3952
  // ../../node_modules/.pnpm/@radix-ui+react-popper@1.3.7_@types+react-dom@18.3.7_@types+react@18.3.31__@types+react_eb61390ffeb98719c4501fa966467838/node_modules/@radix-ui/react-popper/dist/index.mjs
3951
- var React20 = __toESM(require("react"));
3953
+ var React20 = __toESM(require("react"), 1);
3952
3954
 
3953
3955
  // ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
3954
3956
  var sides = ["top", "right", "bottom", "left"];
@@ -4316,11 +4318,11 @@ var arrow = (options) => ({
4316
4318
  const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
4317
4319
  const minPadding = min(paddingObject[minProp], largestPossiblePadding);
4318
4320
  const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
4319
- const max2 = clientSize - arrowDimensions[length] - maxPadding;
4321
+ const max = clientSize - arrowDimensions[length] - maxPadding;
4320
4322
  const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
4321
- const offset = clamp(minPadding, center, max2);
4323
+ const offset = clamp(minPadding, center, max);
4322
4324
  const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < minPadding ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
4323
- const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max2 : 0;
4325
+ const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max : 0;
4324
4326
  return {
4325
4327
  [axis]: coords[axis] + alignmentOffset,
4326
4328
  data: {
@@ -4372,7 +4374,7 @@ var flip = function(options) {
4372
4374
  if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
4373
4375
  fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
4374
4376
  }
4375
- const placements2 = [initialPlacement, ...fallbackPlacements];
4377
+ const placements = [initialPlacement, ...fallbackPlacements];
4376
4378
  const overflow = await platform.detectOverflow(state, detectOverflowOptions);
4377
4379
  const overflows = [];
4378
4380
  let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? undefined : _middlewareData$flip.overflows) || [];
@@ -4387,10 +4389,10 @@ var flip = function(options) {
4387
4389
  placement,
4388
4390
  overflows
4389
4391
  }];
4390
- if (!overflows.every((side2) => side2 <= 0)) {
4392
+ if (!overflows.every((side) => side <= 0)) {
4391
4393
  var _middlewareData$flip2, _overflowsData$filter;
4392
4394
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? undefined : _middlewareData$flip2.index) || 0) + 1;
4393
- const nextPlacement = placements2[nextIndex];
4395
+ const nextPlacement = placements[nextIndex];
4394
4396
  if (nextPlacement) {
4395
4397
  const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
4396
4398
  if (!ignoreCrossAxisOverflow || overflowsData.every((d) => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
@@ -4410,15 +4412,15 @@ var flip = function(options) {
4410
4412
  switch (fallbackStrategy) {
4411
4413
  case "bestFit": {
4412
4414
  var _overflowsData$filter2;
4413
- const placement2 = (_overflowsData$filter2 = overflowsData.filter((d) => {
4415
+ const placement = (_overflowsData$filter2 = overflowsData.filter((d) => {
4414
4416
  if (hasFallbackAxisSideDirection) {
4415
4417
  const currentSideAxis = getSideAxis(d.placement);
4416
4418
  return currentSideAxis === initialSideAxis || currentSideAxis === "y";
4417
4419
  }
4418
4420
  return true;
4419
- }).map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? undefined : _overflowsData$filter2[0];
4420
- if (placement2) {
4421
- resetPlacement = placement2;
4421
+ }).map((d) => [d.placement, d.overflows.filter((overflow) => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? undefined : _overflowsData$filter2[0];
4422
+ if (placement) {
4423
+ resetPlacement = placement;
4422
4424
  }
4423
4425
  break;
4424
4426
  }
@@ -4588,12 +4590,12 @@ var shift = function(options) {
4588
4590
  limiter = {
4589
4591
  fn: (_ref) => {
4590
4592
  let {
4591
- x: x2,
4592
- y: y2
4593
+ x,
4594
+ y
4593
4595
  } = _ref;
4594
4596
  return {
4595
- x: x2,
4596
- y: y2
4597
+ x,
4598
+ y
4597
4599
  };
4598
4600
  }
4599
4601
  },
@@ -4650,7 +4652,7 @@ var limitShift = function(options) {
4650
4652
  middlewareData
4651
4653
  } = state;
4652
4654
  const {
4653
- offset: offset2 = 0,
4655
+ offset = 0,
4654
4656
  mainAxis: checkMainAxis = true,
4655
4657
  crossAxis: checkCrossAxis = true
4656
4658
  } = evaluate(options, state);
@@ -4662,7 +4664,7 @@ var limitShift = function(options) {
4662
4664
  const mainAxis = getOppositeAxis(crossAxis);
4663
4665
  let mainAxisCoord = coords[mainAxis];
4664
4666
  let crossAxisCoord = coords[crossAxis];
4665
- const rawOffset = evaluate(offset2, state);
4667
+ const rawOffset = evaluate(offset, state);
4666
4668
  const computedOffset = typeof rawOffset === "number" ? {
4667
4669
  mainAxis: rawOffset,
4668
4670
  crossAxis: 0
@@ -5531,11 +5533,11 @@ var computePosition2 = (reference, floating, options) => {
5531
5533
  };
5532
5534
 
5533
5535
  // ../../node_modules/.pnpm/@floating-ui+react-dom@2.1.9_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
5534
- var React18 = __toESM(require("react"));
5536
+ var React18 = __toESM(require("react"), 1);
5535
5537
  var import_react4 = require("react");
5536
- var ReactDOM2 = __toESM(require("react-dom"));
5538
+ var ReactDOM2 = __toESM(require("react-dom"), 1);
5537
5539
  var isClient = typeof document !== "undefined";
5538
- var noop = function noop2() {};
5540
+ var noop = function noop() {};
5539
5541
  var index2 = isClient ? import_react4.useLayoutEffect : noop;
5540
5542
  function deepEqual(a, b) {
5541
5543
  if (a === b) {
@@ -5611,7 +5613,7 @@ function useFloating(options) {
5611
5613
  placement = "bottom",
5612
5614
  strategy = "absolute",
5613
5615
  middleware = [],
5614
- platform: platform2,
5616
+ platform,
5615
5617
  elements: {
5616
5618
  reference: externalReference,
5617
5619
  floating: externalFloating
@@ -5653,7 +5655,7 @@ function useFloating(options) {
5653
5655
  const dataRef = React18.useRef(data);
5654
5656
  const hasWhileElementsMounted = whileElementsMounted != null;
5655
5657
  const whileElementsMountedRef = useLatestRef(whileElementsMounted);
5656
- const platformRef = useLatestRef(platform2);
5658
+ const platformRef = useLatestRef(platform);
5657
5659
  const openRef = useLatestRef(open);
5658
5660
  const update = React18.useCallback(() => {
5659
5661
  if (!referenceRef.current || !floatingRef.current) {
@@ -5667,9 +5669,9 @@ function useFloating(options) {
5667
5669
  if (platformRef.current) {
5668
5670
  config.platform = platformRef.current;
5669
5671
  }
5670
- computePosition2(referenceRef.current, floatingRef.current, config).then((data2) => {
5672
+ computePosition2(referenceRef.current, floatingRef.current, config).then((data) => {
5671
5673
  const fullData = {
5672
- ...data2,
5674
+ ...data,
5673
5675
  isPositioned: openRef.current !== false
5674
5676
  };
5675
5677
  if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
@@ -5683,8 +5685,8 @@ function useFloating(options) {
5683
5685
  index2(() => {
5684
5686
  if (open === false && dataRef.current.isPositioned) {
5685
5687
  dataRef.current.isPositioned = false;
5686
- setData((data2) => ({
5687
- ...data2,
5688
+ setData((data) => ({
5689
+ ...data,
5688
5690
  isPositioned: false
5689
5691
  }));
5690
5692
  }
@@ -5840,11 +5842,11 @@ var arrow3 = (options, deps) => {
5840
5842
  };
5841
5843
 
5842
5844
  // ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.4_@types+react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.mjs
5843
- var React19 = __toESM(require("react"));
5845
+ var React19 = __toESM(require("react"), 1);
5844
5846
  var __defProp17 = Object.defineProperty;
5845
5847
  var __name16 = (target, value) => __defProp17(target, "name", { value, configurable: true });
5846
5848
  function useSize(element) {
5847
- const [size4, setSize] = React19.useState(undefined);
5849
+ const [size, setSize] = React19.useState(undefined);
5848
5850
  useLayoutEffect2(() => {
5849
5851
  if (element) {
5850
5852
  setSize({ width: element.offsetWidth, height: element.offsetHeight });
@@ -5875,7 +5877,7 @@ function useSize(element) {
5875
5877
  setSize(undefined);
5876
5878
  }
5877
5879
  }, [element]);
5878
- return size4;
5880
+ return size;
5879
5881
  }
5880
5882
  __name16(useSize, "useSize");
5881
5883
 
@@ -5956,8 +5958,8 @@ var PopperContent = /* @__PURE__ */ React20.forwardRef(/* @__PURE__ */ __name17(
5956
5958
  const context = usePopperContext(CONTENT_NAME, __scopePopper);
5957
5959
  const [content, setContent] = React20.useState(null);
5958
5960
  const composedRefs = useComposedRefs(forwardedRef, setContent);
5959
- const [arrow4, setArrow] = React20.useState(null);
5960
- const arrowSize = useSize(arrow4);
5961
+ const [arrow, setArrow] = React20.useState(null);
5962
+ const arrowSize = useSize(arrow);
5961
5963
  const arrowWidth = arrowSize?.width ?? 0;
5962
5964
  const arrowHeight = arrowSize?.height ?? 0;
5963
5965
  const desiredPlacement = side + (align !== "center" ? "-" + align : "");
@@ -6001,7 +6003,7 @@ var PopperContent = /* @__PURE__ */ React20.forwardRef(/* @__PURE__ */ __name17(
6001
6003
  contentStyle.setProperty("--radix-popper-anchor-height", `${anchorHeight}px`);
6002
6004
  }, "apply")
6003
6005
  }),
6004
- arrow4 && arrow3({ element: arrow4, padding: arrowPadding }),
6006
+ arrow && arrow3({ element: arrow, padding: arrowPadding }),
6005
6007
  transformOrigin({ arrowWidth, arrowHeight }),
6006
6008
  hideWhenDetached && hide3({
6007
6009
  strategy: "referenceHidden",
@@ -6116,8 +6118,8 @@ var Anchor = PopperAnchor;
6116
6118
  var Content = PopperContent;
6117
6119
 
6118
6120
  // ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.17_@types+react-dom@18.3.7_@types+react@18.3.31__@types+reac_35c248e3d41b4a33144a8517e72175a4/node_modules/@radix-ui/react-portal/dist/index.mjs
6119
- var React21 = __toESM(require("react"));
6120
- var ReactDOM3 = __toESM(require("react-dom"));
6121
+ var React21 = __toESM(require("react"), 1);
6122
+ var ReactDOM3 = __toESM(require("react-dom"), 1);
6121
6123
  var import_jsx_runtime10 = require("react/jsx-runtime");
6122
6124
  "use client";
6123
6125
  var __defProp19 = Object.defineProperty;
@@ -6131,8 +6133,8 @@ var Portal = /* @__PURE__ */ React21.forwardRef(/* @__PURE__ */ __name18(functio
6131
6133
  }, "Portal"));
6132
6134
 
6133
6135
  // ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.10_@types+react-dom@18.3.7_@types+react@18.3.31__@types+re_62e566fb7823886e0e3d5565144169f1/node_modules/@radix-ui/react-presence/dist/index.mjs
6134
- var React24 = __toESM(require("react"));
6135
- var React25 = __toESM(require("react"));
6136
+ var React24 = __toESM(require("react"), 1);
6137
+ var React25 = __toESM(require("react"), 1);
6136
6138
  "use client";
6137
6139
  var __defProp20 = Object.defineProperty;
6138
6140
  var __name19 = (target, value) => __defProp20(target, "name", { value, configurable: true });
@@ -6311,11 +6313,11 @@ function getElementRef2(element) {
6311
6313
  __name19(getElementRef2, "getElementRef");
6312
6314
 
6313
6315
  // ../../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.19_@types+react-dom@18.3.7_@types+react@18.3.31__@type_d5b0f6117fe35925e77b051a5d0d3813/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
6314
- var React28 = __toESM(require("react"));
6316
+ var React28 = __toESM(require("react"), 1);
6315
6317
 
6316
6318
  // ../../node_modules/.pnpm/@radix-ui+react-use-is-hydrated@0.1.3_@types+react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs
6317
- var React26 = __toESM(require("react"));
6318
- var React27 = __toESM(require("react"));
6319
+ var React26 = __toESM(require("react"), 1);
6320
+ var React27 = __toESM(require("react"), 1);
6319
6321
  var __defProp21 = Object.defineProperty;
6320
6322
  var __name20 = (target, value) => __defProp21(target, "name", { value, configurable: true });
6321
6323
  var _isHydrated = false;
@@ -6542,7 +6544,7 @@ function focusFirst2(candidates, preventScroll = false) {
6542
6544
  }
6543
6545
  __name21(focusFirst2, "focusFirst");
6544
6546
  function wrapArray(array, startIndex) {
6545
- return array.map((_, index3) => array[(startIndex + index3) % array.length]);
6547
+ return array.map((_, index) => array[(startIndex + index) % array.length]);
6546
6548
  }
6547
6549
  __name21(wrapArray, "wrapArray");
6548
6550
  var Root = RovingFocusGroup;
@@ -6671,7 +6673,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
6671
6673
 
6672
6674
  // ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
6673
6675
  var __assign = function() {
6674
- __assign = Object.assign || function __assign2(t) {
6676
+ __assign = Object.assign || function __assign(t) {
6675
6677
  for (var s, i = 1, n = arguments.length;i < n; i++) {
6676
6678
  s = arguments[i];
6677
6679
  for (var p in s)
@@ -6840,9 +6842,9 @@ function innerCreateMedium(defaults, middleware) {
6840
6842
  pendingQueue = buffer;
6841
6843
  }
6842
6844
  var executeQueue = function() {
6843
- var cbs2 = pendingQueue;
6845
+ var cbs = pendingQueue;
6844
6846
  pendingQueue = [];
6845
- cbs2.forEach(cb);
6847
+ cbs.forEach(cb);
6846
6848
  };
6847
6849
  var cycle = function() {
6848
6850
  return Promise.resolve().then(executeQueue);
@@ -6903,10 +6905,10 @@ var RemoveScroll = React31.forwardRef(function(props, parentRef) {
6903
6905
  onTouchMoveCapture: nothing
6904
6906
  }), callbacks = _a[0], setCallbacks = _a[1];
6905
6907
  var { forwardProps, children, className, removeScrollBar, enabled, shards, sideCar, noRelative, noIsolation, inert, allowPinchZoom, as: _b } = props, Container = _b === undefined ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
6906
- var SideCar2 = sideCar;
6908
+ var SideCar = sideCar;
6907
6909
  var containerRef = useMergeRefs([ref, parentRef]);
6908
6910
  var containerProps = __assign(__assign({}, rest), callbacks);
6909
- return React31.createElement(React31.Fragment, null, enabled && React31.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }), forwardProps ? React31.cloneElement(React31.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React31.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children));
6911
+ return React31.createElement(React31.Fragment, null, enabled && React31.createElement(SideCar, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }), forwardProps ? React31.cloneElement(React31.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React31.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children));
6910
6912
  });
6911
6913
  RemoveScroll.defaultProps = {
6912
6914
  enabled: true,
@@ -7257,7 +7259,7 @@ function RemoveScrollSideCar(props) {
7257
7259
  var touchStartRef = React34.useRef([0, 0]);
7258
7260
  var activeAxis = React34.useRef();
7259
7261
  var id = React34.useState(idCounter++)[0];
7260
- var Style2 = React34.useState(styleSingleton)[0];
7262
+ var Style = React34.useState(styleSingleton)[0];
7261
7263
  var lastProps = React34.useRef(props);
7262
7264
  React34.useEffect(function() {
7263
7265
  lastProps.current = props;
@@ -7322,7 +7324,7 @@ function RemoveScrollSideCar(props) {
7322
7324
  }, []);
7323
7325
  var shouldPrevent = React34.useCallback(function(_event) {
7324
7326
  var event = _event;
7325
- if (!lockStack.length || lockStack[lockStack.length - 1] !== Style2) {
7327
+ if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
7326
7328
  return;
7327
7329
  }
7328
7330
  var delta = "deltaY" in event ? getDeltaXY(event) : getTouchXY(event);
@@ -7367,7 +7369,7 @@ function RemoveScrollSideCar(props) {
7367
7369
  shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
7368
7370
  }, []);
7369
7371
  React34.useEffect(function() {
7370
- lockStack.push(Style2);
7372
+ lockStack.push(Style);
7371
7373
  props.setCallbacks({
7372
7374
  onScrollCapture: scrollWheel,
7373
7375
  onWheelCapture: scrollWheel,
@@ -7378,7 +7380,7 @@ function RemoveScrollSideCar(props) {
7378
7380
  document.addEventListener("touchstart", scrollTouchStart, nonPassive);
7379
7381
  return function() {
7380
7382
  lockStack = lockStack.filter(function(inst) {
7381
- return inst !== Style2;
7383
+ return inst !== Style;
7382
7384
  });
7383
7385
  document.removeEventListener("wheel", shouldPrevent, nonPassive);
7384
7386
  document.removeEventListener("touchmove", shouldPrevent, nonPassive);
@@ -7386,7 +7388,7 @@ function RemoveScrollSideCar(props) {
7386
7388
  };
7387
7389
  }, []);
7388
7390
  var { removeScrollBar, inert } = props;
7389
- return React34.createElement(React34.Fragment, null, inert ? React34.createElement(Style2, { styles: generateStyle(id) }) : null, removeScrollBar ? React34.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null);
7391
+ return React34.createElement(React34.Fragment, null, inert ? React34.createElement(Style, { styles: generateStyle(id) }) : null, removeScrollBar ? React34.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null);
7390
7392
  }
7391
7393
  function getOutermostShadowParent(node) {
7392
7394
  var shadowParent = null;
@@ -8011,7 +8013,7 @@ function focusFirst3(candidates) {
8011
8013
  }
8012
8014
  __name22(focusFirst3, "focusFirst");
8013
8015
  function wrapArray2(array, startIndex) {
8014
- return array.map((_, index3) => array[(startIndex + index3) % array.length]);
8016
+ return array.map((_, index) => array[(startIndex + index) % array.length]);
8015
8017
  }
8016
8018
  __name22(wrapArray2, "wrapArray");
8017
8019
  function getNextMatch(values, search, currentMatch) {
@@ -8056,7 +8058,7 @@ function whenMouse(handler) {
8056
8058
  __name22(whenMouse, "whenMouse");
8057
8059
  var Root3 = Menu;
8058
8060
  var Anchor2 = MenuAnchor;
8059
- var Portal3 = MenuPortal;
8061
+ var Portal2 = MenuPortal;
8060
8062
  var Content2 = MenuContent;
8061
8063
  var Label = MenuLabel;
8062
8064
  var Item2 = MenuItem;
@@ -8145,7 +8147,7 @@ var DropdownMenuTrigger = /* @__PURE__ */ React37.forwardRef(/* @__PURE__ */ __n
8145
8147
  var DropdownMenuPortal = /* @__PURE__ */ __name23((props) => {
8146
8148
  const { __scopeDropdownMenu, ...portalProps } = props;
8147
8149
  const menuScope = useMenuScope(__scopeDropdownMenu);
8148
- return /* @__PURE__ */ import_jsx_runtime13.jsx(Portal3, { ...menuScope, ...portalProps });
8150
+ return /* @__PURE__ */ import_jsx_runtime13.jsx(Portal2, { ...menuScope, ...portalProps });
8149
8151
  }, "DropdownMenuPortal");
8150
8152
  var CONTENT_NAME3 = "DropdownMenuContent";
8151
8153
  var DropdownMenuContent = /* @__PURE__ */ React37.forwardRef(/* @__PURE__ */ __name23(function DropdownMenuContent2(props, forwardedRef) {
@@ -8252,109 +8254,109 @@ var SubTrigger2 = DropdownMenuSubTrigger;
8252
8254
  var SubContent2 = DropdownMenuSubContent;
8253
8255
 
8254
8256
  // src/components/ui/dropdown-menu.tsx
8255
- var jsx_dev_runtime3 = require("react/jsx-dev-runtime");
8257
+ var jsx_runtime3 = require("react/jsx-runtime");
8256
8258
  var DropdownMenu2 = Root22;
8257
- var DropdownMenuTrigger3 = Trigger;
8258
- var DropdownMenuSubTrigger3 = React38.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(SubTrigger2, {
8259
+ var DropdownMenuTrigger2 = Trigger;
8260
+ var DropdownMenuSubTrigger2 = React38.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsx_runtime3.jsxs(SubTrigger2, {
8259
8261
  ref,
8260
8262
  className: cn("flex cursor-default select-none items-center gap-2 rounded-radius-100 px-2 py-1.5 text-sm outline-none", "focus:bg-surface-raised data-[state=open]:bg-surface-raised", inset && "pl-8", "[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
8261
8263
  ...props,
8262
8264
  children: [
8263
8265
  children,
8264
- /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ChevronRight, {
8266
+ /* @__PURE__ */ jsx_runtime3.jsx(ChevronRight, {
8265
8267
  className: "ml-auto"
8266
- }, undefined, false, undefined, this)
8268
+ })
8267
8269
  ]
8268
- }, undefined, true, undefined, this));
8269
- DropdownMenuSubTrigger3.displayName = SubTrigger2.displayName;
8270
- var DropdownMenuSubContent3 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(SubContent2, {
8270
+ }));
8271
+ DropdownMenuSubTrigger2.displayName = SubTrigger2.displayName;
8272
+ var DropdownMenuSubContent2 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx_runtime3.jsx(SubContent2, {
8271
8273
  ref,
8272
8274
  className: cn("z-50 min-w-[8rem] overflow-hidden rounded-radius-200 border border-line-default", "bg-surface-raised p-1 text-content-default shadow-elevation-2", "data-[state=open]:animate-in data-[state=closed]:animate-out", "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
8273
8275
  ...props
8274
- }, undefined, false, undefined, this));
8275
- DropdownMenuSubContent3.displayName = SubContent2.displayName;
8276
- var DropdownMenuContent3 = React38.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Portal22, {
8277
- children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Content22, {
8276
+ }));
8277
+ DropdownMenuSubContent2.displayName = SubContent2.displayName;
8278
+ var DropdownMenuContent2 = React38.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx_runtime3.jsx(Portal22, {
8279
+ children: /* @__PURE__ */ jsx_runtime3.jsx(Content22, {
8278
8280
  ref,
8279
8281
  sideOffset,
8280
8282
  className: cn("z-50 min-w-[8rem] overflow-hidden rounded-radius-200 border border-line-default", "bg-surface-raised p-1 text-content-default shadow-elevation-2", "data-[state=open]:animate-in data-[state=closed]:animate-out", "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
8281
8283
  ...props
8282
- }, undefined, false, undefined, this)
8283
- }, undefined, false, undefined, this));
8284
- DropdownMenuContent3.displayName = Content22.displayName;
8285
- var DropdownMenuItem3 = React38.forwardRef(({ className, inset, destructive, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Item22, {
8284
+ })
8285
+ }));
8286
+ DropdownMenuContent2.displayName = Content22.displayName;
8287
+ var DropdownMenuItem2 = React38.forwardRef(({ className, inset, destructive, ...props }, ref) => /* @__PURE__ */ jsx_runtime3.jsx(Item22, {
8286
8288
  ref,
8287
8289
  className: cn("relative flex cursor-default select-none items-center gap-2 rounded-radius-100 px-2 py-1.5 text-sm outline-none transition-colors", "data-[highlighted]:bg-surface-overlay data-[highlighted]:text-content-default", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", "[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", inset && "pl-8", destructive && "text-status-danger-bold focus:text-status-danger-bold", className),
8288
8290
  ...props
8289
- }, undefined, false, undefined, this));
8290
- DropdownMenuItem3.displayName = Item22.displayName;
8291
- var DropdownMenuCheckboxItem3 = React38.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(CheckboxItem2, {
8291
+ }));
8292
+ DropdownMenuItem2.displayName = Item22.displayName;
8293
+ var DropdownMenuCheckboxItem2 = React38.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsx_runtime3.jsxs(CheckboxItem2, {
8292
8294
  ref,
8293
8295
  className: cn("relative flex cursor-default select-none items-center rounded-radius-100 py-1.5 pl-8 pr-2 text-sm outline-none transition-colors", "focus:bg-surface-overlay focus:text-content-default", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className),
8294
8296
  checked,
8295
8297
  ...props,
8296
8298
  children: [
8297
- /* @__PURE__ */ jsx_dev_runtime3.jsxDEV("span", {
8299
+ /* @__PURE__ */ jsx_runtime3.jsx("span", {
8298
8300
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
8299
- children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ItemIndicator2, {
8300
- children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Check, {
8301
+ children: /* @__PURE__ */ jsx_runtime3.jsx(ItemIndicator2, {
8302
+ children: /* @__PURE__ */ jsx_runtime3.jsx(Check, {
8301
8303
  className: "h-4 w-4"
8302
- }, undefined, false, undefined, this)
8303
- }, undefined, false, undefined, this)
8304
- }, undefined, false, undefined, this),
8304
+ })
8305
+ })
8306
+ }),
8305
8307
  children
8306
8308
  ]
8307
- }, undefined, true, undefined, this));
8308
- DropdownMenuCheckboxItem3.displayName = CheckboxItem2.displayName;
8309
- var DropdownMenuRadioItem3 = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(RadioItem2, {
8309
+ }));
8310
+ DropdownMenuCheckboxItem2.displayName = CheckboxItem2.displayName;
8311
+ var DropdownMenuRadioItem2 = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx_runtime3.jsxs(RadioItem2, {
8310
8312
  ref,
8311
8313
  className: cn("relative flex cursor-default select-none items-center rounded-radius-100 py-1.5 pl-8 pr-2 text-sm outline-none transition-colors", "focus:bg-surface-overlay focus:text-content-default", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className),
8312
8314
  ...props,
8313
8315
  children: [
8314
- /* @__PURE__ */ jsx_dev_runtime3.jsxDEV("span", {
8316
+ /* @__PURE__ */ jsx_runtime3.jsx("span", {
8315
8317
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
8316
- children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ItemIndicator2, {
8317
- children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Circle, {
8318
+ children: /* @__PURE__ */ jsx_runtime3.jsx(ItemIndicator2, {
8319
+ children: /* @__PURE__ */ jsx_runtime3.jsx(Circle, {
8318
8320
  className: "h-2 w-2 fill-current"
8319
- }, undefined, false, undefined, this)
8320
- }, undefined, false, undefined, this)
8321
- }, undefined, false, undefined, this),
8321
+ })
8322
+ })
8323
+ }),
8322
8324
  children
8323
8325
  ]
8324
- }, undefined, true, undefined, this));
8325
- DropdownMenuRadioItem3.displayName = RadioItem2.displayName;
8326
- var DropdownMenuLabel3 = React38.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Label2, {
8326
+ }));
8327
+ DropdownMenuRadioItem2.displayName = RadioItem2.displayName;
8328
+ var DropdownMenuLabel2 = React38.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx_runtime3.jsx(Label2, {
8327
8329
  ref,
8328
8330
  className: cn("px-2 py-1.5 text-xs font-semibold text-content-subtle", inset && "pl-8", className),
8329
8331
  ...props
8330
- }, undefined, false, undefined, this));
8331
- DropdownMenuLabel3.displayName = Label2.displayName;
8332
- var DropdownMenuSeparator3 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Separator2, {
8332
+ }));
8333
+ DropdownMenuLabel2.displayName = Label2.displayName;
8334
+ var DropdownMenuSeparator2 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx_runtime3.jsx(Separator2, {
8333
8335
  ref,
8334
8336
  className: cn("-mx-1 my-1 h-px bg-line-default", className),
8335
8337
  ...props
8336
- }, undefined, false, undefined, this));
8337
- DropdownMenuSeparator3.displayName = Separator2.displayName;
8338
+ }));
8339
+ DropdownMenuSeparator2.displayName = Separator2.displayName;
8338
8340
  var DropdownMenuShortcut = ({
8339
8341
  className,
8340
8342
  ...props
8341
- }) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV("span", {
8343
+ }) => /* @__PURE__ */ jsx_runtime3.jsx("span", {
8342
8344
  className: cn("ml-auto text-xs tracking-widest text-content-subtle", className),
8343
8345
  ...props
8344
- }, undefined, false, undefined, this);
8346
+ });
8345
8347
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
8346
8348
 
8347
8349
  // src/components/ui/separator.tsx
8348
- var React40 = __toESM(require("react"));
8350
+ var React40 = __toESM(require("react"), 1);
8349
8351
 
8350
8352
  // ../../node_modules/.pnpm/@radix-ui+react-separator@1.1.15_@types+react-dom@18.3.7_@types+react@18.3.31__@types+r_4a12feba46caccd3ef696040f49a7ac3/node_modules/@radix-ui/react-separator/dist/index.mjs
8351
- var React39 = __toESM(require("react"));
8353
+ var React39 = __toESM(require("react"), 1);
8352
8354
  var import_jsx_runtime14 = require("react/jsx-runtime");
8353
8355
  var __defProp25 = Object.defineProperty;
8354
8356
  var __name24 = (target, value) => __defProp25(target, "name", { value, configurable: true });
8355
8357
  var DEFAULT_ORIENTATION = "horizontal";
8356
8358
  var ORIENTATIONS = ["horizontal", "vertical"];
8357
- var Separator3 = /* @__PURE__ */ React39.forwardRef(/* @__PURE__ */ __name24(function Separator22(props, forwardedRef) {
8359
+ var Separator3 = /* @__PURE__ */ React39.forwardRef(/* @__PURE__ */ __name24(function Separator2(props, forwardedRef) {
8358
8360
  const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
8359
8361
  const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
8360
8362
  const ariaOrientation = orientation === "vertical" ? orientation : undefined;
@@ -8373,171 +8375,171 @@ __name24(isValidOrientation, "isValidOrientation");
8373
8375
  var Root4 = Separator3;
8374
8376
 
8375
8377
  // src/components/ui/separator.tsx
8376
- var jsx_dev_runtime4 = require("react/jsx-dev-runtime");
8377
- var Separator5 = React40.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Root4, {
8378
+ var jsx_runtime4 = require("react/jsx-runtime");
8379
+ var Separator4 = React40.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx_runtime4.jsx(Root4, {
8378
8380
  ref,
8379
8381
  decorative,
8380
8382
  orientation,
8381
8383
  className: cn("shrink-0 bg-line-default", orientation === "horizontal" ? "h-px w-full" : "h-full w-px", className),
8382
8384
  ...props
8383
- }, undefined, false, undefined, this));
8384
- Separator5.displayName = Root4.displayName;
8385
+ }));
8386
+ Separator4.displayName = Root4.displayName;
8385
8387
 
8386
8388
  // src/components/Header.tsx
8387
- var jsx_dev_runtime5 = require("react/jsx-dev-runtime");
8389
+ var jsx_runtime5 = require("react/jsx-runtime");
8388
8390
  function getInitials(name) {
8389
8391
  return name.split(" ").filter(Boolean).slice(0, 2).map((w) => w[0]?.toUpperCase() ?? "").join("");
8390
8392
  }
8391
8393
  function IconButton({ label, children, className, ...props }) {
8392
- return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV("button", {
8394
+ return /* @__PURE__ */ jsx_runtime5.jsx("button", {
8393
8395
  type: "button",
8394
8396
  "aria-label": label,
8395
8397
  className: cn("flex h-8 w-8 items-center justify-center rounded-md", "text-content-subtle transition-colors", "hover:bg-surface-raised hover:text-content-default", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary", className),
8396
8398
  ...props,
8397
8399
  children
8398
- }, undefined, false, undefined, this);
8400
+ });
8399
8401
  }
8400
8402
  function UserMenu({ user, tenant }) {
8401
- return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(DropdownMenu2, {
8403
+ return /* @__PURE__ */ jsx_runtime5.jsxs(DropdownMenu2, {
8402
8404
  children: [
8403
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(DropdownMenuTrigger3, {
8405
+ /* @__PURE__ */ jsx_runtime5.jsx(DropdownMenuTrigger2, {
8404
8406
  asChild: true,
8405
- children: /* @__PURE__ */ jsx_dev_runtime5.jsxDEV("button", {
8407
+ children: /* @__PURE__ */ jsx_runtime5.jsx("button", {
8406
8408
  type: "button",
8407
8409
  "aria-label": `User menu for ${user.name}`,
8408
8410
  className: cn("rounded-full outline-none", "ring-offset-surface-raised focus-visible:ring-2 focus-visible:ring-action-primary focus-visible:ring-offset-2", "transition-opacity hover:opacity-80"),
8409
- children: /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(Avatar3, {
8411
+ children: /* @__PURE__ */ jsx_runtime5.jsxs(Avatar2, {
8410
8412
  className: "h-8 w-8",
8411
8413
  children: [
8412
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(AvatarImage3, {
8414
+ /* @__PURE__ */ jsx_runtime5.jsx(AvatarImage2, {
8413
8415
  src: user.avatar,
8414
8416
  alt: user.name
8415
- }, undefined, false, undefined, this),
8416
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(AvatarFallback3, {
8417
+ }),
8418
+ /* @__PURE__ */ jsx_runtime5.jsx(AvatarFallback2, {
8417
8419
  className: "text-xs",
8418
8420
  children: getInitials(user.name)
8419
- }, undefined, false, undefined, this)
8421
+ })
8420
8422
  ]
8421
- }, undefined, true, undefined, this)
8422
- }, undefined, false, undefined, this)
8423
- }, undefined, false, undefined, this),
8424
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(DropdownMenuContent3, {
8423
+ })
8424
+ })
8425
+ }),
8426
+ /* @__PURE__ */ jsx_runtime5.jsxs(DropdownMenuContent2, {
8425
8427
  align: "end",
8426
8428
  className: "w-56",
8427
8429
  children: [
8428
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(DropdownMenuLabel3, {
8430
+ /* @__PURE__ */ jsx_runtime5.jsx(DropdownMenuLabel2, {
8429
8431
  className: "font-normal",
8430
- children: /* @__PURE__ */ jsx_dev_runtime5.jsxDEV("div", {
8432
+ children: /* @__PURE__ */ jsx_runtime5.jsxs("div", {
8431
8433
  className: "flex flex-col gap-0.5",
8432
8434
  children: [
8433
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV("span", {
8435
+ /* @__PURE__ */ jsx_runtime5.jsx("span", {
8434
8436
  className: "text-sm font-semibold text-content-default",
8435
8437
  children: user.name
8436
- }, undefined, false, undefined, this),
8437
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV("span", {
8438
+ }),
8439
+ /* @__PURE__ */ jsx_runtime5.jsx("span", {
8438
8440
  className: "text-xs text-content-subtle truncate",
8439
8441
  children: user.email
8440
- }, undefined, false, undefined, this)
8442
+ })
8441
8443
  ]
8442
- }, undefined, true, undefined, this)
8443
- }, undefined, false, undefined, this),
8444
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(DropdownMenuSeparator3, {}, undefined, false, undefined, this),
8445
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(DropdownMenuItem3, {
8444
+ })
8445
+ }),
8446
+ /* @__PURE__ */ jsx_runtime5.jsx(DropdownMenuSeparator2, {}),
8447
+ /* @__PURE__ */ jsx_runtime5.jsx(DropdownMenuItem2, {
8446
8448
  asChild: true,
8447
- children: /* @__PURE__ */ jsx_dev_runtime5.jsxDEV("a", {
8449
+ children: /* @__PURE__ */ jsx_runtime5.jsxs("a", {
8448
8450
  href: tenant.communityUrl,
8449
8451
  target: "_blank",
8450
8452
  rel: "noreferrer",
8451
8453
  className: "cursor-pointer",
8452
8454
  children: [
8453
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(ExternalLink, {
8455
+ /* @__PURE__ */ jsx_runtime5.jsx(ExternalLink, {
8454
8456
  className: "h-4 w-4"
8455
- }, undefined, false, undefined, this),
8457
+ }),
8456
8458
  "Open Community"
8457
8459
  ]
8458
- }, undefined, true, undefined, this)
8459
- }, undefined, false, undefined, this),
8460
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(DropdownMenuItem3, {
8460
+ })
8461
+ }),
8462
+ /* @__PURE__ */ jsx_runtime5.jsx(DropdownMenuItem2, {
8461
8463
  asChild: true,
8462
- children: /* @__PURE__ */ jsx_dev_runtime5.jsxDEV("a", {
8464
+ children: /* @__PURE__ */ jsx_runtime5.jsxs("a", {
8463
8465
  href: "/settings/profile",
8464
8466
  className: "cursor-pointer",
8465
8467
  children: [
8466
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(Settings, {
8468
+ /* @__PURE__ */ jsx_runtime5.jsx(Settings, {
8467
8469
  className: "h-4 w-4"
8468
- }, undefined, false, undefined, this),
8470
+ }),
8469
8471
  "Settings"
8470
8472
  ]
8471
- }, undefined, true, undefined, this)
8472
- }, undefined, false, undefined, this),
8473
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(DropdownMenuSeparator3, {}, undefined, false, undefined, this),
8474
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(DropdownMenuItem3, {
8473
+ })
8474
+ }),
8475
+ /* @__PURE__ */ jsx_runtime5.jsx(DropdownMenuSeparator2, {}),
8476
+ /* @__PURE__ */ jsx_runtime5.jsx(DropdownMenuItem2, {
8475
8477
  asChild: true,
8476
8478
  destructive: true,
8477
- children: /* @__PURE__ */ jsx_dev_runtime5.jsxDEV("a", {
8479
+ children: /* @__PURE__ */ jsx_runtime5.jsxs("a", {
8478
8480
  href: "/member/logout",
8479
8481
  className: "cursor-pointer",
8480
8482
  children: [
8481
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(LogOut, {
8483
+ /* @__PURE__ */ jsx_runtime5.jsx(LogOut, {
8482
8484
  className: "h-4 w-4"
8483
- }, undefined, false, undefined, this),
8485
+ }),
8484
8486
  "Log out"
8485
8487
  ]
8486
- }, undefined, true, undefined, this)
8487
- }, undefined, false, undefined, this)
8488
+ })
8489
+ })
8488
8490
  ]
8489
- }, undefined, true, undefined, this)
8491
+ })
8490
8492
  ]
8491
- }, undefined, true, undefined, this);
8493
+ });
8492
8494
  }
8493
- var Header = React41.memo(function Header2({ user, tenant, rightSlot }) {
8494
- return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV("header", {
8495
+ var Header = React41.memo(function Header({ user, tenant, rightSlot }) {
8496
+ return /* @__PURE__ */ jsx_runtime5.jsxs("header", {
8495
8497
  className: cn("app-shell-header", "flex h-12 shrink-0 items-center justify-end gap-1 px-4", "border-b border-line-default bg-surface-default", "z-10"),
8496
8498
  children: [
8497
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(IconButton, {
8499
+ /* @__PURE__ */ jsx_runtime5.jsx(IconButton, {
8498
8500
  label: "Members online",
8499
- children: /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(Users, {
8501
+ children: /* @__PURE__ */ jsx_runtime5.jsx(Users, {
8500
8502
  className: "h-4 w-4"
8501
- }, undefined, false, undefined, this)
8502
- }, undefined, false, undefined, this),
8503
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(IconButton, {
8503
+ })
8504
+ }),
8505
+ /* @__PURE__ */ jsx_runtime5.jsx(IconButton, {
8504
8506
  label: "Notifications",
8505
- children: /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(Bell, {
8507
+ children: /* @__PURE__ */ jsx_runtime5.jsx(Bell, {
8506
8508
  className: "h-4 w-4"
8507
- }, undefined, false, undefined, this)
8508
- }, undefined, false, undefined, this),
8509
- rightSlot != null && /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(jsx_dev_runtime5.Fragment, {
8509
+ })
8510
+ }),
8511
+ rightSlot != null && /* @__PURE__ */ jsx_runtime5.jsxs(jsx_runtime5.Fragment, {
8510
8512
  children: [
8511
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(Separator5, {
8513
+ /* @__PURE__ */ jsx_runtime5.jsx(Separator4, {
8512
8514
  orientation: "vertical",
8513
8515
  className: "mx-1 h-4"
8514
- }, undefined, false, undefined, this),
8516
+ }),
8515
8517
  rightSlot
8516
8518
  ]
8517
- }, undefined, true, undefined, this),
8518
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(Separator5, {
8519
+ }),
8520
+ /* @__PURE__ */ jsx_runtime5.jsx(Separator4, {
8519
8521
  orientation: "vertical",
8520
8522
  className: "mx-1 h-4"
8521
- }, undefined, false, undefined, this),
8522
- /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(UserMenu, {
8523
+ }),
8524
+ /* @__PURE__ */ jsx_runtime5.jsx(UserMenu, {
8523
8525
  user,
8524
8526
  tenant
8525
- }, undefined, false, undefined, this)
8527
+ })
8526
8528
  ]
8527
- }, undefined, true, undefined, this);
8529
+ });
8528
8530
  });
8529
8531
 
8530
8532
  // src/components/SideNavigation.tsx
8531
- var React51 = __toESM(require("react"));
8533
+ var React51 = __toESM(require("react"), 1);
8532
8534
 
8533
8535
  // src/components/ui/accordion.tsx
8534
- var React44 = __toESM(require("react"));
8536
+ var React44 = __toESM(require("react"), 1);
8535
8537
 
8536
8538
  // ../../node_modules/.pnpm/@radix-ui+react-accordion@1.2.20_@types+react-dom@18.3.7_@types+react@18.3.31__@types+r_6e1de0feb05f9758311ca62a4562cf78/node_modules/@radix-ui/react-accordion/dist/index.mjs
8537
- var React43 = __toESM(require("react"));
8539
+ var React43 = __toESM(require("react"), 1);
8538
8540
 
8539
8541
  // ../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.20_@types+react-dom@18.3.7_@types+react@18.3.31__@types_95df58d005192586eb1c943efded7427/node_modules/@radix-ui/react-collapsible/dist/index.mjs
8540
- var React42 = __toESM(require("react"));
8542
+ var React42 = __toESM(require("react"), 1);
8541
8543
  var import_jsx_runtime15 = require("react/jsx-runtime");
8542
8544
  "use client";
8543
8545
  var __defProp26 = Object.defineProperty;
@@ -8651,7 +8653,7 @@ function getState(open) {
8651
8653
  return open ? "open" : "closed";
8652
8654
  }
8653
8655
  __name25(getState, "getState");
8654
- var Root6 = Collapsible;
8656
+ var Root5 = Collapsible;
8655
8657
  var Trigger2 = CollapsibleTrigger;
8656
8658
  var Content3 = CollapsibleContent;
8657
8659
 
@@ -8821,7 +8823,7 @@ var AccordionItem = /* @__PURE__ */ React43.forwardRef(/* @__PURE__ */ __name26(
8821
8823
  open,
8822
8824
  disabled,
8823
8825
  triggerId,
8824
- children: /* @__PURE__ */ import_jsx_runtime16.jsx(Root6, {
8826
+ children: /* @__PURE__ */ import_jsx_runtime16.jsx(Root5, {
8825
8827
  "data-orientation": accordionContext.orientation,
8826
8828
  "data-state": getState2(open),
8827
8829
  ...collapsibleScope,
@@ -8894,47 +8896,47 @@ function getState2(open) {
8894
8896
  __name26(getState2, "getState");
8895
8897
  var Root23 = Accordion;
8896
8898
  var Item3 = AccordionItem;
8897
- var Header3 = AccordionHeader;
8899
+ var Header2 = AccordionHeader;
8898
8900
  var Trigger22 = AccordionTrigger;
8899
8901
  var Content23 = AccordionContent;
8900
8902
 
8901
8903
  // src/components/ui/accordion.tsx
8902
- var jsx_dev_runtime6 = require("react/jsx-dev-runtime");
8903
- var Accordion3 = Root23;
8904
- var AccordionItem3 = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Item3, {
8904
+ var jsx_runtime6 = require("react/jsx-runtime");
8905
+ var Accordion2 = Root23;
8906
+ var AccordionItem2 = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx_runtime6.jsx(Item3, {
8905
8907
  ref,
8906
8908
  className: cn(className),
8907
8909
  ...props
8908
- }, undefined, false, undefined, this));
8909
- AccordionItem3.displayName = "AccordionItem";
8910
- var AccordionTrigger3 = React44.forwardRef(({ className, children, hideChevron = false, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Header3, {
8910
+ }));
8911
+ AccordionItem2.displayName = "AccordionItem";
8912
+ var AccordionTrigger2 = React44.forwardRef(({ className, children, hideChevron = false, ...props }, ref) => /* @__PURE__ */ jsx_runtime6.jsx(Header2, {
8911
8913
  className: "flex",
8912
- children: /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Trigger22, {
8914
+ children: /* @__PURE__ */ jsx_runtime6.jsxs(Trigger22, {
8913
8915
  ref,
8914
8916
  className: cn("flex flex-1 items-center gap-2 text-sm font-medium outline-none transition-all", "[&[data-state=open]>svg.accordion-chevron]:rotate-180", className),
8915
8917
  ...props,
8916
8918
  children: [
8917
8919
  children,
8918
- !hideChevron && /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(ChevronDown, {
8920
+ !hideChevron && /* @__PURE__ */ jsx_runtime6.jsx(ChevronDown, {
8919
8921
  className: "accordion-chevron ml-auto h-3.5 w-3.5 shrink-0 text-content-subtle/60 transition-transform duration-150"
8920
- }, undefined, false, undefined, this)
8922
+ })
8921
8923
  ]
8922
- }, undefined, true, undefined, this)
8923
- }, undefined, false, undefined, this));
8924
- AccordionTrigger3.displayName = "AccordionTrigger";
8925
- var AccordionContent3 = React44.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Content23, {
8924
+ })
8925
+ }));
8926
+ AccordionTrigger2.displayName = "AccordionTrigger";
8927
+ var AccordionContent2 = React44.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx_runtime6.jsx(Content23, {
8926
8928
  ref,
8927
8929
  className: "overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
8928
8930
  ...props,
8929
- children: /* @__PURE__ */ jsx_dev_runtime6.jsxDEV("div", {
8931
+ children: /* @__PURE__ */ jsx_runtime6.jsx("div", {
8930
8932
  className: cn("pb-1 pt-0.5", className),
8931
8933
  children
8932
- }, undefined, false, undefined, this)
8933
- }, undefined, false, undefined, this));
8934
- AccordionContent3.displayName = "AccordionContent";
8934
+ })
8935
+ }));
8936
+ AccordionContent2.displayName = "AccordionContent";
8935
8937
 
8936
8938
  // src/components/ui/button.tsx
8937
- var React45 = __toESM(require("react"));
8939
+ var React45 = __toESM(require("react"), 1);
8938
8940
 
8939
8941
  // ../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
8940
8942
  var falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
@@ -8962,8 +8964,8 @@ var cva = (base, config) => (props) => {
8962
8964
  }, {});
8963
8965
  const getCompoundVariantClassNames = config === null || config === undefined ? undefined : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === undefined ? undefined : _config_compoundVariants.reduce((acc, param) => {
8964
8966
  let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
8965
- return Object.entries(compoundVariantOptions).every((param2) => {
8966
- let [key, value] = param2;
8967
+ return Object.entries(compoundVariantOptions).every((param) => {
8968
+ let [key, value] = param;
8967
8969
  return Array.isArray(value) ? value.includes({
8968
8970
  ...defaultVariants,
8969
8971
  ...propsWithoutUndefined
@@ -8981,7 +8983,7 @@ var cva = (base, config) => (props) => {
8981
8983
  };
8982
8984
 
8983
8985
  // src/components/ui/button.tsx
8984
- var jsx_dev_runtime7 = require("react/jsx-dev-runtime");
8986
+ var jsx_runtime7 = require("react/jsx-runtime");
8985
8987
  var buttonVariants = cva([
8986
8988
  "inline-flex items-center justify-center gap-2 whitespace-nowrap",
8987
8989
  "rounded-radius-100 text-sm font-medium",
@@ -9010,32 +9012,32 @@ var buttonVariants = cva([
9010
9012
  size: "default"
9011
9013
  }
9012
9014
  });
9013
- var Button = React45.forwardRef(({ className, variant, size: size4, asChild = false, ...props }, ref) => {
9015
+ var Button = React45.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
9014
9016
  const Comp = asChild ? Slot : "button";
9015
- return /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Comp, {
9016
- className: cn(buttonVariants({ variant, size: size4, className })),
9017
+ return /* @__PURE__ */ jsx_runtime7.jsx(Comp, {
9018
+ className: cn(buttonVariants({ variant, size, className })),
9017
9019
  ref,
9018
9020
  ...props
9019
- }, undefined, false, undefined, this);
9021
+ });
9020
9022
  });
9021
9023
  Button.displayName = "Button";
9022
9024
 
9023
9025
  // src/components/ui/scroll-area.tsx
9024
- var React47 = __toESM(require("react"));
9026
+ var React47 = __toESM(require("react"), 1);
9025
9027
 
9026
9028
  // ../../node_modules/.pnpm/@radix-ui+react-scroll-area@1.2.18_@types+react-dom@18.3.7_@types+react@18.3.31__@types_44cf8b004accc7732570bde73f91c617/node_modules/@radix-ui/react-scroll-area/dist/index.mjs
9027
- var React210 = __toESM(require("react"));
9029
+ var React210 = __toESM(require("react"), 1);
9028
9030
 
9029
9031
  // ../../node_modules/.pnpm/@radix-ui+number@1.1.3/node_modules/@radix-ui/number/dist/index.mjs
9030
9032
  var __defProp28 = Object.defineProperty;
9031
9033
  var __name27 = (target, value) => __defProp28(target, "name", { value, configurable: true });
9032
- function clamp2(value, [min2, max2]) {
9033
- return Math.min(max2, Math.max(min2, value));
9034
+ function clamp2(value, [min, max]) {
9035
+ return Math.min(max, Math.max(min, value));
9034
9036
  }
9035
9037
  __name27(clamp2, "clamp");
9036
9038
 
9037
9039
  // ../../node_modules/.pnpm/@radix-ui+react-scroll-area@1.2.18_@types+react-dom@18.3.7_@types+react@18.3.31__@types_44cf8b004accc7732570bde73f91c617/node_modules/@radix-ui/react-scroll-area/dist/index.mjs
9038
- var React46 = __toESM(require("react"));
9040
+ var React46 = __toESM(require("react"), 1);
9039
9041
  var import_jsx_runtime17 = require("react/jsx-runtime");
9040
9042
  "use client";
9041
9043
  var __defProp29 = Object.defineProperty;
@@ -9209,7 +9211,7 @@ var ScrollAreaScrollbarScroll = /* @__PURE__ */ React210.forwardRef(/* @__PURE__
9209
9211
  const scrollDirection = isHorizontal ? "scrollLeft" : "scrollTop";
9210
9212
  if (viewport) {
9211
9213
  let prevScrollPos = viewport[scrollDirection];
9212
- const handleScroll2 = /* @__PURE__ */ __name28(() => {
9214
+ const handleScroll = /* @__PURE__ */ __name28(() => {
9213
9215
  const scrollPos = viewport[scrollDirection];
9214
9216
  const hasScrollInDirectionChanged = prevScrollPos !== scrollPos;
9215
9217
  if (hasScrollInDirectionChanged) {
@@ -9218,8 +9220,8 @@ var ScrollAreaScrollbarScroll = /* @__PURE__ */ React210.forwardRef(/* @__PURE__
9218
9220
  }
9219
9221
  prevScrollPos = scrollPos;
9220
9222
  }, "handleScroll");
9221
- viewport.addEventListener("scroll", handleScroll2);
9222
- return () => viewport.removeEventListener("scroll", handleScroll2);
9223
+ viewport.addEventListener("scroll", handleScroll);
9224
+ return () => viewport.removeEventListener("scroll", handleScroll);
9223
9225
  }
9224
9226
  }, [context.viewport, isHorizontal, send, debounceScrollEnd]);
9225
9227
  return /* @__PURE__ */ import_jsx_runtime17.jsx(Presence, { present: forceMount || state !== "hidden", children: /* @__PURE__ */ import_jsx_runtime17.jsx(ScrollAreaScrollbarVisible, {
@@ -9281,8 +9283,8 @@ var ScrollAreaScrollbarVisible = /* @__PURE__ */ React210.forwardRef(/* @__PURE_
9281
9283
  onThumbPositionChange: () => {
9282
9284
  if (context.viewport && thumbRef.current) {
9283
9285
  const scrollPos = context.viewport.scrollLeft;
9284
- const offset4 = getThumbOffsetFromScroll(scrollPos, sizes, context.dir);
9285
- thumbRef.current.style.transform = `translate3d(${offset4}px, 0, 0)`;
9286
+ const offset = getThumbOffsetFromScroll(scrollPos, sizes, context.dir);
9287
+ thumbRef.current.style.transform = `translate3d(${offset}px, 0, 0)`;
9286
9288
  }
9287
9289
  },
9288
9290
  onWheelScroll: (scrollPos) => {
@@ -9303,8 +9305,8 @@ var ScrollAreaScrollbarVisible = /* @__PURE__ */ React210.forwardRef(/* @__PURE_
9303
9305
  onThumbPositionChange: () => {
9304
9306
  if (context.viewport && thumbRef.current) {
9305
9307
  const scrollPos = context.viewport.scrollTop;
9306
- const offset4 = getThumbOffsetFromScroll(scrollPos, sizes);
9307
- thumbRef.current.style.transform = `translate3d(0, ${offset4}px, 0)`;
9308
+ const offset = getThumbOffsetFromScroll(scrollPos, sizes);
9309
+ thumbRef.current.style.transform = `translate3d(0, ${offset}px, 0)`;
9308
9310
  }
9309
9311
  },
9310
9312
  onWheelScroll: (scrollPos) => {
@@ -9324,7 +9326,7 @@ var ScrollAreaScrollbarX = /* @__PURE__ */ React210.forwardRef(/* @__PURE__ */ _
9324
9326
  const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);
9325
9327
  const [computedStyle, setComputedStyle] = React210.useState();
9326
9328
  const ref = React210.useRef(null);
9327
- const composeRefs2 = useComposedRefs(forwardedRef, ref, context.onScrollbarXChange);
9329
+ const composeRefs = useComposedRefs(forwardedRef, ref, context.onScrollbarXChange);
9328
9330
  React210.useEffect(() => {
9329
9331
  if (ref.current)
9330
9332
  setComputedStyle(getComputedStyle(ref.current));
@@ -9332,7 +9334,7 @@ var ScrollAreaScrollbarX = /* @__PURE__ */ React210.forwardRef(/* @__PURE__ */ _
9332
9334
  return /* @__PURE__ */ import_jsx_runtime17.jsx(ScrollAreaScrollbarImpl, {
9333
9335
  "data-orientation": "horizontal",
9334
9336
  ...scrollbarProps,
9335
- ref: composeRefs2,
9337
+ ref: composeRefs,
9336
9338
  sizes,
9337
9339
  style: {
9338
9340
  bottom: 0,
@@ -9372,7 +9374,7 @@ var ScrollAreaScrollbarY = /* @__PURE__ */ React210.forwardRef(/* @__PURE__ */ _
9372
9374
  const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);
9373
9375
  const [computedStyle, setComputedStyle] = React210.useState();
9374
9376
  const ref = React210.useRef(null);
9375
- const composeRefs2 = useComposedRefs(forwardedRef, ref, context.onScrollbarYChange);
9377
+ const composeRefs = useComposedRefs(forwardedRef, ref, context.onScrollbarYChange);
9376
9378
  React210.useEffect(() => {
9377
9379
  if (ref.current)
9378
9380
  setComputedStyle(getComputedStyle(ref.current));
@@ -9380,7 +9382,7 @@ var ScrollAreaScrollbarY = /* @__PURE__ */ React210.forwardRef(/* @__PURE__ */ _
9380
9382
  return /* @__PURE__ */ import_jsx_runtime17.jsx(ScrollAreaScrollbarImpl, {
9381
9383
  "data-orientation": "vertical",
9382
9384
  ...scrollbarProps,
9383
- ref: composeRefs2,
9385
+ ref: composeRefs,
9384
9386
  sizes,
9385
9387
  style: {
9386
9388
  top: 0,
@@ -9433,7 +9435,7 @@ var ScrollAreaScrollbarImpl = /* @__PURE__ */ React210.forwardRef(/* @__PURE__ *
9433
9435
  } = props;
9434
9436
  const context = useScrollAreaContext(SCROLLBAR_NAME, __scopeScrollArea);
9435
9437
  const [scrollbar, setScrollbar] = React210.useState(null);
9436
- const composeRefs2 = useComposedRefs(forwardedRef, setScrollbar);
9438
+ const composeRefs = useComposedRefs(forwardedRef, setScrollbar);
9437
9439
  const rectRef = React210.useRef(null);
9438
9440
  const prevWebkitUserSelectRef = React210.useRef("");
9439
9441
  const viewport = context.viewport;
@@ -9472,7 +9474,7 @@ var ScrollAreaScrollbarImpl = /* @__PURE__ */ React210.forwardRef(/* @__PURE__ *
9472
9474
  onThumbPointerDown: useCallbackRef(onThumbPointerDown),
9473
9475
  children: /* @__PURE__ */ import_jsx_runtime17.jsx(Primitive.div, {
9474
9476
  ...scrollbarProps,
9475
- ref: composeRefs2,
9477
+ ref: composeRefs,
9476
9478
  style: { position: "absolute", ...scrollbarProps.style },
9477
9479
  onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {
9478
9480
  const mainPointer = 0;
@@ -9523,7 +9525,7 @@ var ScrollAreaThumbImpl = /* @__PURE__ */ React210.forwardRef(/* @__PURE__ */ __
9523
9525
  React210.useEffect(() => {
9524
9526
  const viewport = scrollAreaContext.viewport;
9525
9527
  if (viewport) {
9526
- const handleScroll2 = /* @__PURE__ */ __name28(() => {
9528
+ const handleScroll = /* @__PURE__ */ __name28(() => {
9527
9529
  debounceScrollEnd();
9528
9530
  if (!removeUnlinkedScrollListenerRef.current) {
9529
9531
  const listener = addUnlinkedScrollListener(viewport, onThumbPositionChange);
@@ -9532,8 +9534,8 @@ var ScrollAreaThumbImpl = /* @__PURE__ */ React210.forwardRef(/* @__PURE__ */ __
9532
9534
  }
9533
9535
  }, "handleScroll");
9534
9536
  onThumbPositionChange();
9535
- viewport.addEventListener("scroll", handleScroll2);
9536
- return () => viewport.removeEventListener("scroll", handleScroll2);
9537
+ viewport.addEventListener("scroll", handleScroll);
9538
+ return () => viewport.removeEventListener("scroll", handleScroll);
9537
9539
  }
9538
9540
  }, [scrollAreaContext.viewport, debounceScrollEnd, onThumbPositionChange]);
9539
9541
  return /* @__PURE__ */ import_jsx_runtime17.jsx(Primitive.div, {
@@ -9618,9 +9620,9 @@ __name28(getThumbSize, "getThumbSize");
9618
9620
  function getScrollPositionFromPointer(pointerPos, pointerOffset, sizes, dir = "ltr") {
9619
9621
  const thumbSizePx = getThumbSize(sizes);
9620
9622
  const thumbCenter = thumbSizePx / 2;
9621
- const offset4 = pointerOffset || thumbCenter;
9622
- const thumbOffsetFromEnd = thumbSizePx - offset4;
9623
- const minPointerPos = sizes.scrollbar.paddingStart + offset4;
9623
+ const offset = pointerOffset || thumbCenter;
9624
+ const thumbOffsetFromEnd = thumbSizePx - offset;
9625
+ const minPointerPos = sizes.scrollbar.paddingStart + offset;
9624
9626
  const maxPointerPos = sizes.scrollbar.size - sizes.scrollbar.paddingEnd - thumbOffsetFromEnd;
9625
9627
  const maxScrollPos = sizes.content - sizes.viewport;
9626
9628
  const scrollRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];
@@ -9695,45 +9697,45 @@ function useResizeObserver(element, onResize) {
9695
9697
  }, [element, handleResize]);
9696
9698
  }
9697
9699
  __name28(useResizeObserver, "useResizeObserver");
9698
- var Root7 = ScrollArea;
9700
+ var Root6 = ScrollArea;
9699
9701
  var Viewport = ScrollAreaViewport;
9700
9702
  var Corner = ScrollAreaCorner;
9701
9703
 
9702
9704
  // src/components/ui/scroll-area.tsx
9703
- var jsx_dev_runtime8 = require("react/jsx-dev-runtime");
9704
- var ScrollArea3 = React47.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Root7, {
9705
+ var jsx_runtime8 = require("react/jsx-runtime");
9706
+ var ScrollArea2 = React47.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx_runtime8.jsxs(Root6, {
9705
9707
  ref,
9706
9708
  className: cn("relative overflow-hidden", className),
9707
9709
  ...props,
9708
9710
  children: [
9709
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Viewport, {
9711
+ /* @__PURE__ */ jsx_runtime8.jsx(Viewport, {
9710
9712
  className: "h-full w-full rounded-[inherit]",
9711
9713
  children
9712
- }, undefined, false, undefined, this),
9713
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(ScrollBar, {}, undefined, false, undefined, this),
9714
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Corner, {}, undefined, false, undefined, this)
9714
+ }),
9715
+ /* @__PURE__ */ jsx_runtime8.jsx(ScrollBar, {}),
9716
+ /* @__PURE__ */ jsx_runtime8.jsx(Corner, {})
9715
9717
  ]
9716
- }, undefined, true, undefined, this));
9717
- ScrollArea3.displayName = Root7.displayName;
9718
- var ScrollBar = React47.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(ScrollAreaScrollbar, {
9718
+ }));
9719
+ ScrollArea2.displayName = Root6.displayName;
9720
+ var ScrollBar = React47.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx_runtime8.jsx(ScrollAreaScrollbar, {
9719
9721
  ref,
9720
9722
  orientation,
9721
9723
  className: cn("flex touch-none select-none transition-colors", orientation === "vertical" && "h-full w-2 border-l border-l-transparent p-[1px]", orientation === "horizontal" && "h-2 flex-col border-t border-t-transparent p-[1px]", className),
9722
9724
  ...props,
9723
- children: /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(ScrollAreaThumb, {
9725
+ children: /* @__PURE__ */ jsx_runtime8.jsx(ScrollAreaThumb, {
9724
9726
  className: "relative flex-1 rounded-full bg-line-default"
9725
- }, undefined, false, undefined, this)
9726
- }, undefined, false, undefined, this));
9727
+ })
9728
+ }));
9727
9729
  ScrollBar.displayName = ScrollAreaScrollbar.displayName;
9728
9730
 
9729
9731
  // src/components/ui/tooltip.tsx
9730
- var React50 = __toESM(require("react"));
9732
+ var React50 = __toESM(require("react"), 1);
9731
9733
 
9732
9734
  // ../../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.16_@types+react-dom@18.3.7_@types+react@18.3.31__@types+rea_6bca503763256159376adbcc7b8f4fe8/node_modules/@radix-ui/react-tooltip/dist/index.mjs
9733
- var React49 = __toESM(require("react"));
9735
+ var React49 = __toESM(require("react"), 1);
9734
9736
 
9735
9737
  // ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.11_@types+react-dom@18.3.7_@types+react@18.3.31__@t_642d100dd60f054d3c0d9c38ece6c812/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
9736
- var React48 = __toESM(require("react"));
9738
+ var React48 = __toESM(require("react"), 1);
9737
9739
  var import_jsx_runtime18 = require("react/jsx-runtime");
9738
9740
  var __defProp30 = Object.defineProperty;
9739
9741
  var __name29 = (target, value) => __defProp30(target, "name", { value, configurable: true });
@@ -9756,7 +9758,7 @@ var VisuallyHidden = /* @__PURE__ */ React48.forwardRef(/* @__PURE__ */ __name29
9756
9758
  style: { ...VISUALLY_HIDDEN_STYLES, ...props.style }
9757
9759
  });
9758
9760
  }, "VisuallyHidden"));
9759
- var Root8 = VisuallyHidden;
9761
+ var Root7 = VisuallyHidden;
9760
9762
 
9761
9763
  // ../../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.16_@types+react-dom@18.3.7_@types+react@18.3.31__@types+rea_6bca503763256159376adbcc7b8f4fe8/node_modules/@radix-ui/react-tooltip/dist/index.mjs
9762
9764
  var import_jsx_runtime19 = require("react/jsx-runtime");
@@ -10044,13 +10046,13 @@ var TooltipContentImpl = /* @__PURE__ */ React49.forwardRef(/* @__PURE__ */ __na
10044
10046
  }, [onClose]);
10045
10047
  React49.useEffect(() => {
10046
10048
  if (context.trigger) {
10047
- const handleScroll2 = /* @__PURE__ */ __name30((event) => {
10049
+ const handleScroll = /* @__PURE__ */ __name30((event) => {
10048
10050
  if (event.target instanceof Node && event.target.contains(context.trigger)) {
10049
10051
  onClose();
10050
10052
  }
10051
10053
  }, "handleScroll");
10052
- window.addEventListener("scroll", handleScroll2, { capture: true });
10053
- return () => window.removeEventListener("scroll", handleScroll2, { capture: true });
10054
+ window.addEventListener("scroll", handleScroll, { capture: true });
10055
+ return () => window.removeEventListener("scroll", handleScroll, { capture: true });
10054
10056
  }
10055
10057
  }, [context.trigger, onClose]);
10056
10058
  const { setContentId } = context;
@@ -10086,7 +10088,7 @@ var TooltipContentImpl = /* @__PURE__ */ React49.forwardRef(/* @__PURE__ */ __na
10086
10088
  },
10087
10089
  children: [
10088
10090
  /* @__PURE__ */ import_jsx_runtime19.jsx(Slottable, { children }),
10089
- ariaLabel ? /* @__PURE__ */ import_jsx_runtime19.jsx(Root8, { id: context.contentId, role: "tooltip", children: ariaLabel }) : null
10091
+ ariaLabel ? /* @__PURE__ */ import_jsx_runtime19.jsx(Root7, { id: context.contentId, role: "tooltip", children: ariaLabel }) : null
10090
10092
  ]
10091
10093
  })
10092
10094
  });
@@ -10181,8 +10183,8 @@ function getHullPresorted(points) {
10181
10183
  const p = points[i];
10182
10184
  while (upperHull.length >= 2) {
10183
10185
  const q = upperHull[upperHull.length - 1];
10184
- const r2 = upperHull[upperHull.length - 2];
10185
- if ((q.x - r2.x) * (p.y - r2.y) >= (q.y - r2.y) * (p.x - r2.x))
10186
+ const r = upperHull[upperHull.length - 2];
10187
+ if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x))
10186
10188
  upperHull.pop();
10187
10189
  else
10188
10190
  break;
@@ -10195,8 +10197,8 @@ function getHullPresorted(points) {
10195
10197
  const p = points[i];
10196
10198
  while (lowerHull.length >= 2) {
10197
10199
  const q = lowerHull[lowerHull.length - 1];
10198
- const r2 = lowerHull[lowerHull.length - 2];
10199
- if ((q.x - r2.x) * (p.y - r2.y) >= (q.y - r2.y) * (p.x - r2.x))
10200
+ const r = lowerHull[lowerHull.length - 2];
10201
+ if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x))
10200
10202
  lowerHull.pop();
10201
10203
  else
10202
10204
  break;
@@ -10214,26 +10216,26 @@ __name30(getHullPresorted, "getHullPresorted");
10214
10216
  var Provider = TooltipProvider;
10215
10217
  var Root32 = Tooltip;
10216
10218
  var Trigger3 = TooltipTrigger;
10217
- var Portal5 = TooltipPortal;
10219
+ var Portal3 = TooltipPortal;
10218
10220
  var Content24 = TooltipContent;
10219
10221
 
10220
10222
  // src/components/ui/tooltip.tsx
10221
- var jsx_dev_runtime9 = require("react/jsx-dev-runtime");
10223
+ var jsx_runtime9 = require("react/jsx-runtime");
10222
10224
  var TooltipProvider2 = Provider;
10223
10225
  var Tooltip2 = Root32;
10224
- var TooltipTrigger3 = Trigger3;
10225
- var TooltipContent3 = React50.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Portal5, {
10226
- children: /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Content24, {
10226
+ var TooltipTrigger2 = Trigger3;
10227
+ var TooltipContent2 = React50.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx_runtime9.jsx(Portal3, {
10228
+ children: /* @__PURE__ */ jsx_runtime9.jsx(Content24, {
10227
10229
  ref,
10228
10230
  sideOffset,
10229
10231
  className: cn("z-50 overflow-hidden rounded-radius-100", "bg-surface-overlay-inverse px-3 py-1.5", "text-xs text-content-inverse", "shadow-elevation-1", "animate-in fade-in-0 zoom-in-95", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
10230
10232
  ...props
10231
- }, undefined, false, undefined, this)
10232
- }, undefined, false, undefined, this));
10233
- TooltipContent3.displayName = Content24.displayName;
10233
+ })
10234
+ }));
10235
+ TooltipContent2.displayName = Content24.displayName;
10234
10236
 
10235
10237
  // src/components/SideNavigation.tsx
10236
- var jsx_dev_runtime10 = require("react/jsx-dev-runtime");
10238
+ var jsx_runtime10 = require("react/jsx-runtime");
10237
10239
  function isVisible(item, permissions) {
10238
10240
  if (!item.enabled)
10239
10241
  return false;
@@ -10251,29 +10253,29 @@ function TenantBrand({
10251
10253
  tenant,
10252
10254
  brandColor = "#f97316"
10253
10255
  }) {
10254
- return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("div", {
10256
+ return /* @__PURE__ */ jsx_runtime10.jsxs("div", {
10255
10257
  className: "flex items-center gap-2.5 px-3 py-3",
10256
10258
  children: [
10257
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Avatar3, {
10259
+ /* @__PURE__ */ jsx_runtime10.jsxs(Avatar2, {
10258
10260
  className: "h-7 w-7 rounded-md",
10259
10261
  children: [
10260
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(AvatarImage3, {
10262
+ /* @__PURE__ */ jsx_runtime10.jsx(AvatarImage2, {
10261
10263
  src: tenant.logo,
10262
10264
  alt: tenant.name
10263
- }, undefined, false, undefined, this),
10264
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(AvatarFallback3, {
10265
+ }),
10266
+ /* @__PURE__ */ jsx_runtime10.jsx(AvatarFallback2, {
10265
10267
  style: { backgroundColor: brandColor },
10266
10268
  className: "rounded-md text-[11px] font-bold text-white",
10267
10269
  children: getInitials2(tenant.name)
10268
- }, undefined, false, undefined, this)
10270
+ })
10269
10271
  ]
10270
- }, undefined, true, undefined, this),
10271
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("span", {
10272
+ }),
10273
+ /* @__PURE__ */ jsx_runtime10.jsx("span", {
10272
10274
  className: "flex-1 truncate text-sm font-semibold text-content-default",
10273
10275
  children: tenant.name
10274
- }, undefined, false, undefined, this)
10276
+ })
10275
10277
  ]
10276
- }, undefined, true, undefined, this);
10278
+ });
10277
10279
  }
10278
10280
  function NavLeaf({
10279
10281
  item,
@@ -10282,41 +10284,41 @@ function NavLeaf({
10282
10284
  indent = false,
10283
10285
  onNavigate
10284
10286
  }) {
10285
- const Icon2 = item.icon;
10286
- const btn = /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Button, {
10287
+ const Icon = item.icon;
10288
+ const btn = /* @__PURE__ */ jsx_runtime10.jsxs(Button, {
10287
10289
  variant: "ghost",
10288
10290
  size: "sm",
10289
10291
  "aria-current": isActive ? "page" : undefined,
10290
10292
  onClick: () => onNavigate(item.route),
10291
10293
  className: cn("relative h-auto w-full justify-start gap-2.5 rounded-md py-2 text-sm font-normal", collapsed ? "px-2" : "px-3", indent && !collapsed && "pl-8", isActive ? "bg-black/5 font-medium text-content-default hover:bg-black/5" : "text-content-subtle hover:bg-black/5 hover:text-content-default"),
10292
10294
  children: [
10293
- isActive && !indent && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("span", {
10295
+ isActive && !indent && /* @__PURE__ */ jsx_runtime10.jsx("span", {
10294
10296
  "aria-hidden": true,
10295
10297
  className: "absolute left-0 top-1/2 h-5 w-0.5 -translate-y-1/2 rounded-r-full bg-action-primary"
10296
- }, undefined, false, undefined, this),
10297
- Icon2 && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Icon2, {
10298
+ }),
10299
+ Icon && /* @__PURE__ */ jsx_runtime10.jsx(Icon, {
10298
10300
  className: cn("shrink-0", collapsed ? "h-[18px] w-[18px]" : "h-4 w-4", isActive ? "text-action-primary" : "text-content-subtle")
10299
- }, undefined, false, undefined, this),
10300
- !collapsed && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("span", {
10301
+ }),
10302
+ !collapsed && /* @__PURE__ */ jsx_runtime10.jsx("span", {
10301
10303
  className: "flex-1 truncate text-left leading-none",
10302
10304
  children: item.label
10303
- }, undefined, false, undefined, this)
10305
+ })
10304
10306
  ]
10305
- }, undefined, true, undefined, this);
10307
+ });
10306
10308
  if (collapsed) {
10307
- return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Tooltip2, {
10309
+ return /* @__PURE__ */ jsx_runtime10.jsxs(Tooltip2, {
10308
10310
  delayDuration: 200,
10309
10311
  children: [
10310
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(TooltipTrigger3, {
10312
+ /* @__PURE__ */ jsx_runtime10.jsx(TooltipTrigger2, {
10311
10313
  asChild: true,
10312
10314
  children: btn
10313
- }, undefined, false, undefined, this),
10314
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(TooltipContent3, {
10315
+ }),
10316
+ /* @__PURE__ */ jsx_runtime10.jsx(TooltipContent2, {
10315
10317
  side: "right",
10316
10318
  children: item.label
10317
- }, undefined, false, undefined, this)
10319
+ })
10318
10320
  ]
10319
- }, undefined, true, undefined, this);
10321
+ });
10320
10322
  }
10321
10323
  return btn;
10322
10324
  }
@@ -10332,13 +10334,13 @@ function NavGroup({
10332
10334
  if (visible.length === 0)
10333
10335
  return null;
10334
10336
  const defaultOpen = visible.filter((item) => flatChildren(item).some((c) => activeRoute === c.route || activeRoute.startsWith(c.route + "/"))).map((item) => item.id)[0];
10335
- return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("section", {
10337
+ return /* @__PURE__ */ jsx_runtime10.jsxs("section", {
10336
10338
  children: [
10337
- label && !collapsed && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("p", {
10339
+ label && !collapsed && /* @__PURE__ */ jsx_runtime10.jsx("p", {
10338
10340
  className: "mb-1 mt-2 px-3 text-[10px] font-semibold uppercase tracking-widest text-content-subtle/50 first:mt-0",
10339
10341
  children: label
10340
- }, undefined, false, undefined, this),
10341
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Accordion3, {
10342
+ }),
10343
+ /* @__PURE__ */ jsx_runtime10.jsx(Accordion2, {
10342
10344
  type: "single",
10343
10345
  collapsible: true,
10344
10346
  defaultValue: defaultOpen,
@@ -10347,89 +10349,89 @@ function NavGroup({
10347
10349
  const children = flatChildren(item).filter((c) => isVisible(c, permissions));
10348
10350
  const isChildActive = children.some((c) => activeRoute === c.route || activeRoute.startsWith(c.route + "/"));
10349
10351
  const isItemActive = activeRoute === item.route || activeRoute.startsWith(item.route + "/");
10350
- const Icon2 = item.icon;
10352
+ const Icon = item.icon;
10351
10353
  if (children.length === 0) {
10352
- return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(NavLeaf, {
10354
+ return /* @__PURE__ */ jsx_runtime10.jsx(NavLeaf, {
10353
10355
  item,
10354
10356
  isActive: isItemActive,
10355
10357
  collapsed,
10356
10358
  onNavigate
10357
- }, item.id, false, undefined, this);
10359
+ }, item.id);
10358
10360
  }
10359
10361
  if (collapsed) {
10360
- return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(NavLeaf, {
10362
+ return /* @__PURE__ */ jsx_runtime10.jsx(NavLeaf, {
10361
10363
  item,
10362
10364
  isActive: isItemActive || isChildActive,
10363
10365
  collapsed: true,
10364
10366
  onNavigate: () => onNavigate(children[0]?.route ?? item.route)
10365
- }, item.id, false, undefined, this);
10367
+ }, item.id);
10366
10368
  }
10367
- return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(AccordionItem3, {
10369
+ return /* @__PURE__ */ jsx_runtime10.jsxs(AccordionItem2, {
10368
10370
  value: item.id,
10369
10371
  className: "border-none",
10370
10372
  children: [
10371
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(AccordionTrigger3, {
10373
+ /* @__PURE__ */ jsx_runtime10.jsxs(AccordionTrigger2, {
10372
10374
  className: cn("relative h-auto w-full justify-start gap-2.5 rounded-md px-3 py-2 text-sm font-normal", "hover:bg-black/5 hover:no-underline", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary focus-visible:ring-inset", isChildActive || isItemActive ? "bg-black/5 font-medium text-content-default" : "text-content-subtle"),
10373
10375
  children: [
10374
- isChildActive && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("span", {
10376
+ isChildActive && /* @__PURE__ */ jsx_runtime10.jsx("span", {
10375
10377
  "aria-hidden": true,
10376
10378
  className: "absolute left-0 top-1/2 h-5 w-0.5 -translate-y-1/2 rounded-r-full bg-action-primary"
10377
- }, undefined, false, undefined, this),
10378
- Icon2 && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Icon2, {
10379
+ }),
10380
+ Icon && /* @__PURE__ */ jsx_runtime10.jsx(Icon, {
10379
10381
  className: cn("h-4 w-4 shrink-0", isChildActive ? "text-action-primary" : "text-content-subtle")
10380
- }, undefined, false, undefined, this),
10381
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("span", {
10382
+ }),
10383
+ /* @__PURE__ */ jsx_runtime10.jsx("span", {
10382
10384
  className: "flex-1 truncate text-left leading-none",
10383
10385
  children: item.label
10384
- }, undefined, false, undefined, this)
10386
+ })
10385
10387
  ]
10386
- }, undefined, true, undefined, this),
10387
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(AccordionContent3, {
10388
+ }),
10389
+ /* @__PURE__ */ jsx_runtime10.jsx(AccordionContent2, {
10388
10390
  className: "pb-0",
10389
- children: item.childGroups ? /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("div", {
10391
+ children: item.childGroups ? /* @__PURE__ */ jsx_runtime10.jsx("div", {
10390
10392
  className: "space-y-3",
10391
10393
  children: item.childGroups.map((group) => {
10392
10394
  const gv = group.items.filter((c) => isVisible(c, permissions));
10393
10395
  if (gv.length === 0)
10394
10396
  return null;
10395
- return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("div", {
10397
+ return /* @__PURE__ */ jsx_runtime10.jsxs("div", {
10396
10398
  children: [
10397
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("p", {
10399
+ /* @__PURE__ */ jsx_runtime10.jsx("p", {
10398
10400
  className: "mb-0.5 px-3 text-[10px] font-semibold uppercase tracking-widest text-content-subtle/50",
10399
10401
  children: group.label
10400
- }, undefined, false, undefined, this),
10401
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("div", {
10402
+ }),
10403
+ /* @__PURE__ */ jsx_runtime10.jsx("div", {
10402
10404
  className: "space-y-0.5",
10403
- children: gv.map((child) => /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(NavLeaf, {
10405
+ children: gv.map((child) => /* @__PURE__ */ jsx_runtime10.jsx(NavLeaf, {
10404
10406
  item: child,
10405
10407
  isActive: activeRoute === child.route || activeRoute.startsWith(child.route + "/"),
10406
10408
  collapsed: false,
10407
10409
  indent: true,
10408
10410
  onNavigate
10409
- }, child.id, false, undefined, this))
10410
- }, undefined, false, undefined, this)
10411
+ }, child.id))
10412
+ })
10411
10413
  ]
10412
- }, group.id, true, undefined, this);
10414
+ }, group.id);
10413
10415
  })
10414
- }, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("div", {
10416
+ }) : /* @__PURE__ */ jsx_runtime10.jsx("div", {
10415
10417
  className: "space-y-0.5",
10416
- children: children.map((child) => /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(NavLeaf, {
10418
+ children: children.map((child) => /* @__PURE__ */ jsx_runtime10.jsx(NavLeaf, {
10417
10419
  item: child,
10418
10420
  isActive: activeRoute === child.route || activeRoute.startsWith(child.route + "/"),
10419
10421
  collapsed: false,
10420
10422
  indent: true,
10421
10423
  onNavigate
10422
- }, child.id, false, undefined, this))
10423
- }, undefined, false, undefined, this)
10424
- }, undefined, false, undefined, this)
10424
+ }, child.id))
10425
+ })
10426
+ })
10425
10427
  ]
10426
- }, item.id, true, undefined, this);
10428
+ }, item.id);
10427
10429
  })
10428
- }, undefined, false, undefined, this)
10430
+ })
10429
10431
  ]
10430
- }, undefined, true, undefined, this);
10432
+ });
10431
10433
  }
10432
- var SideNavigation = React51.memo(function SideNavigation2({
10434
+ var SideNavigation = React51.memo(function SideNavigation({
10433
10435
  config,
10434
10436
  permissions,
10435
10437
  onNavigate,
@@ -10438,77 +10440,77 @@ var SideNavigation = React51.memo(function SideNavigation2({
10438
10440
  footerNavItems
10439
10441
  }) {
10440
10442
  const { navCollapsed, setNavCollapsed, activeRoute } = useShell();
10441
- return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(TooltipProvider2, {
10442
- children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("nav", {
10443
+ return /* @__PURE__ */ jsx_runtime10.jsx(TooltipProvider2, {
10444
+ children: /* @__PURE__ */ jsx_runtime10.jsxs("nav", {
10443
10445
  "aria-label": "Application navigation",
10444
10446
  "data-collapsed": navCollapsed,
10445
10447
  className: cn("relative flex h-full flex-col", "border-r border-line-default bg-surface-default", "transition-[width] duration-200 ease-in-out", navCollapsed ? "w-14" : "w-56"),
10446
10448
  children: [
10447
- !navCollapsed && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("div", {
10449
+ !navCollapsed && /* @__PURE__ */ jsx_runtime10.jsx("div", {
10448
10450
  className: "shrink-0 border-b border-line-default",
10449
- children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(TenantBrand, {
10451
+ children: /* @__PURE__ */ jsx_runtime10.jsx(TenantBrand, {
10450
10452
  tenant,
10451
10453
  brandColor: tenantBrandColor
10452
- }, undefined, false, undefined, this)
10453
- }, undefined, false, undefined, this),
10454
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ScrollArea3, {
10454
+ })
10455
+ }),
10456
+ /* @__PURE__ */ jsx_runtime10.jsx(ScrollArea2, {
10455
10457
  className: "flex-1",
10456
- children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("div", {
10458
+ children: /* @__PURE__ */ jsx_runtime10.jsx("div", {
10457
10459
  className: cn("py-2", navCollapsed ? "px-1.5" : "px-2"),
10458
- children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("div", {
10460
+ children: /* @__PURE__ */ jsx_runtime10.jsx("div", {
10459
10461
  className: "space-y-4",
10460
- children: config.groups.map((group) => /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(NavGroup, {
10462
+ children: config.groups.map((group) => /* @__PURE__ */ jsx_runtime10.jsx(NavGroup, {
10461
10463
  label: group.label,
10462
10464
  items: group.items,
10463
10465
  activeRoute,
10464
10466
  collapsed: navCollapsed,
10465
10467
  permissions,
10466
10468
  onNavigate
10467
- }, group.id, false, undefined, this))
10468
- }, undefined, false, undefined, this)
10469
- }, undefined, false, undefined, this)
10470
- }, undefined, false, undefined, this),
10471
- footerNavItems && footerNavItems.length > 0 && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV("div", {
10469
+ }, group.id))
10470
+ })
10471
+ })
10472
+ }),
10473
+ footerNavItems && footerNavItems.length > 0 && /* @__PURE__ */ jsx_runtime10.jsx("div", {
10472
10474
  className: cn("shrink-0 border-t border-line-default", navCollapsed ? "px-1.5 py-2" : "px-2 py-2"),
10473
- children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(NavGroup, {
10475
+ children: /* @__PURE__ */ jsx_runtime10.jsx(NavGroup, {
10474
10476
  items: footerNavItems,
10475
10477
  activeRoute,
10476
10478
  collapsed: navCollapsed,
10477
10479
  permissions,
10478
10480
  onNavigate
10479
- }, undefined, false, undefined, this)
10480
- }, undefined, false, undefined, this),
10481
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Tooltip2, {
10481
+ })
10482
+ }),
10483
+ /* @__PURE__ */ jsx_runtime10.jsxs(Tooltip2, {
10482
10484
  delayDuration: 300,
10483
10485
  children: [
10484
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(TooltipTrigger3, {
10486
+ /* @__PURE__ */ jsx_runtime10.jsx(TooltipTrigger2, {
10485
10487
  asChild: true,
10486
- children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Button, {
10488
+ children: /* @__PURE__ */ jsx_runtime10.jsx(Button, {
10487
10489
  variant: "ghost",
10488
10490
  size: "icon",
10489
10491
  "aria-label": navCollapsed ? "Expand sidebar" : "Collapse sidebar",
10490
10492
  onClick: () => setNavCollapsed((v) => !v),
10491
10493
  className: cn("absolute -right-3 top-[72px] z-20 h-6 w-6 rounded-full", "border border-line-default bg-surface-default shadow-sm", "opacity-0 hover:opacity-100 focus-visible:opacity-100 transition-opacity"),
10492
- children: navCollapsed ? /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ChevronRight, {
10494
+ children: navCollapsed ? /* @__PURE__ */ jsx_runtime10.jsx(ChevronRight, {
10493
10495
  className: "h-3 w-3"
10494
- }, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ChevronLeft, {
10496
+ }) : /* @__PURE__ */ jsx_runtime10.jsx(ChevronLeft, {
10495
10497
  className: "h-3 w-3"
10496
- }, undefined, false, undefined, this)
10497
- }, undefined, false, undefined, this)
10498
- }, undefined, false, undefined, this),
10499
- /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(TooltipContent3, {
10498
+ })
10499
+ })
10500
+ }),
10501
+ /* @__PURE__ */ jsx_runtime10.jsx(TooltipContent2, {
10500
10502
  side: "right",
10501
10503
  children: navCollapsed ? "Expand sidebar" : "Collapse sidebar"
10502
- }, undefined, false, undefined, this)
10504
+ })
10503
10505
  ]
10504
- }, undefined, true, undefined, this)
10506
+ })
10505
10507
  ]
10506
- }, undefined, true, undefined, this)
10507
- }, undefined, false, undefined, this);
10508
+ })
10509
+ });
10508
10510
  });
10509
10511
 
10510
10512
  // src/components/AppShell.tsx
10511
- var jsx_dev_runtime11 = require("react/jsx-dev-runtime");
10513
+ var jsx_runtime11 = require("react/jsx-runtime");
10512
10514
  function AppShellInner({
10513
10515
  context,
10514
10516
  navigationConfig,
@@ -10549,45 +10551,45 @@ function AppShellInner({
10549
10551
  el.style.setProperty(prop, value);
10550
10552
  }
10551
10553
  }, [context.theme.overrides]);
10552
- return /* @__PURE__ */ jsx_dev_runtime11.jsxDEV("div", {
10554
+ return /* @__PURE__ */ jsx_runtime11.jsxs("div", {
10553
10555
  ref: shellRef,
10554
10556
  "data-theme": context.theme.mode,
10555
10557
  className: cn("app-shell flex h-screen overflow-hidden", "bg-surface-default text-content-default"),
10556
10558
  children: [
10557
- /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(SideNavigation, {
10559
+ /* @__PURE__ */ jsx_runtime11.jsx(SideNavigation, {
10558
10560
  config: navigationConfig,
10559
10561
  permissions: context.permissions,
10560
10562
  onNavigate: handleNavigate,
10561
10563
  tenant: context.tenant,
10562
10564
  tenantBrandColor,
10563
10565
  footerNavItems
10564
- }, undefined, false, undefined, this),
10565
- /* @__PURE__ */ jsx_dev_runtime11.jsxDEV("div", {
10566
+ }),
10567
+ /* @__PURE__ */ jsx_runtime11.jsxs("div", {
10566
10568
  className: "flex min-w-0 flex-1 flex-col overflow-hidden",
10567
10569
  children: [
10568
- /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Header, {
10570
+ /* @__PURE__ */ jsx_runtime11.jsx(Header, {
10569
10571
  user: context.user,
10570
10572
  tenant: context.tenant
10571
- }, undefined, false, undefined, this),
10572
- /* @__PURE__ */ jsx_dev_runtime11.jsxDEV("main", {
10573
+ }),
10574
+ /* @__PURE__ */ jsx_runtime11.jsx("main", {
10573
10575
  className: "min-w-0 flex-1 overflow-auto",
10574
10576
  role: "main",
10575
10577
  children
10576
- }, undefined, false, undefined, this)
10578
+ })
10577
10579
  ]
10578
- }, undefined, true, undefined, this)
10580
+ })
10579
10581
  ]
10580
- }, undefined, true, undefined, this);
10582
+ });
10581
10583
  }
10582
10584
  function AppShell(props) {
10583
10585
  const initialRoute = props.activeRoute ?? (typeof window !== "undefined" ? window.location.pathname : "/");
10584
- return /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ShellProvider, {
10586
+ return /* @__PURE__ */ jsx_runtime11.jsx(ShellProvider, {
10585
10587
  initialRoute,
10586
- children: /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(AppShellInner, {
10588
+ children: /* @__PURE__ */ jsx_runtime11.jsx(AppShellInner, {
10587
10589
  ...props
10588
- }, undefined, false, undefined, this)
10589
- }, undefined, false, undefined, this);
10590
+ })
10591
+ });
10590
10592
  }
10591
10593
 
10592
- //# debugId=8E9090E04FE5397764756E2164756E21
10594
+ //# debugId=A2580C9F57F1460864756E2164756E21
10593
10595
  //# sourceMappingURL=index.cjs.js.map