import{r as m,j as r}from"./react-vendor-xYZnmIII.js";import{r as d,s as x,t as f,u as w,v as h}from"./ui-components-CQM92IK3.js";import{M as u}from"./main-CnGu8e_N.js";import j from"./footer-vWXLydlz.js";import v from"./navbar-iN_RqOPC.js";import g from"./content-list-DHh62kIW.js";import C from"./content-summery-DVqM8Brp.js";import b from"./lesson-viewer-BaW_Kmfk.js";import S from"./quiz-viewer-C9ijW70E.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";import"./theme-colors-CLpwvDr4.js";import"./app-logo-BQGZ7CFC.js";import"./appearance-5ivIjthu.js";import"./notification-C3MPMjX2.js";import"./profile-toggle-CTDQohVW.js";import"./index.browser-OxPLOBIU.js";import"./use-screen-XQDPI5EM.js";import"./live-class-status-DyrEAXDq.js";import"./tabs-eeNoRD9t.js";import"./richtor-BECSBxkh.js";import"./lesson-vtEg1juw.js";import"./lesson-icons-DmUU9hn_.js";import"./quiz-B_NVnsTX.js";import"./student-feedback-BQFLGEvI.js";import"./use-lang-Dg6I_Fym.js";import"./review-D6xYcy58.js";import"./delete-modal-h3jQBOO6.js";import"./input-error-_LAmvivg.js";import"./loading-button-D7aXR3K4.js";import"./table-footer-Dfs_f5Wf.js";import"./route-D0xh7FtZ.js";import"./review-edit-DAM96t16.js";import"./forum-evYADJgP.js";import"./inertia-FIn3q7f1.js";import"./forum-edit-Ca9njr--.js";import"./forum-reply-Dvj7N6up.js";import"./resource-DNnB_gbd.js";import"./video-player-C1vwhm7_.js";import"./document-viewer-BIx4pvTR.js";import"./embed-viewer-CMnC--S4.js";import"./lesson-control-_xSFWiJg.js";const xr=o=>{const{type:p,watching:e,watchHistory:n,direction:a}=o,[c,t]=m.useState("calc(var(--spacing) * 100)"),s=d(n),l=x(o.course,s);return m.useEffect(()=>{const i=()=>{window.innerWidth<880?t("calc(var(--spacing) * 70)"):window.innerWidth<1024?t("calc(var(--spacing) * 80)"):t("calc(var(--spacing) * 100)")};return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),r.jsxs(f,{className:"flex-col",style:{"--sidebar-width":c},children:[r.jsx(v,{}),r.jsxs("div",{className:"flex w-full flex-row-reverse",children:[r.jsx(w,{side:a==="rtl"?"left":"right",className:"top-[60px] shadow-lg",children:r.jsx(g,{completedContents:s,courseCompletion:l})}),r.jsx(h,{children:r.jsxs(u,{children:[p==="lesson"?r.jsx(b,{lesson:e}):r.jsx(S,{quiz:e}),r.jsx(C,{}),r.jsx(j,{})]})})]})]})};export{xr as default};
