1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4296,6768],{94296:function(e,t,s){s.r(t);var a=s(85893),n=s(67294),i=s(5152),o=s.n(i),l=s(86768);let r=o()(()=>s.e(5501).then(s.bind(s,85501)),{loadableGenerated:{webpack:()=>[85501]},ssr:!1}),c=o()(()=>Promise.all([s.e(4321),s.e(3365),s.e(7536),s.e(5200)]).then(s.bind(s,591)),{loadableGenerated:{webpack:()=>[591]},ssr:!1});t.default=e=>{var t;let{user:s,id:i,hack:o}=e,[d,h]=(0,n.useState)({}),[u,f]=(0,n.useState)({}),[m,p]=(0,n.useState)({}),b="Hi, ".concat(null===(t=s.username)||void 0===t?void 0:t.split(" ").slice(0,1).join(" "),"!");return(0,n.useEffect)(()=>{(async()=>{let e=s&&s.accessToken,t=await fetch("https://api-staging.cometlabs.in/organize/getTeam",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8",Authorization:"Token "+e},body:JSON.stringify({eventId:i})});t.ok?h(await t.json()):console.log((await t.json()).error)})()},[i,s]),(0,n.useEffect)(()=>{(async()=>{let e=s&&s.accessToken,t=await fetch("https://api-staging.cometlabs.in/fests/viewFest",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8",Authorization:"Token "+e},body:JSON.stringify({id:i})});t.ok&&f(await t.json())})()},[i,s]),(0,n.useEffect)(()=>{let e=async()=>{let e=s&&s.accessToken,t=await fetch("https://api-staging.cometlabs.in/organize/getsubmission",{method:"POST",headers:{"Content-Type":"application/json;charset=utf-8",Authorization:"Token "+e},body:JSON.stringify({eventId:i,team_id:d.team_id})});t.ok&&p(await t.json())};d&&d.team_id&&e()},[i,d,s]),(0,a.jsx)(l.default,{noFooter:!0,children:(0,a.jsxs)("div",{className:"flex container my10",style:{alignItems:"flex-start"},children:[(0,a.jsx)("div",{className:"flex xs12 sm4 md3",style:{minWidth:"550px"},children:(0,a.jsx)(c,{user:s,teamm:d,id:i})}),(0,a.jsx)("div",{className:"flex xs12 sm8 md9",children:(0,a.jsx)(r,{fest:u,hack:o,type:u.type,user:b,id:i,props:m,team:d})})]})})}},86768:function(e,t,s){s.r(t);var a=s(85893),n=s(67294),i=s(5152),o=s.n(i);let l=o()(()=>Promise.all([s.e(4321),s.e(4838),s.e(9426)]).then(s.bind(s,98113)),{loadableGenerated:{webpack:()=>[98113]},ssr:!1}),r=o()(()=>Promise.all([s.e(3365),s.e(123),s.e(722)]).then(s.bind(s,70714)),{loadableGenerated:{webpack:()=>[70714]},ssr:!1});t.default=e=>{let{children:t,noFooter:s,noHeader:i}=e,[o,c]=(0,n.useState)({});return(0,n.useEffect)(()=>{c(JSON.parse(localStorage.getItem("user")))},[]),(0,a.jsxs)(a.Fragment,{children:[i?(0,a.jsx)("div",{}):(0,a.jsx)(l,{user:o}),t,s?(0,a.jsx)("div",{}):(0,a.jsx)(r,{})]})}}}]); 2//# sourceMappingURL=4296.cdeaa84c67e925dc.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.