@omerdlw/base-framework 3.2.2 → 3.4.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.
Files changed (78) hide show
  1. package/MIGRATION.md +11 -0
  2. package/dist/ambient/index.js +1 -1
  3. package/dist/ambient/server/index.js +2 -2
  4. package/dist/ambient/worker/index.js +1 -1
  5. package/dist/{chunk-MMVVHQ7V.js → chunk-67MOKJFZ.js} +174 -75
  6. package/dist/chunk-67MOKJFZ.js.map +1 -0
  7. package/dist/{chunk-FXO4QJQ4.js → chunk-AZ2ZDFNP.js} +6 -6
  8. package/dist/{chunk-FXO4QJQ4.js.map → chunk-AZ2ZDFNP.js.map} +1 -1
  9. package/dist/{chunk-2EFQJITY.js → chunk-FFJWJ4OB.js} +1341 -1133
  10. package/dist/chunk-FFJWJ4OB.js.map +1 -0
  11. package/dist/{chunk-2LGI33JP.js → chunk-GKAJ4EM2.js} +169 -73
  12. package/dist/chunk-GKAJ4EM2.js.map +1 -0
  13. package/dist/{chunk-TKOGBAW3.js → chunk-QGPRTUED.js} +3 -3
  14. package/dist/{chunk-TKOGBAW3.js.map → chunk-QGPRTUED.js.map} +1 -1
  15. package/dist/{chunk-7XUAYJOA.js → chunk-VNSMNGWP.js} +3 -3
  16. package/dist/{chunk-7XUAYJOA.js.map → chunk-VNSMNGWP.js.map} +1 -1
  17. package/dist/{chunk-FS2R34VD.js → chunk-XGAYTDSI.js} +36 -36
  18. package/dist/chunk-XGAYTDSI.js.map +1 -0
  19. package/dist/context-menu/index.js +3 -3
  20. package/dist/dock/index.js +2 -2
  21. package/dist/index.js +6 -6
  22. package/dist/modules/ambient/analyze-ground.d.ts +42 -0
  23. package/dist/modules/ambient/analyze-ground.d.ts.map +1 -0
  24. package/dist/modules/ambient/analyze.d.ts +1 -1
  25. package/dist/modules/ambient/analyze.d.ts.map +1 -1
  26. package/dist/modules/ambient/dom.d.ts.map +1 -1
  27. package/dist/modules/ambient/hooks.d.ts.map +1 -1
  28. package/dist/modules/ambient/settings.d.ts.map +1 -1
  29. package/dist/modules/ambient/types.d.ts +16 -4
  30. package/dist/modules/ambient/types.d.ts.map +1 -1
  31. package/dist/modules/dock/components/card-header.d.ts +1 -1
  32. package/dist/modules/dock/components/card-header.d.ts.map +1 -1
  33. package/dist/modules/dock/components/card-item.d.ts +1 -1
  34. package/dist/modules/dock/components/card-item.d.ts.map +1 -1
  35. package/dist/modules/dock/components/command-bar.d.ts.map +1 -1
  36. package/dist/modules/dock/components/compact.d.ts +9 -0
  37. package/dist/modules/dock/components/compact.d.ts.map +1 -0
  38. package/dist/modules/dock/components/item-content.d.ts.map +1 -1
  39. package/dist/modules/dock/context.d.ts.map +1 -1
  40. package/dist/modules/dock/hooks/use-action-slot.d.ts.map +1 -1
  41. package/dist/modules/dock/hooks/use-card-item-model.d.ts.map +1 -1
  42. package/dist/modules/dock/hooks/use-dock-height-controller.d.ts +1 -1
  43. package/dist/modules/dock/hooks/use-dock-height-controller.d.ts.map +1 -1
  44. package/dist/modules/dock/hooks/use-dock-viewport.d.ts.map +1 -1
  45. package/dist/modules/dock/hooks/use-pending-skeleton.d.ts +7 -0
  46. package/dist/modules/dock/hooks/use-pending-skeleton.d.ts.map +1 -0
  47. package/dist/modules/dock/lib/card-item.d.ts +7 -0
  48. package/dist/modules/dock/lib/card-item.d.ts.map +1 -1
  49. package/dist/modules/dock/model/layout.d.ts +19 -4
  50. package/dist/modules/dock/model/layout.d.ts.map +1 -1
  51. package/dist/modules/dock/model/paths.d.ts +7 -0
  52. package/dist/modules/dock/model/paths.d.ts.map +1 -1
  53. package/dist/modules/dock/motion.d.ts.map +1 -1
  54. package/dist/modules/dock/provider.d.ts.map +1 -1
  55. package/dist/modules/dock/runtime/display.d.ts.map +1 -1
  56. package/dist/modules/dock/runtime/dock.d.ts +2 -0
  57. package/dist/modules/dock/runtime/dock.d.ts.map +1 -1
  58. package/dist/modules/dock/runtime/hooks/use-dock.d.ts.map +1 -1
  59. package/dist/modules/dock/runtime/model/cards.d.ts +5 -2
  60. package/dist/modules/dock/runtime/model/cards.d.ts.map +1 -1
  61. package/dist/modules/dock/runtime/pipeline.d.ts.map +1 -1
  62. package/dist/modules/dock/types/card.d.ts +17 -0
  63. package/dist/modules/dock/types/card.d.ts.map +1 -1
  64. package/dist/modules/dock/types/compact.d.ts +13 -0
  65. package/dist/modules/dock/types/compact.d.ts.map +1 -0
  66. package/dist/modules/dock/types/index.d.ts +1 -0
  67. package/dist/modules/dock/types/index.d.ts.map +1 -1
  68. package/dist/modules/dock/types/theme.d.ts +30 -1
  69. package/dist/modules/dock/types/theme.d.ts.map +1 -1
  70. package/dist/modules/index.js +6 -6
  71. package/dist/navigation/index.js +4 -4
  72. package/docs/modules/ambient.md +79 -58
  73. package/docs/modules/dock.md +25 -15
  74. package/package.json +1 -1
  75. package/dist/chunk-2EFQJITY.js.map +0 -1
  76. package/dist/chunk-2LGI33JP.js.map +0 -1
  77. package/dist/chunk-FS2R34VD.js.map +0 -1
  78. package/dist/chunk-MMVVHQ7V.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { createNavigator, NAVIGATION_STATUS } from './chunk-FS2R34VD.js';
1
+ import { pathOf, createNavigator, NAVIGATION_STATUS } from './chunk-XGAYTDSI.js';
2
2
  import { useNotificationVisible } from './chunk-6IP6YFQX.js';
3
3
  import { useOptionalLoadingActions, useOptionalLoadingState } from './chunk-YZS2B6YE.js';
4
4
  import { useOptionalMediaState, useOptionalMediaActions } from './chunk-ZXRE2KZO.js';
@@ -9,7 +9,7 @@ import { Button } from './chunk-UDJ7ARCH.js';
9
9
  import { Icon, Spinner } from './chunk-7VU2OAJB.js';
10
10
  import { cn } from './chunk-TAWTGCWJ.js';
11
11
  import { defineThemeSpec, useModuleMotion, useTheme, useOptionalModuleMotion } from './chunk-ESD5EQ5H.js';
12
- import { createStore, normalizePath, gpuTransform, cssTransition, trimToNull, report, globalEvents, isImageIconSource, EVENT_TYPES, toUserMessage, clamp, createScheduler } from './chunk-D222OCTV.js';
12
+ import { createStore, gpuTransform, normalizePath, cssTransition, trimToNull, report, globalEvents, isImageIconSource, EVENT_TYPES, toUserMessage, clamp, createScheduler } from './chunk-D222OCTV.js';
13
13
  import { getOrCreateGlobalContext } from './chunk-J3VTDBC6.js';
14
14
  import { isObject, isPlainObject, shallowEqual, toArray } from './chunk-BMFHS3GV.js';
15
15
  import { c } from 'react/compiler-runtime';
@@ -412,6 +412,9 @@ function isPathPrefix(candidatePath, pathname) {
412
412
  if (normalizedCandidate === "/") return normalizedPathname.startsWith("/");
413
413
  return normalizedPathname.startsWith(`${normalizedCandidate}/`);
414
414
  }
415
+ function getDockRoutePathname(pathname, transitionTo) {
416
+ return transitionTo ? pathOf(transitionTo) : pathname;
417
+ }
415
418
  function isInlineActionPathMatch(path, pathname) {
416
419
  return isSamePath(path, pathname) || path !== "/" && isPathPrefix(path, pathname);
417
420
  }
@@ -565,6 +568,14 @@ function resolveCardStackFlags(expanded, position, hasExtensions, stacking) {
565
568
  isExtensionShelf
566
569
  };
567
570
  }
571
+ function isDockCardPeeking({
572
+ expanded = false,
573
+ isStackHovered = false,
574
+ isSurfaceActive = false,
575
+ position = 0
576
+ }) {
577
+ return Boolean(!expanded && isStackHovered && (Number(position) || 0) > 0 && !isSurfaceActive);
578
+ }
568
579
 
569
580
  // src/modules/dock/motion.ts
570
581
  function staggerDelay(index, {
@@ -611,13 +622,13 @@ var dockSurfaceDragTransformTemplate = ({
611
622
  y,
612
623
  scale
613
624
  }) => toGpuTransform(y, scale);
614
- function getDockBackdropTransition(motion17, {
625
+ function getDockBackdropTransition(motion18, {
615
626
  expanded = false,
616
627
  isSurface = false
617
628
  } = {}) {
618
- return isSurface || expanded ? motion17.transitions.expand : motion17.transitions.stack;
629
+ return isSurface || expanded ? motion18.transitions.expand : motion18.transitions.stack;
619
630
  }
620
- function getDockActionMotionProps(motion17, {
631
+ function getDockActionMotionProps(motion18, {
621
632
  disabled = false,
622
633
  reduceMotion = false
623
634
  } = {}) {
@@ -626,24 +637,24 @@ function getDockActionMotionProps(motion17, {
626
637
  initial: false,
627
638
  animate: "idle",
628
639
  whileTap: canMove ? "tap" : void 0,
629
- variants: motion17.variants.press,
630
- transition: motion17.transitions.press
640
+ variants: motion18.variants.press,
641
+ transition: motion18.transitions.press
631
642
  };
632
643
  }
633
- function getDockMediaVolumeFillTransition(motion17, {
644
+ function getDockMediaVolumeFillTransition(motion18, {
634
645
  isDragging = false
635
646
  } = {}) {
636
- return isDragging ? "none" : cssTransition("width", motion17.transitions.mediaVolume);
647
+ return isDragging ? "none" : cssTransition("width", motion18.transitions.mediaVolume);
637
648
  }
638
- function getDockMediaVolumeThumbAnimateProps(motion17, {
649
+ function getDockMediaVolumeThumbAnimateProps(motion18, {
639
650
  isDragging = false
640
651
  } = {}) {
641
- return isDragging ? motion17.variants.mediaVolumeThumb.dragging : motion17.variants.mediaVolumeThumb.idle;
652
+ return isDragging ? motion18.variants.mediaVolumeThumb.dragging : motion18.variants.mediaVolumeThumb.idle;
642
653
  }
643
- function getDockMediaVolumeThumbPositionTransition(motion17, {
654
+ function getDockMediaVolumeThumbPositionTransition(motion18, {
644
655
  isDragging = false
645
656
  } = {}) {
646
- return isDragging ? "none" : cssTransition("left", motion17.transitions.mediaVolume);
657
+ return isDragging ? "none" : cssTransition("left", motion18.transitions.mediaVolume);
647
658
  }
648
659
  var SURFACE_PHASE_KEYS = Object.freeze({
649
660
  [DOCK_SURFACE_PHASE.IDLE]: "idle",
@@ -654,47 +665,47 @@ var SURFACE_PHASE_KEYS = Object.freeze({
654
665
  [DOCK_SURFACE_PHASE.COLLAPSING_BODY]: "collapseBody",
655
666
  [DOCK_SURFACE_PHASE.RESTORING_HEADER]: "restoreHeader"
656
667
  });
657
- function getDockPhaseMotion(motion17, surfacePhase) {
668
+ function getDockPhaseMotion(motion18, surfacePhase) {
658
669
  const key = surfacePhase && SURFACE_PHASE_KEYS[surfacePhase] || "idle";
659
- return motion17.phases[key];
670
+ return motion18.phases[key];
660
671
  }
661
- function getDockHeaderRestoreVariants(motion17, surfacePhase) {
672
+ function getDockHeaderRestoreVariants(motion18, surfacePhase) {
662
673
  const {
663
674
  headerRestore
664
- } = motion17.variants;
675
+ } = motion18.variants;
665
676
  const visible = headerRestore.visible;
666
677
  return {
667
678
  hidden: headerRestore.hidden,
668
679
  visible: {
669
680
  ...visible,
670
- transition: getDockPhaseMotion(motion17, surfacePhase).headerReturn ?? visible.transition
681
+ transition: getDockPhaseMotion(motion18, surfacePhase).headerReturn ?? visible.transition
671
682
  },
672
683
  exit: headerRestore.exit
673
684
  };
674
685
  }
675
- function getDockStackTransformTransition(motion17, surfacePhase, fallbackTransition) {
676
- return getDockPhaseMotion(motion17, surfacePhase).transform ?? fallbackTransition;
686
+ function getDockStackTransformTransition(motion18, surfacePhase, fallbackTransition) {
687
+ return getDockPhaseMotion(motion18, surfacePhase).transform ?? fallbackTransition;
677
688
  }
678
- function getDockStackTransition(motion17, {
689
+ function getDockStackTransition(motion18, {
679
690
  expanded = false,
680
691
  resizeDistance = 0,
681
692
  surfacePhase = null
682
693
  } = {}) {
683
694
  const {
684
695
  deck
685
- } = getDockPhaseMotion(motion17, surfacePhase);
696
+ } = getDockPhaseMotion(motion18, surfacePhase);
686
697
  if (typeof deck === "function") {
687
- return deck(resizeDistance > 0 ? resizeDistance : motion17.deck.resizeFallback);
698
+ return deck(resizeDistance > 0 ? resizeDistance : motion18.deck.resizeFallback);
688
699
  }
689
700
  if (deck) return deck;
690
- return expanded ? motion17.transitions.expand : motion17.transitions.stack;
701
+ return expanded ? motion18.transitions.expand : motion18.transitions.stack;
691
702
  }
692
- function getDockLayoutTransition(motion17) {
703
+ function getDockLayoutTransition(motion18) {
693
704
  return {
694
- layout: motion17.transitions.layout
705
+ layout: motion18.transitions.layout
695
706
  };
696
707
  }
697
- function getDockStackAnimateProps(motion17, {
708
+ function getDockStackAnimateProps(motion18, {
698
709
  width,
699
710
  height,
700
711
  isBreadcrumbsVisible = false,
@@ -704,24 +715,24 @@ function getDockStackAnimateProps(motion17, {
704
715
  }) {
705
716
  const safeWidth = Number(width);
706
717
  const safeHeight = Number(height);
707
- const liftAmount = isBreadcrumbsVisible ? motion17.deck.breadcrumbOffset : 0;
718
+ const liftAmount = isBreadcrumbsVisible ? motion18.deck.breadcrumbOffset : 0;
708
719
  return {
709
720
  width: Math.max(0, Math.round(Number.isFinite(safeWidth) ? safeWidth : 0)),
710
721
  height: Math.max(0, Math.round(Number.isFinite(safeHeight) ? safeHeight : 0)),
711
- transform: toGpuTransform(liftAmount, getDockPhaseMotion(motion17, surfacePhase).scale),
712
- opacity: isFullscreen ? motion17.deck.fullscreenOpacity : 1,
713
- boxShadow: isSurfaceActive ? motion17.deck.elevation.elevated : motion17.deck.elevation.rest,
722
+ transform: toGpuTransform(liftAmount, getDockPhaseMotion(motion18, surfacePhase).scale),
723
+ opacity: isFullscreen ? motion18.deck.fullscreenOpacity : 1,
724
+ boxShadow: isSurfaceActive ? motion18.deck.elevation.elevated : motion18.deck.elevation.rest,
714
725
  pointerEvents: isFullscreen ? "none" : "auto"
715
726
  };
716
727
  }
717
- function getDockCardDelay(motion17, {
728
+ function getDockCardDelay(motion18, {
718
729
  expanded = false,
719
730
  isStackHovered = false,
720
731
  position = 0
721
732
  } = {}) {
722
733
  const {
723
734
  timings
724
- } = motion17;
735
+ } = motion18;
725
736
  const safePosition = Math.max(0, Number(position) || 0);
726
737
  if (expanded && safePosition > 0) {
727
738
  return staggerDelay(safePosition, {
@@ -739,7 +750,7 @@ function getDockCardDelay(motion17, {
739
750
  }
740
751
  return 0;
741
752
  }
742
- function getDockItemAnimateValues(motion17, {
753
+ function getDockItemAnimateValues(motion18, {
743
754
  motionValues,
744
755
  expanded = false,
745
756
  isStackHovered = false,
@@ -747,51 +758,54 @@ function getDockItemAnimateValues(motion17, {
747
758
  position = 0
748
759
  } = {}) {
749
760
  if (!motionValues) return {};
750
- const safePosition = Math.max(0, Number(position) || 0);
751
- const isHoveredOffset = !expanded && isStackHovered && safePosition > 0 && !isSurfaceActive;
752
- const peek = isHoveredOffset ? motion17.deck.peek(safePosition) : null;
761
+ const peek = isDockCardPeeking({
762
+ expanded,
763
+ isStackHovered,
764
+ isSurfaceActive,
765
+ position
766
+ }) ? motion18.deck.peek(Math.max(0, Number(position) || 0)) : null;
753
767
  const y = peek ? motionValues.y - peek.lift : motionValues.y;
754
768
  const scale = peek ? motionValues.scale * peek.scale : motionValues.scale;
755
769
  return {
756
770
  transform: toGpuTransform(y, scale),
757
- opacity: motionValues.opacity
771
+ opacity: peek?.opacity ?? motionValues.opacity
758
772
  };
759
773
  }
760
- function getDockItemTransition(motion17, {
774
+ function getDockItemTransition(motion18, {
761
775
  expanded = false,
762
776
  isStackHovered = false,
763
777
  position = 0,
764
778
  delay = 0
765
779
  } = {}) {
766
780
  const safePosition = Math.max(0, Number(position) || 0);
767
- let baseTransition = motion17.transitions.card;
768
- if (expanded) baseTransition = motion17.transitions.cardExpanded;
781
+ let baseTransition = motion18.transitions.card;
782
+ if (expanded) baseTransition = motion18.transitions.cardExpanded;
769
783
  else if (isStackHovered && safePosition > 0) {
770
- baseTransition = motion17.transitions.cardPeek;
784
+ baseTransition = motion18.transitions.cardPeek;
771
785
  }
772
786
  return {
773
787
  ...baseTransition,
774
788
  delay: Number(delay) || 0
775
789
  };
776
790
  }
777
- function getDockItemExitValues(motion17, {
791
+ function getDockItemExitValues(motion18, {
778
792
  motionValues,
779
793
  position = 0
780
794
  } = {}) {
781
795
  const safePosition = Math.max(0, Number(position) || 0);
782
- return motion17.deck.exit({
796
+ return motion18.deck.exit({
783
797
  position: safePosition,
784
798
  scale: motionValues && Number.isFinite(motionValues.scale) ? motionValues.scale : null,
785
- y: motionValues && Number.isFinite(motionValues.y) ? motionValues.y : safePosition * motion17.deck.stacking.collapsed.offsetY
799
+ y: motionValues && Number.isFinite(motionValues.y) ? motionValues.y : safePosition * motion18.deck.stacking.collapsed.offsetY
786
800
  });
787
801
  }
788
- function getDockCardContentAnimateProps(motion17, {
802
+ function getDockCardContentAnimateProps(motion18, {
789
803
  expanded = false,
790
804
  position = 0,
791
805
  isExtensionShelf = false
792
806
  } = {}) {
793
807
  const isHidden = !expanded && position > 0 && !isExtensionShelf;
794
- return isHidden ? motion17.variants.cardContent.hidden : motion17.variants.cardContent.visible;
808
+ return isHidden ? motion18.variants.cardContent.hidden : motion18.variants.cardContent.visible;
795
809
  }
796
810
  var DockContext = getOrCreateGlobalContext("DockContext", null);
797
811
  function useDockState() {
@@ -846,6 +860,7 @@ var EMPTY_DOCK_STATE = Object.freeze({
846
860
  activeOperation: null,
847
861
  activeSurfaceEntry: null,
848
862
  activeSurfaceId: null,
863
+ compact: false,
849
864
  contextActions: [],
850
865
  dockContinuity: [],
851
866
  dockHeight: 0,
@@ -906,21 +921,35 @@ function getViewportMaxHeight() {
906
921
  if (typeof window === "undefined") return Infinity;
907
922
  return window.innerHeight - VIEWPORT_MARGIN;
908
923
  }
924
+ var DEFAULT_CARD_PADDING = DOCK_CARD_LAYOUT.chromeHeight / 2;
925
+ function getDockCardPadding(padding) {
926
+ return typeof padding === "number" && Number.isFinite(padding) && padding >= 0 ? padding : DEFAULT_CARD_PADDING;
927
+ }
928
+ function getDockCardMinHeight(isHud = false, padding, fitContent = false) {
929
+ const chrome = getDockCardPadding(padding) * 2;
930
+ if (fitContent) return chrome;
931
+ const base = isHud ? DOCK_CARD_LAYOUT.hudHeight : DOCK_CARD_LAYOUT.baseHeight;
932
+ return base - DOCK_CARD_LAYOUT.chromeHeight + chrome;
933
+ }
909
934
  function getContainerHeight({
910
935
  cardContentHeight,
911
- isHud = false
936
+ fitContent = false,
937
+ isHud = false,
938
+ padding
912
939
  }) {
913
- const chromeHeight = DOCK_CARD_LAYOUT.chromeHeight;
914
- const minCardHeight = isHud ? DOCK_CARD_LAYOUT.hudHeight : DOCK_CARD_LAYOUT.baseHeight;
940
+ const chromeHeight = getDockCardPadding(padding) * 2;
941
+ const minCardHeight = getDockCardMinHeight(isHud, padding, fitContent);
915
942
  const numericContentHeight = Number(cardContentHeight);
916
943
  const nextCardHeight = Math.max(minCardHeight, (Number.isFinite(numericContentHeight) ? numericContentHeight : 0) + chromeHeight);
917
944
  return Math.min(nextCardHeight, getViewportMaxHeight());
918
945
  }
919
946
  function getDockCardWidth({
920
- width
947
+ width,
948
+ fallback
921
949
  } = {}) {
950
+ const fallbackWidth = typeof fallback === "number" && Number.isFinite(fallback) && fallback > 0 ? fallback : DEFAULT_CARD_WIDTH;
922
951
  if (typeof window === "undefined") {
923
- return width ? Number(width) || DEFAULT_CARD_WIDTH : DEFAULT_CARD_WIDTH;
952
+ return width ? Number(width) || fallbackWidth : fallbackWidth;
924
953
  }
925
954
  const windowWidth = window.innerWidth;
926
955
  const isDesktop = windowWidth >= DESKTOP_MIN_VIEWPORT_WIDTH;
@@ -929,7 +958,7 @@ function getDockCardWidth({
929
958
  const gutter = isDesktop ? DESKTOP_VIEWPORT_GUTTER : MOBILE_VIEWPORT_GUTTER;
930
959
  return Math.min(targetWidth, Math.max(windowWidth - gutter, 0));
931
960
  }
932
- return Math.min(DEFAULT_CARD_WIDTH, Math.max(windowWidth - MOBILE_VIEWPORT_GUTTER, 0));
961
+ return Math.min(fallbackWidth, Math.max(windowWidth - MOBILE_VIEWPORT_GUTTER, 0));
933
962
  }
934
963
  function getObservedHeight(entry, element) {
935
964
  const rawBorderBoxSize = entry?.borderBoxSize;
@@ -945,9 +974,9 @@ function getObservedHeight(entry, element) {
945
974
  function hasMeaningfulHeightChange(previousHeight, nextHeight) {
946
975
  return Math.abs(Math.round(nextHeight) - Math.round(previousHeight)) > HEIGHT_EPSILON;
947
976
  }
948
- function publishDockHeightCssVar(heightPx) {
949
- if (typeof document === "undefined") return;
950
- document.documentElement.style.setProperty(DOCK_HEIGHT_CSS_VAR, `${Math.round(heightPx)}px`);
977
+ function publishDockHeightCssVar(heightPx, name = DOCK_HEIGHT_CSS_VAR) {
978
+ if (typeof document === "undefined" || name === false) return;
979
+ document.documentElement.style.setProperty(name, `${Math.round(heightPx)}px`);
951
980
  }
952
981
  function isSurfaceShapePhase(phase) {
953
982
  return phase === DOCK_SURFACE_PHASE.EXPANDING_BODY || phase === DOCK_SURFACE_PHASE.OPEN || phase === DOCK_SURFACE_PHASE.CLOSING_ANTICIPATION;
@@ -977,18 +1006,17 @@ function getRouteMeasurementKey(pathname, key) {
977
1006
  }
978
1007
 
979
1008
  // src/modules/dock/hooks/use-dock-height-controller.ts
980
- function getBaseHeight(isHud) {
981
- return isHud ? DOCK_CARD_LAYOUT.hudHeight : DOCK_CARD_LAYOUT.baseHeight;
982
- }
983
1009
  function createHeightController(initial, setContainerHeight) {
984
1010
  let inputs = initial;
985
1011
  let contentHeight = 0;
986
- let lastAppliedContainerHeight = getBaseHeight(initial.isHud);
1012
+ let lastAppliedContainerHeight = getDockCardMinHeight(initial.isHud, initial.padding);
987
1013
  let lastAppliedSpacerHeight = lastAppliedContainerHeight + DOCK_HEIGHT_BUFFER;
988
1014
  const applyHeight = () => {
989
1015
  const height = getContainerHeight({
990
1016
  cardContentHeight: contentHeight,
991
- isHud: inputs.isHud
1017
+ fitContent: inputs.fitContent,
1018
+ isHud: inputs.isHud,
1019
+ padding: inputs.padding
992
1020
  });
993
1021
  const totalSpacerHeight = height + DOCK_HEIGHT_BUFFER;
994
1022
  if (Math.abs(height - lastAppliedContainerHeight) > HEIGHT_EPSILON) {
@@ -997,7 +1025,7 @@ function createHeightController(initial, setContainerHeight) {
997
1025
  }
998
1026
  if (Math.abs(totalSpacerHeight - lastAppliedSpacerHeight) > HEIGHT_EPSILON) {
999
1027
  lastAppliedSpacerHeight = totalSpacerHeight;
1000
- publishDockHeightCssVar(totalSpacerHeight);
1028
+ publishDockHeightCssVar(totalSpacerHeight, inputs.heightVar);
1001
1029
  inputs.setDockHeight(totalSpacerHeight);
1002
1030
  }
1003
1031
  };
@@ -1016,144 +1044,163 @@ function createHeightController(initial, setContainerHeight) {
1016
1044
  };
1017
1045
  }
1018
1046
  function useDockHeightController(t0) {
1019
- const $ = c(31);
1047
+ const $ = c(40);
1020
1048
  const {
1021
1049
  contentKey: t1,
1022
- isHud: t2,
1050
+ heightVar,
1051
+ fitContent: t2,
1052
+ isHud: t3,
1053
+ padding,
1023
1054
  setDockHeight,
1024
- surfacePhase: t3
1055
+ surfacePhase: t4
1025
1056
  } = t0;
1026
1057
  const contentKey = t1 === void 0 ? null : t1;
1027
- const isHud = t2 === void 0 ? false : t2;
1028
- const surfacePhase = t3 === void 0 ? DOCK_SURFACE_PHASE.IDLE : t3;
1029
- let t4;
1030
- if ($[0] !== isHud) {
1031
- t4 = () => getBaseHeight(isHud);
1058
+ const fitContent = t2 === void 0 ? false : t2;
1059
+ const isHud = t3 === void 0 ? false : t3;
1060
+ const surfacePhase = t4 === void 0 ? DOCK_SURFACE_PHASE.IDLE : t4;
1061
+ let t5;
1062
+ if ($[0] !== isHud || $[1] !== padding) {
1063
+ t5 = () => getDockCardMinHeight(isHud, padding);
1032
1064
  $[0] = isHud;
1033
- $[1] = t4;
1065
+ $[1] = padding;
1066
+ $[2] = t5;
1034
1067
  } else {
1035
- t4 = $[1];
1068
+ t5 = $[2];
1036
1069
  }
1037
- const [containerHeight, setContainerHeight] = useState(t4);
1038
- let t5;
1039
- if ($[2] !== isHud || $[3] !== setDockHeight) {
1040
- t5 = () => createHeightController({
1070
+ const [containerHeight, setContainerHeight] = useState(t5);
1071
+ let t6;
1072
+ if ($[3] !== fitContent || $[4] !== heightVar || $[5] !== isHud || $[6] !== padding || $[7] !== setDockHeight) {
1073
+ t6 = () => createHeightController({
1074
+ heightVar,
1075
+ fitContent,
1041
1076
  isHud,
1077
+ padding,
1042
1078
  setDockHeight
1043
1079
  }, setContainerHeight);
1044
- $[2] = isHud;
1045
- $[3] = setDockHeight;
1046
- $[4] = t5;
1080
+ $[3] = fitContent;
1081
+ $[4] = heightVar;
1082
+ $[5] = isHud;
1083
+ $[6] = padding;
1084
+ $[7] = setDockHeight;
1085
+ $[8] = t6;
1047
1086
  } else {
1048
- t5 = $[4];
1087
+ t6 = $[8];
1049
1088
  }
1050
- const [t6] = useState(t5);
1089
+ const [t7] = useState(t6);
1051
1090
  const {
1052
1091
  applyHeight,
1053
1092
  dispose,
1054
1093
  handleContentHeightChange,
1055
1094
  setInputs
1056
- } = t6;
1057
- let t7;
1095
+ } = t7;
1058
1096
  let t8;
1059
- if ($[5] !== isHud || $[6] !== setDockHeight || $[7] !== setInputs) {
1060
- t7 = () => {
1097
+ let t9;
1098
+ if ($[9] !== fitContent || $[10] !== heightVar || $[11] !== isHud || $[12] !== padding || $[13] !== setDockHeight || $[14] !== setInputs) {
1099
+ t8 = () => {
1061
1100
  setInputs({
1101
+ heightVar,
1102
+ fitContent,
1062
1103
  isHud,
1104
+ padding,
1063
1105
  setDockHeight
1064
1106
  });
1065
1107
  };
1066
- t8 = [isHud, setDockHeight, setInputs];
1067
- $[5] = isHud;
1068
- $[6] = setDockHeight;
1069
- $[7] = setInputs;
1070
- $[8] = t7;
1071
- $[9] = t8;
1108
+ t9 = [heightVar, fitContent, isHud, padding, setDockHeight, setInputs];
1109
+ $[9] = fitContent;
1110
+ $[10] = heightVar;
1111
+ $[11] = isHud;
1112
+ $[12] = padding;
1113
+ $[13] = setDockHeight;
1114
+ $[14] = setInputs;
1115
+ $[15] = t8;
1116
+ $[16] = t9;
1072
1117
  } else {
1073
- t7 = $[8];
1074
- t8 = $[9];
1118
+ t8 = $[15];
1119
+ t9 = $[16];
1075
1120
  }
1076
- useLayoutEffect(t7, t8);
1121
+ useLayoutEffect(t8, t9);
1077
1122
  let t10;
1078
- let t9;
1079
- if ($[10] !== dispose) {
1080
- t9 = () => dispose;
1081
- t10 = [dispose];
1082
- $[10] = dispose;
1083
- $[11] = t10;
1084
- $[12] = t9;
1085
- } else {
1086
- t10 = $[11];
1087
- t9 = $[12];
1088
- }
1089
- useEffect(t9, t10);
1090
1123
  let t11;
1091
- if ($[13] !== applyHeight) {
1092
- t11 = () => applyHeight();
1093
- $[13] = applyHeight;
1094
- $[14] = t11;
1124
+ if ($[17] !== dispose) {
1125
+ t10 = () => dispose;
1126
+ t11 = [dispose];
1127
+ $[17] = dispose;
1128
+ $[18] = t10;
1129
+ $[19] = t11;
1095
1130
  } else {
1096
- t11 = $[14];
1131
+ t10 = $[18];
1132
+ t11 = $[19];
1097
1133
  }
1134
+ useEffect(t10, t11);
1098
1135
  let t12;
1099
- if ($[15] !== applyHeight || $[16] !== contentKey) {
1100
- t12 = [applyHeight, contentKey];
1101
- $[15] = applyHeight;
1102
- $[16] = contentKey;
1103
- $[17] = t12;
1136
+ if ($[20] !== applyHeight) {
1137
+ t12 = () => applyHeight();
1138
+ $[20] = applyHeight;
1139
+ $[21] = t12;
1104
1140
  } else {
1105
- t12 = $[17];
1141
+ t12 = $[21];
1106
1142
  }
1107
- useLayoutEffect(t11, t12);
1108
1143
  let t13;
1109
- if ($[18] !== applyHeight) {
1110
- t13 = () => applyHeight();
1111
- $[18] = applyHeight;
1112
- $[19] = t13;
1144
+ if ($[22] !== applyHeight || $[23] !== contentKey) {
1145
+ t13 = [applyHeight, contentKey];
1146
+ $[22] = applyHeight;
1147
+ $[23] = contentKey;
1148
+ $[24] = t13;
1113
1149
  } else {
1114
- t13 = $[19];
1150
+ t13 = $[24];
1115
1151
  }
1152
+ useLayoutEffect(t12, t13);
1116
1153
  let t14;
1117
- if ($[20] !== applyHeight || $[21] !== surfacePhase) {
1118
- t14 = [applyHeight, surfacePhase];
1119
- $[20] = applyHeight;
1120
- $[21] = surfacePhase;
1121
- $[22] = t14;
1154
+ if ($[25] !== applyHeight) {
1155
+ t14 = () => applyHeight();
1156
+ $[25] = applyHeight;
1157
+ $[26] = t14;
1122
1158
  } else {
1123
- t14 = $[22];
1159
+ t14 = $[26];
1124
1160
  }
1125
- useLayoutEffect(t13, t14);
1126
1161
  let t15;
1127
- if ($[23] !== applyHeight) {
1128
- t15 = () => applyHeight();
1129
- $[23] = applyHeight;
1130
- $[24] = t15;
1162
+ if ($[27] !== applyHeight || $[28] !== surfacePhase) {
1163
+ t15 = [applyHeight, surfacePhase];
1164
+ $[27] = applyHeight;
1165
+ $[28] = surfacePhase;
1166
+ $[29] = t15;
1131
1167
  } else {
1132
- t15 = $[24];
1168
+ t15 = $[29];
1133
1169
  }
1170
+ useLayoutEffect(t14, t15);
1134
1171
  let t16;
1135
- if ($[25] !== applyHeight || $[26] !== isHud) {
1136
- t16 = [applyHeight, isHud];
1137
- $[25] = applyHeight;
1138
- $[26] = isHud;
1139
- $[27] = t16;
1172
+ if ($[30] !== applyHeight) {
1173
+ t16 = () => applyHeight();
1174
+ $[30] = applyHeight;
1175
+ $[31] = t16;
1140
1176
  } else {
1141
- t16 = $[27];
1177
+ t16 = $[31];
1142
1178
  }
1143
- useLayoutEffect(t15, t16);
1144
1179
  let t17;
1145
- if ($[28] !== containerHeight || $[29] !== handleContentHeightChange) {
1146
- t17 = {
1180
+ if ($[32] !== applyHeight || $[33] !== fitContent || $[34] !== isHud || $[35] !== padding) {
1181
+ t17 = [applyHeight, fitContent, isHud, padding];
1182
+ $[32] = applyHeight;
1183
+ $[33] = fitContent;
1184
+ $[34] = isHud;
1185
+ $[35] = padding;
1186
+ $[36] = t17;
1187
+ } else {
1188
+ t17 = $[36];
1189
+ }
1190
+ useLayoutEffect(t16, t17);
1191
+ let t18;
1192
+ if ($[37] !== containerHeight || $[38] !== handleContentHeightChange) {
1193
+ t18 = {
1147
1194
  containerHeight,
1148
1195
  handleContentHeightChange
1149
1196
  };
1150
- $[28] = containerHeight;
1151
- $[29] = handleContentHeightChange;
1152
- $[30] = t17;
1197
+ $[37] = containerHeight;
1198
+ $[38] = handleContentHeightChange;
1199
+ $[39] = t18;
1153
1200
  } else {
1154
- t17 = $[30];
1201
+ t18 = $[39];
1155
1202
  }
1156
- return t17;
1203
+ return t18;
1157
1204
  }
1158
1205
 
1159
1206
  // src/modules/dock/lib/dom.ts
@@ -1297,7 +1344,11 @@ function useDockViewport(t0) {
1297
1344
  const targetWidth = getTargetItemWidth(activeItem);
1298
1345
  const [, setViewportRevision] = useState(0);
1299
1346
  const portalTarget = useSyncExternalStore(emptySubscribe, _temp4, _temp22);
1347
+ const {
1348
+ deck
1349
+ } = useDockMotion();
1300
1350
  const stackWidth = getDockCardWidth({
1351
+ fallback: deck.width,
1301
1352
  width: targetWidth
1302
1353
  });
1303
1354
  let t1;
@@ -5073,11 +5124,10 @@ function resolveDockHeaderKey({
5073
5124
  showVideoIcon = false
5074
5125
  }) {
5075
5126
  const statusPart = link?.isStatus ? `status:${link.statusType || link.type || "status"}` : "standard";
5076
- const identityPart = link?.path || link?.name || link?.id || "item";
5077
5127
  const titlePart = link?.title || link?.name || "";
5078
5128
  const descPart = description || "";
5079
5129
  const iconPart = showVideoIcon ? "video" : link?.icon || "no-icon";
5080
- return `${statusPart}:${identityPart}:${iconPart}:${titlePart}:${descPart}`;
5130
+ return `${statusPart}:${iconPart}:${titlePart}:${descPart}`;
5081
5131
  }
5082
5132
  function findDockItemIndex(dockItems, activeItem, pathname) {
5083
5133
  const normalizedPathname = normalizePath(pathname);
@@ -5158,7 +5208,7 @@ function getIsItemActive(link, activeItem) {
5158
5208
 
5159
5209
  // src/modules/dock/runtime/display.ts
5160
5210
  function usePendingRouteHold(pathname, match, t0) {
5161
- const $ = c(26);
5211
+ const $ = c(30);
5162
5212
  let t1;
5163
5213
  if ($[0] !== t0) {
5164
5214
  t1 = t0 === void 0 ? {} : t0;
@@ -5244,36 +5294,45 @@ function usePendingRouteHold(pathname, match, t0) {
5244
5294
  t8 = $[17];
5245
5295
  }
5246
5296
  useEffect(t7, t8);
5247
- const t9 = hold.isOpen && hold.pathname === normalizedPathname;
5297
+ let selected;
5248
5298
  let t10;
5249
- if ($[18] !== lastMatched || $[19] !== match || $[20] !== normalizedPathname || $[21] !== t9) {
5250
- t10 = selectPendingRouteItem({
5299
+ let t9;
5300
+ if ($[18] !== hold.isOpen || $[19] !== hold.pathname || $[20] !== isNavigating || $[21] !== lastMatched || $[22] !== match || $[23] !== normalizedPathname) {
5301
+ selected = selectPendingRouteItem({
5251
5302
  heldItem: lastMatched,
5252
- isHolding: t9,
5303
+ isHolding: hold.isOpen && hold.pathname === normalizedPathname,
5253
5304
  match,
5254
5305
  pathname: normalizedPathname
5255
5306
  });
5256
- $[18] = lastMatched;
5257
- $[19] = match;
5258
- $[20] = normalizedPathname;
5259
- $[21] = t9;
5260
- $[22] = t10;
5307
+ t9 = Boolean;
5308
+ t10 = (hold.isOpen || isNavigating) && selected?.path && !isInlineActionPathMatch(selected.path, normalizedPathname);
5309
+ $[18] = hold.isOpen;
5310
+ $[19] = hold.pathname;
5311
+ $[20] = isNavigating;
5312
+ $[21] = lastMatched;
5313
+ $[22] = match;
5314
+ $[23] = normalizedPathname;
5315
+ $[24] = selected;
5316
+ $[25] = t10;
5317
+ $[26] = t9;
5261
5318
  } else {
5262
- t10 = $[22];
5319
+ selected = $[24];
5320
+ t10 = $[25];
5321
+ t9 = $[26];
5263
5322
  }
5264
- const selected = t10;
5265
- const isHeld = selected !== match.item;
5323
+ const isStale = t9(t10);
5324
+ const isPending = selected !== match.item || isStale;
5266
5325
  let t11;
5267
- if ($[23] !== isHeld || $[24] !== selected) {
5268
- t11 = isHeld && selected ? {
5326
+ if ($[27] !== isPending || $[28] !== selected) {
5327
+ t11 = isPending && selected ? {
5269
5328
  ...selected,
5270
5329
  isRoutePending: true
5271
5330
  } : selected;
5272
- $[23] = isHeld;
5273
- $[24] = selected;
5274
- $[25] = t11;
5331
+ $[27] = isPending;
5332
+ $[28] = selected;
5333
+ $[29] = t11;
5275
5334
  } else {
5276
- t11 = $[25];
5335
+ t11 = $[29];
5277
5336
  }
5278
5337
  return t11;
5279
5338
  }
@@ -5703,28 +5762,29 @@ function useDock() {
5703
5762
  navigate: navigateWithGuards,
5704
5763
  pathname
5705
5764
  } = core;
5706
- let t0;
5707
- if ($[0] !== activeTransaction || $[1] !== pathname) {
5708
- t0 = activeTransaction?.to ? normalizePath(activeTransaction.to) : pathname;
5709
- $[0] = activeTransaction;
5710
- $[1] = pathname;
5711
- $[2] = t0;
5765
+ const t0 = activeTransaction?.to;
5766
+ let t1;
5767
+ if ($[0] !== pathname || $[1] !== t0) {
5768
+ t1 = getDockRoutePathname(pathname, t0);
5769
+ $[0] = pathname;
5770
+ $[1] = t0;
5771
+ $[2] = t1;
5712
5772
  } else {
5713
- t0 = $[2];
5773
+ t1 = $[2];
5714
5774
  }
5715
- const effectivePathname = t0;
5716
- const t1 = Boolean(activeTransaction);
5717
- let t2;
5718
- if ($[3] !== t1) {
5719
- t2 = {
5720
- isNavigating: t1
5775
+ const effectivePathname = t1;
5776
+ const t2 = Boolean(activeTransaction);
5777
+ let t3;
5778
+ if ($[3] !== t2) {
5779
+ t3 = {
5780
+ isNavigating: t2
5721
5781
  };
5722
- $[3] = t1;
5723
- $[4] = t2;
5782
+ $[3] = t2;
5783
+ $[4] = t3;
5724
5784
  } else {
5725
- t2 = $[4];
5785
+ t3 = $[4];
5726
5786
  }
5727
- const display = useDockDisplay(effectivePathname, t2);
5787
+ const display = useDockDisplay(effectivePathname, t3);
5728
5788
  const {
5729
5789
  dockItems,
5730
5790
  activeItem,
@@ -5735,9 +5795,9 @@ function useDock() {
5735
5795
  const isHudModeActive = attention?.kind === DOCK_ATTENTION_KIND.HUD || attention?.kind === DOCK_ATTENTION_KIND.OPERATION;
5736
5796
  const isSurfaceActive = Boolean(activeItem?.isSurface);
5737
5797
  const activeItemHasAction = Boolean(activeItem?.action);
5738
- let t3;
5798
+ let t4;
5739
5799
  if ($[5] !== isExpanded || $[6] !== isSurfaceActive || $[7] !== setExpandedState) {
5740
- t3 = (nextValue) => {
5800
+ t4 = (nextValue) => {
5741
5801
  const resolvedValue = typeof nextValue === "function" ? nextValue(isExpanded) : nextValue;
5742
5802
  if (isSurfaceActive && resolvedValue) {
5743
5803
  return;
@@ -5747,16 +5807,16 @@ function useDock() {
5747
5807
  $[5] = isExpanded;
5748
5808
  $[6] = isSurfaceActive;
5749
5809
  $[7] = setExpandedState;
5750
- $[8] = t3;
5810
+ $[8] = t4;
5751
5811
  } else {
5752
- t3 = $[8];
5812
+ t4 = $[8];
5753
5813
  }
5754
- const setExpanded = t3;
5814
+ const setExpanded = t4;
5755
5815
  const wasSurfaceActiveRef = useRef(false);
5756
- let t4;
5757
5816
  let t5;
5817
+ let t6;
5758
5818
  if ($[9] !== isSurfaceActive) {
5759
- t4 = () => {
5819
+ t5 = () => {
5760
5820
  if (isSurfaceActive) {
5761
5821
  wasSurfaceActiveRef.current = true;
5762
5822
  return;
@@ -5766,37 +5826,37 @@ function useDock() {
5766
5826
  setIsHovered(false);
5767
5827
  }
5768
5828
  };
5769
- t5 = [isSurfaceActive];
5829
+ t6 = [isSurfaceActive];
5770
5830
  $[9] = isSurfaceActive;
5771
- $[10] = t4;
5772
- $[11] = t5;
5831
+ $[10] = t5;
5832
+ $[11] = t6;
5773
5833
  } else {
5774
- t4 = $[10];
5775
- t5 = $[11];
5834
+ t5 = $[10];
5835
+ t6 = $[11];
5776
5836
  }
5777
- useEffect(t4, t5);
5778
- let t6;
5837
+ useEffect(t5, t6);
5779
5838
  let t7;
5839
+ let t8;
5780
5840
  if ($[12] !== isExpanded || $[13] !== isSurfaceActive || $[14] !== setExpandedState) {
5781
- t6 = () => {
5841
+ t7 = () => {
5782
5842
  if (isSurfaceActive && isExpanded) {
5783
5843
  setExpandedState(false);
5784
5844
  }
5785
5845
  };
5786
- t7 = [isExpanded, isSurfaceActive, setExpandedState];
5846
+ t8 = [isExpanded, isSurfaceActive, setExpandedState];
5787
5847
  $[12] = isExpanded;
5788
5848
  $[13] = isSurfaceActive;
5789
5849
  $[14] = setExpandedState;
5790
- $[15] = t6;
5791
- $[16] = t7;
5850
+ $[15] = t7;
5851
+ $[16] = t8;
5792
5852
  } else {
5793
- t6 = $[15];
5794
- t7 = $[16];
5853
+ t7 = $[15];
5854
+ t8 = $[16];
5795
5855
  }
5796
- useEffect(t6, t7);
5797
- let t8;
5856
+ useEffect(t7, t8);
5857
+ let t9;
5798
5858
  if ($[17] !== guards || $[18] !== navigateWithGuards || $[19] !== setExpanded || $[20] !== setSearchQuery) {
5799
- t8 = async (href, options) => {
5859
+ t9 = async (href, options) => {
5800
5860
  if (!href) {
5801
5861
  return false;
5802
5862
  }
@@ -5822,14 +5882,14 @@ function useDock() {
5822
5882
  $[18] = navigateWithGuards;
5823
5883
  $[19] = setExpanded;
5824
5884
  $[20] = setSearchQuery;
5825
- $[21] = t8;
5885
+ $[21] = t9;
5826
5886
  } else {
5827
- t8 = $[21];
5887
+ t9 = $[21];
5828
5888
  }
5829
- const navigate = t8;
5830
- let t9;
5889
+ const navigate = t9;
5890
+ let t10;
5831
5891
  if ($[22] !== activeItem || $[23] !== dockItems || $[24] !== effectivePathname) {
5832
- t9 = {
5892
+ t10 = {
5833
5893
  dockItems,
5834
5894
  activeItem,
5835
5895
  pathname: effectivePathname
@@ -5837,31 +5897,31 @@ function useDock() {
5837
5897
  $[22] = activeItem;
5838
5898
  $[23] = dockItems;
5839
5899
  $[24] = effectivePathname;
5840
- $[25] = t9;
5900
+ $[25] = t10;
5841
5901
  } else {
5842
- t9 = $[25];
5902
+ t10 = $[25];
5843
5903
  }
5844
5904
  const {
5845
5905
  displayItems,
5846
5906
  activeIndex: layoutActiveIndex
5847
- } = useDockLayout(t9);
5848
- let t10;
5907
+ } = useDockLayout(t10);
5908
+ let t11;
5849
5909
  if ($[26] !== setExpanded || $[27] !== setSearchQuery) {
5850
- t10 = () => {
5910
+ t11 = () => {
5851
5911
  setExpanded(false);
5852
5912
  setSearchQuery("");
5853
5913
  setIsHovered(false);
5854
5914
  };
5855
5915
  $[26] = setExpanded;
5856
5916
  $[27] = setSearchQuery;
5857
- $[28] = t10;
5917
+ $[28] = t11;
5858
5918
  } else {
5859
- t10 = $[28];
5919
+ t11 = $[28];
5860
5920
  }
5861
- useDockRouteReset(pathname, t10);
5862
- let t11;
5921
+ useDockRouteReset(pathname, t11);
5922
+ let t12;
5863
5923
  if ($[29] !== activeItem || $[30] !== activeItemHasAction || $[31] !== activeTransaction || $[32] !== attention || $[33] !== cancelDock || $[34] !== closeSurface || $[35] !== displayItems || $[36] !== isExpanded || $[37] !== isHovered || $[38] !== isHudModeActive || $[39] !== lastTransaction || $[40] !== layoutActiveIndex || $[41] !== locationKey || $[42] !== navigate || $[43] !== pathname || $[44] !== searchQuery || $[45] !== setDockHeight || $[46] !== setExpanded || $[47] !== setSearchQuery || $[48] !== statusState || $[49] !== topology) {
5864
- t11 = {
5924
+ t12 = {
5865
5925
  dockItems: displayItems,
5866
5926
  activeItem,
5867
5927
  activeIndex: layoutActiveIndex,
@@ -5906,11 +5966,11 @@ function useDock() {
5906
5966
  $[47] = setSearchQuery;
5907
5967
  $[48] = statusState;
5908
5968
  $[49] = topology;
5909
- $[50] = t11;
5969
+ $[50] = t12;
5910
5970
  } else {
5911
- t11 = $[50];
5971
+ t12 = $[50];
5912
5972
  }
5913
- return t11;
5973
+ return t12;
5914
5974
  }
5915
5975
  function _temp10(state) {
5916
5976
  return {
@@ -5925,6 +5985,7 @@ var OUTSIDE_DISMISS_HANDLED = "handled";
5925
5985
  var OUTSIDE_DISMISS_UNHANDLED = "unhandled";
5926
5986
  var ACTIVE_KEY_FALLBACK = "active";
5927
5987
  var DEFAULT_ROUTE_KEY = "default";
5988
+ var FRONT_CARD_KEY = "dock-card:front";
5928
5989
  function resolveDockContentKey(activeItem, isHudActive, hud) {
5929
5990
  if (activeItem?.isSurface) return `surface:${activeItem.surfaceId ?? activeItem.path ?? ACTIVE_KEY_FALLBACK}`;
5930
5991
  if (isHudActive) return `hud:${hud?.id || ACTIVE_KEY_FALLBACK}`;
@@ -5946,6 +6007,7 @@ function dismissSurfaceFromOutside(activeItem) {
5946
6007
  function createCardHandlers({
5947
6008
  canTopCardPreview,
5948
6009
  clearHoverState,
6010
+ compact,
5949
6011
  expanded,
5950
6012
  isStatusActive,
5951
6013
  isTop,
@@ -5965,11 +6027,15 @@ function createCardHandlers({
5965
6027
  };
5966
6028
  const handleMouseLeave = () => {
5967
6029
  if (expanded) setFocusedIndex(NO_FOCUSED_INDEX2);
5968
- if (!isTop || !canTopCardPreview) return;
6030
+ if (!isTop) return;
5969
6031
  setIsStackHovered(false);
5970
6032
  setIsHovered(false);
5971
6033
  };
5972
6034
  const handleClick = () => {
6035
+ if (compact) {
6036
+ compact.setCompact(false);
6037
+ return;
6038
+ }
5973
6039
  if (item.isOverlay || isStatusActive || item.isStatus) return;
5974
6040
  if (!expanded) {
5975
6041
  clearHoverState();
@@ -5996,6 +6062,7 @@ function createDockCardProps({
5996
6062
  expanded,
5997
6063
  handleContentHeightChange,
5998
6064
  hud,
6065
+ compact,
5999
6066
  isExtensionsVisible,
6000
6067
  isHudActive,
6001
6068
  isStackHovered,
@@ -6007,9 +6074,10 @@ function createDockCardProps({
6007
6074
  setIsStackHovered,
6008
6075
  statusStyle
6009
6076
  }) {
6010
- const positionedDockItems = dockItems.map((item, index) => ({
6077
+ const shownItems = compact ? dockItems.slice(0, 1) : dockItems;
6078
+ const positionedDockItems = shownItems.map((item, index) => ({
6011
6079
  item,
6012
- key: getItemKey(item, index),
6080
+ key: index === 0 ? FRONT_CARD_KEY : getItemKey(item, index),
6013
6081
  position: index
6014
6082
  })).sort((left, right) => left.key.localeCompare(right.key));
6015
6083
  return positionedDockItems.map(({
@@ -6019,7 +6087,7 @@ function createDockCardProps({
6019
6087
  }) => {
6020
6088
  const isTop = position === 0;
6021
6089
  const isActive = getIsItemActive(item, activeItem);
6022
- const canTopCardPreview = !isStatusActive;
6090
+ const canTopCardPreview = !isStatusActive && !compact;
6023
6091
  const {
6024
6092
  handleClick,
6025
6093
  handleMouseEnter,
@@ -6028,6 +6096,7 @@ function createDockCardProps({
6028
6096
  canTopCardPreview,
6029
6097
  clearHoverState,
6030
6098
  expanded,
6099
+ compact: isTop ? compact : null,
6031
6100
  isStatusActive,
6032
6101
  isTop,
6033
6102
  item,
@@ -6056,6 +6125,7 @@ function createDockCardProps({
6056
6125
  hud,
6057
6126
  clearHud,
6058
6127
  contextCommands: contextActions,
6128
+ compact: isTop ? compact : null,
6059
6129
  onMouseEnter: handleMouseEnter,
6060
6130
  onMouseLeave: handleMouseLeave,
6061
6131
  onClick: handleClick,
@@ -6065,8 +6135,9 @@ function createDockCardProps({
6065
6135
  }
6066
6136
 
6067
6137
  // src/modules/dock/runtime/dock.tsx
6138
+ var DEFAULT_COMPACT_KEY = "default";
6068
6139
  function useDockModel() {
6069
- const $ = c(86);
6140
+ const $ = c(78);
6070
6141
  const {
6071
6142
  activeItem,
6072
6143
  dockItems,
@@ -6099,12 +6170,15 @@ function useDockModel() {
6099
6170
  useDockViewConnection(t0);
6100
6171
  const isFullscreenStateActive = useIsFullscreenStateActive();
6101
6172
  const {
6173
+ compact,
6102
6174
  contextActions,
6103
6175
  hud
6104
6176
  } = useDockSelector(_temp11, _temp25);
6105
6177
  const {
6106
- clearHud
6178
+ clearHud,
6179
+ setCompact
6107
6180
  } = useDockActions();
6181
+ const [compactWidth, setCompactWidth] = useState(0);
6108
6182
  const [isStackHovered, setIsStackHovered] = useState(false);
6109
6183
  const [focusedIndex, setFocusedIndex] = useState(NO_FOCUSED_INDEX2);
6110
6184
  const isNotificationVisible = useDockNotificationVisible();
@@ -6155,62 +6229,108 @@ function useDockModel() {
6155
6229
  const isSubCardVisible = scene.isCompanionVisible;
6156
6230
  const isExtensionsVisible = useIsSurfaceExtensionsVisible(activeItem);
6157
6231
  let t3;
6158
- if ($[13] !== activeItem || $[14] !== hud || $[15] !== isHudActive) {
6159
- t3 = resolveDockContentKey(activeItem, isHudActive, hud);
6232
+ if ($[13] !== activeItem) {
6233
+ t3 = isNotFoundItem(activeItem);
6160
6234
  $[13] = activeItem;
6161
- $[14] = hud;
6162
- $[15] = isHudActive;
6163
- $[16] = t3;
6235
+ $[14] = t3;
6236
+ } else {
6237
+ t3 = $[14];
6238
+ }
6239
+ const isNotFound = Boolean(t3);
6240
+ const isStatusActive = Boolean(activeItem?.isStatus || isNotFound);
6241
+ let t4;
6242
+ if ($[15] !== activeItem) {
6243
+ t4 = activeItem?.isSurface && !isSurfaceLayerShown(activeItem);
6244
+ $[15] = activeItem;
6245
+ $[16] = t4;
6164
6246
  } else {
6165
- t3 = $[16];
6247
+ t4 = $[16];
6166
6248
  }
6167
- const contentKey = t3;
6168
- const t4 = activeItem?.surfacePhase;
6249
+ const isSurfaceFacingPage = Boolean(t4);
6250
+ const isCompactStatus = Boolean(activeItem?.isStatus && !isNotFound);
6251
+ const isCompactActive = compact && !expanded && (!activeItem?.isSurface || isSurfaceFacingPage) && (!isOverlayActive || isSurfaceFacingPage || isCompactStatus) && !isHudActive && (!isStatusActive || isCompactStatus) && !isNotificationVisible;
6252
+ const dockMotion = useDockMotion();
6253
+ const compactPadding = getDockCardPadding(dockMotion.deck.padding);
6254
+ const shownStackWidth = isCompactActive && compactWidth > 0 ? Math.min(compactWidth + compactPadding * 2, stackWidth) : stackWidth;
6255
+ const compactProps = isCompactActive ? {
6256
+ activeItem,
6257
+ contextCommands: contextActions,
6258
+ onWidthChange: setCompactWidth,
6259
+ setCompact
6260
+ } : null;
6169
6261
  let t5;
6170
- if ($[17] !== contentKey || $[18] !== isHudActive || $[19] !== setDockHeight || $[20] !== t4) {
6171
- t5 = {
6262
+ if ($[17] !== activeItem || $[18] !== hud || $[19] !== isCompactActive || $[20] !== isHudActive) {
6263
+ t5 = isCompactActive ? `compact:${activeItem?.path || DEFAULT_COMPACT_KEY}` : resolveDockContentKey(activeItem, isHudActive, hud);
6264
+ $[17] = activeItem;
6265
+ $[18] = hud;
6266
+ $[19] = isCompactActive;
6267
+ $[20] = isHudActive;
6268
+ $[21] = t5;
6269
+ } else {
6270
+ t5 = $[21];
6271
+ }
6272
+ const contentKey = t5;
6273
+ let t6;
6274
+ if ($[22] !== activeItem || $[23] !== isCompactActive) {
6275
+ t6 = isCompactActive || isSurfaceLayerShown(activeItem);
6276
+ $[22] = activeItem;
6277
+ $[23] = isCompactActive;
6278
+ $[24] = t6;
6279
+ } else {
6280
+ t6 = $[24];
6281
+ }
6282
+ const t7 = activeItem?.surfacePhase;
6283
+ let t8;
6284
+ if ($[25] !== contentKey || $[26] !== dockMotion.deck.heightVar || $[27] !== dockMotion.deck.padding || $[28] !== isHudActive || $[29] !== setDockHeight || $[30] !== t6 || $[31] !== t7) {
6285
+ t8 = {
6172
6286
  contentKey,
6287
+ heightVar: dockMotion.deck.heightVar,
6288
+ fitContent: t6,
6173
6289
  isHud: isHudActive,
6290
+ padding: dockMotion.deck.padding,
6174
6291
  setDockHeight,
6175
- surfacePhase: t4
6176
- };
6177
- $[17] = contentKey;
6178
- $[18] = isHudActive;
6179
- $[19] = setDockHeight;
6180
- $[20] = t4;
6181
- $[21] = t5;
6292
+ surfacePhase: t7
6293
+ };
6294
+ $[25] = contentKey;
6295
+ $[26] = dockMotion.deck.heightVar;
6296
+ $[27] = dockMotion.deck.padding;
6297
+ $[28] = isHudActive;
6298
+ $[29] = setDockHeight;
6299
+ $[30] = t6;
6300
+ $[31] = t7;
6301
+ $[32] = t8;
6182
6302
  } else {
6183
- t5 = $[21];
6303
+ t8 = $[32];
6184
6304
  }
6185
6305
  const {
6186
6306
  containerHeight,
6187
6307
  handleContentHeightChange
6188
- } = useDockHeightController(t5);
6189
- let t6;
6190
- if ($[22] !== containerHeight || $[23] !== stackWidth) {
6191
- t6 = {
6192
- width: stackWidth,
6308
+ } = useDockHeightController(t8);
6309
+ let t9;
6310
+ if ($[33] !== containerHeight || $[34] !== shownStackWidth) {
6311
+ t9 = {
6312
+ width: shownStackWidth,
6193
6313
  height: containerHeight,
6194
6314
  resizeDistance: 0
6195
6315
  };
6196
- $[22] = containerHeight;
6197
- $[23] = stackWidth;
6198
- $[24] = t6;
6316
+ $[33] = containerHeight;
6317
+ $[34] = shownStackWidth;
6318
+ $[35] = t9;
6199
6319
  } else {
6200
- t6 = $[24];
6320
+ t9 = $[35];
6201
6321
  }
6202
- const [stackSize, setStackSize] = useState(t6);
6203
- if (stackSize.width !== stackWidth || stackSize.height !== containerHeight) {
6322
+ const [stackSize, setStackSize] = useState(t9);
6323
+ if (stackSize.width !== shownStackWidth || stackSize.height !== containerHeight) {
6204
6324
  setStackSize({
6205
- width: stackWidth,
6325
+ width: shownStackWidth,
6206
6326
  height: containerHeight,
6207
- resizeDistance: Math.hypot(stackWidth - stackSize.width, containerHeight - stackSize.height)
6327
+ resizeDistance: Math.hypot(shownStackWidth - stackSize.width, containerHeight - stackSize.height)
6208
6328
  });
6209
6329
  }
6210
6330
  const surfaceResizeDistance = stackSize.resizeDistance;
6211
- let t7;
6212
- if ($[25] !== activeItem || $[26] !== isOverlayActive || $[27] !== setExpanded) {
6213
- t7 = () => {
6331
+ let t10;
6332
+ if ($[36] !== activeItem || $[37] !== isOverlayActive || $[38] !== setExpanded) {
6333
+ t10 = () => {
6214
6334
  const outcome = dismissSurfaceFromOutside(activeItem);
6215
6335
  if (outcome === OUTSIDE_DISMISS_HANDLED) {
6216
6336
  return;
@@ -6220,17 +6340,17 @@ function useDockModel() {
6220
6340
  }
6221
6341
  setExpanded(false);
6222
6342
  };
6223
- $[25] = activeItem;
6224
- $[26] = isOverlayActive;
6225
- $[27] = setExpanded;
6226
- $[28] = t7;
6343
+ $[36] = activeItem;
6344
+ $[37] = isOverlayActive;
6345
+ $[38] = setExpanded;
6346
+ $[39] = t10;
6227
6347
  } else {
6228
- t7 = $[28];
6348
+ t10 = $[39];
6229
6349
  }
6230
- const handleOutsideDismiss = t7;
6231
- let t8;
6232
- if ($[29] !== dockItems || $[30] !== expanded || $[31] !== focusedIndex || $[32] !== isOverlayActive || $[33] !== navigate || $[34] !== setExpanded) {
6233
- t8 = {
6350
+ const handleOutsideDismiss = t10;
6351
+ let t11;
6352
+ if ($[40] !== dockItems || $[41] !== expanded || $[42] !== focusedIndex || $[43] !== isOverlayActive || $[44] !== navigate || $[45] !== setExpanded) {
6353
+ t11 = {
6234
6354
  expanded,
6235
6355
  focusedIndex,
6236
6356
  isOverlayActive,
@@ -6239,43 +6359,43 @@ function useDockModel() {
6239
6359
  setExpanded,
6240
6360
  setFocusedIndex
6241
6361
  };
6242
- $[29] = dockItems;
6243
- $[30] = expanded;
6244
- $[31] = focusedIndex;
6245
- $[32] = isOverlayActive;
6246
- $[33] = navigate;
6247
- $[34] = setExpanded;
6248
- $[35] = t8;
6362
+ $[40] = dockItems;
6363
+ $[41] = expanded;
6364
+ $[42] = focusedIndex;
6365
+ $[43] = isOverlayActive;
6366
+ $[44] = navigate;
6367
+ $[45] = setExpanded;
6368
+ $[46] = t11;
6249
6369
  } else {
6250
- t8 = $[35];
6370
+ t11 = $[46];
6251
6371
  }
6252
- useDockKeyboard(t8);
6372
+ useDockKeyboard(t11);
6253
6373
  useClickOutside(dockRef, handleOutsideDismiss);
6254
- let t10;
6255
- let t9;
6256
- if ($[36] !== activeIndex || $[37] !== expanded || $[38] !== setIsHovered) {
6257
- t9 = () => {
6374
+ let t12;
6375
+ let t13;
6376
+ if ($[47] !== activeIndex || $[48] !== expanded || $[49] !== setIsHovered) {
6377
+ t12 = () => {
6258
6378
  queueMicrotask(() => {
6259
6379
  setIsStackHovered(false);
6260
6380
  setIsHovered(false);
6261
6381
  setFocusedIndex(expanded ? activeIndex : NO_FOCUSED_INDEX2);
6262
6382
  });
6263
6383
  };
6264
- t10 = [activeIndex, expanded, setIsHovered];
6265
- $[36] = activeIndex;
6266
- $[37] = expanded;
6267
- $[38] = setIsHovered;
6268
- $[39] = t10;
6269
- $[40] = t9;
6384
+ t13 = [activeIndex, expanded, setIsHovered];
6385
+ $[47] = activeIndex;
6386
+ $[48] = expanded;
6387
+ $[49] = setIsHovered;
6388
+ $[50] = t12;
6389
+ $[51] = t13;
6270
6390
  } else {
6271
- t10 = $[39];
6272
- t9 = $[40];
6391
+ t12 = $[50];
6392
+ t13 = $[51];
6273
6393
  }
6274
- useEffect(t9, t10);
6275
- let t11;
6276
- let t12;
6277
- if ($[41] !== isFullscreenStateActive || $[42] !== setExpanded || $[43] !== setIsHovered) {
6278
- t11 = () => {
6394
+ useEffect(t12, t13);
6395
+ let t14;
6396
+ let t15;
6397
+ if ($[52] !== isFullscreenStateActive || $[53] !== setExpanded || $[54] !== setIsHovered) {
6398
+ t14 = () => {
6279
6399
  if (!isFullscreenStateActive) {
6280
6400
  return;
6281
6401
  }
@@ -6285,92 +6405,59 @@ function useDockModel() {
6285
6405
  setIsHovered(false);
6286
6406
  });
6287
6407
  };
6288
- t12 = [isFullscreenStateActive, setExpanded, setIsHovered];
6289
- $[41] = isFullscreenStateActive;
6290
- $[42] = setExpanded;
6291
- $[43] = setIsHovered;
6292
- $[44] = t11;
6293
- $[45] = t12;
6408
+ t15 = [isFullscreenStateActive, setExpanded, setIsHovered];
6409
+ $[52] = isFullscreenStateActive;
6410
+ $[53] = setExpanded;
6411
+ $[54] = setIsHovered;
6412
+ $[55] = t14;
6413
+ $[56] = t15;
6294
6414
  } else {
6295
- t11 = $[44];
6296
- t12 = $[45];
6415
+ t14 = $[55];
6416
+ t15 = $[56];
6297
6417
  }
6298
- useEffect(t11, t12);
6299
- let t13;
6300
- if ($[46] !== activeItem) {
6301
- t13 = isNotFoundItem(activeItem);
6302
- $[46] = activeItem;
6303
- $[47] = t13;
6418
+ useEffect(t14, t15);
6419
+ const statusStyle = isStatusActive && !isNotFound ? activeItem?.style || null : null;
6420
+ const dockCardProps = createDockCardProps({
6421
+ activeItem,
6422
+ clearHud,
6423
+ clearHoverState,
6424
+ contextActions,
6425
+ dockItems,
6426
+ expanded,
6427
+ handleContentHeightChange,
6428
+ hud,
6429
+ compact: compactProps,
6430
+ isExtensionsVisible,
6431
+ isHudActive,
6432
+ isStackHovered,
6433
+ isStatusActive,
6434
+ navigate,
6435
+ setExpanded,
6436
+ setFocusedIndex,
6437
+ setIsHovered,
6438
+ setIsStackHovered,
6439
+ statusStyle
6440
+ });
6441
+ const t16 = activeItem?.surfacePhase ?? null;
6442
+ let t17;
6443
+ if ($[57] !== dockMotion || $[58] !== expanded || $[59] !== surfaceResizeDistance || $[60] !== t16) {
6444
+ t17 = getDockStackTransition(dockMotion, {
6445
+ expanded,
6446
+ resizeDistance: surfaceResizeDistance,
6447
+ surfacePhase: t16
6448
+ });
6449
+ $[57] = dockMotion;
6450
+ $[58] = expanded;
6451
+ $[59] = surfaceResizeDistance;
6452
+ $[60] = t16;
6453
+ $[61] = t17;
6304
6454
  } else {
6305
- t13 = $[47];
6455
+ t17 = $[61];
6306
6456
  }
6307
- const isNotFound = Boolean(t13);
6308
- const isStatusActive = Boolean(activeItem?.isStatus || isNotFound);
6309
- const statusStyle = isStatusActive && !isNotFound ? activeItem?.style || null : null;
6310
- let t14;
6311
- if ($[48] !== activeItem || $[49] !== clearHoverState || $[50] !== clearHud || $[51] !== contextActions || $[52] !== dockItems || $[53] !== expanded || $[54] !== handleContentHeightChange || $[55] !== hud || $[56] !== isExtensionsVisible || $[57] !== isHudActive || $[58] !== isStackHovered || $[59] !== isStatusActive || $[60] !== navigate || $[61] !== setExpanded || $[62] !== setIsHovered || $[63] !== statusStyle) {
6312
- t14 = createDockCardProps({
6313
- activeItem,
6314
- clearHud,
6315
- clearHoverState,
6316
- contextActions,
6317
- dockItems,
6318
- expanded,
6319
- handleContentHeightChange,
6320
- hud,
6321
- isExtensionsVisible,
6322
- isHudActive,
6323
- isStackHovered,
6324
- isStatusActive,
6325
- navigate,
6326
- setExpanded,
6327
- setFocusedIndex,
6328
- setIsHovered,
6329
- setIsStackHovered,
6330
- statusStyle
6331
- });
6332
- $[48] = activeItem;
6333
- $[49] = clearHoverState;
6334
- $[50] = clearHud;
6335
- $[51] = contextActions;
6336
- $[52] = dockItems;
6337
- $[53] = expanded;
6338
- $[54] = handleContentHeightChange;
6339
- $[55] = hud;
6340
- $[56] = isExtensionsVisible;
6341
- $[57] = isHudActive;
6342
- $[58] = isStackHovered;
6343
- $[59] = isStatusActive;
6344
- $[60] = navigate;
6345
- $[61] = setExpanded;
6346
- $[62] = setIsHovered;
6347
- $[63] = statusStyle;
6348
- $[64] = t14;
6349
- } else {
6350
- t14 = $[64];
6351
- }
6352
- const dockCardProps = t14;
6353
- const dockMotion = useDockMotion();
6354
- const t15 = activeItem?.surfacePhase ?? null;
6355
- let t16;
6356
- if ($[65] !== dockMotion || $[66] !== expanded || $[67] !== surfaceResizeDistance || $[68] !== t15) {
6357
- t16 = getDockStackTransition(dockMotion, {
6358
- expanded,
6359
- resizeDistance: surfaceResizeDistance,
6360
- surfacePhase: t15
6361
- });
6362
- $[65] = dockMotion;
6363
- $[66] = expanded;
6364
- $[67] = surfaceResizeDistance;
6365
- $[68] = t15;
6366
- $[69] = t16;
6367
- } else {
6368
- t16 = $[69];
6369
- }
6370
- const dockStackTransition = t16;
6371
- let t17;
6372
- if ($[70] !== activeItem || $[71] !== containerHeight || $[72] !== dockCardProps || $[73] !== dockItems || $[74] !== dockStackTransition || $[75] !== expanded || $[76] !== isBackdropVisible || $[77] !== isBreadcrumbsCardVisible || $[78] !== isExtensionsVisible || $[79] !== isFullscreenStateActive || $[80] !== isOverlayActive || $[81] !== isSubCardVisible || $[82] !== navigate || $[83] !== portalTarget || $[84] !== stackWidth) {
6373
- t17 = {
6457
+ const dockStackTransition = t17;
6458
+ let t18;
6459
+ if ($[62] !== activeItem || $[63] !== containerHeight || $[64] !== dockCardProps || $[65] !== dockItems || $[66] !== dockStackTransition || $[67] !== expanded || $[68] !== isBackdropVisible || $[69] !== isBreadcrumbsCardVisible || $[70] !== isExtensionsVisible || $[71] !== isFullscreenStateActive || $[72] !== isOverlayActive || $[73] !== isSubCardVisible || $[74] !== navigate || $[75] !== portalTarget || $[76] !== shownStackWidth) {
6460
+ t18 = {
6374
6461
  activeItem,
6375
6462
  dockItems,
6376
6463
  expanded,
@@ -6378,7 +6465,7 @@ function useDockModel() {
6378
6465
  isFullscreenStateActive,
6379
6466
  dockRef,
6380
6467
  portalTarget,
6381
- stackWidth,
6468
+ stackWidth: shownStackWidth,
6382
6469
  isOverlayActive,
6383
6470
  isBackdropVisible,
6384
6471
  isBreadcrumbsCardVisible,
@@ -6388,32 +6475,33 @@ function useDockModel() {
6388
6475
  dockCardProps,
6389
6476
  dockStackTransition
6390
6477
  };
6391
- $[70] = activeItem;
6392
- $[71] = containerHeight;
6393
- $[72] = dockCardProps;
6394
- $[73] = dockItems;
6395
- $[74] = dockStackTransition;
6396
- $[75] = expanded;
6397
- $[76] = isBackdropVisible;
6398
- $[77] = isBreadcrumbsCardVisible;
6399
- $[78] = isExtensionsVisible;
6400
- $[79] = isFullscreenStateActive;
6401
- $[80] = isOverlayActive;
6402
- $[81] = isSubCardVisible;
6403
- $[82] = navigate;
6404
- $[83] = portalTarget;
6405
- $[84] = stackWidth;
6406
- $[85] = t17;
6407
- } else {
6408
- t17 = $[85];
6409
- }
6410
- return t17;
6478
+ $[62] = activeItem;
6479
+ $[63] = containerHeight;
6480
+ $[64] = dockCardProps;
6481
+ $[65] = dockItems;
6482
+ $[66] = dockStackTransition;
6483
+ $[67] = expanded;
6484
+ $[68] = isBackdropVisible;
6485
+ $[69] = isBreadcrumbsCardVisible;
6486
+ $[70] = isExtensionsVisible;
6487
+ $[71] = isFullscreenStateActive;
6488
+ $[72] = isOverlayActive;
6489
+ $[73] = isSubCardVisible;
6490
+ $[74] = navigate;
6491
+ $[75] = portalTarget;
6492
+ $[76] = shownStackWidth;
6493
+ $[77] = t18;
6494
+ } else {
6495
+ t18 = $[77];
6496
+ }
6497
+ return t18;
6411
6498
  }
6412
6499
  function _temp25(left, right) {
6413
- return left.contextActions === right.contextActions && left.hud === right.hud;
6500
+ return left.compact === right.compact && left.contextActions === right.contextActions && left.hud === right.hud;
6414
6501
  }
6415
6502
  function _temp11(state) {
6416
6503
  return {
6504
+ compact: state.compact,
6417
6505
  contextActions: state.contextActions,
6418
6506
  hud: state.hud
6419
6507
  };
@@ -6719,6 +6807,7 @@ function useActionSlot(item, pathname, t0) {
6719
6807
  surfacePhase
6720
6808
  });
6721
6809
  const hasMedia = useDockHasMedia();
6810
+ const actionPathname = item.isRoutePending && path ? path : pathname;
6722
6811
  if (isLoading || isOverlay && !isStatus || showsSurface) {
6723
6812
  return null;
6724
6813
  }
@@ -6736,7 +6825,7 @@ function useActionSlot(item, pathname, t0) {
6736
6825
  }
6737
6826
  return t22;
6738
6827
  }
6739
- if (isTop && hasMedia && ownsPathname(path, pathname)) {
6828
+ if (isTop && hasMedia && ownsPathname(path, actionPathname)) {
6740
6829
  let t22;
6741
6830
  if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6742
6831
  t22 = {
@@ -6756,7 +6845,7 @@ function useActionSlot(item, pathname, t0) {
6756
6845
  isLoading,
6757
6846
  isOverlay,
6758
6847
  path
6759
- }, pathname)) {
6848
+ }, actionPathname)) {
6760
6849
  return null;
6761
6850
  }
6762
6851
  let t2;
@@ -7080,16 +7169,16 @@ function useDockCardItemModel(t0) {
7080
7169
  let t17;
7081
7170
  if ($[16] !== cancelRoutePrefetch || $[17] !== expanded || $[18] !== item.isOverlay || $[19] !== item.path || $[20] !== onMouseLeave) {
7082
7171
  t17 = () => {
7172
+ setIsHovered(false);
7173
+ if (!expanded) {
7174
+ onMouseLeave?.();
7175
+ }
7083
7176
  if (item.isOverlay) {
7084
7177
  return;
7085
7178
  }
7086
7179
  if (item.path) {
7087
7180
  cancelRoutePrefetch(item.path);
7088
7181
  }
7089
- setIsHovered(false);
7090
- if (!expanded) {
7091
- onMouseLeave?.();
7092
- }
7093
7182
  };
7094
7183
  $[16] = cancelRoutePrefetch;
7095
7184
  $[17] = expanded;
@@ -7577,134 +7666,6 @@ function DockCardBanner(t0) {
7577
7666
  }
7578
7667
  return t16;
7579
7668
  }
7580
- function useStandardItemContentModel(t0) {
7581
- const $ = c(16);
7582
- const {
7583
- item: propItem,
7584
- link,
7585
- isActive: t1
7586
- } = t0;
7587
- const isActive = t1 === void 0 ? false : t1;
7588
- const item = propItem ?? link;
7589
- const {
7590
- hasMedia,
7591
- isPlaying
7592
- } = useDockMedia();
7593
- const {
7594
- toggle: toggleMedia
7595
- } = useDockMediaActions();
7596
- let t2;
7597
- if ($[0] !== hasMedia || $[1] !== isActive || $[2] !== item.isStatus) {
7598
- t2 = shouldShowMediaIcon({
7599
- isActive,
7600
- hasMedia,
7601
- isStatus: item.isStatus
7602
- });
7603
- $[0] = hasMedia;
7604
- $[1] = isActive;
7605
- $[2] = item.isStatus;
7606
- $[3] = t2;
7607
- } else {
7608
- t2 = $[3];
7609
- }
7610
- const showVideoIcon = t2;
7611
- const description = item.description;
7612
- const effectiveIconOverlay = showVideoIcon ? null : item.iconOverlay;
7613
- const isIconInteractive = Boolean(item.onClick || showVideoIcon);
7614
- let t3;
7615
- if ($[4] !== item || $[5] !== showVideoIcon || $[6] !== toggleMedia) {
7616
- t3 = (event) => {
7617
- if (showVideoIcon) {
7618
- stopAndPrevent(event);
7619
- toggleMedia();
7620
- return;
7621
- }
7622
- if (item.onClick) {
7623
- stopAndPrevent(event);
7624
- item.onClick(event);
7625
- }
7626
- };
7627
- $[4] = item;
7628
- $[5] = showVideoIcon;
7629
- $[6] = toggleMedia;
7630
- $[7] = t3;
7631
- } else {
7632
- t3 = $[7];
7633
- }
7634
- const handleIconClick = t3;
7635
- let t4;
7636
- if ($[8] !== description || $[9] !== effectiveIconOverlay || $[10] !== handleIconClick || $[11] !== isIconInteractive || $[12] !== isPlaying || $[13] !== item || $[14] !== showVideoIcon) {
7637
- t4 = {
7638
- item,
7639
- isPlaying,
7640
- showVideoIcon,
7641
- description,
7642
- effectiveIconOverlay,
7643
- isIconInteractive,
7644
- handleIconClick
7645
- };
7646
- $[8] = description;
7647
- $[9] = effectiveIconOverlay;
7648
- $[10] = handleIconClick;
7649
- $[11] = isIconInteractive;
7650
- $[12] = isPlaying;
7651
- $[13] = item;
7652
- $[14] = showVideoIcon;
7653
- $[15] = t4;
7654
- } else {
7655
- t4 = $[15];
7656
- }
7657
- return t4;
7658
- }
7659
-
7660
- // src/modules/dock/hooks/use-card-header-model.ts
7661
- function useDockCardHeaderModel({
7662
- item: propItem,
7663
- link,
7664
- showVideoIcon = false,
7665
- description
7666
- }) {
7667
- const item = propItem ?? link;
7668
- const bannerUrl = resolveBannerUrl(item.banner, item.bannerUrl);
7669
- const hasBanner = isValidBannerUrl(bannerUrl);
7670
- const headerKey = resolveDockHeaderKey({
7671
- link: item,
7672
- description,
7673
- showVideoIcon
7674
- });
7675
- return {
7676
- item,
7677
- hasBanner,
7678
- headerKey
7679
- };
7680
- }
7681
- function Badge(t0) {
7682
- const $ = c(6);
7683
- const {
7684
- badge
7685
- } = t0;
7686
- const dockMotion = useDockMotion();
7687
- const theme = useDockTheme();
7688
- let t1;
7689
- if ($[0] !== badge || $[1] !== dockMotion || $[2] !== theme) {
7690
- t1 = badge?.visible ? /* @__PURE__ */ jsx(motion.div, { variants: dockMotion.variants.badge, initial: "hidden", animate: "visible", exit: "exit", transition: dockMotion.transitions.badge, className: theme.slots.iconBadge, style: theme.styles.iconBadge, children: badge.value }, badge.value) : null;
7691
- $[0] = badge;
7692
- $[1] = dockMotion;
7693
- $[2] = theme;
7694
- $[3] = t1;
7695
- } else {
7696
- t1 = $[3];
7697
- }
7698
- let t2;
7699
- if ($[4] !== t1) {
7700
- t2 = /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: t1 });
7701
- $[4] = t1;
7702
- $[5] = t2;
7703
- } else {
7704
- t2 = $[5];
7705
- }
7706
- return t2;
7707
- }
7708
7669
  function normalizeToolbarActions(actions) {
7709
7670
  const arrayActions = toArray(actions);
7710
7671
  const normalized = [];
@@ -8049,7 +8010,7 @@ function DockCommand(t0) {
8049
8010
  return t12;
8050
8011
  }
8051
8012
  function DockCommandBar(t0) {
8052
- const $ = c(21);
8013
+ const $ = c(19);
8053
8014
  const {
8054
8015
  activeItem,
8055
8016
  contextCommands: t1,
@@ -8063,77 +8024,360 @@ function DockCommandBar(t0) {
8063
8024
  } else {
8064
8025
  t3 = $[1];
8065
8026
  }
8066
- const contextCommands = t3;
8067
- const hasBanner = t2 === void 0 ? false : t2;
8068
- const dockMotion = useDockMotion();
8027
+ const contextCommands = t3;
8028
+ const hasBanner = t2 === void 0 ? false : t2;
8029
+ const dockMotion = useDockMotion();
8030
+ let t4;
8031
+ if ($[2] !== activeItem || $[3] !== contextCommands || $[4] !== hasBanner) {
8032
+ t4 = {
8033
+ activeItem,
8034
+ contextCommands,
8035
+ hasBanner
8036
+ };
8037
+ $[2] = activeItem;
8038
+ $[3] = contextCommands;
8039
+ $[4] = hasBanner;
8040
+ $[5] = t4;
8041
+ } else {
8042
+ t4 = $[5];
8043
+ }
8044
+ const {
8045
+ actions,
8046
+ isExiting,
8047
+ handleExitComplete
8048
+ } = useDockCommandBarModel(t4);
8049
+ const theme = useDockTheme();
8050
+ if (actions.length === 0 && !isExiting) {
8051
+ return null;
8052
+ }
8053
+ const t5 = theme.slots.commandBar;
8054
+ let t6;
8055
+ if ($[6] !== actions || $[7] !== dockMotion || $[8] !== hasBanner) {
8056
+ let t72;
8057
+ if ($[10] !== dockMotion || $[11] !== hasBanner) {
8058
+ t72 = (action, index) => /* @__PURE__ */ jsx(motion.div, { variants: dockMotion.variants.commandBar, style: {
8059
+ ...DOCK_COMPOSITOR_STYLE,
8060
+ willChange: "transform"
8061
+ }, custom: index, initial: "hidden", animate: "visible", exit: "exit", children: /* @__PURE__ */ jsx(DockCommand, { action, hasBanner }) }, `${action.key || action.icon || `dock-action-${index}`}`);
8062
+ $[10] = dockMotion;
8063
+ $[11] = hasBanner;
8064
+ $[12] = t72;
8065
+ } else {
8066
+ t72 = $[12];
8067
+ }
8068
+ t6 = actions.map(t72);
8069
+ $[6] = actions;
8070
+ $[7] = dockMotion;
8071
+ $[8] = hasBanner;
8072
+ $[9] = t6;
8073
+ } else {
8074
+ t6 = $[9];
8075
+ }
8076
+ let t7;
8077
+ if ($[13] !== handleExitComplete || $[14] !== t6) {
8078
+ t7 = /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", onExitComplete: handleExitComplete, children: t6 });
8079
+ $[13] = handleExitComplete;
8080
+ $[14] = t6;
8081
+ $[15] = t7;
8082
+ } else {
8083
+ t7 = $[15];
8084
+ }
8085
+ let t8;
8086
+ if ($[16] !== t7 || $[17] !== theme.slots.commandBar) {
8087
+ t8 = /* @__PURE__ */ jsx("div", { className: t5, children: t7 });
8088
+ $[16] = t7;
8089
+ $[17] = theme.slots.commandBar;
8090
+ $[18] = t8;
8091
+ } else {
8092
+ t8 = $[18];
8093
+ }
8094
+ return t8;
8095
+ }
8096
+ function statusLine(item) {
8097
+ if (!item?.isStatus) return null;
8098
+ const text = (value) => typeof value === "string" && value.trim() ? value : null;
8099
+ return text(item.description) ?? text(item.title);
8100
+ }
8101
+ function CompactAction(t0) {
8102
+ const $ = c(3);
8103
+ const {
8104
+ action
8105
+ } = t0;
8106
+ const theme = useDockTheme();
8107
+ let t1;
8108
+ if ($[0] !== action || $[1] !== theme.slots.compactActions) {
8109
+ t1 = /* @__PURE__ */ jsx("div", { className: theme.slots.compactActions, onClick: stopPropagationOnly, children: action });
8110
+ $[0] = action;
8111
+ $[1] = theme.slots.compactActions;
8112
+ $[2] = t1;
8113
+ } else {
8114
+ t1 = $[2];
8115
+ }
8116
+ return t1;
8117
+ }
8118
+ function DockCompact(t0) {
8119
+ const $ = c(25);
8120
+ const {
8121
+ action: t1,
8122
+ activeItem,
8123
+ contextCommands,
8124
+ onWidthChange
8125
+ } = t0;
8126
+ const action = t1 === void 0 ? null : t1;
8127
+ const dockMotion = useDockMotion();
8128
+ const theme = useDockTheme();
8129
+ const rowRef = useRef(null);
8130
+ let t2;
8131
+ if ($[0] !== activeItem) {
8132
+ t2 = statusLine(activeItem);
8133
+ $[0] = activeItem;
8134
+ $[1] = t2;
8135
+ } else {
8136
+ t2 = $[1];
8137
+ }
8138
+ const line = t2;
8139
+ let t3;
8140
+ let t4;
8141
+ if ($[2] !== onWidthChange) {
8142
+ t3 = () => {
8143
+ const row = rowRef.current;
8144
+ if (!row || typeof ResizeObserver === "undefined") {
8145
+ return;
8146
+ }
8147
+ const observer = new ResizeObserver((t52) => {
8148
+ const [entry] = t52;
8149
+ const size = entry?.borderBoxSize?.[0]?.inlineSize;
8150
+ if (typeof size === "number") {
8151
+ onWidthChange(Math.ceil(size));
8152
+ }
8153
+ });
8154
+ observer.observe(row);
8155
+ return () => observer.disconnect();
8156
+ };
8157
+ t4 = [onWidthChange];
8158
+ $[2] = onWidthChange;
8159
+ $[3] = t3;
8160
+ $[4] = t4;
8161
+ } else {
8162
+ t3 = $[3];
8163
+ t4 = $[4];
8164
+ }
8165
+ useLayoutEffect(t3, t4);
8166
+ let t5;
8167
+ if ($[5] !== action || $[6] !== activeItem || $[7] !== contextCommands || $[8] !== dockMotion.transitions.headerSwap || $[9] !== dockMotion.variants.compact || $[10] !== line || $[11] !== theme.slots.compactDivider || $[12] !== theme.slots.compactStatus || $[13] !== theme.slots.compactStatusIcon || $[14] !== theme.slots.compactStatusText || $[15] !== theme.slots.compactView) {
8168
+ t5 = line ? /* @__PURE__ */ jsxs(motion.div, { role: "status", className: theme.slots.compactView, style: DOCK_COMPOSITOR_STYLE, variants: dockMotion.variants.compact, initial: "hidden", animate: "visible", exit: "exit", transition: dockMotion.transitions.headerSwap, children: [
8169
+ /* @__PURE__ */ jsxs("span", { className: theme.slots.compactStatus, children: [
8170
+ activeItem?.icon ? /* @__PURE__ */ jsx("span", { className: theme.slots.compactStatusIcon, children: /* @__PURE__ */ jsx(DockIcon, { animated: false, icon: activeItem.icon }) }) : null,
8171
+ /* @__PURE__ */ jsx("span", { className: theme.slots.compactStatusText, children: line })
8172
+ ] }),
8173
+ action ? /* @__PURE__ */ jsx(CompactAction, { action }) : null
8174
+ ] }, `status:${line}`) : /* @__PURE__ */ jsxs(motion.div, { className: theme.slots.compactView, style: DOCK_COMPOSITOR_STYLE, variants: dockMotion.variants.compact, initial: "hidden", animate: "visible", exit: "exit", transition: dockMotion.transitions.headerSwap, children: [
8175
+ action ? /* @__PURE__ */ jsxs(Fragment, { children: [
8176
+ /* @__PURE__ */ jsx(CompactAction, { action }),
8177
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: theme.slots.compactDivider })
8178
+ ] }) : null,
8179
+ /* @__PURE__ */ jsx(DockCommandBar, { activeItem, contextCommands })
8180
+ ] }, "page");
8181
+ $[5] = action;
8182
+ $[6] = activeItem;
8183
+ $[7] = contextCommands;
8184
+ $[8] = dockMotion.transitions.headerSwap;
8185
+ $[9] = dockMotion.variants.compact;
8186
+ $[10] = line;
8187
+ $[11] = theme.slots.compactDivider;
8188
+ $[12] = theme.slots.compactStatus;
8189
+ $[13] = theme.slots.compactStatusIcon;
8190
+ $[14] = theme.slots.compactStatusText;
8191
+ $[15] = theme.slots.compactView;
8192
+ $[16] = t5;
8193
+ } else {
8194
+ t5 = $[16];
8195
+ }
8196
+ const view = t5;
8197
+ let t6;
8198
+ if ($[17] !== view) {
8199
+ t6 = /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", initial: false, children: view });
8200
+ $[17] = view;
8201
+ $[18] = t6;
8202
+ } else {
8203
+ t6 = $[18];
8204
+ }
8205
+ let t7;
8206
+ if ($[19] !== t6 || $[20] !== theme.slots.compact) {
8207
+ t7 = /* @__PURE__ */ jsx("div", { ref: rowRef, className: theme.slots.compact, children: t6 });
8208
+ $[19] = t6;
8209
+ $[20] = theme.slots.compact;
8210
+ $[21] = t7;
8211
+ } else {
8212
+ t7 = $[21];
8213
+ }
8214
+ let t8;
8215
+ if ($[22] !== t7 || $[23] !== theme.slots.compactFrame) {
8216
+ t8 = /* @__PURE__ */ jsx("div", { className: theme.slots.compactFrame, children: t7 });
8217
+ $[22] = t7;
8218
+ $[23] = theme.slots.compactFrame;
8219
+ $[24] = t8;
8220
+ } else {
8221
+ t8 = $[24];
8222
+ }
8223
+ return t8;
8224
+ }
8225
+ function usePendingSkeleton(isPending) {
8226
+ const $ = c(4);
8227
+ const delay = useDockMotion().timings.pendingSkeleton ?? 0;
8228
+ const [isDue, setIsDue] = useState(false);
8229
+ if (!isPending && isDue) {
8230
+ setIsDue(false);
8231
+ }
8232
+ let t0;
8233
+ let t1;
8234
+ if ($[0] !== delay || $[1] !== isPending) {
8235
+ t0 = () => {
8236
+ if (!isPending || delay <= 0) {
8237
+ return;
8238
+ }
8239
+ const timer = setTimeout(() => setIsDue(true), delay * 1e3);
8240
+ return () => clearTimeout(timer);
8241
+ };
8242
+ t1 = [delay, isPending];
8243
+ $[0] = delay;
8244
+ $[1] = isPending;
8245
+ $[2] = t0;
8246
+ $[3] = t1;
8247
+ } else {
8248
+ t0 = $[2];
8249
+ t1 = $[3];
8250
+ }
8251
+ useEffect(t0, t1);
8252
+ return isPending && (delay <= 0 || isDue);
8253
+ }
8254
+ function useStandardItemContentModel(t0) {
8255
+ const $ = c(16);
8256
+ const {
8257
+ item: propItem,
8258
+ link,
8259
+ isActive: t1
8260
+ } = t0;
8261
+ const isActive = t1 === void 0 ? false : t1;
8262
+ const item = propItem ?? link;
8263
+ const {
8264
+ hasMedia,
8265
+ isPlaying
8266
+ } = useDockMedia();
8267
+ const {
8268
+ toggle: toggleMedia
8269
+ } = useDockMediaActions();
8270
+ let t2;
8271
+ if ($[0] !== hasMedia || $[1] !== isActive || $[2] !== item.isStatus) {
8272
+ t2 = shouldShowMediaIcon({
8273
+ isActive,
8274
+ hasMedia,
8275
+ isStatus: item.isStatus
8276
+ });
8277
+ $[0] = hasMedia;
8278
+ $[1] = isActive;
8279
+ $[2] = item.isStatus;
8280
+ $[3] = t2;
8281
+ } else {
8282
+ t2 = $[3];
8283
+ }
8284
+ const showVideoIcon = t2;
8285
+ const description = item.description;
8286
+ const effectiveIconOverlay = showVideoIcon ? null : item.iconOverlay;
8287
+ const isIconInteractive = Boolean(item.onClick || showVideoIcon);
8288
+ let t3;
8289
+ if ($[4] !== item || $[5] !== showVideoIcon || $[6] !== toggleMedia) {
8290
+ t3 = (event) => {
8291
+ if (showVideoIcon) {
8292
+ stopAndPrevent(event);
8293
+ toggleMedia();
8294
+ return;
8295
+ }
8296
+ if (item.onClick) {
8297
+ stopAndPrevent(event);
8298
+ item.onClick(event);
8299
+ }
8300
+ };
8301
+ $[4] = item;
8302
+ $[5] = showVideoIcon;
8303
+ $[6] = toggleMedia;
8304
+ $[7] = t3;
8305
+ } else {
8306
+ t3 = $[7];
8307
+ }
8308
+ const handleIconClick = t3;
8069
8309
  let t4;
8070
- if ($[2] !== activeItem || $[3] !== contextCommands || $[4] !== hasBanner) {
8310
+ if ($[8] !== description || $[9] !== effectiveIconOverlay || $[10] !== handleIconClick || $[11] !== isIconInteractive || $[12] !== isPlaying || $[13] !== item || $[14] !== showVideoIcon) {
8071
8311
  t4 = {
8072
- activeItem,
8073
- contextCommands,
8074
- hasBanner
8312
+ item,
8313
+ isPlaying,
8314
+ showVideoIcon,
8315
+ description,
8316
+ effectiveIconOverlay,
8317
+ isIconInteractive,
8318
+ handleIconClick
8075
8319
  };
8076
- $[2] = activeItem;
8077
- $[3] = contextCommands;
8078
- $[4] = hasBanner;
8079
- $[5] = t4;
8320
+ $[8] = description;
8321
+ $[9] = effectiveIconOverlay;
8322
+ $[10] = handleIconClick;
8323
+ $[11] = isIconInteractive;
8324
+ $[12] = isPlaying;
8325
+ $[13] = item;
8326
+ $[14] = showVideoIcon;
8327
+ $[15] = t4;
8080
8328
  } else {
8081
- t4 = $[5];
8329
+ t4 = $[15];
8082
8330
  }
8331
+ return t4;
8332
+ }
8333
+
8334
+ // src/modules/dock/hooks/use-card-header-model.ts
8335
+ function useDockCardHeaderModel({
8336
+ item: propItem,
8337
+ link,
8338
+ showVideoIcon = false,
8339
+ description
8340
+ }) {
8341
+ const item = propItem ?? link;
8342
+ const bannerUrl = resolveBannerUrl(item.banner, item.bannerUrl);
8343
+ const hasBanner = isValidBannerUrl(bannerUrl);
8344
+ const headerKey = resolveDockHeaderKey({
8345
+ link: item,
8346
+ description,
8347
+ showVideoIcon
8348
+ });
8349
+ return {
8350
+ item,
8351
+ hasBanner,
8352
+ headerKey
8353
+ };
8354
+ }
8355
+ function Badge(t0) {
8356
+ const $ = c(6);
8083
8357
  const {
8084
- actions,
8085
- currentPath,
8086
- isExiting,
8087
- handleExitComplete
8088
- } = useDockCommandBarModel(t4);
8358
+ badge
8359
+ } = t0;
8360
+ const dockMotion = useDockMotion();
8089
8361
  const theme = useDockTheme();
8090
- if (actions.length === 0 && !isExiting) {
8091
- return null;
8092
- }
8093
- const t5 = theme.slots.commandBar;
8094
- let t6;
8095
- if ($[6] !== actions || $[7] !== currentPath || $[8] !== dockMotion || $[9] !== hasBanner) {
8096
- let t72;
8097
- if ($[11] !== currentPath || $[12] !== dockMotion || $[13] !== hasBanner) {
8098
- t72 = (action, index) => /* @__PURE__ */ jsx(motion.div, { variants: dockMotion.variants.commandBar, style: {
8099
- ...DOCK_COMPOSITOR_STYLE,
8100
- willChange: "transform"
8101
- }, custom: index, initial: "hidden", animate: "visible", exit: "exit", children: /* @__PURE__ */ jsx(DockCommand, { action, hasBanner }) }, `${currentPath}-${action.key || action.icon || `dock-action-${index}`}`);
8102
- $[11] = currentPath;
8103
- $[12] = dockMotion;
8104
- $[13] = hasBanner;
8105
- $[14] = t72;
8106
- } else {
8107
- t72 = $[14];
8108
- }
8109
- t6 = actions.map(t72);
8110
- $[6] = actions;
8111
- $[7] = currentPath;
8112
- $[8] = dockMotion;
8113
- $[9] = hasBanner;
8114
- $[10] = t6;
8115
- } else {
8116
- t6 = $[10];
8117
- }
8118
- let t7;
8119
- if ($[15] !== handleExitComplete || $[16] !== t6) {
8120
- t7 = /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", onExitComplete: handleExitComplete, children: t6 });
8121
- $[15] = handleExitComplete;
8122
- $[16] = t6;
8123
- $[17] = t7;
8362
+ let t1;
8363
+ if ($[0] !== badge || $[1] !== dockMotion || $[2] !== theme) {
8364
+ t1 = badge?.visible ? /* @__PURE__ */ jsx(motion.div, { variants: dockMotion.variants.badge, initial: "hidden", animate: "visible", exit: "exit", transition: dockMotion.transitions.badge, className: theme.slots.iconBadge, style: theme.styles.iconBadge, children: badge.value }, badge.value) : null;
8365
+ $[0] = badge;
8366
+ $[1] = dockMotion;
8367
+ $[2] = theme;
8368
+ $[3] = t1;
8124
8369
  } else {
8125
- t7 = $[17];
8370
+ t1 = $[3];
8126
8371
  }
8127
- let t8;
8128
- if ($[18] !== t7 || $[19] !== theme.slots.commandBar) {
8129
- t8 = /* @__PURE__ */ jsx("div", { className: t5, children: t7 });
8130
- $[18] = t7;
8131
- $[19] = theme.slots.commandBar;
8132
- $[20] = t8;
8372
+ let t2;
8373
+ if ($[4] !== t1) {
8374
+ t2 = /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: t1 });
8375
+ $[4] = t1;
8376
+ $[5] = t2;
8133
8377
  } else {
8134
- t8 = $[20];
8378
+ t2 = $[5];
8135
8379
  }
8136
- return t8;
8380
+ return t2;
8137
8381
  }
8138
8382
  function DockDescription(t0) {
8139
8383
  const $ = c(34);
@@ -8332,6 +8576,7 @@ function DockTitle(t0) {
8332
8576
  }
8333
8577
  return t5;
8334
8578
  }
8579
+ var SKELETON_HEADER_KEY = "dock-header:skeleton";
8335
8580
  var HEADER_IDENTITY_STYLE = {
8336
8581
  flex: "1 1 0%",
8337
8582
  minWidth: 0,
@@ -8345,7 +8590,7 @@ function resolveIconAriaLabel(showVideoIcon, isPlaying) {
8345
8590
  return isPlaying ? "Pause" : "Play";
8346
8591
  }
8347
8592
  function DockCardHeader(t0) {
8348
- const $ = c(83);
8593
+ const $ = c(64);
8349
8594
  const {
8350
8595
  item: propItem,
8351
8596
  link,
@@ -8359,7 +8604,8 @@ function DockCardHeader(t0) {
8359
8604
  handleIconClick,
8360
8605
  description,
8361
8606
  isTop: t6,
8362
- contextCommands: t7
8607
+ contextCommands: t7,
8608
+ isSkeleton: t8
8363
8609
  } = t0;
8364
8610
  const activeItem = t1 === void 0 ? null : t1;
8365
8611
  const showVideoIcon = t2 === void 0 ? false : t2;
@@ -8367,19 +8613,20 @@ function DockCardHeader(t0) {
8367
8613
  const effectiveIconOverlay = t4 === void 0 ? null : t4;
8368
8614
  const isIconInteractive = t5 === void 0 ? false : t5;
8369
8615
  const isTop = t6 === void 0 ? false : t6;
8370
- let t8;
8616
+ let t9;
8371
8617
  if ($[0] !== t7) {
8372
- t8 = t7 === void 0 ? [] : t7;
8618
+ t9 = t7 === void 0 ? [] : t7;
8373
8619
  $[0] = t7;
8374
- $[1] = t8;
8620
+ $[1] = t9;
8375
8621
  } else {
8376
- t8 = $[1];
8622
+ t9 = $[1];
8377
8623
  }
8378
- const contextCommands = t8;
8624
+ const contextCommands = t9;
8625
+ const isSkeleton = t8 === void 0 ? false : t8;
8379
8626
  const dockMotion = useDockMotion();
8380
- let t9;
8627
+ let t10;
8381
8628
  if ($[2] !== activeItem || $[3] !== badge || $[4] !== contextCommands || $[5] !== description || $[6] !== effectiveIconOverlay || $[7] !== handleIconClick || $[8] !== isIconInteractive || $[9] !== isPlaying || $[10] !== isTop || $[11] !== itemStyle || $[12] !== link || $[13] !== propItem || $[14] !== showVideoIcon) {
8382
- t9 = {
8629
+ t10 = {
8383
8630
  item: propItem,
8384
8631
  link,
8385
8632
  activeItem,
@@ -8407,218 +8654,131 @@ function DockCardHeader(t0) {
8407
8654
  $[12] = link;
8408
8655
  $[13] = propItem;
8409
8656
  $[14] = showVideoIcon;
8410
- $[15] = t9;
8657
+ $[15] = t10;
8411
8658
  } else {
8412
- t9 = $[15];
8659
+ t10 = $[15];
8413
8660
  }
8414
8661
  const {
8415
8662
  item,
8416
8663
  hasBanner,
8417
8664
  headerKey
8418
- } = useDockCardHeaderModel(t9);
8665
+ } = useDockCardHeaderModel(t10);
8419
8666
  const theme = useDockTheme();
8420
- let t10;
8421
- if ($[16] !== isPlaying || $[17] !== item.icon || $[18] !== showVideoIcon) {
8422
- t10 = showVideoIcon ? resolvePlaybackIcon(isPlaying) : item.icon;
8667
+ let t11;
8668
+ if ($[16] !== isPlaying || $[17] !== item || $[18] !== showVideoIcon) {
8669
+ t11 = showVideoIcon ? resolvePlaybackIcon(isPlaying) : item.icon;
8423
8670
  $[16] = isPlaying;
8424
- $[17] = item.icon;
8671
+ $[17] = item;
8425
8672
  $[18] = showVideoIcon;
8426
- $[19] = t10;
8673
+ $[19] = t11;
8427
8674
  } else {
8428
- t10 = $[19];
8675
+ t11 = $[19];
8429
8676
  }
8430
- const headerIcon = t10;
8677
+ const headerIcon = t11;
8431
8678
  const iconClickHandler = isIconInteractive ? handleIconClick : null;
8432
- let t11;
8679
+ let t12;
8433
8680
  if ($[20] !== isIconInteractive || $[21] !== isPlaying || $[22] !== showVideoIcon) {
8434
- t11 = isIconInteractive ? resolveIconAriaLabel(showVideoIcon, isPlaying) : void 0;
8681
+ t12 = isIconInteractive ? resolveIconAriaLabel(showVideoIcon, isPlaying) : void 0;
8435
8682
  $[20] = isIconInteractive;
8436
8683
  $[21] = isPlaying;
8437
8684
  $[22] = showVideoIcon;
8438
- $[23] = t11;
8685
+ $[23] = t12;
8439
8686
  } else {
8440
- t11 = $[23];
8687
+ t12 = $[23];
8441
8688
  }
8442
- const iconAriaLabel = t11;
8443
- const t12 = theme.slots.header;
8444
- const t13 = theme.slots.headerRow;
8445
- const t14 = dockMotion.variants.headerSwap;
8446
- const t15 = dockMotion.transitions.headerSwap;
8447
- const t16 = theme.slots.headerRow;
8448
- let t17;
8449
- if ($[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8450
- t17 = {
8689
+ const iconAriaLabel = t12;
8690
+ let t13;
8691
+ if ($[24] !== badge || $[25] !== description || $[26] !== dockMotion.skeleton || $[27] !== dockMotion.transitions.headerSwap || $[28] !== dockMotion.variants.headerSwap || $[29] !== effectiveIconOverlay || $[30] !== headerIcon || $[31] !== headerKey || $[32] !== iconAriaLabel || $[33] !== iconClickHandler || $[34] !== isSkeleton || $[35] !== item || $[36] !== itemStyle || $[37] !== showVideoIcon || $[38] !== theme.slots.headerBody || $[39] !== theme.slots.headerIcon || $[40] !== theme.slots.headerIconEmpty || $[41] !== theme.slots.headerRow || $[42] !== theme.slots.headerText || $[43] !== theme.slots.headerTitle || $[44] !== theme.slots.headerTitleRow || $[45] !== theme.slots.loading || $[46] !== theme.slots.loadingDescription || $[47] !== theme.slots.loadingIcon || $[48] !== theme.slots.loadingText || $[49] !== theme.slots.loadingTitle) {
8692
+ t13 = /* @__PURE__ */ jsx("div", { style: HEADER_IDENTITY_STYLE, children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: isSkeleton ? /* @__PURE__ */ jsxs(motion.div, { variants: dockMotion.variants.headerSwap, initial: "hidden", animate: "visible", exit: "exit", transition: dockMotion.transitions.headerSwap, className: theme.slots.loading, style: {
8451
8693
  ...DOCK_COMPOSITOR_STYLE,
8452
8694
  willChange: "transform"
8453
- };
8454
- $[24] = t17;
8455
- } else {
8456
- t17 = $[24];
8457
- }
8458
- let t18;
8459
- if ($[25] !== effectiveIconOverlay || $[26] !== headerIcon || $[27] !== iconAriaLabel || $[28] !== iconClickHandler || $[29] !== item.icon || $[30] !== itemStyle.icon || $[31] !== theme.slots.headerIconEmpty) {
8460
- t18 = item.icon ? /* @__PURE__ */ jsx(DockIcon, { animated: false, icon: headerIcon, iconOverlay: effectiveIconOverlay, style: itemStyle.icon, onClick: iconClickHandler, ariaLabel: iconAriaLabel }) : /* @__PURE__ */ jsx("div", { className: theme.slots.headerIconEmpty });
8461
- $[25] = effectiveIconOverlay;
8462
- $[26] = headerIcon;
8463
- $[27] = iconAriaLabel;
8464
- $[28] = iconClickHandler;
8465
- $[29] = item.icon;
8466
- $[30] = itemStyle.icon;
8467
- $[31] = theme.slots.headerIconEmpty;
8468
- $[32] = t18;
8469
- } else {
8470
- t18 = $[32];
8471
- }
8472
- let t19;
8473
- if ($[33] !== badge || $[34] !== effectiveIconOverlay || $[35] !== showVideoIcon) {
8474
- t19 = !showVideoIcon && !effectiveIconOverlay && /* @__PURE__ */ jsx(Badge, { badge });
8475
- $[33] = badge;
8476
- $[34] = effectiveIconOverlay;
8477
- $[35] = showVideoIcon;
8478
- $[36] = t19;
8479
- } else {
8480
- t19 = $[36];
8481
- }
8482
- let t20;
8483
- if ($[37] !== t18 || $[38] !== t19 || $[39] !== theme.slots.headerIcon) {
8484
- t20 = /* @__PURE__ */ jsxs("div", { className: theme.slots.headerIcon, children: [
8485
- t18,
8486
- t19
8487
- ] });
8488
- $[37] = t18;
8489
- $[38] = t19;
8490
- $[39] = theme.slots.headerIcon;
8491
- $[40] = t20;
8492
- } else {
8493
- t20 = $[40];
8494
- }
8495
- const t21 = theme.slots.headerBody;
8496
- const t22 = theme.slots.headerText;
8497
- const t23 = theme.slots.headerTitleRow;
8498
- const t24 = item.title || item.name;
8499
- const t25 = itemStyle.title;
8500
- const t26 = itemStyle.title?.className;
8501
- let t27;
8502
- if ($[41] !== t26 || $[42] !== theme.slots.headerTitle) {
8503
- t27 = cn(t26, theme.slots.headerTitle);
8504
- $[41] = t26;
8505
- $[42] = theme.slots.headerTitle;
8506
- $[43] = t27;
8507
- } else {
8508
- t27 = $[43];
8509
- }
8510
- let t28;
8511
- if ($[44] !== itemStyle.title || $[45] !== t27) {
8512
- t28 = {
8513
- ...t25,
8514
- className: t27
8515
- };
8516
- $[44] = itemStyle.title;
8517
- $[45] = t27;
8518
- $[46] = t28;
8519
- } else {
8520
- t28 = $[46];
8521
- }
8522
- let t29;
8523
- if ($[47] !== t24 || $[48] !== t28) {
8524
- t29 = /* @__PURE__ */ jsx(DockTitle, { animated: false, text: t24, style: t28 });
8525
- $[47] = t24;
8526
- $[48] = t28;
8527
- $[49] = t29;
8528
- } else {
8529
- t29 = $[49];
8530
- }
8531
- let t30;
8532
- if ($[50] !== t29 || $[51] !== theme.slots.headerTitleRow) {
8533
- t30 = /* @__PURE__ */ jsx("div", { className: t23, children: t29 });
8534
- $[50] = t29;
8535
- $[51] = theme.slots.headerTitleRow;
8536
- $[52] = t30;
8537
- } else {
8538
- t30 = $[52];
8539
- }
8540
- let t31;
8541
- if ($[53] !== description || $[54] !== itemStyle.description) {
8542
- t31 = Boolean(description) && /* @__PURE__ */ jsx(DockDescription, { animated: false, text: description, style: itemStyle.description });
8543
- $[53] = description;
8544
- $[54] = itemStyle.description;
8545
- $[55] = t31;
8546
- } else {
8547
- t31 = $[55];
8548
- }
8549
- let t32;
8550
- if ($[56] !== t30 || $[57] !== t31 || $[58] !== theme.slots.headerText) {
8551
- t32 = /* @__PURE__ */ jsxs("div", { className: t22, children: [
8552
- t30,
8553
- t31
8554
- ] });
8555
- $[56] = t30;
8556
- $[57] = t31;
8557
- $[58] = theme.slots.headerText;
8558
- $[59] = t32;
8559
- } else {
8560
- t32 = $[59];
8561
- }
8562
- let t33;
8563
- if ($[60] !== t32 || $[61] !== theme.slots.headerBody) {
8564
- t33 = /* @__PURE__ */ jsx("div", { className: t21, children: t32 });
8565
- $[60] = t32;
8566
- $[61] = theme.slots.headerBody;
8567
- $[62] = t33;
8568
- } else {
8569
- t33 = $[62];
8570
- }
8571
- let t34;
8572
- if ($[63] !== dockMotion.transitions.headerSwap || $[64] !== dockMotion.variants.headerSwap || $[65] !== headerKey || $[66] !== t20 || $[67] !== t33 || $[68] !== theme.slots.headerRow) {
8573
- t34 = /* @__PURE__ */ jsx("div", { style: HEADER_IDENTITY_STYLE, children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsxs(motion.div, { variants: t14, initial: "hidden", animate: "visible", exit: "exit", transition: t15, className: t16, style: t17, children: [
8574
- t20,
8575
- t33
8695
+ }, children: [
8696
+ /* @__PURE__ */ jsx("div", { className: cn(theme.slots.loadingIcon, dockMotion.skeleton) }),
8697
+ /* @__PURE__ */ jsxs("div", { className: theme.slots.loadingText, children: [
8698
+ /* @__PURE__ */ jsx("div", { className: cn(theme.slots.loadingTitle, dockMotion.skeleton) }),
8699
+ /* @__PURE__ */ jsx("div", { className: cn(theme.slots.loadingDescription, dockMotion.skeleton) })
8700
+ ] })
8701
+ ] }, SKELETON_HEADER_KEY) : /* @__PURE__ */ jsxs(motion.div, { variants: dockMotion.variants.headerSwap, initial: "hidden", animate: "visible", exit: "exit", transition: dockMotion.transitions.headerSwap, className: theme.slots.headerRow, style: {
8702
+ ...DOCK_COMPOSITOR_STYLE,
8703
+ willChange: "transform"
8704
+ }, children: [
8705
+ /* @__PURE__ */ jsxs("div", { className: theme.slots.headerIcon, children: [
8706
+ item.icon ? /* @__PURE__ */ jsx(DockIcon, { animated: false, icon: headerIcon, iconOverlay: effectiveIconOverlay, style: itemStyle.icon, onClick: iconClickHandler, ariaLabel: iconAriaLabel }) : /* @__PURE__ */ jsx("div", { className: theme.slots.headerIconEmpty }),
8707
+ !showVideoIcon && !effectiveIconOverlay && /* @__PURE__ */ jsx(Badge, { badge })
8708
+ ] }),
8709
+ /* @__PURE__ */ jsx("div", { className: theme.slots.headerBody, children: /* @__PURE__ */ jsxs("div", { className: theme.slots.headerText, children: [
8710
+ /* @__PURE__ */ jsx("div", { className: theme.slots.headerTitleRow, children: /* @__PURE__ */ jsx(DockTitle, { animated: false, text: item.title || item.name, style: {
8711
+ ...itemStyle.title,
8712
+ className: cn(itemStyle.title?.className, theme.slots.headerTitle)
8713
+ } }) }),
8714
+ Boolean(description) && /* @__PURE__ */ jsx(DockDescription, { animated: false, text: description, style: itemStyle.description })
8715
+ ] }) })
8576
8716
  ] }, headerKey) }) });
8577
- $[63] = dockMotion.transitions.headerSwap;
8578
- $[64] = dockMotion.variants.headerSwap;
8579
- $[65] = headerKey;
8580
- $[66] = t20;
8581
- $[67] = t33;
8582
- $[68] = theme.slots.headerRow;
8583
- $[69] = t34;
8717
+ $[24] = badge;
8718
+ $[25] = description;
8719
+ $[26] = dockMotion.skeleton;
8720
+ $[27] = dockMotion.transitions.headerSwap;
8721
+ $[28] = dockMotion.variants.headerSwap;
8722
+ $[29] = effectiveIconOverlay;
8723
+ $[30] = headerIcon;
8724
+ $[31] = headerKey;
8725
+ $[32] = iconAriaLabel;
8726
+ $[33] = iconClickHandler;
8727
+ $[34] = isSkeleton;
8728
+ $[35] = item;
8729
+ $[36] = itemStyle;
8730
+ $[37] = showVideoIcon;
8731
+ $[38] = theme.slots.headerBody;
8732
+ $[39] = theme.slots.headerIcon;
8733
+ $[40] = theme.slots.headerIconEmpty;
8734
+ $[41] = theme.slots.headerRow;
8735
+ $[42] = theme.slots.headerText;
8736
+ $[43] = theme.slots.headerTitle;
8737
+ $[44] = theme.slots.headerTitleRow;
8738
+ $[45] = theme.slots.loading;
8739
+ $[46] = theme.slots.loadingDescription;
8740
+ $[47] = theme.slots.loadingIcon;
8741
+ $[48] = theme.slots.loadingText;
8742
+ $[49] = theme.slots.loadingTitle;
8743
+ $[50] = t13;
8584
8744
  } else {
8585
- t34 = $[69];
8745
+ t13 = $[50];
8586
8746
  }
8587
- let t35;
8588
- if ($[70] !== activeItem || $[71] !== contextCommands || $[72] !== hasBanner || $[73] !== isTop || $[74] !== item) {
8589
- t35 = isTop && !item.isStatus ? /* @__PURE__ */ jsx(DockCommandBar, { activeItem: activeItem || item, contextCommands, hasBanner }) : null;
8590
- $[70] = activeItem;
8591
- $[71] = contextCommands;
8592
- $[72] = hasBanner;
8593
- $[73] = isTop;
8594
- $[74] = item;
8595
- $[75] = t35;
8747
+ let t14;
8748
+ if ($[51] !== activeItem || $[52] !== contextCommands || $[53] !== hasBanner || $[54] !== isTop || $[55] !== item) {
8749
+ t14 = isTop && !item.isStatus ? /* @__PURE__ */ jsx(DockCommandBar, { activeItem: activeItem || item, contextCommands, hasBanner }) : null;
8750
+ $[51] = activeItem;
8751
+ $[52] = contextCommands;
8752
+ $[53] = hasBanner;
8753
+ $[54] = isTop;
8754
+ $[55] = item;
8755
+ $[56] = t14;
8596
8756
  } else {
8597
- t35 = $[75];
8757
+ t14 = $[56];
8598
8758
  }
8599
- let t36;
8600
- if ($[76] !== t34 || $[77] !== t35 || $[78] !== theme.slots.headerRow) {
8601
- t36 = /* @__PURE__ */ jsxs("div", { className: t13, children: [
8602
- t34,
8603
- t35
8759
+ let t15;
8760
+ if ($[57] !== t13 || $[58] !== t14 || $[59] !== theme.slots.headerRow) {
8761
+ t15 = /* @__PURE__ */ jsxs("div", { className: theme.slots.headerRow, children: [
8762
+ t13,
8763
+ t14
8604
8764
  ] });
8605
- $[76] = t34;
8606
- $[77] = t35;
8607
- $[78] = theme.slots.headerRow;
8608
- $[79] = t36;
8765
+ $[57] = t13;
8766
+ $[58] = t14;
8767
+ $[59] = theme.slots.headerRow;
8768
+ $[60] = t15;
8609
8769
  } else {
8610
- t36 = $[79];
8770
+ t15 = $[60];
8611
8771
  }
8612
- let t37;
8613
- if ($[80] !== t36 || $[81] !== theme.slots.header) {
8614
- t37 = /* @__PURE__ */ jsx("div", { className: t12, children: t36 });
8615
- $[80] = t36;
8616
- $[81] = theme.slots.header;
8617
- $[82] = t37;
8772
+ let t16;
8773
+ if ($[61] !== t15 || $[62] !== theme.slots.header) {
8774
+ t16 = /* @__PURE__ */ jsx("div", { className: theme.slots.header, children: t15 });
8775
+ $[61] = t15;
8776
+ $[62] = theme.slots.header;
8777
+ $[63] = t16;
8618
8778
  } else {
8619
- t37 = $[82];
8779
+ t16 = $[63];
8620
8780
  }
8621
- return t37;
8781
+ return t16;
8622
8782
  }
8623
8783
  function useDockHudViewModel(t0) {
8624
8784
  const $ = c(30);
@@ -8886,7 +9046,7 @@ function LoadingItemContent() {
8886
9046
  return t9;
8887
9047
  }
8888
9048
  function StandardItemContent(t0) {
8889
- const $ = c(51);
9049
+ const $ = c(57);
8890
9050
  const {
8891
9051
  item: propItem,
8892
9052
  link,
@@ -8977,58 +9137,65 @@ function StandardItemContent(t0) {
8977
9137
  handleIconClick
8978
9138
  } = useStandardItemContentModel(t11);
8979
9139
  const theme = useDockTheme();
9140
+ const isSkeleton = usePendingSkeleton(Boolean(isTop && item.isRoutePending && !item.isStatus && !isHudActive));
8980
9141
  const footerAnimate = isActionDismissed ? "dismissed" : "visible";
8981
9142
  const footerTransition = isActionDismissed ? dockMotion.transitions.actionDismiss : dockMotion.transitions.fade;
8982
9143
  let t12;
8983
- if ($[19] !== actionVariants || $[20] !== footerAnimate || $[21] !== footerNode || $[22] !== footerTransition || $[23] !== theme.slots.cardAction || $[24] !== theme.slots.cardFooter || $[25] !== theme.styles) {
8984
- t12 = footerNode ? /* @__PURE__ */ jsx(motion.div, { variants: actionVariants, initial: "hidden", animate: footerAnimate, exit: "exit", transition: footerTransition, className: theme.slots.cardFooter, style: theme.styles.cardFooter, children: /* @__PURE__ */ jsx("div", { className: theme.slots.cardAction, onClick: stopPropagationOnly, children: footerNode }) }, "dock-card-footer") : null;
9144
+ if ($[19] !== actionVariants || $[20] !== dockMotion.skeleton || $[21] !== dockMotion.transitions.fade || $[22] !== dockMotion.variants.textCrossfade || $[23] !== footerAnimate || $[24] !== footerNode || $[25] !== footerTransition || $[26] !== isSkeleton || $[27] !== theme.slots.cardAction || $[28] !== theme.slots.cardFooter || $[29] !== theme.slots.loadingAction || $[30] !== theme.styles) {
9145
+ t12 = footerNode ? /* @__PURE__ */ jsx(motion.div, { variants: actionVariants, initial: "hidden", animate: footerAnimate, exit: "exit", transition: footerTransition, className: theme.slots.cardFooter, style: theme.styles.cardFooter, children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx(motion.div, { variants: dockMotion.variants.textCrossfade, initial: "hidden", animate: "visible", exit: "exit", transition: dockMotion.transitions.fade, className: theme.slots.cardAction, onClick: stopPropagationOnly, children: isSkeleton ? /* @__PURE__ */ jsx("div", { className: cn(theme.slots.loadingAction, dockMotion.skeleton) }) : footerNode }, isSkeleton ? "dock-card-action:skeleton" : "dock-card-action") }) }, "dock-card-footer") : null;
8985
9146
  $[19] = actionVariants;
8986
- $[20] = footerAnimate;
8987
- $[21] = footerNode;
8988
- $[22] = footerTransition;
8989
- $[23] = theme.slots.cardAction;
8990
- $[24] = theme.slots.cardFooter;
8991
- $[25] = theme.styles;
8992
- $[26] = t12;
8993
- } else {
8994
- t12 = $[26];
9147
+ $[20] = dockMotion.skeleton;
9148
+ $[21] = dockMotion.transitions.fade;
9149
+ $[22] = dockMotion.variants.textCrossfade;
9150
+ $[23] = footerAnimate;
9151
+ $[24] = footerNode;
9152
+ $[25] = footerTransition;
9153
+ $[26] = isSkeleton;
9154
+ $[27] = theme.slots.cardAction;
9155
+ $[28] = theme.slots.cardFooter;
9156
+ $[29] = theme.slots.loadingAction;
9157
+ $[30] = theme.styles;
9158
+ $[31] = t12;
9159
+ } else {
9160
+ t12 = $[31];
8995
9161
  }
8996
9162
  const footer = t12;
8997
9163
  let t13;
8998
- if ($[27] !== activeItem || $[28] !== badge || $[29] !== clearHud || $[30] !== contextCommands || $[31] !== description || $[32] !== dockMotion.transitions.hud || $[33] !== dockMotion.transitions.text || $[34] !== dockMotion.variants.fade || $[35] !== dockMotion.variants.hud || $[36] !== effectiveIconOverlay || $[37] !== footer || $[38] !== handleIconClick || $[39] !== hud || $[40] !== isHudActive || $[41] !== isIconInteractive || $[42] !== isPlaying || $[43] !== isTop || $[44] !== item || $[45] !== itemStyle || $[46] !== pathname || $[47] !== showVideoIcon || $[48] !== theme.slots.cardBody || $[49] !== theme.slots.cardHud) {
9164
+ if ($[32] !== activeItem || $[33] !== badge || $[34] !== clearHud || $[35] !== contextCommands || $[36] !== description || $[37] !== dockMotion.transitions.hud || $[38] !== dockMotion.transitions.text || $[39] !== dockMotion.variants.fade || $[40] !== dockMotion.variants.hud || $[41] !== effectiveIconOverlay || $[42] !== footer || $[43] !== handleIconClick || $[44] !== hud || $[45] !== isHudActive || $[46] !== isIconInteractive || $[47] !== isPlaying || $[48] !== isSkeleton || $[49] !== isTop || $[50] !== item || $[51] !== itemStyle || $[52] !== pathname || $[53] !== showVideoIcon || $[54] !== theme.slots.cardBody || $[55] !== theme.slots.cardHud) {
8999
9165
  t13 = /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", initial: false, children: isTop && isHudActive ? /* @__PURE__ */ jsx(motion.div, { variants: dockMotion.variants.hud, initial: "hidden", animate: "visible", exit: "exit", transition: dockMotion.transitions.hud, style: DOCK_COMPOSITOR_STYLE, className: theme.slots.cardHud, children: /* @__PURE__ */ jsx(DockHudView, { clearHud: clearHud || void 0, hud, pathname }) }, `dock-hud:${hud?.id || "active"}`) : /* @__PURE__ */ jsxs(motion.div, { variants: dockMotion.variants.fade, initial: false, animate: "visible", exit: "exit", transition: dockMotion.transitions.text, style: {
9000
9166
  ...DOCK_COMPOSITOR_STYLE,
9001
9167
  willChange: "transform"
9002
9168
  }, className: theme.slots.cardBody, children: [
9003
- /* @__PURE__ */ jsx(DockCardHeader, { item, activeItem, itemStyle, badge, showVideoIcon, isPlaying, effectiveIconOverlay, isIconInteractive, handleIconClick, description, isTop, contextCommands }),
9169
+ /* @__PURE__ */ jsx(DockCardHeader, { item, activeItem, itemStyle, badge, showVideoIcon, isPlaying, effectiveIconOverlay, isIconInteractive, handleIconClick, description, isTop, contextCommands, isSkeleton }),
9004
9170
  /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: footer })
9005
9171
  ] }, "dock-standard-content") });
9006
- $[27] = activeItem;
9007
- $[28] = badge;
9008
- $[29] = clearHud;
9009
- $[30] = contextCommands;
9010
- $[31] = description;
9011
- $[32] = dockMotion.transitions.hud;
9012
- $[33] = dockMotion.transitions.text;
9013
- $[34] = dockMotion.variants.fade;
9014
- $[35] = dockMotion.variants.hud;
9015
- $[36] = effectiveIconOverlay;
9016
- $[37] = footer;
9017
- $[38] = handleIconClick;
9018
- $[39] = hud;
9019
- $[40] = isHudActive;
9020
- $[41] = isIconInteractive;
9021
- $[42] = isPlaying;
9022
- $[43] = isTop;
9023
- $[44] = item;
9024
- $[45] = itemStyle;
9025
- $[46] = pathname;
9026
- $[47] = showVideoIcon;
9027
- $[48] = theme.slots.cardBody;
9028
- $[49] = theme.slots.cardHud;
9029
- $[50] = t13;
9030
- } else {
9031
- t13 = $[50];
9172
+ $[32] = activeItem;
9173
+ $[33] = badge;
9174
+ $[34] = clearHud;
9175
+ $[35] = contextCommands;
9176
+ $[36] = description;
9177
+ $[37] = dockMotion.transitions.hud;
9178
+ $[38] = dockMotion.transitions.text;
9179
+ $[39] = dockMotion.variants.fade;
9180
+ $[40] = dockMotion.variants.hud;
9181
+ $[41] = effectiveIconOverlay;
9182
+ $[42] = footer;
9183
+ $[43] = handleIconClick;
9184
+ $[44] = hud;
9185
+ $[45] = isHudActive;
9186
+ $[46] = isIconInteractive;
9187
+ $[47] = isPlaying;
9188
+ $[48] = isSkeleton;
9189
+ $[49] = isTop;
9190
+ $[50] = item;
9191
+ $[51] = itemStyle;
9192
+ $[52] = pathname;
9193
+ $[53] = showVideoIcon;
9194
+ $[54] = theme.slots.cardBody;
9195
+ $[55] = theme.slots.cardHud;
9196
+ $[56] = t13;
9197
+ } else {
9198
+ t13 = $[56];
9032
9199
  }
9033
9200
  return t13;
9034
9201
  }
@@ -11519,7 +11686,7 @@ function SurfaceItemContent(t0) {
11519
11686
  return t3;
11520
11687
  }
11521
11688
  function DockCardItem(t0) {
11522
- const $ = c(137);
11689
+ const $ = c(149);
11523
11690
  const {
11524
11691
  ref,
11525
11692
  activeItem: t1,
@@ -11541,7 +11708,8 @@ function DockCardItem(t0) {
11541
11708
  isSurfaceActive: t8,
11542
11709
  hud: t9,
11543
11710
  clearHud: t10,
11544
- contextCommands: t11
11711
+ contextCommands: t11,
11712
+ compact: t12
11545
11713
  } = t0;
11546
11714
  const activeItem = t1 === void 0 ? null : t1;
11547
11715
  const hasExtensions = t2 === void 0 ? false : t2;
@@ -11553,19 +11721,20 @@ function DockCardItem(t0) {
11553
11721
  const isSurfaceActive = t8 === void 0 ? false : t8;
11554
11722
  const hud = t9 === void 0 ? null : t9;
11555
11723
  const clearHud = t10 === void 0 ? null : t10;
11556
- let t12;
11724
+ let t13;
11557
11725
  if ($[0] !== t11) {
11558
- t12 = t11 === void 0 ? [] : t11;
11726
+ t13 = t11 === void 0 ? [] : t11;
11559
11727
  $[0] = t11;
11560
- $[1] = t12;
11728
+ $[1] = t13;
11561
11729
  } else {
11562
- t12 = $[1];
11730
+ t13 = $[1];
11563
11731
  }
11564
- const contextCommands = t12;
11732
+ const contextCommands = t13;
11733
+ const compact = t12 === void 0 ? null : t12;
11565
11734
  const dockMotion = useDockMotion();
11566
- let t13;
11735
+ let t14;
11567
11736
  if ($[2] !== activeItem || $[3] !== clearHud || $[4] !== contextCommands || $[5] !== expanded || $[6] !== hasExtensions || $[7] !== hud || $[8] !== isActive || $[9] !== isHudActive || $[10] !== isStackHovered || $[11] !== isStatusActive || $[12] !== isSurfaceActive || $[13] !== isTop || $[14] !== link || $[15] !== onClick || $[16] !== onContentHeightChange || $[17] !== onMouseEnter || $[18] !== onMouseLeave || $[19] !== position || $[20] !== propItem || $[21] !== ref || $[22] !== statusStyle) {
11568
- t13 = {
11737
+ t14 = {
11569
11738
  ref,
11570
11739
  activeItem,
11571
11740
  onContentHeightChange,
@@ -11609,9 +11778,9 @@ function DockCardItem(t0) {
11609
11778
  $[20] = propItem;
11610
11779
  $[21] = ref;
11611
11780
  $[22] = statusStyle;
11612
- $[23] = t13;
11781
+ $[23] = t14;
11613
11782
  } else {
11614
- t13 = $[23];
11783
+ t14 = $[23];
11615
11784
  }
11616
11785
  const {
11617
11786
  item,
@@ -11644,22 +11813,22 @@ function DockCardItem(t0) {
11644
11813
  cardStyle,
11645
11814
  motionValues,
11646
11815
  cardDelay
11647
- } = useDockCardItemModel(t13);
11816
+ } = useDockCardItemModel(t14);
11648
11817
  const theme = useDockTheme();
11649
- let t14;
11818
+ let t15;
11650
11819
  if ($[24] !== renderedActionSlot) {
11651
- t14 = renderActionSlot(renderedActionSlot);
11820
+ t15 = renderActionSlot(renderedActionSlot);
11652
11821
  $[24] = renderedActionSlot;
11653
- $[25] = t14;
11822
+ $[25] = t15;
11654
11823
  } else {
11655
- t14 = $[25];
11824
+ t15 = $[25];
11656
11825
  }
11657
- const renderedActionNode = t14;
11826
+ const renderedActionNode = t15;
11658
11827
  const layerExit = isCollapsedBackgroundCard ? DOCK_UNSEEN_EXIT : "exit";
11659
11828
  const isNonInteractiveCard = Boolean(item.isOverlay || item.isStatus || isCollapsedBackgroundCard);
11660
- let t15;
11829
+ let t16;
11661
11830
  if ($[26] !== dockMotion || $[27] !== expanded || $[28] !== isStackHovered || $[29] !== isSurfaceActive || $[30] !== motionValues || $[31] !== position) {
11662
- t15 = getDockItemAnimateValues(dockMotion, {
11831
+ t16 = getDockItemAnimateValues(dockMotion, {
11663
11832
  motionValues,
11664
11833
  expanded,
11665
11834
  isStackHovered,
@@ -11672,14 +11841,14 @@ function DockCardItem(t0) {
11672
11841
  $[29] = isSurfaceActive;
11673
11842
  $[30] = motionValues;
11674
11843
  $[31] = position;
11675
- $[32] = t15;
11844
+ $[32] = t16;
11676
11845
  } else {
11677
- t15 = $[32];
11846
+ t16 = $[32];
11678
11847
  }
11679
- const cardAnimate = t15;
11680
- let t16;
11848
+ const cardAnimate = t16;
11849
+ let t17;
11681
11850
  if ($[33] !== cardDelay || $[34] !== dockMotion || $[35] !== expanded || $[36] !== isStackHovered || $[37] !== position) {
11682
- t16 = getDockItemTransition(dockMotion, {
11851
+ t17 = getDockItemTransition(dockMotion, {
11683
11852
  expanded,
11684
11853
  isStackHovered,
11685
11854
  position,
@@ -11690,230 +11859,263 @@ function DockCardItem(t0) {
11690
11859
  $[35] = expanded;
11691
11860
  $[36] = isStackHovered;
11692
11861
  $[37] = position;
11693
- $[38] = t16;
11862
+ $[38] = t17;
11694
11863
  } else {
11695
- t16 = $[38];
11864
+ t17 = $[38];
11696
11865
  }
11697
- const cardTransition = t16;
11698
- let t17;
11699
- if ($[39] !== dockMotion || $[40] !== motionValues || $[41] !== position) {
11700
- t17 = getDockItemExitValues(dockMotion, {
11701
- motionValues,
11866
+ const cardTransition = t17;
11867
+ let t18;
11868
+ if ($[39] !== expanded || $[40] !== isStackHovered || $[41] !== isSurfaceActive || $[42] !== position) {
11869
+ t18 = isDockCardPeeking({
11870
+ expanded,
11871
+ isStackHovered,
11872
+ isSurfaceActive,
11702
11873
  position
11703
11874
  });
11704
- $[39] = dockMotion;
11705
- $[40] = motionValues;
11706
- $[41] = position;
11707
- $[42] = t17;
11875
+ $[39] = expanded;
11876
+ $[40] = isStackHovered;
11877
+ $[41] = isSurfaceActive;
11878
+ $[42] = position;
11879
+ $[43] = t18;
11708
11880
  } else {
11709
- t17 = $[42];
11881
+ t18 = $[43];
11710
11882
  }
11711
- const cardExit = t17;
11712
- let t18;
11713
- if ($[43] !== renderedActionNode) {
11714
- t18 = renderedActionNode ? /* @__PURE__ */ jsx(Suspense, { children: renderedActionNode }) : null;
11715
- $[43] = renderedActionNode;
11716
- $[44] = t18;
11883
+ const isPeeking = t18;
11884
+ let t19;
11885
+ if ($[44] !== dockMotion || $[45] !== motionValues || $[46] !== position) {
11886
+ t19 = getDockItemExitValues(dockMotion, {
11887
+ motionValues,
11888
+ position
11889
+ });
11890
+ $[44] = dockMotion;
11891
+ $[45] = motionValues;
11892
+ $[46] = position;
11893
+ $[47] = t19;
11717
11894
  } else {
11718
- t18 = $[44];
11895
+ t19 = $[47];
11719
11896
  }
11720
- let t19;
11721
- if ($[45] !== activeItem || $[46] !== badge || $[47] !== clearHud || $[48] !== contextCommands || $[49] !== hud || $[50] !== isActionDismissed || $[51] !== isActive || $[52] !== isTop || $[53] !== isTopHudActive || $[54] !== item || $[55] !== itemStyle || $[56] !== pathname || $[57] !== t18) {
11722
- t19 = /* @__PURE__ */ jsx(StandardItemContent, { item, activeItem, isTop, itemStyle, badge, isActive, isHudActive: isTopHudActive, hud, clearHud, contextCommands, pathname, footerNode: t18, isActionDismissed });
11723
- $[45] = activeItem;
11724
- $[46] = badge;
11725
- $[47] = clearHud;
11726
- $[48] = contextCommands;
11727
- $[49] = hud;
11728
- $[50] = isActionDismissed;
11729
- $[51] = isActive;
11730
- $[52] = isTop;
11731
- $[53] = isTopHudActive;
11732
- $[54] = item;
11733
- $[55] = itemStyle;
11734
- $[56] = pathname;
11735
- $[57] = t18;
11736
- $[58] = t19;
11737
- } else {
11738
- t19 = $[58];
11739
- }
11740
- const standardContent = t19;
11897
+ const cardExit = t19;
11741
11898
  let t20;
11742
- if ($[59] !== activeItem || $[60] !== dockMotion || $[61] !== headerRestoreVariants || $[62] !== isExtensionShelf || $[63] !== item || $[64] !== layerExit || $[65] !== showsSurfaceLayer || $[66] !== standardContent || $[67] !== theme.slots.cardShelf || $[68] !== theme.slots.cardStandard || $[69] !== theme.slots.cardSurface) {
11743
- t20 = () => {
11899
+ if ($[48] !== renderedActionNode) {
11900
+ t20 = renderedActionNode ? /* @__PURE__ */ jsx(Suspense, { children: renderedActionNode }) : null;
11901
+ $[48] = renderedActionNode;
11902
+ $[49] = t20;
11903
+ } else {
11904
+ t20 = $[49];
11905
+ }
11906
+ let t21;
11907
+ if ($[50] !== activeItem || $[51] !== badge || $[52] !== clearHud || $[53] !== contextCommands || $[54] !== hud || $[55] !== isActionDismissed || $[56] !== isActive || $[57] !== isTop || $[58] !== isTopHudActive || $[59] !== item || $[60] !== itemStyle || $[61] !== pathname || $[62] !== t20) {
11908
+ t21 = /* @__PURE__ */ jsx(StandardItemContent, { item, activeItem, isTop, itemStyle, badge, isActive, isHudActive: isTopHudActive, hud, clearHud, contextCommands, pathname, footerNode: t20, isActionDismissed });
11909
+ $[50] = activeItem;
11910
+ $[51] = badge;
11911
+ $[52] = clearHud;
11912
+ $[53] = contextCommands;
11913
+ $[54] = hud;
11914
+ $[55] = isActionDismissed;
11915
+ $[56] = isActive;
11916
+ $[57] = isTop;
11917
+ $[58] = isTopHudActive;
11918
+ $[59] = item;
11919
+ $[60] = itemStyle;
11920
+ $[61] = pathname;
11921
+ $[62] = t20;
11922
+ $[63] = t21;
11923
+ } else {
11924
+ t21 = $[63];
11925
+ }
11926
+ const standardContent = t21;
11927
+ const isActionBeingDismissed = item.surfacePhase === DOCK_SURFACE_PHASE.DISMISSING_ACTION;
11928
+ let t22;
11929
+ if ($[64] !== activeItem || $[65] !== compact || $[66] !== dockMotion || $[67] !== headerRestoreVariants || $[68] !== isActionBeingDismissed || $[69] !== isExtensionShelf || $[70] !== item || $[71] !== layerExit || $[72] !== renderedActionNode || $[73] !== renderedActionSlot?.kind || $[74] !== showsSurfaceLayer || $[75] !== standardContent || $[76] !== theme.slots.cardShelf || $[77] !== theme.slots.cardStandard || $[78] !== theme.slots.cardSurface) {
11930
+ t22 = () => {
11931
+ if (compact) {
11932
+ return /* @__PURE__ */ jsx(motion.div, { variants: dockMotion.variants.compact, initial: "hidden", animate: isActionBeingDismissed ? "exit" : "visible", exit: layerExit, transition: dockMotion.transitions.headerSwap, style: {
11933
+ ...DOCK_COMPOSITOR_STYLE,
11934
+ willChange: "transform"
11935
+ }, className: theme.slots.cardStandard, children: /* @__PURE__ */ jsx(DockCompact, { ...compact, action: renderedActionSlot?.kind === "action" ? /* @__PURE__ */ jsx(Suspense, { children: renderedActionNode }) : null }) }, "compact-content-layer");
11936
+ }
11744
11937
  if (showsSurfaceLayer) {
11745
11938
  return /* @__PURE__ */ jsx(motion.div, { variants: dockMotion.variants.headerSwap, initial: "hidden", animate: "visible", exit: layerExit, transition: dockMotion.transitions.headerSwap, style: DOCK_COMPOSITOR_STYLE, className: theme.slots.cardSurface, children: /* @__PURE__ */ jsx(SurfaceItemContent, { item }) }, "surface-content-layer");
11746
11939
  }
11747
11940
  if (isExtensionShelf) {
11748
11941
  return /* @__PURE__ */ jsx(motion.div, { variants: dockMotion.variants.extensionShelf, initial: "hidden", animate: "visible", exit: layerExit, transition: dockMotion.transitions.headerSwap, style: DOCK_COMPOSITOR_STYLE, className: theme.slots.cardShelf, children: /* @__PURE__ */ jsx(DockSurfaceExtensionsBar, { activeItem }) }, "extension-shelf-layer");
11749
11942
  }
11750
- const isActionBeingDismissed = item.surfacePhase === DOCK_SURFACE_PHASE.DISMISSING_ACTION;
11751
11943
  return /* @__PURE__ */ jsx(motion.div, { variants: headerRestoreVariants, initial: "hidden", animate: isActionBeingDismissed ? "hidden" : "visible", exit: layerExit, transition: getDockPhaseMotion(dockMotion, item.surfacePhase).header, style: {
11752
11944
  ...DOCK_COMPOSITOR_STYLE,
11753
11945
  willChange: "transform"
11754
11946
  }, className: theme.slots.cardStandard, children: item.isLoading ? /* @__PURE__ */ jsx(LoadingItemContent, {}) : standardContent }, "standard-content-layer");
11755
11947
  };
11756
- $[59] = activeItem;
11757
- $[60] = dockMotion;
11758
- $[61] = headerRestoreVariants;
11759
- $[62] = isExtensionShelf;
11760
- $[63] = item;
11761
- $[64] = layerExit;
11762
- $[65] = showsSurfaceLayer;
11763
- $[66] = standardContent;
11764
- $[67] = theme.slots.cardShelf;
11765
- $[68] = theme.slots.cardStandard;
11766
- $[69] = theme.slots.cardSurface;
11767
- $[70] = t20;
11768
- } else {
11769
- t20 = $[70];
11770
- }
11771
- const renderContentLayer = t20;
11948
+ $[64] = activeItem;
11949
+ $[65] = compact;
11950
+ $[66] = dockMotion;
11951
+ $[67] = headerRestoreVariants;
11952
+ $[68] = isActionBeingDismissed;
11953
+ $[69] = isExtensionShelf;
11954
+ $[70] = item;
11955
+ $[71] = layerExit;
11956
+ $[72] = renderedActionNode;
11957
+ $[73] = renderedActionSlot?.kind;
11958
+ $[74] = showsSurfaceLayer;
11959
+ $[75] = standardContent;
11960
+ $[76] = theme.slots.cardShelf;
11961
+ $[77] = theme.slots.cardStandard;
11962
+ $[78] = theme.slots.cardSurface;
11963
+ $[79] = t22;
11964
+ } else {
11965
+ t22 = $[79];
11966
+ }
11967
+ const renderContentLayer = t22;
11772
11968
  if (isCollapsedGhostCard) {
11773
- let t212;
11774
- if ($[71] !== cardAnimate || $[72] !== cardClassName || $[73] !== cardData || $[74] !== cardExit || $[75] !== cardStyle || $[76] !== cardTransition || $[77] !== ref) {
11775
- t212 = /* @__PURE__ */ jsx(motion.div, { ref, "aria-hidden": "true", tabIndex: -1, ...cardData, "data-ghost": true, className: cardClassName, style: cardStyle, initial: false, animate: cardAnimate, transition: cardTransition, exit: cardExit });
11776
- $[71] = cardAnimate;
11777
- $[72] = cardClassName;
11778
- $[73] = cardData;
11779
- $[74] = cardExit;
11780
- $[75] = cardStyle;
11781
- $[76] = cardTransition;
11782
- $[77] = ref;
11783
- $[78] = t212;
11969
+ const t232 = isPeeking || void 0;
11970
+ let t242;
11971
+ if ($[80] !== cardAnimate || $[81] !== cardClassName || $[82] !== cardData || $[83] !== cardExit || $[84] !== cardStyle || $[85] !== cardTransition || $[86] !== ref || $[87] !== t232) {
11972
+ t242 = /* @__PURE__ */ jsx(motion.div, { ref, "aria-hidden": "true", tabIndex: -1, ...cardData, "data-ghost": true, "data-peek": t232, className: cardClassName, style: cardStyle, initial: false, animate: cardAnimate, transition: cardTransition, exit: cardExit });
11973
+ $[80] = cardAnimate;
11974
+ $[81] = cardClassName;
11975
+ $[82] = cardData;
11976
+ $[83] = cardExit;
11977
+ $[84] = cardStyle;
11978
+ $[85] = cardTransition;
11979
+ $[86] = ref;
11980
+ $[87] = t232;
11981
+ $[88] = t242;
11784
11982
  } else {
11785
- t212 = $[78];
11983
+ t242 = $[88];
11786
11984
  }
11787
- return t212;
11985
+ return t242;
11788
11986
  }
11789
- const t21 = isTop ? "true" : void 0;
11790
- let t22;
11791
- if ($[79] !== dockMotion.deck || $[80] !== dockMotion.transitions.press || $[81] !== isNonInteractiveCard || $[82] !== motionValues?.scale) {
11792
- t22 = isNonInteractiveCard ? void 0 : {
11987
+ const t23 = isPeeking || void 0;
11988
+ const t24 = isTop ? "true" : void 0;
11989
+ const t25 = compact ? "true" : void 0;
11990
+ let t26;
11991
+ if ($[89] !== dockMotion.deck || $[90] !== dockMotion.transitions.press || $[91] !== isNonInteractiveCard || $[92] !== motionValues?.scale) {
11992
+ t26 = isNonInteractiveCard ? void 0 : {
11793
11993
  scale: (motionValues?.scale || 1) * dockMotion.deck.tapScale,
11794
11994
  transition: dockMotion.transitions.press
11795
11995
  };
11796
- $[79] = dockMotion.deck;
11797
- $[80] = dockMotion.transitions.press;
11798
- $[81] = isNonInteractiveCard;
11799
- $[82] = motionValues?.scale;
11800
- $[83] = t22;
11996
+ $[89] = dockMotion.deck;
11997
+ $[90] = dockMotion.transitions.press;
11998
+ $[91] = isNonInteractiveCard;
11999
+ $[92] = motionValues?.scale;
12000
+ $[93] = t26;
11801
12001
  } else {
11802
- t22 = $[83];
12002
+ t26 = $[93];
11803
12003
  }
11804
- const t23 = hasNestedInteractiveContent ? "group" : "button";
11805
- const t24 = isCollapsedBackgroundCard ? "true" : void 0;
11806
- const t25 = isNonInteractiveCard ? -1 : 0;
11807
- let t26;
11808
- if ($[84] !== isCurrentActive || $[85] !== isCurrentHud || $[86] !== isCurrentStatus || $[87] !== isCurrentSurface || $[88] !== item.banner || $[89] !== item.bannerOpacity || $[90] !== item.bannerPosition || $[91] !== item.bannerRepeat || $[92] !== item.bannerSize || $[93] !== item.bannerUrl) {
11809
- t26 = /* @__PURE__ */ jsx(DockCardBanner, { banner: item.banner, bannerUrl: item.bannerUrl, bannerPosition: item.bannerPosition, bannerSize: item.bannerSize, bannerRepeat: item.bannerRepeat, bannerOpacity: item.bannerOpacity, isActive: isCurrentActive, isSurfaceActive: isCurrentSurface, isHudActive: isCurrentHud, isStatusActive: isCurrentStatus });
11810
- $[84] = isCurrentActive;
11811
- $[85] = isCurrentHud;
11812
- $[86] = isCurrentStatus;
11813
- $[87] = isCurrentSurface;
11814
- $[88] = item.banner;
11815
- $[89] = item.bannerOpacity;
11816
- $[90] = item.bannerPosition;
11817
- $[91] = item.bannerRepeat;
11818
- $[92] = item.bannerSize;
11819
- $[93] = item.bannerUrl;
11820
- $[94] = t26;
11821
- } else {
11822
- t26 = $[94];
12004
+ const t27 = hasNestedInteractiveContent ? "group" : "button";
12005
+ const t28 = isCollapsedBackgroundCard ? "true" : void 0;
12006
+ const t29 = isNonInteractiveCard ? -1 : 0;
12007
+ let t30;
12008
+ if ($[94] !== isCurrentActive || $[95] !== isCurrentHud || $[96] !== isCurrentStatus || $[97] !== isCurrentSurface || $[98] !== item.banner || $[99] !== item.bannerOpacity || $[100] !== item.bannerPosition || $[101] !== item.bannerRepeat || $[102] !== item.bannerSize || $[103] !== item.bannerUrl) {
12009
+ t30 = /* @__PURE__ */ jsx(DockCardBanner, { banner: item.banner, bannerUrl: item.bannerUrl, bannerPosition: item.bannerPosition, bannerSize: item.bannerSize, bannerRepeat: item.bannerRepeat, bannerOpacity: item.bannerOpacity, isActive: isCurrentActive, isSurfaceActive: isCurrentSurface, isHudActive: isCurrentHud, isStatusActive: isCurrentStatus });
12010
+ $[94] = isCurrentActive;
12011
+ $[95] = isCurrentHud;
12012
+ $[96] = isCurrentStatus;
12013
+ $[97] = isCurrentSurface;
12014
+ $[98] = item.banner;
12015
+ $[99] = item.bannerOpacity;
12016
+ $[100] = item.bannerPosition;
12017
+ $[101] = item.bannerRepeat;
12018
+ $[102] = item.bannerSize;
12019
+ $[103] = item.bannerUrl;
12020
+ $[104] = t30;
12021
+ } else {
12022
+ t30 = $[104];
11823
12023
  }
11824
- let t27;
11825
- if ($[95] !== showVideoScrubber) {
11826
- t27 = showVideoScrubber && /* @__PURE__ */ jsx(DockMediaScrubber, {});
11827
- $[95] = showVideoScrubber;
11828
- $[96] = t27;
12024
+ let t31;
12025
+ if ($[105] !== showVideoScrubber) {
12026
+ t31 = showVideoScrubber && /* @__PURE__ */ jsx(DockMediaScrubber, {});
12027
+ $[105] = showVideoScrubber;
12028
+ $[106] = t31;
11829
12029
  } else {
11830
- t27 = $[96];
12030
+ t31 = $[106];
11831
12031
  }
11832
- const t28 = theme.slots.cardContent;
11833
- let t29;
11834
- if ($[97] !== dockMotion || $[98] !== expanded || $[99] !== isExtensionShelf || $[100] !== position) {
11835
- t29 = getDockCardContentAnimateProps(dockMotion, {
12032
+ const t32 = theme.slots.cardContent;
12033
+ let t33;
12034
+ if ($[107] !== dockMotion || $[108] !== expanded || $[109] !== isExtensionShelf || $[110] !== position) {
12035
+ t33 = getDockCardContentAnimateProps(dockMotion, {
11836
12036
  expanded,
11837
12037
  position,
11838
12038
  isExtensionShelf
11839
12039
  });
11840
- $[97] = dockMotion;
11841
- $[98] = expanded;
11842
- $[99] = isExtensionShelf;
11843
- $[100] = position;
11844
- $[101] = t29;
12040
+ $[107] = dockMotion;
12041
+ $[108] = expanded;
12042
+ $[109] = isExtensionShelf;
12043
+ $[110] = position;
12044
+ $[111] = t33;
11845
12045
  } else {
11846
- t29 = $[101];
12046
+ t33 = $[111];
11847
12047
  }
11848
- const t30 = isCollapsedBackgroundCard ? "none" : "auto";
11849
- let t31;
11850
- if ($[102] !== t30) {
11851
- t31 = {
12048
+ const t34 = isCollapsedBackgroundCard ? "none" : "auto";
12049
+ let t35;
12050
+ if ($[112] !== t34) {
12051
+ t35 = {
11852
12052
  ...DOCK_COMPOSITOR_STYLE,
11853
12053
  willChange: "transform",
11854
- pointerEvents: t30
12054
+ pointerEvents: t34
11855
12055
  };
11856
- $[102] = t30;
11857
- $[103] = t31;
12056
+ $[112] = t34;
12057
+ $[113] = t35;
11858
12058
  } else {
11859
- t31 = $[103];
12059
+ t35 = $[113];
11860
12060
  }
11861
- let t32;
11862
- if ($[104] !== renderContentLayer) {
11863
- t32 = /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: renderContentLayer() });
11864
- $[104] = renderContentLayer;
11865
- $[105] = t32;
12061
+ let t36;
12062
+ if ($[114] !== renderContentLayer) {
12063
+ t36 = /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: renderContentLayer() });
12064
+ $[114] = renderContentLayer;
12065
+ $[115] = t36;
11866
12066
  } else {
11867
- t32 = $[105];
11868
- }
11869
- let t33;
11870
- if ($[106] !== cardContentRef || $[107] !== dockMotion.transitions.text || $[108] !== isExtensionShelf || $[109] !== t29 || $[110] !== t31 || $[111] !== t32 || $[112] !== theme.slots.cardContent) {
11871
- t33 = /* @__PURE__ */ jsx(motion.div, { ref: cardContentRef, "data-shelf": isExtensionShelf, className: t28, animate: t29, transition: dockMotion.transitions.text, style: t31, children: t32 });
11872
- $[106] = cardContentRef;
11873
- $[107] = dockMotion.transitions.text;
11874
- $[108] = isExtensionShelf;
11875
- $[109] = t29;
11876
- $[110] = t31;
11877
- $[111] = t32;
11878
- $[112] = theme.slots.cardContent;
11879
- $[113] = t33;
11880
- } else {
11881
- t33 = $[113];
12067
+ t36 = $[115];
11882
12068
  }
11883
- let t34;
11884
- if ($[114] !== cardAnimate || $[115] !== cardClassName || $[116] !== cardData || $[117] !== cardExit || $[118] !== cardStyle || $[119] !== cardTransition || $[120] !== handleBlur || $[121] !== handleFocus || $[122] !== handleKeyDown || $[123] !== handleMouseEnter || $[124] !== handleMouseLeave || $[125] !== handleScroll || $[126] !== onClick || $[127] !== ref || $[128] !== t21 || $[129] !== t22 || $[130] !== t23 || $[131] !== t24 || $[132] !== t25 || $[133] !== t26 || $[134] !== t27 || $[135] !== t33) {
11885
- t34 = /* @__PURE__ */ jsxs(motion.div, { ref, ...cardData, className: cardClassName, "data-controls-anchor": t21, style: cardStyle, initial: false, animate: cardAnimate, transition: cardTransition, whileTap: t22, exit: cardExit, role: t23, "aria-hidden": t24, tabIndex: t25, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: handleKeyDown, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onScroll: handleScroll, onClick, children: [
11886
- t26,
11887
- t27,
11888
- t33
12069
+ let t37;
12070
+ if ($[116] !== cardContentRef || $[117] !== dockMotion.transitions.text || $[118] !== isExtensionShelf || $[119] !== t33 || $[120] !== t35 || $[121] !== t36 || $[122] !== theme.slots.cardContent) {
12071
+ t37 = /* @__PURE__ */ jsx(motion.div, { ref: cardContentRef, "data-shelf": isExtensionShelf, className: t32, animate: t33, transition: dockMotion.transitions.text, style: t35, children: t36 });
12072
+ $[116] = cardContentRef;
12073
+ $[117] = dockMotion.transitions.text;
12074
+ $[118] = isExtensionShelf;
12075
+ $[119] = t33;
12076
+ $[120] = t35;
12077
+ $[121] = t36;
12078
+ $[122] = theme.slots.cardContent;
12079
+ $[123] = t37;
12080
+ } else {
12081
+ t37 = $[123];
12082
+ }
12083
+ let t38;
12084
+ if ($[124] !== cardAnimate || $[125] !== cardClassName || $[126] !== cardData || $[127] !== cardExit || $[128] !== cardStyle || $[129] !== cardTransition || $[130] !== handleBlur || $[131] !== handleFocus || $[132] !== handleKeyDown || $[133] !== handleMouseEnter || $[134] !== handleMouseLeave || $[135] !== handleScroll || $[136] !== onClick || $[137] !== ref || $[138] !== t23 || $[139] !== t24 || $[140] !== t25 || $[141] !== t26 || $[142] !== t27 || $[143] !== t28 || $[144] !== t29 || $[145] !== t30 || $[146] !== t31 || $[147] !== t37) {
12085
+ t38 = /* @__PURE__ */ jsxs(motion.div, { ref, ...cardData, "data-peek": t23, className: cardClassName, "data-controls-anchor": t24, "data-compact": t25, style: cardStyle, initial: false, animate: cardAnimate, transition: cardTransition, whileTap: t26, exit: cardExit, role: t27, "aria-hidden": t28, tabIndex: t29, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: handleKeyDown, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onScroll: handleScroll, onClick, children: [
12086
+ t30,
12087
+ t31,
12088
+ t37
11889
12089
  ] });
11890
- $[114] = cardAnimate;
11891
- $[115] = cardClassName;
11892
- $[116] = cardData;
11893
- $[117] = cardExit;
11894
- $[118] = cardStyle;
11895
- $[119] = cardTransition;
11896
- $[120] = handleBlur;
11897
- $[121] = handleFocus;
11898
- $[122] = handleKeyDown;
11899
- $[123] = handleMouseEnter;
11900
- $[124] = handleMouseLeave;
11901
- $[125] = handleScroll;
11902
- $[126] = onClick;
11903
- $[127] = ref;
11904
- $[128] = t21;
11905
- $[129] = t22;
11906
- $[130] = t23;
11907
- $[131] = t24;
11908
- $[132] = t25;
11909
- $[133] = t26;
11910
- $[134] = t27;
11911
- $[135] = t33;
11912
- $[136] = t34;
11913
- } else {
11914
- t34 = $[136];
11915
- }
11916
- return t34;
12090
+ $[124] = cardAnimate;
12091
+ $[125] = cardClassName;
12092
+ $[126] = cardData;
12093
+ $[127] = cardExit;
12094
+ $[128] = cardStyle;
12095
+ $[129] = cardTransition;
12096
+ $[130] = handleBlur;
12097
+ $[131] = handleFocus;
12098
+ $[132] = handleKeyDown;
12099
+ $[133] = handleMouseEnter;
12100
+ $[134] = handleMouseLeave;
12101
+ $[135] = handleScroll;
12102
+ $[136] = onClick;
12103
+ $[137] = ref;
12104
+ $[138] = t23;
12105
+ $[139] = t24;
12106
+ $[140] = t25;
12107
+ $[141] = t26;
12108
+ $[142] = t27;
12109
+ $[143] = t28;
12110
+ $[144] = t29;
12111
+ $[145] = t30;
12112
+ $[146] = t31;
12113
+ $[147] = t37;
12114
+ $[148] = t38;
12115
+ } else {
12116
+ t38 = $[148];
12117
+ }
12118
+ return t38;
11917
12119
  }
11918
12120
  function Dock() {
11919
12121
  const $ = c(56);
@@ -14277,7 +14479,7 @@ function useSurfaceStack(t0) {
14277
14479
  return t13;
14278
14480
  }
14279
14481
  function DockProvider(t0) {
14280
- const $ = c(99);
14482
+ const $ = c(101);
14281
14483
  const {
14282
14484
  breadcrumbConfig: t1,
14283
14485
  children,
@@ -14317,6 +14519,7 @@ function DockProvider(t0) {
14317
14519
  selectionModeState
14318
14520
  } = useDockHudRegistry();
14319
14521
  const [searchQuery, setSearchQuery] = useState("");
14522
+ const [compact, setCompact] = useState(false);
14320
14523
  const [dockHeight, setRawDockHeight] = useState(0);
14321
14524
  let t5;
14322
14525
  if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
@@ -14465,7 +14668,7 @@ function DockProvider(t0) {
14465
14668
  surfaceState: rawSurfaceState
14466
14669
  } = surfaceParts;
14467
14670
  let t16;
14468
- if ($[24] !== activeHud || $[25] !== activeItem || $[26] !== activeOperation || $[27] !== contextActions || $[28] !== continuityEntries || $[29] !== dockHeight || $[30] !== expanded || $[31] !== hudEntries || $[32] !== isHudActive || $[33] !== locationKey || $[34] !== operations || $[35] !== rawSurfaceState || $[36] !== returnHandoffs || $[37] !== routePathname || $[38] !== searchQuery || $[39] !== selectionModeState || $[40] !== surfaceLifecycle || $[41] !== surfacePhase) {
14671
+ if ($[24] !== activeHud || $[25] !== activeItem || $[26] !== activeOperation || $[27] !== compact || $[28] !== contextActions || $[29] !== continuityEntries || $[30] !== dockHeight || $[31] !== expanded || $[32] !== hudEntries || $[33] !== isHudActive || $[34] !== locationKey || $[35] !== operations || $[36] !== rawSurfaceState || $[37] !== returnHandoffs || $[38] !== routePathname || $[39] !== searchQuery || $[40] !== selectionModeState || $[41] !== surfaceLifecycle || $[42] !== surfacePhase) {
14469
14672
  t16 = () => createStore({
14470
14673
  ...rawSurfaceState,
14471
14674
  activeOperation,
@@ -14473,6 +14676,7 @@ function DockProvider(t0) {
14473
14676
  hud: activeHud,
14474
14677
  hudEntries: Object.values(hudEntries),
14475
14678
  isHudActive,
14679
+ compact,
14476
14680
  dockContinuity: continuityEntries,
14477
14681
  dockReturnHandoffs: returnHandoffs,
14478
14682
  operations,
@@ -14489,29 +14693,30 @@ function DockProvider(t0) {
14489
14693
  $[24] = activeHud;
14490
14694
  $[25] = activeItem;
14491
14695
  $[26] = activeOperation;
14492
- $[27] = contextActions;
14493
- $[28] = continuityEntries;
14494
- $[29] = dockHeight;
14495
- $[30] = expanded;
14496
- $[31] = hudEntries;
14497
- $[32] = isHudActive;
14498
- $[33] = locationKey;
14499
- $[34] = operations;
14500
- $[35] = rawSurfaceState;
14501
- $[36] = returnHandoffs;
14502
- $[37] = routePathname;
14503
- $[38] = searchQuery;
14504
- $[39] = selectionModeState;
14505
- $[40] = surfaceLifecycle;
14506
- $[41] = surfacePhase;
14507
- $[42] = t16;
14508
- } else {
14509
- t16 = $[42];
14696
+ $[27] = compact;
14697
+ $[28] = contextActions;
14698
+ $[29] = continuityEntries;
14699
+ $[30] = dockHeight;
14700
+ $[31] = expanded;
14701
+ $[32] = hudEntries;
14702
+ $[33] = isHudActive;
14703
+ $[34] = locationKey;
14704
+ $[35] = operations;
14705
+ $[36] = rawSurfaceState;
14706
+ $[37] = returnHandoffs;
14707
+ $[38] = routePathname;
14708
+ $[39] = searchQuery;
14709
+ $[40] = selectionModeState;
14710
+ $[41] = surfaceLifecycle;
14711
+ $[42] = surfacePhase;
14712
+ $[43] = t16;
14713
+ } else {
14714
+ t16 = $[43];
14510
14715
  }
14511
14716
  const [store] = useState(t16);
14512
14717
  let t17;
14513
14718
  let t18;
14514
- if ($[43] !== activeHud || $[44] !== activeItem || $[45] !== activeOperation || $[46] !== contextActions || $[47] !== continuityEntries || $[48] !== dockHeight || $[49] !== expanded || $[50] !== hudEntries || $[51] !== isHudActive || $[52] !== locationKey || $[53] !== operations || $[54] !== rawSurfaceState || $[55] !== returnHandoffs || $[56] !== routePathname || $[57] !== searchQuery || $[58] !== selectionModeState || $[59] !== store || $[60] !== surfaceLifecycle || $[61] !== surfacePhase) {
14719
+ if ($[44] !== activeHud || $[45] !== activeItem || $[46] !== activeOperation || $[47] !== compact || $[48] !== contextActions || $[49] !== continuityEntries || $[50] !== dockHeight || $[51] !== expanded || $[52] !== hudEntries || $[53] !== isHudActive || $[54] !== locationKey || $[55] !== operations || $[56] !== rawSurfaceState || $[57] !== returnHandoffs || $[58] !== routePathname || $[59] !== searchQuery || $[60] !== selectionModeState || $[61] !== store || $[62] !== surfaceLifecycle || $[63] !== surfacePhase) {
14515
14720
  t17 = () => {
14516
14721
  const next = {
14517
14722
  ...rawSurfaceState,
@@ -14520,6 +14725,7 @@ function DockProvider(t0) {
14520
14725
  hud: activeHud,
14521
14726
  hudEntries: Object.values(hudEntries),
14522
14727
  isHudActive,
14728
+ compact,
14523
14729
  dockContinuity: continuityEntries,
14524
14730
  dockReturnHandoffs: returnHandoffs,
14525
14731
  operations,
@@ -14535,35 +14741,36 @@ function DockProvider(t0) {
14535
14741
  };
14536
14742
  store.publish((current) => isSameDockState(current, next) ? current : next);
14537
14743
  };
14538
- t18 = [activeHud, activeItem, activeOperation, contextActions, continuityEntries, dockHeight, expanded, hudEntries, isHudActive, locationKey, operations, rawSurfaceState, returnHandoffs, routePathname, searchQuery, selectionModeState, store, surfaceLifecycle, surfacePhase];
14539
- $[43] = activeHud;
14540
- $[44] = activeItem;
14541
- $[45] = activeOperation;
14542
- $[46] = contextActions;
14543
- $[47] = continuityEntries;
14544
- $[48] = dockHeight;
14545
- $[49] = expanded;
14546
- $[50] = hudEntries;
14547
- $[51] = isHudActive;
14548
- $[52] = locationKey;
14549
- $[53] = operations;
14550
- $[54] = rawSurfaceState;
14551
- $[55] = returnHandoffs;
14552
- $[56] = routePathname;
14553
- $[57] = searchQuery;
14554
- $[58] = selectionModeState;
14555
- $[59] = store;
14556
- $[60] = surfaceLifecycle;
14557
- $[61] = surfacePhase;
14558
- $[62] = t17;
14559
- $[63] = t18;
14560
- } else {
14561
- t17 = $[62];
14562
- t18 = $[63];
14744
+ t18 = [activeHud, activeItem, activeOperation, contextActions, continuityEntries, dockHeight, expanded, hudEntries, isHudActive, compact, locationKey, operations, rawSurfaceState, returnHandoffs, routePathname, searchQuery, selectionModeState, store, surfaceLifecycle, surfacePhase];
14745
+ $[44] = activeHud;
14746
+ $[45] = activeItem;
14747
+ $[46] = activeOperation;
14748
+ $[47] = compact;
14749
+ $[48] = contextActions;
14750
+ $[49] = continuityEntries;
14751
+ $[50] = dockHeight;
14752
+ $[51] = expanded;
14753
+ $[52] = hudEntries;
14754
+ $[53] = isHudActive;
14755
+ $[54] = locationKey;
14756
+ $[55] = operations;
14757
+ $[56] = rawSurfaceState;
14758
+ $[57] = returnHandoffs;
14759
+ $[58] = routePathname;
14760
+ $[59] = searchQuery;
14761
+ $[60] = selectionModeState;
14762
+ $[61] = store;
14763
+ $[62] = surfaceLifecycle;
14764
+ $[63] = surfacePhase;
14765
+ $[64] = t17;
14766
+ $[65] = t18;
14767
+ } else {
14768
+ t17 = $[64];
14769
+ t18 = $[65];
14563
14770
  }
14564
14771
  useLayoutEffect(t17, t18);
14565
14772
  let t19;
14566
- if ($[64] !== clearPreparedRouteReset || $[65] !== commandActions || $[66] !== continuity || $[67] !== expansionActions || $[68] !== guards.clear || $[69] !== guards.register || $[70] !== hudActions || $[71] !== navigate || $[72] !== operationActions || $[73] !== prepareRouteReset || $[74] !== setDockHeight || $[75] !== surfaceActions) {
14773
+ if ($[66] !== clearPreparedRouteReset || $[67] !== commandActions || $[68] !== continuity || $[69] !== expansionActions || $[70] !== guards.clear || $[71] !== guards.register || $[72] !== hudActions || $[73] !== navigate || $[74] !== operationActions || $[75] !== prepareRouteReset || $[76] !== setDockHeight || $[77] !== surfaceActions) {
14567
14774
  t19 = {
14568
14775
  ...commandActions,
14569
14776
  ...expansionActions,
@@ -14577,52 +14784,53 @@ function DockProvider(t0) {
14577
14784
  prepareRouteReset,
14578
14785
  registerGuard: guards.register,
14579
14786
  setDockHeight,
14787
+ setCompact,
14580
14788
  setSearchQuery
14581
14789
  };
14582
- $[64] = clearPreparedRouteReset;
14583
- $[65] = commandActions;
14584
- $[66] = continuity;
14585
- $[67] = expansionActions;
14586
- $[68] = guards.clear;
14587
- $[69] = guards.register;
14588
- $[70] = hudActions;
14589
- $[71] = navigate;
14590
- $[72] = operationActions;
14591
- $[73] = prepareRouteReset;
14592
- $[74] = setDockHeight;
14593
- $[75] = surfaceActions;
14594
- $[76] = t19;
14595
- } else {
14596
- t19 = $[76];
14790
+ $[66] = clearPreparedRouteReset;
14791
+ $[67] = commandActions;
14792
+ $[68] = continuity;
14793
+ $[69] = expansionActions;
14794
+ $[70] = guards.clear;
14795
+ $[71] = guards.register;
14796
+ $[72] = hudActions;
14797
+ $[73] = navigate;
14798
+ $[74] = operationActions;
14799
+ $[75] = prepareRouteReset;
14800
+ $[76] = setDockHeight;
14801
+ $[77] = surfaceActions;
14802
+ $[78] = t19;
14803
+ } else {
14804
+ t19 = $[78];
14597
14805
  }
14598
14806
  const actionsValue = t19;
14599
14807
  let t20;
14600
- if ($[77] !== surfaceActions || $[78] !== surfaceState) {
14808
+ if ($[79] !== surfaceActions || $[80] !== surfaceState) {
14601
14809
  t20 = {
14602
14810
  ...surfaceActions,
14603
14811
  surfaceState
14604
14812
  };
14605
- $[77] = surfaceActions;
14606
- $[78] = surfaceState;
14607
- $[79] = t20;
14813
+ $[79] = surfaceActions;
14814
+ $[80] = surfaceState;
14815
+ $[81] = t20;
14608
14816
  } else {
14609
- t20 = $[79];
14817
+ t20 = $[81];
14610
14818
  }
14611
14819
  const surfaceFlowValue = t20;
14612
14820
  let t21;
14613
- if ($[80] !== mediaAction || $[81] !== notFoundAction) {
14821
+ if ($[82] !== mediaAction || $[83] !== notFoundAction) {
14614
14822
  t21 = {
14615
14823
  mediaAction,
14616
14824
  notFoundAction
14617
14825
  };
14618
- $[80] = mediaAction;
14619
- $[81] = notFoundAction;
14620
- $[82] = t21;
14826
+ $[82] = mediaAction;
14827
+ $[83] = notFoundAction;
14828
+ $[84] = t21;
14621
14829
  } else {
14622
- t21 = $[82];
14830
+ t21 = $[84];
14623
14831
  }
14624
14832
  let t22;
14625
- if ($[83] !== actionsValue || $[84] !== guards || $[85] !== runtimeScheduler || $[86] !== store || $[87] !== t21 || $[88] !== viewBridge) {
14833
+ if ($[85] !== actionsValue || $[86] !== guards || $[87] !== runtimeScheduler || $[88] !== store || $[89] !== t21 || $[90] !== viewBridge) {
14626
14834
  t22 = {
14627
14835
  actions: actionsValue,
14628
14836
  runtimeActions: t21,
@@ -14631,43 +14839,43 @@ function DockProvider(t0) {
14631
14839
  guards,
14632
14840
  view: viewBridge
14633
14841
  };
14634
- $[83] = actionsValue;
14635
- $[84] = guards;
14636
- $[85] = runtimeScheduler;
14637
- $[86] = store;
14638
- $[87] = t21;
14639
- $[88] = viewBridge;
14640
- $[89] = t22;
14842
+ $[85] = actionsValue;
14843
+ $[86] = guards;
14844
+ $[87] = runtimeScheduler;
14845
+ $[88] = store;
14846
+ $[89] = t21;
14847
+ $[90] = viewBridge;
14848
+ $[91] = t22;
14641
14849
  } else {
14642
- t22 = $[89];
14850
+ t22 = $[91];
14643
14851
  }
14644
14852
  const dockContextValue = t22;
14645
14853
  let t23;
14646
- if ($[90] !== breadcrumbConfig || $[91] !== children) {
14854
+ if ($[92] !== breadcrumbConfig || $[93] !== children) {
14647
14855
  t23 = /* @__PURE__ */ jsx(SurfaceExtensionsProvider, { children: /* @__PURE__ */ jsx(BreadcrumbProvider, { config: breadcrumbConfig, children }) });
14648
- $[90] = breadcrumbConfig;
14649
- $[91] = children;
14650
- $[92] = t23;
14856
+ $[92] = breadcrumbConfig;
14857
+ $[93] = children;
14858
+ $[94] = t23;
14651
14859
  } else {
14652
- t23 = $[92];
14860
+ t23 = $[94];
14653
14861
  }
14654
14862
  let t24;
14655
- if ($[93] !== surfaceFlowValue || $[94] !== t23) {
14863
+ if ($[95] !== surfaceFlowValue || $[96] !== t23) {
14656
14864
  t24 = /* @__PURE__ */ jsx(SurfaceFlowProvider, { value: surfaceFlowValue, children: t23 });
14657
- $[93] = surfaceFlowValue;
14658
- $[94] = t23;
14659
- $[95] = t24;
14865
+ $[95] = surfaceFlowValue;
14866
+ $[96] = t23;
14867
+ $[97] = t24;
14660
14868
  } else {
14661
- t24 = $[95];
14869
+ t24 = $[97];
14662
14870
  }
14663
14871
  let t25;
14664
- if ($[96] !== dockContextValue || $[97] !== t24) {
14872
+ if ($[98] !== dockContextValue || $[99] !== t24) {
14665
14873
  t25 = /* @__PURE__ */ jsx(DockContext, { value: dockContextValue, children: t24 });
14666
- $[96] = dockContextValue;
14667
- $[97] = t24;
14668
- $[98] = t25;
14874
+ $[98] = dockContextValue;
14875
+ $[99] = t24;
14876
+ $[100] = t25;
14669
14877
  } else {
14670
- t25 = $[98];
14878
+ t25 = $[100];
14671
14879
  }
14672
14880
  return t25;
14673
14881
  }
@@ -15855,5 +16063,5 @@ function _temp30(state) {
15855
16063
  }
15856
16064
 
15857
16065
  export { DOCK_EVENTS, DOCK_HUD_PRIORITY, DOCK_HUD_RENDER_MODE, DOCK_HUD_VARIANT, Dock, DockCardBanner, DockCardHeader, DockDescription, DockIcon, DockProvider, DockSurfaceAction, DockSurfaceExtension, DockSurfaceHeaderButton, DockTitle, ErrorActions, GuardActions, createDockGuardRegistry, createErrorStatus, createGuardStatus, createInlineSurfaceEntry, createSurfaceEntryDefinition, createSurfaceFlowBuilder, defineBreadcrumb, defineDockAction, defineHud, defineStepSurface, defineSurface, dockModule, dockTheme, isValidBannerUrl, useDock, useDockActionClass, useDockActions, useDockBanner, useDockConfig, useDockContextActions, useDockDimensions, useDockGuard, useDockHeight, useDockHud, useDockMotion, useDockRegistration, useDockSelector, useDockState, useDockTheme, useHud, useOptionalDockActions, useOptionalDockState, useSurface, useSurfaceAction, useSurfaceDimensions, useSurfaceFlow, useSurfaceHeader, useSurfaceId, useSurfaceReturn, useSurfaceStep };
15858
- //# sourceMappingURL=chunk-2EFQJITY.js.map
15859
- //# sourceMappingURL=chunk-2EFQJITY.js.map
16066
+ //# sourceMappingURL=chunk-FFJWJ4OB.js.map
16067
+ //# sourceMappingURL=chunk-FFJWJ4OB.js.map