(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1038],{96991:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/packages/rspack/generators/init",function(){return s(36402)}])},36402:function(e,n,s){"use strict";s.r(n),s.d(n,{__N_SSG:function(){return f},default:function(){return h}});var l=s(97458),t=s(5761),r=s(71731),a=s(52101),i=s(97757),u=s(36625),c=s(52983),o=s(32466),f=!0;function h(e){let{menu:n,pkg:s,schema:f}=e,h=(0,u.useRouter)(),{toggleNav:d,navIsOpen:p}=(0,o.s)(),m=(0,c.useRef)(null);(0,c.useEffect)(()=>{let e=e=>{!e.includes("#")&&m&&m.current.scrollTo({top:0,left:0,behavior:"smooth"})};return h.events.on("routeChangeComplete",e),()=>h.events.off("routeChangeComplete",e)},[h,m]);let _={menu:{sections:(0,a.wY)((0,r.OP)(n),"id")},package:s,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)(i.aV,{isNavOpen:p,toggleNav:d})}),(0,l.jsxs)("main",{id:"main",role:"main",className:"flex h-full flex-1 overflow-y-hidden",children:[(0,l.jsx)(i._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,1722,7607,9774,2888,179],function(){return e(e.s=96991)}),_N_E=e.O()}]);