import{jsxs as o,jsx as r}from"react/jsx-runtime";import{r as d,s as f,t as w,u as h,v as u}from"./ui-components-B24mpb8o.js";import{M as v}from"./main-Cv60h411.js";import g from"./footer-Bp0M3s5A.js";import{useState as x,useEffect as C}from"react";import b from"./navbar-CKiJLd7M.js";import S from"./content-list-B5dmbwRG.js";import z from"./content-summery-Io-DpNRw.js";import y from"./lesson-viewer-FLQGfHOi.js";import L from"./quiz-viewer-CnPoKiQR.js";import"next-themes";import"sonner";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"lucide-react";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";import"./theme-colors-CLpwvDr4.js";import"@inertiajs/react";import"./app-logo-CAnM-q9p.js";import"lucide-react/dynamic";import"./appearance-zLWEcDPI.js";import"./notification-BBQVVMqD.js";import"date-fns";import"./profile-toggle-E46Ne1rK.js";import"nanoid";import"./use-screen-CJI_WQZy.js";import"./live-class-status-BTJMYxUA.js";import"./tabs-DqFmhKFO.js";import"richtor";/* empty css                */import"./lesson-D_czla_V.js";import"./lesson-icons-CkBBjsxb.js";import"./quiz-3wJlI9kB.js";import"./student-feedback-DpTtBUBp.js";import"./use-lang-Cw_jKJYs.js";import"./review-CD5k4g_i.js";import"./delete-modal-DdJyKUdO.js";import"./input-error-BbsDx4-P.js";import"./loading-button-B_LaGOAp.js";import"./table-footer-lUcSaZ5Q.js";import"./route-D0xh7FtZ.js";import"./review-edit-Ct3RBbSu.js";import"./forum-BgQB9lbj.js";import"./inertia-FIn3q7f1.js";import"./forum-edit-B-h2aT56.js";import"./forum-reply-ooYAEJXf.js";import"./resource-MgRwg8-G.js";import"./video-player-DuM4pi_Z.js";import"plyr-react";/* empty css                     */import"./document-viewer-BGkJbb3f.js";import"./embed-viewer-CkD2qmq_.js";import"./lesson-control-Dabz43Hw.js";const Tr=m=>{const{type:s,watching:p,watchHistory:n,direction:a}=m,[c,t]=x("calc(var(--spacing) * 100)"),e=d(n),l=f(m.course,e);return C(()=>{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)},[]),o(w,{className:"flex-col",style:{"--sidebar-width":c},children:[r(b,{}),o("div",{className:"flex w-full flex-row-reverse",children:[r(h,{side:a==="rtl"?"left":"right",className:"top-[60px] shadow-lg",children:r(S,{completedContents:e,courseCompletion:l})}),r(u,{children:o(v,{children:[s==="lesson"?r(y,{lesson:p}):r(L,{quiz:p}),r(z,{}),r(g,{})]})})]})]})};export{Tr as default};
