From d7af4fb6b02f2cdbdda5397497acc977d43b1b3c Mon Sep 17 00:00:00 2001 From: rohan-b-84 <82886259+rohan-b-84@users.noreply.github.com> Date: Tue, 16 Jul 2024 04:41:47 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20metakgp/?= =?UTF-8?q?gyfe@5bcc22fbad0eaff341ebffdcca9a4921632f91f0=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{index-BpuLe6av.js => index-BFpR38BH.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-BpuLe6av.js => index-BFpR38BH.js} (97%) diff --git a/assets/index-BpuLe6av.js b/assets/index-BFpR38BH.js similarity index 97% rename from assets/index-BpuLe6av.js rename to assets/index-BFpR38BH.js index 905fa3d..66b5896 100644 --- a/assets/index-BpuLe6av.js +++ b/assets/index-BFpR38BH.js @@ -216,4 +216,4 @@ to { > * { pointer-events: auto; } -`,_i=16,My=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:l,containerClassName:s})=>{let{toasts:o,handlers:u}=py(n);return H.createElement("div",{style:{position:"fixed",zIndex:9999,top:_i,left:_i,right:_i,bottom:_i,pointerEvents:"none",...l},className:s,onMouseEnter:u.startPause,onMouseLeave:u.endPause},o.map(a=>{let d=a.position||t,f=u.calculateOffset(a,{reverseOrder:e,gutter:r,defaultPosition:t}),y=Ry(d,f);return H.createElement(Ly,{id:a.id,key:a.id,onHeightUpdate:u.updateHeight,className:a.visible?Iy:"",style:y},a.type==="custom"?wl(a.message,a):i?i(a):H.createElement($y,{toast:a,position:d}))}))};function xl(e){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:"spinner",...e,children:E.jsxs("g",{stroke:"white",children:[E.jsxs("circle",{cx:12,cy:12,r:9.5,fill:"none",strokeLinecap:"round",strokeWidth:3,children:[E.jsx("animate",{attributeName:"stroke-dasharray",calcMode:"spline",dur:"1.5s",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1",keyTimes:"0;0.475;0.95;1",repeatCount:"indefinite",values:"0 150;42 150;42 150;42 150"}),E.jsx("animate",{attributeName:"stroke-dashoffset",calcMode:"spline",dur:"1.5s",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1",keyTimes:"0;0.475;0.95;1",repeatCount:"indefinite",values:"0;-16;-59;-59"})]}),E.jsx("animateTransform",{attributeName:"transform",dur:"2s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})})}const Vy=Nu().shape({roll_number:Zr().required("Roll number is required!").matches(/^\d{2}[A-Z]{2}[A-Z0-9]{5}$/,"Please enter valid roll number!"),password:Zr().required("Password is required!")}),Uy=()=>{var s,o;const{register:e,handleSubmit:t,formState:{errors:n,isSubmitting:r}}=jd({resolver:Wd(Vy)}),{setAuth:i}=ti(),l=async u=>{try{const a=new URLSearchParams;a.append("roll_number",u.roll_number),a.append("password",u.password);const d=await fetch(`${vl}/secret-question`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a}),f=await d.json();if(!d.ok){if(ae.error(f.message),d.status==400)return;if(d.status==401&&f.message=="Invalid Password")return i(y=>({...y,currentStep:0}));if(d.status==500)throw new Error(f.message)}sessionStorage.setItem("sessionToken",f.SESSION_TOKEN),sessionStorage.setItem("rollNo",u.roll_number),ae.success("Fetched security question!"),i(y=>({user:{...y.user,password:u.password,rollNo:u.roll_number,securityQuestion:f.SECRET_QUESTION,sessionToken:f.SESSION_TOKEN},currentStep:1}))}catch(a){console.log(a)}};return E.jsx(E.Fragment,{children:E.jsxs("form",{onSubmit:t(l),children:[E.jsxs("div",{className:"input-item",children:[E.jsx("label",{children:"Roll number :"}),E.jsx("input",{type:"text",placeholder:"Roll number for ERP",className:n.roll_number?"input-box input-error":"input-box",...e("roll_number")}),E.jsx("span",{className:"input-error-msg",children:((s=n.roll_number)==null?void 0:s.message)||" "})]}),E.jsxs("div",{className:"input-item",children:[E.jsx("label",{children:"Password :"}),E.jsx("input",{type:"password",placeholder:"Password for ERP login",className:n.password?"input-box input-error":"input-box",...e("password")}),E.jsx("span",{className:"input-error-msg",children:((o=n.password)==null?void 0:o.message)||" "})]}),E.jsx("button",{type:"submit",className:"submit-button",disabled:r,children:r?E.jsx(xl,{}):"Get security question"})]})})},By=Nu().shape({securityAnswer:Zr().required("Security answer is required!"),otp:Zr().optional()}),Qy=()=>{var M,h;const{register:e,handleSubmit:t,getValues:n,trigger:r,formState:{errors:i}}=jd({resolver:Wd(By)}),{user:l,setAuth:s}=ti(),[o,u]=H.useState(!1),[a,d]=H.useState(!1),[f,y]=H.useState(!1),x=async()=>{if(!await r("securityAnswer"))return;const m=n("securityAnswer"),w=new URLSearchParams;w.append("roll_number",l.rollNo),w.append("password",l.password),w.append("secret_answer",m);try{d(!0);const k=await fetch(`${vl}/request-otp`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","Session-Token":l.sessionToken},body:w.toString()}),F=await k.json();if(!k.ok){if(ae.error(F.message),k.status==400)return;if(k.status==401&&(F.message=="Invalid Password"||F.message=="Session isn't alive. PLease login again."))return s(O=>({...O,currentStep:0}));if(k.status==500)throw new Error(F.message);return}s(O=>({...O,user:{...O.user,securityAnswer:m}})),u(!0),ae.success(F.message)}catch(k){console.log(k),u(!1)}finally{d(!1)}},S=async()=>{const c=n("otp");if(!c||c.length!=6)return ae.error("Invalid OTP Length");const m=new URLSearchParams;m.append("roll_number",l.rollNo),m.append("password",l.password),m.append("secret_answer",l.securityAnswer),m.append("otp",c);try{y(!0);const w=await fetch(`${vl}/login`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","Session-Token":l.sessionToken},body:m.toString()}),k=await w.json();if(!w.ok){if(ae.error(k.message),w.status==400)return;if(w.status==401&&(k.message=="Invalid Password"||k.message=="Session isn't alive. PLease login again."))return s(F=>({...F,currentStep:0}));if(k.message=="Invalid OTP")return s(F=>({...F,currentStep:1}));if(w.status==500)throw new Error(k.message)}sessionStorage.setItem("ssoToken",k.ssoToken),s(F=>({...F,currentStep:2,user:{...F.user,ssoToken:k.ssoToken}})),ae.success("Successfully logged in to ERP!")}catch(w){console.error(w)}finally{y(!1)}},C=async()=>{o?S():x()};return E.jsxs("form",{className:"login-form",onSubmit:t(C),children:[E.jsxs("div",{className:"input-item",children:[E.jsxs("label",{children:[l.securityQuestion||" "," :"]}),E.jsx("input",{type:"password",placeholder:"Enter your answer",className:i.securityAnswer?"input-box input-error":"input-box",...e("securityAnswer")}),E.jsx("span",{className:"input-error-msg",children:((M=i.securityAnswer)==null?void 0:M.message)||" "})]}),E.jsxs("div",{className:"input-item",children:[E.jsx("label",{children:"Enter OTP :"}),E.jsx("input",{type:"text",placeholder:"Enter OTP sent to email",className:i.otp?"input-box input-error":"input-box",...e("otp",{required:o,disabled:!o}),style:o?{cursor:"text"}:{cursor:"not-allowed"}}),E.jsx("span",{className:"input-error-msg",children:((h=i.otp)==null?void 0:h.message)||" "})]}),E.jsx("div",{children:E.jsx("button",{className:"submit-button",type:"submit",disabled:a||f,children:a||f?E.jsx(xl,{}):o?"Login":"Send OTP"})})]})},Hy=()=>{const{user:e,logout:t}=ti(),[n,r]=H.useState(!1),[i,l]=H.useState(!1),s=async o=>{const u=new URLSearchParams;u.append("roll_number",e.rollNo),o=="breadth"?r(!0):l(!0);try{const a=await fetch(`${vl}/elective/${o}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","SSO-Token":e.ssoToken},body:u.toString()});if(!a.ok){const S=await a.json();ae.error(S.message),a.status==401&&S.message=="Session isn't alive. PLease login again."&&t();return}let d=`${e.rollNo}_${o}.xlsx`;const f=await a.blob(),y=window.URL.createObjectURL(f),x=document.createElement("a");x.href=y,x.download=d,document.body.appendChild(x),x.click(),x.remove()}catch(a){ae.error(`Error fetching ${o} electives!`),console.error("Error fetching breadth electives:",a)}finally{o=="breadth"?r(!1):l(!1)}};return E.jsxs("div",{className:"electives-container",children:[E.jsx("h2",{children:"Download Electives"}),E.jsx("p",{children:"Below are the depth and breadth electives available for you for subject registration"}),E.jsxs("div",{className:"electives",children:[E.jsx("button",{className:"download-button",onClick:()=>s("breadth"),disabled:n,children:n?E.jsx(xl,{}):"Download Breadth"}),E.jsx("button",{className:"download-button",onClick:()=>s("depth"),disabled:i,children:i?E.jsx(xl,{}):"Download Depth"})]})]})},Wy=()=>E.jsx("h2",{children:"Oops! Looks like your electives freaked out! Try logging again :)"}),Ky=()=>{const{currentStep:e,user:t}=ti();return e==2&&t.sessionToken&&t.ssoToken?E.jsx(Hy,{}):e==1&&t.sessionToken&&t.securityQuestion?E.jsx(Qy,{}):e==0?E.jsx(Uy,{}):E.jsx(Wy,{})};let Yy=[{position:[10,15],color:"0 0 400px 140px rgba(0, 133, 255, 1)"},{position:[10,90],color:"0 0 100px 100px rgba(0, 255, 102, 0.72)"},{position:[40,40],color:"0 0 150px 100px #FFD447"},{position:[100,10],color:"0 0 250px 150px rgba(204, 0, 255, 0.75)"},{position:[80,90],color:"0 0 200px 80px rgba(204, 0, 255, 1)"}];const Gy=()=>E.jsx("div",{className:"circle-container",children:Yy.map((e,t)=>E.jsx("div",{className:"circle",style:{top:`${e.position[0]}%`,left:`${e.position[1]}%`,boxShadow:e.color}},t))}),Zy="/assets/hero-img-CTflh2c3.png",Xy=({closeModal:e})=>E.jsx("div",{className:"modal-overlay",children:E.jsxs("div",{className:"modal-content",children:[E.jsx("button",{className:"close-button",onClick:()=>e(!1),children:E.jsx("svg",{fill:"none",viewBox:"0 0 15 15",height:"1em",width:"1em",className:"close-button-icon",children:E.jsx("path",{fill:"white",fillRule:"evenodd",d:"M11.782 4.032a.575.575 0 10-.813-.814L7.5 6.687 4.032 3.218a.575.575 0 00-.814.814L6.687 7.5l-3.469 3.468a.575.575 0 00.814.814L7.5 8.313l3.469 3.469a.575.575 0 00.813-.814L8.313 7.5l3.469-3.468z",clipRule:"evenodd"})})}),E.jsx("h2",{children:"MetaKGP - GYFE"}),E.jsx("p",{children:"GYFE simplifies course selection by providing available depth and breadth electives for the upcoming semester."}),E.jsx("h4",{children:"How to get your electives?"}),E.jsxs("ol",{children:[E.jsx("li",{children:"Enter your roll number and password for ERP login"}),E.jsx("li",{children:"Enter answer for security question and OTP"}),E.jsx("li",{children:"Choose depth or breadth and this will download available depth and breadth electives as excel sheets."})]})]})}),qy=()=>{const[e,t]=H.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsxs("main",{children:[E.jsx(My,{position:"bottom-center"}),E.jsx(Gy,{}),E.jsxs("div",{id:"wrapper",children:[E.jsxs("div",{className:"wrapper-item",children:[E.jsxs("div",{id:"wrapped",children:[E.jsx(F0,{}),E.jsx(Ky,{})]}),E.jsx(O0,{openModal:t})]}),E.jsx("aside",{children:E.jsx("img",{src:Zy,alt:"."})})]})]}),e&&E.jsx(Xy,{closeModal:t})]})};_s.createRoot(document.getElementById("root")).render(E.jsx(Ue.StrictMode,{children:E.jsx(N0,{children:E.jsx(qy,{})})})); +`,_i=16,My=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:l,containerClassName:s})=>{let{toasts:o,handlers:u}=py(n);return H.createElement("div",{style:{position:"fixed",zIndex:9999,top:_i,left:_i,right:_i,bottom:_i,pointerEvents:"none",...l},className:s,onMouseEnter:u.startPause,onMouseLeave:u.endPause},o.map(a=>{let d=a.position||t,f=u.calculateOffset(a,{reverseOrder:e,gutter:r,defaultPosition:t}),y=Ry(d,f);return H.createElement(Ly,{id:a.id,key:a.id,onHeightUpdate:u.updateHeight,className:a.visible?Iy:"",style:y},a.type==="custom"?wl(a.message,a):i?i(a):H.createElement($y,{toast:a,position:d}))}))};function xl(e){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:"spinner",...e,children:E.jsxs("g",{stroke:"white",children:[E.jsxs("circle",{cx:12,cy:12,r:9.5,fill:"none",strokeLinecap:"round",strokeWidth:3,children:[E.jsx("animate",{attributeName:"stroke-dasharray",calcMode:"spline",dur:"1.5s",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1",keyTimes:"0;0.475;0.95;1",repeatCount:"indefinite",values:"0 150;42 150;42 150;42 150"}),E.jsx("animate",{attributeName:"stroke-dashoffset",calcMode:"spline",dur:"1.5s",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1",keyTimes:"0;0.475;0.95;1",repeatCount:"indefinite",values:"0;-16;-59;-59"})]}),E.jsx("animateTransform",{attributeName:"transform",dur:"2s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})})}const Vy=Nu().shape({roll_number:Zr().required("Roll number is required!").matches(/^\d{2}[A-Z]{2}[A-Z0-9]{5}$/,"Please enter valid roll number!"),password:Zr().required("Password is required!")}),Uy=()=>{var s,o;const{register:e,handleSubmit:t,formState:{errors:n,isSubmitting:r}}=jd({resolver:Wd(Vy)}),{setAuth:i}=ti(),l=async u=>{try{const a=new URLSearchParams;a.append("roll_number",u.roll_number),a.append("password",u.password);const d=await fetch(`${vl}/secret-question`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a}),f=await d.json();if(!d.ok){if(ae.error(f.message),d.status==400)return;if(d.status==401&&f.message=="Invalid Password")return i(y=>({...y,currentStep:0}));if(d.status==500)throw new Error(f.message)}sessionStorage.setItem("sessionToken",f.SESSION_TOKEN),sessionStorage.setItem("rollNo",u.roll_number),ae.success("Fetched security question!"),i(y=>({user:{...y.user,password:u.password,rollNo:u.roll_number,securityQuestion:f.SECRET_QUESTION,sessionToken:f.SESSION_TOKEN},currentStep:1}))}catch(a){console.log(a)}};return E.jsx(E.Fragment,{children:E.jsxs("form",{onSubmit:t(l),children:[E.jsxs("div",{className:"input-item",children:[E.jsx("label",{children:"Roll number :"}),E.jsx("input",{type:"text",placeholder:"Roll number for ERP",className:n.roll_number?"input-box input-error":"input-box",...e("roll_number")}),E.jsx("span",{className:"input-error-msg",children:((s=n.roll_number)==null?void 0:s.message)||" "})]}),E.jsxs("div",{className:"input-item",children:[E.jsx("label",{children:"Password :"}),E.jsx("input",{type:"password",placeholder:"Password for ERP login",className:n.password?"input-box input-error":"input-box",...e("password")}),E.jsx("span",{className:"input-error-msg",children:((o=n.password)==null?void 0:o.message)||" "})]}),E.jsx("button",{type:"submit",className:"submit-button",disabled:r,children:r?E.jsx(xl,{}):"Get security question"})]})})},By=Nu().shape({securityAnswer:Zr().required("Security answer is required!"),otp:Zr().optional()}),Qy=()=>{var M,h;const{register:e,handleSubmit:t,getValues:n,trigger:r,formState:{errors:i}}=jd({resolver:Wd(By)}),{user:l,setAuth:s}=ti(),[o,u]=H.useState(!1),[a,d]=H.useState(!1),[f,y]=H.useState(!1),x=async()=>{if(!await r("securityAnswer"))return;const m=n("securityAnswer"),w=new URLSearchParams;w.append("roll_number",l.rollNo),w.append("password",l.password),w.append("secret_answer",m);try{d(!0);const k=await fetch(`${vl}/request-otp`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","Session-Token":l.sessionToken},body:w.toString()}),F=await k.json();if(!k.ok){if(ae.error(F.message),k.status==400)return;if(k.status==401){if(F.message=="Invalid Password")return s(O=>({...O,currentStep:0}));if(F.message=="Invalid Security Question Answer")return}if(k.status==500)throw new Error(F.message);return}s(O=>({...O,user:{...O.user,securityAnswer:m}})),u(!0),ae.success(F.message)}catch(k){console.log(k),u(!1)}finally{d(!1)}},S=async()=>{const c=n("otp");if(!c||c.length!=6)return ae.error("Invalid OTP Length");const m=new URLSearchParams;m.append("roll_number",l.rollNo),m.append("password",l.password),m.append("secret_answer",l.securityAnswer),m.append("otp",c);try{y(!0);const w=await fetch(`${vl}/login`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","Session-Token":l.sessionToken},body:m.toString()}),k=await w.json();if(!w.ok){if(ae.error(k.message),w.status==400)return;if(w.status==401&&(k.message=="Invalid Password"||k.message=="Session isn't alive. PLease login again."))return s(F=>({...F,currentStep:0}));if(k.message=="Invalid OTP")return s(F=>({...F,currentStep:1}));if(w.status==500)throw new Error(k.message)}sessionStorage.setItem("ssoToken",k.ssoToken),s(F=>({...F,currentStep:2,user:{...F.user,ssoToken:k.ssoToken}})),ae.success("Successfully logged in to ERP!")}catch(w){console.error(w)}finally{y(!1)}},C=async()=>{o?S():x()};return E.jsxs("form",{className:"login-form",onSubmit:t(C),children:[E.jsxs("div",{className:"input-item",children:[E.jsxs("label",{children:[l.securityQuestion||" "," :"]}),E.jsx("input",{type:"password",placeholder:"Enter your answer",className:i.securityAnswer?"input-box input-error":"input-box",...e("securityAnswer")}),E.jsx("span",{className:"input-error-msg",children:((M=i.securityAnswer)==null?void 0:M.message)||" "})]}),E.jsxs("div",{className:"input-item",children:[E.jsx("label",{children:"Enter OTP :"}),E.jsx("input",{type:"text",placeholder:"Enter OTP sent to email",className:i.otp?"input-box input-error":"input-box",...e("otp",{required:o,disabled:!o}),style:o?{cursor:"text"}:{cursor:"not-allowed"}}),E.jsx("span",{className:"input-error-msg",children:((h=i.otp)==null?void 0:h.message)||" "})]}),E.jsx("div",{children:E.jsx("button",{className:"submit-button",type:"submit",disabled:a||f,children:a||f?E.jsx(xl,{}):o?"Login":"Send OTP"})})]})},Hy=()=>{const{user:e,logout:t}=ti(),[n,r]=H.useState(!1),[i,l]=H.useState(!1),s=async o=>{const u=new URLSearchParams;u.append("roll_number",e.rollNo),o=="breadth"?r(!0):l(!0);try{const a=await fetch(`${vl}/elective/${o}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","SSO-Token":e.ssoToken},body:u.toString()});if(!a.ok){const S=await a.json();ae.error(S.message),a.status==401&&S.message=="Session isn't alive. PLease login again."&&t();return}let d=`${e.rollNo}_${o}.xlsx`;const f=await a.blob(),y=window.URL.createObjectURL(f),x=document.createElement("a");x.href=y,x.download=d,document.body.appendChild(x),x.click(),x.remove()}catch(a){ae.error(`Error fetching ${o} electives!`),console.error("Error fetching breadth electives:",a)}finally{o=="breadth"?r(!1):l(!1)}};return E.jsxs("div",{className:"electives-container",children:[E.jsx("h2",{children:"Download Electives"}),E.jsx("p",{children:"Below are the depth and breadth electives available for you for subject registration"}),E.jsxs("div",{className:"electives",children:[E.jsx("button",{className:"download-button",onClick:()=>s("breadth"),disabled:n,children:n?E.jsx(xl,{}):"Download Breadth"}),E.jsx("button",{className:"download-button",onClick:()=>s("depth"),disabled:i,children:i?E.jsx(xl,{}):"Download Depth"})]})]})},Wy=()=>E.jsx("h2",{children:"Oops! Looks like your electives freaked out! Try logging again :)"}),Ky=()=>{const{currentStep:e,user:t}=ti();return e==2&&t.sessionToken&&t.ssoToken?E.jsx(Hy,{}):e==1&&t.sessionToken&&t.securityQuestion?E.jsx(Qy,{}):e==0?E.jsx(Uy,{}):E.jsx(Wy,{})};let Yy=[{position:[10,15],color:"0 0 400px 140px rgba(0, 133, 255, 1)"},{position:[10,90],color:"0 0 100px 100px rgba(0, 255, 102, 0.72)"},{position:[40,40],color:"0 0 150px 100px #FFD447"},{position:[100,10],color:"0 0 250px 150px rgba(204, 0, 255, 0.75)"},{position:[80,90],color:"0 0 200px 80px rgba(204, 0, 255, 1)"}];const Gy=()=>E.jsx("div",{className:"circle-container",children:Yy.map((e,t)=>E.jsx("div",{className:"circle",style:{top:`${e.position[0]}%`,left:`${e.position[1]}%`,boxShadow:e.color}},t))}),Zy="/assets/hero-img-CTflh2c3.png",Xy=({closeModal:e})=>E.jsx("div",{className:"modal-overlay",children:E.jsxs("div",{className:"modal-content",children:[E.jsx("button",{className:"close-button",onClick:()=>e(!1),children:E.jsx("svg",{fill:"none",viewBox:"0 0 15 15",height:"1em",width:"1em",className:"close-button-icon",children:E.jsx("path",{fill:"white",fillRule:"evenodd",d:"M11.782 4.032a.575.575 0 10-.813-.814L7.5 6.687 4.032 3.218a.575.575 0 00-.814.814L6.687 7.5l-3.469 3.468a.575.575 0 00.814.814L7.5 8.313l3.469 3.469a.575.575 0 00.813-.814L8.313 7.5l3.469-3.468z",clipRule:"evenodd"})})}),E.jsx("h2",{children:"MetaKGP - GYFE"}),E.jsx("p",{children:"GYFE simplifies course selection by providing available depth and breadth electives for the upcoming semester."}),E.jsx("h4",{children:"How to get your electives?"}),E.jsxs("ol",{children:[E.jsx("li",{children:"Enter your roll number and password for ERP login"}),E.jsx("li",{children:"Enter answer for security question and OTP"}),E.jsx("li",{children:"Choose depth or breadth and this will download available depth and breadth electives as excel sheets."})]})]})}),qy=()=>{const[e,t]=H.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsxs("main",{children:[E.jsx(My,{position:"bottom-center"}),E.jsx(Gy,{}),E.jsxs("div",{id:"wrapper",children:[E.jsxs("div",{className:"wrapper-item",children:[E.jsxs("div",{id:"wrapped",children:[E.jsx(F0,{}),E.jsx(Ky,{})]}),E.jsx(O0,{openModal:t})]}),E.jsx("aside",{children:E.jsx("img",{src:Zy,alt:"."})})]})]}),e&&E.jsx(Xy,{closeModal:t})]})};_s.createRoot(document.getElementById("root")).render(E.jsx(Ue.StrictMode,{children:E.jsx(N0,{children:E.jsx(qy,{})})})); diff --git a/index.html b/index.html index cf244b2..ac68e26 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ MetaKGP - GYFE - +