try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`a164b228-9ea9-4518-9604-dda80fc6c91b`,e._sentryDebugIdIdentifier=`sentry-dbid-a164b228-9ea9-4518-9604-dda80fc6c91b`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Fg as n,K as r,cr as i,dn as a,lh as o,mr as s,or as c}from"./entry.client-dr7r6s9a.js";import{sn as l}from"./xds-icons-d7khcnpi.js";import{t as u}from"./DialogShell-k2jpaw9r.js";import{r as d,t as f}from"./GuideNavToggleContext-e3b2aj32.js";var p=n(),m=t(),h=()=>{let e=(0,p.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={default:!0,XS_10:!1,XSL_10:!1},e[0]=t):t=e[0];let{data:n}=i(t);if(!n)return null;let r;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,m.jsx)(g,{}),e[1]=r):r=e[1],r},g=()=>{let e=(0,p.c)(10),{isTabBarOpen:t,toggleTabBar:n,setHamburgerElement:i}=d(),{t:a}=o(`Guide`),s;e[0]===i?s=e[1]:(s=e=>{i(e)},e[0]=i,e[1]=s);let c=s,u;e[2]===a?u=e[3]:(u=a(`Menu`,{shortKey:`guide_nav_menu`}),e[2]=a,e[3]=u);let h=u,g;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,m.jsx)(l,{}),e[4]=g):g=e[4];let _;return e[5]!==c||e[6]!==h||e[7]!==t||e[8]!==n?(_=(0,m.jsx)(r,{ref:c,as:`button`,icon:g,kind:`commonIconInvisible`,size:`standard`,"aria-label":h,"aria-expanded":t,"aria-controls":f,onPress:n}),e[5]=c,e[6]=h,e[7]=t,e[8]=n,e[9]=_):_=e[9],_},_=e(c(),1),v=a(e=>{let t=(0,p.c)(12),{title:n,className:r,showClose:a}=e,o=a===void 0?!0:a,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={default:!0,SM_20:!1},t[0]=s):s=t[0];let{data:c}=i(s);if(c){if(!n&&!o)return null;let e;t[1]===n?e=t[2]:(e=n?{title:{text:n,sizeClassName:`type-title2`}}:void 0,t[1]=n,t[2]=e);let i=e,a;return t[3]!==i||t[4]!==r||t[5]!==o?(a=(0,m.jsx)(u.NavigationHeader,{title:i,className:r,showClose:o}),t[3]=i,t[4]=r,t[5]=o,t[6]=a):a=t[6],a}let l;t[7]===r?l=t[8]:(l=(0,_.default)(`text-noninteractive-content-primary-content type-section3`,r),t[7]=r,t[8]=l);let d;return t[9]!==l||t[10]!==n?(d=(0,m.jsx)(`h2`,{className:l,children:n}),t[9]=l,t[10]=n,t[11]=d):d=t[11],d},e=>({...e})),y=s(e=>(0,m.jsx)(v.useComponent(),{...e}),`GuideL1Header`);export{h as n,y as t};