(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[288],{21964:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/packages/rspack/executors/dev-server",function(){return n(27247)}])},27247:function(e,s,n){"use strict";n.r(s),n.d(s,{__N_SSG:function(){return f},default:function(){return d}});var l=n(97458),t=n(5761),r=n(71731),a=n(52101),u=n(97757),c=n(36625),i=n(52983),o=n(32466),f=!0;function d(e){let{menu:s,pkg:n,schema:f}=e,d=(0,c.useRouter)(),{toggleNav:h,navIsOpen:p}=(0,o.s)(),m=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=e=>{!e.includes("#")&&m&&m.current.scrollTo({top:0,left:0,behavior:"smooth"})};return d.events.on("routeChangeComplete",e),()=>d.events.off("routeChangeComplete",e)},[d,m]);let _={menu:{sections:(0,a.wY)((0,r.OP)(s),"id")},package:n,schema:f};return(0,l.jsxs)("div",{id:"shell",className:"flex h-full flex-col",children:[(0,l.jsx)("div",{className:"w-full flex-shrink-0",children:(0,l.jsx)(u.aV,{isNavOpen:p,toggleNav:h})}),(0,l.jsxs)("main",{id:"main",role:"main",className:"flex h-full flex-1 overflow-y-hidden",children:[(0,l.jsx)(u._G,{menu:_.menu,navIsOpen:p}),(0,l.jsx)("div",{ref:m,id:"wrapper","data-testid":"wrapper",className:"relative flex flex-grow flex-col items-stretch justify-start overflow-y-scroll",children:(0,l.jsx)(t.q_,{pkg:_.package,schema:_.schema})})]})]})}}},function(e){e.O(0,[7125,2089,9919,5805,7757,4965,7607,9774,2888,179],function(){return e(e.s=21964)}),_N_E=e.O()}]);