(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5876,4241],{24318:function(e,n,i){"use strict";i.d(n,{W:function(){return h}});var t=i(26042),r=i(7297),o=i(85893),a=(i(67294),i(92958)),l=i(92247),u=i(93866),c=i(46366),s=i(53640);function d(){var e=(0,r.Z)(["\n  border: none;\n  border-top: 1px solid ",";\n  height: 0px;\n  margin: 24px -32px 32px;\n"]);return d=function(){return e},e}var f=a.default.hr.withConfig({displayName:"CardWithSeparator__Separator",componentId:"sc-9072042e-0"})(d(),(function(e){return e.theme.colors["grey-3"]})),h=function(e){var n=e.title,i=e.subtitle,r=e.children,a=e.style,d=e.paddingX,h=void 0===d?32:d,v=e.paddingY,p=void 0===v?24:v,m=e.paddingB,g=void 0===m?32:m;return(0,o.jsxs)(l.C,{shadow:"blue-1",style:(0,t.Z)({"--paddingX":"".concat(h,"px"),"--paddingY":"".concat(p,"px"),paddingBottom:"".concat(g,"px")},a),children:[(0,o.jsxs)(u.F,{direction:"column",gap:4,children:[(0,o.jsx)(c.H,{size:20,weight:"extrabold",color:"grey-8",children:n}),i&&(0,o.jsx)(s.B,{children:(0,o.jsx)(c.U,{as:"span",size:17,color:"grey-6",children:i})})]}),(0,o.jsx)(f,{}),r]})}},16197:function(e,n,i){"use strict";i.d(n,{f:function(){return _}});var t=i(85893),r=(i(67294),i(99937)),o=i(13105),a=i(69077),l=i(31407),u=i(86386),c=i(81202),s=i(4434),d=i(90935),f=i(85900),h=i(25078),v=i(70340),p=(0,r.QB)([o.RJ,o.yu,o.ws,o.v8,o.Fo,o.yX,o.v4,l.ue],[(0,s.G)({apiKey:v.V.ALCHEMY_ID}),(0,u.$)({apiKey:v.V.INFURA_ID}),(0,c.I)()]),m=p.chains,g=p.provider,b=p.webSocketProvider,y=(0,a.eI)({autoConnect:!0,connectors:[new h.i({chains:m}),new f.z({chains:m,options:{projectId:v.V.WALLET_CONNECT_ID,metadata:{name:"Devfolio",description:"",url:"https://devfolio.co",icons:["https://devfolio.co/favicons/favicon-128.png"]}}}),new d.D({chains:m,options:{appName:"Devfolio"}})],provider:g,webSocketProvider:b}),_=function(e){var n=e.children;return(0,t.jsx)(a.eM,{client:y,children:n})}},59439:function(e,n,i){"use strict";i.d(n,{Z:function(){return x}});var t=i(26042),r=i(69396),o=i(828),a=i(29815),l=i(85893),u=i(67294),c=i(5152),s=i.n(c),d=i(41402),f=i(11163),h=i(66446),v=i(27428),p=i(79474),m=i(62378),g=i(67475),b=i(88322),y=i(11187),_=i(70340),k=i(40450),w=["/user/[userId]","/user/[userId]/projects","/user/[userId]/onchain-creds","/user/[userId]/readme-md"],E=["/my-hackathons","/refund-policy","/privacy-policy","/terms-of-use","/code-of-conduct","/my-projects"].concat((0,a.Z)(w)),A=s()((function(){return Promise.resolve().then(i.bind(i,67475)).then((function(e){return e.RegisterWall}))}),{loadableGenerated:{webpack:function(){return[67475]}},loading:function(){return null}}),C={signup:"sign-up-select",signin:"sign-in"},O={"my-hackathons":"My Hackathons","my-projects":"My Projects",badges:"My Badges"},j={"My Hackathons":"/my-hackathons","My Projects":"/my-projects","My Badges":"/badges"},x=function(e){var n=e.withGrid,i=e.withTabs,a=void 0!==i&&i,c=e.hideLinks,s=void 0!==c&&c,x=e.showHamburgerMenu,T=void 0===x||x,S=e.brandTheme,I=(0,y.lk)(),U=I.user,N=I.isAuthenticated,R=I.isLoading,L=(0,f.useRouter)(),P=L.pathname,Z=L.asPath,D=L.query,H=L.route,B=L.push,q=(0,b.D)(U),V=E.includes(P),M=w.includes(P),F=(0,o.Z)(u.useState(""),2),K=F[0],G=F[1],W=(0,g.useRegisterWall)({}),z=W.registerWallProps,Q=W.openRegisterWall,Y=(0,m.X)({username:null===U||void 0===U?void 0:U.username,enabled:"/notifications"!==P}),J=Y.data,X=Y.isLoading,$=Y.isSuccess,ee=(0,o.Z)(u.useState(!1),2),ne=ee[0],ie=ee[1];u.useEffect((function(){if($){var e=null===J||void 0===J?void 0:J.some((function(e){var n,i,t;return 0===(null===(n=e.user_notifications)||void 0===n?void 0:n.length)||!1===(null===e||void 0===e||null===(i=e.user_notifications)||void 0===i||null===(t=i[0])||void 0===t?void 0:t.read)}));ie(e)}}),[$,J]),u.useEffect((function(){var e=H.split("/")[1];G(O[e])}),[H]),u.useEffect((function(){var e="string"===typeof D.auth?C[D.auth]:void 0,n=(0,k.s2)();!e||N||R||n||Q(e)}),[D.auth,N,R,Q]);var te=function(e){if((0,k.s2)()){var n=(0,k.VW)(),i=n?"".concat((0,k.K6)(n)).concat(Z.replace("/","")):"".concat(_.V.BASE_URL).concat(Z.replace("/",""));window.location.href="".concat(_.V.BASE_URL).concat("sign-up-select"===e?"signup":"signin","?from=").concat(encodeURIComponent(i),"\n      ")}else Q(e)},re=null===J||void 0===J?void 0:J.map((function(e){return(0,u.createElement)(v.d0,(0,r.Z)((0,t.Z)({},e),{isDropdown:!0,key:e.uuid}))})),oe=u.useCallback((function(){return a?{type:"tab",items:[{id:1,label:"My Hackathons",path:"".concat(_.V.BASE_URL,"my-hackathons")},{id:2,label:"My Projects",path:"".concat(_.V.BASE_URL,"my-projects")},{id:3,label:"My Badges",path:"".concat(_.V.BASE_URL,"badges")}]}:s?{type:"link",items:[]}:{type:"link",items:[{id:1,label:"Home",path:"".concat(_.V.BASE_URL,"home")},{id:2,label:"Blog",path:"".concat(_.V.BASE_URL,"blog")}]}}),[s,a])();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.N,{isBeta:V&&N,logoHref:"".concat(_.V.BASE_URL,"discover"),mainNav:oe,isLoading:R,profile:N?q:void 0,signInProps:{type:"button",handleClick:function(){return te("sign-in")},brandTheme:S},registerProps:{type:"button",handleClick:function(){return te("sign-up-select")},label:M?"Create your profile":void 0,brandTheme:S},withGrid:n,showHamburgerMenu:T,notificationMenu:"/notifications"!==P?(0,l.jsx)(p.y,{hasUnreadNotifications:ne,viewAllHref:"/notifications",notificationsArray:null!==re&&void 0!==re?re:[],showViewAllButton:$&&(null===J||void 0===J?void 0:J.length)>0,noNotificationsState:(0,l.jsx)(v.Y5,{isDropdown:!0}),areNotificationsLoading:X}):void 0,navbarTab:a?{activeTab:K,onChange:function(e){var n;["/my-hackathons","/my-projects"].includes(j[e])||(null===window||void 0===window||null===(n=window.location)||void 0===n||n.reload());B("/".concat(j[e]),void 0,{scroll:!1}),G(e)}}:void 0,isProfilePage:M,brandTheme:S}),(0,l.jsx)(A,(0,t.Z)({},z)),(0,l.jsx)(h.N,{})]})}},32088:function(e,n,i){"use strict";i.d(n,{G:function(){return y},p:function(){return E}});var t=i(26042),r=i(69396),o=i(7297),a=i(85893),l=(i(67294),i(92958)),u=i(40633),c=i(93866),s=i(55076),d=i(46366),f=i(69077),h=i(11187),v=i(78147);function p(){var e=(0,o.Z)(["\n  --avatar-size: 24px;\n  width: var(--avatar-size);\n  height: var(--avatar-size);\n  & img {\n    width: var(--avatar-size);\n    height: var(--avatar-size);\n  }\n"]);return p=function(){return e},e}function m(){var e=(0,o.Z)(["\n  width: 100%;\n  height: 60px;\n  padding: 16px;\n  border: 1px solid ",";\n  border-radius: 8px;\n  background-color: white;\n  justify-content: space-between;\n  align-items: center;\n"]);return m=function(){return e},e}function g(){var e=(0,o.Z)(["\n  background-color: transparent;\n  border: none;\n  padding: 0;\n  cursor: pointer;\n"]);return g=function(){return e},e}function b(){var e=(0,o.Z)(["\n  "," {\n    width: 100%;\n  }\n"]);return b=function(){return e},e}var y=(0,l.default)(u.A).withConfig({displayName:"WalletSelect__WalletAvatar",componentId:"sc-78c1bc72-0"})(p()),_=(0,l.default)(c.F).withConfig({displayName:"WalletSelect__AddressContainer",componentId:"sc-78c1bc72-1"})(m(),(function(e){return e.theme.colors["grey-4"]})),k=l.default.button.withConfig({displayName:"WalletSelect__ChangeWalletButton",componentId:"sc-78c1bc72-2"})(g()),w=(0,l.default)(s.B).withConfig({displayName:"WalletSelect__ConfirmButton",componentId:"sc-78c1bc72-3"})(b(),(function(e){return e.theme.mediaQueries.tablet})),E=function(e){var n,i,o,l,u=e.address,s=e.mobile,p=e.showBalance,m=void 0!==p&&p,g=e.maxCharsBeforeEllipsis,b=void 0===g?20:g,E=e.doesntHaveSufficientBalance,A=void 0!==E&&E,C=e.isLoading,O=e.onConfirmWallet,j=e.hideChangeWalletButton,x=void 0!==j&&j,T=e.showFullAddress,S=void 0!==T&&T,I=(0,h.lk)().user,U=(0,v.b)().disconnectWallet,N=(0,f.KQ)({address:u}).data,R=(0,f.c9)({address:u}).data,L=function(){U()};return(0,a.jsx)(c.F,{width:"100%",direction:"column",gap:40,children:(0,a.jsx)(c.F,{gap:16,direction:"column",children:(0,a.jsxs)(c.F,(0,r.Z)((0,t.Z)({},m?{gap:8,align:"flex-start",direction:"column"}:{gap:16,align:"center",direction:s?"column":"row"}),{wrap:{desktop:"nowrap",_:"wrap"},children:[(0,a.jsxs)(_,{children:[(0,a.jsxs)(c.F,{gap:16,children:[(0,a.jsx)(y,{size:"small",src:null!==R&&void 0!==R?R:null===I||void 0===I?void 0:I.profile_image,alt:"Wallet avatar"}),(0,a.jsx)(d.U,{size:18,weight:"semibold",color:"grey-8",style:s&&S?{overflowWrap:"anywhere"}:{},children:S?"".concat(u):"".concat(u.slice(0,s?6:b),"...").concat(u.slice(-4))})]}),!x&&(0,a.jsx)(a.Fragment,{children:s?(0,a.jsxs)(d.U,{size:14,weight:"bold",color:A?"red-4":"grey-6",children:[null!==(i=parseFloat(null!==(n=null===N||void 0===N?void 0:N.formatted)&&void 0!==n?n:"0").toFixed(1))&&void 0!==i?i:0," ETH"]}):(0,a.jsx)(k,{onClick:L,children:(0,a.jsx)(d.L,{size:14,weight:"bold",color:"blue-4",children:"Change"})})})]}),m&&!s&&(0,a.jsxs)(c.F,{direction:"row",justify:"center",gap:4,children:[(0,a.jsxs)(d.U,{size:14,weight:"regular",color:A?"red-4":"grey-6",children:["Wallet balance:"," "]}),(0,a.jsxs)(d.U,{size:14,weight:"bold",color:A?"red-4":"grey-8",children:[" ",null!==(l=parseFloat(null!==(o=null===N||void 0===N?void 0:N.formatted)&&void 0!==o?o:"0").toFixed(4))&&void 0!==l?l:0," ETH"]})]}),s&&(0,a.jsx)(k,{onClick:L,children:(0,a.jsx)(d.U,{size:18,weight:"semibold",color:"blue-4",align:"center",children:"Change wallet"})}),"function"===typeof O&&(0,a.jsx)(w,{loading:C,size:"large",onClick:function(){return O()},children:"Confirm Wallet"})]}))})})}},70970:function(e,n,i){"use strict";i.d(n,{AM:function(){return j},Bc:function(){return q},C0:function(){return ee},Ct:function(){return P},Ds:function(){return Z},Fp:function(){return X},H_:function(){return te},Hf:function(){return F},Is:function(){return v},J8:function(){return T},JV:function(){return re},KR:function(){return u},Ki:function(){return o},Kz:function(){return K},LS:function(){return W},Mx:function(){return I},Np:function(){return O},OS:function(){return ce},PT:function(){return Q},Pn:function(){return t},Qj:function(){return r},Rb:function(){return H},V9:function(){return R},VJ:function(){return A},Y3:function(){return G},Yl:function(){return ne},ZG:function(){return b},ZN:function(){return l},_j:function(){return se},ag:function(){return x},b:function(){return C},c0:function(){return m},dG:function(){return U},dT:function(){return h},ec:function(){return $},f5:function(){return L},h0:function(){return k},hx:function(){return D},i$:function(){return w},iX:function(){return s},jZ:function(){return M},ju:function(){return ue},kL:function(){return oe},l1:function(){return a},lA:function(){return c},le:function(){return _},nB:function(){return Y},nf:function(){return ae},o3:function(){return J},oA:function(){return z},oL:function(){return fe},p0:function(){return V},qS:function(){return d},qn:function(){return E},rJ:function(){return p},s8:function(){return S},sP:function(){return g},t7:function(){return ie},tG:function(){return de},tK:function(){return he},u9:function(){return B},uQ:function(){return le},vM:function(){return y},wu:function(){return f},xS:function(){return N}});var t="Liked project",r="Hackathon card CTA clicked",o="Compact Hackathon card open microsite",a={GO_TO_ORGANIZER_DASHBOARD:"Go to organizer dashboard",TOGGLE_REMIND:"Toggle remind me",GO_TO_DASHBOARD:"Go to dashboard",GO_TO_PROJECTS:"Go to projects",APPLY_TO_HACKATHON:"Apply to hackathon"},l="Changed tab on microsite",u="Toggled rating filter",c="Toggled winner filter on microsite",s="Updated a filter on microsite",d="Subscribed to calendar",f={from:"microsite"},h={from:"google genai microsite"},v={from:"more hackathons on microsite"},p="Opened hackathons page link",m={from:"featured hackathon on hackathons page"},g={from:"hackathons page"},b=function(e){return{from:"".concat(e," hackathons page")}},y="Opened command palette via search bar",_="Opened command palette via keyboard shortcut",k="Selected primary filter",w="Selected secondary filter",E="Selected tertiary filter",A="Clicked search",C={from:"command palette"},O={from:"search page"},j="Clicked team builder card",x="Clicked project pill",T="Clicked share link",S="Shared GPT generated caption",I="Clicked project description read more",U="Clicked builders also viewed see more projects",N="Report project card CTA clicked",R="Opened similar project",L="Opened project",P="Clicked project technology chip",Z={PRIZE_PILL:"prize pill",BUILT_AT_HACKATHON_PILL:"built-at-hackathon pill"},D={from:"project page"},H={from:"builder also viewed on project page"},B={from:"project listing header on project page"},q="Clicked top builders builder row",V="Clicked most hackathons won builder row",M="Clicked most projects built builder row",F="Clicked featured builder card",K="Visited featured builder profile",G="Clicked builder AMA button",W="Sent builder AMA",z="Clicked nominate a builder",Q="Sent builder nomination submitted",Y="Toggled sort builders filter",J="Changed top builders page",X={from:"builders page"},$="Clicked event card",ee="Tweeted quote from quote card",ne="Clicked curated link card",ie="Clicked builder spotlight card",te={from:"discover page"},re="Clicked cheer project in project header",oe="Added sticker to cheer basket",ae="Updated cheer quantity",le="Clicked proceed to connect wallet for cheer",ue="Clicked pay for cheer amount",ce="Completed cheer transaction",se="Explore hackathon button clicked",de="My hackathon card clicked",fe="Picked an idea",he="Created a new side project"},46246:function(e,n,i){"use strict";i.d(n,{U_:function(){return m},iI:function(){return p},rH:function(){return g}});var t=i(47568),r=i(14924),o=i(97582),a=i(53209),l=i(78238),u=i.n(l),c=i(61099),s=i(24196),d=i(58035),f=i(26026),h=i(8151),v=i(40450),p=function(e,n){if(e===d._.EDUCATION){var i,t=function(e,n){return e.when(f.Es.hasNoFormalEducation,{is:!0,then:function(e){return e},otherwise:n})},o=a.Ry({uuid:a.Z_().trim().required(),name:a.Z_().trim().required()});return a.Ry().shape((i={},(0,r.Z)(i,f.Es.hasNoFormalEducation,a.O7().notRequired()),(0,r.Z)(i,f.Es.degreeType,t(a.Z_().notRequired(),a.Z_().required())),(0,r.Z)(i,f.Es.educationInstitution,t(o.default(void 0),o)),(0,r.Z)(i,f.Es.fieldOfStudy,t(o.default(void 0),o)),(0,r.Z)(i,f.Es.yearOfGraduation,t(a.Rx().notRequired(),a.Rx().required())),(0,r.Z)(i,f.Es.monthOfGraduation,t(a.Rx().notRequired(),a.Rx().required())),(0,r.Z)(i,f.Es.isStudent,a.O7().notRequired()),i))}if(e===d._.LINKS){var l=a.Ry().shape({name:a.Z_().trim().required(),value:a.Z_().when("name",(function(e,n){return h.m2.includes(e)&&e!==h.OI?n.trim().matches(h.HK[e],"Please enter a valid ".concat(e," Link")).required("Please enter a valid ".concat(e," Link")):n.trim().test("is-valid-url","Please enter a valid URL",(function(e){return(0,c.K2)(null!==e&&void 0!==e?e:"")})).required("Please enter a valid URL")}))});return a.Ry().shape((0,r.Z)({},f.Es.profiles,a.IX().of(l).min(1,"Please enter at least one link")))}var u=n.map((function(e){switch(e.name){case f.Es.firstName:case f.Es.lastName:case f.Es.bio:case f.Es.shirtSize:case f.Es.gender:case f.Es.emergencyContactName:case f.Es.city:case f.Es.hackerType:case f.Es.resumeURL:case f.Es.email:return[e.name,a.Z_().trim().required().nullable()];case f.Es.emergencyContactNumber:case f.Es.phoneNumber:return[e.name,a.Z_().trim().required("Please enter a valid phone number").test("is-valid-number","Please enter a valid phone number",(function(e){return(0,c.kj)(null!==e&&void 0!==e?e:"")})).nullable()];case f.Es.hasNoWorkExperience:return[e.name,a.O7().notRequired()];case f.Es.experience:return[e.name,a.IX().when(f.Es.hasNoWorkExperience,{is:!0,then:function(e){return e.notRequired().nullable()},otherwise:function(e){return e.min(1).required()}})];case f.Es.isEmailVerified:return[e.name,a.O7().required().oneOf([!0])];default:return null}})).filter((function(e){return null!==e}));return a.Ry().shape(Object.fromEntries(u))},m=function(e,n){var i=null===n||void 0===n?void 0:n.find((function(n){return n.resource===e})),t=null===i||void 0===i?void 0:i.fields.filter((function(e){return e.required})).map((function(e){return e.name}));return function(e,n){if(e===d._.EDUCATION)return"Your educational institution, field of study and graduation month & year";if(e===d._.LINKS&&(n.includes("otherProfiles")||n.includes("other")))return"Your online profile links";if(e===d._.LINKS&&n.length&&!n.includes("otherProfiles"))return"Your ".concat((0,v._O)(n)," profile link").concat(n.length?"s":"");if(e===d._.ETHEREUM_ADDRESS)return"Your ethereum wallet";if(e===d._.DISCORD_CHANNEL_JOINED)return"Join discord channel";if(e===d._.TEAM)return"You need to finish your individual application to join or create a team";if(e===d._.CUSTOM_QUESTION)return"The organizers wish to know the following for evaluating your application";var i=n.map((function(e){return f.Bw[e]}));return"Your ".concat((0,v._O)(i.filter((function(e){return!!e}))))}(e,null!==t&&void 0!==t?t:[])},g=function(){var e=(0,t.Z)((function(e){var n,i,t,r,a,l,c,d,f;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:if(n=e,i=u()(n.value),t=null!=i?function(e){var n,i,t=h.m2.find((function(t){var r,o;return h.mp[t]&&e.domain===(null===(r=u()(null!==(n=h.mp[t])&&void 0!==n?n:""))||void 0===r?void 0:r.domain)&&e.tld===(null===(o=u()(null!==(i=h.mp[t])&&void 0!==i?i:""))||void 0===o?void 0:o.tld)}));if(void 0!==t)return{name:t,logo:h.EO[t]}}(i):void 0,void 0!==t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,s.bl.miscellaneous.searchCompanies((0,v.Cs)(n.value))];case 2:return a=o.sent(),Array.isArray(a)&&(null===a||void 0===a?void 0:a.length)>0&&(0,v.k)(n.value,null===a||void 0===a||null===(r=a[0])||void 0===r?void 0:r.domain)&&(t={name:null===(l=a[0])||void 0===l?void 0:l.name,logo:null===(c=a[0])||void 0===c?void 0:c.logo}),[3,4];case 3:return o.sent(),console.log("[Search Companies] API Error"),[3,4];case 4:return void 0!==t?(d=t.logo,f=t.name,n.logo=d,n.name=f):(n.logo=null,n.name="Link"),[2,n]}}))}));return function(n){return e.apply(this,arguments)}}()},83877:function(e,n,i){"use strict";i.d(n,{iU:function(){return s},Oq:function(){return l},e8:function(){return c},iq:function(){return u},ik:function(){return h},iC:function(){return d},ug:function(){return f},_f:function(){return v}});var t=i(26042),r=i(828),o=i(17563),a=(i(95659),["hackathon_slugs","hashtags","location","locations","skills","colleges","hosted_by"]),l=[{id:"hackathons",label:"Hackathons",iconSrc:"/hackathon.svg",colors:{foreground:"#7f7789",background:"#cfcfcf"},secondaryFilters:[{id:"is_online",label:"Type",type:"radio",defaultValue:"any",options:[{id:"any",label:"Any"},{id:"online",label:"Online"},{id:"offline",label:"Offline"}]},{id:"location",label:"City",type:"search",searchType:"city",hint:"Only show hackathons that have been or are being hosted in the selected cities"},{id:"happening",label:"Happening...",type:"radio",defaultValue:"any",options:[{id:"any",label:"Anytime"},{id:"this_week",label:"This week"},{id:"this_month",label:"This month"},{id:"this_year",label:"This year"}]},{id:"type",label:"Status",type:"radio",defaultValue:"any",options:[{id:"any",label:"Any"},{id:"application_open",label:"Applications open"},{id:"upcoming",label:"Applications open soon"},{id:"past",label:"Hackathon ended"}]},{id:"rating",label:"Rated",type:"radio",defaultValue:"any",options:[{id:"any",label:"Any"},{id:"3",label:"3 or above"},{id:"4",label:"4 or above"}]},{id:"most",label:"Sort by",type:"radio",defaultValue:"projects_submitted",options:[{id:"projects_submitted",label:"Projects submitted"},{id:"hackers_participated",label:"Hackers participated"}]}],tertiaryFilters:[{id:"is_devfolio_official",label:"Only show Devfolio official hackathons"},{id:"featured",label:"Only show featured hackathons"}]},{id:"projects",label:"Projects",iconSrc:"/project.svg",colors:{foreground:"#e0a56b",background:"#ffe9c4"},secondaryFilters:[{id:"hashtags",label:"Technologies",type:"search",searchType:"hashtags",hint:"Only show projects that have been built using the technologies you select"},{id:"hackathon_slugs",label:"Built at",type:"search",searchType:"hackathons",hint:"Type a hackathon in the field above, e.g. \u201cInOut\u201d. Then, click to select."},{id:"platforms",label:"Platform",type:"radio",defaultValue:"any",options:[{id:"any",label:"Any"},{id:"Web",label:"Web"},{id:"Android",label:"Android"},{id:"iOS",label:"iOS"},{id:"macOS",label:"macOS"}]},{id:"most",label:"Sort by",type:"radio",defaultValue:"views",options:[{id:"views",label:"Views"},{id:"likes",label:"Likes"},{id:"funding",label:"Public Funding"}]}],tertiaryFilters:[{id:"has_github_link",label:"Only show projects with a GitHub link"},{id:"is_winner",label:"Only show projects that have won a prize"},{id:"has_received_funding",label:"Only show projects that have recieved funding"}]},{id:"builders",label:"Builders",iconSrc:"/builder.svg",colors:{foreground:"#688a6f",background:"#bfd6c2"},secondaryFilters:[{id:"skills",label:"Skills",type:"search",searchType:"skills",hint:"Only show builders with selected skills"},{id:"colleges",label:"College",type:"search",searchType:"colleges",hint:"Only show builders from selected colleges"},{id:"locations",label:"City",type:"search",searchType:"city",hint:"Only show builders based out of the selected cities"},{id:"most",label:"Sort by",type:"radio",defaultValue:"projects_built",options:[{id:"projects_built",label:"Projects submitted"},{id:"hackathons_won",label:"Hackathons won"},{id:"hackathons_attended",label:"Hackathons attended"}]}]}],u="secondary-active-filter",c="global-search",s={resetFilter:"reset_filter",search:"search"},d=function(e){var n=(0,t.Z)({},e),i=function(n){return void 0!==(null===e||void 0===e?void 0:e[n])};return i("is_winner")&&(n.filter=(null===e||void 0===e?void 0:e.is_winner)?"winners":"all"),i("rating")&&(n.rating={value:parseInt(null===e||void 0===e?void 0:e.rating,10),comparison:"gte"}),i("is_online")&&(n.is_online="online"===(null===e||void 0===e?void 0:e.is_online)),i("platforms")&&(n.platforms=[null===e||void 0===e?void 0:e.platforms]),a.some((function(e){return i(e)}))&&a.forEach((function(t){i(t)&&Array.isArray(e[t])&&(n[t]=e[t].map((function(e){return e.id})))})),n},f=function(e){var n=Object.entries(e).reduce((function(e,n){var i=(0,r.Z)(n,2),t=i[0],o=i[1];return a.includes(t)&&Array.isArray(o)?e[t]=o.map((function(e){return JSON.stringify(e)})):e[t]=o,e}),{});return o.Pz(n,{arrayFormat:"bracket"})},h=function(e){try{var n=o.Qc(e,{parseBooleans:!0,arrayFormat:"bracket"});return Object.entries(n).reduce((function(e,n){var i=(0,r.Z)(n,2),t=i[0],o=i[1];return a.includes(t)&&Array.isArray(o)?e[t]=o.map((function(e){return JSON.parse(e)})):e[t]=o,e}),{})}catch(i){return{}}},v=function(e){return Array.isArray(e)?e.map((function(e){return"string"===typeof e?e:e.label})).join(", "):e}},90269:function(e,n,i){"use strict";i.d(n,{GE:function(){return t},Km:function(){return o},re:function(){return r}});var t=function(e){return e.replace(/(^\w+:|^)\/\/(www\.)?/,"")},r=function(e,n,i){var t=n-e;return((i-e)%t+t)%t+e},o=function(e){return 1===e?"":"s"}},28818:function(e,n,i){"use strict";var t=i(67294),r=i(76538);n.Z=function(e){var n=e.searchResult,i=e.options,o=(0,r.Z)(i),a=o.ref,l=!!(null===o||void 0===o?void 0:o.isIntersecting);return t.useEffect((function(){l&&n.hasNextPage&&n.fetchNextPage&&n.fetchNextPage()}),[l,n.hasNextPage,n.fetchNextPage]),{trackerEl:a,intersectionResult:o}}},61999:function(e,n,i){"use strict";i.d(n,{w:function(){return g}});var t,r=i(14924),o=i(85893),a=(i(67294),i(46366)),l=i(72132),u=i(88767),c=i(1569),s=i(8151),d=i(40450),f=i(70340),h=i(11187),v=i(36040),p=i(73859),m=(t={},(0,r.Z)(t,p.Kwo.Github,"GitHub"),(0,r.Z)(t,p.Kwo.Google,"Google"),(0,r.Z)(t,p.Kwo.Ethereum,"Ethereum"),(0,r.Z)(t,p.Kwo.Linkedin,"LinkedIn"),(0,r.Z)(t,p.Kwo.Discord,"Discord"),t),g=function(e){var n=e.provider,i=(0,h.lk)().user,t=(0,u.useQueryClient)();return{connectOAuthProvider:function(){var e=(0,d.VW)(),r="".concat(f.V.BASE_URL,"oauth-connect").concat("string"===typeof e?"?subdomain=".concat(e):""),u=window.open("".concat(f.V.API_ROOT,"users/").concat(null===i||void 0===i?void 0:i.username,"/oauth/").concat(n,"/connect?redirect_url=").concat(r),"_blank"),h=function(e){if("".concat(e.origin,"/")===f.V.BASE_URL&&s.M4.includes(e.data))if(null===u||void 0===u||u.close(),window.focus(),e.data===s._p.SUCCESS)t.invalidateQueries((0,v.An)()),t.invalidateQueries(c.eO);else{var i;if(e.data===s._p.FAILURE_UNABLE_TO_CONNECT_WALLET)i=(0,o.jsxs)(a.U,{size:16,weight:"regular",color:"red-6",children:[(0,o.jsx)("strong",{children:"Unable to connect wallet"}),(0,o.jsx)("div",{style:{marginTop:4},children:"Unable to connect your wallet, please try again later"})]});else i=(0,o.jsxs)(a.U,{size:16,weight:"regular",color:"red-6",children:[(0,o.jsx)("strong",{children:n===p.Kwo.Ethereum?"Wallet already linked":"".concat(m[n]," already linked")}),(0,o.jsxs)("div",{style:{marginTop:4},children:["This ",n===p.Kwo.Ethereum?"Ethereum wallet":"".concat(m[n]," account")," ","is already linked to a different Devfolio account. You will either need to disconnect it from the original account or connect to a different"," ",n===p.Kwo.Ethereum?"Ethereum wallet":"".concat(m[n]," account"),"."]})]});(0,l.Am)(i,{type:l.Am.TYPE.ERROR,bodyStyle:{width:"470px"},autoClose:7e3}),window.removeEventListener("message",h,!1)}};window.addEventListener("message",h,!1)}}}},58035:function(e,n,i){"use strict";var t,r;i.d(n,{_:function(){return r},n:function(){return t}}),function(e){e.BOOL="bool",e.CHECKBOX="checkbox",e.DROPDOWN="dropdown",e.FILE="file",e.INPUT="input",e.MULTISELECT="multi_select",e.TEXTAREA="textarea",e.TRUEONLY="true_only"}(t||(t={})),function(e){e.ABOUT="user",e.EDUCATION="education",e.SKILLS="skills",e.LINKS="profiles",e.CONTACT="contact",e.USER_HACKATHON="user_hackathon",e.ETHEREUM_ADDRESS="ethereum_address",e.DISCORD_CHANNEL_JOINED="discord_channel_joined",e.TEAM="team",e.CUSTOM_QUESTION="custom_question"}(r||(r={}))},78147:function(e,n,i){"use strict";i.d(n,{V:function(){return f},b:function(){return h}});var t=i(26042),r=i(69396),o=i(88767),a=i(1569),l=i(85966),u=i(24196),c=i(36040),s=i(11187),d=i(73859),f=function(){var e,n=(0,o.useQueryClient)(),i=(0,s.lk)().user;return(0,o.useMutation)((function(n){var t=n.providerUUID;return u.bl.user.disconnectOAuthProvider({username:null!==(e=null===i||void 0===i?void 0:i.username)&&void 0!==e?e:"",providerUUID:t})}),{onError:function(e,n){var i=n.providerUUID;(0,l.r_)("useDisconnectOAuthProvider",e,{providerUUID:i})},onSuccess:function(){n.invalidateQueries((0,c.An)())}})},h=function(){var e,n,i=(0,o.useQueryClient)(),l=(0,c.km)(),u=null===(n=null===l||void 0===l||null===(e=l.data)||void 0===e?void 0:e.find((function(e){return e.provider_name===d.Kwo.Ethereum})))||void 0===n?void 0:n.uuid,s=f();return(0,r.Z)((0,t.Z)({},s),{disconnectWallet:function(){u&&s.mutate({providerUUID:u},{onSuccess:function(){i.invalidateQueries(a.eO)}})},ethereumProviderUUID:u})}},36040:function(e,n,i){"use strict";i.d(n,{An:function(){return h},km:function(){return v},iP:function(){return p},wy:function(){return m}});var t=i(26042),r=i(69396),o=i(7297),a=i(88767),l=i(28687),u=i(24196),c=i(73859),s=i(8151),d=i(11187);function f(){var e=(0,o.Z)(["\n    query OAuthProviders {\n      me {\n        oauth_providers {\n          uuid\n          provider_name\n          user_info_id\n          user_info\n        }\n      }\n    }\n  "]);return f=function(){return e},e}var h=function(){return["allOAuthProviders"]},v=function(){var e=(0,d.lk)().isAuthenticated;return(0,a.useQuery)(h(),(function(){return u.Si.request((0,l.gql)(f()))}),{select:function(e){var n,i;return null!==(i=null===e||void 0===e||null===(n=e.me)||void 0===n?void 0:n.oauth_providers)&&void 0!==i?i:[]},enabled:e})},p=function(){var e=v(),n=e.data,i=e.isLoading,t=null===n||void 0===n?void 0:n.find((function(e){return e.provider_name===s.gw.GITHUB})),r=function(e){var n,i=e.providerUUID,t=e.providerType,r=(0,d.lk)().user;return(0,a.useQuery)(function(e){return["oAuthProviderUserInfo",e]}(i),(function(){return u.bl.user.fetchOAuthUserInfo(null!==(n=null===r||void 0===r?void 0:r.username)&&void 0!==n?n:"",null!==i&&void 0!==i?i:"")}),{enabled:!!r&&!!i,select:function(e){var n,i,r,o,a,l,u,c,d,f,h,v;return t===s.gw.GOOGLE?{name:null!==(i=null!==(n=null===e||void 0===e?void 0:e.name)&&void 0!==n?n:null===e||void 0===e?void 0:e.user_info_id)&&void 0!==i?i:"",email:null!==(r=null===e||void 0===e?void 0:e.email)&&void 0!==r?r:""}:t===s.gw.GITHUB?{name:null!==(a=null!==(o=null===e||void 0===e?void 0:e.login)&&void 0!==o?o:null===e||void 0===e?void 0:e.name)&&void 0!==a?a:"",email:null!==(l=null===e||void 0===e?void 0:e.email)&&void 0!==l?l:""}:t===s.gw.DISCORD?{name:null!==(c=null!==(u=null===e||void 0===e?void 0:e.username)&&void 0!==u?u:null===e||void 0===e?void 0:e.global_name)&&void 0!==c?c:"",email:null!==(d=null===e||void 0===e?void 0:e.email)&&void 0!==d?d:""}:t===s.gw.LINKEDIN?{name:null!==(h=null!==(f=null===e||void 0===e?void 0:e.name)&&void 0!==f?f:null===e||void 0===e?void 0:e.given_name)&&void 0!==h?h:"",email:null!==(v=null===e||void 0===e?void 0:e.email)&&void 0!==v?v:""}:{name:"",email:""}}})}({providerUUID:null===t||void 0===t?void 0:t.uuid,providerType:s.gw.GITHUB}),o=r.data,l=r.isLoading;return{githubProvider:t,githubUserInfo:o,isLoading:i||l}},m=function(){var e,n,i=v(),o=null===(n=null===i||void 0===i||null===(e=i.data)||void 0===e?void 0:e.find((function(e){return e.provider_name===c.Kwo.Ethereum})))||void 0===n?void 0:n.user_info_id;return(0,r.Z)((0,t.Z)({},i),{data:o})}},1569:function(e,n,i){"use strict";i.d(n,{EN:function(){return p},eO:function(){return v}});var t=i(47568),r=i(26042),o=i(7297),a=i(97582),l=i(88767),u=i(57557),c=i.n(u),s=i(28687),d=i(24196),f=i(46246);function h(){var e=(0,o.Z)(["\n      query AllUserDetails {\n        me {\n          uuid\n          username\n          first_name\n          last_name\n          bio\n          gender\n          email\n          phone_number\n          email_verified\n          address {\n            city\n            state\n            country\n          }\n          extra {\n            resume\n            is_education\n            is_student\n            new_domain_expertise\n            no_work_exp\n            t_shirt_size\n            emergency_contact_name\n            emergency_contact_number\n          }\n          educations {\n            uuid\n            degree_type\n            current_college\n            college {\n              uuid\n              name\n            }\n            field {\n              uuid\n              name\n            }\n            graduation_year\n          }\n          skills {\n            skill {\n              uuid\n              name\n              logo: _logo\n            }\n          }\n          experiences {\n            uuid\n            title\n            start\n            type\n            current_company\n            end\n            description\n            company {\n              uuid\n              name\n              logo\n              domain\n              favicon: _favicon\n            }\n          }\n          profiles {\n            uuid\n            value\n            profile {\n              uuid\n              name\n            }\n          }\n          oauth_providers(where: { provider_name: { _eq: ethereum } }) {\n            user_info_id\n          }\n        }\n      }\n    "]);return h=function(){return e},e}var v="allUserDetails",p=function(e){var n=e.enabled;return(0,l.useQuery)(v,g,{enabled:n})},m=function(){var e=(0,t.Z)((function(e){var n,i,t,o,l,u,s,d,h,v,p,m,g,b,y,_;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e?(v=c()(e,["educations","extra","address","experiences","profiles"]),e.extra&&(v=(0,r.Z)({},v,e.extra)),v.domain_expertise=null!==(p=null===(n=e.extra)||void 0===n||null===(i=n.new_domain_expertise)||void 0===i?void 0:i.join(","))&&void 0!==p?p:"","boolean"===typeof(null===(t=e.extra)||void 0===t?void 0:t.is_education)&&(v.has_no_formal_education=!(null===(m=e.extra)||void 0===m?void 0:m.is_education)),Array.isArray(e.educations)&&e.educations.length>0&&(y=e.educations[0],v.current_college=y.current_college,v.degree_type=y.degree_type,v.education_field=y.field,v.college=y.college,v.graduation_month=parseInt(null===(g=y.graduation_year)||void 0===g?void 0:g.substr(5,7),10),v.graduation_year=parseInt(null===(b=y.graduation_year)||void 0===b?void 0:b.substr(0,4),10)),_=null===(o=e.skills)||void 0===o?void 0:o.map((function(e){return e.skill})),v.skills=_,v.user_skill=_,v.city=null===(l=e.address)||void 0===l?void 0:l.city,v.state=null===(u=e.address)||void 0===u?void 0:u.state,v.country=null===(s=e.address)||void 0===s?void 0:s.country,v.experience=null===e||void 0===e?void 0:e.experiences,Array.isArray(e.profiles)&&e.profiles.length>0?[4,Promise.all(e.profiles.map((function(e){var n;return(0,f.rH)({uuid:null===e||void 0===e?void 0:e.uuid,name:null===e||void 0===e||null===(n=e.profile)||void 0===n?void 0:n.name,value:e.value})})))]:[3,2]):[2,void 0];case 1:return v.profiles=a.sent(),[3,3];case 2:v.profiles=[],a.label=3;case 3:return v.ethereum_address=null===e||void 0===e||null===(d=e.oauth_providers)||void 0===d||null===(h=d[0])||void 0===h?void 0:h.user_info_id,[2,v]}}))}));return function(n){return e.apply(this,arguments)}}(),g=function(){return d.Si.request((0,s.gql)(h())).then(function(){var e=(0,t.Z)((function(e){var n;return(0,a.__generator)(this,(function(i){return n=e.me,[2,m(n)]}))}));return function(n){return e.apply(this,arguments)}}())}},91974:function(e,n,i){"use strict";var t=i(26042),r=i(69396),o=i(29815),a=i(67294),l=i(88767),u=i(61099),c=i(20906),s=i(24196),d={hackathons:s.bl.search.hackathons,hashtags:s.bl.search.hashtags,colleges:s.bl.search.colleges,skills:s.bl.search.skills,hosts:s.bl.search.hosts,hackathon_hashtags:s.bl.search.hackathonHashtags};n.Z=function(e){var n,i,s=e.type,f=e.query,h=e.size,v=void 0===h?10:h,p=e.additionalFilters,m=(0,u.Nr)(f),g=(0,r.Z)((0,t.Z)({},p),{q:m,from:0,size:v}),b=(0,l.useQuery)(["debouncedSearchFilter",s,m],(function(){var e;return null===d||void 0===d||null===(e=d[s])||void 0===e?void 0:e.call(d,g,0,v)}),{enabled:"string"===typeof m&&("hashtags"===s||"hackathons"===s||"colleges"===s||"skills"===s||"hosts"===s||"hackathon_hashtags"===s)}),y=["Vellore Institute of Technology","REVA University","SRM Institute of Science and Technology","Motilal Nehru National Institute of Technology Allahabad","National Institute of Technology Hamirpur","Thapar University","Delhi Technological University","Indian Institute of Information Technology Allahabad","Indian Institute of Information Technology Roorkee","PES University"].map((function(e){return{label:e,id:e}})),_=(0,c.ZP)({requestOptions:{types:["(cities)"]},debounce:0,googleMaps:null===(n=window.google)||void 0===n?void 0:n.maps}),k=_.setValue,w=_.suggestions;if(a.useEffect((function(){"city"===s&&k(null!==m&&void 0!==m?m:"")}),[m,k,s]),"hackathons"===s){var E,A,C=b.data;i=null===C||void 0===C||null===(E=C.hits)||void 0===E||null===(A=E.hits)||void 0===A?void 0:A.map((function(e){return{label:e._source.name,id:e._source.slug}}))}if("hashtags"===s||"skills"===s||"colleges"===s||"hackathon_hashtags"===s){var O,j,x=b.data;i="colleges"===s&&""===m?y:null===x||void 0===x||null===(O=x.hits)||void 0===O||null===(j=O.hits)||void 0===j?void 0:j.map((function(e){return{label:e._source.name,id:e._source.name}}))}if("hosts"===s){var T,S,I,U,N=b.data;i=null===N||void 0===N||null===(T=N.hits)||void 0===T||null===(S=T.hits)||void 0===S?void 0:S.map((function(e){var n,i;return{label:null!==(I=null===(n=e._source.hosted_by)||void 0===n?void 0:n.name)&&void 0!==I?I:"",id:null!==(U=null===(i=e._source.hosted_by)||void 0===i?void 0:i.name)&&void 0!==U?U:""}}))}if("city"===s){var R,L=null===(R=w.data)||void 0===R?void 0:R.map((function(e){return e.structured_formatting.main_text})),P=(0,o.Z)(new Set(L));i=(P.length>0?P:["New Delhi","Bengaluru","Vellore","Delhi","Mumbai","Prayagraj","Navi Mumbai","Raipur","Ahmedabad","Kochi"]).map((function(e){return{label:e,id:e}}))}return{options:null!==i&&void 0!==i?i:[]}}},88677:function(){},62808:function(){}}]);