Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
coursewise /
assets /
[ HOME SHELL ]
Name
Size
Permission
Action
AcademicTools-tj30wEj0.js
7.55
KB
-rwxr-xr-x
AcademicTools-tj30wEj0.js.map
14.63
KB
-rwxr-xr-x
AddCourse-BTNu-pnI.js
10.08
KB
-rwxr-xr-x
AddCourse-BTNu-pnI.js.map
35.84
KB
-rwxr-xr-x
AdminFeedbackManagement-DsTd1C...
13.52
KB
-rwxr-xr-x
AdminFeedbackManagement-DsTd1C...
45.25
KB
-rwxr-xr-x
CourseReviews-CLlzbLuT.js
27.45
KB
-rwxr-xr-x
CourseReviews-CLlzbLuT.js.map
112.09
KB
-rwxr-xr-x
Dewan-B5d13VSK.png
819.07
KB
-rwxr-xr-x
Dewan-Bniqtmij.js
102
B
-rwxr-xr-x
Dewan-Bniqtmij.js.map
197
B
-rwxr-xr-x
EditCourse-DeWQqcol.js
9.65
KB
-rwxr-xr-x
EditCourse-DeWQqcol.js.map
34.87
KB
-rwxr-xr-x
MyCourses-BA9wctPB.js
8.48
KB
-rwxr-xr-x
MyCourses-BA9wctPB.js.map
31.95
KB
-rwxr-xr-x
Rajput-BnxWGXCy.js
104
B
-rwxr-xr-x
Rajput-BnxWGXCy.js.map
200
B
-rwxr-xr-x
Rajput-CE3gMniE.png
908.11
KB
-rwxr-xr-x
Settings-BGf6-NRc.js
2.09
KB
-rwxr-xr-x
Settings-BGf6-NRc.js.map
5.35
KB
-rwxr-xr-x
TimetableClashChecker-gskbNvYE...
32.74
KB
-rwxr-xr-x
TimetableClashChecker-gskbNvYE...
137.78
KB
-rwxr-xr-x
UserManagement-pl4YxOXe.js
2.17
KB
-rwxr-xr-x
UserManagement-pl4YxOXe.js.map
5.49
KB
-rwxr-xr-x
academic-components-DF0R8Z3x.j...
670.84
KB
-rwxr-xr-x
academic-components-DF0R8Z3x.j...
1.87
MB
-rwxr-xr-x
admin-components-DUStTukf.js
1.36
MB
-rwxr-xr-x
admin-components-DUStTukf.js.m...
5.5
MB
-rwxr-xr-x
apple-touch-icon-CvbJoadU.png
20.94
KB
-rwxr-xr-x
browser-DyVnc2OH.js
392
B
-rwxr-xr-x
browser-DyVnc2OH.js.map
404
B
-rwxr-xr-x
favicon-16x16-CXk8OJVQ.png
734
B
-rwxr-xr-x
favicon-32x32-BMg2Kocu.png
1.78
KB
-rwxr-xr-x
favicon-hhFM0i7Z.ico
15.04
KB
-rwxr-xr-x
geminiService-khxcBfs7.js
2.36
KB
-rwxr-xr-x
geminiService-khxcBfs7.js.map
6.73
KB
-rwxr-xr-x
index-BbxTXAhJ.css
45.32
KB
-rwxr-xr-x
index-DN1SJQ1D.js
73.27
KB
-rwxr-xr-x
index-DN1SJQ1D.js.map
215.58
KB
-rwxr-xr-x
index.es-B3idowhG.js
155.35
KB
-rwxr-xr-x
index.es-B3idowhG.js.map
624.87
KB
-rwxr-xr-x
kunal-UYflGF6w.jpg
9.22
MB
-rwxr-xr-x
kunal-ozIpZZVI.js
102
B
-rwxr-xr-x
kunal-ozIpZZVI.js.map
197
B
-rwxr-xr-x
pdf-vendor-Bz5wMm03.js
317.87
KB
-rwxr-xr-x
pdf-vendor-Bz5wMm03.js.map
976.2
KB
-rwxr-xr-x
purify.es-CQJ0hv7W.js
21.35
KB
-rwxr-xr-x
purify.es-CQJ0hv7W.js.map
88.01
KB
-rwxr-xr-x
react-vendor-BFYHlx6n.js
160.29
KB
-rwxr-xr-x
react-vendor-BFYHlx6n.js.map
687.16
KB
-rwxr-xr-x
sarthak-CfXTejkX.png
764.15
KB
-rwxr-xr-x
sarthak-Cq6ZcrGb.js
106
B
-rwxr-xr-x
sarthak-Cq6ZcrGb.js.map
203
B
-rwxr-xr-x
site-BwHFeIBa.webmanifest
263
B
-rwxr-xr-x
supabase-vendor-DtZyL83W.js
105.45
KB
-rwxr-xr-x
supabase-vendor-DtZyL83W.js.ma...
449.41
KB
-rwxr-xr-x
ui-vendor-DSJ4jbeb.js
44.26
KB
-rwxr-xr-x
ui-vendor-DSJ4jbeb.js.map
190.96
KB
-rwxr-xr-x
useToast-Bg1woyD1.js
414
B
-rwxr-xr-x
useToast-Bg1woyD1.js.map
1.83
KB
-rwxr-xr-x
xlsx-vendor-D_ykzFJ-.js
276.48
KB
-rwxr-xr-x
xlsx-vendor-D_ykzFJ-.js.map
1.37
MB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : index-DN1SJQ1D.js
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AcademicTools-tj30wEj0.js","assets/admin-components-DUStTukf.js","assets/react-vendor-BFYHlx6n.js","assets/supabase-vendor-DtZyL83W.js","assets/pdf-vendor-Bz5wMm03.js","assets/xlsx-vendor-D_ykzFJ-.js","assets/ui-vendor-DSJ4jbeb.js","assets/useToast-Bg1woyD1.js","assets/academic-components-DF0R8Z3x.js","assets/TimetableClashChecker-gskbNvYE.js","assets/AddCourse-BTNu-pnI.js","assets/MyCourses-BA9wctPB.js","assets/EditCourse-DeWQqcol.js","assets/UserManagement-pl4YxOXe.js","assets/Settings-BGf6-NRc.js","assets/CourseReviews-CLlzbLuT.js","assets/AdminFeedbackManagement-DsTd1CAv.js"])))=>i.map(i=>d[i]); import{u as ne,j as e,e as _,B as x,ar as He,V as j,H as U,T as u,c as J,d as q,I as xe,ao as Ke,ap as es,k as Ze,as as ss,at as ts,a as G,s as y,F as A,f as ee,aa as Se,ag as rs,ah as Ee,au as is,D as B,ai as I,o as oe,L as D,U as os,W as Ce,X as as,Y as Ne,Z as ns,$ as _e,av as ls,ab as cs,aw as Ie,E as ve,C as te,n as re,ax as Te,ay as De,a1 as We,A as ds,ad as we,a2 as us,a3 as ms,a4 as le,a5 as hs,a6 as ce,az as xs,aA as gs}from"./admin-components-DUStTukf.js";import{f as ps,r as a,d as Ve,u as fe,e as Ye,N as ge,L as Q,H as fs,h as bs,i as N}from"./react-vendor-BFYHlx6n.js";import{_ as L}from"./supabase-vendor-DtZyL83W.js";import{N as be,u as Re,P as js,A as vs,C as ws,a as ys,b as Ss}from"./academic-components-DF0R8Z3x.js";import{B as V,y as Je,c as X,Y as $,i as pe,_ as ie,$ as Cs,G as ke,W as ye,r as Ns,m as qe,a as _s,p as Is,a0 as ks,a1 as zs,a2 as As,a3 as Es,S as ze,x as ae,a4 as Rs,a5 as Ls,a6 as Ms,I as Ps,f as $e,n as Fe,C as Ts,j as Ds,X as Ws,d as Ge,g as Fs,E as Gs,T as Us,b as Bs,e as Os,a7 as Hs,U as Zs,a8 as Vs}from"./ui-vendor-DSJ4jbeb.js";import"./pdf-vendor-Bz5wMm03.js";import"./xlsx-vendor-D_ykzFJ-.js";(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))n(t);new MutationObserver(t=>{for(const o of t)if(o.type==="childList")for(const d of o.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&n(d)}).observe(document,{childList:!0,subtree:!0});function r(t){const o={};return t.integrity&&(o.integrity=t.integrity),t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?o.credentials="include":t.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(t){if(t.ep)return;t.ep=!0;const o=r(t);fetch(t.href,o)}})();var de={},Ue;function Ys(){if(Ue)return de;Ue=1;var s=ps();return de.createRoot=s.createRoot,de.hydrateRoot=s.hydrateRoot,de}var Js=Ys();function qs(s={}){const{nonce:i,onScriptLoadSuccess:r,onScriptLoadError:n}=s,[t,o]=a.useState(!1),d=a.useRef(r);d.current=r;const m=a.useRef(n);return m.current=n,a.useEffect(()=>{const c=document.createElement("script");return c.src="https://accounts.google.com/gsi/client",c.async=!0,c.defer=!0,c.nonce=i,c.onload=()=>{var l;o(!0),(l=d.current)===null||l===void 0||l.call(d)},c.onerror=()=>{var l;o(!1),(l=m.current)===null||l===void 0||l.call(m)},document.body.appendChild(c),()=>{document.body.removeChild(c)}},[i]),t}const $s=a.createContext(null);function Xs({clientId:s,nonce:i,onScriptLoadSuccess:r,onScriptLoadError:n,children:t}){const o=qs({nonce:i,onScriptLoadSuccess:r,onScriptLoadError:n}),d=a.useMemo(()=>({clientId:s,scriptLoadedSuccessfully:o}),[s,o]);return Ve.createElement($s.Provider,{value:d},t)}const Xe=a.createContext(void 0),Qs=({children:s})=>{const i=ne();return e.jsx(Xe.Provider,{value:i,children:s})},Ks=()=>{const s=a.useContext(Xe);if(s===void 0)throw new Error("useToast must be used within a ToastProvider");return s},et=()=>{const[s,i]=a.useState(""),[r,n]=a.useState(""),[t,o]=a.useState(!1),[d,m]=a.useState(!1),c=fe(),l=ne(),g=_("linear(to-r, purple.50, purple.100)","linear(to-r, gray.800, purple.900)"),w=_("white","gray.800"),f=_("lg","dark-lg"),E=async S=>{S.preventDefault(),m(!0);try{if(s!=="admn.coursewise@gmail.com")throw new Error("Invalid admin credentials");const{data:W,error:k}=await y.auth.signInWithPassword({email:s,password:r});if(k)throw k;localStorage.setItem("isAdmin","true"),l({title:"Welcome back, Admin!",description:"Login successful",status:"success",duration:3e3}),c("/admin/dashboard")}catch(M){l({title:"Login failed",description:M.message,status:"error",duration:5e3}),localStorage.removeItem("isAdmin")}finally{m(!1)}};return e.jsx(x,{minH:"100vh",bgGradient:g,py:20,children:e.jsx(He,{maxW:"container.sm",children:e.jsx(x,{bg:w,p:10,rounded:"xl",shadow:f,borderWidth:"1px",borderColor:_("gray.100","gray.700"),children:e.jsxs(j,{spacing:8,children:[e.jsxs(j,{spacing:3,align:"center",children:[e.jsx(U,{size:"xl",color:"purple.600",children:"Admin Portal"}),e.jsx(u,{color:"gray.500",fontSize:"lg",children:"Welcome back! Please sign in to continue."})]}),e.jsx("form",{onSubmit:E,style:{width:"100%"},children:e.jsxs(j,{spacing:6,children:[e.jsxs(J,{isRequired:!0,children:[e.jsx(q,{children:"Email"}),e.jsx(xe,{type:"email",value:s,onChange:S=>i(S.target.value),placeholder:"Enter your email",size:"lg",bg:_("white","gray.700"),borderColor:_("gray.200","gray.600"),_hover:{borderColor:"purple.400"},_focus:{borderColor:"purple.500",boxShadow:"0 0 0 1px purple.500"}})]}),e.jsxs(J,{isRequired:!0,children:[e.jsx(q,{children:"Password"}),e.jsxs(Ke,{size:"lg",children:[e.jsx(xe,{type:t?"text":"password",value:r,onChange:S=>n(S.target.value),placeholder:"Enter your password",bg:_("white","gray.700"),borderColor:_("gray.200","gray.600"),_hover:{borderColor:"purple.400"},_focus:{borderColor:"purple.500",boxShadow:"0 0 0 1px purple.500"}}),e.jsx(es,{children:e.jsx(Ze,{"aria-label":t?"Hide password":"Show password",icon:t?e.jsx(ss,{}):e.jsx(ts,{}),onClick:()=>o(!t),variant:"ghost",colorScheme:"purple"})})]})]}),e.jsx(G,{type:"submit",colorScheme:"purple",width:"100%",size:"lg",isLoading:d,loadingText:"Signing in...",_hover:{transform:"translateY(-2px)",boxShadow:"lg"},children:"Sign In"})]})})]})})})})},Z=({children:s})=>{const[i,r]=a.useState(null),[n,t]=a.useState(!0),o=Ye();return a.useEffect(()=>{(async()=>{try{const{data:{session:m}}=await y.auth.getSession();if(!m){r(!1),localStorage.removeItem("isAdmin"),t(!1);return}m.user.email==="admn.coursewise@gmail.com"?(localStorage.setItem("isAdmin","true"),r(!0)):(localStorage.removeItem("isAdmin"),r(!1))}catch(m){console.error("Error checking admin status:",m),localStorage.removeItem("isAdmin"),r(!1)}finally{t(!1)}})()},[]),n?e.jsx(A,{height:"100vh",align:"center",justify:"center",children:e.jsx(ee,{thickness:"4px",speed:"0.65s",emptyColor:"gray.200",color:"purple.500",size:"xl"})}):i?e.jsx(e.Fragment,{children:s}):e.jsx(ge,{to:"/admin/login",state:{from:o},replace:!0})},je=({src:s,alt:i,className:r})=>{const[n,t]=a.useState(""),[o,d]=a.useState(!0);return Ve.useEffect(()=>{s().then(m=>{t(m.default),d(!1)})},[s]),o?e.jsx("div",{className:`${r} rounded-full bg-gray-300 animate-pulse flex items-center justify-center`,children:e.jsx("div",{className:"text-gray-500 text-xs",children:"Loading..."})}):e.jsx("img",{src:n,alt:i,className:`${r} rounded-full object-cover`,loading:"lazy"})},st=({className:s="w-16 h-16"})=>e.jsx(je,{src:()=>L(()=>import("./Dewan-Bniqtmij.js"),[]),alt:"Dhruv Dewan",className:s}),tt=({className:s="w-16 h-16"})=>e.jsx(je,{src:()=>L(()=>import("./kunal-ozIpZZVI.js"),[]),alt:"Kunal Sharma",className:s}),rt=({className:s="w-16 h-16"})=>e.jsx(je,{src:()=>L(()=>import("./sarthak-Cq6ZcrGb.js"),[]),alt:"Sarthak Srivastava",className:s}),it=({className:s="w-16 h-16"})=>e.jsx(je,{src:()=>L(()=>import("./Rajput-BnxWGXCy.js"),[]),alt:"Dhruv Rajput",className:s}),ot=({className:s="w-5 h-5"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:s,viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#FFC107",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12c0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24c0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}),e.jsx("path",{fill:"#FF3D00",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}),e.jsx("path",{fill:"#4CAF50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}),e.jsx("path",{fill:"#1976D2",d:"M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571c0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"})]});function at(){const s=fe(),i=ne(),[r,n]=a.useState(!1),[t,o]=a.useState(null),[d,m]=a.useState(!0);a.useEffect(()=>{y.auth.getSession().then(({data:{session:g}})=>{if(o(g),m(!1),g){const w=localStorage.getItem("redirectAfterLogin")||sessionStorage.getItem("redirectAfterLogin");w?(localStorage.removeItem("redirectAfterLogin"),sessionStorage.removeItem("redirectAfterLogin"),s(w)):s("/dashboard")}});const{data:{subscription:l}}=y.auth.onAuthStateChange((g,w)=>{if(o(w),w){const f=localStorage.getItem("redirectAfterLogin")||sessionStorage.getItem("redirectAfterLogin");f?(localStorage.removeItem("redirectAfterLogin"),sessionStorage.removeItem("redirectAfterLogin"),s(f)):s("/dashboard")}});return()=>l.unsubscribe()},[s]);const c=async()=>{try{n(!0);const{data:l,error:g}=await y.auth.signInWithOAuth({provider:"google",options:{redirectTo:`${window.location.origin}/`,queryParams:{access_type:"offline",prompt:"consent"},scopes:"email profile"}});if(g)throw g;if(!l.url)throw new Error("No authentication URL returned");window.location.href=l.url}catch(l){const g=l;console.error("Login error:",g),i({title:"Authentication Error",description:g.message||"Failed to sign in with Google. Please try again.",status:"error",duration:5e3,isClosable:!0})}finally{n(!1)}};return d?e.jsx(x,{height:"100vh",display:"flex",alignItems:"center",justifyContent:"center",bg:"gray.50",children:e.jsx(ee,{thickness:"4px",speed:"0.65s",emptyColor:"gray.200",color:"purple.500",size:"xl"})}):e.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[e.jsx(be,{}),e.jsxs("div",{className:"flex-grow flex flex-col md:flex-row",children:[e.jsxs("div",{className:"w-full md:w-1/2 p-4 md:p-0 flex items-center justify-center bg-gradient-to-br from-gray-50 to-gray-100 relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-5",children:e.jsxs("div",{className:"absolute top-0 left-0 w-full h-full",children:[e.jsx("div",{className:"w-40 h-40 bg-purple-600 rounded-full -top-20 -left-20 absolute animate-pulse"}),e.jsx("div",{className:"w-32 h-32 bg-indigo-600 rounded-full top-1/4 -right-16 absolute animate-pulse delay-300"}),e.jsx("div",{className:"w-36 h-36 bg-blue-600 rounded-full bottom-1/3 -left-16 absolute animate-pulse delay-500"}),e.jsx("div",{className:"w-28 h-28 bg-pink-600 rounded-full -bottom-14 right-1/4 absolute animate-pulse delay-700"})]})}),e.jsx("div",{className:"relative z-10 w-full max-w-md mx-4 my-8",children:e.jsxs("div",{className:"bg-white p-10 rounded-2xl shadow-xl border border-gray-100 backdrop-blur-sm",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"flex justify-center mb-6",children:e.jsx("div",{className:"bg-gradient-to-r from-indigo-600 to-purple-600 p-3 rounded-full shadow-md transform hover:scale-105 transition-transform",children:e.jsx(V,{className:"w-8 h-8 text-white"})})}),e.jsx("h2",{className:"text-4xl font-bold mb-2 bg-gradient-to-r from-indigo-600 to-purple-600 bg-clip-text text-transparent",children:"Welcome Back!"}),e.jsx("p",{className:"text-gray-600 mb-8",children:"Sign in to continue to CourseWise"})]}),e.jsxs("div",{className:"relative mb-8",children:[e.jsx("div",{className:"absolute inset-0 flex items-center",children:e.jsx("div",{className:"w-full border-t border-gray-200"})}),e.jsx("div",{className:"relative flex justify-center",children:e.jsx("span",{className:"px-3 bg-white text-gray-500 text-sm",children:"Continue with"})})]}),e.jsxs("button",{onClick:c,className:"w-full flex items-center justify-center gap-3 py-3 px-4 rounded-lg border border-gray-300 bg-white text-gray-700 hover:bg-gray-50 transition-all duration-200 shadow-sm hover:shadow-md disabled:opacity-70 disabled:cursor-not-allowed",disabled:r,children:[e.jsx(ot,{className:"w-5 h-5"}),e.jsx("span",{className:"font-medium",children:r?"Signing in...":"Google"})]}),e.jsx("div",{className:"text-center text-gray-500 text-sm mt-8",children:e.jsxs("p",{children:["By signing in, you agree to our ",e.jsx("a",{href:"#",className:"text-indigo-600 hover:text-indigo-800 transition-colors",children:"Terms of Service"})," and ",e.jsx("a",{href:"#",className:"text-indigo-600 hover:text-indigo-800 transition-colors",children:"Privacy Policy"})]})})]})})]}),e.jsxs("div",{className:"w-full md:w-1/2 bg-gradient-to-br from-indigo-600 to-purple-700 p-8 text-white relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4wOCI+PHBhdGggZD0iTTM2IDMwaC0yVjBoMnYzMHptLTIgMEgydjJoMzJ2LTJ6bTAgMnYyOGgydi0yOGgtMnptMi0ydi0zaC0ydjNoMnptLTIgMEgwdjJoMzR2LTJ6Ii8+PC9nPjwvZz48L3N2Zz4=')] opacity-30"}),e.jsx("div",{className:"absolute -right-20 -top-20 w-40 h-40 bg-white/10 rounded-full"}),e.jsx("div",{className:"absolute -left-20 -bottom-20 w-60 h-60 bg-white/10 rounded-full"}),e.jsxs("div",{className:"h-full flex flex-col justify-center max-w-lg mx-auto relative z-10",children:[e.jsx("h2",{className:"text-3xl font-bold mb-8",children:"Why Choose CourseWise?"}),e.jsxs("div",{className:"grid gap-6",children:[e.jsx(ue,{icon:e.jsx(Je,{className:"w-6 h-6"}),title:"Smart Course Recommendations",description:"Get personalized course suggestions based on your profile and interests"}),e.jsx(ue,{icon:e.jsx(X,{className:"w-6 h-6"}),title:"Timetable Planning",description:"Plan your semester schedule efficiently and avoid conflicts"}),e.jsx(ue,{icon:e.jsx($,{className:"w-6 h-6"}),title:"Course Reviews",description:"Access detailed course reviews from fellow students"}),e.jsx(ue,{icon:e.jsx(pe,{className:"w-6 h-6"}),title:"Time Management",description:"Tools to help you balance your academic workload"})]}),e.jsxs("div",{className:"mt-12 border-t border-white/20 pt-8",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-4 bg-white/10 p-3 rounded-lg backdrop-blur-sm",children:[e.jsx(ie,{className:"w-5 h-5"}),e.jsx("span",{children:"Join 1000+ students using CourseWise"})]}),e.jsxs("div",{className:"flex items-center gap-4 bg-white/10 p-3 rounded-lg backdrop-blur-sm",children:[e.jsx(Cs,{className:"w-5 h-5"}),e.jsx("span",{children:"Secure & Privacy Focused"})]})]})]})]})]})]})}function ue({icon:s,title:i,description:r}){return e.jsxs("div",{className:"flex gap-4 items-start bg-white/10 p-4 rounded-lg backdrop-blur-sm hover:bg-white/20 transition-colors duration-300",children:[e.jsx("div",{className:"p-2 bg-white/20 rounded-lg",children:s}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold mb-1",children:i}),e.jsx("p",{className:"text-white/80 text-sm",children:r})]})]})}function nt(){const s=fe();return a.useEffect(()=>{setTimeout(()=>{s("/")},1e3)},[s]),e.jsx("div",{children:"Processing login..."})}const me=({children:s})=>{const{session:i,loading:r}=Re(),n=Ye();return!r&&!i?(localStorage.setItem("redirectAfterLogin",n.pathname),e.jsx(ge,{to:"/login",replace:!0})):r?e.jsx(Se,{h:"100vh",children:e.jsx(ee,{size:"xl",color:"purple.500"})}):e.jsx(e.Fragment,{children:s})},lt=` @keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } @keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes blob { 0% { transform: scale(1) translate(0px, 0px); } 33% { transform: scale(1.1) translate(30px, -50px); } 66% { transform: scale(0.9) translate(-20px, 20px); } 100% { transform: scale(1) translate(0px, 0px); } } .animate-float { animation: float 6s ease-in-out infinite; } .animate-float-delay-1 { animation: float 6s ease-in-out 2s infinite; } .animate-float-delay-2 { animation: float 6s ease-in-out 4s infinite; } .animate-pulse-slow { animation: pulse 5s ease-in-out infinite; } .animate-spin-slow { animation: spin-slow 20s linear infinite; } .animate-blob { animation: blob 15s ease-in-out infinite; } .animation-delay-2000 { animation-delay: 2000ms; } .animation-delay-4000 { animation-delay: 4000ms; } .animation-delay-6000 { animation-delay: 6000ms; } `;function ct(){const[s,i]=a.useState(0),[r,n]=a.useState(!1),t=fe();a.useEffect(()=>{n(!0)},[]);const o=[{icon:V,title:"Course Catalog",description:"Browse and search through a comprehensive catalog of courses.",link:"/courses"},{icon:X,title:"Schedule Builder",description:"Create conflict-free timetables with our interactive schedule builder.",link:"/schedule-builder"},{icon:Ns,title:"Degree Auditor",description:"Track your progress towards degree requirements in real-time.",link:"/degree-audit"},{icon:qe,title:"Personalized Recommendations",description:"Get course suggestions tailored to your academic goals and performance.",link:"/course-recommendation"}],d=[{name:"Kunal Sharma",role:"ECE Student",image:tt,text:"CourseWise made my course selection process so much easier. The clash detection feature saved me from a lot of scheduling headaches!"},{name:"Dhruv Dewan",role:"Engineering Student",image:st,text:"The personalized recommendations helped me discover courses I wouldn't have considered otherwise. Highly recommended!"},{name:"Sarthak Srivastava",role:"EVE Student",image:rt,text:"As a EVE student, I love how CourseWise helps me plan my prerequisites and stay on track with my degree requirements."},{name:"Dhruv Rajput",role:"ECE Student",image:it,text:"CourseWise revolutionized how I plan my academic journey. The intelligent course suggestions and conflict detection features are game-changers for students."}];a.useEffect(()=>{const c=setInterval(()=>{i(l=>(l+1)%d.length)},5e3);return()=>clearInterval(c)},[d.length]);const m=()=>{t("/academic-tools")};return e.jsxs("div",{className:"min-h-screen flex flex-col bg-gradient-to-br from-indigo-50 to-purple-50",children:[e.jsx(be,{}),e.jsxs("div",{className:"flex-grow",children:[e.jsxs("section",{className:"relative bg-gradient-to-br from-indigo-600 to-purple-700 text-white pt-20 pb-32 overflow-hidden transition-all duration-1000",children:[e.jsx("div",{className:"absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4xIj48cGF0aCBkPSJNMzYgMzBoLTJWMGgydjMwem0tMiAwSDJ2MmgzMnYtMnptMCAydjI4aDJ2LTI4aC0yem0yLTJ2LTNoLTJ2M2gyem0tMiAwSDB2MmgzNHYtMnoiLz48L2c+PC9nPjwvc3ZnPg==')] opacity-10"}),e.jsx("div",{className:"absolute top-20 left-10 w-64 h-64 bg-purple-500 rounded-full mix-blend-multiply filter blur-3xl opacity-20 animate-blob"}),e.jsx("div",{className:"absolute top-10 right-10 w-72 h-72 bg-indigo-500 rounded-full mix-blend-multiply filter blur-3xl opacity-20 animate-blob animation-delay-2000"}),e.jsx("div",{className:"absolute bottom-10 right-1/3 w-72 h-72 bg-blue-500 rounded-full mix-blend-multiply filter blur-3xl opacity-20 animate-blob animation-delay-4000"}),e.jsx("div",{className:"relative container mx-auto px-4",children:e.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-8",children:[e.jsxs("div",{className:"text-left md:w-1/2 mb-10 md:mb-0",children:[e.jsx(ke,{className:"w-16 h-16 mb-6 animate-bounce"}),e.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-6",children:["Plan Your ",e.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-indigo-200 to-purple-200",children:"Academic Journey"})]}),e.jsx("p",{className:"text-xl text-indigo-100 mb-8 leading-relaxed",children:"Make informed decisions about your course selection with our intelligent recommendation system designed for today's students."}),e.jsx("div",{className:"flex flex-wrap gap-4",children:e.jsxs("button",{onClick:m,className:"group relative overflow-hidden bg-white text-indigo-600 hover:text-white px-8 py-4 rounded-lg text-lg font-bold shadow-xl transition-all duration-300 hover:shadow-2xl hover:scale-105 border-2 border-white",children:[e.jsx("span",{className:"relative z-10",children:"Get Started"}),e.jsx("span",{className:"absolute inset-0 bg-gradient-to-r from-indigo-500 to-purple-600 transform scale-x-0 group-hover:scale-x-100 transition-transform origin-left duration-300"}),e.jsx(ye,{className:"inline-block ml-2 relative z-10 group-hover:translate-x-2 transition-transform duration-300"})]})}),e.jsxs("div",{className:"mt-12 flex items-center gap-6 text-indigo-100/90",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(ie,{className:"w-5 h-5 mr-2"}),e.jsx("span",{children:"200+ Students"})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(V,{className:"w-5 h-5 mr-2"}),e.jsx("span",{children:"100+ Courses"})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx($,{className:"w-5 h-5 mr-2"}),e.jsx("span",{children:"4.5/5 Rating"})]})]})]}),e.jsxs("div",{className:"md:w-1/2 relative",children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:lt}}),e.jsxs("div",{className:"relative w-full h-96",children:[e.jsxs("div",{className:"absolute top-0 right-0 w-72 bg-white rounded-xl shadow-2xl p-4 z-30 transform rotate-3 transition-all duration-500 hover:-translate-y-2 hover:rotate-0 animate-float",children:[e.jsx("div",{className:"bg-indigo-50 rounded-lg p-2 mb-3",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx("div",{className:"flex-shrink-0 mr-3",children:e.jsx("div",{className:"w-10 h-10 rounded-full bg-indigo-500 flex items-center justify-center",children:e.jsx(V,{className:"w-5 h-5 text-white"})})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-indigo-900",children:"Course Recommendations"}),e.jsx("p",{className:"text-xs text-indigo-600",children:"Personalized for your profile"})]})]})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"rounded-lg bg-indigo-100/50 h-6 w-full"}),e.jsx("div",{className:"rounded-lg bg-indigo-100/50 h-6 w-3/4"}),e.jsx("div",{className:"rounded-lg bg-indigo-100/50 h-6 w-5/6"})]})]}),e.jsxs("div",{className:"absolute top-32 left-0 w-64 bg-white rounded-xl shadow-xl p-4 z-20 transform -rotate-6 transition-all duration-500 hover:-translate-y-2 hover:rotate-0",children:[e.jsx("div",{className:"bg-amber-50 rounded-lg p-2 mb-3",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx("div",{className:"flex-shrink-0 mr-3",children:e.jsx("div",{className:"w-10 h-10 rounded-full bg-amber-500 flex items-center justify-center",children:e.jsx($,{className:"w-5 h-5 text-white"})})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-amber-900",children:"Course Reviews"}),e.jsx("p",{className:"text-xs text-amber-600",children:"From verified students"})]})]})}),e.jsx("div",{className:"flex",children:[1,2,3,4,5].map(c=>e.jsx($,{className:"w-5 h-5 text-amber-400",fill:"#FFC107"},c))})]}),e.jsxs("div",{className:"absolute bottom-0 right-20 w-60 bg-white rounded-xl shadow-xl p-4 z-10 transform rotate-6 transition-all duration-500 hover:-translate-y-2 hover:rotate-0",children:[e.jsx("div",{className:"bg-green-50 rounded-lg p-2 mb-3",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx("div",{className:"flex-shrink-0 mr-3",children:e.jsx("div",{className:"w-10 h-10 rounded-full bg-green-500 flex items-center justify-center",children:e.jsx(X,{className:"w-5 h-5 text-white"})})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-green-900",children:"Timetable"}),e.jsx("p",{className:"text-xs text-green-600",children:"Conflict-free scheduling"})]})]})}),e.jsx("div",{className:"grid grid-cols-5 gap-1",children:Array.from({length:15}).map((c,l)=>e.jsx("div",{className:`h-3 rounded-sm ${l%3===0?"bg-green-200":"bg-gray-100"}`},l))})]})]})]})]})}),e.jsx("div",{className:"absolute bottom-0 left-0 right-0",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1440 120",fill:"none",style:{transform:"rotate(180deg)",display:"block"},children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 120L60 110C120 100 240 80 360 70C480 60 600 60 720 70C840 80 960 100 1080 100C1200 100 1320 80 1380 70L1440 60V0H0V120Z",fill:"white"})})})]}),e.jsx("section",{className:"py-16",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-indigo-600 to-purple-600 inline-block",children:"How CourseWise Works"}),e.jsx("p",{className:"text-gray-600 mt-3 max-w-2xl mx-auto",children:"Our platform simplifies academic planning through an intuitive process"})]}),e.jsx("div",{className:"max-w-6xl mx-auto bg-white rounded-2xl shadow-lg border border-gray-100/60 overflow-hidden",children:e.jsx("div",{className:"divide-y divide-gray-100",children:[{title:"Create Profile",description:"Sign up and tell us about your academic interests and goals. We use this information to personalize your experience and provide tailored recommendations.",icon:ie,color:"bg-indigo-100 text-indigo-600",iconBg:"from-indigo-500 to-blue-500"},{title:"Get Recommendations",description:"Receive personalized course suggestions based on your profile, interests, and academic history. Our intelligent system matches you with courses that align with your goals.",icon:Je,color:"bg-purple-100 text-purple-600",iconBg:"from-purple-500 to-indigo-500"},{title:"Plan Schedule",description:"Organize your timetable without conflicts and optimize your learning path. Visualize your weekly schedule and make adjustments to find the perfect balance.",icon:X,color:"bg-green-100 text-green-600",iconBg:"from-green-500 to-emerald-500"}].map((c,l)=>e.jsxs("div",{className:`flex flex-col ${l%2===1?"md:flex-row-reverse":"md:flex-row"} p-6 md:p-8`,children:[e.jsx("div",{className:"md:w-1/3 flex justify-center mb-6 md:mb-0",children:e.jsx("div",{className:`w-36 h-36 rounded-2xl bg-gradient-to-br ${c.iconBg} flex items-center justify-center transform transition-all duration-300 hover:scale-110 shadow-lg`,children:e.jsx(c.icon,{className:"w-16 h-16 text-white"})})}),e.jsxs("div",{className:"md:w-2/3 flex flex-col justify-center md:px-8",children:[e.jsxs("h3",{className:"text-2xl font-bold text-gray-800 mb-4",children:[l+1,". ",c.title]}),e.jsx("p",{className:"text-gray-600 text-lg leading-relaxed",children:c.description})]})]},l))})})]})}),e.jsxs("section",{className:"py-16 relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-indigo-100 rounded-full opacity-40 -mr-32 -mt-32 blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-96 h-96 bg-purple-100 rounded-full opacity-40 -ml-32 -mb-32 blur-3xl"}),e.jsx("div",{className:"absolute top-1/3 left-1/3 w-72 h-72 bg-blue-100 rounded-full opacity-30 blur-3xl"}),e.jsxs("div",{className:"container mx-auto px-6 relative z-10",children:[e.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between mb-10",children:[e.jsxs("div",{className:"md:w-1/2 mb-6 md:mb-0",children:[e.jsx("h2",{className:"text-4xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-indigo-600 to-purple-600 mb-4",children:"Powerful Academic Tools"}),e.jsx("p",{className:"text-gray-600 text-lg max-w-lg",children:"Our suite of intelligent services helps you navigate your academic journey with confidence and clarity."})]}),e.jsx("div",{className:"md:w-1/2 flex justify-end",children:e.jsxs("button",{onClick:()=>t("/academic-tools"),className:`inline-flex items-center px-6 py-3 bg-gradient-to-r from-indigo-600 to-purple-600 text-white font-medium rounded-lg\r shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-105`,children:["Explore All Features",e.jsx(ye,{className:"ml-2 h-5 w-5"})]})})]}),e.jsx("div",{className:"bg-white rounded-2xl shadow-lg border border-gray-100/60 p-6 md:p-8",children:e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:o.map((c,l)=>{const g=c.icon;return e.jsxs("div",{onClick:()=>c.link?t(c.link):t("/academic-tools"),className:`group relative bg-gradient-to-br from-indigo-50/50 to-purple-50/50 p-6 rounded-xl overflow-hidden shadow-md cursor-pointer transform transition-all duration-300 ease-in-out hover:-translate-y-2 hover:shadow-xl border border-gray-100/80 animate-float animation-delay-${l*2e3}`,children:[e.jsx("div",{className:`absolute inset-0 bg-gradient-to-br from-indigo-500/90 to-purple-500/90 \r opacity-0 group-hover:opacity-100 transition-all duration-300`}),e.jsx("div",{className:`absolute top-0 right-0 w-24 h-24 bg-indigo-100/80 rounded-bl-full -mt-6 -mr-6 \r group-hover:bg-white/10 transition-all duration-300`}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("div",{className:`w-14 h-14 rounded-xl mb-4 flex items-center justify-center\r bg-gradient-to-br from-indigo-500 to-purple-600 text-white\r shadow-lg group-hover:scale-110 transition-all duration-300`,children:e.jsx(g,{className:"w-7 h-7"})}),e.jsx("h3",{className:`text-xl font-bold text-gray-800 mb-2 \r group-hover:text-white transition-colors`,children:c.title}),e.jsx("p",{className:`text-gray-600 mb-4\r group-hover:text-white/90 transition-colors`,children:c.description}),e.jsxs("div",{className:`flex items-center text-indigo-600 font-medium\r group-hover:text-white transition-colors`,children:[e.jsx("span",{children:c.link?"Try it now":"Learn more"}),e.jsx(ye,{className:"ml-1 h-4 w-4 group-hover:translate-x-1 transition-transform"})]})]})]},l)})})})]})]}),e.jsxs("section",{className:"py-16 relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiM2MzY2ZjEiIGZpbGwtb3BhY2l0eT0iMC4wNCI+PHBhdGggZD0iTTM2IDM0aDRWMGgtNHYzNHptMCAyNmg0di0yaC00djJ6bTAtMyBoNHYtMmgtNHYyem0wLTNoNHYtMmgtNHYyek0wIDRjMC0yLjIxIDEuNzktNCA0LTRoNTJjMi4yMSAwIDQgMS43OSA0IDR2NTJjMCAyLjIxLTEuNzkgNC00IDRINGMtMi4yMSAwLTQtMS43OS00LTRWNHptNCAwdjUyaDUyVjRINHoiLz48L2c+PC9nPjwvc3ZnPg==')] opacity-5"}),e.jsxs("div",{className:"container mx-auto px-6 relative z-10",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx("h2",{className:"text-3xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-indigo-600 to-purple-600 inline-block mb-4",children:"Why Students Choose CourseWise"}),e.jsx("p",{className:"text-gray-600 max-w-2xl mx-auto",children:"Our platform has helped thousands of students make better academic choices"})]}),e.jsxs("div",{className:"bg-gradient-to-r from-indigo-600 to-purple-700 rounded-2xl shadow-xl overflow-hidden relative",children:[e.jsx("div",{className:"absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4xIj48cGF0aCBkPSJNMzYgMzBoLTJWMGgydjMwem0tMiAwSDJ2MmgzMnYtMnptMCAydjI4aDJ2LTI4aC0yem0yLTJ2LTNoLTJ2M2gyem0tMiAwSDB2MmgzNHYtMnoiLz48L2c+PC9nPjwvc3ZnPg==')] opacity-10"}),e.jsx("div",{className:"absolute top-0 left-0 w-full h-12 bg-gradient-to-b from-white to-transparent opacity-20"}),e.jsxs("div",{className:"px-6 py-12 text-white relative",children:[e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 max-w-5xl mx-auto",children:[{number:"90%",label:"Student Satisfaction",icon:$},{number:"500+",label:"Active Students",icon:ie},{number:"100+",label:"Courses Available",icon:V},{number:"0+",label:"Partner Colleges",icon:ke}].map((c,l)=>e.jsxs("div",{className:"text-center",style:{animationDelay:`${l*200}ms`},children:[e.jsx("div",{className:`w-16 h-16 bg-white/10 rounded-2xl flex items-center justify-center mx-auto mb-4 transform transition-all duration-500 hover:scale-110 hover:bg-white/20 ${l%2===0?"animate-float":"animate-float-delay-2"}`,children:e.jsx(c.icon,{className:"w-8 h-8 text-white"})}),e.jsx("div",{className:"text-4xl font-bold mb-1 animate-pulse-slow",children:c.number}),e.jsx("div",{className:"text-indigo-100",children:c.label})]},l))}),e.jsxs("div",{className:"mt-10 max-w-3xl mx-auto text-center",children:[e.jsx("blockquote",{className:"text-xl italic",children:'"CourseWise has revolutionized how students plan their academic journey, making course selection a strategic decision rather than a guessing game."'}),e.jsxs("div",{className:"mt-4",children:[e.jsx("p",{className:"font-bold",children:"Academic Affairs Office"}),e.jsx("p",{className:"text-indigo-200",children:"Indraprastha Institue of Information & Technology, New Delhi"})]})]})]})]})]})]})]}),e.jsx("footer",{className:"bg-gradient-to-br from-indigo-600 to-purple-600 text-white w-full",children:e.jsxs("div",{className:"container mx-auto px-6 py-8",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8 mb-8",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(V,{className:"w-8 h-8"}),e.jsx("span",{className:"text-2xl font-bold",children:"CourseWise"})]}),e.jsxs("div",{className:"text-indigo-200",children:[e.jsx("p",{className:"mb-2",children:"Empowering students with:"}),e.jsx("div",{className:"flex items-center gap-2 mb-1",children:e.jsx("span",{children:"100+ Available Courses"})}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsx("span",{children:"90% Student Satisfaction"})})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold mb-4",children:"Contact Us"}),e.jsx("div",{className:"text-indigo-200",children:e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(_s,{className:"w-4 h-4"}),e.jsx("span",{children:"support@coursewise.com"})]})})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold mb-4",children:"Quick Links"}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(Q,{to:"/",className:"text-indigo-200 hover:text-white transition-colors",children:"Home"}),e.jsx(Q,{to:"/academic-tools",className:"text-indigo-200 hover:text-white transition-colors",children:"Academic Tools"}),e.jsx(Q,{to:"/login",className:"text-indigo-200 hover:text-white transition-colors",children:"Login"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold mb-4",children:"Features"}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(Q,{to:"/course-recommendation",className:"text-indigo-200 hover:text-white transition-colors",children:"Course Recommendations"}),e.jsx(Q,{to:"/course-reviews",className:"text-indigo-200 hover:text-white transition-colors",children:"Course Reviews"}),e.jsx(Q,{to:"/tt-clash-checker",className:"text-indigo-200 hover:text-white transition-colors",children:"Clash Checker"})]})]})]}),e.jsx("div",{className:"border-t border-indigo-500/30 pt-8 text-center text-indigo-200",children:e.jsxs("p",{children:["© ",new Date().getFullYear()," CourseWise. All rights reserved."]})})]})})]})}var Ae=new Map,he=new WeakMap,Be=0,dt=void 0;function ut(s){return s?(he.has(s)||(Be+=1,he.set(s,Be.toString())),he.get(s)):"0"}function mt(s){return Object.keys(s).sort().filter(i=>s[i]!==void 0).map(i=>`${i}_${i==="root"?ut(s.root):s[i]}`).toString()}function ht(s){const i=mt(s);let r=Ae.get(i);if(!r){const n=new Map;let t;const o=new IntersectionObserver(d=>{d.forEach(m=>{var c;const l=m.isIntersecting&&t.some(g=>m.intersectionRatio>=g);s.trackVisibility&&typeof m.isVisible>"u"&&(m.isVisible=l),(c=n.get(m.target))==null||c.forEach(g=>{g(l,m)})})},s);t=o.thresholds||(Array.isArray(s.threshold)?s.threshold:[s.threshold||0]),r={id:i,observer:o,elements:n},Ae.set(i,r)}return r}function xt(s,i,r={},n=dt){if(typeof window.IntersectionObserver>"u"&&n!==void 0){const c=s.getBoundingClientRect();return i(n,{isIntersecting:n,target:s,intersectionRatio:typeof r.threshold=="number"?r.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),()=>{}}const{id:t,observer:o,elements:d}=ht(r),m=d.get(s)||[];return d.has(s)||d.set(s,m),m.push(i),o.observe(s),function(){m.splice(m.indexOf(i),1),m.length===0&&(d.delete(s),o.unobserve(s)),d.size===0&&(o.disconnect(),Ae.delete(t))}}function gt({threshold:s,delay:i,trackVisibility:r,rootMargin:n,root:t,triggerOnce:o,skip:d,initialInView:m,fallbackInView:c,onChange:l}={}){var g;const[w,f]=a.useState(null),E=a.useRef(l),[S,M]=a.useState({inView:!!m,entry:void 0});E.current=l,a.useEffect(()=>{if(d||!w)return;let b;return b=xt(w,(P,v)=>{M({inView:P,entry:v}),E.current&&E.current(P,v),v.isIntersecting&&o&&b&&(b(),b=void 0)},{root:t,rootMargin:n,threshold:s,trackVisibility:r,delay:i},c),()=>{b&&b()}},[Array.isArray(s)?s.toString():s,w,t,n,o,d,r,c,i]);const W=(g=S.entry)==null?void 0:g.target,k=a.useRef(void 0);!w&&W&&!o&&!d&&k.current!==W&&(k.current=W,M({inView:!!m,entry:void 0}));const C=[f,S.inView,S.entry];return C.ref=C[0],C.inView=C[1],C.entry=C[2],C}const pt=rs` 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } `,ft=[{title:"Course Insights",description:"Comprehensive course reviews and ratings from fellow students",icon:$,color:"yellow.400"},{title:"Intelligent Planning",description:"Smart timetable planning tools to optimize your academic journey",icon:Is,color:"purple.400"},{title:"Academic Tracking",description:"Track your progress and CGPA with intuitive visualization tools",icon:ks,color:"blue.400"},{title:"Community Powered",description:"Join thousands of students sharing knowledge and experiences",icon:ie,color:"green.400"}],bt=[{title:"Course Discovery",description:"Find the perfect courses based on your interests, career goals, and academic requirements.",icon:zs,color:"blue.500"},{title:"Smart Scheduling",description:"Automatically generate optimized timetables that fit your preferences and avoid conflicts.",icon:X,color:"green.500"},{title:"Performance Analytics",description:"Visualize your academic progress with detailed charts and predictive insights.",icon:qe,color:"purple.500"},{title:"Time Management",description:"Track study hours, deadlines, and assignments to stay organized and productive.",icon:pe,color:"orange.500"},{title:"Achievement System",description:"Earn badges and recognition for academic milestones and consistent performance.",icon:As,color:"yellow.500"},{title:"Peer Reviews",description:"Share and read authentic course reviews from students who have taken the classes.",icon:Es,color:"teal.500"}],se=Ee.div,jt=()=>{const s=_("linear-gradient(135deg, #f9f7ff 0%, #f1eaff 25%, #ede9fe 50%, #f1eaff 75%, #f9f7ff 100%)","linear-gradient(135deg, #170b3b 0%, #2d1f69 50%, #170b3b 100%)"),i=_("white","gray.800"),r=_("gray.600","gray.400"),n=_("purple.100","purple.700"),t=_("gray.800","gray.200"),o=_("purple.600","purple.300"),d=is(),[m,c]=gt({threshold:.1,triggerOnce:!0});return a.useEffect(()=>{c&&d.start("visible")},[d,c]),e.jsxs(e.Fragment,{children:[e.jsx(be,{}),e.jsxs(x,{position:"relative",overflow:"hidden",minH:"100vh",bgGradient:s,pt:20,pb:20,_before:{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:_(`url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%238b5cf6' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3C/g%3E%3C/svg%3E")`,`url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c4b5fd' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3C/g%3E%3C/svg%3E")`),zIndex:0},children:[e.jsx(x,{position:"absolute",top:"10%",right:"10%",w:"400px",h:"400px",borderRadius:"full",bgGradient:"radial(circle, purple.400 0%, purple.500 30%, transparent 70%)",opacity:.1,zIndex:0,filter:"blur(60px)"}),e.jsx(x,{position:"absolute",bottom:"15%",left:"5%",w:"350px",h:"350px",borderRadius:"full",bgGradient:"radial(circle, blue.300 0%, purple.400 50%, transparent 70%)",opacity:.08,zIndex:0,filter:"blur(70px)"}),e.jsx(x,{position:"absolute",top:"40%",left:"20%",w:"250px",h:"250px",borderRadius:"full",bgGradient:"radial(circle, teal.300 0%, purple.300 40%, transparent 70%)",opacity:.05,zIndex:0,filter:"blur(50px)"}),e.jsxs(He,{maxW:"container.xl",position:"relative",zIndex:1,children:[e.jsx(x,{mb:20,children:e.jsx(se,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:e.jsxs(A,{direction:{base:"column",lg:"row"},align:"center",justify:"space-between",gap:10,children:[e.jsxs(j,{align:{base:"center",lg:"flex-start"},spacing:6,flex:"1",textAlign:{base:"center",lg:"left"},children:[e.jsx(B,{px:3,py:1,colorScheme:"purple",variant:"solid",borderRadius:"full",fontSize:"sm",children:"For Students, By Students"}),e.jsx(U,{as:"h1",size:"3xl",fontWeight:"bold",bgGradient:"linear(to-r, purple.400, blue.500)",bgClip:"text",lineHeight:"1.2",children:"CourseWise"}),e.jsx(u,{fontSize:"xl",color:r,maxW:"600px",children:"Your intelligent companion for navigating college courses, simplifying academic planning, and making informed decisions about your education."})]}),e.jsx(x,{flex:"1",maxW:{base:"300px",lg:"450px"},animation:`${pt} 3s ease-in-out infinite`,children:e.jsx(x,{position:"relative",borderRadius:"2xl",overflow:"hidden",boxShadow:"2xl",_before:{content:'""',position:"absolute",top:"-4px",left:"-4px",right:"-4px",bottom:"-4px",borderRadius:"2xl",padding:"4px",background:"linear-gradient(45deg, purple.400, blue.500, teal.300)",mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",maskComposite:"xor",zIndex:-1},children:e.jsxs(x,{bgColor:"purple.50",borderRadius:"2xl",p:8,textAlign:"center",height:"300px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",children:[e.jsx(I,{as:V,w:24,h:24,color:"purple.400",mb:4}),e.jsx(u,{fontSize:"xl",fontWeight:"bold",color:o,children:"Elevating Education"})]})})})]})})}),e.jsx(x,{mb:20,children:e.jsx(se,{ref:m,initial:"hidden",animate:d,variants:{visible:{opacity:1,y:0,transition:{duration:.6,staggerChildren:.2}},hidden:{opacity:0,y:20}},children:e.jsxs(j,{spacing:12,align:"stretch",children:[e.jsxs(j,{spacing:3,textAlign:"center",children:[e.jsx(U,{as:"h2",size:"xl",fontWeight:"bold",color:t,children:"Designed to Empower"}),e.jsx(u,{color:r,maxW:"600px",mx:"auto",children:"CourseWise combines powerful features with intuitive design to transform your academic planning"})]}),e.jsx(oe,{columns:{base:1,md:2,lg:4},spacing:8,children:ft.map((l,g)=>e.jsx(se,{variants:{visible:{opacity:1,y:0,transition:{delay:g*.1}},hidden:{opacity:0,y:20}},children:e.jsxs(j,{p:6,h:"full",bg:i,borderRadius:"xl",boxShadow:"md",border:"1px",borderColor:n,spacing:4,align:"flex-start",transition:"all 0.3s",_hover:{transform:"translateY(-5px)",boxShadow:"lg",borderColor:l.color},children:[e.jsx(A,{align:"center",justify:"center",bg:`${l.color}20`,color:l.color,p:3,borderRadius:"lg",children:e.jsx(I,{as:l.icon,boxSize:6})}),e.jsx(U,{as:"h3",size:"md",color:t,children:l.title}),e.jsx(u,{color:r,fontSize:"sm",children:l.description})]})},l.title))})]})})}),e.jsx(x,{children:e.jsx(se,{initial:"hidden",animate:d,variants:{visible:{opacity:1,transition:{staggerChildren:.2}},hidden:{opacity:0}},children:e.jsxs(j,{spacing:12,align:"stretch",children:[e.jsxs(j,{spacing:3,textAlign:"center",children:[e.jsx(U,{as:"h2",size:"xl",fontWeight:"bold",color:t,children:"What We Offer"}),e.jsx(u,{color:r,maxW:"600px",mx:"auto",children:"Comprehensive tools and resources designed to enhance every aspect of your academic experience"})]}),e.jsx(oe,{columns:{base:1,md:2,lg:3},spacing:8,children:bt.map((l,g)=>e.jsx(se,{variants:{visible:{opacity:1,y:0,transition:{delay:g*.1}},hidden:{opacity:0,y:20}},children:e.jsxs(j,{spacing:4,p:6,bg:i,borderRadius:"xl",boxShadow:"md",border:"1px",borderColor:n,transition:"all 0.3s",_hover:{transform:"translateY(-5px)",boxShadow:"xl",borderColor:l.color},h:"full",align:"flex-start",children:[e.jsx(A,{align:"center",justify:"center",bg:`${l.color}20`,color:l.color,p:3,borderRadius:"lg",children:e.jsx(I,{as:l.icon,boxSize:6})}),e.jsxs(j,{spacing:2,align:"flex-start",children:[e.jsx(U,{as:"h3",size:"md",fontWeight:"bold",color:t,children:l.title}),e.jsx(u,{fontSize:"sm",color:r,textAlign:"left",children:l.description})]})]})},l.title))}),e.jsx(x,{bg:i,p:8,borderRadius:"2xl",border:"2px",borderColor:n,textAlign:"center",position:"relative",overflow:"hidden",_before:{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,bgGradient:"linear(45deg, purple.400, blue.500, teal.300)",opacity:.05,zIndex:0},children:e.jsxs(j,{spacing:4,position:"relative",zIndex:1,children:[e.jsx(U,{as:"h3",size:"lg",color:o,children:"Why Choose CourseWise?"}),e.jsx(u,{color:r,maxW:"800px",mx:"auto",children:"We combine cutting-edge technology with student-centric design to create a platform that truly understands your academic needs. From course selection to graduation planning, CourseWise is your trusted companion throughout your educational journey."}),e.jsxs(D,{spacing:8,justify:"center",wrap:"wrap",children:[e.jsxs(j,{spacing:1,children:[e.jsx(u,{fontSize:"2xl",fontWeight:"bold",color:o,children:"10k+"}),e.jsx(u,{fontSize:"sm",color:r,children:"Course Reviews"})]}),e.jsxs(j,{spacing:1,children:[e.jsx(u,{fontSize:"2xl",fontWeight:"bold",color:o,children:"5k+"}),e.jsx(u,{fontSize:"sm",color:r,children:"Active Students"})]}),e.jsxs(j,{spacing:1,children:[e.jsx(u,{fontSize:"2xl",fontWeight:"bold",color:o,children:"90%"}),e.jsx(u,{fontSize:"sm",color:r,children:"User Satisfaction"})]})]})]})})]})})})]}),e.jsx(x,{mt:20,py:6,textAlign:"center",color:r,children:e.jsxs(u,{children:["© ",new Date().getFullYear()," CourseWise. All rights reserved."]})})]})]})};class vt{async createFeedback(i){const{data:{user:r}}=await y.auth.getUser();if(!r)throw new Error("User not authenticated");const n={userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,cookieEnabled:navigator.cookieEnabled,onLine:navigator.onLine},t={screenWidth:window.screen.width,screenHeight:window.screen.height,windowWidth:window.innerWidth,windowHeight:window.innerHeight,pixelRatio:window.devicePixelRatio},{data:o,error:d}=await y.from("user_feedback").insert({...i,user_id:r.id,page_url:i.page_url||window.location.href,browser_info:n,device_info:t}).select("*").single();if(d)throw d;return o}async updateFeedback(i,r){const{data:{user:n}}=await y.auth.getUser();if(!n)throw new Error("User not authenticated");const{data:t,error:o}=await y.from("user_feedback").update({...r,updated_at:new Date().toISOString()}).eq("id",i).eq("user_id",n.id).eq("status","open").select("*").single();if(o)throw o;return t}async uploadScreenshot(i){const{data:{user:r}}=await y.auth.getUser();if(!r)throw new Error("User not authenticated");const n=i.name.split(".").pop(),t=`${r.id}/${Date.now()}.${n}`,{data:o,error:d}=await y.storage.from("feedback-screenshots").upload(t,i);if(d)throw d;const{data:m}=y.storage.from("feedback-screenshots").getPublicUrl(t);return m.publicUrl}async deleteScreenshot(i){try{const r=i.split("/"),n=r[r.length-1],o=`${r[r.length-2]}/${n}`;await y.storage.from("feedback-screenshots").remove([o])}catch(r){console.error("Error deleting screenshot:",r)}}async getUserFeedback(i){try{const{data:r,error:n}=await y.from("user_feedback").select("*").eq("user_id",i).order("created_at",{ascending:!1});if(n)throw n;return r||[]}catch(r){throw console.error("Error in getUserFeedback:",r),r}}async getAllFeedback(){try{const{data:i,error:r}=await y.from("user_feedback").select(` *, user:users!user_feedback_user_id_fkey( full_name, email, profile_picture_url ), admin:users!user_feedback_admin_user_id_fkey( full_name, email ) `).order("created_at",{ascending:!1});if(r)throw r;return i||[]}catch(i){throw console.error("Error in getAllFeedback:",i),i}}async updateFeedbackStatus(i,r,n){const{data:{user:t}}=await y.auth.getUser();if(!t)throw new Error("User not authenticated");const o={status:r,admin_user_id:t.id,updated_at:new Date().toISOString()};n&&(o.admin_response=n),r==="resolved"&&(o.resolved_at=new Date().toISOString());const{data:d,error:m}=await y.from("user_feedback").update(o).eq("id",i).select(` *, user:users!user_feedback_user_id_fkey( full_name, email, profile_picture_url ), admin:users!user_feedback_admin_user_id_fkey( full_name, email ) `).single();if(m)throw m;return d}async deleteFeedback(i){const{error:r}=await y.from("user_feedback").delete().eq("id",i);if(r)throw r}}const K=new vt,wt=Ee(x),yt=[{value:"ui_ux",label:"UI/UX Improvement",icon:$,color:"purple.500"},{value:"theme",label:"Theme & Design",icon:Rs,color:"pink.500"},{value:"bug_report",label:"Bug Report",icon:Ls,color:"red.500"},{value:"feature_request",label:"Feature Request",icon:Ms,color:"yellow.500"},{value:"general",label:"General Feedback",icon:ae,color:"blue.500"}],St=[{value:"low",label:"Low Priority",icon:Ps,color:"gray.500"},{value:"medium",label:"Medium Priority",icon:$e,color:"blue.500"},{value:"high",label:"High Priority",icon:Fe,color:"orange.500"},{value:"critical",label:"Critical",icon:Fe,color:"red.500"}],Ct=({isOpen:s,onClose:i,onSuccess:r,editFeedback:n})=>{const[t,o]=a.useState({feedback_type:"general",category:"medium",title:"",description:""}),[d,m]=a.useState(!1),[c,l]=a.useState(null),[g,w]=a.useState(null),[f,E]=a.useState(!1),[S,M]=a.useState(null),W=a.useRef(null),k=ne(),C=_("white","gray.800"),b=_("gray.200","gray.600"),P=_("gray.800","gray.200"),v=!!n;a.useEffect(()=>{n?(o({feedback_type:n.feedback_type,category:n.category,title:n.title,description:n.description}),n.screenshot_url&&(M(n.screenshot_url),w(n.screenshot_url))):(o({feedback_type:"general",category:"medium",title:"",description:""}),M(null),w(null),l(null))},[n,s]);const F=p=>{const z=p.target.files?.[0];if(z){if(!z.type.startsWith("image/")){k({title:"Invalid File Type",description:"Please select an image file (PNG, JPG, GIF, etc.)",status:"error",duration:3e3,isClosable:!0});return}if(z.size>5*1024*1024){k({title:"File Too Large",description:"Please select an image smaller than 5MB",status:"error",duration:3e3,isClosable:!0});return}l(z);const Y=URL.createObjectURL(z);w(Y),M(null)}},O=()=>{l(null),M(null),g&&!S&&URL.revokeObjectURL(g),w(null),W.current&&(W.current.value="")},R=async p=>{if(p.preventDefault(),!t.title.trim()||!t.description.trim()){k({title:"Missing Information",description:"Please fill in all required fields.",status:"warning",duration:3e3,isClosable:!0});return}m(!0);try{let z=S||"";if(c){E(!0);try{v&&S&&await K.deleteScreenshot(S),z=await K.uploadScreenshot(c)}catch(Y){console.error("Error uploading screenshot:",Y),k({title:"Upload Failed",description:"Failed to upload screenshot, but feedback will be submitted without it.",status:"warning",duration:3e3,isClosable:!0}),z=S||""}finally{E(!1)}}v?(await K.updateFeedback(n.id,{...t,screenshot_url:z||void 0}),k({title:"Feedback Updated!",description:"Your feedback has been successfully updated.",status:"success",duration:5e3,isClosable:!0})):(await K.createFeedback({...t,screenshot_url:z||void 0}),k({title:"Feedback Submitted!",description:c?"Thank you for your feedback and screenshot. We'll review it soon.":"Thank you for your feedback. We'll review it soon.",status:"success",duration:5e3,isClosable:!0})),v||(o({feedback_type:"general",category:"medium",title:"",description:""}),O()),r?.(),i()}catch(z){console.error("Error submitting feedback:",z),k({title:v?"Update Failed":"Submission Failed",description:v?"Unable to update feedback. Please try again.":"Unable to submit feedback. Please try again.",status:"error",duration:5e3,isClosable:!0})}finally{m(!1)}},H=()=>{g&&!S&&URL.revokeObjectURL(g),i()};return e.jsxs(os,{isOpen:s,onClose:H,size:"xl",children:[e.jsx(Ce,{backdropFilter:"blur(10px)"}),e.jsxs(as,{maxW:"600px",mx:4,children:[e.jsx(Ne,{children:e.jsxs(D,{spacing:3,children:[e.jsx(I,{as:v?ze:ae,color:"purple.500",boxSize:5}),e.jsx(u,{children:v?"Edit Feedback":"Share Your Feedback"})]})}),e.jsx(ns,{}),e.jsx(_e,{pb:6,children:e.jsx("form",{onSubmit:R,children:e.jsxs(j,{spacing:6,align:"stretch",children:[v&&e.jsx(x,{bg:"blue.50",border:"1px solid",borderColor:"blue.200",borderRadius:"md",p:3,children:e.jsx(u,{fontSize:"sm",color:"blue.700",children:"📝 You're editing your feedback. Only open feedback can be edited."})}),e.jsxs(J,{isRequired:!0,children:[e.jsx(q,{fontWeight:"semibold",children:"Feedback Type"}),e.jsx(oe,{columns:{base:1,md:2},spacing:3,children:yt.map(p=>e.jsx(wt,{whileHover:{scale:1.02},whileTap:{scale:.98},children:e.jsx(x,{p:4,border:"2px solid",borderColor:t.feedback_type===p.value?p.color:b,borderRadius:"lg",cursor:"pointer",transition:"all 0.2s",bg:t.feedback_type===p.value?`${p.color}10`:C,onClick:()=>o({...t,feedback_type:p.value}),_hover:{borderColor:p.color},children:e.jsxs(D,{spacing:3,children:[e.jsx(I,{as:p.icon,color:p.color,boxSize:5}),e.jsx(u,{fontSize:"sm",fontWeight:"medium",color:P,children:p.label})]})})},p.value))})]}),e.jsxs(J,{isRequired:!0,children:[e.jsx(q,{fontWeight:"semibold",children:"Priority Level"}),e.jsx(D,{spacing:3,flexWrap:"wrap",children:St.map(p=>e.jsx(G,{size:"sm",variant:t.category===p.value?"solid":"outline",colorScheme:t.category===p.value?p.color.split(".")[0]:"gray",onClick:()=>o({...t,category:p.value}),leftIcon:e.jsx(I,{as:p.icon,boxSize:4}),children:p.label},p.value))})]}),e.jsxs(J,{isRequired:!0,children:[e.jsx(q,{fontWeight:"semibold",children:"Title"}),e.jsx(xe,{value:t.title,onChange:p=>o({...t,title:p.target.value}),placeholder:"Brief summary of your feedback",focusBorderColor:"purple.400"})]}),e.jsxs(J,{isRequired:!0,children:[e.jsx(q,{fontWeight:"semibold",children:"Description"}),e.jsx(ls,{value:t.description,onChange:p=>o({...t,description:p.target.value}),placeholder:"Please provide detailed information about your feedback, including steps to reproduce (for bugs) or specific suggestions for improvements.",rows:5,focusBorderColor:"purple.400",resize:"vertical"})]}),e.jsxs(J,{children:[e.jsx(q,{fontWeight:"semibold",children:e.jsxs(D,{spacing:2,children:[e.jsx(I,{as:Ts,boxSize:4}),e.jsx(u,{children:"Screenshot (Optional)"})]})}),e.jsx(cs,{mb:3,children:v?"Update the screenshot to replace the existing one, or remove it entirely.":"Add a screenshot to help us understand your feedback better. Max 5MB."}),g?e.jsxs(x,{position:"relative",display:"inline-block",children:[e.jsx(Ie,{src:g,alt:"Screenshot preview",maxH:"200px",borderRadius:"lg",border:"1px solid",borderColor:b}),e.jsx(Ze,{"aria-label":"Remove image",icon:e.jsx(I,{as:Ws}),size:"sm",colorScheme:"red",position:"absolute",top:2,right:2,onClick:O}),S&&!c&&e.jsx(u,{fontSize:"xs",color:"blue.500",mt:2,children:"Current screenshot (click X to remove)"})]}):e.jsxs(x,{border:"2px dashed",borderColor:b,borderRadius:"lg",p:6,textAlign:"center",cursor:"pointer",transition:"all 0.2s",_hover:{borderColor:"purple.400",bg:"purple.50"},onClick:()=>W.current?.click(),children:[e.jsxs(j,{spacing:3,children:[e.jsx(I,{as:Ds,boxSize:8,color:"gray.400"}),e.jsxs(j,{spacing:1,children:[e.jsx(u,{fontWeight:"medium",color:P,children:"Click to upload screenshot"}),e.jsx(u,{fontSize:"sm",color:"gray.500",children:"PNG, JPG, GIF up to 5MB"})]})]}),e.jsx(xe,{ref:W,type:"file",accept:"image/*",onChange:F,display:"none"})]})]}),e.jsxs(D,{justify:"flex-end",spacing:3,pt:4,children:[e.jsx(G,{variant:"ghost",onClick:H,children:"Cancel"}),e.jsx(G,{type:"submit",colorScheme:"purple",isLoading:d||f,loadingText:f?"Uploading...":v?"Updating...":"Submitting...",leftIcon:e.jsx(I,{as:v?ze:ae,boxSize:4}),children:v?"Update Feedback":"Submit Feedback"})]})]})})})]})]})},Nt=Ee(x),_t=()=>{const[s,i]=a.useState([]),[r,n]=a.useState(!0),[t,o]=a.useState(null),[d,m]=a.useState(null),[c,l]=a.useState(null),{session:g}=Re(),w=ne(),{isOpen:f,onOpen:E,onClose:S}=ve(),{isOpen:M,onOpen:W,onClose:k}=ve(),{isOpen:C,onOpen:b,onClose:P}=ve(),v=a.useRef(null),F=a.useRef(null),O=_("gray.800","gray.200"),R=_("gray.600","gray.400"),H=_("gray.200","gray.600");a.useEffect(()=>{g?.user?.id&&p()},[g]);const p=async()=>{try{n(!0);const h=await K.getUserFeedback(g.user.id);i(h)}catch(h){console.error("Error loading feedback:",h),w({title:"Error",description:"Failed to load your feedback",status:"error",duration:3e3,isClosable:!0})}finally{n(!1)}},z=h=>{o(h),W()},Y=h=>{m(h),E()},T=async()=>{if(c)try{await K.deleteFeedback(c),w({title:"Feedback Deleted",description:"Your feedback has been successfully deleted.",status:"success",duration:3e3,isClosable:!0}),p()}catch{w({title:"Error",description:"Failed to delete feedback",status:"error",duration:3e3,isClosable:!0})}finally{P(),l(null)}},Le=h=>{switch(h){case"open":return"blue";case"in_progress":return"yellow";case"resolved":return"green";case"closed":return"gray";default:return"gray"}},Me=h=>{switch(h){case"ui_ux":return"purple";case"theme":return"pink";case"bug_report":return"red";case"feature_request":return"yellow";case"general":return"blue";default:return"gray"}},Pe=h=>{switch(h){case"critical":return"red";case"high":return"orange";case"medium":return"blue";case"low":return"gray";default:return"gray"}};return r?e.jsx(Se,{py:12,children:e.jsxs(j,{spacing:4,children:[e.jsx(ee,{size:"lg",color:"purple.500"}),e.jsx(u,{color:R,children:"Loading your feedback..."})]})}):e.jsxs(x,{children:[e.jsxs(j,{spacing:6,align:"stretch",children:[e.jsxs(A,{justify:"space-between",align:"center",flexWrap:"wrap",gap:4,children:[e.jsxs(x,{children:[e.jsx(U,{size:"lg",color:O,children:"My Feedback"}),e.jsx(u,{color:R,mt:1,children:"Track your submitted feedback and suggestions"})]}),e.jsx(G,{leftIcon:e.jsx(I,{as:Ge}),colorScheme:"purple",onClick:E,children:"New Feedback"})]}),e.jsxs(D,{spacing:4,flexWrap:"wrap",children:[e.jsxs(B,{colorScheme:"blue",px:3,py:1,borderRadius:"full",children:["Total: ",s.length]}),e.jsxs(B,{colorScheme:"green",px:3,py:1,borderRadius:"full",children:["Resolved: ",s.filter(h=>h.status==="resolved").length]}),e.jsxs(B,{colorScheme:"yellow",px:3,py:1,borderRadius:"full",children:["In Progress: ",s.filter(h=>h.status==="in_progress").length]}),e.jsxs(B,{colorScheme:"gray",px:3,py:1,borderRadius:"full",children:["Open: ",s.filter(h=>h.status==="open").length]})]}),s.length===0?e.jsx(te,{children:e.jsx(re,{children:e.jsx(Se,{py:12,children:e.jsxs(j,{spacing:4,children:[e.jsx(I,{as:ae,boxSize:12,color:"gray.400"}),e.jsxs(j,{spacing:2,children:[e.jsx(u,{fontSize:"lg",fontWeight:"medium",color:O,children:"No feedback submitted yet"}),e.jsx(u,{color:R,textAlign:"center",children:"Share your thoughts to help us improve CourseWise"})]}),e.jsx(G,{leftIcon:e.jsx(I,{as:Ge}),colorScheme:"purple",onClick:E,children:"Submit Your First Feedback"})]})})})}):e.jsx(j,{spacing:4,align:"stretch",children:s.map((h,Qe)=>e.jsx(Nt,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:Qe*.1},children:e.jsx(te,{border:"1px",borderColor:H,_hover:{boxShadow:"md",borderColor:"purple.300"},transition:"all 0.2s",children:e.jsx(re,{children:e.jsxs(j,{align:"stretch",spacing:4,children:[e.jsxs(A,{justify:"space-between",align:"start",flexWrap:"wrap",gap:3,children:[e.jsxs(j,{align:"stretch",spacing:2,flex:1,children:[e.jsxs(D,{spacing:3,flexWrap:"wrap",children:[e.jsx(B,{colorScheme:Me(h.feedback_type),variant:"solid",children:h.feedback_type.replace("_"," ").toUpperCase()}),e.jsx(B,{colorScheme:Pe(h.category),variant:"outline",children:h.category.toUpperCase()}),e.jsxs(B,{colorScheme:Le(h.status),variant:"subtle",children:[e.jsx(I,{as:h.status==="open"?pe:h.status==="in_progress"?Fs:h.status==="resolved"?$e:pe,boxSize:3,mr:1}),h.status.replace("_"," ")]})]}),e.jsx(u,{fontSize:"lg",fontWeight:"semibold",color:O,children:h.title})]}),e.jsxs(D,{spacing:2,flexShrink:0,children:[e.jsx(G,{size:"sm",variant:"ghost",colorScheme:"blue",leftIcon:e.jsx(I,{as:Gs}),onClick:()=>z(h),children:"View"}),h.status==="open"&&e.jsxs(e.Fragment,{children:[e.jsx(G,{size:"sm",variant:"ghost",colorScheme:"green",leftIcon:e.jsx(I,{as:ze}),onClick:()=>Y(h),children:"Edit"}),e.jsx(G,{size:"sm",variant:"ghost",colorScheme:"red",leftIcon:e.jsx(I,{as:Us}),onClick:()=>{l(h.id),b()},children:"Delete"})]})]})]}),e.jsx(u,{color:R,noOfLines:2,children:h.description}),h.screenshot_url&&e.jsxs(x,{children:[e.jsx(u,{fontSize:"sm",fontWeight:"medium",color:O,mb:2,children:"Screenshot:"}),e.jsx(Ie,{src:h.screenshot_url,alt:"Feedback screenshot",maxH:"100px",borderRadius:"md",border:"1px solid",borderColor:H,cursor:"pointer",onClick:()=>window.open(h.screenshot_url,"_blank")})]}),e.jsxs(D,{justify:"space-between",pt:2,borderTop:"1px",borderColor:H,children:[e.jsxs(D,{spacing:2,children:[e.jsx(I,{as:X,boxSize:4,color:R}),e.jsxs(u,{fontSize:"sm",color:R,children:["Submitted ",new Date(h.created_at).toLocaleDateString()]})]}),h.updated_at!==h.created_at&&e.jsxs(u,{fontSize:"sm",color:R,children:["Updated ",new Date(h.updated_at).toLocaleDateString()]})]})]})})})},h.id))})]}),e.jsx(Ct,{isOpen:f,onClose:()=>{S(),m(null)},onSuccess:()=>{p(),m(null)},editFeedback:d||void 0}),t&&e.jsx(Te,{isOpen:M,onClose:k,leastDestructiveRef:F,children:e.jsx(Ce,{children:e.jsxs(De,{maxW:"2xl",children:[e.jsx(Ne,{children:e.jsxs(D,{spacing:3,children:[e.jsx(B,{colorScheme:Me(t.feedback_type),variant:"solid",children:t.feedback_type.replace("_"," ").toUpperCase()}),e.jsx(B,{colorScheme:Pe(t.category),variant:"outline",children:t.category.toUpperCase()}),e.jsx(B,{colorScheme:Le(t.status),variant:"subtle",children:t.status.replace("_"," ")})]})}),e.jsx(_e,{children:e.jsxs(j,{align:"stretch",spacing:4,children:[e.jsxs(x,{children:[e.jsx(u,{fontSize:"lg",fontWeight:"semibold",mb:2,children:t.title}),e.jsx(u,{color:R,whiteSpace:"pre-wrap",children:t.description})]}),t.screenshot_url&&e.jsxs(x,{children:[e.jsx(u,{fontSize:"sm",fontWeight:"medium",color:O,mb:2,children:"Screenshot:"}),e.jsx(Ie,{src:t.screenshot_url,alt:"Feedback screenshot",maxH:"300px",borderRadius:"md",border:"1px solid",borderColor:H,cursor:"pointer",onClick:()=>window.open(t.screenshot_url,"_blank")})]}),t.admin_response&&e.jsxs(x,{bg:"green.50",p:4,borderRadius:"md",border:"1px solid",borderColor:"green.200",children:[e.jsx(u,{fontSize:"sm",fontWeight:"medium",color:"green.800",mb:2,children:"Admin Response:"}),e.jsx(u,{color:"green.700",whiteSpace:"pre-wrap",children:t.admin_response})]}),e.jsxs(D,{justify:"space-between",pt:2,borderTop:"1px",borderColor:H,children:[e.jsxs(u,{fontSize:"sm",color:R,children:["Submitted: ",new Date(t.created_at).toLocaleString()]}),t.updated_at!==t.created_at&&e.jsxs(u,{fontSize:"sm",color:R,children:["Updated: ",new Date(t.updated_at).toLocaleString()]})]})]})}),e.jsx(We,{children:e.jsx(G,{ref:F,onClick:k,children:"Close"})})]})})}),e.jsx(Te,{isOpen:C,onClose:P,leastDestructiveRef:v,children:e.jsx(Ce,{children:e.jsxs(De,{children:[e.jsx(Ne,{children:"Delete Feedback"}),e.jsx(_e,{children:"Are you sure you want to delete this feedback? This action cannot be undone."}),e.jsxs(We,{children:[e.jsx(G,{ref:v,onClick:P,children:"Cancel"}),e.jsx(G,{colorScheme:"red",onClick:T,ml:3,children:"Delete"})]})]})})})]})},It=s=>s?s.includes("googleusercontent.com")?`https://images.weserv.nl/?url=${encodeURIComponent(s)}&default=404`:s:"",kt=()=>{const[s,i]=a.useState(!0),[r,n]=a.useState(null),[t,o]=a.useState([]),[d,m]=a.useState([]),[c,l]=a.useState([]),[g,w]=a.useState(null),{session:f}=Re(),E=Ks();a.useEffect(()=>{f&&(async()=>{try{if(i(!0),!f)throw new Error("No active session");const{data:b,error:P}=await y.from("users").select("*").eq("id",f.user.id).single();if(P)throw console.error("Error fetching user data:",P),P;if(f.user.user_metadata?.avatar_url&&(!b.profile_picture_url||b.profile_picture_url!==f.user.user_metadata.avatar_url)){console.log("Before sync - Profile URL:",b.profile_picture_url),console.log("Google Avatar URL:",f.user.user_metadata.avatar_url);const{error:T}=await y.from("users").update({profile_picture_url:f.user.user_metadata.avatar_url,updated_at:new Date().toISOString()}).eq("id",f.user.id);T?console.error("Error synchronizing Google avatar:",T):(b.profile_picture_url=f.user.user_metadata.avatar_url,console.log("After sync - Updated profile URL:",b.profile_picture_url))}const{data:v,error:F}=await y.from("user_academic_records").select("*").eq("user_id",f.user.id).order("semester_number");F&&console.error("Error fetching academic records:",F);const{data:O,error:R}=await y.from("selected_courses").select("*").eq("user_id",f.user.id);R&&console.error("Error fetching selected courses:",R);const H=O?.map(T=>({...T,course:{uuid:T.course_uuid,course_code:T.course_acronym||T.course_uuid,course_name:"Selected Course",credits:0,dept_acronym:"",description:""}}))||[],{data:p,error:z}=await y.from("user_semester_courses").select("*, courses_iiitd!inner(uuid, course_code, course_name, credits, dept_acronym, description)").eq("user_id",f.user.id).order("semester_number");z&&console.error("Error fetching semester courses:",z);const Y=p?.map(T=>({...T,course:T.courses_iiitd||{uuid:T.course_uuid,course_code:T.course_acronym||"Unknown",course_name:"Unknown Course",credits:0,dept_acronym:"",description:""}}))||[];n(b),o(v||[]),m(Y),l(H),w(b?.current_semester_courses||null)}catch(b){console.error("Error fetching user data:",b),E({title:"Error fetching data",description:b.message||"Could not load user data",status:"error",duration:5e3,isClosable:!0})}finally{i(!1)}})()},[f,E]);const S=r?.semester||r?.current_semester||"-",M=t.reduce((C,b)=>C+(b.completed_credits||0),0),k=(C=>{if(C.length===0)return"0.00";const b=C.reduce((v,F)=>v+F.completed_credits,0);return b===0?"0.00":(C.reduce((v,F)=>v+F.gpa*F.completed_credits,0)/b).toFixed(2)})(t);return e.jsxs(e.Fragment,{children:[e.jsx(be,{}),e.jsx(x,{className:"min-h-screen bg-gradient-to-br from-indigo-50 to-purple-50 pb-16",children:e.jsx(x,{maxW:"1200px",margin:"0 auto",p:[4,6,8],children:e.jsxs(A,{direction:"column",gap:6,children:[e.jsx(x,{className:"bg-gradient-to-r from-indigo-600 to-purple-600 rounded-xl shadow-xl p-8 text-white",children:e.jsxs(A,{direction:["column","row"],justifyContent:"space-between",alignItems:["center","flex-start"],gap:6,children:[e.jsxs(A,{direction:["column","row"],alignItems:"center",gap:6,children:[e.jsxs(x,{children:[e.jsx(ds,{size:"xl",name:r?.full_name||f?.user?.email,src:It(r?.profile_picture_url||f?.user?.user_metadata?.avatar_url),bg:"purple.500",color:"white",shadow:"md",border:"3px solid",borderColor:"white"}),!1]}),e.jsxs(x,{textAlign:["center","left"],children:[e.jsx(U,{size:"lg",className:"font-bold",children:r?.full_name||"Student"}),e.jsx(u,{fontSize:"md",mt:1,className:"opacity-80",children:r?.email||f?.user?.email}),e.jsxs(A,{align:"center",gap:2,mt:3,children:[e.jsx(ke,{size:18,className:"opacity-80"}),e.jsxs(u,{fontSize:"sm",className:"opacity-80",children:[r?.institution||"IIIT Delhi"," ",r?.branch?`• ${r.branch}`:""]})]}),r?.roll_number&&e.jsxs(A,{align:"center",gap:2,mt:1,children:[e.jsx(Bs,{size:18,className:"opacity-80"}),e.jsxs(u,{fontSize:"sm",className:"opacity-80",children:["Roll No: ",r.roll_number]})]})]})]}),e.jsxs(oe,{columns:[2,2,3],spacing:4,minW:["auto","320px"],mt:[4,0],children:[e.jsxs(x,{bg:"whiteAlpha.200",p:3,rounded:"lg",backdropFilter:"blur(4px)",textAlign:"center",children:[e.jsx(u,{fontSize:"sm",className:"opacity-80",children:"Semester"}),e.jsx(u,{fontSize:"xl",fontWeight:"bold",children:S})]}),e.jsxs(x,{bg:"whiteAlpha.200",p:3,rounded:"lg",backdropFilter:"blur(4px)",textAlign:"center",children:[e.jsx(u,{fontSize:"sm",className:"opacity-80",children:"Credits"}),e.jsx(u,{fontSize:"xl",fontWeight:"bold",children:M})]}),e.jsxs(x,{bg:"whiteAlpha.200",p:3,rounded:"lg",backdropFilter:"blur(4px)",textAlign:"center",gridColumn:[null,"span 2","auto"],children:[e.jsx(u,{fontSize:"sm",className:"opacity-80",children:"Cumulative GPA"}),e.jsx(u,{fontSize:"xl",fontWeight:"bold",children:k})]})]})]})}),!s&&e.jsxs(oe,{columns:{base:1,md:2,lg:3},spacing:6,mb:2,children:[e.jsx(te,{overflow:"hidden",variant:"outline",shadow:"md",children:e.jsx(re,{p:0,children:e.jsxs(A,{children:[e.jsx(x,{bg:"purple.50",p:4,display:"flex",alignItems:"center",justifyContent:"center",children:e.jsx(I,{as:Os,boxSize:6,color:"purple.500"})}),e.jsxs(we,{p:4,flex:1,children:[e.jsx(U,{size:"md",fontWeight:"semibold",children:g?.total_courses||0}),e.jsx(u,{fontSize:"sm",color:"gray.500",children:"Current Courses"})]})]})})}),e.jsx(te,{overflow:"hidden",variant:"outline",shadow:"md",children:e.jsx(re,{p:0,children:e.jsxs(A,{children:[e.jsx(x,{bg:"indigo.50",p:4,display:"flex",alignItems:"center",justifyContent:"center",children:e.jsx(I,{as:Hs,boxSize:6,color:"indigo.500"})}),e.jsxs(we,{p:4,flex:1,children:[e.jsx(U,{size:"md",fontWeight:"semibold",children:d.filter(C=>C.status==="completed"&&C.grade!=="F").length}),e.jsx(u,{fontSize:"sm",color:"gray.500",children:"Completed Courses"})]})]})})}),e.jsx(te,{overflow:"hidden",variant:"outline",shadow:"md",children:e.jsx(re,{p:0,children:e.jsxs(A,{children:[e.jsx(x,{bg:"blue.50",p:4,display:"flex",alignItems:"center",justifyContent:"center",children:e.jsx(I,{as:X,boxSize:6,color:"blue.500"})}),e.jsxs(we,{p:4,flex:1,children:[e.jsx(U,{size:"md",fontWeight:"semibold",children:t.length}),e.jsx(u,{fontSize:"sm",color:"gray.500",children:"Semesters Completed"})]})]})})})]}),s?e.jsx(A,{justify:"center",align:"center",h:"400px",children:e.jsx(ee,{size:"xl",color:"purple.500"})}):e.jsxs(us,{colorScheme:"purple",variant:"enclosed",className:"bg-white rounded-xl shadow-lg p-6",children:[e.jsxs(ms,{overflowX:"auto",py:2,className:"flex-nowrap",children:[e.jsxs(le,{className:"flex items-center gap-2 whitespace-nowrap",children:[e.jsx(Zs,{size:18}),e.jsx("span",{children:"Personal Info"})]}),e.jsxs(le,{className:"flex items-center gap-2 whitespace-nowrap",children:[e.jsx(Vs,{size:18}),e.jsx("span",{children:"Academic Records"})]}),e.jsxs(le,{className:"flex items-center gap-2 whitespace-nowrap",children:[e.jsx(V,{size:18}),e.jsx("span",{children:"Course History"})]}),e.jsxs(le,{className:"flex items-center gap-2 whitespace-nowrap",children:[e.jsx(ae,{size:18}),e.jsx("span",{children:"My Feedback"})]})]}),e.jsxs(hs,{children:[e.jsx(ce,{children:e.jsx(js,{userData:r})}),e.jsx(ce,{children:e.jsx(vs,{})}),e.jsx(ce,{children:e.jsx(ws,{})}),e.jsx(ce,{children:e.jsx(_t,{})})]})]})]})})})]})},zt=a.lazy(()=>L(()=>import("./AcademicTools-tj30wEj0.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),At=a.lazy(()=>L(()=>import("./TimetableClashChecker-gskbNvYE.js"),__vite__mapDeps([9,1,2,3,4,5,6,8]))),Et=a.lazy(()=>L(()=>import("./academic-components-DF0R8Z3x.js").then(s=>s.c),__vite__mapDeps([8,1,2,3,4,5,6]))),Rt=a.lazy(()=>L(()=>import("./AddCourse-BTNu-pnI.js"),__vite__mapDeps([10,1,2,3,4,5,6]))),Lt=a.lazy(()=>L(()=>import("./admin-components-DUStTukf.js").then(s=>s.bd),__vite__mapDeps([1,2,3,4,5,6]))),Mt=a.lazy(()=>L(()=>import("./MyCourses-BA9wctPB.js"),__vite__mapDeps([11,1,2,3,4,5,6]))),Pt=a.lazy(()=>L(()=>import("./EditCourse-DeWQqcol.js"),__vite__mapDeps([12,1,2,3,4,5,6]))),Tt=a.lazy(()=>L(()=>import("./UserManagement-pl4YxOXe.js"),__vite__mapDeps([13,1,2,3,4,5,6]))),Dt=a.lazy(()=>L(()=>import("./Settings-BGf6-NRc.js"),__vite__mapDeps([14,1,2,3,4,5,6]))),Oe=a.lazy(()=>L(()=>import("./CourseReviews-CLlzbLuT.js"),__vite__mapDeps([15,1,2,3,4,5,6,8,7]))),Wt=a.lazy(()=>L(()=>import("./AdminFeedbackManagement-DsTd1CAv.js"),__vite__mapDeps([16,1,2,3,4,5,6,8]))),Ft=()=>e.jsx(A,{height:"100vh",align:"center",justify:"center",children:e.jsx(ee,{size:"xl",color:"purple.500"})}),Gt=()=>e.jsx(x,{minH:"100vh",children:e.jsx(a.Suspense,{fallback:e.jsx(Ft,{}),children:e.jsxs(bs,{children:[e.jsx(N,{path:"/",element:e.jsx(ct,{})}),e.jsx(N,{path:"/login",element:e.jsx(at,{})}),e.jsx(N,{path:"/auth/callback",element:e.jsx(nt,{})}),e.jsx(N,{path:"/academic-tools",element:e.jsx(zt,{})}),e.jsx(N,{path:"/about",element:e.jsx(jt,{})}),e.jsx(N,{path:"/dashboard",element:e.jsx(me,{children:e.jsx(kt,{})})}),e.jsx(N,{path:"/academic-tools/course-recommendation",element:e.jsx(me,{children:e.jsx(Et,{})})}),e.jsx(N,{path:"/tt-clash-checker",element:e.jsx(me,{children:e.jsx(At,{})})}),e.jsx(N,{path:"/academic-tools/course-reviews",element:e.jsx(me,{children:e.jsx(Oe,{})})}),e.jsx(N,{path:"/admin/login",element:e.jsx(et,{})}),e.jsx(N,{path:"/admin",element:e.jsx(ge,{to:"/admin/dashboard",replace:!0})}),e.jsx(N,{path:"/admin/dashboard",element:e.jsx(Z,{children:e.jsx(gs,{})})}),e.jsx(N,{path:"/admin/courses/add",element:e.jsx(Z,{children:e.jsx(Rt,{})})}),e.jsx(N,{path:"/admin/courses/bulk-upload",element:e.jsx(Z,{children:e.jsx(Lt,{})})}),e.jsx(N,{path:"/admin/courses/edit/:id",element:e.jsx(Z,{children:e.jsx(Pt,{})})}),e.jsx(N,{path:"/admin/courses/my-courses",element:e.jsx(Z,{children:e.jsx(Mt,{})})}),e.jsx(N,{path:"/admin/user-management",element:e.jsx(Z,{children:e.jsx(Tt,{})})}),e.jsx(N,{path:"/admin/settings",element:e.jsx(Z,{children:e.jsx(Dt,{})})}),e.jsx(N,{path:"/admin/course-reviews",element:e.jsx(Z,{children:e.jsx(Oe,{})})}),e.jsx(N,{path:"/admin/feedback",element:e.jsx(Z,{children:e.jsx(Wt,{})})}),e.jsx(N,{path:"*",element:e.jsx(ge,{to:"/",replace:!0})})]})})}),Ut=()=>e.jsx(e.Fragment,{children:e.jsx(xs,{children:e.jsx(Xs,{clientId:"401380958016-7bbs0p28d1cbro66m8vbrp69gdbc7v1r.apps.googleusercontent.com",children:e.jsx(ys,{children:e.jsx(Qs,{children:e.jsx(Ss,{children:e.jsx(fs,{children:e.jsx(Gt,{})})})})})})})});Js.createRoot(document.getElementById("root")).render(e.jsx(a.StrictMode,{children:e.jsx(Ut,{})}));export{K as f}; //# sourceMappingURL=index-DN1SJQ1D.js.map
Close