1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1833],{61471:(e,l,t)=>{"use strict";t.d(l,{A:()=>v});var o=t(37876),i=t(89099),a=t(14232),r=t(2171),s=t(34321),n=t(6827),d=t(71297),c=t(68827),u=t(21639),m=t(60383),x=t(83872),h=t(16495),p=t(59766);let v=e=>{let{projectId:l}=e,t=(0,r.useDispatch)(),v=(0,i.useRouter)(),{primaryUserData:g}=(0,r.useSelector)(e=>e.PrimaryUserData),[j,f]=(0,a.useState)(!1),[A,y]=(0,a.useState)(!1),b=async()=>{var e,o,i,a;if(l){f(!0);try{await s._x.deleteProject(l);let o=null==g||null==(e=g.projects)?void 0:e.filter(e=>e.id!==l);(()=>{try{let e=p.AS.getJsonItem(h.STORAGE_KEYS.PROJECT_SCHEDULED);(null==e?void 0:e.id)===l&&p.AS.removeItem(h.STORAGE_KEYS.PROJECT_SCHEDULED)}catch(e){}})(),t(n.Yt.updatePrimaryUserData({projects:o}));let i=(null==g?void 0:g.profileHandle)||"user";f(!1),v.push("/".concat(i))}catch(e){d.A.ErrorToast((null==e||null==(a=e.response)||null==(i=a.data)||null==(o=i.error)?void 0:o.message)||c.A.GLOBAL.wrong),f(!1)}}};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.Ay.RedOutline,{onClick:()=>y(!0),loading:j,disabled:j,iconLeft:(0,o.jsx)(x.TrashIcon,{size:14}),children:"Delete"}),A&&(0,o.jsx)(m.A,{showModal:A,setShowModal:y,deleteText:"Are you sure you want to delete this project?",confirm:()=>b(l)})]})}},81851:(e,l,t)=>{"use strict";t.d(l,{A:()=>s});var o=t(37876),i=t(78004),a=t.n(i),r=t(83872);let s=e=>{let{checked:l,label:t,isDark:i=!1,className:s="",onClick:n=()=>{}}=e,d=i?a().white.DEFAULT:"rgb(var(--gray-1k))";return(0,o.jsx)("button",{type:"button",onClick:n,children:(0,o.jsxs)("div",{className:"flex cursor-pointer items-center text-xs text-gray-1k ".concat(s),children:[(0,o.jsx)("div",{children:(0,o.jsx)(r.CheckRoundedIcon,{size:16,background:l?a().green.bright:a().transparent,color:l?a().green.bright:d,checkColor:l?a().white.DEFAULT:"none"})}),(0,o.jsx)("p",{className:"ml-1 font-medium ".concat(l?"line-through opacity-50":"hover:underline ml-1.5"," ").concat(i?"text-gray-00 dark:text-gray-1k":"text-gray-1k"),children:t})]})})}},88111:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>er});var o=t(37876),i=t(14232),a=t(2171),r=t(89099),s=t(77328),n=t.n(s),d=t(48230),c=t.n(d),u=t(43934),m=t(47553),x=t(46250),h=t(21639),p=t(34217),v=t(86425),g=t(95726),j=t(71297),f=t(89311),A=t(68827),y=t(41205),b=t(34321),T=t(63819),N=t(69198),C=t(57994),S=t(16495),P=t(61471),L=t(83872),E=t(78008),k=t(38243),w=t(1245),_=t(50629),I=t(78545),O=t(93988);let R=e=>{var l;let{setShowModal:t,project:i,isScheduled:a=!1,nextWeekNumber:r,setActiveModel:s}=e,n=T.default.getProjectURL({username:null==i||null==(l=i.createdBy)?void 0:l.profileHandle,projectTitle:null==i?void 0:i.title,slug:null==i?void 0:i.slug,completeURL:!0}),d=async()=>{await navigator.clipboard.writeText(n),j.A.SuccessToast("Link copied")};return(0,o.jsxs)("div",{className:"grid md:grid-cols-2 gap-y-4 md:gay-x-4 gap-4 h-full relative md:px-3 md:py-3 px-2 py-2",children:[(0,o.jsx)("div",{className:"absolute top-4 right-4 z-60",children:(0,o.jsx)(h.Ay.CarbonOutline,{onClick:()=>{t(!1)},circular:!0,children:(0,o.jsx)(L.CloseXIcon,{size:16})})}),(0,o.jsxs)("div",{className:"flex flex-col justify-between gap-3 px-4 pt-6 md:pt-20 md:gap-2 md:pb-2 pb-0",children:[(0,o.jsxs)("div",{className:"flex flex-col items-center justify-center ".concat(a?"gap-3 md:gap-6":"gap-4"),children:[(0,o.jsxs)("div",{className:"flex flex-col items-center gap-4 md:gap-6",children:[(0,o.jsxs)("div",{className:"relative isolate",children:[(0,o.jsxs)("div",{className:"animate-scale-up-rays scale-[.2] opacity-0 blur-sm absolute top-1/2 left-1/2 -z-10",children:[(0,o.jsx)("div",{className:"ray-project-logo"}),(0,o.jsx)("div",{className:"ray-project-logo"}),(0,o.jsx)("div",{className:"ray-project-logo"}),(0,o.jsx)("div",{className:"ray-project-logo"}),(0,o.jsx)("div",{className:"ray-project-logo"}),(0,o.jsx)("div",{className:"ray-project-logo"}),(0,o.jsx)("div",{className:"ray-project-logo"}),(0,o.jsx)("div",{className:"ray-project-logo"})]}),(0,o.jsx)("div",{className:"z-10",children:(0,o.jsx)(I.A.ExtraLarge,{src:null==i?void 0:i.logo,alt:null==i?void 0:i.title})})]}),(0,o.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,o.jsx)(f.default.SemiBoldText,{base:!0,children:a?"Launch scheduled!":"Project Launched! \uD83D\uDE80"}),(0,o.jsx)(f.default.NormalText,{sm:!0,textColor:"text-gray-700",className:"text-center",children:a?(0,o.jsxs)("span",{children:[(0,o.jsx)("span",{className:"font-bold",children:null==i?void 0:i.title})," is scheduled to launch for"," ",(0,o.jsxs)("span",{className:"font-bold",children:[" Week ",r]}),". You will be notified via email once it is launched."]}):(0,o.jsxs)("span",{children:[(0,o.jsx)("span",{className:"font-bold",children:null==i?void 0:i.title})," is now live!"]})})]})]}),a?(0,o.jsx)(h.Ay.RedOutline,{onClick:()=>{s(null===_.Vl||void 0===_.Vl?void 0:_.Vl.CANCEL_LAUNCH)},small:!0,className:"block md:hidden",children:(0,o.jsx)(f.default.SemiBoldText,{xs:!0,textColor:"text-red-300",children:"Cancel Launch"})}):(0,o.jsxs)("div",{className:"flex items-center",children:[(0,o.jsxs)("div",{"data-tip":!0,"data-effect":"solid","data-for":"copy-link",className:"bg-gray-00 dar
1k:bg-gray-100 max-w-70 md:max-w-86 flex gap-1 items-center border border-primaryBorder rounded-2xl pl-4 pr-1 h-10 py-1 hover:shadow-5 transition-all",children:[(0,o.jsx)("button",{type:"button",className:"font-normal text-sm text-left select-all truncate",onClick:d,children:n}),(0,o.jsx)(h.Ay.Carbon,{circular:!0,onClick:d,children:(0,o.jsx)(L.CopyIcon,{size:20})})]}),(0,o.jsx)(w.A,{id:"copy-link",text:"Click to Copy",textId:"copy-link"})]}),(0,o.jsx)(O.A,{src:S.CDNImage.launchedOnLaunchpadTextLight,height:16,width:134,alt:"peerlist launchpad logo",className:"hidden md:block ".concat(a?"":"pt-2")})]}),(0,o.jsxs)("div",{className:"flex w-full ".concat(a?"justify-center md:justify-between":"justify-center"," items-center"),children:[a?(0,o.jsx)("div",{role:"none",onClick:()=>{s(null===_.Vl||void 0===_.Vl?void 0:_.Vl.CANCEL_LAUNCH)},className:"cursor-pointer hidden md:flex text-gray-500 text-xs underline hover:text-gray-700",children:"Cancel Launch"}):null,(0,o.jsx)(c(),{href:null===S.LEGAL_DOCS||void 0===S.LEGAL_DOCS?void 0:S.LEGAL_DOCS.PROJECT_SPOTLIGHT_GUIDELINES,target:"_blank",className:"text-gray-500 text-xs underline hover:text-gray-700",children:"Launchpad rules and guidelines"})]})]}),(0,o.jsx)(D,{project:i,isScheduled:a})]})},D=e=>{var l;let{project:t,isScheduled:i=!1}=e,{appData:r}=(0,a.useSelector)(e=>e.AppData),s=S.APP_PATHS.getLaunchDashboardURL({username:null==t||null==(l=t.creator)?void 0:l.profileHandle,projectTitle:null==t?void 0:t.title,slug:null==t?void 0:t.slug}),n=[{icon:(0,o.jsx)("span",{className:"text-orange-500",children:(0,o.jsx)(L.SparksIcon,{})}),title:"Polish your project",description:"Make sure to include a demo video, a logo, high-quality screenshots, and a detailed description.",link:null===S.APP_PATHS||void 0===S.APP_PATHS?void 0:S.APP_PATHS.addProject(null==t?void 0:t.id)},{icon:(0,o.jsx)("span",{className:"text-green-300",children:(0,o.jsx)(L.ProfileIcon,{})}),title:"Complete your profile",description:"Add profile details to show the best of you and get your credentials verified.",link:null===S.APP_PATHS||void 0===S.APP_PATHS?void 0:S.APP_PATHS.userProfile({profileHandle:null==r?void 0:r.profileHandle})},{icon:(0,o.jsx)("span",{className:"text-blue-300",children:(0,o.jsx)(L.FlatBaseDownloadIcon,{})}),title:"Launch Badge ".concat(""," ").concat(i?"â generated after launch":""),description:"Add the Launchpad badges to your website and inform visitors about your launch.",link:s,isScheduled:i}];return(0,o.jsxs)("div",{className:"flex flex-col gap-3 md:gap-4 items-center justify-center z-0 md:py-4 md:px-4 py-2 px-2 bg-gray-50 rounded-xl relative",children:[(0,o.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,o.jsx)("span",{className:"hidden md:block",children:(0,o.jsx)(L.CheckboxIcon,{size:24})}),(0,o.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,o.jsxs)(f.default.SemiBoldText,{sm:!0,children:["Improve your chances of getting featured"," "]}),(0,o.jsx)(f.default.NormalText,{xs:!0,textColor:"text-gray-700",className:"text-center",children:"Boost your chances of getting staff-picked and featured on the Peerlist weekly newsletter."})]})]}),(0,o.jsx)("div",{className:"flex flex-col gap-2 md:gap-4",children:null==n?void 0:n.map(e=>{let l=null==e?void 0:e.isScheduled,t=l?"div":c(),i=l?{key:null==e?void 0:e.title}:{key:null==e?void 0:e.title,href:null==e?void 0:e.link};return(0,o.jsxs)(t,{...i,className:"flex px-2 py-3 gap-2 border border-gray-200 bg-gray-00 dark:bg-gray-100 rounded-xl ".concat(l?"opacity-50 cursor-not-allowed":"shadow-5 cursor-pointer hover:shadow-10"),children:[null==e?void 0:e.icon,(0,o.jsxs)("div",{className:"flex flex-col mb-0.5",children:[(0,o.jsx)(f.default.SemiBoldText,{sm:!0,children:null==e?void 0:e.title}),(0,o.jsx)(f.default.NormalText,{xs:!0,textColor:"text-gray-700",children:null==e?void 0:e.description})]})]})})})]})},M=e=>{let{showModal:l,setShowModal:t,projectDetails:a}=e,[r,s]=(0,i.useState)(!0);return((0,i.useEffect)(()=>{setTimeout(()=>{s(!1)},4e3)},[]),r)?(0,o.jsx)(E.Z,{showModal:r,setShowModal:s,forHackathon:!0}):(0,o.jsx)(k.Ay,{showModal:l,setShowModal:()=>{t(!1)},extraLarge:!0,showClose:!1,children:(0,o.jsx)(R,{setShowModal:t,project:a})})};var U=t(5043),H=t(82669),G=t(48443),B=t(99478),J=t(4282),q=t(81851);let X=e=>{var l,t,i,a;let{projectDetails:r,projectDescription:s,subHeading:n="Complete 100% of your project details to make it eligible for launching on Peerlist Launchpad."}=e,{percentage:d}=J.Ay.calculateProjectPercentage({...r,image:null==r||null==(l=r.images)?void 0:l.length,logo:null==r?void 0:r.logo,description:s}),c=d<100?"bg-gradient-to-b from-red-300/20 to-bg-gray-00/0 to-[55.13%] to-bg-gray-00":"bg-gradient-to-b from-green-300/20 to-bg-gray-00/0 to-[55.13%] to-bg-gray-00";return(0,o.jsx)("div",{className:"flex flex-col gap-14 p-4 border rounded-2xl ".concat(c),children:(0,o.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,o.jsxs)("div",{className:"max-w-full overflow-hidden",children:[(0,o.jsxs)(f.default.NormalText,{xxl:!0,className:"mb-1",textColor:d<100?"text-red":"text-green",children:[d,"%"]}),(0,o.jsx)(f.default.SemiBoldText,{sm:!0,className:"mb-1",children:"Project Completion"}),(0,o.jsx)(B.A,{customHeight:"h-2",minimumRequiredPercentage:100,profilePercentage:d,className:"delay-500"}),(0,o.jsx)(f.default.MediumText,{xs:!0,className:"mt-2",children:n})]}),(0,o.jsxs)("div",{className:"flex flex-col gap-3 font-medium",children:[(0,o.jsx)(q.A,{label:"Project name",checked:null==r?void 0:r.title}),(0,o.jsx)(q.A,{label:"Project URL",checked:null==r?void 0:r.url}),(0,o.jsx)(q.A,{label:"Tagline",checked:null==r?void 0:r.tagline}),(0,o.jsx)(q.A,{label:"Category(ies)",checked:null==r||null==(t=r.categories)?void 0:t.length}),(0,o.jsx)(q.A,{label:"Built with",checked:null==r||null==(i=r.tags)?void 0:i.length}),(0,o.jsx)(q.A,{label:"Description",checked:null==s?void 0:s.length}),(0,o.jsx)(q.A,{label:"Logo",checked:null==r?void 0:r.logo}),(0,o.jsx)(q.A,{label:"Cover image(s)",checked:null==r||null==(a=r.images)?void 0:a.length})]})]})})};var z=t(61028),V=t(78063),F=t(95372);let K="images",Y="title",W="tagline",Z="tags",Q="description",$="collaborators",ee="teamName",el="codeUrl",et="categories",eo="videoLink",ei="ALREADY_UPLOADED",ea=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t="";return e&&(t+=(null==e?void 0:e.name.split(".")[0]).split(" ").join("-")),l&&(null==l?void 0:l.trim())!==""&&(t=T.default.stringToURL(l)),t+=crypto.randomUUID()},er=(0,m.A)(function(){var e,l,t,s,d,m,E,k;let w=(0,r.useRouter)(),{primaryUserData:_}=(0,a.useSelector)(e=>e.PrimaryUserData),I=(0,i.useRef)(null),[O,R]=(0,i.useState)({}),[D,B]=(0,i.useState)({}),[J,q]=(0,i.useState)(""),[er,es]=(0,i.useState)({}),[en,ed]=(0,i.useState)(!1),[ec,eu]=(0,i.useState)({}),[em,ex]=(0,i.useState)(""),[eh,ep]=(0,i.useState)(""),[ev,eg]=(0,i.useState)(!1),ej=T.default.getProjectURL({username:null==O||null==(e=O.createdBy)?void 0:e.profileHandle,projectTitle:null==O?void 0:O.title,completeURL:!0,slug:null==O?void 0:O.slug});(0,i.useEffect)(()=>{I.current&&u.default.create(I.current,{animation:150,onEnd:e=>{let{oldIndex:l,newIndex:t}=e;R(e=>{var o;let i=(null==e||null==(o=e.images)?void 0:o.length)?[...e.images]:[],a=i[l];return i.splice(l,1),i.splice(t,0,a),{...e,images:i}})}})},[null==O?void 0:O.images]);let ef=e=>{ec[e]&&(delete ec[e],eu(ec))},eA=(e,l)=>{((null==ec?void 0:ec[e])||(null==ec?void 0:ec.formIncomplete))&&(ef(e),ef("formIncomplete")),R(t=>({...t,[e]:l}))},ey=async(e,l)=>{var t,o,i,a,r,s,n,d,c,u,m,x;e.preventDefault();let h={...O,images:null==(t=O.images)?void 0:t.map(e=>e.type===ei?e.url:e.name),...l};(null==er?void 0:er.file)&&(null==er?void 0:er.name)&&(h[K]=er.name),h.title=null==h||null==(o=h.title)?void 0:o.trim(),h.id=null==w||null==(i=w.query)?void 0:i.id;let p=(0,T.removeHTMLFromString)(J);if(l.publish){let e=y.Ay.projectData(h);if((null==p?void 0:p.trim())===""&&(e[Q]=A.A.PROJECTS.descriptionRequired),(null==(s=Object.keys(e))?void 0:s.length)>0)return void eu({...e,formIncomplete:A.A.GLOBAL.incompleteInfo});
1B({save:!0})}(null==p?void 0:p.trim())!==""&&(h[Q]=(0,V.sanitizeRichText)(J)),h.collaborators=(null==O||null==(a=O[$])?void 0:a.length)>0?null==O||null==(r=O[$])?void 0:r.map(e=>null==e?void 0:e.id):[];try{(null==h||null==(n=h.hackathonInfo)?void 0:n.submittedAt)===null&&delete h.hackathonInfo.submittedAt;let e=await b.GV.submitProject(h,(null==l?void 0:l.publish)||!1),t=null==e||null==(d=e.data)?void 0:d.id;eA("id",t),(null==l?void 0:l.publish)&&!(null==O||null==(c=O.hackathonInfo)?void 0:c.submittedAt)?eg(!0):(j.A.SuccessToast(N.A.PROJECTS.update),w.push(S.APP_PATHS.hackathonDetails(S.HACKATHON_SLUGS.DEC_HACKATHON))),B({save:!1})}catch(e){eu({formIncomplete:(null==e||null==(x=e.response)||null==(m=x.data)||null==(u=m.error)?void 0:u.message)||A.A.GLOBAL.wrong}),B({save:!1})}},eb=async e=>{if(_.id)try{var l,t;let o=await b._x.getAllProject("?projectId=".concat(e)),i=null==o||null==(l=o.data)?void 0:l.project;(null==i?void 0:i.editAccess)?(i.images=(null==(t=i.images)?void 0:t.map(e=>({type:ei,url:e})))||[],R(i),ex(null==i?void 0:i.title)):(j.A.ErrorToast(A.A.PROJECTS.permissionDenied),w.replace(""))}catch(e){j.A.ErrorToast(A.A.PROJECTS.projectNotFound),w.replace("")}};return(0,i.useEffect)(()=>{var e,l;(null==w||null==(e=w.query)?void 0:e.id)&&eb(null==w||null==(l=w.query)?void 0:l.id)},[null==w?void 0:w.isReady,null==_?void 0:_.id]),(0,i.useEffect)(()=>()=>{R({}),es({}),eu({}),B(!1),ep("")},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n(),{children:(0,o.jsx)("title",{children:"Submit Project"})}),(0,o.jsxs)(C.A.Center,{children:[(0,o.jsxs)(C.A.CenterTop,{internalPage:!0,children:[(0,o.jsxs)("div",{className:"flex items-center",children:[(0,o.jsx)(C.A.BackButton,{}),(0,o.jsxs)(C.A.PageHeading,{className:"capitalize paragraph-clamp1",children:["Submit Project - ",(null==O?void 0:O[ee])||""]})]}),(null==O?void 0:O.publishedAt)&&(null==O?void 0:O.projectURL)?(0,o.jsx)(h.Ay.CarbonOutline,{small:!0,as:c(),href:null==O?void 0:O.projectURL,children:"View"}):null]}),(0,o.jsxs)("form",{children:[(0,o.jsxs)("div",{className:"p-4 mob:p-6 mb-36 lg:mb-10 flex flex-col mob:gap-10 gap-6",children:[(0,o.jsx)(v.A.Row,{sectionLabel:"Project name",required:!0,children:(0,o.jsx)(g.Ay,{id:Y,placeholder:"Peerlist",value:(null==O?void 0:O[Y])||"",maxLength:S.PROJECT_CONSTANTS.MAX_TITLE_LIMIT,onChange:e=>{var l;if(eA(Y,e.target.value),(null==w||null==(l=w.query)?void 0:l.id)&&(null==O?void 0:O.publishedAt)){if(e.target.value!==em)return void ep(A.A.PROJECTS.brokenURLsWarning);eh&&ep(!1)}},error:(null==ec?void 0:ec[Y])||eh,required:!0})}),(0,o.jsx)(v.A.Row,{sectionLabel:"Tagline",required:!0,children:(0,o.jsx)(g.Ay,{id:W,placeholder:"A professional network for people in tech",value:(null==O?void 0:O[W])||"",maxLength:S.PROJECT_CONSTANTS.MAX_TAGLINE_LIMIT,error:null==ec?void 0:ec[W],onChange:e=>eA(W,e.target.value),required:!0,helpText:(0,o.jsxs)(o.Fragment,{children:["Describe your project in"," ",S.PROJECT_CONSTANTS.MAX_TAGLINE_LIMIT," characters or less."]})})}),(0,o.jsx)(v.A.Row,{sectionLabel:"Demo URL",required:!0,children:(0,o.jsx)(g.Ay,{id:"url",value:(null==O?void 0:O.url)||"",type:"url",error:null==ec?void 0:ec.url,onChange:e=>eA("url",e.target.value),required:!0,placeholder:"projectdemo.com",helpText:"Link where your project is hosted"})}),(0,o.jsx)(v.A.Row,{sectionLabel:"Codebase link",required:!0,children:(0,o.jsx)(g.Ay,{id:el,value:(null==O?void 0:O[el])||"",onChange:e=>{eA(el,e.target.value)},error:null==ec?void 0:ec[el],required:!0,placeholder:"github.com/yourproject",helpText:"Link to your codebase (GitHub, GitLab, Replit)"})}),(0,o.jsxs)(v.A.Row,{sectionLabel:"Cover image(s)",required:!0,children:[(0,o.jsxs)("div",{children:[(null==(l=O.images)?void 0:l.length)?(0,o.jsx)("div",{className:"relative flex gap-3 flex-wrap items-center justify-start mb-4 cursor-move",ref:I,children:O.images.map(e=>(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)("img",{src:e.url,alt:"",className:"w-[72px] h-9 rounded-md bg-gray-300"}),(0,o.jsx)(h.Ay.CarbonOutline,{small:!0,circular:!0,className:"absolute -top-2 -right-2",onClick:()=>{ef(K),ef("formIncomplete"),R(l=>{var t;return{...l,images:null==(t=l.images)?void 0:t.filter(l=>l.url!==e.url)}})},children:(0,o.jsx)(L.CloseXIcon,{size:14})})]},e.name||e.url))}):null,(null==O||null==(t=O.images)?void 0:t.length)>=S.PROJECT_CONSTANTS.MAX_IMAGES?null:(0,o.jsx)("div",{className:"w-[88px]",children:(0,o.jsx)(G.A,{setLoa
1ding:ed,setImageInfo:e=>{ef(K),ef("formIncomplete");let l={...e,type:"NEW_UPLOADED"};R(e=>({...e,images:[...(null==e?void 0:e.images)||[],l]}))},signImageAPICall:e=>{var l;return b.DX.getSignedUrl({filename:e.name,userId:(null==O||null==(l=O.createdBy)?void 0:l.id)||_.id,projectId:null==O?void 0:O.id,context:S.IMAGE_UPLOAD_CONTEXTS.PROJECT})},getImageFileName:e=>(ec&&eu({}),ea(e,null==O?void 0:O.title)),maxAllowed:S.PROJECT_CONSTANTS.MAX_IMAGES,children:(0,o.jsxs)("div",{className:"flex gap-2 items-center text-sm border h-6 border-gray-300 px-3 py-1 w-max rounded-full",children:[(0,o.jsx)(L.UploadIcon,{size:16}),(0,o.jsx)(f.default.MediumText,{xs:!0,children:en?"Uploading...":"Upload Images"}),en?(0,o.jsx)(H.A,{color:"text-gray-500"}):null]})})})]}),(0,o.jsx)(f.default.MutedText,{className:"mt-0.5",xxs:!0,children:"Product screenshot or cover image."}),(null==ec?void 0:ec.images)?(0,o.jsx)(f.default.ErrorText,{children:null==ec?void 0:ec.images}):null]}),(0,o.jsx)(v.A.Row,{sectionLabel:"Video presentation",children:(0,o.jsx)(g.Ay,{id:eo,value:(null==O?void 0:O[eo])||"",type:"url",error:null==ec?void 0:ec[eo],onChange:e=>eA(eo,e.target.value),placeholder:"YouTube, Loom or Vimeo only.",helpText:"Link to the video walkthrough of your project."})}),(0,o.jsx)(v.A.Row,{sectionLabel:"Tools & tech stack",children:(0,o.jsx)(x.T,{userTagsList:(null==O?void 0:O[Z])||[],error:null==ec?void 0:ec[Z],max:S.MAX_SKILLS,onChange:e=>{(null==ec?void 0:ec[Z])&&ef(Z),eA(Z,null==e?void 0:e.map(e=>e.name)),(null==e?void 0:e.length)>S.MAX_SKILLS&&eu(e=>({...e,[Z]:A.A.PROJECTS.maxTagsError}))},value:(null==O||null==(s=O[Z])?void 0:s.map(e=>({name:e})))||[],isMulti:!0,helpText:"Tools, technologies, skills you used while building this project"})}),(0,o.jsx)(v.A.Row,{required:!0,sectionLabel:"Project category",children:(0,o.jsx)(z.A,{id:"categories",options:S.PROJECT_CATEGORIES,getOptionLabel:e=>e.name,getOptionValue:e=>e.id,placeholder:"Dev Tools, Productivity, AI etc.",error:null==ec?void 0:ec[et],max:S.PROJECT_CONSTANTS.MAX_CATEGORIES,showError:!1,isMulti:!0,value:(null==O?void 0:O[et])||"",onChange:e=>{(null==ec?void 0:ec[et])&&ef([et]),eA(et,e),(null==e?void 0:e.length)>S.PROJECT_CONSTANTS.MAX_CATEGORIES&&eu(e=>({...e,[et]:A.A.PROJECTS.maxCategories}))},helpText:"Maximum ".concat(S.PROJECT_CONSTANTS.MAX_CATEGORIES," categories.")})}),(0,o.jsxs)("div",{className:"mb-4",children:[(0,o.jsx)(f.default.MediumText,{sm:!0,children:"Describe the project"}),(0,o.jsx)(f.default.MutedText,{xs:!0,className:"mt-1 mb-2",children:"Highly recommended! This helps a lot for SEO and find your project on Google."}),(0,o.jsx)("div",{className:"border relative border-gray-200 p-3 rounded-3xl",children:(0,o.jsx)(F.A,{characterLimit:S.PROJECT_CONSTANTS.MAX_PROJECT_DESCRIPTION,editorClassName:"h-96 overflow-y-auto job-description",placeholder:"Describe your project...",content:(null==O?void 0:O.description)||"",onChange:e=>{ef(Q),ef("formIncomplete"),q(e)}})}),(null==ec?void 0:ec.description)?(0,o.jsx)(f.default.ErrorText,{className:"mt-1",children:null==ec?void 0:ec.description}):null]})]}),(0,o.jsxs)(p.A.SaveBottomBanner,{className:"flex-col",bottomPosition:"bottom-[72px]",children:[ec.formIncomplete?(0,o.jsx)("div",{className:"flex items-start w-full mb-2",children:(0,o.jsx)(f.default.ErrorText,{className:"text-left ml-0",children:ec.formIncomplete})}):null,(0,o.jsxs)("div",{className:"flex items-center w-full justify-between",children:[(null==O?void 0:O.publishedAt)&&(null==w||null==(d=w.query)?void 0:d.id)&&(null==O||null==(m=O.createdBy)?void 0:m.id)===(null==_?void 0:_.id)?(0,o.jsx)(P.A,{projectId:null==w||null==(E=w.query)?void 0:E.id}):null,(0,o.jsx)(h.Ay.Primary,{loading:D.save,disabled:D.save||en||Object.keys(ec).length>0,onClick:e=>ey(e,{publish:!0}),className:"ml-auto",type:"submit",iconRight:(0,o.jsx)(L.ArrowRightIcon,{size:14}),children:(null==O||null==(k=O.hackathonInfo)?void 0:k.submittedAt)?"Update":"Submit"})]})]})]})]}),(0,o.jsxs)(C.A.Right,{hideOnSmallScreens:!0,className:"overflow-y-auto pb-20",children:[(0,o.jsx)(X,{projectDetails:O,projectDescription:J,subHeading:"Complete 100% of your project details. Project presentation has a big impact on the evaluation.",hideTips:!0}),(0,o.jsx)("div",{className:"mt-14",children:(0,o.jsx)(U.A.TeamSection,{team:{teamName:null==O?void 0:O[ee],collaborators:null==O?void 0:O[$],createdBy:null==O?void 0:O.createdBy}})})]}),ev?(0,o.jsx)(M,{showModal:ev,setShowModal:()=>{eg(!ev),w.push(S.APP_PATHS.decHackathon)},projectDetails:O,projectUrl:ej}):null]})})},98564:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/hackathons/[slug]/submit-project",function(){return t(88111)}])}},e=>{e.O(0,[5043,636,6593,8792],()=>e(e.s=98564)),_N_E=e.O()}]);
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.