PageSourceSearch

https://iiitdplaybook.web.app/static/js/21.79b90384.chunk.js

js iiitdplaybook.web.app collected 2026-10-03 12:26:47 UTC 9,482 bytes, 2 lines download raw bytes

1(this["webpackJsonpstudent-playbook"]=this["webpackJsonpstudent-playbook"]||[]).push([[21],{283:function(e,t,a){},440:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return A}));var o=a(13),s=a.n(o),n=a(26),i=a(10),l=a(0),c=a(15),r=a(2),u=a.n(r),b=a(93),d=a(201),j=a(38),h=(a(283),a(83)),m=a(412),g=a(432),f=a(444),p=a(411),O=a(409),x=a(416),y=a(410),v=a(415),w=a(92),k=a(433),C=a(27),N=a(39),P=(a(79),a(279)),S=function(e){e.files;var t=e.setFiles;return Object(l.jsx)("input",{type:"file",class:"image-input",multiple:!0,onChange:function(e){for(var a=function(a){var o=e.target.files[a];t((function(e){return[].concat(Object(P.a)(e),[o])}))},o=0;o<e.target.files.length;o++)a(o)}})},T={UserAvatar:"https://www.gstatic.com/stadia/gamers/avatars/xxhdpi/avatar_53.png",Name:"Rahul Singh",Text:"",Topic:"",isApproved:!1,timestamp:Date.now()},H=Object(d.a)((function(e){return{root:{"& .MuiTextField-root":{margin:e.spacing(1),width:"25ch"},marginTop:"3%",fontFamily:"Poppins, sans-serif"}}}));function A(){var e=Object(r.useState)([]),t=Object(i.a)(e,2),a=t[0],o=t[1],d=Object(r.useState)(""),P=Object(i.a)(d,2),A=(P[0],P[1]);N.a.configure();var I=Object(j.b)(),W=Object(i.a)(I,1)[0],E=(W.user,W.isSignedIn,W.userName),G=Object(r.useState)(""),D=Object(i.a)(G,2),R=D[0],B=D[1];var L=Object(r.useState)(0),F=Object(i.a)(L,2),M=F[0],U=F[1],z=function(e){var t=c.a.storage(),a=[];e.forEach((function(e){var o=t.ref().child("ContributionImages/".concat(e.name)).put(e);a.push(o),o.on("state_changed",(function(e){var t=100*Math.round(e.bytesTransferred/e.totalBytes);U(t)}),(function(e){}),Object(n.a)(s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.snapshot.ref.getDownloadURL();case 2:t=e.sent,A(t),U(0);case 5:case"end":return e.stop()}}),e)}))))}))};var Y=H(),_=Object(r.useState)("General"),q=Object(i.a)(_,2),J=q[0],V=q[1],K=function(e){V(e.target.value)};Object(r.useEffect)((function(){le("Clubs"===J?je:"General"===J?de:"Phases of College"===J&&"Baby Steps"===ae?ge:"Phases of College"===J&&"Exploring"===ae?fe:"Phases of College"===J&&"Defining Point"===ae?pe:"Phases of College"===J&&"Graduating"===ae?Oe:"Phases of College"===J&&"Nostalgia"===ae?xe:"Time Management"===J?he:"Online Semester Tips"===J?me:"Academics"===J?ye:"Competitive Programming"===J?ve:"Hackathons"===J?we:"Research"===J?ke:"Placements"===J?Ce:"Experiences/Stories"===J?Ne:"Images"===J?Pe:de)}));var Q=Object(r.useState)(""),X=Object(i.a)(Q,2),Z=X[0],$=X[1],ee=Object(r.useState)(""),te=Object(i.a)(ee,2),ae=te[0],oe=te[1],se=Object(r.useState)("Share your Insights with others"),ne=Object(i.a)(se,2),ie=ne[0],le=ne[1],ce=Object(r.useState)(0),re=Object(i.a)(ce,2),ue=re[0],be=re[1];u.a.useEffect((function(){be(Z.length)}),[Z]);var de="Share your Insights with others",je="Which club are you a part of? Which club helped you grow as person? In what ways did the club help?",he="What are your tried and tested techniques to be more productive? How do you manage time? How do you balance life/fun and deadlines?",me="Any tips for the online semester? How are you coping with the online semester? Any stories or feelings that you'd like share?",ge="How was your experience when you first entered college? How did you make friends/connect with people?",fe="How did you start exploring/experimenting/trying out new things? What was something you discovered or got to know about yourself?",pe="How did you find your calling/what you wanted to do in life? Or something that you figured out that built your personality for the better? (Can be non-academic/academic/career etc.)",Oe="How was your experience when you graduated? What is something you learned in college? Hindsight thoughts? What is something you missed out on? What are you looking forward to after college?",xe="When you look back to your college life after graduating what do you feel most nostalgic about?",ye="How to get the most out of a course? How to plan well to get the best possible grades? How much GPA is considered good?",ve="How to start? (Good time to start, how to distribute your time, what all to study, how to practice etc.)",we="How to start taking part in hackathons? Where to find hackathons? Pros and cons of taking part in a hackathon",ke="How to get a research project? How much work does it require? Why should / shouldn't one go for research?",Ce="What to keep in mind while preparing? Any interview tips? Any good resources?",Ne="Any crazy or fun experiences and stories that you would like to share? ",Pe="Any images from college you would like to share? (or drive link to the images)";return Object(l.jsxs)("div",{children:[Object(l.jsx)(b.a,{loggedIn:!0,colorStatus:!0}),Object(l.jsx)("form",{className:Y.root,noValidate:!0,autoComplete:"off",children:Object(l.jsxs)("div",{className:"formdiv",children:[Object(l.jsx)("h1",{className:"formlabel",children:"For which part would you like to share your testimonies?"}),Object(l.jsxs)(O.a,{component:"fieldset",children:[Object(l.jsx)(y.a,{className:"helperlabel",children:"Choose one of the following and submit. You can submit the form again if you want to contribute for another section"}),Object(l.jsxs)("div",{className:"row",children:[Object(l.jsx)("div",{className:"column",children:Object(l.jsxs)(f.a,{className:"radio","aria-label":"testimonies",name:"testimonies1",value:J,onChange:K,children:[Object(l.jsx)(p.a,{className:"radioButtonLeft",value:"General",control:Object(l.jsx)(g.a,{}),label:"General"}),Object(l.jsx)(p.a,{value:"Phases of College",control:Object(l.jsx)(g.a,{}),label:"Phases of College"}),Object(l.jsx)(p.a,{className:"radioButtonRight",value:"Clubs",control:Object(l.jsx)(g.a,{}),label:"Clubs"}
1),Object(l.jsx)(p.a,{value:"Time Management",control:Object(l.jsx)(g.a,{}),label:"Time Management"}),Object(l.jsx)(p.a,{value:"Online Semester Tips",control:Object(l.jsx)(g.a,{}),label:"Online Semester Tips"}),Object(l.jsx)(p.a,{value:"Academics",control:Object(l.jsx)(g.a,{}),label:"Academics"})]})}),Object(l.jsx)("div",{className:"column",children:Object(l.jsxs)(f.a,{className:"radio","aria-label":"testimonies",name:"testimonies1",value:J,onChange:K,children:[Object(l.jsx)(p.a,{value:"Competitive Programming",control:Object(l.jsx)(g.a,{}),label:"Competitive Programming"}),Object(l.jsx)(p.a,{value:"Hackathons",control:Object(l.jsx)(g.a,{}),label:"Hackathons"}),Object(l.jsx)(p.a,{value:"Research",control:Object(l.jsx)(g.a,{}),label:"Research"}),Object(l.jsx)(p.a,{value:"Placements",control:Object(l.jsx)(g.a,{}),label:"Placements"}),Object(l.jsx)(p.a,{value:"Experiences/Stories",control:Object(l.jsx)(g.a,{}),label:"Experiences/Stories"}),Object(l.jsx)(p.a,{value:"Images",control:Object(l.jsx)(g.a,{}),label:"Images"})]})})]}),"confetti"===R&&Object(l.jsx)(h.a,{id:"confettiBox",autoplay:!0,src:"https://cdn.statically.io/gh/iiitdplaybook/iiitdplaybook/6a71631d/src/Assets/confetti.json",loop:!1,onEvent:function(e){"completed"===e&&B("")},style:{height:"500px",width:"700px",zIndex:"-1",position:"absolute"}})]}),Object(l.jsx)("br",{}),Object(l.jsx)("br",{}),Object(l.jsx)("br",{}),Object(l.jsx)(m.a,{disabled:!0,id:"outlined-disabled",label:"Name",defaultValue:E,variant:"outlined",className:"nameLabel",color:"secondary"}),Object(l.jsx)("br",{}),Object(l.jsx)("br",{}),"Phases of College"===J?Object(l.jsxs)(O.a,{className:"nameLabel",color:"secondary",children:[Object(l.jsx)(v.a,{id:"demo-simple-select-filled-label",children:"Phases of College"}),Object(l.jsxs)(k.a,{labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",value:ae,onChange:function(e){oe(e.target.value)},children:[Object(l.jsx)(w.a,{value:"Baby Steps",children:"Baby Steps"}),Object(l.jsx)(w.a,{value:"Exploring",children:"Exploring"}),Object(l.jsx)(w.a,{value:"Defining Point",children:"Defining Point"}),Object(l.jsx)(w.a,{value:"Graduating",children:"Graduating"}),Object(l.jsx)(w.a,{value:"Nostalgia",children:"Nostalgia"})]})]}):null,Object(l.jsx)("br",{}),Object(l.jsx)("br",{}),"Images"===J?Object(l.jsxs)("div",{class:"image_upload",children:[Object(l.jsx)("progress",{value:M,max:"100"}),Object(l.jsx)(S,{files:a,setFiles:o})]}):Object(l.jsxs)("div",{children:[Object(l.jsx)(x.a,{label:"",className:"nameLabel2",color:"secondary",children:"Write About: "+ie}),Object(l.jsx)("br",{}),Object(l.jsx)(m.a,{id:"outlined-textarea",label:"Your Testimony  (".concat(ue,"/400)"),placeholder:de,multiline:!0,variant:"outlined",className:"testimonials",color:"secondary",inputProps:{maxlength:400},value:Z,onChange:function(e){$(e.target.value)}})]}),Object(l.jsx)("br",{}),Object(l.jsx)("p",{children:"Disclaimer: Your ID's profile picture will be displayed along with Name and your Testimony"}),Object(l.jsx)("br",{}),Object(l.jsx)(C.a,{className:"button",size:"lg",variant:"contained",color:"secondary",onClick:ue<=400?function(e){e.preventDefault();var t="";"Phases of College"===J?(T.Topic=J+" - "+ae,t=J+" - "+ae):"Images"===J?z(a):(T.Topic=J,t=J),T.Name=E,T.Text=Z,T.UserAvatar=c.a.auth().currentUser.photoURL,T.timestamp=c.a.firestore.Timestamp.now(),c.a.database().ref("Testimonies/"+t).once("value",(function(e){e.numChildren(),c.a.database().ref("Testimonies/"+t).push(T)})),N.a.info("Testimony Submitted \nfor Review",{draggablePercent:30}),B("confetti"),$("")}:function(){N.a.error("Exceeded Word Limit in Testimonies")},children:Object(l.jsx)("span",{className:"span2",children:"submit"})})]})})]})}}}]);
2//# sourceMappingURL=21.79b90384.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.