define(['exports', 'preact/jsx-runtime', 'preact/hooks', 'preact/compat', './LayerHost-0b288129', './UNSAFE_Text/themes/TextStyles.css', './Flex-4b81b412', './useTabBarContext-15a23bb6', './flexitem-5db48325', './dimensions-95c0c920', './boxalignment-8d80de7e', './logger-0f873e29', 'css!./TabBarItemStyles.styles.css', 'module', './UNSAFE_TabBarCommon/themes/redwood/TabBarItemVariants.css', 'css!./BadgeStyles.styles.css', 'module', './UNSAFE_Badge/themes/redwood/BadgeVariants.css', './ConveyorBeltContext-d8653090', './BusyStateContext-ab2c549a', './TabbableModeContext-a9c97640', 'preact', './mergeProps-bcfa6a92', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-2bb62284', 'css!./IconStyle.styles.css', './HiddenAccessible-037ef42d', './BaseButton-5a0ad529', './ButtonLabelLayout-6464870c', './NavigationList-a6bb123d', './useNavigationListItem-582f5564', './UNSAFE_NavigationList/themes/NavigationListItemStyles.css', 'module', './UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css', 'css!./NavigationListSeparator.styles.css', './Floating-c3558e44', 'css!./LayerStyles.styles.css', './keyboardUtils-fb6219eb', './tabbableUtils-f95361a6', './CollectionInteractionContext-0b4ed98b', 'css!./dropdownStyles.styles.css', './Sheet-1d02491d', 'css!./OverflowTabBarItemStyles.styles.css', './clientUtils-f1eea2db', './UNSAFE_TabBarMixed/themes/TabBarMixedStyles.css', './useTabBar-b05edef0', './LiveRegion-dbefb95b', './TabBarContextMenu-6a167e27', './ConveyorBeltFocusContext-7d718341'], (function(e,t,s,a,o,n,r,i,l,c,b,d,u,m,x,y,B,T,h,f,C,S,g,v,p,N,M,F,I,A,L,U,E,w,_,k,R,j,P,V,H,D,K,O,z,q,G,J,Q,W,X){"use strict";const Y=a.forwardRef(((e,o)=>{const{children:n,onRemove:r,onSelect:l,selection:c,size:b,"aria-label":d,"aria-labelledby":u}=e,m=s.useRef(null),x=q.isMobile(),y=s.useMemo((()=>({itemsRenderer:e=>{if(e){if(null!=J.getItemAttribute(e.itemKey,m.current,J.REMOVABLE_ITEM_ATTRIBUTE)&&x){const s=e.defaultMenuItems;return t.jsx(t.Fragment,{children:s})}}return null}})),[]),{rootProps:B,tabBarContext:T,menuProps:h,contextMenuContext:f,contextMenuDescription:C,contextMenuDescriptionId:S,accStatusInfo:v}=(p={class:G.styles.tabBarBase,edge:"bottom",onRemove:r,onSelect:l,ref:m,selection:c,size:b,children:n,contextMenuConfig:y},J.useTabBar(p));var p;const N=null!=y&&x;a.useImperativeHandle(o,(()=>({focus:()=>{m.current&&m.current.focus()},blur:()=>{m.current&&m.current.blur()}})));const[M,F]=s.useState(!1),A=s.useCallback((()=>{m.current?.focus()}),[]),L=s.useCallback((()=>{F(!0)}),[]),U=s.useCallback((()=>{F(!1)}),[]),E=s.useCallback((e=>{"Tab"!==e.key||e.shiftKey||L?.()}),[L]),w=s.useCallback((()=>{U?.()}),[U]),_=s.useMemo((()=>({focusTabbarRoot:A,isSuppressOverflowFocus:M,beginTabPass:L,endTabPass:U})),[M,A,L,U]),k=g.mergeProps(B,{onKeyDown:E,onBlur:w});return t.jsxs(X.ConveyorBeltFocusContext.Provider,{value:_,children:[t.jsx(i.TabBarContext.Provider,{value:T,children:t.jsx("div",{"aria-label":d,"aria-labelledby":u,...k,children:n})}),N&&S&&C&&t.jsx("span",{id:S,children:t.jsx(I.HiddenAccessible,{children:C})}),N&&v&&t.jsx(Q.LiveRegion,{children:v}),N&&t.jsx(W.TabBarContextMenu,{...h,contextMenuConfig:y,contextMenuContext:f})]})}));e.TabBarMixed=Y}));
//# sourceMappingURL=TabBarMixed-5b5a5047.js.map
