@almadar/ui 4.32.0 → 4.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/avl/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import { OrbitControls as OrbitControls$1, Grid as Grid$1, Stars, Sparkles, Html, RoundedBox } from '@react-three/drei';
3
- import * as React118 from 'react';
4
- import React118__default, { createContext, useContext, useRef, useState, useCallback, useMemo, useEffect, Suspense, useLayoutEffect, useReducer, lazy, useId, forwardRef, useImperativeHandle, Component } from 'react';
3
+ import * as React119 from 'react';
4
+ import React119__default, { createContext, useContext, useRef, useState, useCallback, useMemo, useEffect, Suspense, useLayoutEffect, useReducer, lazy, useId, forwardRef, useImperativeHandle, Component } from 'react';
5
5
  import * as LucideIcons from 'lucide-react';
6
6
  import { Loader2, ChevronDown, X, Check, Copy, AlertTriangle, Info, AlertCircle, CheckCircle, List, Printer, ChevronRight, ChevronLeft, Code, FileText, WrapText, Trash2, Menu as Menu$1, Search, Bell, LogOut, ZoomOut, ZoomIn, Download, FileQuestion, Inbox, XCircle, Filter, Plus, Pause, Play, RotateCcw, Package, Calendar, Pencil, Eye, MoreHorizontal, Image as Image$1, Upload, Minus, ArrowLeft, HelpCircle, ChevronUp, Eraser, Star, TrendingUp, TrendingDown, ArrowUp, ArrowDown, MoreVertical, Sun, Moon, Circle, Clock, CheckCircle2, ArrowRight, FileWarning, SkipForward, Bug, Send, Wrench, User, Tag, DollarSign, Zap, Sword, Move, Heart, Shield } from 'lucide-react';
7
7
  import { evaluate, createMinimalContext } from '@almadar/evaluator';
@@ -3336,7 +3336,7 @@ var init_Box = __esm({
3336
3336
  fixed: "fixed",
3337
3337
  sticky: "sticky"
3338
3338
  };
3339
- Box = React118__default.forwardRef(
3339
+ Box = React119__default.forwardRef(
3340
3340
  ({
3341
3341
  padding,
3342
3342
  paddingX,
@@ -5067,7 +5067,7 @@ function resolveIconProp(value, sizeClass) {
5067
5067
  const IconComp = value;
5068
5068
  return /* @__PURE__ */ jsx(IconComp, { className: sizeClass });
5069
5069
  }
5070
- if (React118__default.isValidElement(value)) {
5070
+ if (React119__default.isValidElement(value)) {
5071
5071
  return value;
5072
5072
  }
5073
5073
  if (typeof value === "object" && value !== null && "render" in value) {
@@ -5143,7 +5143,7 @@ var init_Button = __esm({
5143
5143
  md: "h-4 w-4",
5144
5144
  lg: "h-5 w-5"
5145
5145
  };
5146
- Button = React118__default.forwardRef(
5146
+ Button = React119__default.forwardRef(
5147
5147
  ({
5148
5148
  className,
5149
5149
  variant = "primary",
@@ -5246,7 +5246,7 @@ var init_Badge = __esm({
5246
5246
  md: "px-2.5 py-1 text-sm",
5247
5247
  lg: "px-3 py-1.5 text-base"
5248
5248
  };
5249
- Badge = React118__default.forwardRef(
5249
+ Badge = React119__default.forwardRef(
5250
5250
  ({ className, variant = "default", size = "sm", amount, label, icon, children, ...props }, ref) => {
5251
5251
  const iconSizes2 = { sm: "w-3 h-3", md: "w-3.5 h-3.5", lg: "w-4 h-4" };
5252
5252
  const resolvedIcon = typeof icon === "string" ? (() => {
@@ -5406,7 +5406,7 @@ var Input;
5406
5406
  var init_Input = __esm({
5407
5407
  "components/atoms/Input.tsx"() {
5408
5408
  init_cn();
5409
- Input = React118__default.forwardRef(
5409
+ Input = React119__default.forwardRef(
5410
5410
  ({
5411
5411
  className,
5412
5412
  inputType,
@@ -5524,7 +5524,7 @@ var Label;
5524
5524
  var init_Label = __esm({
5525
5525
  "components/atoms/Label.tsx"() {
5526
5526
  init_cn();
5527
- Label = React118__default.forwardRef(
5527
+ Label = React119__default.forwardRef(
5528
5528
  ({ className, required, children, ...props }, ref) => {
5529
5529
  return /* @__PURE__ */ jsxs(
5530
5530
  "label",
@@ -5550,7 +5550,7 @@ var Textarea;
5550
5550
  var init_Textarea = __esm({
5551
5551
  "components/atoms/Textarea.tsx"() {
5552
5552
  init_cn();
5553
- Textarea = React118__default.forwardRef(
5553
+ Textarea = React119__default.forwardRef(
5554
5554
  ({ className, error, ...props }, ref) => {
5555
5555
  return /* @__PURE__ */ jsx(
5556
5556
  "textarea",
@@ -5579,7 +5579,7 @@ var Select;
5579
5579
  var init_Select = __esm({
5580
5580
  "components/atoms/Select.tsx"() {
5581
5581
  init_cn();
5582
- Select = React118__default.forwardRef(
5582
+ Select = React119__default.forwardRef(
5583
5583
  ({ className, options, placeholder, error, ...props }, ref) => {
5584
5584
  return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
5585
5585
  /* @__PURE__ */ jsxs(
@@ -5621,7 +5621,7 @@ var Checkbox;
5621
5621
  var init_Checkbox = __esm({
5622
5622
  "components/atoms/Checkbox.tsx"() {
5623
5623
  init_cn();
5624
- Checkbox = React118__default.forwardRef(
5624
+ Checkbox = React119__default.forwardRef(
5625
5625
  ({ className, label, id, ...props }, ref) => {
5626
5626
  const inputId = id || `checkbox-${Math.random().toString(36).substr(2, 9)}`;
5627
5627
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
@@ -5703,7 +5703,7 @@ var init_Card = __esm({
5703
5703
  md: "shadow",
5704
5704
  lg: "shadow-lg"
5705
5705
  };
5706
- Card = React118__default.forwardRef(
5706
+ Card = React119__default.forwardRef(
5707
5707
  ({
5708
5708
  className,
5709
5709
  variant = "bordered",
@@ -5739,9 +5739,9 @@ var init_Card = __esm({
5739
5739
  }
5740
5740
  );
5741
5741
  Card.displayName = "Card";
5742
- CardHeader = React118__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("mb-4", className), ...props }));
5742
+ CardHeader = React119__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("mb-4", className), ...props }));
5743
5743
  CardHeader.displayName = "CardHeader";
5744
- CardTitle = React118__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5744
+ CardTitle = React119__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5745
5745
  "h3",
5746
5746
  {
5747
5747
  ref,
@@ -5754,11 +5754,11 @@ var init_Card = __esm({
5754
5754
  }
5755
5755
  ));
5756
5756
  CardTitle.displayName = "CardTitle";
5757
- CardContent = React118__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("", className), ...props }));
5757
+ CardContent = React119__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("", className), ...props }));
5758
5758
  CardContent.displayName = "CardContent";
5759
5759
  CardBody = CardContent;
5760
5760
  CardBody.displayName = "CardBody";
5761
- CardFooter = React118__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5761
+ CardFooter = React119__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5762
5762
  "div",
5763
5763
  {
5764
5764
  ref,
@@ -5779,7 +5779,7 @@ var init_Spinner = __esm({
5779
5779
  md: "h-6 w-6",
5780
5780
  lg: "h-8 w-8"
5781
5781
  };
5782
- Spinner = React118__default.forwardRef(
5782
+ Spinner = React119__default.forwardRef(
5783
5783
  ({ className, size = "md", ...props }, ref) => {
5784
5784
  return /* @__PURE__ */ jsx(
5785
5785
  "div",
@@ -6227,7 +6227,7 @@ var Radio;
6227
6227
  var init_Radio = __esm({
6228
6228
  "components/atoms/Radio.tsx"() {
6229
6229
  init_cn();
6230
- Radio = React118__default.forwardRef(
6230
+ Radio = React119__default.forwardRef(
6231
6231
  ({
6232
6232
  label,
6233
6233
  helperText,
@@ -6338,7 +6338,7 @@ var init_Switch = __esm({
6338
6338
  "components/atoms/Switch.tsx"() {
6339
6339
  "use client";
6340
6340
  init_cn();
6341
- Switch = React118.forwardRef(
6341
+ Switch = React119.forwardRef(
6342
6342
  ({
6343
6343
  checked,
6344
6344
  defaultChecked = false,
@@ -6349,10 +6349,10 @@ var init_Switch = __esm({
6349
6349
  name,
6350
6350
  className
6351
6351
  }, ref) => {
6352
- const [isChecked, setIsChecked] = React118.useState(
6352
+ const [isChecked, setIsChecked] = React119.useState(
6353
6353
  checked !== void 0 ? checked : defaultChecked
6354
6354
  );
6355
- React118.useEffect(() => {
6355
+ React119.useEffect(() => {
6356
6356
  if (checked !== void 0) {
6357
6357
  setIsChecked(checked);
6358
6358
  }
@@ -6686,8 +6686,8 @@ var init_LawReferenceTooltip = __esm({
6686
6686
  position = "top",
6687
6687
  className
6688
6688
  }) => {
6689
- const [isVisible, setIsVisible] = React118__default.useState(false);
6690
- const timeoutRef = React118__default.useRef(null);
6689
+ const [isVisible, setIsVisible] = React119__default.useState(false);
6690
+ const timeoutRef = React119__default.useRef(null);
6691
6691
  const handleMouseEnter = () => {
6692
6692
  if (timeoutRef.current) clearTimeout(timeoutRef.current);
6693
6693
  timeoutRef.current = setTimeout(() => setIsVisible(true), 200);
@@ -6696,7 +6696,7 @@ var init_LawReferenceTooltip = __esm({
6696
6696
  if (timeoutRef.current) clearTimeout(timeoutRef.current);
6697
6697
  setIsVisible(false);
6698
6698
  };
6699
- React118__default.useEffect(() => {
6699
+ React119__default.useEffect(() => {
6700
6700
  return () => {
6701
6701
  if (timeoutRef.current) clearTimeout(timeoutRef.current);
6702
6702
  };
@@ -6906,7 +6906,7 @@ var init_StatusDot = __esm({
6906
6906
  md: "w-2.5 h-2.5",
6907
6907
  lg: "w-3 h-3"
6908
6908
  };
6909
- StatusDot = React118__default.forwardRef(
6909
+ StatusDot = React119__default.forwardRef(
6910
6910
  ({ className, status = "offline", pulse = false, size = "md", label, ...props }, ref) => {
6911
6911
  return /* @__PURE__ */ jsx(
6912
6912
  "span",
@@ -6959,7 +6959,7 @@ var init_TrendIndicator = __esm({
6959
6959
  down: TrendingDown,
6960
6960
  flat: ArrowRight
6961
6961
  };
6962
- TrendIndicator = React118__default.forwardRef(
6962
+ TrendIndicator = React119__default.forwardRef(
6963
6963
  ({
6964
6964
  className,
6965
6965
  value,
@@ -7026,7 +7026,7 @@ var init_RangeSlider = __esm({
7026
7026
  md: "w-4 h-4",
7027
7027
  lg: "w-5 h-5"
7028
7028
  };
7029
- RangeSlider = React118__default.forwardRef(
7029
+ RangeSlider = React119__default.forwardRef(
7030
7030
  ({
7031
7031
  className,
7032
7032
  min = 0,
@@ -7673,9 +7673,9 @@ function ScoreDisplay({
7673
7673
  ...rest
7674
7674
  }) {
7675
7675
  const resolvedValue = typeof value === "number" && !Number.isNaN(value) ? value : typeof rest.score === "number" && !Number.isNaN(rest.score) ? rest.score : 0;
7676
- const [displayValue, setDisplayValue] = React118.useState(resolvedValue);
7677
- const [isAnimating, setIsAnimating] = React118.useState(false);
7678
- React118.useEffect(() => {
7676
+ const [displayValue, setDisplayValue] = React119.useState(resolvedValue);
7677
+ const [isAnimating, setIsAnimating] = React119.useState(false);
7678
+ React119.useEffect(() => {
7679
7679
  if (!animated || displayValue === resolvedValue) {
7680
7680
  setDisplayValue(resolvedValue);
7681
7681
  return;
@@ -7745,9 +7745,9 @@ function ControlButton({
7745
7745
  className
7746
7746
  }) {
7747
7747
  const eventBus = useEventBus();
7748
- const [isPressed, setIsPressed] = React118.useState(false);
7748
+ const [isPressed, setIsPressed] = React119.useState(false);
7749
7749
  const actualPressed = pressed ?? isPressed;
7750
- const handlePointerDown = React118.useCallback(
7750
+ const handlePointerDown = React119.useCallback(
7751
7751
  (e) => {
7752
7752
  e.preventDefault();
7753
7753
  if (disabled) return;
@@ -7757,7 +7757,7 @@ function ControlButton({
7757
7757
  },
7758
7758
  [disabled, pressEvent, eventBus, onPress]
7759
7759
  );
7760
- const handlePointerUp = React118.useCallback(
7760
+ const handlePointerUp = React119.useCallback(
7761
7761
  (e) => {
7762
7762
  e.preventDefault();
7763
7763
  if (disabled) return;
@@ -7767,7 +7767,7 @@ function ControlButton({
7767
7767
  },
7768
7768
  [disabled, releaseEvent, eventBus, onRelease]
7769
7769
  );
7770
- const handlePointerLeave = React118.useCallback(
7770
+ const handlePointerLeave = React119.useCallback(
7771
7771
  (e) => {
7772
7772
  if (isPressed) {
7773
7773
  setIsPressed(false);
@@ -8665,9 +8665,9 @@ function MiniMap({
8665
8665
  viewportRect,
8666
8666
  className
8667
8667
  }) {
8668
- const canvasRef = React118.useRef(null);
8669
- const frameRef = React118.useRef(0);
8670
- React118.useEffect(() => {
8668
+ const canvasRef = React119.useRef(null);
8669
+ const frameRef = React119.useRef(0);
8670
+ React119.useEffect(() => {
8671
8671
  const canvas = canvasRef.current;
8672
8672
  if (!canvas) return;
8673
8673
  const ctx = canvas.getContext("2d");
@@ -8960,7 +8960,7 @@ var init_ErrorBoundary = __esm({
8960
8960
  "use client";
8961
8961
  init_cn();
8962
8962
  init_ErrorState();
8963
- ErrorBoundary = class extends React118__default.Component {
8963
+ ErrorBoundary = class extends React119__default.Component {
8964
8964
  constructor(props) {
8965
8965
  super(props);
8966
8966
  __publicField(this, "reset", () => {
@@ -9407,8 +9407,8 @@ var init_Tooltip = __esm({
9407
9407
  if (hideTimeoutRef.current) clearTimeout(hideTimeoutRef.current);
9408
9408
  };
9409
9409
  }, []);
9410
- const triggerElement = React118__default.isValidElement(children) ? children : /* @__PURE__ */ jsx("span", { children });
9411
- const trigger = React118__default.cloneElement(triggerElement, {
9410
+ const triggerElement = React119__default.isValidElement(children) ? children : /* @__PURE__ */ jsx("span", { children });
9411
+ const trigger = React119__default.cloneElement(triggerElement, {
9412
9412
  ref: triggerRef,
9413
9413
  onMouseEnter: handleMouseEnter,
9414
9414
  onMouseLeave: handleMouseLeave,
@@ -9529,8 +9529,8 @@ var init_Popover = __esm({
9529
9529
  onMouseEnter: handleOpen,
9530
9530
  onMouseLeave: handleClose
9531
9531
  };
9532
- const childElement = React118__default.isValidElement(children) ? children : /* @__PURE__ */ jsx("span", { children });
9533
- const triggerElement = React118__default.cloneElement(
9532
+ const childElement = React119__default.isValidElement(children) ? children : /* @__PURE__ */ jsx("span", { children });
9533
+ const triggerElement = React119__default.cloneElement(
9534
9534
  childElement,
9535
9535
  {
9536
9536
  ref: triggerRef,
@@ -9647,8 +9647,8 @@ var init_Menu = __esm({
9647
9647
  "bottom-start": "top-full left-0 mt-2",
9648
9648
  "bottom-end": "top-full right-0 mt-2"
9649
9649
  };
9650
- const triggerChild = React118__default.isValidElement(trigger) ? trigger : /* @__PURE__ */ jsx("span", { children: trigger });
9651
- const triggerElement = React118__default.cloneElement(
9650
+ const triggerChild = React119__default.isValidElement(trigger) ? trigger : /* @__PURE__ */ jsx("span", { children: trigger });
9651
+ const triggerElement = React119__default.cloneElement(
9652
9652
  triggerChild,
9653
9653
  {
9654
9654
  ref: triggerRef,
@@ -10167,7 +10167,7 @@ var init_MapView = __esm({
10167
10167
  shadowSize: [41, 41]
10168
10168
  });
10169
10169
  L.Marker.prototype.options.icon = defaultIcon;
10170
- const { useEffect: useEffect81, useRef: useRef81, useCallback: useCallback105, useState: useState107 } = React118__default;
10170
+ const { useEffect: useEffect81, useRef: useRef81, useCallback: useCallback105, useState: useState107 } = React119__default;
10171
10171
  const { Typography: Typography2 } = await Promise.resolve().then(() => (init_Typography(), Typography_exports));
10172
10172
  const { useEventBus: useEventBus3 } = await Promise.resolve().then(() => (init_useEventBus(), useEventBus_exports));
10173
10173
  function MapUpdater({ centerLat, centerLng, zoom }) {
@@ -10398,7 +10398,7 @@ function InputPattern({
10398
10398
  fieldName
10399
10399
  }) {
10400
10400
  const { emit } = useEventBus();
10401
- const [localValue, setLocalValue] = React118__default.useState(value);
10401
+ const [localValue, setLocalValue] = React119__default.useState(value);
10402
10402
  const handleChange = (e) => {
10403
10403
  setLocalValue(e.target.value);
10404
10404
  if (onChange) {
@@ -10436,7 +10436,7 @@ function TextareaPattern({
10436
10436
  fieldName
10437
10437
  }) {
10438
10438
  const { emit } = useEventBus();
10439
- const [localValue, setLocalValue] = React118__default.useState(value);
10439
+ const [localValue, setLocalValue] = React119__default.useState(value);
10440
10440
  const handleChange = (e) => {
10441
10441
  setLocalValue(e.target.value);
10442
10442
  if (onChange) {
@@ -10468,7 +10468,7 @@ function SelectPattern({
10468
10468
  fieldName
10469
10469
  }) {
10470
10470
  const { emit } = useEventBus();
10471
- const [localValue, setLocalValue] = React118__default.useState(value);
10471
+ const [localValue, setLocalValue] = React119__default.useState(value);
10472
10472
  const handleChange = (e) => {
10473
10473
  setLocalValue(e.target.value);
10474
10474
  if (onChange) {
@@ -10497,7 +10497,7 @@ function CheckboxPattern({
10497
10497
  className
10498
10498
  }) {
10499
10499
  const { emit } = useEventBus();
10500
- const [localChecked, setLocalChecked] = React118__default.useState(checked);
10500
+ const [localChecked, setLocalChecked] = React119__default.useState(checked);
10501
10501
  const handleChange = (e) => {
10502
10502
  setLocalChecked(e.target.checked);
10503
10503
  if (onChange) {
@@ -10728,8 +10728,8 @@ function ActionButtons({
10728
10728
  disabled
10729
10729
  }) {
10730
10730
  const eventBus = useEventBus();
10731
- const [activeButtons, setActiveButtons] = React118.useState(/* @__PURE__ */ new Set());
10732
- const handlePress = React118.useCallback(
10731
+ const [activeButtons, setActiveButtons] = React119.useState(/* @__PURE__ */ new Set());
10732
+ const handlePress = React119.useCallback(
10733
10733
  (id) => {
10734
10734
  setActiveButtons((prev) => new Set(prev).add(id));
10735
10735
  if (actionEvent) eventBus.emit(`UI:${actionEvent}`, { id, pressed: true });
@@ -10737,7 +10737,7 @@ function ActionButtons({
10737
10737
  },
10738
10738
  [actionEvent, eventBus, onAction]
10739
10739
  );
10740
- const handleRelease = React118.useCallback(
10740
+ const handleRelease = React119.useCallback(
10741
10741
  (id) => {
10742
10742
  setActiveButtons((prev) => {
10743
10743
  const next = new Set(prev);
@@ -12804,7 +12804,7 @@ var init_MarkdownContent = __esm({
12804
12804
  init_Box();
12805
12805
  init_useTranslate();
12806
12806
  init_cn();
12807
- MarkdownContent = React118__default.memo(
12807
+ MarkdownContent = React119__default.memo(
12808
12808
  ({ content, direction, className }) => {
12809
12809
  const { t: _t } = useTranslate();
12810
12810
  const safeContent = typeof content === "string" ? content : String(content ?? "");
@@ -13021,7 +13021,7 @@ var init_CodeBlock = __esm({
13021
13021
  loloStyle = { ...dark, ...loloStyleOverrides };
13022
13022
  LINE_PROPS_FN = (n) => ({ "data-line": String(n - 1) });
13023
13023
  HIDDEN_LINE_NUMBERS = { display: "none" };
13024
- CodeBlock = React118__default.memo(
13024
+ CodeBlock = React119__default.memo(
13025
13025
  ({
13026
13026
  code: rawCode,
13027
13027
  language = "text",
@@ -14330,7 +14330,7 @@ var init_StateMachineView = __esm({
14330
14330
  style: { top: title ? 30 : 0 },
14331
14331
  children: [
14332
14332
  entity && /* @__PURE__ */ jsx(EntityBox, { entity, config }),
14333
- states.map((state) => renderStateNode ? /* @__PURE__ */ jsx(React118__default.Fragment, { children: renderStateNode(state, config) }, state.id) : /* @__PURE__ */ jsx(
14333
+ states.map((state) => renderStateNode ? /* @__PURE__ */ jsx(React119__default.Fragment, { children: renderStateNode(state, config) }, state.id) : /* @__PURE__ */ jsx(
14334
14334
  StateNode,
14335
14335
  {
14336
14336
  state,
@@ -20117,7 +20117,7 @@ function CraftingRecipe({
20117
20117
  className
20118
20118
  }) {
20119
20119
  const eventBus = useEventBus();
20120
- const handleCraft = React118.useCallback(() => {
20120
+ const handleCraft = React119.useCallback(() => {
20121
20121
  onCraft?.();
20122
20122
  if (craftEvent) {
20123
20123
  eventBus.emit(craftEvent, { output: output.label });
@@ -20134,7 +20134,7 @@ function CraftingRecipe({
20134
20134
  children: [
20135
20135
  /* @__PURE__ */ jsx(HStack, { gap: "xs", className: "flex-wrap items-center", children: inputs.map((ingredient, index) => {
20136
20136
  const hasSufficient = ingredient.available >= ingredient.required;
20137
- return /* @__PURE__ */ jsxs(React118.Fragment, { children: [
20137
+ return /* @__PURE__ */ jsxs(React119.Fragment, { children: [
20138
20138
  /* @__PURE__ */ jsx(Box, { className: "relative", children: /* @__PURE__ */ jsx(
20139
20139
  ItemSlot,
20140
20140
  {
@@ -20428,8 +20428,8 @@ function DPad({
20428
20428
  }) {
20429
20429
  const eventBus = useEventBus();
20430
20430
  const sizes = sizeMap15[size];
20431
- const [activeDirections, setActiveDirections] = React118.useState(/* @__PURE__ */ new Set());
20432
- const handlePress = React118.useCallback(
20431
+ const [activeDirections, setActiveDirections] = React119.useState(/* @__PURE__ */ new Set());
20432
+ const handlePress = React119.useCallback(
20433
20433
  (direction) => {
20434
20434
  setActiveDirections((prev) => new Set(prev).add(direction));
20435
20435
  if (directionEvent) eventBus.emit(`UI:${directionEvent}`, { direction, pressed: true });
@@ -20437,7 +20437,7 @@ function DPad({
20437
20437
  },
20438
20438
  [directionEvent, eventBus, onDirection]
20439
20439
  );
20440
- const handleRelease = React118.useCallback(
20440
+ const handleRelease = React119.useCallback(
20441
20441
  (direction) => {
20442
20442
  setActiveDirections((prev) => {
20443
20443
  const next = new Set(prev);
@@ -20569,6 +20569,19 @@ var init_useAuthContext = __esm({
20569
20569
  "hooks/useAuthContext.ts"() {
20570
20570
  }
20571
20571
  });
20572
+ var CurrentPagePathContext, CurrentPagePathProvider, useCurrentPagePath;
20573
+ var init_CurrentPagePathContext = __esm({
20574
+ "context/CurrentPagePathContext.tsx"() {
20575
+ "use client";
20576
+ CurrentPagePathContext = createContext(void 0);
20577
+ CurrentPagePathProvider = ({
20578
+ value,
20579
+ children
20580
+ }) => /* @__PURE__ */ jsx(CurrentPagePathContext.Provider, { value, children });
20581
+ CurrentPagePathProvider.displayName = "CurrentPagePathProvider";
20582
+ useCurrentPagePath = () => useContext(CurrentPagePathContext);
20583
+ }
20584
+ });
20572
20585
  var DashboardLayout, NavLink;
20573
20586
  var init_DashboardLayout = __esm({
20574
20587
  "components/templates/DashboardLayout.tsx"() {
@@ -20582,6 +20595,7 @@ var init_DashboardLayout = __esm({
20582
20595
  init_useAuthContext();
20583
20596
  init_useEventBus();
20584
20597
  init_useTranslate();
20598
+ init_CurrentPagePathContext();
20585
20599
  DashboardLayout = ({
20586
20600
  appName = "{{APP_TITLE}}",
20587
20601
  logo,
@@ -20598,6 +20612,7 @@ var init_DashboardLayout = __esm({
20598
20612
  showThemeToggle = true,
20599
20613
  sidebarFooter,
20600
20614
  onSignOut: onSignOutProp,
20615
+ currentPath,
20601
20616
  children
20602
20617
  }) => {
20603
20618
  const eventBus = useEventBus();
@@ -20618,6 +20633,8 @@ var init_DashboardLayout = __esm({
20618
20633
  const [sidebarOpen, setSidebarOpen] = useState(false);
20619
20634
  const [userMenuOpen, setUserMenuOpen] = useState(false);
20620
20635
  const location = useLocation();
20636
+ const ctxPagePath = useCurrentPagePath();
20637
+ const activePath = currentPath ?? ctxPagePath ?? location.pathname;
20621
20638
  const { signOut: authSignOut } = useAuthContext();
20622
20639
  const user = userProp || (null);
20623
20640
  const { t } = useTranslate();
@@ -20696,7 +20713,7 @@ var init_DashboardLayout = __esm({
20696
20713
  NavLink,
20697
20714
  {
20698
20715
  item,
20699
- currentPath: location.pathname
20716
+ currentPath: activePath
20700
20717
  },
20701
20718
  item.href
20702
20719
  ))
@@ -21374,13 +21391,13 @@ function DataList({
21374
21391
  }) {
21375
21392
  const eventBus = useEventBus();
21376
21393
  const { t } = useTranslate();
21377
- const [visibleCount, setVisibleCount] = React118__default.useState(pageSize || Infinity);
21394
+ const [visibleCount, setVisibleCount] = React119__default.useState(pageSize || Infinity);
21378
21395
  const fieldDefs = fields ?? columns ?? [];
21379
21396
  const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
21380
21397
  const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
21381
21398
  const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
21382
21399
  const hasRenderProp = typeof children === "function";
21383
- React118__default.useEffect(() => {
21400
+ React119__default.useEffect(() => {
21384
21401
  const renderItemTypeOf = typeof schemaRenderItem;
21385
21402
  const childrenTypeOf = typeof children;
21386
21403
  if (data.length > 0 && !hasRenderProp) {
@@ -21436,7 +21453,7 @@ function DataList({
21436
21453
  const items2 = data.map((item) => item);
21437
21454
  const groups2 = groupBy ? groupData(items2, groupBy) : [{ label: "", items: items2 }];
21438
21455
  const contentField = titleField?.name ?? fieldDefs[0]?.name ?? "";
21439
- return /* @__PURE__ */ jsx(VStack, { gap: "sm", className: cn("py-2", className), children: groups2.map((group, gi) => /* @__PURE__ */ jsxs(React118__default.Fragment, { children: [
21456
+ return /* @__PURE__ */ jsx(VStack, { gap: "sm", className: cn("py-2", className), children: groups2.map((group, gi) => /* @__PURE__ */ jsxs(React119__default.Fragment, { children: [
21440
21457
  group.label && /* @__PURE__ */ jsx(Divider, { label: group.label, className: "my-2" }),
21441
21458
  group.items.map((itemData, index) => {
21442
21459
  const id = itemData.id || `${gi}-${index}`;
@@ -21627,7 +21644,7 @@ function DataList({
21627
21644
  className
21628
21645
  ),
21629
21646
  children: [
21630
- groups.map((group, gi) => /* @__PURE__ */ jsxs(React118__default.Fragment, { children: [
21647
+ groups.map((group, gi) => /* @__PURE__ */ jsxs(React119__default.Fragment, { children: [
21631
21648
  group.label && /* @__PURE__ */ jsx(Divider, { label: group.label, className: gi > 0 ? "mt-4" : "mt-0" }),
21632
21649
  group.items.map(
21633
21650
  (itemData, index) => renderItem(itemData, index, gi === groups.length - 1 && index === group.items.length - 1)
@@ -22774,7 +22791,7 @@ var init_WizardProgress = __esm({
22774
22791
  children: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: normalizedSteps.map((step, index) => {
22775
22792
  const isActive = index === currentStep;
22776
22793
  const isCompleted = index < currentStep;
22777
- return /* @__PURE__ */ jsxs(React118__default.Fragment, { children: [
22794
+ return /* @__PURE__ */ jsxs(React119__default.Fragment, { children: [
22778
22795
  /* @__PURE__ */ jsx(
22779
22796
  "button",
22780
22797
  {
@@ -23685,7 +23702,7 @@ function InventoryGrid({
23685
23702
  const eventBus = useEventBus();
23686
23703
  const slotCount = totalSlots ?? items.length;
23687
23704
  const emptySlotCount = Math.max(0, slotCount - items.length);
23688
- const handleSelect = React118.useCallback(
23705
+ const handleSelect = React119.useCallback(
23689
23706
  (id) => {
23690
23707
  onSelect?.(id);
23691
23708
  if (selectEvent) {
@@ -23898,15 +23915,15 @@ function GameCanvas2D({
23898
23915
  fps = 60,
23899
23916
  className
23900
23917
  }) {
23901
- const canvasRef = React118.useRef(null);
23902
- const rafRef = React118.useRef(0);
23903
- const frameRef = React118.useRef(0);
23904
- const lastTimeRef = React118.useRef(0);
23905
- const onDrawRef = React118.useRef(onDraw);
23918
+ const canvasRef = React119.useRef(null);
23919
+ const rafRef = React119.useRef(0);
23920
+ const frameRef = React119.useRef(0);
23921
+ const lastTimeRef = React119.useRef(0);
23922
+ const onDrawRef = React119.useRef(onDraw);
23906
23923
  onDrawRef.current = onDraw;
23907
- const onTickRef = React118.useRef(onTick);
23924
+ const onTickRef = React119.useRef(onTick);
23908
23925
  onTickRef.current = onTick;
23909
- React118.useEffect(() => {
23926
+ React119.useEffect(() => {
23910
23927
  const canvas = canvasRef.current;
23911
23928
  if (!canvas) return;
23912
23929
  const ctx = canvas.getContext("2d");
@@ -24195,7 +24212,7 @@ function TurnPanel({
24195
24212
  className
24196
24213
  }) {
24197
24214
  const eventBus = useEventBus();
24198
- const handleAction = React118.useCallback(
24215
+ const handleAction = React119.useCallback(
24199
24216
  (event) => {
24200
24217
  if (event) {
24201
24218
  eventBus.emit(event, { turn: currentTurn, phase, activeTeam });
@@ -24341,7 +24358,7 @@ function UnitCommandBar({
24341
24358
  className
24342
24359
  }) {
24343
24360
  const eventBus = useEventBus();
24344
- const handleCommand = React118.useCallback(
24361
+ const handleCommand = React119.useCallback(
24345
24362
  (event) => {
24346
24363
  if (event) {
24347
24364
  eventBus.emit(event, { unitId: selectedUnitId });
@@ -24826,7 +24843,7 @@ function GameMenu({
24826
24843
  } catch {
24827
24844
  }
24828
24845
  const eventBus = eventBusProp || eventBusFromHook;
24829
- const handleOptionClick = React118.useCallback(
24846
+ const handleOptionClick = React119.useCallback(
24830
24847
  (option) => {
24831
24848
  if (option.event && eventBus) {
24832
24849
  eventBus.emit(`UI:${option.event}`, { option });
@@ -24940,7 +24957,7 @@ function GameOverScreen({
24940
24957
  } catch {
24941
24958
  }
24942
24959
  const eventBus = eventBusProp || eventBusFromHook;
24943
- const handleActionClick = React118.useCallback(
24960
+ const handleActionClick = React119.useCallback(
24944
24961
  (action) => {
24945
24962
  if (action.event && eventBus) {
24946
24963
  eventBus.emit(`UI:${action.event}`, { action });
@@ -28429,7 +28446,7 @@ var init_DocumentViewer = __esm({
28429
28446
  }
28430
28447
  });
28431
28448
  function extractTitle(children) {
28432
- if (!React118__default.isValidElement(children)) return void 0;
28449
+ if (!React119__default.isValidElement(children)) return void 0;
28433
28450
  const props = children.props;
28434
28451
  if (typeof props.title === "string") {
28435
28452
  return props.title;
@@ -28484,7 +28501,7 @@ function LinearView({
28484
28501
  /* @__PURE__ */ jsx(HStack, { className: "flex-wrap items-center", gap: "xs", children: trait.states.map((state, i) => {
28485
28502
  const isDone = i < currentIdx;
28486
28503
  const isCurrent = i === currentIdx;
28487
- return /* @__PURE__ */ jsxs(React118__default.Fragment, { children: [
28504
+ return /* @__PURE__ */ jsxs(React119__default.Fragment, { children: [
28488
28505
  i > 0 && /* @__PURE__ */ jsx(
28489
28506
  Typography,
28490
28507
  {
@@ -29268,12 +29285,12 @@ var init_Form = __esm({
29268
29285
  const isSchemaEntity = isOrbitalEntitySchema(entity);
29269
29286
  const resolvedEntity = isSchemaEntity ? entity : void 0;
29270
29287
  const entityName = typeof entity === "string" ? entity : resolvedEntity?.name;
29271
- const normalizedInitialData = React118__default.useMemo(() => {
29288
+ const normalizedInitialData = React119__default.useMemo(() => {
29272
29289
  const entityRowAsInitial = isPlainEntityRow(entity) ? entity : void 0;
29273
29290
  const callerInitial = initialData !== null && typeof initialData === "object" && !Array.isArray(initialData) ? initialData : {};
29274
29291
  return entityRowAsInitial !== void 0 ? { ...entityRowAsInitial, ...callerInitial } : callerInitial;
29275
29292
  }, [entity, initialData]);
29276
- const entityDerivedFields = React118__default.useMemo(() => {
29293
+ const entityDerivedFields = React119__default.useMemo(() => {
29277
29294
  if (fields && fields.length > 0) return void 0;
29278
29295
  if (!resolvedEntity) return void 0;
29279
29296
  return resolvedEntity.fields.map(
@@ -29292,16 +29309,16 @@ var init_Form = __esm({
29292
29309
  const conditionalFields = typeof conditionalFieldsRaw === "boolean" ? {} : conditionalFieldsRaw;
29293
29310
  const hiddenCalculations = typeof hiddenCalculationsRaw === "boolean" ? [] : hiddenCalculationsRaw;
29294
29311
  const violationTriggers = typeof violationTriggersRaw === "boolean" ? [] : violationTriggersRaw;
29295
- const [formData, setFormData] = React118__default.useState(
29312
+ const [formData, setFormData] = React119__default.useState(
29296
29313
  normalizedInitialData
29297
29314
  );
29298
- const [collapsedSections, setCollapsedSections] = React118__default.useState(
29315
+ const [collapsedSections, setCollapsedSections] = React119__default.useState(
29299
29316
  /* @__PURE__ */ new Set()
29300
29317
  );
29301
- const [submitError, setSubmitError] = React118__default.useState(null);
29302
- const formRef = React118__default.useRef(null);
29318
+ const [submitError, setSubmitError] = React119__default.useState(null);
29319
+ const formRef = React119__default.useRef(null);
29303
29320
  const formMode = props.mode;
29304
- const mountedRef = React118__default.useRef(false);
29321
+ const mountedRef = React119__default.useRef(false);
29305
29322
  if (!mountedRef.current) {
29306
29323
  mountedRef.current = true;
29307
29324
  debug("forms", "mount", {
@@ -29314,7 +29331,7 @@ var init_Form = __esm({
29314
29331
  });
29315
29332
  }
29316
29333
  const shouldShowCancel = showCancel ?? (fields && fields.length > 0);
29317
- const evalContext = React118__default.useMemo(
29334
+ const evalContext = React119__default.useMemo(
29318
29335
  () => ({
29319
29336
  formValues: formData,
29320
29337
  globalVariables: externalContext?.globalVariables ?? {},
@@ -29323,7 +29340,7 @@ var init_Form = __esm({
29323
29340
  }),
29324
29341
  [formData, externalContext]
29325
29342
  );
29326
- React118__default.useEffect(() => {
29343
+ React119__default.useEffect(() => {
29327
29344
  debug("forms", "initialData-sync", {
29328
29345
  mode: formMode,
29329
29346
  normalizedInitialData,
@@ -29334,7 +29351,7 @@ var init_Form = __esm({
29334
29351
  setFormData(normalizedInitialData);
29335
29352
  }
29336
29353
  }, [normalizedInitialData]);
29337
- const processCalculations = React118__default.useCallback(
29354
+ const processCalculations = React119__default.useCallback(
29338
29355
  (changedFieldId, newFormData) => {
29339
29356
  if (!hiddenCalculations.length) return;
29340
29357
  const context = {
@@ -29359,7 +29376,7 @@ var init_Form = __esm({
29359
29376
  },
29360
29377
  [hiddenCalculations, externalContext, eventBus]
29361
29378
  );
29362
- const checkViolations = React118__default.useCallback(
29379
+ const checkViolations = React119__default.useCallback(
29363
29380
  (changedFieldId, newFormData) => {
29364
29381
  if (!violationTriggers.length) return;
29365
29382
  const context = {
@@ -29397,7 +29414,7 @@ var init_Form = __esm({
29397
29414
  processCalculations(name, newFormData);
29398
29415
  checkViolations(name, newFormData);
29399
29416
  };
29400
- const isFieldVisible = React118__default.useCallback(
29417
+ const isFieldVisible = React119__default.useCallback(
29401
29418
  (fieldName) => {
29402
29419
  const condition = conditionalFields[fieldName];
29403
29420
  if (!condition) return true;
@@ -29405,7 +29422,7 @@ var init_Form = __esm({
29405
29422
  },
29406
29423
  [conditionalFields, evalContext]
29407
29424
  );
29408
- const isSectionVisible = React118__default.useCallback(
29425
+ const isSectionVisible = React119__default.useCallback(
29409
29426
  (section) => {
29410
29427
  if (!section.condition) return true;
29411
29428
  return Boolean(evaluateFormExpression(section.condition, evalContext));
@@ -29481,7 +29498,7 @@ var init_Form = __esm({
29481
29498
  eventBus.emit(`UI:${onCancel}`);
29482
29499
  }
29483
29500
  };
29484
- const renderField = React118__default.useCallback(
29501
+ const renderField = React119__default.useCallback(
29485
29502
  (field) => {
29486
29503
  const fieldName = field.name || field.field;
29487
29504
  if (!fieldName) return null;
@@ -29502,7 +29519,7 @@ var init_Form = __esm({
29502
29519
  [formData, isFieldVisible, relationsData, relationsLoading, isLoading]
29503
29520
  );
29504
29521
  const effectiveFields = entityDerivedFields ?? fields;
29505
- const normalizedFields = React118__default.useMemo(() => {
29522
+ const normalizedFields = React119__default.useMemo(() => {
29506
29523
  if (!effectiveFields || effectiveFields.length === 0) return [];
29507
29524
  return effectiveFields.map((field) => {
29508
29525
  if (typeof field === "string") {
@@ -29524,7 +29541,7 @@ var init_Form = __esm({
29524
29541
  return field;
29525
29542
  });
29526
29543
  }, [effectiveFields, resolvedEntity]);
29527
- const schemaFields = React118__default.useMemo(() => {
29544
+ const schemaFields = React119__default.useMemo(() => {
29528
29545
  if (normalizedFields.length === 0) return null;
29529
29546
  if (isDebugEnabled()) {
29530
29547
  debugGroup(`Form: ${entityName || "unknown"}`);
@@ -29534,7 +29551,7 @@ var init_Form = __esm({
29534
29551
  }
29535
29552
  return normalizedFields.map(renderField).filter(Boolean);
29536
29553
  }, [normalizedFields, renderField, entityName, conditionalFields]);
29537
- const sectionElements = React118__default.useMemo(() => {
29554
+ const sectionElements = React119__default.useMemo(() => {
29538
29555
  if (!sections || sections.length === 0) return null;
29539
29556
  return sections.map((section) => {
29540
29557
  if (!isSectionVisible(section)) {
@@ -31066,7 +31083,7 @@ var init_List = __esm({
31066
31083
  if (entity && typeof entity === "object" && "id" in entity) return [entity];
31067
31084
  return [];
31068
31085
  }, [entity]);
31069
- const getItemActions = React118__default.useCallback(
31086
+ const getItemActions = React119__default.useCallback(
31070
31087
  (item) => {
31071
31088
  if (!itemActions) return [];
31072
31089
  if (typeof itemActions === "function") {
@@ -31503,7 +31520,7 @@ var init_MediaGallery = __esm({
31503
31520
  [selectable, selectedItems, selectionEvent, eventBus]
31504
31521
  );
31505
31522
  const entityData = Array.isArray(entity) ? entity : [];
31506
- const items = React118__default.useMemo(() => {
31523
+ const items = React119__default.useMemo(() => {
31507
31524
  if (propItems) return propItems;
31508
31525
  if (entityData.length === 0) return [];
31509
31526
  return entityData.map((record, idx) => ({
@@ -31667,7 +31684,7 @@ var init_MediaGallery = __esm({
31667
31684
  }
31668
31685
  });
31669
31686
  function extractTitle2(children) {
31670
- if (!React118__default.isValidElement(children)) return void 0;
31687
+ if (!React119__default.isValidElement(children)) return void 0;
31671
31688
  const props = children.props;
31672
31689
  if (typeof props.title === "string") {
31673
31690
  return props.title;
@@ -32380,7 +32397,7 @@ var init_PageHeader = __esm({
32380
32397
  info: "bg-info/10 text-info"
32381
32398
  };
32382
32399
  return /* @__PURE__ */ jsxs(Box, { className: cn("mb-6", className), children: [
32383
- breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx(Box, { as: "nav", className: "mb-4", children: /* @__PURE__ */ jsx(Box, { as: "ol", className: "flex items-center gap-2 text-sm", children: breadcrumbs.map((crumb, idx) => /* @__PURE__ */ jsxs(React118__default.Fragment, { children: [
32400
+ breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx(Box, { as: "nav", className: "mb-4", children: /* @__PURE__ */ jsx(Box, { as: "ol", className: "flex items-center gap-2 text-sm", children: breadcrumbs.map((crumb, idx) => /* @__PURE__ */ jsxs(React119__default.Fragment, { children: [
32384
32401
  idx > 0 && /* @__PURE__ */ jsx(Typography, { variant: "small", color: "muted", children: "/" }),
32385
32402
  crumb.href ? /* @__PURE__ */ jsx(
32386
32403
  "a",
@@ -32573,7 +32590,7 @@ var init_debugRegistry = __esm({
32573
32590
  }
32574
32591
  });
32575
32592
  function useDebugData() {
32576
- const [data, setData] = React118.useState(() => ({
32593
+ const [data, setData] = React119.useState(() => ({
32577
32594
  traits: [],
32578
32595
  ticks: [],
32579
32596
  guards: [],
@@ -32587,7 +32604,7 @@ function useDebugData() {
32587
32604
  },
32588
32605
  lastUpdate: Date.now()
32589
32606
  }));
32590
- React118.useEffect(() => {
32607
+ React119.useEffect(() => {
32591
32608
  const updateData = () => {
32592
32609
  setData({
32593
32610
  traits: getAllTraits(),
@@ -32696,12 +32713,12 @@ function layoutGraph(states, transitions, initialState, width, height) {
32696
32713
  return positions;
32697
32714
  }
32698
32715
  function WalkMinimap() {
32699
- const [walkStep, setWalkStep] = React118.useState(null);
32700
- const [traits2, setTraits] = React118.useState([]);
32701
- const [coveredEdges, setCoveredEdges] = React118.useState([]);
32702
- const [completedTraits, setCompletedTraits] = React118.useState(/* @__PURE__ */ new Set());
32703
- const prevTraitRef = React118.useRef(null);
32704
- React118.useEffect(() => {
32716
+ const [walkStep, setWalkStep] = React119.useState(null);
32717
+ const [traits2, setTraits] = React119.useState([]);
32718
+ const [coveredEdges, setCoveredEdges] = React119.useState([]);
32719
+ const [completedTraits, setCompletedTraits] = React119.useState(/* @__PURE__ */ new Set());
32720
+ const prevTraitRef = React119.useRef(null);
32721
+ React119.useEffect(() => {
32705
32722
  const interval = setInterval(() => {
32706
32723
  const w = window;
32707
32724
  const step = w.__orbitalWalkStep;
@@ -33148,15 +33165,15 @@ var init_EntitiesTab = __esm({
33148
33165
  }
33149
33166
  });
33150
33167
  function EventFlowTab({ events: events2 }) {
33151
- const [filter, setFilter] = React118.useState("all");
33152
- const containerRef = React118.useRef(null);
33153
- const [autoScroll, setAutoScroll] = React118.useState(true);
33154
- React118.useEffect(() => {
33168
+ const [filter, setFilter] = React119.useState("all");
33169
+ const containerRef = React119.useRef(null);
33170
+ const [autoScroll, setAutoScroll] = React119.useState(true);
33171
+ React119.useEffect(() => {
33155
33172
  if (autoScroll && containerRef.current) {
33156
33173
  containerRef.current.scrollTop = containerRef.current.scrollHeight;
33157
33174
  }
33158
33175
  }, [events2.length, autoScroll]);
33159
- const filteredEvents = React118.useMemo(() => {
33176
+ const filteredEvents = React119.useMemo(() => {
33160
33177
  if (filter === "all") return events2;
33161
33178
  return events2.filter((e) => e.type === filter);
33162
33179
  }, [events2, filter]);
@@ -33275,7 +33292,7 @@ var init_EventFlowTab = __esm({
33275
33292
  }
33276
33293
  });
33277
33294
  function GuardsPanel({ guards }) {
33278
- const [filter, setFilter] = React118.useState("all");
33295
+ const [filter, setFilter] = React119.useState("all");
33279
33296
  if (guards.length === 0) {
33280
33297
  return /* @__PURE__ */ jsx(
33281
33298
  EmptyState,
@@ -33288,7 +33305,7 @@ function GuardsPanel({ guards }) {
33288
33305
  }
33289
33306
  const passedCount = guards.filter((g) => g.result).length;
33290
33307
  const failedCount = guards.length - passedCount;
33291
- const filteredGuards = React118.useMemo(() => {
33308
+ const filteredGuards = React119.useMemo(() => {
33292
33309
  if (filter === "all") return guards;
33293
33310
  if (filter === "passed") return guards.filter((g) => g.result);
33294
33311
  return guards.filter((g) => !g.result);
@@ -33449,10 +33466,10 @@ function EffectBadge({ effect }) {
33449
33466
  ] });
33450
33467
  }
33451
33468
  function TransitionTimeline({ transitions }) {
33452
- const containerRef = React118.useRef(null);
33453
- const [autoScroll, setAutoScroll] = React118.useState(true);
33454
- const [expandedId, setExpandedId] = React118.useState(null);
33455
- React118.useEffect(() => {
33469
+ const containerRef = React119.useRef(null);
33470
+ const [autoScroll, setAutoScroll] = React119.useState(true);
33471
+ const [expandedId, setExpandedId] = React119.useState(null);
33472
+ React119.useEffect(() => {
33456
33473
  if (autoScroll && containerRef.current) {
33457
33474
  containerRef.current.scrollTop = containerRef.current.scrollHeight;
33458
33475
  }
@@ -33738,9 +33755,9 @@ function getAllEvents(traits2) {
33738
33755
  }
33739
33756
  function EventDispatcherTab({ traits: traits2, schema }) {
33740
33757
  const eventBus = useEventBus();
33741
- const [log4, setLog] = React118.useState([]);
33742
- const prevStatesRef = React118.useRef(/* @__PURE__ */ new Map());
33743
- React118.useEffect(() => {
33758
+ const [log4, setLog] = React119.useState([]);
33759
+ const prevStatesRef = React119.useRef(/* @__PURE__ */ new Map());
33760
+ React119.useEffect(() => {
33744
33761
  for (const trait of traits2) {
33745
33762
  const prev = prevStatesRef.current.get(trait.id);
33746
33763
  if (prev && prev !== trait.currentState) {
@@ -33910,10 +33927,10 @@ function VerifyModePanel({
33910
33927
  serverCount,
33911
33928
  localCount
33912
33929
  }) {
33913
- const [expanded, setExpanded] = React118.useState(true);
33914
- const scrollRef = React118.useRef(null);
33915
- const prevCountRef = React118.useRef(0);
33916
- React118.useEffect(() => {
33930
+ const [expanded, setExpanded] = React119.useState(true);
33931
+ const scrollRef = React119.useRef(null);
33932
+ const prevCountRef = React119.useRef(0);
33933
+ React119.useEffect(() => {
33917
33934
  if (expanded && transitions.length > prevCountRef.current && scrollRef.current) {
33918
33935
  scrollRef.current.scrollTop = scrollRef.current.scrollHeight;
33919
33936
  }
@@ -33979,10 +33996,10 @@ function RuntimeDebugger({
33979
33996
  defaultTab,
33980
33997
  schema
33981
33998
  }) {
33982
- const [isCollapsed, setIsCollapsed] = React118.useState(mode === "verify" ? true : defaultCollapsed);
33983
- const [isVisible, setIsVisible] = React118.useState(mode === "inline" || mode === "verify" || isDebugEnabled2());
33999
+ const [isCollapsed, setIsCollapsed] = React119.useState(mode === "verify" ? true : defaultCollapsed);
34000
+ const [isVisible, setIsVisible] = React119.useState(mode === "inline" || mode === "verify" || isDebugEnabled2());
33984
34001
  const debugData = useDebugData();
33985
- React118.useEffect(() => {
34002
+ React119.useEffect(() => {
33986
34003
  if (mode === "inline") return;
33987
34004
  return onDebugToggle((enabled) => {
33988
34005
  setIsVisible(enabled);
@@ -33991,7 +34008,7 @@ function RuntimeDebugger({
33991
34008
  }
33992
34009
  });
33993
34010
  }, [mode]);
33994
- React118.useEffect(() => {
34011
+ React119.useEffect(() => {
33995
34012
  if (mode === "inline") return;
33996
34013
  const handleKeyDown = (e) => {
33997
34014
  if (e.key === "`" && isVisible) {
@@ -34540,7 +34557,7 @@ function SequenceBar({
34540
34557
  onSlotRemove(index);
34541
34558
  }, [onSlotRemove, playing]);
34542
34559
  const paddedSlots = Array.from({ length: maxSlots }, (_, i) => slots[i]);
34543
- return /* @__PURE__ */ jsx(HStack, { className: cn("items-center", className), gap: "sm", children: paddedSlots.map((slot, i) => /* @__PURE__ */ jsxs(React118__default.Fragment, { children: [
34560
+ return /* @__PURE__ */ jsx(HStack, { className: cn("items-center", className), gap: "sm", children: paddedSlots.map((slot, i) => /* @__PURE__ */ jsxs(React119__default.Fragment, { children: [
34544
34561
  i > 0 && /* @__PURE__ */ jsx(
34545
34562
  Typography,
34546
34563
  {
@@ -35885,7 +35902,7 @@ var init_StatCard = __esm({
35885
35902
  const labelToUse = propLabel ?? propTitle;
35886
35903
  const eventBus = useEventBus();
35887
35904
  const { t } = useTranslate();
35888
- const handleActionClick = React118__default.useCallback(() => {
35905
+ const handleActionClick = React119__default.useCallback(() => {
35889
35906
  if (action?.event) {
35890
35907
  eventBus.emit(`UI:${action.event}`, {});
35891
35908
  }
@@ -35896,7 +35913,7 @@ var init_StatCard = __esm({
35896
35913
  const data = Array.isArray(entity) ? entity : entity ? [entity] : [];
35897
35914
  const isLoading = externalLoading ?? false;
35898
35915
  const error = externalError;
35899
- const computeMetricValue = React118__default.useCallback(
35916
+ const computeMetricValue = React119__default.useCallback(
35900
35917
  (metric, items) => {
35901
35918
  if (metric.value !== void 0) {
35902
35919
  return metric.value;
@@ -35935,7 +35952,7 @@ var init_StatCard = __esm({
35935
35952
  },
35936
35953
  []
35937
35954
  );
35938
- const schemaStats = React118__default.useMemo(() => {
35955
+ const schemaStats = React119__default.useMemo(() => {
35939
35956
  if (!metrics || metrics.length === 0) return null;
35940
35957
  return metrics.map((metric) => ({
35941
35958
  label: metric.label,
@@ -35943,7 +35960,7 @@ var init_StatCard = __esm({
35943
35960
  format: metric.format
35944
35961
  }));
35945
35962
  }, [metrics, data, computeMetricValue]);
35946
- const calculatedTrend = React118__default.useMemo(() => {
35963
+ const calculatedTrend = React119__default.useMemo(() => {
35947
35964
  if (manualTrend !== void 0) return manualTrend;
35948
35965
  if (previousValue === void 0 || currentValue === void 0)
35949
35966
  return void 0;
@@ -36927,7 +36944,7 @@ var init_Timeline = __esm({
36927
36944
  }) => {
36928
36945
  const { t } = useTranslate();
36929
36946
  const entityData = Array.isArray(entity) ? entity : [];
36930
- const items = React118__default.useMemo(() => {
36947
+ const items = React119__default.useMemo(() => {
36931
36948
  if (propItems) return propItems;
36932
36949
  if (entityData.length === 0) return [];
36933
36950
  return entityData.map((record, idx) => {
@@ -37034,7 +37051,7 @@ var init_Timeline = __esm({
37034
37051
  }
37035
37052
  });
37036
37053
  function extractToastProps(children) {
37037
- if (!React118__default.isValidElement(children)) {
37054
+ if (!React119__default.isValidElement(children)) {
37038
37055
  if (typeof children === "string") {
37039
37056
  return { message: children };
37040
37057
  }
@@ -37072,7 +37089,7 @@ var init_ToastSlot = __esm({
37072
37089
  eventBus.emit("UI:CLOSE");
37073
37090
  };
37074
37091
  if (!isVisible) return null;
37075
- const isCustomContent = React118__default.isValidElement(children) && !message;
37092
+ const isCustomContent = React119__default.isValidElement(children) && !message;
37076
37093
  return /* @__PURE__ */ jsx(Box, { className: "fixed bottom-4 right-4 z-50", children: isCustomContent ? children : /* @__PURE__ */ jsx(
37077
37094
  Toast,
37078
37095
  {
@@ -37341,7 +37358,7 @@ var init_WizardContainer = __esm({
37341
37358
  const isCompleted = index < currentStep;
37342
37359
  const stepKey = step.id ?? step.tabId ?? `step-${index}`;
37343
37360
  const stepTitle = step.title ?? step.name ?? `Step ${index + 1}`;
37344
- return /* @__PURE__ */ jsxs(React118__default.Fragment, { children: [
37361
+ return /* @__PURE__ */ jsxs(React119__default.Fragment, { children: [
37345
37362
  /* @__PURE__ */ jsx(
37346
37363
  Button,
37347
37364
  {
@@ -39530,7 +39547,7 @@ function UnitRenderer({
39530
39547
  onAnimationStateChange,
39531
39548
  animationSpeed = 1
39532
39549
  }) {
39533
- const handleUnitClick = React118__default.useCallback(
39550
+ const handleUnitClick = React119__default.useCallback(
39534
39551
  (unit) => {
39535
39552
  onUnitClick?.(unit);
39536
39553
  },
@@ -42724,7 +42741,7 @@ var init_Avl3DViewer = __esm({
42724
42741
  const handleTraitClick = useCallback((name) => {
42725
42742
  dispatch({ type: "ZOOM_INTO_TRAIT", trait: name, targetPosition: { x: 0, y: 0 } });
42726
42743
  }, []);
42727
- const [highlightedTrait, setHighlightedTrait] = React118__default.useState(null);
42744
+ const [highlightedTrait, setHighlightedTrait] = React119__default.useState(null);
42728
42745
  const handleTransitionClick = useCallback((index) => {
42729
42746
  dispatch({ type: "ZOOM_INTO_TRANSITION", transitionIndex: index, targetPosition: { x: 0, y: 0 } });
42730
42747
  }, []);
@@ -42811,7 +42828,7 @@ var init_Avl3DViewer = __esm({
42811
42828
  gap: "xs",
42812
42829
  align: "center",
42813
42830
  className: "absolute top-2 left-2 z-10 bg-surface/80 backdrop-blur rounded-md px-3 py-1.5",
42814
- children: breadcrumbs.map((crumb, i) => /* @__PURE__ */ jsxs(React118__default.Fragment, { children: [
42831
+ children: breadcrumbs.map((crumb, i) => /* @__PURE__ */ jsxs(React119__default.Fragment, { children: [
42815
42832
  i > 0 && /* @__PURE__ */ jsx(Typography, { variant: "small", color: "muted", className: "mx-1", children: "/" }),
42816
42833
  i < breadcrumbs.length - 1 ? /* @__PURE__ */ jsx(
42817
42834
  Box,
@@ -43189,12 +43206,12 @@ var init_three = __esm({
43189
43206
  }
43190
43207
  });
43191
43208
  function lazyThree(name, loader) {
43192
- const Lazy = React118__default.lazy(() => loader().then((m) => ({ default: m[name] })));
43209
+ const Lazy = React119__default.lazy(() => loader().then((m) => ({ default: m[name] })));
43193
43210
  function ThreeWrapper(props) {
43194
- return React118__default.createElement(
43195
- React118__default.Suspense,
43211
+ return React119__default.createElement(
43212
+ React119__default.Suspense,
43196
43213
  { fallback: null },
43197
- React118__default.createElement(Lazy, props)
43214
+ React119__default.createElement(Lazy, props)
43198
43215
  );
43199
43216
  }
43200
43217
  ThreeWrapper.displayName = `Lazy(${name})`;
@@ -43682,7 +43699,7 @@ function SuspenseConfigProvider({
43682
43699
  config,
43683
43700
  children
43684
43701
  }) {
43685
- return React118__default.createElement(
43702
+ return React119__default.createElement(
43686
43703
  SuspenseConfigContext.Provider,
43687
43704
  { value: config },
43688
43705
  children
@@ -44165,7 +44182,7 @@ function renderPatternChildren(children, onDismiss, parentId = "root", parentPat
44165
44182
  const key = `${parentId}-${index}-trait:${traitName}`;
44166
44183
  return /* @__PURE__ */ jsx(TraitFrame, { traitName }, key);
44167
44184
  }
44168
- return /* @__PURE__ */ jsx(React118__default.Fragment, { children: child }, `${parentId}-${index}`);
44185
+ return /* @__PURE__ */ jsx(React119__default.Fragment, { children: child }, `${parentId}-${index}`);
44169
44186
  }
44170
44187
  if (!child || typeof child !== "object") return null;
44171
44188
  const childId = `${parentId}-${index}`;
@@ -44202,14 +44219,14 @@ function isPatternConfig(value) {
44202
44219
  if (value === null || value === void 0) return false;
44203
44220
  if (typeof value !== "object") return false;
44204
44221
  if (Array.isArray(value)) return false;
44205
- if (React118__default.isValidElement(value)) return false;
44222
+ if (React119__default.isValidElement(value)) return false;
44206
44223
  if (value instanceof Date) return false;
44207
44224
  if (typeof value === "function") return false;
44208
44225
  const record = value;
44209
44226
  return "type" in record && typeof record.type === "string";
44210
44227
  }
44211
44228
  function isPlainConfigObject(value) {
44212
- if (React118__default.isValidElement(value)) return false;
44229
+ if (React119__default.isValidElement(value)) return false;
44213
44230
  if (value instanceof Date) return false;
44214
44231
  const proto = Object.getPrototypeOf(value);
44215
44232
  return proto === Object.prototype || proto === null;
@@ -44870,7 +44887,7 @@ var AvlTransition = ({
44870
44887
  opacity = 1,
44871
44888
  className
44872
44889
  }) => {
44873
- const ids = React118__default.useMemo(() => {
44890
+ const ids = React119__default.useMemo(() => {
44874
44891
  avlTransitionId += 1;
44875
44892
  return { arrow: `avl-tr-${avlTransitionId}-arrow` };
44876
44893
  }, []);
@@ -45631,7 +45648,7 @@ var AvlStateMachine = ({
45631
45648
  color = "var(--color-primary)",
45632
45649
  animated = false
45633
45650
  }) => {
45634
- const ids = React118__default.useMemo(() => {
45651
+ const ids = React119__default.useMemo(() => {
45635
45652
  avlSmId += 1;
45636
45653
  const base = `avl-sm-${avlSmId}`;
45637
45654
  return { glow: `${base}-glow`, grad: `${base}-grad` };
@@ -45826,7 +45843,7 @@ var AvlOrbitalUnit = ({
45826
45843
  color = "var(--color-primary)",
45827
45844
  animated = false
45828
45845
  }) => {
45829
- const ids = React118__default.useMemo(() => {
45846
+ const ids = React119__default.useMemo(() => {
45830
45847
  avlOuId += 1;
45831
45848
  const base = `avl-ou-${avlOuId}`;
45832
45849
  return { glow: `${base}-glow`, grad: `${base}-grad` };
@@ -45918,7 +45935,7 @@ var AvlClosedCircuit = ({
45918
45935
  color = "var(--color-primary)",
45919
45936
  animated = false
45920
45937
  }) => {
45921
- const ids = React118__default.useMemo(() => {
45938
+ const ids = React119__default.useMemo(() => {
45922
45939
  avlCcId += 1;
45923
45940
  const base = `avl-cc-${avlCcId}`;
45924
45941
  return { glow: `${base}-glow`, grad: `${base}-grad`, arrow: `${base}-arrow` };
@@ -46071,7 +46088,7 @@ var AvlEmitListen = ({
46071
46088
  color = "var(--color-primary)",
46072
46089
  animated = false
46073
46090
  }) => {
46074
- const ids = React118__default.useMemo(() => {
46091
+ const ids = React119__default.useMemo(() => {
46075
46092
  avlElId += 1;
46076
46093
  const base = `avl-el-${avlElId}`;
46077
46094
  return { arrow: `${base}-arrow`, grad: `${base}-grad` };
@@ -46344,7 +46361,7 @@ function renderNode(node, color, glowId) {
46344
46361
  const baseR = node.type === "operator" ? 20 : 16;
46345
46362
  const r2 = Math.max(baseR, labelLen * 3.5 + 6);
46346
46363
  const nc = nodeColor(node.type, color);
46347
- return /* @__PURE__ */ jsxs(React118__default.Fragment, { children: [
46364
+ return /* @__PURE__ */ jsxs(React119__default.Fragment, { children: [
46348
46365
  node.children.map((child, i) => {
46349
46366
  const childR = Math.max(
46350
46367
  child.type === "operator" ? 20 : 16,
@@ -46401,7 +46418,7 @@ var AvlExprTree = ({
46401
46418
  className,
46402
46419
  color = "var(--color-primary)"
46403
46420
  }) => {
46404
- const ids = React118__default.useMemo(() => {
46421
+ const ids = React119__default.useMemo(() => {
46405
46422
  avlEtId += 1;
46406
46423
  return { glow: `avl-et-${avlEtId}-glow` };
46407
46424
  }, []);
@@ -47375,7 +47392,7 @@ var SystemNode = ({ data }) => {
47375
47392
  stateChain.length > 0 && /* @__PURE__ */ jsx("svg", { width: stateChain.length * 14 + 2, height: 10, viewBox: `0 0 ${stateChain.length * 14 + 2} 10`, children: stateChain.map((s, i) => {
47376
47393
  const tc = transitionCounts[s.name] ?? 0;
47377
47394
  const role = getStateRole(s.name, s.isInitial, s.isTerminal, tc, maxTC);
47378
- return /* @__PURE__ */ jsxs(React118__default.Fragment, { children: [
47395
+ return /* @__PURE__ */ jsxs(React119__default.Fragment, { children: [
47379
47396
  /* @__PURE__ */ jsx(AvlState, { x: i * 14 + 1, y: 1, width: 10, height: 8, name: "", role, isInitial: s.isInitial, isTerminal: s.isTerminal }),
47380
47397
  i < stateChain.length - 1 && /* @__PURE__ */ jsx("line", { x1: i * 14 + 12, y1: 5, x2: i * 14 + 15, y2: 5, stroke: "var(--color-border)", strokeWidth: 0.5 })
47381
47398
  ] }, s.name);
@@ -47415,7 +47432,7 @@ var MiniStateMachine = ({ data, className }) => {
47415
47432
  const x = 2 + i * (NODE_W + GAP + ARROW_W + GAP);
47416
47433
  const tc = transitionCounts[s.name] ?? 0;
47417
47434
  const role = getStateRole(s.name, s.isInitial, s.isTerminal, tc, maxTC);
47418
- return /* @__PURE__ */ jsxs(React118__default.Fragment, { children: [
47435
+ return /* @__PURE__ */ jsxs(React119__default.Fragment, { children: [
47419
47436
  /* @__PURE__ */ jsx(
47420
47437
  AvlState,
47421
47438
  {
@@ -48877,7 +48894,7 @@ function resolveLambdaBindings(body, argName, arg) {
48877
48894
  if (Array.isArray(body)) {
48878
48895
  return body.map((b) => resolveLambdaBindings(b, argName, arg));
48879
48896
  }
48880
- if (body !== null && typeof body === "object" && !React118__default.isValidElement(body) && !(body instanceof Date) && typeof body !== "function") {
48897
+ if (body !== null && typeof body === "object" && !React119__default.isValidElement(body) && !(body instanceof Date) && typeof body !== "function") {
48881
48898
  const out = {};
48882
48899
  for (const [k, v] of Object.entries(body)) {
48883
48900
  out[k] = resolveLambdaBindings(v, argName, arg);
@@ -48896,7 +48913,7 @@ function getSlotContentRenderer2() {
48896
48913
  function makeLambdaFn(argName, lambdaBody, callerKey) {
48897
48914
  return (item, index) => {
48898
48915
  const resolvedBody = resolveLambdaBindings(lambdaBody, argName, item);
48899
- if (resolvedBody === null || typeof resolvedBody !== "object" || Array.isArray(resolvedBody) || typeof resolvedBody === "function" || React118__default.isValidElement(resolvedBody) || resolvedBody instanceof Date) {
48916
+ if (resolvedBody === null || typeof resolvedBody !== "object" || Array.isArray(resolvedBody) || typeof resolvedBody === "function" || React119__default.isValidElement(resolvedBody) || resolvedBody instanceof Date) {
48900
48917
  return null;
48901
48918
  }
48902
48919
  const record = resolvedBody;
@@ -48914,7 +48931,7 @@ function makeLambdaFn(argName, lambdaBody, callerKey) {
48914
48931
  props: childProps,
48915
48932
  priority: 0
48916
48933
  };
48917
- return React118__default.createElement(SlotContentRenderer2, { content: childContent });
48934
+ return React119__default.createElement(SlotContentRenderer2, { content: childContent });
48918
48935
  };
48919
48936
  }
48920
48937
  function convertNode(node, callerKey) {
@@ -48933,7 +48950,7 @@ function convertNode(node, callerKey) {
48933
48950
  });
48934
48951
  return anyChanged ? mapped : node;
48935
48952
  }
48936
- if (typeof node === "object" && !React118__default.isValidElement(node) && !(node instanceof Date)) {
48953
+ if (typeof node === "object" && !React119__default.isValidElement(node) && !(node instanceof Date)) {
48937
48954
  return convertObjectProps(node);
48938
48955
  }
48939
48956
  return node;
@@ -50919,7 +50936,7 @@ var OrbPreviewNodeInner = (props) => {
50919
50936
  }
50920
50937
  );
50921
50938
  };
50922
- var OrbPreviewNode = React118__default.memo(OrbPreviewNodeInner);
50939
+ var OrbPreviewNode = React119__default.memo(OrbPreviewNodeInner);
50923
50940
  OrbPreviewNode.displayName = "OrbPreviewNode";
50924
50941
  var EventFlowEdgeInner = (props) => {
50925
50942
  const {
@@ -50996,7 +51013,7 @@ var EventFlowEdgeInner = (props) => {
50996
51013
  ) })
50997
51014
  ] });
50998
51015
  };
50999
- var EventFlowEdge = React118__default.memo(EventFlowEdgeInner);
51016
+ var EventFlowEdge = React119__default.memo(EventFlowEdgeInner);
51000
51017
  EventFlowEdge.displayName = "EventFlowEdge";
51001
51018
 
51002
51019
  // components/molecules/avl/BehaviorComposeNode.tsx
@@ -51135,7 +51152,7 @@ var BehaviorComposeNodeInner = (props) => {
51135
51152
  }
51136
51153
  );
51137
51154
  };
51138
- var BehaviorComposeNode = React118__default.memo(BehaviorComposeNodeInner);
51155
+ var BehaviorComposeNode = React119__default.memo(BehaviorComposeNodeInner);
51139
51156
  BehaviorComposeNode.displayName = "BehaviorComposeNode";
51140
51157
 
51141
51158
  // components/molecules/avl/avl-behavior-compose-converter.ts
@@ -52067,7 +52084,7 @@ var ZoomBreadcrumb = ({
52067
52084
  if (eventName && band === "detail") {
52068
52085
  segments.push({ icon: "\u26A1", label: eventName });
52069
52086
  }
52070
- return /* @__PURE__ */ jsx("div", { className: "absolute top-2 left-2 z-10 flex items-center gap-1 px-2 py-1 rounded-md bg-card/90 border border-border text-[11px] text-muted-foreground backdrop-blur-sm", children: segments.map((seg, i) => /* @__PURE__ */ jsxs(React118__default.Fragment, { children: [
52087
+ return /* @__PURE__ */ jsx("div", { className: "absolute top-2 left-2 z-10 flex items-center gap-1 px-2 py-1 rounded-md bg-card/90 border border-border text-[11px] text-muted-foreground backdrop-blur-sm", children: segments.map((seg, i) => /* @__PURE__ */ jsxs(React119__default.Fragment, { children: [
52071
52088
  i > 0 && /* @__PURE__ */ jsx("span", { className: "opacity-40", children: ">" }),
52072
52089
  /* @__PURE__ */ jsx("span", { className: "opacity-60", children: seg.icon }),
52073
52090
  /* @__PURE__ */ jsx("span", { children: seg.label })
@@ -52526,7 +52543,7 @@ var EventWireOverlay = ({
52526
52543
  containerW,
52527
52544
  containerH
52528
52545
  }) => {
52529
- const ids = React118__default.useMemo(() => {
52546
+ const ids = React119__default.useMemo(() => {
52530
52547
  avlOczWireId += 1;
52531
52548
  return { arrow: `avl-ocz-wire-${avlOczWireId}-arrow` };
52532
52549
  }, []);
@@ -52844,7 +52861,7 @@ var AvlOrbitalsCosmicZoom = ({
52844
52861
  borderRadius: 6,
52845
52862
  border: `1px solid ${color}`
52846
52863
  },
52847
- children: /* @__PURE__ */ jsx(HStack, { gap: "xs", align: "center", children: breadcrumbs.map((crumb, i) => /* @__PURE__ */ jsxs(React118__default.Fragment, { children: [
52864
+ children: /* @__PURE__ */ jsx(HStack, { gap: "xs", align: "center", children: breadcrumbs.map((crumb, i) => /* @__PURE__ */ jsxs(React119__default.Fragment, { children: [
52848
52865
  i > 0 && /* @__PURE__ */ jsx(Typography, { variant: "small", style: { opacity: 0.5, color }, children: "/" }),
52849
52866
  i < breadcrumbs.length - 1 ? /* @__PURE__ */ jsx(
52850
52867
  Box,