exports.id=36,exports.ids=[36],exports.modules={2483:e=>{"use strict";e.exports={username:""}},4470:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>components_Benefits});var s=a(784),r=a(9885);a(4686);var n=a(8e3);let components_FloatingDiv=e=>s.jsx(n.E.div,{initial:{y:-7},animate:{y:7},transition:{repeat:1/0,duration:1,repeatType:"reverse",ease:"easeInOut",type:"spring"},className:"mt-10",children:s.jsx("div",{className:"cursor-pointer",children:s.jsx("div",{className:"mx-3 rounded-3xl flip-card w-[300px] h-[350px]",onMouseEnter:e.flipfunction,onMouseLeave:e.flipfunction,children:(0,s.jsxs)(n.E.div,{className:"flip-card-inner w-[100%] h-[100%] shadow-md shadow-black rounded-2xl",initial:!1,animate:{rotateY:e.isFlipped?180:360},transition:{duration:.3,animationDirection:"normal"},onAnimationComplete:()=>e.setIsAnimating(!1),children:[s.jsx("div",{className:"flex flip-card-front w-[100%] h-[100%] p-4 bg-secondary justify-center items-center rounded-2xl",children:s.jsx("h3",{className:"font-bold text-xl text-center",children:e.title})}),s.jsx("div",{className:"flex flip-card-back w-[100%] h-[100%] p-4 bg-secondary justify-center items-center rounded-2xl",children:s.jsx("p",{className:"text-justify font-thin text-sm",children:e.paragraph})})]})})})}),components_Benefits=()=>{let[e,t]=(0,r.useState)(!1),[a,n]=(0,r.useState)(!1),[l,i]=(0,r.useState)(!1),[o,c]=(0,r.useState)(!1),[d,m]=(0,r.useState)(!1),[h,x]=(0,r.useState)(!1),[u,p]=(0,r.useState)(!1),[b,g]=(0,r.useState)(!1);return s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"bg-primary py-16 px-6",id:"benefits",children:[s.jsx("h1",{className:"text-center text-4xl font-bold",children:"Key Benefits"}),s.jsx("div",{className:"divider divider-secondary"}),(0,s.jsxs)("div",{className:"flex flex-1 flex-row flex-wrap justify-center mt-10",children:[s.jsx(components_FloatingDiv,{flipfunction:function(){a||(t(!e),n(!0))},title:"Enhanced Learning Resources",paragraph:"iLearn's Enhanced Learning Resources provide users with dynamic tools like MCQ generation for interactive quizzes and word lookup for concept clarity, fostering an enriched learning experience. Explore a diverse range of features designed to enhance comprehension and engagement.",isAnimating:a,isFlipped:e,setIsAnimating:n,setIsFlipped:t}),s.jsx(components_FloatingDiv,{flipfunction:function(){o||(i(!l),c(!0))},title:"BookQuest - Intelligent AI",paragraph:"With iLearn's BookQuest - Intelligent AI, users can seamlessly upload books and engage in a transformative learning experience. This innovative feature enables users to pose questions directly to the uploaded text, fostering a personalized and interactive approach to understanding and comprehending the material.",isAnimating:o,isFlipped:l,setIsAnimating:c,setIsFlipped:i}),s.jsx(components_FloatingDiv,{flipfunction:function(){h||(m(!d),x(!0))},title:"Support for Teachers",paragraph:"iLearn assists teachers by generating automated course outlines, chapter objectives, MCQ generation, Case study genetation and much more. This feature streamlines the teaching process, saves time for educators, and ensures that students receive a structured and comprehensive education that covers all necessary topics and concepts. It empowers teachers to provide a more organized and effective learning experience.",isAnimating:h,isFlipped:d,setIsAnimating:x,setIsFlipped:m}),s.jsx(components_FloatingDiv,{flipfunction:function(){b||(p(!u),g(!0))},title:"User-Friendly",paragraph:"iLearn is designed to be user-friendly, making it easy for students to navigate and find the resources they need. Additionally, the platform employs AI technology to personalize the learning experience for each student, adapting to their individual learning style and pace. This personalization ensures that students remain engaged and motivated to learn, making the educational journey more effective and enjoyable.",isAnimating:b,isFlipped:u,setIsAnimating:g,setIsFlipped:p})]})]})})}},7315:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(9885);let __WEBPACK_DEFAULT_EXPORT__=()=>{let[e,t]=(0,r.useState)({text:"",number:"",answer:"Yes"}),[a,n]=(0,r.useState)(!1),[l,i]=(0,r.useState)({response:""}),handleInputChange=e=>{let{name:a,value:s}=e.target;t(e=>({...e,[a]:s}))},handleFormSubmit=async a=>{a.preventDefault();try{n(!0);let a=await fetch("http://localhost:3000/api/casestudy_generator",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(a.ok){console.log("Form data sent successfully!");let e=await a.json();i(e),t({text:"",number:"",answer:"Yes"})}else console.error("Failed to send form data")}catch(e){console.error("An error occurred while sending form data:",e)}finally{n(!1)}};return s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"p-10 overflow-auto",children:[s.jsx("h1",{className:"text-center text-3xl lg:text-4xl font-extrabold",children:"Case Study Generator"}),s.jsx("div",{className:"divider divider-primary"}),s.jsx("p",{className:"px-10 pt-14 text-justify",children:"Welcome to iLearn's Case Study Generator – your go-to tool for crafting custom case studies effortlessly. Input your topic, specify the desired number of questions, and watch as iLearn generates engaging case studies instantly. Perfect for educators seeking diverse assessments or students aiming to enhance critical thinking. Elevate your learning experience with iLearn's efficient and personalized Case Study Generator."}),s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("form",{name:"casestudygeneratorForm",method:"POST",onSubmit:handleFormSubmit,children:[s.jsx("label",{htmlFor:"text",className:"font-bold",children:"Enter topic or content"}),s.jsx("br",{}),s.jsx("textarea",{name:"text",className:"textarea textarea-bordered mt-4 w-full bg-black mb-4",onChange:handleInputChange,value:e.text,required:!0}),s.jsx("label",{htmlFor:"number",className:"font-bold",children:"Enter number of questions for the case study - Min 1 and Max 5"}),s.jsx("br",{}),s.jsx("input",{type:"number",placeholder:"Type here",name:"number",min:1,max:5,className:"input input-bordered w-full max-w-xs mt-4 bg-black mb-4",onChange:handleInputChange,value:e.number,required:!0}),s.jsx("br",{}),s.jsx("label",{htmlFor:"answer",className:"font-bold",children:"Do you want the Answers?"}),s.jsx("br",{}),(0,s.jsxs)("select",{name:"answer",className:"select select-bordered w-full max-w-xs mt-4 bg-black",onChange:handleInputChange,value:e.answer,children:[s.jsx("option",{value:"Yes",children:"Yes"}),s.jsx("option",{value:"No",children:"No"})]}),s.jsx("br",{}),s.jsx("button",{className:"btn btn-primary w-60 text-white mt-4",children:a?s.jsx("span",{className:"loading loading-spinner loading-xs"}):"Generate Case Study"})]})}),l&&s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("div",{className:"mockup-code",children:[s.jsx("pre",{className:"px-10 pt-2 text-xl font-bold text-center uppercase",children:s.jsx("code",{children:"Your SAQs"})}),s.jsx("div",{className:"divider divider-accent"}),s.jsx("pre",{className:"px-10 pt-2",children:s.jsx("code",{style:{whiteSpace:"pre-wrap"},children:l.response})})]})})]})})}},5050:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(9885);let __WEBPACK_DEFAULT_EXPORT__=()=>{let[e,t]=(0,r.useState)({text:""}),[a,n]=(0,r.useState)(!1),[l,i]=(0,r.useState)({response:""}),handleFormSubmit=async a=>{a.preventDefault();try{n(!0);let a=await fetch("http://localhost:3000/api/chapter_objectives",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(a.ok){console.log("Form data sent successfully!");let e=await a.json();i(e),t({text:""})}else console.error("Failed to send form data")}catch(e){console.error("An error occurred while sending form data:",e)}finally{n(!1)}};return s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"p-10 overflow-auto",children:[s.jsx("h1",{className:"text-center text-3xl lg:text-4xl font-extrabold",children:"Chapter Objectives Generator"}),s.jsx("div",{className:"divider divider-primary"}),s.jsx("p",{className:"px-10 pt-14 text-justify",children:"Welcome to iLearn's Chapter Objectives Generator - effortlessly turn chapter topics into clear and concise objectives. Ideal for educators and curriculum developers, this tool ensures alignment with educational goals, streamlining your curriculum planning. Elevate your design experience with iLearn's Chapter Objectives Generator – simplifying the process of creating focused and impactful chapter objectives."}),s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("form",{name:"chapterobjectives",method:"POST",onSubmit:handleFormSubmit,children:[s.jsx("label",{htmlFor:"text",className:"font-bold",children:"Enter chapter name and subtopics"}),s.jsx("br",{}),s.jsx("textarea",{name:"text",className:"textarea textarea-bordered mt-4 w-full bg-black mb-4",onChange:e=>{let{name:a,value:s}=e.target;t(e=>({...e,[a]:s}))},required:!0}),s.jsx("br",{}),s.jsx("button",{className:"btn btn-primary w-60 text-white mt-4",children:a?s.jsx("span",{className:"loading loading-spinner loading-xs"}):"Generate Chapter Objectives"})]})}),l&&s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("div",{className:"mockup-code",children:[s.jsx("pre",{className:"px-10 pt-2 text-xl font-bold text-center uppercase",children:s.jsx("code",{children:"Chapter Objectives"})}),s.jsx("div",{className:"divider divider-accent"}),s.jsx("pre",{className:"px-10 pt-2",children:s.jsx("code",{style:{whiteSpace:"pre-wrap"},children:l.response})})]})})]})})}},7915:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(9885);let __WEBPACK_DEFAULT_EXPORT__=()=>{let[e,t]=(0,r.useState)(),[a,n]=(0,r.useState)(!1),[l,i]=(0,r.useState)({percentPlagiarism:"",citations:[{title:"",url:""}]}),[o,c]=(0,r.useState)({text:"",file:""}),handleSetContentType=e=>{t(e)},handleInputChange=e=>{let{name:t,value:a}=e.target;c(e=>({...e,[t]:a}))},handleFormSubmit=async t=>{t.preventDefault();try{if(n(!0),"text"===e){let e=await fetch("http://localhost:3000/api/check_plagiarism_text",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(e.ok){console.log("Form data sent successfully!");let t=await e.json();i(t),c({text:"",file:""})}else console.error("Failed to send form data")}if("file"===e){let e=new FormData;e.append("file",t.target.file.files[0]);let a=await fetch("http://localhost:3000/api/check_plagiarism_file",{method:"POST",body:e});if(a.ok){console.log("Form data sent successfully!");let e=await a.json();i(e),c({text:"",file:""})}else console.error("Failed to send form data")}}catch(e){console.error("An error occurred while sending form data:",e)}finally{n(!1)}};return s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"p-10 overflow-auto",children:[s.jsx("h1",{className:"text-center text-3xl lg:text-4xl font-extrabold",children:"Plagiarism Checker"}),s.jsx("div",{className:"divider divider-primary"}),s.jsx("p",{className:"px-10 pt-14 text-justify",children:"Welcome to the cutting-edge Plagiarism Checker feature in iLearn – your guardian against academic integrity breaches. As part of our commitment to fostering a culture of originality, iLearn's Plagiarism Checker ensures the authenticity of your work by meticulously scanning and analyzing content against an extensive database. Whether you're a student striving for academic excellence or an educator overseeing submissions, our advanced plagiarism detection technology provides a comprehensive solution. Safeguard the credibility of your work and uphold the principles of academic honesty with iLearn's Plagiarism Checker – where originality meets innovation."}),(0,s.jsxs)("div",{className:"px-10 pt-14",children:[s.jsx("h3",{className:"font-bold text-lg",children:"Choose Input Type:"}),s.jsx("button",{className:"btn btn-primary w-40 text-white m-5",name:"input",onClick:()=>handleSetContentType("text"),children:"Text"}),s.jsx("button",{className:"btn btn-primary w-40 text-white m-5",name:"file",onClick:()=>handleSetContentType("file"),children:"PDF File"}),"text"===e&&(0,s.jsxs)("form",{name:"plagiarismcheck",method:"POST",onSubmit:handleFormSubmit,children:[s.jsx("label",{htmlFor:"text",className:"font-bold",children:"Enter Content"}),s.jsx("br",{}),s.jsx("textarea",{name:"text",className:"textarea textarea-bordered mt-4 w-full bg-black",onChange:handleInputChange,required:!0}),s.jsx("button",{className:"btn btn-primary w-60 text-white mt-4",children:a?s.jsx("span",{className:"loading loading-spinner loading-xs"}):"Check Plagiarism"})]}),"file"===e&&(0,s.jsxs)("form",{name:"plagiarismcheck",method:"POST",onSubmit:handleFormSubmit,encType:"multipart/form-data",children:[s.jsx("label",{htmlFor:"file",className:"font-bold",children:"Upload PDF File"}),s.jsx("br",{}),s.jsx("input",{type:"file",name:"file",accept:".pdf",className:"file-input file-input-bordered w-full max-w-xs mt-4 bg-black",onChange:handleInputChange,required:!0}),s.jsx("br",{}),s.jsx("button",{className:"btn btn-primary w-60 text-white mt-4",children:a?s.jsx("span",{className:"loading loading-spinner loading-xs"}):"Check Plagiarism"})]})]}),l&&(0,s.jsxs)("div",{className:"px-10 pt-10",children:[s.jsx("div",{className:"divider divider-primary pb-10"}),s.jsx("h2",{className:"text-xl font-bold text-center",children:"Plagiarism Report"}),(0,s.jsxs)("div",{className:"flex justify-around mt-10",children:[(0,s.jsxs)("div",{className:"radial-progress bg-primary text-primary-content border-4 border-primary w-32 h-32",style:{"--value":l.percentPlagiarism},role:"progressbar",children:[l.percentPlagiarism,"%"]}),s.jsx("div",{children:(0,s.jsxs)("div",{className:"mockup-code px-5 max-w-2xl",children:[s.jsx("pre",{"data-prefix":"$",children:s.jsx("code",{children:"Citations:"})}),l.citations.map((e,t)=>s.jsx("pre",{"data-prefix":">",children:s.jsx("code",{style:{whiteSpace:"pre-wrap"},children:`Title: ${e.title}, URL: ${e.url}`})},t))]})})]})]})]})})}},4095:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(9885);let __WEBPACK_DEFAULT_EXPORT__=()=>{let[e,t]=(0,r.useState)({fullName:"",email:"",question:""}),[a,n]=(0,r.useState)(!1),[l,i]=(0,r.useState)(!1),handleInputChange=e=>{let{name:a,value:s}=e.target;t(e=>({...e,[a]:s}))},handleFormSubmit=async a=>{a.preventDefault();try{n(!0);let a=await fetch("https://formsubmit.co/cc1163030be7fa0f68d22835a0ebb62f",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});a.ok?(console.log("Form data sent successfully!"),i(!0),t({fullName:"",email:"",question:""}),setTimeout(()=>{i(!1)},3e3)):console.error("Failed to send form data")}catch(e){console.error("An error occurred while sending form data:",e)}finally{n(!1)}};return s.jsx(s.Fragment,{children:s.jsx("div",{className:"bg-secondary",children:s.jsx("div",{className:"max-w-3xl m-auto py-16 px-10",children:s.jsx("div",{className:"mockup-window border bg-secondary",children:(0,s.jsxs)("div",{className:"flex flex-col content-center align-middle px-4 py-16 bg-grey",children:[s.jsx("h1",{className:"text-xl font-bold text-center mb-10",children:"Having Questions? Contact Us!"}),s.jsx("form",{name:"contactForm",method:"POST",onSubmit:handleFormSubmit,children:(0,s.jsxs)("div",{className:"flex flex-col mx-4",children:[s.jsx("input",{type:"text",placeholder:"Full Name",className:"input w-full my-3 bg-secondary",name:"fullName",value:e.fullName,onChange:handleInputChange,required:!0}),s.jsx("input",{type:"text",placeholder:"Email",className:"input w-full my-3 bg-secondary",name:"email",value:e.email,onChange:handleInputChange,required:!0}),s.jsx("textarea",{className:"textarea w-full my-3 bg-secondary",placeholder:"Your Question",name:"question",value:e.question,onChange:handleInputChange,required:!0}),s.jsx("button",{className:"btn btn-primary my-3 text-white font-bold",type:"submit",children:a?s.jsx("span",{className:"loading loading-spinner loading-xs"}):"Send"})]})}),l&&s.jsx("div",{className:"text-green-500 font-bold text-center mt-4",children:"Message sent successfully!"})]})})})})})}},1840:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(9885);let __WEBPACK_DEFAULT_EXPORT__=()=>{let[e,t]=(0,r.useState)({text:"",number:""}),[a,n]=(0,r.useState)(!1),[l,i]=(0,r.useState)({response:""}),handleInputChange=e=>{let{name:a,value:s}=e.target;t(e=>({...e,[a]:s}))},handleFormSubmit=async a=>{a.preventDefault();try{n(!0);let a=await fetch("http://localhost:3000/api/course_outline",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(a.ok){console.log("Form data sent successfully!");let e=await a.json();i(e),t({text:"",number:""})}else console.error("Failed to send form data")}catch(e){console.error("An error occurred while sending form data:",e)}finally{n(!1)}};return s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"p-10 overflow-auto",children:[s.jsx("h1",{className:"text-center text-3xl lg:text-4xl font-extrabold",children:"Course Outline Generator"}),s.jsx("div",{className:"divider divider-primary"}),s.jsx("p",{className:"px-10 pt-14 text-justify",children:"Welcome to iLearn's Course Outline Generator - effortlessly convert textbook table of contents into a well-structured course outline. Simplify your curriculum planning, ensuring a seamless and organized learning journey. Ideal for educators and curriculum developers, this tool optimizes efficiency, saving you valuable time in course design. Elevate your planning experience with iLearn's Course Outline Generator – where creating a roadmap for impactful learning has never been easier."}),s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("form",{name:"courseoutline",method:"POST",onSubmit:handleFormSubmit,children:[s.jsx("label",{htmlFor:"text",className:"font-bold",children:"Enter table of content from the textbook"}),s.jsx("br",{}),s.jsx("textarea",{name:"text",className:"textarea textarea-bordered mt-4 w-full bg-black mb-4",required:!0,onChange:handleInputChange}),s.jsx("label",{htmlFor:"number",className:"font-bold",children:"Enter number of weeks - Min 1 and Max 10"}),s.jsx("br",{}),s.jsx("input",{type:"number",placeholder:"Type here",name:"number",min:1,max:10,className:"input input-bordered w-full max-w-xs mt-4 bg-black mb-4",required:!0,onChange:handleInputChange}),s.jsx("br",{}),s.jsx("button",{className:"btn btn-primary w-60 text-white mt-4",children:a?s.jsx("span",{className:"loading loading-spinner loading-xs"}):"Generate Course Outline"})]})}),l&&s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("div",{className:"mockup-code",children:[s.jsx("pre",{className:"px-10 pt-2 text-xl font-bold text-center uppercase",children:s.jsx("code",{children:"Course Outline"})}),s.jsx("div",{className:"divider divider-accent"}),s.jsx("pre",{className:"px-10 pt-2",children:s.jsx("code",{style:{whiteSpace:"pre-wrap"},children:l.response})})]})})]})})}},8437:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(9885);let __WEBPACK_DEFAULT_EXPORT__=()=>{let[e,t]=(0,r.useState)(),[a,n]=(0,r.useState)(!1),[l,i]=(0,r.useState)({response:""}),[o,c]=(0,r.useState)({text:"",file:""}),handleSetContentType=e=>{t(e)},handleInputChange=e=>{let{name:t,value:a}=e.target;c(e=>({...e,[t]:a}))},handleFormSubmit=async t=>{t.preventDefault();try{if(n(!0),"text"===e){let e=await fetch("http://localhost:3000/api/check_grammar_text",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(e.ok){console.log("Form data sent successfully!");let t=await e.json();i(t),c({text:"",file:""})}else console.error("Failed to send form data")}if("file"===e){let e=new FormData;e.append("file",t.target.file.files[0]);let a=await fetch("http://localhost:3000/api/check_grammar_file",{method:"POST",body:e});if(a.ok){console.log("Form data sent successfully!");let e=await a.json();i(e),c({text:"",file:""})}else console.error("Failed to send form data")}}catch(e){console.error("An error occurred while sending form data:",e)}finally{n(!1)}};return s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"p-10 overflow-auto",children:[s.jsx("h1",{className:"text-center text-3xl lg:text-4xl font-extrabold",children:"Grammar Checker"}),s.jsx("div",{className:"divider divider-primary"}),s.jsx("p",{className:"px-10 pt-14 text-justify",children:"Welcome to the Grammar Checker feature in iLearn – your key to refining and perfecting written communication. In the pursuit of academic excellence, iLearn's Grammar Checker serves as your vigilant companion, ensuring that your content adheres to grammatical precision and linguistic clarity. Whether you are a student crafting assignments or an educator reviewing submissions, our advanced grammar validation technology meticulously analyzes your text, offering suggestions for improvement. Elevate the quality of your writing, foster effective communication, and embrace the confidence that comes with impeccable grammar. iLearn's Grammar Checker is where linguistic finesse meets educational innovation."}),(0,s.jsxs)("div",{className:"px-10 pt-14",children:[s.jsx("h3",{className:"font-bold text-lg",children:"Choose Input Type:"}),s.jsx("button",{className:"btn btn-primary w-40 text-white m-5",name:"input",onClick:()=>handleSetContentType("text"),children:"Text"}),s.jsx("button",{className:"btn btn-primary w-40 text-white m-5",name:"file",onClick:()=>handleSetContentType("file"),children:"PDF File"}),"text"===e&&(0,s.jsxs)("form",{name:"grammarcheck",method:"POST",onSubmit:handleFormSubmit,children:[s.jsx("label",{htmlFor:"text",className:"font-bold",children:"Enter Content"}),s.jsx("br",{}),s.jsx("textarea",{name:"text",className:"textarea textarea-bordered mt-4 w-full bg-black",onChange:handleInputChange,value:o.text,required:!0}),s.jsx("button",{className:"btn btn-primary w-40 text-white mt-4",children:a?s.jsx("span",{className:"loading loading-spinner loading-xs"}):"Check Grammar"})]}),"file"===e&&(0,s.jsxs)("form",{name:"grammarcheck",method:"POST",onSubmit:handleFormSubmit,encType:"multipart/form-data",children:[s.jsx("label",{htmlFor:"file",className:"font-bold",children:"Upload PDF File"}),s.jsx("br",{}),s.jsx("input",{type:"file",name:"file",accept:".pdf",className:"file-input file-input-bordered w-full max-w-xs mt-4 bg-black",onChange:handleInputChange,required:!0}),s.jsx("br",{}),s.jsx("button",{className:"btn btn-primary w-40 text-white mt-4",children:a?s.jsx("span",{className:"loading loading-spinner loading-xs"}):"Check Grammar"})]})]}),l&&s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("div",{className:"mockup-code",children:[s.jsx("pre",{className:"px-10 pt-2 text-xl font-bold text-center uppercase",children:s.jsx("code",{children:"Grammar Report"})}),s.jsx("div",{className:"divider divider-accent"}),s.jsx("pre",{className:"px-10 pt-2",children:s.jsx("code",{style:{whiteSpace:"pre-wrap"},children:l.response})})]})})]})})}},4781:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784);a(9885);var r=a(1440),n=a.n(r),l=a(9901);let __WEBPACK_DEFAULT_EXPORT__=()=>s.jsx(s.Fragment,{children:s.jsx("div",{className:"hero min-h-screen bg-secondary",children:s.jsx("div",{className:"hero-content text-center",children:(0,s.jsxs)("div",{className:"max-w-lg",children:[(0,s.jsxs)("h1",{className:"text-3xl lg:text-4xl font-extrabold",children:[(0,s.jsxs)("span",{className:"text-transparent bg-clip-text bg-gradient-to-br from-lightblue to-primary",children:["Hello! We're ",""]}),s.jsx("br",{}),s.jsx(l.e,{sequence:["iLearn...",1e3,"Empowering Education",1e3,"Discovering a Smarter Way to Learn",1e3,"Your Path to Academic Success",1e3],wrapper:"span",speed:5,repeat:1/0})]}),s.jsx("p",{className:"py-6 text-lg lg:text-xl",children:"Unlock Your Full Academic Potential"}),s.jsx(n(),{href:"/login",className:"btn btn-primary rounded-full bg-gradient-to-br from-lightblue to-primary border-none",children:"Get Started"})]})})})})},8571:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(9885),n=a(1440),l=a.n(n),i=a(2451),o=a.n(i),c=a(7678),d=a(7114),m=a(2483),h=a.n(m);let __WEBPACK_DEFAULT_EXPORT__=()=>{let[e,t]=(0,r.useState)(""),[a,n]=(0,r.useState)(""),i=(0,d.useRouter)(),[m,x]=(0,r.useState)(""),handleSubmit=async t=>{t.preventDefault();try{let t=await fetch("http://localhost:3000/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:a})});if(t.ok){let e=await t.json();console.log(e),"true"===e.status?(h().username=e.username,"Student"===e.userRole?i.push("/studentMain"):"Teacher"===e.userRole&&i.push("/teacherMain")):x("Login failed. Please check your credentials.")}}catch(e){console.error("An error occurred while sending form data:",e)}};return s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex flex-row-reverse min-h-screen bg-secondary",children:[s.jsx("div",{className:" bg-purple text-white hidden h-screen lg:w-3/5 lg:block",style:{backgroundImage:'url("blob.svg")',backgroundSize:"cover",backgroundRepeat:"no-repeat"},children:(0,s.jsxs)("div",{className:"flex flex-col items-center h-screen align-middle justify-center",children:[s.jsx("label",{className:"text-6xl pt-5",children:s.jsx("b",{children:"Welcome to"})}),s.jsx("label",{className:"text-5xl pt-3",children:"ILearn"}),s.jsx("label",{className:"text-xl pt-10",children:"Login to access your account"}),s.jsx(o(),{src:c.Z,alt:"Picture of the author"})]})}),s.jsx("div",{className:"p-5 bg-black text-white w-screen h-screen lg:w-2/5 flex justify-center items-center",children:(0,s.jsxs)("div",{className:"p-10",children:[(0,s.jsxs)("form",{action:"",onSubmit:handleSubmit,children:[s.jsx("h6",{className:"text-3xl font-bold md:text-5xl",children:"Login"}),s.jsx("p",{className:"text-sm text-accent pt-5 md:text-xl",children:"Enter your account details"}),(0,s.jsxs)("div",{className:"flex flex-col flex-shrink my-12",children:[s.jsx("input",{className:"bg-black mb-2",type:"email",name:"email",value:e,onChange:e=>t(e.target.value),placeholder:"Email",required:!0}),s.jsx("hr",{className:"w-96 border-accent mb-2 "}),s.jsx("input",{className:"bg-black my-3 mb-2",type:"password",name:"password",value:a,onChange:e=>n(e.target.value),placeholder:"Password",required:!0}),s.jsx("hr",{className:"w-96 border-accent mb-8 "}),s.jsx(l(),{rel:"stylesheet",href:"",className:"text-xs text-accent",children:"Forgot Password?"})]}),s.jsx("button",{rel:"stylesheet",className:"border-purple border-2 px-44 bg-purple mt-10 w-96 text-sm text-white rounded-lg py-2 inline-block hover:bg-black",children:"Login"})]}),(0,s.jsxs)("div",{className:"pt-10",children:[s.jsx(l(),{rel:"stylesheet",href:"",className:"text-xs text-accent",children:"Don't have and account?"}),s.jsx(l(),{rel:"stylesheet",href:"/signup",className:"border-2 px-2 ml-5 bg-darkSilver border-darkSilver w-16 text-xs text-accent rounded-lg inline-block hover:bg-black",children:"Signup"})]}),s.jsx("div",{className:"border-red-500 text-red-500 mt-4",children:m})]})})]})})}},4422:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(9885);let __WEBPACK_DEFAULT_EXPORT__=()=>{let[e,t]=(0,r.useState)({text:"",number:"",answer:"Yes"}),[a,n]=(0,r.useState)(!1),[l,i]=(0,r.useState)({response:""}),handleInputChange=e=>{let{name:a,value:s}=e.target;t(e=>({...e,[a]:s}))},handleFormSubmit=async a=>{a.preventDefault();try{n(!0);let a=await fetch("http://localhost:3000/api/mcq_generator",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(a.ok){console.log("Form data sent successfully!");let e=await a.json();i(e),t({text:"",number:"",answer:"Yes"})}else console.error("Failed to send form data")}catch(e){console.error("An error occurred while sending form data:",e)}finally{n(!1)}};return s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"p-10 overflow-auto",children:[s.jsx("h1",{className:"text-center text-3xl lg:text-4xl font-extrabold",children:"Multiple Choice Questions Generator"}),s.jsx("div",{className:"divider divider-primary"}),s.jsx("p",{className:"px-10 pt-14 text-justify",children:"Welcome to the MCQ Generator feature in iLearn - your swift solution for crafting Multiple-Choice Questions. Simply input your topic or paragraph, specify the number of questions you need, and watch as iLearn generates tailored MCQs instantly. Perfect for educators designing assessments or students reinforcing their knowledge. Elevate your learning experience with iLearn's efficient and personalized MCQ Generator."}),s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("form",{name:"mcqgeneratorForm",method:"POST",onSubmit:handleFormSubmit,children:[s.jsx("label",{htmlFor:"text",className:"font-bold",children:"Enter topic or content"}),s.jsx("br",{}),s.jsx("textarea",{name:"text",className:"textarea textarea-bordered mt-4 w-full bg-black mb-4",onChange:handleInputChange,value:e.text,required:!0}),s.jsx("label",{htmlFor:"number",className:"font-bold",children:"Enter number of MCQs to generate - Min 1 and Max 10"}),s.jsx("br",{}),s.jsx("input",{type:"number",placeholder:"Type here",name:"number",min:1,max:10,className:"input input-bordered w-full max-w-xs mt-4 bg-black mb-4",onChange:handleInputChange,value:e.number,required:!0}),s.jsx("br",{}),s.jsx("label",{htmlFor:"answer",className:"font-bold",children:"Do you want the Answers?"}),s.jsx("br",{}),(0,s.jsxs)("select",{name:"answer",className:"select select-bordered w-full max-w-xs mt-4 bg-black",onChange:handleInputChange,value:e.answer,children:[s.jsx("option",{value:"Yes",children:"Yes"}),s.jsx("option",{value:"No",children:"No"})]}),s.jsx("br",{}),s.jsx("button",{className:"btn btn-primary w-40 text-white mt-4",children:a?s.jsx("span",{className:"loading loading-spinner loading-xs"}):"Generate MCQs"})]})}),l&&s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("div",{className:"mockup-code",children:[s.jsx("pre",{className:"px-10 pt-2 text-xl font-bold text-center uppercase",children:s.jsx("code",{children:"Your MCQs"})}),s.jsx("div",{className:"divider divider-accent"}),s.jsx("pre",{className:"px-10 pt-2",children:s.jsx("code",{children:l.response})})]})})]})})}},4722:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784);a(9885);var r=a(1440),n=a.n(r);let __WEBPACK_DEFAULT_EXPORT__=()=>(0,s.jsxs)("div",{className:"navbar bg-primary",children:[(0,s.jsxs)("div",{className:"navbar-start",children:[(0,s.jsxs)("div",{className:"dropdown",children:[s.jsx("label",{tabIndex:0,className:"btn btn-ghost lg:hidden",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h8m-8 6h16"})})}),(0,s.jsxs)("ul",{tabIndex:0,className:"menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-primary rounded-box w-52",children:[s.jsx("li",{children:s.jsx(n(),{href:"/",children:"Home"})}),s.jsx("li",{children:s.jsx(n(),{href:"/features",children:"Features"})}),s.jsx("li",{children:s.jsx(n(),{href:"/about",children:"About Us"})}),s.jsx("li",{children:s.jsx(n(),{href:"/contact",children:"Contact"})})]})]}),s.jsx("a",{className:"btn btn-ghost normal-case text-3xl",children:"iLearn"})]}),s.jsx("div",{className:"navbar-center hidden lg:flex",children:(0,s.jsxs)("ul",{className:"menu menu-horizontal px-1",children:[s.jsx("li",{children:s.jsx(n(),{href:"/",className:"text-lg font-bold",children:"Home"})}),s.jsx("li",{children:s.jsx(n(),{href:"/features",className:"text-lg font-bold",children:"Features"})}),s.jsx("li",{children:s.jsx(n(),{href:"/about",className:"text-lg font-bold",children:"About Us"})}),s.jsx("li",{children:s.jsx(n(),{href:"/contact",className:"text-lg font-bold",children:"Contact"})})]})}),s.jsx("div",{className:"navbar-end",children:s.jsx(n(),{href:"/login",className:"btn btn-secondary font-bold rounded-full hidden lg:inline-flex md:inline-flex",children:"Try Now!"})})]})},5761:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(9885);let __WEBPACK_DEFAULT_EXPORT__=()=>{let[e,t]=(0,r.useState)({text:"",number:"",answer:"Yes"}),[a,n]=(0,r.useState)(!1),[l,i]=(0,r.useState)({response:""}),handleInputChange=e=>{let{name:a,value:s}=e.target;t(e=>({...e,[a]:s}))},handleFormSubmit=async a=>{a.preventDefault();try{n(!0);let a=await fetch("http://localhost:3000/api/saq_generator",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(a.ok){console.log("Form data sent successfully!");let e=await a.json();i(e),t({text:"",number:"",answer:"Yes"})}else console.error("Failed to send form data")}catch(e){console.error("An error occurred while sending form data:",e)}finally{n(!1)}};return s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"p-10 overflow-auto",children:[s.jsx("h1",{className:"text-center text-3xl lg:text-4xl font-extrabold",children:"Short Answer Questions Generator"}),s.jsx("div",{className:"divider divider-primary"}),s.jsx("p",{className:"px-10 pt-14 text-justify",children:"Welcome to iLearn's Short Answer Questions Generator - your effortless solution for crafting targeted short-answer questions. Input your topic or paragraph, specify the number of questions, and watch as iLearn generates precise SAQs instantly. Ideal for educators designing assessments or students reinforcing their understanding. Enhance your learning with iLearn's efficient and personalized SAQ Generator."}),s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("form",{name:"saqgeneratorForm",method:"POST",onSubmit:handleFormSubmit,children:[s.jsx("label",{htmlFor:"text",className:"font-bold",children:"Enter topic or content"}),s.jsx("br",{}),s.jsx("textarea",{name:"text",className:"textarea textarea-bordered mt-4 w-full bg-black mb-4",onChange:handleInputChange,value:e.text,required:!0}),s.jsx("label",{htmlFor:"number",className:"font-bold",children:"Enter number of SAQs to generate - Min 1 and Max 5"}),s.jsx("br",{}),s.jsx("input",{type:"number",placeholder:"Type here",name:"number",min:1,max:5,className:"input input-bordered w-full max-w-xs mt-4 bg-black mb-4",onChange:handleInputChange,value:e.number,required:!0}),s.jsx("br",{}),s.jsx("label",{htmlFor:"answer",className:"font-bold",children:"Do you want the Answers?"}),s.jsx("br",{}),(0,s.jsxs)("select",{name:"answer",className:"select select-bordered w-full max-w-xs mt-4 bg-black",onChange:handleInputChange,value:e.answer,children:[s.jsx("option",{value:"Yes",children:"Yes"}),s.jsx("option",{value:"No",children:"No"})]}),s.jsx("br",{}),s.jsx("button",{className:"btn btn-primary w-40 text-white mt-4",children:a?s.jsx("span",{className:"loading loading-spinner loading-xs"}):"Generate SAQs"})]})}),l&&s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("div",{className:"mockup-code",children:[s.jsx("pre",{className:"px-10 pt-2 text-xl font-bold text-center uppercase",children:s.jsx("code",{children:"Your SAQs"})}),s.jsx("div",{className:"divider divider-accent"}),s.jsx("pre",{className:"px-10 pt-2",children:s.jsx("code",{style:{whiteSpace:"pre-wrap"},children:l.response})})]})})]})})}},6353:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(9885);let __WEBPACK_DEFAULT_EXPORT__=()=>{let[e,t]=(0,r.useState)(!1),[a,n]=(0,r.useState)({response:{response:""}}),[l,i]=(0,r.useState)(""),handleFormSubmit=async e=>{e.preventDefault();try{t(!0);let a=new FormData;a.append("file",e.target.file.files[0]),a.append("text",e.target.text.value),i(e.target.text.value);let s=await fetch("http://localhost:3000/api/searchtb",{method:"POST",body:a});if(s.ok){console.log("Form data sent successfully!");let e=await s.json();n(e)}else console.error("Failed to send form data")}catch(e){console.error("An error occurred while sending form data:",e)}finally{t(!1)}};return s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"p-10 overflow-auto",children:[s.jsx("h1",{className:"text-center text-3xl lg:text-4xl font-extrabold",children:"BookQuest"}),s.jsx("div",{className:"divider divider-primary"}),s.jsx("p",{className:"px-10 pt-14 text-justify",children:"Introducing BookQuest - Embark on a Journey of Knowledge. It's like a cool journey through your textbooks. No more boring searches—here, finding answers is super fun! Dive into this awesome world where learning is not just easy but also really exciting. Make your learning adventure awesome with BookQuest on iLearn today!"}),s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("form",{name:"searchtb",method:"POST",onSubmit:handleFormSubmit,encType:"multipart/form-data",children:[s.jsx("label",{htmlFor:"file",className:"font-bold",children:"Upload PDF File"}),s.jsx("br",{}),s.jsx("input",{type:"file",name:"file",accept:".pdf",className:"file-input file-input-bordered w-full max-w-xs mt-4 bg-black mb-4",required:!0}),s.jsx("br",{}),s.jsx("label",{htmlFor:"text",className:"font-bold",children:"Enter your question"}),s.jsx("br",{}),s.jsx("input",{type:"text",placeholder:"Type here",name:"text",className:"input input-bordered w-full mt-4 bg-black mb-4",required:!0}),s.jsx("br",{}),s.jsx("button",{className:"btn btn-primary w-40 text-white mt-4",children:e?s.jsx("span",{className:"loading loading-spinner loading-xs"}):"Search"})]})}),a&&s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("div",{className:"mockup-code",children:[s.jsx("pre",{className:"px-10 pt-2 text-xl font-bold text-center uppercase",children:s.jsx("code",{children:"iLearn Bot Response"})}),s.jsx("div",{className:"divider divider-accent"}),s.jsx("pre",{className:"px-10 pt-2",children:(0,s.jsxs)("code",{style:{whiteSpace:"pre-wrap"},children:[s.jsx("b",{children:"Question: "}),l]})}),s.jsx("pre",{className:"px-10 pt-2",children:(0,s.jsxs)("code",{style:{whiteSpace:"pre-wrap"},children:[s.jsx("b",{children:"Answer: "}),a.response.response]})})]})})]})})}},9651:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(1440),n=a.n(r);a(9885);var l=a(2483),i=a.n(l);let __WEBPACK_DEFAULT_EXPORT__=e=>s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"drawer lg:drawer-open",children:[s.jsx("input",{id:"my-drawer-2",type:"checkbox",className:"drawer-toggle"}),(0,s.jsxs)("div",{className:"drawer-content flex flex-row bg-black",children:[s.jsx("label",{htmlFor:"my-drawer-2",className:"drawer-button lg:hidden",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"btn btn-secondary drawer-button lg:hidden",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}),s.jsx("div",{className:"flex-grow",children:e.childComponent})]}),(0,s.jsxs)("div",{className:"drawer-side",children:[s.jsx("label",{htmlFor:"my-drawer-2","aria-label":"close sidebar",className:"drawer-overlay"}),(0,s.jsxs)("ul",{className:"menu p-4 w-80 min-h-full bg-purple text-base-content",children:[(0,s.jsxs)("h1",{className:"font-bold text-2xl m-4",children:["Hello ",i().username,"!"]}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/studentMain/checkPlagarism",className:"hover:bg-black",children:"Plagiarism Checker"})}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/studentMain/checkGrammar",className:"hover:bg-black",children:"Grammar Checker"})}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/studentMain/mcq",className:"hover:bg-black",children:"MCQ Generator"})}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/studentMain/wordlookup",className:"hover:bg-black",children:"Word Lookup"})}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/studentMain/searchtb",className:"hover:bg-black",children:"BookQuest"})}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/",className:"hover:bg-black",children:"Sign Out"})})]})]})]})})},3452:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(1440),n=a.n(r),l=a(9885),i=a(2451),o=a.n(i),c=a(7678);let __WEBPACK_DEFAULT_EXPORT__=()=>{let[e,t]=(0,l.useState)(""),[a,r]=(0,l.useState)(""),[i,d]=(0,l.useState)(""),[m,h]=(0,l.useState)(""),[x,u]=(0,l.useState)(""),handleSubmit=async t=>{if(t.preventDefault(),!e||!a||!i){u("Please enter all details.");return}if(!a.endsWith("@gmail.com")){u("Please provide a valid Gmail address.");return}if(!("Student"===m||"Teacher"===m)){u("Please select a valid profession (Student or Teacher).");return}if(i.length<=5){u("Password should be greater than 5 characters.");return}if(!/[A-Z]/.test(i)||!/\d/.test(i)){u("Password must one capital letter and one digit.");return}try{let t=await fetch("http://localhost:3000/api/signup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:e,email:a,password:i,profession:m})}),s=await t.json();s.message&&u(s.message)}catch(e){console.error("An error occurred while sending form data:",e)}};return s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex min-h-screen bg-secondary",children:[s.jsx("div",{className:" bg-purple text-white hidden h-screen lg:w-3/5 lg:block",style:{backgroundImage:'url("blob.svg")',backgroundSize:"cover",backgroundRepeat:"no-repeat"},children:(0,s.jsxs)("div",{className:"flex flex-col items-center h-screen align-middle justify-center",children:[s.jsx("label",{className:"text-6xl pt-5",children:s.jsx("b",{children:"Welcome to"})}),s.jsx("label",{className:"text-5xl pt-3",children:"iLearn"}),s.jsx("label",{className:"text-xl pt-10",children:"Sign up now!"}),s.jsx(o(),{src:c.Z,alt:"Picture of the author"})]})}),s.jsx("div",{className:"p-5 bg-black text-white w-screen h-screen lg:w-2/5 flex justify-center items-center",children:(0,s.jsxs)("div",{className:"p-10",children:[(0,s.jsxs)("form",{onSubmit:handleSubmit,children:[s.jsx("h6",{className:"text-3xl font-bold md:text-5xl",children:"Signup"}),s.jsx("p",{className:"text-sm text-accent pt-5 md:text-xl",children:"Enter your details"}),(0,s.jsxs)("div",{className:"flex flex-col flex-shrink my-12",children:[s.jsx("input",{className:"bg-black mb-2",type:"username",name:"username",value:e,onChange:e=>t(e.target.value),placeholder:"Username",required:!0}),s.jsx("hr",{className:"w-full border-accent mb-6 "}),s.jsx("input",{className:"bg-black mb-2",type:"email",name:"email",value:a,onChange:e=>r(e.target.value),placeholder:"Email",required:!0}),s.jsx("hr",{className:"w-96 border-accent mb-6 "}),s.jsx("input",{className:"bg-black mb-2",type:"password",name:"password",placeholder:"Password",value:i,onChange:e=>d(e.target.value),required:!0}),s.jsx("hr",{className:"w-96 border-accent mb-6"}),(0,s.jsxs)("select",{className:"select w-96 bg-transparent mb-2",value:m,onChange:e=>h(e.target.value),children:[s.jsx("option",{className:"bg-black",selected:!0,children:"Profession"}),s.jsx("option",{className:"bg-black",children:"Student"}),s.jsx("option",{className:"bg-black",children:"Teacher"})]}),s.jsx("hr",{className:"w-96 border-accent mb-6"}),s.jsx(n(),{rel:"stylesheet",href:"",className:"text-xs text-accent",children:"Forgot Password?"})]}),s.jsx("button",{rel:"stylesheet",className:"border-purple border-2 px-44 bg-purple mt-10 w-96 text-sm text-white rounded-lg py-2 inline-block hover:bg-black",children:"Signup"})]}),(0,s.jsxs)("div",{className:"pt-10",children:[s.jsx(n(),{rel:"stylesheet",href:"",className:"text-xs text-accent",children:"Already have an account?"}),s.jsx(n(),{rel:"stylesheet",href:"/login",className:"border-2 px-2 ml-5 bg-darkSilver border-darkSilver w-16 text-xs text-accent rounded-lg inline-block hover:bg-black",children:"Login"})]}),s.jsx("div",{className:"border-red-500 text-red-500 mt-4",children:x})]})})]})})}},9086:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(1440),n=a.n(r);a(9885);var l=a(2483),i=a.n(l);let __WEBPACK_DEFAULT_EXPORT__=e=>s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"drawer lg:drawer-open",children:[s.jsx("input",{id:"my-drawer-2",type:"checkbox",className:"drawer-toggle"}),(0,s.jsxs)("div",{className:"drawer-content flex flex-row bg-black",children:[s.jsx("label",{htmlFor:"my-drawer-2",className:"drawer-button lg:hidden",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"btn btn-secondary drawer-button lg:hidden",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}),s.jsx("div",{className:"flex-grow",children:e.childComponent})]}),(0,s.jsxs)("div",{className:"drawer-side",children:[s.jsx("label",{htmlFor:"my-drawer-2","aria-label":"close sidebar",className:"drawer-overlay"}),(0,s.jsxs)("ul",{className:"menu p-4 w-80 min-h-full bg-purple text-base-content",children:[(0,s.jsxs)("h1",{className:"font-bold text-2xl m-4",children:["Hello ",i().username,"!"]}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/teacherMain/checkPlagiarism",className:"hover:bg-black",children:"Plagiarism Checker"})}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/teacherMain/checkGrammar",className:"hover:bg-black",children:"Grammar Checker"})}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/teacherMain/mcq",className:"hover:bg-black",children:"MCQ Generator"})}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/teacherMain/saq",className:"hover:bg-black",children:"SAQ Generator"})}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/teacherMain/casestudy",className:"hover:bg-black",children:"Case Study Generator"})}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/teacherMain/courseoutlineGenerator",className:"hover:bg-black",children:"Course Outline Generator"})}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/teacherMain/chapterobjectivesGenerator",className:"hover:bg-black",children:"Chapter Objectives Generator"})}),s.jsx("li",{className:"mt-4 text-lg",children:s.jsx(n(),{href:"/",className:"hover:bg-black",children:"Sign Out"})})]})]})]})})},6011:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(784),r=a(9885);let __WEBPACK_DEFAULT_EXPORT__=()=>{let[e,t]=(0,r.useState)({text:""}),[a,n]=(0,r.useState)(""),[l,i]=(0,r.useState)(!1),[o,c]=(0,r.useState)({response:""}),handleFormSubmit=async a=>{a.preventDefault();try{i(!0),n(e.text);let a=await fetch("http://localhost:3000/api/wordlookup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(a.ok){console.log("Form data sent successfully!");let e=await a.json();c(e),t({text:""})}else console.error("Failed to send form data")}catch(e){console.error("An error occurred while sending form data:",e)}finally{i(!1)}};return s.jsx(s.Fragment,{children:(0,s.jsxs)("div",{className:"p-10 overflow-auto",children:[s.jsx("h1",{className:"text-center text-3xl lg:text-4xl font-extrabold",children:"Word Lookup"}),s.jsx("div",{className:"divider divider-primary"}),s.jsx("p",{className:"px-10 pt-14 text-justify",children:"Welcome to iLearn's Word Lookup - effortlessly discover the meaning and usage of any word. Perfect for students and educators, this tool provides instant insights, enhancing your vocabulary in just a click. Elevate your language learning with iLearn's Word Lookup – where understanding words is made simple and efficient."}),s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("form",{name:"wordlookup",method:"POST",onSubmit:handleFormSubmit,children:[s.jsx("label",{htmlFor:"text",className:"font-bold",children:"Enter Word:"}),s.jsx("br",{}),s.jsx("input",{type:"text",placeholder:"Type here",name:"text",className:"input input-bordered w-full max-w-xs mt-4 bg-black mb-4",onChange:e=>{let{name:a,value:s}=e.target;t(e=>({...e,[a]:s}))},value:e.text,required:!0}),s.jsx("br",{}),s.jsx("button",{className:"btn btn-primary w-40 text-white mt-4",children:l?s.jsx("span",{className:"loading loading-spinner loading-xs"}):"Search"})]})}),o&&s.jsx("div",{className:"px-10 pt-14",children:(0,s.jsxs)("div",{className:"mockup-code",children:[s.jsx("pre",{className:"px-10 pt-2 text-xl font-bold text-center uppercase",children:s.jsx("code",{children:a})}),s.jsx("pre",{className:"px-10 pt-2",children:s.jsx("code",{style:{whiteSpace:"pre-wrap"},children:o.response})})]})})]})})}},7678:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});let s={src:"/_next/static/media/V-image.112eedfa.png",height:437,width:473,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAYAAAA1WQxeAAAAy0lEQVR42mOYNnUmEwMSCAuKkZo1Y64RiL144RJmsGB7W6cikBIBsT9+/Djn3t376xiQwa2bd5JePH+x6cf3n4Xfvn57+e3bt/8fPnxcMn3qHF6wgjdv3k799OnTT6Du/1+/ff3/9evXPzdv3Px/+NBRZ7CCL5+/TAQKPgEq+vLhw4ffP3/+/Pvnz59vQBNjQPKMP3/8Sr969erex48f/QeB+w/u/58xY+ZmsO625h7hNSvX6wGZRndu31kElJ904sTJuUB+LgMDAwMA1Cp7HiSY/tQAAAAASUVORK5CYII=",blurWidth:8,blurHeight:7}},7481:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var s=a(8531);let __WEBPACK_DEFAULT_EXPORT__=e=>{let t=(0,s.fillMetadataSegment)(".",e.params,"favicon.ico");return[{type:"image/x-icon",sizes:"16x16",url:t+""}]}},4686:()=>{}};