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]=`02f2fa57-4c23-4442-84e9-f2708dec7278`,e._sentryDebugIdIdentifier=`sentry-dbid-02f2fa57-4c23-4442-84e9-f2708dec7278`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$m as t,Ag as n,Oi as r,_r as i,jg as a,ng as o,pi as s,xt as c}from"./entry.client-mpghtlrl.js";import{Tn as l}from"./xds-icons-m106f2fc.js";import{t as u}from"./DialogShellContext-grfsno45.js";import{t as d}from"./DialogShell-ga7ic6wy.js";import{a as f,i as p}from"./guideRouterEnvironmentHooks-h2xlfina.js";import{i as m,n as h}from"./useGuideStrings-n4ehuf4q.js";import{n as g}from"./GuidePageLayout-eh7novzv.js";var _=n(),v=o(),y=()=>{let e=(0,_.c)(2),t=f(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={default:!0,XS_10:!1,XSL_10:!1},e[0]=n):n=e[0];let{data:r}=g(n);if(t||!r)return null;let i;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,v.jsx)(b,{}),e[1]=i):i=e[1],i},b=()=>{let e=(0,_.c)(10),{isTabBarOpen:n,toggleTabBar:r,setHamburgerElement:i}=m(),{t:a}=t(`Guide`),o;e[0]===i?o=e[1]:(o=e=>{i(e)},e[0]=i,e[1]=o);let s=o,u;e[2]===a?u=e[3]:(u=a(`Menu`,{shortKey:`guide_nav_menu`}),e[2]=a,e[3]=u);let d=u,f;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,v.jsx)(l,{}),e[4]=f):f=e[4];let p;return e[5]!==s||e[6]!==d||e[7]!==n||e[8]!==r?(p=(0,v.jsx)(c,{ref:s,as:`button`,icon:f,kind:`commonIconInvisible`,size:`standard`,"aria-label":d,"aria-expanded":n,"aria-controls":h,onPress:r}),e[5]=s,e[6]=d,e[7]=n,e[8]=r,e[9]=p):p=e[9],p},x=e(s(),1),S=e(a(),1),C=i(e=>{let t=(0,_.c)(22),{title:n,className:r,showClose:i,description:a}=e,o=i===void 0?!0:i,s=p(),c=(0,S.useContext)(u),l=(0,S.useId)(),f,m;t[0]!==c||t[1]!==a||t[2]!==n||t[3]!==l?(f=()=>{if(!c)return;let e=a??n??``;return c.registerDescription(l,e),()=>{c.registerDescription(l,``)}},m=[a,l,c,n],t[0]=c,t[1]=a,t[2]=n,t[3]=l,t[4]=f,t[5]=m):(f=t[4],m=t[5]),(0,S.useEffect)(f,m);let h;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(h={default:!0,SM_20:!1},t[6]=h):h=t[6];let{data:y}=g(h),b,C;if(t[7]!==s||t[8]!==n?(b=()=>{if(!(s?.host!==`widget`||!s?.setHeader))return n&&s.setHeader({title:n}),()=>{s?.setHeader?.({title:void 0})}},C=[s,n],t[7]=s,t[8]=n,t[9]=b,t[10]=C):(b=t[9],C=t[10]),(0,S.useEffect)(b,C),s?.host===`widget`)return null;if(y){if(!n&&!o)return null;let e;t[11]===n?e=t[12]:(e=n?{title:{text:n,sizeClassName:`type-title2`}}:void 0,t[11]=n,t[12]=e);let i=e,a;return t[13]!==i||t[14]!==r||t[15]!==o?(a=(0,v.jsx)(d.NavigationHeader,{title:i,className:r,showClose:o}),t[13]=i,t[14]=r,t[15]=o,t[16]=a):a=t[16],a}let w;t[17]===r?w=t[18]:(w=(0,x.default)(`text-noninteractive-content-primary-content type-section3`,r),t[17]=r,t[18]=w);let T;return t[19]!==w||t[20]!==n?(T=(0,v.jsx)(`h2`,{className:w,children:n}),t[19]=w,t[20]=n,t[21]=T):T=t[21],T},e=>({...e})),w=r(e=>(0,v.jsx)(C.useComponent(),{...e}),`GuideL1Header`);export{y as n,w as t};