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