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]=`189597fa-4260-4aaf-8e41-96cddab4813c`,e._sentryDebugIdIdentifier=`sentry-dbid-189597fa-4260-4aaf-8e41-96cddab4813c`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{t}from"./useIntraDialogHistory-id9u91ur.js";import{Ag as n,Hm as r,Oi as i,_r as a,jg as o,ng as s}from"./entry.client-mpghtlrl.js";import{t as c}from"./DialogShellContext-grfsno45.js";import{t as l}from"./DialogShell-ga7ic6wy.js";import{i as u,n as d}from"./guideRouterEnvironmentHooks-h2xlfina.js";var f=n(),p=e(o(),1),m=s(),h=a(e=>{let t=(0,f.c)(33),n,i,a,o,s,d;t[0]===e?(n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],d=t[6]):({goBack:d,isAtRoot:s,title:i,subtitle:a,description:n,...o}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=d);let h=u(),g=(0,p.useContext)(c),_=(0,p.useId)(),{locAccessibilityComma:v}=r(),y;t[7]!==n||t[8]!==i||t[9]!==a||t[10]!==v?(y=n??(i?a?v(i,a):i:void 0),t[7]=n,t[8]=i,t[9]=a,t[10]=v,t[11]=y):y=t[11];let b=y,x,S;t[12]!==g||t[13]!==_||t[14]!==b?(x=()=>{if(g)return g.registerDescription(_,b??``),()=>{g.registerDescription(_,``)}},S=[b,_,g],t[12]=g,t[13]=_,t[14]=b,t[15]=x,t[16]=S):(x=t[15],S=t[16]),(0,p.useEffect)(x,S);let C,w;if(t[17]!==h||t[18]!==o.content||t[19]!==o.moreMenuItems||t[20]!==i||t[21]!==a||t[22]!==s||t[23]!==d?(C=()=>{if(!(h?.host!==`widget`||!h?.setHeader))return h.setHeader({title:o.content??i,subtitle:a,moreMenuItems:o.moreMenuItems,canGoBack:!s,onBack:d}),()=>{h?.setHeader?.({title:void 0,subtitle:void 0,moreMenuItems:void 0,canGoBack:!1,onBack:void 0})}},w=[h,i,a,o.content,o.moreMenuItems,s,d],t[17]=h,t[18]=o.content,t[19]=o.moreMenuItems,t[20]=i,t[21]=a,t[22]=s,t[23]=d,t[24]=C,t[25]=w):(C=t[24],w=t[25]),(0,p.useEffect)(C,w),h?.host===`widget`)return null;let T;t[26]!==i||t[27]!==a?(T=i?{title:{text:i,sizeClassName:`type-title4`},subtitle:a?{text:a,sizeClassName:`type-subtitle3 text-center`}:void 0}:void 0,t[26]=i,t[27]=a,t[28]=T):T=t[28];let E=T,D=s?void 0:d,O;return t[29]!==D||t[30]!==E||t[31]!==o?(O=(0,m.jsx)(l.NavigationHeader,{onBack:D,title:E,showClose:!0,...o}),t[29]=D,t[30]=E,t[31]=o,t[32]=O):O=t[32],O},e=>{let n=d(),{index:r}=t();return{goBack:n,isAtRoot:r===0,...e}}),g=i(e=>(0,m.jsx)(h.useComponent(),{...e}),`GuideL2Header`);export{g as t};