@omerdlw/base-framework 3.3.0 → 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 (48) hide show
  1. package/dist/{chunk-K3LXE6D5.js → chunk-AZ2ZDFNP.js} +4 -4
  2. package/dist/{chunk-K3LXE6D5.js.map → chunk-AZ2ZDFNP.js.map} +1 -1
  3. package/dist/{chunk-NCXFWCXP.js → chunk-FFJWJ4OB.js} +1269 -1095
  4. package/dist/chunk-FFJWJ4OB.js.map +1 -0
  5. package/dist/{chunk-UE2KBW3D.js → chunk-QGPRTUED.js} +3 -3
  6. package/dist/{chunk-UE2KBW3D.js.map → chunk-QGPRTUED.js.map} +1 -1
  7. package/dist/context-menu/index.js +2 -2
  8. package/dist/dock/index.js +1 -1
  9. package/dist/index.js +3 -3
  10. package/dist/modules/dock/components/card-header.d.ts +1 -1
  11. package/dist/modules/dock/components/card-header.d.ts.map +1 -1
  12. package/dist/modules/dock/components/card-item.d.ts +1 -1
  13. package/dist/modules/dock/components/card-item.d.ts.map +1 -1
  14. package/dist/modules/dock/components/command-bar.d.ts.map +1 -1
  15. package/dist/modules/dock/components/compact.d.ts +9 -0
  16. package/dist/modules/dock/components/compact.d.ts.map +1 -0
  17. package/dist/modules/dock/components/item-content.d.ts.map +1 -1
  18. package/dist/modules/dock/context.d.ts.map +1 -1
  19. package/dist/modules/dock/hooks/use-action-slot.d.ts.map +1 -1
  20. package/dist/modules/dock/hooks/use-card-item-model.d.ts.map +1 -1
  21. package/dist/modules/dock/hooks/use-dock-height-controller.d.ts +1 -1
  22. package/dist/modules/dock/hooks/use-dock-height-controller.d.ts.map +1 -1
  23. package/dist/modules/dock/hooks/use-pending-skeleton.d.ts +7 -0
  24. package/dist/modules/dock/hooks/use-pending-skeleton.d.ts.map +1 -0
  25. package/dist/modules/dock/lib/card-item.d.ts +7 -0
  26. package/dist/modules/dock/lib/card-item.d.ts.map +1 -1
  27. package/dist/modules/dock/model/layout.d.ts +2 -2
  28. package/dist/modules/dock/model/layout.d.ts.map +1 -1
  29. package/dist/modules/dock/motion.d.ts.map +1 -1
  30. package/dist/modules/dock/provider.d.ts.map +1 -1
  31. package/dist/modules/dock/runtime/display.d.ts.map +1 -1
  32. package/dist/modules/dock/runtime/dock.d.ts +2 -0
  33. package/dist/modules/dock/runtime/dock.d.ts.map +1 -1
  34. package/dist/modules/dock/runtime/model/cards.d.ts +5 -2
  35. package/dist/modules/dock/runtime/model/cards.d.ts.map +1 -1
  36. package/dist/modules/dock/runtime/pipeline.d.ts.map +1 -1
  37. package/dist/modules/dock/types/card.d.ts +11 -0
  38. package/dist/modules/dock/types/card.d.ts.map +1 -1
  39. package/dist/modules/dock/types/compact.d.ts +13 -0
  40. package/dist/modules/dock/types/compact.d.ts.map +1 -0
  41. package/dist/modules/dock/types/index.d.ts +1 -0
  42. package/dist/modules/dock/types/index.d.ts.map +1 -1
  43. package/dist/modules/dock/types/theme.d.ts +10 -1
  44. package/dist/modules/dock/types/theme.d.ts.map +1 -1
  45. package/dist/modules/index.js +3 -3
  46. package/docs/modules/dock.md +10 -0
  47. package/package.json +1 -1
  48. package/dist/chunk-NCXFWCXP.js.map +0 -1
@@ -568,6 +568,14 @@ function resolveCardStackFlags(expanded, position, hasExtensions, stacking) {
568
568
  isExtensionShelf
569
569
  };
570
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
+ }
571
579
 
572
580
  // src/modules/dock/motion.ts
573
581
  function staggerDelay(index, {
@@ -614,13 +622,13 @@ var dockSurfaceDragTransformTemplate = ({
614
622
  y,
615
623
  scale
616
624
  }) => toGpuTransform(y, scale);
617
- function getDockBackdropTransition(motion17, {
625
+ function getDockBackdropTransition(motion18, {
618
626
  expanded = false,
619
627
  isSurface = false
620
628
  } = {}) {
621
- return isSurface || expanded ? motion17.transitions.expand : motion17.transitions.stack;
629
+ return isSurface || expanded ? motion18.transitions.expand : motion18.transitions.stack;
622
630
  }
623
- function getDockActionMotionProps(motion17, {
631
+ function getDockActionMotionProps(motion18, {
624
632
  disabled = false,
625
633
  reduceMotion = false
626
634
  } = {}) {
@@ -629,24 +637,24 @@ function getDockActionMotionProps(motion17, {
629
637
  initial: false,
630
638
  animate: "idle",
631
639
  whileTap: canMove ? "tap" : void 0,
632
- variants: motion17.variants.press,
633
- transition: motion17.transitions.press
640
+ variants: motion18.variants.press,
641
+ transition: motion18.transitions.press
634
642
  };
635
643
  }
636
- function getDockMediaVolumeFillTransition(motion17, {
644
+ function getDockMediaVolumeFillTransition(motion18, {
637
645
  isDragging = false
638
646
  } = {}) {
639
- return isDragging ? "none" : cssTransition("width", motion17.transitions.mediaVolume);
647
+ return isDragging ? "none" : cssTransition("width", motion18.transitions.mediaVolume);
640
648
  }
641
- function getDockMediaVolumeThumbAnimateProps(motion17, {
649
+ function getDockMediaVolumeThumbAnimateProps(motion18, {
642
650
  isDragging = false
643
651
  } = {}) {
644
- return isDragging ? motion17.variants.mediaVolumeThumb.dragging : motion17.variants.mediaVolumeThumb.idle;
652
+ return isDragging ? motion18.variants.mediaVolumeThumb.dragging : motion18.variants.mediaVolumeThumb.idle;
645
653
  }
646
- function getDockMediaVolumeThumbPositionTransition(motion17, {
654
+ function getDockMediaVolumeThumbPositionTransition(motion18, {
647
655
  isDragging = false
648
656
  } = {}) {
649
- return isDragging ? "none" : cssTransition("left", motion17.transitions.mediaVolume);
657
+ return isDragging ? "none" : cssTransition("left", motion18.transitions.mediaVolume);
650
658
  }
651
659
  var SURFACE_PHASE_KEYS = Object.freeze({
652
660
  [DOCK_SURFACE_PHASE.IDLE]: "idle",
@@ -657,47 +665,47 @@ var SURFACE_PHASE_KEYS = Object.freeze({
657
665
  [DOCK_SURFACE_PHASE.COLLAPSING_BODY]: "collapseBody",
658
666
  [DOCK_SURFACE_PHASE.RESTORING_HEADER]: "restoreHeader"
659
667
  });
660
- function getDockPhaseMotion(motion17, surfacePhase) {
668
+ function getDockPhaseMotion(motion18, surfacePhase) {
661
669
  const key = surfacePhase && SURFACE_PHASE_KEYS[surfacePhase] || "idle";
662
- return motion17.phases[key];
670
+ return motion18.phases[key];
663
671
  }
664
- function getDockHeaderRestoreVariants(motion17, surfacePhase) {
672
+ function getDockHeaderRestoreVariants(motion18, surfacePhase) {
665
673
  const {
666
674
  headerRestore
667
- } = motion17.variants;
675
+ } = motion18.variants;
668
676
  const visible = headerRestore.visible;
669
677
  return {
670
678
  hidden: headerRestore.hidden,
671
679
  visible: {
672
680
  ...visible,
673
- transition: getDockPhaseMotion(motion17, surfacePhase).headerReturn ?? visible.transition
681
+ transition: getDockPhaseMotion(motion18, surfacePhase).headerReturn ?? visible.transition
674
682
  },
675
683
  exit: headerRestore.exit
676
684
  };
677
685
  }
678
- function getDockStackTransformTransition(motion17, surfacePhase, fallbackTransition) {
679
- return getDockPhaseMotion(motion17, surfacePhase).transform ?? fallbackTransition;
686
+ function getDockStackTransformTransition(motion18, surfacePhase, fallbackTransition) {
687
+ return getDockPhaseMotion(motion18, surfacePhase).transform ?? fallbackTransition;
680
688
  }
681
- function getDockStackTransition(motion17, {
689
+ function getDockStackTransition(motion18, {
682
690
  expanded = false,
683
691
  resizeDistance = 0,
684
692
  surfacePhase = null
685
693
  } = {}) {
686
694
  const {
687
695
  deck
688
- } = getDockPhaseMotion(motion17, surfacePhase);
696
+ } = getDockPhaseMotion(motion18, surfacePhase);
689
697
  if (typeof deck === "function") {
690
- return deck(resizeDistance > 0 ? resizeDistance : motion17.deck.resizeFallback);
698
+ return deck(resizeDistance > 0 ? resizeDistance : motion18.deck.resizeFallback);
691
699
  }
692
700
  if (deck) return deck;
693
- return expanded ? motion17.transitions.expand : motion17.transitions.stack;
701
+ return expanded ? motion18.transitions.expand : motion18.transitions.stack;
694
702
  }
695
- function getDockLayoutTransition(motion17) {
703
+ function getDockLayoutTransition(motion18) {
696
704
  return {
697
- layout: motion17.transitions.layout
705
+ layout: motion18.transitions.layout
698
706
  };
699
707
  }
700
- function getDockStackAnimateProps(motion17, {
708
+ function getDockStackAnimateProps(motion18, {
701
709
  width,
702
710
  height,
703
711
  isBreadcrumbsVisible = false,
@@ -707,24 +715,24 @@ function getDockStackAnimateProps(motion17, {
707
715
  }) {
708
716
  const safeWidth = Number(width);
709
717
  const safeHeight = Number(height);
710
- const liftAmount = isBreadcrumbsVisible ? motion17.deck.breadcrumbOffset : 0;
718
+ const liftAmount = isBreadcrumbsVisible ? motion18.deck.breadcrumbOffset : 0;
711
719
  return {
712
720
  width: Math.max(0, Math.round(Number.isFinite(safeWidth) ? safeWidth : 0)),
713
721
  height: Math.max(0, Math.round(Number.isFinite(safeHeight) ? safeHeight : 0)),
714
- transform: toGpuTransform(liftAmount, getDockPhaseMotion(motion17, surfacePhase).scale),
715
- opacity: isFullscreen ? motion17.deck.fullscreenOpacity : 1,
716
- 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,
717
725
  pointerEvents: isFullscreen ? "none" : "auto"
718
726
  };
719
727
  }
720
- function getDockCardDelay(motion17, {
728
+ function getDockCardDelay(motion18, {
721
729
  expanded = false,
722
730
  isStackHovered = false,
723
731
  position = 0
724
732
  } = {}) {
725
733
  const {
726
734
  timings
727
- } = motion17;
735
+ } = motion18;
728
736
  const safePosition = Math.max(0, Number(position) || 0);
729
737
  if (expanded && safePosition > 0) {
730
738
  return staggerDelay(safePosition, {
@@ -742,7 +750,7 @@ function getDockCardDelay(motion17, {
742
750
  }
743
751
  return 0;
744
752
  }
745
- function getDockItemAnimateValues(motion17, {
753
+ function getDockItemAnimateValues(motion18, {
746
754
  motionValues,
747
755
  expanded = false,
748
756
  isStackHovered = false,
@@ -750,51 +758,54 @@ function getDockItemAnimateValues(motion17, {
750
758
  position = 0
751
759
  } = {}) {
752
760
  if (!motionValues) return {};
753
- const safePosition = Math.max(0, Number(position) || 0);
754
- const isHoveredOffset = !expanded && isStackHovered && safePosition > 0 && !isSurfaceActive;
755
- 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;
756
767
  const y = peek ? motionValues.y - peek.lift : motionValues.y;
757
768
  const scale = peek ? motionValues.scale * peek.scale : motionValues.scale;
758
769
  return {
759
770
  transform: toGpuTransform(y, scale),
760
- opacity: motionValues.opacity
771
+ opacity: peek?.opacity ?? motionValues.opacity
761
772
  };
762
773
  }
763
- function getDockItemTransition(motion17, {
774
+ function getDockItemTransition(motion18, {
764
775
  expanded = false,
765
776
  isStackHovered = false,
766
777
  position = 0,
767
778
  delay = 0
768
779
  } = {}) {
769
780
  const safePosition = Math.max(0, Number(position) || 0);
770
- let baseTransition = motion17.transitions.card;
771
- if (expanded) baseTransition = motion17.transitions.cardExpanded;
781
+ let baseTransition = motion18.transitions.card;
782
+ if (expanded) baseTransition = motion18.transitions.cardExpanded;
772
783
  else if (isStackHovered && safePosition > 0) {
773
- baseTransition = motion17.transitions.cardPeek;
784
+ baseTransition = motion18.transitions.cardPeek;
774
785
  }
775
786
  return {
776
787
  ...baseTransition,
777
788
  delay: Number(delay) || 0
778
789
  };
779
790
  }
780
- function getDockItemExitValues(motion17, {
791
+ function getDockItemExitValues(motion18, {
781
792
  motionValues,
782
793
  position = 0
783
794
  } = {}) {
784
795
  const safePosition = Math.max(0, Number(position) || 0);
785
- return motion17.deck.exit({
796
+ return motion18.deck.exit({
786
797
  position: safePosition,
787
798
  scale: motionValues && Number.isFinite(motionValues.scale) ? motionValues.scale : null,
788
- 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
789
800
  });
790
801
  }
791
- function getDockCardContentAnimateProps(motion17, {
802
+ function getDockCardContentAnimateProps(motion18, {
792
803
  expanded = false,
793
804
  position = 0,
794
805
  isExtensionShelf = false
795
806
  } = {}) {
796
807
  const isHidden = !expanded && position > 0 && !isExtensionShelf;
797
- return isHidden ? motion17.variants.cardContent.hidden : motion17.variants.cardContent.visible;
808
+ return isHidden ? motion18.variants.cardContent.hidden : motion18.variants.cardContent.visible;
798
809
  }
799
810
  var DockContext = getOrCreateGlobalContext("DockContext", null);
800
811
  function useDockState() {
@@ -849,6 +860,7 @@ var EMPTY_DOCK_STATE = Object.freeze({
849
860
  activeOperation: null,
850
861
  activeSurfaceEntry: null,
851
862
  activeSurfaceId: null,
863
+ compact: false,
852
864
  contextActions: [],
853
865
  dockContinuity: [],
854
866
  dockHeight: 0,
@@ -913,18 +925,20 @@ var DEFAULT_CARD_PADDING = DOCK_CARD_LAYOUT.chromeHeight / 2;
913
925
  function getDockCardPadding(padding) {
914
926
  return typeof padding === "number" && Number.isFinite(padding) && padding >= 0 ? padding : DEFAULT_CARD_PADDING;
915
927
  }
916
- function getDockCardMinHeight(isHud = false, padding) {
928
+ function getDockCardMinHeight(isHud = false, padding, fitContent = false) {
917
929
  const chrome = getDockCardPadding(padding) * 2;
930
+ if (fitContent) return chrome;
918
931
  const base = isHud ? DOCK_CARD_LAYOUT.hudHeight : DOCK_CARD_LAYOUT.baseHeight;
919
932
  return base - DOCK_CARD_LAYOUT.chromeHeight + chrome;
920
933
  }
921
934
  function getContainerHeight({
922
935
  cardContentHeight,
936
+ fitContent = false,
923
937
  isHud = false,
924
938
  padding
925
939
  }) {
926
940
  const chromeHeight = getDockCardPadding(padding) * 2;
927
- const minCardHeight = getDockCardMinHeight(isHud, padding);
941
+ const minCardHeight = getDockCardMinHeight(isHud, padding, fitContent);
928
942
  const numericContentHeight = Number(cardContentHeight);
929
943
  const nextCardHeight = Math.max(minCardHeight, (Number.isFinite(numericContentHeight) ? numericContentHeight : 0) + chromeHeight);
930
944
  return Math.min(nextCardHeight, getViewportMaxHeight());
@@ -1000,6 +1014,7 @@ function createHeightController(initial, setContainerHeight) {
1000
1014
  const applyHeight = () => {
1001
1015
  const height = getContainerHeight({
1002
1016
  cardContentHeight: contentHeight,
1017
+ fitContent: inputs.fitContent,
1003
1018
  isHud: inputs.isHud,
1004
1019
  padding: inputs.padding
1005
1020
  });
@@ -1029,156 +1044,163 @@ function createHeightController(initial, setContainerHeight) {
1029
1044
  };
1030
1045
  }
1031
1046
  function useDockHeightController(t0) {
1032
- const $ = c(37);
1047
+ const $ = c(40);
1033
1048
  const {
1034
1049
  contentKey: t1,
1035
1050
  heightVar,
1036
- isHud: t2,
1051
+ fitContent: t2,
1052
+ isHud: t3,
1037
1053
  padding,
1038
1054
  setDockHeight,
1039
- surfacePhase: t3
1055
+ surfacePhase: t4
1040
1056
  } = t0;
1041
1057
  const contentKey = t1 === void 0 ? null : t1;
1042
- const isHud = t2 === void 0 ? false : t2;
1043
- const surfacePhase = t3 === void 0 ? DOCK_SURFACE_PHASE.IDLE : t3;
1044
- let t4;
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;
1045
1062
  if ($[0] !== isHud || $[1] !== padding) {
1046
- t4 = () => getDockCardMinHeight(isHud, padding);
1063
+ t5 = () => getDockCardMinHeight(isHud, padding);
1047
1064
  $[0] = isHud;
1048
1065
  $[1] = padding;
1049
- $[2] = t4;
1066
+ $[2] = t5;
1050
1067
  } else {
1051
- t4 = $[2];
1068
+ t5 = $[2];
1052
1069
  }
1053
- const [containerHeight, setContainerHeight] = useState(t4);
1054
- let t5;
1055
- if ($[3] !== heightVar || $[4] !== isHud || $[5] !== padding || $[6] !== setDockHeight) {
1056
- 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({
1057
1074
  heightVar,
1075
+ fitContent,
1058
1076
  isHud,
1059
1077
  padding,
1060
1078
  setDockHeight
1061
1079
  }, setContainerHeight);
1062
- $[3] = heightVar;
1063
- $[4] = isHud;
1064
- $[5] = padding;
1065
- $[6] = setDockHeight;
1066
- $[7] = t5;
1080
+ $[3] = fitContent;
1081
+ $[4] = heightVar;
1082
+ $[5] = isHud;
1083
+ $[6] = padding;
1084
+ $[7] = setDockHeight;
1085
+ $[8] = t6;
1067
1086
  } else {
1068
- t5 = $[7];
1087
+ t6 = $[8];
1069
1088
  }
1070
- const [t6] = useState(t5);
1089
+ const [t7] = useState(t6);
1071
1090
  const {
1072
1091
  applyHeight,
1073
1092
  dispose,
1074
1093
  handleContentHeightChange,
1075
1094
  setInputs
1076
- } = t6;
1077
- let t7;
1095
+ } = t7;
1078
1096
  let t8;
1079
- if ($[8] !== heightVar || $[9] !== isHud || $[10] !== padding || $[11] !== setDockHeight || $[12] !== setInputs) {
1080
- t7 = () => {
1097
+ let t9;
1098
+ if ($[9] !== fitContent || $[10] !== heightVar || $[11] !== isHud || $[12] !== padding || $[13] !== setDockHeight || $[14] !== setInputs) {
1099
+ t8 = () => {
1081
1100
  setInputs({
1082
1101
  heightVar,
1102
+ fitContent,
1083
1103
  isHud,
1084
1104
  padding,
1085
1105
  setDockHeight
1086
1106
  });
1087
1107
  };
1088
- t8 = [heightVar, isHud, padding, setDockHeight, setInputs];
1089
- $[8] = heightVar;
1090
- $[9] = isHud;
1091
- $[10] = padding;
1092
- $[11] = setDockHeight;
1093
- $[12] = setInputs;
1094
- $[13] = t7;
1095
- $[14] = 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;
1096
1117
  } else {
1097
- t7 = $[13];
1098
- t8 = $[14];
1118
+ t8 = $[15];
1119
+ t9 = $[16];
1099
1120
  }
1100
- useLayoutEffect(t7, t8);
1121
+ useLayoutEffect(t8, t9);
1101
1122
  let t10;
1102
- let t9;
1103
- if ($[15] !== dispose) {
1104
- t9 = () => dispose;
1105
- t10 = [dispose];
1106
- $[15] = dispose;
1107
- $[16] = t10;
1108
- $[17] = t9;
1109
- } else {
1110
- t10 = $[16];
1111
- t9 = $[17];
1112
- }
1113
- useEffect(t9, t10);
1114
1123
  let t11;
1115
- if ($[18] !== applyHeight) {
1116
- t11 = () => applyHeight();
1117
- $[18] = applyHeight;
1124
+ if ($[17] !== dispose) {
1125
+ t10 = () => dispose;
1126
+ t11 = [dispose];
1127
+ $[17] = dispose;
1128
+ $[18] = t10;
1118
1129
  $[19] = t11;
1119
1130
  } else {
1131
+ t10 = $[18];
1120
1132
  t11 = $[19];
1121
1133
  }
1134
+ useEffect(t10, t11);
1122
1135
  let t12;
1123
- if ($[20] !== applyHeight || $[21] !== contentKey) {
1124
- t12 = [applyHeight, contentKey];
1136
+ if ($[20] !== applyHeight) {
1137
+ t12 = () => applyHeight();
1125
1138
  $[20] = applyHeight;
1126
- $[21] = contentKey;
1127
- $[22] = t12;
1139
+ $[21] = t12;
1128
1140
  } else {
1129
- t12 = $[22];
1141
+ t12 = $[21];
1130
1142
  }
1131
- useLayoutEffect(t11, t12);
1132
1143
  let t13;
1133
- if ($[23] !== applyHeight) {
1134
- t13 = () => applyHeight();
1135
- $[23] = applyHeight;
1144
+ if ($[22] !== applyHeight || $[23] !== contentKey) {
1145
+ t13 = [applyHeight, contentKey];
1146
+ $[22] = applyHeight;
1147
+ $[23] = contentKey;
1136
1148
  $[24] = t13;
1137
1149
  } else {
1138
1150
  t13 = $[24];
1139
1151
  }
1152
+ useLayoutEffect(t12, t13);
1140
1153
  let t14;
1141
- if ($[25] !== applyHeight || $[26] !== surfacePhase) {
1142
- t14 = [applyHeight, surfacePhase];
1154
+ if ($[25] !== applyHeight) {
1155
+ t14 = () => applyHeight();
1143
1156
  $[25] = applyHeight;
1144
- $[26] = surfacePhase;
1145
- $[27] = t14;
1157
+ $[26] = t14;
1146
1158
  } else {
1147
- t14 = $[27];
1159
+ t14 = $[26];
1148
1160
  }
1149
- useLayoutEffect(t13, t14);
1150
1161
  let t15;
1151
- if ($[28] !== applyHeight) {
1152
- t15 = () => applyHeight();
1153
- $[28] = applyHeight;
1162
+ if ($[27] !== applyHeight || $[28] !== surfacePhase) {
1163
+ t15 = [applyHeight, surfacePhase];
1164
+ $[27] = applyHeight;
1165
+ $[28] = surfacePhase;
1154
1166
  $[29] = t15;
1155
1167
  } else {
1156
1168
  t15 = $[29];
1157
1169
  }
1170
+ useLayoutEffect(t14, t15);
1158
1171
  let t16;
1159
- if ($[30] !== applyHeight || $[31] !== isHud || $[32] !== padding) {
1160
- t16 = [applyHeight, isHud, padding];
1172
+ if ($[30] !== applyHeight) {
1173
+ t16 = () => applyHeight();
1161
1174
  $[30] = applyHeight;
1162
- $[31] = isHud;
1163
- $[32] = padding;
1164
- $[33] = t16;
1175
+ $[31] = t16;
1165
1176
  } else {
1166
- t16 = $[33];
1177
+ t16 = $[31];
1167
1178
  }
1168
- useLayoutEffect(t15, t16);
1169
1179
  let t17;
1170
- if ($[34] !== containerHeight || $[35] !== handleContentHeightChange) {
1171
- 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 = {
1172
1194
  containerHeight,
1173
1195
  handleContentHeightChange
1174
1196
  };
1175
- $[34] = containerHeight;
1176
- $[35] = handleContentHeightChange;
1177
- $[36] = t17;
1197
+ $[37] = containerHeight;
1198
+ $[38] = handleContentHeightChange;
1199
+ $[39] = t18;
1178
1200
  } else {
1179
- t17 = $[36];
1201
+ t18 = $[39];
1180
1202
  }
1181
- return t17;
1203
+ return t18;
1182
1204
  }
1183
1205
 
1184
1206
  // src/modules/dock/lib/dom.ts
@@ -5102,11 +5124,10 @@ function resolveDockHeaderKey({
5102
5124
  showVideoIcon = false
5103
5125
  }) {
5104
5126
  const statusPart = link?.isStatus ? `status:${link.statusType || link.type || "status"}` : "standard";
5105
- const identityPart = link?.path || link?.name || link?.id || "item";
5106
5127
  const titlePart = link?.title || link?.name || "";
5107
5128
  const descPart = description || "";
5108
5129
  const iconPart = showVideoIcon ? "video" : link?.icon || "no-icon";
5109
- return `${statusPart}:${identityPart}:${iconPart}:${titlePart}:${descPart}`;
5130
+ return `${statusPart}:${iconPart}:${titlePart}:${descPart}`;
5110
5131
  }
5111
5132
  function findDockItemIndex(dockItems, activeItem, pathname) {
5112
5133
  const normalizedPathname = normalizePath(pathname);
@@ -5187,7 +5208,7 @@ function getIsItemActive(link, activeItem) {
5187
5208
 
5188
5209
  // src/modules/dock/runtime/display.ts
5189
5210
  function usePendingRouteHold(pathname, match, t0) {
5190
- const $ = c(26);
5211
+ const $ = c(30);
5191
5212
  let t1;
5192
5213
  if ($[0] !== t0) {
5193
5214
  t1 = t0 === void 0 ? {} : t0;
@@ -5273,36 +5294,45 @@ function usePendingRouteHold(pathname, match, t0) {
5273
5294
  t8 = $[17];
5274
5295
  }
5275
5296
  useEffect(t7, t8);
5276
- const t9 = hold.isOpen && hold.pathname === normalizedPathname;
5297
+ let selected;
5277
5298
  let t10;
5278
- if ($[18] !== lastMatched || $[19] !== match || $[20] !== normalizedPathname || $[21] !== t9) {
5279
- t10 = selectPendingRouteItem({
5299
+ let t9;
5300
+ if ($[18] !== hold.isOpen || $[19] !== hold.pathname || $[20] !== isNavigating || $[21] !== lastMatched || $[22] !== match || $[23] !== normalizedPathname) {
5301
+ selected = selectPendingRouteItem({
5280
5302
  heldItem: lastMatched,
5281
- isHolding: t9,
5303
+ isHolding: hold.isOpen && hold.pathname === normalizedPathname,
5282
5304
  match,
5283
5305
  pathname: normalizedPathname
5284
5306
  });
5285
- $[18] = lastMatched;
5286
- $[19] = match;
5287
- $[20] = normalizedPathname;
5288
- $[21] = t9;
5289
- $[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;
5290
5318
  } else {
5291
- t10 = $[22];
5319
+ selected = $[24];
5320
+ t10 = $[25];
5321
+ t9 = $[26];
5292
5322
  }
5293
- const selected = t10;
5294
- const isHeld = selected !== match.item;
5323
+ const isStale = t9(t10);
5324
+ const isPending = selected !== match.item || isStale;
5295
5325
  let t11;
5296
- if ($[23] !== isHeld || $[24] !== selected) {
5297
- t11 = isHeld && selected ? {
5326
+ if ($[27] !== isPending || $[28] !== selected) {
5327
+ t11 = isPending && selected ? {
5298
5328
  ...selected,
5299
5329
  isRoutePending: true
5300
5330
  } : selected;
5301
- $[23] = isHeld;
5302
- $[24] = selected;
5303
- $[25] = t11;
5331
+ $[27] = isPending;
5332
+ $[28] = selected;
5333
+ $[29] = t11;
5304
5334
  } else {
5305
- t11 = $[25];
5335
+ t11 = $[29];
5306
5336
  }
5307
5337
  return t11;
5308
5338
  }
@@ -5955,6 +5985,7 @@ var OUTSIDE_DISMISS_HANDLED = "handled";
5955
5985
  var OUTSIDE_DISMISS_UNHANDLED = "unhandled";
5956
5986
  var ACTIVE_KEY_FALLBACK = "active";
5957
5987
  var DEFAULT_ROUTE_KEY = "default";
5988
+ var FRONT_CARD_KEY = "dock-card:front";
5958
5989
  function resolveDockContentKey(activeItem, isHudActive, hud) {
5959
5990
  if (activeItem?.isSurface) return `surface:${activeItem.surfaceId ?? activeItem.path ?? ACTIVE_KEY_FALLBACK}`;
5960
5991
  if (isHudActive) return `hud:${hud?.id || ACTIVE_KEY_FALLBACK}`;
@@ -5976,6 +6007,7 @@ function dismissSurfaceFromOutside(activeItem) {
5976
6007
  function createCardHandlers({
5977
6008
  canTopCardPreview,
5978
6009
  clearHoverState,
6010
+ compact,
5979
6011
  expanded,
5980
6012
  isStatusActive,
5981
6013
  isTop,
@@ -5995,11 +6027,15 @@ function createCardHandlers({
5995
6027
  };
5996
6028
  const handleMouseLeave = () => {
5997
6029
  if (expanded) setFocusedIndex(NO_FOCUSED_INDEX2);
5998
- if (!isTop || !canTopCardPreview) return;
6030
+ if (!isTop) return;
5999
6031
  setIsStackHovered(false);
6000
6032
  setIsHovered(false);
6001
6033
  };
6002
6034
  const handleClick = () => {
6035
+ if (compact) {
6036
+ compact.setCompact(false);
6037
+ return;
6038
+ }
6003
6039
  if (item.isOverlay || isStatusActive || item.isStatus) return;
6004
6040
  if (!expanded) {
6005
6041
  clearHoverState();
@@ -6026,6 +6062,7 @@ function createDockCardProps({
6026
6062
  expanded,
6027
6063
  handleContentHeightChange,
6028
6064
  hud,
6065
+ compact,
6029
6066
  isExtensionsVisible,
6030
6067
  isHudActive,
6031
6068
  isStackHovered,
@@ -6037,9 +6074,10 @@ function createDockCardProps({
6037
6074
  setIsStackHovered,
6038
6075
  statusStyle
6039
6076
  }) {
6040
- const positionedDockItems = dockItems.map((item, index) => ({
6077
+ const shownItems = compact ? dockItems.slice(0, 1) : dockItems;
6078
+ const positionedDockItems = shownItems.map((item, index) => ({
6041
6079
  item,
6042
- key: getItemKey(item, index),
6080
+ key: index === 0 ? FRONT_CARD_KEY : getItemKey(item, index),
6043
6081
  position: index
6044
6082
  })).sort((left, right) => left.key.localeCompare(right.key));
6045
6083
  return positionedDockItems.map(({
@@ -6049,7 +6087,7 @@ function createDockCardProps({
6049
6087
  }) => {
6050
6088
  const isTop = position === 0;
6051
6089
  const isActive = getIsItemActive(item, activeItem);
6052
- const canTopCardPreview = !isStatusActive;
6090
+ const canTopCardPreview = !isStatusActive && !compact;
6053
6091
  const {
6054
6092
  handleClick,
6055
6093
  handleMouseEnter,
@@ -6058,6 +6096,7 @@ function createDockCardProps({
6058
6096
  canTopCardPreview,
6059
6097
  clearHoverState,
6060
6098
  expanded,
6099
+ compact: isTop ? compact : null,
6061
6100
  isStatusActive,
6062
6101
  isTop,
6063
6102
  item,
@@ -6086,6 +6125,7 @@ function createDockCardProps({
6086
6125
  hud,
6087
6126
  clearHud,
6088
6127
  contextCommands: contextActions,
6128
+ compact: isTop ? compact : null,
6089
6129
  onMouseEnter: handleMouseEnter,
6090
6130
  onMouseLeave: handleMouseLeave,
6091
6131
  onClick: handleClick,
@@ -6095,8 +6135,9 @@ function createDockCardProps({
6095
6135
  }
6096
6136
 
6097
6137
  // src/modules/dock/runtime/dock.tsx
6138
+ var DEFAULT_COMPACT_KEY = "default";
6098
6139
  function useDockModel() {
6099
- const $ = c(88);
6140
+ const $ = c(78);
6100
6141
  const {
6101
6142
  activeItem,
6102
6143
  dockItems,
@@ -6129,12 +6170,15 @@ function useDockModel() {
6129
6170
  useDockViewConnection(t0);
6130
6171
  const isFullscreenStateActive = useIsFullscreenStateActive();
6131
6172
  const {
6173
+ compact,
6132
6174
  contextActions,
6133
6175
  hud
6134
6176
  } = useDockSelector(_temp11, _temp25);
6135
6177
  const {
6136
- clearHud
6178
+ clearHud,
6179
+ setCompact
6137
6180
  } = useDockActions();
6181
+ const [compactWidth, setCompactWidth] = useState(0);
6138
6182
  const [isStackHovered, setIsStackHovered] = useState(false);
6139
6183
  const [focusedIndex, setFocusedIndex] = useState(NO_FOCUSED_INDEX2);
6140
6184
  const isNotificationVisible = useDockNotificationVisible();
@@ -6185,67 +6229,108 @@ function useDockModel() {
6185
6229
  const isSubCardVisible = scene.isCompanionVisible;
6186
6230
  const isExtensionsVisible = useIsSurfaceExtensionsVisible(activeItem);
6187
6231
  let t3;
6188
- if ($[13] !== activeItem || $[14] !== hud || $[15] !== isHudActive) {
6189
- t3 = resolveDockContentKey(activeItem, isHudActive, hud);
6232
+ if ($[13] !== activeItem) {
6233
+ t3 = isNotFoundItem(activeItem);
6190
6234
  $[13] = activeItem;
6191
- $[14] = hud;
6192
- $[15] = isHudActive;
6193
- $[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;
6194
6246
  } else {
6195
- t3 = $[16];
6247
+ t4 = $[16];
6196
6248
  }
6197
- const contentKey = t3;
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;
6198
6252
  const dockMotion = useDockMotion();
6199
- const t4 = activeItem?.surfacePhase;
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;
6200
6261
  let t5;
6201
- if ($[17] !== contentKey || $[18] !== dockMotion.deck.heightVar || $[19] !== dockMotion.deck.padding || $[20] !== isHudActive || $[21] !== setDockHeight || $[22] !== t4) {
6202
- 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 = {
6203
6286
  contentKey,
6204
6287
  heightVar: dockMotion.deck.heightVar,
6288
+ fitContent: t6,
6205
6289
  isHud: isHudActive,
6206
6290
  padding: dockMotion.deck.padding,
6207
6291
  setDockHeight,
6208
- surfacePhase: t4
6209
- };
6210
- $[17] = contentKey;
6211
- $[18] = dockMotion.deck.heightVar;
6212
- $[19] = dockMotion.deck.padding;
6213
- $[20] = isHudActive;
6214
- $[21] = setDockHeight;
6215
- $[22] = t4;
6216
- $[23] = 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;
6217
6302
  } else {
6218
- t5 = $[23];
6303
+ t8 = $[32];
6219
6304
  }
6220
6305
  const {
6221
6306
  containerHeight,
6222
6307
  handleContentHeightChange
6223
- } = useDockHeightController(t5);
6224
- let t6;
6225
- if ($[24] !== containerHeight || $[25] !== stackWidth) {
6226
- t6 = {
6227
- width: stackWidth,
6308
+ } = useDockHeightController(t8);
6309
+ let t9;
6310
+ if ($[33] !== containerHeight || $[34] !== shownStackWidth) {
6311
+ t9 = {
6312
+ width: shownStackWidth,
6228
6313
  height: containerHeight,
6229
6314
  resizeDistance: 0
6230
6315
  };
6231
- $[24] = containerHeight;
6232
- $[25] = stackWidth;
6233
- $[26] = t6;
6316
+ $[33] = containerHeight;
6317
+ $[34] = shownStackWidth;
6318
+ $[35] = t9;
6234
6319
  } else {
6235
- t6 = $[26];
6320
+ t9 = $[35];
6236
6321
  }
6237
- const [stackSize, setStackSize] = useState(t6);
6238
- if (stackSize.width !== stackWidth || stackSize.height !== containerHeight) {
6322
+ const [stackSize, setStackSize] = useState(t9);
6323
+ if (stackSize.width !== shownStackWidth || stackSize.height !== containerHeight) {
6239
6324
  setStackSize({
6240
- width: stackWidth,
6325
+ width: shownStackWidth,
6241
6326
  height: containerHeight,
6242
- resizeDistance: Math.hypot(stackWidth - stackSize.width, containerHeight - stackSize.height)
6327
+ resizeDistance: Math.hypot(shownStackWidth - stackSize.width, containerHeight - stackSize.height)
6243
6328
  });
6244
6329
  }
6245
6330
  const surfaceResizeDistance = stackSize.resizeDistance;
6246
- let t7;
6247
- if ($[27] !== activeItem || $[28] !== isOverlayActive || $[29] !== setExpanded) {
6248
- t7 = () => {
6331
+ let t10;
6332
+ if ($[36] !== activeItem || $[37] !== isOverlayActive || $[38] !== setExpanded) {
6333
+ t10 = () => {
6249
6334
  const outcome = dismissSurfaceFromOutside(activeItem);
6250
6335
  if (outcome === OUTSIDE_DISMISS_HANDLED) {
6251
6336
  return;
@@ -6255,17 +6340,17 @@ function useDockModel() {
6255
6340
  }
6256
6341
  setExpanded(false);
6257
6342
  };
6258
- $[27] = activeItem;
6259
- $[28] = isOverlayActive;
6260
- $[29] = setExpanded;
6261
- $[30] = t7;
6343
+ $[36] = activeItem;
6344
+ $[37] = isOverlayActive;
6345
+ $[38] = setExpanded;
6346
+ $[39] = t10;
6262
6347
  } else {
6263
- t7 = $[30];
6348
+ t10 = $[39];
6264
6349
  }
6265
- const handleOutsideDismiss = t7;
6266
- let t8;
6267
- if ($[31] !== dockItems || $[32] !== expanded || $[33] !== focusedIndex || $[34] !== isOverlayActive || $[35] !== navigate || $[36] !== setExpanded) {
6268
- t8 = {
6350
+ const handleOutsideDismiss = t10;
6351
+ let t11;
6352
+ if ($[40] !== dockItems || $[41] !== expanded || $[42] !== focusedIndex || $[43] !== isOverlayActive || $[44] !== navigate || $[45] !== setExpanded) {
6353
+ t11 = {
6269
6354
  expanded,
6270
6355
  focusedIndex,
6271
6356
  isOverlayActive,
@@ -6274,43 +6359,43 @@ function useDockModel() {
6274
6359
  setExpanded,
6275
6360
  setFocusedIndex
6276
6361
  };
6277
- $[31] = dockItems;
6278
- $[32] = expanded;
6279
- $[33] = focusedIndex;
6280
- $[34] = isOverlayActive;
6281
- $[35] = navigate;
6282
- $[36] = setExpanded;
6283
- $[37] = t8;
6362
+ $[40] = dockItems;
6363
+ $[41] = expanded;
6364
+ $[42] = focusedIndex;
6365
+ $[43] = isOverlayActive;
6366
+ $[44] = navigate;
6367
+ $[45] = setExpanded;
6368
+ $[46] = t11;
6284
6369
  } else {
6285
- t8 = $[37];
6370
+ t11 = $[46];
6286
6371
  }
6287
- useDockKeyboard(t8);
6372
+ useDockKeyboard(t11);
6288
6373
  useClickOutside(dockRef, handleOutsideDismiss);
6289
- let t10;
6290
- let t9;
6291
- if ($[38] !== activeIndex || $[39] !== expanded || $[40] !== setIsHovered) {
6292
- t9 = () => {
6374
+ let t12;
6375
+ let t13;
6376
+ if ($[47] !== activeIndex || $[48] !== expanded || $[49] !== setIsHovered) {
6377
+ t12 = () => {
6293
6378
  queueMicrotask(() => {
6294
6379
  setIsStackHovered(false);
6295
6380
  setIsHovered(false);
6296
6381
  setFocusedIndex(expanded ? activeIndex : NO_FOCUSED_INDEX2);
6297
6382
  });
6298
6383
  };
6299
- t10 = [activeIndex, expanded, setIsHovered];
6300
- $[38] = activeIndex;
6301
- $[39] = expanded;
6302
- $[40] = setIsHovered;
6303
- $[41] = t10;
6304
- $[42] = t9;
6384
+ t13 = [activeIndex, expanded, setIsHovered];
6385
+ $[47] = activeIndex;
6386
+ $[48] = expanded;
6387
+ $[49] = setIsHovered;
6388
+ $[50] = t12;
6389
+ $[51] = t13;
6305
6390
  } else {
6306
- t10 = $[41];
6307
- t9 = $[42];
6391
+ t12 = $[50];
6392
+ t13 = $[51];
6308
6393
  }
6309
- useEffect(t9, t10);
6310
- let t11;
6311
- let t12;
6312
- if ($[43] !== isFullscreenStateActive || $[44] !== setExpanded || $[45] !== setIsHovered) {
6313
- t11 = () => {
6394
+ useEffect(t12, t13);
6395
+ let t14;
6396
+ let t15;
6397
+ if ($[52] !== isFullscreenStateActive || $[53] !== setExpanded || $[54] !== setIsHovered) {
6398
+ t14 = () => {
6314
6399
  if (!isFullscreenStateActive) {
6315
6400
  return;
6316
6401
  }
@@ -6320,91 +6405,59 @@ function useDockModel() {
6320
6405
  setIsHovered(false);
6321
6406
  });
6322
6407
  };
6323
- t12 = [isFullscreenStateActive, setExpanded, setIsHovered];
6324
- $[43] = isFullscreenStateActive;
6325
- $[44] = setExpanded;
6326
- $[45] = setIsHovered;
6327
- $[46] = t11;
6328
- $[47] = t12;
6329
- } else {
6330
- t11 = $[46];
6331
- t12 = $[47];
6332
- }
6333
- useEffect(t11, t12);
6334
- let t13;
6335
- if ($[48] !== activeItem) {
6336
- t13 = isNotFoundItem(activeItem);
6337
- $[48] = activeItem;
6338
- $[49] = t13;
6408
+ t15 = [isFullscreenStateActive, setExpanded, setIsHovered];
6409
+ $[52] = isFullscreenStateActive;
6410
+ $[53] = setExpanded;
6411
+ $[54] = setIsHovered;
6412
+ $[55] = t14;
6413
+ $[56] = t15;
6339
6414
  } else {
6340
- t13 = $[49];
6415
+ t14 = $[55];
6416
+ t15 = $[56];
6341
6417
  }
6342
- const isNotFound = Boolean(t13);
6343
- const isStatusActive = Boolean(activeItem?.isStatus || isNotFound);
6418
+ useEffect(t14, t15);
6344
6419
  const statusStyle = isStatusActive && !isNotFound ? activeItem?.style || null : null;
6345
- let t14;
6346
- if ($[50] !== activeItem || $[51] !== clearHoverState || $[52] !== clearHud || $[53] !== contextActions || $[54] !== dockItems || $[55] !== expanded || $[56] !== handleContentHeightChange || $[57] !== hud || $[58] !== isExtensionsVisible || $[59] !== isHudActive || $[60] !== isStackHovered || $[61] !== isStatusActive || $[62] !== navigate || $[63] !== setExpanded || $[64] !== setIsHovered || $[65] !== statusStyle) {
6347
- t14 = createDockCardProps({
6348
- activeItem,
6349
- clearHud,
6350
- clearHoverState,
6351
- contextActions,
6352
- dockItems,
6353
- expanded,
6354
- handleContentHeightChange,
6355
- hud,
6356
- isExtensionsVisible,
6357
- isHudActive,
6358
- isStackHovered,
6359
- isStatusActive,
6360
- navigate,
6361
- setExpanded,
6362
- setFocusedIndex,
6363
- setIsHovered,
6364
- setIsStackHovered,
6365
- statusStyle
6366
- });
6367
- $[50] = activeItem;
6368
- $[51] = clearHoverState;
6369
- $[52] = clearHud;
6370
- $[53] = contextActions;
6371
- $[54] = dockItems;
6372
- $[55] = expanded;
6373
- $[56] = handleContentHeightChange;
6374
- $[57] = hud;
6375
- $[58] = isExtensionsVisible;
6376
- $[59] = isHudActive;
6377
- $[60] = isStackHovered;
6378
- $[61] = isStatusActive;
6379
- $[62] = navigate;
6380
- $[63] = setExpanded;
6381
- $[64] = setIsHovered;
6382
- $[65] = statusStyle;
6383
- $[66] = t14;
6384
- } else {
6385
- t14 = $[66];
6386
- }
6387
- const dockCardProps = t14;
6388
- const t15 = activeItem?.surfacePhase ?? null;
6389
- let t16;
6390
- if ($[67] !== dockMotion || $[68] !== expanded || $[69] !== surfaceResizeDistance || $[70] !== t15) {
6391
- t16 = getDockStackTransition(dockMotion, {
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, {
6392
6445
  expanded,
6393
6446
  resizeDistance: surfaceResizeDistance,
6394
- surfacePhase: t15
6447
+ surfacePhase: t16
6395
6448
  });
6396
- $[67] = dockMotion;
6397
- $[68] = expanded;
6398
- $[69] = surfaceResizeDistance;
6399
- $[70] = t15;
6400
- $[71] = t16;
6449
+ $[57] = dockMotion;
6450
+ $[58] = expanded;
6451
+ $[59] = surfaceResizeDistance;
6452
+ $[60] = t16;
6453
+ $[61] = t17;
6401
6454
  } else {
6402
- t16 = $[71];
6455
+ t17 = $[61];
6403
6456
  }
6404
- const dockStackTransition = t16;
6405
- let t17;
6406
- if ($[72] !== activeItem || $[73] !== containerHeight || $[74] !== dockCardProps || $[75] !== dockItems || $[76] !== dockStackTransition || $[77] !== expanded || $[78] !== isBackdropVisible || $[79] !== isBreadcrumbsCardVisible || $[80] !== isExtensionsVisible || $[81] !== isFullscreenStateActive || $[82] !== isOverlayActive || $[83] !== isSubCardVisible || $[84] !== navigate || $[85] !== portalTarget || $[86] !== stackWidth) {
6407
- 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 = {
6408
6461
  activeItem,
6409
6462
  dockItems,
6410
6463
  expanded,
@@ -6412,7 +6465,7 @@ function useDockModel() {
6412
6465
  isFullscreenStateActive,
6413
6466
  dockRef,
6414
6467
  portalTarget,
6415
- stackWidth,
6468
+ stackWidth: shownStackWidth,
6416
6469
  isOverlayActive,
6417
6470
  isBackdropVisible,
6418
6471
  isBreadcrumbsCardVisible,
@@ -6422,32 +6475,33 @@ function useDockModel() {
6422
6475
  dockCardProps,
6423
6476
  dockStackTransition
6424
6477
  };
6425
- $[72] = activeItem;
6426
- $[73] = containerHeight;
6427
- $[74] = dockCardProps;
6428
- $[75] = dockItems;
6429
- $[76] = dockStackTransition;
6430
- $[77] = expanded;
6431
- $[78] = isBackdropVisible;
6432
- $[79] = isBreadcrumbsCardVisible;
6433
- $[80] = isExtensionsVisible;
6434
- $[81] = isFullscreenStateActive;
6435
- $[82] = isOverlayActive;
6436
- $[83] = isSubCardVisible;
6437
- $[84] = navigate;
6438
- $[85] = portalTarget;
6439
- $[86] = stackWidth;
6440
- $[87] = t17;
6441
- } else {
6442
- t17 = $[87];
6443
- }
6444
- 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;
6445
6498
  }
6446
6499
  function _temp25(left, right) {
6447
- return left.contextActions === right.contextActions && left.hud === right.hud;
6500
+ return left.compact === right.compact && left.contextActions === right.contextActions && left.hud === right.hud;
6448
6501
  }
6449
6502
  function _temp11(state) {
6450
6503
  return {
6504
+ compact: state.compact,
6451
6505
  contextActions: state.contextActions,
6452
6506
  hud: state.hud
6453
6507
  };
@@ -6753,6 +6807,7 @@ function useActionSlot(item, pathname, t0) {
6753
6807
  surfacePhase
6754
6808
  });
6755
6809
  const hasMedia = useDockHasMedia();
6810
+ const actionPathname = item.isRoutePending && path ? path : pathname;
6756
6811
  if (isLoading || isOverlay && !isStatus || showsSurface) {
6757
6812
  return null;
6758
6813
  }
@@ -6770,7 +6825,7 @@ function useActionSlot(item, pathname, t0) {
6770
6825
  }
6771
6826
  return t22;
6772
6827
  }
6773
- if (isTop && hasMedia && ownsPathname(path, pathname)) {
6828
+ if (isTop && hasMedia && ownsPathname(path, actionPathname)) {
6774
6829
  let t22;
6775
6830
  if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6776
6831
  t22 = {
@@ -6790,7 +6845,7 @@ function useActionSlot(item, pathname, t0) {
6790
6845
  isLoading,
6791
6846
  isOverlay,
6792
6847
  path
6793
- }, pathname)) {
6848
+ }, actionPathname)) {
6794
6849
  return null;
6795
6850
  }
6796
6851
  let t2;
@@ -7114,16 +7169,16 @@ function useDockCardItemModel(t0) {
7114
7169
  let t17;
7115
7170
  if ($[16] !== cancelRoutePrefetch || $[17] !== expanded || $[18] !== item.isOverlay || $[19] !== item.path || $[20] !== onMouseLeave) {
7116
7171
  t17 = () => {
7172
+ setIsHovered(false);
7173
+ if (!expanded) {
7174
+ onMouseLeave?.();
7175
+ }
7117
7176
  if (item.isOverlay) {
7118
7177
  return;
7119
7178
  }
7120
7179
  if (item.path) {
7121
7180
  cancelRoutePrefetch(item.path);
7122
7181
  }
7123
- setIsHovered(false);
7124
- if (!expanded) {
7125
- onMouseLeave?.();
7126
- }
7127
7182
  };
7128
7183
  $[16] = cancelRoutePrefetch;
7129
7184
  $[17] = expanded;
@@ -7611,181 +7666,53 @@ function DockCardBanner(t0) {
7611
7666
  }
7612
7667
  return t16;
7613
7668
  }
7614
- function useStandardItemContentModel(t0) {
7615
- const $ = c(16);
7669
+ function normalizeToolbarActions(actions) {
7670
+ const arrayActions = toArray(actions);
7671
+ const normalized = [];
7672
+ for (let i = 0; i < arrayActions.length; i++) {
7673
+ const action = arrayActions[i];
7674
+ if (isObject(action) && !isValidElement(action)) {
7675
+ const descriptor = action;
7676
+ normalized.push({
7677
+ key: descriptor.key ?? `action-${i}`,
7678
+ ...descriptor
7679
+ });
7680
+ }
7681
+ }
7682
+ return normalized;
7683
+ }
7684
+ function getVisibleToolbarActions(actions) {
7685
+ return actions.filter((action) => action.visible !== false);
7686
+ }
7687
+ function sortToolbarActionsByOrder(actions) {
7688
+ return [...actions].sort((left, right) => (right.order ?? 0) - (left.order ?? 0));
7689
+ }
7690
+ function isActionlessDockItem(activeItem) {
7691
+ return Boolean(activeItem?.isNotFound || activeItem?.path === "not-found" || activeItem?.isMasked || isActiveSurfaceInProgress(activeItem));
7692
+ }
7693
+ function isStatusToolbarActionAllowed(activeItem) {
7694
+ return activeItem?.type === "APP_ERROR" || activeItem?.type === "API_ERROR" || activeItem?.type === "GUARD";
7695
+ }
7696
+
7697
+ // src/modules/dock/hooks/use-command-bar-model.ts
7698
+ function resolveDockCommands({
7699
+ activeItem,
7700
+ contextCommands = []
7701
+ } = {}) {
7702
+ if (isActionlessDockItem(activeItem)) return [];
7703
+ const extendedCommands = normalizeToolbarActions(activeItem?.actions);
7704
+ const dynamicContextCommands = normalizeToolbarActions(contextCommands);
7705
+ const mergedCommands = [...extendedCommands, ...dynamicContextCommands];
7706
+ if (activeItem?.isStatus && !isStatusToolbarActionAllowed(activeItem)) {
7707
+ return [];
7708
+ }
7709
+ return sortToolbarActionsByOrder(getVisibleToolbarActions(mergedCommands));
7710
+ }
7711
+ function useDockCommandBarModel(t0) {
7712
+ const $ = c(10);
7616
7713
  const {
7617
- item: propItem,
7618
- link,
7619
- isActive: t1
7620
- } = t0;
7621
- const isActive = t1 === void 0 ? false : t1;
7622
- const item = propItem ?? link;
7623
- const {
7624
- hasMedia,
7625
- isPlaying
7626
- } = useDockMedia();
7627
- const {
7628
- toggle: toggleMedia
7629
- } = useDockMediaActions();
7630
- let t2;
7631
- if ($[0] !== hasMedia || $[1] !== isActive || $[2] !== item.isStatus) {
7632
- t2 = shouldShowMediaIcon({
7633
- isActive,
7634
- hasMedia,
7635
- isStatus: item.isStatus
7636
- });
7637
- $[0] = hasMedia;
7638
- $[1] = isActive;
7639
- $[2] = item.isStatus;
7640
- $[3] = t2;
7641
- } else {
7642
- t2 = $[3];
7643
- }
7644
- const showVideoIcon = t2;
7645
- const description = item.description;
7646
- const effectiveIconOverlay = showVideoIcon ? null : item.iconOverlay;
7647
- const isIconInteractive = Boolean(item.onClick || showVideoIcon);
7648
- let t3;
7649
- if ($[4] !== item || $[5] !== showVideoIcon || $[6] !== toggleMedia) {
7650
- t3 = (event) => {
7651
- if (showVideoIcon) {
7652
- stopAndPrevent(event);
7653
- toggleMedia();
7654
- return;
7655
- }
7656
- if (item.onClick) {
7657
- stopAndPrevent(event);
7658
- item.onClick(event);
7659
- }
7660
- };
7661
- $[4] = item;
7662
- $[5] = showVideoIcon;
7663
- $[6] = toggleMedia;
7664
- $[7] = t3;
7665
- } else {
7666
- t3 = $[7];
7667
- }
7668
- const handleIconClick = t3;
7669
- let t4;
7670
- if ($[8] !== description || $[9] !== effectiveIconOverlay || $[10] !== handleIconClick || $[11] !== isIconInteractive || $[12] !== isPlaying || $[13] !== item || $[14] !== showVideoIcon) {
7671
- t4 = {
7672
- item,
7673
- isPlaying,
7674
- showVideoIcon,
7675
- description,
7676
- effectiveIconOverlay,
7677
- isIconInteractive,
7678
- handleIconClick
7679
- };
7680
- $[8] = description;
7681
- $[9] = effectiveIconOverlay;
7682
- $[10] = handleIconClick;
7683
- $[11] = isIconInteractive;
7684
- $[12] = isPlaying;
7685
- $[13] = item;
7686
- $[14] = showVideoIcon;
7687
- $[15] = t4;
7688
- } else {
7689
- t4 = $[15];
7690
- }
7691
- return t4;
7692
- }
7693
-
7694
- // src/modules/dock/hooks/use-card-header-model.ts
7695
- function useDockCardHeaderModel({
7696
- item: propItem,
7697
- link,
7698
- showVideoIcon = false,
7699
- description
7700
- }) {
7701
- const item = propItem ?? link;
7702
- const bannerUrl = resolveBannerUrl(item.banner, item.bannerUrl);
7703
- const hasBanner = isValidBannerUrl(bannerUrl);
7704
- const headerKey = resolveDockHeaderKey({
7705
- link: item,
7706
- description,
7707
- showVideoIcon
7708
- });
7709
- return {
7710
- item,
7711
- hasBanner,
7712
- headerKey
7713
- };
7714
- }
7715
- function Badge(t0) {
7716
- const $ = c(6);
7717
- const {
7718
- badge
7719
- } = t0;
7720
- const dockMotion = useDockMotion();
7721
- const theme = useDockTheme();
7722
- let t1;
7723
- if ($[0] !== badge || $[1] !== dockMotion || $[2] !== theme) {
7724
- 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;
7725
- $[0] = badge;
7726
- $[1] = dockMotion;
7727
- $[2] = theme;
7728
- $[3] = t1;
7729
- } else {
7730
- t1 = $[3];
7731
- }
7732
- let t2;
7733
- if ($[4] !== t1) {
7734
- t2 = /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: t1 });
7735
- $[4] = t1;
7736
- $[5] = t2;
7737
- } else {
7738
- t2 = $[5];
7739
- }
7740
- return t2;
7741
- }
7742
- function normalizeToolbarActions(actions) {
7743
- const arrayActions = toArray(actions);
7744
- const normalized = [];
7745
- for (let i = 0; i < arrayActions.length; i++) {
7746
- const action = arrayActions[i];
7747
- if (isObject(action) && !isValidElement(action)) {
7748
- const descriptor = action;
7749
- normalized.push({
7750
- key: descriptor.key ?? `action-${i}`,
7751
- ...descriptor
7752
- });
7753
- }
7754
- }
7755
- return normalized;
7756
- }
7757
- function getVisibleToolbarActions(actions) {
7758
- return actions.filter((action) => action.visible !== false);
7759
- }
7760
- function sortToolbarActionsByOrder(actions) {
7761
- return [...actions].sort((left, right) => (right.order ?? 0) - (left.order ?? 0));
7762
- }
7763
- function isActionlessDockItem(activeItem) {
7764
- return Boolean(activeItem?.isNotFound || activeItem?.path === "not-found" || activeItem?.isMasked || isActiveSurfaceInProgress(activeItem));
7765
- }
7766
- function isStatusToolbarActionAllowed(activeItem) {
7767
- return activeItem?.type === "APP_ERROR" || activeItem?.type === "API_ERROR" || activeItem?.type === "GUARD";
7768
- }
7769
-
7770
- // src/modules/dock/hooks/use-command-bar-model.ts
7771
- function resolveDockCommands({
7772
- activeItem,
7773
- contextCommands = []
7774
- } = {}) {
7775
- if (isActionlessDockItem(activeItem)) return [];
7776
- const extendedCommands = normalizeToolbarActions(activeItem?.actions);
7777
- const dynamicContextCommands = normalizeToolbarActions(contextCommands);
7778
- const mergedCommands = [...extendedCommands, ...dynamicContextCommands];
7779
- if (activeItem?.isStatus && !isStatusToolbarActionAllowed(activeItem)) {
7780
- return [];
7781
- }
7782
- return sortToolbarActionsByOrder(getVisibleToolbarActions(mergedCommands));
7783
- }
7784
- function useDockCommandBarModel(t0) {
7785
- const $ = c(10);
7786
- const {
7787
- activeItem,
7788
- contextCommands: t1
7714
+ activeItem,
7715
+ contextCommands: t1
7789
7716
  } = t0;
7790
7717
  let t2;
7791
7718
  if ($[0] !== activeItem || $[1] !== t1) {
@@ -8083,7 +8010,7 @@ function DockCommand(t0) {
8083
8010
  return t12;
8084
8011
  }
8085
8012
  function DockCommandBar(t0) {
8086
- const $ = c(21);
8013
+ const $ = c(19);
8087
8014
  const {
8088
8015
  activeItem,
8089
8016
  contextCommands: t1,
@@ -8101,73 +8028,356 @@ function DockCommandBar(t0) {
8101
8028
  const hasBanner = t2 === void 0 ? false : t2;
8102
8029
  const dockMotion = useDockMotion();
8103
8030
  let t4;
8104
- if ($[2] !== activeItem || $[3] !== contextCommands || $[4] !== hasBanner) {
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;
8309
+ let t4;
8310
+ if ($[8] !== description || $[9] !== effectiveIconOverlay || $[10] !== handleIconClick || $[11] !== isIconInteractive || $[12] !== isPlaying || $[13] !== item || $[14] !== showVideoIcon) {
8105
8311
  t4 = {
8106
- activeItem,
8107
- contextCommands,
8108
- hasBanner
8312
+ item,
8313
+ isPlaying,
8314
+ showVideoIcon,
8315
+ description,
8316
+ effectiveIconOverlay,
8317
+ isIconInteractive,
8318
+ handleIconClick
8109
8319
  };
8110
- $[2] = activeItem;
8111
- $[3] = contextCommands;
8112
- $[4] = hasBanner;
8113
- $[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;
8114
8328
  } else {
8115
- t4 = $[5];
8329
+ t4 = $[15];
8116
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);
8117
8357
  const {
8118
- actions,
8119
- currentPath,
8120
- isExiting,
8121
- handleExitComplete
8122
- } = useDockCommandBarModel(t4);
8358
+ badge
8359
+ } = t0;
8360
+ const dockMotion = useDockMotion();
8123
8361
  const theme = useDockTheme();
8124
- if (actions.length === 0 && !isExiting) {
8125
- return null;
8126
- }
8127
- const t5 = theme.slots.commandBar;
8128
- let t6;
8129
- if ($[6] !== actions || $[7] !== currentPath || $[8] !== dockMotion || $[9] !== hasBanner) {
8130
- let t72;
8131
- if ($[11] !== currentPath || $[12] !== dockMotion || $[13] !== hasBanner) {
8132
- t72 = (action, index) => /* @__PURE__ */ jsx(motion.div, { variants: dockMotion.variants.commandBar, style: {
8133
- ...DOCK_COMPOSITOR_STYLE,
8134
- willChange: "transform"
8135
- }, custom: index, initial: "hidden", animate: "visible", exit: "exit", children: /* @__PURE__ */ jsx(DockCommand, { action, hasBanner }) }, `${currentPath}-${action.key || action.icon || `dock-action-${index}`}`);
8136
- $[11] = currentPath;
8137
- $[12] = dockMotion;
8138
- $[13] = hasBanner;
8139
- $[14] = t72;
8140
- } else {
8141
- t72 = $[14];
8142
- }
8143
- t6 = actions.map(t72);
8144
- $[6] = actions;
8145
- $[7] = currentPath;
8146
- $[8] = dockMotion;
8147
- $[9] = hasBanner;
8148
- $[10] = t6;
8149
- } else {
8150
- t6 = $[10];
8151
- }
8152
- let t7;
8153
- if ($[15] !== handleExitComplete || $[16] !== t6) {
8154
- t7 = /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", onExitComplete: handleExitComplete, children: t6 });
8155
- $[15] = handleExitComplete;
8156
- $[16] = t6;
8157
- $[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;
8158
8369
  } else {
8159
- t7 = $[17];
8370
+ t1 = $[3];
8160
8371
  }
8161
- let t8;
8162
- if ($[18] !== t7 || $[19] !== theme.slots.commandBar) {
8163
- t8 = /* @__PURE__ */ jsx("div", { className: t5, children: t7 });
8164
- $[18] = t7;
8165
- $[19] = theme.slots.commandBar;
8166
- $[20] = t8;
8372
+ let t2;
8373
+ if ($[4] !== t1) {
8374
+ t2 = /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: t1 });
8375
+ $[4] = t1;
8376
+ $[5] = t2;
8167
8377
  } else {
8168
- t8 = $[20];
8378
+ t2 = $[5];
8169
8379
  }
8170
- return t8;
8380
+ return t2;
8171
8381
  }
8172
8382
  function DockDescription(t0) {
8173
8383
  const $ = c(34);
@@ -8366,6 +8576,7 @@ function DockTitle(t0) {
8366
8576
  }
8367
8577
  return t5;
8368
8578
  }
8579
+ var SKELETON_HEADER_KEY = "dock-header:skeleton";
8369
8580
  var HEADER_IDENTITY_STYLE = {
8370
8581
  flex: "1 1 0%",
8371
8582
  minWidth: 0,
@@ -8379,7 +8590,7 @@ function resolveIconAriaLabel(showVideoIcon, isPlaying) {
8379
8590
  return isPlaying ? "Pause" : "Play";
8380
8591
  }
8381
8592
  function DockCardHeader(t0) {
8382
- const $ = c(83);
8593
+ const $ = c(64);
8383
8594
  const {
8384
8595
  item: propItem,
8385
8596
  link,
@@ -8393,7 +8604,8 @@ function DockCardHeader(t0) {
8393
8604
  handleIconClick,
8394
8605
  description,
8395
8606
  isTop: t6,
8396
- contextCommands: t7
8607
+ contextCommands: t7,
8608
+ isSkeleton: t8
8397
8609
  } = t0;
8398
8610
  const activeItem = t1 === void 0 ? null : t1;
8399
8611
  const showVideoIcon = t2 === void 0 ? false : t2;
@@ -8401,19 +8613,20 @@ function DockCardHeader(t0) {
8401
8613
  const effectiveIconOverlay = t4 === void 0 ? null : t4;
8402
8614
  const isIconInteractive = t5 === void 0 ? false : t5;
8403
8615
  const isTop = t6 === void 0 ? false : t6;
8404
- let t8;
8616
+ let t9;
8405
8617
  if ($[0] !== t7) {
8406
- t8 = t7 === void 0 ? [] : t7;
8618
+ t9 = t7 === void 0 ? [] : t7;
8407
8619
  $[0] = t7;
8408
- $[1] = t8;
8620
+ $[1] = t9;
8409
8621
  } else {
8410
- t8 = $[1];
8622
+ t9 = $[1];
8411
8623
  }
8412
- const contextCommands = t8;
8624
+ const contextCommands = t9;
8625
+ const isSkeleton = t8 === void 0 ? false : t8;
8413
8626
  const dockMotion = useDockMotion();
8414
- let t9;
8627
+ let t10;
8415
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) {
8416
- t9 = {
8629
+ t10 = {
8417
8630
  item: propItem,
8418
8631
  link,
8419
8632
  activeItem,
@@ -8441,218 +8654,131 @@ function DockCardHeader(t0) {
8441
8654
  $[12] = link;
8442
8655
  $[13] = propItem;
8443
8656
  $[14] = showVideoIcon;
8444
- $[15] = t9;
8657
+ $[15] = t10;
8445
8658
  } else {
8446
- t9 = $[15];
8659
+ t10 = $[15];
8447
8660
  }
8448
8661
  const {
8449
8662
  item,
8450
8663
  hasBanner,
8451
8664
  headerKey
8452
- } = useDockCardHeaderModel(t9);
8665
+ } = useDockCardHeaderModel(t10);
8453
8666
  const theme = useDockTheme();
8454
- let t10;
8455
- if ($[16] !== isPlaying || $[17] !== item.icon || $[18] !== showVideoIcon) {
8456
- t10 = showVideoIcon ? resolvePlaybackIcon(isPlaying) : item.icon;
8667
+ let t11;
8668
+ if ($[16] !== isPlaying || $[17] !== item || $[18] !== showVideoIcon) {
8669
+ t11 = showVideoIcon ? resolvePlaybackIcon(isPlaying) : item.icon;
8457
8670
  $[16] = isPlaying;
8458
- $[17] = item.icon;
8671
+ $[17] = item;
8459
8672
  $[18] = showVideoIcon;
8460
- $[19] = t10;
8673
+ $[19] = t11;
8461
8674
  } else {
8462
- t10 = $[19];
8675
+ t11 = $[19];
8463
8676
  }
8464
- const headerIcon = t10;
8677
+ const headerIcon = t11;
8465
8678
  const iconClickHandler = isIconInteractive ? handleIconClick : null;
8466
- let t11;
8679
+ let t12;
8467
8680
  if ($[20] !== isIconInteractive || $[21] !== isPlaying || $[22] !== showVideoIcon) {
8468
- t11 = isIconInteractive ? resolveIconAriaLabel(showVideoIcon, isPlaying) : void 0;
8681
+ t12 = isIconInteractive ? resolveIconAriaLabel(showVideoIcon, isPlaying) : void 0;
8469
8682
  $[20] = isIconInteractive;
8470
8683
  $[21] = isPlaying;
8471
8684
  $[22] = showVideoIcon;
8472
- $[23] = t11;
8685
+ $[23] = t12;
8473
8686
  } else {
8474
- t11 = $[23];
8687
+ t12 = $[23];
8475
8688
  }
8476
- const iconAriaLabel = t11;
8477
- const t12 = theme.slots.header;
8478
- const t13 = theme.slots.headerRow;
8479
- const t14 = dockMotion.variants.headerSwap;
8480
- const t15 = dockMotion.transitions.headerSwap;
8481
- const t16 = theme.slots.headerRow;
8482
- let t17;
8483
- if ($[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8484
- 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: {
8485
8693
  ...DOCK_COMPOSITOR_STYLE,
8486
8694
  willChange: "transform"
8487
- };
8488
- $[24] = t17;
8489
- } else {
8490
- t17 = $[24];
8491
- }
8492
- let t18;
8493
- if ($[25] !== effectiveIconOverlay || $[26] !== headerIcon || $[27] !== iconAriaLabel || $[28] !== iconClickHandler || $[29] !== item.icon || $[30] !== itemStyle.icon || $[31] !== theme.slots.headerIconEmpty) {
8494
- 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 });
8495
- $[25] = effectiveIconOverlay;
8496
- $[26] = headerIcon;
8497
- $[27] = iconAriaLabel;
8498
- $[28] = iconClickHandler;
8499
- $[29] = item.icon;
8500
- $[30] = itemStyle.icon;
8501
- $[31] = theme.slots.headerIconEmpty;
8502
- $[32] = t18;
8503
- } else {
8504
- t18 = $[32];
8505
- }
8506
- let t19;
8507
- if ($[33] !== badge || $[34] !== effectiveIconOverlay || $[35] !== showVideoIcon) {
8508
- t19 = !showVideoIcon && !effectiveIconOverlay && /* @__PURE__ */ jsx(Badge, { badge });
8509
- $[33] = badge;
8510
- $[34] = effectiveIconOverlay;
8511
- $[35] = showVideoIcon;
8512
- $[36] = t19;
8513
- } else {
8514
- t19 = $[36];
8515
- }
8516
- let t20;
8517
- if ($[37] !== t18 || $[38] !== t19 || $[39] !== theme.slots.headerIcon) {
8518
- t20 = /* @__PURE__ */ jsxs("div", { className: theme.slots.headerIcon, children: [
8519
- t18,
8520
- t19
8521
- ] });
8522
- $[37] = t18;
8523
- $[38] = t19;
8524
- $[39] = theme.slots.headerIcon;
8525
- $[40] = t20;
8526
- } else {
8527
- t20 = $[40];
8528
- }
8529
- const t21 = theme.slots.headerBody;
8530
- const t22 = theme.slots.headerText;
8531
- const t23 = theme.slots.headerTitleRow;
8532
- const t24 = item.title || item.name;
8533
- const t25 = itemStyle.title;
8534
- const t26 = itemStyle.title?.className;
8535
- let t27;
8536
- if ($[41] !== t26 || $[42] !== theme.slots.headerTitle) {
8537
- t27 = cn(t26, theme.slots.headerTitle);
8538
- $[41] = t26;
8539
- $[42] = theme.slots.headerTitle;
8540
- $[43] = t27;
8541
- } else {
8542
- t27 = $[43];
8543
- }
8544
- let t28;
8545
- if ($[44] !== itemStyle.title || $[45] !== t27) {
8546
- t28 = {
8547
- ...t25,
8548
- className: t27
8549
- };
8550
- $[44] = itemStyle.title;
8551
- $[45] = t27;
8552
- $[46] = t28;
8553
- } else {
8554
- t28 = $[46];
8555
- }
8556
- let t29;
8557
- if ($[47] !== t24 || $[48] !== t28) {
8558
- t29 = /* @__PURE__ */ jsx(DockTitle, { animated: false, text: t24, style: t28 });
8559
- $[47] = t24;
8560
- $[48] = t28;
8561
- $[49] = t29;
8562
- } else {
8563
- t29 = $[49];
8564
- }
8565
- let t30;
8566
- if ($[50] !== t29 || $[51] !== theme.slots.headerTitleRow) {
8567
- t30 = /* @__PURE__ */ jsx("div", { className: t23, children: t29 });
8568
- $[50] = t29;
8569
- $[51] = theme.slots.headerTitleRow;
8570
- $[52] = t30;
8571
- } else {
8572
- t30 = $[52];
8573
- }
8574
- let t31;
8575
- if ($[53] !== description || $[54] !== itemStyle.description) {
8576
- t31 = Boolean(description) && /* @__PURE__ */ jsx(DockDescription, { animated: false, text: description, style: itemStyle.description });
8577
- $[53] = description;
8578
- $[54] = itemStyle.description;
8579
- $[55] = t31;
8580
- } else {
8581
- t31 = $[55];
8582
- }
8583
- let t32;
8584
- if ($[56] !== t30 || $[57] !== t31 || $[58] !== theme.slots.headerText) {
8585
- t32 = /* @__PURE__ */ jsxs("div", { className: t22, children: [
8586
- t30,
8587
- t31
8588
- ] });
8589
- $[56] = t30;
8590
- $[57] = t31;
8591
- $[58] = theme.slots.headerText;
8592
- $[59] = t32;
8593
- } else {
8594
- t32 = $[59];
8595
- }
8596
- let t33;
8597
- if ($[60] !== t32 || $[61] !== theme.slots.headerBody) {
8598
- t33 = /* @__PURE__ */ jsx("div", { className: t21, children: t32 });
8599
- $[60] = t32;
8600
- $[61] = theme.slots.headerBody;
8601
- $[62] = t33;
8602
- } else {
8603
- t33 = $[62];
8604
- }
8605
- let t34;
8606
- if ($[63] !== dockMotion.transitions.headerSwap || $[64] !== dockMotion.variants.headerSwap || $[65] !== headerKey || $[66] !== t20 || $[67] !== t33 || $[68] !== theme.slots.headerRow) {
8607
- 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: [
8608
- t20,
8609
- 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
+ ] }) })
8610
8716
  ] }, headerKey) }) });
8611
- $[63] = dockMotion.transitions.headerSwap;
8612
- $[64] = dockMotion.variants.headerSwap;
8613
- $[65] = headerKey;
8614
- $[66] = t20;
8615
- $[67] = t33;
8616
- $[68] = theme.slots.headerRow;
8617
- $[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;
8618
8744
  } else {
8619
- t34 = $[69];
8745
+ t13 = $[50];
8620
8746
  }
8621
- let t35;
8622
- if ($[70] !== activeItem || $[71] !== contextCommands || $[72] !== hasBanner || $[73] !== isTop || $[74] !== item) {
8623
- t35 = isTop && !item.isStatus ? /* @__PURE__ */ jsx(DockCommandBar, { activeItem: activeItem || item, contextCommands, hasBanner }) : null;
8624
- $[70] = activeItem;
8625
- $[71] = contextCommands;
8626
- $[72] = hasBanner;
8627
- $[73] = isTop;
8628
- $[74] = item;
8629
- $[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;
8630
8756
  } else {
8631
- t35 = $[75];
8757
+ t14 = $[56];
8632
8758
  }
8633
- let t36;
8634
- if ($[76] !== t34 || $[77] !== t35 || $[78] !== theme.slots.headerRow) {
8635
- t36 = /* @__PURE__ */ jsxs("div", { className: t13, children: [
8636
- t34,
8637
- 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
8638
8764
  ] });
8639
- $[76] = t34;
8640
- $[77] = t35;
8641
- $[78] = theme.slots.headerRow;
8642
- $[79] = t36;
8765
+ $[57] = t13;
8766
+ $[58] = t14;
8767
+ $[59] = theme.slots.headerRow;
8768
+ $[60] = t15;
8643
8769
  } else {
8644
- t36 = $[79];
8770
+ t15 = $[60];
8645
8771
  }
8646
- let t37;
8647
- if ($[80] !== t36 || $[81] !== theme.slots.header) {
8648
- t37 = /* @__PURE__ */ jsx("div", { className: t12, children: t36 });
8649
- $[80] = t36;
8650
- $[81] = theme.slots.header;
8651
- $[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;
8652
8778
  } else {
8653
- t37 = $[82];
8779
+ t16 = $[63];
8654
8780
  }
8655
- return t37;
8781
+ return t16;
8656
8782
  }
8657
8783
  function useDockHudViewModel(t0) {
8658
8784
  const $ = c(30);
@@ -8920,7 +9046,7 @@ function LoadingItemContent() {
8920
9046
  return t9;
8921
9047
  }
8922
9048
  function StandardItemContent(t0) {
8923
- const $ = c(51);
9049
+ const $ = c(57);
8924
9050
  const {
8925
9051
  item: propItem,
8926
9052
  link,
@@ -9011,58 +9137,65 @@ function StandardItemContent(t0) {
9011
9137
  handleIconClick
9012
9138
  } = useStandardItemContentModel(t11);
9013
9139
  const theme = useDockTheme();
9140
+ const isSkeleton = usePendingSkeleton(Boolean(isTop && item.isRoutePending && !item.isStatus && !isHudActive));
9014
9141
  const footerAnimate = isActionDismissed ? "dismissed" : "visible";
9015
9142
  const footerTransition = isActionDismissed ? dockMotion.transitions.actionDismiss : dockMotion.transitions.fade;
9016
9143
  let t12;
9017
- if ($[19] !== actionVariants || $[20] !== footerAnimate || $[21] !== footerNode || $[22] !== footerTransition || $[23] !== theme.slots.cardAction || $[24] !== theme.slots.cardFooter || $[25] !== theme.styles) {
9018
- 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;
9019
9146
  $[19] = actionVariants;
9020
- $[20] = footerAnimate;
9021
- $[21] = footerNode;
9022
- $[22] = footerTransition;
9023
- $[23] = theme.slots.cardAction;
9024
- $[24] = theme.slots.cardFooter;
9025
- $[25] = theme.styles;
9026
- $[26] = t12;
9027
- } else {
9028
- 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];
9029
9161
  }
9030
9162
  const footer = t12;
9031
9163
  let t13;
9032
- 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) {
9033
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: {
9034
9166
  ...DOCK_COMPOSITOR_STYLE,
9035
9167
  willChange: "transform"
9036
9168
  }, className: theme.slots.cardBody, children: [
9037
- /* @__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 }),
9038
9170
  /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: footer })
9039
9171
  ] }, "dock-standard-content") });
9040
- $[27] = activeItem;
9041
- $[28] = badge;
9042
- $[29] = clearHud;
9043
- $[30] = contextCommands;
9044
- $[31] = description;
9045
- $[32] = dockMotion.transitions.hud;
9046
- $[33] = dockMotion.transitions.text;
9047
- $[34] = dockMotion.variants.fade;
9048
- $[35] = dockMotion.variants.hud;
9049
- $[36] = effectiveIconOverlay;
9050
- $[37] = footer;
9051
- $[38] = handleIconClick;
9052
- $[39] = hud;
9053
- $[40] = isHudActive;
9054
- $[41] = isIconInteractive;
9055
- $[42] = isPlaying;
9056
- $[43] = isTop;
9057
- $[44] = item;
9058
- $[45] = itemStyle;
9059
- $[46] = pathname;
9060
- $[47] = showVideoIcon;
9061
- $[48] = theme.slots.cardBody;
9062
- $[49] = theme.slots.cardHud;
9063
- $[50] = t13;
9064
- } else {
9065
- 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];
9066
9199
  }
9067
9200
  return t13;
9068
9201
  }
@@ -11553,7 +11686,7 @@ function SurfaceItemContent(t0) {
11553
11686
  return t3;
11554
11687
  }
11555
11688
  function DockCardItem(t0) {
11556
- const $ = c(137);
11689
+ const $ = c(149);
11557
11690
  const {
11558
11691
  ref,
11559
11692
  activeItem: t1,
@@ -11575,7 +11708,8 @@ function DockCardItem(t0) {
11575
11708
  isSurfaceActive: t8,
11576
11709
  hud: t9,
11577
11710
  clearHud: t10,
11578
- contextCommands: t11
11711
+ contextCommands: t11,
11712
+ compact: t12
11579
11713
  } = t0;
11580
11714
  const activeItem = t1 === void 0 ? null : t1;
11581
11715
  const hasExtensions = t2 === void 0 ? false : t2;
@@ -11587,19 +11721,20 @@ function DockCardItem(t0) {
11587
11721
  const isSurfaceActive = t8 === void 0 ? false : t8;
11588
11722
  const hud = t9 === void 0 ? null : t9;
11589
11723
  const clearHud = t10 === void 0 ? null : t10;
11590
- let t12;
11724
+ let t13;
11591
11725
  if ($[0] !== t11) {
11592
- t12 = t11 === void 0 ? [] : t11;
11726
+ t13 = t11 === void 0 ? [] : t11;
11593
11727
  $[0] = t11;
11594
- $[1] = t12;
11728
+ $[1] = t13;
11595
11729
  } else {
11596
- t12 = $[1];
11730
+ t13 = $[1];
11597
11731
  }
11598
- const contextCommands = t12;
11732
+ const contextCommands = t13;
11733
+ const compact = t12 === void 0 ? null : t12;
11599
11734
  const dockMotion = useDockMotion();
11600
- let t13;
11735
+ let t14;
11601
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) {
11602
- t13 = {
11737
+ t14 = {
11603
11738
  ref,
11604
11739
  activeItem,
11605
11740
  onContentHeightChange,
@@ -11643,9 +11778,9 @@ function DockCardItem(t0) {
11643
11778
  $[20] = propItem;
11644
11779
  $[21] = ref;
11645
11780
  $[22] = statusStyle;
11646
- $[23] = t13;
11781
+ $[23] = t14;
11647
11782
  } else {
11648
- t13 = $[23];
11783
+ t14 = $[23];
11649
11784
  }
11650
11785
  const {
11651
11786
  item,
@@ -11678,22 +11813,22 @@ function DockCardItem(t0) {
11678
11813
  cardStyle,
11679
11814
  motionValues,
11680
11815
  cardDelay
11681
- } = useDockCardItemModel(t13);
11816
+ } = useDockCardItemModel(t14);
11682
11817
  const theme = useDockTheme();
11683
- let t14;
11818
+ let t15;
11684
11819
  if ($[24] !== renderedActionSlot) {
11685
- t14 = renderActionSlot(renderedActionSlot);
11820
+ t15 = renderActionSlot(renderedActionSlot);
11686
11821
  $[24] = renderedActionSlot;
11687
- $[25] = t14;
11822
+ $[25] = t15;
11688
11823
  } else {
11689
- t14 = $[25];
11824
+ t15 = $[25];
11690
11825
  }
11691
- const renderedActionNode = t14;
11826
+ const renderedActionNode = t15;
11692
11827
  const layerExit = isCollapsedBackgroundCard ? DOCK_UNSEEN_EXIT : "exit";
11693
11828
  const isNonInteractiveCard = Boolean(item.isOverlay || item.isStatus || isCollapsedBackgroundCard);
11694
- let t15;
11829
+ let t16;
11695
11830
  if ($[26] !== dockMotion || $[27] !== expanded || $[28] !== isStackHovered || $[29] !== isSurfaceActive || $[30] !== motionValues || $[31] !== position) {
11696
- t15 = getDockItemAnimateValues(dockMotion, {
11831
+ t16 = getDockItemAnimateValues(dockMotion, {
11697
11832
  motionValues,
11698
11833
  expanded,
11699
11834
  isStackHovered,
@@ -11706,14 +11841,14 @@ function DockCardItem(t0) {
11706
11841
  $[29] = isSurfaceActive;
11707
11842
  $[30] = motionValues;
11708
11843
  $[31] = position;
11709
- $[32] = t15;
11844
+ $[32] = t16;
11710
11845
  } else {
11711
- t15 = $[32];
11846
+ t16 = $[32];
11712
11847
  }
11713
- const cardAnimate = t15;
11714
- let t16;
11848
+ const cardAnimate = t16;
11849
+ let t17;
11715
11850
  if ($[33] !== cardDelay || $[34] !== dockMotion || $[35] !== expanded || $[36] !== isStackHovered || $[37] !== position) {
11716
- t16 = getDockItemTransition(dockMotion, {
11851
+ t17 = getDockItemTransition(dockMotion, {
11717
11852
  expanded,
11718
11853
  isStackHovered,
11719
11854
  position,
@@ -11724,230 +11859,263 @@ function DockCardItem(t0) {
11724
11859
  $[35] = expanded;
11725
11860
  $[36] = isStackHovered;
11726
11861
  $[37] = position;
11727
- $[38] = t16;
11862
+ $[38] = t17;
11728
11863
  } else {
11729
- t16 = $[38];
11864
+ t17 = $[38];
11730
11865
  }
11731
- const cardTransition = t16;
11732
- let t17;
11733
- if ($[39] !== dockMotion || $[40] !== motionValues || $[41] !== position) {
11734
- t17 = getDockItemExitValues(dockMotion, {
11735
- 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,
11736
11873
  position
11737
11874
  });
11738
- $[39] = dockMotion;
11739
- $[40] = motionValues;
11740
- $[41] = position;
11741
- $[42] = t17;
11875
+ $[39] = expanded;
11876
+ $[40] = isStackHovered;
11877
+ $[41] = isSurfaceActive;
11878
+ $[42] = position;
11879
+ $[43] = t18;
11742
11880
  } else {
11743
- t17 = $[42];
11881
+ t18 = $[43];
11744
11882
  }
11745
- const cardExit = t17;
11746
- let t18;
11747
- if ($[43] !== renderedActionNode) {
11748
- t18 = renderedActionNode ? /* @__PURE__ */ jsx(Suspense, { children: renderedActionNode }) : null;
11749
- $[43] = renderedActionNode;
11750
- $[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;
11751
11894
  } else {
11752
- t18 = $[44];
11895
+ t19 = $[47];
11753
11896
  }
11754
- let t19;
11755
- 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) {
11756
- t19 = /* @__PURE__ */ jsx(StandardItemContent, { item, activeItem, isTop, itemStyle, badge, isActive, isHudActive: isTopHudActive, hud, clearHud, contextCommands, pathname, footerNode: t18, isActionDismissed });
11757
- $[45] = activeItem;
11758
- $[46] = badge;
11759
- $[47] = clearHud;
11760
- $[48] = contextCommands;
11761
- $[49] = hud;
11762
- $[50] = isActionDismissed;
11763
- $[51] = isActive;
11764
- $[52] = isTop;
11765
- $[53] = isTopHudActive;
11766
- $[54] = item;
11767
- $[55] = itemStyle;
11768
- $[56] = pathname;
11769
- $[57] = t18;
11770
- $[58] = t19;
11771
- } else {
11772
- t19 = $[58];
11773
- }
11774
- const standardContent = t19;
11897
+ const cardExit = t19;
11775
11898
  let t20;
11776
- 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) {
11777
- 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
+ }
11778
11937
  if (showsSurfaceLayer) {
11779
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");
11780
11939
  }
11781
11940
  if (isExtensionShelf) {
11782
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");
11783
11942
  }
11784
- const isActionBeingDismissed = item.surfacePhase === DOCK_SURFACE_PHASE.DISMISSING_ACTION;
11785
11943
  return /* @__PURE__ */ jsx(motion.div, { variants: headerRestoreVariants, initial: "hidden", animate: isActionBeingDismissed ? "hidden" : "visible", exit: layerExit, transition: getDockPhaseMotion(dockMotion, item.surfacePhase).header, style: {
11786
11944
  ...DOCK_COMPOSITOR_STYLE,
11787
11945
  willChange: "transform"
11788
11946
  }, className: theme.slots.cardStandard, children: item.isLoading ? /* @__PURE__ */ jsx(LoadingItemContent, {}) : standardContent }, "standard-content-layer");
11789
11947
  };
11790
- $[59] = activeItem;
11791
- $[60] = dockMotion;
11792
- $[61] = headerRestoreVariants;
11793
- $[62] = isExtensionShelf;
11794
- $[63] = item;
11795
- $[64] = layerExit;
11796
- $[65] = showsSurfaceLayer;
11797
- $[66] = standardContent;
11798
- $[67] = theme.slots.cardShelf;
11799
- $[68] = theme.slots.cardStandard;
11800
- $[69] = theme.slots.cardSurface;
11801
- $[70] = t20;
11802
- } else {
11803
- t20 = $[70];
11804
- }
11805
- 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;
11806
11968
  if (isCollapsedGhostCard) {
11807
- let t212;
11808
- if ($[71] !== cardAnimate || $[72] !== cardClassName || $[73] !== cardData || $[74] !== cardExit || $[75] !== cardStyle || $[76] !== cardTransition || $[77] !== ref) {
11809
- 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 });
11810
- $[71] = cardAnimate;
11811
- $[72] = cardClassName;
11812
- $[73] = cardData;
11813
- $[74] = cardExit;
11814
- $[75] = cardStyle;
11815
- $[76] = cardTransition;
11816
- $[77] = ref;
11817
- $[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;
11818
11982
  } else {
11819
- t212 = $[78];
11983
+ t242 = $[88];
11820
11984
  }
11821
- return t212;
11985
+ return t242;
11822
11986
  }
11823
- const t21 = isTop ? "true" : void 0;
11824
- let t22;
11825
- if ($[79] !== dockMotion.deck || $[80] !== dockMotion.transitions.press || $[81] !== isNonInteractiveCard || $[82] !== motionValues?.scale) {
11826
- 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 : {
11827
11993
  scale: (motionValues?.scale || 1) * dockMotion.deck.tapScale,
11828
11994
  transition: dockMotion.transitions.press
11829
11995
  };
11830
- $[79] = dockMotion.deck;
11831
- $[80] = dockMotion.transitions.press;
11832
- $[81] = isNonInteractiveCard;
11833
- $[82] = motionValues?.scale;
11834
- $[83] = t22;
11996
+ $[89] = dockMotion.deck;
11997
+ $[90] = dockMotion.transitions.press;
11998
+ $[91] = isNonInteractiveCard;
11999
+ $[92] = motionValues?.scale;
12000
+ $[93] = t26;
11835
12001
  } else {
11836
- t22 = $[83];
12002
+ t26 = $[93];
11837
12003
  }
11838
- const t23 = hasNestedInteractiveContent ? "group" : "button";
11839
- const t24 = isCollapsedBackgroundCard ? "true" : void 0;
11840
- const t25 = isNonInteractiveCard ? -1 : 0;
11841
- let t26;
11842
- 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) {
11843
- 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 });
11844
- $[84] = isCurrentActive;
11845
- $[85] = isCurrentHud;
11846
- $[86] = isCurrentStatus;
11847
- $[87] = isCurrentSurface;
11848
- $[88] = item.banner;
11849
- $[89] = item.bannerOpacity;
11850
- $[90] = item.bannerPosition;
11851
- $[91] = item.bannerRepeat;
11852
- $[92] = item.bannerSize;
11853
- $[93] = item.bannerUrl;
11854
- $[94] = t26;
11855
- } else {
11856
- 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];
11857
12023
  }
11858
- let t27;
11859
- if ($[95] !== showVideoScrubber) {
11860
- t27 = showVideoScrubber && /* @__PURE__ */ jsx(DockMediaScrubber, {});
11861
- $[95] = showVideoScrubber;
11862
- $[96] = t27;
12024
+ let t31;
12025
+ if ($[105] !== showVideoScrubber) {
12026
+ t31 = showVideoScrubber && /* @__PURE__ */ jsx(DockMediaScrubber, {});
12027
+ $[105] = showVideoScrubber;
12028
+ $[106] = t31;
11863
12029
  } else {
11864
- t27 = $[96];
12030
+ t31 = $[106];
11865
12031
  }
11866
- const t28 = theme.slots.cardContent;
11867
- let t29;
11868
- if ($[97] !== dockMotion || $[98] !== expanded || $[99] !== isExtensionShelf || $[100] !== position) {
11869
- 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, {
11870
12036
  expanded,
11871
12037
  position,
11872
12038
  isExtensionShelf
11873
12039
  });
11874
- $[97] = dockMotion;
11875
- $[98] = expanded;
11876
- $[99] = isExtensionShelf;
11877
- $[100] = position;
11878
- $[101] = t29;
12040
+ $[107] = dockMotion;
12041
+ $[108] = expanded;
12042
+ $[109] = isExtensionShelf;
12043
+ $[110] = position;
12044
+ $[111] = t33;
11879
12045
  } else {
11880
- t29 = $[101];
12046
+ t33 = $[111];
11881
12047
  }
11882
- const t30 = isCollapsedBackgroundCard ? "none" : "auto";
11883
- let t31;
11884
- if ($[102] !== t30) {
11885
- t31 = {
12048
+ const t34 = isCollapsedBackgroundCard ? "none" : "auto";
12049
+ let t35;
12050
+ if ($[112] !== t34) {
12051
+ t35 = {
11886
12052
  ...DOCK_COMPOSITOR_STYLE,
11887
12053
  willChange: "transform",
11888
- pointerEvents: t30
12054
+ pointerEvents: t34
11889
12055
  };
11890
- $[102] = t30;
11891
- $[103] = t31;
12056
+ $[112] = t34;
12057
+ $[113] = t35;
11892
12058
  } else {
11893
- t31 = $[103];
12059
+ t35 = $[113];
11894
12060
  }
11895
- let t32;
11896
- if ($[104] !== renderContentLayer) {
11897
- t32 = /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: renderContentLayer() });
11898
- $[104] = renderContentLayer;
11899
- $[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;
11900
12066
  } else {
11901
- t32 = $[105];
11902
- }
11903
- let t33;
11904
- if ($[106] !== cardContentRef || $[107] !== dockMotion.transitions.text || $[108] !== isExtensionShelf || $[109] !== t29 || $[110] !== t31 || $[111] !== t32 || $[112] !== theme.slots.cardContent) {
11905
- t33 = /* @__PURE__ */ jsx(motion.div, { ref: cardContentRef, "data-shelf": isExtensionShelf, className: t28, animate: t29, transition: dockMotion.transitions.text, style: t31, children: t32 });
11906
- $[106] = cardContentRef;
11907
- $[107] = dockMotion.transitions.text;
11908
- $[108] = isExtensionShelf;
11909
- $[109] = t29;
11910
- $[110] = t31;
11911
- $[111] = t32;
11912
- $[112] = theme.slots.cardContent;
11913
- $[113] = t33;
11914
- } else {
11915
- t33 = $[113];
12067
+ t36 = $[115];
11916
12068
  }
11917
- let t34;
11918
- 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) {
11919
- 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: [
11920
- t26,
11921
- t27,
11922
- 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
11923
12089
  ] });
11924
- $[114] = cardAnimate;
11925
- $[115] = cardClassName;
11926
- $[116] = cardData;
11927
- $[117] = cardExit;
11928
- $[118] = cardStyle;
11929
- $[119] = cardTransition;
11930
- $[120] = handleBlur;
11931
- $[121] = handleFocus;
11932
- $[122] = handleKeyDown;
11933
- $[123] = handleMouseEnter;
11934
- $[124] = handleMouseLeave;
11935
- $[125] = handleScroll;
11936
- $[126] = onClick;
11937
- $[127] = ref;
11938
- $[128] = t21;
11939
- $[129] = t22;
11940
- $[130] = t23;
11941
- $[131] = t24;
11942
- $[132] = t25;
11943
- $[133] = t26;
11944
- $[134] = t27;
11945
- $[135] = t33;
11946
- $[136] = t34;
11947
- } else {
11948
- t34 = $[136];
11949
- }
11950
- 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;
11951
12119
  }
11952
12120
  function Dock() {
11953
12121
  const $ = c(56);
@@ -14311,7 +14479,7 @@ function useSurfaceStack(t0) {
14311
14479
  return t13;
14312
14480
  }
14313
14481
  function DockProvider(t0) {
14314
- const $ = c(99);
14482
+ const $ = c(101);
14315
14483
  const {
14316
14484
  breadcrumbConfig: t1,
14317
14485
  children,
@@ -14351,6 +14519,7 @@ function DockProvider(t0) {
14351
14519
  selectionModeState
14352
14520
  } = useDockHudRegistry();
14353
14521
  const [searchQuery, setSearchQuery] = useState("");
14522
+ const [compact, setCompact] = useState(false);
14354
14523
  const [dockHeight, setRawDockHeight] = useState(0);
14355
14524
  let t5;
14356
14525
  if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
@@ -14499,7 +14668,7 @@ function DockProvider(t0) {
14499
14668
  surfaceState: rawSurfaceState
14500
14669
  } = surfaceParts;
14501
14670
  let t16;
14502
- 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) {
14503
14672
  t16 = () => createStore({
14504
14673
  ...rawSurfaceState,
14505
14674
  activeOperation,
@@ -14507,6 +14676,7 @@ function DockProvider(t0) {
14507
14676
  hud: activeHud,
14508
14677
  hudEntries: Object.values(hudEntries),
14509
14678
  isHudActive,
14679
+ compact,
14510
14680
  dockContinuity: continuityEntries,
14511
14681
  dockReturnHandoffs: returnHandoffs,
14512
14682
  operations,
@@ -14523,29 +14693,30 @@ function DockProvider(t0) {
14523
14693
  $[24] = activeHud;
14524
14694
  $[25] = activeItem;
14525
14695
  $[26] = activeOperation;
14526
- $[27] = contextActions;
14527
- $[28] = continuityEntries;
14528
- $[29] = dockHeight;
14529
- $[30] = expanded;
14530
- $[31] = hudEntries;
14531
- $[32] = isHudActive;
14532
- $[33] = locationKey;
14533
- $[34] = operations;
14534
- $[35] = rawSurfaceState;
14535
- $[36] = returnHandoffs;
14536
- $[37] = routePathname;
14537
- $[38] = searchQuery;
14538
- $[39] = selectionModeState;
14539
- $[40] = surfaceLifecycle;
14540
- $[41] = surfacePhase;
14541
- $[42] = t16;
14542
- } else {
14543
- 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];
14544
14715
  }
14545
14716
  const [store] = useState(t16);
14546
14717
  let t17;
14547
14718
  let t18;
14548
- 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) {
14549
14720
  t17 = () => {
14550
14721
  const next = {
14551
14722
  ...rawSurfaceState,
@@ -14554,6 +14725,7 @@ function DockProvider(t0) {
14554
14725
  hud: activeHud,
14555
14726
  hudEntries: Object.values(hudEntries),
14556
14727
  isHudActive,
14728
+ compact,
14557
14729
  dockContinuity: continuityEntries,
14558
14730
  dockReturnHandoffs: returnHandoffs,
14559
14731
  operations,
@@ -14569,35 +14741,36 @@ function DockProvider(t0) {
14569
14741
  };
14570
14742
  store.publish((current) => isSameDockState(current, next) ? current : next);
14571
14743
  };
14572
- t18 = [activeHud, activeItem, activeOperation, contextActions, continuityEntries, dockHeight, expanded, hudEntries, isHudActive, locationKey, operations, rawSurfaceState, returnHandoffs, routePathname, searchQuery, selectionModeState, store, surfaceLifecycle, surfacePhase];
14573
- $[43] = activeHud;
14574
- $[44] = activeItem;
14575
- $[45] = activeOperation;
14576
- $[46] = contextActions;
14577
- $[47] = continuityEntries;
14578
- $[48] = dockHeight;
14579
- $[49] = expanded;
14580
- $[50] = hudEntries;
14581
- $[51] = isHudActive;
14582
- $[52] = locationKey;
14583
- $[53] = operations;
14584
- $[54] = rawSurfaceState;
14585
- $[55] = returnHandoffs;
14586
- $[56] = routePathname;
14587
- $[57] = searchQuery;
14588
- $[58] = selectionModeState;
14589
- $[59] = store;
14590
- $[60] = surfaceLifecycle;
14591
- $[61] = surfacePhase;
14592
- $[62] = t17;
14593
- $[63] = t18;
14594
- } else {
14595
- t17 = $[62];
14596
- 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];
14597
14770
  }
14598
14771
  useLayoutEffect(t17, t18);
14599
14772
  let t19;
14600
- 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) {
14601
14774
  t19 = {
14602
14775
  ...commandActions,
14603
14776
  ...expansionActions,
@@ -14611,52 +14784,53 @@ function DockProvider(t0) {
14611
14784
  prepareRouteReset,
14612
14785
  registerGuard: guards.register,
14613
14786
  setDockHeight,
14787
+ setCompact,
14614
14788
  setSearchQuery
14615
14789
  };
14616
- $[64] = clearPreparedRouteReset;
14617
- $[65] = commandActions;
14618
- $[66] = continuity;
14619
- $[67] = expansionActions;
14620
- $[68] = guards.clear;
14621
- $[69] = guards.register;
14622
- $[70] = hudActions;
14623
- $[71] = navigate;
14624
- $[72] = operationActions;
14625
- $[73] = prepareRouteReset;
14626
- $[74] = setDockHeight;
14627
- $[75] = surfaceActions;
14628
- $[76] = t19;
14629
- } else {
14630
- 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];
14631
14805
  }
14632
14806
  const actionsValue = t19;
14633
14807
  let t20;
14634
- if ($[77] !== surfaceActions || $[78] !== surfaceState) {
14808
+ if ($[79] !== surfaceActions || $[80] !== surfaceState) {
14635
14809
  t20 = {
14636
14810
  ...surfaceActions,
14637
14811
  surfaceState
14638
14812
  };
14639
- $[77] = surfaceActions;
14640
- $[78] = surfaceState;
14641
- $[79] = t20;
14813
+ $[79] = surfaceActions;
14814
+ $[80] = surfaceState;
14815
+ $[81] = t20;
14642
14816
  } else {
14643
- t20 = $[79];
14817
+ t20 = $[81];
14644
14818
  }
14645
14819
  const surfaceFlowValue = t20;
14646
14820
  let t21;
14647
- if ($[80] !== mediaAction || $[81] !== notFoundAction) {
14821
+ if ($[82] !== mediaAction || $[83] !== notFoundAction) {
14648
14822
  t21 = {
14649
14823
  mediaAction,
14650
14824
  notFoundAction
14651
14825
  };
14652
- $[80] = mediaAction;
14653
- $[81] = notFoundAction;
14654
- $[82] = t21;
14826
+ $[82] = mediaAction;
14827
+ $[83] = notFoundAction;
14828
+ $[84] = t21;
14655
14829
  } else {
14656
- t21 = $[82];
14830
+ t21 = $[84];
14657
14831
  }
14658
14832
  let t22;
14659
- 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) {
14660
14834
  t22 = {
14661
14835
  actions: actionsValue,
14662
14836
  runtimeActions: t21,
@@ -14665,43 +14839,43 @@ function DockProvider(t0) {
14665
14839
  guards,
14666
14840
  view: viewBridge
14667
14841
  };
14668
- $[83] = actionsValue;
14669
- $[84] = guards;
14670
- $[85] = runtimeScheduler;
14671
- $[86] = store;
14672
- $[87] = t21;
14673
- $[88] = viewBridge;
14674
- $[89] = t22;
14842
+ $[85] = actionsValue;
14843
+ $[86] = guards;
14844
+ $[87] = runtimeScheduler;
14845
+ $[88] = store;
14846
+ $[89] = t21;
14847
+ $[90] = viewBridge;
14848
+ $[91] = t22;
14675
14849
  } else {
14676
- t22 = $[89];
14850
+ t22 = $[91];
14677
14851
  }
14678
14852
  const dockContextValue = t22;
14679
14853
  let t23;
14680
- if ($[90] !== breadcrumbConfig || $[91] !== children) {
14854
+ if ($[92] !== breadcrumbConfig || $[93] !== children) {
14681
14855
  t23 = /* @__PURE__ */ jsx(SurfaceExtensionsProvider, { children: /* @__PURE__ */ jsx(BreadcrumbProvider, { config: breadcrumbConfig, children }) });
14682
- $[90] = breadcrumbConfig;
14683
- $[91] = children;
14684
- $[92] = t23;
14856
+ $[92] = breadcrumbConfig;
14857
+ $[93] = children;
14858
+ $[94] = t23;
14685
14859
  } else {
14686
- t23 = $[92];
14860
+ t23 = $[94];
14687
14861
  }
14688
14862
  let t24;
14689
- if ($[93] !== surfaceFlowValue || $[94] !== t23) {
14863
+ if ($[95] !== surfaceFlowValue || $[96] !== t23) {
14690
14864
  t24 = /* @__PURE__ */ jsx(SurfaceFlowProvider, { value: surfaceFlowValue, children: t23 });
14691
- $[93] = surfaceFlowValue;
14692
- $[94] = t23;
14693
- $[95] = t24;
14865
+ $[95] = surfaceFlowValue;
14866
+ $[96] = t23;
14867
+ $[97] = t24;
14694
14868
  } else {
14695
- t24 = $[95];
14869
+ t24 = $[97];
14696
14870
  }
14697
14871
  let t25;
14698
- if ($[96] !== dockContextValue || $[97] !== t24) {
14872
+ if ($[98] !== dockContextValue || $[99] !== t24) {
14699
14873
  t25 = /* @__PURE__ */ jsx(DockContext, { value: dockContextValue, children: t24 });
14700
- $[96] = dockContextValue;
14701
- $[97] = t24;
14702
- $[98] = t25;
14874
+ $[98] = dockContextValue;
14875
+ $[99] = t24;
14876
+ $[100] = t25;
14703
14877
  } else {
14704
- t25 = $[98];
14878
+ t25 = $[100];
14705
14879
  }
14706
14880
  return t25;
14707
14881
  }
@@ -15889,5 +16063,5 @@ function _temp30(state) {
15889
16063
  }
15890
16064
 
15891
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 };
15892
- //# sourceMappingURL=chunk-NCXFWCXP.js.map
15893
- //# sourceMappingURL=chunk-NCXFWCXP.js.map
16066
+ //# sourceMappingURL=chunk-FFJWJ4OB.js.map
16067
+ //# sourceMappingURL=chunk-FFJWJ4OB.js.map